@cesdk/cesdk-js 1.2.1 → 1.4.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BlockAPI.d.ts +232 -0
- package/SceneAPI.d.ts +52 -0
- package/ThirdPartyLicenses.md +26 -0
- package/VariableAPI.d.ts +21 -0
- package/api.d.ts +11 -0
- package/assets/core/cesdk.data +0 -0
- package/assets/core/cesdk.wasm +0 -0
- package/assets/extensions/ly.img.cesdk.effects/manifest.json +3 -2
- package/assets/extensions/ly.img.cesdk.effects/thumbnails/imgly_effect_26.jpeg +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/doodle_camera.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/doodle_divingmask.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/doodle_fish.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/doodle_hat.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/doodle_hula.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/doodle_jetpack.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/doodle_pipe.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/doodle_rocket.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/doodle_saturn.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/doodle_skateboard.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/doodle_spaceman.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/doodle_star.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/doodle_starfish.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/doodle_sun.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/doodle_surfing.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/doodle_wing_01.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/doodle_wing_02.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/manifest.json +103 -52
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_Vomiting.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_anguished.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_ape.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_beer.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_crying.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_devil.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_doubtful.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_drooling.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_flushed.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_grim.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_grimacing.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_halo.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_hand_pointing_left.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_hand_pointing_right.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_hanky.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_happyface.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_hearteyes.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_lips.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_melon.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_nauseated.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_pacman.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_persevering.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_pizza.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_rollingeyes.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_sad.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_skull.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_smile.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_sunglasses.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_tearsofjoy.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_thumbsup.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_tongueout.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_unamused.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_unicorn.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_winking.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/emoji_zany.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/manifest.json +272 -167
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_alien.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_angel.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_angry.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_anxious.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_asleep.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_attention.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_baby_chicken.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_batman.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_beer.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_blush.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_boxer.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_business.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_chicken.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_cool.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_cry.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_deceased.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_devil.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_duckface.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_furious.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_grin.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_guitar.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_harry_potter.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_hippie.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_hitman.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_humourous.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_idea.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_impatient.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_kiss.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_kisses.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_laugh.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_loud_cry.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_loving.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_masked.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_music.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_nerd.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_ninja.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_not_speaking_to_you.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_pig.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_pumpkin.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_question.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_rabbit.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_sad.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_sick.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_skateboard.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_skull.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_sleepy.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_smile.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_smoking.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_sobbing.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_star.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_steaming_furious.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_sunbathing.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_tired.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_tongue_out_wink.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_wave.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_wide_grin.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_wink.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_wrestler.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/manifest.json +233 -233
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/hand_alive.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/hand_five.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/hand_friends.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/hand_fuck.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/hand_heart.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/hand_luck.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/hand_ok.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/hand_vibes.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/manifest.json +49 -25
- package/assets/extensions/ly.img.cesdk.stickers.openmoji/{genmoji.js → genmoji.mjs} +27 -11
- package/assets/extensions/ly.img.cesdk.stickers.openmoji/manifest.json +8497 -8497
- package/assets/extensions/ly.img.cesdk.stickers.typo/images/bffs1.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.typo/images/bffs2_black.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.typo/images/forever.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.typo/images/forever_white.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.typo/images/goodluck01_green.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.typo/images/goodluck02_green.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.typo/images/goodluck03_green.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.typo/images/happybday_glitter.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.typo/images/justforyou.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.typo/images/justlove_pink.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.typo/images/mademayday_black.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.typo/images/takeiteasy.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.typo/images/youandme02_black.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.typo/images/youandme02_blackwhite.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.typo/images/youandme_bang_pink.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.typo/manifest.json +169 -0
- package/assets/extensions/ly.img.cesdk.stickers.typo_happy/images/happybirthday_01.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.typo_happy/images/happybirthday_02.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.typo_happy/images/happybirthday_03.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.typo_happy/images/happybirthday_04.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.typo_happy/images/happybirthday_3D_01.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.typo_happy/images/happybirthday_3D_02.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.typo_happy/images/happybirthday_3D_03.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.typo_happy/images/happybirthday_3D_04.svg +1 -0
- package/assets/extensions/ly.img.cesdk.stickers.typo_happy/manifest.json +99 -0
- package/assets/i18n/de.json +366 -25
- package/assets/i18n/en.json +276 -48
- package/assets/templates/cesdk_business_card_1.scene +1 -1
- package/assets/templates/cesdk_postcard_1.scene +1 -1
- package/assets/templates/cesdk_presentation_1.scene +1 -1
- package/assets/ui/stylesheets/cesdk-engine.css +42 -0
- package/assets/ui/stylesheets/cesdk-themes.css +1 -1
- package/assets/ui/stylesheets/cesdk.css +57 -45
- package/cesdk-engine.umd.d.ts +34 -0
- package/cesdk-engine.umd.js +2 -0
- package/cesdk.umd.js +1 -1
- package/index.html +3 -4
- package/package.json +1 -1
- package/types.d.ts +27 -4
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/imgly_sticker_doodle_camera.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/imgly_sticker_doodle_divingmask.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/imgly_sticker_doodle_fish.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/imgly_sticker_doodle_hat.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/imgly_sticker_doodle_hula.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/imgly_sticker_doodle_jetpack.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/imgly_sticker_doodle_pipe.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/imgly_sticker_doodle_rocket.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/imgly_sticker_doodle_saturn.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/imgly_sticker_doodle_skateboard.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/imgly_sticker_doodle_spaceman.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/imgly_sticker_doodle_star.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/imgly_sticker_doodle_starfish.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/imgly_sticker_doodle_sun.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/imgly_sticker_doodle_surfing.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/imgly_sticker_doodle_wing_01.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/images/imgly_sticker_doodle_wing_02.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/thumbnails/imgly_sticker_doodle_camera.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/thumbnails/imgly_sticker_doodle_divingmask.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/thumbnails/imgly_sticker_doodle_fish.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/thumbnails/imgly_sticker_doodle_hat.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/thumbnails/imgly_sticker_doodle_hula.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/thumbnails/imgly_sticker_doodle_jetpack.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/thumbnails/imgly_sticker_doodle_pipe.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/thumbnails/imgly_sticker_doodle_rocket.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/thumbnails/imgly_sticker_doodle_saturn.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/thumbnails/imgly_sticker_doodle_skateboard.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/thumbnails/imgly_sticker_doodle_spaceman.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/thumbnails/imgly_sticker_doodle_star.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/thumbnails/imgly_sticker_doodle_starfish.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/thumbnails/imgly_sticker_doodle_sun.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/thumbnails/imgly_sticker_doodle_surfing.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/thumbnails/imgly_sticker_doodle_wing_01.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.doodle/thumbnails/imgly_sticker_doodle_wing_02.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_anguished.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_ape.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_beer.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_crying.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_devil.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_doubtful.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_drooling.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_flushed.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_grim.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_grimacing.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_halo.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_hand_pointing_left.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_hand_pointing_right.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_hanky.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_happyface.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_hearteyes.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_lips.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_melon.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_nauseated.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_pacman.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_persevering.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_pizza.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_rollingeyes.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_sad.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_skull.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_smile.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_sunglasses.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_tearsofjoy.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_thumbsup.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_tongueout.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_unamused.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_unicorn.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_vomiting.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_winking.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/images/imgly_sticker_emoji_zany.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_anguished.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_ape.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_beer.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_crying.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_devil.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_doubtful.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_drooling.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_flushed.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_grim.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_grimacing.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_halo.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_hand_pointing_left.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_hand_pointing_right.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_hanky.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_happyface.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_hearteyes.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_lips.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_melon.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_nauseated.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_pacman.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_persevering.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_pizza.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_rollingeyes.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_sad.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_skull.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_smile.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_sunglasses.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_tearsofjoy.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_thumbsup.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_tongueout.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_unamused.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_unicorn.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_vomiting.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_winking.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoji/thumbnails/imgly_sticker_emoji_zany.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_alien.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_angel.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_angry.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_anxious.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_asleep.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_attention.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_baby_chicken.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_batman.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_beer.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_blush.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_boxer.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_business.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_chicken.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_cool.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_cry.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_deceased.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_devil.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_duckface.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_furious.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_grin.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_guitar.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_harry_potter.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_hippie.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_hitman.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_humourous.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_idea.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_impatient.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_kiss.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_kisses.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_laugh.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_loud_cry.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_loving.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_masked.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_music.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_nerd.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_ninja.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_not_speaking_to_you.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_pig.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_pumpkin.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_question.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_rabbit.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_sad.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_sick.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_skateboard.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_skull.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_sleepy.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_smile.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_smoking.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_sobbing.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_star.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_steaming_furious.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_sunbathing.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_tired.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_tongue_out_wink.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_wave.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_wide_grin.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_wink.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/images/imgly_sticker_emoticons_wrestler.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_alien.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_angel.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_angry.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_anxious.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_asleep.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_attention.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_baby_chicken.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_batman.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_beer.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_blush.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_boxer.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_business.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_chicken.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_cool.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_cry.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_deceased.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_devil.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_duckface.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_furious.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_grin.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_guitar.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_harry_potter.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_hippie.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_hitman.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_humourous.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_idea.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_impatient.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_kiss.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_kisses.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_laugh.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_loud_cry.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_loving.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_masked.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_music.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_nerd.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_ninja.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_not_speaking_to_you.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_pig.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_pumpkin.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_question.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_rabbit.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_sad.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_sick.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_skateboard.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_skull.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_sleepy.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_smile.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_smoking.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_sobbing.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_star.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_steaming_furious.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_sunbathing.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_tired.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_tongue_out_wink.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_wave.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_wide_grin.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_wink.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.emoticons/thumbnails/imgly_sticker_emoticons_wrestler.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_anguished.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_ape.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_beer.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_crying.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_devil.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_doubtful.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_drooling.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_flushed.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_grim.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_grimacing.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_halo.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_hand_pointing_left.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_hand_pointing_right.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_hanky.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_happyface.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_hearteyes.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_lips.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_melon.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_nauseated.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_pacman.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_persevering.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_pizza.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_rollingeyes.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_sad.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_skull.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_smile.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_sunglasses.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_tearsofjoy.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_thumbsup.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_tongueout.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_unamused.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_unicorn.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_vomiting.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_winking.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_emoji_zany.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_hand_alive.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_hand_five.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_hand_friends.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_hand_fuck.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_hand_heart.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_hand_luck.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_hand_ok.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/images/imgly_sticker_hand_vibes.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_anguished.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_ape.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_beer.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_crying.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_devil.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_doubtful.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_drooling.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_flushed.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_grim.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_grimacing.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_halo.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_hand_pointing_left.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_hand_pointing_right.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_hanky.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_happyface.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_hearteyes.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_lips.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_melon.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_nauseated.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_pacman.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_persevering.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_pizza.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_rollingeyes.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_sad.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_skull.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_smile.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_sunglasses.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_tearsofjoy.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_thumbsup.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_tongueout.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_unamused.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_unicorn.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_vomiting.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_winking.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_emoji_zany.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_hand_alive.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_hand_five.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_hand_friends.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_hand_fuck.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_hand_heart.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_hand_luck.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_hand_ok.png +0 -0
- package/assets/extensions/ly.img.cesdk.stickers.hand/thumbnails/imgly_sticker_hand_vibes.png +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see cesdk-engine.umd.js.LICENSE.txt */
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CreativeEngine=t():e.CreativeEngine=t()}(self,(function(){return(()=>{var e,t={6147:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const o=(i={},function(e){return void 0===i[e]&&(i[e]=(t=e,r.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91)),i[e];var t});var i},6212:function(e){e.exports=function(){"use strict";for(var e=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e<t?t:e>n?n:e},t={},n=0,r=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];n<r.length;n+=1){var o=r[n];t["[object "+o+"]"]=o.toLowerCase()}var i=function(e){return t[Object.prototype.toString.call(e)]||"object"},a=Math.PI,s={clip_rgb:function(t){t._clipped=!1,t._unclipped=t.slice(0);for(var n=0;n<=3;n++)n<3?((t[n]<0||t[n]>255)&&(t._clipped=!0),t[n]=e(t[n],0,255)):3===n&&(t[n]=e(t[n],0,1));return t},limit:e,type:i,unpack:function(e,t){return void 0===t&&(t=null),e.length>=3?Array.prototype.slice.call(e):"object"==i(e[0])&&t?t.split("").filter((function(t){return void 0!==e[0][t]})).map((function(t){return e[0][t]})):e[0]},last:function(e){if(e.length<2)return null;var t=e.length-1;return"string"==i(e[t])?e[t].toLowerCase():null},PI:a,TWOPI:2*a,PITHIRD:a/3,DEG2RAD:a/180,RAD2DEG:180/a},u={format:{},autodetect:[]},c=s.last,l=s.clip_rgb,f=s.type,d=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=this;if("object"===f(e[0])&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];var r=c(e),o=!1;if(!r){o=!0,u.sorted||(u.autodetect=u.autodetect.sort((function(e,t){return t.p-e.p})),u.sorted=!0);for(var i=0,a=u.autodetect;i<a.length;i+=1){var s=a[i];if(r=s.test.apply(s,e))break}}if(!u.format[r])throw new Error("unknown format: "+e);var d=u.format[r].apply(null,o?e:e.slice(0,-1));n._rgb=l(d),3===n._rgb.length&&n._rgb.push(1)};d.prototype.toString=function(){return"function"==f(this.hex)?this.hex():"["+this._rgb.join(",")+"]"};var p=d,h=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(h.Color,[null].concat(e)))};h.Color=p,h.version="2.1.2";var g=h,m=s.unpack,v=Math.max,y=s.unpack,b=s.unpack,w=s.type;p.prototype.cmyk=function(){return function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=m(e,"rgb"),r=n[0],o=n[1],i=n[2],a=1-v(r/=255,v(o/=255,i/=255)),s=a<1?1/(1-a):0;return[(1-r-a)*s,(1-o-a)*s,(1-i-a)*s,a]}(this._rgb)},g.cmyk=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["cmyk"])))},u.format.cmyk=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=y(e,"cmyk"))[0],r=e[1],o=e[2],i=e[3],a=e.length>4?e[4]:1;return 1===i?[0,0,0,a]:[n>=1?0:255*(1-n)*(1-i),r>=1?0:255*(1-r)*(1-i),o>=1?0:255*(1-o)*(1-i),a]},u.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=b(e,"cmyk"),"array"===w(e)&&4===e.length)return"cmyk"}});var E=s.unpack,_=s.last,O=function(e){return Math.round(100*e)/100},x=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=E(e,"hsla"),r=_(e)||"lsa";return n[0]=O(n[0]||0),n[1]=O(100*n[1])+"%",n[2]=O(100*n[2])+"%","hsla"===r||n.length>3&&n[3]<1?(n[3]=n.length>3?n[3]:1,r="hsla"):n.length=3,r+"("+n.join(",")+")"},T=s.unpack,P=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=T(e,"rgba"))[0],r=e[1],o=e[2];n/=255,r/=255,o/=255;var i,a,s=Math.min(n,r,o),u=Math.max(n,r,o),c=(u+s)/2;return u===s?(i=0,a=Number.NaN):i=c<.5?(u-s)/(u+s):(u-s)/(2-u-s),n==u?a=(r-o)/(u-s):r==u?a=2+(o-n)/(u-s):o==u&&(a=4+(n-r)/(u-s)),(a*=60)<0&&(a+=360),e.length>3&&void 0!==e[3]?[a,i,c,e[3]]:[a,i,c]},k=s.unpack,S=s.last,D=Math.round,M=s.unpack,R=Math.round,C=function(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];var r,o,i,a=(t=M(t,"hsl"))[0],s=t[1],u=t[2];if(0===s)r=o=i=255*u;else{var c=[0,0,0],l=[0,0,0],f=u<.5?u*(1+s):u+s-u*s,d=2*u-f,p=a/360;c[0]=p+1/3,c[1]=p,c[2]=p-1/3;for(var h=0;h<3;h++)c[h]<0&&(c[h]+=1),c[h]>1&&(c[h]-=1),6*c[h]<1?l[h]=d+6*(f-d)*c[h]:2*c[h]<1?l[h]=f:3*c[h]<2?l[h]=d+(f-d)*(2/3-c[h])*6:l[h]=d;r=(e=[R(255*l[0]),R(255*l[1]),R(255*l[2])])[0],o=e[1],i=e[2]}return t.length>3?[r,o,i,t[3]]:[r,o,i,1]},A=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,j=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,F=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,L=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,I=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,N=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,U=Math.round,B=function(e){var t;if(e=e.toLowerCase().trim(),u.format.named)try{return u.format.named(e)}catch(e){}if(t=e.match(A)){for(var n=t.slice(1,4),r=0;r<3;r++)n[r]=+n[r];return n[3]=1,n}if(t=e.match(j)){for(var o=t.slice(1,5),i=0;i<4;i++)o[i]=+o[i];return o}if(t=e.match(F)){for(var a=t.slice(1,4),s=0;s<3;s++)a[s]=U(2.55*a[s]);return a[3]=1,a}if(t=e.match(L)){for(var c=t.slice(1,5),l=0;l<3;l++)c[l]=U(2.55*c[l]);return c[3]=+c[3],c}if(t=e.match(I)){var f=t.slice(1,4);f[1]*=.01,f[2]*=.01;var d=C(f);return d[3]=1,d}if(t=e.match(N)){var p=t.slice(1,4);p[1]*=.01,p[2]*=.01;var h=C(p);return h[3]=+t[4],h}};B.test=function(e){return A.test(e)||j.test(e)||F.test(e)||L.test(e)||I.test(e)||N.test(e)};var H=B,V=s.type;p.prototype.css=function(e){return function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=k(e,"rgba"),r=S(e)||"rgb";return"hsl"==r.substr(0,3)?x(P(n),r):(n[0]=D(n[0]),n[1]=D(n[1]),n[2]=D(n[2]),("rgba"===r||n.length>3&&n[3]<1)&&(n[3]=n.length>3?n[3]:1,r="rgba"),r+"("+n.slice(0,"rgb"===r?3:4).join(",")+")")}(this._rgb,e)},g.css=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["css"])))},u.format.css=H,u.autodetect.push({p:5,test:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(!t.length&&"string"===V(e)&&H.test(e))return"css"}});var z=s.unpack;u.format.gl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=z(e,"rgba");return n[0]*=255,n[1]*=255,n[2]*=255,n},g.gl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["gl"])))},p.prototype.gl=function(){var e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]};var Q=s.unpack,X=s.unpack,W=Math.floor,q=s.unpack,G=s.type;p.prototype.hcg=function(){return function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r=Q(e,"rgb"),o=r[0],i=r[1],a=r[2],s=Math.min(o,i,a),u=Math.max(o,i,a),c=u-s,l=100*c/255,f=s/(255-c)*100;return 0===c?n=Number.NaN:(o===u&&(n=(i-a)/c),i===u&&(n=2+(a-o)/c),a===u&&(n=4+(o-i)/c),(n*=60)<0&&(n+=360)),[n,l,f]}(this._rgb)},g.hcg=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hcg"])))},u.format.hcg=function(){for(var e,t,n,r,o,i,a=[],s=arguments.length;s--;)a[s]=arguments[s];var u,c,l,f=(a=X(a,"hcg"))[0],d=a[1],p=a[2];p*=255;var h=255*d;if(0===d)u=c=l=p;else{360===f&&(f=0),f>360&&(f-=360),f<0&&(f+=360);var g=W(f/=60),m=f-g,v=p*(1-d),y=v+h*(1-m),b=v+h*m,w=v+h;switch(g){case 0:u=(e=[w,b,v])[0],c=e[1],l=e[2];break;case 1:u=(t=[y,w,v])[0],c=t[1],l=t[2];break;case 2:u=(n=[v,w,b])[0],c=n[1],l=n[2];break;case 3:u=(r=[v,y,w])[0],c=r[1],l=r[2];break;case 4:u=(o=[b,v,w])[0],c=o[1],l=o[2];break;case 5:u=(i=[w,v,y])[0],c=i[1],l=i[2]}}return[u,c,l,a.length>3?a[3]:1]},u.autodetect.push({p:1,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=q(e,"hcg"),"array"===G(e)&&3===e.length)return"hcg"}});var $=s.unpack,Y=s.last,K=Math.round,Z=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=$(e,"rgba"),r=n[0],o=n[1],i=n[2],a=n[3],s=Y(e)||"auto";void 0===a&&(a=1),"auto"===s&&(s=a<1?"rgba":"rgb");var u="000000"+((r=K(r))<<16|(o=K(o))<<8|(i=K(i))).toString(16);u=u.substr(u.length-6);var c="0"+K(255*a).toString(16);switch(c=c.substr(c.length-2),s.toLowerCase()){case"rgba":return"#"+u+c;case"argb":return"#"+c+u;default:return"#"+u}},J=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,ee=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,te=function(e){if(e.match(J)){4!==e.length&&7!==e.length||(e=e.substr(1)),3===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var t=parseInt(e,16);return[t>>16,t>>8&255,255&t,1]}if(e.match(ee)){5!==e.length&&9!==e.length||(e=e.substr(1)),4===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);var n=parseInt(e,16);return[n>>24&255,n>>16&255,n>>8&255,Math.round((255&n)/255*100)/100]}throw new Error("unknown hex color: "+e)},ne=s.type;p.prototype.hex=function(e){return Z(this._rgb,e)},g.hex=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hex"])))},u.format.hex=te,u.autodetect.push({p:4,test:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(!t.length&&"string"===ne(e)&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});var re=s.unpack,oe=s.TWOPI,ie=Math.min,ae=Math.sqrt,se=Math.acos,ue=s.unpack,ce=s.limit,le=s.TWOPI,fe=s.PITHIRD,de=Math.cos,pe=s.unpack,he=s.type;p.prototype.hsi=function(){return function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r=re(e,"rgb"),o=r[0],i=r[1],a=r[2],s=ie(o/=255,i/=255,a/=255),u=(o+i+a)/3,c=u>0?1-s/u:0;return 0===c?n=NaN:(n=(o-i+(o-a))/2,n/=ae((o-i)*(o-i)+(o-a)*(i-a)),n=se(n),a>i&&(n=oe-n),n/=oe),[360*n,c,u]}(this._rgb)},g.hsi=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hsi"])))},u.format.hsi=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,o,i=(e=ue(e,"hsi"))[0],a=e[1],s=e[2];return isNaN(i)&&(i=0),isNaN(a)&&(a=0),i>360&&(i-=360),i<0&&(i+=360),(i/=360)<1/3?r=1-((o=(1-a)/3)+(n=(1+a*de(le*i)/de(fe-le*i))/3)):i<2/3?o=1-((n=(1-a)/3)+(r=(1+a*de(le*(i-=1/3))/de(fe-le*i))/3)):n=1-((r=(1-a)/3)+(o=(1+a*de(le*(i-=2/3))/de(fe-le*i))/3)),[255*(n=ce(s*n*3)),255*(r=ce(s*r*3)),255*(o=ce(s*o*3)),e.length>3?e[3]:1]},u.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=pe(e,"hsi"),"array"===he(e)&&3===e.length)return"hsi"}});var ge=s.unpack,me=s.type;p.prototype.hsl=function(){return P(this._rgb)},g.hsl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hsl"])))},u.format.hsl=C,u.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=ge(e,"hsl"),"array"===me(e)&&3===e.length)return"hsl"}});var ve=s.unpack,ye=Math.min,be=Math.max,we=s.unpack,Ee=Math.floor,_e=s.unpack,Oe=s.type;p.prototype.hsv=function(){return function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,o,i=(e=ve(e,"rgb"))[0],a=e[1],s=e[2],u=ye(i,a,s),c=be(i,a,s),l=c-u;return o=c/255,0===c?(n=Number.NaN,r=0):(r=l/c,i===c&&(n=(a-s)/l),a===c&&(n=2+(s-i)/l),s===c&&(n=4+(i-a)/l),(n*=60)<0&&(n+=360)),[n,r,o]}(this._rgb)},g.hsv=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hsv"])))},u.format.hsv=function(){for(var e,t,n,r,o,i,a=[],s=arguments.length;s--;)a[s]=arguments[s];var u,c,l,f=(a=we(a,"hsv"))[0],d=a[1],p=a[2];if(p*=255,0===d)u=c=l=p;else{360===f&&(f=0),f>360&&(f-=360),f<0&&(f+=360);var h=Ee(f/=60),g=f-h,m=p*(1-d),v=p*(1-d*g),y=p*(1-d*(1-g));switch(h){case 0:u=(e=[p,y,m])[0],c=e[1],l=e[2];break;case 1:u=(t=[v,p,m])[0],c=t[1],l=t[2];break;case 2:u=(n=[m,p,y])[0],c=n[1],l=n[2];break;case 3:u=(r=[m,v,p])[0],c=r[1],l=r[2];break;case 4:u=(o=[y,m,p])[0],c=o[1],l=o[2];break;case 5:u=(i=[p,m,v])[0],c=i[1],l=i[2]}}return[u,c,l,a.length>3?a[3]:1]},u.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=_e(e,"hsv"),"array"===Oe(e)&&3===e.length)return"hsv"}});var xe=18,Te=.95047,Pe=1,ke=1.08883,Se=.137931034,De=.206896552,Me=.12841855,Re=.008856452,Ce=s.unpack,Ae=Math.pow,je=function(e){return(e/=255)<=.04045?e/12.92:Ae((e+.055)/1.055,2.4)},Fe=function(e){return e>Re?Ae(e,1/3):e/Me+Se},Le=function(e,t,n){return e=je(e),t=je(t),n=je(n),[Fe((.4124564*e+.3575761*t+.1804375*n)/Te),Fe((.2126729*e+.7151522*t+.072175*n)/Pe),Fe((.0193339*e+.119192*t+.9503041*n)/ke)]},Ie=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Ce(e,"rgb"),r=n[0],o=n[1],i=n[2],a=Le(r,o,i),s=a[0],u=a[1],c=116*u-16;return[c<0?0:c,500*(s-u),200*(u-a[2])]},Ne=s.unpack,Ue=Math.pow,Be=function(e){return 255*(e<=.00304?12.92*e:1.055*Ue(e,1/2.4)-.055)},He=function(e){return e>De?e*e*e:Me*(e-Se)},Ve=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,o,i=(e=Ne(e,"lab"))[0],a=e[1],s=e[2];return r=(i+16)/116,n=isNaN(a)?r:r+a/500,o=isNaN(s)?r:r-s/200,r=Pe*He(r),n=Te*He(n),o=ke*He(o),[Be(3.2404542*n-1.5371385*r-.4985314*o),Be(-.969266*n+1.8760108*r+.041556*o),Be(.0556434*n-.2040259*r+1.0572252*o),e.length>3?e[3]:1]},ze=s.unpack,Qe=s.type;p.prototype.lab=function(){return Ie(this._rgb)},g.lab=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["lab"])))},u.format.lab=Ve,u.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=ze(e,"lab"),"array"===Qe(e)&&3===e.length)return"lab"}});var Xe=s.unpack,We=s.RAD2DEG,qe=Math.sqrt,Ge=Math.atan2,$e=Math.round,Ye=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Xe(e,"lab"),r=n[0],o=n[1],i=n[2],a=qe(o*o+i*i),s=(Ge(i,o)*We+360)%360;return 0===$e(1e4*a)&&(s=Number.NaN),[r,a,s]},Ke=s.unpack,Ze=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Ke(e,"rgb"),r=n[0],o=n[1],i=n[2],a=Ie(r,o,i),s=a[0],u=a[1],c=a[2];return Ye(s,u,c)},Je=s.unpack,et=s.DEG2RAD,tt=Math.sin,nt=Math.cos,rt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Je(e,"lch"),r=n[0],o=n[1],i=n[2];return isNaN(i)&&(i=0),[r,nt(i*=et)*o,tt(i)*o]},ot=s.unpack,it=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=ot(e,"lch"))[0],r=e[1],o=e[2],i=rt(n,r,o),a=i[0],s=i[1],u=i[2],c=Ve(a,s,u);return[c[0],c[1],c[2],e.length>3?e[3]:1]},at=s.unpack,st=s.unpack,ut=s.type;p.prototype.lch=function(){return Ze(this._rgb)},p.prototype.hcl=function(){return Ze(this._rgb).reverse()},g.lch=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["lch"])))},g.hcl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hcl"])))},u.format.lch=it,u.format.hcl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=at(e,"hcl").reverse();return it.apply(void 0,n)},["lch","hcl"].forEach((function(e){return u.autodetect.push({p:2,test:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(t=st(t,e),"array"===ut(t)&&3===t.length)return e}})}));var ct={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},lt=s.type;p.prototype.name=function(){for(var e=Z(this._rgb,"rgb"),t=0,n=Object.keys(ct);t<n.length;t+=1){var r=n[t];if(ct[r]===e)return r.toLowerCase()}return e},u.format.named=function(e){if(e=e.toLowerCase(),ct[e])return te(ct[e]);throw new Error("unknown color name: "+e)},u.autodetect.push({p:5,test:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(!t.length&&"string"===lt(e)&&ct[e.toLowerCase()])return"named"}});var ft=s.unpack,dt=s.type,pt=s.type;p.prototype.num=function(){return function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=ft(e,"rgb");return(n[0]<<16)+(n[1]<<8)+n[2]}(this._rgb)},g.num=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["num"])))},u.format.num=function(e){if("number"==dt(e)&&e>=0&&e<=16777215)return[e>>16,e>>8&255,255&e,1];throw new Error("unknown num color: "+e)},u.autodetect.push({p:5,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(1===e.length&&"number"===pt(e[0])&&e[0]>=0&&e[0]<=16777215)return"num"}});var ht=s.unpack,gt=s.type,mt=Math.round;p.prototype.rgb=function(e){return void 0===e&&(e=!0),!1===e?this._rgb.slice(0,3):this._rgb.slice(0,3).map(mt)},p.prototype.rgba=function(e){return void 0===e&&(e=!0),this._rgb.slice(0,4).map((function(t,n){return n<3?!1===e?t:mt(t):t}))},g.rgb=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["rgb"])))},u.format.rgb=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=ht(e,"rgba");return void 0===n[3]&&(n[3]=1),n},u.autodetect.push({p:3,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=ht(e,"rgba"),"array"===gt(e)&&(3===e.length||4===e.length&&"number"==gt(e[3])&&e[3]>=0&&e[3]<=1))return"rgb"}});var vt=Math.log,yt=function(e){var t,n,r,o=e/100;return o<66?(t=255,n=-155.25485562709179-.44596950469579133*(n=o-2)+104.49216199393888*vt(n),r=o<20?0:.8274096064007395*(r=o-10)-254.76935184120902+115.67994401066147*vt(r)):(t=351.97690566805693+.114206453784165*(t=o-55)-40.25366309332127*vt(t),n=325.4494125711974+.07943456536662342*(n=o-50)-28.0852963507957*vt(n),r=255),[t,n,r,1]},bt=s.unpack,wt=Math.round;p.prototype.temp=p.prototype.kelvin=p.prototype.temperature=function(){return function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n,r=bt(e,"rgb"),o=r[0],i=r[2],a=1e3,s=4e4,u=.4;s-a>u;){var c=yt(n=.5*(s+a));c[2]/c[0]>=i/o?s=n:a=n}return wt(n)}(this._rgb)},g.temp=g.kelvin=g.temperature=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["temp"])))},u.format.temp=u.format.kelvin=u.format.temperature=yt;var Et=s.type;p.prototype.alpha=function(e,t){return void 0===t&&(t=!1),void 0!==e&&"number"===Et(e)?t?(this._rgb[3]=e,this):new p([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},p.prototype.clipped=function(){return this._rgb._clipped||!1},p.prototype.darken=function(e){void 0===e&&(e=1);var t=this.lab();return t[0]-=xe*e,new p(t,"lab").alpha(this.alpha(),!0)},p.prototype.brighten=function(e){return void 0===e&&(e=1),this.darken(-e)},p.prototype.darker=p.prototype.darken,p.prototype.brighter=p.prototype.brighten,p.prototype.get=function(e){var t=e.split("."),n=t[0],r=t[1],o=this[n]();if(r){var i=n.indexOf(r);if(i>-1)return o[i];throw new Error("unknown channel "+r+" in mode "+n)}return o};var _t=s.type,Ot=Math.pow;p.prototype.luminance=function(e){if(void 0!==e&&"number"===_t(e)){if(0===e)return new p([0,0,0,this._rgb[3]],"rgb");if(1===e)return new p([255,255,255,this._rgb[3]],"rgb");var t=this.luminance(),n=20,r=function(t,o){var i=t.interpolate(o,.5,"rgb"),a=i.luminance();return Math.abs(e-a)<1e-7||!n--?i:a>e?r(t,i):r(i,o)},o=(t>e?r(new p([0,0,0]),this):r(this,new p([255,255,255]))).rgb();return new p(o.concat([this._rgb[3]]))}return xt.apply(void 0,this._rgb.slice(0,3))};var xt=function(e,t,n){return.2126*(e=Tt(e))+.7152*(t=Tt(t))+.0722*Tt(n)},Tt=function(e){return(e/=255)<=.03928?e/12.92:Ot((e+.055)/1.055,2.4)},Pt={},kt=s.type,St=function(e,t,n){void 0===n&&(n=.5);for(var r=[],o=arguments.length-3;o-- >0;)r[o]=arguments[o+3];var i=r[0]||"lrgb";if(Pt[i]||r.length||(i=Object.keys(Pt)[0]),!Pt[i])throw new Error("interpolation mode "+i+" is not defined");return"object"!==kt(e)&&(e=new p(e)),"object"!==kt(t)&&(t=new p(t)),Pt[i](e,t,n).alpha(e.alpha()+n*(t.alpha()-e.alpha()))};p.prototype.mix=p.prototype.interpolate=function(e,t){void 0===t&&(t=.5);for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return St.apply(void 0,[this,e,t].concat(n))},p.prototype.premultiply=function(e){void 0===e&&(e=!1);var t=this._rgb,n=t[3];return e?(this._rgb=[t[0]*n,t[1]*n,t[2]*n,n],this):new p([t[0]*n,t[1]*n,t[2]*n,n],"rgb")},p.prototype.saturate=function(e){void 0===e&&(e=1);var t=this.lch();return t[1]+=xe*e,t[1]<0&&(t[1]=0),new p(t,"lch").alpha(this.alpha(),!0)},p.prototype.desaturate=function(e){return void 0===e&&(e=1),this.saturate(-e)};var Dt=s.type;p.prototype.set=function(e,t,n){void 0===n&&(n=!1);var r=e.split("."),o=r[0],i=r[1],a=this[o]();if(i){var s=o.indexOf(i);if(s>-1){if("string"==Dt(t))switch(t.charAt(0)){case"+":case"-":a[s]+=+t;break;case"*":a[s]*=+t.substr(1);break;case"/":a[s]/=+t.substr(1);break;default:a[s]=+t}else{if("number"!==Dt(t))throw new Error("unsupported value for Color.set");a[s]=t}var u=new p(a,o);return n?(this._rgb=u._rgb,this):u}throw new Error("unknown channel "+i+" in mode "+o)}return a};Pt.rgb=function(e,t,n){var r=e._rgb,o=t._rgb;return new p(r[0]+n*(o[0]-r[0]),r[1]+n*(o[1]-r[1]),r[2]+n*(o[2]-r[2]),"rgb")};var Mt=Math.sqrt,Rt=Math.pow;Pt.lrgb=function(e,t,n){var r=e._rgb,o=r[0],i=r[1],a=r[2],s=t._rgb,u=s[0],c=s[1],l=s[2];return new p(Mt(Rt(o,2)*(1-n)+Rt(u,2)*n),Mt(Rt(i,2)*(1-n)+Rt(c,2)*n),Mt(Rt(a,2)*(1-n)+Rt(l,2)*n),"rgb")};Pt.lab=function(e,t,n){var r=e.lab(),o=t.lab();return new p(r[0]+n*(o[0]-r[0]),r[1]+n*(o[1]-r[1]),r[2]+n*(o[2]-r[2]),"lab")};var Ct=function(e,t,n,r){var o,i,a,s,u,c,l,f,d,h,g,m;return"hsl"===r?(a=e.hsl(),s=t.hsl()):"hsv"===r?(a=e.hsv(),s=t.hsv()):"hcg"===r?(a=e.hcg(),s=t.hcg()):"hsi"===r?(a=e.hsi(),s=t.hsi()):"lch"!==r&&"hcl"!==r||(r="hcl",a=e.hcl(),s=t.hcl()),"h"===r.substr(0,1)&&(u=(o=a)[0],l=o[1],d=o[2],c=(i=s)[0],f=i[1],h=i[2]),isNaN(u)||isNaN(c)?isNaN(u)?isNaN(c)?m=Number.NaN:(m=c,1!=d&&0!=d||"hsv"==r||(g=f)):(m=u,1!=h&&0!=h||"hsv"==r||(g=l)):m=u+n*(c>u&&c-u>180?c-(u+360):c<u&&u-c>180?c+360-u:c-u),void 0===g&&(g=l+n*(f-l)),new p([m,g,d+n*(h-d)],r)},At=function(e,t,n){return Ct(e,t,n,"lch")};Pt.lch=At,Pt.hcl=At;Pt.num=function(e,t,n){var r=e.num(),o=t.num();return new p(r+n*(o-r),"num")};Pt.hcg=function(e,t,n){return Ct(e,t,n,"hcg")};Pt.hsi=function(e,t,n){return Ct(e,t,n,"hsi")};Pt.hsl=function(e,t,n){return Ct(e,t,n,"hsl")};Pt.hsv=function(e,t,n){return Ct(e,t,n,"hsv")};var jt=s.clip_rgb,Ft=Math.pow,Lt=Math.sqrt,It=Math.PI,Nt=Math.cos,Ut=Math.sin,Bt=Math.atan2,Ht=function(e,t){for(var n=e.length,r=[0,0,0,0],o=0;o<e.length;o++){var i=e[o],a=t[o]/n,s=i._rgb;r[0]+=Ft(s[0],2)*a,r[1]+=Ft(s[1],2)*a,r[2]+=Ft(s[2],2)*a,r[3]+=s[3]*a}return r[0]=Lt(r[0]),r[1]=Lt(r[1]),r[2]=Lt(r[2]),r[3]>.9999999&&(r[3]=1),new p(jt(r))},Vt=s.type,zt=Math.pow,Qt=function(e){var t="rgb",n=g("#ccc"),r=0,o=[0,1],i=[],a=[0,0],s=!1,u=[],c=!1,l=0,f=1,d=!1,p={},h=!0,m=1,v=function(e){if((e=e||["#fff","#000"])&&"string"===Vt(e)&&g.brewer&&g.brewer[e.toLowerCase()]&&(e=g.brewer[e.toLowerCase()]),"array"===Vt(e)){1===e.length&&(e=[e[0],e[0]]),e=e.slice(0);for(var t=0;t<e.length;t++)e[t]=g(e[t]);i.length=0;for(var n=0;n<e.length;n++)i.push(n/(e.length-1))}return E(),u=e},y=function(e){return e},b=function(e){return e},w=function(e,r){var o,c;if(null==r&&(r=!1),isNaN(e)||null===e)return n;c=r?e:s&&s.length>2?function(e){if(null!=s){for(var t=s.length-1,n=0;n<t&&e>=s[n];)n++;return n-1}return 0}(e)/(s.length-2):f!==l?(e-l)/(f-l):1,c=b(c),r||(c=y(c)),1!==m&&(c=zt(c,m)),c=a[0]+c*(1-a[0]-a[1]),c=Math.min(1,Math.max(0,c));var d=Math.floor(1e4*c);if(h&&p[d])o=p[d];else{if("array"===Vt(u))for(var v=0;v<i.length;v++){var w=i[v];if(c<=w){o=u[v];break}if(c>=w&&v===i.length-1){o=u[v];break}if(c>w&&c<i[v+1]){c=(c-w)/(i[v+1]-w),o=g.interpolate(u[v],u[v+1],c,t);break}}else"function"===Vt(u)&&(o=u(c));h&&(p[d]=o)}return o},E=function(){return p={}};v(e);var _=function(e){var t=g(w(e));return c&&t[c]?t[c]():t};return _.classes=function(e){if(null!=e){if("array"===Vt(e))s=e,o=[e[0],e[e.length-1]];else{var t=g.analyze(o);s=0===e?[t.min,t.max]:g.limits(t,"e",e)}return _}return s},_.domain=function(e){if(!arguments.length)return o;l=e[0],f=e[e.length-1],i=[];var t=u.length;if(e.length===t&&l!==f)for(var n=0,r=Array.from(e);n<r.length;n+=1){var a=r[n];i.push((a-l)/(f-l))}else{for(var s=0;s<t;s++)i.push(s/(t-1));if(e.length>2){var c=e.map((function(t,n){return n/(e.length-1)})),d=e.map((function(e){return(e-l)/(f-l)}));d.every((function(e,t){return c[t]===e}))||(b=function(e){if(e<=0||e>=1)return e;for(var t=0;e>=d[t+1];)t++;var n=(e-d[t])/(d[t+1]-d[t]);return c[t]+n*(c[t+1]-c[t])})}}return o=[l,f],_},_.mode=function(e){return arguments.length?(t=e,E(),_):t},_.range=function(e,t){return v(e),_},_.out=function(e){return c=e,_},_.spread=function(e){return arguments.length?(r=e,_):r},_.correctLightness=function(e){return null==e&&(e=!0),d=e,E(),y=d?function(e){for(var t=w(0,!0).lab()[0],n=w(1,!0).lab()[0],r=t>n,o=w(e,!0).lab()[0],i=t+(n-t)*e,a=o-i,s=0,u=1,c=20;Math.abs(a)>.01&&c-- >0;)r&&(a*=-1),a<0?(s=e,e+=.5*(u-e)):(u=e,e+=.5*(s-e)),a=(o=w(e,!0).lab()[0])-i;return e}:function(e){return e},_},_.padding=function(e){return null!=e?("number"===Vt(e)&&(e=[e,e]),a=e,_):a},_.colors=function(t,n){arguments.length<2&&(n="hex");var r=[];if(0===arguments.length)r=u.slice(0);else if(1===t)r=[_(.5)];else if(t>1){var i=o[0],a=o[1]-i;r=Xt(0,t,!1).map((function(e){return _(i+e/(t-1)*a)}))}else{e=[];var c=[];if(s&&s.length>2)for(var l=1,f=s.length,d=1<=f;d?l<f:l>f;d?l++:l--)c.push(.5*(s[l-1]+s[l]));else c=o;r=c.map((function(e){return _(e)}))}return g[n]&&(r=r.map((function(e){return e[n]()}))),r},_.cache=function(e){return null!=e?(h=e,_):h},_.gamma=function(e){return null!=e?(m=e,_):m},_.nodata=function(e){return null!=e?(n=g(e),_):n},_};function Xt(e,t,n){for(var r=[],o=e<t,i=n?o?t+1:t-1:t,a=e;o?a<i:a>i;o?a++:a--)r.push(a);return r}var Wt=function(e){var t,n,r,o,i,a,s;if(2===(e=e.map((function(e){return new p(e)}))).length)t=e.map((function(e){return e.lab()})),i=t[0],a=t[1],o=function(e){var t=[0,1,2].map((function(t){return i[t]+e*(a[t]-i[t])}));return new p(t,"lab")};else if(3===e.length)n=e.map((function(e){return e.lab()})),i=n[0],a=n[1],s=n[2],o=function(e){var t=[0,1,2].map((function(t){return(1-e)*(1-e)*i[t]+2*(1-e)*e*a[t]+e*e*s[t]}));return new p(t,"lab")};else if(4===e.length){var u;r=e.map((function(e){return e.lab()})),i=r[0],a=r[1],s=r[2],u=r[3],o=function(e){var t=[0,1,2].map((function(t){return(1-e)*(1-e)*(1-e)*i[t]+3*(1-e)*(1-e)*e*a[t]+3*(1-e)*e*e*s[t]+e*e*e*u[t]}));return new p(t,"lab")}}else if(5===e.length){var c=Wt(e.slice(0,3)),l=Wt(e.slice(2,5));o=function(e){return e<.5?c(2*e):l(2*(e-.5))}}return o},qt=function(e,t,n){if(!qt[n])throw new Error("unknown blend mode "+n);return qt[n](e,t)},Gt=function(e){return function(t,n){var r=g(n).rgb(),o=g(t).rgb();return g.rgb(e(r,o))}},$t=function(e){return function(t,n){var r=[];return r[0]=e(t[0],n[0]),r[1]=e(t[1],n[1]),r[2]=e(t[2],n[2]),r}};qt.normal=Gt($t((function(e){return e}))),qt.multiply=Gt($t((function(e,t){return e*t/255}))),qt.screen=Gt($t((function(e,t){return 255*(1-(1-e/255)*(1-t/255))}))),qt.overlay=Gt($t((function(e,t){return t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255))}))),qt.darken=Gt($t((function(e,t){return e>t?t:e}))),qt.lighten=Gt($t((function(e,t){return e>t?e:t}))),qt.dodge=Gt($t((function(e,t){return 255===e||(e=t/255*255/(1-e/255))>255?255:e}))),qt.burn=Gt($t((function(e,t){return 255*(1-(1-t/255)/(e/255))})));for(var Yt=qt,Kt=s.type,Zt=s.clip_rgb,Jt=s.TWOPI,en=Math.pow,tn=Math.sin,nn=Math.cos,rn=Math.floor,on=Math.random,an=Math.log,sn=Math.pow,un=Math.floor,cn=Math.abs,ln=function(e,t){void 0===t&&(t=null);var n={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===i(e)&&(e=Object.values(e)),e.forEach((function(e){t&&"object"===i(e)&&(e=e[t]),null==e||isNaN(e)||(n.values.push(e),n.sum+=e,e<n.min&&(n.min=e),e>n.max&&(n.max=e),n.count+=1)})),n.domain=[n.min,n.max],n.limits=function(e,t){return fn(n,e,t)},n},fn=function(e,t,n){void 0===t&&(t="equal"),void 0===n&&(n=7),"array"==i(e)&&(e=ln(e));var r=e.min,o=e.max,a=e.values.sort((function(e,t){return e-t}));if(1===n)return[r,o];var s=[];if("c"===t.substr(0,1)&&(s.push(r),s.push(o)),"e"===t.substr(0,1)){s.push(r);for(var u=1;u<n;u++)s.push(r+u/n*(o-r));s.push(o)}else if("l"===t.substr(0,1)){if(r<=0)throw new Error("Logarithmic scales are only possible for values > 0");var c=Math.LOG10E*an(r),l=Math.LOG10E*an(o);s.push(r);for(var f=1;f<n;f++)s.push(sn(10,c+f/n*(l-c)));s.push(o)}else if("q"===t.substr(0,1)){s.push(r);for(var d=1;d<n;d++){var p=(a.length-1)*d/n,h=un(p);if(h===p)s.push(a[h]);else{var g=p-h;s.push(a[h]*(1-g)+a[h+1]*g)}}s.push(o)}else if("k"===t.substr(0,1)){var m,v=a.length,y=new Array(v),b=new Array(n),w=!0,E=0,_=null;(_=[]).push(r);for(var O=1;O<n;O++)_.push(r+O/n*(o-r));for(_.push(o);w;){for(var x=0;x<n;x++)b[x]=0;for(var T=0;T<v;T++)for(var P=a[T],k=Number.MAX_VALUE,S=void 0,D=0;D<n;D++){var M=cn(_[D]-P);M<k&&(k=M,S=D),b[S]++,y[T]=S}for(var R=new Array(n),C=0;C<n;C++)R[C]=null;for(var A=0;A<v;A++)null===R[m=y[A]]?R[m]=a[A]:R[m]+=a[A];for(var j=0;j<n;j++)R[j]*=1/b[j];w=!1;for(var F=0;F<n;F++)if(R[F]!==_[F]){w=!0;break}_=R,++E>200&&(w=!1)}for(var L={},I=0;I<n;I++)L[I]=[];for(var N=0;N<v;N++)L[m=y[N]].push(a[N]);for(var U=[],B=0;B<n;B++)U.push(L[B][0]),U.push(L[B][L[B].length-1]);U=U.sort((function(e,t){return e-t})),s.push(U[0]);for(var H=1;H<U.length;H+=2){var V=U[H];isNaN(V)||-1!==s.indexOf(V)||s.push(V)}}return s},dn={analyze:ln,limits:fn},pn=Math.sqrt,hn=Math.atan2,gn=Math.abs,mn=Math.cos,vn=Math.PI,yn={cool:function(){return Qt([g.hsl(180,1,.9),g.hsl(250,.7,.4)])},hot:function(){return Qt(["#000","#f00","#ff0","#fff"]).mode("rgb")}},bn={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},wn=0,En=Object.keys(bn);wn<En.length;wn+=1){var _n=En[wn];bn[_n.toLowerCase()]=bn[_n]}var On=bn;return g.average=function(e,t,n){void 0===t&&(t="lrgb"),void 0===n&&(n=null);var r=e.length;n||(n=Array.from(new Array(r)).map((function(){return 1})));var o=r/n.reduce((function(e,t){return e+t}));if(n.forEach((function(e,t){n[t]*=o})),e=e.map((function(e){return new p(e)})),"lrgb"===t)return Ht(e,n);for(var i=e.shift(),a=i.get(t),s=[],u=0,c=0,l=0;l<a.length;l++)if(a[l]=(a[l]||0)*n[0],s.push(isNaN(a[l])?0:n[0]),"h"===t.charAt(l)&&!isNaN(a[l])){var f=a[l]/180*It;u+=Nt(f)*n[0],c+=Ut(f)*n[0]}var d=i.alpha()*n[0];e.forEach((function(e,r){var o=e.get(t);d+=e.alpha()*n[r+1];for(var i=0;i<a.length;i++)if(!isNaN(o[i]))if(s[i]+=n[r+1],"h"===t.charAt(i)){var l=o[i]/180*It;u+=Nt(l)*n[r+1],c+=Ut(l)*n[r+1]}else a[i]+=o[i]*n[r+1]}));for(var h=0;h<a.length;h++)if("h"===t.charAt(h)){for(var g=Bt(c/s[h],u/s[h])/It*180;g<0;)g+=360;for(;g>=360;)g-=360;a[h]=g}else a[h]=a[h]/s[h];return d/=r,new p(a,t).alpha(d>.99999?1:d,!0)},g.bezier=function(e){var t=Wt(e);return t.scale=function(){return Qt(t)},t},g.blend=Yt,g.cubehelix=function(e,t,n,r,o){void 0===e&&(e=300),void 0===t&&(t=-1.5),void 0===n&&(n=1),void 0===r&&(r=1),void 0===o&&(o=[0,1]);var i,a=0;"array"===Kt(o)?i=o[1]-o[0]:(i=0,o=[o,o]);var s=function(s){var u=Jt*((e+120)/360+t*s),c=en(o[0]+i*s,r),l=(0!==a?n[0]+s*a:n)*c*(1-c)/2,f=nn(u),d=tn(u);return g(Zt([255*(c+l*(-.14861*f+1.78277*d)),255*(c+l*(-.29227*f-.90649*d)),255*(c+l*(1.97294*f)),1]))};return s.start=function(t){return null==t?e:(e=t,s)},s.rotations=function(e){return null==e?t:(t=e,s)},s.gamma=function(e){return null==e?r:(r=e,s)},s.hue=function(e){return null==e?n:("array"===Kt(n=e)?0==(a=n[1]-n[0])&&(n=n[1]):a=0,s)},s.lightness=function(e){return null==e?o:("array"===Kt(e)?(o=e,i=e[1]-e[0]):(o=[e,e],i=0),s)},s.scale=function(){return g.scale(s)},s.hue(n),s},g.mix=g.interpolate=St,g.random=function(){for(var e="#",t=0;t<6;t++)e+="0123456789abcdef".charAt(rn(16*on()));return new p(e,"hex")},g.scale=Qt,g.analyze=dn.analyze,g.contrast=function(e,t){e=new p(e),t=new p(t);var n=e.luminance(),r=t.luminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)},g.deltaE=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1),e=new p(e),t=new p(t);for(var o=Array.from(e.lab()),i=o[0],a=o[1],s=o[2],u=Array.from(t.lab()),c=u[0],l=u[1],f=u[2],d=pn(a*a+s*s),h=pn(l*l+f*f),g=i<16?.511:.040975*i/(1+.01765*i),m=.0638*d/(1+.0131*d)+.638,v=d<1e-6?0:180*hn(s,a)/vn;v<0;)v+=360;for(;v>=360;)v-=360;var y=v>=164&&v<=345?.56+gn(.2*mn(vn*(v+168)/180)):.36+gn(.4*mn(vn*(v+35)/180)),b=d*d*d*d,w=pn(b/(b+1900)),E=m*(w*y+1-w),_=d-h,O=a-l,x=s-f,T=(i-c)/(n*g),P=_/(r*m);return pn(T*T+P*P+(O*O+x*x-_*_)/(E*E))},g.distance=function(e,t,n){void 0===n&&(n="lab"),e=new p(e),t=new p(t);var r=e.get(n),o=t.get(n),i=0;for(var a in r){var s=(r[a]||0)-(o[a]||0);i+=s*s}return Math.sqrt(i)},g.limits=dn.limits,g.valid=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];try{return new(Function.prototype.bind.apply(p,[null].concat(e))),!0}catch(e){return!1}},g.scales=yn,g.colors=ct,g.brewer=On,g}()},6209:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)&&n.length){var a=o.apply(null,n);a&&e.push(a)}else if("object"===i)for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},4124:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=n(5841),c=n(9558),l=n(4624),f=n(9565).createFocusTrap,d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(d,e);var t,n,r,l,f=(r=d,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(r);if(l){var n=s(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return a(this,e)});function d(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(t=f.call(this,e)).tailoredFocusTrapOptions={returnFocusOnDeactivate:!1},t.returnFocusOnDeactivate=!0;var n=e.focusTrapOptions;for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&("returnFocusOnDeactivate"!==r?"onPostDeactivate"!==r?t.tailoredFocusTrapOptions[r]=n[r]:t.onPostDeactivate=n[r]:t.returnFocusOnDeactivate=!!n[r]);return t.focusTrapElements=e.containerElements||[],t.updatePreviousElement(),t}return t=d,(n=[{key:"getNodeForOption",value:function(e){var t=this.tailoredFocusTrapOptions[e];if(!t)return null;var n=t;if("string"==typeof t&&!(n=document.querySelector(t)))throw new Error("`".concat(e,"` refers to no known node"));if("function"==typeof t&&!(n=t()))throw new Error("`".concat(e,"` did not return a node"));return n}},{key:"getReturnFocusNode",value:function(){return this.getNodeForOption("setReturnFocus")||this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var e=this.props.focusTrapOptions.document||("undefined"!=typeof document?document:void 0);e&&(this.previouslyFocusedElement=e.activeElement)}},{key:"deactivateTrap",value:function(){var e=this,t=this.tailoredFocusTrapOptions.checkCanReturnFocus;this.focusTrap&&this.focusTrap.deactivate({returnFocus:!1});var n=function(){var t=e.getReturnFocusNode();(null==t?void 0:t.focus)&&e.returnFocusOnDeactivate&&t.focus(),e.onPostDeactivate&&e.onPostDeactivate.call(null)};t?t(this.getReturnFocusNode()).then(n,n):n()}},{key:"setupFocusTrap",value:function(){if(!this.focusTrap){var e=this.focusTrapElements.map(c.findDOMNode);e.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(e,this.tailoredFocusTrapOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}}},{key:"componentDidMount",value:function(){this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(e){if(this.focusTrap){e.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var t=!e.active&&this.props.active,n=e.active&&!this.props.active,r=!e.paused&&this.props.paused,o=e.paused&&!this.props.paused;if(t&&(this.updatePreviousElement(),this.focusTrap.activate()),n)return void this.deactivateTrap();r&&this.focusTrap.pause(),o&&this.focusTrap.unpause()}else e.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements,this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var e=this,t=this.props.children?u.Children.only(this.props.children):void 0;if(t){if(t.type&&t.type===u.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return u.cloneElement(t,{ref:function(n){var r=e.props.containerElements;t&&("function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=r||[n]}})}return null}}])&&o(t.prototype,n),d}(u.Component),p="undefined"==typeof Element?Function:Element;d.propTypes={active:l.bool,paused:l.bool,focusTrapOptions:l.shape({document:l.object,onActivate:l.func,onPostActivate:l.func,checkCanFocusTrap:l.func,onDeactivate:l.func,onPostDeactivate:l.func,checkCanReturnFocus:l.func,initialFocus:l.oneOfType([l.instanceOf(p),l.string,l.func,l.bool]),fallbackFocus:l.oneOfType([l.instanceOf(p),l.string,l.func]),escapeDeactivates:l.oneOfType([l.bool,l.func]),clickOutsideDeactivates:l.oneOfType([l.bool,l.func]),returnFocusOnDeactivate:l.bool,setReturnFocus:l.oneOfType([l.instanceOf(p),l.string,l.func]),allowOutsideClick:l.oneOfType([l.bool,l.func]),preventScroll:l.bool}),containerElements:l.arrayOf(l.instanceOf(p)),children:l.oneOfType([l.element,l.instanceOf(p)])},d.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:f},e.exports=d},9565:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createFocusTrap:()=>d});var r=n(3710);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a,s=(a=[],{activateTrap:function(e){if(a.length>0){var t=a[a.length-1];t!==e&&t.pause()}var n=a.indexOf(e);-1===n||a.splice(n,1),a.push(e)},deactivateTrap:function(e){var t=a.indexOf(e);-1!==t&&a.splice(t,1),a.length>0&&a[a.length-1].unpause()}}),u=function(e){return setTimeout(e,0)},c=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},l=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},f=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},d=function(e,t){var n,a=(null==t?void 0:t.document)||document,d=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),p={containers:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},h=function(e,t,n){return e&&void 0!==e[t]?e[t]:d[n||t]},g=function(e){return!(!e||!p.containers.some((function(t){return t.contains(e)})))},m=function(e){var t=d[e];if("function"==typeof t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];t=t.apply(void 0,r)}if(!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var i=t;if("string"==typeof t&&!(i=a.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return i},v=function(){var e=m("initialFocus");if(!1===e)return!1;if(void 0===e)if(g(a.activeElement))e=a.activeElement;else{var t=p.tabbableGroups[0];e=t&&t.firstTabbableNode||m("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},y=function(){if(p.tabbableGroups=p.containers.map((function(e){var t=(0,r.ht)(e);if(t.length>0)return{container:e,firstTabbableNode:t[0],lastTabbableNode:t[t.length-1]}})).filter((function(e){return!!e})),p.tabbableGroups.length<=0&&!m("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},b=function e(t){!1!==t&&t!==a.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!d.preventScroll}),p.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(v()))},w=function(e){var t=m("setReturnFocus",e);return t||!1!==t&&e},E=function(e){var t=f(e);g(t)||(l(d.clickOutsideDeactivates,e)?n.deactivate({returnFocus:d.returnFocusOnDeactivate&&!(0,r.EB)(t)}):l(d.allowOutsideClick,e)||e.preventDefault())},_=function(e){var t=f(e),n=g(t);n||t instanceof Document?n&&(p.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),b(p.mostRecentlyFocusedNode||v()))},O=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==l(d.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=f(e);y();var n=null;if(p.tabbableGroups.length>0){var r=c(p.tabbableGroups,(function(e){return e.container.contains(t)}));if(r<0)n=e.shiftKey?p.tabbableGroups[p.tabbableGroups.length-1].lastTabbableNode:p.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var o=c(p.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(o<0&&p.tabbableGroups[r].container===t&&(o=r),o>=0){var i=0===o?p.tabbableGroups.length-1:o-1;n=p.tabbableGroups[i].lastTabbableNode}}else{var a=c(p.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(a<0&&p.tabbableGroups[r].container===t&&(a=r),a>=0){var s=a===p.tabbableGroups.length-1?0:a+1;n=p.tabbableGroups[s].firstTabbableNode}}}else n=m("fallbackFocus");n&&(e.preventDefault(),b(n))}(e)},x=function(e){if(!l(d.clickOutsideDeactivates,e)){var t=f(e);g(t)||l(d.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())}},T=function(){if(p.active)return s.activateTrap(n),p.delayInitialFocusTimer=d.delayInitialFocus?u((function(){b(v())})):b(v()),a.addEventListener("focusin",_,!0),a.addEventListener("mousedown",E,{capture:!0,passive:!1}),a.addEventListener("touchstart",E,{capture:!0,passive:!1}),a.addEventListener("click",x,{capture:!0,passive:!1}),a.addEventListener("keydown",O,{capture:!0,passive:!1}),n},P=function(){if(p.active)return a.removeEventListener("focusin",_,!0),a.removeEventListener("mousedown",E,!0),a.removeEventListener("touchstart",E,!0),a.removeEventListener("click",x,!0),a.removeEventListener("keydown",O,!0),n};return(n={activate:function(e){if(p.active)return this;var t=h(e,"onActivate"),n=h(e,"onPostActivate"),r=h(e,"checkCanFocusTrap");r||y(),p.active=!0,p.paused=!1,p.nodeFocusedBeforeActivation=a.activeElement,t&&t();var o=function(){r&&y(),T(),n&&n()};return r?(r(p.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(e){if(!p.active)return this;clearTimeout(p.delayInitialFocusTimer),p.delayInitialFocusTimer=void 0,P(),p.active=!1,p.paused=!1,s.deactivateTrap(n);var t=h(e,"onDeactivate"),r=h(e,"onPostDeactivate"),o=h(e,"checkCanReturnFocus");t&&t();var i=h(e,"returnFocus","returnFocusOnDeactivate"),a=function(){u((function(){i&&b(w(p.nodeFocusedBeforeActivation)),r&&r()}))};return i&&o?(o(w(p.nodeFocusedBeforeActivation)).then(a,a),this):(a(),this)},pause:function(){return p.paused||!p.active||(p.paused=!0,P()),this},unpause:function(){return p.paused&&p.active?(p.paused=!1,y(),T(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return p.containers=t.map((function(e){return"string"==typeof e?a.querySelector(e):e})),p.active&&y(),this}}).updateContainerElements(e),n}},8318:(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",s="[object Boolean]",u="[object Date]",c="[object Error]",l="[object Function]",f="[object Map]",d="[object Number]",p="[object Object]",h="[object Promise]",g="[object RegExp]",m="[object Set]",v="[object String]",y="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",E=/^\[object .+?Constructor\]$/,_=/^(?:0|[1-9]\d*)$/,O={};O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O[i]=O[a]=O[b]=O[s]=O[w]=O[u]=O[c]=O[l]=O[f]=O[d]=O[p]=O[g]=O[m]=O[v]=O[y]=!1;var x="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,T="object"==typeof self&&self&&self.Object===Object&&self,P=x||T||Function("return this")(),k=t&&!t.nodeType&&t,S=k&&e&&!e.nodeType&&e,D=S&&S.exports===k,M=D&&x.process,R=function(){try{return M&&M.binding&&M.binding("util")}catch(e){}}(),C=R&&R.isTypedArray;function A(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function j(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function F(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var L,I,N,U=Array.prototype,B=Function.prototype,H=Object.prototype,V=P["__core-js_shared__"],z=B.toString,Q=H.hasOwnProperty,X=(L=/[^.]+$/.exec(V&&V.keys&&V.keys.IE_PROTO||""))?"Symbol(src)_1."+L:"",W=H.toString,q=RegExp("^"+z.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=D?P.Buffer:void 0,$=P.Symbol,Y=P.Uint8Array,K=H.propertyIsEnumerable,Z=U.splice,J=$?$.toStringTag:void 0,ee=Object.getOwnPropertySymbols,te=G?G.isBuffer:void 0,ne=(I=Object.keys,N=Object,function(e){return I(N(e))}),re=Se(P,"DataView"),oe=Se(P,"Map"),ie=Se(P,"Promise"),ae=Se(P,"Set"),se=Se(P,"WeakMap"),ue=Se(Object,"create"),ce=Ce(re),le=Ce(oe),fe=Ce(ie),de=Ce(ae),pe=Ce(se),he=$?$.prototype:void 0,ge=he?he.valueOf:void 0;function me(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ye(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function be(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ye;++t<n;)this.add(e[t])}function we(e){var t=this.__data__=new ve(e);this.size=t.size}function Ee(e,t){for(var n=e.length;n--;)if(Ae(e[n][0],t))return n;return-1}function _e(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":J&&J in Object(e)?function(e){var t=Q.call(e,J),n=e[J];try{e[J]=void 0;var r=!0}catch(e){}var o=W.call(e);return r&&(t?e[J]=n:delete e[J]),o}(e):function(e){return W.call(e)}(e)}function Oe(e){return Be(e)&&_e(e)==i}function xe(e,t,n,r,o){return e===t||(null==e||null==t||!Be(e)&&!Be(t)?e!=e&&t!=t:function(e,t,n,r,o,l){var h=Fe(e),y=Fe(t),E=h?a:Me(e),_=y?a:Me(t),O=(E=E==i?p:E)==p,x=(_=_==i?p:_)==p,T=E==_;if(T&&Le(e)){if(!Le(t))return!1;h=!0,O=!1}if(T&&!O)return l||(l=new we),h||He(e)?Te(e,t,n,r,o,l):function(e,t,n,r,o,i,a){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!i(new Y(e),new Y(t)));case s:case u:case d:return Ae(+e,+t);case c:return e.name==t.name&&e.message==t.message;case g:case v:return e==t+"";case f:var l=j;case m:var p=1&r;if(l||(l=F),e.size!=t.size&&!p)return!1;var h=a.get(e);if(h)return h==t;r|=2,a.set(e,t);var y=Te(l(e),l(t),r,o,i,a);return a.delete(e),y;case"[object Symbol]":if(ge)return ge.call(e)==ge.call(t)}return!1}(e,t,E,n,r,o,l);if(!(1&n)){var P=O&&Q.call(e,"__wrapped__"),k=x&&Q.call(t,"__wrapped__");if(P||k){var S=P?e.value():e,D=k?t.value():t;return l||(l=new we),o(S,D,n,r,l)}}return!!T&&(l||(l=new we),function(e,t,n,r,o,i){var a=1&n,s=Pe(e),u=s.length;if(u!=Pe(t).length&&!a)return!1;for(var c=u;c--;){var l=s[c];if(!(a?l in t:Q.call(t,l)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var d=!0;i.set(e,t),i.set(t,e);for(var p=a;++c<u;){var h=e[l=s[c]],g=t[l];if(r)var m=a?r(g,h,l,t,e,i):r(h,g,l,e,t,i);if(!(void 0===m?h===g||o(h,g,n,r,i):m)){d=!1;break}p||(p="constructor"==l)}if(d&&!p){var v=e.constructor,y=t.constructor;v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(d=!1)}return i.delete(e),i.delete(t),d}(e,t,n,r,o,l))}(e,t,n,r,xe,o))}function Te(e,t,n,r,o,i){var a=1&n,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var l=-1,f=!0,d=2&n?new be:void 0;for(i.set(e,t),i.set(t,e);++l<s;){var p=e[l],h=t[l];if(r)var g=a?r(h,p,l,t,e,i):r(p,h,l,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(d){if(!A(t,(function(e,t){if(a=t,!d.has(a)&&(p===e||o(p,e,n,r,i)))return d.push(t);var a}))){f=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function Pe(e){return function(e,t,n){var r=t(e);return Fe(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Ve,De)}function ke(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Se(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ue(e)||function(e){return!!X&&X in e}(e))&&(Ie(e)?q:E).test(Ce(e))}(n)?n:void 0}me.prototype.clear=function(){this.__data__=ue?ue(null):{},this.size=0},me.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},me.prototype.get=function(e){var t=this.__data__;if(ue){var n=t[e];return n===r?void 0:n}return Q.call(t,e)?t[e]:void 0},me.prototype.has=function(e){var t=this.__data__;return ue?void 0!==t[e]:Q.call(t,e)},me.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ue&&void 0===t?r:t,this},ve.prototype.clear=function(){this.__data__=[],this.size=0},ve.prototype.delete=function(e){var t=this.__data__,n=Ee(t,e);return!(n<0||(n==t.length-1?t.pop():Z.call(t,n,1),--this.size,0))},ve.prototype.get=function(e){var t=this.__data__,n=Ee(t,e);return n<0?void 0:t[n][1]},ve.prototype.has=function(e){return Ee(this.__data__,e)>-1},ve.prototype.set=function(e,t){var n=this.__data__,r=Ee(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ye.prototype.clear=function(){this.size=0,this.__data__={hash:new me,map:new(oe||ve),string:new me}},ye.prototype.delete=function(e){var t=ke(this,e).delete(e);return this.size-=t?1:0,t},ye.prototype.get=function(e){return ke(this,e).get(e)},ye.prototype.has=function(e){return ke(this,e).has(e)},ye.prototype.set=function(e,t){var n=ke(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},be.prototype.add=be.prototype.push=function(e){return this.__data__.set(e,r),this},be.prototype.has=function(e){return this.__data__.has(e)},we.prototype.clear=function(){this.__data__=new ve,this.size=0},we.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},we.prototype.get=function(e){return this.__data__.get(e)},we.prototype.has=function(e){return this.__data__.has(e)},we.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ve){var r=n.__data__;if(!oe||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ye(r)}return n.set(e,t),this.size=n.size,this};var De=ee?function(e){return null==e?[]:(e=Object(e),function(t,n){for(var r=-1,o=null==t?0:t.length,i=0,a=[];++r<o;){var s=t[r];u=s,K.call(e,u)&&(a[i++]=s)}var u;return a}(ee(e)))}:function(){return[]},Me=_e;function Re(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||_.test(e))&&e>-1&&e%1==0&&e<t}function Ce(e){if(null!=e){try{return z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ae(e,t){return e===t||e!=e&&t!=t}(re&&Me(new re(new ArrayBuffer(1)))!=w||oe&&Me(new oe)!=f||ie&&Me(ie.resolve())!=h||ae&&Me(new ae)!=m||se&&Me(new se)!=y)&&(Me=function(e){var t=_e(e),n=t==p?e.constructor:void 0,r=n?Ce(n):"";if(r)switch(r){case ce:return w;case le:return f;case fe:return h;case de:return m;case pe:return y}return t});var je=Oe(function(){return arguments}())?Oe:function(e){return Be(e)&&Q.call(e,"callee")&&!K.call(e,"callee")},Fe=Array.isArray,Le=te||function(){return!1};function Ie(e){if(!Ue(e))return!1;var t=_e(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ne(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Ue(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Be(e){return null!=e&&"object"==typeof e}var He=C?function(e){return function(t){return e(t)}}(C):function(e){return Be(e)&&Ne(e.length)&&!!O[_e(e)]};function Ve(e){return null!=(t=e)&&Ne(t.length)&&!Ie(t)?function(e,t){var n=Fe(e),r=!n&&je(e),o=!n&&!r&&Le(e),i=!n&&!r&&!o&&He(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=s.length;for(var c in e)!t&&!Q.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Re(c,u))||s.push(c);return s}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||H))return ne(e);var t,n,r=[];for(var o in Object(e))Q.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e);var t}e.exports=function(e,t){return xe(e,t)}},1269:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")(),a=Object.prototype,s=0,u=a.toString,c=i.Symbol,l=c?c.prototype:void 0,f=l?l.toString:void 0;e.exports=function(e){var t,n=++s;return(null==(t=e)?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return f?f.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t))+n}},7643:(e,t,n)=>{var r=n(5557),o=n(4349),i=n(407),a=n(5134),s=n(9951);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},3872:(e,t,n)=>{var r=n(2470),o=n(7289),i=n(7614),a=n(3067),s=n(9346);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},5674:(e,t,n)=>{var r=n(489)(n(4818),"Map");e.exports=r},2462:(e,t,n)=>{var r=n(6290),o=n(4951),i=n(440),a=n(6180),s=n(7719);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},5135:(e,t,n)=>{var r=n(3872),o=n(1490),i=n(2594),a=n(5953),s=n(4667),u=n(4615);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,e.exports=c},9652:(e,t,n)=>{var r=n(4818).Symbol;e.exports=r},4600:(e,t,n)=>{var r=n(4818).Uint8Array;e.exports=r},6562:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},1998:(e,t,n)=>{var r=n(1453),o=n(5664),i=n(5860),a=n(9571),s=n(8347),u=n(1859),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&a(e),d=!n&&!l&&!f&&u(e),p=n||l||f||d,h=p?r(e.length,String):[],g=h.length;for(var m in e)!t&&!c.call(e,m)||p&&("length"==m||f&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||h.push(m);return h}},1612:(e,t,n)=>{var r=n(6912),o=n(3355);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},6258:(e,t,n)=>{var r=n(6912),o=n(3355),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},8620:(e,t,n)=>{var r=n(3355);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},6912:(e,t,n)=>{var r=n(4698);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},8528:(e,t,n)=>{var r=n(4820),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},3153:(e,t,n)=>{var r=n(7572)();e.exports=r},2759:(e,t,n)=>{var r=n(9652),o=n(9911),i=n(3744),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},6651:(e,t,n)=>{var r=n(2759),o=n(1408);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},3216:(e,t,n)=>{var r=n(830),o=n(931),i=n(4820),a=n(1304),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,d=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?d:s).test(a(e))}},9920:(e,t,n)=>{var r=n(2759),o=n(7906),i=n(1408),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},3339:(e,t,n)=>{var r=n(4820),o=n(7839),i=n(3003),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},7604:(e,t,n)=>{var r=n(5135),o=n(1612),i=n(3153),a=n(480),s=n(4820),u=n(2551),c=n(7700);e.exports=function e(t,n,l,f,d){t!==n&&i(n,(function(i,u){if(d||(d=new r),s(i))a(t,n,u,l,e,f,d);else{var p=f?f(c(t,u),i,u+"",t,n,d):void 0;void 0===p&&(p=i),o(t,u,p)}}),u)}},480:(e,t,n)=>{var r=n(1612),o=n(8192),i=n(9947),a=n(6581),s=n(1172),u=n(5664),c=n(5860),l=n(5274),f=n(9571),d=n(830),p=n(4820),h=n(1969),g=n(1859),m=n(7700),v=n(2963);e.exports=function(e,t,n,y,b,w,E){var _=m(e,n),O=m(t,n),x=E.get(O);if(x)r(e,n,x);else{var T=w?w(_,O,n+"",e,t,E):void 0,P=void 0===T;if(P){var k=c(O),S=!k&&f(O),D=!k&&!S&&g(O);T=O,k||S||D?c(_)?T=_:l(_)?T=a(_):S?(P=!1,T=o(O,!0)):D?(P=!1,T=i(O,!0)):T=[]:h(O)||u(O)?(T=_,u(_)?T=v(_):p(_)&&!d(_)||(T=s(O))):P=!1}P&&(E.set(O,T),b(T,O,y,w,E),E.delete(O)),r(e,n,T)}}},5757:(e,t,n)=>{var r=n(1191),o=n(2549),i=n(6613);e.exports=function(e,t){return i(o(e,t,r),e+"")}},4274:(e,t,n)=>{var r=n(7477),o=n(4698),i=n(1191),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},1453:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},8275:e=>{e.exports=function(e){return function(t){return e(t)}}},1254:(e,t,n)=>{var r=n(4600);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},8192:(e,t,n)=>{e=n.nmd(e);var r=n(4818),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},9947:(e,t,n)=>{var r=n(1254);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},6581:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},7200:(e,t,n)=>{var r=n(6258),o=n(6912);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var c=t[s],l=i?i(n[c],e[c],c,n,e):void 0;void 0===l&&(l=e[c]),a?o(n,c,l):r(n,c,l)}return n}},8940:(e,t,n)=>{var r=n(4818)["__core-js_shared__"];e.exports=r},3102:(e,t,n)=>{var r=n(5757),o=n(7072);e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t}))}},7572:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===n(i[u],u,i))break}return t}}},4698:(e,t,n)=>{var r=n(489),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},3566:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},6330:(e,t,n)=>{var r=n(5513);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},489:(e,t,n)=>{var r=n(3216),o=n(3626);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},4966:(e,t,n)=>{var r=n(6148)(Object.getPrototypeOf,Object);e.exports=r},9911:(e,t,n)=>{var r=n(9652),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},3626:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},5557:(e,t,n)=>{var r=n(2037);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},4349:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},407:(e,t,n)=>{var r=n(2037),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},5134:(e,t,n)=>{var r=n(2037),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},9951:(e,t,n)=>{var r=n(2037);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},1172:(e,t,n)=>{var r=n(8528),o=n(4966),i=n(7839);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},8347:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},7072:(e,t,n)=>{var r=n(3355),o=n(8809),i=n(8347),a=n(4820);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},5513:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},931:(e,t,n)=>{var r,o=n(8940),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},7839:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},2470:e=>{e.exports=function(){this.__data__=[],this.size=0}},7289:(e,t,n)=>{var r=n(8620),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},7614:(e,t,n)=>{var r=n(8620);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},3067:(e,t,n)=>{var r=n(8620);e.exports=function(e){return r(this.__data__,e)>-1}},9346:(e,t,n)=>{var r=n(8620);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},6290:(e,t,n)=>{var r=n(7643),o=n(3872),i=n(5674);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},4951:(e,t,n)=>{var r=n(6330);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},440:(e,t,n)=>{var r=n(6330);e.exports=function(e){return r(this,e).get(e)}},6180:(e,t,n)=>{var r=n(6330);e.exports=function(e){return r(this,e).has(e)}},7719:(e,t,n)=>{var r=n(6330);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},2037:(e,t,n)=>{var r=n(489)(Object,"create");e.exports=r},3003:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},9693:(e,t,n)=>{e=n.nmd(e);var r=n(3566),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},3744:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},6148:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},2549:(e,t,n)=>{var r=n(6562),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),u=Array(s);++a<s;)u[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=n(u),r(e,this,c)}}},4818:(e,t,n)=>{var r=n(3566),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},7700:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},6613:(e,t,n)=>{var r=n(4274),o=n(3546)(r);e.exports=o},3546:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},1490:(e,t,n)=>{var r=n(3872);e.exports=function(){this.__data__=new r,this.size=0}},2594:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},5953:e=>{e.exports=function(e){return this.__data__.get(e)}},4667:e=>{e.exports=function(e){return this.__data__.has(e)}},4615:(e,t,n)=>{var r=n(3872),o=n(5674),i=n(2462);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},1304:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7477:e=>{e.exports=function(e){return function(){return e}}},3355:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},1191:e=>{e.exports=function(e){return e}},5664:(e,t,n)=>{var r=n(6651),o=n(1408),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},5860:e=>{var t=Array.isArray;e.exports=t},8809:(e,t,n)=>{var r=n(830),o=n(7906);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},5274:(e,t,n)=>{var r=n(8809),o=n(1408);e.exports=function(e){return o(e)&&r(e)}},9571:(e,t,n)=>{e=n.nmd(e);var r=n(4818),o=n(8585),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||o;e.exports=u},830:(e,t,n)=>{var r=n(2759),o=n(4820);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},7906:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},4820:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},1408:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},1969:(e,t,n)=>{var r=n(2759),o=n(4966),i=n(1408),a=Function.prototype,s=Object.prototype,u=a.toString,c=s.hasOwnProperty,l=u.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==l}},1859:(e,t,n)=>{var r=n(9920),o=n(8275),i=n(9693),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},2551:(e,t,n)=>{var r=n(1998),o=n(3339),i=n(8809);e.exports=function(e){return i(e)?r(e,!0):o(e)}},7168:(e,t,n)=>{var r=n(7604),o=n(3102)((function(e,t,n){r(e,t,n)}));e.exports=o},8585:e=>{e.exports=function(){return!1}},2963:(e,t,n)=>{var r=n(7200),o=n(2551);e.exports=function(e){return r(e,o(e))}},5162:(e,t,n)=>{var r;!function(o,i,a){if(o){for(var s,u={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},c={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},l={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},f={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d=1;d<20;++d)u[111+d]="f"+d;for(d=0;d<=9;++d)u[d+96]=d.toString();b.prototype.bind=function(e,t,n){var r=this;return e=e instanceof Array?e:[e],r._bindMultiple.call(r,e,t,n),r},b.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},b.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},b.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},b.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(y(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},b.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},b.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(u[t]=e[t]);s=null},b.init=function(){var e=b(i);for(var t in e)"_"!==t.charAt(0)&&(b[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},b.init(),o.Mousetrap=b,e.exports&&(e.exports=b),void 0===(r=function(){return b}.call(t,n,t,e))||(e.exports=r)}function p(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function h(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return u[e.which]?u[e.which]:c[e.which]?c[e.which]:String.fromCharCode(e.which).toLowerCase()}function g(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function m(e,t,n){return n||(n=function(){if(!s)for(var e in s={},u)e>95&&e<112||u.hasOwnProperty(e)&&(s[u[e]]=e);return s}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function v(e,t){var n,r,o,i=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),o=0;o<n.length;++o)r=n[o],f[r]&&(r=f[r]),t&&"keypress"!=t&&l[r]&&(r=l[r],i.push("shift")),g(r)&&i.push(r);return{key:r,modifiers:i,action:t=m(r,i,t)}}function y(e,t){return null!==e&&e!==i&&(e===t||y(e.parentNode,t))}function b(e){var t=this;if(e=e||i,!(t instanceof b))return new b(e);t.target=e,t._callbacks={},t._directMap={};var n,r={},o=!1,a=!1,s=!1;function u(e){e=e||{};var t,n=!1;for(t in r)e[t]?n=!0:r[t]=0;n||(s=!1)}function c(e,n,o,i,a,s){var u,c,l,f,d=[],p=o.type;if(!t._callbacks[e])return[];for("keyup"==p&&g(e)&&(n=[e]),u=0;u<t._callbacks[e].length;++u)if(c=t._callbacks[e][u],(i||!c.seq||r[c.seq]==c.level)&&p==c.action&&("keypress"==p&&!o.metaKey&&!o.ctrlKey||(l=n,f=c.modifiers,l.sort().join(",")===f.sort().join(",")))){var h=!i&&c.combo==a,m=i&&c.seq==i&&c.level==s;(h||m)&&t._callbacks[e].splice(u,1),d.push(c)}return d}function l(e,n,r,o){t.stopCallback(n,n.target||n.srcElement,r,o)||!1===e(n,r)&&(function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}(n),function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}(n))}function f(e){"number"!=typeof e.which&&(e.which=e.keyCode);var n=h(e);n&&("keyup"!=e.type||o!==n?t.handleKey(n,function(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}(e),e):o=!1)}function d(e,i,a,f,p){t._directMap[e+":"+a]=i;var g,m=(e=e.replace(/\s+/g," ")).split(" ");m.length>1?function(e,t,i,a){function c(t){return function(){s=t,++r[e],clearTimeout(n),n=setTimeout(u,1e3)}}function f(t){l(i,t,e),"keyup"!==a&&(o=h(t)),setTimeout(u,10)}r[e]=0;for(var p=0;p<t.length;++p){var g=p+1===t.length?f:c(a||v(t[p+1]).action);d(t[p],g,a,e,p)}}(e,m,i,a):(g=v(e,a),t._callbacks[g.key]=t._callbacks[g.key]||[],c(g.key,g.modifiers,{type:g.action},f,e,p),t._callbacks[g.key][f?"unshift":"push"]({callback:i,modifiers:g.modifiers,action:g.action,seq:f,level:p,combo:e}))}t._handleKey=function(e,t,n){var r,o=c(e,t,n),i={},f=0,d=!1;for(r=0;r<o.length;++r)o[r].seq&&(f=Math.max(f,o[r].level));for(r=0;r<o.length;++r)if(o[r].seq){if(o[r].level!=f)continue;d=!0,i[o[r].seq]=1,l(o[r].callback,n,o[r].combo,o[r].seq)}else d||l(o[r].callback,n,o[r].combo);var p="keypress"==n.type&&a;n.type!=s||g(e)||p||u(i),a=d&&"keydown"==n.type},t._bindMultiple=function(e,t,n){for(var r=0;r<e.length;++r)d(e[r],t,n)},p(e,"keypress",f),p(e,"keydown",f),p(e,"keyup",f)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},8690:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,s,u=o(e),c=1;c<arguments.length;c++){for(var l in a=Object(arguments[c]))n.call(a,l)&&(u[l]=a[l]);if(t){s=t(a);for(var f=0;f<s.length;f++)r.call(a,s[f])&&(u[s[f]]=a[s[f]])}}return u}},5732:(e,t,n)=>{var r=n(2743);e.exports=function(e){var t,n,o,i;if(t=/^((?:rgb|hs[lv]|cmyk|xyz|lab)a?)\s*\(([^\)]*)\)/.exec(e)){var a=t[1],s="cmyk"===(u=a.replace(/a$/,""))?4:3;n=r[u],o=t[2].replace(/^\s+|\s+$/g,"").split(/\s*,\s*/).map((function(e,t){return/%$/.test(e)&&t===s?parseFloat(e)/100:(/%$/.test(e),parseFloat(e))})),a===u&&o.push(1),i=void 0===o[s]?1:o[s],o=o.slice(0,s),n[u]=function(){return o}}else if(/^#[A-Fa-f0-9]+$/.test(e)){var u;s=(u=e.replace(/^#/,"")).length,n=r.rgb,o=(o=u.split(3===s?/(.)/:/(..)/)).filter(Boolean).map((function(e){return 3===s?parseInt(e+e,16):parseInt(e,16)})),i=1,n.rgb=function(){return o},o[0]||(o[0]=0),o[1]||(o[1]=0),o[2]||(o[2]=0)}else(n=r.keyword).keyword=function(){return e},o=e,i=1;var c={rgb:void 0,hsl:void 0,hsv:void 0,cmyk:void 0,keyword:void 0,hex:void 0};try{c.rgb=n.rgb(o)}catch(e){}try{c.hsl=n.hsl(o)}catch(e){}try{c.hsv=n.hsv(o)}catch(e){}try{c.cmyk=n.cmyk(o)}catch(e){}try{c.keyword=n.keyword(o)}catch(e){}return c.rgb&&(c.hex="#"+c.rgb.map((function(e){var t=e.toString(16);return 1===t.length?"0"+t:t})).join("")),c.rgb&&(c.rgba=c.rgb.concat(i)),c.hsl&&(c.hsla=c.hsl.concat(i)),c.hsv&&(c.hsva=c.hsv.concat(i)),c.cmyk&&(c.cmyka=c.cmyk.concat(i)),c}},1919:e=>{function t(e){var t,n,r=e[0]/255,o=e[1]/255,i=e[2]/255,a=Math.min(r,o,i),s=Math.max(r,o,i),u=s-a;return s==a?t=0:r==s?t=(o-i)/u:o==s?t=2+(i-r)/u:i==s&&(t=4+(r-o)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+s)/2,[t,100*(s==a?0:n<=.5?u/(s+a):u/(2-s-a)),100*n]}function n(e){var t,n,r=e[0],o=e[1],i=e[2],a=Math.min(r,o,i),s=Math.max(r,o,i),u=s-a;return n=0==s?0:u/s*1e3/10,s==a?t=0:r==s?t=(o-i)/u:o==s?t=2+(i-r)/u:i==s&&(t=4+(r-o)/u),(t=Math.min(60*t,360))<0&&(t+=360),[t,n,s/255*1e3/10]}function o(e){var n=e[0],r=e[1],o=e[2];return[t(e)[0],1/255*Math.min(n,Math.min(r,o))*100,100*(o=1-1/255*Math.max(n,Math.max(r,o)))]}function i(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-o)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]}function a(e){return O[JSON.stringify(e)]}function s(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]}function u(e){var t=s(e),n=t[0],r=t[1],o=t[2];return r/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]}function c(e){var t,n,r,o,i,a=e[0]/360,s=e[1]/100,u=e[2]/100;if(0==s)return[i=255*u,i,i];t=2*u-(n=u<.5?u*(1+s):u+s-u*s),o=[0,0,0];for(var c=0;c<3;c++)(r=a+1/3*-(c-1))<0&&r++,r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,o[c]=255*i;return o}function l(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*i),u=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,u,a];case 1:return[s,r,a];case 2:return[a,r,u];case 3:return[a,s,r];case 4:return[u,a,r];case 5:return[r,a,s]}}function f(e){var t,n,o,i,a=e[0]/360,s=e[1]/100,u=e[2]/100,c=s+u;switch(c>1&&(s/=c,u/=c),o=6*a-(t=Math.floor(6*a)),0!=(1&t)&&(o=1-o),i=s+o*((n=1-u)-s),t){default:case 6:case 0:r=n,g=i,b=s;break;case 1:r=i,g=n,b=s;break;case 2:r=s,g=n,b=i;break;case 3:r=s,g=i,b=n;break;case 4:r=i,g=s,b=n;break;case 5:r=n,g=s,b=i}return[255*r,255*g,255*b]}function d(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]}function p(e){var t,n,r,o=e[0]/100,i=e[1]/100,a=e[2]/100;return n=-.9689*o+1.8758*i+.0415*a,r=.0557*o+-.204*i+1.057*a,t=(t=3.2406*o+-1.5372*i+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:t*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*=12.92,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]}function h(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]}function m(e){var t,n,r,o,i=e[0],a=e[1],s=e[2];return i<=8?o=(n=100*i/903.3)/100*7.787+16/116:(n=100*Math.pow((i+16)/116,3),o=Math.pow(n/100,1/3)),[t=t/95.047<=.008856?t=95.047*(a/500+o-16/116)/7.787:95.047*Math.pow(a/500+o,3),n,r=r/108.883<=.008859?r=108.883*(o-s/200-16/116)/7.787:108.883*Math.pow(o-s/200,3)]}function v(e){var t,n=e[0],r=e[1],o=e[2];return(t=360*Math.atan2(o,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+o*o),t]}function y(e){return p(m(e))}function w(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]}function E(e){return _[e]}e.exports={rgb2hsl:t,rgb2hsv:n,rgb2hwb:o,rgb2cmyk:i,rgb2keyword:a,rgb2xyz:s,rgb2lab:u,rgb2lch:function(e){return v(u(e))},hsl2rgb:c,hsl2hsv:function(e){var t=e[0],n=e[1]/100,r=e[2]/100;return 0===r?[0,0,0]:[t,2*(n*=(r*=2)<=1?r:2-r)/(r+n)*100,(r+n)/2*100]},hsl2hwb:function(e){return o(c(e))},hsl2cmyk:function(e){return i(c(e))},hsl2keyword:function(e){return a(c(e))},hsv2rgb:l,hsv2hsl:function(e){var t,n,r=e[0],o=e[1]/100,i=e[2]/100;return t=o*i,[r,100*(t=(t/=(n=(2-o)*i)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(e){return o(l(e))},hsv2cmyk:function(e){return i(l(e))},hsv2keyword:function(e){return a(l(e))},hwb2rgb:f,hwb2hsl:function(e){return t(f(e))},hwb2hsv:function(e){return n(f(e))},hwb2cmyk:function(e){return i(f(e))},hwb2keyword:function(e){return a(f(e))},cmyk2rgb:d,cmyk2hsl:function(e){return t(d(e))},cmyk2hsv:function(e){return n(d(e))},cmyk2hwb:function(e){return o(d(e))},cmyk2keyword:function(e){return a(d(e))},keyword2rgb:E,keyword2hsl:function(e){return t(E(e))},keyword2hsv:function(e){return n(E(e))},keyword2hwb:function(e){return o(E(e))},keyword2cmyk:function(e){return i(E(e))},keyword2lab:function(e){return u(E(e))},keyword2xyz:function(e){return s(E(e))},xyz2rgb:p,xyz2lab:h,xyz2lch:function(e){return v(h(e))},lab2xyz:m,lab2rgb:y,lab2lch:v,lch2lab:w,lch2xyz:function(e){return m(w(e))},lch2rgb:function(e){return y(w(e))}};var _={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},O={};for(var x in _)O[JSON.stringify(_[x])]=x},2743:(e,t,n)=>{var r=n(1919),o=function(){return new c};for(var i in r){o[i+"Raw"]=function(e){return function(t){return"number"==typeof t&&(t=Array.prototype.slice.call(arguments)),r[e](t)}}(i);var a=/(\w+)2(\w+)/.exec(i),s=a[1],u=a[2];(o[s]=o[s]||{})[u]=o[i]=function(e){return function(t){"number"==typeof t&&(t=Array.prototype.slice.call(arguments));var n=r[e](t);if("string"==typeof n||void 0===n)return n;for(var o=0;o<n.length;o++)n[o]=Math.round(n[o]);return n}}(i)}var c=function(){this.convs={}};c.prototype.routeSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"==typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n))},c.prototype.setValues=function(e,t){return this.space=e,this.convs={},this.convs[e]=t,this},c.prototype.getValues=function(e){var t=this.convs[e];if(!t){var n=this.space,r=this.convs[n];t=o[n][e](r),this.convs[e]=t}return t},["rgb","hsl","hsv","cmyk","keyword"].forEach((function(e){c.prototype[e]=function(t){return this.routeSpace(e,arguments)}})),e.exports=o},1482:(e,t,n)=>{"use strict";var r=n(1161);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},4624:(e,t,n)=>{e.exports=n(1482)()},1161:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7116:(e,t,n)=>{"use strict";var r=n(5841),o=n(8690),i=n(3484);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var s=new Set,u={};function c(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(u[e]=t,e=0;e<t.length;e++)s.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,h={},g={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function w(e,t,n,r){var o=v.hasOwnProperty(t)?v[t]:null;(null!==o?0===o.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!p.call(g,e)||!p.call(h,e)&&(d.test(e)?g[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);v[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);v[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var E=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=60103,O=60106,x=60107,T=60108,P=60114,k=60109,S=60110,D=60112,M=60113,R=60120,C=60115,A=60116,j=60121,F=60128,L=60129,I=60130,N=60131;if("function"==typeof Symbol&&Symbol.for){var U=Symbol.for;_=U("react.element"),O=U("react.portal"),x=U("react.fragment"),T=U("react.strict_mode"),P=U("react.profiler"),k=U("react.provider"),S=U("react.context"),D=U("react.forward_ref"),M=U("react.suspense"),R=U("react.suspense_list"),C=U("react.memo"),A=U("react.lazy"),j=U("react.block"),U("react.scope"),F=U("react.opaque.id"),L=U("react.debug_trace_mode"),I=U("react.offscreen"),N=U("react.legacy_hidden")}var B,H="function"==typeof Symbol&&Symbol.iterator;function V(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=H&&e[H]||e["@@iterator"])?e:null}function z(e){if(void 0===B)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||""}return"\n"+B+e}var Q=!1;function X(e,t){if(!e||Q)return"";Q=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var o=e.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s])return"\n"+o[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{Q=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function W(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return X(e.type,!1);case 11:return X(e.type.render,!1);case 22:return X(e.type._render,!1);case 1:return X(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case O:return"Portal";case P:return"Profiler";case T:return"StrictMode";case M:return"Suspense";case R:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case S:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case D:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case C:return q(e.type);case j:return q(e._render);case A:t=e._payload,e=e._init;try{return q(e(t))}catch(e){}}return null}function G(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=G(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=G(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+G(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:G(n)}}function ce(e,t){var n=G(t.value),r=G(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function le(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml";function de(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?de(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var he,ge,me=(ge=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((he=he||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=he.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ge(e,t)}))}:ge);function ve(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function Ee(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ye).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var _e=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Oe(e,t){if(t){if(_e[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function xe(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Te(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Pe=null,ke=null,Se=null;function De(e){if(e=Jr(e)){if("function"!=typeof Pe)throw Error(a(280));var t=e.stateNode;t&&(t=to(t),Pe(e.stateNode,e.type,t))}}function Me(e){ke?Se?Se.push(e):Se=[e]:ke=e}function Re(){if(ke){var e=ke,t=Se;if(Se=ke=null,De(e),t)for(e=0;e<t.length;e++)De(t[e])}}function Ce(e,t){return e(t)}function Ae(e,t,n,r,o){return e(t,n,r,o)}function je(){}var Fe=Ce,Le=!1,Ie=!1;function Ne(){null===ke&&null===Se||(je(),Re())}function Ue(e,t){var n=e.stateNode;if(null===n)return null;var r=to(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Be=!1;if(f)try{var He={};Object.defineProperty(He,"passive",{get:function(){Be=!0}}),window.addEventListener("test",He,He),window.removeEventListener("test",He,He)}catch(ge){Be=!1}function Ve(e,t,n,r,o,i,a,s,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var ze=!1,Qe=null,Xe=!1,We=null,qe={onError:function(e){ze=!0,Qe=e}};function Ge(e,t,n,r,o,i,a,s,u){ze=!1,Qe=null,Ve.apply(qe,arguments)}function $e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ye(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Ke(e){if($e(e)!==e)throw Error(a(188))}function Ze(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=$e(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Ke(o),e;if(i===r)return Ke(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,u=o.child;u;){if(u===n){s=!0,n=o,r=i;break}if(u===r){s=!0,r=o,n=i;break}u=u.sibling}if(!s){for(u=i.child;u;){if(u===n){s=!0,n=i,r=o;break}if(u===r){s=!0,r=i,n=o;break}u=u.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Je(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,ot=!1,it=[],at=null,st=null,ut=null,ct=new Map,lt=new Map,ft=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":ut=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":lt.delete(t.pointerId)}}function gt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=pt(t,n,r,o,i),null!==t&&null!==(t=Jr(t))&&tt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function mt(e){var t=Zr(e.target);if(null!==t){var n=$e(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ye(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function vt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Jr(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function yt(e,t,n){vt(e)&&n.delete(t)}function bt(){for(ot=!1;0<it.length;){var e=it[0];if(null!==e.blockedOn){null!==(e=Jr(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&it.shift()}null!==at&&vt(at)&&(at=null),null!==st&&vt(st)&&(st=null),null!==ut&&vt(ut)&&(ut=null),ct.forEach(yt),lt.forEach(yt)}function wt(e,t){e.blockedOn===t&&(e.blockedOn=null,ot||(ot=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,bt)))}function Et(e){function t(t){return wt(t,e)}if(0<it.length){wt(it[0],e);for(var n=1;n<it.length;n++){var r=it[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==at&&wt(at,e),null!==st&&wt(st,e),null!==ut&&wt(ut,e),ct.forEach(t),lt.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)mt(n),null===n.blockedOn&&ft.shift()}function _t(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ot={animationend:_t("Animation","AnimationEnd"),animationiteration:_t("Animation","AnimationIteration"),animationstart:_t("Animation","AnimationStart"),transitionend:_t("Transition","TransitionEnd")},xt={},Tt={};function Pt(e){if(xt[e])return xt[e];if(!Ot[e])return e;var t,n=Ot[e];for(t in n)if(n.hasOwnProperty(t)&&t in Tt)return xt[e]=n[t];return e}f&&(Tt=document.createElement("div").style,"AnimationEvent"in window||(delete Ot.animationend.animation,delete Ot.animationiteration.animation,delete Ot.animationstart.animation),"TransitionEvent"in window||delete Ot.transitionend.transition);var kt=Pt("animationend"),St=Pt("animationiteration"),Dt=Pt("animationstart"),Mt=Pt("transitionend"),Rt=new Map,Ct=new Map,At=["abort","abort",kt,"animationEnd",St,"animationIteration",Dt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Mt,"transitionEnd","waiting","waiting"];function jt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),Ct.set(r,t),Rt.set(r,o),c(o,[r])}}(0,i.unstable_now)();var Ft=8;function Lt(e){if(0!=(1&e))return Ft=15,1;if(0!=(2&e))return Ft=14,2;if(0!=(4&e))return Ft=13,4;var t=24&e;return 0!==t?(Ft=12,t):0!=(32&e)?(Ft=11,32):0!=(t=192&e)?(Ft=10,t):0!=(256&e)?(Ft=9,256):0!=(t=3584&e)?(Ft=8,t):0!=(4096&e)?(Ft=7,4096):0!=(t=4186112&e)?(Ft=6,t):0!=(t=62914560&e)?(Ft=5,t):67108864&e?(Ft=4,67108864):0!=(134217728&e)?(Ft=3,134217728):0!=(t=805306368&e)?(Ft=2,t):0!=(1073741824&e)?(Ft=1,1073741824):(Ft=8,e)}function It(e,t){var n=e.pendingLanes;if(0===n)return Ft=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==i)r=i,o=Ft=15;else if(0!=(i=134217727&n)){var u=i&~a;0!==u?(r=Lt(u),o=Ft):0!=(s&=i)&&(r=Lt(s),o=Ft)}else 0!=(i=n&~a)?(r=Lt(i),o=Ft):0!==s&&(r=Lt(s),o=Ft);if(0===r)return 0;if(r=n&((0>(r=31-zt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(Lt(t),o<=Ft)return t;Ft=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-zt(t)),r|=e[n],t&=~o;return r}function Nt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ut(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Bt(24&~t))?Ut(10,t):e;case 10:return 0===(e=Bt(192&~t))?Ut(8,t):e;case 8:return 0===(e=Bt(3584&~t))&&0===(e=Bt(4186112&~t))&&(e=512),e;case 2:return 0===(t=Bt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Bt(e){return e&-e}function Ht(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Vt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-zt(t)]=n}var zt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Qt(e)/Xt|0)|0},Qt=Math.log,Xt=Math.LN2,Wt=i.unstable_UserBlockingPriority,qt=i.unstable_runWithPriority,Gt=!0;function $t(e,t,n,r){Le||je();var o=Kt,i=Le;Le=!0;try{Ae(o,e,t,n,r)}finally{(Le=i)||Ne()}}function Yt(e,t,n,r){qt(Wt,Kt.bind(null,e,t,n,r))}function Kt(e,t,n,r){var o;if(Gt)if((o=0==(4&t))&&0<it.length&&-1<dt.indexOf(e))e=pt(null,e,t,n,r),it.push(e);else{var i=Zt(e,t,n,r);if(null===i)o&&ht(e,r);else{if(o){if(-1<dt.indexOf(e))return e=pt(i,e,t,n,r),void it.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return at=gt(at,e,t,n,r,o),!0;case"dragenter":return st=gt(st,e,t,n,r,o),!0;case"mouseover":return ut=gt(ut,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return ct.set(i,gt(ct.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,lt.set(i,gt(lt.get(i)||null,e,t,n,r,o)),!0}return!1}(i,e,t,n,r))return;ht(e,r)}Rr(e,t,r,null,n)}}}function Zt(e,t,n,r){var o=Te(r);if(null!==(o=Zr(o))){var i=$e(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=Ye(i)))return o;o=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Rr(e,t,r,o,n),null}var Jt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,o="value"in Jt?Jt.value:Jt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return tn=o.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function an(){return!1}function sn(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?on:an,this.isPropagationStopped=an,this}return o(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var un,cn,ln,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=sn(fn),pn=o({},fn,{view:0,detail:0}),hn=sn(pn),gn=o({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(un=e.screenX-ln.screenX,cn=e.screenY-ln.screenY):cn=un=0,ln=e),un)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),mn=sn(gn),vn=sn(o({},gn,{dataTransfer:0})),yn=sn(o({},pn,{relatedTarget:0})),bn=sn(o({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=sn(o({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),En=sn(o({},fn,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},On={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Pn(){return Tn}var kn=sn(o({},pn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?On[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Sn=sn(o({},gn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Dn=sn(o({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pn})),Mn=sn(o({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=sn(o({},gn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Cn=[9,13,27,32],An=f&&"CompositionEvent"in window,jn=null;f&&"documentMode"in document&&(jn=document.documentMode);var Fn=f&&"TextEvent"in window&&!jn,Ln=f&&(!An||jn&&8<jn&&11>=jn),In=String.fromCharCode(32),Nn=!1;function Un(e,t){switch(e){case"keyup":return-1!==Cn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1,Vn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function zn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function Qn(e,t,n,r){Me(r),0<(t=Ar(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Xn=null,Wn=null;function qn(e){Tr(e,0)}function Gn(e){if(K(eo(e)))return e}function $n(e,t){if("change"===e)return t}var Yn=!1;if(f){var Kn;if(f){var Zn="oninput"in document;if(!Zn){var Jn=document.createElement("div");Jn.setAttribute("oninput","return;"),Zn="function"==typeof Jn.oninput}Kn=Zn}else Kn=!1;Yn=Kn&&(!document.documentMode||9<document.documentMode)}function er(){Xn&&(Xn.detachEvent("onpropertychange",tr),Wn=Xn=null)}function tr(e){if("value"===e.propertyName&&Gn(Wn)){var t=[];if(Qn(t,Wn,e,Te(e)),e=qn,Le)e(t);else{Le=!0;try{Ce(e,t)}finally{Le=!1,Ne()}}}}function nr(e,t,n){"focusin"===e?(er(),Wn=n,(Xn=t).attachEvent("onpropertychange",tr)):"focusout"===e&&er()}function rr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(Wn)}function or(e,t){if("click"===e)return Gn(t)}function ir(e,t){if("input"===e||"change"===e)return Gn(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},sr=Object.prototype.hasOwnProperty;function ur(e,t){if(ar(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!sr.call(t,n[r])||!ar(e[n[r]],t[n[r]]))return!1;return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lr(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var hr=f&&"documentMode"in document&&11>=document.documentMode,gr=null,mr=null,vr=null,yr=!1;function br(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==Z(r)||(r="selectionStart"in(r=gr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&ur(vr,r)||(vr=r,0<(r=Ar(mr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}jt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),jt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),jt(At,2);for(var wr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Er=0;Er<wr.length;Er++)Ct.set(wr[Er],0);l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _r="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Or=new Set("cancel close invalid load scroll toggle".split(" ").concat(_r));function xr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,s,u,c){if(Ge.apply(this,arguments),ze){if(!ze)throw Error(a(198));var l=Qe;ze=!1,Qe=null,Xe||(Xe=!0,We=l)}}(r,t,void 0,e),e.currentTarget=null}function Tr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],u=s.instance,c=s.currentTarget;if(s=s.listener,u!==i&&o.isPropagationStopped())break e;xr(o,s,c),i=u}else for(a=0;a<r.length;a++){if(u=(s=r[a]).instance,c=s.currentTarget,s=s.listener,u!==i&&o.isPropagationStopped())break e;xr(o,s,c),i=u}}}if(Xe)throw e=We,Xe=!1,We=null,e}function Pr(e,t){var n=no(t),r=e+"__bubble";n.has(r)||(Mr(t,e,2,!1),n.add(r))}var kr="_reactListening"+Math.random().toString(36).slice(2);function Sr(e){e[kr]||(e[kr]=!0,s.forEach((function(t){Or.has(t)||Dr(t,!1,e,null),Dr(t,!0,e,null)})))}function Dr(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&Or.has(e)){if("scroll"!==e)return;o|=2,i=r}var a=no(i),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(o|=4),Mr(i,e,o,t),a.add(s))}function Mr(e,t,n,r){var o=Ct.get(t);switch(void 0===o?2:o){case 0:o=$t;break;case 1:o=Yt;break;default:o=Kt}n=o.bind(null,t,n,e),o=void 0,!Be||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Rr(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=Zr(s)))return;if(5===(u=a.tag)||6===u){r=i=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Ie)return e();Ie=!0;try{Fe(e,t,n)}finally{Ie=!1,Ne()}}((function(){var r=i,o=Te(n),a=[];e:{var s=Rt.get(e);if(void 0!==s){var u=dn,c=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":u=kn;break;case"focusin":c="focus",u=yn;break;case"focusout":c="blur",u=yn;break;case"beforeblur":case"afterblur":u=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Dn;break;case kt:case St:case Dt:u=bn;break;case Mt:u=Mn;break;case"scroll":u=hn;break;case"wheel":u=Rn;break;case"copy":case"cut":case"paste":u=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Sn}var l=0!=(4&t),f=!l&&"scroll"===e,d=l?null!==s?s+"Capture":null:s;l=[];for(var p,h=r;null!==h;){var g=(p=h).stateNode;if(5===p.tag&&null!==g&&(p=g,null!==d&&null!=(g=Ue(h,d))&&l.push(Cr(h,g,p))),f)break;h=h.return}0<l.length&&(s=new u(s,c,null,n,o),a.push({event:s,listeners:l}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(c=n.relatedTarget||n.fromElement)||!Zr(c)&&!c[Yr])&&(u||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?Zr(c):null)&&(c!==(f=$e(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(u=null,c=r),u!==c)){if(l=mn,g="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(l=Sn,g="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==u?s:eo(u),p=null==c?s:eo(c),(s=new l(g,h+"leave",u,n,o)).target=f,s.relatedTarget=p,g=null,Zr(o)===r&&((l=new l(d,h+"enter",c,n,o)).target=p,l.relatedTarget=f,g=l),f=g,u&&c)e:{for(d=c,h=0,p=l=u;p;p=jr(p))h++;for(p=0,g=d;g;g=jr(g))p++;for(;0<h-p;)l=jr(l),h--;for(;0<p-h;)d=jr(d),p--;for(;h--;){if(l===d||null!==d&&l===d.alternate)break e;l=jr(l),d=jr(d)}l=null}else l=null;null!==u&&Fr(a,s,u,l,!1),null!==c&&null!==f&&Fr(a,f,c,l,!0)}if("select"===(u=(s=r?eo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var m=$n;else if(zn(s))if(Yn)m=ir;else{m=rr;var v=nr}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=or);switch(m&&(m=m(e,r))?Qn(a,m,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&oe(s,"number",s.value)),v=r?eo(r):window,e){case"focusin":(zn(v)||"true"===v.contentEditable)&&(gr=v,mr=r,vr=null);break;case"focusout":vr=mr=gr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,br(a,n,o);break;case"selectionchange":if(hr)break;case"keydown":case"keyup":br(a,n,o)}var y;if(An)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?Un(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Ln&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(y=nn()):(en="value"in(Jt=o)?Jt.value:Jt.textContent,Hn=!0)),0<(v=Ar(r,b)).length&&(b=new En(b,e,null,n,o),a.push({event:b,listeners:v}),(y||null!==(y=Bn(n)))&&(b.data=y))),(y=Fn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Nn=!0,In);case"textInput":return(e=t.data)===In&&Nn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!An&&Un(e,t)?(e=nn(),tn=en=Jt=null,Hn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&0<(r=Ar(r,"onBeforeInput")).length&&(o=new En("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y)}Tr(a,t)}))}function Cr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ar(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ue(e,n))&&r.unshift(Cr(e,i,o)),null!=(i=Ue(e,t))&&r.push(Cr(e,i,o))),e=e.return}return r}function jr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Fr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,u=s.alternate,c=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(u=Ue(n,i))&&a.unshift(Cr(n,u,s)):o||null!=(u=Ue(n,i))&&a.push(Cr(n,u,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Lr(){}var Ir=null,Nr=null;function Ur(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Br(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Hr="function"==typeof setTimeout?setTimeout:void 0,Vr="function"==typeof clearTimeout?clearTimeout:void 0;function zr(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Qr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Xr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Wr=0,qr=Math.random().toString(36).slice(2),Gr="__reactFiber$"+qr,$r="__reactProps$"+qr,Yr="__reactContainer$"+qr,Kr="__reactEvents$"+qr;function Zr(e){var t=e[Gr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yr]||n[Gr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Xr(e);null!==e;){if(n=e[Gr])return n;e=Xr(e)}return t}n=(e=n).parentNode}return null}function Jr(e){return!(e=e[Gr]||e[Yr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function eo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function to(e){return e[$r]||null}function no(e){var t=e[Kr];return void 0===t&&(t=e[Kr]=new Set),t}var ro=[],oo=-1;function io(e){return{current:e}}function ao(e){0>oo||(e.current=ro[oo],ro[oo]=null,oo--)}function so(e,t){oo++,ro[oo]=e.current,e.current=t}var uo={},co=io(uo),lo=io(!1),fo=uo;function po(e,t){var n=e.type.contextTypes;if(!n)return uo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ho(e){return null!=e.childContextTypes}function go(){ao(lo),ao(co)}function mo(e,t,n){if(co.current!==uo)throw Error(a(168));so(co,t),so(lo,n)}function vo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,q(t)||"Unknown",i));return o({},n,r)}function yo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||uo,fo=co.current,so(co,e),so(lo,lo.current),!0}function bo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=vo(e,t,fo),r.__reactInternalMemoizedMergedChildContext=e,ao(lo),ao(co),so(co,e)):ao(lo),so(lo,n)}var wo=null,Eo=null,_o=i.unstable_runWithPriority,Oo=i.unstable_scheduleCallback,xo=i.unstable_cancelCallback,To=i.unstable_shouldYield,Po=i.unstable_requestPaint,ko=i.unstable_now,So=i.unstable_getCurrentPriorityLevel,Do=i.unstable_ImmediatePriority,Mo=i.unstable_UserBlockingPriority,Ro=i.unstable_NormalPriority,Co=i.unstable_LowPriority,Ao=i.unstable_IdlePriority,jo={},Fo=void 0!==Po?Po:function(){},Lo=null,Io=null,No=!1,Uo=ko(),Bo=1e4>Uo?ko:function(){return ko()-Uo};function Ho(){switch(So()){case Do:return 99;case Mo:return 98;case Ro:return 97;case Co:return 96;case Ao:return 95;default:throw Error(a(332))}}function Vo(e){switch(e){case 99:return Do;case 98:return Mo;case 97:return Ro;case 96:return Co;case 95:return Ao;default:throw Error(a(332))}}function zo(e,t){return e=Vo(e),_o(e,t)}function Qo(e,t,n){return e=Vo(e),Oo(e,t,n)}function Xo(){if(null!==Io){var e=Io;Io=null,xo(e)}Wo()}function Wo(){if(!No&&null!==Lo){No=!0;var e=0;try{var t=Lo;zo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Lo=null}catch(t){throw null!==Lo&&(Lo=Lo.slice(e+1)),Oo(Do,Xo),t}finally{No=!1}}}var qo=E.ReactCurrentBatchConfig;function Go(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var $o=io(null),Yo=null,Ko=null,Zo=null;function Jo(){Zo=Ko=Yo=null}function ei(e){var t=$o.current;ao($o),e.type._context._currentValue=t}function ti(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ni(e,t){Yo=e,Zo=Ko=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Aa=!0),e.firstContext=null)}function ri(e,t){if(Zo!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Zo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Ko){if(null===Yo)throw Error(a(308));Ko=t,Yo.dependencies={lanes:0,firstContext:t,responders:null}}else Ko=Ko.next=t;return e._currentValue}var oi=!1;function ii(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ai(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function si(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ui(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ci(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function li(e,t,n,r){var i=e.updateQueue;oi=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,u=i.shared.pending;if(null!==u){i.shared.pending=null;var c=u,l=c.next;c.next=null,null===s?a=l:s.next=l,s=c;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==s&&(null===d?f.firstBaseUpdate=l:d.next=l,f.lastBaseUpdate=c)}}if(null!==a){for(d=i.baseState,s=0,f=l=c=null;;){u=a.lane;var p=a.eventTime;if((r&u)===u){null!==f&&(f=f.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,g=a;switch(u=t,p=n,g.tag){case 1:if("function"==typeof(h=g.payload)){d=h.call(p,d,u);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(u="function"==typeof(h=g.payload)?h.call(p,d,u):h))break e;d=o({},d,u);break e;case 2:oi=!0}}null!==a.callback&&(e.flags|=32,null===(u=i.effects)?i.effects=[a]:u.push(a))}else p={eventTime:p,lane:u,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(l=f=p,c=d):f=f.next=p,s|=u;if(null===(a=a.next)){if(null===(u=i.shared.pending))break;a=u.next,u.next=null,i.lastBaseUpdate=u,i.shared.pending=null}}null===f&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=f,Fs|=s,e.lanes=s,e.memoizedState=d}}function fi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var di=(new r.Component).refs;function pi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var hi={isMounted:function(e){return!!(e=e._reactInternals)&&$e(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=au(),o=su(e),i=si(r,o);i.payload=t,null!=n&&(i.callback=n),ui(e,i),uu(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=au(),o=su(e),i=si(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),ui(e,i),uu(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=au(),r=su(e),o=si(n,r);o.tag=2,null!=t&&(o.callback=t),ui(e,o),uu(e,r,n)}};function gi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&ur(n,r)&&ur(o,i))}function mi(e,t,n){var r=!1,o=uo,i=t.contextType;return"object"==typeof i&&null!==i?i=ri(i):(o=ho(t)?fo:co.current,i=(r=null!=(r=t.contextTypes))?po(e,o):uo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=hi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function vi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&hi.enqueueReplaceState(t,t.state,null)}function yi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=di,ii(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=ri(i):(i=ho(t)?fo:co.current,o.context=po(e,i)),li(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(pi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&hi.enqueueReplaceState(o,o.state,null),li(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4)}var bi=Array.isArray;function wi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs;t===di&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Ei(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function _i(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Bu(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Qu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=wi(e,t,n),r.return=e,r):((r=Hu(n.type,n.key,n.props,null,e.mode,r)).ref=wi(e,t,n),r.return=e,r)}function l(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Xu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Vu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Qu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Hu(t.type,t.key,t.props,null,e.mode,n)).ref=wi(e,null,t),n.return=e,n;case O:return(t=Xu(t,e.mode,n)).return=e,t}if(bi(t)||V(t))return(t=Vu(t,e.mode,n,null)).return=e,t;Ei(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===o?n.type===x?f(e,t,n.props.children,r,o):c(e,t,n,r):null;case O:return n.key===o?l(e,t,n,r):null}if(bi(n)||V(n))return null!==o?null:f(e,t,n,r,null);Ei(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case _:return e=e.get(null===r.key?n:r.key)||null,r.type===x?f(t,e,r.props.children,o,r.key):c(t,e,r,o);case O:return l(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(bi(r)||V(r))return f(t,e=e.get(n)||null,r,o,null);Ei(t,r)}return null}function g(o,a,s,u){for(var c=null,l=null,f=a,g=a=0,m=null;null!==f&&g<s.length;g++){f.index>g?(m=f,f=null):m=f.sibling;var v=p(o,f,s[g],u);if(null===v){null===f&&(f=m);break}e&&f&&null===v.alternate&&t(o,f),a=i(v,a,g),null===l?c=v:l.sibling=v,l=v,f=m}if(g===s.length)return n(o,f),c;if(null===f){for(;g<s.length;g++)null!==(f=d(o,s[g],u))&&(a=i(f,a,g),null===l?c=f:l.sibling=f,l=f);return c}for(f=r(o,f);g<s.length;g++)null!==(m=h(f,o,g,s[g],u))&&(e&&null!==m.alternate&&f.delete(null===m.key?g:m.key),a=i(m,a,g),null===l?c=m:l.sibling=m,l=m);return e&&f.forEach((function(e){return t(o,e)})),c}function m(o,s,u,c){var l=V(u);if("function"!=typeof l)throw Error(a(150));if(null==(u=l.call(u)))throw Error(a(151));for(var f=l=null,g=s,m=s=0,v=null,y=u.next();null!==g&&!y.done;m++,y=u.next()){g.index>m?(v=g,g=null):v=g.sibling;var b=p(o,g,y.value,c);if(null===b){null===g&&(g=v);break}e&&g&&null===b.alternate&&t(o,g),s=i(b,s,m),null===f?l=b:f.sibling=b,f=b,g=v}if(y.done)return n(o,g),l;if(null===g){for(;!y.done;m++,y=u.next())null!==(y=d(o,y.value,c))&&(s=i(y,s,m),null===f?l=y:f.sibling=y,f=y);return l}for(g=r(o,g);!y.done;m++,y=u.next())null!==(y=h(g,o,m,y.value,c))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),s=i(y,s,m),null===f?l=y:f.sibling=y,f=y);return e&&g.forEach((function(e){return t(o,e)})),l}return function(e,r,i,u){var c="object"==typeof i&&null!==i&&i.type===x&&null===i.key;c&&(i=i.props.children);var l="object"==typeof i&&null!==i;if(l)switch(i.$$typeof){case _:e:{for(l=i.key,c=r;null!==c;){if(c.key===l){switch(c.tag){case 7:if(i.type===x){n(e,c.sibling),(r=o(c,i.props.children)).return=e,e=r;break e}break;default:if(c.elementType===i.type){n(e,c.sibling),(r=o(c,i.props)).ref=wi(e,c,i),r.return=e,e=r;break e}}n(e,c);break}t(e,c),c=c.sibling}i.type===x?((r=Vu(i.props.children,e.mode,u,i.key)).return=e,e=r):((u=Hu(i.type,i.key,i.props,null,e.mode,u)).ref=wi(e,r,i),u.return=e,e=u)}return s(e);case O:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Xu(i,e.mode,u)).return=e,e=r}return s(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Qu(i,e.mode,u)).return=e,e=r),s(e);if(bi(i))return g(e,r,i,u);if(V(i))return m(e,r,i,u);if(l&&Ei(e,i),void 0===i&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,q(e.type)||"Component"))}return n(e,r)}}var Oi=_i(!0),xi=_i(!1),Ti={},Pi=io(Ti),ki=io(Ti),Si=io(Ti);function Di(e){if(e===Ti)throw Error(a(174));return e}function Mi(e,t){switch(so(Si,t),so(ki,e),so(Pi,Ti),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ao(Pi),so(Pi,t)}function Ri(){ao(Pi),ao(ki),ao(Si)}function Ci(e){Di(Si.current);var t=Di(Pi.current),n=pe(t,e.type);t!==n&&(so(ki,e),so(Pi,n))}function Ai(e){ki.current===e&&(ao(Pi),ao(ki))}var ji=io(0);function Fi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Li=null,Ii=null,Ni=!1;function Ui(e,t){var n=Nu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Bi(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Hi(e){if(Ni){var t=Ii;if(t){var n=t;if(!Bi(e,t)){if(!(t=Qr(n.nextSibling))||!Bi(e,t))return e.flags=-1025&e.flags|2,Ni=!1,void(Li=e);Ui(Li,n)}Li=e,Ii=Qr(t.firstChild)}else e.flags=-1025&e.flags|2,Ni=!1,Li=e}}function Vi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Li=e}function zi(e){if(e!==Li)return!1;if(!Ni)return Vi(e),Ni=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Br(t,e.memoizedProps))for(t=Ii;t;)Ui(e,t),t=Qr(t.nextSibling);if(Vi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ii=Qr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ii=null}}else Ii=Li?Qr(e.stateNode.nextSibling):null;return!0}function Qi(){Ii=Li=null,Ni=!1}var Xi=[];function Wi(){for(var e=0;e<Xi.length;e++)Xi[e]._workInProgressVersionPrimary=null;Xi.length=0}var qi=E.ReactCurrentDispatcher,Gi=E.ReactCurrentBatchConfig,$i=0,Yi=null,Ki=null,Zi=null,Ji=!1,ea=!1;function ta(){throw Error(a(321))}function na(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function ra(e,t,n,r,o,i){if($i=i,Yi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,qi.current=null===e||null===e.memoizedState?Da:Ma,e=n(r,o),ea){i=0;do{if(ea=!1,!(25>i))throw Error(a(301));i+=1,Zi=Ki=null,t.updateQueue=null,qi.current=Ra,e=n(r,o)}while(ea)}if(qi.current=Sa,t=null!==Ki&&null!==Ki.next,$i=0,Zi=Ki=Yi=null,Ji=!1,t)throw Error(a(300));return e}function oa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Zi?Yi.memoizedState=Zi=e:Zi=Zi.next=e,Zi}function ia(){if(null===Ki){var e=Yi.alternate;e=null!==e?e.memoizedState:null}else e=Ki.next;var t=null===Zi?Yi.memoizedState:Zi.next;if(null!==t)Zi=t,Ki=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Ki=e).memoizedState,baseState:Ki.baseState,baseQueue:Ki.baseQueue,queue:Ki.queue,next:null},null===Zi?Yi.memoizedState=Zi=e:Zi=Zi.next=e}return Zi}function aa(e,t){return"function"==typeof t?t(e):t}function sa(e){var t=ia(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Ki,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var u=s=i=null,c=o;do{var l=c.lane;if(($i&l)===l)null!==u&&(u=u.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var f={lane:l,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===u?(s=u=f,i=r):u=u.next=f,Yi.lanes|=l,Fs|=l}c=c.next}while(null!==c&&c!==o);null===u?i=r:u.next=s,ar(r,t.memoizedState)||(Aa=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ua(e){var t=ia(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);ar(i,t.memoizedState)||(Aa=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ca(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=($i&e)===e)&&(t._workInProgressVersionPrimary=r,Xi.push(t))),e)return n(t._source);throw Xi.push(t),Error(a(350))}function la(e,t,n,r){var o=ks;if(null===o)throw Error(a(349));var i=t._getVersion,s=i(t._source),u=qi.current,c=u.useState((function(){return ca(o,t,n)})),l=c[1],f=c[0];c=Zi;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,g=d.source;d=d.subscribe;var m=Yi;return e.memoizedState={refs:p,source:t,subscribe:r},u.useEffect((function(){p.getSnapshot=n,p.setSnapshot=l;var e=i(t._source);if(!ar(s,e)){e=n(t._source),ar(f,e)||(l(e),e=su(m),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,a=e;0<a;){var u=31-zt(a),c=1<<u;r[u]|=e,a&=~c}}}),[n,t,r]),u.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=su(m);o.mutableReadLanes|=r&o.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),ar(h,n)&&ar(g,t)&&ar(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:aa,lastRenderedState:f}).dispatch=l=ka.bind(null,Yi,e),c.queue=e,c.baseQueue=null,f=ca(o,t,n),c.memoizedState=c.baseState=f),f}function fa(e,t,n){return la(ia(),e,t,n)}function da(e){var t=oa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:aa,lastRenderedState:e}).dispatch=ka.bind(null,Yi,e),[t.memoizedState,e]}function pa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Yi.updateQueue)?(t={lastEffect:null},Yi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ha(e){return e={current:e},oa().memoizedState=e}function ga(){return ia().memoizedState}function ma(e,t,n,r){var o=oa();Yi.flags|=e,o.memoizedState=pa(1|t,n,void 0,void 0===r?null:r)}function va(e,t,n,r){var o=ia();r=void 0===r?null:r;var i=void 0;if(null!==Ki){var a=Ki.memoizedState;if(i=a.destroy,null!==r&&na(r,a.deps))return void pa(t,n,i,r)}Yi.flags|=e,o.memoizedState=pa(1|t,n,i,r)}function ya(e,t){return ma(516,4,e,t)}function ba(e,t){return va(516,4,e,t)}function wa(e,t){return va(4,2,e,t)}function Ea(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function _a(e,t,n){return n=null!=n?n.concat([e]):null,va(4,2,Ea.bind(null,t,e),n)}function Oa(){}function xa(e,t){var n=ia();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&na(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ta(e,t){var n=ia();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&na(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Pa(e,t){var n=Ho();zo(98>n?98:n,(function(){e(!0)})),zo(97<n?97:n,(function(){var n=Gi.transition;Gi.transition=1;try{e(!1),t()}finally{Gi.transition=n}}))}function ka(e,t,n){var r=au(),o=su(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===Yi||null!==a&&a===Yi)ea=Ji=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,u=a(s,n);if(i.eagerReducer=a,i.eagerState=u,ar(u,s))return}catch(e){}uu(e,o,r)}}var Sa={readContext:ri,useCallback:ta,useContext:ta,useEffect:ta,useImperativeHandle:ta,useLayoutEffect:ta,useMemo:ta,useReducer:ta,useRef:ta,useState:ta,useDebugValue:ta,useDeferredValue:ta,useTransition:ta,useMutableSource:ta,useOpaqueIdentifier:ta,unstable_isNewReconciler:!1},Da={readContext:ri,useCallback:function(e,t){return oa().memoizedState=[e,void 0===t?null:t],e},useContext:ri,useEffect:ya,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ma(4,2,Ea.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ma(4,2,e,t)},useMemo:function(e,t){var n=oa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=oa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ka.bind(null,Yi,e),[r.memoizedState,e]},useRef:ha,useState:da,useDebugValue:Oa,useDeferredValue:function(e){var t=da(e),n=t[0],r=t[1];return ya((function(){var t=Gi.transition;Gi.transition=1;try{r(e)}finally{Gi.transition=t}}),[e]),n},useTransition:function(){var e=da(!1),t=e[0];return ha(e=Pa.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=oa();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},la(r,e,t,n)},useOpaqueIdentifier:function(){if(Ni){var e=!1,t=function(e){return{$$typeof:F,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Wr++).toString(36))),Error(a(355))})),n=da(t)[1];return 0==(2&Yi.mode)&&(Yi.flags|=516,pa(5,(function(){n("r:"+(Wr++).toString(36))}),void 0,null)),t}return da(t="r:"+(Wr++).toString(36)),t},unstable_isNewReconciler:!1},Ma={readContext:ri,useCallback:xa,useContext:ri,useEffect:ba,useImperativeHandle:_a,useLayoutEffect:wa,useMemo:Ta,useReducer:sa,useRef:ga,useState:function(){return sa(aa)},useDebugValue:Oa,useDeferredValue:function(e){var t=sa(aa),n=t[0],r=t[1];return ba((function(){var t=Gi.transition;Gi.transition=1;try{r(e)}finally{Gi.transition=t}}),[e]),n},useTransition:function(){var e=sa(aa)[0];return[ga().current,e]},useMutableSource:fa,useOpaqueIdentifier:function(){return sa(aa)[0]},unstable_isNewReconciler:!1},Ra={readContext:ri,useCallback:xa,useContext:ri,useEffect:ba,useImperativeHandle:_a,useLayoutEffect:wa,useMemo:Ta,useReducer:ua,useRef:ga,useState:function(){return ua(aa)},useDebugValue:Oa,useDeferredValue:function(e){var t=ua(aa),n=t[0],r=t[1];return ba((function(){var t=Gi.transition;Gi.transition=1;try{r(e)}finally{Gi.transition=t}}),[e]),n},useTransition:function(){var e=ua(aa)[0];return[ga().current,e]},useMutableSource:fa,useOpaqueIdentifier:function(){return ua(aa)[0]},unstable_isNewReconciler:!1},Ca=E.ReactCurrentOwner,Aa=!1;function ja(e,t,n,r){t.child=null===e?xi(t,null,n,r):Oi(t,e.child,n,r)}function Fa(e,t,n,r,o){n=n.render;var i=t.ref;return ni(t,o),r=ra(e,t,n,r,i,o),null===e||Aa?(t.flags|=1,ja(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,Ja(e,t,o))}function La(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Uu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Hu(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ia(e,t,a,r,o,i))}return a=e.child,0==(o&i)&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:ur)(o,r)&&e.ref===t.ref)?Ja(e,t,i):(t.flags|=1,(e=Bu(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ia(e,t,n,r,o,i){if(null!==e&&ur(e.memoizedProps,r)&&e.ref===t.ref){if(Aa=!1,0==(i&o))return t.lanes=e.lanes,Ja(e,t,i);0!=(16384&e.flags)&&(Aa=!0)}return Ba(e,t,n,r,i)}function Na(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},mu(0,n);else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},mu(0,e),null;t.memoizedState={baseLanes:0},mu(0,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,mu(0,r);return ja(e,t,o,n),t.child}function Ua(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ba(e,t,n,r,o){var i=ho(n)?fo:co.current;return i=po(t,i),ni(t,o),n=ra(e,t,n,r,i,o),null===e||Aa?(t.flags|=1,ja(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,Ja(e,t,o))}function Ha(e,t,n,r,o){if(ho(n)){var i=!0;yo(t)}else i=!1;if(ni(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),mi(t,n,r),yi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,c=n.contextType;c="object"==typeof c&&null!==c?ri(c):po(t,c=ho(n)?fo:co.current);var l=n.getDerivedStateFromProps,f="function"==typeof l||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||u!==c)&&vi(t,a,r,c),oi=!1;var d=t.memoizedState;a.state=d,li(t,r,a,o),u=t.memoizedState,s!==r||d!==u||lo.current||oi?("function"==typeof l&&(pi(t,n,l,r),u=t.memoizedState),(s=oi||gi(t,n,s,r,d,u,c))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,ai(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Go(t.type,s),a.props=c,f=t.pendingProps,d=a.context,u="object"==typeof(u=n.contextType)&&null!==u?ri(u):po(t,u=ho(n)?fo:co.current);var p=n.getDerivedStateFromProps;(l="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==f||d!==u)&&vi(t,a,r,u),oi=!1,d=t.memoizedState,a.state=d,li(t,r,a,o);var h=t.memoizedState;s!==f||d!==h||lo.current||oi?("function"==typeof p&&(pi(t,n,p,r),h=t.memoizedState),(c=oi||gi(t,n,c,r,d,h,u))?(l||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=u,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Va(e,t,n,r,i,o)}function Va(e,t,n,r,o,i){Ua(e,t);var a=0!=(64&t.flags);if(!r&&!a)return o&&bo(t,n,!1),Ja(e,t,i);r=t.stateNode,Ca.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Oi(t,e.child,null,i),t.child=Oi(t,null,s,i)):ja(e,t,s,i),t.memoizedState=r.state,o&&bo(t,n,!0),t.child}function za(e){var t=e.stateNode;t.pendingContext?mo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&mo(0,t.context,!1),Mi(e,t.containerInfo)}var Qa,Xa,Wa,qa={dehydrated:null,retryLane:0};function Ga(e,t,n){var r,o=t.pendingProps,i=ji.current,a=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),so(ji,1&i),null===e?(void 0!==o.fallback&&Hi(t),e=o.children,i=o.fallback,a?(e=$a(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=qa,e):"number"==typeof o.unstable_expectedLoadTime?(e=$a(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=qa,t.lanes=33554432,e):((n=zu({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(o=function(e,t,n,r,o){var i=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0==(2&i)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Bu(a,s),null!==e?r=Bu(e,r):(r=Vu(r,i,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,o.children,o.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=qa,o):(n=function(e,t,n,r){var o=e.child;return e=o.sibling,n=Bu(o,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}(e,t,o.children,n),t.memoizedState=null,n))}function $a(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},0==(2&o)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=zu(t,o,0,null),n=Vu(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function Ya(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ti(e.return,t)}function Ka(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function Za(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ja(e,t,r.children,n),0!=(2&(r=ji.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ya(e,n);else if(19===e.tag)Ya(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(so(ji,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Fi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ka(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Fi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ka(t,!0,n,null,i,t.lastEffect);break;case"together":Ka(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ja(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fs|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Bu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Bu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function es(e,t){if(!Ni)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ts(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return ho(t.type)&&go(),null;case 3:return Ri(),ao(lo),ao(co),Wi(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(zi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Ai(t);var i=Di(Si.current);if(n=t.type,null!==e&&null!=t.stateNode)Xa(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Di(Pi.current),zi(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Gr]=t,r[$r]=s,n){case"dialog":Pr("cancel",r),Pr("close",r);break;case"iframe":case"object":case"embed":Pr("load",r);break;case"video":case"audio":for(e=0;e<_r.length;e++)Pr(_r[e],r);break;case"source":Pr("error",r);break;case"img":case"image":case"link":Pr("error",r),Pr("load",r);break;case"details":Pr("toggle",r);break;case"input":ee(r,s),Pr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Pr("invalid",r);break;case"textarea":ue(r,s),Pr("invalid",r)}for(var c in Oe(n,s),e=null,s)s.hasOwnProperty(c)&&(i=s[c],"children"===c?"string"==typeof i?r.textContent!==i&&(e=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(e=["children",""+i]):u.hasOwnProperty(c)&&null!=i&&"onScroll"===c&&Pr("scroll",r));switch(n){case"input":Y(r),re(r,s,!0);break;case"textarea":Y(r),le(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Lr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(c=9===i.nodeType?i:i.ownerDocument,e===fe&&(e=de(n)),e===fe?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[Gr]=t,e[$r]=r,Qa(e,t),t.stateNode=e,c=xe(n,r),n){case"dialog":Pr("cancel",e),Pr("close",e),i=r;break;case"iframe":case"object":case"embed":Pr("load",e),i=r;break;case"video":case"audio":for(i=0;i<_r.length;i++)Pr(_r[i],e);i=r;break;case"source":Pr("error",e),i=r;break;case"img":case"image":case"link":Pr("error",e),Pr("load",e),i=r;break;case"details":Pr("toggle",e),i=r;break;case"input":ee(e,r),i=J(e,r),Pr("invalid",e);break;case"option":i=ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),Pr("invalid",e);break;case"textarea":ue(e,r),i=se(e,r),Pr("invalid",e);break;default:i=r}Oe(n,i);var l=i;for(s in l)if(l.hasOwnProperty(s)){var f=l[s];"style"===s?Ee(e,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&me(e,f):"children"===s?"string"==typeof f?("textarea"!==n||""!==f)&&ve(e,f):"number"==typeof f&&ve(e,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(u.hasOwnProperty(s)?null!=f&&"onScroll"===s&&Pr("scroll",e):null!=f&&w(e,s,f,c))}switch(n){case"input":Y(e),re(e,r,!1);break;case"textarea":Y(e),le(e);break;case"option":null!=r.value&&e.setAttribute("value",""+G(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ae(e,!!r.multiple,s,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Lr)}Ur(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Wa(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Di(Si.current),Di(Pi.current),zi(t)?(r=t.stateNode,n=t.memoizedProps,r[Gr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Gr]=t,t.stateNode=r)}return null;case 13:return ao(ji),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&zi(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&ji.current)?0===Cs&&(Cs=3):(0!==Cs&&3!==Cs||(Cs=4),null===ks||0==(134217727&Fs)&&0==(134217727&Ls)||du(ks,Ds))),(r||n)&&(t.flags|=4),null);case 4:return Ri(),null===e&&Sr(t.stateNode.containerInfo),null;case 10:return ei(t),null;case 17:return ho(t.type)&&go(),null;case 19:if(ao(ji),null===(r=t.memoizedState))return null;if(s=0!=(64&t.flags),null===(c=r.rendering))if(s)es(r,!1);else{if(0!==Cs||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=Fi(e))){for(t.flags|=64,es(r,!1),null!==(s=c.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return so(ji,1&ji.current|2),t.child}e=e.sibling}null!==r.tail&&Bo()>Bs&&(t.flags|=64,s=!0,es(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Fi(c))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),es(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!Ni)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Bo()-r.renderingStartTime>Bs&&1073741824!==n&&(t.flags|=64,s=!0,es(r,!1),t.lanes=33554432);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Bo(),n.sibling=null,t=ji.current,so(ji,s?1&t|2:1&t),n):null;case 23:case 24:return vu(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function ns(e){switch(e.tag){case 1:ho(e.type)&&go();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ri(),ao(lo),ao(co),Wi(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Ai(e),null;case 13:return ao(ji),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ao(ji),null;case 4:return Ri(),null;case 10:return ei(e),null;case 23:case 24:return vu(),null;default:return null}}function rs(e,t){try{var n="",r=t;do{n+=W(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o}}function os(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Qa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Xa=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Di(Pi.current);var a,s=null;switch(n){case"input":i=J(e,i),r=J(e,r),s=[];break;case"option":i=ie(e,i),r=ie(e,r),s=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),s=[];break;case"textarea":i=se(e,i),r=se(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Lr)}for(f in Oe(n,r),n=null,i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&null!=i[f])if("style"===f){var c=i[f];for(a in c)c.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(u.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var l=r[f];if(c=null!=i?i[f]:void 0,r.hasOwnProperty(f)&&l!==c&&(null!=l||null!=c))if("style"===f)if(c){for(a in c)!c.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&c[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(s||(s=[]),s.push(f,n)),n=l;else"dangerouslySetInnerHTML"===f?(l=l?l.__html:void 0,c=c?c.__html:void 0,null!=l&&c!==l&&(s=s||[]).push(f,l)):"children"===f?"string"!=typeof l&&"number"!=typeof l||(s=s||[]).push(f,""+l):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(u.hasOwnProperty(f)?(null!=l&&"onScroll"===f&&Pr("scroll",e),s||c===l||(s=[])):"object"==typeof l&&null!==l&&l.$$typeof===F?l.toString():(s=s||[]).push(f,l))}n&&(s=s||[]).push("style",n);var f=s;(t.updateQueue=f)&&(t.flags|=4)}},Wa=function(e,t,n,r){n!==r&&(t.flags|=4)};var is="function"==typeof WeakMap?WeakMap:Map;function as(e,t,n){(n=si(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Qs||(Qs=!0,Xs=r),os(0,t)},n}function ss(e,t,n){(n=si(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return os(0,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ws?Ws=new Set([this]):Ws.add(this),os(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var us="function"==typeof WeakSet?WeakSet:Set;function cs(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){ju(e,t)}else t.current=null}function ls(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Go(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&zr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(a(163))}function fs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!=(4&(o=o.tag))&&0!=(1&o)&&(Ru(n,e),Mu(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Go(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&fi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}fi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Ur(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Et(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(a(163))}function ds(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=null!=o&&o.hasOwnProperty("display")?o.display:null,r.style.display=we("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function ps(e,t){if(Eo&&"function"==typeof Eo.onCommitFiberUnmount)try{Eo.onCommitFiberUnmount(wo,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!=(4&r))Ru(t,n);else{r=t;try{o()}catch(e){ju(r,e)}}n=n.next}while(n!==e)}break;case 1:if(cs(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){ju(t,e)}break;case 5:cs(t);break;case 4:bs(e,t)}}function hs(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function gs(e){return 5===e.tag||3===e.tag||4===e.tag}function ms(e){e:{for(var t=e.return;null!==t;){if(gs(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ve(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||gs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?vs(e,n,t):ys(e,n,t)}function vs(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Lr));else if(4!==r&&null!==(e=e.child))for(vs(e,t,n),e=e.sibling;null!==e;)vs(e,t,n),e=e.sibling}function ys(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ys(e,t,n),e=e.sibling;null!==e;)ys(e,t,n),e=e.sibling}function bs(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(a(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var s=e,u=o,c=u;;)if(ps(s,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===u)break e;for(;null===c.sibling;){if(null===c.return||c.return===u)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(s=n,u=o.stateNode,8===s.nodeType?s.parentNode.removeChild(u):s.removeChild(u)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(ps(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function ws(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[$r]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),xe(e,o),t=xe(e,r),o=0;o<i.length;o+=2){var s=i[o],u=i[o+1];"style"===s?Ee(n,u):"dangerouslySetInnerHTML"===s?me(n,u):"children"===s?ve(n,u):w(n,s,u,t)}switch(e){case"input":ne(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?ae(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Et(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Us=Bo(),ds(t.child,!0)),void Es(t);case 19:return void Es(t);case 17:return;case 23:case 24:return void ds(t,null!==t.memoizedState)}throw Error(a(163))}function Es(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new us),t.forEach((function(t){var r=Lu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function _s(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var Os=Math.ceil,xs=E.ReactCurrentDispatcher,Ts=E.ReactCurrentOwner,Ps=0,ks=null,Ss=null,Ds=0,Ms=0,Rs=io(0),Cs=0,As=null,js=0,Fs=0,Ls=0,Is=0,Ns=null,Us=0,Bs=1/0;function Hs(){Bs=Bo()+500}var Vs,zs=null,Qs=!1,Xs=null,Ws=null,qs=!1,Gs=null,$s=90,Ys=[],Ks=[],Zs=null,Js=0,eu=null,tu=-1,nu=0,ru=0,ou=null,iu=!1;function au(){return 0!=(48&Ps)?Bo():-1!==tu?tu:tu=Bo()}function su(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Ho()?1:2;if(0===nu&&(nu=js),0!==qo.transition){0!==ru&&(ru=null!==Ns?Ns.pendingLanes:0),e=nu;var t=4186112&~ru;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=Ho(),e=Ut(0!=(4&Ps)&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),nu)}function uu(e,t,n){if(50<Js)throw Js=0,eu=null,Error(a(185));if(null===(e=cu(e,t)))return null;Vt(e,t,n),e===ks&&(Ls|=t,4===Cs&&du(e,Ds));var r=Ho();1===t?0!=(8&Ps)&&0==(48&Ps)?pu(e):(lu(e,n),0===Ps&&(Hs(),Xo())):(0==(4&Ps)||98!==r&&99!==r||(null===Zs?Zs=new Set([e]):Zs.add(e)),lu(e,n)),Ns=e}function cu(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function lu(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var u=31-zt(s),c=1<<u,l=i[u];if(-1===l){if(0==(c&r)||0!=(c&o)){l=t,Lt(c);var f=Ft;i[u]=10<=f?l+250:6<=f?l+5e3:-1}}else l<=t&&(e.expiredLanes|=c);s&=~c}if(r=It(e,e===ks?Ds:0),t=Ft,0===r)null!==n&&(n!==jo&&xo(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==jo&&xo(n)}15===t?(n=pu.bind(null,e),null===Lo?(Lo=[n],Io=Oo(Do,Wo)):Lo.push(n),n=jo):n=14===t?Qo(99,pu.bind(null,e)):Qo(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),fu.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function fu(e){if(tu=-1,ru=nu=0,0!=(48&Ps))throw Error(a(327));var t=e.callbackNode;if(Du()&&e.callbackNode!==t)return null;var n=It(e,e===ks?Ds:0);if(0===n)return null;var r=n,o=Ps;Ps|=16;var i=wu();for(ks===e&&Ds===r||(Hs(),yu(e,r));;)try{Ou();break}catch(t){bu(e,t)}if(Jo(),xs.current=i,Ps=o,null!==Ss?r=0:(ks=null,Ds=0,r=Cs),0!=(js&Ls))yu(e,0);else if(0!==r){if(2===r&&(Ps|=64,e.hydrate&&(e.hydrate=!1,zr(e.containerInfo)),0!==(n=Nt(e))&&(r=Eu(e,n))),1===r)throw t=As,yu(e,0),du(e,n),lu(e,Bo()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:Pu(e);break;case 3:if(du(e,n),(62914560&n)===n&&10<(r=Us+500-Bo())){if(0!==It(e,0))break;if(((o=e.suspendedLanes)&n)!==n){au(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Hr(Pu.bind(null,e),r);break}Pu(e);break;case 4:if(du(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var s=31-zt(n);i=1<<s,(s=r[s])>o&&(o=s),n&=~i}if(n=o,10<(n=(120>(n=Bo()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Os(n/1960))-n)){e.timeoutHandle=Hr(Pu.bind(null,e),n);break}Pu(e);break;case 5:Pu(e);break;default:throw Error(a(329))}}return lu(e,Bo()),e.callbackNode===t?fu.bind(null,e):null}function du(e,t){for(t&=~Is,t&=~Ls,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-zt(t),r=1<<n;e[n]=-1,t&=~r}}function pu(e){if(0!=(48&Ps))throw Error(a(327));if(Du(),e===ks&&0!=(e.expiredLanes&Ds)){var t=Ds,n=Eu(e,t);0!=(js&Ls)&&(n=Eu(e,t=It(e,t)))}else n=Eu(e,t=It(e,0));if(0!==e.tag&&2===n&&(Ps|=64,e.hydrate&&(e.hydrate=!1,zr(e.containerInfo)),0!==(t=Nt(e))&&(n=Eu(e,t))),1===n)throw n=As,yu(e,0),du(e,t),lu(e,Bo()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pu(e),lu(e,Bo()),null}function hu(e,t){var n=Ps;Ps|=1;try{return e(t)}finally{0===(Ps=n)&&(Hs(),Xo())}}function gu(e,t){var n=Ps;Ps&=-2,Ps|=8;try{return e(t)}finally{0===(Ps=n)&&(Hs(),Xo())}}function mu(e,t){so(Rs,Ms),Ms|=t,js|=t}function vu(){Ms=Rs.current,ao(Rs)}function yu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Vr(n)),null!==Ss)for(n=Ss.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&go();break;case 3:Ri(),ao(lo),ao(co),Wi();break;case 5:Ai(r);break;case 4:Ri();break;case 13:case 19:ao(ji);break;case 10:ei(r);break;case 23:case 24:vu()}n=n.return}ks=e,Ss=Bu(e.current,null),Ds=Ms=js=t,Cs=0,As=null,Is=Ls=Fs=0}function bu(e,t){for(;;){var n=Ss;try{if(Jo(),qi.current=Sa,Ji){for(var r=Yi.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}Ji=!1}if($i=0,Zi=Ki=Yi=null,ea=!1,Ts.current=null,null===n||null===n.return){Cs=1,As=t,Ss=null;break}e:{var i=e,a=n.return,s=n,u=t;if(t=Ds,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u;if(0==(2&s.mode)){var l=s.alternate;l?(s.updateQueue=l.updateQueue,s.memoizedState=l.memoizedState,s.lanes=l.lanes):(s.updateQueue=null,s.memoizedState=null)}var f=0!=(1&ji.current),d=a;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var g=d.memoizedProps;p=void 0!==g.fallback&&(!0!==g.unstable_avoidThisFallback||!f)}}if(p){var m=d.updateQueue;if(null===m){var v=new Set;v.add(c),d.updateQueue=v}else m.add(c);if(0==(2&d.mode)){if(d.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=si(-1,1);y.tag=2,ui(s,y)}s.lanes|=1;break e}u=void 0,s=t;var b=i.pingCache;if(null===b?(b=i.pingCache=new is,u=new Set,b.set(c,u)):void 0===(u=b.get(c))&&(u=new Set,b.set(c,u)),!u.has(s)){u.add(s);var w=Fu.bind(null,i,c,s);c.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);u=Error((q(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Cs&&(Cs=2),u=rs(u,s),d=a;do{switch(d.tag){case 3:i=u,d.flags|=4096,t&=-t,d.lanes|=t,ci(d,as(0,i,t));break e;case 1:i=u;var E=d.type,_=d.stateNode;if(0==(64&d.flags)&&("function"==typeof E.getDerivedStateFromError||null!==_&&"function"==typeof _.componentDidCatch&&(null===Ws||!Ws.has(_)))){d.flags|=4096,t&=-t,d.lanes|=t,ci(d,ss(d,i,t));break e}}d=d.return}while(null!==d)}Tu(n)}catch(e){t=e,Ss===n&&null!==n&&(Ss=n=n.return);continue}break}}function wu(){var e=xs.current;return xs.current=Sa,null===e?Sa:e}function Eu(e,t){var n=Ps;Ps|=16;var r=wu();for(ks===e&&Ds===t||yu(e,t);;)try{_u();break}catch(t){bu(e,t)}if(Jo(),Ps=n,xs.current=r,null!==Ss)throw Error(a(261));return ks=null,Ds=0,Cs}function _u(){for(;null!==Ss;)xu(Ss)}function Ou(){for(;null!==Ss&&!To();)xu(Ss)}function xu(e){var t=Vs(e.alternate,e,Ms);e.memoizedProps=e.pendingProps,null===t?Tu(e):Ss=t,Ts.current=null}function Tu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=ts(n,t,Ms)))return void(Ss=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Ms)||0==(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=ns(t)))return n.flags&=2047,void(Ss=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ss=t);Ss=t=e}while(null!==t);0===Cs&&(Cs=5)}function Pu(e){var t=Ho();return zo(99,ku.bind(null,e,t)),null}function ku(e,t){do{Du()}while(null!==Gs);if(0!=(48&Ps))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var s=e.eventTimes,u=e.expirationTimes;0<i;){var c=31-zt(i),l=1<<c;o[c]=0,s[c]=-1,u[c]=-1,i&=~l}if(null!==Zs&&0==(24&r)&&Zs.has(e)&&Zs.delete(e),e===ks&&(Ss=ks=null,Ds=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=Ps,Ps|=32,Ts.current=null,Ir=Gt,pr(s=dr())){if("selectionStart"in s)u={start:s.selectionStart,end:s.selectionEnd};else e:if(u=(u=s.ownerDocument)&&u.defaultView||window,(l=u.getSelection&&u.getSelection())&&0!==l.rangeCount){u=l.anchorNode,i=l.anchorOffset,c=l.focusNode,l=l.focusOffset;try{u.nodeType,c.nodeType}catch(e){u=null;break e}var f=0,d=-1,p=-1,h=0,g=0,m=s,v=null;t:for(;;){for(var y;m!==u||0!==i&&3!==m.nodeType||(d=f+i),m!==c||0!==l&&3!==m.nodeType||(p=f+l),3===m.nodeType&&(f+=m.nodeValue.length),null!==(y=m.firstChild);)v=m,m=y;for(;;){if(m===s)break t;if(v===u&&++h===i&&(d=f),v===c&&++g===l&&(p=f),null!==(y=m.nextSibling))break;v=(m=v).parentNode}m=y}u=-1===d||-1===p?null:{start:d,end:p}}else u=null;u=u||{start:0,end:0}}else u=null;Nr={focusedElem:s,selectionRange:u},Gt=!1,ou=null,iu=!1,zs=r;do{try{Su()}catch(e){if(null===zs)throw Error(a(330));ju(zs,e),zs=zs.nextEffect}}while(null!==zs);ou=null,zs=r;do{try{for(s=e;null!==zs;){var b=zs.flags;if(16&b&&ve(zs.stateNode,""),128&b){var w=zs.alternate;if(null!==w){var E=w.ref;null!==E&&("function"==typeof E?E(null):E.current=null)}}switch(1038&b){case 2:ms(zs),zs.flags&=-3;break;case 6:ms(zs),zs.flags&=-3,ws(zs.alternate,zs);break;case 1024:zs.flags&=-1025;break;case 1028:zs.flags&=-1025,ws(zs.alternate,zs);break;case 4:ws(zs.alternate,zs);break;case 8:bs(s,u=zs);var _=u.alternate;hs(u),null!==_&&hs(_)}zs=zs.nextEffect}}catch(e){if(null===zs)throw Error(a(330));ju(zs,e),zs=zs.nextEffect}}while(null!==zs);if(E=Nr,w=dr(),b=E.focusedElem,s=E.selectionRange,w!==b&&b&&b.ownerDocument&&fr(b.ownerDocument.documentElement,b)){null!==s&&pr(b)&&(w=s.start,void 0===(E=s.end)&&(E=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(E,b.value.length)):(E=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(E=E.getSelection(),u=b.textContent.length,_=Math.min(s.start,u),s=void 0===s.end?_:Math.min(s.end,u),!E.extend&&_>s&&(u=s,s=_,_=u),u=lr(b,_),i=lr(b,s),u&&i&&(1!==E.rangeCount||E.anchorNode!==u.node||E.anchorOffset!==u.offset||E.focusNode!==i.node||E.focusOffset!==i.offset)&&((w=w.createRange()).setStart(u.node,u.offset),E.removeAllRanges(),_>s?(E.addRange(w),E.extend(i.node,i.offset)):(w.setEnd(i.node,i.offset),E.addRange(w))))),w=[];for(E=b;E=E.parentNode;)1===E.nodeType&&w.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<w.length;b++)(E=w[b]).element.scrollLeft=E.left,E.element.scrollTop=E.top}Gt=!!Ir,Nr=Ir=null,e.current=n,zs=r;do{try{for(b=e;null!==zs;){var O=zs.flags;if(36&O&&fs(b,zs.alternate,zs),128&O){w=void 0;var x=zs.ref;if(null!==x){var T=zs.stateNode;switch(zs.tag){case 5:w=T;break;default:w=T}"function"==typeof x?x(w):x.current=w}}zs=zs.nextEffect}}catch(e){if(null===zs)throw Error(a(330));ju(zs,e),zs=zs.nextEffect}}while(null!==zs);zs=null,Fo(),Ps=o}else e.current=n;if(qs)qs=!1,Gs=e,$s=t;else for(zs=r;null!==zs;)t=zs.nextEffect,zs.nextEffect=null,8&zs.flags&&((O=zs).sibling=null,O.stateNode=null),zs=t;if(0===(r=e.pendingLanes)&&(Ws=null),1===r?e===eu?Js++:(Js=0,eu=e):Js=0,n=n.stateNode,Eo&&"function"==typeof Eo.onCommitFiberRoot)try{Eo.onCommitFiberRoot(wo,n,void 0,64==(64&n.current.flags))}catch(e){}if(lu(e,Bo()),Qs)throw Qs=!1,e=Xs,Xs=null,e;return 0!=(8&Ps)||Xo(),null}function Su(){for(;null!==zs;){var e=zs.alternate;iu||null===ou||(0!=(8&zs.flags)?Je(zs,ou)&&(iu=!0):13===zs.tag&&_s(e,zs)&&Je(zs,ou)&&(iu=!0));var t=zs.flags;0!=(256&t)&&ls(e,zs),0==(512&t)||qs||(qs=!0,Qo(97,(function(){return Du(),null}))),zs=zs.nextEffect}}function Du(){if(90!==$s){var e=97<$s?97:$s;return $s=90,zo(e,Cu)}return!1}function Mu(e,t){Ys.push(t,e),qs||(qs=!0,Qo(97,(function(){return Du(),null})))}function Ru(e,t){Ks.push(t,e),qs||(qs=!0,Qo(97,(function(){return Du(),null})))}function Cu(){if(null===Gs)return!1;var e=Gs;if(Gs=null,0!=(48&Ps))throw Error(a(331));var t=Ps;Ps|=32;var n=Ks;Ks=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],s=o.destroy;if(o.destroy=void 0,"function"==typeof s)try{s()}catch(e){if(null===i)throw Error(a(330));ju(i,e)}}for(n=Ys,Ys=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var u=o.create;o.destroy=u()}catch(e){if(null===i)throw Error(a(330));ju(i,e)}}for(u=e.current.firstEffect;null!==u;)e=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=e;return Ps=t,Xo(),!0}function Au(e,t,n){ui(e,t=as(0,t=rs(n,t),1)),t=au(),null!==(e=cu(e,1))&&(Vt(e,1,t),lu(e,t))}function ju(e,t){if(3===e.tag)Au(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Au(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ws||!Ws.has(r))){var o=ss(n,e=rs(t,e),1);if(ui(n,o),o=au(),null!==(n=cu(n,1)))Vt(n,1,o),lu(n,o);else if("function"==typeof r.componentDidCatch&&(null===Ws||!Ws.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Fu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=au(),e.pingedLanes|=e.suspendedLanes&n,ks===e&&(Ds&n)===n&&(4===Cs||3===Cs&&(62914560&Ds)===Ds&&500>Bo()-Us?yu(e,0):Is|=n),lu(e,t)}function Lu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Ho()?1:2:(0===nu&&(nu=js),0===(t=Bt(62914560&~nu))&&(t=4194304))),n=au(),null!==(e=cu(e,t))&&(Vt(e,t,n),lu(e,n))}function Iu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Nu(e,t,n,r){return new Iu(e,t,n,r)}function Uu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Bu(e,t){var n=e.alternate;return null===n?((n=Nu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Hu(e,t,n,r,o,i){var s=2;if(r=e,"function"==typeof e)Uu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case x:return Vu(n.children,o,i,t);case L:s=8,o|=16;break;case T:s=8,o|=1;break;case P:return(e=Nu(12,n,t,8|o)).elementType=P,e.type=P,e.lanes=i,e;case M:return(e=Nu(13,n,t,o)).type=M,e.elementType=M,e.lanes=i,e;case R:return(e=Nu(19,n,t,o)).elementType=R,e.lanes=i,e;case I:return zu(n,o,i,t);case N:return(e=Nu(24,n,t,o)).elementType=N,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:s=10;break e;case S:s=9;break e;case D:s=11;break e;case C:s=14;break e;case A:s=16,r=null;break e;case j:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Nu(s,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Vu(e,t,n,r){return(e=Nu(7,e,r,t)).lanes=n,e}function zu(e,t,n,r){return(e=Nu(23,e,r,t)).elementType=I,e.lanes=n,e}function Qu(e,t,n){return(e=Nu(6,e,null,t)).lanes=n,e}function Xu(e,t,n){return(t=Nu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wu(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ht(0),this.expirationTimes=Ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ht(0),this.mutableSourceEagerHydrationData=null}function qu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:O,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Gu(e,t,n,r){var o=t.current,i=au(),s=su(o);e:if(n){t:{if($e(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(ho(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var c=n.type;if(ho(c)){n=vo(n,c,u);break e}}n=u}else n=uo;return null===t.context?t.context=n:t.pendingContext=n,(t=si(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ui(o,t),uu(o,s,i),s}function $u(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Yu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Ku(e,t){Yu(e,t),(e=e.alternate)&&Yu(e,t)}function Zu(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Wu(e,t,null!=n&&!0===n.hydrate),t=Nu(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ii(t),e[Yr]=n.current,Sr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ec(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var s=o;o=function(){var e=$u(a);s.call(e)}}Gu(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Zu(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var u=o;o=function(){var e=$u(a);u.call(e)}}gu((function(){Gu(t,a,e,o)}))}return $u(a)}function tc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ju(t))throw Error(a(200));return qu(e,t,null,n)}Vs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||lo.current)Aa=!0;else{if(0==(n&r)){switch(Aa=!1,t.tag){case 3:za(t),Qi();break;case 5:Ci(t);break;case 1:ho(t.type)&&yo(t);break;case 4:Mi(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;so($o,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Ga(e,t,n):(so(ji,1&ji.current),null!==(t=Ja(e,t,n))?t.sibling:null);so(ji,1&ji.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Za(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),so(ji,ji.current),r)break;return null;case 23:case 24:return t.lanes=0,Na(e,t,n)}return Ja(e,t,n)}Aa=0!=(16384&e.flags)}else Aa=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=po(t,co.current),ni(t,n),o=ra(null,t,r,e,o,n),t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ho(r)){var i=!0;yo(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ii(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&pi(t,r,s,e),o.updater=hi,t.stateNode=o,o._reactInternals=t,yi(t,r,e,n),t=Va(null,t,r,!0,i,n)}else t.tag=0,ja(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Uu(e)?1:0;if(null!=e){if((e=e.$$typeof)===D)return 11;if(e===C)return 14}return 2}(o),e=Go(o,e),i){case 0:t=Ba(null,t,o,e,n);break e;case 1:t=Ha(null,t,o,e,n);break e;case 11:t=Fa(null,t,o,e,n);break e;case 14:t=La(null,t,o,Go(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ba(e,t,r,o=t.elementType===r?o:Go(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ha(e,t,r,o=t.elementType===r?o:Go(r,o),n);case 3:if(za(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,ai(e,t),li(t,r,null,n),(r=t.memoizedState.element)===o)Qi(),t=Ja(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(Ii=Qr(t.stateNode.containerInfo.firstChild),Li=t,i=Ni=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],Xi.push(i);for(n=xi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else ja(e,t,r,n),Qi();t=t.child}return t;case 5:return Ci(t),null===e&&Hi(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,Br(r,o)?s=null:null!==i&&Br(r,i)&&(t.flags|=16),Ua(e,t),ja(e,t,s,n),t.child;case 6:return null===e&&Hi(t),null;case 13:return Ga(e,t,n);case 4:return Mi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Oi(t,null,r,n):ja(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Fa(e,t,r,o=t.elementType===r?o:Go(r,o),n);case 7:return ja(e,t,t.pendingProps,n),t.child;case 8:case 12:return ja(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value;var u=t.type._context;if(so($o,u._currentValue),u._currentValue=i,null!==s)if(u=s.value,0==(i=ar(u,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,i):1073741823))){if(s.children===o.children&&!lo.current){t=Ja(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var c=u.dependencies;if(null!==c){s=u.child;for(var l=c.firstContext;null!==l;){if(l.context===r&&0!=(l.observedBits&i)){1===u.tag&&((l=si(-1,n&-n)).tag=2,ui(u,l)),u.lanes|=n,null!==(l=u.alternate)&&(l.lanes|=n),ti(u.return,n),c.lanes|=n;break}l=l.next}}else s=10===u.tag&&u.type===t.type?null:u.child;if(null!==s)s.return=u;else for(s=u;null!==s;){if(s===t){s=null;break}if(null!==(u=s.sibling)){u.return=s.return,s=u;break}s=s.return}u=s}ja(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ni(t,n),r=r(o=ri(o,i.unstable_observedBits)),t.flags|=1,ja(e,t,r,n),t.child;case 14:return i=Go(o=t.type,t.pendingProps),La(e,t,o,i=Go(o.type,i),r,n);case 15:return Ia(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Go(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ho(r)?(e=!0,yo(t)):e=!1,ni(t,n),mi(t,r,o),yi(t,r,o,n),Va(null,t,r,!0,e,n);case 19:return Za(e,t,n);case 23:case 24:return Na(e,t,n)}throw Error(a(156,t.tag))},Zu.prototype.render=function(e){Gu(e,this._internalRoot,null,null)},Zu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Gu(null,e,null,(function(){t[Yr]=null}))},et=function(e){13===e.tag&&(uu(e,4,au()),Ku(e,4))},tt=function(e){13===e.tag&&(uu(e,67108864,au()),Ku(e,67108864))},nt=function(e){if(13===e.tag){var t=au(),n=su(e);uu(e,n,t),Ku(e,n)}},rt=function(e,t){return t()},Pe=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=to(r);if(!o)throw Error(a(90));K(r),ne(r,o)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Ce=hu,Ae=function(e,t,n,r,o){var i=Ps;Ps|=4;try{return zo(98,e.bind(null,t,n,r,o))}finally{0===(Ps=i)&&(Hs(),Xo())}},je=function(){0==(49&Ps)&&(function(){if(null!==Zs){var e=Zs;Zs=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,lu(e,Bo())}))}Xo()}(),Du())},Fe=function(e,t){var n=Ps;Ps|=2;try{return e(t)}finally{0===(Ps=n)&&(Hs(),Xo())}};var nc={Events:[Jr,eo,to,Me,Re,Du,{current:!1}]},rc={findFiberByHostInstance:Zr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},oc={bundleType:rc.bundleType,version:rc.version,rendererPackageName:rc.rendererPackageName,rendererConfig:rc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ze(e))?null:e.stateNode},findFiberByHostInstance:rc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ic=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ic.isDisabled&&ic.supportsFiber)try{wo=ic.inject(oc),Eo=ic}catch(ge){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nc,t.createPortal=tc,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return null===(e=Ze(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Ps;if(0!=(48&n))return e(t);Ps|=1;try{if(e)return zo(99,e.bind(null,t))}finally{Ps=n,Xo()}},t.hydrate=function(e,t,n){if(!Ju(t))throw Error(a(200));return ec(null,e,t,!0,n)},t.render=function(e,t,n){if(!Ju(t))throw Error(a(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(a(40));return!!e._reactRootContainer&&(gu((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[Yr]=null}))})),!0)},t.unstable_batchedUpdates=hu,t.unstable_createPortal=function(e,t){return tc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ju(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ec(e,t,n,!1,r)},t.version="17.0.2"},9558:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(7116)},672:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(5841)),o=d(n(4624)),i=d(n(9558)),a=d(n(6209)),s=n(8721),u=n(2912),c=n(4871),l=d(n(3552)),f=d(n(6109));function d(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t,n){return t&&b(e.prototype,t),n&&b(e,n),e}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?O(e):t}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}(c,e);var t,n,o=(t=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=x(t);if(n){var o=x(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return _(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),T(O(t=o.call(this,e)),"onDragStart",(function(e,n){if((0,f.default)("Draggable: onDragStart: %j",n),!1===t.props.onStart(e,(0,u.createDraggableData)(O(t),n)))return!1;t.setState({dragging:!0,dragged:!0})})),T(O(t),"onDrag",(function(e,n){if(!t.state.dragging)return!1;(0,f.default)("Draggable: onDrag: %j",n);var r,o,i=(0,u.createDraggableData)(O(t),n),a={x:i.x,y:i.y};if(t.props.bounds){var s=a.x,c=a.y;a.x+=t.state.slackX,a.y+=t.state.slackY;var l=(r=(0,u.getBoundPosition)(O(t),a.x,a.y),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(r,o)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=l[0],p=l[1];a.x=d,a.y=p,a.slackX=t.state.slackX+(s-a.x),a.slackY=t.state.slackY+(c-a.y),i.x=a.x,i.y=a.y,i.deltaX=a.x-t.state.x,i.deltaY=a.y-t.state.y}if(!1===t.props.onDrag(e,i))return!1;t.setState(a)})),T(O(t),"onDragStop",(function(e,n){if(!t.state.dragging)return!1;if(!1===t.props.onStop(e,(0,u.createDraggableData)(O(t),n)))return!1;(0,f.default)("Draggable: onDragStop: %j",n);var r={dragging:!1,slackX:0,slackY:0};if(Boolean(t.props.position)){var o=t.props.position,i=o.x,a=o.y;r.x=i,r.y=a}t.setState(r)})),t.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:y({},e.position),slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),t}return w(c,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.position,r=t.prevPropsPosition;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,f.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:y({},n)})}}]),w(c,[{key:"componentDidMount",value:function(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){return this.props.nodeRef?this.props.nodeRef.current:i.default.findDOMNode(this)}},{key:"render",value:function(){var e,t=this.props,n=(t.axis,t.bounds,t.children),o=t.defaultPosition,i=t.defaultClassName,c=t.defaultClassNameDragging,f=t.defaultClassNameDragged,d=t.position,p=t.positionOffset,h=(t.scale,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"])),m={},v=null,b=!Boolean(d)||this.state.dragging,w=d||o,E={x:(0,u.canDragX)(this)&&b?this.state.x:w.x,y:(0,u.canDragY)(this)&&b?this.state.y:w.y};this.state.isElementSVG?v=(0,s.createSVGTransform)(E,p):m=(0,s.createCSSTransform)(E,p);var _=(0,a.default)(n.props.className||"",i,(T(e={},c,this.state.dragging),T(e,f,this.state.dragged),e));return r.createElement(l.default,g({},h,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),r.cloneElement(r.Children.only(n),{className:_,style:y(y({},n.props.style),m),transform:v}))}}]),c}(r.Component);t.default=P,T(P,"displayName","Draggable"),T(P,"propTypes",y(y({},l.default.propTypes),{},{axis:o.default.oneOf(["both","x","y","none"]),bounds:o.default.oneOfType([o.default.shape({left:o.default.number,right:o.default.number,top:o.default.number,bottom:o.default.number}),o.default.string,o.default.oneOf([!1])]),defaultClassName:o.default.string,defaultClassNameDragging:o.default.string,defaultClassNameDragged:o.default.string,defaultPosition:o.default.shape({x:o.default.number,y:o.default.number}),positionOffset:o.default.shape({x:o.default.oneOfType([o.default.number,o.default.string]),y:o.default.oneOfType([o.default.number,o.default.string])}),position:o.default.shape({x:o.default.number,y:o.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe})),T(P,"defaultProps",y(y({},l.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},position:null,scale:1}))},3552:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(5841)),o=l(n(4624)),i=l(n(9558)),a=n(8721),s=n(2912),u=n(4871),c=l(n(6109));function l(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _={start:"touchstart",move:"touchmove",stop:"touchend"},O={start:"mousedown",move:"mousemove",stop:"mouseup"},x=O,T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(f,e);var t,n,o,u,l=(o=f,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=w(o);if(u){var n=w(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return y(this,e)});function f(){var e;g(this,f);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return E(b(e=l.call.apply(l,[this].concat(n))),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),E(b(e),"mounted",!1),E(b(e),"handleDragStart",(function(t){if(e.props.onMouseDown(t),!e.props.allowAnyClick&&"number"==typeof t.button&&0!==t.button)return!1;var n=e.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var r=n.ownerDocument;if(!(e.props.disabled||!(t.target instanceof r.defaultView.Node)||e.props.handle&&!(0,a.matchesSelectorAndParentsTo)(t.target,e.props.handle,n)||e.props.cancel&&(0,a.matchesSelectorAndParentsTo)(t.target,e.props.cancel,n))){"touchstart"===t.type&&t.preventDefault();var o=(0,a.getTouchIdentifier)(t);e.setState({touchIdentifier:o});var i=(0,s.getControlPosition)(t,o,b(e));if(null!=i){var u=i.x,l=i.y,f=(0,s.createCoreData)(b(e),u,l);(0,c.default)("DraggableCore: handleDragStart: %j",f),(0,c.default)("calling",e.props.onStart),!1!==e.props.onStart(t,f)&&!1!==e.mounted&&(e.props.enableUserSelectHack&&(0,a.addUserSelectStyles)(r),e.setState({dragging:!0,lastX:u,lastY:l}),(0,a.addEvent)(r,x.move,e.handleDrag),(0,a.addEvent)(r,x.stop,e.handleDragStop))}}})),E(b(e),"handleDrag",(function(t){var n=(0,s.getControlPosition)(t,e.state.touchIdentifier,b(e));if(null!=n){var r=n.x,o=n.y;if(Array.isArray(e.props.grid)){var i=r-e.state.lastX,a=o-e.state.lastY,u=p((0,s.snapToGrid)(e.props.grid,i,a),2);if(i=u[0],a=u[1],!i&&!a)return;r=e.state.lastX+i,o=e.state.lastY+a}var l=(0,s.createCoreData)(b(e),r,o);if((0,c.default)("DraggableCore: handleDrag: %j",l),!1!==e.props.onDrag(t,l)&&!1!==e.mounted)e.setState({lastX:r,lastY:o});else try{e.handleDragStop(new MouseEvent("mouseup"))}catch(t){var f=document.createEvent("MouseEvents");f.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.handleDragStop(f)}}})),E(b(e),"handleDragStop",(function(t){if(e.state.dragging){var n=(0,s.getControlPosition)(t,e.state.touchIdentifier,b(e));if(null!=n){var r=n.x,o=n.y,i=(0,s.createCoreData)(b(e),r,o);if(!1===e.props.onStop(t,i)||!1===e.mounted)return!1;var u=e.findDOMNode();u&&e.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(u.ownerDocument),(0,c.default)("DraggableCore: handleDragStop: %j",i),e.setState({dragging:!1,lastX:NaN,lastY:NaN}),u&&((0,c.default)("DraggableCore: Removing handlers"),(0,a.removeEvent)(u.ownerDocument,x.move,e.handleDrag),(0,a.removeEvent)(u.ownerDocument,x.stop,e.handleDragStop))}}})),E(b(e),"onMouseDown",(function(t){return x=O,e.handleDragStart(t)})),E(b(e),"onMouseUp",(function(t){return x=O,e.handleDragStop(t)})),E(b(e),"onTouchStart",(function(t){return x=_,e.handleDragStart(t)})),E(b(e),"onTouchEnd",(function(t){return x=_,e.handleDragStop(t)})),e}return t=f,(n=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.findDOMNode();e&&(0,a.addEvent)(e,_.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.findDOMNode();if(e){var t=e.ownerDocument;(0,a.removeEvent)(t,O.move,this.handleDrag),(0,a.removeEvent)(t,_.move,this.handleDrag),(0,a.removeEvent)(t,O.stop,this.handleDragStop),(0,a.removeEvent)(t,_.stop,this.handleDragStop),(0,a.removeEvent)(e,_.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(t)}}},{key:"findDOMNode",value:function(){return this.props.nodeRef?this.props.nodeRef.current:i.default.findDOMNode(this)}},{key:"render",value:function(){return r.cloneElement(r.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}])&&m(t.prototype,n),f}(r.Component);t.default=T,E(T,"displayName","DraggableCore"),E(T,"propTypes",{allowAnyClick:o.default.bool,disabled:o.default.bool,enableUserSelectHack:o.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:o.default.arrayOf(o.default.number),handle:o.default.string,cancel:o.default.string,nodeRef:o.default.object,onStart:o.default.func,onDrag:o.default.func,onStop:o.default.func,onMouseDown:o.default.func,scale:o.default.number,className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe}),E(T,"defaultProps",{allowAnyClick:!1,cancel:null,disabled:!1,enableUserSelectHack:!0,offsetParent:null,handle:null,grid:null,transform:null,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},8624:(e,t,n)=>{"use strict";var r=n(672),o=r.default,i=r.DraggableCore;e.exports=o,e.exports.default=o,e.exports.DraggableCore=i},8721:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.matchesSelector=f,t.matchesSelectorAndParentsTo=function(e,t,n){var r=e;do{if(f(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},t.addEvent=function(e,t,n,r){if(e){var o=u({capture:!0},r);e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}},t.removeEvent=function(e,t,n,r){if(e){var o=u({capture:!0},r);e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}},t.outerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t+=(0,o.int)(n.borderTopWidth))+(0,o.int)(n.borderBottomWidth)},t.outerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t+=(0,o.int)(n.borderLeftWidth))+(0,o.int)(n.borderRightWidth)},t.innerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t-=(0,o.int)(n.paddingTop))-(0,o.int)(n.paddingBottom)},t.innerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t-=(0,o.int)(n.paddingLeft))-(0,o.int)(n.paddingRight)},t.offsetXYFromParent=function(e,t,n){var r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:(e.clientX+t.scrollLeft-r.left)/n,y:(e.clientY+t.scrollTop-r.top)/n}},t.createCSSTransform=function(e,t){var n=d(e,t,"px");return c({},(0,i.browserPrefixToKey)("transform",i.default),n)},t.createSVGTransform=function(e,t){return d(e,t,"")},t.getTranslation=d,t.getTouch=function(e,t){return e.targetTouches&&(0,o.findInArray)(e.targetTouches,(function(e){return t===e.identifier}))||e.changedTouches&&(0,o.findInArray)(e.changedTouches,(function(e){return t===e.identifier}))},t.getTouchIdentifier=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0},t.addUserSelectStyles=function(e){if(e){var t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t)),e.body&&p(e.body,"react-draggable-transparent-selection")}},t.removeUserSelectStyles=function(e){if(e)try{if(e.body&&h(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}},t.addClassName=p,t.removeClassName=h;var o=n(4871),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(8096));function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l="";function f(e,t){return l||(l=(0,o.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(t){return(0,o.isFunction)(e[t])}))),!!(0,o.isFunction)(e[l])&&e[l](t)}function d(e,t,n){var r=e.x,o=e.y,i="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(t){var a="".concat("string"==typeof t.x?t.x:t.x+n),s="".concat("string"==typeof t.y?t.y:t.y+n);i="translate(".concat(a,", ").concat(s,")")+i}return i}function p(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function h(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}},8096:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPrefix=r,t.browserPrefixToKey=o,t.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0;var n=["Moz","Webkit","O","ms"];function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window||void 0===window.document)return"";var t=window.document.documentElement.style;if(e in t)return"";for(var r=0;r<n.length;r++)if(o(e,n[r])in t)return n[r];return""}function o(e,t){return t?"".concat(t).concat(function(e){for(var t="",n=!0,r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}var i=r();t.default=i},6109:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){}},2912:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBoundPosition=function(e,t,n){if(!e.props.bounds)return[t,n];var a=e.props.bounds;a="string"==typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);var s=i(e);if("string"==typeof a){var u,c=s.ownerDocument,l=c.defaultView;if(!((u="parent"===a?s.parentNode:c.querySelector(a))instanceof l.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');var f=l.getComputedStyle(s),d=l.getComputedStyle(u);a={left:-s.offsetLeft+(0,r.int)(d.paddingLeft)+(0,r.int)(f.marginLeft),top:-s.offsetTop+(0,r.int)(d.paddingTop)+(0,r.int)(f.marginTop),right:(0,o.innerWidth)(u)-(0,o.outerWidth)(s)-s.offsetLeft+(0,r.int)(d.paddingRight)-(0,r.int)(f.marginRight),bottom:(0,o.innerHeight)(u)-(0,o.outerHeight)(s)-s.offsetTop+(0,r.int)(d.paddingBottom)-(0,r.int)(f.marginBottom)}}return(0,r.isNum)(a.right)&&(t=Math.min(t,a.right)),(0,r.isNum)(a.bottom)&&(n=Math.min(n,a.bottom)),(0,r.isNum)(a.left)&&(t=Math.max(t,a.left)),(0,r.isNum)(a.top)&&(n=Math.max(n,a.top)),[t,n]},t.snapToGrid=function(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]},t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.getControlPosition=function(e,t,n){var r="number"==typeof t?(0,o.getTouch)(e,t):null;if("number"==typeof t&&!r)return null;var a=i(n),s=n.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,o.offsetXYFromParent)(r||e,s,n.props.scale)},t.createCoreData=function(e,t,n){var o=e.state,a=!(0,r.isNum)(o.lastX),s=i(e);return a?{node:s,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:s,deltaX:t-o.lastX,deltaY:n-o.lastY,lastX:o.lastX,lastY:o.lastY,x:t,y:n}},t.createDraggableData=function(e,t){var n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}};var r=n(4871),o=n(8721);function i(e){var t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}},4871:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findInArray=function(e,t){for(var n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},t.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},t.isNum=function(e){return"number"==typeof e&&!isNaN(e)},t.int=function(e){return parseInt(e,10)},t.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))}},4399:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,u,c,l;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(u=s;0!=u--;)if(!i(e[u],a[u]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(l=e.entries();!(u=l.next()).done;)if(!a.has(u.value[0]))return!1;for(l=e.entries();!(u=l.next()).done;)if(!i(u.value[1],a.get(u.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(l=e.entries();!(u=l.next()).done;)if(!a.has(u.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(u=s;0!=u--;)if(e[u]!==a[u])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(u=s;0!=u--;)if(!Object.prototype.hasOwnProperty.call(a,c[u]))return!1;if(t&&e instanceof Element)return!1;for(u=s;0!=u--;)if(("_owner"!==c[u]&&"__v"!==c[u]&&"__o"!==c[u]||!e.$$typeof)&&!i(e[c[u]],a[c[u]]))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return i(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},7437:(e,t,n)=>{"use strict";n(8690);var r=n(5841),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,l=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,r)&&!u.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:l,props:i,_owner:a.current}}t.jsx=c,t.jsxs=c},1629:(e,t,n)=>{"use strict";var r=n(8690),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,u=60112;t.Suspense=60113;var c=60115,l=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;o=f("react.element"),i=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),s=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),c=f("react.memo"),l=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=m.prototype;var b=y.prototype=new v;b.constructor=y,r(b,m.prototype),b.isPureReactComponent=!0;var w={current:null},E=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,r)&&!_.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];i.children=c}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:w.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var T=/\/+/g;function P(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function k(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case o:case i:u=!0}}if(u)return a=a(u=e),e=""===r?"."+P(u,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(T,"$&/")+"/"),k(a,t,n,"",(function(e){return e}))):null!=a&&(x(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(T,"$&/")+"/")+e)),t.push(a)),1;if(u=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var l=r+P(s=e[c],c);u+=k(s,t,n,l,a)}else if("function"==typeof(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=l.call(e),c=0;!(s=e.next()).done;)u+=k(s=s.value,t,n,l=r+P(s,c++),a);else if("object"===s)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function S(e,t,n){if(null==e)return e;var r=[],o=0;return k(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function D(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var M={current:null};function R(){var e=M.current;if(null===e)throw Error(p(321));return e}var C={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:S,forEach:function(e,t,n){S(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return S(e,(function(){t++})),t},toArray:function(e){return S(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error(p(143));return e}},t.Component=m,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=C,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var i=r({},e.props),a=e.key,s=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,u=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)E.call(t,l)&&!_.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==c?c[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){c=Array(l);for(var f=0;f<l;f++)c[f]=arguments[f+2];i.children=c}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=O,t.createFactory=function(e){var t=O.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:l,_payload:{_status:-1,_result:e},_init:D}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return R().useCallback(e,t)},t.useContext=function(e,t){return R().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return R().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return R().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return R().useLayoutEffect(e,t)},t.useMemo=function(e,t){return R().useMemo(e,t)},t.useReducer=function(e,t,n){return R().useReducer(e,t,n)},t.useRef=function(e){return R().useRef(e)},t.useState=function(e){return R().useState(e)},t.version="17.0.2"},5841:(e,t,n)=>{"use strict";e.exports=n(1629)},7010:(e,t,n)=>{"use strict";e.exports=n(7437)},8968:(e,t)=>{"use strict";var n,r,o,i;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,l=null,f=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(f,0),e}};n=function(e){null!==c?setTimeout(n,0,e):(c=e,setTimeout(f,0))},r=function(e,t){l=setTimeout(e,t)},o=function(){clearTimeout(l)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,m=null,v=-1,y=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,E=w.port2;w.port1.onmessage=function(){if(null!==m){var e=t.unstable_now();b=e+y;try{m(!0,e)?E.postMessage(null):(g=!1,m=null)}catch(e){throw E.postMessage(null),e}}else g=!1},n=function(e){m=e,g||(g=!0,E.postMessage(null))},r=function(e,n){v=d((function(){e(t.unstable_now())}),n)},o=function(){p(v),v=-1}}function _(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<T(o,t)))break e;e[r]=t,e[n]=o,n=r}}function O(e){return void 0===(e=e[0])?null:e}function x(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],s=i+1,u=e[s];if(void 0!==a&&0>T(a,n))void 0!==u&&0>T(u,a)?(e[r]=u,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==u&&0>T(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}return null}function T(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],k=[],S=1,D=null,M=3,R=!1,C=!1,A=!1;function j(e){for(var t=O(k);null!==t;){if(null===t.callback)x(k);else{if(!(t.startTime<=e))break;x(k),t.sortIndex=t.expirationTime,_(P,t)}t=O(k)}}function F(e){if(A=!1,j(e),!C)if(null!==O(P))C=!0,n(L);else{var t=O(k);null!==t&&r(F,t.startTime-e)}}function L(e,n){C=!1,A&&(A=!1,o()),R=!0;var i=M;try{for(j(n),D=O(P);null!==D&&(!(D.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=D.callback;if("function"==typeof a){D.callback=null,M=D.priorityLevel;var s=a(D.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?D.callback=s:D===O(P)&&x(P),j(n)}else x(P);D=O(P)}if(null!==D)var u=!0;else{var c=O(k);null!==c&&r(F,c.startTime-n),u=!1}return u}finally{D=null,M=i,R=!1}}var I=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){C||R||(C=!0,n(L))},t.unstable_getCurrentPriorityLevel=function(){return M},t.unstable_getFirstCallbackNode=function(){return O(P)},t.unstable_next=function(e){switch(M){case 1:case 2:case 3:var t=3;break;default:t=M}var n=M;M=t;try{return e()}finally{M=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=I,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=M;M=e;try{return t()}finally{M=n}},t.unstable_scheduleCallback=function(e,i,a){var s=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?s+a:s,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:S++,callback:i,priorityLevel:e,startTime:a,expirationTime:u=a+u,sortIndex:-1},a>s?(e.sortIndex=a,_(k,e),null===O(P)&&e===O(k)&&(A?o():A=!0,r(F,a-s))):(e.sortIndex=u,_(P,e),C||R||(C=!0,n(L))),e},t.unstable_wrapCallback=function(e){var t=M;return function(){var n=M;M=t;try{return e.apply(this,arguments)}finally{M=n}}}},3484:(e,t,n)=>{"use strict";e.exports=n(8968)},3710:(e,t,n)=>{"use strict";n.d(t,{EB:()=>p,ht:()=>f});var r=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],o=r.join(","),i="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,a=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:"AUDIO"!==e.nodeName&&"VIDEO"!==e.nodeName&&"DETAILS"!==e.nodeName||null!==e.getAttribute("tabindex")?e.tabIndex:0:t},s=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},u=function(e){return"INPUT"===e.tagName},c=function(e,t){return!(t.disabled||function(e){return u(e)&&"hidden"===e.type}(t)||function(e,t){if("hidden"===getComputedStyle(e).visibility)return!0;var n=i.call(e,"details>summary:first-of-type")?e.parentElement:e;if(i.call(n,"details:not([open]) *"))return!0;if(t&&"full"!==t){if("non-zero-area"===t){var r=e.getBoundingClientRect(),o=r.width,a=r.height;return 0===o&&0===a}}else for(;e;){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(t,e.displayCheck)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(u(e)||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||"BUTTON"===e.tagName)for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},l=function(e,t){return!(!c(e,t)||function(e){return function(e){return u(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||e.ownerDocument,r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||a(t)<0)},f=function(e,t){var n=[],r=[];return function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(o));return t&&i.call(e,o)&&r.unshift(e),r.filter(n)}(e,(t=t||{}).includeContainer,l.bind(null,t)).forEach((function(e,t){var o=a(e);0===o?n.push(e):r.push({documentOrder:t,tabIndex:o,node:e})})),r.sort(s).map((function(e){return e.node})).concat(n)},d=r.concat("iframe").join(","),p=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==i.call(e,d)&&c(t,e)}},4132:e=>{"use strict";e.exports=function(){}},8143:()=>{!function(e){if(e){var t={},n=e.prototype.stopCallback;e.prototype.stopCallback=function(e,r,o,i){return!!this.paused||!t[o]&&!t[i]&&n.call(this,e,r,o)},e.prototype.bindGlobal=function(e,n,r){if(this.bind(e,n,r),e instanceof Array)for(var o=0;o<e.length;o++)t[e[o]]=!0;else t[e]=!0},e.init()}}("undefined"!=typeof Mousetrap?Mousetrap:void 0)},6954:(e,t,n)=>{"use strict";var r,o,i,a,s,u,c;n.d(t,{in:()=>a,_h:()=>u,$R:()=>c,uY:()=>l,JY:()=>A,X5:()=>E,HY:()=>R,Kc:()=>C}),function(e){e.Uninitialized="Uninitialized",e.EngineLoading="EngineLoading",e.AssetsLoading="AssetsLoading",e.EngineReady="EngineReady",e.SceneReady="SceneReady",e.EngineUnsupported="EngineUnsupported",e.EngineLoadingError="EngineLoadingError"}(r||(r={})),function(e){e.Download="download",e.Load="load",e.Decode="decode"}(o||(o={})),function(e){e[e.Pending=0]="Pending",e[e.Ready=1]="Ready",e[e.Error=2]="Error"}(i||(i={})),function(e){e.Info="Info",e.Warning="Warning",e.Error="Error"}(a||(a={})),function(e){e.Added="DesignBlockAddedEvent",e.Updated="DesignBlockUpdatedEvent",e.Removed="DesignBlockRemovedEvent"}(s||(s={})),function(e){e.Scene="//ly.img.ubq/scene",e.Camera="//ly.img.ubq/camera",e.Page="//ly.img.ubq/page",e.Image="//ly.img.ubq/image",e.Text="//ly.img.ubq/text",e.Sticker="//ly.img.ubq/sticker",e.VectorPath="//ly.img.ubq/vector_path",e.RectShape="//ly.img.ubq/shapes/rect",e.LineShape="//ly.img.ubq/shapes/line",e.StarShape="//ly.img.ubq/shapes/star",e.PolygonShape="//ly.img.ubq/shapes/polygon",e.EllipseShape="//ly.img.ubq/shapes/ellipse"}(u||(u={})),function(e){e.Scene="ubq/designblocks/SceneProps",e.Camera="ubq/designblocks/Camera",e.Page="ubq/designblocks/Page",e.Image="ubq/designblocks/AdjustableImage",e.Sticker="ubq/designblocks/Sticker",e.Text="ubq/designblocks/CompositedText",e.Crop="ubq/types/Crop",e.Scale="ubq/scene/Scale",e.Opacity="ubq/types/Opacity",e.FillColor="ubq/types/FillColor",e.BackgroundColor="ubq/types/BackgroundColor",e.Outline="ubq/types/Outline",e.VectorPath="ubq/designblocks/CESDKVectorPathProps"}(c||(c={}));const l="ubq/designblocks/CommonDesignBlockProps";var f,d,p,h,g,m,v;!function(e){e.Transform="ubq/editMode/transform",e.Crop="ubq/editMode/crop",e.Text="ubq/editMode/text"}(f||(f={})),function(e){e[e.Arrow=0]="Arrow",e[e.Move=1]="Move",e[e.MoveNotPermitted=2]="MoveNotPermitted",e[e.Resize=3]="Resize",e[e.Rotate=4]="Rotate",e[e.Text=5]="Text"}(d||(d={})),function(e){e.None="None",e.Normal="Normal",e.Darken="Darken",e.Multiply="Multiply",e.ColorBurn="ColorBurn",e.LinearBurn="LinearBurn",e.DarkenColor="DarkenColor",e.Lighten="Lighten",e.Screen="Screen",e.ColorDodge="ColorDodge",e.Add="Add",e.LightenColor="LightenColor",e.Overlay="Overlay",e.SoftLight="SoftLight",e.HardLight="HarfLight",e.VividLight="VividLight",e.LinearLight="LinearLight",e.PinLight="PinLight",e.HardMix="HardMix",e.Difference="Difference",e.Exclusion="Exclusion",e.Subtract="Substract",e.Divide="Divide"}(p||(p={})),function(e){e.None="None",e.Cover="Cover",e.Contain="Contain"}(h||(h={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Center=2]="Center"}(g||(g={})),function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom",e[e.Center=2]="Center"}(m||(m={})),function(e){e[e.Creator=0]="Creator",e[e.Adopter=1]="Adopter",e[e.Viewer=2]="Viewer",e[e.Presenter=3]="Presenter"}(v||(v={}));const y={c:.75,m:.68,y:.67,k:.9};var b,w,E,_,O,x,T,P,k,S,D,M,R,C;function A(e){return{colorSpace:b.sRGB,components:{x:e.r,y:e.g,z:e.b,w:e.a},spotColor:{name:"",rgbApproximation:e,cmykApproximation:y}}}!function(e){e[e.sRGB=0]="sRGB",e[e.CMYK=1]="CMYK",e[e.SpotColor=2]="SpotColor"}(b||(b={})),function(e){e[e.Information=0]="Information",e[e.Warning=1]="Warning",e[e.Error=2]="Error"}(w||(w={})),function(e){e[e.Pixel=0]="Pixel",e[e.Millimeter=1]="Millimeter",e[e.Inch=2]="Inch"}(E||(E={})),function(e){e[e.Began=0]="Began",e[e.Changed=1]="Changed",e[e.Ended=2]="Ended"}(_||(_={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Middle=2]="Middle",e[e.Unknown=255]="Unknown"}(O||(O={})),function(e){e[e.Up=0]="Up",e[e.Down=1]="Down"}(x||(x={})),function(e){e[e.Key0=0]="Key0",e[e.Key1=1]="Key1",e[e.Key2=2]="Key2",e[e.Key3=3]="Key3",e[e.Key4=4]="Key4",e[e.Key5=5]="Key5",e[e.Key6=6]="Key6",e[e.Key7=7]="Key7",e[e.Key8=8]="Key8",e[e.Key9=9]="Key9",e[e.A=10]="A",e[e.B=11]="B",e[e.C=12]="C",e[e.D=13]="D",e[e.E=14]="E",e[e.F=15]="F",e[e.G=16]="G",e[e.H=17]="H",e[e.I=18]="I",e[e.J=19]="J",e[e.K=20]="K",e[e.L=21]="L",e[e.M=22]="M",e[e.N=23]="N",e[e.O=24]="O",e[e.P=25]="P",e[e.Q=26]="Q",e[e.R=27]="R",e[e.S=28]="S",e[e.T=29]="T",e[e.U=30]="U",e[e.V=31]="V",e[e.W=32]="W",e[e.X=33]="X",e[e.Y=34]="Y",e[e.Z=35]="Z",e[e.ArrowLeft=36]="ArrowLeft",e[e.ArrowRight=37]="ArrowRight",e[e.ArrowUp=38]="ArrowUp",e[e.ArrowDown=39]="ArrowDown",e[e.Backspace=40]="Backspace",e[e.Enter=41]="Enter",e[e.Space=42]="Space",e[e.Escape=43]="Escape",e[e.Delete=44]="Delete",e[e.Control=45]="Control",e[e.Option=46]="Option",e[e.Shift=47]="Shift",e[e.Unknown=255]="Unknown"}(T||(T={})),function(e){e.ImageMatting="imageMatting",e.ImageMattingBackground="imageMattingBackground",e.ImageMattingBackgroundForInpainting="imageMattingBackgroundForInpainting",e.ImageMattingAlphaMatte="imageMattingAlphaMatte",e.ImageMattingInvertedAlphaMatte="imageMattingInvertedAlphaMatte",e.Inpainting="inpainting",e.InpaintingHighRes="inpaintingHighRes",e.SmartCrop="smartCrop",e.SuperResolution="superResolution"}(P||(P={})),function(e){e[e.Thin=100]="Thin",e[e.ExtraLight=200]="ExtraLight",e[e.Light=300]="Light",e[e.Normal=400]="Normal",e[e.Medium=500]="Medium",e[e.SemiBold=600]="SemiBold",e[e.Bold=700]="Bold",e[e.ExtraBold=800]="ExtraBold",e[e.Heavy=900]="Heavy"}(k||(k={})),function(e){e[e.Normal=0]="Normal",e[e.Italic=1]="Italic"}(S||(S={})),function(e){e.Bold="bold",e.Italic="italic"}(D||(D={})),function(e){e[e.Undefined=0]="Undefined",e[e.DesignUnit=1]="DesignUnit",e[e.Percent=2]="Percent",e[e.Auto=3]="Auto"}(M||(M={})),function(e){e.Png="image/png",e.Jpeg="image/jpeg",e.Tga="image/x-tga"}(R||(R={})),function(e){e[e.Free=0]="Free",e[e.VerticalStack=1]="VerticalStack",e[e.HorizontalStack=2]="HorizontalStack"}(C||(C={}))},897:(e,t,n)=>{"use strict";n.d(t,{default:()=>Df});var r,o=n(6954);!function(e){e.Unknown="",e.Boolean="bool",e.Boolean2="ubq/math/bool2",e.Int="int",e.UInt8="uint8_t",e.Int32="int32_t",e.UInt32="uint32_t",e.Int2="ubq/math/ivec2",e.Size2="ubq/types/Size2",e.Color="ubq/types/Color",e.Double="double",e.Float="float",e.Float2="ubq/math/vec2",e.Float3="ubq/math/vec3",e.Float4="ubq/math/vec4",e.String="string",e.HorizontalTextAlignment="ubq/types/HorizontalTextAlignment",e.VerticalTextAlignment="ubq/types/VerticalTextAlignment",e.Margin2D="ubq/types/OuterMargin2D"}(r||(r={})),n(6212),n(5732);const i=(e,{publicThemeElementClass:t="ubq-public",fallback:n="red"}={})=>{const r=e.startsWith("--")?e:`--${e}`,o=document.querySelector(`.${t}`);return null==o?n:getComputedStyle(o).getPropertyValue(r).trim()};var a;function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){u(e,t,n[t])}))}return e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?p(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}!function(e){e.Background="background",e.Active="active",e.Accent="accent"}(a||(a={}));var y={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},b=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l(this,e),this.init(t,n)}return d(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||y,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,c({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),w=function(){function e(){l(this,e),this.observers={}}return d(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function E(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function _(e){return null==e?"":""+e}function O(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function x(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=e[a]}return o()?{}:{obj:e,k:r(i.shift())}}function T(e,t,n){var r=x(e,t,Object);r.obj[r.k]=n}function P(e,t){var n=x(e,t),r=n.obj,o=n.k;if(r)return r[o]}function k(e,t,n){var r=P(e,n);return void 0!==r?r:P(t,n)}function S(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):S(e[r],t[r],n):e[r]=t[r]);return e}function D(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var M={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function R(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return M[e]})):e}var C="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,A=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return l(this,t),n=h(this,g(t).call(this)),C&&w.call(p(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return v(t,e),d(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=[e,t];return n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split(".")),P(this.data,i)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),T(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=P(this.data,a)||{};r?S(s,n,o):s=c({},s,n),T(this.data,a,s),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?c({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(w),j={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},F={},L=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(this,t),n=h(this,g(t).call(this)),C&&w.call(p(n)),O(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,p(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=b.create("translator"),n}return v(t,e),d(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t,n){var r=this;if("object"!==s(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=this.extractFromKey(e[e.length-1],t),a=i.key,u=i.namespaces,l=u[u.length-1],f=t.lng||this.language,d=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(d){var p=t.nsSeparator||this.options.nsSeparator;return l+p+a}return a}var h=this.resolve(e,t),g=h&&h.res,m=h&&h.usedKey||a,v=h&&h.exactUsedKey||a,y=Object.prototype.toString.apply(g),b=["[object Number]","[object Function]","[object RegExp]"],w=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,_="string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g;if(E&&g&&_&&b.indexOf(y)<0&&("string"!=typeof w||"[object Array]"!==y)){if(!t.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,g,t):"key '".concat(a," (").concat(this.language,")' returned an object instead of string.");if(o){var O="[object Array]"===y,x=O?[]:{},T=O?v:m;for(var P in g)if(Object.prototype.hasOwnProperty.call(g,P)){var k="".concat(T).concat(o).concat(P);x[P]=this.translate(k,c({},t,{joinArrays:!1,ns:u})),x[P]===k&&(x[P]=g[P])}g=x}}else if(E&&"string"==typeof w&&"[object Array]"===y)(g=g.join(w))&&(g=this.extendTranslation(g,e,t,n));else{var S=!1,D=!1;if(!this.isValidLookup(g)&&void 0!==t.defaultValue){if(S=!0,void 0!==t.count){var M=this.pluralResolver.getSuffix(f,t.count);g=t["defaultValue".concat(M)]}g||(g=t.defaultValue)}this.isValidLookup(g)||(D=!0,g=a);var R=t.defaultValue&&t.defaultValue!==g&&this.options.updateMissing;if(D||S||R){if(this.logger.log(R?"updateKey":"missingKey",f,l,a,R?t.defaultValue:g),o){var C=this.resolve(a,c({},t,{keySeparator:!1}));C&&C.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var A=[],j=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&j&&j[0])for(var F=0;F<j.length;F++)A.push(j[F]);else"all"===this.options.saveMissingTo?A=this.languageUtils.toResolveHierarchy(t.lng||this.language):A.push(t.lng||this.language);var L=function(e,n){r.options.missingKeyHandler?r.options.missingKeyHandler(e,l,n,R?t.defaultValue:g,R,t):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(e,l,n,R?t.defaultValue:g,R,t),r.emit("missingKey",e,l,n,g)};if(this.options.saveMissing){var I=void 0!==t.count&&"string"!=typeof t.count;this.options.saveMissingPlurals&&I?A.forEach((function(e){r.pluralResolver.getPluralFormsOfKey(e,a).forEach((function(t){return L([e],t)}))})):L(A,a)}}g=this.extendTranslation(g,e,t,h,n),D&&g===a&&this.options.appendNamespaceToMissingKey&&(g="".concat(l,":").concat(a)),D&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(g))}return g}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(c({},n,{interpolation:c({},this.options.interpolation,n.interpolation)}));var a,s=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var u=e.match(this.interpolator.nestingRegexp);a=u&&u.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=c({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),s){var f=e.match(this.interpolator.nestingRegexp);a<(f&&f.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,p="string"==typeof d?[d]:d;return null!=e&&p&&p.length&&!1!==n.applyPostProcessor&&(e=j.handle(p,e,t,this.options&&this.options.postProcessPassResolved?c({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var u=a.extractFromKey(e,s),c=u.key;n=c;var l=u.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var f=void 0!==s.count&&"string"!=typeof s.count,d=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,p=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(i=e,!F["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(F["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,u,l=c,p=[l];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,c,n,e,s):(f&&(i=a.pluralResolver.getSuffix(n,s.count)),f&&d&&p.push(l+i),d&&p.push(l+="".concat(a.options.contextSeparator).concat(s.context)),f&&p.push(l+=i));u=p.pop();)a.isValidLookup(t)||(r=u,t=a.getResource(n,e,u,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}]),t}(w);function I(e){return e.charAt(0).toUpperCase()+e.slice(1)}var N=function(){function e(t){l(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=b.create("languageUtils")}return d(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=I(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=I(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=I(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),U=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],B={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function H(){var e={};return U.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:B[t.fc]}}))})),e}var V,z,Q,X=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l(this,e),this.languageUtils=t,this.options=n,this.logger=b.create("pluralResolver"),this.rules=H()}return d(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=this,r=[],o=this.getRule(e);return o?(o.numbers.forEach((function(o){var i=n.getSuffix(e,o);r.push("".concat(t).concat(i))})),r):r}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),W=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l(this,e),this.logger=b.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return d(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:R,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?D(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?D(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?D(t.nestingPrefix):t.nestingPrefixEscaped||D("$t("),this.nestingSuffix=t.nestingSuffix?D(t.nestingSuffix):t.nestingSuffixEscaped||D(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,s=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(s.formatSeparator)<0){var o=k(t,u,e);return s.alwaysFormat?s.format(o,void 0,n):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),c=i.join(s.formatSeparator).trim();return s.format(k(t,u,a),c,n,r)};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=l(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}s.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||s.useRawValueToEscape||(i=_(i));if(e=e.replace(o[0],t.safeValue(i)),t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=c({},i);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=c({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var u=[],l=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var f=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=f.shift(),u=f,l=!0}if((r=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=_(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=u.reduce((function(e,t){return o.format(e,t,i.lng,i)}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),q=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return l(this,t),o=h(this,g(t).call(this)),C&&w.call(p(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=b.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return v(t,e),d(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],s=[],u=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?a.indexOf(s)<0&&a.push(s):(o.state[s]=1,r=!1,a.indexOf(s)<0&&a.push(s),i.indexOf(s)<0&&i.push(s),u.indexOf(t)<0&&u.push(t)))})),r||s.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:s,toLoadNamespaces:u}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,s,u,c,l;r=n.loaded,s=i,u=x(r,[o],Object),c=u.obj,l=u.k,c[l]=c[l]||[],c[l].push(s),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,u){s&&u&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(s,u)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,c({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(w);function G(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===s(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===s(e[2])||"object"===s(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function $(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Y(){}new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(l(this,t),e=h(this,g(t).call(this)),C&&w.call(p(e)),e.options=$(n),e.services={},e.logger=b,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),h(e,p(e));setTimeout((function(){e.init(n,r)}),0)}return e}return v(t,e),d(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=c({},G(),this.options,$(t)),this.format=this.options.interpolation.format,n||(n=Y),!this.options.isClone){this.modules.logger?b.init(r(this.modules.logger),this.options):b.init(null,this.options);var o=new N(this.options);this.store=new A(this.options.resources,this.options);var i=this.services;i.logger=b,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new X(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new W(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new q(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new L(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var a=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];a.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var s=["addResource","addResources","addResourceBundle","removeResourceBundle"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var u=E(),l=function(){e.changeLanguage(e.options.lng,(function(t,r){e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(r),n(t,r)}))};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=E();return e||(e=this.languages),t||(t=this.options.ns),n||(n=Y),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&j.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=E();this.emit("languageChanging",e);var o=function(e){var o="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,r=function e(t,r){var o;if("object"!==s(r)){for(var i=arguments.length,a=new Array(i>2?i-2:0),u=2;u<i;u++)a[u-2]=arguments[u];o=n.options.overloadTranslationOptionHandler([t,r].concat(a))}else o=c({},r);return o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns,n.t(t,o)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=E();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=E();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y,o=c({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=c({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new L(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}}]),t}(w)),(z=V||(V={})).Pixel="px",z.Millimeter="mm",z.Inch="in",V.Pixel,o.X5.Pixel,V.Millimeter,o.X5.Millimeter,V.Inch,o.X5.Inch,o.X5.Pixel,V.Pixel,o.X5.Millimeter,V.Millimeter,o.X5.Inch,V.Inch,function(e){e.Advanced="advanced",e.Default="default"}(Q||(Q={}));var K=n(7010),Z=n(6209),J=n.n(Z),ee=n(5841);const te={block:"UBQ_Button__block--HEFkx",spinner:"UBQ_Button__spinner--XO4xq",link:"UBQ_Button__link--VBmmF","ubq-variant_Accent":"UBQ_Button__ubq-variant_Accent--__QkQ","ubq-variant_Danger":"UBQ_Button__ubq-variant_Danger--fq41d","ubq-variant_Plain":"UBQ_Button__ubq-variant_Plain--UDC0y","ubq-variant_Active":"UBQ_Button__ubq-variant_Active--MLf8x","ubq-size_Large":"UBQ_Button__ubq-size_Large--txKDF",spin:"UBQ_Button__spin--_7gQN"};var ne,re;!function(e){e.Normal="Normal",e.Large="Large"}(ne||(ne={})),function(e){e.Regular="Default",e.Accent="Accent",e.Plain="Plain",e.Active="Active",e.Danger="Danger"}(re||(re={}));const oe=ee.forwardRef(((e,t)=>{var{children:n,variant:r=re.Regular,size:o=ne.Normal,isActive:i=!1,isDisabled:a=!1,isLoading:s=!1,"data-cy":u,"data-ubq-action":c,ariaLabel:l,disableConditionalActiveStateStyling:f=!1}=e,d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","variant","size","isActive","isDisabled","isLoading","data-cy","data-ubq-action","ariaLabel","disableConditionalActiveStateStyling"]);const p=l||d["aria-label"],h=!f&&i?re.Active:r;return(0,K.jsx)("button",Object.assign({ref:t},d,{"aria-label":p,"aria-pressed":i,type:"button",className:J()(te.block,te[`ubq-variant_${h}`],te[`ubq-size_${o}`],d.className),disabled:d.disabled||a||s,"data-cy":u||d.name,"data-ubq-action":c,"data-loading":s,"data-active":i},{children:(0,K.jsxs)("span",{children:[s&&(0,K.jsx)(Ma,{className:te.spinner,variant:Ma.Variant.Indeterminate},void 0),ee.Children.map(n,(e=>"string"==typeof e?(0,K.jsx)("span",{children:e},void 0):e))]},void 0)}),void 0)}));oe.displayName="uikit/Button";const ie=oe;ee.forwardRef(((e,t)=>{var{children:n,variant:r=re.Regular,size:o=ne.Normal,"data-cy":i}=e,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","variant","size","data-cy"]);return(0,K.jsx)("a",Object.assign({ref:t},a,{className:J()(te.block,te.link,te[`ubq-variant_${r}`],te[`ubq-size_${o}`],a.className),"data-cy":i},{children:(0,K.jsx)("span",{children:ee.Children.map(n,(e=>"string"==typeof e?(0,K.jsx)("span",{children:e},void 0):e))},void 0)}),void 0)})).displayName="uikit/ButtonLink";const ae=ie;ee.forwardRef(((e,t)=>{var{children:n,className:r}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","className"]);return(0,K.jsx)(ae,Object.assign({className:J()("UBQ_PlainToggleButton__block--w1sg_",r)},o,{ref:t},{children:n}),void 0)})).displayName="uikit/PlainToggleButton";const se="UBQ_Theme__transition--_mgYZ",ue=ee.createContext({theme:"dark",scale:"normal",container:void 0}),ce=({children:e,theme:t="dark",scale:n="normal",className:r,contextContainer:o,renderTarget:i,assetPath:a,disableFontInsertion:s})=>{if((0,ee.useEffect)((()=>{const e=`ubq-${t}`,r=`ubq-${n}`;let a;const s=document.querySelector(".ubq-public");return i&&(i.classList.add(e),i.classList.add(r),s instanceof HTMLElement&&(s.dataset.ubqTheme=t,s.dataset.ubqScale=n)),o&&(o.classList.add(se),a=window.setTimeout((()=>{o.classList.remove(se)}),300)),()=>{clearTimeout(a),i&&(i.classList.remove(e),i.classList.remove(r))}}),[t,n,i]),!s){const e=`${a}fonts/`,t=document.createElement("style");t.innerHTML=`\n @font-face {\n font-family: 'Inter';\n src: url('${e}Inter-Regular.woff2') format('woff2'),\n url('${e}Inter-Regular.woff') format('woff');\n font-weight: normal;\n }\n\n @font-face {\n font-family: 'Inter';\n src: url('${e}Inter-Medium.woff2') format('woff2'),\n url('${e}Inter-Medium.woff') format('woff');\n font-weight: 500;\n }\n\n @font-face {\n font-family: 'Inter';\n src: url('${e}Inter-Bold.woff2') format('woff2'),\n url('${e}Inter-Bold.woff') format('woff');\n font-weight: 600;\n }\n\n @font-face {\n font-family: 'Overpass Mono';\n src: url('${e}OverpassMono-Regular.woff') format('woff');\n font-weight: 600;\n }\n `;const n=document.querySelector("head");n&&n.appendChild(t)}return(0,K.jsx)("div",Object.assign({className:J()("UBQ_Theme__block--ZM2Cr",r)},{children:(0,K.jsx)(ue.Provider,Object.assign({value:{theme:t,scale:n,container:o}},{children:e}),void 0)}),void 0)};ce.Context=ue;const le=ce;var fe;!function(e){e.Waiting="waiting",e.Success="success",e.Error="error"}(fe||(fe={}));var de=function(e,t){return(de=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function pe(e,t){function n(){this.constructor=e}de(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var he=function(){return(he=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function ge(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function me(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function ve(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(me(arguments[t]));return e}var ye=(0,ee.createContext)({transformPagePoint:function(e){return e},features:[],isStatic:!1});function be(e){var t=(0,ee.useRef)(null);return null===t.current&&(t.current=e()),t.current}function we(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}var Ee=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r};function _e(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Oe(e){return!!e.touches}var xe={pageX:0,pageY:0};function Te(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||xe;return{x:n[t+"X"],y:n[t+"Y"]}}function Pe(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function ke(e,t){return void 0===t&&(t="page"),{point:Oe(e)?Te(e,t):Pe(e,t)}}function Se(e){return ke(e,"client")}var De=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,ke(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r};function Me(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function Re(e,t,n,r){(0,ee.useEffect)((function(){var o=e.current;if(n&&o)return Me(o,t,n,r)}),[e,t,n,r])}var Ce="undefined"!=typeof window,Ae={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},je={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Fe(e){return Ce&&null===window.onpointerdown?e:Ce&&null===window.ontouchstart?je[e]:Ce&&null===window.onmousedown?Ae[e]:e}function Le(e,t,n,r){return Me(e,Fe(t),De(n,"pointerdown"===t),r)}function Ie(e,t,n,r){return Re(e,Fe(t),n&&De(n,"pointerdown"===t),r)}var Ne=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},Ue=function(e){return Ne(e)&&e.hasOwnProperty("z")},Be=function(e){return"number"==typeof e},He=function(e,t){return Math.abs(e-t)};function Ve(e,t){if(Be(e)&&Be(t))return He(e,t);if(Ne(e)&&Ne(t)){var n=He(e.x,t.x),r=He(e.y,t.y),o=Ue(e)&&Ue(t)?He(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}var ze=function(e,t){return function(n){return t(e(n))}},Qe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce(ze)},Xe=1/60*1e3,We="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},qe="undefined"!=typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout((function(){return e(We())}),Xe)},Ge=!0,$e=!1,Ye=!1,Ke={delta:0,timestamp:0},Ze=["read","update","preRender","render","postRender"],Je=Ze.reduce((function(e,t){return e[t]=function(e){var t=[],n=[],r=0,o=!1,i=new WeakSet,a={schedule:function(e,a,s){void 0===a&&(a=!1),void 0===s&&(s=!1);var u=s&&o,c=u?t:n;return a&&i.add(e),-1===c.indexOf(e)&&(c.push(e),u&&o&&(r=t.length)),e},cancel:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:function(s){var u;if(o=!0,t=(u=[n,t])[0],(n=u[1]).length=0,r=t.length)for(var c=0;c<r;c++){var l=t[c];l(s),i.has(l)&&(a.schedule(l),e())}o=!1}};return a}((function(){return $e=!0})),e}),{}),et=Ze.reduce((function(e,t){var n=Je[t];return e[t]=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),$e||ot(),n.schedule(e,t,r)},e}),{}),tt=Ze.reduce((function(e,t){return e[t]=Je[t].cancel,e}),{}),nt=function(e){return Je[e].process(Ke)},rt=function(e){$e=!1,Ke.delta=Ge?Xe:Math.max(Math.min(e-Ke.timestamp,40),1),Ke.timestamp=e,Ye=!0,Ze.forEach(nt),Ye=!1,$e&&(Ge=!1,qe(rt))},ot=function(){$e=!0,Ge=!0,Ye||qe(rt)},it=function(){return Ke};const at=et;var st=function(e){return 1e3*e},ut=function(){function e(e,t,n){var r=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=ft(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=Ve(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,i=it().timestamp;r.history.push(he(he({},o),{timestamp:i}));var a=r.handlers,s=a.onStart,u=a.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),u&&u(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=ct(t,r.transformPagePoint),_e(e)&&0===e.buttons?r.handlePointerUp(e,t):at.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers.onEnd;if(n&&r.startEvent){var o=ft(ct(t,r.transformPagePoint),r.history);n&&n(e,o)}},!(Oe(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var i=ct(ke(e),this.transformPagePoint),a=i.point,s=it().timestamp;this.history=[he(he({},a),{timestamp:s})];var u=t.onSessionStart;u&&u(e,ft(i,this.history)),this.removeListeners=Qe(Le(window,"pointermove",this.handlePointerMove),Le(window,"pointerup",this.handlePointerUp),Le(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),tt.update(this.updatePoint)},e}();function ct(e,t){return t?{point:t(e.point)}:e}function lt(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ft(e,t){var n=e.point;return{point:n,delta:lt(n,pt(t)),offset:lt(n,dt(t)),velocity:ht(t,.1)}}function dt(e){return e[0]}function pt(e){return e[e.length-1]}function ht(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=pt(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>st(t)));)n--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function gt(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var mt=gt("dragHorizontal"),vt=gt("dragVertical");function yt(e){var t=!1;if("y"===e)t=vt();else if("x"===e)t=mt();else{var n=mt(),r=vt();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function bt(e){return e}function wt(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}var Et={translate:0,scale:1,origin:0,originPoint:0};function _t(){return{x:he({},Et),y:he({},Et)}}function Ot(e){return[e("x"),e("y")]}var xt=function(e,t,n){return Math.min(Math.max(n,e),t)},Tt=function(e,t,n){return-n*e+n*t+e};function Pt(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),Ve(e,t)<n}function kt(e){return e.max-e.min}function St(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=Tt(t.min,t.max,e.origin),e.scale=kt(n)/kt(t),Pt(e.scale,1,1e-4)&&(e.scale=1),e.translate=Tt(n.min,n.max,e.origin)-e.originPoint,Pt(e.translate)&&(e.translate=0)}function Dt(e,t,n,r){St(e.x,t.x,n.x,Mt(r.originX)),St(e.y,t.y,n.y,Mt(r.originY))}function Mt(e){return"number"==typeof e?e:.5}function Rt(e,t,n){var r=t.min,o=t.max;return void 0!==r&&e<r?e=n?Tt(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?Tt(o,e,n.max):Math.min(e,o)),e}function Ct(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function At(e,t){var n,r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=me([o,r],2))[0],o=n[1]),{min:e.min+r,max:e.min+o}}function jt(e,t,n){return{min:Ft(e,t),max:Ft(e,n)}}function Ft(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function Lt(e,t){return wt(function(e,t){var n=e.top,r=e.left,o=e.bottom,i=e.right;void 0===t&&(t=bt);var a=t({x:r,y:n}),s=t({x:i,y:o});return{top:a.y,left:a.x,bottom:s.y,right:s.x}}(e.getBoundingClientRect(),t))}var It=function(){return(It=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function Nt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Ut(e,t){return e*Math.sqrt(1-t*t)}var Bt=["duration","bounce"],Ht=["stiffness","damping","mass"];function Vt(e,t){return t.some((function(t){return void 0!==e[t]}))}function zt(e){var t=e.from,n=void 0===t?0:t,r=e.to,o=void 0===r?1:r,i=e.restSpeed,a=void 0===i?2:i,s=e.restDelta,u=Nt(e,["from","to","restSpeed","restDelta"]),c={done:!1,value:n},l=function(e){var t=It({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Vt(e,Ht)&&Vt(e,Bt)){var n=function(e){var t,n,r=e.duration,o=void 0===r?800:r,i=e.bounce,a=void 0===i?.25:i,s=e.velocity,u=void 0===s?0:s,c=e.mass,l=void 0===c?1:c,f=1-a;f=xt(.05,1,f),o=xt(.01,10,o/1e3),f<1?(t=function(e){var t=e*f,n=t*o;return.001-(t-u)/Ut(e,f)*Math.exp(-n)},n=function(e){var n=e*f*o,r=n*u+u,i=Math.pow(f,2)*Math.pow(e,2)*o,a=Math.exp(-n),s=Ut(Math.pow(e,2),f);return(.001-t(e)>0?-1:1)*((r-i)*a)/s}):(t=function(e){return Math.exp(-e*o)*((e-u)*o+1)-.001},n=function(e){return Math.exp(-e*o)*(o*o*(u-e))});var d=function(e,t,n){for(var r=n,o=1;o<12;o++)r-=e(r)/t(r);return r}(t,n,5/o);if(isNaN(d))return{stiffness:100,damping:10};var p=Math.pow(d,2)*l;return{stiffness:p,damping:2*f*Math.sqrt(l*p)}}(e);(t=It(It(It({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(u),f=l.stiffness,d=l.damping,p=l.mass,h=l.velocity,g=l.isResolvedFromDuration,m=Qt,v=Qt;function y(){var e=h?-h/1e3:0,t=o-n,r=d/(2*Math.sqrt(f*p)),i=Math.sqrt(f/p)/1e3;if(null!=s||(s=Math.abs(o-n)<=1?.01:.4),r<1){var a=Ut(i,r);m=function(n){var s=Math.exp(-r*i*n);return o-s*((e+r*i*t)/a*Math.sin(a*n)+t*Math.cos(a*n))},v=function(n){var o=Math.exp(-r*i*n);return r*i*o*(Math.sin(a*n)*(e+r*i*t)/a+t*Math.cos(a*n))-o*(Math.cos(a*n)*(e+r*i*t)-a*t*Math.sin(a*n))}}else if(1===r)m=function(n){return o-Math.exp(-i*n)*(t+(e+i*t)*n)};else{var u=i*Math.sqrt(r*r-1);m=function(n){var a=Math.exp(-r*i*n),s=Math.min(u*n,300);return o-a*((e+r*i*t)*Math.sinh(s)+u*t*Math.cosh(s))/u}}}return y(),{next:function(e){var t=m(e);if(g)c.done=e>=u.duration;else{var n=1e3*v(e),r=Math.abs(n)<=a,i=Math.abs(o-t)<=s;c.done=r&&i}return c.value=c.done?o:t,c},flipTarget:function(){var e;h=-h,n=(e=[o,n])[0],o=e[1],y()}}}zt.needsInterpolation=function(e,t){return"string"==typeof e||"string"==typeof t};var Qt=function(e){return 0},Xt=function(){return(Xt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Wt=function(e,t){return function(n){return Math.max(Math.min(n,t),e)}},qt=function(e){return e%1?Number(e.toFixed(5)):e},Gt=/(-)?([\d]*\.?[\d])+/g,$t=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Yt=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Kt(e){return"string"==typeof e}var Zt={test:function(e){return"number"==typeof e},parse:parseFloat,transform:function(e){return e}},Jt=Xt(Xt({},Zt),{transform:Wt(0,1)}),en=Xt(Xt({},Zt),{default:1}),tn=function(e,t){return function(n){return Kt(n)&&Yt.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)}},nn=function(e,t,n){return function(r){var o;if(!Kt(r))return r;var i=r.match(Gt),a=i[0],s=i[1],u=i[2],c=i[3];return(o={})[e]=parseFloat(a),o[t]=parseFloat(s),o[n]=parseFloat(u),o.alpha=void 0!==c?parseFloat(c):1,o}},rn=Wt(0,255),on=Xt(Xt({},Zt),{transform:function(e){return Math.round(rn(e))}}),an={test:tn("rgb","red"),parse:nn("red","green","blue"),transform:function(e){var t=e.red,n=e.green,r=e.blue,o=e.alpha,i=void 0===o?1:o;return"rgba("+on.transform(t)+", "+on.transform(n)+", "+on.transform(r)+", "+qt(Jt.transform(i))+")"}},sn={test:tn("#"),parse:function(e){var t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:an.transform},un=function(e){return{test:function(t){return Kt(t)&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+e}}},cn=un("deg"),ln=un("%"),fn=un("px"),dn=un("vh"),pn=un("vw"),hn=Xt(Xt({},ln),{parse:function(e){return ln.parse(e)/100},transform:function(e){return ln.transform(100*e)}}),gn={test:tn("hsl","hue"),parse:nn("hue","saturation","lightness"),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,o=e.alpha,i=void 0===o?1:o;return"hsla("+Math.round(t)+", "+ln.transform(qt(n))+", "+ln.transform(qt(r))+", "+qt(Jt.transform(i))+")"}},mn=function(e,t,n){var r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},vn=[sn,an,gn],yn=function(e){return vn.find((function(t){return t.test(e)}))},bn=function(e){return"'"+e+"' is not an animatable color. Use the equivalent color code instead."},wn=function(e,t){var n=yn(e),r=yn(t);bn(e),bn(t),n.transform,r.transform;var o=n.parse(e),i=r.parse(t),a=It({},o),s=n===gn?Tt:mn;return function(e){for(var t in a)"alpha"!==t&&(a[t]=s(o[t],i[t],e));return a.alpha=Tt(o.alpha,i.alpha,e),n.transform(a)}},En={test:function(e){return an.test(e)||sn.test(e)||gn.test(e)},parse:function(e){return an.test(e)?an.parse(e):gn.test(e)?gn.parse(e):sn.parse(e)},transform:function(e){return Kt(e)?e:e.hasOwnProperty("red")?an.transform(e):gn.transform(e)}},_n="${c}",On="${n}";function xn(e){var t=[],n=0,r=e.match($t);r&&(n=r.length,e=e.replace($t,_n),t.push.apply(t,r.map(En.parse)));var o=e.match(Gt);return o&&(e=e.replace(Gt,On),t.push.apply(t,o.map(Zt.parse))),{values:t,numColors:n,tokenised:e}}function Tn(e){return xn(e).values}function Pn(e){var t=xn(e),n=t.values,r=t.numColors,o=t.tokenised,i=n.length;return function(e){for(var t=o,n=0;n<i;n++)t=t.replace(n<r?_n:On,n<r?En.transform(e[n]):qt(e[n]));return t}}var kn=function(e){return"number"==typeof e?0:e},Sn={test:function(e){var t,n,r,o;return isNaN(e)&&Kt(e)&&(null!==(n=null===(t=e.match(Gt))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match($t))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:Tn,createTransformer:Pn,getAnimatableNone:function(e){var t=Tn(e);return Pn(e)(t.map(kn))}};function Dn(e,t){return Be(e)?function(n){return Tt(e,t,n)}:En.test(e)?wn(e,t):An(e,t)}var Mn=function(e,t){var n=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}(e),r=n.length,o=e.map((function(e,n){return Dn(e,t[n])}));return function(e){for(var t=0;t<r;t++)n[t]=o[t](e);return n}},Rn=function(e,t){var n=It(It({},e),t),r={};for(var o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Dn(e[o],t[o]));return function(e){for(var t in r)n[t]=r[t](e);return n}};function Cn(e){for(var t=Sn.parse(e),n=t.length,r=0,o=0,i=0,a=0;a<n;a++)r||"number"==typeof t[a]?r++:void 0!==t[a].hue?i++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:i}}var An=function(e,t){var n=Sn.createTransformer(t),r=Cn(e),o=Cn(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&(r.numNumbers,o.numNumbers),Qe(Mn(r.parsed,o.parsed),n)},jn=function(e,t){return function(n){return Tt(e,t,n)}};function Fn(e,t,n){var r=void 0===n?{}:n,o=r.clamp,i=void 0===o||o,a=r.ease,s=r.mixer,u=e.length;t.length,!a||!Array.isArray(a)||a.length,e[0]>e[u-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var c=function(e,t,n){for(var r,o=[],i=n||("number"==typeof(r=e[0])?jn:"string"==typeof r?En.test(r)?wn:An:Array.isArray(r)?Mn:"object"==typeof r?Rn:void 0),a=e.length-1,s=0;s<a;s++){var u=i(e[s],e[s+1]);if(t){var c=Array.isArray(t)?t[s]:t;u=Qe(c,u)}o.push(u)}return o}(t,a,s),l=2===u?function(e,t){var n=e[0],r=e[1],o=t[0];return function(e){return o(Ee(n,r,e))}}(e,c):function(e,t){var n=e.length,r=n-1;return function(o){var i=0,a=!1;if(o<=e[0]?a=!0:o>=e[r]&&(i=r-1,a=!0),!a){for(var s=1;s<n&&!(e[s]>o||s===r);s++);i=s-1}var u=Ee(e[i],e[i+1],o);return t[i](u)}}(e,c);return i?function(t){return l(xt(e[0],e[u-1],t))}:l}var Ln,In=function(e){return function(t){return 1-e(1-t)}},Nn=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},Un=function(e){return function(t){return t*t*((e+1)*t-e)}},Bn=function(e){return e},Hn=(2,function(e){return Math.pow(e,2)}),Vn=In(Hn),zn=Nn(Hn),Qn=function(e){return 1-Math.sin(Math.acos(e))},Xn=In(Qn),Wn=Nn(Xn),qn=Un(1.525),Gn=In(qn),$n=Nn(qn),Yn=(Ln=Un(1.525),function(e){return(e*=2)<1?.5*Ln(e):.5*(2-Math.pow(2,-10*(e-1)))}),Kn=function(e){if(1===e||0===e)return e;var t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},Zn=In(Kn);function Jn(e,t){return e.map((function(){return t||zn})).splice(0,e.length-1)}function er(e){var t=e.from,n=void 0===t?0:t,r=e.to,o=void 0===r?1:r,i=e.ease,a=e.offset,s=e.duration,u=void 0===s?300:s,c={done:!1,value:n},l=Array.isArray(o)?o:[n,o],f=function(e,t){return e.map((function(e){return e*t}))}(a&&a.length===l.length?a:function(e){var t=e.length;return e.map((function(e,n){return 0!==n?n/(t-1):0}))}(l),u);function d(){return Fn(f,l,{ease:Array.isArray(i)?i:Jn(l,i)})}var p=d();return{next:function(e){return c.value=p(e),c.done=e>=u,c},flipTarget:function(){l.reverse(),p=d()}}}var tr={keyframes:er,spring:zt,decay:function(e){var t=e.velocity,n=void 0===t?0:t,r=e.from,o=void 0===r?0:r,i=e.power,a=void 0===i?.8:i,s=e.timeConstant,u=void 0===s?350:s,c=e.restDelta,l=void 0===c?.5:c,f=e.modifyTarget,d={done:!1,value:o},p=a*n,h=o+p,g=void 0===f?h:f(h);return g!==h&&(p=g-o),{next:function(e){var t=-p*Math.exp(-e/u);return d.done=!(t>l||t<-l),d.value=d.done?g:g+t,d},flipTarget:function(){}}}};function nr(e,t,n){return void 0===n&&(n=0),e-t-n}var rr=function(e){var t=function(t){var n=t.delta;return e(n)};return{start:function(){return at.update(t,!0)},stop:function(){return tt.update(t)}}};function or(e){var t,n,r,o,i,a=e.from,s=e.autoplay,u=void 0===s||s,c=e.driver,l=void 0===c?rr:c,f=e.elapsed,d=void 0===f?0:f,p=e.repeat,h=void 0===p?0:p,g=e.repeatType,m=void 0===g?"loop":g,v=e.repeatDelay,y=void 0===v?0:v,b=e.onPlay,w=e.onStop,E=e.onComplete,_=e.onRepeat,O=e.onUpdate,x=Nt(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),T=x.to,P=0,k=x.duration,S=!1,D=!0,M=function(e){if(Array.isArray(e.to))return er;if(tr[e.type])return tr[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?er:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?zt:er}(x);(null===(n=(t=M).needsInterpolation)||void 0===n?void 0:n.call(t,a,T))&&(i=Fn([0,100],[a,T],{clamp:!1}),a=0,T=100);var R=M(It(It({},x),{from:a,to:T}));return u&&(null==b||b(),(r=l((function(e){if(D||(e=-e),d+=e,!S){var t=R.next(Math.max(0,d));o=t.value,i&&(o=i(o)),S=D?t.done:d<=0}null==O||O(o),S&&(0===P&&(null!=k||(k=d)),P<h?function(e,t,n,r){return r?e>=t+n:e<=-n}(d,k,y,D)&&(P++,"reverse"===m?d=function(e,t,n,r){return void 0===n&&(n=0),void 0===r&&(r=!0),r?nr(t+-e,t,n):t-(e-t)+n}(d,k,y,D=P%2==0):(d=nr(d,k,y),"mirror"===m&&R.flipTarget()),S=!1,_&&_()):(r.stop(),E&&E()))}))).start()),{stop:function(){null==w||w(),r.stop()}}}function ir(e,t){return t?e*(1e3/t):0}var ar=function(e,t){return 1-3*t+3*e},sr=function(e,t){return 3*t-6*e},ur=function(e){return 3*e},cr=function(e,t,n){return((ar(t,n)*e+sr(t,n))*e+ur(t))*e},lr=function(e,t,n){return 3*ar(t,n)*e*e+2*sr(t,n)*e+ur(t)},fr=.1;function dr(e,t,n,r){if(e===t&&n===r)return Bn;for(var o=new Float32Array(11),i=0;i<11;++i)o[i]=cr(i*fr,e,n);return function(i){return 0===i||1===i?i:cr(function(t){for(var r=0,i=1;10!==i&&o[i]<=t;++i)r+=fr;--i;var a=r+(t-o[i])/(o[i+1]-o[i])*fr,s=lr(a,e,n);return s>=.001?function(e,t,n,r){for(var o=0;o<8;++o){var i=lr(t,n,r);if(0===i)return t;t-=(cr(t,n,r)-e)/i}return t}(t,a,e,n):0===s?a:function(e,t,n,r,o){var i,a,s=0;do{(i=cr(a=t+(n-t)/2,r,o)-e)>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<10);return a}(t,r,r+fr,e,n)}(i),t,r)}}var pr={linear:Bn,easeIn:Hn,easeInOut:zn,easeOut:Vn,circIn:Qn,circInOut:Wn,circOut:Xn,backIn:qn,backInOut:$n,backOut:Gn,anticipate:Yn,bounceIn:Zn,bounceInOut:function(e){return e<.5?.5*(1-Kn(1-2*e)):.5*Kn(2*e-1)+.5},bounceOut:Kn},hr=function(e){if(Array.isArray(e)){e.length;var t=me(e,4);return dr(t[0],t[1],t[2],t[3])}return"string"==typeof e?pr[e]:e},gr=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!Sn.test(t)||t.startsWith("url(")))},mr=function(e){return Array.isArray(e)},vr=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},yr=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},br=function(){return{type:"keyframes",ease:"linear",duration:.3}},wr=function(e){return{type:"keyframes",duration:.8,values:e}},Er={x:vr,y:vr,z:vr,rotate:vr,rotateX:vr,rotateY:vr,rotateZ:vr,scaleX:yr,scaleY:yr,scale:yr,opacity:br,backgroundColor:br,color:br,default:yr},_r=new Set(["brightness","contrast","saturate","opacity"]);function Or(e){var t=e.slice(0,-1).split("("),n=t[0],r=t[1];if("drop-shadow"===n)return e;var o=(r.match(Gt)||[])[0];if(!o)return e;var i=r.replace(o,""),a=_r.has(n)?1:0;return o!==r&&(a*=100),n+"("+a+i+")"}var xr,Tr=/([a-z-]*)\(.*?\)/g,Pr=Xt(Xt({},Sn),{getAnimatableNone:function(e){var t=e.match(Tr);return t?t.map(Or).join(" "):e}}),kr=he(he({},Zt),{transform:Math.round}),Sr={color:En,backgroundColor:En,outlineColor:En,fill:En,stroke:En,borderColor:En,borderTopColor:En,borderRightColor:En,borderBottomColor:En,borderLeftColor:En,borderWidth:fn,borderTopWidth:fn,borderRightWidth:fn,borderBottomWidth:fn,borderLeftWidth:fn,borderRadius:fn,radius:fn,borderTopLeftRadius:fn,borderTopRightRadius:fn,borderBottomRightRadius:fn,borderBottomLeftRadius:fn,width:fn,maxWidth:fn,height:fn,maxHeight:fn,size:fn,top:fn,right:fn,bottom:fn,left:fn,padding:fn,paddingTop:fn,paddingRight:fn,paddingBottom:fn,paddingLeft:fn,margin:fn,marginTop:fn,marginRight:fn,marginBottom:fn,marginLeft:fn,rotate:cn,rotateX:cn,rotateY:cn,rotateZ:cn,scale:en,scaleX:en,scaleY:en,scaleZ:en,skew:cn,skewX:cn,skewY:cn,distance:fn,translateX:fn,translateY:fn,translateZ:fn,x:fn,y:fn,z:fn,perspective:fn,transformPerspective:fn,opacity:Jt,originX:hn,originY:hn,originZ:fn,zIndex:kr,filter:Pr,WebkitFilter:Pr,fillOpacity:Jt,strokeOpacity:Jt,numOctaves:kr},Dr=[Zt,fn,ln,cn,pn,dn,{test:function(e){return"auto"===e},parse:function(e){return e}}],Mr=function(e){return function(t){return t.test(e)}},Rr=function(e){return Dr.find(Mr(e))},Cr=ve(Dr,[En,Sn]),Ar=function(e){return Sr[e]},jr=function(e,t){return t&&"number"==typeof e?t.transform(e):e};function Fr(e,t){var n,r=Ar(e);return r!==Pr&&(r=Sn),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function Lr(e,t,n){var r,o,i,a;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=ve(e.to),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=ge(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=he(he({},e),(o=n,i=t.to,a=mr(i)?wr:Er[o]||Er.default,he({to:i},a(i))))),he(he({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,i=e.loop,a=ge(e,["ease","times","yoyo","flip","loop"]),s=he({},a);return n&&(s.offset=n),a.duration&&(s.duration=st(a.duration)),a.repeatDelay&&(s.repeatDelay=st(a.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(hr):hr(t)),"tween"===a.type&&(s.type="keyframes"),(r||i||o)&&(r?s.repeatType="reverse":i?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=i||r||o||a.repeat),"spring"!==a.type&&(s.type="keyframes"),s}(e))}function Ir(e,t){return e[t]||e.default||e}function Nr(e,t,n,r){return void 0===r&&(r={}),t.start((function(o){var i,a,s=function(e,t,n,r,o){var i,a=Ir(r,e),s=null!==(i=a.from)&&void 0!==i?i:t.get(),u=gr(e,n);return"none"===s&&u&&"string"==typeof n&&(s=Fr(e,n)),gr(e,s)&&u&&!1!==a.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===a.type||"decay"===a.type?function(e){var t,n=e.from,r=void 0===n?0:n,o=e.velocity,i=void 0===o?0:o,a=e.min,s=e.max,u=e.power,c=void 0===u?.8:u,l=e.timeConstant,f=void 0===l?750:l,d=e.bounceStiffness,p=void 0===d?500:d,h=e.bounceDamping,g=void 0===h?10:h,m=e.restDelta,v=void 0===m?1:m,y=e.modifyTarget,b=e.driver,w=e.onUpdate,E=e.onComplete;function _(e){return void 0!==a&&e<a||void 0!==s&&e>s}function O(e){return void 0===a?s:void 0===s||Math.abs(a-e)<Math.abs(s-e)?a:s}function x(e){null==t||t.stop(),t=or(It(It({},e),{driver:b,onUpdate:function(t){var n;null==w||w(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:E}))}function T(e){x(It({type:"spring",stiffness:p,damping:g,restDelta:v},e))}if(_(r))T({from:r,velocity:i,to:O(r)});else{var P=c*i+r;void 0!==y&&(P=y(P));var k,S,D=O(P),M=D===a?-1:1;x({type:"decay",from:r,velocity:i,timeConstant:f,power:c,restDelta:v,modifyTarget:y,onUpdate:_(P)?function(e){k=S,S=e,i=ir(e-k,it().delta),(1===M&&e>D||-1===M&&e<D)&&T({from:e,to:D,velocity:i})}:void 0})}return{stop:function(){return null==t?void 0:t.stop()}}}(he(he({},r),a)):or(he(he({},Lr(a,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=a.onUpdate)||void 0===t||t.call(a,e)},onComplete:function(){var e;r.onComplete(),null===(e=a.onComplete)||void 0===e||e.call(a)}}))}:function(){var e;return t.set(n),o(),null===(e=null==a?void 0:a.onComplete)||void 0===e||e.call(a),{stop:function(){}}}}(e,t,n,r,o),u=function(e,t){var n;return null!==(n=(Ir(e,t)||{}).delay)&&void 0!==n?n:0}(r,e),c=function(){return a=s()};return u?i=setTimeout(c,st(u)):c(),function(){clearTimeout(i),null==a||a.stop()}}))}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.Exit="exit"}(xr||(xr={}));var Ur,Br=new WeakMap,Hr=function(){function e(e){var t=e.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic={x:{min:0,max:1},y:{min:0,max:1}},this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=t,this.visualElement.enableLayoutProjection(),Br.set(t,this)}return e.prototype.start=function(e,t){var n=this,r=void 0===t?{}:t,o=r.snapToCursor,i=void 0!==o&&o,a=r.cursorProgress;i&&this.snapToCursor(e);var s=this.props.transformPagePoint;this.panSession=new ut(e,{onSessionStart:function(){n.stopMotion()},onStart:function(e,t){var r,o,i,s=n.props,u=s.drag,c=s.dragPropagation;if(!u||c||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=yt(u),n.openGlobalLock)){n.prepareBoundingBox(),n.visualElement.lockProjectionTarget(),n.resolveDragConstraints();var l=Se(e).point;Ot((function(e){var t=n.visualElement.projection.target[e],r=t.min,o=t.max;n.cursorProgress[e]=a?a[e]:Ee(r,o,l[e]);var i=n.getAxisMotionValue(e);i&&(n.originPoint[e]=i.get())})),n.isDragging=!0,n.currentDirection=null,null===(o=(r=n.props).onDragStart)||void 0===o||o.call(r,e,t),null===(i=n.visualElement.animationState)||void 0===i||i.setActive(xr.Drag,!0)}},onMove:function(e,t){var r,o,i,a,s=n.props,u=s.dragPropagation,c=s.dragDirectionLock;if(u||n.openGlobalLock){var l=t.offset;if(c&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(l),void(null!==n.currentDirection&&(null===(o=(r=n.props).onDirectionLock)||void 0===o||o.call(r,n.currentDirection)));n.updateAxis("x",e,l),n.updateAxis("y",e,l),null===(a=(i=n.props).onDrag)||void 0===a||a.call(i,e,t),Ur=e}},onEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:s})},e.prototype.prepareBoundingBox=function(){var e=this.visualElement;e.withoutTransform((function(){e.updateLayoutMeasurement()})),e.rebaseProjectionTarget(!0,e.measureViewportBox(!1))},e.prototype.resolveDragConstraints=function(){var e=this,t=this.props,n=t.dragConstraints,r=t.dragElastic;this.constraints=!!n&&(we(n)?this.resolveRefConstraints(this.visualElement.getLayoutState().layout,n):function(e,t){var n=t.top,r=t.left,o=t.bottom,i=t.right;return{x:Ct(e.x,r,i),y:Ct(e.y,n,o)}}(this.visualElement.getLayoutState().layout,n)),this.elastic=function(e){return!1===e?e=0:!0===e&&(e=.35),{x:jt(e,"left","right"),y:jt(e,"top","bottom")}}(r),this.constraints&&!this.hasMutatedConstraints&&Ot((function(t){var n,r,o;e.getAxisMotionValue(t)&&(e.constraints[t]=(n=e.visualElement.getLayoutState().layout[t],o={},void 0!==(r=e.constraints[t]).min&&(o.min=r.min-n.min),void 0!==r.max&&(o.max=r.max-n.min),o))}))},e.prototype.resolveRefConstraints=function(e,t){var n=this.props,r=n.onMeasureDragConstraints,o=n.transformPagePoint,i=t.current;this.constraintsBox=Lt(i,o);var a=function(e,t){return{x:At(e.x,t.x),y:At(e.y,t.y)}}(e,this.constraintsBox);if(r){var s=r(function(e){var t=e.x,n=e.y;return{top:n.min,bottom:n.max,left:t.min,right:t.max}}(a));this.hasMutatedConstraints=!!s,s&&(a=wt(s))}return a},e.prototype.cancelDrag=function(){var e;this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(xr.Drag,!1)},e.prototype.stop=function(e,t){var n;this.visualElement.unlockProjectionTarget(),null===(n=this.panSession)||void 0===n||n.end(),this.panSession=null;var r=this.isDragging;if(this.cancelDrag(),r){var o=this.props,i=o.dragMomentum,a=o.onDragEnd;if(i||this.elastic){var s=t.velocity;this.animateDragEnd(s)}null==a||a(e,t)}},e.prototype.snapToCursor=function(e){var t=this;this.prepareBoundingBox(),Ot((function(n){if(Vr(n,t.props.drag,t.currentDirection)){var r=t.getAxisMotionValue(n);if(r){var o=Se(e).point,i=t.visualElement.getLayoutState().layout,a=i[n].max-i[n].min,s=i[n].min+a/2,u=o[n]-s;t.originPoint[n]=o[n],r.set(u)}else t.cursorProgress[n]=.5,t.updateVisualElementAxis(n,e)}}))},e.prototype.updateAxis=function(e,t,n){if(Vr(e,this.props.drag,this.currentDirection))return this.getAxisMotionValue(e)?this.updateAxisMotionValue(e,n):this.updateVisualElementAxis(e,t)},e.prototype.updateAxisMotionValue=function(e,t){var n=this.getAxisMotionValue(e);if(t&&n){var r=this.originPoint[e]+t[e],o=this.constraints?Rt(r,this.constraints[e],this.elastic[e]):r;n.set(o)}},e.prototype.updateVisualElementAxis=function(e,t){var n,r=this.visualElement.getLayoutState().layout[e],o=r.max-r.min,i=this.cursorProgress[e],a=function(e,t,n,r,o){var i=e-t*n;return r?Rt(i,r,o):i}(Se(t).point[e],o,i,null===(n=this.constraints)||void 0===n?void 0:n[e],this.elastic[e]);this.visualElement.setProjectionTargetAxis(e,a,a+o)},e.prototype.setProps=function(e){var t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,o=void 0!==r&&r,i=e.dragPropagation,a=void 0!==i&&i,s=e.dragConstraints,u=void 0!==s&&s,c=e.dragElastic,l=void 0===c?.35:c,f=e.dragMomentum,d=void 0===f||f,p=ge(e,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=he({drag:n,dragDirectionLock:o,dragPropagation:a,dragConstraints:u,dragElastic:l,dragMomentum:d},p)},e.prototype.getAxisMotionValue=function(e){var t=this.props,n=t.layout,r=t.layoutId,o="_drag"+e.toUpperCase();return this.props[o]?this.props[o]:n||void 0!==r?void 0:this.visualElement.getValue(e,0)},e.prototype.animateDragEnd=function(e){var t=this,n=this.props,r=n.drag,o=n.dragMomentum,i=n.dragElastic,a=n.dragTransition,s=Ot((function(n){if(Vr(n,r,t.currentDirection)){var s=t.constraints?t.constraints[n]:{},u=i?200:1e6,c=i?40:1e7,l=he(he({type:"inertia",velocity:o?e[n]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10},a),s);return t.getAxisMotionValue(n)?t.startAxisValueAnimation(n,l):t.visualElement.startLayoutAnimation(n,l)}}));return Promise.all(s).then((function(){var e,n;null===(n=(e=t.props).onDragTransitionEnd)||void 0===n||n.call(e)}))},e.prototype.stopMotion=function(){var e=this;Ot((function(t){var n=e.getAxisMotionValue(t);n?n.stop():e.visualElement.stopLayoutAnimation()}))},e.prototype.startAxisValueAnimation=function(e,t){var n=this.getAxisMotionValue(e);if(n){var r=n.get();return n.set(r),n.set(r),Nr(e,n,0,t)}},e.prototype.scalePoint=function(){var e=this,t=this.props,n=t.drag;if(we(t.dragConstraints)&&this.constraintsBox){this.stopMotion();var r={x:0,y:0};Ot((function(t){var n,o,i,a,s;r[t]=(n=e.visualElement.projection.target[t],o=e.constraintsBox[t],i=.5,a=kt(n),(s=kt(o))>a?i=Ee(o.min,o.max-a,n.min):a>s&&(i=Ee(n.min,n.max-s,o.min)),xt(0,1,i))})),this.prepareBoundingBox(),this.resolveDragConstraints(),Ot((function(t){if(Vr(t,n,null)){var o=function(e,t,n){var r=e.max-e.min,o=Tt(t.min,t.max-r,n);return{min:o,max:o+r}}(e.visualElement.projection.target[t],e.constraintsBox[t],r[t]),i=o.min,a=o.max;e.visualElement.setProjectionTargetAxis(t,i,a)}}))}},e.prototype.mount=function(e){var t=this,n=Le(e.getInstance(),"pointerdown",(function(e){var n=t.props,r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&t.start(e)})),r=Me(window,"resize",(function(){t.scalePoint()})),o=e.onLayoutUpdate((function(){t.isDragging&&t.resolveDragConstraints()})),i=e.prevDragCursor;return i&&this.start(Ur,{cursorProgress:i}),function(){null==n||n(),null==r||r(),null==o||o(),t.cancelDrag()}},e}();function Vr(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var zr=function(e){return function(t){return e(t),null}},Qr=zr((function(e){var t=e.visualElement;return function(e,t){var n=e.dragControls,r=(0,ee.useContext)(ye).transformPagePoint,o=be((function(){return new Hr({visualElement:t})}));o.setProps(he(he({},e),{transformPagePoint:r})),(0,ee.useEffect)((function(){return n&&n.subscribe(o)}),[o]),(0,ee.useEffect)((function(){return o.mount(t)}),[])}(ge(e,["visualElement"]),t)})),Xr={key:"drag",shouldRender:function(e){return!!e.drag||!!e.dragControls},getComponent:function(){return Qr}};function Wr(e){return(0,ee.useEffect)((function(){return function(){return e()}}),[])}var qr=function(e,t){return!!t&&(e===t||qr(e,t.parentElement))};function Gr(e,t,n){return function(r,o){var i;_e(r)&&e.isHoverEventsEnabled&&(null==n||n(r,o),null===(i=e.animationState)||void 0===i||i.setActive(xr.Hover,t))}}function $r(e,t){var n,r,o,i,a,s,u,c,l,f;r=t,o=(n=e).onPan,i=n.onPanStart,a=n.onPanEnd,s=n.onPanSessionStart,u=o||i||a||s,c=(0,ee.useRef)(null),l=(0,ee.useContext)(ye).transformPagePoint,f={onSessionStart:s,onStart:i,onMove:o,onEnd:function(e,t){c.current=null,a&&a(e,t)}},(0,ee.useEffect)((function(){null!==c.current&&c.current.updateHandlers(f)})),Ie(r,"pointerdown",u&&function(e){c.current=new ut(e,f,{transformPagePoint:l})}),Wr((function(){return c.current&&c.current.end()})),function(e,t){var n=e.onTap,r=e.onTapStart,o=e.onTapCancel,i=e.whileTap,a=n||r||o||i,s=(0,ee.useRef)(!1),u=(0,ee.useRef)(null);function c(){var e;null===(e=u.current)||void 0===e||e.call(u),u.current=null}function l(){var e,n;return c(),s.current=!1,null===(e=t.animationState)||void 0===e||e.setActive(xr.Tap,!1),!(!(n=yt(!0))||(n(),0))}function f(e,r){l()&&(qr(t.getInstance(),e.target)?null==n||n(e,r):null==o||o(e,r))}function d(e,t){l()&&(null==o||o(e,t))}Ie(t,"pointerdown",a?function(e,n){var o;c(),s.current||(s.current=!0,u.current=Qe(Le(window,"pointerup",f),Le(window,"pointercancel",d)),null==r||r(e,n),null===(o=t.animationState)||void 0===o||o.setActive(xr.Tap,!0))}:void 0),Wr(c)}(e,t),function(e,t){var n=e.onHoverStart,r=e.onHoverEnd,o=e.whileHover;Ie(t,"pointerenter",n||o?Gr(t,!0,n):void 0),Ie(t,"pointerleave",r||o?Gr(t,!1,r):void 0)}(e,t),function(e,t){var n=e.whileFocus;Re(t,"focus",n?function(){var e;null===(e=t.animationState)||void 0===e||e.setActive(xr.Focus,!0)}:void 0),Re(t,"blur",n?function(){var e;null===(e=t.animationState)||void 0===e||e.setActive(xr.Focus,!1)}:void 0)}(e,t)}var Yr=["onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover"],Kr=zr((function(e){var t=e.visualElement;$r(ge(e,["visualElement"]),t)})),Zr={key:"gestures",shouldRender:function(e){return Yr.some((function(t){return e.hasOwnProperty(t)}))},getComponent:function(){return Kr}},Jr=(0,ee.createContext)(null);function eo(){var e=(0,ee.useContext)(Jr);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,o=ro();return(0,ee.useEffect)((function(){return r(o)}),[]),!t&&n?[!1,function(){return null==n?void 0:n(o)}]:[!0]}var to=0,no=function(){return to++},ro=function(){return be(no)},oo=zr((function(e){var t=e.custom,n=e.visualElement,r=me(eo(),2),o=r[0],i=r[1],a=(0,ee.useContext)(Jr);(0,ee.useEffect)((function(){var e,r,s=null===(e=n.animationState)||void 0===e?void 0:e.setActive(xr.Exit,!o,{custom:null!==(r=null==a?void 0:a.custom)&&void 0!==r?r:t});!o&&(null==s||s.then(i))}),[o])})),io={key:"exit",shouldRender:function(e){return!!e.exit&&!function(e){var t=e.animate,n=e.variants,r=e.inherit;return null!=r?r:!!n&&!t}(e)},getComponent:function(){return oo}};function ao(e){return"object"==typeof e&&"function"==typeof e.start}function so(e){return Array.isArray(e)}function uo(e){return"string"==typeof e||so(e)}function co(e,t,n,r,o){var i;return void 0===r&&(r={}),void 0===o&&(o={}),"string"==typeof t&&(t=null===(i=e.variants)||void 0===i?void 0:i[t]),"function"==typeof t?t(null!=n?n:e.custom,r,o):t}function lo(e,t,n){var r=e.getProps();return co(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function fo(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||uo(e.initial)||uo(e.animate)||uo(e.whileHover)||uo(e.whileDrag)||uo(e.whileTap)||uo(e.whileFocus)||uo(e.exit)}function po(e){return Boolean(fo(e)||e.variants)}var ho=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t,n,r=this;return t=this.subscriptions,n=e,-1===t.indexOf(n)&&t.push(n),function(){return function(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}(r.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;o<r;o++){var i=this.subscriptions[o];i&&i(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),go=function(){function e(e){var t,n=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new ho,this.velocityUpdateSubscribers=new ho,this.renderSubscribers=new ho,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var r=it(),o=r.delta,i=r.timestamp;n.lastUpdated!==i&&(n.timeDelta=o,n.lastUpdated=i,at.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),t&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return at.postRender(n.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?ir(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function mo(e){return new go(e)}function vo(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,mo(n))}function yo(e,t){if(t)return(t[e]||t.default||t).from}function bo(e,t,n){var r;void 0===n&&(n={});var o=lo(e,t,n.custom),i=(o||{}).transition,a=void 0===i?e.getDefaultTransition()||{}:i;n.transitionOverride&&(a=n.transitionOverride);var s=o?function(){return wo(e,o,n)}:function(){return Promise.resolve()},u=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var o=a.delayChildren,i=void 0===o?0:o,s=a.staggerChildren,u=a.staggerDirection;return function(e,t,n,r,o,i){void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o=1);var a=[],s=(e.variantChildren.size-1)*r,u=1===o?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(Eo).forEach((function(e,r){a.push(bo(e,t,he(he({},i),{delay:n+u(r)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(a)}(e,t,i+r,s,u,n)}:function(){return Promise.resolve()},c=a.when;if(c){var l=me("beforeChildren"===c?[s,u]:[u,s],2),f=l[0],d=l[1];return f().then(d)}return Promise.all([s(),u(n.delay)])}function wo(e,t,n){var r,o=void 0===n?{}:n,i=o.delay,a=void 0===i?0:i,s=o.transitionOverride,u=o.type,c=e.makeTargetAnimatable(t),l=c.transition,f=void 0===l?e.getDefaultTransition():l,d=c.transitionEnd,p=ge(c,["transition","transitionEnd"]);s&&(f=s);var h=[],g=u&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[u]);for(var m in p){var v=e.getValue(m),y=p[m];if(!(!v||void 0===y||g&&_o(g,m))){var b=Nr(m,v,y,he({delay:a},f));h.push(b)}}return Promise.all(h).then((function(){d&&function(e,t){var n,r=lo(e,t),o=r?e.makeTargetAnimatable(r,!1):{},i=o.transitionEnd,a=void 0===i?{}:i,s=(o.transition,ge(o,["transitionEnd","transition"]));for(var u in s=he(he({},s),a))vo(e,u,(n=s[u],mr(n)?n[n.length-1]||0:n))}(e,d)}))}function Eo(e,t){return e.sortNodePosition(t)}function _o(e,t){var n=e.protectedKeys,r=e.needsAnimating,o=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,o}function Oo(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var xo=[xr.Animate,xr.Hover,xr.Tap,xr.Drag,xr.Focus,xr.Exit],To=ve(xo).reverse(),Po=xo.length;function ko(e){var t,n=function(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(),Array.isArray(t)){var o=t.map((function(t){return bo(e,t,n)}));r=Promise.all(o)}else if("string"==typeof t)r=bo(e,t,n);else{var i="function"==typeof t?lo(e,t,n.custom):t;r=wo(e,i,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}(e),r=((t={})[xr.Animate]=So(!0),t[xr.Hover]=So(),t[xr.Tap]=So(),t[xr.Drag]=So(),t[xr.Focus]=So(),t[xr.Exit]=So(),t),o={},i=!0,a=function(t,n){var r=lo(e,n);if(r){r.transition;var o=r.transitionEnd,i=ge(r,["transition","transitionEnd"]);t=he(he(he({},t),i),o)}return t};function s(t,s){for(var u=e.getProps(),c=e.getVariantContext(!0)||{},l=[],f=new Set,d={},p=1/0,h=function(n){var o=To[n],h=r[o],g=null!==(_=u[o])&&void 0!==_?_:c[o],m=uo(g),v=o===s?h.isActive:null;!1===v&&(p=n);var y=g===c[o]&&g!==u[o]&&m;if(y&&i&&e.manuallyAnimateOnMount&&(y=!1),h.protectedKeys=he({},d),!h.isActive&&null===v||!g&&!h.prevProp||ao(g)||"boolean"==typeof g)return"continue";var b=function(e,t){return"string"==typeof t?t!==e:!!so(t)&&!Oo(t,e)}(h.prevProp,g)||o===s&&h.isActive&&!y&&m||n>p&&m,w=Array.isArray(g)?g:[g],E=w.reduce(a,{});!1===v&&(E={});var _=h.prevResolvedValues,O=void 0===_?{}:_,x=he(he({},O),E),T=function(e){b=!0,f.delete(e),h.needsAnimating[e]=!0};for(var P in x){var k=E[P],S=O[P];d.hasOwnProperty(P)||(k!==S?mr(k)&&mr(S)?Oo(k,S)?h.protectedKeys[P]=!0:T(P):void 0!==k?T(P):f.add(P):void 0!==k&&f.has(P)?T(P):h.protectedKeys[P]=!0)}h.prevProp=g,h.prevResolvedValues=E,h.isActive&&(d=he(he({},d),E)),i&&e.blockInitialAnimation&&(b=!1),b&&!y&&l.push.apply(l,ve(w.map((function(e){return{animation:e,options:he({type:o},t)}}))))},g=0;g<Po;g++)h(g);if(o=he({},d),f.size){var m={};f.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(m[t]=n)})),l.push({animation:m})}var v=Boolean(l.length);return i&&!1===u.initial&&!e.manuallyAnimateOnMount&&(v=!1),i=!1,v?n(l):Promise.resolve()}return{isAnimated:function(e){return void 0!==o[e]},animateChanges:s,setActive:function(t,n,o){var i;return r[t].isActive===n?Promise.resolve():(null===(i=e.variantChildren)||void 0===i||i.forEach((function(e){var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)})),r[t].isActive=n,s(o,t))},setAnimateFunction:function(t){n=t(e)},getState:function(){return r}}}function So(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Do,Mo,Ro=zr((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=ko(t)),ao(n)&&(0,ee.useEffect)((function(){return n.subscribe(t)}),[n])})),Co={key:"animation",shouldRender:function(){return!0},getComponent:function(e){var t=e.animate,n=e.whileHover,r=e.whileFocus,o=e.whileTap,i=e.whileDrag,a=e.exit,s=e.variants;return t||n||r||o||i||a||s?Ro:void 0}};!function(e){e[e.Entering=0]="Entering",e[e.Present=1]="Present",e[e.Exiting=2]="Exiting"}(Do||(Do={})),function(e){e[e.Hide=0]="Hide",e[e.Show=1]="Show"}(Mo||(Mo={}));var Ao=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.frameTarget={x:{min:0,max:1},y:{min:0,max:1}},t.currentAnimationTarget={x:{min:0,max:1},y:{min:0,max:1}},t.isAnimating={x:!1,y:!1},t.stopAxisAnimation={x:void 0,y:void 0},t.isAnimatingTree=!1,t.animate=function(e,n,r){void 0===r&&(r={});var o=r.originBox,i=r.targetBox,a=r.visibilityAction,s=r.shouldStackAnimate,u=r.onComplete,c=ge(r,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete"]),l=t.props,f=l.visualElement,d=l.layout;if(!1===s)return t.isAnimatingTree=!1,t.safeToRemove();if(!t.isAnimatingTree||!0===s){s&&(t.isAnimatingTree=!0);var p=Fo(n=o||n,e=i||e),h=Ot((function(r){if("position"===d){var o=e[r].max-e[r].min;n[r].max=n[r].min+o}if(!f.projection.isTargetLocked)return void 0===a?p?t.animateAxis(r,e[r],n[r],c):f.setProjectionTargetAxis(r,e[r].min,e[r].max):void f.setVisibility(a===Mo.Show)}));return f.syncRender(),Promise.all(h).then((function(){t.isAnimatingTree=!1,u&&u(),f.notifyLayoutAnimationComplete()}))}},t}return pe(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.visualElement;t.animateMotionValue=Nr,t.enableLayoutProjection(),this.unsubLayoutReady=t.onLayoutUpdate(this.animate),t.layoutSafeToRemove=function(){return e.safeToRemove()}},t.prototype.componentWillUnmount=function(){var e=this;this.unsubLayoutReady(),Ot((function(t){var n,r;return null===(r=(n=e.stopAxisAnimation)[t])||void 0===r?void 0:r.call(n)}))},t.prototype.animateAxis=function(e,t,n,r){var o,i,a=this,s=(void 0===r?{}:r).transition;if(!this.isAnimating[e]||!No(t,this.currentAnimationTarget[e])){null===(i=(o=this.stopAxisAnimation)[e])||void 0===i||i.call(o),this.isAnimating[e]=!0;var u=this.props.visualElement,c=this.frameTarget[e],l=u.getProjectionAnimationProgress()[e];l.clearListeners(),l.set(0),l.set(0);var f=function(){var r=l.get()/1e3;!function(e,t,n,r){e.min=Tt(t.min,n.min,r),e.max=Tt(t.max,n.max,r)}(c,n,t,r),u.setProjectionTargetAxis(e,c.min,c.max)};f(),u.updateLayoutProjection();var d=l.onChange(f);return this.stopAxisAnimation[e]=function(){a.isAnimating[e]=!1,l.stop(),d()},this.currentAnimationTarget[e]=t,Nr("x"===e?"layoutX":"layoutY",l,1e3,s||this.props.transition||Uo).then(this.stopAxisAnimation[e])}},t.prototype.safeToRemove=function(){var e,t;null===(t=(e=this.props).safeToRemove)||void 0===t||t.call(e)},t.prototype.render=function(){return null},t}(ee.Component);function jo(e){var t=me(eo(),2)[1];return(0,ee.createElement)(Ao,he({},e,{safeToRemove:t}))}function Fo(e,t){return!(Io(e)||Io(t)||No(e.x,t.x)&&No(e.y,t.y))}var Lo={min:0,max:0};function Io(e){return No(e.x,Lo)&&No(e.y,Lo)}function No(e,t){return e.min===t.min&&e.max===t.max}var Uo={duration:.45,ease:[.4,0,.1,1]},Bo={key:"animate-layout",shouldRender:function(e){return!!e.layout||void 0!==e.layoutId},getComponent:function(){return jo}},Ho={measureLayout:function(e){return e.updateLayoutMeasurement()},layoutReady:function(e){return e.notifyLayoutReady()}};function Vo(){var e=new Set;return{add:function(t){return e.add(t)},flush:function(t){var n=void 0===t?Ho:t,r=n.measureLayout,o=n.layoutReady,i=n.parent,a=Array.from(e).sort((function(e,t){return e.depth-t.depth})),s=function(){a.forEach((function(e){return e.resetTransform()})),a.forEach(r)};i?i.withoutTransform(s):s(),a.forEach(o),a.forEach((function(e){e.isPresent&&(e.presence=Do.Present)})),e.clear()}}}var zo=(0,ee.createContext)(Vo()),Qo=(0,ee.createContext)(Vo());function Xo(e){return!!e.forceUpdate}var Wo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return pe(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.syncLayout,n=e.framerSyncLayout,r=e.visualElement;Xo(t)&&t.register(r),Xo(n)&&n.register(r)},t.prototype.getSnapshotBeforeUpdate=function(){var e=this.props,t=e.syncLayout,n=e.visualElement;return Xo(t)?t.syncUpdate():(n.snapshotViewportBox(),t.add(n)),null},t.prototype.componentDidUpdate=function(){var e=this.props,t=e.syncLayout,n=e.visualElement;Xo(t)||t.flush(),n.rebaseProjectionTarget()},t.prototype.render=function(){return null},t}(ee.Component);function qo(e){var t=(0,ee.useContext)(zo),n=(0,ee.useContext)(Qo);return ee.createElement(Wo,he({},e,{syncLayout:t,framerSyncLayout:n}))}var Go={key:"measure-layout",shouldRender:function(e){return!!e.drag||!!e.layout||void 0!==e.layoutId},getComponent:function(){return qo}},$o=(0,ee.createContext)({}),Yo=(0,ee.createContext)(null),Ko="undefined"!=typeof window?ee.useLayoutEffect:ee.useEffect;function Zo(e){return Array.isArray(e)?e.join(" "):e}function Jo(e){var t=e.defaultFeatures,n=e.createVisualElement,r=e.useRender,o=e.useVisualState;return(0,ee.forwardRef)((function(e,i){var a=(0,ee.useContext)(ye).isStatic,s=null,u=function(e,t){var n=function(e,t){if(fo(e)){var n=e.initial,r=e.animate;return{initial:!1===n||uo(n)?n:void 0,animate:uo(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,ee.useContext)($o)),r=n.initial,o=n.animate;return(0,ee.useMemo)((function(){return{initial:r,animate:o}}),t?[Zo(r),Zo(o)]:[])}(e,a),c=o(e,a);return a||"undefined"==typeof window||(u.visualElement=function(e,t,n,r){var o=(0,ee.useContext)(ye),i=(0,ee.useContext)($o).visualElement,a=(0,ee.useContext)(Jr),s=function(e){var t=e.layoutId,n=(0,ee.useContext)(Yo);return n&&void 0!==t?n+"-"+t:t}(r),u=be((function(){return n(e,{visualState:t,parent:i,props:he(he({},r),{layoutId:s}),presenceId:null==a?void 0:a.id,blockInitialAnimation:!1===(null==a?void 0:a.initial)})}));return Ko((function(){var e;u.setProps(he(he(he({},o),r),{layoutId:s})),u.isPresent=null===(e=a)||e.isPresent,u.isPresenceRoot=!i||i.presenceId!==(null==a?void 0:a.id),u.syncRender()})),(0,ee.useEffect)((function(){var e;null===(e=u.animationState)||void 0===e||e.animateChanges()})),function(e){var t=(0,ee.useContext)(zo),n=(0,ee.useContext)(Qo);Ko((function(){return function(){Xo(t)&&t.remove(e),Xo(n)&&n.remove(e)}}),[])}(u),u}(a,c,n,e),s=function(e,t,n){for(var r=ve(e,(0,ee.useContext)(ye).features),o=r.length,i=[],a=0;a<o;a++){var s=r[a],u=s.shouldRender,c=s.key,l=s.getComponent;if(u(n)){var f=l(n);f&&i.push((0,ee.createElement)(f,he({key:c},n,{visualElement:t})))}}return i}(t,u.visualElement,e)),(0,ee.createElement)(ee.Fragment,null,(0,ee.createElement)($o.Provider,{value:u},r(e,function(e,t,n){return(0,ee.useCallback)((function(r){var o;r&&(null===(o=e.mount)||void 0===o||o.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):we(n)&&(n.current=r))}),[])}(c,u.visualElement,i),c,a)),s)}))}var ei=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function ti(e){return"string"==typeof e&&!e.includes("-")&&(ei.indexOf(e)>-1||!!/[A-Z]/.test(e)||void 0)}function ni(e){return"string"==typeof e&&e.startsWith("var(--")}var ri=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function oi(e,t,n){void 0===n&&(n=1);var r=me(function(e){var t=ri.exec(e);if(!t)return[,];var n=me(t,3);return[n[1],n[2]]}(e),2),o=r[0],i=r[1];if(o){var a=window.getComputedStyle(t).getPropertyValue(o);return a?a.trim():ni(i)?oi(i,t,n+1):i}}function ii(e,t){return e/(t.max-t.min)*100}var ai="_$css",si={process:function(e,t,n){var r=n.target;if("string"==typeof e){if(!fn.test(e))return e;e=parseFloat(e)}return ii(e,r.x)+"% "+ii(e,r.y)+"%"}},ui={borderRadius:he(he({},si),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:si,borderTopRightRadius:si,borderBottomLeftRadius:si,borderBottomRightRadius:si,boxShadow:{process:function(e,t){var n=t.delta,r=t.treeScale,o=e,i=e.includes("var("),a=[];i&&(e=e.replace(ri,(function(e){return a.push(e),ai})));var s=Sn.parse(e);if(s.length>5)return o;var u=Sn.createTransformer(e),c="number"!=typeof s[0]?1:0,l=n.x.scale*r.x,f=n.y.scale*r.y;s[0+c]/=l,s[1+c]/=f;var d=Tt(l,f,.5);"number"==typeof s[2+c]&&(s[2+c]/=d),"number"==typeof s[3+c]&&(s[3+c]/=d);var p=u(s);if(i){var h=0;p=p.replace(ai,(function(){var e=a[h];return h++,e}))}return p}}},ci=["","X","Y","Z"],li=["transformPerspective","x","y","z"];function fi(e,t){return li.indexOf(e)-li.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return ci.forEach((function(t){return li.push(e+t)}))}));var di=new Set(li);function pi(e){return di.has(e)}var hi=new Set(["originX","originY","originZ"]);function gi(e){return hi.has(e)}function mi(e,t){var n=t.layout,r=t.layoutId;return pi(e)||gi(e)||(n||void 0!==r)&&!!ui[e]}var vi=function(e){return e instanceof go};function yi(){return{isHydrated:!1,layout:{x:{min:0,max:1},y:{min:0,max:1}},layoutCorrected:{x:{min:0,max:1},y:{min:0,max:1}},treeScale:{x:1,y:1},delta:_t(),deltaFinal:_t(),deltaTransform:""}}var bi=yi(),wi={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Ei(e,t,n){var r=e.x,o=e.y,i="translate3d("+r.translate/t.x+"px, "+o.translate/t.y+"px, 0) ";if(n){var a=n.rotate,s=n.rotateX,u=n.rotateY;a&&(i+="rotate("+a+") "),s&&(i+="rotateX("+s+") "),u&&(i+="rotateY("+u+") ")}return i+="scale("+r.scale+", "+o.scale+")",n||i!==_i?i:""}var _i=Ei(bi.delta,bi.treeScale,{x:1,y:1});function Oi(e){return e.startsWith("--")}function xi(e,t,n,r,o,i){var a,s=e.style,u=e.vars,c=e.transform,l=e.transformKeys,f=e.transformOrigin;l.length=0;var d=!1,p=!1,h=!0;for(var g in t){var m=t[g];if(Oi(g))u[g]=m;else{var v=Ar(g),y=jr(m,v);if(pi(g)){if(d=!0,c[g]=y,l.push(g),!h)continue;m!==(null!==(a=v.default)&&void 0!==a?a:0)&&(h=!1)}else if(gi(g))f[g]=y,p=!0;else if(r&&n&&r.isHydrated&&ui[g]){var b=ui[g].process(m,r,n),w=ui[g].applyTo;if(w)for(var E=w.length,_=0;_<E;_++)s[w[_]]=b;else s[g]=b}else s[g]=y}}r&&n&&n.isEnabled&&r.isHydrated?(s.transform=Ei(r.deltaFinal,r.treeScale,d?c:void 0),i&&(s.transform=i(c,s.transform)),s.transformOrigin=function(e){var t=e.deltaFinal;return 100*t.x.origin+"% "+100*t.y.origin+"% 0"}(r)):(d&&(s.transform=function(e,t,n,r){var o=e.transform,i=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,u=t.allowTransformNone,c=void 0===u||u,l="";i.sort(fi);for(var f=!1,d=i.length,p=0;p<d;p++){var h=i[p];l+=(wi[h]||h)+"("+o[h]+") ","z"===h&&(f=!0)}return!f&&s?l+="translateZ(0)":l=l.trim(),r?l=r(o,n?"":l):c&&n&&(l="none"),l}(e,o,h,i)),p&&(s.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,o=void 0===r?"50%":r,i=e.originZ;return n+" "+o+" "+(void 0===i?0:i)}(f)))}function Ti(e,t,n){for(var r in t)vi(t[r])||mi(r,n)||(e[r]=t[r])}function Pi(e,t,n){var r={},o=function(e,t,n){var r={};return Ti(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return(0,ee.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};xi(e,t,void 0,void 0,{enableHardwareAcceleration:!n},r);var o=e.style;return he(he({},e.vars),o)}),[t])}(e,t,n)),e.transformValues&&(r=e.transformValues(r)),r}(e,t,n);return Boolean(e.drag)&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),r.style=o,r}var ki=new Set(ve(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","onLayoutAnimationComplete","onViewportBoxUpdate","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag"],Yr));function Si(e){return ki.has(e)}var Di=function(e){return!Si(e)};try{var Mi=n(6147).Z;Di=function(e){return e.startsWith("on")?!Si(e):Mi(e)}}catch(e){}function Ri(e,t,n){return"string"==typeof e?e:fn.transform(t+n*e)}var Ci=function(e,t){return fn.transform(e*t)},Ai={offset:"stroke-dashoffset",array:"stroke-dasharray"},ji={offset:"strokeDashoffset",array:"strokeDasharray"};function Fi(e,t,n,r,o,i){var a=t.attrX,s=t.attrY,u=t.originX,c=t.originY,l=t.pathLength,f=t.pathSpacing,d=void 0===f?1:f,p=t.pathOffset,h=void 0===p?0:p;xi(e,ge(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r,o,i),e.attrs=e.style,e.style={};var g=e.attrs,m=e.style,v=e.dimensions,y=e.totalPathLength;g.transform&&(v&&(m.transform=g.transform),delete g.transform),v&&(void 0!==u||void 0!==c||m.transform)&&(m.transformOrigin=function(e,t,n){return Ri(t,e.x,e.width)+" "+Ri(n,e.y,e.height)}(v,void 0!==u?u:.5,void 0!==c?c:.5)),void 0!==a&&(g.x=a),void 0!==s&&(g.y=s),void 0!==y&&void 0!==l&&function(e,t,n,r,o,i){void 0===r&&(r=1),void 0===o&&(o=0),void 0===i&&(i=!0);var a=i?Ai:ji;e[a.offset]=Ci(-o,t);var s=Ci(n,t),u=Ci(r,t);e[a.array]=s+" "+u}(g,y,l,d,h,!1)}var Li=function(){return he(he({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function Ii(e,t){var n=(0,ee.useMemo)((function(){var n=Li();return Fi(n,t,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),he(he({},n.attrs),{style:he({},n.style)})}),[t]);if(e.style){var r={};Ti(r,e.style,e),n.style=he(he({},r),n.style)}return n}function Ni(e,t){return void 0===t&&(t=!1),function(n,r,o,i){var a=o.latestValues,s=(ti(e)?Ii:Pi)(n,a,i),u=function(e,t,n){var r={};for(var o in e)(Di(o)||!0===n&&Si(o)||!t&&!Si(o))&&(r[o]=e[o]);return r}(n,"string"==typeof e,t),c=he(he(he({},u),s),{ref:r});return(0,ee.createElement)(e,c)}}function Ui(e){var t=e.style,n={};for(var r in t)(vi(t[r])||mi(r,e))&&(n[r]=t[r]);return n}function Bi(e){var t=Ui(e);for(var n in e)vi(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function Hi(e,t){e.min=t.min,e.max=t.max}function Vi(e,t,n){return n+t*(e-n)}function zi(e,t,n,r,o){return void 0!==o&&(e=Vi(e,o,r)),Vi(e,n,r)+t}function Qi(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=zi(e.min,t,n,r,o),e.max=zi(e.max,t,n,r,o)}function Xi(e,t){var n=t.x,r=t.y;Qi(e.x,n.translate,n.scale,n.originPoint),Qi(e.y,r.translate,r.scale,r.originPoint)}function Wi(e,t,n,r){var o=me(r,3),i=o[0],a=o[1],s=o[2];e.min=t.min,e.max=t.max;var u=void 0!==n[s]?n[s]:.5,c=Tt(t.min,t.max,u);Qi(e,n[i],n[a],c,n.scale)}var qi=["x","scaleX","originX"],Gi=["y","scaleY","originY"];function $i(e,t,n,r,o){return e=Vi(e-=t,1/n,r),void 0!==o&&(e=Vi(e,1/o,r)),e}function Yi(e,t,n){var r=me(n,3),o=r[0],i=r[1],a=r[2];!function(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5);var i=Tt(e.min,e.max,r)-t;e.min=$i(e.min,t,n,i,o),e.max=$i(e.max,t,n,i,o)}(e,t[o],t[i],t[a],t.scale)}var Ki=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget"];var Zi=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,o=e.getBaseTarget,i=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,u=e.readValueFromInstance,c=e.resetTransform,l=e.restoreTransform,f=e.removeValueFromRenderState,d=e.sortNodePosition,p=e.scrapeMotionValuesFromProps;return function(e,t){var h=e.parent,g=e.props,m=e.presenceId,v=e.blockInitialAnimation,y=e.visualState;void 0===t&&(t={});var b,w,E,_,O,x,T=y.latestValues,P=y.renderState,k=new Set,S=function(){var e=Ki.map((function(){return new ho})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){return Ki.forEach((function(r){var o;null===(o=t[r])||void 0===o||o.call(t);var i="on"+r,a=e[i];a&&(t[r]=n[i](a))}))}};return e.forEach((function(e,t){n["on"+Ki[t]]=function(t){return e.add(t)},n["notify"+Ki[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,ve(t))}})),n}(),D={isEnabled:!1,isTargetLocked:!1,target:{x:{min:0,max:1},y:{min:0,max:1}},targetFinal:{x:{min:0,max:1},y:{min:0,max:1}}},M=D,R=T,C=yi(),A=!1,j=new Map,F=new Map,L={},I=he({},T);function N(){return D.isEnabled&&C.isHydrated}function U(){var e,t,n;b&&(N()&&(e=M.targetFinal,t=M.target,n=R,Wi(e.x,t.x,n,qi),Wi(e.y,t.y,n,Gi),Dt(C.deltaFinal,C.layoutCorrected,M.targetFinal,T)),B(),s(b,P))}function B(){var e=T;if(E&&E.isActive()){var n=E.getCrossfadeState(q);n&&(e=n)}r(q,P,e,M,C,t,g)}function H(){S.notifyUpdate(T)}var V=p(g);for(var z in V){var Q=V[z];void 0!==T[z]&&vi(Q)&&Q.set(T[z],!1)}var X=fo(g),W=po(g),q=he(he({treeType:n,current:null,depth:h?h.depth+1:0,path:h?ve(h.path,[h]):[],presenceId:m,projection:D,variantChildren:W?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==h?void 0:h.isMounted()),blockInitialAnimation:v,isHoverEventsEnabled:!0,isMounted:function(){return Boolean(b)},mount:function(e){b=q.current=e,q.pointTo(q),O=null==h?void 0:h.addChild(q),W&&h&&!X&&(x=null==h?void 0:h.addVariantChild(q))},unmount:function(){tt.update(H),tt.render(U),tt.preRender(q.updateLayoutProjection),F.forEach((function(e){return e()})),q.stopLayoutAnimation(),null==O||O(),null==x||x(),null==w||w(),S.clearAllListeners()},addChild:function(e){return k.add(e),function(){return k.delete(e)}},addVariantChild:function(e){var t,n=q.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return d&&n===e.treeType?d(q.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return W?q:null==h?void 0:h.getClosestVariantNode()},scheduleUpdateLayoutProjection:h?h.scheduleUpdateLayoutProjection:function(){return at.preRender(q.updateLayoutProjection,!1,!0)},getLayoutId:function(){return g.layoutId},getInstance:function(){return b},getStaticValue:function(e){return T[e]},setStaticValue:function(e,t){return T[e]=t},getLatestValues:function(){return T},setVisibility:function(e){q.isVisible!==e&&(q.isVisible=e,q.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),i(q,e,g,t)},suspendHoverEvents:function(){q.isHoverEventsEnabled=!1,at.postRender((function(){return setTimeout((function(){return q.isHoverEventsEnabled=!0}),10)}))},addValue:function(e,t){q.hasValue(e)&&q.removeValue(e),j.set(e,t),T[e]=t.get(),function(e,t){var n=t.onChange((function(t){T[e]=t,g.onUpdate&&at.update(H,!1,!0)})),r=t.onRenderRequest(q.scheduleRender);F.set(e,(function(){n(),r()}))}(e,t)},removeValue:function(e){var t;j.delete(e),null===(t=F.get(e))||void 0===t||t(),F.delete(e),delete T[e],f(e,P)},hasValue:function(e){return j.has(e)},getValue:function(e,t){var n=j.get(e);return void 0===n&&void 0!==t&&(n=mo(t),q.addValue(e,n)),n},forEachValue:function(e){return j.forEach(e)},readValue:function(e){var n;return null!==(n=T[e])&&void 0!==n?n:u(b,e,t)},setBaseTarget:function(e,t){I[e]=t},getBaseTarget:function(e){if(o){var t=o(g,e);if(void 0!==t&&!vi(t))return t}return I[e]}},S),{build:function(){return B(),P},scheduleRender:function(){at.render(U,!1,!0)},syncRender:U,setProps:function(e){g=e,S.updatePropListeners(e),L=function(e,t,n){var r;for(var o in t){var i=t[o],a=n[o];if(vi(i))e.addValue(o,i);else if(vi(a))e.addValue(o,mo(i));else if(a!==i)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(i)}else e.addValue(o,mo(null!==(r=e.getStaticValue(o))&&void 0!==r?r:i))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(q,p(g),L)},getProps:function(){return g},getVariant:function(e){var t;return null===(t=g.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return g.transition},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==h?void 0:h.getVariantContext();if(!X){var t=(null==h?void 0:h.getVariantContext())||{};return void 0!==g.initial&&(t.initial=g.initial),t}for(var n={},r=0;r<na;r++){var o=ta[r],i=g[o];(uo(i)||!1===i)&&(n[o]=i)}return n},enableLayoutProjection:function(){D.isEnabled=!0},lockProjectionTarget:function(){D.isTargetLocked=!0},unlockProjectionTarget:function(){q.stopLayoutAnimation(),D.isTargetLocked=!1},snapshotViewportBox:function(){q.prevViewportBox=q.measureViewportBox(!1),q.rebaseProjectionTarget(!1,q.prevViewportBox)},getLayoutState:function(){return C},setCrossfader:function(e){E=e},startLayoutAnimation:function(e,t){var n=q.getProjectionAnimationProgress()[e],r=D.target[e],o=r.min,i=r.max-o;return n.clearListeners(),n.set(o),n.set(o),n.onChange((function(t){return q.setProjectionTargetAxis(e,t,t+i)})),q.animateMotionValue(e,n,0,t)},stopLayoutAnimation:function(){Ot((function(e){return q.getProjectionAnimationProgress()[e].stop()}))},measureViewportBox:function(e){void 0===e&&(e=!0);var n,r,o=a(b,t);return e||(r=T,Yi((n=o).x,r,qi),Yi(n.y,r,Gi)),o},updateLayoutMeasurement:function(){var e;q.notifyBeforeLayoutMeasure(C.layout),C.isHydrated=!0,C.layout=q.measureViewportBox(),C.layoutCorrected=(e=C.layout,{x:he({},e.x),y:he({},e.y)}),q.notifyLayoutMeasure(C.layout,q.prevViewportBox||C.layout),at.update((function(){return q.rebaseProjectionTarget()}))},getProjectionAnimationProgress:function(){return _||(_={x:mo(0),y:mo(0)}),_},setProjectionTargetAxis:function(e,t,n){var r=D.target[e];r.min=t,r.max=n,A=!0,S.notifySetAxisTarget()},rebaseProjectionTarget:function(e,t){void 0===t&&(t=C.layout);var n=q.getProjectionAnimationProgress(),r=n.x,o=n.y,i=!D.isTargetLocked&&!r.isAnimating()&&!o.isAnimating();(e||i)&&Ot((function(e){var n=t[e],r=n.min,o=n.max;q.setProjectionTargetAxis(e,r,o)}))},notifyLayoutReady:function(e){q.notifyLayoutUpdate(C.layout,q.prevViewportBox||C.layout,e)},resetTransform:function(){return c(q,b,g)},withoutTransform:function(e){var t=D.isEnabled;t&&q.resetTransform(),h?h.withoutTransform(e):e(),t&&l(b,P)},updateLayoutProjection:function(){N()&&function(){var e=C.delta,t=C.treeScale,n=t.x,r=t.x,o=C.deltaTransform;(function(e,t,n,r){var o,i,a=e.delta,s=e.layout,u=e.layoutCorrected,c=e.treeScale,l=t.target;i=s,Hi((o=u).x,i.x),Hi(o.y,i.y),function(e,t,n){var r=n.length;if(r){t.x=t.y=1;for(var o=0;o<r;o++){var i=n[o].getLayoutState().delta;t.x*=i.x.scale,t.y*=i.y.scale,Xi(e,i)}}}(u,c,n),Dt(a,u,l,r)})(C,M,q.path,T),A&&q.notifyViewportBoxUpdate(M.target,e),A=!1;var i=Ei(e,t);i===o&&n===t.x&&r===t.y||q.scheduleRender(),C.deltaTransform=i}(),k.forEach(Ji)},pointTo:function(e){M=e.projection,R=e.getLatestValues(),null==w||w(),w=Qe(e.onSetAxisTarget(q.scheduleUpdateLayoutProjection),e.onLayoutAnimationComplete((function(){var e;q.isPresent?q.presence=Do.Present:null===(e=q.layoutSafeToRemove)||void 0===e||e.call(q)})))},isPresent:!0,presence:Do.Entering});return q}};function Ji(e){e.updateLayoutProjection()}var ea,ta=ve(["initial"],xo),na=ta.length,ra=new Set(["width","height","top","left","right","bottom","x","y"]),oa=function(e){return ra.has(e)},ia=function(e,t){e.set(t,!1),e.set(t)},aa=function(e){return e===Zt||e===fn};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(ea||(ea={}));var sa=function(e,t){return parseFloat(e.split(", ")[t])},ua=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var i=o.match(/^matrix3d\((.+)\)$/);if(i)return sa(i[1],t);var a=o.match(/^matrix\((.+)\)$/);return a?sa(a[1],e):0}},ca=new Set(["x","y","z"]),la=li.filter((function(e){return!ca.has(e)})),fa={width:function(e){var t=e.x;return t.max-t.min},height:function(e){var t=e.y;return t.max-t.min},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:ua(4,13),y:ua(5,14)};function da(e,t,n,r){return function(e){return Object.keys(e).some(oa)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=he({},t),r=he({},r);var o=Object.keys(t).filter(oa),i=[],a=!1,s=[];if(o.forEach((function(o){var u=e.getValue(o);if(e.hasValue(o)){var c,l=n[o],f=t[o],d=Rr(l);if(mr(f))for(var p=f.length,h=null===f[0]?1:0;h<p;h++)c?Rr(f[h]):(c=Rr(f[h]))===d||aa(d)&&aa(c);else c=Rr(f);if(d!==c)if(aa(d)&&aa(c)){var g=u.get();"string"==typeof g&&u.set(parseFloat(g)),"string"==typeof f?t[o]=parseFloat(f):Array.isArray(f)&&c===fn&&(t[o]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==c?void 0:c.transform)&&(0===l||0===f)?0===l?u.set(c.transform(l)):t[o]=d.transform(f):(a||(i=function(e){var t=[];return la.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],ia(u,f))}})),s.length){var u=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),i=getComputedStyle(o),a=i.display,s={top:i.top,left:i.left,bottom:i.bottom,right:i.right,transform:i.transform};"none"===a&&t.setStaticValue("display",e.display||"block"),t.syncRender();var u=t.measureViewportBox();return n.forEach((function(n){var o=t.getValue(n);ia(o,fa[n](r,s)),e[n]=fa[n](u,i)})),e}(t,e,s);return i.length&&i.forEach((function(t){var n=me(t,2),r=n[0],o=n[1];e.getValue(r).set(o)})),e.syncRender(),{target:u,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}var pa={treeType:"dom",readValueFromInstance:function(e,t){if(pi(t)){var n=Ar(t);return n&&n.default||0}var r,o=(r=e,window.getComputedStyle(r));return(Oi(t)?o.getPropertyValue(t):o[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Lt(e,t.transformPagePoint)},resetTransform:function(e,t,n){e.suspendHoverEvents();var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var o=n.transformValues;void 0===r&&(r=!0);var i=t.transition,a=t.transitionEnd,s=ge(t,["transition","transitionEnd"]),u=function(e,t,n){var r,o,i={};for(var a in e)i[a]=null!==(r=yo(a,t))&&void 0!==r?r:null===(o=n.getValue(a))||void 0===o?void 0:o.get();return i}(s,i||{},e);if(o&&(a&&(a=o(a)),s&&(s=o(s)),u&&(u=o(u))),r){!function(e,t,n){var r,o,i,a,s,u=Object.keys(t).filter((function(t){return!e.hasValue(t)})),c=u.length;if(c)for(var l=0;l<c;l++){var f=u[l],d=t[f],p=null;Array.isArray(d)&&(p=d[0]),null===p&&(p=null!==(o=null!==(r=n[f])&&void 0!==r?r:e.readValue(f))&&void 0!==o?o:t[f]),null!=p&&("string"==typeof p&&/^\-?\d*\.?\d+$/.test(p)?p=parseFloat(p):(s=p,!Cr.find(Mr(s))&&Sn.test(d)&&(p=Fr(f,d))),e.addValue(f,mo(p)),null!==(i=(a=n)[f])&&void 0!==i||(a[f]=p),e.setBaseTarget(f,p))}}(e,s,u);var c=function(e,t,n,r){var o=function(e,t,n){var r,o=ge(t,[]),i=e.getInstance();if(!(i instanceof HTMLElement))return{target:o,transitionEnd:n};for(var a in n&&(n=he({},n)),e.forEachValue((function(e){var t=e.get();if(ni(t)){var n=oi(t,i);n&&e.set(n)}})),o){var s=o[a];if(ni(s)){var u=oi(s,i);u&&(o[a]=u,n&&(null!==(r=n[a])&&void 0!==r||(n[a]=s)))}}return{target:o,transitionEnd:n}}(e,t,r);return da(e,t=o.target,n,r=o.transitionEnd)}(e,s,u,a);a=c.transitionEnd,s=c.target}return he({transition:i,transitionEnd:a},s)},scrapeMotionValuesFromProps:Ui,build:function(e,t,n,r,o,i,a){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),xi(t,n,r,o,i,a.transformTemplate)},render:function(e,t){var n=t.style,r=t.vars;for(var o in Object.assign(e.style,n),r)e.style.setProperty(o,r[o])}},ha=Zi(pa),ga=/([a-z])([A-Z])/g,ma=function(e){return e.replace(ga,"$1-$2").toLowerCase()},va=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox"]);function ya(e,t){for(var n in pa.render(e,t),t.attrs)e.setAttribute(va.has(n)?n:ma(n),t.attrs[n])}var ba=Zi(he(he({},pa),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return pi(t)?(null===(n=Ar(t))||void 0===n?void 0:n.default)||0:(t=va.has(t)?t:ma(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Bi,build:function(e,t,n,r,o,i,a){Fi(t,n,r,o,i,a.transformTemplate)},render:ya}));function wa(e,t,n,r){var o=e.scrapeMotionValuesFromProps,i=e.createRenderState,a=e.onMount,s={latestValues:_a(t,n,r,o),renderState:i()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var Ea=function(e){return function(t,n){var r=(0,ee.useContext)($o),o=(0,ee.useContext)(Jr);return n?wa(e,t,r,o):be((function(){return wa(e,t,r,o)}))}};function _a(e,t,n,r){var o,i,a,s={},u=!1===(null==n?void 0:n.initial),c=r(e);for(var l in c)s[l]=(o=c[l],i=void 0,a=void 0,a=o instanceof go?o.get():o,i=a,Boolean(i&&"object"==typeof i&&i.mix&&i.toValue)?a.toValue():a);var f=e.initial,d=e.animate,p=fo(e),h=po(e);t&&h&&!p&&!1!==e.inherit&&(null!=f||(f=t.initial),null!=d||(d=t.animate));var g=u||!1===f?d:f;return g&&"boolean"!=typeof g&&!ao(g)&&(Array.isArray(g)?g:[g]).forEach((function(t){var n=co(e,t);if(n){var r=n.transitionEnd,o=(n.transition,ge(n,["transitionEnd","transition"]));for(var i in o)s[i]=o[i];for(var i in r)s[i]=r[i]}})),s}var Oa={createVisualElement:function(e,t){return ba(t,{enableHardwareAcceleration:!1})},useVisualState:Ea({scrapeMotionValuesFromProps:Bi,createRenderState:Li,onMount:function(e,t,n){var r=n.renderState,o=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}"path"===t.tagName&&(r.totalPathLength=t.getTotalLength()),Fi(r,o,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),ya(t,r)}})},xa={createVisualElement:function(e,t){return ha(t,{enableHardwareAcceleration:!e})},useVisualState:Ea({scrapeMotionValuesFromProps:Ui,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function Ta(e){function t(t,n){var r=(void 0===n?{}:n).forwardMotionProps;return Jo(function(e,t,n){var r=ti(t)?Oa:xa;return he(he({},r),{defaultFeatures:e,useRender:Ni(t,n)})}(e,t,void 0!==r&&r))}function n(e){return t(e,{forwardMotionProps:!0})}var r=new Map;return new Proxy(t,{get:function(e,o){return"custom"===o?n:(r.has(o)||r.set(o,t(o)),r.get(o))}})}var Pa=Ta([Go,Co,Xr,Zr,io,Bo]);const ka={block:"UBQ_CircularProgress__block--VzCNj",circle:"UBQ_CircularProgress__circle--uXQTo"};var Sa;!function(e){e.Indeterminate="indeterminate",e.Determinate="determinate"}(Sa||(Sa={}));const Da=({variant:e=Sa.Indeterminate,max:t=100,value:n,className:r})=>{const o=(0,ee.useRef)(null),i=2*Math.PI*16,a=i/1.5,s=(t-(n||0))/t*i;return(0,K.jsx)("div",Object.assign({className:J()(ka.block,ka[e],r),ref:o},{children:(0,K.jsx)("svg",Object.assign({role:"progressbar",viewBox:"0 0 36 36"},{children:e===Sa.Indeterminate?(0,K.jsx)(Pa.circle,{className:ka.circle,cx:18,cy:18,r:16,strokeDasharray:`${a}, ${a}`,strokeDashoffset:"0",strokeLinecap:"round",strokeWidth:4,style:{originX:"50%",originY:"50%"},animate:{rotate:360,strokeDasharray:[`${a}, ${a}`,`${a}, ${1.92*a}`,`${a}, ${a}`],strokeDashoffset:[0,-1*a,-2*a]},transition:{repeat:1/0,duration:1.4,times:[0,.5,1],type:"tween",ease:"linear"}},void 0):(0,K.jsx)("circle",{className:ka.circle,cx:18,cy:18,r:16,strokeDasharray:i,strokeDashoffset:s,strokeLinecap:"round",strokeWidth:4},void 0)}),void 0)}),void 0)};Da.Variant=Sa;const Ma=Da,Ra=({children:e,asyncState:t,showCircularSpinner:n})=>{switch(t){case fe.Waiting:return n?(0,K.jsx)("div",Object.assign({className:"UBQ_AsyncResult__progress--V6yQx"},{children:(0,K.jsx)(Ma,{},void 0)}),void 0):null;case fe.Success:return(0,K.jsx)(K.Fragment,{children:"function"==typeof e?e():e},void 0);case fe.Error:default:return null}};var Ca=n(4124),Aa=n.n(Ca);const ja=e=>{const{focusTrapOptions:t={}}=e,n=document.querySelector(".ubq-public");return(0,K.jsx)(Aa(),Object.assign({},e,{focusTrapOptions:Object.assign(Object.assign({},t),{document:tl?null==n?void 0:n.shadowRoot:window.document,onActivate:()=>{document.dispatchEvent(new Event("ubq-focustrap-activate")),(null==t?void 0:t.onActivate)&&(null==t||t.onActivate())},onDeactivate:()=>{document.dispatchEvent(new Event("ubq-focustrap-deactivate")),(null==t?void 0:t.onDeactivate)&&(null==t||t.onDeactivate())}})}),void 0)};var Fa=0;function La(){var e=Fa;return Fa++,e}var Ia=function(e){var t=e.children,n=e.initial,r=e.isPresent,o=e.onExitComplete,i=e.custom,a=e.presenceAffectsLayout,s=be(Na),u=be(La),c=(0,ee.useMemo)((function(){return{id:u,initial:n,isPresent:r,custom:i,onExitComplete:function(e){s.set(e,!0);var t=!0;s.forEach((function(e){e||(t=!1)})),t&&(null==o||o())},register:function(e){return s.set(e,!1),function(){return s.delete(e)}}}}),a?void 0:[r]);return(0,ee.useMemo)((function(){s.forEach((function(e,t){return s.set(t,!1)}))}),[r]),(0,ee.useEffect)((function(){!r&&!s.size&&(null==o||o())}),[r]),(0,ee.createElement)(Jr.Provider,{value:c},t)};function Na(){return new Map}function Ua(e){return e.key||""}var Ba=function(e){var t=e.children,n=e.custom,r=e.initial,o=void 0===r||r,i=e.onExitComplete,a=e.exitBeforeEnter,s=e.presenceAffectsLayout,u=void 0===s||s,c=function(){var e=(0,ee.useRef)(!1),t=me((0,ee.useState)(0),2),n=t[0],r=t[1];return Wr((function(){return e.current=!0})),(0,ee.useCallback)((function(){!e.current&&r(n+1)}),[n])}(),l=(0,ee.useContext)(zo);Xo(l)&&(c=l.forceUpdate);var f=(0,ee.useRef)(!0),d=function(e){var t=[];return ee.Children.forEach(e,(function(e){(0,ee.isValidElement)(e)&&t.push(e)})),t}(t),p=(0,ee.useRef)(d),h=(0,ee.useRef)(new Map).current,g=(0,ee.useRef)(new Set).current;if(function(e,t){e.forEach((function(e){var n=Ua(e);t.set(n,e)}))}(d,h),f.current)return f.current=!1,(0,ee.createElement)(ee.Fragment,null,d.map((function(e){return(0,ee.createElement)(Ia,{key:Ua(e),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:u},e)})));for(var m=ve(d),v=p.current.map(Ua),y=d.map(Ua),b=v.length,w=0;w<b;w++){var E=v[w];-1===y.indexOf(E)?g.add(E):g.delete(E)}return a&&g.size&&(m=[]),g.forEach((function(e){if(-1===y.indexOf(e)){var t=h.get(e);if(t){var r=v.indexOf(e);m.splice(r,0,(0,ee.createElement)(Ia,{key:Ua(t),isPresent:!1,onExitComplete:function(){h.delete(e),g.delete(e);var t=p.current.findIndex((function(t){return t.key===e}));p.current.splice(t,1),g.size||(p.current=d,c(),i&&i())},custom:n,presenceAffectsLayout:u},t))}}})),m=m.map((function(e){var t=e.key;return g.has(t)?e:(0,ee.createElement)(Ia,{key:Ua(e),isPresent:!0,presenceAffectsLayout:u},e)})),p.current=m,(0,ee.createElement)(ee.Fragment,null,g.size?m:m.map((function(e){return(0,ee.cloneElement)(e)})))};function Ha(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function Va(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function za(e){var t=Va(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Qa(e){return e instanceof Va(e).Element||e instanceof Element}function Xa(e){return e instanceof Va(e).HTMLElement||e instanceof HTMLElement}function Wa(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Va(e).ShadowRoot||e instanceof ShadowRoot)}function qa(e){return e?(e.nodeName||"").toLowerCase():null}function Ga(e){return((Qa(e)?e.ownerDocument:e.document)||window.document).documentElement}function $a(e){return Ha(Ga(e)).left+za(e).scrollLeft}function Ya(e){return Va(e).getComputedStyle(e)}function Ka(e){var t=Ya(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Za(e,t,n){void 0===n&&(n=!1);var r,o,i=Ga(t),a=Ha(e),s=Xa(t),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(s||!s&&!n)&&(("body"!==qa(t)||Ka(i))&&(u=(r=t)!==Va(r)&&Xa(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:za(r)),Xa(t)?((c=Ha(t)).x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=$a(i))),{x:a.left+u.scrollLeft-c.x,y:a.top+u.scrollTop-c.y,width:a.width,height:a.height}}function Ja(e){var t=Ha(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function es(e){return"html"===qa(e)?e:e.assignedSlot||e.parentNode||(Wa(e)?e.host:null)||Ga(e)}function ts(e){return["html","body","#document"].indexOf(qa(e))>=0?e.ownerDocument.body:Xa(e)&&Ka(e)?e:ts(es(e))}function ns(e,t){var n;void 0===t&&(t=[]);var r=ts(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Va(r),a=o?[i].concat(i.visualViewport||[],Ka(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(ns(es(a)))}function rs(e){return["table","td","th"].indexOf(qa(e))>=0}function os(e){return Xa(e)&&"fixed"!==Ya(e).position?e.offsetParent:null}function is(e){for(var t=Va(e),n=os(e);n&&rs(n)&&"static"===Ya(n).position;)n=os(n);return n&&("html"===qa(n)||"body"===qa(n)&&"static"===Ya(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Xa(e)&&"fixed"===Ya(e).position)return null;for(var n=es(e);Xa(n)&&["html","body"].indexOf(qa(n))<0;){var r=Ya(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var as="top",ss="bottom",us="right",cs="left",ls="auto",fs=[as,ss,us,cs],ds="start",ps="end",hs="viewport",gs="popper",ms=fs.reduce((function(e,t){return e.concat([t+"-"+ds,t+"-"+ps])}),[]),vs=[].concat(fs,[ls]).reduce((function(e,t){return e.concat([t,t+"-"+ds,t+"-"+ps])}),[]),ys=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function bs(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var ws={placement:"bottom",modifiers:[],strategy:"absolute"};function Es(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function _s(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?ws:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},ws,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],c=!1,l={state:s,setOptions:function(n){f(),s.options=Object.assign({},i,s.options,n),s.scrollParents={reference:Qa(e)?ns(e):e.contextElement?ns(e.contextElement):[],popper:ns(t)};var o,a,c=function(e){var t=bs(e);return ys.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((o=[].concat(r,s.options.modifiers),a=o.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(a).map((function(e){return a[e]}))));return s.orderedModifiers=c.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:l,options:r});u.push(i||function(){})}})),l.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(Es(t,n)){s.rects={reference:Za(t,is(n),"fixed"===s.options.strategy),popper:Ja(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options,u=void 0===a?{}:a,f=o.name;"function"==typeof i&&(s=i({state:s,options:u,name:f,instance:l})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){l.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){f(),c=!0}};if(!Es(e,t))return l;function f(){u.forEach((function(e){return e()})),u=[]}return l.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var Os={passive:!0};const xs={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,u=Va(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,Os)})),s&&u.addEventListener("resize",n.update,Os),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Os)})),s&&u.removeEventListener("resize",n.update,Os)}},data:{}};function Ts(e){return e.split("-")[0]}function Ps(e){return e.split("-")[1]}function ks(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ss(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Ts(o):null,a=o?Ps(o):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(i){case as:t={x:s,y:n.y-r.height};break;case ss:t={x:s,y:n.y+n.height};break;case us:t={x:n.x+n.width,y:u};break;case cs:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var c=i?ks(i):null;if(null!=c){var l="y"===c?"height":"width";switch(a){case ds:t[c]=t[c]-(n[l]/2-r[l]/2);break;case ps:t[c]=t[c]+(n[l]/2-r[l]/2)}}return t}const Ds={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ss({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var Ms=Math.max,Rs=Math.min,Cs=Math.round,As={top:"auto",right:"auto",bottom:"auto",left:"auto"};function js(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.offsets,a=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,l=!0===c?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Cs(Cs(t*r)/r)||0,y:Cs(Cs(n*r)/r)||0}}(i):"function"==typeof c?c(i):i,f=l.x,d=void 0===f?0:f,p=l.y,h=void 0===p?0:p,g=i.hasOwnProperty("x"),m=i.hasOwnProperty("y"),v=cs,y=as,b=window;if(u){var w=is(n),E="clientHeight",_="clientWidth";w===Va(n)&&"static"!==Ya(w=Ga(n)).position&&(E="scrollHeight",_="scrollWidth"),w=w,o===as&&(y=ss,h-=w[E]-r.height,h*=s?1:-1),o===cs&&(v=us,d-=w[_]-r.width,d*=s?1:-1)}var O,x=Object.assign({position:a},u&&As);return s?Object.assign({},x,((O={})[y]=m?"0":"",O[v]=g?"0":"",O.transform=(b.devicePixelRatio||1)<2?"translate("+d+"px, "+h+"px)":"translate3d("+d+"px, "+h+"px, 0)",O)):Object.assign({},x,((t={})[y]=m?h+"px":"",t[v]=g?d+"px":"",t.transform="",t))}var Fs={left:"right",right:"left",bottom:"top",top:"bottom"};function Ls(e){return e.replace(/left|right|bottom|top/g,(function(e){return Fs[e]}))}var Is={start:"end",end:"start"};function Ns(e){return e.replace(/start|end/g,(function(e){return Is[e]}))}function Us(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Wa(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Bs(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Hs(e,t){return t===hs?Bs(function(e){var t=Va(e),n=Ga(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+$a(e),y:s}}(e)):Xa(t)?function(e){var t=Ha(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Bs(function(e){var t,n=Ga(e),r=za(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Ms(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Ms(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+$a(e),u=-r.scrollTop;return"rtl"===Ya(o||n).direction&&(s+=Ms(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:u}}(Ga(e)))}function Vs(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function zs(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Qs(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?"clippingParents":i,s=n.rootBoundary,u=void 0===s?hs:s,c=n.elementContext,l=void 0===c?gs:c,f=n.altBoundary,d=void 0!==f&&f,p=n.padding,h=void 0===p?0:p,g=Vs("number"!=typeof h?h:zs(h,fs)),m=l===gs?"reference":gs,v=e.elements.reference,y=e.rects.popper,b=e.elements[d?m:l],w=function(e,t,n){var r="clippingParents"===t?function(e){var t=ns(es(e)),n=["absolute","fixed"].indexOf(Ya(e).position)>=0&&Xa(e)?is(e):e;return Qa(n)?t.filter((function(e){return Qa(e)&&Us(e,n)&&"body"!==qa(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=Hs(e,n);return t.top=Ms(r.top,t.top),t.right=Rs(r.right,t.right),t.bottom=Rs(r.bottom,t.bottom),t.left=Ms(r.left,t.left),t}),Hs(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Qa(b)?b:b.contextElement||Ga(e.elements.popper),a,u),E=Ha(v),_=Ss({reference:E,element:y,strategy:"absolute",placement:o}),O=Bs(Object.assign({},y,_)),x=l===gs?O:E,T={top:w.top-x.top+g.top,bottom:x.bottom-w.bottom+g.bottom,left:w.left-x.left+g.left,right:x.right-w.right+g.right},P=e.modifiersData.offset;if(l===gs&&P){var k=P[o];Object.keys(T).forEach((function(e){var t=[us,ss].indexOf(e)>=0?1:-1,n=[as,ss].indexOf(e)>=0?"y":"x";T[e]+=k[n]*t}))}return T}function Xs(e,t,n){return Ms(e,Rs(t,n))}function Ws(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function qs(e){return[as,us,ss,cs].some((function(t){return e[t]>=0}))}var Gs=_s({defaultModifiers:[xs,Ds,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,u=void 0===s||s,c={placement:Ts(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,js(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,js(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Xa(o)&&qa(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Xa(r)&&qa(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=vs.reduce((function(e,n){return e[n]=function(e,t,n){var r=Ts(e),o=[cs,as].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[cs,us].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],u=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,c=n.padding,l=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,g=n.allowedAutoPlacements,m=t.options.placement,v=Ts(m),y=u||(v!==m&&h?function(e){if(Ts(e)===ls)return[];var t=Ls(e);return[Ns(e),t,Ns(t)]}(m):[Ls(m)]),b=[m].concat(y).reduce((function(e,n){return e.concat(Ts(n)===ls?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?vs:u,l=Ps(r),f=l?s?ms:ms.filter((function(e){return Ps(e)===l})):fs,d=f.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=Qs(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Ts(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:l,rootBoundary:f,padding:c,flipVariations:h,allowedAutoPlacements:g}):n)}),[]),w=t.rects.reference,E=t.rects.popper,_=new Map,O=!0,x=b[0],T=0;T<b.length;T++){var P=b[T],k=Ts(P),S=Ps(P)===ds,D=[as,ss].indexOf(k)>=0,M=D?"width":"height",R=Qs(t,{placement:P,boundary:l,rootBoundary:f,altBoundary:d,padding:c}),C=D?S?us:cs:S?ss:as;w[M]>E[M]&&(C=Ls(C));var A=Ls(C),j=[];if(i&&j.push(R[k]<=0),s&&j.push(R[C]<=0,R[A]<=0),j.every((function(e){return e}))){x=P,O=!1;break}_.set(P,j)}if(O)for(var F=function(e){var t=b.find((function(t){var n=_.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return x=t,"break"},L=h?3:1;L>0&&"break"!==F(L);L--);t.placement!==x&&(t.modifiersData[r]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,u=n.boundary,c=n.rootBoundary,l=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,g=void 0===h?0:h,m=Qs(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:l}),v=Ts(t.placement),y=Ps(t.placement),b=!y,w=ks(v),E="x"===w?"y":"x",_=t.modifiersData.popperOffsets,O=t.rects.reference,x=t.rects.popper,T="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,P={x:0,y:0};if(_){if(i||s){var k="y"===w?as:cs,S="y"===w?ss:us,D="y"===w?"height":"width",M=_[w],R=_[w]+m[k],C=_[w]-m[S],A=p?-x[D]/2:0,j=y===ds?O[D]:x[D],F=y===ds?-x[D]:-O[D],L=t.elements.arrow,I=p&&L?Ja(L):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=N[k],B=N[S],H=Xs(0,O[D],I[D]),V=b?O[D]/2-A-H-U-T:j-H-U-T,z=b?-O[D]/2+A+H+B+T:F+H+B+T,Q=t.elements.arrow&&is(t.elements.arrow),X=Q?"y"===w?Q.clientTop||0:Q.clientLeft||0:0,W=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0,q=_[w]+V-W-X,G=_[w]+z-W;if(i){var $=Xs(p?Rs(R,q):R,M,p?Ms(C,G):C);_[w]=$,P[w]=$-M}if(s){var Y="x"===w?as:cs,K="x"===w?ss:us,Z=_[E],J=Z+m[Y],ee=Z-m[K],te=Xs(p?Rs(J,q):J,Z,p?Ms(ee,G):ee);_[E]=te,P[E]=te-Z}}t.modifiersData[r]=P}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Ts(n.placement),u=ks(s),c=[cs,us].indexOf(s)>=0?"height":"width";if(i&&a){var l=function(e,t){return Vs("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:zs(e,fs))}(o.padding,n),f=Ja(i),d="y"===u?as:cs,p="y"===u?ss:us,h=n.rects.reference[c]+n.rects.reference[u]-a[u]-n.rects.popper[c],g=a[u]-n.rects.reference[u],m=is(i),v=m?"y"===u?m.clientHeight||0:m.clientWidth||0:0,y=h/2-g/2,b=l[d],w=v-f[c]-l[p],E=v/2-f[c]/2+y,_=Xs(b,E,w),O=u;n.modifiersData[r]=((t={})[O]=_,t.centerOffset=_-E,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Us(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Qs(t,{elementContext:"reference"}),s=Qs(t,{altBoundary:!0}),u=Ws(a,r),c=Ws(s,o,i),l=qs(u),f=qs(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}}]}),$s=n(4399),Ys=n.n($s),Ks=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},Zs="undefined"!=typeof window&&window.document&&window.document.createElement?ee.useLayoutEffect:ee.useEffect,Js=[];const eu={popperContainer:"UBQ_Popover__popperContainer--_vlvk",popover:"UBQ_Popover__popover--Clapx",popoverContent:"UBQ_Popover__popoverContent--CEV75"};let tu=0;const nu=()=>(tu+=1,`UBQ__popover-content-group-${tu}`);new WeakMap;const ru=(0,ee.createContext)((()=>(console.warn("Adding ClickOutside handler to dummy context value. Did you forget to install the ClickOutsideManager at the top of your app?"),()=>{})));function ou({onClickOutside:e,children:t}){const n=(0,ee.useRef)([]),r=(0,ee.useContext)(ru),o=(0,ee.useRef)(e);o.current=e;const i=(0,ee.useCallback)((e=>(n.current.push(e),()=>{const t=n.current.indexOf(e);t>=0&&n.current.splice(t,1)})),[]);return(0,ee.useEffect)((()=>r((e=>{var t;if(n.current.length>0){let t=!0;if(n.current.forEach((n=>{const r=e.clone();n(r),r.propagationStopped||(t=!1)})),t)return void e.stopPropagation()}null===(t=o.current)||void 0===t||t.call(o,e)}))),[]),(0,K.jsx)(ru.Provider,Object.assign({value:i},{children:t}),void 0)}const iu=(0,ee.createContext)({onClose:()=>{throw new Error("No Context for Popover provided")},isOpen:!1}),au=({children:e,trigger:t,hideArrow:n,disableFocusTrap:r,placement:o,popperContainerClassname:a,popoverContentClassname:s,popoverArrowClassname:u,popoverContainerClassname:c,onClose:l,onOpen:f,defaultOpen:d=!1,openDelay:p,closeOnWheel:h=!1,keyShortcutTrigger:g,keyShortcutTriggerOptions:m={},popoverOffset:v=0})=>{const[y]=(0,ee.useState)(nu),[b,w]=(0,ee.useState)(d),E=(0,ee.useRef)(),_=e=>{const t=()=>w((t=>{const n="function"==typeof e?e(t):e;return l&&t&&!n&&l(),f&&!t&&n&&f({forceUpdate:B}),n}));if(p&&!b)return window.clearTimeout(E.current),void(E.current=window.setTimeout(t,p));t()},O=()=>_(!1),{preventDefault:x}=m,T=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(m,["preventDefault"]);hu(g,(()=>(_((e=>!e)),!x)),T),(0,ee.useEffect)((()=>()=>{window.clearTimeout(E.current)}),[]);const[P,k]=(0,ee.useState)(null),[S,D]=(0,ee.useState)(null),[M,R]=(0,ee.useState)(null),C=(0,ee.useRef)(null),A=(0,ee.useRef)(null),j=!r&&"click"===t&&b;hu(["esc"],j?O:null,{elementRef:A});const{scale:F}=(0,ee.useContext)(le.Context),[L,I]=(0,ee.useState)(parseInt(i("--ubq-scale-base",{fallback:"4px"}),10));(0,ee.useEffect)((()=>{I((()=>parseInt(i("--ubq-scale-base",{fallback:"4px"}),10)))}),[F]);const{styles:N,attributes:U,forceUpdate:B}=function(e,t,n){void 0===n&&(n={});var r=ee.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||Js},i=ee.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=i[0],s=i[1],u=ee.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);s({styles:Ks(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:Ks(n.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),c=ee.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[u,{name:"applyStyles",enabled:!1}])};return Ys()(r.current,e)?r.current||e:(r.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,u]),l=ee.useRef();return Zs((function(){l.current&&l.current.setOptions(c)}),[c]),Zs((function(){if(null!=e&&null!=t){var r=(n.createPopper||Gs)(e,t,c);return l.current=r,function(){r.destroy(),l.current=null}}}),[e,t,n.createPopper]),{state:l.current?l.current.state:null,styles:a.styles,attributes:a.attributes,update:l.current?l.current.update:null,forceUpdate:l.current?l.current.forceUpdate:null}}(P,S,{placement:o,modifiers:[{name:"preventOverflow",options:{padding:8}},{name:"offset",options:{offset:[0,L+v]}},{name:"arrow",options:{element:M,padding:16}},{name:"flip",options:{fallbackPlacements:["bottom-end","bottom-start","top","top-end","top-start","left","left-end","left-start","right","right-end","right-start"]}}]}),H=e[0],V=e[1];(0,ee.useEffect)((()=>{const e=e=>{const{target:t}=e;t instanceof HTMLElement&&A.current&&!A.current.contains(t)&&b&&_(!1)};return h&&document.addEventListener("wheel",e),()=>{document.removeEventListener("wheel",e)}}),[A.current,b]),(0,ee.useEffect)((()=>{const e=e=>{e.stopPropagation()};return null==S||S.addEventListener("wheel",e),()=>{null==S||S.removeEventListener("wheel",e)}}),[S]);const z={isOpen:b,onClose:O},Q=(e=>"click"===e?"dialog":"hover"===e?"tooltip":void 0)(t),X=(e={})=>Object.assign(Object.assign({},((e,t,n)=>{const r={"aria-expanded":t};return"dialog"===e&&(r["aria-haspopup"]=!0,r["aria-controls"]=n),"tooltip"===e&&(r["aria-describedby"]=n),r})(Q,b,y)),{onClick:n=>{"click"===t?_((e=>!e)):e.onClick&&e.onClick(n)},onMouseEnter:n=>{"hover"===t?_(!0):e.onMouseOver&&e.onMouseOver(n)},onMouseLeave:n=>{"hover"===t?_(!1):e.onMouseOut&&e.onMouseOut(n)},onFocus:n=>{"hover"===t&&_(!0),e.onFocus&&e.onFocus(n)},onBlur:n=>{"hover"===t&&_(!1),e.onBlur&&e.onBlur(n)},ref:e=>{C.current=e,k(e)}});return(0,K.jsxs)(iu.Provider,Object.assign({value:z},{children:["function"==typeof H?H({popoverContextProps:z,referenceProps:X()}):ee.cloneElement(H,Object.assign(Object.assign({},H.props),X(H.props))),(0,K.jsx)(sc,{children:(0,K.jsx)("div",Object.assign({ref:e=>{A.current=e,D(e)},style:N.popper},U.popper,{className:J()(eu.popperContainer,a)},{children:(0,K.jsx)(Ba,{children:b&&(0,K.jsx)(ou,Object.assign({onClickOutside:e=>{b&&e.isOutside(A.current,C.current)&&_(!1)}},{children:(0,K.jsxs)(Pa.div,Object.assign({transition:{ease:"easeInOut",duration:.2,times:[0,.01,1]},variants:{exit:{opacity:[1,1,0],width:["100%","100%","100%"]},enter:{opacity:[0,0,1],width:["0%","100%","100%"]}},initial:"exit",animate:"enter",exit:"exit",className:J()(eu.popover,c)},{children:[(0,K.jsx)("div",Object.assign({ref:R,style:N.arrow},U.arrow,{className:J()(eu.popoverArrow,u,{[eu.hidePopoverArrow]:n})}),void 0),(0,K.jsx)(ja,Object.assign({active:j,focusTrapOptions:{preventScroll:!0,escapeDeactivates:!1,clickOutsideDeactivates:!0}},{children:(0,K.jsx)("div",Object.assign({id:y,className:J()(eu.popoverContent,s),role:Q,"aria-hidden":!b},{children:"function"==typeof V?V(z):V}),void 0)}),void 0)]}),void 0)}),void 0)},void 0)}),void 0)},void 0)]}),void 0)};au.defaultProps={trigger:"click",hideArrow:!1};const su=au;var uu;(0,ee.forwardRef)((({children:e,color:t,onClick:n,name:r,"aria-label":o,className:i,isDisabled:a=!1},s)=>(0,K.jsx)("button",Object.assign({ref:s,name:r,type:"button",className:J()("UBQ_ColorField__block--G66ae",i),style:{background:t},onClick:n,"aria-label":o,disabled:a},{children:e}),void 0))).displayName="uikit/ColorField",function(e){e.Default="default",e.Minimal="minimal"}(uu||(uu={}));const cu=ee.forwardRef(((e,t)=>{var{className:n}=e,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className"]);return(0,K.jsx)("input",Object.assign({},r,{className:J()("UBQ_BaseInput__block--XZoBA",n),ref:t}),void 0)}));cu.displayName="uikit/BaseInput";const lu=cu;ee.forwardRef(((e,t)=>{var{value:n,onChange:r,onRelease:o,isDisabled:i,className:a,innerLabel:s}=e,u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["value","onChange","onRelease","isDisabled","className","innerLabel"]);return(0,K.jsxs)("div",Object.assign({className:J()("UBQ_TextInput__block--_Dg1I",{"UBQ_TextInput__withInnerLabel--H9uRe":!!s})},{children:[(0,K.jsx)(lu,Object.assign({ref:t,type:"text",value:n,onChange:e=>{r&&r(e.currentTarget.value)},onBlur:e=>{o&&o(e.currentTarget.value)},disabled:i,className:J()("UBQ_TextInput__input--XYFt6",a)},u),void 0),s&&(0,K.jsx)("span",Object.assign({className:"UBQ_TextInput__innerLabel--_0_hE"},{children:s}),void 0)]}),void 0)})).displayName="uikit/TextInput",n(8624);var fu=n(5162),du=n.n(fu);n(8143);const pu=e=>null!=e?e:()=>{},hu=(e,t,n={})=>{const r=(0,ee.useRef)(pu(t));(0,ee.useEffect)((()=>{r.current=pu(t)}),[t]),(0,ee.useEffect)((()=>{const{elementRef:t,action:o}=n,i=null!=(null==t?void 0:t.current)?du()(t.current):du();return e&&(n.global&&"bindGlobal"in i?i.bindGlobal(e,r.current,o):i.bind(e,r.current,o)),()=>{e&&i.unbind(e)}}),[e])};n(1269);const gu={block:"UBQ_NumberInput__block--fQz7f",input:"UBQ_NumberInput__input--iE8F2",overlay:"UBQ_NumberInput__overlay--Mlxer",inputUnit:"UBQ_NumberInput__inputUnit--Oo6Rl",withButtonSpace:"UBQ_NumberInput__withButtonSpace--Xo18T",overlayUnit:"UBQ_NumberInput__overlayUnit--YYYKE",overlayValue:"UBQ_NumberInput__overlayValue--sIO6R",disabled:"UBQ_NumberInput__disabled--is0sF"},mu={block:"UBQ_Tooltip__block--Vh2bH",warning:"UBQ_Tooltip__warning--xi8mV",error:"UBQ_Tooltip__error--xgm91",content:"UBQ_Tooltip__content--uh7eu"};var vu,yu=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};!function(e){e.Regular="regular",e.Warning="warning",e.Error="error"}(vu||(vu={}));const bu=e=>{var{children:t,showTooltip:n=!1,label:r}=e,o=yu(e,["children","showTooltip","label"]);return n?(0,K.jsx)(wu,Object.assign({label:r},o,{children:t}),void 0):(0,K.jsx)(K.Fragment,{children:t},void 0)},wu=e=>{var{children:t,placement:n,label:r,variant:o=vu.Regular}=e,i=yu(e,["children","placement","label","variant"]);return(0,K.jsxs)(su,Object.assign({},i,{trigger:"hover",disableFocusTrap:!0,placement:n,openDelay:1200,popoverContentClassname:mu.content,popoverContainerClassname:J()(mu.block,mu[o])},{children:[t,(0,K.jsx)("span",{children:r},void 0)]}),void 0)};wu.defaultProps={placement:"bottom"};const Eu=wu;function _u(e,t){return void 0===e||void 0===t?e:function(e,t){if(0===t)return e;const n=Math.abs(e%t),r=Math.abs(t)-n,o=r<n?r:-n;return e+Math.sign(e)*o}(parseFloat(e.toString()),parseFloat(t.toString()))}const Ou=(e,t)=>null==e?"":(+e.toFixed(t)).toString();var xu;function Tu(){return(Tu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}(0,ee.forwardRef)(((e,t)=>{var n,{value:r,onChange:o,onRelease:i,step:a=1,maxFractionDigits:s=1,stepFromZero:u=!0,isDisabled:c,className:l,tooltipLabel:f,unitLabel:d,unitLabelWithButtonSpace:p=!1,formatLabel:h,min:g,max:m,inlineIcon:v}=e,y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["value","onChange","onRelease","step","maxFractionDigits","stepFromZero","isDisabled","className","tooltipLabel","unitLabel","unitLabelWithButtonSpace","formatLabel","min","max","inlineIcon"]);const b=(0,ee.useRef)(!1),w=(0,ee.useRef)(parseFloat(Ou(r,s))),[E,_]=(0,ee.useState)(Ou(r,s)),O=e=>{const t=Ou(e,s);_((e=>e!==t?t:e))};(0,ee.useEffect)((()=>{b.current||O(r)}),[r]),(0,ee.useEffect)((()=>{E&&(w.current=parseFloat(E))}),[E]);const x=Object.assign(Object.assign({ref:t,type:"number",step:a,value:E,onChange:e=>{(e=>{if(o)if(e){_(e);const t=parseFloat(e);o(t)}else _(""),o(w.current)})(e.currentTarget.value)},disabled:c,min:u?_u(g,a):g,max:m},y),{onFocus:e=>{b.current=!0,y.onFocus&&y.onFocus(e)},onBlur:e=>{b.current=!1,y.onBlur&&y.onBlur(e),(e=>{if(e){const t=((e,t)=>{const n="string"==typeof t.min?parseInt(t.min,10):t.min,r="string"==typeof t.max?parseInt(t.max,10):t.max;let o=e;return void 0!==n&&(o=Math.max(n,o)),void 0!==r&&(o=Math.min(r,o)),o})(parseFloat(e),{min:g,max:m});i&&i(t),O(r)}else _(`${w.current}`),i&&i(w.current)})(e.currentTarget.value)}}),T={"--ubq-NumberInput-Internal-unitLabel-length":null!==(n=`${null==d?void 0:d.length}ch`)&&void 0!==n?n:0},P=(0,K.jsxs)("div",Object.assign({className:J()(gu.block,{[gu.disabled]:c,[gu.withInnerLabel]:!!d,[gu.withInnerLabelIncludingButton]:p}),style:T},{children:[(0,K.jsx)(lu,Object.assign({},x,{className:J()(gu.input,l,{[gu.withButtonSpace]:p})}),void 0),d&&(0,K.jsx)("span",Object.assign({className:J()(gu.inputUnit,{[gu.withButtonSpace]:p})},{children:d}),void 0),(0,K.jsxs)("span",Object.assign({className:J()(gu.overlay),"aria-hidden":!0},{children:[(0,K.jsx)("span",Object.assign({className:gu.overlayValue},{children:E}),void 0),(0,K.jsx)("span",Object.assign({className:J()(gu.overlayUnit,{[gu.withButtonSpace]:p})},{children:d}),void 0)]}),void 0)]}),void 0);return f?(0,K.jsx)(Eu,Object.assign({label:f},{children:P}),void 0):P}));const Pu=function(e){return ee.createElement("svg",Tu({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},e),xu||(xu=ee.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.129 11.164a5 5 0 017.036-7.036l-7.036 7.036zm.707.707a5 5 0 007.036-7.036l-7.036 7.036zM2 8a6 6 0 1112 0A6 6 0 012 8z",fill:"currentColor",fillOpacity:.9})))},ku={block:"UBQ_Select__block--_KE0L",optionsContainer:"UBQ_Select__optionsContainer--IZ__r",empty:"UBQ_Select__empty--GUSnm"};var Su=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Du=e=>{var{children:t}=e,n=Su(e,["children"]);return(0,K.jsx)(su,Object.assign({},n,{children:t}),void 0)};Du.Options=e=>{var{children:t}=e,n=Su(e,["children"]);const{onClose:r}=(0,ee.useContext)(iu);return(0,K.jsx)(Cc.Container,Object.assign({},n,{onClose:r,className:ku.block},{children:t}),void 0)},Du.Option=e=>{var{children:t,className:n}=e,r=Su(e,["children","className"]);return(0,K.jsx)(Cc.Option,Object.assign({},r,{className:J()(ku.selectOption,n)},{children:t}),void 0)},Du.Async=e=>{var{children:t,fetchValues:n}=e,r=Su(e,["children","fetchValues"]);const[o,i]=(0,ee.useState)([]),[a,s]=(0,ee.useState)(fe.Waiting),[u,c]=t;return(0,K.jsx)(su,Object.assign({},r,{disableFocusTrap:a!==fe.Success||0===o.length,onOpen:({forceUpdate:e})=>{s(fe.Waiting),n().then((t=>{i(t),s(fe.Success),null==e||e()})).catch((()=>{s(fe.Error)}))}},{children:[u,(0,K.jsx)("div",Object.assign({className:ku.optionsContainer},{children:(0,K.jsx)(Ra,Object.assign({asyncState:a,showCircularSpinner:!0},{children:o.length>0?c({values:o}):(0,K.jsx)("div",Object.assign({className:ku.empty},{children:(0,K.jsx)(Pu,{},void 0)}),void 0)}),void 0)}),"async-select")]}),void 0)};var Mu;!function(e){e.Indeterminate="indeterminate",e.Determinate="determinate"}(Mu||(Mu={}));var Ru,Cu,Au;function ju(){return(ju=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const Fu=function(e){return ee.createElement("svg",ju({width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},e),Ru||(Ru=ee.createElement("path",{opacity:.5,d:"M13.376 5h13.248L36 14.376v13.248L26.624 37H13.376L4 27.624V14.376L13.376 5z",fill:"#DC608E"})),Cu||(Cu=ee.createElement("path",{d:"M13.376 5h13.248L36 14.376v13.248L26.624 37H13.376L4 27.624V14.376L13.376 5z",stroke:"#DC608E",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Au||(Au=ee.createElement("path",{d:"M20 15v6.667M20 28.333h.015",stroke:"#DC608E",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})))};var Lu,Iu,Nu;function Uu(){return(Uu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const Bu=function(e){return ee.createElement("svg",Uu({width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},e),Lu||(Lu=ee.createElement("path",{opacity:.5,d:"M17.15 6.433L3.033 30a3.333 3.333 0 002.85 5h28.234a3.334 3.334 0 002.85-5L22.85 6.433a3.333 3.333 0 00-5.7 0z",fill:"#FB3"})),Iu||(Iu=ee.createElement("path",{d:"M17.15 6.433L3.033 30a3.333 3.333 0 002.85 5h28.234a3.333 3.333 0 002.85-5L22.85 6.433a3.333 3.333 0 00-5.7 0v0z",stroke:"#FB3",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Nu||(Nu=ee.createElement("path",{d:"M20 15v6.667M20 28.333h.015",stroke:"#FB3",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})))};var Hu,Vu,zu;function Qu(){return(Qu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const Xu=function(e){return ee.createElement("svg",Qu({width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},e),Hu||(Hu=ee.createElement("path",{opacity:.5,d:"M20 37c9.389 0 17-7.611 17-17S29.389 3 20 3 3 10.611 3 20s7.611 17 17 17z",fill:"currentColor",fillOpacity:.9})),Vu||(Vu=ee.createElement("path",{d:"M20 37c9.389 0 17-7.611 17-17S29.389 3 20 3 3 10.611 3 20s7.611 17 17 17z",stroke:"currentColor",strokeOpacity:.9,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),zu||(zu=ee.createElement("path",{d:"M20 26.667V20M20 13.333h.017",stroke:"currentColor",strokeOpacity:.9,strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})))};var Wu,qu,Gu;function $u(){return($u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const Yu=function(e){return ee.createElement("svg",$u({width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},e),Wu||(Wu=ee.createElement("path",{opacity:.5,d:"M20 37c9.389 0 17-7.611 17-17S29.389 3 20 3 3 10.611 3 20s7.611 17 17 17z",fill:"#09B48B"})),qu||(qu=ee.createElement("path",{d:"M13 22.4l4.667 3.6L27 14",stroke:"#09B48B",strokeWidth:4,strokeLinecap:"round"})),Gu||(Gu=ee.createElement("path",{d:"M20 37c9.389 0 17-7.611 17-17S29.389 3 20 3 3 10.611 3 20s7.611 17 17 17z",stroke:"#09B48B",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},Ku={block:"UBQ_Dialog__block--axLKe",dialog:"UBQ_Dialog__dialog--y2IOC",footer:"UBQ_Dialog__footer--eyPW7",content:"UBQ_Dialog__content--vAeMB",withIcon:"UBQ_Dialog__withIcon--A8Zm3",icon:"UBQ_Dialog__icon--X6vh1",info:"UBQ_Dialog__info--StqpS",success:"UBQ_Dialog__success--__INl",warning:"UBQ_Dialog__warning--C6CmU",error:"UBQ_Dialog__error--VsvUC"};var Zu;!function(e){e.Regular="regular",e.Info="info",e.Success="success",e.Warning="warning",e.Error="error"}(Zu||(Zu={}));const Ju=({children:e})=>(0,K.jsx)("div",Object.assign({className:J()(Ku.content)},{children:e}),void 0),ec=({variant:e})=>{let t;switch(e){case Zu.Info:t=(0,K.jsx)(Xu,{},void 0);break;case Zu.Success:t=(0,K.jsx)(Yu,{},void 0);break;case Zu.Warning:t=(0,K.jsx)(Bu,{},void 0);break;case Zu.Error:t=(0,K.jsx)(Fu,{},void 0);break;default:return null}return(0,K.jsx)("div",Object.assign({className:Ku.icon},{children:t}),void 0)},tc=({children:e,show:t,"data-cy":n,onClose:r,variant:o=Zu.Regular,"aria-label":i,disableCloseOnClickOutside:a=!1,footer:s,className:u})=>{const c=(0,ee.useRef)(null);return hu(["esc"],null!=r?r:null,{elementRef:c}),(0,K.jsx)(Ba,{children:t&&(0,K.jsx)(ou,Object.assign({onClickOutside:e=>{e.isOutside(c.current)&&!a?null==r||r():e.stopPropagation()}},{children:(0,K.jsx)(Pa.div,Object.assign({transition:{type:"spring",duration:.3},variants:{exit:{opacity:0},enter:{opacity:1}},initial:"exit",animate:"enter",exit:"exit",className:J()(Ku.block),"data-cy":n,onClick:e=>{e.stopPropagation()}},{children:(0,K.jsx)(ja,Object.assign({focusTrapOptions:{escapeDeactivates:!1,fallbackFocus:`.${Ku.dialog}`,allowOutsideClick:!0}},{children:(0,K.jsxs)("div",Object.assign({ref:c,className:J()(Ku.dialog,Ku[o],u),role:o!==Zu.Regular?"alertdialog":"dialog","aria-modal":"true","aria-label":i},{children:[o===Zu.Regular?(0,K.jsx)(Ju,{children:e},void 0):(0,K.jsxs)("div",Object.assign({className:Ku.withIcon},{children:[(0,K.jsx)(ec,{variant:o},void 0),(0,K.jsx)(Ju,{children:e},void 0)]}),void 0),s?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(nc,{},void 0),s]},void 0):null]}),void 0)}),void 0)}),void 0)}),void 0)},void 0)};tc.Variant=Zu,tc.Footer=({children:e})=>(0,K.jsx)("footer",Object.assign({className:Ku.footer},{children:e}),void 0);const nc=({className:e})=>(0,K.jsx)("hr",{className:J()("UBQ_Separator__block--_gjia",e)},void 0);var rc=n(9558);const oc=ee.createContext({});var ic;!function(e){e.BodyContainer="bodyContainer",e.EditorContainer="editorContainer"}(ic||(ic={}));const ac=({children:e})=>{const{containerRef:t}=(0,ee.useContext)(oc);return rc.createPortal(e,(null==t?void 0:t.current)||document.body)};ac.Container=({children:e,containerType:t=ic.EditorContainer,editorContainerElement:n})=>{const r=(0,ee.useRef)(((e,t)=>"editorContainer"===e&&t?t:null)(t,n));return(0,K.jsxs)(oc.Provider,Object.assign({value:{containerRef:r}},{children:[e,t===ic.BodyContainer&&rc.createPortal((0,K.jsx)("div",{ref:r},void 0),document.body),t===ic.EditorContainer&&rc.createPortal((0,K.jsx)("div",{ref:r},void 0),n||document.body)]}),void 0)};const sc=ac,uc={block:"UBQ_Card__block--f5zH0",tallHeight:"UBQ_Card__tallHeight--MlIoJ",shortHeight:"UBQ_Card__shortHeight--Co_oE",extraShortHeight:"UBQ_Card__extraShortHeight--_kqAj",autoHeight:"UBQ_Card__autoHeight--V94yi",doublePadding:"UBQ_Card__doublePadding--WaOuH",smallPadding:"UBQ_Card__smallPadding--UHZM5",noPadding:"UBQ_Card__noPadding--NMBeo",backgroundFill_none:"UBQ_Card__backgroundFill_none--_gIo5",backgroundFill_solid:"UBQ_Card__backgroundFill_solid--_vrUY",label:"UBQ_Card__label--D4TSV",info:"UBQ_Card__info--QOb9U",withBackgroundImage:"UBQ_Card__withBackgroundImage--xJiL_",backgroundImageCover:"UBQ_Card__backgroundImageCover--u8eou",backgroundImageContain:"UBQ_Card__backgroundImageContain--hDRRX",content:"UBQ_Card__content--Xpk5o"};var cc,lc;!function(e){e.Default="defaultHeight",e.Tall="tallHeight",e.Short="shortHeight",e.ExtraShort="extraShortHeight",e.Auto="autoHeight"}(cc||(cc={})),function(e){e.Default="defaultPadding",e.Small="smallPadding",e.Double="doublePadding",e.None="noPadding"}(lc||(lc={}));const fc=e=>{var{children:t,isActive:n=!1,isDisabled:r=!1,backgroundImage:o,backgroundType:i="cover",backgroundFill:a="solid","aria-label":s,showTooltip:u=!1,height:c=cc.Default,padding:l=lc.Default,style:f,className:d,"data-cy":p}=e,h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","isActive","isDisabled","backgroundImage","backgroundType","backgroundFill","aria-label","showTooltip","height","padding","style","className","data-cy"]);return(0,K.jsx)(bu,Object.assign({showTooltip:u&&!!s,label:null!=s?s:""},{children:(0,K.jsx)("button",Object.assign({type:"button",className:J()(uc.block,uc[c],uc[l],uc[`backgroundFill_${a}`],d,{[uc.withBackgroundImage]:o,[uc.backgroundImageContain]:"contain"===i,[uc.backgroundImageCover]:"cover"===i}),style:o?Object.assign({backgroundImage:`url(${o})`},f):f||{},disabled:r,"data-active":n,"aria-label":s,"data-cy":p||h.name},h,{children:t}),void 0)}),void 0)};fc.Content=({children:e})=>(0,K.jsx)("span",Object.assign({className:uc.content},{children:e}),void 0),fc.Label=({children:e})=>(0,K.jsx)("span",Object.assign({className:uc.label},{children:e}),void 0),fc.Info=({children:e})=>(0,K.jsx)("span",Object.assign({className:uc.info},{children:e}),void 0),fc.Height=cc,fc.Padding=lc;const dc=fc;(e=>{var{children:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children"]);return(0,K.jsx)(dc,Object.assign({},n,{className:"UBQ_BannerCard__block--G92HO"},{children:t}),void 0)}).Label=dc.Label;var pc=n(4132),hc=n.n(pc),gc=mc()?ee.useLayoutEffect:ee.useEffect;function mc(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function vc(){}function yc(){return(yc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function bc(e){var t=e.context,n=e.children,r=e.items,o=e.set,i=(0,ee.useCallback)((function(e){var t=e.element,n=e.index,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["element","index"]);t&&o((function(e){var o;if(null!=n)o=[].concat(e,[yc({},r,{element:t,index:n})]);else if(0===e.length)o=[].concat(e,[yc({},r,{element:t,index:0})]);else if(e.find((function(e){return e.element===t})))o=e;else{var i=e.findIndex((function(e){return!(!e.element||!t)&&Boolean(e.element.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)})),a=yc({},r,{element:t,index:i});o=-1===i?[].concat(e,[a]):[].concat(e.slice(0,i),[a],e.slice(i))}return o.map((function(e,t){return yc({},e,{index:t})}))}))}),[]),a=(0,ee.useCallback)((function(e){e&&o((function(t){return t.filter((function(t){return e!==t.element}))}))}),[]);return(0,ee.createElement)(t.Provider,{value:(0,ee.useMemo)((function(){return{descendants:r,registerDescendant:i,unregisterDescendant:a}}),[r,i,a])},n)}hc(),"undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math&&self;var wc=n(8318),Ec=n.n(wc);let _c=0;const Oc=()=>(_c+=1,`UBQ__select-option-${_c}`),xc=(e,t)=>`${t}-${e}`,Tc={options:"UBQ_ListBox__options--cprBC",option:"UBQ_ListBox__option--R1QCr",loading:"UBQ_ListBox__loading--zaEb8",loadingAnimation:"UBQ_ListBox__loadingAnimation--ASBOj"};var Pc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const kc=(void 0===Mc&&(Mc={}),Sc=yc({descendants:[],registerDescendant:vc,unregisterDescendant:vc},Mc),(Dc=(0,ee.createContext)(Sc)).displayName="DescendantContext",Dc);var Sc,Dc,Mc;const Rc=(0,ee.createContext)({value:"",select:()=>{throw new Error("No Context for ListBox provided")},activeIndex:-1,setActiveIndex:()=>{throw new Error("No Context for ListBox provided")},idPrefix:"",scrollTo:()=>{throw new Error("No Context for scrollTo provided")}}),Cc={Container:e=>{const{value:t,onClose:n,onChange:r,children:o,className:i,"data-ubq-id":a}=e,s=Pc(e,["value","onClose","onChange","children","className","data-ubq-id"]),[u,c]=(0,ee.useState)([]),[l,f]=(0,ee.useState)(-1),d=(0,ee.useRef)(null),p=(e,t)=>{r(e),f(t),n&&n()};(0,ee.useEffect)((()=>{const e=u.findIndex((e=>"object"==typeof t?Ec()(e.value,t):e.value===t));e!==l&&f(e)}),[t]);const h=(e,t=!1)=>{var n;if(d.current){const r=d.current,o=null===(n=u[e])||void 0===n?void 0:n.element;if(o&&d.current){const e=("static"!==getComputedStyle(r).position?o.offsetTop:o.offsetTop-r.offsetTop)-r.clientHeight/2+o.offsetHeight;d.current.scrollTo?d.current.scrollTo({behavior:t?"smooth":"auto",top:Math.max(e,0)}):d.current.scrollIntoView()}}};hu(["down"],(()=>(f((e=>{const t=Math.min(e+1,u.length-1);return e!==t&&h(t,!0),t})),!1)),{elementRef:d}),hu(["up"],(()=>(f((e=>{const t=Math.max(e-1,0);return e!==t&&h(t,!0),t})),!1)),{elementRef:d}),hu(["tab","shift+tab"],(()=>{n&&n()}),{elementRef:d}),hu(["space","enter"],(()=>(p(u[l].value,l),!1)),{elementRef:d});const g=(0,ee.useMemo)(Oc,[]);return(0,K.jsx)(bc,Object.assign({context:kc,items:u,set:c},{children:(0,K.jsx)(Rc.Provider,Object.assign({value:{value:t,select:p,activeIndex:l,setActiveIndex:f,idPrefix:g,scrollTo:h}},{children:(0,K.jsx)("ul",Object.assign({ref:d,role:"listbox",tabIndex:0,className:J()(Tc.options,i),"data-ubq-id":a,"aria-activedescendant":l>-1?xc(l,g):void 0},s,{children:o}),void 0)}),void 0)}),void 0)},Option:e=>{var{children:t,className:n,value:r,"data-value":o,isLoading:i}=e,a=Pc(e,["children","className","value","data-value","isLoading"]);const s=(0,ee.useRef)(null),{activeIndex:u,setActiveIndex:c,value:l,select:f,idPrefix:d,scrollTo:p}=(0,ee.useContext)(Rc),h=function(e,t,n){var r,o,i,a=(r=(0,ee.useState)(Object.create(null))[1],(0,ee.useCallback)((function(){r(Object.create(null))}),[])),s=(0,ee.useContext)(t),u=s.registerDescendant,c=s.unregisterDescendant,l=s.descendants,f=null!=n?n:l.findIndex((function(t){return t.element===e.element})),d=(o=l,i=(0,ee.useRef)(null),(0,ee.useEffect)((function(){i.current=o}),[o]),i.current),p=l.some((function(e,t){var n;return e.element!==(null==d||null===(n=d[t])||void 0===n?void 0:n.element)}));return gc((function(){return e.element||a(),u(yc({},e,{index:f})),function(){return c(e.element)}}),[a,f,u,p,c].concat(Object.values(e))),f}({element:s.current,value:r},kc),g=xc(h,d),m=u===h,v=l===r;(0,ee.useEffect)((()=>{v&&c((e=>-1===e?(p(h),h):e))}),[h]);const y=()=>{f(r,h)};return(0,K.jsx)("li",Object.assign({id:g,ref:s,role:"option","aria-selected":v,"data-selected":v,"data-active":m,"data-value":o,onClick:y,onTouchStart:y,className:J()(Tc.option,n,{[Tc.loading]:i,[Tc.selected]:v,[Tc.active]:m})},a,{children:"function"==typeof t?t({isActive:m,isSelected:v}):t}),void 0)}};var Ac;!function(e){e.Left="left",e.Right="right"}(Ac||(Ac={}));var jc=n(3710);var Fc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Lc=e=>{var{children:t}=e,n=Fc(e,["children"]);return(0,K.jsx)("li",Object.assign({role:"menuitem"},n,{children:t}),void 0)},Ic=({children:e,className:t})=>{const n=(0,ee.useRef)(null),r=null!==n.current?(0,jc.ht)(n.current):[];return hu(["down"],(({target:e})=>{if(r.length>0){const t=r.findIndex((t=>t===e));r.length===t+1?r[0].focus():r[t+1].focus()}}),{elementRef:n}),hu(["up"],(({target:e})=>{if(r.length>0){const t=r.findIndex((t=>t===e));0===t?r[r.length-1].focus():r[t-1].focus()}}),{elementRef:n}),(0,K.jsx)("ul",Object.assign({className:J()("UBQ_Menu__block--_28h_",t),ref:n,role:"menu"},{children:e}),void 0)},Nc=Lc;var Uc;function Bc(){return(Bc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const Hc=function(e){return ee.createElement("svg",Bc({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},e),Uc||(Uc=ee.createElement("path",{d:"M8 9a1 1 0 100-2 1 1 0 000 2zM13 9a1 1 0 100-2 1 1 0 000 2zM3 9a1 1 0 100-2 1 1 0 000 2z",fill:"currentColor",fillOpacity:.9})))};var Vc;function zc(){return(zc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const Qc=function(e){return ee.createElement("svg",zc({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},e),Vc||(Vc=ee.createElement("path",{d:"M16 12.5V16h-3.5l1.75-1.75L16 12.5z",fill:"currentColor",fillOpacity:.9})))},Xc="UBQ_TreeView__header--kPfnL",Wc="UBQ_TreeView__item--R6XsR",qc="UBQ_TreeView__icon--VOn8B",Gc="UBQ_TreeView__isActive--H_gcJ",$c="UBQ_TreeView__link--iauhw",Yc="UBQ_TreeView__button--t1z_L";var Kc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Zc({children:e,isActive:t,className:n}){return(0,K.jsx)("ul",Object.assign({className:J()("UBQ_TreeView__block--_IS6l",n,{"UBQ_TreeView__isGroupActive--BerAU":t})},{children:e}),void 0)}Zc.HeaderButton=(0,ee.forwardRef)((function(e,t){var{children:n,isActive:r,className:o}=e,i=Kc(e,["children","isActive","className"]);return(0,K.jsx)("li",Object.assign({className:J()(Xc,{[Gc]:r})},{children:(0,K.jsx)("button",Object.assign({ref:t,type:"button"},i,{className:J()(Yc,o)},{children:n}),void 0)}),void 0)})),Zc.HeaderLink=(0,ee.forwardRef)((function(e,t){var{children:n,isActive:r,menu:o,className:i}=e,a=Kc(e,["children","isActive","menu","className"]);return(0,K.jsxs)("li",Object.assign({className:J()(Xc,{[Gc]:r})},{children:[(0,K.jsx)("a",Object.assign({ref:t},a,{className:J()($c,i)},{children:n}),void 0),o]}),void 0)})),Zc.HeaderIcon=function({children:e,className:t}){return(0,K.jsx)("div",Object.assign({className:J()("UBQ_TreeView__headerIcon--_tXDI",t)},{children:e}),void 0)},Zc.ItemButton=(0,ee.forwardRef)((function(e,t){var{children:n,icon:r,isActive:o,menu:i,className:a}=e,s=Kc(e,["children","icon","isActive","menu","className"]);return(0,K.jsxs)("li",Object.assign({className:Wc},{children:[(0,K.jsxs)("button",Object.assign({ref:t,type:"button"},s,{className:J()(Yc,a,{[Gc]:o})},{children:[(0,K.jsx)("div",Object.assign({className:J()(qc)},{children:r}),void 0)," ",n]}),void 0),i]}),void 0)})),Zc.ItemLink=(0,ee.forwardRef)((function(e,t){var{icon:n,isActive:r,menu:o,children:i,className:a}=e,s=Kc(e,["icon","isActive","menu","children","className"]);return(0,K.jsxs)("li",Object.assign({className:J()(Wc,{[Gc]:r})},{children:[(0,K.jsxs)("a",Object.assign({ref:t},s,{className:J()($c,a)},{children:[(0,K.jsx)("div",Object.assign({className:J()(qc)},{children:n}),void 0)," ",i]}),void 0),o]}),void 0)})),Zc.Menu=function({children:e,isDisabled:t}){return(0,K.jsxs)(su,{children:[({referenceProps:e})=>(0,K.jsx)(ae,Object.assign({name:"treeViewMenuMore","aria-label":"Open folder options",variant:re.Plain,className:"UBQ_TreeView__menuButton--awrEH",isDisabled:t},e,{children:(0,K.jsxs)(el,{children:[(0,K.jsx)(Hc,{},void 0),(0,K.jsx)(Qc,{},void 0)]},void 0)}),void 0),({onClose:t})=>(0,K.jsx)(Ic,{children:"function"==typeof e?e({onMenuClose:t}):e},void 0)]},void 0)},Zc.MenuItem=function({children:e}){return(0,K.jsx)(Nc,{children:e},void 0)};var Jc;!function(e){e.Rounded="rounded",e.Circle="circle"}(Jc||(Jc={}));const el=function({children:e,className:t,revealLastOnHover:n}){return(0,K.jsx)("div",Object.assign({className:J()("UBQ_ElementStack__block--Urw_h",t,{"UBQ_ElementStack__revealLastOnHover--E6V6R":n})},{children:e}),void 0)},tl=!!document.body.attachShadow;var nl;!function(e){e.Linux="Linux",e.macOS="Mac OS",e.iOS="iOS",e.Windows="Windows",e.Android="Android"}(nl||(nl={}));const rl=(e,t)=>({x:e.x*t,y:e.y*t});function ol(e,t,n=Number.EPSILON){return Math.abs(e-t)<n}class il{constructor(e){Object.defineProperty(this,"ubq",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"internalAPI",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.ubq=e,this.internalAPI=e.getInternalAPI()}async createElement(e,t,n){const r=await this.execute("ubq/designblocks/create",e);this.execute("ubq/designblocks/addToParent",[r,t]);const o=al(this.ubq.getLastFrameSize(t)),{position:i,size:a}=function(e,t,n=8/13){const r=((e,t)=>{const n=e.x/e.y,r=t.x/t.y;return rl(t,n>r?e.y/t.y:e.x/t.x)})(e,t),o=rl(r,n);return{position:{x:.5*(e.x-o.x),y:.5*(e.y-o.y)},size:o}}({x:o.width,y:o.height},{x:n.width,y:n.height},8/13);this.execute("ubq/layout/setAbsoluteSize",{id:r,size:{width:a.x,height:a.y}}),a.x||this.execute("ubq/layout/setAutoWidth",{id:r}),a.y||this.execute("ubq/layout/setAutoHeight",{id:r});const s=function(e={x:50,y:50}){return{x:Math.random()*e.x,y:Math.random()*e.y}}({x:.08*o.width,y:.08*o.height});return await this.execute("ubq/layout/setAbsolutePosition",{id:r,position:{left:i.x+s.x,top:i.y+s.y}}),r}setValue(e,t,n,r){al(this.internalAPI.setValue(e,t,n,r))}getValue(e,t,n){return al(this.internalAPI.getValue(e,t,n))}async getEditorState(){return this.execute("ubq/editor/getEditorState")}async setEditorState(e){return this.execute("ubq/editor/setEditorState",e)}async execute(e,t){return new Promise((n=>{this.internalAPI.ubqExecute(e,t,(e=>{const t=al(e);n(t)})).delete()}))}}function al(e){if(e.isValid()){const t=e.value();return e.delete(),t}{const t=e.error(),n=t.publicMessage();throw t.delete(),e.delete(),new Error(n)}}const sl=(e,t=!0)=>{const n=[];for(let t=0;t<e.size();t+=1)n.push(e.get(t));return t&&e.delete(),n};class ul extends TypeError{constructor(e,t){let n;const{message:r,...o}=e,{path:i}=e;super(0===i.length?r:"At path: "+i.join(".")+" -- "+r),this.value=void 0,this.key=void 0,this.type=void 0,this.refinement=void 0,this.path=void 0,this.branch=void 0,this.failures=void 0,Object.assign(this,o),this.name=this.constructor.name,this.failures=()=>{var r;return null!=(r=n)?r:n=[e,...t()]}}}function cl(e){return"object"==typeof e&&null!=e}function ll(e){return"string"==typeof e?JSON.stringify(e):""+e}function fl(e,t,n,r){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});const{path:o,branch:i}=t,{type:a}=n,{refinement:s,message:u="Expected a value of type `"+a+"`"+(s?" with refinement `"+s+"`":"")+", but received: `"+ll(r)+"`"}=e;return{value:r,type:a,refinement:s,key:o[o.length-1],path:o,branch:i,...e,message:u}}function*dl(e,t,n,r){var o;cl(o=e)&&"function"==typeof o[Symbol.iterator]||(e=[e]);for(const o of e){const e=fl(o,t,n,r);e&&(yield e)}}function*pl(e,t,n={}){const{path:r=[],branch:o=[e],coerce:i=!1,mask:a=!1}=n,s={path:r,branch:o};if(i&&(e=t.coercer(e,s),a&&"type"!==t.type&&cl(t.schema)&&cl(e)&&!Array.isArray(e)))for(const n in e)void 0===t.schema[n]&&delete e[n];let u=!0;for(const n of t.validator(e,s))u=!1,yield[n,void 0];for(let[n,c,l]of t.entries(e,s)){const t=pl(c,l,{path:void 0===n?r:[...r,n],branch:void 0===n?o:[...o,c],coerce:i,mask:a});for(const r of t)r[0]?(u=!1,yield[r[0],void 0]):i&&(c=r[1],void 0===n?e=c:e instanceof Map?e.set(n,c):e instanceof Set?e.add(c):cl(e)&&(e[n]=c))}if(u)for(const n of t.refiner(e,s))u=!1,yield[n,void 0];u&&(yield[void 0,e])}class hl{constructor(e){this.TYPE=void 0,this.type=void 0,this.schema=void 0,this.coercer=void 0,this.validator=void 0,this.refiner=void 0,this.entries=void 0;const{type:t,schema:n,validator:r,refiner:o,coercer:i=(e=>e),entries:a=function*(){}}=e;this.type=t,this.schema=n,this.entries=a,this.coercer=i,this.validator=r?(e,t)=>dl(r(e,t),t,this,e):()=>[],this.refiner=o?(e,t)=>dl(o(e,t),t,this,e):()=>[]}assert(e){return function(e,t){const n=gl(e,t);if(n[0])throw n[0]}(e,this)}create(e){return function(e,t){const n=gl(e,t,{coerce:!0});if(n[0])throw n[0];return n[1]}(e,this)}is(e){return function(e,t){return!gl(e,t)[0]}(e,this)}mask(e){return function(e,t){const n=gl(e,t,{coerce:!0,mask:!0});if(n[0])throw n[0];return n[1]}(e,this)}validate(e,t={}){return gl(e,this,t)}}function gl(e,t,n={}){const r=pl(e,t,n),o=function(e){const{done:t,value:n}=e.next();return t?void 0:n}(r);return o[0]?[new ul(o[0],(function*(){for(const e of r)e[0]&&(yield e[0])})),void 0]:[void 0,o[1]]}function ml(e,t){return new hl({type:e,schema:null,validator:t})}function vl(){return ml("boolean",(e=>"boolean"==typeof e))}function yl(e){const t=ll(e),n=typeof e;return new hl({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?e:null,validator:n=>n===e||"Expected the literal `"+t+"`, but received: "+ll(n)})}function bl(){return ml("number",(e=>"number"==typeof e&&!isNaN(e)||"Expected a number, but received: "+ll(e)))}function wl(){return ml("string",(e=>"string"==typeof e||"Expected a string, but received: "+ll(e)))}function El(e){const t=Object.keys(e);return new hl({type:"type",schema:e,*entries(n){if(cl(n))for(const r of t)yield[r,n[r],e[r]]},validator:e=>cl(e)||"Expected an object, but received: "+ll(e)})}function _l(e,t,n={}){const{exclusive:r}=n;return function(e,t,n){return new hl({...e,*refiner(r,o){yield*e.refiner(r,o);const i=dl(n(r,o),o,e,r);for(const e of i)yield{...e,refinement:t}}})}(e,"min",(n=>r?n>t:n>=t||"Expected a "+e.type+" greater than "+(r?"":"or equal to ")+t+" but received `"+n+"`"))}function Ol(e,t,n){const[r]=gl(t,n);if(r)throw r.message=`Error in argument '${e}': ${r.message}`,r}function xl(){return function(e){const t=e.map((e=>e.type)).join(" | ");return new hl({type:"union",schema:null,coercer:(t,n)=>(e.find((e=>{const[n]=e.validate(t,{coerce:!0});return!n}))||ml("unknown",(()=>!0))).coercer(t,n),validator(n,r){const o=[];for(const t of e){const[...e]=pl(n,t,r),[i]=e;if(!i[0])return[];for(const[t]of e)t&&o.push(t)}return["Expected the value to satisfy a union of `"+t+"`, but received: "+ll(n),...o]}})}([yl("image/png"),yl("image/jpeg"),yl("image/x-tga")])}var Tl,Pl,kl=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},Sl=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class Dl{constructor(e){Tl.set(this,void 0),Pl.set(this,void 0),kl(this,Tl,e,"f"),kl(this,Pl,new il(e),"f")}async export(e,t){return Ol("handle",e,bl()),Ol("mimeType",t,xl()),new Promise(((n,r)=>{Sl(this,Tl,"f").exportToBuffer(e,t,(e=>{"error"in e?r(e.error):n(new Blob([e],{type:t}))}),{jpegQuality:.9,pngCompressionLevel:5,useTargetSize:!1,targetSize:{width:0,height:0}})}))}create(e){return Ol("type",e,wl()),al(Sl(this,Tl,"f").create(e))}getType(e){return Ol("id",e,bl()),al(Sl(this,Tl,"f").getType(e))}setSelected(e,t){return Ol("id",e,bl()),Ol("selected",t,vl()),al(Sl(this,Tl,"f").setSelected(e,t))}isSelected(e){return Ol("id",e,bl()),al(Sl(this,Tl,"f").isSelected(e))}findAllSelected(){return sl(Sl(this,Tl,"f").findAllSelected())}setName(e,t){return Ol("id",e,bl()),Ol("name",t,wl()),Sl(this,Pl,"f").setValue(e,o.uY,"name",t)}getName(e){return Ol("id",e,bl()),Sl(this,Pl,"f").getValue(e,o.uY,"name")}findByName(e){Ol("name",e,wl());const t=Sl(this,Tl,"f").findByName(e);return sl(t)}findByType(e){Ol("type",e,wl());const t=al(Sl(this,Tl,"f").findByType(e));return sl(t)}findAll(){return sl(Sl(this,Tl,"f").findAll())}isVisible(e){return Ol("id",e,bl()),al(Sl(this,Tl,"f").isVisible(e))}setVisible(e,t){return Ol("id",e,bl()),Ol("visible",t,vl()),al(Sl(this,Tl,"f").setVisible(e,t))}getPosition(e){return Ol("id",e,bl()),al(Sl(this,Tl,"f").getPosition(e))}setPosition(e,{x:t,y:n}){return Ol("id",e,bl()),Ol("position",{x:t,y:n},El({x:bl(),y:bl()})),al(Sl(this,Tl,"f").setPosition(e,t,n))}getRotation(e){return Ol("id",e,bl()),al(Sl(this,Tl,"f").getRotation(e))}setRotation(e,t){return Ol("id",e,bl()),Ol("radians",t,bl()),al(Sl(this,Tl,"f").setRotation(e,t))}getFlipHorizontal(e){return Ol("id",e,bl()),al(Sl(this,Tl,"f").getFlip(e)).horizontal}getFlipVertical(e){return Ol("id",e,bl()),al(Sl(this,Tl,"f").getFlip(e)).vertical}setFlipHorizontal(e,t){return Ol("id",e,bl()),Ol("flip",t,vl()),al(Sl(this,Tl,"f").setFlipHorizontal(e,t))}setFlipVertical(e,t){return Ol("id",e,bl()),Ol("flip",t,vl()),al(Sl(this,Tl,"f").setFlipVertical(e,t))}getSize(e){var t,n;Ol("id",e,bl());const r=al(Sl(this,Tl,"f").getSize(e));return{width:null!==(t=r.width)&&void 0!==t?t:"auto",height:null!==(n=r.height)&&void 0!==n?n:"auto"}}setSize(e,t){return Ol("id",e,bl()),Ol("size",t,El({width:bl(),height:bl()})),al(Sl(this,Tl,"f").setSize(e,t.width,t.height))}getFrameSize(e){return Ol("id",e,bl()),al(Sl(this,Tl,"f").getLastFrameSize(e))}duplicate(e){return Ol("id",e,bl()),al(Sl(this,Tl,"f").duplicate(e))}destroy(e){return Ol("id",e,bl()),al(Sl(this,Tl,"f").destroy(e))}getParent(e){return Ol("id",e,bl()),al(Sl(this,Tl,"f").getParent(e))}getChildren(e){Ol("id",e,bl());const t=al(Sl(this,Tl,"f").getChildren(e));return sl(t)}insertChild(e,t,n){return Ol("parent",e,bl()),Ol("child",t,bl()),Ol("index",n,_l(bl(),0)),al(Sl(this,Tl,"f").insertChild(e,t,n))}appendChild(e,t){return Ol("parent",e,bl()),Ol("child",t,bl()),al(Sl(this,Tl,"f").appendChild(e,t))}}Tl=new WeakMap,Pl=new WeakMap;var Ml,Rl,Cl,Al=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},jl=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class Fl{constructor(e){Ml.set(this,void 0),Rl.set(this,void 0),Cl.set(this,null),Al(this,Ml,e,"f"),Al(this,Rl,new il(e),"f")}loadFromString(e){return Ol("sceneContent",e,wl()),Al(this,Cl,al(jl(this,Ml,"f").loadSceneFromString(e)),"f"),jl(this,Cl,"f")}async loadFromURL(e){return Ol("url",e,wl()),new Promise((t=>{jl(this,Ml,"f").loadSceneFromURL(e,(e=>{Al(this,Cl,al(e),"f"),t(jl(this,Cl,"f"))}))}))}async saveToString(){const e=sl(jl(this,Ml,"f").findAllSelected());jl(this,Rl,"f").execute("ubq/designblocks/deselectAll");const t=await jl(this,Rl,"f").execute("ubq/saveScene");return e.forEach((e=>{al(jl(this,Ml,"f").setSelected(e,!0))})),t}create(){return Al(this,Cl,al(jl(this,Ml,"f").createScene({layout:o.Kc.Free})),"f"),jl(this,Cl,"f")}createFromImage(e,t=300,n=1){return Ol("url",e,wl()),Ol("dpi",t,_l(bl(),0)),Ol("pixelScaleFactor",n,_l(bl(),0)),new Promise((r=>{jl(this,Ml,"f").createSceneFromImage(e,t,n,o.Kc.Free,0,!1,(e=>{Al(this,Cl,al(e),"f"),r(jl(this,Cl,"f"))}))}))}get(){return jl(this,Cl,"f")}}Ml=new WeakMap,Rl=new WeakMap,Cl=new WeakMap;var Ll,Il=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class Nl{constructor(e){Ll.set(this,void 0),function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?o.call(e,n):o?o.value=n:t.set(e,n)}(this,Ll,e,"f")}findAll(){return sl(Il(this,Ll,"f").findAllVariables())}set(e,t){return Ol("key",e,wl()),Ol("value",t,wl()),al(Il(this,Ll,"f").setVariableValue(e,t))}get(e){return Ol("key",e,wl()),al(Il(this,Ll,"f").getVariableValue(e))}}Ll=new WeakMap;var Ul,Bl,Hl,Vl=n(7168),zl=n.n(Vl);function Ql(e){return Array.from(Array(e+1).keys())}!function(e){e.Left="left",e.Right="right"}(Ul||(Ul={})),function(e){e.Top="top",e.Bottom="bottom"}(Bl||(Bl={})),function(e){e.Left="left",e.Right="right"}(Hl||(Hl={}));const Xl={show:!0,position:Hl.Right},Wl={show:!1,position:Hl.Left},ql={show:!0,position:Hl.Left},Gl={show:!0,position:Bl.Top,title:null,action:{close:{show:!1},back:{show:!1},save:{show:!1},export:{show:!1},share:{show:!1},download:{show:!1},load:{show:!1}}},$l={view:{adopter:{style:Q.Default}},panels:{inspector:Xl,settings:Wl,assetLibrary:ql},templates:{show:!0},libraries:{image:{show:!0},text:{show:!0},element:{show:!0}},navigation:Gl,blocks:{opacity:!0,transform:!0,"//ly.img.ubq/text":{advanced:{show:!0},color:{show:!0},backgroundColor:{show:!0}},"//ly.img.ubq/image":{crop:{show:!0},filters:{show:!0},adjustments:{show:!0},effects:{show:!0},blur:{show:!0}}}},Yl=(Ql(10),Ql(50),Ql(10).map((e=>.1*e)),{baseURL:"extensions/",entries:["ly.img.cesdk.filters.duotone","ly.img.cesdk.filters.lut","ly.img.cesdk.stickers.emoticons","ly.img.cesdk.vectorpaths","ly.img.cesdk.fonts","ly.img.cesdk.images.samples","ly.img.cesdk.effects","ly.img.cesdk.stickers.doodle","ly.img.cesdk.stickers.hand","ly.img.cesdk.stickers.emoji"]}),Kl={"//ly.img.cesdk/image_placeholder":{src:"bundle://ly.img.cesdk/images/placeholder.png"},"//ly.img.cesdk/watermark":{src:"bundle://ly.img.cesdk/images/watermark.png"},"//ly.img/font/default":{src:"bundle://ly.img.cesdk/fonts/imgly_font_inter_semibold.otf"}},Zl={"din-a0":{width:1189,height:841,unit:V.Millimeter},"din-a1":{width:841,height:594,unit:V.Millimeter},"din-a2":{width:594,height:420,unit:V.Millimeter},"din-a3":{width:420,height:297,unit:V.Millimeter},"din-a4":{width:297,height:210,unit:V.Millimeter},"din-a5":{width:210,height:148,unit:V.Millimeter},"din-a6":{meta:{default:!0},width:148,height:105,unit:V.Millimeter},"din-a65":{width:210,height:105,unit:V.Millimeter},"din-b5":{width:250,height:176,unit:V.Millimeter},square:{width:105,height:105,unit:V.Millimeter},"twitter-profile":{width:400,height:400,unit:V.Pixel},"twitter-image":{width:1024,height:512,unit:V.Pixel},"twitter-header":{width:1500,height:500,unit:V.Pixel},"instagram-profile":{width:180,height:180,unit:V.Pixel},"instagram-photo":{width:1080,height:1080,unit:V.Pixel},"instagram-story":{width:1080,height:1920,unit:V.Pixel},"american-letter":{width:8.5,height:11,unit:V.Inch},"american-legal":{width:8.5,height:14,unit:V.Inch},"16:10":{width:1600,height:1e3,unit:V.Pixel},"16:9":{width:1600,height:900,unit:V.Pixel},"16:10@2400p":{width:3840,height:2400,unit:V.Pixel},"16:9@2160p":{width:3840,height:2160,unit:V.Pixel},"business-card":{width:85,height:55,unit:V.Millimeter}},Jl={company_name:{value:"img.ly"},first_name:{value:"Charly"},last_name:{value:"Williams"},address:{value:"742 Evergreen Terrace"},city:{value:"Springfield"}},ef=(e,t)=>{const n=`[UBQ] ${e}`;switch(t){case o.in.Warning:console.warn(n);break;case o.in.Error:console.error(n);break;case o.in.Info:console.log(n);break;default:console.log(n)}},tf={log:ef},nf={en:{variables:{company_name:{label:"Company Name"},first_name:{label:"First name"},last_name:{label:"Last name"},address:{label:"Address"},city:{label:"City"}}},de:{variables:{company_name:{label:"Firmenname"},first_name:{label:"Vorname"},last_name:{label:"Nachname"},address:{label:"Adresse"},city:{label:"Stadt"}}}},rf={colorPalettes:{primary:{meta:{default:!0},entries:["#FFFFFF","#000000","#6686FF","#66CCFF","#54FFEA","#E75050","#F28855","#FFF763"]}},pageFormats:Zl},of={headingsHierarchyStart:2},af={baseURL:"core/"},sf={baseURL:"ui/",scale:"normal",elements:$l,stylesheets:{disableShadowDOM:!1,disableTagInsertion:!1,disableFontInsertion:!1}},uf={maskSpotColor:void 0,dpi:300,pixelScaleFactor:1},cf={title:{font:"//ly.img/font/default",show:!0}};var lf;function ff(e,t=window.location.href){return new URL(e,t).toString()}function df(e,t=window.location.href){const n=ff(e,t);return"/"!==n[n.length-1]?`${n}/`:n}class pf{constructor(){Object.defineProperty(this,"baseURL",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"license",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"role",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"locale",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"theme",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"devMode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"featureFlags",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"initialSceneString",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"initialSceneURL",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"initialImageURL",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"extensions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"core",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ui",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"i18n",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"a11y",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"scene",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"assets",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"presets",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"variables",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"callbacks",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"defaultFont",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}static initWithDefaults(e={}){var t,n,r,o,i,a,s,u,c,l,f,d,p,h,g,m,v,y,b,w,E,_;const O=new pf;if(e){O.initialSceneString=null!==(t=e.initialSceneString)&&void 0!==t?t:void 0,O.initialSceneURL=null!==(n=e.initialSceneURL)&&void 0!==n?n:void 0,O.initialImageURL=null!==(r=e.initialImageURL)&&void 0!==r?r:void 0,O.license=e.license,O.role=null!==(o=e.role)&&void 0!==o?o:"Creator",O.locale=null!==(i=e.locale)&&void 0!==i?i:"en",O.theme=null!==(a=e.theme)&&void 0!==a?a:"dark",O.devMode=null!==(s=e.devMode)&&void 0!==s&&s,O.featureFlags=null!==(u=e.featureFlags)&&void 0!==u?u:{},O.baseURL=null!==(c=e.baseURL)&&void 0!==c?c:"https://cdn.img.ly/packages/imgly/cesdk-js/1.4.0-alpha.2/assets",O.core=null!==(l=e.core)&&void 0!==l?l:Object.assign({},af),O.ui=zl()(sf,null!==(f=e.ui)&&void 0!==f?f:{}),O.extensions=null!==(d=e.extensions)&&void 0!==d?d:Object.assign({},Yl),O.extensions.entries=null!==(p=O.extensions.entries)&&void 0!==p?p:Object.assign({},Yl.entries),O.i18n=null!==(h=e.i18n)&&void 0!==h?h:Object.assign({},nf),O.a11y=null!==(g=e.a11y)&&void 0!==g?g:Object.assign({},of),O.callbacks=null!==(m=e.callbacks)&&void 0!==m?m:Object.assign({},tf),O.variables=null!==(v=e.variables)&&void 0!==v?v:Object.assign({},Jl),O.presets=null!==(y=e.presets)&&void 0!==y?y:Object.assign({},rf),O.scene=null!==(b=e.scene)&&void 0!==b?b:Object.assign({},uf),O.page=zl()(cf,null!==(w=e.page)&&void 0!==w?w:{});const x=null!==(E=e.assets)&&void 0!==E?E:{},{"//ly.img.cesdk/watermark":T}=x,P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(x,["//ly.img.cesdk/watermark"]);O.assets=zl()(Kl,P),Object.entries(O.assets).forEach((([e,t])=>{O.assets[e]={src:ff(t.src)}})),O.defaultFont=null!==(_=e.defaultFont)&&void 0!==_?_:void 0,Object.entries(rf).forEach((([e,t])=>{var n;O.presets[e]=null!==(n=O.presets[e])&&void 0!==n?n:Object.assign({},t)}))}return O.baseURL=df(O.baseURL),O.core.baseURL=df(O.core.baseURL,O.baseURL),O.ui.baseURL=df(O.ui.baseURL,O.baseURL),O.extensions.baseURL=df(O.extensions.baseURL,O.baseURL),O.extensions.entries=O.extensions.entries.map((e=>df(e,O.extensions.baseURL))),O}extend(e){return zl()({},this,e)}}const hf=(lf="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(e){var t,r,o=void 0!==(e=e||{})?e:{};o.ready=new Promise((function(e,n){t=e,r=n})),Object.getOwnPropertyDescriptor(o.ready,"_main")||(Object.defineProperty(o.ready,"_main",{configurable:!0,get:function(){Ne("You are getting _main on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_main",{configurable:!0,set:function(){Ne("You are setting _main on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_emscripten_stack_get_end")||(Object.defineProperty(o.ready,"_emscripten_stack_get_end",{configurable:!0,get:function(){Ne("You are getting _emscripten_stack_get_end on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_emscripten_stack_get_end",{configurable:!0,set:function(){Ne("You are setting _emscripten_stack_get_end on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_emscripten_stack_get_free")||(Object.defineProperty(o.ready,"_emscripten_stack_get_free",{configurable:!0,get:function(){Ne("You are getting _emscripten_stack_get_free on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_emscripten_stack_get_free",{configurable:!0,set:function(){Ne("You are setting _emscripten_stack_get_free on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_emscripten_stack_init")||(Object.defineProperty(o.ready,"_emscripten_stack_init",{configurable:!0,get:function(){Ne("You are getting _emscripten_stack_init on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_emscripten_stack_init",{configurable:!0,set:function(){Ne("You are setting _emscripten_stack_init on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_stackSave")||(Object.defineProperty(o.ready,"_stackSave",{configurable:!0,get:function(){Ne("You are getting _stackSave on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_stackSave",{configurable:!0,set:function(){Ne("You are setting _stackSave on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_stackRestore")||(Object.defineProperty(o.ready,"_stackRestore",{configurable:!0,get:function(){Ne("You are getting _stackRestore on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_stackRestore",{configurable:!0,set:function(){Ne("You are setting _stackRestore on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_stackAlloc")||(Object.defineProperty(o.ready,"_stackAlloc",{configurable:!0,get:function(){Ne("You are getting _stackAlloc on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_stackAlloc",{configurable:!0,set:function(){Ne("You are setting _stackAlloc on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"___wasm_call_ctors")||(Object.defineProperty(o.ready,"___wasm_call_ctors",{configurable:!0,get:function(){Ne("You are getting ___wasm_call_ctors on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"___wasm_call_ctors",{configurable:!0,set:function(){Ne("You are setting ___wasm_call_ctors on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_fflush")||(Object.defineProperty(o.ready,"_fflush",{configurable:!0,get:function(){Ne("You are getting _fflush on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_fflush",{configurable:!0,set:function(){Ne("You are setting _fflush on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"___errno_location")||(Object.defineProperty(o.ready,"___errno_location",{configurable:!0,get:function(){Ne("You are getting ___errno_location on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"___errno_location",{configurable:!0,set:function(){Ne("You are setting ___errno_location on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_malloc")||(Object.defineProperty(o.ready,"_malloc",{configurable:!0,get:function(){Ne("You are getting _malloc on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_malloc",{configurable:!0,set:function(){Ne("You are setting _malloc on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_free")||(Object.defineProperty(o.ready,"_free",{configurable:!0,get:function(){Ne("You are getting _free on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_free",{configurable:!0,set:function(){Ne("You are setting _free on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"___dl_seterr")||(Object.defineProperty(o.ready,"___dl_seterr",{configurable:!0,get:function(){Ne("You are getting ___dl_seterr on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"___dl_seterr",{configurable:!0,set:function(){Ne("You are setting ___dl_seterr on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_memalign")||(Object.defineProperty(o.ready,"_memalign",{configurable:!0,get:function(){Ne("You are getting _memalign on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_memalign",{configurable:!0,set:function(){Ne("You are setting _memalign on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_saveSetjmp")||(Object.defineProperty(o.ready,"_saveSetjmp",{configurable:!0,get:function(){Ne("You are getting _saveSetjmp on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_saveSetjmp",{configurable:!0,set:function(){Ne("You are setting _saveSetjmp on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_setThrew")||(Object.defineProperty(o.ready,"_setThrew",{configurable:!0,get:function(){Ne("You are getting _setThrew on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_setThrew",{configurable:!0,set:function(){Ne("You are setting _setThrew on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"___getTypeName")||(Object.defineProperty(o.ready,"___getTypeName",{configurable:!0,get:function(){Ne("You are getting ___getTypeName on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"___getTypeName",{configurable:!0,set:function(){Ne("You are setting ___getTypeName on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"___embind_register_native_and_builtin_types")||(Object.defineProperty(o.ready,"___embind_register_native_and_builtin_types",{configurable:!0,get:function(){Ne("You are getting ___embind_register_native_and_builtin_types on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"___embind_register_native_and_builtin_types",{configurable:!0,set:function(){Ne("You are setting ___embind_register_native_and_builtin_types on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"onRuntimeInitialized")||(Object.defineProperty(o.ready,"onRuntimeInitialized",{configurable:!0,get:function(){Ne("You are getting onRuntimeInitialized on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"onRuntimeInitialized",{configurable:!0,set:function(){Ne("You are setting onRuntimeInitialized on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),o.expectedDataFileDownloads||(o.expectedDataFileDownloads=0),o.expectedDataFileDownloads++,function(e){"object"==typeof window?window.encodeURIComponent(window.location.pathname.toString().substring(0,window.location.pathname.toString().lastIndexOf("/"))+"/"):"undefined"==typeof process&&"undefined"!=typeof location&&encodeURIComponent(location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf("/"))+"/");var t="cesdk.data";"function"!=typeof o.locateFilePackage||o.locateFile||(o.locateFile=o.locateFilePackage,x("warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)"));var n,r,i,a,s=o.locateFile?o.locateFile(t,""):t,u=e.remote_package_size,c=null,l=o.getPreloadedPackage?o.getPreloadedPackage(s,u):null;function f(){function t(e,t){if(!e)throw t+(new Error).stack}function n(e,t,n){this.start=e,this.end=t,this.audio=n}o.FS_createPath("/","ly.img.cesdk",!0,!0),o.FS_createPath("/ly.img.cesdk","images",!0,!0),o.FS_createPath("/ly.img.cesdk","shader",!0,!0),o.FS_createPath("/ly.img.cesdk","presets",!0,!0),o.FS_createPath("/ly.img.cesdk","fonts",!0,!0),n.prototype={requests:{},open:function(e,t){this.name=t,this.requests[t]=this,o.addRunDependency("fp "+this.name)},send:function(){},onload:function(){var e=this.byteArray.subarray(this.start,this.end);this.finish(e)},finish:function(e){o.FS_createDataFile(this.name,null,e,!0,!0,!0),o.removeRunDependency("fp "+this.name),this.requests[this.name]=null}};for(var r=e.files,i=0;i<r.length;++i)new n(r[i].start,r[i].end,r[i].audio||0).open("GET",r[i].filename);function a(r){t(r,"Loading data file failed."),t(r instanceof ArrayBuffer,"bad input to processPackageData");var i=new Uint8Array(r);n.prototype.byteArray=i;for(var a=e.files,s=0;s<a.length;++s)n.prototype.requests[a[s].filename].onload();o.removeRunDependency("datafile_cesdk.data")}o.addRunDependency("datafile_cesdk.data"),o.preloadResults||(o.preloadResults={}),o.preloadResults["cesdk.data"]={fromCache:!1},l?(a(l),l=null):c=a}l||(n=s,r=u,i=function(e){c?(c(e),c=null):l=e},(a=new XMLHttpRequest).open("GET",n,!0),a.responseType="arraybuffer",a.onprogress=function(e){var t=n,i=r;if(e.total&&(i=e.total),e.loaded){a.addedTotal?o.dataFileDownloads[t].loaded=e.loaded:(a.addedTotal=!0,o.dataFileDownloads||(o.dataFileDownloads={}),o.dataFileDownloads[t]={loaded:e.loaded,total:i});var s=0,u=0,c=0;for(var l in o.dataFileDownloads){var f=o.dataFileDownloads[l];s+=f.total,u+=f.loaded,c++}s=Math.ceil(s*o.expectedDataFileDownloads/c),o.setStatus&&o.setStatus("Downloading data... ("+u+"/"+s+")")}else o.dataFileDownloads||o.setStatus&&o.setStatus("Downloading data...")},a.onerror=function(e){throw new Error("NetworkError for: "+n)},a.onload=function(e){if(!(200==a.status||304==a.status||206==a.status||0==a.status&&a.response))throw new Error(a.statusText+" : "+a.responseURL);var t=a.response;i(t)},a.send(null)),o.calledRun?f():(o.preRun||(o.preRun=[]),o.preRun.push(f))}({files:[{filename:"/ly.img.cesdk/.DS_Store",start:0,end:6148},{filename:"/ly.img.cesdk/images/watermark.png",start:6148,end:96295},{filename:"/ly.img.cesdk/images/placeholder.png",start:96295,end:96363},{filename:"/ly.img.cesdk/shader/.keep",start:96363,end:96363},{filename:"/ly.img.cesdk/presets/.keep",start:96363,end:96363},{filename:"/ly.img.cesdk/fonts/imgly_font_inter_semibold.otf",start:96363,end:367123}],remote_package_size:367123,package_uuid:"353e0c6d-168f-45d4-9ae3-6821ccc3321e"});var i=o.preRun.slice();"object"==typeof window&&"object"==typeof window.performance?o.performance=performance:"object"==typeof n.g&&"object"==typeof n.g.perf_hooks&&"object"==typeof n.g.perf_hooks.performance?o.performance=n.g.perf_hooks.performance:o.performance={mark:function(){},measure:function(){}},o.emscripten_ubq_asyncFetchStates=new Map,o.emscripten_ubq_asyncFetchCompletedBytes=new Map,o.emscripten_ubq_asyncFetchTotalBytes=new Map,o.emscripten_ubq_asyncFetchHeaders=new Map,o.emscripten_ubq_asyncFetchNextHandle=0,o.emscripten_ubq_asyncFetchNextHeaderHandle=0;const a={PENDING:0,FINISHED:1,ALLOCATED:2,ERROR:3},s=["GET","POST"];if(!o.preRun)throw"Module.preRun should exist because file support used it; did a pre-js delete it?";i.forEach((function(e){if(o.preRun.indexOf(e)<0)throw"All preRun tasks that exist before user pre-js code should remain after; did you replace Module or modify Module.preRun?"}));var u,c={};for(u in o)o.hasOwnProperty(u)&&(c[u]=o[u]);var l=[],f="./this.program",d=function(e,t){throw t},p=!0,h=!1,g=!1,m=!1;if(o.ENVIRONMENT)throw new Error("Module.ENVIRONMENT has been deprecated. To force the environment, use the ENVIRONMENT compile-time option (for example, -s ENVIRONMENT=web or -s ENVIRONMENT=node)");var v,y,b,w="";function E(e){return o.locateFile?o.locateFile(e,w):w+e}function _(e){if(!(e instanceof Vd)){var t=e;e&&"object"==typeof e&&e.stack&&(t=[e,e.stack]),x("exiting due to exception: "+t)}}if(m){if("object"==typeof process||"object"==typeof window||"function"==typeof importScripts)throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");"undefined"!=typeof read&&(v=function(e){return read(e)}),b=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(F("object"==typeof(t=read(e,"binary"))),t)},y=function(e,t,n){setTimeout((function(){t(b(e))}),0)},"undefined"!=typeof scriptArgs?l=scriptArgs:void 0!==arguments&&(l=arguments),"function"==typeof quit&&(d=function(e,t){_(t),quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)}else{if(!p&&!h)throw new Error("environment detection error");if(h?w=self.location.href:"undefined"!=typeof document&&document.currentScript&&(w=document.currentScript.src),lf&&(w=lf),w=0!==w.indexOf("blob:")?w.substr(0,w.replace(/[?#].*/,"").lastIndexOf("/")+1):"","object"!=typeof window&&"function"!=typeof importScripts)throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");v=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},h&&(b=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),y=function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){200==r.status||0==r.status&&r.response?t(r.response):n()},r.onerror=n,r.send(null)}}var O=o.print||console.log.bind(console),x=o.printErr||console.warn.bind(console);for(u in c)c.hasOwnProperty(u)&&(o[u]=c[u]);function T(e){T.shown||(T.shown={}),T.shown[e]||(T.shown[e]=1,x(e))}c=null,o.arguments&&(l=o.arguments),Object.getOwnPropertyDescriptor(o,"arguments")||Object.defineProperty(o,"arguments",{configurable:!0,get:function(){Ne("Module.arguments has been replaced with plain arguments_ (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),o.thisProgram&&(f=o.thisProgram),Object.getOwnPropertyDescriptor(o,"thisProgram")||Object.defineProperty(o,"thisProgram",{configurable:!0,get:function(){Ne("Module.thisProgram has been replaced with plain thisProgram (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),o.quit&&(d=o.quit),Object.getOwnPropertyDescriptor(o,"quit")||Object.defineProperty(o,"quit",{configurable:!0,get:function(){Ne("Module.quit has been replaced with plain quit_ (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),F(void 0===o.memoryInitializerPrefixURL,"Module.memoryInitializerPrefixURL option was removed, use Module.locateFile instead"),F(void 0===o.pthreadMainPrefixURL,"Module.pthreadMainPrefixURL option was removed, use Module.locateFile instead"),F(void 0===o.cdInitializerPrefixURL,"Module.cdInitializerPrefixURL option was removed, use Module.locateFile instead"),F(void 0===o.filePackagePrefixURL,"Module.filePackagePrefixURL option was removed, use Module.locateFile instead"),F(void 0===o.read,"Module.read option was removed (modify read_ in JS)"),F(void 0===o.readAsync,"Module.readAsync option was removed (modify readAsync in JS)"),F(void 0===o.readBinary,"Module.readBinary option was removed (modify readBinary in JS)"),F(void 0===o.setWindowTitle,"Module.setWindowTitle option was removed (modify setWindowTitle in JS)"),F(void 0===o.TOTAL_MEMORY,"Module.TOTAL_MEMORY has been renamed Module.INITIAL_MEMORY"),Object.getOwnPropertyDescriptor(o,"read")||Object.defineProperty(o,"read",{configurable:!0,get:function(){Ne("Module.read has been replaced with plain read_ (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),Object.getOwnPropertyDescriptor(o,"readAsync")||Object.defineProperty(o,"readAsync",{configurable:!0,get:function(){Ne("Module.readAsync has been replaced with plain readAsync (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),Object.getOwnPropertyDescriptor(o,"readBinary")||Object.defineProperty(o,"readBinary",{configurable:!0,get:function(){Ne("Module.readBinary has been replaced with plain readBinary (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),Object.getOwnPropertyDescriptor(o,"setWindowTitle")||Object.defineProperty(o,"setWindowTitle",{configurable:!0,get:function(){Ne("Module.setWindowTitle has been replaced with plain setWindowTitle (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),F(!h,"worker environment detected but not enabled at build time. Add 'worker' to `-s ENVIRONMENT` to enable."),F(!g,"node environment detected but not enabled at build time. Add 'node' to `-s ENVIRONMENT` to enable."),F(!m,"shell environment detected but not enabled at build time. Add 'shell' to `-s ENVIRONMENT` to enable.");var P,k=0,S=function(e){k=e},D=function(){return k};o.wasmBinary&&(P=o.wasmBinary),Object.getOwnPropertyDescriptor(o,"wasmBinary")||Object.defineProperty(o,"wasmBinary",{configurable:!0,get:function(){Ne("Module.wasmBinary has been replaced with plain wasmBinary (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}});var M,R=o.noExitRuntime||!0;function C(e,t,n){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return z[e>>0];case"i16":return X[e>>1];case"i32":case"i64":return q[e>>2];case"float":return $[e>>2];case"double":return Number(Y[e>>3]);default:Ne("invalid type for getValue: "+t)}return null}Object.getOwnPropertyDescriptor(o,"noExitRuntime")||Object.defineProperty(o,"noExitRuntime",{configurable:!0,get:function(){Ne("Module.noExitRuntime has been replaced with plain noExitRuntime (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),"object"!=typeof WebAssembly&&Ne("no native wasm support detected");var A,j=!1;function F(e,t){e||Ne("Assertion failed: "+t)}var L="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function I(e,t,n){for(var r=t+n,o=t;e[o]&&!(o>=r);)++o;if(o-t>16&&e.subarray&&L)return L.decode(e.subarray(t,o));for(var i="";t<o;){var a=e[t++];if(128&a){var s=63&e[t++];if(192!=(224&a)){var u=63&e[t++];if(224==(240&a)?a=(15&a)<<12|s<<6|u:(240!=(248&a)&&T("Invalid UTF-8 leading byte 0x"+a.toString(16)+" encountered when deserializing a UTF-8 string in wasm memory to a JS string!"),a=(7&a)<<18|s<<12|u<<6|63&e[t++]),a<65536)i+=String.fromCharCode(a);else{var c=a-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else i+=String.fromCharCode((31&a)<<6|s)}else i+=String.fromCharCode(a)}return i}function N(e,t){return e?I(Q,e,t):""}function U(e,t,n,r){if(!(r>0))return 0;for(var o=n,i=n+r-1,a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++a)),s<=127){if(n>=i)break;t[n++]=s}else if(s<=2047){if(n+1>=i)break;t[n++]=192|s>>6,t[n++]=128|63&s}else if(s<=65535){if(n+2>=i)break;t[n++]=224|s>>12,t[n++]=128|s>>6&63,t[n++]=128|63&s}else{if(n+3>=i)break;s>1114111&&T("Invalid Unicode code point 0x"+s.toString(16)+" encountered when serializing a JS string to a UTF-8 string in wasm memory! (Valid unicode code points should be in range 0-0x10FFFF)."),t[n++]=240|s>>18,t[n++]=128|s>>12&63,t[n++]=128|s>>6&63,t[n++]=128|63&s}}return t[n]=0,n-o}function B(e,t,n){return F("number"==typeof n,"stringToUTF8(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),U(e,Q,t,n)}function H(e){for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);r>=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&e.charCodeAt(++n)),r<=127?++t:t+=r<=2047?2:r<=65535?3:4}return t}var V,z,Q,X,W,q,G,$,Y,K="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function Z(e,t){F(e%2==0,"Pointer passed to UTF16ToString must be aligned to two bytes!");for(var n=e,r=n>>1,o=r+t/2;!(r>=o)&&W[r];)++r;if((n=r<<1)-e>32&&K)return K.decode(Q.subarray(e,n));for(var i="",a=0;!(a>=t/2);++a){var s=X[e+2*a>>1];if(0==s)break;i+=String.fromCharCode(s)}return i}function J(e,t,n){if(F(t%2==0,"Pointer passed to stringToUTF16 must be aligned to two bytes!"),F("number"==typeof n,"stringToUTF16(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),void 0===n&&(n=2147483647),n<2)return 0;for(var r=t,o=(n-=2)<2*e.length?n/2:e.length,i=0;i<o;++i){var a=e.charCodeAt(i);X[t>>1]=a,t+=2}return X[t>>1]=0,t-r}function ee(e){return 2*e.length}function te(e,t){F(e%4==0,"Pointer passed to UTF32ToString must be aligned to four bytes!");for(var n=0,r="";!(n>=t/4);){var o=q[e+4*n>>2];if(0==o)break;if(++n,o>=65536){var i=o-65536;r+=String.fromCharCode(55296|i>>10,56320|1023&i)}else r+=String.fromCharCode(o)}return r}function ne(e,t,n){if(F(t%4==0,"Pointer passed to stringToUTF32 must be aligned to four bytes!"),F("number"==typeof n,"stringToUTF32(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),void 0===n&&(n=2147483647),n<4)return 0;for(var r=t,o=r+n-4,i=0;i<e.length;++i){var a=e.charCodeAt(i);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++i)),q[t>>2]=a,(t+=4)+4>o)break}return q[t>>2]=0,t-r}function re(e){for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);r>=55296&&r<=57343&&++n,t+=4}return t}function oe(e){var t=H(e)+1,n=Cd(t);return U(e,z,n,t),n}function ie(e,t){F(e.length>=0,"writeArrayToMemory array must have a length (should be an array or typed array)"),z.set(e,t)}function ae(e,t,n){for(var r=0;r<e.length;++r)F(e.charCodeAt(r)===(255&e.charCodeAt(r))),z[t++>>0]=e.charCodeAt(r);n||(z[t>>0]=0)}function se(e,t){return e%t>0&&(e+=t-e%t),e}function ue(e){V=e,o.HEAP8=z=new Int8Array(e),o.HEAP16=X=new Int16Array(e),o.HEAP32=q=new Int32Array(e),o.HEAPU8=Q=new Uint8Array(e),o.HEAPU16=W=new Uint16Array(e),o.HEAPU32=G=new Uint32Array(e),o.HEAPF32=$=new Float32Array(e),o.HEAPF64=Y=new Float64Array(e)}var ce=5242880;o.TOTAL_STACK&&F(ce===o.TOTAL_STACK,"the stack size can no longer be determined at runtime");var le,fe=o.INITIAL_MEMORY||268435456;function de(){var e=jd();F(0==(3&e)),q[e+4>>2]=34821223,q[e+8>>2]=2310721022,q[0]=1668509029}function pe(){if(!j){var e=jd(),t=G[e+4>>2],n=G[e+8>>2];34821223==t&&2310721022==n||Ne("Stack overflow! Stack cookie has been overwritten, expected hex dwords 0x89BACDFE and 0x2135467, but received 0x"+n.toString(16)+" "+t.toString(16)),1668509029!==q[0]&&Ne("Runtime error: The application has corrupted its heap memory area (address zero)!")}}Object.getOwnPropertyDescriptor(o,"INITIAL_MEMORY")||Object.defineProperty(o,"INITIAL_MEMORY",{configurable:!0,get:function(){Ne("Module.INITIAL_MEMORY has been replaced with plain INITIAL_MEMORY (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),F(fe>=ce,"INITIAL_MEMORY should be larger than TOTAL_STACK, was "+fe+"! (TOTAL_STACK="+ce+")"),F("undefined"!=typeof Int32Array&&"undefined"!=typeof Float64Array&&void 0!==Int32Array.prototype.subarray&&void 0!==Int32Array.prototype.set,"JS engine does not provide full typed array support"),F(!o.wasmMemory,"Use of `wasmMemory` detected. Use -s IMPORTED_MEMORY to define wasmMemory externally"),F(268435456==fe,"Detected runtime INITIAL_MEMORY setting. Use -s IMPORTED_MEMORY to define wasmMemory dynamically"),function(){var e=new Int16Array(1),t=new Int8Array(e.buffer);if(e[0]=25459,115!==t[0]||99!==t[1])throw"Runtime error: expected the system to be little-endian! (Run with -s SUPPORT_BIG_ENDIAN=1 to bypass)"}();var he=[],ge=[],me=[],ve=[],ye=[],be=!1,we=!1,Ee=0;function _e(){return R||Ee>0}function Oe(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)Se(o.preRun.shift());$e(he)}function xe(){pe(),F(!be),be=!0,o.noFSInit||yt.init.initialized||yt.init(),yt.ignorePermissions=!1,lt.init(),$e(ge)}function Te(){pe(),$e(me)}function Pe(){pe(),we=!0}function ke(){if(pe(),o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)Me(o.postRun.shift());$e(ye)}function Se(e){he.unshift(e)}function De(e){ge.unshift(e)}function Me(e){ye.unshift(e)}F(Math.imul,"This browser does not support Math.imul(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),F(Math.fround,"This browser does not support Math.fround(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),F(Math.clz32,"This browser does not support Math.clz32(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),F(Math.trunc,"This browser does not support Math.trunc(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill");var Re=0,Ce=null,Ae=null,je={};function Fe(e){for(var t=e;;){if(!je[e])return e;e=t+Math.random()}}function Le(e){Re++,o.monitorRunDependencies&&o.monitorRunDependencies(Re),e?(F(!je[e]),je[e]=1,null===Ce&&"undefined"!=typeof setInterval&&(Ce=setInterval((function(){if(j)return clearInterval(Ce),void(Ce=null);var e=!1;for(var t in je)e||(e=!0,x("still waiting on run dependencies:")),x("dependency: "+t);e&&x("(end of list)")}),1e4))):x("warning: run dependency added without ID")}function Ie(e){if(Re--,o.monitorRunDependencies&&o.monitorRunDependencies(Re),e?(F(je[e]),delete je[e]):x("warning: run dependency removed without ID"),0==Re&&(null!==Ce&&(clearInterval(Ce),Ce=null),Ae)){var t=Ae;Ae=null,t()}}function Ne(e){o.onAbort&&o.onAbort(e),x(e="Aborted("+e+")"),j=!0,A=1;var t=new WebAssembly.RuntimeError(e);throw r(t),t}o.preloadedImages={},o.preloadedAudios={};var Ue,Be,He,Ve="data:application/octet-stream;base64,";function ze(e){return e.startsWith(Ve)}function Qe(e){return e.startsWith("file://")}function Xe(e,t){return function(){var n=e,r=t;return t||(r=o.asm),F(be,"native function `"+n+"` called before runtime initialization"),F(!we,"native function `"+n+"` called after runtime exit (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),r[e]||F(r[e],"exported native function `"+n+"` not found"),r[e].apply(null,arguments)}}function We(e){try{if(e==Ue&&P)return new Uint8Array(P);if(b)return b(e);throw"both async and sync fetching of the wasm failed"}catch(e){Ne(e)}}function qe(){return P||!p&&!h||"function"!=typeof fetch?Promise.resolve().then((function(){return We(Ue)})):fetch(Ue,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+Ue+"'";return e.arrayBuffer()})).catch((function(){return We(Ue)}))}function Ge(){var e={env:Td,wasi_snapshot_preview1:Td};function t(e,t){var n=e.exports;o.asm=n,F(M=o.asm.memory,"memory not found in wasm exports"),ue(M.buffer),F(le=o.asm.__indirect_function_table,"table not found in wasm exports"),De(o.asm.__wasm_call_ctors),Ie("wasm-instantiate")}Le("wasm-instantiate");var n=o;function i(e){F(o===n,"the Module object should not be replaced during async compilation - perhaps the order of HTML elements is wrong?"),n=null,t(e.instance)}function a(t){return qe().then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){x("failed to asynchronously prepare wasm: "+e),Qe(Ue)&&x("warning: Loading from a file URI ("+Ue+") is not supported in most browsers. See https://emscripten.org/docs/getting_started/FAQ.html#how-do-i-run-a-local-webserver-for-testing-why-does-my-program-stall-in-downloading-or-preparing"),Ne(e)}))}if(o.instantiateWasm)try{return o.instantiateWasm(e,t)}catch(e){return x("Module.instantiateWasm callback failed with error: "+e),!1}return(P||"function"!=typeof WebAssembly.instantiateStreaming||ze(Ue)||"function"!=typeof fetch?a(i):fetch(Ue,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(i,(function(e){return x("wasm streaming compile failed: "+e),x("falling back to ArrayBuffer instantiation"),a(i)}))}))).catch(r),{}}function $e(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var n=t.func;"number"==typeof n?void 0===t.arg?Je(n)():Je(n)(t.arg):n(void 0===t.arg?null:t.arg)}else t(o)}}function Ye(e){return T("warning: build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling"),e}function Ke(e){return e.replace(/\b_Z[\w\d_]+/g,(function(e){var t=Ye(e);return e===t?e:t+" ["+e+"]"}))}ze(Ue="cesdk.wasm")||(Ue=E(Ue));var Ze=[];function Je(e){var t=Ze[e];return t||(e>=Ze.length&&(Ze.length=e+1),Ze[e]=t=le.get(e)),F(le.get(e)==t,"JavaScript-side Wasm function table mirror is out of date!"),t}function et(e){if(e instanceof Vd||"unwind"==e)return A;d(1,e)}function tt(e,t,n,r){Ne("Assertion failed: "+N(e)+", at: "+[t?N(t):"unknown filename",n,r?N(r):"unknown function"])}function nt(e){return Pd(e+16)+16}function rt(e,t){}function ot(e){this.excPtr=e,this.ptr=e-16,this.set_type=function(e){q[this.ptr+4>>2]=e},this.get_type=function(){return q[this.ptr+4>>2]},this.set_destructor=function(e){q[this.ptr+8>>2]=e},this.get_destructor=function(){return q[this.ptr+8>>2]},this.set_refcount=function(e){q[this.ptr>>2]=e},this.set_caught=function(e){e=e?1:0,z[this.ptr+12>>0]=e},this.get_caught=function(){return 0!=z[this.ptr+12>>0]},this.set_rethrown=function(e){e=e?1:0,z[this.ptr+13>>0]=e},this.get_rethrown=function(){return 0!=z[this.ptr+13>>0]},this.init=function(e,t){this.set_type(e),this.set_destructor(t),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var e=q[this.ptr>>2];q[this.ptr>>2]=e+1},this.release_ref=function(){var e=q[this.ptr>>2];return q[this.ptr>>2]=e-1,F(e>0),1===e}}function it(e,t,n){throw new ot(e).init(t,n),e+" - Exception catching is disabled, this exception cannot be caught. Compile with -s NO_DISABLE_EXCEPTION_CATCHING or -s EXCEPTION_CATCHING_ALLOWED=[..] to catch."}function at(e){return q[Sd()>>2]=e,e}var st={splitPath:function(e){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1)},normalizeArray:function(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n;n--)e.unshift("..");return e},normalize:function(e){var t="/"===e.charAt(0),n="/"===e.substr(-1);return(e=st.normalizeArray(e.split("/").filter((function(e){return!!e})),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},dirname:function(e){var t=st.splitPath(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},basename:function(e){if("/"===e)return"/";var t=(e=(e=st.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)},extname:function(e){return st.splitPath(e)[3]},join:function(){var e=Array.prototype.slice.call(arguments,0);return st.normalize(e.join("/"))},join2:function(e,t){return st.normalize(e+"/"+t)}};function ut(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var e=new Uint8Array(1);return function(){return crypto.getRandomValues(e),e[0]}}return function(){Ne("no cryptographic support found for randomDevice. consider polyfilling it if you want to use something insecure like Math.random(), e.g. put this in a --pre-js: var crypto = { getRandomValues: function(array) { for (var i = 0; i < array.length; i++) array[i] = (Math.random()*256)|0 } };")}}var ct={resolve:function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:yt.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";e=r+"/"+e,t="/"===r.charAt(0)}return(t?"/":"")+(e=st.normalizeArray(e.split("/").filter((function(e){return!!e})),!t).join("/"))||"."},relative:function(e,t){function n(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=ct.resolve(e).substr(1),t=ct.resolve(t).substr(1);for(var r=n(e.split("/")),o=n(t.split("/")),i=Math.min(r.length,o.length),a=i,s=0;s<i;s++)if(r[s]!==o[s]){a=s;break}var u=[];for(s=a;s<r.length;s++)u.push("..");return(u=u.concat(o.slice(a))).join("/")}},lt={ttys:[],init:function(){},shutdown:function(){},register:function(e,t){lt.ttys[e]={input:[],output:[],ops:t},yt.registerDevice(e,lt.stream_ops)},stream_ops:{open:function(e){var t=lt.ttys[e.node.rdev];if(!t)throw new yt.ErrnoError(43);e.tty=t,e.seekable=!1},close:function(e){e.tty.ops.flush(e.tty)},flush:function(e){e.tty.ops.flush(e.tty)},read:function(e,t,n,r,o){if(!e.tty||!e.tty.ops.get_char)throw new yt.ErrnoError(60);for(var i=0,a=0;a<r;a++){var s;try{s=e.tty.ops.get_char(e.tty)}catch(e){throw new yt.ErrnoError(29)}if(void 0===s&&0===i)throw new yt.ErrnoError(6);if(null==s)break;i++,t[n+a]=s}return i&&(e.node.timestamp=Date.now()),i},write:function(e,t,n,r,o){if(!e.tty||!e.tty.ops.put_char)throw new yt.ErrnoError(60);try{for(var i=0;i<r;i++)e.tty.ops.put_char(e.tty,t[n+i])}catch(e){throw new yt.ErrnoError(29)}return r&&(e.node.timestamp=Date.now()),i}},default_tty_ops:{get_char:function(e){if(!e.input.length){var t=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(t=window.prompt("Input: "))&&(t+="\n"):"function"==typeof readline&&null!==(t=readline())&&(t+="\n"),!t)return null;e.input=Od(t,!0)}return e.input.shift()},put_char:function(e,t){null===t||10===t?(O(I(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},flush:function(e){e.output&&e.output.length>0&&(O(I(e.output,0)),e.output=[])}},default_tty1_ops:{put_char:function(e,t){null===t||10===t?(x(I(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},flush:function(e){e.output&&e.output.length>0&&(x(I(e.output,0)),e.output=[])}}};function ft(e,t){Q.fill(0,e,e+t)}function dt(e,t){return F(t,"alignment argument is required"),Math.ceil(e/t)*t}function pt(e){e=dt(e,65536);var t=Ld(65536,e);return t?(ft(t,e),t):0}var ht={ops_table:null,mount:function(e){return ht.createNode(null,"/",16895,0)},createNode:function(e,t,n,r){if(yt.isBlkdev(n)||yt.isFIFO(n))throw new yt.ErrnoError(63);ht.ops_table||(ht.ops_table={dir:{node:{getattr:ht.node_ops.getattr,setattr:ht.node_ops.setattr,lookup:ht.node_ops.lookup,mknod:ht.node_ops.mknod,rename:ht.node_ops.rename,unlink:ht.node_ops.unlink,rmdir:ht.node_ops.rmdir,readdir:ht.node_ops.readdir,symlink:ht.node_ops.symlink},stream:{llseek:ht.stream_ops.llseek}},file:{node:{getattr:ht.node_ops.getattr,setattr:ht.node_ops.setattr},stream:{llseek:ht.stream_ops.llseek,read:ht.stream_ops.read,write:ht.stream_ops.write,allocate:ht.stream_ops.allocate,mmap:ht.stream_ops.mmap,msync:ht.stream_ops.msync}},link:{node:{getattr:ht.node_ops.getattr,setattr:ht.node_ops.setattr,readlink:ht.node_ops.readlink},stream:{}},chrdev:{node:{getattr:ht.node_ops.getattr,setattr:ht.node_ops.setattr},stream:yt.chrdev_stream_ops}});var o=yt.createNode(e,t,n,r);return yt.isDir(o.mode)?(o.node_ops=ht.ops_table.dir.node,o.stream_ops=ht.ops_table.dir.stream,o.contents={}):yt.isFile(o.mode)?(o.node_ops=ht.ops_table.file.node,o.stream_ops=ht.ops_table.file.stream,o.usedBytes=0,o.contents=null):yt.isLink(o.mode)?(o.node_ops=ht.ops_table.link.node,o.stream_ops=ht.ops_table.link.stream):yt.isChrdev(o.mode)&&(o.node_ops=ht.ops_table.chrdev.node,o.stream_ops=ht.ops_table.chrdev.stream),o.timestamp=Date.now(),e&&(e.contents[t]=o,e.timestamp=o.timestamp),o},getFileDataAsTypedArray:function(e){return e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0)},expandFileStorage:function(e,t){var n=e.contents?e.contents.length:0;if(!(n>=t)){t=Math.max(t,n*(n<1048576?2:1.125)>>>0),0!=n&&(t=Math.max(t,256));var r=e.contents;e.contents=new Uint8Array(t),e.usedBytes>0&&e.contents.set(r.subarray(0,e.usedBytes),0)}},resizeFileStorage:function(e,t){if(e.usedBytes!=t)if(0==t)e.contents=null,e.usedBytes=0;else{var n=e.contents;e.contents=new Uint8Array(t),n&&e.contents.set(n.subarray(0,Math.min(t,e.usedBytes))),e.usedBytes=t}},node_ops:{getattr:function(e){var t={};return t.dev=yt.isChrdev(e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,yt.isDir(e.mode)?t.size=4096:yt.isFile(e.mode)?t.size=e.usedBytes:yt.isLink(e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.blksize=4096,t.blocks=Math.ceil(t.size/t.blksize),t},setattr:function(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&ht.resizeFileStorage(e,t.size)},lookup:function(e,t){throw yt.genericErrors[44]},mknod:function(e,t,n,r){return ht.createNode(e,t,n,r)},rename:function(e,t,n){if(yt.isDir(e.mode)){var r;try{r=yt.lookupNode(t,n)}catch(e){}if(r)for(var o in r.contents)throw new yt.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=n,t.contents[n]=e,t.timestamp=e.parent.timestamp,e.parent=t},unlink:function(e,t){delete e.contents[t],e.timestamp=Date.now()},rmdir:function(e,t){var n=yt.lookupNode(e,t);for(var r in n.contents)throw new yt.ErrnoError(55);delete e.contents[t],e.timestamp=Date.now()},readdir:function(e){var t=[".",".."];for(var n in e.contents)e.contents.hasOwnProperty(n)&&t.push(n);return t},symlink:function(e,t,n){var r=ht.createNode(e,t,41471,0);return r.link=n,r},readlink:function(e){if(!yt.isLink(e.mode))throw new yt.ErrnoError(28);return e.link}},stream_ops:{read:function(e,t,n,r,o){var i=e.node.contents;if(o>=e.node.usedBytes)return 0;var a=Math.min(e.node.usedBytes-o,r);if(F(a>=0),a>8&&i.subarray)t.set(i.subarray(o,o+a),n);else for(var s=0;s<a;s++)t[n+s]=i[o+s];return a},write:function(e,t,n,r,o,i){if(F(!(t instanceof ArrayBuffer)),t.buffer===z.buffer&&(i=!1),!r)return 0;var a=e.node;if(a.timestamp=Date.now(),t.subarray&&(!a.contents||a.contents.subarray)){if(i)return F(0===o,"canOwn must imply no weird position inside the file"),a.contents=t.subarray(n,n+r),a.usedBytes=r,r;if(0===a.usedBytes&&0===o)return a.contents=t.slice(n,n+r),a.usedBytes=r,r;if(o+r<=a.usedBytes)return a.contents.set(t.subarray(n,n+r),o),r}if(ht.expandFileStorage(a,o+r),a.contents.subarray&&t.subarray)a.contents.set(t.subarray(n,n+r),o);else for(var s=0;s<r;s++)a.contents[o+s]=t[n+s];return a.usedBytes=Math.max(a.usedBytes,o+r),r},llseek:function(e,t,n){var r=t;if(1===n?r+=e.position:2===n&&yt.isFile(e.node.mode)&&(r+=e.node.usedBytes),r<0)throw new yt.ErrnoError(28);return r},allocate:function(e,t,n){ht.expandFileStorage(e.node,t+n),e.node.usedBytes=Math.max(e.node.usedBytes,t+n)},mmap:function(e,t,n,r,o,i){if(0!==t)throw new yt.ErrnoError(28);if(!yt.isFile(e.node.mode))throw new yt.ErrnoError(43);var a,s,u=e.node.contents;if(2&i||u.buffer!==V){if((r>0||r+n<u.length)&&(u=u.subarray?u.subarray(r,r+n):Array.prototype.slice.call(u,r,r+n)),s=!0,!(a=pt(n)))throw new yt.ErrnoError(48);z.set(u,a)}else s=!1,a=u.byteOffset;return{ptr:a,allocated:s}},msync:function(e,t,n,r,o){if(!yt.isFile(e.node.mode))throw new yt.ErrnoError(43);return 2&o||ht.stream_ops.write(e,t,0,r,n,!1),0}}};function gt(e,t,n,r){var o=r?"":Fe("al "+e);y(e,(function(n){F(n,'Loading data file "'+e+'" failed (no arrayBuffer).'),t(new Uint8Array(n)),o&&Ie(o)}),(function(t){if(!n)throw'Loading data file "'+e+'" failed.';n()})),o&&Le(o)}var mt={0:"Success",1:"Arg list too long",2:"Permission denied",3:"Address already in use",4:"Address not available",5:"Address family not supported by protocol family",6:"No more processes",7:"Socket already connected",8:"Bad file number",9:"Trying to read unreadable message",10:"Mount device busy",11:"Operation canceled",12:"No children",13:"Connection aborted",14:"Connection refused",15:"Connection reset by peer",16:"File locking deadlock error",17:"Destination address required",18:"Math arg out of domain of func",19:"Quota exceeded",20:"File exists",21:"Bad address",22:"File too large",23:"Host is unreachable",24:"Identifier removed",25:"Illegal byte sequence",26:"Connection already in progress",27:"Interrupted system call",28:"Invalid argument",29:"I/O error",30:"Socket is already connected",31:"Is a directory",32:"Too many symbolic links",33:"Too many open files",34:"Too many links",35:"Message too long",36:"Multihop attempted",37:"File or path name too long",38:"Network interface is not configured",39:"Connection reset by network",40:"Network is unreachable",41:"Too many open files in system",42:"No buffer space available",43:"No such device",44:"No such file or directory",45:"Exec format error",46:"No record locks available",47:"The link has been severed",48:"Not enough core",49:"No message of desired type",50:"Protocol not available",51:"No space left on device",52:"Function not implemented",53:"Socket is not connected",54:"Not a directory",55:"Directory not empty",56:"State not recoverable",57:"Socket operation on non-socket",59:"Not a typewriter",60:"No such device or address",61:"Value too large for defined data type",62:"Previous owner died",63:"Not super-user",64:"Broken pipe",65:"Protocol error",66:"Unknown protocol",67:"Protocol wrong type for socket",68:"Math result not representable",69:"Read only file system",70:"Illegal seek",71:"No such process",72:"Stale file handle",73:"Connection timed out",74:"Text file busy",75:"Cross-device link",100:"Device not a stream",101:"Bad font file fmt",102:"Invalid slot",103:"Invalid request code",104:"No anode",105:"Block device required",106:"Channel number out of range",107:"Level 3 halted",108:"Level 3 reset",109:"Link number out of range",110:"Protocol driver not attached",111:"No CSI structure available",112:"Level 2 halted",113:"Invalid exchange",114:"Invalid request descriptor",115:"Exchange full",116:"No data (for no delay io)",117:"Timer expired",118:"Out of streams resources",119:"Machine is not on the network",120:"Package not installed",121:"The object is remote",122:"Advertise error",123:"Srmount error",124:"Communication error on send",125:"Cross mount point (not really error)",126:"Given log. name not unique",127:"f.d. invalid for this operation",128:"Remote address changed",129:"Can access a needed shared lib",130:"Accessing a corrupted shared lib",131:".lib section in a.out corrupted",132:"Attempting to link in too many libs",133:"Attempting to exec a shared library",135:"Streams pipe error",136:"Too many users",137:"Socket type not supported",138:"Not supported",139:"Protocol family not supported",140:"Can't send after socket shutdown",141:"Too many references",142:"Host is down",148:"No medium (in tape drive)",156:"Level 2 not synchronized"},vt={},yt={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath:function(e,t){if(t=t||{},!(e=ct.resolve(yt.cwd(),e)))return{path:"",node:null};var n={follow_mount:!0,recurse_count:0};for(var r in n)void 0===t[r]&&(t[r]=n[r]);if(t.recurse_count>8)throw new yt.ErrnoError(32);for(var o=st.normalizeArray(e.split("/").filter((function(e){return!!e})),!1),i=yt.root,a="/",s=0;s<o.length;s++){var u=s===o.length-1;if(u&&t.parent)break;if(i=yt.lookupNode(i,o[s]),a=st.join2(a,o[s]),yt.isMountpoint(i)&&(!u||u&&t.follow_mount)&&(i=i.mounted.root),!u||t.follow)for(var c=0;yt.isLink(i.mode);){var l=yt.readlink(a);if(a=ct.resolve(st.dirname(a),l),i=yt.lookupPath(a,{recurse_count:t.recurse_count}).node,c++>40)throw new yt.ErrnoError(32)}}return{path:a,node:i}},getPath:function(e){for(var t;;){if(yt.isRoot(e)){var n=e.mount.mountpoint;return t?"/"!==n[n.length-1]?n+"/"+t:n+t:n}t=t?e.name+"/"+t:e.name,e=e.parent}},hashName:function(e,t){for(var n=0,r=0;r<t.length;r++)n=(n<<5)-n+t.charCodeAt(r)|0;return(e+n>>>0)%yt.nameTable.length},hashAddNode:function(e){var t=yt.hashName(e.parent.id,e.name);e.name_next=yt.nameTable[t],yt.nameTable[t]=e},hashRemoveNode:function(e){var t=yt.hashName(e.parent.id,e.name);if(yt.nameTable[t]===e)yt.nameTable[t]=e.name_next;else for(var n=yt.nameTable[t];n;){if(n.name_next===e){n.name_next=e.name_next;break}n=n.name_next}},lookupNode:function(e,t){var n=yt.mayLookup(e);if(n)throw new yt.ErrnoError(n,e);for(var r=yt.hashName(e.id,t),o=yt.nameTable[r];o;o=o.name_next){var i=o.name;if(o.parent.id===e.id&&i===t)return o}return yt.lookup(e,t)},createNode:function(e,t,n,r){F("object"==typeof e);var o=new yt.FSNode(e,t,n,r);return yt.hashAddNode(o),o},destroyNode:function(e){yt.hashRemoveNode(e)},isRoot:function(e){return e===e.parent},isMountpoint:function(e){return!!e.mounted},isFile:function(e){return 32768==(61440&e)},isDir:function(e){return 16384==(61440&e)},isLink:function(e){return 40960==(61440&e)},isChrdev:function(e){return 8192==(61440&e)},isBlkdev:function(e){return 24576==(61440&e)},isFIFO:function(e){return 4096==(61440&e)},isSocket:function(e){return 49152==(49152&e)},flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:function(e){var t=yt.flagModes[e];if(void 0===t)throw new Error("Unknown file open mode: "+e);return t},flagsToPermissionString:function(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:function(e,t){return yt.ignorePermissions||(!t.includes("r")||292&e.mode)&&(!t.includes("w")||146&e.mode)&&(!t.includes("x")||73&e.mode)?0:2},mayLookup:function(e){return yt.nodePermissions(e,"x")||(e.node_ops.lookup?0:2)},mayCreate:function(e,t){try{return yt.lookupNode(e,t),20}catch(e){}return yt.nodePermissions(e,"wx")},mayDelete:function(e,t,n){var r;try{r=yt.lookupNode(e,t)}catch(e){return e.errno}var o=yt.nodePermissions(e,"wx");if(o)return o;if(n){if(!yt.isDir(r.mode))return 54;if(yt.isRoot(r)||yt.getPath(r)===yt.cwd())return 10}else if(yt.isDir(r.mode))return 31;return 0},mayOpen:function(e,t){return e?yt.isLink(e.mode)?32:yt.isDir(e.mode)&&("r"!==yt.flagsToPermissionString(t)||512&t)?31:yt.nodePermissions(e,yt.flagsToPermissionString(t)):44},MAX_OPEN_FDS:4096,nextfd:function(e,t){e=e||0,t=t||yt.MAX_OPEN_FDS;for(var n=e;n<=t;n++)if(!yt.streams[n])return n;throw new yt.ErrnoError(33)},getStream:function(e){return yt.streams[e]},createStream:function(e,t,n){yt.FSStream||(yt.FSStream=function(){},yt.FSStream.prototype={object:{get:function(){return this.node},set:function(e){this.node=e}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var r=new yt.FSStream;for(var o in e)r[o]=e[o];e=r;var i=yt.nextfd(t,n);return e.fd=i,yt.streams[i]=e,e},closeStream:function(e){yt.streams[e]=null},chrdev_stream_ops:{open:function(e){var t=yt.getDevice(e.node.rdev);e.stream_ops=t.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek:function(){throw new yt.ErrnoError(70)}},major:function(e){return e>>8},minor:function(e){return 255&e},makedev:function(e,t){return e<<8|t},registerDevice:function(e,t){yt.devices[e]={stream_ops:t}},getDevice:function(e){return yt.devices[e]},getMounts:function(e){for(var t=[],n=[e];n.length;){var r=n.pop();t.push(r),n.push.apply(n,r.mounts)}return t},syncfs:function(e,t){"function"==typeof e&&(t=e,e=!1),yt.syncFSRequests++,yt.syncFSRequests>1&&x("warning: "+yt.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var n=yt.getMounts(yt.root.mount),r=0;function o(e){return F(yt.syncFSRequests>0),yt.syncFSRequests--,t(e)}function i(e){if(e)return i.errored?void 0:(i.errored=!0,o(e));++r>=n.length&&o(null)}n.forEach((function(t){if(!t.type.syncfs)return i(null);t.type.syncfs(t,e,i)}))},mount:function(e,t,n){if("string"==typeof e)throw e;var r,o="/"===n,i=!n;if(o&&yt.root)throw new yt.ErrnoError(10);if(!o&&!i){var a=yt.lookupPath(n,{follow_mount:!1});if(n=a.path,r=a.node,yt.isMountpoint(r))throw new yt.ErrnoError(10);if(!yt.isDir(r.mode))throw new yt.ErrnoError(54)}var s={type:e,opts:t,mountpoint:n,mounts:[]},u=e.mount(s);return u.mount=s,s.root=u,o?yt.root=u:r&&(r.mounted=s,r.mount&&r.mount.mounts.push(s)),u},unmount:function(e){var t=yt.lookupPath(e,{follow_mount:!1});if(!yt.isMountpoint(t.node))throw new yt.ErrnoError(28);var n=t.node,r=n.mounted,o=yt.getMounts(r);Object.keys(yt.nameTable).forEach((function(e){for(var t=yt.nameTable[e];t;){var n=t.name_next;o.includes(t.mount)&&yt.destroyNode(t),t=n}})),n.mounted=null;var i=n.mount.mounts.indexOf(r);F(-1!==i),n.mount.mounts.splice(i,1)},lookup:function(e,t){return e.node_ops.lookup(e,t)},mknod:function(e,t,n){var r=yt.lookupPath(e,{parent:!0}).node,o=st.basename(e);if(!o||"."===o||".."===o)throw new yt.ErrnoError(28);var i=yt.mayCreate(r,o);if(i)throw new yt.ErrnoError(i);if(!r.node_ops.mknod)throw new yt.ErrnoError(63);return r.node_ops.mknod(r,o,t,n)},create:function(e,t){return t=void 0!==t?t:438,t&=4095,t|=32768,yt.mknod(e,t,0)},mkdir:function(e,t){return t=void 0!==t?t:511,t&=1023,t|=16384,yt.mknod(e,t,0)},mkdirTree:function(e,t){for(var n=e.split("/"),r="",o=0;o<n.length;++o)if(n[o]){r+="/"+n[o];try{yt.mkdir(r,t)}catch(e){if(20!=e.errno)throw e}}},mkdev:function(e,t,n){return void 0===n&&(n=t,t=438),t|=8192,yt.mknod(e,t,n)},symlink:function(e,t){if(!ct.resolve(e))throw new yt.ErrnoError(44);var n=yt.lookupPath(t,{parent:!0}).node;if(!n)throw new yt.ErrnoError(44);var r=st.basename(t),o=yt.mayCreate(n,r);if(o)throw new yt.ErrnoError(o);if(!n.node_ops.symlink)throw new yt.ErrnoError(63);return n.node_ops.symlink(n,r,e)},rename:function(e,t){var n,r,o=st.dirname(e),i=st.dirname(t),a=st.basename(e),s=st.basename(t);if(n=yt.lookupPath(e,{parent:!0}).node,r=yt.lookupPath(t,{parent:!0}).node,!n||!r)throw new yt.ErrnoError(44);if(n.mount!==r.mount)throw new yt.ErrnoError(75);var u,c=yt.lookupNode(n,a),l=ct.relative(e,i);if("."!==l.charAt(0))throw new yt.ErrnoError(28);if("."!==(l=ct.relative(t,o)).charAt(0))throw new yt.ErrnoError(55);try{u=yt.lookupNode(r,s)}catch(e){}if(c!==u){var f=yt.isDir(c.mode),d=yt.mayDelete(n,a,f);if(d)throw new yt.ErrnoError(d);if(d=u?yt.mayDelete(r,s,f):yt.mayCreate(r,s))throw new yt.ErrnoError(d);if(!n.node_ops.rename)throw new yt.ErrnoError(63);if(yt.isMountpoint(c)||u&&yt.isMountpoint(u))throw new yt.ErrnoError(10);if(r!==n&&(d=yt.nodePermissions(n,"w")))throw new yt.ErrnoError(d);yt.hashRemoveNode(c);try{n.node_ops.rename(c,r,s)}catch(e){throw e}finally{yt.hashAddNode(c)}}},rmdir:function(e){var t=yt.lookupPath(e,{parent:!0}).node,n=st.basename(e),r=yt.lookupNode(t,n),o=yt.mayDelete(t,n,!0);if(o)throw new yt.ErrnoError(o);if(!t.node_ops.rmdir)throw new yt.ErrnoError(63);if(yt.isMountpoint(r))throw new yt.ErrnoError(10);t.node_ops.rmdir(t,n),yt.destroyNode(r)},readdir:function(e){var t=yt.lookupPath(e,{follow:!0}).node;if(!t.node_ops.readdir)throw new yt.ErrnoError(54);return t.node_ops.readdir(t)},unlink:function(e){var t=yt.lookupPath(e,{parent:!0}).node,n=st.basename(e),r=yt.lookupNode(t,n),o=yt.mayDelete(t,n,!1);if(o)throw new yt.ErrnoError(o);if(!t.node_ops.unlink)throw new yt.ErrnoError(63);if(yt.isMountpoint(r))throw new yt.ErrnoError(10);t.node_ops.unlink(t,n),yt.destroyNode(r)},readlink:function(e){var t=yt.lookupPath(e).node;if(!t)throw new yt.ErrnoError(44);if(!t.node_ops.readlink)throw new yt.ErrnoError(28);return ct.resolve(yt.getPath(t.parent),t.node_ops.readlink(t))},stat:function(e,t){var n=yt.lookupPath(e,{follow:!t}).node;if(!n)throw new yt.ErrnoError(44);if(!n.node_ops.getattr)throw new yt.ErrnoError(63);return n.node_ops.getattr(n)},lstat:function(e){return yt.stat(e,!0)},chmod:function(e,t,n){var r;if(!(r="string"==typeof e?yt.lookupPath(e,{follow:!n}).node:e).node_ops.setattr)throw new yt.ErrnoError(63);r.node_ops.setattr(r,{mode:4095&t|-4096&r.mode,timestamp:Date.now()})},lchmod:function(e,t){yt.chmod(e,t,!0)},fchmod:function(e,t){var n=yt.getStream(e);if(!n)throw new yt.ErrnoError(8);yt.chmod(n.node,t)},chown:function(e,t,n,r){var o;if(!(o="string"==typeof e?yt.lookupPath(e,{follow:!r}).node:e).node_ops.setattr)throw new yt.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown:function(e,t,n){yt.chown(e,t,n,!0)},fchown:function(e,t,n){var r=yt.getStream(e);if(!r)throw new yt.ErrnoError(8);yt.chown(r.node,t,n)},truncate:function(e,t){if(t<0)throw new yt.ErrnoError(28);var n;if(!(n="string"==typeof e?yt.lookupPath(e,{follow:!0}).node:e).node_ops.setattr)throw new yt.ErrnoError(63);if(yt.isDir(n.mode))throw new yt.ErrnoError(31);if(!yt.isFile(n.mode))throw new yt.ErrnoError(28);var r=yt.nodePermissions(n,"w");if(r)throw new yt.ErrnoError(r);n.node_ops.setattr(n,{size:t,timestamp:Date.now()})},ftruncate:function(e,t){var n=yt.getStream(e);if(!n)throw new yt.ErrnoError(8);if(0==(2097155&n.flags))throw new yt.ErrnoError(28);yt.truncate(n.node,t)},utime:function(e,t,n){var r=yt.lookupPath(e,{follow:!0}).node;r.node_ops.setattr(r,{timestamp:Math.max(t,n)})},open:function(e,t,n,r,i){if(""===e)throw new yt.ErrnoError(44);var a;if(n=void 0===n?438:n,n=64&(t="string"==typeof t?yt.modeStringToFlags(t):t)?4095&n|32768:0,"object"==typeof e)a=e;else{e=st.normalize(e);try{a=yt.lookupPath(e,{follow:!(131072&t)}).node}catch(e){}}var s=!1;if(64&t)if(a){if(128&t)throw new yt.ErrnoError(20)}else a=yt.mknod(e,n,0),s=!0;if(!a)throw new yt.ErrnoError(44);if(yt.isChrdev(a.mode)&&(t&=-513),65536&t&&!yt.isDir(a.mode))throw new yt.ErrnoError(54);if(!s){var u=yt.mayOpen(a,t);if(u)throw new yt.ErrnoError(u)}512&t&&yt.truncate(a,0),t&=-131713;var c=yt.createStream({node:a,path:yt.getPath(a),id:a.id,flags:t,mode:a.mode,seekable:!0,position:0,stream_ops:a.stream_ops,node_ops:a.node_ops,ungotten:[],error:!1},r,i);return c.stream_ops.open&&c.stream_ops.open(c),!o.logReadFiles||1&t||(yt.readFiles||(yt.readFiles={}),e in yt.readFiles||(yt.readFiles[e]=1)),c},close:function(e){if(yt.isClosed(e))throw new yt.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{yt.closeStream(e.fd)}e.fd=null},isClosed:function(e){return null===e.fd},llseek:function(e,t,n){if(yt.isClosed(e))throw new yt.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new yt.ErrnoError(70);if(0!=n&&1!=n&&2!=n)throw new yt.ErrnoError(28);return e.position=e.stream_ops.llseek(e,t,n),e.ungotten=[],e.position},read:function(e,t,n,r,o){if(r<0||o<0)throw new yt.ErrnoError(28);if(yt.isClosed(e))throw new yt.ErrnoError(8);if(1==(2097155&e.flags))throw new yt.ErrnoError(8);if(yt.isDir(e.node.mode))throw new yt.ErrnoError(31);if(!e.stream_ops.read)throw new yt.ErrnoError(28);var i=void 0!==o;if(i){if(!e.seekable)throw new yt.ErrnoError(70)}else o=e.position;var a=e.stream_ops.read(e,t,n,r,o);return i||(e.position+=a),a},write:function(e,t,n,r,o,i){if(r<0||o<0)throw new yt.ErrnoError(28);if(yt.isClosed(e))throw new yt.ErrnoError(8);if(0==(2097155&e.flags))throw new yt.ErrnoError(8);if(yt.isDir(e.node.mode))throw new yt.ErrnoError(31);if(!e.stream_ops.write)throw new yt.ErrnoError(28);e.seekable&&1024&e.flags&&yt.llseek(e,0,2);var a=void 0!==o;if(a){if(!e.seekable)throw new yt.ErrnoError(70)}else o=e.position;var s=e.stream_ops.write(e,t,n,r,o,i);return a||(e.position+=s),s},allocate:function(e,t,n){if(yt.isClosed(e))throw new yt.ErrnoError(8);if(t<0||n<=0)throw new yt.ErrnoError(28);if(0==(2097155&e.flags))throw new yt.ErrnoError(8);if(!yt.isFile(e.node.mode)&&!yt.isDir(e.node.mode))throw new yt.ErrnoError(43);if(!e.stream_ops.allocate)throw new yt.ErrnoError(138);e.stream_ops.allocate(e,t,n)},mmap:function(e,t,n,r,o,i){if(0!=(2&o)&&0==(2&i)&&2!=(2097155&e.flags))throw new yt.ErrnoError(2);if(1==(2097155&e.flags))throw new yt.ErrnoError(2);if(!e.stream_ops.mmap)throw new yt.ErrnoError(43);return e.stream_ops.mmap(e,t,n,r,o,i)},msync:function(e,t,n,r,o){return e&&e.stream_ops.msync?e.stream_ops.msync(e,t,n,r,o):0},munmap:function(e){return 0},ioctl:function(e,t,n){if(!e.stream_ops.ioctl)throw new yt.ErrnoError(59);return e.stream_ops.ioctl(e,t,n)},readFile:function(e,t){if((t=t||{}).flags=t.flags||0,t.encoding=t.encoding||"binary","utf8"!==t.encoding&&"binary"!==t.encoding)throw new Error('Invalid encoding type "'+t.encoding+'"');var n,r=yt.open(e,t.flags),o=yt.stat(e).size,i=new Uint8Array(o);return yt.read(r,i,0,o,0),"utf8"===t.encoding?n=I(i,0):"binary"===t.encoding&&(n=i),yt.close(r),n},writeFile:function(e,t,n){(n=n||{}).flags=n.flags||577;var r=yt.open(e,n.flags,n.mode);if("string"==typeof t){var o=new Uint8Array(H(t)+1),i=U(t,o,0,o.length);yt.write(r,o,0,i,void 0,n.canOwn)}else{if(!ArrayBuffer.isView(t))throw new Error("Unsupported data type");yt.write(r,t,0,t.byteLength,void 0,n.canOwn)}yt.close(r)},cwd:function(){return yt.currentPath},chdir:function(e){var t=yt.lookupPath(e,{follow:!0});if(null===t.node)throw new yt.ErrnoError(44);if(!yt.isDir(t.node.mode))throw new yt.ErrnoError(54);var n=yt.nodePermissions(t.node,"x");if(n)throw new yt.ErrnoError(n);yt.currentPath=t.path},createDefaultDirectories:function(){yt.mkdir("/tmp"),yt.mkdir("/home"),yt.mkdir("/home/web_user")},createDefaultDevices:function(){yt.mkdir("/dev"),yt.registerDevice(yt.makedev(1,3),{read:function(){return 0},write:function(e,t,n,r,o){return r}}),yt.mkdev("/dev/null",yt.makedev(1,3)),lt.register(yt.makedev(5,0),lt.default_tty_ops),lt.register(yt.makedev(6,0),lt.default_tty1_ops),yt.mkdev("/dev/tty",yt.makedev(5,0)),yt.mkdev("/dev/tty1",yt.makedev(6,0));var e=ut();yt.createDevice("/dev","random",e),yt.createDevice("/dev","urandom",e),yt.mkdir("/dev/shm"),yt.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){yt.mkdir("/proc");var e=yt.mkdir("/proc/self");yt.mkdir("/proc/self/fd"),yt.mount({mount:function(){var t=yt.createNode(e,"fd",16895,73);return t.node_ops={lookup:function(e,t){var n=+t,r=yt.getStream(n);if(!r)throw new yt.ErrnoError(8);var o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return r.path}}};return o.parent=o,o}},t}},{},"/proc/self/fd")},createStandardStreams:function(){o.stdin?yt.createDevice("/dev","stdin",o.stdin):yt.symlink("/dev/tty","/dev/stdin"),o.stdout?yt.createDevice("/dev","stdout",null,o.stdout):yt.symlink("/dev/tty","/dev/stdout"),o.stderr?yt.createDevice("/dev","stderr",null,o.stderr):yt.symlink("/dev/tty1","/dev/stderr");var e=yt.open("/dev/stdin",0),t=yt.open("/dev/stdout",1),n=yt.open("/dev/stderr",1);F(0===e.fd,"invalid handle for stdin ("+e.fd+")"),F(1===t.fd,"invalid handle for stdout ("+t.fd+")"),F(2===n.fd,"invalid handle for stderr ("+n.fd+")")},ensureErrnoError:function(){yt.ErrnoError||(yt.ErrnoError=function(e,t){this.node=t,this.setErrno=function(e){for(var t in this.errno=e,vt)if(vt[t]===e){this.code=t;break}},this.setErrno(e),this.message=mt[e],this.stack&&(Object.defineProperty(this,"stack",{value:(new Error).stack,writable:!0}),this.stack=Ke(this.stack))},yt.ErrnoError.prototype=new Error,yt.ErrnoError.prototype.constructor=yt.ErrnoError,[44].forEach((function(e){yt.genericErrors[e]=new yt.ErrnoError(e),yt.genericErrors[e].stack="<generic error, no stack>"})))},staticInit:function(){yt.ensureErrnoError(),yt.nameTable=new Array(4096),yt.mount(ht,{},"/"),yt.createDefaultDirectories(),yt.createDefaultDevices(),yt.createSpecialDirectories(),yt.filesystems={MEMFS:ht}},init:function(e,t,n){F(!yt.init.initialized,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)"),yt.init.initialized=!0,yt.ensureErrnoError(),o.stdin=e||o.stdin,o.stdout=t||o.stdout,o.stderr=n||o.stderr,yt.createStandardStreams()},quit:function(){yt.init.initialized=!1;var e=o._fflush;e&&e(0);for(var t=0;t<yt.streams.length;t++){var n=yt.streams[t];n&&yt.close(n)}},getMode:function(e,t){var n=0;return e&&(n|=365),t&&(n|=146),n},findObject:function(e,t){var n=yt.analyzePath(e,t);return n.exists?n.object:null},analyzePath:function(e,t){try{e=(r=yt.lookupPath(e,{follow:!t})).path}catch(e){}var n={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var r=yt.lookupPath(e,{parent:!0});n.parentExists=!0,n.parentPath=r.path,n.parentObject=r.node,n.name=st.basename(e),r=yt.lookupPath(e,{follow:!t}),n.exists=!0,n.path=r.path,n.object=r.node,n.name=r.node.name,n.isRoot="/"===r.path}catch(e){n.error=e.errno}return n},createPath:function(e,t,n,r){e="string"==typeof e?e:yt.getPath(e);for(var o=t.split("/").reverse();o.length;){var i=o.pop();if(i){var a=st.join2(e,i);try{yt.mkdir(a)}catch(e){}e=a}}return a},createFile:function(e,t,n,r,o){var i=st.join2("string"==typeof e?e:yt.getPath(e),t),a=yt.getMode(r,o);return yt.create(i,a)},createDataFile:function(e,t,n,r,o,i){var a=t?st.join2("string"==typeof e?e:yt.getPath(e),t):e,s=yt.getMode(r,o),u=yt.create(a,s);if(n){if("string"==typeof n){for(var c=new Array(n.length),l=0,f=n.length;l<f;++l)c[l]=n.charCodeAt(l);n=c}yt.chmod(u,146|s);var d=yt.open(u,577);yt.write(d,n,0,n.length,0,i),yt.close(d),yt.chmod(u,s)}return u},createDevice:function(e,t,n,r){var o=st.join2("string"==typeof e?e:yt.getPath(e),t),i=yt.getMode(!!n,!!r);yt.createDevice.major||(yt.createDevice.major=64);var a=yt.makedev(yt.createDevice.major++,0);return yt.registerDevice(a,{open:function(e){e.seekable=!1},close:function(e){r&&r.buffer&&r.buffer.length&&r(10)},read:function(e,t,r,o,i){for(var a=0,s=0;s<o;s++){var u;try{u=n()}catch(e){throw new yt.ErrnoError(29)}if(void 0===u&&0===a)throw new yt.ErrnoError(6);if(null==u)break;a++,t[r+s]=u}return a&&(e.node.timestamp=Date.now()),a},write:function(e,t,n,o,i){for(var a=0;a<o;a++)try{r(t[n+a])}catch(e){throw new yt.ErrnoError(29)}return o&&(e.node.timestamp=Date.now()),a}}),yt.mkdev(o,i,a)},forceLoadFile:function(e){if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!v)throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=Od(v(e.url),!0),e.usedBytes=e.contents.length}catch(e){throw new yt.ErrnoError(29)}},createLazyFile:function(e,t,n,r,o){function i(){this.lengthKnown=!1,this.chunks=[]}if(i.prototype.get=function(e){if(!(e>this.length-1||e<0)){var t=e%this.chunkSize,n=e/this.chunkSize|0;return this.getter(n)[t]}},i.prototype.setDataGetter=function(e){this.getter=e},i.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",n,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+n+". Status: "+e.status);var t,r=Number(e.getResponseHeader("Content-length")),o=(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t,i=(t=e.getResponseHeader("Content-Encoding"))&&"gzip"===t,a=1048576;o||(a=r);var s=this;s.setDataGetter((function(e){var t=e*a,o=(e+1)*a-1;if(o=Math.min(o,r-1),void 0===s.chunks[e]&&(s.chunks[e]=function(e,t){if(e>t)throw new Error("invalid range ("+e+", "+t+") or no bytes requested!");if(t>r-1)throw new Error("only "+r+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",n,!1),r!==a&&o.setRequestHeader("Range","bytes="+e+"-"+t),"undefined"!=typeof Uint8Array&&(o.responseType="arraybuffer"),o.overrideMimeType&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.send(null),!(o.status>=200&&o.status<300||304===o.status))throw new Error("Couldn't load "+n+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):Od(o.responseText||"",!0)}(t,o)),void 0===s.chunks[e])throw new Error("doXHR failed!");return s.chunks[e]})),!i&&r||(a=r=1,r=this.getter(0).length,a=r,O("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=r,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!h)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a=new i;Object.defineProperties(a,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var s={isDevice:!1,contents:a}}else s={isDevice:!1,url:n};var u=yt.createFile(e,t,s,r,o);s.contents?u.contents=s.contents:s.url&&(u.contents=null,u.url=s.url),Object.defineProperties(u,{usedBytes:{get:function(){return this.contents.length}}});var c={};return Object.keys(u.stream_ops).forEach((function(e){var t=u.stream_ops[e];c[e]=function(){return yt.forceLoadFile(u),t.apply(null,arguments)}})),c.read=function(e,t,n,r,o){yt.forceLoadFile(u);var i=e.node.contents;if(o>=i.length)return 0;var a=Math.min(i.length-o,r);if(F(a>=0),i.slice)for(var s=0;s<a;s++)t[n+s]=i[o+s];else for(s=0;s<a;s++)t[n+s]=i.get(o+s);return a},u.stream_ops=c,u},createPreloadedFile:function(e,t,n,r,i,a,s,u,c,l){lo.init();var f=t?ct.resolve(st.join2(e,t)):e,d=Fe("cp "+f);function p(n){function p(n){l&&l(),u||yt.createDataFile(e,t,n,r,i,c),a&&a(),Ie(d)}var h=!1;o.preloadPlugins.forEach((function(e){h||e.canHandle(f)&&(e.handle(n,f,p,(function(){s&&s(),Ie(d)})),h=!0)})),h||p(n)}Le(d),"string"==typeof n?gt(n,(function(e){p(e)}),s):p(n)},indexedDB:function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},DB_NAME:function(){return"EM_FS_"+window.location.pathname},DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:function(e,t,n){t=t||function(){},n=n||function(){};var r=yt.indexedDB();try{var o=r.open(yt.DB_NAME(),yt.DB_VERSION)}catch(e){return n(e)}o.onupgradeneeded=function(){O("creating db"),o.result.createObjectStore(yt.DB_STORE_NAME)},o.onsuccess=function(){var r=o.result.transaction([yt.DB_STORE_NAME],"readwrite"),i=r.objectStore(yt.DB_STORE_NAME),a=0,s=0,u=e.length;function c(){0==s?t():n()}e.forEach((function(e){var t=i.put(yt.analyzePath(e).object.contents,e);t.onsuccess=function(){++a+s==u&&c()},t.onerror=function(){s++,a+s==u&&c()}})),r.onerror=n},o.onerror=n},loadFilesFromDB:function(e,t,n){t=t||function(){},n=n||function(){};var r=yt.indexedDB();try{var o=r.open(yt.DB_NAME(),yt.DB_VERSION)}catch(e){return n(e)}o.onupgradeneeded=n,o.onsuccess=function(){var r=o.result;try{var i=r.transaction([yt.DB_STORE_NAME],"readonly")}catch(e){return void n(e)}var a=i.objectStore(yt.DB_STORE_NAME),s=0,u=0,c=e.length;function l(){0==u?t():n()}e.forEach((function(e){var t=a.get(e);t.onsuccess=function(){yt.analyzePath(e).exists&&yt.unlink(e),yt.createDataFile(st.dirname(e),st.basename(e),t.result,!0,!0,!0),++s+u==c&&l()},t.onerror=function(){u++,s+u==c&&l()}})),i.onerror=n},o.onerror=n},absolutePath:function(){Ne("FS.absolutePath has been removed; use PATH_FS.resolve instead")},createFolder:function(){Ne("FS.createFolder has been removed; use FS.mkdir instead")},createLink:function(){Ne("FS.createLink has been removed; use FS.symlink instead")},joinPath:function(){Ne("FS.joinPath has been removed; use PATH.join instead")},mmapAlloc:function(){Ne("FS.mmapAlloc has been replaced by the top level function mmapAlloc")},standardizePath:function(){Ne("FS.standardizePath has been removed; use PATH.normalize instead")}},bt={mappings:{},DEFAULT_POLLMASK:5,calculateAt:function(e,t,n){if("/"===t[0])return t;var r;if(-100===e)r=yt.cwd();else{var o=yt.getStream(e);if(!o)throw new yt.ErrnoError(8);r=o.path}if(0==t.length){if(!n)throw new yt.ErrnoError(44);return r}return st.join2(r,t)},doStat:function(e,t,n){try{var r=e(t)}catch(e){if(e&&e.node&&st.normalize(t)!==st.normalize(yt.getPath(e.node)))return-54;throw e}return q[n>>2]=r.dev,q[n+4>>2]=0,q[n+8>>2]=r.ino,q[n+12>>2]=r.mode,q[n+16>>2]=r.nlink,q[n+20>>2]=r.uid,q[n+24>>2]=r.gid,q[n+28>>2]=r.rdev,q[n+32>>2]=0,He=[r.size>>>0,(Be=r.size,+Math.abs(Be)>=1?Be>0?(0|Math.min(+Math.floor(Be/4294967296),4294967295))>>>0:~~+Math.ceil((Be-+(~~Be>>>0))/4294967296)>>>0:0)],q[n+40>>2]=He[0],q[n+44>>2]=He[1],q[n+48>>2]=4096,q[n+52>>2]=r.blocks,q[n+56>>2]=r.atime.getTime()/1e3|0,q[n+60>>2]=0,q[n+64>>2]=r.mtime.getTime()/1e3|0,q[n+68>>2]=0,q[n+72>>2]=r.ctime.getTime()/1e3|0,q[n+76>>2]=0,He=[r.ino>>>0,(Be=r.ino,+Math.abs(Be)>=1?Be>0?(0|Math.min(+Math.floor(Be/4294967296),4294967295))>>>0:~~+Math.ceil((Be-+(~~Be>>>0))/4294967296)>>>0:0)],q[n+80>>2]=He[0],q[n+84>>2]=He[1],0},doMsync:function(e,t,n,r,o){var i=Q.slice(e,e+n);yt.msync(t,i,o,n,r)},doMkdir:function(e,t){return"/"===(e=st.normalize(e))[e.length-1]&&(e=e.substr(0,e.length-1)),yt.mkdir(e,t,0),0},doMknod:function(e,t,n){switch(61440&t){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return yt.mknod(e,t,n),0},doReadlink:function(e,t,n){if(n<=0)return-28;var r=yt.readlink(e),o=Math.min(n,H(r)),i=z[t+o];return B(r,t,n+1),z[t+o]=i,o},doAccess:function(e,t){if(-8&t)return-28;var n;if(!(n=yt.lookupPath(e,{follow:!0}).node))return-44;var r="";return 4&t&&(r+="r"),2&t&&(r+="w"),1&t&&(r+="x"),r&&yt.nodePermissions(n,r)?-2:0},doDup:function(e,t,n){var r=yt.getStream(n);return r&&yt.close(r),yt.open(e,t,0,n,n).fd},doReadv:function(e,t,n,r){for(var o=0,i=0;i<n;i++){var a=q[t+8*i>>2],s=q[t+(8*i+4)>>2],u=yt.read(e,z,a,s,r);if(u<0)return-1;if(o+=u,u<s)break}return o},doWritev:function(e,t,n,r){for(var o=0,i=0;i<n;i++){var a=q[t+8*i>>2],s=q[t+(8*i+4)>>2],u=yt.write(e,z,a,s,r);if(u<0)return-1;o+=u}return o},varargs:void 0,get:function(){return F(null!=bt.varargs),bt.varargs+=4,q[bt.varargs-4>>2]},getStr:function(e){return N(e)},getStreamFromFD:function(e){var t=yt.getStream(e);if(!t)throw new yt.ErrnoError(8);return t},get64:function(e,t){return F(e>=0?0===t:-1===t),e}};function wt(e,t,n){bt.varargs=n;try{var r=bt.getStreamFromFD(e);switch(t){case 0:return(o=bt.get())<0?-28:yt.open(r.path,r.flags,0,o).fd;case 1:case 2:return 0;case 3:return r.flags;case 4:var o=bt.get();return r.flags|=o,0;case 12:return o=bt.get(),X[o+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return at(28),-1;default:return-28}}catch(e){return void 0!==yt&&e instanceof yt.ErrnoError||Ne(e),-e.errno}}function Et(e,t){try{var n=bt.getStreamFromFD(e);return bt.doStat(yt.stat,n.path,t)}catch(e){return void 0!==yt&&e instanceof yt.ErrnoError||Ne(e),-e.errno}}function _t(e,t,n){bt.varargs=n;try{var r=bt.getStreamFromFD(e);switch(t){case 21509:case 21505:return r.tty?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return r.tty?0:-59;case 21519:if(!r.tty)return-59;var o=bt.get();return q[o>>2]=0,0;case 21520:return r.tty?-28:-59;case 21531:return o=bt.get(),yt.ioctl(r,t,o);case 21523:case 21524:return r.tty?0:-59;default:Ne("bad ioctl syscall "+t)}}catch(e){return void 0!==yt&&e instanceof yt.ErrnoError||Ne(e),-e.errno}}function Ot(e,t,n,r,o,i){var a;i<<=12;var s=!1;if(0!=(16&r)&&e%65536!=0)return-28;if(0!=(32&r)){if(!(a=pt(t)))return-48;s=!0}else{var u=yt.getStream(o);if(!u)return-8;var c=yt.mmap(u,e,t,i,n,r);a=c.ptr,s=c.allocated}return bt.mappings[a]={malloc:a,len:t,allocated:s,fd:o,prot:n,flags:r,offset:i},a}function xt(e,t,n,r,o,i){try{return Ot(e,t,n,r,o,i)}catch(e){return void 0!==yt&&e instanceof yt.ErrnoError||Ne(e),-e.errno}}function Tt(e,t){var n=bt.mappings[e];if(0===t||!n)return-28;if(t===n.len){var r=yt.getStream(n.fd);r&&(2&n.prot&&bt.doMsync(e,r,t,n.flags,n.offset),yt.munmap(r)),bt.mappings[e]=null,n.allocated&&kd(n.malloc)}return 0}function Pt(e,t){try{return Tt(e,t)}catch(e){return void 0!==yt&&e instanceof yt.ErrnoError||Ne(e),-e.errno}}function kt(e,t,n){bt.varargs=n;try{var r=bt.getStr(e),o=n?bt.get():0;return yt.open(r,t,o).fd}catch(e){return void 0!==yt&&e instanceof yt.ErrnoError||Ne(e),-e.errno}}function St(e,t){Ne("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function Dt(e,t){Ne("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}var Mt={};function Rt(e){for(;e.length;){var t=e.pop();e.pop()(t)}}function Ct(e){return this.fromWireType(G[e>>2])}var At={},jt={},Ft={},Lt=48,It=57;function Nt(e){if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=Lt&&t<=It?"_"+e:e}function Ut(e,t){return e=Nt(e),new Function("body","return function "+e+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(t)}function Bt(e,t){var n=Ut(t,(function(e){this.name=t,this.message=e;var n=new Error(e).stack;void 0!==n&&(this.stack=this.toString()+"\n"+n.replace(/^Error(:[^\n]*)?\n/,""))}));return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},n}var Ht=void 0;function Vt(e){throw new Ht(e)}function zt(e,t,n){function r(t){var r=n(t);r.length!==e.length&&Vt("Mismatched type converter count");for(var o=0;o<e.length;++o)Zt(e[o],r[o])}e.forEach((function(e){Ft[e]=t}));var o=new Array(t.length),i=[],a=0;t.forEach((function(e,t){jt.hasOwnProperty(e)?o[t]=jt[e]:(i.push(e),At.hasOwnProperty(e)||(At[e]=[]),At[e].push((function(){o[t]=jt[e],++a===i.length&&r(o)})))})),0===i.length&&r(o)}function Qt(e){var t=Mt[e];delete Mt[e];var n=t.rawConstructor,r=t.rawDestructor,o=t.fields;zt([e],o.map((function(e){return e.getterReturnType})).concat(o.map((function(e){return e.setterArgumentType}))),(function(e){var i={};return o.forEach((function(t,n){var r=t.fieldName,a=e[n],s=t.getter,u=t.getterContext,c=e[n+o.length],l=t.setter,f=t.setterContext;i[r]={read:function(e){return a.fromWireType(s(u,e))},write:function(e,t){var n=[];l(f,e,c.toWireType(n,t)),Rt(n)}}})),[{name:t.name,fromWireType:function(e){var t={};for(var n in i)t[n]=i[n].read(e);return r(e),t},toWireType:function(e,t){for(var o in i)if(!(o in t))throw new TypeError('Missing field: "'+o+'"');var a=n();for(o in i)i[o].write(a,t[o]);return null!==e&&e.push(r,a),a},argPackAdvance:8,readValueFromPointer:Ct,destructorFunction:r}]}))}function Xt(e,t,n,r,o){}function Wt(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+e)}}function qt(){for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);Gt=e}var Gt=void 0;function $t(e){for(var t="",n=e;Q[n];)t+=Gt[Q[n++]];return t}var Yt=void 0;function Kt(e){throw new Yt(e)}function Zt(e,t,n){if(n=n||{},!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");var r=t.name;if(e||Kt('type "'+r+'" must have a positive integer typeid pointer'),jt.hasOwnProperty(e)){if(n.ignoreDuplicateRegistrations)return;Kt("Cannot register type '"+r+"' twice")}if(jt[e]=t,delete Ft[e],At.hasOwnProperty(e)){var o=At[e];delete At[e],o.forEach((function(e){e()}))}}function Jt(e,t,n,r,o){var i=Wt(n);Zt(e,{name:t=$t(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?r:o},argPackAdvance:8,readValueFromPointer:function(e){var r;if(1===n)r=z;else if(2===n)r=X;else{if(4!==n)throw new TypeError("Unknown boolean type size: "+t);r=q}return this.fromWireType(r[e>>i])},destructorFunction:null})}function en(e){if(!(this instanceof vn))return!1;if(!(e instanceof vn))return!1;for(var t=this.$$.ptrType.registeredClass,n=this.$$.ptr,r=e.$$.ptrType.registeredClass,o=e.$$.ptr;t.baseClass;)n=t.upcast(n),t=t.baseClass;for(;r.baseClass;)o=r.upcast(o),r=r.baseClass;return t===r&&n===o}function tn(e){return{count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}}function nn(e){Kt(e.$$.ptrType.registeredClass.name+" instance already deleted")}var rn=!1;function on(e){}function an(e){e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)}function sn(e){e.count.value-=1,0===e.count.value&&an(e)}function un(e){return"undefined"==typeof FinalizationRegistry?(un=function(e){return e},e):(rn=new FinalizationRegistry((function(e){console.warn(e.leakWarning.stack.replace(/^Error: /,"")),sn(e.$$)})),on=function(e){rn.unregister(e)},(un=function(e){var t=e.$$,n={$$:t},r=t.ptrType.registeredClass;return n.leakWarning=new Error("Embind found a leaked C++ instance "+r.name+" <0x"+t.ptr.toString(16)+">.\nWe'll free it automatically in this case, but this functionality is not reliable across various environments.\nMake sure to invoke .delete() manually once you're done with the instance instead.\nOriginally allocated"),"captureStackTrace"in Error&&Error.captureStackTrace(n.leakWarning,r.constructor),rn.register(e,n,e),e})(e))}function cn(){if(this.$$.ptr||nn(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=un(Object.create(Object.getPrototypeOf(this),{$$:{value:tn(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e}function ln(){this.$$.ptr||nn(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Kt("Object already scheduled for deletion"),on(this),sn(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function fn(){return!this.$$.ptr}var dn=void 0,pn=[];function hn(){for(;pn.length;){var e=pn.pop();e.$$.deleteScheduled=!1,e.delete()}}function gn(){return this.$$.ptr||nn(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Kt("Object already scheduled for deletion"),pn.push(this),1===pn.length&&dn&&dn(hn),this.$$.deleteScheduled=!0,this}function mn(){vn.prototype.isAliasOf=en,vn.prototype.clone=cn,vn.prototype.delete=ln,vn.prototype.isDeleted=fn,vn.prototype.deleteLater=gn}function vn(){}var yn={};function bn(e,t,n){if(void 0===e[t].overloadTable){var r=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||Kt("Function '"+n+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+e[t].overloadTable+")!"),e[t].overloadTable[arguments.length].apply(this,arguments)},e[t].overloadTable=[],e[t].overloadTable[r.argCount]=r}}function wn(e,t,n){o.hasOwnProperty(e)?((void 0===n||void 0!==o[e].overloadTable&&void 0!==o[e].overloadTable[n])&&Kt("Cannot register public name '"+e+"' twice"),bn(o,e,e),o.hasOwnProperty(n)&&Kt("Cannot register multiple overloads of a function with the same number of arguments ("+n+")!"),o[e].overloadTable[n]=t):(o[e]=t,void 0!==n&&(o[e].numArguments=n))}function En(e,t,n,r,o,i,a,s){this.name=e,this.constructor=t,this.instancePrototype=n,this.rawDestructor=r,this.baseClass=o,this.getActualType=i,this.upcast=a,this.downcast=s,this.pureVirtualFunctions=[]}function _n(e,t,n){for(;t!==n;)t.upcast||Kt("Expected null or instance of "+n.name+", got an instance of "+t.name),e=t.upcast(e),t=t.baseClass;return e}function On(e,t){if(null===t)return this.isReference&&Kt("null is not a valid "+this.name),0;t.$$||Kt('Cannot pass "'+pr(t)+'" as a '+this.name),t.$$.ptr||Kt("Cannot pass deleted object as a pointer of type "+this.name);var n=t.$$.ptrType.registeredClass;return _n(t.$$.ptr,n,this.registeredClass)}function xn(e,t){var n;if(null===t)return this.isReference&&Kt("null is not a valid "+this.name),this.isSmartPointer?(n=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,n),n):0;t.$$||Kt('Cannot pass "'+pr(t)+'" as a '+this.name),t.$$.ptr||Kt("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&t.$$.ptrType.isConst&&Kt("Cannot convert argument of type "+(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name)+" to parameter type "+this.name);var r=t.$$.ptrType.registeredClass;if(n=_n(t.$$.ptr,r,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&Kt("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?n=t.$$.smartPtr:Kt("Cannot convert argument of type "+(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:n=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)n=t.$$.smartPtr;else{var o=t.clone();n=this.rawShare(n,sr.toHandle((function(){o.delete()}))),null!==e&&e.push(this.rawDestructor,n)}break;default:Kt("Unsupporting sharing policy")}return n}function Tn(e,t){if(null===t)return this.isReference&&Kt("null is not a valid "+this.name),0;t.$$||Kt('Cannot pass "'+pr(t)+'" as a '+this.name),t.$$.ptr||Kt("Cannot pass deleted object as a pointer of type "+this.name),t.$$.ptrType.isConst&&Kt("Cannot convert argument of type "+t.$$.ptrType.name+" to parameter type "+this.name);var n=t.$$.ptrType.registeredClass;return _n(t.$$.ptr,n,this.registeredClass)}function Pn(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e}function kn(e){this.rawDestructor&&this.rawDestructor(e)}function Sn(e){null!==e&&e.delete()}function Dn(e,t,n){if(t===n)return e;if(void 0===n.baseClass)return null;var r=Dn(e,t,n.baseClass);return null===r?null:n.downcast(r)}function Mn(){return Object.keys(jn).length}function Rn(){var e=[];for(var t in jn)jn.hasOwnProperty(t)&&e.push(jn[t]);return e}function Cn(e){dn=e,pn.length&&dn&&dn(hn)}function An(){o.getInheritedInstanceCount=Mn,o.getLiveInheritedInstances=Rn,o.flushPendingDeletes=hn,o.setDelayFunction=Cn}var jn={};function Fn(e,t){for(void 0===t&&Kt("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t}function Ln(e,t){return t=Fn(e,t),jn[t]}function In(e,t){return t.ptrType&&t.ptr||Vt("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!=!!t.smartPtr&&Vt("Both smartPtrType and smartPtr must be specified"),t.count={value:1},un(Object.create(e,{$$:{value:t}}))}function Nn(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var n=Ln(this.registeredClass,t);if(void 0!==n){if(0===n.$$.count.value)return n.$$.ptr=t,n.$$.smartPtr=e,n.clone();var r=n.clone();return this.destructor(e),r}function o(){return this.isSmartPointer?In(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):In(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var i,a=this.registeredClass.getActualType(t),s=yn[a];if(!s)return o.call(this);i=this.isConst?s.constPointerType:s.pointerType;var u=Dn(t,this.registeredClass,i.registeredClass);return null===u?o.call(this):this.isSmartPointer?In(i.registeredClass.instancePrototype,{ptrType:i,ptr:u,smartPtrType:this,smartPtr:e}):In(i.registeredClass.instancePrototype,{ptrType:i,ptr:u})}function Un(){Bn.prototype.getPointee=Pn,Bn.prototype.destructor=kn,Bn.prototype.argPackAdvance=8,Bn.prototype.readValueFromPointer=Ct,Bn.prototype.deleteObject=Sn,Bn.prototype.fromWireType=Nn}function Bn(e,t,n,r,o,i,a,s,u,c,l){this.name=e,this.registeredClass=t,this.isReference=n,this.isConst=r,this.isSmartPointer=o,this.pointeeType=i,this.sharingPolicy=a,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=l,o||void 0!==t.baseClass?this.toWireType=xn:r?(this.toWireType=On,this.destructorFunction=null):(this.toWireType=Tn,this.destructorFunction=null)}function Hn(e,t,n){o.hasOwnProperty(e)||Vt("Replacing nonexistant public symbol"),void 0!==o[e].overloadTable&&void 0!==n?o[e].overloadTable[n]=t:(o[e]=t,o[e].argCount=n)}function Vn(e,t,n){F("dynCall_"+e in o,"bad function pointer type - no table for sig '"+e+"'"),n&&n.length?F(n.length===e.substring(1).replace(/j/g,"--").length):F(1==e.length);var r=o["dynCall_"+e];return n&&n.length?r.apply(null,[t].concat(n)):r.call(null,t)}function zn(e,t,n){return e.includes("j")?Vn(e,t,n):(F(Je(t),"missing table entry in dynCall: "+t),Je(t).apply(null,n))}function Qn(e,t){F(e.includes("j"),"getDynCaller should only be called with i64 sigs");var n=[];return function(){n.length=arguments.length;for(var r=0;r<arguments.length;r++)n[r]=arguments[r];return zn(e,t,n)}}function Xn(e,t){var n=(e=$t(e)).includes("j")?Qn(e,t):Je(t);return"function"!=typeof n&&Kt("unknown function pointer with signature "+e+": "+t),n}var Wn=void 0;function qn(e){var t=Dd(e),n=$t(t);return kd(t),n}function Gn(e,t){var n=[],r={};throw t.forEach((function e(t){r[t]||jt[t]||(Ft[t]?Ft[t].forEach(e):(n.push(t),r[t]=!0))})),new Wn(e+": "+n.map(qn).join([", "]))}function $n(e,t,n,r,o,i,a,s,u,c,l,f,d){l=$t(l),i=Xn(o,i),s&&(s=Xn(a,s)),c&&(c=Xn(u,c)),d=Xn(f,d);var p=Nt(l);wn(p,(function(){Gn("Cannot construct "+l+" due to unbound types",[r])})),zt([e,t,n],r?[r]:[],(function(t){var n,o;t=t[0],o=r?(n=t.registeredClass).instancePrototype:vn.prototype;var a=Ut(p,(function(){if(Object.getPrototypeOf(this)!==u)throw new Yt("Use 'new' to construct "+l);if(void 0===f.constructor_body)throw new Yt(l+" has no accessible constructor");var e=f.constructor_body[arguments.length];if(void 0===e)throw new Yt("Tried to invoke ctor of "+l+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(f.constructor_body).toString()+") parameters instead!");return e.apply(this,arguments)})),u=Object.create(o,{constructor:{value:a}});a.prototype=u;var f=new En(l,a,u,d,n,i,s,c),h=new Bn(l,f,!0,!1,!1),g=new Bn(l+"*",f,!1,!1,!1),m=new Bn(l+" const*",f,!1,!0,!1);return yn[e]={pointerType:g,constPointerType:m},Hn(p,a),[h,g,m]}))}function Yn(e,t){for(var n=[],r=0;r<e;r++)n.push(q[(t>>2)+r]);return n}function Kn(e,t,n,r,o,i){F(t>0);var a=Yn(t,n);o=Xn(r,o),zt([],[e],(function(e){var n="constructor "+(e=e[0]).name;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new Yt("Cannot register multiple constructors with identical number of parameters ("+(t-1)+") for class '"+e.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return e.registeredClass.constructor_body[t-1]=function(){Gn("Cannot construct "+e.name+" due to unbound types",a)},zt([],a,(function(r){return r.splice(1,0,null),e.registeredClass.constructor_body[t-1]=Jn(n,r,null,o,i),[]})),[]}))}function Zn(e,t){if(!(e instanceof Function))throw new TypeError("new_ called with constructor type "+typeof e+" which is not a function");var n=Ut(e.name||"unknownFunctionName",(function(){}));n.prototype=e.prototype;var r=new n,o=e.apply(r,t);return o instanceof Object?o:r}function Jn(e,t,n,r,o){var i=t.length;i<2&&Kt("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==t[1]&&null!==n,s=!1,u=1;u<t.length;++u)if(null!==t[u]&&void 0===t[u].destructorFunction){s=!0;break}var c="void"!==t[0].name,l="",f="";for(u=0;u<i-2;++u)l+=(0!==u?", ":"")+"arg"+u,f+=(0!==u?", ":"")+"arg"+u+"Wired";var d="return function "+Nt(e)+"("+l+") {\nif (arguments.length !== "+(i-2)+") {\nthrowBindingError('function "+e+" called with ' + arguments.length + ' arguments, expected "+(i-2)+" args!');\n}\n";s&&(d+="var destructors = [];\n");var p=s?"destructors":"null",h=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],g=[Kt,r,o,Rt,t[0],t[1]];for(a&&(d+="var thisWired = classParam.toWireType("+p+", this);\n"),u=0;u<i-2;++u)d+="var arg"+u+"Wired = argType"+u+".toWireType("+p+", arg"+u+"); // "+t[u+2].name+"\n",h.push("argType"+u),g.push(t[u+2]);if(a&&(f="thisWired"+(f.length>0?", ":"")+f),d+=(c?"var rv = ":"")+"invoker(fn"+(f.length>0?", ":"")+f+");\n",s)d+="runDestructors(destructors);\n";else for(u=a?1:2;u<t.length;++u){var m=1===u?"thisWired":"arg"+(u-2)+"Wired";null!==t[u].destructorFunction&&(d+=m+"_dtor("+m+"); // "+t[u].name+"\n",h.push(m+"_dtor"),g.push(t[u].destructorFunction))}return c&&(d+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),d+="}\n",h.push(d),Zn(Function,h).apply(null,g)}function er(e,t,n,r,o,i,a,s){var u=Yn(n,r);t=$t(t),i=Xn(o,i),zt([],[e],(function(e){var r=(e=e[0]).name+"."+t;function o(){Gn("Cannot call "+r+" due to unbound types",u)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(t);var c=e.registeredClass.instancePrototype,l=c[t];return void 0===l||void 0===l.overloadTable&&l.className!==e.name&&l.argCount===n-2?(o.argCount=n-2,o.className=e.name,c[t]=o):(bn(c,t,r),c[t].overloadTable[n-2]=o),zt([],u,(function(o){var s=Jn(r,o,e,i,a);return void 0===c[t].overloadTable?(s.argCount=n-2,c[t]=s):c[t].overloadTable[n-2]=s,[]})),[]}))}var tr=[],nr=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function rr(e){e>4&&0==--nr[e].refcount&&(nr[e]=void 0,tr.push(e))}function or(){for(var e=0,t=5;t<nr.length;++t)void 0!==nr[t]&&++e;return e}function ir(){for(var e=5;e<nr.length;++e)if(void 0!==nr[e])return nr[e];return null}function ar(){o.count_emval_handles=or,o.get_first_emval=ir}var sr={toValue:function(e){return e||Kt("Cannot use deleted val. handle = "+e),nr[e].value},toHandle:function(e){switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var t=tr.length?tr.pop():nr.length;return nr[t]={refcount:1,value:e},t}}};function ur(e,t){Zt(e,{name:t=$t(t),fromWireType:function(e){var t=sr.toValue(e);return rr(e),t},toWireType:function(e,t){return sr.toHandle(t)},argPackAdvance:8,readValueFromPointer:Ct,destructorFunction:null})}function cr(e,t,n){switch(t){case 0:return function(e){var t=n?z:Q;return this.fromWireType(t[e])};case 1:return function(e){var t=n?X:W;return this.fromWireType(t[e>>1])};case 2:return function(e){var t=n?q:G;return this.fromWireType(t[e>>2])};default:throw new TypeError("Unknown integer type: "+e)}}function lr(e,t,n,r){var o=Wt(n);function i(){}t=$t(t),i.values={},Zt(e,{name:t,constructor:i,fromWireType:function(e){return this.constructor.values[e]},toWireType:function(e,t){return t.value},argPackAdvance:8,readValueFromPointer:cr(t,o,r),destructorFunction:null}),wn(t,i)}function fr(e,t){var n=jt[e];return void 0===n&&Kt(t+" has unknown type "+qn(e)),n}function dr(e,t,n){var r=fr(e,"enum");t=$t(t);var o=r.constructor,i=Object.create(r.constructor.prototype,{value:{value:n},constructor:{value:Ut(r.name+"_"+t,(function(){}))}});o.values[n]=i,o[t]=i}function pr(e){if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e}function hr(e,t){switch(t){case 2:return function(e){return this.fromWireType($[e>>2])};case 3:return function(e){return this.fromWireType(Y[e>>3])};default:throw new TypeError("Unknown float type: "+e)}}function gr(e,t,n){var r=Wt(n);Zt(e,{name:t=$t(t),fromWireType:function(e){return e},toWireType:function(e,t){if("number"!=typeof t&&"boolean"!=typeof t)throw new TypeError('Cannot convert "'+pr(t)+'" to '+this.name);return t},argPackAdvance:8,readValueFromPointer:hr(t,r),destructorFunction:null})}function mr(e,t,n,r,o,i){var a=Yn(t,n);e=$t(e),o=Xn(r,o),wn(e,(function(){Gn("Cannot call "+e+" due to unbound types",a)}),t-1),zt([],a,(function(n){var r=[n[0],null].concat(n.slice(1));return Hn(e,Jn(e,r,null,o,i),t-1),[]}))}function vr(e,t,n){switch(t){case 0:return n?function(e){return z[e]}:function(e){return Q[e]};case 1:return n?function(e){return X[e>>1]}:function(e){return W[e>>1]};case 2:return n?function(e){return q[e>>2]}:function(e){return G[e>>2]};default:throw new TypeError("Unknown integer type: "+e)}}function yr(e,t,n,r,o){t=$t(t),-1===o&&(o=4294967295);var i=Wt(n),a=function(e){return e};if(0===r){var s=32-8*n;a=function(e){return e<<s>>>s}}var u=t.includes("unsigned");Zt(e,{name:t,fromWireType:a,toWireType:function(e,n){if("number"!=typeof n&&"boolean"!=typeof n)throw new TypeError('Cannot convert "'+pr(n)+'" to '+this.name);if(n<r||n>o)throw new TypeError('Passing a number "'+pr(n)+'" from JS side to C/C++ side to an argument of type "'+t+'", which is outside the valid range ['+r+", "+o+"]!");return u?n>>>0:0|n},argPackAdvance:8,readValueFromPointer:vr(t,i,0!==r),destructorFunction:null})}function br(e,t,n){var r=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function o(e){var t=G,n=t[e>>=2],o=t[e+1];return new r(V,o,n)}Zt(e,{name:n=$t(n),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})}function wr(e,t,n,r,o,i,a,s,u,c,l,f){n=$t(n),i=Xn(o,i),s=Xn(a,s),c=Xn(u,c),f=Xn(l,f),zt([e],[t],(function(e){return e=e[0],[new Bn(n,e.registeredClass,!1,!1,!0,e,r,i,s,c,f)]}))}function Er(e,t){var n="std::string"===(t=$t(t));Zt(e,{name:t,fromWireType:function(e){var t,r=G[e>>2];if(n)for(var o=e+4,i=0;i<=r;++i){var a=e+4+i;if(i==r||0==Q[a]){var s=N(o,a-o);void 0===t?t=s:(t+=String.fromCharCode(0),t+=s),o=a+1}}else{var u=new Array(r);for(i=0;i<r;++i)u[i]=String.fromCharCode(Q[e+4+i]);t=u.join("")}return kd(e),t},toWireType:function(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var r="string"==typeof t;r||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||Kt("Cannot pass non-string to std::string");var o=(n&&r?function(){return H(t)}:function(){return t.length})(),i=Pd(4+o+1);if(G[i>>2]=o,n&&r)B(t,i+4,o+1);else if(r)for(var a=0;a<o;++a){var s=t.charCodeAt(a);s>255&&(kd(i),Kt("String has UTF-16 code units that do not fit in 8 bits")),Q[i+4+a]=s}else for(a=0;a<o;++a)Q[i+4+a]=t[a];return null!==e&&e.push(kd,i),i},argPackAdvance:8,readValueFromPointer:Ct,destructorFunction:function(e){kd(e)}})}function _r(e,t,n){var r,o,i,a,s;n=$t(n),2===t?(r=Z,o=J,a=ee,i=function(){return W},s=1):4===t&&(r=te,o=ne,a=re,i=function(){return G},s=2),Zt(e,{name:n,fromWireType:function(e){for(var n,o=G[e>>2],a=i(),u=e+4,c=0;c<=o;++c){var l=e+4+c*t;if(c==o||0==a[l>>s]){var f=r(u,l-u);void 0===n?n=f:(n+=String.fromCharCode(0),n+=f),u=l+t}}return kd(e),n},toWireType:function(e,r){"string"!=typeof r&&Kt("Cannot pass non-string to C++ string type "+n);var i=a(r),u=Pd(4+i+t);return G[u>>2]=i>>s,o(r,u+4,i+t),null!==e&&e.push(kd,u),u},argPackAdvance:8,readValueFromPointer:Ct,destructorFunction:function(e){kd(e)}})}function Or(e,t,n,r,o,i){Mt[e]={name:$t(t),rawConstructor:Xn(n,r),rawDestructor:Xn(o,i),fields:[]}}function xr(e,t,n,r,o,i,a,s,u,c){Mt[e].fields.push({fieldName:$t(t),getterReturnType:n,getter:Xn(r,o),getterContext:i,setterArgumentType:a,setter:Xn(s,u),setterContext:c})}function Tr(e,t){Zt(e,{isVoid:!0,name:t=$t(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(e,t){}})}function Pr(){throw"longjmp"}function kr(e,t,n){e=sr.toValue(e),t=fr(t,"emval::as");var r=[],o=sr.toHandle(r);return q[n>>2]=o,t.toWireType(r,e)}function Sr(e,t){for(var n=new Array(e),r=0;r<e;++r)n[r]=fr(q[(t>>2)+r],"parameter "+r);return n}function Dr(e,t,n,r){e=sr.toValue(e);for(var o=Sr(t,n),i=new Array(t),a=0;a<t;++a){var s=o[a];i[a]=s.readValueFromPointer(r),r+=s.argPackAdvance}var u=e.apply(void 0,i);return sr.toHandle(u)}function Mr(e){var t=[];return q[e>>2]=sr.toHandle(t),t}var Rr={};function Cr(e){var t=Rr[e];return void 0===t?$t(e):t}var Ar=[];function jr(e,t,n,r,o){return(e=Ar[e])(t=sr.toValue(t),n=Cr(n),Mr(r),o)}function Fr(e,t,n,r){(e=Ar[e])(t=sr.toValue(t),n=Cr(n),null,r)}function Lr(){return"object"==typeof globalThis?globalThis:Function("return this")()}function Ir(e){return 0===e?sr.toHandle(Lr()):(e=Cr(e),sr.toHandle(Lr()[e]))}function Nr(e){var t=Ar.length;return Ar.push(e),t}function Ur(e,t){for(var n=Sr(e,t),r=n[0],o=r.name+"_$"+n.slice(1).map((function(e){return e.name})).join("_")+"$",i=["retType"],a=[r],s="",u=0;u<e-1;++u)s+=(0!==u?", ":"")+"arg"+u,i.push("argType"+u),a.push(n[1+u]);var c="return function "+Nt("methodCaller_"+o)+"(handle, name, destructors, args) {\n",l=0;for(u=0;u<e-1;++u)c+=" var arg"+u+" = argType"+u+".readValueFromPointer(args"+(l?"+"+l:"")+");\n",l+=n[u+1].argPackAdvance;for(c+=" var rv = handle[name]("+s+");\n",u=0;u<e-1;++u)n[u+1].deleteObject&&(c+=" argType"+u+".deleteObject(arg"+u+");\n");return r.isVoid||(c+=" return retType.toWireType(destructors, rv);\n"),c+="};\n",i.push(c),Nr(Zn(Function,i).apply(null,a))}function Br(e,t){return e=sr.toValue(e),t=sr.toValue(t),sr.toHandle(e[t])}function Hr(e){e>4&&(nr[e].refcount+=1)}function Vr(e,t){return(e=sr.toValue(e))instanceof sr.toValue(t)}function zr(e){return"string"==typeof(e=sr.toValue(e))}function Qr(e){for(var t="",n=0;n<e;++n)t+=(0!==n?", ":"")+"arg"+n;var r="return function emval_allocator_"+e+"(constructor, argTypes, args) {\n";for(n=0;n<e;++n)r+="var argType"+n+" = requireRegisteredType(Module['HEAP32'][(argTypes >>> 2) + "+n+'], "parameter '+n+'");\nvar arg'+n+" = argType"+n+".readValueFromPointer(args);\nargs += argType"+n+"['argPackAdvance'];\n";return r+="var obj = new constructor("+t+");\nreturn valueToHandle(obj);\n}\n",new Function("requireRegisteredType","Module","valueToHandle",r)(fr,o,sr.toHandle)}var Xr,Wr={};function qr(e,t,n,r){e=sr.toValue(e);var o=Wr[t];return o||(o=Qr(t),Wr[t]=o),o(e,n,r)}function Gr(){return sr.toHandle([])}function $r(e){return sr.toHandle(Cr(e))}function Yr(){return sr.toHandle({})}function Kr(e){Rt(sr.toValue(e)),rr(e)}function Zr(e,t,n){e=sr.toValue(e),t=sr.toValue(t),n=sr.toValue(n),e[t]=n}function Jr(e,t){var n=(e=fr(e,"_emval_take_value")).readValueFromPointer(t);return sr.toHandle(n)}function eo(e){throw sr.toValue(e)}function to(){Ne("native code called abort()")}Xr=function(){return performance.now()};var no=!0;function ro(e,t){var n;if(0===e)n=Date.now();else{if(1!==e&&4!==e||!no)return at(28),-1;n=Xr()}return q[t>>2]=n/1e3|0,q[t+4>>2]=n%1e3*1e3*1e3|0,0}function oo(e,t){if(lo.mainLoop.timingMode=e,lo.mainLoop.timingValue=t,!lo.mainLoop.func)return x("emscripten_set_main_loop_timing: Cannot set timing mode for main loop since a main loop does not exist! Call emscripten_set_main_loop first to set one up."),1;if(lo.mainLoop.running||(lo.mainLoop.running=!0),0==e)lo.mainLoop.scheduler=function(){var e=0|Math.max(0,lo.mainLoop.tickStartTime+t-Xr());setTimeout(lo.mainLoop.runner,e)},lo.mainLoop.method="timeout";else if(1==e)lo.mainLoop.scheduler=function(){lo.requestAnimationFrame(lo.mainLoop.runner)},lo.mainLoop.method="rAF";else if(2==e){if("undefined"==typeof setImmediate){var n=[],r="setimmediate";addEventListener("message",(function(e){e.data!==r&&e.data.target!==r||(e.stopPropagation(),n.shift()())}),!0),setImmediate=function(e){n.push(e),h?(void 0===o.setImmediates&&(o.setImmediates=[]),o.setImmediates.push(e),postMessage({target:r})):postMessage(r,"*")}}lo.mainLoop.scheduler=function(){setImmediate(lo.mainLoop.runner)},lo.mainLoop.method="immediate"}return 0}function io(e){qd(e)}function ao(){if(!_e())try{io(A)}catch(e){et(e)}}function so(e,t,n,r,i){F(!lo.mainLoop.func,"emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters."),lo.mainLoop.func=e,lo.mainLoop.arg=r;var a=lo.mainLoop.currentlyRunningMainloop;function s(){return!(a<lo.mainLoop.currentlyRunningMainloop&&(ao(),1))}if(lo.mainLoop.running=!1,lo.mainLoop.runner=function(){if(!j)if(lo.mainLoop.queue.length>0){var t=Date.now(),n=lo.mainLoop.queue.shift();if(n.func(n.arg),lo.mainLoop.remainingBlockers){var r=lo.mainLoop.remainingBlockers,i=r%1==0?r-1:Math.floor(r);n.counted?lo.mainLoop.remainingBlockers=i:(i+=.5,lo.mainLoop.remainingBlockers=(8*r+i)/9)}if(O('main loop blocker "'+n.name+'" took '+(Date.now()-t)+" ms"),lo.mainLoop.updateStatus(),!s())return;setTimeout(lo.mainLoop.runner,0)}else s()&&(lo.mainLoop.currentFrameNumber=lo.mainLoop.currentFrameNumber+1|0,1==lo.mainLoop.timingMode&&lo.mainLoop.timingValue>1&&lo.mainLoop.currentFrameNumber%lo.mainLoop.timingValue!=0?lo.mainLoop.scheduler():(0==lo.mainLoop.timingMode&&(lo.mainLoop.tickStartTime=Xr()),"timeout"===lo.mainLoop.method&&o.ctx&&(T("Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!"),lo.mainLoop.method=""),lo.mainLoop.runIter(e),pe(),s()&&("object"==typeof SDL&&SDL.audio&&SDL.audio.queueNewAudioData&&SDL.audio.queueNewAudioData(),lo.mainLoop.scheduler())))},i||(t&&t>0?oo(0,1e3/t):oo(1,1),lo.mainLoop.scheduler()),n)throw"unwind"}function uo(e,t){if(we||j)x("user callback triggered after runtime exited or application aborted. Ignoring.");else if(t)e();else try{e()}catch(e){et(e)}}function co(e,t){return setTimeout((function(){uo(e)}),t)}var lo={mainLoop:{running:!1,scheduler:null,method:"",currentlyRunningMainloop:0,func:null,arg:0,timingMode:0,timingValue:0,currentFrameNumber:0,queue:[],pause:function(){lo.mainLoop.scheduler=null,lo.mainLoop.currentlyRunningMainloop++},resume:function(){lo.mainLoop.currentlyRunningMainloop++;var e=lo.mainLoop.timingMode,t=lo.mainLoop.timingValue,n=lo.mainLoop.func;lo.mainLoop.func=null,so(n,0,!1,lo.mainLoop.arg,!0),oo(e,t),lo.mainLoop.scheduler()},updateStatus:function(){if(o.setStatus){var e=o.statusMessage||"Please wait...",t=lo.mainLoop.remainingBlockers,n=lo.mainLoop.expectedBlockers;t?t<n?o.setStatus(e+" ("+(n-t)+"/"+n+")"):o.setStatus(e):o.setStatus("")}},runIter:function(e){if(!j){if(o.preMainLoop&&!1===o.preMainLoop())return;uo(e),o.postMainLoop&&o.postMainLoop()}}},isFullscreen:!1,pointerLock:!1,moduleContextCreatedCallbacks:[],workers:[],init:function(){if(o.preloadPlugins||(o.preloadPlugins=[]),!lo.initted){lo.initted=!0;try{new Blob,lo.hasBlobConstructor=!0}catch(e){lo.hasBlobConstructor=!1,O("warning: no blob constructor, cannot create blobs with mimetypes")}lo.BlobBuilder="undefined"!=typeof MozBlobBuilder?MozBlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:lo.hasBlobConstructor?null:O("warning: no BlobBuilder"),lo.URLObject="undefined"!=typeof window?window.URL?window.URL:window.webkitURL:void 0,o.noImageDecoding||void 0!==lo.URLObject||(O("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available."),o.noImageDecoding=!0);var e={canHandle:function(e){return!o.noImageDecoding&&/\.(jpg|jpeg|png|bmp)$/i.test(e)},handle:function(e,t,n,r){var i=null;if(lo.hasBlobConstructor)try{(i=new Blob([e],{type:lo.getMimetype(t)})).size!==e.length&&(i=new Blob([new Uint8Array(e).buffer],{type:lo.getMimetype(t)}))}catch(e){T("Blob constructor present but fails: "+e+"; falling back to blob builder")}if(!i){var a=new lo.BlobBuilder;a.append(new Uint8Array(e).buffer),i=a.getBlob()}var s=lo.URLObject.createObjectURL(i);F("string"==typeof s,"createObjectURL must return a url as a string");var u=new Image;u.onload=function(){F(u.complete,"Image "+t+" could not be decoded");var r=document.createElement("canvas");r.width=u.width,r.height=u.height,r.getContext("2d").drawImage(u,0,0),o.preloadedImages[t]=r,lo.URLObject.revokeObjectURL(s),n&&n(e)},u.onerror=function(e){O("Image "+s+" could not be decoded"),r&&r()},u.src=s}};o.preloadPlugins.push(e);var t={canHandle:function(e){return!o.noAudioDecoding&&e.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},handle:function(e,t,n,r){var i=!1;function a(r){i||(i=!0,o.preloadedAudios[t]=r,n&&n(e))}function s(){i||(i=!0,o.preloadedAudios[t]=new Audio,r&&r())}if(!lo.hasBlobConstructor)return s();try{var u=new Blob([e],{type:lo.getMimetype(t)})}catch(e){return s()}var c=lo.URLObject.createObjectURL(u);F("string"==typeof c,"createObjectURL must return a url as a string");var l=new Audio;l.addEventListener("canplaythrough",(function(){a(l)}),!1),l.onerror=function(n){i||(O("warning: browser could not fully decode audio "+t+", trying slower base64 approach"),l.src="data:audio/x-"+t.substr(-3)+";base64,"+function(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="",r=0,o=0,i=0;i<e.length;i++)for(r=r<<8|e[i],o+=8;o>=6;){var a=r>>o-6&63;o-=6,n+=t[a]}return 2==o?(n+=t[(3&r)<<4],n+="=="):4==o&&(n+=t[(15&r)<<2],n+="="),n}(e),a(l))},l.src=c,co((function(){a(l)}),1e4)}};o.preloadPlugins.push(t);var n=o.canvas;n&&(n.requestPointerLock=n.requestPointerLock||n.mozRequestPointerLock||n.webkitRequestPointerLock||n.msRequestPointerLock||function(){},n.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock||function(){},n.exitPointerLock=n.exitPointerLock.bind(document),document.addEventListener("pointerlockchange",r,!1),document.addEventListener("mozpointerlockchange",r,!1),document.addEventListener("webkitpointerlockchange",r,!1),document.addEventListener("mspointerlockchange",r,!1),o.elementPointerLock&&n.addEventListener("click",(function(e){!lo.pointerLock&&o.canvas.requestPointerLock&&(o.canvas.requestPointerLock(),e.preventDefault())}),!1))}function r(){lo.pointerLock=document.pointerLockElement===o.canvas||document.mozPointerLockElement===o.canvas||document.webkitPointerLockElement===o.canvas||document.msPointerLockElement===o.canvas}},createContext:function(e,t,n,r){if(t&&o.ctx&&e==o.canvas)return o.ctx;var i,a;if(t){var s={antialias:!1,alpha:!1,majorVersion:"undefined"!=typeof WebGL2RenderingContext?2:1};if(r)for(var u in r)s[u]=r[u];void 0!==wo&&(a=wo.createContext(e,s))&&(i=wo.getContext(a).GLctx)}else i=e.getContext("2d");return i?(n&&(t||F(void 0===md,"cannot set in module if GLctx is used, but we are a non-GL context that would replace it"),o.ctx=i,t&&wo.makeContextCurrent(a),o.useWebGL=t,lo.moduleContextCreatedCallbacks.forEach((function(e){e()})),lo.init()),i):null},destroyContext:function(e,t,n){},fullscreenHandlersInstalled:!1,lockPointer:void 0,resizeCanvas:void 0,requestFullscreen:function(e,t){lo.lockPointer=e,lo.resizeCanvas=t,void 0===lo.lockPointer&&(lo.lockPointer=!0),void 0===lo.resizeCanvas&&(lo.resizeCanvas=!1);var n=o.canvas;function r(){lo.isFullscreen=!1;var e=n.parentNode;(document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===e?(n.exitFullscreen=lo.exitFullscreen,lo.lockPointer&&n.requestPointerLock(),lo.isFullscreen=!0,lo.resizeCanvas?lo.setFullscreenCanvasSize():lo.updateCanvasDimensions(n)):(e.parentNode.insertBefore(n,e),e.parentNode.removeChild(e),lo.resizeCanvas?lo.setWindowedCanvasSize():lo.updateCanvasDimensions(n)),o.onFullScreen&&o.onFullScreen(lo.isFullscreen),o.onFullscreen&&o.onFullscreen(lo.isFullscreen)}lo.fullscreenHandlersInstalled||(lo.fullscreenHandlersInstalled=!0,document.addEventListener("fullscreenchange",r,!1),document.addEventListener("mozfullscreenchange",r,!1),document.addEventListener("webkitfullscreenchange",r,!1),document.addEventListener("MSFullscreenChange",r,!1));var i=document.createElement("div");n.parentNode.insertBefore(i,n),i.appendChild(n),i.requestFullscreen=i.requestFullscreen||i.mozRequestFullScreen||i.msRequestFullscreen||(i.webkitRequestFullscreen?function(){i.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}:null)||(i.webkitRequestFullScreen?function(){i.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}:null),i.requestFullscreen()},requestFullScreen:function(){Ne("Module.requestFullScreen has been replaced by Module.requestFullscreen (without a capital S)")},exitFullscreen:function(){return!!lo.isFullscreen&&((document.exitFullscreen||document.cancelFullScreen||document.mozCancelFullScreen||document.msExitFullscreen||document.webkitCancelFullScreen||function(){}).apply(document,[]),!0)},nextRAF:0,fakeRequestAnimationFrame:function(e){var t=Date.now();if(0===lo.nextRAF)lo.nextRAF=t+1e3/60;else for(;t+2>=lo.nextRAF;)lo.nextRAF+=1e3/60;var n=Math.max(lo.nextRAF-t,0);setTimeout(e,n)},requestAnimationFrame:function(e){"function"!=typeof requestAnimationFrame?(0,lo.fakeRequestAnimationFrame)(e):requestAnimationFrame(e)},safeSetTimeout:function(e){return co(e)},safeRequestAnimationFrame:function(e){return lo.requestAnimationFrame((function(){uo(e)}))},getMimetype:function(e){return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[e.substr(e.lastIndexOf(".")+1)]},getUserMedia:function(e){window.getUserMedia||(window.getUserMedia=navigator.getUserMedia||navigator.mozGetUserMedia),window.getUserMedia(e)},getMovementX:function(e){return e.movementX||e.mozMovementX||e.webkitMovementX||0},getMovementY:function(e){return e.movementY||e.mozMovementY||e.webkitMovementY||0},getMouseWheelDelta:function(e){var t=0;switch(e.type){case"DOMMouseScroll":t=e.detail/3;break;case"mousewheel":t=e.wheelDelta/120;break;case"wheel":switch(t=e.deltaY,e.deltaMode){case 0:t/=100;break;case 1:t/=3;break;case 2:t*=80;break;default:throw"unrecognized mouse wheel delta mode: "+e.deltaMode}break;default:throw"unrecognized mouse wheel event: "+e.type}return t},mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,touches:{},lastTouches:{},calculateMouseEvent:function(e){if(lo.pointerLock)"mousemove"!=e.type&&"mozMovementX"in e?lo.mouseMovementX=lo.mouseMovementY=0:(lo.mouseMovementX=lo.getMovementX(e),lo.mouseMovementY=lo.getMovementY(e)),"undefined"!=typeof SDL?(lo.mouseX=SDL.mouseX+lo.mouseMovementX,lo.mouseY=SDL.mouseY+lo.mouseMovementY):(lo.mouseX+=lo.mouseMovementX,lo.mouseY+=lo.mouseMovementY);else{var t=o.canvas.getBoundingClientRect(),n=o.canvas.width,r=o.canvas.height,i=void 0!==window.scrollX?window.scrollX:window.pageXOffset,a=void 0!==window.scrollY?window.scrollY:window.pageYOffset;if(F(void 0!==i&&void 0!==a,"Unable to retrieve scroll position, mouse positions likely broken."),"touchstart"===e.type||"touchend"===e.type||"touchmove"===e.type){var s=e.touch;if(void 0===s)return;var u=s.pageX-(i+t.left),c=s.pageY-(a+t.top),l={x:u*=n/t.width,y:c*=r/t.height};if("touchstart"===e.type)lo.lastTouches[s.identifier]=l,lo.touches[s.identifier]=l;else if("touchend"===e.type||"touchmove"===e.type){var f=lo.touches[s.identifier];f||(f=l),lo.lastTouches[s.identifier]=f,lo.touches[s.identifier]=l}return}var d=e.pageX-(i+t.left),p=e.pageY-(a+t.top);d*=n/t.width,p*=r/t.height,lo.mouseMovementX=d-lo.mouseX,lo.mouseMovementY=p-lo.mouseY,lo.mouseX=d,lo.mouseY=p}},resizeListeners:[],updateResizeListeners:function(){var e=o.canvas;lo.resizeListeners.forEach((function(t){t(e.width,e.height)}))},setCanvasSize:function(e,t,n){var r=o.canvas;lo.updateCanvasDimensions(r,e,t),n||lo.updateResizeListeners()},windowedWidth:0,windowedHeight:0,setFullscreenCanvasSize:function(){if("undefined"!=typeof SDL){var e=G[SDL.screen>>2];e|=8388608,q[SDL.screen>>2]=e}lo.updateCanvasDimensions(o.canvas),lo.updateResizeListeners()},setWindowedCanvasSize:function(){if("undefined"!=typeof SDL){var e=G[SDL.screen>>2];e&=-8388609,q[SDL.screen>>2]=e}lo.updateCanvasDimensions(o.canvas),lo.updateResizeListeners()},updateCanvasDimensions:function(e,t,n){t&&n?(e.widthNative=t,e.heightNative=n):(t=e.widthNative,n=e.heightNative);var r=t,i=n;if(o.forcedAspectRatio&&o.forcedAspectRatio>0&&(r/i<o.forcedAspectRatio?r=Math.round(i*o.forcedAspectRatio):i=Math.round(r/o.forcedAspectRatio)),(document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===e.parentNode&&"undefined"!=typeof screen){var a=Math.min(screen.width/r,screen.height/i);r=Math.round(r*a),i=Math.round(i*a)}lo.resizeCanvas?(e.width!=r&&(e.width=r),e.height!=i&&(e.height=i),void 0!==e.style&&(e.style.removeProperty("width"),e.style.removeProperty("height"))):(e.width!=t&&(e.width=t),e.height!=n&&(e.height=n),void 0!==e.style&&(r!=t||i!=n?(e.style.setProperty("width",r+"px","important"),e.style.setProperty("height",i+"px","important")):(e.style.removeProperty("width"),e.style.removeProperty("height"))))}},fo={errorCode:12288,defaultDisplayInitialized:!1,currentContext:0,currentReadSurface:0,currentDrawSurface:0,contextAttributes:{alpha:!1,depth:!1,stencil:!1,antialias:!1},stringCache:{},setErrorCode:function(e){fo.errorCode=e},chooseConfig:function(e,t,n,r,o){if(62e3!=e)return fo.setErrorCode(12296),0;if(t)for(;;){var i=q[t>>2];if(12321==i){var a=q[t+4>>2];fo.contextAttributes.alpha=a>0}else if(12325==i){var s=q[t+4>>2];fo.contextAttributes.depth=s>0}else if(12326==i){var u=q[t+4>>2];fo.contextAttributes.stencil=u>0}else if(12337==i){var c=q[t+4>>2];fo.contextAttributes.antialias=c>0}else if(12338==i)c=q[t+4>>2],fo.contextAttributes.antialias=1==c;else if(12544==i){var l=q[t+4>>2];fo.contextAttributes.lowLatency=12547!=l}else if(12344==i)break;t+=8}return n&&r||o?(o&&(q[o>>2]=1),n&&r>0&&(q[n>>2]=62002),fo.setErrorCode(12288),1):(fo.setErrorCode(12300),0)}};function po(e,t,n,r,o){return fo.chooseConfig(e,t,n,r,o)}function ho(e){var t=e.getExtension("ANGLE_instanced_arrays");if(t)return e.vertexAttribDivisor=function(e,n){t.vertexAttribDivisorANGLE(e,n)},e.drawArraysInstanced=function(e,n,r,o){t.drawArraysInstancedANGLE(e,n,r,o)},e.drawElementsInstanced=function(e,n,r,o,i){t.drawElementsInstancedANGLE(e,n,r,o,i)},1}function go(e){var t=e.getExtension("OES_vertex_array_object");if(t)return e.createVertexArray=function(){return t.createVertexArrayOES()},e.deleteVertexArray=function(e){t.deleteVertexArrayOES(e)},e.bindVertexArray=function(e){t.bindVertexArrayOES(e)},e.isVertexArray=function(e){return t.isVertexArrayOES(e)},1}function mo(e){var t=e.getExtension("WEBGL_draw_buffers");if(t)return e.drawBuffers=function(e,n){t.drawBuffersWEBGL(e,n)},1}function vo(e){return!!(e.dibvbi=e.getExtension("WEBGL_draw_instanced_base_vertex_base_instance"))}function yo(e){return!!(e.mdibvbi=e.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance"))}function bo(e){return!!(e.multiDrawWebgl=e.getExtension("WEBGL_multi_draw"))}var wo={counter:1,buffers:[],programs:[],framebuffers:[],renderbuffers:[],textures:[],shaders:[],vaos:[],contexts:[],offscreenCanvases:{},queries:[],samplers:[],transformFeedbacks:[],syncs:[],stringCache:{},stringiCache:{},unpackAlignment:4,recordError:function(e){wo.lastError||(wo.lastError=e)},getNewId:function(e){for(var t=wo.counter++,n=e.length;n<t;n++)e[n]=null;return t},getSource:function(e,t,n,r){for(var o="",i=0;i<t;++i){var a=r?q[r+4*i>>2]:-1;o+=N(q[n+4*i>>2],a<0?void 0:a)}return o},createContext:function(e,t){e.getContextSafariWebGL2Fixed||(e.getContextSafariWebGL2Fixed=e.getContext,e.getContext=function(t,n){var r=e.getContextSafariWebGL2Fixed(t,n);return"webgl"==t==r instanceof WebGLRenderingContext?r:null});var n=t.majorVersion>1?e.getContext("webgl2",t):e.getContext("webgl",t);return n?wo.registerContext(n,t):0},registerContext:function(e,t){var n=wo.getNewId(wo.contexts),r={handle:n,attributes:t,version:t.majorVersion,GLctx:e};return e.canvas&&(e.canvas.GLctxObject=r),wo.contexts[n]=r,(void 0===t.enableExtensionsByDefault||t.enableExtensionsByDefault)&&wo.initExtensions(r),n},makeContextCurrent:function(e){return wo.currentContext=wo.contexts[e],o.ctx=md=wo.currentContext&&wo.currentContext.GLctx,!(e&&!md)},getContext:function(e){return wo.contexts[e]},deleteContext:function(e){wo.currentContext===wo.contexts[e]&&(wo.currentContext=null),"object"==typeof El&&El.removeAllHandlersOnTarget(wo.contexts[e].GLctx.canvas),wo.contexts[e]&&wo.contexts[e].GLctx.canvas&&(wo.contexts[e].GLctx.canvas.GLctxObject=void 0),wo.contexts[e]=null},initExtensions:function(e){if(e||(e=wo.currentContext),!e.initExtensionsDone){e.initExtensionsDone=!0;var t=e.GLctx;ho(t),go(t),mo(t),vo(t),yo(t),e.version>=2&&(t.disjointTimerQueryExt=t.getExtension("EXT_disjoint_timer_query_webgl2")),(e.version<2||!t.disjointTimerQueryExt)&&(t.disjointTimerQueryExt=t.getExtension("EXT_disjoint_timer_query")),bo(t),(t.getSupportedExtensions()||[]).forEach((function(e){e.includes("lose_context")||e.includes("debug")||t.getExtension(e)}))}}};function Eo(e,t,n,r){if(62e3!=e)return fo.setErrorCode(12296),0;for(var i=1;;){var a=q[r>>2];if(12440!=a){if(12344==a)break;return fo.setErrorCode(12292),0}i=q[r+4>>2],r+=8}return i<2||i>3?(fo.setErrorCode(12293),0):(fo.contextAttributes.majorVersion=i-1,fo.contextAttributes.minorVersion=0,fo.context=wo.createContext(o.canvas,fo.contextAttributes),0!=fo.context?(fo.setErrorCode(12288),wo.makeContextCurrent(fo.context),o.useWebGL=!0,lo.moduleContextCreatedCallbacks.forEach((function(e){e()})),wo.makeContextCurrent(null),62004):(fo.setErrorCode(12297),0))}function _o(e,t,n,r){return 62e3!=e?(fo.setErrorCode(12296),0):62002!=t?(fo.setErrorCode(12293),0):(fo.setErrorCode(12288),62006)}function Oo(e,t){return 62e3!=e?(fo.setErrorCode(12296),0):62004!=t?(fo.setErrorCode(12294),0):(wo.deleteContext(fo.context),fo.setErrorCode(12288),fo.currentContext==t&&(fo.currentContext=0),1)}function xo(e,t){return 62e3!=e?(fo.setErrorCode(12296),0):62006!=t?(fo.setErrorCode(12301),1):(fo.currentReadSurface==t&&(fo.currentReadSurface=0),fo.currentDrawSurface==t&&(fo.currentDrawSurface=0),fo.setErrorCode(12288),1)}function To(e,t,n,r){if(62e3!=e)return fo.setErrorCode(12296),0;if(62002!=t)return fo.setErrorCode(12293),0;if(!r)return fo.setErrorCode(12300),0;switch(fo.setErrorCode(12288),n){case 12320:return q[r>>2]=fo.contextAttributes.alpha?32:24,1;case 12321:return q[r>>2]=fo.contextAttributes.alpha?8:0,1;case 12322:case 12323:case 12324:return q[r>>2]=8,1;case 12325:return q[r>>2]=fo.contextAttributes.depth?24:0,1;case 12326:return q[r>>2]=fo.contextAttributes.stencil?8:0,1;case 12327:return q[r>>2]=12344,1;case 12328:return q[r>>2]=62002,1;case 12329:return q[r>>2]=0,1;case 12330:return q[r>>2]=4096,1;case 12331:return q[r>>2]=16777216,1;case 12332:return q[r>>2]=4096,1;case 12333:case 12334:return q[r>>2]=0,1;case 12335:return q[r>>2]=12344,1;case 12337:return q[r>>2]=fo.contextAttributes.antialias?4:0,1;case 12338:return q[r>>2]=fo.contextAttributes.antialias?1:0,1;case 12339:return q[r>>2]=4,1;case 12340:return q[r>>2]=12344,1;case 12341:case 12342:case 12343:return q[r>>2]=-1,1;case 12345:case 12346:case 12347:return q[r>>2]=0,1;case 12348:return q[r>>2]=1,1;case 12349:case 12350:return q[r>>2]=0,1;case 12351:return q[r>>2]=12430,1;case 12352:return q[r>>2]=4,1;case 12354:return q[r>>2]=0,1;default:return fo.setErrorCode(12292),0}}function Po(e){return fo.setErrorCode(12288),62e3}function ko(){return fo.errorCode}function So(e,t,n){return 62e3==e?(t&&(q[t>>2]=1),n&&(q[n>>2]=4),fo.defaultDisplayInitialized=!0,fo.setErrorCode(12288),1):(fo.setErrorCode(12296),0)}function Do(e,t,n,r){return 62e3!=e?(fo.setErrorCode(12296),0):0!=r&&62004!=r?(fo.setErrorCode(12294),0):0!=n&&62006!=n||0!=t&&62006!=t?(fo.setErrorCode(12301),0):(wo.makeContextCurrent(r?fo.context:null),fo.currentContext=r,fo.currentDrawSurface=t,fo.currentReadSurface=n,fo.setErrorCode(12288),1)}function Mo(){if(fo.defaultDisplayInitialized)if(o.ctx){if(!o.ctx.isContextLost())return fo.setErrorCode(12288),1;fo.setErrorCode(12302)}else fo.setErrorCode(12290);else fo.setErrorCode(12289);return 0}function Ro(e){return 62e3!=e?(fo.setErrorCode(12296),0):(fo.currentContext=0,fo.currentReadSurface=0,fo.currentDrawSurface=0,fo.defaultDisplayInitialized=!1,fo.setErrorCode(12288),1)}function Co(e){F("number"==typeof e),x(N(e))}function Ao(e){F("number"==typeof e),O(N(e))}function jo(e){F("number"==typeof e),console.warn(N(e))}function Fo(){}function Lo(){return 2147483648}function Io(e){md.activeTexture(e)}function No(e,t){md.attachShader(wo.programs[e],wo.shaders[t])}function Uo(e,t){md.beginQuery(e,wo.queries[t])}function Bo(e,t){md.disjointTimerQueryExt.beginQueryEXT(e,wo.queries[t])}function Ho(e){md.beginTransformFeedback(e)}function Vo(e,t,n){md.bindAttribLocation(wo.programs[e],t,N(n))}function zo(e,t){35051==e?md.currentPixelPackBufferBinding=t:35052==e&&(md.currentPixelUnpackBufferBinding=t),md.bindBuffer(e,wo.buffers[t])}function Qo(e,t,n){md.bindBufferBase(e,t,wo.buffers[n])}function Xo(e,t,n,r,o){md.bindBufferRange(e,t,wo.buffers[n],r,o)}function Wo(e,t){md.bindFramebuffer(e,wo.framebuffers[t])}function qo(e,t){md.bindRenderbuffer(e,wo.renderbuffers[t])}function Go(e,t){md.bindSampler(e,wo.samplers[t])}function $o(e,t){md.bindTexture(e,wo.textures[t])}function Yo(e,t){md.bindTransformFeedback(e,wo.transformFeedbacks[t])}function Ko(e){md.bindVertexArray(wo.vaos[e])}function Zo(e){md.bindVertexArray(wo.vaos[e])}function Jo(e,t,n,r){md.blendColor(e,t,n,r)}function ei(e){md.blendEquation(e)}function ti(e,t){md.blendEquationSeparate(e,t)}function ni(e,t){md.blendFunc(e,t)}function ri(e,t,n,r){md.blendFuncSeparate(e,t,n,r)}function oi(e,t,n,r,o,i,a,s,u,c){md.blitFramebuffer(e,t,n,r,o,i,a,s,u,c)}function ii(e,t,n,r){wo.currentContext.version>=2?n?md.bufferData(e,Q,r,n,t):md.bufferData(e,t,r):md.bufferData(e,n?Q.subarray(n,n+t):t,r)}function ai(e,t,n,r){wo.currentContext.version>=2?md.bufferSubData(e,t,Q,r,n):md.bufferSubData(e,t,Q.subarray(r,r+n))}function si(e){return md.checkFramebufferStatus(e)}function ui(e){md.clear(e)}function ci(e,t,n,r){md.clearBufferfi(e,t,n,r)}function li(e,t,n){md.clearBufferfv(e,t,$,n>>2)}function fi(e,t,n){md.clearBufferiv(e,t,q,n>>2)}function di(e,t,n){md.clearBufferuiv(e,t,G,n>>2)}function pi(e,t,n,r){md.clearColor(e,t,n,r)}function hi(e){md.clearDepth(e)}function gi(e){md.clearStencil(e)}function mi(e,t){return F(t===(0|t)),(e>>>0)+4294967296*t}function vi(e,t,n,r){return md.clientWaitSync(wo.syncs[e],t,mi(n,r))}function yi(e,t,n,r){md.colorMask(!!e,!!t,!!n,!!r)}function bi(e){md.compileShader(wo.shaders[e])}function wi(e,t,n,r,o,i,a,s){wo.currentContext.version>=2?md.currentPixelUnpackBufferBinding?md.compressedTexImage2D(e,t,n,r,o,i,a,s):md.compressedTexImage2D(e,t,n,r,o,i,Q,s,a):md.compressedTexImage2D(e,t,n,r,o,i,s?Q.subarray(s,s+a):null)}function Ei(e,t,n,r,o,i,a,s,u){md.currentPixelUnpackBufferBinding?md.compressedTexImage3D(e,t,n,r,o,i,a,s,u):md.compressedTexImage3D(e,t,n,r,o,i,a,Q,u,s)}function _i(e,t,n,r,o,i,a,s,u){wo.currentContext.version>=2?md.currentPixelUnpackBufferBinding?md.compressedTexSubImage2D(e,t,n,r,o,i,a,s,u):md.compressedTexSubImage2D(e,t,n,r,o,i,a,Q,u,s):md.compressedTexSubImage2D(e,t,n,r,o,i,a,u?Q.subarray(u,u+s):null)}function Oi(e,t,n,r,o,i,a,s,u,c,l){md.currentPixelUnpackBufferBinding?md.compressedTexSubImage3D(e,t,n,r,o,i,a,s,u,c,l):md.compressedTexSubImage3D(e,t,n,r,o,i,a,s,u,Q,l,c)}function xi(e,t,n,r,o){md.copyBufferSubData(e,t,n,r,o)}function Ti(e,t,n,r,o,i,a,s){md.copyTexImage2D(e,t,n,r,o,i,a,s)}function Pi(e,t,n,r,o,i,a,s){md.copyTexSubImage2D(e,t,n,r,o,i,a,s)}function ki(e,t,n,r,o,i,a,s,u){md.copyTexSubImage3D(e,t,n,r,o,i,a,s,u)}function Si(){var e=wo.getNewId(wo.programs),t=md.createProgram();return t.name=e,t.maxUniformLength=t.maxAttributeLength=t.maxUniformBlockNameLength=0,t.uniformIdCounter=1,wo.programs[e]=t,e}function Di(e){var t=wo.getNewId(wo.shaders);return wo.shaders[t]=md.createShader(e),t}function Mi(e){md.cullFace(e)}function Ri(e,t){for(var n=0;n<e;n++){var r=q[t+4*n>>2],o=wo.buffers[r];o&&(md.deleteBuffer(o),o.name=0,wo.buffers[r]=null,r==md.currentPixelPackBufferBinding&&(md.currentPixelPackBufferBinding=0),r==md.currentPixelUnpackBufferBinding&&(md.currentPixelUnpackBufferBinding=0))}}function Ci(e,t){for(var n=0;n<e;++n){var r=q[t+4*n>>2],o=wo.framebuffers[r];o&&(md.deleteFramebuffer(o),o.name=0,wo.framebuffers[r]=null)}}function Ai(e){if(e){var t=wo.programs[e];t?(md.deleteProgram(t),t.name=0,wo.programs[e]=null):wo.recordError(1281)}}function ji(e,t){for(var n=0;n<e;n++){var r=q[t+4*n>>2],o=wo.queries[r];o&&(md.deleteQuery(o),wo.queries[r]=null)}}function Fi(e,t){for(var n=0;n<e;n++){var r=q[t+4*n>>2],o=wo.queries[r];o&&(md.disjointTimerQueryExt.deleteQueryEXT(o),wo.queries[r]=null)}}function Li(e,t){for(var n=0;n<e;n++){var r=q[t+4*n>>2],o=wo.renderbuffers[r];o&&(md.deleteRenderbuffer(o),o.name=0,wo.renderbuffers[r]=null)}}function Ii(e,t){for(var n=0;n<e;n++){var r=q[t+4*n>>2],o=wo.samplers[r];o&&(md.deleteSampler(o),o.name=0,wo.samplers[r]=null)}}function Ni(e){if(e){var t=wo.shaders[e];t?(md.deleteShader(t),wo.shaders[e]=null):wo.recordError(1281)}}function Ui(e){if(e){var t=wo.syncs[e];t?(md.deleteSync(t),t.name=0,wo.syncs[e]=null):wo.recordError(1281)}}function Bi(e,t){for(var n=0;n<e;n++){var r=q[t+4*n>>2],o=wo.textures[r];o&&(md.deleteTexture(o),o.name=0,wo.textures[r]=null)}}function Hi(e,t){for(var n=0;n<e;n++){var r=q[t+4*n>>2],o=wo.transformFeedbacks[r];o&&(md.deleteTransformFeedback(o),o.name=0,wo.transformFeedbacks[r]=null)}}function Vi(e,t){for(var n=0;n<e;n++){var r=q[t+4*n>>2];md.deleteVertexArray(wo.vaos[r]),wo.vaos[r]=null}}function zi(e,t){for(var n=0;n<e;n++){var r=q[t+4*n>>2];md.deleteVertexArray(wo.vaos[r]),wo.vaos[r]=null}}function Qi(e){md.depthFunc(e)}function Xi(e){md.depthMask(!!e)}function Wi(e,t){md.depthRange(e,t)}function qi(e,t){md.detachShader(wo.programs[e],wo.shaders[t])}function Gi(e){md.disable(e)}function $i(e){md.disableVertexAttribArray(e)}function Yi(e,t,n){md.drawArrays(e,t,n)}function Ki(e,t,n,r){md.drawArraysInstanced(e,t,n,r)}function Zi(e,t,n,r){md.drawArraysInstanced(e,t,n,r)}function Ji(e,t,n,r){md.drawArraysInstanced(e,t,n,r)}function ea(e,t,n,r){md.drawArraysInstanced(e,t,n,r)}function ta(e,t,n,r){md.drawArraysInstanced(e,t,n,r)}var na=[];function ra(e,t){for(var n=na[e],r=0;r<e;r++)n[r]=q[t+4*r>>2];md.drawBuffers(n)}function oa(e,t){for(var n=na[e],r=0;r<e;r++)n[r]=q[t+4*r>>2];md.drawBuffers(n)}function ia(e,t){for(var n=na[e],r=0;r<e;r++)n[r]=q[t+4*r>>2];md.drawBuffers(n)}function aa(e,t,n,r){md.drawElements(e,t,n,r)}function sa(e,t,n,r,o){md.drawElementsInstanced(e,t,n,r,o)}function ua(e,t,n,r,o){md.drawElementsInstanced(e,t,n,r,o)}function ca(e,t,n,r,o){md.drawElementsInstanced(e,t,n,r,o)}function la(e,t,n,r,o){md.drawElementsInstanced(e,t,n,r,o)}function fa(e,t,n,r,o){md.drawElementsInstanced(e,t,n,r,o)}function da(e,t,n,r){md.drawElements(e,t,n,r)}function pa(e,t,n,r,o,i){da(e,r,o,i)}function ha(e){md.enable(e)}function ga(e){md.enableVertexAttribArray(e)}function ma(e){md.endQuery(e)}function va(e){md.disjointTimerQueryExt.endQueryEXT(e)}function ya(){md.endTransformFeedback()}function ba(e,t){var n=md.fenceSync(e,t);if(n){var r=wo.getNewId(wo.syncs);return n.name=r,wo.syncs[r]=n,r}return 0}function wa(){md.finish()}function Ea(){md.flush()}function _a(e,t,n,r){md.framebufferRenderbuffer(e,t,n,wo.renderbuffers[r])}function Oa(e,t,n,r,o){md.framebufferTexture2D(e,t,n,wo.textures[r],o)}function xa(e,t,n,r,o){md.framebufferTextureLayer(e,t,wo.textures[n],r,o)}function Ta(e){md.frontFace(e)}function Pa(e,t,n,r){for(var o=0;o<e;o++){var i=md[n](),a=i&&wo.getNewId(r);i?(i.name=a,r[a]=i):wo.recordError(1282),q[t+4*o>>2]=a}}function ka(e,t){Pa(e,t,"createBuffer",wo.buffers)}function Sa(e,t){Pa(e,t,"createFramebuffer",wo.framebuffers)}function Da(e,t){Pa(e,t,"createQuery",wo.queries)}function Ma(e,t){for(var n=0;n<e;n++){var r=md.disjointTimerQueryExt.createQueryEXT();if(!r){for(wo.recordError(1282);n<e;)q[t+4*n++>>2]=0;return}var o=wo.getNewId(wo.queries);r.name=o,wo.queries[o]=r,q[t+4*n>>2]=o}}function Ra(e,t){Pa(e,t,"createRenderbuffer",wo.renderbuffers)}function Ca(e,t){Pa(e,t,"createSampler",wo.samplers)}function Aa(e,t){Pa(e,t,"createTexture",wo.textures)}function ja(e,t){Pa(e,t,"createTransformFeedback",wo.transformFeedbacks)}function Fa(e,t){Pa(e,t,"createVertexArray",wo.vaos)}function La(e,t){Pa(e,t,"createVertexArray",wo.vaos)}function Ia(e){md.generateMipmap(e)}function Na(e,t,n,r,o,i,a,s){t=wo.programs[t];var u=md[e](t,n);if(u){var c=s&&B(u.name,s,r);o&&(q[o>>2]=c),i&&(q[i>>2]=u.size),a&&(q[a>>2]=u.type)}}function Ua(e,t,n,r,o,i,a){Na("getActiveAttrib",e,t,n,r,o,i,a)}function Ba(e,t,n,r,o,i,a){Na("getActiveUniform",e,t,n,r,o,i,a)}function Ha(e,t,n,r,o){e=wo.programs[e];var i=md.getActiveUniformBlockName(e,t);if(i)if(o&&n>0){var a=B(i,o,n);r&&(q[r>>2]=a)}else r&&(q[r>>2]=0)}function Va(e,t,n,r){if(r)if(e=wo.programs[e],35393!=n){var o=md.getActiveUniformBlockParameter(e,t,n);if(null!==o)if(35395==n)for(var i=0;i<o.length;i++)q[r+4*i>>2]=o[i];else q[r>>2]=o}else{var a=md.getActiveUniformBlockName(e,t);q[r>>2]=a.length+1}else wo.recordError(1281)}function za(e,t,n,r,o){if(o)if(t>0&&0==n)wo.recordError(1281);else{e=wo.programs[e];for(var i=[],a=0;a<t;a++)i.push(q[n+4*a>>2]);var s=md.getActiveUniforms(e,i,r);if(s){var u=s.length;for(a=0;a<u;a++)q[o+4*a>>2]=s[a]}}else wo.recordError(1281)}function Qa(e,t,n,r){var o=md.getAttachedShaders(wo.programs[e]),i=o.length;i>t&&(i=t),q[n>>2]=i;for(var a=0;a<i;++a){var s=wo.shaders.indexOf(o[a]);q[r+4*a>>2]=s}}function Xa(e,t){return md.getAttribLocation(wo.programs[e],N(t))}function Wa(e){return G[e>>2]+4294967296*q[e+4>>2]}function qa(e){return G[e>>2]+4294967296*G[e+4>>2]}function Ga(e,t){G[e>>2]=t,G[e+4>>2]=(t-G[e>>2])/4294967296;var n=t>=0?qa(e):Wa(e);n!=t&&T("writeI53ToI64() out of range: serialized JS Number "+t+" to Wasm heap as bytes lo=0x"+G[e>>2].toString(16)+", hi=0x"+G[e+4>>2].toString(16)+", which deserializes back to "+n+" instead!")}function $a(e,t,n){if(t){var r=void 0;switch(e){case 36346:r=1;break;case 36344:return void(0!=n&&1!=n&&wo.recordError(1280));case 34814:case 36345:r=0;break;case 34466:var o=md.getParameter(34467);r=o?o.length:0;break;case 33309:if(wo.currentContext.version<2)return void wo.recordError(1282);r=2*(md.getSupportedExtensions()||[]).length;break;case 33307:case 33308:if(wo.currentContext.version<2)return void wo.recordError(1280);r=33307==e?3:0}if(void 0===r){var i=md.getParameter(e);switch(typeof i){case"number":r=i;break;case"boolean":r=i?1:0;break;case"string":return void wo.recordError(1280);case"object":if(null===i)switch(e){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 36662:case 36663:case 35053:case 35055:case 36010:case 35097:case 35869:case 32874:case 36389:case 35983:case 35368:case 34068:r=0;break;default:return void wo.recordError(1280)}else{if(i instanceof Float32Array||i instanceof Uint32Array||i instanceof Int32Array||i instanceof Array){for(var a=0;a<i.length;++a)switch(n){case 0:q[t+4*a>>2]=i[a];break;case 2:$[t+4*a>>2]=i[a];break;case 4:z[t+a>>0]=i[a]?1:0}return}try{r=0|i.name}catch(t){return wo.recordError(1280),void x("GL_INVALID_ENUM in glGet"+n+"v: Unknown object returned from WebGL getParameter("+e+")! (error: "+t+")")}}break;default:return wo.recordError(1280),void x("GL_INVALID_ENUM in glGet"+n+"v: Native code calling glGet"+n+"v("+e+") and it returns "+i+" of type "+typeof i+"!")}}switch(n){case 1:Ga(t,r);break;case 0:q[t>>2]=r;break;case 2:$[t>>2]=r;break;case 4:z[t>>0]=r?1:0}}else wo.recordError(1281)}function Ya(e,t){$a(e,t,4)}function Ka(e,t,n){n?Ga(n,md.getBufferParameter(e,t)):wo.recordError(1281)}function Za(e,t,n){n?q[n>>2]=md.getBufferParameter(e,t):wo.recordError(1281)}function Ja(){var e=md.getError()||wo.lastError;return wo.lastError=0,e}function es(e,t){$a(e,t,2)}function ts(e,t){return md.getFragDataLocation(wo.programs[e],N(t))}function ns(e,t,n,r){var o=md.getFramebufferAttachmentParameter(e,t,n);(o instanceof WebGLRenderbuffer||o instanceof WebGLTexture)&&(o=0|o.name),q[r>>2]=o}function rs(e,t,n,r){if(n){var o,i=md.getIndexedParameter(e,t);switch(typeof i){case"boolean":o=i?1:0;break;case"number":o=i;break;case"object":if(null===i)switch(e){case 35983:case 35368:o=0;break;default:return void wo.recordError(1280)}else{if(!(i instanceof WebGLBuffer))return void wo.recordError(1280);o=0|i.name}break;default:return void wo.recordError(1280)}switch(r){case 1:Ga(n,o);break;case 0:q[n>>2]=o;break;case 2:$[n>>2]=o;break;case 4:z[n>>0]=o?1:0;break;default:throw"internal emscriptenWebGLGetIndexed() error, bad type: "+r}}else wo.recordError(1281)}function os(e,t,n){rs(e,t,n,1)}function is(e,t){$a(e,t,1)}function as(e,t,n){rs(e,t,n,0)}function ss(e,t){$a(e,t,0)}function us(e,t,n,r,o){if(r<0)wo.recordError(1281);else if(o){var i=md.getInternalformatParameter(e,t,n);if(null!==i)for(var a=0;a<i.length&&a<r;++a)q[o+a>>2]=i[a]}else wo.recordError(1281)}function cs(e,t,n,r,o){wo.recordError(1282)}function ls(e,t,n,r){var o=md.getProgramInfoLog(wo.programs[e]);null===o&&(o="(unknown error)");var i=t>0&&r?B(o,r,t):0;n&&(q[n>>2]=i)}function fs(e,t,n){if(n)if(e>=wo.counter)wo.recordError(1281);else if(e=wo.programs[e],35716==t){var r=md.getProgramInfoLog(e);null===r&&(r="(unknown error)"),q[n>>2]=r.length+1}else if(35719==t){if(!e.maxUniformLength)for(var o=0;o<md.getProgramParameter(e,35718);++o)e.maxUniformLength=Math.max(e.maxUniformLength,md.getActiveUniform(e,o).name.length+1);q[n>>2]=e.maxUniformLength}else if(35722==t){if(!e.maxAttributeLength)for(o=0;o<md.getProgramParameter(e,35721);++o)e.maxAttributeLength=Math.max(e.maxAttributeLength,md.getActiveAttrib(e,o).name.length+1);q[n>>2]=e.maxAttributeLength}else if(35381==t){if(!e.maxUniformBlockNameLength)for(o=0;o<md.getProgramParameter(e,35382);++o)e.maxUniformBlockNameLength=Math.max(e.maxUniformBlockNameLength,md.getActiveUniformBlockName(e,o).length+1);q[n>>2]=e.maxUniformBlockNameLength}else q[n>>2]=md.getProgramParameter(e,t);else wo.recordError(1281)}function ds(e,t,n){if(n){var r,o=wo.queries[e];Ga(n,"boolean"==typeof(r=wo.currentContext.version<2?md.disjointTimerQueryExt.getQueryObjectEXT(o,t):md.getQueryParameter(o,t))?r?1:0:r)}else wo.recordError(1281)}function ps(e,t,n){if(n){var r,o=wo.queries[e],i=md.disjointTimerQueryExt.getQueryObjectEXT(o,t);r="boolean"==typeof i?i?1:0:i,q[n>>2]=r}else wo.recordError(1281)}function hs(e,t,n){if(n){var r,o=wo.queries[e];Ga(n,"boolean"==typeof(r=wo.currentContext.version<2?md.disjointTimerQueryExt.getQueryObjectEXT(o,t):md.getQueryParameter(o,t))?r?1:0:r)}else wo.recordError(1281)}function gs(e,t,n){if(n){var r,o=wo.queries[e],i=md.getQueryParameter(o,t);r="boolean"==typeof i?i?1:0:i,q[n>>2]=r}else wo.recordError(1281)}function ms(e,t,n){if(n){var r,o=wo.queries[e],i=md.disjointTimerQueryExt.getQueryObjectEXT(o,t);r="boolean"==typeof i?i?1:0:i,q[n>>2]=r}else wo.recordError(1281)}function vs(e,t,n){n?q[n>>2]=md.getQuery(e,t):wo.recordError(1281)}function ys(e,t,n){n?q[n>>2]=md.disjointTimerQueryExt.getQueryEXT(e,t):wo.recordError(1281)}function bs(e,t,n){n?q[n>>2]=md.getRenderbufferParameter(e,t):wo.recordError(1281)}function ws(e,t,n){n?$[n>>2]=md.getSamplerParameter(wo.samplers[e],t):wo.recordError(1281)}function Es(e,t,n){n?q[n>>2]=md.getSamplerParameter(wo.samplers[e],t):wo.recordError(1281)}function _s(e,t,n,r){var o=md.getShaderInfoLog(wo.shaders[e]);null===o&&(o="(unknown error)");var i=t>0&&r?B(o,r,t):0;n&&(q[n>>2]=i)}function Os(e,t,n,r){var o=md.getShaderPrecisionFormat(e,t);q[n>>2]=o.rangeMin,q[n+4>>2]=o.rangeMax,q[r>>2]=o.precision}function xs(e,t,n,r){var o=md.getShaderSource(wo.shaders[e]);if(o){var i=t>0&&r?B(o,r,t):0;n&&(q[n>>2]=i)}}function Ts(e,t,n){if(n)if(35716==t){var r=md.getShaderInfoLog(wo.shaders[e]);null===r&&(r="(unknown error)");var o=r?r.length+1:0;q[n>>2]=o}else if(35720==t){var i=md.getShaderSource(wo.shaders[e]),a=i?i.length+1:0;q[n>>2]=a}else q[n>>2]=md.getShaderParameter(wo.shaders[e],t);else wo.recordError(1281)}function Ps(e){var t=H(e)+1,n=Pd(t);return B(e,n,t),n}function ks(e){var t=wo.stringCache[e];if(!t){switch(e){case 7939:var n=md.getSupportedExtensions()||[];t=Ps((n=n.concat(n.map((function(e){return"GL_"+e})))).join(" "));break;case 7936:case 7937:case 37445:case 37446:var r=md.getParameter(e);r||wo.recordError(1280),t=r&&Ps(r);break;case 7938:var o=md.getParameter(7938);t=Ps(o=wo.currentContext.version>=2?"OpenGL ES 3.0 ("+o+")":"OpenGL ES 2.0 ("+o+")");break;case 35724:var i=md.getParameter(35724),a=i.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);null!==a&&(3==a[1].length&&(a[1]=a[1]+"0"),i="OpenGL ES GLSL ES "+a[1]+" ("+i+")"),t=Ps(i);break;default:wo.recordError(1280)}wo.stringCache[e]=t}return t}function Ss(e,t){if(wo.currentContext.version<2)return wo.recordError(1282),0;var n=wo.stringiCache[e];if(n)return t<0||t>=n.length?(wo.recordError(1281),0):n[t];switch(e){case 7939:var r=md.getSupportedExtensions()||[];return r=(r=r.concat(r.map((function(e){return"GL_"+e})))).map((function(e){return Ps(e)})),n=wo.stringiCache[e]=r,t<0||t>=n.length?(wo.recordError(1281),0):n[t];default:return wo.recordError(1280),0}}function Ds(e,t,n,r,o){if(n<0)wo.recordError(1281);else if(o){var i=md.getSyncParameter(wo.syncs[e],t);null!==i&&(q[o>>2]=i,r&&(q[r>>2]=1))}else wo.recordError(1281)}function Ms(e,t,n){n?$[n>>2]=md.getTexParameter(e,t):wo.recordError(1281)}function Rs(e,t,n){n?q[n>>2]=md.getTexParameter(e,t):wo.recordError(1281)}function Cs(e,t,n,r,o,i,a){e=wo.programs[e];var s=md.getTransformFeedbackVarying(e,t);if(s){if(a&&n>0){var u=B(s.name,a,n);r&&(q[r>>2]=u)}else r&&(q[r>>2]=0);o&&(q[o>>2]=s.size),i&&(q[i>>2]=s.type)}}function As(e,t){return md.getUniformBlockIndex(wo.programs[e],N(t))}function js(e,t,n,r){if(r)if(t>0&&(0==n||0==r))wo.recordError(1281);else{e=wo.programs[e];for(var o=[],i=0;i<t;i++)o.push(N(q[n+4*i>>2]));var a=md.getUniformIndices(e,o);if(a){var s=a.length;for(i=0;i<s;i++)q[r+4*i>>2]=a[i]}}else wo.recordError(1281)}function Fs(e){return parseInt(e)}function Ls(e){return"]"==e.slice(-1)&&e.lastIndexOf("[")}function Is(e){var t,n,r=e.uniformLocsById,o=e.uniformSizeAndIdsByName;if(!r)for(e.uniformLocsById=r={},e.uniformArrayNamesById={},t=0;t<md.getProgramParameter(e,35718);++t){var i=md.getActiveUniform(e,t),a=i.name,s=i.size,u=Ls(a),c=u>0?a.slice(0,u):a,l=e.uniformIdCounter;for(e.uniformIdCounter+=s,o[c]=[s,l],n=0;n<s;++n)r[l]=n,e.uniformArrayNamesById[l++]=c}}function Ns(e,t){if(t=N(t),e=wo.programs[e]){Is(e);var n=e.uniformLocsById,r=0,o=t,i=Ls(t);i>0&&(r=Fs(t.slice(i+1))>>>0,o=t.slice(0,i));var a=e.uniformSizeAndIdsByName[o];if(a&&r<a[0]&&(n[r+=a[1]]=n[r]||md.getUniformLocation(e,t)))return r}else wo.recordError(1281);return-1}function Us(e){var t=md.currentProgram;if(t){var n=t.uniformLocsById[e];return"number"==typeof n&&(t.uniformLocsById[e]=n=md.getUniformLocation(t,t.uniformArrayNamesById[e]+(n>0?"["+n+"]":""))),n}wo.recordError(1282)}function Bs(e,t,n,r){if(n){Is(e=wo.programs[e]);var o=md.getUniform(e,Us(t));if("number"==typeof o||"boolean"==typeof o)switch(r){case 0:q[n>>2]=o;break;case 2:$[n>>2]=o}else for(var i=0;i<o.length;i++)switch(r){case 0:q[n+4*i>>2]=o[i];break;case 2:$[n+4*i>>2]=o[i]}}else wo.recordError(1281)}function Hs(e,t,n){Bs(e,t,n,2)}function Vs(e,t,n){Bs(e,t,n,0)}function zs(e,t,n){Bs(e,t,n,0)}function Qs(e,t,n,r){if(n){var o=md.getVertexAttrib(e,t);if(34975==t)q[n>>2]=o&&o.name;else if("number"==typeof o||"boolean"==typeof o)switch(r){case 0:q[n>>2]=o;break;case 2:$[n>>2]=o;break;case 5:q[n>>2]=Math.fround(o)}else for(var i=0;i<o.length;i++)switch(r){case 0:q[n+4*i>>2]=o[i];break;case 2:$[n+4*i>>2]=o[i];break;case 5:q[n+4*i>>2]=Math.fround(o[i])}}else wo.recordError(1281)}function Xs(e,t,n){Qs(e,t,n,0)}function Ws(e,t,n){Qs(e,t,n,0)}function qs(e,t,n){n?q[n>>2]=md.getVertexAttribOffset(e,t):wo.recordError(1281)}function Gs(e,t,n){Qs(e,t,n,2)}function $s(e,t,n){Qs(e,t,n,5)}function Ys(e,t){md.hint(e,t)}function Ks(e,t,n){for(var r=na[t],o=0;o<t;o++)r[o]=q[n+4*o>>2];md.invalidateFramebuffer(e,r)}function Zs(e,t,n,r,o,i,a){for(var s=na[t],u=0;u<t;u++)s[u]=q[n+4*u>>2];md.invalidateSubFramebuffer(e,s,r,o,i,a)}function Js(e){var t=wo.buffers[e];return t?md.isBuffer(t):0}function eu(e){return md.isEnabled(e)}function tu(e){var t=wo.framebuffers[e];return t?md.isFramebuffer(t):0}function nu(e){return(e=wo.programs[e])?md.isProgram(e):0}function ru(e){var t=wo.queries[e];return t?md.isQuery(t):0}function ou(e){var t=wo.queries[e];return t?md.disjointTimerQueryExt.isQueryEXT(t):0}function iu(e){var t=wo.renderbuffers[e];return t?md.isRenderbuffer(t):0}function au(e){var t=wo.samplers[e];return t?md.isSampler(t):0}function su(e){var t=wo.shaders[e];return t?md.isShader(t):0}function uu(e){return md.isSync(wo.syncs[e])}function cu(e){var t=wo.textures[e];return t?md.isTexture(t):0}function lu(e){return md.isTransformFeedback(wo.transformFeedbacks[e])}function fu(e){var t=wo.vaos[e];return t?md.isVertexArray(t):0}function du(e){var t=wo.vaos[e];return t?md.isVertexArray(t):0}function pu(e){md.lineWidth(e)}function hu(e){e=wo.programs[e],md.linkProgram(e),e.uniformLocsById=0,e.uniformSizeAndIdsByName={}}function gu(){md.pauseTransformFeedback()}function mu(e,t){3317==e&&(wo.unpackAlignment=t),md.pixelStorei(e,t)}function vu(e,t){md.polygonOffset(e,t)}function yu(e,t,n,r){wo.recordError(1280)}function bu(e,t,n){wo.recordError(1280)}function wu(e,t){md.disjointTimerQueryExt.queryCounterEXT(wo.queries[e],t)}function Eu(e){md.readBuffer(e)}function _u(e,t,n,r){var o;return t*(e*n+(o=r)-1&-o)}function Ou(e){return{5:3,6:4,8:2,29502:3,29504:4,26917:2,26918:2,29846:3,29847:4}[e-6402]||1}function xu(e){return 0==(e-=5120)?z:1==e?Q:2==e?X:4==e?q:6==e?$:5==e||28922==e||28520==e||30779==e||30782==e?G:W}function Tu(e){return 31-Math.clz32(e.BYTES_PER_ELEMENT)}function Pu(e,t,n,r,o,i){var a=xu(e),s=Tu(a),u=1<<s,c=_u(n,r,Ou(t)*u,wo.unpackAlignment);return a.subarray(o>>s,o+c>>s)}function ku(e,t,n,r,o,i,a){if(wo.currentContext.version>=2)if(md.currentPixelPackBufferBinding)md.readPixels(e,t,n,r,o,i,a);else{var s=xu(i);md.readPixels(e,t,n,r,o,i,s,a>>Tu(s))}else{var u=Pu(i,o,n,r,a);u?md.readPixels(e,t,n,r,o,i,u):wo.recordError(1280)}}function Su(){}function Du(e,t,n,r){md.renderbufferStorage(e,t,n,r)}function Mu(e,t,n,r,o){md.renderbufferStorageMultisample(e,t,n,r,o)}function Ru(){md.resumeTransformFeedback()}function Cu(e,t){md.sampleCoverage(e,!!t)}function Au(e,t,n){md.samplerParameterf(wo.samplers[e],t,n)}function ju(e,t,n){var r=$[n>>2];md.samplerParameterf(wo.samplers[e],t,r)}function Fu(e,t,n){md.samplerParameteri(wo.samplers[e],t,n)}function Lu(e,t,n){var r=q[n>>2];md.samplerParameteri(wo.samplers[e],t,r)}function Iu(e,t,n,r){md.scissor(e,t,n,r)}function Nu(){wo.recordError(1280)}function Uu(e,t,n,r){var o=wo.getSource(e,t,n,r);if(wo.currentContext.version>=2&&o.includes("#version 100")){var i="";(o=(o=o.replace(/#extension GL_OES_standard_derivatives : enable/g,"")).replace(/#extension GL_EXT_shader_texture_lod : enable/g,"")).includes("gl_FragColor")&&(i+="out mediump vec4 GL_FragColor;\n",o=o.replace(/gl_FragColor/g,"GL_FragColor")),o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=o.includes("attribute")?(o=o.replace(/attribute/g,"in")).replace(/varying/g,"out"):o.replace(/varying/g,"in")).replace(/textureCubeLodEXT/g,"textureCubeLod")).replace(/texture2DLodEXT/g,"texture2DLod")).replace(/texture2DProjLodEXT/g,"texture2DProjLod")).replace(/texture2DGradEXT/g,"texture2DGrad")).replace(/texture2DProjGradEXT/g,"texture2DProjGrad")).replace(/textureCubeGradEXT/g,"textureCubeGrad")).replace(/textureCube/g,"texture")).replace(/texture1D/g,"texture")).replace(/texture2D/g,"texture")).replace(/texture3D/g,"texture")).replace(/#version 100/g,"#version 300 es\n"+i)}md.shaderSource(wo.shaders[e],o)}function Bu(e,t,n){md.stencilFunc(e,t,n)}function Hu(e,t,n,r){md.stencilFuncSeparate(e,t,n,r)}function Vu(e){md.stencilMask(e)}function zu(e,t){md.stencilMaskSeparate(e,t)}function Qu(e,t,n){md.stencilOp(e,t,n)}function Xu(e,t,n,r){md.stencilOpSeparate(e,t,n,r)}function Wu(e,t,n,r,o,i,a,s,u){if(wo.currentContext.version>=2&&(6402==a&&6402==n&&5125==s&&(n=33190),36193==s&&(s=5131,6408==a&&6408==n&&(n=34842)),34041==n&&(n=35056)),wo.currentContext.version>=2)if(md.currentPixelUnpackBufferBinding)md.texImage2D(e,t,n,r,o,i,a,s,u);else if(u){var c=xu(s);md.texImage2D(e,t,n,r,o,i,a,s,c,u>>Tu(c))}else md.texImage2D(e,t,n,r,o,i,a,s,null);else md.texImage2D(e,t,n,r,o,i,a,s,u?Pu(s,a,r,o,u):null)}function qu(e,t,n,r,o,i,a,s,u,c){if(md.currentPixelUnpackBufferBinding)md.texImage3D(e,t,n,r,o,i,a,s,u,c);else if(c){var l=xu(u);md.texImage3D(e,t,n,r,o,i,a,s,u,l,c>>Tu(l))}else md.texImage3D(e,t,n,r,o,i,a,s,u,null)}function Gu(e,t,n){md.texParameterf(e,t,n)}function $u(e,t,n){var r=$[n>>2];md.texParameterf(e,t,r)}function Yu(e,t,n){md.texParameteri(e,t,n)}function Ku(e,t,n){var r=q[n>>2];md.texParameteri(e,t,r)}function Zu(e,t,n,r,o){md.texStorage2D(e,t,n,r,o)}function Ju(e,t,n,r,o,i){md.texStorage3D(e,t,n,r,o,i)}function ec(e,t,n,r,o,i,a,s,u){if(wo.currentContext.version>=2&&36193==s&&(s=5131),wo.currentContext.version>=2)if(md.currentPixelUnpackBufferBinding)md.texSubImage2D(e,t,n,r,o,i,a,s,u);else if(u){var c=xu(s);md.texSubImage2D(e,t,n,r,o,i,a,s,c,u>>Tu(c))}else md.texSubImage2D(e,t,n,r,o,i,a,s,null);else{var l=null;u&&(l=Pu(s,a,o,i,u)),md.texSubImage2D(e,t,n,r,o,i,a,s,l)}}function tc(e,t,n,r,o,i,a,s,u,c,l){if(md.currentPixelUnpackBufferBinding)md.texSubImage3D(e,t,n,r,o,i,a,s,u,c,l);else if(l){var f=xu(c);md.texSubImage3D(e,t,n,r,o,i,a,s,u,c,f,l>>Tu(f))}else md.texSubImage3D(e,t,n,r,o,i,a,s,u,c,null)}function nc(e,t,n,r){e=wo.programs[e];for(var o=[],i=0;i<t;i++)o.push(N(q[n+4*i>>2]));md.transformFeedbackVaryings(e,o,r)}function rc(e,t){md.uniform1f(Us(e),t)}var oc=[];function ic(e,t,n){if(wo.currentContext.version>=2)md.uniform1fv(Us(e),$,n>>2,t);else{if(t<=288)for(var r=oc[t-1],o=0;o<t;++o)r[o]=$[n+4*o>>2];else r=$.subarray(n>>2,n+4*t>>2);md.uniform1fv(Us(e),r)}}function ac(e,t){md.uniform1i(Us(e),t)}var sc=[];function uc(e,t,n){if(wo.currentContext.version>=2)md.uniform1iv(Us(e),q,n>>2,t);else{if(t<=288)for(var r=sc[t-1],o=0;o<t;++o)r[o]=q[n+4*o>>2];else r=q.subarray(n>>2,n+4*t>>2);md.uniform1iv(Us(e),r)}}function cc(e,t){md.uniform1ui(Us(e),t)}function lc(e,t,n){md.uniform1uiv(Us(e),G,n>>2,t)}function fc(e,t,n){md.uniform2f(Us(e),t,n)}function dc(e,t,n){if(wo.currentContext.version>=2)md.uniform2fv(Us(e),$,n>>2,2*t);else{if(t<=144)for(var r=oc[2*t-1],o=0;o<2*t;o+=2)r[o]=$[n+4*o>>2],r[o+1]=$[n+(4*o+4)>>2];else r=$.subarray(n>>2,n+8*t>>2);md.uniform2fv(Us(e),r)}}function pc(e,t,n){md.uniform2i(Us(e),t,n)}function hc(e,t,n){if(wo.currentContext.version>=2)md.uniform2iv(Us(e),q,n>>2,2*t);else{if(t<=144)for(var r=sc[2*t-1],o=0;o<2*t;o+=2)r[o]=q[n+4*o>>2],r[o+1]=q[n+(4*o+4)>>2];else r=q.subarray(n>>2,n+8*t>>2);md.uniform2iv(Us(e),r)}}function gc(e,t,n){md.uniform2ui(Us(e),t,n)}function mc(e,t,n){md.uniform2uiv(Us(e),G,n>>2,2*t)}function vc(e,t,n,r){md.uniform3f(Us(e),t,n,r)}function yc(e,t,n){if(wo.currentContext.version>=2)md.uniform3fv(Us(e),$,n>>2,3*t);else{if(t<=96)for(var r=oc[3*t-1],o=0;o<3*t;o+=3)r[o]=$[n+4*o>>2],r[o+1]=$[n+(4*o+4)>>2],r[o+2]=$[n+(4*o+8)>>2];else r=$.subarray(n>>2,n+12*t>>2);md.uniform3fv(Us(e),r)}}function bc(e,t,n,r){md.uniform3i(Us(e),t,n,r)}function wc(e,t,n){if(wo.currentContext.version>=2)md.uniform3iv(Us(e),q,n>>2,3*t);else{if(t<=96)for(var r=sc[3*t-1],o=0;o<3*t;o+=3)r[o]=q[n+4*o>>2],r[o+1]=q[n+(4*o+4)>>2],r[o+2]=q[n+(4*o+8)>>2];else r=q.subarray(n>>2,n+12*t>>2);md.uniform3iv(Us(e),r)}}function Ec(e,t,n,r){md.uniform3ui(Us(e),t,n,r)}function _c(e,t,n){md.uniform3uiv(Us(e),G,n>>2,3*t)}function Oc(e,t,n,r,o){md.uniform4f(Us(e),t,n,r,o)}function xc(e,t,n){if(wo.currentContext.version>=2)md.uniform4fv(Us(e),$,n>>2,4*t);else{if(t<=72){var r=oc[4*t-1],o=$;n>>=2;for(var i=0;i<4*t;i+=4){var a=n+i;r[i]=o[a],r[i+1]=o[a+1],r[i+2]=o[a+2],r[i+3]=o[a+3]}}else r=$.subarray(n>>2,n+16*t>>2);md.uniform4fv(Us(e),r)}}function Tc(e,t,n,r,o){md.uniform4i(Us(e),t,n,r,o)}function Pc(e,t,n){if(wo.currentContext.version>=2)md.uniform4iv(Us(e),q,n>>2,4*t);else{if(t<=72)for(var r=sc[4*t-1],o=0;o<4*t;o+=4)r[o]=q[n+4*o>>2],r[o+1]=q[n+(4*o+4)>>2],r[o+2]=q[n+(4*o+8)>>2],r[o+3]=q[n+(4*o+12)>>2];else r=q.subarray(n>>2,n+16*t>>2);md.uniform4iv(Us(e),r)}}function kc(e,t,n,r,o){md.uniform4ui(Us(e),t,n,r,o)}function Sc(e,t,n){md.uniform4uiv(Us(e),G,n>>2,4*t)}function Dc(e,t,n){e=wo.programs[e],md.uniformBlockBinding(e,t,n)}function Mc(e,t,n,r){if(wo.currentContext.version>=2)md.uniformMatrix2fv(Us(e),!!n,$,r>>2,4*t);else{if(t<=72)for(var o=oc[4*t-1],i=0;i<4*t;i+=4)o[i]=$[r+4*i>>2],o[i+1]=$[r+(4*i+4)>>2],o[i+2]=$[r+(4*i+8)>>2],o[i+3]=$[r+(4*i+12)>>2];else o=$.subarray(r>>2,r+16*t>>2);md.uniformMatrix2fv(Us(e),!!n,o)}}function Rc(e,t,n,r){md.uniformMatrix2x3fv(Us(e),!!n,$,r>>2,6*t)}function Cc(e,t,n,r){md.uniformMatrix2x4fv(Us(e),!!n,$,r>>2,8*t)}function Ac(e,t,n,r){if(wo.currentContext.version>=2)md.uniformMatrix3fv(Us(e),!!n,$,r>>2,9*t);else{if(t<=32)for(var o=oc[9*t-1],i=0;i<9*t;i+=9)o[i]=$[r+4*i>>2],o[i+1]=$[r+(4*i+4)>>2],o[i+2]=$[r+(4*i+8)>>2],o[i+3]=$[r+(4*i+12)>>2],o[i+4]=$[r+(4*i+16)>>2],o[i+5]=$[r+(4*i+20)>>2],o[i+6]=$[r+(4*i+24)>>2],o[i+7]=$[r+(4*i+28)>>2],o[i+8]=$[r+(4*i+32)>>2];else o=$.subarray(r>>2,r+36*t>>2);md.uniformMatrix3fv(Us(e),!!n,o)}}function jc(e,t,n,r){md.uniformMatrix3x2fv(Us(e),!!n,$,r>>2,6*t)}function Fc(e,t,n,r){md.uniformMatrix3x4fv(Us(e),!!n,$,r>>2,12*t)}function Lc(e,t,n,r){if(wo.currentContext.version>=2)md.uniformMatrix4fv(Us(e),!!n,$,r>>2,16*t);else{if(t<=18){var o=oc[16*t-1],i=$;r>>=2;for(var a=0;a<16*t;a+=16){var s=r+a;o[a]=i[s],o[a+1]=i[s+1],o[a+2]=i[s+2],o[a+3]=i[s+3],o[a+4]=i[s+4],o[a+5]=i[s+5],o[a+6]=i[s+6],o[a+7]=i[s+7],o[a+8]=i[s+8],o[a+9]=i[s+9],o[a+10]=i[s+10],o[a+11]=i[s+11],o[a+12]=i[s+12],o[a+13]=i[s+13],o[a+14]=i[s+14],o[a+15]=i[s+15]}}else o=$.subarray(r>>2,r+64*t>>2);md.uniformMatrix4fv(Us(e),!!n,o)}}function Ic(e,t,n,r){md.uniformMatrix4x2fv(Us(e),!!n,$,r>>2,8*t)}function Nc(e,t,n,r){md.uniformMatrix4x3fv(Us(e),!!n,$,r>>2,12*t)}function Uc(e){e=wo.programs[e],md.useProgram(e),md.currentProgram=e}function Bc(e){md.validateProgram(wo.programs[e])}function Hc(e,t){md.vertexAttrib1f(e,t)}function Vc(e,t){md.vertexAttrib1f(e,$[t>>2])}function zc(e,t,n){md.vertexAttrib2f(e,t,n)}function Qc(e,t){md.vertexAttrib2f(e,$[t>>2],$[t+4>>2])}function Xc(e,t,n,r){md.vertexAttrib3f(e,t,n,r)}function Wc(e,t){md.vertexAttrib3f(e,$[t>>2],$[t+4>>2],$[t+8>>2])}function qc(e,t,n,r,o){md.vertexAttrib4f(e,t,n,r,o)}function Gc(e,t){md.vertexAttrib4f(e,$[t>>2],$[t+4>>2],$[t+8>>2],$[t+12>>2])}function $c(e,t){md.vertexAttribDivisor(e,t)}function Yc(e,t){md.vertexAttribDivisor(e,t)}function Kc(e,t){md.vertexAttribDivisor(e,t)}function Zc(e,t){md.vertexAttribDivisor(e,t)}function Jc(e,t){md.vertexAttribDivisor(e,t)}function el(e,t,n,r,o){md.vertexAttribI4i(e,t,n,r,o)}function tl(e,t){md.vertexAttribI4i(e,q[t>>2],q[t+4>>2],q[t+8>>2],q[t+12>>2])}function nl(e,t,n,r,o){md.vertexAttribI4ui(e,t,n,r,o)}function rl(e,t){md.vertexAttribI4ui(e,G[t>>2],G[t+4>>2],G[t+8>>2],G[t+12>>2])}function ol(e,t,n,r,o){md.vertexAttribIPointer(e,t,n,r,o)}function il(e,t,n,r,o,i){md.vertexAttribPointer(e,t,n,!!r,o,i)}function al(e,t,n,r){md.viewport(e,t,n,r)}function sl(e,t,n,r){md.waitSync(wo.syncs[e],t,mi(n,r))}function ul(e,t,n){Q.copyWithin(e,t,t+n)}function cl(e){try{return M.grow(e-V.byteLength+65535>>>16),ue(M.buffer),1}catch(t){x("emscripten_realloc_buffer: Attempted to grow heap from "+V.byteLength+" bytes to "+e+" bytes, but got error: "+t)}}function ll(e){var t=Q.length;F((e>>>=0)>t);var n=2147483648;if(e>n)return x("Cannot enlarge memory, asked to go up to "+e+" bytes, but the limit is 2147483648 bytes!"),!1;for(var r=1;r<=4;r*=2){var o=t*(1+.2/r);o=Math.min(o,e+100663296);var i=Math.min(n,se(Math.max(e,o),65536));if(cl(i))return!0}return x("Failed to grow the heap from "+t+" bytes to "+i+" bytes, not enough memory!"),!1}function fl(e){if(o.emscripten_ubq_asyncFetchStates.has(e)){const t=o.emscripten_ubq_asyncFetchStates.get(e);if(t.state==a.ALLOCATED)return!0;if(t.state==a.FINISHED){const n=t.result.length,r=o._malloc(n);return o.HEAPU8.set(t.result,r),t.resultAddress=r,t.resultLength=n,t.state=a.ALLOCATED,o.emscripten_ubq_asyncFetchStates.set(e,t),!0}}return!1}function dl(e,t,n,r){let i=o.UTF8ToString(e,t),a=o.UTF8ToString(n,r),s=o.emscripten_ubq_asyncFetchNextHeaderHandle++;return o.emscripten_ubq_asyncFetchHeaders.set(s,{key:i,value:a}),s}function pl(e){return o.emscripten_ubq_asyncFetchHeaders.has(e)?o.emscripten_ubq_asyncFetchHeaders.get(e):0}function hl(e,t,n,r,i,u,c,l,f){let d=o.UTF8ToString(t,n),p=o.UTF8ToString(l,f),h=o.emscripten_ubq_asyncFetchNextHandle++;o.emscripten_ubq_asyncFetchStates.set(h,{state:a.PENDING});let g={};for(let e=0;e<i;e++){const t=o.getValue(r+4*e,"i32"),n=o.emscripten_ubq_asyncFetchHeaders.get(t);g[n.key]=n.value}const m=s[e],v="GET"!==m&&"HEAD"!==m?o.UTF8ToString(u,c):void 0;return fetch(d,{method:m,headers:g,body:v,mode:"cors",credentials:p}).then((e=>{if(e.status>=200&&e.status<=209){let t=0;async function n(e,t){const n=e.getReader();let r=0,i=[];for(;;){const{done:e,value:t}=await n.read();if(e)break;i.push(t),r+=t.length,o.emscripten_ubq_asyncFetchCompletedBytes.set(h,r)}let a=new Uint8Array(r),s=0;for(let e of i)a.set(e,s),s+=e.length;return a}return e.headers.has("Content-Length")&&(t=+e.headers.get("Content-Length")),o.emscripten_ubq_asyncFetchTotalBytes.set(h,t),n(e.body)}return Promise.reject(e.statusText)})).then((e=>{o.emscripten_ubq_asyncFetchStates.set(h,{state:a.FINISHED,result:e})})).catch((e=>{o.emscripten_ubq_asyncFetchStates.set(h,{state:a.ERROR,error:e})})),h}function gl(e){return!!o.emscripten_ubq_asyncFetchStates.has(e)&&(o.emscripten_ubq_asyncFetchStates.delete(e),!0)}function ml(e){return o.emscripten_ubq_asyncFetchCompletedBytes.has(e)?o.emscripten_ubq_asyncFetchCompletedBytes.get(e):0}function vl(e){if(o.emscripten_ubq_asyncFetchStates.has(e)){const t=o.emscripten_ubq_asyncFetchStates.get(e);if(t.state==a.ALLOCATED)return t.resultAddress}return-1}function yl(e){if(o.emscripten_ubq_asyncFetchStates.has(e)){const t=o.emscripten_ubq_asyncFetchStates.get(e);if(t.state==a.ALLOCATED)return t.resultLength}return-1}function bl(e){return o.emscripten_ubq_asyncFetchStates.has(e)?o.emscripten_ubq_asyncFetchStates.get(e).state:-1}function wl(e){return o.emscripten_ubq_asyncFetchTotalBytes.has(e)?o.emscripten_ubq_asyncFetchTotalBytes.get(e):0}var El={inEventHandler:0,removeAllEventListeners:function(){for(var e=El.eventHandlers.length-1;e>=0;--e)El._removeHandler(e);El.eventHandlers=[],El.deferredCalls=[]},registerRemoveEventListeners:function(){El.removeEventListenersRegistered||(ve.push(El.removeAllEventListeners),El.removeEventListenersRegistered=!0)},deferredCalls:[],deferCall:function(e,t,n){function r(e,t){if(e.length!=t.length)return!1;for(var n in e)if(e[n]!=t[n])return!1;return!0}for(var o in El.deferredCalls){var i=El.deferredCalls[o];if(i.targetFunction==e&&r(i.argsList,n))return}El.deferredCalls.push({targetFunction:e,precedence:t,argsList:n}),El.deferredCalls.sort((function(e,t){return e.precedence<t.precedence}))},removeDeferredCalls:function(e){for(var t=0;t<El.deferredCalls.length;++t)El.deferredCalls[t].targetFunction==e&&(El.deferredCalls.splice(t,1),--t)},canPerformEventHandlerRequests:function(){return El.inEventHandler&&El.currentEventHandler.allowsDeferredCalls},runDeferredCalls:function(){if(El.canPerformEventHandlerRequests())for(var e=0;e<El.deferredCalls.length;++e){var t=El.deferredCalls[e];El.deferredCalls.splice(e,1),--e,t.targetFunction.apply(null,t.argsList)}},eventHandlers:[],removeAllHandlersOnTarget:function(e,t){for(var n=0;n<El.eventHandlers.length;++n)El.eventHandlers[n].target!=e||t&&t!=El.eventHandlers[n].eventTypeString||El._removeHandler(n--)},_removeHandler:function(e){var t=El.eventHandlers[e];t.target.removeEventListener(t.eventTypeString,t.eventListenerFunc,t.useCapture),El.eventHandlers.splice(e,1)},registerOrRemoveHandler:function(e){var t=function(t){++El.inEventHandler,El.currentEventHandler=e,El.runDeferredCalls(),e.handlerFunc(t),El.runDeferredCalls(),--El.inEventHandler};if(e.callbackfunc)e.eventListenerFunc=t,e.target.addEventListener(e.eventTypeString,t,e.useCapture),El.eventHandlers.push(e),El.registerRemoveEventListeners();else for(var n=0;n<El.eventHandlers.length;++n)El.eventHandlers[n].target==e.target&&El.eventHandlers[n].eventTypeString==e.eventTypeString&&El._removeHandler(n--)},getNodeNameForTarget:function(e){return e?e==window?"#window":e==screen?"#screen":e&&e.nodeName?e.nodeName:"":""},fullscreenEnabled:function(){return document.fullscreenEnabled||document.webkitFullscreenEnabled}},_l=["default","low-power","high-performance"];function Ol(e){return e>2?N(e):e}var xl=[0,document,window];function Tl(e){return e=Ol(e),xl[e]||document.querySelector(e)}function Pl(e){return Tl(e)}function kl(e,t){F(t);var n=t>>2,r=q[n+6],o={alpha:!!q[n+0],depth:!!q[n+1],stencil:!!q[n+2],antialias:!!q[n+3],premultipliedAlpha:!!q[n+4],preserveDrawingBuffer:!!q[n+5],powerPreference:_l[r],failIfMajorPerformanceCaveat:!!q[n+7],majorVersion:q[n+8],minorVersion:q[n+9],enableExtensionsByDefault:q[n+10],explicitSwapControl:q[n+11],proxyContextToMainThread:q[n+12],renderViaOffscreenBackBuffer:q[n+13]},i=Pl(e);return i?o.explicitSwapControl?0:wo.createContext(i,o):0}function Sl(e,t){return kl(e,t)}function Dl(e){F(e);for(var t=e>>2,n=0;n<14;++n)q[t+n]=0;q[t+0]=q[t+1]=q[t+3]=q[t+4]=q[t+8]=q[t+10]=1}function Ml(e){return wo.makeContextCurrent(e)?0:-5}var Rl={};function Cl(){return f||"./this.program"}function Al(){if(!Al.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Cl()};for(var t in Rl)void 0===Rl[t]?delete e[t]:e[t]=Rl[t];var n=[];for(var t in e)n.push(t+"="+e[t]);Al.strings=n}return Al.strings}function jl(e,t){var n=0;return Al().forEach((function(r,o){var i=t+n;q[e+4*o>>2]=i,ae(r,i),n+=r.length+1})),0}function Fl(e,t){var n=Al();q[e>>2]=n.length;var r=0;return n.forEach((function(e){r+=e.length+1})),q[t>>2]=r,0}function Ll(e){try{var t=bt.getStreamFromFD(e);return yt.close(t),0}catch(e){return void 0!==yt&&e instanceof yt.ErrnoError||Ne(e),e.errno}}function Il(e,t,n,r){try{var o=bt.getStreamFromFD(e),i=bt.doReadv(o,t,n);return q[r>>2]=i,0}catch(e){return void 0!==yt&&e instanceof yt.ErrnoError||Ne(e),e.errno}}function Nl(e,t,n,r,o){try{var i=bt.getStreamFromFD(e),a=4294967296*n+(t>>>0),s=9007199254740992;return a<=-s||a>=s?-61:(yt.llseek(i,a,r),He=[i.position>>>0,(Be=i.position,+Math.abs(Be)>=1?Be>0?(0|Math.min(+Math.floor(Be/4294967296),4294967295))>>>0:~~+Math.ceil((Be-+(~~Be>>>0))/4294967296)>>>0:0)],q[o>>2]=He[0],q[o+4>>2]=He[1],i.getdents&&0===a&&0===r&&(i.getdents=null),0)}catch(e){return void 0!==yt&&e instanceof yt.ErrnoError||Ne(e),e.errno}}function Ul(e,t,n,r){try{var o=bt.getStreamFromFD(e),i=bt.doWritev(o,t,n);return q[r>>2]=i,0}catch(e){return void 0!==yt&&e instanceof yt.ErrnoError||Ne(e),e.errno}}function Bl(){return D()}function Hl(e){var t=Date.now();return q[e>>2]=t/1e3|0,q[e+4>>2]=t%1e3*1e3|0,0}function Vl(e){md.activeTexture(e)}function zl(e,t){md.attachShader(wo.programs[e],wo.shaders[t])}function Ql(e,t){35051==e?md.currentPixelPackBufferBinding=t:35052==e&&(md.currentPixelUnpackBufferBinding=t),md.bindBuffer(e,wo.buffers[t])}function Xl(e,t){md.bindFramebuffer(e,wo.framebuffers[t])}function Wl(e,t){md.bindRenderbuffer(e,wo.renderbuffers[t])}function ql(e,t){md.bindTexture(e,wo.textures[t])}function Gl(e){md.blendEquation(e)}function $l(e,t){md.blendEquationSeparate(e,t)}function Yl(e,t){md.blendFunc(e,t)}function Kl(e,t,n,r){md.blendFuncSeparate(e,t,n,r)}function Zl(e,t,n,r){wo.currentContext.version>=2?n?md.bufferData(e,Q,r,n,t):md.bufferData(e,t,r):md.bufferData(e,n?Q.subarray(n,n+t):t,r)}function Jl(e){md.clear(e)}function ef(e,t,n,r){md.clearColor(e,t,n,r)}function tf(e){md.clearStencil(e)}function nf(e,t,n,r){md.colorMask(!!e,!!t,!!n,!!r)}function rf(e){md.compileShader(wo.shaders[e])}function of(){var e=wo.getNewId(wo.programs),t=md.createProgram();return t.name=e,t.maxUniformLength=t.maxAttributeLength=t.maxUniformBlockNameLength=0,t.uniformIdCounter=1,wo.programs[e]=t,e}function af(e){var t=wo.getNewId(wo.shaders);return wo.shaders[t]=md.createShader(e),t}function sf(e,t){for(var n=0;n<e;n++){var r=q[t+4*n>>2],o=wo.buffers[r];o&&(md.deleteBuffer(o),o.name=0,wo.buffers[r]=null,r==md.currentPixelPackBufferBinding&&(md.currentPixelPackBufferBinding=0),r==md.currentPixelUnpackBufferBinding&&(md.currentPixelUnpackBufferBinding=0))}}function uf(e,t){for(var n=0;n<e;++n){var r=q[t+4*n>>2],o=wo.framebuffers[r];o&&(md.deleteFramebuffer(o),o.name=0,wo.framebuffers[r]=null)}}function cf(e){if(e){var t=wo.programs[e];t?(md.deleteProgram(t),t.name=0,wo.programs[e]=null):wo.recordError(1281)}}function ff(e,t){for(var n=0;n<e;n++){var r=q[t+4*n>>2],o=wo.renderbuffers[r];o&&(md.deleteRenderbuffer(o),o.name=0,wo.renderbuffers[r]=null)}}function df(e){if(e){var t=wo.shaders[e];t?(md.deleteShader(t),wo.shaders[e]=null):wo.recordError(1281)}}function pf(e,t){for(var n=0;n<e;n++){var r=q[t+4*n>>2],o=wo.textures[r];o&&(md.deleteTexture(o),o.name=0,wo.textures[r]=null)}}function hf(e){md.depthMask(!!e)}function gf(e,t){md.detachShader(wo.programs[e],wo.shaders[t])}function mf(e){md.disable(e)}function vf(e,t,n){md.drawArrays(e,t,n)}function yf(e){md.enable(e)}function bf(e){md.enableVertexAttribArray(e)}function wf(){md.finish()}function Ef(e,t,n,r){md.framebufferRenderbuffer(e,t,n,wo.renderbuffers[r])}function _f(e,t,n,r,o){md.framebufferTexture2D(e,t,n,wo.textures[r],o)}function Of(e,t){Pa(e,t,"createBuffer",wo.buffers)}function xf(e,t){Pa(e,t,"createFramebuffer",wo.framebuffers)}function Tf(e,t){Pa(e,t,"createRenderbuffer",wo.renderbuffers)}function Pf(e,t){Pa(e,t,"createTexture",wo.textures)}function kf(e,t){return md.getAttribLocation(wo.programs[e],N(t))}function Sf(){var e=md.getError()||wo.lastError;return wo.lastError=0,e}function Df(e,t){$a(e,t,0)}function Mf(e,t,n,r){var o=md.getProgramInfoLog(wo.programs[e]);null===o&&(o="(unknown error)");var i=t>0&&r?B(o,r,t):0;n&&(q[n>>2]=i)}function Rf(e,t,n){if(n)if(e>=wo.counter)wo.recordError(1281);else if(e=wo.programs[e],35716==t){var r=md.getProgramInfoLog(e);null===r&&(r="(unknown error)"),q[n>>2]=r.length+1}else if(35719==t){if(!e.maxUniformLength)for(var o=0;o<md.getProgramParameter(e,35718);++o)e.maxUniformLength=Math.max(e.maxUniformLength,md.getActiveUniform(e,o).name.length+1);q[n>>2]=e.maxUniformLength}else if(35722==t){if(!e.maxAttributeLength)for(o=0;o<md.getProgramParameter(e,35721);++o)e.maxAttributeLength=Math.max(e.maxAttributeLength,md.getActiveAttrib(e,o).name.length+1);q[n>>2]=e.maxAttributeLength}else if(35381==t){if(!e.maxUniformBlockNameLength)for(o=0;o<md.getProgramParameter(e,35382);++o)e.maxUniformBlockNameLength=Math.max(e.maxUniformBlockNameLength,md.getActiveUniformBlockName(e,o).length+1);q[n>>2]=e.maxUniformBlockNameLength}else q[n>>2]=md.getProgramParameter(e,t);else wo.recordError(1281)}function Cf(e,t,n,r){var o=md.getShaderPrecisionFormat(e,t);q[n>>2]=o.rangeMin,q[n+4>>2]=o.rangeMax,q[r>>2]=o.precision}function Af(e){var t=wo.stringCache[e];if(!t){switch(e){case 7939:var n=md.getSupportedExtensions()||[];t=Ps((n=n.concat(n.map((function(e){return"GL_"+e})))).join(" "));break;case 7936:case 7937:case 37445:case 37446:var r=md.getParameter(e);r||wo.recordError(1280),t=r&&Ps(r);break;case 7938:var o=md.getParameter(7938);t=Ps(o=wo.currentContext.version>=2?"OpenGL ES 3.0 ("+o+")":"OpenGL ES 2.0 ("+o+")");break;case 35724:var i=md.getParameter(35724),a=i.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);null!==a&&(3==a[1].length&&(a[1]=a[1]+"0"),i="OpenGL ES GLSL ES "+a[1]+" ("+i+")"),t=Ps(i);break;default:wo.recordError(1280)}wo.stringCache[e]=t}return t}function jf(e,t){if(t=N(t),e=wo.programs[e]){Is(e);var n=e.uniformLocsById,r=0,o=t,i=Ls(t);i>0&&(r=Fs(t.slice(i+1))>>>0,o=t.slice(0,i));var a=e.uniformSizeAndIdsByName[o];if(a&&r<a[0]&&(n[r+=a[1]]=n[r]||md.getUniformLocation(e,t)))return r}else wo.recordError(1281);return-1}function Ff(e){e=wo.programs[e],md.linkProgram(e),e.uniformLocsById=0,e.uniformSizeAndIdsByName={}}function Lf(e,t,n,r,o,i,a){if(wo.currentContext.version>=2)if(md.currentPixelPackBufferBinding)md.readPixels(e,t,n,r,o,i,a);else{var s=xu(i);md.readPixels(e,t,n,r,o,i,s,a>>Tu(s))}else{var u=Pu(i,o,n,r,a);u?md.readPixels(e,t,n,r,o,i,u):wo.recordError(1280)}}function If(e,t,n,r){md.renderbufferStorage(e,t,n,r)}function Nf(e,t,n,r){var o=wo.getSource(e,t,n,r);if(wo.currentContext.version>=2&&o.includes("#version 100")){var i="";(o=(o=o.replace(/#extension GL_OES_standard_derivatives : enable/g,"")).replace(/#extension GL_EXT_shader_texture_lod : enable/g,"")).includes("gl_FragColor")&&(i+="out mediump vec4 GL_FragColor;\n",o=o.replace(/gl_FragColor/g,"GL_FragColor")),o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=o.includes("attribute")?(o=o.replace(/attribute/g,"in")).replace(/varying/g,"out"):o.replace(/varying/g,"in")).replace(/textureCubeLodEXT/g,"textureCubeLod")).replace(/texture2DLodEXT/g,"texture2DLod")).replace(/texture2DProjLodEXT/g,"texture2DProjLod")).replace(/texture2DGradEXT/g,"texture2DGrad")).replace(/texture2DProjGradEXT/g,"texture2DProjGrad")).replace(/textureCubeGradEXT/g,"textureCubeGrad")).replace(/textureCube/g,"texture")).replace(/texture1D/g,"texture")).replace(/texture2D/g,"texture")).replace(/texture3D/g,"texture")).replace(/#version 100/g,"#version 300 es\n"+i)}md.shaderSource(wo.shaders[e],o)}function Uf(e,t,n){md.stencilFunc(e,t,n)}function Bf(e){md.stencilMask(e)}function Hf(e,t,n){md.stencilOp(e,t,n)}function Vf(e,t,n,r,o,i,a,s,u){if(wo.currentContext.version>=2&&(6402==a&&6402==n&&5125==s&&(n=33190),36193==s&&(s=5131,6408==a&&6408==n&&(n=34842)),34041==n&&(n=35056)),wo.currentContext.version>=2)if(md.currentPixelUnpackBufferBinding)md.texImage2D(e,t,n,r,o,i,a,s,u);else if(u){var c=xu(s);md.texImage2D(e,t,n,r,o,i,a,s,c,u>>Tu(c))}else md.texImage2D(e,t,n,r,o,i,a,s,null);else md.texImage2D(e,t,n,r,o,i,a,s,u?Pu(s,a,r,o,u):null)}function zf(e,t,n){md.texParameteri(e,t,n)}function Qf(e,t,n,r,o,i,a,s,u){if(wo.currentContext.version>=2&&36193==s&&(s=5131),wo.currentContext.version>=2)if(md.currentPixelUnpackBufferBinding)md.texSubImage2D(e,t,n,r,o,i,a,s,u);else if(u){var c=xu(s);md.texSubImage2D(e,t,n,r,o,i,a,s,c,u>>Tu(c))}else md.texSubImage2D(e,t,n,r,o,i,a,s,null);else{var l=null;u&&(l=Pu(s,a,o,i,u)),md.texSubImage2D(e,t,n,r,o,i,a,s,l)}}function Xf(e,t){md.uniform1f(Us(e),t)}function Wf(e,t){md.uniform1i(Us(e),t)}function qf(e,t,n){if(wo.currentContext.version>=2)md.uniform2fv(Us(e),$,n>>2,2*t);else{if(t<=144)for(var r=oc[2*t-1],o=0;o<2*t;o+=2)r[o]=$[n+4*o>>2],r[o+1]=$[n+(4*o+4)>>2];else r=$.subarray(n>>2,n+8*t>>2);md.uniform2fv(Us(e),r)}}function Gf(e,t,n){md.uniform2i(Us(e),t,n)}function $f(e,t,n){if(wo.currentContext.version>=2)md.uniform2iv(Us(e),q,n>>2,2*t);else{if(t<=144)for(var r=sc[2*t-1],o=0;o<2*t;o+=2)r[o]=q[n+4*o>>2],r[o+1]=q[n+(4*o+4)>>2];else r=q.subarray(n>>2,n+8*t>>2);md.uniform2iv(Us(e),r)}}function Yf(e,t,n){if(wo.currentContext.version>=2)md.uniform3fv(Us(e),$,n>>2,3*t);else{if(t<=96)for(var r=oc[3*t-1],o=0;o<3*t;o+=3)r[o]=$[n+4*o>>2],r[o+1]=$[n+(4*o+4)>>2],r[o+2]=$[n+(4*o+8)>>2];else r=$.subarray(n>>2,n+12*t>>2);md.uniform3fv(Us(e),r)}}function Kf(e,t,n,r){md.uniform3i(Us(e),t,n,r)}function Zf(e,t,n){if(wo.currentContext.version>=2)md.uniform3iv(Us(e),q,n>>2,3*t);else{if(t<=96)for(var r=sc[3*t-1],o=0;o<3*t;o+=3)r[o]=q[n+4*o>>2],r[o+1]=q[n+(4*o+4)>>2],r[o+2]=q[n+(4*o+8)>>2];else r=q.subarray(n>>2,n+12*t>>2);md.uniform3iv(Us(e),r)}}function Jf(e,t,n){if(wo.currentContext.version>=2)md.uniform4fv(Us(e),$,n>>2,4*t);else{if(t<=72){var r=oc[4*t-1],o=$;n>>=2;for(var i=0;i<4*t;i+=4){var a=n+i;r[i]=o[a],r[i+1]=o[a+1],r[i+2]=o[a+2],r[i+3]=o[a+3]}}else r=$.subarray(n>>2,n+16*t>>2);md.uniform4fv(Us(e),r)}}function ed(e,t,n,r,o){md.uniform4i(Us(e),t,n,r,o)}function td(e,t,n){if(wo.currentContext.version>=2)md.uniform4iv(Us(e),q,n>>2,4*t);else{if(t<=72)for(var r=sc[4*t-1],o=0;o<4*t;o+=4)r[o]=q[n+4*o>>2],r[o+1]=q[n+(4*o+4)>>2],r[o+2]=q[n+(4*o+8)>>2],r[o+3]=q[n+(4*o+12)>>2];else r=q.subarray(n>>2,n+16*t>>2);md.uniform4iv(Us(e),r)}}function nd(e,t,n,r){if(wo.currentContext.version>=2)md.uniformMatrix3fv(Us(e),!!n,$,r>>2,9*t);else{if(t<=32)for(var o=oc[9*t-1],i=0;i<9*t;i+=9)o[i]=$[r+4*i>>2],o[i+1]=$[r+(4*i+4)>>2],o[i+2]=$[r+(4*i+8)>>2],o[i+3]=$[r+(4*i+12)>>2],o[i+4]=$[r+(4*i+16)>>2],o[i+5]=$[r+(4*i+20)>>2],o[i+6]=$[r+(4*i+24)>>2],o[i+7]=$[r+(4*i+28)>>2],o[i+8]=$[r+(4*i+32)>>2];else o=$.subarray(r>>2,r+36*t>>2);md.uniformMatrix3fv(Us(e),!!n,o)}}function rd(e,t,n,r){if(wo.currentContext.version>=2)md.uniformMatrix4fv(Us(e),!!n,$,r>>2,16*t);else{if(t<=18){var o=oc[16*t-1],i=$;r>>=2;for(var a=0;a<16*t;a+=16){var s=r+a;o[a]=i[s],o[a+1]=i[s+1],o[a+2]=i[s+2],o[a+3]=i[s+3],o[a+4]=i[s+4],o[a+5]=i[s+5],o[a+6]=i[s+6],o[a+7]=i[s+7],o[a+8]=i[s+8],o[a+9]=i[s+9],o[a+10]=i[s+10],o[a+11]=i[s+11],o[a+12]=i[s+12],o[a+13]=i[s+13],o[a+14]=i[s+14],o[a+15]=i[s+15]}}else o=$.subarray(r>>2,r+64*t>>2);md.uniformMatrix4fv(Us(e),!!n,o)}}function od(e){e=wo.programs[e],md.useProgram(e),md.currentProgram=e}function id(e,t,n,r,o,i){md.vertexAttribPointer(e,t,n,!!r,o,i)}function ad(e,t,n,r){md.viewport(e,t,n,r)}function sd(e){S(e)}function ud(e){return e%4==0&&(e%100!=0||e%400==0)}function cd(e,t){for(var n=0,r=0;r<=t;n+=e[r++]);return n}var ld=[31,29,31,30,31,30,31,31,30,31,30,31],fd=[31,28,31,30,31,30,31,31,30,31,30,31];function dd(e,t){for(var n=new Date(e.getTime());t>0;){var r=ud(n.getFullYear()),o=n.getMonth(),i=(r?ld:fd)[o];if(!(t>i-n.getDate()))return n.setDate(n.getDate()+t),n;t-=i-n.getDate()+1,n.setDate(1),o<11?n.setMonth(o+1):(n.setMonth(0),n.setFullYear(n.getFullYear()+1))}return n}function pd(e,t,n,r){var o=q[r+40>>2],i={tm_sec:q[r>>2],tm_min:q[r+4>>2],tm_hour:q[r+8>>2],tm_mday:q[r+12>>2],tm_mon:q[r+16>>2],tm_year:q[r+20>>2],tm_wday:q[r+24>>2],tm_yday:q[r+28>>2],tm_isdst:q[r+32>>2],tm_gmtoff:q[r+36>>2],tm_zone:o?N(o):""},a=N(n),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in s)a=a.replace(new RegExp(u,"g"),s[u]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=["January","February","March","April","May","June","July","August","September","October","November","December"];function f(e,t,n){for(var r="number"==typeof e?e.toString():e||"";r.length<t;)r=n[0]+r;return r}function d(e,t){return f(e,t,"0")}function p(e,t){function n(e){return e<0?-1:e>0?1:0}var r;return 0===(r=n(e.getFullYear()-t.getFullYear()))&&0===(r=n(e.getMonth()-t.getMonth()))&&(r=n(e.getDate()-t.getDate())),r}function h(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function g(e){var t=dd(new Date(e.tm_year+1900,0,1),e.tm_yday),n=new Date(t.getFullYear(),0,4),r=new Date(t.getFullYear()+1,0,4),o=h(n),i=h(r);return p(o,t)<=0?p(i,t)<=0?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var m={"%a":function(e){return c[e.tm_wday].substring(0,3)},"%A":function(e){return c[e.tm_wday]},"%b":function(e){return l[e.tm_mon].substring(0,3)},"%B":function(e){return l[e.tm_mon]},"%C":function(e){return d((e.tm_year+1900)/100|0,2)},"%d":function(e){return d(e.tm_mday,2)},"%e":function(e){return f(e.tm_mday,2," ")},"%g":function(e){return g(e).toString().substring(2)},"%G":function(e){return g(e)},"%H":function(e){return d(e.tm_hour,2)},"%I":function(e){var t=e.tm_hour;return 0==t?t=12:t>12&&(t-=12),d(t,2)},"%j":function(e){return d(e.tm_mday+cd(ud(e.tm_year+1900)?ld:fd,e.tm_mon-1),3)},"%m":function(e){return d(e.tm_mon+1,2)},"%M":function(e){return d(e.tm_min,2)},"%n":function(){return"\n"},"%p":function(e){return e.tm_hour>=0&&e.tm_hour<12?"AM":"PM"},"%S":function(e){return d(e.tm_sec,2)},"%t":function(){return"\t"},"%u":function(e){return e.tm_wday||7},"%U":function(e){var t=new Date(e.tm_year+1900,0,1),n=0===t.getDay()?t:dd(t,7-t.getDay()),r=new Date(e.tm_year+1900,e.tm_mon,e.tm_mday);if(p(n,r)<0){var o=cd(ud(r.getFullYear())?ld:fd,r.getMonth()-1)-31,i=31-n.getDate()+o+r.getDate();return d(Math.ceil(i/7),2)}return 0===p(n,t)?"01":"00"},"%V":function(e){var t,n=new Date(e.tm_year+1900,0,4),r=new Date(e.tm_year+1901,0,4),o=h(n),i=h(r),a=dd(new Date(e.tm_year+1900,0,1),e.tm_yday);return p(a,o)<0?"53":p(i,a)<=0?"01":(t=o.getFullYear()<e.tm_year+1900?e.tm_yday+32-o.getDate():e.tm_yday+1-o.getDate(),d(Math.ceil(t/7),2))},"%w":function(e){return e.tm_wday},"%W":function(e){var t=new Date(e.tm_year,0,1),n=1===t.getDay()?t:dd(t,0===t.getDay()?1:7-t.getDay()+1),r=new Date(e.tm_year+1900,e.tm_mon,e.tm_mday);if(p(n,r)<0){var o=cd(ud(r.getFullYear())?ld:fd,r.getMonth()-1)-31,i=31-n.getDate()+o+r.getDate();return d(Math.ceil(i/7),2)}return 0===p(n,t)?"01":"00"},"%y":function(e){return(e.tm_year+1900).toString().substring(2)},"%Y":function(e){return e.tm_year+1900},"%z":function(e){var t=e.tm_gmtoff,n=t>=0;return t=(t=Math.abs(t)/60)/60*100+t%60,(n?"+":"-")+String("0000"+t).slice(-4)},"%Z":function(e){return e.tm_zone},"%%":function(){return"%"}};for(var u in m)a.includes(u)&&(a=a.replace(new RegExp(u,"g"),m[u](i)));var v=Od(a,!1);return v.length>t?0:(ie(v,e),v.length-1)}function hd(e,t,n,r){return pd(e,t,n,r)}function gd(e){var t=Date.now()/1e3|0;return e&&(q[e>>2]=t),t}var md,vd=function(e,t,n,r){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=yt.nextInode++,this.name=t,this.mode=n,this.node_ops={},this.stream_ops={},this.rdev=r},yd=365,bd=146;Object.defineProperties(vd.prototype,{read:{get:function(){return(this.mode&yd)===yd},set:function(e){e?this.mode|=yd:this.mode&=~yd}},write:{get:function(){return(this.mode&bd)===bd},set:function(e){e?this.mode|=bd:this.mode&=~bd}},isFolder:{get:function(){return yt.isDir(this.mode)}},isDevice:{get:function(){return yt.isChrdev(this.mode)}}}),yt.FSNode=vd,yt.staticInit(),o.FS_createPath=yt.createPath,o.FS_createDataFile=yt.createDataFile,o.FS_createPreloadedFile=yt.createPreloadedFile,o.FS_createLazyFile=yt.createLazyFile,o.FS_createDevice=yt.createDevice,o.FS_unlink=yt.unlink,vt={EPERM:63,ENOENT:44,ESRCH:71,EINTR:27,EIO:29,ENXIO:60,E2BIG:1,ENOEXEC:45,EBADF:8,ECHILD:12,EAGAIN:6,EWOULDBLOCK:6,ENOMEM:48,EACCES:2,EFAULT:21,ENOTBLK:105,EBUSY:10,EEXIST:20,EXDEV:75,ENODEV:43,ENOTDIR:54,EISDIR:31,EINVAL:28,ENFILE:41,EMFILE:33,ENOTTY:59,ETXTBSY:74,EFBIG:22,ENOSPC:51,ESPIPE:70,EROFS:69,EMLINK:34,EPIPE:64,EDOM:18,ERANGE:68,ENOMSG:49,EIDRM:24,ECHRNG:106,EL2NSYNC:156,EL3HLT:107,EL3RST:108,ELNRNG:109,EUNATCH:110,ENOCSI:111,EL2HLT:112,EDEADLK:16,ENOLCK:46,EBADE:113,EBADR:114,EXFULL:115,ENOANO:104,EBADRQC:103,EBADSLT:102,EDEADLOCK:16,EBFONT:101,ENOSTR:100,ENODATA:116,ETIME:117,ENOSR:118,ENONET:119,ENOPKG:120,EREMOTE:121,ENOLINK:47,EADV:122,ESRMNT:123,ECOMM:124,EPROTO:65,EMULTIHOP:36,EDOTDOT:125,EBADMSG:9,ENOTUNIQ:126,EBADFD:127,EREMCHG:128,ELIBACC:129,ELIBBAD:130,ELIBSCN:131,ELIBMAX:132,ELIBEXEC:133,ENOSYS:52,ENOTEMPTY:55,ENAMETOOLONG:37,ELOOP:32,EOPNOTSUPP:138,EPFNOSUPPORT:139,ECONNRESET:15,ENOBUFS:42,EAFNOSUPPORT:5,EPROTOTYPE:67,ENOTSOCK:57,ENOPROTOOPT:50,ESHUTDOWN:140,ECONNREFUSED:14,EADDRINUSE:3,ECONNABORTED:13,ENETUNREACH:40,ENETDOWN:38,ETIMEDOUT:73,EHOSTDOWN:142,EHOSTUNREACH:23,EINPROGRESS:26,EALREADY:7,EDESTADDRREQ:17,EMSGSIZE:35,EPROTONOSUPPORT:66,ESOCKTNOSUPPORT:137,EADDRNOTAVAIL:4,ENETRESET:39,EISCONN:30,ENOTCONN:53,ETOOMANYREFS:141,EUSERS:136,EDQUOT:19,ESTALE:72,ENOTSUP:138,ENOMEDIUM:148,EILSEQ:25,EOVERFLOW:61,ECANCELED:11,ENOTRECOVERABLE:56,EOWNERDEAD:62,ESTRPIPE:135},Ht=o.InternalError=Bt(Error,"InternalError"),qt(),Yt=o.BindingError=Bt(Error,"BindingError"),mn(),Un(),An(),Wn=o.UnboundTypeError=Bt(Error,"UnboundTypeError"),ar(),o.requestFullscreen=function(e,t){lo.requestFullscreen(e,t)},o.requestFullScreen=function(){lo.requestFullScreen()},o.requestAnimationFrame=function(e){lo.requestAnimationFrame(e)},o.setCanvasSize=function(e,t,n){lo.setCanvasSize(e,t,n)},o.pauseMainLoop=function(){lo.mainLoop.pause()},o.resumeMainLoop=function(){lo.mainLoop.resume()},o.getUserMedia=function(){lo.getUserMedia()},o.createContext=function(e,t,n,r){return lo.createContext(e,t,n,r)};for(var wd=0;wd<32;++wd)na.push(new Array(wd));var Ed=new Float32Array(288);for(wd=0;wd<288;++wd)oc[wd]=Ed.subarray(0,wd+1);var _d=new Int32Array(288);for(wd=0;wd<288;++wd)sc[wd]=_d.subarray(0,wd+1);function Od(e,t,n){var r=n>0?n:H(e)+1,o=new Array(r),i=U(e,o,0,o.length);return t&&(o.length=i),o}"function"==typeof atob&&atob;var xd,Td={__assert_fail:tt,__cxa_allocate_exception:nt,__cxa_atexit:rt,__cxa_throw:it,__syscall_fcntl64:wt,__syscall_fstat64:Et,__syscall_ioctl:_t,__syscall_mmap2:xt,__syscall_munmap:Pt,__syscall_open:kt,_dlopen_js:St,_dlsym_js:Dt,_embind_finalize_value_object:Qt,_embind_register_bigint:Xt,_embind_register_bool:Jt,_embind_register_class:$n,_embind_register_class_constructor:Kn,_embind_register_class_function:er,_embind_register_emval:ur,_embind_register_enum:lr,_embind_register_enum_value:dr,_embind_register_float:gr,_embind_register_function:mr,_embind_register_integer:yr,_embind_register_memory_view:br,_embind_register_smart_ptr:wr,_embind_register_std_string:Er,_embind_register_std_wstring:_r,_embind_register_value_object:Or,_embind_register_value_object_field:xr,_embind_register_void:Tr,_emscripten_throw_longjmp:Pr,_emval_as:kr,_emval_call:Dr,_emval_call_method:jr,_emval_call_void_method:Fr,_emval_decref:rr,_emval_get_global:Ir,_emval_get_method_caller:Ur,_emval_get_property:Br,_emval_incref:Hr,_emval_instanceof:Vr,_emval_is_string:zr,_emval_new:qr,_emval_new_array:Gr,_emval_new_cstring:$r,_emval_new_object:Yr,_emval_run_destructors:Kr,_emval_set_property:Zr,_emval_take_value:Jr,_emval_throw:eo,abort:to,clock_gettime:ro,eglChooseConfig:po,eglCreateContext:Eo,eglCreateWindowSurface:_o,eglDestroyContext:Oo,eglDestroySurface:xo,eglGetConfigAttrib:To,eglGetDisplay:Po,eglGetError:ko,eglInitialize:So,eglMakeCurrent:Do,eglSwapBuffers:Mo,eglTerminate:Ro,emscripten_console_error:Co,emscripten_console_log:Ao,emscripten_console_warn:jo,emscripten_debugger:Fo,emscripten_get_heap_max:Lo,emscripten_get_now:Xr,emscripten_glActiveTexture:Io,emscripten_glAttachShader:No,emscripten_glBeginQuery:Uo,emscripten_glBeginQueryEXT:Bo,emscripten_glBeginTransformFeedback:Ho,emscripten_glBindAttribLocation:Vo,emscripten_glBindBuffer:zo,emscripten_glBindBufferBase:Qo,emscripten_glBindBufferRange:Xo,emscripten_glBindFramebuffer:Wo,emscripten_glBindRenderbuffer:qo,emscripten_glBindSampler:Go,emscripten_glBindTexture:$o,emscripten_glBindTransformFeedback:Yo,emscripten_glBindVertexArray:Ko,emscripten_glBindVertexArrayOES:Zo,emscripten_glBlendColor:Jo,emscripten_glBlendEquation:ei,emscripten_glBlendEquationSeparate:ti,emscripten_glBlendFunc:ni,emscripten_glBlendFuncSeparate:ri,emscripten_glBlitFramebuffer:oi,emscripten_glBufferData:ii,emscripten_glBufferSubData:ai,emscripten_glCheckFramebufferStatus:si,emscripten_glClear:ui,emscripten_glClearBufferfi:ci,emscripten_glClearBufferfv:li,emscripten_glClearBufferiv:fi,emscripten_glClearBufferuiv:di,emscripten_glClearColor:pi,emscripten_glClearDepthf:hi,emscripten_glClearStencil:gi,emscripten_glClientWaitSync:vi,emscripten_glColorMask:yi,emscripten_glCompileShader:bi,emscripten_glCompressedTexImage2D:wi,emscripten_glCompressedTexImage3D:Ei,emscripten_glCompressedTexSubImage2D:_i,emscripten_glCompressedTexSubImage3D:Oi,emscripten_glCopyBufferSubData:xi,emscripten_glCopyTexImage2D:Ti,emscripten_glCopyTexSubImage2D:Pi,emscripten_glCopyTexSubImage3D:ki,emscripten_glCreateProgram:Si,emscripten_glCreateShader:Di,emscripten_glCullFace:Mi,emscripten_glDeleteBuffers:Ri,emscripten_glDeleteFramebuffers:Ci,emscripten_glDeleteProgram:Ai,emscripten_glDeleteQueries:ji,emscripten_glDeleteQueriesEXT:Fi,emscripten_glDeleteRenderbuffers:Li,emscripten_glDeleteSamplers:Ii,emscripten_glDeleteShader:Ni,emscripten_glDeleteSync:Ui,emscripten_glDeleteTextures:Bi,emscripten_glDeleteTransformFeedbacks:Hi,emscripten_glDeleteVertexArrays:Vi,emscripten_glDeleteVertexArraysOES:zi,emscripten_glDepthFunc:Qi,emscripten_glDepthMask:Xi,emscripten_glDepthRangef:Wi,emscripten_glDetachShader:qi,emscripten_glDisable:Gi,emscripten_glDisableVertexAttribArray:$i,emscripten_glDrawArrays:Yi,emscripten_glDrawArraysInstanced:Ki,emscripten_glDrawArraysInstancedANGLE:Zi,emscripten_glDrawArraysInstancedARB:Ji,emscripten_glDrawArraysInstancedEXT:ea,emscripten_glDrawArraysInstancedNV:ta,emscripten_glDrawBuffers:ra,emscripten_glDrawBuffersEXT:oa,emscripten_glDrawBuffersWEBGL:ia,emscripten_glDrawElements:aa,emscripten_glDrawElementsInstanced:sa,emscripten_glDrawElementsInstancedANGLE:ua,emscripten_glDrawElementsInstancedARB:ca,emscripten_glDrawElementsInstancedEXT:la,emscripten_glDrawElementsInstancedNV:fa,emscripten_glDrawRangeElements:pa,emscripten_glEnable:ha,emscripten_glEnableVertexAttribArray:ga,emscripten_glEndQuery:ma,emscripten_glEndQueryEXT:va,emscripten_glEndTransformFeedback:ya,emscripten_glFenceSync:ba,emscripten_glFinish:wa,emscripten_glFlush:Ea,emscripten_glFramebufferRenderbuffer:_a,emscripten_glFramebufferTexture2D:Oa,emscripten_glFramebufferTextureLayer:xa,emscripten_glFrontFace:Ta,emscripten_glGenBuffers:ka,emscripten_glGenFramebuffers:Sa,emscripten_glGenQueries:Da,emscripten_glGenQueriesEXT:Ma,emscripten_glGenRenderbuffers:Ra,emscripten_glGenSamplers:Ca,emscripten_glGenTextures:Aa,emscripten_glGenTransformFeedbacks:ja,emscripten_glGenVertexArrays:Fa,emscripten_glGenVertexArraysOES:La,emscripten_glGenerateMipmap:Ia,emscripten_glGetActiveAttrib:Ua,emscripten_glGetActiveUniform:Ba,emscripten_glGetActiveUniformBlockName:Ha,emscripten_glGetActiveUniformBlockiv:Va,emscripten_glGetActiveUniformsiv:za,emscripten_glGetAttachedShaders:Qa,emscripten_glGetAttribLocation:Xa,emscripten_glGetBooleanv:Ya,emscripten_glGetBufferParameteri64v:Ka,emscripten_glGetBufferParameteriv:Za,emscripten_glGetError:Ja,emscripten_glGetFloatv:es,emscripten_glGetFragDataLocation:ts,emscripten_glGetFramebufferAttachmentParameteriv:ns,emscripten_glGetInteger64i_v:os,emscripten_glGetInteger64v:is,emscripten_glGetIntegeri_v:as,emscripten_glGetIntegerv:ss,emscripten_glGetInternalformativ:us,emscripten_glGetProgramBinary:cs,emscripten_glGetProgramInfoLog:ls,emscripten_glGetProgramiv:fs,emscripten_glGetQueryObjecti64vEXT:ds,emscripten_glGetQueryObjectivEXT:ps,emscripten_glGetQueryObjectui64vEXT:hs,emscripten_glGetQueryObjectuiv:gs,emscripten_glGetQueryObjectuivEXT:ms,emscripten_glGetQueryiv:vs,emscripten_glGetQueryivEXT:ys,emscripten_glGetRenderbufferParameteriv:bs,emscripten_glGetSamplerParameterfv:ws,emscripten_glGetSamplerParameteriv:Es,emscripten_glGetShaderInfoLog:_s,emscripten_glGetShaderPrecisionFormat:Os,emscripten_glGetShaderSource:xs,emscripten_glGetShaderiv:Ts,emscripten_glGetString:ks,emscripten_glGetStringi:Ss,emscripten_glGetSynciv:Ds,emscripten_glGetTexParameterfv:Ms,emscripten_glGetTexParameteriv:Rs,emscripten_glGetTransformFeedbackVarying:Cs,emscripten_glGetUniformBlockIndex:As,emscripten_glGetUniformIndices:js,emscripten_glGetUniformLocation:Ns,emscripten_glGetUniformfv:Hs,emscripten_glGetUniformiv:Vs,emscripten_glGetUniformuiv:zs,emscripten_glGetVertexAttribIiv:Xs,emscripten_glGetVertexAttribIuiv:Ws,emscripten_glGetVertexAttribPointerv:qs,emscripten_glGetVertexAttribfv:Gs,emscripten_glGetVertexAttribiv:$s,emscripten_glHint:Ys,emscripten_glInvalidateFramebuffer:Ks,emscripten_glInvalidateSubFramebuffer:Zs,emscripten_glIsBuffer:Js,emscripten_glIsEnabled:eu,emscripten_glIsFramebuffer:tu,emscripten_glIsProgram:nu,emscripten_glIsQuery:ru,emscripten_glIsQueryEXT:ou,emscripten_glIsRenderbuffer:iu,emscripten_glIsSampler:au,emscripten_glIsShader:su,emscripten_glIsSync:uu,emscripten_glIsTexture:cu,emscripten_glIsTransformFeedback:lu,emscripten_glIsVertexArray:fu,emscripten_glIsVertexArrayOES:du,emscripten_glLineWidth:pu,emscripten_glLinkProgram:hu,emscripten_glPauseTransformFeedback:gu,emscripten_glPixelStorei:mu,emscripten_glPolygonOffset:vu,emscripten_glProgramBinary:yu,emscripten_glProgramParameteri:bu,emscripten_glQueryCounterEXT:wu,emscripten_glReadBuffer:Eu,emscripten_glReadPixels:ku,emscripten_glReleaseShaderCompiler:Su,emscripten_glRenderbufferStorage:Du,emscripten_glRenderbufferStorageMultisample:Mu,emscripten_glResumeTransformFeedback:Ru,emscripten_glSampleCoverage:Cu,emscripten_glSamplerParameterf:Au,emscripten_glSamplerParameterfv:ju,emscripten_glSamplerParameteri:Fu,emscripten_glSamplerParameteriv:Lu,emscripten_glScissor:Iu,emscripten_glShaderBinary:Nu,emscripten_glShaderSource:Uu,emscripten_glStencilFunc:Bu,emscripten_glStencilFuncSeparate:Hu,emscripten_glStencilMask:Vu,emscripten_glStencilMaskSeparate:zu,emscripten_glStencilOp:Qu,emscripten_glStencilOpSeparate:Xu,emscripten_glTexImage2D:Wu,emscripten_glTexImage3D:qu,emscripten_glTexParameterf:Gu,emscripten_glTexParameterfv:$u,emscripten_glTexParameteri:Yu,emscripten_glTexParameteriv:Ku,emscripten_glTexStorage2D:Zu,emscripten_glTexStorage3D:Ju,emscripten_glTexSubImage2D:ec,emscripten_glTexSubImage3D:tc,emscripten_glTransformFeedbackVaryings:nc,emscripten_glUniform1f:rc,emscripten_glUniform1fv:ic,emscripten_glUniform1i:ac,emscripten_glUniform1iv:uc,emscripten_glUniform1ui:cc,emscripten_glUniform1uiv:lc,emscripten_glUniform2f:fc,emscripten_glUniform2fv:dc,emscripten_glUniform2i:pc,emscripten_glUniform2iv:hc,emscripten_glUniform2ui:gc,emscripten_glUniform2uiv:mc,emscripten_glUniform3f:vc,emscripten_glUniform3fv:yc,emscripten_glUniform3i:bc,emscripten_glUniform3iv:wc,emscripten_glUniform3ui:Ec,emscripten_glUniform3uiv:_c,emscripten_glUniform4f:Oc,emscripten_glUniform4fv:xc,emscripten_glUniform4i:Tc,emscripten_glUniform4iv:Pc,emscripten_glUniform4ui:kc,emscripten_glUniform4uiv:Sc,emscripten_glUniformBlockBinding:Dc,emscripten_glUniformMatrix2fv:Mc,emscripten_glUniformMatrix2x3fv:Rc,emscripten_glUniformMatrix2x4fv:Cc,emscripten_glUniformMatrix3fv:Ac,emscripten_glUniformMatrix3x2fv:jc,emscripten_glUniformMatrix3x4fv:Fc,emscripten_glUniformMatrix4fv:Lc,emscripten_glUniformMatrix4x2fv:Ic,emscripten_glUniformMatrix4x3fv:Nc,emscripten_glUseProgram:Uc,emscripten_glValidateProgram:Bc,emscripten_glVertexAttrib1f:Hc,emscripten_glVertexAttrib1fv:Vc,emscripten_glVertexAttrib2f:zc,emscripten_glVertexAttrib2fv:Qc,emscripten_glVertexAttrib3f:Xc,emscripten_glVertexAttrib3fv:Wc,emscripten_glVertexAttrib4f:qc,emscripten_glVertexAttrib4fv:Gc,emscripten_glVertexAttribDivisor:$c,emscripten_glVertexAttribDivisorANGLE:Yc,emscripten_glVertexAttribDivisorARB:Kc,emscripten_glVertexAttribDivisorEXT:Zc,emscripten_glVertexAttribDivisorNV:Jc,emscripten_glVertexAttribI4i:el,emscripten_glVertexAttribI4iv:tl,emscripten_glVertexAttribI4ui:nl,emscripten_glVertexAttribI4uiv:rl,emscripten_glVertexAttribIPointer:ol,emscripten_glVertexAttribPointer:il,emscripten_glViewport:al,emscripten_glWaitSync:sl,emscripten_memcpy_big:ul,emscripten_resize_heap:ll,emscripten_ubq_fetch_allocateFetchResult:fl,emscripten_ubq_fetch_createHeader:dl,emscripten_ubq_fetch_deleteHeader:pl,emscripten_ubq_fetch_dispatchAsyncFetch:hl,emscripten_ubq_fetch_freeFetchResult:gl,emscripten_ubq_fetch_getFetchCompletedBytes:ml,emscripten_ubq_fetch_getFetchResultAddress:vl,emscripten_ubq_fetch_getFetchResultLength:yl,emscripten_ubq_fetch_getFetchState:bl,emscripten_ubq_fetch_getFetchTotalBytes:wl,emscripten_webgl_create_context:Sl,emscripten_webgl_init_context_attributes:Dl,emscripten_webgl_make_context_current:Ml,environ_get:jl,environ_sizes_get:Fl,fd_close:Ll,fd_read:Il,fd_seek:Nl,fd_write:Ul,getTempRet0:Bl,gettimeofday:Hl,glActiveTexture:Vl,glAttachShader:zl,glBindBuffer:Ql,glBindFramebuffer:Xl,glBindRenderbuffer:Wl,glBindTexture:ql,glBlendEquation:Gl,glBlendEquationSeparate:$l,glBlendFunc:Yl,glBlendFuncSeparate:Kl,glBufferData:Zl,glClear:Jl,glClearColor:ef,glClearStencil:tf,glColorMask:nf,glCompileShader:rf,glCreateProgram:of,glCreateShader:af,glDeleteBuffers:sf,glDeleteFramebuffers:uf,glDeleteProgram:cf,glDeleteRenderbuffers:ff,glDeleteShader:df,glDeleteTextures:pf,glDepthMask:hf,glDetachShader:gf,glDisable:mf,glDrawArrays:vf,glEnable:yf,glEnableVertexAttribArray:bf,glFinish:wf,glFramebufferRenderbuffer:Ef,glFramebufferTexture2D:_f,glGenBuffers:Of,glGenFramebuffers:xf,glGenRenderbuffers:Tf,glGenTextures:Pf,glGetAttribLocation:kf,glGetError:Sf,glGetIntegerv:Df,glGetProgramInfoLog:Mf,glGetProgramiv:Rf,glGetShaderPrecisionFormat:Cf,glGetString:Af,glGetUniformLocation:jf,glLinkProgram:Ff,glReadPixels:Lf,glRenderbufferStorage:If,glShaderSource:Nf,glStencilFunc:Uf,glStencilMask:Bf,glStencilOp:Hf,glTexImage2D:Vf,glTexParameteri:zf,glTexSubImage2D:Qf,glUniform1f:Xf,glUniform1i:Wf,glUniform2fv:qf,glUniform2i:Gf,glUniform2iv:$f,glUniform3fv:Yf,glUniform3i:Kf,glUniform3iv:Zf,glUniform4fv:Jf,glUniform4i:ed,glUniform4iv:td,glUniformMatrix3fv:nd,glUniformMatrix4fv:rd,glUseProgram:od,glVertexAttribPointer:id,glViewport:ad,invoke_iii:Nd,invoke_iiii:Bd,invoke_iiiii:Ud,invoke_v:Hd,invoke_viiii:Id,setTempRet0:sd,strftime_l:hd,time:gd},Pd=(Ge(),o.___wasm_call_ctors=Xe("__wasm_call_ctors"),o._malloc=Xe("malloc")),kd=(o._main=Xe("main"),o._free=Xe("free")),Sd=o.___errno_location=Xe("__errno_location"),Dd=(o._saveSetjmp=Xe("saveSetjmp"),o._fflush=Xe("fflush"),o.___getTypeName=Xe("__getTypeName")),Md=(o.___embind_register_native_and_builtin_types=Xe("__embind_register_native_and_builtin_types"),o.___dl_seterr=Xe("__dl_seterr"),o.stackSave=Xe("stackSave")),Rd=o.stackRestore=Xe("stackRestore"),Cd=o.stackAlloc=Xe("stackAlloc"),Ad=o._emscripten_stack_init=function(){return(Ad=o._emscripten_stack_init=o.asm.emscripten_stack_init).apply(null,arguments)},jd=(o._emscripten_stack_get_free=function(){return(o._emscripten_stack_get_free=o.asm.emscripten_stack_get_free).apply(null,arguments)},o._emscripten_stack_get_end=function(){return(jd=o._emscripten_stack_get_end=o.asm.emscripten_stack_get_end).apply(null,arguments)}),Fd=o._setThrew=Xe("setThrew"),Ld=o._memalign=Xe("memalign");function Id(e,t,n,r,o){var i=Md();try{Je(e)(t,n,r,o)}catch(e){if(Rd(i),e!==e+0&&"longjmp"!==e)throw e;Fd(1,0)}}function Nd(e,t,n){var r=Md();try{return Je(e)(t,n)}catch(e){if(Rd(r),e!==e+0&&"longjmp"!==e)throw e;Fd(1,0)}}function Ud(e,t,n,r,o){var i=Md();try{return Je(e)(t,n,r,o)}catch(e){if(Rd(i),e!==e+0&&"longjmp"!==e)throw e;Fd(1,0)}}function Bd(e,t,n,r){var o=Md();try{return Je(e)(t,n,r)}catch(e){if(Rd(o),e!==e+0&&"longjmp"!==e)throw e;Fd(1,0)}}function Hd(e){var t=Md();try{Je(e)()}catch(e){if(Rd(t),e!==e+0&&"longjmp"!==e)throw e;Fd(1,0)}}function Vd(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function zd(e){F(0==Re,'cannot call main when async dependencies remain! (listen on Module["onRuntimeInitialized"])'),F(0==he.length,"cannot call main when preRun functions remain to be called");var t=o._main,n=(e=e||[]).length+1,r=Cd(4*(n+1));q[r>>2]=oe(f);for(var i=1;i<n;i++)q[(r>>2)+i]=oe(e[i-1]);q[(r>>2)+n]=0;try{var a=t(n,r);return qd(a,!0),a}catch(e){return et(e)}}function Qd(){Ad(),de()}function Xd(e){function n(){xd||(xd=!0,o.calledRun=!0,j||(xe(),Te(),t(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),$d&&zd(e),ke()))}e=e||l,Re>0||(Qd(),Oe(),Re>0||(o.setStatus?(o.setStatus("Running..."),setTimeout((function(){setTimeout((function(){o.setStatus("")}),1),n()}),1)):n(),pe()))}function Wd(){var e=O,t=x,n=!1;O=x=function(e){n=!0};try{var r=o._fflush;r&&r(0),["stdout","stderr"].forEach((function(e){var t=yt.analyzePath("/dev/"+e);if(t){var r=t.object.rdev,o=lt.ttys[r];o&&o.output&&o.output.length&&(n=!0)}}))}catch(e){}O=e,x=t,n&&T("stdio streams had content in them that was not flushed. you should set EXIT_RUNTIME to 1 (see the FAQ), or make sure to emit a newline when you printf etc.")}function qd(e,t){if(A=e,Wd(),_e()){if(!t){var n="program exited (with status: "+e+"), but EXIT_RUNTIME is not set, so halting execution but not exiting the runtime or preventing further async execution (build with EXIT_RUNTIME=1, if you want a true shutdown)";r(n),x(n)}}else Pe();Gd(e)}function Gd(e){A=e,_e()||(o.onExit&&o.onExit(e),j=!0),d(e,new Vd(e))}if(o.dynCall_ji=Xe("dynCall_ji"),o.dynCall_jij=Xe("dynCall_jij"),o.dynCall_iiiijii=Xe("dynCall_iiiijii"),o.dynCall_viiij=Xe("dynCall_viiij"),o.dynCall_jiji=Xe("dynCall_jiji"),o.dynCall_iiiiij=Xe("dynCall_iiiiij"),o.dynCall_iiiiijj=Xe("dynCall_iiiiijj"),o.dynCall_iiiiiijj=Xe("dynCall_iiiiiijj"),o.dynCall_viijii=Xe("dynCall_viijii"),Object.getOwnPropertyDescriptor(o,"intArrayFromString")||(o.intArrayFromString=function(){Ne("'intArrayFromString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"intArrayToString")||(o.intArrayToString=function(){Ne("'intArrayToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"ccall")||(o.ccall=function(){Ne("'ccall' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"cwrap")||(o.cwrap=function(){Ne("'cwrap' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"setValue")||(o.setValue=function(){Ne("'setValue' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),o.getValue=C,Object.getOwnPropertyDescriptor(o,"allocate")||(o.allocate=function(){Ne("'allocate' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"UTF8ArrayToString")||(o.UTF8ArrayToString=function(){Ne("'UTF8ArrayToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),o.UTF8ToString=N,Object.getOwnPropertyDescriptor(o,"stringToUTF8Array")||(o.stringToUTF8Array=function(){Ne("'stringToUTF8Array' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"stringToUTF8")||(o.stringToUTF8=function(){Ne("'stringToUTF8' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"lengthBytesUTF8")||(o.lengthBytesUTF8=function(){Ne("'lengthBytesUTF8' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"stackTrace")||(o.stackTrace=function(){Ne("'stackTrace' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"addOnPreRun")||(o.addOnPreRun=function(){Ne("'addOnPreRun' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"addOnInit")||(o.addOnInit=function(){Ne("'addOnInit' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"addOnPreMain")||(o.addOnPreMain=function(){Ne("'addOnPreMain' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"addOnExit")||(o.addOnExit=function(){Ne("'addOnExit' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"addOnPostRun")||(o.addOnPostRun=function(){Ne("'addOnPostRun' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"writeStringToMemory")||(o.writeStringToMemory=function(){Ne("'writeStringToMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"writeArrayToMemory")||(o.writeArrayToMemory=function(){Ne("'writeArrayToMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"writeAsciiToMemory")||(o.writeAsciiToMemory=function(){Ne("'writeAsciiToMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),o.addRunDependency=Le,o.removeRunDependency=Ie,Object.getOwnPropertyDescriptor(o,"FS_createFolder")||(o.FS_createFolder=function(){Ne("'FS_createFolder' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),o.FS_createPath=yt.createPath,o.FS_createDataFile=yt.createDataFile,o.FS_createPreloadedFile=yt.createPreloadedFile,o.FS_createLazyFile=yt.createLazyFile,Object.getOwnPropertyDescriptor(o,"FS_createLink")||(o.FS_createLink=function(){Ne("'FS_createLink' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),o.FS_createDevice=yt.createDevice,o.FS_unlink=yt.unlink,Object.getOwnPropertyDescriptor(o,"getLEB")||(o.getLEB=function(){Ne("'getLEB' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getFunctionTables")||(o.getFunctionTables=function(){Ne("'getFunctionTables' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"alignFunctionTables")||(o.alignFunctionTables=function(){Ne("'alignFunctionTables' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerFunctions")||(o.registerFunctions=function(){Ne("'registerFunctions' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"addFunction")||(o.addFunction=function(){Ne("'addFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"removeFunction")||(o.removeFunction=function(){Ne("'removeFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getFuncWrapper")||(o.getFuncWrapper=function(){Ne("'getFuncWrapper' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"prettyPrint")||(o.prettyPrint=function(){Ne("'prettyPrint' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"dynCall")||(o.dynCall=function(){Ne("'dynCall' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getCompilerSetting")||(o.getCompilerSetting=function(){Ne("'getCompilerSetting' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"print")||(o.print=function(){Ne("'print' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"printErr")||(o.printErr=function(){Ne("'printErr' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getTempRet0")||(o.getTempRet0=function(){Ne("'getTempRet0' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"setTempRet0")||(o.setTempRet0=function(){Ne("'setTempRet0' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"callMain")||(o.callMain=function(){Ne("'callMain' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"abort")||(o.abort=function(){Ne("'abort' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"keepRuntimeAlive")||(o.keepRuntimeAlive=function(){Ne("'keepRuntimeAlive' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"zeroMemory")||(o.zeroMemory=function(){Ne("'zeroMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"stringToNewUTF8")||(o.stringToNewUTF8=function(){Ne("'stringToNewUTF8' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"setFileTime")||(o.setFileTime=function(){Ne("'setFileTime' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"emscripten_realloc_buffer")||(o.emscripten_realloc_buffer=function(){Ne("'emscripten_realloc_buffer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"ENV")||(o.ENV=function(){Ne("'ENV' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"withStackSave")||(o.withStackSave=function(){Ne("'withStackSave' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"ERRNO_CODES")||(o.ERRNO_CODES=function(){Ne("'ERRNO_CODES' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"ERRNO_MESSAGES")||(o.ERRNO_MESSAGES=function(){Ne("'ERRNO_MESSAGES' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"setErrNo")||(o.setErrNo=function(){Ne("'setErrNo' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"inetPton4")||(o.inetPton4=function(){Ne("'inetPton4' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"inetNtop4")||(o.inetNtop4=function(){Ne("'inetNtop4' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"inetPton6")||(o.inetPton6=function(){Ne("'inetPton6' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"inetNtop6")||(o.inetNtop6=function(){Ne("'inetNtop6' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"readSockaddr")||(o.readSockaddr=function(){Ne("'readSockaddr' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"writeSockaddr")||(o.writeSockaddr=function(){Ne("'writeSockaddr' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"DNS")||(o.DNS=function(){Ne("'DNS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getHostByName")||(o.getHostByName=function(){Ne("'getHostByName' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"GAI_ERRNO_MESSAGES")||(o.GAI_ERRNO_MESSAGES=function(){Ne("'GAI_ERRNO_MESSAGES' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"Protocols")||(o.Protocols=function(){Ne("'Protocols' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"Sockets")||(o.Sockets=function(){Ne("'Sockets' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getRandomDevice")||(o.getRandomDevice=function(){Ne("'getRandomDevice' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"traverseStack")||(o.traverseStack=function(){Ne("'traverseStack' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"UNWIND_CACHE")||(o.UNWIND_CACHE=function(){Ne("'UNWIND_CACHE' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"readAsmConstArgsArray")||(o.readAsmConstArgsArray=function(){Ne("'readAsmConstArgsArray' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"readAsmConstArgs")||(o.readAsmConstArgs=function(){Ne("'readAsmConstArgs' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"mainThreadEM_ASM")||(o.mainThreadEM_ASM=function(){Ne("'mainThreadEM_ASM' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"jstoi_q")||(o.jstoi_q=function(){Ne("'jstoi_q' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"jstoi_s")||(o.jstoi_s=function(){Ne("'jstoi_s' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getExecutableName")||(o.getExecutableName=function(){Ne("'getExecutableName' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"listenOnce")||(o.listenOnce=function(){Ne("'listenOnce' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"autoResumeAudioContext")||(o.autoResumeAudioContext=function(){Ne("'autoResumeAudioContext' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"dynCallLegacy")||(o.dynCallLegacy=function(){Ne("'dynCallLegacy' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getDynCaller")||(o.getDynCaller=function(){Ne("'getDynCaller' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"dynCall")||(o.dynCall=function(){Ne("'dynCall' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"callRuntimeCallbacks")||(o.callRuntimeCallbacks=function(){Ne("'callRuntimeCallbacks' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"wasmTableMirror")||(o.wasmTableMirror=function(){Ne("'wasmTableMirror' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"setWasmTableEntry")||(o.setWasmTableEntry=function(){Ne("'setWasmTableEntry' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getWasmTableEntry")||(o.getWasmTableEntry=function(){Ne("'getWasmTableEntry' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"handleException")||(o.handleException=function(){Ne("'handleException' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"runtimeKeepalivePush")||(o.runtimeKeepalivePush=function(){Ne("'runtimeKeepalivePush' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"runtimeKeepalivePop")||(o.runtimeKeepalivePop=function(){Ne("'runtimeKeepalivePop' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"callUserCallback")||(o.callUserCallback=function(){Ne("'callUserCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"maybeExit")||(o.maybeExit=function(){Ne("'maybeExit' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"safeSetTimeout")||(o.safeSetTimeout=function(){Ne("'safeSetTimeout' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"asmjsMangle")||(o.asmjsMangle=function(){Ne("'asmjsMangle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"asyncLoad")||(o.asyncLoad=function(){Ne("'asyncLoad' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"alignMemory")||(o.alignMemory=function(){Ne("'alignMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"mmapAlloc")||(o.mmapAlloc=function(){Ne("'mmapAlloc' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"reallyNegative")||(o.reallyNegative=function(){Ne("'reallyNegative' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"unSign")||(o.unSign=function(){Ne("'unSign' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"reSign")||(o.reSign=function(){Ne("'reSign' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"formatString")||(o.formatString=function(){Ne("'formatString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"PATH")||(o.PATH=function(){Ne("'PATH' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"PATH_FS")||(o.PATH_FS=function(){Ne("'PATH_FS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"SYSCALLS")||(o.SYSCALLS=function(){Ne("'SYSCALLS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"syscallMmap2")||(o.syscallMmap2=function(){Ne("'syscallMmap2' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"syscallMunmap")||(o.syscallMunmap=function(){Ne("'syscallMunmap' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getSocketFromFD")||(o.getSocketFromFD=function(){Ne("'getSocketFromFD' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getSocketAddress")||(o.getSocketAddress=function(){Ne("'getSocketAddress' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"JSEvents")||(o.JSEvents=function(){Ne("'JSEvents' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerKeyEventCallback")||(o.registerKeyEventCallback=function(){Ne("'registerKeyEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"specialHTMLTargets")||(o.specialHTMLTargets=function(){Ne("'specialHTMLTargets' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"maybeCStringToJsString")||(o.maybeCStringToJsString=function(){Ne("'maybeCStringToJsString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"findEventTarget")||(o.findEventTarget=function(){Ne("'findEventTarget' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"findCanvasEventTarget")||(o.findCanvasEventTarget=function(){Ne("'findCanvasEventTarget' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getBoundingClientRect")||(o.getBoundingClientRect=function(){Ne("'getBoundingClientRect' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"fillMouseEventData")||(o.fillMouseEventData=function(){Ne("'fillMouseEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerMouseEventCallback")||(o.registerMouseEventCallback=function(){Ne("'registerMouseEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerWheelEventCallback")||(o.registerWheelEventCallback=function(){Ne("'registerWheelEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerUiEventCallback")||(o.registerUiEventCallback=function(){Ne("'registerUiEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerFocusEventCallback")||(o.registerFocusEventCallback=function(){Ne("'registerFocusEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"fillDeviceOrientationEventData")||(o.fillDeviceOrientationEventData=function(){Ne("'fillDeviceOrientationEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerDeviceOrientationEventCallback")||(o.registerDeviceOrientationEventCallback=function(){Ne("'registerDeviceOrientationEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"fillDeviceMotionEventData")||(o.fillDeviceMotionEventData=function(){Ne("'fillDeviceMotionEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerDeviceMotionEventCallback")||(o.registerDeviceMotionEventCallback=function(){Ne("'registerDeviceMotionEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"screenOrientation")||(o.screenOrientation=function(){Ne("'screenOrientation' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"fillOrientationChangeEventData")||(o.fillOrientationChangeEventData=function(){Ne("'fillOrientationChangeEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerOrientationChangeEventCallback")||(o.registerOrientationChangeEventCallback=function(){Ne("'registerOrientationChangeEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"fillFullscreenChangeEventData")||(o.fillFullscreenChangeEventData=function(){Ne("'fillFullscreenChangeEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerFullscreenChangeEventCallback")||(o.registerFullscreenChangeEventCallback=function(){Ne("'registerFullscreenChangeEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerRestoreOldStyle")||(o.registerRestoreOldStyle=function(){Ne("'registerRestoreOldStyle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"hideEverythingExceptGivenElement")||(o.hideEverythingExceptGivenElement=function(){Ne("'hideEverythingExceptGivenElement' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"restoreHiddenElements")||(o.restoreHiddenElements=function(){Ne("'restoreHiddenElements' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"setLetterbox")||(o.setLetterbox=function(){Ne("'setLetterbox' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"currentFullscreenStrategy")||(o.currentFullscreenStrategy=function(){Ne("'currentFullscreenStrategy' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"restoreOldWindowedStyle")||(o.restoreOldWindowedStyle=function(){Ne("'restoreOldWindowedStyle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"softFullscreenResizeWebGLRenderTarget")||(o.softFullscreenResizeWebGLRenderTarget=function(){Ne("'softFullscreenResizeWebGLRenderTarget' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"doRequestFullscreen")||(o.doRequestFullscreen=function(){Ne("'doRequestFullscreen' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"fillPointerlockChangeEventData")||(o.fillPointerlockChangeEventData=function(){Ne("'fillPointerlockChangeEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerPointerlockChangeEventCallback")||(o.registerPointerlockChangeEventCallback=function(){Ne("'registerPointerlockChangeEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerPointerlockErrorEventCallback")||(o.registerPointerlockErrorEventCallback=function(){Ne("'registerPointerlockErrorEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"requestPointerLock")||(o.requestPointerLock=function(){Ne("'requestPointerLock' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"fillVisibilityChangeEventData")||(o.fillVisibilityChangeEventData=function(){Ne("'fillVisibilityChangeEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerVisibilityChangeEventCallback")||(o.registerVisibilityChangeEventCallback=function(){Ne("'registerVisibilityChangeEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerTouchEventCallback")||(o.registerTouchEventCallback=function(){Ne("'registerTouchEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"fillGamepadEventData")||(o.fillGamepadEventData=function(){Ne("'fillGamepadEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerGamepadEventCallback")||(o.registerGamepadEventCallback=function(){Ne("'registerGamepadEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerBeforeUnloadEventCallback")||(o.registerBeforeUnloadEventCallback=function(){Ne("'registerBeforeUnloadEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"fillBatteryEventData")||(o.fillBatteryEventData=function(){Ne("'fillBatteryEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"battery")||(o.battery=function(){Ne("'battery' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerBatteryEventCallback")||(o.registerBatteryEventCallback=function(){Ne("'registerBatteryEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"setCanvasElementSize")||(o.setCanvasElementSize=function(){Ne("'setCanvasElementSize' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getCanvasElementSize")||(o.getCanvasElementSize=function(){Ne("'getCanvasElementSize' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"demangle")||(o.demangle=function(){Ne("'demangle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"demangleAll")||(o.demangleAll=function(){Ne("'demangleAll' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"jsStackTrace")||(o.jsStackTrace=function(){Ne("'jsStackTrace' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"stackTrace")||(o.stackTrace=function(){Ne("'stackTrace' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getEnvStrings")||(o.getEnvStrings=function(){Ne("'getEnvStrings' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"checkWasiClock")||(o.checkWasiClock=function(){Ne("'checkWasiClock' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"writeI53ToI64")||(o.writeI53ToI64=function(){Ne("'writeI53ToI64' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"writeI53ToI64Clamped")||(o.writeI53ToI64Clamped=function(){Ne("'writeI53ToI64Clamped' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"writeI53ToI64Signaling")||(o.writeI53ToI64Signaling=function(){Ne("'writeI53ToI64Signaling' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"writeI53ToU64Clamped")||(o.writeI53ToU64Clamped=function(){Ne("'writeI53ToU64Clamped' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"writeI53ToU64Signaling")||(o.writeI53ToU64Signaling=function(){Ne("'writeI53ToU64Signaling' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"readI53FromI64")||(o.readI53FromI64=function(){Ne("'readI53FromI64' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"readI53FromU64")||(o.readI53FromU64=function(){Ne("'readI53FromU64' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"convertI32PairToI53")||(o.convertI32PairToI53=function(){Ne("'convertI32PairToI53' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"convertU32PairToI53")||(o.convertU32PairToI53=function(){Ne("'convertU32PairToI53' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"setImmediateWrapped")||(o.setImmediateWrapped=function(){Ne("'setImmediateWrapped' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"clearImmediateWrapped")||(o.clearImmediateWrapped=function(){Ne("'clearImmediateWrapped' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"polyfillSetImmediate")||(o.polyfillSetImmediate=function(){Ne("'polyfillSetImmediate' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"uncaughtExceptionCount")||(o.uncaughtExceptionCount=function(){Ne("'uncaughtExceptionCount' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"exceptionLast")||(o.exceptionLast=function(){Ne("'exceptionLast' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"exceptionCaught")||(o.exceptionCaught=function(){Ne("'exceptionCaught' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"ExceptionInfo")||(o.ExceptionInfo=function(){Ne("'ExceptionInfo' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"CatchInfo")||(o.CatchInfo=function(){Ne("'CatchInfo' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"exception_addRef")||(o.exception_addRef=function(){Ne("'exception_addRef' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"exception_decRef")||(o.exception_decRef=function(){Ne("'exception_decRef' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"Browser")||(o.Browser=function(){Ne("'Browser' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"funcWrappers")||(o.funcWrappers=function(){Ne("'funcWrappers' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getFuncWrapper")||(o.getFuncWrapper=function(){Ne("'getFuncWrapper' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"setMainLoop")||(o.setMainLoop=function(){Ne("'setMainLoop' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"wget")||(o.wget=function(){Ne("'wget' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"FS")||(o.FS=function(){Ne("'FS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"MEMFS")||(o.MEMFS=function(){Ne("'MEMFS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"TTY")||(o.TTY=function(){Ne("'TTY' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"PIPEFS")||(o.PIPEFS=function(){Ne("'PIPEFS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"SOCKFS")||(o.SOCKFS=function(){Ne("'SOCKFS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"_setNetworkCallback")||(o._setNetworkCallback=function(){Ne("'_setNetworkCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"tempFixedLengthArray")||(o.tempFixedLengthArray=function(){Ne("'tempFixedLengthArray' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"miniTempWebGLFloatBuffers")||(o.miniTempWebGLFloatBuffers=function(){Ne("'miniTempWebGLFloatBuffers' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"heapObjectForWebGLType")||(o.heapObjectForWebGLType=function(){Ne("'heapObjectForWebGLType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"heapAccessShiftForWebGLHeap")||(o.heapAccessShiftForWebGLHeap=function(){Ne("'heapAccessShiftForWebGLHeap' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"GL")||(o.GL=function(){Ne("'GL' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"emscriptenWebGLGet")||(o.emscriptenWebGLGet=function(){Ne("'emscriptenWebGLGet' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"computeUnpackAlignedImageSize")||(o.computeUnpackAlignedImageSize=function(){Ne("'computeUnpackAlignedImageSize' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"emscriptenWebGLGetTexPixelData")||(o.emscriptenWebGLGetTexPixelData=function(){Ne("'emscriptenWebGLGetTexPixelData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"emscriptenWebGLGetUniform")||(o.emscriptenWebGLGetUniform=function(){Ne("'emscriptenWebGLGetUniform' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"webglGetUniformLocation")||(o.webglGetUniformLocation=function(){Ne("'webglGetUniformLocation' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"webglPrepareUniformLocationsBeforeFirstUse")||(o.webglPrepareUniformLocationsBeforeFirstUse=function(){Ne("'webglPrepareUniformLocationsBeforeFirstUse' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"webglGetLeftBracePos")||(o.webglGetLeftBracePos=function(){Ne("'webglGetLeftBracePos' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"emscriptenWebGLGetVertexAttrib")||(o.emscriptenWebGLGetVertexAttrib=function(){Ne("'emscriptenWebGLGetVertexAttrib' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"writeGLArray")||(o.writeGLArray=function(){Ne("'writeGLArray' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"AL")||(o.AL=function(){Ne("'AL' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"SDL_unicode")||(o.SDL_unicode=function(){Ne("'SDL_unicode' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"SDL_ttfContext")||(o.SDL_ttfContext=function(){Ne("'SDL_ttfContext' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"SDL_audio")||(o.SDL_audio=function(){Ne("'SDL_audio' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"SDL")||(o.SDL=function(){Ne("'SDL' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"SDL_gfx")||(o.SDL_gfx=function(){Ne("'SDL_gfx' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"GLUT")||(o.GLUT=function(){Ne("'GLUT' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"EGL")||(o.EGL=function(){Ne("'EGL' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"GLFW_Window")||(o.GLFW_Window=function(){Ne("'GLFW_Window' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"GLFW")||(o.GLFW=function(){Ne("'GLFW' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"GLEW")||(o.GLEW=function(){Ne("'GLEW' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"IDBStore")||(o.IDBStore=function(){Ne("'IDBStore' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"runAndAbortIfError")||(o.runAndAbortIfError=function(){Ne("'runAndAbortIfError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"emval_handle_array")||(o.emval_handle_array=function(){Ne("'emval_handle_array' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"emval_free_list")||(o.emval_free_list=function(){Ne("'emval_free_list' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"emval_symbols")||(o.emval_symbols=function(){Ne("'emval_symbols' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"init_emval")||(o.init_emval=function(){Ne("'init_emval' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"count_emval_handles")||(o.count_emval_handles=function(){Ne("'count_emval_handles' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"get_first_emval")||(o.get_first_emval=function(){Ne("'get_first_emval' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getStringOrSymbol")||(o.getStringOrSymbol=function(){Ne("'getStringOrSymbol' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"Emval")||(o.Emval=function(){Ne("'Emval' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"emval_newers")||(o.emval_newers=function(){Ne("'emval_newers' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"craftEmvalAllocator")||(o.craftEmvalAllocator=function(){Ne("'craftEmvalAllocator' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"emval_get_global")||(o.emval_get_global=function(){Ne("'emval_get_global' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"emval_methodCallers")||(o.emval_methodCallers=function(){Ne("'emval_methodCallers' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"InternalError")||(o.InternalError=function(){Ne("'InternalError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"BindingError")||(o.BindingError=function(){Ne("'BindingError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"UnboundTypeError")||(o.UnboundTypeError=function(){Ne("'UnboundTypeError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"PureVirtualError")||(o.PureVirtualError=function(){Ne("'PureVirtualError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"init_embind")||(o.init_embind=function(){Ne("'init_embind' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"throwInternalError")||(o.throwInternalError=function(){Ne("'throwInternalError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"throwBindingError")||(o.throwBindingError=function(){Ne("'throwBindingError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"throwUnboundTypeError")||(o.throwUnboundTypeError=function(){Ne("'throwUnboundTypeError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"ensureOverloadTable")||(o.ensureOverloadTable=function(){Ne("'ensureOverloadTable' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"exposePublicSymbol")||(o.exposePublicSymbol=function(){Ne("'exposePublicSymbol' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"replacePublicSymbol")||(o.replacePublicSymbol=function(){Ne("'replacePublicSymbol' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"extendError")||(o.extendError=function(){Ne("'extendError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"createNamedFunction")||(o.createNamedFunction=function(){Ne("'createNamedFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registeredInstances")||(o.registeredInstances=function(){Ne("'registeredInstances' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getBasestPointer")||(o.getBasestPointer=function(){Ne("'getBasestPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerInheritedInstance")||(o.registerInheritedInstance=function(){Ne("'registerInheritedInstance' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"unregisterInheritedInstance")||(o.unregisterInheritedInstance=function(){Ne("'unregisterInheritedInstance' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getInheritedInstance")||(o.getInheritedInstance=function(){Ne("'getInheritedInstance' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getInheritedInstanceCount")||(o.getInheritedInstanceCount=function(){Ne("'getInheritedInstanceCount' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getLiveInheritedInstances")||(o.getLiveInheritedInstances=function(){Ne("'getLiveInheritedInstances' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registeredTypes")||(o.registeredTypes=function(){Ne("'registeredTypes' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"awaitingDependencies")||(o.awaitingDependencies=function(){Ne("'awaitingDependencies' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"typeDependencies")||(o.typeDependencies=function(){Ne("'typeDependencies' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registeredPointers")||(o.registeredPointers=function(){Ne("'registeredPointers' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"registerType")||(o.registerType=function(){Ne("'registerType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"whenDependentTypesAreResolved")||(o.whenDependentTypesAreResolved=function(){Ne("'whenDependentTypesAreResolved' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"embind_charCodes")||(o.embind_charCodes=function(){Ne("'embind_charCodes' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"embind_init_charCodes")||(o.embind_init_charCodes=function(){Ne("'embind_init_charCodes' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"readLatin1String")||(o.readLatin1String=function(){Ne("'readLatin1String' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getTypeName")||(o.getTypeName=function(){Ne("'getTypeName' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"heap32VectorToArray")||(o.heap32VectorToArray=function(){Ne("'heap32VectorToArray' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"requireRegisteredType")||(o.requireRegisteredType=function(){Ne("'requireRegisteredType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"getShiftFromSize")||(o.getShiftFromSize=function(){Ne("'getShiftFromSize' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"integerReadValueFromPointer")||(o.integerReadValueFromPointer=function(){Ne("'integerReadValueFromPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"enumReadValueFromPointer")||(o.enumReadValueFromPointer=function(){Ne("'enumReadValueFromPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"floatReadValueFromPointer")||(o.floatReadValueFromPointer=function(){Ne("'floatReadValueFromPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"simpleReadValueFromPointer")||(o.simpleReadValueFromPointer=function(){Ne("'simpleReadValueFromPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"runDestructors")||(o.runDestructors=function(){Ne("'runDestructors' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"new_")||(o.new_=function(){Ne("'new_' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"craftInvokerFunction")||(o.craftInvokerFunction=function(){Ne("'craftInvokerFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"embind__requireFunction")||(o.embind__requireFunction=function(){Ne("'embind__requireFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"tupleRegistrations")||(o.tupleRegistrations=function(){Ne("'tupleRegistrations' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"structRegistrations")||(o.structRegistrations=function(){Ne("'structRegistrations' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"genericPointerToWireType")||(o.genericPointerToWireType=function(){Ne("'genericPointerToWireType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"constNoSmartPtrRawPointerToWireType")||(o.constNoSmartPtrRawPointerToWireType=function(){Ne("'constNoSmartPtrRawPointerToWireType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"nonConstNoSmartPtrRawPointerToWireType")||(o.nonConstNoSmartPtrRawPointerToWireType=function(){Ne("'nonConstNoSmartPtrRawPointerToWireType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"init_RegisteredPointer")||(o.init_RegisteredPointer=function(){Ne("'init_RegisteredPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"RegisteredPointer")||(o.RegisteredPointer=function(){Ne("'RegisteredPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"RegisteredPointer_getPointee")||(o.RegisteredPointer_getPointee=function(){Ne("'RegisteredPointer_getPointee' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"RegisteredPointer_destructor")||(o.RegisteredPointer_destructor=function(){Ne("'RegisteredPointer_destructor' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"RegisteredPointer_deleteObject")||(o.RegisteredPointer_deleteObject=function(){Ne("'RegisteredPointer_deleteObject' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"RegisteredPointer_fromWireType")||(o.RegisteredPointer_fromWireType=function(){Ne("'RegisteredPointer_fromWireType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"runDestructor")||(o.runDestructor=function(){Ne("'runDestructor' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"releaseClassHandle")||(o.releaseClassHandle=function(){Ne("'releaseClassHandle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"finalizationRegistry")||(o.finalizationRegistry=function(){Ne("'finalizationRegistry' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"detachFinalizer_deps")||(o.detachFinalizer_deps=function(){Ne("'detachFinalizer_deps' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"detachFinalizer")||(o.detachFinalizer=function(){Ne("'detachFinalizer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"attachFinalizer")||(o.attachFinalizer=function(){Ne("'attachFinalizer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"makeClassHandle")||(o.makeClassHandle=function(){Ne("'makeClassHandle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"init_ClassHandle")||(o.init_ClassHandle=function(){Ne("'init_ClassHandle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"ClassHandle")||(o.ClassHandle=function(){Ne("'ClassHandle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"ClassHandle_isAliasOf")||(o.ClassHandle_isAliasOf=function(){Ne("'ClassHandle_isAliasOf' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"throwInstanceAlreadyDeleted")||(o.throwInstanceAlreadyDeleted=function(){Ne("'throwInstanceAlreadyDeleted' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"ClassHandle_clone")||(o.ClassHandle_clone=function(){Ne("'ClassHandle_clone' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"ClassHandle_delete")||(o.ClassHandle_delete=function(){Ne("'ClassHandle_delete' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"deletionQueue")||(o.deletionQueue=function(){Ne("'deletionQueue' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"ClassHandle_isDeleted")||(o.ClassHandle_isDeleted=function(){Ne("'ClassHandle_isDeleted' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"ClassHandle_deleteLater")||(o.ClassHandle_deleteLater=function(){Ne("'ClassHandle_deleteLater' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"flushPendingDeletes")||(o.flushPendingDeletes=function(){Ne("'flushPendingDeletes' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"delayFunction")||(o.delayFunction=function(){Ne("'delayFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"setDelayFunction")||(o.setDelayFunction=function(){Ne("'setDelayFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"RegisteredClass")||(o.RegisteredClass=function(){Ne("'RegisteredClass' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"shallowCopyInternalPointer")||(o.shallowCopyInternalPointer=function(){Ne("'shallowCopyInternalPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"downcastPointer")||(o.downcastPointer=function(){Ne("'downcastPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"upcastPointer")||(o.upcastPointer=function(){Ne("'upcastPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"validateThis")||(o.validateThis=function(){Ne("'validateThis' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"char_0")||(o.char_0=function(){Ne("'char_0' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"char_9")||(o.char_9=function(){Ne("'char_9' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"makeLegalFunctionName")||(o.makeLegalFunctionName=function(){Ne("'makeLegalFunctionName' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"emscriptenWebGLGetIndexed")||(o.emscriptenWebGLGetIndexed=function(){Ne("'emscriptenWebGLGetIndexed' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"warnOnce")||(o.warnOnce=function(){Ne("'warnOnce' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"stackSave")||(o.stackSave=function(){Ne("'stackSave' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"stackRestore")||(o.stackRestore=function(){Ne("'stackRestore' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"stackAlloc")||(o.stackAlloc=function(){Ne("'stackAlloc' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"AsciiToString")||(o.AsciiToString=function(){Ne("'AsciiToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"stringToAscii")||(o.stringToAscii=function(){Ne("'stringToAscii' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"UTF16ToString")||(o.UTF16ToString=function(){Ne("'UTF16ToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"stringToUTF16")||(o.stringToUTF16=function(){Ne("'stringToUTF16' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"lengthBytesUTF16")||(o.lengthBytesUTF16=function(){Ne("'lengthBytesUTF16' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"UTF32ToString")||(o.UTF32ToString=function(){Ne("'UTF32ToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"stringToUTF32")||(o.stringToUTF32=function(){Ne("'stringToUTF32' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"lengthBytesUTF32")||(o.lengthBytesUTF32=function(){Ne("'lengthBytesUTF32' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"allocateUTF8")||(o.allocateUTF8=function(){Ne("'allocateUTF8' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(o,"allocateUTF8OnStack")||(o.allocateUTF8OnStack=function(){Ne("'allocateUTF8OnStack' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}),o.writeStackCookie=de,o.checkStackCookie=pe,Object.getOwnPropertyDescriptor(o,"ALLOC_NORMAL")||Object.defineProperty(o,"ALLOC_NORMAL",{configurable:!0,get:function(){Ne("'ALLOC_NORMAL' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}}),Object.getOwnPropertyDescriptor(o,"ALLOC_STACK")||Object.defineProperty(o,"ALLOC_STACK",{configurable:!0,get:function(){Ne("'ALLOC_STACK' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}}),Ae=function e(){xd||Xd(),xd||(Ae=e)},o.run=Xd,o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();var $d=!0;return o.noInitialRun&&($d=!1),Xd(),e.ready}),gf=n.p+"assets/core/cesdk.wasm",mf=n.p+"assets/core/cesdk.data",vf=(e,t)=>null!=t?[t,e.split("/").pop()].join(""):new URL(e,window.location.origin);var yf,bf,wf,Ef,_f,Of,xf,Tf,Pf,kf=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},Sf=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class Df{constructor(e,t,n){yf.add(this),Object.defineProperty(this,"block",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"scene",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"variable",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),bf.set(this,void 0),wf.set(this,void 0),Ef.set(this,void 0),_f.set(this,(()=>{const e=this.block.findByType(o._h.Camera)[0];if(!e)return;const{width:t,height:n}=Sf(this,wf,"f"),r=Sf(this,bf,"f").getValue(e,o.$R.Camera,"resolution");ol(r.width,t,1e-4)&&ol(r.height,n,1e-4)||Sf(this,bf,"f").setValue(e,o.$R.Camera,"resolution",{width:t,height:n}),ol(Sf(this,bf,"f").getValue(e,o.$R.Camera,"pixelRatio"),window.devicePixelRatio,1e-4)||Sf(this,bf,"f").setValue(e,o.$R.Camera,"pixelRatio",window.devicePixelRatio)})),Of.set(this,void 0),kf(this,Ef,e,"f"),kf(this,bf,new il(e),"f"),kf(this,wf,t,"f"),this.block=new Dl(e),this.scene=new Fl(e),this.variable=new Nl(e),Sf(this,bf,"f").internalAPI.setPreUpdateCallback(Sf(this,_f,"f")),Sf(this,yf,"m",xf).call(this)}dispose(){Sf(this,yf,"m",Tf).call(this),Sf(this,bf,"f").internalAPI.setPreUpdateCallback(null),kf(this,wf,null,"f"),kf(this,bf,null,"f"),this.block=null,this.scene=null,this.variable=null,Sf(this,Ef,"f").delete(),kf(this,Ef,null,"f")}static async init(e,t){console.log("[CESDK] Revision e240acee071833ba315a1adafee3ad756d15d7a5"),e||(e=document.createElement("canvas"));const n=pf.initWithDefaults(t);return new this(await((e,t)=>{const n=pf.initWithDefaults(t),{core:r}=n,i=null!==(u=null===(s=null==(a=n)?void 0:a.callbacks)||void 0===s?void 0:s.log)&&void 0!==u?u:ef;var a,s,u;return new Promise(((t,a)=>{let s,u;return hf({locateFile:(e,t)=>{if(e.endsWith(".wasm")){const e=vf(gf,r.baseURL).toString();return s=e,e}if(e.endsWith(".data")){const e=vf(mf,r.baseURL).toString();return u=e,e}return t+e},print:e=>{e&&"undefined"!==e&&i(e,o.in.Info)},printErr:e=>{e&&"undefined"!==e&&i(e,o.in.Error)},onRuntimeInitialized:()=>{i("Engine has been initialized.",o.in.Info)},logReadFiles:!1,printWithColors:!0}).then((r=>{let i="";"string"==typeof e?i=e:(r.canvas=e,i="canvas");const s=r.createEngine(i);if(s.isValid()){const e=s.value();!function(e,t){const n=new il(e);var r;function i(e,t){return n.execute("ubq/settings/set",[e,t])}i("ubq://license",t.license||""),Object.entries(t.assets).forEach((([e,t])=>{n.execute("ubq/assets/register",[e,t.src,""])})),Object.entries(t.presets.images||{}).forEach((([e,t])=>{n.execute("ubq/assets/registerImage",[e,t.thumbnailURL||t.imageURL,t.imageURL,t.width,t.height])})),Object.entries(t.presets.typefaces||{}).forEach((([e,t])=>{(t.fonts||[]).forEach((r=>{const o=`${e}_${r.weight}_${r.style}`;n.execute("ubq/assets/registerFont",[o,r.fontURL,t.family,r.weight,r.style])}))})),i("ubq://features/effectsEnabled",!0),i("ubq://page/title/font",t.page.title.font),i("ubq://page/title/show",t.page.title.show),function(){if(void 0!==t.scene.maskSpotColor){const{rgbApproximation:e}=t.scene.maskSpotColor,r=(0,o.JY)(Object.assign(Object.assign({},e),{a:1}));n.execute("cesdk/setSpecialSpotColor",r)}}(),(null!==(r=t.extensions)&&void 0!==r?r:[]).entries.forEach((e=>{n.execute("ubq/extension/register",`${e}`)})),function(){var n;const r=null!==(n=t.variables)&&void 0!==n?n:{};Object.entries(r).forEach((([t,n])=>{al(e.setVariableValue(t,n.value.toString()))}))}()}(e,n),t(e)}else{const e=s.error();a(new Error(e.publicMessage())),e.delete()}s.delete()})).catch((e=>{e instanceof Error&&(e.wasmPath=s,e.dataPath=u),a(e)}))}))})(e,n),e,n)}}bf=new WeakMap,wf=new WeakMap,Ef=new WeakMap,_f=new WeakMap,Of=new WeakMap,yf=new WeakSet,xf=function(e=!0){if(Sf(this,Of,"f"))return;const t=()=>{Sf(this,yf,"m",Pf).call(this,e),kf(this,Of,requestAnimationFrame(t),"f")};kf(this,Of,requestAnimationFrame(t),"f")},Tf=function(){Sf(this,Of,"f")&&(cancelAnimationFrame(Sf(this,Of,"f")),kf(this,Of,0,"f"))},Pf=function(e=!0){e&&1===this.block.findByType(o._h.Scene).length&&Sf(this,bf,"f").execute("ubq/render",{displayWidth:Sf(this,wf,"f").width,displayHeight:Sf(this,wf,"f").height}),Sf(this,bf,"f").internalAPI.update()}}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.m=t,e=[],o.O=(t,n,r,i)=>{if(!n){var a=1/0;for(l=0;l<e.length;l++){for(var[n,r,i]=e[l],s=!0,u=0;u<n.length;u++)(!1&i||a>=i)&&Object.keys(o.O).every((e=>o.O[e](n[u])))?n.splice(u--,1):(s=!1,i<a&&(a=i));if(s){e.splice(l--,1);var c=r();void 0!==c&&(t=c)}}return t}i=i||0;for(var l=e.length;l>0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[n,r,i]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),o.p="",(()=>{var e={763:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var r,i,[a,s,u]=n,c=0;if(a.some((t=>0!==e[t]))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);if(u)var l=u(o)}for(t&&t(n);c<a.length;c++)i=a[c],o.o(e,i)&&e[i]&&e[i][0](),e[a[c]]=0;return o.O(l)},n=self.webpackChunkcesdk=self.webpackChunkcesdk||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var i=o(897);return(i=o.O(i)).default})()}));
|