PageSourceSearch

https://app.loomic.io/_next/static/chunks/a0bd7176bea4c203.js

js loomic.io collected 2026-10-02 01:58:19 UTC 32,276 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,755838,(e,t,r)=>{"use strict";var n=e.r(271645),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,o=n.useEffect,s=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return s(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),o(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(r),r};r.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},802239,(e,t,r)=>{"use strict";t.exports=e.r(755838)},283599,e=>{"use strict";var t=e.i(271645),r=e.i(802239),n=e.i(673560),n=n,i=n,a=n,o=n,s=e.i(271235),l=n,u=n,c=n,d=n,f=n,g=n,p=n,m=n,h=n,y=e.i(211671),y=y,w=n,v=n,b=n,_=n,E=n;let S=()=>{},O=S(),L=(new WeakMap,t.default.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}})),T={dedupe:!0},R=Promise.resolve(n.U),C=i.O.defineProperty(a.g,"defaultValue",{value:o.d}),A=(0,s.withArgs)((e,i,a)=>{let{cache:o,compare:S,suspense:O,fallbackData:C,revalidateOnMount:A,revalidateIfStale:P,refreshInterval:I,refreshWhenHidden:j,refreshWhenOffline:N,keepPreviousData:x,strictServerPrefetchWarning:k}=a,[U,B,D,M]=l.b.get(o),[V,F]=(0,u.s)(e),z=(0,t.useRef)(!1),W=(0,t.useRef)(!1),G=(0,t.useRef)(V),H=(0,t.useRef)(i),$=(0,t.useRef)(a),J=()=>$.current.isVisible()&&$.current.isOnline(),[K,Y,q,X]=(0,c.z)(o,V),Q=(0,t.useRef)({}).current,Z=(0,d.e)(C)?(0,d.e)(a.fallback)?n.U:a.fallback[V]:C,ee=(e,t)=>{for(let r in Q)if("data"===r){if(!S(e[r],t[r])&&(!(0,d.e)(e[r])||!S(eu,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},et=(0,t.useMemo)(()=>{let e=!!V&&!!i&&((0,d.e)(A)?!$.current.isPaused()&&!O&&!1!==P:A),t=t=>{let r=(0,E.m)(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},r=K(),n=X(),a=t(r),o=r===n?a:t(n),s=a;return[()=>{let e=t(K());return ee(e,s)?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>o]},[o,V]),er=(0,r.useSyncExternalStore)((0,t.useCallback)(e=>q(V,(t,r)=>{ee(r,t)||e()}),[o,V]),et[0],et[1]),en=!z.current,ei=U[V]&&U[V].length>0,ea=er.data,eo=(0,d.e)(ea)?Z&&(0,f.B)(Z)?L(Z):Z:ea,es=er.error,el=(0,t.useRef)(eo),eu=x?(0,d.e)(ea)?(0,d.e)(el.current)?eo:el.current:ea:eo,ec=V&&(0,d.e)(eo),ed=!g.r&&(0,r.useSyncExternalStore)(()=>p.A,()=>!1,()=>!0);k&&ed&&!O&&ec&&console.warn(`Missing pre-initiated data for serialized key "${V}" during server-side rendering. Data fethcing should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);let ef=(!ei||!!(0,d.e)(es))&&(en&&!(0,d.e)(A)?A:!$.current.isPaused()&&(O?!(0,d.e)(eo)&&P:(0,d.e)(eo)||P)),eg=!!(V&&i&&en&&ef),ep=(0,d.e)(er.isValidating)?eg:er.isValidating,em=(0,d.e)(er.isLoading)?eg:er.isLoading,eh=(0,t.useCallback)(async e=>{let t,r,i=H.current;if(!V||!i||W.current||$.current.isPaused())return!1;let o=!0,s=e||{},l=!D[V]||!s.dedupe,u=()=>_.I?!W.current&&V===G.current&&z.current:V===G.current,c={isValidating:!1,isLoading:!1},f=()=>{Y(c)},g=()=>{let e=D[V];e&&e[1]===r&&delete D[V]},p={isValidating:!0};(0,d.e)(K().data)&&(p.isLoading=!0);try{if(l&&(Y(p),a.loadingTimeout&&(0,d.e)(K().data)&&setTimeout(()=>{o&&u()&&$.current.onLoadingSlow(V,a)},a.loadingTimeout),D[V]=[i(F),(0,m.o)()]),[t,r]=D[V],t=await t,l&&setTimeout(g,a.dedupingInterval),!D[V]||D[V][1]!==r)return l&&u()&&$.current.onDiscarded(V),!1;c.error=n.U;let e=B[V];if(!(0,d.e)(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return f(),l&&u()&&$.current.onDiscarded(V),!1;let s=K().data;c.data=S(s,t)?s:t,l&&u()&&$.current.onSuccess(t,V,a)}catch(r){g();let e=$.current,{shouldRetryOnError:t}=e;
1!e.isPaused()&&(c.error=r,l&&u()&&(e.onError(r,V,e),(!0===t||(0,h.a)(t)&&t(r))&&(!$.current.revalidateOnFocus||!$.current.revalidateOnReconnect||J())&&e.onErrorRetry(r,V,e,e=>{let t=U[V];t&&t[0]&&t[0](y.ERROR_REVALIDATE_EVENT,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return o=!1,f(),!0},[V,o]),ey=(0,t.useCallback)((...e)=>(0,w.n)(o,G.current,...e),[]);if((0,v.u)(()=>{H.current=i,$.current=a,(0,d.e)(ea)||(el.current=ea)}),(0,v.u)(()=>{if(!V)return;let e=eh.bind(n.U,T),t=0;$.current.revalidateOnFocus&&(t=Date.now()+$.current.focusThrottleInterval);let r=(0,s.subscribeCallback)(V,U,(r,n={})=>{if(r==y.FOCUS_EVENT){let r=Date.now();$.current.revalidateOnFocus&&r>t&&J()&&(t=r+$.current.focusThrottleInterval,e())}else if(r==y.RECONNECT_EVENT)$.current.revalidateOnReconnect&&J()&&e();else if(r==y.MUTATE_EVENT)return eh();else if(r==y.ERROR_REVALIDATE_EVENT)return eh(n)});return W.current=!1,G.current=V,z.current=!0,Y({_k:F}),ef&&!D[V]&&((0,d.e)(eo)||g.r?e():(0,b.t)(e)),()=>{W.current=!0,r()}},[V]),(0,v.u)(()=>{let e;function t(){let t=(0,h.a)(I)?I(K().data):I;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!K().error&&(j||$.current.isVisible())&&(N||$.current.isOnline())?eh(T).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[I,j,N,V]),(0,t.useDebugValue)(eu),O){if(!_.I&&g.r&&ec)throw Error("Fallback data is required when using Suspense in SSR.");ec&&(H.current=i,$.current=a,W.current=!1);let e=M[V];if(L(!(0,d.e)(e)&&ec?ey(e):R),!(0,d.e)(es)&&ec)throw es;let t=ec?eh(T):R;!(0,d.e)(eu)&&ec&&(t.status="fulfilled",t.value=!0),L(t)}return{mutate:ey,get data(){return Q.data=!0,eu},get error(){return Q.error=!0,es},get isValidating(){return Q.isValidating=!0,ep},get isLoading(){return Q.isLoading=!0,em}}});e.s(["SWRConfig",()=>C,"default",()=>A],283599)},839232,e=>{"use strict";let t="studio_oid";function r(){return window.localStorage.getItem(t)}function n(e){window.localStorage.setItem(t,e)}function i(){window.localStorage.removeItem(t)}e.s(["clearStudioOrganizationLocal",()=>i,"getStudioOrganizationLocal",()=>r,"setStudioOrganizationLocal",()=>n])},170586,e=>{"use strict";var t=e.i(843476),r=e.i(500932),n=e.i(811734),i=e.i(343794),a=e.i(271645);let o={primary:"bg-base-foreground text-base-background hover:bg-base-foreground
1/85",secondary:"bg-secondary-background text-secondary-foreground hover:bg-secondary-background/85",primaryBlue:"bg-primary-background text-white hover:bg-primary-light/85",outline:"bg-white/0 border border-input-ring text-base-foreground hover:bg-base-foreground/5"};function s(e){let s,l,u,c,d,f,g,p,m,h,y,w,v,b,_,E,S,O=(0,r.c)(41);O[0]!==e?({children:l,color:p,icon:c,iconPosition:m,className:u,onClick:f,iconClassName:d,as:s,disabled:h,...g}=e,O[0]=e,O[1]=s,O[2]=l,O[3]=u,O[4]=c,O[5]=d,O[6]=f,O[7]=g,O[8]=p,O[9]=m,O[10]=h):(s=O[1],l=O[2],u=O[3],c=O[4],d=O[5],f=O[6],g=O[7],p=O[8],m=O[9],h=O[10]);let L=void 0===p?"primary":p,T=void 0===m?"left":m,R=void 0!==h&&h,[C,A]=(0,a.useState)(!1);O[11]!==R||O[12]!==f?(y=async e=>{if(R||f&&"function"==typeof f){if(R)return;let t=f?.(e);if(t instanceof Promise){A(!0);try{await t}catch(e){}A(!1)}}},O[11]=R,O[12]=f,O[13]=y):y=O[13];let P=y,I=s||"button",j=c,N=o[L],x=!R;O[14]!==u||O[15]!==R||O[16]!==N||O[17]!==x?(w=(0,i.default)("inline-flex w-fit items-center justify-center gap-1.5 rounded-lg px-3 py-2 text-sm font-medium whitespace-nowrap select-none",N,{"cursor-pointer":x,"cursor-not-allowed opacity-50":R},u),O[14]=u,O[15]=R,O[16]=N,O[17]=x,O[18]=w):w=O[18];let k=R||C;O[19]!==j||O[20]!==d||O[21]!==T?(v=j&&"left"===T&&(0,t.jsx)(j,{className:d||"h-4 w-4"}),O[19]=j,O[20]=d,O[21]=T,O[22]=v):v=O[22];let U=!C&&l;return O[23]!==C?(b=C&&(0,t.jsx)(n.default,{className:"mr-2.5 size-4"}),O[23]=C,O[24]=b):b=O[24],O[25]!==U||O[26]!==b?(_=(0,t.jsxs)("div",{className:"h-fit",children:[U,b]}),O[25]=U,O[26]=b,O[27]=_):_=O[27],O[28]!==j||O[29]!==d||O[30]!==T?(E=j&&"right"===T&&(0,t.jsx)(j,{className:d||"h-4 w-4"}),O[28]=j,O[29]=d,O[30]=T,O[31]=E):E=O[31],O[32]!==I||O[33]!==P||O[34]!==g||O[35]!==_||O[36]!==E||O[37]!==w||O[38]!==k||O[39]!==v?(S=(0,t.jsxs)(I,{className:w,onClick:P,disabled:k,...g,children:[v,_,E]}),O[32]=I,O[33]=P,O[34]=g,O[35]=_,O[36]=E,O[37]=w,O[38]=k,O[39]=v,O[40]=S):S=O[40],S}e.s(["default",()=>s])},744705,e=>{"use strict";e.s(["routing",0,{locales:["en-US","zh-TW","ja-JP","ko-KR"],defaultLocale:"en-US"}],744705)},679474,(e,t,r)=>{"use strict";var n=e.r(271645).__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;r.c=function(e){return n.H.useMemoCache(e)}},500932,(e,t,r)=>{"use strict";t.exports=e.r(679474)},948148,e=>{"use strict";var t=e.i(861745);function r(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let n=r(0,t.useTranslations),i=r(0,t.useFormatter);e.s(["useFormatter",()=>i,"useTranslations",()=>n])},343794,(e,t,r)=>{!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var a=arguments[t];a&&(e=i(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var a in e)r.call(e,a)&&e[a]&&(t=i(t,a));return t}(a)))}return e}function i(e,t){return t?e?e+" "+t:e+t:e}if(t.exports)n.default=n,t.exports=n;else if("function"==typeof define&&"object"==typeof define.amd&&define.amd)void 0!==n&&e.v(n);else window.classNames=n}()},791768,e=>{"use strict";var t=e.i(247167);let r=(e,t)=>e?.replace(/\/+$/,"")??t,n=r("https://space.loomic.io",""),i=r("https://support.loomic.io",""),a=r("https://loomic.io","https://loomic.io"),o=r("https://app.loomic.io",""),s="true"===t.default.env.NEXT_PUBLIC_REGION_BUBBLE_ENABLED,l="true"===t.default.env.NEXT_PUBLIC_ARCHIVE_IMPORT_ENABLED;e.s(["PUBLIC_ALLOW_SELF_CREATE_ORGANIZATION",0,!1,"PUBLIC_API_BASE_URL",0,"https://api.loomic.io","PUBLIC_APP_BASE_URL",0,o,"PUBLIC_ARCHIVE_IMPORT_ENABLED",0,l,"PUBLIC_ASSET_LIBRARY_ENABLED",0,!0,"PUBLIC_CLONE_STAMP_ENABLED",0,!0,"PUBLIC_COMMENTS_ENABLED",0,!1,"PUBLIC_LAYER_CLIP_TRANSFORM_ENABLED",0,!0,"PUBLIC_LAYER_FOLDER_CREATE_ENABLED",0,!1,"PUBLIC_MAINTENANCE_CONFIG_KEY",0,"maintenance_window_prod","PUBLIC_MAIN_SITE_URL",0,a,"PUBLIC_REGION_BUBBLE_ENABLED",0,s,"PUBLIC_STRIPE_PUBLISHABLE_KEY",0,"pk_live_51REv7i09GAx3wSd2FTvJyqDPwwz03Ki0yfVAByZxLdRwqJb3rpsDe9mBu4g1z5OQsBCUUv2AheWK5vjMtJnnv11z00yBpaha9V","PUBLIC_STUDIO_BASE_URL",0,n,"PUBLIC_SUPPORT_BASE_URL",0,i,"PUBLIC_TEXT_MASK_ENABLED",0,!1])},768834,408155,e=>{"use strict";var t=e.i(271645);let r=e=>{let t,r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,a={setState:n,getState:i,getInitialState:()=>o,subscribe:e=>(r.add(e),()=>r.delete(e))},o=t=e(n,i,a);return a},n=e=>e?r(e):r;e.s(["createStore",()=>n],408155);let i=e=>e;function a(e,r=i){let n=t.default.useSyncExternalStore(e.subscribe,t.default.useCallback(()=>r(e.getState()),[e,r]),t.default.useCallback(()=>r(e.getInitialState()),[e,r]));return t.default.useDebugValue(n),n}let o=e=>{let t=n(e),r=e=>a(t,e);return Object.assign(r,t),r},s=e=>e?o(e):o;e.s(["create",()=>s,"useStore",()=>a],768834)},605930,254478,376743,553513,e=>{"use strict";e.i(247167);var t=e.i(791768),r=e.i(278122);e.i(658348),e.i(256151);var n=e.i(744705);let i=n.routing.defaultLocale;function a(e){var t;t=n.routing.locales,i=t.includes(e)?e:n.routing.defaultLocale}function o(){if("u">typeof document){var e;let t=document.documentElement.lang;if(e=n.routing.locales,e.includes(t))return t}return i}e.s(["getCurrentLocale",()=>o,"setCurrentLocale",()=>
1a],254478);let s="upload_network_error",l="upload_stalled",u="insufficient_credit",c="member_credit_limit_exceeded";e.s(["INSUFFICIENT_CREDIT_RESULT_CODE",0,u,"MEMBER_CREDIT_LIMIT_EXCEEDED_RESULT_CODE",0,c,"UPLOAD_NETWORK_ERROR_CODE",0,s,"UPLOAD_STALLED_CODE",0,l],376743);let d=(0,e.i(768834).create)(e=>({show:!1,reason:u,open:t=>e({show:!0,reason:t}),close:()=>e({show:!1})}));function f(e){d.getState().open(e)}e.s(["creditBlockedStore",0,d,"showCreditBlockedDialog",()=>f],553513);class g{async getAccessToken(){let e=r.auth?.currentUser;if(!e)return null;try{return await e.getIdToken()}catch(e){return console.error("Error getting Firebase token:",e),null}}async fetch(e,r,n,i={}){let a,s=await this.getAccessToken();s&&(i.Authorization=`Bearer ${s}`),i["x-language"]=o(),!n||n instanceof FormData||(i["Content-Type"]="application/json",n=JSON.stringify(n));let l=await fetch(t.PUBLIC_API_BASE_URL+r,{method:e,headers:i,body:n,credentials:"include"});if(401===l.status)return{isSuccess:!1,status:401,errorMessage:"Unauthorized"};a=l.headers.get("Content-Type")?.includes("application/json")?await l.json():await l.text();let u=this.getErrorMessage(l,a);return{isSuccess:l.ok,status:l.status,data:a,errorMessage:u,errorHandled:this.handleCreditBlocked(r,u)}}handleCreditBlocked(e,t){return!!e.startsWith("/studio/")&&(t===u||t===c)&&(f(t),!0)}getErrorMessage(e,t){return e.ok?void 0:"object"!=typeof t||null===t?(console.log("Unexpected error response body:",t),"unknown_error"):t.result_code?"data_validation_failed"!==t.result_code?t.result_code:t.validation_failed_responses?.[0]?.result_code??"data_validation_failed":(console.log("Error response missing result_code:",t),"unknown_error")}async get(e,t={}){return this.fetch("GET",e,void 0,t)}async post(e,t,r={}){return this.fetch("POST",e,t,r)}async postWithProgress(e,r,n,i){let a=await this.getAccessToken();a&&(n.Authorization=`Bearer ${a}`),n["x-language"]=o();let u=new XMLHttpRequest,c=await new Promise(a=>{let o,s=e=>{clearTimeout(o),a(e)},l=()=>{clearTimeout(o),o=setTimeout(()=>{s("stalled"),u.abort()},12e4)};for(let[r,i]of(u.open("POST",t.PUBLIC_API_BASE_URL+e),u.withCredentials=!0,Object.entries(n)))u.setRequestHeader(r,i);u.upload.onprogress=e=>{l(),e.lengthComputable&&e.total>0&&i(Math.min(1,e.loaded/e.total))},u.upload.onload=()=>{l(),i(1)},u.onload=()=>s("loaded"),u.onerror=()=>s("network"),l(),u.send(r)});if("loaded"!==c||u.status<200||u.status>599)return{isSuccess:!1,status:0,errorMessage:"stalled"===c?l:s};if(401===u.status)return{isSuccess:!1,status:401,errorMessage:"Unauthorized"};let d=u.responseText;if(u.getResponseHeader("Content-Type")?.includes("application/json"))try{d=JSON.parse(u.responseText)}catch{}let f=this.getErrorMessage(new Response(null,{status:u.status}),d);return{isSuccess:u.status>=200&&u.status<300,status:u.status,data:d,errorMessage:f,errorHandled:this.handleCreditBlocked(e,f)}}async put(e,t,r={}){return this.fetch("PUT",e,t,r)}async patch(e,t,r={}){return this.fetch("PATCH",e,t,r)}async delete(e,t,r={}){return this.fetch("DELETE",e,t,r)}async getRecaptchaToken(e){if(!await this.waitForRecaptcha())throw Error("reCAPTCHA not loaded");return new Promise((t,r)=>{window.grecaptcha.enterprise.ready(async()=>{try{let r=await window.grecaptcha.enterprise.execute("6LeWTUQrAAAAANegkUg_MtXSHFXhCNadYzKBzbj1",{action:e});t(r)}catch(e){r(e)}})})}waitForRecaptcha(e=1e4){return window.grecaptcha?.enterprise?Promise.resolve(!0):new Promise(t=>{let r=Date.now(),n=setInterval(()=>{window.grecaptcha?.enterprise?(clearInterval(n),t(!0)):Date.now()-r>=e&&(clearInterval(n),t(!1))},100)})}}e.s(["API",()=>g],605930)},346944,e=>{"use strict";var t=e.i(271645);let r=(e,t)=>{let r=e instanceof Map?e:new Map(e.entries()),n=t instanceof Map?t:new Map(t.entries());if(r.size!==n.size)return!1;for(let[e,t]of r)if(!Object.is(t,n.get(e)))return!1;return!0};function n(e){let n=t.default.useRef(void 0);return t=>{let i=e(t);return!function(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;if(Symbol.iterator in e&&Symbol.iterator in t){if("entries"in e&&"entries"in t)return r(e,t);let n=e[Symbol.iterator](),i=t[Symbol.iterator](),a=n.next(),o=i.next();for(;!a.done&&!o.done;){if(!Object.is(a.value,o.value))return!1;a=n.next(),o=i.next()}return!!a.done&&!!o.done}return r({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}(n.current,i)?n.current=i:n.current}}e.s(["useShallow",()=>n],346944)},940141,e=>{"use strict";var t=e.i(271645),r={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},n=t.default.createContext&&t.default.createContext(r),i=["attr","size","title"];function a(){return(a=Object.assign.bind()).apply(this,arguments)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?o(Object(r),!0).forEach(function(t){var n,i,a;n=e,i=t,a=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e){return r=>t.default.createElement(u,a({attr:s({},e.attr)},r),function e(r){return r&&r.map((r,n)=>t.default.createElement(r.tag,s({key:n},r.attr),e(r.child)))}(e.child))}function u(e){var o=r=>{var n,{attr:o,size:l,title:u}=e,c=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,i),d=l||r.size||"1em";return r.className&&(n=r.className),e.className&&(n=(n?n+" ":"")+e.className),t.default.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,o,c,{className:n,style:s(s({color:e.color||r.color},r.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),u&&t.default.createElement("title",null,u),e.children)};return void 0!==n?t.default.createElement(n.Consumer,null,e=>o(e)):o(r)}e.s(["GenIcon",()=>l],940141)},957426,486e3,e=>{"use strict";var t=e.i(843476),r=e.i(500932),n=e.i(343794);function i(e){let i,a,o,s,l,u=(0,r.c)(15),{label:c,labelIcon:d,loading:f,className:g,children:p}=e,m=void 0!==f&&f;return u[0]!==g?(i=(0,n.default)("flex w-full flex-col gap-1.5",g),u[0]=g,u[1]=i):i=u[1],u[2]!==d||u[3]!==c||u[4]!==m?(a=c&&(0,t.jsxs)("div",{className:"flex items-center gap-1 select-none",children:[d&&(0,t.jsx)("div",{className:"size-4",children:m?(0,t.jsx)("div",{className:"bg-skeleton-background h-full w-full animate-pulse rounded"}):(0,t.jsx)(d,{className:"text-base-foreground h-full w-full"})}),(0,t.jsx)("span",{className:"text-base-foreground text-sm font-medium",children:m?(0,t.jsx)("div",{className:"bg-skeleton-background h-4 w-16 animate-pulse rounded"}):c})]}),u[2]=d,u[3]=c,u[4]=m,u[5]=a):a=u[5],u[6]!==p||u[7]!==m?(o=m?(0,t.jsx)("div",{className:"bg-skeleton-background h-9 w-full animate-pulse rounded-lg"}):p,u[6]=p,u[7]=m,u[8]=o):o=u[8],u[9]!==o?(s=(0,t.jsx)("div",{className:"relative",children:o}),u[9]=o,u[10]=s):s=u[10],u[11]!==i||u[12]!==a||u[13]!==s?(l=(0,t.jsxs)("div",{className:i,children:[a,s]}),u[11]=i,u[12]=a,u[13]=s,u[14]=l):l=u[14],l}let a=(0,n.default)("border border-input-ring","h-9 w-full rounded-lg bg-input-background py-1 pl-3 font-normal","text-base-foreground text-sm","placeholder:text-muted-foreground","outline-none disabled:cursor-not-allowed disabled:opacity-50");function o(e){let o,s,l,u,c,d,f=(0,r.c)(22),{label:g,labelIcon:p,value:m,onChange:h,placeholder:y,iconButton:w,disabled:v,loading:b,className:_,type:E}=e,S=void 0===m?"":m,O=void 0!==v&&v,L=void 0!==b&&b,T=void 0===E?"text":E;f[0]!==h?(o=e=>{h?.(e.target.value)},f[0]=h,f[1]=o):o=f[1];let R=o;return f[2]!==w?(s=(0,n.default)(a,"placeholder:select-none",{"pr-10":w}),f[2]=w,f[3]=s):s=f[3],f[4]!==O||f[5]!==R||f[6]!==y||f[7]!==s||f[8]!==T||f[9]!==S?(l=(0,t.jsx)("input",{type:T,value:S,onChange:R,placeholder:y,disabled:O,className:s}),f[4]=O,f[5]=R,f[6]=y,f[7]=s,f[8]=T,f[9]=S,f[10]=l):l=f[10],f[11]!==w?(u=w&&(0,t.jsx)("div",{className:"absolute top-1/2 right-3 -translate-y-1/2",children:w}),f[11]=w,f[12]=u):u=f[12],f[13]!==l||f[14]!==u?(c=(0,t.jsxs)(t.Fragment,{children:[l,u]}),f[13]=l,f[14]=u,f[15]=c):c=f[15],f[16]!==p||f[17]!==_||f[18]!==g||f[19]!==L||f[20]!==c?(d=(0,t.jsx)(i,{label:g,labelIcon:p,loading:L,className:_,children:c}),f[16]=p,f[17]=_,f[18]=g,f[19]=L,f[20]=c,f[21]=d):d=f[21],d}e.s(["InputBasicClassName",0,a,"default",()=>i],486e3),e.s(["default",()=>o],957426)},153303,873242,e=>{"use strict";var t=e.i(278122);let r="lm_first_touch",n=["google.","yandex.","bing.com","search.yahoo.com","search.yahoo.co.jp","duckduckgo.com","baidu.com","ecosia.org"],i=["chatgpt.com","chat.openai.com","perplexity.ai","gemini.google.com","claude.ai","copilot.microsoft.com"],a=/^[a-z]{2,3}(\.[a-z]{2})?$/;function o(e,t){let r=e.startsWith("www.")?e.slice(4):e;return t.some(e=>e.endsWith(".")?r.startsWith(e)&&a.test(r.slice(e.length)):r===e||r.endsWith("."+e))}function s(){try{let e=window.localStorage.getItem(r);if(!e)return null;let t=JSON.parse(e);if("object"!=typeof t||null===t||"string"!=typeof t.source||"string"!=typeof t.medium||"string"!=typeof t.landingPath)return null;return{source:t.source,medium:t.medium,campaign:"string"==typeof t.campaign?t.campaign:null,landingPath:t.landingPath}}catch{return null}}function l(e){try{window.localStorage.setItem(r,JSON.stringify(e))}catch{}}function u(){let e=s();if(e)return e;let t=new URLSearchParams(window.location.search),r=t.get("lm_src");if(r){let e={source:r,medium:t.get("lm_med")||"(not set)",campaign:t.get("lm_cmp"),landingPath:t.get("lm_lp")||window.location.pathname};return l(e),e}let a=function(e){if(!e)return{source:"(direct)",medium:"(none)"};let t="";try{t=new URL(e).hostname.toLowerCase()}catch{return{source:"(direct)",medium:"(none)"}}return t===window.location.hostname?{source:"(direct)",medium:"(none)"}:o(t,i)?{source:t,medium:"ai-assistant"}:o(t,n)?{source:t,medium:"organic"}:{source:t,medium:"referral"}}(document.referrer),u={source:a.source,medium:a.medium,campaign:null,landingPath:window.location.pathname};return l(u),u}function c(){return s()}e.s(["captureFirstTouch",()=>u,"getFirstTouch",()=>c],873242),e.i(646012);var d=e.i(950239);function f(e){t.analytics&&(0,d.logEvent)(t.analytics,"login",{method:e})}function g(e){if(!t.analytics)return;let r={method:e},n=c();n&&(r.lm_src=n.source,r.lm_med=n.medium,r.lm_lp=n.landingPath,n.campaign&&(r.lm_cmp=n.campaign)),(0,d.logEvent)(t.analytics,"sign_up",r)}function p(e){t.analytics&&(0,d.logEvent)(t.analytics,"share",e)}function m(e){t.analytics&&(0,d.logEvent)(t.analytics,"view_manga",e)}e.s(["trackGaLogin",()=>f,"trackGaShare",()=>p,"trackGaSignUp",()=>g,"trackGaViewManga",()=>m],153303)},439905,387371,e=>{"use strict";var t=e.i(843476),r=e.i(500932),n=e.i(278122),i=e.i(873242),a=e.i(153303);e.i(646012);var o=e.i(950239);e.i(151718);var s=e.i(618357),l=e.i(271645),u=e.i(768834),c=e.i(346944),d=e.i(605930);class f extends d.API{async getMe(){let e=(0,i.getFirstTouch)(),t=new URLSearchParams;e&&(t.set("lm_src",e.source),t.set("lm_med",e.medium),t.set("lm_lp",e.landingPath),e.campaign&&t.set("lm_cmp",e.campaign));let r=t.toString();return await this.get(r?`/frontend/account/me?${r}`:"/frontend/account/me")}async getCustomToken(){return await this.get("/frontend/account/custom-token")}async updateProfile(e){return await this.put("/frontend/account/profile",e)}async updateAvatar(e){return await this.put("/frontend/account/avatar",e)}
1}e.s(["AccountAPI",()=>f],387371);var g=e.i(839232),p=e.i(677140);let m={initializing:!0,isLogin:!1,profile:null},h=(0,l.createContext)(void 0),y={"google.com":"Google","apple.com":"Apple"},w=null;function v({children:e}){return w||(w=((e=m)=>(e={...m,...e},(0,u.create)(t=>({...e,logout:async()=>{if("confirm"===await (0,p.showConfirm)({title:"profile.logout_confirm.title",description:"profile.logout_confirm.description",buttons:p.BaseConfirmButtons}))try{n.auth&&await (0,s.signOut)(n.auth),(0,g.clearStudioOrganizationLocal)(),t({profile:null,isLogin:!1}),window.location.href="/"}catch(e){console.error("Logout error:",e)}},async loadProfile(){if(!n.auth?.currentUser)return void t({profile:null});let e=new f,r=await e.getMe();r.isSuccess?t({profile:r.data}):t({profile:null})},onAuthStateChanged(e){e&&e.emailVerified?t({isLogin:!0}):t({isLogin:!1,profile:null})},setInitialized(){t({initializing:!1})}}))))()),(0,t.jsx)(h.Provider,{value:w,children:(0,t.jsx)(b,{children:e})})}function b(e){let a,u,c,d=(0,r.c)(7),{children:f}=e,{loadProfile:g,onAuthStateChanged:p,setInitialized:m}=S(O);return d[0]!==g||d[1]!==p||d[2]!==m?(a=()=>{if(!n.auth)return;(0,i.captureFirstTouch)();let e=(0,s.onAuthStateChanged)(n.auth,async e=>{p(e),n.analytics&&(0,o.setUserId)(n.analytics,e?.uid??null),e&&await g(),m()});return(0,s.getRedirectResult)(n.auth).then(E).catch(_),()=>e()},d[0]=g,d[1]=p,d[2]=m,d[3]=a):a=d[3],d[4]===Symbol.for("react.memo_cache_sentinel")?(u=[],d[4]=u):u=d[4],(0,l.useEffect)(a,u),d[5]!==f?(c=(0,t.jsx)(t.Fragment,{children:f}),d[5]=f,d[6]=c):c=d[6],c}function _(e){console.error("getRedirectResult error:",e)}function E(e){if(!e)return;let t=(0,s.getAdditionalUserInfo)(e),r=y[t?.providerId??""]??"unknown";t?.isNewUser?(0,a.trackGaSignUp)(r):(0,a.trackGaLogin)(r)}let S=e=>{let t=(0,l.useContext)(h);if(!t)throw Error("useAuthStore must be used within AuthProvider");return(0,u.useStore)(t,(0,c.useShallow)(e))};function O(e){return e}e.s(["AuthProviderWrapper",()=>v,"useAuthStore",0,S],439905)},271235,211671,673560,e=>{"use strict";var t=e.i(271645);e.s(["ERROR_REVALIDATE_EVENT",()=>3,"FOCUS_EVENT",()=>0,"MUTATE_EVENT",()=>2,"RECONNECT_EVENT",()=>1],211671);var r=Object.prototype.hasOwnProperty;let n=new WeakMap,i=()=>{},a=i(),o=Object,s=e=>e===a,l=e=>"function"==typeof e,u=(e,t)=>({...e,...t}),c=e=>l(e.then),d={},f={},g="undefined",p=typeof window!=g,m=typeof document!=g,h=p&&"Deno"in window,y=(e,t)=>{let r=n.get(e);return[()=>!s(t)&&e.get(t)||d,n=>{if(!s(t)){let i=e.get(t);t in f||(f[t]=i),r[5](t,u(i,n),i||d)}},r[6],()=>!s(t)&&t in f?f[t]:!s(t)&&e.get(t)||d]},w=!0,[v,b]=p&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[i,i],_={initFocus:e=>(m&&document.addEventListener("visibilitychange",e),v("focus",e),()=>{m&&document.removeEventListener("visibilitychange",e),b("focus",e)}),initReconnect:e=>{let t=()=>{w=!0,e()},r=()=>{w=!1};return v("online",t),v("offline",r),()=>{b("online",t),b("offline",r)}}},E=!t.default.useId,S=!p||h,O=e=>p&&typeof window.requestAnimationFrame!=g?window.requestAnimationFrame(e):setTimeout(e,1),L=S?t.useEffect:t.useLayoutEffect,T="u">typeof navigator&&navigator.connection,R=!S&&T&&(["slow-2g","2g"].includes(T.effectiveType)||T.saveData),C=new WeakMap,A=(e,t)=>e===`[object ${t}]`,P=0,I=e=>{let t,r,n=typeof e,i=o.prototype.toString.call(e),a=A(i,"Date"),l=A(i,"RegExp"),u=A(i,"Object");if(o(e)!==e||a||l)t=a?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=C.get(e))return t;if(t=++P+"~",C.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=I(e[r])+",";C.set(e,t)}if(u){t="#";let n=o.keys(e).sort();for(;!s(r=n.pop());)s(e[r])||(t+=r+":"+I(e[r])+",");C.set(e,t)}}return t},j=e=>{if(l(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?I(e):"",t]},N=0,x=()=>++N;async function k(...e){let[t,r,i,o]=e,d=u({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{}),f=d.populateCache,g=d.rollbackOnError,p=d.optimisticData,m=d.throwOnError;if(l(r)){let e=[];for(let n of t.keys())!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n);return Promise.all(e.map(h))}return h(r);async function h(r){let o,[u]=j(r);if(!u)return;let[h,w]=y(t,u),[v,b,_,E]=n.get(t),S=()=>{let e=v[u];return(l(d.revalidate)?d.revalidate(h().data,r):!1!==d.revalidate)&&(delete _[u],delete E[u],e&&e[0])?e[0](2).then(()=>h().data):h().data};if(e.length<3)return S();let O=i,L=!1,T=x();b[u]=[T,0];let R=!s(p),C=h(),A=C.data,P=C._c,I=s(P)?A:P;if(R&&w({data:p=l(p)?p(I,A):p,_c:I}),l(O))try{O=O(I)}catch(e){o=e,L=!0}if(O&&c(O)){let e;if(O=await O.catch(e=>{o=e,L=!0}),T!==b[u][0]){if(L)throw o;return O}L&&R&&(e=o,"function"==typeof g?g(e):!1!==g)&&(f=!0,w({data:I,_c:a}))}if(f&&!L&&(l(f)?w({data:f(O,I),error:a,_c:a}):w({data:O,error:a,_c:a})),b[u][1]=x(),Promise.resolve(S()).then(()=>{w({_c:a})}),L){if(m)throw o;return}return O}}let U=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},B=(e,t)=>{if(!n.has(e)){let r=u(_,t),o=Object.create(null),s=k.bind(a,e),l=i,c=Object.create(null),d=(e,t)=>{let r=c[e]||[];return c[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},f=(t,r,n)=>{e.set(t,r);let i=c[t];if(i)for(let e of i)e(r,n)},g=()=>{if(!n.has(e)&&(n.set(e,[o,Object.create(null),Object.create(null),Object.create(null),s,f,d
1]),!S)){let t=r.initFocus(setTimeout.bind(a,U.bind(a,o,0))),i=r.initReconnect(setTimeout.bind(a,U.bind(a,o,1)));l=()=>{t&&t(),i&&i(),n.delete(e)}}};return g(),[e,s,g,l]}return[e,n.get(e)[4]]},[D,M]=B(new Map),V=u({onLoadingSlow:i,onSuccess:i,onError:i,onErrorRetry:(e,t,r,n,i)=>{let a=r.errorRetryCount,o=i.retryCount,l=~~((Math.random()+.5)*(1<<(o<8?o:8)))*r.errorRetryInterval;(s(a)||!(o>a))&&setTimeout(n,l,i)},onDiscarded:i,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:R?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:R?5e3:3e3,compare:function e(t,n){var i,a;if(t===n)return!0;if(t&&n&&(i=t.constructor)===n.constructor){if(i===Date)return t.getTime()===n.getTime();if(i===RegExp)return t.toString()===n.toString();if(i===Array){if((a=t.length)===n.length)for(;a--&&e(t[a],n[a]););return -1===a}if(!i||"object"==typeof t){for(i in a=0,t)if(r.call(t,i)&&++a&&!r.call(n,i)||!(i in n)||!e(t[i],n[i]))return!1;return Object.keys(n).length===a}}return t!=t&&n!=n},isPaused:()=>!1,cache:D,mutate:M,fallback:{}},{isOnline:()=>w,isVisible:()=>{let e=m&&document.visibilityState;return s(e)||"hidden"!==e}}),F=(e,t)=>{let r=u(e,t);if(t){let{use:n,fallback:i}=e,{use:a,fallback:o}=t;n&&a&&(r.use=n.concat(a)),i&&o&&(r.fallback=u(i,o))}return r},z=(0,t.createContext)({}),W=e=>{let{value:r}=e,n=(0,t.useContext)(z),i=l(r),o=(0,t.useMemo)(()=>i?r(n):r,[i,n,r]),s=(0,t.useMemo)(()=>i?o:F(n,o),[i,n,o]),c=o&&o.provider,d=(0,t.useRef)(a);c&&!d.current&&(d.current=B(c(s.cache||D),o));let f=d.current;return f&&(s.cache=f[0],s.mutate=f[1]),L(()=>{if(f)return f[2]&&f[2](),f[3]},[]),(0,t.createElement)(z.Provider,u(e,{value:s}))};e.s(["A",()=>i,"B",()=>c,"I",()=>E,"O",()=>o,"S",()=>z,"U",()=>a,"a",()=>l,"b",()=>n,"c",()=>D,"d",()=>V,"e",()=>s,"f",()=>F,"g",()=>W,"i",()=>p,"m",()=>u,"n",()=>k,"o",()=>x,"r",()=>S,"s",()=>j,"t",()=>O,"u",()=>L,"z",()=>y],673560),e.i(211671);let G=p&&window.__SWR_DEVTOOLS_USE__,H=G?window.__SWR_DEVTOOLS_USE__:[],$=()=>{let e=(0,t.useContext)(z);return(0,t.useMemo)(()=>u(V,e),[e])},J=H.concat(e=>(t,r,i)=>{let a=r&&((...e)=>{let[i]=j(t),[,,,a]=n.get(D);if(i.startsWith("$inf$"))return r(...e);let o=a[i];return s(o)?r(...e):(delete a[i],o)});return e(t,a,i)}),K=e=>function(...t){let r=$(),[n,i,a]=l(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(null===t[1]?t[2]:t[1])||{}],o=F(r,a),s=e,{use:u}=o,c=(u||[]).concat(J);for(let e=c.length;e--;)s=c[e](s);return s(n,i||o.fetcher||null,o)},Y=(e,t,r)=>{let n=t[e]||(t[e]=[]);return n.push(r),()=>{let e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}};G&&(window.__SWR_DEVTOOLS_REACT__=t.default),e.s(["subscribeCallback",()=>Y,"useSWRConfig",()=>$,"withArgs",()=>K],271235)}]);

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.