@epic-web/workshop-app 4.5.0 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/epicshop.js +3 -3
- package/build/client/assets/{_-CGn-2XfF.js → _-COWH0sBh.js} +2 -2
- package/build/client/assets/{_-CGn-2XfF.js.map → _-COWH0sBh.js.map} +1 -1
- package/build/client/assets/_exerciseNumber-rfzZiDNa.js +2 -0
- package/build/client/assets/_exerciseNumber-rfzZiDNa.js.map +1 -0
- package/build/client/assets/{_exerciseNumber_._stepNumber-D00x64Vg.js → _exerciseNumber_._stepNumber-C37pli7_.js} +2 -2
- package/build/client/assets/_exerciseNumber_._stepNumber-C37pli7_.js.map +1 -0
- package/build/client/assets/_exerciseNumber_.finished-B7SgnqdS.js +2 -0
- package/build/client/assets/_exerciseNumber_.finished-B7SgnqdS.js.map +1 -0
- package/build/client/assets/_layout-BG1Jwh7V.js +2 -0
- package/build/client/assets/_layout-BG1Jwh7V.js.map +1 -0
- package/build/client/assets/{_layout-Caqk73Ed.js → _layout-CNgYirUN.js} +2 -2
- package/build/client/assets/_layout-CNgYirUN.js.map +1 -0
- package/build/client/assets/{_layout-MFX35ekR.js → _layout-D0zbQZjf.js} +2 -2
- package/build/client/assets/_layout-D0zbQZjf.js.map +1 -0
- package/build/client/assets/{account-Cp6A7SfU.js → account-DesvwOeg.js} +2 -2
- package/build/client/assets/{account-Cp6A7SfU.js.map → account-DesvwOeg.js.map} +1 -1
- package/build/client/assets/diff-BKsbFB6w.js +42 -0
- package/build/client/assets/diff-BKsbFB6w.js.map +1 -0
- package/build/client/assets/{diff-Ddyuc0-s.js → diff-KDzcgGYL.js} +2 -2
- package/build/client/assets/diff-KDzcgGYL.js.map +1 -0
- package/build/client/assets/{discord-DZWTKMPn.js → discord-0kv66Q6F.js} +2 -2
- package/build/client/assets/{discord-DZWTKMPn.js.map → discord-0kv66Q6F.js.map} +1 -1
- package/build/client/assets/discord-Xp0X4-Fl.js +2 -0
- package/build/client/assets/discord-Xp0X4-Fl.js.map +1 -0
- package/build/client/assets/epic-video-BwtXsHGU.js +2988 -0
- package/build/client/assets/epic-video-BwtXsHGU.js.map +1 -0
- package/build/client/assets/{error-boundary-BUV7xD2e.js → error-boundary-Bcric_4t.js} +2 -2
- package/build/client/assets/error-boundary-Bcric_4t.js.map +1 -0
- package/build/client/assets/finished-BI2-0Ykt.js +2 -0
- package/build/client/assets/finished-BI2-0Ykt.js.map +1 -0
- package/build/client/assets/{index-CVJowtf6.js → index-BQRtqn3g.js} +2 -2
- package/build/client/assets/index-BQRtqn3g.js.map +1 -0
- package/build/client/assets/index-Bg9MMnnf.js +2 -0
- package/build/client/assets/index-Bg9MMnnf.js.map +1 -0
- package/build/client/assets/{login-BCM4kJTm.js → login-D8zyjBAb.js} +2 -2
- package/build/client/assets/{login-BCM4kJTm.js.map → login-D8zyjBAb.js.map} +1 -1
- package/build/client/assets/manifest-c65c0481.js +1 -0
- package/build/client/assets/{mdx-BVZ4sNxQ.js → mdx-BYvGbvEr.js} +2 -2
- package/build/client/assets/mdx-BYvGbvEr.js.map +1 -0
- package/build/client/assets/{misc-DBBsMyAP.js → misc-DNgC2Frq.js} +2 -2
- package/build/client/assets/{misc-DBBsMyAP.js.map → misc-DNgC2Frq.js.map} +1 -1
- package/build/client/assets/{nav-chevrons-DnG58Hov.js → nav-chevrons-DOYtx9XE.js} +2 -2
- package/build/client/assets/{nav-chevrons-DnG58Hov.js.map → nav-chevrons-DOYtx9XE.js.map} +1 -1
- package/build/client/assets/og-l0sNRNKZ.js +2 -0
- package/build/client/assets/og-l0sNRNKZ.js.map +1 -0
- package/build/client/assets/{onboarding-oSo74A5L.js → onboarding-euWyXpCL.js} +2 -2
- package/build/client/assets/{onboarding-oSo74A5L.js.map → onboarding-euWyXpCL.js.map} +1 -1
- package/build/client/assets/presence-BJPzwbUy.js.map +1 -1
- package/build/client/assets/progress-CF9Xwfxf.js +2 -0
- package/build/client/assets/progress-CF9Xwfxf.js.map +1 -0
- package/build/client/assets/{progress-bar-TRgQ8YZ8.js → progress-bar-7LK87ZMh.js} +2 -2
- package/build/client/assets/progress-bar-7LK87ZMh.js.map +1 -0
- package/build/client/assets/{root-CxuwYUpK.js → root-BXq0yevS.js} +4 -4
- package/build/client/assets/root-BXq0yevS.js.map +1 -0
- package/build/client/assets/seo-CHrqghsC.js +2 -0
- package/build/client/assets/seo-CHrqghsC.js.map +1 -0
- package/build/client/assets/support-DUAHYT3r.js.map +1 -1
- package/build/client/assets/tooltip-Kw0lYWBI.js +2 -0
- package/build/client/assets/tooltip-Kw0lYWBI.js.map +1 -0
- package/build/client/img/epicweb-og-background.png +0 -0
- package/build/server/index.js +1816 -1472
- package/build/server/index.js.map +1 -1
- package/dist/server/index.js +0 -2
- package/node_modules/@babel/runtime/helpers/AwaitValue.js +2 -2
- package/node_modules/@babel/runtime/helpers/OverloadYield.js +2 -2
- package/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js +7 -22
- package/node_modules/@babel/runtime/helpers/applyDecs2311.js +9 -9
- package/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +4 -4
- package/node_modules/@babel/runtime/helpers/arrayWithHoles.js +2 -2
- package/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +2 -2
- package/node_modules/@babel/runtime/helpers/assertThisInitialized.js +3 -5
- package/node_modules/@babel/runtime/helpers/asyncToGenerator.js +16 -21
- package/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js +2 -4
- package/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js +7 -15
- package/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js +2 -5
- package/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js +4 -8
- package/node_modules/@babel/runtime/helpers/classCallCheck.js +2 -4
- package/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js +2 -2
- package/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js +2 -4
- package/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js +2 -2
- package/node_modules/@babel/runtime/helpers/classNameTDZError.js +2 -2
- package/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js +3 -3
- package/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js +3 -3
- package/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js +2 -3
- package/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js +3 -5
- package/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js +2 -2
- package/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js +3 -4
- package/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js +2 -3
- package/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js +2 -3
- package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js +2 -4
- package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js +2 -4
- package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js +2 -5
- package/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js +2 -3
- package/node_modules/@babel/runtime/helpers/construct.js +1 -1
- package/node_modules/@babel/runtime/helpers/createClass.js +8 -14
- package/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js +24 -27
- package/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js +11 -12
- package/node_modules/@babel/runtime/helpers/createSuper.js +10 -12
- package/node_modules/@babel/runtime/helpers/decorate.js +185 -278
- package/node_modules/@babel/runtime/helpers/defaults.js +6 -9
- package/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js +8 -16
- package/node_modules/@babel/runtime/helpers/defineProperty.js +7 -13
- package/node_modules/@babel/runtime/helpers/esm/AsyncGenerator.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/AwaitValue.js +4 -3
- package/node_modules/@babel/runtime/helpers/esm/OverloadYield.js +4 -3
- package/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js +9 -23
- package/node_modules/@babel/runtime/helpers/esm/applyDecs.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js +12 -11
- package/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +6 -5
- package/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +4 -3
- package/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +4 -3
- package/node_modules/@babel/runtime/helpers/esm/assertClassBrand.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +5 -6
- package/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/asyncIterator.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +18 -22
- package/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/callSuper.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/checkInRHS.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js +4 -5
- package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js +9 -16
- package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js +4 -6
- package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js +6 -9
- package/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +4 -5
- package/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js +4 -3
- package/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +4 -5
- package/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js +4 -3
- package/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js +4 -3
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js +5 -4
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js +5 -4
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js +4 -4
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js +5 -6
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js +4 -3
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js +5 -5
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js +4 -4
- package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js +4 -4
- package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/classPrivateSetter.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js +4 -5
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js +4 -5
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js +4 -6
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js +4 -4
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/construct.js +4 -3
- package/node_modules/@babel/runtime/helpers/esm/createClass.js +10 -15
- package/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +26 -28
- package/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js +13 -13
- package/node_modules/@babel/runtime/helpers/esm/createSuper.js +12 -13
- package/node_modules/@babel/runtime/helpers/esm/decorate.js +187 -279
- package/node_modules/@babel/runtime/helpers/esm/defaults.js +8 -10
- package/node_modules/@babel/runtime/helpers/esm/defineAccessor.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js +10 -17
- package/node_modules/@babel/runtime/helpers/esm/defineProperty.js +9 -14
- package/node_modules/@babel/runtime/helpers/esm/dispose.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/extends.js +9 -13
- package/node_modules/@babel/runtime/helpers/esm/get.js +10 -16
- package/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +6 -6
- package/node_modules/@babel/runtime/helpers/esm/identity.js +4 -3
- package/node_modules/@babel/runtime/helpers/esm/importDeferProxy.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/inherits.js +11 -14
- package/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +4 -5
- package/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js +8 -8
- package/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js +4 -3
- package/node_modules/@babel/runtime/helpers/esm/instanceof.js +4 -7
- package/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js +5 -4
- package/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +6 -5
- package/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +4 -3
- package/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimitLoose.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/jsx.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js +7 -6
- package/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js +4 -5
- package/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/nullishReceiverError.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js +4 -3
- package/node_modules/@babel/runtime/helpers/esm/objectSpread.js +11 -13
- package/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +10 -13
- package/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +9 -10
- package/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +6 -8
- package/node_modules/@babel/runtime/helpers/esm/readOnlyError.js +4 -3
- package/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/set.js +19 -37
- package/node_modules/@babel/runtime/helpers/esm/setFunctionName.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +6 -7
- package/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js +5 -5
- package/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +4 -3
- package/node_modules/@babel/runtime/helpers/esm/slicedToArrayLoose.js +4 -3
- package/node_modules/@babel/runtime/helpers/esm/superPropBase.js +5 -7
- package/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +5 -7
- package/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js +4 -7
- package/node_modules/@babel/runtime/helpers/esm/tdz.js +4 -3
- package/node_modules/@babel/runtime/helpers/esm/temporalRef.js +6 -5
- package/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js +2 -1
- package/node_modules/@babel/runtime/helpers/esm/toArray.js +4 -3
- package/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +4 -3
- package/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/toSetter.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/typeof.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +8 -8
- package/node_modules/@babel/runtime/helpers/esm/using.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/usingCtx.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +4 -3
- package/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +17 -20
- package/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +3 -2
- package/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js +4 -3
- package/node_modules/@babel/runtime/helpers/extends.js +6 -11
- package/node_modules/@babel/runtime/helpers/get.js +7 -14
- package/node_modules/@babel/runtime/helpers/getPrototypeOf.js +4 -5
- package/node_modules/@babel/runtime/helpers/identity.js +2 -2
- package/node_modules/@babel/runtime/helpers/inherits.js +9 -13
- package/node_modules/@babel/runtime/helpers/inheritsLoose.js +2 -4
- package/node_modules/@babel/runtime/helpers/initializerDefineProperty.js +6 -7
- package/node_modules/@babel/runtime/helpers/initializerWarningHelper.js +2 -2
- package/node_modules/@babel/runtime/helpers/instanceof.js +2 -6
- package/node_modules/@babel/runtime/helpers/interopRequireDefault.js +3 -3
- package/node_modules/@babel/runtime/helpers/isNativeFunction.js +4 -4
- package/node_modules/@babel/runtime/helpers/iterableToArray.js +2 -2
- package/node_modules/@babel/runtime/helpers/maybeArrayLike.js +5 -5
- package/node_modules/@babel/runtime/helpers/newArrowCheck.js +2 -4
- package/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js +2 -2
- package/node_modules/@babel/runtime/helpers/objectSpread.js +9 -12
- package/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +8 -12
- package/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +7 -9
- package/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js +4 -7
- package/node_modules/@babel/runtime/helpers/readOnlyError.js +2 -2
- package/node_modules/@babel/runtime/helpers/set.js +17 -36
- package/node_modules/@babel/runtime/helpers/setPrototypeOf.js +4 -6
- package/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js +3 -4
- package/node_modules/@babel/runtime/helpers/slicedToArray.js +2 -2
- package/node_modules/@babel/runtime/helpers/slicedToArrayLoose.js +2 -2
- package/node_modules/@babel/runtime/helpers/superPropBase.js +3 -6
- package/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js +3 -6
- package/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js +2 -6
- package/node_modules/@babel/runtime/helpers/tdz.js +2 -2
- package/node_modules/@babel/runtime/helpers/temporalRef.js +2 -2
- package/node_modules/@babel/runtime/helpers/toArray.js +2 -2
- package/node_modules/@babel/runtime/helpers/toConsumableArray.js +2 -2
- package/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +6 -7
- package/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +2 -2
- package/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +15 -19
- package/node_modules/@babel/runtime/helpers/writeOnlyError.js +2 -2
- package/node_modules/@babel/runtime/package.json +587 -587
- package/node_modules/@conform-to/dom/form.js +1 -1
- package/node_modules/@conform-to/dom/form.mjs +1 -1
- package/node_modules/@conform-to/dom/formdata.d.ts +2 -2
- package/node_modules/@conform-to/dom/formdata.js +12 -34
- package/node_modules/@conform-to/dom/formdata.mjs +12 -34
- package/node_modules/@conform-to/dom/intent.d.ts +82 -0
- package/node_modules/@conform-to/dom/intent.js +136 -0
- package/node_modules/@conform-to/dom/intent.mjs +126 -0
- package/node_modules/@conform-to/dom/package.json +58 -59
- package/node_modules/@conform-to/dom/parse.d.ts +30 -0
- package/node_modules/@conform-to/dom/parse.js +43 -0
- package/node_modules/@conform-to/dom/parse.mjs +37 -0
- package/node_modules/@conform-to/dom/submission.d.ts +2 -2
- package/node_modules/@conform-to/dom/submission.js +23 -21
- package/node_modules/@conform-to/dom/submission.mjs +23 -21
- package/node_modules/@conform-to/dom/types.d.ts +20 -0
- package/node_modules/@conform-to/react/helpers.js +1 -1
- package/node_modules/@conform-to/react/helpers.mjs +1 -1
- package/node_modules/@conform-to/react/package.json +68 -69
- package/node_modules/@conform-to/zod/package.json +60 -61
- package/node_modules/framer-motion/dist/cjs/{dom-entry-fJy-kji5.js → dom-entry-DSxBucW4.js} +115 -107
- package/node_modules/framer-motion/dist/cjs/dom-entry.js +1 -1
- package/node_modules/framer-motion/dist/cjs/index.js +43 -10
- package/node_modules/framer-motion/dist/dom-entry.d.ts +1 -1
- package/node_modules/framer-motion/dist/dom.js +1 -1
- package/node_modules/framer-motion/dist/es/animation/GroupPlaybackControls.mjs +2 -3
- package/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.mjs +4 -1
- package/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs +2 -3
- package/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs +7 -0
- package/node_modules/framer-motion/dist/es/projection/node/create-projection-node.mjs +43 -9
- package/node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.mjs +11 -8
- package/node_modules/framer-motion/dist/es/render/utils/motion-values.mjs +1 -1
- package/node_modules/framer-motion/dist/es/value/index.mjs +1 -1
- package/node_modules/framer-motion/dist/framer-motion.dev.js +156 -116
- package/node_modules/framer-motion/dist/framer-motion.js +1 -1
- package/node_modules/framer-motion/dist/index.d.ts +2 -1
- package/node_modules/framer-motion/dist/projection.dev.js +163 -20
- package/node_modules/framer-motion/dist/three-entry.d.ts +1 -0
- package/node_modules/framer-motion/package.json +8 -8
- package/node_modules/remix-utils/node_modules/type-fest/package.json +1 -1
- package/node_modules/remix-utils/node_modules/type-fest/source/conditional-keys.d.ts +5 -3
- package/node_modules/tslib/package.json +1 -1
- package/node_modules/tslib/tslib.d.ts +1 -1
- package/node_modules/tslib/tslib.es6.js +7 -3
- package/node_modules/tslib/tslib.es6.mjs +10 -7
- package/node_modules/tslib/tslib.js +7 -4
- package/package.json +8 -6
- package/start.js +6 -4
- package/build/client/assets/_exerciseNumber-D6YNCQoj.js +0 -2
- package/build/client/assets/_exerciseNumber-D6YNCQoj.js.map +0 -1
- package/build/client/assets/_exerciseNumber_._stepNumber-D00x64Vg.js.map +0 -1
- package/build/client/assets/_exerciseNumber_.finished-DR3gQ1pK.js +0 -2
- package/build/client/assets/_exerciseNumber_.finished-DR3gQ1pK.js.map +0 -1
- package/build/client/assets/_layout-Caqk73Ed.js.map +0 -1
- package/build/client/assets/_layout-DXegGcTM.js +0 -2
- package/build/client/assets/_layout-DXegGcTM.js.map +0 -1
- package/build/client/assets/_layout-MFX35ekR.js.map +0 -1
- package/build/client/assets/diff-Ddyuc0-s.js.map +0 -1
- package/build/client/assets/diff-ZJmYghvh.js +0 -42
- package/build/client/assets/diff-ZJmYghvh.js.map +0 -1
- package/build/client/assets/discord-fsySDDKv.js +0 -2
- package/build/client/assets/discord-fsySDDKv.js.map +0 -1
- package/build/client/assets/epic-video-BKzHxm70.js +0 -2985
- package/build/client/assets/epic-video-BKzHxm70.js.map +0 -1
- package/build/client/assets/error-boundary-BUV7xD2e.js.map +0 -1
- package/build/client/assets/finished-gQ-B3k8j.js +0 -2
- package/build/client/assets/finished-gQ-B3k8j.js.map +0 -1
- package/build/client/assets/index-CVJowtf6.js.map +0 -1
- package/build/client/assets/index-Drecz7hr.js +0 -2
- package/build/client/assets/index-Drecz7hr.js.map +0 -1
- package/build/client/assets/manifest-0b01450d.js +0 -1
- package/build/client/assets/mdx-BVZ4sNxQ.js.map +0 -1
- package/build/client/assets/progress-HmjERaPh.js +0 -2
- package/build/client/assets/progress-HmjERaPh.js.map +0 -1
- package/build/client/assets/progress-bar-TRgQ8YZ8.js.map +0 -1
- package/build/client/assets/root-CxuwYUpK.js.map +0 -1
- package/build/client/assets/tooltip-BdTNdCYE.js +0 -2
- package/build/client/assets/tooltip-BdTNdCYE.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as g,r as a,j as n}from"./index-D6ygCrVn.js";import{d as h,c as x}from"./misc-
|
|
2
|
-
//# sourceMappingURL=progress-bar-
|
|
1
|
+
import{c as g,r as a,j as n}from"./index-D6ygCrVn.js";import{d as h,c as x}from"./misc-DNgC2Frq.js";import{d as v}from"./components-C5xBZAiL.js";const E=n.jsx("input",{type:"hidden",name:"show-progress-bar",value:"true"});function j(){const l=g(),u=v().filter(e=>{var i;return((i=e.formData)==null?void 0:i.get("show-progress-bar"))==="true"}),s=[l.state,...u.map(e=>e.state)],m=s.some(e=>e!=="idle"),t=h.useSpinDelay(m,{delay:600,minDuration:400}),o=a.useRef(null),[c,r]=a.useState(!0),d=s.every(e=>e==="idle"),p=s.some(e=>e==="submitting"),f=s.some(e=>e==="loading");return a.useEffect(()=>{if(!o.current)return;t&&r(!1);const e=o.current.getAnimations().map(({finished:i})=>i);Promise.allSettled(e).then(()=>{t||r(!0)})},[t]),n.jsx("div",{role:"progressbar","aria-hidden":t?void 0:!0,"aria-valuetext":t?"Loading":void 0,className:"fixed inset-x-0 left-0 top-0 z-50 h-[0.20rem] animate-pulse",children:n.jsx("div",{ref:o,className:x("h-full w-0 bg-highlight duration-500 ease-in-out",d&&(c?"transition-none":"w-full opacity-0 transition-all"),t&&p&&"w-5/12",t&&f&&"w-8/12")})})}export{j as E,E as s};
|
|
2
|
+
//# sourceMappingURL=progress-bar-7LK87ZMh.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress-bar-7LK87ZMh.js","sources":["../../../app/components/progress-bar.tsx"],"sourcesContent":["import { useFetchers, useNavigation } from '@remix-run/react'\nimport { useEffect, useRef, useState } from 'react'\nimport { useSpinDelay } from 'spin-delay'\nimport { cn } from '#app/utils/misc.tsx'\n\nexport const showProgressBarField = (\n\t<input type=\"hidden\" name=\"show-progress-bar\" value=\"true\" />\n)\n\nfunction EpicProgress() {\n\tconst transition = useNavigation()\n\tconst fetchers = useFetchers().filter(\n\t\t(fetcher) => fetcher.formData?.get('show-progress-bar') === 'true',\n\t)\n\tconst states = [transition.state, ...fetchers.map((f) => f.state)]\n\tconst busy = states.some((s) => s !== 'idle')\n\tconst delayedPending = useSpinDelay(busy, {\n\t\tdelay: 600,\n\t\tminDuration: 400,\n\t})\n\tconst ref = useRef<HTMLDivElement>(null)\n\tconst [animationComplete, setAnimationComplete] = useState(true)\n\n\tconst isIdle = states.every((s) => s === 'idle')\n\tconst isSubmitting = states.some((s) => s === 'submitting')\n\tconst isLoading = states.some((s) => s === 'loading')\n\n\tuseEffect(() => {\n\t\tif (!ref.current) return\n\t\tif (delayedPending) setAnimationComplete(false)\n\n\t\tconst animationPromises = ref.current\n\t\t\t.getAnimations()\n\t\t\t.map(({ finished }) => finished)\n\n\t\tvoid Promise.allSettled(animationPromises).then(() => {\n\t\t\tif (!delayedPending) setAnimationComplete(true)\n\t\t})\n\t}, [delayedPending])\n\n\treturn (\n\t\t<div\n\t\t\trole=\"progressbar\"\n\t\t\taria-hidden={delayedPending ? undefined : true}\n\t\t\taria-valuetext={delayedPending ? 'Loading' : undefined}\n\t\t\tclassName=\"fixed inset-x-0 left-0 top-0 z-50 h-[0.20rem] animate-pulse\"\n\t\t>\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'h-full w-0 bg-highlight duration-500 ease-in-out',\n\t\t\t\t\tisIdle &&\n\t\t\t\t\t\t(animationComplete\n\t\t\t\t\t\t\t? 'transition-none'\n\t\t\t\t\t\t\t: 'w-full opacity-0 transition-all'),\n\t\t\t\t\tdelayedPending && isSubmitting && 'w-5/12',\n\t\t\t\t\tdelayedPending && isLoading && 'w-8/12',\n\t\t\t\t)}\n\t\t\t/>\n\t\t</div>\n\t)\n}\n\nexport { EpicProgress }\n"],"names":["showProgressBarField","EpicProgress","transition","useNavigation","fetchers","useFetchers","fetcher","_a","states","f","busy","s","delayedPending","useSpinDelay","ref","useRef","animationComplete","setAnimationComplete","useState","isIdle","isSubmitting","isLoading","useEffect","animationPromises","finished","jsx","cn"],"mappings":"iJAKa,MAAAA,QACX,QAAM,CAAA,KAAK,SAAS,KAAK,oB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,e as V}from"./index-D6ygCrVn.js";import{d as J,u as U,c as X}from"./misc-DNgC2Frq.js";import{G as z}from"./error-boundary-Bcric_4t.js";import{E as K}from"./progress-bar-7LK87ZMh.js";import{J as Z,A as ee}from"./index-r90CY6Wk.js";import{T as te}from"./tooltip-Kw0lYWBI.js";import{u as ne}from"./index-Bg9MMnnf.js";import{C as ie}from"./client-hints-BKxdo5Js.js";import{P as re}from"./presence-BJPzwbUy.js";import{g as oe}from"./seo-CHrqghsC.js";import{e as se,f as ae,_ as ce,u as B,M as ue,g as le,S as fe}from"./components-C5xBZAiL.js";import"./clsx-B-dksMZM.js";import"./request-info-Dyls4H67.js";/**
|
|
2
2
|
* @remix-run/react v2.9.2
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
@@ -7,7 +7,7 @@ import{u as L,f as Y,r as f,g as Q,R as m,j as c,c as $,O as q,e as V}from"./ind
|
|
|
7
7
|
* LICENSE.md file in the root directory of this source tree.
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
|
-
*/let N="positions";function he({getKey:e,...n}){let{isSpaMode:r}=oe(),t=L(),i=Y();se({getKey:e,storageKey:N});let o=f.useMemo(()=>{if(!e)return null;let a=e(t,i);return a!==t.key?a:null},[]);if(r)return null;let s=((a,l)=>{if(!window.history.state||!window.history.state.key){let u=Math.random().toString(32).slice(2);window.history.replaceState({key:u},"")}try{let x=JSON.parse(sessionStorage.getItem(a)||"{}")[l||window.history.state.key];typeof x=="number"&&window.scrollTo(0,x)}catch(u){console.error(u),sessionStorage.removeItem(a)}}).toString();return f.createElement("script",ae({},n,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${s})(${JSON.stringify(N)}, ${JSON.stringify(o)})`}}))}var O={linear:function(e,n,r,t){var i=r-n;return i*e/t+n},easeInQuad:function(e,n,r,t){var i=r-n;return i*(e/=t)*e+n},easeOutQuad:function(e,n,r,t){var i=r-n;return-i*(e/=t)*(e-2)+n},easeInOutQuad:function(e,n,r,t){var i=r-n;return(e/=t/2)<1?i/2*e*e+n:-i/2*(--e*(e-2)-1)+n},easeInCubic:function(e,n,r,t){var i=r-n;return i*(e/=t)*e*e+n},easeOutCubic:function(e,n,r,t){var i=r-n;return i*((e=e/t-1)*e*e+1)+n},easeInOutCubic:function(e,n,r,t){var i=r-n;return(e/=t/2)<1?i/2*e*e*e+n:i/2*((e-=2)*e*e+2)+n},easeInQuart:function(e,n,r,t){var i=r-n;return i*(e/=t)*e*e*e+n},easeOutQuart:function(e,n,r,t){var i=r-n;return-i*((e=e/t-1)*e*e*e-1)+n},easeInOutQuart:function(e,n,r,t){var i=r-n;return(e/=t/2)<1?i/2*e*e*e*e+n:-i/2*((e-=2)*e*e*e-2)+n},easeInQuint:function(e,n,r,t){var i=r-n;return i*(e/=t)*e*e*e*e+n},easeOutQuint:function(e,n,r,t){var i=r-n;return i*((e=e/t-1)*e*e*e*e+1)+n},easeInOutQuint:function(e,n,r,t){var i=r-n;return(e/=t/2)<1?i/2*e*e*e*e*e+n:i/2*((e-=2)*e*e*e*e+2)+n},easeInSine:function(e,n,r,t){var i=r-n;return-i*Math.cos(e/t*(Math.PI/2))+i+n},easeOutSine:function(e,n,r,t){var i=r-n;return i*Math.sin(e/t*(Math.PI/2))+n},easeInOutSine:function(e,n,r,t){var i=r-n;return-i/2*(Math.cos(Math.PI*e/t)-1)+n},easeInExpo:function(e,n,r,t){var i=r-n;return e==0?n:i*Math.pow(2,10*(e/t-1))+n},easeOutExpo:function(e,n,r,t){var i=r-n;return e==t?n+i:i*(-Math.pow(2,-10*e/t)+1)+n},easeInOutExpo:function(e,n,r,t){var i=r-n;return e===0?n:e===t?n+i:(e/=t/2)<1?i/2*Math.pow(2,10*(e-1))+n:i/2*(-Math.pow(2,-10*--e)+2)+n},easeInCirc:function(e,n,r,t){var i=r-n;return-i*(Math.sqrt(1-(e/=t)*e)-1)+n},easeOutCirc:function(e,n,r,t){var i=r-n;return i*Math.sqrt(1-(e=e/t-1)*e)+n},easeInOutCirc:function(e,n,r,t){var i=r-n;return(e/=t/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+n:i/2*(Math.sqrt(1-(e-=2)*e)+1)+n},easeInElastic:function(e,n,r,t){var i=r-n,o,s,a;return a=1.70158,s=0,o=i,e===0?n:(e/=t)===1?n+i:(s||(s=t*.3),o<Math.abs(i)?(o=i,a=s/4):a=s/(2*Math.PI)*Math.asin(i/o),-(o*Math.pow(2,10*(e-=1))*Math.sin((e*t-a)*(2*Math.PI)/s))+n)},easeOutElastic:function(e,n,r,t){var i=r-n,o,s,a;return a=1.70158,s=0,o=i,e===0?n:(e/=t)===1?n+i:(s||(s=t*.3),o<Math.abs(i)?(o=i,a=s/4):a=s/(2*Math.PI)*Math.asin(i/o),o*Math.pow(2,-10*e)*Math.sin((e*t-a)*(2*Math.PI)/s)+i+n)},easeInOutElastic:function(e,n,r,t){var i=r-n,o,s,a;return a=1.70158,s=0,o=i,e===0?n:(e/=t/2)===2?n+i:(s||(s=t*(.3*1.5)),o<Math.abs(i)?(o=i,a=s/4):a=s/(2*Math.PI)*Math.asin(i/o),e<1?-.5*(o*Math.pow(2,10*(e-=1))*Math.sin((e*t-a)*(2*Math.PI)/s))+n:o*Math.pow(2,-10*(e-=1))*Math.sin((e*t-a)*(2*Math.PI)/s)*.5+i+n)},easeInBack:function(e,n,r,t,i){var o=r-n;return i===void 0&&(i=1.70158),o*(e/=t)*e*((i+1)*e-i)+n},easeOutBack:function(e,n,r,t,i){var o=r-n;return i===void 0&&(i=1.70158),o*((e=e/t-1)*e*((i+1)*e+i)+1)+n},easeInOutBack:function(e,n,r,t,i){var o=r-n;return i===void 0&&(i=1.70158),(e/=t/2)<1?o/2*(e*e*(((i*=1.525)+1)*e-i))+n:o/2*((e-=2)*e*(((i*=1.525)+1)*e+i)+2)+n},easeInBounce:function(e,n,r,t){var i=r-n,o;return o=O.easeOutBounce(t-e,0,i,t),i-o+n},easeOutBounce:function(e,n,r,t){var i=r-n;return(e/=t)<1/2.75?i*(7.5625*e*e)+n:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+n:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+n:i*(7.5625*(e-=2.625/2.75)*e+.984375)+n},easeInOutBounce:function(e,n,r,t){var i=r-n,o;return e<t/2?(o=O.easeInBounce(e*2,0,i,t),o*.5+n):(o=O.easeOutBounce(e*2-t,0,i,t),o*.5+i*.5+n)}},fe=O;const pe=Q(fe);function ve(e,n){for(var r=0;r<n.length;r++){var t=n[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function de(e,n,r){return n&&ve(e.prototype,n),e}function y(){return y=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},y.apply(this,arguments)}function ge(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,S(e,n)}function S(e,n){return S=Object.setPrototypeOf||function(t,i){return t.__proto__=i,t},S(e,n)}function we(e){return e*Math.PI/180}function h(e,n){return e+Math.random()*(n-e)}function me(e,n){return Math.floor(e+Math.random()*(n-e+1))}var w;(function(e){e[e.Circle=0]="Circle",e[e.Square=1]="Square",e[e.Strip=2]="Strip"})(w||(w={}));var p;(function(e){e[e.Positive=1]="Positive",e[e.Negative=-1]="Negative"})(p||(p={}));var ye=function(){function e(r,t,i,o){this.getOptions=t;var s=this.getOptions(),a=s.colors,l=s.initialVelocityX,u=s.initialVelocityY;this.context=r,this.x=i,this.y=o,this.w=h(5,20),this.h=h(5,20),this.radius=h(5,10),this.vx=h(-l,l),this.vy=h(-u,0),this.shape=me(0,2),this.angle=we(h(0,360)),this.angularSpin=h(-.2,.2),this.color=a[Math.floor(Math.random()*a.length)],this.rotateY=h(0,1),this.rotationDirection=h(0,1)?p.Positive:p.Negative}var n=e.prototype;return n.update=function(){var t=this.getOptions(),i=t.gravity,o=t.wind,s=t.friction,a=t.opacity,l=t.drawShape;this.x+=this.vx,this.y+=this.vy,this.vy+=i,this.vx+=o,this.vx*=s,this.vy*=s,this.rotateY>=1&&this.rotationDirection===p.Positive?this.rotationDirection=p.Negative:this.rotateY<=-1&&this.rotationDirection===p.Negative&&(this.rotationDirection=p.Positive);var u=.1*this.rotationDirection;if(this.rotateY+=u,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=a,this.context.lineCap="round",this.context.lineWidth=2,l&&typeof l=="function")l.call(this,this.context);else switch(this.shape){case w.Circle:{this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break}case w.Square:{this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break}case w.Strip:{this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h);break}default:throw new Error("Unknown type in Particle.ts")}this.context.closePath(),this.context.restore()},e}(),xe=function(n,r){var t=this;this.x=0,this.y=0,this.w=0,this.h=0,this.lastNumberOfPieces=0,this.tweenInitTime=Date.now(),this.particles=[],this.particlesGenerated=0,this.removeParticleAt=function(o){t.particles.splice(o,1)},this.getParticle=function(){var o=h(t.x,t.w+t.x),s=h(t.y,t.h+t.y);return new ye(t.context,t.getOptions,o,s)},this.animate=function(){var o=t.canvas,s=t.context,a=t.particlesGenerated,l=t.lastNumberOfPieces,u=t.getOptions(),x=u.run,E=u.recycle,v=u.numberOfPieces,A=u.debug,W=u.tweenFunction,P=u.tweenDuration;if(!x)return!1;var M=t.particles.length,d=E?M:a,I=Date.now();if(d<v){l!==v&&(t.tweenInitTime=I,t.lastNumberOfPieces=v);for(var F=t.tweenInitTime,G=I-F>P?P:Math.max(0,I-F),H=W(G,d,v,P),D=Math.round(H-d),k=0;k<D;k+=1)t.particles.push(t.getParticle());t.particlesGenerated+=D}return A&&(s.font="12px sans-serif",s.fillStyle="#333",s.textAlign="right",s.fillText("Particles: "+M,o.width-10,o.height-20)),t.particles.forEach(function(g,R){g.update(),(g.y>o.height||g.y<-100||g.x>o.width+100||g.x<-100)&&(E&&d<=v?t.particles[R]=t.getParticle():t.removeParticleAt(R))}),M>0||d<v},this.canvas=n;var i=this.canvas.getContext("2d");if(!i)throw new Error("Could not get canvas context");this.context=i,this.getOptions=r},j={width:typeof window<"u"?window.innerWidth:300,height:typeof window<"u"?window.innerHeight:200,numberOfPieces:200,friction:.99,wind:0,gravity:.1,initialVelocityX:4,initialVelocityY:10,colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#FF5722","#795548"],opacity:1,debug:!1,tweenFunction:pe.easeInOutQuad,tweenDuration:5e3,recycle:!0,run:!0},Oe=function(){function e(n,r){var t=this;this.setOptionsWithDefaults=function(o){var s={confettiSource:{x:0,y:0,w:t.canvas.width,h:0}};t._options=y({},s,j,o),Object.assign(t,o.confettiSource)},this.update=function(){var o=t.options,s=o.run,a=o.onConfettiComplete,l=t.canvas,u=t.context;s&&(u.fillStyle="white",u.clearRect(0,0,l.width,l.height)),t.generator.animate()?t.rafId=requestAnimationFrame(t.update):(a&&typeof a=="function"&&t.generator.particlesGenerated>0&&a.call(t,t),t._options.run=!1)},this.reset=function(){t.generator&&t.generator.particlesGenerated>0&&(t.generator.particlesGenerated=0,t.generator.particles=[],t.generator.lastNumberOfPieces=0)},this.stop=function(){t.options={run:!1},t.rafId&&(cancelAnimationFrame(t.rafId),t.rafId=void 0)},this.canvas=n;var i=this.canvas.getContext("2d");if(!i)throw new Error("Could not get canvas context");this.context=i,this.generator=new xe(this.canvas,function(){return t.options}),this.options=r,this.update()}return de(e,[{key:"options",get:function(){return this._options},set:function(r){var t=this._options&&this._options.run,i=this._options&&this._options.recycle;this.setOptionsWithDefaults(r),this.generator&&(Object.assign(this.generator,this.options.confettiSource),typeof r.recycle=="boolean"&&r.recycle&&i===!1&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),typeof r.run=="boolean"&&r.run&&t===!1&&this.update()}}]),e}(),T=m.createRef();function C(e){var n={},r={},t={},i=[].concat(Object.keys(j),["confettiSource","drawShape","onConfettiComplete"]),o=["canvasRef"];return Object.keys(e).forEach(function(s){var a=e[s];i.includes(s)?n[s]=a:o.includes(s)?o[s]=a:t[s]=a}),[n,t,r]}var _=function(e){ge(n,e);function n(t){for(var i,o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];return i=e.call.apply(e,[this,t].concat(s))||this,i.canvas=m.createRef(),i.canvas=t.canvasRef||T,i}var r=n.prototype;return r.componentDidMount=function(){if(this.canvas.current){var i=C(this.props)[0];this.confetti=new Oe(this.canvas.current,i)}},r.componentDidUpdate=function(){var i=C(this.props)[0];this.confetti&&(this.confetti.options=i)},r.componentWillUnmount=function(){this.confetti&&this.confetti.stop(),this.confetti=void 0},r.render=function(){var i=C(this.props),o=i[0],s=i[1],a=y({zIndex:2,position:"absolute",pointerEvents:"none",top:0,left:0,bottom:0,right:0},s.style);return m.createElement("canvas",Object.assign({width:o.width,height:o.height,ref:this.canvas},s,{style:a}))},n}(f.Component);_.defaultProps=y({},j);_.displayName="ConfettiReact";var Pe=m.forwardRef(function(e,n){return m.createElement(_,Object.assign({canvasRef:T},e))});function Me(){return()=>{}}function Ie(){return f.useSyncExternalStore(Me,()=>!0,()=>!1)}function Ce({children:e,fallback:n=null}){return Ie()?f.createElement(f.Fragment,null,e()):f.createElement(f.Fragment,null,n)}function Se({id:e}){return e?c.jsx(Ce,{children:()=>c.jsx(Pe,{run:!!e,recycle:!1,numberOfPieces:800,width:window.innerWidth,height:window.innerHeight},e)}):null}function je({toast:e}){return c.jsxs(c.Fragment,{children:[c.jsx(Z,{closeButton:!0,position:"top-center"}),e?c.jsx(_e,{toast:e}):null]})}function _e({toast:e}){const{id:n,type:r,title:t,description:i}=e;return f.useEffect(()=>{setTimeout(()=>{ee[r](t,{id:n,description:i})},0)},[i,n,t,r]),null}const Ee="/assets/app-BKC4z3M_.css",Fe="/assets/tailwind-Ck4g-nq0.css",$e=()=>[{rel:"stylesheet",href:"/neogrotesk-font.css"},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,200;0,300;0,400;0,500;0,600;1,700&display=swap"},{rel:"stylesheet",href:Fe},{rel:"stylesheet",href:Ee},{rel:"mask-icon",href:"/favicons/favicon.svg"},{rel:"alternate icon",type:"image/png",href:"/favicon.png"},{rel:"icon",type:"image/svg+xml",href:"/favicon.svg"}],qe=({data:e})=>[{title:e==null?void 0:e.workshopTitle}];function b({children:e,env:n={},className:r}){const t=V();return f.useEffect(()=>{window.__epicshop??(window.__epicshop={}),window.__epicshop.handleFileChange=t.revalidate},[t]),c.jsxs("html",{lang:"en",className:r,children:[c.jsxs("head",{children:[c.jsx(ie,{}),c.jsx(ce,{}),c.jsx("meta",{charSet:"utf-8"}),c.jsx("meta",{name:"viewport",content:"width=device-width,initial-scale=1"}),c.jsx(ue,{}),c.jsx("script",{dangerouslySetInnerHTML:{__html:`window.ENV = ${JSON.stringify(n)}`}})]}),c.jsxs("body",{className:"bg-background text-foreground scrollbar-thin scrollbar-thumb-scrollbar h-screen-safe",children:[e,c.jsx(he,{}),c.jsx(le,{}),ENV.EPICSHOP_DEPLOYED?null:c.jsx("script",{dangerouslySetInnerHTML:{__html:ke()}})]})]})}function De(){const e=B(),n=$(),r=J.useSpinDelay(n.state!=="idle",{delay:400,minDuration:200}),t=U(),i=ne();return c.jsxs(b,{className:X("antialiased h-screen-safe",i,{"cursor-progress":r},t?"alt-down":null),env:e.ENV,children:[c.jsx(q,{}),c.jsx(Se,{id:e.confettiId}),c.jsx(je,{toast:e.toast}),c.jsx(K,{})]})}function Ve(){const{user:e}=B();return c.jsx(re,{user:e,children:c.jsx(te,{children:c.jsx(De,{})})})}function Je(){return c.jsx(b,{className:"h-screen-safe",children:c.jsx(z,{})})}function ke(){return`
|
|
10
|
+
*/let N="positions";function he({getKey:e,...n}){let{isSpaMode:r}=se(),t=H(),i=L();ae({getKey:e,storageKey:N});let o=h.useMemo(()=>{if(!e)return null;let a=e(t,i);return a!==t.key?a:null},[]);if(r)return null;let s=((a,l)=>{if(!window.history.state||!window.history.state.key){let u=Math.random().toString(32).slice(2);window.history.replaceState({key:u},"")}try{let x=JSON.parse(sessionStorage.getItem(a)||"{}")[l||window.history.state.key];typeof x=="number"&&window.scrollTo(0,x)}catch(u){console.error(u),sessionStorage.removeItem(a)}}).toString();return h.createElement("script",ce({},n,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${s})(${JSON.stringify(N)}, ${JSON.stringify(o)})`}}))}var O={linear:function(e,n,r,t){var i=r-n;return i*e/t+n},easeInQuad:function(e,n,r,t){var i=r-n;return i*(e/=t)*e+n},easeOutQuad:function(e,n,r,t){var i=r-n;return-i*(e/=t)*(e-2)+n},easeInOutQuad:function(e,n,r,t){var i=r-n;return(e/=t/2)<1?i/2*e*e+n:-i/2*(--e*(e-2)-1)+n},easeInCubic:function(e,n,r,t){var i=r-n;return i*(e/=t)*e*e+n},easeOutCubic:function(e,n,r,t){var i=r-n;return i*((e=e/t-1)*e*e+1)+n},easeInOutCubic:function(e,n,r,t){var i=r-n;return(e/=t/2)<1?i/2*e*e*e+n:i/2*((e-=2)*e*e+2)+n},easeInQuart:function(e,n,r,t){var i=r-n;return i*(e/=t)*e*e*e+n},easeOutQuart:function(e,n,r,t){var i=r-n;return-i*((e=e/t-1)*e*e*e-1)+n},easeInOutQuart:function(e,n,r,t){var i=r-n;return(e/=t/2)<1?i/2*e*e*e*e+n:-i/2*((e-=2)*e*e*e-2)+n},easeInQuint:function(e,n,r,t){var i=r-n;return i*(e/=t)*e*e*e*e+n},easeOutQuint:function(e,n,r,t){var i=r-n;return i*((e=e/t-1)*e*e*e*e+1)+n},easeInOutQuint:function(e,n,r,t){var i=r-n;return(e/=t/2)<1?i/2*e*e*e*e*e+n:i/2*((e-=2)*e*e*e*e+2)+n},easeInSine:function(e,n,r,t){var i=r-n;return-i*Math.cos(e/t*(Math.PI/2))+i+n},easeOutSine:function(e,n,r,t){var i=r-n;return i*Math.sin(e/t*(Math.PI/2))+n},easeInOutSine:function(e,n,r,t){var i=r-n;return-i/2*(Math.cos(Math.PI*e/t)-1)+n},easeInExpo:function(e,n,r,t){var i=r-n;return e==0?n:i*Math.pow(2,10*(e/t-1))+n},easeOutExpo:function(e,n,r,t){var i=r-n;return e==t?n+i:i*(-Math.pow(2,-10*e/t)+1)+n},easeInOutExpo:function(e,n,r,t){var i=r-n;return e===0?n:e===t?n+i:(e/=t/2)<1?i/2*Math.pow(2,10*(e-1))+n:i/2*(-Math.pow(2,-10*--e)+2)+n},easeInCirc:function(e,n,r,t){var i=r-n;return-i*(Math.sqrt(1-(e/=t)*e)-1)+n},easeOutCirc:function(e,n,r,t){var i=r-n;return i*Math.sqrt(1-(e=e/t-1)*e)+n},easeInOutCirc:function(e,n,r,t){var i=r-n;return(e/=t/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+n:i/2*(Math.sqrt(1-(e-=2)*e)+1)+n},easeInElastic:function(e,n,r,t){var i=r-n,o,s,a;return a=1.70158,s=0,o=i,e===0?n:(e/=t)===1?n+i:(s||(s=t*.3),o<Math.abs(i)?(o=i,a=s/4):a=s/(2*Math.PI)*Math.asin(i/o),-(o*Math.pow(2,10*(e-=1))*Math.sin((e*t-a)*(2*Math.PI)/s))+n)},easeOutElastic:function(e,n,r,t){var i=r-n,o,s,a;return a=1.70158,s=0,o=i,e===0?n:(e/=t)===1?n+i:(s||(s=t*.3),o<Math.abs(i)?(o=i,a=s/4):a=s/(2*Math.PI)*Math.asin(i/o),o*Math.pow(2,-10*e)*Math.sin((e*t-a)*(2*Math.PI)/s)+i+n)},easeInOutElastic:function(e,n,r,t){var i=r-n,o,s,a;return a=1.70158,s=0,o=i,e===0?n:(e/=t/2)===2?n+i:(s||(s=t*(.3*1.5)),o<Math.abs(i)?(o=i,a=s/4):a=s/(2*Math.PI)*Math.asin(i/o),e<1?-.5*(o*Math.pow(2,10*(e-=1))*Math.sin((e*t-a)*(2*Math.PI)/s))+n:o*Math.pow(2,-10*(e-=1))*Math.sin((e*t-a)*(2*Math.PI)/s)*.5+i+n)},easeInBack:function(e,n,r,t,i){var o=r-n;return i===void 0&&(i=1.70158),o*(e/=t)*e*((i+1)*e-i)+n},easeOutBack:function(e,n,r,t,i){var o=r-n;return i===void 0&&(i=1.70158),o*((e=e/t-1)*e*((i+1)*e+i)+1)+n},easeInOutBack:function(e,n,r,t,i){var o=r-n;return i===void 0&&(i=1.70158),(e/=t/2)<1?o/2*(e*e*(((i*=1.525)+1)*e-i))+n:o/2*((e-=2)*e*(((i*=1.525)+1)*e+i)+2)+n},easeInBounce:function(e,n,r,t){var i=r-n,o;return o=O.easeOutBounce(t-e,0,i,t),i-o+n},easeOutBounce:function(e,n,r,t){var i=r-n;return(e/=t)<1/2.75?i*(7.5625*e*e)+n:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+n:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+n:i*(7.5625*(e-=2.625/2.75)*e+.984375)+n},easeInOutBounce:function(e,n,r,t){var i=r-n,o;return e<t/2?(o=O.easeInBounce(e*2,0,i,t),o*.5+n):(o=O.easeOutBounce(e*2-t,0,i,t),o*.5+i*.5+n)}},pe=O;const ve=Y(pe);function de(e,n){for(var r=0;r<n.length;r++){var t=n[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function ge(e,n,r){return n&&de(e.prototype,n),e}function y(){return y=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},y.apply(this,arguments)}function we(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,C(e,n)}function C(e,n){return C=Object.setPrototypeOf||function(t,i){return t.__proto__=i,t},C(e,n)}function me(e){return e*Math.PI/180}function f(e,n){return e+Math.random()*(n-e)}function ye(e,n){return Math.floor(e+Math.random()*(n-e+1))}var w;(function(e){e[e.Circle=0]="Circle",e[e.Square=1]="Square",e[e.Strip=2]="Strip"})(w||(w={}));var p;(function(e){e[e.Positive=1]="Positive",e[e.Negative=-1]="Negative"})(p||(p={}));var xe=function(){function e(r,t,i,o){this.getOptions=t;var s=this.getOptions(),a=s.colors,l=s.initialVelocityX,u=s.initialVelocityY;this.context=r,this.x=i,this.y=o,this.w=f(5,20),this.h=f(5,20),this.radius=f(5,10),this.vx=f(-l,l),this.vy=f(-u,0),this.shape=ye(0,2),this.angle=me(f(0,360)),this.angularSpin=f(-.2,.2),this.color=a[Math.floor(Math.random()*a.length)],this.rotateY=f(0,1),this.rotationDirection=f(0,1)?p.Positive:p.Negative}var n=e.prototype;return n.update=function(){var t=this.getOptions(),i=t.gravity,o=t.wind,s=t.friction,a=t.opacity,l=t.drawShape;this.x+=this.vx,this.y+=this.vy,this.vy+=i,this.vx+=o,this.vx*=s,this.vy*=s,this.rotateY>=1&&this.rotationDirection===p.Positive?this.rotationDirection=p.Negative:this.rotateY<=-1&&this.rotationDirection===p.Negative&&(this.rotationDirection=p.Positive);var u=.1*this.rotationDirection;if(this.rotateY+=u,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=a,this.context.lineCap="round",this.context.lineWidth=2,l&&typeof l=="function")l.call(this,this.context);else switch(this.shape){case w.Circle:{this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break}case w.Square:{this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break}case w.Strip:{this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h);break}default:throw new Error("Unknown type in Particle.ts")}this.context.closePath(),this.context.restore()},e}(),Oe=function(n,r){var t=this;this.x=0,this.y=0,this.w=0,this.h=0,this.lastNumberOfPieces=0,this.tweenInitTime=Date.now(),this.particles=[],this.particlesGenerated=0,this.removeParticleAt=function(o){t.particles.splice(o,1)},this.getParticle=function(){var o=f(t.x,t.w+t.x),s=f(t.y,t.h+t.y);return new xe(t.context,t.getOptions,o,s)},this.animate=function(){var o=t.canvas,s=t.context,a=t.particlesGenerated,l=t.lastNumberOfPieces,u=t.getOptions(),x=u.run,E=u.recycle,v=u.numberOfPieces,A=u.debug,W=u.tweenFunction,P=u.tweenDuration;if(!x)return!1;var M=t.particles.length,d=E?M:a,I=Date.now();if(d<v){l!==v&&(t.tweenInitTime=I,t.lastNumberOfPieces=v);for(var F=t.tweenInitTime,q=I-F>P?P:Math.max(0,I-F),G=W(q,d,v,P),D=Math.round(G-d),k=0;k<D;k+=1)t.particles.push(t.getParticle());t.particlesGenerated+=D}return A&&(s.font="12px sans-serif",s.fillStyle="#333",s.textAlign="right",s.fillText("Particles: "+M,o.width-10,o.height-20)),t.particles.forEach(function(g,R){g.update(),(g.y>o.height||g.y<-100||g.x>o.width+100||g.x<-100)&&(E&&d<=v?t.particles[R]=t.getParticle():t.removeParticleAt(R))}),M>0||d<v},this.canvas=n;var i=this.canvas.getContext("2d");if(!i)throw new Error("Could not get canvas context");this.context=i,this.getOptions=r},j={width:typeof window<"u"?window.innerWidth:300,height:typeof window<"u"?window.innerHeight:200,numberOfPieces:200,friction:.99,wind:0,gravity:.1,initialVelocityX:4,initialVelocityY:10,colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#FF5722","#795548"],opacity:1,debug:!1,tweenFunction:ve.easeInOutQuad,tweenDuration:5e3,recycle:!0,run:!0},Pe=function(){function e(n,r){var t=this;this.setOptionsWithDefaults=function(o){var s={confettiSource:{x:0,y:0,w:t.canvas.width,h:0}};t._options=y({},s,j,o),Object.assign(t,o.confettiSource)},this.update=function(){var o=t.options,s=o.run,a=o.onConfettiComplete,l=t.canvas,u=t.context;s&&(u.fillStyle="white",u.clearRect(0,0,l.width,l.height)),t.generator.animate()?t.rafId=requestAnimationFrame(t.update):(a&&typeof a=="function"&&t.generator.particlesGenerated>0&&a.call(t,t),t._options.run=!1)},this.reset=function(){t.generator&&t.generator.particlesGenerated>0&&(t.generator.particlesGenerated=0,t.generator.particles=[],t.generator.lastNumberOfPieces=0)},this.stop=function(){t.options={run:!1},t.rafId&&(cancelAnimationFrame(t.rafId),t.rafId=void 0)},this.canvas=n;var i=this.canvas.getContext("2d");if(!i)throw new Error("Could not get canvas context");this.context=i,this.generator=new Oe(this.canvas,function(){return t.options}),this.options=r,this.update()}return ge(e,[{key:"options",get:function(){return this._options},set:function(r){var t=this._options&&this._options.run,i=this._options&&this._options.recycle;this.setOptionsWithDefaults(r),this.generator&&(Object.assign(this.generator,this.options.confettiSource),typeof r.recycle=="boolean"&&r.recycle&&i===!1&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),typeof r.run=="boolean"&&r.run&&t===!1&&this.update()}}]),e}(),T=m.createRef();function S(e){var n={},r={},t={},i=[].concat(Object.keys(j),["confettiSource","drawShape","onConfettiComplete"]),o=["canvasRef"];return Object.keys(e).forEach(function(s){var a=e[s];i.includes(s)?n[s]=a:o.includes(s)?o[s]=a:t[s]=a}),[n,t,r]}var _=function(e){we(n,e);function n(t){for(var i,o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];return i=e.call.apply(e,[this,t].concat(s))||this,i.canvas=m.createRef(),i.canvas=t.canvasRef||T,i}var r=n.prototype;return r.componentDidMount=function(){if(this.canvas.current){var i=S(this.props)[0];this.confetti=new Pe(this.canvas.current,i)}},r.componentDidUpdate=function(){var i=S(this.props)[0];this.confetti&&(this.confetti.options=i)},r.componentWillUnmount=function(){this.confetti&&this.confetti.stop(),this.confetti=void 0},r.render=function(){var i=S(this.props),o=i[0],s=i[1],a=y({zIndex:2,position:"absolute",pointerEvents:"none",top:0,left:0,bottom:0,right:0},s.style);return m.createElement("canvas",Object.assign({width:o.width,height:o.height,ref:this.canvas},s,{style:a}))},n}(h.Component);_.defaultProps=y({},j);_.displayName="ConfettiReact";var Me=m.forwardRef(function(e,n){return m.createElement(_,Object.assign({canvasRef:T},e))});function Ie(){return()=>{}}function Se(){return h.useSyncExternalStore(Ie,()=>!0,()=>!1)}function Ce({children:e,fallback:n=null}){return Se()?h.createElement(h.Fragment,null,e()):h.createElement(h.Fragment,null,n)}function je({id:e}){return e?c.jsx(Ce,{children:()=>c.jsx(Me,{run:!!e,recycle:!1,numberOfPieces:800,width:window.innerWidth,height:window.innerHeight},e)}):null}function _e({toast:e}){return c.jsxs(c.Fragment,{children:[c.jsx(Z,{closeButton:!0,position:"top-center"}),e?c.jsx(Ee,{toast:e}):null]})}function Ee({toast:e}){const{id:n,type:r,title:t,description:i}=e;return h.useEffect(()=>{setTimeout(()=>{ee[r](t,{id:n,description:i})},0)},[i,n,t,r]),null}const Fe="/assets/app-BKC4z3M_.css",De="/assets/tailwind-Ck4g-nq0.css",Ve=()=>[{rel:"stylesheet",href:"/neogrotesk-font.css"},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,200;0,300;0,400;0,500;0,600;1,700&display=swap"},{rel:"stylesheet",href:De},{rel:"stylesheet",href:Fe},{rel:"mask-icon",href:"/favicons/favicon.svg"},{rel:"alternate icon",type:"image/png",href:"/favicon.png"},{rel:"icon",type:"image/svg+xml",href:"/favicon.svg"}],Je=({data:e})=>e?oe({instructor:e.instructor,title:e.workshopTitle,description:e.workshopSubtitle,requestInfo:e.requestInfo}):[];function b({children:e,env:n={},className:r}){const t=V();return h.useEffect(()=>{window.__epicshop??(window.__epicshop={}),window.__epicshop.handleFileChange=t.revalidate},[t]),c.jsxs("html",{lang:"en",className:r,children:[c.jsxs("head",{children:[c.jsx(ie,{}),c.jsx(ue,{}),c.jsx("meta",{charSet:"utf-8"}),c.jsx("meta",{name:"viewport",content:"width=device-width,initial-scale=1"}),c.jsx(le,{}),c.jsx("script",{dangerouslySetInnerHTML:{__html:`window.ENV = ${JSON.stringify(n)}`}})]}),c.jsxs("body",{className:"bg-background text-foreground scrollbar-thin scrollbar-thumb-scrollbar h-screen-safe",children:[e,c.jsx(he,{}),c.jsx(fe,{}),ENV.EPICSHOP_DEPLOYED?null:c.jsx("script",{dangerouslySetInnerHTML:{__html:Re()}})]})]})}function ke(){const e=B(),n=Q(),r=J.useSpinDelay(n.state!=="idle",{delay:400,minDuration:200}),t=U(),i=ne();return c.jsxs(b,{className:X("antialiased h-screen-safe",i,{"cursor-progress":r},t?"alt-down":null),env:e.ENV,children:[c.jsx($,{}),c.jsx(je,{id:e.confettiId}),c.jsx(_e,{toast:e.toast}),c.jsx(K,{})]})}function Ue(){const{user:e}=B();return c.jsx(re,{user:e,children:c.jsx(te,{children:c.jsx(ke,{})})})}function Xe(){return c.jsx(b,{className:"h-screen-safe",children:c.jsx(z,{})})}function Re(){return`
|
|
11
11
|
function epicLiveReloadConnect(config) {
|
|
12
12
|
const protocol = location.protocol === "https:" ? "wss:" : "ws:";
|
|
13
13
|
const host = location.hostname;
|
|
@@ -64,5 +64,5 @@ import{u as L,f as Y,r as f,g as Q,R as m,j as c,c as $,O as q,e as V}from"./ind
|
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
epicLiveReloadConnect();
|
|
67
|
-
`}export{
|
|
68
|
-
//# sourceMappingURL=root-
|
|
67
|
+
`}export{Xe as ErrorBoundary,Ue as default,Ve as links,Je as meta};
|
|
68
|
+
//# sourceMappingURL=root-BXq0yevS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-BXq0yevS.js","sources":["../../../../../node_modules/@remix-run/react/dist/esm/scroll-restoration.js","../../../../../node_modules/tween-functions/index.js","../../../../../node_modules/confetti-react/dist/confetti-react.esm.js","../../../../../node_modules/remix-utils/build/react/use-hydrated.js","../../../../../node_modules/remix-utils/build/react/client-only.js","../../../app/components/confetti.tsx","../../../app/components/toaster.tsx","../../../app/styles/app.css?url","../../../app/styles/tailwind.css?url","../../../app/root.tsx"],"sourcesContent":["/**\n * @remix-run/react v2.9.2\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\nimport { extends as _extends } from './_virtual/_rollupPluginBabelHelpers.js';\nimport * as React from 'react';\nimport { useLocation, useMatches, UNSAFE_useScrollRestoration } from 'react-router-dom';\nimport { useRemixContext } from './components.js';\n\nlet STORAGE_KEY = \"positions\";\n\n/**\n * This component will emulate the browser's scroll restoration on location\n * changes.\n *\n * @see https://remix.run/components/scroll-restoration\n */\nfunction ScrollRestoration({\n getKey,\n ...props\n}) {\n let {\n isSpaMode\n } = useRemixContext();\n let location = useLocation();\n let matches = useMatches();\n UNSAFE_useScrollRestoration({\n getKey,\n storageKey: STORAGE_KEY\n });\n\n // In order to support `getKey`, we need to compute a \"key\" here so we can\n // hydrate that up so that SSR scroll restoration isn't waiting on React to\n // hydrate. *However*, our key on the server is not the same as our key on\n // the client! So if the user's getKey implementation returns the SSR\n // location key, then let's ignore it and let our inline <script> below pick\n // up the client side history state key\n let key = React.useMemo(() => {\n if (!getKey) return null;\n let userKey = getKey(location, matches);\n return userKey !== location.key ? userKey : null;\n },\n // Nah, we only need this the first time for the SSR render\n // eslint-disable-next-line react-hooks/exhaustive-deps\n []);\n\n // In SPA Mode, there's nothing to restore on initial render since we didn't\n // render anything on the server\n if (isSpaMode) {\n return null;\n }\n let restoreScroll = ((STORAGE_KEY, restoreKey) => {\n if (!window.history.state || !window.history.state.key) {\n let key = Math.random().toString(32).slice(2);\n window.history.replaceState({\n key\n }, \"\");\n }\n try {\n let positions = JSON.parse(sessionStorage.getItem(STORAGE_KEY) || \"{}\");\n let storedY = positions[restoreKey || window.history.state.key];\n if (typeof storedY === \"number\") {\n window.scrollTo(0, storedY);\n }\n } catch (error) {\n console.error(error);\n sessionStorage.removeItem(STORAGE_KEY);\n }\n }).toString();\n return /*#__PURE__*/React.createElement(\"script\", _extends({}, props, {\n suppressHydrationWarning: true,\n dangerouslySetInnerHTML: {\n __html: `(${restoreScroll})(${JSON.stringify(STORAGE_KEY)}, ${JSON.stringify(key)})`\n }\n }));\n}\n\nexport { ScrollRestoration };\n","'use strict';\n\n// t: current time, b: beginning value, _c: final value, d: total duration\nvar tweenFunctions = {\n linear: function(t, b, _c, d) {\n var c = _c - b;\n return c * t / d + b;\n },\n easeInQuad: function(t, b, _c, d) {\n var c = _c - b;\n return c * (t /= d) * t + b;\n },\n easeOutQuad: function(t, b, _c, d) {\n var c = _c - b;\n return -c * (t /= d) * (t - 2) + b;\n },\n easeInOutQuad: function(t, b, _c, d) {\n var c = _c - b;\n if ((t /= d / 2) < 1) {\n return c / 2 * t * t + b;\n } else {\n return -c / 2 * ((--t) * (t - 2) - 1) + b;\n }\n },\n easeInCubic: function(t, b, _c, d) {\n var c = _c - b;\n return c * (t /= d) * t * t + b;\n },\n easeOutCubic: function(t, b, _c, d) {\n var c = _c - b;\n return c * ((t = t / d - 1) * t * t + 1) + b;\n },\n easeInOutCubic: function(t, b, _c, d) {\n var c = _c - b;\n if ((t /= d / 2) < 1) {\n return c / 2 * t * t * t + b;\n } else {\n return c / 2 * ((t -= 2) * t * t + 2) + b;\n }\n },\n easeInQuart: function(t, b, _c, d) {\n var c = _c - b;\n return c * (t /= d) * t * t * t + b;\n },\n easeOutQuart: function(t, b, _c, d) {\n var c = _c - b;\n return -c * ((t = t / d - 1) * t * t * t - 1) + b;\n },\n easeInOutQuart: function(t, b, _c, d) {\n var c = _c - b;\n if ((t /= d / 2) < 1) {\n return c / 2 * t * t * t * t + b;\n } else {\n return -c / 2 * ((t -= 2) * t * t * t - 2) + b;\n }\n },\n easeInQuint: function(t, b, _c, d) {\n var c = _c - b;\n return c * (t /= d) * t * t * t * t + b;\n },\n easeOutQuint: function(t, b, _c, d) {\n var c = _c - b;\n return c * ((t = t / d - 1) * t * t * t * t + 1) + b;\n },\n easeInOutQuint: function(t, b, _c, d) {\n var c = _c - b;\n if ((t /= d / 2) < 1) {\n return c / 2 * t * t * t * t * t + b;\n } else {\n return c / 2 * ((t -= 2) * t * t * t * t + 2) + b;\n }\n },\n easeInSine: function(t, b, _c, d) {\n var c = _c - b;\n return -c * Math.cos(t / d * (Math.PI / 2)) + c + b;\n },\n easeOutSine: function(t, b, _c, d) {\n var c = _c - b;\n return c * Math.sin(t / d * (Math.PI / 2)) + b;\n },\n easeInOutSine: function(t, b, _c, d) {\n var c = _c - b;\n return -c / 2 * (Math.cos(Math.PI * t / d) - 1) + b;\n },\n easeInExpo: function(t, b, _c, d) {\n var c = _c - b;\n return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;\n },\n easeOutExpo: function(t, b, _c, d) {\n var c = _c - b;\n return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;\n },\n easeInOutExpo: function(t, b, _c, d) {\n var c = _c - b;\n if (t === 0) {\n return b;\n }\n if (t === d) {\n return b + c;\n }\n if ((t /= d / 2) < 1) {\n return c / 2 * Math.pow(2, 10 * (t - 1)) + b;\n } else {\n return c / 2 * (-Math.pow(2, -10 * --t) + 2) + b;\n }\n },\n easeInCirc: function(t, b, _c, d) {\n var c = _c - b;\n return -c * (Math.sqrt(1 - (t /= d) * t) - 1) + b;\n },\n easeOutCirc: function(t, b, _c, d) {\n var c = _c - b;\n return c * Math.sqrt(1 - (t = t / d - 1) * t) + b;\n },\n easeInOutCirc: function(t, b, _c, d) {\n var c = _c - b;\n if ((t /= d / 2) < 1) {\n return -c / 2 * (Math.sqrt(1 - t * t) - 1) + b;\n } else {\n return c / 2 * (Math.sqrt(1 - (t -= 2) * t) + 1) + b;\n }\n },\n easeInElastic: function(t, b, _c, d) {\n var c = _c - b;\n var a, p, s;\n s = 1.70158;\n p = 0;\n a = c;\n if (t === 0) {\n return b;\n } else if ((t /= d) === 1) {\n return b + c;\n }\n if (!p) {\n p = d * 0.3;\n }\n if (a < Math.abs(c)) {\n a = c;\n s = p / 4;\n } else {\n s = p / (2 * Math.PI) * Math.asin(c / a);\n }\n return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b;\n },\n easeOutElastic: function(t, b, _c, d) {\n var c = _c - b;\n var a, p, s;\n s = 1.70158;\n p = 0;\n a = c;\n if (t === 0) {\n return b;\n } else if ((t /= d) === 1) {\n return b + c;\n }\n if (!p) {\n p = d * 0.3;\n }\n if (a < Math.abs(c)) {\n a = c;\n s = p / 4;\n } else {\n s = p / (2 * Math.PI) * Math.asin(c / a);\n }\n return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * (2 * Math.PI) / p) + c + b;\n },\n easeInOutElastic: function(t, b, _c, d) {\n var c = _c - b;\n var a, p, s;\n s = 1.70158;\n p = 0;\n a = c;\n if (t === 0) {\n return b;\n } else if ((t /= d / 2) === 2) {\n return b + c;\n }\n if (!p) {\n p = d * (0.3 * 1.5);\n }\n if (a < Math.abs(c)) {\n a = c;\n s = p / 4;\n } else {\n s = p / (2 * Math.PI) * Math.asin(c / a);\n }\n if (t < 1) {\n return -0.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b;\n } else {\n return a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p) * 0.5 + c + b;\n }\n },\n easeInBack: function(t, b, _c, d, s) {\n var c = _c - b;\n if (s === void 0) {\n s = 1.70158;\n }\n return c * (t /= d) * t * ((s + 1) * t - s) + b;\n },\n easeOutBack: function(t, b, _c, d, s) {\n var c = _c - b;\n if (s === void 0) {\n s = 1.70158;\n }\n return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b;\n },\n easeInOutBack: function(t, b, _c, d, s) {\n var c = _c - b;\n if (s === void 0) {\n s = 1.70158;\n }\n if ((t /= d / 2) < 1) {\n return c / 2 * (t * t * (((s *= 1.525) + 1) * t - s)) + b;\n } else {\n return c / 2 * ((t -= 2) * t * (((s *= 1.525) + 1) * t + s) + 2) + b;\n }\n },\n easeInBounce: function(t, b, _c, d) {\n var c = _c - b;\n var v;\n v = tweenFunctions.easeOutBounce(d - t, 0, c, d);\n return c - v + b;\n },\n easeOutBounce: function(t, b, _c, d) {\n var c = _c - b;\n if ((t /= d) < 1 / 2.75) {\n return c * (7.5625 * t * t) + b;\n } else if (t < 2 / 2.75) {\n return c * (7.5625 * (t -= 1.5 / 2.75) * t + 0.75) + b;\n } else if (t < 2.5 / 2.75) {\n return c * (7.5625 * (t -= 2.25 / 2.75) * t + 0.9375) + b;\n } else {\n return c * (7.5625 * (t -= 2.625 / 2.75) * t + 0.984375) + b;\n }\n },\n easeInOutBounce: function(t, b, _c, d) {\n var c = _c - b;\n var v;\n if (t < d / 2) {\n v = tweenFunctions.easeInBounce(t * 2, 0, c, d);\n return v * 0.5 + b;\n } else {\n v = tweenFunctions.easeOutBounce(t * 2 - d, 0, c, d);\n return v * 0.5 + c * 0.5 + b;\n }\n }\n};\n\nmodule.exports = tweenFunctions;\n","import React, { Component } from 'react';\nimport tweens from 'tween-functions';\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n\n _setPrototypeOf(subClass, superClass);\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction degreesToRads(degrees) {\n return degrees * Math.PI / 180;\n}\nfunction randomRange(min, max) {\n return min + Math.random() * (max - min);\n}\nfunction randomInt(min, max) {\n return Math.floor(min + Math.random() * (max - min + 1));\n}\n\nvar ParticleShape;\n\n(function (ParticleShape) {\n ParticleShape[ParticleShape[\"Circle\"] = 0] = \"Circle\";\n ParticleShape[ParticleShape[\"Square\"] = 1] = \"Square\";\n ParticleShape[ParticleShape[\"Strip\"] = 2] = \"Strip\";\n})(ParticleShape || (ParticleShape = {}));\n\nvar RotationDirection;\n\n(function (RotationDirection) {\n RotationDirection[RotationDirection[\"Positive\"] = 1] = \"Positive\";\n RotationDirection[RotationDirection[\"Negative\"] = -1] = \"Negative\";\n})(RotationDirection || (RotationDirection = {}));\n\nvar Particle = /*#__PURE__*/function () {\n function Particle(context, getOptions, x, y) {\n this.getOptions = getOptions;\n\n var _this$getOptions = this.getOptions(),\n colors = _this$getOptions.colors,\n initialVelocityX = _this$getOptions.initialVelocityX,\n initialVelocityY = _this$getOptions.initialVelocityY;\n\n this.context = context;\n this.x = x;\n this.y = y;\n this.w = randomRange(5, 20);\n this.h = randomRange(5, 20);\n this.radius = randomRange(5, 10);\n this.vx = randomRange(-initialVelocityX, initialVelocityX);\n this.vy = randomRange(-initialVelocityY, 0);\n this.shape = randomInt(0, 2);\n this.angle = degreesToRads(randomRange(0, 360));\n this.angularSpin = randomRange(-0.2, 0.2);\n this.color = colors[Math.floor(Math.random() * colors.length)];\n this.rotateY = randomRange(0, 1);\n this.rotationDirection = randomRange(0, 1) ? RotationDirection.Positive : RotationDirection.Negative;\n }\n\n var _proto = Particle.prototype;\n\n _proto.update = function update() {\n var _this$getOptions2 = this.getOptions(),\n gravity = _this$getOptions2.gravity,\n wind = _this$getOptions2.wind,\n friction = _this$getOptions2.friction,\n opacity = _this$getOptions2.opacity,\n drawShape = _this$getOptions2.drawShape;\n\n this.x += this.vx;\n this.y += this.vy;\n this.vy += gravity;\n this.vx += wind;\n this.vx *= friction;\n this.vy *= friction;\n\n if (this.rotateY >= 1 && this.rotationDirection === RotationDirection.Positive) {\n this.rotationDirection = RotationDirection.Negative;\n } else if (this.rotateY <= -1 && this.rotationDirection === RotationDirection.Negative) {\n this.rotationDirection = RotationDirection.Positive;\n }\n\n var rotateDelta = 0.1 * this.rotationDirection;\n this.rotateY += rotateDelta;\n this.angle += this.angularSpin;\n this.context.save();\n this.context.translate(this.x, this.y);\n this.context.rotate(this.angle);\n this.context.scale(1, this.rotateY);\n this.context.rotate(this.angle);\n this.context.beginPath();\n this.context.fillStyle = this.color;\n this.context.strokeStyle = this.color;\n this.context.globalAlpha = opacity;\n this.context.lineCap = 'round';\n this.context.lineWidth = 2;\n\n if (drawShape && typeof drawShape === 'function') {\n drawShape.call(this, this.context);\n } else {\n switch (this.shape) {\n case ParticleShape.Circle:\n {\n this.context.beginPath();\n this.context.arc(0, 0, this.radius, 0, 2 * Math.PI);\n this.context.fill();\n break;\n }\n\n case ParticleShape.Square:\n {\n this.context.fillRect(-this.w / 2, -this.h / 2, this.w, this.h);\n break;\n }\n\n case ParticleShape.Strip:\n {\n this.context.fillRect(-this.w / 6, -this.h / 2, this.w / 3, this.h);\n break;\n }\n\n default:\n {\n throw new Error('Unknown type in Particle.ts');\n }\n }\n }\n\n this.context.closePath();\n this.context.restore();\n };\n\n return Particle;\n}();\n\nvar ParticleGeneratorClass = function ParticleGeneratorClass(canvas, getOptions) {\n var _this = this;\n\n this.x = 0;\n this.y = 0;\n this.w = 0;\n this.h = 0;\n this.lastNumberOfPieces = 0;\n this.tweenInitTime = Date.now();\n this.particles = [];\n this.particlesGenerated = 0;\n\n this.removeParticleAt = function (i) {\n _this.particles.splice(i, 1);\n };\n\n this.getParticle = function () {\n var newParticleX = randomRange(_this.x, _this.w + _this.x);\n var newParticleY = randomRange(_this.y, _this.h + _this.y);\n return new Particle(_this.context, _this.getOptions, newParticleX, newParticleY);\n };\n\n this.animate = function () {\n var canvas = _this.canvas,\n context = _this.context,\n particlesGenerated = _this.particlesGenerated,\n lastNumberOfPieces = _this.lastNumberOfPieces;\n\n var _this$getOptions = _this.getOptions(),\n run = _this$getOptions.run,\n recycle = _this$getOptions.recycle,\n numberOfPieces = _this$getOptions.numberOfPieces,\n debug = _this$getOptions.debug,\n tweenFunction = _this$getOptions.tweenFunction,\n tweenDuration = _this$getOptions.tweenDuration;\n\n if (!run) {\n return false;\n }\n\n var nP = _this.particles.length;\n var activeCount = recycle ? nP : particlesGenerated;\n var now = Date.now(); // Initial population\n\n if (activeCount < numberOfPieces) {\n // Use the numberOfPieces prop as a key to reset the easing timing\n if (lastNumberOfPieces !== numberOfPieces) {\n _this.tweenInitTime = now;\n _this.lastNumberOfPieces = numberOfPieces;\n }\n\n var tweenInitTime = _this.tweenInitTime; // Add more than one piece per loop, otherwise the number of pieces would\n // be limitted by the RAF framerate\n\n var progressTime = now - tweenInitTime > tweenDuration ? tweenDuration : Math.max(0, now - tweenInitTime);\n var tweenedVal = tweenFunction(progressTime, activeCount, numberOfPieces, tweenDuration);\n var numToAdd = Math.round(tweenedVal - activeCount);\n\n for (var i = 0; i < numToAdd; i += 1) {\n _this.particles.push(_this.getParticle());\n }\n\n _this.particlesGenerated += numToAdd;\n }\n\n if (debug) {\n // Draw debug text\n context.font = '12px sans-serif';\n context.fillStyle = '#333';\n context.textAlign = 'right';\n context.fillText(\"Particles: \" + nP, canvas.width - 10, canvas.height - 20);\n } // Maintain the population\n\n\n _this.particles.forEach(function (p, i) {\n // Update each particle's position\n p.update(); // Prune the off-canvas particles\n\n if (p.y > canvas.height || p.y < -100 || p.x > canvas.width + 100 || p.x < -100) {\n if (recycle && activeCount <= numberOfPieces) {\n // Replace the particle with a brand new one\n _this.particles[i] = _this.getParticle();\n } else {\n _this.removeParticleAt(i);\n }\n }\n });\n\n return nP > 0 || activeCount < numberOfPieces;\n };\n\n this.canvas = canvas;\n var ctx = this.canvas.getContext('2d');\n\n if (!ctx) {\n throw new Error('Could not get canvas context');\n }\n\n this.context = ctx;\n this.getOptions = getOptions;\n};\n\nvar confettiDefaults = {\n width: typeof window !== 'undefined' ? window.innerWidth : 300,\n height: typeof window !== 'undefined' ? window.innerHeight : 200,\n numberOfPieces: 200,\n friction: 0.99,\n wind: 0,\n gravity: 0.1,\n initialVelocityX: 4,\n initialVelocityY: 10,\n colors: ['#f44336', '#e91e63', '#9c27b0', '#673ab7', '#3f51b5', '#2196f3', '#03a9f4', '#00bcd4', '#009688', '#4CAF50', '#8BC34A', '#CDDC39', '#FFEB3B', '#FFC107', '#FF9800', '#FF5722', '#795548'],\n opacity: 1.0,\n debug: false,\n tweenFunction: tweens.easeInOutQuad,\n tweenDuration: 5000,\n recycle: true,\n run: true\n};\nvar Confetti = /*#__PURE__*/function () {\n function Confetti(canvas, opts) {\n var _this = this;\n\n this.setOptionsWithDefaults = function (opts) {\n var computedConfettiDefaults = {\n confettiSource: {\n x: 0,\n y: 0,\n w: _this.canvas.width,\n h: 0\n }\n };\n _this._options = _extends({}, computedConfettiDefaults, confettiDefaults, opts);\n Object.assign(_this, opts.confettiSource);\n };\n\n this.update = function () {\n var _this$options = _this.options,\n run = _this$options.run,\n onConfettiComplete = _this$options.onConfettiComplete,\n canvas = _this.canvas,\n context = _this.context;\n\n if (run) {\n context.fillStyle = 'white';\n context.clearRect(0, 0, canvas.width, canvas.height);\n }\n\n if (_this.generator.animate()) {\n _this.rafId = requestAnimationFrame(_this.update);\n } else {\n if (onConfettiComplete && typeof onConfettiComplete === 'function' && _this.generator.particlesGenerated > 0) {\n onConfettiComplete.call(_this, _this);\n }\n\n _this._options.run = false;\n }\n };\n\n this.reset = function () {\n if (_this.generator && _this.generator.particlesGenerated > 0) {\n _this.generator.particlesGenerated = 0;\n _this.generator.particles = [];\n _this.generator.lastNumberOfPieces = 0;\n }\n };\n\n this.stop = function () {\n _this.options = {\n run: false\n };\n\n if (_this.rafId) {\n cancelAnimationFrame(_this.rafId);\n _this.rafId = undefined;\n }\n };\n\n this.canvas = canvas;\n var ctx = this.canvas.getContext('2d');\n\n if (!ctx) {\n throw new Error('Could not get canvas context');\n }\n\n this.context = ctx;\n this.generator = new ParticleGeneratorClass(this.canvas, function () {\n return _this.options;\n });\n this.options = opts;\n this.update();\n }\n\n _createClass(Confetti, [{\n key: \"options\",\n get: function get() {\n return this._options;\n },\n set: function set(opts) {\n var lastRunState = this._options && this._options.run;\n var lastRecycleState = this._options && this._options.recycle;\n this.setOptionsWithDefaults(opts);\n\n if (this.generator) {\n Object.assign(this.generator, this.options.confettiSource);\n\n if (typeof opts.recycle === 'boolean' && opts.recycle && lastRecycleState === false) {\n this.generator.lastNumberOfPieces = this.generator.particles.length;\n }\n }\n\n if (typeof opts.run === 'boolean' && opts.run && lastRunState === false) {\n this.update();\n }\n }\n }]);\n\n return Confetti;\n}();\n\nvar ref = /*#__PURE__*/React.createRef();\n\nfunction extractCanvasProps(props) {\n var confettiOptions = {};\n var refs = {};\n var rest = {};\n var confettiOptionKeys = [].concat(Object.keys(confettiDefaults), ['confettiSource', 'drawShape', 'onConfettiComplete']);\n var refProps = ['canvasRef'];\n Object.keys(props).forEach(function (prop) {\n var val = props[prop];\n\n if (confettiOptionKeys.includes(prop)) {\n confettiOptions[prop] = val;\n } else if (refProps.includes(prop)) {\n refProps[prop] = val;\n } else {\n rest[prop] = val;\n }\n });\n return [confettiOptions, rest, refs];\n}\n\nvar ConfettiReactInternal = /*#__PURE__*/function (_Component) {\n _inheritsLoose(ConfettiReactInternal, _Component);\n\n function ConfettiReactInternal(props) {\n var _this;\n\n for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n rest[_key - 1] = arguments[_key];\n }\n\n _this = _Component.call.apply(_Component, [this, props].concat(rest)) || this;\n _this.canvas = React.createRef();\n _this.canvas = props.canvasRef || ref;\n return _this;\n }\n\n var _proto = ConfettiReactInternal.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n if (this.canvas.current) {\n var opts = extractCanvasProps(this.props)[0];\n this.confetti = new Confetti(this.canvas.current, opts);\n }\n };\n\n _proto.componentDidUpdate = function componentDidUpdate() {\n var confettiOptions = extractCanvasProps(this.props)[0];\n\n if (this.confetti) {\n this.confetti.options = confettiOptions;\n }\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n if (this.confetti) {\n this.confetti.stop();\n }\n\n this.confetti = undefined;\n };\n\n _proto.render = function render() {\n var _extractCanvasProps = extractCanvasProps(this.props),\n confettiOptions = _extractCanvasProps[0],\n passedProps = _extractCanvasProps[1];\n\n var canvasStyles = _extends({\n zIndex: 2,\n position: 'absolute',\n pointerEvents: 'none',\n top: 0,\n left: 0,\n bottom: 0,\n right: 0\n }, passedProps.style);\n\n return React.createElement(\"canvas\", Object.assign({\n width: confettiOptions.width,\n height: confettiOptions.height,\n ref: this.canvas\n }, passedProps, {\n style: canvasStyles\n }));\n };\n\n return ConfettiReactInternal;\n}(Component);\n\nConfettiReactInternal.defaultProps = /*#__PURE__*/_extends({}, confettiDefaults);\nConfettiReactInternal.displayName = 'ConfettiReact'; // eslint-disable-next-line react/display-name\n\nvar Index = /*#__PURE__*/React.forwardRef(function (props, _ref) {\n return React.createElement(ConfettiReactInternal, Object.assign({\n canvasRef: ref\n }, props));\n});\n\nexport default Index;\nexport { Index };\n//# sourceMappingURL=confetti-react.esm.js.map\n","import { useSyncExternalStore } from \"react\";\nfunction subscribe() {\n return () => { };\n}\n/**\n * Return a boolean indicating if the JS has been hydrated already.\n * When doing Server-Side Rendering, the result will always be false.\n * When doing Client-Side Rendering, the result will always be false on the\n * first render and true from then on. Even if a new component renders it will\n * always start with true.\n *\n * Example: Disable a button that needs JS to work.\n * ```tsx\n * let hydrated = useHydrated();\n * return (\n * <button type=\"button\" disabled={!hydrated} onClick={doSomethingCustom}>\n * Click me\n * </button>\n * );\n * ```\n */\nexport function useHydrated() {\n return useSyncExternalStore(subscribe, () => true, () => false);\n}\n","import * as React from \"react\";\nimport { useHydrated } from \"./use-hydrated.js\";\n/**\n * Render the children only after the JS has loaded client-side. Use an optional\n * fallback component if the JS is not yet loaded.\n *\n * Example: Render a Chart component if JS loads, renders a simple FakeChart\n * component server-side or if there is no JS. The FakeChart can have only the\n * UI without the behavior or be a loading spinner or skeleton.\n * ```tsx\n * return (\n * <ClientOnly fallback={<FakeChart />}>\n * {() => <Chart />}\n * </ClientOnly>\n * );\n * ```\n */\nexport function ClientOnly({ children, fallback = null }) {\n return useHydrated() ? React.createElement(React.Fragment, null, children()) : React.createElement(React.Fragment, null, fallback);\n}\n","import { Index as ConfettiShower } from 'confetti-react'\nimport { ClientOnly } from 'remix-utils/client-only'\n\nexport function Confetti({ id }: { id?: string | null }) {\n\tif (!id) return null\n\n\treturn (\n\t\t<ClientOnly>\n\t\t\t{() => (\n\t\t\t\t<ConfettiShower\n\t\t\t\t\tkey={id}\n\t\t\t\t\trun={Boolean(id)}\n\t\t\t\t\trecycle={false}\n\t\t\t\t\tnumberOfPieces={800}\n\t\t\t\t\twidth={window.innerWidth}\n\t\t\t\t\theight={window.innerHeight}\n\t\t\t\t/>\n\t\t\t)}\n\t\t</ClientOnly>\n\t)\n}\n","import { useEffect } from 'react'\nimport { Toaster, toast as showToast } from 'sonner'\nimport { type Toast } from '#app/utils/toast.server.ts'\n\nexport function EpicToaster({ toast }: { toast?: Toast | null }) {\n\treturn (\n\t\t<>\n\t\t\t<Toaster closeButton position=\"top-center\" />\n\t\t\t{toast ? <ShowToast toast={toast} /> : null}\n\t\t</>\n\t)\n}\n\nfunction ShowToast({ toast }: { toast: Toast }) {\n\tconst { id, type, title, description } = toast\n\tuseEffect(() => {\n\t\tsetTimeout(() => {\n\t\t\tshowToast[type](title, { id, description })\n\t\t}, 0)\n\t}, [description, id, title, type])\n\treturn null\n}\n","import \"/home/runner/work/epicshop/epicshop/packages/workshop-app/app/styles/app.css?transform-only\";export default \"__VITE_CSS_URL__2f686f6d652f72756e6e65722f776f726b2f6570696373686f702f6570696373686f702f7061636b616765732f776f726b73686f702d6170702f6170702f7374796c65732f6170702e6373733f7472616e73666f726d2d6f6e6c79__\"","import \"/home/runner/work/epicshop/epicshop/packages/workshop-app/app/styles/tailwind.css?transform-only\";export default \"__VITE_CSS_URL__2f686f6d652f72756e6e65722f776f726b2f6570696373686f702f6570696373686f702f7061636b616765732f776f726b73686f702d6170702f6170702f7374796c65732f7461696c77696e642e6373733f7472616e73666f726d2d6f6e6c79__\"","import path from 'node:path'\nimport { getPresentUsers } from '@epic-web/workshop-presence/presence.server'\nimport {\n\tgetApps,\n\tgetWorkshopInstructor,\n\tgetWorkshopSubtitle,\n\tgetWorkshopTitle,\n} from '@epic-web/workshop-utils/apps.server'\nimport {\n\tgetDiscordMember,\n\tgetPreferences,\n\tgetUserInfo,\n\treadOnboardingData,\n} from '@epic-web/workshop-utils/db.server'\nimport { makeTimings, time } from '@epic-web/workshop-utils/timing.server'\nimport { cssBundleHref } from '@remix-run/css-bundle'\nimport {\n\tjson,\n\tredirect,\n\ttype HeadersFunction,\n\ttype LinksFunction,\n\ttype LoaderFunctionArgs,\n\ttype MetaFunction,\n} from '@remix-run/node'\nimport {\n\tLinks,\n\tMeta,\n\tOutlet,\n\tScripts,\n\tScrollRestoration,\n\tuseLoaderData,\n\tuseNavigation,\n\tuseRevalidator,\n} from '@remix-run/react'\nimport { useEffect } from 'react'\nimport { useSpinDelay } from 'spin-delay'\nimport { Confetti } from './components/confetti.tsx'\nimport { GeneralErrorBoundary } from './components/error-boundary.tsx'\nimport { EpicProgress } from './components/progress-bar.tsx'\nimport { EpicToaster } from './components/toaster.tsx'\nimport { TooltipProvider } from './components/ui/tooltip.tsx'\nimport { useTheme } from './routes/theme/index.tsx'\nimport { getTheme } from './routes/theme/theme-session.server.ts'\nimport appStylesheetUrl from './styles/app.css?url'\nimport tailwindStylesheetUrl from './styles/tailwind.css?url'\nimport { ClientHintCheck, getHints } from './utils/client-hints.tsx'\nimport { getConfetti } from './utils/confetti.server.ts'\nimport { getEnv } from './utils/env.server.ts'\nimport { getProgress } from './utils/epic-api.ts'\nimport { cn, combineHeaders, getDomainUrl, useAltDown } from './utils/misc.tsx'\nimport { Presence } from './utils/presence.tsx'\nimport { getSeoMetaTags } from './utils/seo.ts'\nimport { getToast } from './utils/toast.server.ts'\n\nexport const links: LinksFunction = () => {\n\treturn [\n\t\t{ rel: 'stylesheet', href: '/neogrotesk-font.css' },\n\t\t{\n\t\t\trel: 'stylesheet',\n\t\t\thref: 'https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,200;0,300;0,400;0,500;0,600;1,700&display=swap',\n\t\t},\n\t\t{ rel: 'stylesheet', href: tailwindStylesheetUrl },\n\t\t{ rel: 'stylesheet', href: appStylesheetUrl },\n\t\t...(cssBundleHref ? [{ rel: 'stylesheet', href: cssBundleHref }] : []),\n\t\t{ rel: 'mask-icon', href: '/favicons/favicon.svg' },\n\t\t{\n\t\t\trel: 'alternate icon',\n\t\t\ttype: 'image/png',\n\t\t\thref: '/favicon.png',\n\t\t},\n\t\t{ rel: 'icon', type: 'image/svg+xml', href: '/favicon.svg' },\n\t]\n}\n\nexport const meta: MetaFunction<typeof loader> = ({ data }) => {\n\tif (!data) return []\n\n\treturn getSeoMetaTags({\n\t\tinstructor: data.instructor,\n\t\ttitle: data.workshopTitle,\n\t\tdescription: data.workshopSubtitle,\n\t\trequestInfo: data.requestInfo,\n\t})\n}\n\nexport async function loader({ request }: LoaderFunctionArgs) {\n\tconst timings = makeTimings('rootLoader')\n\tconst onboarding = await readOnboardingData()\n\tif (!ENV.EPICSHOP_DEPLOYED && !onboarding?.finishedTourVideo) {\n\t\tif (new URL(request.url).pathname !== '/onboarding') {\n\t\t\tthrow redirect('/onboarding')\n\t\t}\n\t}\n\tconst workshopTitle = await time(() => getWorkshopTitle(), {\n\t\ttype: 'getWorkshopTitle',\n\t\tdesc: 'getWorkshopTitle in root',\n\t\ttimings,\n\t})\n\tconst workshopSubtitle = await time(() => getWorkshopSubtitle(), {\n\t\ttype: 'getWorkshopSubtitle',\n\t\tdesc: 'getWorkshopSubtitle in root',\n\t\ttimings,\n\t})\n\tconst instructor = await time(() => getWorkshopInstructor(), {\n\t\ttype: 'getInstructor',\n\t\tdesc: 'getInstructor in root',\n\t\ttimings,\n\t})\n\n\tconst preferences = await getPreferences()\n\tconst progress = await getProgress({ timings }).catch((e) => {\n\t\tconsole.error('Failed to get progress', e)\n\t\tconst emptyProgress: Awaited<ReturnType<typeof getProgress>> = []\n\t\treturn emptyProgress\n\t})\n\tconst { toast, headers: toastHeaders } = await getToast(request)\n\tconst { confettiId, headers: confettiHeaders } = getConfetti(request)\n\tconst discordMember = await getDiscordMember()\n\tconst theme = getTheme(request)\n\tconst user = await getUserInfo()\n\tconst apps = await getApps({ request, timings })\n\tconst presentUsers = await getPresentUsers(user, { request, timings })\n\treturn json(\n\t\t{\n\t\t\tworkshopTitle,\n\t\t\tworkshopSubtitle,\n\t\t\tinstructor,\n\t\t\tapps: apps.map(({ name, fullPath, relativePath }) => ({\n\t\t\t\tname,\n\t\t\t\tfullPath,\n\t\t\t\trelativePath,\n\t\t\t})),\n\t\t\tENV: getEnv(),\n\t\t\trequestInfo: {\n\t\t\t\torigin: new URL(request.url).origin,\n\t\t\t\tdomain: getDomainUrl(request),\n\t\t\t\thints: getHints(request),\n\t\t\t\tpath: new URL(request.url).pathname,\n\t\t\t\tsession: { theme },\n\t\t\t\tseparator: path.sep,\n\t\t\t},\n\t\t\tprogress,\n\t\t\tpreferences,\n\t\t\tdiscordMember,\n\t\t\tuser,\n\t\t\ttoast,\n\t\t\tconfettiId,\n\t\t\tpresence: {\n\t\t\t\tusers: presentUsers,\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\theaders: combineHeaders(toastHeaders, confettiHeaders, {\n\t\t\t\t'Server-Timing': timings.toString(),\n\t\t\t}),\n\t\t},\n\t)\n}\n\nexport const headers: HeadersFunction = ({ loaderHeaders }) => {\n\tconst headers = {\n\t\t'Cache-Control': loaderHeaders.get('Cache-Control') ?? '',\n\t\t'Server-Timing': loaderHeaders.get('Server-Timing') ?? '',\n\t}\n\treturn headers\n}\n\nfunction Document({\n\tchildren,\n\tenv = {},\n\tclassName,\n}: {\n\tchildren: React.ReactNode\n\tenv?: Record<string, unknown>\n\tclassName: string\n}) {\n\tconst revalidator = useRevalidator()\n\tuseEffect(() => {\n\t\twindow.__epicshop ??= {}\n\t\twindow.__epicshop.handleFileChange = revalidator.revalidate\n\t}, [revalidator])\n\treturn (\n\t\t<html lang=\"en\" className={className}>\n\t\t\t<head>\n\t\t\t\t<ClientHintCheck />\n\t\t\t\t<Meta />\n\t\t\t\t<meta charSet=\"utf-8\" />\n\t\t\t\t<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\" />\n\t\t\t\t<Links />\n\t\t\t\t<script\n\t\t\t\t\tdangerouslySetInnerHTML={{\n\t\t\t\t\t\t__html: `window.ENV = ${JSON.stringify(env)}`,\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t</head>\n\t\t\t<body className=\"bg-background text-foreground scrollbar-thin scrollbar-thumb-scrollbar h-screen-safe\">\n\t\t\t\t{children}\n\t\t\t\t<ScrollRestoration />\n\t\t\t\t<Scripts />\n\t\t\t\t{ENV.EPICSHOP_DEPLOYED ? null : (\n\t\t\t\t\t<script dangerouslySetInnerHTML={{ __html: getWebsocketJS() }} />\n\t\t\t\t)}\n\t\t\t</body>\n\t\t</html>\n\t)\n}\n\nfunction App() {\n\tconst data = useLoaderData<typeof loader>()\n\tconst navigation = useNavigation()\n\tconst showSpinner = useSpinDelay(navigation.state !== 'idle', {\n\t\tdelay: 400,\n\t\tminDuration: 200,\n\t})\n\tconst altDown = useAltDown()\n\n\tconst theme = useTheme()\n\treturn (\n\t\t<Document\n\t\t\tclassName={cn(\n\t\t\t\t'antialiased h-screen-safe',\n\t\t\t\ttheme,\n\t\t\t\t{ 'cursor-progress': showSpinner },\n\t\t\t\taltDown ? 'alt-down' : null,\n\t\t\t)}\n\t\t\tenv={data.ENV}\n\t\t>\n\t\t\t<Outlet />\n\t\t\t<Confetti id={data.confettiId} />\n\t\t\t<EpicToaster toast={data.toast} />\n\t\t\t<EpicProgress />\n\t\t</Document>\n\t)\n}\n\nexport default function AppWithProviders() {\n\tconst { user } = useLoaderData<typeof loader>()\n\treturn (\n\t\t<Presence user={user}>\n\t\t\t<TooltipProvider>\n\t\t\t\t<App />\n\t\t\t</TooltipProvider>\n\t\t</Presence>\n\t)\n}\n\nexport function ErrorBoundary() {\n\treturn (\n\t\t<Document className=\"h-screen-safe\">\n\t\t\t<GeneralErrorBoundary />\n\t\t</Document>\n\t)\n}\n\nfunction getWebsocketJS() {\n\tconst js = /* javascript */ `\n\tfunction epicLiveReloadConnect(config) {\n\t\tconst protocol = location.protocol === \"https:\" ? \"wss:\" : \"ws:\";\n\t\tconst host = location.hostname;\n\t\tconst port = location.port;\n\t\tconst socketPath = protocol + \"//\" + host + \":\" + port + \"/__ws\";\n\t\tconst ws = new WebSocket(socketPath);\n\t\tfunction handleFileChange(changedFiles) {\n\t\t\tconsole.log(\n\t\t\t\t['🐨 Reloading', window.frameElement?.getAttribute('title')]\n\t\t\t\t\t.filter(Boolean)\n\t\t\t\t\t.join(' '),\n\t\t\t\tchangedFiles\n\t\t\t);\n\t\t\tif (typeof window.__epicshop?.handleFileChange === \"function\") {\n\t\t\t\twindow.__epicshop?.handleFileChange();\n\t\t\t} else {\n\t\t\t\tsetTimeout(() => window.location.reload(), 200);\n\t\t\t}\n\t\t}\n\t\tfunction debounce(fn, ms) {\n\t\t\tlet timeout;\n\t\t\treturn function debouncedFn(...args) {\n\t\t\t\tclearTimeout(timeout);\n\t\t\t\ttimeout = setTimeout(() => fn(...args), ms);\n\t\t\t};\n\t\t}\n\t\tconst debouncedHandleFileChange = debounce(handleFileChange, 50);\n\t\tws.onmessage = (message) => {\n\t\t\tconst event = JSON.parse(message.data);\n\t\t\tif (event.type !== 'epicshop:file-change') return;\n\t\t\tconst { filePaths } = event.data;\n\t\t\tdebouncedHandleFileChange(filePaths);\n\t\t};\n\t\tws.onopen = () => {\n\t\t\tif (config && typeof config.onOpen === \"function\") {\n\t\t\t\tconfig.onOpen();\n\t\t\t}\n\t\t};\n\t\tws.onclose = (event) => {\n\t\t\tif (event.code === 1006) {\n\t\t\t\tconsole.log(\"Epic Web dev server web socket closed. Reconnecting...\");\n\t\t\t\tsetTimeout(\n\t\t\t\t\t() =>\n\t\t\t\t\t\tepicLiveReloadConnect({\n\t\t\t\t\t\t\tonOpen: () => window.location.reload(),\n\t\t\t\t\t\t}),\n\t\t\t\t1000\n\t\t\t\t);\n\t\t\t}\n\t\t};\n\t\tws.onerror = (error) => {\n\t\t\tconsole.log(\"Epic Web dev server web socket error:\");\n\t\t\tconsole.error(error);\n\t\t};\n\t}\n\tepicLiveReloadConnect();\n\t`\n\treturn js\n}\n"],"names":["STORAGE_KEY","ScrollRestoration","getKey","props","isSpaMode","useRemixContext","location","useLocation","matches","useMatches","UNSAFE_useScrollRestoration","key","React.useMemo","userKey","restoreScroll","restoreKey","storedY","error","React.createElement","_extends","tweenFunctions","t","b","_c","d","c","a","p","s","v","tweenFunctions_1","_defineProperties","target","i","descriptor","_createClass","Constructor","protoProps","staticProps","source","_inheritsLoose","subClass","superClass","_setPrototypeOf","o","degreesToRads","degrees","randomRange","min","max","randomInt","ParticleShape","RotationDirection","Particle","context","getOptions","x","y","_this$getOptions","colors","initialVelocityX","initialVelocityY","_proto","_this$getOptions2","gravity","wind","friction","opacity","drawShape","rotateDelta","ParticleGeneratorClass","canvas","_this","newParticleX","newParticleY","particlesGenerated","lastNumberOfPieces","run","recycle","numberOfPieces","debug","tweenFunction","tweenDuration","nP","activeCount","now","tweenInitTime","progressTime","tweenedVal","numToAdd","ctx","confettiDefaults","tweens","Confetti","opts","computedConfettiDefaults","_this$options","onConfettiComplete","lastRunState","lastRecycleState","ref","React","extractCanvasProps","confettiOptions","refs","rest","confettiOptionKeys","refProps","prop","val","ConfettiReactInternal","_Component","_len","_key","_extractCanvasProps","passedProps","canvasStyles","Component","Index","_ref","subscribe","useHydrated","useSyncExternalStore","ClientOnly","children","fallback","React.Fragment","id","jsx","ConfettiShower","EpicToaster","toast","jsxs","Fragment","Toaster","ShowToast","type","title","description","useEffect","showToast","appStylesheetUrl","tailwindStylesheetUrl","links","rel","href","meta","data","getSeoMetaTags","instructor","workshopTitle","workshopSubtitle","requestInfo","Document","env","className","revalidator","useRevalidator","window","__epicshop","handleFileChange","revalidate","lang","ClientHintCheck","Meta","charSet","name","content","Links","dangerouslySetInnerHTML","__html","JSON","stringify","Scripts","ENV","EPICSHOP_DEPLOYED","getWebsocketJS","App","useLoaderData","navigation","useNavigation","showSpinner","useSpinDelay","state","delay","minDuration","altDown","useAltDown","theme","useTheme","cn","Outlet","confettiId","EpicProgress","AppWithProviders","user","Presence","TooltipProvider","ErrorBoundary","GeneralErrorBoundary"],"mappings":"upBAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAeA,IAAIA,EAAc,YAQlB,SAASC,GAAkB,CACzB,OAAAC,EACA,GAAGC,CACL,EAAG,CACD,GAAI,CACF,UAAAC,CACD,EAAGC,GAAe,EACfC,EAAWC,IACXC,EAAUC,IACdC,GAA4B,CAC1B,OAAAR,EACA,WAAYF,CAChB,CAAG,EAQD,IAAIW,EAAMC,EAAAA,QAAc,IAAM,CAC5B,GAAI,CAACV,EAAQ,OAAO,KACpB,IAAIW,EAAUX,EAAOI,EAA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ACf,CAEF,CAEA,SAAwBC,IAAmB,CACpC,KAAA,CAAEC,KAAAA,CAAK,EAAIjB,EAA6B,EAE7C,OAAAlD,EAAAA,IAACoE,IAASD,KAAAA,EACTvE,SAAAI,EAAA,IAACqE,IACAzE,SAACI,EAAAA,IAAAiD,GAAA,EAAI,EACN,CACD,CAAA,CAEF,CAEO,SAASqB,IAAgB,CAC/B,aACE7C,EAAS,CAAAE,UAAU,gBACnB/B,SAAAI,EAAAA,IAACuE,IAAqB,CACvB,CAAA,CAEF,CAEA,SAASvB,IAAiB,CA2DlB,MA1DqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA2D7B","x_google_ignoreList":[0,1,2,3,4]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function h({title:a,description:n,instructor:e,requestInfo:m,ogTitle:t=a,ogDescription:g=n,ogImageUrl:o=m.domain+"/og?"+new URLSearchParams({title:t,subtitle:g??"",urlPathname:m.path,version:"v1"}).toString(),ogImageAlt:l=a}){return[{title:a},n?{description:n}:null,e!=null&&e.name?{name:"author",content:e.name}:null,{name:"og:site_name",content:a},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:creator",content:e==null?void 0:e["𝕏"]},{name:"og:title",content:t},n?{name:"og:description",content:g}:null,{name:"og:type",content:"website"},{name:"og:image:width",content:"1200"},{name:"og:image:height",content:"630"},{name:"og:image:alt",content:l},{name:"og:image",content:o}].filter(Boolean)}export{h as g};
|
|
2
|
+
//# sourceMappingURL=seo-CHrqghsC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seo-CHrqghsC.js","sources":["../../../app/utils/seo.ts"],"sourcesContent":["import { type getWorkshopInstructor } from '@epic-web/workshop-utils/apps.server'\n\nexport function getSeoMetaTags({\n\ttitle,\n\tdescription,\n\tinstructor,\n\trequestInfo,\n\togTitle = title,\n\togDescription = description,\n\togImageUrl = requestInfo.domain +\n\t\t'/og?' +\n\t\tnew URLSearchParams({\n\t\t\ttitle: ogTitle,\n\t\t\tsubtitle: ogDescription ?? '',\n\t\t\turlPathname: requestInfo.path,\n\t\t\t// to make cache busting possible, whenever the og image changes, we can change the version\n\t\t\t// note if the inputs change, then the cache will be busted automatically\n\t\t\t// it's only if the image changes that we need to change the version\n\t\t\tversion: 'v1',\n\t\t}).toString(),\n\togImageAlt = title,\n}: {\n\ttitle: string\n\trequestInfo: { domain: string; path: string }\n\tdescription?: string\n\tinstructor: Awaited<ReturnType<typeof getWorkshopInstructor>>\n\togTitle?: string\n\togDescription?: string\n\togImageUrl?: string\n\togImageAlt?: string\n}) {\n\treturn [\n\t\t{ title: title },\n\t\tdescription ? { description } : null,\n\t\tinstructor?.name ? { name: 'author', content: instructor.name } : null,\n\t\t{ name: 'og:site_name', content: title },\n\t\t{ name: 'twitter:card', content: 'summary_large_image' },\n\t\t{ name: 'twitter:creator', content: instructor?.['𝕏'] },\n\t\t{ name: 'og:title', content: ogTitle },\n\t\tdescription ? { name: 'og:description', content: ogDescription } : null,\n\t\t{ name: 'og:type', content: 'website' },\n\t\t{ name: 'og:image:width', content: '1200' },\n\t\t{ name: 'og:image:height', content: '630' },\n\t\t{ name: 'og:image:alt', content: ogImageAlt },\n\t\t{ name: 'og:image', content: ogImageUrl },\n\t].filter(Boolean)\n}\n"],"names":["getSeoMetaTags","title","description","instructor","requestInfo","ogTitle","ogDescription","ogImageUrl","ogImageAlt"],"mappings":"AAEO,SAASA,EAAe,CAC9B,MAAAC,EACA,YAAAC,EACA,WAAAC,EACA,YAAAC,EACA,QAAAC,EAAUJ,EACV,cAAAK,EAAgBJ,EAChB,WAAAK,EAAaH,EAAY,OACxB,OACA,IAAI,gBAAgB,CACnB,MAAOC,EACP,SAAUC,GAAiB,GAC3B,YAAaF,EAAY,KAIzB,QAAS,IACT,CAAA,EAAE,SAAS,EACb,WAAAI,EAAaP,CACd,EASG,CACK,MAAA,CACN,CAAE,MAAAA,CAAa,EACfC,EAAc,CAAE,YAAAA,CAAA,EAAgB,KAChCC,GAAA,MAAAA,EAAY,KAAO,CAAE,KAAM,SAAU,QAASA,EAAW,MAAS,KAClE,CAAE,KAAM,eAAgB,QAASF,CAAM,EACvC,CAAE,KAAM,eAAgB,QAAS,qBAAsB,EACvD,CAAE,KAAM,kBAAmB,QAASE,GAAA,YAAAA,EAAa,KAAM,EACvD,CAAE,KAAM,WAAY,QAASE,CAAQ,EACrCH,EAAc,CAAE,KAAM,iBAAkB,QAASI,CAAkB,EAAA,KACnE,CAAE,KAAM,UAAW,QAAS,SAAU,EACtC,CAAE,KAAM,iBAAkB,QAAS,MAAO,EAC1C,CAAE,KAAM,kBAAmB,QAAS,KAAM,EAC1C,CAAE,KAAM,eAAgB,QAASE,CAAW,EAC5C,CAAE,KAAM,WAAY,QAASD,CAAW,CAAA,EACvC,OAAO,OAAO,CACjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"support-DUAHYT3r.js","sources":["../../../app/routes/_app+/support.tsx"],"sourcesContent":["import { Link } from '@remix-run/react'\n\nexport default function Support() {\n\tconst repoGroups = ENV.EPICSHOP_GITHUB_ROOT.match(\n\t\t/github\\.com\\/(?<org>[^/?]+)\\/(?<repo>[^/?]+)/,\n\t)?.groups\n\n\tlet repoUrl = ENV.EPICSHOP_GITHUB_ROOT\n\tlet repoIssuesUrl = repoUrl\n\tif (repoGroups?.org && repoGroups.repo) {\n\t\trepoUrl = `https://github.com/${repoGroups.org}/${repoGroups.repo}`\n\t\trepoIssuesUrl = `${repoUrl}/issues`\n\t}\n\treturn (\n\t\t<div className=\"container flex h-full max-w-3xl flex-col items-center justify-center gap-4 p-12\">\n\t\t\t<h1 className=\"text-5xl font-bold\">Support</h1>\n\t\t\t<p>\n\t\t\t\tWe're here to support you! Depending on the kind of support you need,\n\t\t\t\tyou will want to reach out in different places:\n\t\t\t</p>\n\t\t\t<ul className=\"list-disc\">\n\t\t\t\t<li>\n\t\t\t\t\tTechnical issues:{' '}\n\t\t\t\t\t<a href=\"mailto:team@epicweb.dev\" className=\"underline\">\n\t\t\t\t\t\tteam@epicweb.dev\n\t\t\t\t\t</a>{' '}\n\t\t\t\t\t– Helpful if you're having trouble with or have feedback for your\n\t\t\t\t\tEpicWeb.dev account or access to course content.\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\tWorkshop App:{' '}\n\t\t\t\t\t<a\n\t\t\t\t\t\thref=\"https://github.com/epicweb-dev/epicshop/issues\"\n\t\t\t\t\t\tclassName=\"underline\"\n\t\t\t\t\t>\n\t\t\t\t\t\tgithub.com/epicweb-dev/epicshop\n\t\t\t\t\t</a>{' '}\n\t\t\t\t\t– Helpful if you're having trouble with or feedback for the local\n\t\t\t\t\tworkshop app.\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\tWorkshop content:{' '}\n\t\t\t\t\t<a href={repoIssuesUrl} className=\"underline\">\n\t\t\t\t\t\t{repoUrl.replace('https://', '')}\n\t\t\t\t\t</a>{' '}\n\t\t\t\t\t– Open an issue or pull request here to report an issue with the\n\t\t\t\t\tcontent of this workshop.\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\tDiscord:{' '}\n\t\t\t\t\t<Link to=\"/discord\" className=\"underline\">\n\t\t\t\t\t\t/discord\n\t\t\t\t\t</Link>{' '}\n\t\t\t\t\t– Connect your account with discord to get access to the private forum\n\t\t\t\t\tand ask questions of other students and the workshop instructor.\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t)\n}\n"],"names":["Support","repoGroups","ENV","EPICSHOP_GITHUB_ROOT","match","groups","repoUrl","repoIssuesUrl","org","repo","jsxs","className","children","jsx","href","replace","Link","to"],"mappings":"qFAEA,SAAwBA,GAAU,OAC3B,MAAAC,GAAaC,EAAAA,IAAIC,qBAAqBC,MAC3C,8CACD,IAFmBF,YAAAA,EAEhBG,OAEH,IAAIC,EAAUJ,IAAIC,qBACdI,EAAgBD,EAChB,OAAAL,GAAAA,MAAAA,EAAYO,KAAOP,EAAWQ,OACjCH,
|
|
1
|
+
{"version":3,"file":"support-DUAHYT3r.js","sources":["../../../app/routes/_app+/support.tsx"],"sourcesContent":["import { Link } from '@remix-run/react'\n\nexport default function Support() {\n\tconst repoGroups = ENV.EPICSHOP_GITHUB_ROOT.match(\n\t\t/github\\.com\\/(?<org>[^/?]+)\\/(?<repo>[^/?]+)/,\n\t)?.groups\n\n\tlet repoUrl = ENV.EPICSHOP_GITHUB_ROOT\n\tlet repoIssuesUrl = repoUrl\n\tif (repoGroups?.org && repoGroups.repo) {\n\t\trepoUrl = `https://github.com/${repoGroups.org}/${repoGroups.repo}`\n\t\trepoIssuesUrl = `${repoUrl}/issues`\n\t}\n\treturn (\n\t\t<div className=\"container flex h-full max-w-3xl flex-col items-center justify-center gap-4 p-12\">\n\t\t\t<h1 className=\"text-5xl font-bold\">Support</h1>\n\t\t\t<p>\n\t\t\t\tWe're here to support you! Depending on the kind of support you need,\n\t\t\t\tyou will want to reach out in different places:\n\t\t\t</p>\n\t\t\t<ul className=\"list-disc\">\n\t\t\t\t<li>\n\t\t\t\t\tTechnical issues:{' '}\n\t\t\t\t\t<a href=\"mailto:team@epicweb.dev\" className=\"underline\">\n\t\t\t\t\t\tteam@epicweb.dev\n\t\t\t\t\t</a>{' '}\n\t\t\t\t\t– Helpful if you're having trouble with or have feedback for your\n\t\t\t\t\tEpicWeb.dev account or access to course content.\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\tWorkshop App:{' '}\n\t\t\t\t\t<a\n\t\t\t\t\t\thref=\"https://github.com/epicweb-dev/epicshop/issues\"\n\t\t\t\t\t\tclassName=\"underline\"\n\t\t\t\t\t>\n\t\t\t\t\t\tgithub.com/epicweb-dev/epicshop\n\t\t\t\t\t</a>{' '}\n\t\t\t\t\t– Helpful if you're having trouble with or feedback for the local\n\t\t\t\t\tworkshop app.\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\tWorkshop content:{' '}\n\t\t\t\t\t<a href={repoIssuesUrl} className=\"underline\">\n\t\t\t\t\t\t{repoUrl.replace('https://', '')}\n\t\t\t\t\t</a>{' '}\n\t\t\t\t\t– Open an issue or pull request here to report an issue with the\n\t\t\t\t\tcontent of this workshop.\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\tDiscord:{' '}\n\t\t\t\t\t<Link to=\"/discord\" className=\"underline\">\n\t\t\t\t\t\t/discord\n\t\t\t\t\t</Link>{' '}\n\t\t\t\t\t– Connect your account with discord to get access to the private forum\n\t\t\t\t\tand ask questions of other students and the workshop instructor.\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t)\n}\n"],"names":["Support","repoGroups","ENV","EPICSHOP_GITHUB_ROOT","match","groups","repoUrl","repoIssuesUrl","org","repo","jsxs","className","children","jsx","href","replace","Link","to"],"mappings":"qFAEA,SAAwBA,GAAU,OAC3B,MAAAC,GAAaC,EAAAA,IAAIC,qBAAqBC,MAC3C,8CACD,IAFmBF,YAAAA,EAEhBG,OAEH,IAAIC,EAAUJ,IAAIC,qBACdI,EAAgBD,EAChB,OAAAL,GAAAA,MAAAA,EAAYO,KAAOP,EAAWQ,OACjCH,EAAU,sBAAsBL,EAAWO,GAAG,IAAIP,EAAWQ,IAAI,GACjEF,EAAgB,GAAGD,CAAO,WAG1BI,EAAAA,KAAC,MAAI,CAAAC,UAAU,kFACdC,SAAA,CAACC,EAAA,IAAA,KAAA,CAAGF,UAAU,qBAAqBC,SAAO,SAAA,CAAA,EAC1CC,EAAA,IAAC,KAAED,SAGH,uHAAA,CAAA,EACAF,EAAA,KAAC,KAAG,CAAAC,UAAU,YACbC,SAAA,CAAAF,EAAA,KAAC,KAAG,CAAAE,SAAA,CAAA,oBACe,UACjB,IAAE,CAAAE,KAAK,0BAA0BH,UAAU,YAAYC,SAExD,kBAAA,CAAA,EAAK,IAAI,oHAAA,CAGV,CAAA,SACC,KAAG,CAAAA,SAAA,CAAA,gBACW,IACdC,EAAAA,IAAC,IAAA,CACAC,KAAK,iDACLH,UAAU,YACVC,SAAA,iCAAA,CAED,EAAK,IAAI,iFAAA,CAGV,CAAA,SACC,KAAG,CAAAA,SAAA,CAAA,oBACe,IAClBC,EAAAA,IAAC,IAAE,CAAAC,KAAMP,EAAeI,UAAU,YAChCC,SAAQN,EAAAS,QAAQ,WAAY,EAAE,CAChC,CAAA,EAAK,IAAI,4FAAA,CAGV,CAAA,SACC,KAAG,CAAAH,SAAA,CAAA,WACM,UACRI,EAAK,CAAAC,GAAG,WAAWN,UAAU,YAAYC,SAE1C,UAAA,CAAA,EAAQ,IAAI,yIAAA,CAGb,CAAA,CAAA,CACD,CAAA,CAAA,CACD,CAAA,CAEF"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as a,$ as zt,j as we}from"./index-D6ygCrVn.js";import{r as Le}from"./components-C5xBZAiL.js";import{c as Vt}from"./misc-DNgC2Frq.js";function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},N.apply(null,arguments)}function V(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function jt(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function it(...e){return t=>e.forEach(n=>jt(n,t))}function te(...e){return a.useCallback(it(...e),e)}function st(e,t=[]){let n=[];function o(i,s){const l=a.createContext(s),c=n.length;n=[...n,s];function f(d){const{scope:m,children:p,...h}=d,v=(m==null?void 0:m[e][c])||l,g=a.useMemo(()=>h,Object.values(h));return a.createElement(v.Provider,{value:g},p)}function u(d,m){const p=(m==null?void 0:m[e][c])||l,h=a.useContext(p);if(h)return h;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return f.displayName=i+"Provider",[f,u]}const r=()=>{const i=n.map(s=>a.createContext(s));return function(l){const c=(l==null?void 0:l[e])||i;return a.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return r.scopeName=e,[o,Ut(r,...t)]}function Ut(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const s=o.reduce((l,{useScope:c,scopeName:f})=>{const d=c(i)[`__scope${f}`];return{...l,...d}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}const ct=a.forwardRef((e,t)=>{const{children:n,...o}=e,r=a.Children.toArray(n),i=r.find(Yt);if(i){const s=i.props.children,l=r.map(c=>c===i?a.Children.count(s)>1?a.Children.only(null):a.isValidElement(s)?s.props.children:null:c);return a.createElement(Te,N({},o,{ref:t}),a.isValidElement(s)?a.cloneElement(s,void 0,l):null)}return a.createElement(Te,N({},o,{ref:t}),n)});ct.displayName="Slot";const Te=a.forwardRef((e,t)=>{const{children:n,...o}=e;return a.isValidElement(n)?a.cloneElement(n,{...Xt(o,n.props),ref:t?it(t,n.ref):n.ref}):a.Children.count(n)>1?a.Children.only(null):null});Te.displayName="SlotClone";const at=({children:e})=>a.createElement(a.Fragment,null,e);function Yt(e){return a.isValidElement(e)&&e.type===at}function Xt(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...l)=>{i(...l),r(...l)}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}const Gt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],fe=Gt.reduce((e,t)=>{const n=a.forwardRef((o,r)=>{const{asChild:i,...s}=o,l=i?ct:t;return a.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),a.createElement(l,N({},s,{ref:r}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Kt(e,t){e&&Le.flushSync(()=>e.dispatchEvent(t))}function ne(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>{var o;return(o=t.current)===null||o===void 0?void 0:o.call(t,...n)},[])}function qt(e,t=globalThis==null?void 0:globalThis.document){const n=ne(e);a.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o),()=>t.removeEventListener("keydown",o)},[n,t])}const Re="dismissableLayer.update",Zt="dismissableLayer.pointerDownOutside",Jt="dismissableLayer.focusOutside";let Xe;const Qt=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),en=a.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...f}=e,u=a.useContext(Qt),[d,m]=a.useState(null),p=(n=d==null?void 0:d.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,h]=a.useState({}),v=te(t,E=>m(E)),g=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),$=g.indexOf(w),x=d?g.indexOf(d):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,b=x>=$,C=tn(E=>{const S=E.target,_=[...u.branches].some(D=>D.contains(S));!b||_||(i==null||i(E),l==null||l(E),E.defaultPrevented||c==null||c())},p),P=nn(E=>{const S=E.target;[...u.branches].some(D=>D.contains(S))||(s==null||s(E),l==null||l(E),E.defaultPrevented||c==null||c())},p);return qt(E=>{x===u.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&c&&(E.preventDefault(),c()))},p),a.useEffect(()=>{if(d)return o&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Xe=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Ge(),()=>{o&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Xe)}},[d,p,o,u]),a.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Ge())},[d,u]),a.useEffect(()=>{const E=()=>h({});return document.addEventListener(Re,E),()=>document.removeEventListener(Re,E)},[]),a.createElement(fe.div,N({},f,{ref:v,style:{pointerEvents:y?b?"auto":"none":void 0,...e.style},onFocusCapture:V(e.onFocusCapture,P.onFocusCapture),onBlurCapture:V(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:V(e.onPointerDownCapture,C.onPointerDownCapture)}))});function tn(e,t=globalThis==null?void 0:globalThis.document){const n=ne(e),o=a.useRef(!1),r=a.useRef(()=>{});return a.useEffect(()=>{const i=l=>{if(l.target&&!o.current){let f=function(){lt(Zt,n,c,{discrete:!0})};const c={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=f,t.addEventListener("click",r.current,{once:!0})):f()}else t.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function nn(e,t=globalThis==null?void 0:globalThis.document){const n=ne(e),o=a.useRef(!1);return a.useEffect(()=>{const r=i=>{i.target&&!o.current&<(Jt,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Ge(){const e=new CustomEvent(Re);document.dispatchEvent(e)}function lt(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Kt(r,i):r.dispatchEvent(i)}const Q=globalThis!=null&&globalThis.document?a.useLayoutEffect:()=>{},on=zt.useId||(()=>{});let rn=0;function sn(e){const[t,n]=a.useState(on());return Q(()=>{e||n(o=>o??String(rn++))},[e]),e||(t?`radix-${t}`:"")}const cn=["top","right","bottom","left"],H=Math.min,M=Math.max,xe=Math.round,ge=Math.floor,G=e=>({x:e,y:e}),an={left:"right",right:"left",bottom:"top",top:"bottom"},ln={start:"end",end:"start"};function Se(e,t,n){return M(e,H(t,n))}function j(e,t){return typeof e=="function"?e(t):e}function U(e){return e.split("-")[0]}function oe(e){return e.split("-")[1]}function Ne(e){return e==="x"?"y":"x"}function Me(e){return e==="y"?"height":"width"}function re(e){return["top","bottom"].includes(U(e))?"y":"x"}function ke(e){return Ne(re(e))}function fn(e,t,n){n===void 0&&(n=!1);const o=oe(e),r=ke(e),i=Me(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ye(s)),[s,ye(s)]}function un(e){const t=ye(e);return[De(e),t,De(t)]}function De(e){return e.replace(/start|end/g,t=>ln[t])}function dn(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:s;default:return[]}}function pn(e,t,n,o){const r=oe(e);let i=dn(U(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(De)))),i}function ye(e){return e.replace(/left|right|bottom|top/g,t=>an[t])}function mn(e){return{top:0,right:0,bottom:0,left:0,...e}}function ft(e){return typeof e!="number"?mn(e):{top:e,right:e,bottom:e,left:e}}function be(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Ke(e,t,n){let{reference:o,floating:r}=e;const i=re(t),s=ke(t),l=Me(s),c=U(t),f=i==="y",u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,m=o[l]/2-r[l]/2;let p;switch(c){case"top":p={x:u,y:o.y-r.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(oe(t)){case"start":p[s]-=m*(n&&f?-1:1);break;case"end":p[s]+=m*(n&&f?-1:1);break}return p}const hn=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=Ke(f,o,c),m=o,p={},h=0;for(let v=0;v<l.length;v++){const{name:g,fn:w}=l[v],{x:$,y:x,data:y,reset:b}=await w({x:u,y:d,initialPlacement:o,placement:m,strategy:r,middlewareData:p,rects:f,platform:s,elements:{reference:e,floating:t}});u=$??u,d=x??d,p={...p,[g]:{...p[g],...y}},b&&h<=50&&(h++,typeof b=="object"&&(b.placement&&(m=b.placement),b.rects&&(f=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):b.rects),{x:u,y:d}=Ke(f,m,c)),v=-1)}return{x:u,y:d,placement:m,strategy:r,middlewareData:p}};async function ce(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:l,strategy:c}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=j(t,e),h=ft(p),g=l[m?d==="floating"?"reference":"floating":d],w=be(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(g)))==null||n?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:f,rootBoundary:u,strategy:c})),$=d==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),y=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},b=be(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:$,offsetParent:x,strategy:c}):$);return{top:(w.top-b.top+h.top)/y.y,bottom:(b.bottom-w.bottom+h.bottom)/y.y,left:(w.left-b.left+h.left)/y.x,right:(b.right-w.right+h.right)/y.x}}const gn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:l,middlewareData:c}=t,{element:f,padding:u=0}=j(e,t)||{};if(f==null)return{};const d=ft(u),m={x:n,y:o},p=ke(r),h=Me(p),v=await s.getDimensions(f),g=p==="y",w=g?"top":"left",$=g?"bottom":"right",x=g?"clientHeight":"clientWidth",y=i.reference[h]+i.reference[p]-m[p]-i.floating[h],b=m[p]-i.reference[p],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let P=C?C[x]:0;(!P||!await(s.isElement==null?void 0:s.isElement(C)))&&(P=l.floating[x]||i.floating[h]);const E=y/2-b/2,S=P/2-v[h]/2-1,_=H(d[w],S),D=H(d[$],S),T=_,I=P-v[h]-D,A=P/2-v[h]/2+E,R=Se(T,A,I),L=!c.arrow&&oe(r)!=null&&A!==R&&i.reference[h]/2-(A<T?_:D)-v[h]/2<0,O=L?A<T?A-T:A-I:0;return{[p]:m[p]+O,data:{[p]:R,centerOffset:A-R-O,...L&&{alignmentOffset:O}},reset:L}}}),vn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:f}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...g}=j(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=U(r),$=U(l)===l,x=await(c.isRTL==null?void 0:c.isRTL(f.floating)),y=m||($||!v?[ye(l)]:un(l));!m&&h!=="none"&&y.push(...pn(l,v,h,x));const b=[l,...y],C=await ce(t,g),P=[];let E=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&P.push(C[w]),d){const T=fn(r,s,x);P.push(C[T[0]],C[T[1]])}if(E=[...E,{placement:r,overflows:P}],!P.every(T=>T<=0)){var S,_;const T=(((S=i.flip)==null?void 0:S.index)||0)+1,I=b[T];if(I)return{data:{index:T,overflows:E},reset:{placement:I}};let A=(_=E.filter(R=>R.overflows[0]<=0).sort((R,L)=>R.overflows[1]-L.overflows[1])[0])==null?void 0:_.placement;if(!A)switch(p){case"bestFit":{var D;const R=(D=E.map(L=>[L.placement,L.overflows.filter(O=>O>0).reduce((O,X)=>O+X,0)]).sort((L,O)=>L[1]-O[1])[0])==null?void 0:D[0];R&&(A=R);break}case"initialPlacement":A=l;break}if(r!==A)return{reset:{placement:A}}}return{}}}};function qe(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ze(e){return cn.some(t=>e[t]>=0)}const wn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=j(e,t);switch(o){case"referenceHidden":{const i=await ce(t,{...r,elementContext:"reference"}),s=qe(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ze(s)}}}case"escaped":{const i=await ce(t,{...r,altBoundary:!0}),s=qe(i,n.floating);return{data:{escapedOffsets:s,escaped:Ze(s)}}}default:return{}}}}};async function $n(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=U(n),l=oe(n),c=re(n)==="y",f=["left","top"].includes(s)?-1:1,u=i&&c?-1:1,d=j(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&typeof h=="number"&&(p=l==="end"?h*-1:h),c?{x:p*u,y:m*f}:{x:m*f,y:p*u}}const xn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:l}=t,c=await $n(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:s}}}}},yn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:g=>{let{x:w,y:$}=g;return{x:w,y:$}}},...c}=j(e,t),f={x:n,y:o},u=await ce(t,c),d=re(U(r)),m=Ne(d);let p=f[m],h=f[d];if(i){const g=m==="y"?"top":"left",w=m==="y"?"bottom":"right",$=p+u[g],x=p-u[w];p=Se($,p,x)}if(s){const g=d==="y"?"top":"left",w=d==="y"?"bottom":"right",$=h+u[g],x=h-u[w];h=Se($,h,x)}const v=l.fn({...t,[m]:p,[d]:h});return{...v,data:{x:v.x-n,y:v.y-o}}}}},bn=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:f=!0}=j(e,t),u={x:n,y:o},d=re(r),m=Ne(d);let p=u[m],h=u[d];const v=j(l,t),g=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const x=m==="y"?"height":"width",y=i.reference[m]-i.floating[x]+g.mainAxis,b=i.reference[m]+i.reference[x]-g.mainAxis;p<y?p=y:p>b&&(p=b)}if(f){var w,$;const x=m==="y"?"width":"height",y=["top","left"].includes(U(r)),b=i.reference[d]-i.floating[x]+(y&&((w=s.offset)==null?void 0:w[d])||0)+(y?0:g.crossAxis),C=i.reference[d]+i.reference[x]+(y?0:(($=s.offset)==null?void 0:$[d])||0)-(y?g.crossAxis:0);h<b?h=b:h>C&&(h=C)}return{[m]:p,[d]:h}}}},En=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:i}=t,{apply:s=()=>{},...l}=j(e,t),c=await ce(t,l),f=U(n),u=oe(n),d=re(n)==="y",{width:m,height:p}=o.floating;let h,v;f==="top"||f==="bottom"?(h=f,v=u===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(v=f,h=u==="end"?"top":"bottom");const g=p-c.top-c.bottom,w=m-c.left-c.right,$=H(p-c[h],g),x=H(m-c[v],w),y=!t.middlewareData.shift;let b=$,C=x;if(d?C=u||y?H(x,w):w:b=u||y?H($,g):g,y&&!u){const E=M(c.left,0),S=M(c.right,0),_=M(c.top,0),D=M(c.bottom,0);d?C=m-2*(E!==0||S!==0?E+S:M(c.left,c.right)):b=p-2*(_!==0||D!==0?_+D:M(c.top,c.bottom))}await s({...t,availableWidth:C,availableHeight:b});const P=await r.getDimensions(i.floating);return m!==P.width||p!==P.height?{reset:{rects:!0}}:{}}}};function ie(e){return ut(e)?(e.nodeName||"").toLowerCase():"#document"}function k(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Y(e){var t;return(t=(ut(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ut(e){return e instanceof Node||e instanceof k(e).Node}function W(e){return e instanceof Element||e instanceof k(e).Element}function B(e){return e instanceof HTMLElement||e instanceof k(e).HTMLElement}function Je(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof k(e).ShadowRoot}function ue(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=F(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function Cn(e){return["table","td","th"].includes(ie(e))}function Ie(e){const t=Fe(),n=F(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Pn(e){let t=K(e);for(;B(t)&&!ee(t);){if(Ie(t))return t;t=K(t)}return null}function Fe(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ee(e){return["html","body","#document"].includes(ie(e))}function F(e){return k(e).getComputedStyle(e)}function Ce(e){return W(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function K(e){if(ie(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Je(e)&&e.host||Y(e);return Je(t)?t.host:t}function dt(e){const t=K(e);return ee(t)?e.ownerDocument?e.ownerDocument.body:e.body:B(t)&&ue(t)?t:dt(t)}function ae(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=dt(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=k(r);return i?t.concat(s,s.visualViewport||[],ue(r)?r:[],s.frameElement&&n?ae(s.frameElement):[]):t.concat(r,ae(r,[],n))}function pt(e){const t=F(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=B(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,l=xe(n)!==i||xe(o)!==s;return l&&(n=i,o=s),{width:n,height:o,$:l}}function He(e){return W(e)?e:e.contextElement}function J(e){const t=He(e);if(!B(t))return G(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=pt(t);let s=(i?xe(n.width):n.width)/o,l=(i?xe(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const On=G(0);function mt(e){const t=k(e);return!Fe()||!t.visualViewport?On:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function An(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==k(e)?!1:t}function q(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=He(e);let s=G(1);t&&(o?W(o)&&(s=J(o)):s=J(e));const l=An(i,n,o)?mt(i):G(0);let c=(r.left+l.x)/s.x,f=(r.top+l.y)/s.y,u=r.width/s.x,d=r.height/s.y;if(i){const m=k(i),p=o&&W(o)?k(o):o;let h=m,v=h.frameElement;for(;v&&o&&p!==h;){const g=J(v),w=v.getBoundingClientRect(),$=F(v),x=w.left+(v.clientLeft+parseFloat($.paddingLeft))*g.x,y=w.top+(v.clientTop+parseFloat($.paddingTop))*g.y;c*=g.x,f*=g.y,u*=g.x,d*=g.y,c+=x,f+=y,h=k(v),v=h.frameElement}}return be({width:u,height:d,x:c,y:f})}const Tn=[":popover-open",":modal"];function We(e){return Tn.some(t=>{try{return e.matches(t)}catch{return!1}})}function Rn(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=Y(o),l=t?We(t.floating):!1;if(o===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},f=G(1);const u=G(0),d=B(o);if((d||!d&&!i)&&((ie(o)!=="body"||ue(s))&&(c=Ce(o)),B(o))){const m=q(o);f=J(o),u.x=m.x+o.clientLeft,u.y=m.y+o.clientTop}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+u.x,y:n.y*f.y-c.scrollTop*f.y+u.y}}function Sn(e){return Array.from(e.getClientRects())}function ht(e){return q(Y(e)).left+Ce(e).scrollLeft}function Dn(e){const t=Y(e),n=Ce(e),o=e.ownerDocument.body,r=M(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=M(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+ht(e);const l=-n.scrollTop;return F(o).direction==="rtl"&&(s+=M(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:l}}function _n(e,t){const n=k(e),o=Y(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,l=0,c=0;if(r){i=r.width,s=r.height;const f=Fe();(!f||f&&t==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:s,x:l,y:c}}function Ln(e,t){const n=q(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=B(e)?J(e):G(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,c=r*i.x,f=o*i.y;return{width:s,height:l,x:c,y:f}}function Qe(e,t,n){let o;if(t==="viewport")o=_n(e,n);else if(t==="document")o=Dn(Y(e));else if(W(t))o=Ln(t,n);else{const r=mt(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return be(o)}function gt(e,t){const n=K(e);return n===t||!W(n)||ee(n)?!1:F(n).position==="fixed"||gt(n,t)}function Nn(e,t){const n=t.get(e);if(n)return n;let o=ae(e,[],!1).filter(l=>W(l)&&ie(l)!=="body"),r=null;const i=F(e).position==="fixed";let s=i?K(e):e;for(;W(s)&&!ee(s);){const l=F(s),c=Ie(s);!c&&l.position==="fixed"&&(r=null),(i?!c&&!r:!c&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||ue(s)&&!c&>(e,s))?o=o.filter(u=>u!==s):r=l,s=K(s)}return t.set(e,o),o}function Mn(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?We(t)?[]:Nn(t,this._c):[].concat(n),o],l=s[0],c=s.reduce((f,u)=>{const d=Qe(t,u,r);return f.top=M(d.top,f.top),f.right=H(d.right,f.right),f.bottom=H(d.bottom,f.bottom),f.left=M(d.left,f.left),f},Qe(t,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function kn(e){const{width:t,height:n}=pt(e);return{width:t,height:n}}function In(e,t,n){const o=B(t),r=Y(t),i=n==="fixed",s=q(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=G(0);if(o||!o&&!i)if((ie(t)!=="body"||ue(r))&&(l=Ce(t)),o){const d=q(t,!0,i,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else r&&(c.x=ht(r));const f=s.left+l.scrollLeft-c.x,u=s.top+l.scrollTop-c.y;return{x:f,y:u,width:s.width,height:s.height}}function Ae(e){return F(e).position==="static"}function et(e,t){return!B(e)||F(e).position==="fixed"?null:t?t(e):e.offsetParent}function vt(e,t){const n=k(e);if(We(e))return n;if(!B(e)){let r=K(e);for(;r&&!ee(r);){if(W(r)&&!Ae(r))return r;r=K(r)}return n}let o=et(e,t);for(;o&&Cn(o)&&Ae(o);)o=et(o,t);return o&&ee(o)&&Ae(o)&&!Ie(o)?n:o||Pn(e)||n}const Fn=async function(e){const t=this.getOffsetParent||vt,n=this.getDimensions,o=await n(e.floating);return{reference:In(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Hn(e){return F(e).direction==="rtl"}const Wn={convertOffsetParentRelativeRectToViewportRelativeRect:Rn,getDocumentElement:Y,getClippingRect:Mn,getOffsetParent:vt,getElementRects:Fn,getClientRects:Sn,getDimensions:kn,getScale:J,isElement:W,isRTL:Hn};function Bn(e,t){let n=null,o;const r=Y(e);function i(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const{left:f,top:u,width:d,height:m}=e.getBoundingClientRect();if(l||t(),!d||!m)return;const p=ge(u),h=ge(r.clientWidth-(f+d)),v=ge(r.clientHeight-(u+m)),g=ge(f),$={rootMargin:-p+"px "+-h+"px "+-v+"px "+-g+"px",threshold:M(0,H(1,c))||1};let x=!0;function y(b){const C=b[0].intersectionRatio;if(C!==c){if(!x)return s();C?s(!1,C):o=setTimeout(()=>{s(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(y,{...$,root:r.ownerDocument})}catch{n=new IntersectionObserver(y,$)}n.observe(e)}return s(!0),i}function zn(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,f=He(e),u=r||i?[...f?ae(f):[],...ae(t)]:[];u.forEach(w=>{r&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const d=f&&l?Bn(f,n):null;let m=-1,p=null;s&&(p=new ResizeObserver(w=>{let[$]=w;$&&$.target===f&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),f&&!c&&p.observe(f),p.observe(t));let h,v=c?q(e):null;c&&g();function g(){const w=q(e);v&&(w.x!==v.x||w.y!==v.y||w.width!==v.width||w.height!==v.height)&&n(),v=w,h=requestAnimationFrame(g)}return n(),()=>{var w;u.forEach($=>{r&&$.removeEventListener("scroll",n),i&&$.removeEventListener("resize",n)}),d==null||d(),(w=p)==null||w.disconnect(),p=null,c&&cancelAnimationFrame(h)}}const Vn=xn,jn=yn,Un=vn,Yn=En,Xn=wn,tt=gn,Gn=bn,Kn=(e,t,n)=>{const o=new Map,r={platform:Wn,...n},i={...r.platform,_c:o};return hn(e,t,{...r,platform:i})};var $e=typeof document<"u"?a.useLayoutEffect:a.useEffect;function Ee(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!Ee(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!Ee(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function wt(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function nt(e,t){const n=wt(e);return Math.round(t*n)/n}function ot(e){const t=a.useRef(e);return $e(()=>{t.current=e}),t}function qn(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:f}=e,[u,d]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=a.useState(o);Ee(m,o)||p(o);const[h,v]=a.useState(null),[g,w]=a.useState(null),$=a.useCallback(O=>{O!==C.current&&(C.current=O,v(O))},[]),x=a.useCallback(O=>{O!==P.current&&(P.current=O,w(O))},[]),y=i||h,b=s||g,C=a.useRef(null),P=a.useRef(null),E=a.useRef(u),S=c!=null,_=ot(c),D=ot(r),T=a.useCallback(()=>{if(!C.current||!P.current)return;const O={placement:t,strategy:n,middleware:m};D.current&&(O.platform=D.current),Kn(C.current,P.current,O).then(X=>{const z={...X,isPositioned:!0};I.current&&!Ee(E.current,z)&&(E.current=z,Le.flushSync(()=>{d(z)}))})},[m,t,n,D]);$e(()=>{f===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,d(O=>({...O,isPositioned:!1})))},[f]);const I=a.useRef(!1);$e(()=>(I.current=!0,()=>{I.current=!1}),[]),$e(()=>{if(y&&(C.current=y),b&&(P.current=b),y&&b){if(_.current)return _.current(y,b,T);T()}},[y,b,T,_,S]);const A=a.useMemo(()=>({reference:C,floating:P,setReference:$,setFloating:x}),[$,x]),R=a.useMemo(()=>({reference:y,floating:b}),[y,b]),L=a.useMemo(()=>{const O={position:n,left:0,top:0};if(!R.floating)return O;const X=nt(R.floating,u.x),z=nt(R.floating,u.y);return l?{...O,transform:"translate("+X+"px, "+z+"px)",...wt(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:X,top:z}},[n,l,R.floating,u.x,u.y]);return a.useMemo(()=>({...u,update:T,refs:A,elements:R,floatingStyles:L}),[u,T,A,R,L])}const Zn=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?tt({element:o.current,padding:r}).fn(n):{}:o?tt({element:o,padding:r}).fn(n):{}}}},Jn=(e,t)=>({...Vn(e),options:[e,t]}),Qn=(e,t)=>({...jn(e),options:[e,t]}),eo=(e,t)=>({...Gn(e),options:[e,t]}),to=(e,t)=>({...Un(e),options:[e,t]}),no=(e,t)=>({...Yn(e),options:[e,t]}),oo=(e,t)=>({...Xn(e),options:[e,t]}),ro=(e,t)=>({...Zn(e),options:[e,t]});function io(e){const[t,n]=a.useState(void 0);return Q(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let s,l;if("borderBoxSize"in i){const c=i.borderBoxSize,f=Array.isArray(c)?c[0]:c;s=f.inlineSize,l=f.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}const $t="Popper",[xt,yt]=st($t),[so,bt]=xt($t),co=e=>{const{__scopePopper:t,children:n}=e,[o,r]=a.useState(null);return a.createElement(so,{scope:t,anchor:o,onAnchorChange:r},n)},ao="PopperAnchor",lo=a.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,i=bt(ao,n),s=a.useRef(null),l=te(t,s);return a.useEffect(()=>{i.onAnchorChange((o==null?void 0:o.current)||s.current)}),o?null:a.createElement(fe.div,N({},r,{ref:l}))}),Et="PopperContent",[fo,qo]=xt(Et),uo=a.forwardRef((e,t)=>{var n,o,r,i,s,l,c,f;const{__scopePopper:u,side:d="bottom",sideOffset:m=0,align:p="center",alignOffset:h=0,arrowPadding:v=0,avoidCollisions:g=!0,collisionBoundary:w=[],collisionPadding:$=0,sticky:x="partial",hideWhenDetached:y=!1,updatePositionStrategy:b="optimized",onPlaced:C,...P}=e,E=bt(Et,u),[S,_]=a.useState(null),D=te(t,se=>_(se)),[T,I]=a.useState(null),A=io(T),R=(n=A==null?void 0:A.width)!==null&&n!==void 0?n:0,L=(o=A==null?void 0:A.height)!==null&&o!==void 0?o:0,O=d+(p!=="center"?"-"+p:""),X=typeof $=="number"?$:{top:0,right:0,bottom:0,left:0,...$},z=Array.isArray(w)?w:[w],Rt=z.length>0,de={padding:X,boundary:z.filter(po),altBoundary:Rt},{refs:St,floatingStyles:je,placement:Dt,isPositioned:pe,middlewareData:Z}=qn({strategy:"fixed",placement:O,whileElementsMounted:(...se)=>zn(...se,{animationFrame:b==="always"}),elements:{reference:E.anchor},middleware:[Jn({mainAxis:m+L,alignmentAxis:h}),g&&Qn({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?eo():void 0,...de}),g&&to({...de}),no({...de,apply:({elements:se,rects:Ye,availableWidth:Ft,availableHeight:Ht})=>{const{width:Wt,height:Bt}=Ye.reference,he=se.floating.style;he.setProperty("--radix-popper-available-width",`${Ft}px`),he.setProperty("--radix-popper-available-height",`${Ht}px`),he.setProperty("--radix-popper-anchor-width",`${Wt}px`),he.setProperty("--radix-popper-anchor-height",`${Bt}px`)}}),T&&ro({element:T,padding:v}),mo({arrowWidth:R,arrowHeight:L}),y&&oo({strategy:"referenceHidden",...de})]}),[Ue,_t]=Ct(Dt),me=ne(C);Q(()=>{pe&&(me==null||me())},[pe,me]);const Lt=(r=Z.arrow)===null||r===void 0?void 0:r.x,Nt=(i=Z.arrow)===null||i===void 0?void 0:i.y,Mt=((s=Z.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[kt,It]=a.useState();return Q(()=>{S&&It(window.getComputedStyle(S).zIndex)},[S]),a.createElement("div",{ref:St.setFloating,"data-radix-popper-content-wrapper":"",style:{...je,transform:pe?je.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:kt,"--radix-popper-transform-origin":[(l=Z.transformOrigin)===null||l===void 0?void 0:l.x,(c=Z.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},a.createElement(fo,{scope:u,placedSide:Ue,onArrowChange:I,arrowX:Lt,arrowY:Nt,shouldHideArrow:Mt},a.createElement(fe.div,N({"data-side":Ue,"data-align":_t},P,{ref:D,style:{...P.style,animation:pe?void 0:"none",opacity:(f=Z.hide)!==null&&f!==void 0&&f.referenceHidden?0:void 0}}))))});function po(e){return e!==null}const mo=e=>({name:"transformOrigin",options:e,fn(t){var n,o,r,i,s;const{placement:l,rects:c,middlewareData:f}=t,d=((n=f.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,m=d?0:e.arrowWidth,p=d?0:e.arrowHeight,[h,v]=Ct(l),g={start:"0%",center:"50%",end:"100%"}[v],w=((o=(r=f.arrow)===null||r===void 0?void 0:r.x)!==null&&o!==void 0?o:0)+m/2,$=((i=(s=f.arrow)===null||s===void 0?void 0:s.y)!==null&&i!==void 0?i:0)+p/2;let x="",y="";return h==="bottom"?(x=d?g:`${w}px`,y=`${-p}px`):h==="top"?(x=d?g:`${w}px`,y=`${c.floating.height+p}px`):h==="right"?(x=`${-p}px`,y=d?g:`${$}px`):h==="left"&&(x=`${c.floating.width+p}px`,y=d?g:`${$}px`),{data:{x,y}}}});function Ct(e){const[t,n="center"]=e.split("-");return[t,n]}const ho=co,go=lo,vo=uo;function wo(e,t){return a.useReducer((n,o)=>{const r=t[n][o];return r??n},e)}const Pt=e=>{const{present:t,children:n}=e,o=$o(t),r=typeof n=="function"?n({present:o.isPresent}):a.Children.only(n),i=te(o.ref,r.ref);return typeof n=="function"||o.isPresent?a.cloneElement(r,{ref:i}):null};Pt.displayName="Presence";function $o(e){const[t,n]=a.useState(),o=a.useRef({}),r=a.useRef(e),i=a.useRef("none"),s=e?"mounted":"unmounted",[l,c]=wo(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const f=ve(o.current);i.current=l==="mounted"?f:"none"},[l]),Q(()=>{const f=o.current,u=r.current;if(u!==e){const m=i.current,p=ve(f);e?c("MOUNT"):p==="none"||(f==null?void 0:f.display)==="none"?c("UNMOUNT"):c(u&&m!==p?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),Q(()=>{if(t){const f=d=>{const p=ve(o.current).includes(d.animationName);d.target===t&&p&&Le.flushSync(()=>c("ANIMATION_END"))},u=d=>{d.target===t&&(i.current=ve(o.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:a.useCallback(f=>{f&&(o.current=getComputedStyle(f)),n(f)},[])}}function ve(e){return(e==null?void 0:e.animationName)||"none"}function xo({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=yo({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:o,l=ne(n),c=a.useCallback(f=>{if(i){const d=typeof f=="function"?f(e):f;d!==e&&l(d)}else r(f)},[i,e,r,l]);return[s,c]}function yo({defaultProp:e,onChange:t}){const n=a.useState(e),[o]=n,r=a.useRef(o),i=ne(t);return a.useEffect(()=>{r.current!==o&&(i(o),r.current=o)},[o,r,i]),n}const bo=a.forwardRef((e,t)=>a.createElement(fe.span,N({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),Eo=bo,[Pe,Zo]=st("Tooltip",[yt]),Be=yt(),Co="TooltipProvider",Po=700,_e="tooltip.open",[Oo,ze]=Pe(Co),Ao=e=>{const{__scopeTooltip:t,delayDuration:n=Po,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:i}=e,[s,l]=a.useState(!0),c=a.useRef(!1),f=a.useRef(0);return a.useEffect(()=>{const u=f.current;return()=>window.clearTimeout(u)},[]),a.createElement(Oo,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:a.useCallback(()=>{window.clearTimeout(f.current),l(!1)},[]),onClose:a.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>l(!0),o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:a.useCallback(u=>{c.current=u},[]),disableHoverableContent:r},i)},Ve="Tooltip",[To,Oe]=Pe(Ve),Ro=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:l}=e,c=ze(Ve,e.__scopeTooltip),f=Be(t),[u,d]=a.useState(null),m=sn(),p=a.useRef(0),h=s??c.disableHoverableContent,v=l??c.delayDuration,g=a.useRef(!1),[w=!1,$]=xo({prop:o,defaultProp:r,onChange:P=>{P?(c.onOpen(),document.dispatchEvent(new CustomEvent(_e))):c.onClose(),i==null||i(P)}}),x=a.useMemo(()=>w?g.current?"delayed-open":"instant-open":"closed",[w]),y=a.useCallback(()=>{window.clearTimeout(p.current),g.current=!1,$(!0)},[$]),b=a.useCallback(()=>{window.clearTimeout(p.current),$(!1)},[$]),C=a.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{g.current=!0,$(!0)},v)},[v,$]);return a.useEffect(()=>()=>window.clearTimeout(p.current),[]),a.createElement(ho,f,a.createElement(To,{scope:t,contentId:m,open:w,stateAttribute:x,trigger:u,onTriggerChange:d,onTriggerEnter:a.useCallback(()=>{c.isOpenDelayed?C():y()},[c.isOpenDelayed,C,y]),onTriggerLeave:a.useCallback(()=>{h?b():window.clearTimeout(p.current)},[b,h]),onOpen:y,onClose:b,disableHoverableContent:h},n))},rt="TooltipTrigger",So=a.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Oe(rt,n),i=ze(rt,n),s=Be(n),l=a.useRef(null),c=te(t,l,r.onTriggerChange),f=a.useRef(!1),u=a.useRef(!1),d=a.useCallback(()=>f.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),a.createElement(go,N({asChild:!0},s),a.createElement(fe.button,N({"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute},o,{ref:c,onPointerMove:V(e.onPointerMove,m=>{m.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),u.current=!0)}),onPointerLeave:V(e.onPointerLeave,()=>{r.onTriggerLeave(),u.current=!1}),onPointerDown:V(e.onPointerDown,()=>{f.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:V(e.onFocus,()=>{f.current||r.onOpen()}),onBlur:V(e.onBlur,r.onClose),onClick:V(e.onClick,r.onClose)})))}),Do="TooltipPortal",[Jo,_o]=Pe(Do,{forceMount:void 0}),le="TooltipContent",Lo=a.forwardRef((e,t)=>{const n=_o(le,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...i}=e,s=Oe(le,e.__scopeTooltip);return a.createElement(Pt,{present:o||s.open},s.disableHoverableContent?a.createElement(Ot,N({side:r},i,{ref:t})):a.createElement(No,N({side:r},i,{ref:t})))}),No=a.forwardRef((e,t)=>{const n=Oe(le,e.__scopeTooltip),o=ze(le,e.__scopeTooltip),r=a.useRef(null),i=te(t,r),[s,l]=a.useState(null),{trigger:c,onClose:f}=n,u=r.current,{onPointerInTransitChange:d}=o,m=a.useCallback(()=>{l(null),d(!1)},[d]),p=a.useCallback((h,v)=>{const g=h.currentTarget,w={x:h.clientX,y:h.clientY},$=ko(w,g.getBoundingClientRect()),x=Io(w,$),y=Fo(v.getBoundingClientRect()),b=Wo([...x,...y]);l(b),d(!0)},[d]);return a.useEffect(()=>()=>m(),[m]),a.useEffect(()=>{if(c&&u){const h=g=>p(g,u),v=g=>p(g,c);return c.addEventListener("pointerleave",h),u.addEventListener("pointerleave",v),()=>{c.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",v)}}},[c,u,p,m]),a.useEffect(()=>{if(s){const h=v=>{const g=v.target,w={x:v.clientX,y:v.clientY},$=(c==null?void 0:c.contains(g))||(u==null?void 0:u.contains(g)),x=!Ho(w,s);$?m():x&&(m(),f())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[c,u,s,f,m]),a.createElement(Ot,N({},e,{ref:i}))}),[Mo,Qo]=Pe(Ve,{isInside:!1}),Ot=a.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,c=Oe(le,n),f=Be(n),{onClose:u}=c;return a.useEffect(()=>(document.addEventListener(_e,u),()=>document.removeEventListener(_e,u)),[u]),a.useEffect(()=>{if(c.trigger){const d=m=>{const p=m.target;p!=null&&p.contains(c.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,u]),a.createElement(en,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u},a.createElement(vo,N({"data-state":c.stateAttribute},f,l,{ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),a.createElement(at,null,o),a.createElement(Mo,{scope:n,isInside:!0},a.createElement(Eo,{id:c.contentId,role:"tooltip"},r||o))))});function ko(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,o,r,i)){case i:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Io(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function Fo(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function Ho(e,t){const{x:n,y:o}=e;let r=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const l=t[i].x,c=t[i].y,f=t[s].x,u=t[s].y;c>o!=u>o&&n<(f-l)*(o-c)/(u-c)+l&&(r=!r)}return r}function Wo(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),Bo(t)}function Bo(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const zo=Ao,Vo=Ro,jo=So,At=Lo,er=zo,Uo=Vo,Yo=jo,Tt=a.forwardRef(({className:e,sideOffset:t=4,...n},o)=>we.jsx(At,{ref:o,sideOffset:t,className:Vt("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));Tt.displayName=At.displayName;function tr({content:e,children:t}){return e?we.jsxs(Uo,{children:[we.jsx(Yo,{asChild:!0,children:t}),we.jsx(Tt,{children:e})]}):t}export{st as $,tr as S,er as T,N as _,Uo as a,Yo as b,Tt as c,te as d,xo as e,ne as f,fe as g,V as h,sn as i,Pt as j,yt as k,ho as l,go as m,ct as n,en as o,vo as p,Q as q,bo as r};
|
|
2
|
+
//# sourceMappingURL=tooltip-Kw0lYWBI.js.map
|