@fluidattacks/design 3.33.0-pr.2 → 3.33.0-pr.3

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 (194) hide show
  1. package/dist/components/@core/index.js +1 -1
  2. package/dist/components/accordion/accordion-content/index.js +1 -1
  3. package/dist/components/accordion/index.js +1 -1
  4. package/dist/components/advanced-badge/index.js +1 -1
  5. package/dist/components/advisories-card/index.js +1 -1
  6. package/dist/components/alert/index.js +1 -1
  7. package/dist/components/avatar/index.js +1 -1
  8. package/dist/components/button/index.js +1 -1
  9. package/dist/components/card/card-header/index.js +1 -1
  10. package/dist/components/card/card-with-image/index.js +1 -1
  11. package/dist/components/card/card-with-input/index.js +1 -1
  12. package/dist/components/card/card-with-options/index.js +1 -1
  13. package/dist/components/card/card-with-selector/index.js +1 -1
  14. package/dist/components/card/card-with-switch/index.js +1 -1
  15. package/dist/components/card/index.js +1 -1
  16. package/dist/components/card/indicator-card/index.js +1 -1
  17. package/dist/components/card-container/index.js +1 -1
  18. package/dist/components/carousel/index.js +1 -1
  19. package/dist/components/checkbox/index.js +1 -1
  20. package/dist/components/cloud-image/index.js +1 -1
  21. package/dist/components/code-snippet/index.js +1 -1
  22. package/dist/components/code-snippet/location-code/index.js +1 -1
  23. package/dist/components/colors/index.js +1 -1
  24. package/dist/components/conditions-dialog/index.js +1 -1
  25. package/dist/components/confirm-dialog/index.js +1 -1
  26. package/dist/components/container/index.js +1 -1
  27. package/dist/components/copy-button/index.js +1 -1
  28. package/dist/components/divider/index.js +1 -1
  29. package/dist/components/dropdown/index.js +1 -1
  30. package/dist/components/empty-state/empty-button/index.js +1 -1
  31. package/dist/components/empty-state/index.js +1 -1
  32. package/dist/components/fa-tag/index.js +1 -1
  33. package/dist/components/file-preview/index.js +1 -1
  34. package/dist/components/filters/context/index.js +1 -1
  35. package/dist/components/filters/filters-menu/index.js +1 -1
  36. package/dist/components/filters/index.d.ts +3 -3
  37. package/dist/components/filters/index.js +1 -1
  38. package/dist/components/filters/options-menu/index.js +1 -1
  39. package/dist/components/filters/options-menu/options/index.js +1 -1
  40. package/dist/components/filters/options-menu/options/types.d.ts +2 -2
  41. package/dist/components/filters/search/no-matches/index.js +1 -1
  42. package/dist/components/filters/types.d.ts +3 -3
  43. package/dist/components/form/index.js +1 -1
  44. package/dist/components/form/inner-form/index.js +1 -1
  45. package/dist/components/grid-container/index.js +1 -1
  46. package/dist/components/group-selector/index.js +1 -1
  47. package/dist/components/group-selector/option-container/index.js +1 -1
  48. package/dist/components/icon/index.js +1 -1
  49. package/dist/components/icon-button/index.js +1 -1
  50. package/dist/components/indicator-card-db/index.js +1 -1
  51. package/dist/components/info-sidebar/index.js +1 -1
  52. package/dist/components/inputs/fields/combobox/field/index.js +1 -1
  53. package/dist/components/inputs/fields/combobox/index.js +1 -1
  54. package/dist/components/inputs/fields/combobox/option/index.js +1 -1
  55. package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
  56. package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
  57. package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
  58. package/dist/components/inputs/fields/date/calendar/index.js +1 -1
  59. package/dist/components/inputs/fields/date/index.js +1 -1
  60. package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
  61. package/dist/components/inputs/fields/date-range/index.js +1 -1
  62. package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
  63. package/dist/components/inputs/fields/date-time/index.js +1 -1
  64. package/dist/components/inputs/fields/editable/index.js +1 -1
  65. package/dist/components/inputs/fields/input-array/field/index.js +1 -1
  66. package/dist/components/inputs/fields/input-array/index.js +1 -1
  67. package/dist/components/inputs/fields/input-file/default/index.js +1 -1
  68. package/dist/components/inputs/fields/input-file/dropzone/index.js +1 -1
  69. package/dist/components/inputs/fields/input-file/index.js +1 -1
  70. package/dist/components/inputs/fields/input-section/index.js +1 -1
  71. package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
  72. package/dist/components/inputs/fields/input-tags/index.js +1 -1
  73. package/dist/components/inputs/fields/number/index.js +1 -1
  74. package/dist/components/inputs/fields/number-range/index.js +1 -1
  75. package/dist/components/inputs/fields/phone/index.js +1 -1
  76. package/dist/components/inputs/fields/text-area/index.js +1 -1
  77. package/dist/components/inputs/fields/text-input/index.js +1 -1
  78. package/dist/components/inputs/index.js +1 -1
  79. package/dist/components/inputs/label/index.js +1 -1
  80. package/dist/components/inputs/outline-container/index.js +1 -1
  81. package/dist/components/inputs/utils/action-button/index.js +1 -1
  82. package/dist/components/inputs/utils/calendar-button/index.js +1 -1
  83. package/dist/components/inputs/utils/date-selector/index.js +1 -1
  84. package/dist/components/inputs/utils/date-time-field/index.js +1 -1
  85. package/dist/components/inputs/utils/dialog/index.js +1 -1
  86. package/dist/components/inputs/utils/number-field/index.js +1 -1
  87. package/dist/components/inputs/utils/popover/index.js +1 -1
  88. package/dist/components/item-card-db/index.js +1 -1
  89. package/dist/components/layout/categories/buttons/index.js +1 -1
  90. package/dist/components/layout/categories/column/index.js +1 -1
  91. package/dist/components/layout/categories/gap/index.js +1 -1
  92. package/dist/components/layout/categories/row/index.js +1 -1
  93. package/dist/components/layout/index.js +1 -1
  94. package/dist/components/link/index.js +1 -1
  95. package/dist/components/list-item/index.js +1 -1
  96. package/dist/components/little-flag/index.js +1 -1
  97. package/dist/components/loading/index.js +1 -1
  98. package/dist/components/logo/index.js +1 -1
  99. package/dist/components/lottie/index.js +1 -1
  100. package/dist/components/menu/index.js +1 -1
  101. package/dist/components/message-banner/index.js +1 -1
  102. package/dist/components/modal/columns-modal/index.js +1 -1
  103. package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
  104. package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
  105. package/dist/components/modal/filters-modal/applied-filter/index.js +1 -1
  106. package/dist/components/modal/filters-modal/applied-filters/index.js +1 -1
  107. package/dist/components/modal/filters-modal/column-filters/index.js +1 -1
  108. package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
  109. package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -1
  110. package/dist/components/modal/filters-modal/filter-form/hooks/index.js +1 -1
  111. package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
  112. package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
  113. package/dist/components/modal/filters-modal/index.js +1 -1
  114. package/dist/components/modal/footer/index.js +1 -1
  115. package/dist/components/modal/header/index.js +1 -1
  116. package/dist/components/modal/index.js +1 -1
  117. package/dist/components/modal/modal-confirm/index.js +1 -1
  118. package/dist/components/notification/index.js +1 -1
  119. package/dist/components/notification-sign/index.js +1 -1
  120. package/dist/components/oauth-selector/index.js +1 -1
  121. package/dist/components/oauth-selector/option-container/index.js +1 -1
  122. package/dist/components/paginator-db/btn/index.js +1 -1
  123. package/dist/components/paginator-db/dropdown/index.js +1 -1
  124. package/dist/components/paginator-db/index.js +1 -1
  125. package/dist/components/pop-up/description/index.js +1 -1
  126. package/dist/components/pop-up/index.js +1 -1
  127. package/dist/components/premium-feature/index.js +1 -1
  128. package/dist/components/priority-cards/card/index.js +1 -1
  129. package/dist/components/priority-cards/index.js +1 -1
  130. package/dist/components/priority-score/index.js +1 -1
  131. package/dist/components/progress-bar/index.js +1 -1
  132. package/dist/components/progress-indicator/in-progress-icon/index.js +1 -1
  133. package/dist/components/progress-indicator/index.js +1 -1
  134. package/dist/components/progress-indicator/step/index.js +1 -1
  135. package/dist/components/radio-button/index.js +1 -1
  136. package/dist/components/rank-position/icon/index.js +1 -1
  137. package/dist/components/rank-position/index.js +1 -1
  138. package/dist/components/scroll-button/index.js +1 -1
  139. package/dist/components/search/index.js +1 -1
  140. package/dist/components/search-dropdown/index.js +1 -1
  141. package/dist/components/severity-badge/index.js +1 -1
  142. package/dist/components/severity-overview/badge/index.js +1 -1
  143. package/dist/components/severity-overview/index.js +1 -1
  144. package/dist/components/show-on-hover/index.js +1 -1
  145. package/dist/components/slide-out-menu/index.js +1 -1
  146. package/dist/components/slide-out-menu/menu-item/index.js +1 -1
  147. package/dist/components/slider/index.js +1 -1
  148. package/dist/components/slider/thumb/index.js +1 -1
  149. package/dist/components/step-lapse/index.js +1 -1
  150. package/dist/components/table/context/index.js +1 -1
  151. package/dist/components/table/export-csv/index.js +1 -1
  152. package/dist/components/table/index.js +1 -1
  153. package/dist/components/table/pagination/pagination-control/index.js +1 -1
  154. package/dist/components/table/pagination/pagination-dropdown/index.js +1 -1
  155. package/dist/components/table/pagination/pagination-size/index.js +1 -1
  156. package/dist/components/table/sort-icon/index.js +1 -1
  157. package/dist/components/table/table-body/index.js +1 -1
  158. package/dist/components/table/table-column-toggle/index.js +1 -1
  159. package/dist/components/table/table-content/head/index.js +1 -1
  160. package/dist/components/table/table-content/index.js +1 -1
  161. package/dist/components/table/table-footer/footer-content/index.js +1 -1
  162. package/dist/components/table/table-footer/index.js +1 -1
  163. package/dist/components/table/table-options/caption-content/index.js +1 -1
  164. package/dist/components/table/table-options/controls-content/index.js +1 -1
  165. package/dist/components/table/table-options/highlighted-content/index.js +1 -1
  166. package/dist/components/table/table-options/index.js +1 -1
  167. package/dist/components/table/wrapper/index.js +1 -1
  168. package/dist/components/table-button/index.js +1 -1
  169. package/dist/components/table-content/index.js +1 -1
  170. package/dist/components/table-content/item-content/index.js +1 -1
  171. package/dist/components/tabs/index.js +1 -1
  172. package/dist/components/tabs/tab/index.js +1 -1
  173. package/dist/components/tag/index.js +1 -1
  174. package/dist/components/timeline/card/index.js +1 -1
  175. package/dist/components/timeline/index.js +1 -1
  176. package/dist/components/toggle/index.js +1 -1
  177. package/dist/components/tooltip/index.js +1 -1
  178. package/dist/components/tour/index.js +1 -1
  179. package/dist/components/typography/heading/index.js +1 -1
  180. package/dist/components/typography/index.js +1 -1
  181. package/dist/components/typography/span/index.js +1 -1
  182. package/dist/components/typography/text/index.js +1 -1
  183. package/dist/components/weaknesses-card/index.js +1 -1
  184. package/dist/{components-Dlo6kl3r.mjs → components-BLfDmNW6.mjs} +2 -1
  185. package/dist/{components-Cv8yK2H1.js → components-CSmSP37E.js} +2 -1
  186. package/dist/context/index.d.ts +2 -0
  187. package/dist/context/index.js +1 -0
  188. package/dist/hooks/index.js +1 -1
  189. package/dist/hooks/use-filters.d.ts +2 -2
  190. package/dist/index.d.ts +1 -0
  191. package/dist/index.js +1 -1
  192. package/dist/{vendor-CmNcMwQd.js → vendor-CfI-J17Q.js} +11 -11
  193. package/dist/{vendor-jdT-6aCG.mjs → vendor-T5y8WTpZ.mjs} +1302 -1302
  194. package/package.json +1 -1
@@ -81,7 +81,7 @@ function print() { __p += __j.call(arguments, '') }
81
81
  */var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,a=0,o={},s={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function C(E){return E instanceof l?new l(E.type,C(E.content),E.alias):Array.isArray(E)?E.map(C):E.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(C){return Object.prototype.toString.call(C).slice(8,-1)},objId:function(C){return C.__id||Object.defineProperty(C,"__id",{value:++a}),C.__id},clone:function C(E,T){T=T||{};var P,F;switch(s.util.type(E)){case"Object":if(F=s.util.objId(E),T[F])return T[F];P={},T[F]=P;for(var q in E)E.hasOwnProperty(q)&&(P[q]=C(E[q],T));return P;case"Array":return F=s.util.objId(E),T[F]?T[F]:(P=[],T[F]=P,E.forEach(function(te,se){P[se]=C(te,T)}),P);default:return E}},getLanguage:function(C){for(;C;){var E=i.exec(C.className);if(E)return E[1].toLowerCase();C=C.parentElement}return"none"},setLanguage:function(C,E){C.className=C.className.replace(RegExp(i,"gi"),""),C.classList.add("language-"+E)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(P){var C=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(P.stack)||[])[1];if(C){var E=document.getElementsByTagName("script");for(var T in E)if(E[T].src==C)return E[T]}return null}},isActive:function(C,E,T){for(var P="no-"+E;C;){var F=C.classList;if(F.contains(E))return!0;if(F.contains(P))return!1;C=C.parentElement}return!!T}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(C,E){var T=s.util.clone(s.languages[C]);for(var P in E)T[P]=E[P];return T},insertBefore:function(C,E,T,P){P=P||s.languages;var F=P[C],q={};for(var te in F)if(F.hasOwnProperty(te)){if(te==E)for(var se in T)T.hasOwnProperty(se)&&(q[se]=T[se]);T.hasOwnProperty(te)||(q[te]=F[te])}var ae=P[C];return P[C]=q,s.languages.DFS(s.languages,function(O,Ee){Ee===ae&&O!=C&&(this[O]=q)}),q},DFS:function C(E,T,P,F){F=F||{};var q=s.util.objId;for(var te in E)if(E.hasOwnProperty(te)){T.call(E,te,E[te],P||te);var se=E[te],ae=s.util.type(se);ae==="Object"&&!F[q(se)]?(F[q(se)]=!0,C(se,T,null,F)):ae==="Array"&&!F[q(se)]&&(F[q(se)]=!0,C(se,T,te,F))}}},plugins:{},highlightAll:function(C,E){s.highlightAllUnder(document,C,E)},highlightAllUnder:function(C,E,T){var P={callback:T,container:C,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",P),P.elements=Array.prototype.slice.apply(P.container.querySelectorAll(P.selector)),s.hooks.run("before-all-elements-highlight",P);for(var F=0,q;q=P.elements[F++];)s.highlightElement(q,E===!0,P.callback)},highlightElement:function(C,E,T){var P=s.util.getLanguage(C),F=s.languages[P];s.util.setLanguage(C,P);var q=C.parentElement;q&&q.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(q,P);var te=C.textContent,se={element:C,language:P,grammar:F,code:te};function ae(Ee){se.highlightedCode=Ee,s.hooks.run("before-insert",se),se.element.innerHTML=se.highlightedCode,s.hooks.run("after-highlight",se),s.hooks.run("complete",se),T&&T.call(se.element)}if(s.hooks.run("before-sanity-check",se),q=se.element.parentElement,q&&q.nodeName.toLowerCase()==="pre"&&!q.hasAttribute("tabindex")&&q.setAttribute("tabindex","0"),!se.code){s.hooks.run("complete",se),T&&T.call(se.element);return}if(s.hooks.run("before-highlight",se),!se.grammar){ae(s.util.encode(se.code));return}if(E&&r.Worker){var O=new Worker(s.filename);O.onmessage=function(Ee){ae(Ee.data)},O.postMessage(JSON.stringify({language:se.language,code:se.code,immediateClose:!0}))}else ae(s.highlight(se.code,se.grammar,se.language))},highlight:function(C,E,T){var P={code:C,grammar:E,language:T};if(s.hooks.run("before-tokenize",P),!P.grammar)throw new Error('The language "'+P.language+'" has no grammar.');return P.tokens=s.tokenize(P.code,P.grammar),s.hooks.run("after-tokenize",P),l.stringify(s.util.encode(P.tokens),P.language)},tokenize:function(C,E){var T=E.rest;if(T){for(var P in T)E[P]=T[P];delete E.rest}var F=new m;return g(F,F.head,C),h(C,F,E,F.head,0),$(F)},hooks:{all:{},add:function(C,E){var T=s.hooks.all;T[C]=T[C]||[],T[C].push(E)},run:function(C,E){var T=s.hooks.all[C];if(!(!T||!T.length))for(var P=0,F;F=T[P++];)F(E)}},Token:l};r.Prism=s;function l(C,E,T,P){this.type=C,this.content=E,this.alias=T,this.length=(P||"").length|0}l.stringify=function C(E,T){if(typeof E=="string")return E;if(Array.isArray(E)){var P="";return E.forEach(function(ae){P+=C(ae,T)}),P}var F={type:E.type,content:C(E.content,T),tag:"span",classes:["token",E.type],attributes:{},language:T},q=E.alias;q&&(Array.isArray(q)?Array.prototype.push.apply(F.classes,q):F.classes.push(q)),s.hooks.run("wrap",F);var te="";for(var se in F.attributes)te+=" "+se+'="'+(F.attributes[se]||"").replace(/"/g,"&quot;")+'"';return"<"+F.tag+' class="'+F.classes.join(" ")+'"'+te+">"+F.content+"</"+F.tag+">"};function f(C,E,T,P){C.lastIndex=E;var F=C.exec(T);if(F&&P&&F[1]){var q=F[1].length;F.index+=q,F[0]=F[0].slice(q)}return F}function h(C,E,T,P,F,q){for(var te in T)if(!(!T.hasOwnProperty(te)||!T[te])){var se=T[te];se=Array.isArray(se)?se:[se];for(var ae=0;ae<se.length;++ae){if(q&&q.cause==te+","+ae)return;var O=se[ae],Ee=O.inside,be=!!O.lookbehind,z=!!O.greedy,G=O.alias;if(z&&!O.pattern.global){var V=O.pattern.toString().match(/[imsuy]*$/)[0];O.pattern=RegExp(O.pattern.source,V+"g")}for(var R=O.pattern||O,K=P.next,fe=F;K!==E.tail&&!(q&&fe>=q.reach);fe+=K.value.length,K=K.next){var M=K.value;if(E.length>C.length)return;if(!(M instanceof l)){var oe=1,le;if(z){if(le=f(R,fe,C,be),!le||le.index>=C.length)break;var Ge=le.index,Se=le.index+le[0].length,_e=fe;for(_e+=K.value.length;Ge>=_e;)K=K.next,_e+=K.value.length;if(_e-=K.value.length,fe=_e,K.value instanceof l)continue;for(var Be=K;Be!==E.tail&&(_e<Se||typeof Be.value=="string");Be=Be.next)oe++,_e+=Be.value.length;oe--,M=C.slice(fe,_e),le.index-=fe}else if(le=f(R,0,M,be),!le)continue;var Ge=le.index,Xe=le[0],Ne=M.slice(0,Ge),qe=M.slice(Ge+Xe.length),ke=fe+M.length;q&&ke>q.reach&&(q.reach=ke);var je=K.prev;Ne&&(je=g(E,je,Ne),fe+=Ne.length),b(E,je,oe);var Te=new l(te,Ee?s.tokenize(Xe,Ee):Xe,G,Xe);if(K=g(E,je,Te),qe&&g(E,K,qe),oe>1){var Ye={cause:te+","+ae,reach:ke};h(C,E,T,K.prev,fe,Ye),q&&Ye.reach>q.reach&&(q.reach=Ye.reach)}}}}}}function m(){var C={value:null,prev:null,next:null},E={value:null,prev:C,next:null};C.next=E,this.head=C,this.tail=E,this.length=0}function g(C,E,T){var P=E.next,F={value:T,prev:E,next:P};return E.next=F,P.prev=F,C.length++,F}function b(C,E,T){for(var P=E.next,F=0;F<T&&P!==C.tail;F++)P=P.next;E.next=P,P.prev=E,C.length-=F}function $(C){for(var E=[],T=C.head.next;T!==C.tail;)E.push(T.value),T=T.next;return E}if(!r.document)return r.addEventListener&&(s.disableWorkerMessageHandler||r.addEventListener("message",function(C){var E=JSON.parse(C.data),T=E.language,P=E.code,F=E.immediateClose;r.postMessage(s.highlight(P,s.languages[T],T)),F&&r.close()},!1)),s;var x=s.util.currentScript();x&&(s.filename=x.src,x.hasAttribute("data-manual")&&(s.manual=!0));function A(){s.manual||s.highlightAll()}if(!s.manual){var w=document.readyState;w==="loading"||w==="interactive"&&x&&x.defer?document.addEventListener("DOMContentLoaded",A):window.requestAnimationFrame?window.requestAnimationFrame(A):window.setTimeout(A,16)}return s}(t);e.exports&&(e.exports=n),typeof Hi<"u"&&(Hi.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 o={};o["language-"+a]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[a]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};s["language-"+a]={pattern:/[\s\S]+/,inside:n.languages[a]};var l={};l[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:s},n.languages.insertBefore("markup","cdata",l)}}),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",o={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",l="loading",f="loaded",h="failed",m="pre[data-src]:not(["+s+'="'+f+'"]):not(['+s+'="'+l+'"])';function g(x,A,w){var C=new XMLHttpRequest;C.open("GET",x,!0),C.onreadystatechange=function(){C.readyState==4&&(C.status<400&&C.responseText?A(C.responseText):C.status>=400?w(i(C.status,C.statusText)):w(a))},C.send(null)}function b(x){var A=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(x||"");if(A){var w=Number(A[1]),C=A[2],E=A[3];return C?E?[w,Number(E)]:[w,void 0]:[w,w]}}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(s,l);var w=A.appendChild(document.createElement("CODE"));w.textContent=r;var C=A.getAttribute("data-src"),E=x.language;if(E==="none"){var T=(/\.(\w+)$/.exec(C)||[,"none"])[1];E=o[T]||T}n.util.setLanguage(w,E),n.util.setLanguage(A,E);var P=n.plugins.autoloader;P&&P.loadLanguages(E),g(C,function(F){A.setAttribute(s,f);var q=b(A.getAttribute("data-range"));if(q){var te=F.split(/\r\n?|\n/g),se=q[0],ae=q[1]==null?te.length:q[1];se<0&&(se+=te.length),se=Math.max(0,Math.min(se-1,te.length)),ae<0&&(ae+=te.length),ae=Math.max(0,Math.min(ae,te.length)),F=te.slice(se,ae).join(`
82
82
  `),A.hasAttribute("data-start")||A.setAttribute("data-start",String(se+1))}w.textContent=F,n.highlightElement(w)},function(F){A.setAttribute(s,h),w.textContent=F})}}),n.plugins.fileHighlight={highlight:function(A){for(var w=(A||document).querySelectorAll(m),C=0,E;E=w[C++];)n.highlightElement(E)}};var $=!1;n.fileHighlight=function(){$||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),$=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(Q4)),Q4.exports}var Vee=Lee();(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 o=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 s(g,b){var $=getComputedStyle(g),x=getComputedStyle(b);function A(w){return+w.substr(0,w.length-2)}return b.offsetTop+A(x.borderTopWidth)+A(x.paddingTop)-A($.paddingTop)}function l(g){return!g||!/pre/i.test(g.nodeName)?!1:!!(g.hasAttribute("data-line")||g.id&&Prism.util.isActive(g,t))}var f=!0;Prism.plugins.lineHighlight={highlightLines:function(b,$,x){$=typeof $=="string"?$:b.getAttribute("data-line")||"";var A=$.replace(/\s+/g,"").split(",").filter(Boolean),w=+b.getAttribute("data-line-offset")||0,C=o()?parseInt:parseFloat,E=C(getComputedStyle(b).lineHeight),T=Prism.util.isActive(b,e),P=b.querySelector("code"),F=T?b:P||b,q=[],te=P.textContent.match(n),se=te?te.length+1:1,ae=!P||F==P?0:s(b,P);A.forEach(function(be){var z=be.split("-"),G=+z[0],V=+z[1]||G;if(V=Math.min(se+w,V),!(V<G)){var R=b.querySelector('.line-highlight[data-range="'+be+'"]')||document.createElement("div");if(q.push(function(){R.setAttribute("aria-hidden","true"),R.setAttribute("data-range",be),R.className=(x||"")+" line-highlight"}),T&&Prism.plugins.lineNumbers){var K=Prism.plugins.lineNumbers.getLine(b,G),fe=Prism.plugins.lineNumbers.getLine(b,V);if(K){var M=K.offsetTop+ae+"px";q.push(function(){R.style.top=M})}if(fe){var oe=fe.offsetTop-K.offsetTop+fe.offsetHeight+"px";q.push(function(){R.style.height=oe})}}else q.push(function(){R.setAttribute("data-start",String(G)),V>G&&R.setAttribute("data-end",String(V)),R.style.top=(G-w-1)*E+ae+"px",R.textContent=new Array(V-G+2).join(`
83
83
  `)});q.push(function(){R.style.width=b.scrollWidth+"px"}),q.push(function(){F.appendChild(R)})}});var O=b.id;if(T&&Prism.util.isActive(b,t)&&O){i(b,t)||q.push(function(){b.classList.add(t)});var Ee=parseInt(b.getAttribute("data-start")||"1");r(".line-numbers-rows > span",b).forEach(function(be,z){var G=z+Ee;be.onclick=function(){var V=O+"."+G;f=!1,location.hash=V,setTimeout(function(){f=!0},1)}})}return function(){q.forEach(a)}}};function h(){var g=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(w){w.parentNode.removeChild(w)});var b=(g.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!b||document.getElementById(g))){var $=g.slice(0,g.lastIndexOf(".")),x=document.getElementById($);if(x){x.hasAttribute("data-line")||x.setAttribute("data-line","");var A=Prism.plugins.lineHighlight.highlightLines(x,b,"temporary ");A(),f&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var m=0;Prism.hooks.add("before-sanity-check",function(g){var b=g.element.parentElement;if(l(b)){var $=0;r(".line-highlight",b).forEach(function(x){$+=x.textContent.length,x.parentNode.removeChild(x)}),$&&/^(?: \n)+$/.test(g.code.slice(-$))&&(g.code=g.code.slice(0,-$))}}),Prism.hooks.add("complete",function g(b){var $=b.element.parentElement;if(l($)){clearTimeout(m);var x=Prism.plugins.lineNumbers,A=b.plugins&&b.plugins.lineNumbers;if(i($,e)&&x&&!A)Prism.hooks.add("line-numbers",g);else{var w=Prism.plugins.lineHighlight.highlightLines($);w(),m=setTimeout(h,1)}}}),window.addEventListener("hashchange",h),window.addEventListener("resize",function(){var g=r("pre").filter(l).map(function(b){return Prism.plugins.lineHighlight.highlightLines(b)});g.forEach(a)})})();const R9=I.createContext({});function Df(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const Jb=typeof window<"u",I9=Jb?I.useLayoutEffect:I.useEffect,ex=I.createContext(null);function tx(e,t){e.indexOf(t)===-1&&e.push(t)}function nx(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function Nee([...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 qo=(e,t,n)=>n>t?t:n<e?e:n;function z3(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let pc=()=>{},Ca=()=>{};process.env.NODE_ENV!=="production"&&(pc=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(z3(t,n))},Ca=(e,t,n)=>{if(!e)throw new Error(z3(t,n))});const Uo={},O9=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function L9(e){return typeof e=="object"&&e!==null}const V9=e=>/^0[^.\s]+$/u.test(e);function rx(e){let t;return()=>(t===void 0&&(t=e()),t)}const Qi=e=>e,jee=(e,t)=>n=>t(e(n)),$f=(...e)=>e.reduce(jee),Hd=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let ix=class{constructor(){this.subscriptions=[]}add(t){return tx(this.subscriptions,t),()=>nx(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 o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const Da=e=>e*1e3,to=e=>e/1e3;function N9(e,t){return t?e*(1e3/t):0}const Vw=new Set;function ax(e,t,n){e||Vw.has(t)||(console.warn(z3(t,n)),Vw.add(t))}const j9=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Kee=1e-7,zee=12;function qee(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=j9(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Kee&&++s<zee);return o}function Ef(e,t,n,r){if(e===t&&n===r)return Qi;const i=a=>qee(a,0,1,e,n);return a=>a===0||a===1?a:j9(i(a),t,r)}const K9=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,z9=e=>t=>1-e(1-t),q9=Ef(.33,1.53,.69,.99),ox=z9(q9),U9=K9(ox),W9=e=>(e*=2)<1?.5*ox(e):.5*(2-Math.pow(2,-10*(e-1))),sx=e=>1-Math.sin(Math.acos(e)),H9=z9(sx),G9=K9(sx),Uee=Ef(.42,0,1,1),Wee=Ef(0,0,.58,1),Y9=Ef(.42,0,.58,1),Hee=e=>Array.isArray(e)&&typeof e[0]!="number",Z9=e=>Array.isArray(e)&&typeof e[0]=="number",Nw={linear:Qi,easeIn:Uee,easeInOut:Y9,easeOut:Wee,circIn:sx,circInOut:G9,circOut:H9,backIn:ox,backInOut:U9,backOut:q9,anticipate:W9},Gee=e=>typeof e=="string",jw=e=>{if(Z9(e)){Ca(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return Ef(t,n,r,i)}else if(Gee(e))return Ca(Nw[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Nw[e];return e},Sh=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Yee(e,t){let n=new Set,r=new Set,i=!1,a=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function l(h){o.has(h)&&(f.schedule(h),e()),h(s)}const f={schedule:(h,m=!1,g=!1)=>{const $=g&&i?n:r;return m&&o.add(h),$.has(h)||$.add(h),h},cancel:h=>{r.delete(h),o.delete(h)},process:h=>{if(s=h,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,a&&(a=!1,f.process(h))}};return f}const Zee=40;function X9(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Sh.reduce((E,T)=>(E[T]=Yee(a),E),{}),{setup:s,read:l,resolveKeyframes:f,preUpdate:h,update:m,preRender:g,render:b,postRender:$}=o,x=()=>{const E=Uo.useManualTiming?i.timestamp:performance.now();n=!1,Uo.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(E-i.timestamp,Zee),1)),i.timestamp=E,i.isProcessing=!0,s.process(i),l.process(i),f.process(i),h.process(i),m.process(i),g.process(i),b.process(i),$.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(x))},A=()=>{n=!0,r=!0,i.isProcessing||e(x)};return{schedule:Sh.reduce((E,T)=>{const P=o[T];return E[T]=(F,q=!1,te=!1)=>(n||A(),P.schedule(F,q,te)),E},{}),cancel:E=>{for(let T=0;T<Sh.length;T++)o[Sh[T]].cancel(E)},state:i,steps:o}}const{schedule:Cn,cancel:Wo,state:br,steps:J4}=X9(typeof requestAnimationFrame<"u"?requestAnimationFrame:Qi,!0);let Hh;function Xee(){Hh=void 0}const oi={now:()=>(Hh===void 0&&oi.set(br.isProcessing||Uo.useManualTiming?br.timestamp:performance.now()),Hh),set:e=>{Hh=e,queueMicrotask(Xee)}},Q9=e=>t=>typeof t=="string"&&t.startsWith(e),ux=Q9("--"),Qee=Q9("var(--"),lx=e=>Qee(e)?Jee.test(e.split("/*")[0].trim()):!1,Jee=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,mc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Gd={...mc,transform:e=>qo(0,1,e)},Th={...mc,default:1},Td=e=>Math.round(e*1e5)/1e5,cx=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ete(e){return e==null}const tte=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,dx=(e,t)=>n=>!!(typeof n=="string"&&tte.test(n)&&n.startsWith(e)||t&&!ete(n)&&Object.prototype.hasOwnProperty.call(n,t)),J9=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,s]=r.match(cx);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},nte=e=>qo(0,255,e),ey={...mc,transform:e=>Math.round(nte(e))},hu={test:dx("rgb","red"),parse:J9("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ey.transform(e)+", "+ey.transform(t)+", "+ey.transform(n)+", "+Td(Gd.transform(r))+")"};function rte(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 q3={test:dx("#"),parse:rte,transform:hu.transform},Cf=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),hs=Cf("deg"),no=Cf("%"),At=Cf("px"),ite=Cf("vh"),ate=Cf("vw"),Kw={...no,parse:e=>no.parse(e)/100,transform:e=>no.transform(e*100)},Tl={test:dx("hsl","hue"),parse:J9("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+no.transform(Td(t))+", "+no.transform(Td(n))+", "+Td(Gd.transform(r))+")"},Jn={test:e=>hu.test(e)||q3.test(e)||Tl.test(e),parse:e=>hu.test(e)?hu.parse(e):Tl.test(e)?Tl.parse(e):q3.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?hu.transform(e):Tl.transform(e),getAnimatableNone:e=>{const t=Jn.parse(e);return t.alpha=0,Jn.transform(t)}},ote=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ste(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(cx))==null?void 0:t.length)||0)+(((n=e.match(ote))==null?void 0:n.length)||0)>0}const e8="number",t8="color",ute="var",lte="var(",zw="${}",cte=/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 Yd(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const s=t.replace(cte,l=>(Jn.test(l)?(r.color.push(a),i.push(t8),n.push(Jn.parse(l))):l.startsWith(lte)?(r.var.push(a),i.push(ute),n.push(l)):(r.number.push(a),i.push(e8),n.push(parseFloat(l))),++a,zw)).split(zw);return{values:n,split:s,indexes:r,types:i}}function n8(e){return Yd(e).values}function r8(e){const{split:t,types:n}=Yd(e),r=t.length;return i=>{let a="";for(let o=0;o<r;o++)if(a+=t[o],i[o]!==void 0){const s=n[o];s===e8?a+=Td(i[o]):s===t8?a+=Jn.transform(i[o]):a+=i[o]}return a}}const dte=e=>typeof e=="number"?0:Jn.test(e)?Jn.getAnimatableNone(e):e;function fte(e){const t=n8(e);return r8(e)(t.map(dte))}const ws={test:ste,parse:n8,createTransformer:r8,getAnimatableNone:fte};function ty(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 hte({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=ty(l,s,e+1/3),a=ty(l,s,e),o=ty(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function _p(e,t){return n=>n>0?t:e}const Pn=(e,t,n)=>e+(t-e)*n,ny=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},pte=[q3,hu,Tl],mte=e=>pte.find(t=>t.test(e));function qw(e){const t=mte(e);if(pc(!!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===Tl&&(n=hte(n)),n}const Uw=(e,t)=>{const n=qw(e),r=qw(t);if(!n||!r)return _p(e,t);const i={...n};return a=>(i.red=ny(n.red,r.red,a),i.green=ny(n.green,r.green,a),i.blue=ny(n.blue,r.blue,a),i.alpha=Pn(n.alpha,r.alpha,a),hu.transform(i))},U3=new Set(["none","hidden"]);function gte(e,t){return U3.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function vte(e,t){return n=>Pn(e,t,n)}function fx(e){return typeof e=="number"?vte:typeof e=="string"?lx(e)?_p:Jn.test(e)?Uw:xte:Array.isArray(e)?i8:typeof e=="object"?Jn.test(e)?Uw:yte:_p}function i8(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>fx(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}}function yte(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=fx(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function bte(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],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}const xte=(e,t)=>{const n=ws.createTransformer(t),r=Yd(e),i=Yd(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?U3.has(e)&&!i.values.length||U3.has(t)&&!r.values.length?gte(e,t):$f(i8(bte(r,i),i.values),n):(pc(!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"),_p(e,t))};function a8(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Pn(e,t,n):fx(e)(e,t)}const Dte=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Cn.update(t,n),stop:()=>Wo(t),now:()=>br.isProcessing?br.timestamp:oi.now()}},o8=(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)})`},Bp=2e4;function hx(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Bp;)t+=n,r=e.next(t);return t>=Bp?1/0:t}function $te(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(hx(r),Bp);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:to(i)}}const Ete=5;function s8(e,t,n){const r=Math.max(t-Ete,0);return N9(n-e(r),t-r)}const Bn={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},ry=.001;function Cte({duration:e=Bn.duration,bounce:t=Bn.bounce,velocity:n=Bn.velocity,mass:r=Bn.mass}){let i,a;pc(e<=Da(Bn.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=qo(Bn.minDamping,Bn.maxDamping,o),e=qo(Bn.minDuration,Bn.maxDuration,to(e)),o<1?(i=f=>{const h=f*o,m=h*e,g=h-n,b=W3(f,o),$=Math.exp(-m);return ry-g/b*$},a=f=>{const m=f*o*e,g=m*n+n,b=Math.pow(o,2)*Math.pow(f,2)*e,$=Math.exp(-m),x=W3(Math.pow(f,2),o);return(-i(f)+ry>0?-1:1)*((g-b)*$)/x}):(i=f=>{const h=Math.exp(-f*e),m=(f-n)*e+1;return-ry+h*m},a=f=>{const h=Math.exp(-f*e),m=(n-f)*(e*e);return h*m});const s=5/e,l=Ate(i,a,s);if(e=Da(e),isNaN(l))return{stiffness:Bn.stiffness,damping:Bn.damping,duration:e};{const f=Math.pow(l,2)*r;return{stiffness:f,damping:o*2*Math.sqrt(r*f),duration:e}}}const wte=12;function Ate(e,t,n){let r=n;for(let i=1;i<wte;i++)r=r-e(r)/t(r);return r}function W3(e,t){return e*Math.sqrt(1-t*t)}const Ste=["duration","bounce"],Tte=["stiffness","damping","mass"];function Ww(e,t){return t.some(n=>e[n]!==void 0)}function Pte(e){let t={velocity:Bn.velocity,stiffness:Bn.stiffness,damping:Bn.damping,mass:Bn.mass,isResolvedFromDuration:!1,...e};if(!Ww(e,Tte)&&Ww(e,Ste))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*qo(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Bn.mass,stiffness:i,damping:a}}else{const n=Cte(e);t={...t,...n,mass:Bn.mass},t.isResolvedFromDuration=!0}return t}function Fp(e=Bn.visualDuration,t=Bn.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],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:l,damping:f,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=Pte({...n,velocity:-to(n.velocity||0)}),$=g||0,x=f/(2*Math.sqrt(l*h)),A=o-a,w=to(Math.sqrt(l/h)),C=Math.abs(A)<5;r||(r=C?Bn.restSpeed.granular:Bn.restSpeed.default),i||(i=C?Bn.restDelta.granular:Bn.restDelta.default);let E;if(x<1){const P=W3(w,x);E=F=>{const q=Math.exp(-x*w*F);return o-q*(($+x*w*A)/P*Math.sin(P*F)+A*Math.cos(P*F))}}else if(x===1)E=P=>o-Math.exp(-w*P)*(A+($+w*A)*P);else{const P=w*Math.sqrt(x*x-1);E=F=>{const q=Math.exp(-x*w*F),te=Math.min(P*F,300);return o-q*(($+x*w*A)*Math.sinh(te)+P*A*Math.cosh(te))/P}}const T={calculatedDuration:b&&m||null,next:P=>{const F=E(P);if(b)s.done=P>=m;else{let q=P===0?$:0;x<1&&(q=P===0?Da($):s8(E,P,F));const te=Math.abs(q)<=r,se=Math.abs(o-F)<=i;s.done=te&&se}return s.value=s.done?o:F,s},toString:()=>{const P=Math.min(hx(T),Bp),F=o8(q=>T.next(P*q).value,P,30);return P+"ms "+F},toTransition:()=>{}};return T}Fp.applyToOptions=e=>{const t=$te(e,100,Fp);return e.ease=t.ease,e.duration=Da(t.duration),e.type="keyframes",e};function H3({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:f=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=te=>s!==void 0&&te<s||l!==void 0&&te>l,$=te=>s===void 0?l:l===void 0||Math.abs(s-te)<Math.abs(l-te)?s:l;let x=n*t;const A=m+x,w=o===void 0?A:o(A);w!==A&&(x=w-m);const C=te=>-x*Math.exp(-te/r),E=te=>w+C(te),T=te=>{const se=C(te),ae=E(te);g.done=Math.abs(se)<=f,g.value=g.done?w:ae};let P,F;const q=te=>{b(g.value)&&(P=te,F=Fp({keyframes:[g.value,$(g.value)],velocity:s8(E,te,g.value),damping:i,stiffness:a,restDelta:f,restSpeed:h}))};return q(0),{calculatedDuration:null,next:te=>{let se=!1;return!F&&P===void 0&&(se=!0,T(te),q(te)),P!==void 0&&te>=P?F.next(te-P):(!se&&T(te),g)}}}function _te(e,t,n){const r=[],i=n||Uo.mix||a8,a=e.length-1;for(let o=0;o<a;o++){let s=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Qi:t;s=$f(l,s)}r.push(s)}return r}function u8(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(Ca(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 o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=_te(t,r,i),l=s.length,f=h=>{if(o&&h<e[0])return t[0];let m=0;if(l>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=Hd(e[m],e[m+1],h);return s[m](g)};return n?h=>f(qo(e[0],e[a-1],h)):f}function Bte(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Hd(0,t,r);e.push(Pn(n,1,i))}}function Fte(e){const t=[0];return Bte(t,e.length-1),t}function kte(e,t){return e.map(n=>n*t)}function Mte(e,t){return e.map(()=>t||Y9).splice(0,e.length-1)}function Pl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Hee(r)?r.map(jw):jw(r),a={done:!1,value:t[0]},o=kte(n&&n.length===t.length?n:Fte(t),e),s=u8(o,t,{ease:Array.isArray(i)?i:Mte(t,i)});return{calculatedDuration:e,next:l=>(a.value=s(l),a.done=l>=e,a)}}const Rte=e=>e!==null;function px(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(Rte),s=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!s||r===void 0?a[s]:r}const Ite={decay:H3,inertia:H3,tween:Pl,keyframes:Pl,spring:Fp};function l8(e){typeof e.type=="string"&&(e.type=Ite[e.type])}let mx=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 Ote=e=>e/100;let gx=class extends mx{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!==oi.now()&&this.tick(oi.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;l8(t);const{type:n=Pl,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=t;let{keyframes:s}=t;const l=n||Pl;process.env.NODE_ENV!=="production"&&l!==Pl&&Ca(s.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${s}`,"spring-two-frames"),l!==Pl&&typeof s[0]!="number"&&(this.mixKeyframes=$f(Ote,a8(s[0],s[1])),s=[0,100]);const f=l({...t,keyframes:s});a==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-o})),f.calculatedDuration===null&&(f.calculatedDuration=hx(f));const{calculatedDuration:h}=f;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=f}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:o,resolvedDuration:s,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:f=0,keyframes:h,repeat:m,repeatType:g,repeatDelay:b,type:$,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 w=this.currentTime-f*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?w<0:w>i;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let E=this.currentTime,T=r;if(m){const te=Math.min(this.currentTime,i)/s;let se=Math.floor(te),ae=te%1;!ae&&te>=1&&(ae=1),ae===1&&se--,se=Math.min(se,m+1),!!(se%2)&&(g==="reverse"?(ae=1-ae,b&&(ae-=b/s)):g==="mirror"&&(T=o)),E=qo(0,1,ae)*s}const P=C?{done:!1,value:h[0]}:T.next(E);a&&(P.value=a(P.value));let{done:F}=P;!C&&l!==null&&(F=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const q=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return q&&$!==H3&&(P.value=px(h,this.options,A,this.speed)),x&&x(P.value),q&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return to(this.calculatedDuration)}get time(){return to(this.currentTime)}set time(t){var n;t=Da(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(oi.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=to(this.currentTime))}play(){var i,a;if(this.isStopped)return;const{driver:t=Dte,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(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(oi.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 Lte(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const pu=e=>e*180/Math.PI,G3=e=>{const t=pu(Math.atan2(e[1],e[0]));return Y3(t)},Vte={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:G3,rotateZ:G3,skewX:e=>pu(Math.atan(e[1])),skewY:e=>pu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Y3=e=>(e=e%360,e<0&&(e+=360),e),Hw=G3,Gw=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Yw=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Nte={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Gw,scaleY:Yw,scale:e=>(Gw(e)+Yw(e))/2,rotateX:e=>Y3(pu(Math.atan2(e[6],e[5]))),rotateY:e=>Y3(pu(Math.atan2(-e[2],e[0]))),rotateZ:Hw,rotate:Hw,skewX:e=>pu(Math.atan(e[4])),skewY:e=>pu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Z3(e){return e.includes("scale")?1:0}function X3(e,t){if(!e||e==="none")return Z3(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Nte,i=n;else{const s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Vte,i=s}if(!i)return Z3(t);const a=r[t],o=i[1].split(",").map(Kte);return typeof a=="function"?a(o):o[a]}const jte=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return X3(n,t)};function Kte(e){return parseFloat(e.trim())}const gc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vc=new Set(gc),Zw=e=>e===mc||e===At,zte=new Set(["x","y","z"]),qte=gc.filter(e=>!zte.has(e));function Ute(e){const t=[];return qte.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const bu={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})=>X3(t,"x"),y:(e,{transform:t})=>X3(t,"y")};bu.translateX=bu.x;bu.translateY=bu.y;const xu=new Set;let Q3=!1,J3=!1,e1=!1;function c8(){if(J3){const e=Array.from(xu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Ute(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,o])=>{var s;(s=r.getValue(a))==null||s.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}J3=!1,Q3=!1,xu.forEach(e=>e.complete(e1)),xu.clear()}function d8(){xu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(J3=!0)})}function Wte(){e1=!0,d8(),c8(),e1=!1}let vx=class{constructor(t,n,r,i,a,o=!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=o}scheduleResolve(){this.state="scheduled",this.isAsync?(xu.add(this),Q3||(Q3=!0,Cn.read(d8),Cn.resolveKeyframes(c8))):(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(),o=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const s=r.readValue(n,o);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=o),i&&a===void 0&&i.set(t[0])}Lte(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),xu.delete(this)}cancel(){this.state==="scheduled"&&(xu.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};const Hte=e=>e.startsWith("--");function Gte(e,t,n){Hte(t)?e.style.setProperty(t,n):e.style[t]=n}const Yte=rx(()=>window.ScrollTimeline!==void 0),Zte={};function Xte(e,t){const n=rx(e);return()=>Zte[t]??n()}const f8=Xte(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Dd=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Xw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Dd([0,.65,.55,1]),circOut:Dd([.55,0,1,.45]),backIn:Dd([.31,.01,.66,-.59]),backOut:Dd([.33,1.53,.69,.99])};function h8(e,t){if(e)return typeof e=="function"?f8()?o8(e,t):"ease-out":Z9(e)?Dd(e):Array.isArray(e)?e.map(n=>h8(n,t)||Xw.easeOut):Xw[e]}function Qte(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:s="easeOut",times:l}={},f=void 0){const h={[t]:n};l&&(h.offset=l);const m=h8(s,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:o==="reverse"?"alternate":"normal"};return f&&(g.pseudoElement=f),e.animate(h,g)}function p8(e){return typeof e=="function"&&"applyToOptions"in e}function Jte({type:e,...t}){return p8(e)&&f8()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}let ene=class extends mx{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:o=!1,finalKeyframe:s,onComplete:l}=t;this.isPseudoElement=!!a,this.allowFlatten=o,this.options=t,Ca(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const f=Jte(t);this.animation=Qte(n,r,i,f,a),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const h=px(i,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(h):Gte(n,r,h),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return to(Number(t))}get time(){return to(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Da(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&&Yte()?(this.animation.timeline=t,Qi):n(this)}};const m8={anticipate:W9,backInOut:U9,circInOut:G9};function tne(e){return e in m8}function nne(e){typeof e.ease=="string"&&tne(e.ease)&&(e.ease=m8[e.ease])}const Qw=10;let rne=class extends ene{constructor(t){nne(t),l8(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const s=new gx({...o,autoplay:!1}),l=Da(this.finishedTime??this.time);n.setWithVelocity(s.sample(l-Qw).value,s.sample(l).value,Qw),s.stop()}};const Jw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ws.test(e)||e==="0")&&!e.startsWith("url("));function ine(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 ane(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],o=Jw(i,t),s=Jw(a,t);return pc(o===s,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,"value-not-animatable"),!o||!s?!1:ine(e)||(n==="spring"||p8(n))&&r}function t1(e){e.duration=0,e.type}const one=new Set(["opacity","clipPath","filter","transform"]),sne=rx(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function une(e){var h;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;if(!(((h=t==null?void 0:t.owner)==null?void 0:h.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:f}=t.owner.getProps();return sne()&&n&&one.has(n)&&(n!=="transform"||!f)&&!l&&!r&&i!=="mirror"&&a!==0&&o!=="inertia"}const lne=40;let cne=class extends mx{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:o="loop",keyframes:s,name:l,motionValue:f,element:h,...m}){var $;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=oi.now();const g={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:o,name:l,motionValue:f,element:h,...m},b=(h==null?void 0:h.KeyframeResolver)||vx;this.keyframeResolver=new b(s,(x,A,w)=>this.onKeyframesResolved(x,A,g,!w),l,f,h),($=this.keyframeResolver)==null||$.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:o,velocity:s,delay:l,isHandoff:f,onUpdate:h}=r;this.resolvedAt=oi.now(),ane(t,a,o,s)||((Uo.instantAnimations||!l)&&(h==null||h(px(t,r,n))),t[0]=t[t.length-1],t1(r),r.repeat=0);const g={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>lne?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!f&&une(g)?new rne({...g,element:g.motionValue.owner.current}):new gx(g);b.finished.then(()=>this.notifyFinished()).catch(Qi),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(),Wte()),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 dne=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function fne(e){const t=dne.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const hne=4;function g8(e,t,n=1){Ca(n<=hne,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=fne(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return O9(o)?parseFloat(o):o}return lx(i)?g8(i,t,n+1):i}function yx(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const v8=new Set(["width","height","top","left","right","bottom",...gc]),pne={test:e=>e==="auto",parse:e=>e},y8=e=>t=>t.test(e),b8=[mc,At,no,hs,ate,ite,pne],eA=e=>b8.find(y8(e));function mne(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||V9(e):!0}const gne=new Set(["brightness","contrast","saturate","opacity"]);function vne(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(cx)||[];if(!r)return e;const i=n.replace(r,"");let a=gne.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const yne=/\b([a-z-]*)\(.*?\)/gu,n1={...ws,getAnimatableNone:e=>{const t=e.match(yne);return t?t.map(vne).join(" "):e}},tA={...mc,transform:Math.round},bne={rotate:hs,rotateX:hs,rotateY:hs,rotateZ:hs,scale:Th,scaleX:Th,scaleY:Th,scaleZ:Th,skew:hs,skewX:hs,skewY:hs,distance:At,translateX:At,translateY:At,translateZ:At,x:At,y:At,z:At,perspective:At,transformPerspective:At,opacity:Gd,originX:Kw,originY:Kw,originZ:At},bx={borderWidth:At,borderTopWidth:At,borderRightWidth:At,borderBottomWidth:At,borderLeftWidth:At,borderRadius:At,radius:At,borderTopLeftRadius:At,borderTopRightRadius:At,borderBottomRightRadius:At,borderBottomLeftRadius:At,width:At,maxWidth:At,height:At,maxHeight:At,top:At,right:At,bottom:At,left:At,padding:At,paddingTop:At,paddingRight:At,paddingBottom:At,paddingLeft:At,margin:At,marginTop:At,marginRight:At,marginBottom:At,marginLeft:At,backgroundPositionX:At,backgroundPositionY:At,...bne,zIndex:tA,fillOpacity:Gd,strokeOpacity:Gd,numOctaves:tA},xne={...bx,color:Jn,backgroundColor:Jn,outlineColor:Jn,fill:Jn,stroke:Jn,borderColor:Jn,borderTopColor:Jn,borderRightColor:Jn,borderBottomColor:Jn,borderLeftColor:Jn,filter:n1,WebkitFilter:n1},x8=e=>xne[e];function D8(e,t){let n=x8(e);return n!==n1&&(n=ws),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Dne=new Set(["auto","none","0"]);function $ne(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!Dne.has(a)&&Yd(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=D8(n,i)}let Ene=class extends vx{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 l=0;l<t.length;l++){let f=t[l];if(typeof f=="string"&&(f=f.trim(),lx(f))){const h=g8(f,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!v8.has(r)||t.length!==2)return;const[i,a]=t,o=eA(i),s=eA(a);if(o!==s)if(Zw(o)&&Zw(s))for(let l=0;l<t.length;l++){const f=t[l];typeof f=="string"&&(t[l]=parseFloat(f))}else bu[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||mne(t[i]))&&r.push(i);r.length&&$ne(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=bu[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 s;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,o=r[a];r[a]=bu[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(s=this.removedTransforms)!=null&&s.length&&this.removedTransforms.forEach(([l,f])=>{t.getValue(l).set(f)}),this.resolveNoneKeyframes()}};function Cne(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 $8=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function wne(e){return L9(e)&&"offsetHeight"in e}const nA=30,Ane=e=>!isNaN(parseFloat(e)),Pd={current:void 0};let Sne=class{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var a;const i=oi.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 o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=oi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Ane(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ax(!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 ix);const r=this.events[t].add(n);return t==="change"?()=>{r(),Cn.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 Pd.current&&Pd.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=oi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>nA)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,nA);return N9(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 Pu(e,t){return new Sne(e,t)}const{schedule:xx}=X9(queueMicrotask,!1),ma={x:!1,y:!1};function E8(){return ma.x||ma.y}function Tne(e){return e==="x"||e==="y"?ma[e]?null:(ma[e]=!0,()=>{ma[e]=!1}):ma.x||ma.y?null:(ma.x=ma.y=!0,()=>{ma.x=ma.y=!1})}function C8(e,t){const n=Cne(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function rA(e){return!(e.pointerType==="touch"||E8())}function Pne(e,t,n={}){const[r,i,a]=C8(e,n),o=s=>{if(!rA(s))return;const{target:l}=s,f=t(l,s);if(typeof f!="function"||!l)return;const h=m=>{rA(m)&&(f(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(s=>{s.addEventListener("pointerenter",o,i)}),a}const w8=(e,t)=>t?e===t?!0:w8(e,t.parentElement):!1,Dx=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,_ne=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Bne(e){return _ne.has(e.tagName)||e.tabIndex!==-1}const Gh=new WeakSet;function iA(e){return t=>{t.key==="Enter"&&e(t)}}function iy(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Fne=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=iA(()=>{if(Gh.has(n))return;iy(n,"down");const i=iA(()=>{iy(n,"up")}),a=()=>iy(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 aA(e){return Dx(e)&&!E8()}function kne(e,t,n={}){const[r,i,a]=C8(e,n),o=s=>{const l=s.currentTarget;if(!aA(s))return;Gh.add(l);const f=t(l,s),h=(b,$)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),Gh.has(l)&&Gh.delete(l),aA(b)&&typeof f=="function"&&f(b,{success:$})},m=b=>{h(b,l===window||l===document||n.useGlobalTarget||w8(l,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(s=>{(n.useGlobalTarget?window:s).addEventListener("pointerdown",o,i),wne(s)&&(s.addEventListener("focus",f=>Fne(f,i)),!Bne(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),a}function A8(e){return L9(e)&&"ownerSVGElement"in e}function Mne(e){return A8(e)&&e.tagName==="svg"}function Rne(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=u8(i,a,o);return t?s(r):s}const xr=e=>!!(e&&e.getVelocity),Ine=[...b8,Jn,ws],One=e=>Ine.find(y8(e)),$x=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Lne(e=!0){const t=I.useContext(ex);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 o=I.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}const S8=I.createContext({strict:!1}),oA={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"]},nc={};for(const e in oA)nc[e]={isEnabled:t=>oA[e].some(n=>!!t[n])};function Vne(e){for(const t in e)nc[t]={...nc[t],...e[t]}}const Nne=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 kp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Nne.has(e)}let T8=e=>!kp(e);function jne(e){typeof e=="function"&&(T8=t=>t.startsWith("on")?!kp(t):e(t))}try{jne(require("@emotion/is-prop-valid").default)}catch{}function Kne(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(T8(i)||n===!0&&kp(i)||!t&&!kp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Mm=I.createContext({});function Rm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Zd(e){return typeof e=="string"||Array.isArray(e)}const Ex=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Cx=["initial",...Ex];function Im(e){return Rm(e.animate)||Cx.some(t=>Zd(e[t]))}function P8(e){return!!(Im(e)||e.variants)}function zne(e,t){if(Im(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Zd(n)?n:void 0,animate:Zd(r)?r:void 0}}return e.inherit!==!1?t:{}}function qne(e){const{initial:t,animate:n}=zne(e,I.useContext(Mm));return I.useMemo(()=>({initial:t,animate:n}),[sA(t),sA(n)])}function sA(e){return Array.isArray(e)?e.join(" "):e}const Xd={};function Une(e){for(const t in e)Xd[t]=e[t],ux(t)&&(Xd[t].isCSSVariable=!0)}function _8(e,{layout:t,layoutId:n}){return vc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Xd[e]||e==="opacity")}const Wne={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Hne=gc.length;function Gne(e,t,n){let r="",i=!0;for(let a=0;a<Hne;a++){const o=gc[a],s=e[o];if(s===void 0)continue;let l=!0;if(typeof s=="number"?l=s===(o.startsWith("scale")?1:0):l=parseFloat(s)===0,!l||n){const f=$8(s,bx[o]);if(!l){i=!1;const h=Wne[o]||o;r+=`${h}(${f}) `}n&&(t[o]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function wx(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let o=!1,s=!1;for(const l in t){const f=t[l];if(vc.has(l)){o=!0;continue}else if(ux(l)){i[l]=f;continue}else{const h=$8(f,bx[l]);l.startsWith("origin")?(s=!0,a[l]=h):r[l]=h}}if(t.transform||(o||n?r.transform=Gne(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:l="50%",originY:f="50%",originZ:h=0}=a;r.transformOrigin=`${l} ${f} ${h}`}}const Ax=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function B8(e,t,n){for(const r in t)!xr(t[r])&&!_8(r,n)&&(e[r]=t[r])}function Yne({transformTemplate:e},t){return I.useMemo(()=>{const n=Ax();return wx(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Zne(e,t){const n=e.style||{},r={};return B8(r,n,e),Object.assign(r,Yne(e,t)),r}function Xne(e,t){const n={},r=Zne(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 Qne={offset:"stroke-dashoffset",array:"stroke-dasharray"},Jne={offset:"strokeDashoffset",array:"strokeDasharray"};function ere(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?Qne:Jne;e[a.offset]=At.transform(-r);const o=At.transform(t),s=At.transform(n);e[a.array]=`${o} ${s}`}function F8(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},l,f,h){if(wx(e,s,f),l){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&&ere(m,i,a,o,!1)}const k8=()=>({...Ax(),attrs:{}}),M8=e=>typeof e=="string"&&e.toLowerCase()==="svg";function tre(e,t,n,r){const i=I.useMemo(()=>{const a=k8();return F8(a,t,M8(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};B8(a,e.style,e),i.style={...a,...i.style}}return i}const nre=["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 Sx(e){return typeof e!="string"||e.includes("-")?!1:!!(nre.indexOf(e)>-1||/[A-Z]/u.test(e))}function rre(e,t,n,{latestValues:r},i,a=!1){const s=(Sx(e)?tre:Xne)(t,r,i,e),l=Kne(t,typeof e=="string",a),f=e!==I.Fragment?{...l,...s,ref:n}:{},{children:h}=t,m=I.useMemo(()=>xr(h)?h.get():h,[h]);return I.createElement(e,{...f,children:m})}function uA(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Tx(e,t,n,r){if(typeof t=="function"){const[i,a]=uA(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]=uA(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function Yh(e){return xr(e)?e.get():e}function ire({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:are(n,r,i,e),renderState:t()}}function are(e,t,n,r){const i={},a=r(e,{});for(const g in a)i[g]=Yh(a[g]);let{initial:o,animate:s}=e;const l=Im(e),f=P8(e);t&&f&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let h=n?n.initial===!1:!1;h=h||o===!1;const m=h?s:o;if(m&&typeof m!="boolean"&&!Rm(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const $=Tx(e,g[b]);if($){const{transitionEnd:x,transition:A,...w}=$;for(const C in w){let E=w[C];if(Array.isArray(E)){const T=h?E.length-1:0;E=E[T]}E!==null&&(i[C]=E)}for(const C in x)i[C]=x[C]}}}return i}const R8=e=>(t,n)=>{const r=I.useContext(Mm),i=I.useContext(ex),a=()=>ire(e,t,r,i);return n?a():Df(a)};function Px(e,t,n){var a;const{style:r}=e,i={};for(const o in r)(xr(r[o])||t.style&&xr(t.style[o])||_8(o,e)||((a=n==null?void 0:n.getValue(o))==null?void 0:a.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const ore=R8({scrapeMotionValuesFromProps:Px,createRenderState:Ax});function I8(e,t,n){const r=Px(e,t,n);for(const i in e)if(xr(e[i])||xr(t[i])){const a=gc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const sre=R8({scrapeMotionValuesFromProps:I8,createRenderState:k8}),ure=Symbol.for("motionComponentSymbol");function _l(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function lre(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):_l(n)&&(n.current=r))},[t])}const _x=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),cre="framerAppearId",O8="data-"+_x(cre),L8=I.createContext({});function dre(e,t,n,r,i){var x,A;const{visualElement:a}=I.useContext(Mm),o=I.useContext(S8),s=I.useContext(ex),l=I.useContext($x).reducedMotion,f=I.useRef(null);r=r||o.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:a,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const h=f.current,m=I.useContext(L8);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&fre(f.current,n,i,m);const g=I.useRef(!1);I.useInsertionEffect(()=>{h&&g.current&&h.update(n,s)});const b=n[O8],$=I.useRef(!!b&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,b))&&((A=window.MotionHasOptimisedAnimation)==null?void 0:A.call(window,b)));return I9(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),$.current&&h.animationState&&h.animationState.animateChanges())}),I.useEffect(()=>{h&&(!$.current&&h.animationState&&h.animationState.animateChanges(),$.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)==null||w.call(window,b)}),$.current=!1),h.enteringChildren=void 0)}),h}function fre(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:l,layoutRoot:f,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:V8(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&_l(s),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:f})}function V8(e){if(e)return e.options.allowProjection!==!1?e.projection:V8(e.parent)}function ay(e,{forwardMotionProps:t=!1}={},n,r){n&&Vne(n);const i=Sx(e)?sre:ore;function a(s,l){let f;const h={...I.useContext($x),...s,layoutId:hre(s)},{isStatic:m}=h,g=qne(s),b=i(s,m);if(!m&&Jb){pre(h,n);const $=mre(h);f=$.MeasureLayout,g.visualElement=dre(e,b,h,r,$.ProjectionNode)}return io.jsxs(Mm.Provider,{value:g,children:[f&&g.visualElement?io.jsx(f,{visualElement:g.visualElement,...h}):null,rre(e,s,lre(b,g.visualElement,l),b,m,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const o=I.forwardRef(a);return o[ure]=e,o}function hre({layoutId:e}){const t=I.useContext(R9).id;return t&&e!==void 0?t+"-"+e:e}function pre(e,t){const n=I.useContext(S8).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?pc(!1,r,"lazy-strict-mode"):Ca(!1,r,"lazy-strict-mode")}}function mre(e){const{drag:t,layout:n}=nc;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 gre(e,t){if(typeof Proxy>"u")return ay;const n=new Map,r=(a,o)=>ay(a,o,e,t),i=(a,o)=>(process.env.NODE_ENV!=="production"&&ax(!1,"motion() is deprecated. Use motion.create() instead."),r(a,o));return new Proxy(i,{get:(a,o)=>o==="create"?r:(n.has(o)||n.set(o,ay(o,void 0,e,t)),n.get(o))})}function N8({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function vre({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function yre(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 oy(e){return e===void 0||e===1}function r1({scale:e,scaleX:t,scaleY:n}){return!oy(e)||!oy(t)||!oy(n)}function ou(e){return r1(e)||j8(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function j8(e){return lA(e.x)||lA(e.y)}function lA(e){return e&&e!=="0%"}function Mp(e,t,n){const r=e-n,i=t*r;return n+i}function cA(e,t,n,r,i){return i!==void 0&&(e=Mp(e,i,r)),Mp(e,n,r)+t}function i1(e,t=0,n=1,r,i){e.min=cA(e.min,t,n,r,i),e.max=cA(e.max,t,n,r,i)}function K8(e,{x:t,y:n}){i1(e.x,t.translate,t.scale,t.originPoint),i1(e.y,n.translate,n.scale,n.originPoint)}const dA=.999999999999,fA=1.0000000000001;function bre(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;const{visualElement:l}=a.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Fl(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,K8(e,o)),r&&ou(a.latestValues)&&Fl(e,a.latestValues))}t.x<fA&&t.x>dA&&(t.x=1),t.y<fA&&t.y>dA&&(t.y=1)}function Bl(e,t){e.min=e.min+t,e.max=e.max+t}function hA(e,t,n,r,i=.5){const a=Pn(e.min,e.max,i);i1(e,t,n,a,r)}function Fl(e,t){hA(e.x,t.x,t.scaleX,t.scale,t.originX),hA(e.y,t.y,t.scaleY,t.scale,t.originY)}function z8(e,t){return N8(yre(e.getBoundingClientRect(),t))}function xre(e,t,n){const r=z8(e,n),{scroll:i}=t;return i&&(Bl(r.x,i.offset.x),Bl(r.y,i.offset.y)),r}const pA=()=>({translate:0,scale:1,origin:0,originPoint:0}),kl=()=>({x:pA(),y:pA()}),mA=()=>({min:0,max:0}),Hn=()=>({x:mA(),y:mA()}),a1={current:null},q8={current:!1};function Dre(){if(q8.current=!0,!!Jb)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>a1.current=e.matches;e.addEventListener("change",t),t()}else a1.current=!1}const $re=new WeakMap;function Ere(e,t,n){for(const r in t){const i=t[r],a=n[r];if(xr(i))e.addValue(r,i);else if(xr(a))e.addValue(r,Pu(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,Pu(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const gA=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Cre=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=vx,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=oi.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Cn.render(this.render,!1,!0))};const{latestValues:l,renderState:f}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Im(n),this.isVariantNode=P8(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];l[g]!==void 0&&xr(b)&&b.set(l[g])}}mount(t){var n;this.current=t,$re.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)),q8.current||Dre(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:a1.current,process.env.NODE_ENV!=="production"&&ax(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(),Wo(this.notifyUpdate),Wo(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=vc.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Cn.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 nc){const n=nc[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):Hn()}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<gA.length;r++){const i=gA[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,o=t[a];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Ere(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=Pu(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"&&(O9(r)||V9(r))?r=parseFloat(r):!One(r)&&ws.test(n)&&(r=D8(t,n)),this.setBaseTarget(t,xr(r)?r.get():r)),xr(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 o=Tx(this.props,n,(a=this.presenceContext)==null?void 0:a.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!xr(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 ix),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){xx.render(this.render)}},U8=class extends Cre{constructor(){super(...arguments),this.KeyframeResolver=Ene}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;xr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function W8(e,{style:t,vars:n},r,i){const a=e.style;let o;for(o in t)a[o]=t[o];i==null||i.applyProjectionStyles(a,r);for(o in n)a.setProperty(o,n[o])}function wre(e){return window.getComputedStyle(e)}let Are=class extends U8{constructor(){super(...arguments),this.type="html",this.renderInstance=W8}readValueFromInstance(t,n){var r;if(vc.has(n))return(r=this.projection)!=null&&r.isProjecting?Z3(n):jte(t,n);{const i=wre(t),a=(ux(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return z8(t,n)}build(t,n,r){wx(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Px(t,n,r)}};const H8=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 Sre(e,t,n,r){W8(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(H8.has(i)?i:_x(i),t.attrs[i])}let Tre=class extends U8{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Hn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(vc.has(n)){const r=x8(n);return r&&r.default||0}return n=H8.has(n)?n:_x(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return I8(t,n,r)}build(t,n,r){F8(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Sre(t,n,r,i)}mount(t){this.isSVGTag=M8(t.tagName),super.mount(t)}};const Pre=(e,t)=>Sx(e)?new Tre(t):new Are(t,{allowProjection:e!==I.Fragment});function Ul(e,t,n){const r=e.getProps();return Tx(r,t,n!==void 0?n:r.custom,e)}const o1=e=>Array.isArray(e);function _re(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Pu(n))}function Bre(e){return o1(e)?e[e.length-1]||0:e}function Fre(e,t){const n=Ul(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const s=Bre(a[o]);_re(e,o,s)}}function kre(e){return!!(xr(e)&&e.add)}function s1(e,t){const n=e.getValue("willChange");if(kre(n))return n.add(t);if(!n&&Uo.WillChange){const r=new Uo.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function G8(e){return e.props[O8]}const Mre=e=>e!==null;function Rre(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Mre),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const Ire={type:"spring",stiffness:500,damping:25,restSpeed:10},Ore=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Lre={type:"keyframes",duration:.8},Vre={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Nre=(e,{keyframes:t})=>t.length>2?Lre:vc.has(e)?e.startsWith("scale")?Ore(t[1]):Ire:Vre;function jre({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:l,elapsed:f,...h}){return!!Object.keys(h).length}const Bx=(e,t,n,r={},i,a)=>o=>{const s=yx(r,e)||{},l=s.delay||r.delay||0;let{elapsed:f=0}=r;f=f-Da(l);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-f,onUpdate:g=>{t.set(g),s.onUpdate&&s.onUpdate(g)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};jre(s)||Object.assign(h,Nre(e,h)),h.duration&&(h.duration=Da(h.duration)),h.repeatDelay&&(h.repeatDelay=Da(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(t1(h),h.delay===0&&(m=!0)),(Uo.instantAnimations||Uo.skipAnimations)&&(m=!0,t1(h),h.delay=0),h.allowFlatten=!s.type&&!s.ease,m&&!a&&t.get()!==void 0){const g=Rre(h.keyframes,s);if(g!==void 0){Cn.update(()=>{h.onUpdate(g),h.onComplete()});return}}return s.isSync?new gx(h):new cne(h)};function Kre({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Y8(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=t;r&&(a=r);const l=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in s){const m=e.getValue(h,e.latestValues[h]??null),g=s[h];if(g===void 0||f&&Kre(f,h))continue;const b={delay:n,...yx(a||{},h)},$=m.get();if($!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===$&&!b.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const w=G8(e);if(w){const C=window.MotionHandoffAnimation(w,h,Cn);C!==null&&(b.startTime=C,x=!0)}}s1(e,h),m.start(Bx(h,m,g,e.shouldReduceMotion&&v8.has(h)?{type:!1}:b,e,x));const A=m.animation;A&&l.push(A)}return o&&Promise.all(l).then(()=>{Cn.update(()=>{o&&Fre(e,o)})}),l}function Z8(e,t,n,r=0,i=1){const a=Array.from(e).sort((f,h)=>f.sortNodePosition(h)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n=="function"?n(a,o):i===1?a*r:s-a*r}function u1(e,t,n={}){var l;const r=Ul(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(Y8(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return zre(e,t,f,h,m,g,n)}:()=>Promise.resolve(),{when:s}=i;if(s){const[f,h]=s==="beforeChildren"?[a,o]:[o,a];return f().then(()=>h())}else return Promise.all([a(),o(n.delay)])}function zre(e,t,n=0,r=0,i=0,a=1,o){const s=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),s.push(u1(l,t,{...o,delay:n+(typeof r=="function"?0:r)+Z8(e.variantChildren,l,r,i,a)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}function qre(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>u1(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=u1(e,t,n);else{const i=typeof t=="function"?Ul(e,t,n.custom):t;r=Promise.all(Y8(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function X8(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 Ure=Cx.length;function Q8(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Q8(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Ure;n++){const r=Cx[n],i=e.props[r];(Zd(i)||i===!1)&&(t[r]=i)}return t}const Wre=[...Ex].reverse(),Hre=Ex.length;function Gre(e){return t=>Promise.all(t.map(({animation:n,options:r})=>qre(e,n,r)))}function Yre(e){let t=Gre(e),n=vA(),r=!0;const i=l=>(f,h)=>{var g;const m=Ul(e,h,l==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:b,transitionEnd:$,...x}=m;f={...f,...x,...$}}return f};function a(l){t=l(e)}function o(l){const{props:f}=e,h=Q8(e.parent)||{},m=[],g=new Set;let b={},$=1/0;for(let A=0;A<Hre;A++){const w=Wre[A],C=n[w],E=f[w]!==void 0?f[w]:h[w],T=Zd(E),P=w===l?C.isActive:null;P===!1&&($=A);let F=E===h[w]&&E!==f[w]&&T;if(F&&r&&e.manuallyAnimateOnMount&&(F=!1),C.protectedKeys={...b},!C.isActive&&P===null||!E&&!C.prevProp||Rm(E)||typeof E=="boolean")continue;const q=Zre(C.prevProp,E);let te=q||w===l&&C.isActive&&!F&&T||A>$&&T,se=!1;const ae=Array.isArray(E)?E:[E];let O=ae.reduce(i(w),{});P===!1&&(O={});const{prevResolvedValues:Ee={}}=C,be={...Ee,...O},z=R=>{te=!0,g.has(R)&&(se=!0,g.delete(R)),C.needsAnimating[R]=!0;const K=e.getValue(R);K&&(K.liveStyle=!1)};for(const R in be){const K=O[R],fe=Ee[R];if(b.hasOwnProperty(R))continue;let M=!1;o1(K)&&o1(fe)?M=!X8(K,fe):M=K!==fe,M?K!=null?z(R):g.add(R):K!==void 0&&g.has(R)?z(R):C.protectedKeys[R]=!0}C.prevProp=E,C.prevResolvedValues=O,C.isActive&&(b={...b,...O}),r&&e.blockInitialAnimation&&(te=!1);const G=F&&q;te&&(!G||se)&&m.push(...ae.map(R=>{const K={type:w};if(typeof R=="string"&&r&&!G&&e.manuallyAnimateOnMount&&e.parent){const{parent:fe}=e,M=Ul(fe,R);if(fe.enteringChildren&&M){const{delayChildren:oe}=M.transition||{};K.delay=Z8(fe.enteringChildren,e,oe)}}return{animation:R,options:K}}))}if(g.size){const A={};if(typeof f.initial!="boolean"){const w=Ul(e,Array.isArray(f.initial)?f.initial[0]:f.initial);w&&w.transition&&(A.transition=w.transition)}g.forEach(w=>{const C=e.getBaseTarget(w),E=e.getValue(w);E&&(E.liveStyle=!0),A[w]=C??null}),m.push({animation:A})}let x=!!m.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(m):Promise.resolve()}function s(l,f){var m;if(n[l].isActive===f)return Promise.resolve();(m=e.variantChildren)==null||m.forEach(g=>{var b;return(b=g.animationState)==null?void 0:b.setActive(l,f)}),n[l].isActive=f;const h=o(l);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=vA(),r=!0}}}function Zre(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!X8(t,e):!1}function iu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function vA(){return{animate:iu(!0),whileInView:iu(),whileHover:iu(),whileTap:iu(),whileDrag:iu(),whileFocus:iu(),exit:iu()}}let _s=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},Xre=class extends _s{constructor(t){super(t),t.animationState||(t.animationState=Yre(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Rm(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)}},Qre=0,Jre=class extends _s{constructor(){super(...arguments),this.id=Qre++}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 eie={animation:{Feature:Xre},exit:{Feature:Jre}};function Qd(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function wf(e){return{point:{x:e.pageX,y:e.pageY}}}const tie=e=>t=>Dx(t)&&e(t,wf(t));function _d(e,t,n,r){return Qd(e,t,tie(n),r)}const J8=1e-4,nie=1-J8,rie=1+J8,eM=.01,iie=0-eM,aie=0+eM;function Nr(e){return e.max-e.min}function oie(e,t,n){return Math.abs(e-t)<=n}function yA(e,t,n,r=.5){e.origin=r,e.originPoint=Pn(t.min,t.max,e.origin),e.scale=Nr(n)/Nr(t),e.translate=Pn(n.min,n.max,e.origin)-e.originPoint,(e.scale>=nie&&e.scale<=rie||isNaN(e.scale))&&(e.scale=1),(e.translate>=iie&&e.translate<=aie||isNaN(e.translate))&&(e.translate=0)}function Bd(e,t,n,r){yA(e.x,t.x,n.x,r?r.originX:void 0),yA(e.y,t.y,n.y,r?r.originY:void 0)}function bA(e,t,n){e.min=n.min+t.min,e.max=e.min+Nr(t)}function sie(e,t,n){bA(e.x,t.x,n.x),bA(e.y,t.y,n.y)}function xA(e,t,n){e.min=t.min-n.min,e.max=e.min+Nr(t)}function Fd(e,t,n){xA(e.x,t.x,n.x),xA(e.y,t.y,n.y)}function Ki(e){return[e("x"),e("y")]}const tM=({current:e})=>e?e.ownerDocument.defaultView:null,DA=(e,t)=>Math.abs(e-t);function uie(e,t){const n=DA(e.x,t.x),r=DA(e.y,t.y);return Math.sqrt(n**2+r**2)}class nM{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:o=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=uy(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,$=uie(g.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!$)return;const{point:x}=g,{timestamp:A}=br;this.history.push({...x,timestamp:A});const{onStart:w,onMove:C}=this.handlers;b||(w&&w(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,g)},this.handlePointerMove=(g,b)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=sy(b,this.transformPagePoint),Cn.update(this.updatePoint,!0)},this.handlePointerUp=(g,b)=>{this.end();const{onEnd:$,onSessionEnd:x,resumeAnimation:A}=this.handlers;if(this.dragSnapToOrigin&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=uy(g.type==="pointercancel"?this.lastMoveEventInfo:sy(b,this.transformPagePoint),this.history);this.startEvent&&$&&$(g,w),x&&x(g,w)},!Dx(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const s=wf(t),l=sy(s,this.transformPagePoint),{point:f}=l,{timestamp:h}=br;this.history=[{...f,timestamp:h}];const{onSessionStart:m}=n;m&&m(t,uy(l,this.history)),this.removeListeners=$f(_d(this.contextWindow,"pointermove",this.handlePointerMove),_d(this.contextWindow,"pointerup",this.handlePointerUp),_d(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Wo(this.updatePoint)}}function sy(e,t){return t?{point:t(e.point)}:e}function $A(e,t){return{x:e.x-t.x,y:e.y-t.y}}function uy({point:e},t){return{point:e,delta:$A(e,rM(t)),offset:$A(e,lie(t)),velocity:cie(t,.1)}}function lie(e){return e[0]}function rM(e){return e[e.length-1]}function cie(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=rM(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Da(t)));)n--;if(!r)return{x:0,y:0};const a=to(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function die(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Pn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Pn(n,e,r.max):Math.min(e,n)),e}function EA(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 fie(e,{top:t,left:n,bottom:r,right:i}){return{x:EA(e.x,n,i),y:EA(e.y,t,r)}}function CA(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 hie(e,t){return{x:CA(e.x,t.x),y:CA(e.y,t.y)}}function pie(e,t){let n=.5;const r=Nr(e),i=Nr(t);return i>r?n=Hd(t.min,t.max-r,e.min):r>i&&(n=Hd(e.min,e.max-i,t.min)),qo(0,1,n)}function mie(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 l1=.35;function gie(e=l1){return e===!1?e=0:e===!0&&(e=l1),{x:wA(e,"left","right"),y:wA(e,"top","bottom")}}function wA(e,t,n){return{min:AA(e,t),max:AA(e,n)}}function AA(e,t){return typeof e=="number"?e:e[t]||0}const vie=new WeakMap;class yie{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=Hn(),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(wf(m).point)},o=(m,g)=>{const{drag:b,dragPropagation:$,onDragStart:x}=this.getProps();if(b&&!$&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Tne(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),Ki(w=>{let C=this.getAxisMotionValue(w).get()||0;if(no.test(C)){const{projection:E}=this.visualElement;if(E&&E.layout){const T=E.layout.layoutBox[w];T&&(C=Nr(T)*(parseFloat(C)/100))}}this.originPoint[w]=C}),x&&Cn.postRender(()=>x(m,g)),s1(this.visualElement,"transform");const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},s=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g;const{dragPropagation:b,dragDirectionLock:$,onDirectionLock:x,onDrag:A}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:w}=g;if($&&this.currentDirection===null){this.currentDirection=bie(w),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",g.point,w),this.updateAxis("y",g.point,w),this.visualElement.render(),A&&A(m,g)},l=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g,this.stop(m,g),this.latestPointerEvent=null,this.latestPanInfo=null},f=()=>Ki(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 nM(t,{onSessionStart:a,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:r,contextWindow:tM(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:o}=i;this.startAnimation(o);const{onDragEnd:s}=this.getProps();s&&Cn.postRender(()=>s(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||!Ph(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=die(o,this.constraints[t],this.elastic[t])),a.set(o)}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&&_l(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=fie(r.layoutBox,t):this.constraints=!1,this.elastic=gie(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ki(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=mie(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!_l(t))return!1;const r=t.current;Ca(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=xre(r,i.root,this.visualElement.getTransformPagePoint());let o=hie(i.layout.layoutBox,a);if(n){const s=n(vre(o));this.hasMutatedConstraints=!!s,s&&(o=N8(s))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},f=Ki(h=>{if(!Ph(h,n,this.currentDirection))return;let m=l&&l[h]||{};o&&(m={min:0,max:0});const g=i?200:1e6,b=i?40:1e7,$={type:"inertia",velocity:r?t[h]:0,bounceStiffness:g,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...a,...m};return this.startAxisValueAnimation(h,$)});return Promise.all(f).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return s1(this.visualElement,t),r.start(Bx(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ki(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ki(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){Ki(n=>{const{drag:r}=this.getProps();if(!Ph(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:s}=i.layout.layoutBox[n];a.set(t[n]-Pn(o,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!_l(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ki(o=>{const s=this.getAxisMotionValue(o);if(s&&this.constraints!==!1){const l=s.get();i[o]=pie({min:l,max:l},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ki(o=>{if(!Ph(o,t,null))return;const s=this.getAxisMotionValue(o),{min:l,max:f}=this.constraints[o];s.set(Pn(l,f,i[o]))})}addListeners(){if(!this.visualElement.current)return;vie.set(this.visualElement,this);const t=this.visualElement.current,n=_d(t,"pointerdown",l=>{const{drag:f,dragListener:h=!0}=this.getProps();f&&h&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();_l(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Cn.read(r);const o=Qd(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:f})=>{this.isDragging&&f&&(Ki(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=l[h].translate,m.set(m.get()+l[h].translate))}),this.visualElement.render())});return()=>{o(),n(),a(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=l1,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:s}}}function Ph(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function bie(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class xie extends _s{constructor(t){super(t),this.removeGroupControls=Qi,this.removeListeners=Qi,this.controls=new yie(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Qi}unmount(){this.removeGroupControls(),this.removeListeners()}}const SA=e=>(t,n)=>{e&&Cn.postRender(()=>e(t,n))};class Die extends _s{constructor(){super(...arguments),this.removePointerDownListener=Qi}onPointerDown(t){this.session=new nM(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tM(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:SA(t),onStart:SA(n),onMove:r,onEnd:(a,o)=>{delete this.session,i&&Cn.postRender(()=>i(a,o))}}}mount(){this.removePointerDownListener=_d(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 Zh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function TA(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const od={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(At.test(e))e=parseFloat(e);else return e;const n=TA(e,t.target.x),r=TA(e,t.target.y);return`${n}% ${r}%`}},$ie={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ws.parse(e);if(i.length>5)return r;const a=ws.createTransformer(e),o=typeof i[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=l;const f=Pn(s,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=f),typeof i[3+o]=="number"&&(i[3+o]/=f),a(i)}};let ly=!1;class Eie extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;Une(Cie),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),ly&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Zh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:o}=r;return o&&(o.isPresent=a,ly=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||Cn.postRender(()=>{const s=o.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),xx.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;ly=!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 iM(e){const[t,n]=Lne(),r=I.useContext(R9);return io.jsx(Eie,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(L8),isPresent:t,safeToRemove:n})}const Cie={borderRadius:{...od,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:od,borderTopRightRadius:od,borderBottomLeftRadius:od,borderBottomRightRadius:od,boxShadow:$ie};function wie(e,t,n){const r=xr(e)?e:Pu(e);return r.start(Bx("",r,t,n)),r.animation}const Aie=(e,t)=>e.depth-t.depth;class Sie{constructor(){this.children=[],this.isDirty=!1}add(t){tx(this.children,t),this.isDirty=!0}remove(t){nx(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Aie),this.isDirty=!1,this.children.forEach(t)}}function Tie(e,t){const n=oi.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Wo(r),e(a-t))};return Cn.setup(r,!0),()=>Wo(r)}const aM=["TopLeft","TopRight","BottomLeft","BottomRight"],Pie=aM.length,PA=e=>typeof e=="string"?parseFloat(e):e,_A=e=>typeof e=="number"||At.test(e);function _ie(e,t,n,r,i,a){i?(e.opacity=Pn(0,n.opacity??1,Bie(r)),e.opacityExit=Pn(t.opacity??1,0,Fie(r))):a&&(e.opacity=Pn(t.opacity??1,n.opacity??1,r));for(let o=0;o<Pie;o++){const s=`border${aM[o]}Radius`;let l=BA(t,s),f=BA(n,s);if(l===void 0&&f===void 0)continue;l||(l=0),f||(f=0),l===0||f===0||_A(l)===_A(f)?(e[s]=Math.max(Pn(PA(l),PA(f),r),0),(no.test(f)||no.test(l))&&(e[s]+="%")):e[s]=f}(t.rotate||n.rotate)&&(e.rotate=Pn(t.rotate||0,n.rotate||0,r))}function BA(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Bie=oM(0,.5,H9),Fie=oM(.5,.95,Qi);function oM(e,t,n){return r=>r<e?0:r>t?1:n(Hd(e,t,r))}function FA(e,t){e.min=t.min,e.max=t.max}function Vi(e,t){FA(e.x,t.x),FA(e.y,t.y)}function kA(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=Mp(e,1/n,r),i!==void 0&&(e=Mp(e,1/i,r)),e}function kie(e,t=0,n=1,r=.5,i,a=e,o=e){if(no.test(t)&&(t=parseFloat(t),t=Pn(o.min,o.max,t/100)-o.min),typeof t!="number")return;let s=Pn(a.min,a.max,r);e===a&&(s-=t),e.min=MA(e.min,t,n,s,i),e.max=MA(e.max,t,n,s,i)}function RA(e,t,[n,r,i],a,o){kie(e,t[n],t[r],t[i],t.scale,a,o)}const Mie=["x","scaleX","originX"],Rie=["y","scaleY","originY"];function IA(e,t,n,r){RA(e.x,t,Mie,n?n.x:void 0,r?r.x:void 0),RA(e.y,t,Rie,n?n.y:void 0,r?r.y:void 0)}function OA(e){return e.translate===0&&e.scale===1}function sM(e){return OA(e.x)&&OA(e.y)}function LA(e,t){return e.min===t.min&&e.max===t.max}function Iie(e,t){return LA(e.x,t.x)&&LA(e.y,t.y)}function VA(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function uM(e,t){return VA(e.x,t.x)&&VA(e.y,t.y)}function NA(e){return Nr(e.x)/Nr(e.y)}function jA(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Oie{constructor(){this.members=[]}add(t){tx(this.members,t),t.scheduleRender()}remove(t){if(nx(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 Lie(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:f,rotate:h,rotateX:m,rotateY:g,skewX:b,skewY:$}=n;f&&(r=`perspective(${f}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),g&&(r+=`rotateY(${g}deg) `),b&&(r+=`skewX(${b}deg) `),$&&(r+=`skewY(${$}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const cy=["","X","Y","Z"],Vie=1e3;let Nie=0;function dy(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function lM(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=G8(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Cn,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&lM(r)}function cM({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},s=t==null?void 0:t()){this.id=Nie++,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(zie),this.nodes.forEach(Hie),this.nodes.forEach(Gie),this.nodes.forEach(qie)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Sie)}addEventListener(o,s){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new ix),this.eventHandlers.get(o).add(s)}notifyListeners(o,...s){const l=this.eventHandlers.get(o);l&&l.notify(...s)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=A8(o)&&!Mne(o),this.instance=o;const{layoutId:s,layout:l,visualElement:f}=this.options;if(f&&!f.current&&f.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||s)&&(this.isLayoutDirty=!0),e){let h,m=0;const g=()=>this.root.updateBlockedByResize=!1;Cn.read(()=>{m=window.innerWidth}),e(o,()=>{const b=window.innerWidth;b!==m&&(m=b,this.root.updateBlockedByResize=!0,h&&h(),h=Tie(g,250),Zh.hasAnimatedSinceResize&&(Zh.hasAnimatedSinceResize=!1,this.nodes.forEach(qA)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&f&&(s||l)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeLayoutChanged:g,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const $=this.options.transition||f.getDefaultTransition()||Jie,{onLayoutAnimationStart:x,onLayoutAnimationComplete:A}=f.getProps(),w=!this.targetLayout||!uM(this.targetLayout,b),C=!m&&g;if(this.options.layoutRoot||this.resumeFrom||C||m&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const E={...yx($,"layout"),onPlay:x,onComplete:A};(f.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E),this.setAnimationOrigin(h,C)}else m||qA(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Wo(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(Yie),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&lM(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:s,layout:l}=this.options;if(s===void 0&&!l)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(KA);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(zA);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Wie),this.nodes.forEach(jie),this.nodes.forEach(Kie)):this.nodes.forEach(zA),this.clearAllSnapshots();const s=oi.now();br.delta=qo(0,1e3/60,s-br.timestamp),br.timestamp=s,br.isProcessing=!0,J4.update.process(br),J4.preRender.process(br),J4.render.process(br),br.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,xx.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Uie),this.sharedNodes.forEach(Zie)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Cn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Cn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Nr(this.snapshot.measuredBox.x)&&!Nr(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Hn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(s=!1),s&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!sM(this.projectionDelta),l=this.getTransformTemplate(),f=l?l(this.latestValues,""):void 0,h=f!==this.prevTransformTemplateValue;o&&this.instance&&(s||ou(this.latestValues)||h)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return o&&(l=this.removeTransform(l)),eae(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var f;const{visualElement:o}=this.options;if(!o)return Hn();const s=o.measureViewportBox();if(!(((f=this.scroll)==null?void 0:f.wasRoot)||this.path.some(tae))){const{scroll:h}=this.root;h&&(Bl(s.x,h.offset.x),Bl(s.y,h.offset.y))}return s}removeElementScroll(o){var l;const s=Hn();if(Vi(s,o),(l=this.scroll)!=null&&l.wasRoot)return s;for(let f=0;f<this.path.length;f++){const h=this.path[f],{scroll:m,options:g}=h;h!==this.root&&m&&g.layoutScroll&&(m.wasRoot&&Vi(s,o),Bl(s.x,m.offset.x),Bl(s.y,m.offset.y))}return s}applyTransform(o,s=!1){const l=Hn();Vi(l,o);for(let f=0;f<this.path.length;f++){const h=this.path[f];!s&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Fl(l,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),ou(h.latestValues)&&Fl(l,h.latestValues)}return ou(this.latestValues)&&Fl(l,this.latestValues),l}removeTransform(o){const s=Hn();Vi(s,o);for(let l=0;l<this.path.length;l++){const f=this.path[l];if(!f.instance||!ou(f.latestValues))continue;r1(f.latestValues)&&f.updateSnapshot();const h=Hn(),m=f.measurePageBox();Vi(h,m),IA(s,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,h)}return ou(this.latestValues)&&IA(s,this.latestValues),s}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.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!==br.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var g;const s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==s;if(!(o||l&&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=br.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Hn(),this.relativeTargetOrigin=Hn(),Fd(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),Vi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Hn(),this.targetWithTransforms=Hn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),sie(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Vi(this.target,this.layout.layoutBox),K8(this.target,this.targetDelta)):Vi(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=Hn(),this.relativeTargetOrigin=Hn(),Fd(this.relativeTargetOrigin,this.target,b.target),Vi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||r1(this.parent.latestValues)||j8(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 $;const o=this.getLead(),s=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||($=this.parent)!=null&&$.isProjectionDirty)&&(l=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===br.timestamp&&(l=!1),l)return;const{layout:f,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||!(f||h))return;Vi(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;bre(this.layoutCorrected,this.treeScale,this.path,s),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Hn());const{target:b}=o;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(kA(this.prevProjectionDelta.x,this.projectionDelta.x),kA(this.prevProjectionDelta.y,this.projectionDelta.y)),Bd(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!jA(this.projectionDelta.x,this.prevProjectionDelta.x)||!jA(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var s;if((s=this.options.visualElement)==null||s.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=kl(),this.projectionDelta=kl(),this.projectionDeltaWithTransform=kl()}setAnimationOrigin(o,s=!1){const l=this.snapshot,f=l?l.latestValues:{},h={...this.latestValues},m=kl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const g=Hn(),b=l?l.source:void 0,$=this.layout?this.layout.source:void 0,x=b!==$,A=this.getStack(),w=!A||A.members.length<=1,C=!!(x&&!w&&this.options.crossfade===!0&&!this.path.some(Qie));this.animationProgress=0;let E;this.mixTargetDelta=T=>{const P=T/1e3;UA(m.x,o.x,P),UA(m.y,o.y,P),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Fd(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Xie(this.relativeTarget,this.relativeTargetOrigin,g,P),E&&Iie(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=Hn()),Vi(E,this.relativeTarget)),x&&(this.animationValues=h,_ie(h,f,this.latestValues,P,C,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var s,l,f;this.notifyListeners("animationStart"),(s=this.currentAnimation)==null||s.stop(),(f=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||f.stop(),this.pendingAnimation&&(Wo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Cn.update(()=>{Zh.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Pu(0)),this.currentAnimation=wie(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),o.onUpdate&&o.onUpdate(h)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Vie),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:s,target:l,layout:f,latestValues:h}=o;if(!(!s||!l||!f)){if(this!==o&&this.layout&&f&&dM(this.options.animationType,this.layout.layoutBox,f.layoutBox)){l=this.target||Hn();const m=Nr(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+m;const g=Nr(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+g}Vi(s,l),Fl(s,h),Bd(this.projectionDeltaWithTransform,this.layoutCorrected,s,h)}}registerSharedNode(o,s){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Oie),this.sharedNodes.get(o).add(s);const f=s.options.initialPromotionConfig;s.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(s):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var s;const{layoutId:o}=this.options;return o?((s=this.getStack())==null?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:o}=this.options;return o?(s=this.getStack())==null?void 0:s.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:s,preserveFollowOpacity:l}={}){const f=this.getStack();f&&f.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let s=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const f={};l.z&&dy("z",o,f,this.animationValues);for(let h=0;h<cy.length;h++)dy(`rotate${cy[h]}`,o,f,this.animationValues),dy(`skew${cy[h]}`,o,f,this.animationValues);o.render();for(const h in f)o.setStaticValue(h,f[h]),this.animationValues&&(this.animationValues[h]=f[h]);o.scheduleRender()}applyProjectionStyles(o,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Yh(s==null?void 0:s.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Yh(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!ou(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const h=f.animationValues||f.latestValues;this.applyTransformsToTarget();let m=Lie(this.projectionDeltaWithTransform,this.treeScale,h);l&&(m=l(h,m)),o.transform=m;const{x:g,y:b}=this.projectionDelta;o.transformOrigin=`${g.origin*100}% ${b.origin*100}% 0`,f.animationValues?o.opacity=f===this?h.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:o.opacity=f===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const $ in Xd){if(h[$]===void 0)continue;const{correct:x,applyTo:A,isCSSVariable:w}=Xd[$],C=m==="none"?h[$]:x(h[$],f);if(A){const E=A.length;for(let T=0;T<E;T++)o[A[T]]=C}else w?this.options.visualElement.renderState.vars[$]=C:o[$]=C}this.options.layoutId&&(o.pointerEvents=f===this?Yh(s==null?void 0:s.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var s;return(s=o.currentAnimation)==null?void 0:s.stop()}),this.root.nodes.forEach(KA),this.root.sharedNodes.clear()}}}function jie(e){e.updateLayout()}function Kie(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,o=t.source!==e.layout.source;a==="size"?Ki(m=>{const g=o?t.measuredBox[m]:t.layoutBox[m],b=Nr(g);g.min=r[m].min,g.max=g.min+b}):dM(a,t.layoutBox,r)&&Ki(m=>{const g=o?t.measuredBox[m]:t.layoutBox[m],b=Nr(r[m]);g.max=g.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+b)});const s=kl();Bd(s,r,t.layoutBox);const l=kl();o?Bd(l,e.applyTransform(i,!0),t.measuredBox):Bd(l,r,t.layoutBox);const f=!sM(s);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:b}=m;if(g&&b){const $=Hn();Fd($,t.layoutBox,g.layoutBox);const x=Hn();Fd(x,r,b.layoutBox),uM($,x)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=$,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:s,hasLayoutChanged:f,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function zie(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 qie(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Uie(e){e.clearSnapshot()}function KA(e){e.clearMeasurements()}function zA(e){e.isLayoutDirty=!1}function Wie(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function qA(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Hie(e){e.resolveTargetDelta()}function Gie(e){e.calcProjection()}function Yie(e){e.resetSkewAndRotation()}function Zie(e){e.removeLeadSnapshot()}function UA(e,t,n){e.translate=Pn(t.translate,0,n),e.scale=Pn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function WA(e,t,n,r){e.min=Pn(t.min,n.min,r),e.max=Pn(t.max,n.max,r)}function Xie(e,t,n,r){WA(e.x,t.x,n.x,r),WA(e.y,t.y,n.y,r)}function Qie(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Jie={duration:.45,ease:[.4,0,.1,1]},HA=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),GA=HA("applewebkit/")&&!HA("chrome/")?Math.round:Qi;function YA(e){e.min=GA(e.min),e.max=GA(e.max)}function eae(e){YA(e.x),YA(e.y)}function dM(e,t,n){return e==="position"||e==="preserve-aspect"&&!oie(NA(t),NA(n),.2)}function tae(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const nae=cM({attachResizeListener:(e,t)=>Qd(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),fy={current:void 0},fM=cM({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!fy.current){const e=new nae({});e.mount(window),e.setOptions({layoutScroll:!0}),fy.current=e}return fy.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),rae={pan:{Feature:Die},drag:{Feature:xie,ProjectionNode:fM,MeasureLayout:iM}};function ZA(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&&Cn.postRender(()=>a(t,wf(t)))}let iae=class extends _s{mount(){const{current:t}=this.node;t&&(this.unmount=Pne(t,(n,r)=>(ZA(this.node,r,"Start"),i=>ZA(this.node,i,"End"))))}unmount(){}},aae=class extends _s{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=$f(Qd(this.node.current,"focus",()=>this.onFocus()),Qd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function XA(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&&Cn.postRender(()=>a(t,wf(t)))}let oae=class extends _s{mount(){const{current:t}=this.node;t&&(this.unmount=kne(t,(n,r)=>(XA(this.node,r,"Start"),(i,{success:a})=>XA(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const c1=new WeakMap,hy=new WeakMap,sae=e=>{const t=c1.get(e.target);t&&t(e)},uae=e=>{e.forEach(sae)};function lae({root:e,...t}){const n=e||document;hy.has(n)||hy.set(n,{});const r=hy.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(uae,{root:e,...t})),r[i]}function cae(e,t,n){const r=lae(t);return c1.set(e,n),r.observe(e),()=>{c1.delete(e),r.unobserve(e)}}const dae={some:0,all:1};let fae=class extends _s{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,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:dae[i]},s=l=>{const{isIntersecting:f}=l;if(this.isInView===f||(this.isInView=f,a&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=f?h:m;g&&g(l)};return cae(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(hae(t,n))&&this.startObserver()}unmount(){}};function hae({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const pae={inView:{Feature:fae},tap:{Feature:oae},focus:{Feature:aae},hover:{Feature:iae}},mae={layout:{ProjectionNode:fM,MeasureLayout:iM}},gae={...eie,...pae,...rae,...mae},hM=gre(gae,Pre);function pM(e){const t=Df(()=>Pu(e)),{isStatic:n}=I.useContext($x);if(n){const[,r]=I.useState(e);I.useEffect(()=>t.on("change",r),[])}return t}function mM(e,t){const n=pM(t()),r=()=>n.set(t());return r(),I9(()=>{const i=()=>Cn.preRender(r,!1,!0),a=e.map(o=>o.on("change",i));return()=>{a.forEach(o=>o()),Wo(r)}}),n}function vae(e){Pd.current=[],e();const t=mM(Pd.current,e);return Pd.current=void 0,t}function yae(e,t,n,r){if(typeof e=="function")return vae(e);const i=typeof t=="function"?t:Rne(t,n,r);return Array.isArray(e)?QA(e,i):QA([e],([a])=>i(a))}function QA(e,t){const n=Df(()=>[]);return mM(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const gM=I.createContext(null);function bae(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,o=e[i+a];if(!o)return e;const s=e[i],l=o.layout,f=Pn(l.min,l.max,.5);return a===1&&s.layout.max+n>f||a===-1&&s.layout.min+n<f?Nee(e,i,i+a):e}function xae({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...a},o){const s=Df(()=>hM[t]),l=[],f=I.useRef(!1);Ca(!!i,"Reorder.Group must be provided a values prop","reorder-values");const h={axis:n,registerItem:(m,g)=>{const b=l.findIndex($=>m===$.value);b!==-1?l[b].layout=g[n]:l.push({value:m,layout:g[n]}),l.sort(Eae)},updateOrder:(m,g,b)=>{if(f.current)return;const $=bae(l,m,g,b);l!==$&&(f.current=!0,r($.map($ae).filter(x=>i.indexOf(x)!==-1)))}};return I.useEffect(()=>{f.current=!1}),io.jsx(s,{...a,ref:o,ignoreStrict:!0,children:io.jsx(gM.Provider,{value:h,children:e})})}const Dae=I.forwardRef(xae);function $ae(e){return e.value}function Eae(e,t){return e.layout.min-t.layout.min}function JA(e,t=0){return xr(e)?e:pM(t)}function Cae({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:a=!0,...o},s){const l=Df(()=>hM[r]),f=I.useContext(gM),h={x:JA(t.x),y:JA(t.y)},m=yae([h.x,h.y],([x,A])=>x||A?1:"unset");Ca(!!f,"Reorder.Item must be a child of Reorder.Group","reorder-item-child");const{axis:g,registerItem:b,updateOrder:$}=f;return io.jsx(l,{drag:g,...o,dragSnapToOrigin:!0,style:{...t,x:h.x,y:h.y,zIndex:m},layout:a,onDrag:(x,A)=>{const{velocity:w}=A;w[g]&&$(n,h[g].get(),w[g]),i&&i(x,A)},onLayoutMeasure:x=>b(n,x),ref:s,ignoreStrict:!0,children:e})}const wae=I.forwardRef(Cae);var Xh={exports:{}},Aae=Xh.exports,eS;function Sae(){return eS||(eS=1,function(e,t){(function(n,r){e.exports=r()})(Aae,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 o=i.prototype,s=o.format;a.en.formats=n,o.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var f=this.$locale().formats,h=function(m,g){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,$,x){var A=x&&x.toUpperCase();return $||g[x]||n[x]||g[A].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(w,C,E){return C||E.slice(1)})})}(l,f===void 0?{}:f);return s.call(this,h)}}})}(Xh)),Xh.exports}var Tae=Sae();const Pae=ar(Tae);var py,tS;function _ae(){if(tS)return py;tS=1;var e=FT(),t=kT(),n=ab(),r=Aa(),i=om(),a=im(),o=_T(),s=am(),l="[object Map]",f="[object Set]",h=Object.prototype,m=h.hasOwnProperty;function g(b){if(b==null)return!0;if(i(b)&&(r(b)||typeof b=="string"||typeof b.splice=="function"||a(b)||s(b)||n(b)))return!b.length;var $=t(b);if($==l||$==f)return!b.size;if(o(b))return!e(b).length;for(var x in b)if(m.call(b,x))return!1;return!0}return py=g,py}var Bae=_ae();const Fae=ar(Bae),Fx=Rae();function yn(e,...t){if(!Fx)return;const n=Mae(e,...t);performance.mark(n);try{console.log(e,...t)}catch{console.log(n)}}function kae(e,...t){Fx&&console.warn(e,...t)}function Mae(e,...t){return e.replace(/%[sfdO]/g,n=>{const r=t.shift();return n==="%O"&&r?JSON.stringify(r).replace(/"([^"]+)":/g,"$1:"):String(r)})}function Rae(){try{const e="nuqs-localStorage-test";if(typeof localStorage>"u")return!1;localStorage.setItem(e,e);const t=localStorage.getItem(e)===e;return localStorage.removeItem(e),t&&(localStorage.getItem("debug")||"").includes("nuqs")}catch{return!1}}const Iae={303:"Multiple adapter contexts detected. This might happen in monorepos.",404:"nuqs requires an adapter to work with your framework.",409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` (via the %s adapter) was about to load on top.",414:"Max safe URL length exceeded. Some browsers may not be able to accept this URL. Consider limiting the amount of state stored in the URL.",422:"Invalid options combination: `limitUrlUpdates: debounce` should be used in SSR scenarios, with `shallow: false`",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cache. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?"};function Lu(e){return`[nuqs] ${Iae[e]}
84
- See https://nuqs.dev/NUQS-${e}`}function Oae(e){if(e.size===0)return"";const t=[];for(const[r,i]of e.entries()){const a=r.replace(/#/g,"%23").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/=/g,"%3D").replace(/\?/g,"%3F");t.push(`${a}=${Lae(i)}`)}const n="?"+t.join("&");return Nae(n),n}function Lae(e){return e.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/#/g,"%23").replace(/&/g,"%26").replace(/"/g,"%22").replace(/'/g,"%27").replace(/`/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/[\x00-\x1F]/g,t=>encodeURIComponent(t))}const Vae=2e3;function Nae(e){if(process.env.NODE_ENV==="production"||typeof location>"u")return;const t=new URL(location.href);t.search=e,t.href.length>Vae&&console.warn(Lu(414))}const _u=I.createContext({useAdapter(){throw new Error(Lu(404))}});_u.displayName="NuqsAdapterContext";Fx&&typeof window<"u"&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==_u&&console.error(Lu(303)),window.__NuqsAdapterContext=_u);function jae(e){return({children:t,defaultOptions:n,processUrlSearchParams:r,...i})=>I.createElement(_u.Provider,{...i,value:{useAdapter:e,defaultOptions:n,processUrlSearchParams:r}},t)}function Kae(e){const t=I.useContext(_u);if(!("useAdapter"in t))throw new Error(Lu(404));return t.useAdapter(e)}const zae=()=>I.useContext(_u).defaultOptions,qae=()=>I.useContext(_u).processUrlSearchParams;function Uae(){var e;if(typeof window>"u"||!window.GestureEvent)return 50;try{const t=(e=navigator.userAgent)==null?void 0:e.match(/version\/([\d\.]+) safari/i);return parseFloat(t[1])>=17?120:320}catch{return 320}}function Wae(e){return{method:"throttle",timeMs:e}}const kd=Wae(Uae());function Hae(e){return e===null||Array.isArray(e)&&e.length===0}function Gae(e,t,n){if(typeof e=="string")n.set(t,e);else{n.delete(t);for(const r of e)n.append(t,r);n.has(t)||n.set(t,"")}return n}function kx(){const e=new Map;return{on(t,n){const r=e.get(t)||[];return r.push(n),e.set(t,r),()=>this.off(t,n)},off(t,n){const r=e.get(t);r&&e.set(t,r.filter(i=>i!==n))},emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))}}}function d1(e,t,n){function r(){e(),n.removeEventListener("abort",a)}const i=setTimeout(r,t);function a(){clearTimeout(i),n.removeEventListener("abort",a)}n.addEventListener("abort",a)}function f1(){const e=Promise;if(Promise.hasOwnProperty("withResolvers"))return Promise.withResolvers();let t=()=>{},n=()=>{};return{promise:new e((r,i)=>{t=r,n=i}),resolve:t,reject:n}}function Yae(e,t){let n=t;for(let r=e.length-1;r>=0;r--){const i=e[r];if(!i)continue;const a=n;n=()=>i(a)}n()}function h1(){return new URLSearchParams(location.search)}var vM=class{constructor(){Xn(this,"updateMap",new Map);Xn(this,"options",{history:"replace",scroll:!1,shallow:!0});Xn(this,"timeMs",kd.timeMs);Xn(this,"transitions",new Set);Xn(this,"resolvers",null);Xn(this,"controller",null);Xn(this,"lastFlushedAt",0);Xn(this,"resetQueueOnNextPush",!1)}push({key:e,query:t,options:n},r=kd.timeMs){this.resetQueueOnNextPush&&(this.reset(),this.resetQueueOnNextPush=!1),yn("[nuqs gtq] Enqueueing %s=%s %O",e,t,n),this.updateMap.set(e,t),n.history==="push"&&(this.options.history="push"),n.scroll&&(this.options.scroll=!0),n.shallow===!1&&(this.options.shallow=!1),n.startTransition&&this.transitions.add(n.startTransition),(!Number.isFinite(this.timeMs)||r>this.timeMs)&&(this.timeMs=r)}getQueuedQuery(e){return this.updateMap.get(e)}getPendingPromise({getSearchParamsSnapshot:e=h1}){var t;return((t=this.resolvers)==null?void 0:t.promise)??Promise.resolve(e())}flush({getSearchParamsSnapshot:e=h1,rateLimitFactor:t=1,...n},r){if(this.controller??(this.controller=new AbortController),!Number.isFinite(this.timeMs))return yn("[nuqs gtq] Skipping flush due to throttleMs=Infinity"),Promise.resolve(e());if(this.resolvers)return this.resolvers.promise;this.resolvers=f1();const i=()=>{this.lastFlushedAt=performance.now();const[o,s]=this.applyPendingUpdates({...n,autoResetQueueOnUpdate:n.autoResetQueueOnUpdate??!0,getSearchParamsSnapshot:e},r);s===null?(this.resolvers.resolve(o),this.resetQueueOnNextPush=!0):this.resolvers.reject(o),this.resolvers=null};return d1(()=>{const o=performance.now()-this.lastFlushedAt,s=this.timeMs,l=t*Math.max(0,s-o);yn("[nuqs gtq] Scheduling flush in %f ms. Throttled at %f ms (x%f)",l,s,t),l===0?i():d1(i,l,this.controller.signal)},0,this.controller.signal),this.resolvers.promise}abort(){var e,t;return(e=this.controller)==null||e.abort(),this.controller=new AbortController,(t=this.resolvers)==null||t.resolve(new URLSearchParams),this.resolvers=null,this.reset()}reset(){const e=Array.from(this.updateMap.keys());return yn("[nuqs gtq] Resetting queue %s",JSON.stringify(Object.fromEntries(this.updateMap))),this.updateMap.clear(),this.transitions.clear(),this.options={history:"replace",scroll:!1,shallow:!0},this.timeMs=kd.timeMs,e}applyPendingUpdates(e,t){const{updateUrl:n,getSearchParamsSnapshot:r}=e;let i=r();if(yn("[nuqs gtq] Applying %d pending update(s) on top of %s",this.updateMap.size,i.toString()),this.updateMap.size===0)return[i,null];const a=Array.from(this.updateMap.entries()),o={...this.options},s=Array.from(this.transitions);e.autoResetQueueOnUpdate&&this.reset(),yn("[nuqs gtq] Flushing queue %O with options %O",a,o);for(const[l,f]of a)f===null?i.delete(l):i=Gae(f,l,i);t&&(i=t(i));try{return Yae(s,()=>{n(i,o)}),[i,null]}catch(l){return console.error(Lu(429),a.map(([f])=>f).join(),l),[i,l]}}};const Md=new vM;function Zae(e,t,n){const r=I.useCallback(()=>{const o=Object.fromEntries(e.map(s=>[s,n(s)]));return[JSON.stringify(o),o]},[e.join(","),n]),i=I.useRef(null);i.current===null&&(i.current=r());const a=I.useCallback(o=>{const s=e.map(l=>t(l,o));return()=>s.forEach(l=>l())},[e.join(","),t]);return I.useSyncExternalStore(a,()=>{const[o,s]=r();return i.current[0]===o?i.current[1]:(i.current=[o,s],s)},()=>i.current[1])}var Xae=class{constructor(e){Xn(this,"callback");Xn(this,"resolvers",f1());Xn(this,"controller",new AbortController);Xn(this,"queuedValue");this.callback=e}abort(){this.controller.abort(),this.queuedValue=void 0}push(e,t){return this.queuedValue=e,this.controller.abort(),this.controller=new AbortController,d1(()=>{const n=this.resolvers;try{yn("[nuqs dq] Flushing debounce queue",e);const r=this.callback(e);yn("[nuqs dq] Reset debounce queue %O",this.queuedValue),this.queuedValue=void 0,this.resolvers=f1(),r.then(i=>n.resolve(i)).catch(i=>n.reject(i))}catch(r){this.queuedValue=void 0,n.reject(r)}},t,this.controller.signal),this.resolvers.promise}},Qae=class{constructor(e=new vM){Xn(this,"throttleQueue");Xn(this,"queues",new Map);Xn(this,"queuedQuerySync",kx());this.throttleQueue=e}useQueuedQueries(e){return Zae(e,(t,n)=>this.queuedQuerySync.on(t,n),t=>this.getQueuedQuery(t))}push(e,t,n){if(!Number.isFinite(t)){const a=n.getSearchParamsSnapshot??h1;return Promise.resolve(a())}const r=e.key;if(!this.queues.has(r)){yn("[nuqs dqc] Creating debounce queue for `%s`",r);const a=new Xae(o=>(this.throttleQueue.push(o),this.throttleQueue.flush(n).finally(()=>{var s;((s=this.queues.get(o.key))==null?void 0:s.queuedValue)===void 0&&(yn("[nuqs dqc] Cleaning up empty queue for `%s`",o.key),this.queues.delete(o.key)),this.queuedQuerySync.emit(o.key)})));this.queues.set(r,a)}yn("[nuqs dqc] Enqueueing debounce update %O",e);const i=this.queues.get(r).push(e,t);return this.queuedQuerySync.emit(r),i}abort(e){var n;const t=this.queues.get(e);return t?(yn("[nuqs dqc] Aborting debounce queue %s=%s",e,(n=t.queuedValue)==null?void 0:n.query),this.queues.delete(e),t.abort(),this.queuedQuerySync.emit(e),r=>(r.then(t.resolvers.resolve,t.resolvers.reject),r)):r=>r}abortAll(){var e;for(const[t,n]of this.queues.entries())yn("[nuqs dqc] Aborting debounce queue %s=%s",t,(e=n.queuedValue)==null?void 0:e.query),n.abort(),n.resolvers.resolve(new URLSearchParams),this.queuedQuerySync.emit(t);this.queues.clear()}getQueuedQuery(e){var n,r;const t=(r=(n=this.queues.get(e))==null?void 0:n.queuedValue)==null?void 0:r.query;return t!==void 0?t:this.throttleQueue.getQueuedQuery(e)}};const Rd=new Qae(Md);function yM(e,t){return e===t?!0:e===null||t===null||typeof e=="string"||typeof t=="string"||e.length!==t.length?!1:e.every((n,r)=>n===t[r])}function bM(e,t,n){try{return e(t)}catch(r){return kae("[nuqs] Error while parsing value `%s`: %O"+(n?" (for key `%s`)":""),t,r,n),null}}function Xo(e){function t(n){if(typeof n>"u")return null;let r="";if(Array.isArray(n)){if(n[0]===void 0)return null;r=n[0]}return typeof n=="string"&&(r=n),bM(e.parse,r)}return{type:"single",eq:(n,r)=>n===r,...e,parseServerSide:t,withDefault(n){return{...this,defaultValue:n,parseServerSide(r){return t(r)??n}}},withOptions(n){return{...this,...n}}}}const Jae=Xo({parse:e=>e,serialize:String});Xo({parse:e=>{const t=parseInt(e);return t==t?t:null},serialize:e=>""+Math.round(e)});Xo({parse:e=>{const t=parseInt(e);return t==t?t-1:null},serialize:e=>""+Math.round(e+1)});Xo({parse:e=>{const t=parseInt(e,16);return t==t?t:null},serialize:e=>{const t=Math.round(e).toString(16);return(t.length&1?"0":"")+t}});Xo({parse:e=>{const t=parseFloat(e);return t==t?t:null},serialize:String});Xo({parse:e=>e==="true",serialize:String});function Mx(e,t){return e.valueOf()===t.valueOf()}Xo({parse:e=>{const t=parseInt(e);return t==t?new Date(t):null},serialize:e=>""+e.valueOf(),eq:Mx});Xo({parse:e=>{const t=new Date(e);return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString(),eq:Mx});Xo({parse:e=>{const t=new Date(e.slice(0,10));return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString().slice(0,10),eq:Mx});const my=kx(),eoe={};function xM(e,t={}){const n=I.useId(),r=zae(),i=qae(),{history:a="replace",scroll:o=(r==null?void 0:r.scroll)??!1,shallow:s=(r==null?void 0:r.shallow)??!0,throttleMs:l=kd.timeMs,limitUrlUpdates:f=r==null?void 0:r.limitUrlUpdates,clearOnDefault:h=(r==null?void 0:r.clearOnDefault)??!0,startTransition:m,urlKeys:g=eoe}=t,b=Object.keys(e).join(","),$=I.useMemo(()=>Object.fromEntries(Object.keys(e).map(te=>[te,g[te]??te])),[b,JSON.stringify(g)]),x=Kae(Object.values($)),A=x.searchParams,w=I.useRef({}),C=I.useMemo(()=>Object.fromEntries(Object.keys(e).map(te=>[te,e[te].defaultValue??null])),[Object.values(e).map(({defaultValue:te})=>te).join(",")]),E=Rd.useQueuedQueries(Object.values($)),[T,P]=I.useState(()=>{const te=A??new URLSearchParams;return gy(e,g,te,E).state}),F=I.useRef(T);if(yn("[nuq+ %s `%s`] render - state: %O, iSP: %s",n,b,T,A),Object.keys(w.current).join("&")!==Object.values($).join("&")){const{state:te,hasChanged:se}=gy(e,g,A,E,w.current,F.current);se&&(yn("[nuq+ %s `%s`] State changed: %O",n,b,{state:te,initialSearchParams:A,queuedQueries:E,queryRef:w.current,stateRef:F.current}),F.current=te,P(te)),w.current=Object.fromEntries(Object.entries($).map(([ae,O])=>{const Ee=e[ae];return[O,(Ee==null?void 0:Ee.type)==="multi"?A==null?void 0:A.getAll(O):(A==null?void 0:A.get(O))??null]}))}I.useEffect(()=>{const{state:te,hasChanged:se}=gy(e,g,A,E,w.current,F.current);se&&(yn("[nuq+ %s `%s`] State changed: %O",n,b,{state:te,initialSearchParams:A,queuedQueries:E,queryRef:w.current,stateRef:F.current}),F.current=te,P(te))},[Object.values($).map(te=>`${te}=${A==null?void 0:A.getAll(te)}`).join("&"),JSON.stringify(E)]),I.useEffect(()=>{const te=Object.keys(e).reduce((se,ae)=>(se[ae]=({state:O,query:Ee})=>{P(be=>{const{defaultValue:z}=e[ae],G=$[ae],V=O??z??null,R=be[ae]??z??null;return Object.is(R,V)?(yn("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). no change, skipping, resolved: %O",n,b,G,O,z,F.current),be):(F.current={...F.current,[ae]:V},w.current[G]=Ee,yn("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). updateInternalState, resolved: %O",n,b,G,O,z,F.current),F.current)})},se),{});for(const se of Object.keys(e)){const ae=$[se];yn("[nuq+ %s `%s`] Subscribing to sync for `%s`",n,ae,b),my.on(ae,te[se])}return()=>{for(const se of Object.keys(e)){const ae=$[se];yn("[nuq+ %s `%s`] Unsubscribing to sync for `%s`",n,ae,b),my.off(ae,te[se])}}},[b,$]);const q=I.useCallback((te,se={})=>{var R,K,fe,M,oe,le;const ae=Object.fromEntries(Object.keys(e).map(Se=>[Se,null])),O=typeof te=="function"?te(nS(F.current,C))??ae:te??ae;yn("[nuq+ %s `%s`] setState: %O",n,b,O);let Ee,be=0,z=!1;const G=[];for(let[Se,_e]of Object.entries(O)){const Be=e[Se],Ge=$[Se];if(!Be)continue;(se.clearOnDefault??Be.clearOnDefault??h)&&_e!==null&&Be.defaultValue!==void 0&&(Be.eq??((qe,ke)=>qe===ke))(_e,Be.defaultValue)&&(_e=null);const Xe=_e===null?null:(Be.serialize??String)(_e);my.emit(Ge,{state:_e,query:Xe});const Ne={key:Ge,query:Xe,options:{history:se.history??Be.history??a,shallow:se.shallow??Be.shallow??s,scroll:se.scroll??Be.scroll??o,startTransition:se.startTransition??Be.startTransition??m}};if(((R=se==null?void 0:se.limitUrlUpdates)==null?void 0:R.method)==="debounce"||(f==null?void 0:f.method)==="debounce"||((K=Be.limitUrlUpdates)==null?void 0:K.method)==="debounce"){Ne.options.shallow===!0&&console.warn(Lu(422));const qe=((fe=se==null?void 0:se.limitUrlUpdates)==null?void 0:fe.timeMs)??(f==null?void 0:f.timeMs)??((M=Be.limitUrlUpdates)==null?void 0:M.timeMs)??kd.timeMs,ke=Rd.push(Ne,qe,x);be<qe&&(Ee=ke,be=qe)}else{const qe=((oe=se==null?void 0:se.limitUrlUpdates)==null?void 0:oe.timeMs)??((le=Be==null?void 0:Be.limitUrlUpdates)==null?void 0:le.timeMs)??(f==null?void 0:f.timeMs)??se.throttleMs??Be.throttleMs??l;G.push(Rd.abort(Ge)),Md.push(Ne,qe),z=!0}}const V=G.reduce((Se,_e)=>_e(Se),z?Md.flush(x,i):Md.getPendingPromise(x));return Ee??V},[b,a,s,o,l,f==null?void 0:f.method,f==null?void 0:f.timeMs,m,$,x.updateUrl,x.getSearchParamsSnapshot,x.rateLimitFactor,i,C]);return[I.useMemo(()=>nS(T,C),[T,C]),q]}function gy(e,t,n,r,i,a){let o=!1;const s=Object.entries(e).reduce((l,[f,h])=>{const m=(t==null?void 0:t[f])??f,g=r[m],b=h.type==="multi"?[]:null,$=g===void 0?(h.type==="multi"?n==null?void 0:n.getAll(m):n==null?void 0:n.get(m))??b:g;return i&&a&&yM(i[m]??b,$)?(l[f]=a[f]??null,l):(o=!0,l[f]=(Hae($)?null:bM(h.parse,$,m))??null,i&&(i[m]=$),l)},{});if(!o){const l=Object.keys(e),f=Object.keys(a??{});o=l.length!==f.length||l.some(h=>!f.includes(h))}return{state:s,hasChanged:o}}function nS(e,t){return Object.fromEntries(Object.keys(e).map(n=>[n,e[n]??t[n]??null]))}function toe(e,t={}){const{parse:n,type:r,serialize:i,eq:a,defaultValue:o,...s}=t,[{[e]:l},f]=xM({[e]:{parse:n??(m=>m),type:r,serialize:i,eq:a,defaultValue:o}},s),h=I.useCallback((m,g={})=>f(b=>({[e]:typeof m=="function"?m(b[e]):m}),g),[e,f]);return[l,h]}function rS(e,t,n){return r=>{if(!(t.length===0||t.some(a=>!yM(r.getAll(a),e.getAll(a)))))return yn("[nuqs `%s`] no change, returning previous",t.join(","),r),r;const i=p1(e,t,n);return yn("[nuqs `%s`] subbed search params change\n from %O\n to %O",t.join(","),r,i),i}}function p1(e,t,n){if(t.length===0)return e;const r=n?new URLSearchParams(e):e;for(const i of e.keys())t.includes(i)||r.delete(i);return r}let Qh=0;function noe(e=1){Qh=e}function roe(){Qh=Math.max(0,Qh-1),!(Qh>0)&&DM()}function DM(){yn("[nuqs] Aborting queues"),Rd.abortAll(),Md.abort().forEach(e=>Rd.queuedQuerySync.emit(e))}const m1="__nuqs__";function ioe(e){if(e instanceof URL)return e.searchParams;if(e.startsWith("?"))return new URLSearchParams(e);try{return new URL(e,location.origin).searchParams}catch{return new URLSearchParams(e)}}function aoe(e){var t,n,r;return typeof history>"u"?!1:(t=history.nuqs)!=null&&t.version&&history.nuqs.version!=="0.0.0-inject-version-here"?(console.error(Lu(409),history.nuqs.version,"0.0.0-inject-version-here",e),!1):!((r=(n=history.nuqs)==null?void 0:n.adapters)!=null&&r.includes(e))}function ooe(e){history.nuqs=history.nuqs??{version:"0.0.0-inject-version-here",adapters:[]},history.nuqs.adapters.push(e)}function soe(e,t){if(!aoe(t))return;let n=typeof location=="object"?location.search:"";e.on("update",o=>{const s=o.toString();n=s.length?"?"+s:""}),window.addEventListener("popstate",()=>{n=location.search,DM()}),yn("[nuqs %s] Patching history (%s adapter)","0.0.0-inject-version-here",t);function r(o){roe();try{if(new URL(o,location.origin).search===n)return}catch{}try{e.emit("update",ioe(o))}catch(s){console.error(s)}}const i=history.pushState,a=history.replaceState;history.pushState=function(s,l,f){i.call(history,s,"",f),f&&l!==m1&&r(f)},history.replaceState=function(s,l,f){a.call(history,s,"",f),f&&l!==m1&&r(f)},ooe(t)}function uoe({adapter:e,useNavigate:t,useSearchParams:n}){const r=kx();function i(o){const s=t(),l=a(o),f=I.useCallback((h,m)=>{var $;I.startTransition(()=>{r.emit("update",h)});const g=new URL(location.href);g.search=Oae(h),yn(`[nuqs ${e}] Updating url: %s`,g);const b=m.history==="push"?history.pushState:history.replaceState;noe(m.shallow?1:2),b.call(history,history.state,m1,g),m.shallow===!1&&s({hash:g.hash,search:g.search},{replace:!0,preventScrollReset:!0,state:($=history.state)==null?void 0:$.usr}),m.scroll&&window.scrollTo(0,0)},[s]);return{searchParams:l,updateUrl:f,autoResetQueueOnUpdate:!1}}function a(o=[]){const[s]=n(typeof location>"u"?new URLSearchParams:new URLSearchParams(location.search)),[l,f]=I.useState(()=>typeof location>"u"?p1(s,o,!0):p1(new URLSearchParams(location.search),o,!1));return I.useEffect(()=>{function h(){f(rS(new URLSearchParams(location.search),o,!1))}function m(g){f(rS(g,o,!0))}return r.on("update",m),window.addEventListener("popstate",h),()=>{r.off("update",m),window.removeEventListener("popstate",h)}},[o.join("&")]),l}return soe(r,e),{NuqsAdapter:jae(i),useOptimisticSearchParams:a}}const loe=uoe({adapter:"react-router-v6",useNavigate:Z5.useNavigate,useSearchParams:Z5.useSearchParams}),coe=loe.NuqsAdapter;var vy,iS;function doe(){if(iS)return vy;iS=1;var e=Math.floor,t=Math.random;function n(r,i){return r+e(t()*(i-r+1))}return vy=n,vy}var yy,aS;function foe(){if(aS)return yy;aS=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return yy=t,yy}var by,oS;function hoe(){if(oS)return by;oS=1;var e=foe(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return by=n,by}var xy,sS;function poe(){if(sS)return xy;sS=1;var e=hoe(),t=Ru(),n=Wp(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function l(f){if(typeof f=="number")return f;if(n(f))return r;if(t(f)){var h=typeof f.valueOf=="function"?f.valueOf():f;f=t(h)?h+"":h}if(typeof f!="string")return f===0?f:+f;f=e(f);var m=a.test(f);return m||o.test(f)?s(f.slice(2),m?2:8):i.test(f)?r:+f}return xy=l,xy}var Dy,uS;function moe(){if(uS)return Dy;uS=1;var e=poe(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*n}return i===i?i:0}return Dy=r,Dy}var $y,lS;function goe(){if(lS)return $y;lS=1;var e=doe(),t=NT(),n=moe(),r=parseFloat,i=Math.min,a=Math.random;function o(s,l,f){if(f&&typeof f!="boolean"&&t(s,l,f)&&(l=f=void 0),f===void 0&&(typeof l=="boolean"?(f=l,l=void 0):typeof s=="boolean"&&(f=s,s=void 0)),s===void 0&&l===void 0?(s=0,l=1):(s=n(s),l===void 0?(l=s,s=0):l=n(l)),s>l){var h=s;s=l,l=h}if(f||s%1||l%1){var m=a();return i(s+m*(l-s+r("1e-"+((m+"").length-1))),l)}return e(s,l)}return $y=o,$y}var voe=goe();const yoe=ar(voe);var Ey,cS;function boe(){if(cS)return Ey;cS=1;var e=B9();function t(n){return e(n)&&n!=+n}return Ey=t,Ey}var xoe=boe();const Doe=ar(xoe),dS=(e,t,n)=>{if(e&&"reportValidity"in e){const r=it(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},$M=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?dS(r.ref,n,e):r&&r.refs&&r.refs.forEach(i=>dS(i,n,e))}},$oe=(e,t)=>{t.shouldUseNativeValidation&&$M(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(Eoe(t.names||Object.keys(e),r)){const o=Object.assign({},it(n,r));nn(o,"root",a),nn(n,r,o)}else nn(n,r,a)}return n},Eoe=(e,t)=>{const n=fS(t);return e.some(r=>fS(r).match(`^${n}\\.\\d+`))};function fS(e){return e.replace(/\]|\[/g,"")}function Coe(e,t,n){return n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(o,s){try{var l=(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(f){return a.shouldUseNativeValidation&&$M({},a),{values:n.raw?Object.assign({},r):f,errors:{}}}))}catch(f){return s(f)}return l&&l.then?l.then(void 0,s):l}(0,function(o){if(!o.inner)throw o;return{values:{},errors:$oe((s=o,l=!a.shouldUseNativeValidation&&a.criteriaMode==="all",(s.inner||[]).reduce(function(f,h){if(f[h.path]||(f[h.path]={message:h.message,type:h.type}),l){var m=f[h.path].types,g=m&&m[h.type];f[h.path]=fP(h.path,l,f,h.type,g?[].concat(g,h.message):h.message)}return f},{})),a)};var s,l}))}catch(o){return Promise.reject(o)}}}var $d={exports:{}},woe=$d.exports,hS;function Aoe(){return hS||(hS=1,function(e,t){(function(n,r){r(t,de.default)})(woe,function(n,r){function i(z){return z&&typeof z=="object"&&"default"in z?z:{default:z}}var a=i(r),o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Hi<"u"?Hi:typeof self<"u"?self:{},s={exports:{}};(function(z,G){typeof document<"u"&&typeof navigator<"u"&&function(V,R){z.exports=R()}(o,function(){var V="http://www.w3.org/2000/svg",R="",K=!1,fe=-999999,M=function(p){K=!!p},oe=function(){return K},le=function(p){R=p},Se=function(){return R};function _e(c){return document.createElement(c)}function Be(c,p){var v,D=c.length,_;for(v=0;v<D;v+=1){_=c[v].prototype;for(var B in _)Object.prototype.hasOwnProperty.call(_,B)&&(p.prototype[B]=_[B])}}function Ge(c){function p(){}return p.prototype=c,p}var Xe=function(){function c(p){this.audios=[],this.audioFactory=p,this._volume=1,this._isMuted=!1}return c.prototype={addAudio:function(v){this.audios.push(v)},pause:function(){var v,D=this.audios.length;for(v=0;v<D;v+=1)this.audios[v].pause()},resume:function(){var v,D=this.audios.length;for(v=0;v<D;v+=1)this.audios[v].resume()},setRate:function(v){var D,_=this.audios.length;for(D=0;D<_;D+=1)this.audios[D].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,D=this.audios.length;for(v=0;v<D;v+=1)this.audios[v].volume(this._volume*(this._isMuted?0:1))}},function(){return new c}}(),Ne=function(){function c(v,D){var _=0,B=[],U;switch(v){case"int16":case"uint8c":U=1;break;default:U=1.1;break}for(_=0;_<D;_+=1)B.push(U);return B}function p(v,D){return v==="float32"?new Float32Array(D):v==="int16"?new Int16Array(D):v==="uint8c"?new Uint8ClampedArray(D):c(v,D)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?p:c}();function qe(c){return Array.apply(null,{length:c})}var ke=!0,je=null,Te="",Ye=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),ht=Math.pow,Ht=Math.sqrt,xt=Math.floor,_t=Math.min,Wr=150,Jt=Math.PI/180,xe=.5519;function Ae(c,p,v,D){this.type=c,this.currentTime=p,this.totalTime=v,this.direction=D<0?-1:1}function Fe(c,p){this.type=c,this.direction=p<0?-1:1}function Qe(c,p,v,D){this.type=c,this.currentLoop=v,this.totalLoops=p,this.direction=D<0?-1:1}function et(c,p,v){this.type=c,this.firstFrame=p,this.totalFrames=v}function Je(c,p){this.type=c,this.target=p}function gt(c,p){this.type="renderFrameError",this.nativeError=c,this.currentTime=p}function kt(c){this.type="configError",this.nativeError=c}var Dt=function(){var c=0;return function(){return c+=1,Te+"__lottie_element_"+c}}();function bn(c,p,v){var D,_,B,U,ge,J,De,Ce;switch(U=Math.floor(c*6),ge=c*6-U,J=v*(1-p),De=v*(1-ge*p),Ce=v*(1-(1-ge)*p),U%6){case 0:D=v,_=Ce,B=J;break;case 1:D=De,_=v,B=J;break;case 2:D=J,_=v,B=Ce;break;case 3:D=J,_=De,B=v;break;case 4:D=Ce,_=J,B=v;break;case 5:D=v,_=J,B=De;break}return[D,_,B]}function Dr(c,p,v){var D=Math.max(c,p,v),_=Math.min(c,p,v),B=D-_,U,ge=D===0?0:B/D,J=D/255;switch(D){case _:U=0;break;case c:U=p-v+B*(p<v?6:0),U/=6*B;break;case p:U=v-c+B*2,U/=6*B;break;case v:U=c-p+B*4,U/=6*B;break}return[U,ge,J]}function zt(c,p){var v=Dr(c[0]*255,c[1]*255,c[2]*255);return v[1]+=p,v[1]>1?v[1]=1:v[1]<=0&&(v[1]=0),bn(v[0],v[1],v[2])}function Pt(c,p){var v=Dr(c[0]*255,c[1]*255,c[2]*255);return v[2]+=p,v[2]>1?v[2]=1:v[2]<0&&(v[2]=0),bn(v[0],v[1],v[2])}function It(c,p){var v=Dr(c[0]*255,c[1]*255,c[2]*255);return v[0]+=p/360,v[0]>1?v[0]-=1:v[0]<0&&(v[0]+=1),bn(v[0],v[1],v[2])}(function(){var c=[],p,v;for(p=0;p<256;p+=1)v=p.toString(16),c[p]=v.length===1?"0"+v:v;return function(D,_,B){return D<0&&(D=0),_<0&&(_=0),B<0&&(B=0),"#"+c[D]+c[_]+c[B]}})();var qt=function(p){ke=!!p},pr=function(){return ke},Hr=function(p){je=p},li=function(){return je},Br=function(p){Wr=p},Ba=function(){return Wr},Bs=function(p){Te=p};function bt(c){return document.createElementNS(V,c)}function ci(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ci=function(v){return typeof v}:ci=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},ci(c)}var uo=function(){var c=1,p=[],v,D,_={onmessage:function(){},postMessage:function(ee){v({data:ee})}},B={postMessage:function(ee){_.onmessage({data:ee})}};function U(k){if(window.Worker&&window.Blob&&oe()){var ee=new Blob(["var _workerSelf = self; self.onmessage = ",k.toString()],{type:"text/javascript"}),Y=URL.createObjectURL(ee);return new Worker(Y)}return v=k,_}function ge(){D||(D=U(function(ee){function Y(){function he(Le,$e){var ce,Q,ve=Le.length,Ke,Ie,lt,St;for(Q=0;Q<ve;Q+=1)if(ce=Le[Q],"ks"in ce&&!ce.completed){if(ce.completed=!0,ce.hasMask){var Et=ce.masksProperties;for(Ie=Et.length,Ke=0;Ke<Ie;Ke+=1)if(Et[Ke].pt.k.i)H(Et[Ke].pt.k);else for(St=Et[Ke].pt.k.length,lt=0;lt<St;lt+=1)Et[Ke].pt.k[lt].s&&H(Et[Ke].pt.k[lt].s[0]),Et[Ke].pt.k[lt].e&&H(Et[Ke].pt.k[lt].e[0])}ce.ty===0?(ce.layers=L(ce.refId,$e),he(ce.layers,$e)):ce.ty===4?j(ce.shapes):ce.ty===5&&st(ce)}}function W(Le,$e){if(Le){var ce=0,Q=Le.length;for(ce=0;ce<Q;ce+=1)Le[ce].t===1&&(Le[ce].data.layers=L(Le[ce].data.refId,$e),he(Le[ce].data.layers,$e))}}function Z(Le,$e){for(var ce=0,Q=$e.length;ce<Q;){if($e[ce].id===Le)return $e[ce];ce+=1}return null}function L(Le,$e){var ce=Z(Le,$e);return ce?ce.layers.__used?JSON.parse(JSON.stringify(ce.layers)):(ce.layers.__used=!0,ce.layers):null}function j(Le){var $e,ce=Le.length,Q,ve;for($e=ce-1;$e>=0;$e-=1)if(Le[$e].ty==="sh")if(Le[$e].ks.k.i)H(Le[$e].ks.k);else for(ve=Le[$e].ks.k.length,Q=0;Q<ve;Q+=1)Le[$e].ks.k[Q].s&&H(Le[$e].ks.k[Q].s[0]),Le[$e].ks.k[Q].e&&H(Le[$e].ks.k[Q].e[0]);else Le[$e].ty==="gr"&&j(Le[$e].it)}function H(Le){var $e,ce=Le.i.length;for($e=0;$e<ce;$e+=1)Le.i[$e][0]+=Le.v[$e][0],Le.i[$e][1]+=Le.v[$e][1],Le.o[$e][0]+=Le.v[$e][0],Le.o[$e][1]+=Le.v[$e][1]}function ne(Le,$e){var ce=$e?$e.split("."):[100,100,100];return Le[0]>ce[0]?!0:ce[0]>Le[0]?!1:Le[1]>ce[1]?!0:ce[1]>Le[1]?!1:Le[2]>ce[2]?!0:ce[2]>Le[2]?!1:null}var ue=function(){var Le=[4,4,14];function $e(Q){var ve=Q.t.d;Q.t.d={k:[{s:ve,t:0}]}}function ce(Q){var ve,Ke=Q.length;for(ve=0;ve<Ke;ve+=1)Q[ve].ty===5&&$e(Q[ve])}return function(Q){if(ne(Le,Q.v)&&(ce(Q.layers),Q.assets)){var ve,Ke=Q.assets.length;for(ve=0;ve<Ke;ve+=1)Q.assets[ve].layers&&ce(Q.assets[ve].layers)}}}(),me=function(){var Le=[4,7,99];return function($e){if($e.chars&&!ne(Le,$e.v)){var ce,Q=$e.chars.length;for(ce=0;ce<Q;ce+=1){var ve=$e.chars[ce];ve.data&&ve.data.shapes&&(j(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}},$e.chars[ce].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 Le=[5,7,15];function $e(Q){var ve=Q.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 ce(Q){var ve,Ke=Q.length;for(ve=0;ve<Ke;ve+=1)Q[ve].ty===5&&$e(Q[ve])}return function(Q){if(ne(Le,Q.v)&&(ce(Q.layers),Q.assets)){var ve,Ke=Q.assets.length;for(ve=0;ve<Ke;ve+=1)Q.assets[ve].layers&&ce(Q.assets[ve].layers)}}}(),nt=function(){var Le=[4,1,9];function $e(Q){var ve,Ke=Q.length,Ie,lt;for(ve=0;ve<Ke;ve+=1)if(Q[ve].ty==="gr")$e(Q[ve].it);else if(Q[ve].ty==="fl"||Q[ve].ty==="st")if(Q[ve].c.k&&Q[ve].c.k[0].i)for(lt=Q[ve].c.k.length,Ie=0;Ie<lt;Ie+=1)Q[ve].c.k[Ie].s&&(Q[ve].c.k[Ie].s[0]/=255,Q[ve].c.k[Ie].s[1]/=255,Q[ve].c.k[Ie].s[2]/=255,Q[ve].c.k[Ie].s[3]/=255),Q[ve].c.k[Ie].e&&(Q[ve].c.k[Ie].e[0]/=255,Q[ve].c.k[Ie].e[1]/=255,Q[ve].c.k[Ie].e[2]/=255,Q[ve].c.k[Ie].e[3]/=255);else Q[ve].c.k[0]/=255,Q[ve].c.k[1]/=255,Q[ve].c.k[2]/=255,Q[ve].c.k[3]/=255}function ce(Q){var ve,Ke=Q.length;for(ve=0;ve<Ke;ve+=1)Q[ve].ty===4&&$e(Q[ve].shapes)}return function(Q){if(ne(Le,Q.v)&&(ce(Q.layers),Q.assets)){var ve,Ke=Q.assets.length;for(ve=0;ve<Ke;ve+=1)Q.assets[ve].layers&&ce(Q.assets[ve].layers)}}}(),tt=function(){var Le=[4,4,18];function $e(Q){var ve,Ke=Q.length,Ie,lt;for(ve=Ke-1;ve>=0;ve-=1)if(Q[ve].ty==="sh")if(Q[ve].ks.k.i)Q[ve].ks.k.c=Q[ve].closed;else for(lt=Q[ve].ks.k.length,Ie=0;Ie<lt;Ie+=1)Q[ve].ks.k[Ie].s&&(Q[ve].ks.k[Ie].s[0].c=Q[ve].closed),Q[ve].ks.k[Ie].e&&(Q[ve].ks.k[Ie].e[0].c=Q[ve].closed);else Q[ve].ty==="gr"&&$e(Q[ve].it)}function ce(Q){var ve,Ke,Ie=Q.length,lt,St,Et,Dn;for(Ke=0;Ke<Ie;Ke+=1){if(ve=Q[Ke],ve.hasMask){var Ut=ve.masksProperties;for(St=Ut.length,lt=0;lt<St;lt+=1)if(Ut[lt].pt.k.i)Ut[lt].pt.k.c=Ut[lt].cl;else for(Dn=Ut[lt].pt.k.length,Et=0;Et<Dn;Et+=1)Ut[lt].pt.k[Et].s&&(Ut[lt].pt.k[Et].s[0].c=Ut[lt].cl),Ut[lt].pt.k[Et].e&&(Ut[lt].pt.k[Et].e[0].c=Ut[lt].cl)}ve.ty===4&&$e(ve.shapes)}}return function(Q){if(ne(Le,Q.v)&&(ce(Q.layers),Q.assets)){var ve,Ke=Q.assets.length;for(ve=0;ve<Ke;ve+=1)Q.assets[ve].layers&&ce(Q.assets[ve].layers)}}}();function Ve(Le){Le.__complete||(nt(Le),ue(Le),me(Le),Oe(Le),tt(Le),he(Le.layers,Le.assets),W(Le.chars,Le.assets),Le.__complete=!0)}function st(Le){Le.t.a.length===0&&"m"in Le.t.p}var ct={};return ct.completeData=Ve,ct.checkColors=nt,ct.checkChars=me,ct.checkPathProperties=Oe,ct.checkShapes=tt,ct.completeLayers=he,ct}if(B.dataManager||(B.dataManager=Y()),B.assetLoader||(B.assetLoader=function(){function he(Z){var L=Z.getResponseHeader("content-type");return L&&Z.responseType==="json"&&L.indexOf("json")!==-1||Z.response&&ci(Z.response)==="object"?Z.response:Z.response&&typeof Z.response=="string"?JSON.parse(Z.response):Z.responseText?JSON.parse(Z.responseText):null}function W(Z,L,j,H){var ne,ue=new XMLHttpRequest;try{ue.responseType="json"}catch{}ue.onreadystatechange=function(){if(ue.readyState===4)if(ue.status===200)ne=he(ue),j(ne);else try{ne=he(ue),j(ne)}catch(me){H&&H(me)}};try{ue.open(["G","E","T"].join(""),Z,!0)}catch{ue.open(["G","E","T"].join(""),L+"/"+Z,!0)}ue.send()}return{load:W}}()),ee.data.type==="loadAnimation")B.assetLoader.load(ee.data.path,ee.data.fullPath,function(he){B.dataManager.completeData(he),B.postMessage({id:ee.data.id,payload:he,status:"success"})},function(){B.postMessage({id:ee.data.id,status:"error"})});else if(ee.data.type==="complete"){var pe=ee.data.animation;B.dataManager.completeData(pe),B.postMessage({id:ee.data.id,payload:pe,status:"success"})}else ee.data.type==="loadData"&&B.assetLoader.load(ee.data.path,ee.data.fullPath,function(he){B.postMessage({id:ee.data.id,payload:he,status:"success"})},function(){B.postMessage({id:ee.data.id,status:"error"})})}),D.onmessage=function(k){var ee=k.data,Y=ee.id,pe=p[Y];p[Y]=null,ee.status==="success"?pe.onComplete(ee.payload):pe.onError&&pe.onError()})}function J(k,ee){c+=1;var Y="processId_"+c;return p[Y]={onComplete:k,onError:ee},Y}function De(k,ee,Y){ge();var pe=J(ee,Y);D.postMessage({type:"loadAnimation",path:k,fullPath:window.location.origin+window.location.pathname,id:pe})}function Ce(k,ee,Y){ge();var pe=J(ee,Y);D.postMessage({type:"loadData",path:k,fullPath:window.location.origin+window.location.pathname,id:pe})}function Re(k,ee,Y){ge();var pe=J(ee,Y);D.postMessage({type:"complete",animation:k,id:pe})}return{loadAnimation:De,loadData:Ce,completeAnimation:Re}}(),Sc=function(){var c=function(){var W=_e("canvas");W.width=1,W.height=1;var Z=W.getContext("2d");return Z.fillStyle="rgba(0,0,0,0)",Z.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 D(W,Z,L){var j="";if(W.e)j=W.p;else if(Z){var H=W.p;H.indexOf("images/")!==-1&&(H=H.split("/")[1]),j=Z+H}else j=L,j+=W.u?W.u:"",j+=W.p;return j}function _(W){var Z=0,L=setInterval((function(){var j=W.getBBox();(j.width||Z>500)&&(this._imageLoaded(),clearInterval(L)),Z+=1}).bind(this),50)}function B(W){var Z=D(W,this.assetsPath,this.path),L=bt("image");Ye?this.testImageLoaded(L):L.addEventListener("load",this._imageLoaded,!1),L.addEventListener("error",(function(){j.img=c,this._imageLoaded()}).bind(this),!1),L.setAttributeNS("http://www.w3.org/1999/xlink","href",Z),this._elementHelper.append?this._elementHelper.append(L):this._elementHelper.appendChild(L);var j={img:L,assetData:W};return j}function U(W){var Z=D(W,this.assetsPath,this.path),L=_e("img");L.crossOrigin="anonymous",L.addEventListener("load",this._imageLoaded,!1),L.addEventListener("error",(function(){j.img=c,this._imageLoaded()}).bind(this),!1),L.src=Z;var j={img:L,assetData:W};return j}function ge(W){var Z={assetData:W},L=D(W,this.assetsPath,this.path);return uo.loadData(L,(function(j){Z.img=j,this._footageLoaded()}).bind(this),(function(){Z.img={},this._footageLoaded()}).bind(this)),Z}function J(W,Z){this.imagesLoadedCb=Z;var L,j=W.length;for(L=0;L<j;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 De(W){this.path=W||""}function Ce(W){this.assetsPath=W||""}function Re(W){for(var Z=0,L=this.images.length;Z<L;){if(this.images[Z].assetData===W)return this.images[Z].img;Z+=1}return null}function k(){this.imagesLoadedCb=null,this.images.length=0}function ee(){return this.totalImages===this.loadedAssets}function Y(){return this.totalFootages===this.loadedFootagesCount}function pe(W,Z){W==="svg"?(this._elementHelper=Z,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function he(){this._imageLoaded=p.bind(this),this._footageLoaded=v.bind(this),this.testImageLoaded=_.bind(this),this.createFootageData=ge.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return he.prototype={loadAssets:J,setAssetsPath:Ce,setPath:De,loadedImages:ee,loadedFootages:Y,destroy:k,getAsset:Re,createImgData:U,createImageData:B,imageLoaded:p,footageLoaded:v,setCacheType:pe},he}();function Nu(){}Nu.prototype={triggerEvent:function(p,v){if(this._cbs[p])for(var D=this._cbs[p],_=0;_<D.length;_+=1)D[_](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 D=0,_=this._cbs[p].length;D<_;)this._cbs[p][D]===v&&(this._cbs[p].splice(D,1),D-=1,_-=1),D+=1;this._cbs[p].length||(this._cbs[p]=null)}}};var Tc=function(){function c(p){for(var v=p.split(`\r
84
+ See https://nuqs.dev/NUQS-${e}`}function Oae(e){if(e.size===0)return"";const t=[];for(const[r,i]of e.entries()){const a=r.replace(/#/g,"%23").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/=/g,"%3D").replace(/\?/g,"%3F");t.push(`${a}=${Lae(i)}`)}const n="?"+t.join("&");return Nae(n),n}function Lae(e){return e.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/#/g,"%23").replace(/&/g,"%26").replace(/"/g,"%22").replace(/'/g,"%27").replace(/`/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/[\x00-\x1F]/g,t=>encodeURIComponent(t))}const Vae=2e3;function Nae(e){if(process.env.NODE_ENV==="production"||typeof location>"u")return;const t=new URL(location.href);t.search=e,t.href.length>Vae&&console.warn(Lu(414))}const _u=I.createContext({useAdapter(){throw new Error(Lu(404))}});_u.displayName="NuqsAdapterContext";Fx&&typeof window<"u"&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==_u&&console.error(Lu(303)),window.__NuqsAdapterContext=_u);function jae(e){return({children:t,defaultOptions:n,processUrlSearchParams:r,...i})=>I.createElement(_u.Provider,{...i,value:{useAdapter:e,defaultOptions:n,processUrlSearchParams:r}},t)}function Kae(e){const t=I.useContext(_u);if(!("useAdapter"in t))throw new Error(Lu(404));return t.useAdapter(e)}const zae=()=>I.useContext(_u).defaultOptions,qae=()=>I.useContext(_u).processUrlSearchParams;function Uae(){var e;if(typeof window>"u"||!window.GestureEvent)return 50;try{const t=(e=navigator.userAgent)==null?void 0:e.match(/version\/([\d\.]+) safari/i);return parseFloat(t[1])>=17?120:320}catch{return 320}}function Wae(e){return{method:"throttle",timeMs:e}}const kd=Wae(Uae());function Hae(e){return e===null||Array.isArray(e)&&e.length===0}function Gae(e,t,n){if(typeof e=="string")n.set(t,e);else{n.delete(t);for(const r of e)n.append(t,r);n.has(t)||n.set(t,"")}return n}function kx(){const e=new Map;return{on(t,n){const r=e.get(t)||[];return r.push(n),e.set(t,r),()=>this.off(t,n)},off(t,n){const r=e.get(t);r&&e.set(t,r.filter(i=>i!==n))},emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))}}}function d1(e,t,n){function r(){e(),n.removeEventListener("abort",a)}const i=setTimeout(r,t);function a(){clearTimeout(i),n.removeEventListener("abort",a)}n.addEventListener("abort",a)}function f1(){const e=Promise;if(Promise.hasOwnProperty("withResolvers"))return Promise.withResolvers();let t=()=>{},n=()=>{};return{promise:new e((r,i)=>{t=r,n=i}),resolve:t,reject:n}}function Yae(e,t){let n=t;for(let r=e.length-1;r>=0;r--){const i=e[r];if(!i)continue;const a=n;n=()=>i(a)}n()}function h1(){return new URLSearchParams(location.search)}var vM=class{constructor(){Xn(this,"updateMap",new Map);Xn(this,"options",{history:"replace",scroll:!1,shallow:!0});Xn(this,"timeMs",kd.timeMs);Xn(this,"transitions",new Set);Xn(this,"resolvers",null);Xn(this,"controller",null);Xn(this,"lastFlushedAt",0);Xn(this,"resetQueueOnNextPush",!1)}push({key:e,query:t,options:n},r=kd.timeMs){this.resetQueueOnNextPush&&(this.reset(),this.resetQueueOnNextPush=!1),yn("[nuqs gtq] Enqueueing %s=%s %O",e,t,n),this.updateMap.set(e,t),n.history==="push"&&(this.options.history="push"),n.scroll&&(this.options.scroll=!0),n.shallow===!1&&(this.options.shallow=!1),n.startTransition&&this.transitions.add(n.startTransition),(!Number.isFinite(this.timeMs)||r>this.timeMs)&&(this.timeMs=r)}getQueuedQuery(e){return this.updateMap.get(e)}getPendingPromise({getSearchParamsSnapshot:e=h1}){var t;return((t=this.resolvers)==null?void 0:t.promise)??Promise.resolve(e())}flush({getSearchParamsSnapshot:e=h1,rateLimitFactor:t=1,...n},r){if(this.controller??(this.controller=new AbortController),!Number.isFinite(this.timeMs))return yn("[nuqs gtq] Skipping flush due to throttleMs=Infinity"),Promise.resolve(e());if(this.resolvers)return this.resolvers.promise;this.resolvers=f1();const i=()=>{this.lastFlushedAt=performance.now();const[o,s]=this.applyPendingUpdates({...n,autoResetQueueOnUpdate:n.autoResetQueueOnUpdate??!0,getSearchParamsSnapshot:e},r);s===null?(this.resolvers.resolve(o),this.resetQueueOnNextPush=!0):this.resolvers.reject(o),this.resolvers=null};return d1(()=>{const o=performance.now()-this.lastFlushedAt,s=this.timeMs,l=t*Math.max(0,s-o);yn("[nuqs gtq] Scheduling flush in %f ms. Throttled at %f ms (x%f)",l,s,t),l===0?i():d1(i,l,this.controller.signal)},0,this.controller.signal),this.resolvers.promise}abort(){var e,t;return(e=this.controller)==null||e.abort(),this.controller=new AbortController,(t=this.resolvers)==null||t.resolve(new URLSearchParams),this.resolvers=null,this.reset()}reset(){const e=Array.from(this.updateMap.keys());return yn("[nuqs gtq] Resetting queue %s",JSON.stringify(Object.fromEntries(this.updateMap))),this.updateMap.clear(),this.transitions.clear(),this.options={history:"replace",scroll:!1,shallow:!0},this.timeMs=kd.timeMs,e}applyPendingUpdates(e,t){const{updateUrl:n,getSearchParamsSnapshot:r}=e;let i=r();if(yn("[nuqs gtq] Applying %d pending update(s) on top of %s",this.updateMap.size,i.toString()),this.updateMap.size===0)return[i,null];const a=Array.from(this.updateMap.entries()),o={...this.options},s=Array.from(this.transitions);e.autoResetQueueOnUpdate&&this.reset(),yn("[nuqs gtq] Flushing queue %O with options %O",a,o);for(const[l,f]of a)f===null?i.delete(l):i=Gae(f,l,i);t&&(i=t(i));try{return Yae(s,()=>{n(i,o)}),[i,null]}catch(l){return console.error(Lu(429),a.map(([f])=>f).join(),l),[i,l]}}};const Md=new vM;function Zae(e,t,n){const r=I.useCallback(()=>{const o=Object.fromEntries(e.map(s=>[s,n(s)]));return[JSON.stringify(o),o]},[e.join(","),n]),i=I.useRef(null);i.current===null&&(i.current=r());const a=I.useCallback(o=>{const s=e.map(l=>t(l,o));return()=>s.forEach(l=>l())},[e.join(","),t]);return I.useSyncExternalStore(a,()=>{const[o,s]=r();return i.current[0]===o?i.current[1]:(i.current=[o,s],s)},()=>i.current[1])}var Xae=class{constructor(e){Xn(this,"callback");Xn(this,"resolvers",f1());Xn(this,"controller",new AbortController);Xn(this,"queuedValue");this.callback=e}abort(){this.controller.abort(),this.queuedValue=void 0}push(e,t){return this.queuedValue=e,this.controller.abort(),this.controller=new AbortController,d1(()=>{const n=this.resolvers;try{yn("[nuqs dq] Flushing debounce queue",e);const r=this.callback(e);yn("[nuqs dq] Reset debounce queue %O",this.queuedValue),this.queuedValue=void 0,this.resolvers=f1(),r.then(i=>n.resolve(i)).catch(i=>n.reject(i))}catch(r){this.queuedValue=void 0,n.reject(r)}},t,this.controller.signal),this.resolvers.promise}},Qae=class{constructor(e=new vM){Xn(this,"throttleQueue");Xn(this,"queues",new Map);Xn(this,"queuedQuerySync",kx());this.throttleQueue=e}useQueuedQueries(e){return Zae(e,(t,n)=>this.queuedQuerySync.on(t,n),t=>this.getQueuedQuery(t))}push(e,t,n){if(!Number.isFinite(t)){const a=n.getSearchParamsSnapshot??h1;return Promise.resolve(a())}const r=e.key;if(!this.queues.has(r)){yn("[nuqs dqc] Creating debounce queue for `%s`",r);const a=new Xae(o=>(this.throttleQueue.push(o),this.throttleQueue.flush(n).finally(()=>{var s;((s=this.queues.get(o.key))==null?void 0:s.queuedValue)===void 0&&(yn("[nuqs dqc] Cleaning up empty queue for `%s`",o.key),this.queues.delete(o.key)),this.queuedQuerySync.emit(o.key)})));this.queues.set(r,a)}yn("[nuqs dqc] Enqueueing debounce update %O",e);const i=this.queues.get(r).push(e,t);return this.queuedQuerySync.emit(r),i}abort(e){var n;const t=this.queues.get(e);return t?(yn("[nuqs dqc] Aborting debounce queue %s=%s",e,(n=t.queuedValue)==null?void 0:n.query),this.queues.delete(e),t.abort(),this.queuedQuerySync.emit(e),r=>(r.then(t.resolvers.resolve,t.resolvers.reject),r)):r=>r}abortAll(){var e;for(const[t,n]of this.queues.entries())yn("[nuqs dqc] Aborting debounce queue %s=%s",t,(e=n.queuedValue)==null?void 0:e.query),n.abort(),n.resolvers.resolve(new URLSearchParams),this.queuedQuerySync.emit(t);this.queues.clear()}getQueuedQuery(e){var n,r;const t=(r=(n=this.queues.get(e))==null?void 0:n.queuedValue)==null?void 0:r.query;return t!==void 0?t:this.throttleQueue.getQueuedQuery(e)}};const Rd=new Qae(Md);function yM(e,t){return e===t?!0:e===null||t===null||typeof e=="string"||typeof t=="string"||e.length!==t.length?!1:e.every((n,r)=>n===t[r])}function bM(e,t,n){try{return e(t)}catch(r){return kae("[nuqs] Error while parsing value `%s`: %O"+(n?" (for key `%s`)":""),t,r,n),null}}function Xo(e){function t(n){if(typeof n>"u")return null;let r="";if(Array.isArray(n)){if(n[0]===void 0)return null;r=n[0]}return typeof n=="string"&&(r=n),bM(e.parse,r)}return{type:"single",eq:(n,r)=>n===r,...e,parseServerSide:t,withDefault(n){return{...this,defaultValue:n,parseServerSide(r){return t(r)??n}}},withOptions(n){return{...this,...n}}}}const Jae=Xo({parse:e=>e,serialize:String});Xo({parse:e=>{const t=parseInt(e);return t==t?t:null},serialize:e=>""+Math.round(e)});Xo({parse:e=>{const t=parseInt(e);return t==t?t-1:null},serialize:e=>""+Math.round(e+1)});Xo({parse:e=>{const t=parseInt(e,16);return t==t?t:null},serialize:e=>{const t=Math.round(e).toString(16);return(t.length&1?"0":"")+t}});Xo({parse:e=>{const t=parseFloat(e);return t==t?t:null},serialize:String});Xo({parse:e=>e==="true",serialize:String});function Mx(e,t){return e.valueOf()===t.valueOf()}Xo({parse:e=>{const t=parseInt(e);return t==t?new Date(t):null},serialize:e=>""+e.valueOf(),eq:Mx});Xo({parse:e=>{const t=new Date(e);return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString(),eq:Mx});Xo({parse:e=>{const t=new Date(e.slice(0,10));return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString().slice(0,10),eq:Mx});const my=kx(),eoe={};function xM(e,t={}){const n=I.useId(),r=zae(),i=qae(),{history:a="replace",scroll:o=(r==null?void 0:r.scroll)??!1,shallow:s=(r==null?void 0:r.shallow)??!0,throttleMs:l=kd.timeMs,limitUrlUpdates:f=r==null?void 0:r.limitUrlUpdates,clearOnDefault:h=(r==null?void 0:r.clearOnDefault)??!0,startTransition:m,urlKeys:g=eoe}=t,b=Object.keys(e).join(","),$=I.useMemo(()=>Object.fromEntries(Object.keys(e).map(te=>[te,g[te]??te])),[b,JSON.stringify(g)]),x=Kae(Object.values($)),A=x.searchParams,w=I.useRef({}),C=I.useMemo(()=>Object.fromEntries(Object.keys(e).map(te=>[te,e[te].defaultValue??null])),[Object.values(e).map(({defaultValue:te})=>te).join(",")]),E=Rd.useQueuedQueries(Object.values($)),[T,P]=I.useState(()=>{const te=A??new URLSearchParams;return gy(e,g,te,E).state}),F=I.useRef(T);if(yn("[nuq+ %s `%s`] render - state: %O, iSP: %s",n,b,T,A),Object.keys(w.current).join("&")!==Object.values($).join("&")){const{state:te,hasChanged:se}=gy(e,g,A,E,w.current,F.current);se&&(yn("[nuq+ %s `%s`] State changed: %O",n,b,{state:te,initialSearchParams:A,queuedQueries:E,queryRef:w.current,stateRef:F.current}),F.current=te,P(te)),w.current=Object.fromEntries(Object.entries($).map(([ae,O])=>{const Ee=e[ae];return[O,(Ee==null?void 0:Ee.type)==="multi"?A==null?void 0:A.getAll(O):(A==null?void 0:A.get(O))??null]}))}I.useEffect(()=>{const{state:te,hasChanged:se}=gy(e,g,A,E,w.current,F.current);se&&(yn("[nuq+ %s `%s`] State changed: %O",n,b,{state:te,initialSearchParams:A,queuedQueries:E,queryRef:w.current,stateRef:F.current}),F.current=te,P(te))},[Object.values($).map(te=>`${te}=${A==null?void 0:A.getAll(te)}`).join("&"),JSON.stringify(E)]),I.useEffect(()=>{const te=Object.keys(e).reduce((se,ae)=>(se[ae]=({state:O,query:Ee})=>{P(be=>{const{defaultValue:z}=e[ae],G=$[ae],V=O??z??null,R=be[ae]??z??null;return Object.is(R,V)?(yn("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). no change, skipping, resolved: %O",n,b,G,O,z,F.current),be):(F.current={...F.current,[ae]:V},w.current[G]=Ee,yn("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). updateInternalState, resolved: %O",n,b,G,O,z,F.current),F.current)})},se),{});for(const se of Object.keys(e)){const ae=$[se];yn("[nuq+ %s `%s`] Subscribing to sync for `%s`",n,ae,b),my.on(ae,te[se])}return()=>{for(const se of Object.keys(e)){const ae=$[se];yn("[nuq+ %s `%s`] Unsubscribing to sync for `%s`",n,ae,b),my.off(ae,te[se])}}},[b,$]);const q=I.useCallback((te,se={})=>{var R,K,fe,M,oe,le;const ae=Object.fromEntries(Object.keys(e).map(Se=>[Se,null])),O=typeof te=="function"?te(nS(F.current,C))??ae:te??ae;yn("[nuq+ %s `%s`] setState: %O",n,b,O);let Ee,be=0,z=!1;const G=[];for(let[Se,_e]of Object.entries(O)){const Be=e[Se],Ge=$[Se];if(!Be)continue;(se.clearOnDefault??Be.clearOnDefault??h)&&_e!==null&&Be.defaultValue!==void 0&&(Be.eq??((qe,ke)=>qe===ke))(_e,Be.defaultValue)&&(_e=null);const Xe=_e===null?null:(Be.serialize??String)(_e);my.emit(Ge,{state:_e,query:Xe});const Ne={key:Ge,query:Xe,options:{history:se.history??Be.history??a,shallow:se.shallow??Be.shallow??s,scroll:se.scroll??Be.scroll??o,startTransition:se.startTransition??Be.startTransition??m}};if(((R=se==null?void 0:se.limitUrlUpdates)==null?void 0:R.method)==="debounce"||(f==null?void 0:f.method)==="debounce"||((K=Be.limitUrlUpdates)==null?void 0:K.method)==="debounce"){Ne.options.shallow===!0&&console.warn(Lu(422));const qe=((fe=se==null?void 0:se.limitUrlUpdates)==null?void 0:fe.timeMs)??(f==null?void 0:f.timeMs)??((M=Be.limitUrlUpdates)==null?void 0:M.timeMs)??kd.timeMs,ke=Rd.push(Ne,qe,x);be<qe&&(Ee=ke,be=qe)}else{const qe=((oe=se==null?void 0:se.limitUrlUpdates)==null?void 0:oe.timeMs)??((le=Be==null?void 0:Be.limitUrlUpdates)==null?void 0:le.timeMs)??(f==null?void 0:f.timeMs)??se.throttleMs??Be.throttleMs??l;G.push(Rd.abort(Ge)),Md.push(Ne,qe),z=!0}}const V=G.reduce((Se,_e)=>_e(Se),z?Md.flush(x,i):Md.getPendingPromise(x));return Ee??V},[b,a,s,o,l,f==null?void 0:f.method,f==null?void 0:f.timeMs,m,$,x.updateUrl,x.getSearchParamsSnapshot,x.rateLimitFactor,i,C]);return[I.useMemo(()=>nS(T,C),[T,C]),q]}function gy(e,t,n,r,i,a){let o=!1;const s=Object.entries(e).reduce((l,[f,h])=>{const m=(t==null?void 0:t[f])??f,g=r[m],b=h.type==="multi"?[]:null,$=g===void 0?(h.type==="multi"?n==null?void 0:n.getAll(m):n==null?void 0:n.get(m))??b:g;return i&&a&&yM(i[m]??b,$)?(l[f]=a[f]??null,l):(o=!0,l[f]=(Hae($)?null:bM(h.parse,$,m))??null,i&&(i[m]=$),l)},{});if(!o){const l=Object.keys(e),f=Object.keys(a??{});o=l.length!==f.length||l.some(h=>!f.includes(h))}return{state:s,hasChanged:o}}function nS(e,t){return Object.fromEntries(Object.keys(e).map(n=>[n,e[n]??t[n]??null]))}function toe(e,t={}){const{parse:n,type:r,serialize:i,eq:a,defaultValue:o,...s}=t,[{[e]:l},f]=xM({[e]:{parse:n??(m=>m),type:r,serialize:i,eq:a,defaultValue:o}},s),h=I.useCallback((m,g={})=>f(b=>({[e]:typeof m=="function"?m(b[e]):m}),g),[e,f]);return[l,h]}var vy,rS;function noe(){if(rS)return vy;rS=1;var e=Math.floor,t=Math.random;function n(r,i){return r+e(t()*(i-r+1))}return vy=n,vy}var yy,iS;function roe(){if(iS)return yy;iS=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return yy=t,yy}var by,aS;function ioe(){if(aS)return by;aS=1;var e=roe(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return by=n,by}var xy,oS;function aoe(){if(oS)return xy;oS=1;var e=ioe(),t=Ru(),n=Wp(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function l(f){if(typeof f=="number")return f;if(n(f))return r;if(t(f)){var h=typeof f.valueOf=="function"?f.valueOf():f;f=t(h)?h+"":h}if(typeof f!="string")return f===0?f:+f;f=e(f);var m=a.test(f);return m||o.test(f)?s(f.slice(2),m?2:8):i.test(f)?r:+f}return xy=l,xy}var Dy,sS;function ooe(){if(sS)return Dy;sS=1;var e=aoe(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*n}return i===i?i:0}return Dy=r,Dy}var $y,uS;function soe(){if(uS)return $y;uS=1;var e=noe(),t=NT(),n=ooe(),r=parseFloat,i=Math.min,a=Math.random;function o(s,l,f){if(f&&typeof f!="boolean"&&t(s,l,f)&&(l=f=void 0),f===void 0&&(typeof l=="boolean"?(f=l,l=void 0):typeof s=="boolean"&&(f=s,s=void 0)),s===void 0&&l===void 0?(s=0,l=1):(s=n(s),l===void 0?(l=s,s=0):l=n(l)),s>l){var h=s;s=l,l=h}if(f||s%1||l%1){var m=a();return i(s+m*(l-s+r("1e-"+((m+"").length-1))),l)}return e(s,l)}return $y=o,$y}var uoe=soe();const loe=ar(uoe);var Ey,lS;function coe(){if(lS)return Ey;lS=1;var e=B9();function t(n){return e(n)&&n!=+n}return Ey=t,Ey}var doe=coe();const foe=ar(doe),cS=(e,t,n)=>{if(e&&"reportValidity"in e){const r=it(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},DM=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?cS(r.ref,n,e):r&&r.refs&&r.refs.forEach(i=>cS(i,n,e))}},hoe=(e,t)=>{t.shouldUseNativeValidation&&DM(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(poe(t.names||Object.keys(e),r)){const o=Object.assign({},it(n,r));nn(o,"root",a),nn(n,r,o)}else nn(n,r,a)}return n},poe=(e,t)=>{const n=dS(t);return e.some(r=>dS(r).match(`^${n}\\.\\d+`))};function dS(e){return e.replace(/\]|\[/g,"")}function moe(e,t,n){return n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(o,s){try{var l=(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(f){return a.shouldUseNativeValidation&&DM({},a),{values:n.raw?Object.assign({},r):f,errors:{}}}))}catch(f){return s(f)}return l&&l.then?l.then(void 0,s):l}(0,function(o){if(!o.inner)throw o;return{values:{},errors:hoe((s=o,l=!a.shouldUseNativeValidation&&a.criteriaMode==="all",(s.inner||[]).reduce(function(f,h){if(f[h.path]||(f[h.path]={message:h.message,type:h.type}),l){var m=f[h.path].types,g=m&&m[h.type];f[h.path]=fP(h.path,l,f,h.type,g?[].concat(g,h.message):h.message)}return f},{})),a)};var s,l}))}catch(o){return Promise.reject(o)}}}var $d={exports:{}},goe=$d.exports,fS;function voe(){return fS||(fS=1,function(e,t){(function(n,r){r(t,de.default)})(goe,function(n,r){function i(z){return z&&typeof z=="object"&&"default"in z?z:{default:z}}var a=i(r),o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Hi<"u"?Hi:typeof self<"u"?self:{},s={exports:{}};(function(z,G){typeof document<"u"&&typeof navigator<"u"&&function(V,R){z.exports=R()}(o,function(){var V="http://www.w3.org/2000/svg",R="",K=!1,fe=-999999,M=function(p){K=!!p},oe=function(){return K},le=function(p){R=p},Se=function(){return R};function _e(c){return document.createElement(c)}function Be(c,p){var v,D=c.length,_;for(v=0;v<D;v+=1){_=c[v].prototype;for(var B in _)Object.prototype.hasOwnProperty.call(_,B)&&(p.prototype[B]=_[B])}}function Ge(c){function p(){}return p.prototype=c,p}var Xe=function(){function c(p){this.audios=[],this.audioFactory=p,this._volume=1,this._isMuted=!1}return c.prototype={addAudio:function(v){this.audios.push(v)},pause:function(){var v,D=this.audios.length;for(v=0;v<D;v+=1)this.audios[v].pause()},resume:function(){var v,D=this.audios.length;for(v=0;v<D;v+=1)this.audios[v].resume()},setRate:function(v){var D,_=this.audios.length;for(D=0;D<_;D+=1)this.audios[D].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,D=this.audios.length;for(v=0;v<D;v+=1)this.audios[v].volume(this._volume*(this._isMuted?0:1))}},function(){return new c}}(),Ne=function(){function c(v,D){var _=0,B=[],U;switch(v){case"int16":case"uint8c":U=1;break;default:U=1.1;break}for(_=0;_<D;_+=1)B.push(U);return B}function p(v,D){return v==="float32"?new Float32Array(D):v==="int16"?new Int16Array(D):v==="uint8c"?new Uint8ClampedArray(D):c(v,D)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?p:c}();function qe(c){return Array.apply(null,{length:c})}var ke=!0,je=null,Te="",Ye=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),ht=Math.pow,Ht=Math.sqrt,xt=Math.floor,_t=Math.min,Wr=150,Jt=Math.PI/180,xe=.5519;function Ae(c,p,v,D){this.type=c,this.currentTime=p,this.totalTime=v,this.direction=D<0?-1:1}function Fe(c,p){this.type=c,this.direction=p<0?-1:1}function Qe(c,p,v,D){this.type=c,this.currentLoop=v,this.totalLoops=p,this.direction=D<0?-1:1}function et(c,p,v){this.type=c,this.firstFrame=p,this.totalFrames=v}function Je(c,p){this.type=c,this.target=p}function gt(c,p){this.type="renderFrameError",this.nativeError=c,this.currentTime=p}function kt(c){this.type="configError",this.nativeError=c}var Dt=function(){var c=0;return function(){return c+=1,Te+"__lottie_element_"+c}}();function bn(c,p,v){var D,_,B,U,ge,J,De,Ce;switch(U=Math.floor(c*6),ge=c*6-U,J=v*(1-p),De=v*(1-ge*p),Ce=v*(1-(1-ge)*p),U%6){case 0:D=v,_=Ce,B=J;break;case 1:D=De,_=v,B=J;break;case 2:D=J,_=v,B=Ce;break;case 3:D=J,_=De,B=v;break;case 4:D=Ce,_=J,B=v;break;case 5:D=v,_=J,B=De;break}return[D,_,B]}function Dr(c,p,v){var D=Math.max(c,p,v),_=Math.min(c,p,v),B=D-_,U,ge=D===0?0:B/D,J=D/255;switch(D){case _:U=0;break;case c:U=p-v+B*(p<v?6:0),U/=6*B;break;case p:U=v-c+B*2,U/=6*B;break;case v:U=c-p+B*4,U/=6*B;break}return[U,ge,J]}function zt(c,p){var v=Dr(c[0]*255,c[1]*255,c[2]*255);return v[1]+=p,v[1]>1?v[1]=1:v[1]<=0&&(v[1]=0),bn(v[0],v[1],v[2])}function Pt(c,p){var v=Dr(c[0]*255,c[1]*255,c[2]*255);return v[2]+=p,v[2]>1?v[2]=1:v[2]<0&&(v[2]=0),bn(v[0],v[1],v[2])}function It(c,p){var v=Dr(c[0]*255,c[1]*255,c[2]*255);return v[0]+=p/360,v[0]>1?v[0]-=1:v[0]<0&&(v[0]+=1),bn(v[0],v[1],v[2])}(function(){var c=[],p,v;for(p=0;p<256;p+=1)v=p.toString(16),c[p]=v.length===1?"0"+v:v;return function(D,_,B){return D<0&&(D=0),_<0&&(_=0),B<0&&(B=0),"#"+c[D]+c[_]+c[B]}})();var qt=function(p){ke=!!p},pr=function(){return ke},Hr=function(p){je=p},li=function(){return je},Br=function(p){Wr=p},Ba=function(){return Wr},Bs=function(p){Te=p};function bt(c){return document.createElementNS(V,c)}function ci(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ci=function(v){return typeof v}:ci=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},ci(c)}var uo=function(){var c=1,p=[],v,D,_={onmessage:function(){},postMessage:function(ee){v({data:ee})}},B={postMessage:function(ee){_.onmessage({data:ee})}};function U(k){if(window.Worker&&window.Blob&&oe()){var ee=new Blob(["var _workerSelf = self; self.onmessage = ",k.toString()],{type:"text/javascript"}),Y=URL.createObjectURL(ee);return new Worker(Y)}return v=k,_}function ge(){D||(D=U(function(ee){function Y(){function he(Le,$e){var ce,Q,ve=Le.length,Ke,Ie,lt,St;for(Q=0;Q<ve;Q+=1)if(ce=Le[Q],"ks"in ce&&!ce.completed){if(ce.completed=!0,ce.hasMask){var Et=ce.masksProperties;for(Ie=Et.length,Ke=0;Ke<Ie;Ke+=1)if(Et[Ke].pt.k.i)H(Et[Ke].pt.k);else for(St=Et[Ke].pt.k.length,lt=0;lt<St;lt+=1)Et[Ke].pt.k[lt].s&&H(Et[Ke].pt.k[lt].s[0]),Et[Ke].pt.k[lt].e&&H(Et[Ke].pt.k[lt].e[0])}ce.ty===0?(ce.layers=L(ce.refId,$e),he(ce.layers,$e)):ce.ty===4?j(ce.shapes):ce.ty===5&&st(ce)}}function W(Le,$e){if(Le){var ce=0,Q=Le.length;for(ce=0;ce<Q;ce+=1)Le[ce].t===1&&(Le[ce].data.layers=L(Le[ce].data.refId,$e),he(Le[ce].data.layers,$e))}}function Z(Le,$e){for(var ce=0,Q=$e.length;ce<Q;){if($e[ce].id===Le)return $e[ce];ce+=1}return null}function L(Le,$e){var ce=Z(Le,$e);return ce?ce.layers.__used?JSON.parse(JSON.stringify(ce.layers)):(ce.layers.__used=!0,ce.layers):null}function j(Le){var $e,ce=Le.length,Q,ve;for($e=ce-1;$e>=0;$e-=1)if(Le[$e].ty==="sh")if(Le[$e].ks.k.i)H(Le[$e].ks.k);else for(ve=Le[$e].ks.k.length,Q=0;Q<ve;Q+=1)Le[$e].ks.k[Q].s&&H(Le[$e].ks.k[Q].s[0]),Le[$e].ks.k[Q].e&&H(Le[$e].ks.k[Q].e[0]);else Le[$e].ty==="gr"&&j(Le[$e].it)}function H(Le){var $e,ce=Le.i.length;for($e=0;$e<ce;$e+=1)Le.i[$e][0]+=Le.v[$e][0],Le.i[$e][1]+=Le.v[$e][1],Le.o[$e][0]+=Le.v[$e][0],Le.o[$e][1]+=Le.v[$e][1]}function ne(Le,$e){var ce=$e?$e.split("."):[100,100,100];return Le[0]>ce[0]?!0:ce[0]>Le[0]?!1:Le[1]>ce[1]?!0:ce[1]>Le[1]?!1:Le[2]>ce[2]?!0:ce[2]>Le[2]?!1:null}var ue=function(){var Le=[4,4,14];function $e(Q){var ve=Q.t.d;Q.t.d={k:[{s:ve,t:0}]}}function ce(Q){var ve,Ke=Q.length;for(ve=0;ve<Ke;ve+=1)Q[ve].ty===5&&$e(Q[ve])}return function(Q){if(ne(Le,Q.v)&&(ce(Q.layers),Q.assets)){var ve,Ke=Q.assets.length;for(ve=0;ve<Ke;ve+=1)Q.assets[ve].layers&&ce(Q.assets[ve].layers)}}}(),me=function(){var Le=[4,7,99];return function($e){if($e.chars&&!ne(Le,$e.v)){var ce,Q=$e.chars.length;for(ce=0;ce<Q;ce+=1){var ve=$e.chars[ce];ve.data&&ve.data.shapes&&(j(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}},$e.chars[ce].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 Le=[5,7,15];function $e(Q){var ve=Q.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 ce(Q){var ve,Ke=Q.length;for(ve=0;ve<Ke;ve+=1)Q[ve].ty===5&&$e(Q[ve])}return function(Q){if(ne(Le,Q.v)&&(ce(Q.layers),Q.assets)){var ve,Ke=Q.assets.length;for(ve=0;ve<Ke;ve+=1)Q.assets[ve].layers&&ce(Q.assets[ve].layers)}}}(),nt=function(){var Le=[4,1,9];function $e(Q){var ve,Ke=Q.length,Ie,lt;for(ve=0;ve<Ke;ve+=1)if(Q[ve].ty==="gr")$e(Q[ve].it);else if(Q[ve].ty==="fl"||Q[ve].ty==="st")if(Q[ve].c.k&&Q[ve].c.k[0].i)for(lt=Q[ve].c.k.length,Ie=0;Ie<lt;Ie+=1)Q[ve].c.k[Ie].s&&(Q[ve].c.k[Ie].s[0]/=255,Q[ve].c.k[Ie].s[1]/=255,Q[ve].c.k[Ie].s[2]/=255,Q[ve].c.k[Ie].s[3]/=255),Q[ve].c.k[Ie].e&&(Q[ve].c.k[Ie].e[0]/=255,Q[ve].c.k[Ie].e[1]/=255,Q[ve].c.k[Ie].e[2]/=255,Q[ve].c.k[Ie].e[3]/=255);else Q[ve].c.k[0]/=255,Q[ve].c.k[1]/=255,Q[ve].c.k[2]/=255,Q[ve].c.k[3]/=255}function ce(Q){var ve,Ke=Q.length;for(ve=0;ve<Ke;ve+=1)Q[ve].ty===4&&$e(Q[ve].shapes)}return function(Q){if(ne(Le,Q.v)&&(ce(Q.layers),Q.assets)){var ve,Ke=Q.assets.length;for(ve=0;ve<Ke;ve+=1)Q.assets[ve].layers&&ce(Q.assets[ve].layers)}}}(),tt=function(){var Le=[4,4,18];function $e(Q){var ve,Ke=Q.length,Ie,lt;for(ve=Ke-1;ve>=0;ve-=1)if(Q[ve].ty==="sh")if(Q[ve].ks.k.i)Q[ve].ks.k.c=Q[ve].closed;else for(lt=Q[ve].ks.k.length,Ie=0;Ie<lt;Ie+=1)Q[ve].ks.k[Ie].s&&(Q[ve].ks.k[Ie].s[0].c=Q[ve].closed),Q[ve].ks.k[Ie].e&&(Q[ve].ks.k[Ie].e[0].c=Q[ve].closed);else Q[ve].ty==="gr"&&$e(Q[ve].it)}function ce(Q){var ve,Ke,Ie=Q.length,lt,St,Et,Dn;for(Ke=0;Ke<Ie;Ke+=1){if(ve=Q[Ke],ve.hasMask){var Ut=ve.masksProperties;for(St=Ut.length,lt=0;lt<St;lt+=1)if(Ut[lt].pt.k.i)Ut[lt].pt.k.c=Ut[lt].cl;else for(Dn=Ut[lt].pt.k.length,Et=0;Et<Dn;Et+=1)Ut[lt].pt.k[Et].s&&(Ut[lt].pt.k[Et].s[0].c=Ut[lt].cl),Ut[lt].pt.k[Et].e&&(Ut[lt].pt.k[Et].e[0].c=Ut[lt].cl)}ve.ty===4&&$e(ve.shapes)}}return function(Q){if(ne(Le,Q.v)&&(ce(Q.layers),Q.assets)){var ve,Ke=Q.assets.length;for(ve=0;ve<Ke;ve+=1)Q.assets[ve].layers&&ce(Q.assets[ve].layers)}}}();function Ve(Le){Le.__complete||(nt(Le),ue(Le),me(Le),Oe(Le),tt(Le),he(Le.layers,Le.assets),W(Le.chars,Le.assets),Le.__complete=!0)}function st(Le){Le.t.a.length===0&&"m"in Le.t.p}var ct={};return ct.completeData=Ve,ct.checkColors=nt,ct.checkChars=me,ct.checkPathProperties=Oe,ct.checkShapes=tt,ct.completeLayers=he,ct}if(B.dataManager||(B.dataManager=Y()),B.assetLoader||(B.assetLoader=function(){function he(Z){var L=Z.getResponseHeader("content-type");return L&&Z.responseType==="json"&&L.indexOf("json")!==-1||Z.response&&ci(Z.response)==="object"?Z.response:Z.response&&typeof Z.response=="string"?JSON.parse(Z.response):Z.responseText?JSON.parse(Z.responseText):null}function W(Z,L,j,H){var ne,ue=new XMLHttpRequest;try{ue.responseType="json"}catch{}ue.onreadystatechange=function(){if(ue.readyState===4)if(ue.status===200)ne=he(ue),j(ne);else try{ne=he(ue),j(ne)}catch(me){H&&H(me)}};try{ue.open(["G","E","T"].join(""),Z,!0)}catch{ue.open(["G","E","T"].join(""),L+"/"+Z,!0)}ue.send()}return{load:W}}()),ee.data.type==="loadAnimation")B.assetLoader.load(ee.data.path,ee.data.fullPath,function(he){B.dataManager.completeData(he),B.postMessage({id:ee.data.id,payload:he,status:"success"})},function(){B.postMessage({id:ee.data.id,status:"error"})});else if(ee.data.type==="complete"){var pe=ee.data.animation;B.dataManager.completeData(pe),B.postMessage({id:ee.data.id,payload:pe,status:"success"})}else ee.data.type==="loadData"&&B.assetLoader.load(ee.data.path,ee.data.fullPath,function(he){B.postMessage({id:ee.data.id,payload:he,status:"success"})},function(){B.postMessage({id:ee.data.id,status:"error"})})}),D.onmessage=function(k){var ee=k.data,Y=ee.id,pe=p[Y];p[Y]=null,ee.status==="success"?pe.onComplete(ee.payload):pe.onError&&pe.onError()})}function J(k,ee){c+=1;var Y="processId_"+c;return p[Y]={onComplete:k,onError:ee},Y}function De(k,ee,Y){ge();var pe=J(ee,Y);D.postMessage({type:"loadAnimation",path:k,fullPath:window.location.origin+window.location.pathname,id:pe})}function Ce(k,ee,Y){ge();var pe=J(ee,Y);D.postMessage({type:"loadData",path:k,fullPath:window.location.origin+window.location.pathname,id:pe})}function Re(k,ee,Y){ge();var pe=J(ee,Y);D.postMessage({type:"complete",animation:k,id:pe})}return{loadAnimation:De,loadData:Ce,completeAnimation:Re}}(),Sc=function(){var c=function(){var W=_e("canvas");W.width=1,W.height=1;var Z=W.getContext("2d");return Z.fillStyle="rgba(0,0,0,0)",Z.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 D(W,Z,L){var j="";if(W.e)j=W.p;else if(Z){var H=W.p;H.indexOf("images/")!==-1&&(H=H.split("/")[1]),j=Z+H}else j=L,j+=W.u?W.u:"",j+=W.p;return j}function _(W){var Z=0,L=setInterval((function(){var j=W.getBBox();(j.width||Z>500)&&(this._imageLoaded(),clearInterval(L)),Z+=1}).bind(this),50)}function B(W){var Z=D(W,this.assetsPath,this.path),L=bt("image");Ye?this.testImageLoaded(L):L.addEventListener("load",this._imageLoaded,!1),L.addEventListener("error",(function(){j.img=c,this._imageLoaded()}).bind(this),!1),L.setAttributeNS("http://www.w3.org/1999/xlink","href",Z),this._elementHelper.append?this._elementHelper.append(L):this._elementHelper.appendChild(L);var j={img:L,assetData:W};return j}function U(W){var Z=D(W,this.assetsPath,this.path),L=_e("img");L.crossOrigin="anonymous",L.addEventListener("load",this._imageLoaded,!1),L.addEventListener("error",(function(){j.img=c,this._imageLoaded()}).bind(this),!1),L.src=Z;var j={img:L,assetData:W};return j}function ge(W){var Z={assetData:W},L=D(W,this.assetsPath,this.path);return uo.loadData(L,(function(j){Z.img=j,this._footageLoaded()}).bind(this),(function(){Z.img={},this._footageLoaded()}).bind(this)),Z}function J(W,Z){this.imagesLoadedCb=Z;var L,j=W.length;for(L=0;L<j;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 De(W){this.path=W||""}function Ce(W){this.assetsPath=W||""}function Re(W){for(var Z=0,L=this.images.length;Z<L;){if(this.images[Z].assetData===W)return this.images[Z].img;Z+=1}return null}function k(){this.imagesLoadedCb=null,this.images.length=0}function ee(){return this.totalImages===this.loadedAssets}function Y(){return this.totalFootages===this.loadedFootagesCount}function pe(W,Z){W==="svg"?(this._elementHelper=Z,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function he(){this._imageLoaded=p.bind(this),this._footageLoaded=v.bind(this),this.testImageLoaded=_.bind(this),this.createFootageData=ge.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return he.prototype={loadAssets:J,setAssetsPath:Ce,setPath:De,loadedImages:ee,loadedFootages:Y,destroy:k,getAsset:Re,createImgData:U,createImageData:B,imageLoaded:p,footageLoaded:v,setCacheType:pe},he}();function Nu(){}Nu.prototype={triggerEvent:function(p,v){if(this._cbs[p])for(var D=this._cbs[p],_=0;_<D.length;_+=1)D[_](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 D=0,_=this._cbs[p].length;D<_;)this._cbs[p][D]===v&&(this._cbs[p].splice(D,1),D-=1,_-=1),D+=1;this._cbs[p].length||(this._cbs[p]=null)}}};var Tc=function(){function c(p){for(var v=p.split(`\r
85
85
  `),D={},_,B=0,U=0;U<v.length;U+=1)_=v[U].split(":"),_.length===2&&(D[_[0]]=_[1].trim(),B+=1);if(B===0)throw new Error;return D}return function(p){for(var v=[],D=0;D<p.length;D+=1){var _=p[D],B={time:_.tm,duration:_.dr};try{B.payload=JSON.parse(p[D].cm)}catch{try{B.payload=c(p[D].cm)}catch{B.payload={name:p[D].cm}}}v.push(B)}return v}}(),ju=function(){function c(p){this.compositions.push(p)}return function(){function p(v){for(var D=0,_=this.compositions.length;D<_;){if(this.compositions[D].data&&this.compositions[D].data.nm===v)return this.compositions[D].prepareFrame&&this.compositions[D].data.xt&&this.compositions[D].prepareFrame(this.currentFrame),this.compositions[D].compInterface;D+=1}return null}return p.compositions=[],p.currentFrame=0,p.registerComposition=c,p}}(),Fs={},Ku=function(p,v){Fs[p]=v};function ta(c){return Fs[c]}function na(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?na=function(v){return typeof v}:na=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},na(c)}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=Dt(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=pr(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ju(),this.imagePreloader=new Sc,this.audioController=Xe(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new Ae("drawnFrame",0,0,0)};Be([Nu],yt),yt.prototype.setParams=function(c){(c.wrapper||c.container)&&(this.wrapper=c.wrapper||c.container);var p="svg";c.animType?p=c.animType:c.renderer&&(p=c.renderer);var v=ta(p);this.renderer=new v(this,c.rendererSettings),this.imagePreloader.setCacheType(p,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=p,c.loop===""||c.loop===null||c.loop===void 0||c.loop===!0?this.loop=!0:c.loop===!1?this.loop=!1:this.loop=parseInt(c.loop,10),this.autoplay="autoplay"in c?c.autoplay:!0,this.name=c.name?c.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(c,"autoloadSegments")?c.autoloadSegments:!0,this.assetsPath=c.assetsPath,this.initialSegment=c.initialSegment,c.audioFactory&&this.audioController.setAudioFactory(c.audioFactory),c.animationData?this.setupAnimation(c.animationData):c.path&&(c.path.lastIndexOf("\\")!==-1?this.path=c.path.substr(0,c.path.lastIndexOf("\\")+1):this.path=c.path.substr(0,c.path.lastIndexOf("/")+1),this.fileName=c.path.substr(c.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),uo.loadAnimation(c.path,this.configAnimation,this.onSetupError))},yt.prototype.onSetupError=function(){this.trigger("data_failed")},yt.prototype.setupAnimation=function(c){uo.completeAnimation(c,this.configAnimation)},yt.prototype.setData=function(c,p){p&&na(p)!=="object"&&(p=JSON.parse(p));var v={wrapper:c,animationData:p},D=c.attributes;v.path=D.getNamedItem("data-animation-path")?D.getNamedItem("data-animation-path").value:D.getNamedItem("data-bm-path")?D.getNamedItem("data-bm-path").value:D.getNamedItem("bm-path")?D.getNamedItem("bm-path").value:"",v.animType=D.getNamedItem("data-anim-type")?D.getNamedItem("data-anim-type").value:D.getNamedItem("data-bm-type")?D.getNamedItem("data-bm-type").value:D.getNamedItem("bm-type")?D.getNamedItem("bm-type").value:D.getNamedItem("data-bm-renderer")?D.getNamedItem("data-bm-renderer").value:D.getNamedItem("bm-renderer")?D.getNamedItem("bm-renderer").value:"canvas";var _=D.getNamedItem("data-anim-loop")?D.getNamedItem("data-anim-loop").value:D.getNamedItem("data-bm-loop")?D.getNamedItem("data-bm-loop").value:D.getNamedItem("bm-loop")?D.getNamedItem("bm-loop").value:"";_==="false"?v.loop=!1:_==="true"?v.loop=!0:_!==""&&(v.loop=parseInt(_,10));var B=D.getNamedItem("data-anim-autoplay")?D.getNamedItem("data-anim-autoplay").value:D.getNamedItem("data-bm-autoplay")?D.getNamedItem("data-bm-autoplay").value:D.getNamedItem("bm-autoplay")?D.getNamedItem("bm-autoplay").value:!0;v.autoplay=B!=="false",v.name=D.getNamedItem("data-name")?D.getNamedItem("data-name").value:D.getNamedItem("data-bm-name")?D.getNamedItem("data-bm-name").value:D.getNamedItem("bm-name")?D.getNamedItem("bm-name").value:"";var U=D.getNamedItem("data-anim-prerender")?D.getNamedItem("data-anim-prerender").value:D.getNamedItem("data-bm-prerender")?D.getNamedItem("data-bm-prerender").value:D.getNamedItem("bm-prerender")?D.getNamedItem("bm-prerender").value:"";U==="false"&&(v.prerender=!1),this.setParams(v)},yt.prototype.includeLayers=function(c){c.op>this.animationData.op&&(this.animationData.op=c.op,this.totalFrames=Math.floor(c.op-this.animationData.ip));var p=this.animationData.layers,v,D=p.length,_=c.layers,B,U=_.length;for(B=0;B<U;B+=1)for(v=0;v<D;){if(p[v].id===_[B].id){p[v]=_[B];break}v+=1}if((c.chars||c.fonts)&&(this.renderer.globalData.fontManager.addChars(c.chars),this.renderer.globalData.fontManager.addFonts(c.fonts,this.renderer.globalData.defs)),c.assets)for(D=c.assets.length,v=0;v<D;v+=1)this.animationData.assets.push(c.assets[v]);this.animationData.__complete=!1,uo.completeAnimation(this.animationData,this.onSegmentComplete)},yt.prototype.onSegmentComplete=function(c){this.animationData=c;var p=li();p&&p.initExpressions(this),this.loadNextSegment()},yt.prototype.loadNextSegment=function(){var c=this.animationData.segments;if(!c||c.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var p=c.shift();this.timeCompleted=p.time*this.frameRate;var v=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,uo.loadData(v,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},yt.prototype.loadSegments=function(){var c=this.animationData.segments;c||(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(c){if(this.renderer)try{this.animationData=c,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(c),c.assets||(c.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(c.assets),this.markers=Tc(c.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 c=li();c&&c.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},yt.prototype.resize=function(c,p){var v=typeof c=="number"?c:void 0,D=typeof p=="number"?p:void 0;this.renderer.updateContainerSize(v,D)},yt.prototype.setSubframe=function(c){this.isSubframeEnabled=!!c},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(c){this.triggerRenderFrameError(c)}},yt.prototype.play=function(c){c&&this.name!==c||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},yt.prototype.pause=function(c){c&&this.name!==c||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},yt.prototype.togglePause=function(c){c&&this.name!==c||(this.isPaused===!0?this.play():this.pause())},yt.prototype.stop=function(c){c&&this.name!==c||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},yt.prototype.getMarkerData=function(c){for(var p,v=0;v<this.markers.length;v+=1)if(p=this.markers[v],p.payload&&p.payload.name===c)return p;return null},yt.prototype.goToAndStop=function(c,p,v){if(!(v&&this.name!==v)){var D=Number(c);if(isNaN(D)){var _=this.getMarkerData(c);_&&this.goToAndStop(_.time,!0)}else p?this.setCurrentRawFrameValue(c):this.setCurrentRawFrameValue(c*this.frameModifier);this.pause()}},yt.prototype.goToAndPlay=function(c,p,v){if(!(v&&this.name!==v)){var D=Number(c);if(isNaN(D)){var _=this.getMarkerData(c);_&&(_.duration?this.playSegments([_.time,_.time+_.duration],!0):this.goToAndStop(_.time,!0))}else this.goToAndStop(D,p,v);this.play()}},yt.prototype.advanceTime=function(c){if(!(this.isPaused===!0||this.isLoaded===!1)){var p=this.currentRawFrame+c*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(c,p){this.playCount=0,c[1]<c[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=c[0]-c[1],this.timeCompleted=this.totalFrames,this.firstFrame=c[1],this.setCurrentRawFrameValue(this.totalFrames-.001-p)):c[1]>c[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=c[1]-c[0],this.timeCompleted=this.totalFrames,this.firstFrame=c[0],this.setCurrentRawFrameValue(.001+p)),this.trigger("segmentStart")},yt.prototype.setSegment=function(c,p){var v=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<c?v=c:this.currentRawFrame+this.firstFrame>p&&(v=p-c)),this.firstFrame=c,this.totalFrames=p-c,this.timeCompleted=this.totalFrames,v!==-1&&this.goToAndStop(v,!0)},yt.prototype.playSegments=function(c,p){if(p&&(this.segments.length=0),na(c[0])==="object"){var v,D=c.length;for(v=0;v<D;v+=1)this.segments.push(c[v])}else this.segments.push(c);this.segments.length&&p&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},yt.prototype.resetSegments=function(c){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),c&&this.checkSegments(0)},yt.prototype.checkSegments=function(c){return this.segments.length?(this.adjustSegment(this.segments.shift(),c),!0):!1},yt.prototype.destroy=function(c){c&&this.name!==c||!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(c){this.currentRawFrame=c,this.gotoFrame()},yt.prototype.setSpeed=function(c){this.playSpeed=c,this.updaFrameModifier()},yt.prototype.setDirection=function(c){this.playDirection=c<0?-1:1,this.updaFrameModifier()},yt.prototype.setLoop=function(c){this.loop=c},yt.prototype.setVolume=function(c,p){p&&this.name!==p||this.audioController.setVolume(c)},yt.prototype.getVolume=function(){return this.audioController.getVolume()},yt.prototype.mute=function(c){c&&this.name!==c||this.audioController.mute()},yt.prototype.unmute=function(c){c&&this.name!==c||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(c){var p="";if(c.e)p=c.p;else if(this.assetsPath){var v=c.p;v.indexOf("images/")!==-1&&(v=v.split("/")[1]),p=this.assetsPath+v}else p=this.path,p+=c.u?c.u:"",p+=c.p;return p},yt.prototype.getAssetData=function(c){for(var p=0,v=this.assets.length;p<v;){if(c===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(c){return c?this.totalFrames:this.totalFrames/this.frameRate},yt.prototype.updateDocumentData=function(c,p,v){try{var D=this.renderer.getElementByPath(c);D.updateDocumentData(p,v)}catch{}},yt.prototype.trigger=function(c){if(this._cbs&&this._cbs[c])switch(c){case"enterFrame":this.triggerEvent(c,new Ae(c,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(c,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(c,new Qe(c,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(c,new Fe(c,this.frameMult));break;case"segmentStart":this.triggerEvent(c,new et(c,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(c,new Je(c,this));break;default:this.triggerEvent(c)}c==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Ae(c,this.currentFrame,this.totalFrames,this.frameMult)),c==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Qe(c,this.loop,this.playCount,this.frameMult)),c==="complete"&&this.onComplete&&this.onComplete.call(this,new Fe(c,this.frameMult)),c==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new et(c,this.firstFrame,this.totalFrames)),c==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Je(c,this))},yt.prototype.triggerRenderFrameError=function(c){var p=new gt(c,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)},yt.prototype.triggerConfigError=function(c){var p=new kt(c,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)};var wn=function(){var c={},p=[],v=0,D=0,_=0,B=!0,U=!1;function ge($e){for(var ce=0,Q=$e.target;ce<D;)p[ce].animation===Q&&(p.splice(ce,1),ce-=1,D-=1,Q.isPaused||Re()),ce+=1}function J($e,ce){if(!$e)return null;for(var Q=0;Q<D;){if(p[Q].elem===$e&&p[Q].elem!==null)return p[Q].animation;Q+=1}var ve=new yt;return k(ve,$e),ve.setData($e,ce),ve}function De(){var $e,ce=p.length,Q=[];for($e=0;$e<ce;$e+=1)Q.push(p[$e].animation);return Q}function Ce(){_+=1,nt()}function Re(){_-=1}function k($e,ce){$e.addEventListener("destroy",ge),$e.addEventListener("_active",Ce),$e.addEventListener("_idle",Re),p.push({elem:ce,animation:$e}),D+=1}function ee($e){var ce=new yt;return k(ce,null),ce.setParams($e),ce}function Y($e,ce){var Q;for(Q=0;Q<D;Q+=1)p[Q].animation.setSpeed($e,ce)}function pe($e,ce){var Q;for(Q=0;Q<D;Q+=1)p[Q].animation.setDirection($e,ce)}function he($e){var ce;for(ce=0;ce<D;ce+=1)p[ce].animation.play($e)}function W($e){var ce=$e-v,Q;for(Q=0;Q<D;Q+=1)p[Q].animation.advanceTime(ce);v=$e,_&&!U?window.requestAnimationFrame(W):B=!0}function Z($e){v=$e,window.requestAnimationFrame(W)}function L($e){var ce;for(ce=0;ce<D;ce+=1)p[ce].animation.pause($e)}function j($e,ce,Q){var ve;for(ve=0;ve<D;ve+=1)p[ve].animation.goToAndStop($e,ce,Q)}function H($e){var ce;for(ce=0;ce<D;ce+=1)p[ce].animation.stop($e)}function ne($e){var ce;for(ce=0;ce<D;ce+=1)p[ce].animation.togglePause($e)}function ue($e){var ce;for(ce=D-1;ce>=0;ce-=1)p[ce].animation.destroy($e)}function me($e,ce,Q){var ve=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Ke,Ie=ve.length;for(Ke=0;Ke<Ie;Ke+=1)Q&&ve[Ke].setAttribute("data-bm-type",Q),J(ve[Ke],$e);if(ce&&Ie===0){Q||(Q="svg");var lt=document.getElementsByTagName("body")[0];lt.innerText="";var St=_e("div");St.style.width="100%",St.style.height="100%",St.setAttribute("data-bm-type",Q),lt.appendChild(St),J(St,$e)}}function Oe(){var $e;for($e=0;$e<D;$e+=1)p[$e].animation.resize()}function nt(){!U&&_&&B&&(window.requestAnimationFrame(Z),B=!1)}function tt(){U=!0}function Ve(){U=!1,nt()}function st($e,ce){var Q;for(Q=0;Q<D;Q+=1)p[Q].animation.setVolume($e,ce)}function ct($e){var ce;for(ce=0;ce<D;ce+=1)p[ce].animation.mute($e)}function Le($e){var ce;for(ce=0;ce<D;ce+=1)p[ce].animation.unmute($e)}return c.registerAnimation=J,c.loadAnimation=ee,c.setSpeed=Y,c.setDirection=pe,c.play=he,c.pause=L,c.stop=H,c.togglePause=ne,c.searchAnimations=me,c.resize=Oe,c.goToAndStop=j,c.destroy=ue,c.freeze=tt,c.unfreeze=Ve,c.setVolume=st,c.mute=ct,c.unmute=Le,c.getRegisteredAnimations=De,c}(),lo=function(){var c={};c.getBezierEasing=v;var p={};function v(Z,L,j,H,ne){var ue=ne||("bez_"+Z+"_"+L+"_"+j+"_"+H).replace(/\./g,"p");if(p[ue])return p[ue];var me=new W([Z,L,j,H]);return p[ue]=me,me}var D=4,_=.001,B=1e-7,U=10,ge=11,J=1/(ge-1),De=typeof Float32Array=="function";function Ce(Z,L){return 1-3*L+3*Z}function Re(Z,L){return 3*L-6*Z}function k(Z){return 3*Z}function ee(Z,L,j){return((Ce(L,j)*Z+Re(L,j))*Z+k(L))*Z}function Y(Z,L,j){return 3*Ce(L,j)*Z*Z+2*Re(L,j)*Z+k(L)}function pe(Z,L,j,H,ne){var ue,me,Oe=0;do me=L+(j-L)/2,ue=ee(me,H,ne)-Z,ue>0?j=me:L=me;while(Math.abs(ue)>B&&++Oe<U);return me}function he(Z,L,j,H){for(var ne=0;ne<D;++ne){var ue=Y(L,j,H);if(ue===0)return L;var me=ee(L,j,H)-Z;L-=me/ue}return L}function W(Z){this._p=Z,this._mSampleValues=De?new Float32Array(ge):new Array(ge),this._precomputed=!1,this.get=this.get.bind(this)}return W.prototype={get:function(L){var j=this._p[0],H=this._p[1],ne=this._p[2],ue=this._p[3];return this._precomputed||this._precompute(),j===H&&ne===ue?L:L===0?0:L===1?1:ee(this._getTForX(L),H,ue)},_precompute:function(){var L=this._p[0],j=this._p[1],H=this._p[2],ne=this._p[3];this._precomputed=!0,(L!==j||H!==ne)&&this._calcSampleValues()},_calcSampleValues:function(){for(var L=this._p[0],j=this._p[2],H=0;H<ge;++H)this._mSampleValues[H]=ee(H*J,L,j)},_getTForX:function(L){for(var j=this._p[0],H=this._p[2],ne=this._mSampleValues,ue=0,me=1,Oe=ge-1;me!==Oe&&ne[me]<=L;++me)ue+=J;--me;var nt=(L-ne[me])/(ne[me+1]-ne[me]),tt=ue+nt*J,Ve=Y(tt,j,H);return Ve>=_?he(L,tt,j,H):Ve===0?tt:pe(L,ue,ue+J,j,H)}},c}(),zu=function(){function c(p){return p.concat(qe(p.length))}return{double:c}}(),$r=function(){return function(c,p,v){var D=0,_=c,B=qe(_),U={newElement:ge,release:J};function ge(){var De;return D?(D-=1,De=B[D]):De=p(),De}function J(De){D===_&&(B=zu.double(B),_*=2),v&&v(De),B[D]=De,D+=1}return U}}(),qu=function(){function c(){return{addedLength:0,percents:Ne("float32",Ba()),lengths:Ne("float32",Ba())}}return $r(8,c)}(),Uu=function(){function c(){return{lengths:[],totalLength:0}}function p(v){var D,_=v.lengths.length;for(D=0;D<_;D+=1)qu.release(v.lengths[D]);v.lengths.length=0}return $r(8,c,p)}();function Pc(){var c=Math;function p(k,ee,Y,pe,he,W){var Z=k*pe+ee*he+Y*W-he*pe-W*k-Y*ee;return Z>-.001&&Z<.001}function v(k,ee,Y,pe,he,W,Z,L,j){if(Y===0&&W===0&&j===0)return p(k,ee,pe,he,Z,L);var H=c.sqrt(c.pow(pe-k,2)+c.pow(he-ee,2)+c.pow(W-Y,2)),ne=c.sqrt(c.pow(Z-k,2)+c.pow(L-ee,2)+c.pow(j-Y,2)),ue=c.sqrt(c.pow(Z-pe,2)+c.pow(L-he,2)+c.pow(j-W,2)),me;return H>ne?H>ue?me=H-ne-ue:me=ue-ne-H:ue>ne?me=ue-ne-H:me=ne-H-ue,me>-1e-4&&me<1e-4}var D=function(){return function(k,ee,Y,pe){var he=Ba(),W,Z,L,j,H,ne=0,ue,me=[],Oe=[],nt=qu.newElement();for(L=Y.length,W=0;W<he;W+=1){for(H=W/(he-1),ue=0,Z=0;Z<L;Z+=1)j=ht(1-H,3)*k[Z]+3*ht(1-H,2)*H*Y[Z]+3*(1-H)*ht(H,2)*pe[Z]+ht(H,3)*ee[Z],me[Z]=j,Oe[Z]!==null&&(ue+=ht(me[Z]-Oe[Z],2)),Oe[Z]=me[Z];ue&&(ue=Ht(ue),ne+=ue),nt.percents[W]=H,nt.lengths[W]=ne}return nt.addedLength=ne,nt}}();function _(k){var ee=Uu.newElement(),Y=k.c,pe=k.v,he=k.o,W=k.i,Z,L=k._length,j=ee.lengths,H=0;for(Z=0;Z<L-1;Z+=1)j[Z]=D(pe[Z],pe[Z+1],he[Z],W[Z+1]),H+=j[Z].addedLength;return Y&&L&&(j[Z]=D(pe[Z],pe[0],he[Z],W[0]),H+=j[Z].addedLength),ee.totalLength=H,ee}function B(k){this.segmentLength=0,this.points=new Array(k)}function U(k,ee){this.partialLength=k,this.point=ee}var ge=function(){var k={};return function(ee,Y,pe,he){var W=(ee[0]+"_"+ee[1]+"_"+Y[0]+"_"+Y[1]+"_"+pe[0]+"_"+pe[1]+"_"+he[0]+"_"+he[1]).replace(/\./g,"p");if(!k[W]){var Z=Ba(),L,j,H,ne,ue,me=0,Oe,nt,tt=null;ee.length===2&&(ee[0]!==Y[0]||ee[1]!==Y[1])&&p(ee[0],ee[1],Y[0],Y[1],ee[0]+pe[0],ee[1]+pe[1])&&p(ee[0],ee[1],Y[0],Y[1],Y[0]+he[0],Y[1]+he[1])&&(Z=2);var Ve=new B(Z);for(H=pe.length,L=0;L<Z;L+=1){for(nt=qe(H),ue=L/(Z-1),Oe=0,j=0;j<H;j+=1)ne=ht(1-ue,3)*ee[j]+3*ht(1-ue,2)*ue*(ee[j]+pe[j])+3*(1-ue)*ht(ue,2)*(Y[j]+he[j])+ht(ue,3)*Y[j],nt[j]=ne,tt!==null&&(Oe+=ht(nt[j]-tt[j],2));Oe=Ht(Oe),me+=Oe,Ve.points[L]=new U(Oe,nt),tt=nt}Ve.segmentLength=me,k[W]=Ve}return k[W]}}();function J(k,ee){var Y=ee.percents,pe=ee.lengths,he=Y.length,W=xt((he-1)*k),Z=k*ee.addedLength,L=0;if(W===he-1||W===0||Z===pe[W])return Y[W];for(var j=pe[W]>Z?-1:1,H=!0;H;)if(pe[W]<=Z&&pe[W+1]>Z?(L=(Z-pe[W])/(pe[W+1]-pe[W]),H=!1):W+=j,W<0||W>=he-1){if(W===he-1)return Y[W];H=!1}return Y[W]+(Y[W+1]-Y[W])*L}function De(k,ee,Y,pe,he,W){var Z=J(he,W),L=1-Z,j=c.round((L*L*L*k[0]+(Z*L*L+L*Z*L+L*L*Z)*Y[0]+(Z*Z*L+L*Z*Z+Z*L*Z)*pe[0]+Z*Z*Z*ee[0])*1e3)/1e3,H=c.round((L*L*L*k[1]+(Z*L*L+L*Z*L+L*L*Z)*Y[1]+(Z*Z*L+L*Z*Z+Z*L*Z)*pe[1]+Z*Z*Z*ee[1])*1e3)/1e3;return[j,H]}var Ce=Ne("float32",8);function Re(k,ee,Y,pe,he,W,Z){he<0?he=0:he>1&&(he=1);var L=J(he,Z);W=W>1?1:W;var j=J(W,Z),H,ne=k.length,ue=1-L,me=1-j,Oe=ue*ue*ue,nt=L*ue*ue*3,tt=L*L*ue*3,Ve=L*L*L,st=ue*ue*me,ct=L*ue*me+ue*L*me+ue*ue*j,Le=L*L*me+ue*L*j+L*ue*j,$e=L*L*j,ce=ue*me*me,Q=L*me*me+ue*j*me+ue*me*j,ve=L*j*me+ue*j*j+L*me*j,Ke=L*j*j,Ie=me*me*me,lt=j*me*me+me*j*me+me*me*j,St=j*j*me+me*j*j+j*me*j,Et=j*j*j;for(H=0;H<ne;H+=1)Ce[H*4]=c.round((Oe*k[H]+nt*Y[H]+tt*pe[H]+Ve*ee[H])*1e3)/1e3,Ce[H*4+1]=c.round((st*k[H]+ct*Y[H]+Le*pe[H]+$e*ee[H])*1e3)/1e3,Ce[H*4+2]=c.round((ce*k[H]+Q*Y[H]+ve*pe[H]+Ke*ee[H])*1e3)/1e3,Ce[H*4+3]=c.round((Ie*k[H]+lt*Y[H]+St*pe[H]+Et*ee[H])*1e3)/1e3;return Ce}return{getSegmentsLength:_,getNewSegment:Re,getPointInSegment:De,buildBezierData:ge,pointOnLine2D:p,pointOnLine3D:v}}var Gr=Pc(),at=function(){var c=fe,p=Math.abs;function v(he,W){var Z=this.offsetTime,L;this.propType==="multidimensional"&&(L=Ne("float32",this.pv.length));for(var j=W.lastIndex,H=j,ne=this.keyframes.length-1,ue=!0,me,Oe,nt;ue;){if(me=this.keyframes[H],Oe=this.keyframes[H+1],H===ne-1&&he>=Oe.t-Z){me.h&&(me=Oe),j=0;break}if(Oe.t-Z>he){j=H;break}H<ne-1?H+=1:(j=0,ue=!1)}nt=this.keyframesMetadata[H]||{};var tt,Ve,st,ct,Le,$e,ce=Oe.t-Z,Q=me.t-Z,ve;if(me.to){nt.bezierData||(nt.bezierData=Gr.buildBezierData(me.s,Oe.s||me.e,me.to,me.ti));var Ke=nt.bezierData;if(he>=ce||he<Q){var Ie=he>=ce?Ke.points.length-1:0;for(Ve=Ke.points[Ie].point.length,tt=0;tt<Ve;tt+=1)L[tt]=Ke.points[Ie].point[tt]}else{nt.__fnct?$e=nt.__fnct:($e=lo.getBezierEasing(me.o.x,me.o.y,me.i.x,me.i.y,me.n).get,nt.__fnct=$e),st=$e((he-Q)/(ce-Q));var lt=Ke.segmentLength*st,St,Et=W.lastFrame<he&&W._lastKeyframeIndex===H?W._lastAddedLength:0;for(Le=W.lastFrame<he&&W._lastKeyframeIndex===H?W._lastPoint:0,ue=!0,ct=Ke.points.length;ue;){if(Et+=Ke.points[Le].partialLength,lt===0||st===0||Le===Ke.points.length-1){for(Ve=Ke.points[Le].point.length,tt=0;tt<Ve;tt+=1)L[tt]=Ke.points[Le].point[tt];break}else if(lt>=Et&&lt<Et+Ke.points[Le+1].partialLength){for(St=(lt-Et)/Ke.points[Le+1].partialLength,Ve=Ke.points[Le].point.length,tt=0;tt<Ve;tt+=1)L[tt]=Ke.points[Le].point[tt]+(Ke.points[Le+1].point[tt]-Ke.points[Le].point[tt])*St;break}Le<ct-1?Le+=1:ue=!1}W._lastPoint=Le,W._lastAddedLength=Et-Ke.points[Le].partialLength,W._lastKeyframeIndex=H}}else{var Dn,Ut,dr,Zn,Ln;if(ne=me.s.length,ve=Oe.s||me.e,this.sh&&me.h!==1)if(he>=ce)L[0]=ve[0],L[1]=ve[1],L[2]=ve[2];else if(he<=Q)L[0]=me.s[0],L[1]=me.s[1],L[2]=me.s[2];else{var jn=B(me.s),Kn=B(ve),vr=(he-Q)/(ce-Q);_(L,D(jn,Kn,vr))}else for(H=0;H<ne;H+=1)me.h!==1&&(he>=ce?st=1:he<Q?st=0:(me.o.x.constructor===Array?(nt.__fnct||(nt.__fnct=[]),nt.__fnct[H]?$e=nt.__fnct[H]:(Dn=me.o.x[H]===void 0?me.o.x[0]:me.o.x[H],Ut=me.o.y[H]===void 0?me.o.y[0]:me.o.y[H],dr=me.i.x[H]===void 0?me.i.x[0]:me.i.x[H],Zn=me.i.y[H]===void 0?me.i.y[0]:me.i.y[H],$e=lo.getBezierEasing(Dn,Ut,dr,Zn).get,nt.__fnct[H]=$e)):nt.__fnct?$e=nt.__fnct:(Dn=me.o.x,Ut=me.o.y,dr=me.i.x,Zn=me.i.y,$e=lo.getBezierEasing(Dn,Ut,dr,Zn).get,me.keyframeMetadata=$e),st=$e((he-Q)/(ce-Q)))),ve=Oe.s||me.e,Ln=me.h===1?me.s[H]:me.s[H]+(ve[H]-me.s[H])*st,this.propType==="multidimensional"?L[H]=Ln:L=Ln}return W.lastIndex=j,L}function D(he,W,Z){var L=[],j=he[0],H=he[1],ne=he[2],ue=he[3],me=W[0],Oe=W[1],nt=W[2],tt=W[3],Ve,st,ct,Le,$e;return st=j*me+H*Oe+ne*nt+ue*tt,st<0&&(st=-st,me=-me,Oe=-Oe,nt=-nt,tt=-tt),1-st>1e-6?(Ve=Math.acos(st),ct=Math.sin(Ve),Le=Math.sin((1-Z)*Ve)/ct,$e=Math.sin(Z*Ve)/ct):(Le=1-Z,$e=Z),L[0]=Le*j+$e*me,L[1]=Le*H+$e*Oe,L[2]=Le*ne+$e*nt,L[3]=Le*ue+$e*tt,L}function _(he,W){var Z=W[0],L=W[1],j=W[2],H=W[3],ne=Math.atan2(2*L*H-2*Z*j,1-2*L*L-2*j*j),ue=Math.asin(2*Z*L+2*j*H),me=Math.atan2(2*Z*H-2*L*j,1-2*Z*Z-2*j*j);he[0]=ne/Jt,he[1]=ue/Jt,he[2]=me/Jt}function B(he){var W=he[0]*Jt,Z=he[1]*Jt,L=he[2]*Jt,j=Math.cos(W/2),H=Math.cos(Z/2),ne=Math.cos(L/2),ue=Math.sin(W/2),me=Math.sin(Z/2),Oe=Math.sin(L/2),nt=j*H*ne-ue*me*Oe,tt=ue*me*ne+j*H*Oe,Ve=ue*H*ne+j*me*Oe,st=j*me*ne-ue*H*Oe;return[tt,Ve,st,nt]}function U(){var he=this.comp.renderedFrame-this.offsetTime,W=this.keyframes[0].t-this.offsetTime,Z=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(he===this._caching.lastFrame||this._caching.lastFrame!==c&&(this._caching.lastFrame>=Z&&he>=Z||this._caching.lastFrame<W&&he<W))){this._caching.lastFrame>=he&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var L=this.interpolateValue(he,this._caching);this.pv=L}return this._caching.lastFrame=he,this.pv}function ge(he){var W;if(this.propType==="unidimensional")W=he*this.mult,p(this.v-W)>1e-5&&(this.v=W,this._mdf=!0);else for(var Z=0,L=this.v.length;Z<L;)W=he[Z]*this.mult,p(this.v[Z]-W)>1e-5&&(this.v[Z]=W,this._mdf=!0),Z+=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 he,W=this.effectsSequence.length,Z=this.kf?this.pv:this.data.k;for(he=0;he<W;he+=1)Z=this.effectsSequence[he](Z);this.setVValue(Z),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function De(he){this.effectsSequence.push(he),this.container.addDynamicProperty(this)}function Ce(he,W,Z,L){this.propType="unidimensional",this.mult=Z||1,this.data=W,this.v=Z?W.k*Z:W.k,this.pv=W.k,this._mdf=!1,this.elem=he,this.container=L,this.comp=he.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=J,this.setVValue=ge,this.addEffect=De}function Re(he,W,Z,L){this.propType="multidimensional",this.mult=Z||1,this.data=W,this._mdf=!1,this.elem=he,this.container=L,this.comp=he.comp,this.k=!1,this.kf=!1,this.frameId=-1;var j,H=W.k.length;for(this.v=Ne("float32",H),this.pv=Ne("float32",H),this.vel=Ne("float32",H),j=0;j<H;j+=1)this.v[j]=W.k[j]*this.mult,this.pv[j]=W.k[j];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=J,this.setVValue=ge,this.addEffect=De}function k(he,W,Z,L){this.propType="unidimensional",this.keyframes=W.k,this.keyframesMetadata=[],this.offsetTime=he.data.st,this.frameId=-1,this._caching={lastFrame:c,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=W,this.mult=Z||1,this.elem=he,this.container=L,this.comp=he.comp,this.v=c,this.pv=c,this._isFirstFrame=!0,this.getValue=J,this.setVValue=ge,this.interpolateValue=v,this.effectsSequence=[U.bind(this)],this.addEffect=De}function ee(he,W,Z,L){this.propType="multidimensional";var j,H=W.k.length,ne,ue,me,Oe;for(j=0;j<H-1;j+=1)W.k[j].to&&W.k[j].s&&W.k[j+1]&&W.k[j+1].s&&(ne=W.k[j].s,ue=W.k[j+1].s,me=W.k[j].to,Oe=W.k[j].ti,(ne.length===2&&!(ne[0]===ue[0]&&ne[1]===ue[1])&&Gr.pointOnLine2D(ne[0],ne[1],ue[0],ue[1],ne[0]+me[0],ne[1]+me[1])&&Gr.pointOnLine2D(ne[0],ne[1],ue[0],ue[1],ue[0]+Oe[0],ue[1]+Oe[1])||ne.length===3&&!(ne[0]===ue[0]&&ne[1]===ue[1]&&ne[2]===ue[2])&&Gr.pointOnLine3D(ne[0],ne[1],ne[2],ue[0],ue[1],ue[2],ne[0]+me[0],ne[1]+me[1],ne[2]+me[2])&&Gr.pointOnLine3D(ne[0],ne[1],ne[2],ue[0],ue[1],ue[2],ue[0]+Oe[0],ue[1]+Oe[1],ue[2]+Oe[2]))&&(W.k[j].to=null,W.k[j].ti=null),ne[0]===ue[0]&&ne[1]===ue[1]&&me[0]===0&&me[1]===0&&Oe[0]===0&&Oe[1]===0&&(ne.length===2||ne[2]===ue[2]&&me[2]===0&&Oe[2]===0)&&(W.k[j].to=null,W.k[j].ti=null));this.effectsSequence=[U.bind(this)],this.data=W,this.keyframes=W.k,this.keyframesMetadata=[],this.offsetTime=he.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=Z||1,this.elem=he,this.container=L,this.comp=he.comp,this.getValue=J,this.setVValue=ge,this.interpolateValue=v,this.frameId=-1;var nt=W.k[0].s.length;for(this.v=Ne("float32",nt),this.pv=Ne("float32",nt),j=0;j<nt;j+=1)this.v[j]=c,this.pv[j]=c;this._caching={lastFrame:c,lastIndex:0,value:Ne("float32",nt)},this.addEffect=De}function Y(he,W,Z,L,j){var H;if(!W.k.length)H=new Ce(he,W,L,j);else if(typeof W.k[0]=="number")H=new Re(he,W,L,j);else switch(Z){case 0:H=new k(he,W,L,j);break;case 1:H=new ee(he,W,L,j);break}return H.effectsSequence.length&&j.addDynamicProperty(H),H}var pe={getProp:Y};return pe}();function dn(){}dn.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 ra=function(){function c(){return Ne("float32",2)}return $r(8,c)}();function di(){this.c=!1,this._length=0,this._maxLength=8,this.v=qe(this._maxLength),this.o=qe(this._maxLength),this.i=qe(this._maxLength)}di.prototype.setPathData=function(c,p){this.c=c,this.setLength(p);for(var v=0;v<p;)this.v[v]=ra.newElement(),this.o[v]=ra.newElement(),this.i[v]=ra.newElement(),v+=1},di.prototype.setLength=function(c){for(;this._maxLength<c;)this.doubleArrayLength();this._length=c},di.prototype.doubleArrayLength=function(){this.v=this.v.concat(qe(this._maxLength)),this.i=this.i.concat(qe(this._maxLength)),this.o=this.o.concat(qe(this._maxLength)),this._maxLength*=2},di.prototype.setXYAt=function(c,p,v,D,_){var B;switch(this._length=Math.max(this._length,D+1),this._length>=this._maxLength&&this.doubleArrayLength(),v){case"v":B=this.v;break;case"i":B=this.i;break;case"o":B=this.o;break;default:B=[];break}(!B[D]||B[D]&&!_)&&(B[D]=ra.newElement()),B[D][0]=c,B[D][1]=p},di.prototype.setTripleAt=function(c,p,v,D,_,B,U,ge){this.setXYAt(c,p,"v",U,ge),this.setXYAt(v,D,"o",U,ge),this.setXYAt(_,B,"i",U,ge)},di.prototype.reverse=function(){var c=new di;c.setPathData(this.c,this._length);var p=this.v,v=this.o,D=this.i,_=0;this.c&&(c.setTripleAt(p[0][0],p[0][1],D[0][0],D[0][1],v[0][0],v[0][1],0,!1),_=1);var B=this._length-1,U=this._length,ge;for(ge=_;ge<U;ge+=1)c.setTripleAt(p[B][0],p[B][1],D[B][0],D[B][1],v[B][0],v[B][1],ge,!1),B-=1;return c},di.prototype.length=function(){return this._length};var Yn=function(){function c(){return new di}function p(_){var B=_._length,U;for(U=0;U<B;U+=1)ra.release(_.v[U]),ra.release(_.i[U]),ra.release(_.o[U]),_.v[U]=null,_.i[U]=null,_.o[U]=null;_._length=0,_.c=!1}function v(_){var B=D.newElement(),U,ge=_._length===void 0?_.v.length:_._length;for(B.setLength(ge),B.c=_.c,U=0;U<ge;U+=1)B.setTripleAt(_.v[U][0],_.v[U][1],_.o[U][0],_.o[U][1],_.i[U][0],_.i[U][1],U);return B}var D=$r(4,c,p);return D.clone=v,D}();function ks(){this._length=0,this._maxLength=4,this.shapes=qe(this._maxLength)}ks.prototype.addShape=function(c){this._length===this._maxLength&&(this.shapes=this.shapes.concat(qe(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=c,this._length+=1},ks.prototype.releaseShapes=function(){var c;for(c=0;c<this._length;c+=1)Yn.release(this.shapes[c]);this._length=0};var Fa=function(){var c={newShapeCollection:_,release:B},p=0,v=4,D=qe(v);function _(){var U;return p?(p-=1,U=D[p]):U=new ks,U}function B(U){var ge,J=U._length;for(ge=0;ge<J;ge+=1)Yn.release(U.shapes[ge]);U._length=0,p===v&&(D=zu.double(D),v*=2),D[p]=U,p+=1}return c}(),fi=function(){var c=-999999;function p(W,Z,L){var j=L.lastIndex,H,ne,ue,me,Oe,nt,tt,Ve,st,ct=this.keyframes;if(W<ct[0].t-this.offsetTime)H=ct[0].s[0],ue=!0,j=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],ue=!0;else{for(var Le=j,$e=ct.length-1,ce=!0,Q,ve,Ke;ce&&(Q=ct[Le],ve=ct[Le+1],!(ve.t-this.offsetTime>W));)Le<$e-1?Le+=1:ce=!1;if(Ke=this.keyframesMetadata[Le]||{},ue=Q.h===1,j=Le,!ue){if(W>=ve.t-this.offsetTime)Ve=1;else if(W<Q.t-this.offsetTime)Ve=0;else{var Ie;Ke.__fnct?Ie=Ke.__fnct:(Ie=lo.getBezierEasing(Q.o.x,Q.o.y,Q.i.x,Q.i.y).get,Ke.__fnct=Ie),Ve=Ie((W-(Q.t-this.offsetTime))/(ve.t-this.offsetTime-(Q.t-this.offsetTime)))}ne=ve.s?ve.s[0]:Q.e[0]}H=Q.s[0]}for(nt=Z._length,tt=H.i[0].length,L.lastIndex=j,me=0;me<nt;me+=1)for(Oe=0;Oe<tt;Oe+=1)st=ue?H.i[me][Oe]:H.i[me][Oe]+(ne.i[me][Oe]-H.i[me][Oe])*Ve,Z.i[me][Oe]=st,st=ue?H.o[me][Oe]:H.o[me][Oe]+(ne.o[me][Oe]-H.o[me][Oe])*Ve,Z.o[me][Oe]=st,st=ue?H.v[me][Oe]:H.v[me][Oe]+(ne.v[me][Oe]-H.v[me][Oe])*Ve,Z.v[me][Oe]=st}function v(){var W=this.comp.renderedFrame-this.offsetTime,Z=this.keyframes[0].t-this.offsetTime,L=this.keyframes[this.keyframes.length-1].t-this.offsetTime,j=this._caching.lastFrame;return j!==c&&(j<Z&&W<Z||j>L&&W>L)||(this._caching.lastIndex=j<W?this._caching.lastIndex:0,this.interpolateShape(W,this.pv,this._caching)),this._caching.lastFrame=W,this.pv}function D(){this.paths=this.localShapeCollection}function _(W,Z){if(W._length!==Z._length||W.c!==Z.c)return!1;var L,j=W._length;for(L=0;L<j;L+=1)if(W.v[L][0]!==Z.v[L][0]||W.v[L][1]!==Z.v[L][1]||W.o[L][0]!==Z.o[L][0]||W.o[L][1]!==Z.o[L][1]||W.i[L][0]!==Z.i[L][0]||W.i[L][1]!==Z.i[L][1])return!1;return!0}function B(W){_(this.v,W)||(this.v=Yn.clone(W),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function U(){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 Z,L=this.effectsSequence.length;for(Z=0;Z<L;Z+=1)W=this.effectsSequence[Z](W);this.setVValue(W),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function ge(W,Z,L){this.propType="shape",this.comp=W.comp,this.container=W,this.elem=W,this.data=Z,this.k=!1,this.kf=!1,this._mdf=!1;var j=L===3?Z.pt.k:Z.ks.k;this.v=Yn.clone(j),this.pv=Yn.clone(this.v),this.localShapeCollection=Fa.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=D,this.effectsSequence=[]}function J(W){this.effectsSequence.push(W),this.container.addDynamicProperty(this)}ge.prototype.interpolateShape=p,ge.prototype.getValue=U,ge.prototype.setVValue=B,ge.prototype.addEffect=J;function De(W,Z,L){this.propType="shape",this.comp=W.comp,this.elem=W,this.container=W,this.offsetTime=W.data.st,this.keyframes=L===3?Z.pt.k:Z.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var j=this.keyframes[0].s[0].i.length;this.v=Yn.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,j),this.pv=Yn.clone(this.v),this.localShapeCollection=Fa.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=c,this.reset=D,this._caching={lastFrame:c,lastIndex:0},this.effectsSequence=[v.bind(this)]}De.prototype.getValue=U,De.prototype.interpolateShape=p,De.prototype.setVValue=B,De.prototype.addEffect=J;var Ce=function(){var W=xe;function Z(L,j){this.v=Yn.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Fa.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=j.d,this.elem=L,this.comp=L.comp,this.frameId=-1,this.initDynamicPropertyContainer(L),this.p=at.getProp(L,j.p,1,0,this),this.s=at.getProp(L,j.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return Z.prototype={reset:D,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var j=this.p.v[0],H=this.p.v[1],ne=this.s.v[0]/2,ue=this.s.v[1]/2,me=this.d!==3,Oe=this.v;Oe.v[0][0]=j,Oe.v[0][1]=H-ue,Oe.v[1][0]=me?j+ne:j-ne,Oe.v[1][1]=H,Oe.v[2][0]=j,Oe.v[2][1]=H+ue,Oe.v[3][0]=me?j-ne:j+ne,Oe.v[3][1]=H,Oe.i[0][0]=me?j-ne*W:j+ne*W,Oe.i[0][1]=H-ue,Oe.i[1][0]=me?j+ne:j-ne,Oe.i[1][1]=H-ue*W,Oe.i[2][0]=me?j+ne*W:j-ne*W,Oe.i[2][1]=H+ue,Oe.i[3][0]=me?j-ne:j+ne,Oe.i[3][1]=H+ue*W,Oe.o[0][0]=me?j+ne*W:j-ne*W,Oe.o[0][1]=H-ue,Oe.o[1][0]=me?j+ne:j-ne,Oe.o[1][1]=H+ue*W,Oe.o[2][0]=me?j-ne*W:j+ne*W,Oe.o[2][1]=H+ue,Oe.o[3][0]=me?j-ne:j+ne,Oe.o[3][1]=H-ue*W}},Be([dn],Z),Z}(),Re=function(){function W(Z,L){this.v=Yn.newElement(),this.v.setPathData(!0,0),this.elem=Z,this.comp=Z.comp,this.data=L,this.frameId=-1,this.d=L.d,this.initDynamicPropertyContainer(Z),L.sy===1?(this.ir=at.getProp(Z,L.ir,0,0,this),this.is=at.getProp(Z,L.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=at.getProp(Z,L.pt,0,0,this),this.p=at.getProp(Z,L.p,1,0,this),this.r=at.getProp(Z,L.r,0,Jt,this),this.or=at.getProp(Z,L.or,0,0,this),this.os=at.getProp(Z,L.os,0,.01,this),this.localShapeCollection=Fa.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:D,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,j=Math.PI*2/L,H=!0,ne=this.or.v,ue=this.ir.v,me=this.os.v,Oe=this.is.v,nt=2*Math.PI*ne/(L*2),tt=2*Math.PI*ue/(L*2),Ve,st,ct,Le,$e=-Math.PI/2;$e+=this.r.v;var ce=this.data.d===3?-1:1;for(this.v._length=0,Ve=0;Ve<L;Ve+=1){st=H?ne:ue,ct=H?me:Oe,Le=H?nt:tt;var Q=st*Math.cos($e),ve=st*Math.sin($e),Ke=Q===0&&ve===0?0:ve/Math.sqrt(Q*Q+ve*ve),Ie=Q===0&&ve===0?0:-Q/Math.sqrt(Q*Q+ve*ve);Q+=+this.p.v[0],ve+=+this.p.v[1],this.v.setTripleAt(Q,ve,Q-Ke*Le*ct*ce,ve-Ie*Le*ct*ce,Q+Ke*Le*ct*ce,ve+Ie*Le*ct*ce,Ve,!0),H=!H,$e+=j*ce}},convertPolygonToPath:function(){var L=Math.floor(this.pt.v),j=Math.PI*2/L,H=this.or.v,ne=this.os.v,ue=2*Math.PI*H/(L*4),me,Oe=-Math.PI*.5,nt=this.data.d===3?-1:1;for(Oe+=this.r.v,this.v._length=0,me=0;me<L;me+=1){var tt=H*Math.cos(Oe),Ve=H*Math.sin(Oe),st=tt===0&&Ve===0?0:Ve/Math.sqrt(tt*tt+Ve*Ve),ct=tt===0&&Ve===0?0:-tt/Math.sqrt(tt*tt+Ve*Ve);tt+=+this.p.v[0],Ve+=+this.p.v[1],this.v.setTripleAt(tt,Ve,tt-st*ue*ne*nt,Ve-ct*ue*ne*nt,tt+st*ue*ne*nt,Ve+ct*ue*ne*nt,me,!0),Oe+=j*nt}this.paths.length=0,this.paths[0]=this.v}},Be([dn],W),W}(),k=function(){function W(Z,L){this.v=Yn.newElement(),this.v.c=!0,this.localShapeCollection=Fa.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=Z,this.comp=Z.comp,this.frameId=-1,this.d=L.d,this.initDynamicPropertyContainer(Z),this.p=at.getProp(Z,L.p,1,0,this),this.s=at.getProp(Z,L.s,1,0,this),this.r=at.getProp(Z,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],j=this.p.v[1],H=this.s.v[0]/2,ne=this.s.v[1]/2,ue=_t(H,ne,this.r.v),me=ue*(1-xe);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(L+H,j-ne+ue,L+H,j-ne+ue,L+H,j-ne+me,0,!0),this.v.setTripleAt(L+H,j+ne-ue,L+H,j+ne-me,L+H,j+ne-ue,1,!0),ue!==0?(this.v.setTripleAt(L+H-ue,j+ne,L+H-ue,j+ne,L+H-me,j+ne,2,!0),this.v.setTripleAt(L-H+ue,j+ne,L-H+me,j+ne,L-H+ue,j+ne,3,!0),this.v.setTripleAt(L-H,j+ne-ue,L-H,j+ne-ue,L-H,j+ne-me,4,!0),this.v.setTripleAt(L-H,j-ne+ue,L-H,j-ne+me,L-H,j-ne+ue,5,!0),this.v.setTripleAt(L-H+ue,j-ne,L-H+ue,j-ne,L-H+me,j-ne,6,!0),this.v.setTripleAt(L+H-ue,j-ne,L+H-me,j-ne,L+H-ue,j-ne,7,!0)):(this.v.setTripleAt(L-H,j+ne,L-H+me,j+ne,L-H,j+ne,2),this.v.setTripleAt(L-H,j-ne,L-H,j-ne+me,L-H,j-ne,3))):(this.v.setTripleAt(L+H,j-ne+ue,L+H,j-ne+me,L+H,j-ne+ue,0,!0),ue!==0?(this.v.setTripleAt(L+H-ue,j-ne,L+H-ue,j-ne,L+H-me,j-ne,1,!0),this.v.setTripleAt(L-H+ue,j-ne,L-H+me,j-ne,L-H+ue,j-ne,2,!0),this.v.setTripleAt(L-H,j-ne+ue,L-H,j-ne+ue,L-H,j-ne+me,3,!0),this.v.setTripleAt(L-H,j+ne-ue,L-H,j+ne-me,L-H,j+ne-ue,4,!0),this.v.setTripleAt(L-H+ue,j+ne,L-H+ue,j+ne,L-H+me,j+ne,5,!0),this.v.setTripleAt(L+H-ue,j+ne,L+H-me,j+ne,L+H-ue,j+ne,6,!0),this.v.setTripleAt(L+H,j+ne-ue,L+H,j+ne-ue,L+H,j+ne-me,7,!0)):(this.v.setTripleAt(L-H,j-ne,L-H+me,j-ne,L-H,j-ne,1,!0),this.v.setTripleAt(L-H,j+ne,L-H,j+ne-me,L-H,j+ne,2,!0),this.v.setTripleAt(L+H,j+ne,L+H-me,j+ne,L+H,j+ne,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:D},Be([dn],W),W}();function ee(W,Z,L){var j;if(L===3||L===4){var H=L===3?Z.pt:Z.ks,ne=H.k;ne.length?j=new De(W,Z,L):j=new ge(W,Z,L)}else L===5?j=new k(W,Z):L===6?j=new Ce(W,Z):L===7&&(j=new Re(W,Z));return j.k&&W.addDynamicProperty(j),j}function Y(){return ge}function pe(){return De}var he={};return he.getShapeProp=ee,he.getConstructorFunction=Y,he.getKeyframedConstructorFunction=pe,he}();/*!
86
86
  Transformation Matrix v2.0
87
87
  (c) Epistemex 2014-2015
@@ -91,28 +91,28 @@ function print() { __p += __j.call(arguments, '') }
91
91
  License: MIT, header required.
92
92
  */var Rn=function(){var c=Math.cos,p=Math.sin,v=Math.tan,D=Math.round;function _(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function B(ce){if(ce===0)return this;var Q=c(ce),ve=p(ce);return this._t(Q,-ve,0,0,ve,Q,0,0,0,0,1,0,0,0,0,1)}function U(ce){if(ce===0)return this;var Q=c(ce),ve=p(ce);return this._t(1,0,0,0,0,Q,-ve,0,0,ve,Q,0,0,0,0,1)}function ge(ce){if(ce===0)return this;var Q=c(ce),ve=p(ce);return this._t(Q,0,ve,0,0,1,0,0,-ve,0,Q,0,0,0,0,1)}function J(ce){if(ce===0)return this;var Q=c(ce),ve=p(ce);return this._t(Q,-ve,0,0,ve,Q,0,0,0,0,1,0,0,0,0,1)}function De(ce,Q){return this._t(1,Q,ce,1,0,0)}function Ce(ce,Q){return this.shear(v(ce),v(Q))}function Re(ce,Q){var ve=c(Q),Ke=p(Q);return this._t(ve,Ke,0,0,-Ke,ve,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,v(ce),1,0,0,0,0,1,0,0,0,0,1)._t(ve,-Ke,0,0,Ke,ve,0,0,0,0,1,0,0,0,0,1)}function k(ce,Q,ve){return!ve&&ve!==0&&(ve=1),ce===1&&Q===1&&ve===1?this:this._t(ce,0,0,0,0,Q,0,0,0,0,ve,0,0,0,0,1)}function ee(ce,Q,ve,Ke,Ie,lt,St,Et,Dn,Ut,dr,Zn,Ln,jn,Kn,vr){return this.props[0]=ce,this.props[1]=Q,this.props[2]=ve,this.props[3]=Ke,this.props[4]=Ie,this.props[5]=lt,this.props[6]=St,this.props[7]=Et,this.props[8]=Dn,this.props[9]=Ut,this.props[10]=dr,this.props[11]=Zn,this.props[12]=Ln,this.props[13]=jn,this.props[14]=Kn,this.props[15]=vr,this}function Y(ce,Q,ve){return ve=ve||0,ce!==0||Q!==0||ve!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,ce,Q,ve,1):this}function pe(ce,Q,ve,Ke,Ie,lt,St,Et,Dn,Ut,dr,Zn,Ln,jn,Kn,vr){var dt=this.props;if(ce===1&&Q===0&&ve===0&&Ke===0&&Ie===0&&lt===1&&St===0&&Et===0&&Dn===0&&Ut===0&&dr===1&&Zn===0)return dt[12]=dt[12]*ce+dt[15]*Ln,dt[13]=dt[13]*lt+dt[15]*jn,dt[14]=dt[14]*dr+dt[15]*Kn,dt[15]*=vr,this._identityCalculated=!1,this;var ln=dt[0],Zr=dt[1],Fi=dt[2],sa=dt[3],mi=dt[4],ua=dt[5],la=dt[6],Yt=dt[7],$n=dt[8],ja=dt[9],gi=dt[10],ca=dt[11],vi=dt[12],da=dt[13],Ka=dt[14],is=dt[15];return dt[0]=ln*ce+Zr*Ie+Fi*Dn+sa*Ln,dt[1]=ln*Q+Zr*lt+Fi*Ut+sa*jn,dt[2]=ln*ve+Zr*St+Fi*dr+sa*Kn,dt[3]=ln*Ke+Zr*Et+Fi*Zn+sa*vr,dt[4]=mi*ce+ua*Ie+la*Dn+Yt*Ln,dt[5]=mi*Q+ua*lt+la*Ut+Yt*jn,dt[6]=mi*ve+ua*St+la*dr+Yt*Kn,dt[7]=mi*Ke+ua*Et+la*Zn+Yt*vr,dt[8]=$n*ce+ja*Ie+gi*Dn+ca*Ln,dt[9]=$n*Q+ja*lt+gi*Ut+ca*jn,dt[10]=$n*ve+ja*St+gi*dr+ca*Kn,dt[11]=$n*Ke+ja*Et+gi*Zn+ca*vr,dt[12]=vi*ce+da*Ie+Ka*Dn+is*Ln,dt[13]=vi*Q+da*lt+Ka*Ut+is*jn,dt[14]=vi*ve+da*St+Ka*dr+is*Kn,dt[15]=vi*Ke+da*Et+Ka*Zn+is*vr,this._identityCalculated=!1,this}function he(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function W(ce){for(var Q=0;Q<16;){if(ce.props[Q]!==this.props[Q])return!1;Q+=1}return!0}function Z(ce){var Q;for(Q=0;Q<16;Q+=1)ce.props[Q]=this.props[Q];return ce}function L(ce){var Q;for(Q=0;Q<16;Q+=1)this.props[Q]=ce[Q]}function j(ce,Q,ve){return{x:ce*this.props[0]+Q*this.props[4]+ve*this.props[8]+this.props[12],y:ce*this.props[1]+Q*this.props[5]+ve*this.props[9]+this.props[13],z:ce*this.props[2]+Q*this.props[6]+ve*this.props[10]+this.props[14]}}function H(ce,Q,ve){return ce*this.props[0]+Q*this.props[4]+ve*this.props[8]+this.props[12]}function ne(ce,Q,ve){return ce*this.props[1]+Q*this.props[5]+ve*this.props[9]+this.props[13]}function ue(ce,Q,ve){return ce*this.props[2]+Q*this.props[6]+ve*this.props[10]+this.props[14]}function me(){var ce=this.props[0]*this.props[5]-this.props[1]*this.props[4],Q=this.props[5]/ce,ve=-this.props[1]/ce,Ke=-this.props[4]/ce,Ie=this.props[0]/ce,lt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/ce,St=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/ce,Et=new Rn;return Et.props[0]=Q,Et.props[1]=ve,Et.props[4]=Ke,Et.props[5]=Ie,Et.props[12]=lt,Et.props[13]=St,Et}function Oe(ce){var Q=this.getInverseMatrix();return Q.applyToPointArray(ce[0],ce[1],ce[2]||0)}function nt(ce){var Q,ve=ce.length,Ke=[];for(Q=0;Q<ve;Q+=1)Ke[Q]=Oe(ce[Q]);return Ke}function tt(ce,Q,ve){var Ke=Ne("float32",6);if(this.isIdentity())Ke[0]=ce[0],Ke[1]=ce[1],Ke[2]=Q[0],Ke[3]=Q[1],Ke[4]=ve[0],Ke[5]=ve[1];else{var Ie=this.props[0],lt=this.props[1],St=this.props[4],Et=this.props[5],Dn=this.props[12],Ut=this.props[13];Ke[0]=ce[0]*Ie+ce[1]*St+Dn,Ke[1]=ce[0]*lt+ce[1]*Et+Ut,Ke[2]=Q[0]*Ie+Q[1]*St+Dn,Ke[3]=Q[0]*lt+Q[1]*Et+Ut,Ke[4]=ve[0]*Ie+ve[1]*St+Dn,Ke[5]=ve[0]*lt+ve[1]*Et+Ut}return Ke}function Ve(ce,Q,ve){var Ke;return this.isIdentity()?Ke=[ce,Q,ve]:Ke=[ce*this.props[0]+Q*this.props[4]+ve*this.props[8]+this.props[12],ce*this.props[1]+Q*this.props[5]+ve*this.props[9]+this.props[13],ce*this.props[2]+Q*this.props[6]+ve*this.props[10]+this.props[14]],Ke}function st(ce,Q){if(this.isIdentity())return ce+","+Q;var ve=this.props;return Math.round((ce*ve[0]+Q*ve[4]+ve[12])*100)/100+","+Math.round((ce*ve[1]+Q*ve[5]+ve[13])*100)/100}function ct(){for(var ce=0,Q=this.props,ve="matrix3d(",Ke=1e4;ce<16;)ve+=D(Q[ce]*Ke)/Ke,ve+=ce===15?")":",",ce+=1;return ve}function Le(ce){var Q=1e4;return ce<1e-6&&ce>0||ce>-1e-6&&ce<0?D(ce*Q)/Q:ce}function $e(){var ce=this.props,Q=Le(ce[0]),ve=Le(ce[1]),Ke=Le(ce[4]),Ie=Le(ce[5]),lt=Le(ce[12]),St=Le(ce[13]);return"matrix("+Q+","+ve+","+Ke+","+Ie+","+lt+","+St+")"}return function(){this.reset=_,this.rotate=B,this.rotateX=U,this.rotateY=ge,this.rotateZ=J,this.skew=Ce,this.skewFromAxis=Re,this.shear=De,this.scale=k,this.setTransform=ee,this.translate=Y,this.transform=pe,this.applyToPoint=j,this.applyToX=H,this.applyToY=ne,this.applyToZ=ue,this.applyToPointArray=Ve,this.applyToTriplePoints=tt,this.applyToPointStringified=st,this.toCSS=ct,this.to2dCSS=$e,this.clone=Z,this.cloneFromProps=L,this.equals=W,this.inversePoints=nt,this.inversePoint=Oe,this.getInverseMatrix=me,this._t=this.transform,this.isIdentity=he,this._identity=!0,this._identityCalculated=!1,this.props=Ne("float32",16),this.reset()}}();function Qo(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qo=function(v){return typeof v}:Qo=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},Qo(c)}var jt={};function _c(c){le(c)}function Wu(){wn.searchAnimations()}function Bc(c){qt(c)}function Ms(c){Bs(c)}function co(c){return wn.loadAnimation(c)}function Hu(c){if(typeof c=="string")switch(c){case"high":Br(200);break;default:case"medium":Br(50);break;case"low":Br(10);break}else!isNaN(c)&&c>1&&Br(c)}function Rs(){return typeof navigator<"u"}function Fc(c,p){c==="expressions"&&Hr(p)}function kc(c){switch(c){case"propertyFactory":return at;case"shapePropertyFactory":return fi;case"matrix":return Rn;default:return null}}jt.play=wn.play,jt.pause=wn.pause,jt.setLocationHref=_c,jt.togglePause=wn.togglePause,jt.setSpeed=wn.setSpeed,jt.setDirection=wn.setDirection,jt.stop=wn.stop,jt.searchAnimations=Wu,jt.registerAnimation=wn.registerAnimation,jt.loadAnimation=co,jt.setSubframeRendering=Bc,jt.resize=wn.resize,jt.goToAndStop=wn.goToAndStop,jt.destroy=wn.destroy,jt.setQuality=Hu,jt.inBrowser=Rs,jt.installPlugin=Fc,jt.freeze=wn.freeze,jt.unfreeze=wn.unfreeze,jt.setVolume=wn.setVolume,jt.mute=wn.mute,jt.unmute=wn.unmute,jt.getRegisteredAnimations=wn.getRegisteredAnimations,jt.useWebWorker=M,jt.setIDPrefix=Ms,jt.__getFactory=kc,jt.version="5.10.2";function Mc(){document.readyState==="complete"&&(clearInterval(Zu),Wu())}function Gu(c){for(var p=Is.split("&"),v=0;v<p.length;v+=1){var D=p[v].split("=");if(decodeURIComponent(D[0])==c)return decodeURIComponent(D[1])}return null}var Is="";{var Os=document.getElementsByTagName("script"),fo=Os.length-1,Yu=Os[fo]||{src:""};Is=Yu.src?Yu.src.replace(/^[^\?]+\??/,""):"",Gu("renderer")}var Zu=setInterval(Mc,100);try{Qo(G)!=="object"&&(window.bodymovin=jt)}catch{}var Fr=function(){var c={},p={};c.registerModifier=v,c.getModifier=D;function v(_,B){p[_]||(p[_]=B)}function D(_,B,U){return new p[_](B,U)}return c}();function mr(){}mr.prototype.initModifierProperties=function(){},mr.prototype.addShapeToModifier=function(){},mr.prototype.addShape=function(c){if(!this.closed){c.sh.container.addDynamicProperty(c.sh);var p={shape:c.sh,data:c,localShapeCollection:Fa.newShapeCollection()};this.shapes.push(p),this.addShapeToModifier(p),this._isAnimated&&c.setAsAnimated()}},mr.prototype.init=function(c,p){this.shapes=[],this.elem=c,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,p),this.frameId=fe,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},mr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},Be([dn],mr);function kr(){}Be([mr],kr),kr.prototype.initModifierProperties=function(c,p){this.s=at.getProp(c,p.s,0,.01,this),this.e=at.getProp(c,p.e,0,.01,this),this.o=at.getProp(c,p.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=p.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},kr.prototype.addShapeToModifier=function(c){c.pathsData=[]},kr.prototype.calculateShapeEdges=function(c,p,v,D,_){var B=[];p<=1?B.push({s:c,e:p}):c>=1?B.push({s:c-1,e:p-1}):(B.push({s:c,e:1}),B.push({s:0,e:p-1}));var U=[],ge,J=B.length,De;for(ge=0;ge<J;ge+=1)if(De=B[ge],!(De.e*_<D||De.s*_>D+v)){var Ce,Re;De.s*_<=D?Ce=0:Ce=(De.s*_-D)/v,De.e*_>=D+v?Re=1:Re=(De.e*_-D)/v,U.push([Ce,Re])}return U.length||U.push([0,0]),U},kr.prototype.releasePathsData=function(c){var p,v=c.length;for(p=0;p<v;p+=1)Uu.release(c[p]);return c.length=0,c},kr.prototype.processShapes=function(c){var p,v;if(this._mdf||c){var D=this.o.v%360/360;if(D<0&&(D+=1),this.s.v>1?p=1+D:this.s.v<0?p=0+D:p=this.s.v+D,this.e.v>1?v=1+D:this.e.v<0?v=0+D:v=this.e.v+D,p>v){var _=p;p=v,v=_}p=Math.round(p*1e4)*1e-4,v=Math.round(v*1e4)*1e-4,this.sValue=p,this.eValue=v}else p=this.sValue,v=this.eValue;var B,U,ge=this.shapes.length,J,De,Ce,Re,k,ee=0;if(v===p)for(U=0;U<ge;U+=1)this.shapes[U].localShapeCollection.releaseShapes(),this.shapes[U].shape._mdf=!0,this.shapes[U].shape.paths=this.shapes[U].localShapeCollection,this._mdf&&(this.shapes[U].pathsData.length=0);else if(v===1&&p===0||v===0&&p===1){if(this._mdf)for(U=0;U<ge;U+=1)this.shapes[U].pathsData.length=0,this.shapes[U].shape._mdf=!0}else{var Y=[],pe,he;for(U=0;U<ge;U+=1)if(pe=this.shapes[U],!pe.shape._mdf&&!this._mdf&&!c&&this.m!==2)pe.shape.paths=pe.localShapeCollection;else{if(B=pe.shape.paths,De=B._length,k=0,!pe.shape._mdf&&pe.pathsData.length)k=pe.totalShapeLength;else{for(Ce=this.releasePathsData(pe.pathsData),J=0;J<De;J+=1)Re=Gr.getSegmentsLength(B.shapes[J]),Ce.push(Re),k+=Re.totalLength;pe.totalShapeLength=k,pe.pathsData=Ce}ee+=k,pe.shape._mdf=!0}var W=p,Z=v,L=0,j;for(U=ge-1;U>=0;U-=1)if(pe=this.shapes[U],pe.shape._mdf){for(he=pe.localShapeCollection,he.releaseShapes(),this.m===2&&ge>1?(j=this.calculateShapeEdges(p,v,pe.totalShapeLength,L,ee),L+=pe.totalShapeLength):j=[[W,Z]],De=j.length,J=0;J<De;J+=1){W=j[J][0],Z=j[J][1],Y.length=0,Z<=1?Y.push({s:pe.totalShapeLength*W,e:pe.totalShapeLength*Z}):W>=1?Y.push({s:pe.totalShapeLength*(W-1),e:pe.totalShapeLength*(Z-1)}):(Y.push({s:pe.totalShapeLength*W,e:pe.totalShapeLength}),Y.push({s:0,e:pe.totalShapeLength*(Z-1)}));var H=this.addShapes(pe,Y[0]);if(Y[0].s!==Y[0].e){if(Y.length>1){var ne=pe.shape.paths.shapes[pe.shape.paths._length-1];if(ne.c){var ue=H.pop();this.addPaths(H,he),H=this.addShapes(pe,Y[1],ue)}else this.addPaths(H,he),H=this.addShapes(pe,Y[1])}this.addPaths(H,he)}}pe.shape.paths=he}}},kr.prototype.addPaths=function(c,p){var v,D=c.length;for(v=0;v<D;v+=1)p.addShape(c[v])},kr.prototype.addSegment=function(c,p,v,D,_,B,U){_.setXYAt(p[0],p[1],"o",B),_.setXYAt(v[0],v[1],"i",B+1),U&&_.setXYAt(c[0],c[1],"v",B),_.setXYAt(D[0],D[1],"v",B+1)},kr.prototype.addSegmentFromArray=function(c,p,v,D){p.setXYAt(c[1],c[5],"o",v),p.setXYAt(c[2],c[6],"i",v+1),D&&p.setXYAt(c[0],c[4],"v",v),p.setXYAt(c[3],c[7],"v",v+1)},kr.prototype.addShapes=function(c,p,v){var D=c.pathsData,_=c.shape.paths.shapes,B,U=c.shape.paths._length,ge,J,De=0,Ce,Re,k,ee,Y=[],pe,he=!0;for(v?(Re=v._length,pe=v._length):(v=Yn.newElement(),Re=0,pe=0),Y.push(v),B=0;B<U;B+=1){for(k=D[B].lengths,v.c=_[B].c,J=_[B].c?k.length:k.length+1,ge=1;ge<J;ge+=1)if(Ce=k[ge-1],De+Ce.addedLength<p.s)De+=Ce.addedLength,v.c=!1;else if(De>p.e){v.c=!1;break}else p.s<=De&&p.e>=De+Ce.addedLength?(this.addSegment(_[B].v[ge-1],_[B].o[ge-1],_[B].i[ge],_[B].v[ge],v,Re,he),he=!1):(ee=Gr.getNewSegment(_[B].v[ge-1],_[B].v[ge],_[B].o[ge-1],_[B].i[ge],(p.s-De)/Ce.addedLength,(p.e-De)/Ce.addedLength,k[ge-1]),this.addSegmentFromArray(ee,v,Re,he),he=!1,v.c=!1),De+=Ce.addedLength,Re+=1;if(_[B].c&&k.length){if(Ce=k[ge-1],De<=p.e){var W=k[ge-1].addedLength;p.s<=De&&p.e>=De+W?(this.addSegment(_[B].v[ge-1],_[B].o[ge-1],_[B].i[0],_[B].v[0],v,Re,he),he=!1):(ee=Gr.getNewSegment(_[B].v[ge-1],_[B].v[0],_[B].o[ge-1],_[B].i[0],(p.s-De)/W,(p.e-De)/W,k[ge-1]),this.addSegmentFromArray(ee,v,Re,he),he=!1,v.c=!1)}else v.c=!1;De+=Ce.addedLength,Re+=1}if(v._length&&(v.setXYAt(v.v[pe][0],v.v[pe][1],"i",pe),v.setXYAt(v.v[v._length-1][0],v.v[v._length-1][1],"o",v._length-1)),De>p.e)break;B<U-1&&(v=Yn.newElement(),he=!0,Y.push(v),Re=0)}return Y};function ka(){}Be([mr],ka),ka.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amount=at.getProp(c,p.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},ka.prototype.processPath=function(c,p){var v=p/100,D=[0,0],_=c._length,B=0;for(B=0;B<_;B+=1)D[0]+=c.v[B][0],D[1]+=c.v[B][1];D[0]/=_,D[1]/=_;var U=Yn.newElement();U.c=c.c;var ge,J,De,Ce,Re,k;for(B=0;B<_;B+=1)ge=c.v[B][0]+(D[0]-c.v[B][0])*v,J=c.v[B][1]+(D[1]-c.v[B][1])*v,De=c.o[B][0]+(D[0]-c.o[B][0])*-v,Ce=c.o[B][1]+(D[1]-c.o[B][1])*-v,Re=c.i[B][0]+(D[0]-c.i[B][0])*-v,k=c.i[B][1]+(D[1]-c.i[B][1])*-v,U.setTripleAt(ge,J,De,Ce,Re,k,B);return U},ka.prototype.processShapes=function(c){var p,v,D=this.shapes.length,_,B,U=this.amount.v;if(U!==0){var ge,J;for(v=0;v<D;v+=1){if(ge=this.shapes[v],J=ge.localShapeCollection,!(!ge.shape._mdf&&!this._mdf&&!c))for(J.releaseShapes(),ge.shape._mdf=!0,p=ge.shape.paths.shapes,B=ge.shape.paths._length,_=0;_<B;_+=1)J.addShape(this.processPath(p[_],U));ge.shape.paths=ge.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Jo=function(){var c=[0,0];function p(J){var De=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||De,this.a&&J.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&J.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&J.skewFromAxis(-this.sk.v,this.sa.v),this.r?J.rotate(-this.r.v):J.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?J.translate(this.px.v,this.py.v,-this.pz.v):J.translate(this.px.v,this.py.v,0):J.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function v(J){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||J){var De;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var Ce,Re;if(De=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(Ce=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/De,0),Re=this.p.getValueAtTime(this.p.keyframes[0].t/De,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(Ce=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/De,0),Re=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/De,0)):(Ce=this.p.pv,Re=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/De,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){Ce=[],Re=[];var k=this.px,ee=this.py;k._caching.lastFrame+k.offsetTime<=k.keyframes[0].t?(Ce[0]=k.getValueAtTime((k.keyframes[0].t+.01)/De,0),Ce[1]=ee.getValueAtTime((ee.keyframes[0].t+.01)/De,0),Re[0]=k.getValueAtTime(k.keyframes[0].t/De,0),Re[1]=ee.getValueAtTime(ee.keyframes[0].t/De,0)):k._caching.lastFrame+k.offsetTime>=k.keyframes[k.keyframes.length-1].t?(Ce[0]=k.getValueAtTime(k.keyframes[k.keyframes.length-1].t/De,0),Ce[1]=ee.getValueAtTime(ee.keyframes[ee.keyframes.length-1].t/De,0),Re[0]=k.getValueAtTime((k.keyframes[k.keyframes.length-1].t-.01)/De,0),Re[1]=ee.getValueAtTime((ee.keyframes[ee.keyframes.length-1].t-.01)/De,0)):(Ce=[k.pv,ee.pv],Re[0]=k.getValueAtTime((k._caching.lastFrame+k.offsetTime-.01)/De,k.offsetTime),Re[1]=ee.getValueAtTime((ee._caching.lastFrame+ee.offsetTime-.01)/De,ee.offsetTime))}else Re=c,Ce=Re;this.v.rotate(-Math.atan2(Ce[1]-Re[1],Ce[0]-Re[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function D(){if(!this.a.k)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function _(){}function B(J){this._addDynamicProperty(J),this.elem.addDynamicProperty(J),this._isDirty=!0}function U(J,De,Ce){if(this.elem=J,this.frameId=-1,this.propType="transform",this.data=De,this.v=new Rn,this.pre=new Rn,this.appliedTransformations=0,this.initDynamicPropertyContainer(Ce||J),De.p&&De.p.s?(this.px=at.getProp(J,De.p.x,0,0,this),this.py=at.getProp(J,De.p.y,0,0,this),De.p.z&&(this.pz=at.getProp(J,De.p.z,0,0,this))):this.p=at.getProp(J,De.p||{k:[0,0,0]},1,0,this),De.rx){if(this.rx=at.getProp(J,De.rx,0,Jt,this),this.ry=at.getProp(J,De.ry,0,Jt,this),this.rz=at.getProp(J,De.rz,0,Jt,this),De.or.k[0].ti){var Re,k=De.or.k.length;for(Re=0;Re<k;Re+=1)De.or.k[Re].to=null,De.or.k[Re].ti=null}this.or=at.getProp(J,De.or,1,Jt,this),this.or.sh=!0}else this.r=at.getProp(J,De.r||{k:0},0,Jt,this);De.sk&&(this.sk=at.getProp(J,De.sk,0,Jt,this),this.sa=at.getProp(J,De.sa,0,Jt,this)),this.a=at.getProp(J,De.a||{k:[0,0,0]},1,0,this),this.s=at.getProp(J,De.s||{k:[100,100,100]},1,.01,this),De.o?this.o=at.getProp(J,De.o,0,.01,J):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}U.prototype={applyToMatrix:p,getValue:v,precalculateMatrix:D,autoOrient:_},Be([dn],U),U.prototype.addDynamicProperty=B,U.prototype._addDynamicProperty=dn.prototype.addDynamicProperty;function ge(J,De,Ce){return new U(J,De,Ce)}return{getTransformProperty:ge}}();function gr(){}Be([mr],gr),gr.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.c=at.getProp(c,p.c,0,null,this),this.o=at.getProp(c,p.o,0,null,this),this.tr=Jo.getTransformProperty(c,p.tr,this),this.so=at.getProp(c,p.tr.so,0,.01,this),this.eo=at.getProp(c,p.tr.eo,0,.01,this),this.data=p,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Rn,this.rMatrix=new Rn,this.sMatrix=new Rn,this.tMatrix=new Rn,this.matrix=new Rn},gr.prototype.applyTransforms=function(c,p,v,D,_,B){var U=B?-1:1,ge=D.s.v[0]+(1-D.s.v[0])*(1-_),J=D.s.v[1]+(1-D.s.v[1])*(1-_);c.translate(D.p.v[0]*U*_,D.p.v[1]*U*_,D.p.v[2]),p.translate(-D.a.v[0],-D.a.v[1],D.a.v[2]),p.rotate(-D.r.v*U*_),p.translate(D.a.v[0],D.a.v[1],D.a.v[2]),v.translate(-D.a.v[0],-D.a.v[1],D.a.v[2]),v.scale(B?1/ge:ge,B?1/J:J),v.translate(D.a.v[0],D.a.v[1],D.a.v[2])},gr.prototype.init=function(c,p,v,D){for(this.elem=c,this.arr=p,this.pos=v,this.elemsData=D,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,p[v]);v>0;)v-=1,this._elements.unshift(p[v]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},gr.prototype.resetElements=function(c){var p,v=c.length;for(p=0;p<v;p+=1)c[p]._processed=!1,c[p].ty==="gr"&&this.resetElements(c[p].it)},gr.prototype.cloneElements=function(c){var p=JSON.parse(JSON.stringify(c));return this.resetElements(p),p},gr.prototype.changeGroupRender=function(c,p){var v,D=c.length;for(v=0;v<D;v+=1)c[v]._render=p,c[v].ty==="gr"&&this.changeGroupRender(c[v].it,p)},gr.prototype.processShapes=function(c){var p,v,D,_,B,U=!1;if(this._mdf||c){var ge=Math.ceil(this.c.v);if(this._groups.length<ge){for(;this._groups.length<ge;){var J={it:this.cloneElements(this._elements),ty:"gr"};J.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,J),this._groups.splice(0,0,J),this._currentCopies+=1}this.elem.reloadShapes(),U=!0}B=0;var De;for(D=0;D<=this._groups.length-1;D+=1){if(De=B<ge,this._groups[D]._render=De,this.changeGroupRender(this._groups[D].it,De),!De){var Ce=this.elemsData[D].it,Re=Ce[Ce.length-1];Re.transform.op.v!==0?(Re.transform.op._mdf=!0,Re.transform.op.v=0):Re.transform.op._mdf=!1}B+=1}this._currentCopies=ge;var k=this.o.v,ee=k%1,Y=k>0?Math.floor(k):Math.ceil(k),pe=this.pMatrix.props,he=this.rMatrix.props,W=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var Z=0;if(k>0){for(;Z<Y;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),Z+=1;ee&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,ee,!1),Z+=ee)}else if(k<0){for(;Z>Y;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),Z-=1;ee&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-ee,!0),Z-=ee)}D=this.data.m===1?0:this._currentCopies-1,_=this.data.m===1?1:-1,B=this._currentCopies;for(var L,j;B;){if(p=this.elemsData[D].it,v=p[p.length-1].transform.mProps.v.props,j=v.length,p[p.length-1].transform.mProps._mdf=!0,p[p.length-1].transform.op._mdf=!0,p[p.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(D/(this._currentCopies-1)),Z!==0){for((D!==0&&_===1||D!==this._currentCopies-1&&_===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(he[0],he[1],he[2],he[3],he[4],he[5],he[6],he[7],he[8],he[9],he[10],he[11],he[12],he[13],he[14],he[15]),this.matrix.transform(W[0],W[1],W[2],W[3],W[4],W[5],W[6],W[7],W[8],W[9],W[10],W[11],W[12],W[13],W[14],W[15]),this.matrix.transform(pe[0],pe[1],pe[2],pe[3],pe[4],pe[5],pe[6],pe[7],pe[8],pe[9],pe[10],pe[11],pe[12],pe[13],pe[14],pe[15]),L=0;L<j;L+=1)v[L]=this.matrix.props[L];this.matrix.reset()}else for(this.matrix.reset(),L=0;L<j;L+=1)v[L]=this.matrix.props[L];Z+=1,B-=1,D+=_}}else for(B=this._currentCopies,D=0,_=1;B;)p=this.elemsData[D].it,v=p[p.length-1].transform.mProps.v.props,p[p.length-1].transform.mProps._mdf=!1,p[p.length-1].transform.op._mdf=!1,B-=1,D+=_;return U},gr.prototype.addShape=function(){};function ho(){}Be([mr],ho),ho.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.rd=at.getProp(c,p.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},ho.prototype.processPath=function(c,p){var v=Yn.newElement();v.c=c.c;var D,_=c._length,B,U,ge,J,De,Ce,Re=0,k,ee,Y,pe,he,W;for(D=0;D<_;D+=1)B=c.v[D],ge=c.o[D],U=c.i[D],B[0]===ge[0]&&B[1]===ge[1]&&B[0]===U[0]&&B[1]===U[1]?(D===0||D===_-1)&&!c.c?(v.setTripleAt(B[0],B[1],ge[0],ge[1],U[0],U[1],Re),Re+=1):(D===0?J=c.v[_-1]:J=c.v[D-1],De=Math.sqrt(Math.pow(B[0]-J[0],2)+Math.pow(B[1]-J[1],2)),Ce=De?Math.min(De/2,p)/De:0,he=B[0]+(J[0]-B[0])*Ce,k=he,W=B[1]-(B[1]-J[1])*Ce,ee=W,Y=k-(k-B[0])*xe,pe=ee-(ee-B[1])*xe,v.setTripleAt(k,ee,Y,pe,he,W,Re),Re+=1,D===_-1?J=c.v[0]:J=c.v[D+1],De=Math.sqrt(Math.pow(B[0]-J[0],2)+Math.pow(B[1]-J[1],2)),Ce=De?Math.min(De/2,p)/De:0,Y=B[0]+(J[0]-B[0])*Ce,k=Y,pe=B[1]+(J[1]-B[1])*Ce,ee=pe,he=k-(k-B[0])*xe,W=ee-(ee-B[1])*xe,v.setTripleAt(k,ee,Y,pe,he,W,Re),Re+=1):(v.setTripleAt(c.v[D][0],c.v[D][1],c.o[D][0],c.o[D][1],c.i[D][0],c.i[D][1],Re),Re+=1);return v},ho.prototype.processShapes=function(c){var p,v,D=this.shapes.length,_,B,U=this.rd.v;if(U!==0){var ge,J;for(v=0;v<D;v+=1){if(ge=this.shapes[v],J=ge.localShapeCollection,!(!ge.shape._mdf&&!this._mdf&&!c))for(J.releaseShapes(),ge.shape._mdf=!0,p=ge.shape.paths.shapes,B=ge.shape.paths._length,_=0;_<B;_+=1)J.addShape(this.processPath(p[_],U));ge.shape.paths=ge.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function po(c,p){return Math.abs(c-p)*1e5<=Math.min(Math.abs(c),Math.abs(p))}function Si(c){return Math.abs(c)<=1e-5}function hi(c,p,v){return c*(1-v)+p*v}function or(c,p,v){return[hi(c[0],p[0],v),hi(c[1],p[1],v)]}function Ti(c,p,v){if(c===0)return[];var D=p*p-4*c*v;if(D<0)return[];var _=-p/(2*c);if(D===0)return[_];var B=Math.sqrt(D)/(2*c);return[_-B,_+B]}function Ls(c,p,v,D){return[-c+3*p-3*v+D,3*c-6*p+3*v,-3*c+3*p,c]}function Xu(c){return new pn(c,c,c,c,!1)}function pn(c,p,v,D,_){_&&ia(c,p)&&(p=or(c,D,1/3)),_&&ia(v,D)&&(v=or(c,D,2/3));var B=Ls(c[0],p[0],v[0],D[0]),U=Ls(c[1],p[1],v[1],D[1]);this.a=[B[0],U[0]],this.b=[B[1],U[1]],this.c=[B[2],U[2]],this.d=[B[3],U[3]],this.points=[c,p,v,D]}pn.prototype.point=function(c){return[((this.a[0]*c+this.b[0])*c+this.c[0])*c+this.d[0],((this.a[1]*c+this.b[1])*c+this.c[1])*c+this.d[1]]},pn.prototype.derivative=function(c){return[(3*c*this.a[0]+2*this.b[0])*c+this.c[0],(3*c*this.a[1]+2*this.b[1])*c+this.c[1]]},pn.prototype.tangentAngle=function(c){var p=this.derivative(c);return Math.atan2(p[1],p[0])},pn.prototype.normalAngle=function(c){var p=this.derivative(c);return Math.atan2(p[0],p[1])},pn.prototype.inflectionPoints=function(){var c=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Si(c))return[];var p=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/c,v=p*p-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/c;if(v<0)return[];var D=Math.sqrt(v);return Si(D)?D>0&&D<1?[p]:[]:[p-D,p+D].filter(function(_){return _>0&&_<1})},pn.prototype.split=function(c){if(c<=0)return[Xu(this.points[0]),this];if(c>=1)return[this,Xu(this.points[this.points.length-1])];var p=or(this.points[0],this.points[1],c),v=or(this.points[1],this.points[2],c),D=or(this.points[2],this.points[3],c),_=or(p,v,c),B=or(v,D,c),U=or(_,B,c);return[new pn(this.points[0],p,_,U,!0),new pn(U,B,D,this.points[3],!0)]};function Vs(c,p){var v=c.points[0][p],D=c.points[c.points.length-1][p];if(v>D){var _=D;D=v,v=_}for(var B=Ti(3*c.a[p],2*c.b[p],c.c[p]),U=0;U<B.length;U+=1)if(B[U]>0&&B[U]<1){var ge=c.point(B[U])[p];ge<v?v=ge:ge>D&&(D=ge)}return{min:v,max:D}}pn.prototype.bounds=function(){return{x:Vs(this,0),y:Vs(this,1)}},pn.prototype.boundingBox=function(){var c=this.bounds();return{left:c.x.min,right:c.x.max,top:c.y.min,bottom:c.y.max,width:c.x.max-c.x.min,height:c.y.max-c.y.min,cx:(c.x.max+c.x.min)/2,cy:(c.y.max+c.y.min)/2}};function mo(c,p,v){var D=c.boundingBox();return{cx:D.cx,cy:D.cy,width:D.width,height:D.height,bez:c,t:(p+v)/2,t1:p,t2:v}}function Ns(c){var p=c.bez.split(.5);return[mo(p[0],c.t1,c.t),mo(p[1],c.t,c.t2)]}function Qu(c,p){return Math.abs(c.cx-p.cx)*2<c.width+p.width&&Math.abs(c.cy-p.cy)*2<c.height+p.height}function Mr(c,p,v,D,_,B){if(Qu(c,p)){if(v>=B||c.width<=D&&c.height<=D&&p.width<=D&&p.height<=D){_.push([c.t,p.t]);return}var U=Ns(c),ge=Ns(p);Mr(U[0],ge[0],v+1,D,_,B),Mr(U[0],ge[1],v+1,D,_,B),Mr(U[1],ge[0],v+1,D,_,B),Mr(U[1],ge[1],v+1,D,_,B)}}pn.prototype.intersections=function(c,p,v){p===void 0&&(p=2),v===void 0&&(v=7);var D=[];return Mr(mo(this,0,1),mo(c,0,1),0,p,D,v),D},pn.shapeSegment=function(c,p){var v=(p+1)%c.length();return new pn(c.v[p],c.o[p],c.i[v],c.v[v],!0)},pn.shapeSegmentInverted=function(c,p){var v=(p+1)%c.length();return new pn(c.v[v],c.i[v],c.o[p],c.v[p],!0)};function js(c,p){return[c[1]*p[2]-c[2]*p[1],c[2]*p[0]-c[0]*p[2],c[0]*p[1]-c[1]*p[0]]}function Ma(c,p,v,D){var _=[c[0],c[1],1],B=[p[0],p[1],1],U=[v[0],v[1],1],ge=[D[0],D[1],1],J=js(js(_,B),js(U,ge));return Si(J[2])?null:[J[0]/J[2],J[1]/J[2]]}function Ra(c,p,v){return[c[0]+Math.cos(p)*v,c[1]-Math.sin(p)*v]}function go(c,p){return Math.hypot(c[0]-p[0],c[1]-p[1])}function ia(c,p){return po(c[0],p[0])&&po(c[1],p[1])}function vo(){}Be([mr],vo),vo.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amplitude=at.getProp(c,p.s,0,null,this),this.frequency=at.getProp(c,p.r,0,null,this),this.pointsType=at.getProp(c,p.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function es(c,p,v,D,_,B,U){var ge=v-Math.PI/2,J=v+Math.PI/2,De=p[0]+Math.cos(v)*D*_,Ce=p[1]-Math.sin(v)*D*_;c.setTripleAt(De,Ce,De+Math.cos(ge)*B,Ce-Math.sin(ge)*B,De+Math.cos(J)*U,Ce-Math.sin(J)*U,c.length())}function Ju(c,p){var v=[p[0]-c[0],p[1]-c[1]],D=-Math.PI*.5,_=[Math.cos(D)*v[0]-Math.sin(D)*v[1],Math.sin(D)*v[0]+Math.cos(D)*v[1]];return _}function Rc(c,p){var v=p===0?c.length()-1:p-1,D=(p+1)%c.length(),_=c.v[v],B=c.v[D],U=Ju(_,B);return Math.atan2(0,1)-Math.atan2(U[1],U[0])}function yo(c,p,v,D,_,B,U){var ge=Rc(p,v),J=p.v[v%p._length],De=p.v[v===0?p._length-1:v-1],Ce=p.v[(v+1)%p._length],Re=B===2?Math.sqrt(Math.pow(J[0]-De[0],2)+Math.pow(J[1]-De[1],2)):0,k=B===2?Math.sqrt(Math.pow(J[0]-Ce[0],2)+Math.pow(J[1]-Ce[1],2)):0;es(c,p.v[v%p._length],ge,U,D,k/((_+1)*2),Re/((_+1)*2))}function Ic(c,p,v,D,_,B){for(var U=0;U<D;U+=1){var ge=(U+1)/(D+1),J=_===2?Math.sqrt(Math.pow(p.points[3][0]-p.points[0][0],2)+Math.pow(p.points[3][1]-p.points[0][1],2)):0,De=p.normalAngle(ge),Ce=p.point(ge);es(c,Ce,De,B,v,J/((D+1)*2),J/((D+1)*2)),B=-B}return B}vo.prototype.processPath=function(c,p,v,D){var _=c._length,B=Yn.newElement();if(B.c=c.c,c.c||(_-=1),_===0)return B;var U=-1,ge=pn.shapeSegment(c,0);yo(B,c,0,p,v,D,U);for(var J=0;J<_;J+=1)U=Ic(B,ge,p,v,D,-U),J===_-1&&!c.c?ge=null:ge=pn.shapeSegment(c,(J+1)%_),yo(B,c,J+1,p,v,D,U);return B},vo.prototype.processShapes=function(c){var p,v,D=this.shapes.length,_,B,U=this.amplitude.v,ge=Math.max(0,Math.round(this.frequency.v)),J=this.pointsType.v;if(U!==0){var De,Ce;for(v=0;v<D;v+=1){if(De=this.shapes[v],Ce=De.localShapeCollection,!(!De.shape._mdf&&!this._mdf&&!c))for(Ce.releaseShapes(),De.shape._mdf=!0,p=De.shape.paths.shapes,B=De.shape.paths._length,_=0;_<B;_+=1)Ce.addShape(this.processPath(p[_],U,ge,J));De.shape.paths=De.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function bo(c,p,v){var D=Math.atan2(p[0]-c[0],p[1]-c[1]);return[Ra(c,D,v),Ra(p,D,v)]}function Gt(c,p){var v,D,_,B,U,ge,J;J=bo(c.points[0],c.points[1],p),v=J[0],D=J[1],J=bo(c.points[1],c.points[2],p),_=J[0],B=J[1],J=bo(c.points[2],c.points[3],p),U=J[0],ge=J[1];var De=Ma(v,D,_,B);De===null&&(De=D);var Ce=Ma(U,ge,_,B);return Ce===null&&(Ce=U),new pn(v,De,Ce,ge)}function en(c,p,v,D,_){var B=p.points[3],U=v.points[0];if(D===3||ia(B,U))return B;if(D===2){var ge=-p.tangentAngle(1),J=-v.tangentAngle(0)+Math.PI,De=Ma(B,Ra(B,ge+Math.PI/2,100),U,Ra(U,ge+Math.PI/2,100)),Ce=De?go(De,B):go(B,U)/2,Re=Ra(B,ge,2*Ce*xe);return c.setXYAt(Re[0],Re[1],"o",c.length()-1),Re=Ra(U,J,2*Ce*xe),c.setTripleAt(U[0],U[1],U[0],U[1],Re[0],Re[1],c.length()),U}var k=ia(B,p.points[2])?p.points[0]:p.points[2],ee=ia(U,v.points[1])?v.points[3]:v.points[1],Y=Ma(k,B,U,ee);return Y&&go(Y,B)<_?(c.setTripleAt(Y[0],Y[1],Y[0],Y[1],Y[0],Y[1],c.length()),Y):B}function ie(c,p){var v=c.intersections(p);return v.length&&po(v[0][0],1)&&v.shift(),v.length?v[0]:null}function Me(c,p){var v=c.slice(),D=p.slice(),_=ie(c[c.length-1],p[0]);return _&&(v[c.length-1]=c[c.length-1].split(_[0])[0],D[0]=p[0].split(_[1])[1]),c.length>1&&p.length>1&&(_=ie(c[0],p[p.length-1]),_)?[[c[0].split(_[0])[0]],[p[p.length-1].split(_[1])[1]]]:[v,D]}function We(c){for(var p,v=1;v<c.length;v+=1)p=Me(c[v-1],c[v]),c[v-1]=p[0],c[v]=p[1];return c.length>1&&(p=Me(c[c.length-1],c[0]),c[c.length-1]=p[0],c[0]=p[1]),c}function pt(c,p){var v=c.inflectionPoints(),D,_,B,U;if(v.length===0)return[Gt(c,p)];if(v.length===1||po(v[1],1))return B=c.split(v[0]),D=B[0],_=B[1],[Gt(D,p),Gt(_,p)];B=c.split(v[0]),D=B[0];var ge=(v[1]-v[0])/(1-v[0]);return B=B[1].split(ge),U=B[0],_=B[1],[Gt(D,p),Gt(U,p),Gt(_,p)]}function xn(){}Be([mr],xn),xn.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amount=at.getProp(c,p.a,0,null,this),this.miterLimit=at.getProp(c,p.ml,0,null,this),this.lineJoin=p.lj,this._isAnimated=this.amount.effectsSequence.length!==0},xn.prototype.processPath=function(c,p,v,D){var _=Yn.newElement();_.c=c.c;var B=c.length();c.c||(B-=1);var U,ge,J,De=[];for(U=0;U<B;U+=1)J=pn.shapeSegment(c,U),De.push(pt(J,p));if(!c.c)for(U=B-1;U>=0;U-=1)J=pn.shapeSegmentInverted(c,U),De.push(pt(J,p));De=We(De);var Ce=null,Re=null;for(U=0;U<De.length;U+=1){var k=De[U];for(Re&&(Ce=en(_,Re,k[0],v,D)),Re=k[k.length-1],ge=0;ge<k.length;ge+=1)J=k[ge],Ce&&ia(J.points[0],Ce)?_.setXYAt(J.points[1][0],J.points[1][1],"o",_.length()-1):_.setTripleAt(J.points[0][0],J.points[0][1],J.points[1][0],J.points[1][1],J.points[0][0],J.points[0][1],_.length()),_.setTripleAt(J.points[3][0],J.points[3][1],J.points[3][0],J.points[3][1],J.points[2][0],J.points[2][1],_.length()),Ce=J.points[3]}return De.length&&en(_,Re,De[0][0],v,D),_},xn.prototype.processShapes=function(c){var p,v,D=this.shapes.length,_,B,U=this.amount.v,ge=this.miterLimit.v,J=this.lineJoin;if(U!==0){var De,Ce;for(v=0;v<D;v+=1){if(De=this.shapes[v],Ce=De.localShapeCollection,!(!De.shape._mdf&&!this._mdf&&!c))for(Ce.releaseShapes(),De.shape._mdf=!0,p=De.shape.paths.shapes,B=De.shape.paths._length,_=0;_<B;_+=1)Ce.addShape(this.processPath(p[_],U,J,ge));De.shape.paths=De.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function rr(c){for(var p=c.fStyle?c.fStyle.split(" "):[],v="normal",D="normal",_=p.length,B,U=0;U<_;U+=1)switch(B=p[U].toLowerCase(),B){case"italic":D="italic";break;case"bold":v="700";break;case"black":v="900";break;case"medium":v="500";break;case"regular":case"normal":v="400";break;case"light":case"thin":v="200";break}return{style:D,weight:c.fWeight||v}}var sr=function(){var c=5e3,p={w:0,size:0,shapes:[],data:{shapes:[]}},v=[];v=v.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var D=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],_=[65039,8205];function B(j){var H=j.split(","),ne,ue=H.length,me=[];for(ne=0;ne<ue;ne+=1)H[ne]!=="sans-serif"&&H[ne]!=="monospace"&&me.push(H[ne]);return me.join(",")}function U(j,H){var ne=_e("span");ne.setAttribute("aria-hidden",!0),ne.style.fontFamily=H;var ue=_e("span");ue.innerText="giItT1WQy@!-/#",ne.style.position="absolute",ne.style.left="-10000px",ne.style.top="-10000px",ne.style.fontSize="300px",ne.style.fontVariant="normal",ne.style.fontStyle="normal",ne.style.fontWeight="normal",ne.style.letterSpacing="0",ne.appendChild(ue),document.body.appendChild(ne);var me=ue.offsetWidth;return ue.style.fontFamily=B(j)+", "+H,{node:ue,w:me,parent:ne}}function ge(){var j,H=this.fonts.length,ne,ue,me=H;for(j=0;j<H;j+=1)this.fonts[j].loaded?me-=1:this.fonts[j].fOrigin==="n"||this.fonts[j].origin===0?this.fonts[j].loaded=!0:(ne=this.fonts[j].monoCase.node,ue=this.fonts[j].monoCase.w,ne.offsetWidth!==ue?(me-=1,this.fonts[j].loaded=!0):(ne=this.fonts[j].sansCase.node,ue=this.fonts[j].sansCase.w,ne.offsetWidth!==ue&&(me-=1,this.fonts[j].loaded=!0)),this.fonts[j].loaded&&(this.fonts[j].sansCase.parent.parentNode.removeChild(this.fonts[j].sansCase.parent),this.fonts[j].monoCase.parent.parentNode.removeChild(this.fonts[j].monoCase.parent)));me!==0&&Date.now()-this.initTime<c?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function J(j,H){var ne=document.body&&H?"svg":"canvas",ue,me=rr(j);if(ne==="svg"){var Oe=bt("text");Oe.style.fontSize="100px",Oe.setAttribute("font-family",j.fFamily),Oe.setAttribute("font-style",me.style),Oe.setAttribute("font-weight",me.weight),Oe.textContent="1",j.fClass?(Oe.style.fontFamily="inherit",Oe.setAttribute("class",j.fClass)):Oe.style.fontFamily=j.fFamily,H.appendChild(Oe),ue=Oe}else{var nt=new OffscreenCanvas(500,500).getContext("2d");nt.font=me.style+" "+me.weight+" 100px "+j.fFamily,ue=nt}function tt(Ve){return ne==="svg"?(ue.textContent=Ve,ue.getComputedTextLength()):ue.measureText(Ve).width}return{measureText:tt}}function De(j,H){if(!j){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=j.list;return}if(!document.body){this.isLoaded=!0,j.list.forEach(function($e){$e.helper=J($e),$e.cache={}}),this.fonts=j.list;return}var ne=j.list,ue,me=ne.length,Oe=me;for(ue=0;ue<me;ue+=1){var nt=!0,tt,Ve;if(ne[ue].loaded=!1,ne[ue].monoCase=U(ne[ue].fFamily,"monospace"),ne[ue].sansCase=U(ne[ue].fFamily,"sans-serif"),!ne[ue].fPath)ne[ue].loaded=!0,Oe-=1;else if(ne[ue].fOrigin==="p"||ne[ue].origin===3){if(tt=document.querySelectorAll('style[f-forigin="p"][f-family="'+ne[ue].fFamily+'"], style[f-origin="3"][f-family="'+ne[ue].fFamily+'"]'),tt.length>0&&(nt=!1),nt){var st=_e("style");st.setAttribute("f-forigin",ne[ue].fOrigin),st.setAttribute("f-origin",ne[ue].origin),st.setAttribute("f-family",ne[ue].fFamily),st.type="text/css",st.innerText="@font-face {font-family: "+ne[ue].fFamily+"; font-style: normal; src: url('"+ne[ue].fPath+"');}",H.appendChild(st)}}else if(ne[ue].fOrigin==="g"||ne[ue].origin===1){for(tt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Ve=0;Ve<tt.length;Ve+=1)tt[Ve].href.indexOf(ne[ue].fPath)!==-1&&(nt=!1);if(nt){var ct=_e("link");ct.setAttribute("f-forigin",ne[ue].fOrigin),ct.setAttribute("f-origin",ne[ue].origin),ct.type="text/css",ct.rel="stylesheet",ct.href=ne[ue].fPath,document.body.appendChild(ct)}}else if(ne[ue].fOrigin==="t"||ne[ue].origin===2){for(tt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Ve=0;Ve<tt.length;Ve+=1)ne[ue].fPath===tt[Ve].src&&(nt=!1);if(nt){var Le=_e("link");Le.setAttribute("f-forigin",ne[ue].fOrigin),Le.setAttribute("f-origin",ne[ue].origin),Le.setAttribute("rel","stylesheet"),Le.setAttribute("href",ne[ue].fPath),H.appendChild(Le)}}ne[ue].helper=J(ne[ue],H),ne[ue].cache={},this.fonts.push(ne[ue])}Oe===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Ce(j){if(j){this.chars||(this.chars=[]);var H,ne=j.length,ue,me=this.chars.length,Oe;for(H=0;H<ne;H+=1){for(ue=0,Oe=!1;ue<me;)this.chars[ue].style===j[H].style&&this.chars[ue].fFamily===j[H].fFamily&&this.chars[ue].ch===j[H].ch&&(Oe=!0),ue+=1;Oe||(this.chars.push(j[H]),me+=1)}}}function Re(j,H,ne){for(var ue=0,me=this.chars.length;ue<me;){if(this.chars[ue].ch===j&&this.chars[ue].style===H&&this.chars[ue].fFamily===ne)return this.chars[ue];ue+=1}return(typeof j=="string"&&j.charCodeAt(0)!==13||!j)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",j,H,ne)),p}function k(j,H,ne){var ue=this.getFontByName(H),me=j.charCodeAt(0);if(!ue.cache[me+1]){var Oe=ue.helper;if(j===" "){var nt=Oe.measureText("|"+j+"|"),tt=Oe.measureText("||");ue.cache[me+1]=(nt-tt)/100}else ue.cache[me+1]=Oe.measureText(j)/100}return ue.cache[me+1]*ne}function ee(j){for(var H=0,ne=this.fonts.length;H<ne;){if(this.fonts[H].fName===j)return this.fonts[H];H+=1}return this.fonts[0]}function Y(j,H){var ne=j.toString(16)+H.toString(16);return D.indexOf(ne)!==-1}function pe(j,H){return H?j===_[0]&&H===_[1]:j===_[1]}function he(j){return v.indexOf(j)!==-1}function W(){this.isLoaded=!0}var Z=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};Z.isModifier=Y,Z.isZeroWidthJoiner=pe,Z.isCombinedCharacter=he;var L={addChars:Ce,addFonts:De,getCharData:Re,getFontByName:ee,measureText:k,checkLoadedFonts:ge,setIsLoaded:W};return Z.prototype=L,Z}();function Nn(){}Nn.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(p){this.renderableComponents.indexOf(p)===-1&&this.renderableComponents.push(p)},removeRenderableComponent:function(p){this.renderableComponents.indexOf(p)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(p),1)},prepareRenderableFrame:function(p){this.checkLayerLimits(p)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(p){this.data.ip-this.data.st<=p&&this.data.op-this.data.st>p?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var p,v=this.renderableComponents.length;for(p=0;p<v;p+=1)this.renderableComponents[p].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var An=function(){var c={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(p){return c[p]||""}}();function Pi(c,p,v){this.p=at.getProp(p,c.v,0,0,v)}function _i(c,p,v){this.p=at.getProp(p,c.v,0,0,v)}function Ks(c,p,v){this.p=at.getProp(p,c.v,1,0,v)}function ts(c,p,v){this.p=at.getProp(p,c.v,1,0,v)}function ur(c,p,v){this.p=at.getProp(p,c.v,0,0,v)}function xo(c,p,v){this.p=at.getProp(p,c.v,0,0,v)}function Of(c,p,v){this.p=at.getProp(p,c.v,0,0,v)}function Lf(){this.p={}}function Oc(c,p){var v=c.ef||[];this.effectElements=[];var D,_=v.length,B;for(D=0;D<_;D+=1)B=new ns(v[D],p),this.effectElements.push(B)}function ns(c,p){this.init(c,p)}Be([dn],ns),ns.prototype.getValue=ns.prototype.iterateDynamicProperties,ns.prototype.init=function(c,p){this.data=c,this.effectElements=[],this.initDynamicPropertyContainer(p);var v,D=this.data.ef.length,_,B=this.data.ef;for(v=0;v<D;v+=1){switch(_=null,B[v].ty){case 0:_=new Pi(B[v],p,this);break;case 1:_=new _i(B[v],p,this);break;case 2:_=new Ks(B[v],p,this);break;case 3:_=new ts(B[v],p,this);break;case 4:case 7:_=new Of(B[v],p,this);break;case 10:_=new ur(B[v],p,this);break;case 11:_=new xo(B[v],p,this);break;case 5:_=new Oc(B[v],p);break;default:_=new Lf(B[v]);break}_&&this.effectElements.push(_)}};function aa(){}aa.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var p=0,v=this.data.masksProperties.length;p<v;){if(this.data.masksProperties[p].mode!=="n"&&this.data.masksProperties[p].cl!==!1)return!0;p+=1}return!1},initExpressions:function(){},setBlendMode:function(){var p=An(this.data.bm),v=this.baseElement||this.layerElement;v.style["mix-blend-mode"]=p},initBaseData:function(p,v,D){this.globalData=v,this.comp=D,this.data=p,this.layerId=Dt(),this.data.sr||(this.data.sr=1),this.effectsManager=new Oc(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function In(){}In.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(p,v){var D,_=this.dynamicProperties.length;for(D=0;D<_;D+=1)(v||this._isParent&&this.dynamicProperties[D].propType==="transform")&&(this.dynamicProperties[D].getValue(),this.dynamicProperties[D]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(p){this.dynamicProperties.indexOf(p)===-1&&this.dynamicProperties.push(p)}};function Ia(c,p,v){this.initFrame(),this.initRenderable(),this.assetData=p.getAssetData(c.refId),this.footageData=p.imageLoader.getAsset(this.assetData),this.initBaseData(c,p,v)}Ia.prototype.prepareFrame=function(){},Be([Nn,aa,In],Ia),Ia.prototype.getBaseElement=function(){return null},Ia.prototype.renderFrame=function(){},Ia.prototype.destroy=function(){},Ia.prototype.initExpressions=function(){},Ia.prototype.getFootageData=function(){return this.footageData};function fn(c,p,v){this.initFrame(),this.initRenderable(),this.assetData=p.getAssetData(c.refId),this.initBaseData(c,p,v),this._isPlaying=!1,this._canPlay=!1;var D=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(D),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=c.tm?at.getProp(this,c.tm,0,p.frameRate,this):{_placeholder:!0},this.lv=at.getProp(this,c.au&&c.au.lv?c.au.lv:{k:[100]},1,.01,this)}fn.prototype.prepareFrame=function(c){if(this.prepareRenderableFrame(c,!0),this.prepareProperties(c,!0),this.tm._placeholder)this._currentTime=c/this.data.sr;else{var p=this.tm.v;this._currentTime=p}this._volume=this.lv.v[0];var v=this._volume*this._volumeMultiplier;this._previousVolume!==v&&(this._previousVolume=v,this.audio.volume(v))},Be([Nn,aa,In],fn),fn.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},fn.prototype.show=function(){},fn.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},fn.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},fn.prototype.resume=function(){this._canPlay=!0},fn.prototype.setRate=function(c){this.audio.rate(c)},fn.prototype.volume=function(c){this._volumeMultiplier=c,this._previousVolume=c*this._volume,this.audio.volume(this._previousVolume)},fn.prototype.getBaseElement=function(){return null},fn.prototype.destroy=function(){},fn.prototype.sourceRectAtTime=function(){},fn.prototype.initExpressions=function(){};function lr(){}lr.prototype.checkLayers=function(c){var p,v=this.layers.length,D;for(this.completeLayers=!0,p=v-1;p>=0;p-=1)this.elements[p]||(D=this.layers[p],D.ip-D.st<=c-this.layers[p].st&&D.op-D.st>c-this.layers[p].st&&this.buildItem(p)),this.completeLayers=this.elements[p]?this.completeLayers:!1;this.checkPendingElements()},lr.prototype.createItem=function(c){switch(c.ty){case 2:return this.createImage(c);case 0:return this.createComp(c);case 1:return this.createSolid(c);case 3:return this.createNull(c);case 4:return this.createShape(c);case 5:return this.createText(c);case 6:return this.createAudio(c);case 13:return this.createCamera(c);case 15:return this.createFootage(c);default:return this.createNull(c)}},lr.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},lr.prototype.createAudio=function(c){return new fn(c,this.globalData,this)},lr.prototype.createFootage=function(c){return new Ia(c,this.globalData,this)},lr.prototype.buildAllItems=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)this.buildItem(c);this.checkPendingElements()},lr.prototype.includeLayers=function(c){this.completeLayers=!1;var p,v=c.length,D,_=this.layers.length;for(p=0;p<v;p+=1)for(D=0;D<_;){if(this.layers[D].id===c[p].id){this.layers[D]=c[p];break}D+=1}},lr.prototype.setProjectInterface=function(c){this.globalData.projectInterface=c},lr.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},lr.prototype.buildElementParenting=function(c,p,v){for(var D=this.elements,_=this.layers,B=0,U=_.length;B<U;)_[B].ind==p&&(!D[B]||D[B]===!0?(this.buildItem(B),this.addPendingElement(c)):(v.push(D[B]),D[B].setAsParent(),_[B].parent!==void 0?this.buildElementParenting(c,_[B].parent,v):c.setHierarchy(v))),B+=1},lr.prototype.addPendingElement=function(c){this.pendingElements.push(c)},lr.prototype.searchExtraCompositions=function(c){var p,v=c.length;for(p=0;p<v;p+=1)if(c[p].xt){var D=this.createComp(c[p]);D.initExpressions(),this.globalData.projectInterface.registerComposition(D)}},lr.prototype.getElementById=function(c){var p,v=this.elements.length;for(p=0;p<v;p+=1)if(this.elements[p].data.ind===c)return this.elements[p];return null},lr.prototype.getElementByPath=function(c){var p=c.shift(),v;if(typeof p=="number")v=this.elements[p];else{var D,_=this.elements.length;for(D=0;D<_;D+=1)if(this.elements[D].data.nm===p){v=this.elements[D];break}}return c.length===0?v:v.getElementByPath(c)},lr.prototype.setupGlobalData=function(c,p){this.globalData.fontManager=new sr,this.globalData.fontManager.addChars(c.chars),this.globalData.fontManager.addFonts(c.fonts,p),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=c.fr,this.globalData.nm=c.nm,this.globalData.compSize={w:c.w,h:c.h}};function Do(){}Do.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?Jo.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Rn},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var p,v=this.finalTransform.mat,D=0,_=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;D<_;){if(this.hierarchy[D].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}D+=1}if(this.finalTransform._matMdf)for(p=this.finalTransform.mProp.v.props,v.cloneFromProps(p),D=0;D<_;D+=1)p=this.hierarchy[D].finalTransform.mProp.v.props,v.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15])}},globalToLocal:function(p){var v=[];v.push(this.finalTransform);for(var D=!0,_=this.comp;D;)_.finalTransform?(_.data.hasMask&&v.splice(0,0,_.finalTransform),_=_.comp):D=!1;var B,U=v.length,ge;for(B=0;B<U;B+=1)ge=v[B].mat.applyToPointArray(0,0,0),p=[p[0]-ge[0],p[1]-ge[1],0];return p},mHelper:new Rn};function Er(c,p,v){this.data=c,this.element=p,this.globalData=v,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var D=this.globalData.defs,_,B=this.masksProperties?this.masksProperties.length:0;this.viewData=qe(B),this.solidPath="";var U,ge=this.masksProperties,J=0,De=[],Ce,Re,k=Dt(),ee,Y,pe,he,W="clipPath",Z="clip-path";for(_=0;_<B;_+=1)if((ge[_].mode!=="a"&&ge[_].mode!=="n"||ge[_].inv||ge[_].o.k!==100||ge[_].o.x)&&(W="mask",Z="mask"),(ge[_].mode==="s"||ge[_].mode==="i")&&J===0?(ee=bt("rect"),ee.setAttribute("fill","#ffffff"),ee.setAttribute("width",this.element.comp.data.w||0),ee.setAttribute("height",this.element.comp.data.h||0),De.push(ee)):ee=null,U=bt("path"),ge[_].mode==="n")this.viewData[_]={op:at.getProp(this.element,ge[_].o,0,.01,this.element),prop:fi.getShapeProp(this.element,ge[_],3),elem:U,lastPath:""},D.appendChild(U);else{J+=1,U.setAttribute("fill",ge[_].mode==="s"?"#000000":"#ffffff"),U.setAttribute("clip-rule","nonzero");var L;if(ge[_].x.k!==0?(W="mask",Z="mask",he=at.getProp(this.element,ge[_].x,0,null,this.element),L=Dt(),Y=bt("filter"),Y.setAttribute("id",L),pe=bt("feMorphology"),pe.setAttribute("operator","erode"),pe.setAttribute("in","SourceGraphic"),pe.setAttribute("radius","0"),Y.appendChild(pe),D.appendChild(Y),U.setAttribute("stroke",ge[_].mode==="s"?"#000000":"#ffffff")):(pe=null,he=null),this.storedData[_]={elem:U,x:he,expan:pe,lastPath:"",lastOperator:"",filterId:L,lastRadius:0},ge[_].mode==="i"){Re=De.length;var j=bt("g");for(Ce=0;Ce<Re;Ce+=1)j.appendChild(De[Ce]);var H=bt("mask");H.setAttribute("mask-type","alpha"),H.setAttribute("id",k+"_"+J),H.appendChild(U),D.appendChild(H),j.setAttribute("mask","url("+Se()+"#"+k+"_"+J+")"),De.length=0,De.push(j)}else De.push(U);ge[_].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[_]={elem:U,lastPath:"",op:at.getProp(this.element,ge[_].o,0,.01,this.element),prop:fi.getShapeProp(this.element,ge[_],3),invRect:ee},this.viewData[_].prop.k||this.drawPath(ge[_],this.viewData[_].prop.v,this.viewData[_])}for(this.maskElement=bt(W),B=De.length,_=0;_<B;_+=1)this.maskElement.appendChild(De[_]);J>0&&(this.maskElement.setAttribute("id",k),this.element.maskedElement.setAttribute(Z,"url("+Se()+"#"+k+")"),D.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Er.prototype.getMaskProperty=function(c){return this.viewData[c].prop},Er.prototype.renderFrame=function(c){var p=this.element.finalTransform.mat,v,D=this.masksProperties.length;for(v=0;v<D;v+=1)if((this.viewData[v].prop._mdf||c)&&this.drawPath(this.masksProperties[v],this.viewData[v].prop.v,this.viewData[v]),(this.viewData[v].op._mdf||c)&&this.viewData[v].elem.setAttribute("fill-opacity",this.viewData[v].op.v),this.masksProperties[v].mode!=="n"&&(this.viewData[v].invRect&&(this.element.finalTransform.mProp._mdf||c)&&this.viewData[v].invRect.setAttribute("transform",p.getInverseMatrix().to2dCSS()),this.storedData[v].x&&(this.storedData[v].x._mdf||c))){var _=this.storedData[v].expan;this.storedData[v].x.v<0?(this.storedData[v].lastOperator!=="erode"&&(this.storedData[v].lastOperator="erode",this.storedData[v].elem.setAttribute("filter","url("+Se()+"#"+this.storedData[v].filterId+")")),_.setAttribute("radius",-this.storedData[v].x.v)):(this.storedData[v].lastOperator!=="dilate"&&(this.storedData[v].lastOperator="dilate",this.storedData[v].elem.setAttribute("filter",null)),this.storedData[v].elem.setAttribute("stroke-width",this.storedData[v].x.v*2))}},Er.prototype.getMaskelement=function(){return this.maskElement},Er.prototype.createLayerSolidPath=function(){var c="M0,0 ";return c+=" h"+this.globalData.compSize.w,c+=" v"+this.globalData.compSize.h,c+=" h-"+this.globalData.compSize.w,c+=" v-"+this.globalData.compSize.h+" ",c},Er.prototype.drawPath=function(c,p,v){var D=" M"+p.v[0][0]+","+p.v[0][1],_,B;for(B=p._length,_=1;_<B;_+=1)D+=" C"+p.o[_-1][0]+","+p.o[_-1][1]+" "+p.i[_][0]+","+p.i[_][1]+" "+p.v[_][0]+","+p.v[_][1];if(p.c&&B>1&&(D+=" C"+p.o[_-1][0]+","+p.o[_-1][1]+" "+p.i[0][0]+","+p.i[0][1]+" "+p.v[0][0]+","+p.v[0][1]),v.lastPath!==D){var U="";v.elem&&(p.c&&(U=c.inv?this.solidPath+D:D),v.elem.setAttribute("d",U)),v.lastPath=D}},Er.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Oa=function(){var c={};c.createFilter=p,c.createAlphaToLuminanceFilter=v;function p(D,_){var B=bt("filter");return B.setAttribute("id",D),_!==!0&&(B.setAttribute("filterUnits","objectBoundingBox"),B.setAttribute("x","0%"),B.setAttribute("y","0%"),B.setAttribute("width","100%"),B.setAttribute("height","100%")),B}function v(){var D=bt("feColorMatrix");return D.setAttribute("type","matrix"),D.setAttribute("color-interpolation-filters","sRGB"),D.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),D}return c}(),el=function(){var c={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(c.maskType=!1),/firefox/i.test(navigator.userAgent)&&(c.svgLumaHidden=!1),c}(),un={},oa="filter_result_";function tl(c){var p,v="SourceGraphic",D=c.data.ef?c.data.ef.length:0,_=Dt(),B=Oa.createFilter(_,!0),U=0;this.filters=[];var ge;for(p=0;p<D;p+=1){ge=null;var J=c.data.ef[p].ty;if(un[J]){var De=un[J].effect;ge=new De(B,c.effectsManager.effectElements[p],c,oa+U,v),v=oa+U,un[J].countsAsEffect&&(U+=1)}ge&&this.filters.push(ge)}U&&(c.globalData.defs.appendChild(B),c.layerElement.setAttribute("filter","url("+Se()+"#"+_+")")),this.filters.length&&c.addRenderableComponent(this)}tl.prototype.renderFrame=function(c){var p,v=this.filters.length;for(p=0;p<v;p+=1)this.filters[p].renderFrame(c)};function zs(){}zs.prototype={initRendererElement:function(){this.layerElement=bt("g")},createContainerElements:function(){this.matteElement=bt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var p=null;if(this.data.td){this.matteMasks={};var v=bt("g");v.setAttribute("id",this.layerId),v.appendChild(this.layerElement),p=v,this.globalData.defs.appendChild(v)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),p=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var D=bt("clipPath"),_=bt("path");_.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var B=Dt();if(D.setAttribute("id",B),D.appendChild(_),this.globalData.defs.appendChild(D),this.checkMasks()){var U=bt("g");U.setAttribute("clip-path","url("+Se()+"#"+B+")"),U.appendChild(this.layerElement),this.transformedElement=U,p?p.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+Se()+"#"+B+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Er(this.data,this,this.globalData),this.renderableEffectsManager=new tl(this)},getMatte:function(p){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[p]){var v=this.layerId+"_"+p,D,_,B,U;if(p===1||p===3){var ge=bt("mask");ge.setAttribute("id",v),ge.setAttribute("mask-type",p===3?"luminance":"alpha"),B=bt("use"),B.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),ge.appendChild(B),this.globalData.defs.appendChild(ge),!el.maskType&&p===1&&(ge.setAttribute("mask-type","luminance"),D=Dt(),_=Oa.createFilter(D),this.globalData.defs.appendChild(_),_.appendChild(Oa.createAlphaToLuminanceFilter()),U=bt("g"),U.appendChild(B),ge.appendChild(U),U.setAttribute("filter","url("+Se()+"#"+D+")"))}else if(p===2){var J=bt("mask");J.setAttribute("id",v),J.setAttribute("mask-type","alpha");var De=bt("g");J.appendChild(De),D=Dt(),_=Oa.createFilter(D);var Ce=bt("feComponentTransfer");Ce.setAttribute("in","SourceGraphic"),_.appendChild(Ce);var Re=bt("feFuncA");Re.setAttribute("type","table"),Re.setAttribute("tableValues","1.0 0.0"),Ce.appendChild(Re),this.globalData.defs.appendChild(_);var k=bt("rect");k.setAttribute("width",this.comp.data.w),k.setAttribute("height",this.comp.data.h),k.setAttribute("x","0"),k.setAttribute("y","0"),k.setAttribute("fill","#ffffff"),k.setAttribute("opacity","0"),De.setAttribute("filter","url("+Se()+"#"+D+")"),De.appendChild(k),B=bt("use"),B.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),De.appendChild(B),el.maskType||(J.setAttribute("mask-type","luminance"),_.appendChild(Oa.createAlphaToLuminanceFilter()),U=bt("g"),De.appendChild(k),U.appendChild(this.layerElement),De.appendChild(U)),this.globalData.defs.appendChild(J)}this.matteMasks[p]=v}return this.matteMasks[p]},setMatte:function(p){this.matteElement&&this.matteElement.setAttribute("mask","url("+Se()+"#"+p+")")}};function La(){}La.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(p){this.hierarchy=p},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function qs(){}(function(){var c={initElement:function(v,D,_){this.initFrame(),this.initBaseData(v,D,_),this.initTransform(v,D,_),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var v=this.baseElement||this.layerElement;v.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var v=this.baseElement||this.layerElement;v.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(v){this._mdf=!1,this.prepareRenderableFrame(v),this.prepareProperties(v,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};Be([Nn,Ge(c)],qs)})();function Us(c,p,v){this.assetData=p.getAssetData(c.refId),this.initElement(c,p,v),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}Be([aa,Do,zs,La,In,qs],Us),Us.prototype.createContent=function(){var c=this.globalData.getAssetsPath(this.assetData);this.innerElem=bt("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",c),this.layerElement.appendChild(this.innerElem)},Us.prototype.sourceRectAtTime=function(){return this.sourceRect};function qm(c,p){this.elem=c,this.pos=p}function Lc(){}Lc.prototype={addShapeToModifiers:function(p){var v,D=this.shapeModifiers.length;for(v=0;v<D;v+=1)this.shapeModifiers[v].addShape(p)},isShapeInAnimatedModifiers:function(p){for(var v=0,D=this.shapeModifiers.length;v<D;)if(this.shapeModifiers[v].isAnimatedWithShape(p))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var p,v=this.shapes.length;for(p=0;p<v;p+=1)this.shapes[p].sh.reset();v=this.shapeModifiers.length;var D;for(p=v-1;p>=0&&(D=this.shapeModifiers[p].processShapes(this._isFirstFrame),!D);p-=1);}},searchProcessedElement:function(p){for(var v=this.processedElements,D=0,_=v.length;D<_;){if(v[D].elem===p)return v[D].pos;D+=1}return 0},addProcessedElement:function(p,v){for(var D=this.processedElements,_=D.length;_;)if(_-=1,D[_].elem===p){D[_].pos=v;return}D.push(new qm(p,v))},prepareFrame:function(p){this.prepareRenderableFrame(p),this.prepareProperties(p,this.isInRange)}};var Ws={1:"butt",2:"round",3:"square"},$o={1:"miter",2:"round",3:"bevel"};function Vf(c,p,v){this.caches=[],this.styles=[],this.transformers=c,this.lStr="",this.sh=v,this.lvl=p,this._isAnimated=!!v.k;for(var D=0,_=c.length;D<_;){if(c[D].mProps.dynamicProperties.length){this._isAnimated=!0;break}D+=1}}Vf.prototype.setAsAnimated=function(){this._isAnimated=!0};function Vc(c,p){this.data=c,this.type=c.ty,this.d="",this.lvl=p,this._mdf=!1,this.closed=c.hd===!0,this.pElem=bt("path"),this.msElem=null}Vc.prototype.reset=function(){this.d="",this._mdf=!1};function Hs(c,p,v,D){this.elem=c,this.frameId=-1,this.dataProps=qe(p.length),this.renderer=v,this.k=!1,this.dashStr="",this.dashArray=Ne("float32",p.length?p.length-1:0),this.dashoffset=Ne("float32",1),this.initDynamicPropertyContainer(D);var _,B=p.length||0,U;for(_=0;_<B;_+=1)U=at.getProp(c,p[_].v,0,0,this),this.k=U.k||this.k,this.dataProps[_]={n:p[_].n,p:U};this.k||this.getValue(!0),this._isAnimated=this.k}Hs.prototype.getValue=function(c){if(!(this.elem.globalData.frameId===this.frameId&&!c)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||c,this._mdf)){var p=0,v=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),p=0;p<v;p+=1)this.dataProps[p].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[p].p.v:this.dashArray[p]=this.dataProps[p].p.v:this.dashoffset[0]=this.dataProps[p].p.v}},Be([dn],Hs);function nl(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(c,p.o,0,.01,this),this.w=at.getProp(c,p.w,0,null,this),this.d=new Hs(c,p.d||{},"svg",this),this.c=at.getProp(c,p.c,1,255,this),this.style=v,this._isAnimated=!!this._isAnimated}Be([dn],nl);function rl(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(c,p.o,0,.01,this),this.c=at.getProp(c,p.c,1,255,this),this.style=v}Be([dn],rl);function Nc(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.style=v}Be([dn],Nc);function Gs(c,p,v){this.data=p,this.c=Ne("uint8c",p.p*4);var D=p.k.k[0].s?p.k.k[0].s.length-p.p*4:p.k.k.length-p.p*4;this.o=Ne("float32",D),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=D,this.initDynamicPropertyContainer(v),this.prop=at.getProp(c,p.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Gs.prototype.comparePoints=function(c,p){for(var v=0,D=this.o.length/2,_;v<D;){if(_=Math.abs(c[v*4]-c[p*4+v*2]),_>.01)return!1;v+=1}return!0},Gs.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var c=0,p=this.data.k.k.length;c<p;){if(!this.comparePoints(this.data.k.k[c].s,this.data.p))return!1;c+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Gs.prototype.getValue=function(c){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||c){var p,v=this.data.p*4,D,_;for(p=0;p<v;p+=1)D=p%4===0?100:255,_=Math.round(this.prop.v[p]*D),this.c[p]!==_&&(this.c[p]=_,this._cmdf=!c);if(this.o.length)for(v=this.prop.v.length,p=this.data.p*4;p<v;p+=1)D=p%2===0?100:1,_=p%2===0?Math.round(this.prop.v[p]*100):this.prop.v[p],this.o[p-this.data.p*4]!==_&&(this.o[p-this.data.p*4]=_,this._omdf=!c);this._mdf=!c}},Be([dn],Gs);function Va(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.initGradientData(c,p,v)}Va.prototype.initGradientData=function(c,p,v){this.o=at.getProp(c,p.o,0,.01,this),this.s=at.getProp(c,p.s,1,null,this),this.e=at.getProp(c,p.e,1,null,this),this.h=at.getProp(c,p.h||{k:0},0,.01,this),this.a=at.getProp(c,p.a||{k:0},0,Jt,this),this.g=new Gs(c,p.g,this),this.style=v,this.stops=[],this.setGradientData(v.pElem,p),this.setGradientOpacity(p,v),this._isAnimated=!!this._isAnimated},Va.prototype.setGradientData=function(c,p){var v=Dt(),D=bt(p.t===1?"linearGradient":"radialGradient");D.setAttribute("id",v),D.setAttribute("spreadMethod","pad"),D.setAttribute("gradientUnits","userSpaceOnUse");var _=[],B,U,ge;for(ge=p.g.p*4,U=0;U<ge;U+=4)B=bt("stop"),D.appendChild(B),_.push(B);c.setAttribute(p.ty==="gf"?"fill":"stroke","url("+Se()+"#"+v+")"),this.gf=D,this.cst=_},Va.prototype.setGradientOpacity=function(c,p){if(this.g._hasOpacity&&!this.g._collapsable){var v,D,_,B=bt("mask"),U=bt("path");B.appendChild(U);var ge=Dt(),J=Dt();B.setAttribute("id",J);var De=bt(c.t===1?"linearGradient":"radialGradient");De.setAttribute("id",ge),De.setAttribute("spreadMethod","pad"),De.setAttribute("gradientUnits","userSpaceOnUse"),_=c.g.k.k[0].s?c.g.k.k[0].s.length:c.g.k.k.length;var Ce=this.stops;for(D=c.g.p*4;D<_;D+=2)v=bt("stop"),v.setAttribute("stop-color","rgb(255,255,255)"),De.appendChild(v),Ce.push(v);U.setAttribute(c.ty==="gf"?"fill":"stroke","url("+Se()+"#"+ge+")"),c.ty==="gs"&&(U.setAttribute("stroke-linecap",Ws[c.lc||2]),U.setAttribute("stroke-linejoin",$o[c.lj||2]),c.lj===1&&U.setAttribute("stroke-miterlimit",c.ml)),this.of=De,this.ms=B,this.ost=Ce,this.maskId=J,p.msElem=U}},Be([dn],Va);function il(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.w=at.getProp(c,p.w,0,null,this),this.d=new Hs(c,p.d||{},"svg",this),this.initGradientData(c,p,v),this._isAnimated=!!this._isAnimated}Be([Va,dn],il);function Um(){this.it=[],this.prevViewData=[],this.gr=bt("g")}function Nf(c,p,v){this.transform={mProps:c,op:p,container:v},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Cr=function(p,v,D,_){if(v===0)return"";var B=p.o,U=p.i,ge=p.v,J,De=" M"+_.applyToPointStringified(ge[0][0],ge[0][1]);for(J=1;J<v;J+=1)De+=" C"+_.applyToPointStringified(B[J-1][0],B[J-1][1])+" "+_.applyToPointStringified(U[J][0],U[J][1])+" "+_.applyToPointStringified(ge[J][0],ge[J][1]);return D&&v&&(De+=" C"+_.applyToPointStringified(B[J-1][0],B[J-1][1])+" "+_.applyToPointStringified(U[0][0],U[0][1])+" "+_.applyToPointStringified(ge[0][0],ge[0][1]),De+="z"),De},jc=function(){var c=new Rn,p=new Rn,v={createRenderFunction:D};function D(Re){switch(Re.ty){case"fl":return ge;case"gf":return De;case"gs":return J;case"st":return Ce;case"sh":case"el":case"rc":case"sr":return U;case"tr":return _;case"no":return B;default:return null}}function _(Re,k,ee){(ee||k.transform.op._mdf)&&k.transform.container.setAttribute("opacity",k.transform.op.v),(ee||k.transform.mProps._mdf)&&k.transform.container.setAttribute("transform",k.transform.mProps.v.to2dCSS())}function B(){}function U(Re,k,ee){var Y,pe,he,W,Z,L,j=k.styles.length,H=k.lvl,ne,ue,me,Oe,nt;for(L=0;L<j;L+=1){if(W=k.sh._mdf||ee,k.styles[L].lvl<H){for(ue=p.reset(),Oe=H-k.styles[L].lvl,nt=k.transformers.length-1;!W&&Oe>0;)W=k.transformers[nt].mProps._mdf||W,Oe-=1,nt-=1;if(W)for(Oe=H-k.styles[L].lvl,nt=k.transformers.length-1;Oe>0;)me=k.transformers[nt].mProps.v.props,ue.transform(me[0],me[1],me[2],me[3],me[4],me[5],me[6],me[7],me[8],me[9],me[10],me[11],me[12],me[13],me[14],me[15]),Oe-=1,nt-=1}else ue=c;if(ne=k.sh.paths,pe=ne._length,W){for(he="",Y=0;Y<pe;Y+=1)Z=ne.shapes[Y],Z&&Z._length&&(he+=Cr(Z,Z._length,Z.c,ue));k.caches[L]=he}else he=k.caches[L];k.styles[L].d+=Re.hd===!0?"":he,k.styles[L]._mdf=W||k.styles[L]._mdf}}function ge(Re,k,ee){var Y=k.style;(k.c._mdf||ee)&&Y.pElem.setAttribute("fill","rgb("+xt(k.c.v[0])+","+xt(k.c.v[1])+","+xt(k.c.v[2])+")"),(k.o._mdf||ee)&&Y.pElem.setAttribute("fill-opacity",k.o.v)}function J(Re,k,ee){De(Re,k,ee),Ce(Re,k,ee)}function De(Re,k,ee){var Y=k.gf,pe=k.g._hasOpacity,he=k.s.v,W=k.e.v;if(k.o._mdf||ee){var Z=Re.ty==="gf"?"fill-opacity":"stroke-opacity";k.style.pElem.setAttribute(Z,k.o.v)}if(k.s._mdf||ee){var L=Re.t===1?"x1":"cx",j=L==="x1"?"y1":"cy";Y.setAttribute(L,he[0]),Y.setAttribute(j,he[1]),pe&&!k.g._collapsable&&(k.of.setAttribute(L,he[0]),k.of.setAttribute(j,he[1]))}var H,ne,ue,me;if(k.g._cmdf||ee){H=k.cst;var Oe=k.g.c;for(ue=H.length,ne=0;ne<ue;ne+=1)me=H[ne],me.setAttribute("offset",Oe[ne*4]+"%"),me.setAttribute("stop-color","rgb("+Oe[ne*4+1]+","+Oe[ne*4+2]+","+Oe[ne*4+3]+")")}if(pe&&(k.g._omdf||ee)){var nt=k.g.o;for(k.g._collapsable?H=k.cst:H=k.ost,ue=H.length,ne=0;ne<ue;ne+=1)me=H[ne],k.g._collapsable||me.setAttribute("offset",nt[ne*2]+"%"),me.setAttribute("stop-opacity",nt[ne*2+1])}if(Re.t===1)(k.e._mdf||ee)&&(Y.setAttribute("x2",W[0]),Y.setAttribute("y2",W[1]),pe&&!k.g._collapsable&&(k.of.setAttribute("x2",W[0]),k.of.setAttribute("y2",W[1])));else{var tt;if((k.s._mdf||k.e._mdf||ee)&&(tt=Math.sqrt(Math.pow(he[0]-W[0],2)+Math.pow(he[1]-W[1],2)),Y.setAttribute("r",tt),pe&&!k.g._collapsable&&k.of.setAttribute("r",tt)),k.e._mdf||k.h._mdf||k.a._mdf||ee){tt||(tt=Math.sqrt(Math.pow(he[0]-W[0],2)+Math.pow(he[1]-W[1],2)));var Ve=Math.atan2(W[1]-he[1],W[0]-he[0]),st=k.h.v;st>=1?st=.99:st<=-1&&(st=-.99);var ct=tt*st,Le=Math.cos(Ve+k.a.v)*ct+he[0],$e=Math.sin(Ve+k.a.v)*ct+he[1];Y.setAttribute("fx",Le),Y.setAttribute("fy",$e),pe&&!k.g._collapsable&&(k.of.setAttribute("fx",Le),k.of.setAttribute("fy",$e))}}}function Ce(Re,k,ee){var Y=k.style,pe=k.d;pe&&(pe._mdf||ee)&&pe.dashStr&&(Y.pElem.setAttribute("stroke-dasharray",pe.dashStr),Y.pElem.setAttribute("stroke-dashoffset",pe.dashoffset[0])),k.c&&(k.c._mdf||ee)&&Y.pElem.setAttribute("stroke","rgb("+xt(k.c.v[0])+","+xt(k.c.v[1])+","+xt(k.c.v[2])+")"),(k.o._mdf||ee)&&Y.pElem.setAttribute("stroke-opacity",k.o.v),(k.w._mdf||ee)&&(Y.pElem.setAttribute("stroke-width",k.w.v),Y.msElem&&Y.msElem.setAttribute("stroke-width",k.w.v))}return v}();function mn(c,p,v){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(c,p,v),this.prevViewData=[]}Be([aa,Do,zs,Lc,La,In,qs],mn),mn.prototype.initSecondaryElement=function(){},mn.prototype.identityMatrix=new Rn,mn.prototype.buildExpressionInterface=function(){},mn.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},mn.prototype.filterUniqueShapes=function(){var c,p=this.shapes.length,v,D,_=this.stylesList.length,B,U=[],ge=!1;for(D=0;D<_;D+=1){for(B=this.stylesList[D],ge=!1,U.length=0,c=0;c<p;c+=1)v=this.shapes[c],v.styles.indexOf(B)!==-1&&(U.push(v),ge=v._isAnimated||ge);U.length>1&&ge&&this.setShapesAsAnimated(U)}},mn.prototype.setShapesAsAnimated=function(c){var p,v=c.length;for(p=0;p<v;p+=1)c[p].setAsAnimated()},mn.prototype.createStyleElement=function(c,p){var v,D=new Vc(c,p),_=D.pElem;if(c.ty==="st")v=new nl(this,c,D);else if(c.ty==="fl")v=new rl(this,c,D);else if(c.ty==="gf"||c.ty==="gs"){var B=c.ty==="gf"?Va:il;v=new B(this,c,D),this.globalData.defs.appendChild(v.gf),v.maskId&&(this.globalData.defs.appendChild(v.ms),this.globalData.defs.appendChild(v.of),_.setAttribute("mask","url("+Se()+"#"+v.maskId+")"))}else c.ty==="no"&&(v=new Nc(this,c,D));return(c.ty==="st"||c.ty==="gs")&&(_.setAttribute("stroke-linecap",Ws[c.lc||2]),_.setAttribute("stroke-linejoin",$o[c.lj||2]),_.setAttribute("fill-opacity","0"),c.lj===1&&_.setAttribute("stroke-miterlimit",c.ml)),c.r===2&&_.setAttribute("fill-rule","evenodd"),c.ln&&_.setAttribute("id",c.ln),c.cl&&_.setAttribute("class",c.cl),c.bm&&(_.style["mix-blend-mode"]=An(c.bm)),this.stylesList.push(D),this.addToAnimatedContents(c,v),v},mn.prototype.createGroupElement=function(c){var p=new Um;return c.ln&&p.gr.setAttribute("id",c.ln),c.cl&&p.gr.setAttribute("class",c.cl),c.bm&&(p.gr.style["mix-blend-mode"]=An(c.bm)),p},mn.prototype.createTransformElement=function(c,p){var v=Jo.getTransformProperty(this,c,this),D=new Nf(v,v.o,p);return this.addToAnimatedContents(c,D),D},mn.prototype.createShapeElement=function(c,p,v){var D=4;c.ty==="rc"?D=5:c.ty==="el"?D=6:c.ty==="sr"&&(D=7);var _=fi.getShapeProp(this,c,D,this),B=new Vf(p,v,_);return this.shapes.push(B),this.addShapeToModifiers(B),this.addToAnimatedContents(c,B),B},mn.prototype.addToAnimatedContents=function(c,p){for(var v=0,D=this.animatedContents.length;v<D;){if(this.animatedContents[v].element===p)return;v+=1}this.animatedContents.push({fn:jc.createRenderFunction(c),element:p,data:c})},mn.prototype.setElementStyles=function(c){var p=c.styles,v,D=this.stylesList.length;for(v=0;v<D;v+=1)this.stylesList[v].closed||p.push(this.stylesList[v])},mn.prototype.reloadShapes=function(){this._isFirstFrame=!0;var c,p=this.itemsData.length;for(c=0;c<p;c+=1)this.prevViewData[c]=this.itemsData[c];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),p=this.dynamicProperties.length,c=0;c<p;c+=1)this.dynamicProperties[c].getValue();this.renderModifiers()},mn.prototype.searchShapes=function(c,p,v,D,_,B,U){var ge=[].concat(B),J,De=c.length-1,Ce,Re,k=[],ee=[],Y,pe,he;for(J=De;J>=0;J-=1){if(he=this.searchProcessedElement(c[J]),he?p[J]=v[he-1]:c[J]._render=U,c[J].ty==="fl"||c[J].ty==="st"||c[J].ty==="gf"||c[J].ty==="gs"||c[J].ty==="no")he?p[J].style.closed=!1:p[J]=this.createStyleElement(c[J],_),c[J]._render&&p[J].style.pElem.parentNode!==D&&D.appendChild(p[J].style.pElem),k.push(p[J].style);else if(c[J].ty==="gr"){if(!he)p[J]=this.createGroupElement(c[J]);else for(Re=p[J].it.length,Ce=0;Ce<Re;Ce+=1)p[J].prevViewData[Ce]=p[J].it[Ce];this.searchShapes(c[J].it,p[J].it,p[J].prevViewData,p[J].gr,_+1,ge,U),c[J]._render&&p[J].gr.parentNode!==D&&D.appendChild(p[J].gr)}else c[J].ty==="tr"?(he||(p[J]=this.createTransformElement(c[J],D)),Y=p[J].transform,ge.push(Y)):c[J].ty==="sh"||c[J].ty==="rc"||c[J].ty==="el"||c[J].ty==="sr"?(he||(p[J]=this.createShapeElement(c[J],ge,_)),this.setElementStyles(p[J])):c[J].ty==="tm"||c[J].ty==="rd"||c[J].ty==="ms"||c[J].ty==="pb"||c[J].ty==="zz"||c[J].ty==="op"?(he?(pe=p[J],pe.closed=!1):(pe=Fr.getModifier(c[J].ty),pe.init(this,c[J]),p[J]=pe,this.shapeModifiers.push(pe)),ee.push(pe)):c[J].ty==="rp"&&(he?(pe=p[J],pe.closed=!0):(pe=Fr.getModifier(c[J].ty),p[J]=pe,pe.init(this,c,J,p),this.shapeModifiers.push(pe),U=!1),ee.push(pe));this.addProcessedElement(c[J],J+1)}for(De=k.length,J=0;J<De;J+=1)k[J].closed=!0;for(De=ee.length,J=0;J<De;J+=1)ee[J].closed=!0},mn.prototype.renderInnerContent=function(){this.renderModifiers();var c,p=this.stylesList.length;for(c=0;c<p;c+=1)this.stylesList[c].reset();for(this.renderShape(),c=0;c<p;c+=1)(this.stylesList[c]._mdf||this._isFirstFrame)&&(this.stylesList[c].msElem&&(this.stylesList[c].msElem.setAttribute("d",this.stylesList[c].d),this.stylesList[c].d="M0 0"+this.stylesList[c].d),this.stylesList[c].pElem.setAttribute("d",this.stylesList[c].d||"M0 0"))},mn.prototype.renderShape=function(){var c,p=this.animatedContents.length,v;for(c=0;c<p;c+=1)v=this.animatedContents[c],(this._isFirstFrame||v.element._isAnimated)&&v.data!==!0&&v.fn(v.data,v.element,this._isFirstFrame)},mn.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function al(c,p,v,D,_,B){this.o=c,this.sw=p,this.sc=v,this.fc=D,this.m=_,this.p=B,this._mdf={o:!0,sw:!!p,sc:!!v,fc:!!D,m:!0,p:!0}}al.prototype.update=function(c,p,v,D,_,B){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var U=!1;return this.o!==c&&(this.o=c,this._mdf.o=!0,U=!0),this.sw!==p&&(this.sw=p,this._mdf.sw=!0,U=!0),this.sc!==v&&(this.sc=v,this._mdf.sc=!0,U=!0),this.fc!==D&&(this.fc=D,this._mdf.fc=!0,U=!0),this.m!==_&&(this.m=_,this._mdf.m=!0,U=!0),B.length&&(this.p[0]!==B[0]||this.p[1]!==B[1]||this.p[4]!==B[4]||this.p[5]!==B[5]||this.p[12]!==B[12]||this.p[13]!==B[13])&&(this.p=B,this._mdf.p=!0,U=!0),U};function cr(c,p){this._frameId=fe,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=p,this.elem=c,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}cr.prototype.defaultBoxWidth=[0,0],cr.prototype.copyData=function(c,p){for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(c[v]=p[v]);return c},cr.prototype.setCurrentData=function(c){c.__complete||this.completeTextData(c),this.currentData=c,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},cr.prototype.searchProperty=function(){return this.searchKeyframes()},cr.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},cr.prototype.addEffect=function(c){this.effectsSequence.push(c),this.elem.addDynamicProperty(this)},cr.prototype.getValue=function(c){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!c)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var p=this.currentData,v=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var D,_=this.effectsSequence.length,B=c||this.data.d.k[this.keysIndex].s;for(D=0;D<_;D+=1)v!==this.keysIndex?B=this.effectsSequence[D](B,B.t):B=this.effectsSequence[D](this.currentData,B.t);p!==B&&this.setCurrentData(B),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},cr.prototype.getKeyframeValue=function(){for(var c=this.data.d.k,p=this.elem.comp.renderedFrame,v=0,D=c.length;v<=D-1&&!(v===D-1||c[v+1].t>p);)v+=1;return this.keysIndex!==v&&(this.keysIndex=v),this.data.d.k[this.keysIndex].s},cr.prototype.buildFinalText=function(c){for(var p=[],v=0,D=c.length,_,B,U=!1;v<D;)_=c.charCodeAt(v),sr.isCombinedCharacter(_)?p[p.length-1]+=c.charAt(v):_>=55296&&_<=56319?(B=c.charCodeAt(v+1),B>=56320&&B<=57343?(U||sr.isModifier(_,B)?(p[p.length-1]+=c.substr(v,2),U=!1):p.push(c.substr(v,2)),v+=1):p.push(c.charAt(v))):_>56319?(B=c.charCodeAt(v+1),sr.isZeroWidthJoiner(_,B)?(U=!0,p[p.length-1]+=c.substr(v,2),v+=1):p.push(c.charAt(v))):sr.isZeroWidthJoiner(_)?(p[p.length-1]+=c.charAt(v),U=!0):p.push(c.charAt(v)),v+=1;return p},cr.prototype.completeTextData=function(c){c.__complete=!0;var p=this.elem.globalData.fontManager,v=this.data,D=[],_,B,U,ge=0,J,De=v.m.g,Ce=0,Re=0,k=0,ee=[],Y=0,pe=0,he,W,Z=p.getFontByName(c.f),L,j=0,H=rr(Z);c.fWeight=H.weight,c.fStyle=H.style,c.finalSize=c.s,c.finalText=this.buildFinalText(c.t),B=c.finalText.length,c.finalLineHeight=c.lh;var ne=c.tr/1e3*c.finalSize,ue;if(c.sz)for(var me=!0,Oe=c.sz[0],nt=c.sz[1],tt,Ve;me;){Ve=this.buildFinalText(c.t),tt=0,Y=0,B=Ve.length,ne=c.tr/1e3*c.finalSize;var st=-1;for(_=0;_<B;_+=1)ue=Ve[_].charCodeAt(0),U=!1,Ve[_]===" "?st=_:(ue===13||ue===3)&&(Y=0,U=!0,tt+=c.finalLineHeight||c.finalSize*1.2),p.chars?(L=p.getCharData(Ve[_],Z.fStyle,Z.fFamily),j=U?0:L.w*c.finalSize/100):j=p.measureText(Ve[_],c.f,c.finalSize),Y+j>Oe&&Ve[_]!==" "?(st===-1?B+=1:_=st,tt+=c.finalLineHeight||c.finalSize*1.2,Ve.splice(_,st===_?1:0,"\r"),st=-1,Y=0):(Y+=j,Y+=ne);tt+=Z.ascent*c.finalSize/100,this.canResize&&c.finalSize>this.minimumFontSize&&nt<tt?(c.finalSize-=1,c.finalLineHeight=c.finalSize*c.lh/c.s):(c.finalText=Ve,B=c.finalText.length,me=!1)}Y=-ne,j=0;var ct=0,Le;for(_=0;_<B;_+=1)if(U=!1,Le=c.finalText[_],ue=Le.charCodeAt(0),ue===13||ue===3?(ct=0,ee.push(Y),pe=Y>pe?Y:pe,Y=-2*ne,J="",U=!0,k+=1):J=Le,p.chars?(L=p.getCharData(Le,Z.fStyle,p.getFontByName(c.f).fFamily),j=U?0:L.w*c.finalSize/100):j=p.measureText(J,c.f,c.finalSize),Le===" "?ct+=j+ne:(Y+=j+ne+ct,ct=0),D.push({l:j,an:j,add:Ce,n:U,anIndexes:[],val:J,line:k,animatorJustifyOffset:0}),De==2){if(Ce+=j,J===""||J===" "||_===B-1){for((J===""||J===" ")&&(Ce-=j);Re<=_;)D[Re].an=Ce,D[Re].ind=ge,D[Re].extra=j,Re+=1;ge+=1,Ce=0}}else if(De==3){if(Ce+=j,J===""||_===B-1){for(J===""&&(Ce-=j);Re<=_;)D[Re].an=Ce,D[Re].ind=ge,D[Re].extra=j,Re+=1;Ce=0,ge+=1}}else D[ge].ind=ge,D[ge].extra=0,ge+=1;if(c.l=D,pe=Y>pe?Y:pe,ee.push(Y),c.sz)c.boxWidth=c.sz[0],c.justifyOffset=0;else switch(c.boxWidth=pe,c.j){case 1:c.justifyOffset=-c.boxWidth;break;case 2:c.justifyOffset=-c.boxWidth/2;break;default:c.justifyOffset=0}c.lineWidths=ee;var $e=v.a,ce,Q;W=$e.length;var ve,Ke,Ie=[];for(he=0;he<W;he+=1){for(ce=$e[he],ce.a.sc&&(c.strokeColorAnim=!0),ce.a.sw&&(c.strokeWidthAnim=!0),(ce.a.fc||ce.a.fh||ce.a.fs||ce.a.fb)&&(c.fillColorAnim=!0),Ke=0,ve=ce.s.b,_=0;_<B;_+=1)Q=D[_],Q.anIndexes[he]=Ke,(ve==1&&Q.val!==""||ve==2&&Q.val!==""&&Q.val!==" "||ve==3&&(Q.n||Q.val==" "||_==B-1)||ve==4&&(Q.n||_==B-1))&&(ce.s.rn===1&&Ie.push(Ke),Ke+=1);v.a[he].s.totalChars=Ke;var lt=-1,St;if(ce.s.rn===1)for(_=0;_<B;_+=1)Q=D[_],lt!=Q.anIndexes[he]&&(lt=Q.anIndexes[he],St=Ie.splice(Math.floor(Math.random()*Ie.length),1)[0]),Q.anIndexes[he]=St}c.yOffset=c.finalLineHeight||c.finalSize*1.2,c.ls=c.ls||0,c.ascent=Z.ascent*c.finalSize/100},cr.prototype.updateDocumentData=function(c,p){p=p===void 0?this.keysIndex:p;var v=this.copyData({},this.data.d.k[p].s);v=this.copyData(v,c),this.data.d.k[p].s=v,this.recalculate(p),this.elem.addDynamicProperty(this)},cr.prototype.recalculate=function(c){var p=this.data.d.k[c].s;p.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(p)},cr.prototype.canResizeFont=function(c){this.canResize=c,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},cr.prototype.setMinimumFontSize=function(c){this.minimumFontSize=Math.floor(c)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var Wm=function(){var c=Math.max,p=Math.min,v=Math.floor;function D(B,U){this._currentTextLength=-1,this.k=!1,this.data=U,this.elem=B,this.comp=B.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(B),this.s=at.getProp(B,U.s||{k:0},0,0,this),"e"in U?this.e=at.getProp(B,U.e,0,0,this):this.e={v:100},this.o=at.getProp(B,U.o||{k:0},0,0,this),this.xe=at.getProp(B,U.xe||{k:0},0,0,this),this.ne=at.getProp(B,U.ne||{k:0},0,0,this),this.sm=at.getProp(B,U.sm||{k:100},0,0,this),this.a=at.getProp(B,U.a,0,.01,this),this.dynamicProperties.length||this.getValue()}D.prototype={getMult:function(U){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var ge=0,J=0,De=1,Ce=1;this.ne.v>0?ge=this.ne.v/100:J=-this.ne.v/100,this.xe.v>0?De=1-this.xe.v/100:Ce=1+this.xe.v/100;var Re=lo.getBezierEasing(ge,J,De,Ce).get,k=0,ee=this.finalS,Y=this.finalE,pe=this.data.sh;if(pe===2)Y===ee?k=U>=Y?1:0:k=c(0,p(.5/(Y-ee)+(U-ee)/(Y-ee),1)),k=Re(k);else if(pe===3)Y===ee?k=U>=Y?0:1:k=1-c(0,p(.5/(Y-ee)+(U-ee)/(Y-ee),1)),k=Re(k);else if(pe===4)Y===ee?k=0:(k=c(0,p(.5/(Y-ee)+(U-ee)/(Y-ee),1)),k<.5?k*=2:k=1-2*(k-.5)),k=Re(k);else if(pe===5){if(Y===ee)k=0;else{var he=Y-ee;U=p(c(0,U+.5-ee),Y-ee);var W=-he/2+U,Z=he/2;k=Math.sqrt(1-W*W/(Z*Z))}k=Re(k)}else pe===6?(Y===ee?k=0:(U=p(c(0,U+.5-ee),Y-ee),k=(1+Math.cos(Math.PI+Math.PI*2*U/(Y-ee)))/2),k=Re(k)):(U>=v(ee)&&(U-ee<0?k=c(0,p(p(Y,1)-(ee-U),1)):k=c(0,p(Y-U,1))),k=Re(k));if(this.sm.v!==100){var L=this.sm.v*.01;L===0&&(L=1e-8);var j=.5-L*.5;k<j?k=0:(k=(k-j)/L,k>1&&(k=1))}return k*this.a.v},getValue:function(U){this.iterateDynamicProperties(),this._mdf=U||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,U&&this.data.r===2&&(this.e.v=this._currentTextLength);var ge=this.data.r===2?1:100/this.data.totalChars,J=this.o.v/ge,De=this.s.v/ge+J,Ce=this.e.v/ge+J;if(De>Ce){var Re=De;De=Ce,Ce=Re}this.finalS=De,this.finalE=Ce}},Be([dn],D);function _(B,U,ge){return new D(B,U)}return{getTextSelectorProp:_}}();function Hm(c,p,v){var D={propType:!1},_=at.getProp,B=p.a;this.a={r:B.r?_(c,B.r,0,Jt,v):D,rx:B.rx?_(c,B.rx,0,Jt,v):D,ry:B.ry?_(c,B.ry,0,Jt,v):D,sk:B.sk?_(c,B.sk,0,Jt,v):D,sa:B.sa?_(c,B.sa,0,Jt,v):D,s:B.s?_(c,B.s,1,.01,v):D,a:B.a?_(c,B.a,1,0,v):D,o:B.o?_(c,B.o,0,.01,v):D,p:B.p?_(c,B.p,1,0,v):D,sw:B.sw?_(c,B.sw,0,0,v):D,sc:B.sc?_(c,B.sc,1,0,v):D,fc:B.fc?_(c,B.fc,1,0,v):D,fh:B.fh?_(c,B.fh,0,0,v):D,fs:B.fs?_(c,B.fs,0,.01,v):D,fb:B.fb?_(c,B.fb,0,.01,v):D,t:B.t?_(c,B.t,0,0,v):D},this.s=Wm.getTextSelectorProp(c,p.s,v),this.s.t=p.s.t}function Eo(c,p,v){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=c,this._renderType=p,this._elem=v,this._animatorsData=qe(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(v)}Eo.prototype.searchProperties=function(){var c,p=this._textData.a.length,v,D=at.getProp;for(c=0;c<p;c+=1)v=this._textData.a[c],this._animatorsData[c]=new Hm(this._elem,v,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:D(this._elem,this._textData.p.a,0,0,this),f:D(this._elem,this._textData.p.f,0,0,this),l:D(this._elem,this._textData.p.l,0,0,this),r:D(this._elem,this._textData.p.r,0,0,this),p:D(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=D(this._elem,this._textData.m.a,1,0,this)},Eo.prototype.getMeasures=function(c,p){if(this.lettersChangedFlag=p,!(!this._mdf&&!this._isFirstFrame&&!p&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var v=this._moreOptions.alignment.v,D=this._animatorsData,_=this._textData,B=this.mHelper,U=this._renderType,ge=this.renderedLetters.length,J,De,Ce,Re,k=c.l,ee,Y,pe,he,W,Z,L,j,H,ne,ue,me,Oe,nt,tt;if(this._hasMaskedPath){if(tt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Ve=tt.v;this._pathData.r.v&&(Ve=Ve.reverse()),ee={tLength:0,segments:[]},Re=Ve._length-1;var st;for(me=0,Ce=0;Ce<Re;Ce+=1)st=Gr.buildBezierData(Ve.v[Ce],Ve.v[Ce+1],[Ve.o[Ce][0]-Ve.v[Ce][0],Ve.o[Ce][1]-Ve.v[Ce][1]],[Ve.i[Ce+1][0]-Ve.v[Ce+1][0],Ve.i[Ce+1][1]-Ve.v[Ce+1][1]]),ee.tLength+=st.segmentLength,ee.segments.push(st),me+=st.segmentLength;Ce=Re,tt.v.c&&(st=Gr.buildBezierData(Ve.v[Ce],Ve.v[0],[Ve.o[Ce][0]-Ve.v[Ce][0],Ve.o[Ce][1]-Ve.v[Ce][1]],[Ve.i[0][0]-Ve.v[0][0],Ve.i[0][1]-Ve.v[0][1]]),ee.tLength+=st.segmentLength,ee.segments.push(st),me+=st.segmentLength),this._pathData.pi=ee}if(ee=this._pathData.pi,Y=this._pathData.f.v,L=0,Z=1,he=0,W=!0,ne=ee.segments,Y<0&&tt.v.c)for(ee.tLength<Math.abs(Y)&&(Y=-Math.abs(Y)%ee.tLength),L=ne.length-1,H=ne[L].points,Z=H.length-1;Y<0;)Y+=H[Z].partialLength,Z-=1,Z<0&&(L-=1,H=ne[L].points,Z=H.length-1);H=ne[L].points,j=H[Z-1],pe=H[Z],ue=pe.partialLength}Re=k.length,J=0,De=0;var ct=c.finalSize*1.2*.714,Le=!0,$e,ce,Q,ve,Ke;ve=D.length;var Ie,lt=-1,St,Et,Dn,Ut=Y,dr=L,Zn=Z,Ln=-1,jn,Kn,vr,dt,ln,Zr,Fi,sa,mi="",ua=this.defaultPropsArray,la;if(c.j===2||c.j===1){var Yt=0,$n=0,ja=c.j===2?-.5:-1,gi=0,ca=!0;for(Ce=0;Ce<Re;Ce+=1)if(k[Ce].n){for(Yt&&(Yt+=$n);gi<Ce;)k[gi].animatorJustifyOffset=Yt,gi+=1;Yt=0,ca=!0}else{for(Q=0;Q<ve;Q+=1)$e=D[Q].a,$e.t.propType&&(ca&&c.j===2&&($n+=$e.t.v*ja),ce=D[Q].s,Ie=ce.getMult(k[Ce].anIndexes[Q],_.a[Q].s.totalChars),Ie.length?Yt+=$e.t.v*Ie[0]*ja:Yt+=$e.t.v*Ie*ja);ca=!1}for(Yt&&(Yt+=$n);gi<Ce;)k[gi].animatorJustifyOffset=Yt,gi+=1}for(Ce=0;Ce<Re;Ce+=1){if(B.reset(),jn=1,k[Ce].n)J=0,De+=c.yOffset,De+=Le?1:0,Y=Ut,Le=!1,this._hasMaskedPath&&(L=dr,Z=Zn,H=ne[L].points,j=H[Z-1],pe=H[Z],ue=pe.partialLength,he=0),mi="",sa="",Zr="",la="",ua=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Ln!==k[Ce].line){switch(c.j){case 1:Y+=me-c.lineWidths[k[Ce].line];break;case 2:Y+=(me-c.lineWidths[k[Ce].line])/2;break}Ln=k[Ce].line}lt!==k[Ce].ind&&(k[lt]&&(Y+=k[lt].extra),Y+=k[Ce].an/2,lt=k[Ce].ind),Y+=v[0]*k[Ce].an*.005;var vi=0;for(Q=0;Q<ve;Q+=1)$e=D[Q].a,$e.p.propType&&(ce=D[Q].s,Ie=ce.getMult(k[Ce].anIndexes[Q],_.a[Q].s.totalChars),Ie.length?vi+=$e.p.v[0]*Ie[0]:vi+=$e.p.v[0]*Ie),$e.a.propType&&(ce=D[Q].s,Ie=ce.getMult(k[Ce].anIndexes[Q],_.a[Q].s.totalChars),Ie.length?vi+=$e.a.v[0]*Ie[0]:vi+=$e.a.v[0]*Ie);for(W=!0,this._pathData.a.v&&(Y=k[0].an*.5+(me-this._pathData.f.v-k[0].an*.5-k[k.length-1].an*.5)*lt/(Re-1),Y+=this._pathData.f.v);W;)he+ue>=Y+vi||!H?(Oe=(Y+vi-he)/pe.partialLength,Et=j.point[0]+(pe.point[0]-j.point[0])*Oe,Dn=j.point[1]+(pe.point[1]-j.point[1])*Oe,B.translate(-v[0]*k[Ce].an*.005,-(v[1]*ct)*.01),W=!1):H&&(he+=pe.partialLength,Z+=1,Z>=H.length&&(Z=0,L+=1,ne[L]?H=ne[L].points:tt.v.c?(Z=0,L=0,H=ne[L].points):(he-=pe.partialLength,H=null)),H&&(j=pe,pe=H[Z],ue=pe.partialLength));St=k[Ce].an/2-k[Ce].add,B.translate(-St,0,0)}else St=k[Ce].an/2-k[Ce].add,B.translate(-St,0,0),B.translate(-v[0]*k[Ce].an*.005,-v[1]*ct*.01,0);for(Q=0;Q<ve;Q+=1)$e=D[Q].a,$e.t.propType&&(ce=D[Q].s,Ie=ce.getMult(k[Ce].anIndexes[Q],_.a[Q].s.totalChars),(J!==0||c.j!==0)&&(this._hasMaskedPath?Ie.length?Y+=$e.t.v*Ie[0]:Y+=$e.t.v*Ie:Ie.length?J+=$e.t.v*Ie[0]:J+=$e.t.v*Ie));for(c.strokeWidthAnim&&(vr=c.sw||0),c.strokeColorAnim&&(c.sc?Kn=[c.sc[0],c.sc[1],c.sc[2]]:Kn=[0,0,0]),c.fillColorAnim&&c.fc&&(dt=[c.fc[0],c.fc[1],c.fc[2]]),Q=0;Q<ve;Q+=1)$e=D[Q].a,$e.a.propType&&(ce=D[Q].s,Ie=ce.getMult(k[Ce].anIndexes[Q],_.a[Q].s.totalChars),Ie.length?B.translate(-$e.a.v[0]*Ie[0],-$e.a.v[1]*Ie[1],$e.a.v[2]*Ie[2]):B.translate(-$e.a.v[0]*Ie,-$e.a.v[1]*Ie,$e.a.v[2]*Ie));for(Q=0;Q<ve;Q+=1)$e=D[Q].a,$e.s.propType&&(ce=D[Q].s,Ie=ce.getMult(k[Ce].anIndexes[Q],_.a[Q].s.totalChars),Ie.length?B.scale(1+($e.s.v[0]-1)*Ie[0],1+($e.s.v[1]-1)*Ie[1],1):B.scale(1+($e.s.v[0]-1)*Ie,1+($e.s.v[1]-1)*Ie,1));for(Q=0;Q<ve;Q+=1){if($e=D[Q].a,ce=D[Q].s,Ie=ce.getMult(k[Ce].anIndexes[Q],_.a[Q].s.totalChars),$e.sk.propType&&(Ie.length?B.skewFromAxis(-$e.sk.v*Ie[0],$e.sa.v*Ie[1]):B.skewFromAxis(-$e.sk.v*Ie,$e.sa.v*Ie)),$e.r.propType&&(Ie.length?B.rotateZ(-$e.r.v*Ie[2]):B.rotateZ(-$e.r.v*Ie)),$e.ry.propType&&(Ie.length?B.rotateY($e.ry.v*Ie[1]):B.rotateY($e.ry.v*Ie)),$e.rx.propType&&(Ie.length?B.rotateX($e.rx.v*Ie[0]):B.rotateX($e.rx.v*Ie)),$e.o.propType&&(Ie.length?jn+=($e.o.v*Ie[0]-jn)*Ie[0]:jn+=($e.o.v*Ie-jn)*Ie),c.strokeWidthAnim&&$e.sw.propType&&(Ie.length?vr+=$e.sw.v*Ie[0]:vr+=$e.sw.v*Ie),c.strokeColorAnim&&$e.sc.propType)for(ln=0;ln<3;ln+=1)Ie.length?Kn[ln]+=($e.sc.v[ln]-Kn[ln])*Ie[0]:Kn[ln]+=($e.sc.v[ln]-Kn[ln])*Ie;if(c.fillColorAnim&&c.fc){if($e.fc.propType)for(ln=0;ln<3;ln+=1)Ie.length?dt[ln]+=($e.fc.v[ln]-dt[ln])*Ie[0]:dt[ln]+=($e.fc.v[ln]-dt[ln])*Ie;$e.fh.propType&&(Ie.length?dt=It(dt,$e.fh.v*Ie[0]):dt=It(dt,$e.fh.v*Ie)),$e.fs.propType&&(Ie.length?dt=zt(dt,$e.fs.v*Ie[0]):dt=zt(dt,$e.fs.v*Ie)),$e.fb.propType&&(Ie.length?dt=Pt(dt,$e.fb.v*Ie[0]):dt=Pt(dt,$e.fb.v*Ie))}}for(Q=0;Q<ve;Q+=1)$e=D[Q].a,$e.p.propType&&(ce=D[Q].s,Ie=ce.getMult(k[Ce].anIndexes[Q],_.a[Q].s.totalChars),this._hasMaskedPath?Ie.length?B.translate(0,$e.p.v[1]*Ie[0],-$e.p.v[2]*Ie[1]):B.translate(0,$e.p.v[1]*Ie,-$e.p.v[2]*Ie):Ie.length?B.translate($e.p.v[0]*Ie[0],$e.p.v[1]*Ie[1],-$e.p.v[2]*Ie[2]):B.translate($e.p.v[0]*Ie,$e.p.v[1]*Ie,-$e.p.v[2]*Ie));if(c.strokeWidthAnim&&(Zr=vr<0?0:vr),c.strokeColorAnim&&(Fi="rgb("+Math.round(Kn[0]*255)+","+Math.round(Kn[1]*255)+","+Math.round(Kn[2]*255)+")"),c.fillColorAnim&&c.fc&&(sa="rgb("+Math.round(dt[0]*255)+","+Math.round(dt[1]*255)+","+Math.round(dt[2]*255)+")"),this._hasMaskedPath){if(B.translate(0,-c.ls),B.translate(0,v[1]*ct*.01+De,0),this._pathData.p.v){nt=(pe.point[1]-j.point[1])/(pe.point[0]-j.point[0]);var da=Math.atan(nt)*180/Math.PI;pe.point[0]<j.point[0]&&(da+=180),B.rotate(-da*Math.PI/180)}B.translate(Et,Dn,0),Y-=v[0]*k[Ce].an*.005,k[Ce+1]&&lt!==k[Ce+1].ind&&(Y+=k[Ce].an/2,Y+=c.tr*.001*c.finalSize)}else{switch(B.translate(J,De,0),c.ps&&B.translate(c.ps[0],c.ps[1]+c.ascent,0),c.j){case 1:B.translate(k[Ce].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[k[Ce].line]),0,0);break;case 2:B.translate(k[Ce].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[k[Ce].line])/2,0,0);break}B.translate(0,-c.ls),B.translate(St,0,0),B.translate(v[0]*k[Ce].an*.005,v[1]*ct*.01,0),J+=k[Ce].l+c.tr*.001*c.finalSize}U==="html"?mi=B.toCSS():U==="svg"?mi=B.to2dCSS():ua=[B.props[0],B.props[1],B.props[2],B.props[3],B.props[4],B.props[5],B.props[6],B.props[7],B.props[8],B.props[9],B.props[10],B.props[11],B.props[12],B.props[13],B.props[14],B.props[15]],la=jn}ge<=Ce?(Ke=new al(la,Zr,Fi,sa,mi,ua),this.renderedLetters.push(Ke),ge+=1,this.lettersChangedFlag=!0):(Ke=this.renderedLetters[Ce],this.lettersChangedFlag=Ke.update(la,Zr,Fi,sa,mi,ua)||this.lettersChangedFlag)}}},Eo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Eo.prototype.mHelper=new Rn,Eo.prototype.defaultPropsArray=[],Be([dn],Eo);function pi(){}pi.prototype.initElement=function(c,p,v){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(c,p,v),this.textProperty=new cr(this,c.t,this.dynamicProperties),this.textAnimator=new Eo(c.t,this.renderType,this),this.initTransform(c,p,v),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},pi.prototype.prepareFrame=function(c){this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},pi.prototype.createPathShape=function(c,p){var v,D=p.length,_,B="";for(v=0;v<D;v+=1)p[v].ty==="sh"&&(_=p[v].ks.k,B+=Cr(_,_.i.length,!0,c));return B},pi.prototype.updateDocumentData=function(c,p){this.textProperty.updateDocumentData(c,p)},pi.prototype.canResizeFont=function(c){this.textProperty.canResizeFont(c)},pi.prototype.setMinimumFontSize=function(c){this.textProperty.setMinimumFontSize(c)},pi.prototype.applyTextPropertiesToMatrix=function(c,p,v,D,_){switch(c.ps&&p.translate(c.ps[0],c.ps[1]+c.ascent,0),p.translate(0,-c.ls,0),c.j){case 1:p.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[v]),0,0);break;case 2:p.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[v])/2,0,0);break}p.translate(D,_,0)},pi.prototype.buildColor=function(c){return"rgb("+Math.round(c[0]*255)+","+Math.round(c[1]*255)+","+Math.round(c[2]*255)+")"},pi.prototype.emptyProp=new al,pi.prototype.destroy=function(){};var Gm={shapes:[]};function wr(c,p,v){this.textSpans=[],this.renderType="svg",this.initElement(c,p,v)}Be([aa,Do,zs,La,In,qs,pi],wr),wr.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=bt("text"))},wr.prototype.buildTextContents=function(c){for(var p=0,v=c.length,D=[],_="";p<v;)c[p]==="\r"||c[p]===""?(D.push(_),_=""):_+=c[p],p+=1;return D.push(_),D},wr.prototype.buildShapeData=function(c,p){if(c.shapes&&c.shapes.length){var v=c.shapes[0];if(v.it){var D=v.it[v.it.length-1];D.s&&(D.s.k[0]=p,D.s.k[1]=p)}}return c},wr.prototype.buildNewText=function(){this.addDynamicProperty(this);var c,p,v=this.textProperty.currentData;this.renderedLetters=qe(v?v.l.length:0),v.fc?this.layerElement.setAttribute("fill",this.buildColor(v.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),v.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(v.sc)),this.layerElement.setAttribute("stroke-width",v.sw)),this.layerElement.setAttribute("font-size",v.finalSize);var D=this.globalData.fontManager.getFontByName(v.f);if(D.fClass)this.layerElement.setAttribute("class",D.fClass);else{this.layerElement.setAttribute("font-family",D.fFamily);var _=v.fWeight,B=v.fStyle;this.layerElement.setAttribute("font-style",B),this.layerElement.setAttribute("font-weight",_)}this.layerElement.setAttribute("aria-label",v.t);var U=v.l||[],ge=!!this.globalData.fontManager.chars;p=U.length;var J,De=this.mHelper,Ce="",Re=this.data.singleShape,k=0,ee=0,Y=!0,pe=v.tr*.001*v.finalSize;if(Re&&!ge&&!v.sz){var he=this.textContainer,W="start";switch(v.j){case 1:W="end";break;case 2:W="middle";break;default:W="start";break}he.setAttribute("text-anchor",W),he.setAttribute("letter-spacing",pe);var Z=this.buildTextContents(v.finalText);for(p=Z.length,ee=v.ps?v.ps[1]+v.ascent:0,c=0;c<p;c+=1)J=this.textSpans[c].span||bt("tspan"),J.textContent=Z[c],J.setAttribute("x",0),J.setAttribute("y",ee),J.style.display="inherit",he.appendChild(J),this.textSpans[c]||(this.textSpans[c]={span:null,glyph:null}),this.textSpans[c].span=J,ee+=v.finalLineHeight;this.layerElement.appendChild(he)}else{var L=this.textSpans.length,j;for(c=0;c<p;c+=1){if(this.textSpans[c]||(this.textSpans[c]={span:null,childSpan:null,glyph:null}),!ge||!Re||c===0){if(J=L>c?this.textSpans[c].span:bt(ge?"g":"text"),L<=c){if(J.setAttribute("stroke-linecap","butt"),J.setAttribute("stroke-linejoin","round"),J.setAttribute("stroke-miterlimit","4"),this.textSpans[c].span=J,ge){var H=bt("g");J.appendChild(H),this.textSpans[c].childSpan=H}this.textSpans[c].span=J,this.layerElement.appendChild(J)}J.style.display="inherit"}if(De.reset(),Re&&(U[c].n&&(k=-pe,ee+=v.yOffset,ee+=Y?1:0,Y=!1),this.applyTextPropertiesToMatrix(v,De,U[c].line,k,ee),k+=U[c].l||0,k+=pe),ge){j=this.globalData.fontManager.getCharData(v.finalText[c],D.fStyle,this.globalData.fontManager.getFontByName(v.f).fFamily);var ne;if(j.t===1)ne=new Yr(j.data,this.globalData,this);else{var ue=Gm;j.data&&j.data.shapes&&(ue=this.buildShapeData(j.data,v.finalSize)),ne=new mn(ue,this.globalData,this)}if(this.textSpans[c].glyph){var me=this.textSpans[c].glyph;this.textSpans[c].childSpan.removeChild(me.layerElement),me.destroy()}this.textSpans[c].glyph=ne,ne._debug=!0,ne.prepareFrame(0),ne.renderFrame(),this.textSpans[c].childSpan.appendChild(ne.layerElement),j.t===1&&this.textSpans[c].childSpan.setAttribute("transform","scale("+v.finalSize/100+","+v.finalSize/100+")")}else Re&&J.setAttribute("transform","translate("+De.props[12]+","+De.props[13]+")"),J.textContent=U[c].val,J.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Re&&J&&J.setAttribute("d",Ce)}for(;c<this.textSpans.length;)this.textSpans[c].span.style.display="none",c+=1;this._sizeChanged=!0},wr.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var c=this.layerElement.getBBox();this.bbox={top:c.y,left:c.x,width:c.width,height:c.height}}return this.bbox},wr.prototype.getValue=function(){var c,p=this.textSpans.length,v;for(this.renderedFrame=this.comp.renderedFrame,c=0;c<p;c+=1)v=this.textSpans[c].glyph,v&&(v.prepareFrame(this.comp.renderedFrame-this.data.st),v._mdf&&(this._mdf=!0))},wr.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var c,p,v=this.textAnimator.renderedLetters,D=this.textProperty.currentData.l;p=D.length;var _,B,U;for(c=0;c<p;c+=1)D[c].n||(_=v[c],B=this.textSpans[c].span,U=this.textSpans[c].glyph,U&&U.renderFrame(),_._mdf.m&&B.setAttribute("transform",_.m),_._mdf.o&&B.setAttribute("opacity",_.o),_._mdf.sw&&B.setAttribute("stroke-width",_.sw),_._mdf.sc&&B.setAttribute("stroke",_.sc),_._mdf.fc&&B.setAttribute("fill",_.fc))}};function Kc(c,p,v){this.initElement(c,p,v)}Be([Us],Kc),Kc.prototype.createContent=function(){var c=bt("rect");c.setAttribute("width",this.data.sw),c.setAttribute("height",this.data.sh),c.setAttribute("fill",this.data.sc),this.layerElement.appendChild(c)};function Na(c,p,v){this.initFrame(),this.initBaseData(c,p,v),this.initFrame(),this.initTransform(c,p,v),this.initHierarchy()}Na.prototype.prepareFrame=function(c){this.prepareProperties(c,!0)},Na.prototype.renderFrame=function(){},Na.prototype.getBaseElement=function(){return null},Na.prototype.destroy=function(){},Na.prototype.sourceRectAtTime=function(){},Na.prototype.hide=function(){},Be([aa,Do,La,In],Na);function On(){}Be([lr],On),On.prototype.createNull=function(c){return new Na(c,this.globalData,this)},On.prototype.createShape=function(c){return new mn(c,this.globalData,this)},On.prototype.createText=function(c){return new wr(c,this.globalData,this)},On.prototype.createImage=function(c){return new Us(c,this.globalData,this)},On.prototype.createSolid=function(c){return new Kc(c,this.globalData,this)},On.prototype.configAnimation=function(c){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+c.w+" "+c.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",c.w),this.svgElement.setAttribute("height",c.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var p=this.globalData.defs;this.setupGlobalData(c,p),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=c;var v=bt("clipPath"),D=bt("rect");D.setAttribute("width",c.w),D.setAttribute("height",c.h),D.setAttribute("x",0),D.setAttribute("y",0);var _=Dt();v.setAttribute("id",_),v.appendChild(D),this.layerElement.setAttribute("clip-path","url("+Se()+"#"+_+")"),p.appendChild(v),this.layers=c.layers,this.elements=qe(c.layers.length)},On.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var c,p=this.layers?this.layers.length:0;for(c=0;c<p;c+=1)this.elements[c]&&this.elements[c].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},On.prototype.updateContainerSize=function(){},On.prototype.findIndexByInd=function(c){var p=0,v=this.layers.length;for(p=0;p<v;p+=1)if(this.layers[p].ind===c)return p;return-1},On.prototype.buildItem=function(c){var p=this.elements;if(!(p[c]||this.layers[c].ty===99)){p[c]=!0;var v=this.createItem(this.layers[c]);if(p[c]=v,li()&&(this.layers[c].ty===0&&this.globalData.projectInterface.registerComposition(v),v.initExpressions()),this.appendElementInPos(v,c),this.layers[c].tt){var D="tp"in this.layers[c]?this.findIndexByInd(this.layers[c].tp):c-1;if(D===-1)return;if(!this.elements[D]||this.elements[D]===!0)this.buildItem(D),this.addPendingElement(v);else{var _=p[D],B=_.getMatte(this.layers[c].tt);v.setMatte(B)}}}},On.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();if(c.checkParenting(),c.data.tt)for(var p=0,v=this.elements.length;p<v;){if(this.elements[p]===c){var D="tp"in c.data?this.findIndexByInd(c.data.tp):p-1,_=this.elements[D],B=_.getMatte(this.layers[p].tt);c.setMatte(B);break}p+=1}}},On.prototype.renderFrame=function(c){if(!(this.renderedFrame===c||this.destroyed)){c===null?c=this.renderedFrame:this.renderedFrame=c,this.globalData.frameNum=c,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=c,this.globalData._mdf=!1;var p,v=this.layers.length;for(this.completeLayers||this.checkLayers(c),p=v-1;p>=0;p-=1)(this.completeLayers||this.elements[p])&&this.elements[p].prepareFrame(c-this.layers[p].st);if(this.globalData._mdf)for(p=0;p<v;p+=1)(this.completeLayers||this.elements[p])&&this.elements[p].renderFrame()}},On.prototype.appendElementInPos=function(c,p){var v=c.getBaseElement();if(v){for(var D=0,_;D<p;)this.elements[D]&&this.elements[D]!==!0&&this.elements[D].getBaseElement()&&(_=this.elements[D].getBaseElement()),D+=1;_?this.layerElement.insertBefore(v,_):this.layerElement.appendChild(v)}},On.prototype.hide=function(){this.layerElement.style.display="none"},On.prototype.show=function(){this.layerElement.style.display="block"};function Bi(){}Be([aa,Do,La,In,qs],Bi),Bi.prototype.initElement=function(c,p,v){this.initFrame(),this.initBaseData(c,p,v),this.initTransform(c,p,v),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!p.progressiveLoad)&&this.buildAllItems(),this.hide()},Bi.prototype.prepareFrame=function(c){if(this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=c/this.data.sr;else{var p=this.tm.v;p===this.data.op&&(p=this.data.op-1),this.renderedFrame=p}var v,D=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),v=D-1;v>=0;v-=1)(this.completeLayers||this.elements[v])&&(this.elements[v].prepareFrame(this.renderedFrame-this.layers[v].st),this.elements[v]._mdf&&(this._mdf=!0))}},Bi.prototype.renderInnerContent=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)(this.completeLayers||this.elements[c])&&this.elements[c].renderFrame()},Bi.prototype.setElements=function(c){this.elements=c},Bi.prototype.getElements=function(){return this.elements},Bi.prototype.destroyElements=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)this.elements[c]&&this.elements[c].destroy()},Bi.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Yr(c,p,v){this.layers=c.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?qe(this.layers.length):[],this.initElement(c,p,v),this.tm=c.tm?at.getProp(this,c.tm,0,p.frameRate,this):{_placeholder:!0}}Be([On,Bi,zs],Yr),Yr.prototype.createComp=function(c){return new Yr(c,this.globalData,this)};function rs(c,p){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.svgElement=bt("svg");var v="";if(p&&p.title){var D=bt("title"),_=Dt();D.setAttribute("id",_),D.textContent=p.title,this.svgElement.appendChild(D),v+=_}if(p&&p.description){var B=bt("desc"),U=Dt();B.setAttribute("id",U),B.textContent=p.description,this.svgElement.appendChild(B),v+=" "+U}v&&this.svgElement.setAttribute("aria-labelledby",v);var ge=bt("defs");this.svgElement.appendChild(ge);var J=bt("g");this.svgElement.appendChild(J),this.layerElement=J,this.renderConfig={preserveAspectRatio:p&&p.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:p&&p.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:p&&p.contentVisibility||"visible",progressiveLoad:p&&p.progressiveLoad||!1,hideOnTransparent:!(p&&p.hideOnTransparent===!1),viewBoxOnly:p&&p.viewBoxOnly||!1,viewBoxSize:p&&p.viewBoxSize||!1,className:p&&p.className||"",id:p&&p.id||"",focusable:p&&p.focusable,filterSize:{width:p&&p.filterSize&&p.filterSize.width||"100%",height:p&&p.filterSize&&p.filterSize.height||"100%",x:p&&p.filterSize&&p.filterSize.x||"0%",y:p&&p.filterSize&&p.filterSize.y||"0%"},width:p&&p.width,height:p&&p.height,runExpressions:!p||p.runExpressions===void 0||p.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:ge,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return Be([On],rs),rs.prototype.createComp=function(c){return new Yr(c,this.globalData,this)},Ku("svg",rs),Fr.registerModifier("tm",kr),Fr.registerModifier("pb",ka),Fr.registerModifier("rp",gr),Fr.registerModifier("rd",ho),Fr.registerModifier("zz",vo),Fr.registerModifier("op",xn),jt})})(s,s.exports);var l=s.exports;function f(z,G){var V=z==null?null:typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(V!=null){var R,K,fe,M,oe=[],le=!0,Se=!1;try{if(fe=(V=V.call(z)).next,G!==0)for(;!(le=(R=fe.call(V)).done)&&(oe.push(R.value),oe.length!==G);le=!0);}catch(_e){Se=!0,K=_e}finally{try{if(!le&&V.return!=null&&(M=V.return(),Object(M)!==M))return}finally{if(Se)throw K}}return oe}}function h(z,G){var V=Object.keys(z);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(z);G&&(R=R.filter(function(K){return Object.getOwnPropertyDescriptor(z,K).enumerable})),V.push.apply(V,R)}return V}function m(z){for(var G=1;G<arguments.length;G++){var V=arguments[G]!=null?arguments[G]:{};G%2?h(Object(V),!0).forEach(function(R){g(z,R,V[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(V)):h(Object(V)).forEach(function(R){Object.defineProperty(z,R,Object.getOwnPropertyDescriptor(V,R))})}return z}function g(z,G,V){return G=P(G),G in z?Object.defineProperty(z,G,{value:V,enumerable:!0,configurable:!0,writable:!0}):z[G]=V,z}function b(z,G){if(z==null)return{};var V={},R=Object.keys(z),K,fe;for(fe=0;fe<R.length;fe++)K=R[fe],!(G.indexOf(K)>=0)&&(V[K]=z[K]);return V}function $(z,G){if(z==null)return{};var V=b(z,G),R,K;if(Object.getOwnPropertySymbols){var fe=Object.getOwnPropertySymbols(z);for(K=0;K<fe.length;K++)R=fe[K],!(G.indexOf(R)>=0)&&Object.prototype.propertyIsEnumerable.call(z,R)&&(V[R]=z[R])}return V}function x(z,G){return A(z)||f(z,G)||w(z,G)||E()}function A(z){if(Array.isArray(z))return z}function w(z,G){if(z){if(typeof z=="string")return C(z,G);var V=Object.prototype.toString.call(z).slice(8,-1);if(V==="Object"&&z.constructor&&(V=z.constructor.name),V==="Map"||V==="Set")return Array.from(z);if(V==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V))return C(z,G)}}function C(z,G){(G==null||G>z.length)&&(G=z.length);for(var V=0,R=new Array(G);V<G;V++)R[V]=z[V];return R}function E(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
93
93
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T(z,G){if(typeof z!="object"||z===null)return z;var V=z[Symbol.toPrimitive];if(V!==void 0){var R=V.call(z,G);if(typeof R!="object")return R;throw new TypeError("@@toPrimitive must return a primitive value.")}return(G==="string"?String:Number)(z)}function P(z){var G=T(z,"string");return typeof G=="symbol"?G:String(G)}var F=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],q=function(G,V){var R=G.animationData,K=G.loop,fe=G.autoplay,M=G.initialSegment,oe=G.onComplete,le=G.onLoopComplete,Se=G.onEnterFrame,_e=G.onSegmentStart,Be=G.onConfigReady,Ge=G.onDataReady,Xe=G.onDataFailed,Ne=G.onLoadedImages,qe=G.onDOMLoaded,ke=G.onDestroy;G.lottieRef,G.renderer,G.name,G.assetsPath,G.rendererSettings;var je=$(G,F),Te=r.useState(!1),Ye=x(Te,2),ht=Ye[0],Ht=Ye[1],xt=r.useRef(),_t=r.useRef(null),Wr=function(){var Pt;(Pt=xt.current)===null||Pt===void 0||Pt.play()},Jt=function(){var Pt;(Pt=xt.current)===null||Pt===void 0||Pt.stop()},xe=function(){var Pt;(Pt=xt.current)===null||Pt===void 0||Pt.pause()},Ae=function(Pt){var It;(It=xt.current)===null||It===void 0||It.setSpeed(Pt)},Fe=function(Pt,It){var qt;(qt=xt.current)===null||qt===void 0||qt.goToAndPlay(Pt,It)},Qe=function(Pt,It){var qt;(qt=xt.current)===null||qt===void 0||qt.goToAndStop(Pt,It)},et=function(Pt){var It;(It=xt.current)===null||It===void 0||It.setDirection(Pt)},Je=function(Pt,It){var qt;(qt=xt.current)===null||qt===void 0||qt.playSegments(Pt,It)},gt=function(Pt){var It;(It=xt.current)===null||It===void 0||It.setSubframe(Pt)},kt=function(Pt){var It;return(It=xt.current)===null||It===void 0?void 0:It.getDuration(Pt)},Dt=function(){var Pt;(Pt=xt.current)===null||Pt===void 0||Pt.destroy(),xt.current=void 0},bn=function(){var Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},It;if(_t.current){(It=xt.current)===null||It===void 0||It.destroy();var qt=m(m(m({},G),Pt),{},{container:_t.current});return xt.current=l.loadAnimation(qt),Ht(!!xt.current),function(){var pr;(pr=xt.current)===null||pr===void 0||pr.destroy(),xt.current=void 0}}};r.useEffect(function(){var zt=bn();return function(){return zt==null?void 0:zt()}},[R,K]),r.useEffect(function(){xt.current&&(xt.current.autoplay=!!fe)},[fe]),r.useEffect(function(){if(xt.current){if(!M){xt.current.resetSegments(!0);return}!Array.isArray(M)||!M.length||((xt.current.currentRawFrame<M[0]||xt.current.currentRawFrame>M[1])&&(xt.current.currentRawFrame=M[0]),xt.current.setSegment(M[0],M[1]))}},[M]),r.useEffect(function(){var zt=[{name:"complete",handler:oe},{name:"loopComplete",handler:le},{name:"enterFrame",handler:Se},{name:"segmentStart",handler:_e},{name:"config_ready",handler:Be},{name:"data_ready",handler:Ge},{name:"data_failed",handler:Xe},{name:"loaded_images",handler:Ne},{name:"DOMLoaded",handler:qe},{name:"destroy",handler:ke}],Pt=zt.filter(function(qt){return qt.handler!=null});if(Pt.length){var It=Pt.map(function(qt){var pr;return(pr=xt.current)===null||pr===void 0||pr.addEventListener(qt.name,qt.handler),function(){var Hr;(Hr=xt.current)===null||Hr===void 0||Hr.removeEventListener(qt.name,qt.handler)}});return function(){It.forEach(function(qt){return qt()})}}},[oe,le,Se,_e,Be,Ge,Xe,Ne,qe,ke]);var Dr=a.default.createElement("div",m({style:V,ref:_t},je));return{View:Dr,play:Wr,stop:Jt,pause:xe,setSpeed:Ae,goToAndStop:Qe,goToAndPlay:Fe,setDirection:et,playSegments:Je,setSubframe:gt,getDuration:kt,destroy:Dt,animationContainerRef:_t,animationLoaded:ht,animationItem:xt.current}};function te(z){var G=z.getBoundingClientRect(),V=G.top,R=G.height,K=window.innerHeight-V,fe=window.innerHeight+R;return K/fe}function se(z,G,V){var R=z.getBoundingClientRect(),K=R.top,fe=R.left,M=R.width,oe=R.height,le=(G-fe)/M,Se=(V-K)/oe;return{x:le,y:Se}}var ae=function(G){var V=G.wrapperRef,R=G.animationItem,K=G.mode,fe=G.actions;r.useEffect(function(){var M=V.current;if(!(!M||!R||!fe.length)){R.stop();var oe=function(){var _e=null,Be=function(){var Xe=te(M),Ne=fe.find(function(ke){var je=ke.visibility;return je&&Xe>=je[0]&&Xe<=je[1]});if(Ne){if(Ne.type==="seek"&&Ne.visibility&&Ne.frames.length===2){var qe=Ne.frames[0]+Math.ceil((Xe-Ne.visibility[0])/(Ne.visibility[1]-Ne.visibility[0])*Ne.frames[1]);//! goToAndStop must be relative to the start of the current segment
94
- R.goToAndStop(qe-R.firstFrame-1,!0)}Ne.type==="loop"&&(_e===null||_e!==Ne.frames||R.isPaused)&&(R.playSegments(Ne.frames,!0),_e=Ne.frames),Ne.type==="play"&&R.isPaused&&(R.resetSegments(!0),R.play()),Ne.type==="stop"&&R.goToAndStop(Ne.frames[0]-R.firstFrame-1,!0)}};return document.addEventListener("scroll",Be),function(){document.removeEventListener("scroll",Be)}},le=function(){var _e=function(Ne,qe){var ke=Ne,je=qe;if(ke!==-1&&je!==-1){var Te=se(M,ke,je);ke=Te.x,je=Te.y}var Ye=fe.find(function(xt){var _t=xt.position;return _t&&Array.isArray(_t.x)&&Array.isArray(_t.y)?ke>=_t.x[0]&&ke<=_t.x[1]&&je>=_t.y[0]&&je<=_t.y[1]:_t&&!Number.isNaN(_t.x)&&!Number.isNaN(_t.y)?ke===_t.x&&je===_t.y:!1});if(Ye){if(Ye.type==="seek"&&Ye.position&&Array.isArray(Ye.position.x)&&Array.isArray(Ye.position.y)&&Ye.frames.length===2){var ht=(ke-Ye.position.x[0])/(Ye.position.x[1]-Ye.position.x[0]),Ht=(je-Ye.position.y[0])/(Ye.position.y[1]-Ye.position.y[0]);R.playSegments(Ye.frames,!0),R.goToAndStop(Math.ceil((ht+Ht)/2*(Ye.frames[1]-Ye.frames[0])),!0)}Ye.type==="loop"&&R.playSegments(Ye.frames,!0),Ye.type==="play"&&(R.isPaused&&R.resetSegments(!1),R.playSegments(Ye.frames)),Ye.type==="stop"&&R.goToAndStop(Ye.frames[0],!0)}},Be=function(Ne){_e(Ne.clientX,Ne.clientY)},Ge=function(){_e(-1,-1)};return M.addEventListener("mousemove",Be),M.addEventListener("mouseout",Ge),function(){M.removeEventListener("mousemove",Be),M.removeEventListener("mouseout",Ge)}};switch(K){case"scroll":return oe();case"cursor":return le()}}},[K,R])},O=function(G){var V=G.actions,R=G.mode,K=G.lottieObj,fe=K.animationItem,M=K.View,oe=K.animationContainerRef;return ae({actions:V,animationItem:fe,mode:R,wrapperRef:oe}),M},Ee=["style","interactivity"],be=function(G){var V,R,K,fe=G.style,M=G.interactivity,oe=$(G,Ee),le=q(oe,fe),Se=le.View,_e=le.play,Be=le.stop,Ge=le.pause,Xe=le.setSpeed,Ne=le.goToAndStop,qe=le.goToAndPlay,ke=le.setDirection,je=le.playSegments,Te=le.setSubframe,Ye=le.getDuration,ht=le.destroy,Ht=le.animationContainerRef,xt=le.animationLoaded,_t=le.animationItem;return r.useEffect(function(){G.lottieRef&&(G.lottieRef.current={play:_e,stop:Be,pause:Ge,setSpeed:Xe,goToAndPlay:qe,goToAndStop:Ne,setDirection:ke,playSegments:je,setSubframe:Te,getDuration:Ye,destroy:ht,animationContainerRef:Ht,animationLoaded:xt,animationItem:_t})},[(V=G.lottieRef)===null||V===void 0?void 0:V.current]),O({lottieObj:{View:Se,play:_e,stop:Be,pause:Ge,setSpeed:Xe,goToAndStop:Ne,goToAndPlay:qe,setDirection:ke,playSegments:je,setSubframe:Te,getDuration:Ye,destroy:ht,animationContainerRef:Ht,animationLoaded:xt,animationItem:_t},actions:(R=M==null?void 0:M.actions)!==null&&R!==void 0?R:[],mode:(K=M==null?void 0:M.mode)!==null&&K!==void 0?K:"scroll"})};n.LottiePlayer=l,n.default=be,n.useLottie=q,n.useLottieInteractivity=O,Object.defineProperty(n,"__esModule",{value:!0})})}($d,$d.exports)),$d.exports}var Soe=Aoe();const Toe=ar(Soe),Poe=I.createContext({});function _oe(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const Rx=typeof window<"u",Boe=Rx?I.useLayoutEffect:I.useEffect,EM=I.createContext(null),CM=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Foe(e){return typeof e=="object"&&e!==null}function wM(e){return Foe(e)&&"offsetHeight"in e}const _h=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function koe(e,t){let n=new Set,r=new Set,i=!1,a=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function l(h){o.has(h)&&(f.schedule(h),e()),h(s)}const f={schedule:(h,m=!1,g=!1)=>{const $=g&&i?n:r;return m&&o.add(h),$.has(h)||$.add(h),h},cancel:h=>{r.delete(h),o.delete(h)},process:h=>{if(s=h,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,a&&(a=!1,f.process(h))}};return f}const Ho={},Moe=40;function AM(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=_h.reduce((E,T)=>(E[T]=koe(a),E),{}),{setup:s,read:l,resolveKeyframes:f,preUpdate:h,update:m,preRender:g,render:b,postRender:$}=o,x=()=>{const E=Ho.useManualTiming?i.timestamp:performance.now();n=!1,Ho.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(E-i.timestamp,Moe),1)),i.timestamp=E,i.isProcessing=!0,s.process(i),l.process(i),f.process(i),h.process(i),m.process(i),g.process(i),b.process(i),$.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(x))},A=()=>{n=!0,r=!0,i.isProcessing||e(x)};return{schedule:_h.reduce((E,T)=>{const P=o[T];return E[T]=(F,q=!1,te=!1)=>(n||A(),P.schedule(F,q,te)),E},{}),cancel:E=>{for(let T=0;T<_h.length;T++)o[_h[T]].cancel(E)},state:i,steps:o}}const yc=e=>e,{schedule:wa,cancel:g1,state:Rp}=AM(typeof requestAnimationFrame<"u"?requestAnimationFrame:yc,!0),Ix=I.createContext({strict:!1}),pS={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"]},rc={};for(const e in pS)rc[e]={isEnabled:t=>pS[e].some(n=>!!t[n])};function mS(e){for(const t in e)rc[t]={...rc[t],...e[t]}}function Roe({children:e,features:t,strict:n=!1}){const[,r]=I.useState(!Cy(t)),i=I.useRef(void 0);if(!Cy(t)){const{renderer:a,...o}=t;i.current=a,mS(o)}return I.useEffect(()=>{Cy(t)&&t().then(({renderer:a,...o})=>{mS(o),i.current=a,r(!0)})},[]),io.jsx(Ix.Provider,{value:{renderer:i.current,strict:n},children:e})}function Cy(e){return typeof e=="function"}const Ioe=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 Ip(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Ioe.has(e)}let SM=e=>!Ip(e);function Ooe(e){e&&(SM=t=>t.startsWith("on")?!Ip(t):e(t))}try{Ooe(require("@emotion/is-prop-valid").default)}catch{}function Loe(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(SM(i)||n===!0&&Ip(i)||!t&&!Ip(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const gS=new Set;function Ox(e,t,n){e||gS.has(t)||(console.warn(t),gS.add(t))}function Voe(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Ox(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Om=I.createContext({});function Lm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Jd(e){return typeof e=="string"||Array.isArray(e)}const Lx=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Vx=["initial",...Lx];function Vm(e){return Lm(e.animate)||Vx.some(t=>Jd(e[t]))}function TM(e){return!!(Vm(e)||e.variants)}function Noe(e,t){if(Vm(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Jd(n)?n:void 0,animate:Jd(r)?r:void 0}}return e.inherit!==!1?t:{}}function joe(e){const{initial:t,animate:n}=Noe(e,I.useContext(Om));return I.useMemo(()=>({initial:t,animate:n}),[vS(t),vS(n)])}function vS(e){return Array.isArray(e)?e.join(" "):e}const Koe=Symbol.for("motionComponentSymbol");function PM(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function zoe(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):PM(n)&&(n.current=r))},[t])}const Nx=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),qoe="framerAppearId",_M="data-"+Nx(qoe),Uoe=I.createContext({}),{schedule:Woe}=AM(queueMicrotask,!1);function Hoe(e,t,n,r,i){var x,A;const{visualElement:a}=I.useContext(Om),o=I.useContext(Ix),s=I.useContext(EM),l=I.useContext(CM).reducedMotion,f=I.useRef(null);r=r||o.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:a,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const h=f.current,m=I.useContext(Uoe);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&Goe(f.current,n,i,m);const g=I.useRef(!1);I.useInsertionEffect(()=>{h&&g.current&&h.update(n,s)});const b=n[_M],$=I.useRef(!!b&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,b))&&((A=window.MotionHasOptimisedAnimation)==null?void 0:A.call(window,b)));return Boe(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Woe.render(h.render),$.current&&h.animationState&&h.animationState.animateChanges())}),I.useEffect(()=>{h&&(!$.current&&h.animationState&&h.animationState.animateChanges(),$.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)==null||w.call(window,b)}),$.current=!1))}),h}function Goe(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:l,layoutRoot:f,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:BM(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&PM(s),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:f})}function BM(e){if(e)return e.options.allowProjection!==!1?e.projection:BM(e.parent)}let Af=()=>{},Bu=()=>{};process.env.NODE_ENV!=="production"&&(Af=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Bu=(e,t)=>{if(!e)throw new Error(t)});function Yoe({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){function a(s,l){let f;const h={...I.useContext(CM),...s,layoutId:Zoe(s)},{isStatic:m}=h,g=joe(s),b=r(s,m);if(!m&&Rx){Xoe(h,e);const $=Qoe(h);f=$.MeasureLayout,g.visualElement=Hoe(i,b,h,t,$.ProjectionNode)}return io.jsxs(Om.Provider,{value:g,children:[f&&g.visualElement?io.jsx(f,{visualElement:g.visualElement,...h}):null,n(i,s,zoe(b,g.visualElement,l),b,m,g.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const o=I.forwardRef(a);return o[Koe]=i,o}function Zoe({layoutId:e}){const t=I.useContext(Poe).id;return t&&e!==void 0?t+"-"+e:e}function Xoe(e,t){I.useContext(Ix).strict,process.env.NODE_ENV}function Qoe(e){const{drag:t,layout:n}=rc;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}}const FM=e=>t=>typeof t=="string"&&t.startsWith(e),kM=FM("--"),Joe=FM("var(--"),jx=e=>Joe(e)?ese.test(e.split("/*")[0].trim()):!1,ese=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,tse={},bc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],xc=new Set(bc);function MM(e,{layout:t,layoutId:n}){return xc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!tse[e]||e==="opacity")}const RM=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Fu=(e,t,n)=>n>t?t:n<e?e:n,Dc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ef={...Dc,transform:e=>Fu(0,1,e)},Bh={...Dc,default:1},yS={...Dc,transform:Math.round},Sf=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ps=Sf("deg"),Wl=Sf("%"),Tt=Sf("px"),nse=Sf("vh"),rse=Sf("vw"),bS={...Wl,parse:e=>Wl.parse(e)/100,transform:e=>Wl.transform(e*100)},ise={rotate:ps,rotateX:ps,rotateY:ps,rotateZ:ps,scale:Bh,scaleX:Bh,scaleY:Bh,scaleZ:Bh,skew:ps,skewX:ps,skewY:ps,distance:Tt,translateX:Tt,translateY:Tt,translateZ:Tt,x:Tt,y:Tt,z:Tt,perspective:Tt,transformPerspective:Tt,opacity:ef,originX:bS,originY:bS,originZ:Tt},Kx={borderWidth:Tt,borderTopWidth:Tt,borderRightWidth:Tt,borderBottomWidth:Tt,borderLeftWidth:Tt,borderRadius:Tt,radius:Tt,borderTopLeftRadius:Tt,borderTopRightRadius:Tt,borderBottomRightRadius:Tt,borderBottomLeftRadius:Tt,width:Tt,maxWidth:Tt,height:Tt,maxHeight:Tt,top:Tt,right:Tt,bottom:Tt,left:Tt,padding:Tt,paddingTop:Tt,paddingRight:Tt,paddingBottom:Tt,paddingLeft:Tt,margin:Tt,marginTop:Tt,marginRight:Tt,marginBottom:Tt,marginLeft:Tt,backgroundPositionX:Tt,backgroundPositionY:Tt,...ise,zIndex:yS,fillOpacity:ef,strokeOpacity:ef,numOctaves:yS},ase={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ose=bc.length;function sse(e,t,n){let r="",i=!0;for(let a=0;a<ose;a++){const o=bc[a],s=e[o];if(s===void 0)continue;let l=!0;if(typeof s=="number"?l=s===(o.startsWith("scale")?1:0):l=parseFloat(s)===0,!l||n){const f=RM(s,Kx[o]);if(!l){i=!1;const h=ase[o]||o;r+=`${h}(${f}) `}n&&(t[o]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function zx(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let o=!1,s=!1;for(const l in t){const f=t[l];if(xc.has(l)){o=!0;continue}else if(kM(l)){i[l]=f;continue}else{const h=RM(f,Kx[l]);l.startsWith("origin")?(s=!0,a[l]=h):r[l]=h}}if(t.transform||(o||n?r.transform=sse(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:l="50%",originY:f="50%",originZ:h=0}=a;r.transformOrigin=`${l} ${f} ${h}`}}const qx=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),jr=e=>!!(e&&e.getVelocity);function IM(e,t,n){for(const r in t)!jr(t[r])&&!MM(r,n)&&(e[r]=t[r])}function use({transformTemplate:e},t){return I.useMemo(()=>{const n=qx();return zx(n,t,e),Object.assign({},n.vars,n.style)},[t])}function lse(e,t){const n=e.style||{},r={};return IM(r,n,e),Object.assign(r,use(e,t)),r}function cse(e,t){const n={},r=lse(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 dse={offset:"stroke-dashoffset",array:"stroke-dasharray"},fse={offset:"strokeDashoffset",array:"strokeDasharray"};function hse(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?dse:fse;e[a.offset]=Tt.transform(-r);const o=Tt.transform(t),s=Tt.transform(n);e[a.array]=`${o} ${s}`}function OM(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},l,f,h){if(zx(e,s,f),l){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&&hse(m,i,a,o,!1)}const LM=()=>({...qx(),attrs:{}}),VM=e=>typeof e=="string"&&e.toLowerCase()==="svg";function pse(e,t,n,r){const i=I.useMemo(()=>{const a=LM();return OM(a,t,VM(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};IM(a,e.style,e),i.style={...a,...i.style}}return i}const mse=["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 Ux(e){return typeof e!="string"||e.includes("-")?!1:!!(mse.indexOf(e)>-1||/[A-Z]/u.test(e))}function gse(e=!1){return(n,r,i,{latestValues:a},o)=>{const l=(Ux(n)?pse:cse)(r,a,o,n),f=Loe(r,typeof n=="string",e),h=n!==I.Fragment?{...f,...l,ref:i}:{},{children:m}=r,g=I.useMemo(()=>jr(m)?m.get():m,[m]);return I.createElement(n,{...h,children:g})}}function xS(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Wx(e,t,n,r){if(typeof t=="function"){const[i,a]=xS(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]=xS(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function vse(e){return jr(e)?e.get():e}function yse({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:bse(n,r,i,e),renderState:t()}}const NM=e=>(t,n)=>{const r=I.useContext(Om),i=I.useContext(EM),a=()=>yse(e,t,r,i);return n?a():_oe(a)};function bse(e,t,n,r){const i={},a=r(e,{});for(const g in a)i[g]=vse(a[g]);let{initial:o,animate:s}=e;const l=Vm(e),f=TM(e);t&&f&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let h=n?n.initial===!1:!1;h=h||o===!1;const m=h?s:o;if(m&&typeof m!="boolean"&&!Lm(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const $=Wx(e,g[b]);if($){const{transitionEnd:x,transition:A,...w}=$;for(const C in w){let E=w[C];if(Array.isArray(E)){const T=h?E.length-1:0;E=E[T]}E!==null&&(i[C]=E)}for(const C in x)i[C]=x[C]}}}return i}function Hx(e,t,n){var a;const{style:r}=e,i={};for(const o in r)(jr(r[o])||t.style&&jr(t.style[o])||MM(o,e)||((a=n==null?void 0:n.getValue(o))==null?void 0:a.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const xse={useVisualState:NM({scrapeMotionValuesFromProps:Hx,createRenderState:qx})};function jM(e,t,n){const r=Hx(e,t,n);for(const i in e)if(jr(e[i])||jr(t[i])){const a=bc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const Dse={useVisualState:NM({scrapeMotionValuesFromProps:jM,createRenderState:LM})};function $se(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...Ux(r)?Dse:xse,preloadedFeatures:e,useRender:gse(i),createVisualElement:t,Component:r};return Yoe(o)}}const Ese=$se(),Cse=Voe(Ese);function tf(e,t,n){const r=e.getProps();return Wx(r,t,n!==void 0?n:r.custom,e)}const v1=e=>Array.isArray(e);let Jh;function wse(){Jh=void 0}const Yi={now:()=>(Jh===void 0&&Yi.set(Rp.isProcessing||Ho.useManualTiming?Rp.timestamp:performance.now()),Jh),set:e=>{Jh=e,queueMicrotask(wse)}};function Ase(e,t){e.indexOf(t)===-1&&e.push(t)}function Sse(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class KM{constructor(){this.subscriptions=[]}add(t){return Ase(this.subscriptions,t),()=>Sse(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 o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function zM(e,t){return t?e*(1e3/t):0}const DS=30,Tse=e=>!isNaN(parseFloat(e));class Pse{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{var o,s;const a=Yi.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty();i&&((s=this.events.renderRequest)==null||s.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Yi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Tse(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Ox(!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 KM);const r=this.events[t].add(n);return t==="change"?()=>{r(),wa.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,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}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 this.current}getPrevious(){return this.prev}getVelocity(){const t=Yi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>DS)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,DS);return zM(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 Op(e,t){return new Pse(e,t)}function _se(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Op(n))}function Bse(e){return v1(e)?e[e.length-1]||0:e}function Fse(e,t){const n=tf(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const s=Bse(a[o]);_se(e,o,s)}}function kse(e){return!!(jr(e)&&e.add)}function Mse(e,t){const n=e.getValue("willChange");if(kse(n))return n.add(t);if(!n&&Ho.WillChange){const r=new Ho.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Rse(e){return e.props[_M]}const Ise=e=>e!==null;function Ose(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Ise),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const Lse={type:"spring",stiffness:500,damping:25,restSpeed:10},Vse=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Nse={type:"keyframes",duration:.8},jse={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Kse=(e,{keyframes:t})=>t.length>2?Nse:xc.has(e)?e.startsWith("scale")?Vse(t[1]):Lse:jse;function zse({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:l,elapsed:f,...h}){return!!Object.keys(h).length}function qM(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const ro=e=>e*1e3,Ko=e=>e/1e3,Id=e=>Math.round(e*1e5)/1e5,Gx=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function qse(e){return e==null}const Use=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Yx=(e,t)=>n=>!!(typeof n=="string"&&Use.test(n)&&n.startsWith(e)||t&&!qse(n)&&Object.prototype.hasOwnProperty.call(n,t)),UM=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,s]=r.match(Gx);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},Wse=e=>Fu(0,255,e),wy={...Dc,transform:e=>Math.round(Wse(e))},mu={test:Yx("rgb","red"),parse:UM("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+wy.transform(e)+", "+wy.transform(t)+", "+wy.transform(n)+", "+Id(ef.transform(r))+")"};function Hse(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 y1={test:Yx("#"),parse:Hse,transform:mu.transform},Ml={test:Yx("hsl","hue"),parse:UM("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Wl.transform(Id(t))+", "+Wl.transform(Id(n))+", "+Id(ef.transform(r))+")"},Sr={test:e=>mu.test(e)||y1.test(e)||Ml.test(e),parse:e=>mu.test(e)?mu.parse(e):Ml.test(e)?Ml.parse(e):y1.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?mu.transform(e):Ml.transform(e)},Gse=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Yse(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Gx))==null?void 0:t.length)||0)+(((n=e.match(Gse))==null?void 0:n.length)||0)>0}const WM="number",HM="color",Zse="var",Xse="var(",$S="${}",Qse=/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 nf(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const s=t.replace(Qse,l=>(Sr.test(l)?(r.color.push(a),i.push(HM),n.push(Sr.parse(l))):l.startsWith(Xse)?(r.var.push(a),i.push(Zse),n.push(l)):(r.number.push(a),i.push(WM),n.push(parseFloat(l))),++a,$S)).split($S);return{values:n,split:s,indexes:r,types:i}}function GM(e){return nf(e).values}function YM(e){const{split:t,types:n}=nf(e),r=t.length;return i=>{let a="";for(let o=0;o<r;o++)if(a+=t[o],i[o]!==void 0){const s=n[o];s===WM?a+=Id(i[o]):s===HM?a+=Sr.transform(i[o]):a+=i[o]}return a}}const Jse=e=>typeof e=="number"?0:e;function eue(e){const t=GM(e);return YM(e)(t.map(Jse))}const $c={test:Yse,parse:GM,createTransformer:YM,getAnimatableNone:eue};function Ay(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 tue({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=Ay(l,s,e+1/3),a=Ay(l,s,e),o=Ay(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Lp(e,t){return n=>n>0?t:e}const Nm=(e,t,n)=>e+(t-e)*n,Sy=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},nue=[y1,mu,Ml],rue=e=>nue.find(t=>t.test(e));function ES(e){const t=rue(e);if(Af(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Ml&&(n=tue(n)),n}const CS=(e,t)=>{const n=ES(e),r=ES(t);if(!n||!r)return Lp(e,t);const i={...n};return a=>(i.red=Sy(n.red,r.red,a),i.green=Sy(n.green,r.green,a),i.blue=Sy(n.blue,r.blue,a),i.alpha=Nm(n.alpha,r.alpha,a),mu.transform(i))},b1=new Set(["none","hidden"]);function iue(e,t){return b1.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}const aue=(e,t)=>n=>t(e(n)),jm=(...e)=>e.reduce(aue);function oue(e,t){return n=>Nm(e,t,n)}function Zx(e){return typeof e=="number"?oue:typeof e=="string"?jx(e)?Lp:Sr.test(e)?CS:lue:Array.isArray(e)?ZM:typeof e=="object"?Sr.test(e)?CS:sue:Lp}function ZM(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>Zx(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}}function sue(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Zx(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function uue(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],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}const lue=(e,t)=>{const n=$c.createTransformer(t),r=nf(e),i=nf(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?b1.has(e)&&!i.values.length||b1.has(t)&&!r.values.length?iue(e,t):jm(ZM(uue(r,i),i.values),n):(Af(!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.`),Lp(e,t))};function XM(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Nm(e,t,n):Zx(e)(e,t)}const cue=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>wa.update(t,n),stop:()=>g1(t),now:()=>Rp.isProcessing?Rp.timestamp:Yi.now()}},QM=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=e(a/(i-1))+", ";return`linear(${r.substring(0,r.length-2)})`},Vp=2e4;function Xx(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Vp;)t+=n,r=e.next(t);return t>=Vp?1/0:t}function due(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Xx(r),Vp);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:Ko(i)}}const fue=5;function JM(e,t,n){const r=Math.max(t-fue,0);return zM(n-e(r),t-r)}const Fn={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},Ty=.001;function hue({duration:e=Fn.duration,bounce:t=Fn.bounce,velocity:n=Fn.velocity,mass:r=Fn.mass}){let i,a;Af(e<=ro(Fn.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=Fu(Fn.minDamping,Fn.maxDamping,o),e=Fu(Fn.minDuration,Fn.maxDuration,Ko(e)),o<1?(i=f=>{const h=f*o,m=h*e,g=h-n,b=x1(f,o),$=Math.exp(-m);return Ty-g/b*$},a=f=>{const m=f*o*e,g=m*n+n,b=Math.pow(o,2)*Math.pow(f,2)*e,$=Math.exp(-m),x=x1(Math.pow(f,2),o);return(-i(f)+Ty>0?-1:1)*((g-b)*$)/x}):(i=f=>{const h=Math.exp(-f*e),m=(f-n)*e+1;return-Ty+h*m},a=f=>{const h=Math.exp(-f*e),m=(n-f)*(e*e);return h*m});const s=5/e,l=mue(i,a,s);if(e=ro(e),isNaN(l))return{stiffness:Fn.stiffness,damping:Fn.damping,duration:e};{const f=Math.pow(l,2)*r;return{stiffness:f,damping:o*2*Math.sqrt(r*f),duration:e}}}const pue=12;function mue(e,t,n){let r=n;for(let i=1;i<pue;i++)r=r-e(r)/t(r);return r}function x1(e,t){return e*Math.sqrt(1-t*t)}const gue=["duration","bounce"],vue=["stiffness","damping","mass"];function wS(e,t){return t.some(n=>e[n]!==void 0)}function yue(e){let t={velocity:Fn.velocity,stiffness:Fn.stiffness,damping:Fn.damping,mass:Fn.mass,isResolvedFromDuration:!1,...e};if(!wS(e,vue)&&wS(e,gue))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Fu(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Fn.mass,stiffness:i,damping:a}}else{const n=hue(e);t={...t,...n,mass:Fn.mass},t.isResolvedFromDuration=!0}return t}function Np(e=Fn.visualDuration,t=Fn.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],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:l,damping:f,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=yue({...n,velocity:-Ko(n.velocity||0)}),$=g||0,x=f/(2*Math.sqrt(l*h)),A=o-a,w=Ko(Math.sqrt(l/h)),C=Math.abs(A)<5;r||(r=C?Fn.restSpeed.granular:Fn.restSpeed.default),i||(i=C?Fn.restDelta.granular:Fn.restDelta.default);let E;if(x<1){const P=x1(w,x);E=F=>{const q=Math.exp(-x*w*F);return o-q*(($+x*w*A)/P*Math.sin(P*F)+A*Math.cos(P*F))}}else if(x===1)E=P=>o-Math.exp(-w*P)*(A+($+w*A)*P);else{const P=w*Math.sqrt(x*x-1);E=F=>{const q=Math.exp(-x*w*F),te=Math.min(P*F,300);return o-q*(($+x*w*A)*Math.sinh(te)+P*A*Math.cosh(te))/P}}const T={calculatedDuration:b&&m||null,next:P=>{const F=E(P);if(b)s.done=P>=m;else{let q=P===0?$:0;x<1&&(q=P===0?ro($):JM(E,P,F));const te=Math.abs(q)<=r,se=Math.abs(o-F)<=i;s.done=te&&se}return s.value=s.done?o:F,s},toString:()=>{const P=Math.min(Xx(T),Vp),F=QM(q=>T.next(P*q).value,P,30);return P+"ms "+F},toTransition:()=>{}};return T}Np.applyToOptions=e=>{const t=due(e,100,Np);return e.ease=t.ease,e.duration=ro(t.duration),e.type="keyframes",e};function D1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:f=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=te=>s!==void 0&&te<s||l!==void 0&&te>l,$=te=>s===void 0?l:l===void 0||Math.abs(s-te)<Math.abs(l-te)?s:l;let x=n*t;const A=m+x,w=o===void 0?A:o(A);w!==A&&(x=w-m);const C=te=>-x*Math.exp(-te/r),E=te=>w+C(te),T=te=>{const se=C(te),ae=E(te);g.done=Math.abs(se)<=f,g.value=g.done?w:ae};let P,F;const q=te=>{b(g.value)&&(P=te,F=Np({keyframes:[g.value,$(g.value)],velocity:JM(E,te,g.value),damping:i,stiffness:a,restDelta:f,restSpeed:h}))};return q(0),{calculatedDuration:null,next:te=>{let se=!1;return!F&&P===void 0&&(se=!0,T(te),q(te)),P!==void 0&&te>=P?F.next(te-P):(!se&&T(te),g)}}}const eR=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};function bue(e,t,n){const r=[],i=n||Ho.mix||XM,a=e.length-1;for(let o=0;o<a;o++){let s=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||yc:t;s=jm(l,s)}r.push(s)}return r}function xue(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(Bu(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=bue(t,r,i),l=s.length,f=h=>{if(o&&h<e[0])return t[0];let m=0;if(l>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=eR(e[m],e[m+1],h);return s[m](g)};return n?h=>f(Fu(e[0],e[a-1],h)):f}function Due(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=eR(0,t,r);e.push(Nm(n,1,i))}}function $ue(e){const t=[0];return Due(t,e.length-1),t}function Eue(e,t){return e.map(n=>n*t)}const tR=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Cue=1e-7,wue=12;function Aue(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=tR(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Cue&&++s<wue);return o}function Tf(e,t,n,r){if(e===t&&n===r)return yc;const i=a=>Aue(a,0,1,e,n);return a=>a===0||a===1?a:tR(i(a),t,r)}const Sue=Tf(.42,0,1,1),Tue=Tf(0,0,.58,1),nR=Tf(.42,0,.58,1),Pue=e=>Array.isArray(e)&&typeof e[0]!="number",rR=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,iR=e=>t=>1-e(1-t),aR=Tf(.33,1.53,.69,.99),Qx=iR(aR),oR=rR(Qx),sR=e=>(e*=2)<1?.5*Qx(e):.5*(2-Math.pow(2,-10*(e-1))),Jx=e=>1-Math.sin(Math.acos(e)),_ue=iR(Jx),uR=rR(Jx),lR=e=>Array.isArray(e)&&typeof e[0]=="number",AS={linear:yc,easeIn:Sue,easeInOut:nR,easeOut:Tue,circIn:Jx,circInOut:uR,circOut:_ue,backIn:Qx,backInOut:oR,backOut:aR,anticipate:sR},Bue=e=>typeof e=="string",SS=e=>{if(lR(e)){Bu(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Tf(t,n,r,i)}else if(Bue(e))return Bu(AS[e]!==void 0,`Invalid easing type '${e}'`),AS[e];return e};function Fue(e,t){return e.map(()=>t||nR).splice(0,e.length-1)}function Rl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Pue(r)?r.map(SS):SS(r),a={done:!1,value:t[0]},o=Eue(n&&n.length===t.length?n:$ue(t),e),s=xue(o,t,{ease:Array.isArray(i)?i:Fue(t,i)});return{calculatedDuration:e,next:l=>(a.value=s(l),a.done=l>=e,a)}}const kue=e=>e!==null;function eD(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(kue),s=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!s||r===void 0?a[s]:r}const Mue={decay:D1,inertia:D1,tween:Rl,keyframes:Rl,spring:Np};function cR(e){typeof e.type=="string"&&(e.type=Mue[e.type])}class tD{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 Rue=e=>e/100;class nD extends tD{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!==Yi.now()&&this.tick(Yi.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;cR(t);const{type:n=Rl,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=t;let{keyframes:s}=t;const l=n||Rl;process.env.NODE_ENV!=="production"&&l!==Rl&&Bu(s.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${s}`),l!==Rl&&typeof s[0]!="number"&&(this.mixKeyframes=jm(Rue,XM(s[0],s[1])),s=[0,100]);const f=l({...t,keyframes:s});a==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-o})),f.calculatedDuration===null&&(f.calculatedDuration=Xx(f));const{calculatedDuration:h}=f;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=f}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:o,resolvedDuration:s,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:f=0,keyframes:h,repeat:m,repeatType:g,repeatDelay:b,type:$,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 w=this.currentTime-f*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?w<0:w>i;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let E=this.currentTime,T=r;if(m){const te=Math.min(this.currentTime,i)/s;let se=Math.floor(te),ae=te%1;!ae&&te>=1&&(ae=1),ae===1&&se--,se=Math.min(se,m+1),!!(se%2)&&(g==="reverse"?(ae=1-ae,b&&(ae-=b/s)):g==="mirror"&&(T=o)),E=Fu(0,1,ae)*s}const P=C?{done:!1,value:h[0]}:T.next(E);a&&(P.value=a(P.value));let{done:F}=P;!C&&l!==null&&(F=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const q=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return q&&$!==D1&&(P.value=eD(h,this.options,A,this.speed)),x&&x(P.value),q&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return Ko(this.calculatedDuration)}get time(){return Ko(this.currentTime)}set time(t){var n;t=ro(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(Yi.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ko(this.currentTime))}play(){var i,a;if(this.isStopped)return;const{driver:t=cue,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(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(Yi.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 Iue(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const gu=e=>e*180/Math.PI,$1=e=>{const t=gu(Math.atan2(e[1],e[0]));return E1(t)},Oue={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:$1,rotateZ:$1,skewX:e=>gu(Math.atan(e[1])),skewY:e=>gu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},E1=e=>(e=e%360,e<0&&(e+=360),e),TS=$1,PS=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),_S=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Lue={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:PS,scaleY:_S,scale:e=>(PS(e)+_S(e))/2,rotateX:e=>E1(gu(Math.atan2(e[6],e[5]))),rotateY:e=>E1(gu(Math.atan2(-e[2],e[0]))),rotateZ:TS,rotate:TS,skewX:e=>gu(Math.atan(e[4])),skewY:e=>gu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function C1(e){return e.includes("scale")?1:0}function w1(e,t){if(!e||e==="none")return C1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Lue,i=n;else{const s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Oue,i=s}if(!i)return C1(t);const a=r[t],o=i[1].split(",").map(Nue);return typeof a=="function"?a(o):o[a]}const Vue=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return w1(n,t)};function Nue(e){return parseFloat(e.trim())}const BS=e=>e===Dc||e===Tt,jue=new Set(["x","y","z"]),Kue=bc.filter(e=>!jue.has(e));function zue(e){const t=[];return Kue.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Du={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})=>w1(t,"x"),y:(e,{transform:t})=>w1(t,"y")};Du.translateX=Du.x;Du.translateY=Du.y;const $u=new Set;let A1=!1,S1=!1,T1=!1;function dR(){if(S1){const e=Array.from($u).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=zue(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,o])=>{var s;(s=r.getValue(a))==null||s.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}S1=!1,A1=!1,$u.forEach(e=>e.complete(T1)),$u.clear()}function fR(){$u.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(S1=!0)})}function que(){T1=!0,fR(),dR(),T1=!1}class rD{constructor(t,n,r,i,a,o=!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=o}scheduleResolve(){this.state="scheduled",this.isAsync?($u.add(this),A1||(A1=!0,wa.read(fR),wa.resolveKeyframes(dR))):(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(),o=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const s=r.readValue(n,o);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=o),i&&a===void 0&&i.set(t[0])}Iue(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),$u.delete(this)}cancel(){this.state==="scheduled"&&($u.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Uue=e=>e.startsWith("--");function Wue(e,t,n){Uue(t)?e.style.setProperty(t,n):e.style[t]=n}function iD(e){let t;return()=>(t===void 0&&(t=e()),t)}const Hue=iD(()=>window.ScrollTimeline!==void 0),Gue={};function Yue(e,t){const n=iD(e);return()=>Gue[t]??n()}const hR=Yue(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ed=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,FS={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ed([0,.65,.55,1]),circOut:Ed([.55,0,1,.45]),backIn:Ed([.31,.01,.66,-.59]),backOut:Ed([.33,1.53,.69,.99])};function pR(e,t){if(e)return typeof e=="function"?hR()?QM(e,t):"ease-out":lR(e)?Ed(e):Array.isArray(e)?e.map(n=>pR(n,t)||FS.easeOut):FS[e]}function Zue(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:s="easeOut",times:l}={},f=void 0){const h={[t]:n};l&&(h.offset=l);const m=pR(s,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:o==="reverse"?"alternate":"normal"};return f&&(g.pseudoElement=f),e.animate(h,g)}function mR(e){return typeof e=="function"&&"applyToOptions"in e}function Xue({type:e,...t}){return mR(e)&&hR()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Que extends tD{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:o=!1,finalKeyframe:s,onComplete:l}=t;this.isPseudoElement=!!a,this.allowFlatten=o,this.options=t,Bu(typeof t.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);const f=Xue(t);this.animation=Zue(n,r,i,f,a),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const h=eD(i,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(h):Wue(n,r,h),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Ko(Number(t))}get time(){return Ko(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ro(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&&Hue()?(this.animation.timeline=t,yc):n(this)}}const gR={anticipate:sR,backInOut:oR,circInOut:uR};function Jue(e){return e in gR}function ele(e){typeof e.ease=="string"&&Jue(e.ease)&&(e.ease=gR[e.ease])}const kS=10;class tle extends Que{constructor(t){ele(t),cR(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const s=new nD({...o,autoplay:!1}),l=ro(this.finishedTime??this.time);n.setWithVelocity(s.sample(l-kS).value,s.sample(l).value,kS),s.stop()}}const MS=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&($c.test(e)||e==="0")&&!e.startsWith("url("));function nle(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 rle(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],o=MS(i,t),s=MS(a,t);return Af(o===s,`You are trying to animate ${t} from "${i}" to "${a}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${a} via the \`style\` property.`),!o||!s?!1:nle(e)||(n==="spring"||mR(n))&&r}const ile=new Set(["opacity","clipPath","filter","transform"]),ale=iD(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ole(e){var f;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;if(!wM((f=t==null?void 0:t.owner)==null?void 0:f.current))return!1;const{onUpdate:s,transformTemplate:l}=t.owner.getProps();return ale()&&n&&ile.has(n)&&(n!=="transform"||!l)&&!s&&!r&&i!=="mirror"&&a!==0&&o!=="inertia"}const sle=40;class ule extends tD{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:o="loop",keyframes:s,name:l,motionValue:f,element:h,...m}){var $;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=Yi.now();const g={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:o,name:l,motionValue:f,element:h,...m},b=(h==null?void 0:h.KeyframeResolver)||rD;this.keyframeResolver=new b(s,(x,A,w)=>this.onKeyframesResolved(x,A,g,!w),l,f,h),($=this.keyframeResolver)==null||$.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:o,velocity:s,delay:l,isHandoff:f,onUpdate:h}=r;this.resolvedAt=Yi.now(),rle(t,a,o,s)||((Ho.instantAnimations||!l)&&(h==null||h(eD(t,r,n))),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const g={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>sle?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!f&&ole(g)?new tle({...g,element:g.motionValue.owner.current}):new nD(g);b.finished.then(()=>this.notifyFinished()).catch(yc),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(),que()),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 lle=(e,t,n,r={},i,a)=>o=>{const s=qM(r,e)||{},l=s.delay||r.delay||0;let{elapsed:f=0}=r;f=f-ro(l);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-f,onUpdate:g=>{t.set(g),s.onUpdate&&s.onUpdate(g)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};zse(s)||Object.assign(h,Kse(e,h)),h.duration&&(h.duration=ro(h.duration)),h.repeatDelay&&(h.repeatDelay=ro(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),(Ho.instantAnimations||Ho.skipAnimations)&&(m=!0,h.duration=0,h.delay=0),h.allowFlatten=!s.type&&!s.ease,m&&!a&&t.get()!==void 0){const g=Ose(h.keyframes,s);if(g!==void 0){wa.update(()=>{h.onUpdate(g),h.onComplete()});return}}return s.isSync?new nD(h):new ule(h)},vR=new Set(["width","height","top","left","right","bottom",...bc]);function cle({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function yR(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=t;r&&(a=r);const l=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in s){const m=e.getValue(h,e.latestValues[h]??null),g=s[h];if(g===void 0||f&&cle(f,h))continue;const b={delay:n,...qM(a||{},h)},$=m.get();if($!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===$&&!b.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const w=Rse(e);if(w){const C=window.MotionHandoffAnimation(w,h,wa);C!==null&&(b.startTime=C,x=!0)}}Mse(e,h),m.start(lle(h,m,g,e.shouldReduceMotion&&vR.has(h)?{type:!1}:b,e,x));const A=m.animation;A&&l.push(A)}return o&&Promise.all(l).then(()=>{wa.update(()=>{o&&Fse(e,o)})}),l}function P1(e,t,n={}){var l;const r=tf(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(yR(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return dle(e,t,h+f,m,g,n)}:()=>Promise.resolve(),{when:s}=i;if(s){const[f,h]=s==="beforeChildren"?[a,o]:[o,a];return f().then(()=>h())}else return Promise.all([a(),o(n.delay)])}function dle(e,t,n=0,r=0,i=1,a){const o=[],s=(e.variantChildren.size-1)*r,l=i===1?(f=0)=>f*r:(f=0)=>s-f*r;return Array.from(e.variantChildren).sort(fle).forEach((f,h)=>{f.notify("AnimationStart",t),o.push(P1(f,t,{...a,delay:n+l(h)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(o)}function fle(e,t){return e.sortNodePosition(t)}function hle(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>P1(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=P1(e,t,n);else{const i=typeof t=="function"?tf(e,t,n.custom):t;r=Promise.all(yR(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function bR(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 ple=Vx.length;function xR(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?xR(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<ple;n++){const r=Vx[n],i=e.props[r];(Jd(i)||i===!1)&&(t[r]=i)}return t}const mle=[...Lx].reverse(),gle=Lx.length;function vle(e){return t=>Promise.all(t.map(({animation:n,options:r})=>hle(e,n,r)))}function yle(e){let t=vle(e),n=RS(),r=!0;const i=l=>(f,h)=>{var g;const m=tf(e,h,l==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:b,transitionEnd:$,...x}=m;f={...f,...x,...$}}return f};function a(l){t=l(e)}function o(l){const{props:f}=e,h=xR(e.parent)||{},m=[],g=new Set;let b={},$=1/0;for(let A=0;A<gle;A++){const w=mle[A],C=n[w],E=f[w]!==void 0?f[w]:h[w],T=Jd(E),P=w===l?C.isActive:null;P===!1&&($=A);let F=E===h[w]&&E!==f[w]&&T;if(F&&r&&e.manuallyAnimateOnMount&&(F=!1),C.protectedKeys={...b},!C.isActive&&P===null||!E&&!C.prevProp||Lm(E)||typeof E=="boolean")continue;const q=ble(C.prevProp,E);let te=q||w===l&&C.isActive&&!F&&T||A>$&&T,se=!1;const ae=Array.isArray(E)?E:[E];let O=ae.reduce(i(w),{});P===!1&&(O={});const{prevResolvedValues:Ee={}}=C,be={...Ee,...O},z=R=>{te=!0,g.has(R)&&(se=!0,g.delete(R)),C.needsAnimating[R]=!0;const K=e.getValue(R);K&&(K.liveStyle=!1)};for(const R in be){const K=O[R],fe=Ee[R];if(b.hasOwnProperty(R))continue;let M=!1;v1(K)&&v1(fe)?M=!bR(K,fe):M=K!==fe,M?K!=null?z(R):g.add(R):K!==void 0&&g.has(R)?z(R):C.protectedKeys[R]=!0}C.prevProp=E,C.prevResolvedValues=O,C.isActive&&(b={...b,...O}),r&&e.blockInitialAnimation&&(te=!1),te&&(!(F&&q)||se)&&m.push(...ae.map(R=>({animation:R,options:{type:w}})))}if(g.size){const A={};if(typeof f.initial!="boolean"){const w=tf(e,Array.isArray(f.initial)?f.initial[0]:f.initial);w&&w.transition&&(A.transition=w.transition)}g.forEach(w=>{const C=e.getBaseTarget(w),E=e.getValue(w);E&&(E.liveStyle=!0),A[w]=C??null}),m.push({animation:A})}let x=!!m.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(m):Promise.resolve()}function s(l,f){var m;if(n[l].isActive===f)return Promise.resolve();(m=e.variantChildren)==null||m.forEach(g=>{var b;return(b=g.animationState)==null?void 0:b.setActive(l,f)}),n[l].isActive=f;const h=o(l);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=RS(),r=!0}}}function ble(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!bR(t,e):!1}function au(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function RS(){return{animate:au(!0),whileInView:au(),whileHover:au(),whileTap:au(),whileDrag:au(),whileFocus:au(),exit:au()}}class Ec{constructor(t){this.isMounted=!1,this.node=t}update(){}}class xle extends Ec{constructor(t){super(t),t.animationState||(t.animationState=yle(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Lm(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let Dle=0;class $le extends Ec{constructor(){super(...arguments),this.id=Dle++}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 Ele={animation:{Feature:xle},exit:{Feature:$le}};function IS(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Cle=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function DR(e){return{point:{x:e.pageX,y:e.pageY}}}function wle({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ale(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}}const OS=()=>({min:0,max:0}),$R=()=>({x:OS(),y:OS()});function Sle(e,t){return wle(Ale(e.getBoundingClientRect(),t))}const Tle={y:!1};function Ple(){return Tle.y}function _le(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)}function ER(e,t){const n=_le(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function LS(e){return!(e.pointerType==="touch"||Ple())}function Ble(e,t,n={}){const[r,i,a]=ER(e,n),o=s=>{if(!LS(s))return;const{target:l}=s,f=t(l,s);if(typeof f!="function"||!l)return;const h=m=>{LS(m)&&(f(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(s=>{s.addEventListener("pointerenter",o,i)}),a}function VS(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&&wa.postRender(()=>a(t,DR(t)))}class Fle extends Ec{mount(){const{current:t}=this.node;t&&(this.unmount=Ble(t,(n,r)=>(VS(this.node,r,"Start"),i=>VS(this.node,i,"End"))))}unmount(){}}class kle extends Ec{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=jm(IS(this.node.current,"focus",()=>this.onFocus()),IS(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const CR=(e,t)=>t?e===t?!0:CR(e,t.parentElement):!1,Mle=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Rle(e){return Mle.has(e.tagName)||e.tabIndex!==-1}const ep=new WeakSet;function NS(e){return t=>{t.key==="Enter"&&e(t)}}function Py(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Ile=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=NS(()=>{if(ep.has(n))return;Py(n,"down");const i=NS(()=>{Py(n,"up")}),a=()=>Py(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 jS(e){return Cle(e)&&!0}function Ole(e,t,n={}){const[r,i,a]=ER(e,n),o=s=>{const l=s.currentTarget;if(!jS(s))return;ep.add(l);const f=t(l,s),h=(b,$)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),ep.has(l)&&ep.delete(l),jS(b)&&typeof f=="function"&&f(b,{success:$})},m=b=>{h(b,l===window||l===document||n.useGlobalTarget||CR(l,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(s=>{(n.useGlobalTarget?window:s).addEventListener("pointerdown",o,i),wM(s)&&(s.addEventListener("focus",f=>Ile(f,i)),!Rle(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),a}function KS(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&&wa.postRender(()=>a(t,DR(t)))}class Lle extends Ec{mount(){const{current:t}=this.node;t&&(this.unmount=Ole(t,(n,r)=>(KS(this.node,r,"Start"),(i,{success:a})=>KS(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const _1=new WeakMap,_y=new WeakMap,Vle=e=>{const t=_1.get(e.target);t&&t(e)},Nle=e=>{e.forEach(Vle)};function jle({root:e,...t}){const n=e||document;_y.has(n)||_y.set(n,{});const r=_y.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Nle,{root:e,...t})),r[i]}function Kle(e,t,n){const r=jle(t);return _1.set(e,n),r.observe(e),()=>{_1.delete(e),r.unobserve(e)}}const zle={some:0,all:1};class qle extends Ec{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,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:zle[i]},s=l=>{const{isIntersecting:f}=l;if(this.isInView===f||(this.isInView=f,a&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=f?h:m;g&&g(l)};return Kle(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Ule(t,n))&&this.startObserver()}unmount(){}}function Ule({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Wle={inView:{Feature:qle},tap:{Feature:Lle},focus:{Feature:kle},hover:{Feature:Fle}},B1={current:null},wR={current:!1};function Hle(){if(wR.current=!0,!!Rx)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>B1.current=e.matches;e.addListener(t),t()}else B1.current=!1}const Gle=new WeakMap;function Yle(e,t,n){for(const r in t){const i=t[r],a=n[r];if(jr(i))e.addValue(r,i);else if(jr(a))e.addValue(r,Op(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,Op(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const AR=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),SR=e=>/^0[^.\s]+$/u.test(e),Zle={test:e=>e==="auto",parse:e=>e},TR=e=>t=>t.test(e),PR=[Dc,Tt,Wl,ps,rse,nse,Zle],zS=e=>PR.find(TR(e)),Xle=[...PR,Sr,$c],Qle=e=>Xle.find(TR(e)),Jle=new Set(["brightness","contrast","saturate","opacity"]);function ece(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Gx)||[];if(!r)return e;const i=n.replace(r,"");let a=Jle.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const tce=/\b([a-z-]*)\(.*?\)/gu,F1={...$c,getAnimatableNone:e=>{const t=e.match(tce);return t?t.map(ece).join(" "):e}},nce={...Kx,color:Sr,backgroundColor:Sr,outlineColor:Sr,fill:Sr,stroke:Sr,borderColor:Sr,borderTopColor:Sr,borderRightColor:Sr,borderBottomColor:Sr,borderLeftColor:Sr,filter:F1,WebkitFilter:F1},_R=e=>nce[e];function BR(e,t){let n=_R(e);return n!==F1&&(n=$c),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const qS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class rce{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=rD,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=Yi.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,wa.render(this.render,!1,!0))};const{latestValues:l,renderState:f}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Vm(n),this.isVariantNode=TM(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];l[g]!==void 0&&jr(b)&&b.set(l[g],!1)}}mount(t){this.current=t,Gle.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),wR.current||Hle(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:B1.current,process.env.NODE_ENV!=="production"&&Ox(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),g1(this.notifyUpdate),g1(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=xc.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&wa.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),o&&o(),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 rc){const n=rc[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):$R()}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<qS.length;r++){const i=qS[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,o=t[a];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Yle(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=Op(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"&&(AR(r)||SR(r))?r=parseFloat(r):!Qle(r)&&$c.test(n)&&(r=BR(t,n)),this.setBaseTarget(t,jr(r)?r.get():r)),jr(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 o=Wx(this.props,n,(a=this.presenceContext)==null?void 0:a.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!jr(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 KM),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}const ice=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ace(e){const t=ice.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const oce=4;function FR(e,t,n=1){Bu(n<=oce,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=ace(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return AR(o)?parseFloat(o):o}return jx(i)?FR(i,t,n+1):i}function sce(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||SR(e):!0}const uce=new Set(["auto","none","0"]);function lce(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!uce.has(a)&&nf(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=BR(n,i)}class cce extends rD{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 l=0;l<t.length;l++){let f=t[l];if(typeof f=="string"&&(f=f.trim(),jx(f))){const h=FR(f,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!vR.has(r)||t.length!==2)return;const[i,a]=t,o=zS(i),s=zS(a);if(o!==s)if(BS(o)&&BS(s))for(let l=0;l<t.length;l++){const f=t[l];typeof f=="string"&&(t[l]=parseFloat(f))}else Du[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||sce(t[i]))&&r.push(i);r.length&&lce(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=Du[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 s;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,o=r[a];r[a]=Du[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(s=this.removedTransforms)!=null&&s.length&&this.removedTransforms.forEach(([l,f])=>{t.getValue(l).set(f)}),this.resolveNoneKeyframes()}}class kR extends rce{constructor(){super(...arguments),this.KeyframeResolver=cce}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;jr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function MR(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}function dce(e){return window.getComputedStyle(e)}class fce extends kR{constructor(){super(...arguments),this.type="html",this.renderInstance=MR}readValueFromInstance(t,n){var r;if(xc.has(n))return(r=this.projection)!=null&&r.isProjecting?C1(n):Vue(t,n);{const i=dce(t),a=(kM(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Sle(t,n)}build(t,n,r){zx(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Hx(t,n,r)}}const RR=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 hce(e,t,n,r){MR(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(RR.has(i)?i:Nx(i),t.attrs[i])}class pce extends kR{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$R}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(xc.has(n)){const r=_R(n);return r&&r.default||0}return n=RR.has(n)?n:Nx(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return jM(t,n,r)}build(t,n,r){OM(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){hce(t,n,r,i)}mount(t){this.isSVGTag=VM(t.tagName),super.mount(t)}}const mce=(e,t)=>Ux(e)?new pce(t):new fce(t,{allowProjection:e!==I.Fragment}),gce={renderer:mce,...Ele,...Wle},vce=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),IR=e=>Array.isArray(e)&&e.every(t=>typeof t=="object"&&!(t instanceof Array)),yce=e=>Array.isArray(e)&&e.every(t=>Array.isArray(t)),bce=e=>Array.from(e.map(t=>Object.keys(t)).reduce((t,n)=>new Set([...t,...n]),[])),xce=(e,t)=>{t=t||bce(e);let n=t,r=t;IR(t)&&(n=t.map(a=>a.label),r=t.map(a=>a.key));const i=e.map(a=>r.map(o=>Dce(o,a)));return[n,...i]},Dce=(e,t)=>{const n=e.replace(/\[([^\]]+)]/g,".$1").split(".").reduce(function(r,i,a,o){const s=r[i];if(s==null)o.splice(1);else return s},t);return n===void 0?e in t?t[e]:"":n},$ce=e=>typeof e>"u"||e===null?"":e,OR=(e,t=",",n='"')=>e.filter(r=>r).map(r=>r.map(i=>$ce(i)).map(i=>`${n}${i}${n}`).join(t)).join(`
95
- `),Ece=(e,t,n,r)=>OR(t?[t,...e]:e,n,r),Cce=(e,t,n,r)=>OR(xce(e,t),n,r),wce=(e,t,n,r)=>t?`${t.join(n)}
96
- ${e}`:e.replace(/"/g,'""'),LR=(e,t,n,r)=>{if(IR(e))return Cce(e,t,n,r);if(yce(e))return Ece(e,t,n,r);if(typeof e=="string")return wce(e,t,n);throw new TypeError('Data should be a "String", "Array of arrays" OR "Array of objects" ')},VR=(e,t,n,r,i)=>{const a=LR(e,n,r,i),o=vce()?"application/csv":"text/csv",s=new Blob([t?"\uFEFF":"",a],{type:o}),l=`data:${o};charset=utf-8,${t?"\uFEFF":""}${a}`,f=window.URL||window.webkitURL;return typeof f.createObjectURL>"u"?l:f.createObjectURL(s)};var Fh={exports:{}},kh={exports:{}},on={};/** @license React v16.13.1
94
+ R.goToAndStop(qe-R.firstFrame-1,!0)}Ne.type==="loop"&&(_e===null||_e!==Ne.frames||R.isPaused)&&(R.playSegments(Ne.frames,!0),_e=Ne.frames),Ne.type==="play"&&R.isPaused&&(R.resetSegments(!0),R.play()),Ne.type==="stop"&&R.goToAndStop(Ne.frames[0]-R.firstFrame-1,!0)}};return document.addEventListener("scroll",Be),function(){document.removeEventListener("scroll",Be)}},le=function(){var _e=function(Ne,qe){var ke=Ne,je=qe;if(ke!==-1&&je!==-1){var Te=se(M,ke,je);ke=Te.x,je=Te.y}var Ye=fe.find(function(xt){var _t=xt.position;return _t&&Array.isArray(_t.x)&&Array.isArray(_t.y)?ke>=_t.x[0]&&ke<=_t.x[1]&&je>=_t.y[0]&&je<=_t.y[1]:_t&&!Number.isNaN(_t.x)&&!Number.isNaN(_t.y)?ke===_t.x&&je===_t.y:!1});if(Ye){if(Ye.type==="seek"&&Ye.position&&Array.isArray(Ye.position.x)&&Array.isArray(Ye.position.y)&&Ye.frames.length===2){var ht=(ke-Ye.position.x[0])/(Ye.position.x[1]-Ye.position.x[0]),Ht=(je-Ye.position.y[0])/(Ye.position.y[1]-Ye.position.y[0]);R.playSegments(Ye.frames,!0),R.goToAndStop(Math.ceil((ht+Ht)/2*(Ye.frames[1]-Ye.frames[0])),!0)}Ye.type==="loop"&&R.playSegments(Ye.frames,!0),Ye.type==="play"&&(R.isPaused&&R.resetSegments(!1),R.playSegments(Ye.frames)),Ye.type==="stop"&&R.goToAndStop(Ye.frames[0],!0)}},Be=function(Ne){_e(Ne.clientX,Ne.clientY)},Ge=function(){_e(-1,-1)};return M.addEventListener("mousemove",Be),M.addEventListener("mouseout",Ge),function(){M.removeEventListener("mousemove",Be),M.removeEventListener("mouseout",Ge)}};switch(K){case"scroll":return oe();case"cursor":return le()}}},[K,R])},O=function(G){var V=G.actions,R=G.mode,K=G.lottieObj,fe=K.animationItem,M=K.View,oe=K.animationContainerRef;return ae({actions:V,animationItem:fe,mode:R,wrapperRef:oe}),M},Ee=["style","interactivity"],be=function(G){var V,R,K,fe=G.style,M=G.interactivity,oe=$(G,Ee),le=q(oe,fe),Se=le.View,_e=le.play,Be=le.stop,Ge=le.pause,Xe=le.setSpeed,Ne=le.goToAndStop,qe=le.goToAndPlay,ke=le.setDirection,je=le.playSegments,Te=le.setSubframe,Ye=le.getDuration,ht=le.destroy,Ht=le.animationContainerRef,xt=le.animationLoaded,_t=le.animationItem;return r.useEffect(function(){G.lottieRef&&(G.lottieRef.current={play:_e,stop:Be,pause:Ge,setSpeed:Xe,goToAndPlay:qe,goToAndStop:Ne,setDirection:ke,playSegments:je,setSubframe:Te,getDuration:Ye,destroy:ht,animationContainerRef:Ht,animationLoaded:xt,animationItem:_t})},[(V=G.lottieRef)===null||V===void 0?void 0:V.current]),O({lottieObj:{View:Se,play:_e,stop:Be,pause:Ge,setSpeed:Xe,goToAndStop:Ne,goToAndPlay:qe,setDirection:ke,playSegments:je,setSubframe:Te,getDuration:Ye,destroy:ht,animationContainerRef:Ht,animationLoaded:xt,animationItem:_t},actions:(R=M==null?void 0:M.actions)!==null&&R!==void 0?R:[],mode:(K=M==null?void 0:M.mode)!==null&&K!==void 0?K:"scroll"})};n.LottiePlayer=l,n.default=be,n.useLottie=q,n.useLottieInteractivity=O,Object.defineProperty(n,"__esModule",{value:!0})})}($d,$d.exports)),$d.exports}var yoe=voe();const boe=ar(yoe),xoe=I.createContext({});function Doe(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const Rx=typeof window<"u",$oe=Rx?I.useLayoutEffect:I.useEffect,$M=I.createContext(null),EM=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Eoe(e){return typeof e=="object"&&e!==null}function CM(e){return Eoe(e)&&"offsetHeight"in e}const _h=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Coe(e,t){let n=new Set,r=new Set,i=!1,a=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function l(h){o.has(h)&&(f.schedule(h),e()),h(s)}const f={schedule:(h,m=!1,g=!1)=>{const $=g&&i?n:r;return m&&o.add(h),$.has(h)||$.add(h),h},cancel:h=>{r.delete(h),o.delete(h)},process:h=>{if(s=h,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,a&&(a=!1,f.process(h))}};return f}const Ho={},woe=40;function wM(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=_h.reduce((E,T)=>(E[T]=Coe(a),E),{}),{setup:s,read:l,resolveKeyframes:f,preUpdate:h,update:m,preRender:g,render:b,postRender:$}=o,x=()=>{const E=Ho.useManualTiming?i.timestamp:performance.now();n=!1,Ho.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(E-i.timestamp,woe),1)),i.timestamp=E,i.isProcessing=!0,s.process(i),l.process(i),f.process(i),h.process(i),m.process(i),g.process(i),b.process(i),$.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(x))},A=()=>{n=!0,r=!0,i.isProcessing||e(x)};return{schedule:_h.reduce((E,T)=>{const P=o[T];return E[T]=(F,q=!1,te=!1)=>(n||A(),P.schedule(F,q,te)),E},{}),cancel:E=>{for(let T=0;T<_h.length;T++)o[_h[T]].cancel(E)},state:i,steps:o}}const yc=e=>e,{schedule:wa,cancel:p1,state:Rp}=wM(typeof requestAnimationFrame<"u"?requestAnimationFrame:yc,!0),Ix=I.createContext({strict:!1}),hS={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"]},rc={};for(const e in hS)rc[e]={isEnabled:t=>hS[e].some(n=>!!t[n])};function pS(e){for(const t in e)rc[t]={...rc[t],...e[t]}}function Aoe({children:e,features:t,strict:n=!1}){const[,r]=I.useState(!Cy(t)),i=I.useRef(void 0);if(!Cy(t)){const{renderer:a,...o}=t;i.current=a,pS(o)}return I.useEffect(()=>{Cy(t)&&t().then(({renderer:a,...o})=>{pS(o),i.current=a,r(!0)})},[]),io.jsx(Ix.Provider,{value:{renderer:i.current,strict:n},children:e})}function Cy(e){return typeof e=="function"}const Soe=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 Ip(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Soe.has(e)}let AM=e=>!Ip(e);function Toe(e){e&&(AM=t=>t.startsWith("on")?!Ip(t):e(t))}try{Toe(require("@emotion/is-prop-valid").default)}catch{}function Poe(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(AM(i)||n===!0&&Ip(i)||!t&&!Ip(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const mS=new Set;function Ox(e,t,n){e||mS.has(t)||(console.warn(t),mS.add(t))}function _oe(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Ox(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Om=I.createContext({});function Lm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Jd(e){return typeof e=="string"||Array.isArray(e)}const Lx=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Vx=["initial",...Lx];function Vm(e){return Lm(e.animate)||Vx.some(t=>Jd(e[t]))}function SM(e){return!!(Vm(e)||e.variants)}function Boe(e,t){if(Vm(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Jd(n)?n:void 0,animate:Jd(r)?r:void 0}}return e.inherit!==!1?t:{}}function Foe(e){const{initial:t,animate:n}=Boe(e,I.useContext(Om));return I.useMemo(()=>({initial:t,animate:n}),[gS(t),gS(n)])}function gS(e){return Array.isArray(e)?e.join(" "):e}const koe=Symbol.for("motionComponentSymbol");function TM(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Moe(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):TM(n)&&(n.current=r))},[t])}const Nx=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Roe="framerAppearId",PM="data-"+Nx(Roe),Ioe=I.createContext({}),{schedule:Ooe}=wM(queueMicrotask,!1);function Loe(e,t,n,r,i){var x,A;const{visualElement:a}=I.useContext(Om),o=I.useContext(Ix),s=I.useContext($M),l=I.useContext(EM).reducedMotion,f=I.useRef(null);r=r||o.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:a,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const h=f.current,m=I.useContext(Ioe);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&Voe(f.current,n,i,m);const g=I.useRef(!1);I.useInsertionEffect(()=>{h&&g.current&&h.update(n,s)});const b=n[PM],$=I.useRef(!!b&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,b))&&((A=window.MotionHasOptimisedAnimation)==null?void 0:A.call(window,b)));return $oe(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Ooe.render(h.render),$.current&&h.animationState&&h.animationState.animateChanges())}),I.useEffect(()=>{h&&(!$.current&&h.animationState&&h.animationState.animateChanges(),$.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)==null||w.call(window,b)}),$.current=!1))}),h}function Voe(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:l,layoutRoot:f,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:_M(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&TM(s),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:f})}function _M(e){if(e)return e.options.allowProjection!==!1?e.projection:_M(e.parent)}let Af=()=>{},Bu=()=>{};process.env.NODE_ENV!=="production"&&(Af=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Bu=(e,t)=>{if(!e)throw new Error(t)});function Noe({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){function a(s,l){let f;const h={...I.useContext(EM),...s,layoutId:joe(s)},{isStatic:m}=h,g=Foe(s),b=r(s,m);if(!m&&Rx){Koe(h,e);const $=zoe(h);f=$.MeasureLayout,g.visualElement=Loe(i,b,h,t,$.ProjectionNode)}return io.jsxs(Om.Provider,{value:g,children:[f&&g.visualElement?io.jsx(f,{visualElement:g.visualElement,...h}):null,n(i,s,Moe(b,g.visualElement,l),b,m,g.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const o=I.forwardRef(a);return o[koe]=i,o}function joe({layoutId:e}){const t=I.useContext(xoe).id;return t&&e!==void 0?t+"-"+e:e}function Koe(e,t){I.useContext(Ix).strict,process.env.NODE_ENV}function zoe(e){const{drag:t,layout:n}=rc;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}}const BM=e=>t=>typeof t=="string"&&t.startsWith(e),FM=BM("--"),qoe=BM("var(--"),jx=e=>qoe(e)?Uoe.test(e.split("/*")[0].trim()):!1,Uoe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Woe={},bc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],xc=new Set(bc);function kM(e,{layout:t,layoutId:n}){return xc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Woe[e]||e==="opacity")}const MM=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Fu=(e,t,n)=>n>t?t:n<e?e:n,Dc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ef={...Dc,transform:e=>Fu(0,1,e)},Bh={...Dc,default:1},vS={...Dc,transform:Math.round},Sf=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ps=Sf("deg"),Wl=Sf("%"),Tt=Sf("px"),Hoe=Sf("vh"),Goe=Sf("vw"),yS={...Wl,parse:e=>Wl.parse(e)/100,transform:e=>Wl.transform(e*100)},Yoe={rotate:ps,rotateX:ps,rotateY:ps,rotateZ:ps,scale:Bh,scaleX:Bh,scaleY:Bh,scaleZ:Bh,skew:ps,skewX:ps,skewY:ps,distance:Tt,translateX:Tt,translateY:Tt,translateZ:Tt,x:Tt,y:Tt,z:Tt,perspective:Tt,transformPerspective:Tt,opacity:ef,originX:yS,originY:yS,originZ:Tt},Kx={borderWidth:Tt,borderTopWidth:Tt,borderRightWidth:Tt,borderBottomWidth:Tt,borderLeftWidth:Tt,borderRadius:Tt,radius:Tt,borderTopLeftRadius:Tt,borderTopRightRadius:Tt,borderBottomRightRadius:Tt,borderBottomLeftRadius:Tt,width:Tt,maxWidth:Tt,height:Tt,maxHeight:Tt,top:Tt,right:Tt,bottom:Tt,left:Tt,padding:Tt,paddingTop:Tt,paddingRight:Tt,paddingBottom:Tt,paddingLeft:Tt,margin:Tt,marginTop:Tt,marginRight:Tt,marginBottom:Tt,marginLeft:Tt,backgroundPositionX:Tt,backgroundPositionY:Tt,...Yoe,zIndex:vS,fillOpacity:ef,strokeOpacity:ef,numOctaves:vS},Zoe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Xoe=bc.length;function Qoe(e,t,n){let r="",i=!0;for(let a=0;a<Xoe;a++){const o=bc[a],s=e[o];if(s===void 0)continue;let l=!0;if(typeof s=="number"?l=s===(o.startsWith("scale")?1:0):l=parseFloat(s)===0,!l||n){const f=MM(s,Kx[o]);if(!l){i=!1;const h=Zoe[o]||o;r+=`${h}(${f}) `}n&&(t[o]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function zx(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let o=!1,s=!1;for(const l in t){const f=t[l];if(xc.has(l)){o=!0;continue}else if(FM(l)){i[l]=f;continue}else{const h=MM(f,Kx[l]);l.startsWith("origin")?(s=!0,a[l]=h):r[l]=h}}if(t.transform||(o||n?r.transform=Qoe(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:l="50%",originY:f="50%",originZ:h=0}=a;r.transformOrigin=`${l} ${f} ${h}`}}const qx=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),jr=e=>!!(e&&e.getVelocity);function RM(e,t,n){for(const r in t)!jr(t[r])&&!kM(r,n)&&(e[r]=t[r])}function Joe({transformTemplate:e},t){return I.useMemo(()=>{const n=qx();return zx(n,t,e),Object.assign({},n.vars,n.style)},[t])}function ese(e,t){const n=e.style||{},r={};return RM(r,n,e),Object.assign(r,Joe(e,t)),r}function tse(e,t){const n={},r=ese(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 nse={offset:"stroke-dashoffset",array:"stroke-dasharray"},rse={offset:"strokeDashoffset",array:"strokeDasharray"};function ise(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?nse:rse;e[a.offset]=Tt.transform(-r);const o=Tt.transform(t),s=Tt.transform(n);e[a.array]=`${o} ${s}`}function IM(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},l,f,h){if(zx(e,s,f),l){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&&ise(m,i,a,o,!1)}const OM=()=>({...qx(),attrs:{}}),LM=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ase(e,t,n,r){const i=I.useMemo(()=>{const a=OM();return IM(a,t,LM(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};RM(a,e.style,e),i.style={...a,...i.style}}return i}const ose=["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 Ux(e){return typeof e!="string"||e.includes("-")?!1:!!(ose.indexOf(e)>-1||/[A-Z]/u.test(e))}function sse(e=!1){return(n,r,i,{latestValues:a},o)=>{const l=(Ux(n)?ase:tse)(r,a,o,n),f=Poe(r,typeof n=="string",e),h=n!==I.Fragment?{...f,...l,ref:i}:{},{children:m}=r,g=I.useMemo(()=>jr(m)?m.get():m,[m]);return I.createElement(n,{...h,children:g})}}function bS(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Wx(e,t,n,r){if(typeof t=="function"){const[i,a]=bS(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]=bS(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function use(e){return jr(e)?e.get():e}function lse({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:cse(n,r,i,e),renderState:t()}}const VM=e=>(t,n)=>{const r=I.useContext(Om),i=I.useContext($M),a=()=>lse(e,t,r,i);return n?a():Doe(a)};function cse(e,t,n,r){const i={},a=r(e,{});for(const g in a)i[g]=use(a[g]);let{initial:o,animate:s}=e;const l=Vm(e),f=SM(e);t&&f&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let h=n?n.initial===!1:!1;h=h||o===!1;const m=h?s:o;if(m&&typeof m!="boolean"&&!Lm(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const $=Wx(e,g[b]);if($){const{transitionEnd:x,transition:A,...w}=$;for(const C in w){let E=w[C];if(Array.isArray(E)){const T=h?E.length-1:0;E=E[T]}E!==null&&(i[C]=E)}for(const C in x)i[C]=x[C]}}}return i}function Hx(e,t,n){var a;const{style:r}=e,i={};for(const o in r)(jr(r[o])||t.style&&jr(t.style[o])||kM(o,e)||((a=n==null?void 0:n.getValue(o))==null?void 0:a.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const dse={useVisualState:VM({scrapeMotionValuesFromProps:Hx,createRenderState:qx})};function NM(e,t,n){const r=Hx(e,t,n);for(const i in e)if(jr(e[i])||jr(t[i])){const a=bc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const fse={useVisualState:VM({scrapeMotionValuesFromProps:NM,createRenderState:OM})};function hse(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...Ux(r)?fse:dse,preloadedFeatures:e,useRender:sse(i),createVisualElement:t,Component:r};return Noe(o)}}const pse=hse(),mse=_oe(pse);function tf(e,t,n){const r=e.getProps();return Wx(r,t,n!==void 0?n:r.custom,e)}const m1=e=>Array.isArray(e);let Qh;function gse(){Qh=void 0}const Yi={now:()=>(Qh===void 0&&Yi.set(Rp.isProcessing||Ho.useManualTiming?Rp.timestamp:performance.now()),Qh),set:e=>{Qh=e,queueMicrotask(gse)}};function vse(e,t){e.indexOf(t)===-1&&e.push(t)}function yse(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class jM{constructor(){this.subscriptions=[]}add(t){return vse(this.subscriptions,t),()=>yse(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 o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function KM(e,t){return t?e*(1e3/t):0}const xS=30,bse=e=>!isNaN(parseFloat(e));class xse{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{var o,s;const a=Yi.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty();i&&((s=this.events.renderRequest)==null||s.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Yi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=bse(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Ox(!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 jM);const r=this.events[t].add(n);return t==="change"?()=>{r(),wa.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,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}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 this.current}getPrevious(){return this.prev}getVelocity(){const t=Yi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>xS)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,xS);return KM(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 Op(e,t){return new xse(e,t)}function Dse(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Op(n))}function $se(e){return m1(e)?e[e.length-1]||0:e}function Ese(e,t){const n=tf(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const s=$se(a[o]);Dse(e,o,s)}}function Cse(e){return!!(jr(e)&&e.add)}function wse(e,t){const n=e.getValue("willChange");if(Cse(n))return n.add(t);if(!n&&Ho.WillChange){const r=new Ho.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Ase(e){return e.props[PM]}const Sse=e=>e!==null;function Tse(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Sse),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const Pse={type:"spring",stiffness:500,damping:25,restSpeed:10},_se=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Bse={type:"keyframes",duration:.8},Fse={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},kse=(e,{keyframes:t})=>t.length>2?Bse:xc.has(e)?e.startsWith("scale")?_se(t[1]):Pse:Fse;function Mse({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:l,elapsed:f,...h}){return!!Object.keys(h).length}function zM(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const ro=e=>e*1e3,Ko=e=>e/1e3,Id=e=>Math.round(e*1e5)/1e5,Gx=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Rse(e){return e==null}const Ise=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Yx=(e,t)=>n=>!!(typeof n=="string"&&Ise.test(n)&&n.startsWith(e)||t&&!Rse(n)&&Object.prototype.hasOwnProperty.call(n,t)),qM=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,s]=r.match(Gx);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},Ose=e=>Fu(0,255,e),wy={...Dc,transform:e=>Math.round(Ose(e))},mu={test:Yx("rgb","red"),parse:qM("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+wy.transform(e)+", "+wy.transform(t)+", "+wy.transform(n)+", "+Id(ef.transform(r))+")"};function Lse(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 g1={test:Yx("#"),parse:Lse,transform:mu.transform},Ml={test:Yx("hsl","hue"),parse:qM("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Wl.transform(Id(t))+", "+Wl.transform(Id(n))+", "+Id(ef.transform(r))+")"},Sr={test:e=>mu.test(e)||g1.test(e)||Ml.test(e),parse:e=>mu.test(e)?mu.parse(e):Ml.test(e)?Ml.parse(e):g1.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?mu.transform(e):Ml.transform(e)},Vse=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Nse(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Gx))==null?void 0:t.length)||0)+(((n=e.match(Vse))==null?void 0:n.length)||0)>0}const UM="number",WM="color",jse="var",Kse="var(",DS="${}",zse=/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 nf(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const s=t.replace(zse,l=>(Sr.test(l)?(r.color.push(a),i.push(WM),n.push(Sr.parse(l))):l.startsWith(Kse)?(r.var.push(a),i.push(jse),n.push(l)):(r.number.push(a),i.push(UM),n.push(parseFloat(l))),++a,DS)).split(DS);return{values:n,split:s,indexes:r,types:i}}function HM(e){return nf(e).values}function GM(e){const{split:t,types:n}=nf(e),r=t.length;return i=>{let a="";for(let o=0;o<r;o++)if(a+=t[o],i[o]!==void 0){const s=n[o];s===UM?a+=Id(i[o]):s===WM?a+=Sr.transform(i[o]):a+=i[o]}return a}}const qse=e=>typeof e=="number"?0:e;function Use(e){const t=HM(e);return GM(e)(t.map(qse))}const $c={test:Nse,parse:HM,createTransformer:GM,getAnimatableNone:Use};function Ay(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 Wse({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=Ay(l,s,e+1/3),a=Ay(l,s,e),o=Ay(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Lp(e,t){return n=>n>0?t:e}const Nm=(e,t,n)=>e+(t-e)*n,Sy=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Hse=[g1,mu,Ml],Gse=e=>Hse.find(t=>t.test(e));function $S(e){const t=Gse(e);if(Af(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Ml&&(n=Wse(n)),n}const ES=(e,t)=>{const n=$S(e),r=$S(t);if(!n||!r)return Lp(e,t);const i={...n};return a=>(i.red=Sy(n.red,r.red,a),i.green=Sy(n.green,r.green,a),i.blue=Sy(n.blue,r.blue,a),i.alpha=Nm(n.alpha,r.alpha,a),mu.transform(i))},v1=new Set(["none","hidden"]);function Yse(e,t){return v1.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}const Zse=(e,t)=>n=>t(e(n)),jm=(...e)=>e.reduce(Zse);function Xse(e,t){return n=>Nm(e,t,n)}function Zx(e){return typeof e=="number"?Xse:typeof e=="string"?jx(e)?Lp:Sr.test(e)?ES:eue:Array.isArray(e)?YM:typeof e=="object"?Sr.test(e)?ES:Qse:Lp}function YM(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>Zx(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}}function Qse(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Zx(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function Jse(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],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}const eue=(e,t)=>{const n=$c.createTransformer(t),r=nf(e),i=nf(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?v1.has(e)&&!i.values.length||v1.has(t)&&!r.values.length?Yse(e,t):jm(YM(Jse(r,i),i.values),n):(Af(!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.`),Lp(e,t))};function ZM(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Nm(e,t,n):Zx(e)(e,t)}const tue=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>wa.update(t,n),stop:()=>p1(t),now:()=>Rp.isProcessing?Rp.timestamp:Yi.now()}},XM=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=e(a/(i-1))+", ";return`linear(${r.substring(0,r.length-2)})`},Vp=2e4;function Xx(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Vp;)t+=n,r=e.next(t);return t>=Vp?1/0:t}function nue(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Xx(r),Vp);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:Ko(i)}}const rue=5;function QM(e,t,n){const r=Math.max(t-rue,0);return KM(n-e(r),t-r)}const Fn={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},Ty=.001;function iue({duration:e=Fn.duration,bounce:t=Fn.bounce,velocity:n=Fn.velocity,mass:r=Fn.mass}){let i,a;Af(e<=ro(Fn.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=Fu(Fn.minDamping,Fn.maxDamping,o),e=Fu(Fn.minDuration,Fn.maxDuration,Ko(e)),o<1?(i=f=>{const h=f*o,m=h*e,g=h-n,b=y1(f,o),$=Math.exp(-m);return Ty-g/b*$},a=f=>{const m=f*o*e,g=m*n+n,b=Math.pow(o,2)*Math.pow(f,2)*e,$=Math.exp(-m),x=y1(Math.pow(f,2),o);return(-i(f)+Ty>0?-1:1)*((g-b)*$)/x}):(i=f=>{const h=Math.exp(-f*e),m=(f-n)*e+1;return-Ty+h*m},a=f=>{const h=Math.exp(-f*e),m=(n-f)*(e*e);return h*m});const s=5/e,l=oue(i,a,s);if(e=ro(e),isNaN(l))return{stiffness:Fn.stiffness,damping:Fn.damping,duration:e};{const f=Math.pow(l,2)*r;return{stiffness:f,damping:o*2*Math.sqrt(r*f),duration:e}}}const aue=12;function oue(e,t,n){let r=n;for(let i=1;i<aue;i++)r=r-e(r)/t(r);return r}function y1(e,t){return e*Math.sqrt(1-t*t)}const sue=["duration","bounce"],uue=["stiffness","damping","mass"];function CS(e,t){return t.some(n=>e[n]!==void 0)}function lue(e){let t={velocity:Fn.velocity,stiffness:Fn.stiffness,damping:Fn.damping,mass:Fn.mass,isResolvedFromDuration:!1,...e};if(!CS(e,uue)&&CS(e,sue))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Fu(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Fn.mass,stiffness:i,damping:a}}else{const n=iue(e);t={...t,...n,mass:Fn.mass},t.isResolvedFromDuration=!0}return t}function Np(e=Fn.visualDuration,t=Fn.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],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:l,damping:f,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=lue({...n,velocity:-Ko(n.velocity||0)}),$=g||0,x=f/(2*Math.sqrt(l*h)),A=o-a,w=Ko(Math.sqrt(l/h)),C=Math.abs(A)<5;r||(r=C?Fn.restSpeed.granular:Fn.restSpeed.default),i||(i=C?Fn.restDelta.granular:Fn.restDelta.default);let E;if(x<1){const P=y1(w,x);E=F=>{const q=Math.exp(-x*w*F);return o-q*(($+x*w*A)/P*Math.sin(P*F)+A*Math.cos(P*F))}}else if(x===1)E=P=>o-Math.exp(-w*P)*(A+($+w*A)*P);else{const P=w*Math.sqrt(x*x-1);E=F=>{const q=Math.exp(-x*w*F),te=Math.min(P*F,300);return o-q*(($+x*w*A)*Math.sinh(te)+P*A*Math.cosh(te))/P}}const T={calculatedDuration:b&&m||null,next:P=>{const F=E(P);if(b)s.done=P>=m;else{let q=P===0?$:0;x<1&&(q=P===0?ro($):QM(E,P,F));const te=Math.abs(q)<=r,se=Math.abs(o-F)<=i;s.done=te&&se}return s.value=s.done?o:F,s},toString:()=>{const P=Math.min(Xx(T),Vp),F=XM(q=>T.next(P*q).value,P,30);return P+"ms "+F},toTransition:()=>{}};return T}Np.applyToOptions=e=>{const t=nue(e,100,Np);return e.ease=t.ease,e.duration=ro(t.duration),e.type="keyframes",e};function b1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:f=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=te=>s!==void 0&&te<s||l!==void 0&&te>l,$=te=>s===void 0?l:l===void 0||Math.abs(s-te)<Math.abs(l-te)?s:l;let x=n*t;const A=m+x,w=o===void 0?A:o(A);w!==A&&(x=w-m);const C=te=>-x*Math.exp(-te/r),E=te=>w+C(te),T=te=>{const se=C(te),ae=E(te);g.done=Math.abs(se)<=f,g.value=g.done?w:ae};let P,F;const q=te=>{b(g.value)&&(P=te,F=Np({keyframes:[g.value,$(g.value)],velocity:QM(E,te,g.value),damping:i,stiffness:a,restDelta:f,restSpeed:h}))};return q(0),{calculatedDuration:null,next:te=>{let se=!1;return!F&&P===void 0&&(se=!0,T(te),q(te)),P!==void 0&&te>=P?F.next(te-P):(!se&&T(te),g)}}}const JM=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};function cue(e,t,n){const r=[],i=n||Ho.mix||ZM,a=e.length-1;for(let o=0;o<a;o++){let s=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||yc:t;s=jm(l,s)}r.push(s)}return r}function due(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(Bu(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=cue(t,r,i),l=s.length,f=h=>{if(o&&h<e[0])return t[0];let m=0;if(l>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=JM(e[m],e[m+1],h);return s[m](g)};return n?h=>f(Fu(e[0],e[a-1],h)):f}function fue(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=JM(0,t,r);e.push(Nm(n,1,i))}}function hue(e){const t=[0];return fue(t,e.length-1),t}function pue(e,t){return e.map(n=>n*t)}const eR=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,mue=1e-7,gue=12;function vue(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=eR(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>mue&&++s<gue);return o}function Tf(e,t,n,r){if(e===t&&n===r)return yc;const i=a=>vue(a,0,1,e,n);return a=>a===0||a===1?a:eR(i(a),t,r)}const yue=Tf(.42,0,1,1),bue=Tf(0,0,.58,1),tR=Tf(.42,0,.58,1),xue=e=>Array.isArray(e)&&typeof e[0]!="number",nR=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,rR=e=>t=>1-e(1-t),iR=Tf(.33,1.53,.69,.99),Qx=rR(iR),aR=nR(Qx),oR=e=>(e*=2)<1?.5*Qx(e):.5*(2-Math.pow(2,-10*(e-1))),Jx=e=>1-Math.sin(Math.acos(e)),Due=rR(Jx),sR=nR(Jx),uR=e=>Array.isArray(e)&&typeof e[0]=="number",wS={linear:yc,easeIn:yue,easeInOut:tR,easeOut:bue,circIn:Jx,circInOut:sR,circOut:Due,backIn:Qx,backInOut:aR,backOut:iR,anticipate:oR},$ue=e=>typeof e=="string",AS=e=>{if(uR(e)){Bu(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Tf(t,n,r,i)}else if($ue(e))return Bu(wS[e]!==void 0,`Invalid easing type '${e}'`),wS[e];return e};function Eue(e,t){return e.map(()=>t||tR).splice(0,e.length-1)}function Rl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=xue(r)?r.map(AS):AS(r),a={done:!1,value:t[0]},o=pue(n&&n.length===t.length?n:hue(t),e),s=due(o,t,{ease:Array.isArray(i)?i:Eue(t,i)});return{calculatedDuration:e,next:l=>(a.value=s(l),a.done=l>=e,a)}}const Cue=e=>e!==null;function eD(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(Cue),s=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!s||r===void 0?a[s]:r}const wue={decay:b1,inertia:b1,tween:Rl,keyframes:Rl,spring:Np};function lR(e){typeof e.type=="string"&&(e.type=wue[e.type])}class tD{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 Aue=e=>e/100;class nD extends tD{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!==Yi.now()&&this.tick(Yi.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;lR(t);const{type:n=Rl,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=t;let{keyframes:s}=t;const l=n||Rl;process.env.NODE_ENV!=="production"&&l!==Rl&&Bu(s.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${s}`),l!==Rl&&typeof s[0]!="number"&&(this.mixKeyframes=jm(Aue,ZM(s[0],s[1])),s=[0,100]);const f=l({...t,keyframes:s});a==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-o})),f.calculatedDuration===null&&(f.calculatedDuration=Xx(f));const{calculatedDuration:h}=f;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=f}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:o,resolvedDuration:s,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:f=0,keyframes:h,repeat:m,repeatType:g,repeatDelay:b,type:$,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 w=this.currentTime-f*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?w<0:w>i;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let E=this.currentTime,T=r;if(m){const te=Math.min(this.currentTime,i)/s;let se=Math.floor(te),ae=te%1;!ae&&te>=1&&(ae=1),ae===1&&se--,se=Math.min(se,m+1),!!(se%2)&&(g==="reverse"?(ae=1-ae,b&&(ae-=b/s)):g==="mirror"&&(T=o)),E=Fu(0,1,ae)*s}const P=C?{done:!1,value:h[0]}:T.next(E);a&&(P.value=a(P.value));let{done:F}=P;!C&&l!==null&&(F=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const q=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return q&&$!==b1&&(P.value=eD(h,this.options,A,this.speed)),x&&x(P.value),q&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return Ko(this.calculatedDuration)}get time(){return Ko(this.currentTime)}set time(t){var n;t=ro(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(Yi.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ko(this.currentTime))}play(){var i,a;if(this.isStopped)return;const{driver:t=tue,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(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(Yi.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 Sue(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const gu=e=>e*180/Math.PI,x1=e=>{const t=gu(Math.atan2(e[1],e[0]));return D1(t)},Tue={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:x1,rotateZ:x1,skewX:e=>gu(Math.atan(e[1])),skewY:e=>gu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},D1=e=>(e=e%360,e<0&&(e+=360),e),SS=x1,TS=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),PS=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Pue={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:TS,scaleY:PS,scale:e=>(TS(e)+PS(e))/2,rotateX:e=>D1(gu(Math.atan2(e[6],e[5]))),rotateY:e=>D1(gu(Math.atan2(-e[2],e[0]))),rotateZ:SS,rotate:SS,skewX:e=>gu(Math.atan(e[4])),skewY:e=>gu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function $1(e){return e.includes("scale")?1:0}function E1(e,t){if(!e||e==="none")return $1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Pue,i=n;else{const s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Tue,i=s}if(!i)return $1(t);const a=r[t],o=i[1].split(",").map(Bue);return typeof a=="function"?a(o):o[a]}const _ue=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return E1(n,t)};function Bue(e){return parseFloat(e.trim())}const _S=e=>e===Dc||e===Tt,Fue=new Set(["x","y","z"]),kue=bc.filter(e=>!Fue.has(e));function Mue(e){const t=[];return kue.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Du={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})=>E1(t,"x"),y:(e,{transform:t})=>E1(t,"y")};Du.translateX=Du.x;Du.translateY=Du.y;const $u=new Set;let C1=!1,w1=!1,A1=!1;function cR(){if(w1){const e=Array.from($u).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Mue(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,o])=>{var s;(s=r.getValue(a))==null||s.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}w1=!1,C1=!1,$u.forEach(e=>e.complete(A1)),$u.clear()}function dR(){$u.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(w1=!0)})}function Rue(){A1=!0,dR(),cR(),A1=!1}class rD{constructor(t,n,r,i,a,o=!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=o}scheduleResolve(){this.state="scheduled",this.isAsync?($u.add(this),C1||(C1=!0,wa.read(dR),wa.resolveKeyframes(cR))):(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(),o=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const s=r.readValue(n,o);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=o),i&&a===void 0&&i.set(t[0])}Sue(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),$u.delete(this)}cancel(){this.state==="scheduled"&&($u.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Iue=e=>e.startsWith("--");function Oue(e,t,n){Iue(t)?e.style.setProperty(t,n):e.style[t]=n}function iD(e){let t;return()=>(t===void 0&&(t=e()),t)}const Lue=iD(()=>window.ScrollTimeline!==void 0),Vue={};function Nue(e,t){const n=iD(e);return()=>Vue[t]??n()}const fR=Nue(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ed=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,BS={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ed([0,.65,.55,1]),circOut:Ed([.55,0,1,.45]),backIn:Ed([.31,.01,.66,-.59]),backOut:Ed([.33,1.53,.69,.99])};function hR(e,t){if(e)return typeof e=="function"?fR()?XM(e,t):"ease-out":uR(e)?Ed(e):Array.isArray(e)?e.map(n=>hR(n,t)||BS.easeOut):BS[e]}function jue(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:s="easeOut",times:l}={},f=void 0){const h={[t]:n};l&&(h.offset=l);const m=hR(s,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:o==="reverse"?"alternate":"normal"};return f&&(g.pseudoElement=f),e.animate(h,g)}function pR(e){return typeof e=="function"&&"applyToOptions"in e}function Kue({type:e,...t}){return pR(e)&&fR()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class zue extends tD{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:o=!1,finalKeyframe:s,onComplete:l}=t;this.isPseudoElement=!!a,this.allowFlatten=o,this.options=t,Bu(typeof t.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);const f=Kue(t);this.animation=jue(n,r,i,f,a),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const h=eD(i,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(h):Oue(n,r,h),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Ko(Number(t))}get time(){return Ko(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ro(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&&Lue()?(this.animation.timeline=t,yc):n(this)}}const mR={anticipate:oR,backInOut:aR,circInOut:sR};function que(e){return e in mR}function Uue(e){typeof e.ease=="string"&&que(e.ease)&&(e.ease=mR[e.ease])}const FS=10;class Wue extends zue{constructor(t){Uue(t),lR(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const s=new nD({...o,autoplay:!1}),l=ro(this.finishedTime??this.time);n.setWithVelocity(s.sample(l-FS).value,s.sample(l).value,FS),s.stop()}}const kS=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&($c.test(e)||e==="0")&&!e.startsWith("url("));function Hue(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 Gue(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],o=kS(i,t),s=kS(a,t);return Af(o===s,`You are trying to animate ${t} from "${i}" to "${a}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${a} via the \`style\` property.`),!o||!s?!1:Hue(e)||(n==="spring"||pR(n))&&r}const Yue=new Set(["opacity","clipPath","filter","transform"]),Zue=iD(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Xue(e){var f;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;if(!CM((f=t==null?void 0:t.owner)==null?void 0:f.current))return!1;const{onUpdate:s,transformTemplate:l}=t.owner.getProps();return Zue()&&n&&Yue.has(n)&&(n!=="transform"||!l)&&!s&&!r&&i!=="mirror"&&a!==0&&o!=="inertia"}const Que=40;class Jue extends tD{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:o="loop",keyframes:s,name:l,motionValue:f,element:h,...m}){var $;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=Yi.now();const g={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:o,name:l,motionValue:f,element:h,...m},b=(h==null?void 0:h.KeyframeResolver)||rD;this.keyframeResolver=new b(s,(x,A,w)=>this.onKeyframesResolved(x,A,g,!w),l,f,h),($=this.keyframeResolver)==null||$.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:o,velocity:s,delay:l,isHandoff:f,onUpdate:h}=r;this.resolvedAt=Yi.now(),Gue(t,a,o,s)||((Ho.instantAnimations||!l)&&(h==null||h(eD(t,r,n))),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const g={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Que?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!f&&Xue(g)?new Wue({...g,element:g.motionValue.owner.current}):new nD(g);b.finished.then(()=>this.notifyFinished()).catch(yc),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(),Rue()),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 ele=(e,t,n,r={},i,a)=>o=>{const s=zM(r,e)||{},l=s.delay||r.delay||0;let{elapsed:f=0}=r;f=f-ro(l);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-f,onUpdate:g=>{t.set(g),s.onUpdate&&s.onUpdate(g)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Mse(s)||Object.assign(h,kse(e,h)),h.duration&&(h.duration=ro(h.duration)),h.repeatDelay&&(h.repeatDelay=ro(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),(Ho.instantAnimations||Ho.skipAnimations)&&(m=!0,h.duration=0,h.delay=0),h.allowFlatten=!s.type&&!s.ease,m&&!a&&t.get()!==void 0){const g=Tse(h.keyframes,s);if(g!==void 0){wa.update(()=>{h.onUpdate(g),h.onComplete()});return}}return s.isSync?new nD(h):new Jue(h)},gR=new Set(["width","height","top","left","right","bottom",...bc]);function tle({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function vR(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=t;r&&(a=r);const l=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in s){const m=e.getValue(h,e.latestValues[h]??null),g=s[h];if(g===void 0||f&&tle(f,h))continue;const b={delay:n,...zM(a||{},h)},$=m.get();if($!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===$&&!b.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const w=Ase(e);if(w){const C=window.MotionHandoffAnimation(w,h,wa);C!==null&&(b.startTime=C,x=!0)}}wse(e,h),m.start(ele(h,m,g,e.shouldReduceMotion&&gR.has(h)?{type:!1}:b,e,x));const A=m.animation;A&&l.push(A)}return o&&Promise.all(l).then(()=>{wa.update(()=>{o&&Ese(e,o)})}),l}function S1(e,t,n={}){var l;const r=tf(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(vR(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return nle(e,t,h+f,m,g,n)}:()=>Promise.resolve(),{when:s}=i;if(s){const[f,h]=s==="beforeChildren"?[a,o]:[o,a];return f().then(()=>h())}else return Promise.all([a(),o(n.delay)])}function nle(e,t,n=0,r=0,i=1,a){const o=[],s=(e.variantChildren.size-1)*r,l=i===1?(f=0)=>f*r:(f=0)=>s-f*r;return Array.from(e.variantChildren).sort(rle).forEach((f,h)=>{f.notify("AnimationStart",t),o.push(S1(f,t,{...a,delay:n+l(h)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(o)}function rle(e,t){return e.sortNodePosition(t)}function ile(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>S1(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=S1(e,t,n);else{const i=typeof t=="function"?tf(e,t,n.custom):t;r=Promise.all(vR(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function yR(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 ale=Vx.length;function bR(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?bR(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<ale;n++){const r=Vx[n],i=e.props[r];(Jd(i)||i===!1)&&(t[r]=i)}return t}const ole=[...Lx].reverse(),sle=Lx.length;function ule(e){return t=>Promise.all(t.map(({animation:n,options:r})=>ile(e,n,r)))}function lle(e){let t=ule(e),n=MS(),r=!0;const i=l=>(f,h)=>{var g;const m=tf(e,h,l==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:b,transitionEnd:$,...x}=m;f={...f,...x,...$}}return f};function a(l){t=l(e)}function o(l){const{props:f}=e,h=bR(e.parent)||{},m=[],g=new Set;let b={},$=1/0;for(let A=0;A<sle;A++){const w=ole[A],C=n[w],E=f[w]!==void 0?f[w]:h[w],T=Jd(E),P=w===l?C.isActive:null;P===!1&&($=A);let F=E===h[w]&&E!==f[w]&&T;if(F&&r&&e.manuallyAnimateOnMount&&(F=!1),C.protectedKeys={...b},!C.isActive&&P===null||!E&&!C.prevProp||Lm(E)||typeof E=="boolean")continue;const q=cle(C.prevProp,E);let te=q||w===l&&C.isActive&&!F&&T||A>$&&T,se=!1;const ae=Array.isArray(E)?E:[E];let O=ae.reduce(i(w),{});P===!1&&(O={});const{prevResolvedValues:Ee={}}=C,be={...Ee,...O},z=R=>{te=!0,g.has(R)&&(se=!0,g.delete(R)),C.needsAnimating[R]=!0;const K=e.getValue(R);K&&(K.liveStyle=!1)};for(const R in be){const K=O[R],fe=Ee[R];if(b.hasOwnProperty(R))continue;let M=!1;m1(K)&&m1(fe)?M=!yR(K,fe):M=K!==fe,M?K!=null?z(R):g.add(R):K!==void 0&&g.has(R)?z(R):C.protectedKeys[R]=!0}C.prevProp=E,C.prevResolvedValues=O,C.isActive&&(b={...b,...O}),r&&e.blockInitialAnimation&&(te=!1),te&&(!(F&&q)||se)&&m.push(...ae.map(R=>({animation:R,options:{type:w}})))}if(g.size){const A={};if(typeof f.initial!="boolean"){const w=tf(e,Array.isArray(f.initial)?f.initial[0]:f.initial);w&&w.transition&&(A.transition=w.transition)}g.forEach(w=>{const C=e.getBaseTarget(w),E=e.getValue(w);E&&(E.liveStyle=!0),A[w]=C??null}),m.push({animation:A})}let x=!!m.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(m):Promise.resolve()}function s(l,f){var m;if(n[l].isActive===f)return Promise.resolve();(m=e.variantChildren)==null||m.forEach(g=>{var b;return(b=g.animationState)==null?void 0:b.setActive(l,f)}),n[l].isActive=f;const h=o(l);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=MS(),r=!0}}}function cle(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!yR(t,e):!1}function au(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function MS(){return{animate:au(!0),whileInView:au(),whileHover:au(),whileTap:au(),whileDrag:au(),whileFocus:au(),exit:au()}}class Ec{constructor(t){this.isMounted=!1,this.node=t}update(){}}class dle extends Ec{constructor(t){super(t),t.animationState||(t.animationState=lle(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Lm(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let fle=0;class hle extends Ec{constructor(){super(...arguments),this.id=fle++}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 ple={animation:{Feature:dle},exit:{Feature:hle}};function RS(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const mle=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function xR(e){return{point:{x:e.pageX,y:e.pageY}}}function gle({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function vle(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}}const IS=()=>({min:0,max:0}),DR=()=>({x:IS(),y:IS()});function yle(e,t){return gle(vle(e.getBoundingClientRect(),t))}const ble={y:!1};function xle(){return ble.y}function Dle(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)}function $R(e,t){const n=Dle(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function OS(e){return!(e.pointerType==="touch"||xle())}function $le(e,t,n={}){const[r,i,a]=$R(e,n),o=s=>{if(!OS(s))return;const{target:l}=s,f=t(l,s);if(typeof f!="function"||!l)return;const h=m=>{OS(m)&&(f(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(s=>{s.addEventListener("pointerenter",o,i)}),a}function LS(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&&wa.postRender(()=>a(t,xR(t)))}class Ele extends Ec{mount(){const{current:t}=this.node;t&&(this.unmount=$le(t,(n,r)=>(LS(this.node,r,"Start"),i=>LS(this.node,i,"End"))))}unmount(){}}class Cle extends Ec{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=jm(RS(this.node.current,"focus",()=>this.onFocus()),RS(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const ER=(e,t)=>t?e===t?!0:ER(e,t.parentElement):!1,wle=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ale(e){return wle.has(e.tagName)||e.tabIndex!==-1}const Jh=new WeakSet;function VS(e){return t=>{t.key==="Enter"&&e(t)}}function Py(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Sle=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=VS(()=>{if(Jh.has(n))return;Py(n,"down");const i=VS(()=>{Py(n,"up")}),a=()=>Py(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 NS(e){return mle(e)&&!0}function Tle(e,t,n={}){const[r,i,a]=$R(e,n),o=s=>{const l=s.currentTarget;if(!NS(s))return;Jh.add(l);const f=t(l,s),h=(b,$)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),Jh.has(l)&&Jh.delete(l),NS(b)&&typeof f=="function"&&f(b,{success:$})},m=b=>{h(b,l===window||l===document||n.useGlobalTarget||ER(l,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(s=>{(n.useGlobalTarget?window:s).addEventListener("pointerdown",o,i),CM(s)&&(s.addEventListener("focus",f=>Sle(f,i)),!Ale(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),a}function jS(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&&wa.postRender(()=>a(t,xR(t)))}class Ple extends Ec{mount(){const{current:t}=this.node;t&&(this.unmount=Tle(t,(n,r)=>(jS(this.node,r,"Start"),(i,{success:a})=>jS(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const T1=new WeakMap,_y=new WeakMap,_le=e=>{const t=T1.get(e.target);t&&t(e)},Ble=e=>{e.forEach(_le)};function Fle({root:e,...t}){const n=e||document;_y.has(n)||_y.set(n,{});const r=_y.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Ble,{root:e,...t})),r[i]}function kle(e,t,n){const r=Fle(t);return T1.set(e,n),r.observe(e),()=>{T1.delete(e),r.unobserve(e)}}const Mle={some:0,all:1};class Rle extends Ec{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,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Mle[i]},s=l=>{const{isIntersecting:f}=l;if(this.isInView===f||(this.isInView=f,a&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=f?h:m;g&&g(l)};return kle(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Ile(t,n))&&this.startObserver()}unmount(){}}function Ile({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Ole={inView:{Feature:Rle},tap:{Feature:Ple},focus:{Feature:Cle},hover:{Feature:Ele}},P1={current:null},CR={current:!1};function Lle(){if(CR.current=!0,!!Rx)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>P1.current=e.matches;e.addListener(t),t()}else P1.current=!1}const Vle=new WeakMap;function Nle(e,t,n){for(const r in t){const i=t[r],a=n[r];if(jr(i))e.addValue(r,i);else if(jr(a))e.addValue(r,Op(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,Op(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const wR=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),AR=e=>/^0[^.\s]+$/u.test(e),jle={test:e=>e==="auto",parse:e=>e},SR=e=>t=>t.test(e),TR=[Dc,Tt,Wl,ps,Goe,Hoe,jle],KS=e=>TR.find(SR(e)),Kle=[...TR,Sr,$c],zle=e=>Kle.find(SR(e)),qle=new Set(["brightness","contrast","saturate","opacity"]);function Ule(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Gx)||[];if(!r)return e;const i=n.replace(r,"");let a=qle.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const Wle=/\b([a-z-]*)\(.*?\)/gu,_1={...$c,getAnimatableNone:e=>{const t=e.match(Wle);return t?t.map(Ule).join(" "):e}},Hle={...Kx,color:Sr,backgroundColor:Sr,outlineColor:Sr,fill:Sr,stroke:Sr,borderColor:Sr,borderTopColor:Sr,borderRightColor:Sr,borderBottomColor:Sr,borderLeftColor:Sr,filter:_1,WebkitFilter:_1},PR=e=>Hle[e];function _R(e,t){let n=PR(e);return n!==_1&&(n=$c),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const zS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Gle{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=rD,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=Yi.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,wa.render(this.render,!1,!0))};const{latestValues:l,renderState:f}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Vm(n),this.isVariantNode=SM(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];l[g]!==void 0&&jr(b)&&b.set(l[g],!1)}}mount(t){this.current=t,Vle.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),CR.current||Lle(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:P1.current,process.env.NODE_ENV!=="production"&&Ox(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),p1(this.notifyUpdate),p1(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=xc.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&wa.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),o&&o(),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 rc){const n=rc[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):DR()}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<zS.length;r++){const i=zS[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,o=t[a];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Nle(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=Op(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"&&(wR(r)||AR(r))?r=parseFloat(r):!zle(r)&&$c.test(n)&&(r=_R(t,n)),this.setBaseTarget(t,jr(r)?r.get():r)),jr(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 o=Wx(this.props,n,(a=this.presenceContext)==null?void 0:a.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!jr(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 jM),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}const Yle=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Zle(e){const t=Yle.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const Xle=4;function BR(e,t,n=1){Bu(n<=Xle,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=Zle(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return wR(o)?parseFloat(o):o}return jx(i)?BR(i,t,n+1):i}function Qle(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||AR(e):!0}const Jle=new Set(["auto","none","0"]);function ece(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!Jle.has(a)&&nf(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=_R(n,i)}class tce extends rD{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 l=0;l<t.length;l++){let f=t[l];if(typeof f=="string"&&(f=f.trim(),jx(f))){const h=BR(f,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!gR.has(r)||t.length!==2)return;const[i,a]=t,o=KS(i),s=KS(a);if(o!==s)if(_S(o)&&_S(s))for(let l=0;l<t.length;l++){const f=t[l];typeof f=="string"&&(t[l]=parseFloat(f))}else Du[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||Qle(t[i]))&&r.push(i);r.length&&ece(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=Du[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 s;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,o=r[a];r[a]=Du[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(s=this.removedTransforms)!=null&&s.length&&this.removedTransforms.forEach(([l,f])=>{t.getValue(l).set(f)}),this.resolveNoneKeyframes()}}class FR extends Gle{constructor(){super(...arguments),this.KeyframeResolver=tce}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;jr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function kR(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}function nce(e){return window.getComputedStyle(e)}class rce extends FR{constructor(){super(...arguments),this.type="html",this.renderInstance=kR}readValueFromInstance(t,n){var r;if(xc.has(n))return(r=this.projection)!=null&&r.isProjecting?$1(n):_ue(t,n);{const i=nce(t),a=(FM(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return yle(t,n)}build(t,n,r){zx(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Hx(t,n,r)}}const MR=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 ice(e,t,n,r){kR(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(MR.has(i)?i:Nx(i),t.attrs[i])}class ace extends FR{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=DR}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(xc.has(n)){const r=PR(n);return r&&r.default||0}return n=MR.has(n)?n:Nx(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return NM(t,n,r)}build(t,n,r){IM(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){ice(t,n,r,i)}mount(t){this.isSVGTag=LM(t.tagName),super.mount(t)}}const oce=(e,t)=>Ux(e)?new ace(t):new rce(t,{allowProjection:e!==I.Fragment}),sce={renderer:oce,...ple,...Ole},uce=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),RR=e=>Array.isArray(e)&&e.every(t=>typeof t=="object"&&!(t instanceof Array)),lce=e=>Array.isArray(e)&&e.every(t=>Array.isArray(t)),cce=e=>Array.from(e.map(t=>Object.keys(t)).reduce((t,n)=>new Set([...t,...n]),[])),dce=(e,t)=>{t=t||cce(e);let n=t,r=t;RR(t)&&(n=t.map(a=>a.label),r=t.map(a=>a.key));const i=e.map(a=>r.map(o=>fce(o,a)));return[n,...i]},fce=(e,t)=>{const n=e.replace(/\[([^\]]+)]/g,".$1").split(".").reduce(function(r,i,a,o){const s=r[i];if(s==null)o.splice(1);else return s},t);return n===void 0?e in t?t[e]:"":n},hce=e=>typeof e>"u"||e===null?"":e,IR=(e,t=",",n='"')=>e.filter(r=>r).map(r=>r.map(i=>hce(i)).map(i=>`${n}${i}${n}`).join(t)).join(`
95
+ `),pce=(e,t,n,r)=>IR(t?[t,...e]:e,n,r),mce=(e,t,n,r)=>IR(dce(e,t),n,r),gce=(e,t,n,r)=>t?`${t.join(n)}
96
+ ${e}`:e.replace(/"/g,'""'),OR=(e,t,n,r)=>{if(RR(e))return mce(e,t,n,r);if(lce(e))return pce(e,t,n,r);if(typeof e=="string")return gce(e,t,n);throw new TypeError('Data should be a "String", "Array of arrays" OR "Array of objects" ')},LR=(e,t,n,r,i)=>{const a=OR(e,n,r,i),o=uce()?"application/csv":"text/csv",s=new Blob([t?"\uFEFF":"",a],{type:o}),l=`data:${o};charset=utf-8,${t?"\uFEFF":""}${a}`,f=window.URL||window.webkitURL;return typeof f.createObjectURL>"u"?l:f.createObjectURL(s)};var Fh={exports:{}},kh={exports:{}},on={};/** @license React v16.13.1
97
97
  * react-is.production.min.js
98
98
  *
99
99
  * Copyright (c) Facebook, Inc. and its affiliates.
100
100
  *
101
101
  * This source code is licensed under the MIT license found in the
102
102
  * LICENSE file in the root directory of this source tree.
103
- */var US;function Ace(){if(US)return on;US=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,$=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function E(P){if(typeof P=="object"&&P!==null){var F=P.$$typeof;switch(F){case t:switch(P=P.type,P){case l:case f:case r:case a:case i:case m:return P;default:switch(P=P&&P.$$typeof,P){case s:case h:case $:case b:case o:return P;default:return F}}case n:return F}}}function T(P){return E(P)===f}return on.AsyncMode=l,on.ConcurrentMode=f,on.ContextConsumer=s,on.ContextProvider=o,on.Element=t,on.ForwardRef=h,on.Fragment=r,on.Lazy=$,on.Memo=b,on.Portal=n,on.Profiler=a,on.StrictMode=i,on.Suspense=m,on.isAsyncMode=function(P){return T(P)||E(P)===l},on.isConcurrentMode=T,on.isContextConsumer=function(P){return E(P)===s},on.isContextProvider=function(P){return E(P)===o},on.isElement=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===t},on.isForwardRef=function(P){return E(P)===h},on.isFragment=function(P){return E(P)===r},on.isLazy=function(P){return E(P)===$},on.isMemo=function(P){return E(P)===b},on.isPortal=function(P){return E(P)===n},on.isProfiler=function(P){return E(P)===a},on.isStrictMode=function(P){return E(P)===i},on.isSuspense=function(P){return E(P)===m},on.isValidElementType=function(P){return typeof P=="string"||typeof P=="function"||P===r||P===f||P===a||P===i||P===m||P===g||typeof P=="object"&&P!==null&&(P.$$typeof===$||P.$$typeof===b||P.$$typeof===o||P.$$typeof===s||P.$$typeof===h||P.$$typeof===A||P.$$typeof===w||P.$$typeof===C||P.$$typeof===x)},on.typeOf=E,on}var sn={};/** @license React v16.13.1
103
+ */var qS;function vce(){if(qS)return on;qS=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,$=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function E(P){if(typeof P=="object"&&P!==null){var F=P.$$typeof;switch(F){case t:switch(P=P.type,P){case l:case f:case r:case a:case i:case m:return P;default:switch(P=P&&P.$$typeof,P){case s:case h:case $:case b:case o:return P;default:return F}}case n:return F}}}function T(P){return E(P)===f}return on.AsyncMode=l,on.ConcurrentMode=f,on.ContextConsumer=s,on.ContextProvider=o,on.Element=t,on.ForwardRef=h,on.Fragment=r,on.Lazy=$,on.Memo=b,on.Portal=n,on.Profiler=a,on.StrictMode=i,on.Suspense=m,on.isAsyncMode=function(P){return T(P)||E(P)===l},on.isConcurrentMode=T,on.isContextConsumer=function(P){return E(P)===s},on.isContextProvider=function(P){return E(P)===o},on.isElement=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===t},on.isForwardRef=function(P){return E(P)===h},on.isFragment=function(P){return E(P)===r},on.isLazy=function(P){return E(P)===$},on.isMemo=function(P){return E(P)===b},on.isPortal=function(P){return E(P)===n},on.isProfiler=function(P){return E(P)===a},on.isStrictMode=function(P){return E(P)===i},on.isSuspense=function(P){return E(P)===m},on.isValidElementType=function(P){return typeof P=="string"||typeof P=="function"||P===r||P===f||P===a||P===i||P===m||P===g||typeof P=="object"&&P!==null&&(P.$$typeof===$||P.$$typeof===b||P.$$typeof===o||P.$$typeof===s||P.$$typeof===h||P.$$typeof===A||P.$$typeof===w||P.$$typeof===C||P.$$typeof===x)},on.typeOf=E,on}var sn={};/** @license React v16.13.1
104
104
  * react-is.development.js
105
105
  *
106
106
  * Copyright (c) Facebook, Inc. and its affiliates.
107
107
  *
108
108
  * This source code is licensed under the MIT license found in the
109
109
  * LICENSE file in the root directory of this source tree.
110
- */var WS;function Sce(){return WS||(WS=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,$=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function E(Te){return typeof Te=="string"||typeof Te=="function"||Te===r||Te===f||Te===a||Te===i||Te===m||Te===g||typeof Te=="object"&&Te!==null&&(Te.$$typeof===$||Te.$$typeof===b||Te.$$typeof===o||Te.$$typeof===s||Te.$$typeof===h||Te.$$typeof===A||Te.$$typeof===w||Te.$$typeof===C||Te.$$typeof===x)}function T(Te){if(typeof Te=="object"&&Te!==null){var Ye=Te.$$typeof;switch(Ye){case t:var ht=Te.type;switch(ht){case l:case f:case r:case a:case i:case m:return ht;default:var Ht=ht&&ht.$$typeof;switch(Ht){case s:case h:case $:case b:case o:return Ht;default:return Ye}}case n:return Ye}}}var P=l,F=f,q=s,te=o,se=t,ae=h,O=r,Ee=$,be=b,z=n,G=a,V=i,R=m,K=!1;function fe(Te){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(Te)||T(Te)===l}function M(Te){return T(Te)===f}function oe(Te){return T(Te)===s}function le(Te){return T(Te)===o}function Se(Te){return typeof Te=="object"&&Te!==null&&Te.$$typeof===t}function _e(Te){return T(Te)===h}function Be(Te){return T(Te)===r}function Ge(Te){return T(Te)===$}function Xe(Te){return T(Te)===b}function Ne(Te){return T(Te)===n}function qe(Te){return T(Te)===a}function ke(Te){return T(Te)===i}function je(Te){return T(Te)===m}sn.AsyncMode=P,sn.ConcurrentMode=F,sn.ContextConsumer=q,sn.ContextProvider=te,sn.Element=se,sn.ForwardRef=ae,sn.Fragment=O,sn.Lazy=Ee,sn.Memo=be,sn.Portal=z,sn.Profiler=G,sn.StrictMode=V,sn.Suspense=R,sn.isAsyncMode=fe,sn.isConcurrentMode=M,sn.isContextConsumer=oe,sn.isContextProvider=le,sn.isElement=Se,sn.isForwardRef=_e,sn.isFragment=Be,sn.isLazy=Ge,sn.isMemo=Xe,sn.isPortal=Ne,sn.isProfiler=qe,sn.isStrictMode=ke,sn.isSuspense=je,sn.isValidElementType=E,sn.typeOf=T}()),sn}var HS;function NR(){return HS||(HS=1,process.env.NODE_ENV==="production"?kh.exports=Ace():kh.exports=Sce()),kh.exports}/*
110
+ */var US;function yce(){return US||(US=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,$=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function E(Te){return typeof Te=="string"||typeof Te=="function"||Te===r||Te===f||Te===a||Te===i||Te===m||Te===g||typeof Te=="object"&&Te!==null&&(Te.$$typeof===$||Te.$$typeof===b||Te.$$typeof===o||Te.$$typeof===s||Te.$$typeof===h||Te.$$typeof===A||Te.$$typeof===w||Te.$$typeof===C||Te.$$typeof===x)}function T(Te){if(typeof Te=="object"&&Te!==null){var Ye=Te.$$typeof;switch(Ye){case t:var ht=Te.type;switch(ht){case l:case f:case r:case a:case i:case m:return ht;default:var Ht=ht&&ht.$$typeof;switch(Ht){case s:case h:case $:case b:case o:return Ht;default:return Ye}}case n:return Ye}}}var P=l,F=f,q=s,te=o,se=t,ae=h,O=r,Ee=$,be=b,z=n,G=a,V=i,R=m,K=!1;function fe(Te){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(Te)||T(Te)===l}function M(Te){return T(Te)===f}function oe(Te){return T(Te)===s}function le(Te){return T(Te)===o}function Se(Te){return typeof Te=="object"&&Te!==null&&Te.$$typeof===t}function _e(Te){return T(Te)===h}function Be(Te){return T(Te)===r}function Ge(Te){return T(Te)===$}function Xe(Te){return T(Te)===b}function Ne(Te){return T(Te)===n}function qe(Te){return T(Te)===a}function ke(Te){return T(Te)===i}function je(Te){return T(Te)===m}sn.AsyncMode=P,sn.ConcurrentMode=F,sn.ContextConsumer=q,sn.ContextProvider=te,sn.Element=se,sn.ForwardRef=ae,sn.Fragment=O,sn.Lazy=Ee,sn.Memo=be,sn.Portal=z,sn.Profiler=G,sn.StrictMode=V,sn.Suspense=R,sn.isAsyncMode=fe,sn.isConcurrentMode=M,sn.isContextConsumer=oe,sn.isContextProvider=le,sn.isElement=Se,sn.isForwardRef=_e,sn.isFragment=Be,sn.isLazy=Ge,sn.isMemo=Xe,sn.isPortal=Ne,sn.isProfiler=qe,sn.isStrictMode=ke,sn.isSuspense=je,sn.isValidElementType=E,sn.typeOf=T}()),sn}var WS;function VR(){return WS||(WS=1,process.env.NODE_ENV==="production"?kh.exports=vce():kh.exports=yce()),kh.exports}/*
111
111
  object-assign
112
112
  (c) Sindre Sorhus
113
113
  @license MIT
114
- */var By,GS;function Tce(){if(GS)return By;GS=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(h){return o[h]});if(l.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(h){f[h]=h}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return By=i()?Object.assign:function(a,o){for(var s,l=r(a),f,h=1;h<arguments.length;h++){s=Object(arguments[h]);for(var m in s)t.call(s,m)&&(l[m]=s[m]);if(e){f=e(s);for(var g=0;g<f.length;g++)n.call(s,f[g])&&(l[f[g]]=s[f[g]])}}return l},By}var Fy,YS;function aD(){if(YS)return Fy;YS=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Fy=e,Fy}var ky,ZS;function jR(){return ZS||(ZS=1,ky=Function.call.bind(Object.prototype.hasOwnProperty)),ky}var My,XS;function Pce(){if(XS)return My;XS=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=aD(),n={},r=jR();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,l,f){if(process.env.NODE_ENV!=="production"){for(var h in a)if(r(a,h)){var m;try{if(typeof a[h]!="function"){var g=Error((l||"React class")+": "+s+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}m=a[h](o,h,l,s,null,t)}catch($){m=$}if(m&&!(m instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in n)){n[m.message]=!0;var b=f?f():"";e("Failed "+s+" type: "+m.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},My=i,My}var Ry,QS;function _ce(){if(QS)return Ry;QS=1;var e=NR(),t=Tce(),n=aD(),r=jR(),i=Pce(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return Ry=function(s,l){var f=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(M){var oe=M&&(f&&M[f]||M[h]);if(typeof oe=="function")return oe}var g="<<anonymous>>",b={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:C(),arrayOf:E,element:T(),elementType:P(),instanceOf:F,node:ae(),objectOf:te,oneOf:q,oneOfType:se,shape:Ee,exact:be};function $(M,oe){return M===oe?M!==0||1/M===1/oe:M!==M&&oe!==oe}function x(M,oe){this.message=M,this.data=oe&&typeof oe=="object"?oe:{},this.stack=""}x.prototype=Error.prototype;function A(M){if(process.env.NODE_ENV!=="production")var oe={},le=0;function Se(Be,Ge,Xe,Ne,qe,ke,je){if(Ne=Ne||g,ke=ke||Xe,je!==n){if(l){var Te=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Te.name="Invariant Violation",Te}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ye=Ne+":"+Xe;!oe[Ye]&&le<3&&(a("You are manually calling a React.PropTypes validation function for the `"+ke+"` prop on `"+Ne+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),oe[Ye]=!0,le++)}}return Ge[Xe]==null?Be?Ge[Xe]===null?new x("The "+qe+" `"+ke+"` is marked as required "+("in `"+Ne+"`, but its value is `null`.")):new x("The "+qe+" `"+ke+"` is marked as required in "+("`"+Ne+"`, but its value is `undefined`.")):null:M(Ge,Xe,Ne,qe,ke)}var _e=Se.bind(null,!1);return _e.isRequired=Se.bind(null,!0),_e}function w(M){function oe(le,Se,_e,Be,Ge,Xe){var Ne=le[Se],qe=V(Ne);if(qe!==M){var ke=R(Ne);return new x("Invalid "+Be+" `"+Ge+"` of type "+("`"+ke+"` supplied to `"+_e+"`, expected ")+("`"+M+"`."),{expectedType:M})}return null}return A(oe)}function C(){return A(o)}function E(M){function oe(le,Se,_e,Be,Ge){if(typeof M!="function")return new x("Property `"+Ge+"` of component `"+_e+"` has invalid PropType notation inside arrayOf.");var Xe=le[Se];if(!Array.isArray(Xe)){var Ne=V(Xe);return new x("Invalid "+Be+" `"+Ge+"` of type "+("`"+Ne+"` supplied to `"+_e+"`, expected an array."))}for(var qe=0;qe<Xe.length;qe++){var ke=M(Xe,qe,_e,Be,Ge+"["+qe+"]",n);if(ke instanceof Error)return ke}return null}return A(oe)}function T(){function M(oe,le,Se,_e,Be){var Ge=oe[le];if(!s(Ge)){var Xe=V(Ge);return new x("Invalid "+_e+" `"+Be+"` of type "+("`"+Xe+"` supplied to `"+Se+"`, expected a single ReactElement."))}return null}return A(M)}function P(){function M(oe,le,Se,_e,Be){var Ge=oe[le];if(!e.isValidElementType(Ge)){var Xe=V(Ge);return new x("Invalid "+_e+" `"+Be+"` of type "+("`"+Xe+"` supplied to `"+Se+"`, expected a single ReactElement type."))}return null}return A(M)}function F(M){function oe(le,Se,_e,Be,Ge){if(!(le[Se]instanceof M)){var Xe=M.name||g,Ne=fe(le[Se]);return new x("Invalid "+Be+" `"+Ge+"` of type "+("`"+Ne+"` supplied to `"+_e+"`, expected ")+("instance of `"+Xe+"`."))}return null}return A(oe)}function q(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function oe(le,Se,_e,Be,Ge){for(var Xe=le[Se],Ne=0;Ne<M.length;Ne++)if($(Xe,M[Ne]))return null;var qe=JSON.stringify(M,function(je,Te){var Ye=R(Te);return Ye==="symbol"?String(Te):Te});return new x("Invalid "+Be+" `"+Ge+"` of value `"+String(Xe)+"` "+("supplied to `"+_e+"`, expected one of "+qe+"."))}return A(oe)}function te(M){function oe(le,Se,_e,Be,Ge){if(typeof M!="function")return new x("Property `"+Ge+"` of component `"+_e+"` has invalid PropType notation inside objectOf.");var Xe=le[Se],Ne=V(Xe);if(Ne!=="object")return new x("Invalid "+Be+" `"+Ge+"` of type "+("`"+Ne+"` supplied to `"+_e+"`, expected an object."));for(var qe in Xe)if(r(Xe,qe)){var ke=M(Xe,qe,_e,Be,Ge+"."+qe,n);if(ke instanceof Error)return ke}return null}return A(oe)}function se(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var oe=0;oe<M.length;oe++){var le=M[oe];if(typeof le!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+K(le)+" at index "+oe+"."),o}function Se(_e,Be,Ge,Xe,Ne){for(var qe=[],ke=0;ke<M.length;ke++){var je=M[ke],Te=je(_e,Be,Ge,Xe,Ne,n);if(Te==null)return null;Te.data&&r(Te.data,"expectedType")&&qe.push(Te.data.expectedType)}var Ye=qe.length>0?", expected one of type ["+qe.join(", ")+"]":"";return new x("Invalid "+Xe+" `"+Ne+"` supplied to "+("`"+Ge+"`"+Ye+"."))}return A(Se)}function ae(){function M(oe,le,Se,_e,Be){return z(oe[le])?null:new x("Invalid "+_e+" `"+Be+"` supplied to "+("`"+Se+"`, expected a ReactNode."))}return A(M)}function O(M,oe,le,Se,_e){return new x((M||"React class")+": "+oe+" type `"+le+"."+Se+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+_e+"`.")}function Ee(M){function oe(le,Se,_e,Be,Ge){var Xe=le[Se],Ne=V(Xe);if(Ne!=="object")return new x("Invalid "+Be+" `"+Ge+"` of type `"+Ne+"` "+("supplied to `"+_e+"`, expected `object`."));for(var qe in M){var ke=M[qe];if(typeof ke!="function")return O(_e,Be,Ge,qe,R(ke));var je=ke(Xe,qe,_e,Be,Ge+"."+qe,n);if(je)return je}return null}return A(oe)}function be(M){function oe(le,Se,_e,Be,Ge){var Xe=le[Se],Ne=V(Xe);if(Ne!=="object")return new x("Invalid "+Be+" `"+Ge+"` of type `"+Ne+"` "+("supplied to `"+_e+"`, expected `object`."));var qe=t({},le[Se],M);for(var ke in qe){var je=M[ke];if(r(M,ke)&&typeof je!="function")return O(_e,Be,Ge,ke,R(je));if(!je)return new x("Invalid "+Be+" `"+Ge+"` key `"+ke+"` supplied to `"+_e+"`.\nBad object: "+JSON.stringify(le[Se],null," ")+`
115
- Valid keys: `+JSON.stringify(Object.keys(M),null," "));var Te=je(Xe,ke,_e,Be,Ge+"."+ke,n);if(Te)return Te}return null}return A(oe)}function z(M){switch(typeof M){case"number":case"string":case"undefined":return!0;case"boolean":return!M;case"object":if(Array.isArray(M))return M.every(z);if(M===null||s(M))return!0;var oe=m(M);if(oe){var le=oe.call(M),Se;if(oe!==M.entries){for(;!(Se=le.next()).done;)if(!z(Se.value))return!1}else for(;!(Se=le.next()).done;){var _e=Se.value;if(_e&&!z(_e[1]))return!1}}else return!1;return!0;default:return!1}}function G(M,oe){return M==="symbol"?!0:oe?oe["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&oe instanceof Symbol:!1}function V(M){var oe=typeof M;return Array.isArray(M)?"array":M instanceof RegExp?"object":G(oe,M)?"symbol":oe}function R(M){if(typeof M>"u"||M===null)return""+M;var oe=V(M);if(oe==="object"){if(M instanceof Date)return"date";if(M instanceof RegExp)return"regexp"}return oe}function K(M){var oe=R(M);switch(oe){case"array":case"object":return"an "+oe;case"boolean":case"date":case"regexp":return"a "+oe;default:return oe}}function fe(M){return!M.constructor||!M.constructor.name?g:M.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},Ry}var Iy,JS;function Bce(){if(JS)return Iy;JS=1;var e=aD();function t(){}function n(){}return n.resetWarningCache=t,Iy=function(){function r(o,s,l,f,h,m){if(m!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},Iy}var e6;function Fce(){if(e6)return Fh.exports;if(e6=1,process.env.NODE_ENV!=="production"){var e=NR(),t=!0;Fh.exports=_ce()(e.isElement,t)}else Fh.exports=Bce()();return Fh.exports}var $i=Fce();const rt=ar($i),KR={data:$i.oneOfType([$i.string,$i.array,$i.func]).isRequired,headers:$i.array,target:$i.string,separator:$i.string,filename:$i.string,uFEFF:$i.bool,onClick:$i.func,asyncOnClick:$i.bool,enclosingCharacter:$i.string},zR={separator:",",filename:"generatedBy_react-csv.csv",uFEFF:!0,asyncOnClick:!1,enclosingCharacter:'"'},kce={target:"_blank"};class t6 extends de.default.Component{constructor(t){super(t),this.state={}}buildURI(){return VR(...arguments)}componentDidMount(){const{data:t,headers:n,separator:r,enclosingCharacter:i,uFEFF:a,target:o,specs:s,replace:l}=this.props;this.state.page=window.open(this.buildURI(t,a,n,r,i),o,s,l)}getWindow(){return this.state.page}render(){return null}}Xn(t6,"defaultProps",Object.assign(zR,kce)),Xn(t6,"propTypes",KR);var Rh;let Mce=(Rh=class extends de.default.Component{constructor(t){super(t),this.buildURI=this.buildURI.bind(this)}buildURI(){return VR(...arguments)}handleLegacy(t,n=!1){if(window.navigator.msSaveOrOpenBlob){t.preventDefault();const{data:r,headers:i,separator:a,filename:o,enclosingCharacter:s,uFEFF:l}=this.props,f=n&&typeof r=="function"?r():r;let h=new Blob([l?"\uFEFF":"",LR(f,i,a,s)]);return window.navigator.msSaveBlob(h,o),!1}}handleAsyncClick(t){const n=r=>{if(r===!1){t.preventDefault();return}this.handleLegacy(t,!0)};this.props.onClick(t,n)}handleSyncClick(t){if(this.props.onClick(t)===!1){t.preventDefault();return}this.handleLegacy(t)}handleClick(){return t=>{if(typeof this.props.onClick=="function")return this.props.asyncOnClick?this.handleAsyncClick(t):this.handleSyncClick(t);this.handleLegacy(t)}}render(){const{data:t,headers:n,separator:r,filename:i,uFEFF:a,children:o,onClick:s,asyncOnClick:l,enclosingCharacter:f,...h}=this.props,g=typeof window>"u"?"":this.buildURI(t,a,n,r,f);return io.jsx("a",{download:i,...h,ref:b=>this.link=b,target:"_self",href:g,onClick:this.handleClick(),children:o})}},Xn(Rh,"defaultProps",zR),Xn(Rh,"propTypes",KR),Rh);const Rce=Mce;var Oy,n6;function Ice(){if(n6)return Oy;n6=1;function e(t){return t==null}return Oy=e,Oy}var Oce=Ice();const Lce=ar(Oce);/**
114
+ */var By,HS;function bce(){if(HS)return By;HS=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(h){return o[h]});if(l.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(h){f[h]=h}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return By=i()?Object.assign:function(a,o){for(var s,l=r(a),f,h=1;h<arguments.length;h++){s=Object(arguments[h]);for(var m in s)t.call(s,m)&&(l[m]=s[m]);if(e){f=e(s);for(var g=0;g<f.length;g++)n.call(s,f[g])&&(l[f[g]]=s[f[g]])}}return l},By}var Fy,GS;function aD(){if(GS)return Fy;GS=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Fy=e,Fy}var ky,YS;function NR(){return YS||(YS=1,ky=Function.call.bind(Object.prototype.hasOwnProperty)),ky}var My,ZS;function xce(){if(ZS)return My;ZS=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=aD(),n={},r=NR();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,l,f){if(process.env.NODE_ENV!=="production"){for(var h in a)if(r(a,h)){var m;try{if(typeof a[h]!="function"){var g=Error((l||"React class")+": "+s+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}m=a[h](o,h,l,s,null,t)}catch($){m=$}if(m&&!(m instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in n)){n[m.message]=!0;var b=f?f():"";e("Failed "+s+" type: "+m.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},My=i,My}var Ry,XS;function Dce(){if(XS)return Ry;XS=1;var e=VR(),t=bce(),n=aD(),r=NR(),i=xce(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return Ry=function(s,l){var f=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(M){var oe=M&&(f&&M[f]||M[h]);if(typeof oe=="function")return oe}var g="<<anonymous>>",b={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:C(),arrayOf:E,element:T(),elementType:P(),instanceOf:F,node:ae(),objectOf:te,oneOf:q,oneOfType:se,shape:Ee,exact:be};function $(M,oe){return M===oe?M!==0||1/M===1/oe:M!==M&&oe!==oe}function x(M,oe){this.message=M,this.data=oe&&typeof oe=="object"?oe:{},this.stack=""}x.prototype=Error.prototype;function A(M){if(process.env.NODE_ENV!=="production")var oe={},le=0;function Se(Be,Ge,Xe,Ne,qe,ke,je){if(Ne=Ne||g,ke=ke||Xe,je!==n){if(l){var Te=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Te.name="Invariant Violation",Te}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ye=Ne+":"+Xe;!oe[Ye]&&le<3&&(a("You are manually calling a React.PropTypes validation function for the `"+ke+"` prop on `"+Ne+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),oe[Ye]=!0,le++)}}return Ge[Xe]==null?Be?Ge[Xe]===null?new x("The "+qe+" `"+ke+"` is marked as required "+("in `"+Ne+"`, but its value is `null`.")):new x("The "+qe+" `"+ke+"` is marked as required in "+("`"+Ne+"`, but its value is `undefined`.")):null:M(Ge,Xe,Ne,qe,ke)}var _e=Se.bind(null,!1);return _e.isRequired=Se.bind(null,!0),_e}function w(M){function oe(le,Se,_e,Be,Ge,Xe){var Ne=le[Se],qe=V(Ne);if(qe!==M){var ke=R(Ne);return new x("Invalid "+Be+" `"+Ge+"` of type "+("`"+ke+"` supplied to `"+_e+"`, expected ")+("`"+M+"`."),{expectedType:M})}return null}return A(oe)}function C(){return A(o)}function E(M){function oe(le,Se,_e,Be,Ge){if(typeof M!="function")return new x("Property `"+Ge+"` of component `"+_e+"` has invalid PropType notation inside arrayOf.");var Xe=le[Se];if(!Array.isArray(Xe)){var Ne=V(Xe);return new x("Invalid "+Be+" `"+Ge+"` of type "+("`"+Ne+"` supplied to `"+_e+"`, expected an array."))}for(var qe=0;qe<Xe.length;qe++){var ke=M(Xe,qe,_e,Be,Ge+"["+qe+"]",n);if(ke instanceof Error)return ke}return null}return A(oe)}function T(){function M(oe,le,Se,_e,Be){var Ge=oe[le];if(!s(Ge)){var Xe=V(Ge);return new x("Invalid "+_e+" `"+Be+"` of type "+("`"+Xe+"` supplied to `"+Se+"`, expected a single ReactElement."))}return null}return A(M)}function P(){function M(oe,le,Se,_e,Be){var Ge=oe[le];if(!e.isValidElementType(Ge)){var Xe=V(Ge);return new x("Invalid "+_e+" `"+Be+"` of type "+("`"+Xe+"` supplied to `"+Se+"`, expected a single ReactElement type."))}return null}return A(M)}function F(M){function oe(le,Se,_e,Be,Ge){if(!(le[Se]instanceof M)){var Xe=M.name||g,Ne=fe(le[Se]);return new x("Invalid "+Be+" `"+Ge+"` of type "+("`"+Ne+"` supplied to `"+_e+"`, expected ")+("instance of `"+Xe+"`."))}return null}return A(oe)}function q(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function oe(le,Se,_e,Be,Ge){for(var Xe=le[Se],Ne=0;Ne<M.length;Ne++)if($(Xe,M[Ne]))return null;var qe=JSON.stringify(M,function(je,Te){var Ye=R(Te);return Ye==="symbol"?String(Te):Te});return new x("Invalid "+Be+" `"+Ge+"` of value `"+String(Xe)+"` "+("supplied to `"+_e+"`, expected one of "+qe+"."))}return A(oe)}function te(M){function oe(le,Se,_e,Be,Ge){if(typeof M!="function")return new x("Property `"+Ge+"` of component `"+_e+"` has invalid PropType notation inside objectOf.");var Xe=le[Se],Ne=V(Xe);if(Ne!=="object")return new x("Invalid "+Be+" `"+Ge+"` of type "+("`"+Ne+"` supplied to `"+_e+"`, expected an object."));for(var qe in Xe)if(r(Xe,qe)){var ke=M(Xe,qe,_e,Be,Ge+"."+qe,n);if(ke instanceof Error)return ke}return null}return A(oe)}function se(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var oe=0;oe<M.length;oe++){var le=M[oe];if(typeof le!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+K(le)+" at index "+oe+"."),o}function Se(_e,Be,Ge,Xe,Ne){for(var qe=[],ke=0;ke<M.length;ke++){var je=M[ke],Te=je(_e,Be,Ge,Xe,Ne,n);if(Te==null)return null;Te.data&&r(Te.data,"expectedType")&&qe.push(Te.data.expectedType)}var Ye=qe.length>0?", expected one of type ["+qe.join(", ")+"]":"";return new x("Invalid "+Xe+" `"+Ne+"` supplied to "+("`"+Ge+"`"+Ye+"."))}return A(Se)}function ae(){function M(oe,le,Se,_e,Be){return z(oe[le])?null:new x("Invalid "+_e+" `"+Be+"` supplied to "+("`"+Se+"`, expected a ReactNode."))}return A(M)}function O(M,oe,le,Se,_e){return new x((M||"React class")+": "+oe+" type `"+le+"."+Se+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+_e+"`.")}function Ee(M){function oe(le,Se,_e,Be,Ge){var Xe=le[Se],Ne=V(Xe);if(Ne!=="object")return new x("Invalid "+Be+" `"+Ge+"` of type `"+Ne+"` "+("supplied to `"+_e+"`, expected `object`."));for(var qe in M){var ke=M[qe];if(typeof ke!="function")return O(_e,Be,Ge,qe,R(ke));var je=ke(Xe,qe,_e,Be,Ge+"."+qe,n);if(je)return je}return null}return A(oe)}function be(M){function oe(le,Se,_e,Be,Ge){var Xe=le[Se],Ne=V(Xe);if(Ne!=="object")return new x("Invalid "+Be+" `"+Ge+"` of type `"+Ne+"` "+("supplied to `"+_e+"`, expected `object`."));var qe=t({},le[Se],M);for(var ke in qe){var je=M[ke];if(r(M,ke)&&typeof je!="function")return O(_e,Be,Ge,ke,R(je));if(!je)return new x("Invalid "+Be+" `"+Ge+"` key `"+ke+"` supplied to `"+_e+"`.\nBad object: "+JSON.stringify(le[Se],null," ")+`
115
+ Valid keys: `+JSON.stringify(Object.keys(M),null," "));var Te=je(Xe,ke,_e,Be,Ge+"."+ke,n);if(Te)return Te}return null}return A(oe)}function z(M){switch(typeof M){case"number":case"string":case"undefined":return!0;case"boolean":return!M;case"object":if(Array.isArray(M))return M.every(z);if(M===null||s(M))return!0;var oe=m(M);if(oe){var le=oe.call(M),Se;if(oe!==M.entries){for(;!(Se=le.next()).done;)if(!z(Se.value))return!1}else for(;!(Se=le.next()).done;){var _e=Se.value;if(_e&&!z(_e[1]))return!1}}else return!1;return!0;default:return!1}}function G(M,oe){return M==="symbol"?!0:oe?oe["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&oe instanceof Symbol:!1}function V(M){var oe=typeof M;return Array.isArray(M)?"array":M instanceof RegExp?"object":G(oe,M)?"symbol":oe}function R(M){if(typeof M>"u"||M===null)return""+M;var oe=V(M);if(oe==="object"){if(M instanceof Date)return"date";if(M instanceof RegExp)return"regexp"}return oe}function K(M){var oe=R(M);switch(oe){case"array":case"object":return"an "+oe;case"boolean":case"date":case"regexp":return"a "+oe;default:return oe}}function fe(M){return!M.constructor||!M.constructor.name?g:M.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},Ry}var Iy,QS;function $ce(){if(QS)return Iy;QS=1;var e=aD();function t(){}function n(){}return n.resetWarningCache=t,Iy=function(){function r(o,s,l,f,h,m){if(m!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},Iy}var JS;function Ece(){if(JS)return Fh.exports;if(JS=1,process.env.NODE_ENV!=="production"){var e=VR(),t=!0;Fh.exports=Dce()(e.isElement,t)}else Fh.exports=$ce()();return Fh.exports}var $i=Ece();const rt=ar($i),jR={data:$i.oneOfType([$i.string,$i.array,$i.func]).isRequired,headers:$i.array,target:$i.string,separator:$i.string,filename:$i.string,uFEFF:$i.bool,onClick:$i.func,asyncOnClick:$i.bool,enclosingCharacter:$i.string},KR={separator:",",filename:"generatedBy_react-csv.csv",uFEFF:!0,asyncOnClick:!1,enclosingCharacter:'"'},Cce={target:"_blank"};class e6 extends de.default.Component{constructor(t){super(t),this.state={}}buildURI(){return LR(...arguments)}componentDidMount(){const{data:t,headers:n,separator:r,enclosingCharacter:i,uFEFF:a,target:o,specs:s,replace:l}=this.props;this.state.page=window.open(this.buildURI(t,a,n,r,i),o,s,l)}getWindow(){return this.state.page}render(){return null}}Xn(e6,"defaultProps",Object.assign(KR,Cce)),Xn(e6,"propTypes",jR);var Rh;let wce=(Rh=class extends de.default.Component{constructor(t){super(t),this.buildURI=this.buildURI.bind(this)}buildURI(){return LR(...arguments)}handleLegacy(t,n=!1){if(window.navigator.msSaveOrOpenBlob){t.preventDefault();const{data:r,headers:i,separator:a,filename:o,enclosingCharacter:s,uFEFF:l}=this.props,f=n&&typeof r=="function"?r():r;let h=new Blob([l?"\uFEFF":"",OR(f,i,a,s)]);return window.navigator.msSaveBlob(h,o),!1}}handleAsyncClick(t){const n=r=>{if(r===!1){t.preventDefault();return}this.handleLegacy(t,!0)};this.props.onClick(t,n)}handleSyncClick(t){if(this.props.onClick(t)===!1){t.preventDefault();return}this.handleLegacy(t)}handleClick(){return t=>{if(typeof this.props.onClick=="function")return this.props.asyncOnClick?this.handleAsyncClick(t):this.handleSyncClick(t);this.handleLegacy(t)}}render(){const{data:t,headers:n,separator:r,filename:i,uFEFF:a,children:o,onClick:s,asyncOnClick:l,enclosingCharacter:f,...h}=this.props,g=typeof window>"u"?"":this.buildURI(t,a,n,r,f);return io.jsx("a",{download:i,...h,ref:b=>this.link=b,target:"_self",href:g,onClick:this.handleClick(),children:o})}},Xn(Rh,"defaultProps",KR),Xn(Rh,"propTypes",jR),Rh);const Ace=wce;var Oy,t6;function Sce(){if(t6)return Oy;t6=1;function e(t){return t==null}return Oy=e,Oy}var Tce=Sce();const Pce=ar(Tce);/**
116
116
  * react-table
117
117
  *
118
118
  * Copyright (c) TanStack
@@ -121,7 +121,7 @@ Valid keys: `+JSON.stringify(Object.keys(M),null," "));var Te=je(Xe,ke,_e,Be,Ge
121
121
  * LICENSE.md file in the root directory of this source tree.
122
122
  *
123
123
  * @license MIT
124
- */function Vce(e,t){return e?Nce(e)?de.createElement(e,t):e:null}function Nce(e){return jce(e)||typeof e=="function"||Kce(e)}function jce(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function Kce(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}var Ly,r6;function zce(){if(r6)return Ly;r6=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i&&n(t[r],r,t)!==!1;);return t}return Ly=e,Ly}var Vy,i6;function qce(){if(i6)return Vy;i6=1;var e=Ru(),t=Object.create,n=function(){function r(){}return function(i){if(!e(i))return{};if(t)return t(i);r.prototype=i;var a=new r;return r.prototype=void 0,a}}();return Vy=n,Vy}var Ny,a6;function Uce(){if(a6)return Ny;a6=1;var e=BT(),t=e(Object.getPrototypeOf,Object);return Ny=t,Ny}var jy,o6;function Wce(){if(o6)return jy;o6=1;var e=zce(),t=qce(),n=VT(),r=LT(),i=Uce(),a=Aa(),o=im(),s=nb(),l=Ru(),f=am();function h(m,g,b){var $=a(m),x=$||o(m)||f(m);if(g=r(g,4),b==null){var A=m&&m.constructor;x?b=$?new A:[]:l(m)?b=s(A)?t(i(m)):{}:b={}}return(x?e:n)(m,function(w,C,E){return g(b,w,C,E)}),b}return jy=h,jy}var Hce=Wce();const Gce=ar(Hce);function qR(e){return t=>typeof t===e}var Yce=qR("function"),Zce=e=>e===null,s6=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",u6=e=>!Xce(e)&&!Zce(e)&&(Yce(e)||typeof e=="object"),Xce=qR("undefined");function Qce(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!Kr(e[r],t[r]))return!1;return!0}function Jce(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new DataView(e.buffer),r=new DataView(t.buffer);let i=e.byteLength;for(;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function ede(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;for(const n of e.entries())if(!Kr(n[1],t.get(n[0])))return!1;return!0}function tde(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}function Kr(e,t){if(e===t)return!0;if(e&&u6(e)&&t&&u6(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return Qce(e,t);if(e instanceof Map&&t instanceof Map)return ede(e,t);if(e instanceof Set&&t instanceof Set)return tde(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return Jce(e,t);if(s6(e)&&s6(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=n.length;i--!==0;){const a=n[i];if(!(a==="_owner"&&e.$$typeof)&&!Kr(e[a],t[a]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var nde=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],rde=["bigint","boolean","null","number","string","symbol","undefined"];function Km(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(ide(t))return t}function Pa(e){return t=>Km(t)===e}function ide(e){return nde.includes(e)}function Cc(e){return t=>typeof t===e}function ade(e){return rde.includes(e)}var ode=["innerHTML","ownerDocument","style","attributes","nodeValue"];function ut(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(ut.array(e))return"Array";if(ut.plainFunction(e))return"Function";const t=Km(e);return t||"Object"}ut.array=Array.isArray;ut.arrayOf=(e,t)=>!ut.array(e)&&!ut.function(t)?!1:e.every(n=>t(n));ut.asyncGeneratorFunction=e=>Km(e)==="AsyncGeneratorFunction";ut.asyncFunction=Pa("AsyncFunction");ut.bigint=Cc("bigint");ut.boolean=e=>e===!0||e===!1;ut.date=Pa("Date");ut.defined=e=>!ut.undefined(e);ut.domElement=e=>ut.object(e)&&!ut.plainObject(e)&&e.nodeType===1&&ut.string(e.nodeName)&&ode.every(t=>t in e);ut.empty=e=>ut.string(e)&&e.length===0||ut.array(e)&&e.length===0||ut.object(e)&&!ut.map(e)&&!ut.set(e)&&Object.keys(e).length===0||ut.set(e)&&e.size===0||ut.map(e)&&e.size===0;ut.error=Pa("Error");ut.function=Cc("function");ut.generator=e=>ut.iterable(e)&&ut.function(e.next)&&ut.function(e.throw);ut.generatorFunction=Pa("GeneratorFunction");ut.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;ut.iterable=e=>!ut.nullOrUndefined(e)&&ut.function(e[Symbol.iterator]);ut.map=Pa("Map");ut.nan=e=>Number.isNaN(e);ut.null=e=>e===null;ut.nullOrUndefined=e=>ut.null(e)||ut.undefined(e);ut.number=e=>Cc("number")(e)&&!ut.nan(e);ut.numericString=e=>ut.string(e)&&e.length>0&&!Number.isNaN(Number(e));ut.object=e=>!ut.nullOrUndefined(e)&&(ut.function(e)||typeof e=="object");ut.oneOf=(e,t)=>ut.array(e)?e.indexOf(t)>-1:!1;ut.plainFunction=Pa("Function");ut.plainObject=e=>{if(Km(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ut.primitive=e=>ut.null(e)||ade(typeof e);ut.promise=Pa("Promise");ut.propertyOf=(e,t,n)=>{if(!ut.object(e)||!t)return!1;const r=e[t];return ut.function(n)?n(r):ut.defined(r)};ut.regexp=Pa("RegExp");ut.set=Pa("Set");ut.string=Cc("string");ut.symbol=Cc("symbol");ut.undefined=Cc("undefined");ut.weakMap=Pa("WeakMap");ut.weakSet=Pa("WeakSet");var ft=ut;function sde(...e){return e.every(t=>ft.string(t)||ft.array(t)||ft.plainObject(t))}function ude(e,t,n){return UR(e,t)?[e,t].every(ft.array)?!e.some(h6(n))&&t.some(h6(n)):[e,t].every(ft.plainObject)?!Object.entries(e).some(f6(n))&&Object.entries(t).some(f6(n)):t===n:!1}function l6(e,t,n){const{actual:r,key:i,previous:a,type:o}=n,s=Qa(e,i),l=Qa(t,i);let f=[s,l].every(ft.number)&&(o==="increased"?s<l:s>l);return ft.undefined(r)||(f=f&&l===r),ft.undefined(a)||(f=f&&s===a),f}function c6(e,t,n){const{key:r,type:i,value:a}=n,o=Qa(e,r),s=Qa(t,r),l=i==="added"?o:s,f=i==="added"?s:o;if(!ft.nullOrUndefined(a)){if(ft.defined(l)){if(ft.array(l)||ft.plainObject(l))return ude(l,f,a)}else return Kr(f,a);return!1}return[o,s].every(ft.array)?!f.every(oD(l)):[o,s].every(ft.plainObject)?lde(Object.keys(l),Object.keys(f)):![o,s].every(h=>ft.primitive(h)&&ft.defined(h))&&(i==="added"?!ft.defined(o)&&ft.defined(s):ft.defined(o)&&!ft.defined(s))}function d6(e,t,{key:n}={}){let r=Qa(e,n),i=Qa(t,n);if(!UR(r,i))throw new TypeError("Inputs have different types");if(!sde(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(ft.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function f6(e){return([t,n])=>ft.array(e)?Kr(e,n)||e.some(r=>Kr(r,n)||ft.array(n)&&oD(n)(r)):ft.plainObject(e)&&e[t]?!!e[t]&&Kr(e[t],n):Kr(e,n)}function lde(e,t){return t.some(n=>!e.includes(n))}function h6(e){return t=>ft.array(e)?e.some(n=>Kr(n,t)||ft.array(t)&&oD(t)(n)):Kr(e,t)}function sd(e,t){return ft.array(e)?e.some(n=>Kr(n,t)):Kr(e,t)}function oD(e){return t=>e.some(n=>Kr(n,t))}function UR(...e){return e.every(ft.array)||e.every(ft.number)||e.every(ft.plainObject)||e.every(ft.string)}function Qa(e,t){return ft.plainObject(e)||ft.array(e)?ft.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):ft.number(t)?e[t]:e:e}function jp(e,t){if([e,t].some(ft.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(h=>ft.plainObject(h)||ft.array(h)))throw new Error("Expected plain objects or array");return{added:(h,m)=>{try{return c6(e,t,{key:h,type:"added",value:m})}catch{return!1}},changed:(h,m,g)=>{try{const b=Qa(e,h),$=Qa(t,h),x=ft.defined(m),A=ft.defined(g);if(x||A){const w=A?sd(g,b):!sd(m,b),C=sd(m,$);return w&&C}return[b,$].every(ft.array)||[b,$].every(ft.plainObject)?!Kr(b,$):b!==$}catch{return!1}},changedFrom:(h,m,g)=>{if(!ft.defined(h))return!1;try{const b=Qa(e,h),$=Qa(t,h),x=ft.defined(g);return sd(m,b)&&(x?sd(g,$):!x)}catch{return!1}},decreased:(h,m,g)=>{if(!ft.defined(h))return!1;try{return l6(e,t,{key:h,actual:m,previous:g,type:"decreased"})}catch{return!1}},emptied:h=>{try{const[m,g]=d6(e,t,{key:h});return!!m.length&&!g.length}catch{return!1}},filled:h=>{try{const[m,g]=d6(e,t,{key:h});return!m.length&&!!g.length}catch{return!1}},increased:(h,m,g)=>{if(!ft.defined(h))return!1;try{return l6(e,t,{key:h,actual:m,previous:g,type:"increased"})}catch{return!1}},removed:(h,m)=>{try{return c6(e,t,{key:h,type:"removed",value:m})}catch{return!1}}}}var Ky,p6;function cde(){if(p6)return Ky;p6=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;Ky={left:i("scrollLeft"),top:i("scrollTop")};function i(s){return function(f,h,m,g){m=m||{},typeof m=="function"&&(g=m,m={}),typeof g!="function"&&(g=o);var b=r(),$=f[s],x=m.ease||a,A=isNaN(m.duration)?350:+m.duration,w=!1;return $===h?g(e,f[s]):requestAnimationFrame(E),C;function C(){w=!0}function E(T){if(w)return g(t,f[s]);var P=r(),F=n(1,(P-b)/A),q=x(F);f[s]=q*(h-$)+$,F<1?requestAnimationFrame(E):requestAnimationFrame(function(){g(null,f[s])})}}}function a(s){return .5*(1-Math.cos(Math.PI*s))}function o(){}return Ky}var dde=cde();const fde=ar(dde);var tp={exports:{}},hde=tp.exports,m6;function pde(){return m6||(m6=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(hde,function(){function t(r){var i=getComputedStyle(r,null).getPropertyValue("overflow");return i.indexOf("scroll")>-1||i.indexOf("auto")>-1}function n(r){if(r instanceof HTMLElement||r instanceof SVGElement){for(var i=r.parentNode;i.parentNode;){if(t(i))return i;i=i.parentNode}return document.scrollingElement||document.documentElement}}return n})}(tp)),tp.exports}var mde=pde();const WR=ar(mde);var zy,g6;function gde(){if(g6)return zy;g6=1;var e=function(r){return Object.prototype.hasOwnProperty.call(r,"props")},t=function(r,i){return r+n(i)},n=function(r){return r===null||typeof r=="boolean"||typeof r>"u"?"":typeof r=="number"?r.toString():typeof r=="string"?r:Array.isArray(r)?r.reduce(t,""):e(r)&&Object.prototype.hasOwnProperty.call(r.props,"children")?n(r.props.children):""};return n.default=n,zy=n,zy}var vde=gde();const v6=ar(vde);var qy,y6;function yde(){if(y6)return qy;y6=1;var e=function(C){return t(C)&&!n(C)};function t(w){return!!w&&typeof w=="object"}function n(w){var C=Object.prototype.toString.call(w);return C==="[object RegExp]"||C==="[object Date]"||a(w)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function a(w){return w.$$typeof===i}function o(w){return Array.isArray(w)?[]:{}}function s(w,C){return C.clone!==!1&&C.isMergeableObject(w)?x(o(w),w,C):w}function l(w,C,E){return w.concat(C).map(function(T){return s(T,E)})}function f(w,C){if(!C.customMerge)return x;var E=C.customMerge(w);return typeof E=="function"?E:x}function h(w){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(w).filter(function(C){return Object.propertyIsEnumerable.call(w,C)}):[]}function m(w){return Object.keys(w).concat(h(w))}function g(w,C){try{return C in w}catch{return!1}}function b(w,C){return g(w,C)&&!(Object.hasOwnProperty.call(w,C)&&Object.propertyIsEnumerable.call(w,C))}function $(w,C,E){var T={};return E.isMergeableObject(w)&&m(w).forEach(function(P){T[P]=s(w[P],E)}),m(C).forEach(function(P){b(w,P)||(g(w,P)&&E.isMergeableObject(C[P])?T[P]=f(P,E)(w[P],C[P],E):T[P]=s(C[P],E))}),T}function x(w,C,E){E=E||{},E.arrayMerge=E.arrayMerge||l,E.isMergeableObject=E.isMergeableObject||e,E.cloneUnlessOtherwiseSpecified=s;var T=Array.isArray(C),P=Array.isArray(w),F=T===P;return F?T?E.arrayMerge(w,C,E):$(w,C,E):s(C,E)}x.all=function(C,E){if(!Array.isArray(C))throw new Error("first argument should be an array");return C.reduce(function(T,P){return x(T,P,E)},{})};var A=x;return qy=A,qy}var bde=yde();const xa=ar(bde);/**!
124
+ */function _ce(e,t){return e?Bce(e)?de.createElement(e,t):e:null}function Bce(e){return Fce(e)||typeof e=="function"||kce(e)}function Fce(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function kce(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}var Ly,n6;function Mce(){if(n6)return Ly;n6=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i&&n(t[r],r,t)!==!1;);return t}return Ly=e,Ly}var Vy,r6;function Rce(){if(r6)return Vy;r6=1;var e=Ru(),t=Object.create,n=function(){function r(){}return function(i){if(!e(i))return{};if(t)return t(i);r.prototype=i;var a=new r;return r.prototype=void 0,a}}();return Vy=n,Vy}var Ny,i6;function Ice(){if(i6)return Ny;i6=1;var e=BT(),t=e(Object.getPrototypeOf,Object);return Ny=t,Ny}var jy,a6;function Oce(){if(a6)return jy;a6=1;var e=Mce(),t=Rce(),n=VT(),r=LT(),i=Ice(),a=Aa(),o=im(),s=nb(),l=Ru(),f=am();function h(m,g,b){var $=a(m),x=$||o(m)||f(m);if(g=r(g,4),b==null){var A=m&&m.constructor;x?b=$?new A:[]:l(m)?b=s(A)?t(i(m)):{}:b={}}return(x?e:n)(m,function(w,C,E){return g(b,w,C,E)}),b}return jy=h,jy}var Lce=Oce();const Vce=ar(Lce);function zR(e){return t=>typeof t===e}var Nce=zR("function"),jce=e=>e===null,o6=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",s6=e=>!Kce(e)&&!jce(e)&&(Nce(e)||typeof e=="object"),Kce=zR("undefined");function zce(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!Kr(e[r],t[r]))return!1;return!0}function qce(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new DataView(e.buffer),r=new DataView(t.buffer);let i=e.byteLength;for(;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function Uce(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;for(const n of e.entries())if(!Kr(n[1],t.get(n[0])))return!1;return!0}function Wce(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}function Kr(e,t){if(e===t)return!0;if(e&&s6(e)&&t&&s6(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return zce(e,t);if(e instanceof Map&&t instanceof Map)return Uce(e,t);if(e instanceof Set&&t instanceof Set)return Wce(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return qce(e,t);if(o6(e)&&o6(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=n.length;i--!==0;){const a=n[i];if(!(a==="_owner"&&e.$$typeof)&&!Kr(e[a],t[a]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var Hce=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],Gce=["bigint","boolean","null","number","string","symbol","undefined"];function Km(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(Yce(t))return t}function Pa(e){return t=>Km(t)===e}function Yce(e){return Hce.includes(e)}function Cc(e){return t=>typeof t===e}function Zce(e){return Gce.includes(e)}var Xce=["innerHTML","ownerDocument","style","attributes","nodeValue"];function ut(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(ut.array(e))return"Array";if(ut.plainFunction(e))return"Function";const t=Km(e);return t||"Object"}ut.array=Array.isArray;ut.arrayOf=(e,t)=>!ut.array(e)&&!ut.function(t)?!1:e.every(n=>t(n));ut.asyncGeneratorFunction=e=>Km(e)==="AsyncGeneratorFunction";ut.asyncFunction=Pa("AsyncFunction");ut.bigint=Cc("bigint");ut.boolean=e=>e===!0||e===!1;ut.date=Pa("Date");ut.defined=e=>!ut.undefined(e);ut.domElement=e=>ut.object(e)&&!ut.plainObject(e)&&e.nodeType===1&&ut.string(e.nodeName)&&Xce.every(t=>t in e);ut.empty=e=>ut.string(e)&&e.length===0||ut.array(e)&&e.length===0||ut.object(e)&&!ut.map(e)&&!ut.set(e)&&Object.keys(e).length===0||ut.set(e)&&e.size===0||ut.map(e)&&e.size===0;ut.error=Pa("Error");ut.function=Cc("function");ut.generator=e=>ut.iterable(e)&&ut.function(e.next)&&ut.function(e.throw);ut.generatorFunction=Pa("GeneratorFunction");ut.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;ut.iterable=e=>!ut.nullOrUndefined(e)&&ut.function(e[Symbol.iterator]);ut.map=Pa("Map");ut.nan=e=>Number.isNaN(e);ut.null=e=>e===null;ut.nullOrUndefined=e=>ut.null(e)||ut.undefined(e);ut.number=e=>Cc("number")(e)&&!ut.nan(e);ut.numericString=e=>ut.string(e)&&e.length>0&&!Number.isNaN(Number(e));ut.object=e=>!ut.nullOrUndefined(e)&&(ut.function(e)||typeof e=="object");ut.oneOf=(e,t)=>ut.array(e)?e.indexOf(t)>-1:!1;ut.plainFunction=Pa("Function");ut.plainObject=e=>{if(Km(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ut.primitive=e=>ut.null(e)||Zce(typeof e);ut.promise=Pa("Promise");ut.propertyOf=(e,t,n)=>{if(!ut.object(e)||!t)return!1;const r=e[t];return ut.function(n)?n(r):ut.defined(r)};ut.regexp=Pa("RegExp");ut.set=Pa("Set");ut.string=Cc("string");ut.symbol=Cc("symbol");ut.undefined=Cc("undefined");ut.weakMap=Pa("WeakMap");ut.weakSet=Pa("WeakSet");var ft=ut;function Qce(...e){return e.every(t=>ft.string(t)||ft.array(t)||ft.plainObject(t))}function Jce(e,t,n){return qR(e,t)?[e,t].every(ft.array)?!e.some(f6(n))&&t.some(f6(n)):[e,t].every(ft.plainObject)?!Object.entries(e).some(d6(n))&&Object.entries(t).some(d6(n)):t===n:!1}function u6(e,t,n){const{actual:r,key:i,previous:a,type:o}=n,s=Qa(e,i),l=Qa(t,i);let f=[s,l].every(ft.number)&&(o==="increased"?s<l:s>l);return ft.undefined(r)||(f=f&&l===r),ft.undefined(a)||(f=f&&s===a),f}function l6(e,t,n){const{key:r,type:i,value:a}=n,o=Qa(e,r),s=Qa(t,r),l=i==="added"?o:s,f=i==="added"?s:o;if(!ft.nullOrUndefined(a)){if(ft.defined(l)){if(ft.array(l)||ft.plainObject(l))return Jce(l,f,a)}else return Kr(f,a);return!1}return[o,s].every(ft.array)?!f.every(oD(l)):[o,s].every(ft.plainObject)?ede(Object.keys(l),Object.keys(f)):![o,s].every(h=>ft.primitive(h)&&ft.defined(h))&&(i==="added"?!ft.defined(o)&&ft.defined(s):ft.defined(o)&&!ft.defined(s))}function c6(e,t,{key:n}={}){let r=Qa(e,n),i=Qa(t,n);if(!qR(r,i))throw new TypeError("Inputs have different types");if(!Qce(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(ft.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function d6(e){return([t,n])=>ft.array(e)?Kr(e,n)||e.some(r=>Kr(r,n)||ft.array(n)&&oD(n)(r)):ft.plainObject(e)&&e[t]?!!e[t]&&Kr(e[t],n):Kr(e,n)}function ede(e,t){return t.some(n=>!e.includes(n))}function f6(e){return t=>ft.array(e)?e.some(n=>Kr(n,t)||ft.array(t)&&oD(t)(n)):Kr(e,t)}function sd(e,t){return ft.array(e)?e.some(n=>Kr(n,t)):Kr(e,t)}function oD(e){return t=>e.some(n=>Kr(n,t))}function qR(...e){return e.every(ft.array)||e.every(ft.number)||e.every(ft.plainObject)||e.every(ft.string)}function Qa(e,t){return ft.plainObject(e)||ft.array(e)?ft.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):ft.number(t)?e[t]:e:e}function jp(e,t){if([e,t].some(ft.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(h=>ft.plainObject(h)||ft.array(h)))throw new Error("Expected plain objects or array");return{added:(h,m)=>{try{return l6(e,t,{key:h,type:"added",value:m})}catch{return!1}},changed:(h,m,g)=>{try{const b=Qa(e,h),$=Qa(t,h),x=ft.defined(m),A=ft.defined(g);if(x||A){const w=A?sd(g,b):!sd(m,b),C=sd(m,$);return w&&C}return[b,$].every(ft.array)||[b,$].every(ft.plainObject)?!Kr(b,$):b!==$}catch{return!1}},changedFrom:(h,m,g)=>{if(!ft.defined(h))return!1;try{const b=Qa(e,h),$=Qa(t,h),x=ft.defined(g);return sd(m,b)&&(x?sd(g,$):!x)}catch{return!1}},decreased:(h,m,g)=>{if(!ft.defined(h))return!1;try{return u6(e,t,{key:h,actual:m,previous:g,type:"decreased"})}catch{return!1}},emptied:h=>{try{const[m,g]=c6(e,t,{key:h});return!!m.length&&!g.length}catch{return!1}},filled:h=>{try{const[m,g]=c6(e,t,{key:h});return!m.length&&!!g.length}catch{return!1}},increased:(h,m,g)=>{if(!ft.defined(h))return!1;try{return u6(e,t,{key:h,actual:m,previous:g,type:"increased"})}catch{return!1}},removed:(h,m)=>{try{return l6(e,t,{key:h,type:"removed",value:m})}catch{return!1}}}}var Ky,h6;function tde(){if(h6)return Ky;h6=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;Ky={left:i("scrollLeft"),top:i("scrollTop")};function i(s){return function(f,h,m,g){m=m||{},typeof m=="function"&&(g=m,m={}),typeof g!="function"&&(g=o);var b=r(),$=f[s],x=m.ease||a,A=isNaN(m.duration)?350:+m.duration,w=!1;return $===h?g(e,f[s]):requestAnimationFrame(E),C;function C(){w=!0}function E(T){if(w)return g(t,f[s]);var P=r(),F=n(1,(P-b)/A),q=x(F);f[s]=q*(h-$)+$,F<1?requestAnimationFrame(E):requestAnimationFrame(function(){g(null,f[s])})}}}function a(s){return .5*(1-Math.cos(Math.PI*s))}function o(){}return Ky}var nde=tde();const rde=ar(nde);var ep={exports:{}},ide=ep.exports,p6;function ade(){return p6||(p6=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(ide,function(){function t(r){var i=getComputedStyle(r,null).getPropertyValue("overflow");return i.indexOf("scroll")>-1||i.indexOf("auto")>-1}function n(r){if(r instanceof HTMLElement||r instanceof SVGElement){for(var i=r.parentNode;i.parentNode;){if(t(i))return i;i=i.parentNode}return document.scrollingElement||document.documentElement}}return n})}(ep)),ep.exports}var ode=ade();const UR=ar(ode);var zy,m6;function sde(){if(m6)return zy;m6=1;var e=function(r){return Object.prototype.hasOwnProperty.call(r,"props")},t=function(r,i){return r+n(i)},n=function(r){return r===null||typeof r=="boolean"||typeof r>"u"?"":typeof r=="number"?r.toString():typeof r=="string"?r:Array.isArray(r)?r.reduce(t,""):e(r)&&Object.prototype.hasOwnProperty.call(r.props,"children")?n(r.props.children):""};return n.default=n,zy=n,zy}var ude=sde();const g6=ar(ude);var qy,v6;function lde(){if(v6)return qy;v6=1;var e=function(C){return t(C)&&!n(C)};function t(w){return!!w&&typeof w=="object"}function n(w){var C=Object.prototype.toString.call(w);return C==="[object RegExp]"||C==="[object Date]"||a(w)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function a(w){return w.$$typeof===i}function o(w){return Array.isArray(w)?[]:{}}function s(w,C){return C.clone!==!1&&C.isMergeableObject(w)?x(o(w),w,C):w}function l(w,C,E){return w.concat(C).map(function(T){return s(T,E)})}function f(w,C){if(!C.customMerge)return x;var E=C.customMerge(w);return typeof E=="function"?E:x}function h(w){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(w).filter(function(C){return Object.propertyIsEnumerable.call(w,C)}):[]}function m(w){return Object.keys(w).concat(h(w))}function g(w,C){try{return C in w}catch{return!1}}function b(w,C){return g(w,C)&&!(Object.hasOwnProperty.call(w,C)&&Object.propertyIsEnumerable.call(w,C))}function $(w,C,E){var T={};return E.isMergeableObject(w)&&m(w).forEach(function(P){T[P]=s(w[P],E)}),m(C).forEach(function(P){b(w,P)||(g(w,P)&&E.isMergeableObject(C[P])?T[P]=f(P,E)(w[P],C[P],E):T[P]=s(C[P],E))}),T}function x(w,C,E){E=E||{},E.arrayMerge=E.arrayMerge||l,E.isMergeableObject=E.isMergeableObject||e,E.cloneUnlessOtherwiseSpecified=s;var T=Array.isArray(C),P=Array.isArray(w),F=T===P;return F?T?E.arrayMerge(w,C,E):$(w,C,E):s(C,E)}x.all=function(C,E){if(!Array.isArray(C))throw new Error("first argument should be an array");return C.reduce(function(T,P){return x(T,P,E)},{})};var A=x;return qy=A,qy}var cde=lde();const xa=ar(cde);/**!
125
125
  * @fileOverview Kickass library to create and place poppers near their reference elements.
126
126
  * @version 1.16.1
127
127
  * @license
@@ -144,7 +144,7 @@ Valid keys: `+JSON.stringify(Object.keys(M),null," "));var Te=je(Xe,ke,_e,Be,Ge
144
144
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
145
145
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
146
146
  * SOFTWARE.
147
- */var Pf=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",xde=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Pf&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function Dde(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function $de(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},xde))}}var Ede=Pf&&window.Promise,Cde=Ede?Dde:$de;function HR(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function Vu(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function sD(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function _f(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Vu(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:_f(sD(e))}function GR(e){return e&&e.referenceNode?e.referenceNode:e}var b6=Pf&&!!(window.MSInputMethodContext&&document.documentMode),x6=Pf&&/MSIE 10/.test(navigator.userAgent);function wc(e){return e===11?b6:e===10?x6:b6||x6}function ic(e){if(!e)return document.documentElement;for(var t=wc(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return!r||r==="BODY"||r==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&Vu(n,"position")==="static"?ic(n):n}function wde(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||ic(e.firstElementChild)===e}function k1(e){return e.parentNode!==null?k1(e.parentNode):e}function Kp(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,a=document.createRange();a.setStart(r,0),a.setEnd(i,0);var o=a.commonAncestorContainer;if(e!==o&&t!==o||r.contains(i))return wde(o)?o:ic(o);var s=k1(e);return s.host?Kp(s.host,t):Kp(e,k1(t).host)}function ac(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=t==="top"?"scrollTop":"scrollLeft",r=e.nodeName;if(r==="BODY"||r==="HTML"){var i=e.ownerDocument.documentElement,a=e.ownerDocument.scrollingElement||i;return a[n]}return e[n]}function Ade(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=ac(t,"top"),i=ac(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=i*a,e.right+=i*a,e}function D6(e,t){var n=t==="x"?"Left":"Top",r=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function $6(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],wc(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function YR(e){var t=e.body,n=e.documentElement,r=wc(10)&&getComputedStyle(n);return{height:$6("Height",t,n,r),width:$6("Width",t,n,r)}}var Sde=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Tde=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),oc=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Zi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function As(e){return Zi({},e,{right:e.left+e.width,bottom:e.top+e.height})}function M1(e){var t={};try{if(wc(10)){t=e.getBoundingClientRect();var n=ac(e,"top"),r=ac(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a=e.nodeName==="HTML"?YR(e.ownerDocument):{},o=a.width||e.clientWidth||i.width,s=a.height||e.clientHeight||i.height,l=e.offsetWidth-o,f=e.offsetHeight-s;if(l||f){var h=Vu(e);l-=D6(h,"x"),f-=D6(h,"y"),i.width-=l,i.height-=f}return As(i)}function uD(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=wc(10),i=t.nodeName==="HTML",a=M1(e),o=M1(t),s=_f(e),l=Vu(t),f=parseFloat(l.borderTopWidth),h=parseFloat(l.borderLeftWidth);n&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var m=As({top:a.top-o.top-f,left:a.left-o.left-h,width:a.width,height:a.height});if(m.marginTop=0,m.marginLeft=0,!r&&i){var g=parseFloat(l.marginTop),b=parseFloat(l.marginLeft);m.top-=f-g,m.bottom-=f-g,m.left-=h-b,m.right-=h-b,m.marginTop=g,m.marginLeft=b}return(r&&!n?t.contains(s):t===s&&s.nodeName!=="BODY")&&(m=Ade(m,t)),m}function Pde(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=uD(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:ac(n),s=t?0:ac(n,"left"),l={top:o-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:a};return As(l)}function ZR(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(Vu(e,"position")==="fixed")return!0;var n=sD(e);return n?ZR(n):!1}function XR(e){if(!e||!e.parentElement||wc())return document.documentElement;for(var t=e.parentElement;t&&Vu(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function lD(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a={top:0,left:0},o=i?XR(e):Kp(e,GR(t));if(r==="viewport")a=Pde(o,i);else{var s=void 0;r==="scrollParent"?(s=_f(sD(t)),s.nodeName==="BODY"&&(s=e.ownerDocument.documentElement)):r==="window"?s=e.ownerDocument.documentElement:s=r;var l=uD(s,o,i);if(s.nodeName==="HTML"&&!ZR(o)){var f=YR(e.ownerDocument),h=f.height,m=f.width;a.top+=l.top-l.marginTop,a.bottom=h+l.top,a.left+=l.left-l.marginLeft,a.right=m+l.left}else a=l}n=n||0;var g=typeof n=="number";return a.left+=g?n:n.left||0,a.top+=g?n:n.top||0,a.right-=g?n:n.right||0,a.bottom-=g?n:n.bottom||0,a}function _de(e){var t=e.width,n=e.height;return t*n}function QR(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var o=lD(n,r,a,i),s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},l=Object.keys(s).map(function(g){return Zi({key:g},s[g],{area:_de(s[g])})}).sort(function(g,b){return b.area-g.area}),f=l.filter(function(g){var b=g.width,$=g.height;return b>=n.clientWidth&&$>=n.clientHeight}),h=f.length>0?f[0].key:l[0].key,m=e.split("-")[1];return h+(m?"-"+m:"")}function JR(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?XR(t):Kp(t,GR(n));return uD(n,i,r)}function eI(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),a={width:e.offsetWidth+i,height:e.offsetHeight+r};return a}function zp(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(n){return t[n]})}function tI(e,t,n){n=n.split("-")[0];var r=eI(e),i={width:r.width,height:r.height},a=["right","left"].indexOf(n)!==-1,o=a?"top":"left",s=a?"left":"top",l=a?"height":"width",f=a?"width":"height";return i[o]=t[o]+t[l]/2-r[l]/2,n===s?i[s]=t[s]-r[f]:i[s]=t[zp(s)],i}function Bf(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Bde(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=Bf(e,function(i){return i[t]===n});return e.indexOf(r)}function nI(e,t,n){var r=n===void 0?e:e.slice(0,Bde(e,"name",n));return r.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var a=i.function||i.fn;i.enabled&&HR(a)&&(t.offsets.popper=As(t.offsets.popper),t.offsets.reference=As(t.offsets.reference),t=a(t,i))}),t}function Fde(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=JR(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=QR(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=tI(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=nI(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function rI(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function cD(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],a=i?""+i+n:e;if(typeof document.body.style[a]<"u")return a}return null}function kde(){return this.state.isDestroyed=!0,rI(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[cD("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function iI(e){var t=e.ownerDocument;return t?t.defaultView:window}function aI(e,t,n,r){var i=e.nodeName==="BODY",a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),i||aI(_f(a.parentNode),t,n,r),r.push(a)}function Mde(e,t,n,r){n.updateBound=r,iI(e).addEventListener("resize",n.updateBound,{passive:!0});var i=_f(e);return aI(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Rde(){this.state.eventsEnabled||(this.state=Mde(this.reference,this.options,this.state,this.scheduleUpdate))}function Ide(e,t){return iI(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function Ode(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Ide(this.reference,this.state))}function dD(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function R1(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&dD(t[n])&&(r="px"),e.style[n]=t[n]+r})}function Lde(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function Vde(e){return R1(e.instance.popper,e.styles),Lde(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&R1(e.arrowElement,e.arrowStyles),e}function Nde(e,t,n,r,i){var a=JR(i,t,e,n.positionFixed),o=QR(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",o),R1(t,{position:n.positionFixed?"fixed":"absolute"}),n}function jde(e,t){var n=e.offsets,r=n.popper,i=n.reference,a=Math.round,o=Math.floor,s=function(w){return w},l=a(i.width),f=a(r.width),h=["left","right"].indexOf(e.placement)!==-1,m=e.placement.indexOf("-")!==-1,g=l%2===f%2,b=l%2===1&&f%2===1,$=t?h||m||g?a:o:s,x=t?a:s;return{left:$(b&&!m&&t?r.left-1:r.left),top:x(r.top),bottom:x(r.bottom),right:$(r.right)}}var Kde=Pf&&/Firefox/i.test(navigator.userAgent);function zde(e,t){var n=t.x,r=t.y,i=e.offsets.popper,a=Bf(e.instance.modifiers,function(E){return E.name==="applyStyle"}).gpuAcceleration;a!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=a!==void 0?a:t.gpuAcceleration,s=ic(e.instance.popper),l=M1(s),f={position:i.position},h=jde(e,window.devicePixelRatio<2||!Kde),m=n==="bottom"?"top":"bottom",g=r==="right"?"left":"right",b=cD("transform"),$=void 0,x=void 0;if(m==="bottom"?s.nodeName==="HTML"?x=-s.clientHeight+h.bottom:x=-l.height+h.bottom:x=h.top,g==="right"?s.nodeName==="HTML"?$=-s.clientWidth+h.right:$=-l.width+h.right:$=h.left,o&&b)f[b]="translate3d("+$+"px, "+x+"px, 0)",f[m]=0,f[g]=0,f.willChange="transform";else{var A=m==="bottom"?-1:1,w=g==="right"?-1:1;f[m]=x*A,f[g]=$*w,f.willChange=m+", "+g}var C={"x-placement":e.placement};return e.attributes=Zi({},C,e.attributes),e.styles=Zi({},f,e.styles),e.arrowStyles=Zi({},e.offsets.arrow,e.arrowStyles),e}function oI(e,t,n){var r=Bf(e,function(s){var l=s.name;return l===t}),i=!!r&&e.some(function(s){return s.name===n&&s.enabled&&s.order<r.order});if(!i){var a="`"+t+"`",o="`"+n+"`";console.warn(o+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return i}function qde(e,t){var n;if(!oI(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if(typeof r=="string"){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],a=e.offsets,o=a.popper,s=a.reference,l=["left","right"].indexOf(i)!==-1,f=l?"height":"width",h=l?"Top":"Left",m=h.toLowerCase(),g=l?"left":"top",b=l?"bottom":"right",$=eI(r)[f];s[b]-$<o[m]&&(e.offsets.popper[m]-=o[m]-(s[b]-$)),s[m]+$>o[b]&&(e.offsets.popper[m]+=s[m]+$-o[b]),e.offsets.popper=As(e.offsets.popper);var x=s[m]+s[f]/2-$/2,A=Vu(e.instance.popper),w=parseFloat(A["margin"+h]),C=parseFloat(A["border"+h+"Width"]),E=x-e.offsets.popper[m]-w-C;return E=Math.max(Math.min(o[f]-$,E),0),e.arrowElement=r,e.offsets.arrow=(n={},oc(n,m,Math.round(E)),oc(n,g,""),n),e}function Ude(e){return e==="end"?"start":e==="start"?"end":e}var sI=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Uy=sI.slice(3);function E6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Uy.indexOf(e),r=Uy.slice(n+1).concat(Uy.slice(0,n));return t?r.reverse():r}var Wy={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Wde(e,t){if(rI(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=lD(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=zp(r),a=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case Wy.FLIP:o=[r,i];break;case Wy.CLOCKWISE:o=E6(r);break;case Wy.COUNTERCLOCKWISE:o=E6(r,!0);break;default:o=t.behavior}return o.forEach(function(s,l){if(r!==s||o.length===l+1)return e;r=e.placement.split("-")[0],i=zp(r);var f=e.offsets.popper,h=e.offsets.reference,m=Math.floor,g=r==="left"&&m(f.right)>m(h.left)||r==="right"&&m(f.left)<m(h.right)||r==="top"&&m(f.bottom)>m(h.top)||r==="bottom"&&m(f.top)<m(h.bottom),b=m(f.left)<m(n.left),$=m(f.right)>m(n.right),x=m(f.top)<m(n.top),A=m(f.bottom)>m(n.bottom),w=r==="left"&&b||r==="right"&&$||r==="top"&&x||r==="bottom"&&A,C=["top","bottom"].indexOf(r)!==-1,E=!!t.flipVariations&&(C&&a==="start"&&b||C&&a==="end"&&$||!C&&a==="start"&&x||!C&&a==="end"&&A),T=!!t.flipVariationsByContent&&(C&&a==="start"&&$||C&&a==="end"&&b||!C&&a==="start"&&A||!C&&a==="end"&&x),P=E||T;(g||w||P)&&(e.flipped=!0,(g||w)&&(r=o[l+1]),P&&(a=Ude(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=Zi({},e.offsets.popper,tI(e.instance.popper,e.offsets.reference,e.placement)),e=nI(e.instance.modifiers,e,"flip"))}),e}function Hde(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],a=Math.floor,o=["top","bottom"].indexOf(i)!==-1,s=o?"right":"bottom",l=o?"left":"top",f=o?"width":"height";return n[s]<a(r[l])&&(e.offsets.popper[l]=a(r[l])-n[f]),n[l]>a(r[s])&&(e.offsets.popper[l]=a(r[s])),e}function Gde(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+i[1],o=i[2];if(!a)return e;if(o.indexOf("%")===0){var s=void 0;switch(o){case"%p":s=n;break;case"%":case"%r":default:s=r}var l=As(s);return l[t]/100*a}else if(o==="vh"||o==="vw"){var f=void 0;return o==="vh"?f=Math.max(document.documentElement.clientHeight,window.innerHeight||0):f=Math.max(document.documentElement.clientWidth,window.innerWidth||0),f/100*a}else return a}function Yde(e,t,n,r){var i=[0,0],a=["right","left"].indexOf(r)!==-1,o=e.split(/(\+|\-)/).map(function(h){return h.trim()}),s=o.indexOf(Bf(o,function(h){return h.search(/,|\s/)!==-1}));o[s]&&o[s].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,f=s!==-1?[o.slice(0,s).concat([o[s].split(l)[0]]),[o[s].split(l)[1]].concat(o.slice(s+1))]:[o];return f=f.map(function(h,m){var g=(m===1?!a:a)?"height":"width",b=!1;return h.reduce(function($,x){return $[$.length-1]===""&&["+","-"].indexOf(x)!==-1?($[$.length-1]=x,b=!0,$):b?($[$.length-1]+=x,b=!1,$):$.concat(x)},[]).map(function($){return Gde($,g,t,n)})}),f.forEach(function(h,m){h.forEach(function(g,b){dD(g)&&(i[m]+=g*(h[b-1]==="-"?-1:1))})}),i}function Zde(e,t){var n=t.offset,r=e.placement,i=e.offsets,a=i.popper,o=i.reference,s=r.split("-")[0],l=void 0;return dD(+n)?l=[+n,0]:l=Yde(n,a,o,s),s==="left"?(a.top+=l[0],a.left-=l[1]):s==="right"?(a.top+=l[0],a.left+=l[1]):s==="top"?(a.left+=l[0],a.top-=l[1]):s==="bottom"&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e}function Xde(e,t){var n=t.boundariesElement||ic(e.instance.popper);e.instance.reference===n&&(n=ic(n));var r=cD("transform"),i=e.instance.popper.style,a=i.top,o=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=lD(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=a,i.left=o,i[r]=s,t.boundaries=l;var f=t.priority,h=e.offsets.popper,m={primary:function(b){var $=h[b];return h[b]<l[b]&&!t.escapeWithReference&&($=Math.max(h[b],l[b])),oc({},b,$)},secondary:function(b){var $=b==="right"?"left":"top",x=h[$];return h[b]>l[b]&&!t.escapeWithReference&&(x=Math.min(h[$],l[b]-(b==="right"?h.width:h.height))),oc({},$,x)}};return f.forEach(function(g){var b=["left","top"].indexOf(g)!==-1?"primary":"secondary";h=Zi({},h,m[b](g))}),e.offsets.popper=h,e}function Qde(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,a=i.reference,o=i.popper,s=["bottom","top"].indexOf(n)!==-1,l=s?"left":"top",f=s?"width":"height",h={start:oc({},l,a[l]),end:oc({},l,a[l]+a[f]-o[f])};e.offsets.popper=Zi({},o,h[r])}return e}function Jde(e){if(!oI(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Bf(e.instance.modifiers,function(r){return r.name==="preventOverflow"}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function efe(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,a=r.reference,o=["left","right"].indexOf(n)!==-1,s=["top","left"].indexOf(n)===-1;return i[o?"left":"top"]=a[n]-(s?i[o?"width":"height"]:0),e.placement=zp(t),e.offsets.popper=As(i),e}var tfe={shift:{order:100,enabled:!0,fn:Qde},offset:{order:200,enabled:!0,fn:Zde,offset:0},preventOverflow:{order:300,enabled:!0,fn:Xde,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:Hde},arrow:{order:500,enabled:!0,fn:qde,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Wde,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:efe},hide:{order:800,enabled:!0,fn:Jde},computeStyle:{order:850,enabled:!0,fn:zde,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:Vde,onLoad:Nde,gpuAcceleration:void 0}},nfe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:tfe},rf=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Sde(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Cde(this.update.bind(this)),this.options=Zi({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Zi({},e.Defaults.modifiers,i.modifiers)).forEach(function(o){r.options.modifiers[o]=Zi({},e.Defaults.modifiers[o]||{},i.modifiers?i.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return Zi({name:o},r.options.modifiers[o])}).sort(function(o,s){return o.order-s.order}),this.modifiers.forEach(function(o){o.enabled&&HR(o.onLoad)&&o.onLoad(r.reference,r.popper,r.options,o,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return Tde(e,[{key:"update",value:function(){return Fde.call(this)}},{key:"destroy",value:function(){return kde.call(this)}},{key:"enableEventListeners",value:function(){return Rde.call(this)}},{key:"disableEventListeners",value:function(){return Ode.call(this)}}]),e}();rf.Utils=(typeof window<"u"?window:global).PopperUtils;rf.placements=sI;rf.Defaults=nfe;var rfe=["innerHTML","ownerDocument","style","attributes","nodeValue"],ife=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],afe=["bigint","boolean","null","number","string","symbol","undefined"];function zm(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(ofe(t))return t}function _a(e){return function(t){return zm(t)===e}}function ofe(e){return ife.includes(e)}function Ac(e){return function(t){return typeof t===e}}function sfe(e){return afe.includes(e)}function ze(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(ze.array(e))return"Array";if(ze.plainFunction(e))return"Function";var t=zm(e);return t||"Object"}ze.array=Array.isArray;ze.arrayOf=function(e,t){return!ze.array(e)&&!ze.function(t)?!1:e.every(function(n){return t(n)})};ze.asyncGeneratorFunction=function(e){return zm(e)==="AsyncGeneratorFunction"};ze.asyncFunction=_a("AsyncFunction");ze.bigint=Ac("bigint");ze.boolean=function(e){return e===!0||e===!1};ze.date=_a("Date");ze.defined=function(e){return!ze.undefined(e)};ze.domElement=function(e){return ze.object(e)&&!ze.plainObject(e)&&e.nodeType===1&&ze.string(e.nodeName)&&rfe.every(function(t){return t in e})};ze.empty=function(e){return ze.string(e)&&e.length===0||ze.array(e)&&e.length===0||ze.object(e)&&!ze.map(e)&&!ze.set(e)&&Object.keys(e).length===0||ze.set(e)&&e.size===0||ze.map(e)&&e.size===0};ze.error=_a("Error");ze.function=Ac("function");ze.generator=function(e){return ze.iterable(e)&&ze.function(e.next)&&ze.function(e.throw)};ze.generatorFunction=_a("GeneratorFunction");ze.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};ze.iterable=function(e){return!ze.nullOrUndefined(e)&&ze.function(e[Symbol.iterator])};ze.map=_a("Map");ze.nan=function(e){return Number.isNaN(e)};ze.null=function(e){return e===null};ze.nullOrUndefined=function(e){return ze.null(e)||ze.undefined(e)};ze.number=function(e){return Ac("number")(e)&&!ze.nan(e)};ze.numericString=function(e){return ze.string(e)&&e.length>0&&!Number.isNaN(Number(e))};ze.object=function(e){return!ze.nullOrUndefined(e)&&(ze.function(e)||typeof e=="object")};ze.oneOf=function(e,t){return ze.array(e)?e.indexOf(t)>-1:!1};ze.plainFunction=_a("Function");ze.plainObject=function(e){if(zm(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ze.primitive=function(e){return ze.null(e)||sfe(typeof e)};ze.promise=_a("Promise");ze.propertyOf=function(e,t,n){if(!ze.object(e)||!t)return!1;var r=e[t];return ze.function(n)?n(r):ze.defined(r)};ze.regexp=_a("RegExp");ze.set=_a("Set");ze.string=Ac("string");ze.symbol=Ac("symbol");ze.undefined=Ac("undefined");ze.weakMap=_a("WeakMap");ze.weakSet=_a("WeakSet");function uI(e){return function(t){return typeof t===e}}var ufe=uI("function"),lfe=function(e){return e===null},C6=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},w6=function(e){return!cfe(e)&&!lfe(e)&&(ufe(e)||typeof e=="object")},cfe=uI("undefined"),I1=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function dfe(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!si(e[r],t[r]))return!1;return!0}function ffe(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=new DataView(e.buffer),r=new DataView(t.buffer),i=e.byteLength;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function hfe(e,t){var n,r,i,a;if(e.size!==t.size)return!1;try{for(var o=I1(e.entries()),s=o.next();!s.done;s=o.next()){var l=s.value;if(!t.has(l[0]))return!1}}catch(m){n={error:m}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}try{for(var f=I1(e.entries()),h=f.next();!h.done;h=f.next()){var l=h.value;if(!si(l[1],t.get(l[0])))return!1}}catch(m){i={error:m}}finally{try{h&&!h.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}return!0}function pfe(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=I1(e.entries()),a=i.next();!a.done;a=i.next()){var o=a.value;if(!t.has(o[0]))return!1}}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function si(e,t){if(e===t)return!0;if(e&&w6(e)&&t&&w6(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return dfe(e,t);if(e instanceof Map&&t instanceof Map)return hfe(e,t);if(e instanceof Set&&t instanceof Set)return pfe(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return ffe(e,t);if(C6(e)&&C6(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(var i=n.length;i--!==0;){var a=n[i];if(!(a==="_owner"&&e.$$typeof)&&!si(e[a],t[a]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function mfe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return ze.string(n)||ze.array(n)||ze.plainObject(n)})}function gfe(e,t,n){return lI(e,t)?[e,t].every(ze.array)?!e.some(_6(n))&&t.some(_6(n)):[e,t].every(ze.plainObject)?!Object.entries(e).some(P6(n))&&Object.entries(t).some(P6(n)):t===n:!1}function A6(e,t,n){var r=n.actual,i=n.key,a=n.previous,o=n.type,s=Ja(e,i),l=Ja(t,i),f=[s,l].every(ze.number)&&(o==="increased"?s<l:s>l);return ze.undefined(r)||(f=f&&l===r),ze.undefined(a)||(f=f&&s===a),f}function S6(e,t,n){var r=n.key,i=n.type,a=n.value,o=Ja(e,r),s=Ja(t,r),l=i==="added"?o:s,f=i==="added"?s:o;if(!ze.nullOrUndefined(a)){if(ze.defined(l)){if(ze.array(l)||ze.plainObject(l))return gfe(l,f,a)}else return si(f,a);return!1}return[o,s].every(ze.array)?!f.every(fD(l)):[o,s].every(ze.plainObject)?vfe(Object.keys(l),Object.keys(f)):![o,s].every(function(h){return ze.primitive(h)&&ze.defined(h)})&&(i==="added"?!ze.defined(o)&&ze.defined(s):ze.defined(o)&&!ze.defined(s))}function T6(e,t,n){var r=n===void 0?{}:n,i=r.key,a=Ja(e,i),o=Ja(t,i);if(!lI(a,o))throw new TypeError("Inputs have different types");if(!mfe(a,o))throw new TypeError("Inputs don't have length");return[a,o].every(ze.plainObject)&&(a=Object.keys(a),o=Object.keys(o)),[a,o]}function P6(e){return function(t){var n=t[0],r=t[1];return ze.array(e)?si(e,r)||e.some(function(i){return si(i,r)||ze.array(r)&&fD(r)(i)}):ze.plainObject(e)&&e[n]?!!e[n]&&si(e[n],r):si(e,r)}}function vfe(e,t){return t.some(function(n){return!e.includes(n)})}function _6(e){return function(t){return ze.array(e)?e.some(function(n){return si(n,t)||ze.array(t)&&fD(t)(n)}):si(e,t)}}function ud(e,t){return ze.array(e)?e.some(function(n){return si(n,t)}):si(e,t)}function fD(e){return function(t){return e.some(function(n){return si(n,t)})}}function lI(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(ze.array)||e.every(ze.number)||e.every(ze.plainObject)||e.every(ze.string)}function Ja(e,t){if(ze.plainObject(e)||ze.array(e)){if(ze.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return ze.number(t)?e[t]:e}return e}function yfe(e,t){if([e,t].some(ze.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(m){return ze.plainObject(m)||ze.array(m)}))throw new Error("Expected plain objects or array");var n=function(m,g){try{return S6(e,t,{key:m,type:"added",value:g})}catch{return!1}},r=function(m,g,b){try{var $=Ja(e,m),x=Ja(t,m),A=ze.defined(g),w=ze.defined(b);if(A||w){var C=w?ud(b,$):!ud(g,$),E=ud(g,x);return C&&E}return[$,x].every(ze.array)||[$,x].every(ze.plainObject)?!si($,x):$!==x}catch{return!1}},i=function(m,g,b){if(!ze.defined(m))return!1;try{var $=Ja(e,m),x=Ja(t,m),A=ze.defined(b);return ud(g,$)&&(A?ud(b,x):!A)}catch{return!1}},a=function(m,g){return ze.defined(m)?(process.env.NODE_ENV==="development"&&console.warn("`changedTo` is deprecated! Replace it with `change`"),r(m,g)):!1},o=function(m,g,b){if(!ze.defined(m))return!1;try{return A6(e,t,{key:m,actual:g,previous:b,type:"decreased"})}catch{return!1}},s=function(m){try{var g=T6(e,t,{key:m}),b=g[0],$=g[1];return!!b.length&&!$.length}catch{return!1}},l=function(m){try{var g=T6(e,t,{key:m}),b=g[0],$=g[1];return!b.length&&!!$.length}catch{return!1}},f=function(m,g,b){if(!ze.defined(m))return!1;try{return A6(e,t,{key:m,actual:g,previous:b,type:"increased"})}catch{return!1}},h=function(m,g){try{return S6(e,t,{key:m,type:"removed",value:g})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:a,decreased:o,emptied:s,filled:l,increased:f,removed:h}}function B6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Tn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B6(Object(n),!0).forEach(function(r){Tr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ff(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bfe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dI(r.key),r)}}function kf(e,t,n){return t&&bfe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tr(e,t,n){return t=dI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mf(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O1(e,t)}function qp(e){return qp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qp(e)}function O1(e,t){return O1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},O1(e,t)}function xfe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Dfe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function cI(e,t){if(e==null)return{};var n=Dfe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $fe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mo(e)}function Rf(e){var t=xfe();return function(){var r=qp(e),i;if(t){var a=qp(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return $fe(this,i)}}function Efe(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dI(e){var t=Efe(e,"string");return typeof t=="symbol"?t:String(t)}var Cfe={flip:{padding:20},preventOverflow:{padding:10}},wfe="The typeValidator argument must be a function with the signature function(props, propName, componentName).",Afe="The error message is optional, but must be a string if provided.";function Sfe(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function Tfe(e,t){return Object.hasOwnProperty.call(e,t)}function Pfe(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function _fe(e,t){if(typeof e!="function")throw new TypeError(wfe);if(t&&typeof t!="string")throw new TypeError(Afe)}function F6(e,t,n){return _fe(e,n),function(r,i,a){for(var o=arguments.length,s=new Array(o>3?o-3:0),l=3;l<o;l++)s[l-3]=arguments[l];return Sfe(t,r,i,a)?Tfe(r,i)?e.apply(void 0,[r,i,a].concat(s)):Pfe(r,i,a):e.apply(void 0,[r,i,a].concat(s))}}var Zt={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing"},ld=No.default.createPortal!==void 0;function Ga(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Hy(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function Mh(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,a=e.debug,o=a===void 0?!1:a,s=i?console.warn||console.error:console.log;o&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(l){ze.plainObject(l)&&l.key?s.apply(console,[l.key,l.value]):s.apply(console,[l])}):s.apply(console,[n]),console.groupEnd())}function Bfe(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function Ffe(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function kfe(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(o){n(o),Ffe(e,t,i)},Bfe(e,t,i,r)}function k6(){}var fI=function(e){Mf(n,e);var t=Rf(n);function n(){return Ff(this,n),t.apply(this,arguments)}return kf(n,[{key:"componentDidMount",value:function(){Ga()&&(this.node||this.appendNode(),ld||this.renderPortal())}},{key:"componentDidUpdate",value:function(){Ga()&&(ld||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!Ga()||!this.node||(ld||No.default.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var i=this.props,a=i.id,o=i.zIndex;this.node||(this.node=document.createElement("div"),a&&(this.node.id=a),o&&(this.node.style.zIndex=o),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!Ga())return null;var i=this.props,a=i.children,o=i.setRef;if(this.node||this.appendNode(),ld)return No.default.createPortal(a,this.node);var s=No.default.unstable_renderSubtreeIntoContainer(this,a.length>1?de.default.createElement("div",null,a):a[0],this.node);return o(s),null}},{key:"renderReact16",value:function(){var i=this.props,a=i.hasChildren,o=i.placement,s=i.target;return a?this.renderPortal():s||o==="center"?this.renderPortal():null}},{key:"render",value:function(){return ld?this.renderReact16():null}}]),n}(de.default.Component);Tr(fI,"propTypes",{children:rt.oneOfType([rt.element,rt.array]),hasChildren:rt.bool,id:rt.oneOfType([rt.string,rt.number]),placement:rt.string,setRef:rt.func.isRequired,target:rt.oneOfType([rt.object,rt.string]),zIndex:rt.number});var hI=function(e){Mf(n,e);var t=Rf(n);function n(){return Ff(this,n),t.apply(this,arguments)}return kf(n,[{key:"parentStyle",get:function(){var i=this.props,a=i.placement,o=i.styles,s=o.arrow.length,l={pointerEvents:"none",position:"absolute",width:"100%"};return a.startsWith("top")?(l.bottom=0,l.left=0,l.right=0,l.height=s):a.startsWith("bottom")?(l.left=0,l.right=0,l.top=0,l.height=s):a.startsWith("left")?(l.right=0,l.top=0,l.bottom=0):a.startsWith("right")&&(l.left=0,l.top=0),l}},{key:"render",value:function(){var i=this.props,a=i.placement,o=i.setArrowRef,s=i.styles,l=s.arrow,f=l.color,h=l.display,m=l.length,g=l.margin,b=l.position,$=l.spread,x={display:h,position:b},A,w=$,C=m;return a.startsWith("top")?(A="0,0 ".concat(w/2,",").concat(C," ").concat(w,",0"),x.bottom=0,x.marginLeft=g,x.marginRight=g):a.startsWith("bottom")?(A="".concat(w,",").concat(C," ").concat(w/2,",0 0,").concat(C),x.top=0,x.marginLeft=g,x.marginRight=g):a.startsWith("left")?(C=$,w=m,A="0,0 ".concat(w,",").concat(C/2," 0,").concat(C),x.right=0,x.marginTop=g,x.marginBottom=g):a.startsWith("right")&&(C=$,w=m,A="".concat(w,",").concat(C," ").concat(w,",0 0,").concat(C/2),x.left=0,x.marginTop=g,x.marginBottom=g),de.default.createElement("div",{className:"__floater__arrow",style:this.parentStyle},de.default.createElement("span",{ref:o,style:x},de.default.createElement("svg",{width:w,height:C,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},de.default.createElement("polygon",{points:A,fill:f}))))}}]),n}(de.default.Component);Tr(hI,"propTypes",{placement:rt.string.isRequired,setArrowRef:rt.func.isRequired,styles:rt.object.isRequired});var Mfe=["color","height","width"];function pI(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,a=n.width,o=cI(n,Mfe);return de.default.createElement("button",{"aria-label":"close",onClick:t,style:o,type:"button"},de.default.createElement("svg",{width:"".concat(a,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},de.default.createElement("g",null,de.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:r}))))}pI.propTypes={handleClick:rt.func.isRequired,styles:rt.object.isRequired};function mI(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,a=e.positionWrapper,o=e.showCloseButton,s=e.title,l=e.styles,f={content:de.default.isValidElement(t)?t:de.default.createElement("div",{className:"__floater__content",style:l.content},t)};return s&&(f.title=de.default.isValidElement(s)?s:de.default.createElement("div",{className:"__floater__title",style:l.title},s)),n&&(f.footer=de.default.isValidElement(n)?n:de.default.createElement("div",{className:"__floater__footer",style:l.footer},n)),(o||a)&&!ze.boolean(i)&&(f.close=de.default.createElement(pI,{styles:l.close,handleClick:r})),de.default.createElement("div",{className:"__floater__container",style:l.container},f.close,f.title,f.content,f.footer)}mI.propTypes={content:rt.node.isRequired,footer:rt.node,handleClick:rt.func.isRequired,open:rt.bool,positionWrapper:rt.bool.isRequired,showCloseButton:rt.bool.isRequired,styles:rt.object.isRequired,title:rt.node};var gI=function(e){Mf(n,e);var t=Rf(n);function n(){return Ff(this,n),t.apply(this,arguments)}return kf(n,[{key:"style",get:function(){var i=this.props,a=i.disableAnimation,o=i.component,s=i.placement,l=i.hideArrow,f=i.status,h=i.styles,m=h.arrow.length,g=h.floater,b=h.floaterCentered,$=h.floaterClosing,x=h.floaterOpening,A=h.floaterWithAnimation,w=h.floaterWithComponent,C={};return l||(s.startsWith("top")?C.padding="0 0 ".concat(m,"px"):s.startsWith("bottom")?C.padding="".concat(m,"px 0 0"):s.startsWith("left")?C.padding="0 ".concat(m,"px 0 0"):s.startsWith("right")&&(C.padding="0 0 0 ".concat(m,"px"))),[Zt.OPENING,Zt.OPEN].indexOf(f)!==-1&&(C=Tn(Tn({},C),x)),f===Zt.CLOSING&&(C=Tn(Tn({},C),$)),f===Zt.OPEN&&!a&&(C=Tn(Tn({},C),A)),s==="center"&&(C=Tn(Tn({},C),b)),o&&(C=Tn(Tn({},C),w)),Tn(Tn({},g),C)}},{key:"render",value:function(){var i=this.props,a=i.component,o=i.handleClick,s=i.hideArrow,l=i.setFloaterRef,f=i.status,h={},m=["__floater"];return a?de.default.isValidElement(a)?h.content=de.default.cloneElement(a,{closeFn:o}):h.content=a({closeFn:o}):h.content=de.default.createElement(mI,this.props),f===Zt.OPEN&&m.push("__floater__open"),s||(h.arrow=de.default.createElement(hI,this.props)),de.default.createElement("div",{ref:l,className:m.join(" "),style:this.style},de.default.createElement("div",{className:"__floater__body"},h.content,h.arrow))}}]),n}(de.default.Component);Tr(gI,"propTypes",{component:rt.oneOfType([rt.func,rt.element]),content:rt.node,disableAnimation:rt.bool.isRequired,footer:rt.node,handleClick:rt.func.isRequired,hideArrow:rt.bool.isRequired,open:rt.bool,placement:rt.string.isRequired,positionWrapper:rt.bool.isRequired,setArrowRef:rt.func.isRequired,setFloaterRef:rt.func.isRequired,showCloseButton:rt.bool,status:rt.string.isRequired,styles:rt.object.isRequired,title:rt.node});var vI=function(e){Mf(n,e);var t=Rf(n);function n(){return Ff(this,n),t.apply(this,arguments)}return kf(n,[{key:"render",value:function(){var i=this.props,a=i.children,o=i.handleClick,s=i.handleMouseEnter,l=i.handleMouseLeave,f=i.setChildRef,h=i.setWrapperRef,m=i.style,g=i.styles,b;if(a)if(de.default.Children.count(a)===1)if(!de.default.isValidElement(a))b=de.default.createElement("span",null,a);else{var $=ze.function(a.type)?"innerRef":"ref";b=de.default.cloneElement(de.default.Children.only(a),Tr({},$,f))}else b=a;return b?de.default.createElement("span",{ref:h,style:Tn(Tn({},g),m),onClick:o,onMouseEnter:s,onMouseLeave:l},b):null}}]),n}(de.default.Component);Tr(vI,"propTypes",{children:rt.node,handleClick:rt.func.isRequired,handleMouseEnter:rt.func.isRequired,handleMouseLeave:rt.func.isRequired,setChildRef:rt.func.isRequired,setWrapperRef:rt.func.isRequired,style:rt.object,styles:rt.object.isRequired});var Rfe={zIndex:100};function Ife(e){var t=xa(Rfe,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}var Ofe=["arrow","flip","offset"],Lfe=["position","top","right","bottom","left"],hD=function(e){Mf(n,e);var t=Rf(n);function n(r){var i;return Ff(this,n),i=t.call(this,r),Tr(Mo(i),"setArrowRef",function(a){i.arrowRef=a}),Tr(Mo(i),"setChildRef",function(a){i.childRef=a}),Tr(Mo(i),"setFloaterRef",function(a){i.floaterRef=a}),Tr(Mo(i),"setWrapperRef",function(a){i.wrapperRef=a}),Tr(Mo(i),"handleTransitionEnd",function(){var a=i.state.status,o=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:a===Zt.OPENING?Zt.OPEN:Zt.IDLE},function(){var s=i.state.status;o(s===Zt.OPEN?"open":"close",i.props)})}),Tr(Mo(i),"handleClick",function(){var a=i.props,o=a.event,s=a.open;if(!ze.boolean(s)){var l=i.state,f=l.positionWrapper,h=l.status;(i.event==="click"||i.event==="hover"&&f)&&(Mh({title:"click",data:[{event:o,status:h===Zt.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),Tr(Mo(i),"handleMouseEnter",function(){var a=i.props,o=a.event,s=a.open;if(!(ze.boolean(s)||Hy())){var l=i.state.status;i.event==="hover"&&l===Zt.IDLE&&(Mh({title:"mouseEnter",data:[{key:"originalEvent",value:o}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),Tr(Mo(i),"handleMouseLeave",function(){var a=i.props,o=a.event,s=a.eventDelay,l=a.open;if(!(ze.boolean(l)||Hy())){var f=i.state,h=f.status,m=f.positionWrapper;i.event==="hover"&&(Mh({title:"mouseLeave",data:[{key:"originalEvent",value:o}],debug:i.debug}),s?[Zt.OPENING,Zt.OPEN].indexOf(h)!==-1&&!m&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},s*1e3)):i.toggle(Zt.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:Zt.INIT,statusWrapper:Zt.INIT},i._isMounted=!1,i.hasMounted=!1,Ga()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return kf(n,[{key:"componentDidMount",value:function(){if(Ga()){var i=this.state.positionWrapper,a=this.props,o=a.children,s=a.open,l=a.target;this._isMounted=!0,Mh({title:"init",data:{hasChildren:!!o,hasTarget:!!l,isControlled:ze.boolean(s),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!o&&l&&ze.boolean(s)}}},{key:"componentDidUpdate",value:function(i,a){if(Ga()){var o=this.props,s=o.autoOpen,l=o.open,f=o.target,h=o.wrapperOptions,m=yfe(a,this.state),g=m.changedFrom,b=m.changed;if(i.open!==l){var $;ze.boolean(l)&&($=l?Zt.OPENING:Zt.CLOSING),this.toggle($)}(i.wrapperOptions.position!==h.position||i.target!==f)&&this.changeWrapperPosition(this.props),b("status",Zt.IDLE)&&l?this.toggle(Zt.OPEN):g("status",Zt.INIT,Zt.IDLE)&&s&&this.toggle(Zt.OPEN),this.popper&&b("status",Zt.OPENING)&&this.popper.instance.update(),this.floaterRef&&(b("status",Zt.OPENING)||b("status",Zt.CLOSING))&&kfe(this.floaterRef,"transitionend",this.handleTransitionEnd),b("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){Ga()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var i=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,o=this.state.positionWrapper,s=this.props,l=s.disableFlip,f=s.getPopper,h=s.hideArrow,m=s.offset,g=s.placement,b=s.wrapperOptions,$=g==="top"||g==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(g==="center")this.setState({status:Zt.IDLE});else if(a&&this.floaterRef){var x=this.options,A=x.arrow,w=x.flip,C=x.offset,E=cI(x,Ofe);new rf(a,this.floaterRef,{placement:g,modifiers:Tn({arrow:Tn({enabled:!h,element:this.arrowRef},A),flip:Tn({enabled:!l,behavior:$},w),offset:Tn({offset:"0, ".concat(m,"px")},C)},E),onCreate:function(F){var q;if(i.popper=F,!((q=i.floaterRef)!==null&&q!==void 0&&q.isConnected)){i.setState({needsUpdate:!0});return}f(F,"floater"),i._isMounted&&i.setState({currentPlacement:F.placement,status:Zt.IDLE}),g!==F.placement&&setTimeout(function(){F.instance.update()},1)},onUpdate:function(F){i.popper=F;var q=i.state.currentPlacement;i._isMounted&&F.placement!==q&&i.setState({currentPlacement:F.placement})}})}if(o){var T=ze.undefined(b.offset)?0:b.offset;new rf(this.target,this.wrapperRef,{placement:b.placement||g,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(T,"px")},flip:{enabled:!1}},onCreate:function(F){i.wrapperPopper=F,i._isMounted&&i.setState({statusWrapper:Zt.IDLE}),f(F,"wrapper"),g!==F.placement&&setTimeout(function(){F.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var i=this;this.floaterRefInterval=setInterval(function(){var a;(a=i.floaterRef)!==null&&a!==void 0&&a.isConnected&&(clearInterval(i.floaterRefInterval),i.setState({needsUpdate:!1}),i.initPopper())},50)}},{key:"changeWrapperPosition",value:function(i){var a=i.target,o=i.wrapperOptions;this.setState({positionWrapper:o.position&&!!a})}},{key:"toggle",value:function(i){var a=this.state.status,o=a===Zt.OPEN?Zt.CLOSING:Zt.OPENING;ze.undefined(i)||(o=i),this.setState({status:o})}},{key:"debug",get:function(){var i=this.props.debug;return i||Ga()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,a=i.disableHoverToClick,o=i.event;return o==="hover"&&Hy()&&!a?"click":o}},{key:"options",get:function(){var i=this.props.options;return xa(Cfe,i||{})}},{key:"styles",get:function(){var i=this,a=this.state,o=a.status,s=a.positionWrapper,l=a.statusWrapper,f=this.props.styles,h=xa(Ife(f),f);if(s){var m;[Zt.IDLE].indexOf(o)===-1||[Zt.IDLE].indexOf(l)===-1?m=h.wrapperPosition:m=this.wrapperPopper.styles,h.wrapper=Tn(Tn({},h.wrapper),m)}if(this.target){var g=window.getComputedStyle(this.target);this.wrapperStyles?h.wrapper=Tn(Tn({},h.wrapper),this.wrapperStyles):["relative","static"].indexOf(g.position)===-1&&(this.wrapperStyles={},s||(Lfe.forEach(function(b){i.wrapperStyles[b]=g[b]}),h.wrapper=Tn(Tn({},h.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return h}},{key:"target",get:function(){if(!Ga())return null;var i=this.props.target;return i?ze.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,a=i.currentPlacement,o=i.positionWrapper,s=i.status,l=this.props,f=l.children,h=l.component,m=l.content,g=l.disableAnimation,b=l.footer,$=l.hideArrow,x=l.id,A=l.open,w=l.showCloseButton,C=l.style,E=l.target,T=l.title,P=de.default.createElement(vI,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:C,styles:this.styles.wrapper},f),F={};return o?F.wrapperInPortal=P:F.wrapperAsChildren=P,de.default.createElement("span",null,de.default.createElement(fI,{hasChildren:!!f,id:x,placement:a,setRef:this.setFloaterRef,target:E,zIndex:this.styles.options.zIndex},de.default.createElement(gI,{component:h,content:m,disableAnimation:g,footer:b,handleClick:this.handleClick,hideArrow:$||a==="center",open:A,placement:a,positionWrapper:o,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:w,status:s,styles:this.styles,title:T}),F.wrapperInPortal),F.wrapperAsChildren)}}]),n}(de.default.Component);Tr(hD,"propTypes",{autoOpen:rt.bool,callback:rt.func,children:rt.node,component:F6(rt.oneOfType([rt.func,rt.element]),function(e){return!e.content}),content:F6(rt.node,function(e){return!e.component}),debug:rt.bool,disableAnimation:rt.bool,disableFlip:rt.bool,disableHoverToClick:rt.bool,event:rt.oneOf(["hover","click"]),eventDelay:rt.number,footer:rt.node,getPopper:rt.func,hideArrow:rt.bool,id:rt.oneOfType([rt.string,rt.number]),offset:rt.number,open:rt.bool,options:rt.object,placement:rt.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:rt.bool,style:rt.object,styles:rt.object,target:rt.oneOfType([rt.object,rt.string]),title:rt.node,wrapperOptions:rt.shape({offset:rt.number,placement:rt.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:rt.bool})});Tr(hD,"defaultProps",{autoOpen:!1,callback:k6,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:k6,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var Vfe=Object.defineProperty,Nfe=(e,t,n)=>t in e?Vfe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mt=(e,t,n)=>Nfe(e,typeof t!="symbol"?t+"":t,n),rn={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},Ui={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found"},Ft={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},Nt={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"};function vs(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function yI(e){return e?e.getBoundingClientRect():null}function jfe(e=!1){const{body:t,documentElement:n}=document;if(!t||!n)return 0;if(e){const r=[t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort((a,o)=>a-o),i=Math.floor(r.length/2);return r.length%2===0?(r[i-1]+r[i])/2:r[i]}return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function Vo(e){if(typeof e=="string")try{return document.querySelector(e)}catch(t){return process.env.NODE_ENV!=="production"&&console.error(t),null}return e}function Kfe(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function af(e,t,n){if(!e)return vu();const r=WR(e);if(r){if(r.isSameNode(vu()))return n?document:vu();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",vu()}return r}function If(e,t){if(!e)return!1;const n=af(e,t);return n?!n.isSameNode(vu()):!1}function zfe(e){return e.offsetParent!==document.body}function sc(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=Kfe(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?sc(e.parentNode,t):!1}function qfe(e){var t;if(!e)return!1;let n=e;for(;n&&n!==document.body;){if(n instanceof HTMLElement){const{display:r,visibility:i}=getComputedStyle(n);if(r==="none"||i==="hidden")return!1}n=(t=n.parentElement)!=null?t:null}return!0}function Ufe(e,t,n){var r,i,a;const o=yI(e),s=af(e,n),l=If(e,n),f=sc(e);let h=0,m=(r=o==null?void 0:o.top)!=null?r:0;if(l&&f){const g=(i=e==null?void 0:e.offsetTop)!=null?i:0,b=(a=s==null?void 0:s.scrollTop)!=null?a:0;m=g-b}else s instanceof HTMLElement&&(h=s.scrollTop,!l&&!sc(e)&&(m+=h),s.isSameNode(vu())||(m+=vu().scrollTop));return Math.floor(m-t)}function Wfe(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:a=0}=(r=WR(e))!=null?r:{};let o=e.getBoundingClientRect().top+a;i&&(If(e,n)||zfe(e))&&(o-=i);const s=Math.floor(o-t);return s<0?0:s}function vu(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function Hfe(e,t){const{duration:n,element:r}=t;return new Promise((i,a)=>{const{scrollTop:o}=r,s=e>o?e-o:o-e;fde.top(r,e,{duration:s<100?50:n},l=>l&&l.message!=="Element already at target scroll position"?a(l):i())})}var cd=of.createPortal!==void 0;function bI(e=navigator.userAgent){let t=e;return typeof window>"u"?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":window.opera||e.includes(" OPR/")?t="opera":typeof window.InstallTrigger<"u"?t="firefox":window.chrome?t="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function np(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Ya(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let a=v6(e);if(a)(a.includes("{step}")||a.includes("{steps}"))&&r&&i&&(a=a.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(I.isValidElement(e)&&!Object.values(e.props).length&&np(e.type)==="function"){const o=e.type({});a=Ya(o,t)}else a=v6(n);return a}function Gfe(e,t){return!ft.plainObject(e)||!ft.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function Yfe(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,a,o,s)=>a+a+o+o+s+s),r=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(n);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function M6(e){return e.disableBeacon||e.placement==="center"}function R6(){return!["chrome","safari","firefox","opera"].includes(bI())}function Ss({data:e,debug:t=!1,title:n,warn:r=!1}){const i=r?console.warn||console.error:console.log;t&&(n&&e?(console.groupCollapsed(`%creact-joyride: ${n}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(a=>{ft.plainObject(a)&&a.key?i.apply(console,[a.key,a.value]):i.apply(console,[a])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function Zfe(e){return Object.keys(e)}function xI(e,...t){if(!ft.plainObject(e))throw new TypeError("Expected an object");const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&(t.includes(r)||(n[r]=e[r]));return n}function Xfe(e,...t){if(!ft.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&t.includes(r)&&(n[r]=e[r]);return n}function L1(e,t,n){const r=a=>a.replace("{step}",String(t)).replace("{steps}",String(n));if(np(e)==="string")return r(e);if(!I.isValidElement(e))return e;const{children:i}=e.props;if(np(i)==="string"&&i.includes("{step}"))return I.cloneElement(e,{children:r(i)});if(Array.isArray(i))return I.cloneElement(e,{children:i.map(a=>typeof a=="string"?r(a):L1(a,t,n))});if(np(e.type)==="function"&&!Object.values(e.props).length){const a=e.type({});return L1(a,t,n)}return e}function Qfe(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:a,target:o}=e;return!a.disableScrolling&&(!t||i||n===Ft.TOOLTIP)&&a.placement!=="center"&&(!a.isFixed||!sc(o))&&r!==n&&[Ft.BEACON,Ft.TOOLTIP].includes(n)}var Jfe={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},DI={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},ehe={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:DI,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},the={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},nhe={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},dd={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},I6={borderRadius:4,position:"absolute"};function rhe(e,t){var n,r,i,a,o;const{floaterProps:s,styles:l}=e,f=xa((n=t.floaterProps)!=null?n:{},s??{}),h=xa(l??{},(r=t.styles)!=null?r:{}),m=xa(nhe,h.options||{}),g=t.placement==="center"||t.disableBeacon;let{width:b}=m;window.innerWidth>480&&(b=380),"width"in m&&(b=typeof m.width=="number"&&window.innerWidth<m.width?window.innerWidth-30:m.width);const $={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:m.zIndex},x={beacon:{...dd,display:g?"none":"inline-block",height:m.beaconSize,position:"relative",width:m.beaconSize,zIndex:m.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:m.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${Yfe(m.primaryColor).join(",")}, 0.2)`,border:`2px solid ${m.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:m.backgroundColor,borderRadius:5,boxSizing:"border-box",color:m.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:b},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...dd,backgroundColor:m.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...dd,color:m.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...dd,color:m.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...dd,color:m.textColor,fontSize:14},overlay:{...$,backgroundColor:m.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...$},overlayLegacyCenter:{...$,backgroundColor:m.overlayColor},spotlight:{...I6,backgroundColor:"gray"},spotlightLegacy:{...I6,boxShadow:`0 0 0 9999px ${m.overlayColor}, ${m.spotlightShadow}`},floaterStyles:{arrow:{color:(o=(a=(i=f==null?void 0:f.styles)==null?void 0:i.arrow)==null?void 0:a.color)!=null?o:m.arrowColor},options:{zIndex:m.zIndex+100}},options:m};return xa(x,h)}function ihe(e){return Xfe(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function xl(e,t){var n,r,i,a,o,s;const l=t??{},f=xa.all([ehe,ihe(e),l],{isMergeableObject:ft.plainObject}),h=rhe(e,f),m=If(Vo(f.target),f.disableScrollParentFix),g=xa.all([Jfe,(n=e.floaterProps)!=null?n:{},(r=f.floaterProps)!=null?r:{}]);return g.offset=f.offset,g.styles=xa((i=g.styles)!=null?i:{},h.floaterStyles),g.offset+=(o=(a=e.spotlightPadding)!=null?a:f.spotlightPadding)!=null?o:0,f.placementBeacon&&g.wrapperOptions&&(g.wrapperOptions.placement=f.placementBeacon),m&&g.options.preventOverflow&&(g.options.preventOverflow.boundariesElement="window"),{...f,locale:xa.all([DI,(s=e.locale)!=null?s:{},f.locale||{}]),floaterProps:g,styles:xI(h,"floaterStyles")}}function $I(e,t=!1){return ft.plainObject(e)?e.target?!0:(Ss({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(Ss({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function O6(e,t=!1){return ft.array(e)?e.every(n=>$I(n,t)):(Ss({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var EI={action:"init",controlled:!1,index:0,lifecycle:Ft.INIT,origin:null,size:0,status:Nt.IDLE},L6=Zfe(xI(EI,"controlled","size")),ahe=class{constructor(e){mt(this,"beaconPopper"),mt(this,"tooltipPopper"),mt(this,"data",new Map),mt(this,"listener"),mt(this,"store",new Map),mt(this,"addListener",i=>{this.listener=i}),mt(this,"setSteps",i=>{const{size:a,status:o}=this.getState(),s={size:i.length,status:o};this.data.set("steps",i),o===Nt.WAITING&&!a&&i.length&&(s.status=Nt.RUNNING),this.setState(s)}),mt(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),mt(this,"setPopper",(i,a)=>{i==="beacon"?this.beaconPopper=a:this.tooltipPopper=a}),mt(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),mt(this,"close",(i=null)=>{const{index:a,status:o}=this.getState();o===Nt.RUNNING&&this.setState({...this.getNextState({action:rn.CLOSE,index:a+1,origin:i})})}),mt(this,"go",i=>{const{controlled:a,status:o}=this.getState();if(a||o!==Nt.RUNNING)return;const s=this.getSteps()[i];this.setState({...this.getNextState({action:rn.GO,index:i}),status:s?o:Nt.FINISHED})}),mt(this,"info",()=>this.getState()),mt(this,"next",()=>{const{index:i,status:a}=this.getState();a===Nt.RUNNING&&this.setState(this.getNextState({action:rn.NEXT,index:i+1}))}),mt(this,"open",()=>{const{status:i}=this.getState();i===Nt.RUNNING&&this.setState({...this.getNextState({action:rn.UPDATE,lifecycle:Ft.TOOLTIP})})}),mt(this,"prev",()=>{const{index:i,status:a}=this.getState();a===Nt.RUNNING&&this.setState({...this.getNextState({action:rn.PREV,index:i-1})})}),mt(this,"reset",(i=!1)=>{const{controlled:a}=this.getState();a||this.setState({...this.getNextState({action:rn.RESET,index:0}),status:i?Nt.RUNNING:Nt.READY})}),mt(this,"skip",()=>{const{status:i}=this.getState();i===Nt.RUNNING&&this.setState({action:rn.SKIP,lifecycle:Ft.INIT,status:Nt.SKIPPED})}),mt(this,"start",i=>{const{index:a,size:o}=this.getState();this.setState({...this.getNextState({action:rn.START,index:ft.number(i)?i:a},!0),status:o?Nt.RUNNING:Nt.WAITING})}),mt(this,"stop",(i=!1)=>{const{index:a,status:o}=this.getState();[Nt.FINISHED,Nt.SKIPPED].includes(o)||this.setState({...this.getNextState({action:rn.STOP,index:a+(i?1:0)}),status:Nt.PAUSED})}),mt(this,"update",i=>{var a,o;if(!Gfe(i,L6))throw new Error(`State is not valid. Valid keys: ${L6.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(a=i.action)!=null?a:rn.UPDATE,origin:(o=i.origin)!=null?o:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:rn.INIT,controlled:ft.number(n),continuous:t,index:ft.number(n)?n:0,lifecycle:Ft.INIT,origin:null,status:r.length?Nt.READY:Nt.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(r)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...EI}}getNextState(e,t=!1){var n,r,i,a,o;const{action:s,controlled:l,index:f,size:h,status:m}=this.getState(),g=ft.number(e.index)?e.index:f,b=l&&!t?f:Math.min(Math.max(g,0),h);return{action:(n=e.action)!=null?n:s,controlled:l,index:b,lifecycle:(r=e.lifecycle)!=null?r:Ft.INIT,origin:(i=e.origin)!=null?i:null,size:(a=e.size)!=null?a:h,status:b===h?Nt.FINISHED:(o=e.status)!=null?o:m}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){const t=JSON.stringify(e),n=JSON.stringify(this.getState());return t!==n}setState(e,t=!1){const n=this.getState(),{action:r,index:i,lifecycle:a,origin:o=null,size:s,status:l}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",a),this.store.set("origin",o),this.store.set("size",s),this.store.set("status",l),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function ohe(e){return new ahe(e)}function she({styles:e}){return de.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var uhe=she,lhe=class extends de.Component{constructor(){super(...arguments),mt(this,"isActive",!1),mt(this,"resizeTimeout"),mt(this,"scrollTimeout"),mt(this,"scrollParent"),mt(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),mt(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[Ft.INIT,Ft.BEACON,Ft.COMPLETE,Ft.ERROR];return t||(e?r.includes(n):n!==Ft.TOOLTIP)}),mt(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:a,width:o}=this.spotlightStyles,s=i==="fixed"?e.clientY:e.pageY,l=i==="fixed"?e.clientX:e.pageX,f=s>=a&&s<=a+n,m=l>=r&&l<=r+o&&f;m!==t&&this.updateState({mouseOverSpotlight:m})}),mt(this,"handleScroll",()=>{const{target:e}=this.props,t=Vo(e);if(this.scrollParent!==document){const{isScrolling:n}=this.state;n||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout(()=>{this.updateState({isScrolling:!1,showSpotlight:!0})},50)}else sc(t,"sticky")&&this.updateState({})}),mt(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){const{debug:e,disableScrolling:t,disableScrollParentFix:n=!1,target:r}=this.props,i=Vo(r);this.scrollParent=af(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&If(i,!0)&&Ss({title:"step has a custom scroll parent and can cause trouble with scrolling",data:[{key:"parent",value:this.scrollParent}],debug:e}),window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;const{disableScrollParentFix:n,lifecycle:r,spotlightClicks:i,target:a}=this.props,{changed:o}=jp(e,this.props);if(o("target")||o("disableScrollParentFix")){const s=Vo(a);this.scrollParent=af(s??document.body,n,!0)}o("lifecycle",Ft.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:s}=this.state;s||this.updateState({showSpotlight:!0})},100)),(o("spotlightClicks")||o("disableOverlay")||o("lifecycle"))&&(i&&r===Ft.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Ft.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(e=this.scrollParent)==null||e.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:e}=this.state,{disableOverlayClose:t,placement:n,styles:r}=this.props;let i=r.overlay;return R6()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:jfe(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:a,spotlightPadding:o=0,styles:s,target:l}=this.props,f=Vo(l),h=yI(f),m=sc(f),g=Ufe(f,o,i);return{...R6()?s.spotlightLegacy:s.spotlight,height:Math.round(((e=h==null?void 0:h.height)!=null?e:0)+o*2),left:Math.round(((t=h==null?void 0:h.left)!=null?t:0)-o),opacity:r?1:0,pointerEvents:a?"none":"auto",position:m?"fixed":"absolute",top:g,transition:"opacity 0.2s",width:Math.round(((n=h==null?void 0:h.width)!=null?n:0)+o*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:n}=this.props,{hideSpotlight:r,overlayStyles:i,spotlightStyles:a}=this;if(r())return null;let o=n!=="center"&&e&&de.createElement(uhe,{styles:a});if(bI()==="safari"){const{mixBlendMode:s,zIndex:l,...f}=i;o=de.createElement("div",{style:{...f}},o),delete i.backgroundColor}return de.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},o)}},che=class extends de.Component{constructor(){super(...arguments),mt(this,"node",null)}componentDidMount(){const{id:e}=this.props;vs()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),cd||this.renderReact15())}componentDidUpdate(){vs()&&(cd||this.renderReact15())}componentWillUnmount(){!vs()||!this.node||(cd||No.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!vs())return;const{children:e}=this.props;this.node&&No.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!vs()||!cd)return null;const{children:e}=this.props;return this.node?No.createPortal(e,this.node):null}render(){return cd?this.renderReact16():null}},dhe=class{constructor(e,t){if(mt(this,"element"),mt(this,"options"),mt(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),mt(this,"canHaveFocus",n=>{const r=/input|select|textarea|button|object/,i=n.nodeName.toLowerCase();return(r.test(i)&&!n.getAttribute("disabled")||i==="a"&&!!n.getAttribute("href"))&&this.isVisible(n)}),mt(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),mt(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),mt(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:i}=n;if(!r.length)return;let a=document.activeElement?r.indexOf(document.activeElement):0;a===-1||!i&&a+1===r.length?a=0:i&&a===0?a=r.length-1:a+=i?-1:1,r[a].focus()}),mt(this,"isHidden",n=>{const r=n.offsetWidth<=0&&n.offsetHeight<=0,i=window.getComputedStyle(n);return r&&!n.innerHTML?!0:r&&i.getPropertyValue("overflow")!=="visible"||i.getPropertyValue("display")==="none"}),mt(this,"isVisible",n=>{let r=n;for(;r;)if(r instanceof HTMLElement){if(r===document.body)break;if(this.isHidden(r))return!1;r=r.parentNode}return!0}),mt(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),mt(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),mt(this,"setFocus",()=>{const{selector:n}=this.options;if(!n)return;const r=this.element.querySelector(n);r&&window.requestAnimationFrame(()=>this.checkFocus(r))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},fhe=class extends de.Component{constructor(e){if(super(e),mt(this,"beacon",null),mt(this,"setBeaconRef",i=>{this.beacon=i}),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",e.nonce&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode(`
147
+ */var Pf=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",dde=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Pf&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function fde(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function hde(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},dde))}}var pde=Pf&&window.Promise,mde=pde?fde:hde;function WR(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function Vu(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function sD(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function _f(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Vu(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:_f(sD(e))}function HR(e){return e&&e.referenceNode?e.referenceNode:e}var y6=Pf&&!!(window.MSInputMethodContext&&document.documentMode),b6=Pf&&/MSIE 10/.test(navigator.userAgent);function wc(e){return e===11?y6:e===10?b6:y6||b6}function ic(e){if(!e)return document.documentElement;for(var t=wc(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return!r||r==="BODY"||r==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&Vu(n,"position")==="static"?ic(n):n}function gde(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||ic(e.firstElementChild)===e}function B1(e){return e.parentNode!==null?B1(e.parentNode):e}function Kp(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,a=document.createRange();a.setStart(r,0),a.setEnd(i,0);var o=a.commonAncestorContainer;if(e!==o&&t!==o||r.contains(i))return gde(o)?o:ic(o);var s=B1(e);return s.host?Kp(s.host,t):Kp(e,B1(t).host)}function ac(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=t==="top"?"scrollTop":"scrollLeft",r=e.nodeName;if(r==="BODY"||r==="HTML"){var i=e.ownerDocument.documentElement,a=e.ownerDocument.scrollingElement||i;return a[n]}return e[n]}function vde(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=ac(t,"top"),i=ac(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=i*a,e.right+=i*a,e}function x6(e,t){var n=t==="x"?"Left":"Top",r=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function D6(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],wc(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function GR(e){var t=e.body,n=e.documentElement,r=wc(10)&&getComputedStyle(n);return{height:D6("Height",t,n,r),width:D6("Width",t,n,r)}}var yde=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},bde=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),oc=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Zi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function As(e){return Zi({},e,{right:e.left+e.width,bottom:e.top+e.height})}function F1(e){var t={};try{if(wc(10)){t=e.getBoundingClientRect();var n=ac(e,"top"),r=ac(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a=e.nodeName==="HTML"?GR(e.ownerDocument):{},o=a.width||e.clientWidth||i.width,s=a.height||e.clientHeight||i.height,l=e.offsetWidth-o,f=e.offsetHeight-s;if(l||f){var h=Vu(e);l-=x6(h,"x"),f-=x6(h,"y"),i.width-=l,i.height-=f}return As(i)}function uD(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=wc(10),i=t.nodeName==="HTML",a=F1(e),o=F1(t),s=_f(e),l=Vu(t),f=parseFloat(l.borderTopWidth),h=parseFloat(l.borderLeftWidth);n&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var m=As({top:a.top-o.top-f,left:a.left-o.left-h,width:a.width,height:a.height});if(m.marginTop=0,m.marginLeft=0,!r&&i){var g=parseFloat(l.marginTop),b=parseFloat(l.marginLeft);m.top-=f-g,m.bottom-=f-g,m.left-=h-b,m.right-=h-b,m.marginTop=g,m.marginLeft=b}return(r&&!n?t.contains(s):t===s&&s.nodeName!=="BODY")&&(m=vde(m,t)),m}function xde(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=uD(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:ac(n),s=t?0:ac(n,"left"),l={top:o-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:a};return As(l)}function YR(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(Vu(e,"position")==="fixed")return!0;var n=sD(e);return n?YR(n):!1}function ZR(e){if(!e||!e.parentElement||wc())return document.documentElement;for(var t=e.parentElement;t&&Vu(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function lD(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a={top:0,left:0},o=i?ZR(e):Kp(e,HR(t));if(r==="viewport")a=xde(o,i);else{var s=void 0;r==="scrollParent"?(s=_f(sD(t)),s.nodeName==="BODY"&&(s=e.ownerDocument.documentElement)):r==="window"?s=e.ownerDocument.documentElement:s=r;var l=uD(s,o,i);if(s.nodeName==="HTML"&&!YR(o)){var f=GR(e.ownerDocument),h=f.height,m=f.width;a.top+=l.top-l.marginTop,a.bottom=h+l.top,a.left+=l.left-l.marginLeft,a.right=m+l.left}else a=l}n=n||0;var g=typeof n=="number";return a.left+=g?n:n.left||0,a.top+=g?n:n.top||0,a.right-=g?n:n.right||0,a.bottom-=g?n:n.bottom||0,a}function Dde(e){var t=e.width,n=e.height;return t*n}function XR(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var o=lD(n,r,a,i),s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},l=Object.keys(s).map(function(g){return Zi({key:g},s[g],{area:Dde(s[g])})}).sort(function(g,b){return b.area-g.area}),f=l.filter(function(g){var b=g.width,$=g.height;return b>=n.clientWidth&&$>=n.clientHeight}),h=f.length>0?f[0].key:l[0].key,m=e.split("-")[1];return h+(m?"-"+m:"")}function QR(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?ZR(t):Kp(t,HR(n));return uD(n,i,r)}function JR(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),a={width:e.offsetWidth+i,height:e.offsetHeight+r};return a}function zp(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(n){return t[n]})}function eI(e,t,n){n=n.split("-")[0];var r=JR(e),i={width:r.width,height:r.height},a=["right","left"].indexOf(n)!==-1,o=a?"top":"left",s=a?"left":"top",l=a?"height":"width",f=a?"width":"height";return i[o]=t[o]+t[l]/2-r[l]/2,n===s?i[s]=t[s]-r[f]:i[s]=t[zp(s)],i}function Bf(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function $de(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=Bf(e,function(i){return i[t]===n});return e.indexOf(r)}function tI(e,t,n){var r=n===void 0?e:e.slice(0,$de(e,"name",n));return r.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var a=i.function||i.fn;i.enabled&&WR(a)&&(t.offsets.popper=As(t.offsets.popper),t.offsets.reference=As(t.offsets.reference),t=a(t,i))}),t}function Ede(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=QR(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=XR(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=eI(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=tI(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function nI(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function cD(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],a=i?""+i+n:e;if(typeof document.body.style[a]<"u")return a}return null}function Cde(){return this.state.isDestroyed=!0,nI(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[cD("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function rI(e){var t=e.ownerDocument;return t?t.defaultView:window}function iI(e,t,n,r){var i=e.nodeName==="BODY",a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),i||iI(_f(a.parentNode),t,n,r),r.push(a)}function wde(e,t,n,r){n.updateBound=r,rI(e).addEventListener("resize",n.updateBound,{passive:!0});var i=_f(e);return iI(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Ade(){this.state.eventsEnabled||(this.state=wde(this.reference,this.options,this.state,this.scheduleUpdate))}function Sde(e,t){return rI(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function Tde(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Sde(this.reference,this.state))}function dD(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function k1(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&dD(t[n])&&(r="px"),e.style[n]=t[n]+r})}function Pde(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function _de(e){return k1(e.instance.popper,e.styles),Pde(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&k1(e.arrowElement,e.arrowStyles),e}function Bde(e,t,n,r,i){var a=QR(i,t,e,n.positionFixed),o=XR(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",o),k1(t,{position:n.positionFixed?"fixed":"absolute"}),n}function Fde(e,t){var n=e.offsets,r=n.popper,i=n.reference,a=Math.round,o=Math.floor,s=function(w){return w},l=a(i.width),f=a(r.width),h=["left","right"].indexOf(e.placement)!==-1,m=e.placement.indexOf("-")!==-1,g=l%2===f%2,b=l%2===1&&f%2===1,$=t?h||m||g?a:o:s,x=t?a:s;return{left:$(b&&!m&&t?r.left-1:r.left),top:x(r.top),bottom:x(r.bottom),right:$(r.right)}}var kde=Pf&&/Firefox/i.test(navigator.userAgent);function Mde(e,t){var n=t.x,r=t.y,i=e.offsets.popper,a=Bf(e.instance.modifiers,function(E){return E.name==="applyStyle"}).gpuAcceleration;a!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=a!==void 0?a:t.gpuAcceleration,s=ic(e.instance.popper),l=F1(s),f={position:i.position},h=Fde(e,window.devicePixelRatio<2||!kde),m=n==="bottom"?"top":"bottom",g=r==="right"?"left":"right",b=cD("transform"),$=void 0,x=void 0;if(m==="bottom"?s.nodeName==="HTML"?x=-s.clientHeight+h.bottom:x=-l.height+h.bottom:x=h.top,g==="right"?s.nodeName==="HTML"?$=-s.clientWidth+h.right:$=-l.width+h.right:$=h.left,o&&b)f[b]="translate3d("+$+"px, "+x+"px, 0)",f[m]=0,f[g]=0,f.willChange="transform";else{var A=m==="bottom"?-1:1,w=g==="right"?-1:1;f[m]=x*A,f[g]=$*w,f.willChange=m+", "+g}var C={"x-placement":e.placement};return e.attributes=Zi({},C,e.attributes),e.styles=Zi({},f,e.styles),e.arrowStyles=Zi({},e.offsets.arrow,e.arrowStyles),e}function aI(e,t,n){var r=Bf(e,function(s){var l=s.name;return l===t}),i=!!r&&e.some(function(s){return s.name===n&&s.enabled&&s.order<r.order});if(!i){var a="`"+t+"`",o="`"+n+"`";console.warn(o+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return i}function Rde(e,t){var n;if(!aI(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if(typeof r=="string"){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],a=e.offsets,o=a.popper,s=a.reference,l=["left","right"].indexOf(i)!==-1,f=l?"height":"width",h=l?"Top":"Left",m=h.toLowerCase(),g=l?"left":"top",b=l?"bottom":"right",$=JR(r)[f];s[b]-$<o[m]&&(e.offsets.popper[m]-=o[m]-(s[b]-$)),s[m]+$>o[b]&&(e.offsets.popper[m]+=s[m]+$-o[b]),e.offsets.popper=As(e.offsets.popper);var x=s[m]+s[f]/2-$/2,A=Vu(e.instance.popper),w=parseFloat(A["margin"+h]),C=parseFloat(A["border"+h+"Width"]),E=x-e.offsets.popper[m]-w-C;return E=Math.max(Math.min(o[f]-$,E),0),e.arrowElement=r,e.offsets.arrow=(n={},oc(n,m,Math.round(E)),oc(n,g,""),n),e}function Ide(e){return e==="end"?"start":e==="start"?"end":e}var oI=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Uy=oI.slice(3);function $6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Uy.indexOf(e),r=Uy.slice(n+1).concat(Uy.slice(0,n));return t?r.reverse():r}var Wy={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Ode(e,t){if(nI(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=lD(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=zp(r),a=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case Wy.FLIP:o=[r,i];break;case Wy.CLOCKWISE:o=$6(r);break;case Wy.COUNTERCLOCKWISE:o=$6(r,!0);break;default:o=t.behavior}return o.forEach(function(s,l){if(r!==s||o.length===l+1)return e;r=e.placement.split("-")[0],i=zp(r);var f=e.offsets.popper,h=e.offsets.reference,m=Math.floor,g=r==="left"&&m(f.right)>m(h.left)||r==="right"&&m(f.left)<m(h.right)||r==="top"&&m(f.bottom)>m(h.top)||r==="bottom"&&m(f.top)<m(h.bottom),b=m(f.left)<m(n.left),$=m(f.right)>m(n.right),x=m(f.top)<m(n.top),A=m(f.bottom)>m(n.bottom),w=r==="left"&&b||r==="right"&&$||r==="top"&&x||r==="bottom"&&A,C=["top","bottom"].indexOf(r)!==-1,E=!!t.flipVariations&&(C&&a==="start"&&b||C&&a==="end"&&$||!C&&a==="start"&&x||!C&&a==="end"&&A),T=!!t.flipVariationsByContent&&(C&&a==="start"&&$||C&&a==="end"&&b||!C&&a==="start"&&A||!C&&a==="end"&&x),P=E||T;(g||w||P)&&(e.flipped=!0,(g||w)&&(r=o[l+1]),P&&(a=Ide(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=Zi({},e.offsets.popper,eI(e.instance.popper,e.offsets.reference,e.placement)),e=tI(e.instance.modifiers,e,"flip"))}),e}function Lde(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],a=Math.floor,o=["top","bottom"].indexOf(i)!==-1,s=o?"right":"bottom",l=o?"left":"top",f=o?"width":"height";return n[s]<a(r[l])&&(e.offsets.popper[l]=a(r[l])-n[f]),n[l]>a(r[s])&&(e.offsets.popper[l]=a(r[s])),e}function Vde(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+i[1],o=i[2];if(!a)return e;if(o.indexOf("%")===0){var s=void 0;switch(o){case"%p":s=n;break;case"%":case"%r":default:s=r}var l=As(s);return l[t]/100*a}else if(o==="vh"||o==="vw"){var f=void 0;return o==="vh"?f=Math.max(document.documentElement.clientHeight,window.innerHeight||0):f=Math.max(document.documentElement.clientWidth,window.innerWidth||0),f/100*a}else return a}function Nde(e,t,n,r){var i=[0,0],a=["right","left"].indexOf(r)!==-1,o=e.split(/(\+|\-)/).map(function(h){return h.trim()}),s=o.indexOf(Bf(o,function(h){return h.search(/,|\s/)!==-1}));o[s]&&o[s].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,f=s!==-1?[o.slice(0,s).concat([o[s].split(l)[0]]),[o[s].split(l)[1]].concat(o.slice(s+1))]:[o];return f=f.map(function(h,m){var g=(m===1?!a:a)?"height":"width",b=!1;return h.reduce(function($,x){return $[$.length-1]===""&&["+","-"].indexOf(x)!==-1?($[$.length-1]=x,b=!0,$):b?($[$.length-1]+=x,b=!1,$):$.concat(x)},[]).map(function($){return Vde($,g,t,n)})}),f.forEach(function(h,m){h.forEach(function(g,b){dD(g)&&(i[m]+=g*(h[b-1]==="-"?-1:1))})}),i}function jde(e,t){var n=t.offset,r=e.placement,i=e.offsets,a=i.popper,o=i.reference,s=r.split("-")[0],l=void 0;return dD(+n)?l=[+n,0]:l=Nde(n,a,o,s),s==="left"?(a.top+=l[0],a.left-=l[1]):s==="right"?(a.top+=l[0],a.left+=l[1]):s==="top"?(a.left+=l[0],a.top-=l[1]):s==="bottom"&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e}function Kde(e,t){var n=t.boundariesElement||ic(e.instance.popper);e.instance.reference===n&&(n=ic(n));var r=cD("transform"),i=e.instance.popper.style,a=i.top,o=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=lD(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=a,i.left=o,i[r]=s,t.boundaries=l;var f=t.priority,h=e.offsets.popper,m={primary:function(b){var $=h[b];return h[b]<l[b]&&!t.escapeWithReference&&($=Math.max(h[b],l[b])),oc({},b,$)},secondary:function(b){var $=b==="right"?"left":"top",x=h[$];return h[b]>l[b]&&!t.escapeWithReference&&(x=Math.min(h[$],l[b]-(b==="right"?h.width:h.height))),oc({},$,x)}};return f.forEach(function(g){var b=["left","top"].indexOf(g)!==-1?"primary":"secondary";h=Zi({},h,m[b](g))}),e.offsets.popper=h,e}function zde(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,a=i.reference,o=i.popper,s=["bottom","top"].indexOf(n)!==-1,l=s?"left":"top",f=s?"width":"height",h={start:oc({},l,a[l]),end:oc({},l,a[l]+a[f]-o[f])};e.offsets.popper=Zi({},o,h[r])}return e}function qde(e){if(!aI(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Bf(e.instance.modifiers,function(r){return r.name==="preventOverflow"}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function Ude(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,a=r.reference,o=["left","right"].indexOf(n)!==-1,s=["top","left"].indexOf(n)===-1;return i[o?"left":"top"]=a[n]-(s?i[o?"width":"height"]:0),e.placement=zp(t),e.offsets.popper=As(i),e}var Wde={shift:{order:100,enabled:!0,fn:zde},offset:{order:200,enabled:!0,fn:jde,offset:0},preventOverflow:{order:300,enabled:!0,fn:Kde,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:Lde},arrow:{order:500,enabled:!0,fn:Rde,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Ode,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:Ude},hide:{order:800,enabled:!0,fn:qde},computeStyle:{order:850,enabled:!0,fn:Mde,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:_de,onLoad:Bde,gpuAcceleration:void 0}},Hde={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Wde},rf=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};yde(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=mde(this.update.bind(this)),this.options=Zi({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Zi({},e.Defaults.modifiers,i.modifiers)).forEach(function(o){r.options.modifiers[o]=Zi({},e.Defaults.modifiers[o]||{},i.modifiers?i.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return Zi({name:o},r.options.modifiers[o])}).sort(function(o,s){return o.order-s.order}),this.modifiers.forEach(function(o){o.enabled&&WR(o.onLoad)&&o.onLoad(r.reference,r.popper,r.options,o,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return bde(e,[{key:"update",value:function(){return Ede.call(this)}},{key:"destroy",value:function(){return Cde.call(this)}},{key:"enableEventListeners",value:function(){return Ade.call(this)}},{key:"disableEventListeners",value:function(){return Tde.call(this)}}]),e}();rf.Utils=(typeof window<"u"?window:global).PopperUtils;rf.placements=oI;rf.Defaults=Hde;var Gde=["innerHTML","ownerDocument","style","attributes","nodeValue"],Yde=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],Zde=["bigint","boolean","null","number","string","symbol","undefined"];function zm(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(Xde(t))return t}function _a(e){return function(t){return zm(t)===e}}function Xde(e){return Yde.includes(e)}function Ac(e){return function(t){return typeof t===e}}function Qde(e){return Zde.includes(e)}function ze(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(ze.array(e))return"Array";if(ze.plainFunction(e))return"Function";var t=zm(e);return t||"Object"}ze.array=Array.isArray;ze.arrayOf=function(e,t){return!ze.array(e)&&!ze.function(t)?!1:e.every(function(n){return t(n)})};ze.asyncGeneratorFunction=function(e){return zm(e)==="AsyncGeneratorFunction"};ze.asyncFunction=_a("AsyncFunction");ze.bigint=Ac("bigint");ze.boolean=function(e){return e===!0||e===!1};ze.date=_a("Date");ze.defined=function(e){return!ze.undefined(e)};ze.domElement=function(e){return ze.object(e)&&!ze.plainObject(e)&&e.nodeType===1&&ze.string(e.nodeName)&&Gde.every(function(t){return t in e})};ze.empty=function(e){return ze.string(e)&&e.length===0||ze.array(e)&&e.length===0||ze.object(e)&&!ze.map(e)&&!ze.set(e)&&Object.keys(e).length===0||ze.set(e)&&e.size===0||ze.map(e)&&e.size===0};ze.error=_a("Error");ze.function=Ac("function");ze.generator=function(e){return ze.iterable(e)&&ze.function(e.next)&&ze.function(e.throw)};ze.generatorFunction=_a("GeneratorFunction");ze.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};ze.iterable=function(e){return!ze.nullOrUndefined(e)&&ze.function(e[Symbol.iterator])};ze.map=_a("Map");ze.nan=function(e){return Number.isNaN(e)};ze.null=function(e){return e===null};ze.nullOrUndefined=function(e){return ze.null(e)||ze.undefined(e)};ze.number=function(e){return Ac("number")(e)&&!ze.nan(e)};ze.numericString=function(e){return ze.string(e)&&e.length>0&&!Number.isNaN(Number(e))};ze.object=function(e){return!ze.nullOrUndefined(e)&&(ze.function(e)||typeof e=="object")};ze.oneOf=function(e,t){return ze.array(e)?e.indexOf(t)>-1:!1};ze.plainFunction=_a("Function");ze.plainObject=function(e){if(zm(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ze.primitive=function(e){return ze.null(e)||Qde(typeof e)};ze.promise=_a("Promise");ze.propertyOf=function(e,t,n){if(!ze.object(e)||!t)return!1;var r=e[t];return ze.function(n)?n(r):ze.defined(r)};ze.regexp=_a("RegExp");ze.set=_a("Set");ze.string=Ac("string");ze.symbol=Ac("symbol");ze.undefined=Ac("undefined");ze.weakMap=_a("WeakMap");ze.weakSet=_a("WeakSet");function sI(e){return function(t){return typeof t===e}}var Jde=sI("function"),efe=function(e){return e===null},E6=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},C6=function(e){return!tfe(e)&&!efe(e)&&(Jde(e)||typeof e=="object")},tfe=sI("undefined"),M1=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function nfe(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!si(e[r],t[r]))return!1;return!0}function rfe(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=new DataView(e.buffer),r=new DataView(t.buffer),i=e.byteLength;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function ife(e,t){var n,r,i,a;if(e.size!==t.size)return!1;try{for(var o=M1(e.entries()),s=o.next();!s.done;s=o.next()){var l=s.value;if(!t.has(l[0]))return!1}}catch(m){n={error:m}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}try{for(var f=M1(e.entries()),h=f.next();!h.done;h=f.next()){var l=h.value;if(!si(l[1],t.get(l[0])))return!1}}catch(m){i={error:m}}finally{try{h&&!h.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}return!0}function afe(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=M1(e.entries()),a=i.next();!a.done;a=i.next()){var o=a.value;if(!t.has(o[0]))return!1}}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function si(e,t){if(e===t)return!0;if(e&&C6(e)&&t&&C6(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return nfe(e,t);if(e instanceof Map&&t instanceof Map)return ife(e,t);if(e instanceof Set&&t instanceof Set)return afe(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return rfe(e,t);if(E6(e)&&E6(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(var i=n.length;i--!==0;){var a=n[i];if(!(a==="_owner"&&e.$$typeof)&&!si(e[a],t[a]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function ofe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return ze.string(n)||ze.array(n)||ze.plainObject(n)})}function sfe(e,t,n){return uI(e,t)?[e,t].every(ze.array)?!e.some(P6(n))&&t.some(P6(n)):[e,t].every(ze.plainObject)?!Object.entries(e).some(T6(n))&&Object.entries(t).some(T6(n)):t===n:!1}function w6(e,t,n){var r=n.actual,i=n.key,a=n.previous,o=n.type,s=Ja(e,i),l=Ja(t,i),f=[s,l].every(ze.number)&&(o==="increased"?s<l:s>l);return ze.undefined(r)||(f=f&&l===r),ze.undefined(a)||(f=f&&s===a),f}function A6(e,t,n){var r=n.key,i=n.type,a=n.value,o=Ja(e,r),s=Ja(t,r),l=i==="added"?o:s,f=i==="added"?s:o;if(!ze.nullOrUndefined(a)){if(ze.defined(l)){if(ze.array(l)||ze.plainObject(l))return sfe(l,f,a)}else return si(f,a);return!1}return[o,s].every(ze.array)?!f.every(fD(l)):[o,s].every(ze.plainObject)?ufe(Object.keys(l),Object.keys(f)):![o,s].every(function(h){return ze.primitive(h)&&ze.defined(h)})&&(i==="added"?!ze.defined(o)&&ze.defined(s):ze.defined(o)&&!ze.defined(s))}function S6(e,t,n){var r=n===void 0?{}:n,i=r.key,a=Ja(e,i),o=Ja(t,i);if(!uI(a,o))throw new TypeError("Inputs have different types");if(!ofe(a,o))throw new TypeError("Inputs don't have length");return[a,o].every(ze.plainObject)&&(a=Object.keys(a),o=Object.keys(o)),[a,o]}function T6(e){return function(t){var n=t[0],r=t[1];return ze.array(e)?si(e,r)||e.some(function(i){return si(i,r)||ze.array(r)&&fD(r)(i)}):ze.plainObject(e)&&e[n]?!!e[n]&&si(e[n],r):si(e,r)}}function ufe(e,t){return t.some(function(n){return!e.includes(n)})}function P6(e){return function(t){return ze.array(e)?e.some(function(n){return si(n,t)||ze.array(t)&&fD(t)(n)}):si(e,t)}}function ud(e,t){return ze.array(e)?e.some(function(n){return si(n,t)}):si(e,t)}function fD(e){return function(t){return e.some(function(n){return si(n,t)})}}function uI(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(ze.array)||e.every(ze.number)||e.every(ze.plainObject)||e.every(ze.string)}function Ja(e,t){if(ze.plainObject(e)||ze.array(e)){if(ze.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return ze.number(t)?e[t]:e}return e}function lfe(e,t){if([e,t].some(ze.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(m){return ze.plainObject(m)||ze.array(m)}))throw new Error("Expected plain objects or array");var n=function(m,g){try{return A6(e,t,{key:m,type:"added",value:g})}catch{return!1}},r=function(m,g,b){try{var $=Ja(e,m),x=Ja(t,m),A=ze.defined(g),w=ze.defined(b);if(A||w){var C=w?ud(b,$):!ud(g,$),E=ud(g,x);return C&&E}return[$,x].every(ze.array)||[$,x].every(ze.plainObject)?!si($,x):$!==x}catch{return!1}},i=function(m,g,b){if(!ze.defined(m))return!1;try{var $=Ja(e,m),x=Ja(t,m),A=ze.defined(b);return ud(g,$)&&(A?ud(b,x):!A)}catch{return!1}},a=function(m,g){return ze.defined(m)?(process.env.NODE_ENV==="development"&&console.warn("`changedTo` is deprecated! Replace it with `change`"),r(m,g)):!1},o=function(m,g,b){if(!ze.defined(m))return!1;try{return w6(e,t,{key:m,actual:g,previous:b,type:"decreased"})}catch{return!1}},s=function(m){try{var g=S6(e,t,{key:m}),b=g[0],$=g[1];return!!b.length&&!$.length}catch{return!1}},l=function(m){try{var g=S6(e,t,{key:m}),b=g[0],$=g[1];return!b.length&&!!$.length}catch{return!1}},f=function(m,g,b){if(!ze.defined(m))return!1;try{return w6(e,t,{key:m,actual:g,previous:b,type:"increased"})}catch{return!1}},h=function(m,g){try{return A6(e,t,{key:m,type:"removed",value:g})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:a,decreased:o,emptied:s,filled:l,increased:f,removed:h}}function _6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Tn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_6(Object(n),!0).forEach(function(r){Tr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ff(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cfe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cI(r.key),r)}}function kf(e,t,n){return t&&cfe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tr(e,t,n){return t=cI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mf(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&R1(e,t)}function qp(e){return qp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qp(e)}function R1(e,t){return R1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},R1(e,t)}function dfe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ffe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function lI(e,t){if(e==null)return{};var n=ffe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hfe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mo(e)}function Rf(e){var t=dfe();return function(){var r=qp(e),i;if(t){var a=qp(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return hfe(this,i)}}function pfe(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cI(e){var t=pfe(e,"string");return typeof t=="symbol"?t:String(t)}var mfe={flip:{padding:20},preventOverflow:{padding:10}},gfe="The typeValidator argument must be a function with the signature function(props, propName, componentName).",vfe="The error message is optional, but must be a string if provided.";function yfe(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function bfe(e,t){return Object.hasOwnProperty.call(e,t)}function xfe(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function Dfe(e,t){if(typeof e!="function")throw new TypeError(gfe);if(t&&typeof t!="string")throw new TypeError(vfe)}function B6(e,t,n){return Dfe(e,n),function(r,i,a){for(var o=arguments.length,s=new Array(o>3?o-3:0),l=3;l<o;l++)s[l-3]=arguments[l];return yfe(t,r,i,a)?bfe(r,i)?e.apply(void 0,[r,i,a].concat(s)):xfe(r,i,a):e.apply(void 0,[r,i,a].concat(s))}}var Zt={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing"},ld=No.default.createPortal!==void 0;function Ga(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Hy(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function Mh(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,a=e.debug,o=a===void 0?!1:a,s=i?console.warn||console.error:console.log;o&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(l){ze.plainObject(l)&&l.key?s.apply(console,[l.key,l.value]):s.apply(console,[l])}):s.apply(console,[n]),console.groupEnd())}function $fe(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function Efe(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function Cfe(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(o){n(o),Efe(e,t,i)},$fe(e,t,i,r)}function F6(){}var dI=function(e){Mf(n,e);var t=Rf(n);function n(){return Ff(this,n),t.apply(this,arguments)}return kf(n,[{key:"componentDidMount",value:function(){Ga()&&(this.node||this.appendNode(),ld||this.renderPortal())}},{key:"componentDidUpdate",value:function(){Ga()&&(ld||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!Ga()||!this.node||(ld||No.default.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var i=this.props,a=i.id,o=i.zIndex;this.node||(this.node=document.createElement("div"),a&&(this.node.id=a),o&&(this.node.style.zIndex=o),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!Ga())return null;var i=this.props,a=i.children,o=i.setRef;if(this.node||this.appendNode(),ld)return No.default.createPortal(a,this.node);var s=No.default.unstable_renderSubtreeIntoContainer(this,a.length>1?de.default.createElement("div",null,a):a[0],this.node);return o(s),null}},{key:"renderReact16",value:function(){var i=this.props,a=i.hasChildren,o=i.placement,s=i.target;return a?this.renderPortal():s||o==="center"?this.renderPortal():null}},{key:"render",value:function(){return ld?this.renderReact16():null}}]),n}(de.default.Component);Tr(dI,"propTypes",{children:rt.oneOfType([rt.element,rt.array]),hasChildren:rt.bool,id:rt.oneOfType([rt.string,rt.number]),placement:rt.string,setRef:rt.func.isRequired,target:rt.oneOfType([rt.object,rt.string]),zIndex:rt.number});var fI=function(e){Mf(n,e);var t=Rf(n);function n(){return Ff(this,n),t.apply(this,arguments)}return kf(n,[{key:"parentStyle",get:function(){var i=this.props,a=i.placement,o=i.styles,s=o.arrow.length,l={pointerEvents:"none",position:"absolute",width:"100%"};return a.startsWith("top")?(l.bottom=0,l.left=0,l.right=0,l.height=s):a.startsWith("bottom")?(l.left=0,l.right=0,l.top=0,l.height=s):a.startsWith("left")?(l.right=0,l.top=0,l.bottom=0):a.startsWith("right")&&(l.left=0,l.top=0),l}},{key:"render",value:function(){var i=this.props,a=i.placement,o=i.setArrowRef,s=i.styles,l=s.arrow,f=l.color,h=l.display,m=l.length,g=l.margin,b=l.position,$=l.spread,x={display:h,position:b},A,w=$,C=m;return a.startsWith("top")?(A="0,0 ".concat(w/2,",").concat(C," ").concat(w,",0"),x.bottom=0,x.marginLeft=g,x.marginRight=g):a.startsWith("bottom")?(A="".concat(w,",").concat(C," ").concat(w/2,",0 0,").concat(C),x.top=0,x.marginLeft=g,x.marginRight=g):a.startsWith("left")?(C=$,w=m,A="0,0 ".concat(w,",").concat(C/2," 0,").concat(C),x.right=0,x.marginTop=g,x.marginBottom=g):a.startsWith("right")&&(C=$,w=m,A="".concat(w,",").concat(C," ").concat(w,",0 0,").concat(C/2),x.left=0,x.marginTop=g,x.marginBottom=g),de.default.createElement("div",{className:"__floater__arrow",style:this.parentStyle},de.default.createElement("span",{ref:o,style:x},de.default.createElement("svg",{width:w,height:C,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},de.default.createElement("polygon",{points:A,fill:f}))))}}]),n}(de.default.Component);Tr(fI,"propTypes",{placement:rt.string.isRequired,setArrowRef:rt.func.isRequired,styles:rt.object.isRequired});var wfe=["color","height","width"];function hI(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,a=n.width,o=lI(n,wfe);return de.default.createElement("button",{"aria-label":"close",onClick:t,style:o,type:"button"},de.default.createElement("svg",{width:"".concat(a,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},de.default.createElement("g",null,de.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:r}))))}hI.propTypes={handleClick:rt.func.isRequired,styles:rt.object.isRequired};function pI(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,a=e.positionWrapper,o=e.showCloseButton,s=e.title,l=e.styles,f={content:de.default.isValidElement(t)?t:de.default.createElement("div",{className:"__floater__content",style:l.content},t)};return s&&(f.title=de.default.isValidElement(s)?s:de.default.createElement("div",{className:"__floater__title",style:l.title},s)),n&&(f.footer=de.default.isValidElement(n)?n:de.default.createElement("div",{className:"__floater__footer",style:l.footer},n)),(o||a)&&!ze.boolean(i)&&(f.close=de.default.createElement(hI,{styles:l.close,handleClick:r})),de.default.createElement("div",{className:"__floater__container",style:l.container},f.close,f.title,f.content,f.footer)}pI.propTypes={content:rt.node.isRequired,footer:rt.node,handleClick:rt.func.isRequired,open:rt.bool,positionWrapper:rt.bool.isRequired,showCloseButton:rt.bool.isRequired,styles:rt.object.isRequired,title:rt.node};var mI=function(e){Mf(n,e);var t=Rf(n);function n(){return Ff(this,n),t.apply(this,arguments)}return kf(n,[{key:"style",get:function(){var i=this.props,a=i.disableAnimation,o=i.component,s=i.placement,l=i.hideArrow,f=i.status,h=i.styles,m=h.arrow.length,g=h.floater,b=h.floaterCentered,$=h.floaterClosing,x=h.floaterOpening,A=h.floaterWithAnimation,w=h.floaterWithComponent,C={};return l||(s.startsWith("top")?C.padding="0 0 ".concat(m,"px"):s.startsWith("bottom")?C.padding="".concat(m,"px 0 0"):s.startsWith("left")?C.padding="0 ".concat(m,"px 0 0"):s.startsWith("right")&&(C.padding="0 0 0 ".concat(m,"px"))),[Zt.OPENING,Zt.OPEN].indexOf(f)!==-1&&(C=Tn(Tn({},C),x)),f===Zt.CLOSING&&(C=Tn(Tn({},C),$)),f===Zt.OPEN&&!a&&(C=Tn(Tn({},C),A)),s==="center"&&(C=Tn(Tn({},C),b)),o&&(C=Tn(Tn({},C),w)),Tn(Tn({},g),C)}},{key:"render",value:function(){var i=this.props,a=i.component,o=i.handleClick,s=i.hideArrow,l=i.setFloaterRef,f=i.status,h={},m=["__floater"];return a?de.default.isValidElement(a)?h.content=de.default.cloneElement(a,{closeFn:o}):h.content=a({closeFn:o}):h.content=de.default.createElement(pI,this.props),f===Zt.OPEN&&m.push("__floater__open"),s||(h.arrow=de.default.createElement(fI,this.props)),de.default.createElement("div",{ref:l,className:m.join(" "),style:this.style},de.default.createElement("div",{className:"__floater__body"},h.content,h.arrow))}}]),n}(de.default.Component);Tr(mI,"propTypes",{component:rt.oneOfType([rt.func,rt.element]),content:rt.node,disableAnimation:rt.bool.isRequired,footer:rt.node,handleClick:rt.func.isRequired,hideArrow:rt.bool.isRequired,open:rt.bool,placement:rt.string.isRequired,positionWrapper:rt.bool.isRequired,setArrowRef:rt.func.isRequired,setFloaterRef:rt.func.isRequired,showCloseButton:rt.bool,status:rt.string.isRequired,styles:rt.object.isRequired,title:rt.node});var gI=function(e){Mf(n,e);var t=Rf(n);function n(){return Ff(this,n),t.apply(this,arguments)}return kf(n,[{key:"render",value:function(){var i=this.props,a=i.children,o=i.handleClick,s=i.handleMouseEnter,l=i.handleMouseLeave,f=i.setChildRef,h=i.setWrapperRef,m=i.style,g=i.styles,b;if(a)if(de.default.Children.count(a)===1)if(!de.default.isValidElement(a))b=de.default.createElement("span",null,a);else{var $=ze.function(a.type)?"innerRef":"ref";b=de.default.cloneElement(de.default.Children.only(a),Tr({},$,f))}else b=a;return b?de.default.createElement("span",{ref:h,style:Tn(Tn({},g),m),onClick:o,onMouseEnter:s,onMouseLeave:l},b):null}}]),n}(de.default.Component);Tr(gI,"propTypes",{children:rt.node,handleClick:rt.func.isRequired,handleMouseEnter:rt.func.isRequired,handleMouseLeave:rt.func.isRequired,setChildRef:rt.func.isRequired,setWrapperRef:rt.func.isRequired,style:rt.object,styles:rt.object.isRequired});var Afe={zIndex:100};function Sfe(e){var t=xa(Afe,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}var Tfe=["arrow","flip","offset"],Pfe=["position","top","right","bottom","left"],hD=function(e){Mf(n,e);var t=Rf(n);function n(r){var i;return Ff(this,n),i=t.call(this,r),Tr(Mo(i),"setArrowRef",function(a){i.arrowRef=a}),Tr(Mo(i),"setChildRef",function(a){i.childRef=a}),Tr(Mo(i),"setFloaterRef",function(a){i.floaterRef=a}),Tr(Mo(i),"setWrapperRef",function(a){i.wrapperRef=a}),Tr(Mo(i),"handleTransitionEnd",function(){var a=i.state.status,o=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:a===Zt.OPENING?Zt.OPEN:Zt.IDLE},function(){var s=i.state.status;o(s===Zt.OPEN?"open":"close",i.props)})}),Tr(Mo(i),"handleClick",function(){var a=i.props,o=a.event,s=a.open;if(!ze.boolean(s)){var l=i.state,f=l.positionWrapper,h=l.status;(i.event==="click"||i.event==="hover"&&f)&&(Mh({title:"click",data:[{event:o,status:h===Zt.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),Tr(Mo(i),"handleMouseEnter",function(){var a=i.props,o=a.event,s=a.open;if(!(ze.boolean(s)||Hy())){var l=i.state.status;i.event==="hover"&&l===Zt.IDLE&&(Mh({title:"mouseEnter",data:[{key:"originalEvent",value:o}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),Tr(Mo(i),"handleMouseLeave",function(){var a=i.props,o=a.event,s=a.eventDelay,l=a.open;if(!(ze.boolean(l)||Hy())){var f=i.state,h=f.status,m=f.positionWrapper;i.event==="hover"&&(Mh({title:"mouseLeave",data:[{key:"originalEvent",value:o}],debug:i.debug}),s?[Zt.OPENING,Zt.OPEN].indexOf(h)!==-1&&!m&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},s*1e3)):i.toggle(Zt.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:Zt.INIT,statusWrapper:Zt.INIT},i._isMounted=!1,i.hasMounted=!1,Ga()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return kf(n,[{key:"componentDidMount",value:function(){if(Ga()){var i=this.state.positionWrapper,a=this.props,o=a.children,s=a.open,l=a.target;this._isMounted=!0,Mh({title:"init",data:{hasChildren:!!o,hasTarget:!!l,isControlled:ze.boolean(s),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!o&&l&&ze.boolean(s)}}},{key:"componentDidUpdate",value:function(i,a){if(Ga()){var o=this.props,s=o.autoOpen,l=o.open,f=o.target,h=o.wrapperOptions,m=lfe(a,this.state),g=m.changedFrom,b=m.changed;if(i.open!==l){var $;ze.boolean(l)&&($=l?Zt.OPENING:Zt.CLOSING),this.toggle($)}(i.wrapperOptions.position!==h.position||i.target!==f)&&this.changeWrapperPosition(this.props),b("status",Zt.IDLE)&&l?this.toggle(Zt.OPEN):g("status",Zt.INIT,Zt.IDLE)&&s&&this.toggle(Zt.OPEN),this.popper&&b("status",Zt.OPENING)&&this.popper.instance.update(),this.floaterRef&&(b("status",Zt.OPENING)||b("status",Zt.CLOSING))&&Cfe(this.floaterRef,"transitionend",this.handleTransitionEnd),b("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){Ga()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var i=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,o=this.state.positionWrapper,s=this.props,l=s.disableFlip,f=s.getPopper,h=s.hideArrow,m=s.offset,g=s.placement,b=s.wrapperOptions,$=g==="top"||g==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(g==="center")this.setState({status:Zt.IDLE});else if(a&&this.floaterRef){var x=this.options,A=x.arrow,w=x.flip,C=x.offset,E=lI(x,Tfe);new rf(a,this.floaterRef,{placement:g,modifiers:Tn({arrow:Tn({enabled:!h,element:this.arrowRef},A),flip:Tn({enabled:!l,behavior:$},w),offset:Tn({offset:"0, ".concat(m,"px")},C)},E),onCreate:function(F){var q;if(i.popper=F,!((q=i.floaterRef)!==null&&q!==void 0&&q.isConnected)){i.setState({needsUpdate:!0});return}f(F,"floater"),i._isMounted&&i.setState({currentPlacement:F.placement,status:Zt.IDLE}),g!==F.placement&&setTimeout(function(){F.instance.update()},1)},onUpdate:function(F){i.popper=F;var q=i.state.currentPlacement;i._isMounted&&F.placement!==q&&i.setState({currentPlacement:F.placement})}})}if(o){var T=ze.undefined(b.offset)?0:b.offset;new rf(this.target,this.wrapperRef,{placement:b.placement||g,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(T,"px")},flip:{enabled:!1}},onCreate:function(F){i.wrapperPopper=F,i._isMounted&&i.setState({statusWrapper:Zt.IDLE}),f(F,"wrapper"),g!==F.placement&&setTimeout(function(){F.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var i=this;this.floaterRefInterval=setInterval(function(){var a;(a=i.floaterRef)!==null&&a!==void 0&&a.isConnected&&(clearInterval(i.floaterRefInterval),i.setState({needsUpdate:!1}),i.initPopper())},50)}},{key:"changeWrapperPosition",value:function(i){var a=i.target,o=i.wrapperOptions;this.setState({positionWrapper:o.position&&!!a})}},{key:"toggle",value:function(i){var a=this.state.status,o=a===Zt.OPEN?Zt.CLOSING:Zt.OPENING;ze.undefined(i)||(o=i),this.setState({status:o})}},{key:"debug",get:function(){var i=this.props.debug;return i||Ga()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,a=i.disableHoverToClick,o=i.event;return o==="hover"&&Hy()&&!a?"click":o}},{key:"options",get:function(){var i=this.props.options;return xa(mfe,i||{})}},{key:"styles",get:function(){var i=this,a=this.state,o=a.status,s=a.positionWrapper,l=a.statusWrapper,f=this.props.styles,h=xa(Sfe(f),f);if(s){var m;[Zt.IDLE].indexOf(o)===-1||[Zt.IDLE].indexOf(l)===-1?m=h.wrapperPosition:m=this.wrapperPopper.styles,h.wrapper=Tn(Tn({},h.wrapper),m)}if(this.target){var g=window.getComputedStyle(this.target);this.wrapperStyles?h.wrapper=Tn(Tn({},h.wrapper),this.wrapperStyles):["relative","static"].indexOf(g.position)===-1&&(this.wrapperStyles={},s||(Pfe.forEach(function(b){i.wrapperStyles[b]=g[b]}),h.wrapper=Tn(Tn({},h.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return h}},{key:"target",get:function(){if(!Ga())return null;var i=this.props.target;return i?ze.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,a=i.currentPlacement,o=i.positionWrapper,s=i.status,l=this.props,f=l.children,h=l.component,m=l.content,g=l.disableAnimation,b=l.footer,$=l.hideArrow,x=l.id,A=l.open,w=l.showCloseButton,C=l.style,E=l.target,T=l.title,P=de.default.createElement(gI,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:C,styles:this.styles.wrapper},f),F={};return o?F.wrapperInPortal=P:F.wrapperAsChildren=P,de.default.createElement("span",null,de.default.createElement(dI,{hasChildren:!!f,id:x,placement:a,setRef:this.setFloaterRef,target:E,zIndex:this.styles.options.zIndex},de.default.createElement(mI,{component:h,content:m,disableAnimation:g,footer:b,handleClick:this.handleClick,hideArrow:$||a==="center",open:A,placement:a,positionWrapper:o,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:w,status:s,styles:this.styles,title:T}),F.wrapperInPortal),F.wrapperAsChildren)}}]),n}(de.default.Component);Tr(hD,"propTypes",{autoOpen:rt.bool,callback:rt.func,children:rt.node,component:B6(rt.oneOfType([rt.func,rt.element]),function(e){return!e.content}),content:B6(rt.node,function(e){return!e.component}),debug:rt.bool,disableAnimation:rt.bool,disableFlip:rt.bool,disableHoverToClick:rt.bool,event:rt.oneOf(["hover","click"]),eventDelay:rt.number,footer:rt.node,getPopper:rt.func,hideArrow:rt.bool,id:rt.oneOfType([rt.string,rt.number]),offset:rt.number,open:rt.bool,options:rt.object,placement:rt.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:rt.bool,style:rt.object,styles:rt.object,target:rt.oneOfType([rt.object,rt.string]),title:rt.node,wrapperOptions:rt.shape({offset:rt.number,placement:rt.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:rt.bool})});Tr(hD,"defaultProps",{autoOpen:!1,callback:F6,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:F6,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var _fe=Object.defineProperty,Bfe=(e,t,n)=>t in e?_fe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mt=(e,t,n)=>Bfe(e,typeof t!="symbol"?t+"":t,n),rn={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},Ui={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found"},Ft={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},Nt={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"};function vs(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function vI(e){return e?e.getBoundingClientRect():null}function Ffe(e=!1){const{body:t,documentElement:n}=document;if(!t||!n)return 0;if(e){const r=[t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort((a,o)=>a-o),i=Math.floor(r.length/2);return r.length%2===0?(r[i-1]+r[i])/2:r[i]}return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function Vo(e){if(typeof e=="string")try{return document.querySelector(e)}catch(t){return process.env.NODE_ENV!=="production"&&console.error(t),null}return e}function kfe(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function af(e,t,n){if(!e)return vu();const r=UR(e);if(r){if(r.isSameNode(vu()))return n?document:vu();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",vu()}return r}function If(e,t){if(!e)return!1;const n=af(e,t);return n?!n.isSameNode(vu()):!1}function Mfe(e){return e.offsetParent!==document.body}function sc(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=kfe(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?sc(e.parentNode,t):!1}function Rfe(e){var t;if(!e)return!1;let n=e;for(;n&&n!==document.body;){if(n instanceof HTMLElement){const{display:r,visibility:i}=getComputedStyle(n);if(r==="none"||i==="hidden")return!1}n=(t=n.parentElement)!=null?t:null}return!0}function Ife(e,t,n){var r,i,a;const o=vI(e),s=af(e,n),l=If(e,n),f=sc(e);let h=0,m=(r=o==null?void 0:o.top)!=null?r:0;if(l&&f){const g=(i=e==null?void 0:e.offsetTop)!=null?i:0,b=(a=s==null?void 0:s.scrollTop)!=null?a:0;m=g-b}else s instanceof HTMLElement&&(h=s.scrollTop,!l&&!sc(e)&&(m+=h),s.isSameNode(vu())||(m+=vu().scrollTop));return Math.floor(m-t)}function Ofe(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:a=0}=(r=UR(e))!=null?r:{};let o=e.getBoundingClientRect().top+a;i&&(If(e,n)||Mfe(e))&&(o-=i);const s=Math.floor(o-t);return s<0?0:s}function vu(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function Lfe(e,t){const{duration:n,element:r}=t;return new Promise((i,a)=>{const{scrollTop:o}=r,s=e>o?e-o:o-e;rde.top(r,e,{duration:s<100?50:n},l=>l&&l.message!=="Element already at target scroll position"?a(l):i())})}var cd=of.createPortal!==void 0;function yI(e=navigator.userAgent){let t=e;return typeof window>"u"?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":window.opera||e.includes(" OPR/")?t="opera":typeof window.InstallTrigger<"u"?t="firefox":window.chrome?t="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function tp(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Ya(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let a=g6(e);if(a)(a.includes("{step}")||a.includes("{steps}"))&&r&&i&&(a=a.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(I.isValidElement(e)&&!Object.values(e.props).length&&tp(e.type)==="function"){const o=e.type({});a=Ya(o,t)}else a=g6(n);return a}function Vfe(e,t){return!ft.plainObject(e)||!ft.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function Nfe(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,a,o,s)=>a+a+o+o+s+s),r=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(n);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function k6(e){return e.disableBeacon||e.placement==="center"}function M6(){return!["chrome","safari","firefox","opera"].includes(yI())}function Ss({data:e,debug:t=!1,title:n,warn:r=!1}){const i=r?console.warn||console.error:console.log;t&&(n&&e?(console.groupCollapsed(`%creact-joyride: ${n}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(a=>{ft.plainObject(a)&&a.key?i.apply(console,[a.key,a.value]):i.apply(console,[a])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function jfe(e){return Object.keys(e)}function bI(e,...t){if(!ft.plainObject(e))throw new TypeError("Expected an object");const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&(t.includes(r)||(n[r]=e[r]));return n}function Kfe(e,...t){if(!ft.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&t.includes(r)&&(n[r]=e[r]);return n}function I1(e,t,n){const r=a=>a.replace("{step}",String(t)).replace("{steps}",String(n));if(tp(e)==="string")return r(e);if(!I.isValidElement(e))return e;const{children:i}=e.props;if(tp(i)==="string"&&i.includes("{step}"))return I.cloneElement(e,{children:r(i)});if(Array.isArray(i))return I.cloneElement(e,{children:i.map(a=>typeof a=="string"?r(a):I1(a,t,n))});if(tp(e.type)==="function"&&!Object.values(e.props).length){const a=e.type({});return I1(a,t,n)}return e}function zfe(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:a,target:o}=e;return!a.disableScrolling&&(!t||i||n===Ft.TOOLTIP)&&a.placement!=="center"&&(!a.isFixed||!sc(o))&&r!==n&&[Ft.BEACON,Ft.TOOLTIP].includes(n)}var qfe={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},xI={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},Ufe={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:xI,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},Wfe={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},Hfe={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},dd={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},R6={borderRadius:4,position:"absolute"};function Gfe(e,t){var n,r,i,a,o;const{floaterProps:s,styles:l}=e,f=xa((n=t.floaterProps)!=null?n:{},s??{}),h=xa(l??{},(r=t.styles)!=null?r:{}),m=xa(Hfe,h.options||{}),g=t.placement==="center"||t.disableBeacon;let{width:b}=m;window.innerWidth>480&&(b=380),"width"in m&&(b=typeof m.width=="number"&&window.innerWidth<m.width?window.innerWidth-30:m.width);const $={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:m.zIndex},x={beacon:{...dd,display:g?"none":"inline-block",height:m.beaconSize,position:"relative",width:m.beaconSize,zIndex:m.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:m.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${Nfe(m.primaryColor).join(",")}, 0.2)`,border:`2px solid ${m.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:m.backgroundColor,borderRadius:5,boxSizing:"border-box",color:m.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:b},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...dd,backgroundColor:m.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...dd,color:m.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...dd,color:m.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...dd,color:m.textColor,fontSize:14},overlay:{...$,backgroundColor:m.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...$},overlayLegacyCenter:{...$,backgroundColor:m.overlayColor},spotlight:{...R6,backgroundColor:"gray"},spotlightLegacy:{...R6,boxShadow:`0 0 0 9999px ${m.overlayColor}, ${m.spotlightShadow}`},floaterStyles:{arrow:{color:(o=(a=(i=f==null?void 0:f.styles)==null?void 0:i.arrow)==null?void 0:a.color)!=null?o:m.arrowColor},options:{zIndex:m.zIndex+100}},options:m};return xa(x,h)}function Yfe(e){return Kfe(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function xl(e,t){var n,r,i,a,o,s;const l=t??{},f=xa.all([Ufe,Yfe(e),l],{isMergeableObject:ft.plainObject}),h=Gfe(e,f),m=If(Vo(f.target),f.disableScrollParentFix),g=xa.all([qfe,(n=e.floaterProps)!=null?n:{},(r=f.floaterProps)!=null?r:{}]);return g.offset=f.offset,g.styles=xa((i=g.styles)!=null?i:{},h.floaterStyles),g.offset+=(o=(a=e.spotlightPadding)!=null?a:f.spotlightPadding)!=null?o:0,f.placementBeacon&&g.wrapperOptions&&(g.wrapperOptions.placement=f.placementBeacon),m&&g.options.preventOverflow&&(g.options.preventOverflow.boundariesElement="window"),{...f,locale:xa.all([xI,(s=e.locale)!=null?s:{},f.locale||{}]),floaterProps:g,styles:bI(h,"floaterStyles")}}function DI(e,t=!1){return ft.plainObject(e)?e.target?!0:(Ss({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(Ss({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function I6(e,t=!1){return ft.array(e)?e.every(n=>DI(n,t)):(Ss({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var $I={action:"init",controlled:!1,index:0,lifecycle:Ft.INIT,origin:null,size:0,status:Nt.IDLE},O6=jfe(bI($I,"controlled","size")),Zfe=class{constructor(e){mt(this,"beaconPopper"),mt(this,"tooltipPopper"),mt(this,"data",new Map),mt(this,"listener"),mt(this,"store",new Map),mt(this,"addListener",i=>{this.listener=i}),mt(this,"setSteps",i=>{const{size:a,status:o}=this.getState(),s={size:i.length,status:o};this.data.set("steps",i),o===Nt.WAITING&&!a&&i.length&&(s.status=Nt.RUNNING),this.setState(s)}),mt(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),mt(this,"setPopper",(i,a)=>{i==="beacon"?this.beaconPopper=a:this.tooltipPopper=a}),mt(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),mt(this,"close",(i=null)=>{const{index:a,status:o}=this.getState();o===Nt.RUNNING&&this.setState({...this.getNextState({action:rn.CLOSE,index:a+1,origin:i})})}),mt(this,"go",i=>{const{controlled:a,status:o}=this.getState();if(a||o!==Nt.RUNNING)return;const s=this.getSteps()[i];this.setState({...this.getNextState({action:rn.GO,index:i}),status:s?o:Nt.FINISHED})}),mt(this,"info",()=>this.getState()),mt(this,"next",()=>{const{index:i,status:a}=this.getState();a===Nt.RUNNING&&this.setState(this.getNextState({action:rn.NEXT,index:i+1}))}),mt(this,"open",()=>{const{status:i}=this.getState();i===Nt.RUNNING&&this.setState({...this.getNextState({action:rn.UPDATE,lifecycle:Ft.TOOLTIP})})}),mt(this,"prev",()=>{const{index:i,status:a}=this.getState();a===Nt.RUNNING&&this.setState({...this.getNextState({action:rn.PREV,index:i-1})})}),mt(this,"reset",(i=!1)=>{const{controlled:a}=this.getState();a||this.setState({...this.getNextState({action:rn.RESET,index:0}),status:i?Nt.RUNNING:Nt.READY})}),mt(this,"skip",()=>{const{status:i}=this.getState();i===Nt.RUNNING&&this.setState({action:rn.SKIP,lifecycle:Ft.INIT,status:Nt.SKIPPED})}),mt(this,"start",i=>{const{index:a,size:o}=this.getState();this.setState({...this.getNextState({action:rn.START,index:ft.number(i)?i:a},!0),status:o?Nt.RUNNING:Nt.WAITING})}),mt(this,"stop",(i=!1)=>{const{index:a,status:o}=this.getState();[Nt.FINISHED,Nt.SKIPPED].includes(o)||this.setState({...this.getNextState({action:rn.STOP,index:a+(i?1:0)}),status:Nt.PAUSED})}),mt(this,"update",i=>{var a,o;if(!Vfe(i,O6))throw new Error(`State is not valid. Valid keys: ${O6.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(a=i.action)!=null?a:rn.UPDATE,origin:(o=i.origin)!=null?o:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:rn.INIT,controlled:ft.number(n),continuous:t,index:ft.number(n)?n:0,lifecycle:Ft.INIT,origin:null,status:r.length?Nt.READY:Nt.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(r)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...$I}}getNextState(e,t=!1){var n,r,i,a,o;const{action:s,controlled:l,index:f,size:h,status:m}=this.getState(),g=ft.number(e.index)?e.index:f,b=l&&!t?f:Math.min(Math.max(g,0),h);return{action:(n=e.action)!=null?n:s,controlled:l,index:b,lifecycle:(r=e.lifecycle)!=null?r:Ft.INIT,origin:(i=e.origin)!=null?i:null,size:(a=e.size)!=null?a:h,status:b===h?Nt.FINISHED:(o=e.status)!=null?o:m}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){const t=JSON.stringify(e),n=JSON.stringify(this.getState());return t!==n}setState(e,t=!1){const n=this.getState(),{action:r,index:i,lifecycle:a,origin:o=null,size:s,status:l}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",a),this.store.set("origin",o),this.store.set("size",s),this.store.set("status",l),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function Xfe(e){return new Zfe(e)}function Qfe({styles:e}){return de.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var Jfe=Qfe,ehe=class extends de.Component{constructor(){super(...arguments),mt(this,"isActive",!1),mt(this,"resizeTimeout"),mt(this,"scrollTimeout"),mt(this,"scrollParent"),mt(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),mt(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[Ft.INIT,Ft.BEACON,Ft.COMPLETE,Ft.ERROR];return t||(e?r.includes(n):n!==Ft.TOOLTIP)}),mt(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:a,width:o}=this.spotlightStyles,s=i==="fixed"?e.clientY:e.pageY,l=i==="fixed"?e.clientX:e.pageX,f=s>=a&&s<=a+n,m=l>=r&&l<=r+o&&f;m!==t&&this.updateState({mouseOverSpotlight:m})}),mt(this,"handleScroll",()=>{const{target:e}=this.props,t=Vo(e);if(this.scrollParent!==document){const{isScrolling:n}=this.state;n||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout(()=>{this.updateState({isScrolling:!1,showSpotlight:!0})},50)}else sc(t,"sticky")&&this.updateState({})}),mt(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){const{debug:e,disableScrolling:t,disableScrollParentFix:n=!1,target:r}=this.props,i=Vo(r);this.scrollParent=af(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&If(i,!0)&&Ss({title:"step has a custom scroll parent and can cause trouble with scrolling",data:[{key:"parent",value:this.scrollParent}],debug:e}),window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;const{disableScrollParentFix:n,lifecycle:r,spotlightClicks:i,target:a}=this.props,{changed:o}=jp(e,this.props);if(o("target")||o("disableScrollParentFix")){const s=Vo(a);this.scrollParent=af(s??document.body,n,!0)}o("lifecycle",Ft.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:s}=this.state;s||this.updateState({showSpotlight:!0})},100)),(o("spotlightClicks")||o("disableOverlay")||o("lifecycle"))&&(i&&r===Ft.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Ft.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(e=this.scrollParent)==null||e.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:e}=this.state,{disableOverlayClose:t,placement:n,styles:r}=this.props;let i=r.overlay;return M6()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:Ffe(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:a,spotlightPadding:o=0,styles:s,target:l}=this.props,f=Vo(l),h=vI(f),m=sc(f),g=Ife(f,o,i);return{...M6()?s.spotlightLegacy:s.spotlight,height:Math.round(((e=h==null?void 0:h.height)!=null?e:0)+o*2),left:Math.round(((t=h==null?void 0:h.left)!=null?t:0)-o),opacity:r?1:0,pointerEvents:a?"none":"auto",position:m?"fixed":"absolute",top:g,transition:"opacity 0.2s",width:Math.round(((n=h==null?void 0:h.width)!=null?n:0)+o*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:n}=this.props,{hideSpotlight:r,overlayStyles:i,spotlightStyles:a}=this;if(r())return null;let o=n!=="center"&&e&&de.createElement(Jfe,{styles:a});if(yI()==="safari"){const{mixBlendMode:s,zIndex:l,...f}=i;o=de.createElement("div",{style:{...f}},o),delete i.backgroundColor}return de.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},o)}},the=class extends de.Component{constructor(){super(...arguments),mt(this,"node",null)}componentDidMount(){const{id:e}=this.props;vs()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),cd||this.renderReact15())}componentDidUpdate(){vs()&&(cd||this.renderReact15())}componentWillUnmount(){!vs()||!this.node||(cd||No.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!vs())return;const{children:e}=this.props;this.node&&No.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!vs()||!cd)return null;const{children:e}=this.props;return this.node?No.createPortal(e,this.node):null}render(){return cd?this.renderReact16():null}},nhe=class{constructor(e,t){if(mt(this,"element"),mt(this,"options"),mt(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),mt(this,"canHaveFocus",n=>{const r=/input|select|textarea|button|object/,i=n.nodeName.toLowerCase();return(r.test(i)&&!n.getAttribute("disabled")||i==="a"&&!!n.getAttribute("href"))&&this.isVisible(n)}),mt(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),mt(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),mt(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:i}=n;if(!r.length)return;let a=document.activeElement?r.indexOf(document.activeElement):0;a===-1||!i&&a+1===r.length?a=0:i&&a===0?a=r.length-1:a+=i?-1:1,r[a].focus()}),mt(this,"isHidden",n=>{const r=n.offsetWidth<=0&&n.offsetHeight<=0,i=window.getComputedStyle(n);return r&&!n.innerHTML?!0:r&&i.getPropertyValue("overflow")!=="visible"||i.getPropertyValue("display")==="none"}),mt(this,"isVisible",n=>{let r=n;for(;r;)if(r instanceof HTMLElement){if(r===document.body)break;if(this.isHidden(r))return!1;r=r.parentNode}return!0}),mt(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),mt(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),mt(this,"setFocus",()=>{const{selector:n}=this.options;if(!n)return;const r=this.element.querySelector(n);r&&window.requestAnimationFrame(()=>this.checkFocus(r))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},rhe=class extends de.Component{constructor(e){if(super(e),mt(this,"beacon",null),mt(this,"setBeaconRef",i=>{this.beacon=i}),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",e.nonce&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode(`
148
148
  @keyframes joyride-beacon-inner {
149
149
  20% {
150
150
  opacity: 0.9;
@@ -170,4 +170,4 @@ Valid keys: `+JSON.stringify(Object.keys(M),null," "));var Te=je(Xe,ke,_e,Be,Ge
170
170
  transform: scale(1);
171
171
  }
172
172
  }
173
- `)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(ft.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{ft.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:o,step:s,styles:l}=this.props,f=Ya(i.open),h={"aria-label":f,onClick:a,onMouseEnter:a,ref:this.setBeaconRef,title:f};let m;if(e){const g=e;m=de.createElement(g,{continuous:t,index:n,isLastStep:r,size:o,step:s,...h})}else m=de.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:l.beacon,type:"button",...h},de.createElement("span",{style:l.beaconInner}),de.createElement("span",{style:l.beaconOuter}));return m}};function hhe({styles:e,...t}){const{color:n,height:r,width:i,...a}=e;return de.default.createElement("button",{style:a,type:"button",...t},de.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"},de.default.createElement("g",null,de.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 phe=hhe;function mhe(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:a,skipProps:o,step:s,tooltipProps:l}=e,{content:f,hideBackButton:h,hideCloseButton:m,hideFooter:g,showSkipButton:b,styles:$,title:x}=s,A={};return A.primary=de.createElement("button",{"data-test-id":"button-primary",style:$.buttonNext,type:"button",...a}),b&&!i&&(A.skip=de.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:$.buttonSkip,type:"button",...o})),!h&&r>0&&(A.back=de.createElement("button",{"data-test-id":"button-back",style:$.buttonBack,type:"button",...t})),A.close=!m&&de.createElement(phe,{"data-test-id":"button-close",styles:$.buttonClose,...n}),de.createElement("div",{key:"JoyrideTooltip","aria-label":Ya(x??f),className:"react-joyride__tooltip",style:$.tooltip,...l},de.createElement("div",{style:$.tooltipContainer},x&&de.createElement("h1",{"aria-label":Ya(x),style:$.tooltipTitle},x),de.createElement("div",{style:$.tooltipContent},f)),!g&&de.createElement("div",{style:$.tooltipFooter},de.createElement("div",{style:$.tooltipFooterSpacer},A.skip),A.back,A.primary),A.close)}var ghe=mhe,vhe=class extends de.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:o,close:s,last:l,next:f,nextLabelWithProgress:h,skip:m}=a.locale,g=Ya(o),b=Ya(s),$=Ya(l),x=Ya(f),A=Ya(m);let w=s,C=b;if(e){if(w=f,C=x,a.showProgress&&!n){const E=Ya(h,{step:t+1,steps:i});w=L1(h,t+1,i),C=E}n&&(w=l,C=$)}return{backProps:{"aria-label":g,children:o,"data-action":"back",onClick:this.handleClickBack,role:"button",title:g},closeProps:{"aria-label":b,children:s,"data-action":"close",onClick:this.handleClickClose,role:"button",title:b},primaryProps:{"aria-label":C,children:w,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:C},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:o,tooltipComponent:s,...l}=a;let f;if(s){const h={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:l,setTooltipRef:r},m=s;f=de.createElement(m,{...h})}else f=de.createElement(ghe,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:a});return f}},yhe=class extends de.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:o}=this.props;t==="wrapper"?o.setPopper("beacon",e):o.setPopper("tooltip",e),o.getPopper("beacon")&&(o.getPopper("tooltip")||a.placement==="center")&&i===Ft.INIT&&o.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 de.createElement(vhe,{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;Ss({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:o,helpers:s,index:l,lifecycle:f,shouldScroll:h,status:m,step:g,store:b}=this.props,{changed:$,changedFrom:x}=jp(e,this.props),A=s.info(),w=i&&n!==rn.CLOSE&&(l>0||n===rn.PREV),C=$("action")||$("index")||$("lifecycle")||$("status"),E=x("lifecycle",[Ft.TOOLTIP,Ft.INIT],Ft.INIT),T=$("action",[rn.NEXT,rn.PREV,rn.SKIP,rn.CLOSE]),P=a&&l===e.index;if(T&&(E||P)&&r({...A,index:e.index,lifecycle:Ft.COMPLETE,step:e.step,type:Ui.STEP_AFTER}),g.placement==="center"&&m===Nt.RUNNING&&$("index")&&n!==rn.START&&f===Ft.INIT&&b.update({lifecycle:Ft.READY}),C){const F=Vo(g.target),q=!!F;q&&qfe(F)?(x("status",Nt.READY,Nt.RUNNING)||x("lifecycle",Ft.INIT,Ft.READY))&&r({...A,step:g,type:Ui.STEP_BEFORE}):(console.warn(q?"Target not visible":"Target not mounted",g),r({...A,type:Ui.TARGET_NOT_FOUND,step:g}),a||b.update({index:l+(n===rn.PREV?-1:1)}))}x("lifecycle",Ft.INIT,Ft.READY)&&b.update({lifecycle:M6(g)||w?Ft.TOOLTIP:Ft.BEACON}),$("index")&&Ss({title:`step:${f}`,data:[{key:"props",value:this.props}],debug:o}),$("lifecycle",Ft.BEACON)&&r({...A,step:g,type:Ui.BEACON}),$("lifecycle",Ft.TOOLTIP)&&(r({...A,step:g,type:Ui.TOOLTIP}),h&&this.tooltip&&(this.scope=new dhe(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 M6(t)||e===Ft.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:a,step:o}=this.props,s=Vo(o.target);return!$I(o)||!ft.domElement(s)?null:de.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},de.createElement(hD,{...o.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:o.placement,target:o.target},de.createElement(fhe,{beaconComponent:o.beaconComponent,continuous:e,index:n,isLastStep:n+1===a,locale:o.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:a,step:o,styles:o.styles})))}},CI=class extends de.Component{constructor(e){super(e),mt(this,"helpers"),mt(this,"store"),mt(this,"callback",o=>{const{callback:s}=this.props;ft.function(s)&&s(o)}),mt(this,"handleKeyboard",o=>{const{index:s,lifecycle:l}=this.state,{steps:f}=this.props,h=f[s];l===Ft.TOOLTIP&&o.code==="Escape"&&h&&!h.disableCloseOnEsc&&this.store.close("keyboard")}),mt(this,"handleClickOverlay",()=>{const{index:o}=this.state,{steps:s}=this.props;xl(this.props,s[o]).disableOverlayClose||this.helpers.close("overlay")}),mt(this,"syncState",o=>{this.setState(o)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=ohe({...e,controlled:r&&ft.number(i)}),this.helpers=this.store.getHelpers();const{addListener:a}=this.store;Ss({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(!vs())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;O6(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!vs())return;const{action:n,controlled:r,index:i,status:a}=this.state,{debug:o,run:s,stepIndex:l,steps:f}=this.props,{stepIndex:h,steps:m}=e,{reset:g,setSteps:b,start:$,stop:x,update:A}=this.store,{changed:w}=jp(e,this.props),{changed:C,changedFrom:E}=jp(t,this.state),T=xl(this.props,f[i]),P=!Kr(m,f),F=ft.number(l)&&w("stepIndex"),q=Vo(T.target);if(P&&(O6(f,o)?b(f):console.warn("Steps are not valid",f)),w("run")&&(s?$(l):x()),F){let ae=ft.number(h)&&h<l?rn.NEXT:rn.PREV;n===rn.STOP&&(ae=rn.START),[Nt.FINISHED,Nt.SKIPPED].includes(a)||A({action:n===rn.CLOSE?rn.CLOSE:ae,index:l,lifecycle:Ft.INIT})}!r&&a===Nt.RUNNING&&i===0&&!q&&(this.store.update({index:i+1}),this.callback({...this.state,type:Ui.TARGET_NOT_FOUND,step:T}));const te={...this.state,index:i,step:T};if(C("action",[rn.NEXT,rn.PREV,rn.SKIP,rn.CLOSE])&&C("status",Nt.PAUSED)){const ae=xl(this.props,f[t.index]);this.callback({...te,index:t.index,lifecycle:Ft.COMPLETE,step:ae,type:Ui.STEP_AFTER})}if(C("status",[Nt.FINISHED,Nt.SKIPPED])){const ae=xl(this.props,f[t.index]);r||this.callback({...te,index:t.index,lifecycle:Ft.COMPLETE,step:ae,type:Ui.STEP_AFTER}),this.callback({...te,type:Ui.TOUR_END,step:ae,index:t.index}),g()}else E("status",[Nt.IDLE,Nt.READY],Nt.RUNNING)?this.callback({...te,type:Ui.TOUR_START}):(C("status")||C("action",rn.RESET))&&this.callback({...te,type:Ui.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:o,scrollOffset:s=20,scrollToFirstStep:l=!1,steps:f}=this.props,h=xl(this.props,f[t]),m=Vo(h.target),g=Qfe({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:h,target:m});if(r===Nt.RUNNING&&g){const b=If(m,a),$=af(m,a);let x=Math.floor(Wfe(m,s,a))||0;Ss({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const A=this.store.getPopper("beacon"),w=this.store.getPopper("tooltip");if(n===Ft.BEACON&&A){const{offsets:C,placement:E}=A;!["bottom"].includes(E)&&!b&&(x=Math.floor(C.popper.top-s))}else if(n===Ft.TOOLTIP&&w){const{flipped:C,offsets:E,placement:T}=w;["top","right","left"].includes(T)&&!C&&!b?x=Math.floor(E.popper.top-s):x-=h.spotlightPadding}x=x>=0?x:0,r===Nt.RUNNING&&Hfe(x,{element:$,duration:o}).then(()=>{setTimeout(()=>{var C;(C=this.store.getPopper("tooltip"))==null||C.instance.update()},10)})}}render(){if(!vs())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:a,scrollToFirstStep:o=!1,steps:s}=this.props,l=n===Nt.RUNNING,f={};if(l&&s[e]){const h=xl(this.props,s[e]);f.step=de.createElement(yhe,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:a,shouldScroll:!h.disableScrolling&&(e!==0||o),step:h,store:this.store}),f.overlay=de.createElement(che,{id:"react-joyride-portal"},de.createElement(lhe,{...h,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return de.createElement("div",{className:"react-joyride"},f.step,f.overlay)}};mt(CI,"defaultProps",the);var bhe=CI;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=Kk;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=UP;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=mf;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=YP;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=er;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=cJ;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=ek;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=_r;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=dQ;exports.$293f70390ea03370$export$497855f14858aa34=iJ;exports.$32489daedd52963e$export$1315d136e6f7581=gJ;exports.$337b884510726a0d$export$c6fdb837b070b4ff=NQ;exports.$36a0ac60f04457c5$export$136073280381448e=tQ;exports.$3c0fc76039f1c516$export$60e84778edff6d26=P9;exports.$40df3f8667284809$export$d55e7ee900f34e93=xJ;exports.$46a4342aab3d8076$export$87e0539f600c24e5=QX;exports.$47b897dc8cdb026b$export$8d15029008292ae=mQ;exports.$5c06e4929e123553$export$ccdee5eaf73cf661=IJ;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=hQ;exports.$6057a3d2a53a12fd$export$42df105a73306d51=fJ;exports.$64244302c3013299$export$dd0bbc9b26defe37=$X;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=IX;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=bJ;exports.$93c38a5e28be6249$export$e50a61c1de9f574=tee;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=XX;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=OJ;exports.$a916eb452884faea$export$b7a616150fdb9f44=RX;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=zJ;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=YJ;exports.$bb77f239b46e8c72$export$3274cf84b703fff=$7;exports.$bcca50147b47f54d$export$56b2c08e277f365=pQ;exports.$c132121280ec012d$export$50eacbbf140a3141=ZQ;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=QQ;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=uJ;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=JX;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=nee;exports.$f2f8a6077418541e$export$542a6fd13ac93354=VQ;exports.$fae977aafc393c5c$export$588937bcd60ade55=XZ;exports.$fae977aafc393c5c$export$6b862160d295c8e=ZZ;exports.ACTIONS=rn;exports.AdvancedImage=Tq;exports.CSVLink=Rce;exports.Cloudinary=EU;exports.Controller=PG;exports.EVENTS=Ui;exports.FormProvider=SG;exports.LazyMotion=Roe;exports.Lottie=Toe;exports.M=va;exports.NuqsAdapter=coe;exports.ReorderGroup=Dae;exports.ReorderItem=wae;exports.STATUS=Nt;exports._=YW;exports._$1=Ou;exports.autoUpdate=JH;exports.capitalize=FK;exports.components_default=bhe;exports.dayjs=uee;exports.dayjs_minExports=_9;exports.domAnimation=gce;exports.ee=M9;exports.flexRender=Vce;exports.flip=uG;exports.isEmpty=Fae;exports.isEqual=aee;exports.isNaN=Doe;exports.isNil=Lce;exports.isNumber=cee;exports.isUndefined=Oee;exports.lazyload=Dq;exports.localizedFormat=Pae;exports.lodashExports=jT;exports.m=Cse;exports.o=Coe;exports.offset=oG;exports.parseAsString=Jae;exports.placeholder=wq;exports.prismExports=Vee;exports.q=Qb;exports.random=yoe;exports.shift=sG;exports.some=WW;exports.transform=Gce;exports.useController=dP;exports.useFieldArray=qG;exports.useFloating=xG;exports.useFloating$1=tP;exports.useFocus=DG;exports.useForm=UG;exports.useFormContext=cf;exports.useHover=yG;exports.useInteractions=$G;exports.useQueryState=toe;exports.useQueryStates=xM;exports.useRole=CG;exports.useVirtualizer=rY;exports.useWatch=cP;
173
+ `)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(ft.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{ft.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:o,step:s,styles:l}=this.props,f=Ya(i.open),h={"aria-label":f,onClick:a,onMouseEnter:a,ref:this.setBeaconRef,title:f};let m;if(e){const g=e;m=de.createElement(g,{continuous:t,index:n,isLastStep:r,size:o,step:s,...h})}else m=de.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:l.beacon,type:"button",...h},de.createElement("span",{style:l.beaconInner}),de.createElement("span",{style:l.beaconOuter}));return m}};function ihe({styles:e,...t}){const{color:n,height:r,width:i,...a}=e;return de.default.createElement("button",{style:a,type:"button",...t},de.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"},de.default.createElement("g",null,de.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 ahe=ihe;function ohe(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:a,skipProps:o,step:s,tooltipProps:l}=e,{content:f,hideBackButton:h,hideCloseButton:m,hideFooter:g,showSkipButton:b,styles:$,title:x}=s,A={};return A.primary=de.createElement("button",{"data-test-id":"button-primary",style:$.buttonNext,type:"button",...a}),b&&!i&&(A.skip=de.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:$.buttonSkip,type:"button",...o})),!h&&r>0&&(A.back=de.createElement("button",{"data-test-id":"button-back",style:$.buttonBack,type:"button",...t})),A.close=!m&&de.createElement(ahe,{"data-test-id":"button-close",styles:$.buttonClose,...n}),de.createElement("div",{key:"JoyrideTooltip","aria-label":Ya(x??f),className:"react-joyride__tooltip",style:$.tooltip,...l},de.createElement("div",{style:$.tooltipContainer},x&&de.createElement("h1",{"aria-label":Ya(x),style:$.tooltipTitle},x),de.createElement("div",{style:$.tooltipContent},f)),!g&&de.createElement("div",{style:$.tooltipFooter},de.createElement("div",{style:$.tooltipFooterSpacer},A.skip),A.back,A.primary),A.close)}var she=ohe,uhe=class extends de.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:o,close:s,last:l,next:f,nextLabelWithProgress:h,skip:m}=a.locale,g=Ya(o),b=Ya(s),$=Ya(l),x=Ya(f),A=Ya(m);let w=s,C=b;if(e){if(w=f,C=x,a.showProgress&&!n){const E=Ya(h,{step:t+1,steps:i});w=I1(h,t+1,i),C=E}n&&(w=l,C=$)}return{backProps:{"aria-label":g,children:o,"data-action":"back",onClick:this.handleClickBack,role:"button",title:g},closeProps:{"aria-label":b,children:s,"data-action":"close",onClick:this.handleClickClose,role:"button",title:b},primaryProps:{"aria-label":C,children:w,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:C},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:o,tooltipComponent:s,...l}=a;let f;if(s){const h={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:l,setTooltipRef:r},m=s;f=de.createElement(m,{...h})}else f=de.createElement(she,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:a});return f}},lhe=class extends de.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:o}=this.props;t==="wrapper"?o.setPopper("beacon",e):o.setPopper("tooltip",e),o.getPopper("beacon")&&(o.getPopper("tooltip")||a.placement==="center")&&i===Ft.INIT&&o.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 de.createElement(uhe,{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;Ss({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:o,helpers:s,index:l,lifecycle:f,shouldScroll:h,status:m,step:g,store:b}=this.props,{changed:$,changedFrom:x}=jp(e,this.props),A=s.info(),w=i&&n!==rn.CLOSE&&(l>0||n===rn.PREV),C=$("action")||$("index")||$("lifecycle")||$("status"),E=x("lifecycle",[Ft.TOOLTIP,Ft.INIT],Ft.INIT),T=$("action",[rn.NEXT,rn.PREV,rn.SKIP,rn.CLOSE]),P=a&&l===e.index;if(T&&(E||P)&&r({...A,index:e.index,lifecycle:Ft.COMPLETE,step:e.step,type:Ui.STEP_AFTER}),g.placement==="center"&&m===Nt.RUNNING&&$("index")&&n!==rn.START&&f===Ft.INIT&&b.update({lifecycle:Ft.READY}),C){const F=Vo(g.target),q=!!F;q&&Rfe(F)?(x("status",Nt.READY,Nt.RUNNING)||x("lifecycle",Ft.INIT,Ft.READY))&&r({...A,step:g,type:Ui.STEP_BEFORE}):(console.warn(q?"Target not visible":"Target not mounted",g),r({...A,type:Ui.TARGET_NOT_FOUND,step:g}),a||b.update({index:l+(n===rn.PREV?-1:1)}))}x("lifecycle",Ft.INIT,Ft.READY)&&b.update({lifecycle:k6(g)||w?Ft.TOOLTIP:Ft.BEACON}),$("index")&&Ss({title:`step:${f}`,data:[{key:"props",value:this.props}],debug:o}),$("lifecycle",Ft.BEACON)&&r({...A,step:g,type:Ui.BEACON}),$("lifecycle",Ft.TOOLTIP)&&(r({...A,step:g,type:Ui.TOOLTIP}),h&&this.tooltip&&(this.scope=new nhe(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 k6(t)||e===Ft.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:a,step:o}=this.props,s=Vo(o.target);return!DI(o)||!ft.domElement(s)?null:de.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},de.createElement(hD,{...o.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:o.placement,target:o.target},de.createElement(rhe,{beaconComponent:o.beaconComponent,continuous:e,index:n,isLastStep:n+1===a,locale:o.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:a,step:o,styles:o.styles})))}},EI=class extends de.Component{constructor(e){super(e),mt(this,"helpers"),mt(this,"store"),mt(this,"callback",o=>{const{callback:s}=this.props;ft.function(s)&&s(o)}),mt(this,"handleKeyboard",o=>{const{index:s,lifecycle:l}=this.state,{steps:f}=this.props,h=f[s];l===Ft.TOOLTIP&&o.code==="Escape"&&h&&!h.disableCloseOnEsc&&this.store.close("keyboard")}),mt(this,"handleClickOverlay",()=>{const{index:o}=this.state,{steps:s}=this.props;xl(this.props,s[o]).disableOverlayClose||this.helpers.close("overlay")}),mt(this,"syncState",o=>{this.setState(o)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=Xfe({...e,controlled:r&&ft.number(i)}),this.helpers=this.store.getHelpers();const{addListener:a}=this.store;Ss({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(!vs())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;I6(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!vs())return;const{action:n,controlled:r,index:i,status:a}=this.state,{debug:o,run:s,stepIndex:l,steps:f}=this.props,{stepIndex:h,steps:m}=e,{reset:g,setSteps:b,start:$,stop:x,update:A}=this.store,{changed:w}=jp(e,this.props),{changed:C,changedFrom:E}=jp(t,this.state),T=xl(this.props,f[i]),P=!Kr(m,f),F=ft.number(l)&&w("stepIndex"),q=Vo(T.target);if(P&&(I6(f,o)?b(f):console.warn("Steps are not valid",f)),w("run")&&(s?$(l):x()),F){let ae=ft.number(h)&&h<l?rn.NEXT:rn.PREV;n===rn.STOP&&(ae=rn.START),[Nt.FINISHED,Nt.SKIPPED].includes(a)||A({action:n===rn.CLOSE?rn.CLOSE:ae,index:l,lifecycle:Ft.INIT})}!r&&a===Nt.RUNNING&&i===0&&!q&&(this.store.update({index:i+1}),this.callback({...this.state,type:Ui.TARGET_NOT_FOUND,step:T}));const te={...this.state,index:i,step:T};if(C("action",[rn.NEXT,rn.PREV,rn.SKIP,rn.CLOSE])&&C("status",Nt.PAUSED)){const ae=xl(this.props,f[t.index]);this.callback({...te,index:t.index,lifecycle:Ft.COMPLETE,step:ae,type:Ui.STEP_AFTER})}if(C("status",[Nt.FINISHED,Nt.SKIPPED])){const ae=xl(this.props,f[t.index]);r||this.callback({...te,index:t.index,lifecycle:Ft.COMPLETE,step:ae,type:Ui.STEP_AFTER}),this.callback({...te,type:Ui.TOUR_END,step:ae,index:t.index}),g()}else E("status",[Nt.IDLE,Nt.READY],Nt.RUNNING)?this.callback({...te,type:Ui.TOUR_START}):(C("status")||C("action",rn.RESET))&&this.callback({...te,type:Ui.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:o,scrollOffset:s=20,scrollToFirstStep:l=!1,steps:f}=this.props,h=xl(this.props,f[t]),m=Vo(h.target),g=zfe({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:h,target:m});if(r===Nt.RUNNING&&g){const b=If(m,a),$=af(m,a);let x=Math.floor(Ofe(m,s,a))||0;Ss({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const A=this.store.getPopper("beacon"),w=this.store.getPopper("tooltip");if(n===Ft.BEACON&&A){const{offsets:C,placement:E}=A;!["bottom"].includes(E)&&!b&&(x=Math.floor(C.popper.top-s))}else if(n===Ft.TOOLTIP&&w){const{flipped:C,offsets:E,placement:T}=w;["top","right","left"].includes(T)&&!C&&!b?x=Math.floor(E.popper.top-s):x-=h.spotlightPadding}x=x>=0?x:0,r===Nt.RUNNING&&Lfe(x,{element:$,duration:o}).then(()=>{setTimeout(()=>{var C;(C=this.store.getPopper("tooltip"))==null||C.instance.update()},10)})}}render(){if(!vs())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:a,scrollToFirstStep:o=!1,steps:s}=this.props,l=n===Nt.RUNNING,f={};if(l&&s[e]){const h=xl(this.props,s[e]);f.step=de.createElement(lhe,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:a,shouldScroll:!h.disableScrolling&&(e!==0||o),step:h,store:this.store}),f.overlay=de.createElement(the,{id:"react-joyride-portal"},de.createElement(ehe,{...h,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return de.createElement("div",{className:"react-joyride"},f.step,f.overlay)}};mt(EI,"defaultProps",Wfe);var che=EI;function L6(e,t,n){return r=>{if(!(t.length===0||t.some(a=>!yM(r.getAll(a),e.getAll(a)))))return yn("[nuqs `%s`] no change, returning previous",t.join(","),r),r;const i=O1(e,t,n);return yn("[nuqs `%s`] subbed search params change\n from %O\n to %O",t.join(","),r,i),i}}function O1(e,t,n){if(t.length===0)return e;const r=n?new URLSearchParams(e):e;for(const i of e.keys())t.includes(i)||r.delete(i);return r}let np=0;function dhe(e=1){np=e}function fhe(){np=Math.max(0,np-1),!(np>0)&&CI()}function CI(){yn("[nuqs] Aborting queues"),Rd.abortAll(),Md.abort().forEach(e=>Rd.queuedQuerySync.emit(e))}const L1="__nuqs__";function hhe(e){if(e instanceof URL)return e.searchParams;if(e.startsWith("?"))return new URLSearchParams(e);try{return new URL(e,location.origin).searchParams}catch{return new URLSearchParams(e)}}function phe(e){var t,n,r;return typeof history>"u"?!1:(t=history.nuqs)!=null&&t.version&&history.nuqs.version!=="0.0.0-inject-version-here"?(console.error(Lu(409),history.nuqs.version,"0.0.0-inject-version-here",e),!1):!((r=(n=history.nuqs)==null?void 0:n.adapters)!=null&&r.includes(e))}function mhe(e){history.nuqs=history.nuqs??{version:"0.0.0-inject-version-here",adapters:[]},history.nuqs.adapters.push(e)}function ghe(e,t){if(!phe(t))return;let n=typeof location=="object"?location.search:"";e.on("update",o=>{const s=o.toString();n=s.length?"?"+s:""}),window.addEventListener("popstate",()=>{n=location.search,CI()}),yn("[nuqs %s] Patching history (%s adapter)","0.0.0-inject-version-here",t);function r(o){fhe();try{if(new URL(o,location.origin).search===n)return}catch{}try{e.emit("update",hhe(o))}catch(s){console.error(s)}}const i=history.pushState,a=history.replaceState;history.pushState=function(s,l,f){i.call(history,s,"",f),f&&l!==L1&&r(f)},history.replaceState=function(s,l,f){a.call(history,s,"",f),f&&l!==L1&&r(f)},mhe(t)}function vhe({adapter:e,useNavigate:t,useSearchParams:n}){const r=kx();function i(o){const s=t(),l=a(o),f=I.useCallback((h,m)=>{var $;I.startTransition(()=>{r.emit("update",h)});const g=new URL(location.href);g.search=Oae(h),yn(`[nuqs ${e}] Updating url: %s`,g);const b=m.history==="push"?history.pushState:history.replaceState;dhe(m.shallow?1:2),b.call(history,history.state,L1,g),m.shallow===!1&&s({hash:g.hash,search:g.search},{replace:!0,preventScrollReset:!0,state:($=history.state)==null?void 0:$.usr}),m.scroll&&window.scrollTo(0,0)},[s]);return{searchParams:l,updateUrl:f,autoResetQueueOnUpdate:!1}}function a(o=[]){const[s]=n(typeof location>"u"?new URLSearchParams:new URLSearchParams(location.search)),[l,f]=I.useState(()=>typeof location>"u"?O1(s,o,!0):O1(new URLSearchParams(location.search),o,!1));return I.useEffect(()=>{function h(){f(L6(new URLSearchParams(location.search),o,!1))}function m(g){f(L6(g,o,!0))}return r.on("update",m),window.addEventListener("popstate",h),()=>{r.off("update",m),window.removeEventListener("popstate",h)}},[o.join("&")]),l}return ghe(r,e),{NuqsAdapter:jae(i),useOptimisticSearchParams:a}}const yhe=vhe({adapter:"react-router-v6",useNavigate:Z5.useNavigate,useSearchParams:Z5.useSearchParams}),bhe=yhe.NuqsAdapter;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=Kk;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=UP;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=mf;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=YP;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=er;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=cJ;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=ek;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=_r;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=dQ;exports.$293f70390ea03370$export$497855f14858aa34=iJ;exports.$32489daedd52963e$export$1315d136e6f7581=gJ;exports.$337b884510726a0d$export$c6fdb837b070b4ff=NQ;exports.$36a0ac60f04457c5$export$136073280381448e=tQ;exports.$3c0fc76039f1c516$export$60e84778edff6d26=P9;exports.$40df3f8667284809$export$d55e7ee900f34e93=xJ;exports.$46a4342aab3d8076$export$87e0539f600c24e5=QX;exports.$47b897dc8cdb026b$export$8d15029008292ae=mQ;exports.$5c06e4929e123553$export$ccdee5eaf73cf661=IJ;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=hQ;exports.$6057a3d2a53a12fd$export$42df105a73306d51=fJ;exports.$64244302c3013299$export$dd0bbc9b26defe37=$X;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=IX;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=bJ;exports.$93c38a5e28be6249$export$e50a61c1de9f574=tee;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=XX;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=OJ;exports.$a916eb452884faea$export$b7a616150fdb9f44=RX;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=zJ;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=YJ;exports.$bb77f239b46e8c72$export$3274cf84b703fff=$7;exports.$bcca50147b47f54d$export$56b2c08e277f365=pQ;exports.$c132121280ec012d$export$50eacbbf140a3141=ZQ;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=QQ;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=uJ;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=JX;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=nee;exports.$f2f8a6077418541e$export$542a6fd13ac93354=VQ;exports.$fae977aafc393c5c$export$588937bcd60ade55=XZ;exports.$fae977aafc393c5c$export$6b862160d295c8e=ZZ;exports.ACTIONS=rn;exports.AdvancedImage=Tq;exports.CSVLink=Ace;exports.Cloudinary=EU;exports.Controller=PG;exports.EVENTS=Ui;exports.FormProvider=SG;exports.LazyMotion=Aoe;exports.Lottie=boe;exports.M=va;exports.NuqsAdapter=bhe;exports.ReorderGroup=Dae;exports.ReorderItem=wae;exports.STATUS=Nt;exports._=YW;exports._$1=Ou;exports.autoUpdate=JH;exports.capitalize=FK;exports.components_default=che;exports.dayjs=uee;exports.dayjs_minExports=_9;exports.domAnimation=sce;exports.ee=M9;exports.flexRender=_ce;exports.flip=uG;exports.isEmpty=Fae;exports.isEqual=aee;exports.isNaN=foe;exports.isNil=Pce;exports.isNumber=cee;exports.isUndefined=Oee;exports.lazyload=Dq;exports.localizedFormat=Pae;exports.lodashExports=jT;exports.m=mse;exports.o=moe;exports.offset=oG;exports.parseAsString=Jae;exports.placeholder=wq;exports.prismExports=Vee;exports.q=Qb;exports.random=loe;exports.shift=sG;exports.some=WW;exports.transform=Vce;exports.useController=dP;exports.useFieldArray=qG;exports.useFloating=xG;exports.useFloating$1=tP;exports.useFocus=DG;exports.useForm=UG;exports.useFormContext=cf;exports.useHover=yG;exports.useInteractions=$G;exports.useQueryState=toe;exports.useQueryStates=xM;exports.useRole=CG;exports.useVirtualizer=rY;exports.useWatch=cP;