*/var Rp;function ww(){if(Rp)return Ze;Rp=1;var r=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),d=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),x=Symbol.iterator;function w(R){return R===null||typeof R!="object"?null:(R=x&&R[x]||R["@@iterator"],typeof R=="function"?R:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,k={};function A(R,q,re){this.props=R,this.context=q,this.refs=k,this.updater=re||v}A.prototype.isReactComponent={},A.prototype.setState=function(R,q){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,q,"setState")},A.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function O(){}O.prototype=A.prototype;function N(R,q,re){this.props=R,this.context=q,this.refs=k,this.updater=re||v}var D=N.prototype=new O;D.constructor=N,S(D,A.prototype),D.isPureReactComponent=!0;var $=Array.isArray;function M(){}var z={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function ye(R,q,re){var xe=re.ref;return{$$typeof:r,type:R,key:q,ref:xe!==void 0?xe:null,props:re}}function we(R,q){return ye(R.type,q,R.props)}function J(R){return typeof R=="object"&&R!==null&&R.$$typeof===r}function ve(R){var q={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(re){returnq[re]})}varle=/\/+/g;functionde(R,q){returntypeofR=="object"&&R!==null&&R.key!=null?ve(""+R.key):q.toString(36)}functionje(R){switch(R.status){case"fulfilled":returnR.value;case"rejected":throwR.reason;default:switch(typeofR.status=="string"?R.then(M,M):(R.status="pending",R.then(function(q){R.status==="pending"&&(R.status="fulfilled",R.value=q)},function(q){R.status==="pending"&&(R.status="rejected",R.reason=q)})),R.status){case"fulfilled":returnR.value;case"rejected":throwR.reason}}throwR}functionW(R,q,re,xe,oe){varke=typeofR;(ke==="undefined"||ke==="boolean")&&(R=null);varOe=!1;if(R===null)Oe=!0;elseswitch(ke){case"bigint":case"string":case"number":Oe=!0;break;case"object":switch(R.$$typeof){caser:casee:Oe=!0;break;casep:returnOe=R._init,W(Oe(R._payload),q,re,xe,oe)}}if(Oe)returnoe=oe(R),Oe=xe===""?"."+de(R,0):xe,$(oe)?(re="",Oe!=null&&(re=Oe.replace(le,"$&/")+"/"),W(oe,q,re,"",function(Ie){returnIe})):oe!=null&&(J(oe)&&(oe=we(oe,re+(oe.key==null||R&&R.key===oe.key?"":(""+oe.key).replace(le,"$&/")+"/")+Oe)),q.push(oe)),1;Oe=0;varDe=xe===""?".":xe+":";if($(R))for(varqe=0;qe<R.length;qe++)xe=R[qe],ke=De+de(xe,qe),Oe+=W(xe,q,re,ke,oe);elseif(qe=w(R),typeofqe=="function")for(R=qe.call(R),qe=0;!(xe=R.next()).done;)xe=xe.value,ke=De+de(xe,qe++),Oe+=W(xe,q,re,ke,oe);elseif(ke==="object"){if(typeofR.then=="function")returnW(je(R),q,re,xe,oe);throwq=String(R),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}returnOe}functionhe(R,q,re){if(R==null)returnR;varxe=[],oe=0;returnW(R,xe,"","",function(ke){returnq.call(re,ke,oe++)}),xe}functionee(R){if(R._status===-1){varq=R._result;q=q(),q.then(function(re){(R._status===0||R._status===-1)&&(R._status=1,R._result=re)},function(re){(R._status===0||R._status===-1)&&(R._status=2,R._result=re)}),R._status===-1&&(R._status=0,R._result=q)}if(R._status===1)returnR._result.default;throwR._result}varX=typeofreportError=="function"?reportError:function(R){if(typeofwindow=="object"&&typeofwindow.ErrorEvent=="function"){varq=newwindow.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeofR=="object"&&R!==null&&typeofR.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(q))return}elseif(typeofprocess=="object"&&typeofprocess.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},se={map:he,forEach:function(R,q,re){he(R,function(){q.apply(this,arguments)},re)},count:function(R){varq=0;returnhe(R,function(){q++}),q},toArray:function(R){returnhe(R,function(q){returnq})||[]},only:function(R){if(!J(R))throwError("React.Children.only expected to receive a single React element child.");returnR}};returnZe.Activity=y,Ze.Children=se,Ze.Component=A,Ze.Fragment=t,Ze.Profiler=i,Ze.PureComponent=N,Ze.StrictMode=s,Ze.Suspense=h,Ze.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,Ze.__COMPILER_RUNTIME={__proto__:null,c:function(R){returnz.H.useMemoCache(R)}},Ze.cache=function(R){returnfunction(){returnR.apply(null,arguments)}},Ze.cacheSignal=function(){returnnull},Ze.cLine truncated
`).replace(s1,"")}function Pv(n,a){return a=Hv(a),Hv(n)===a}function It(n,a,c,u,m,b){switch(c){case"children":typeof u=="string"?a==="body"||a==="textarea"&&u===""||Fa(n,u):(typeof u=="number"||typeof u=="bigint")&&a!=="body"&&Fa(n,""+u);break;case"className":Ci(n,"class",u);break;case"tabIndex":Ci(n,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Ci(n,c,u);break;case"style":Xs(n,u,b);break;case"data":if(a!=="object"){Ci(n,"data",u);break}case"src":case"href":if(u===""&&(a!=="a"||c!=="href")){n.removeAttribute(c);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(c);break}u=Ni(""+u),n.setAttribute(c,u);break;case"action":case"formAction":if(typeof u=="function"){n.setAttribute(c,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof b=="function"&&(c==="formAction"?(a!=="input"&&It(n,a,"name",m.name,m,null),It(n,a,"formEncType",m.formEncType,m,null),It(n,a,"formMethod",m.formMethod,m,null),It(n,a,"formTarget",m.formTarget,m,null)):(It(n,a,"encType",m.encType,m,null),It(n,a,"method",m.method,m,null),It(n,a,"target",m.target,m,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(c);break}u=Ni(""+u),n.setAttribute(c,u);break;case"onClick":u!=null&&(n.onclick=us);break;case"onScroll":u!=null&&dt("scroll",n);break;case"onScrollEnd":u!=null&&dt("scrollend",n);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(s(61));if(c=u.__html,c!=null){if(m.children!=null)throw Error(s(60));n.innerHTML=c}}break;case"multiple":n.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":n.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){n.removeAttribute("xlink:href");break}c=Ni(""+u),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(c,""+u):n.removeAttribute(c);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(c,""):n.removeAttribute(c);break;case"capture":case"download":u===!0?n.setAttribute(c,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(c,u):n.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?n.setAttribute(c,u):n.removeAttribute(c);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?n.removeAttribute(c):n.setAttribute(c,u);break;case"popover":dt("beforetoggle",n),dt("toggle",n),Si(n,"popover",u);break;case"xlinkActuate":Ls(n,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Ls(n,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Ls(n,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Ls(n,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Ls(n,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Ls(n,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Ls(n,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Ls(n,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Ls(n,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Si(n,"is",u);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=Ch.get(c)||c,Si(n,c,u))}}function fp(n,a,c,u,m,b){switch(c){case"style":Xs(n,u,b);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(s(61));if(c=u.__html,c!=null){if(m.children!=null)throw Error(s(60));n.innerHTML=c}}break;case"children":typeof u=="string"?Fa(n,u):(typeof u=="number"||typeof u=="bigint")&&Fa(n,""+u);break;case"onScroll":u!=null&&dt("scroll",n);break;case"onScrollEnd":u!=null&&dt("scrollend",n);break;case"onClick":u!=null&&(n.onclick=us);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"inne
Line truncated
`).forEach(function(d){i=d.indexOf(":"),t=d.substring(0,i).trim().toLowerCase(),s=d.substring(i+1).trim(),!(!t||e[t]&&HS[t])&&(t==="set-cookie"?e[t]?e[t].push(s):e[t]=[s]:e[t]=e[t]?e[t]+", "+s:s)}),e},Sm=Symbol("internals");function vo(r){return r&&String(r).trim().toLowerCase()}function gc(r){return r===!1||r==null?r:ae.isArray(r)?r.map(gc):String(r)}function US(r){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=t.exec(r);)e[s[1]]=s[2];return e}const BS=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());functionng(r,e,t,s,i){if(ae.isFunction(s))returns.call(this,e,t);if(i&&(e=t),!!ae.isString(e)){if(ae.isString(s))returne.indexOf(s)!==-1;if(ae.isRegExp(s))returns.test(e)}}functionqS(r){returnr.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,s)=>t.toUpperCase()+s)}functionGS(r,e){constt=ae.toCamelCase(" "+e);["get","set","has"].forEach(s=>{Object.defineProperty(r,s+t,{value:function(i,o,d){returnthis[s].call(this,e,i,o,d)},configurable:!0})})}letLn=class{constructor(e){e&&this.set(e)}set(e,t,s){consti=this;functiono(g,h,f){constp=vo(h);if(!p)thrownewError("header name must be a non-empty string");consty=ae.findKey(i,p);(!y||i[y]===void0||f===!0||f===void0&&i[y]!==!1)&&(i[y||h]=gc(g))}constd=(g,h)=>ae.forEach(g,(f,p)=>o(f,p,h));if(ae.isPlainObject(e)||einstanceofthis.constructor)d(e,t);elseif(ae.isString(e)&&(e=e.trim())&&!BS(e))d(PS(e),t);elseif(ae.isObject(e)&&ae.isIterable(e)){letg={},h,f;for(constpofe){if(!ae.isArray(p))throwTypeError("Object iterator must return a key-value pair");g[f=p[0]]=(h=g[f])?ae.isArray(h)?[...h,p[1]]:[h,p[1]]:p[1]}d(g,t)}elsee!=null&&o(t,e,s);returnthis}get(e,t){if(e=vo(e),e){consts=ae.findKey(this,e);if(s){consti=this[s];if(!t)returni;if(t===!0)returnUS(i);if(ae.isFunction(t))returnt.call(this,i,s);if(ae.isRegExp(t))returnt.exec(i);thrownewTypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=vo(e),e){consts=ae.findKey(this,e);return!!(s&&this[s]!==void0&&(!t||ng(this,this[s],s,t)))}return!1}delete(e,t){consts=this;leti=!1;functiono(d){if(d=vo(d),d){constg=ae.findKey(s,d);g&&(!t||ng(s,s[g],g,t))&&(deletes[g],i=!0)}}returnae.isArray(e)?e.forEach(o):o(e),i}clear(e){constt=Object.keys(this);lets=t.length,i=!1;for(;s--;){consto=t[s];(!e||ng(this,this[o],o,e,!0))&&(deletethis[o],i=!0)}returni}normalize(e){constt=this,s={};returnae.forEach(this,(i,o)=>{constd=ae.findKey(s,o);if(d){t[d]=gc(i),deletet[o];return}constg=e?qS(o):String(o).trim();g!==o&&deletet[o],t[g]=gc(i),s[g]=!0}),this}concat(...e){returnthis.constructor.concat(this,...e)}toJSON(e){constt=Object.create(null);returnae.forEach(this,(s,i)=>{s!=null&&s!==!1&&(t[i]=e&&ae.isArray(s)?s.join(", "):s)}),t}[Symbol.iterator](){returnObject.entries(this.toJSON())[Symbol.iterator]()}toString(){returnObject.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
`):" "+$m(d[0]):"as no adapter specified";throw new st("There is no suitable adapter to dispatch the request "+g,"ERR_NOT_SUPPORT")}return i},adapters:ag};function rg(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new ii(null,r)}function zm(r){return rg(r),r.headers=Ln.from(r.headers),r.data=sg.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),Im.getAdapter(r.adapter||bo.adapter,r)(r).then(function(s){return rg(r),s.data=sg.call(r,r.transformResponse,s),s.headers=Ln.from(s.headers),s},function(s){return Cm(s)||(rg(r),s&&s.response&&(s.response.data=sg.call(r,r.transformResponse,s.response),s.response.headers=Ln.from(s.response.headers))),Promise.reject(s)})}const Hm="1.12.2",pc={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{pc[r]=function(s){return typeof s===r||"a"+(e<1?"n ":" ")+r}});const Pm={};pc.transitional=function(e,t,s){function i(o,d){return"[Axios v"+Hm+"] Transitional option '"+o+"'"+d+(s?". "+s:"")}return(o,d,g)=>{if(e===!1)throw new st(i(d," has been removed"+(t?" in "+t:"")),st.ERR_DEPRECATED);return t&&!Pm[d]&&(Pm[d]=!0,console.warn(i(d," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(o,d,g):!0}},pc.spelling=function(e){return(t,s)=>(console.warn(`${s}islikelyamisspellingof${e}`),!0)};function o7(r,e,t){if(typeof r!="object")throw new st("options must be an object",st.ERR_BAD_OPTION_VALUE);const s=Object.keys(r);let i=s.length;for(;i-- >0;){const o=s[i],d=e[o];if(d){const g=r[o],h=g===void 0||d(g,o,r);if(h!==!0)throw new st("option "+o+" must be "+h,st.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new st("Unknown option "+o,st.ERR_BAD_OPTION)}}const mc={assertOptions:o7,validators:pc},Us=mc.validators;let Sr=class{constructor(e){this.defaults=e||{},this.interceptors={request:new bm,response:new bm}}async request(e,t){try{return await this._request(e,t)}catch(s){if(s instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{s.stack?o&&!String(s.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(s.stack+=`
vartee=Object.defineProperty;varnee=(Gn,fo,po)=>foinGn?tee(Gn,fo,{enumerable:!0,configurable:!0,writable:!0,value:po}):Gn[fo]=po;varne=(Gn,fo,po)=>nee(Gn,typeoffo!="symbol"?fo+"":fo,po);(function(Gn){"use strict";functionfo(n,e){for(vart=0;t<e.length;t++){consts=e[t];if(typeofs!="string"&&!Array.isArray(s)){for(constrins)if(r!=="default"&&!(rinn)){consto=Object.getOwnPropertyDescriptor(s,r);o&&Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:()=>s[r]})}}}returnObject.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}functionpo(n){returnn&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}varkg={exports:{}},Et={};varSv;functioneT(){if(Sv)returnEt;Sv=1;varn=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),b=Symbol.iterator;functiony(N){returnN===null||typeofN!="object"?null:(N=b&&N[b]||N["@@iterator"],typeofN=="function"?N:null)}varv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,S={};function_(N,V,ee){this.props=N,this.context=V,this.refs=S,this.updater=ee||v}_.prototype.isReactComponent={},_.prototype.setState=function(N,V){if(typeofN!="object"&&typeofN!="function"&&N!=null)throwError("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,V,"setState")},_.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};functionA(){}A.prototype=_.prototype;functionC(N,V,ee){this.props=N,this.context=V,this.refs=S,this.updater=ee||v}varj=C.prototype=newA;j.constructor=C,x(j,_.prototype),j.isPureReactComponent=!0;varE=Array.isArray;functionT(){}varD={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;functionW(N,V,ee){varse=ee.ref;return{$$typeof:n,type:N,key:V,ref:se!==void0?se:null,props:ee}}functionz(N,V){returnW(N.type,V,N.props)}functionH(N){returntypeofN=="object"&&N!==null&&N.$$typeof===n}functionG(N){varV={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(ee){returnV[ee]})}varF=/\/+/g;functionZ(N,V){returntypeofN=="object"&&N!==null&&N.key!=null?G(""+N.key):V.toString(36)}functionY(N){switch(N.status){case"fulfilled":returnN.value;case"rejected":throwN.reason;default:switch(typeofN.status=="string"?N.then(T,T):(N.status="pending",N.then(function(V){N.status==="pending"&&(N.status="fulfilled",N.value=V)},function(V){N.status==="pending"&&(N.status="rejected",N.reason=V)})),N.status){case"fulfilled":returnN.value;case"rejected":throwN.reason}}throwN}functionU(N,V,ee,se,re){varpe=typeofN;(pe==="undefined"||pe==="boolean")&&(N=null);varje=!1;if(N===null)je=!0;elseswitch(pe){case"bigint":case"string":case"number":je=!0;break;case"object":switch(N.$$typeof){casen:casee:je=!0;break;caseg:returnje=N._init,U(je(N._payload),V,ee,se,re)}}if(je)returnre=re(N),je=se===""?"."+Z(N,0):se,E(re)?(ee="",je!=null&&(ee=je.replace(F,"$&/")+"/"),U(re,V,ee,"",function(be){returnbe})):re!=null&&(H(re)&&(re=z(re,ee+(re.key==null||N&&N.key===re.key?"":(""+re.key).replace(F,"$&/")+"/")+je)),V.push(re)),1;je=0;varme=se===""?".":se+":";if(E(N))for(varce=0;ce<N.length;ce++)se=N[ce],pe=me+Z(se,ce),je+=U(se,V,ee,pe,re);elseif(ce=y(N),typeofce=="function")for(N=ce.call(N),ce=0;!(se=N.next()).done;)se=se.value,pe=me+Z(se,ce++),je+=U(se,V,ee,pe,re);elseif(pe==="object"){if(typeofN.then=="function")returnU(Y(N),V,ee,se,re);throwV=String(N),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}returnje}functionB(N,V,ee){if(N==null)returnN;varse=[],re=0;returnU(N,se,"","",function(pe){returnV.call(ee,pe,re++)}),se}functionte(N){if(N._status===-1){varV=N._result;V=V(),V.then(function(ee){(N._status===0||N._status===-1)&&(N._status=1,N._result=ee)},function(ee){(N._status===0||N._status===-1)&&(N._status=2,N._result=ee)}),N._status===-1&&(N._status=0,N._result=V)}if(N._status===1)returnN._result.default;throwN._result}varq=typeofreportError=="function"?reportError:function(N){if(typeofwindow=="object"&&typeofwindow.ErrorEvent=="function"){varV=newwindow.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeofN=="object"&&N!==null&&typeofN.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(V))return}elseif(typeofprocess=="object"&&typeofprocess.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},M={map:B,forEach:function(N,V,ee){B(N,functioLine truncated
`).replace(SQ,"")}function bA(i,c){return c=yA(c),yA(i)===c}function un(i,c,p,m,k,R){switch(p){case"children":typeof m=="string"?c==="body"||c==="textarea"&&m===""||bt(i,m):(typeof m=="number"||typeof m=="bigint")&&c!=="body"&&bt(i,""+m);break;case"className":Eo(i,"class",m);break;case"tabIndex":Eo(i,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":Eo(i,p,m);break;case"style":gt(i,m,R);break;case"data":if(c!=="object"){Eo(i,"data",m);break}case"src":case"href":if(m===""&&(c!=="a"||p!=="href")){i.removeAttribute(p);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){i.removeAttribute(p);break}m=sn(""+m),i.setAttribute(p,m);break;case"action":case"formAction":if(typeof m=="function"){i.setAttribute(p,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof R=="function"&&(p==="formAction"?(c!=="input"&&un(i,c,"name",k.name,k,null),un(i,c,"formEncType",k.formEncType,k,null),un(i,c,"formMethod",k.formMethod,k,null),un(i,c,"formTarget",k.formTarget,k,null)):(un(i,c,"encType",k.encType,k,null),un(i,c,"method",k.method,k,null),un(i,c,"target",k.target,k,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){i.removeAttribute(p);break}m=sn(""+m),i.setAttribute(p,m);break;case"onClick":m!=null&&(i.onclick=wn);break;case"onScroll":m!=null&&zt("scroll",i);break;case"onScrollEnd":m!=null&&zt("scrollend",i);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(s(61));if(p=m.__html,p!=null){if(k.children!=null)throw Error(s(60));i.innerHTML=p}}break;case"multiple":i.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":i.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){i.removeAttribute("xlink:href");break}p=sn(""+m),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",p);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(p,""+m):i.removeAttribute(p);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":m&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(p,""):i.removeAttribute(p);break;case"capture":case"download":m===!0?i.setAttribute(p,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(p,m):i.removeAttribute(p);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?i.setAttribute(p,m):i.removeAttribute(p);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?i.removeAttribute(p):i.setAttribute(p,m);break;case"popover":zt("beforetoggle",i),zt("toggle",i),nn(i,"popover",m);break;case"xlinkActuate":Jn(i,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":Jn(i,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":Jn(i,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":Jn(i,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":Jn(i,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":Jn(i,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":Jn(i,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":Jn(i,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":Jn(i,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":nn(i,"is",m);break;case"innerText":case"textContent":break;default:(!(2<p.length)||p[0]!=="o"&&p[0]!=="O"||p[1]!=="n"&&p[1]!=="N")&&(p=Kt.get(p)||p,nn(i,p,m))}}function ov(i,c,p,m,k,R){switch(p){case"style":gt(i,m,R);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(s(61));if(p=m.__html,p!=null){if(k.children!=null)throw Error(s(60));i.innerHTML=p}}break;case"children":typeof m=="string"?bt(i,m):(typeof m=="number"||typeof m=="bigint")&&bt(i,""+m);break;case"onScroll":m!=null&&zt("scroll",i);break;case"onScrollEnd":m!=null&&zt("scrollend",i);break;case"onClick":m!=null&&(i.onclick=wn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"inne
Line truncated
`).forEach(function(l){r=l.indexOf(":"),t=l.substring(0,r).trim().toLowerCase(),s=l.substring(r+1).trim(),!(!t||e[t]&&u$[t])&&(t==="set-cookie"?e[t]?e[t].push(s):e[t]=[s]:e[t]=e[t]?e[t]+", "+s:s)}),e};function p$(n){let e=0,t=n.length;for(;e<t;){const s=n.charCodeAt(e);if(s!==9&&s!==32)break;e+=1}for(;t>e;){const s=n.charCodeAt(t-1);if(s!==9&&s!==32)break;t-=1}return e===0&&t===n.length?n:n.slice(e,t)}const g$=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),h$=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Wg(n,e){return we.isArray(n)?n.map(t=>Wg(t,e)):p$(String(n).replace(e,""))}const m$=n=>Wg(n,g$),y$=n=>Wg(n,h$);function rw(n){const e=Object.create(null);return we.forEach(n.toJSON(),(t,s)=>{e[s]=y$(t)}),e}const ow=Symbol("internals");function fc(n){return n&&String(n).trim().toLowerCase()}function gu(n){return n===!1||n==null?n:we.isArray(n)?n.map(gu):m$(String(n))}function b$(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=t.exec(n);)e[s[1]]=s[2];return e}const x$=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());functionUg(n,e,t,s,r){if(we.isFunction(s))returns.call(this,e,t);if(r&&(e=t),!!we.isString(e)){if(we.isString(s))returne.indexOf(s)!==-1;if(we.isRegExp(s))returns.test(e)}}functionv$(n){returnn.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,s)=>t.toUpperCase()+s)}functionw$(n,e){constt=we.toCamelCase(" "+e);["get","set","has"].forEach(s=>{Object.defineProperty(n,s+t,{__proto__:null,value:function(r,o,l){returnthis[s].call(this,e,r,o,l)},configurable:!0})})}letws=class{constructor(e){e&&this.set(e)}set(e,t,s){constr=this;functiono(d,u,f){constg=fc(u);if(!g)thrownewError("header name must be a non-empty string");consth=we.findKey(r,g);(!h||r[h]===void0||f===!0||f===void0&&r[h]!==!1)&&(r[h||u]=gu(d))}constl=(d,u)=>we.forEach(d,(f,g)=>o(f,g,u));if(we.isPlainObject(e)||einstanceofthis.constructor)l(e,t);elseif(we.isString(e)&&(e=e.trim())&&!x$(e))l(f$(e),t);elseif(we.isObject(e)&&we.isIterable(e)){letd={},u,f;for(constgofe){if(!we.isArray(g))throwTypeError("Object iterator must return a key-value pair");d[f=g[0]]=(u=d[f])?we.isArray(u)?[...u,g[1]]:[u,g[1]]:g[1]}l(d,t)}elsee!=null&&o(t,e,s);returnthis}get(e,t){if(e=fc(e),e){consts=we.findKey(this,e);if(s){constr=this[s];if(!t)returnr;if(t===!0)returnb$(r);if(we.isFunction(t))returnt.call(this,r,s);if(we.isRegExp(t))returnt.exec(r);thrownewTypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=fc(e),e){consts=we.findKey(this,e);return!!(s&&this[s]!==void0&&(!t||Ug(this,this[s],s,t)))}return!1}delete(e,t){consts=this;letr=!1;functiono(l){if(l=fc(l),l){constd=we.findKey(s,l);d&&(!t||Ug(s,s[d],d,t))&&(deletes[d],r=!0)}}returnwe.isArray(e)?e.forEach(o):o(e),r}clear(e){constt=Object.keys(this);lets=t.length,r=!1;for(;s--;){consto=t[s];(!e||Ug(this,this[o],o,e,!0))&&(deletethis[o],r=!0)}returnr}normalize(e){constt=this,s={};returnwe.forEach(this,(r,o)=>{constl=we.findKey(s,o);if(l){t[l]=gu(r),deletet[o];return}constd=e?v$(o):String(o).trim();d!==o&&deletet[o],t[d]=gu(r),s[d]=!0}),this}concat(...e){returnthis.constructor.concat(this,...e)}toJSON(e){constt=Object.create(null);returnwe.forEach(this,(s,r)=>{s!=null&&s!==!1&&(t[r]=e&&we.isArray(s)?s.join(", "):s)}),t}[Symbol.iterator](){returnObject.entries(this.toJSON())[Symbol.iterator]()}toString(){returnObject.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const s=new this(e);return t.forEach(r=>s.set(r)),s}static accessor(e){const s=(this[ow]=this[ow]={accessors:{}}).accessors,r=this.prototype;function o(l){const d=fc(l);s[d]||(w$(r,l),s[d]=!0)}return we.isArray(e)?e.forEach(o):o(e),this}};ws.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),we.reduceDescriptors(ws.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(s){this[t]=s}}}),we.freezeMethods(ws);const _$="[REDACTED ****]";function S$(n){if(we.hasOwnProp(n,"toJSON"))return!0;let e=Object.getPrototypeOf(n);for(;e&&e!==Object.prototype;){if(we.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function k$(n,e){const t=new Set(e.map(o=>String(o).toLowerCase())),s=[],r=o=>{if(o===null||typeof o!="object"||we.isBuffer(o))return o;if(s.indexOf(o)!==-1)return;o instanceof ws&&(o=o.toJSON()),s.push(o);let l;if(we.isArray(o))l=[],o.forEach((d,u)=>{const f=r(d);we.isUndefined(f)||(l[u]=f)});else{if(!we.isPlainObject(o)&&S$(o))return s.pop(),o;l=Object.create(null);for(const[d,u]of Object.entries(o)){const f=t.has(d.toLowerCase())?_$:r(u);we.isUndefined(f)||(l[d]=f)}}return s.pop(),l};return r(n)}let ct=class JA extends Error{static from(e,t,s,r,o,l){const d=new JA(e.message,t||e.code,s,r,o);return d.cause=e,d.name=e.name,e.status!=null&&d.status==null&&(d.status=e.status),l&&Object.assign(d,l),d}constructor(e,t,s,r,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),s&&(this.config=s),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,t=e&&we.hasOwnProp(e,"redact")?e.redact:void 0,s=we.isArray(t)&&t.length>0?k$(e,t):we.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:s,code:this.code,status:this.status}}};ct.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ct.ERR_BAD_OPTION="ERR_BAD_OPTION",ct.ECONNABORTED="ECONNABORTED",ct.ETIMEDOUT="ETIMEDOUT",ct.ECONNREFUSED="ECONNREFUSED",ct.ERR_NETWORK="ERR_NETWORK",ct.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ct.ERR_DEPRECATED="ERR_DEPRECATED",ct.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ct.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ct.ERR_CANCELED="ERR_CANCELED",ct.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ct.ERR_INVALID_URL="ERR_INVALID_URL",ct.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const C$=null;function qg(n){return we.isPlainObject(n)||we.isArray(n)}function aw(n){return we.endsWith(n,"[]")?n.slice(0,-2):n}function Fg(n,e,t){return n?n.concat(e).map(function(r,o){return r=aw(r),!t&&o?"["+r+"]":r}).join(t?".":""):e}function j$(n){return we.isArray(n)&&!n.some(qg)}const E$=we.toFlatObject(we,{},null,function(e){return/^is[A-Z]/.test(e)});function hu(n,e,t){if(!we.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=we.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,_){return!we.isUndefined(_[S])});const s=t.metaTokens,r=t.visitor||h,o=t.dots,l=t.indexes,d=t.Blob||typeof Blob<"u"&&Blob,u=t.maxDepth===void 0?100:t.maxDepth,f=d&&we.isSpecCompliantForm(e);if(!we.isFunction(r))throw new TypeError("visitor must be a function");function g(x){if(x===null)return"";if(we.isDate(x))return x.toISOString();if(we.isBoolean(x))return x.toString();if(!f&&we.isBlob(x))throw new ct("Blob is not supported. Use a Buffer instead.");return we.isArrayBuffer(x)||we.isTypedArray(x)?f&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function h(x,S,_){let A=x;if(we.isReactNative(e)&&we.isReactNativeBlob(x))return e.append(Fg(_,S,o),g(x)),!1;if(x&&!_&&typeof x=="object"){if(we.endsWith(S,"{}"))S=s?S:S.slice(0,-2),x=JSON.stringify(x);else if(we.isArray(x)&&j$(x)||(we.isFileList(x)||we.endsWith(S,"[]"))&&(A=we.toArray(x)))return S=aw(S),A.forEach(function(j,E){!(we.isUndefined(j)||j===null)&&e.append(l===!0?Fg([S],E,o):l===null?S:S+"[]",g(j))}),!1}return qg(x)?!0:(e.append(Fg(_,S,o),g(x)),!1)}const b=[],y=Object.assign(E$,{defaultVisitor:h,convertValue:g,isVisitable:qg});function v(x,S,_=0){if(!we.isUndefined(x)){if(_>u)throw new ct("Object is too deeply nested ("+_+" levels). Max depth: "+u,ct.ERR_FORM_DATA_DEPTH_EXCEEDED);if(b.indexOf(x)!==-1)throw Error("Circular reference detected in "+S.join("."));b.push(x),we.forEach(x,function(C,j){(!(we.isUndefined(C)||C===null)&&r.call(e,C,we.isString(j)?j.trim():j,S,y))===!0&&v(C,S?S.concat(j):[j],_+1)}),b.pop()}}if(!we.isObject(n))throw new TypeError("data must be an object");return v(n),e}function iw(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(n).replace
Line truncated
`+l.map(Sw).join(`
`):" "+Sw(l[0]):"as no adapter specified";throw new ct("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return r}const kw={getAdapter:nN,adapters:Zg};function Qg(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new gc(null,n)}function Cw(n){return Qg(n),n.headers=ws.from(n.headers),n.data=Xg.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),kw.getAdapter(n.adapter||pc.adapter,n)(n).then(function(s){Qg(n),n.response=s;try{s.data=Xg.call(n,n.transformResponse,s)}finally{delete n.response}return s.headers=ws.from(s.headers),s},function(s){if(!fw(s)&&(Qg(n),s&&s.response)){n.response=s.response;try{s.response.data=Xg.call(n,n.transformResponse,s.response)}finally{delete n.response}s.response.headers=ws.from(s.response.headers)}return Promise.reject(s)})}const bu={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{bu[n]=function(s){return typeof s===n||"a"+(e<1?"n ":" ")+n}});const jw={};bu.transitional=function(e,t,s){function r(o,l){return"[Axios v"+Jg+"] Transitional option '"+o+"'"+l+(s?". "+s:"")}return(o,l,d)=>{if(e===!1)throw new ct(r(l," has been removed"+(t?" in "+t:"")),ct.ERR_DEPRECATED);return t&&!jw[l]&&(jw[l]=!0,console.warn(r(l," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(o,l,d):!0}},bu.spelling=function(e){return(t,s)=>(console.warn(`${s}islikelyamisspellingof${e}`),!0)};function sN(n,e,t){if(typeof n!="object")throw new ct("options must be an object",ct.ERR_BAD_OPTION_VALUE);const s=Object.keys(n);let r=s.length;for(;r-- >0;){const o=s[r],l=Object.prototype.hasOwnProperty.call(e,o)?e[o]:void 0;if(l){const d=n[o],u=d===void 0||l(d,o,n);if(u!==!0)throw new ct("option "+o+" must be "+u,ct.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new ct("Unknown option "+o,ct.ERR_BAD_OPTION)}}const xu={assertOptions:sN,validators:bu},sr=xu.validators;let za=class{constructor(e){this.defaults=e||{},this.interceptors={request:new dw,response:new dw}}async request(e,t){try{return await this._request(e,t)}catch(s){if(s instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const o=(()=>{if(!r.stack)return"";const l=r.stack.indexOf(`
`)(t)}catch(s){G.warn(`Expressionevaluationfailed:${e}`,s);return}}async executeInitActions(e,t={}){const{getActionDispatcher:s}=await Promise.resolve().then(()=>Ks),i=s();if(!i){G.warn("ActionDispatcher not available for init_actions");return}G.log("Executing init_actions:",e.map(g=>g.handler)),G.log("Init actions dataContext:",t),G.log("Init actions dataContext._global:",t._global);const o=e.map(g=>g.handler).filter(g=>g.includes("."));o.length>0&&await this.waitForHandlers(i,o);let d={...t};for(const g of e)try{const h={type:"click",handler:g.handler,target:g.target,params:g.params,resultTo:g.resultTo,onSuccess:g.onSuccess,onError:g.onError,if:g.if,conditions:g.conditions,auth_mode:g.auth_mode,auth_required:g.auth_required},f=i.createHandler(h,d),p=new Event("init");await f(p),G.log(`Initactionexecuted:${g.handler}`);const y=this.globalState;d={...d,_global:{...y},_local:y._local||d._local||{}},G.log(`Datacontextrefreshedafter${g.handler}:`,{cartKey:d._global?.cartKey})}catch(h){G.error(`Failedtoexecuteinitaction:${g.handler}`,h)}}async waitForHandlers(e,t,s=5e3){const i=Date.now(),o=50,d=()=>t.every(g=>e.customHandlers?.has(g));if(d()){G.log("All module handlers already registered");return}return G.log("Waiting for module handlers:",t),new Promise(g=>{const h=()=>{if(d()){G.log("All module handlers now registered"),g();return}if(Date.now()-i>=s){const f=t.filter(p=>!e.customHandlers?.has(p));G.warn("Timeout waiting for handlers:",f),g();return}setTimeout(h,o)};h()})}};H(Ds,"LOCALE_STORAGE_KEY","g7_locale"),H(Ds,"CACHE_VERSION_STORAGE_KEY","g7_cache_version");let Lo=Ds;function qg(r){const e=new Lo(r);return r.websocket&&(Ic.configure(r.websocket),G.log("WebSocket 설정 완료")),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{e.init(),window.__templateApp=e}):(e.init(),window.__templateApp=e),e}typeof window<"u"&&(window.G7Core=window.G7Core||{},window.G7Core.initTemplateApp=qg,window.G7Core.dataSource={refetch:async(r,e)=>{const t=window.__templateApp;if(!t){G.warn("TemplateApp not initialized (G7Core.dataSource.refetch)");return}return t.refetchDataSource(r,e)},get:r=>{const e=window.__templateApp;if(!e){G.warn("TemplateApp not initialized (G7Core.dataSource.get)");return}return e.getDataSource(r)}});const Uc=[{id:"stale-closure",name:"Stale Closure",category:"state",symptoms:["이전 값이 전송됨","저장 시 오래된 데이터","API 호출 시 첫 값만 전송","클릭할 때마다 같은 값"],detector:r=>{const t=r.actionHistory.slice(-10).filter(s=>s.type==="apiCall");if(t.length<2)return!1;for(let s=1;s<t.length;s++){const i=JSON.stringify(t[s-1].params),o=JSON.stringify(t[s].params);if(i===o&&t[s].params)return!0}return!1},probability:.85,solution:"G7Core.state.get()._global 사용하여 최신 상태 참조",docLink:"troubleshooting-state.md#stale-closure",codeExample:`
`)(t)}catch(s){le.warn(`Expressionevaluationfailed:${e}`,s);return}}async executeInitActions(e,t={}){const{getActionDispatcher:s}=await Promise.resolve().then(()=>so),r=s();if(!r){le.warn("ActionDispatcher not available for init_actions");return}le.log("Executing init_actions:",e.map(d=>d.handler)),le.log("Init actions dataContext:",t),le.log("Init actions dataContext._global:",t._global);const o=e.map(d=>d.handler).filter(d=>d.includes("."));o.length>0&&await this.waitForHandlers(r,o);let l={...t};for(const d of e)try{const u={type:"click",handler:d.handler,target:d.target,params:d.params,resultTo:d.resultTo,onSuccess:d.onSuccess,onError:d.onError,if:d.if,conditions:d.conditions,auth_mode:d.auth_mode,auth_required:d.auth_required},f=r.createHandler(u,l),g=new Event("init");await f(g),le.log(`Initactionexecuted:${d.handler}`);const h=this.globalState;l={...l,_global:{...h},_local:h._local||l._local||{}},le.log(`Datacontextrefreshedafter${d.handler}:`,{cartKey:l._global?.cartKey})}catch(u){le.error(`Failedtoexecuteinitaction:${d.handler}`,u)}}async waitForHandlers(e,t,s=5e3){const r=Date.now(),o=50,l=()=>t.every(d=>e.customHandlers?.has(d));if(l()){le.log("All module handlers already registered");return}return le.log("Waiting for module handlers:",t),new Promise(d=>{const u=()=>{if(l()){le.log("All module handlers now registered"),d();return}if(Date.now()-r>=s){const f=t.filter(g=>!e.customHandlers?.has(g));le.warn("Timeout waiting for handlers:",f),d();return}setTimeout(u,o)};u()})}};ne(Lr,"LOCALE_STORAGE_KEY","g7_locale"),ne(Lr,"CACHE_VERSION_STORAGE_KEY","g7_cache_version");let Rc=Lr;function Ph(n){const e=new Rc(n);return n.websocket&&(Fu.configure(n.websocket),le.log("WebSocket 설정 완료")),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{e.init(),window.__templateApp=e}):(e.init(),window.__templateApp=e),e}typeof window<"u"&&(window.G7Core=window.G7Core||{},window.G7Core.initTemplateApp=Ph,window.G7Core.dataSource={refetch:async(n,e)=>{const t=window.__templateApp;if(!t){le.warn("TemplateApp not initialized (G7Core.dataSource.refetch)");return}return t.refetchDataSource(n,e)},get:n=>{const e=window.__templateApp;if(!e){le.warn("TemplateApp not initialized (G7Core.dataSource.get)");return}return e.getDataSource(n)}});const Yu=[{id:"stale-closure",name:"Stale Closure",category:"state",symptoms:["이전 값이 전송됨","저장 시 오래된 데이터","API 호출 시 첫 값만 전송","클릭할 때마다 같은 값"],detector:n=>{const t=n.actionHistory.slice(-10).filter(s=>s.type==="apiCall");if(t.length<2)return!1;for(let s=1;s<t.length;s++){const r=JSON.stringify(t[s-1].params),o=JSON.stringify(t[s].params);if(r===o&&t[s].params)return!0}return!1},probability:.85,solution:"G7Core.state.get()._global 사용하여 최신 상태 참조",docLink:"troubleshooting-state.md#stale-closure",codeExample:`
`},{id:"sequence-merge",name:"Sequence setState 병합 충돌",category:"state",symptoms:["sequence 내 setState 일부 누락","여러 setState 중 마지막만 적용","상태 업데이트 순서 문제"],detector:r=>r.actionHistory.filter(t=>t.type==="sequence").some(t=>t.children?.filter(s=>s.type==="setState").length>1),probability:.75,solution:"currentState 추적 패턴 사용 또는 단일 setState로 병합",docLink:"troubleshooting-state.md#사례3",codeExample:`
`},{id:"sequence-merge",name:"Sequence setState 병합 충돌",category:"state",symptoms:["sequence 내 setState 일부 누락","여러 setState 중 마지막만 적용","상태 업데이트 순서 문제"],detector:n=>n.actionHistory.filter(t=>t.type==="sequence").some(t=>t.children?.filter(s=>s.type==="setState").length>1),probability:.75,solution:"currentState 추적 패턴 사용 또는 단일 setState로 병합",docLink:"troubleshooting-state.md#사례3",codeExample:`
`},{id:"init-actions-timing",name:"init_actions 타이밍 이슈",category:"timing",symptoms:["init_actions 값이 렌더링에 반영 안됨","초기 상태가 undefined","첫 클릭 시 초기값 손실"],detector:r=>{if(r.stateHistory.length===0)return!1;const e=r.stateHistory[0];return e?.source==="init_actions"&&Object.keys(e.next||{}).length===0},probability:.7,solution:"init_actions 후 _global 상태 병합 확인",docLink:"troubleshooting-state.md#init_actions-관련-이슈"},{id:"datakey-global-init",name:'dataKey="_global.xxx" 초기화 누락',category:"form",symptoms:["Form dataKey가 전역 상태에 바인딩 안됨","Input 값이 _global에 저장 안됨","Form 제출 시 빈 값 전송"],detector:r=>r.form.filter(t=>t.dataKey?.startsWith("_global.")).length===0?!1:!r.stateHistory.some(t=>t.source==="init_actions"),probability:.95,solution:"init_actions에서 _global 상태 초기화 필수",docLink:"troubleshooting-state.md#datakey-자동-바인딩-이슈",codeExample:`
`},{id:"init-actions-timing",name:"init_actions 타이밍 이슈",category:"timing",symptoms:["init_actions 값이 렌더링에 반영 안됨","초기 상태가 undefined","첫 클릭 시 초기값 손실"],detector:n=>{if(n.stateHistory.length===0)return!1;const e=n.stateHistory[0];return e?.source==="init_actions"&&Object.keys(e.next||{}).length===0},probability:.7,solution:"init_actions 후 _global 상태 병합 확인",docLink:"troubleshooting-state.md#init_actions-관련-이슈"},{id:"datakey-global-init",name:'dataKey="_global.xxx" 초기화 누락',category:"form",symptoms:["Form dataKey가 전역 상태에 바인딩 안됨","Input 값이 _global에 저장 안됨","Form 제출 시 빈 값 전송"],detector:n=>n.form.filter(t=>t.dataKey?.startsWith("_global.")).length===0?!1:!n.stateHistory.some(t=>t.source==="init_actions"),probability:.95,solution:"init_actions에서 _global 상태 초기화 필수",docLink:"troubleshooting-state.md#datakey-자동-바인딩-이슈",codeExample:`
`},{id:"cache-iteration",name:"캐시 반복 렌더링 문제",category:"cache",symptoms:["모든 행이 같은 값","iteration에서 첫 항목만 표시","DataGrid 데이터 중복"],detector:r=>(r.cacheStats.hitRate??0)>.9&&r.conditional.iterations.length>0,probability:.9,solution:"skipCache: true 추가",docLink:"troubleshooting-cache.md#사례4",codeExample:`
`},{id:"cache-iteration",name:"캐시 반복 렌더링 문제",category:"cache",symptoms:["모든 행이 같은 값","iteration에서 첫 항목만 표시","DataGrid 데이터 중복"],detector:n=>(n.cacheStats.hitRate??0)>.9&&n.conditional.iterations.length>0,probability:.9,solution:"skipCache: true 추가",docLink:"troubleshooting-cache.md#사례4",codeExample:`
`},{id:"cache-dynamic-query",name:"동적 쿼리 파라미터 캐싱",category:"cache",symptoms:["페이지네이션이 동작 안함","필터 변경해도 같은 결과","정렬이 적용 안됨"],detector:r=>{const e=r.network.requestHistory.slice(-5);if(e.length<2)return!1;const t=e.map(s=>s.url.split("?")[0]);return new Set(t).size<t.length},probability:.85,solution:"데이터소스 params에 skipCache: true 추가",docLink:"troubleshooting-cache.md#사례2"},{id:"orphaned-listener",name:"정리되지 않은 이벤트 리스너",category:"lifecycle",symptoms:["메모리 사용량 증가","이벤트가 여러 번 실행됨","페이지 이동 후에도 이벤트 발생"],detector:r=>r.lifecycle.orphanedListeners.length>0,probability:.8,solution:"useEffect cleanup 또는 removeEventListener 추가",docLink:"troubleshooting-components.md#lifecycle"},{id:"unmount-state-update",name:"언마운트 후 상태 업데이트",category:"lifecycle",symptoms:["Cannot update state on unmounted component","비동기 작업 완료 후 에러","모달 닫힘 후 에러"],detector:r=>r.actionHistory.some(e=>e.status==="error"&&e.error?.message?.includes("unmounted")),probability:.9,solution:"AbortController 또는 isMounted 플래그 사용",docLink:"troubleshooting-state.md#unmount-update"},{id:"excessive-rerenders",name:"과도한 리렌더링",category:"performance",symptoms:["UI가 느림","스크롤 버벅임","입력 지연"],detector:r=>{for(const e of r.performance.renderCounts.values())if(e>50)return!0;return!1},probability:.75,solution:"React.memo, useMemo, useCallback 사용",docLink:"troubleshooting-components.md#performance"},{id:"binding-eval-flood",name:"바인딩 평가 과다",category:"performance",symptoms:["페이지 로드 느림","CPU 사용량 높음"],detector:r=>r.performance.bindingEvalCount>1e3,probability:.85,solution:"불필요한 {{}} 바인딩 제거, 정적 값 사용",docLink:"troubleshooting-cache.md#binding-performance"},{id:"memory-leak",name:"잠재적 메모리 누수",category:"performance",symptoms:["시간이 지남에 따라 느려짐","브라우저 탭 메모리 증가","오래 사용 시 크래시"],detector:r=>r.performance.memoryWarnings.length>0,probability:.7,solution:"클린업 함수 확인, WeakMap 사용",docLink:"troubleshooting-state.md#memory-leak"},{id:"request-timeout",name:"API 요청 타임아웃",category:"network",symptoms:["데이터가 로딩 안됨","무한 로딩 스피너","타임아웃 에러"],detector:r=>r.network.requestHistory.some(e=>e.status==="timeout"||e.duration&&e.duration>3e4),probability:.9,solution:"서버 상태 확인, 타임아웃 설정 조정",docLink:"troubleshooting-backend.md#timeout"},{id:"duplicate-requests",name:"중복 API 요청",category:"network",symptoms:["같은 요청이 여러 번 실행","네트워크 탭에 동일 요청 반복","불필요한 서버 부하"],detector:r=>{const s=r.network.requestHistory.slice(-20).map(i=>`${i.method}:${i.url}`);return s.length!==new Set(s).size},probability:.85,solution:"debounce 추가, 데이터소스 의존성 확인",docLink:"troubleshooting-cache.md#duplicate-request"},{id:"datasource-not-loading",name:"데이터소스 미로딩",category:"network",symptoms:["데이터가 undefined","빈 테이블/목록","API 호출이 안됨"],detector:r=>r.network.pendingDataSources.length>0&&r.network.activeRequests.length===0,probability:.8,solution:"데이터소스 strategy 확인, 의존성 확인",docLink:"troubleshooting-backend.md#datasource"},{id:"permission-denied",name:"레이아웃 권한 거부 (403)",category:"network",symptoms:["403 Forbidden","권한이 없습니다","레이아웃 로드 실패","페이지 접근 불가","빈 화면"],detector:r=>r.network.requestHistory.some(e=>e.statusCode===403),probability:.9,solution:"사용자 권한 확인 또는 레이아웃 permissions 설정 확인",docLink:"frontend/layout-json.md#permissions",codeExample:`
`},{id:"cache-dynamic-query",name:"동적 쿼리 파라미터 캐싱",category:"cache",symptoms:["페이지네이션이 동작 안함","필터 변경해도 같은 결과","정렬이 적용 안됨"],detector:n=>{const e=n.network.requestHistory.slice(-5);if(e.length<2)return!1;const t=e.map(s=>s.url.split("?")[0]);return new Set(t).size<t.length},probability:.85,solution:"데이터소스 params에 skipCache: true 추가",docLink:"troubleshooting-cache.md#사례2"},{id:"orphaned-listener",name:"정리되지 않은 이벤트 리스너",category:"lifecycle",symptoms:["메모리 사용량 증가","이벤트가 여러 번 실행됨","페이지 이동 후에도 이벤트 발생"],detector:n=>n.lifecycle.orphanedListeners.length>0,probability:.8,solution:"useEffect cleanup 또는 removeEventListener 추가",docLink:"troubleshooting-components.md#lifecycle"},{id:"unmount-state-update",name:"언마운트 후 상태 업데이트",category:"lifecycle",symptoms:["Cannot update state on unmounted component","비동기 작업 완료 후 에러","모달 닫힘 후 에러"],detector:n=>n.actionHistory.some(e=>e.status==="error"&&e.error?.message?.includes("unmounted")),probability:.9,solution:"AbortController 또는 isMounted 플래그 사용",docLink:"troubleshooting-state.md#unmount-update"},{id:"excessive-rerenders",name:"과도한 리렌더링",category:"performance",symptoms:["UI가 느림","스크롤 버벅임","입력 지연"],detector:n=>{for(const e of n.performance.renderCounts.values())if(e>50)return!0;return!1},probability:.75,solution:"React.memo, useMemo, useCallback 사용",docLink:"troubleshooting-components.md#performance"},{id:"binding-eval-flood",name:"바인딩 평가 과다",category:"performance",symptoms:["페이지 로드 느림","CPU 사용량 높음"],detector:n=>n.performance.bindingEvalCount>1e3,probability:.85,solution:"불필요한 {{}} 바인딩 제거, 정적 값 사용",docLink:"troubleshooting-cache.md#binding-performance"},{id:"memory-leak",name:"잠재적 메모리 누수",category:"performance",symptoms:["시간이 지남에 따라 느려짐","브라우저 탭 메모리 증가","오래 사용 시 크래시"],detector:n=>n.performance.memoryWarnings.length>0,probability:.7,solution:"클린업 함수 확인, WeakMap 사용",docLink:"troubleshooting-state.md#memory-leak"},{id:"request-timeout",name:"API 요청 타임아웃",category:"network",symptoms:["데이터가 로딩 안됨","무한 로딩 스피너","타임아웃 에러"],detector:n=>n.network.requestHistory.some(e=>e.status==="timeout"||e.duration&&e.duration>3e4),probability:.9,solution:"서버 상태 확인, 타임아웃 설정 조정",docLink:"troubleshooting-backend.md#timeout"},{id:"duplicate-requests",name:"중복 API 요청",category:"network",symptoms:["같은 요청이 여러 번 실행","네트워크 탭에 동일 요청 반복","불필요한 서버 부하"],detector:n=>{const s=n.network.requestHistory.slice(-20).map(r=>`${r.method}:${r.url}`);return s.length!==new Set(s).size},probability:.85,solution:"debounce 추가, 데이터소스 의존성 확인",docLink:"troubleshooting-cache.md#duplicate-request"},{id:"datasource-not-loading",name:"데이터소스 미로딩",category:"network",symptoms:["데이터가 undefined","빈 테이블/목록","API 호출이 안됨"],detector:n=>n.network.pendingDataSources.length>0&&n.network.activeRequests.length===0,probability:.8,solution:"데이터소스 strategy 확인, 의존성 확인",docLink:"troubleshooting-backend.md#datasource"},{id:"permission-denied",name:"레이아웃 권한 거부 (403)",category:"network",symptoms:["403 Forbidden","권한이 없습니다","레이아웃 로드 실패","페이지 접근 불가","빈 화면"],detector:n=>n.network.requestHistory.some(e=>e.statusCode===403),probability:.9,solution:"사용자 권한 확인 또는 레이아웃 permissions 설정 확인",docLink:"frontend/layout-json.md#permissions",codeExample:`
`},{id:"auth-required",name:"인증 필요 (401)",category:"network",symptoms:["401 Unauthorized","로그인 필요","토큰 만료","인증되지 않음","Unauthenticated"],detector:r=>r.network.requestHistory.some(e=>e.statusCode===401),probability:.95,solution:"로그인 상태 확인 또는 토큰 갱신 필요",docLink:"frontend/auth-system.md"},{id:"infinite-scroll-state-reset",name:"무한 스크롤 상태 미초기화",category:"state",symptoms:["삭제 후 스크롤 안됨","무한 스크롤이 멈춤","hasMore가 false로 유지","더 이상 데이터 로드 안됨"],detector:r=>{const e=r.currentState;return r.actionHistory.some(s=>s.type==="refetchDataSource")&&e?._global?.infiniteScroll?.hasMore===!1},probability:.85,solution:"refetchDataSource 전에 infiniteScroll 상태 초기화 필요",docLink:"frontend/actions-handlers.md#appendDataSource",codeExample:`
`},{id:"auth-required",name:"인증 필요 (401)",category:"network",symptoms:["401 Unauthorized","로그인 필요","토큰 만료","인증되지 않음","Unauthenticated"],detector:n=>n.network.requestHistory.some(e=>e.statusCode===401),probability:.95,solution:"로그인 상태 확인 또는 토큰 갱신 필요",docLink:"frontend/auth-system.md"},{id:"infinite-scroll-state-reset",name:"무한 스크롤 상태 미초기화",category:"state",symptoms:["삭제 후 스크롤 안됨","무한 스크롤이 멈춤","hasMore가 false로 유지","더 이상 데이터 로드 안됨"],detector:n=>{const e=n.currentState;return n.actionHistory.some(s=>s.type==="refetchDataSource")&&e?._global?.infiniteScroll?.hasMore===!1},probability:.85,solution:"refetchDataSource 전에 infiniteScroll 상태 초기화 필요",docLink:"frontend/actions-handlers.md#appendDataSource",codeExample:`
`},{id:"scroll-event-not-configured",name:"스크롤 이벤트 미설정",category:"lifecycle",symptoms:["스크롤해도 데이터 로드 안됨","무한 스크롤 작동 안함","스크롤 이벤트 안잡힘"],detector:r=>{const e=r.actionHistory.some(s=>s.type==="scroll"),t=r.actionHistory.some(s=>s.type==="appendDataSource");return!e&&!t&&r.actionHistory.length>5},probability:.7,solution:"scroll 이벤트 핸들러 설정 및 컨테이너 overflow 속성 확인",docLink:"frontend/actions.md#scroll-event",codeExample:`
`},{id:"scroll-event-not-configured",name:"스크롤 이벤트 미설정",category:"lifecycle",symptoms:["스크롤해도 데이터 로드 안됨","무한 스크롤 작동 안함","스크롤 이벤트 안잡힘"],detector:n=>{const e=n.actionHistory.some(s=>s.type==="scroll"),t=n.actionHistory.some(s=>s.type==="appendDataSource");return!e&&!t&&n.actionHistory.length>5},probability:.7,solution:"scroll 이벤트 핸들러 설정 및 컨테이너 overflow 속성 확인",docLink:"frontend/actions.md#scroll-event",codeExample:`
`},{id:"append-datasource-wrong-path",name:"appendDataSource 경로 오류",category:"state",symptoms:["무한 스크롤 시 데이터 덮어씀","기존 데이터가 사라짐","데이터가 병합 안됨"],detector:r=>{const e=r.actionHistory.filter(t=>t.type==="appendDataSource");return e.length>=2&&e.some(t=>t.status==="error")},probability:.75,solution:"dataPath와 sourcePath 설정 확인, 데이터소스 dataPath가 병합 대상인지 확인",docLink:"frontend/actions-handlers.md#appendDataSource"},{id:"websocket-disconnected",name:"WebSocket 연결 끊김",category:"websocket",symptoms:["실시간 업데이트 안됨","알림이 오지 않음"],detector:r=>r.websocket.connectionState==="disconnected",probability:.9,solution:"네트워크 상태 확인, 재연결 로직 확인",docLink:"troubleshooting-backend.md#websocket"},{id:"if-condition-always-false",name:"if 조건 항상 false",category:"conditional",symptoms:["컴포넌트가 표시 안됨","조건부 영역이 비어있음"],detector:r=>r.conditional.ifConditions.some(e=>e.evaluatedValue===!1&&e.evaluationCount>5),probability:.85,solution:"if 조건식 확인, 상태값 확인",docLink:"troubleshooting-state.md#if-condition"},{id:"iteration-empty",name:"iteration 소스 비어있음",category:"conditional",symptoms:["반복 영역이 비어있음","목록이 표시 안됨"],detector:r=>r.conditional.iterations.some(e=>e.sourceLength===0),probability:.8,solution:"iteration source 표현식 확인, 데이터 로딩 확인",docLink:"troubleshooting-guide.md#iteration"},{id:"iteration-item-var",name:"iteration 변수명 오류",category:"conditional",symptoms:["반복 항목 내 바인딩 빈값","올바른 개수는 표시되나 내용 없음"],detector:r=>r.conditional.iterations.some(e=>e.itemVar==="item"||e.indexVar==="index"),probability:.95,solution:"item_var, index_var 사용 (item, index 아님)",docLink:"troubleshooting-guide.md#iteration-바인딩-문제",codeExample:`
`},{id:"append-datasource-wrong-path",name:"appendDataSource 경로 오류",category:"state",symptoms:["무한 스크롤 시 데이터 덮어씀","기존 데이터가 사라짐","데이터가 병합 안됨"],detector:n=>{const e=n.actionHistory.filter(t=>t.type==="appendDataSource");return e.length>=2&&e.some(t=>t.status==="error")},probability:.75,solution:"dataPath와 sourcePath 설정 확인, 데이터소스 dataPath가 병합 대상인지 확인",docLink:"frontend/actions-handlers.md#appendDataSource"},{id:"websocket-disconnected",name:"WebSocket 연결 끊김",category:"websocket",symptoms:["실시간 업데이트 안됨","알림이 오지 않음"],detector:n=>n.websocket.connectionState==="disconnected",probability:.9,solution:"네트워크 상태 확인, 재연결 로직 확인",docLink:"troubleshooting-backend.md#websocket"},{id:"if-condition-always-false",name:"if 조건 항상 false",category:"conditional",symptoms:["컴포넌트가 표시 안됨","조건부 영역이 비어있음"],detector:n=>n.conditional.ifConditions.some(e=>e.evaluatedValue===!1&&e.evaluationCount>5),probability:.85,solution:"if 조건식 확인, 상태값 확인",docLink:"troubleshooting-state.md#if-condition"},{id:"iteration-empty",name:"iteration 소스 비어있음",category:"conditional",symptoms:["반복 영역이 비어있음","목록이 표시 안됨"],detector:n=>n.conditional.iterations.some(e=>e.sourceLength===0),probability:.8,solution:"iteration source 표현식 확인, 데이터 로딩 확인",docLink:"troubleshooting-guide.md#iteration"},{id:"iteration-item-var",name:"iteration 변수명 오류",category:"conditional",symptoms:["반복 항목 내 바인딩 빈값","올바른 개수는 표시되나 내용 없음"],detector:n=>n.conditional.iterations.some(e=>e.itemVar==="item"||e.indexVar==="index"),probability:.95,solution:"item_var, index_var 사용 (item, index 아님)",docLink:"troubleshooting-guide.md#iteration-바인딩-문제",codeExample:`
`},{id:"form-no-datakey",name:"Form dataKey 미설정",category:"form",symptoms:["Input 값이 저장 안됨","Form 제출 시 빈 값"],detector:r=>r.form.some(e=>!e.dataKey),probability:.9,solution:"Form에 dataKey prop 추가",docLink:"troubleshooting-components.md#form-datakey"},{id:"input-no-name",name:"Input name 미설정",category:"form",symptoms:["자동 바인딩 안됨","Input 값 변경이 상태에 반영 안됨"],detector:r=>r.form.some(e=>e.inputs.some(t=>!t.name)),probability:.95,solution:"Input에 name prop 추가",docLink:"troubleshooting-components.md#input-name"},{id:"i18n-key-missing",name:"번역 키 누락",category:"i18n",symptoms:["$t:key가 그대로 표시됨","번역되지 않은 텍스트"],detector:r=>typeof document<"u"?document.body.innerHTML.includes("$t:"):!1,probability:.95,solution:"번역 파일에 키 추가",docLink:"troubleshooting-components.md#i18n"}];class sx{constructor(){H(this,"devTools");this.devTools=Ns.getInstance()}analyze(e){const t=this.buildContext(),s=[];for(const i of Uc){const o=e.some(g=>i.symptoms.some(h=>h.toLowerCase().includes(g.toLowerCase())||g.toLowerCase().includes(h.toLowerCase())));let d=!1;try{d=i.detector(t)}catch{}(o||d)&&s.push({rule:i,confidence:this.calculateConfidence(i,e,o,d),evidence:this.collectEvidence(i,t)})}return s.sort((i,o)=>o.confidence-i.confidence)}suggestFix(e){return{title:e.rule.name,description:e.rule.solution,codeExample:e.rule.codeExample,docLink:e.rule.docLink}}getCommonIssues(){const e=this.buildContext(),t=[];for(const s of Uc)try{s.detector(e)&&t.push({rule:s,count:1})}catch{}return t.sort((s,i)=>i.count-s.count).map(s=>({id:s.rule.id,name:s.rule.name,description:s.rule.solution,frequency:s.count}))}getRulesByCategory(e){return Uc.filter(t=>t.category===e)}getAllRules(){return[...Uc]}buildContext(){return{stateHistory:this.devTools.getStateHistory(),actionHistory:this.devTools.getActionHistory(),cacheStats:this.devTools.getCacheStats(),currentState:this.devTools.getState(),lifecycle:this.devTools.getLifecycleInfo(),performance:this.devTools.getPerformanceInfo(),network:this.devTools.getNetworkInfo(),conditional:this.devTools.getConditionalInfo(),form:this.devTools.getFormInfo(),websocket:this.devTools.getWebSocketInfo(),stateAtTime:e=>this.devTools.getStateAtTime(e),layoutHas:(e,t)=>this.checkLayoutHas(e,t)}}calculateConfidence(e,t,s,i){let o=e.probability;if(s){const d=t.filter(g=>e.symptoms.some(h=>h.toLowerCase().includes(g.toLowerCase())||g.toLowerCase().includes(h.toLowerCase()))).length;o+=d*.05}return i&&(o+=.1),Math.min(o,.99)}collectEvidence(e,t){const s=[];switch(e.category){case"state":t.stateHistory.length>0&&s.push(`상태변경이력:${t.stateHistory.length}개`);break;case"cache":s.push(`캐시히트율:${((t.cacheStats.hitRate??0)*100).toFixed(1)}%`);break;case"lifecycle":t.lifecycle.orphanedListeners.length>0&&s.push(`정리되지않은리스너:${t.lifecycle.orphanedListeners.length}개`);break;case"performance":s.push(`바인딩평가횟수:${t.performance.bindingEvalCount}`);break;case"network":s.push(`진행중인요청:${t.network.activeRequests.length}개`);break;case"form":s.push(`추적중인Form:${t.form.length}개`);break}return s}checkLayoutHas(e,t){try{const i=window.G7Core?.getCurrentLayout?.();if(!i)return!1;const o=JSON.stringify(i);return o.includes(`"${e}":"${t}`)||o.includes(`"${e}": "${t}`)}catch{return!1}}}const lk=Object.freeze(Object.defineProperty({__proto__:null,DiagnosticEngine:sx},Symbol.toStringTag,{value:"Module"})),ck={dumpEndpoint:"/_boost/g7-debug/dump-state",logEndpoint:"/_boost/g7-debug/log",timeout:1e4,autoCapture:!1,autoCaptureInterval:3e4};class dk{constructor(e){H(this,"config");H(this,"devTools");H(this,"connected",!1);H(this,"autoCaptureTimer",null);H(this,"CHUNK_SIZE",2*1024*1024);H(this,"BULK_THRESHOLD",4*1024*1024);this.config={...ck,...e},this.devTools=Ns.getInstance(),this.config.autoCapture&&this.startAutoCapture()}async dumpState(e=!1){const t=`${Date.now()}_${Math.random().toString(36).substring(2,9)}`,s=Date.now(),i=this.devTools.getPerformanceInfo(),o={renderCounts:Object.fromEntries(i.renderCounts),bindingEvalCount:i.bindingEvalCount,memoryWarnings:i.memoryWarnings},d={state:()=>this.devTools.getState(),actions:()=>this.devTools.getActionHistory(),cache:()=>this.devTools.getCacheStats(),lifecycle:()=>this.devTools.getLifecycleInfo(),network:()=>this.devTools.getNetworkInfo(),expressions:()=>this.devTools.getExpressions(),forms:()=>this.devTools.getForms(),performance:()=>o,conditionals:()=>this.devTools.getConditionalInfo(),dataSources:()=>this.devTools.getDataSources(),handlers:()=>this.devTools.getHandlers(),componentEvents:()=>this.devTools.getComponentEventInfo(),stateRendering:()=>this.devTools.getStateRenderingInfo(),stateHierarchy:()=>this.devTools.getStateHierarchyInfo(),contextFlow:()=>this.devTools.getContextFlowInfo(),styleValidation:()=>this.devTools.getStyleValidationInfo(),authDebug:()=>this.devTools.getAuth
Line truncated
`},{id:"form-no-datakey",name:"Form dataKey 미설정",category:"form",symptoms:["Input 값이 저장 안됨","Form 제출 시 빈 값"],detector:n=>n.form.some(e=>!e.dataKey),probability:.9,solution:"Form에 dataKey prop 추가",docLink:"troubleshooting-components.md#form-datakey"},{id:"input-no-name",name:"Input name 미설정",category:"form",symptoms:["자동 바인딩 안됨","Input 값 변경이 상태에 반영 안됨"],detector:n=>n.form.some(e=>e.inputs.some(t=>!t.name)),probability:.95,solution:"Input에 name prop 추가",docLink:"troubleshooting-components.md#input-name"},{id:"i18n-key-missing",name:"번역 키 누락",category:"i18n",symptoms:["$t:key가 그대로 표시됨","번역되지 않은 텍스트"],detector:n=>typeof document<"u"?document.body.innerHTML.includes("$t:"):!1,probability:.95,solution:"번역 파일에 키 추가",docLink:"troubleshooting-components.md#i18n"}];class Q0{constructor(){ne(this,"devTools");this.devTools=jr.getInstance()}analyze(e){const t=this.buildContext(),s=[];for(const r of Yu){const o=e.some(d=>r.symptoms.some(u=>u.toLowerCase().includes(d.toLowerCase())||d.toLowerCase().includes(u.toLowerCase())));let l=!1;try{l=r.detector(t)}catch{}(o||l)&&s.push({rule:r,confidence:this.calculateConfidence(r,e,o,l),evidence:this.collectEvidence(r,t)})}return s.sort((r,o)=>o.confidence-r.confidence)}suggestFix(e){return{title:e.rule.name,description:e.rule.solution,codeExample:e.rule.codeExample,docLink:e.rule.docLink}}getCommonIssues(){const e=this.buildContext(),t=[];for(const s of Yu)try{s.detector(e)&&t.push({rule:s,count:1})}catch{}return t.sort((s,r)=>r.count-s.count).map(s=>({id:s.rule.id,name:s.rule.name,description:s.rule.solution,frequency:s.count}))}getRulesByCategory(e){return Yu.filter(t=>t.category===e)}getAllRules(){return[...Yu]}buildContext(){return{stateHistory:this.devTools.getStateHistory(),actionHistory:this.devTools.getActionHistory(),cacheStats:this.devTools.getCacheStats(),currentState:this.devTools.getState(),lifecycle:this.devTools.getLifecycleInfo(),performance:this.devTools.getPerformanceInfo(),network:this.devTools.getNetworkInfo(),conditional:this.devTools.getConditionalInfo(),form:this.devTools.getFormInfo(),websocket:this.devTools.getWebSocketInfo(),stateAtTime:e=>this.devTools.getStateAtTime(e),layoutHas:(e,t)=>this.checkLayoutHas(e,t)}}calculateConfidence(e,t,s,r){let o=e.probability;if(s){const l=t.filter(d=>e.symptoms.some(u=>u.toLowerCase().includes(d.toLowerCase())||d.toLowerCase().includes(u.toLowerCase()))).length;o+=l*.05}return r&&(o+=.1),Math.min(o,.99)}collectEvidence(e,t){const s=[];switch(e.category){case"state":t.stateHistory.length>0&&s.push(`상태변경이력:${t.stateHistory.length}개`);break;case"cache":s.push(`캐시히트율:${((t.cacheStats.hitRate??0)*100).toFixed(1)}%`);break;case"lifecycle":t.lifecycle.orphanedListeners.length>0&&s.push(`정리되지않은리스너:${t.lifecycle.orphanedListeners.length}개`);break;case"performance":s.push(`바인딩평가횟수:${t.performance.bindingEvalCount}`);break;case"network":s.push(`진행중인요청:${t.network.activeRequests.length}개`);break;case"form":s.push(`추적중인Form:${t.form.length}개`);break}return s}checkLayoutHas(e,t){try{const r=window.G7Core?.getCurrentLayout?.();if(!r)return!1;const o=JSON.stringify(r);return o.includes(`"${e}":"${t}`)||o.includes(`"${e}": "${t}`)}catch{return!1}}}const cI=Object.freeze(Object.defineProperty({__proto__:null,DiagnosticEngine:Q0},Symbol.toStringTag,{value:"Module"})),dI={dumpEndpoint:"/_boost/g7-debug/dump-state",logEndpoint:"/_boost/g7-debug/log",timeout:1e4,autoCapture:!1,autoCaptureInterval:3e4};class uI{constructor(e){ne(this,"config");ne(this,"devTools");ne(this,"connected",!1);ne(this,"autoCaptureTimer",null);ne(this,"CHUNK_SIZE",2*1024*1024);ne(this,"BULK_THRESHOLD",4*1024*1024);this.config={...dI,...e},this.devTools=jr.getInstance(),this.config.autoCapture&&this.startAutoCapture()}async dumpState(e=!1){const t=`${Date.now()}_${Math.random().toString(36).substring(2,9)}`,s=Date.now(),r=this.devTools.getPerformanceInfo(),o={renderCounts:Object.fromEntries(r.renderCounts),bindingEvalCount:r.bindingEvalCount,memoryWarnings:r.memoryWarnings},l={state:()=>this.devTools.getState(),actions:()=>this.devTools.getActionHistory(),cache:()=>this.devTools.getCacheStats(),lifecycle:()=>this.devTools.getLifecycleInfo(),network:()=>this.devTools.getNetworkInfo(),expressions:()=>this.devTools.getExpressions(),forms:()=>this.devTools.getForms(),performance:()=>o,conditionals:()=>this.devTools.getConditionalInfo(),dataSources:()=>this.devTools.getDataSources(),handlers:()=>this.devTools.getHandlers(),componentEvents:()=>this.devTools.getComponentEventInfo(),stateRendering:()=>this.devTools.getStateRenderingInfo(),stateHierarchy:()=>this.devTools.getStateHierarchyInfo(),contextFlow:()=>this.devTools.getContextFlowInfo(),styleValidation:()=>this.devTools.getStyleValidationInfo(),authDebug:()=>this.devTools.
Line truncated
'db_prefix_hint'=>'Prefix added to all table names. (e.g., g7_users, g7_posts)',
'db_prefix_hint'=>'Prefix added to all table names. (e.g., g7_users, g7_posts) Up to 6 characters.',
'db_prefix_placeholder'=>'g7_',
'test_write_db_connection'=>'Test Write DB Connection',
'test_read_db_connection'=>'Test Read DB Connection',
@@ -171,6 +171,7 @@ return [
'error_db_name_required'=>'Database name is required.',
'error_db_username_required'=>'Database username is required.',
'error_db_credentials_required'=>'Database name and username are required.',
'error_db_prefix_too_long'=>'Table prefix may be up to :max characters. (entered: :current) A long prefix makes some table index names exceed the database identifier limit.',
'db_existing_g7_desc'=>'The selected database already contains a G7 installation. Forcing the install will delete all existing data. Back up first.',
'db_existing_foreign_desc'=>'The selected database contains unknown tables. Forcing the install will drop all of them. Consider using another database or back up first.',
'db_existing_mixed_desc'=>'The selected database contains a mix of G7 and other tables. Forcing the install will drop all of them.',
'db_existing_generic_desc'=>'The selected database contains existing tables. Forcing the install will drop all of them.',
'db_existing_g7_desc'=>'The selected database already contains a G7 installation. Forcing the install will drop the existing G7 tables that start with the table prefix you entered. Back up first.',
'db_existing_foreign_desc'=>'The selected database contains unknown tables. Forcing the install will only drop tables that start with the table prefix you entered; tables with a different prefix are preserved. Back up first.',
'db_existing_mixed_desc'=>'The selected database contains a mix of G7 and other tables. Forcing the install will only drop tables that start with the table prefix you entered; tables with a different prefix are preserved.',
'db_existing_generic_desc'=>'The selected database contains existing tables. Forcing the install will only drop tables that start with the table prefix you entered.',
'db_existing_tables_list'=>'Detected tables (up to 20):',
'db_backup_guide'=>'Backup command example (verify host/user/database before running):',
'db_backup_confirmed'=>'I have backed up and agree that all existing tables will be dropped',
'db_backup_confirmed'=>'I have backed up and agree that existing tables starting with my table prefix will be dropped',
'error_db_cleanup_consent_required'=>'You must consent to dropping existing tables before proceeding to the next step.',
'db_force_proceed_drop'=>'Drop all existing tables and install',
'db_force_proceed_drop'=>'Drop existing tables and install',
'db_force_proceed_confirmed'=>'Force install mode (existing tables will be dropped)',
'log_db_cleanup_skipped'=>'Skipping existing table cleanup (no action)',
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.