PageSourceSearch

https://comicme.ai/assets/index-HF9S6n1b.js

js comicme.ai collected 2026-10-04 15:11:12 UTC 132,833 bytes, 17 lines download raw bytes

vendor: 9,602 bytes, line 1
1import{j as jsxDevRuntime,e as jsxRuntime,a as ReactDOM,R as React,h as reactExports,c as clientExports,f as jsxRuntimeExports}from"./react-vendor-DFI2PI70.js";import{d as createJss,c as create,J as JssProvider}from"./jss-vendor-6ZQPLeaG.js";import{u as useRuntimeState,I as IframeRuntimeProvider,E as EmbeddedRuntimeProvider}from"./runtime-core-DTCYRchY.js";import{a9 as __vite_glob_1_131,a8 as __vite_glob_1_130,a6 as __vite_glob_1_129,a5 as __vite_glob_1_128,a4 as __vite_glob_1_127,a3 as __vite_glob_1_126,a2 as __vite_glob_1_125,a1 as __vite_glob_1_124,a0 as __vite_glob_1_123,$ as __vite_glob_1_122,Z as __vite_glob_1_121,Y as __vite_glob_1_120,V as __vite_glob_1_119,Q as __vite_glob_1_118,O as __vite_glob_1_117,M as __vite_glob_1_116,K as __vite_glob_1_115,J as __vite_glob_1_114,G as __vite_glob_1_113,F as __vite_glob_1_112,E as __vite_glob_1_111,D as __vite_glob_1_110,y as __vite_glob_1_109,x as __vite_glob_1_108,w as __vite_glob_1_107,v as __vite_glob_1_106,u as __vite_glob_1_105,t as __vite_glob_1_104,s as __vite_glob_1_103,r as __vite_glob_1_102,q as __vite_glob_1_101,p as __vite_glob_1_100,bD as __vite_glob_1_99,bC as __vite_glob_1_98,bB as __vite_glob_1_97,bA as __vite_glob_1_96,bz as __vite_glob_1_95,by as __vite_glob_1_94,bx as __vite_glob_1_93,bw as __vite_glob_1_92,bv as __vite_glob_1_91,bu as __vite_glob_1_90,bs as __vite_glob_1_89,br as __vite_glob_1_88,bq as __vite_glob_1_87,bp as __vite_glob_1_86,bo as __vite_glob_1_85,bn as __vite_glob_1_84,bm as __vite_glob_1_83,bl as __vite_glob_1_82,bk as __vite_glob_1_81,bj as __vite_glob_1_80,bh as __vite_glob_1_79,bg as __vite_glob_1_78,bf as __vite_glob_1_77,be as __vite_glob_1_76,bd as __vite_glob_1_75,bc as __vite_glob_1_74,bb as __vite_glob_1_73,ba as __vite_glob_1_72,b9 as __vite_glob_1_71,b8 as __vite_glob_1_70,b6 as __vite_glob_1_69,b5 as __vite_glob_1_68,b4 as __vite_glob_1_67,b3 as __vite_glob_1_66,b2 as __vite_glob_1_65,b1 as __vite_glob_1_64,b0 as __vite_glob_1_63,a$ as __vite_glob_1_62,a_ as __vite_glob_1_61,aZ as __vite_glob_1_60,aX as __vite_glob_1_59,aW as __vite_glob_1_58,aV as __vite_glob_1_57,aU as __vite_glob_1_56,aT as __vite_glob_1_55,aS as __vite_glob_1_54,aR as __vite_glob_1_53,aQ as __vite_glob_1_52,aP as __vite_glob_1_51,aO as __vite_glob_1_50,aM as __vite_glob_1_49,aL as __vite_glob_1_48,aK as __vite_glob_1_47,aJ as __vite_glob_1_46,aI as __vite_glob_1_45,aH as __vite_glob_1_44,aG as __vite_glob_1_43,aF as __vite_glob_1_42,aE as __vite_glob_1_41,aD as __vite_glob_1_40,aB as __vite_glob_1_39,aA as __vite_glob_1_38,az as __vite_glob_1_37,ay as __vite_glob_1_36,ax as __vite_glob_1_35,aw as __vite_glob_1_34,av as __vite_glob_1_33,au as __vite_glob_1_32,at as __vite_glob_1_31,as as __vite_glob_1_30,aq as __vite_glob_1_29,ap as __vite_glob_1_28,ao as __vite_glob_1_27,an as __vite_glob_1_26,am as __vite_glob_1_25,al as __vite_glob_1_24,ak as __vite_glob_1_23,aj as __vite_glob_1_22,ai as __vite_glob_1_21,ah as __vite_glob_1_20,af as __vite_glob_1_19,ae as __vite_glob_1_18,ad as __vite_glob_1_17,ac as __vite_glob_1_16,ab as __vite_glob_1_15,aa as __vite_glob_1_14,a7 as __vite_glob_1_13,X as __vite_glob_1_12,z as __vite_glob_1_11,o as __vite_glob_1_10,bt as __vite_glob_1_9,bi as __vite_glob_1_8,b7 as __vite_glob_1_7,aY as __vite_glob_1_6,aN as __vite_glob_1_5,aC as __vite_glob_1_4,ar as __vite_glob_1_3,ag as __vite_glob_1_2,n as __vite_glob_1_1,m as __vite_glob_1_0}from"./picsart-rc-vendor-D-4a1ik5.js";import"./lodash-vendor-BdnMdBKa.js";import{dd as __vite_glob_0_207,dc as __vite_glob_0_206,db as __vite_glob_0_205,da as __vite_glob_0_204,d9 as __vite_glob_0_203,d8 as __vite_glob_0_202,d7 as __vite_glob_0_201,d6 as __vite_glob_0_200,d3 as __vite_glob_0_199,d2 as __vite_glob_0_198,d1 as __vite_glob_0_197,d0 as __vite_glob_0_196,c$ as __vite_glob_0_195,c_ as __vite_glob_0_194,cZ as __vite_glob_0_193,cY as __vite_glob_0_192,cX as __vite_glob_0_191,cW as __vite_glob_0_190,cU as __vite_glob_0_189,cT as __vite_glob_0_188,cS as __vite_glob_0_187,cR as __vite_glob_0_186,cQ as __vite_glob_0_185,cP as __vite_glob_0_184,cO as __vite_glob_0_183,cN as __vite_glob_0_182,cM as __vite_glob_0_181,cL as __vite_glob_0_180,cJ as __vite_glob_0_179,cI as __vite_glob_0_178,cH as __vite_glob_0_177,cG as __vite_glob_0_176,cF as __vite_glob_0_175,cE as __vite_glob_0_174,cD as __vite_glob_0_173,cC as __vite_glob_0_172,cB as __vite_glob_0_171,cA as __vite_glob_0_170,cy as __vite_glob_0_169,cx as __vite_glob_0_168,cw as __vite_glob_0_167,cv as __vite_glob_0_166,cu as __vite_glob_0_165,ct as __vite_glob_0_164,cs as __vite_glob_0_163,cr as __vite_glob_0_162,cq as __vite_glob_0_161,cp as __vite_glob_0_160,cn as __vite_glob_0_159,cm as __vite_glob_0_158,cl as __vite_glob_0_157,ck as __vite_glob_0_156,cj as __vite_glob_0_155,ci as __vite_glob_0_154,ch as __vite_glob_0_153,cg as __vite_glob_0_152,cf as __vite_glob_0_151,ce as __vite_glob_0_150,cc as __vite_glob_0_149,cb as __vite_glob_0_148,ca as __vite_glob_0_147,c9 as __vite_glob_0_146,c8 as __vite_glob_0_145,c7 as __vite_glob_0_144,c6 as __vite_glob_0_143,c5 as __vite_glob_0_142,c4 as __vite_glob_0_141,c3 as __vite_glob_0_140,c1 as __vite_glob_0_139,c0 as __vite_glob_0_138,b$ as __vite_glob_0_137,b_ as __vite_glob_0_136,bZ as __vite_glob_0_135,bY as __vite_glob_0_134,bX as __vite_glob_0_133,bW as __vite_glob_0_132,bV as __vite_glob_0_131,bU as __vite_glob_0_130,bS as __vite_glob_0_129,bR as __vite_glob_0_128,bQ as __vite_glob_0_127,bP as __vite_glob_0_126,bO as __vite_glob_0_125,bN as __vite_glob_0_124,bM as __vite_glob_0_123,bL as __vite_glob_0_122,bK as __vite_glob_0_121,bJ as __vite_glob_0_120,bH as __vite_glob_0_119,bG as __vite_glob_0_118,bF as __vite_glob_0_117,bE as __vite_glob_0_116,bD as __vite_glob_0_115,bC as __vite_glob_0_114,bB as __vite_glob_0_113,bA as __vite_glob_0_112,bz as __vite_glob_0_111,by as __vite_glob_0_110,bw as __vite_glob_0_109,bv as __vite_glob_0_108,bu as __vite_glob_0_107,bt as __vite_glob_0_106,bs as __vite_glob_0_105,br as __vite_glob_0_104,bq as __vite_glob_0_103,bp as __vite_glob_0_102,bo as __vite_glob_0_101,bn as __vite_glob_0_100,eA as __vite_glob_0_99,ez as __vite_glob_0_98,ey as __vite_glob_0_97,ex as __vite_glob_0_96,ew as __vite_glob_0_95,ev as __vite_glob_0_94,eu as __vite_glob_0_93,et as __vite_glob_0_92,es as __vite_glob_0_91,er as __vite_glob_0_90,ep as __vite_glob_0_89,eo as __vite_glob_0_88,en as __vite_glob_0_87,em as __vite_glob_0_86,el as __vite_glob_0_85,ek as __vite_glob_0_84,ej as __vite_glob_0_83,ei as __vite_glob_0_82,eh as __vite_glob_0_81,eg as __vite_glob_0_80,ee as __vite_glob_0_79,ed as __vite_glob_0_78,ec as __vite_glob_0_77,eb as __vite_glob_0_76,ea as __vite_glob_0_75,e9 as __vite_glob_0_74,e8 as __vite_glob_0_73,e7 as __vite_glob_0_72,e6 as __vite_glob_0_71,e5 as __vite_glob_0_70,e3 as __vite_glob_0_69,e2 as __vite_glob_0_68,e1 as __vite_glob_0_67,e0 as __vite_glob_0_66,d$ as __vite_glob_0_65,d_ as __vite_glob_0_64,dZ as __vite_glob_0_63,dY as __vite_glob_0_62,dX as __vite_glob_0_61,dW as __vite_glob_0_60,dU as __vite_glob_0_59,dT as __vite_glob_0_58,dS as __vite_glob_0_57,dR as __vite_glob_0_56,dQ as __vite_glob_0_55,dP as __vite_glob_0_54,dO as __vite_glob_0_53,dN as __vite_glob_0_52,dM as __vite_glob_0_51,dL as __vite_glob_0_50,dJ as __vite_glob_0_49,dI as __vite_glob_0_48,dH as __vite_glob_0_47,dG as __vite_glob_0_46,dF as __vite_glob_0_45,dE as __vite_glob_0_44,dD as __vite_glob_0_43,dC as __vite_glob_0_42,dB as __vite_glob_0_41,dA as __vite_glob_0_40,dy as __vite_glob_0_39,dx as __vite_glob_0_38,dw as __vite_glob_0_37,dv as __vite_glob_0_36,du as __vite_glob_0_35,dt as __vite_glob_0_34,ds as __vite_glob_0_33,dr as __vite_glob_0_32,dq as __vite_glob_0_31,dp as __vite_glob_0_30,dm as __vite_glob_0_29,dl as __vite_glob_0_28,dk as __vite_glob_0_27,dj as __vite_glob_0_26,di as __vite_glob_0_25,dh as __vite_glob_0_24,dg as __vite_glob_0_23,df as __vite_glob_0_22,de as __vite_glob_0_21,d5 as __vite_glob_0_20,cV as __vite_glob_0_19,cK as __vite_glob_0_18,cz as __vite_glob_0_17,co as __vite_glob_0_16,cd as __vite_glob_0_15,c2 as __vite_glob_0_14,bT as __vite_glob_0_13,bI as __vite_glob_0_12,bx as __vite_glob_0_11,bm as __vite_glob_0_10,eq as __vite_glob_0_9,ef as __vite_glob_0_8,e4 as __vite_glob_0_7,dV as __vite_glob_0_6,dK as __vite_glob_0_5,dz as __vite_glob_0_4,dn as __vite_glob_0_3,d4 as __vite_glob_0_2,bl as __vite_glob_0_1,bk as __vite_glob_0_0,eC as foundationShadowCss,aV as PortalProvider}from"./ds-components-i0Sf-uja.js";import"./lottie-react-BsOInVKs.js";import"./lottie-web-BuxFfAeN.js";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))u(d);new MutationObserver(d=>{for(const m of d)if(m.type==="childList")for(const g of m.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&u(g)}).observe(document,{childList:!0,subtree:!0});function _(d){const m={};return d.integrity&&(m.integrity=d.integrity),d.referrerPolicy&&(m.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?m.credentials="include":d.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function u(d){if(d.ep)return;d.ep=!0;const m=_(d);fetch(d.href,m)}})();const SHELL_DEFAULT_PULSE_APP="picsart.com",SHELL_EXPOSED_MODULE="Sidebar",RenderMode={ModuleFederation:"module-federation",Iframe:"iframe"},SHELL_HOST_CONFIG_PATH="/_shell/config.json",SHELL_SSO_SESSION_PATH="/_shell/session",SSO_SIGN_IN_HINT_COOKIE="__Host-ms_sso_hint",SsoSignInHint={SignedOut:"out"},ShellTemplate={Landing:"landing",Create:"create"},parseShellTemplate=({raw:e})=>
1{if(typeof e!="string")return;const s=e.trim().toLowerCase();if(s===ShellTemplate.Landing)return ShellTemplate.Landing;if(s===ShellTemplate.Create)return ShellTemplate.Create},SHELL_CONFIG_ELEMENT_ID="shell-config",PRERENDER_CSS_ATTRIBUTE="data-prerender-css",PRERENDER_FIXES_ATTRIBUTE="data-prerender-fixes",PRERENDER_CAPTURED_ATTRIBUTE="data-prerender-captured",PRERENDER_KEEP_ATTRIBUTE="data-prerender-keep",PRERENDER_ORIGINAL_HREF_ATTRIBUTE="data-original-href",SSO_LOGOUT_MODE="redirect",ShellConfigurationParameter={packageId:"packageId",appVersion:"appVersion",deploymentUrl:"deploymentUrl",pulseApp:"pulseApp",template:"template",exposedModule:"exposedModule",prerender:"prerender",language:"language",theme:"theme",isolate:"isolate"},SsoConfigParameter={authUrl:"ssoAuthUrl",clientId:"ssoClientId",redirectUri:"ssoRedirectUri",scope:"ssoScope",postLogoutRedirectUri:"ssoPostLogoutRedirectUri",debug:"ssoDebug"},EMBEDDED_HOST_ELEMENT_ID="embedded-host",ROOT_ELEMENT_ID="root",MISSING_CONFIGURATION_ERROR="No shell configuration found in DOM or query params",FEDERATION_HOST_NAME="host-shell",SHARED_REACT_VERSION="18.0.0",FEDERATION_MODULE_TYPE="module",FEDERATION_SHARE_SCOPE="default",DEFAULT_LANGUAGE="en",PerformanceMark={entryStart:"shell:entry-start",federationLoaded:"shell:federation-loaded",reactMounted:"shell:react-mounted",clientSideRerendering:"shell:client-side-rerendering-complete"},LOG_PREFIX="[shell]",LogMessage={bootstrapped:`${LOG_PREFIX} bootstrapped`,bootstrapTimeout:`${LOG_PREFIX} bootstrap timed out after 8s — revealing app`,iframeGuestLoaded:`${LOG_PREFIX} iframe guest document loaded — revealing app`,iframeGuestMessage:`${LOG_PREFIX} iframe guest reported in via postMessage — revealing app`,loadFailure:`${LOG_PREFIX} Failed to load miniapp:`,shadowStylesheetAdoptFailed:`${LOG_PREFIX} could not adopt a head-linked stylesheet into the shadow root:`,stylesheetRestoreFailed:`${LOG_PREFIX} could not restore stylesheet link — keeping inline prerender copy:`},BOOTSTRAP_TIMEOUT_MS=8e3,TRANSITION_SETTLE_MS=350,STYLESHEET_RESTORE_POLL_MS=200,STYLESHEET_RESTORE_TIMEOUT_MS=1e4,SSO_SCOPE="openid user-global",OAUTH_RESPONSE_PARAMS=Object.freeze(["code","state","error","error_description","error_uri","iss","session_state"]);new Set(OAUTH_RESPONSE_PARAMS);const resolveSsoScope=({requested:e})=>{const s=e?.trim();return s!==void 0&&s.length>0?s:SSO_SCOPE},isRecord=e=>typeof e=="object"&&e!==null,readNonEmptyString=({record:e,key:s})=>{const _=e[s];return typeof _=="string"&&_.length>0?_:void 0},readSsoConfig=({raw:e})=>{if(!isRecord(e))return;const s=readNonEmptyString({record:e,key:"authUrl"}),_=readNonEmptyString({record:e,key:"clientId"});if(!s||!_)return;const u=readNonEmptyString({record:e,key:"redirectUri"}),d=resolveSsoScope({requested:readNonEmptyString({record:e,key:"scope"})}),m=readNonEmptyString({record:e,key:"postLogoutRedirectUri"}),g=e.debug===!0;return{authUrl:s,clientId:_,...u&&{redirectUri:u},scope:d,...m&&{postLogoutRedirectUri:m},...g&&{debug:g}}},readPulseEnvironment=({raw:e})=>e==="stage"||e==="prod"?e:void 0,readRenderMode=({raw:e})=>e===RenderMode.Iframe||e===RenderMode.ModuleFederation?e:void 0,mapHostDescriptor=({payload:e,theme:s})=>{if(!isRecord(e))return null;const _=readNonEmptyString({record:e,key:"packageId"}),u=readNonEmptyString({record:e,key:"deploymentUrl"});if(!_||!u)return null;const d=readRenderMode({raw:e.renderMode}),m=e.htmlRenderingEnabled===!0,g=readPulseEnvironment({raw:e.pulseEnvironment}),b=parseShellTemplate({raw:e.template}),R=readSsoConfig({raw:e.sso});return{packageId:_,appVersion:"",deploymentUrl:u,pulseApp:SHELL_DEFAULT_PULSE_APP,...g&&{pulseEnvironment:g},...b&&{template:b},exposedModule:readNonEmptyString({record:e,key:"exposedModule"})??SHELL_EXPOSED_MODULE,...d&&{renderMode:d},...m&&{htmlRenderingEnabled:m},prerender:!1,language:DEFAULT_LANGUAGE,theme:s,...R&&{sso:R}}};var define_process_env_default$2={REACT_APP_SHELL_ISOLATE:"false"};const readSsoConfigFromParams=e=>{const s=e.get(SsoConfigParameter.authUrl)??void 0,_=e.get(SsoConfigParameter.clientId)??void 0;if(!s||!_)return;const u=e.get(SsoConfigParameter.redirectUri)??void 0,d=resolveSsoScope({requested:e.get(SsoConfigParameter.scope)}),m=e.get(SsoConfigParameter.postLogoutRedirectUri)??void 0,g=e.get(SsoConfigParameter.debug)==="true";return{authUrl:s,clientId:_,...u&&{redirectUri:u},scope:d,...m&&{postLogoutRedirectUri:m},...g&&{debug:g}}},readThemePreference=e=>{const s=e.get(ShellConfigurationParameter.theme);if(s==="light"||s==="dark")return s;const _=/(?:^|;\s*)ms_theme=(light|dark)/.exec(document.cookie)?.[1];return _==="light"||_==="dark"?_:"dark"},readIsolatePreference=e=>{const s=e.get(ShellConfigurationParameter.isolate);return s==="true"?!0:s==="false"?!1:define_process_env_default$2.REACT_APP_SHELL_ISOLATE==="true"},withSsoScope=({sso:e,...s})=>e?{...s,sso:{...e,scope:resolveSsoScope({requested:e.scope})}}:s,readFromDom=()=>{const e=document.getElementById(SHELL_CONFIG_ELEMENT_ID);if(!e?.textContent)return null;try{return withSsoScope(JSON.parse(e.textContent))}catch{return null}},readFromParams=()=>{const e=new URLSearchParams(window.location.search),s=e.get(ShellConfigurationParameter.packageId),_=e.get(ShellConfigurationParameter.appVersion),u=e.get(ShellConfigurationParameter.deploymentUrl);if(!s||!_||!u)return null;const d=e.get(ShellConfigurationParameter.template),m=d||void 0,g=readSsoConfigFromParams(e);return{packageId:s,appVersion:_,deploymentUrl:u,pulseApp:e.get(ShellConfigurationParameter.pulseApp)??SHELL_DEFAULT_PULSE_APP,template:m,exposedModule:e.get(ShellConfigurationParameter.exposedModule)??SHELL_EXPOSED_MODULE,prerender:e.has(ShellConfigurationParameter.prerender),language:e.get(ShellConfigurationParameter.language)??DEFAULT_LANGUAGE,theme:readThemePreference(e),...g&&{sso:g}}},readFromHost=async()=>{try{const e=await fetch(SHELL_HOST_CONFIG_PATH,{headers:{Accept:"application/json"}});if(!e.ok)return null;const s=await e.json(),_=new URLSearchParams(window.location.search);return mapHostDescriptor({payload:s,theme:readThemePreference(_)})}catch{return null}},readShellConfiguration=async()=>{const e=readFromDom()??readFromParams()??await readFromHost();if(!e)throw new Error(MISSING_CONFIGURATION_ERROR);const s=readIsolatePreference(new URLSearchParams(window.location.search));return{...e.theme?e:{...e,theme:"dark"},isolate:s}},withPostLogoutRedirect=({ssoConfig:e,origin:s})=>{const _=e.postLogoutRedirectUri?.trim();return{...e,postLogoutRedirectUri:_!==void 0&&_.length>0?_:s}},withSessionEndpoint=({ssoConfig:e})=>({...e,sessionEndpoint:SHELL_SSO_SESSION_PATH}),resolveSsoAutoRestore=({cookieHeader:e})=>{const s=`${SSO_SIGN_IN_HINT_COOKIE}=`;return e.split(";").map(u=>u.trim()).find(u=>u.startsWith(s))?.slice(s.length)!==SsoSignInHint.SignedOut};var runtime={},runtime_cjs={},index_cjs$3={},index_cjs$2={},polyfills_cjs$1={},hasRequiredPolyfills_cjs$1;function requirePolyfills_cjs$1(){if(hasRequiredPolyfills_cjs$1)return polyfills_cjs$1;hasRequiredPolyfills_cjs$1=1;function e(){return e=Object.assign||function(u){for(var d=1;d<arguments.length;d++){var m=arguments[d];for(var g in m)Object.prototype.hasOwnProperty.call(m,g)&&(u[g]=m[g])}return u},e.apply(this,arguments)}function s(_,u){if(_==null)return{};var d={},m=Object.keys(_),g,b;for(b=0;b<m.length;b++)g=m[b],!(u.indexOf(g)>=0)&&(d[g]=_[g]);return d}return polyfills_cjs$1._extends=e,polyfills_cjs$1._object_without_properties_loose=s,polyfills_cjs$1}var index_cjs$1={},polyfills_cjs={},hasRequiredPolyfills_cjs;function requirePolyfills_cjs(){if(hasRequiredPolyfills_cjs)return polyfills_cjs;hasRequiredPolyfills_cjs=1;function e(){return e=Object.assign||function(_){for(var u=1;u<arguments.length;u++){var d=arguments[u];for(var m in d)Object.prototype.hasOwnProperty.call(d,m)&&(_[m]=d[m])}return _},e.apply(this,arguments)}return polyfills_cjs._=e,polyfills_cjs}var hasRequiredIndex_cjs$3;function requireIndex_cjs$3(){if(hasRequiredIndex_cjs$3)return index_cjs$1;hasRequiredIndex_cjs$3=1;var define_process_env_default={REACT_APP_API_URL:"https://api.picsart.com/gw-v2",VITE_APP_API_URL:"https://api.picsart.com/gw-v2",REACT_APP_UPLOAD_API_URL:"https://upload.picsart.com",REACT_APP_WEB_SSO_API_URL:"https://api.picsart.com",REACT_APP_PICSART_HOST_URL:"https://picsart.com",REACT_APP_RECAPTCHA_PUBLIC_KEY:"6LdM2s8cAAAAAN7jqVXAqWdDlQ3Qca88ke3xdtpR",REACT_APP_MONETIZATION_API_URL:"https://api.picsart.com",REACT_APP_X_APP_AUTHORIZATION_TOKEN:"Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Ijk3MjFiZTM2LWIyNzAtNDlkNS05NzU2LTlkNTk3Yzg2YjA1MSJ9.eyJzdWIiOiJhdXRoLXNlcnZpY2Utd2ViIiwiYXVkIjoiYXV0aC1zZXJ2aWNlLXdlYiIsIm5iZiI6MTY4NzQyOTgyOCwic2NvcGUiOltdLCJpYXQiOjE2ODc0NDA2MjgsImlzcyI6Imh0dHBzOi8vcGEtYXV0aG9yaXphdGlvbi1zZXJ2ZXIuc3RhZ2UucGljc2FydC50b29scy9hcGkvb2F1dGgyIiwianRpIjoiYjRkYzU1MzAtYzEzOC00MzBmLWFiNjUtYTMyNDZlYmMwNWU3In0.UpUJB5QBuQKekvSWcBiA_lH0YdB6wKGXu2VscIK3hNYfzCDvvu-jKF7hnVgbX-REE1fAO3CY68eKBthJU1cC48UqLmQHQk8imPIUdPfARRXnH_6y2Qc7FgP3-Go2hLPwTxPXcTX0_AvAt6nviLPnvbfhKrqB6bCp6W4nmVWakrE-PLCJtZ-KuCa5-b6MIsRz_tqNeDXP-TLZhjjdfjIk0hrqr86WIQOH2MsrwLibSpJyKBhNDh314T7fsV4pHx3uQj_NhchsDBATf6vF0x74VjHO1Y6r5XSi6zgBEm-zfdqPOVitC-J-nnQNlOwAEmgFL_Ho49mkgWKjFKmXvm4bFw",ADYEN_KEY:"live_AWRY4
1KLIVNGCRDVAOUBDDX4OU4UE4VPH",STRIPE_KEY:"pk_live_51Sme7qD9HvEpXaqyRGxpOa16dViiaB4FfQaFvkMxBHLLVDAKYnQm4jwseynr0xOiN7klySVR8f5WyUFbLAAX7kvx00FhaYSVP4",MINIAPPS_PLATFORM_SDK:"production",REACT_APP_SHELL_ISOLATE:"false"},polyfills=requirePolyfills_cjs();const FederationModuleManifest="federation-manifest.json",MANIFEST_EXT=".json",BROWSER_LOG_KEY="FEDERATION_DEBUG",NameTransformSymbol={AT:"@",HYPHEN:"-",SLASH:"/"},NameTransformMap={[NameTransformSymbol.AT]:"scope_",[NameTransformSymbol.HYPHEN]:"_",[NameTransformSymbol.SLASH]:"__"},EncodedNameTransformMap={[NameTransformMap[NameTransformSymbol.AT]]:NameTransformSymbol.AT,[NameTransformMap[NameTransformSymbol.HYPHEN]]:NameTransformSymbol.HYPHEN,[NameTransformMap[NameTransformSymbol.SLASH]]:NameTransformSymbol.SLASH},SEPARATOR=":",ManifestFileName="mf-manifest.json",StatsFileName="mf-stats.json",MFModuleType={NPM:"npm",APP:"app"},MODULE_DEVTOOL_IDENTIFIER="__MF_DEVTOOLS_MODULE_INFO__",ENCODE_NAME_PREFIX="ENCODE_NAME_PREFIX",TEMP_DIR=".federation",MFPrefetchCommon={identifier:"MFDataPrefetch",globalKey:"__PREFETCH__",library:"mf-data-prefetch",exportsKey:"__PREFETCH_EXPORTS__",fileName:"bootstrap.js"};var ContainerPlugin=Object.freeze({__proto__:null}),ContainerReferencePlugin=Object.freeze({__proto__:null}),ModuleFederationPlugin=Object.freeze({__proto__:null}),SharePlugin=Object.freeze({__proto__:null});function isBrowserEnv(){return typeof window<"u"&&typeof window.document<"u"}function isReactNativeEnv(){var e;return typeof navigator<"u"&&((e=navigator)==null?void 0:e.product)==="ReactNative"}function isBrowserDebug(){try{if(isBrowserEnv()&&window.localStorage)return!!localStorage.getItem(BROWSER_LOG_KEY)}catch{return!1}return!1}function isDebugMode(){return typeof process<"u"&&define_process_env_default&&define_process_env_default.FEDERATION_DEBUG?!!define_process_env_default.FEDERATION_DEBUG:typeof FEDERATION_DEBUG<"u"&&FEDERATION_DEBUG?!0:isBrowserDebug()}const getProcessEnv=function(){return typeof process<"u"&&define_process_env_default?define_process_env_default:{}},LOG_CATEGORY="[ Federation Runtime ]",parseEntry=(e,s,_=SEPARATOR)=>{const u=e.split(_),d=getProcessEnv().NODE_ENV==="development"&&s,m="*",g=b=>b.startsWith("http")||b.includes(MANIFEST_EXT);if(u.length>=2){let[b,...R]=u;e.startsWith(_)&&(b=u.slice(0,2).join(_),R=[d||u.slice(2).join(_)]);let I=d||R.join(_);return g(I)?{name:b,entry:I}:{name:b,version:I||m}}else if(u.length===1){const[b]=u;return d&&g(d)?{name:b,entry:d}:{name:b,version:d||m}}else throw`Invalid entry value: ${e}`},composeKeyWithSeparator=function(...e){return e.length?e.reduce((s,_)=>_?s?`${s}${SEPARATOR}${_}`:_:s,""):""},encodeName=function(e,s="",_=!1){try{const u=_?".js":"";return`${s}${e.replace(new RegExp(`${NameTransformSymbol.AT}`,"g"),NameTransformMap[NameTransformSymbol.AT]).replace(new RegExp(`${NameTransformSymbol.HYPHEN}`,"g"),NameTransformMap[NameTransformSymbol.HYPHEN]).replace(new RegExp(`${NameTransformSymbol.SLASH}`,"g"),NameTransformMap[NameTransformSymbol.SLASH])}${u}`}catch(u){throw u}},decodeName=function(e,s,_){try{let u=e;if(s){if(!u.startsWith(s))return u;u=u.replace(new RegExp(s,"g"),"")}return u=u.replace(new RegExp(`${NameTransformMap[NameTransformSymbol.AT]}`,"g"),EncodedNameTransformMap[NameTransformMap[NameTransformSymbol.AT]]).replace(new RegExp(`${NameTransformMap[NameTransformSymbol.SLASH]}`,"g"),EncodedNameTransformMap[NameTransformMap[NameTransformSymbol.SLASH]]).replace(new RegExp(`${NameTransformMap[NameTransformSymbol.HYPHEN]}`,"g"),EncodedNameTransformMap[NameTransformMap[NameTransformSymbol.HYPHEN]]),_&&(u=u.replace(".js","")),u}catch(u){throw u}},generateExposeFilename=(e,s)=>{if(!e)return"";let _=e;return _==="."&&(_="default_export"),_.startsWith("./")&&(_=_.replace("./","")),encodeName(_,"__federation_expose_",s)},generateShareFilename=(e,s)=>e?encodeName(e,"__federation_shared_",s):"",getResourceUrl=(e,s)=>{if("getPublicPath"in e){let _;return e.getPublicPath.startsWith("function")?_=new Function("return "+e.getPublicPath)()():_=new Function(e.getPublicPath)(),`${_}${s}`}else return"publicPath"in e?!isBrowserEnv()&&!isReactNativeEnv()&&"ssrPublicPath"in e?`${e.ssrPublicPath}${s}`:`${e.publicPath}${s}`:(console.warn("Cannot get resource URL. If in debug mode, please ignore.",e,s),"")},assert=(e,s)=>{e||error(s)},error=e=>{throw new Error(`${LOG_CATEGORY}: ${e}`)},warn=e=>{console.warn(`${LOG_CATEGORY}: ${e}`)};function safeToString(e){try{return JSON.stringify(e,null,2)}catch{return""}}const VERSION_PATTERN_REGEXP=/^([\d^=v<>~]|[*xX]$)/;function isRequiredVersion(e){return VERSION_PATTERN_REGEXP.test(e)}const simpleJoinRemoteEntry=(e,s)=>{if(!e)return s;const u=(d=>{if(d===".")return"";
1if(d.startsWith("./"))return d.replace("./","");if(d.startsWith("/")){const m=d.slice(1);return m.endsWith("/")?m.slice(0,-1):m}return d})(e);return u?u.endsWith("/")?`${u}${s}`:`${u}/${s}`:s};function inferAutoPublicPath(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}function generateSnapshotFromManifest(e,s={}){var _,u;const{remotes:d={},overrides:m={},version:g}=s;let b;const R=()=>"publicPath"in e.metaData?e.metaData.publicPath==="auto"&&g?inferAutoPublicPath(g):e.metaData.publicPath:e.metaData.getPublicPath,I=Object.keys(m);let C={};if(!Object.keys(d).length){var U;C=((U=e.remotes)==null?void 0:U.reduce((O,$)=>{let D;const se=$.federationContainerName;return I.includes(se)?D=m[se]:"version"in $?D=$.version:D=$.entry,O[se]={matchedVersion:D},O},{}))||{}}Object.keys(d).forEach(O=>C[O]={matchedVersion:I.includes(O)?m[O]:d[O]});const{remoteEntry:{path:J,name:Y,type:M},types:j,buildInfo:{buildVersion:ee},globalName:ie,ssrRemoteEntry:te}=e.metaData,{exposes:V}=e;let N={version:g||"",buildVersion:ee,globalName:ie,remoteEntry:simpleJoinRemoteEntry(J,Y),remoteEntryType:M,remoteTypes:simpleJoinRemoteEntry(j.path,j.name),remoteTypesZip:j.zip||"",remoteTypesAPI:j.api||"",remotesInfo:C,shared:e?.shared.map(O=>({assets:O.assets,sharedName:O.name,version:O.version})),modules:V?.map(O=>({moduleName:O.name,modulePath:O.path,assets:O.assets}))};if((_=e.metaData)!=null&&_.prefetchInterface){const O=e.metaData.prefetchInterface;N=polyfills._({},N,{prefetchInterface:O})}if((u=e.metaData)!=null&&u.prefetchEntry){const{path:O,name:$,type:D}=e.metaData.prefetchEntry;N=polyfills._({},N,{prefetchEntry:simpleJoinRemoteEntry(O,$),prefetchEntryType:D})}if("publicPath"in e.metaData?b=polyfills._({},N,{publicPath:R(),ssrPublicPath:e.metaData.ssrPublicPath}):b=polyfills._({},N,{getPublicPath:R()}),te){const O=simpleJoinRemoteEntry(te.path,te.name);b.ssrRemoteEntry=O,b.ssrRemoteEntryType=te.type||"commonjs-module"}return b}function isManifestProvider(e){return!!("remoteEntry"in e&&e.remoteEntry.includes(MANIFEST_EXT))}const PREFIX="[ Module Federation ]";let Logger=class{setPrefix(s){this.prefix=s}log(...s){console.log(this.prefix,...s)}warn(...s){console.log(this.prefix,...s)}error(...s){console.log(this.prefix,...s)}success(...s){console.log(this.prefix,...s)}info(...s){console.log(this.prefix,...s)}ready(...s){console.log(this.prefix,...s)}debug(...s){isDebugMode()&&console.log(this.prefix,...s)}constructor(s){this.prefix=s}};function createLogger(e){return new Logger(e)}const logger=createLogger(PREFIX);async function safeWrapper(e,s){try{return await e()}catch(_){!s&&warn(_);return}}function isStaticResourcesEqual(e,s){const _=/^(https?:)?\/\//i,u=e.replace(_,"").replace(/\/$/,""),d=s.replace(_,"").replace(/\/$/,"");return u===d}function createScript(e){let s=null,_=!0,u=2e4,d;const m=document.getElementsByTagName("script");for(let b=0;b<m.length;b++){const R=m[b],I=R.getAttribute("src");if(I&&isStaticResourcesEqual(I,e.url)){s=R,_=!1;break}}if(!s){const b=e.attrs;s=document.createElement("script"),s.type=b?.type==="module"?"module":"text/javascript";let R;e.createScriptHook&&(R=e.createScriptHook(e.url,e.attrs),R instanceof HTMLScriptElement?s=R:typeof R=="object"&&("script"in R&&R.script&&(s=R.script),"timeout"in R&&R.timeout&&(u=R.timeout))),s.src||(s.src=e.url),b&&!R&&Object.keys(b).forEach(I=>{s&&(I==="async"||I==="defer"?s[I]=b[I]:s.getAttribute(I)||s.setAttribute(I,b[I]))})}const g=async(b,R)=>{clearTimeout(d);const I=()=>{R?.type==="error"?e?.onErrorCallback&&e?.onErrorCallback(R):e?.cb&&e?.cb()};if(s&&(s.onerror=null,s.onload=null,safeWrapper(()=>{const{needDeleteScript:C=!0}=e;C&&s?.parentNode&&s.parentNode.removeChild(s)}),b&&typeof b=="function")){const C=b(R);if(C instanceof Promise){const U=await C;return I(),U}return I(),C}I()};return s.onerror=g.bind(null,s.onerror),s.onload=g.bind(null,s.onload),d=setTimeout(()=>{g(null,new Error(`Remote script "${e.url}" time-outed.`))},u),{script:s,needAttach:_}}function createLink(e){let s=null,_=!0;const u=document.getElementsByTagName("link");for(let m=0;m<u.length;m++){const g=u[m],b=g.getAttribute("href"),R=g.getAttribute("rel");if(b&&isStaticResourcesEqual(b,e.url)&&R===e.attrs.rel){s=g,_=!1;break}}if(!s){s=document.createElement("link"),s.setAttribute("href",e.url);let m;const g=e.attrs;e.createLinkHook&&(m=e.createLinkHook(e.url,g),m instanceof HTMLLinkElement&&(s=m)),g&&!m&&Object.keys(g).forEach(b=>{s&&!s.getAttribute(b)&&s.setAttribute(b,g[b])})}const d=(m,g)=>{const b=()=>{g?.type==="error"?e?.onErrorCallback&&e?.onErrorCallback(g):e?.cb&&e?.cb()};
1if(s&&(s.onerror=null,s.onload=null,safeWrapper(()=>{const{needDeleteLink:R=!0}=e;R&&s?.parentNode&&s.parentNode.removeChild(s)}),m)){const R=m(g);return b(),R}b()};return s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),{link:s,needAttach:_}}function loadScript(e,s){const{attrs:_={},createScriptHook:u}=s;return new Promise((d,m)=>{const{script:g,needAttach:b}=createScript({url:e,cb:d,onErrorCallback:m,attrs:polyfills._({fetchpriority:"high"},_),createScriptHook:u,needDeleteScript:!0});b&&document.head.appendChild(g)})}const sdkImportCache=new Map;function importNodeModule(e){if(!e)throw new Error("import specifier is required");if(sdkImportCache.has(e))return sdkImportCache.get(e);const _=new Function("name","return import(name)")(e).then(u=>u).catch(u=>{throw console.error(`Error importing module ${e}:`,u),sdkImportCache.delete(e),u});return sdkImportCache.set(e,_),_}const loadNodeFetch=async()=>{const e=await importNodeModule("node-fetch");return e.default||e},lazyLoaderHookFetch=async(e,s,_)=>{const d=await((m,g)=>_.lifecycle.fetch.emit(m,g))(e,s||{});return!d||!(d instanceof Response)?(typeof fetch>"u"?await loadNodeFetch():fetch)(e,s||{}):d},createScriptNode=typeof ENV_TARGET>"u"||ENV_TARGET!=="web"?(url,cb,attrs,loaderHook)=>{if(loaderHook?.createScriptHook){const e=loaderHook.createScriptHook(url);e&&typeof e=="object"&&"url"in e&&(url=e.url)}let urlObj;try{urlObj=new URL(url)}catch(e){console.error("Error constructing URL:",e),cb(new Error(`Invalid URL: ${e}`));return}const getFetch=async()=>loaderHook?.fetch?(e,s)=>lazyLoaderHookFetch(e,s,loaderHook):typeof fetch>"u"?loadNodeFetch():fetch,handleScriptFetch=async(f,urlObj)=>{try{var _vm_constants;const res=await f(urlObj.href),data=await res.text(),[path,vm]=await Promise.all([importNodeModule("path"),importNodeModule("vm")]),scriptContext={exports:{},module:{exports:{}}},urlDirname=urlObj.pathname.split("/").slice(0,-1).join("/"),filename=path.basename(urlObj.pathname);var _vm_constants_USE_MAIN_CONTEXT_DEFAULT_LOADER;const script=new vm.Script(`(function(exports, module, require, __dirname, __filename) {${data}
2})`,{filename,importModuleDynamically:(_vm_constants_USE_MAIN_CONTEXT_DEFAULT_LOADER=(_vm_constants=vm.constants)==null?void 0:_vm_constants.USE_MAIN_CONTEXT_DEFAULT_LOADER)!=null?_vm_constants_USE_MAIN_CONTEXT_DEFAULT_LOADER:importNodeModule});script.runInThisContext()(scriptContext.exports,scriptContext.module,eval("require"),urlDirname,filename);const exportedInterface=scriptContext.module.exports||scriptContext.exports;if(attrs&&exportedInterface&&attrs.globalName){const e=exportedInterface[attrs.globalName]||exportedInterface;cb(void 0,e);return}cb(void 0,exportedInterface)}catch(e){cb(e instanceof Error?e:new Error(`Script execution error: ${e}`))}};getFetch().then(async e=>{if(attrs?.type==="esm"||attrs?.type==="module")return loadModule(urlObj.href,{fetch:e,vm:await importNodeModule("vm")}).then(async s=>{await s.evaluate(),cb(void 0,s.namespace)}).catch(s=>{cb(s instanceof Error?s:new Error(`Script execution error: ${s}`))});handleScriptFetch(e,urlObj)}).catch(e=>{cb(e)})}:(e,s,_,u)=>{s(new Error("createScriptNode is disabled in non-Node.js environment"))},loadScriptNode=typeof ENV_TARGET>"u"||ENV_TARGET!=="web"?(e,s)=>new Promise((_,u)=>{createScriptNode(e,(d,m)=>{if(d)u(d);else{var g,b;const R=(s==null||(g=s.attrs)==null?void 0:g.globalName)||`__FEDERATION_${s==null||(b=s.attrs)==null?void 0:b.name}:custom__`,I=globalThis[R]=m;_(I)}},s.attrs,s.loaderHook)}):(e,s)=>{throw new Error("loadScriptNode is disabled in non-Node.js environment")},esmModuleCache=new Map;async function loadModule(e,s){if(esmModuleCache.has(e))return esmModuleCache.get(e);const{fetch:_,vm:u}=s,m=await(await _(e)).text(),g=new u.SourceTextModule(m,{importModuleDynamically:async(b,R)=>{const I=new URL(b,e).href;return loadModule(I,s)}});return esmModuleCache.set(e,g),await g.link(async b=>{const R=new URL(b,e).href;return await loadModule(R,s)}),g}function normalizeOptions(e,s,_){return function(u){if(u===!1)return!1;if(typeof u>"u")return e?s:!1;if(u===!0)return s;if(u&&typeof u=="object")return polyfills._({},s,u);throw new Error(`Unexpected type for \`${_}\`, expect boolean/undefined/object, got: ${typeof u}`)}}const createModuleFederationConfig=e=>e;return index_cjs$1.BROWSER_LOG_KEY=BROWSER_LOG_KEY,index_cjs$1.ENCODE_NAME_PREFIX=ENCODE_NAME_PREFIX,index_cjs$1.EncodedNameTransformMap=EncodedNameTransformMap,index_cjs$1.FederationModuleManifest=FederationModuleManifest,index_cjs$1.MANIFEST_EXT=MANIFEST_EXT,index_cjs$1.MFModuleType=MFModuleType,index_cjs$1.MFPrefetchCommon=MFPrefetchCommon,index_cjs$1.MODULE_DEVTOOL_IDENTIFIER=MODULE_DEVTOOL_IDENTIFIER,index_cjs$1.ManifestFileName=ManifestFileName,index_cjs$1.NameTransformMap=NameTransformMap,index_cjs$1.NameTransformSymbol=NameTransformSymbol,index_cjs$1.SEPARATOR=SEPARATOR,index_cjs$1.StatsFileName=StatsFileName,index_cjs$1.TEMP_DIR=TEMP_DIR,index_cjs$1.assert=assert,index_cjs$1.composeKeyWithSeparator=composeKeyWithSeparator,index_cjs$1.containerPlugin=ContainerPlugin,index_cjs$1.containerReferencePlugin=ContainerReferencePlugin,index_cjs$1.createLink=createLink,index_cjs$1.createLogger=createLogger,index_cjs$1.createModuleFederationConfig=createModuleFederationConfig,index_cjs$1.createScript=createScript,index_cjs$1.createScriptNode=createScriptNode,index_cjs$1.decodeName=decodeName,index_cjs$1.encodeName=encodeName,index_cjs$1.error=error,index_cjs$1.generateExposeFilename=generateExposeFilename,index_cjs$1.generateShareFilename=generateShareFilename,index_cjs$1.generateSnapshotFromManifest=generateSnapshotFromManifest,index_cjs$1.getProcessEnv=getProcessEnv,index_cjs$1.getResourceUrl=getResourceUrl,index_cjs$1.inferAutoPublicPath=inferAutoPublicPath,index_cjs$1.isBrowserEnv=isBrowserEnv,index_cjs$1.isDebugMode=isDebugMode,index_cjs$1.isManifestProvider=isManifestProvider,index_cjs$1.isReactNativeEnv=isReactNativeEnv,index_cjs$1.isRequiredVersion=isRequiredVersion,index_cjs$1.isStaticResourcesEqual=isStaticResourcesEqual,index_cjs$1.loadScript=loadScript,
2index_cjs$1.loadScriptNode=loadScriptNode,index_cjs$1.logger=logger,index_cjs$1.moduleFederationPlugin=ModuleFederationPlugin,index_cjs$1.normalizeOptions=normalizeOptions,index_cjs$1.parseEntry=parseEntry,index_cjs$1.safeToString=safeToString,index_cjs$1.safeWrapper=safeWrapper,index_cjs$1.sharePlugin=SharePlugin,index_cjs$1.simpleJoinRemoteEntry=simpleJoinRemoteEntry,index_cjs$1.warn=warn,index_cjs$1}var index_cjs={},hasRequiredIndex_cjs$2;function requireIndex_cjs$2(){if(hasRequiredIndex_cjs$2)return index_cjs;hasRequiredIndex_cjs$2=1;const e="RUNTIME-001",s="RUNTIME-002",_="RUNTIME-003",u="RUNTIME-004",d="RUNTIME-005",m="RUNTIME-006",g="RUNTIME-007",b="RUNTIME-008",R="RUNTIME-009",I="TYPE-001",C="BUILD-001",U="BUILD-002",J=V=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${V.split("-")[0].toLowerCase()}/${V}`,Y=(V,N,O,$)=>{const D=[`${[N[V]]} #${V}`];return O&&D.push(`args: ${JSON.stringify(O)}`),D.push(J(V)),$&&D.push(`Original Error Message:
3 ${$}`),D.join(`
4`)};function M(){return M=Object.assign||function(N){for(var O=1;O<arguments.length;O++){var $=arguments[O];for(var D in $)Object.prototype.hasOwnProperty.call($,D)&&(N[D]=$[D])}return N},M.apply(this,arguments)}const j={[e]:"Failed to get remoteEntry exports.",[s]:'The remote entry interface does not contain "init"',[_]:"Failed to get manifest.",[u]:"Failed to locate remote.",[d]:"Invalid loadShareSync function call from bundler runtime",[m]:"Invalid loadShareSync function call from runtime",[g]:"Failed to get remote snapshot.",[b]:"Failed to load script resources.",[R]:"Please call createInstance first."},ee={[I]:"Failed to generate type declaration. Execute the below cmd to reproduce and fix the error."},ie={[C]:"Failed to find expose module.",[U]:"PublicPath is required in prod mode."},te=M({},j,ee,ie);return index_cjs.BUILD_001=C,index_cjs.BUILD_002=U,index_cjs.RUNTIME_001=e,index_cjs.RUNTIME_002=s,index_cjs.RUNTIME_003=_,index_cjs.RUNTIME_004=u,index_cjs.RUNTIME_005=d,index_cjs.RUNTIME_006=m,index_cjs.RUNTIME_007=g,index_cjs.RUNTIME_008=b,index_cjs.RUNTIME_009=R,index_cjs.TYPE_001=I,index_cjs.buildDescMap=ie,index_cjs.errorDescMap=te,index_cjs.getShortErrorMsg=Y,index_cjs.runtimeDescMap=j,index_cjs.typeDescMap=ee,index_cjs}var hasRequiredIndex_cjs$1;function requireIndex_cjs$1(){if(hasRequiredIndex_cjs$1)return index_cjs$2;hasRequiredIndex_cjs$1=1;var e=requirePolyfills_cjs$1(),s=requireIndex_cjs$3(),_=requireIndex_cjs$2();const u="[ Federation Runtime ]",d=s.createLogger(u);function m(o,t){o||g(t)}function g(o){throw o instanceof Error?(o.message.startsWith(u)||(o.message=`${u}: ${o.message}`),o):new Error(`${u}: ${o}`)}function b(o){o instanceof Error&&(o.message.startsWith(u)||(o.message=`${u}: ${o.message}`)),d.warn(o)}function R(o,t){return o.findIndex(n=>n===t)===-1&&o.push(t),o}function I(o){return"version"in o&&o.version?`${o.name}:${o.version}`:"entry"in o&&o.entry?`${o.name}:${o.entry}`:`${o.name}`}function C(o){return typeof o.entry<"u"}function U(o){return!o.entry.includes(".json")}async function J(o,t){try{return await o()}catch(n){!t&&b(n);return}}function Y(o){return o&&typeof o=="object"}const M=Object.prototype.toString;function j(o){return M.call(o)==="[object Object]"}function ee(o,t){const n=/^(https?:)?\/\//i,r=o.replace(n,"").replace(/\/$/,""),i=t.replace(n,"").replace(/\/$/,"");return r===i}function ie(o){return Array.isArray(o)?o:[o]}function te(o){const t={url:"",type:"global",globalName:""};return s.isBrowserEnv()||s.isReactNativeEnv()?"remoteEntry"in o?{url:o.remoteEntry,type:o.remoteEntryType,globalName:o.globalName}:t:"ssrRemoteEntry"in o?{url:o.ssrRemoteEntry||t.url,type:o.ssrRemoteEntryType||t.type,globalName:o.globalName}:t}const V=(o,t)=>{let n;return o.endsWith("/")?n=o.slice(0,-1):n=o,t.startsWith(".")&&(t=t.slice(1)),n=n+t,n},N=typeof globalThis=="object"?globalThis:window,O=(()=>{try{return document.defaultView}catch{return N}})(),$=O;function D(o,t,n){Object.defineProperty(o,t,{value:n,configurable:!1,writable:!0})}function se(o,t){return Object.hasOwnProperty.call(o,t)}se(N,"__GLOBAL_LOADING_REMOTE_ENTRY__")||D(N,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});const oe=N.__GLOBAL_LOADING_REMOTE_ENTRY__;function Fe(o){var t,n,r,i,l,c;se(o,"__VMOK__")&&!se(o,"__FEDERATION__")&&D(o,"__FEDERATION__",o.__VMOK__),se(o,"__FEDERATION__")||(D(o,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),D(o,"__VMOK__",o.__FEDERATION__));var a;(a=(t=o.__FEDERATION__).__GLOBAL_PLUGIN__)!=null||(t.__GLOBAL_PLUGIN__=[]);var p;(p=(n=o.__FEDERATION__).__INSTANCES__)!=null||(n.__INSTANCES__=[]);var h;(h=(r=o.__FEDERATION__).moduleInfo)!=null||(r.moduleInfo={});var v;(v=(i=o.__FEDERATION__).__SHARE__)!=null||(i.__SHARE__={});var E;(E=(l=o.__FEDERATION__).__MANIFEST_LOADING__)!=null||(l.__MANIFEST_LOADING__={});var y;(y=(c=o.__FEDERATION__).__PRELOADED_MAP__)!=null||(c.__PRELOADED_MAP__=new Map)}Fe(N),Fe(O);function He(){N.__FEDERATION__.__GLOBAL_PLUGIN__=[],N.__FEDERATION__.__INSTANCES__=[],N.__FEDERATION__.moduleInfo={},N.__FEDERATION__.__SHARE__={},N.__FEDERATION__.__MANIFEST_LOADING__={},Object.keys(oe).forEach(o=>{delete oe[o]})}function ke(o){N.__FEDERATION__.__INSTANCES__.push(o)}function Ue(){return N.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function Be(o,t=s.isDebugMode()){t&&(N.__FEDERATION__.__DEBUG_CONSTRUCTOR__=o,N.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="0.19.1")}function ne(o,t){if(typeof t=="string"){if(o[t])return{value:o[t],key:t};{const r=Object.keys(o);for(const i of r){const[l,c]=i.split(":"),a=`${l}:${t}`,p=o[a];if(p)return{value:p,key:a}}return{value:void 0,key:t}}}else throw new Error("key must be string")}const be=()=>O.__FEDERATION__.moduleInfo,Ge=(o,t)=>{const n=I(o),r=ne(t,n).value;if(r&&!r.version&&"version"in o&&o.version&&(r.version=o.version),r)return r;if("version"in o&&o.version){const{version:i}=o,l=e._object_without_properties_loose(o,["version"]),c=I(l),a=ne(O.__FEDERATION__.moduleInfo,c).value;if(a?.version===i)return a}},ce=o=>Ge(o,O.__FEDERATION__.moduleInfo),Re=(o,t)=>{const n=I(o);return O.__FEDERATION__.moduleInfo[n]=t,O.__FEDERATION__.moduleInfo},Te=o=>(O.__FEDERATION__.moduleInfo=e._extends({},O.__FEDERATION__.moduleInfo,o),()=>{const t=Object.keys(o);for(const n of t)delete O.__FEDERATION__.moduleInfo[n]}),Ee=(o,t)=>{const n=t||`__FEDERATION_${o}:custom__`,r=N[n];return{remoteEntryKey:n,entryExports:r}},Ve=o=>{const{__GLOBAL_PLUGIN__:t}=O.__FEDERATION__;o.forEach(n=>{t.findIndex(r=>r.name===n.name)===-1?t.push(n):b(`The plugin ${n.name} has been registered.`)})},qe=()=>O.__FEDERATION__.__GLOBAL_PLUGIN__,We=o=>N.__FEDERATION__.__PRELOADED_MAP__.get(o),Ye=o=>N.__FEDERATION__.__PRELOADED_MAP__.set(o,!0),de="default",Ke="global",Xe="[0-9A-Za-z-]+",Ie=`(?:\\+(${Xe}(?:\\.${Xe}
4)*))`,ue="0|[1-9]\\d*",ye="[0-9]+",ze="\\d*[a-zA-Z-][a-zA-Z0-9-]*",Je=`(?:${ye}|${ze})`,pt=`(?:-?(${Je}(?:\\.${Je})*))`,Ze=`(?:${ue}|${ze})`,Qe=`(?:-(${Ze}(?:\\.${Ze})*))`,Ae=`${ue}|x|X|\\*`,ae=`[v=\\s]*(${Ae})(?:\\.(${Ae})(?:\\.(${Ae})(?:${Qe})?${Ie}?)?)?`,gt=`^\\s*(${ae})\\s+-\\s+(${ae})\\s*$`,ft=`[v=\\s]*${`(${ye})\\.(${ye})\\.(${ye})`}${pt}?${Ie}?`,Oe="((?:<|>)?=?)",ht=`(\\s*)${Oe}\\s*(${ft}|${ae})`,et="(?:~>?)",bt=`(\\s*)${et}\\s+`,tt="(?:\\^)",Et=`(\\s*)${tt}\\s+`,yt="(<|>)?=?\\s*\\*",vt=`^${tt}${ae}$`,St=`v?${`(${ue})\\.(${ue})\\.(${ue})`}${Qe}?${Ie}?`,Rt=`^${et}${ae}$`,Tt=`^${Oe}\\s*${ae}$`,It=`^${Oe}\\s*(${St})$|^$`,At="^\\s*>=\\s*0.0.0\\s*$";function Z(o){return new RegExp(o)}function B(o){return!o||o.toLowerCase()==="x"||o==="*"}function st(...o){return t=>o.reduce((n,r)=>r(n),t)}function ot(o){return o.match(Z(It))}function nt(o,t,n,r){const i=`${o}.${t}.${n}`;return r?`${i}-${r}`:i}function Ot(o){return o.replace(Z(gt),(t,n,r,i,l,c,a,p,h,v,E,y)=>(B(r)?n="":B(i)?n=`>=${r}.0.0`:B(l)?n=`>=${r}.${i}.0`:n=`>=${n}`,B(h)?p="":B(v)?p=`<${Number(h)+1}.0.0-0`:B(E)?p=`<${h}.${Number(v)+1}.0-0`:y?p=`<=${h}.${v}.${E}-${y}`:p=`<=${p}`,`${n} ${p}`.trim()))}function Nt(o){return o.replace(Z(ht),"$1$2$3")}function Pt(o){return o.replace(Z(bt),"$1~")}function wt(o){return o.replace(Z(Et),"$1^")}function Mt(o){return o.trim().split(/\s+/).map(t=>t.replace(Z(vt),(n,r,i,l,c)=>B(r)?"":B(i)?`>=${r}.0.0 <${Number(r)+1}.0.0-0`:B(l)?r==="0"?`>=${r}.${i}.0 <${r}.${Number(i)+1}.0-0`:`>=${r}.${i}.0 <${Number(r)+1}.0.0-0`:c?r==="0"?i==="0"?`>=${r}.${i}.${l}-${c} <${r}.${i}.${Number(l)+1}-0`:`>=${r}.${i}.${l}-${c} <${r}.${Number(i)+1}.0-0`:`>=${r}.${i}.${l}-${c} <${Number(r)+1}.0.0-0`:r==="0"?i==="0"?`>=${r}.${i}.${l} <${r}.${i}.${Number(l)+1}-0`:`>=${r}.${i}.${l} <${r}.${Number(i)+1}.0-0`:`>=${r}.${i}.${l} <${Number(r)+1}.0.0-0`)).join(" ")}function xt(o){return o.trim().split(/\s+/).map(t=>t.replace(Z(Rt),(n,r,i,l,c)=>B(r)?"":B(i)?`>=${r}.0.0 <${Number(r)+1}.0.0-0`:B(l)?`>=${r}.${i}.0 <${r}.${Number(i)+1}.0-0`:c?`>=${r}.${i}.${l}-${c} <${r}.${Number(i)+1}.0-0`:`>=${r}.${i}.${l} <${r}.${Number(i)+1}.0-0`)).join(" ")}function Lt(o){return o.split(/\s+/).map(t=>t.trim().replace(Z(Tt),(n,r,i,l,c,a)=>{const p=B(i),h=p||B(l),v=h||B(c);return r==="="&&v&&(r=""),a="",p?r===">"||r==="<"?"<0.0.0-0":"*":r&&v?(h&&(l=0),c=0,r===">"?(r=">=",h?(i=Number(i)+1,l=0,c=0):(l=Number(l)+1,c=0)):r==="<="&&(r="<",h?i=Number(i)+1:l=Number(l)+1),r==="<"&&(a="-0"),`${r+i}.${l}.${c}${a}`):h?`>=${i}.0.0${a} <${Number(i)+1}.0.0-0`:v?`>=${i}.${l}.0${a} <${i}.${Number(l)+1}.0-0`:n})).join(" ")}function $t(o){return o.trim().replace(Z(yt),"")}function Ct(o){return o.trim().replace(Z(At),"")}function ve(o,t){return o=Number(o)||o,t=Number(t)||t,o>t?1:o===t?0:-1}function Dt(o,t){const{preRelease:n}=o,{preRelease:r}=t;if(n===void 0&&r)return 1;if(n&&r===void 0)return-1;if(n===void 0&&r===void 0)return 0;for(let i=0,l=n.length;i<=l;i++){const c=n[i],a=r[i];if(c!==a)return c===void 0&&a===void 0?0:c?a?ve(c,a):-1:1}return 0}function Se(o,t){return ve(o.major,t.major)||ve(o.minor,t.minor)||ve(o.patch,t.patch)||Dt(o,t)}function Ne(o,t){return o.version===t.version}function jt(o,t){switch(o.operator){case"":case"=":return Ne(o,t);case">":return Se(o,t)<0;case">=":return Ne(o,t)||Se(o,t)<0;case"<":return Se(o,t)>0;case"<=":return Ne(o,t)||Se(o,t)>0;case void 0:return!0;default:return!1}}function Ft(o){return st(Mt,xt,Lt,$t)(o)}function Ht(o){return st(Ot,Nt,Pt,wt)(o.trim()).split(/\s+/).join(" ")}function me(o,t){if(!o)return!1;const n=ot(o);if(!n)return!1;const[,r,,i,l,c,a]=n,p={operator:r,version:nt(i,l,c,a),major:i,minor:l,patch:c,preRelease:a?.split(".")},h=t.split("||");for(const v of h){const E=v.trim();if(!E||E==="*"||E==="x")return!0;try{const y=Ht(E);if(!y.trim())return!0;const S=y.split(" ").map(T=>Ft(T)).join(" ");if(!S.trim())return!0;const A=S.split(/\s+/).map(T=>Ct(T)).filter(Boolean);if(A.length===0)continue;let P=!0;for(const T of A){const w=ot(T);if(!w){P=!1;break}const[,F,,x,L,k,H]=w,X={operator:F,version:nt(x,L,k,H),major:x,minor:L,patch:k,preRelease:H?.split(".")};if(!jt(X,p)){P=!1;break}}if(P)return!0}catch(y){console.error(`[semver] Error processing range part "${E}":`,y);continue}}return!1}function kt(o,t,n,r){let i;"get"in o?i=o.get:"lib"in o?i=()=>Promise.resolve(o.lib):i=()=>Promise.resolve(()=>{throw new Error(`Can not get shared '${n}'!`)}
4);var l,c,a;return e._extends({deps:[],useIn:[],from:t,loading:null},o,{shareConfig:e._extends({requiredVersion:`^${o.version}`,singleton:!1,eager:!1,strictVersion:!1},o.shareConfig),get:i,loaded:o?.loaded||"lib"in o?!0:void 0,version:(l=o.version)!=null?l:"0",scope:Array.isArray(o.scope)?o.scope:[(c=o.scope)!=null?c:"default"],strategy:((a=o.strategy)!=null?a:r)||"version-first"})}function rt(o,t){const n=t.shared||{},r=t.name,i=Object.keys(n).reduce((c,a)=>{const p=ie(n[a]);return c[a]=c[a]||[],p.forEach(h=>{c[a].push(kt(h,r,a,t.shareStrategy))}),c},{}),l=e._extends({},o.shared);return Object.keys(i).forEach(c=>{l[c]?i[c].forEach(a=>{l[c].find(h=>h.version===a.version)||l[c].push(a)}):l[c]=i[c]}),{shared:l,shareInfos:i}}function pe(o,t){const n=r=>{if(!Number.isNaN(Number(r))){const l=r.split(".");let c=r;for(let a=0;a<3-l.length;a++)c+=".0";return c}return r};return!!me(n(o),`<=${n(t)}`)}const Pe=(o,t)=>{const n=t||function(r,i){return pe(r,i)};return Object.keys(o).reduce((r,i)=>!r||n(r,i)||r==="0"?i:r,0)},we=o=>!!o.loaded||typeof o.lib=="function",Ut=o=>!!o.loading;function Bt(o,t,n){const r=o[t][n],i=function(l,c){return!we(r[l])&&pe(l,c)};return Pe(o[t][n],i)}function Gt(o,t,n){const r=o[t][n],i=function(l,c){const a=p=>we(p)||Ut(p);return a(r[c])?a(r[l])?!!pe(l,c):!0:a(r[l])?!1:pe(l,c)};return Pe(o[t][n],i)}function Vt(o){return o==="loaded-first"?Gt:Bt}function _e(o,t,n,r){if(!o)return;const{shareConfig:i,scope:l=de,strategy:c}=n,a=Array.isArray(l)?l:[l];for(const p of a)if(i&&o[p]&&o[p][t]){const{requiredVersion:h}=i,E=Vt(c)(o,p,t),y=()=>{if(i.singleton){if(typeof h=="string"&&!me(E,h)){const P=`Version ${E} from ${E&&o[p][t][E].from} of shared singleton module ${t} does not satisfy the requirement of ${n.from} which needs ${h})`;i.strictVersion?g(P):b(P)}return o[p][t][E]}else{if(h===!1||h==="*"||me(E,h))return o[p][t][E];for(const[P,T]of Object.entries(o[p][t]))if(me(P,h))return T}},S={shareScopeMap:o,scope:p,pkgName:t,version:E,GlobalFederation:$.__FEDERATION__,resolver:y};return(r.emit(S)||S).resolver()}}function Me(){return $.__FEDERATION__.__SHARE__}function it(o){const{pkgName:t,extraOptions:n,shareInfos:r}=o,i=a=>{if(!a)return;const p={};a.forEach(E=>{p[E.version]=E});const v=Pe(p,function(E,y){return!we(p[E])&&pe(E,y)});return p[v]};var l;const c=(l=n?.resolver)!=null?l:i;return Object.assign({},c(r[t]),n?.customShareInfo)}function qt(){return typeof FEDERATION_BUILD_IDENTIFIER<"u"?FEDERATION_BUILD_IDENTIFIER:""}function xe(o,t){for(const n of o){const r=t.startsWith(n.name);let i=t.replace(n.name,"");if(r){if(i.startsWith("/")){const a=n.name;return i=`.${i}`,{pkgNameOrAlias:a,expose:i,remote:n}}else if(i==="")return{pkgNameOrAlias:n.name,expose:".",remote:n}}const l=n.alias&&t.startsWith(n.alias);let c=n.alias&&t.replace(n.alias,"");if(n.alias&&l){if(c&&c.startsWith("/")){const a=n.alias;return c=`.${c}`,{pkgNameOrAlias:a,expose:c,remote:n}}else if(c==="")return{pkgNameOrAlias:n.alias,expose:".",remote:n}}}}function Wt(o,t){for(const n of o)if(t===n.name||n.alias&&t===n.alias)return n}function Yt(o,t){const n=qe(),r=[t.hooks,t.remoteHandler.hooks,t.sharedHandler.hooks,t.snapshotHandler.hooks,t.loaderHook,t.bridgeHook];return n.length>0&&n.forEach(i=>{o?.find(l=>
4l.name!==i.name)&&o.push(i)}),o&&o.length>0&&o.forEach(i=>{r.forEach(l=>{l.applyPlugin(i,t)})}),o}const _t=".then(callbacks[0]).catch(callbacks[1])";async function Kt({entry:o,remoteEntryExports:t}){return new Promise((n,r)=>{try{t?n(t):typeof FEDERATION_ALLOW_NEW_FUNCTION<"u"?new Function("callbacks",`import("${o}")${_t}`)([n,r]):import(o).then(n).catch(r)}catch(i){r(i)}})}async function Xt({entry:o,remoteEntryExports:t}){return new Promise((n,r)=>{try{t?n(t):typeof __system_context__>"u"?System.import(o).then(n).catch(r):new Function("callbacks",`System.import("${o}")${_t}`)([n,r])}catch(i){r(i)}})}function at(o,t,n){const{remoteEntryKey:r,entryExports:i}=Ee(o,t);return m(i,_.getShortErrorMsg(_.RUNTIME_001,_.runtimeDescMap,{remoteName:o,remoteEntryUrl:n,remoteEntryKey:r})),i}async function zt({name:o,globalName:t,entry:n,loaderHook:r,getEntryUrl:i}){const{entryExports:l}=Ee(o,t);if(l)return l;const c=i?i(n):n;return s.loadScript(c,{attrs:{},createScriptHook:(a,p)=>{const h=r.lifecycle.createScript.emit({url:a,attrs:p});if(h&&(h instanceof HTMLScriptElement||"script"in h||"timeout"in h))return h}}).then(()=>at(o,t,n)).catch(a=>{throw m(void 0,_.getShortErrorMsg(_.RUNTIME_008,_.runtimeDescMap,{remoteName:o,resourceUrl:n})),a})}async function Jt({remoteInfo:o,remoteEntryExports:t,loaderHook:n,getEntryUrl:r}){const{entry:i,entryGlobalName:l,name:c,type:a}=o;switch(a){case"esm":case"module":return Kt({entry:i,remoteEntryExports:t});case"system":return Xt({entry:i,remoteEntryExports:t});default:return zt({entry:i,globalName:l,name:c,loaderHook:n,getEntryUrl:r})}}async function Zt({remoteInfo:o,loaderHook:t}){const{entry:n,entryGlobalName:r,name:i,type:l}=o,{entryExports:c}=Ee(i,r);return c||s.loadScriptNode(n,{attrs:{name:i,globalName:r,type:l},loaderHook:{createScriptHook:(a,p={})=>{const h=t.lifecycle.createScript.emit({url:a,attrs:p});if(h&&"url"in h)return h}}}).then(()=>at(i,r,n)).catch(a=>{throw a})}function Le(o){const{entry:t,name:n}=o;return s.composeKeyWithSeparator(n,t)}async function ge(o){const{origin:t,remoteEntryExports:n,remoteInfo:r,getEntryUrl:i}=o,l=Le(r);if(n)return n;if(!oe[l]){const c=t.remoteHandler.hooks.lifecycle.loadEntry,a=t.loaderHook;oe[l]=c.emit({loaderHook:a,remoteInfo:r,remoteEntryExports:n}).then(p=>p||((typeof ENV_TARGET<"u"?ENV_TARGET==="web":s.isBrowserEnv())?Jt({remoteInfo:r,remoteEntryExports:n,loaderHook:a,getEntryUrl:i}):Zt({remoteInfo:r,loaderHook:a})))}return oe[l]}function fe(o){return e._extends({},o,{entry:"entry"in o?o.entry:"",type:o.type||Ke,entryGlobalName:o.entryGlobalName||o.name,shareScope:o.shareScope||de})}function lt(o){return e._extends({resourceCategory:"sync",share:!0,depsRemote:!0,prefetchInterface:!1},o)}function Qt(o,t){return t.map(n=>{const r=Wt(o,n.nameOrAlias);return m(r,`Unable to preload ${n.nameOrAlias} as it is not included in ${!r&&s.safeToString({remoteInfo:r,remotes:o})}`),{remote:r,preloadConfig:lt(n)}})}function es(o){return o?o.map(t=>t==="."?t:t.startsWith("./")?t.replace("./",""):t):[]}function $e(o,t,n,r=!0){const{cssAssets:i,jsAssetsWithoutEntry:l,entryAssets:c}=n;if(t.options.inBrowser){if(c.forEach(a=>{const{moduleInfo:p}=a,h=t.moduleCache.get(o.name);ge(h?{origin:t,remoteInfo:p,remoteEntryExports:h.remoteEntryExports}:{origin:t,remoteInfo:p,remoteEntryExports:void 0})}),r){const a={rel:"preload",as:"style"};i.forEach(p=>{const{link:h,needAttach:v}=s.createLink({url:p,cb:()=>{},attrs:a,createLinkHook:(E,y)=>{const S=t.loaderHook.lifecycle.createLink.emit({url:E,attrs:y});if(S instanceof HTMLLinkElement)return S}});v&&document.head.appendChild(h)})}else{const a={rel:"stylesheet",type:"text/css"};i.forEach(p=>{const{link:h,needAttach:v}=s.createLink({url:p,cb:()=>{},attrs:a,createLinkHook:(E,y)=>{const S=t.loaderHook.lifecycle.createLink.emit({url:E,attrs:y});if(S instanceof HTMLLinkElement)return S},needDeleteLink:!1});v&&document.head.appendChild(h)})}if(r){const a={rel:"preload",as:"script"};l.forEach(p=>{const{link:h,needAttach:v}=s.createLink({url:p,cb:()=>{},attrs:a,createLinkHook:(E,y)=>{const S=t.loaderHook.lifecycle.createLink.emit({url:E,attrs:y});
4if(S instanceof HTMLLinkElement)return S}});v&&document.head.appendChild(h)})}else{const a={fetchpriority:"high",type:o?.type==="module"?"module":"text/javascript"};l.forEach(p=>{const{script:h,needAttach:v}=s.createScript({url:p,cb:()=>{},attrs:a,createScriptHook:(E,y)=>{const S=t.loaderHook.lifecycle.createScript.emit({url:E,attrs:y});if(S instanceof HTMLScriptElement)return S},needDeleteScript:!0});v&&document.head.appendChild(h)})}}}var ts={global:{Global:$,nativeGlobal:O,resetFederationGlobalInfo:He,setGlobalFederationInstance:ke,getGlobalFederationConstructor:Ue,setGlobalFederationConstructor:Be,getInfoWithoutType:ne,getGlobalSnapshot:be,getTargetSnapshotInfoByModuleInfo:Ge,getGlobalSnapshotInfoByModuleInfo:ce,setGlobalSnapshotInfoByModuleInfo:Re,addGlobalSnapshot:Te,getRemoteEntryExports:Ee,registerGlobalPlugins:Ve,getGlobalHostPlugins:qe,getPreloaded:We,setPreloaded:Ye},share:{getRegisteredShare:_e,getGlobalShareScope:Me},utils:{matchRemoteWithNameAndExpose:xe,preloadAssets:$e,getRemoteInfo:fe}};let Ce=class{async getEntry(){if(this.remoteEntryExports)return this.remoteEntryExports;let t;try{t=await ge({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports})}catch(n){const r=Le(this.remoteInfo);n instanceof Error&&n.message.includes(_.RUNTIME_008)&&(t=await this.host.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:ge,origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports,globalLoading:oe,uniqueKey:r}))}return m(t,`remoteEntryExports is undefined 
5 ${s.safeToString(this.remoteInfo)}`),this.remoteEntryExports=t,this.remoteEntryExports}async get(t,n,r,i){const{loadFactory:l=!0}=r||{loadFactory:!0},c=await this.getEntry();if(!this.inited){const E=this.host.shareScopeMap,y=Array.isArray(this.remoteInfo.shareScope)?this.remoteInfo.shareScope:[this.remoteInfo.shareScope];y.length||y.push("default"),y.forEach(w=>{E[w]||(E[w]={})});const S=E[y[0]],A=[],P={version:this.remoteInfo.version||"",shareScopeKeys:Array.isArray(this.remoteInfo.shareScope)?y:this.remoteInfo.shareScope||"default"};Object.defineProperty(P,"shareScopeMap",{value:E,enumerable:!1});const T=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:S,remoteEntryInitOptions:P,initScope:A,remoteInfo:this.remoteInfo,origin:this.host});typeof c?.init>"u"&&g(_.getShortErrorMsg(_.RUNTIME_002,_.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName})),await c.init(T.shareScope,T.initScope,T.remoteEntryInitOptions),await this.host.hooks.lifecycle.initContainer.emit(e._extends({},T,{id:t,remoteSnapshot:i,remoteEntryExports:c}))}this.lib=c,this.inited=!0;let a;a=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:c,expose:n,moduleInfo:this.remoteInfo}),a||(a=await c.get(n)),m(a,`${I(this.remoteInfo)} remote don't export ${n}.`);const p=V(this.remoteInfo.name,n),h=this.wraperFactory(a,p);return l?await h():h}wraperFactory(t,n){function r(i,l){i&&typeof i=="object"&&Object.isExtensible(i)&&!Object.getOwnPropertyDescriptor(i,Symbol.for("mf_module_id"))&&Object.defineProperty(i,Symbol.for("mf_module_id"),{value:l,enumerable:!1})}return t instanceof Promise?async()=>{const i=await t();return r(i,n),i}:()=>{const i=t();return r(i,n),i}}constructor({remoteInfo:t,host:n}){this.inited=!1,this.lib=void 0,this.remoteInfo=t,this.host=n}};class q{on(t){typeof t=="function"&&this.listeners.add(t)}once(t){const n=this;this.on(function r(...i){return n.remove(r),t.apply(null,i)})}emit(...t){let n;return this.listeners.size>0&&this.listeners.forEach(r=>{n=r(...t)}),n}remove(t){this.listeners.delete(t)}removeAll(){this.listeners.clear()}constructor(t){this.type="",this.listeners=new Set,t&&(this.type=t)}}class K extends q{emit(...t){let n;const r=Array.from(this.listeners);if(r.length>0){let i=0;const l=c=>c===!1?!1:i<r.length?Promise.resolve(r[i++].apply(null,t)).then(l):c;n=l()}return Promise.resolve(n)}}function ct(o,t){if(!Y(t))return!1;if(o!==t){for(const n in o)if(!(n in t))return!1}return!0}
5class he extends q{emit(t){Y(t)||g(`The data for the "${this.type}" hook should be an object.`);for(const n of this.listeners)try{const r=n(t);if(ct(t,r))t=r;else{this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}}catch(r){b(r),this.onerror(r)}return t}constructor(t){super(),this.onerror=g,this.type=t}}class re extends q{emit(t){Y(t)||g(`The response data for the "${this.type}" hook must be an object.`);const n=Array.from(this.listeners);if(n.length>0){let r=0;const i=c=>(b(c),this.onerror(c),t),l=c=>{if(ct(t,c)){if(t=c,r<n.length)try{return Promise.resolve(n[r++](t)).then(l,i)}catch(a){return i(a)}}else this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`);return t};return Promise.resolve(l(t))}return Promise.resolve(t)}constructor(t){super(),this.onerror=g,this.type=t}}class le{applyPlugin(t,n){m(j(t),"Plugin configuration is invalid.");const r=t.name;m(r,"A name must be provided by the plugin."),this.registerPlugins[r]||(this.registerPlugins[r]=t,t.apply==null||t.apply.call(t,n),Object.keys(this.lifecycle).forEach(i=>{const l=t[i];l&&this.lifecycle[i].on(l)}))}removePlugin(t){m(t,"A name is required.");const n=this.registerPlugins[t];m(n,`The plugin "${t}" is not registered.`),Object.keys(n).forEach(r=>{r!=="name"&&this.lifecycle[r].remove(n[r])})}constructor(t){this.registerPlugins={},this.lifecycle=t,this.lifecycleKeys=Object.keys(t)}}function dt(o,t){const n=te(t);n.url||g(`The attribute remoteEntry of ${o.name} must not be undefined.`);let r=s.getResourceUrl(t,n.url);!s.isBrowserEnv()&&!r.startsWith("http")&&(r=`https:${r}`),o.type=n.type,o.entryGlobalName=n.globalName,o.entry=r,o.version=t.version,o.buildVersion=t.buildVersion}function ss(){return{name:"snapshot-plugin",async afterResolve(o){const{remote:t,pkgNameOrAlias:n,expose:r,origin:i,remoteInfo:l,id:c}=o;if(!C(t)||!U(t)){const{remoteSnapshot:a,globalSnapshot:p}=await i.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:c});dt(l,a);const h={remote:t,preloadConfig:{nameOrAlias:n,exposes:[r],resourceCategory:"sync",share:!1,depsRemote:!1}},v=await i.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:i,preloadOptions:h,remoteInfo:l,remote:t,remoteSnapshot:a,globalSnapshot:p});return v&&$e(l,i,v,!1),e._extends({},o,{remoteSnapshot:a})}return o}}}function os(o){const t=o.split(":");return t.length===1?{name:t[0],version:void 0}:t.length===2?{name:t[0],version:t[1]}:{name:t[1],version:t[2]}}function ut(o,t,n,r,i={},l){const c=I(t),{value:a}=ne(o,c),p=l||a;if(p&&!s.isManifestProvider(p)&&(n(p,t,r),p.remotesInfo)){const h=Object.keys(p.remotesInfo);for(const v of h){if(i[v])continue;i[v]=!0;const E=os(v),y=p.remotesInfo[v];ut(o,{name:E.name,version:y.matchedVersion},n,!1,i,void 0)}}}const De=(o,t)=>document.querySelector(`${o}[${o==="link"?"href":"src"}="${t}"]`);function ns(o,t,n,r,i){const l=[],c=[],a=[],p=new Set,h=new Set,{options:v}=o,{preloadConfig:E}=t,{depsRemote:y}=E;if(ut(r,n,(T,w,F)=>{let x;if(F)x=E;else if(Array.isArray(y)){const z=y.find(W=>W.nameOrAlias===w.name||W.nameOrAlias===w.alias);if(!z)return;x=lt(z)}else if(y===!0)x=E;else return;const L=s.getResourceUrl(T,te(T).url);L&&a.push({name:w.name,moduleInfo:{name:w.name,entry:L,type:"remoteEntryType"in T?T.remoteEntryType:"global",entryGlobalName:"globalName"in T?T.globalName:w.name,shareScope:"",version:"version"in T?T.version:void 0},url:L});let k="modules"in T?T.modules:[];const H=es(x.exposes);if(H.length&&"modules"in T){var X;k=T==null||(X=T.modules)==null?void 0:X.reduce((z,W)=>(H?.indexOf(W.moduleName)!==-1&&z.push(W),z),[])}function G(z){const W=z.map(Q=>s.getResourceUrl(T,Q));return x.filter?W.filter(x.filter):W}if(k){const z=k.length;for(let W=0;W<z;W++){const Q=k[W],je=`${w.name}/${Q.moduleName}`;o.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:Q.moduleName==="."?w.name:je,name:w.name,remoteSnapshot:T,preloadConfig:x,remote:w,origin:o}),!We(je)&&(x.resourceCategory==="all"?(l.push(...G(Q.assets.css.async)),l.push(...G(Q.assets.css.sync)),c.push(...G(Q.assets.js.async)),c.push(...G(Q.assets.js.sync))):(x.resourceCategory="sync")&&(l.push(...G(Q.assets.css.sync)),c.push(...G(Q.assets.js.sync))),Ye(je))}}},!0,{},i),i.shared&&i.shared.length>0){const T=(w,F)=>
5{const x=_e(o.shareScopeMap,F.sharedName,w,o.sharedHandler.hooks.lifecycle.resolveShare);x&&typeof x.lib=="function"&&(F.assets.js.sync.forEach(L=>{p.add(L)}),F.assets.css.sync.forEach(L=>{h.add(L)}))};i.shared.forEach(w=>{var F;const x=(F=v.shared)==null?void 0:F[w.sharedName];if(!x)return;const L=w.version?x.find(H=>H.version===w.version):x;if(!L)return;ie(L).forEach(H=>{T(H,w)})})}const A=c.filter(T=>!p.has(T)&&!De("script",T));return{cssAssets:l.filter(T=>!h.has(T)&&!De("link",T)),jsAssetsWithoutEntry:A,entryAssets:a.filter(T=>!De("script",T.url))}}const rs=function(){return{name:"generate-preload-assets-plugin",async generatePreloadAssets(o){const{origin:t,preloadOptions:n,remoteInfo:r,remote:i,globalSnapshot:l,remoteSnapshot:c}=o;return s.isBrowserEnv()?C(i)&&U(i)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:i.name,url:i.entry,moduleInfo:{name:r.name,entry:i.entry,type:r.type||"global",entryGlobalName:"",shareScope:""}}]}:(dt(r,c),ns(t,n,r,l,c)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}}}};function mt(o,t){const n=ce({name:t.name,version:t.options.version}),r=n&&"remotesInfo"in n&&n.remotesInfo&&ne(n.remotesInfo,o.name).value;return r&&r.matchedVersion?{hostGlobalSnapshot:n,globalSnapshot:be(),remoteSnapshot:ce({name:o.name,version:r.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:be(),remoteSnapshot:ce({name:o.name,version:"version"in o?o.version:void 0})}}class is{async loadRemoteSnapshotInfo({moduleInfo:t,id:n,expose:r}){const{options:i}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:i,moduleInfo:t});let l=ce({name:this.HostInstance.options.name,version:this.HostInstance.options.version});l||(l={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},Te({[this.HostInstance.options.name]:l})),l&&"remotesInfo"in l&&!ne(l.remotesInfo,t.name).value&&("version"in t||"entry"in t)&&(l.remotesInfo=e._extends({},l?.remotesInfo,{[t.name]:{matchedVersion:"version"in t?t.version:t.entry}}));const{hostGlobalSnapshot:c,remoteSnapshot:a,globalSnapshot:p}=this.getGlobalRemoteInfo(t),{remoteSnapshot:h,globalSnapshot:v}=await this.hooks.lifecycle.loadSnapshot.emit({options:i,moduleInfo:t,hostGlobalSnapshot:c,remoteSnapshot:a,globalSnapshot:p});let E,y;if(h)if(s.isManifestProvider(h)){const S=s.isBrowserEnv()?h.remoteEntry:h.ssrRemoteEntry||h.remoteEntry||"",A=await this.getManifestJson(S,t,{}),P=Re(e._extends({},t,{entry:S}),A);E=A,y=P}else{const{remoteSnapshot:S}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,remoteSnapshot:h,from:"global"});E=S,y=v}else if(C(t)){const S=await this.getManifestJson(t.entry,t,{}),A=Re(t,S),{remoteSnapshot:P}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,remoteSnapshot:S,from:"global"});E=P,y=A}else g(_.getShortErrorMsg(_.RUNTIME_007,_.runtimeDescMap,{hostName:t.name,hostVersion:t.version,globalSnapshot:JSON.stringify(v)}));
5return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:n,host:this.HostInstance,options:i,moduleInfo:t,remoteSnapshot:E}),{remoteSnapshot:E,globalSnapshot:y}}getGlobalRemoteInfo(t){return mt(t,this.HostInstance)}async getManifestJson(t,n,r){const i=async()=>{let c=this.manifestCache.get(t);if(c)return c;try{let a=await this.loaderHook.lifecycle.fetch.emit(t,{});(!a||!(a instanceof Response))&&(a=await fetch(t,{})),c=await a.json()}catch(a){c=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:t,error:a,from:"runtime",lifecycle:"afterResolve",origin:this.HostInstance}),c||(delete this.manifestLoading[t],g(_.getShortErrorMsg(_.RUNTIME_003,_.runtimeDescMap,{manifestUrl:t,moduleName:n.name,hostName:this.HostInstance.options.name},`${a}`)))}return m(c.metaData&&c.exposes&&c.shared,`${t} is not a federation manifest`),this.manifestCache.set(t,c),c},l=async()=>{const c=await i(),a=s.generateSnapshotFromManifest(c,{version:t}),{remoteSnapshot:p}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:n,manifestJson:c,remoteSnapshot:a,manifestUrl:t,from:"manifest"});return p};return this.manifestLoading[t]||(this.manifestLoading[t]=l().then(c=>c)),this.manifestLoading[t]}constructor(t){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new le({beforeLoadRemoteSnapshot:new K("beforeLoadRemoteSnapshot"),loadSnapshot:new re("loadGlobalSnapshot"),loadRemoteSnapshot:new re("loadRemoteSnapshot"),afterLoadSnapsh
5ot:new re("afterLoadSnapshot")}),this.manifestLoading=$.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=t,this.loaderHook=t.loaderHook}}class _s{registerShared(t,n){const{shareInfos:r,shared:i}=rt(t,n);return Object.keys(r).forEach(c=>{r[c].forEach(p=>{!_e(this.shareScopeMap,c,p,this.hooks.lifecycle.resolveShare)&&p&&p.lib&&this.setShared({pkgName:c,lib:p.lib,get:p.get,loaded:!0,shared:p,from:n.name})})}),{shareInfos:r,shared:i}}async loadShare(t,n){const{host:r}=this,i=it({pkgName:t,extraOptions:n,shareInfos:r.options.shared});i?.scope&&await Promise.all(i.scope.map(async h=>{await Promise.all(this.initializeSharing(h,{strategy:i.strategy}))}));const l=await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:t,shareInfo:i,shared:r.options.shared,origin:r}),{shareInfo:c}=l;m(c,`Cannot find ${t} Share in the ${r.options.name}. Please ensure that the ${t} Share parameters have been injected`);const a=_e(this.shareScopeMap,t,c,this.hooks.lifecycle.resolveShare),p=h=>{h.useIn||(h.useIn=[]),R(h.useIn,r.options.name)};if(a&&a.lib)return p(a),a.lib;if(a&&a.loading&&!a.loaded){const h=await a.loading;return a.loaded=!0,a.lib||(a.lib=h),p(a),h}else if(a){const v=(async()=>{const E=await a.get();return p(a),a.loaded=!0,a.lib=E,E})();return this.setShared({pkgName:t,loaded:!1,shared:a,from:r.options.name,lib:null,loading:v}),v}else{if(n?.customShareInfo)return!1;const v=(async()=>{const E=await c.get();c.lib=E,c.loaded=!0,p(c);const y=_e(this.shareScopeMap,t,c,this.hooks.lifecycle.resolveShare);return y&&(y.lib=E,y.loaded=!0,y.from=c.from),E})();return this.setShared({pkgName:t,loaded:!1,shared:c,from:r.options.name,lib:null,loading:v}),v}}initializeSharing(t=de,n){const{host:r}=this,i=n?.from,l=n?.strategy;let c=n?.initScope;const a=[];if(i!=="build"){const{initTokens:A}=this;c||(c=[]);let P=A[t];if(P||(P=A[t]={from:this.host.name}),c.indexOf(P)>=0)return a;c.push(P)}const p=this.shareScopeMap,h=r.options.name;p[t]||(p[t]={});const v=p[t],E=(A,P)=>{var T;const{version:w,eager:F}=P;v[A]=v[A]||{};const x=v[A],L=x[w],k=!!(L&&(L.eager||(T=L.shareConfig)!=null&&T.eager));(!L||L.strategy!=="loaded-first"&&!L.loaded&&(!F!=!k?F:h>L.from))&&(x[w]=P)},y=A=>A&&A.init&&A.init(p[t],c),S=async A=>{const{module:P}=await r.remoteHandler.getRemoteModuleAndOptions({id:A});if(P.getEntry){let T;try{T=await P.getEntry()}catch(w){T=await r.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:A,error:w,from:"runtime",lifecycle:"beforeLoadShare",origin:r})}P.inited||(await y(T),P.inited=!0)}};return Object.keys(r.options.shared).forEach(A=>{r.options.shared[A].forEach(T=>{T.scope.includes(t)&&E(A,T)})}),(r.options.shareStrategy==="version-first"||l==="version-first")&&r.options.remotes.forEach(A=>{A.shareScope===t&&a.push(S(A.name))}),a}loadShareSync(t,n){const{host:r}=this,i=it({pkgName:t,extraOptions:n,shareInfos:r.options.shared});i?.scope&&i.scope.forEach(a=>{this.initializeSharing(a,{strategy:i.strategy})});const l=_e(this.shareScopeMap,t,i,this.hooks.lifecycle.resolveShare),c=a=>{a.useIn||(a.useIn=[]),R(a.useIn,r.options.name)};if(l){if(typeof l.lib=="function")return c(l),l.loaded||(l.loaded=!0,l.from===r.options.name&&(i.loaded=!0)),l.lib;if(typeof l.get=="function"){const a=l.get();if(!(a instanceof Promise))return c(l),this.setShared({pkgName:t,loaded:!0,from:r.options.name,lib:a,shared:l}),a}}if(i.lib)return i.loaded||(i.loaded=!0),i.lib;if(i.get){const a=i.get();if(a instanceof Promise){const p=n?.from==="build"?_.RUNTIME_005:_.RUNTIME_006;throw new Error(_.getShortErrorMsg(p,_.runtimeDescMap,{hostName:r.options.name,sharedPkgName:t}))}return i.lib=a,this.setShared({pkgName:t,loaded:!0,from:r.options.name,lib:i.lib,shared:i}),i.lib}throw new Error(_.getShortErrorMsg(_.RUNTIME_006,_.runtimeDescMap,{hostName:r.options.name,sharedPkgName:t}))}initShareScopeMap(t,n,r={}){const{host:i}=this;this.shareScopeMap[t]=n,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:n,options:i.options,origin:i,scopeName:t,hostShareScopeMap:r.hostShareScopeMap})}setShared({pkgName:t,shared:n,from:r,lib:i,loading:l,loaded:c,get:a}){const{version:p,scope:h="default"}
5=n,v=e._object_without_properties_loose(n,["version","scope"]);(Array.isArray(h)?h:[h]).forEach(y=>{if(this.shareScopeMap[y]||(this.shareScopeMap[y]={}),this.shareScopeMap[y][t]||(this.shareScopeMap[y][t]={}),!this.shareScopeMap[y][t][p]){this.shareScopeMap[y][t][p]=e._extends({version:p,scope:["default"]},v,{lib:i,loaded:c,loading:l}),a&&(this.shareScopeMap[y][t][p].get=a);return}const S=this.shareScopeMap[y][t][p];l&&!S.loading&&(S.loading=l),c&&!S.loaded&&(S.loaded=c),r&&S.from!==r&&(S.from=r)})}_setGlobalShareScopeMap(t){const n=Me(),r=t.id||t.name;r&&!n[r]&&(n[r]=this.shareScopeMap)}constructor(t){this.hooks=new le({afterResolve:new re("afterResolve"),beforeLoadShare:new re("beforeLoadShare"),loadShare:new K,resolveShare:new he("resolveShare"),initContainerShareScopeMap:new he("initContainerShareScopeMap")}),this.host=t,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(t.options)}}class as{formatAndRegisterRemote(t,n){return(n.remotes||[]).reduce((i,l)=>(this.registerRemote(l,i,{force:!1}),i),t.remotes)}setIdToRemoteMap(t,n){const{remote:r,expose:i}=n,{name:l,alias:c}=r;if(this.idToRemoteMap[t]={name:r.name,expose:i},c&&t.startsWith(l)){const a=t.replace(l,c);this.idToRemoteMap[a]={name:r.name,expose:i};return}if(c&&t.startsWith(c)){const a=t.replace(c,l);this.idToRemoteMap[a]={name:r.name,expose:i}}}async loadRemote(t,n){const{host:r}=this;try{const{loadFactory:i=!0}=n||{loadFactory:!0},{module:l,moduleOptions:c,remoteMatchInfo:a}=await this.getRemoteModuleAndOptions({id:t}),{pkgNameOrAlias:p,remote:h,expose:v,id:E,remoteSnapshot:y}=a,S=await l.get(E,v,n,y),A=await this.hooks.lifecycle.onLoad.emit({id:E,pkgNameOrAlias:p,expose:v,exposeModule:i?S:void 0,exposeModuleFactory:i?void 0:S,remote:h,options:c,moduleInstance:l,origin:r});return this.setIdToRemoteMap(t,a),typeof A=="function"?A:S}catch(i){const{from:l="runtime"}=n||{from:"runtime"},c=await this.hooks.lifecycle.errorLoadRemote.emit({id:t,error:i,from:l,lifecycle:"onLoad",origin:r});if(!c)throw i;return c}}async preloadRemote(t){const{host:n}=this;await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:t,options:n.options,origin:n});
5const r=Qt(n.options.remotes,t);await Promise.all(r.map(async i=>{const{remote:l}=i,c=fe(l),{globalSnapshot:a,remoteSnapshot:p}=await n.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:l}),h=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:n,preloadOptions:i,remote:l,remoteInfo:c,globalSnapshot:a,remoteSnapshot:p});h&&$e(c,n,h)}))}registerRemotes(t,n){const{host:r}=this;t.forEach(i=>{this.registerRemote(i,r.options.remotes,{force:n?.force})})}async getRemoteModuleAndOptions(t){const{host:n}=this,{id:r}=t;let i;try{i=await this.hooks.lifecycle.beforeRequest.emit({id:r,options:n.options,origin:n})}catch(A){if(i=await this.hooks.lifecycle.errorLoadRemote.emit({id:r,options:n.options,origin:n,from:"runtime",error:A,lifecycle:"beforeRequest"}),!i)throw A}const{id:l}=i,c=xe(n.options.remotes,l);m(c,_.getShortErrorMsg(_.RUNTIME_004,_.runtimeDescMap,{hostName:n.options.name,requestId:l}));const{remote:a}=c,p=fe(a),h=await n.sharedHandler.hooks.lifecycle.afterResolve.emit(e._extends({id:l},c,{options:n.options,origin:n,remoteInfo:p})),{remote:v,expose:E}=h;m(v&&E,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${l}.`);let y=n.moduleCache.get(v.name);const S={host:n,remoteInfo:p};return y||(y=new Ce(S),n.moduleCache.set(v.name,y)),{module:y,moduleOptions:S,remoteMatchInfo:h}}registerRemote(t,n,r){const{host:i}=this,l=()=>{if(t.alias){const a=n.find(p=>{var h;return t.alias&&(p.name.startsWith(t.alias)||((h=p.alias)==null?void 0:h.startsWith(t.alias)))});m(!a,`The alias ${t.alias} of remote ${t.name} is not allowed to be the prefix of ${a&&a.name} name or alias`)}"entry"in t&&s.isBrowserEnv()&&!t.entry.startsWith("http")&&(t.entry=new URL(t.entry,window.location.origin).href),t.shareScope||(t.shareScope=de),t.type||(t.type=Ke)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:t,origin:i});const c=n.find(a=>a.name===t.name);if(!c)l(),n.push(t),this.hooks.lifecycle.registerRemote.emit({remote:t,origin:i});else{const a=[`The remote "${t.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];r?.force&&(this.removeRemote(c),l(),n.push(t),this.hooks.lifecycle.registerRemote.emit({remote:t,origin:i}),s.warn(a.join(" ")))}}removeRemote(t){try{const{host:r}=this,{name:i}=t,l=r.options.remotes.findIndex(a=>a.name===i);l!==-1&&r.options.remotes.splice(l,1);const c=r.moduleCache.get(t.name);if(c){const a=c.remoteInfo,p=a.entryGlobalName;if(N[p]){var n;(n=Object.getOwnPropertyDescriptor(N,p))!=null&&n.configurable?delete N[p]:N[p]=void 0}const h=Le(c.remoteInfo);oe[h]&&delete oe[h],r.snapshotHandler.manifestCache.delete(a.entry);let v=a.buildVersion?s.composeKeyWithSeparator(a.name,a.buildVersion):a.name;const E=N.__FEDERATION__.__INSTANCES__.findIndex(S=>a.buildVersion?S.options.id===v:S.name===v);if(E!==-1){const S=N.__FEDERATION__.__INSTANCES__[E];v=S.options.id||v;const A=Me();let P=!0;const T=[];Object.keys(A).forEach(w=>{const F=A[w];F&&Object.keys(F).forEach(x=>{const L=F[x];L&&Object.keys(L).forEach(k=>{const H=L[k];H&&Object.keys(H).forEach(X=>{const G=H[X];G&&typeof G=="object"&&G.from===a.name&&(G.loaded||G.loading?(G.useIn=G.useIn.filter(z=>z!==a.name),G.useIn.length?P=!1:T.push([w,x,k,X])):T.push([w,x,k,X]))})})})}),P&&(S.shareScopeMap={},delete A[v]),T.forEach(([w,F,x,L])=>{var k,H,X;(X=A[w])==null||(H=X[F])==null||(k=H[x])==null||delete k[L]}),N.__FEDERATION__.__INSTANCES__.splice(E,1)}const{hostGlobalSnapshot:y}=mt(t,r);if(y){const S=y&&"remotesInfo"in y&&y.remotesInfo&&ne(y.remotesInfo,t.name).key;S&&(delete y.remotesInfo[S],$.__FEDERATION__.__MANIFEST_LOADING__[S]&&delete $.__FEDERATION__.__MANIFEST_LOADING__[S])}r.moduleCache.delete(t.name)}}catch(r){d.log("removeRemote fail: ",r)}}constructor(t){this.hooks=new le({beforeRegisterRemote:new he("beforeRegisterRemote"),registerRemote:new he("registerRemote"),beforeRequest:new re("beforeRequest"),onLoad:new K("onLoad"),handlePreloadModule:new q("handlePreloadModule"),errorLoadRemote:new K("errorLoadRemote"),beforePreloadRemote:new K("beforePreloadRemote"),generatePreloadAssets:new K("generatePreloadAssets"),afterPreloadRemote:new K,loadEntry:new K}),this.host=t,this.idToRemoteMap={}}}const ls=typeof FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN=="boolean"?!FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN:!0;class cs{initOptions(t){this.registerPlugins(t.plugins);const n=this.formatOptions(this.options,t);return this.options=n,n}
5async loadShare(t,n){return this.sharedHandler.loadShare(t,n)}loadShareSync(t,n){return this.sharedHandler.loadShareSync(t,n)}initializeSharing(t=de,n){return this.sharedHandler.initializeSharing(t,n)}initRawContainer(t,n,r){const i=fe({name:t,entry:n}),l=new Ce({host:this,remoteInfo:i});return l.remoteEntryExports=r,this.moduleCache.set(t,l),l}async loadRemote(t,n){return this.remoteHandler.loadRemote(t,n)}async preloadRemote(t){return this.remoteHandler.preloadRemote(t)}initShareScopeMap(t,n,r={}){this.sharedHandler.initShareScopeMap(t,n,r)}formatOptions(t,n){const{shared:r}=rt(t,n),{userOptions:i,options:l}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:n,options:t,shareInfo:r}),c=this.remoteHandler.formatAndRegisterRemote(l,i),{shared:a}=this.sharedHandler.registerShared(l,i),p=[...l.plugins];i.plugins&&i.plugins.forEach(v=>{p.includes(v)||p.push(v)});const h=e._extends({},t,n,{plugins:p,remotes:c,shared:a});return this.hooks.lifecycle.init.emit({origin:this,options:h}),h}registerPlugins(t){const n=Yt(t,this);this.options.plugins=this.options.plugins.reduce((r,i)=>(i&&r&&!r.find(l=>
5l.name===i.name)&&r.push(i),r),n||[])}registerRemotes(t,n){return this.remoteHandler.registerRemotes(t,n)}registerShared(t){this.sharedHandler.registerShared(this.options,e._extends({},this.options,{shared:t}))}constructor(t){this.hooks=new le({beforeInit:new he("beforeInit"),init:new q,beforeInitContainer:new re("beforeInitContainer"),initContainer:new re("initContainer")}),this.version="0.19.1",this.moduleCache=new Map,this.loaderHook=new le({getModuleInfo:new q,createScript:new q,createLink:new q,fetch:new K,loadEntryError:new K,getModuleFactory:new K}),this.bridgeHook=new le({beforeBridgeRender:new q,afterBridgeRender:new q,beforeBridgeDestroy:new q,afterBridgeDestroy:new q});const n=ls?[ss(),rs()]:[],r={id:qt(),name:t.name,plugins:n,remotes:[],shared:{},inBrowser:s.isBrowserEnv()};this.name=t.name,this.options=r,this.snapshotHandler=new is(this),this.sharedHandler=new _s(this),this.remoteHandler=new as(this),this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins([...r.plugins,...t.plugins||[]]),this.options=this.formatOptions(r,t)}}var ds=Object.freeze({__proto__:null});return index_cjs$2.loadScript=s.loadScript,index_cjs$2.loadScriptNode=s.loadScriptNode,index_cjs$2.CurrentGlobal=N,index_cjs$2.Global=$,index_cjs$2.Module=Ce,index_cjs$2.ModuleFederation=cs,index_cjs$2.addGlobalSnapshot=Te,index_cjs$2.assert=m,index_cjs$2.getGlobalFederationConstructor=Ue,index_cjs$2.getGlobalSnapshot=be,index_cjs$2.getInfoWithoutType=ne,index_cjs$2.getRegisteredShare=_e,index_cjs$2.getRemoteEntry=ge,index_cjs$2.getRemoteInfo=fe,index_cjs$2.helpers=ts,index_cjs$2.isStaticResourcesEqual=ee,index_cjs$2.matchRemoteWithNameAndExpose=xe,index_cjs$2.registerGlobalPlugins=Ve,index_cjs$2.resetFederationGlobalInfo=He,index_cjs$2.safeWrapper=J,index_cjs$2.satisfy=me,index_cjs$2.setGlobalFederationConstructor=Be,index_cjs$2.setGlobalFederationInstance=ke,index_cjs$2.types=ds,index_cjs$2}var utils_cjs={},hasRequiredUtils_cjs;function requireUtils_cjs(){if(hasRequiredUtils_cjs)return utils_cjs;hasRequiredUtils_cjs=1;var e=requireIndex_cjs$1();function s(){return typeof FEDERATION_BUILD_IDENTIFIER<"u"?FEDERATION_BUILD_IDENTIFIER:""}function _(u,d){const m=s();return e.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(g=>!!(m&&g.options.id===m||g.options.name===u&&!g.options.version&&!d||g.options.name===u&&d&&g.options.version===d))}return utils_cjs.getGlobalFederationInstance=_,utils_cjs}var hasRequiredIndex_cjs;function requireIndex_cjs(){if(hasRequiredIndex_cjs)return index_cjs$3;hasRequiredIndex_cjs=1;var e=requireIndex_cjs$1(),s=requireIndex_cjs$2(),_=requireUtils_cjs();function u(M){const j=e.getGlobalFederationConstructor()||e.ModuleFederation,ee=new j(M);return e.setGlobalFederationInstance(ee),ee}let d=null;function m(M){const j=_.getGlobalFederationInstance(M.name,M.version);return j?(j.initOptions(M),d||(d=j),j):(d=u(M),d)}function g(...M){return e.assert(d,s.getShortErrorMsg(s.RUNTIME_009,s.runtimeDescMap)),d.loadRemote.apply(d,M)}function b(...M){return e.assert(d,s.getShortErrorMsg(s.RUNTIME_009,s.runtimeDescMap)),d.loadShare.apply(d,M)}function R(...M){return e.assert(d,s.getShortErrorMsg(s.RUNTIME_009,s.runtimeDescMap)),d.loadShareSync.apply(d,M)}function I(...M){return e.assert(d,s.getShortErrorMsg(s.RUNTIME_009,s.runtimeDescMap)),d.preloadRemote.apply(d,M)}function C(...M){return e.assert(d,s.getShortErrorMsg(s.RUNTIME_009,s.runtimeDescMap)),d.registerRemotes.apply(d,M)}function U(...M){return e.assert(d,s.getShortErrorMsg(s.RUNTIME_009,s.runtimeDescMap)),d.registerPlugins.apply(d,M)}function J(){return d}function Y(...M){return e.assert(d,s.getShortErrorMsg(s.RUNTIME_009,s.runtimeDescMap)),d.registerShared.apply(d,M)}return e.setGlobalFederationConstructor(e.ModuleFederation),index_cjs$3.Module=e.Module,index_cjs$3.ModuleFederation=e.ModuleFederation,index_cjs$3.getRemoteEntry=e.getRemoteEntry,index_cjs$3.getRemoteInfo=e.getRemoteInfo,index_cjs$3.loadScript=e.loadScript,index_cjs$3.loadScriptNode=e.loadScriptNode,index_cjs$3.registerGlobalPlugins=e.registerGlobalPlugins,index_cjs$3.createInstance=u,index_cjs$3.getInstance=J,index_cjs$3.init=m,index_cjs$3.loadRemote=g,index_cjs$3.loadShare=b,index_cjs$3.loadShareSync=R,index_cjs$3.preloadRemote=I,index_cjs$3.registerPlugins=U,index_cjs$3.registerRemotes=C,index_cjs$3.registerShared=Y,index_cjs$3}var hasRequiredRuntime_cjs;function requireRuntime_cjs(){return hasRequiredRuntime_cjs||(hasRequiredRuntime_cjs=1,(function(e){var s=requireIndex_cjs();Object.prototype.hasOwnProperty.call(s,"__proto__")&&!Object.prototype.hasOwnProperty.call(e,"__proto__")&&Object.defineProperty(e,"__proto__",{enumerable:!0,value:s.__proto__}
5),Object.keys(s).forEach(function(_){_!=="default"&&!Object.prototype.hasOwnProperty.call(e,_)&&(e[_]=s[_])})})(runtime_cjs)),runtime_cjs}var hasRequiredRuntime;function requireRuntime(){return hasRequiredRuntime||(hasRequiredRuntime=1,(function(e){var s=runtime&&runtime.__createBinding||(Object.create?(function(u,d,m,g){g===void 0&&(g=m);var b=Object.getOwnPropertyDescriptor(d,m);(!b||("get"in b?!d.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return d[m]}}),Object.defineProperty(u,g,b)}):(function(u,d,m,g){g===void 0&&(g=m),u[g]=d[m]})),_=runtime&&runtime.__exportStar||function(u,d){for(var m in u)m!=="default"&&!Object.prototype.hasOwnProperty.call(d,m)&&s(d,u,m)};Object.defineProperty(e,"__esModule",{value:!0}),_(requireRuntime_cjs(),e)})(runtime)),runtime}var runtimeExports=requireRuntime();const federationInstance=runtimeExports.createInstance({name:FEDERATION_HOST_NAME,remotes:[],plugins:[],shared:{react:{version:SHARED_REACT_VERSION,scope:FEDERATION_SHARE_SCOPE,lib:()=>React},"react-dom":{version:SHARED_REACT_VERSION,scope:FEDERATION_SHARE_SCOPE,lib:()=>ReactDOM},"react/jsx-runtime":{version:SHARED_REACT_VERSION,scope:FEDERATION_SHARE_SCOPE,lib:()=>jsxRuntime},"react/jsx-dev-runtime":{version:SHARED_REACT_VERSION,scope:FEDERATION_SHARE_SCOPE,lib:()=>jsxDevRuntime}}}),hashToken=e=>{let s=2166136261;for(let _=0;_<e.length;_+=1)s^=e.charCodeAt(_),s=Math.imul(s,16777619);return(s>>>0).toString(36)},buildRemoteName=(e,s)=>`${e}__${hashToken(s)}`,loadMiniappStarter=async({packageId:e,deploymentUrl:s,exposedModule:_})=>{const u=`${s}/remoteEntry.js`,d=buildRemoteName(e,s);federationInstance.registerRemotes([{name:d,entry:u,type:FEDERATION_MODULE_TYPE,shareScope:FEDERATION_SHARE_SCOPE}]);const m=`${d}/${_}`,g=await federationInstance.loadRemote(m);if(!g?.default)throw new Error(`Failed to load remote module "${m}" from ${u}`);return g.default},Logger=console,resolveStylesheetUrl=({originalHref:e})=>{try{return new URL(e,window.location.origin)}catch{return null}},hasLiveLink=({url:e})=>{const s=document.querySelectorAll('link[rel="stylesheet"]');for(const _ of s)if(_.href===e.href)return!0;return!1},SheetState={Applied:"applied",Pending:"pending",Unverifiable:"unverifiable"},resolveSheetState=({url:e})=>{for(const s of Array.from(document.styleSheets))if(s.href===e.href)try{return s.cssRules.length>0?SheetState.Applied:SheetState.Pending}catch{return SheetState.Unverifiable}return SheetState.Pending},isStylesheetReachable=async({url:e})=>{try{const s=await fetch(e.href,{mode:"no-cors",cache:"force-cache"});return s.type==="opaque"||s.ok}catch{return!1}},keepInlineCopy=({url:e})=>{Logger.warn(`${LogMessage.stylesheetRestoreFailed} ${e.href}`)},removeOnceSheetApplied=({element:e,url:s})=>{const _=performance.now(),u=window.setInterval(()=>{const d=resolveSheetState({url:s});if(d===SheetState.Applied){window.clearInterval(u),e.remove();return}if(d===SheetState.Unverifiable){window.clearInterval(u),isStylesheetReachable({url:s}).then(m=>{if(m){e.remove();return}keepInlineCopy({url:s})});return}performance.now()-_>STYLESHEET_RESTORE_TIMEOUT_MS&&(window.clearInterval(u),keepInlineCopy({url:s}))},STYLESHEET_RESTORE_POLL_MS)},restoreLinkAndRemoveInline=({element:e})=>{const s=e.getAttribute(PRERENDER_ORIGINAL_HREF_ATTRIBUTE);if(!s)return;const _=resolveStylesheetUrl({originalHref:s});if(_){if(!hasLiveLink({url:_})){const u=document.createElement("link");u.rel="stylesheet",u.setAttribute("href",_.origin===window.location.origin?`${_.pathname}${_.search}`:_.href),e.before(u)}removeOnceSheetApplied({element:e,url:_})}},cleanupPrerenderStyles=()=>{document.querySelectorAll(`style[${PRERENDER_CSS_ATTRIBUTE}][${PRERENDER_ORIGINAL_HREF_ATTRIBUTE}]`).forEach(e=>{restoreLinkAndRemoveInline({element:e})}),document.querySelectorAll(`style[${PRERENDER_CAPTURED_ATTRIBUTE}]:not([${PRERENDER_KEEP_ATTRIBUTE}])`).forEach(e=>{e.remove()}),document.querySelectorAll(`[${PRERENDER_FIXES_ATTRIBUTE}]`).forEach(e=>{e.remove()})},runTransition=({host:e,root:s})=>{e&&(e.style.opacity="1",e.style.pointerEvents="auto"),setTimeout(()=>{s&&(s.style.display="none",s.innerHTML=""),cleanupPrerenderStyles()},TRANSITION_SETTLE_MS)},revealApplication=()=>{performance.mark(PerformanceMark.clientSideRerendering);const e=Math.round(performance.now());Logger.log(`${LOG_PREFIX} client Side Re-Rendering: ${String(e)}ms from navigation start`);const s=document.getElementById(EMBEDDED_HOST_ELEMENT_ID),_=document.getElementById(ROOT_ELEMENT_ID);runTransition({host:s,root:_})}
5,IFRAME_GUEST_HOST_SELECTOR='[id^="miniapp-iframe-host-"] iframe',BootstrapWatcher=({watchIframeGuest:e=!1})=>{const s=useRuntimeState((d,m)=>m(d.isBootstrapped)),_=reactExports.useRef(!1),u=reactExports.useCallback(d=>{_.current||(_.current=!0,Logger.log(d),revealApplication())},[]);return reactExports.useEffect(()=>{const d=setTimeout(()=>{_.current||(_.current=!0,Logger.warn(LogMessage.bootstrapTimeout),revealApplication())},BOOTSTRAP_TIMEOUT_MS);return()=>clearTimeout(d)},[]),reactExports.useEffect(()=>{!s||_.current||(_.current=!0,Logger.log(LogMessage.bootstrapped),revealApplication())},[s]),reactExports.useEffect(()=>{if(!e)return;let d=null;const m=()=>u(LogMessage.iframeGuestLoaded),g=I=>{I.source!==null&&I.source===d?.contentWindow&&u(LogMessage.iframeGuestMessage)},b=()=>{const I=document.querySelector(IFRAME_GUEST_HOST_SELECTOR);return I?(d=I,I.addEventListener("load",m),window.addEventListener("message",g),!0):!1};let R;return b()||(R=new MutationObserver(()=>{b()&&R?.disconnect()}),R.observe(document.body,{childList:!0,subtree:!0})),()=>{R?.disconnect(),d?.removeEventListener("load",m),window.removeEventListener("message",g)}},[e,u]),null},THEME_CLASSES=["light","dark"],resolvePersistDecision=({classTheme:e,previousTheme:s})=>e?e===s?{write:!1}:{write:!0,theme:e}:{write:!1},THEME_COOKIE_NAME="ms_theme",ONE_YEAR_IN_SECONDS=3600*24*365,readThemeClass=()=>THEME_CLASSES.find(e=>document.documentElement.classList.contains(e)),readThemeCookie=()=>/(?:^|;\s*)ms_theme=(light|dark)/.exec(document.cookie)?.[1],writeThemeCookie=e=>{document.cookie=`${THEME_COOKIE_NAME}=${e}; path=/; max-age=${ONE_YEAR_IN_SECONDS}; samesite=lax; secure`},persistThemeCookie=()=>{let e=readThemeClass();const s=resolvePersistDecision({classTheme:e,previousTheme:readThemeCookie()});s.write&&writeThemeCookie(s.theme),new MutationObserver(()=>{const u=resolvePersistDecision({classTheme:readThemeClass(),previousTheme:e});u.write&&(e=u.theme,writeThemeCookie(u.theme))}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})},DS_SCOPE_CLASS="ds-scope",SHELL_REACT_ROOT_ID="shell-react-root",SHADOW_OVERLAY_ROOT_ID="overlay-root",JSS_INSERTION_POINT_MARKER="shell-jss-insertion-point",MONETIZATION_CHUNK_NAME="picsart-monetization",MINIAPP_LIGHT_ROOT_ID="miniapp-light-root",LIGHT_OVERLAY_ROOT_ID="overlay-root-light",MIRRORED_HTML_CLASSES=["light","dark","tab-enabled","tab-disabled","ds-properties","ds-themes","desktop","mobile","tablet"],MIRRORED_HTML_ATTRIBUTE="dir",buildStyleSheet=({cssText:e})=>{const s=new CSSStyleSheet;return s.replaceSync(e),s},adoptStyleSheets=({shadowRoot:e,cssTexts:s})=>{e.adoptedStyleSheets=s.map(_=>buildStyleSheet({cssText:_}))},createDiv=({id:e,className:s})=>{const _=document.createElement("div");return e&&(_.id=e),s&&(_.className=s),_},findOrCreateBodyChild=({id:e})=>{const s=document.getElementById(e);if(s)return s;const _=createDiv({id:e});return document.body.append(_),_},findOrCreateJssInsertionPoint=({shadowRoot:e})=>{for(const _ of e.childNodes)if(_ instanceof Comment&&_.nodeValue===JSS_INSERTION_POINT_MARKER)return _;const s=document.createComment(JSS_INSERTION_POINT_MARKER);return e.append(s),s},attachShadowHost=({host:e,styleSheetTexts:s})=>{const _=e.shadowRoot??e.attachShadow({mode:"open"});adoptStyleSheets({shadowRoot:_,cssTexts:s});const u=_.querySelector(`.${DS_SCOPE_CLASS}`),d=e.querySelector(`#${MINIAPP_LIGHT_ROOT_ID}`)??createDiv({id:MINIAPP_LIGHT_ROOT_ID});d.isConnected||e.append(d);const m=findOrCreateBodyChild({id:LIGHT_OVERLAY_ROOT_ID});if(u){const U=u.querySelector(`#${SHELL_REACT_ROOT_ID}`),J=u.querySelector(`#${SHADOW_OVERLAY_ROOT_ID}`);if(U&&J){const Y=findOrCreateJssInsertionPoint({shadowRoot:_});return{shadowRoot:_,wrapper:u,reactRoot:U,overlayRoot:J,miniappLightRoot:d,lightOverlayRoot:m,jssInsertionPoint:Y}}}const g=createDiv({className:DS_SCOPE_CLASS}),b=createDiv({id:SHELL_REACT_ROOT_ID}),R=document.createElement("slot"),I=createDiv({id:SHADOW_OVERLAY_ROOT_ID});g.append(b,R,I),_.replaceChildren(g);const C=findOrCreateJssInsertionPoint({shadowRoot:_});return{shadowRoot:_,wrapper:g,reactRoot:b,overlayRoot:I,miniappLightRoot:d,lightOverlayRoot:m,jssInsertionPoint:C}},syncOnce=({source:e,target:s})=>{for(const u of MIRRORED_HTML_CLASSES)s.classList.toggle(u,e.classList.contains(u));const _=e.getAttribute(MIRRORED_HTML_ATTRIBUTE);_===null?s.removeAttribute(MIRRORED_HTML_ATTRIBUTE):s.setAttribute(MIRRORED_HTML_ATTRIBUTE,_)},startThemeMirror=({wrapper:e})=>{const s=document.documentElement;syncOnce({source:s,target:e});const _=new MutationObserver(()=>syncOnce({source:s,target:e}));return _.observe(s,{attributes:!0,attributeFilter:["class",MIRRORED_HTML_ATTRIBUTE]}),()=>_.disconnect()},createShellShadow=({host:e,styleSheetTexts:s})=>{const _=attachShadowHost({host:e,styleSheetTexts:s});return startThemeMirror({wrapper:_.wrapper}),_},designSystemComponentSheets=Object.assign({"/node_modules/@picsart/design-system/components/Accordion/styles.css":__vite_glob_0_0,"/node_modules/@picsart/design-system/components/AnchorText/styles.css":__vite_glob_0_1,"/node_modules/@picsart/design-system/components/AspectRatio/styles.css":__vite_glob_0_2,"/node_modules/@picsart/design-system/components/AudioTrack/styles.css":__vite_glob_0_3,"/node_modules/@picsart/design-system/components/AutoComplete/styles.css":__vite_glob_0_4,"/node_modules/@picsart/design-system/components/Avatar/styles.css":__vite_glob_0_5,"/node_modules/@picsart/design-system/components/BannerPopup/styles.css":__vite_glob_0_6,"/node_modules/@picsart/design-system/components/BaseBottomSheet/styles.css":__vite_glob_0_7,"/node_modules/@picsart/design-system/components/BaseButton/styles.css":__vite_glob_0_8,"/node_modules/@picsart/design-system/components/BaseFloatingContainer/styles.css":__vite_glob_0_9,"/node_modules/@picsart/design-system/components/BaseIconButtonLayout/styles.css":__vite_glob_0_10,"/node_modules/@picsart/design-system/components/BaseLink/styles.css":__vite_glob_0_11,"/node_modules/@picsart/design-system/components/BaseTable/styles.css":__vite_glob_0_12,"/node_modules/@picsart/design-system/components/BaseText/styles.css":__vite_glob_0_13,"/node_modules/@picsart/design-system/components/BaseTextButtonLayout/styles.css":__vite_glob_0_14,"/node_modules/@picsart/design-system/components/BeforeAfter/styles.css":__vite_glob_0_15,"/node_modules/@picsart/design-system/components/BottomSheet/styles.css":__vite_glob_0_16,"/node_modules/@picsart/design-system/components/BreadCrumbs/styles.css":__vite_glob_0_17,"/node_modules/@picsart/design-system/components/Button/styles.css":__vite_glob_0_18,"/node_modules/@picsart/design-system/components/Calendar/styles.css":__vite_glob_0_19,"/node_modules/@picsart/design-system/components/Carou
5sel/styles.css":__vite_glob_0_20,"/node_modules/@picsart/design-system/components/Checkbox/styles.css":__vite_glob_0_21,"/node_modules/@picsart/design-system/components/Chip/styles.css":__vite_glob_0_22,"/node_modules/@picsart/design-system/components/ColorChooser/styles.css":__vite_glob_0_23,"/node_modules/@picsart/design-system/components/ColorMagnifier/styles.css":__vite_glob_0_24,"/node_modules/@picsart/design-system/components/ColorSet/styles.css":__vite_glob_0_25,"/node_modules/@picsart/design-system/components/ColorSpectrum/styles.css":__vite_glob_0_26,"/node_modules/@picsart/design-system/components/ColorWheel/styles.css":__vite_glob_0_27,"/node_modules/@picsart/design-system/components/ContextMenu/styles.css":__vite_glob_0_28,"/node_modules/@picsart/design-system/components/CreditsInfoCard/styles.css":__vite_glob_0_29,"/node_modules/@picsart/design-system/components/DatePicker/styles.css":__vite_glob_0_30,"/node_modules/@picsart/design-system/components/Dialog/styles.css":__vite_glob_0_31,"/node_modules/@picsart/design-system/components/Divider/styles.css":__vite_glob_0_32,"/node_modules/@picsart/design-system/components/EditorCrashView/styles.css":__vite_glob_0_33,"/node_modules/@picsart/design-system/components/EditorFinder/styles.css":__vite_glob_0_34,"/node_modules/@picsart/design-system/components/EditorPlayerControl/styles.css":__vite_glob_0_35,"/node_modules/@picsart/design-system/components/EditorToolBanner/styles.css":__vite_glob_0_36,"/node_modules/@picsart/design-system/components/ExpandableContainer/styles.css":__vite_glob_0_37,"/node_modules/@picsart/design-system/components/EyeDropper/styles.css":__vite_glob_0_38,"/node_modules/@picsart/design-system/components/Files/styles.css":__vite_glob_0_39,"/node_modules/@picsart/design-system/components/FinalButton/styles.css":__vite_glob_0_40,"/node_modules/@picsart/design-system/components/FoldableText/styles.css":__vite_glob_0_41,"/node_modules/@picsart/design-system/components/GetTheAppPopup/styles.css":__vite_glob_0_42,"/node_modules/@picsart/design-system/components/GradientTool/styles.css":__vite_glob_0_43,"/node_modules/@picsart/design-system/components/GuidedTooltip/styles.css":__vite_glob_0_44,"/node_modules/@picsart/design-system/components/HorizontalContainer/styles.css":__vite_glob_0_45,"/node_modules/@picsart/design-system/components/Image/styles.css":__vite_glob_0_46,"/node_modules/@picsart/design-system/components/ImageCollection/styles.css":__vite_glob_0_47,"/node_modules/@picsart/design-system/components/ImageFrame/styles.css":__vite_glob_0_48,"/node_modules/@picsart/design-system/components/InlineButton/styles.css":__vite_glob_0_49,"/node_modules/@picsart/design-system/components/Link/styles.css":__vite_glob_0_50,"/node_modules/@picsart/design-system/components/List/styles.css":__vite_glob_0_51,"/node_modules/@picsart/design-system/components/Loader/styles.css":__vite_glob_0_52,"/node_modules/@picsart/design-system/components/LoadingCard/styles.css":__vite_glob_0_53,"/node_modules/@picsart/design-system/components/LocalizationFlow/styles.css":__vite_glob_0_54,"/node_modules/@picsart/design-system/components/Logo/styles.css":__vite_glob_0_55,"/node_modules/@picsart/design-system/components/MasonryGrid/styles.css":__vite_glob_0_56,"/node_modules/@picsart/design-system/components/ModelInfoCard/styles.css":__vite_glob_0_57,"/node_modules/@picsart/design-system/components/MonetizationBadge/styles.css":__vite_glob_0_58,"/node_modules/@picsart/design-system/components/Notification/styles.css":__vite_glob_0_59,"/node_modules/@picsart/design-system/components/OnboardingTooltip/styles.css":__vite_glob_0_60,"/node_modules/@picsart/design-system/components/Overlay/styles.css":__vite_glob_0_61,"/node_modules/@picsart/design-system/components/Palette/styles.css":__vite_glob_0_62,"/node_modules/@picsart/design-system/components/PanelHeading/styles.css":__vite_glob_0_63,"/node_modules/@picsart/design-system/components/Picture/styles.css":__vite_glob_0_64,"/node_modules/@picsart/design-system/components/Pigment/styles.css":__vite_glob_0_65,"/node_modules/@picsart/design-system/components/Popup/styles.css":__vite_glob_0_66,"/node_modules/@picsart/design-system/components/Preloader/styles.css":__vite_glob_0_67,"/node_modules/@picsart/design-system/components/PremiumButton/styles.css":__vite_glob_0_68,"/node_modules/@picsart/design-system/components/PreviousCurrentColors/styles.css":__vite_glob_0_69,"/node_modules/@picsart/design-system/components/Progress/styles.css":__vite_glob_0_70,"/node_modules/@picsart/design-system/components/ProgressCard/styles.css":__vite_glob_0_71,"/node_modules/@picsart/design-system/components/PromptArea/styles.css":__vite_glob_0_72,"/node_modules/@picsart/design-system/components/Radio/styles.css":__vite_glob_0_73,"/node_modules/@picsart/design-system/components/ReportingFlow/styles.css":__vite_glob_0_74,"/node_modules/@picsart/design-system/components/ScrollBox/styles.css":__vite_glob_0_75,"/node_modules/@picsart/design-system/components/Segments/styles.css":__vite_glob_0_76,"/node_modules/@picsart/design-system/components/Select/styles.css":__vite_glob_0_77,"/node_modules/@picsart/design-system/components/SelectModel/styles.css":__vite_glob_0_78,"/node_modules/@picsart/design-system/components/Skeleton/styles.css":__vite_glob_0_79,"/node_modules/@picsart/design-system/components/Slider/styles.css":__vite_glob_0_80,"/node_modules/@picsart/design-system/components/Snackbar/styles.css":__vite_glob_0_81,"/node_modules/@picsart/design-system/components/SoundInput/styles.css":__vite_glob_0_82,"/node_modules/@picsart/design-system/components/Sparkles/styles.css":__vite_glob_0_83,"/node_modules/@picsart/design-system/components/Spinner/styles.css":__vite_glob_0_84,"/node_modules/@picsart/design-system/components/StandardGetTheApp/styles.css":__vite_glob_0_85,"/node_modules/@picsart/design-system/components/StatusCard/styles.css":__vite_glob_0_86,"/node_modules/@picsart/design-system/components/SuggestionMenu/styles.css":__vite_glob_0_87,"/node_modules/@picsart/design-system/components/SuggestionMenuV2/styles.css":__vite_glob_0_88,"/node_modules/@picsart/design-system/components/Switch/styles.css":__vite_glob_0_89,"/node_modules/@picsart/design-system/components/Tabs/styles.css":__vite_glob_0_90,"/node_modules/@picsart/design-system/components/Tag/styles.css":__vite_glob_0_91,"/node_modules/@picsart/design-system/components/Text/styles.css":__vite_glob_0_92,"/node_modules/@picsart/design-system/components/TextArea/styles.css":__vite_glob_0_93,"/node_modules/@picsart/design-system/components/TextField/styles.css":__vite_glob_0_94,"/node_modules/@picsart/design-system/components/TextTooltip/styles.css":__vite_glob_0_95,"/node_modules/@picsart/design-system/components/Thumbnail/styles.css":__vite_glob_0_96,"/node_modules/@picsart/design-system/components/Toaster/styles.css":__vite_glob_0_97,"/node_modules/@picsart/design-system/components/ToolBadge/styles.css":__vite_glob_0_98,"/node_modules/@picsart/design-system/components/Tooltip/styles.css":__vite_glob_0_99,"/node_modules/@picsart/design-system/components/TouchPoint/styles.css":__vite_glob_0_100,"/node_modules/@picsart/design-system/components/UserBadge/styles.css":__vite_glob_0_101,"/node_modules/@picsart/design-system/components/UserProfile/styles.css":__vite_glob_0_102,"/node_modules/@picsart/design-system/components/Video/styles.css":__vite_glob_0_103,"/node_modules/@picsart/design-system/components/VirtualizedList/styles.css":__vite_glob_0_104,"/node_modules/@picsart/design-system/components/molecules/ColorChooser/Formats/styles.css":__vite_glob_0_105,"/node_modules/@picsart/design-system/components/molecules/GuidedTooltip/GuidedTooltipItem/styles.css":__vite_glob_0_106,"/node_modules/@picsart/design-system/components/molecules/PanelHeading/CreditButton/styles.css":__vite_glob_0_107,"/node_modules/@picsart/design-system/components/molecules/ReportingFlow/Components/ReportingContent/styles.css":__vite_glob_0_108,"/node_modules/@picsart/design-system/components/molecules/ReportingFlow/Components/ReportingList/styles.css":__vite_glob_0_109,"/node_modules/@picsart/design-system/components/molecules/ReportingFlow/Components/ReportingSuccess/styles.css":__vite_glob_0_110,"/node_modules/@picsart/design-system/components/organisms/ColorPicker/ColorPicker/styles.css":__vite_glob_0_111,"/node_modules/@picsart/design-system/components/organisms/ColorPicker/ColorPickerColorPreset/styles.css":__vite_glob_0_112,"/node_modules/@picsart/design-system/components/organisms/ColorPicker/ColorPickerColorSet/styles.css":__vite_glob_0_113,"/node_modules/@picsart/design-system/components/organisms/ColorPicker/ColorPickerColorSetList/styles.css":__vite_glob_0_114,"/node_modules/@picsart/design-system/components/organisms/ColorPicker/ColorPickerSectionTitle/styles.css":__vite_glob_0_115,"/node_modules/@picsart/design-system/components/organisms/ColorPicker/ColorPickerShortcuts/styles.css":__vite_glob_0_116,"/node_modules/@picsart/design-system/components/organisms/PromptArea/promptAction/styles.css":__vite_glob_0_117,"/node_modules/@picsart/design-system/components/organisms/PromptArea/promptAttachment/styles.css":__vite_glob_0_118,"/node_modules/@picsart/design-system/components/organisms/PromptArea/richInput/styles.css":__vite_glob_0_119,"/node_modules/@picsart/design-system/components/templates/Blank/Blank/styles.css":__vite_glob_0_120,"/node_modules/@picsart/design-system/components/templates/Blank/BlankCarousel/styles.css":__vite_glob_0_121,"/node_modules/@picsart/design-system/components/templates/Blank/BlankChips/styles.css":__vite_glob_0_122,"/node_modules/@picsart/design-system/components/templates/Blank/BlankContentHeading/styles.css":__vite_glob_0_123,"/node_modules/@picsart/design-system/components/templates/Blank/BlankCreditsCount/styles.css":__vite_glob_0_124,"/node_modules/@picsart/design-system/components/templates/Blank/BlankFooterTextBlock/styles.css":__vite_glob_0_125,"/node_modules/@picsart/design-system/components/templates/Blank/BlankSkeleton/styles.css":__vite_glob_0_126,"/node_modules/@picsart/design-system/components/templates/Blank/BlankSlider/styles.css":__vite_glob_0_127,"/node_modules/@picsart/design-system/components/templates/Blank/BlankTitleBody/styles.css":__vite_glob_0_128,"/node_modules/@picsart/design-system/components/templates/EditorHost/EditorAsideToggleButton/styles.css":__vite_glob_0_129,"/node_modules/@picsart/design-system/components/templates/EditorHost/EditorDynamicRight/EditorDynamicRightLarge/styles.css":__vite_glob_0_130,"/node_modules/@picsart/design-system/components/templates/EditorHost/EditorHeader/styles.css":__vite_glob_0_131,"/node_modules/@picsart/design-system/components/templates/EditorHost/EditorHeaderSkeleton/styles.css":__vite_glob_0_132,"/node_modules/@picsart/design-system/components/templates/EditorHost/EditorHost/styles.css":__vite_glob_0_133,"/node_modules/@picsart/design-system/components/templates/EditorMiddleware/EditorMiddleware/styles.css":__vite_glob_0_134,"/node_modules/@picsart/design-system/components/templates/EditorMiddleware/EditorToolbar/EditorToolbarAction/EditorToolbarActionLarge/styles.css":__vite_glob_0_135,"/node_modules/@picsart/design-system/components/templates/EditorMiddleware/EditorToolbar/EditorToolbarAction/EditorToolbarActionSmall/styles.css":__vite_glob_0_136,"/node_modules/@picsart/design-system/components/templates/EditorMiddleware/EditorToolbar/EditorToolbarActionMenu/styles.css":__vite_glob_0_137,"/node_modules/@picsart/design-system/components/templates/EditorMiddleware/EditorToolbar/EditorToolbarLarge/styles.css":__vite_glob_0_138,"/node_modules/@picsart/design-system/components/templates/EditorMiddleware/EditorToolbar/EditorToolbarSmall/styles.css":__vite_glob_0_139,"/node_modules/@picsart/design-system/components/templates/EditorMiddleware/EditorToolbarSkeleton/styles.css":__vite_glob_0_140,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorDynamicLarge/styles.css":__vite_glob_0_141,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorDynamicSkeleton/styles.css":__vite_glob_0_142,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorFontFamily/styles.css":__vite_glob_0_143,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorFontSize/styles.css":__vite_glob_0_144,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorLayerDropZone/styles.css":__vite_glob_0_145,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorLayerGroup/styles.css":__vite_glob_0_146,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorLayerLarge/styles.css":__vite_glob_0_147,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorLayerSmall/styles.css":__vite_glob_0_148,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorLayersButton/styles.css":__vite_glob_0_149,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorLayersLarge/styles.css":__vite_glob_0_150,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorLayersList/styles.css":__vite_glob_0_151,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorLayersSkeleton/styles.css":__vite_glob_0_152,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorLayersSmall/styles.css":__vite_glob_0_153,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorObjectActionLarge/styles.css":__vite_glob_0_154,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorObjectActionSmall/styles.css":__vite_glob_0_155,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorObjectMoreActionsLarge/styles.css":__vite_glob_0_156,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorObjectMoreActionsSmall/styles.css":__vite_glob_0_157,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorPrimaryActionsLarge/styles.css":__vite_glob_0_158,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorPrimaryActionsSmall/styles.css":__vite_glob_0_159,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorReplayPlayerLarge/styles.css":__vite_glob_0_160,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorReplayPlayerSamll/styles.css":__vite_glob_0_161,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorSecondaryActionsLarge/styles.css":__vite_glob_0_162,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorSecondaryActionsSmall/styles.css":__vite_glob_0_163,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorSlotLarge/EditorToggleButton/styles.css":__vite_glob_0_164,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorSlotLarge/styles.css":__vite_glob_0_165,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorSlotSmall/styles.css":__vite_glob_0_166,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorToggleLayersButton/styles.css":__vite_glob_0_167,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorTouchPoint/TouchPoint/styles.css":__vite_glob_0_168,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorTouchPointGrid/styles.css":__vite_glob_0_169,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorTouchpointsLarge/styles.css":__vite_glob_0_170,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorTouchpointsSmall/styles.css":__vite_glob_0_171,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorUndoRedoLarge/styles.css":__vite_glob_0_172,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorUndoRedoSmall/styles.css":__vite_glob_0_173,"/node_modules/@picsart/design-system/components/templates/EditorSlot/EditorZoomInOut/styles.css":__vite_glob_0_174,"/node_modules/@picsart/design-system/components/templates/EditorVideoTrimmer/EditorVideoTrimmerLarge/styles.css":__vite_glob_0_175,"/node_modules/@picsart/design-system/components/templates/EditorVideoTrimmer/EditorVideoTrimmerSmall/styles.css":__vite_glob_0_176,"/node_modules/@picsart/design-system/compon
5ents/templates/EditorVideoTrimmer/Frame/styles.css":__vite_glob_0_177,"/node_modules/@picsart/design-system/components/templates/EditorVideoTrimmer/InnerTooltip/styles.css":__vite_glob_0_178,"/node_modules/@picsart/design-system/components/templates/EditorVideoTrimmer/TrimFrame/styles.css":__vite_glob_0_179,"/node_modules/@picsart/design-system/components/templates/StandardHost/FooterBasicLink/styles.css":__vite_glob_0_180,"/node_modules/@picsart/design-system/components/templates/StandardHost/StandardFooter/CommonLinks/styles.css":__vite_glob_0_181,"/node_modules/@picsart/design-system/components/templates/StandardHost/StandardFooter/ExternalLinks/styles.css":__vite_glob_0_182,"/node_modules/@picsart/design-system/components/templates/StandardHost/StandardFooter/InternalLinks/styles.css":__vite_glob_0_183,"/node_modules/@picsart/design-system/components/templates/StandardHost/StandardFooter/NavigationLinks/styles.css":__vite_glob_0_184,"/node_modules/@picsart/design-system/components/templates/StandardHost/StandardFooter/styles.css":__vite_glob_0_185,"/node_modules/@picsart/design-system/components/templates/StandardHost/StandardFooterBasic/styles.css":__vite_glob_0_186,"/node_modules/@picsart/design-system/components/templates/StandardHost/StandardHeader/BurgerMenu/styles.css":__vite_glob_0_187,"/node_modules/@picsart/design-system/components/templates/StandardHost/StandardHeader/StandardHeaderNavigation/styles.css":__vite_glob_0_188,"/node_modules/@picsart/design-system/components/templates/StandardHost/StandardHeader/StandardHeaderNavigationContent/styles.css":__vite_glob_0_189,"/node_modules/@picsart/design-system/components/templates/StandardHost/StandardHeader/StandardHeaderNavigationContentItem/styles.css":__vite_glob_0_190,"/node_modules/@picsart/design-system/components/templates/StandardHost/StandardHeader/StandardHeaderSearch/styles.css":__vite_glob_0_191,"/node_modules/@picsart/design-system/components/templates/StandardHost/StandardHeader/StandardHeaderUserActions/styles.css":__vite_glob_0_192,"/node_modules/@picsart/design-system/components/templates/StandardHost/StandardHeader/styles.css":__vite_glob_0_193,"/node_modules/@picsart/design-system/components/templates/StandardHost/StandardHost/styles.css":__vite_glob_0_194,"/node_modules/@picsart/design-system/components/templates/StandardHost/StandardHostFooter/styles.css":__vite_glob_0_195,"/node_modules/@picsart/design-system/components/templates/StandardHost/StandardHostHeader/styles.css":__vite_glob_0_196,"/node_modules/@picsart/design-system/components/templates/StandardMiddleware/StandardAside/Navigation/styles.css":__vite_glob_0_197,"/node_modules/@picsart/design-system/components/templates/StandardMiddleware/StandardAside/PrimaryAction/styles.css":__vite_glob_0_198,"/node_modules/@picsart/design-system/components/templates/StandardMiddleware/StandardAside/Storage/styles.css":__vite_glob_0_199,"/node_modules/@picsart/design-system/components/templates/StandardMiddleware/StandardAside/styles.css":__vite_glob_0_200,"/node_modules/@picsart/design-system/components/templates/StandardMiddleware/StandardMiddleware/styles.css":__vite_glob_0_201,"/node_modules/@picsart/design-system/components/templates/StandardMiddleware/StandardWelcome/StandardWelcomeLarge/styles.css":__vite_glob_0_202,"/node_modules/@picsart/design-system/components/templates/StandardMiddleware/StandardWelcome/StandardWelcomeSmall/styles.css":__vite_glob_0_203,"/node_modules/@picsart/design-system/components/templates/StandardMiddleware/StandardWelcome/styles.css":__vite_glob_0_204,"/node_modules/@picsart/design-system/components/templates/StandardSlot/StandardRoom/styles.css":__vite_glob_0_205,"/node_modules/@picsart/design-system/components/templates/StandardSlot/StandardSlot/styles.css":__vite_glob_0_206,"/node_modules/@picsart/design-system/components/templates/StandardSlot/StandardSubTitle/styles.css":__vite_glob_0_207}),designSystemComponentSheetTexts=Object.values(designSystemComponentSheets),growthRcSheets=Object.assign({"/node_modules/@picsart/growth-rc/AgeConfirmationPopup/index-cjs.css":__vite_glob_1_0,"/node_modules/@picsart/growth-rc/AgeC
5onfirmationPopup/index.css":__vite_glob_1_1,"/node_modules/@picsart/growth-rc/BrazeContentCards-ed148305.css":__vite_glob_1_2,"/node_modules/@picsart/growth-rc/BrazeContentCards-edc1bc36.css":__vite_glob_1_3,"/node_modules/@picsart/growth-rc/Button-0f8d96c2.css":__vite_glob_1_4,"/node_modules/@picsart/growth-rc/Button-4af1392b.css":__vite_glob_1_5,"/node_modules/@picsart/growth-rc/Carousel/index-cjs.css":__vite_glob_1_6,"/node_modules/@picsart/growth-rc/Carousel/index.css":__vite_glob_1_7,"/node_modules/@picsart/growth-rc/CenteredContent-b4b7b89d.css":__vite_glob_1_8,"/node_modules/@picsart/growth-rc/CenteredContent-f27bca44.css":__vite_glob_1_9,"/node_modules/@picsart/growth-rc/CopyRight-3c5a9b18.css":__vite_glob_1_10,"/node_modules/@picsart/growth-rc/CopyRight-a55788a2.css":__vite_glob_1_11,"/node_modules/@picsart/growth-rc/Description-8ca16a1e.css":__vite_glob_1_12,"/node_modules/@picsart/growth-rc/Description-94df0da8.css":__vite_glob_1_13,"/node_modules/@picsart/growth-rc/DummyMarkup-058e5f0b.css":__vite_glob_1_14,"/node_modules/@picsart/growth-rc/DummyMarkup-8ff14397.css":__vite_glob_1_15,"/node_modules/@picsart/growth-rc/ExpandableText-32136e9e.css":__vite_glob_1_16,"/node_modules/@picsart/growth-rc/ExpandableText-64fa9b76.css":__vite_glob_1_17,"/node_modules/@picsart/growth-rc/ExternalButton-07e63285.css":__vite_glob_1_18,"/node_modules/@picsart/growth-rc/ExternalButton-22eed058.css":__vite_glob_1_19,"/node_modules/@picsart/growth-rc/Footer/index-cjs.css":__vite_glob_1_20,"/node_modules/@picsart/growth-rc/Footer/index.css":__vite_glob_1_21,"/node_modules/@picsart/growth-rc/FooterRelevantLinks-82c4b2d5.css":__vite_glob_1_22,"/node_modules/@picsart/growth-rc/FooterRelevantLinks-988ad96e.css":__vite_glob_1_23,"/node_modules/@picsart/growth-rc/Header/index-cjs.css":__vite_glob_1_24,"/node_modules/@picsart/growth-rc/Header/index.css":__vite_glob_1_25,"/node_modules/@picsart/growth-rc/HeaderSkeleton-60b57dac.css":__vite_glob_1_26,"/node_modules/@picsart/growth-rc/HeaderSkeleton-9d15084c.css":__vite_glob_1_27,"/node_modules/@picsart/growth-rc/HelpWidget/index-cjs.css":__vite_glob_1_28,"/node_modules/@picsart/growth-rc/HelpWidget/index.css":__vite_glob_1_29,"/node_modules/@picsart/growth-rc/LandingsHeader/index-cjs.css":__vite_glob_1_30,"/node_modules/@picsart/growth-rc/LandingsHeader/index.css":__vite_glob_1_31,"/node_modules/@picsart/growth-rc/MarketingCheckbox-21ac230a.css":__vite_glob_1_32,"/node_modules/@picsart/growth-rc/MarketingCheckbox-53c728b0.css":__vite_glob_1_33,"/node_modules/@picsart/growth-rc/MobilePopup/index-cjs.css":__vite_glob_1_34,"/node_modules/@picsart/growth-rc/MobilePopup/index.css":__vite_glob_1_35,"/node_modules/@picsart/growth-rc/NewHeader/index-cjs.css":__vite_glob_1_36,"/node_modules/@picsart/growth-rc/NewHeader/index.css":__vite_glob_1_37,"/node_modules/@picsart/growth-rc/Profile-968e2882.css":__vite_glob_1_38,"/node_modules/@picsart/growth-rc/Profile-d24b306c.css":__vite_glob_1_39,"/node_modules/@picsart/growth-rc/RegistrationCard-7667dcbe.css":__vite_glob_1_40,"/node_modules/@picsart/growth-rc/RegistrationCard-ec39642c.css":__vite_glob_1_41,"/node_modules/@picsart/growth-rc/RegistrationModal-52486e20.css":__vite_glob_1_42,"/node_modules/@picsart/growth-rc/RegistrationModal-de4b9753.css":__vite_glob_1_43,"/node_modules/@picsart/growth-rc/ReviewScroller/index-cjs.css":__vite_glob_1_44,"/node_modules/@picsart/growth-rc/ReviewScroller/index.css":__vite_glob_1_45,"/node_modules/@picsart/growth-rc/SearchField-71581839.css":__vite_glob_1_46,"/node_modules/@picsart/growth-rc/SearchField-a5122e56.css":__vite_glob_1_47,"/node_modules/@picsart/growth-rc/SearchInput-57dc341b.css":__vite_glob_1_48,"/node_modules/@picsart/growth-rc/SearchInput-e64dbe40.css":__vite_glob_1_49,"/node_modules/@picsart/growth-rc/SsoEmbeddedLoginModal-a8492aa4.css":__vite_glob_1_50,"/node_modules/@picsart/growth-rc/SsoEmbeddedLoginModal-f6c52195.css":__vite_glob_1_51,"/node_modules/@picsart/growth-rc/Title-2ffb156e.css":__vite_glob_1_52,"/node_modules/@picsart/growth-rc/Title-93a0e40e.css":__vite_glob_1_53,"/node_modules/@picsart/growth-rc/TopProfileContent-bdddce06.css":__vite_glob_1_54,"/node_modules/@picsart/growth-rc/TopProfileContent-c7b25c50.css":__vite_glob_1_55,"/node_modules/@picsart/growth-rc/UserActions-3ca4b1bc.css":__vite_glob_1_56,"/node_modules/@picsart/growth-rc/UserActions-b465224d.css":__vite_glob_1_57,"/node_modules/@picsart/growth-rc/UsernameForm-6b785dd0.css":__vite_glob_1_58,"/node_modules/@picsart/growth-rc/UsernameForm-b80f0143.css":__vite_glob_1_59,"/node_modules/@picsart/growth-rc/constants-24474972.css":__vite_glob_1_60,"/node_modules/@picsart/growth-rc/constants-a028d093.css":__vite_glob_1_61,"/node_modules/@picsart/growth-rc/getMenuButtonsAndItems-a0d62372.css":__vite_glob_1_62,"/node_modules/@picsart/growth-rc/getMenuButtonsAndItems-a41118c0.css":__vite_glob_1_63,"/node_modules/@picsart/growth-rc/index-052b1c75.css":__vite_glob_1_64,"/node_modules/@picsart/growth-rc/index-0675589e.css":__vite_glob_1_65,"/node_modules/@picsart/growth-rc/index-07b3bd12.css":__vite_glob_1_66,"/node_modules/@picsart/growth-rc/index-0da4e3aa.css":__vite_glob_1_67,"/node_modules/@picsart/growth-rc/index-196e2993.css":__vite_glob_1_68,"/node_modules/@picsart/growth-rc/index-1f47f09e.css":__vite_glob_1_69,"/node_modules/@picsart/growth-rc/index-1f91b84c.css":__vite_glob_1_70,"/node_modules/@picsart/growth-rc/index-29ed90b1.css":__vite_glob_1_71,"/node_modules/@picsart/growth-rc/index-2a946df5.css":__vite_glob_1_72,"/node_modules/@picsart/growth-rc/index-2f2b9f71.css":__vite_glob_1_73,"/node_modules/@picsart/growth-rc/index-30704d23.css":__vite_glob_1_74,"/node_modules/@picsart/growth-rc/index-3aa218b9.css":__vite_glob_1_75,"/node_modules/@picsart/growth-rc/index-3ffea458.css":__vite_glob_1_76,"/node_modules/@picsart/growth-rc/index-4165f904.css":__vite_glob_1_77,"/node_modules/@picsart/growth-rc/index-42b90393.css":__vite_glob_1_78,"/node_modules/@picsart/growth-rc/index-4e2a9dd3.css":__vite_glob_1_79,"/node_modules/@picsart/growth-rc/index-524c379a.css":__vite_glob_1_80,"/node_modules/@picsart/growth-rc/index-612294f8.css":__vite_glob_1_81,"/node_modules/@picsart/growth-rc/index-6397f72e.css":__vite_glob_1_82,"/node_modules/@picsart/growth-rc/index-641f60d6.css":__vite_glob_1_83,"/node_modules/@picsart/growth-rc/index-65ce44d8.css":__vite_glob_1_84,"/node_modules/@picsart/growth-rc/index-6902a0ff.css":__vite_glob_1_85,"/node_modules/@picsart/growth-rc/index-6e5d7939.css":__vite_glob_1_86,"/node_modules/@picsart/growth-rc/index-73072e7a.css":__vite_glob_1_87,"/node_modules/@picsart/growth-rc/index-730caae9.css":__vite_glob_1_88,"/node_modules/@picsart/growth-rc/index-77c16bae.css":__vite_glob_1_89,"/node_modules/@picsart/growth-rc/index-7bfcc8aa.css":__vite_glob_1_90,"/node_modules/@picsart/growth-rc/index-7c7f41a9.css":__vite_glob_1_91,"/node_modules/@picsart/growth-rc/index-88da698e.css":__vite_glob_1_92,"/node_modules/@picsart/growth-rc/index-890e6494.css":__vite_glob_1_93,"/node_modules/@picsart/growth-rc/index-980feae5.css":__vite_glob_1_94,"/node_modules/@picsart/growth-rc/index-a8c01a5d.css":__vite_glob_1_95,"/node_modules/@picsart/growth-rc/index-aa09b9cb.css":__vite_glob_1_96,"/node_modules/@picsart/growth-rc/index-acb17ea0.css":__vite_glob_1_97,"/node_modules/@picsart/growth-rc/index-aea4a849.css":__vite_glob_1_98,"/node_modules/@picsart/growth-rc/index-b14b1526.css":__vite_glob_1_99,"/node_modules/@picsart/growth-rc/index-b28dae62.css":__vite_glob_1_100,"/node_modules/@picsart/growth-rc/index-b325f53a.css":__vite_glob_1_101,"/node_modules/@picsart/growth-rc/index-be72394b.css":__vite_glob_1_102,"/node_modules/@picsart/growth-rc/index-c3891891.css":__vite_glob_1_103,"/node_modules/@picsart/growth-rc/index-d2209f06.css":__vite_glob_1_104,"/node_modules/@picsart/growth-rc/index-d28d8ef7.css":__vite_glob_1_105,"/node_modules/@picsart/growth-rc/index-d4f14cd9.css":__vite_glob_1_106,"/node_modules/@picsart/growth-rc/index-df979566.css":__vite_glob_1_107,"/node_modules/@picsart/growth-rc/index-dfaebd6c.css":__vite_glob_1_108,"/node_modules/@picsart/growth-rc/index-e077f505.css":__vite_glob_1_109,"/node_modules/@picsart/growth-rc/index-e513062e.css":__vite_glob_1_110,"/node_modules/@picsart/growth-rc/index-e51bdcfc.css":__vite_glob_1_111,"/node_modules/@picsart/growth-rc/index-e7ae8403.css":__vite_glob_1_112,"/node_modules/@picsart/growth-rc/index-e94d8dc3.css":__vite_glob_1_113,"/node_modules/@picsart/growth-rc/index-f0cf0c8d.css":__vite_glob_1_114,"/node_modules/@picsart/growth-rc/index-f38c8110.css":__vite_glob_1_115,"/node_modules/@picsart/growth-rc/index-f511c6ed.css":__vite_glob_1_116,"/node_modules/@picsart/growth-rc/index-f5d742c4.css":__vite_glob_1_117,"/node_modules/@picsart/growth-rc/index-f6b9dbe8.css":__vite_glob_1_118,"/node_modules/@picsart/growth-rc/index-fa98aca7.css":__vite_glob_1_119,"/node_modules/@picsart/growth-rc/makeLogout-272a46c7.css":__vite_glob_1_120,"/node_modules/@picsart/growth-rc/makeLogout-d9d90dca.css":__vite_glob_1_121,"/node_modules/@picsart/growth-rc/old/AccountTermination/index-cjs.css":__vite_glob_1_122,"/node_modules/@picsart/growth-rc/old/AccountTermination/index.css":__vite_glob_1_123,"/node_modules/@picsart/growth-rc/old/Footer/index-cjs.css":__vite_glob_1_124,"/node_modules/@picsart/growth-rc/old/Footer/index.css":__vite_glob_1_125,"/node_modules/@picsart/growth-rc/old/FooterMobile/index-cjs.css":__vite_glob_1_126,"/node_modules/@picsart/growth-rc/old/FooterMobile/index.css":__vite_glob_1_127,"/node_modules/@picsart/growth-rc/types-044bd940.css":__vite_glob_1_128,"/node_modules/@picsart/growth-rc/types-65cca146.css":__vite_glob_1_129,"/node_modules/@picsart/growth-rc/useLanguageSelection-18663165.css":__vite_glob_1_130,"/node_modules/@picsart/growth-rc/useLanguageSelection-cbac6b5d.css":__vite_glob_1_131}),growthRcEsmSheets=Object.entries(growthRcSheets).filter(([e])=>!e.endsWith("-cjs.css"));growthRcEsmSheets.map(([e])=>e);const growthRcSheetTexts=growthRcEsmSheets.map(([,e])=>e),collectSuppressedStyleSheets=()=>[...designSystemComponentSheetTexts,...growthRcSheetTexts];var define_process_env_default$1={REACT_APP_SHELL_ISOLATE:"false"};const isHeadCssSuppressed=()=>define_process_env_default$1.REACT_APP_SHELL_ISOLATE==="true",HeadCssAction={Restore:"restore",Remove:"remove",None:"none"},resolveHeadCssAction=({suppressed:e,isolate:s})=>HeadCssAction.None,RESTORED_STYLE_ELEMENT_ID="shell-restored-css",restoreHeadStyleSheets=({cssTexts:e})=>
5{if(document.getElementById(RESTORED_STYLE_ELEMENT_ID))return;const s=document.createElement("style");s.id=RESTORED_STYLE_ELEMENT_ID,s.setAttribute(PRERENDER_KEEP_ATTRIBUTE,""),s.textContent=e.join(`
6`),document.head.append(s)},removeRestoredHeadStyleSheets=()=>{document.getElementById(RESTORED_STYLE_ELEMENT_ID)?.remove()},rescopeToShadow=e=>e.replace(/(^|[\s{},])html(?=[\s.,:{[])/g,`$1.${DS_SCOPE_CLASS}`),shadowLayoutCss=`
7.ds-scope {
8  display: flex;
9  flex-direction: column;
10  flex: 1 1 auto;
11  min-height: 0;
12}
13.ds-scope > slot {
14  display: contents;
15}
16`,collectShadowStyleSheets=()=>[foundationShadowCss,...designSystemComponentSheetTexts,...growthRcSheetTexts.map(rescopeToShadow),shadowLayoutCss],isChunkStyleSheetHref=({href:e,chunkName:s})=>{const _=new URL(e,"https://shell.invalid").pathname.split("/").pop()??"";return _.startsWith(`${s}-`)&&_.endsWith(".css")},adoptChunkStyleSheets=async({shadowRoot:e,hrefs:s,chunkName:_,fetchText:u,transform:d})=>{const m=s.filter(b=>isChunkStyleSheetHref({href:b,chunkName:_})),g=await Promise.all(m.map(b=>u({href:b})));e.adoptedStyleSheets=[...e.adoptedStyleSheets,...g.map(b=>buildStyleSheet({cssText:d(b)}))]},DOCUMENT_ROOT_COMPOUND=/^(?::root|html)(?![\w-])[^\s>+~]*$/,splitSelectorList=({selectorText:e})=>{const{parts:s,current:_}=[...e].reduce((u,d)=>{if(d===","&&u.depth===0)return{parts:[...u.parts,u.current],current:"",depth:0};const m=d==="("||d==="["?u.depth+1:d===")"||d==="]"?Math.max(0,u.depth-1):u.depth;return{parts:u.parts,current:u.current+d,depth:m}},{parts:[],current:"",depth:0});return[...s,_].map(u=>u.trim()).filter(u=>u.length>0)},isDocumentRootSelector=({selector:e})=>DOCUMENT_ROOT_COMPOUND.test(e.trim()),selectDocumentRootSelectors=({selectorText:e})=>splitSelectorList({selectorText:e}).filter(s=>isDocumentRootSelector({selector:s})),DOCUMENT_ROOT_RULES_ATTRIBUTE="data-shell-document-root-rules",serializeGroupingPrelude=({rule:e})=>{if(e instanceof CSSMediaRule)return`@media ${e.conditionText}`;if(e instanceof CSSSupportsRule)return`@supports ${e.conditionText}`},collectDocumentRootCss=({rules:e})=>Array.from(e).flatMap(s=>{if(s instanceof CSSStyleRule){const d=selectDocumentRootSelectors({selectorText:s.selectorText});return d.length>0?[`${d.join(", ")} { ${s.style.cssText} }`]:[]}const _=serializeGroupingPrelude({rule:s});if(_===void 0||!(s instanceof CSSGroupingRule))return[];const u=collectDocumentRootCss({rules:s.cssRules});return u.length>0?[`${_} { ${u.join(" ")} }`]:[]}),MAY_TARGET_DOCUMENT_ROOT=/:root|html/,extractDocumentRootCss=({sheet:e})=>{const s=e.toString();if(!MAY_TARGET_DOCUMENT_ROOT.test(s))return"";const _=new CSSStyleSheet;return _.replaceSync(s),collectDocumentRootCss({rules:_.cssRules}).join(`
17`)},createDocumentRootRulesPlugin=({hostDocument:e})=>({onProcessSheet:s=>{if(!s)return;const _=extractDocumentRootCss({sheet:s});if(_.length===0)return;const u=e.createElement("style");u.setAttribute(DOCUMENT_ROOT_RULES_ATTRIBUTE,s.options.meta??""),u.textContent=_;const d=s.attach.bind(s),m=s.detach.bind(s);s.attach=()=>(e.head.append(u),d()),s.detach=()=>(u.remove(),m())}}),createShadowJss=({insertionPoint:e,hostDocument:s})=>createJss({...create(),insertionPoint:e}).use(createDocumentRootRulesPlugin({hostDocument:s}));var define_process_env_default={REACT_APP_PICSART_HOST_URL:"https://picsart.com",REACT_APP_MONETIZATION_API_URL:"https://api.picsart.com",ADYEN_KEY:"live_AWRY4KLIVNGCRDVAOUBDDX4OU4UE4VPH",STRIPE_KEY:"pk_live_51Sme7qD9HvEpXaqyRGxpOa16dViiaB4FfQaFvkMxBHLLVDAKYnQm4jwseynr0xOiN7klySVR8f5WyUFbLAAX7kvx00FhaYSVP4"};const resolveActiveSsoConfig=({configuration:e})=>!e.prerender&&e.sso?withSessionEndpoint({ssoConfig:withPostLogoutRedirect({ssoConfig:e.sso,origin:window.location.origin})}):void 0,ShellApplication=({configuration:e,starter:s,ssoAutoRestore:_,miniappPortalTarget:u})=>{const d={packageId:e.packageId,appVersion:e.appVersion},m=resolveActiveSsoConfig({configuration:e}),g={miniapp:d,starter:s,pulseApp:e.pulseApp,pulseEnvironment:e.pulseEnvironment,template:e.template,linksOrigin:define_process_env_default.REACT_APP_PICSART_HOST_URL,themeSwitchable:!e.prerender&&!!e.template,apiUrl:define_process_env_default.REACT_APP_MONETIZATION_API_URL,adyenKey:define_process_env_default.ADYEN_KEY,stripeKey:define_process_env_default.STRIPE_KEY,prerender:e.prerender,defaultContext:{language:e.language,theme:e.theme},...u&&{miniappPortalTarget:u}};return m?jsxRuntimeExports.jsx(EmbeddedRuntimeProvider,{...g,useSSOFlow:!0,ssoConfig:m,ssoLogoutMode:SSO_LOGOUT_MODE,autoRestore:_,children:jsxRuntimeExports.jsx(BootstrapWatcher,{})}):jsxRuntimeExports.jsx(EmbeddedRuntimeProvider,{...g,children:jsxRuntimeExports.jsx(BootstrapWatcher,{})})},IframeApplication=({configuration:e,ssoAutoRestore:s,miniappPortalTarget:_})=>{const u={packageId:e.packageId,appVersion:e.appVersion,deploymentUrl:e.deploymentUrl,...e.htmlRenderingEnabled!==void 0&&{htmlRenderingEnabled:e.htmlRenderingEnabled}},d=resolveActiveSsoConfig({configuration:e}),m={miniapp:u,pulseApp:e.pulseApp,pulseEnvironment:e.pulseEnvironment,template:e.template,linksOrigin:define_process_env_default.REACT_APP_PICSART_HOST_URL,themeSwitchable:!e.prerender&&!!e.template,apiUrl:define_process_env_default.REACT_APP_MONETIZATION_API_URL,adyenKey:define_process_env_default.ADYEN_KEY,stripeKey:define_process_env_default.STRIPE_KEY,prerender:e.prerender,defaultContext:{language:e.language,theme:e.theme},..._&&{miniappPortalTarget:_}};return d?jsxRuntimeExports.jsx(IframeRuntimeProvider,{...m,useSSOFlow:!0,ssoConfig:d,ssoLogoutMode:SSO_LOGOUT_MODE,autoRestore:s,children:jsxRuntimeExports.jsx(BootstrapWatcher,{watchIframeGuest:!0})}):jsxRuntimeExports.jsx(IframeRuntimeProvider,{...m,children:jsxRuntimeExports.jsx(BootstrapWatcher,{watchIframeGuest:!0})})},resolveRenderTarget=({host:e,isolate:s})=>{if(!s)return{reactRoot:e,wrap:d=>d};const _=createShellShadow({host:e,styleSheetTexts:collectShadowStyleSheets()});adoptChunkStyleSheets({shadowRoot:_.shadowRoot,hrefs:Array.from(document.querySelectorAll('link[rel="stylesheet"]'),d=>d.href),chunkName:MONETIZATION_CHUNK_NAME,fetchText:async({href:d})=>{const m=await fetch(d);if(!m.ok)throw new Error(`${m.status} ${d}`);return m.text()},transform:rescopeToShadow}).catch(d=>Logger.error(LogMessage.shadowStylesheetAdoptFailed,d));const u=createShadowJss({insertionPoint:_.jssInsertionPoint,hostDocument:document});return{reactRoot:_.reactRoot,miniappPortalTarget:_.miniappLightRoot,wrap:d=>jsxRuntimeExports.jsx(JssProvider,{jss:u,children:jsxRuntimeExports.jsx(PortalProvider,{container:_.overlayRoot,children:d})})}},mount=async()=>{performance.mark(PerformanceMark.entryStart);const e=document.getElementById(EMBEDDED_HOST_ELEMENT_ID);if(!e)throw new Error(`#${EMBEDDED_HOST_ELEMENT_ID} element not found`);const s=document.getElementById(ROOT_ELEMENT_ID);try{const _=await readShellConfiguration();Logger.log(`Starting shell for ${_.packageId} v${_.appVersion} with ${_.pulseApp} as Pulse app`),_.prerender||persistThemeCookie();const u=!!_.isolate&&!_.prerender&&_.renderMode!==RenderMode.Iframe,d=resolveHeadCssAction({suppressed:isHeadCssSuppressed(),isolate:u});d===HeadCssAction.Restore&&restoreHeadStyleSheets({cssTexts:collectSuppressedStyleSheets()}),d===HeadCssAction.Remove&&removeRestoredHeadStyleSheets();const m=resolveRenderTarget({host:e,isolate:u}),g=resolveSsoAutoRestore({cookieHeader:document.cookie});if(_.renderMode===RenderMode.Iframe){clientExports.createRoot(m.reactRoot).render(m.wrap(jsxRuntimeExports.jsx(IframeApplication,{configuration:_,ssoAutoRestore:g,miniappPortalTarget:m.miniappPortalTarget}))),performance.mark(PerformanceMark.reactMounted);return}const b=await loadMiniappStarter({packageId:_.packageId,deploymentUrl:_.deploymentUrl,exposedModule:_.exp
17osedModule});performance.mark(PerformanceMark.federationLoaded),clientExports.createRoot(m.reactRoot).render(m.wrap(jsxRuntimeExports.jsx(ShellApplication,{configuration:_,starter:b,ssoAutoRestore:g,miniappPortalTarget:m.miniappPortalTarget}))),performance.mark(PerformanceMark.reactMounted)}catch(_){Logger.error(LogMessage.loadFailure,_),s&&(s.style.display="flex",s.style.alignItems="center",s.style.justifyContent="center",s.style.color="var(--texts-base, #fff)",s.textContent=`Failed to load miniapp: ${String(_)}`)}};mount();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.