@xcpcio/board-app 0.84.0 → 0.85.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 (101) hide show
  1. package/dist/404.html +1 -1
  2. package/dist/assets/Balloon-B3cPN2yD.js +1 -0
  3. package/dist/assets/Board-BpIhDrix.css +1 -0
  4. package/dist/assets/Board-CWwqX2IB.js +190 -0
  5. package/dist/assets/ContestStateBadge-CQOaPmT8.js +1 -0
  6. package/dist/assets/ContestStateBadge-DgwznQrX.css +1 -0
  7. package/dist/assets/Countdown-BvWlPnYq.js +1 -0
  8. package/dist/assets/DataSourceInput-DCNrUj45.js +1 -0
  9. package/dist/assets/NavBar-O1kqnfE4.css +1 -0
  10. package/dist/assets/NavBar-t1eXyPKg.js +1 -0
  11. package/dist/assets/Resolver-CRBstFE3.css +1 -0
  12. package/dist/assets/Resolver-D_GRj6HP.js +1 -0
  13. package/dist/assets/RightArrowIcon-F6HBDgDW.js +1 -0
  14. package/dist/assets/TheInput-Btyuor_6.js +1 -0
  15. package/dist/assets/Tooltip-C9jfn33Z.css +1 -0
  16. package/dist/assets/Tooltip-DPDTUI-s.js +27 -0
  17. package/dist/assets/_..-D9qurBBH.css +1 -0
  18. package/dist/assets/_...all_-Chjz45WV.js +1 -0
  19. package/dist/assets/_...all_-TFChZhkr.js +6 -0
  20. package/dist/assets/_intlify-i18n-0-BmghNkij.js +1 -0
  21. package/dist/assets/_intlify-i18n-1-DzpDgiG5.js +1 -0
  22. package/dist/assets/_plugin-vue_export-helper-BDNMzG2s.js +1 -0
  23. package/dist/assets/balloon-BlTynoB_.js +1 -0
  24. package/dist/assets/board-A69GsfUB.js +1 -0
  25. package/dist/assets/board-layout-mk2Y30Yp.js +1 -0
  26. package/dist/assets/constant-YlOY-yXZ.js +1 -0
  27. package/dist/assets/countdown-DQRGLfdE.js +1 -0
  28. package/dist/assets/default-BNqFZJwJ.js +1 -0
  29. package/dist/assets/headless-BSf0YrvV.js +1 -0
  30. package/dist/assets/index-C1jdVImx.css +1 -0
  31. package/dist/assets/index-D57KOcpK.js +12 -0
  32. package/dist/assets/index-layout-Cg_FpvvD.js +1 -0
  33. package/dist/assets/pages-DZG1eNR4.css +1 -0
  34. package/dist/assets/{index-D0V3pqsw.js → pages-kJjvENga.js} +2 -2
  35. package/dist/assets/pagination-EIqoVe6M.js +21 -0
  36. package/dist/assets/person-DrN1htE6.js +1 -0
  37. package/dist/assets/query-CoPl3fiI.js +20 -0
  38. package/dist/assets/rank-Bjo0QJlM.js +1 -0
  39. package/dist/assets/rating-B3sXjXNN.js +1 -0
  40. package/dist/assets/rating-DiCQYzia.css +1 -0
  41. package/dist/assets/resolver-Db22e0q8.js +1 -0
  42. package/dist/assets/route-block-ChiJXsfH.js +1 -0
  43. package/dist/assets/utils-Cfm-h8Z9.js +1 -0
  44. package/dist/assets/vue.runtime.esm-bundler-DTMOfGWR.js +4 -0
  45. package/dist/index.html +1 -1
  46. package/package.json +45 -45
  47. package/src/auto-imports.d.ts +4 -4
  48. package/src/components/board/Board.vue +3 -0
  49. package/src/components/board/Export.vue +5 -1
  50. package/src/components/board/Progress.vue +1 -0
  51. package/src/components/board/SeatMapView.vue +6 -3
  52. package/src/components/board/SubmissionsTable.vue +1 -2
  53. package/src/components/board/SubmitHeatMap.less +11 -3
  54. package/src/components/board/SubmitHeatMap.vue +56 -86
  55. package/src/components/board/TeamCard.vue +6 -6
  56. package/src/components/board/TeamOverview.vue +1 -0
  57. package/src/components/flowbite/Tooltip.vue +79 -13
  58. package/src/components.d.ts +0 -1
  59. package/dist/assets/Balloon.vue_vue_type_script_setup_true_lang-DHemO8cG.js +0 -1
  60. package/dist/assets/Board-C6kTRGEP.css +0 -1
  61. package/dist/assets/Board-DxiquVyO.js +0 -194
  62. package/dist/assets/ContestStateBadge-Bgdroopp.js +0 -1
  63. package/dist/assets/ContestStateBadge-D6uf8wH-.css +0 -1
  64. package/dist/assets/Countdown-ovUCuJ35.js +0 -1
  65. package/dist/assets/DataSourceInput.vue_vue_type_script_setup_true_lang-DgkCadgz.js +0 -1
  66. package/dist/assets/NavBar-DfKQ1ytp.js +0 -1
  67. package/dist/assets/NavBar-aT2xEvYz.css +0 -1
  68. package/dist/assets/Resolver-BQcsyOHn.js +0 -1
  69. package/dist/assets/Resolver-DV9FleNP.css +0 -1
  70. package/dist/assets/RightArrowIcon-BKvYPM1O.js +0 -1
  71. package/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-OA6Dkh4w.js +0 -1
  72. package/dist/assets/Tooltip-DzyPDwbo.css +0 -1
  73. package/dist/assets/Tooltip.vue_vue_type_script_setup_true_lang-DWNdRDhE.js +0 -27
  74. package/dist/assets/_..-5I0UWqRG.css +0 -1
  75. package/dist/assets/_...all_-BtYYdFga.js +0 -1
  76. package/dist/assets/_...all_-XVDapPdm.js +0 -6
  77. package/dist/assets/_plugin-vue_export-helper-DlAUqK2U.js +0 -1
  78. package/dist/assets/board-layout-LZdDEkNj.js +0 -1
  79. package/dist/assets/constant-CYOTMbJW.js +0 -1
  80. package/dist/assets/dayjs-Ccpn6fIh.js +0 -1
  81. package/dist/assets/default-CRpkLq3n.js +0 -1
  82. package/dist/assets/en-DGp_RGnz.js +0 -1
  83. package/dist/assets/headless-l1XzJj3O.js +0 -1
  84. package/dist/assets/index-B34Y_Z57.js +0 -15
  85. package/dist/assets/index-B3NvUps3.js +0 -1
  86. package/dist/assets/index-B_303hcz.js +0 -1
  87. package/dist/assets/index-Bojw84ll.css +0 -1
  88. package/dist/assets/index-BuFplOHa.js +0 -1
  89. package/dist/assets/index-CeJCbVnH.js +0 -1
  90. package/dist/assets/index-CgXDtxXW.css +0 -1
  91. package/dist/assets/index-D-msPqye.css +0 -1
  92. package/dist/assets/index-DOf6OpNV.js +0 -1
  93. package/dist/assets/index-layout-BDulxfyN.js +0 -1
  94. package/dist/assets/pagination-DkTeb3KN.js +0 -3
  95. package/dist/assets/person-gKEre052.js +0 -1
  96. package/dist/assets/rank-DJDWVDFD.js +0 -1
  97. package/dist/assets/route-block-B_A1xBdJ.js +0 -1
  98. package/dist/assets/use-vmodel-Bem9C7yk.js +0 -20
  99. package/dist/assets/zh-CN-BUehjmhL.js +0 -1
  100. package/src/components/board/HeatMapTooltip.less +0 -115
  101. package/src/components/board/HeatMapTooltip.vue +0 -68
