sidekicks / image-fx-5e76c5eb19d4660c.js
Rainbowbeast's picture
Upload 57 files
5f64521 verified
function a17_0x1181(_0x3b9d66,_0x34ca57){const _0x57359d=a17_0x5735();return a17_0x1181=function(_0x118110,_0x4fdbad){_0x118110=_0x118110-0x1d3;let _0x5e6f81=_0x57359d[_0x118110];return _0x5e6f81;},a17_0x1181(_0x3b9d66,_0x34ca57);}const a17_0x244221=a17_0x1181;function a17_0x5735(){const _0x3a0208=['1288840BrywNP','1.125rem','display:flex;justify-content:flex-end;','sc-8063db87-3',';&:hover{background:','select','closePath','update','sc-c44bf9e2-0','$isTransitioning','swiper','useMutation','border-radius:1rem;color:','reduce','click','PARAGRAPH','textarea','media','px;max-width:100%;min-height:',';max-height:100%;align-items:center;justify-content:center;@media\x20(min-width:','/icons/magic-wand-cursor.svg','slatePrompt','includes','media_creating_spinner','useUtils','current','pointer-events:none;','left','flex:1;border:none;border-radius:0;background:none;','bottom:-20%;height:auto;position:absolute;right:-20%;width:80rem;path{fill:','sc-3744df72-0','IMAGEFX_CLICK_ON_FOUR_UP','display:none;@media\x20(min-width:','Couldn\x27t\x20fetch\x20images','lock_open_right','3773744crjASO','imagefx_input_tab_label','usePathname','aitk-white-50','justify-content:center;flex:1\x200\x200;','imagefx_settings_button_text','illustration\x20of\x20a\x20sad\x20bunny,\x20cute,\x20adorable,\x20small,\x20imperfect\x20hand\x20drawn,\x20light\x20blue\x20background,\x20anime','rgb(','useCallback','delete','\x22><circle\x20cx=\x22','mdHeadlineLarge','remix','withConfig','){}','SAFETY_MODE_MINIMAL','map',';transition:box-shadow\x200.2s\x20ease;&:hover{box-shadow:0\x200\x200\x204px\x20','sc-f0717600-9','imagefx_safe_mode_on_label_subheader','setCurrentSegmentClicks','documentElement','imagefx_undo','imagefx-seed-input','display:flex;gap:0.5rem;align-self:center;align-self:center;width:100%;','MASK_HISTORY','download','auto_awesome','setGetMaskDataURL','HISTORY','getContext','dogfood_safe_mode_disclaimer_dialog_content','--slider-height:','7wdXUkl','image_fx_brush_tab_text','images','$sliderHeight','isExplicitPromptExpansionEnabled','border-radius:9999px;padding:0.25rem;&:disabled{color:','THUMB_UP','/website/content/image-fx-please-sign-in.webp','currentColor','mediaKey','currentInpaintingPrompt','sc-d8594444-0','button','display:flex;align-items:center;gap:0.4rem;','setImageSegments','imagefx_edit_mode_model_toast','mousedown','display:flex;align-items:center;color:','draw_auto','sc-28749137-2','display:flex;padding:0.75rem\x201.5rem;flex-direction:column;justify-content:center;align-items:center;border-radius:2.5rem;border:1px\x20solid\x20','){padding:0.5rem;}@media\x20(max-width:','slice','position:absolute;top:0;left:0;height:100%;','MEDIA_KEY','sc-2519865f-0','position:absolute;background-color:transparent;width:100%;height:100%;border-radius:8px;opacity:','FILLED','canvas','display:flex;flex-direction:column;flex:1;gap:0.5rem;overflow:hidden;','$orientation',';z-index:-1;}&::after{content:\x27\x27;cursor:grab;position:absolute;right:calc(var(--slider-height)\x20/\x202);width:100rem;height:var(--slider-height);background-color:','){justify-content:space-between;padding:0.5rem;}','display:flex;gap:1rem;','){display:none;}','currentRefineProperties','color:','image_fx_','position:absolute;width:100%;height:100%;border-radius:8px;opacity:','1rem','image_fx_inpainting_instruction_1','BACKBONE_YELLOW','imagefx_overfilled_musiclm_cta','1.25rem','none','px;','sc-39d261f6-3','__NEXT_P','sc-43d791a1-2','canvas\x20or\x20ctx\x20is\x20null','close','top','setPendingDrawingOperations','useSlate','sc-e8493cb6-1','dogfood_safe_mode_disclaimer_dialog_confirm','display:flex;flex-direction:column;gap:1rem;padding-bottom:0.25rem;','seeAllOptions',';border:0.0749rem\x20solid\x20','sc-c44bf9e2-8','md-grey-700','700','355434LPDOGx','position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;overflow:visible;','EMPTY','unset','IMAGE_ASPECT_RATIO_PORTRAIT','pointer-events:none;position:absolute;top:0;left:0;width:100%;height:100%;path{fill:','sc-b912ff35-4','modelName','clearDrawingOperations','filter','aitk-blue-700','GOOGLE_SYMBOLS','imagefx_prompt_helper_submit_button_label','imagefx_generated_image_alt','sc-f0717600-10',';@media\x20(min-width:','previousPrompts','sc-535afab8-0','clientHeight','putImageData','currentAspectRatio','mouseup','User\x20not\x20logged\x20in','sc-142e0308-5','addEventListener','sc-ad55179c-0','isSeedLocked','START_OVER','$color','max-height:','safeParse','sc-21d36744-4','align-items:center;display:flex;flex-direction:row;height:100%;justify-content:space-around;left:0;position:absolute;top:0;width:100%;','display:none;','aitk-white-25','getComputedStyle','566126AfuIte','sc-b912ff35-3','deselectDrawingOperation','readAsDataURL','width','padding:2rem;','imagefx_promptless_prompting_background','No\x20file\x20uploaded','lineJoin','sc-8063db87-6','disabled','now','setActiveCarouselIndex','/tools/music-fx','encodedImage','glass-resting-full-style','ERASER','start','onload','variant','sc-c44bf9e2-3','backbone-yellow-400','aitkHeadline2','sc-c44bf9e2-7','sc-849db9c-2',';&:focus{outline:none;}@media\x20(min-width:','$size','split','clearRect','globalAlpha','generateEnhancedPrompt','values','5.5rem','sc-849db9c-0','!\x20/\x20','isGridMode','data','open','imageModelInputType','drawImage','imagefx_adjust_prompt_error','height:100%;','IMG','imageFx','overflow:hidden;flex:1;display:flex;flex-direction:column;','card','img','sc-25fc34a5-2','padding:0\x201.5rem;min-width:0;min-height:0;z-index:10;','jsx','sc-eda92e6e-4','encodedMaskInputBytes','sc-c44bf9e2-2','mdBodySmall','getHasNextImageFxResult','){border-bottom:1px\x20solid\x20','display:flex;align-items:center;gap:0.5rem;color:','sc-c44bf9e2-1','ICON','9xMvHil','brush','\x22\x20x2=\x22','imagePanel','\x20ease;&:hover{opacity:0.75;}','px;max-width:100%;border-radius:4px;border:2px\x20solid\x20transparent;object-fit:contain;width:auto\x20!important;opacity:0.4;transition:','sc-25fc34a5-0','SPECIAL','sc-2519865f-2','border:none;border-radius:0;background:none;border-bottom-left-radius:0;border-bottom-right-radius:0;','image_fx_wand_tab_text','children','getImageData','COPY','BRUSH','popLayout','stroke','IMAGE_ASPECT_RATIO_PORTRAIT_THREE_FOUR','imagefx_whisk_nudge_open_button','user_history_enable_dialog_text','margin:auto;max-width:unset;>\x20div{height:100%;}','IMAGE_ASPECT_RATIO_LANDSCAPE_FOUR_THREE','\x20pointer-events:auto;cursor:grab;display:flex;justify-content:center;align-items:center;width:var(--slider-height);height:var(--slider-height);background-color:','mdBodyLarge','setLineDash','sc-d8594444-3','observe','display:flex;align-items:center;justify-content:center;gap:0.5rem;@media\x20(min-width:','getCurrentImageFxResult','overflow:hidden;background:',';pointer-events:','auto','strokeStyle','push','position:absolute;pointer-events:none;outline:none;user-select:none;','){padding:0.75rem\x201.5rem;}','mdBodyMedium','imageSrc','matches','promptHelperPrompt','padding:1.5rem;color:','laptop','height','imagefx_empty_edit_history_text','editMode','lock','2zMBhOa','sc-b912ff35-0','sc-f0717600-2','updateUserImagesDict','No\x20images\x20in\x20edit\x20history\x20were\x20found','ctx\x20is\x20null','forwardRef',';display:none;flex-direction:column;overflow:hidden;max-width:100%;flex:1;color:white;@media\x20(min-width:',';border-radius:100%;display:block;height:2.083rem;transform:translateX(0.25rem);transition:transform\x200.1s\x20ease-in-out,box-shadow\x200.1s\x20ease-in-out;width:2.083rem;will-change:transform\x20box-shadow;&[data-state=\x27checked\x27]{transform:translateX(2.7rem);}',';border:1px\x20solid\x20','\x20/\x20','success','ERROR','display:flex;flex-direction:column;gap:1rem;width:100%;@media\x20(min-width:','getImageWorkflow','setPromptHelperPrompt','12RYOOOe','result','touchstart','useRouter','toggleIsSeedLocked','setEditorBaseImage','POSITIVE_INFINITY','sc-f0717600-7','preventDefault','BACKGROUND','sc-f0717600-5','random_chips','imagefx_refinement_aspect_ratio_label','cluttered\x20artist\x20studio,\x20light\x20shining\x20through,\x20welcoming',';background:none;','sc-dab5ea39-0','media_download_button_text','sc-32b73d4a-1','touches','setInvert','){display:initial;}','end','spring','label','sc-535afab8-2','display:flex;flex-direction:row;gap:0.2rem;align-items:center;','imagefx_prompt_helper_cancel_icon_button','useQuery','sc-88f5c671-0','display','301732yWyrWV','imagefx_edit_mode_name','sc-c44bf9e2-9','visibilitychange','sc-f0717600-4','NUMBER_OF_SEGMENT_CLICKS','imagefx_download_success','visibilityState','2rem','globalCompositeOperation','sc-e8493cb6-0','round','IMAGE_ASPECT_RATIO_LANDSCAPE','sc-39d261f6-0','$disabled','sc-7edc6048-3','fetchMedia','justify-content:center;','tablet','tagName','display:flex;justify-content:center;gap:0.5rem;','useMemo',';padding:0.4rem;display:flex;flex-direction:row;justify-content:center;@media\x20(min-width:','md-grey-800','matchMedia','access_token','display:flex;align-items:center;gap:1rem;','sc-39d261f6-7',';backdrop-filter:blur(2.5rem);','300','){min-height:12.5rem;}','imagefx_prompt_helper_create_button',';display:none;justify-content:center;flex-flow:wrap;padding:1rem;gap:0.5rem;opacity:','aitk-blurple-300','currentImageModelType','aitk-white-05','sc-b912ff35-2','No\x20Valid\x20Images\x20were\x20generated','INPUT','min-width:7rem;&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}','aspectRatio','sc-8063db87-8',';background:','lineCap','display:inline-flex;','ACTIVITY_TYPE_DOWNLOAD','imagefx_sign_in_prompt','height:auto;','THUMB_DOWN','sc-b912ff35-5','sc-39d261f6-5','removeEventListener','PUBLISH','sc-25fc34a5-3','getBoundingClientRect','max','setProposedAdjustedPrompt','FLAG','grid_view','sc-db9243cf-0','imagefx_latest_edit_history_text','sc-39d261f6-2','sc-cc881f12-0','\x22\x20y2=\x22','mdTitleMedium','image_fx_invert_mask_button_text','){display:unset;}','&:nth-child(1){align-items:flex-end;justify-self:flex-end;}&:nth-child(2){align-items:flex-end;}&:nth-child(3){align-items:flex-start;justify-self:flex-end;}&:nth-child(4){align-items:flex-start;}','\x20@media\x20(max-width:','button{background:','getHasPrevImageFxResult','image','sc-d8594444-2','length','align-self:center;display:flex;flex-direction:row-reverse;align-items:center;justify-content:center;max-width:100%;width:100%;position:relative;flex:1;gap:1.5rem;padding:0\x201.5rem;max-width:125rem;min-width:0;min-height:0;','md-white','imagefx_generate_edits_button_text','\x22\x20y1=\x22','undefined\x20aspect\x20ratio','sc-867ea774-4','$isHidden','mouseout','originalUserPrompt','background-color:','imagefx_prompt_history_text','useRef','isolation:isolate;align-self:center;max-width:150rem;max-height:100%;height:100%;min-width:','moveTo','user_history_enable_dialog_title',';width:100%;','sc-867ea774-0','CLICK_IMAGE_SEGMENT','\x22></line></svg>','sc-16cdb52d-0','data:image/svg+xml,',';}}','style','0.9rem','borderImageURL','OUTLINED','imagefx_start_over_button','IMAGEFX','imagePanels','media_create_button_prompt',');backdrop-filter:blur(5.833rem);-webkit-backdrop-filter:blur(5.833rem);','maskBytes','flatMap','imagefx_whisk_nudge_title','{pointer-events:none;}&:hover{cursor:grab;}}&.swiper-slide-active{','sc-39d261f6-4','SETTINGS',');mask-size:100%;-webkit-mask-image:url(','display:flex;','DOWNLOAD','sc-8063db87-10',');-webkit-mask-size:100%;','){flex:0.2;flex-direction:row;gap:0.25rem;display:flex;justify-content:center;}&:hover{cursor:pointer;}','aitk-white-15','number','useState','\x22\x20cy=\x22','type','fetchUserPreferences','sc-e8493cb6-3','imagePrompt',';z-index:-1;}&:focus-visible{outline:none;}&:active{cursor:grabbing;}&:hover,&:focus{border:0.0749rem\x20solid\x20','){padding:0.625rem\x201.5rem\x200.625rem\x201rem;}','generateImageSegments','NEGATIVE_INFINITY',';padding:0.4rem;display:flex;flex-direction:row;justify-content:space-between;align-items:center;@media\x20(min-width:','destination-out','focus','webpackChunk_N_E','prompt','boundingBox','target','restart_alt','span','undo','lineTo','editHistoryChain','withReact','upload_image_cta','md-grey-300','clientY','file','$canvasMaskDataUrl','EDIT_BUTTON_VIEWED','display:flex;padding:1.25rem\x201.5rem;justify-content:space-between;align-items:center;gap:0.5rem;align-items:flex-start;flex-direction:column;@media\x20(min-width:','previousMediaKey','backdrop-filter:unset;border:1px\x20solid\x20','visible','Fragment','base64MaskImage','useId','imagefx_generating_edits','Invalid\x20toolbox\x20tab\x20value:\x20','IMAGEN_3','/icons/backbone-swirl.svg','SHARE','input','color:inherit;','$isFullyExpanded','mediaGenerationId','lineWidth','setAspectRatio','min','display:flex;flex-direction:column;overflow:hidden;@media\x20(min-width:','touchend','sc-7edc6048-0','info','imageSetIndex','sc-7edc6048-1','results','source-over','general','flex:1;resize:none;display:flex;width:100%;',';position:relative;display:flex;align-items:center;user-select:none;touch-action:none;overflow:hidden;background-color:transparent;border-radius:9999px;height:var(--slider-height);width:100%;','shiftKey','touchmove','layoutId','display:flex;flex-direction:column;padding:1rem;justify-content:center;align-items:center;gap:1rem;width:100%;','display:flex;flex-direction:row;align-items:center;gap:0.75rem;','sc-8063db87-0','CAMaJGVmZGI2ZDU1LWY5NzgtNDUwMi1hYjJmLTAzZWMyZTY2ZmJjMSIDQ0FFKiQ3OTI2MDQzMC1jYTE4LTQ3ODEtOWVjMS0yNjk1MWI0ZDU4ZDk','sc-eda92e6e-5','value','\x22\x20height=\x22','Error\x20fetching\x20image','previousMediaGenerationId','width:auto;aspect-ratio:','exchange_magic','sc-e8493cb6-2','runPromptExpansion','im_feeling_lucky_button_text','background-color:transparent;border-radius:75px;box-shadow:0\x200\x200\x201px\x20','getCurrentAspectRatio','setCurrentInpaintingPrompt','contourPoints','rawImageBytes','imagefx_type_prompt_description','_blank','setIsGridMode','width:2rem;height:2.3rem;padding-right:1rem;','imagefx_copy_prompt_success','sc-eda92e6e-0','ICON_BUTTON',';text-align:center;border-radius:18px;width:4rem;padding:1rem\x200;','height:auto;aspect-ratio:1\x20/\x201;margin:auto;@media\x20(min-width:','beginPath','generateImageMaskData','clientX','sc-3744df72-1','ADD_CHIP','arrow_right_alt',';padding:0.5rem;&:focus{outline:none;}',';}&:not([disabled]):hover{background:','sc-8063db87-4','dataset','concat','https://labs.google/fx/tools/whisk','sc-39d261f6-6','1.5rem','1439070FcxDkq','IMAGE_ASPECT_RATIO_SQUARE','setItem','PROMPT_HELPER','musiclm_overfilled_footer_subheading','true','imagefx_library_enabled_for_publish','sc-867ea774-7','\x22\x20stroke=\x22white\x22\x20stroke-width=\x22','display:flex;justify-content:center;height:100%;overflow:hidden;','create','imagefx_fetch_image_error_503','sc-867ea774-8','setCurrentToolboxTab','colors','display:flex;flex-direction:column;gap:','sc-28749137-1','checked','chip','CHIP_LABEL','setEditMode','5060044RZMnqq','gpp_good','fillStyle','aitk-grey-75','aitk-blue-300','display:flex;padding:0.625rem\x201.5rem\x200.625rem\x201rem;justify-content:center;align-items:center;gap:0.5rem;align-self:stretch;border-radius:1.25rem;border:1px\x20solid\x20','sc-2519865f-1','imagefx_refinement_custom_seed_locked_subtitle','MAGIC_WAND','dogfood_safe_mode_disclaimer_dialog_title',';background-color:','SUCCESS','generatedImages','DESELECT','imagefx_upload_image_description','OPTIONS_BUTTON','<svg\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20width=\x22','blockSize','position:absolute;width:100%;height:100%;pointer-events:none;border-radius:8px;user-select:none;opacity:','disconnect','paths','aitk-grey-50','TAB','invalid\x20argument(s)\x20supplied\x20to\x20mask\x20editing','ReactEditor','sc-849db9c-1','sc-39d261f6-1','display:flex;border-radius:1.25rem;color:','scale','clientWidth','forEach','seed','exitAndResetEditor','sc-8063db87-7','sc-867ea774-2','){display:flex;}','setStrokeWidth','1em','\x20&.swiper-slide{','\x20overflow:hidden;','imagefx_toolbar_image_count','theme','toString','edit_fix_auto_normal','sc-98e55d1f-1','position:relative;touch-action:none;cursor:none;border-radius:8px;','more_chip_button','maskPrompt','EDIT','sc-535afab8-1','){padding:0.25rem;}','sc-867ea774-6','refineProperties','imagefx_promptless_prompting_style','\x22\x20r=\x22','currentToolboxTab',';}&:not([disabled]):active{background:',';flex-grow:0;height:2.5rem;position:relative;user-select:none;width:5rem;min-width:5rem;transition:filter\x200.1s\x20ease-in-out;&:disabled{opacity:0.5;}&:not(:disabled):hover{filter:brightness(1.25);}','setImageFxResult','error','REMIX','sc-849db9c-3','redo','imagefx_refinement_model_label','image_fx_clear_mask_button_text','lastMaskedEditImage','background:','display:flex;gap:1rem;align-self:center;width:100%;','typography','key',';border-radius:32px;border:1px\x20solid\x20','sc-28749137-0','display:grid;height:100%;gap:0.25rem;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr);','sc-43d791a1-0','Enter','responsive','imagefx_prompt_helper_tab_label','scroll','SAFETY_MODE_STRICT','contentBoxSize','align-items:center;display:flex;flex-direction:column;gap:1rem;height:100%;justify-content:center;text-align:center;padding:1.5rem\x200;','imageFxResults','IMAGE_FX','setBackgroundImageData','imageSegments','isUsingRealtime',';border-radius:8px;height:100%;width:100%;','mutate','aitk-white-75','slideTo','display:flex;flex-direction:row;justify-content:space-between;padding:0\x201.5rem\x201.5rem\x201.5rem;border-bottom:none;@media\x20(min-width:','activeIndex','goToNextImageFxResult','every','EDITING','getCurrentRefineProperties',';&:disabled{background:','display:flex;padding:1rem;flex-direction:column;align-items:flex-start;gap:1rem;border-radius:8px;background:','\x20height:','sc-142e0308-3','sc-867ea774-5','imagefx_fetch_image_error_400','setImageModelInputType','masked_transitions','removeImageFxResultById','sc-43d791a1-1','jpg','sc-c44bf9e2-6','sc-867ea774-1','toolbar_prev_page_button_label','mdTitleSmall','imagefx_refinement_aspect_ratio_subtitle','check','toast_action_error','25zDpGYC','display:flex;flex-direction:column;padding-left:1rem;','sc-16cdb52d-1','content_copy','userImagesDict','align-items:center;display:flex;flex-direction:row;gap:1rem;justify-content:center;padding:10px;text-align:center;','$isMagicWand','useEffect','submitUserPreferences','toDataURL','display:flex;flex-direction:column;','temperature','addDrawingOperation','isEditMode','Couldn\x27t\x20fetch\x20image\x20objects','editor','STYLE','flex:1;','arrow_left_alt','$isImageSegmentEnabled',';resize:none;color:','imagefx_safe_mode_off_label_subheader','imagefx_promptless_prompting_subject','100%','hasOwnProperty','undefined\x20image\x20model\x20type','baseImage','styles','/tools/image-fx','Invalid\x20event\x20type','sort','imageData','){flex-direction:row;}','setHasMask','casino','breakpoints','TOOL_NAME','$isCollapsed',';opacity:unset;','INVERT','src','output','userInput','useSession','componentContours',';border-radius:1.25rem;}','musiclm_refinement_seed','sc-43d791a1-3','\x22\x20fill=\x22white\x22\x20fill-opacity=\x220.25\x22\x20/></svg>','borderBoxSize','inlineSize','scrollTop','display:flex;width:100%;','sc-21d36744-0','){display:flex;padding:1rem;flex-direction:row;gap:0.25rem;flex:1;align-self:stretch;flex-wrap:wrap;}','SUBJECT','imageFX_lottie_bg_player','copy_prompt','spark','MASK_HISTORY_INVERT','width:2.5em;height:2.5em;border-radius:4px;object-fit:cover;','Unknown\x20tab\x20value:\x20','insertNodes','imagefx_redo','setEditHistoryChain','div','sc-8063db87-5','position','0.125rem','@media\x20(max-width:','aitkInput5','prevAspectRatio','sc-867ea774-3','setCurrentRefineProperties','mousemove','fill','an\x20impossible\x20default\x20chip\x20was\x20entered!','$active','find','sc-f0717600-8','flex-grow:1;border-radius:9999px;','border:2px\x20solid\x20','imagefx_enhance_prompt_error','currentThemeColor','image/*','hasShimmer','sc-142e0308-0','parentElement','jsxs','files','aitk-white-90',';color:','createElement'];a17_0x5735=function(){return _0x3a0208;};return a17_0x5735();}(function(_0x1cf35c,_0x11ff53){const _0x5e6ca0=a17_0x1181,_0x38258f=_0x1cf35c();while(!![]){try{const _0x218b6d=-parseInt(_0x5e6ca0(0x486))/0x1*(-parseInt(_0x5e6ca0(0x1ef))/0x2)+parseInt(_0x5e6ca0(0x2fc))/0x3+parseInt(_0x5e6ca0(0x21d))/0x4*(parseInt(_0x5e6ca0(0x383))/0x5)+parseInt(_0x5e6ca0(0x462))/0x6*(-parseInt(_0x5e6ca0(0x424))/0x7)+-parseInt(_0x5e6ca0(0x403))/0x8*(parseInt(_0x5e6ca0(0x4c1))/0x9)+-parseInt(_0x5e6ca0(0x3e0))/0xa+parseInt(_0x5e6ca0(0x311))/0xb*(-parseInt(_0x5e6ca0(0x1ff))/0xc);if(_0x218b6d===_0x11ff53)break;else _0x38258f['push'](_0x38258f['shift']());}catch(_0x32af65){_0x38258f['push'](_0x38258f['shift']());}}}(a17_0x5735,0x4a020),(self['webpackChunk_N_E']=self[a17_0x244221(0x2a1)]||[])['push']([[0x1f9e],{0x5fa5:function(_0x10ff17,_0x3b7c64,_0x1d6ab7){const _0x5049d1=a17_0x244221;(window[_0x5049d1(0x453)]=window[_0x5049d1(0x453)]||[])[_0x5049d1(0x1e2)]([_0x5049d1(0x39f),function(){return _0x1d6ab7(0xa029);}]);},0xa029:function(_0x4276dd,_0x55dab1,_0x2753b3){'use strict';const _0x2f36b9=a17_0x244221;_0x2753b3['r'](_0x55dab1),_0x2753b3['d'](_0x55dab1,{'__N_SSP':function(){return _0x2e1982;},'default':function(){return _0x5a716f;}});var _0xd5434=_0x2753b3(0x14f85),_0x2e2fcc=_0x2753b3(0x2630),_0x547914=_0x2753b3(0x16d49),_0x1fa0ad=_0x2753b3(0xbdc7),_0x2ba428=_0x2753b3(0x10057),_0x5a789d=_0x2753b3(0x2b9b),_0x55f193=_0x2753b3(0x106de),_0x5c6102=_0x2753b3(0x12eb5),_0x21df07=_0x2753b3(0xe12d),_0x59bd68=_0x2753b3(0x161b8),_0x3b8c98=_0x2753b3(0xa2d6),_0x5bbd96=_0x2753b3(0x1f52),_0x3dd8e9=_0x2753b3(0x3f05),_0xd4aac1=_0x2753b3(0x141c4),_0x2282f9=_0x2753b3(0x7faa),_0x1647e9=_0x2753b3(0x7239),_0x452c15=_0x2753b3(0x15f2a),_0xe04d22=_0x2753b3(0xc4a5),_0x24f3b4=_0x2753b3(0x122e3),_0x2b92ec=_0x2753b3(0xc97f),_0x5f5b36=_0x2753b3(0x1519f),_0x49a209=_0x2753b3(0x9bc7),_0x9f08c0=_0x2753b3(0x7837),_0x1de782=_0x2753b3(0x99a4),_0x2cdacc=_0x2753b3(0x10acc),_0x521a7f=_0x2753b3(0x15b81);let _0x276a75=_0x37948e=>{const _0x7b1608=a17_0x1181;let {isLoadingImage:_0x288e05,colorTheme:_0x4ca2d4='BLURPLE'}=_0x37948e;return _0x7b1608(0x39f)!==(0x0,_0x1de782[_0x7b1608(0x405)])()?(0x0,_0xd5434[_0x7b1608(0x4b7)])(_0xd5434[_0x7b1608(0x2b5)],{}):(0x0,_0xd5434[_0x7b1608(0x4b7)])(_0x521a7f['b'],{'colorTheme':_0x4ca2d4,'children':(0x0,_0xd5434[_0x7b1608(0x4b7)])(_0x9f08c0['M'],{'initial':!0x1,'children':_0x288e05&&(0x0,_0xd5434[_0x7b1608(0x3db)])(_0x12b818,{'initial':{'opacity':0x0},'animate':{'opacity':0x1},'exit':{'opacity':0x0},'children':[(0x0,_0xd5434[_0x7b1608(0x4b7)])(_0x50c7d4,{'autoplay':!0x0,'loop':!0x0,'src':_0x2cdacc}),(0x0,_0xd5434['jsx'])(_0x5e305d,{'autoplay':!0x0,'loop':!0x0,'src':_0x2cdacc})]},_0x7b1608(0x3bb))})});},_0x12b818=(0x0,_0x3b8c98['ZP'])(_0x2b92ec['E'][_0x2f36b9(0x3c4)])['withConfig']({'componentId':_0x2f36b9(0x473)})([_0x2f36b9(0x463)]),_0x50c7d4=(0x0,_0x3b8c98['ZP'])(_0x49a209['J5'])[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x342)})(['height:auto;left:-20%;position:absolute;top:-20%;width:80rem;path{fill:',';}'],_0x3e6ff3=>_0x3e6ff3[_0x2f36b9(0x33a)][_0x2f36b9(0x3d6)][_0x2f36b9(0x461)]),_0x5e305d=(0x0,_0x3b8c98['ZP'])(_0x49a209['J5'])[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x217)})([_0x2f36b9(0x3fd),';}'],_0x5a435f=>_0x5a435f[_0x2f36b9(0x33a)][_0x2f36b9(0x3d6)][_0x2f36b9(0x461)]);var _0x1e4468=_0x2753b3(0x16fc5),_0x5d931d=_0x2753b3(0x455),_0x3686fe=_0x2753b3(0x17c23),_0x466bdb=_0x2753b3(0x58aa),_0x81b8=_0x2753b3(0x15829);let _0x5e949b=_0x3242a8=>_0x81b8['PD'][_0x2f36b9(0x3f6)](_0x3242a8[_0x2f36b9(0x499)]);var _0x42d3bd=_0x2753b3(0x15ecd),_0x3dcc09=_0x2753b3(0x3439),_0x84d3a0=_0x2753b3(0x97cf),_0xd41b90=_0x2753b3(0x11cbd),_0x525fd6=_0x2753b3(0x2743),_0x550688=_0x2753b3(0x12ce5),_0xdb0f29=_0x2753b3(0xfbb9),_0x4ba630=_0x2753b3(0x9f97),_0x348c3f=_0x2753b3(0x100a4);let _0x5541dd=_0x4b0b7e=>null==_0x4b0b7e?void 0x0:_0x4b0b7e[_0x2f36b9(0x421)]('2d',{'willReadFrequently':!0x0}),_0x5e362c={'left':0x0,'top':0x0,'x':0x0,'y':0x0,'width':0x0,'height':0x0},_0x3e29bf=[_0x2f36b9(0x434),_0x2f36b9(0x201)],_0x208827=[_0x2f36b9(0x3cd),_0x2f36b9(0x2d0)],_0x422f77=[_0x2f36b9(0x477),_0x2f36b9(0x2c5)],_0x8d0dbc=[_0x2f36b9(0x201),_0x2f36b9(0x2d0),_0x2f36b9(0x2c5)],_0x5660f1=['click',_0x2f36b9(0x201)],_0x5bda2f=_0x24e26d=>{const _0x5b0c3c=_0x2f36b9;let {editor:_0xaf53fb,addDrawingOperation:_0x55c036,setGetMaskDataURL:_0x836e5a,editMode:_0x5f5d7f,setCurrentSegmentClicks:_0x1ef998,deselectDrawingOperation:_0x281706,setInvert:_0x6f8755,setHasMask:_0x365ad8}=(0x0,_0x3dcc09['T'])(_0x8e04e1=>({'editor':_0x8e04e1[_0x5b0c3c(0x392)],'addDrawingOperation':_0x8e04e1[_0x5b0c3c(0x38f)],'setGetMaskDataURL':_0x8e04e1[_0x5b0c3c(0x41f)],'editMode':_0x8e04e1['editMode'],'setCurrentSegmentClicks':_0x8e04e1[_0x5b0c3c(0x417)],'deselectDrawingOperation':_0x8e04e1[_0x5b0c3c(0x488)],'setInvert':_0x8e04e1[_0x5b0c3c(0x212)],'setHasMask':_0x8e04e1[_0x5b0c3c(0x3a4)]})),{drawingOperations:_0x1c5e01,drawingOperationsPointer:_0x5efea8,strokeWidth:_0x3607db,currentImageSegments:_0x2fdf85,currentImageSegmentsBorderImageURL:_0x20ce19,currentSegmentClicks:_0x16ec0d,backgroundImageData:_0x5d93ff,backgroundSegmentId:_0x5b3e98}=_0xaf53fb,{isVisible:_0x4f9f06}=(0x0,_0xd41b90['o'])(),{handleLogEvent:_0x2a9de7}=(0x0,_0xdb0f29['an'])(),{isBelowWidth:_0x418b64}=(0x0,_0x84d3a0['r'])(_0x525fd6['A'][_0x5b0c3c(0x1ea)]),_0x176e8b=(0x0,_0x55f193['useRef'])(null),_0x19d7d3=(0x0,_0x55f193[_0x5b0c3c(0x272)])(null),_0x2f603a=(0x0,_0x55f193['useRef'])(null),_0x591ff2=(0x0,_0x55f193['useRef'])(0x0),_0x17b7fa=(0x0,_0x55f193[_0x5b0c3c(0x272)])(0x0),_0x537b80=(0x0,_0x55f193['useRef'])(!0x1),_0x5eb356=(0x0,_0x55f193[_0x5b0c3c(0x272)])(_0x5e362c),_0x3b2c8c=(0x0,_0x55f193[_0x5b0c3c(0x272)])(_0x5e362c),_0x250a39=(0x0,_0x55f193[_0x5b0c3c(0x272)])({'paths':[],'editMode':_0x5f5d7f,'strokeWidth':_0x3607db}),_0x1e280d=(0x0,_0x55f193[_0x5b0c3c(0x272)])(_0x16ec0d),_0x2ef95e=(0x0,_0x55f193['useRef'])(_0x418b64||window[_0x5b0c3c(0x235)]('(pointer:\x20coarse)')[_0x5b0c3c(0x1e7)]),_0x36ac52=(0x0,_0x55f193['useRef'])(''),_0x4849e6=(0x0,_0x55f193[_0x5b0c3c(0x272)])(_0x3607db),_0xfe28b5=(0x0,_0x55f193[_0x5b0c3c(0x272)])(_0x3607db),_0x432ac0=(0x0,_0x55f193[_0x5b0c3c(0x272)])(_0x5f5d7f),_0x3366af=(0x0,_0x55f193[_0x5b0c3c(0x272)])(_0x1c5e01),_0x116a07=(0x0,_0x55f193['useRef'])(_0x5efea8),_0x5d3641=(0x0,_0x55f193[_0x5b0c3c(0x40b)])(()=>{const _0x304019=_0x5b0c3c;if(_0x176e8b[_0x304019(0x3f9)]){let _0x413b62=_0x176e8b[_0x304019(0x3f9)],_0xfe92bd=_0x5541dd(_0x413b62);_0x36ac52[_0x304019(0x3f9)]=_0x413b62[_0x304019(0x38c)]();let _0x4504d1=document[_0x304019(0x3df)](_0x304019(0x440));_0x4504d1[_0x304019(0x48a)]=_0x413b62['width'],_0x4504d1[_0x304019(0x1eb)]=_0x413b62[_0x304019(0x1eb)];let _0x3e4cb6=_0x5541dd(_0x4504d1);if(!_0xfe92bd||!_0x3e4cb6)throw Error('ctx\x20is\x20null');let _0x1af295=_0xfe92bd['getImageData'](0x0,0x0,_0x5eb356[_0x304019(0x3f9)][_0x304019(0x48a)],_0x5eb356[_0x304019(0x3f9)][_0x304019(0x1eb)]),_0x5a31c4=_0x1af295[_0x304019(0x4aa)];for(let _0x2477d3=0x0;_0x2477d3<_0x5a31c4[_0x304019(0x266)];_0x2477d3+=0x4)_0x5a31c4[_0x2477d3+0x3]!==_0x348c3f['KP']&&(_0x5a31c4[_0x2477d3]=_0x348c3f['Sx']['r'],_0x5a31c4[_0x2477d3+0x1]=_0x348c3f['Sx']['g'],_0x5a31c4[_0x2477d3+0x2]=_0x348c3f['Sx']['b'],_0x5a31c4[_0x2477d3+0x3]=_0x348c3f['KP']);return _0x3e4cb6[_0x304019(0x475)](_0x1af295,0x0,0x0),_0x4504d1[_0x304019(0x38c)]();}return null;},[]),_0x31994b=(0x0,_0x55f193[_0x5b0c3c(0x40b)])(()=>{const _0x4936fa=_0x5b0c3c;if(!_0x176e8b[_0x4936fa(0x3f9)])return;let _0x4c8909=_0x176e8b['current'],_0x52816c=_0x5541dd(_0x4c8909);if(!_0x52816c)throw Error('ctx\x20is\x20null');let _0x41a102=_0x52816c['getImageData'](0x0,0x0,_0x4c8909[_0x4936fa(0x48a)],_0x4c8909[_0x4936fa(0x1eb)])[_0x4936fa(0x4aa)],_0x25f07f=0x0,_0x87cb7a=!0x1;for(let _0x414cf2=0x0;_0x414cf2<_0x41a102['length'];_0x414cf2+=0x4)if(_0x41a102[_0x414cf2]===_0x348c3f['Yf']['r']||_0x41a102[_0x414cf2+0x1]===_0x348c3f['Yf']['g']||_0x41a102[_0x414cf2+0x2]===_0x348c3f['Yf']['b']){if(_0x25f07f<0x64)_0x25f07f+=0x1;else{_0x87cb7a=!0x0;break;}}_0x365ad8(_0x87cb7a);},[_0x365ad8]),_0x17962e=(0x0,_0x55f193[_0x5b0c3c(0x40b)])(()=>{const _0x1b475b=_0x5b0c3c;_0x55c036({'paths':[],'strokeWidth':0x0,'editMode':_0x1b475b(0x3aa)});},[_0x55c036]),_0x4a037a=()=>{const _0x3da37f=_0x5b0c3c;if(_0x176e8b[_0x3da37f(0x3f9)]){let _0x2d8921=_0x176e8b[_0x3da37f(0x3f9)],_0xcef6e3=_0x5541dd(_0x2d8921);if(!_0xcef6e3)throw Error(_0x3da37f(0x1f4));let _0x2da1ea=_0xcef6e3[_0x3da37f(0x4cd)](0x0,0x0,_0x2d8921[_0x3da37f(0x48a)],_0x2d8921['height']);_0xcef6e3[_0x3da37f(0x475)]((0x0,_0x348c3f['tD'])(_0x2da1ea),0x0,0x0);}},_0x12c2ee=(0x0,_0x55f193[_0x5b0c3c(0x40b)])(()=>{const _0x5bcf77=_0x5b0c3c;let _0x5d7170=_0x176e8b[_0x5bcf77(0x3f9)],_0x59eb2f=_0x5541dd(_0x5d7170);if(!_0x5d7170||!_0x59eb2f){console[_0x5bcf77(0x34c)](_0x5bcf77(0x455),{'canvas':_0x5d7170,'ctx':_0x59eb2f});return;}_0x59eb2f[_0x5bcf77(0x1e1)]=_0x5bcf77(0x40a)[_0x5bcf77(0x2f8)](_0x348c3f['Yf']['r'],',\x20')[_0x5bcf77(0x2f8)](_0x348c3f['Yf']['g'],',\x20')[_0x5bcf77(0x2f8)](_0x348c3f['Yf']['b'],')'),_0x59eb2f[_0x5bcf77(0x2c1)]=_0xfe28b5[_0x5bcf77(0x3f9)],_0x59eb2f[_0x5bcf77(0x248)]=_0x5bcf77(0x228),_0x59eb2f[_0x5bcf77(0x48e)]=_0x5bcf77(0x228);let _0x5b7601=_0x2f603a[_0x5bcf77(0x3f9)];if(!_0x5b7601)return;_0x5b7601[_0x5bcf77(0x27d)][_0x5bcf77(0x48a)]=_0x5b7601[_0x5bcf77(0x27d)][_0x5bcf77(0x1eb)]=_0x5bcf77(0x319)===_0x432ac0[_0x5bcf77(0x3f9)]?''['concat'](0x38,'px'):''['concat'](_0xfe28b5[_0x5bcf77(0x3f9)],'px');let _0x4a6498=_0x326968(_0xfe28b5[_0x5bcf77(0x3f9)],_0x432ac0[_0x5bcf77(0x3f9)]);_0x5b7601[_0x5bcf77(0x3ab)]=_0x4a6498;},[]),_0x3aa065=(0x0,_0x55f193[_0x5b0c3c(0x40b)])((_0x58fa05,_0x46cdb1)=>{const _0x25f803=_0x5b0c3c;if(!_0x24e26d)return;let _0x182e42=_0x176e8b[_0x25f803(0x3f9)],_0x27a404=_0x5541dd(_0x182e42);if(!_0x182e42||!_0x27a404){console['error'](_0x25f803(0x455),{'canvas':_0x182e42,'ctx':_0x27a404});return;}let _0x1c83e1=0x0===_0x5eb356['current']['width']?_0x182e42[_0x25f803(0x32e)]:_0x5eb356[_0x25f803(0x3f9)][_0x25f803(0x48a)],_0x4eb812=0x0===_0x5eb356[_0x25f803(0x3f9)][_0x25f803(0x1eb)]?_0x182e42[_0x25f803(0x474)]:_0x5eb356[_0x25f803(0x3f9)][_0x25f803(0x1eb)];_0x27a404[_0x25f803(0x4a2)](0x0,0x0,_0x1c83e1,_0x4eb812),_0x12c2ee(),_0x58fa05['slice'](0x0,_0x46cdb1+0x1)[_0x25f803(0x32f)](_0xd1436e=>{const _0x5dd674=_0x25f803;let {paths:_0xd9da74,strokeWidth:_0x36d939,editMode:_0x9b9c84}=_0xd1436e;switch(_0x9b9c84){case'INVERT':_0x4a037a();break;case _0x5dd674(0x208):{if(!_0x5d93ff)break;let _0x1afb0b=document[_0x5dd674(0x3df)](_0x5dd674(0x440)),_0x5851b4=_0x5541dd(_0x1afb0b);if(!_0x5851b4)throw Error(_0x5dd674(0x1f4));_0x1afb0b['width']=_0x182e42[_0x5dd674(0x48a)],_0x1afb0b[_0x5dd674(0x1eb)]=_0x182e42[_0x5dd674(0x1eb)],_0x5851b4['putImageData'](_0x5d93ff,0x0,0x0),_0x27a404['drawImage'](_0x1afb0b,0x0,0x0,_0x5d93ff[_0x5dd674(0x48a)],_0x5d93ff['height'],0x0,0x0,_0x1c83e1,_0x4eb812);break;}case'MASK_HISTORY_INVERT':{let _0x456de9=document['createElement']('canvas'),_0x413dce=_0x5541dd(_0x456de9);if(!_0x413dce)throw Error('ctx\x20is\x20null');_0x456de9[_0x5dd674(0x48a)]=_0x182e42[_0x5dd674(0x48a)],_0x456de9[_0x5dd674(0x1eb)]=_0x182e42[_0x5dd674(0x1eb)];let _0x5847d0=(_0x413dce=(0x0,_0x348c3f['yd'])(_0x413dce,_0x456de9[_0x5dd674(0x48a)],_0x456de9[_0x5dd674(0x1eb)],_0xd9da74))[_0x5dd674(0x4cd)](0x0,0x0,_0x456de9['width'],_0x456de9[_0x5dd674(0x1eb)]);_0x413dce['putImageData']((0x0,_0x348c3f['tD'])(_0x5847d0),0x0,0x0),_0x27a404[_0x5dd674(0x4ad)](_0x456de9,0x0,0x0,_0x5847d0[_0x5dd674(0x48a)],_0x5847d0[_0x5dd674(0x1eb)],0x0,0x0,_0x1c83e1,_0x4eb812);break;}case _0x5dd674(0x31e):break;default:if(0x0===_0xd9da74['length'])break;_0x27a404['lineWidth']=_0x5dd674(0x319)===_0x9b9c84||_0x5dd674(0x41c)===_0x9b9c84?_0x36d939:_0x36d939*_0x1c83e1,_0xd9da74[_0x5dd674(0x32f)](_0x5a0a7e=>{const _0x1f4966=_0x5dd674;'ERASER'===_0x9b9c84?_0x27a404[_0x1f4966(0x226)]=_0x1f4966(0x29f):_0x27a404[_0x1f4966(0x226)]=_0x1f4966(0x2cb),_0x27a404['beginPath']();let _0x4b4e70=_0x5a0a7e[0x0];_0x27a404['moveTo'](_0x4b4e70['x']*_0x1c83e1,_0x4b4e70['y']*_0x4eb812),_0x1f4966(0x319)!==_0x9b9c84&&_0x1f4966(0x41c)!==_0x9b9c84&&(_0x27a404['lineTo'](_0x4b4e70['x']*_0x1c83e1,_0x4b4e70['y']*_0x4eb812),_0x27a404[_0x1f4966(0x4d1)]());for(let _0x5500e9=0x1;_0x5500e9<_0x5a0a7e[_0x1f4966(0x266)];_0x5500e9++)_0x27a404[_0x1f4966(0x2a8)](_0x5a0a7e[_0x5500e9]['x']*_0x1c83e1,_0x5a0a7e[_0x5500e9]['y']*_0x4eb812);(_0x1f4966(0x319)===_0x9b9c84||_0x1f4966(0x41c)===_0x9b9c84)&&(_0x27a404[_0x1f4966(0x3e6)](),_0x27a404[_0x1f4966(0x313)]=_0x1f4966(0x40a)[_0x1f4966(0x2f8)](_0x348c3f['Yf']['r'],',\x20')['concat'](_0x348c3f['Yf']['g'],',\x20')['concat'](_0x348c3f['Yf']['b'],')'),_0x27a404['fill']()),_0x27a404[_0x1f4966(0x4d1)]();});}}),_0x27a404[_0x25f803(0x2c1)]=_0xfe28b5['current'];},[_0x12c2ee,_0x5d93ff,_0x24e26d]);(0x0,_0x55f193[_0x5b0c3c(0x38a)])(()=>{_0x836e5a(_0x5d3641);},[_0x5d3641,_0x836e5a]),(0x0,_0x55f193[_0x5b0c3c(0x38a)])(()=>{_0x6f8755(_0x17962e);},[_0x17962e,_0x6f8755]),(0x0,_0x55f193[_0x5b0c3c(0x38a)])(()=>{_0x1e280d['current']=_0x16ec0d;},[_0x16ec0d]),(0x0,_0x55f193[_0x5b0c3c(0x38a)])(()=>{const _0x1d405a=_0x5b0c3c;let _0x134df7=_0x19d7d3[_0x1d405a(0x3f9)];_0x134df7&&_0x20ce19&&(_0x134df7[_0x1d405a(0x3ab)]=_0x20ce19);},[_0x20ce19]),(0x0,_0x55f193['useEffect'])(()=>{const _0x6e818a=_0x5b0c3c;var _0x4311e0,_0x5e4813;_0x24e26d&&(_0x3aa065(_0x1c5e01,_0x5efea8),_0x3366af[_0x6e818a(0x3f9)]=_0x1c5e01,_0x116a07['current']=_0x5efea8,(null===(_0x4311e0=_0x3366af[_0x6e818a(0x3f9)]['at'](_0x116a07['current']))||void 0x0===_0x4311e0?void 0x0:_0x4311e0[_0x6e818a(0x1ed)])==='ERASER'||(null===(_0x5e4813=_0x3366af[_0x6e818a(0x3f9)]['at'](_0x116a07[_0x6e818a(0x3f9)]))||void 0x0===_0x5e4813?void 0x0:_0x5e4813[_0x6e818a(0x1ed)])===_0x6e818a(0x31e)?_0x31994b():_0x365ad8(void 0x0));},[_0x1c5e01,_0x5efea8,_0x24e26d,_0x31994b,_0x3aa065,_0x365ad8]),(0x0,_0x55f193[_0x5b0c3c(0x38a)])(()=>{const _0x2d417d=_0x5b0c3c;_0x4849e6['current']=_0x3607db,_0xfe28b5[_0x2d417d(0x3f9)]=0.33*_0x4849e6[_0x2d417d(0x3f9)]*_0x5eb356[_0x2d417d(0x3f9)]['width'],_0x12c2ee();},[_0x3607db,_0x12c2ee]),(0x0,_0x55f193['useEffect'])(()=>{const _0x4bc928=_0x5b0c3c;_0x432ac0[_0x4bc928(0x3f9)]=_0x5f5d7f,_0x12c2ee();},[_0x12c2ee,_0x5f5d7f]),(0x0,_0x55f193['useEffect'])(()=>{const _0x2ab99d=_0x5b0c3c;var _0x23ec7d;if(!_0x24e26d)return;let _0x5a1381=new ResizeObserver(_0x573ae2=>{const _0x413990=a17_0x1181;let _0x23edb8=_0x573ae2[0x0];if(!_0x23edb8)return;let _0xf26cea=_0x23edb8['contentRect'],_0x506efc=_0x176e8b[_0x413990(0x3f9)],_0x546ad8=_0x5541dd(_0x506efc),_0x462ddb=null==_0x506efc?void 0x0:_0x506efc[_0x413990(0x3da)];if(!_0x506efc||!_0x546ad8||!_0x462ddb){console[_0x413990(0x34c)]('canvas,\x20ctx,\x20or\x20parentElement\x20is\x20null',{'canvas':_0x506efc,'ctx':_0x546ad8,'parentElement':_0x462ddb});return;}let _0x500e05=Math[_0x413990(0x2c3)](window['devicePixelRatio']||0x1,0x2);_0x506efc[_0x413990(0x48a)]=_0xf26cea[_0x413990(0x48a)]*_0x500e05,_0x506efc[_0x413990(0x1eb)]=_0xf26cea[_0x413990(0x1eb)]*_0x500e05,_0x546ad8[_0x413990(0x32d)](_0x500e05,_0x500e05),_0x5eb356['current']=_0x506efc[_0x413990(0x253)](),_0x3b2c8c[_0x413990(0x3f9)]=_0x462ddb['getBoundingClientRect'](),_0xfe28b5[_0x413990(0x3f9)]=0.33*_0x4849e6[_0x413990(0x3f9)]*_0x5eb356[_0x413990(0x3f9)][_0x413990(0x48a)],_0x12c2ee(),_0x5eb356[_0x413990(0x3f9)]['width']>0x0?(_0x506efc['width']=_0x5eb356[_0x413990(0x3f9)][_0x413990(0x48a)],_0x506efc[_0x413990(0x1eb)]=_0x5eb356[_0x413990(0x3f9)][_0x413990(0x1eb)],_0x546ad8[_0x413990(0x32d)](_0x5eb356[_0x413990(0x3f9)][_0x413990(0x48a)]/_0x506efc[_0x413990(0x48a)],_0x5eb356[_0x413990(0x3f9)][_0x413990(0x1eb)]/_0x506efc[_0x413990(0x1eb)])):(_0x506efc[_0x413990(0x48a)]=_0x506efc['clientWidth'],_0x506efc[_0x413990(0x1eb)]=_0x506efc['clientHeight'],_0x546ad8[_0x413990(0x32d)](_0x506efc[_0x413990(0x32e)]/_0x506efc[_0x413990(0x48a)],_0x506efc['clientHeight']/_0x506efc[_0x413990(0x1eb)])),_0x3aa065(_0x3366af[_0x413990(0x3f9)],_0x116a07[_0x413990(0x3f9)]);let _0x3459de=_0x19d7d3['current'];_0x3459de&&_0x20ce19&&_0x413990(0x319)===_0x432ac0[_0x413990(0x3f9)]&&(_0x3459de[_0x413990(0x3ab)]=_0x20ce19);});return(null===(_0x23ec7d=_0x176e8b[_0x2ab99d(0x3f9)])||void 0x0===_0x23ec7d?void 0x0:_0x23ec7d[_0x2ab99d(0x3da)])&&_0x5a1381[_0x2ab99d(0x1db)](_0x176e8b[_0x2ab99d(0x3f9)]['parentElement']),()=>{const _0x310529=_0x2ab99d;_0x5a1381[_0x310529(0x324)]();};},[_0x12c2ee,_0x20ce19,_0x24e26d,_0x3aa065]);let _0x5a5b71=(0x0,_0x55f193[_0x5b0c3c(0x40b)])(()=>{const _0x21113d=_0x5b0c3c;_0x24e26d&&(_0x537b80[_0x21113d(0x3f9)]=!0x1,_0x250a39[_0x21113d(0x3f9)][_0x21113d(0x325)][_0x21113d(0x266)]>0x0&&_0x21113d(0x319)!==_0x432ac0[_0x21113d(0x3f9)]&&(_0x55c036(_0x250a39[_0x21113d(0x3f9)]),_0x250a39[_0x21113d(0x3f9)]={'paths':[],'editMode':_0x432ac0['current'],'strokeWidth':_0xfe28b5[_0x21113d(0x3f9)]/_0x5eb356[_0x21113d(0x3f9)][_0x21113d(0x48a)]}));},[_0x55c036,_0x24e26d]);return(0x0,_0x55f193[_0x5b0c3c(0x38a)])(()=>{const _0x111c92=_0x5b0c3c;if(!_0x24e26d)return;let _0x1cf3c2=_0x176e8b[_0x111c92(0x3f9)],_0x1e6953=_0x5541dd(_0x1cf3c2);if(!_0x1cf3c2||!_0x1e6953)throw Error(_0x111c92(0x455));let _0x4dd60d=_0x5f1aa1=>{const _0x137593=_0x111c92;let {x:_0x192612,y:_0x1ed6c6}=_0x4e2638(_0x5f1aa1,_0x5eb356[_0x137593(0x3f9)]['left'],_0x5eb356['current'][_0x137593(0x457)]);if(!(_0x192612<0x0)&&!(_0x192612>_0x5eb356[_0x137593(0x3f9)][_0x137593(0x48a)])&&!(_0x1ed6c6<0x0)&&!(_0x1ed6c6>_0x5eb356[_0x137593(0x3f9)][_0x137593(0x1eb)])&&(_0x537b80[_0x137593(0x3f9)]=!0x0,_0x137593(0x496)===_0x432ac0[_0x137593(0x3f9)]?_0x1e6953[_0x137593(0x226)]=_0x137593(0x29f):_0x1e6953['globalCompositeOperation']=_0x137593(0x2cb),_0x1e6953[_0x137593(0x2ee)](),_0x1e6953[_0x137593(0x274)](_0x192612,_0x1ed6c6),_0x1e6953[_0x137593(0x2a8)](_0x192612+0.001,_0x1ed6c6+0.001),_0x1e6953[_0x137593(0x4d1)](),_0x5eb356[_0x137593(0x3f9)][_0x137593(0x48a)]&&_0x5eb356[_0x137593(0x3f9)][_0x137593(0x1eb)])){let _0x583a14=_0x250a39[_0x137593(0x3f9)][_0x137593(0x325)][0x0]?_0x250a39[_0x137593(0x3f9)]['paths'][0x0]:[];_0x583a14[_0x137593(0x1e2)]({'x':_0x192612/_0x5eb356[_0x137593(0x3f9)]['width'],'y':_0x1ed6c6/_0x5eb356[_0x137593(0x3f9)][_0x137593(0x1eb)]},{'x':(_0x192612+0.001)/_0x5eb356['current']['width'],'y':(_0x1ed6c6+0.001)/_0x5eb356[_0x137593(0x3f9)]['width']}),_0x250a39[_0x137593(0x3f9)]={'paths':[_0x583a14],'editMode':_0x432ac0[_0x137593(0x3f9)],'strokeWidth':_0xfe28b5[_0x137593(0x3f9)]/_0x5eb356[_0x137593(0x3f9)][_0x137593(0x48a)]};}},_0x27cb41=_0x44580f=>{const _0x926817=_0x111c92;let {x:_0x208cec,y:_0x4174d9}=_0x4e2638(_0x44580f,_0x5eb356['current']['left'],_0x5eb356[_0x926817(0x3f9)][_0x926817(0x457)]);if(!_0x537b80[_0x926817(0x3f9)]||_0x208cec<0x0||_0x208cec>_0x5eb356[_0x926817(0x3f9)][_0x926817(0x48a)]||_0x4174d9<0x0||_0x4174d9>_0x5eb356[_0x926817(0x3f9)]['height'])return;let _0x47ddd3=_0x250a39[_0x926817(0x3f9)][_0x926817(0x325)][0x0]?_0x250a39[_0x926817(0x3f9)][_0x926817(0x325)][0x0]['at'](-0x1):void 0x0,_0x469d4e=_0x47ddd3&&_0x926817(0x319)!==_0x250a39[_0x926817(0x3f9)]['editMode']?_0x47ddd3['x']*_0x5eb356[_0x926817(0x3f9)][_0x926817(0x48a)]:_0x208cec,_0x2df8f7=_0x47ddd3&&'MAGIC_WAND'!==_0x250a39[_0x926817(0x3f9)][_0x926817(0x1ed)]?_0x47ddd3['y']*_0x5eb356[_0x926817(0x3f9)][_0x926817(0x1eb)]:_0x4174d9;if(_0x926817(0x496)===_0x432ac0[_0x926817(0x3f9)]?_0x1e6953['globalCompositeOperation']=_0x926817(0x29f):_0x1e6953['globalCompositeOperation']=_0x926817(0x2cb),_0x1e6953['beginPath'](),_0x1e6953[_0x926817(0x274)](_0x469d4e,_0x2df8f7),_0x1e6953[_0x926817(0x2a8)](_0x208cec,_0x4174d9),_0x1e6953['closePath'](),_0x1e6953['stroke'](),_0x5eb356['current'][_0x926817(0x48a)]&&_0x5eb356[_0x926817(0x3f9)]['height']){let _0x2ad8a7=_0x250a39[_0x926817(0x3f9)]['paths'][0x0]?_0x250a39[_0x926817(0x3f9)][_0x926817(0x325)][0x0]:[];_0x2ad8a7[_0x926817(0x1e2)]({'x':_0x208cec/_0x5eb356[_0x926817(0x3f9)]['width'],'y':_0x4174d9/_0x5eb356['current'][_0x926817(0x1eb)]}),_0x250a39[_0x926817(0x3f9)][_0x926817(0x325)]=[_0x2ad8a7];}},_0x4c6172=_0x2ac45f=>{const _0x12070f=_0x111c92;let _0x5edf5d=_0x17b7fa[_0x12070f(0x3f9)]+0x1;_0x17b7fa[_0x12070f(0x3f9)]=_0x5edf5d;let {x:_0x2c8420,y:_0x2a9780}=_0x4e2638(_0x2ac45f,_0x5eb356['current']['left'],_0x5eb356['current']['top']);for(let _0xd07b8 of _0x2fdf85)if(_0xd07b8['contourPoints'][0x0]&&_0x42ab47((_0x2ef95e[_0x12070f(0x3f9)]?_0x2c8420:_0x2c8420-0x1c)/_0x3b2c8c[_0x12070f(0x3f9)][_0x12070f(0x48a)],(_0x2ef95e[_0x12070f(0x3f9)]?_0x2a9780:_0x2a9780-0x1c)/_0x3b2c8c[_0x12070f(0x3f9)]['height'],_0xd07b8['contourPoints'])){if(_0x1e280d['current'][_0x12070f(0x3f6)](_0xd07b8['id'])){_0x281706(_0xd07b8['id']),_0x55c036({'paths':[],'editMode':_0x12070f(0x31e),'strokeWidth':0x0,'segmentId':_0xd07b8['id']});return;}for(let _0x139e25 of _0xd07b8[_0x12070f(0x2e3)]){_0x1e6953[_0x12070f(0x2c1)]=0x1,_0x1e6953[_0x12070f(0x2ee)](),_0x1e6953['moveTo'](_0x139e25[0x0]['x']*_0x5eb356[_0x12070f(0x3f9)][_0x12070f(0x48a)],_0x139e25[0x0]['y']*_0x5eb356[_0x12070f(0x3f9)][_0x12070f(0x1eb)]);for(let _0x1a5b05=0x1;_0x1a5b05<_0x139e25[_0x12070f(0x266)];_0x1a5b05++)_0x1e6953['lineTo'](_0x139e25[_0x1a5b05]['x']*_0x5eb356[_0x12070f(0x3f9)][_0x12070f(0x48a)],_0x139e25[_0x1a5b05]['y']*_0x5eb356[_0x12070f(0x3f9)]['height']);_0x1e6953['closePath'](),_0x1e6953[_0x12070f(0x3ce)](),_0x1e6953[_0x12070f(0x4d1)]();}_0x55c036({'paths':_0xd07b8[_0x12070f(0x2e3)],'editMode':_0x12070f(0x319),'strokeWidth':0x1,'segmentId':_0xd07b8['id']});let _0x17591b=_0x1e280d[_0x12070f(0x3f9)];if(_0x17591b[_0x12070f(0x1e2)](_0xd07b8['id']),_0x1ef998(_0x17591b),!_0x2ef95e['current']){let _0x2a06dc=document[_0x12070f(0x3df)](_0x12070f(0x440));_0x2a06dc[_0x12070f(0x48a)]=_0x1cf3c2[_0x12070f(0x48a)],_0x2a06dc['height']=_0x1cf3c2[_0x12070f(0x1eb)];let _0x5bb0c3=_0x19d7d3[_0x12070f(0x3f9)];_0x5bb0c3&&(_0x5bb0c3['src']=_0x2a06dc[_0x12070f(0x38c)]());}_0x2a9de7([{'event':_0xdb0f29['E_'][_0x12070f(0x278)],'eventProperties':[{'key':_0xdb0f29['Nn']['TOOL_NAME'],'stringValue':_0x550688['Nv'][_0x12070f(0x282)]},{'key':_0xdb0f29['Nn']['IMAGE_SEGMENT_ID'],'stringValue':_0xd07b8['id']},{'key':_0xdb0f29['Nn'][_0x12070f(0x222)],'stringValue':_0x17b7fa[_0x12070f(0x3f9)][_0x12070f(0x33b)]()}]}]),_0x17b7fa[_0x12070f(0x3f9)]=0x0;return;}if(_0x1e280d[_0x12070f(0x3f9)]['includes'](_0x5b3e98))_0x281706(_0x5b3e98),_0x55c036({'paths':[],'editMode':'DESELECT','strokeWidth':0x0,'segmentId':_0x5b3e98});else{_0x55c036({'paths':[[]],'editMode':_0x12070f(0x208),'strokeWidth':0x0,'segmentId':_0x5b3e98});let _0x2f5350=_0x1e280d['current'];_0x2f5350['push'](_0x5b3e98),_0x1ef998(_0x2f5350);}},_0x39becd=_0x4b234c=>{const _0x54f218=_0x111c92;_0x2ef95e[_0x54f218(0x3f9)]=!0x1;let {x:_0x1f8f49,y:_0x5d13bd}=_0x4e2638(_0x4b234c,_0x5eb356['current'][_0x54f218(0x3fb)],_0x5eb356[_0x54f218(0x3f9)][_0x54f218(0x457)]),_0x3af7f0=!0x1;for(let _0x5727e2 of _0x2fdf85)if(_0x5727e2[_0x54f218(0x2e3)][0x0]&&_0x42ab47((_0x1f8f49-0x1c)/_0x3b2c8c[_0x54f218(0x3f9)]['width'],(_0x5d13bd-0x1c)/_0x3b2c8c[_0x54f218(0x3f9)]['height'],_0x5727e2[_0x54f218(0x2e3)])){_0x3af7f0=!0x0;let _0x339545=_0x19d7d3['current'];_0x339545&&(_0x339545[_0x54f218(0x3ab)]=_0x5727e2[_0x54f218(0x27f)]);break;}if(!_0x3af7f0){let _0x423657=_0x19d7d3[_0x54f218(0x3f9)];_0x423657&&_0x20ce19&&(_0x423657[_0x54f218(0x3ab)]=_0x20ce19);}},_0x53e128=()=>{const _0x969451=_0x111c92;let _0x312115=_0x19d7d3[_0x969451(0x3f9)];_0x312115&&_0x20ce19&&(_0x312115[_0x969451(0x3ab)]=_0x20ce19);};'MAGIC_WAND'===_0x5f5d7f?(_0x5660f1['forEach'](_0x56f755=>_0x1cf3c2[_0x111c92(0x47a)](_0x56f755,_0x4c6172,!0x0)),_0x1cf3c2[_0x111c92(0x47a)](_0x111c92(0x3cd),_0x39becd,!0x0),_0x1cf3c2['addEventListener']('mouseout',_0x53e128)):(_0x3e29bf['forEach'](_0x475420=>window[_0x111c92(0x47a)](_0x475420,_0x4dd60d)),_0x208827[_0x111c92(0x32f)](_0x78161a=>window[_0x111c92(0x47a)](_0x78161a,_0x27cb41)),_0x422f77[_0x111c92(0x32f)](_0x4a59f3=>window[_0x111c92(0x47a)](_0x4a59f3,_0x5a5b71)));let _0x20cae0=_0x2d6b47=>{const _0x44138c=_0x111c92;_0x2d6b47[_0x44138c(0x2a4)]===_0x1cf3c2&&_0x2d6b47[_0x44138c(0x207)]();};return _0x8d0dbc['forEach'](_0xcde6b8=>_0x1cf3c2[_0x111c92(0x47a)](_0xcde6b8,_0x20cae0,!0x0)),()=>{const _0x4f54a0=_0x111c92;_0x3e29bf['forEach'](_0x45002c=>window[_0x4f54a0(0x250)](_0x45002c,_0x4dd60d)),_0x208827[_0x4f54a0(0x32f)](_0xe2773=>window['removeEventListener'](_0xe2773,_0x27cb41)),_0x422f77[_0x4f54a0(0x32f)](_0x3f9349=>window[_0x4f54a0(0x250)](_0x3f9349,_0x5a5b71)),_0x8d0dbc[_0x4f54a0(0x32f)](_0x2abc85=>_0x1cf3c2[_0x4f54a0(0x250)](_0x2abc85,_0x20cae0,!0x0)),_0x5660f1[_0x4f54a0(0x32f)](_0x5ec5d4=>_0x1cf3c2[_0x4f54a0(0x250)](_0x5ec5d4,_0x4c6172,!0x0)),_0x1cf3c2[_0x4f54a0(0x250)](_0x4f54a0(0x3cd),_0x39becd,!0x0),_0x1cf3c2[_0x4f54a0(0x250)](_0x4f54a0(0x26e),_0x53e128);};},[_0x24e26d,_0x5a5b71,_0x2fdf85,_0x55c036,_0x5f5d7f,_0x2a9de7,_0x20ce19,_0x1ef998,_0x281706,_0x5b3e98]),(0x0,_0x55f193['useEffect'])(()=>{const _0x1aa14e=_0x5b0c3c;_0x4f9f06&&_0x3aa065(_0x3366af['current'],_0x116a07[_0x1aa14e(0x3f9)]);},[_0x4f9f06,_0x3aa065]),(0x0,_0x55f193[_0x5b0c3c(0x38a)])(()=>{const _0xcf2cae=_0x5b0c3c;let _0x2df70a=_0x2f603a['current'],_0xf63cec=_0x176e8b['current'];if(!_0x2df70a||!_0xf63cec)return;let _0x58cbaf=_0x3bad94=>{const _0x9f799e=a17_0x1181;let {x:_0xb98970,y:_0x43979a}=_0x4e2638(_0x3bad94),_0x1b7252=_0x9f799e(0x319)===_0x432ac0[_0x9f799e(0x3f9)]?0x1c:0x0;if(_0xb98970<_0x5eb356['current']['left']-_0x1b7252||_0xb98970>_0x5eb356[_0x9f799e(0x3f9)][_0x9f799e(0x3fb)]+_0x5eb356[_0x9f799e(0x3f9)][_0x9f799e(0x48a)]+_0x1b7252||_0x43979a<_0x5eb356['current'][_0x9f799e(0x457)]-_0x1b7252||_0x43979a>_0x5eb356[_0x9f799e(0x3f9)][_0x9f799e(0x457)]+_0x5eb356['current']['height']+_0x1b7252){_0x2df70a[_0x9f799e(0x27d)][_0x9f799e(0x21c)]=_0x9f799e(0x450),_0x5a5b71();return;}_0x2df70a[_0x9f799e(0x27d)][_0x9f799e(0x21c)]='';let _0x3e005e=_0x5eb356[_0x9f799e(0x3f9)][_0x9f799e(0x3fb)],_0x598710=_0x5eb356['current'][_0x9f799e(0x457)],_0x29cc46=(_0x9f799e(0x319)===_0x432ac0['current']?0x38:_0xfe28b5[_0x9f799e(0x3f9)])/0x2;_0x2df70a['style'][_0x9f799e(0x3fb)]=''[_0x9f799e(0x2f8)](_0xb98970-_0x3e005e-_0x29cc46,'px'),_0x2df70a[_0x9f799e(0x27d)][_0x9f799e(0x457)]=''['concat'](_0x43979a-_0x598710-_0x29cc46,'px');},_0x47e6be=()=>{const _0x1ec5c5=a17_0x1181;let _0x2cbb4b=_0x2f603a[_0x1ec5c5(0x3f9)];if(!_0x2cbb4b)return;let _0x41df4b=_0x591ff2[_0x1ec5c5(0x3f9)],_0x3b3b56=document['documentElement']['scrollTop'],_0x58268e=parseInt(getComputedStyle(_0x2cbb4b)[_0x1ec5c5(0x457)]);_0x2cbb4b['style']['top']=''[_0x1ec5c5(0x2f8)](_0x58268e+(_0x3b3b56-_0x41df4b),'px'),_0x591ff2['current']=_0x3b3b56;};return _0x208827[_0xcf2cae(0x32f)](_0x4f0d3f=>window[_0xcf2cae(0x47a)](_0x4f0d3f,_0x58cbaf)),window[_0xcf2cae(0x47a)](_0xcf2cae(0x35e),_0x47e6be),()=>{const _0x4152d8=_0xcf2cae;_0x208827[_0x4152d8(0x32f)](_0x620288=>window['removeEventListener'](_0x620288,_0x58cbaf)),window['removeEventListener'](_0x4152d8(0x35e),_0x47e6be);};},[_0x5a5b71]),{'canvasRef':_0x176e8b,'cursorRef':_0x2f603a,'segmentImageRef':_0x19d7d3,'isTouchDevice':_0x2ef95e,'canvasMaskDataUrl':_0x36ac52};},_0x4e2638=function(_0x5455cc){const _0x1a0e5f=_0x2f36b9;var _0x925551,_0x1abfd8,_0x134824,_0x28a955;let _0x5946ce=arguments['length']>0x1&&void 0x0!==arguments[0x1]?arguments[0x1]:0x0,_0x44a8bf=arguments[_0x1a0e5f(0x266)]>0x2&&void 0x0!==arguments[0x2]?arguments[0x2]:0x0,_0xa86461=0x0,_0x752958=0x0;if(_0x5455cc instanceof MouseEvent)_0xa86461=_0x5455cc[_0x1a0e5f(0x2f0)],_0x752958=_0x5455cc[_0x1a0e5f(0x2ad)]+(null===(_0x1abfd8=document)||void 0x0===_0x1abfd8?void 0x0:null===(_0x925551=_0x1abfd8[_0x1a0e5f(0x418)])||void 0x0===_0x925551?void 0x0:_0x925551[_0x1a0e5f(0x3b6)]);else{if(_0x5455cc instanceof TouchEvent){let _0x294999=_0x5455cc[_0x1a0e5f(0x211)][0x0];_0x294999&&(_0xa86461=_0x294999[_0x1a0e5f(0x2f0)],_0x752958=_0x294999['clientY']+(null===(_0x28a955=document)||void 0x0===_0x28a955?void 0x0:null===(_0x134824=_0x28a955[_0x1a0e5f(0x418)])||void 0x0===_0x134824?void 0x0:_0x134824['scrollTop']));}else throw Error(_0x1a0e5f(0x3a0));}return{'x':_0xa86461-_0x5946ce,'y':_0x752958-_0x44a8bf};},_0x326968=(_0x37b50f,_0xc31949)=>{const _0x3deceb=_0x2f36b9;let _0x20a8c9=_0x37b50f-0x2,_0x220693=_0x20a8c9+0x2,_0xe215ae=encodeURIComponent(_0x3deceb(0x496)===_0xc31949?_0x3deceb(0x321)[_0x3deceb(0x2f8)](_0x220693,_0x3deceb(0x2d8))[_0x3deceb(0x2f8)](_0x220693,'\x22><circle\x20cx=\x22')[_0x3deceb(0x2f8)](_0x220693/0x2,_0x3deceb(0x295))[_0x3deceb(0x2f8)](_0x220693/0x2,_0x3deceb(0x347))[_0x3deceb(0x2f8)](_0x20a8c9/0x2,_0x3deceb(0x304))[_0x3deceb(0x2f8)](0x2,'\x22\x20fill=\x22white\x22\x20fill-opacity=\x220.25\x22\x20/><line\x20x1=\x22')[_0x3deceb(0x2f8)](_0x220693/0x2-_0x20a8c9/0xa,_0x3deceb(0x26a))['concat'](_0x220693/0x2,_0x3deceb(0x4c3))[_0x3deceb(0x2f8)](_0x220693/0x2+_0x20a8c9/0xa,_0x3deceb(0x25c))[_0x3deceb(0x2f8)](_0x220693/0x2,_0x3deceb(0x304))[_0x3deceb(0x2f8)](0x2,_0x3deceb(0x279)):_0x3deceb(0x321)['concat'](_0x220693,'\x22\x20height=\x22')['concat'](_0x220693,_0x3deceb(0x40d))[_0x3deceb(0x2f8)](_0x220693/0x2,_0x3deceb(0x295))[_0x3deceb(0x2f8)](_0x220693/0x2,'\x22\x20r=\x22')[_0x3deceb(0x2f8)](_0x20a8c9/0x2,_0x3deceb(0x304))[_0x3deceb(0x2f8)](0x2,_0x3deceb(0x3b3)));return _0x3deceb(0x319)===_0xc31949?(0x0,_0x4ba630['AC'])(_0x3deceb(0x3f4)):_0x3deceb(0x27b)['concat'](_0xe215ae);},_0x353016=(_0x181d76,_0x3501d3,_0x5487a8)=>{const _0x1b715d=_0x2f36b9;let _0x27666c=!0x1;for(let _0x286259=0x0,_0x2b9691=_0x5487a8[_0x1b715d(0x266)]-0x1;_0x286259<_0x5487a8['length'];_0x2b9691=_0x286259++)if(_0x5487a8&&_0x5487a8[_0x286259]&&_0x5487a8[_0x2b9691]){let _0xa9e845=_0x5487a8[_0x286259]['x'],_0x1f5bb1=_0x5487a8[_0x286259]['y'],_0x3bb873=_0x5487a8[_0x2b9691]['x'],_0x358264=_0x5487a8[_0x2b9691]['y'];_0x1f5bb1>_0x3501d3!=_0x358264>_0x3501d3&&_0x181d76<(_0x3bb873-_0xa9e845)*(_0x3501d3-_0x1f5bb1)/(_0x358264-_0x1f5bb1)+_0xa9e845&&(_0x27666c=!_0x27666c);}return _0x27666c;},_0x42ab47=(_0xb3cc4e,_0x1ccbc6,_0x5950ef)=>_0x5950ef['some'](_0x42c17d=>_0x353016(_0xb3cc4e,_0x1ccbc6,_0x42c17d));var _0x2d610e=_0x2753b3(0x1217e),_0x5a0d6d=_0x2753b3(0xd419),_0x43ba67=_0x2753b3(0x13e05);let _0x54f2ad=(0x0,_0x55f193[_0x2f36b9(0x1f5)])((_0x594a1c,_0x2b8a7e)=>{const _0x16b115=_0x2f36b9;let {className:_0x155cd1,isLoadingImages:_0x2919eb,isLoadingSegments:_0x16d996}=_0x594a1c,{editor:_0x4dc4f7,editMode:_0x50d6bd}=(0x0,_0x3dcc09['T'])(_0x10f686=>({'editor':_0x10f686[_0x16b115(0x392)],'editMode':_0x10f686[_0x16b115(0x1ed)]})),_0x2d63fa=(0x0,_0x42d3bd['hO'])(),{canvasRef:_0x415627,cursorRef:_0x4d535a,segmentImageRef:_0x54680a,isTouchDevice:_0x74b9d9,canvasMaskDataUrl:_0x3da263}=_0x5bda2f(_0x2d63fa),_0x55b376=_0x43ba67['qV'],{strokeWidth:_0x2af121}=_0x4dc4f7,[_0x97129b,_0x578d23]=(0x0,_0x55f193[_0x16b115(0x294)])(!0x1),[_0x354392,_0x153498]=(0x0,_0x1fa0ad['KO'])(_0x2d610e['DO']),_0x497f77=(0x0,_0x55f193[_0x16b115(0x272)])(_0x4dc4f7[_0x16b115(0x39d)]);return((0x0,_0x55f193[_0x16b115(0x38a)])(()=>{if(!_0x97129b)return;let _0x266493=setTimeout(()=>{_0x578d23(!0x1);},0x1f4);return()=>{clearTimeout(_0x266493);};},[_0x354392,_0x97129b]),_0x4dc4f7[_0x16b115(0x39d)])?(0x0,_0xd5434['jsxs'])(_0xb81edf,{'ref':_0x2b8a7e,'$size':_0x2af121,'$loadingImages':_0x2919eb,'className':_0x155cd1,'children':[(0x0,_0xd5434[_0x16b115(0x4b7)])(_0x1d0fea,{'$isTransitioning':_0x97129b,'onLayoutAnimationStart':()=>{_0x578d23(!0x0);},'onLayoutAnimationComplete':()=>{const _0x382b7e=_0x16b115;var _0x2dd21d;_0x578d23(!0x1),_0x153498({'layoutId':null===(_0x2dd21d=_0x4dc4f7[_0x382b7e(0x39d)])||void 0x0===_0x2dd21d?void 0x0:_0x2dd21d[_0x382b7e(0x42d)]});},'onLayoutMeasure':_0x13ccd0=>{const _0x10faa9=_0x16b115;var _0x57d83a;let _0x23a74c=null===(_0x57d83a=_0x354392['layoutMeasure'])||void 0x0===_0x57d83a?void 0x0:_0x57d83a[_0x10faa9(0x3f9)];_0x97129b&&_0x23a74c&&_0x13ccd0['x'][_0x10faa9(0x2c3)]===_0x23a74c['x'][_0x10faa9(0x2c3)]&&_0x13ccd0['x']['max']===_0x23a74c['x'][_0x10faa9(0x254)]&&_0x13ccd0['y'][_0x10faa9(0x2c3)]===_0x23a74c['y'][_0x10faa9(0x2c3)]&&_0x13ccd0['y']['max']===_0x23a74c['y'][_0x10faa9(0x254)]&&_0x578d23(!0x1);},'layoutId':_0x4dc4f7[_0x16b115(0x39d)][_0x16b115(0x42d)],'alt':'','src':_0x4dc4f7['baseImage'][_0x16b115(0x1e6)]}),_0x2919eb&&(0x0,_0xd5434['jsx'])(_0x132e7a,{'$isHidden':_0x97129b,'$canvasMaskDataUrl':_0x3da263[_0x16b115(0x3f9)],'$hasShimmer':!0x0,'$isMoreOpaque':!0x1}),_0x16d996&&(0x0,_0xd5434[_0x16b115(0x4b7)])(_0x132e7a,{'$isHidden':_0x97129b,'$hasShimmer':!0x0,'$isMoreOpaque':!0x0}),_0x55b376&&(0x0,_0xd5434['jsx'])(_0x1509f5,{'$isHidden':_0x97129b||_0x16d996||_0x2919eb||_0x16b115(0x319)!==_0x50d6bd,'ref':_0x54680a,'alt':'','src':_0x54680a&&_0x54680a[_0x16b115(0x3f9)]?_0x54680a['current'][_0x16b115(0x3ab)]:_0x4dc4f7[_0x16b115(0x39d)]['imageSrc']}),(0x0,_0xd5434[_0x16b115(0x4b7)])(_0x4fa47e,{'$isHidden':_0x97129b,'ref':_0x415627}),(0x0,_0xd5434[_0x16b115(0x4b7)])(_0x3bc381,{'$isHidden':_0x2919eb||_0x16d996||_0x74b9d9[_0x16b115(0x3f9)]&&_0x16b115(0x319)===_0x50d6bd,'$isMagicWand':'MAGIC_WAND'===_0x50d6bd,'ref':_0x4d535a,'alt':''})]}):!_0x2d63fa&&_0x497f77['current']?(0x0,_0xd5434[_0x16b115(0x4b7)])(_0xb81edf,{'ref':_0x2b8a7e,'$size':_0x2af121,'$loadingImages':_0x2919eb,'className':_0x155cd1,'children':(0x0,_0xd5434[_0x16b115(0x4b7)])(_0x1d0fea,{'$isTransitioning':!0x0,'layoutId':_0x497f77['current'][_0x16b115(0x42d)],'alt':'','src':_0x497f77[_0x16b115(0x3f9)][_0x16b115(0x1e6)]})}):null;}),_0xb81edf=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x3d9)})([_0x2f36b9(0x33e),_0x2f36b9(0x338)],_0x4ffd86=>_0x4ffd86['$loadingImages']&&(0x0,_0x3b8c98['iv'])(['cursor:pointer;pointer-events:none;'])),_0x1d0fea=(0x0,_0x3b8c98['ZP'])(_0x2b92ec['E'][_0x2f36b9(0x4b4)])[_0x2f36b9(0x410)]({'componentId':'sc-142e0308-1'})(['position:absolute;width:100%;height:100%;border-radius:8px;user-select:none;',''],_0x411088=>_0x411088[_0x2f36b9(0x3e9)]&&(0x0,_0x3b8c98['iv'])(['opacity:1\x20!important;'])),_0x132e7a=(0x0,_0x3b8c98['ZP'])(_0x5a0d6d['pl'])[_0x2f36b9(0x410)]({'componentId':'sc-142e0308-2'})([_0x2f36b9(0x44a),';','\x20animation:blurInOut\x204s\x20linear\x20infinite;@keyframes\x20blurInOut{0%{backdrop-filter:blur(0px);-webkit-backdrop-filter:blur(0px);}50%{backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);}100%{backdrop-filter:blur(0px);-webkit-backdrop-filter:blur(0px);}}'],_0x4bded9=>_0x4bded9['$isHidden']?0x0:0x1,_0x564056=>_0x564056[_0x2f36b9(0x2af)]&&(0x0,_0x3b8c98['iv'])(['mask-image:url(',_0x2f36b9(0x28c),_0x2f36b9(0x290)],_0x564056[_0x2f36b9(0x2af)],_0x564056[_0x2f36b9(0x2af)])),_0x4fa47e=(0x0,_0x3b8c98['ZP'])(_0x2b92ec['E'][_0x2f36b9(0x440)])[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x374)})([_0x2f36b9(0x43e),';'],_0x3c5a9e=>_0x3c5a9e[_0x2f36b9(0x26d)]?0x0:0.4),_0x1509f5=(0x0,_0x3b8c98['ZP'])(_0x2b92ec['E'][_0x2f36b9(0x4b4)])['withConfig']({'componentId':'sc-142e0308-4'})([_0x2f36b9(0x323),';',''],_0x4115ea=>_0x4115ea[_0x2f36b9(0x26d)]?0x0:0x1,_0x257d0a=>_0x257d0a['$isHidden']&&(0x0,_0x3b8c98['iv'])([_0x2f36b9(0x483)])),_0x3bc381=_0x3b8c98['ZP']['img'][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x479)})([_0x2f36b9(0x1e3),'\x20',''],_0x35c5ed=>_0x35c5ed['$isHidden']&&(0x0,_0x3b8c98['iv'])([_0x2f36b9(0x483)]),_0x374d10=>_0x374d10[_0x2f36b9(0x389)]&&(0x0,_0x3b8c98['iv'])(['mask-image:url(',');-webkit-mask-image:url(',_0x2f36b9(0x285)],(0x0,_0x4ba630['AC'])('/icons/magic-wand-cursor.svg'),(0x0,_0x4ba630['AC'])(_0x2f36b9(0x3f4))));var _0x1422b0=_0x2753b3(0x644b),_0x17c538=_0x2753b3['n'](_0x1422b0),_0x61a4b7=_0x2753b3(0x18266),_0x1677ac=_0x2753b3(0x8d5),_0x3cac69=_0x2753b3(0xec9d),_0x272b7b=_0x2753b3(0x1432d);let _0xa68f06=(0x0,_0x55f193[_0x2f36b9(0x1f5)])((_0x38ec46,_0x580320)=>{const _0x22ba84=_0x2f36b9;var _0x665c01,_0x28a7c0;let {imageFxCarouselSwiperRef:_0x3f6c0a,images:_0x67f3d6,className:_0xa59282}=_0x38ec46,[_0x1255d7]=(0x0,_0x1fa0ad['KO'])(_0x2d610e['jV']),{t:_0x1705f4}=(0x0,_0x2ba428['$G'])(),_0x303fc7=(0x0,_0x55f193[_0x22ba84(0x272)])(null),{setActiveCarouselIndex:_0x4c854a,activeCarouselIndex:_0x886c5f,getCurrentImageFxResult:_0x314844}=(0x0,_0x3dcc09['T'])(_0x4cc1ee=>({'setActiveCarouselIndex':_0x4cc1ee[_0x22ba84(0x492)],'activeCarouselIndex':_0x4cc1ee['activeCarouselIndex'],'getCurrentImageFxResult':_0x4cc1ee['getCurrentImageFxResult']}));(0x0,_0x55f193[_0x22ba84(0x38a)])(()=>{const _0x331b09=_0x22ba84;var _0x5db5bf;null==_0x3f6c0a||null===(_0x5db5bf=_0x3f6c0a[_0x331b09(0x3f9)])||void 0x0===_0x5db5bf||_0x5db5bf[_0x331b09(0x3ea)][_0x331b09(0x36a)](_0x886c5f);},[_0x886c5f,_0x3f6c0a]);let _0x1e836e=_0x67f3d6['some'](_0x55709d=>_0x5e949b(_0x55709d)&&_0x55709d[_0x22ba84(0x3a2)]),_0x4e6187=_0x67f3d6[_0x22ba84(0x46b)](_0x32ef13=>_0x5e949b(_0x32ef13)&&_0x32ef13[_0x22ba84(0x3a2)]),_0x491387=_0x1e836e?_0x4e6187:_0x67f3d6,_0x2e922e=(0x0,_0x3cac69['N'])(_0x5adbd4=>{const _0x52341f=_0x22ba84;for(let _0x55c89b=0x0;_0x55c89b<_0x5adbd4['length'];_0x55c89b++){var _0xe8723d,_0xe64738,_0x2d02af;let _0x5a785d=null===(_0xe8723d=_0x5adbd4[_0x55c89b])||void 0x0===_0xe8723d?void 0x0:_0xe8723d[_0x52341f(0x2a4)];if(_0x52341f(0x4b0)===_0x5a785d[_0x52341f(0x230)]){let {width:_0x3f8b1f,height:_0x1fb63d}=window[_0x52341f(0x485)](_0x5a785d),_0x5b5f35=Number(_0x3f8b1f)/Number(_0x1fb63d);_0x5a785d['dataset']['prevAspectRatio']!==_0x5b5f35['toString']()&&(_0x5a785d[_0x52341f(0x2f7)][_0x52341f(0x3ca)]=_0x5b5f35['toString'](),null===(_0xe64738=_0x3f6c0a[_0x52341f(0x3f9)])||void 0x0===_0xe64738||_0xe64738['swiper'][_0x52341f(0x3e7)](),null===(_0x2d02af=_0x303fc7['current'])||void 0x0===_0x2d02af||_0x2d02af[_0x52341f(0x324)]());break;}}},0x32),_0xe02f1c=(0x0,_0x55f193[_0x22ba84(0x40b)])(_0x5076e5=>{const _0x151e34=_0x22ba84;_0x5076e5&&(_0x303fc7[_0x151e34(0x3f9)]&&_0x303fc7[_0x151e34(0x3f9)][_0x151e34(0x324)](),_0x303fc7[_0x151e34(0x3f9)]=new MutationObserver(_0x2e922e),_0x303fc7[_0x151e34(0x3f9)]['observe'](_0x5076e5,{'attributes':!0x0,'attributeFilter':[_0x151e34(0x27d)],'subtree':!0x0}));},[_0x2e922e]);return(0x0,_0x55f193[_0x22ba84(0x38a)])(()=>()=>{const _0x38b1ca=_0x22ba84;_0x303fc7[_0x38b1ca(0x3f9)]&&_0x303fc7[_0x38b1ca(0x3f9)][_0x38b1ca(0x324)]();},[]),(0x0,_0xd5434['jsx'])(_0x1701cf,{'ref':_0x580320,'className':_0xa59282,'children':(0x0,_0xd5434[_0x22ba84(0x3db)])(_0x1b547f,{'children':[(0x0,_0xd5434[_0x22ba84(0x4b7)])(_0x1233bd,{'$orientation':(null===(_0x28a7c0=_0x314844())||void 0x0===_0x28a7c0?void 0x0:null===(_0x665c01=_0x28a7c0[_0x22ba84(0x345)])||void 0x0===_0x665c01?void 0x0:_0x665c01[_0x22ba84(0x245)])||'IMAGE_ASPECT_RATIO_SQUARE','ref':_0xe02f1c,'children':(0x0,_0xd5434['jsx'])(_0x1677ac['tq'],{'ref':_0x3f6c0a,'modules':[_0x61a4b7['N1']],'slidesPerView':_0x22ba84(0x1e0),'centeredSlides':!0x0,'spaceBetween':0x4,'keyboard':{'enabled':!0x0},'onSlideChange':_0x3f62e9=>{const _0x363512=_0x22ba84;_0x4c854a(_0x3f62e9[_0x363512(0x36c)]);},'initialSlide':_0x886c5f,'style':{'overflow':_0x22ba84(0x2b4),'height':_0x22ba84(0x39a),'width':_0x22ba84(0x39a)},'children':_0x491387[_0x22ba84(0x413)]((_0x23a228,_0x148f13)=>{const _0x13e663=_0x22ba84;var _0x29038d,_0x2b7cd1;return(0x0,_0xd5434[_0x13e663(0x4b7)])(_0x22d845,{'$orientation':(null===(_0x2b7cd1=_0x314844())||void 0x0===_0x2b7cd1?void 0x0:null===(_0x29038d=_0x2b7cd1[_0x13e663(0x345)])||void 0x0===_0x29038d?void 0x0:_0x29038d['aspectRatio'])||_0x13e663(0x2fd),'onClick':()=>{_0x4c854a(_0x148f13);},'children':(0x0,_0xd5434[_0x13e663(0x4b7)])(_0x4fb4bc,{'className':_0x13e663(0x4b3),..._0x23a228,'shimmerStagger':_0x148f13})},_0x148f13);})})}),(0x0,_0xd5434[_0x22ba84(0x4b7)])(_0x551878,{'children':_0x491387[_0x22ba84(0x413)]((_0x25938e,_0x20772e)=>_0x5e949b(_0x25938e)&&_0x25938e['imageData']?(0x0,_0xd5434[_0x22ba84(0x4b7)])(_0x308e26,{'onClick':()=>{_0x4c854a(_0x20772e);},'children':(0x0,_0xd5434[_0x22ba84(0x4b7)])(_0x33a5c4,{'$color':_0x1255d7,'$isSelected':_0x886c5f===_0x20772e,'src':_0x25938e[_0x22ba84(0x3a2)]['imageSrc'],'alt':_0x1705f4(_0x22ba84(0x46f)),'width':0x50,'height':0x50,'layout':_0x22ba84(0x35c)})},_0x20772e):(0x0,_0xd5434['jsx'])(_0x308e26,{'onClick':()=>{_0x4c854a(_0x20772e);},'children':(0x0,_0xd5434[_0x22ba84(0x4b7)])(_0xa3519c,{'variant':_0x22ba84(0x464),'hasShimmer':!0x1})},_0x20772e))})]})});}),_0x1701cf=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x277)})(['display:flex;height:100%;width:100%;']),_0x1b547f=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)]['withConfig']({'componentId':_0x2f36b9(0x37d)})(['align-items:center;display:flex;flex-direction:column;flex:1;gap:0.25rem;height:100%;justify-content:center;width:100%;']),_0x1233bd=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)]['withConfig']({'componentId':_0x2f36b9(0x333)})([_0x2f36b9(0x3b7),_0x2f36b9(0x373),_0x2f36b9(0x3f3),_0x2f36b9(0x411)],_0x44dc83=>[_0x2f36b9(0x466),_0x2f36b9(0x4d2)][_0x2f36b9(0x3f6)](_0x44dc83[_0x2f36b9(0x442)])&&(0x0,_0x3b8c98['iv'])([_0x2f36b9(0x2db),';'],_0x2f36b9(0x466)===_0x44dc83[_0x2f36b9(0x442)]?0.55:0.7),_0x4076b3=>[_0x2f36b9(0x229),_0x2f36b9(0x1d6),_0x2f36b9(0x2fd)][_0x2f36b9(0x3f6)](_0x4076b3[_0x2f36b9(0x442)])?_0x2f36b9(0x465):_0x2f36b9(0x39a),_0x2ca551=>_0x2ca551['theme'][_0x2f36b9(0x3a6)]['laptop']),_0x4fb4bc=(0x0,_0x3b8c98['ZP'])(_0x466bdb['M'])[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x3cb)})([_0x2f36b9(0x1d5)]),_0x22d845=(0x0,_0x3b8c98['ZP'])(_0x1677ac['o5'])['withConfig']({'componentId':_0x2f36b9(0x26c)})(['max-width:100%;width:100%;',_0x2f36b9(0x337),_0x2f36b9(0x289),'{pointer-events:auto;}&:active{cursor:grabbing;}}'],_0x4534ae=>[_0x2f36b9(0x466),_0x2f36b9(0x4d2)][_0x2f36b9(0x3f6)](_0x4534ae[_0x2f36b9(0x442)])&&(0x0,_0x3b8c98['iv'])([_0x2f36b9(0x2db),';'],_0x2f36b9(0x466)===_0x4534ae[_0x2f36b9(0x442)]?0.55:0.7),_0x4fb4bc,_0x4fb4bc),_0x551878=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)]['withConfig']({'componentId':_0x2f36b9(0x375)})(['display:none;@media\x20(min-width:',_0x2f36b9(0x291)],_0x94f0c7=>_0x94f0c7[_0x2f36b9(0x33a)][_0x2f36b9(0x3a6)][_0x2f36b9(0x1ea)]),_0x308e26=_0x3b8c98['ZP']['button']['withConfig']({'componentId':_0x2f36b9(0x344)})([_0x2f36b9(0x47f),_0x2f36b9(0x3f2),'px;min-width:','px;'],0x50,0x50,0x28),_0x33a5c4=(0x0,_0x3b8c98['ZP'])(_0x17c538())[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x303)})([_0x2f36b9(0x47f),_0x2f36b9(0x4c6),_0x2f36b9(0x4c5),''],0x50,_0x2a71bb=>_0x2a71bb['theme'][_0x2f36b9(0x39e)]['hover-state-fade-in-time'],_0x15b969=>_0x15b969['$isSelected']&&(0x0,_0x3b8c98['iv'])([_0x2f36b9(0x3d4),_0x2f36b9(0x3a9)],_0x272b7b['L2'][_0x15b969[_0x2f36b9(0x47e)]][0x12c])),_0xa3519c=(0x0,_0x3b8c98['ZP'])(_0x466bdb['M'])[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x308)})(['border-radius:4px;']);var _0x323e26=_0x2753b3(0x1581d);let _0x82d504=()=>{const _0x320572=_0x2f36b9;let {t:_0x40b295}=(0x0,_0x2ba428['$G'])(),{setEditorBaseImage:_0x27db08}=(0x0,_0x3dcc09['T'])(_0x5f0c46=>({'setEditorBaseImage':_0x5f0c46['setEditorBaseImage']})),_0x4358b6=_0x43ba67['hb'],_0x3e391e=async _0x504cca=>{_0x27db08({'imageSrc':await _0x35812f(_0x504cca),'mediaKey':'','prompt':'','seed':0x0});},_0x35812f=_0x51315a=>new Promise(_0x4d7a9f=>{const _0x3fa523=a17_0x1181;let _0x5e9f20=new Image();_0x5e9f20[_0x3fa523(0x498)]=()=>{const _0x261074=_0x3fa523;let _0xf3057c=document['createElement'](_0x261074(0x440)),_0x55c9c4=_0xf3057c[_0x261074(0x421)]('2d'),_0x405084=Math[_0x261074(0x2c3)](_0x5e9f20['width'],_0x5e9f20[_0x261074(0x1eb)]),_0x26b69f=(_0x5e9f20[_0x261074(0x48a)]-_0x405084)/0x2,_0x3cafac=(_0x5e9f20['height']-_0x405084)/0x2;_0xf3057c[_0x261074(0x48a)]=_0x405084,_0xf3057c[_0x261074(0x1eb)]=_0x405084,_0x55c9c4&&(_0x55c9c4[_0x261074(0x4ad)](_0x5e9f20,_0x26b69f,_0x3cafac,_0x405084,_0x405084,0x0,0x0,_0x405084,_0x405084),_0x4d7a9f(_0xf3057c['toDataURL']()));},_0x5e9f20['src']=_0x51315a;});if(_0x4358b6)return(0x0,_0xd5434[_0x320572(0x4b7)])(_0x40eec1,{'children':(0x0,_0xd5434['jsxs'])(_0x196a9d,{'children':[(0x0,_0xd5434[_0x320572(0x4b7)])(_0xf7cc57,{'children':_0x40b295(_0x320572(0x2e5))}),(0x0,_0xd5434[_0x320572(0x4b7)])(_0x3ee99a,{'children':_0x40b295(_0x320572(0x31f))}),(0x0,_0xd5434['jsx'])(_0x323e26['G'],{'buttonText':_0x40b295(_0x320572(0x2ab)),'onImageUpload':_0x3e391e})]})});},_0x3ee99a=_0x3b8c98['ZP']['div'][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x2c6)})(['',_0x2f36b9(0x3de),';'],_0x235b42=>_0x235b42[_0x2f36b9(0x33a)][_0x2f36b9(0x355)][_0x2f36b9(0x4bb)],_0x78468c=>_0x78468c[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)][_0x2f36b9(0x406)]),_0x40eec1=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x2c9)})([_0x2f36b9(0x353),_0x2f36b9(0x1f8),_0x2f36b9(0x367)],_0xa71ec2=>_0xa71ec2[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)][_0x2f36b9(0x240)],_0x5262ab=>_0x5262ab['theme'][_0x2f36b9(0x30a)][_0x2f36b9(0x292)]),_0x196a9d=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':'sc-7edc6048-2'})([_0x2f36b9(0x361)]),_0xf7cc57=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x22c)})(['',';color:',';'],_0x5611f7=>_0x5611f7[_0x2f36b9(0x33a)][_0x2f36b9(0x355)][_0x2f36b9(0x40e)],_0x35fd85=>_0x35fd85[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)][_0x2f36b9(0x406)]),_0x28021d=_0xcdd63=>{const _0x39d03b=_0x2f36b9;let {imageFxCarouselSwiperRef:_0x3d9b8,onGridCardClick:_0x4c537f,images:_0x5dc0d0,className:_0x10d5e6,isLoadingImages:_0x120a83,isLoadingSegments:_0x2b3b35}=_0xcdd63,[_0x4f4b36]=(0x0,_0x1fa0ad['KO'])(_0x2d610e['jV']),{isGridMode:_0x22a9f1,isUsingRealtime:_0x32a048,isEditMode:_0x252e9c,realtimeImageFxResult:_0x35299c,setEditorBaseImage:_0x5015ea,imageFxResults:_0x138a2b,setEditMode:_0x4c7a17,getCurrentAspectRatio:_0x53df14,getCurrentImageFxResult:_0x5c59b9}=(0x0,_0x3dcc09['T'])(_0x552c35=>({'isGridMode':_0x552c35[_0x39d03b(0x4a9)],'isUsingRealtime':_0x552c35['isUsingRealtime'],'isEditMode':_0x552c35['isEditMode'],'realtimeImageFxResult':_0x552c35['realtimeImageFxResult'],'setEditorBaseImage':_0x552c35[_0x39d03b(0x204)],'imageFxResults':_0x552c35['imageFxResults'],'setEditMode':_0x552c35[_0x39d03b(0x310)],'getCurrentAspectRatio':_0x552c35[_0x39d03b(0x2e1)],'getCurrentImageFxResult':_0x552c35['getCurrentImageFxResult']})),{handleLogEvent:_0x362df2}=(0x0,_0xdb0f29['an'])(),[_0x2ad47b]=(0x0,_0x1fa0ad['KO'])(_0x2d610e['DO']),_0x2e6d85=_0x43ba67['hb'];return _0x32a048?_0x35299c?(0x0,_0xd5434[_0x39d03b(0x4b7)])(_0x3587a9,{'color':_0x4f4b36,'variant':'EDITING','imageData':_0x35299c,'onEditImage':()=>{_0x5015ea(_0x35299c),_0x4c7a17('BRUSH');}}):(0x0,_0xd5434[_0x39d03b(0x4b7)])(_0x3587a9,{'variant':'EMPTY','defaultAspectRatio':(0x0,_0x348c3f['Td'])(_0x53df14())}):!_0x2e6d85||_0x252e9c||_0x120a83||0x0!==_0x138a2b[_0x39d03b(0x266)]?(0x0,_0xd5434[_0x39d03b(0x4b7)])(_0x24f3b4['A'],{'transition':{'duration':0.5,'type':_0x39d03b(0x215),'bounce':0x0,'opacity':{'duration':_0x2ad47b[_0x39d03b(0x2d1)]?0.2:0x0}},'children':(0x0,_0xd5434[_0x39d03b(0x4b7)])(_0x9f08c0['M'],{'mode':_0x39d03b(0x4d0),'initial':!0x1,'children':_0x252e9c?(0x0,_0xd5434[_0x39d03b(0x4b7)])(_0x345302,{'className':_0x10d5e6,'isLoadingImages':_0x120a83,'isLoadingSegments':_0x2b3b35},_0x39d03b(0x440)):_0x4c537f&&_0x22a9f1?(0x0,_0xd5434[_0x39d03b(0x4b7)])(_0x2ef4d7,{..._0x550688['au'],'className':_0x10d5e6,'children':_0x5dc0d0[_0x39d03b(0x413)]((_0x39e94f,_0x5d045b)=>{const _0x1c9853=_0x39d03b;var _0x7d31f,_0x128293,_0x5ebbaf;return(0x0,_0xd5434[_0x1c9853(0x4b7)])(_0x2ea9bb,{..._0x39e94f,'shimmerStagger':_0x39e94f[_0x1c9853(0x3d8)]?_0x5d045b:void 0x0,'defaultAspectRatio':(0x0,_0x348c3f['Td'])(null!==(_0x5ebbaf=null===(_0x128293=_0x5c59b9())||void 0x0===_0x128293?void 0x0:null===(_0x7d31f=_0x128293[_0x1c9853(0x345)])||void 0x0===_0x7d31f?void 0x0:_0x7d31f[_0x1c9853(0x245)])&&void 0x0!==_0x5ebbaf?_0x5ebbaf:_0x1c9853(0x2fd)),'onClick':()=>{const _0x5284d7=_0x1c9853;var _0x8c5f42;_0x4c537f(_0x5d045b),_0x5e949b(_0x39e94f)&&_0x362df2([{'event':_0xdb0f29['E_'][_0x5284d7(0x3ff)],'eventProperties':[{'key':_0xdb0f29['Nn'][_0x5284d7(0x3a7)],'stringValue':_0x550688['Nv'][_0x5284d7(0x282)]}],'eventMetadata':{'mediaGenerationId':null===(_0x8c5f42=_0x39e94f[_0x5284d7(0x3a2)])||void 0x0===_0x8c5f42?void 0x0:_0x8c5f42[_0x5284d7(0x42d)]}}]);}},_0x5d045b);})},'results'):(0x0,_0xd5434[_0x39d03b(0x4b7)])(_0x2edaff,{..._0x550688['au'],'images':_0x5dc0d0,'imageFxCarouselSwiperRef':_0x3d9b8,'className':_0x10d5e6},_0x39d03b(0x2ca))})}):(0x0,_0xd5434[_0x39d03b(0x4b7)])(_0x82d504,{});},_0x2ef4d7=(0x0,_0x3b8c98['ZP'])(_0x2b92ec['E'][_0x2f36b9(0x3c4)])[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x35a)})([_0x2f36b9(0x359)]),_0x2ea9bb=(0x0,_0x3b8c98['ZP'])(_0x466bdb['M'])[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x37a)})([_0x2f36b9(0x260)]),_0x3587a9=(0x0,_0x3b8c98['ZP'])(_0x466bdb['M'])[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x454)})([_0x2f36b9(0x2ed),'){width:100%;margin:0;}'],_0x14bfc9=>_0x14bfc9['theme']['breakpoints']['laptop']),_0x345302=(0x0,_0x3b8c98['ZP'])(_0x2b92ec['E'][_0x2f36b9(0x306)](_0x54f2ad))[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x3b2)})(['position:relative;z-index:1;aspect-ratio:1\x20/\x201;width:auto;height:100%;']),_0x2edaff=_0x2b92ec['E'][_0x2f36b9(0x306)](_0xa68f06);var _0x3e8d20=_0x2753b3(0x52b2),_0x46433c=_0x2753b3(0x18606);let _0xe424b5=_0x3e61d1=>{const _0x15f2b9=_0x2f36b9;let {leftIcon:_0x2aa79b,leftLabel:_0x3a8fc2,leftIconProps:_0xe98adc,rightIcon:_0x55b17b,rightLabel:_0x60b43b,rightIconProps:_0x31b93f,onLeftClick:_0x134b2e,onRightClick:_0xb0ec9d,labelText:_0x3b4802,color:_0x3fd947}=_0x3e61d1,_0x2f296c=(0x0,_0x55f193[_0x15f2b9(0x2b7)])();return(0x0,_0xd5434[_0x15f2b9(0x4b7)])(_0x521a7f['b'],{'colorTheme':_0x3fd947,'children':(0x0,_0xd5434[_0x15f2b9(0x3db)])(_0x3b94ea,{'children':[(0x0,_0xd5434['jsx'])(_0x283101,{'id':_0x2f296c,'icon':_0x2aa79b,'onClick':_0x134b2e,'iconProps':_0xe98adc,'label':_0x3a8fc2}),(0x0,_0xd5434[_0x15f2b9(0x4b7)])(_0x402049,{'htmlFor':_0x2f296c,'children':_0x3b4802}),(0x0,_0xd5434['jsx'])(_0x283101,{'id':_0x2f296c,'icon':_0x55b17b,'onClick':_0xb0ec9d,'iconProps':_0x31b93f,'label':_0x60b43b})]})});},_0x3b94ea=_0x3b8c98['ZP']['div']['withConfig']({'componentId':'sc-98e55d1f-0'})(['display:flex;align-items:center;justify-content:space-between;gap:0.75rem;padding:0.625rem\x200.75rem;border-radius:1.5rem;border:1px\x20solid\x20',';background:',';',';'],_0x3b182e=>_0x3b182e[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)][_0x2f36b9(0x292)],_0x3d5cf3=>_0x3d5cf3[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)][_0x2f36b9(0x326)],_0x5294ea=>_0x5294ea['theme']['styles']['glass-resting-full-style']),_0x402049=_0x3b8c98['ZP'][_0x2f36b9(0x216)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x33d)})(['',_0x2f36b9(0x3de),';'],_0x38d4fd=>_0x38d4fd[_0x2f36b9(0x33a)][_0x2f36b9(0x355)]['mdLabelLarge'],_0x2e5571=>_0x2e5571[_0x2f36b9(0x33a)][_0x2f36b9(0x3d6)][0x64]),_0x283101=(0x0,_0x3b8c98['ZP'])(_0x46433c['h'])[_0x2f36b9(0x410)]({'componentId':'sc-98e55d1f-2'})([_0x2f36b9(0x32c),_0x2f36b9(0x414),_0x2f36b9(0x31b),_0x2f36b9(0x3b0)],_0x57c3a4=>_0x57c3a4['theme']['currentThemeColor'][0x64],_0x4b9ab8=>_0x4b9ab8['theme'][_0x2f36b9(0x30a)]['aitk-white-15'],_0x429b60=>_0x429b60[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)][_0x2f36b9(0x292)]);var _0x5e3ad1=_0x2753b3(0x16bb5),_0x65f6a3=_0x2753b3(0xdad6),_0x57953e=_0x2753b3(0x7e51),_0x339a6e=_0x2753b3(0xa72e),_0x35f85c=_0x2753b3(0x129ef);let _0x58e058={'onMouseDown':_0x4ba630['uT'],'layout':!0x0,'initial':{'opacity':0x0,'scale':0.8},'animate':{'opacity':0x1,'scale':0x1,'transition':{'type':_0x2f36b9(0x215),'stiffness':0x64,'delay':0.1}},'exit':{'opacity':0x0,'scale':0.8,'transition':{'delay':0.04}}},_0x4726c2=_0x3dde73=>{const _0x1a7910=_0x2f36b9;let {isLoading:_0x3e4f84}=_0x3dde73,[_0x185439]=(0x0,_0x1fa0ad['KO'])(_0x2d610e['jV']),{t:_0x535c9d}=(0x0,_0x2ba428['$G'])(),{handleLogEvent:_0x1ef4db}=(0x0,_0xdb0f29['an'])(),_0x385d84=(0x0,_0x59bd68[_0x1a7910(0x459)])(),_0x37f83e=(0x0,_0x452c15['b1'])(_0x385d84[_0x1a7910(0x4cc)]),[_0x22a282,_0x33cfbf]=(0x0,_0x55f193[_0x1a7910(0x294)])(_0x35f85c['G0']),_0x44e26=_0x124753=>{const _0x581ef7=_0x1a7910;var _0x3af803;let _0x2f1752=null===(_0x3af803=_0x35f85c['Wk']['find'](_0x2d7b8f=>_0x2d7b8f[_0x581ef7(0x30e)]['label']===_0x124753[_0x581ef7(0x216)]))||void 0x0===_0x3af803?void 0x0:_0x3af803['chipOptions'];if(!_0x2f1752)throw Error(_0x581ef7(0x3cf));_0x1ef4db([{'event':_0xdb0f29['E_'][_0x581ef7(0x2f2)],'eventProperties':[{'key':_0xdb0f29['Nn'][_0x581ef7(0x30f)],'stringValue':_0x124753[_0x581ef7(0x216)]},{'key':_0xdb0f29['Nn'][_0x581ef7(0x3a7)],'stringValue':_0x550688['Nv']['IMAGEFX']}]}]);let _0x354fc8={'label':_0x124753['label'],'value':_0x124753[_0x581ef7(0x216)]},_0x539bed=[_0x354fc8,..._0x2f1752['map'](_0x32a570=>({'label':_0x32a570,'value':_0x32a570}))];_0x385d84[_0x581ef7(0x3c1)]([(0x0,_0x57953e['lV'])({'currentOption':_0x354fc8,'options':_0x539bed}),(0x0,_0x452c15['IU'])()],{'at':_0x385d84[_0x581ef7(0x214)]([])}),_0x59bd68[_0x581ef7(0x329)][_0x581ef7(0x2a0)](_0x385d84),_0x5c6102['YR'][_0x581ef7(0x3e5)](_0x385d84,_0x385d84[_0x581ef7(0x214)]([])),_0x33cfbf([..._0x22a282,...(0x0,_0x348c3f['k1'])(0x1,_0x37f83e)]);};return(0x0,_0xd5434[_0x1a7910(0x4b7)])(_0x4b3329,{'$disabled':_0x3e4f84,'children':(0x0,_0xd5434[_0x1a7910(0x3db)])(_0x9f08c0['M'],{'mode':'popLayout','children':[(0x0,_0xd5434[_0x1a7910(0x4b7)])(_0x339a6e['A'],{..._0x58e058,'isSpecial':!0x0,'icon':'refresh','color':_0x185439,'onClick':()=>{const _0x13d2ef=_0x1a7910;_0x33cfbf((0x0,_0x348c3f['k1'])(_0x35f85c['WN'],_0x37f83e)),_0x59bd68[_0x13d2ef(0x329)][_0x13d2ef(0x2a0)](_0x385d84);},'disabled':_0x3e4f84,'children':_0x535c9d(_0x1a7910(0x33f))}),(0x0,_0x348c3f['zc'])({'selectedChipLabels':_0x37f83e,'chipOptions':_0x22a282})[_0x1a7910(0x413)](_0x502397=>(0x0,_0x55f193['createElement'])(_0x339a6e['A'],{..._0x58e058,'key':_0x502397[_0x1a7910(0x216)],'color':_0x185439,'onClick':()=>{_0x44e26(_0x502397);},'disabled':_0x3e4f84},_0x502397['label']))]})});},_0x4b3329=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x21b)})(['',_0x2f36b9(0x23d),_0x2f36b9(0x1df),_0x2f36b9(0x471),_0x2f36b9(0x334)],_0x585e7a=>_0x585e7a[_0x2f36b9(0x33a)][_0x2f36b9(0x355)][_0x2f36b9(0x37f)],_0x765160=>_0x765160[_0x2f36b9(0x22b)]?0.38:0x1,_0x295289=>_0x295289[_0x2f36b9(0x22b)]?'none':_0x2f36b9(0x1e0),_0x599b04=>_0x599b04[_0x2f36b9(0x33a)][_0x2f36b9(0x3a6)]['laptop']);var _0x284de3=_0x2753b3(0x16101);let _0x571395=_0xbca39c=>{const _0x1e3b57=_0x2f36b9;let {onSubmit:_0x512110,onSubmitPromptHelper:_0x50cda3,onSubmitPromptlessPrompting:_0x57d541,isLoading:_0xba35d,isLoadingPromptHelper:_0x25d6d8}=_0xbca39c,[_0x288571]=(0x0,_0x1fa0ad['KO'])(_0x2d610e['jV']),{t:_0x572d63}=(0x0,_0x2ba428['$G'])(),{handleLogEvent:_0xc2d1e2}=(0x0,_0xdb0f29['an'])(),_0x38f3d3=(0x0,_0x284de3['p'])(),_0x2473bf=(0x0,_0x59bd68[_0x1e3b57(0x459)])(),{setProposedAdjustedPrompt:_0x4e66b8}=(0x0,_0x3dcc09['T'])(_0x9a8f13=>({'setProposedAdjustedPrompt':_0x9a8f13[_0x1e3b57(0x255)]})),_0x335be8=(0x0,_0x452c15['Mv'])(_0x2473bf['children']),_0x34b317=!!_0x335be8[_0x1e3b57(0x266)],_0x13badc=_0x2473bf[_0x1e3b57(0x4cc)]['filter'](_0x550d28=>_0x1e3b57(0x296)in _0x550d28&&(null==_0x550d28?void 0x0:_0x550d28[_0x1e3b57(0x296)])===_0x1e3b57(0x320)),_0xedecc4=(null==_0x13badc?void 0x0:_0x13badc[_0x1e3b57(0x266)])>0x0,_0x2fce9b=[{'type':_0x5e3ad1['P']['ICON_BUTTON'],'icon':_0x1e3b57(0x386),'onClick':()=>{const _0x38f99a=_0x1e3b57;(0x0,_0x4ba630['vQ'])(_0x335be8),_0x38f3d3({'text':_0x572d63(_0x38f99a(0x2e9)),'type':_0x550688['$n'][_0x38f99a(0x31c)]});},'label':_0x572d63(_0x1e3b57(0x3bc)),'tooltip':_0x572d63(_0x1e3b57(0x3bc))},{'type':_0x5e3ad1['P'][_0x1e3b57(0x2eb)],'icon':_0x1e3b57(0x2a5),'onClick':()=>{const _0x4ce867=_0x1e3b57;_0xc2d1e2([{'event':_0xdb0f29['E_'][_0x4ce867(0x47d)],'eventProperties':[{'key':_0xdb0f29['Nn'][_0x4ce867(0x3a7)],'stringValue':_0x550688['Nv'][_0x4ce867(0x282)]}]}]),_0x2473bf[_0x4ce867(0x40c)]({'at':{'anchor':_0x2473bf[_0x4ce867(0x497)]([]),'focus':_0x2473bf[_0x4ce867(0x214)]([])}}),_0x4e66b8('');},'label':_0x572d63(_0x1e3b57(0x281)),'tooltip':_0x572d63('imagefx_start_over_button')},..._0x43ba67['i7']&&_0xedecc4?[{'type':_0x5e3ad1['P']['ICON_BUTTON'],'icon':_0x1e3b57(0x3a5),'onClick':()=>{const _0xe30343=_0x1e3b57;_0x4e66b8(''),_0xc2d1e2([{'event':_0xdb0f29['E_']['RANDOMIZE_CHIPS'],'eventProperties':[{'key':_0xdb0f29['Nn'][_0xe30343(0x3a7)],'stringValue':_0x550688['Nv'][_0xe30343(0x282)]}]}]);let _0x3f2c9d=_0x2473bf['children'][_0xe30343(0x413)](_0x1c6d78=>_0xe30343(0x296)in _0x1c6d78&&_0x1c6d78[_0xe30343(0x296)]===_0x2282f9['x'][_0xe30343(0x320)]?(0x0,_0x57953e['Wi'])(_0x1c6d78):_0x1c6d78);_0x2473bf[_0xe30343(0x40c)]({'at':{'anchor':_0x2473bf[_0xe30343(0x497)]([]),'focus':_0x2473bf[_0xe30343(0x214)]([])}}),_0x2473bf['insertNodes'](_0x3f2c9d);},'label':_0x572d63('random_chips'),'tooltip':_0x572d63(_0x1e3b57(0x20a))}]:[]];return(0x0,_0xd5434[_0x1e3b57(0x3db)])(_0xd5434[_0x1e3b57(0x2b5)],{'children':[(0x0,_0xd5434[_0x1e3b57(0x3db)])(_0x39a860,{'children':[_0x34b317?(0x0,_0xd5434[_0x1e3b57(0x4b7)])(_0x3f23d8,{'color':_0x288571,'isDarkMode':!0x0,'items':_0x2fce9b}):(0x0,_0xd5434[_0x1e3b57(0x4b7)])(_0x1e3b57(0x3c4),{}),(0x0,_0xd5434['jsx'])(_0x2581c5,{'onSubmit':_0x512110,'onSubmitPromptHelper':_0x50cda3,'onSubmitPromptlessPrompting':_0x57d541,'isLoading':_0xba35d,'isLoadingPromptHelper':_0x25d6d8})]}),(0x0,_0xd5434[_0x1e3b57(0x4b7)])(_0x4726c2,{'isLoading':_0xba35d})]});},_0x3f23d8=(0x0,_0x3b8c98['ZP'])(_0x5e3ad1['N'])[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x43d)})([_0x2f36b9(0x2b3),_0x2f36b9(0x20d)],_0x52bbee=>_0x52bbee[_0x2f36b9(0x33a)]['colors'][_0x2f36b9(0x240)]),_0x39a860=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x317)})([_0x2f36b9(0x36b),_0x2f36b9(0x4bd),';}'],_0x3a7dae=>_0x3a7dae[_0x2f36b9(0x33a)]['breakpoints'][_0x2f36b9(0x1ea)],_0x1456a9=>_0x1456a9['theme'][_0x2f36b9(0x30a)][_0x2f36b9(0x240)]),_0x2581c5=_0x5df7b9=>{const _0x111e8d=_0x2f36b9;let {isLoading:_0x20ef4d,onSubmit:_0x73dbad,onSubmitPromptHelper:_0x49eb8c,onSubmitPromptlessPrompting:_0x37c911,isLoadingPromptHelper:_0x1abf98}=_0x5df7b9,[_0x1c39ff]=(0x0,_0x1fa0ad['KO'])(_0x2d610e['jV']),{handleLogEvent:_0x57f105}=(0x0,_0xdb0f29['an'])(),{handleLogUserActivity:_0x45680c}=(0x0,_0xdb0f29['pc'])(),_0x28cc1f=(0x0,_0x284de3['p'])(),{t:_0x2e04ba}=(0x0,_0x2ba428['$G'])(),_0x3c5f6a=(0x0,_0x59bd68[_0x111e8d(0x459)])(),{isUsingRealtime:_0x5b99a0,proposedAdjustedPrompt:_0x42f370,realtimeImageFxResult:_0x33c7f1,setProposedAdjustedPrompt:_0x484ad2,isExplicitPromptExpansionEnabled:_0x45a6c2,originalUserPrompt:_0x5c92ce,userImagesDict:_0x4b960c}=(0x0,_0x3dcc09['T'])(_0x141f36=>({'isUsingRealtime':_0x141f36[_0x111e8d(0x366)],'realtimeImageFxResult':_0x141f36['realtimeImageFxResult'],'proposedAdjustedPrompt':_0x141f36['proposedAdjustedPrompt'],'setProposedAdjustedPrompt':_0x141f36['setProposedAdjustedPrompt'],'isExplicitPromptExpansionEnabled':_0x141f36[_0x111e8d(0x428)],'originalUserPrompt':_0x141f36[_0x111e8d(0x26f)],'userImagesDict':_0x141f36['userImagesDict']})),_0x148912=()=>{const _0x371dbc=_0x111e8d;_0x73dbad((0x0,_0x452c15['Mv'])(_0x3c5f6a[_0x371dbc(0x4cc)])),_0x484ad2('');},_0x32b96b=()=>{const _0x15ac24=_0x111e8d;_0x3c5f6a[_0x15ac24(0x40c)]({'at':{'anchor':_0x3c5f6a[_0x15ac24(0x497)]([]),'focus':_0x3c5f6a[_0x15ac24(0x214)]([])}}),_0x3c5f6a[_0x15ac24(0x3c1)]((0x0,_0x452c15['IU'])(_0x5c92ce)),_0x73dbad(_0x5c92ce),_0x484ad2('');},_0x2a015e=(0x0,_0x452c15['Mv'])(_0x3c5f6a[_0x111e8d(0x4cc)]),_0x268b9a=!!_0x2a015e[_0x111e8d(0x266)];if(_0x20ef4d)return(0x0,_0xd5434[_0x111e8d(0x3db)])(_0x43e8ed,{'color':_0x1c39ff,'isDarkMode':!0x0,'disabled':!0x0,'variant':'OUTLINED','children':[(0x0,_0xd5434['jsx'])(_0x65f6a3['$'],{'color':_0x1c39ff,'size':_0x111e8d(0x44f),'borderSize':_0x111e8d(0x3c7)}),(0x0,_0xd5434[_0x111e8d(0x4b7)])(_0x539941,{'children':_0x2e04ba(_0x111e8d(0x3f7))})]});if(_0x1abf98)return(0x0,_0xd5434[_0x111e8d(0x3db)])(_0x43e8ed,{'color':_0x1c39ff,'isDarkMode':!0x0,'disabled':!0x0,'variant':_0x111e8d(0x280),'children':[(0x0,_0xd5434[_0x111e8d(0x4b7)])(_0x65f6a3['$'],{'color':_0x1c39ff,'size':_0x111e8d(0x44f),'borderSize':_0x111e8d(0x3c7)}),(0x0,_0xd5434[_0x111e8d(0x4b7)])(_0x539941,{'children':_0x2e04ba(_0x111e8d(0x35d))})]});if(_0x42f370)return(0x0,_0xd5434['jsx'])(_0xe424b5,{'leftIcon':_0x111e8d(0x381),'leftLabel':_0x2e04ba('imagefx_prompt_helper_confirm_icon_button'),'rightIcon':_0x111e8d(0x456),'rightLabel':_0x2e04ba(_0x111e8d(0x219)),'onLeftClick':()=>{_0x148912();},'onRightClick':()=>{_0x32b96b();},'labelText':_0x2e04ba(_0x111e8d(0x23c)),'color':_0x1c39ff});let _0x14c615=_0x4b960c&&Object[_0x111e8d(0x4a5)](_0x4b960c)['some'](_0x59099b=>''!==_0x59099b[_0x111e8d(0x2e4)]);return _0x268b9a||_0x14c615?(0x0,_0xd5434[_0x111e8d(0x4b7)])(_0x341404,{'icon':_0x111e8d(0x3bd),'iconProps':{'iconSet':_0x111e8d(0x46d)},'color':_0x1c39ff,'variant':_0x111e8d(0x43f),'isDarkMode':!0x0,'onClick':()=>{if(_0x14c615&&_0x37c911){_0x37c911(_0x2a015e);return;}_0x45a6c2&&''===_0x42f370?_0x49eb8c(_0x2a015e):_0x73dbad(_0x2a015e);},'children':(0x0,_0xd5434[_0x111e8d(0x4b7)])(_0x539941,{'children':_0x2e04ba(_0x111e8d(0x284))})}):_0x5b99a0?(0x0,_0xd5434[_0x111e8d(0x4b7)])(_0x341404,{'icon':_0x111e8d(0x41d),'iconProps':{'isOutlined':!0x0},'color':_0x1c39ff,'isDarkMode':!0x0,'variant':_0x111e8d(0x43f),'disabled':!_0x33c7f1,'onClick':()=>{const _0x4a1ef9=_0x111e8d;_0x33c7f1&&(_0x57f105([{'event':_0xdb0f29['E_'][_0x4a1ef9(0x28e)],'eventProperties':[{'key':_0xdb0f29['Nn'][_0x4a1ef9(0x3a7)],'stringValue':_0x550688['Nv']['IMAGEFX']}],'eventMetadata':{'mediaGenerationId':_0x33c7f1['mediaKey']}}]),_0x45680c([{'activityType':_0xdb0f29['IL'][_0x4a1ef9(0x24a)],'mediaKey':_0x33c7f1['mediaKey'],'tool':_0x3dd8e9['mq'][_0x4a1ef9(0x363)]}]),(0x0,_0x4ba630['ox'])({'src':_0x33c7f1[_0x4a1ef9(0x1e6)],'title':_0x4a1ef9(0x449)+_0x33c7f1['prompt'],'extension':_0x4a1ef9(0x37b)}),_0x28cc1f({'text':_0x2e04ba(_0x4a1ef9(0x223)),'type':_0x550688['$n'][_0x4a1ef9(0x31c)]}));},'children':(0x0,_0xd5434[_0x111e8d(0x4b7)])(_0x539941,{'children':_0x2e04ba(_0x111e8d(0x20f))})}):(0x0,_0xd5434[_0x111e8d(0x4b7)])(_0x341404,{'icon':'casino','iconProps':{'isOutlined':!0x0},'color':_0x1c39ff,'isDarkMode':!0x0,'variant':_0x111e8d(0x43f),'onClick':()=>{const _0x24c58d=_0x111e8d;let _0x27d30c=(0x0,_0x35f85c['El'])(),_0x5dfbf4=[{'id':(0x0,_0x4ba630['vV'])(),'type':_0x2282f9['x'][_0x24c58d(0x3ef)],'children':[{'text':_0x27d30c}]}];_0x3c5f6a[_0x24c58d(0x40c)]({'at':{'anchor':_0x3c5f6a[_0x24c58d(0x497)]([]),'focus':_0x3c5f6a[_0x24c58d(0x214)]([])}}),_0x3c5f6a[_0x24c58d(0x3c1)](_0x5dfbf4),_0x73dbad(_0x27d30c),_0x57f105([{'event':_0xdb0f29['E_']['IM_FEELING_LUCKY'],'eventProperties':[{'key':_0xdb0f29['Nn'][_0x24c58d(0x3a7)],'stringValue':_0x550688['Nv'][_0x24c58d(0x282)]}]}]);},'children':(0x0,_0xd5434[_0x111e8d(0x4b7)])(_0x539941,{'children':_0x2e04ba(_0x111e8d(0x2df))})});},_0x539941=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x4c9)})([_0x2f36b9(0x400),_0x2f36b9(0x25f)],_0x30e027=>_0x30e027[_0x2f36b9(0x33a)]['breakpoints'][_0x2f36b9(0x1ea)]),_0x43e8ed=(0x0,_0x3b8c98['ZP'])(_0x3e8d20['zx'])[_0x2f36b9(0x410)]({'componentId':'sc-2519865f-3'})(['@media\x20(min-width:',_0x2f36b9(0x29b)],_0x26b768=>_0x26b768['theme']['breakpoints']['laptop']),_0x341404=(0x0,_0x3b8c98['ZP'])(_0x3e8d20['zx'])[_0x2f36b9(0x410)]({'componentId':'sc-2519865f-4'})([_0x2f36b9(0x3c8),_0x2f36b9(0x1e4)],_0x48f801=>_0x48f801[_0x2f36b9(0x33a)]['breakpoints']['laptop']);var _0x51cbc8=_0x2753b3(0x6a9f);let _0x12b4fa=_0x2bc798=>{const _0x3c6367=_0x2f36b9;let {isLoadingImages:_0x4776c9,isLoadingSegments:_0x2b89b6}=_0x2bc798,{t:_0x147dd4}=(0x0,_0x2ba428['$G'])(),[_0x30febd]=(0x0,_0x1fa0ad['KO'])(_0x2d610e['jV']),{undo:_0x468276,redo:_0x4ccb74,exitAndResetEditor:_0x27c0bb,editor:_0x5bdb32,setEditMode:_0x90d93d,setPendingDrawingOperations:_0x5425fa,getCurrentImageFxResult:_0x18b0db}=(0x0,_0x3dcc09['T'])(_0x34b642=>({'undo':_0x34b642['undo'],'redo':_0x34b642['redo'],'exitAndResetEditor':_0x34b642[_0x3c6367(0x331)],'editor':_0x34b642[_0x3c6367(0x392)],'setEditMode':_0x34b642[_0x3c6367(0x310)],'setPendingDrawingOperations':_0x34b642['setPendingDrawingOperations'],'getCurrentImageFxResult':_0x34b642[_0x3c6367(0x1dd)]})),{drawingOperations:_0x298a8b,drawingOperationsPointer:_0x3205ed}=_0x5bdb32,_0x312755=!!_0x298a8b[_0x3205ed]&&!_0x298a8b['every'](_0x4ec59f=>_0x3c6367(0x496)===_0x4ec59f[_0x3c6367(0x1ed)]),_0x504dbe=!!_0x298a8b[_0x3205ed+0x1]&&!_0x298a8b[_0x3c6367(0x36e)](_0x49a489=>'ERASER'===_0x49a489[_0x3c6367(0x1ed)]);return(0x0,_0xd5434['jsxs'])(_0x625a91,{'children':[(0x0,_0xd5434[_0x3c6367(0x4b7)])(_0x3e8d20['zx'],{'variant':'OUTLINED','icon':'close','isDarkMode':!0x0,'color':_0x30febd,'onClick':()=>{const _0x1ba5fe=_0x3c6367;let _0x3506fb=_0x18b0db();_0x3506fb&&_0x5425fa(_0x298a8b[_0x1ba5fe(0x43a)](0x0,_0x3205ed+0x1),_0x3506fb),_0x27c0bb(),_0x90d93d(_0x1ba5fe(0x4cf));},'children':_0x147dd4('imagefx_exit_edit_mode')}),(0x0,_0xd5434['jsx'])(_0x5e3ad1['N'],{'isDarkMode':!0x0,'color':_0x30febd,'items':[{'type':'ICON_BUTTON','disabled':!_0x312755||_0x4776c9||_0x2b89b6,'icon':_0x3c6367(0x2a7),'label':_0x147dd4('imagefx_undo'),'tooltip':_0x147dd4(_0x3c6367(0x419)),'onClick':()=>_0x468276(),'iconProps':{'iconSet':_0x51cbc8['G'][_0x3c6367(0x46d)]}},{'type':'ICON_BUTTON','disabled':!_0x504dbe||_0x4776c9||_0x2b89b6,'icon':'redo','label':_0x147dd4(_0x3c6367(0x3c2)),'tooltip':_0x147dd4(_0x3c6367(0x3c2)),'onClick':()=>_0x4ccb74(),'iconProps':{'iconSet':_0x51cbc8['G']['GOOGLE_SYMBOLS']}}]})]});},_0x625a91=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x20e)})(['',';border-radius:32px;border:1px\x20solid\x20',_0x2f36b9(0x247),_0x2f36b9(0x29e),_0x2f36b9(0x439),_0x2f36b9(0x343)],_0x2fa94d=>_0x2fa94d[_0x2f36b9(0x33a)][_0x2f36b9(0x39e)][_0x2f36b9(0x495)],_0x4ea907=>_0x4ea907[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)][_0x2f36b9(0x292)],_0x1e4f6c=>_0x1e4f6c[_0x2f36b9(0x33a)]['colors'][_0x2f36b9(0x314)],_0x465384=>_0x465384[_0x2f36b9(0x33a)][_0x2f36b9(0x3a6)][_0x2f36b9(0x1ea)],_0x21f28f=>_0x21f28f[_0x2f36b9(0x33a)]['breakpoints'][_0x2f36b9(0x22f)]);var _0xb7f489=_0x2753b3(0xed59);let _0x1053f7=(0x0,_0x3b8c98['ZP'])(_0x51cbc8['O'])['withConfig']({'componentId':_0x2f36b9(0x4a7)})(['color:',';transition:color\x200.1s\x20ease-in-out;'],_0x420d33=>_0x420d33[_0x2f36b9(0x3d0)]?_0x420d33['theme']['currentThemeColor'][0x2bc]:_0x420d33[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)][_0x2f36b9(0x484)]),_0x2adbf3=(0x0,_0x3b8c98['ZP'])(_0xb7f489['fC'])[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x32a)})([_0x2f36b9(0x2e0),_0x2f36b9(0x34a)],_0x303d9e=>_0x303d9e[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)][_0x2f36b9(0x292)]),_0x1795d8=(0x0,_0x3b8c98['ZP'])(_0xb7f489['bU'])[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x49e)})([_0x2f36b9(0x270),_0x2f36b9(0x1f7)],_0x57cd6f=>_0x57cd6f[_0x2f36b9(0x33a)][_0x2f36b9(0x3d6)][0x12c]),_0x5ee436=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)]['withConfig']({'componentId':_0x2f36b9(0x34e)})([_0x2f36b9(0x482)]),_0x200d82=_0x13de17=>{const _0x539015=_0x2f36b9;let {isLoadingImages:_0x4742d7,isLoadingSegments:_0x18054c}=_0x13de17,[_0x16c19b]=(0x0,_0x1fa0ad['KO'])(_0x2d610e['jV']),_0x34c591=(0x0,_0x59bd68[_0x539015(0x459)])(),{imageFxResults:_0x54139b,isGridMode:_0x4e5ef8,isUsingRealtime:_0x115c1c,isEditMode:_0x19c690,setIsGridMode:_0x21f198,getCurrentImageFxResult:_0x35d129,getHasPrevImageFxResult:_0x5884a8,goToPrevImageFxResult:_0x5798ae,getHasNextImageFxResult:_0x61744e,setCurrentRefineProperties:_0x5230ce,goToNextImageFxResult:_0x1ce59e}=(0x0,_0x3dcc09['T'])(_0x15bea7=>({'imageFxResults':_0x15bea7[_0x539015(0x362)],'isGridMode':_0x15bea7[_0x539015(0x4a9)],'isUsingRealtime':_0x15bea7[_0x539015(0x366)],'isEditMode':_0x15bea7[_0x539015(0x390)],'getCurrentImageFxResult':_0x15bea7[_0x539015(0x1dd)],'getHasPrevImageFxResult':_0x15bea7[_0x539015(0x263)],'goToPrevImageFxResult':_0x15bea7['goToPrevImageFxResult'],'getHasNextImageFxResult':_0x15bea7[_0x539015(0x4bc)],'goToNextImageFxResult':_0x15bea7[_0x539015(0x36d)],'setCurrentRefineProperties':_0x15bea7[_0x539015(0x3cc)],'setIsGridMode':_0x15bea7['setIsGridMode']})),_0x4c1353=_0x35d129(),{t:_0x2641cb}=(0x0,_0x2ba428['$G'])(),_0x3da8f7=_0x5884a8(),_0x13a82d=_0x61744e(),_0x3bcbb7=_0x54139b['length'],_0xaf41a7=_0x54139b['findIndex'](_0x3fa02b=>{let {id:_0x242c1f}=_0x3fa02b;return _0x242c1f===(null==_0x4c1353?void 0x0:_0x4c1353['id']);}),_0x2131be=0x0===_0x3bcbb7?''[_0x539015(0x2f8)](_0x3bcbb7,_0x539015(0x1f9))[_0x539015(0x2f8)](_0x3bcbb7):-0x1===_0xaf41a7?_0x539015(0x4a8)[_0x539015(0x2f8)](_0x3bcbb7):''[_0x539015(0x2f8)](_0xaf41a7+0x1,_0x539015(0x1f9))[_0x539015(0x2f8)](_0x3bcbb7),_0x51c45e=_0x58c9e0=>{const _0x5c08ba=_0x539015;if(_0x58c9e0){if(_0x58c9e0[_0x5c08ba(0x345)]&&_0x5230ce(_0x58c9e0['refineProperties']),!_0x58c9e0[_0x5c08ba(0x3f5)]){let _0x3105fc=_0x58c9e0['prompt'];if(!_0x3105fc)return;_0x34c591[_0x5c08ba(0x40c)]({'at':{'anchor':_0x34c591[_0x5c08ba(0x497)]([]),'focus':_0x34c591['end']([])}}),_0x34c591[_0x5c08ba(0x3c1)]((0x0,_0x452c15['IU'])(_0x3105fc));return;}_0x34c591[_0x5c08ba(0x40c)]({'at':{'anchor':_0x34c591[_0x5c08ba(0x497)]([]),'focus':_0x34c591['end']([])}}),_0x34c591[_0x5c08ba(0x3c1)](_0x58c9e0[_0x5c08ba(0x3f5)]);}};return _0x115c1c?null:_0x19c690?(0x0,_0xd5434[_0x539015(0x4b7)])(_0x12b4fa,{'isLoadingImages':_0x4742d7,'isLoadingSegments':_0x18054c}):(0x0,_0xd5434[_0x539015(0x3db)])(_0x5ef586,{'children':[(0x0,_0xd5434[_0x539015(0x3db)])(_0x456802,{'children':[(0x0,_0xd5434['jsx'])(_0x363be6,{'onClick':()=>{_0x51c45e(_0x5798ae());},'disabled':!_0x3da8f7,'icon':_0x539015(0x395),'iconProps':{'iconSet':'GOOGLE_SYMBOLS'},'label':_0x2641cb(_0x539015(0x37e))}),(0x0,_0xd5434[_0x539015(0x4b7)])(_0x393715,{'children':_0x2641cb(_0x539015(0x339),{'count':_0x2131be})}),(0x0,_0xd5434[_0x539015(0x4b7)])(_0x363be6,{'icon':_0x539015(0x2f3),'onClick':()=>{_0x51c45e(_0x1ce59e());},'disabled':!_0x13a82d,'iconProps':{'iconSet':_0x539015(0x46d)},'label':_0x2641cb('toolbar_next_page_button_label')})]}),(0x0,_0xd5434[_0x539015(0x4b7)])(_0x273b14,{'aria-label':_0x2641cb('imagefx_grid_toggle_label'),'checked':!_0x4e5ef8,'onCheckedChange':()=>_0x21f198(!_0x4e5ef8),'uncheckedIcon':_0x539015(0x257),'checkedIcon':'gallery_thumbnail','color':_0x16c19b})]});},_0x5ef586=_0x3b8c98['ZP']['div'][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x3b8)})(['',_0x2f36b9(0x357),';background:',_0x2f36b9(0x233),_0x2f36b9(0x444)],_0x36960c=>_0x36960c[_0x2f36b9(0x33a)][_0x2f36b9(0x39e)][_0x2f36b9(0x495)],_0x5f811e=>_0x5f811e[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)][_0x2f36b9(0x292)],_0x1b4678=>_0x1b4678[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)][_0x2f36b9(0x314)],_0x211f13=>_0x211f13[_0x2f36b9(0x33a)][_0x2f36b9(0x3a6)][_0x2f36b9(0x1ea)]),_0x456802=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':'sc-21d36744-1'})([_0x2f36b9(0x2d3)]),_0x363be6=(0x0,_0x3b8c98['ZP'])(_0x46433c['h'])[_0x2f36b9(0x410)]({'componentId':'sc-21d36744-2'})([_0x2f36b9(0x429),_0x2f36b9(0x2f5),_0x2f36b9(0x349),';}'],_0x373b73=>_0x373b73[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)][_0x2f36b9(0x460)],_0x1277cb=>_0x1277cb[_0x2f36b9(0x33a)]['colors'][_0x2f36b9(0x292)],_0x1d78f2=>_0x1d78f2[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)][_0x2f36b9(0x484)]),_0x393715=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':'sc-21d36744-3'})(['',_0x2f36b9(0x3de),';'],_0x28bc00=>_0x28bc00[_0x2f36b9(0x33a)][_0x2f36b9(0x355)][_0x2f36b9(0x49c)],_0x15abfa=>_0x15abfa[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)][_0x2f36b9(0x2ac)]),_0x273b14=(0x0,_0x3b8c98['ZP'])(_0x15454e=>{const _0x369d31=_0x2f36b9;let {color:_0x2c0995,uncheckedIcon:_0x568dd0,checkedIcon:_0x88ce4e,..._0x2b8da7}=_0x15454e;return(0x0,_0xd5434['jsx'])(_0x521a7f['b'],{'colorTheme':_0x2c0995,'children':(0x0,_0xd5434[_0x369d31(0x3db)])(_0x2adbf3,{..._0x2b8da7,'children':[(0x0,_0xd5434[_0x369d31(0x4b7)])(_0x1795d8,{}),(0x0,_0xd5434[_0x369d31(0x3db)])(_0x5ee436,{'children':[(0x0,_0xd5434[_0x369d31(0x4b7)])(_0x1053f7,{'$active':!_0x2b8da7[_0x369d31(0x30d)],'size':_0x369d31(0x44f),'icon':_0x568dd0,'isOutlined':!0x0,'iconSet':_0x51cbc8['G']['GOOGLE_SYMBOLS']}),(0x0,_0xd5434[_0x369d31(0x4b7)])(_0x1053f7,{'$active':!!_0x2b8da7[_0x369d31(0x30d)],'size':_0x369d31(0x44f),'icon':_0x88ce4e,'isOutlined':!0x0,'iconSet':_0x51cbc8['G']['GOOGLE_SYMBOLS']})]})]})});})[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x481)})(['display:none;@media\x20(min-width:',_0x2f36b9(0x213)],_0x4f0e5b=>_0x4f0e5b[_0x2f36b9(0x33a)][_0x2f36b9(0x3a6)][_0x2f36b9(0x1ea)]),_0x3a69ce=_0x3b8c98['ZP']['div']['withConfig']({'componentId':_0x2f36b9(0x358)})([_0x2f36b9(0x2b1),_0x2f36b9(0x3b9)],_0xd2fb4a=>_0xd2fb4a[_0x2f36b9(0x33a)][_0x2f36b9(0x3a6)][_0x2f36b9(0x1ea)]),_0x4151c0=(0x0,_0x3b8c98['ZP'])(_0x46433c['h'])[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x30c)})([_0x2f36b9(0x438),_0x2f36b9(0x3de),';',_0x2f36b9(0x371),_0x2f36b9(0x3de),';}&:not([disabled]):hover{background-color:',';}'],_0xce1046=>_0xce1046[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)]['aitk-white-15'],_0x2a0572=>_0x2a0572['theme'][_0x2f36b9(0x3d6)][0x12c],_0x2a2453=>_0x2a2453[_0x2f36b9(0x33a)][_0x2f36b9(0x39e)][_0x2f36b9(0x495)],_0x9df91=>_0x9df91[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)]['aitk-grey-50'],_0x4b4d6b=>_0x4b4d6b[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)]['md-grey-700'],_0x2e3ce1=>_0x2e3ce1[_0x2f36b9(0x33a)]['colors'][_0x2f36b9(0x292)]),_0x207dbd=_0x3b8c98['ZP']['textarea']['withConfig']({'componentId':_0x2f36b9(0x437)})([_0x2f36b9(0x2cd),_0x2f36b9(0x3de),_0x2f36b9(0x49f),'){padding:inherit;}'],_0x3f8b4f=>_0x3f8b4f['theme'][_0x2f36b9(0x355)][_0x2f36b9(0x3c9)],_0x5490de=>_0x5490de['theme'][_0x2f36b9(0x30a)][_0x2f36b9(0x3dd)],_0x166de7=>_0x166de7[_0x2f36b9(0x33a)]['breakpoints'][_0x2f36b9(0x1ea)]);var _0x896d7c=_0x2753b3(0x5f78),_0x2d1788=_0x2753b3(0x12040);let _0x3c444f=_0x15661e=>{const _0x593f1d=_0x2f36b9;let {fetchImages:_0x4838d8,fetchSegments:_0x3f32df,isLoadingImages:_0x23e5e2,isLoadingSegments:_0x172f84}=_0x15661e,{t:_0x5d4da8}=(0x0,_0x2ba428['$G'])(),[_0x1db270]=(0x0,_0x1fa0ad['KO'])(_0x2d610e['jV']),_0xadb924=_0x43ba67['qV'],{editor:_0x5cafb6,setStrokeWidth:_0x2cf91d,clearDrawingOperations:_0x146d6e,isEditMode:_0x49fa27,setActiveCarouselIndex:_0x1919c2,getCurrentImageFxResult:_0x446e0e,editMode:_0xe0e223,setEditMode:_0x2b2d33,currentInpaintingPrompt:_0x1e8d1c,setCurrentInpaintingPrompt:_0x372f8f,invert:_0x24ee84,setPendingDrawingOperations:_0x15bbf8}=(0x0,_0x3dcc09['T'])(_0x460647=>({'editor':_0x460647['editor'],'undo':_0x460647[_0x593f1d(0x2a7)],'redo':_0x460647[_0x593f1d(0x34f)],'setStrokeWidth':_0x460647[_0x593f1d(0x335)],'clearDrawingOperations':_0x460647[_0x593f1d(0x46a)],'isEditMode':_0x460647['isEditMode'],'setActiveCarouselIndex':_0x460647[_0x593f1d(0x492)],'getCurrentImageFxResult':_0x460647[_0x593f1d(0x1dd)],'editMode':_0x460647[_0x593f1d(0x1ed)],'setEditMode':_0x460647['setEditMode'],'currentInpaintingPrompt':_0x460647[_0x593f1d(0x42e)],'setCurrentInpaintingPrompt':_0x460647[_0x593f1d(0x2e2)],'invert':_0x460647['invert'],'setPendingDrawingOperations':_0x460647[_0x593f1d(0x458)]})),[_0x334acf,_0x300fb8]=(0x0,_0x55f193['useState'])(_0x1e8d1c),_0x36e711=()=>{const _0x27ea07=_0x593f1d;var _0x438b95;let _0x10bd8a=null==_0x7d80a0?void 0x0:_0x7d80a0();if(!_0x47cdff||!_0x10bd8a||0x0===_0x334acf[_0x27ea07(0x266)]||_0x29fb95||!_0x49fa27){console[_0x27ea07(0x34c)](_0x27ea07(0x328),{'baseImage':_0x47cdff,'maskDataURL':_0x10bd8a,'prompt':_0x334acf,'hasNoMask':_0x29fb95,'isEditMode':_0x49fa27});return;}_0x4838d8({'id':(0x0,_0x4ba630['vV'])(),'imagePrompt':(null===(_0x438b95=_0x446e0e())||void 0x0===_0x438b95?void 0x0:_0x438b95['prompt'])||_0x47cdff[_0x27ea07(0x2a2)],'maskPrompt':_0x334acf,'base64BaseImage':(0x0,_0x4ba630['RU'])(_0x47cdff[_0x27ea07(0x1e6)])||void 0x0,'base64MaskImage':(0x0,_0x4ba630['RU'])(_0x10bd8a)||void 0x0,'previousMediaKey':0x0===_0x47cdff['mediaKey'][_0x27ea07(0x266)]?void 0x0:_0x47cdff[_0x27ea07(0x42d)]}),_0x1919c2(0x0);},{getMaskDataURL:_0x7d80a0,baseImage:_0x47cdff,strokeWidth:_0x440443,drawingOperations:_0x3e7f6d,drawingOperationsPointer:_0x559a86,currentImageSegments:_0x4768e1,hasFetchedSegments:_0x53eec2,hasMask:_0x435a8b}=_0x5cafb6,_0x29fb95=!_0x3e7f6d[_0x559a86]||_0x3e7f6d[_0x593f1d(0x36e)](_0x5888ed=>_0x593f1d(0x31e)===_0x5888ed[_0x593f1d(0x1ed)])||void 0x0!==_0x435a8b&&!_0x435a8b;localStorage[_0x593f1d(0x2fe)](_0x550688['I'][_0x593f1d(0x2b0)],_0x593f1d(0x301));let _0x411aac=[{'type':'TAB','label':(0x0,_0xd5434['jsx'])(_0x548b7e,{'children':_0x5d4da8(_0x593f1d(0x425))}),'icon':_0x593f1d(0x4c2),'iconProps':{'isOutlined':!0x0},'value':_0x593f1d(0x4cf)},{'type':_0x593f1d(0x327),'label':(0x0,_0xd5434['jsx'])(_0x548b7e,{'children':_0x5d4da8('image_fx_eraser_tab_text')}),'icon':'ink_eraser','iconProps':{'isOutlined':!0x0},'value':_0x593f1d(0x496)},{'type':_0x593f1d(0x327),'label':(0x0,_0xd5434[_0x593f1d(0x4b7)])(_0x548b7e,{'children':_0x5d4da8(_0x593f1d(0x4cb))}),'icon':_0x593f1d(0x33c),'iconProps':{'isOutlined':!0x0},'value':_0x593f1d(0x319)}];return(0x0,_0xd5434[_0x593f1d(0x3db)])(_0x4eb814,{'$isImageSegmentEnabled':_0xadb924,'children':[(0x0,_0xd5434['jsx'])(_0x40b259,{'children':_0x5d4da8(_0x593f1d(0x44c))}),_0xadb924&&(0x0,_0xd5434[_0x593f1d(0x4b7)])(_0x2d1788['t'],{'onValueChange':_0x1ccbf3=>{const _0x51cc9e=_0x593f1d;_0x2b2d33(_0x1ccbf3),!_0x53eec2&&_0x47cdff&&0x0===_0x4768e1[_0x51cc9e(0x266)]&&_0x51cc9e(0x319)===_0x1ccbf3&&_0x3f32df((0x0,_0x4ba630['RU'])(_0x47cdff[_0x51cc9e(0x1e6)]));},'color':_0x1db270,'items':_0x411aac,'value':_0xe0e223}),_0xadb924&&_0x593f1d(0x319)===_0xe0e223?_0x172f84?(0x0,_0xd5434[_0x593f1d(0x3db)])(_0x245d2d,{'variant':_0x593f1d(0x280),'color':_0x1db270,'isDarkMode':!0x0,'children':[(0x0,_0xd5434[_0x593f1d(0x4b7)])(_0x65f6a3['$'],{'color':_0x1db270,'size':_0x593f1d(0x3e1),'borderSize':'0.125rem'}),_0x5d4da8('image_fx_identifying_objects_button_text')]}):0x0===_0x4768e1[_0x593f1d(0x266)]?_0x47cdff&&(0x0,_0xd5434['jsx'])(_0x300066,{'variant':_0x593f1d(0x280),'icon':_0x593f1d(0x2dc),'color':_0x1db270,'isDarkMode':!0x0,'onClick':()=>_0x3f32df(_0x47cdff[_0x593f1d(0x1e6)]),'iconProps':{'iconSet':_0x51cbc8['G'][_0x593f1d(0x46d)]},'children':_0x5d4da8('imagefx_retry_object_identification_button_text')}):(0x0,_0xd5434['jsxs'])(_0x368e60,{'children':[(0x0,_0xd5434['jsx'])(_0x5525f3,{'variant':_0x593f1d(0x280),'icon':'delete','color':_0x1db270,'isDarkMode':!0x0,'disabled':_0x29fb95||_0x23e5e2||_0x172f84,'onClick':()=>_0x146d6e(),'iconProps':{'iconSet':_0x51cbc8['G'][_0x593f1d(0x46d)]},'children':_0x5d4da8(_0x593f1d(0x351))}),(0x0,_0xd5434[_0x593f1d(0x4b7)])(_0x300066,{'variant':_0x593f1d(0x280),'icon':_0x593f1d(0x378),'color':_0x1db270,'isDarkMode':!0x0,'disabled':_0x29fb95||_0x23e5e2||_0x172f84,'onClick':()=>null==_0x24ee84?void 0x0:_0x24ee84(),'iconProps':{'iconSet':_0x51cbc8['G'][_0x593f1d(0x46d)]},'children':_0x5d4da8(_0x593f1d(0x25e))})]}):(0x0,_0xd5434[_0x593f1d(0x3db)])(_0xd5434[_0x593f1d(0x2b5)],{'children':[(0x0,_0xd5434[_0x593f1d(0x4b7)])(_0x5c1c42,{'children':_0x5d4da8('image_fx_brush_size_label')}),(0x0,_0xd5434[_0x593f1d(0x3db)])(_0x15c918,{'children':[(0x0,_0xd5434['jsx'])(_0x47d4a0,{'children':''[_0x593f1d(0x2f8)](_0x440443)}),(0x0,_0xd5434[_0x593f1d(0x4b7)])(_0x896d7c['i'],{'max':0x1,'step':0.1,'min':'ERASER'===_0xe0e223?0.1:0.2,'height':_0x593f1d(0x225),'value':[_0x440443],'onValueChange':_0x4cbd9a=>{var _0x200f5e;return _0x2cf91d(null!==(_0x200f5e=null==_0x4cbd9a?void 0x0:_0x4cbd9a['at'](0x0))&&void 0x0!==_0x200f5e?_0x200f5e:0x0);},'color':_0x1db270})]}),(0x0,_0xd5434[_0x593f1d(0x3db)])(_0x368e60,{'children':[(0x0,_0xd5434[_0x593f1d(0x4b7)])(_0x5525f3,{'variant':_0x593f1d(0x280),'icon':_0x593f1d(0x40c),'color':_0x1db270,'isDarkMode':!0x0,'disabled':_0x29fb95||_0x23e5e2||_0x172f84,'onClick':()=>_0x146d6e(),'iconProps':{'iconSet':_0x51cbc8['G']['GOOGLE_SYMBOLS']},'children':_0x5d4da8(_0x593f1d(0x351))}),_0xadb924&&(0x0,_0xd5434[_0x593f1d(0x4b7)])(_0x300066,{'variant':_0x593f1d(0x280),'icon':_0x593f1d(0x378),'color':_0x1db270,'isDarkMode':!0x0,'disabled':_0x29fb95||_0x23e5e2||_0x172f84,'onClick':()=>null==_0x24ee84?void 0x0:_0x24ee84(),'iconProps':{'iconSet':_0x51cbc8['G'][_0x593f1d(0x46d)]},'children':_0x5d4da8(_0x593f1d(0x25e))})]})]}),(0x0,_0xd5434[_0x593f1d(0x4b7)])(_0x40b259,{'children':_0x5d4da8('image_fx_inpainting_instruction_2')}),(0x0,_0xd5434[_0x593f1d(0x3db)])(_0x3a97c7,{'children':[(0x0,_0xd5434['jsx'])(_0x26f852,{'placeholder':_0x5d4da8('image_fx_inpainting_text_area_placeholder'),'value':_0x334acf||_0x1e8d1c,'onChange':_0x57522b=>{const _0x457722=_0x593f1d;let _0x49a6cb=_0x57522b[_0x457722(0x2a4)]['value'];_0x300fb8(_0x49a6cb),_0x372f8f(_0x49a6cb);},'onKeyDown':_0x46f723=>{const _0x4f0905=_0x593f1d;if(_0x4f0905(0x35b)===_0x46f723[_0x4f0905(0x356)]){_0x46f723['preventDefault'](),_0x36e711();let _0x12aa48=_0x446e0e();_0x12aa48&&_0x15bbf8([],_0x12aa48);}},'disabled':_0x172f84||_0x23e5e2}),(0x0,_0xd5434[_0x593f1d(0x4b7)])(_0x49fbf0,{'children':_0x23e5e2?(0x0,_0xd5434[_0x593f1d(0x3db)])(_0x245d2d,{'variant':_0x593f1d(0x280),'color':_0x1db270,'isDarkMode':!0x0,'disabled':!0x0,'children':[(0x0,_0xd5434['jsx'])(_0x65f6a3['$'],{'color':_0x1db270,'size':_0x593f1d(0x44f),'borderSize':_0x593f1d(0x3c7)}),(0x0,_0xd5434[_0x593f1d(0x4b7)])(_0x548b7e,{'children':_0x5d4da8(_0x593f1d(0x2b8))})]}):(0x0,_0xd5434[_0x593f1d(0x4b7)])(_0x300066,{'variant':_0x593f1d(0x280),'icon':_0x593f1d(0x41e),'color':_0x1db270,'isDarkMode':!0x0,'disabled':0x0===_0x334acf['length']||_0x29fb95,'onClick':()=>_0x36e711(),'children':(0x0,_0xd5434['jsx'])(_0x548b7e,{'children':_0x5d4da8(_0x593f1d(0x269))})})})]})]});},_0x4eb814=(0x0,_0x3b8c98['ZP'])(_0x2b92ec['E'][_0x2f36b9(0x3c4)])[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x2d4)})([_0x2f36b9(0x30b),';padding:2rem;height:100%;'],_0x31dc4a=>_0x31dc4a[_0x2f36b9(0x396)]?_0x2f36b9(0x2fb):_0x2f36b9(0x225)),_0x40b259=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':'sc-8063db87-1'})([_0x2f36b9(0x448),';',';'],_0x47da4a=>_0x47da4a['theme'][_0x2f36b9(0x30a)][_0x2f36b9(0x406)],_0x2e34fb=>_0x2e34fb[_0x2f36b9(0x33a)][_0x2f36b9(0x355)][_0x2f36b9(0x25d)]),_0x5c1c42=_0x3b8c98['ZP'][_0x2f36b9(0x216)]['withConfig']({'componentId':'sc-8063db87-2'})([_0x2f36b9(0x448),';',';'],_0x59467e=>_0x59467e[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)]['md-white'],_0xbc420c=>_0xbc420c[_0x2f36b9(0x33a)]['typography'][_0x2f36b9(0x37f)]),_0x5525f3=(0x0,_0x3b8c98['ZP'])(_0x3e8d20['zx'])[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x3e3)})([_0x2f36b9(0x407)]),_0x300066=(0x0,_0x3b8c98['ZP'])(_0x3e8d20['zx'])[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x2f6)})([_0x2f36b9(0x22e)]),_0x245d2d=(0x0,_0x3b8c98['ZP'])(_0x3e8d20['zx'])['withConfig']({'componentId':_0x2f36b9(0x3c5)})([_0x2f36b9(0x1dc),_0x2f36b9(0x29b)],_0x6a7f45=>_0x6a7f45[_0x2f36b9(0x33a)][_0x2f36b9(0x3a6)][_0x2f36b9(0x1ea)]),_0x3a97c7=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x48f)})([_0x2f36b9(0x270),';border-radius:4px;padding:1rem;',';width:100%;height:100%;display:flex;flex-direction:column;gap:1rem;@media\x20(max-width:',_0x2f36b9(0x23b)],_0x189c8a=>_0x189c8a[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)][_0x2f36b9(0x240)],_0x26945d=>_0x26945d[_0x2f36b9(0x33a)][_0x2f36b9(0x355)][_0x2f36b9(0x1e5)],_0x53661e=>_0x53661e[_0x2f36b9(0x33a)]['breakpoints']['tablet']),_0x26f852=_0x3b8c98['ZP'][_0x2f36b9(0x3f0)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x332)})(['background-color:transparent;flex:1;',_0x2f36b9(0x397),_0x2f36b9(0x2f4)],_0x26479f=>_0x26479f[_0x2f36b9(0x33a)][_0x2f36b9(0x355)][_0x2f36b9(0x3c9)],_0x14a9ae=>_0x14a9ae[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)][_0x2f36b9(0x268)]),_0x15c918=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x246)})([_0x2f36b9(0x237)]),_0x47d4a0=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':'sc-8063db87-9'})([_0x2f36b9(0x270),_0x2f36b9(0x3de),_0x2f36b9(0x2ec)],_0x4662e6=>_0x4662e6[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)][_0x2f36b9(0x234)],_0xbd3783=>_0xbd3783[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)][_0x2f36b9(0x268)]),_0x548b7e=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x28f)})([_0x2f36b9(0x400),_0x2f36b9(0x25f)],_0x4fb22b=>_0x4fb22b[_0x2f36b9(0x33a)][_0x2f36b9(0x3a6)][_0x2f36b9(0x1ea)]),_0x49fbf0=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':'sc-8063db87-11'})([_0x2f36b9(0x3e2)]),_0x368e60=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':'sc-8063db87-12'})([_0x2f36b9(0x231)]);var _0x48ad70=_0x2753b3(0x70f6),_0xddd111=_0x2753b3(0x6104),_0x5336c0=_0x2753b3(0x46f9);let _0x33380b=_0x23b06e=>{const _0x1d1c3e=_0x2f36b9;let {t:_0xa92035}=(0x0,_0x2ba428['$G'])();return(0x0,_0xd5434['jsx'])(_0x48ad70['l'],{'options':_0x23b06e[_0x1d1c3e(0x45d)]?_0x35f85c['zv']:_0x35f85c['zO'],'onOptionClick':_0x595f6d=>{const _0xc672e8=_0x1d1c3e;(0x0,_0x348c3f['SH'])(_0x595f6d)?_0x23b06e['setImageModelType'](_0x595f6d):console[_0xc672e8(0x34c)](_0xc672e8(0x39c));},'value':''['concat'](_0x35f85c['OD'][_0x23b06e['currentImageModelType']](_0xa92035)),'label':_0xa92035(_0x1d1c3e(0x350)),'helperText':''[_0x1d1c3e(0x2f8)](_0x35f85c['IF'][_0x23b06e[_0x1d1c3e(0x23f)]](_0xa92035)),'showHelpIcon':!0x0,'helperTextLink':_0x35f85c['xH'][_0x23b06e[_0x1d1c3e(0x23f)]]});},_0x1c6342=_0x170d51=>{const _0x4a1630=_0x2f36b9;let {t:_0x5f207f}=(0x0,_0x2ba428['$G'])();return(0x0,_0xd5434[_0x4a1630(0x4b7)])(_0x48ad70['l'],{'options':'IMAGEN_3_FAST'===_0x170d51['model']?_0x35f85c['$3']:_0x35f85c['dj'],'onOptionClick':_0x3efe6d=>{const _0x2f3358=_0x4a1630;(0x0,_0x35f85c['vG'])(_0x3efe6d)?_0x170d51[_0x2f3358(0x2c2)](_0x3efe6d):console[_0x2f3358(0x34c)](_0x2f3358(0x26b));},'value':''[_0x4a1630(0x2f8)](_0x35f85c['t8'][_0x170d51[_0x4a1630(0x476)]](_0x5f207f)),'label':_0x5f207f(_0x4a1630(0x20b)),'helperText':_0x5f207f(_0x4a1630(0x380))});},_0x24eab5=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)]['withConfig']({'componentId':'sc-f0717600-0'})(['border-radius:4px;display:flex;flex-direction:column;gap:1.5rem;padding:1.5rem;padding-bottom:0.5rem;border-top-left-radius:28px;border-top-right-radius:28px;']),_0x3a9306=(0x0,_0x3b8c98['ZP'])(_0x5336c0['n'])[_0x2f36b9(0x410)]({'componentId':'sc-f0717600-1'})([_0x2f36b9(0x244)]),_0x583990=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x1f1)})([_0x2f36b9(0x45c)]),_0x27f3a7=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':'sc-f0717600-3'})([_0x2f36b9(0x1fc),_0x2f36b9(0x3a3)],_0x59e139=>_0x59e139[_0x2f36b9(0x33a)]['breakpoints']['laptop']),_0x6a3f5e=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x221)})([_0x2f36b9(0x38d)]),_0x3c8501=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)]['withConfig']({'componentId':_0x2f36b9(0x209)})([_0x2f36b9(0x28d)]),_0x2177df=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':'sc-f0717600-6'})([_0x2f36b9(0x384)]),_0x1d3a4d=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x206)})([_0x2f36b9(0x435),';'],_0x3236a0=>_0x3236a0[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)][_0x2f36b9(0x369)]),_0x1a64c7=(0x0,_0x3b8c98['ZP'])(_0x51cbc8['O'])['withConfig']({'componentId':_0x2f36b9(0x3d2)})([_0x2f36b9(0x2be)]),_0x3eac82=_0x3b8c98['ZP']['p'][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x415)})(['text-indent:0.2rem;',';'],_0x3971=>_0x3971['theme'][_0x2f36b9(0x355)]['mdLabelMedium']),_0x2e1632=_0x3b8c98['ZP']['p'][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x470)})([_0x2f36b9(0x448),';',';'],_0x1a8003=>_0x1a8003[_0x2f36b9(0x33a)]['colors'][_0x2f36b9(0x406)],_0x5b49e2=>_0x5b49e2[_0x2f36b9(0x33a)][_0x2f36b9(0x355)]['mdLabelSmall']);var _0x183399=_0x2753b3(0x6eb7);let _0x2ec72b=_0x55aec6=>{const _0x5c9b28=_0x2f36b9;let {handleEditImage:_0x50beb2,lastMaskedEditImage:_0x31beaa,containerText:_0x509871}=_0x55aec6,{t:_0x3dbab1}=(0x0,_0x2ba428['$G'])(),[_0xd90683]=(0x0,_0x1fa0ad['KO'])(_0x2d610e['jV']),_0x21eba5=_0x43ba67['hh'];return _0x31beaa?(0x0,_0xd5434['jsxs'])(_0x48b4e0,{'children':[(0x0,_0xd5434[_0x5c9b28(0x3db)])(_0x3aa896,{'children':[(0x0,_0xd5434[_0x5c9b28(0x4b7)])(_0x5425ed,{'size':_0x5c9b28(0x44b),'icon':'crop_auto','iconSet':_0x51cbc8['G'][_0x5c9b28(0x46d)]}),(0x0,_0xd5434['jsx'])(_0x228297,{'children':_0x3dbab1(''['concat'](_0x509871))})]}),(0x0,_0xd5434[_0x5c9b28(0x3db)])(_0x8f1faa,{'children':[(0x0,_0xd5434['jsx'])(_0x344899,{'src':_0x31beaa['imageSrc'],'alt':_0x3dbab1('imagefx_masked_image_history_alt'),'width':0x28,'height':0x28}),(0x0,_0xd5434[_0x5c9b28(0x3db)])(_0x36cd5e,{'children':[_0x3dbab1(_0x5c9b28(0x271)),'\x20',_0x31beaa['prompt']]})]}),_0x21eba5&&(0x0,_0xd5434[_0x5c9b28(0x4b7)])(_0xf98c8b,{'variant':_0x5c9b28(0x280),'icon':_0x5c9b28(0x33c),'color':_0xd90683,'iconProps':{'iconSet':_0x51cbc8['G']['GOOGLE_SYMBOLS']},'isDarkMode':!0x0,'onClick':()=>_0x50beb2(_0x31beaa),'children':_0x3dbab1('imagefx_retry_edit_button_text')})]}):null;},_0x5425ed=(0x0,_0x3b8c98['zo'])(_0x51cbc8['O'])[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x22a)})([_0x2f36b9(0x3ec),';'],_0x452e1d=>_0x452e1d[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)][_0x2f36b9(0x484)]),_0x48b4e0=_0x3b8c98['zo'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x32b)})([_0x2f36b9(0x372),_0x2f36b9(0x276)],_0x822da8=>_0x822da8['theme'][_0x2f36b9(0x30a)][_0x2f36b9(0x240)]),_0x3aa896=_0x3b8c98['zo'][_0x2f36b9(0x3c4)]['withConfig']({'componentId':_0x2f36b9(0x25a)})([_0x2f36b9(0x41b)]),_0x8f1faa=_0x3b8c98['zo'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x452)})([_0x2f36b9(0x354)]),_0x344899=(0x0,_0x3b8c98['zo'])(_0x17c538())[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x28a)})([_0x2f36b9(0x3bf)]),_0x36cd5e=_0x3b8c98['zo']['p']['withConfig']({'componentId':_0x2f36b9(0x24f)})([_0x2f36b9(0x448),';',';'],_0x344e7e=>_0x344e7e[_0x2f36b9(0x33a)]['colors'][_0x2f36b9(0x2ac)],_0xe11d25=>_0xe11d25[_0x2f36b9(0x33a)][_0x2f36b9(0x355)][_0x2f36b9(0x1d8)]),_0x228297=_0x3b8c98['zo']['p'][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x2fa)})([_0x2f36b9(0x4be),';',';'],_0x300f18=>_0x300f18['theme'][_0x2f36b9(0x30a)][_0x2f36b9(0x484)],_0x1e4f50=>_0x1e4f50['theme'][_0x2f36b9(0x355)][_0x2f36b9(0x4bb)]),_0xf98c8b=(0x0,_0x3b8c98['zo'])(_0x3e8d20['zx'])[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x238)})([_0x2f36b9(0x316),_0x2f36b9(0x247),_0x2f36b9(0x239)],_0x4fdacc=>_0x4fdacc[_0x2f36b9(0x33a)]['colors']['aitk-white-15'],_0x2a040d=>_0x2a040d[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)]['aitk-grey-50']),_0x22c01d=(_0x3cd2f6,_0xede1d4)=>_0xede1d4[_0x2f36b9(0x3d1)](_0x31f798=>_0x31f798['lastMaskedEditImage']&&(_0x31f798[_0x2f36b9(0x426)]||[])['some'](_0x26612d=>_0x3cd2f6===(null==_0x26612d?void 0x0:_0x26612d['mediaKey']))),_0x263955=(_0x4a4e62,_0x126774,_0x54b71f)=>{const _0x1ed0b7=_0x2f36b9;if(!_0x4a4e62)return null;let _0x323649=_0x22c01d(_0x4a4e62['mediaKey'],_0x126774);return _0x323649?(0x0,_0xd5434[_0x1ed0b7(0x3db)])(_0xd5434[_0x1ed0b7(0x2b5)],{'children':[(0x0,_0xd5434[_0x1ed0b7(0x4b7)])(_0x2ec72b,{'handleEditImage':_0x54b71f,'lastMaskedEditImage':_0x323649[_0x1ed0b7(0x352)],'containerText':'imagefx_change_this_edit_history_text'}),_0x263955(_0x323649[_0x1ed0b7(0x352)],_0x126774,_0x54b71f)]}):null;},_0x28a87a=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x2ea)})([_0x2f36b9(0x2d2)]),_0x4d2d12=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':'sc-eda92e6e-1'})([_0x2f36b9(0x48b)]),_0x3d76dc=(0x0,_0x3b8c98['ZP'])(_0x51cbc8['O'])[_0x2f36b9(0x410)]({'componentId':'sc-eda92e6e-2'})([_0x2f36b9(0x3ec),';'],_0x1820e2=>_0x1820e2[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)]['aitk-white-25']),_0x5d0419=_0x3b8c98['ZP']['p'][_0x2f36b9(0x410)]({'componentId':'sc-eda92e6e-3'})([_0x2f36b9(0x4be),';',';'],_0x273fe0=>_0x273fe0['theme'][_0x2f36b9(0x30a)][_0x2f36b9(0x484)],_0x1ecae6=>_0x1ecae6[_0x2f36b9(0x33a)][_0x2f36b9(0x355)][_0x2f36b9(0x4bb)]),_0x237279=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x4b8)})([_0x2f36b9(0x431)]),_0x5643d3=(0x0,_0x3b8c98['ZP'])(_0x51cbc8['O'])[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x2d6)})([_0x2f36b9(0x448),';'],_0x242d40=>_0x242d40['theme']['colors'][_0x2f36b9(0x23e)]),_0x4dc4de={'INPUT':_0x2f36b9(0x243),'SETTINGS':_0x2f36b9(0x28b),'EDITING':_0x2f36b9(0x36f),'PROMPT_HELPER':'PROMPT_HELPER','HISTORY':'HISTORY'},_0x4e82af=[{'value':_0x4dc4de[_0x2f36b9(0x243)],'label':(0x0,_0x183399['yE'])(_0x2f36b9(0x404))},{'value':_0x4dc4de[_0x2f36b9(0x2ff)],'label':(0x0,_0x183399['yE'])(_0x2f36b9(0x35d))},{'value':_0x4dc4de[_0x2f36b9(0x36f)],'label':(0x0,_0x183399['yE'])(_0x2f36b9(0x21e))},{'value':_0x4dc4de[_0x2f36b9(0x420)],'label':(0x0,_0x183399['yE'])('imagefx_history_tab_label')},{'value':_0x4dc4de[_0x2f36b9(0x28b)],'label':(0x0,_0x183399['yE'])(_0x2f36b9(0x408))}][_0x2f36b9(0x46b)](_0x73dfb=>_0x2f36b9(0x2ff)!==_0x73dfb[_0x2f36b9(0x2d7)]||_0x43ba67['dD']),_0x55cb28=_0xdf35f4=>_0x4dc4de[_0x2f36b9(0x39b)](_0xdf35f4),_0x3bac4a=_0x462dae=>{const _0x40728d=_0x2f36b9;let {currentTabValue:_0xd23270,onSubmit:_0x6a51b9,placeholder:_0x380dd9,isLoadingImages:_0x3176ae,isLoadingEnhancedPrompt:_0x33d99b,isLoadingSegments:_0x2a8d3b,className:_0xb28bff,onSubmitPromptHelper:_0x450a96,isLoadingPromptHelper:_0x43b42b,fetchImages:_0x179dee,fetchSegments:_0xf75f27,fetchImageMaskData:_0x4e0d30}=_0x462dae;switch(_0xd23270){case _0x40728d(0x243):return(0x0,_0xd5434[_0x40728d(0x4b7)])(_0x1951dd,{'onSubmit':_0x6a51b9,'placeholder':_0x380dd9,'renderPlaceholder':_0x15b2a6=>{const _0x2cee3f=_0x40728d;let {children:_0x43ac25,attributes:_0x27923f}=_0x15b2a6;return(0x0,_0xd5434[_0x2cee3f(0x4b7)])(_0x1e4468['_'],{'attributes':_0x27923f,'children':_0x43ac25});},'className':_0xb28bff,'children':(0x0,_0xd5434[_0x40728d(0x4b7)])(_0x571395,{'onSubmit':_0x6a51b9,'onSubmitPromptHelper':_0x450a96,'isLoading':_0x3176ae||_0x33d99b,'isLoadingPromptHelper':_0x43b42b})});case _0x40728d(0x28b):return(0x0,_0xd5434[_0x40728d(0x4b7)])(_0x2b2084,{});case'EDITING':return(0x0,_0xd5434[_0x40728d(0x4b7)])(_0x3c444f,{'fetchImages':_0x179dee,'fetchSegments':_0xf75f27,'isLoadingImages':_0x3176ae,'isLoadingSegments':_0x2a8d3b});case _0x40728d(0x2ff):return(0x0,_0xd5434[_0x40728d(0x4b7)])(_0x38173f,{'onSubmitPromptHelper':_0x450a96,'isLoadingPromptHelper':_0x43b42b,'isLoadingImages':_0x3176ae});case _0x40728d(0x420):return(0x0,_0xd5434[_0x40728d(0x4b7)])(_0x1b430a,{'fetchImageMaskData':_0x4e0d30});default:return console['error'](_0x40728d(0x3c0)['concat'](_0xd23270)),null;}},_0x1951dd=(0x0,_0x3b8c98['ZP'])(_0x5d931d['H'])['withConfig']({'componentId':_0x2f36b9(0x42f)})([_0x2f36b9(0x4ca)]),_0x2b2084=(0x0,_0x3b8c98['ZP'])(_0x21bb3b=>{const _0x58ca74=_0x2f36b9;let {className:_0x5d9bba}=_0x21bb3b,{t:_0x17ba74}=(0x0,_0x2ba428['$G'])(),_0x3b36a3=(0x0,_0x3b8c98['Fg'])(),[_0x49ca10,_0x2fb432]=(0x0,_0x55f193[_0x58ca74(0x294)])(!0x1),[_0x67797c,_0x43a6ac]=(0x0,_0x1fa0ad['KO'])(_0x2d610e['Y5']),[_0x4228b8,_0x3e4883]=(0x0,_0x1fa0ad['KO'])(_0x2d610e['Wj']),[_0x495903,_0x17c3e7]=(0x0,_0x55f193[_0x58ca74(0x294)])(!0x1),{currentRefineProperties:_0x4a270a,setSeedInfo:_0x2dd7d1,toggleIsSeedLocked:_0x34c5af,setAspectRatio:_0x5e0b21,setImageModelType:_0x2cd4a8}=(0x0,_0x3dcc09['T'])(_0x49307b=>({'currentRefineProperties':_0x49307b[_0x58ca74(0x447)],'toggleIsSeedLocked':_0x49307b[_0x58ca74(0x203)],'setSeedInfo':_0x49307b['setSeedInfo'],'setAspectRatio':_0x49307b[_0x58ca74(0x2c2)],'setImageModelType':_0x49307b[_0x58ca74(0x377)]})),{seedInfo:_0x66dde2,isSeedLocked:_0x56ebcc}=_0x4a270a;return(0x0,_0xd5434[_0x58ca74(0x4b7)])(_0x24eab5,{'className':_0x5d9bba,'children':(0x0,_0xd5434[_0x58ca74(0x3db)])(_0x583990,{'children':[(0x0,_0xd5434[_0x58ca74(0x4b7)])(_0x3a9306,{'labelId':_0x58ca74(0x41a),'label':_0x17ba74(_0x58ca74(0x3b1)),'value':_0x66dde2[_0x58ca74(0x330)],'type':_0x58ca74(0x293),'iconProps':{'isOutlined':!0x0,'color':_0x56ebcc?_0x3b36a3[_0x58ca74(0x3d6)][_0x58ca74(0x23a)]:_0x58ca74(0x42c)},'icon':_0x56ebcc?_0x58ca74(0x1ee):_0x58ca74(0x402),'onChange':_0x1c634b=>{const _0x3700b0=_0x58ca74;_0x2dd7d1({'seed':parseInt(_0x1c634b['target'][_0x3700b0(0x2d7)][_0x3700b0(0x4a1)]('')[_0x3700b0(0x3ed)]((_0x435a75,_0x61efc1)=>parseInt(''[_0x3700b0(0x2f8)](_0x435a75)[_0x3700b0(0x2f8)](_0x61efc1),0xa)<=_0x35f85c['DK']?_0x435a75+_0x61efc1:_0x435a75),0xa),'imageSetIndex':null}),_0x2fb432(!0x0);},'disabled':!!_0x56ebcc,'onIconClick':()=>{_0x34c5af();},'helperText':_0x56ebcc&&null!==_0x66dde2[_0x58ca74(0x2c8)]?_0x17ba74('imagefx_refinement_seed_locked_subtitle',{'set':_0x66dde2['imageSetIndex']+0x1}):_0x17ba74(_0x56ebcc?_0x58ca74(0x318):'imagefx_refinement_seed_subtitle'),'onBlur':()=>{_0x49ca10&&(_0x34c5af(),_0x2fb432(!0x1));}}),(0x0,_0xd5434[_0x58ca74(0x3db)])(_0x27f3a7,{'children':[(0x0,_0xd5434[_0x58ca74(0x4b7)])(_0x33380b,{'setImageModelType':_0x2cd4a8,'currentImageModelType':_0x4a270a[_0x58ca74(0x4ac)],'seeAllOptions':_0x43ba67['kn']}),(0x0,_0xd5434[_0x58ca74(0x4b7)])(_0x1c6342,{'setAspectRatio':_0x5e0b21,'currentAspectRatio':_0x4a270a[_0x58ca74(0x245)],'model':_0x4a270a[_0x58ca74(0x4ac)]})]}),_0x43ba67['dC']&&(0x0,_0xd5434[_0x58ca74(0x3db)])(_0xd5434[_0x58ca74(0x2b5)],{'children':[(0x0,_0xd5434[_0x58ca74(0x4b7)])(_0x6a3f5e,{'children':(0x0,_0xd5434[_0x58ca74(0x3db)])(_0x3c8501,{'children':[(0x0,_0xd5434[_0x58ca74(0x4b7)])(_0xddd111['r'],{'checked':_0x67797c,'onCheckedChange':_0x35d373=>{_0x4228b8?_0x43a6ac(_0x35d373):(_0x43a6ac(!0x0),_0x17c3e7(!0x0));}}),(0x0,_0xd5434[_0x58ca74(0x3db)])(_0x2177df,{'children':[(0x0,_0xd5434['jsxs'])(_0x1d3a4d,{'children':[(0x0,_0xd5434[_0x58ca74(0x4b7)])(_0x1a64c7,{'icon':_0x58ca74(0x312),'isOutlined':!0x0,'size':_0x58ca74(0x27e)}),(0x0,_0xd5434[_0x58ca74(0x4b7)])(_0x3eac82,{'children':_0x17ba74('imagefx_safe_mode_label_header')})]}),(0x0,_0xd5434[_0x58ca74(0x4b7)])(_0x2e1632,{'children':_0x17ba74(_0x67797c?_0x58ca74(0x416):_0x58ca74(0x398))})]})]})}),(0x0,_0xd5434['jsx'])(_0xd4aac1['K'],{'title':_0x58ca74(0x31a),'description':_0x58ca74(0x422),'cta':_0x58ca74(0x45b),'open':_0x495903,'width':0x1f4,'onOpenChange':_0x17c3e7,'onConfirm':()=>{_0x43a6ac(!0x1),_0x3e4883(!0x0),_0x17c3e7(!0x1);}})]})]})});})[_0x2f36b9(0x410)]({'componentId':'sc-d8594444-1'})([_0x2f36b9(0x3fc)]),_0x38173f=(0x0,_0x3b8c98['ZP'])(_0x1c7fb9=>{const _0x33a161=_0x2f36b9;let {onSubmitPromptHelper:_0x37e19f,isLoadingPromptHelper:_0x168575,isLoadingImages:_0x20a0c4}=_0x1c7fb9,[_0x3c0e5f]=(0x0,_0x1fa0ad['KO'])(_0x2d610e['jV']),{promptHelperPrompt:_0x3d0e77,setPromptHelperPrompt:_0x3f9aa4}=(0x0,_0x3dcc09['T'])(_0x445c2e=>({'promptHelperPrompt':_0x445c2e[_0x33a161(0x1e8)],'setPromptHelperPrompt':_0x445c2e[_0x33a161(0x1fe)]})),{t:_0x25bfdd}=(0x0,_0x2ba428['$G'])(),_0x3a7538=''===_0x3d0e77;return(0x0,_0xd5434[_0x33a161(0x3db)])(_0x3a69ce,{'children':[(0x0,_0xd5434[_0x33a161(0x4b7)])(_0x207dbd,{'value':_0x3d0e77,'onChange':_0x38bf32=>{const _0x7472bb=_0x33a161;_0x3f9aa4(_0x38bf32[_0x7472bb(0x2a4)][_0x7472bb(0x2d7)]);},'onKeyDown':_0x277a21=>{const _0x428285=_0x33a161;_0x428285(0x35b)!==_0x277a21[_0x428285(0x356)]||_0x277a21[_0x428285(0x2cf)]||(_0x277a21[_0x428285(0x207)](),_0x37e19f(_0x3d0e77));},'placeholder':_0x25bfdd('imagefx_prompt_helper_placeholder_text')}),(0x0,_0xd5434[_0x33a161(0x4b7)])(_0x4151c0,{'onClick':()=>{_0x37e19f(_0x3d0e77);},'color':_0x3c0e5f,'disabled':_0x3a7538||_0x168575||_0x20a0c4,'icon':_0x33a161(0x436),'iconProps':{'iconSet':_0x33a161(0x46d)},'label':_0x25bfdd(_0x33a161(0x46e))})]});})[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x265)})([_0x2f36b9(0x3fc)]),_0x1b430a=(0x0,_0x3b8c98['ZP'])(_0x3483bb=>{const _0x274351=_0x2f36b9;var _0x428949,_0x2e9d61;let {fetchImageMaskData:_0x1448e8}=_0x3483bb,{t:_0x25e479}=(0x0,_0x2ba428['$G'])(),_0x5588c8=(0x0,_0x284de3['p'])(),_0x1cdad7=(0x0,_0x3b8c98['Fg'])(),{getCurrentImageFxResult:_0x4c3a55,setEditorBaseImage:_0x32d9cc,setCurrentInpaintingPrompt:_0xe47675,imageFxResults:_0x456d6c,editHistoryChain:_0xc519}=(0x0,_0x3dcc09['T'])(_0x58a3f6=>({'getCurrentImageFxResult':_0x58a3f6[_0x274351(0x1dd)],'setEditorBaseImage':_0x58a3f6['setEditorBaseImage'],'setCurrentInpaintingPrompt':_0x58a3f6[_0x274351(0x2e2)],'imageFxResults':_0x58a3f6[_0x274351(0x362)],'editHistoryChain':_0x58a3f6[_0x274351(0x2a9)]})),[,_0x174d90]=(0x0,_0x1fa0ad['KO'])(_0x2d610e['DO']),_0x4601ff=(0x0,_0x55f193['useRef'])(),_0x3bb032=_0x4c3a55(),_0x5442d0=_0x22c01d(null==_0x3bb032?void 0x0:null===(_0x2e9d61=_0x3bb032['images'])||void 0x0===_0x2e9d61?void 0x0:null===(_0x428949=_0x2e9d61['at'](0x0))||void 0x0===_0x428949?void 0x0:_0x428949[_0x274351(0x42d)],_0xc519),_0x534e37=_0x2f901b=>{const _0x207fb2=_0x274351;_0x174d90({'layoutId':null==_0x2f901b?void 0x0:_0x2f901b[_0x207fb2(0x42d)],'layoutMeasure':_0x4601ff}),_0x5588c8({'text':(0x0,_0xd5434[_0x207fb2(0x3db)])(_0x237279,{'children':[(0x0,_0xd5434[_0x207fb2(0x4b7)])(_0x5643d3,{'icon':_0x207fb2(0x2c7),'size':_0x207fb2(0x44f),'isOutlined':!0x0}),_0x25e479(_0x207fb2(0x433))]}),'type':_0x550688['$n'][_0x207fb2(0x31c)],'duration':0xbb8,'style':{'backgroundColor':_0x1cdad7['colors']['aitk-grey-75']}}),_0x2f901b&&(_0x32d9cc(_0x2f901b),_0xe47675(_0x2f901b[_0x207fb2(0x2a2)]),(null==_0x2f901b?void 0x0:_0x2f901b[_0x207fb2(0x286)])&&_0x1448e8(_0x2f901b[_0x207fb2(0x286)]));},_0x41eb46=(null==_0x5442d0?void 0x0:_0x5442d0[_0x274351(0x352)])||(null==_0x3bb032?void 0x0:_0x3bb032['lastMaskedEditImage']);return _0x3bb032&&_0x41eb46?(0x0,_0xd5434['jsxs'])(_0x28a87a,{'children':[(0x0,_0xd5434['jsx'])(_0x2ec72b,{'handleEditImage':_0x534e37,'lastMaskedEditImage':_0x41eb46,'containerText':_0x274351(0x259)}),_0x43ba67['hh']&&_0x263955(_0x41eb46,_0x456d6c[_0x274351(0x2f8)](_0xc519),_0x534e37)]}):(0x0,_0xd5434[_0x274351(0x4b7)])(_0x28a87a,{'children':(0x0,_0xd5434[_0x274351(0x4b7)])(_0x4d2d12,{'children':(0x0,_0xd5434[_0x274351(0x3db)])(_0x5d0419,{'children':[(0x0,_0xd5434[_0x274351(0x4b7)])(_0x3d76dc,{'size':_0x274351(0x336),'icon':'info','iconSet':_0x51cbc8['G'][_0x274351(0x46d)]}),_0x25e479(_0x274351(0x1ec))]})})});})[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x1da)})(['flex:1;border:none;border-radius:0;background:none;']),_0x5b8656=()=>{const _0x276f33=_0x2f36b9;let {t:_0x23fd18}=(0x0,_0x2ba428['$G'])();if(_0x43ba67['Ai'])return(0x0,_0xd5434['jsxs'])(_0x14f665,{'children':[(0x0,_0xd5434['jsxs'])(_0xd9c2bf,{'children':[(0x0,_0xd5434[_0x276f33(0x4b7)])(_0x5f0ac1,{'src':(0x0,_0x4ba630['AC'])(_0x276f33(0x2bb))}),(0x0,_0xd5434[_0x276f33(0x4b7)])(_0x507fbc,{'children':_0x23fd18(_0x276f33(0x288))}),(0x0,_0xd5434[_0x276f33(0x4b7)])(_0x546363,{'children':_0x23fd18('imagefx_whisk_nudge_text')})]}),(0x0,_0xd5434[_0x276f33(0x4b7)])(_0x4fafe0,{'onClick':()=>{const _0x164bc8=_0x276f33;window[_0x164bc8(0x4ab)](_0x164bc8(0x2f9),_0x164bc8(0x2e6));},'children':_0x23fd18(_0x276f33(0x1d3))})]});},_0x14f665=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x1f0)})(['background-color:',';width:100%;display:flex;flex-direction:row;color:black;padding:1.5rem\x201.5rem;border-radius:0.5rem;justify-content:space-between;'],_0x5ed88f=>_0x5ed88f[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)][_0x2f36b9(0x49b)]),_0xd9c2bf=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':'sc-b912ff35-1'})([_0x2f36b9(0x218)]),_0x5f0ac1=_0x3b8c98['ZP']['img']['withConfig']({'componentId':_0x2f36b9(0x241)})([_0x2f36b9(0x2e8)]),_0x507fbc=_0x3b8c98['ZP']['div'][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x487)})(['',';'],_0x1ca1be=>_0x1ca1be[_0x2f36b9(0x33a)][_0x2f36b9(0x355)]['mdTitleMedium']),_0x546363=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)]['withConfig']({'componentId':_0x2f36b9(0x468)})(['',';'],_0x25bf2f=>_0x25bf2f[_0x2f36b9(0x33a)][_0x2f36b9(0x355)][_0x2f36b9(0x1d8)]),_0x4fafe0=_0x3b8c98['ZP'][_0x2f36b9(0x430)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x24e)})(['',';'],_0x12570e=>_0x12570e[_0x2f36b9(0x33a)][_0x2f36b9(0x355)][_0x2f36b9(0x25d)]);var _0x1bf0cc=_0x2753b3(0x1296c);let _0x281530=()=>{const _0x3bbbbc=_0x2f36b9;let {updateUserImagesDict:_0x16db4c}=(0x0,_0x3dcc09['T'])(_0x287684=>({'updateUserImagesDict':_0x287684[_0x3bbbbc(0x1f2)]})),{t:_0x4674e4}=(0x0,_0x2ba428['$G'])();if(!_0x43ba67['Ze'])return;let _0x4cf97e=(_0x1aa65e,_0x20eb9c)=>{let _0x146490={'imageType':_0x20eb9c,'rawImageBytes':(0x0,_0x4ba630['RU'])(_0x1aa65e)};_0x20eb9c&&_0x16db4c(_0x146490);};return(0x0,_0xd5434[_0x3bbbbc(0x3db)])(_0x37ae29,{'children':[(0x0,_0xd5434[_0x3bbbbc(0x4b7)])(_0x323e26['G'],{'buttonText':_0x4674e4(_0x3bbbbc(0x346)),'onImageUpload':_0x360229=>{const _0x3672f3=_0x3bbbbc;_0x4cf97e(_0x360229,_0x550688['Lt'][_0x3672f3(0x393)]);}}),(0x0,_0xd5434[_0x3bbbbc(0x4b7)])(_0x323e26['G'],{'buttonText':_0x4674e4(_0x3bbbbc(0x399)),'onImageUpload':_0x52e7a6=>{const _0x5005f4=_0x3bbbbc;_0x4cf97e(_0x52e7a6,_0x550688['Lt'][_0x5005f4(0x3ba)]);}}),(0x0,_0xd5434[_0x3bbbbc(0x4b7)])(_0x323e26['G'],{'buttonText':_0x4674e4(_0x3bbbbc(0x48c)),'onImageUpload':_0x3b3a99=>{const _0x3b26de=_0x3bbbbc;_0x4cf97e(_0x3b3a99,_0x550688['Lt'][_0x3b26de(0x208)]);}})]});},_0x37ae29=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x258)})([_0x2f36b9(0x388)]),_0x1d6e3d=_0x4e82af[_0x2f36b9(0x46b)](_0xf93c09=>_0x2f36b9(0x243)!==_0xf93c09['value']),_0x6c2345=_0x4df26f=>{const _0x5eb3c0=_0x2f36b9;var _0xbc97ec;let {imageFxCarouselSwiperRef:_0x103008,placeholder:_0x58232c,onSubmit:_0x23a924,onSubmitPromptHelper:_0xf19ff0,onSubmitPromptlessPrompting:_0x2738ac,isLoadingImages:_0x2cab86,isLoadingEnhancedPrompt:_0x58610f,isLoadingPromptHelper:_0x3db2b6,isLoadingSegments:_0x58b89f,className:_0x132c8e,fetchImages:_0xc6d9ac,fetchSegments:_0x472c9a,fetchImageMaskData:_0x18877c}=_0x4df26f,{imageFxResults:_0x39c3ed,setIsGridMode:_0x5e3176,setActiveCarouselIndex:_0x558dfc,isEditMode:_0x4c10ce,currentToolboxTab:_0x292f6a,setCurrentToolboxTab:_0x2609c5,getCurrentImageFxResult:_0x83aaef,setEditorBaseImage:_0x44ee7f,addDrawingOperation:_0x454847}=(0x0,_0x3dcc09['T'])(_0x2e35d9=>({'imageFxResults':_0x2e35d9[_0x5eb3c0(0x362)],'setIsGridMode':_0x2e35d9[_0x5eb3c0(0x2e7)],'setActiveCarouselIndex':_0x2e35d9[_0x5eb3c0(0x492)],'isEditMode':_0x2e35d9[_0x5eb3c0(0x390)],'currentToolboxTab':_0x2e35d9[_0x5eb3c0(0x348)],'setCurrentToolboxTab':_0x2e35d9[_0x5eb3c0(0x309)],'getCurrentImageFxResult':_0x2e35d9[_0x5eb3c0(0x1dd)],'setEditorBaseImage':_0x2e35d9[_0x5eb3c0(0x204)],'addDrawingOperation':_0x2e35d9[_0x5eb3c0(0x38f)]})),_0x3ff5b9=(0x0,_0x4ba630['d$'])(),[_0x406ee4]=(0x0,_0x1fa0ad['KO'])(_0x2d610e['jV']),{elementRef:_0x1ea89e,element:_0x3744b0}=(0x0,_0x1bf0cc['h'])(),{elementRef:_0x139e43,element:_0x50ee39}=(0x0,_0x1bf0cc['h'])(),[_0x4f971d,_0x484b66]=(0x0,_0x55f193['useState'])(!0x1),_0x1d65a5=null==_0x50ee39?void 0x0:null===(_0xbc97ec=_0x50ee39[_0x5eb3c0(0x3b4)]['at'](0x0))||void 0x0===_0xbc97ec?void 0x0:_0xbc97ec[_0x5eb3c0(0x322)],_0x1f7079=void 0x0===_0x1d65a5||!_0x4c10ce&&_0x4f971d,_0x2298d6=void 0x0!==_0x1d65a5&&!(_0x1d65a5>0x28a)&&!_0x4f971d,_0x4f7149=()=>{_0x484b66(!_0x4f971d);},_0x86aceb=((()=>{const _0x3679ce=_0x5eb3c0;var _0x2d38c5,_0x3b7d1f,_0x17c380;let _0x5460b7=null==_0x50ee39?void 0x0:null===(_0x2d38c5=_0x50ee39['borderBoxSize']['at'](0x0))||void 0x0===_0x2d38c5?void 0x0:_0x2d38c5[_0x3679ce(0x3b5)],_0x54d8f5=null==_0x3744b0?void 0x0:null===(_0x3b7d1f=_0x3744b0[_0x3679ce(0x360)]['at'](0x0))||void 0x0===_0x3b7d1f?void 0x0:_0x3b7d1f[_0x3679ce(0x3b5)],_0x9e030=null==_0x3744b0?void 0x0:null===(_0x17c380=_0x3744b0['contentBoxSize']['at'](0x0))||void 0x0===_0x17c380?void 0x0:_0x17c380[_0x3679ce(0x322)];return _0x5460b7&&_0x54d8f5&&_0x9e030?Math['max'](Math['min'](_0x54d8f5-_0x5460b7,_0x9e030),0x1b8):0x1b8;})()),_0x36caa2=_0x83aaef(),_0x43c816=!!(null==_0x36caa2?void 0x0:_0x36caa2[_0x5eb3c0(0x352)]);(0x0,_0x55f193[_0x5eb3c0(0x38a)])(()=>{_0x36caa2&&_0x43c816&&_0x484b66(!0x1);},[_0x36caa2,_0x43c816]);let _0x33bd4b=(0x0,_0x348c3f['m6'])({'imageFxResults':_0x39c3ed,'currentImageFxResult':_0x36caa2,'isLoadingImages':_0x2cab86,'color':_0x406ee4,'setEditorBaseImage':_0x44ee7f,'addDrawingOperation':_0x454847}),_0x3d0057=_0x5eb3c0(0x243)===_0x292f6a?'SETTINGS':_0x292f6a;return(0x0,_0xd5434[_0x5eb3c0(0x3db)])(_0x40f629,{'className':_0x132c8e,'children':[(0x0,_0xd5434['jsx'])(_0x18ea23,{'children':(0x0,_0xd5434[_0x5eb3c0(0x4b7)])(_0x5b8656,{})}),(0x0,_0xd5434['jsxs'])(_0x6f1fde,{'ref':_0x1ea89e,'children':[(0x0,_0xd5434[_0x5eb3c0(0x4b7)])(_0x276a75,{'isLoadingImage':_0x2cab86||_0x58610f,'colorTheme':_0x406ee4}),(0x0,_0xd5434[_0x5eb3c0(0x4b7)])(_0x588bce,{'$size':_0x86aceb,'children':(0x0,_0xd5434[_0x5eb3c0(0x4b7)])(_0x28021d,{'images':_0x33bd4b,'imageFxCarouselSwiperRef':_0x103008,'isLoadingImages':_0x2cab86,'isLoadingSegments':_0x58b89f,'onGridCardClick':_0x5d6ec7=>{_0x558dfc(_0x5d6ec7),_0x5e3176(!0x1);}})}),(0x0,_0xd5434[_0x5eb3c0(0x3db)])(_0x143f52,{'ref':_0x139e43,'children':[(0x0,_0xd5434[_0x5eb3c0(0x4b7)])(_0x200d82,{'isLoadingImages':_0x2cab86,'isLoadingSegments':_0x58b89f}),(0x0,_0xd5434[_0x5eb3c0(0x4b7)])(_0xf348a0,{'children':(0x0,_0xd5434[_0x5eb3c0(0x3db)])(_0x24f3b4['A'],{'transition':{'type':_0x5eb3c0(0x215),'duration':0.8,'bounce':0x0},'children':[!_0x4c10ce&&(0x0,_0xd5434[_0x5eb3c0(0x3db)])(_0xc1a19b,{'layout':!0x0,'style':{..._0x35f85c['gK'],'flex':2.5,'maxHeight':_0x2298d6?_0x5eb3c0(0x4a6):_0x5eb3c0(0x39a)},'children':[(0x0,_0xd5434[_0x5eb3c0(0x4b7)])(_0x281530,{}),(0x0,_0xd5434[_0x5eb3c0(0x4b7)])(_0x5d931d['H'],{'onSubmit':_0x23a924,'placeholder':_0x58232c,'isCollapsed':_0x2298d6,'toggleIsCollapsed':_0x4f7149,'renderPlaceholder':_0x574a1b=>{const _0x30feda=_0x5eb3c0;let {children:_0x49bdc9,attributes:_0x41fd81}=_0x574a1b;return(0x0,_0xd5434[_0x30feda(0x4b7)])(_0x1e4468['_'],{'attributes':_0x41fd81,'children':_0x49bdc9});},'children':(0x0,_0xd5434[_0x5eb3c0(0x4b7)])(_0x571395,{'onSubmit':_0x23a924,'onSubmitPromptHelper':_0xf19ff0,'onSubmitPromptlessPrompting':_0x2738ac,'isLoading':_0x2cab86||_0x58610f,'isLoadingPromptHelper':_0x3db2b6})})]}),(0x0,_0xd5434['jsx'])(_0x5542be,{'layout':!0x0,'style':{..._0x35f85c['gK']},'$isCollapsed':_0x1f7079,'$isFullyExpanded':_0x2298d6||_0x4c10ce,'children':(0x0,_0xd5434[_0x5eb3c0(0x4b7)])(_0x1e10d9,{'color':_0x406ee4,'currentTabValue':_0x3d0057,'onTabClick':_0x444beb=>{const _0x4cb74f=_0x5eb3c0;_0x55cb28(_0x444beb)?(_0x1f7079&&_0x484b66(!0x1),_0x2609c5(_0x444beb)):console[_0x4cb74f(0x34c)](_0x4cb74f(0x2b9),_0x444beb);},'tabs':_0x1d6e3d[_0x5eb3c0(0x46b)](_0x59dd65=>_0x4c10ce?_0x5eb3c0(0x36f)===_0x59dd65[_0x5eb3c0(0x2d7)]:_0x5eb3c0(0x36f)!==_0x59dd65['value']),'isCollapsed':_0x1f7079,'isCollapsible':_0x4f971d,'toggleIsCollapsed':_0x4f7149,'hideToggle':_0x4c10ce,'children':(0x0,_0xd5434['jsx'])(_0x3bac4a,{'currentTabValue':_0x3d0057,'onSubmit':_0x23a924,'onSubmitPromptHelper':_0xf19ff0,'placeholder':_0x58232c,'isLoadingImages':_0x2cab86,'isLoadingEnhancedPrompt':_0x58610f,'isLoadingPromptHelper':_0x3db2b6,'isLoadingSegments':_0x58b89f,'fetchImages':_0xc6d9ac,'fetchSegments':_0x472c9a,'fetchImageMaskData':_0x18877c})})})]},_0x3ff5b9)})]})]}),(0x0,_0xd5434['jsx'])(_0xd75610,{})]});},_0x40f629=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)]['withConfig']({'componentId':_0x2f36b9(0x3e8)})(['',_0x2f36b9(0x1f6),_0x2f36b9(0x334)],_0x5a0d6d['VV'],_0x1527fc=>_0x1527fc[_0x2f36b9(0x33a)]['breakpoints'][_0x2f36b9(0x1ea)]),_0x6f1fde=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x4bf)})([_0x2f36b9(0x267)]),_0x18ea23=_0x3b8c98['ZP']['div'][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x4ba)})([_0x2f36b9(0x4b6)]),_0x143f52=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x49a)})(['isolation:isolate;display:flex;flex-direction:column;flex:1;gap:0.5rem;height:100%;max-width:32rem;min-width:32rem;max-height:64rem;']),_0xf348a0=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':'sc-c44bf9e2-4'})([_0x2f36b9(0x441)]),_0xc1a19b=(0x0,_0x3b8c98['ZP'])(_0x2b92ec['E']['div'])[_0x2f36b9(0x410)]({'componentId':'sc-c44bf9e2-5'})([_0x2f36b9(0x2c4),'){background:',';',';}'],_0x13b7d0=>_0x13b7d0[_0x2f36b9(0x33a)][_0x2f36b9(0x3a6)]['laptop'],_0x175d88=>_0x175d88['theme'][_0x2f36b9(0x30a)][_0x2f36b9(0x314)],_0x382c68=>_0x382c68['theme']['styles'][_0x2f36b9(0x495)]),_0x5542be=(0x0,_0x3b8c98['ZP'])(_0x2b92ec['E']['div'])[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x37c)})([_0x2f36b9(0x1de),';','\x20',''],_0x507cd7=>_0x507cd7[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)][_0x2f36b9(0x314)],_0x47c109=>_0x47c109[_0x2f36b9(0x33a)][_0x2f36b9(0x39e)][_0x2f36b9(0x495)],_0x342c91=>_0x342c91[_0x2f36b9(0x3a8)]?(0x0,_0x3b8c98['iv'])([_0x2f36b9(0x24c)]):_0x342c91[_0x2f36b9(0x2bf)]?(0x0,_0x3b8c98['iv'])([_0x2f36b9(0x394)]):(0x0,_0x3b8c98['iv'])([_0x2f36b9(0x47f),_0x2f36b9(0x451)],0x15e)),_0x1e10d9=(0x0,_0x3b8c98['ZP'])(_0x3686fe['v'])['withConfig']({'componentId':_0x2f36b9(0x49d)})([_0x2f36b9(0x4af)]),_0x588bce=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x45f)})([_0x2f36b9(0x273),';'],_0x584908=>''['concat'](_0x584908[_0x2f36b9(0x4a0)],'px')),_0xd75610=(0x0,_0x3b8c98['ZP'])(_0x5f5b36['Mp'])['withConfig']({'componentId':_0x2f36b9(0x21f)})([_0x2f36b9(0x1e9),';'],_0x861869=>_0x861869[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)]['aitk-white-50']),_0x161f94=_0x54762b=>{const _0x214803=_0x2f36b9;let {imageFxCarouselSwiperRef:_0x737773,placeholder:_0x1f1429,onSubmit:_0x23d4f8,onSubmitPromptHelper:_0x283666,isLoadingImages:_0x22802f,isLoadingEnhancedPrompt:_0x2cbe81,isLoadingPromptHelper:_0x17282e,isLoadingSegments:_0x51ea64,className:_0x854f1d,fetchImages:_0x2d5c8f,fetchSegments:_0xc23f2a,fetchImageMaskData:_0x469fb0}=_0x54762b,[_0x48aaa7]=(0x0,_0x1fa0ad['KO'])(_0x2d610e['jV']),{imageFxResults:_0x5d2732,getCurrentImageFxResult:_0x57119c,isEditMode:_0x5b4a64,setEditorBaseImage:_0x429329,currentToolboxTab:_0x3713ec,setCurrentToolboxTab:_0xbb9e47,addDrawingOperation:_0x211b54}=(0x0,_0x3dcc09['T'])(_0x5694b6=>({'imageFxResults':_0x5694b6['imageFxResults'],'getCurrentImageFxResult':_0x5694b6[_0x214803(0x1dd)],'isEditMode':_0x5694b6[_0x214803(0x390)],'setEditorBaseImage':_0x5694b6[_0x214803(0x204)],'currentToolboxTab':_0x5694b6[_0x214803(0x348)],'setCurrentToolboxTab':_0x5694b6['setCurrentToolboxTab'],'addDrawingOperation':_0x5694b6['addDrawingOperation']})),_0x300fc8=(0x0,_0x348c3f['m6'])({'imageFxResults':_0x5d2732,'currentImageFxResult':_0x57119c(),'isLoadingImages':_0x22802f,'color':_0x48aaa7,'setEditorBaseImage':_0x429329,'hotbarItems':[{'type':_0x214803(0x4c0),'value':_0x214803(0x341)},{'type':'ICON','value':_0x214803(0x4ce)},{'type':_0x214803(0x4c0),'value':'DOWNLOAD'},{'type':'THREE_DOT_MENU','options':[{'type':_0x214803(0x4c0),'value':_0x214803(0x2bc)},..._0x43ba67['MF']?[{'type':'ICON','value':_0x214803(0x251)}]:[],{'type':'ICON','value':_0x214803(0x256)},{'type':'ICON','value':_0x214803(0x42a)},{'type':'ICON','value':_0x214803(0x24d)}]}],'addDrawingOperation':_0x211b54})[_0x214803(0x413)](_0x2cfc91=>({..._0x2cfc91,'isHotbarFocused':!0x0}));return(0x0,_0xd5434['jsxs'])(_0x33e691,{'className':_0x854f1d,'children':[(0x0,_0xd5434[_0x214803(0x4b7)])(_0x3afc13,{'children':(0x0,_0xd5434[_0x214803(0x4b7)])(_0x11b699,{'images':_0x300fc8,'imageFxCarouselSwiperRef':_0x737773,'isLoadingImages':_0x22802f,'isLoadingSegments':_0x51ea64})}),(0x0,_0xd5434[_0x214803(0x4b7)])(_0x200d82,{'isLoadingImages':_0x22802f,'isLoadingSegments':_0x51ea64}),(0x0,_0xd5434[_0x214803(0x4b7)])(_0x1ca740,{'isCollapsed':!0x1,'isCollapsible':!0x1,'toggleIsCollapsed':()=>{},'color':_0x48aaa7,'currentTabValue':_0x3713ec,'onTabClick':_0xa662e3=>{const _0x3a0627=_0x214803;_0x55cb28(_0xa662e3)?_0xbb9e47(_0xa662e3):console['error'](_0x3a0627(0x2b9),_0xa662e3);},'tabs':_0x4e82af[_0x214803(0x46b)](_0x5a2719=>_0x5b4a64?_0x214803(0x36f)===_0x5a2719[_0x214803(0x2d7)]:_0x214803(0x36f)!==_0x5a2719[_0x214803(0x2d7)]),'children':(0x0,_0xd5434[_0x214803(0x4b7)])(_0x3bac4a,{'currentTabValue':_0x3713ec,'onSubmit':_0x23d4f8,'onSubmitPromptHelper':_0x283666,'placeholder':_0x1f1429,'isLoadingImages':_0x22802f,'isLoadingEnhancedPrompt':_0x2cbe81,'isLoadingPromptHelper':_0x17282e,'isLoadingSegments':_0x51ea64,'fetchImages':_0x2d5c8f,'fetchSegments':_0xc23f2a,'fetchImageMaskData':_0x469fb0})})]});},_0x33e691=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x4c7)})(['padding:0.5rem;',';display:flex;flex-direction:column;overflow:hidden;flex:1;gap:0.5rem;color:',_0x2f36b9(0x471),_0x2f36b9(0x446)],_0x5a0d6d['VV'],_0x1f5c6d=>_0x1f5c6d['theme'][_0x2f36b9(0x30a)][_0x2f36b9(0x268)],_0x4e4491=>_0x4e4491['theme'][_0x2f36b9(0x3a6)][_0x2f36b9(0x1ea)]),_0x3afc13=_0x3b8c98['ZP']['div'][_0x2f36b9(0x410)]({'componentId':'sc-25fc34a5-1'})(['max-height:50%;']),_0x11b699=(0x0,_0x3b8c98['ZP'])(_0x28021d)[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x4b5)})(['max-width:100%;max-height:100%;aspect-ratio:1\x20/\x201;margin:auto;']),_0x1ca740=(0x0,_0x3b8c98['ZP'])(_0x3686fe['v'])[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x252)})([_0x2f36b9(0x4b2)]);var _0x85ba5b=_0x2753b3(0x11a74),_0x30a160=_0x2753b3(0xd8ed);let _0x4356b1=()=>(0x0,_0xd5434[_0x2f36b9(0x4b7)])(_0x85ba5b['Q'],{'background':(0x0,_0xd5434[_0x2f36b9(0x4b7)])(_0x97ac86,{'autoplay':!0x0,'loop':!0x0,'src':_0x2cdacc}),'headline':(0x0,_0xd5434[_0x2f36b9(0x4b7)])(_0x2ba428['cC'],{'i18nKey':_0x2f36b9(0x24b)}),'subheading':(0x0,_0xd5434['jsx'])(_0x2ba428['cC'],{'i18nKey':'error_subheading'}),'hasMedia':!0x0,'body':(0x0,_0xd5434['jsx'])(_0x466bdb['M'],{'color':'BLUE','imageData':{'imageSrc':(0x0,_0x4ba630['Fr'])(_0x2f36b9(0x42b)),'seed':-0x3c3b9995,'prompt':_0x2f36b9(0x20c),'mediaKey':'CAMaJDZiZjRkOTJiLWZkYWItNGU3YS1iYmM4LTRjMDhkNmVhNDBiNCIDQ0FFKiQ0ZjUxYWQ2YS00Y2UyLTRkMzktYjBlNC04MjVkZjcwZTljZGY'},'variant':_0x2f36b9(0x4c8),'isRemixDisabled':!0x0}),'ctas':(0x0,_0xd5434['jsx'])(_0x560aa8,{'children':(0x0,_0xd5434[_0x2f36b9(0x4b7)])(_0x30a160['aV'],{'hasFullLabelOnMobile':!0x0})}),'ctaFirst':!0x0}),_0x97ac86=(0x0,_0x3b8c98['ZP'])(_0x49a209['J5'])[_0x2f36b9(0x410)]({'componentId':'sc-32b73d4a-0'})([_0x2f36b9(0x467),';}'],_0x4dbd81=>_0x4dbd81['theme'][_0x2f36b9(0x30a)]['aitk-blue-700']),_0x560aa8=_0x3b8c98['ZP'][_0x2f36b9(0x2a6)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x210)})([_0x2f36b9(0x262),_0x2f36b9(0x3e4),_0x2f36b9(0x27c)],_0x4595dd=>_0x4595dd[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)]['aitk-blue-300'],_0x548776=>_0x548776['theme']['colors']['aitk-blue-200']),_0x1cde68=()=>{const _0x1d9ef9=_0x2f36b9;let {t:_0x5714ce}=(0x0,_0x2ba428['$G'])(),_0x20123e=(0x0,_0x284de3['p'])(),{setImageSegments:_0x53ee24,setCurrentImageSegmentsBorderImageURL:_0x3af3bf,setBackgroundImageData:_0x18945a}=(0x0,_0x3dcc09['T'])(_0x12d2e5=>({'setImageSegments':_0x12d2e5[_0x1d9ef9(0x432)],'setCurrentImageSegmentsBorderImageURL':_0x12d2e5['setCurrentImageSegmentsBorderImageURL'],'setBackgroundImageData':_0x12d2e5[_0x1d9ef9(0x364)]})),_0x284c66=_0x5bbd96['h'][_0x1d9ef9(0x4b1)][_0x1d9ef9(0x29c)][_0x1d9ef9(0x3eb)](),_0x5225d1=async _0x33fa23=>_0x284c66[_0x1d9ef9(0x368)]({'rawBytes':_0x33fa23,'threshold':0.15},{'onError':()=>_0x20123e({'text':_0x5714ce('imagefx_no_objects_found_error'),'type':_0x550688['$n'][_0x1d9ef9(0x1fb)],'duration':0xbb8}),'onSuccess':_0x5644eb=>{const _0x2bf99c=_0x1d9ef9;var _0x110e2f;let _0x1d61b3=null===(_0x110e2f=_0x5644eb[_0x2bf99c(0x200)])||void 0x0===_0x110e2f?void 0x0:_0x110e2f[_0x2bf99c(0x365)];if(!_0x1d61b3)throw Error(_0x2bf99c(0x391));let _0x4f373d=[..._0x1d61b3[_0x2bf99c(0x413)](_0x119295=>{const _0x26ebcf=_0x2bf99c;let _0x1d083e=_0x119295[_0x26ebcf(0x3af)]?_0x119295[_0x26ebcf(0x3af)][_0x26ebcf(0x413)](_0x49d0a6=>_0x49d0a6[_0x26ebcf(0x2e3)]?_0x49d0a6['contourPoints'][_0x26ebcf(0x413)](_0x23224d=>({'x':(_0x23224d['x']?_0x23224d['x']:0x0)/(_0x119295['width']?_0x119295['width']:0x1),'y':(_0x23224d['y']?_0x23224d['y']:0x0)/(_0x119295[_0x26ebcf(0x1eb)]?_0x119295['height']:0x1)})):[]):[],{minX:_0x4386e8,maxX:_0x56f0ca,minY:_0x572a70,maxY:_0x229c1b}=_0x438134(_0x1d083e[_0x26ebcf(0x287)](_0x3047b5=>_0x3047b5));return{'id':_0x119295['id']?_0x119295['id']:(0x0,_0x4ba630['vV'])(),'contourPoints':_0x1d083e['filter'](_0xc7380d=>_0xc7380d[_0x26ebcf(0x266)]>0x1e),'boundingBox':{'x1':_0x4386e8,'x2':_0x56f0ca,'y1':_0x572a70,'y2':_0x229c1b},'borderImageURL':_0x3ca1b9(_0x1d083e['filter'](_0x40f335=>_0x40f335[_0x26ebcf(0x266)]>0x1e))};})[_0x2bf99c(0x46b)](_0x5301ac=>_0x5301ac[_0x2bf99c(0x2e3)][_0x2bf99c(0x266)]>0x0)][_0x2bf99c(0x3a1)]((_0x5e5673,_0x3eb251)=>_0x3d7a63(_0x5e5673[_0x2bf99c(0x2a3)])-_0x3d7a63(_0x3eb251[_0x2bf99c(0x2a3)])),_0x22b20e=document[_0x2bf99c(0x3df)](_0x2bf99c(0x440)),_0x4159d5=_0x22b20e[_0x2bf99c(0x421)]('2d');if(_0x4159d5)for(let _0x38441f of(_0x22b20e['width']=0x1f4,_0x22b20e[_0x2bf99c(0x1eb)]=0x1f4,_0x4f373d)){let _0x279187=new Image();_0x279187[_0x2bf99c(0x3ab)]=_0x38441f[_0x2bf99c(0x27f)],_0x279187[_0x2bf99c(0x498)]=function(){const _0x1424a1=_0x2bf99c;_0x4159d5[_0x1424a1(0x4ad)](_0x279187,0x0,0x0),_0x3af3bf(_0x22b20e[_0x1424a1(0x38c)]());};}_0x18945a(_0x1d902a(_0x4f373d)),_0x53ee24(_0x4f373d);}});return{..._0x284c66,'fetchImageSegments':_0x5225d1};},_0x3d7a63=_0x463dc0=>((_0x463dc0['x2']||0x1)-(_0x463dc0['x1']||0x0))*((_0x463dc0['y2']||0x1)-(_0x463dc0['y1']||0x0)),_0x438134=_0x1b3c6d=>{const _0xb43588=_0x2f36b9;let _0x430cce=Number[_0xb43588(0x205)],_0x316038=Number[_0xb43588(0x29d)],_0x2d1cd4=Number[_0xb43588(0x205)],_0x36c0e9=Number['NEGATIVE_INFINITY'];for(let {x:_0x51a82f,y:_0x32556b}of _0x1b3c6d)_0x430cce=Math[_0xb43588(0x2c3)](_0x430cce,_0x51a82f),_0x316038=Math[_0xb43588(0x254)](_0x316038,_0x51a82f),_0x2d1cd4=Math[_0xb43588(0x2c3)](_0x2d1cd4,_0x32556b),_0x36c0e9=Math[_0xb43588(0x254)](_0x36c0e9,_0x32556b);return{'minX':_0x430cce,'maxX':_0x316038,'minY':_0x2d1cd4,'maxY':_0x36c0e9};},_0x3ca1b9=_0xf46fd6=>{const _0x26d469=_0x2f36b9;let _0x54a60c=document[_0x26d469(0x3df)]('canvas'),_0x1394ca=_0x54a60c[_0x26d469(0x421)]('2d');if(!_0x1394ca||(_0x54a60c[_0x26d469(0x48a)]=0x1f4,_0x54a60c['height']=0x1f4,!_0xf46fd6[0x0]))return'';for(let _0x221ed5 of(_0x1394ca[_0x26d469(0x4a3)]=0x1,_0x1394ca[_0x26d469(0x1e1)]=_0x26d469(0x40a)[_0x26d469(0x2f8)](_0x348c3f['Yf']['r'],',\x20')[_0x26d469(0x2f8)](_0x348c3f['Yf']['g'],',\x20')[_0x26d469(0x2f8)](_0x348c3f['Yf']['b'],')'),_0x1394ca[_0x26d469(0x2c1)]=0x2,_0x1394ca[_0x26d469(0x248)]=_0x26d469(0x228),_0x1394ca[_0x26d469(0x48e)]='round',_0x1394ca[_0x26d469(0x1d9)]([0x6,0x6]),_0xf46fd6)){for(let _0x462b5e of(_0x1394ca['beginPath'](),_0x1394ca[_0x26d469(0x274)](_0x221ed5[0x0]['x']*_0x54a60c[_0x26d469(0x48a)],_0x221ed5[0x0]['y']*_0x54a60c[_0x26d469(0x1eb)]),_0x221ed5))_0x1394ca['lineTo'](_0x462b5e['x']*_0x54a60c[_0x26d469(0x48a)],_0x462b5e['y']*_0x54a60c[_0x26d469(0x1eb)]);_0x1394ca[_0x26d469(0x3e6)](),_0x1394ca[_0x26d469(0x4d1)]();}return _0x54a60c[_0x26d469(0x38c)]();},_0x1d902a=_0x37bf3f=>{const _0x1a6ee1=_0x2f36b9;let _0x1b0c9c=document[_0x1a6ee1(0x3df)]('canvas'),_0x367c1c=_0x1b0c9c[_0x1a6ee1(0x421)]('2d');if(!_0x367c1c)return;for(let _0x548fd2 of(_0x1b0c9c[_0x1a6ee1(0x48a)]=0x1f4,_0x1b0c9c[_0x1a6ee1(0x1eb)]=0x1f4,_0x37bf3f))_0x367c1c=(0x0,_0x348c3f['yd'])(_0x367c1c,0x1f4,0x1f4,_0x548fd2['contourPoints']);let _0x133348=_0x367c1c[_0x1a6ee1(0x4cd)](0x0,0x0,_0x1b0c9c[_0x1a6ee1(0x48a)],_0x1b0c9c[_0x1a6ee1(0x1eb)]);return(0x0,_0x348c3f['tD'])(_0x133348);};var _0x3f8813=_0x2753b3(0xbc64),_0x273d29=_0x2753b3(0x8213),_0x91a05a=_0x2753b3(0x140ec);let _0x222fc2=()=>{const _0x4a658f=_0x2f36b9;var _0x4e1106,_0xbb5378,_0x5a4eaa,_0x365e6d;let {t:_0x383106}=(0x0,_0x2ba428['$G'])(),_0xee8ebe=(0x0,_0x284de3['p'])(),[_0x423a38]=(0x0,_0x1fa0ad['KO'])(_0x2d610e['Zb']),{data:_0x5baccf}=(0x0,_0x273d29[_0x4a658f(0x3ae)])(),{currentRefineProperties:_0x4b4ade,removeImageFxResultById:_0x3676de,setImageFxResult:_0x1a717c,setRealtimeImageFxResult:_0x5f385a,isEditMode:_0x25956b,isUsingRealtime:_0x36fe44,exitAndResetEditor:_0x5c123a,getCurrentImageFxResult:_0x3d6bb9,editor:_0x31739b}=(0x0,_0x3dcc09['T'])(_0x4986a9=>({'currentRefineProperties':_0x4986a9[_0x4a658f(0x447)],'removeImageFxResultById':_0x4986a9[_0x4a658f(0x379)],'setImageFxResult':_0x4986a9[_0x4a658f(0x34b)],'setRealtimeImageFxResult':_0x4986a9['setRealtimeImageFxResult'],'isUsingRealtime':_0x4986a9[_0x4a658f(0x366)],'isEditMode':_0x4986a9[_0x4a658f(0x390)],'exitAndResetEditor':_0x4986a9[_0x4a658f(0x331)],'getCurrentImageFxResult':_0x4986a9[_0x4a658f(0x1dd)],'editor':_0x4986a9[_0x4a658f(0x392)]})),[,_0x26edc4]=(0x0,_0x1fa0ad['KO'])(_0x2d610e['DF']),[_0x25342b]=(0x0,_0x1fa0ad['KO'])(_0x2d610e['Y5']),{seedInfo:_0x141844,numImages:_0x5e128a,isSeedLocked:_0x21733a,imageModelInputType:_0x346abe}=_0x4b4ade,_0x2d3c10=null!==(_0x365e6d=null===(_0x5a4eaa=_0x3d6bb9())||void 0x0===_0x5a4eaa?void 0x0:null===(_0xbb5378=_0x5a4eaa[_0x4a658f(0x426)])||void 0x0===_0xbb5378?void 0x0:null===(_0x4e1106=_0xbb5378[0x0])||void 0x0===_0x4e1106?void 0x0:_0x4e1106[_0x4a658f(0x330)])&&void 0x0!==_0x365e6d?_0x365e6d:(0x0,_0x4ba630['qb'])(),_0x45687c=null===_0x141844[_0x4a658f(0x2c8)],_0x37d405=(0x0,_0x4ba630['qb'])();_0x21733a&&(_0x37d405=_0x45687c?_0x141844['seed']:_0x2d3c10);let _0x441e40=_0x598b47=>{const _0x1078ca=_0x4a658f;let {imagePrompt:_0x39f3f7,maskPrompt:_0x5ddacf,id:_0x8e1219,base64BaseImage:_0x2aaa3c,base64MaskImage:_0x225f8d,isExpandedPrompt:_0x84731d,previousMediaKey:_0x1b3b23,userImagesArray:_0x1f568e}=_0x598b47;if(_0x1a717c({'partialResult':{'id':_0x8e1219,'prompt':_0x39f3f7,'refineProperties':{'seedInfo':{'seed':_0x37d405,'imageSetIndex':null},'temperature':_0x4b4ade[_0x1078ca(0x38e)],'numImages':_0x5e128a,'isSeedLocked':_0x21733a,'imageModelInputType':_0x346abe,'aspectRatio':_0x4b4ade['aspectRatio']}},'isNewCurrentResult':!_0x5ddacf}),!(null==_0x5baccf?void 0x0:_0x5baccf[_0x1078ca(0x236)]))throw Error(_0x1078ca(0x478));if(void 0x0!==_0x1f568e){let _0x57725f={'userInput':{'candidatesCount':_0x36fe44?0x1:_0x5e128a,'prompts':[_0x39f3f7],'seed':_0x37d405,'userImages':_0x1f568e,'safetyMode':_0x43ba67['dC']?_0x25342b?'SAFETY_MODE_STRICT':_0x1078ca(0x412):void 0x0},'clientContext':{'previousMediaGenerationId':_0x1b3b23,'sessionId':_0x423a38,'tool':_0x550688['Nv']['IMAGEFX']},'modelInput':{'modelNameType':(0x0,_0x348c3f['Jz'])(_0x346abe,_0x4b4ade[_0x1078ca(0x245)])}};return(0x0,_0x91a05a['ql'])({'bearerToken':_0x5baccf[_0x1078ca(0x236)],'request':_0x57725f});}{let _0x18e8c2={'userInput':{'candidatesCount':_0x36fe44?0x1:_0x5e128a,'prompts':[_0x39f3f7],'maskPrompts':_0x5ddacf?[_0x5ddacf]:void 0x0,'seed':_0x37d405,'rawBytes':_0x2aaa3c,'rawMaskBytes':_0x225f8d,'isExpandedPrompt':!!_0x84731d||void 0x0,'safetyMode':_0x43ba67['dC']?_0x25342b?_0x1078ca(0x35f):_0x1078ca(0x412):void 0x0},'clientContext':{'previousMediaGenerationId':_0x1b3b23,'sessionId':_0x423a38,'tool':_0x550688['Nv'][_0x1078ca(0x282)]},'modelInput':{'modelNameType':(0x0,_0x348c3f['Jz'])(_0x346abe,_0x4b4ade[_0x1078ca(0x245)])},'aspectRatio':_0x4b4ade[_0x1078ca(0x245)]};return(0x0,_0x91a05a['XD'])({'bearerToken':_0x5baccf[_0x1078ca(0x236)],'request':_0x18e8c2});}};return(0x0,_0x3f8813['D'])(_0x1630f4=>_0x441e40(_0x1630f4),{'onSuccess':(_0x173790,_0x54f1ae)=>{const _0x491434=_0x4a658f;var _0x3398f3,_0x3ea732,_0x5c5288,_0x26149f,_0x1d7be3,_0x2f5727,_0x2274d7;let _0x30b482=null===(_0x5c5288=_0x173790[_0x491434(0x200)])||void 0x0===_0x5c5288?void 0x0:null===(_0x3ea732=_0x5c5288[_0x491434(0x283)])||void 0x0===_0x3ea732?void 0x0:null===(_0x3398f3=_0x3ea732['at'](0x0))||void 0x0===_0x3398f3?void 0x0:_0x3398f3['generatedImages'];if(!_0x30b482)throw Error(_0x491434(0x401));let _0x22d2b0=null!==(_0x2274d7=null===(_0x2f5727=_0x173790[_0x491434(0x200)])||void 0x0===_0x2f5727?void 0x0:null===(_0x1d7be3=_0x2f5727[_0x491434(0x283)])||void 0x0===_0x1d7be3?void 0x0:null===(_0x26149f=_0x1d7be3['at'](0x0))||void 0x0===_0x26149f?void 0x0:_0x26149f['prompt'])&&void 0x0!==_0x2274d7?_0x2274d7:_0x54f1ae[_0x491434(0x299)],_0x39185d=_0x30b482[_0x491434(0x46b)](Boolean)[_0x491434(0x413)](_0x13539c=>{const _0xb86749=_0x491434;var _0x5f5629;return{'seed':null!==(_0x5f5629=_0x13539c['seed'])&&void 0x0!==_0x5f5629?_0x5f5629:_0x37d405,'imageSrc':(0x0,_0x4ba630['e5'])(_0x13539c[_0xb86749(0x494)]),'mediaKey':_0x13539c[_0xb86749(0x2c0)],'prompt':_0x22d2b0};})[_0x491434(0x46b)](_0x5e2a4f=>!0x0===_0x466bdb['t'][_0x491434(0x480)](_0x5e2a4f)[_0x491434(0x1fa)]);if(_0x36fe44){let _0x33be4e=_0x39185d['at'](0x0);if(!_0x33be4e)throw Error(_0x491434(0x242));_0x5f385a({..._0x33be4e});}else{let _0x2e6df0=_0x54f1ae[_0x491434(0x2b6)]&&_0x31739b[_0x491434(0x39d)]?{'seed':_0x31739b[_0x491434(0x39d)]['seed'],'imageSrc':_0x31739b[_0x491434(0x39d)]['imageSrc'],'prompt':_0x54f1ae[_0x491434(0x340)]?_0x54f1ae[_0x491434(0x340)]:_0x54f1ae[_0x491434(0x299)],'mediaKey':_0x31739b['baseImage'][_0x491434(0x42d)],'maskBytes':_0x54f1ae[_0x491434(0x2b6)]}:void 0x0;_0x1a717c({'partialResult':{'id':_0x54f1ae['id'],'images':_0x39185d,'lastMaskedEditImage':_0x2e6df0},'isNewCurrentResult':!0x0}),_0x25956b&&_0x5c123a();}},'onError':(_0x43ee13,_0xb81639)=>{const _0x3874c5=_0x4a658f;let _0x5e9a92=(0x0,_0x4ba630['rY'])(_0x43ee13);switch(_0x3676de(_0xb81639['id']),_0x5e9a92){case 0x190:_0xee8ebe({'text':(0x0,_0xd5434[_0x3874c5(0x4b7)])(_0x2ba428['cC'],{'i18nKey':_0x3874c5(0x376),'components':{'IconButton':(0x0,_0xd5434[_0x3874c5(0x4b7)])(_0x2a635a,{'icon':_0x3874c5(0x2c7),'label':_0x383106('imagefx_fetch_image_error_400'),'onClick':()=>_0x26edc4(!0x0),'iconProps':{'size':_0x3874c5(0x44b)}})}}),'type':_0x550688['$n'][_0x3874c5(0x1fb)],'duration':0x2710});break;case 0x193:_0xee8ebe({'text':_0x383106('imagefx_unsupported_country_headline'),'type':_0x550688['$n'][_0x3874c5(0x1fb)],'duration':0x2710});break;case 0x1ad:_0xee8ebe({'text':(0x0,_0xd5434[_0x3874c5(0x4b7)])(_0x2ba428['cC'],{'i18nKey':'quota_limit_error_429','components':{'a':(0x0,_0xd5434['jsx'])(_0x56e82f,{})}}),'type':_0x550688['$n'][_0x3874c5(0x1fb)],'duration':0x2710});break;case 0x1f7:_0xee8ebe({'text':_0x383106(_0x3874c5(0x307)),'type':_0x550688['$n'][_0x3874c5(0x1fb)],'duration':0x2710});break;default:_0xee8ebe({'text':_0x383106('imagefx_fetch_image_error_500'),'type':_0x550688['$n'][_0x3874c5(0x1fb)],'duration':0x2710});}}});},_0x56e82f=_0x3b8c98['ZP']['a'][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x3fe)})(['text-decoration:underline;']),_0x2a635a=(0x0,_0x3b8c98['ZP'])(_0x46433c['h'])['withConfig']({'componentId':_0x2f36b9(0x2f1)})([_0x2f36b9(0x249)]);var _0x10b4f7=_0x2753b3(0xc96c),_0x18ba2e=_0x2753b3(0xa569),_0xfe6193=_0x2753b3(0x3318);let _0x20af05=_0xa000dc=>{const _0x3f0a69=_0x2f36b9;let {rawPrompt:_0x25139e,toolName:_0x5dfb4b,onSuccess:_0x2ab430}=_0xa000dc,[_0xfe0aaa]=(0x0,_0x1fa0ad['KO'])(_0x2d610e['Zb']),{t:_0x491ca6}=(0x0,_0x2ba428['$G'])(),_0x20e1ee=(0x0,_0x284de3['p'])(),_0x5e0fe6=_0x5bbd96['h']['media'][_0x3f0a69(0x2de)][_0x3f0a69(0x3eb)](),_0x3c9812=async()=>{const _0xbe5d2e=_0x3f0a69;let _0x427b3a=(0x0,_0x4ba630['vV'])(),_0x8dcb39={'clientContext':{'sessionId':_0xfe0aaa,'tool':_0x5dfb4b},'rawPrompt':_0x25139e,'imageModel':_0xbe5d2e(0x2ba)};_0x5e0fe6[_0xbe5d2e(0x368)](_0x8dcb39,{'onError':()=>_0x20e1ee({'text':_0x491ca6(_0xbe5d2e(0x4ae)),'type':_0x550688['$n'][_0xbe5d2e(0x1fb)]}),'onSuccess':_0x4bd34b=>_0x2ab430({'data':_0x4bd34b['result'],'input':_0x8dcb39,'id':_0x427b3a})});};return{..._0x5e0fe6,'fetchPromptHelperServer':_0x3c9812};},_0x468578=()=>{const _0x1625de=_0x2f36b9;let {addDrawingOperation:_0x3dd123}=(0x0,_0x3dcc09['T'])(_0x305bcf=>({'addDrawingOperation':_0x305bcf[_0x1625de(0x38f)]})),_0x15750a=_0x5bbd96['h']['imageFx'][_0x1625de(0x2ef)]['useMutation'](),_0x5c1b91=async _0x2138e7=>_0x15750a['mutate']({'encodedMaskBytes':_0x2138e7},{'onSuccess':_0x56ba6c=>{const _0x25c099=_0x1625de;var _0x189126,_0x3e90d2,_0x13e6c1;let _0x20b08d=null===(_0x189126=_0x56ba6c[_0x25c099(0x200)])||void 0x0===_0x189126?void 0x0:_0x189126[_0x25c099(0x3af)],_0x50504d=null===(_0x3e90d2=_0x56ba6c['result'])||void 0x0===_0x3e90d2?void 0x0:_0x3e90d2[_0x25c099(0x48a)],_0x3b3e87=null===(_0x13e6c1=_0x56ba6c[_0x25c099(0x200)])||void 0x0===_0x13e6c1?void 0x0:_0x13e6c1[_0x25c099(0x1eb)];if(!_0x20b08d)return[];_0x3dd123({'paths':_0x20b08d[_0x25c099(0x413)](_0x1034fc=>_0x1034fc[_0x25c099(0x2e3)]?_0x1034fc[_0x25c099(0x2e3)]['map'](_0x17a7c4=>({'x':(_0x17a7c4['x']||0x0)/(_0x50504d||0x1),'y':(_0x17a7c4['y']||0x0)/(_0x3b3e87||0x1)})):[]),'editMode':_0x56ba6c[_0x25c099(0x200)]['isInverted']?_0x25c099(0x3be):_0x25c099(0x41c),'strokeWidth':0x1});}});return{..._0x15750a,'fetchImageMaskData':_0x5c1b91};},_0x515156=_0x59f881=>{const _0x5f5aa6=_0x2f36b9;var _0x2f7f77;let {fetchWorkflowResponse:_0x157ca8,mediaKey:_0x3c981e}=_0x59f881;if(!_0x157ca8||0x0===_0x3c981e['length'])return;let _0x38af35=null===(_0x2f7f77=_0x157ca8[_0x5f5aa6(0x200)])||void 0x0===_0x2f7f77?void 0x0:_0x2f7f77[_0x5f5aa6(0x3f1)];return _0x38af35&&(null==_0x38af35?void 0x0:_0x38af35[_0x5f5aa6(0x266)])!==0x0?(0x0,_0x547914['Uy'])([],_0x13f867=>{const _0x5d9c49=_0x5f5aa6;for(let _0x25b5fd of _0x38af35){var _0x2634fb;if(null===(_0x2634fb=_0x25b5fd['imagePanel'])||void 0x0===_0x2634fb?void 0x0:_0x2634fb[_0x5d9c49(0x31d)])for(let _0x3d40d6 of _0x25b5fd[_0x5d9c49(0x4c4)][_0x5d9c49(0x31d)]){let _0xd8c575=_0x4aecd0(_0x3d40d6);_0xd8c575&&_0x13f867['push'](_0xd8c575);}if(_0x25b5fd[_0x5d9c49(0x264)]){let _0x480499=_0x4aecd0(_0x25b5fd['image']);if(!_0x480499)continue;_0x13f867[_0x5d9c49(0x1e2)](_0x480499);}}}):[];},_0xd1642c=_0x2f9487=>{const _0x38b023=_0x2f36b9;let {mediaKey:_0x170b78,onSuccess:_0x2ea28b,enabled:_0x341c2a}=_0x2f9487,_0x3a5afe=_0x5bbd96['h'][_0x38b023(0x3f1)][_0x38b023(0x1fd)][_0x38b023(0x21a)]({'mediaKey':_0x170b78},{'enabled':_0x341c2a,'onSuccess':_0x1f20e1=>{const _0x311ea3=_0x38b023;let _0x269861=_0x515156({'fetchWorkflowResponse':_0x1f20e1,'mediaKey':_0x170b78});if(_0x269861&&0x0!==_0x269861[_0x311ea3(0x266)])return _0x2ea28b(_0x269861);}});return{..._0x3a5afe,'data':_0x515156({'fetchWorkflowResponse':_0x3a5afe['data'],'mediaKey':_0x170b78})};},_0x4aecd0=_0x63a3c2=>{const _0x3b8421=_0x2f36b9;if(!_0x63a3c2)return;let _0x42e639=null==_0x63a3c2?void 0x0:_0x63a3c2[_0x3b8421(0x330)],_0xc77c34=null==_0x63a3c2?void 0x0:_0x63a3c2['encodedImage'],_0x3337e2=null==_0x63a3c2?void 0x0:_0x63a3c2[_0x3b8421(0x2a2)],_0x345311=null==_0x63a3c2?void 0x0:_0x63a3c2['modelNameType'],_0x181432=null==_0x63a3c2?void 0x0:_0x63a3c2[_0x3b8421(0x2c0)],_0x5b4524=null==_0x63a3c2?void 0x0:_0x63a3c2[_0x3b8421(0x4b9)],_0xe5c403=null==_0x63a3c2?void 0x0:_0x63a3c2[_0x3b8421(0x2da)];if(_0x42e639&&_0xc77c34&&_0x3337e2&&_0x181432)return{'imageSrc':(0x0,_0x4ba630['e5'])(_0xc77c34),'seed':_0x42e639,'prompt':_0x3337e2,'mediaKey':_0x181432,'modelName':_0x345311,'maskBytes':_0x5b4524,'previousMediaKey':_0xe5c403};},_0x55c2cb=()=>{const _0x38ebf6=_0x2f36b9;var _0x271676,_0x4d5fcd;let {handleLogEvent:_0x429923}=(0x0,_0xdb0f29['an'])(),{handleLogUserActivity:_0xb54bfa}=(0x0,_0xdb0f29['pc'])(),_0x5c7a11=(0x0,_0x5a789d[_0x38ebf6(0x202)])(),_0x33e12b=(0x0,_0x59bd68[_0x38ebf6(0x459)])(),{t:_0x3247db}=(0x0,_0x2ba428['$G'])(),[,_0x5932d1]=(0x0,_0x1fa0ad['KO'])(_0x2d610e['jV']),_0x20de6a=(0x0,_0x55f193[_0x38ebf6(0x272)])(null),{isSignedIn:_0x598f56}=(0x0,_0x18ba2e['A'])(),[,_0x149398]=(0x0,_0x1fa0ad['KO'])(_0x2d610e['Cl']),[_0x553b04,_0x257886]=(0x0,_0x1fa0ad['KO'])(_0x2d610e['sJ']),{remix:_0x39e1b2,setImageFxResult:_0x588a40,getCurrentImageFxResult:_0x54c193,isUsingRealtime:_0x190fb5,getCurrentRefineProperties:_0x13b01a,setImageModelType:_0x5ddbb6,setOriginalUserPrompt:_0x713795,setProposedAdjustedPrompt:_0x4281d1,isExplicitPromptExpansionEnabled:_0x462b39,userImagesDict:_0x27b0f1,setEditHistoryChain:_0x4266c9,setAspectRatio:_0x5d9279}=(0x0,_0x3dcc09['T'])(_0x316160=>({'remix':_0x316160[_0x38ebf6(0x40f)],'getCurrentImageFxResult':_0x316160[_0x38ebf6(0x1dd)],'getCurrentRefineProperties':_0x316160[_0x38ebf6(0x370)],'setImageModelType':_0x316160[_0x38ebf6(0x377)],'setAspectRatio':_0x316160[_0x38ebf6(0x2c2)],'isUsingRealtime':_0x316160[_0x38ebf6(0x366)],'setImageFxResult':_0x316160[_0x38ebf6(0x34b)],'setOriginalUserPrompt':_0x316160['setOriginalUserPrompt'],'setProposedAdjustedPrompt':_0x316160[_0x38ebf6(0x255)],'isExplicitPromptExpansionEnabled':_0x316160[_0x38ebf6(0x428)],'userImagesDict':_0x316160[_0x38ebf6(0x387)],'setEditHistoryChain':_0x316160[_0x38ebf6(0x3c3)]})),{isBelowWidth:_0x51f4a9}=(0x0,_0x84d3a0['r'])(_0x525fd6['A'][_0x38ebf6(0x1ea)]),[_0x4b8a59]=(0x0,_0x55f193['useState'])((0x0,_0x35f85c['El'])()),[_0x366783,_0x1fdac3]=(0x0,_0x55f193[_0x38ebf6(0x294)])(''),_0x160976=(0x0,_0x55f193['useRef'])(0x0),{mutate:_0x74faed,isLoading:_0x4a5325}=_0x222fc2(),{fetchImageSegments:_0xa40266,isLoading:_0x5ca3a7}=_0x1cde68(),{fetchImageMaskData:_0x2029cc}=_0x468578(),_0x474952=_0x5bbd96['h'][_0x38ebf6(0x3f8)](),_0x446cb3=(0x0,_0x284de3['p'])(),_0x289c67=_0x5bbd96['h'][_0x38ebf6(0x2cc)][_0x38ebf6(0x38b)][_0x38ebf6(0x3eb)]({'onSuccess':()=>{const _0x12bb36=_0x38ebf6;_0x474952[_0x12bb36(0x2cc)][_0x12bb36(0x297)]['invalidate'](),_0x257886(!0x1),_0x446cb3({'text':_0x3247db(_0x12bb36(0x302)),'type':_0x550688['$n'][_0x12bb36(0x31c)]});},'onError':()=>{const _0x4070af=_0x38ebf6;_0x446cb3({'text':_0x3247db(_0x4070af(0x382)),'type':_0x550688['$n']['ERROR']});}}),{fetchEnhancedPrompt:_0x3a0cb5,isLoading:_0x38e59a}=(0x0,_0xfe6193['Y'])({'userPrompt':(0x0,_0x452c15['Mv'])(_0x33e12b[_0x38ebf6(0x4cc)]),'toolName':_0x550688['dx'][_0x38ebf6(0x363)],'onSuccess':_0x58dbbe=>{const _0x47a55d=_0x38ebf6;var _0x1606e,_0x829708,_0x566720;let {data:_0xfdaa1d,id:_0x5679de,input:_0x414519}=_0x58dbbe,_0x3e144d=null!==(_0x566720=null===(_0x1606e=_0x414519[_0x47a55d(0x3ad)])||void 0x0===_0x1606e?void 0x0:_0x1606e['textPrompt'])&&void 0x0!==_0x566720?_0x566720:'',_0x947c9d=(0x0,_0x452c15['aP'])({'prompt':_0x3e144d,'enhancedPrompt':_0xfdaa1d,'toolName':_0x550688['dx']['IMAGE_FX']});_0x588a40({'partialResult':{'id':_0x5679de,'prompt':_0x3e144d,'normalizedPrompt':(0x0,_0x452c15['Y'])(_0x947c9d),'slatePrompt':_0x947c9d}}),(null===(_0x829708=_0x54c193())||void 0x0===_0x829708?void 0x0:_0x829708['id'])===_0x5679de&&(_0x149398(_0x2bc793=>({..._0x2bc793,'oldWordRects':(0x0,_0xe04d22['Yb'])({'editor':_0x33e12b,'newElements':_0x947c9d})})),_0x33e12b['delete']({'at':{'anchor':_0x33e12b[_0x47a55d(0x497)]([]),'focus':_0x33e12b['end']([])}}),_0x33e12b['insertNodes'](_0x947c9d));}}),{fetchPromptHelperServer:_0x3f74f7,isLoading:_0x4195f0}=_0x20af05({'rawPrompt':(0x0,_0x452c15['Mv'])(_0x33e12b[_0x38ebf6(0x4cc)]),'toolName':_0x550688['dx']['IMAGE_FX'],'onSuccess':_0x2ac27c=>{const _0x3fba54=_0x38ebf6;var _0x585f45,_0x4f10f0;let {data:_0x322425}=_0x2ac27c,_0x569e25=(null===(_0x4f10f0=_0x322425['candidates'])||void 0x0===_0x4f10f0?void 0x0:null===(_0x585f45=_0x4f10f0['at'](0x0))||void 0x0===_0x585f45?void 0x0:_0x585f45[_0x3fba54(0x3ac)])||'';''!==_0x569e25&&(_0x4281d1(_0x569e25),_0x33e12b['delete']({'at':{'anchor':_0x33e12b['start']([]),'focus':_0x33e12b[_0x3fba54(0x214)]([])}}),_0x33e12b[_0x3fba54(0x3c1)]((0x0,_0x452c15['IU'])(_0x569e25)));}}),_0x587bdd=_0x2155c5=>{''!==_0x2155c5&&(_0x713795(_0x2155c5),_0x3f74f7());},_0x45b7de=_0x26fc90=>{const _0x31299e=_0x38ebf6;if(''===_0x26fc90)return;let _0x3171d6=(0x0,_0x4ba630['vV'])(),_0x9bcda9=_0x33e12b[_0x31299e(0x4cc)],_0x4b0df9=(0x0,_0x452c15['Y'])(_0x9bcda9);_0x1fdac3(_0x4b0df9);let _0x595507=null!=_0x26fc90?_0x26fc90:(0x0,_0x452c15['Mv'])(_0x9bcda9);_0x74faed({'imagePrompt':_0x595507,'id':_0x3171d6,'isExpandedPrompt':_0x462b39}),!_0x190fb5&&_0x366783!==_0x4b0df9&&_0x43ba67['_']&&_0x3a0cb5({'prompt':_0x595507,'id':_0x3171d6});},_0x2f2b11=(0x0,_0x348c3f['ER'])(_0x598f56?_0x5c7a11['query'][_0x38ebf6(0x42d)]:''),{isFetching:_0x356fcd}=(0x0,_0x10b4f7['p'])({'mediaKey':_0x2f2b11,'enabled':!!_0x2f2b11,'onSuccess':_0x4195ea=>{const _0x38f979=_0x38ebf6;let _0x1cceed=(0x0,_0x4ba630['vV'])(),_0x379107=[{'id':(0x0,_0x4ba630['vV'])(),'type':_0x2282f9['x']['PARAGRAPH'],'children':[{'text':_0x4195ea['prompt']}]}];_0x33e12b[_0x38f979(0x40c)]({'at':{'anchor':_0x33e12b[_0x38f979(0x497)]([]),'focus':_0x33e12b[_0x38f979(0x214)]([])}}),_0x33e12b[_0x38f979(0x3c1)](_0x379107),_0x3a0cb5({'prompt':_0x4195ea[_0x38f979(0x2a2)],'id':_0x1cceed}),!_0x43ba67['L']&&void 0x0!==_0x4195ea[_0x38f979(0x469)]&&(0x0,_0x348c3f['SH'])(_0x4195ea['modelName'])&&(_0x5ddbb6(_0x4195ea['modelName']),_0x5d9279((0x0,_0x348c3f['n3'])(_0x4195ea[_0x38f979(0x469)])));let _0x2f60de=_0x13b01a();_0x588a40({'partialResult':{'id':_0x1cceed,'images':[{'seed':_0x4195ea[_0x38f979(0x330)],'imageSrc':_0x4195ea[_0x38f979(0x1e6)],'mediaKey':_0x4195ea['mediaKey'],'prompt':_0x4195ea[_0x38f979(0x2a2)],'maskBytes':_0x4195ea['maskBytes'],'previousMediaKey':_0x4195ea[_0x38f979(0x2b2)],'mediaVisibility':_0x4195ea['mediaVisibility']}],'refineProperties':{'seedInfo':{'seed':_0x4195ea[_0x38f979(0x330)],'imageSetIndex':null},'numImages':0x1,'temperature':_0x2f60de[_0x38f979(0x38e)],'isSeedLocked':_0x2f60de[_0x38f979(0x47c)],'aspectRatio':_0x2f60de[_0x38f979(0x245)],'imageModelInputType':_0x2f60de['imageModelInputType']}},'isNewCurrentResult':!0x0}),_0x39e1b2(),_0x429923([{'event':_0xdb0f29['E_'][_0x38f979(0x34d)],'eventProperties':[{'key':_0xdb0f29['Nn'][_0x38f979(0x3a7)],'stringValue':_0x550688['Nv'][_0x38f979(0x282)]},{'key':_0xdb0f29['Nn'][_0x38f979(0x43c)],'stringValue':_0x2f2b11}]}]),_0xb54bfa([{'activityType':_0xdb0f29['IL']['ACTIVITY_TYPE_REMIX'],'mediaKey':_0x4195ea['mediaKey'],'tool':_0x3dd8e9['mq'][_0x38f979(0x363)]}]);}}),_0xa3706f=_0x54c193(),_0x10e3ec=null==_0xa3706f?void 0x0:null===(_0x4d5fcd=_0xa3706f[_0x38ebf6(0x426)])||void 0x0===_0x4d5fcd?void 0x0:null===(_0x271676=_0x4d5fcd['at'](0x0))||void 0x0===_0x271676?void 0x0:_0x271676[_0x38ebf6(0x2b2)];_0xd1642c({'mediaKey':_0x10e3ec||'','enabled':_0x43ba67['hh']&&!!_0x10e3ec,'onSuccess':_0x2cb13f=>{const _0x3b3788=_0x38ebf6;if(0x0===_0x2cb13f[_0x3b3788(0x266)])throw Error(_0x3b3788(0x1f3));_0x4266c9((0x0,_0x547914['Uy'])([],_0x1380a5=>{const _0xac75b4=_0x3b3788;_0x2cb13f[_0xac75b4(0x32f)](_0x515d3b=>{const _0x1e3418=_0xac75b4;let _0x1691b4=_0x2cb13f['filter'](_0x54d018=>_0x515d3b[_0x1e3418(0x42d)]===_0x54d018[_0x1e3418(0x2b2)]),_0x3c629b=_0x1691b4['at'](0x0);_0x3c629b&&_0x1380a5['push']({'id':(0x0,_0x4ba630['vV'])(),'images':_0x1691b4,'lastMaskedEditImage':{'seed':_0x515d3b[_0x1e3418(0x330)],'imageSrc':_0x515d3b[_0x1e3418(0x1e6)],'mediaKey':_0x515d3b[_0x1e3418(0x42d)],'prompt':_0x3c629b[_0x1e3418(0x2a2)],'previousMediaKey':_0x515d3b['previousMediaKey'],'maskBytes':_0x3c629b[_0x1e3418(0x286)]}});});}));}}),(0x0,_0x55f193['useEffect'])(()=>{const _0x5e5b57=_0x38ebf6;_0x43ba67['Ai']&&_0x5932d1(_0x5e5b57(0x44d));},[_0x5932d1]),(0x0,_0x55f193['useEffect'])(()=>{((async()=>{const _0x2d6a42=a17_0x1181;var _0x6a740,_0x57ad0c;let _0x32acc5=null==_0xa3706f?void 0x0:null===(_0x57ad0c=_0xa3706f[_0x2d6a42(0x426)])||void 0x0===_0x57ad0c?void 0x0:null===(_0x6a740=_0x57ad0c['at'](0x0))||void 0x0===_0x6a740?void 0x0:_0x6a740['imageSrc'];_0x32acc5&&_0x5932d1(await(0x0,_0x4ba630['O6'])(_0x32acc5));})());},[_0xa3706f,_0x5932d1]);let _0x2e09f9=(0x0,_0x452c15['Mv'])(_0x33e12b[_0x38ebf6(0x4cc)]);return(0x0,_0x55f193[_0x38ebf6(0x38a)])(()=>{const _0x43bd90=_0x38ebf6;_0x190fb5&&(_0x160976[_0x43bd90(0x3f9)]+0x5dc>performance[_0x43bd90(0x491)]()||(_0x45b7de(_0x2e09f9),_0x160976[_0x43bd90(0x3f9)]=performance[_0x43bd90(0x491)]()));},[_0x2e09f9,_0x190fb5]),(0x0,_0xd5434[_0x38ebf6(0x3db)])(_0x1e6adb,{'children':[_0x51f4a9?(0x0,_0xd5434[_0x38ebf6(0x4b7)])(_0x161f94,{'imageFxCarouselSwiperRef':_0x20de6a,'placeholder':_0x4b8a59,'onSubmitPromptHelper':_0x587bdd,'onSubmit':_0x45b7de,'isLoadingImages':_0x4a5325||_0x356fcd,'isLoadingEnhancedPrompt':_0x38e59a,'isLoadingPromptHelper':_0x4195f0,'isLoadingSegments':_0x5ca3a7,'fetchImages':_0x74faed,'fetchSegments':_0xa40266,'fetchImageMaskData':_0x2029cc}):(0x0,_0xd5434[_0x38ebf6(0x4b7)])(_0x6c2345,{'imageFxCarouselSwiperRef':_0x20de6a,'placeholder':_0x4b8a59,'onSubmit':_0x45b7de,'onSubmitPromptHelper':_0x587bdd,'onSubmitPromptlessPrompting':_0x41f3e=>{const _0x3e2fea=_0x38ebf6;if(!_0x27b0f1)throw Error('No\x20uploaded\x20images\x20available');_0x74faed({'id':(0x0,_0x4ba630['vV'])(),'imagePrompt':_0x41f3e||'','userImagesArray':Object[_0x3e2fea(0x4a5)](_0x27b0f1)});},'isLoadingImages':_0x4a5325||_0x356fcd,'isLoadingEnhancedPrompt':_0x38e59a,'isLoadingPromptHelper':_0x4195f0,'isLoadingSegments':_0x5ca3a7,'fetchImages':_0x74faed,'fetchSegments':_0xa40266,'fetchImageMaskData':_0x2029cc}),(0x0,_0xd5434[_0x38ebf6(0x4b7)])(_0xd4aac1['K'],{'title':_0x38ebf6(0x275),'description':_0x38ebf6(0x1d4),'cta':'user_history_enable_dialog_cta','isLoading':_0x289c67['isLoading'],'open':_0x553b04,'onOpenChange':_0x257886,'onConfirm':()=>_0x289c67['mutate']({'enableHistory':!0x0})})]});},_0x317dda=_0x1d5e1b=>{const _0x3624d8=_0x2f36b9;let {children:_0x34b666}=_0x1d5e1b,_0x4fbafc=(0x0,_0x55f193[_0x3624d8(0x232)])(()=>(0x0,_0x21df07['VC'])((0x0,_0x59bd68[_0x3624d8(0x2aa)])((0x0,_0x5c6102['Jh'])())),[]);return(0x0,_0xd5434[_0x3624d8(0x4b7)])(_0x59bd68['Slate'],{'editor':_0x4fbafc,'initialValue':_0x1647e9['Zc'],'children':_0x34b666});},_0x3da150=()=>{const _0x9bca8d=_0x2f36b9;let {isSignedIn:_0x261623}=(0x0,_0x18ba2e['A'])();return _0x261623?(0x0,_0xd5434[_0x9bca8d(0x4b7)])(_0x317dda,{'children':(0x0,_0xd5434[_0x9bca8d(0x4b7)])(_0x55c2cb,{})}):(0x0,_0xd5434[_0x9bca8d(0x4b7)])(_0x4356b1,{});},_0x1e6adb=_0x3b8c98['ZP'][_0x2f36b9(0x3c4)][_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x47b)})([_0x2f36b9(0x305)]);var _0x4f6c13=_0x2753b3(0xa2c0),_0x55d9ae=_0x2753b3['n'](_0x4f6c13);let _0x2d529a=()=>{const _0x852a64=_0x2f36b9;let {t:_0x1e8b9b}=(0x0,_0x2ba428['$G'])();return(0x0,_0xd5434[_0x852a64(0x4b7)])(_0x85ba5b['Q'],{'hasMedia':!0x0,'background':(0x0,_0xd5434['jsx'])(_0x110ce8,{'autoplay':!0x0,'loop':!0x0,'src':_0x2cdacc}),'headline':(0x0,_0xd5434[_0x852a64(0x4b7)])(_0x2ba428['cC'],{'i18nKey':'imagefx_overfilled_headline'}),'body':(0x0,_0xd5434['jsx'])(_0x466bdb['M'],{'color':'BLUE','imageData':{'imageSrc':(0x0,_0x4ba630['Fr'])('/website/content/image-fx-at-capacity.webp'),'seed':-0x3c3b9992,'prompt':_0x852a64(0x409),'mediaKey':_0x852a64(0x2d5)},'variant':_0x852a64(0x4c8),'isRemixDisabled':!0x0}),'footerSubheading':(0x0,_0xd5434[_0x852a64(0x4b7)])(_0x2ba428['cC'],{'i18nKey':_0x852a64(0x300)}),'ctas':(0x0,_0xd5434[_0x852a64(0x3db)])(_0xc564fd,{'href':_0x852a64(0x493),'children':[(0x0,_0xd5434[_0x852a64(0x4b7)])(_0x51cbc8['O'],{'icon':'open_in_new','color':'currentColor','isOutlined':!0x0}),_0x1e8b9b(_0x852a64(0x44e))]}),'ctaFirst':!0x0});},_0x110ce8=(0x0,_0x3b8c98['ZP'])(_0x49a209['J5'])[_0x2f36b9(0x410)]({'componentId':_0x2f36b9(0x25b)})([_0x2f36b9(0x467),';}'],_0x5e3dae=>_0x5e3dae[_0x2f36b9(0x33a)]['colors'][_0x2f36b9(0x46c)]),_0xc564fd=(0x0,_0x3b8c98['ZP'])(_0x55d9ae())['withConfig']({'componentId':'sc-cc881f12-1'})(['',';background:',';color:',';&:hover{background:',';}'],_0x85ba5b['L'],_0x41193e=>_0x41193e[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)][_0x2f36b9(0x315)],_0x196262=>_0x196262[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)][_0x2f36b9(0x46c)],_0x6c7717=>_0x6c7717[_0x2f36b9(0x33a)][_0x2f36b9(0x30a)]['aitk-blue-200']);var _0x2e1982=!0x0,_0x5a716f=()=>{const _0x40d182=_0x2f36b9;let {data:_0x4f9bbf,isSuccess:_0x2e5e10}=(0x0,_0x2e2fcc['s'])({'tool':_0x40d182(0x363),'enabled':_0x43ba67['Z$']});return _0x2e5e10&&!_0x4f9bbf?(0x0,_0xd5434[_0x40d182(0x4b7)])(_0x2d529a,{}):(0x0,_0xd5434[_0x40d182(0x4b7)])(_0x3da150,{});};},0x5f78:function(_0x53fd02,_0x2eca2d,_0x28a3b9){'use strict';const _0xa7dfed=a17_0x244221;_0x28a3b9['d'](_0x2eca2d,{'i':function(){return _0x112869;}});var _0x5a8e6b=_0x28a3b9(0x14f85),_0x330395=_0x28a3b9(0x10b82),_0x35fc59=_0x28a3b9(0xa2d6),_0x3d1fd8=_0x28a3b9(0x15b81);let _0x112869=_0xabf425=>{const _0x21b67b=a17_0x1181;var _0x1777b8;let {className:_0x130ef6,value:_0x3c4c82,hasValueInThumb:_0x113bbc,height:_0x577728=_0x21b67b(0x44b),color:_0x549542='PINK',..._0x43233d}=_0xabf425,_0x274279=null!==(_0x1777b8=null==_0x3c4c82?void 0x0:_0x3c4c82[0x0])&&void 0x0!==_0x1777b8?_0x1777b8:0x0;return(0x0,_0x5a8e6b[_0x21b67b(0x4b7)])(_0x3d1fd8['b'],{'colorTheme':_0x549542,'children':(0x0,_0x5a8e6b['jsxs'])(_0x19e07d,{..._0x43233d,'value':_0x3c4c82,'className':_0x130ef6,'$sliderHeight':_0x577728,'disabled':(null==_0x43233d?void 0x0:_0x43233d[_0x21b67b(0x490)])||!0x1,'children':[(0x0,_0x5a8e6b[_0x21b67b(0x4b7)])(_0x2f651c,{'children':(0x0,_0x5a8e6b[_0x21b67b(0x4b7)])(_0x4b7bd2,{})}),(0x0,_0x5a8e6b['jsx'])(_0x515c0e,{'children':_0x113bbc&&_0x274279})]})});},_0x19e07d=(0x0,_0x35fc59['ZP'])(_0x330395['fC'])[_0xa7dfed(0x410)]({'componentId':_0xa7dfed(0x227)})([_0xa7dfed(0x423),_0xa7dfed(0x2ce),_0xa7dfed(0x261),'){pointer-events:none;}'],_0x37f6dd=>_0x37f6dd[_0xa7dfed(0x427)],_0x54584a=>_0x54584a[_0xa7dfed(0x490)]&&(0x0,_0x35fc59['iv'])([_0xa7dfed(0x3fa)]),_0x8a52aa=>_0x8a52aa['theme']['breakpoints']['laptop']),_0x2f651c=(0x0,_0x35fc59['ZP'])(_0x330395['fQ'])[_0xa7dfed(0x410)]({'componentId':_0xa7dfed(0x45a)})([_0xa7dfed(0x3d3)]),_0x4b7bd2=(0x0,_0x35fc59['ZP'])(_0x330395['e6'])[_0xa7dfed(0x410)]({'componentId':_0xa7dfed(0x2dd)})([_0xa7dfed(0x43b)]),_0x515c0e=(0x0,_0x35fc59['ZP'])(_0x330395['bU'])[_0xa7dfed(0x410)]({'componentId':_0xa7dfed(0x298)})(['',_0xa7dfed(0x1d7),_0xa7dfed(0x45e),_0xa7dfed(0x3de),';border-radius:9999px;&::before{content:\x27\x27;cursor:grab;position:absolute;left:calc(var(--slider-height)\x20/\x202);width:100rem;height:var(--slider-height);background-color:',_0xa7dfed(0x443),_0xa7dfed(0x29a),';}@media\x20(max-width:','){&::before,&::after{pointer-events:none;}}'],_0x380374=>_0x380374[_0xa7dfed(0x33a)]['typography'][_0xa7dfed(0x1e5)],_0x5587a5=>_0x5587a5[_0xa7dfed(0x33a)]['currentThemeColor'][0x2bc],_0x5ac4c6=>_0x5ac4c6[_0xa7dfed(0x33a)][_0xa7dfed(0x3d6)][0x190],_0x3b248b=>_0x3b248b[_0xa7dfed(0x33a)]['currentThemeColor'][0x12c],_0x3748b1=>_0x3748b1[_0xa7dfed(0x33a)][_0xa7dfed(0x30a)][_0xa7dfed(0x240)],_0x145e6d=>_0x145e6d['theme'][_0xa7dfed(0x3d6)][0x12c],_0x57b6f4=>_0x57b6f4[_0xa7dfed(0x33a)]['currentThemeColor'][0x12c],_0x1555d1=>_0x1555d1[_0xa7dfed(0x33a)][_0xa7dfed(0x3a6)][_0xa7dfed(0x1ea)]);},0x1581d:function(_0x32cef8,_0x1784ef,_0x2b1440){'use strict';const _0x231590=a17_0x244221;_0x2b1440['d'](_0x1784ef,{'G':function(){return _0x4a6f65;}});var _0x5cabcc=_0x2b1440(0x14f85),_0x3f1b8e=_0x2b1440(0xbdc7),_0x39bb6a=_0x2b1440(0xc97f),_0x37a722=_0x2b1440(0x106de),_0x32c428=_0x2b1440(0xa2d6),_0x1e0c67=_0x2b1440(0x52b2),_0x109f57=_0x2b1440(0x1217e);let _0x4a6f65=_0x4dafd8=>{const _0x43738a=a17_0x1181;let {buttonText:_0xc2c49,onImageUpload:_0x397080}=_0x4dafd8,[_0x3f4777]=(0x0,_0x3f1b8e['KO'])(_0x109f57['jV']),_0x3990e7=(0x0,_0x37a722[_0x43738a(0x272)])(null),_0x192563=_0x37cbd4=>new Promise(_0x489a6f=>{const _0x1bbb10=_0x43738a;let _0x2c4f89=new FileReader();_0x2c4f89[_0x1bbb10(0x489)](_0x37cbd4),_0x2c4f89[_0x1bbb10(0x498)]=()=>{_0x489a6f(_0x2c4f89['result']);};}),_0x5d949d=async _0xa36142=>{const _0xcd6f54=_0x43738a;var _0x17130e;let _0x5bd452=null===(_0x17130e=_0xa36142['target'][_0xcd6f54(0x3dc)])||void 0x0===_0x17130e?void 0x0:_0x17130e[0x0];_0x5bd452&&_0x397080(await _0x192563(_0x5bd452));};return(0x0,_0x5cabcc[_0x43738a(0x3db)])(_0x4704d7,{'layout':_0x43738a(0x3c6),'children':[(0x0,_0x5cabcc[_0x43738a(0x4b7)])(_0x1e0c67['zx'],{'icon':'upload','iconProps':{'isOutlined':!0x0},'color':_0x3f4777,'isDarkMode':!0x0,'variant':_0x43738a(0x280),'onClick':()=>{const _0x570cda=_0x43738a;if(!_0x3990e7['current'])throw Error(_0x570cda(0x48d));_0x3990e7[_0x570cda(0x3f9)][_0x570cda(0x3ee)]();},'children':_0xc2c49}),(0x0,_0x5cabcc[_0x43738a(0x4b7)])(_0x24fd0a,{'type':_0x43738a(0x2ae),'accept':_0x43738a(0x3d7),'onChange':_0x5d949d,'ref':_0x3990e7})]});},_0x4704d7=(0x0,_0x32c428['ZP'])(_0x39bb6a['E'][_0x231590(0x3c4)])[_0x231590(0x410)]({'componentId':_0x231590(0x27a)})([_0x231590(0x445)]),_0x24fd0a=_0x32c428['ZP'][_0x231590(0x2bd)][_0x231590(0x410)]({'componentId':_0x231590(0x385)})([_0x231590(0x483)]);},0xc96c:function(_0x4e788f,_0x28a6f9,_0x51f20e){'use strict';_0x51f20e['d'](_0x28a6f9,{'p':function(){return _0x4a7dd0;}});var _0x320ef3=_0x51f20e(0x1f52),_0x578821=_0x51f20e(0x9f97);let _0x52ae03=_0x7fd2f1=>{const _0x306ced=a17_0x1181;var _0x486f4c,_0xe149d0,_0x49f2d9,_0x575d9e,_0x5b4c38,_0x1446dd,_0xf13e5d,_0xec8623,_0x5f0d3e,_0x5d3170,_0x3dcc1d,_0x3e8ae3,_0x3589bc,_0x187ba9,_0x19da12,_0x291490,_0xd246ac,_0xd2dc2c;let {fetchMediaResponse:_0x46e706,mediaKey:_0x10cc41}=_0x7fd2f1;if(!_0x46e706)return;let _0x5d80ea=null==_0x46e706?void 0x0:null===(_0xe149d0=_0x46e706['result'])||void 0x0===_0xe149d0?void 0x0:null===(_0x486f4c=_0xe149d0[_0x306ced(0x264)])||void 0x0===_0x486f4c?void 0x0:_0x486f4c[_0x306ced(0x330)],_0x1d8436=null==_0x46e706?void 0x0:null===(_0x575d9e=_0x46e706['result'])||void 0x0===_0x575d9e?void 0x0:null===(_0x49f2d9=_0x575d9e[_0x306ced(0x264)])||void 0x0===_0x49f2d9?void 0x0:_0x49f2d9['encodedImage'],_0x4e054c=null==_0x46e706?void 0x0:null===(_0x1446dd=_0x46e706['result'])||void 0x0===_0x1446dd?void 0x0:null===(_0x5b4c38=_0x1446dd[_0x306ced(0x264)])||void 0x0===_0x5b4c38?void 0x0:_0x5b4c38[_0x306ced(0x2a2)],_0x27f45e=null==_0x46e706?void 0x0:null===(_0xec8623=_0x46e706['result'])||void 0x0===_0xec8623?void 0x0:null===(_0xf13e5d=_0xec8623['image'])||void 0x0===_0xf13e5d?void 0x0:_0xf13e5d['modelNameType'],_0x4d5ecf=null==_0x46e706?void 0x0:null===(_0x5d3170=_0x46e706[_0x306ced(0x200)])||void 0x0===_0x5d3170?void 0x0:null===(_0x5f0d3e=_0x5d3170[_0x306ced(0x264)])||void 0x0===_0x5f0d3e?void 0x0:_0x5f0d3e[_0x306ced(0x2da)],_0x490f52=null==_0x46e706?void 0x0:null===(_0x3589bc=_0x46e706[_0x306ced(0x200)])||void 0x0===_0x3589bc?void 0x0:null===(_0x3e8ae3=_0x3589bc[_0x306ced(0x264)])||void 0x0===_0x3e8ae3?void 0x0:null===(_0x3dcc1d=_0x3e8ae3[_0x306ced(0x472)])||void 0x0===_0x3dcc1d?void 0x0:_0x3dcc1d['at'](0x0),_0x5ed3d1=null==_0x46e706?void 0x0:null===(_0x19da12=_0x46e706[_0x306ced(0x200)])||void 0x0===_0x19da12?void 0x0:null===(_0x187ba9=_0x19da12[_0x306ced(0x264)])||void 0x0===_0x187ba9?void 0x0:_0x187ba9[_0x306ced(0x4b9)],_0x58b7e9=null===(_0x291490=_0x46e706[_0x306ced(0x200)]['image'])||void 0x0===_0x291490?void 0x0:_0x291490['mediaVisibility'],_0x25adb8=null!==(_0xd2dc2c=null===(_0xd246ac=_0x46e706[_0x306ced(0x200)][_0x306ced(0x264)])||void 0x0===_0xd246ac?void 0x0:_0xd246ac['mediaGenerationId'])&&void 0x0!==_0xd2dc2c?_0xd2dc2c:_0x10cc41;if(!_0x5d80ea||!_0x1d8436||!_0x4e054c)throw Error(_0x306ced(0x2d9));return{'imageSrc':(0x0,_0x578821['e5'])(_0x1d8436),'seed':_0x5d80ea,'prompt':_0x490f52||_0x4e054c,'mediaKey':_0x25adb8,'modelName':_0x27f45e,'maskBytes':_0x5ed3d1,'previousMediaKey':_0x4d5ecf,'mediaVisibility':_0x58b7e9};},_0x4a7dd0=_0x36269b=>{const _0x3957cc=a17_0x1181;let {mediaKey:_0x212fa3,onSuccess:_0x1b3e32,enabled:_0x4615bf}=_0x36269b,_0x593f0c=_0x320ef3['h'][_0x3957cc(0x3f1)][_0x3957cc(0x22d)][_0x3957cc(0x21a)]({'mediaKey':_0x212fa3},{'refetchOnMount':!0x0,'enabled':_0x4615bf,'onSuccess':_0x3765ae=>{let _0x4552d5=_0x52ae03({'fetchMediaResponse':_0x3765ae,'mediaKey':_0x212fa3});if(_0x4552d5)return _0x1b3e32(_0x4552d5);}});return{..._0x593f0c,'data':_0x52ae03({'fetchMediaResponse':_0x593f0c['data'],'mediaKey':_0x212fa3})};};},0x3318:function(_0xe33352,_0x33af3f,_0x116b83){'use strict';_0x116b83['d'](_0x33af3f,{'Y':function(){return _0x458d0d;}});var _0x40e701=_0x116b83(0xbdc7),_0x6e664f=_0x116b83(0x10057),_0x5aaa94=_0x116b83(0x1f52),_0x2d0a95=_0x116b83(0x16101),_0x3854e2=_0x116b83(0x1217e),_0x4bb453=_0x116b83(0x12ce5);let _0x458d0d=_0x120146=>{const _0x3e9ed8=a17_0x1181;let {toolName:_0x5603b3,onSuccess:_0x44d8cd}=_0x120146,[_0xf143fc]=(0x0,_0x40e701['KO'])(_0x3854e2['Zb']),{t:_0x5adf55}=(0x0,_0x6e664f['$G'])(),_0x393cdf=(0x0,_0x2d0a95['p'])(),_0x238eeb=_0x5aaa94['h']['media'][_0x3e9ed8(0x4a4)][_0x3e9ed8(0x3eb)](),_0x2903ca=async _0x53654f=>{const _0x4a4264=_0x3e9ed8;let {prompt:_0x378ad2,id:_0x390dd8}=_0x53654f,_0x57a13b={'clientContext':{'sessionId':_0xf143fc,'tool':_0x5603b3},'userInput':{'textPrompt':_0x378ad2}};_0x238eeb[_0x4a4264(0x368)](_0x57a13b,{'onError':()=>_0x393cdf({'text':_0x5adf55(_0x4a4264(0x3d5)),'type':_0x4bb453['$n']['ERROR']}),'onSuccess':_0x13de97=>_0x44d8cd({'data':_0x13de97['result'],'input':_0x57a13b,'id':_0x390dd8})});};return{..._0x238eeb,'fetchEnhancedPrompt':_0x2903ca};};},0x11cbd:function(_0x331555,_0x289f19,_0x421d58){'use strict';_0x421d58['d'](_0x289f19,{'o':function(){return _0x159d76;}});var _0x4bafb9=_0x421d58(0x106de);let _0x159d76=()=>{const _0x6fa40f=a17_0x1181;let [_0x566e16,_0x53155d]=(0x0,_0x4bafb9['useState'])('visible'===document[_0x6fa40f(0x224)]);return(0x0,_0x4bafb9['useEffect'])(()=>{const _0x34af1d=_0x6fa40f;let _0x5c5b64=()=>_0x53155d('visible'===document[_0x34af1d(0x224)]);return document[_0x34af1d(0x47a)]('visibilitychange',_0x5c5b64),()=>{const _0x5c9ddc=_0x34af1d;document[_0x5c9ddc(0x250)](_0x5c9ddc(0x220),_0x5c5b64);};},[]),{'isVisible':_0x566e16};};}},function(_0x4f08f1){_0x4f08f1['O'](0x0,[0x4f8,0x2122,0x26b,0x2282,0x268c,0x206c,0x1c2b,0xb48,0x262e,0xb3],function(){return _0x4f08f1(_0x4f08f1['s']=0x5fa5);}),_N_E=_0x4f08f1['O']();}]));