@@ -0,0 +1 @@
1
+ import{E as e,F as t,It as n,N as r,Nt as i,P as a,X as o,_ as s,f as c,h as l,jt as u,m as d,nt as f,ut as p,v as m,vt as h,x as g}from"./vue.runtime.esm-bundler-DTMOfGWR.js";import{t as _}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{a as v,p as y}from"./query-CoPl3fiI.js";import{i as b,n as x,t as S}from"./utils-Cfm-h8Z9.js";function C(e,t){return e?.url?!t||e.url.startsWith(`http`)||e.url.startsWith(`/`)?e.url:`${S(t)}${e.url}`:e?.base64?e.mime?`data:${e.mime};base64,${e.base64}`:`data:image/${e.type??`png`};base64,${e.base64}`:``}e(),o(),h();var w=_(g({__name:`Progress`,props:{width:null,state:null,needScroll:{type:Boolean},rank:null,rankOptions:null,elapsedTime:null},emits:[`update:rank-options`],setup(e,{emit:o}){let h=e,g=o,_=d({get(){return h.rankOptions},set(e){g(`update:rank-options`,e)}}),S=d(()=>{switch(h.state){case y.PENDING:return`am-progress-bar-secondary`;case y.RUNNING:return`am-progress-bar-success`;case y.FROZEN:return`am-progress-bar-danger`;case y.FINISHED:return`am-progress-bar-primary`;case y.PAUSED:return`am-progress-bar-danger`}return``}),C=f(!1),w=f(!1),T=f(0),E=f(h.width),D=f(0),O=v(),k=f(null),A=f(null),j=f(null),M=f(null),N=f(null);function P(e){w.value=!0;let t=e.clientX-j.value.offsetLeft,n=e=>{if(!w.value)return;C.value=!0;let n=e.clientX-t;n=Math.max(n,0),n=Math.min(n,k.value.offsetWidth-j.value.offsetWidth);let r=k.value.offsetWidth*Number.parseInt(A.value.style?.width)*.01;n>=r&&(n=r,C.value=!1);let i=0;n>0&&(i=Math.round((n+j.value.offsetWidth)/k.value.offsetWidth*1e4)),i>1e4&&(i=1e4),i===1e4&&(C.value=!1),window.getSelection()?.removeAllRanges(),T.value=i,D.value=n,E.value=i*.01},r=()=>{document.removeEventListener(`mouseup`,r),document.removeEventListener(`mousemove`,n),w.value=!1,C.value===!0?(O.value=T.value,_.value?.setWidth(T.value,h.rank.contest)):(O.value=void 0,_.value?.disableFilterSubmissionByTimestamp())};document.addEventListener(`mousemove`,n),document.addEventListener(`mouseup`,r)}function F(){let e=h.rank.contest.getStartTime(),t=h.rank.contest.getEndTime(),n=t.unix()-e.unix(),r=Math.floor(n*E.value*.01),i=x(),a=Math.max(0,Math.min(i.unix(),t.unix())-e.unix());return b(Math.min(r,a))}function I(){return C.value===!0?F():h.elapsedTime}function L(){return C.value===!0?`${Math.max(0,D.value)}px`:`max(calc(0%), min(calc(${h.width}%), calc(100% - 10px)))`}return r(()=>{h.needScroll===!0&&(k.value.onmouseenter=()=>{M.value.classList.add(`in`)},k.value.onmouseleave=()=>{M.value.classList.remove(`in`)}),O.value===-1?_.value?.disableFilterSubmissionByTimestamp():(C.value=!0,T.value=Math.max(0,Math.min(1e4,O.value)),E.value=T.value*.01,D.value=E.value*.01*k.value.offsetWidth-j.value.offsetWidth,_.value?.setWidth(O.value,h.rank.contest))}),a(()=>{}),(e,r)=>(t(),m(`div`,{ref_key:`scroll`,ref:k,class:`am-progress am-progress-striped am-active`,"w-full":``,style:{position:`relative`}},[l(`div`,{ref_key:`mask`,ref:A,class:u([`am-progress-bar`,[p(S)]]),style:i({width:`${h.width}%`})},[h.needScroll?(t(),m(c,{key:0},[l(`div`,{ref_key:`tooltip`,ref:M,class:`tooltip tooltip-top`,style:i({marginLeft:`-32px`,bottom:`22px`,left:L()})},[l(`div`,{ref_key:`tooltipInner`,ref:N,class:`tooltip-inner`},n(I()),513)],4),l(`div`,{ref_key:`bar`,ref:j,class:u([`am-progress-bar am-progress-cursor am-progress-scroll-size z-99`,[p(S)]]),style:i({left:L()}),onMousedown:P},null,38)],64)):s(``,!0)],6)],512))}}),[[`__scopeId`,`data-v-c80f6458`]]);e(),h(),o();var T={flex:``,"flex-row":``,"items-center":``,"justify-center":``},E={key:0,"ml-2":``},D={key:1,"ml-2":``},O=_(g({__name:`ContestStateBadge`,props:{state:null,pendingTime:null,pausedTime:null},setup(e){let r=e;return(e,i)=>(t(),m(`div`,T,[l(`div`,{class:u([`label`,r.state])},null,2),l(`div`,null,n(r.state),1),r.pendingTime&&r.state===p(y).PENDING?(t(),m(`div`,E,n(r.pendingTime),1)):s(``,!0),r.pausedTime&&r.state===p(y).PAUSED?(t(),m(`div`,D,n(r.pausedTime),1)):s(``,!0)]))}}),[[`__scopeId`,`data-v-68586c4d`]]);export{w as n,C as r,O as t};
@@ -0,0 +1 @@
1
+ @keyframes progress-bar-stripes-c80f6458{0%{background-position:36px 0}to{background-position:0 0}}.am-progress[data-v-c80f6458]{background-color:#f5f5f5;border-radius:0;height:1rem;box-shadow:inset 0 1px 2px #0000001a}.am-progress-bar[data-v-c80f6458]{float:left;color:#fff;text-align:center;background-color:#0e90d2;width:0;height:100%;font-size:1.2rem;line-height:2rem;transition:width .6s;box-shadow:inset 0 -1px #00000026}.am-progress-striped .am-progress-bar[data-v-c80f6458]{-webkit-background-size:36px 36px;background-image:linear-gradient(45deg,#ffffff26 25%,#0000 25% 50%,#ffffff26 50% 75%,#0000 75%,#0000);background-size:36px 36px}.am-progress.am-active .am-progress-bar[data-v-c80f6458]{animation:2s linear infinite progress-bar-stripes-c80f6458}.am-progress-bar[aria-valuenow="1"][data-v-c80f6458],.am-progress-bar[aria-valuenow="2"][data-v-c80f6458]{min-width:30px}.am-progress-bar[aria-valuenow="0"][data-v-c80f6458]{color:#999;min-width:30px;-webkit-box-shadow:none;box-shadow:none;background:0 0}.am-progress-bar-secondary[data-v-c80f6458]{background-color:#3bb4f2}.am-progress-striped .am-progress-bar-secondary[data-v-c80f6458]{background-image:linear-gradient(45deg,#ffffff26 25%,#0000 25% 50%,#ffffff26 50% 75%,#0000 75%,#0000)}.am-progress-bar-success[data-v-c80f6458]{background-color:#5eb95e}.am-progress-striped .am-progress-bar-success[data-v-c80f6458]{background-image:linear-gradient(45deg,#ffffff26 25%,#0000 25% 50%,#ffffff26 50% 75%,#0000 75%,#0000)}.am-progress-bar-warning[data-v-c80f6458]{background-color:#f37b1d}.am-progress-striped .am-progress-bar-warning[data-v-c80f6458]{background-image:linear-gradient(45deg,#ffffff26 25%,#0000 25% 50%,#ffffff26 50% 75%,#0000 75%,#0000)}.am-progress-bar-danger[data-v-c80f6458]{background-color:#dd514c}.am-progress-striped .am-progress-bar-danger[data-v-c80f6458]{background-image:linear-gradient(45deg,#ffffff26 25%,#0000 25% 50%,#ffffff26 50% 75%,#0000 75%,#0000)}.am-progress-xs[data-v-c80f6458]{height:.6rem}.am-progress-sm[data-v-c80f6458]{height:1.2rem}.am-progress-cursor[data-v-c80f6458]{cursor:pointer;position:absolute;bottom:-4px;left:50%}.label[data-v-c80f6458]{box-sizing:inherit;text-transform:none;text-align:center;vertical-align:baseline;color:#fff;background-image:none;border:0 solid #0000;border-radius:500rem;width:1px;min-width:0;height:1px;min-height:0;margin-right:5px;font-size:.785714rem;font-weight:700;line-height:1em;transition:background .1s;display:inline-block;overflow:hidden;padding:.4em!important}.PENDING[data-v-c80f6458]{background-color:#3bb4f2;border-color:#3bb4f2}.RUNNING[data-v-c80f6458]{background-color:#5eb95e;border-color:#5eb95e}.FROZEN[data-v-c80f6458]{background-color:#dd514c;border-color:#dd514c}.FINISHED[data-v-c80f6458]{background-color:#0e90d2;border-color:#0e90d2}.PAUSED[data-v-c80f6458]{background-color:#3bb4f2;border-color:#3bb4f2}.tooltip[data-v-c80f6458]{z-index:99;letter-spacing:normal;line-break:auto;text-align:left;text-align:start;text-shadow:none;text-transform:none;white-space:normal;word-break:normal;word-spacing:normal;word-wrap:break-word;opacity:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:.875rem;font-style:normal;font-weight:400;line-height:1.5;text-decoration:none;display:block;position:absolute}.tooltip.in[data-v-c80f6458]{opacity:.9}.tooltip.bs-tether-element-attached-bottom[data-v-c80f6458],.tooltip.tooltip-top[data-v-c80f6458]{margin-top:-3px;padding:5px 0}.tooltip.bs-tether-element-attached-bottom .tooltip-inner[data-v-c80f6458]:before,.tooltip.tooltip-top .tooltip-inner[data-v-c80f6458]:before{content:"";border-width:5px 5px 0;border-top-color:#000;margin-left:-5px;bottom:0;left:50%}.tooltip.bs-tether-element-attached-left[data-v-c80f6458],.tooltip.tooltip-right[data-v-c80f6458]{margin-left:3px;padding:0 5px}.tooltip.bs-tether-element-attached-left .tooltip-inner[data-v-c80f6458]:before,.tooltip.tooltip-right .tooltip-inner[data-v-c80f6458]:before{content:"";border-width:5px 5px 5px 0;border-right-color:#000;margin-top:-5px;top:50%;left:0}.tooltip.bs-tether-element-attached-top[data-v-c80f6458],.tooltip.tooltip-bottom[data-v-c80f6458]{margin-top:3px;padding:5px 0}.tooltip.bs-tether-element-attached-top .tooltip-inner[data-v-c80f6458]:before,.tooltip.tooltip-bottom .tooltip-inner[data-v-c80f6458]:before{content:"";border-width:0 5px 5px;border-bottom-color:#000;margin-left:-5px;top:0;left:50%}.tooltip.bs-tether-element-attached-right[data-v-c80f6458],.tooltip.tooltip-left[data-v-c80f6458]{margin-left:-3px;padding:0 5px}.tooltip.bs-tether-element-attached-right .tooltip-inner[data-v-c80f6458]:before,.tooltip.tooltip-left .tooltip-inner[data-v-c80f6458]:before{content:"";border-width:5px 0 5px 5px;border-left-color:#000;margin-top:-5px;top:50%;right:0}.tooltip-inner[data-v-c80f6458]{color:#fff;text-align:center;background-color:#000;border-radius:.25rem;max-width:200px;padding:3px 8px}.tooltip-inner[data-v-c80f6458]:before{border-style:solid;border-color:#0000;width:0;height:0;position:absolute}.am-progress-scroll-size[data-v-c80f6458]{width:10px;height:25px}@keyframes progress-bar-stripes-68586c4d{0%{background-position:36px 0}to{background-position:0 0}}.am-progress[data-v-68586c4d]{background-color:#f5f5f5;border-radius:0;height:1rem;box-shadow:inset 0 1px 2px #0000001a}.am-progress-bar[data-v-68586c4d]{float:left;color:#fff;text-align:center;background-color:#0e90d2;width:0;height:100%;font-size:1.2rem;line-height:2rem;transition:width .6s;box-shadow:inset 0 -1px #00000026}.am-progress-striped .am-progress-bar[data-v-68586c4d]{-webkit-background-size:36px 36px;background-image:linear-gradient(45deg,#ffffff26 25%,#0000 25% 50%,#ffffff26 50% 75%,#0000 75%,#0000);background-size:36px 36px}.am-progress.am-active .am-progress-bar[data-v-68586c4d]{animation:2s linear infinite progress-bar-stripes-68586c4d}.am-progress-bar[aria-valuenow="1"][data-v-68586c4d],.am-progress-bar[aria-valuenow="2"][data-v-68586c4d]{min-width:30px}.am-progress-bar[aria-valuenow="0"][data-v-68586c4d]{color:#999;min-width:30px;-webkit-box-shadow:none;box-shadow:none;background:0 0}.am-progress-bar-secondary[data-v-68586c4d]{background-color:#3bb4f2}.am-progress-striped .am-progress-bar-secondary[data-v-68586c4d]{background-image:linear-gradient(45deg,#ffffff26 25%,#0000 25% 50%,#ffffff26 50% 75%,#0000 75%,#0000)}.am-progress-bar-success[data-v-68586c4d]{background-color:#5eb95e}.am-progress-striped .am-progress-bar-success[data-v-68586c4d]{background-image:linear-gradient(45deg,#ffffff26 25%,#0000 25% 50%,#ffffff26 50% 75%,#0000 75%,#0000)}.am-progress-bar-warning[data-v-68586c4d]{background-color:#f37b1d}.am-progress-striped .am-progress-bar-warning[data-v-68586c4d]{background-image:linear-gradient(45deg,#ffffff26 25%,#0000 25% 50%,#ffffff26 50% 75%,#0000 75%,#0000)}.am-progress-bar-danger[data-v-68586c4d]{background-color:#dd514c}.am-progress-striped .am-progress-bar-danger[data-v-68586c4d]{background-image:linear-gradient(45deg,#ffffff26 25%,#0000 25% 50%,#ffffff26 50% 75%,#0000 75%,#0000)}.am-progress-xs[data-v-68586c4d]{height:.6rem}.am-progress-sm[data-v-68586c4d]{height:1.2rem}.am-progress-cursor[data-v-68586c4d]{cursor:pointer;position:absolute;bottom:-4px;left:50%}.label[data-v-68586c4d]{box-sizing:inherit;text-transform:none;text-align:center;vertical-align:baseline;color:#fff;background-image:none;border:0 solid #0000;border-radius:500rem;width:1px;min-width:0;height:1px;min-height:0;margin-right:5px;font-size:.785714rem;font-weight:700;line-height:1em;transition:background .1s;display:inline-block;overflow:hidden;padding:.4em!important}.PENDING[data-v-68586c4d]{background-color:#3bb4f2;border-color:#3bb4f2}.RUNNING[data-v-68586c4d]{background-color:#5eb95e;border-color:#5eb95e}.FROZEN[data-v-68586c4d]{background-color:#dd514c;border-color:#dd514c}.FINISHED[data-v-68586c4d]{background-color:#0e90d2;border-color:#0e90d2}.PAUSED[data-v-68586c4d]{background-color:#3bb4f2;border-color:#3bb4f2}.tooltip[data-v-68586c4d]{z-index:99;letter-spacing:normal;line-break:auto;text-align:left;text-align:start;text-shadow:none;text-transform:none;white-space:normal;word-break:normal;word-spacing:normal;word-wrap:break-word;opacity:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:.875rem;font-style:normal;font-weight:400;line-height:1.5;text-decoration:none;display:block;position:absolute}.tooltip.in[data-v-68586c4d]{opacity:.9}.tooltip.bs-tether-element-attached-bottom[data-v-68586c4d],.tooltip.tooltip-top[data-v-68586c4d]{margin-top:-3px;padding:5px 0}.tooltip.bs-tether-element-attached-bottom .tooltip-inner[data-v-68586c4d]:before,.tooltip.tooltip-top .tooltip-inner[data-v-68586c4d]:before{content:"";border-width:5px 5px 0;border-top-color:#000;margin-left:-5px;bottom:0;left:50%}.tooltip.bs-tether-element-attached-left[data-v-68586c4d],.tooltip.tooltip-right[data-v-68586c4d]{margin-left:3px;padding:0 5px}.tooltip.bs-tether-element-attached-left .tooltip-inner[data-v-68586c4d]:before,.tooltip.tooltip-right .tooltip-inner[data-v-68586c4d]:before{content:"";border-width:5px 5px 5px 0;border-right-color:#000;margin-top:-5px;top:50%;left:0}.tooltip.bs-tether-element-attached-top[data-v-68586c4d],.tooltip.tooltip-bottom[data-v-68586c4d]{margin-top:3px;padding:5px 0}.tooltip.bs-tether-element-attached-top .tooltip-inner[data-v-68586c4d]:before,.tooltip.tooltip-bottom .tooltip-inner[data-v-68586c4d]:before{content:"";border-width:0 5px 5px;border-bottom-color:#000;margin-left:-5px;top:0;left:50%}.tooltip.bs-tether-element-attached-right[data-v-68586c4d],.tooltip.tooltip-left[data-v-68586c4d]{margin-left:-3px;padding:0 5px}.tooltip.bs-tether-element-attached-right .tooltip-inner[data-v-68586c4d]:before,.tooltip.tooltip-left .tooltip-inner[data-v-68586c4d]:before{content:"";border-width:5px 0 5px 5px;border-left-color:#000;margin-top:-5px;top:50%;right:0}.tooltip-inner[data-v-68586c4d]{color:#fff;text-align:center;background-color:#000;border-radius:.25rem;max-width:200px;padding:3px 8px}.tooltip-inner[data-v-68586c4d]:before{border-style:solid;border-color:#0000;width:0;height:0;position:absolute}
@@ -0,0 +1 @@
1
+ import{E as e,F as t,H as n,It as r,X as i,_ as a,h as o,jt as s,m as c,nt as l,ut as u,v as d,vt as f,x as p}from"./vue.runtime.esm-bundler-DTMOfGWR.js";import{n as m}from"./TheInput-Btyuor_6.js";import{V as h,d as g,l as _}from"./index-D57KOcpK.js";import{i as v}from"./constant-YlOY-yXZ.js";import{t as y}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{d as b,p as x}from"./query-CoPl3fiI.js";e(),i(),f();var S={class:`bg-[#323443]`,"text-gray-200":``,"w-screen":``,"h-screen":``},C={key:0},w={flex:``,"flex-col":``,"justify-center":``,"items-center":``,"w-screen":``,"h-screen":``,"text-xl":``,italic:``},T={key:0},E={key:1},D={flex:``,"flex-col":``,"items-center":``,"justify-center":``,"font-mono":``},O={key:0},k={key:1},A=y(p({__name:`Countdown`,props:{dataSourceUrl:null},setup(e){let i=e,{t:f,locale:p}=h(),y=c(()=>p.value),A=g(v),j=_(),M=l({}),N=l(!1),{data:P,isError:F,error:I}=m(i.dataSourceUrl);return n(P,async()=>{P.value===null||P.value===void 0||(M.value=b(P.value?.contest),A.value=`${M.value.name.getOrDefault(y.value)} | ${v}`,N.value=!0)},{immediate:!0}),(e,n)=>(t(),d(`div`,S,[u(N)?(t(),d(`div`,E,[o(`div`,D,[o(`div`,{"mt-20":``,"text-6xl":``,class:s([u(M).getContestState(u(j)).toString()])},r(u(M).getContestState(u(j))),3),o(`div`,{"mt-20":``,class:s([`text-[320px]`,[u(M).getContestState(u(j)).toString()]])},[u(M).getContestState(u(j))===u(x).PENDING?(t(),d(`div`,O,r(u(M).getContestPendingTime(u(j))),1)):(t(),d(`div`,k,r(u(M).getContestElapsedTime(u(j))),1))],2)])])):(t(),d(`div`,C,[o(`div`,w,[o(`div`,null,r(u(f)(`common.loading`))+`... `,1),u(F)?(t(),d(`div`,T,r(u(I)),1)):a(``,!0)])]))]))}}),[[`__scopeId`,`data-v-3fea17a2`]]);export{A as t};
@@ -0,0 +1 @@
1
+ import{E as e,F as t,It as n,X as r,Z as i,_ as a,a as o,b as s,h as c,nt as l,u,ut as d,v as f,vt as p,x as m}from"./vue.runtime.esm-bundler-DTMOfGWR.js";import{t as h}from"./TheInput-Btyuor_6.js";import{V as g,_,v}from"./index-D57KOcpK.js";import{r as y}from"./query-CoPl3fiI.js";e(),r(),o(),p();var b={key:0,class:`flex flex-col items-center`},x={"w-128":``},S=[`disabled`],C=`Data Source URL`,w=m({__name:`DataSourceInput`,setup(e){let{t:r}=g(),o=y(),p=l(o.value),m=_(),w=v();function T(){w.push(`${m.fullPath}/?data-source=${p.value.trim()}`)}return(e,l)=>{let m=h;return d(o).length===0?(t(),f(`div`,b,[c(`div`,x,[s(m,{modelValue:d(p),"onUpdate:modelValue":l[0]||=e=>i(p)?p.value=e:null,"w-full":``,placeholder:C,autocomplete:`false`,onKeydown:u(T,[`enter`])},null,8,[`modelValue`]),c(`label`,{class:`hidden`,for:`input`},n(C))]),l[1]||=c(`div`,{"py-2":``},null,-1),c(`div`,null,[c(`button`,{"m-3":``,"text-sm":``,btn:``,disabled:d(p).length===0,onClick:T},n(d(r)(`button.go`)),9,S)])])):a(``,!0)}}});export{w as t};
@@ -0,0 +1 @@
1
+ .header h1[data-v-f4512469]{margin-bottom:0}.logo[data-v-f4512469]{position:absolute;top:1.5rem;left:1.5rem}.nav[data-v-f4512469]{box-sizing:border-box;grid-template-columns:auto max-content;width:100%;padding:1rem;display:grid}.nav[data-v-f4512469]>*{margin:auto}.nav img[data-v-f4512469]{margin-bottom:0}.nav a[data-v-f4512469]{cursor:pointer;color:inherit;opacity:.6;outline:none;text-decoration:none;transition:opacity .2s}.nav a[data-v-f4512469]:hover{opacity:1;-webkit-text-decoration-color:inherit;text-decoration-color:inherit}.nav .right[data-v-f4512469]{grid-gap:1.2rem;grid-auto-flow:column;display:grid}.nav .right[data-v-f4512469]>*{margin:auto}
@@ -0,0 +1 @@
1
+ import{E as e,F as t,It as n,V as r,W as i,X as a,b as o,h as s,jt as c,m as l,ut as u,v as d,vt as f,x as p,y as m}from"./vue.runtime.esm-bundler-DTMOfGWR.js";import{B as h,V as g,_,p as v,t as y,z as b}from"./index-D57KOcpK.js";import{t as x}from"./Tooltip-DPDTUI-s.js";import{a as S,c as C,o as w,p as T,r as E,s as D,t as O}from"./constant-YlOY-yXZ.js";import{t as k}from"./_plugin-vue_export-helper-BDNMzG2s.js";a(),e(),f();var A={},j={"mt-8":``,"py-4":``,"md:py-8":``,"lg:py-10":``,"w-full":``,flex:``,"justify-center":``,"items-center":``},M={"text-center":``,"w-full":``},N={"mb-6":``,"w-full":``,flex:``,"flex-wrap":``,"items-center":``,"justify-center":``,"text-gray-900":``,"dark:text-white":``},P={"mr-4":``,"md:mr-6":``},F=[`href`],I={flex:``,"justify-center":``,"items-start":``,"flex-col":``},L={"mr-4":``,"md:mr-6":``},R={flex:``,"justify-center":``,"items-start":``,"flex-col":``},z={"text-sm":``,"text-gray-500":``,"sm:text-center":``,"dark:text-gray-400":``,"w-full":``};function B(e,a){let c=r(`RouterLink`),l=x;return t(),d(`footer`,j,[s(`div`,M,[o(c,{flex:``,"items-center":``,"justify-center":``,"text-2xl":``,"font-semibold":``,"text-gray-900":``,"dark:text-white":``,to:`/`},{default:i(()=>[...a[0]||=[s(`div`,{"i-ion-balloon-sharp":``,"mr-4":``,"h-8":``},null,-1),m(` Get more balloons `,-1)]]),_:1}),a[6]||=s(`p`,{"my-6":``,"text-gray-500":``,"dark:text-gray-400":``,"w-full":``,flex:``,"justify-center":``},` The ICPC Series Competition Leaderboard Visualization Engine. `,-1),s(`ul`,N,[s(`li`,null,[o(c,{to:`/`,"mr-4":``,"md:mr-6":``,"hover:underline":``},{default:i(()=>[...a[1]||=[m(` Home `,-1)]]),_:1})]),s(`li`,null,[s(`div`,P,[o(l,null,{popper:i(()=>[s(`div`,I,[s(`div`,null,`Tag: `+n(`APP_VERSION`in e?e.APP_VERSION:u(O)),1),s(`div`,null,`Sha: `+n(`GITHUB_SHA`in e?e.GITHUB_SHA:u(D)),1)])]),default:i(()=>[s(`a`,{href:`GITHUB_URL`in e?e.GITHUB_URL:u(C),"hover:underline":``,rel:`noreferrer`,target:`_blank`,title:`GitHub`},` GitHub `,8,F)]),_:1})])]),s(`li`,null,[s(`div`,L,[o(l,null,{popper:i(()=>[s(`div`,R,[s(`div`,null,`CDN Host: `+n(`CDN_HOST`in e?e.CDN_HOST:u(E)),1),s(`div`,null,`DATA Host: `+n(`DATA_HOST`in e?e.DATA_HOST:u(S)),1),s(`div`,null,`Data Region: `+n(`DATA_REGION`in e?e.DATA_REGION:u(w)),1)])]),default:i(()=>[a[2]||=s(`a`,{href:`mailto:hi@dup4.com`,"hover:underline":``},` Contact `,-1)]),_:1})])])]),s(`span`,z,[a[4]||=m(`© 2020-PRESENT `,-1),o(c,{to:`/`,"hover:underline":``},{default:i(()=>[...a[3]||=[m(`XCPCIO™`,-1)]]),_:1}),a[5]||=m(`. All Rights Reserved.`,-1)])])])}var V=k(A,[[`render`,B]]);a(),e(),f();var H={class:`right`,"print:op0":``},U=[`title`],W=[`title`],G=[`href`],K=[`href`],q=k(p({__name:`NavBar`,props:{width:null},setup(e){let n=e,{t:a,locale:f}=g(),{y:p}=v(),m=_();function x(){window.scrollTo({top:0,behavior:`smooth`})}async function S(){let e=b,t=e[(e.indexOf(f.value)+1)%e.length];await h(t),f.value=t}let w=l(()=>m.fullPath.startsWith(`/rating`)?`/rating`:`/`);return(e,l)=>{let f=r(`RouterLink`);return t(),d(`header`,{class:c([`header z-40`,[n?.width??``]])},[s(`button`,{title:`Scroll to top`,fixed:``,"bottom-6":``,"right-6":``,"z-100":``,"h-10":``,"w-10":``,"rounded-full":``,transition:``,"duration-300":``,"print:hidden":``,"hover-bg-hex-8883":``,"hover:op100":``,class:c(u(p)>300?`op30`:`op0! pointer-events-none`),onClick:l[0]||=e=>x()},[...l[3]||=[s(`div`,{"i-ri-arrow-up-line":``},null,-1)]],2),s(`nav`,{class:c([`nav`,[n?.width?``:`fixed`]]),"text-xl":``},[l[9]||=s(`div`,{class:`spacer`},null,-1),s(`div`,H,[o(f,{"icon-btn":``,title:u(a)(`button.home`),to:u(w),focusable:`false`},{default:i(()=>[...l[4]||=[s(`div`,{"i-ion-balloon-sharp":``},null,-1)]]),_:1},8,[`title`,`to`]),s(`a`,{"icon-btn":``,title:u(a)(`button.toggle_langs`),onClick:l[1]||=e=>S()},[...l[5]||=[s(`div`,{"i-carbon-language":``},null,-1)]],8,U),s(`a`,{"icon-btn":``,title:u(a)(`button.toggle_dark`),onClick:l[2]||=t=>(`toggleDark`in e?e.toggleDark:u(y))()},[...l[6]||=[s(`div`,{i:`carbon-sun dark:carbon-moon`},null,-1)]],8,W),s(`a`,{"icon-btn":``,rel:`noreferrer`,href:`GITHUB_URL`in e?e.GITHUB_URL:u(C),target:`_blank`,title:`GitHub`},[...l[7]||=[s(`div`,{"i-carbon-logo-github":``},null,-1)]],8,G),s(`a`,{"icon-btn":``,rel:`noreferrer`,href:`XCPCIO_HOME`in e?e.XCPCIO_HOME:u(T),target:`_blank`,title:`GitHub`},[...l[8]||=[s(`div`,{"i-simple-icons-githubsponsors":``},null,-1)]],8,K)])],2)],2)}}}),[[`__scopeId`,`data-v-f4512469`]]);export{V as n,q as t};
@@ -0,0 +1 @@
1
+ .resolver-uncover[data-v-672c0a86]{animation:.3s infinite flashing;-webkit-animation:30ms infinite flashing}.resolver-team-name[data-v-672c0a86]{max-width:calc(100vw - 384px)}.resolver-move[data-v-2833de0b],.resolver-enter-active[data-v-2833de0b],.resolver-leave-active[data-v-2833de0b]{transition:all 2s}.resolver-enter-from[data-v-2833de0b],.resolver-leave-to[data-v-2833de0b]{opacity:0;transform:translate(30px)}.resolver-leave-active[data-v-2833de0b]{position:absolute}
@@ -0,0 +1 @@
1
+ import{E as e,F as t,H as n,It as r,N as i,Ut as a,W as o,X as s,_ as c,a as l,b as u,f as d,h as f,jt as p,m,n as h,nt as g,ut as _,v,vt as y,x as b,y as x,z as S}from"./vue.runtime.esm-bundler-DTMOfGWR.js";import{n as C}from"./TheInput-Btyuor_6.js";import{V as w,d as T,n as E,r as D}from"./index-D57KOcpK.js";import{d as O}from"./constant-YlOY-yXZ.js";import{t as k}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{d as A,g as j,h as M}from"./query-CoPl3fiI.js";import{a as N,c as ee,o as te,s as ne,t as P}from"./rank-Bjo0QJlM.js";var re=a(j(),1),F=class{constructor(){this.id=0,this.team=new N,this.problemIx=0,this.beforeTeamProblemStatistics=new M,this.afterTeamProblemStatistics=new M}},ie=class extends P{constructor(e,t,n){n.sort(ne.compare);let r=n,i=n;{let t=e.unFreezeDurationTimestamp;e.options.submissionTimestampUnit===`millisecond`&&(t*=1e3),e.options.submissionTimestampUnit===`microsecond`&&(t*=1e6),e.options.submissionTimestampUnit===`nanosecond`&&(t*=1e9);let a=re.default.sortedIndex(n.map(e=>e.timestamp),t);r=n.slice(0,a+1),i=n.slice(a,-1)}super(e,t,r),this.finalRank=new P(e,t,n),this.operations=[],this.beforeFreezeSubmissions=r,this.afterFreezeSubmissions=i}buildResolver(){this.buildRank(),this.finalRank.buildRank(),this.teams.forEach(e=>e.rank=e.originalRank),this.finalRank.teams.forEach(e=>e.rank=e.originalRank);for(let e of this.afterFreezeSubmissions){let t=e.teamId,n=e.problemId,r=this.teamsMap.get(t),i=this.contest.problemsMap.get(n);if(r===void 0||i===void 0)continue;let a=r.problemStatisticsMap.get(n);a.pendingCount++,a.totalCount++,a.isAccepted||(a.lastSubmitTimestamp=e.timestamp)}{let e=re.default.cloneDeep(this.teams);for(let t=this.teams.length-1;t>=0;){let n=e[t],r=n.id,i=0,a=-1;for(let e of n.problemStatistics){if(a++,!e.isPending)continue;i++;let t=this.teamsMap.get(r)?.problemStatistics[a],o=this.finalRank.teamsMap.get(r)?.problemStatistics[a],s=new F;s.id=this.operations.length,s.team=this.teamsMap.get(r),s.problemIx=a,s.beforeTeamProblemStatistics=t,s.afterTeamProblemStatistics=o,this.operations.push(s),n.problemStatistics[a]=o,n.calcSolvedData(this.contest.options);break}{let n=t;for(;n>0&&N.compare(e[n],e[n-1])<0;)[e[n],e[n-1]]=[e[n-1],e[n]],n--}i===0&&t--}}}},ae=class extends ie{constructor(e,t,n){super(e,t,n),this.FLASHING_TIME_MS=100,this.ROLLING_TIME_MS=600,this.maxIndex=0,this.currentIndex=0,this.maxOpIndex=0,this.currentOpIndex=0,this.oldRank=-1,this.newRank=-1,this.currentTeamId=``,this.currentProblemIndex=-1,this.problemFlashingEnded=!0,this.duringAnimation=!1,this.startScrollUp=!1,this.startScrollDown=!1}buildResolver(){super.buildResolver(),this.maxIndex=this.teams.length-1,this.currentIndex=this.maxIndex,this.maxOpIndex=this.operations.length-1,this.currentOpIndex=0,this.oldRank=-1,this.newRank=-1,this.currentTeamId=``,this.currentProblemIndex=-1,this.problemFlashingEnded=!0,this.duringAnimation=!1,this.startScrollUp=!1,this.startScrollDown=!1}next(){if(this.duringAnimation)return;if(this.currentOpIndex>this.maxOpIndex){this.currentIndex>0&&this.currentIndex--;return}let e=this.operations[this.currentOpIndex],t=e.problemIx,n=e.team.id,r=this.teamsMap.get(n),i=r.rank;if(this.currentIndex+1>i){this.currentIndex--;return}if(this.currentIndex+1===i){r.problemStatistics[t]=e.afterTeamProblemStatistics,r.calcSolvedData(this.contest.options),this.currentProblemIndex=t,this.currentTeamId=n,this.oldRank=r.rank,this.newRank=this.oldRank;for(let e=this.currentIndex-1;e>=0&&N.compare(r,this.teams[e])<0;e--)this.newRank=this.teams[e].rank;this.currentOpIndex++;{let e=this.oldRank-1;for(;e>=0&&N.compare(this.teams[e],this.teams[e-1])<0;)[this.teams[e],this.teams[e-1]]=[this.teams[e-1],this.teams[e]],this.teams[e].rank=e+1,this.teams[e-1].rank=e,e--}}}rewind(){if(this.duringAnimation||this.currentOpIndex<1)return;this.currentOpIndex--;let e=this.operations[this.currentOpIndex],t=e.problemIx,n=e.team.id,r=this.teamsMap.get(n);r.problemStatistics[t]=e.beforeTeamProblemStatistics,r.calcSolvedData(this.contest.options),this.currentProblemIndex=t,this.currentTeamId=n,this.oldRank=r.rank,this.newRank=this.oldRank;for(let e=this.currentIndex+1;e<=this.maxIndex&&N.compare(r,this.teams[e])>0;e++)this.newRank=this.teams[e].rank;{let e=this.oldRank-1,t=e;for(;e<this.maxIndex&&N.compare(this.teams[e],this.teams[e+1])>0;)[this.teams[e],this.teams[e+1]]=[this.teams[e+1],this.teams[e]],this.teams[e].rank=e+1,this.teams[e+1].rank=e+2,t=e+1,e++;this.currentIndex=t}}};e(),s(),y();var oe={"w-20":``,flex:``,"flex-shrink-0":``,"justify-center":``,"items-center":``},se={flex:``,"flex-1":``,"flex-col":``,"justify-center":``,"items-start":``,"gap-y-3":``},ce={class:`resolver-team-name`,truncate:``,"overflow-hidden":``},le={flex:``,"flex-row":``,"text-sm":``,"items-start":``,"gap-x-2":``},ue={"w-48":``,flex:``,"flex-shrink-0":``,"flex-row":``,"justify-start":``,"items-center":``},de={class:`w-1/3`},fe={class:`w-2/3`},pe=k(b({__name:`ResolverTeamRow`,props:{index:null,team:null,resolver:null},setup(e){let n=e,i=m(()=>n.index),a=m(()=>n.team),o=m(()=>n.resolver),s=g(null),{locale:l}=w(),u=m(()=>l.value);function h(e){return[e.organization?.name.getOrDefault(u.value),e.name.getOrDefault(u.value)].filter(e=>e).join(` - `)}return(e,n)=>(t(),v(`div`,{ref_key:`el`,ref:s,"h-24":``},[(t(),v(`div`,{key:0,"h-24":``,flex:``,"flex-row":``,"gap-x-4":``,"font-mono":``,"text-4xl":``,class:p([_(i)%2==0?`bg-resolver-bg-zero`:`bg-resolver-bg-one`,_(o).duringAnimation&&_(o).currentTeamId===_(a).id?`bg-resolver-selected`:``,!_(o).duringAnimation&&_(i)===_(o).currentIndex?`bg-resolver-selected`:``])},[f(`div`,oe,[f(`div`,null,r(_(a).rank),1)]),f(`div`,se,[f(`div`,ce,r(h(_(a))),1),f(`div`,le,[(t(!0),v(d,null,S(_(a).problemStatistics,(e,n)=>(t(),v(`div`,{key:e.problem.id,class:p([`rounded w-22 h-7 flex justify-center items-center`,[e.isAccepted?`bg-resolver-ac`:``,e.isWrongAnswer?`bg-resolver-wa`:``,e.isPending?`bg-resolver-pending`:``,e.isUnSubmitted?`bg-resolver-untouched`:``,_(o).problemFlashingEnded===!1&&_(i)===_(o).currentIndex&&_(o).currentProblemIndex===n?`resolver-uncover`:``]])},[e.isAccepted?(t(),v(d,{key:0},[x(r(`${e.failedCount+Number(e.isAccepted)}/${Math.floor(e.lastSubmitTimestamp/60)}`),1)],64)):c(``,!0),e.isWrongAnswer?(t(),v(d,{key:1},[x(r(`${e.failedCount}/${Math.floor(e.lastSubmitTimestamp/60)}`),1)],64)):c(``,!0),e.isPending?(t(),v(d,{key:2},[x(r(`${e.failedCount} + ${e.pendingCount}`),1)],64)):c(``,!0),e.isUnSubmitted?(t(),v(d,{key:3},[x(r(e.problem.label),1)],64)):c(``,!0)],2))),128))])]),f(`div`,ue,[f(`div`,de,r(_(a).solvedProblemNum),1),f(`div`,fe,r(_(a).penaltyToMinute),1)])],2))],512))}}),[[`__scopeId`,`data-v-672c0a86`]]);function me(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function he(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var ge={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},_e={duration:.5,overwrite:!1,delay:0},ve,I,L,ye=1e8,R=1/ye,be=Math.PI*2,xe=be/4,Se=0,Ce=Math.sqrt,we=Math.cos,Te=Math.sin,z=function(e){return typeof e==`string`},B=function(e){return typeof e==`function`},Ee=function(e){return typeof e==`number`},De=function(e){return e===void 0},Oe=function(e){return typeof e==`object`},ke=function(e){return e!==!1},Ae=function(){return typeof window<`u`},je=function(e){return B(e)||z(e)},Me=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},V=Array.isArray,Ne=/random\([^)]+\)/g,Pe=/,\s*/g,Fe=/(?:-?\.?\d|\.)+/gi,Ie=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Le=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Re=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ze=/[+-]=-?[.\d]+/,Be=/[^,'"\[\]\s]+/gi,Ve=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,H,He,Ue,We,Ge={},Ke={},qe,Je=function(e){return(Ke=Ct(e,Ge))&&Rr},Ye=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},Xe=function(e,t){return!t&&console.warn(e)},Ze=function(e,t){return e&&(Ge[e]=t)&&Ke&&(Ke[e]=t)||Ge},Qe=function(){return 0},$e={suppressEvents:!0,isStart:!0,kill:!1},et={suppressEvents:!0,kill:!1},tt={suppressEvents:!0},nt={},rt=[],it={},at,ot={},st={},ct=30,lt=[],ut=``,dt=function(e){var t=e[0],n,r;if(Oe(t)||B(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=lt.length;r--&&!lt[r].targetTest(t););n=lt[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new Xn(e[r],n)))||e.splice(r,1);return e},ft=function(e){return e._gsap||dt(on(e))[0]._gsap},pt=function(e,t,n){return(n=e[t])&&B(n)?e[t]():De(n)&&e.getAttribute&&e.getAttribute(t)||n},U=function(e,t){return(e=e.split(`,`)).forEach(t)||e},W=function(e){return Math.round(e*1e5)/1e5||0},G=function(e){return Math.round(e*1e7)/1e7||0},mt=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),n===`+`?e+r:n===`-`?e-r:n===`*`?e*r:e/r},ht=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++r<n;);return r<n},gt=function(){var e=rt.length,t=rt.slice(0),n,r;for(it={},rt.length=0,n=0;n<e;n++)r=t[n],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},_t=function(e){return!!(e._initted||e._startAt||e.add)},vt=function(e,t,n,r){rt.length&&!I&&gt(),e.render(t,n,r||!!(I&&t<0&&_t(e))),rt.length&&!I&&gt()},yt=function(e){var t=parseFloat(e);return(t||t===0)&&(e+``).match(Be).length<2?t:z(e)?e.trim():e},bt=function(e){return e},xt=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},St=function(e){return function(t,n){for(var r in n)r in t||r===`duration`&&e||r===`ease`||(t[r]=n[r])}},Ct=function(e,t){for(var n in t)e[n]=t[n];return e},wt=function e(t,n){for(var r in n)r!==`__proto__`&&r!==`constructor`&&r!==`prototype`&&(t[r]=Oe(n[r])?e(t[r]||(t[r]={}),n[r]):n[r]);return t},Tt=function(e,t){var n={},r;for(r in e)r in t||(n[r]=e[r]);return n},Et=function(e){var t=e.parent||H,n=e.keyframes?St(V(e.keyframes)):xt;if(ke(e.inherit))for(;t;)n(e,t.vars.defaults),t=t.parent||t._dp;return e},Dt=function(e,t){for(var n=e.length,r=n===t.length;r&&n--&&e[n]===t[n];);return n<0},Ot=function(e,t,n,r,i){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var a=e[r],o;if(i)for(o=t[i];a&&a[i]>o;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=a,t.parent=t._dp=e,t},kt=function(e,t,n,r){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var i=t._prev,a=t._next;i?i._next=a:e[n]===t&&(e[n]=a),a?a._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},At=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},jt=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},Mt=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},Nt=function(e,t,n,r){return e._startAt&&(I?e._startAt.revert(et):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},Pt=function e(t){return!t||t._ts&&e(t.parent)},Ft=function(e){return e._repeat?It(e._tTime,e=e.duration()+e._rDelay)*e:0},It=function(e,t){var n=Math.floor(e=G(e/t));return e&&n===e?n-1:n},Lt=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Rt=function(e){return e._end=G(e._start+(e._tDur/Math.abs(e._ts||e._rts||R)||0))},zt=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=G(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Rt(e),n._dirty||jt(n,e)),e},Bt=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=Lt(e.rawTime(),t),(!t._dur||en(0,t.totalDuration(),n)-t._tTime>R)&&t.render(n,!0)),jt(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(n=e;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-R}},Vt=function(e,t,n,r){return t.parent&&At(t),t._start=G((Ee(n)?n:n||e!==H?Zt(e,n,t):e._time)+t._delay),t._end=G(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Ot(e,t,`_first`,`_last`,e._sort?`_start`:0),Gt(t)||(e._recent=t),r||Bt(e,t),e._ts<0&&zt(e,e._tTime),e},Ht=function(e,t){return(Ge.ScrollTrigger||Ye(`scrollTrigger`,t))&&Ge.ScrollTrigger.create(t,e)},Ut=function(e,t,n,r,i){if(ir(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!I&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&at!==Ln.frame)return rt.push(e),e._lazy=[i,r],1},Wt=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},Gt=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},Kt=function(e,t,n,r){var i=e.ratio,a=t<0||!t&&(!e._start&&Wt(e)&&!(!e._initted&&Gt(e))||(e._ts<0||e._dp._ts<0)&&!Gt(e))?0:1,o=e._rDelay,s=0,c,l,u;if(o&&e._repeat&&(s=en(0,e._tDur,t),l=It(s,o),e._yoyo&&l&1&&(a=1-a),l!==It(e._tTime,o)&&(i=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==i||I||r||e._zTime===R||!t&&e._zTime){if(!e._initted&&Ut(e,t,r,n,s))return;for(u=e._zTime,e._zTime=t||(n?R:0),n||=t&&!u,e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=s,c=e._pt;c;)c.r(a,c.d),c=c._next;t<0&&Nt(e,t,n,!0),e._onUpdate&&!n&&Cn(e,`onUpdate`),s&&e._repeat&&!n&&e.parent&&Cn(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&At(e,1),!n&&!I&&(Cn(e,a?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},qt=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if(r.data===`isPause`&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if(r.data===`isPause`&&r._start<t)return r;r=r._prev}},Jt=function(e,t,n,r){var i=e._repeat,a=G(t)||0,o=e._tTime/e._tDur;return o&&!r&&(e._time*=a/e._dur),e._dur=a,e._tDur=i?i<0?1e10:G(a*(i+1)+e._rDelay*i):a,o>0&&!r&&zt(e,e._tTime=e._tDur*o),e.parent&&Rt(e),n||jt(e.parent,e),e},Yt=function(e){return e instanceof Y?jt(e):Jt(e,e._dur)},Xt={_start:0,endTime:Qe,totalDuration:Qe},Zt=function e(t,n,r){var i=t.labels,a=t._recent||Xt,o=t.duration()>=ye?a.endTime(!1):t._dur,s,c,l;return z(n)&&(isNaN(n)||n in i)?(c=n.charAt(0),l=n.substr(-1)===`%`,s=n.indexOf(`=`),c===`<`||c===`>`?(s>=0&&(n=n.replace(/=/,``)),(c===`<`?a._start:a.endTime(a._repeat>=0))+(parseFloat(n.substr(1))||0)*(l?(s<0?a:r).totalDuration()/100:1)):s<0?(n in i||(i[n]=o),i[n]):(c=parseFloat(n.charAt(s-1)+n.substr(s+1)),l&&r&&(c=c/100*(V(r)?r[0]:r).totalDuration()),s>1?e(t,n.substr(0,s-1),r)+c:o+c)):n==null?o:+n},Qt=function(e,t,n){var r=Ee(t[1]),i=(r?2:1)+(e<2?0:1),a=t[i],o,s;if(r&&(a.duration=t[1]),a.parent=n,e){for(o=a,s=n;s&&!(`immediateRender`in o);)o=s.vars.defaults||{},s=ke(s.vars.inherit)&&s.parent;a.immediateRender=ke(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new X(t[0],a,t[i+1])},$t=function(e,t){return e||e===0?t(e):t},en=function(e,t,n){return n<e?e:n>t?t:n},K=function(e,t){return!z(e)||!(t=Ve.exec(e))?``:t[1]},tn=function(e,t,n){return $t(n,function(n){return en(e,t,n)})},nn=[].slice,rn=function(e,t){return e&&Oe(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&Oe(e[0]))&&!e.nodeType&&e!==He},an=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return z(e)&&!t||rn(e,1)?(r=n).push.apply(r,on(e)):n.push(e)})||n},on=function(e,t,n){return L&&!t&&L.selector?L.selector(e):z(e)&&!n&&(Ue||!Rn())?nn.call((t||We).querySelectorAll(e),0):V(e)?an(e,n):rn(e)?nn.call(e,0):e?[e]:[]},sn=function(e){return e=on(e)[0]||Xe(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return on(t,n.querySelectorAll?n:n===e?Xe(`Invalid scope`)||We.createElement(`div`):e)}},cn=function(e){return e.sort(function(){return .5-Math.random()})},ln=function(e){if(B(e))return e;var t=Oe(e)?e:{each:e},n=Gn(t.ease),r=t.from||0,i=parseFloat(t.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,c=t.axis,l=r,u=r;return z(r)?l=u={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(l=r[0],u=r[1]),function(e,o,d){var f=(d||t).length,p=a[f],m,h,g,_,v,y,b,x,S;if(!p){if(S=t.grid===`auto`?0:(t.grid||[1,ye])[1],!S){for(b=-ye;b<(b=d[S++].getBoundingClientRect().left)&&S<f;);S<f&&S--}for(p=a[f]=[],m=s?Math.min(S,f)*l-.5:r%S,h=S===ye?0:s?f*u/S-.5:r/S|0,b=0,x=ye,y=0;y<f;y++)g=y%S-m,_=h-(y/S|0),p[y]=v=c?Math.abs(c===`y`?_:g):Ce(g*g+_*_),v>b&&(b=v),v<x&&(x=v);r===`random`&&cn(p),p.max=b-x,p.min=x,p.v=f=(parseFloat(t.amount)||parseFloat(t.each)*(S>f?f-1:c?c===`y`?f/S:S:Math.max(S,f/S))||0)*(r===`edges`?-1:1),p.b=f<0?i-f:i,p.u=K(t.amount||t.each)||0,n=n&&f<0?Wn(n):n}return f=(p[e]-p.min)/p.max||0,G(p.b+(n?n(f):f)*p.v)+p.u}},un=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=G(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(Ee(n)?0:K(n))}},dn=function(e,t){var n=V(e),r,i;return!n&&Oe(e)&&(r=n=e.radius||ye,e.values?(e=on(e.values),(i=!Ee(e[0]))&&(r*=r)):e=un(e.increment)),$t(t,n?B(e)?function(t){return i=e(t),Math.abs(i-t)<=r?i:t}:function(t){for(var n=parseFloat(i?t.x:t),a=parseFloat(i?t.y:0),o=ye,s=0,c=e.length,l,u;c--;)i?(l=e[c].x-n,u=e[c].y-a,l=l*l+u*u):l=Math.abs(e[c]-n),l<o&&(o=l,s=c);return s=!r||o<=r?e[s]:t,i||s===t||Ee(t)?s:s+K(t)}:un(e))},fn=function(e,t,n,r){return $t(V(e)?!t:n===!0?!!(n=0):!r,function(){return V(e)?e[~~(Math.random()*e.length)]:(n||=1e-5)&&(r=n<1?10**((n+``).length-2):1)&&Math.floor(Math.round((e-n/2+Math.random()*(t-e+n*.99))/n)*n*r)/r})},pn=function(){var e=[...arguments];return function(t){return e.reduce(function(e,t){return t(e)},t)}},mn=function(e,t){return function(n){return e(parseFloat(n))+(t||K(n))}},hn=function(e,t,n){return bn(e,t,0,1,n)},gn=function(e,t,n){return $t(n,function(n){return e[~~t(n)]})},_n=function e(t,n,r){var i=n-t;return V(t)?gn(t,e(0,t.length),n):$t(r,function(e){return(i+(e-t)%i)%i+t})},vn=function e(t,n,r){var i=n-t,a=i*2;return V(t)?gn(t,e(0,t.length-1),n):$t(r,function(e){return e=(a+(e-t)%a)%a||0,t+(e>i?a-e:e)})},yn=function(e){return e.replace(Ne,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(Pe);return fn(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},bn=function(e,t,n,r,i){var a=t-e,o=r-n;return $t(i,function(t){return n+((t-e)/a*o||0)})},xn=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=z(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(V(t)&&!V(n)){for(u=[],d=t.length,f=d-2,l=1;l<d;l++)u.push(e(t[l-1],t[l]));d--,a=function(e){e*=d;var t=Math.min(f,~~e);return u[t](e-t)},r=n}else i||(t=Ct(V(t)?[]:{},t));if(!u){for(c in n)$n.call(s,t,c,`get`,n[c]);a=function(e){return yr(e,s)||(o?t.p:t)}}}return $t(r,a)},Sn=function(e,t,n){var r=e.labels,i=ye,a,o,s;for(a in r)o=r[a]-t,o<0==!!n&&o&&i>(o=Math.abs(o))&&(s=a,i=o);return s},Cn=function(e,t,n){var r=e.vars,i=r[t],a=L,o=e._ctx,s,c,l;if(i)return s=r[t+`Params`],c=r.callbackScope||e,n&&rt.length&&gt(),o&&(L=o),l=s?i.apply(c,s):i.call(c),L=a,l},wn=function(e){return At(e),e.scrollTrigger&&e.scrollTrigger.kill(!!I),e.progress()<1&&Cn(e,`onInterrupt`),e},Tn,En=[],Dn=function(e){if(e)if(e=!e.name&&e.default||e,Ae()||e.headless){var t=e.name,n=B(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:Qe,render:yr,add:$n,kill:xr,modifier:br,rawVars:0},a={targetTest:0,get:0,getSetter:hr,aliases:{},register:0};if(Rn(),e!==r){if(ot[t])return;xt(r,xt(Tt(e,i),a)),Ct(r.prototype,Ct(i,Tt(e,a))),ot[r.prop=t]=r,e.targetTest&&(lt.push(r),nt[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}Ze(t,r),e.register&&e.register(Rr,r,wr)}else En.push(e)},q=255,On={aqua:[0,q,q],lime:[0,q,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,q],navy:[0,0,128],white:[q,q,q],olive:[128,128,0],yellow:[q,q,0],orange:[q,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[q,0,0],pink:[q,192,203],cyan:[0,q,q],transparent:[q,q,q,0]},kn=function(e,t,n){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(n-t)*e*6:e<.5?n:e*3<2?t+(n-t)*(2/3-e)*6:t)*q+.5|0},An=function(e,t,n){var r=e?Ee(e)?[e>>16,e>>8&q,e&q]:0:On.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),On[e])r=On[e];else if(e.charAt(0)===`#`){if(e.length<6&&(i=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e=`#`+i+i+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):``)),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&q,r&q,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&q,e&q]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(Fe),!t)s=r[0]%360/360,c=r[1]/100,l=r[2]/100,a=l<=.5?l*(c+1):l+c-l*c,i=l*2-a,r.length>3&&(r[3]*=1),r[0]=kn(s+1/3,i,a),r[1]=kn(s,i,a),r[2]=kn(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(Ie),n&&r.length<4&&(r[3]=1),r}else r=e.match(Fe)||On.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/q,a=r[1]/q,o=r[2]/q,u=Math.max(i,a,o),d=Math.min(i,a,o),l=(u+d)/2,u===d?s=c=0:(f=u-d,c=l>.5?f/(2-u-d):f/(u+d),s=u===i?(a-o)/f+(a<o?6:0):u===a?(o-i)/f+2:(i-a)/f+4,s*=60),r[0]=~~(s+.5),r[1]=~~(c*100+.5),r[2]=~~(l*100+.5)),n&&r.length<4&&(r[3]=1),r},jn=function(e){var t=[],n=[],r=-1;return e.split(Nn).forEach(function(e){var i=e.match(Le)||[];t.push.apply(t,i),n.push(r+=i.length+1)}),t.c=n,t},Mn=function(e,t,n){var r=``,i=(e+r).match(Nn),a=t?`hsla(`:`rgba(`,o=0,s,c,l,u;if(!i)return e;if(i=i.map(function(e){return(e=An(e,t,1))&&a+(t?e[0]+`,`+e[1]+`%,`+e[2]+`%,`+e[3]:e.join(`,`))+`)`}),n&&(l=jn(e),s=n.c,s.join(r)!==l.c.join(r)))for(c=e.replace(Nn,`1`).split(Le),u=c.length-1;o<u;o++)r+=c[o]+(~s.indexOf(o)?i.shift()||a+`0,0,0,0)`:(l.length?l:i.length?i:n).shift());if(!c)for(c=e.split(Nn),u=c.length-1;o<u;o++)r+=c[o]+i[o];return r+c[u]},Nn=function(){var e=`(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b`,t;for(t in On)e+=`|`+t+`\\b`;return RegExp(e+`)`,`gi`)}(),Pn=/hsl[a]?\(/,Fn=function(e){var t=e.join(` `),n;if(Nn.lastIndex=0,Nn.test(t))return n=Pn.test(t),e[1]=Mn(e[1],n),e[0]=Mn(e[0],n,jn(e[1])),!0},In,Ln=function(){var e=Date.now,t=500,n=33,r=e(),i=r,a=1e3/240,o=a,s=[],c,l,u,d,f,p,m=function u(m){var h=e()-i,g=m===!0,_,v,y,b;if((h>t||h<0)&&(r+=h-n),i+=h,y=i-r,_=y-o,(_>0||g)&&(b=++d.frame,f=y-d.time*1e3,d.time=y/=1e3,o+=_+(_>=a?4:a-_),v=1),g||(c=l(u)),v)for(p=0;p<s.length;p++)s[p](y,f,b,m)};return d={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(e){return f/(1e3/(e||60))},wake:function(){qe&&(!Ue&&Ae()&&(He=Ue=window,We=He.document||{},Ge.gsap=Rr,(He.gsapVersions||=[]).push(Rr.version),Je(Ke||He.GreenSockGlobals||!He.gsap&&He||{}),En.forEach(Dn)),u=typeof requestAnimationFrame<`u`&&requestAnimationFrame,c&&d.sleep(),l=u||function(e){return setTimeout(e,o-d.time*1e3+1|0)},In=1,m(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(c),In=0,l=Qe},lagSmoothing:function(e,r){t=e||1/0,n=Math.min(r||33,t)},fps:function(e){a=1e3/(e||240),o=d.time*1e3+a},add:function(e,t,n){var r=t?function(t,n,i,a){e(t,n,i,a),d.remove(r)}:e;return d.remove(e),s[n?`unshift`:`push`](r),Rn(),r},remove:function(e,t){~(t=s.indexOf(e))&&s.splice(t,1)&&p>=t&&p--},_listeners:s},d}(),Rn=function(){return!In&&Ln.wake()},J={},zn=/^[\d.\-M][\d.\-,\s]/,Bn=/["']/g,Vn=function(e){for(var t={},n=e.substr(1,e.length-3).split(`:`),r=n[0],i=1,a=n.length,o,s,c;i<a;i++)s=n[i],o=i===a-1?s.length:s.lastIndexOf(`,`),c=s.substr(0,o),t[r]=isNaN(c)?c.replace(Bn,``).trim():+c,r=s.substr(o+1).trim();return t},Hn=function(e){var t=e.indexOf(`(`)+1,n=e.indexOf(`)`),r=e.indexOf(`(`,t);return e.substring(t,~r&&r<n?e.indexOf(`)`,n+1):n)},Un=function(e){var t=(e+``).split(`(`),n=J[t[0]];return n&&t.length>1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[Vn(t[1])]:Hn(e).split(`,`).map(yt)):J._CE&&zn.test(e)?J._CE(``,e):n},Wn=function(e){return function(t){return 1-e(1-t)}},Gn=function(e,t){return e&&(B(e)?e:J[e]||Un(e))||t},Kn=function(e,t,n,r){n===void 0&&(n=function(e){return 1-t(1-e)}),r===void 0&&(r=function(e){return e<.5?t(e*2)/2:1-t((1-e)*2)/2});var i={easeIn:t,easeOut:n,easeInOut:r},a;return U(e,function(e){for(var t in J[e]=Ge[e]=i,J[a=e.toLowerCase()]=n,i)J[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=J[e+`.`+t]=i[t]}),i},qn=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},Jn=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/be*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*Te((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:qn(s);return a=be/a,c.config=function(n,r){return e(t,n,r)},c},Yn=function e(t,n){n===void 0&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},i=t===`out`?r:t===`in`?function(e){return 1-r(1-e)}:qn(r);return i.config=function(n){return e(t,n)},i};U(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;Kn(e+`,Power`+(n-1),t?function(e){return e**+n}:function(e){return e},function(e){return 1-(1-e)**n},function(e){return e<.5?(e*2)**n/2:1-((1-e)*2)**n/2})}),J.Linear.easeNone=J.none=J.Linear.easeIn,Kn(`Elastic`,Jn(`in`),Jn(`out`),Jn()),(function(e,t){var n=1/t,r=2*n,i=2.5*n,a=function(a){return a<n?e*a*a:a<r?e*(a-1.5/t)**2+.75:a<i?e*(a-=2.25/t)*a+.9375:e*(a-2.625/t)**2+.984375};Kn(`Bounce`,function(e){return 1-a(1-e)},a)})(7.5625,2.75),Kn(`Expo`,function(e){return 2**(10*(e-1))*e+e*e*e*e*e*e*(1-e)}),Kn(`Circ`,function(e){return-(Ce(1-e*e)-1)}),Kn(`Sine`,function(e){return e===1?1:-we(e*xe)+1}),Kn(`Back`,Yn(`in`),Yn(`out`),Yn()),J.SteppedEase=J.steps=Ge.SteppedEase={config:function(e,t){e===void 0&&(e=1);var n=1/e,r=e+ +!t,i=+!!t,a=1-R;return function(e){return((r*en(0,a,e)|0)+i)*n}}},_e.ease=J[`quad.out`],U(`onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt`,function(e){return ut+=e+`,`+e+`Params,`});var Xn=function(e,t){this.id=Se++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:pt,this.set=t?t.getSetter:hr},Zn=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,Jt(this,+e.duration,1,1),this.data=e.data,L&&(this._ctx=L,L.data.push(this)),In||Ln.wake()}var t=e.prototype;return t.delay=function(e){return e||e===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,Jt(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(Rn(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(zt(this,e),!n._dp||n.parent||Bt(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&Vt(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===R||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),vt(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+Ft(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-e:e)+Ft(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?It(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-R?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?Lt(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-R?0:this._rts,this.totalTime(en(-Math.abs(this._delay),this.totalDuration(),n),t!==!1),Rt(this),Mt(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Rn(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==R&&(this._tTime-=R)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=G(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&Vt(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(ke(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Lt(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=tt);var t=I;return I=e,_t(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),I=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,Yt(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,Yt(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(Zt(this,e),ke(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,ke(t)),this._dur||(this._zTime=-R),this},t.play=function(e,t){return e!=null&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return e!=null&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return e!=null&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-R:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-R,this},t.isActive=function(){var e=this.parent||this._dp,t=this._start,n;return!!(!e||this._ts&&this._initted&&e.isActive()&&(n=e.rawTime(!0))>=t&&n<this.endTime(!0)-R)},t.eventCallback=function(e,t,n){var r=this.vars;return arguments.length>1?(t?(r[e]=t,n&&(r[e+`Params`]=n),e===`onUpdate`&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this,n=t._prom;return new Promise(function(r){var i=B(e)?e:bt,a=function(){var e=t.then;t.then=null,n&&n(),B(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),r(i),t.then=e};t._initted&&t.totalProgress()===1&&t._ts>=0||!t._tTime&&t._ts<0?a():t._prom=a})},t.kill=function(){wn(this)},e}();xt(Zn.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-R,_prom:0,_ps:!1,_rts:1});var Y=function(e){he(t,e);function t(t,n){var r;return t===void 0&&(t={}),r=e.call(this,t)||this,r.labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=ke(t.sortChildren),H&&Vt(t.parent||H,me(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&Ht(me(r),t.scrollTrigger),r}var n=t.prototype;return n.to=function(e,t,n){return Qt(0,arguments,this),this},n.from=function(e,t,n){return Qt(1,arguments,this),this},n.fromTo=function(e,t,n,r){return Qt(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,Et(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new X(e,t,Zt(this,n),1),this},n.call=function(e,t,n){return Vt(this,X.delayedCall(0,e,t),n)},n.staggerTo=function(e,t,n,r,i,a,o){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new X(e,n,Zt(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,Et(n).immediateRender=ke(n.immediateRender),this.staggerTo(e,t,n,r,i,a,o)},n.staggerFromTo=function(e,t,n,r,i,a,o,s){return r.startAt=n,Et(r).immediateRender=ke(r.immediateRender),this.staggerTo(e,t,r,i,a,o,s)},n.render=function(e,t,n){var r=this._time,i=this._dirty?this.totalDuration():this._tDur,a=this._dur,o=e<=0?0:G(e),s=this._zTime<0!=e<0&&(this._initted||!a),c,l,u,d,f,p,m,h,g,_,v,y;if(this!==H&&o>i&&e>=0&&(o=i),o!==this._tTime||n||s){if(r!==this._time&&a&&(o+=this._time-r,e+=this._time-r),c=o,g=this._start,h=this._ts,p=!h,s&&(a||(r=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(v=this._yoyo,f=a+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(f*100+e,t,n);if(c=G(o%f),o===i?(d=this._repeat,c=a):(_=G(o/f),d=~~_,d&&d===_&&(c=a,d--),c>a&&(c=a)),_=It(this._tTime,f),!r&&this._tTime&&_!==d&&this._tTime-_*f-this._dur<=0&&(_=d),v&&d&1&&(c=a-c,y=1),d!==_&&!this._lock){var b=v&&_&1,x=b===(v&&d&1);if(d<_&&(b=!b),r=b?0:o%a?a:o,this._lock=1,this.render(r||(y?0:G(d*f)),t,!a)._lock=0,this._tTime=o,!t&&this.parent&&Cn(this,`onRepeat`),this.vars.repeatRefresh&&!y&&(this.invalidate()._lock=1,_=d),r&&r!==this._time||p!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act||(a=this._dur,i=this._tDur,x&&(this._lock=2,r=b?a:-1e-4,this.render(r,!0),this.vars.repeatRefresh&&!y&&this.invalidate()),this._lock=0,!this._ts&&!p))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(m=qt(this,G(r),G(c)),m&&(o-=c-(c=m._start))),this._tTime=o,this._time=c,this._act=!!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,r=0),!r&&o&&a&&!t&&!_&&(Cn(this,`onStart`),this._tTime!==o))return this;if(c>=r&&e>=0)for(l=this._first;l;){if(u=l._next,(l._act||c>=l._start)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(c-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(c-l._start)*l._ts,t,n),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=-R);break}}l=u}else{l=this._last;for(var S=e<0?e:c;l;){if(u=l._prev,(l._act||S<=l._end)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(S-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(S-l._start)*l._ts,t,n||I&&_t(l)),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=S?-R:R);break}}l=u}}if(m&&!t&&(this.pause(),m.render(c>=r?0:-R)._zTime=c>=r?1:-1,this._ts))return this._start=g,Rt(this),this.render(e,t,n);this._onUpdate&&!t&&Cn(this,`onUpdate`,!0),(o===i&&this._tTime>=this.totalDuration()||!o&&r)&&(g===this._start||Math.abs(h)!==Math.abs(this._ts))&&(this._lock||((e||!a)&&(o===i&&this._ts>0||!o&&this._ts<0)&&At(this,1),!t&&!(e<0&&!r)&&(o||r||!i)&&(Cn(this,o===i&&e>=0?`onComplete`:`onReverseComplete`,!0),this._prom&&!(o<i&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(e,t){var n=this;if(Ee(t)||(t=Zt(this,t,e)),!(e instanceof Zn)){if(V(e))return e.forEach(function(e){return n.add(e,t)}),this;if(z(e))return this.addLabel(e,t);if(B(e))e=X.delayedCall(0,e);else return this}return this===e?this:Vt(this,e,t)},n.getChildren=function(e,t,n,r){e===void 0&&(e=!0),t===void 0&&(t=!0),n===void 0&&(n=!0),r===void 0&&(r=-ye);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof X?t&&i.push(a):(n&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,n)))),a=a._next;return i},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return z(e)?this.removeLabel(e):B(e)?this.killTweensOf(e):(e.parent===this&&kt(this,e),e===this._recent&&(this._recent=this._last),jt(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=G(Ln.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=Zt(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=X.delayedCall(0,t||Qe,n);return r.data=`isPause`,this._hasPause=1,Vt(this,r,Zt(this,e))},n.removePause=function(e){var t=this._first;for(e=Zt(this,e);t;)t._start===e&&t.data===`isPause`&&At(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)nr!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n=[],r=on(e),i=this._first,a=Ee(t),o;i;)i instanceof X?ht(i._targets,r)&&(a?(!nr||i._initted&&i._ts)&&i.globalTime(0)<=t&&i.globalTime(i.totalDuration())>t:!t||i.isActive())&&n.push(i):(o=i.getTweensOf(r,t)).length&&n.push.apply(n,o),i=i._next;return n},n.tweenTo=function(e,t){t||={};var n=this,r=Zt(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,c=i.immediateRender,l,u=X.to(n,xt({ease:t.ease||`none`,lazy:!1,immediateRender:!1,time:r,overwrite:`auto`,duration:t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale())||R,onStart:function(){if(n.pause(),!l){var e=t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale());u._dur!==e&&Jt(u,e,0,1).render(u._time,!0,!0),l=1}o&&o.apply(u,s||[])}},t));return c?u.render(0):u},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,xt({startAt:{time:Zt(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),Sn(this,Zt(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),Sn(this,Zt(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+R)},n.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=G(e);r;)r._start>=n&&(r._start+=e,r._end+=e),r=r._next;if(t)for(a in i)i[a]>=n&&(i[a]+=e);return jt(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){e===void 0&&(e=!0);for(var t=this._first,n;t;)n=t._next,this.remove(t),t=n;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),jt(this)},n.totalDuration=function(e){var t=0,n=this,r=n._last,i=ye,a,o,s;if(arguments.length)return n.timeScale((n._repeat<0?n.duration():n.totalDuration())/(n.reversed()?-e:e));if(n._dirty){for(s=n.parent;r;)a=r._prev,r._dirty&&r.totalDuration(),o=r._start,o>i&&n._sort&&r._ts&&!n._lock?(n._lock=1,Vt(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!s&&!n._dp||s&&s.smoothChildTiming)&&(n._start+=G(o/n._ts),n._time-=o,n._tTime-=o),n.shiftChildren(-o,!1,-1/0),i=0),r._end>t&&r._ts&&(t=r._end),r=a;Jt(n,n===H&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},t.updateRoot=function(e){if(H._ts&&(vt(H,Lt(e,H)),at=Ln.frame),Ln.frame>=ct){ct+=ge.autoSleep||120;var t=H._first;if((!t||!t._ts)&&ge.autoSleep&&Ln._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||Ln.sleep()}}},t}(Zn);xt(Y.prototype,{_lock:0,_hasPause:0,_forcing:0});var Qn=function(e,t,n,r,i,a,o){var s=new wr(this._pt,e,t,0,1,vr,null,i),c=0,l=0,u,d,f,p,m,h,g,_;for(s.b=n,s.e=r,n+=``,r+=``,(g=~r.indexOf(`random(`))&&(r=yn(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match(Re)||[];u=Re.exec(r);)p=u[0],m=r.substring(c,u.index),f?f=(f+1)%5:m.substr(-5)===`rgba(`&&(f=1),p!==d[l++]&&(h=parseFloat(d[l-1])||0,s._pt={_next:s._pt,p:m||l===1?m:`,`,s:h,c:p.charAt(1)===`=`?mt(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=Re.lastIndex);return s.c=c<r.length?r.substring(c,r.length):``,s.fp=o,(ze.test(r)||g)&&(s.e=0),this._pt=s,s},$n=function(e,t,n,r,i,a,o,s,c,l){B(r)&&(r=r(i||0,e,a));var u=e[t],d=n===`get`?B(u)?c?e[t.indexOf(`set`)||!B(e[`get`+t.substr(3)])?t:`get`+t.substr(3)](c):e[t]():u:n,f=B(u)?c?pr:fr:dr,p;if(z(r)&&(~r.indexOf(`random(`)&&(r=yn(r)),r.charAt(1)===`=`&&(p=mt(d,r)+(K(d)||0),(p||p===0)&&(r=p))),!l||d!==r||rr)return!isNaN(d*r)&&r!==``?(p=new wr(this._pt,e,t,+d||0,r-(d||0),typeof u==`boolean`?_r:gr,0,f),c&&(p.fp=c),o&&p.modifier(o,this,e),this._pt=p):(!u&&!(t in e)&&Ye(t,r),Qn.call(this,e,t,d,r,f,s||ge.stringFilter,c))},er=function(e,t,n,r,i){if(B(e)&&(e=cr(e,i,t,n,r)),!Oe(e)||e.style&&e.nodeType||V(e)||Me(e))return z(e)?cr(e,i,t,n,r):e;var a={},o;for(o in e)a[o]=cr(e[o],i,t,n,r);return a},tr=function(e,t,n,r,i,a){var o,s,c,l;if(ot[e]&&(o=new ot[e]).init(i,o.rawVars?t[e]:er(t[e],r,i,a,n),n,r,a)!==!1&&(n._pt=s=new wr(n._pt,i,e,0,1,o.render,o,0,o.priority),n!==Tn))for(c=n._ptLookup[n._targets.indexOf(i)],l=o._props.length;l--;)c[o._props[l]]=s;return o},nr,rr,ir=function e(t,n,r){var i=t.vars,a=i.ease,o=i.startAt,s=i.immediateRender,c=i.lazy,l=i.onUpdate,u=i.runBackwards,d=i.yoyoEase,f=i.keyframes,p=i.autoRevert,m=t._dur,h=t._startAt,g=t._targets,_=t.parent,v=_&&_.data===`nested`?_.vars.targets:g,y=t._overwrite===`auto`&&!ve,b=t.timeline,x=i.easeReverse||d,S,C,w,T,E,D,O,k,A,j,M,N,ee;if(b&&(!f||!a)&&(a=`none`),t._ease=Gn(a,_e.ease),t._rEase=x&&(Gn(x)||t._ease),t._from=!b&&!!i.runBackwards,t._from&&(t.ratio=1),!b||f&&!i.stagger){if(k=g[0]?ft(g[0]).harness:0,N=k&&i[k.prop],S=Tt(i,nt),h&&(h._zTime<0&&h.progress(1),n<0&&u&&s&&!p?h.render(-1,!0):h.revert(u&&m?et:$e),h._lazy=0),o){if(At(t._startAt=X.set(g,xt({data:`isStart`,overwrite:!1,parent:_,immediateRender:!0,lazy:!h&&ke(c),startAt:null,delay:0,onUpdate:l&&function(){return Cn(t,`onUpdate`)},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(I||!s&&!p)&&t._startAt.revert(et),s&&m&&n<=0&&r<=0){n&&(t._zTime=n);return}}else if(u&&m&&!h){if(n&&(s=!1),w=xt({overwrite:!1,data:`isFromStart`,lazy:s&&!h&&ke(c),immediateRender:s,stagger:0,parent:_},S),N&&(w[k.prop]=N),At(t._startAt=X.set(g,w)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(I?t._startAt.revert(et):t._startAt.render(-1,!0)),t._zTime=n,!s)e(t._startAt,R,R);else if(!n)return}for(t._pt=t._ptCache=0,c=m&&ke(c)||c&&!m,C=0;C<g.length;C++){if(E=g[C],O=E._gsap||dt(g)[C]._gsap,t._ptLookup[C]=j={},it[O.id]&&rt.length&&gt(),M=v===g?C:v.indexOf(E),k&&(A=new k).init(E,N||S,t,M,v)!==!1&&(t._pt=T=new wr(t._pt,E,A.name,0,1,A.render,A,0,A.priority),A._props.forEach(function(e){j[e]=T}),A.priority&&(D=1)),!k||N)for(w in S)ot[w]&&(A=tr(w,S,t,M,E,v))?A.priority&&(D=1):j[w]=T=$n.call(t,E,w,`get`,S[w],M,v,0,i.stringFilter);t._op&&t._op[C]&&t.kill(E,t._op[C]),y&&t._pt&&(nr=t,H.killTweensOf(E,j,t.globalTime(n)),ee=!t.parent,nr=0),t._pt&&c&&(it[O.id]=1)}D&&Cr(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!ee,f&&n<=0&&b.render(ye,!0,!0)},ar=function(e,t,n,r,i,a,o,s){var c=(e._pt&&e._ptCache||(e._ptCache={}))[t],l,u,d,f;if(!c)for(c=e._ptCache[t]=[],d=e._ptLookup,f=e._targets.length;f--;){if(l=d[f][t],l&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return rr=1,e.vars[t]=`+=0`,ir(e,o),rr=0,s?Xe(t+` not eligible for reset. Try splitting into individual properties`):1;c.push(l)}for(f=c.length;f--;)u=c[f],l=u._pt||u,l.s=(r||r===0)&&!i?r:l.s+(r||0)+a*l.c,l.c=n-l.s,u.e&&=W(n)+K(u.e),u.b&&=l.s+K(u.b)},or=function(e,t){var n=e[0]?ft(e[0]).harness:0,r=n&&n.aliases,i,a,o,s;if(!r)return t;for(a in i=Ct({},t),r)if(a in i)for(s=r[a].split(`,`),o=s.length;o--;)i[s[o]]=i[a];return i},sr=function(e,t,n,r){var i=t.ease||r||`power1.inOut`,a,o;if(V(t))o=n[e]||(n[e]=[]),t.forEach(function(e,n){return o.push({t:n/(t.length-1)*100,v:e,e:i})});else for(a in t)o=n[a]||(n[a]=[]),a===`ease`||o.push({t:parseFloat(e),v:t[a],e:i})},cr=function(e,t,n,r,i){return B(e)?e.call(t,n,r,i):z(e)&&~e.indexOf(`random(`)?yn(e):e},lr=ut+`repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert`,ur={};U(lr+`,id,stagger,delay,duration,paused,scrollTrigger`,function(e){return ur[e]=1});var X=function(e){he(t,e);function t(t,n,r,i){var a;typeof n==`number`&&(r.duration=n,n=r,r=null),a=e.call(this,i?n:Et(n))||this;var o=a.vars,s=o.duration,c=o.delay,l=o.immediateRender,u=o.stagger,d=o.overwrite,f=o.keyframes,p=o.defaults,m=o.scrollTrigger,h=n.parent||H,g=(V(t)||Me(t)?Ee(t[0]):`length`in n)?[t]:on(t),_,v,y,b,x,S,C,w;if(a._targets=g.length?dt(g):Xe(`GSAP target `+t+` not found. https://gsap.com`,!ge.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=d,f||u||je(s)||je(c)){n=a.vars;var T=n.easeReverse||n.yoyoEase;if(_=a.timeline=new Y({data:`nested`,defaults:p||{},targets:h&&h.data===`nested`?h.vars.targets:g}),_.kill(),_.parent=_._dp=me(a),_._start=0,u||je(s)||je(c)){if(b=g.length,C=u&&ln(u),Oe(u))for(x in u)~lr.indexOf(x)&&(w||={},w[x]=u[x]);for(v=0;v<b;v++)y=Tt(n,ur),y.stagger=0,T&&(y.easeReverse=T),w&&Ct(y,w),S=g[v],y.duration=+cr(s,me(a),v,S,g),y.delay=(+cr(c,me(a),v,S,g)||0)-a._delay,!u&&b===1&&y.delay&&(a._delay=c=y.delay,a._start+=c,y.delay=0),_.to(S,y,C?C(v,S,g):0),_._ease=J.none;_.duration()?s=c=0:a.timeline=0}else if(f){Et(xt(_.vars.defaults,{ease:`none`})),_._ease=Gn(f.ease||n.ease||`none`);var E=0,D,O,k;if(V(f))f.forEach(function(e){return _.to(g,e,`>`)}),_.duration();else{for(x in y={},f)x===`ease`||x===`easeEach`||sr(x,f[x],y,f.easeEach);for(x in y)for(D=y[x].sort(function(e,t){return e.t-t.t}),E=0,v=0;v<D.length;v++)O=D[v],k={ease:O.e,duration:(O.t-(v?D[v-1].t:0))/100*s},k[x]=O.v,_.to(g,k,E),E+=k.duration;_.duration()<s&&_.to({},{duration:s-_.duration()})}}s||a.duration(s=_.duration())}else a.timeline=0;return d===!0&&!ve&&(nr=me(a),H.killTweensOf(g),nr=0),Vt(h,me(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(l||!s&&!f&&a._start===G(h._time)&&ke(l)&&Pt(me(a))&&h.data!==`nested`)&&(a._tTime=-R,a.render(Math.max(0,-c)||0)),m&&Ht(me(a),m),a}var n=t.prototype;return n.render=function(e,t,n){var r=this._time,i=this._tDur,a=this._dur,o=e<0,s=e>i-R&&!o?i:e<R?0:e,c,l,u,d,f,p,m,h;if(!a)Kt(this,e,t,n);else if(s!==this._tTime||!e||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==o||this._lazy){if(c=s,h=this.timeline,this._repeat){if(d=a+this._rDelay,this._repeat<-1&&o)return this.totalTime(d*100+e,t,n);if(c=G(s%d),s===i?(u=this._repeat,c=a):(f=G(s/d),u=~~f,u&&u===f?(c=a,u--):c>a&&(c=a)),p=this._yoyo&&u&1,p&&(c=a-c),f=It(this._tTime,d),c===r&&!n&&this._initted&&u===f)return this._tTime=s,this;u!==f&&this.vars.repeatRefresh&&!p&&!this._lock&&c!==d&&this._initted&&(this._lock=n=1,this.render(G(d*u),!0).invalidate()._lock=0)}if(!this._initted){if(Ut(this,o?e:c,n,t,s))return this._tTime=0,this;if(r!==this._time&&!(n&&this.vars.repeatRefresh&&u!==f))return this;if(a!==this._dur)return this.render(e,t,n)}if(this._rEase){var g=c<r;if(g!==this._inv){var _=g?r:a-r;this._inv=g,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=r,this._invRecip=_?(g?-1:1)/_:0,this._invScale=g?-this.ratio:1-this.ratio,this._invEase=g?this._rEase:this._ease}this.ratio=m=this._invRatio+this._invScale*this._invEase((c-this._invTime)*this._invRecip)}else this.ratio=m=this._ease(c/a);if(this._from&&(this.ratio=m=1-m),this._tTime=s,this._time=c,!this._act&&this._ts&&(this._act=1,this._lazy=0),!r&&s&&!t&&!f&&(Cn(this,`onStart`),this._tTime!==s))return this;for(l=this._pt;l;)l.r(m,l.d),l=l._next;h&&h.render(e<0?e:h._dur*h._ease(c/this._dur),t,n)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(o&&Nt(this,e,t,n),Cn(this,`onUpdate`)),this._repeat&&u!==f&&this.vars.onRepeat&&!t&&this.parent&&Cn(this,`onRepeat`),(s===this._tDur||!s)&&this._tTime===s&&(o&&!this._onUpdate&&Nt(this,e,!0,!0),(e||!a)&&(s===this._tDur&&this._ts>0||!s&&this._ts<0)&&At(this,1),!t&&!(o&&!r)&&(s||r||p)&&(Cn(this,s===i?`onComplete`:`onReverseComplete`,!0),this._prom&&!(s<i&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,n,r,i){In||Ln.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||ir(this,a),o=this._ease(a/this._dur),ar(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(zt(this,0),this.parent||Ot(this._dp,this,`_first`,`_last`,this._dp._sort?`_start`:0),this.render(0))},n.kill=function(e,t){if(t===void 0&&(t=`all`),!e&&(!t||t===`all`))return this._lazy=this._pt=0,this.parent?wn(this):this.scrollTrigger&&this.scrollTrigger.kill(!!I),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,nr&&nr.vars.overwrite!==!0)._first||wn(this),this.parent&&n!==this.timeline.totalDuration()&&Jt(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?on(e):r,a=this._ptLookup,o=this._pt,s,c,l,u,d,f,p;if((!t||t===`all`)&&Dt(r,i))return t===`all`&&(this._pt=0),wn(this);for(s=this._op=this._op||[],t!==`all`&&(z(t)&&(d={},U(t,function(e){return d[e]=1}),t=d),t=or(r,t)),p=r.length;p--;)if(~i.indexOf(r[p]))for(d in c=a[p],t===`all`?(s[p]=t,u=c,l={}):(l=s[p]=s[p]||{},u=t),u)f=c&&c[d],f&&((!(`kill`in f.d)||f.d.kill(d)===!0)&&kt(this,f,`_pt`),delete c[d]),l!==`all`&&(l[d]=1);return this._initted&&!this._pt&&o&&wn(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return Qt(1,arguments)},t.delayedCall=function(e,n,r,i){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},t.fromTo=function(e,t,n){return Qt(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return H.killTweensOf(e,t,n)},t}(Zn);xt(X.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),U(`staggerTo,staggerFrom,staggerFromTo`,function(e){X[e]=function(){var t=new Y,n=nn.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var dr=function(e,t,n){return e[t]=n},fr=function(e,t,n){return e[t](n)},pr=function(e,t,n,r){return e[t](r.fp,n)},mr=function(e,t,n){return e.setAttribute(t,n)},hr=function(e,t){return B(e[t])?fr:De(e[t])&&e.setAttribute?mr:dr},gr=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},_r=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},vr=function(e,t){var n=t._pt,r=``;if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},yr=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},br=function(e,t,n,r){for(var i=this._pt,a;i;)a=i._next,i.p===r&&i.modifier(e,t,n),i=a},xr=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?kt(this,t,`_pt`):t.dep||(n=1),t=r;return!n},Sr=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},Cr=function(e){for(var t=e._pt,n,r,i,a;t;){for(n=t._next,r=i;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:a)?t._prev._next=t:i=t,(t._next=r)?r._prev=t:a=t,t=n}e._pt=i},wr=function(){function e(e,t,n,r,i,a,o,s,c){this.t=t,this.s=r,this.c=i,this.p=n,this.r=a||gr,this.d=o||this,this.set=s||dr,this.pr=c||0,this._next=e,e&&(e._prev=this)}var t=e.prototype;return t.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=Sr,this.m=e,this.mt=n,this.tween=t},e}();U(ut+`parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse`,function(e){return nt[e]=1}),Ge.TweenMax=Ge.TweenLite=X,Ge.TimelineLite=Ge.TimelineMax=Y,H=new Y({sortChildren:!1,defaults:_e,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),ge.stringFilter=Fn;var Tr=[],Er={},Dr=[],Or=0,kr=0,Ar=function(e){return(Er[e]||Dr).map(function(e){return e()})},jr=function(){var e=Date.now(),t=[];e-Or>2&&(Ar(`matchMediaInit`),Tr.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=He.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),Ar(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),Or=e,Ar(`matchMedia`))},Mr=function(){function e(e,t){this.selector=t&&sn(t),this.data=[],this._r=[],this.isReverted=!1,this.id=kr++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){B(e)&&(n=t,t=e,e=B);var r=this,i=function(){var e=L,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=sn(n)),L=r,a=t.apply(r,arguments),B(a)&&r._r.push(a),L=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===B?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=L;L=null,e(this),L=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof X&&!(n.parent&&n.parent.data===`nested`)&&t.push(n)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e?(function(){for(var t=n.getTweens(),r=n.data.length,i;r--;)i=n.data[r],i.data===`isFlip`&&(i.revert(),i.getChildren(!0,!0,!1).forEach(function(e){return t.splice(t.indexOf(e),1)}));for(t.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),r=n.data.length;r--;)i=n.data[r],i instanceof Y?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof X)&&i.revert&&i.revert(e);n._r.forEach(function(t){return t(e,n)}),n.isReverted=!0})():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear(),t)for(var r=Tr.length;r--;)Tr[r].id===this.id&&Tr.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),Nr=function(){function e(e){this.contexts=[],this.scope=e,L&&L.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){Oe(e)||(e={matches:e});var r=new Mr(0,n||this.scope),i=r.conditions={},a,o,s;for(o in L&&!r.selector&&(r.selector=L.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)o===`all`?s=1:(a=He.matchMedia(e[o]),a&&(Tr.indexOf(r)<0&&Tr.push(r),(i[o]=a.matches)&&(s=1),a.addListener?a.addListener(jr):a.addEventListener(`change`,jr)));return s&&t(r,function(e){return r.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),Pr={registerPlugin:function(){[...arguments].forEach(function(e){return Dn(e)})},timeline:function(e){return new Y(e)},getTweensOf:function(e,t){return H.getTweensOf(e,t)},getProperty:function(e,t,n,r){z(e)&&(e=on(e)[0]);var i=ft(e||{}).get,a=n?bt:yt;return n===`native`&&(n=``),e&&(t?a((ot[t]&&ot[t].get||i)(e,t,n,r)):function(t,n,r){return a((ot[t]&&ot[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=on(e),e.length>1){var r=e.map(function(e){return Rr.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=ot[t],o=ft(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;Tn._pt=0,r.init(e,n?t+n:t,Tn,0,[e]),r.render(1,r),Tn._pt&&yr(1,Tn)}:o.set(e,s);return a?c:function(t){return c(e,s,n?t+n:t,o,1)}},quickTo:function(e,t,n){var r,i=Rr.to(e,xt((r={},r[t]=`+=0.1`,r.paused=!0,r.stagger=0,r),n||{})),a=function(e,n,r){return i.resetTo(t,e,n,r)};return a.tween=i,a},isTweening:function(e){return H.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Gn(e.ease,_e.ease)),wt(_e,e||{})},config:function(e){return wt(ge,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,i=e.defaults,a=e.extendTimeline;(r||``).split(`,`).forEach(function(e){return e&&!ot[e]&&!Ge[e]&&Xe(t+` effect requires `+e+` plugin.`)}),st[t]=function(e,t,r){return n(on(e),xt(t||{},i),r)},a&&(Y.prototype[t]=function(e,n,r){return this.add(st[t](e,Oe(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){J[e]=Gn(t)},parseEase:function(e,t){return arguments.length?Gn(e,t):J},getById:function(e){return H.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new Y(e),r,i;for(n.smoothChildTiming=ke(e.smoothChildTiming),H.remove(n),n._dp=0,n._time=n._tTime=H._time,r=H._first;r;)i=r._next,(t||!(!r._dur&&r instanceof X&&r.vars.onComplete===r._targets[0]))&&Vt(n,r,r._start-r._delay),r=i;return Vt(H,n,0),n},context:function(e,t){return e?new Mr(e,t):L},matchMedia:function(e){return new Nr(e)},matchMediaRefresh:function(){return Tr.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||jr()},addEventListener:function(e,t){var n=Er[e]||(Er[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=Er[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:_n,wrapYoyo:vn,distribute:ln,random:fn,snap:dn,normalize:hn,getUnit:K,clamp:tn,splitColor:An,toArray:on,selector:sn,mapRange:bn,pipe:pn,unitize:mn,interpolate:xn,shuffle:cn},install:Je,effects:st,ticker:Ln,updateRoot:Y.updateRoot,plugins:ot,globalTimeline:H,core:{PropTween:wr,globals:Ze,Tween:X,Timeline:Y,Animation:Zn,getCache:ft,_removeLinkedListItem:kt,reverting:function(){return I},context:function(e){return e&&L&&(L.data.push(e),e._ctx=L),L},suppressOverwrites:function(e){return ve=e}}};U(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return Pr[e]=X[e]}),Ln.add(Y.updateRoot),Tn=Pr.to({},{duration:0});var Fr=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},Ir=function(e,t){var n=e._targets,r,i,a;for(r in t)for(i=n.length;i--;)a=e._ptLookup[i][r],(a&&=a.d)&&(a._pt&&(a=Fr(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},Lr=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(z(n)&&(r={},U(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}Ir(e,n)}}}},Rr=Pr.registerPlugin({name:`attr`,init:function(e,t,n,r,i){var a,o,s;for(a in this.tween=n,t)s=e.getAttribute(a)||``,o=this.add(e,`setAttribute`,(s||0)+``,t[a],r,i,0,0,a),o.op=a,o.b=s,this._props.push(a)},render:function(e,t){for(var n=t._pt;n;)I?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:`endArray`,headless:1,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},Lr(`roundProps`,un),Lr(`modifiers`),Lr(`snap`,dn))||Pr;X.version=Y.version=Rr.version=`3.15.0`,qe=1,Ae()&&Rn(),J.Power0,J.Power1,J.Power2,J.Power3,J.Power4,J.Linear,J.Quad,J.Cubic,J.Quart,J.Quint,J.Strong,J.Elastic,J.Back,J.SteppedEase,J.Bounce,J.Sine,J.Expo,J.Circ;var zr,Br,Vr,Hr,Ur,Wr,Gr,Kr=function(){return typeof window<`u`},qr={},Jr=180/Math.PI,Yr=Math.PI/180,Xr=Math.atan2,Zr=1e8,Qr=/([A-Z])/g,$r=/(left|right|width|margin|padding|x)/i,ei=/[\s,\(]\S/,ti={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},ni=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},ri=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},ii=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},ai=function(e,t){return t.set(t.t,t.p,e===1?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},oi=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},si=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},ci=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},li=function(e,t,n){return e.style[t]=n},ui=function(e,t,n){return e.style.setProperty(t,n)},di=function(e,t,n){return e._gsap[t]=n},fi=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},pi=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},mi=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},Z=`transform`,Q=Z+`Origin`,hi=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in qr&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=ti[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=Pi(i,e)}):this.tfm[t]=o.x?o[t]:Pi(i,t),t===Q&&(this.tfm.zOrigin=o.zOrigin);else return ti.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(Z)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push(Q,n,``)),t=Z}(a||n)&&this.props.push(t,n,a[t])},gi=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},_i=function(){var e=this.props,t=this.target,n=t.style,r=t._gsap,i,a;for(i=0;i<e.length;i+=3)e[i+1]?e[i+1]===2?t[e[i]](e[i+2]):t[e[i]]=e[i+2]:e[i+2]?n[e[i]]=e[i+2]:n.removeProperty(e[i].substr(0,2)===`--`?e[i]:e[i].replace(Qr,`-$1`).toLowerCase());if(this.tfm){for(a in this.tfm)r[a]=this.tfm[a];r.svg&&(r.renderTransform(),t.setAttribute(`data-svg-origin`,this.svgo||``)),i=Gr(),(!i||!i.isStart)&&!n[Z]&&(gi(n),r.zOrigin&&n[Q]&&(n[Q]+=` `+r.zOrigin+`px`,r.zOrigin=0,r.renderTransform()),r.uncache=1)}},vi=function(e,t){var n={target:e,props:[],revert:_i,save:hi};return e._gsap||Rr.core.getCache(e),t&&e.style&&e.nodeType&&t.split(`,`).forEach(function(e){return n.save(e)}),n},yi,bi=function(e,t){var n=Br.createElementNS?Br.createElementNS((t||`http://www.w3.org/1999/xhtml`).replace(/^https/,`http`),e):Br.createElement(e);return n&&n.style?n:Br.createElement(e)},xi=function e(t,n,r){var i=getComputedStyle(t);return i[n]||i.getPropertyValue(n.replace(Qr,`-$1`).toLowerCase())||i.getPropertyValue(n)||!r&&e(t,Ci(n)||n,1)||``},Si=`O,Moz,ms,Ms,Webkit`.split(`,`),Ci=function(e,t,n){var r=(t||Ur).style,i=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(Si[i]+e in r););return i<0?null:(i===3?`ms`:i>=0?Si[i]:``)+e},wi=function(){Kr()&&window.document&&(zr=window,Br=zr.document,Vr=Br.documentElement,Ur=bi(`div`)||{style:{}},bi(`div`),Z=Ci(Z),Q=Z+`Origin`,Ur.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,yi=!!Ci(`perspective`),Gr=Rr.core.reverting,Hr=1)},Ti=function(e){var t=e.ownerSVGElement,n=bi(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),Vr.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),Vr.removeChild(n),i},Ei=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},Di=function(e){var t,n;try{t=e.getBBox()}catch{t=Ti(e),n=1}return t&&(t.width||t.height)||n||(t=Ti(e)),t&&!t.width&&!t.x&&!t.y?{x:+Ei(e,[`x`,`cx`,`x1`])||0,y:+Ei(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},Oi=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Di(e))},ki=function(e,t){if(t){var n=e.style,r;t in qr&&t!==Q&&(t=Z),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(Qr,`-$1`).toLowerCase())):n.removeAttribute(t)}},Ai=function(e,t,n,r,i,a){var o=new wr(e._pt,t,n,0,1,a?ci:si);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},ji={deg:1,rad:1,turn:1},Mi={grid:1,flex:1},Ni=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=Ur.style,c=$r.test(n),l=t.tagName.toLowerCase()===`svg`,u=(l?`client`:`offset`)+(c?`Width`:`Height`),d=100,f=i===`px`,p=i===`%`,m,h,g,_;if(i===o||!a||ji[i]||ji[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&Oi(t),(p||o===`%`)&&(qr[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],W(p?a/m*d:a/100*m);if(s[c?`width`:`height`]=d+(f?o:i),h=i!==`rem`&&~n.indexOf(`adius`)||i===`em`&&t.appendChild&&!l?t:t.parentNode,_&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===Br||!h.appendChild)&&(h=Br.body),g=h._gsap,g&&p&&g.width&&c&&g.time===Ln.time&&!g.uncache)return W(a/g.width*d);if(p&&(n===`height`||n===`width`)){var v=t.style[n];t.style[n]=d+i,m=t[u],v?t.style[n]=v:ki(t,n)}else (p||o===`%`)&&!Mi[xi(h,`display`)]&&(s.position=xi(t,`position`)),h===t&&(s.position=`static`),h.appendChild(Ur),m=Ur[u],h.removeChild(Ur),s.position=`absolute`;return c&&p&&(g=ft(h),g.time=Ln.time,g.width=h[u]),W(f?m*a/d:m&&a?d/m*a:0)},Pi=function(e,t,n,r){var i;return Hr||wi(),t in ti&&t!==`transform`&&(t=ti[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),qr[t]&&t!==`transform`?(i=Ki(e,r),i=t===`transformOrigin`?i.svg?i.origin:qi(xi(e,Q))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=zi[t]&&zi[t](e,t,n)||xi(e,t)||pt(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?Ni(e,t,i,n)+n:i},Fi=function(e,t,n,r){if(!n||n===`none`){var i=Ci(t,e,1),a=i&&xi(e,i,1);a&&a!==n?(t=i,n=a):t===`borderColor`&&(n=xi(e,`borderTopColor`))}var o=new wr(this._pt,e.style,t,0,1,vr),s=0,c=0,l,u,d,f,p,m,h,g,_,v,y,b;if(o.b=n,o.e=r,n+=``,r+=``,r.substring(0,6)===`var(--`&&(r=xi(e,r.substring(4,r.indexOf(`)`)))),r===`auto`&&(m=e.style[t],e.style[t]=r,r=xi(e,t)||r,m?e.style[t]=m:ki(e,t)),l=[n,r],Fn(l),n=l[0],r=l[1],d=n.match(Le)||[],b=r.match(Le)||[],b.length){for(;u=Le.exec(r);)h=u[0],_=r.substring(s,u.index),p?p=(p+1)%5:(_.substr(-5)===`rgba(`||_.substr(-5)===`hsla(`)&&(p=1),h!==(m=d[c++]||``)&&(f=parseFloat(m)||0,y=m.substr((f+``).length),h.charAt(1)===`=`&&(h=mt(f,h)+y),g=parseFloat(h),v=h.substr((g+``).length),s=Le.lastIndex-v.length,v||(v=v||ge.units[t]||y,s===r.length&&(r+=v,o.e+=v)),y!==v&&(f=Ni(e,t,m,v)||0),o._pt={_next:o._pt,p:_||c===1?_:`,`,s:f,c:g-f,m:p&&p<4||t===`zIndex`?Math.round:0});o.c=s<r.length?r.substring(s,r.length):``}else o.r=t===`display`&&r===`none`?ci:si;return ze.test(r)&&(o.e=0),this._pt=o,o},Ii={top:`0%`,bottom:`100%`,left:`0%`,right:`100%`,center:`50%`},Li=function(e){var t=e.split(` `),n=t[0],r=t[1]||`50%`;return(n===`top`||n===`bottom`||r===`left`||r===`right`)&&(e=n,n=r,r=e),t[0]=Ii[n]||n,t[1]=Ii[r]||r,t.join(` `)},Ri=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var n=t.t,r=n.style,i=t.u,a=n._gsap,o,s,c;if(i===`all`||i===!0)r.cssText=``,s=1;else for(i=i.split(`,`),c=i.length;--c>-1;)o=i[c],qr[o]&&(s=1,o=o===`transformOrigin`?Q:Z),ki(n,o);s&&(ki(n,Z),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,Ki(n,1),a.uncache=1,gi(r)))}},zi={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new wr(e._pt,t,n,0,0,Ri);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},Bi=[1,0,0,1,0,0],Vi={},Hi=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},Ui=function(e){var t=xi(e,Z);return Hi(t)?Bi:t.substr(7).match(Ie).map(W)},Wi=function(e,t){var n=e._gsap||ft(e),r=e.style,i=Ui(e),a,o,s,c;return n.svg&&e.getAttribute(`transform`)?(s=e.transform.baseVal.consolidate().matrix,i=[s.a,s.b,s.c,s.d,s.e,s.f],i.join(`,`)===`1,0,0,1,0,0`?Bi:i):(i===Bi&&!e.offsetParent&&e!==Vr&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,Vr.appendChild(e)),i=Ui(e),s?r.display=s:ki(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):Vr.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},Gi=function(e,t,n,r,i,a){var o=e._gsap,s=i||Wi(e,!0),c=o.xOrigin||0,l=o.yOrigin||0,u=o.xOffset||0,d=o.yOffset||0,f=s[0],p=s[1],m=s[2],h=s[3],g=s[4],_=s[5],v=t.split(` `),y=parseFloat(v[0])||0,b=parseFloat(v[1])||0,x,S,C,w;n?s!==Bi&&(S=f*h-p*m)&&(C=h/S*y+b*(-m/S)+(m*_-h*g)/S,w=y*(-p/S)+f/S*b-(f*_-p*g)/S,y=C,b=w):(x=Di(e),y=x.x+(~v[0].indexOf(`%`)?y/100*x.width:y),b=x.y+(~(v[1]||v[0]).indexOf(`%`)?b/100*x.height:b)),r||r!==!1&&o.smooth?(g=y-c,_=b-l,o.xOffset=u+(g*f+_*m)-g,o.yOffset=d+(g*p+_*h)-_):o.xOffset=o.yOffset=0,o.xOrigin=y,o.yOrigin=b,o.smooth=!!r,o.origin=t,o.originIsAbsolute=!!n,e.style[Q]=`0px 0px`,a&&(Ai(a,o,`xOrigin`,c,y),Ai(a,o,`yOrigin`,l,b),Ai(a,o,`xOffset`,u,o.xOffset),Ai(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},Ki=function(e,t){var n=e._gsap||new Xn(e);if(`x`in n&&!t&&!n.uncache)return n;var r=e.style,i=n.scaleX<0,a=`px`,o=`deg`,s=getComputedStyle(e),c=xi(e,Q)||`0`,l=u=d=m=h=g=_=v=y=0,u,d,f=p=1,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,ee,te,ne,P,re,F,ie;return n.svg=!!(e.getCTM&&Oi(e)),s.translate&&((s.translate!==`none`||s.scale!==`none`||s.rotate!==`none`)&&(r[Z]=(s.translate===`none`?``:`translate3d(`+(s.translate+` 0 0`).split(` `).slice(0,3).join(`, `)+`) `)+(s.rotate===`none`?``:`rotate(`+s.rotate+`) `)+(s.scale===`none`?``:`scale(`+s.scale.split(` `).join(`,`)+`) `)+(s[Z]===`none`?``:s[Z])),r.scale=r.rotate=r.translate=`none`),S=Wi(e,n.svg),n.svg&&(n.uncache?(N=e.getBBox(),c=n.xOrigin-N.x+`px `+(n.yOrigin-N.y)+`px`,M=``):M=!t&&e.getAttribute(`data-svg-origin`),Gi(e,M||c,!!M||n.originIsAbsolute,n.smooth!==!1,S)),b=n.xOrigin||0,x=n.yOrigin||0,S!==Bi&&(E=S[0],D=S[1],O=S[2],k=S[3],l=A=S[4],u=j=S[5],S.length===6?(f=Math.sqrt(E*E+D*D),p=Math.sqrt(k*k+O*O),m=E||D?Xr(D,E)*Jr:0,_=O||k?Xr(O,k)*Jr+m:0,_&&(p*=Math.abs(Math.cos(_*Yr))),n.svg&&(l-=b-(b*E+x*O),u-=x-(b*D+x*k))):(ie=S[6],re=S[7],te=S[8],ne=S[9],P=S[10],F=S[11],l=S[12],u=S[13],d=S[14],C=Xr(ie,P),h=C*Jr,C&&(w=Math.cos(-C),T=Math.sin(-C),M=A*w+te*T,N=j*w+ne*T,ee=ie*w+P*T,te=A*-T+te*w,ne=j*-T+ne*w,P=ie*-T+P*w,F=re*-T+F*w,A=M,j=N,ie=ee),C=Xr(-O,P),g=C*Jr,C&&(w=Math.cos(-C),T=Math.sin(-C),M=E*w-te*T,N=D*w-ne*T,ee=O*w-P*T,F=k*T+F*w,E=M,D=N,O=ee),C=Xr(D,E),m=C*Jr,C&&(w=Math.cos(C),T=Math.sin(C),M=E*w+D*T,N=A*w+j*T,D=D*w-E*T,j=j*w-A*T,E=M,A=N),h&&Math.abs(h)+Math.abs(m)>359.9&&(h=m=0,g=180-g),f=W(Math.sqrt(E*E+D*D+O*O)),p=W(Math.sqrt(j*j+ie*ie)),C=Xr(A,j),_=Math.abs(C)>2e-4?C*Jr:0,y=F?1/(F<0?-F:F):0),n.svg&&(M=e.getAttribute(`transform`),n.forceCSS=e.setAttribute(`transform`,``)||!Hi(xi(e,Z)),M&&e.setAttribute(`transform`,M))),Math.abs(_)>90&&Math.abs(_)<270&&(i?(f*=-1,_+=m<=0?180:-180,m+=m<=0?180:-180):(p*=-1,_+=_<=0?180:-180)),t||=n.uncache,n.x=l-((n.xPercent=l&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-l)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+a,n.y=u-((n.yPercent=u&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-u)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+a,n.z=d+a,n.scaleX=W(f),n.scaleY=W(p),n.rotation=W(m)+o,n.rotationX=W(h)+o,n.rotationY=W(g)+o,n.skewX=_+o,n.skewY=v+o,n.transformPerspective=y+a,(n.zOrigin=parseFloat(c.split(` `)[2])||!t&&n.zOrigin||0)&&(r[Q]=qi(c)),n.xOffset=n.yOffset=0,n.force3D=ge.force3D,n.renderTransform=n.svg?ea:yi?$i:Yi,n.uncache=0,n},qi=function(e){return(e=e.split(` `))[0]+` `+e[1]},Ji=function(e,t,n){var r=K(t);return W(parseFloat(t)+parseFloat(Ni(e,`x`,n+`px`,r)))+r},Yi=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,$i(e,t)},Xi=`0deg`,Zi=`0px`,Qi=`) `,$i=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,c=n.rotation,l=n.rotationY,u=n.rotationX,d=n.skewX,f=n.skewY,p=n.scaleX,m=n.scaleY,h=n.transformPerspective,g=n.force3D,_=n.target,v=n.zOrigin,y=``,b=g===`auto`&&e&&e!==1||g===!0;if(v&&(u!==Xi||l!==Xi)){var x=parseFloat(l)*Yr,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*Yr,w=Math.cos(x),a=Ji(_,a,S*w*-v),o=Ji(_,o,-Math.sin(x)*-v),s=Ji(_,s,C*w*-v+v)}h!==Zi&&(y+=`perspective(`+h+Qi),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==Zi||o!==Zi||s!==Zi)&&(y+=s!==Zi||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+Qi),c!==Xi&&(y+=`rotate(`+c+Qi),l!==Xi&&(y+=`rotateY(`+l+Qi),u!==Xi&&(y+=`rotateX(`+u+Qi),(d!==Xi||f!==Xi)&&(y+=`skew(`+d+`, `+f+Qi),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+Qi),_.style[Z]=y||`translate(0, 0)`},ea=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.rotation,c=n.skewX,l=n.skewY,u=n.scaleX,d=n.scaleY,f=n.target,p=n.xOrigin,m=n.yOrigin,h=n.xOffset,g=n.yOffset,_=n.forceCSS,v=parseFloat(a),y=parseFloat(o),b,x,S,C,w;s=parseFloat(s),c=parseFloat(c),l=parseFloat(l),l&&(l=parseFloat(l),c+=l,s+=l),s||c?(s*=Yr,c*=Yr,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=Yr,w=Math.tan(c-l),w=Math.sqrt(1+w*w),S*=w,C*=w,l&&(w=Math.tan(l),w=Math.sqrt(1+w*w),b*=w,x*=w)),b=W(b),x=W(x),S=W(S),C=W(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=Ni(f,`x`,a,`px`),y=Ni(f,`y`,o,`px`)),(p||m||h||g)&&(v=W(v+p-(p*b+m*S)+h),y=W(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=W(v+r/100*w.width),y=W(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[Z]=w)},ta=function(e,t,n,r,i){var a=360,o=z(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?Jr:1)-r,c=r+s+`deg`,l,u;return o&&(l=i.split(`_`)[1],l===`short`&&(s%=a,s!==s%(a/2)&&(s+=s<0?a:-a)),l===`cw`&&s<0?s=(s+a*Zr)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*Zr)%a-~~(s/a)*a)),e._pt=u=new wr(e._pt,t,n,r,s,ri),u.e=c,u.u=`deg`,e._props.push(n),u},na=function(e,t){for(var n in t)e[n]=t[n];return e},ra=function(e,t,n){var r=na({},n._gsap),i=`perspective,force3D,transformOrigin,svgOrigin`,a=n.style,o,s,c,l,u,d,f,p;for(s in r.svg?(c=n.getAttribute(`transform`),n.setAttribute(`transform`,``),a[Z]=t,o=Ki(n,1),ki(n,Z),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[Z],a[Z]=t,o=Ki(n,1),a[Z]=c),qr)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=K(c),p=K(l),u=f===p?parseFloat(c):Ni(n,s,c,p),d=parseFloat(l),e._pt=new wr(e._pt,o,s,u,d-u,ni),e._pt.u=p||0,e._props.push(s));na(o,r)};U(`padding,margin,Width,Radius`,function(e,t){var n=`Top`,r=`Right`,i=`Bottom`,a=`Left`,o=(t<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map(function(n){return t<2?e+n:`border`+n+e});zi[t>1?`border`+e:e]=function(e,t,n,r,i){var a,s;if(arguments.length<4)return a=o.map(function(t){return Pi(e,t,n)}),s=a.join(` `),s.split(a[0]).length===5?a[0]:s;a=(r+``).split(` `),s={},o.forEach(function(e,t){return s[e]=a[t]=a[t]||a[(t-1)/2|0]}),e.init(t,s,i)}});var ia={name:`css`,register:wi,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var a=this._props,o=e.style,s=n.vars.startAt,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w;for(m in Hr||wi(),this.styles=this.styles||vi(e),C=this.styles.props,this.tween=n,t)if(m!==`autoRound`&&(l=t[m],!(ot[m]&&tr(m,t,n,r,e,i)))){if(f=typeof l,p=zi[m],f===`function`&&(l=l.call(n,r,e,i),f=typeof l),f===`string`&&~l.indexOf(`random(`)&&(l=yn(l)),p)p(this,e,m,l,n)&&(S=1);else if(m.substr(0,2)===`--`)c=(getComputedStyle(e).getPropertyValue(m)+``).trim(),l+=``,Nn.lastIndex=0,Nn.test(c)||(h=K(c),g=K(l),g?h!==g&&(c=Ni(e,m,c,g)+g):h&&(l+=h)),this.add(o,`setProperty`,c,l,r,i,0,0,m),a.push(m),C.push(m,0,o[m]);else if(f!==`undefined`){if(s&&m in s?(c=typeof s[m]==`function`?s[m].call(n,r,e,i):s[m],z(c)&&~c.indexOf(`random(`)&&(c=yn(c)),K(c+``)||c===`auto`||(c+=ge.units[m]||K(Pi(e,m))||``),(c+``).charAt(1)===`=`&&(c=Pi(e,m))):c=Pi(e,m),d=parseFloat(c),_=f===`string`&&l.charAt(1)===`=`&&l.substr(0,2),_&&(l=l.substr(2)),u=parseFloat(l),m in ti&&(m===`autoAlpha`&&(d===1&&Pi(e,`visibility`)===`hidden`&&u&&(d=0),C.push(`visibility`,0,o.visibility),Ai(this,o,`visibility`,d?`inherit`:`hidden`,u?`inherit`:`hidden`,!u)),m!==`scale`&&m!==`transform`&&(m=ti[m],~m.indexOf(`,`)&&(m=m.split(`,`)[0]))),v=m in qr,v){if(this.styles.save(m),w=l,f===`string`&&l.substring(0,6)===`var(--`){if(l=xi(e,l.substring(4,l.indexOf(`)`))),l.substring(0,5)===`calc(`){var T=e.style.perspective;e.style.perspective=l,l=xi(e,`perspective`),T?e.style.perspective=T:ki(e,`perspective`)}u=parseFloat(l)}if(y||(b=e._gsap,b.renderTransform&&!t.parseTransform||Ki(e,t.parseTransform),x=t.smoothOrigin!==!1&&b.smooth,y=this._pt=new wr(this._pt,o,Z,0,1,b.renderTransform,b,0,-1),y.dep=1),m===`scale`)this._pt=new wr(this._pt,b,`scaleY`,b.scaleY,(_?mt(b.scaleY,_+u):u)-b.scaleY||0,ni),this._pt.u=0,a.push(`scaleY`,m),m+=`X`;else if(m===`transformOrigin`){C.push(Q,0,o[Q]),l=Li(l),b.svg?Gi(e,l,0,x,0,this):(g=parseFloat(l.split(` `)[2])||0,g!==b.zOrigin&&Ai(this,b,`zOrigin`,b.zOrigin,g),Ai(this,o,m,qi(c),qi(l)));continue}else if(m===`svgOrigin`){Gi(e,l,1,x,0,this);continue}else if(m in Vi){ta(this,b,m,d,_?mt(d,_+l):l);continue}else if(m===`smoothOrigin`){Ai(this,b,`smooth`,b.smooth,l);continue}else if(m===`force3D`){b[m]=l;continue}else if(m===`transform`){ra(this,l,e);continue}}else m in o||(m=Ci(m)||m);if(v||(u||u===0)&&(d||d===0)&&!ei.test(l)&&m in o)h=(c+``).substr((d+``).length),u||=0,g=K(l)||(m in ge.units?ge.units[m]:h),h!==g&&(d=Ni(e,m,c,g)),this._pt=new wr(this._pt,v?b:o,m,d,(_?mt(d,_+u):u)-d,!v&&(g===`px`||m===`zIndex`)&&t.autoRound!==!1?oi:ni),this._pt.u=g||0,v&&w!==l?(this._pt.b=c,this._pt.e=w,this._pt.r=ai):h!==g&&g!==`%`&&(this._pt.b=c,this._pt.r=ii);else if(m in o)Fi.call(this,e,m,c,_?_+l:l);else if(m in e)this.add(e,m,c||e[m],_?_+l:l,r,i);else if(m!==`parseTransform`){Ye(m,l);continue}v||(m in o?C.push(m,0,o[m]):typeof e[m]==`function`?C.push(m,2,e[m]()):C.push(m,1,c||e[m])),a.push(m)}}S&&Cr(this)},render:function(e,t){if(t.tween._time||!Gr())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:Pi,aliases:ti,getSetter:function(e,t,n){var r=ti[t];return r&&r.indexOf(`,`)<0&&(t=r),t in qr&&t!==Q&&(e._gsap.x||Pi(e,`x`))?n&&Wr===n?t===`scale`?fi:di:(Wr=n||{})&&(t===`scale`?pi:mi):e.style&&!De(e.style[t])?li:~t.indexOf(`-`)?ui:hr(e,t)},core:{_removeProperty:ki,_getMatrix:Wi}};Rr.utils.checkPrefix=Ci,Rr.core.getStyleSaver=vi,(function(e,t,n,r){var i=U(e+`,`+t+`,`+n,function(e){qr[e]=1});U(t,function(e){ge.units[e]=`deg`,Vi[e]=1}),ti[i[13]]=e+`,`+t,U(r,function(e){var t=e.split(`:`);ti[t[1]]=i[t[0]]})})(`x,y,z,scale,scaleX,scaleY,xPercent,yPercent`,`rotation,rotationX,rotationY,skewX,skewY`,`transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective`,`0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY`),U(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){ge.units[e]=`px`}),Rr.registerPlugin(ia);var aa=Rr.registerPlugin(ia)||Rr;aa.core.Tween;var $,oa,sa,ca,la,ua,da,fa,pa=function(){return typeof window<`u`},ma=function(){return $||pa()&&($=window.gsap)&&$.registerPlugin&&$},ha=function(e){return typeof e==`string`},ga=function(e){return typeof e==`function`},_a=function(e,t){var n=t===`x`?`Width`:`Height`,r=`scroll`+n,i=`client`+n;return e===sa||e===ca||e===la?Math.max(ca[r],la[r])-(sa[`inner`+n]||ca[i]||la[i]):e[r]-e[`offset`+n]},va=function(e,t){var n=`scroll`+(t===`x`?`Left`:`Top`);return e===sa&&(e.pageXOffset==null?e=ca[n]==null?la:ca:n=`page`+t.toUpperCase()+`Offset`),function(){return e[n]}},ya=function(e,t,n,r){if(ga(e)&&(e=e(t,n,r)),typeof e!=`object`)return ha(e)&&e!==`max`&&e.charAt(1)!==`=`?{x:e,y:e}:{y:e};if(e.nodeType)return{y:e,x:e};var i={},a;for(a in e)i[a]=a!==`onAutoKill`&&ga(e[a])?e[a](t,n,r):e[a];return i},ba=function(e,t){if(e=ua(e)[0],!e||!e.getBoundingClientRect)return console.warn(`scrollTo target doesn't exist. Using 0`)||{x:0,y:0};var n=e.getBoundingClientRect(),r=!t||t===sa||t===la,i=r?{top:ca.clientTop-(sa.pageYOffset||ca.scrollTop||la.scrollTop||0),left:ca.clientLeft-(sa.pageXOffset||ca.scrollLeft||la.scrollLeft||0)}:t.getBoundingClientRect(),a={x:n.left-i.left,y:n.top-i.top};return!r&&t&&(a.x+=va(t,`x`)(),a.y+=va(t,`y`)()),a},xa=function(e,t,n,r,i){return!isNaN(e)&&typeof e!=`object`?parseFloat(e)-i:ha(e)&&e.charAt(1)===`=`?parseFloat(e.substr(2))*(e.charAt(0)===`-`?-1:1)+r-i:e===`max`?_a(t,n)-i:Math.min(_a(t,n),ba(e,t)[n]-i)},Sa=function(){$=ma(),pa()&&$&&typeof document<`u`&&document.body&&(sa=window,la=document.body,ca=document.documentElement,ua=$.utils.toArray,$.config({autoKillThreshold:7}),da=$.config(),oa=1)},Ca={version:`3.15.0`,name:`scrollTo`,rawVars:1,register:function(e){$=e,Sa()},init:function(e,t,n,r,i){oa||Sa();var a=this,o=$.getProperty(e,`scrollSnapType`);a.isWin=e===sa,a.target=e,a.tween=n,t=ya(t,r,e,i),a.vars=t,a.autoKill=!!(`autoKill`in t?t:da).autoKill,a.getX=va(e,`x`),a.getY=va(e,`y`),a.x=a.xPrev=a.getX(),a.y=a.yPrev=a.getY(),fa||=$.core.globals().ScrollTrigger,$.getProperty(e,`scrollBehavior`)===`smooth`&&$.set(e,{scrollBehavior:`auto`}),o&&o!==`none`&&(a.snap=1,a.snapInline=e.style.scrollSnapType,e.style.scrollSnapType=`none`),t.x==null?a.skipX=1:(a.add(a,`x`,a.x,xa(t.x,e,`x`,a.x,t.offsetX||0),r,i),a._props.push(`scrollTo_x`)),t.y==null?a.skipY=1:(a.add(a,`y`,a.y,xa(t.y,e,`y`,a.y,t.offsetY||0),r,i),a._props.push(`scrollTo_y`))},render:function(e,t){for(var n=t._pt,r=t.target,i=t.tween,a=t.autoKill,o=t.xPrev,s=t.yPrev,c=t.isWin,l=t.snap,u=t.snapInline,d,f,p,m,h;n;)n.r(e,n.d),n=n._next;d=c||!t.skipX?t.getX():o,f=c||!t.skipY?t.getY():s,p=f-s,m=d-o,h=da.autoKillThreshold,t.x<0&&(t.x=0),t.y<0&&(t.y=0),a&&(!t.skipX&&(m>h||m<-h)&&d<_a(r,`x`)&&(t.skipX=1),!t.skipY&&(p>h||p<-h)&&f<_a(r,`y`)&&(t.skipY=1),t.skipX&&t.skipY&&(i.kill(),t.vars.onAutoKill&&t.vars.onAutoKill.apply(i,t.vars.onAutoKillParams||[]))),c?sa.scrollTo(t.skipX?d:t.x,t.skipY?f:t.y):(t.skipY||(r.scrollTop=t.y),t.skipX||(r.scrollLeft=t.x)),l&&(e===1||e===0)&&(f=r.scrollTop,d=r.scrollLeft,u?r.style.scrollSnapType=u:r.style.removeProperty(`scroll-snap-type`),r.scrollTop=f+1,r.scrollLeft=d+1,r.scrollTop=f,r.scrollLeft=d),t.xPrev=t.x,t.yPrev=t.y,fa&&fa.update()},kill:function(e){var t=e===`scrollTo`,n=this._props.indexOf(e);return(t||e===`scrollTo_x`)&&(this.skipX=1),(t||e===`scrollTo_y`)&&(this.skipY=1),n>-1&&this._props.splice(n,1),!this._props.length}};Ca.max=_a,Ca.getOffset=ba,Ca.buildGetter=va,Ca.config=function(e){for(var t in da||Sa()||(da=$.config()),e)da[t]=e[t]},ma()&&$.registerPlugin(Ca),e(),s(),y(),l();var wa={"text-gray-200":``,"w-screen":``,"h-screen":``},Ta={key:0},Ea={flex:``,"flex-col":``,"justify-center":``,"items-center":``,"w-screen":``,"h-screen":``,"text-xl":``,italic:``,class:`bg-[#323443]`},Da={key:0},Oa={key:1},ka={class:`bg-resolver-bg-1`,flex:``,"flex-col":``,"justify-between":``,"font-mono":``,"w-screen":``,"h-screen":``,"overflow-hidden":``},Aa=k(b({__name:`Resolver`,props:{dataSourceUrl:null},setup(e){let a=e;aa.registerPlugin(Ca);let s=T(O),{t:l,locale:y}=w(),b=m(()=>y.value),x=g(!1),k=g(!1),j=g(!1),M=g({}),N=g([]),ne=g([]),P=g({});function re(){let e=new ae(M.value,N.value,ne.value);e.buildResolver(),P.value=e}let{data:F,isError:ie,error:oe}=C(a.dataSourceUrl,!0);n(F,async()=>{F.value===null||F.value===void 0||(M.value=A(F.value?.contest),s.value=`${M.value.name.getOrDefault(b.value)} | ${O}`,N.value=te(F.value?.teams),ne.value=ee(F.value?.submissions,M.value),re(),x.value=!0)},{immediate:!0}),E([` `],e=>{e.preventDefault()}),D([`n`,` `],()=>{if(!j.value){k.value=!0;return}P.value.next()},{dedupe:!0}),D([`r`],()=>{P.value.rewind()},{dedupe:!0}),D([`w`],()=>{P.value.currentIndex--}),D([`s`],()=>{P.value.currentIndex++});let se=g(null),ce=g(null);return i(()=>{n(()=>k.value,async()=>{if(!j.value&&k.value&&se.value){let e=se.value.scrollHeight,t=se.value.clientHeight;aa.to(se.value,{duration:Math.round(P.value.teams.length*.2),scrollTop:e-t,ease:`power1.inOut`,onComplete:()=>{j.value=!0}})}},{immediate:!0}),n(()=>P.value.currentIndex,async()=>{if(j.value&&se.value&&ce.value){let e=se.value.getBoundingClientRect(),t=e.height,n=ce.value.getBoundingClientRect(),r=t-3*n.height,i=n.top-e.top-r;aa.to(se.value,{duration:2.5,ease:`power1.out`,scrollTop:`+=${i}`})}},{flush:`post`})}),(e,n)=>{let i=pe;return t(),v(`div`,wa,[_(x)?(t(),v(`div`,Oa,[f(`div`,null,[f(`div`,ka,[f(`div`,{ref_key:`resolverRef`,ref:se,"h-full":``,"overflow-y-auto":``},[u(h,{name:`resolver`,tag:`ul`},{default:o(()=>[(t(!0),v(d,null,S(_(P).teams,(e,n)=>(t(),v(`div`,{key:e.id,ref_for:!0,ref:e=>{n===_(P).currentIndex&&(ce.value=e)},class:p([e.id===_(P).currentTeamId?`z-999`:`z-0`]),"position-relative":``},[u(i,{index:n,team:e,resolver:_(P)},null,8,[`index`,`team`,`resolver`])],2))),128))]),_:1})],512)])])])):(t(),v(`div`,Ta,[f(`div`,Ea,[f(`div`,null,r(_(l)(`common.loading`))+`... `,1),_(ie)?(t(),v(`div`,Da,r(_(oe)),1)):c(``,!0)])]))])}}}),[[`__scopeId`,`data-v-2833de0b`]]);export{Aa as t};
@@ -0,0 +1 @@
1
+ import{E as e,F as t,h as n,v as r}from"./vue.runtime.esm-bundler-DTMOfGWR.js";import{t as i}from"./_plugin-vue_export-helper-BDNMzG2s.js";e();var a={},o={class:`color-gray-700 dark:color-gray-200`};function s(e,i){return t(),r(`div`,o,[...i[0]||=[n(`svg`,{stroke:`currentColor`,fill:`currentColor`,strokeWidth:`0`,viewBox:`0 0 1024 1024`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`,"p-id":`1161`,width:`30`,height:`30`},[n(`path`,{d:`M837.9904 570.0608H124.5696a29.0304 29.0304 0 0 1-29.0304-29.0304V482.9696a29.0304 29.0304 0 0 1 29.0304-29.0304h713.4208z`,fill:`currentColor`,"p-id":`1162`}),n(`path`,{d:`M561.3056 808.96l-40.96-40.96a28.928 28.928 0 0 1 0-40.96l215.04-215.04-215.04-215.04a28.9792 28.9792 0 0 1 0-40.96l40.96-40.96a28.9792 28.9792 0 0 1 40.96 0l296.96 296.96-296.96 296.96a28.9792 28.9792 0 0 1-40.96 0z`,fill:`currentColor`,"p-id":`1163`})],-1)]])}var c=i(a,[[`render`,s]]);export{c as t};
@@ -0,0 +1 @@
1
+ import{$ as e,D as t,E as n,F as r,G as i,H as a,O as o,T as s,X as c,Z as l,a as u,c as d,ct as f,et as p,it as m,m as h,rt as g,tt as _,ut as v,v as y,x as b}from"./vue.runtime.esm-bundler-DTMOfGWR.js";import{A as x,C as S,D as C,E as w,F as T,I as E,M as D,N as O,O as k,P as A,S as j,T as M,b as N,j as P,k as F,w as I,x as L,y as R}from"./index-D57KOcpK.js";import{l as z}from"./query-CoPl3fiI.js";var B=class extends E{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=I(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),H(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return U(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return U(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof F(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!P(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&W(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||F(this.options.enabled,this.#t)!==F(t.enabled,this.#t)||x(this.options.staleTime,this.#t)!==x(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||F(this.options.enabled,this.#t)!==F(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return K(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(C)),t}#g(){this.#b();let e=x(this.options.staleTime,this.#t);if(M.isServer()||this.#r.isStale||!w(e))return;let t=O(this.#r.dataUpdatedAt,e)+1;this.#d=A.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(M.isServer()||F(this.options.enabled,this.#t)===!1||!w(this.#p)||this.#p===0)&&(this.#f=A.setInterval(()=>{(this.options.refetchIntervalInBackground||T.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(A.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(A.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&H(e,t),o=i&&W(e,n,t,r);(a||o)&&(l={...l,...j(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=k(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=k(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:G(e,t),refetch:this.refetch,promise:this.#o,isEnabled:F(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{i(this.#o=x.promise=I())},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a();break}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!P(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){S.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function V(e,t){return F(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&F(t.retryOnMount,e)===!1)}function H(e,t){return V(e,t)||e.state.data!==void 0&&U(e,t,t.refetchOnMount)}function U(e,t,n){if(F(t.enabled,e)!==!1&&x(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&G(e,t)}return!1}function W(e,t,n,r){return(e!==t||F(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&G(e,n)}function G(e,t){return F(t.enabled,e)!==!1&&e.isStaleByTime(x(t.staleTime,e))}function K(e,t){return!P(e.getCurrentResult(),t)}n();function q(e=``){if(!s())throw Error(`vue-query hooks can only be used inside setup() function or functions that support injection context.`);let n=t(N(e));if(!n)throw Error(`No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.`);return n}n(),c();function J(t,n,r){let i=r||q(),o=h(()=>{let e=n;typeof e==`function`&&(e=e());let t=R(e);typeof t.enabled==`function`&&(t.enabled=t.enabled());let r=i.defaultQueryOptions(t);return r._optimisticResults=i.isRestoring?.value?`isRestoring`:`optimistic`,r}),s=new t(i,o.value),c=o.value.shallow?g(s.getCurrentResult()):p(s.getCurrentResult()),l=()=>{};i.isRestoring&&a(i.isRestoring,e=>{e||(l(),l=s.subscribe(e=>{L(c,e)}))},{immediate:!0});let u=()=>{s.setOptions(o.value),L(c,s.getCurrentResult())};a(o,u),e(()=>{l()});let d=(...e)=>(u(),c.refetch(...e)),v=()=>new Promise((e,t)=>{let n=()=>{},r=()=>{if(o.value.enabled!==!1){s.setOptions(o.value);let r=s.getOptimisticResult(o.value);r.isStale?(n(),s.fetchOptimistic(o.value).then(e,n=>{D(o.value.throwOnError,[n,s.getCurrentQuery()])?t(n):e(s.getCurrentResult())})):(n(),e(r))}};r(),n=a(o,r)});a(()=>c.error,e=>{if(c.isError&&!c.isFetching&&D(o.value.throwOnError,[e,s.getCurrentQuery()]))throw e});let y=f(o.value.shallow?m(c):_(c));for(let e in c)typeof c[e]==`function`&&(y[e]=c[e]);return y.suspense=v,y.refetch=d,y}function Y(e,t){return J(B,e,t)}function X(e){return typeof e==`object`&&!!e&&`url`in e}async function Z(e,t){if(!e?.organizations||!X(e.organizations))return;let{url:n}=e.organizations,r=n;n.startsWith(`http`)||(r=`${t}/${n}`);let i=await fetch(r);i.ok&&(e.organizations=await i.json())}async function Q(e,t){if(!e?.seat_map||!X(e.seat_map))return;let{url:n}=e.seat_map,r=n;n.startsWith(`http`)||(r=`${t}/${n}`);let i=await fetch(r);i.ok&&(e.seat_map=await i.json())}async function $(e){let t=e.startsWith(`/`)?e.slice(1):e,n=`${window.DATA_HOST}${t}`,r={allInOne:!1};n.includes(`#`)&&(r.allInOne=new URLSearchParams(n.split(`#`)[1]).get(`allInOne`)===`true`,n=n.split(`#`)[0]),e.startsWith(`http`)&&(n=e),n.endsWith(`/`)&&(n=n.slice(0,-1));let i=r.allInOne?[await fetch(n)]:[await fetch(`${n}/config.json`),await fetch(`${n}/team.json`),await fetch(`${n}/run.json`)],{status:a,statusText:o}=i[0];if(a>=400||a<200)throw Error(`fetch data failed. [status=${a}] [statusText=${o}]`);let s=await Promise.all(i.map(e=>e.json()));if(r.allInOne)return s[0];let c=s[0];return await Z(c,n),await Q(c,n),{contest:c,teams:s[1],submissions:s[2]}}function ee(e,t=!1){let n=window.REFETCH_INTERVAL;return t&&(n=!1),Y({queryKey:[e],queryFn:()=>$(e),retry:3,staleTime:3e4,refetchInterval:n})}n(),c(),u();var te=[`type`,`text`],ne=b({__name:`TheInput`,props:{textAlign:null,textType:null,modelValue:null},emits:[`update:modelValue`],setup(e){let t=e,{modelValue:n}=z(`modelValue`);return(e,a)=>i((r(),y(`input`,o({id:`input`,"onUpdate:modelValue":a[0]||=e=>l(n)?n.value=e:null},e.$attrs,{type:t.textType??`text`,text:t.textAlign??`center`,p:`x-4 y-2`,"w-full":``,bg:`transparent`,border:`~ rounded gray-200 dark:gray-700`,outline:`none active:none`}),null,16,te)),[[d,v(n)]])}});export{ee as n,ne as t};
@@ -0,0 +1 @@
1
+ .tooltip-arrow,.tooltip-arrow:before{background:inherit;width:8px;height:8px;position:absolute}.tooltip-arrow{visibility:hidden}.tooltip-arrow:before{content:"";visibility:visible;transform:rotate(45deg)}[data-tooltip-style^=light]+.tooltip>.tooltip-arrow:before{border-style:solid;border-color:#e5e7eb}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=top]>.tooltip-arrow:before{border-bottom-width:1px;border-right-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=right]>.tooltip-arrow:before{border-bottom-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=bottom]>.tooltip-arrow:before{border-top-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=left]>.tooltip-arrow:before{border-top-width:1px;border-right-width:1px}.tooltip[data-popper-placement^=top]>.tooltip-arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.tooltip-arrow{top:-4px}.tooltip[data-popper-placement^=left]>.tooltip-arrow{right:-4px}.tooltip[data-popper-placement^=right]>.tooltip-arrow{left:-4px}.tooltip.invisible>.tooltip-arrow:before{visibility:hidden}[data-popper-arrow],[data-popper-arrow]:before{background:inherit;width:8px;height:8px;position:absolute}[data-popper-arrow]{visibility:hidden}[data-popper-arrow]:before{content:"";visibility:visible;transform:rotate(45deg)}[data-popper-arrow]:after{content:"";visibility:visible;background:inherit;width:9px;height:9px;position:absolute;transform:rotate(45deg)}[role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#4b5563}[role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#4b5563}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:before,[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:after{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:before,[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:after{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:before,[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:after{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:before,[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:after{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]{bottom:-5px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]{top:-5px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]{right:-5px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]{left:-5px}[role=tooltip].invisible>[data-popper-arrow]:before,[role=tooltip].invisible>[data-popper-arrow]:after{visibility:hidden}