@genpact/genome.mfe.v6-app 1.0.842-alpha → 1.0.843-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/{AddPrompt-ca72f43e.mjs → AddPrompt-ede6f9bf.mjs} +5 -5
  2. package/dist/{Admin-64453a60.mjs → Admin-42ba9f24.mjs} +4 -4
  3. package/dist/{AlertPopup-fa9c9f09.mjs → AlertPopup-e130fa3c.mjs} +1 -1
  4. package/dist/{Header-672a4d40.mjs → Header-3a1fc1d1.mjs} +3 -3
  5. package/dist/{HomeView-06a13a0c.mjs → HomeView-d432dbc5.mjs} +3 -3
  6. package/dist/{Loader-ca772521.mjs → Loader-ed87fa61.mjs} +1 -1
  7. package/dist/{Loading-6d9037eb.mjs → Loading-7f9ad8e7.mjs} +1 -1
  8. package/dist/{ModalComp-7d942e88.mjs → ModalComp-1c5555cd.mjs} +1 -1
  9. package/dist/{NewQuestion-fcb7ff02.mjs → NewQuestion-4ce8713f.mjs} +2 -2
  10. package/dist/{PopupComponent-b5099b88.mjs → PopupComponent-b71f5b7d.mjs} +2 -2
  11. package/dist/{Prompt-8c74b30b.mjs → Prompt-7bba2419.mjs} +5 -5
  12. package/dist/{PromptDetails-fec0a637.mjs → PromptDetails-8bc080f9.mjs} +5 -5
  13. package/dist/{PromptExecutionStatus-361dec97.mjs → PromptExecutionStatus-3c633428.mjs} +2 -2
  14. package/dist/{PromptPastExecutions-dd5b07af.mjs → PromptPastExecutions-37b4be99.mjs} +5 -5
  15. package/dist/{PromptTesting-85db885b.mjs → PromptTesting-d6cf25c1.mjs} +1 -1
  16. package/dist/{SkillshareprofileComponent-3fa11c74.mjs → SkillshareprofileComponent-7cd40e79.mjs} +2 -2
  17. package/dist/{Taleo-70d52f2c.mjs → Taleo-e364c81d.mjs} +5 -5
  18. package/dist/{UnderMaintenance-24a550e6.mjs → UnderMaintenance-3af8fd77.mjs} +1 -1
  19. package/dist/{UnderMaintenance-c1ef6ee3.mjs → UnderMaintenance-6d82938e.mjs} +1 -1
  20. package/dist/{Version6-afc141b6.mjs → Version6-a74074eb.mjs} +8 -8
  21. package/dist/{delphi_utils-5c71bb84.mjs → delphi_utils-4fcd7d59.mjs} +1 -1
  22. package/dist/{index-78cf052a.mjs → index-c68482da.mjs} +1 -1
  23. package/dist/{index.es-383f9d96.mjs → index.es-2a97c185.mjs} +8 -8
  24. package/dist/{main-94737b54.mjs → main-d5054b8b.mjs} +1831 -1831
  25. package/dist/{simulation-46e0614b.mjs → simulation-39387f5d.mjs} +3 -3
  26. package/dist/{simulation.vue_vue_type_script_setup_true_lang-87213b07.mjs → simulation.vue_vue_type_script_setup_true_lang-577c4e74.mjs} +2 -2
  27. package/dist/v6.es.min.js +1 -1
  28. package/dist/v6.umd.min.js +2 -2
  29. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import { _ as o } from "./simulation.vue_vue_type_script_setup_true_lang-87213b07.mjs";
1
+ import { _ as o } from "./simulation.vue_vue_type_script_setup_true_lang-577c4e74.mjs";
2
2
  import "./loadernew-ac153a51.mjs";
3
- import "./Loading-6d9037eb.mjs";
4
- import "./main-94737b54.mjs";
3
+ import "./Loading-7f9ad8e7.mjs";
4
+ import "./main-d5054b8b.mjs";
5
5
  export {
6
6
  o as default
7
7
  };
@@ -1,6 +1,6 @@
1
1
  import { _ as UE } from "./loadernew-ac153a51.mjs";
2
- import { a as JE, L as wE, _ as kE, Q as f, M as iE, b as aE } from "./Loading-6d9037eb.mjs";
3
- import { o as i, c as h, a as I, d as V, u as r, t as Z, _ as z, i as g, X as d, h as KE, b as oE, f as u, F as v, Z as b, r as J, w as xE, e as $, q as X, z as qE, g as P, a5 as cE, x as L, U as DE, n as GE, v as YE, a3 as sE, a6 as _, k as hE, a4 as RE, j as FE } from "./main-94737b54.mjs";
2
+ import { a as JE, L as wE, _ as kE, Q as f, M as iE, b as aE } from "./Loading-7f9ad8e7.mjs";
3
+ import { o as i, c as h, a as I, d as V, u as r, t as Z, _ as z, i as g, X as d, h as KE, b as oE, f as u, F as v, Z as b, r as J, w as xE, e as $, q as X, z as qE, g as P, a5 as cE, x as L, U as DE, n as GE, v as YE, a3 as sE, a6 as _, k as hE, a4 as RE, j as FE } from "./main-d5054b8b.mjs";
4
4
  function mE(S, E) {
5
5
  return i(), h("svg", {
6
6
  xmlns: "http://www.w3.org/2000/svg",
package/dist/v6.es.min.js CHANGED
@@ -1 +1 @@
1
- import "./main-94737b54.mjs";
1
+ import "./main-d5054b8b.mjs";
@@ -21,7 +21,7 @@ var q1t=Object.defineProperty;var K1t=(rL,qN,Rj)=>qN in rL?q1t(rL,qN,{enumerable
21
21
  * vue-router v4.5.1
22
22
  * (c) 2025 Eduardo San Martin Morote
23
23
  * @license MIT
24
- */const $y=typeof document<"u";function qC(L){return typeof L=="object"||"displayName"in L||"props"in L||"__vccOpts"in L}function gX(L){return L.__esModule||L[Symbol.toStringTag]==="Module"||L.default&&qC(L.default)}const $j=Object.assign;function dx(L,M){const t={};for(const j in M){const u=M[j];t[j]=te(u)?u.map(L):L(u)}return t}const Sn=()=>{},te=Array.isArray,KC=/#/g,oX=/&/g,xX=/\//g,EX=/=/g,lX=/\?/g,_C=/\+/g,OX=/%5B/g,dX=/%5D/g,$C=/%5E/g,wX=/%60/g,MQ=/%7B/g,fX=/%7C/g,tQ=/%7D/g,CX=/%20/g;function wx(L){return encodeURI(""+L).replace(fX,"|").replace(OX,"[").replace(dX,"]")}function QX(L){return wx(L).replace(MQ,"{").replace(tQ,"}").replace($C,"^")}function fx(L){return wx(L).replace(_C,"%2B").replace(CX,"+").replace(KC,"%23").replace(oX,"%26").replace(wX,"`").replace(MQ,"{").replace(tQ,"}").replace($C,"^")}function UX(L){return fx(L).replace(EX,"%3D")}function hX(L){return wx(L).replace(KC,"%23").replace(lX,"%3F")}function YX(L){return L==null?"":hX(L).replace(xX,"%2F")}function yn(L){try{return decodeURIComponent(""+L)}catch{}return""+L}const vX=/\/$/,kX=L=>L.replace(vX,"");function Cx(L,M,t="/"){let j,u={},A="",N="";const e=M.indexOf("#");let i=M.indexOf("?");return e<i&&e>=0&&(i=-1),i>-1&&(j=M.slice(0,i),A=M.slice(i+1,e>-1?e:M.length),u=L(A)),e>-1&&(j=j||M.slice(0,e),N=M.slice(e,M.length)),j=PX(j??M,t),{fullPath:j+(A&&"?")+A+N,path:j,query:u,hash:yn(N)}}function pX(L,M){const t=M.query?L(M.query):"";return M.path+(t&&"?")+t+(M.hash||"")}function LQ(L,M){return!M||!L.toLowerCase().startsWith(M.toLowerCase())?L:L.slice(M.length)||"/"}function mX(L,M,t){const j=M.matched.length-1,u=t.matched.length-1;return j>-1&&j===u&&Mr(M.matched[j],t.matched[u])&&jQ(M.params,t.params)&&L(M.query)===L(t.query)&&M.hash===t.hash}function Mr(L,M){return(L.aliasOf||L)===(M.aliasOf||M)}function jQ(L,M){if(Object.keys(L).length!==Object.keys(M).length)return!1;for(const t in L)if(!bX(L[t],M[t]))return!1;return!0}function bX(L,M){return te(L)?uQ(L,M):te(M)?uQ(M,L):L===M}function uQ(L,M){return te(M)?L.length===M.length&&L.every((t,j)=>t===M[j]):L.length===1&&L[0]===M}function PX(L,M){if(L.startsWith("/"))return L;if(!L)return M;const t=M.split("/"),j=L.split("/"),u=j[j.length-1];(u===".."||u===".")&&j.push("");let A=t.length-1,N,e;for(N=0;N<j.length;N++)if(e=j[N],e!==".")if(e==="..")A>1&&A--;else break;return t.slice(0,A).join("/")+"/"+j.slice(N).join("/")}const d0={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var rn;(function(L){L.pop="pop",L.push="push"})(rn||(rn={}));var Dn;(function(L){L.back="back",L.forward="forward",L.unknown=""})(Dn||(Dn={}));function RX(L){if(!L)if($y){const M=document.querySelector("base");L=M&&M.getAttribute("href")||"/",L=L.replace(/^\w+:\/\/[^\/]+/,"")}else L="/";return L[0]!=="/"&&L[0]!=="#"&&(L="/"+L),kX(L)}const BX=/^[^#]+#/;function HX(L,M){return L.replace(BX,"#")+M}function ZX(L,M){const t=document.documentElement.getBoundingClientRect(),j=L.getBoundingClientRect();return{behavior:M.behavior,left:j.left-t.left-(M.left||0),top:j.top-t.top-(M.top||0)}}const lz=()=>({left:window.scrollX,top:window.scrollY});function FX(L){let M;if("el"in L){const t=L.el,j=typeof t=="string"&&t.startsWith("#"),u=typeof t=="string"?j?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!u)return;M=ZX(u,L)}else M=L;"scrollBehavior"in document.documentElement.style?window.scrollTo(M):window.scrollTo(M.left!=null?M.left:window.scrollX,M.top!=null?M.top:window.scrollY)}function AQ(L,M){return(history.state?history.state.position-M:-1)+L}const Qx=new Map;function XX(L,M){Qx.set(L,M)}function GX(L){const M=Qx.get(L);return Qx.delete(L),M}let WX=()=>location.protocol+"//"+location.host;function NQ(L,M){const{pathname:t,search:j,hash:u}=M,A=L.indexOf("#");if(A>-1){let e=u.includes(L.slice(A))?L.slice(A).length:1,i=u.slice(e);return i[0]!=="/"&&(i="/"+i),LQ(i,"")}return LQ(t,L)+j+u}function VX(L,M,t,j){let u=[],A=[],N=null;const e=({state:D})=>{const n=NQ(L,location),s=t.value,z=M.value;let T=0;if(D){if(t.value=n,M.value=D,N&&N===s){N=null;return}T=z?D.position-z.position:0}else j(n);u.forEach(I=>{I(t.value,s,{delta:T,type:rn.pop,direction:T?T>0?Dn.forward:Dn.back:Dn.unknown})})};function i(){N=t.value}function S(D){u.push(D);const n=()=>{const s=u.indexOf(D);s>-1&&u.splice(s,1)};return A.push(n),n}function y(){const{history:D}=window;D.state&&D.replaceState($j({},D.state,{scroll:lz()}),"")}function r(){for(const D of A)D();A=[],window.removeEventListener("popstate",e),window.removeEventListener("beforeunload",y)}return window.addEventListener("popstate",e),window.addEventListener("beforeunload",y,{passive:!0}),{pauseListeners:i,listen:S,destroy:r}}function eQ(L,M,t,j=!1,u=!1){return{back:L,current:M,forward:t,replaced:j,position:window.history.length,scroll:u?lz():null}}function JX(L){const{history:M,location:t}=window,j={value:NQ(L,t)},u={value:M.state};u.value||A(j.value,{back:null,current:j.value,forward:null,position:M.length-1,replaced:!0,scroll:null},!0);function A(i,S,y){const r=L.indexOf("#"),D=r>-1?(t.host&&document.querySelector("base")?L:L.slice(r))+i:WX()+L+i;try{M[y?"replaceState":"pushState"](S,"",D),u.value=S}catch(n){console.error(n),t[y?"replace":"assign"](D)}}function N(i,S){const y=$j({},M.state,eQ(u.value.back,i,u.value.forward,!0),S,{position:u.value.position});A(i,y,!0),j.value=i}function e(i,S){const y=$j({},u.value,M.state,{forward:i,scroll:lz()});A(y.current,y,!0);const r=$j({},eQ(j.value,i,null),{position:y.position+1},S);A(i,r,!1),j.value=i}return{location:j,state:u,push:e,replace:N}}function qX(L){L=RX(L);const M=JX(L),t=VX(L,M.state,M.location,M.replace);function j(A,N=!0){N||t.pauseListeners(),history.go(A)}const u=$j({location:"",base:L,go:j,createHref:HX.bind(null,L)},M,t);return Object.defineProperty(u,"location",{enumerable:!0,get:()=>M.location.value}),Object.defineProperty(u,"state",{enumerable:!0,get:()=>M.state.value}),u}function KX(L){return typeof L=="string"||L&&typeof L=="object"}function iQ(L){return typeof L=="string"||typeof L=="symbol"}const SQ=Symbol("");var yQ;(function(L){L[L.aborted=4]="aborted",L[L.cancelled=8]="cancelled",L[L.duplicated=16]="duplicated"})(yQ||(yQ={}));function tr(L,M){return $j(new Error,{type:L,[SQ]:!0},M)}function oi(L,M){return L instanceof Error&&SQ in L&&(M==null||!!(L.type&M))}const rQ="[^/]+?",_X={sensitive:!1,strict:!1,start:!0,end:!0},$X=/[.+*?^${}()[\]/\\]/g;function MG(L,M){const t=$j({},_X,M),j=[];let u=t.start?"^":"";const A=[];for(const S of L){const y=S.length?[]:[90];t.strict&&!S.length&&(u+="/");for(let r=0;r<S.length;r++){const D=S[r];let n=40+(t.sensitive?.25:0);if(D.type===0)r||(u+="/"),u+=D.value.replace($X,"\\$&"),n+=40;else if(D.type===1){const{value:s,repeatable:z,optional:T,regexp:I}=D;A.push({name:s,repeatable:z,optional:T});const a=I||rQ;if(a!==rQ){n+=10;try{new RegExp(`(${a})`)}catch(x){throw new Error(`Invalid custom RegExp for param "${s}" (${a}): `+x.message)}}let g=z?`((?:${a})(?:/(?:${a}))*)`:`(${a})`;r||(g=T&&S.length<2?`(?:/${g})`:"/"+g),T&&(g+="?"),u+=g,n+=20,T&&(n+=-8),z&&(n+=-20),a===".*"&&(n+=-50)}y.push(n)}j.push(y)}if(t.strict&&t.end){const S=j.length-1;j[S][j[S].length-1]+=.7000000000000001}t.strict||(u+="/?"),t.end?u+="$":t.strict&&!u.endsWith("/")&&(u+="(?:/|$)");const N=new RegExp(u,t.sensitive?"":"i");function e(S){const y=S.match(N),r={};if(!y)return null;for(let D=1;D<y.length;D++){const n=y[D]||"",s=A[D-1];r[s.name]=n&&s.repeatable?n.split("/"):n}return r}function i(S){let y="",r=!1;for(const D of L){(!r||!y.endsWith("/"))&&(y+="/"),r=!1;for(const n of D)if(n.type===0)y+=n.value;else if(n.type===1){const{value:s,repeatable:z,optional:T}=n,I=s in S?S[s]:"";if(te(I)&&!z)throw new Error(`Provided param "${s}" is an array but it is not repeatable (* or + modifiers)`);const a=te(I)?I.join("/"):I;if(!a)if(T)D.length<2&&(y.endsWith("/")?y=y.slice(0,-1):r=!0);else throw new Error(`Missing required param "${s}"`);y+=a}}return y||"/"}return{re:N,score:j,keys:A,parse:e,stringify:i}}function tG(L,M){let t=0;for(;t<L.length&&t<M.length;){const j=M[t]-L[t];if(j)return j;t++}return L.length<M.length?L.length===1&&L[0]===40+40?-1:1:L.length>M.length?M.length===1&&M[0]===40+40?1:-1:0}function DQ(L,M){let t=0;const j=L.score,u=M.score;for(;t<j.length&&t<u.length;){const A=tG(j[t],u[t]);if(A)return A;t++}if(Math.abs(u.length-j.length)===1){if(nQ(j))return 1;if(nQ(u))return-1}return u.length-j.length}function nQ(L){const M=L[L.length-1];return L.length>0&&M[M.length-1]<0}const LG={type:0,value:""},jG=/[a-zA-Z0-9_]/;function uG(L){if(!L)return[[]];if(L==="/")return[[LG]];if(!L.startsWith("/"))throw new Error(`Invalid path "${L}"`);function M(n){throw new Error(`ERR (${t})/"${S}": ${n}`)}let t=0,j=t;const u=[];let A;function N(){A&&u.push(A),A=[]}let e=0,i,S="",y="";function r(){S&&(t===0?A.push({type:0,value:S}):t===1||t===2||t===3?(A.length>1&&(i==="*"||i==="+")&&M(`A repeatable param (${S}) must be alone in its segment. eg: '/:ids+.`),A.push({type:1,value:S,regexp:y,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):M("Invalid state to consume buffer"),S="")}function D(){S+=i}for(;e<L.length;){if(i=L[e++],i==="\\"&&t!==2){j=t,t=4;continue}switch(t){case 0:i==="/"?(S&&r(),N()):i===":"?(r(),t=1):D();break;case 4:D(),t=j;break;case 1:i==="("?t=2:jG.test(i)?D():(r(),t=0,i!=="*"&&i!=="?"&&i!=="+"&&e--);break;case 2:i===")"?y[y.length-1]=="\\"?y=y.slice(0,-1)+i:t=3:y+=i;break;case 3:r(),t=0,i!=="*"&&i!=="?"&&i!=="+"&&e--,y="";break;default:M("Unknown state");break}}return t===2&&M(`Unfinished custom RegExp for param "${S}"`),r(),N(),u}function AG(L,M,t){const j=MG(uG(L.path),t),u=$j(j,{record:L,parent:M,children:[],alias:[]});return M&&!u.record.aliasOf==!M.record.aliasOf&&M.children.push(u),u}function NG(L,M){const t=[],j=new Map;M=IQ({strict:!1,end:!0,sensitive:!1},M);function u(r){return j.get(r)}function A(r,D,n){const s=!n,z=TQ(r);z.aliasOf=n&&n.record;const T=IQ(M,r),I=[z];if("alias"in r){const x=typeof r.alias=="string"?[r.alias]:r.alias;for(const E of x)I.push(TQ($j({},z,{components:n?n.record.components:z.components,path:E,aliasOf:n?n.record:z})))}let a,g;for(const x of I){const{path:E}=x;if(D&&E[0]!=="/"){const C=D.record.path,Y=C[C.length-1]==="/"?"":"/";x.path=D.record.path+(E&&Y+E)}if(a=AG(x,D,T),n?n.alias.push(a):(g=g||a,g!==a&&g.alias.push(a),s&&r.name&&!zQ(a)&&N(r.name)),cQ(a)&&i(a),z.children){const C=z.children;for(let Y=0;Y<C.length;Y++)A(C[Y],a,n&&n.children[Y])}n=n||a}return g?()=>{N(g)}:Sn}function N(r){if(iQ(r)){const D=j.get(r);D&&(j.delete(r),t.splice(t.indexOf(D),1),D.children.forEach(N),D.alias.forEach(N))}else{const D=t.indexOf(r);D>-1&&(t.splice(D,1),r.record.name&&j.delete(r.record.name),r.children.forEach(N),r.alias.forEach(N))}}function e(){return t}function i(r){const D=SG(r,t);t.splice(D,0,r),r.record.name&&!zQ(r)&&j.set(r.record.name,r)}function S(r,D){let n,s={},z,T;if("name"in r&&r.name){if(n=j.get(r.name),!n)throw tr(1,{location:r});T=n.record.name,s=$j(sQ(D.params,n.keys.filter(g=>!g.optional).concat(n.parent?n.parent.keys.filter(g=>g.optional):[]).map(g=>g.name)),r.params&&sQ(r.params,n.keys.map(g=>g.name))),z=n.stringify(s)}else if(r.path!=null)z=r.path,n=t.find(g=>g.re.test(z)),n&&(s=n.parse(z),T=n.record.name);else{if(n=D.name?j.get(D.name):t.find(g=>g.re.test(D.path)),!n)throw tr(1,{location:r,currentLocation:D});T=n.record.name,s=$j({},D.params,r.params),z=n.stringify(s)}const I=[];let a=n;for(;a;)I.unshift(a.record),a=a.parent;return{name:T,path:z,params:s,matched:I,meta:iG(I)}}L.forEach(r=>A(r));function y(){t.length=0,j.clear()}return{addRoute:A,resolve:S,removeRoute:N,clearRoutes:y,getRoutes:e,getRecordMatcher:u}}function sQ(L,M){const t={};for(const j of M)j in L&&(t[j]=L[j]);return t}function TQ(L){const M={path:L.path,redirect:L.redirect,name:L.name,meta:L.meta||{},aliasOf:L.aliasOf,beforeEnter:L.beforeEnter,props:eG(L),children:L.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in L?L.components||null:L.component&&{default:L.component}};return Object.defineProperty(M,"mods",{value:{}}),M}function eG(L){const M={},t=L.props||!1;if("component"in L)M.default=t;else for(const j in L.components)M[j]=typeof t=="object"?t[j]:t;return M}function zQ(L){for(;L;){if(L.record.aliasOf)return!0;L=L.parent}return!1}function iG(L){return L.reduce((M,t)=>$j(M,t.meta),{})}function IQ(L,M){const t={};for(const j in L)t[j]=j in M?M[j]:L[j];return t}function SG(L,M){let t=0,j=M.length;for(;t!==j;){const A=t+j>>1;DQ(L,M[A])<0?j=A:t=A+1}const u=yG(L);return u&&(j=M.lastIndexOf(u,j-1)),j}function yG(L){let M=L;for(;M=M.parent;)if(cQ(M)&&DQ(L,M)===0)return M}function cQ({record:L}){return!!(L.name||L.components&&Object.keys(L.components).length||L.redirect)}function rG(L){const M={};if(L===""||L==="?")return M;const j=(L[0]==="?"?L.slice(1):L).split("&");for(let u=0;u<j.length;++u){const A=j[u].replace(_C," "),N=A.indexOf("="),e=yn(N<0?A:A.slice(0,N)),i=N<0?null:yn(A.slice(N+1));if(e in M){let S=M[e];te(S)||(S=M[e]=[S]),S.push(i)}else M[e]=i}return M}function aQ(L){let M="";for(let t in L){const j=L[t];if(t=UX(t),j==null){j!==void 0&&(M+=(M.length?"&":"")+t);continue}(te(j)?j.map(A=>A&&fx(A)):[j&&fx(j)]).forEach(A=>{A!==void 0&&(M+=(M.length?"&":"")+t,A!=null&&(M+="="+A))})}return M}function DG(L){const M={};for(const t in L){const j=L[t];j!==void 0&&(M[t]=te(j)?j.map(u=>u==null?null:""+u):j==null?j:""+j)}return M}const nG=Symbol(""),gQ=Symbol(""),Oz=Symbol(""),Ux=Symbol(""),hx=Symbol("");function nn(){let L=[];function M(j){return L.push(j),()=>{const u=L.indexOf(j);u>-1&&L.splice(u,1)}}function t(){L=[]}return{add:M,list:()=>L.slice(),reset:t}}function w0(L,M,t,j,u,A=N=>N()){const N=j&&(j.enterCallbacks[u]=j.enterCallbacks[u]||[]);return()=>new Promise((e,i)=>{const S=D=>{D===!1?i(tr(4,{from:t,to:M})):D instanceof Error?i(D):KX(D)?i(tr(2,{from:M,to:D})):(N&&j.enterCallbacks[u]===N&&typeof D=="function"&&N.push(D),e())},y=A(()=>L.call(j&&j.instances[u],M,t,S));let r=Promise.resolve(y);L.length<3&&(r=r.then(S)),r.catch(D=>i(D))})}function Yx(L,M,t,j,u=A=>A()){const A=[];for(const N of L)for(const e in N.components){let i=N.components[e];if(!(M!=="beforeRouteEnter"&&!N.instances[e]))if(qC(i)){const y=(i.__vccOpts||i)[M];y&&A.push(w0(y,t,j,N,e,u))}else{let S=i();A.push(()=>S.then(y=>{if(!y)throw new Error(`Couldn't resolve component "${e}" at "${N.path}"`);const r=gX(y)?y.default:y;N.mods[e]=y,N.components[e]=r;const n=(r.__vccOpts||r)[M];return n&&w0(n,t,j,N,e,u)()}))}}return A}function oQ(L){const M=KA(Oz),t=KA(Ux),j=SL(()=>{const i=TM(L.to);return M.resolve(i)}),u=SL(()=>{const{matched:i}=j.value,{length:S}=i,y=i[S-1],r=t.matched;if(!y||!r.length)return-1;const D=r.findIndex(Mr.bind(null,y));if(D>-1)return D;const n=xQ(i[S-2]);return S>1&&xQ(y)===n&&r[r.length-1].path!==n?r.findIndex(Mr.bind(null,i[S-2])):D}),A=SL(()=>u.value>-1&&IG(t.params,j.value.params)),N=SL(()=>u.value>-1&&u.value===t.matched.length-1&&jQ(t.params,j.value.params));function e(i={}){if(zG(i)){const S=M[TM(L.replace)?"replace":"push"](TM(L.to)).catch(Sn);return L.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>S),S}return Promise.resolve()}return{route:j,href:SL(()=>j.value.href),isActive:A,isExactActive:N,navigate:e}}function sG(L){return L.length===1?L[0]:L}const TG=bt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:oQ,setup(L,{slots:M}){const t=Hy(oQ(L)),{options:j}=KA(Oz),u=SL(()=>({[EQ(L.activeClass,j.linkActiveClass,"router-link-active")]:t.isActive,[EQ(L.exactActiveClass,j.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const A=M.default&&sG(M.default(t));return L.custom?A:qy("a",{"aria-current":t.isExactActive?L.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:u.value},A)}}});function zG(L){if(!(L.metaKey||L.altKey||L.ctrlKey||L.shiftKey)&&!L.defaultPrevented&&!(L.button!==void 0&&L.button!==0)){if(L.currentTarget&&L.currentTarget.getAttribute){const M=L.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(M))return}return L.preventDefault&&L.preventDefault(),!0}}function IG(L,M){for(const t in M){const j=M[t],u=L[t];if(typeof j=="string"){if(j!==u)return!1}else if(!te(u)||u.length!==j.length||j.some((A,N)=>A!==u[N]))return!1}return!0}function xQ(L){return L?L.aliasOf?L.aliasOf.path:L.path:""}const EQ=(L,M,t)=>L??M??t,cG=bt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(L,{attrs:M,slots:t}){const j=KA(hx),u=SL(()=>L.route||j.value),A=KA(gQ,0),N=SL(()=>{let S=TM(A);const{matched:y}=u.value;let r;for(;(r=y[S])&&!r.components;)S++;return S}),e=SL(()=>u.value.matched[N.value]);rz(gQ,SL(()=>N.value+1)),rz(nG,e),rz(hx,u);const i=J();return Nu(()=>[i.value,e.value,L.name],([S,y,r],[D,n,s])=>{y&&(y.instances[r]=S,n&&n!==y&&S&&S===D&&(y.leaveGuards.size||(y.leaveGuards=n.leaveGuards),y.updateGuards.size||(y.updateGuards=n.updateGuards))),S&&y&&(!n||!Mr(y,n)||!D)&&(y.enterCallbacks[r]||[]).forEach(z=>z(S))},{flush:"post"}),()=>{const S=u.value,y=L.name,r=e.value,D=r&&r.components[y];if(!D)return lQ(t.default,{Component:D,route:S});const n=r.props[y],s=n?n===!0?S.params:typeof n=="function"?n(S):n:null,T=qy(D,$j({},s,M,{onVnodeUnmounted:I=>{I.component.isUnmounted&&(r.instances[y]=null)},ref:i}));return lQ(t.default,{Component:T,route:S})||T}}});function lQ(L,M){if(!L)return null;const t=L(M);return t.length===1?t[0]:t}const vx=cG;function aG(L){const M=NG(L.routes,L),t=L.parseQuery||rG,j=L.stringifyQuery||aQ,u=L.history,A=nn(),N=nn(),e=nn(),i=Ko(d0);let S=d0;$y&&L.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const y=dx.bind(null,K=>""+K),r=dx.bind(null,YX),D=dx.bind(null,yn);function n(K,H){let P,V;return iQ(K)?(P=M.getRecordMatcher(K),V=H):V=K,M.addRoute(V,P)}function s(K){const H=M.getRecordMatcher(K);H&&M.removeRoute(H)}function z(){return M.getRoutes().map(K=>K.record)}function T(K){return!!M.getRecordMatcher(K)}function I(K,H){if(H=$j({},H||i.value),typeof K=="string"){const uM=Cx(t,K,H.path),rM=M.resolve({path:uM.path},H),eM=u.createHref(uM.fullPath);return $j(uM,rM,{params:D(rM.params),hash:yn(uM.hash),redirectedFrom:void 0,href:eM})}let P;if(K.path!=null)P=$j({},K,{path:Cx(t,K.path,H.path).path});else{const uM=$j({},K.params);for(const rM in uM)uM[rM]==null&&delete uM[rM];P=$j({},K,{params:r(uM)}),H.params=r(H.params)}const V=M.resolve(P,H),$=K.hash||"";V.params=y(D(V.params));const AM=pX(j,$j({},K,{hash:QX($),path:V.path})),_=u.createHref(AM);return $j({fullPath:AM,hash:$,query:j===aQ?DG(K.query):K.query||{}},V,{redirectedFrom:void 0,href:_})}function a(K){return typeof K=="string"?Cx(t,K,i.value.path):$j({},K)}function g(K,H){if(S!==K)return tr(8,{from:H,to:K})}function x(K){return Y(K)}function E(K){return x($j(a(K),{replace:!0}))}function C(K){const H=K.matched[K.matched.length-1];if(H&&H.redirect){const{redirect:P}=H;let V=typeof P=="function"?P(K):P;return typeof V=="string"&&(V=V.includes("?")||V.includes("#")?V=a(V):{path:V},V.params={}),$j({query:K.query,hash:K.hash,params:V.path!=null?{}:K.params},V)}}function Y(K,H){const P=S=I(K),V=i.value,$=K.state,AM=K.force,_=K.replace===!0,uM=C(P);if(uM)return Y($j(a(uM),{state:typeof uM=="object"?$j({},$,uM.state):$,force:AM,replace:_}),H||P);const rM=P;rM.redirectedFrom=H;let eM;return!AM&&mX(j,V,P)&&(eM=tr(16,{to:rM,from:V}),F(V,V,!0,!1)),(eM?Promise.resolve(eM):p(rM,V)).catch(MM=>oi(MM)?oi(MM,2)?MM:k(MM):O(MM,rM,V)).then(MM=>{if(MM){if(oi(MM,2))return Y($j({replace:_},a(MM.to),{state:typeof MM.to=="object"?$j({},$,MM.to.state):$,force:AM}),H||rM)}else MM=v(rM,V,!0,_,$);return b(rM,V,MM),MM})}function U(K,H){const P=g(K,H);return P?Promise.reject(P):Promise.resolve()}function f(K){const H=W.values().next().value;return H&&typeof H.runWithContext=="function"?H.runWithContext(K):K()}function p(K,H){let P;const[V,$,AM]=gG(K,H);P=Yx(V.reverse(),"beforeRouteLeave",K,H);for(const uM of V)uM.leaveGuards.forEach(rM=>{P.push(w0(rM,K,H))});const _=U.bind(null,K,H);return P.push(_),Z(P).then(()=>{P=[];for(const uM of A.list())P.push(w0(uM,K,H));return P.push(_),Z(P)}).then(()=>{P=Yx($,"beforeRouteUpdate",K,H);for(const uM of $)uM.updateGuards.forEach(rM=>{P.push(w0(rM,K,H))});return P.push(_),Z(P)}).then(()=>{P=[];for(const uM of AM)if(uM.beforeEnter)if(te(uM.beforeEnter))for(const rM of uM.beforeEnter)P.push(w0(rM,K,H));else P.push(w0(uM.beforeEnter,K,H));return P.push(_),Z(P)}).then(()=>(K.matched.forEach(uM=>uM.enterCallbacks={}),P=Yx(AM,"beforeRouteEnter",K,H,f),P.push(_),Z(P))).then(()=>{P=[];for(const uM of N.list())P.push(w0(uM,K,H));return P.push(_),Z(P)}).catch(uM=>oi(uM,8)?uM:Promise.reject(uM))}function b(K,H,P){e.list().forEach(V=>f(()=>V(K,H,P)))}function v(K,H,P,V,$){const AM=g(K,H);if(AM)return AM;const _=H===d0,uM=$y?history.state:{};P&&(V||_?u.replace(K.fullPath,$j({scroll:_&&uM&&uM.scroll},$)):u.push(K.fullPath,$)),i.value=K,F(K,H,P,_),k()}let h;function Q(){h||(h=u.listen((K,H,P)=>{if(!tM.listening)return;const V=I(K),$=C(V);if($){Y($j($,{replace:!0,force:!0}),V).catch(Sn);return}S=V;const AM=i.value;$y&&XX(AQ(AM.fullPath,P.delta),lz()),p(V,AM).catch(_=>oi(_,12)?_:oi(_,2)?(Y($j(a(_.to),{force:!0}),V).then(uM=>{oi(uM,20)&&!P.delta&&P.type===rn.pop&&u.go(-1,!1)}).catch(Sn),Promise.reject()):(P.delta&&u.go(-P.delta,!1),O(_,V,AM))).then(_=>{_=_||v(V,AM,!1),_&&(P.delta&&!oi(_,8)?u.go(-P.delta,!1):P.type===rn.pop&&oi(_,20)&&u.go(-1,!1)),b(V,AM,_)}).catch(Sn)}))}let w=nn(),o=nn(),l;function O(K,H,P){k(K);const V=o.list();return V.length?V.forEach($=>$(K,H,P)):console.error(K),Promise.reject(K)}function d(){return l&&i.value!==d0?Promise.resolve():new Promise((K,H)=>{w.add([K,H])})}function k(K){return l||(l=!K,Q(),w.list().forEach(([H,P])=>K?P(K):H()),w.reset()),K}function F(K,H,P,V){const{scrollBehavior:$}=L;if(!$y||!$)return Promise.resolve();const AM=!P&&GX(AQ(K.fullPath,0))||(V||!P)&&history.state&&history.state.scroll||null;return Gy().then(()=>$(K,H,AM)).then(_=>_&&FX(_)).catch(_=>O(_,K,H))}const B=K=>u.go(K);let G;const W=new Set,tM={currentRoute:i,listening:!0,addRoute:n,removeRoute:s,clearRoutes:M.clearRoutes,hasRoute:T,getRoutes:z,resolve:I,options:L,push:x,replace:E,go:B,back:()=>B(-1),forward:()=>B(1),beforeEach:A.add,beforeResolve:N.add,afterEach:e.add,onError:o.add,isReady:d,install(K){const H=this;K.component("RouterLink",TG),K.component("RouterView",vx),K.config.globalProperties.$router=H,Object.defineProperty(K.config.globalProperties,"$route",{enumerable:!0,get:()=>TM(i)}),$y&&!G&&i.value===d0&&(G=!0,x(u.location).catch($=>{}));const P={};for(const $ in d0)Object.defineProperty(P,$,{get:()=>i.value[$],enumerable:!0});K.provide(Oz,H),K.provide(Ux,zf(P)),K.provide(hx,i);const V=K.unmount;W.add(K),K.unmount=function(){W.delete(K),W.size<1&&(S=d0,h&&h(),h=null,i.value=d0,G=!1,l=!1),V()}}};function Z(K){return K.reduce((H,P)=>H.then(()=>f(P)),Promise.resolve())}return tM}function gG(L,M){const t=[],j=[],u=[],A=Math.max(M.matched.length,L.matched.length);for(let N=0;N<A;N++){const e=M.matched[N];e&&(L.matched.find(S=>Mr(S,e))?j.push(e):t.push(e));const i=L.matched[N];i&&(M.matched.find(S=>Mr(S,i))||u.push(i))}return[t,j,u]}function oG(){return KA(Oz)}function kx(L){return KA(Ux)}const xG="1.0.842-alpha",EG="1.0.0",lG="2024-07-15";var OG=!1;/*!
24
+ */const $y=typeof document<"u";function qC(L){return typeof L=="object"||"displayName"in L||"props"in L||"__vccOpts"in L}function gX(L){return L.__esModule||L[Symbol.toStringTag]==="Module"||L.default&&qC(L.default)}const $j=Object.assign;function dx(L,M){const t={};for(const j in M){const u=M[j];t[j]=te(u)?u.map(L):L(u)}return t}const Sn=()=>{},te=Array.isArray,KC=/#/g,oX=/&/g,xX=/\//g,EX=/=/g,lX=/\?/g,_C=/\+/g,OX=/%5B/g,dX=/%5D/g,$C=/%5E/g,wX=/%60/g,MQ=/%7B/g,fX=/%7C/g,tQ=/%7D/g,CX=/%20/g;function wx(L){return encodeURI(""+L).replace(fX,"|").replace(OX,"[").replace(dX,"]")}function QX(L){return wx(L).replace(MQ,"{").replace(tQ,"}").replace($C,"^")}function fx(L){return wx(L).replace(_C,"%2B").replace(CX,"+").replace(KC,"%23").replace(oX,"%26").replace(wX,"`").replace(MQ,"{").replace(tQ,"}").replace($C,"^")}function UX(L){return fx(L).replace(EX,"%3D")}function hX(L){return wx(L).replace(KC,"%23").replace(lX,"%3F")}function YX(L){return L==null?"":hX(L).replace(xX,"%2F")}function yn(L){try{return decodeURIComponent(""+L)}catch{}return""+L}const vX=/\/$/,kX=L=>L.replace(vX,"");function Cx(L,M,t="/"){let j,u={},A="",N="";const e=M.indexOf("#");let i=M.indexOf("?");return e<i&&e>=0&&(i=-1),i>-1&&(j=M.slice(0,i),A=M.slice(i+1,e>-1?e:M.length),u=L(A)),e>-1&&(j=j||M.slice(0,e),N=M.slice(e,M.length)),j=PX(j??M,t),{fullPath:j+(A&&"?")+A+N,path:j,query:u,hash:yn(N)}}function pX(L,M){const t=M.query?L(M.query):"";return M.path+(t&&"?")+t+(M.hash||"")}function LQ(L,M){return!M||!L.toLowerCase().startsWith(M.toLowerCase())?L:L.slice(M.length)||"/"}function mX(L,M,t){const j=M.matched.length-1,u=t.matched.length-1;return j>-1&&j===u&&Mr(M.matched[j],t.matched[u])&&jQ(M.params,t.params)&&L(M.query)===L(t.query)&&M.hash===t.hash}function Mr(L,M){return(L.aliasOf||L)===(M.aliasOf||M)}function jQ(L,M){if(Object.keys(L).length!==Object.keys(M).length)return!1;for(const t in L)if(!bX(L[t],M[t]))return!1;return!0}function bX(L,M){return te(L)?uQ(L,M):te(M)?uQ(M,L):L===M}function uQ(L,M){return te(M)?L.length===M.length&&L.every((t,j)=>t===M[j]):L.length===1&&L[0]===M}function PX(L,M){if(L.startsWith("/"))return L;if(!L)return M;const t=M.split("/"),j=L.split("/"),u=j[j.length-1];(u===".."||u===".")&&j.push("");let A=t.length-1,N,e;for(N=0;N<j.length;N++)if(e=j[N],e!==".")if(e==="..")A>1&&A--;else break;return t.slice(0,A).join("/")+"/"+j.slice(N).join("/")}const d0={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var rn;(function(L){L.pop="pop",L.push="push"})(rn||(rn={}));var Dn;(function(L){L.back="back",L.forward="forward",L.unknown=""})(Dn||(Dn={}));function RX(L){if(!L)if($y){const M=document.querySelector("base");L=M&&M.getAttribute("href")||"/",L=L.replace(/^\w+:\/\/[^\/]+/,"")}else L="/";return L[0]!=="/"&&L[0]!=="#"&&(L="/"+L),kX(L)}const BX=/^[^#]+#/;function HX(L,M){return L.replace(BX,"#")+M}function ZX(L,M){const t=document.documentElement.getBoundingClientRect(),j=L.getBoundingClientRect();return{behavior:M.behavior,left:j.left-t.left-(M.left||0),top:j.top-t.top-(M.top||0)}}const lz=()=>({left:window.scrollX,top:window.scrollY});function FX(L){let M;if("el"in L){const t=L.el,j=typeof t=="string"&&t.startsWith("#"),u=typeof t=="string"?j?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!u)return;M=ZX(u,L)}else M=L;"scrollBehavior"in document.documentElement.style?window.scrollTo(M):window.scrollTo(M.left!=null?M.left:window.scrollX,M.top!=null?M.top:window.scrollY)}function AQ(L,M){return(history.state?history.state.position-M:-1)+L}const Qx=new Map;function XX(L,M){Qx.set(L,M)}function GX(L){const M=Qx.get(L);return Qx.delete(L),M}let WX=()=>location.protocol+"//"+location.host;function NQ(L,M){const{pathname:t,search:j,hash:u}=M,A=L.indexOf("#");if(A>-1){let e=u.includes(L.slice(A))?L.slice(A).length:1,i=u.slice(e);return i[0]!=="/"&&(i="/"+i),LQ(i,"")}return LQ(t,L)+j+u}function VX(L,M,t,j){let u=[],A=[],N=null;const e=({state:D})=>{const n=NQ(L,location),s=t.value,z=M.value;let T=0;if(D){if(t.value=n,M.value=D,N&&N===s){N=null;return}T=z?D.position-z.position:0}else j(n);u.forEach(I=>{I(t.value,s,{delta:T,type:rn.pop,direction:T?T>0?Dn.forward:Dn.back:Dn.unknown})})};function i(){N=t.value}function S(D){u.push(D);const n=()=>{const s=u.indexOf(D);s>-1&&u.splice(s,1)};return A.push(n),n}function y(){const{history:D}=window;D.state&&D.replaceState($j({},D.state,{scroll:lz()}),"")}function r(){for(const D of A)D();A=[],window.removeEventListener("popstate",e),window.removeEventListener("beforeunload",y)}return window.addEventListener("popstate",e),window.addEventListener("beforeunload",y,{passive:!0}),{pauseListeners:i,listen:S,destroy:r}}function eQ(L,M,t,j=!1,u=!1){return{back:L,current:M,forward:t,replaced:j,position:window.history.length,scroll:u?lz():null}}function JX(L){const{history:M,location:t}=window,j={value:NQ(L,t)},u={value:M.state};u.value||A(j.value,{back:null,current:j.value,forward:null,position:M.length-1,replaced:!0,scroll:null},!0);function A(i,S,y){const r=L.indexOf("#"),D=r>-1?(t.host&&document.querySelector("base")?L:L.slice(r))+i:WX()+L+i;try{M[y?"replaceState":"pushState"](S,"",D),u.value=S}catch(n){console.error(n),t[y?"replace":"assign"](D)}}function N(i,S){const y=$j({},M.state,eQ(u.value.back,i,u.value.forward,!0),S,{position:u.value.position});A(i,y,!0),j.value=i}function e(i,S){const y=$j({},u.value,M.state,{forward:i,scroll:lz()});A(y.current,y,!0);const r=$j({},eQ(j.value,i,null),{position:y.position+1},S);A(i,r,!1),j.value=i}return{location:j,state:u,push:e,replace:N}}function qX(L){L=RX(L);const M=JX(L),t=VX(L,M.state,M.location,M.replace);function j(A,N=!0){N||t.pauseListeners(),history.go(A)}const u=$j({location:"",base:L,go:j,createHref:HX.bind(null,L)},M,t);return Object.defineProperty(u,"location",{enumerable:!0,get:()=>M.location.value}),Object.defineProperty(u,"state",{enumerable:!0,get:()=>M.state.value}),u}function KX(L){return typeof L=="string"||L&&typeof L=="object"}function iQ(L){return typeof L=="string"||typeof L=="symbol"}const SQ=Symbol("");var yQ;(function(L){L[L.aborted=4]="aborted",L[L.cancelled=8]="cancelled",L[L.duplicated=16]="duplicated"})(yQ||(yQ={}));function tr(L,M){return $j(new Error,{type:L,[SQ]:!0},M)}function oi(L,M){return L instanceof Error&&SQ in L&&(M==null||!!(L.type&M))}const rQ="[^/]+?",_X={sensitive:!1,strict:!1,start:!0,end:!0},$X=/[.+*?^${}()[\]/\\]/g;function MG(L,M){const t=$j({},_X,M),j=[];let u=t.start?"^":"";const A=[];for(const S of L){const y=S.length?[]:[90];t.strict&&!S.length&&(u+="/");for(let r=0;r<S.length;r++){const D=S[r];let n=40+(t.sensitive?.25:0);if(D.type===0)r||(u+="/"),u+=D.value.replace($X,"\\$&"),n+=40;else if(D.type===1){const{value:s,repeatable:z,optional:T,regexp:I}=D;A.push({name:s,repeatable:z,optional:T});const a=I||rQ;if(a!==rQ){n+=10;try{new RegExp(`(${a})`)}catch(x){throw new Error(`Invalid custom RegExp for param "${s}" (${a}): `+x.message)}}let g=z?`((?:${a})(?:/(?:${a}))*)`:`(${a})`;r||(g=T&&S.length<2?`(?:/${g})`:"/"+g),T&&(g+="?"),u+=g,n+=20,T&&(n+=-8),z&&(n+=-20),a===".*"&&(n+=-50)}y.push(n)}j.push(y)}if(t.strict&&t.end){const S=j.length-1;j[S][j[S].length-1]+=.7000000000000001}t.strict||(u+="/?"),t.end?u+="$":t.strict&&!u.endsWith("/")&&(u+="(?:/|$)");const N=new RegExp(u,t.sensitive?"":"i");function e(S){const y=S.match(N),r={};if(!y)return null;for(let D=1;D<y.length;D++){const n=y[D]||"",s=A[D-1];r[s.name]=n&&s.repeatable?n.split("/"):n}return r}function i(S){let y="",r=!1;for(const D of L){(!r||!y.endsWith("/"))&&(y+="/"),r=!1;for(const n of D)if(n.type===0)y+=n.value;else if(n.type===1){const{value:s,repeatable:z,optional:T}=n,I=s in S?S[s]:"";if(te(I)&&!z)throw new Error(`Provided param "${s}" is an array but it is not repeatable (* or + modifiers)`);const a=te(I)?I.join("/"):I;if(!a)if(T)D.length<2&&(y.endsWith("/")?y=y.slice(0,-1):r=!0);else throw new Error(`Missing required param "${s}"`);y+=a}}return y||"/"}return{re:N,score:j,keys:A,parse:e,stringify:i}}function tG(L,M){let t=0;for(;t<L.length&&t<M.length;){const j=M[t]-L[t];if(j)return j;t++}return L.length<M.length?L.length===1&&L[0]===40+40?-1:1:L.length>M.length?M.length===1&&M[0]===40+40?1:-1:0}function DQ(L,M){let t=0;const j=L.score,u=M.score;for(;t<j.length&&t<u.length;){const A=tG(j[t],u[t]);if(A)return A;t++}if(Math.abs(u.length-j.length)===1){if(nQ(j))return 1;if(nQ(u))return-1}return u.length-j.length}function nQ(L){const M=L[L.length-1];return L.length>0&&M[M.length-1]<0}const LG={type:0,value:""},jG=/[a-zA-Z0-9_]/;function uG(L){if(!L)return[[]];if(L==="/")return[[LG]];if(!L.startsWith("/"))throw new Error(`Invalid path "${L}"`);function M(n){throw new Error(`ERR (${t})/"${S}": ${n}`)}let t=0,j=t;const u=[];let A;function N(){A&&u.push(A),A=[]}let e=0,i,S="",y="";function r(){S&&(t===0?A.push({type:0,value:S}):t===1||t===2||t===3?(A.length>1&&(i==="*"||i==="+")&&M(`A repeatable param (${S}) must be alone in its segment. eg: '/:ids+.`),A.push({type:1,value:S,regexp:y,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):M("Invalid state to consume buffer"),S="")}function D(){S+=i}for(;e<L.length;){if(i=L[e++],i==="\\"&&t!==2){j=t,t=4;continue}switch(t){case 0:i==="/"?(S&&r(),N()):i===":"?(r(),t=1):D();break;case 4:D(),t=j;break;case 1:i==="("?t=2:jG.test(i)?D():(r(),t=0,i!=="*"&&i!=="?"&&i!=="+"&&e--);break;case 2:i===")"?y[y.length-1]=="\\"?y=y.slice(0,-1)+i:t=3:y+=i;break;case 3:r(),t=0,i!=="*"&&i!=="?"&&i!=="+"&&e--,y="";break;default:M("Unknown state");break}}return t===2&&M(`Unfinished custom RegExp for param "${S}"`),r(),N(),u}function AG(L,M,t){const j=MG(uG(L.path),t),u=$j(j,{record:L,parent:M,children:[],alias:[]});return M&&!u.record.aliasOf==!M.record.aliasOf&&M.children.push(u),u}function NG(L,M){const t=[],j=new Map;M=IQ({strict:!1,end:!0,sensitive:!1},M);function u(r){return j.get(r)}function A(r,D,n){const s=!n,z=TQ(r);z.aliasOf=n&&n.record;const T=IQ(M,r),I=[z];if("alias"in r){const x=typeof r.alias=="string"?[r.alias]:r.alias;for(const E of x)I.push(TQ($j({},z,{components:n?n.record.components:z.components,path:E,aliasOf:n?n.record:z})))}let a,g;for(const x of I){const{path:E}=x;if(D&&E[0]!=="/"){const C=D.record.path,Y=C[C.length-1]==="/"?"":"/";x.path=D.record.path+(E&&Y+E)}if(a=AG(x,D,T),n?n.alias.push(a):(g=g||a,g!==a&&g.alias.push(a),s&&r.name&&!zQ(a)&&N(r.name)),cQ(a)&&i(a),z.children){const C=z.children;for(let Y=0;Y<C.length;Y++)A(C[Y],a,n&&n.children[Y])}n=n||a}return g?()=>{N(g)}:Sn}function N(r){if(iQ(r)){const D=j.get(r);D&&(j.delete(r),t.splice(t.indexOf(D),1),D.children.forEach(N),D.alias.forEach(N))}else{const D=t.indexOf(r);D>-1&&(t.splice(D,1),r.record.name&&j.delete(r.record.name),r.children.forEach(N),r.alias.forEach(N))}}function e(){return t}function i(r){const D=SG(r,t);t.splice(D,0,r),r.record.name&&!zQ(r)&&j.set(r.record.name,r)}function S(r,D){let n,s={},z,T;if("name"in r&&r.name){if(n=j.get(r.name),!n)throw tr(1,{location:r});T=n.record.name,s=$j(sQ(D.params,n.keys.filter(g=>!g.optional).concat(n.parent?n.parent.keys.filter(g=>g.optional):[]).map(g=>g.name)),r.params&&sQ(r.params,n.keys.map(g=>g.name))),z=n.stringify(s)}else if(r.path!=null)z=r.path,n=t.find(g=>g.re.test(z)),n&&(s=n.parse(z),T=n.record.name);else{if(n=D.name?j.get(D.name):t.find(g=>g.re.test(D.path)),!n)throw tr(1,{location:r,currentLocation:D});T=n.record.name,s=$j({},D.params,r.params),z=n.stringify(s)}const I=[];let a=n;for(;a;)I.unshift(a.record),a=a.parent;return{name:T,path:z,params:s,matched:I,meta:iG(I)}}L.forEach(r=>A(r));function y(){t.length=0,j.clear()}return{addRoute:A,resolve:S,removeRoute:N,clearRoutes:y,getRoutes:e,getRecordMatcher:u}}function sQ(L,M){const t={};for(const j of M)j in L&&(t[j]=L[j]);return t}function TQ(L){const M={path:L.path,redirect:L.redirect,name:L.name,meta:L.meta||{},aliasOf:L.aliasOf,beforeEnter:L.beforeEnter,props:eG(L),children:L.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in L?L.components||null:L.component&&{default:L.component}};return Object.defineProperty(M,"mods",{value:{}}),M}function eG(L){const M={},t=L.props||!1;if("component"in L)M.default=t;else for(const j in L.components)M[j]=typeof t=="object"?t[j]:t;return M}function zQ(L){for(;L;){if(L.record.aliasOf)return!0;L=L.parent}return!1}function iG(L){return L.reduce((M,t)=>$j(M,t.meta),{})}function IQ(L,M){const t={};for(const j in L)t[j]=j in M?M[j]:L[j];return t}function SG(L,M){let t=0,j=M.length;for(;t!==j;){const A=t+j>>1;DQ(L,M[A])<0?j=A:t=A+1}const u=yG(L);return u&&(j=M.lastIndexOf(u,j-1)),j}function yG(L){let M=L;for(;M=M.parent;)if(cQ(M)&&DQ(L,M)===0)return M}function cQ({record:L}){return!!(L.name||L.components&&Object.keys(L.components).length||L.redirect)}function rG(L){const M={};if(L===""||L==="?")return M;const j=(L[0]==="?"?L.slice(1):L).split("&");for(let u=0;u<j.length;++u){const A=j[u].replace(_C," "),N=A.indexOf("="),e=yn(N<0?A:A.slice(0,N)),i=N<0?null:yn(A.slice(N+1));if(e in M){let S=M[e];te(S)||(S=M[e]=[S]),S.push(i)}else M[e]=i}return M}function aQ(L){let M="";for(let t in L){const j=L[t];if(t=UX(t),j==null){j!==void 0&&(M+=(M.length?"&":"")+t);continue}(te(j)?j.map(A=>A&&fx(A)):[j&&fx(j)]).forEach(A=>{A!==void 0&&(M+=(M.length?"&":"")+t,A!=null&&(M+="="+A))})}return M}function DG(L){const M={};for(const t in L){const j=L[t];j!==void 0&&(M[t]=te(j)?j.map(u=>u==null?null:""+u):j==null?j:""+j)}return M}const nG=Symbol(""),gQ=Symbol(""),Oz=Symbol(""),Ux=Symbol(""),hx=Symbol("");function nn(){let L=[];function M(j){return L.push(j),()=>{const u=L.indexOf(j);u>-1&&L.splice(u,1)}}function t(){L=[]}return{add:M,list:()=>L.slice(),reset:t}}function w0(L,M,t,j,u,A=N=>N()){const N=j&&(j.enterCallbacks[u]=j.enterCallbacks[u]||[]);return()=>new Promise((e,i)=>{const S=D=>{D===!1?i(tr(4,{from:t,to:M})):D instanceof Error?i(D):KX(D)?i(tr(2,{from:M,to:D})):(N&&j.enterCallbacks[u]===N&&typeof D=="function"&&N.push(D),e())},y=A(()=>L.call(j&&j.instances[u],M,t,S));let r=Promise.resolve(y);L.length<3&&(r=r.then(S)),r.catch(D=>i(D))})}function Yx(L,M,t,j,u=A=>A()){const A=[];for(const N of L)for(const e in N.components){let i=N.components[e];if(!(M!=="beforeRouteEnter"&&!N.instances[e]))if(qC(i)){const y=(i.__vccOpts||i)[M];y&&A.push(w0(y,t,j,N,e,u))}else{let S=i();A.push(()=>S.then(y=>{if(!y)throw new Error(`Couldn't resolve component "${e}" at "${N.path}"`);const r=gX(y)?y.default:y;N.mods[e]=y,N.components[e]=r;const n=(r.__vccOpts||r)[M];return n&&w0(n,t,j,N,e,u)()}))}}return A}function oQ(L){const M=KA(Oz),t=KA(Ux),j=SL(()=>{const i=TM(L.to);return M.resolve(i)}),u=SL(()=>{const{matched:i}=j.value,{length:S}=i,y=i[S-1],r=t.matched;if(!y||!r.length)return-1;const D=r.findIndex(Mr.bind(null,y));if(D>-1)return D;const n=xQ(i[S-2]);return S>1&&xQ(y)===n&&r[r.length-1].path!==n?r.findIndex(Mr.bind(null,i[S-2])):D}),A=SL(()=>u.value>-1&&IG(t.params,j.value.params)),N=SL(()=>u.value>-1&&u.value===t.matched.length-1&&jQ(t.params,j.value.params));function e(i={}){if(zG(i)){const S=M[TM(L.replace)?"replace":"push"](TM(L.to)).catch(Sn);return L.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>S),S}return Promise.resolve()}return{route:j,href:SL(()=>j.value.href),isActive:A,isExactActive:N,navigate:e}}function sG(L){return L.length===1?L[0]:L}const TG=bt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:oQ,setup(L,{slots:M}){const t=Hy(oQ(L)),{options:j}=KA(Oz),u=SL(()=>({[EQ(L.activeClass,j.linkActiveClass,"router-link-active")]:t.isActive,[EQ(L.exactActiveClass,j.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const A=M.default&&sG(M.default(t));return L.custom?A:qy("a",{"aria-current":t.isExactActive?L.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:u.value},A)}}});function zG(L){if(!(L.metaKey||L.altKey||L.ctrlKey||L.shiftKey)&&!L.defaultPrevented&&!(L.button!==void 0&&L.button!==0)){if(L.currentTarget&&L.currentTarget.getAttribute){const M=L.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(M))return}return L.preventDefault&&L.preventDefault(),!0}}function IG(L,M){for(const t in M){const j=M[t],u=L[t];if(typeof j=="string"){if(j!==u)return!1}else if(!te(u)||u.length!==j.length||j.some((A,N)=>A!==u[N]))return!1}return!0}function xQ(L){return L?L.aliasOf?L.aliasOf.path:L.path:""}const EQ=(L,M,t)=>L??M??t,cG=bt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(L,{attrs:M,slots:t}){const j=KA(hx),u=SL(()=>L.route||j.value),A=KA(gQ,0),N=SL(()=>{let S=TM(A);const{matched:y}=u.value;let r;for(;(r=y[S])&&!r.components;)S++;return S}),e=SL(()=>u.value.matched[N.value]);rz(gQ,SL(()=>N.value+1)),rz(nG,e),rz(hx,u);const i=J();return Nu(()=>[i.value,e.value,L.name],([S,y,r],[D,n,s])=>{y&&(y.instances[r]=S,n&&n!==y&&S&&S===D&&(y.leaveGuards.size||(y.leaveGuards=n.leaveGuards),y.updateGuards.size||(y.updateGuards=n.updateGuards))),S&&y&&(!n||!Mr(y,n)||!D)&&(y.enterCallbacks[r]||[]).forEach(z=>z(S))},{flush:"post"}),()=>{const S=u.value,y=L.name,r=e.value,D=r&&r.components[y];if(!D)return lQ(t.default,{Component:D,route:S});const n=r.props[y],s=n?n===!0?S.params:typeof n=="function"?n(S):n:null,T=qy(D,$j({},s,M,{onVnodeUnmounted:I=>{I.component.isUnmounted&&(r.instances[y]=null)},ref:i}));return lQ(t.default,{Component:T,route:S})||T}}});function lQ(L,M){if(!L)return null;const t=L(M);return t.length===1?t[0]:t}const vx=cG;function aG(L){const M=NG(L.routes,L),t=L.parseQuery||rG,j=L.stringifyQuery||aQ,u=L.history,A=nn(),N=nn(),e=nn(),i=Ko(d0);let S=d0;$y&&L.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const y=dx.bind(null,K=>""+K),r=dx.bind(null,YX),D=dx.bind(null,yn);function n(K,H){let P,V;return iQ(K)?(P=M.getRecordMatcher(K),V=H):V=K,M.addRoute(V,P)}function s(K){const H=M.getRecordMatcher(K);H&&M.removeRoute(H)}function z(){return M.getRoutes().map(K=>K.record)}function T(K){return!!M.getRecordMatcher(K)}function I(K,H){if(H=$j({},H||i.value),typeof K=="string"){const uM=Cx(t,K,H.path),rM=M.resolve({path:uM.path},H),eM=u.createHref(uM.fullPath);return $j(uM,rM,{params:D(rM.params),hash:yn(uM.hash),redirectedFrom:void 0,href:eM})}let P;if(K.path!=null)P=$j({},K,{path:Cx(t,K.path,H.path).path});else{const uM=$j({},K.params);for(const rM in uM)uM[rM]==null&&delete uM[rM];P=$j({},K,{params:r(uM)}),H.params=r(H.params)}const V=M.resolve(P,H),$=K.hash||"";V.params=y(D(V.params));const AM=pX(j,$j({},K,{hash:QX($),path:V.path})),_=u.createHref(AM);return $j({fullPath:AM,hash:$,query:j===aQ?DG(K.query):K.query||{}},V,{redirectedFrom:void 0,href:_})}function a(K){return typeof K=="string"?Cx(t,K,i.value.path):$j({},K)}function g(K,H){if(S!==K)return tr(8,{from:H,to:K})}function x(K){return Y(K)}function E(K){return x($j(a(K),{replace:!0}))}function C(K){const H=K.matched[K.matched.length-1];if(H&&H.redirect){const{redirect:P}=H;let V=typeof P=="function"?P(K):P;return typeof V=="string"&&(V=V.includes("?")||V.includes("#")?V=a(V):{path:V},V.params={}),$j({query:K.query,hash:K.hash,params:V.path!=null?{}:K.params},V)}}function Y(K,H){const P=S=I(K),V=i.value,$=K.state,AM=K.force,_=K.replace===!0,uM=C(P);if(uM)return Y($j(a(uM),{state:typeof uM=="object"?$j({},$,uM.state):$,force:AM,replace:_}),H||P);const rM=P;rM.redirectedFrom=H;let eM;return!AM&&mX(j,V,P)&&(eM=tr(16,{to:rM,from:V}),F(V,V,!0,!1)),(eM?Promise.resolve(eM):p(rM,V)).catch(MM=>oi(MM)?oi(MM,2)?MM:k(MM):O(MM,rM,V)).then(MM=>{if(MM){if(oi(MM,2))return Y($j({replace:_},a(MM.to),{state:typeof MM.to=="object"?$j({},$,MM.to.state):$,force:AM}),H||rM)}else MM=v(rM,V,!0,_,$);return b(rM,V,MM),MM})}function U(K,H){const P=g(K,H);return P?Promise.reject(P):Promise.resolve()}function f(K){const H=W.values().next().value;return H&&typeof H.runWithContext=="function"?H.runWithContext(K):K()}function p(K,H){let P;const[V,$,AM]=gG(K,H);P=Yx(V.reverse(),"beforeRouteLeave",K,H);for(const uM of V)uM.leaveGuards.forEach(rM=>{P.push(w0(rM,K,H))});const _=U.bind(null,K,H);return P.push(_),Z(P).then(()=>{P=[];for(const uM of A.list())P.push(w0(uM,K,H));return P.push(_),Z(P)}).then(()=>{P=Yx($,"beforeRouteUpdate",K,H);for(const uM of $)uM.updateGuards.forEach(rM=>{P.push(w0(rM,K,H))});return P.push(_),Z(P)}).then(()=>{P=[];for(const uM of AM)if(uM.beforeEnter)if(te(uM.beforeEnter))for(const rM of uM.beforeEnter)P.push(w0(rM,K,H));else P.push(w0(uM.beforeEnter,K,H));return P.push(_),Z(P)}).then(()=>(K.matched.forEach(uM=>uM.enterCallbacks={}),P=Yx(AM,"beforeRouteEnter",K,H,f),P.push(_),Z(P))).then(()=>{P=[];for(const uM of N.list())P.push(w0(uM,K,H));return P.push(_),Z(P)}).catch(uM=>oi(uM,8)?uM:Promise.reject(uM))}function b(K,H,P){e.list().forEach(V=>f(()=>V(K,H,P)))}function v(K,H,P,V,$){const AM=g(K,H);if(AM)return AM;const _=H===d0,uM=$y?history.state:{};P&&(V||_?u.replace(K.fullPath,$j({scroll:_&&uM&&uM.scroll},$)):u.push(K.fullPath,$)),i.value=K,F(K,H,P,_),k()}let h;function Q(){h||(h=u.listen((K,H,P)=>{if(!tM.listening)return;const V=I(K),$=C(V);if($){Y($j($,{replace:!0,force:!0}),V).catch(Sn);return}S=V;const AM=i.value;$y&&XX(AQ(AM.fullPath,P.delta),lz()),p(V,AM).catch(_=>oi(_,12)?_:oi(_,2)?(Y($j(a(_.to),{force:!0}),V).then(uM=>{oi(uM,20)&&!P.delta&&P.type===rn.pop&&u.go(-1,!1)}).catch(Sn),Promise.reject()):(P.delta&&u.go(-P.delta,!1),O(_,V,AM))).then(_=>{_=_||v(V,AM,!1),_&&(P.delta&&!oi(_,8)?u.go(-P.delta,!1):P.type===rn.pop&&oi(_,20)&&u.go(-1,!1)),b(V,AM,_)}).catch(Sn)}))}let w=nn(),o=nn(),l;function O(K,H,P){k(K);const V=o.list();return V.length?V.forEach($=>$(K,H,P)):console.error(K),Promise.reject(K)}function d(){return l&&i.value!==d0?Promise.resolve():new Promise((K,H)=>{w.add([K,H])})}function k(K){return l||(l=!K,Q(),w.list().forEach(([H,P])=>K?P(K):H()),w.reset()),K}function F(K,H,P,V){const{scrollBehavior:$}=L;if(!$y||!$)return Promise.resolve();const AM=!P&&GX(AQ(K.fullPath,0))||(V||!P)&&history.state&&history.state.scroll||null;return Gy().then(()=>$(K,H,AM)).then(_=>_&&FX(_)).catch(_=>O(_,K,H))}const B=K=>u.go(K);let G;const W=new Set,tM={currentRoute:i,listening:!0,addRoute:n,removeRoute:s,clearRoutes:M.clearRoutes,hasRoute:T,getRoutes:z,resolve:I,options:L,push:x,replace:E,go:B,back:()=>B(-1),forward:()=>B(1),beforeEach:A.add,beforeResolve:N.add,afterEach:e.add,onError:o.add,isReady:d,install(K){const H=this;K.component("RouterLink",TG),K.component("RouterView",vx),K.config.globalProperties.$router=H,Object.defineProperty(K.config.globalProperties,"$route",{enumerable:!0,get:()=>TM(i)}),$y&&!G&&i.value===d0&&(G=!0,x(u.location).catch($=>{}));const P={};for(const $ in d0)Object.defineProperty(P,$,{get:()=>i.value[$],enumerable:!0});K.provide(Oz,H),K.provide(Ux,zf(P)),K.provide(hx,i);const V=K.unmount;W.add(K),K.unmount=function(){W.delete(K),W.size<1&&(S=d0,h&&h(),h=null,i.value=d0,G=!1,l=!1),V()}}};function Z(K){return K.reduce((H,P)=>H.then(()=>f(P)),Promise.resolve())}return tM}function gG(L,M){const t=[],j=[],u=[],A=Math.max(M.matched.length,L.matched.length);for(let N=0;N<A;N++){const e=M.matched[N];e&&(L.matched.find(S=>Mr(S,e))?j.push(e):t.push(e));const i=L.matched[N];i&&(M.matched.find(S=>Mr(S,i))||u.push(i))}return[t,j,u]}function oG(){return KA(Oz)}function kx(L){return KA(Ux)}const xG="1.0.843-alpha",EG="1.0.0",lG="2024-07-15";var OG=!1;/*!
25
25
  * pinia v2.3.1
26
26
  * (c) 2025 Eduardo San Martin Morote
27
27
  * @license MIT
@@ -298,7 +298,7 @@ xt.version="2.30.1",gV(wu),xt.fn=jL,xt.min=iq,xt.max=Sq,xt.now=yq,xt.utc=be,xt.u
298
298
  }
299
299
  }
300
300
  }
301
- `;return await bu({method:"post",url:`${kn}/my-profile/graphql`,headers:{authorization:Ze},data:{query:M,variables:{payload:L}}})},k4=async(L,M)=>await bu({method:"post",url:"https://api-v2.genpact.com/api/csod/myplan/link",headers:{"x-oauth-config-provider":"genome-open-auth",authorization:Ze},data:{skill:L,proficiency:M}}),ru=async L=>(L==="SAP HANA (Beginner) Academy"&&(L="SAP S/4HANA (Beginner) Academy"),await bu({method:"post",url:"https://api-v2.genpact.com/api/csod/curriculum/url",headers:{"x-oauth-config-provider":"genome-open-auth",authorization:Ze},data:{curriculum_title:L}})),Nl=(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:rL&&rL.tagName.toUpperCase()==="SCRIPT"&&rL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("-alpha")||(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:rL&&rL.tagName.toUpperCase()==="SCRIPT"&&rL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("http://localhost:5002")||(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:rL&&rL.tagName.toUpperCase()==="SCRIPT"&&rL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("http://localhost:5001")?"https://api-v2-dev.genpact.com/api":"https://api-v2.genpact.com/api",VeM=wz("delphi",()=>{const L=J(!1),M=J(!1),t=J(!1),j=J(!1),u=J(!1),A=J(""),N=J("0"),e=J(!1),i=J(""),S=J(!1),y=J([]),r=J([]),D=J([]),n=J([]),s=J([]);J([]);const z=J([]),T=J([]),I=J([]),a=J([]),g=J({}),x=J([]),E=J([]),C=J([]),Y=J([]),U=J([]),f=J([]),p=J([]),b=J(),v=J([]),h=J([]),Q=J(),w=J(),o=J([]),l=J([]),O=J([]),d=J([]),k=J([]),F=J([]),B=J([]),G=J([]),W=J([]),tM=J([]),Z=J([]),K=J([]),H=J({}),P=J([]),V=J([]),$=J([]),AM=J([]),_=J([]),uM=J([]),rM=J([]),eM=J([]),MM=J([]),iM=J(""),jM=J(""),SM=J({}),zM=J(""),sM=J(""),oM=J(null),CM=J(""),YM=J(""),kM=J(""),ZM=J(""),ut=J(""),tt=J(""),It=J(!1),qM=J(),Yt=J(),FM=J(),IM=J(),lM=J(!0),VM=J(!1),fM=J(!1),St=J([]),PM=J(),ot=J([]),Gt=J([]),Qt=J([]),Pt=J({}),gt=J(),AL=J(),zL=J(),oL=J(),kL=J(),DL=J(),_t=J(),bL=J({}),IL=J({}),HM=J(!1),hM=J(!1),DM=J(),jt=J(!1),GM=J(!1),XM=J(),ct=J(),yt=J(),KM=J(),Zt=J(!1),Wt=J(!1),$t=J(!1),tL=/\b(1|2|3|4A|4B|4C|4D|5A|5B|SVP|Master Data Not Found)\b/gi,ML=J([{ID:"97103561-8dc3-4fe7-ad0a-4f8dedac8f6b",code:1,Slug:"B",Title:"beginner",Title2:"Beginner"},{ID:"407b8b7b-b3ac-4074-b129-c66d22eb78d4",code:2,Slug:"I",Title:"intermediate",Title2:"Intermediate"},{ID:"5ed7edb5-3967-4bda-aa2a-093c069df241",code:3,Slug:"P",Title:"proficient",Title2:"Proficient"},{ID:"dea6184e-8d52-4852-a6cb-daf633e36f18",code:4,Slug:"E",Title:"expert",Title2:"Expert"}]),ht=async WM=>{WM.module="Delphi",WM.desc=ReM[WM.event_type];let BM=BeM[WM.event_type];WM.jp_mapping&&(BM=BM.replace("${jp_mapping}",WM.jp_mapping)),WM.skills&&(BM=WM.skills),WM.role&&BM.includes("${role}")&&(BM=BM.replace("${role}",WM.role)),WM.role&&BM.includes("${function}")&&(BM=BM.replace("${function}",WM.function)),WM.academy_id&&BM.includes("${academy_id}")&&(BM=BM.replace("${academy_id}",WM.academy_id)),WM.campaign_title&&BM.includes("${campaign_title}")&&(BM=BM.replace("${campaign_title}",WM.campaign_title)),WM.notification_title&&BM.includes("${notification_title}")&&(BM=BM.replace("${notification_title}",WM.notification_title)),WM.reco_skill_name&&BM.includes("${reco_skill_name}")&&(BM=BM.replace("${reco_skill_name}",WM.reco_skill_name)),WM.continue_learning_skill&&BM.includes("${continue_learning_skill}")&&(BM=BM.replace("${continue_learning_skill}",WM.continue_learning_skill)),WM.shorts_genome_card_id&&BM.includes("${shorts_genome_card_id}")&&(BM=BM.replace("${shorts_genome_card_id}",WM.shorts_genome_card_id)),WM.shorts_keyword&&BM.includes("${shorts_keyword}")&&(BM=BM.replace("${shorts_keyword}",WM.shorts_keyword)),WM.skill_source&&BM.includes("${skill_source}")&&(BM=BM.replace("${skill_source}",WM.skill_source)),WM.event_type=BM,WM.event_category="learner_event";try{await Mj("/delphi/event",WM)}catch(Xt){console.warn("Error in log event",Xt)}return!0},bM=async()=>{var WM,BM,Xt,Ot,Bt,$L,nL,cL,ij,Ej,Dj,qj,Hj,Au,bj,wj,qL,Qu,RL,sL,QL,lj,KL,wL,Uu,hu,wA,_4,BN;try{const pt=await HL("/delphi/getNotification");if(pt!=null&&pt.data&&!((WM=pt==null?void 0:pt.data)!=null&&WM.error)&&((BM=pt==null?void 0:pt.data)==null?void 0:BM.message)!=="Unauthorized"){a.value=(Xt=pt==null?void 0:pt.data)==null?void 0:Xt.for_all.notifications.filter(c4=>(c4==null?void 0:c4.display_style)==="popup")[0];const nN=(Bt=(Ot=pt==null?void 0:pt.data)==null?void 0:Ot.for_all)==null?void 0:Bt.notifications.filter(c4=>(c4==null?void 0:c4.display_style)!=="popup");y.value=[...(nL=($L=pt==null?void 0:pt.data)==null?void 0:$L.filtered)==null?void 0:nL.notifications,...nN,...(ij=(cL=pt==null?void 0:pt.data)==null?void 0:cL.ohr)==null?void 0:ij.notifications],r.value=[...(Dj=(Ej=pt==null?void 0:pt.data)==null?void 0:Ej.filtered)==null?void 0:Dj.notifications,...(Hj=(qj=pt==null?void 0:pt.data)==null?void 0:qj.for_all)==null?void 0:Hj.notifications,...(bj=(Au=pt==null?void 0:pt.data)==null?void 0:Au.ohr)==null?void 0:bj.notifications],I.value=[...(qL=(wj=pt==null?void 0:pt.data)==null?void 0:wj.for_all)==null?void 0:qL.banners,...(RL=(Qu=pt==null?void 0:pt.data)==null?void 0:Qu.filtered)==null?void 0:RL.banners,...(QL=(sL=pt==null?void 0:pt.data)==null?void 0:sL.ohr)==null?void 0:QL.banners],D.value=[...(KL=(lj=pt==null?void 0:pt.data)==null?void 0:lj.for_all)==null?void 0:KL.popups,...(Uu=(wL=pt==null?void 0:pt.data)==null?void 0:wL.filtered)==null?void 0:Uu.popups,...(wA=(hu=pt==null?void 0:pt.data)==null?void 0:hu.ohr)==null?void 0:wA.popups],(_4=D.value)!=null&&_4.length&&await dM();const HN=xt(),we=HN.clone().subtract(3,"days");hM.value=(BN=y.value)==null?void 0:BN.some(c4=>xt(c4==null?void 0:c4.starts).isBetween(we,HN,null,"[)"))}}catch{}},dt=async()=>{var WM,BM,Xt,Ot;try{const Bt=await HL("/summary-table/learner/inferred_skills");Bt!=null&&Bt.data&&!((WM=Bt==null?void 0:Bt.data)!=null&&WM.error)&&((BM=Bt==null?void 0:Bt.data)==null?void 0:BM.message)!=="Unauthorized"&&(T.value=(Xt=Bt==null?void 0:Bt.response)==null?void 0:Xt.response.filter($L=>($L==null?void 0:$L.skill_type)==="Genome Aware"),z.value=(Ot=Bt==null?void 0:Bt.response)==null?void 0:Ot.response.filter($L=>($L==null?void 0:$L.skill_type)==="Build"),console.log("AiAwareSkillArray",T.value),console.log("AiBuildSkillArray",z.value))}catch(Bt){console.log("errormessage.value",Bt)}},dM=async()=>{var WM,BM,Xt,Ot,Bt,$L;try{let nL=[];const cL=await HL("/summary-table/learner/inferred_skills");if(cL!=null&&cL.data&&!((WM=cL==null?void 0:cL.data)!=null&&WM.error)&&((BM=cL==null?void 0:cL.data)==null?void 0:BM.message)!=="Unauthorized"){nL=(Ot=(Xt=cL==null?void 0:cL.data)==null?void 0:Xt.response)==null?void 0:Ot.response,s.value=($L=(Bt=cL==null?void 0:cL.data)==null?void 0:Bt.response)==null?void 0:$L.response,console.log("delphiStore.rawinferredSkillarray-------",s.value),nL==null||nL.forEach(Dj=>{Dj.checked=!0});const ij=new Map,Ej=new Set;nL.forEach(Dj=>{Dj.parent_skill_id!==null&&Ej.add(Dj.parent_skill_id)}),nL.forEach(Dj=>{const{parent_skill_id:qj,parent_skill_name:Hj,skill_master_id:Au,skill_name:bj}=Dj;if(qj!==null&&Hj){const wj=`${qj}_${Hj}`;ij.has(wj)||ij.set(wj,{parent_skill_id:qj,parent_skill_name:Hj,subskill:[]}),ij.get(wj).subskill.push(Dj)}else if(!Ej.has(Dj.skill_master_id)){const wj=`top_${Dj.skill_master_id}`;ij.set(wj,{parent_skill_id:null,parent_skill_name:bj,subskill:[Dj]})}}),n.value=Array.from(ij.values()),console.log("Inferred",n.value)}}catch{}},JM=async()=>{var WM,BM;try{const Xt=await HL("/delphi/getNotification?filter=ohr");Xt!=null&&Xt.data&&!((WM=Xt==null?void 0:Xt.data)!=null&&WM.error)&&((BM=Xt==null?void 0:Xt.data)==null||BM.message)}catch{}},Nt=async()=>{var WM,BM;try{const Xt=await HL("/delphi/getNotification?filter=filtered");Xt!=null&&Xt.data&&!((WM=Xt==null?void 0:Xt.data)!=null&&WM.error)&&((BM=Xt==null?void 0:Xt.data)==null||BM.message)}catch{}},at=async()=>{var WM,BM,Xt,Ot,Bt,$L,nL,cL,ij,Ej,Dj,qj,Hj,Au,bj,wj,qL,Qu,RL,sL,QL,lj,KL,wL,Uu,hu,wA,_4,BN;try{const pt=await HL("/delphi/v2/myprofile");pt&&!(pt!=null&&pt.error)&&(VM.value=((BM=(WM=pt==null?void 0:pt.data)==null?void 0:WM.role_function)==null?void 0:BM.function)!==null,AL.value=(Bt=(Ot=(Xt=pt==null?void 0:pt.data)==null?void 0:Xt.role_function)==null?void 0:Ot.function)==null?void 0:Bt.name,zL.value=(cL=(nL=($L=pt==null?void 0:pt.data)==null?void 0:$L.role_function)==null?void 0:nL.role)==null?void 0:cL.name,CM.value=(ij=pt==null?void 0:pt.data)==null?void 0:ij.my_profile_last_refresh_date,b.value=pt==null?void 0:pt.data,h.value=(Ej=pt==null?void 0:pt.data)==null?void 0:Ej.manager_assessment,(Hj=(qj=(Dj=pt==null?void 0:pt.data)==null?void 0:Dj.manager_assessment)==null?void 0:qj.skill_data)!=null&&Hj.length?v.value=await((bj=(Au=pt==null?void 0:pt.data)==null?void 0:Au.merged_profile)==null?void 0:bj.map(nN=>{var we,c4;const HN=(c4=(we=pt==null?void 0:pt.data)==null?void 0:we.manager_assessment.skill_data)==null?void 0:c4.find(e0=>(e0==null?void 0:e0.skill_id)===(nN==null?void 0:nN.skill_id));return HN?{...nN,managerReview:!0,managerReviewprof:HN==null?void 0:HN.manager_reco_proficiency}:{...nN}})):v.value=(wj=pt==null?void 0:pt.data)==null?void 0:wj.merged_profile,((qL=pt==null?void 0:pt.data)==null?void 0:qL.skill_validation_matrix)!==null&&((Qu=pt==null?void 0:pt.data)!=null&&Qu.skill_validation_matrix)&&((QL=(sL=(RL=pt==null?void 0:pt.data)==null?void 0:RL.skill_validation_matrix[0])==null?void 0:sL.mandateData)!=null&&QL.master)?PM.value=(wL=(KL=(lj=pt==null?void 0:pt.data)==null?void 0:lj.skill_validation_matrix[0])==null?void 0:KL.mandateData)==null?void 0:wL.master:PM.value=[{masterType:"industry",Recommendation:[{type:"mandatory",description:""},{type:"nonmandatory",minSelect:0,description:""}]},{masterType:"service_line_or_domain",Recommendation:[{type:"mandatory",description:""},{type:"nonmandatory",minSelect:0,description:""}]},{masterType:"digital_technology",Recommendation:[{type:"mandatory",description:""},{type:"nonmandatory",minSelect:0,description:""}]},{masterType:"proff_skill",Recommendation:[{type:"mandatory",description:"Following are the recommended skill(s) for your role. These are automatically added to your My Plan"},{type:"nonmandatory",minSelect:0,description:""}]}],Q.value=(hu=(Uu=pt==null?void 0:pt.data)==null?void 0:Uu.role_function)==null?void 0:hu.function,w.value=(_4=(wA=pt==null?void 0:pt.data)==null?void 0:wA.role_function)==null?void 0:_4.role,gt.value=(BN=pt==null?void 0:pt.data)==null?void 0:BN.profile_status)}catch(pt){console.log("errormessage.value",pt)}},Ft=async()=>{var WM,BM,Xt,Ot,Bt,$L,nL,cL,ij,Ej,Dj,qj,Hj,Au,bj,wj,qL,Qu,RL,sL,QL,lj,KL;localStorage.setItem("ohrId","");try{const{data:wL}=await HL("/delphi/init");if(wL&&!(wL!=null&&wL.error)){if(localStorage.setItem("ohrId",wL==null?void 0:wL.learner_ohr),HM.value=wL==null?void 0:wL.allow_access,tt.value=wL==null?void 0:wL.downTimeMessage,wL!=null&&wL.allow_access){x.value=wL,(WM=x.value)!=null&&WM.global_preference||(Xt=(BM=x.value)==null?void 0:BM.learnerPreferences)!=null&&Xt.user_preference?(GM.value=!0,console.log("The Api is fetching data fron summary table")):GM.value=!1,kL.value=(Bt=(Ot=x.value)==null?void 0:Ot.ofconEntry)==null?void 0:Bt.BAND_GRADE,kL.value&&(DL.value=($L=kL.value)==null?void 0:$L.split("..")[1]),qM.value=(cL=(nL=x.value)==null?void 0:nL.learnerPreferences)==null?void 0:cL.ad_image,$.value=(ij=x.value)==null?void 0:ij.top_skills,jM.value=(Ej=wL==null?void 0:wL.existingDelphiJourney)==null?void 0:Ej.journey_current_state,iM.value=(wL==null?void 0:wL.emp_name)||"",console.log("initArray.value?.learnerPreferences?.language",(qj=(Dj=x.value)==null?void 0:Dj.learnerPreferences)==null?void 0:qj.language),((Au=(Hj=x.value)==null?void 0:Hj.learnerPreferences)==null?void 0:Au.language)!==null?oM.value=(wj=(bj=x.value)==null?void 0:bj.learnerPreferences)==null?void 0:wj.language:oM.value="en",oL.value=(qL=wL==null?void 0:wL.learnerPreferences)==null?void 0:qL.dont_show_popup_at_login;const Uu=xt();await Promise.all([bM(),aM(),vM(),YL(),JL(),at(),ht({event_type:"cta_tab_learning"}),uL(wL==null?void 0:wL.learner_ohr),Nj(wL==null?void 0:wL.learner_ohr),dt()]),(((RL=(Qu=x.value)==null?void 0:Qu.ofconEntry)==null?void 0:RL.Job_Family_Group)==="Technology Solutions and Services"||((QL=(sL=x.value)==null?void 0:sL.ofconEntry)==null?void 0:QL.Job_Family_Group)==="Data & Analytics"||((KL=(lj=x.value)==null?void 0:lj.ofconEntry)==null?void 0:KL.Job_Family_Group)==="Data and Analytics")&&await mL()}S.value=!0}}catch(wL){oM.value="en",console.log("errormessage.value",wL),wL.response?A.value=wL.response.data.message:wL.message?A.value=wL.message:A.value="Failed to load api"}},aM=async()=>{var WM,BM,Xt,Ot,Bt,$L;try{const{data:nL}=await HL("/summary-table/plan");nL&&(console.log("myplansummarydata",(BM=(WM=nL==null?void 0:nL.response)==null?void 0:WM.myplan)==null?void 0:BM.my_skill_plan),XM.value=(Ot=(Xt=nL==null?void 0:nL.response)==null?void 0:Xt.myplan)==null?void 0:Ot.my_skill_plan,ct.value=($L=(Bt=nL==null?void 0:nL.response)==null?void 0:Bt.myplan)==null?void 0:$L.my_academy_plan)}catch(nL){console.log("errormessage.value",nL),nL.response?A.value=nL.response.data.message:nL.message?A.value=nL.message:A.value="Failed to load api"}},Et=async()=>{var WM,BM,Xt,Ot,Bt,$L,nL;try{const{data:cL}=await HL("/summary-table/performance");if(cL){Zt.value=(WM=cL==null?void 0:cL.response)==null?void 0:WM.myperformance;const ij=[{skills:["Hi-Tech (Consumer Electronics)","Hi-Tech (Software and Internet)","Hi-Tech (Commercial Equipments, Semi-Conductors, Hardware)"],category:"Hi-Tech"},{skills:["Manufacturing - Automotive","Manufacturing - Industrial Machinery","Manufacturing - Aerospace & Defense","Manufacturing - Process Industries"],category:"Industrial Manufacturing"},{skills:["Pharmaceutical and Life Sciences","Healthcare Payors"],category:"Life Sciences and Healthcare"},{skills:["Supply Chain Management - PLAN","Supply Chain Management - AFTERSALES","Supply Chain Management - MAKE/DELIVER"],category:"Supply Chain Management"}],Ej=(Xt=(BM=cL==null?void 0:cL.response)==null?void 0:BM.myperformance)==null?void 0:Xt.my_skill_performance,Dj=(qj,Hj)=>{const Au=[],bj=new Set;return qj.forEach(wj=>{const qL=Hj.find(Qu=>Qu.skills.some(RL=>wj.skill.includes(RL)));if(qL){const Qu=`${qL.category}-${wj.proficiency}`;bj.has(Qu)||(Au.push({...wj,skill:qL.category,Channel:qL.category}),bj.add(Qu))}else Au.push({...wj,Channel:null})}),Au};if(Zt.value.my_skill_performance=Dj(Ej,ij),console.log("myperformanceSummaryvalue.value",Zt.value),((Bt=(Ot=Zt.value)==null?void 0:Ot.learner_score_history_trend)==null?void 0:Bt.length)>0){const qj=(nL=($L=Zt.value)==null?void 0:$L.learner_score_history_trend)==null?void 0:nL.reduce((bj,wj)=>(bj[wj.ls_year]=bj[wj.ls_year]||[],bj[wj.ls_year].push(wj),bj),{}),Hj=Ij(qj,"ls_month").reverse(),Au=Ij(Hj[0],"ls_month").reverse();N.value=Number(Au[0].learner_score_change)}}}catch(cL){console.log("errormessage.value",cL),cL.response?A.value=cL.response.data.message:cL.message?A.value=cL.message:A.value="Failed to load api"}},vM=async()=>{var WM;try{const{data:BM}=await HL("/summary-table/team-performance");BM&&(Wt.value=(WM=BM==null?void 0:BM.response)==null?void 0:WM.myTeamPerformance)}catch{}},eL=async()=>{try{const{data:WM}=await HL("/delphi/existing/subskill/parent");WM&&!(WM!=null&&WM.error)&&(E.value=WM==null?void 0:WM.existingSubskillParentSkills)}catch(WM){console.log("errormessage.value",WM),WM.response?A.value=WM.response.data.message:WM.message?A.value=WM.message:A.value="Failed to load api"}},Ct=async()=>{var WM;try{let BM=(WM=iM.value)==null?void 0:WM.split(",").map(Ot=>Ot.trim()),Xt="";if((BM==null?void 0:BM.length)>1)Xt=BM.map(Ot=>Ot[0]).join("");else{let Ot=BM[0].split(" ");(Ot==null?void 0:Ot.length)>1?Xt=Ot[0][0]+Ot[(Ot==null?void 0:Ot.length)-1][0]:Xt=Ot[0].slice(0,2)}zM.value=Xt.toUpperCase()}catch(BM){console.log("errormessage.value",BM),BM.response?A.value=BM.response.data.message:BM.message?A.value=BM.message:A.value="Failed to load api"}},NL=async()=>{var WM,BM,Xt;try{const Ot=await HL("/delphi/recomended/skills");Ot&&!((WM=Ot==null?void 0:Ot.data)!=null&&WM.error)&&((BM=Ot==null?void 0:Ot.data)==null||BM.suggestedSkills.forEach(async Bt=>{await(E==null?void 0:E.value.forEach($L=>{(Bt==null?void 0:Bt.skill_id)===$L&&(Bt.recomendedSkillHasSubskillsFlag=!0)}))}),Y.value=(Xt=Ot==null?void 0:Ot.data)==null?void 0:Xt.suggestedSkills)}catch(Ot){console.log("errormessage.value",Ot)}},JL=async()=>{var WM;try{const BM=await HL("/delphi/top_skills");BM&&!((WM=BM==null?void 0:BM.data)!=null&&WM.error)&&(yt.value=BM==null?void 0:BM.data)}catch(BM){console.log("errormessage.value",BM)}},YL=async()=>{var WM,BM,Xt,Ot;try{const Bt=await HL("/delphi/skill_ratings_from_voc");Bt&&!((BM=(WM=Bt==null?void 0:Bt.data)==null?void 0:WM.result)!=null&&BM.error)&&(AM.value=(Ot=(Xt=Bt==null?void 0:Bt.data)==null?void 0:Xt.result)==null?void 0:Ot.data)}catch(Bt){console.log("errormessage.value",Bt),Bt.response?A.value=Bt.response.data.message:Bt.message?A.value=Bt.message:A.value="Failed to load api"}},FL=async WM=>{var BM;try{const Xt=localStorage.getItem("ohrId")||"",Bt=await Mj("/data-hose/c2byfulltext",{search:WM,filter:[{key:"type_of_content",value:[]},{key:"content_source",value:[]},{key:"carousel_name",value:[]},{key:"channel_name",value:[]},{key:"proficiency",value:[]},{key:"languagecode",value:["en-US"]},{key:"material_type",value:[]}],orderBy:null,limit:1e7,ohrid:Xt,offset:0});if(Bt&&!((BM=Bt==null?void 0:Bt.data)!=null&&BM.error)){const $L=PeM(Bt.data.body,"curriculum_title");eM.value=$L}}catch(Xt){eM.value=null,Xt.response||Xt.message}},mL=async()=>{var WM;try{const BM=await HL("/delphi/coreskills");BM&&!((WM=BM==null?void 0:BM.data)!=null&&WM.error)&&(console.log("coreSkills",BM==null?void 0:BM.data),U.value=BM==null?void 0:BM.data)}catch(BM){console.log("errormessage.value",BM),BM.response||BM.message}},Cj=async()=>{var WM,BM,Xt,Ot,Bt,$L;try{const nL=await HL("/academy/learner/enrollment");MM.value=(WM=nL==null?void 0:nL.data)==null?void 0:WM.learnerEnrollments;const cL=await HL("/delphi/recommendataion/learning");if(cL&&!((BM=cL==null?void 0:cL.data)!=null&&BM.error))if((Xt=nL==null?void 0:nL.data)!=null&&Xt.learnerEnrollments){const ij=(Bt=cL==null?void 0:cL.data)==null?void 0:Bt.learnings.filter(Ej=>{var Dj;return!((Dj=nL==null?void 0:nL.data)!=null&&Dj.learnerEnrollments.some(qj=>qj.academyId===Ej.learning_path_id))}).concat((Ot=nL==null?void 0:nL.data)==null?void 0:Ot.learnerEnrollments.filter(Ej=>{var Dj;return!((Dj=cL==null?void 0:cL.data)!=null&&Dj.learnings.some(qj=>qj.learning_path_id===Ej.academyId))}));f.value=Ij(ij,"learner_enrollement_timestamp")}else f.value=($L=cL==null?void 0:cL.data)==null?void 0:$L.learnings}catch(nL){console.log("errormessage.value",nL),nL.response?A.value=nL.response.data.message:nL.message?A.value=nL.message:A.value="Failed to load api"}},gj=async()=>{var WM,BM,Xt,Ot,Bt,$L,nL,cL,ij,Ej,Dj,qj,Hj,Au,bj,wj,qL,Qu;try{let RL=await HL("/delphi/myperformance");if(RL&&!((WM=RL==null?void 0:RL.data)!=null&&WM.error)&&((BM=RL==null?void 0:RL.data)==null?void 0:BM.data)!==null){if(P.value=(Bt=(Ot=(Xt=RL==null?void 0:RL.data)==null?void 0:Xt.data)==null?void 0:Ot.manager_team)==null?void 0:Bt.data,((cL=(nL=($L=RL==null?void 0:RL.data)==null?void 0:$L.data)==null?void 0:nL.performance_history)==null?void 0:cL.data.length)>0){const sL=(qj=(Dj=(Ej=(ij=RL==null?void 0:RL.data)==null?void 0:ij.data)==null?void 0:Ej.performance_history)==null?void 0:Dj.data)==null?void 0:qj.reduce((KL,wL)=>(KL[wL.YEAR]=KL[wL.YEAR]||[],KL[wL.YEAR].push(wL),KL),{}),QL=Ij(sL,"MONTH").reverse(),lj=Ij(QL[0],"MONTH").reverse();N.value=lj[0].LS_CHANGE}uM.value=(Au=(Hj=RL==null?void 0:RL.data)==null?void 0:Hj.data)==null?void 0:Au.performance_report,V.value=(wj=(bj=RL==null?void 0:RL.data)==null?void 0:bj.data)==null?void 0:wj.manager_bits,_.value=(Qu=(qL=RL==null?void 0:RL.data)==null?void 0:qL.data)==null?void 0:Qu.academy_data}else P.value={error:"Manager not found"},await dA(),await K4()}catch(RL){console.log("errormessage.value",RL),RL.response?A.value=RL.response.data.message:RL.message?A.value=RL.message:A.value="Failed to load api"}},CL=async()=>{var WM;try{const BM=await HL("/delphi/profile/skills");BM&&!((WM=BM==null?void 0:BM.data)!=null&&WM.error)&&(p.value=BM==null?void 0:BM.data)}catch(BM){console.log("errormessage.value",BM),BM.response?A.value=BM.response.data.message:BM.message?A.value=BM.message:A.value="Failed to load api"}},uL=async WM=>{var BM,Xt,Ot;try{const Bt=await XeM(WM);Bt&&!(Bt!=null&&Bt.data.errors)&&(o.value=(Ot=(Xt=(BM=Bt.data)==null?void 0:BM.data)==null?void 0:Xt.MyPlan)==null?void 0:Ot.data)}catch(Bt){console.log("errormessage.value",Bt),Bt.response?A.value=Bt.response.data.message:Bt.message?A.value=Bt.message:A.value="Failed to load api"}},iL=async WM=>{try{const BM=await WeM([WM])}catch(BM){console.log("errormessage.value",BM),BM.response?A.value=BM.response.data.message:BM.message?A.value=BM.message:A.value="Failed to load api"}},Qj=async WM=>{try{const BM=await GeM(WM)}catch(BM){console.log("errormessage.value",BM),BM.response?A.value=BM.response.data.message:BM.message?A.value=BM.message:A.value="Failed to load api"}},nu=async(WM,BM)=>{var Xt,Ot,Bt,$L,nL,cL;try{const ij=await Eh(WM,BM);ij&&!(ij!=null&&ij.data.errors)&&(ij.data.data.Group.Master[0].SkillList=($L=(Bt=(Ot=(Xt=ij.data)==null?void 0:Xt.data)==null?void 0:Ot.Group)==null?void 0:Bt.Master[0])==null?void 0:$L.SkillList.filter(Ej=>(Ej==null?void 0:Ej.skillId)!=="f5e5ce1f-91fe-42ac-9085-67059c8402d8"&&(Ej==null?void 0:Ej.skillId)!=="92275259-cf7b-428e-9b23-903efdf5925d"),l.value=(cL=(nL=ij.data)==null?void 0:nL.data)==null?void 0:cL.Group)}catch(ij){console.log("errormessage.value",ij),ij.response?A.value=ij.response.data.message:ij.message?A.value=ij.message:A.value="Failed to load api"}},Nj=async WM=>{var BM,Xt;try{const Ot=await FeM(WM);Ot&&!(Ot!=null&&Ot.data.errors)&&(O.value=(Xt=(BM=Ot.data)==null?void 0:BM.data)==null?void 0:Xt.Employee)}catch(Ot){console.log("errormessage.value",Ot),Ot.response?A.value=Ot.response.data.message:Ot.message?A.value=Ot.message:A.value="Failed to load api"}},jj=async(WM,BM,Xt,Ot,Bt,$L,nL,cL,ij,Ej,Dj)=>{var RL,sL;const qj=await localStorage.getItem("ohrId")||"";let Hj=[],Au=[],bj=null;WM&&(WM==="card_duration_minutes"&&(WM="CAST(card_duration_minutes AS INT)"),bj={key:WM,type:BM}),Bt&&(Hj=["LinkedIn","Linkedin","linkedin","linkedin.com"]),Xt&&(Au=["Internal|Gknowledge","Internal|Genpact"]),$L||($L=0);const wj=(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:rL&&rL.tagName.toUpperCase()==="SCRIPT"&&rL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("-alpha")||(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:rL&&rL.tagName.toUpperCase()==="SCRIPT"&&rL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("http://localhost:5001")?"https://api-v2-dev.genpact.com/api/academy/getAccademyByName":"https://api-v2.genpact.com/api/academy/getAccademyByName",qL=((typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:rL&&rL.tagName.toUpperCase()==="SCRIPT"&&rL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("-alpha")||(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:rL&&rL.tagName.toUpperCase()==="SCRIPT"&&rL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("http://localhost:5001"),"https://api-v2.genpact.com/api/data-hose/c2byfulltext"),Qu={search:Ot,filter:[{key:"type_of_content",value:Au},{key:"content_source",value:Hj},{key:"carousel_name",value:nL},{key:"channel_name",value:cL},{key:"proficiency",value:ij},{key:"languagecode",value:Dj},{key:"material_type",value:Ej}],orderBy:bj,limit:100,ohrid:qj,offset:$L};try{const QL=await aV(`${qL}`,Qu),lj=[];(RL=QL==null?void 0:QL.data)==null||RL.body.forEach(hu=>{lj.push(hu.curriculum_title)});const KL={academyNames:lj},wL=await Mj(`${wj}`,KL);let Uu=(sL=QL==null?void 0:QL.data)==null?void 0:sL.body.map(hu=>{var _4,BN;const wA=(BN=(_4=wL==null?void 0:wL.data)==null?void 0:_4.academies)==null?void 0:BN.find(pt=>(pt==null?void 0:pt.Title)===(hu==null?void 0:hu.curriculum_title));return wA?{...hu,...wA}:hu});return Ej.includes("Course")?(Uu=Uu==null?void 0:Uu.reduce((hu,wA)=>(hu.some(_4=>_4.curriculum_deeplink_url===wA.curriculum_deeplink_url)||hu.push(wA),hu),[]),QL.data.body=Uu,QL.data.count=Uu==null?void 0:Uu.length):QL.data.body=Uu,QL==null?void 0:QL.data}catch(QL){console.log("errormessage.value",QL),QL.response?A.value=QL.response.data.message:QL.message?A.value=QL.message:A.value="Failed to load api"}},Eu=async WM=>{var Xt;const BM=(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:rL&&rL.tagName.toUpperCase()==="SCRIPT"&&rL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("-alpha")||(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:rL&&rL.tagName.toUpperCase()==="SCRIPT"&&rL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("http://localhost:5001")?"https://api-v2-dev.genpact.com/api/academy/learners/enrollment/request":"https://api-v2.genpact.com/api/academy/learners/enrollment/request";try{const Ot={academyId:WM},Bt=await Mj(`${BM}`,Ot);return!!((Xt=Bt==null?void 0:Bt.data)!=null&&Xt.message)}catch(Ot){return console.log("errormessage.value",Ot),Ot.response?A.value=Ot.response.data.message:Ot.message?A.value=Ot.message:A.value="Failed to load api",!1}},K4=async()=>{var WM;try{const BM=await HeM();BM&&!((WM=BM==null?void 0:BM.data)!=null&&WM.error)&&(uM.value=BM)}catch(BM){console.log("errormessage.value",BM),BM.response?A.value=BM.response.data.message:BM.message?A.value=BM.message:A.value="Failed to load api"}},dA=async()=>{var WM;try{const BM=await ZeM();BM&&!((WM=BM==null?void 0:BM.data)!=null&&WM.error)?_.value=BM:_.value=[]}catch(BM){console.log("errormessage.value",BM),BM.response?A.value=BM.response.data.message:BM.message?A.value=BM.message:A.value="Failed to load api"}};return{notificationArray:y,userimgvalue:zM,initArray:x,notificationFirstobject:g,userName:iM,existingSubskillParentSkillsArray:E,journeycurrentstate:jM,suggestedSkillsArray:Y,academylearningArray:f,myTeamArray:P,skillsArray:p,myplangraphArray:o,myacademyArray:_,performancereportArray:uM,genomeShorts:SM,getGenomeShorts:async()=>{try{const{data:WM}=await HL("/delphi/shorts");return WM&&!(WM!=null&&WM.error)&&(SM.value=WM),SM.value}catch(WM){console.log("errormessage.value",WM),WM.response?A.value=WM.response.data.message:WM.message?A.value=WM.message:A.value="Failed to load api"}},getShortsContent:async WM=>{var BM,Xt;try{const Ot=bu.create({baseURL:`https://api-v2.genpact.com/api/dcl/document/${WM}`}),{data:Bt}=await Ot.get("");if(Bt!=null&&Bt.response)return(Xt=(BM=Bt==null?void 0:Bt.response)==null?void 0:BM.documentDetails)==null?void 0:Xt.asset_url}catch(Ot){console.log("errormessage.value",Ot),Ot.response?A.value=Ot.response.data.message:Ot.message?A.value=Ot.message:A.value="Failed to load api"}},notificationByall:bM,notificationByohr:JM,notificationByfilter:Nt,myplanFunction:uL,skillsFunction:CL,userImgFunction:Ct,initFunction:Ft,existingSubskillParentSkillsFunction:eL,suggestedSkillsFunction:NL,academylearningFunction:Cj,performanceFunction:gj,proformancereportFunction:K4,academyFunction:dA,journeystateFunction:async()=>{var WM;try{const BM=await HL("/delphi/journey/state");BM&&!((WM=BM==null?void 0:BM.data)!=null&&WM.error)?jM.value=BM.data.current_delphi_journey_state:jM.value=""}catch(BM){console.log("errormessage.value",BM),BM.response?A.value=BM.response.data.message:BM.message?A.value=BM.message:A.value="Failed to load api"}},academyListFunction:FL,getAllBuildsForCalendar:async()=>{try{const{data:WM}=await HL("/academy/v2/build?activeBuilds=true");return WM&&!(WM!=null&&WM.error)&&(Qt.value=WM==null?void 0:WM.builds),Qt.value}catch(WM){console.log("errormessage.value",WM),WM.response?A.value=WM.response.data.message:WM.message?A.value=WM.message:A.value="Failed to load api"}},showInterstInBuild:async WM=>{try{const{data:BM}=await Mj("delphi/saveLearnerBuildInterest",{build_id:WM});return BM}catch(BM){return BM.response?BM.response.data.message:BM.message?BM.message:"Failed to load api"}},getRecoBuilds:async()=>{try{const{data:WM}=await HL("/delphi/build_reco");return WM&&!(WM!=null&&WM.error)&&(St.value=WM==null?void 0:WM.build_info),WM&&!(WM!=null&&WM.error)&&(Gt.value=WM==null?void 0:WM.build_recos),St.value}catch(WM){console.log("errormessage.value",WM),WM.response?A.value=WM.response.data.message:WM.message?A.value=WM.message:A.value="Failed to load api"}},getBuildById:async WM=>{var Xt,Ot;let BM=!1;try{const[Bt,$L]=await Promise.all([HL(`academy/v2/build/${WM}`),HL(`delphi/build_reco/${WM}`)]),{data:nL}=Bt,{data:cL}=$L;return cL&&!(cL!=null&&cL.error)&&(BM=((Ot=(Xt=cL==null?void 0:cL.build_reco)==null?void 0:Xt.is_learner_interested)==null?void 0:Ot.toLowerCase())==="true"),nL&&!(nL!=null&&nL.error)&&(Pt.value={...nL==null?void 0:nL.body,is_learner_interested:BM}),Pt.value}catch(Bt){console.log("errormessage.value",Bt),Bt.response?A.value=Bt.response.data.message:Bt.message?A.value=Bt.message:A.value="Failed to load API"}},setPreference:async(WM,BM,Xt)=>{try{let Ot={};(WM="switch")&&(Ot={switch_to:BM}),(WM="dont-show")&&(Ot={video_popup:!0,dont_show_again:BM}),await Mj("delphi/v3/preference",Ot)}catch(Ot){console.warn(Ot)}},allBuildsForCalendar:Qt,buildById:Pt,recoBuildInfo:St,recoBuildDetails:Gt,academyListArray:eM,versionvalue:sM,enteredCoreskillArray:rM,CurrententeredCoreskillArray:C,versionDatevalue:ZM,coreSkillsFunction:mL,userHashImage:qM,academyEnrolledarray:MM,notificationArrayv6:I,fetchImmerseContent:jj,EnrollAcademy:Eu,componentCheckv6:Yt,nameInitials:IM,displayAsk:lM,jobsrefcheck:FM,noError:S,errormessage:u,genomeFuntionCheck:VM,genomeRoleValue:zL,errorMessagetext:A,employeedetailsFunction:Nj,employeeSkillfunction:nu,employeedetailsarray:O,employeeSkillarray:l,ProfileV6function:at,merged_profileArray:v,functionObject:Q,roleObject:w,IdealProfilefunction:iL,descriptionfunction:Qj,profileStatus:gt,skillratingArray:AM,topskillArray:$,profileInfodata:b,logEventOnClick:ht,initSkilluploadArray:ot,fetchEmployeeDetails:async WM=>{var Xt,Ot,Bt,$L,nL,cL,ij,Ej,Dj,qj,Hj,Au,bj;const BM=`query Employee($ohrId: String) {
301
+ `;return await bu({method:"post",url:`${kn}/my-profile/graphql`,headers:{authorization:Ze},data:{query:M,variables:{payload:L}}})},k4=async(L,M)=>await bu({method:"post",url:"https://api-v2.genpact.com/api/csod/myplan/link",headers:{"x-oauth-config-provider":"genome-open-auth",authorization:Ze},data:{skill:L,proficiency:M}}),ru=async L=>(L==="SAP HANA (Beginner) Academy"&&(L="SAP S/4HANA (Beginner) Academy"),await bu({method:"post",url:"https://api-v2.genpact.com/api/csod/curriculum/url",headers:{"x-oauth-config-provider":"genome-open-auth",authorization:Ze},data:{curriculum_title:L}})),Nl=(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:rL&&rL.tagName.toUpperCase()==="SCRIPT"&&rL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("-alpha")||(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:rL&&rL.tagName.toUpperCase()==="SCRIPT"&&rL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("http://localhost:5002")||(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:rL&&rL.tagName.toUpperCase()==="SCRIPT"&&rL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("http://localhost:5001")?"https://api-v2-dev.genpact.com/api":"https://api-v2.genpact.com/api",VeM=wz("delphi",()=>{const L=J(!1),M=J(!1),t=J(!1),j=J(!1),u=J(!1),A=J(""),N=J("0"),e=J(!1),i=J(""),S=J(!1),y=J([]),r=J([]),D=J([]),n=J([]),s=J([]);J([]);const z=J([]),T=J([]),I=J([]),a=J([]),g=J({}),x=J([]),E=J([]),C=J([]),Y=J([]),U=J([]),f=J([]),p=J([]),b=J(),v=J([]),h=J([]),Q=J(),w=J(),o=J([]),l=J([]),O=J([]),d=J([]),k=J([]),F=J([]),B=J([]),G=J([]),W=J([]),tM=J([]),Z=J([]),K=J([]),H=J({}),P=J([]),V=J([]),$=J([]),AM=J([]),_=J([]),uM=J([]),rM=J([]),eM=J([]),MM=J([]),iM=J(""),jM=J(""),SM=J({}),zM=J(""),sM=J(""),oM=J(null),CM=J(""),YM=J(""),kM=J(""),ZM=J(""),ut=J(""),tt=J(""),It=J(!1),qM=J(),Yt=J(),FM=J(),IM=J(),lM=J(!0),VM=J(!1),fM=J(!1),St=J([]),PM=J(),ot=J([]),Gt=J([]),Qt=J([]),Pt=J({}),gt=J(),AL=J(),zL=J(),oL=J(),kL=J(),DL=J(),_t=J(),bL=J({}),IL=J({}),HM=J(!1),hM=J(!1),DM=J(),jt=J(!1),GM=J(!1),XM=J(),ct=J(),yt=J(),KM=J(),Zt=J(!1),Wt=J(!1),$t=J(!1),tL=/\b(1|2|3|4A|4B|4C|4D|5A|5B|SVP|Master Data Not Found)\b/gi,ML=J([{ID:"97103561-8dc3-4fe7-ad0a-4f8dedac8f6b",code:1,Slug:"B",Title:"beginner",Title2:"Beginner"},{ID:"407b8b7b-b3ac-4074-b129-c66d22eb78d4",code:2,Slug:"I",Title:"intermediate",Title2:"Intermediate"},{ID:"5ed7edb5-3967-4bda-aa2a-093c069df241",code:3,Slug:"P",Title:"proficient",Title2:"Proficient"},{ID:"dea6184e-8d52-4852-a6cb-daf633e36f18",code:4,Slug:"E",Title:"expert",Title2:"Expert"}]),ht=async WM=>{WM.module="Delphi",WM.desc=ReM[WM.event_type];let BM=BeM[WM.event_type];WM.jp_mapping&&(BM=BM.replace("${jp_mapping}",WM.jp_mapping)),WM.skills&&(BM=WM.skills),WM.role&&BM.includes("${role}")&&(BM=BM.replace("${role}",WM.role)),WM.role&&BM.includes("${function}")&&(BM=BM.replace("${function}",WM.function)),WM.academy_id&&BM.includes("${academy_id}")&&(BM=BM.replace("${academy_id}",WM.academy_id)),WM.campaign_title&&BM.includes("${campaign_title}")&&(BM=BM.replace("${campaign_title}",WM.campaign_title)),WM.notification_title&&BM.includes("${notification_title}")&&(BM=BM.replace("${notification_title}",WM.notification_title)),WM.reco_skill_name&&BM.includes("${reco_skill_name}")&&(BM=BM.replace("${reco_skill_name}",WM.reco_skill_name)),WM.continue_learning_skill&&BM.includes("${continue_learning_skill}")&&(BM=BM.replace("${continue_learning_skill}",WM.continue_learning_skill)),WM.shorts_genome_card_id&&BM.includes("${shorts_genome_card_id}")&&(BM=BM.replace("${shorts_genome_card_id}",WM.shorts_genome_card_id)),WM.shorts_keyword&&BM.includes("${shorts_keyword}")&&(BM=BM.replace("${shorts_keyword}",WM.shorts_keyword)),WM.skill_source&&BM.includes("${skill_source}")&&(BM=BM.replace("${skill_source}",WM.skill_source)),WM.event_type=BM,WM.event_category="learner_event";try{await Mj("/delphi/event",WM)}catch(Xt){console.warn("Error in log event",Xt)}return!0},bM=async()=>{var WM,BM,Xt,Ot,Bt,$L,nL,cL,ij,Ej,Dj,qj,Hj,Au,bj,wj,qL,Qu,RL,sL,QL,lj,KL,wL,Uu,hu,wA,_4,BN;try{const pt=await HL("/delphi/getNotification");if(pt!=null&&pt.data&&!((WM=pt==null?void 0:pt.data)!=null&&WM.error)&&((BM=pt==null?void 0:pt.data)==null?void 0:BM.message)!=="Unauthorized"){a.value=(Xt=pt==null?void 0:pt.data)==null?void 0:Xt.for_all.notifications.filter(c4=>(c4==null?void 0:c4.display_style)==="popup")[0];const nN=(Bt=(Ot=pt==null?void 0:pt.data)==null?void 0:Ot.for_all)==null?void 0:Bt.notifications.filter(c4=>(c4==null?void 0:c4.display_style)!=="popup");y.value=[...(nL=($L=pt==null?void 0:pt.data)==null?void 0:$L.filtered)==null?void 0:nL.notifications,...nN,...(ij=(cL=pt==null?void 0:pt.data)==null?void 0:cL.ohr)==null?void 0:ij.notifications],r.value=[...(Dj=(Ej=pt==null?void 0:pt.data)==null?void 0:Ej.filtered)==null?void 0:Dj.notifications,...(Hj=(qj=pt==null?void 0:pt.data)==null?void 0:qj.for_all)==null?void 0:Hj.notifications,...(bj=(Au=pt==null?void 0:pt.data)==null?void 0:Au.ohr)==null?void 0:bj.notifications],I.value=[...(qL=(wj=pt==null?void 0:pt.data)==null?void 0:wj.for_all)==null?void 0:qL.banners,...(RL=(Qu=pt==null?void 0:pt.data)==null?void 0:Qu.filtered)==null?void 0:RL.banners,...(QL=(sL=pt==null?void 0:pt.data)==null?void 0:sL.ohr)==null?void 0:QL.banners],D.value=[...(KL=(lj=pt==null?void 0:pt.data)==null?void 0:lj.for_all)==null?void 0:KL.popups,...(Uu=(wL=pt==null?void 0:pt.data)==null?void 0:wL.filtered)==null?void 0:Uu.popups,...(wA=(hu=pt==null?void 0:pt.data)==null?void 0:hu.ohr)==null?void 0:wA.popups],(_4=D.value)!=null&&_4.length&&await dM();const HN=xt(),we=HN.clone().subtract(3,"days");hM.value=(BN=y.value)==null?void 0:BN.some(c4=>xt(c4==null?void 0:c4.starts).isBetween(we,HN,null,"[)"))}}catch{}},dt=async()=>{var WM,BM,Xt,Ot;try{const Bt=await HL("/summary-table/learner/inferred_skills");Bt!=null&&Bt.data&&!((WM=Bt==null?void 0:Bt.data)!=null&&WM.error)&&((BM=Bt==null?void 0:Bt.data)==null?void 0:BM.message)!=="Unauthorized"&&(T.value=(Xt=Bt==null?void 0:Bt.response)==null?void 0:Xt.response.filter($L=>($L==null?void 0:$L.skill_type)==="genome_ai_aware"),z.value=(Ot=Bt==null?void 0:Bt.response)==null?void 0:Ot.response.filter($L=>($L==null?void 0:$L.skill_type)==="build_skill"),console.log("AiAwareSkillArray",T.value),console.log("AiBuildSkillArray",z.value))}catch(Bt){console.log("errormessage.value",Bt)}},dM=async()=>{var WM,BM,Xt,Ot,Bt,$L;try{let nL=[];const cL=await HL("/summary-table/learner/inferred_skills");if(cL!=null&&cL.data&&!((WM=cL==null?void 0:cL.data)!=null&&WM.error)&&((BM=cL==null?void 0:cL.data)==null?void 0:BM.message)!=="Unauthorized"){nL=(Ot=(Xt=cL==null?void 0:cL.data)==null?void 0:Xt.response)==null?void 0:Ot.response,s.value=($L=(Bt=cL==null?void 0:cL.data)==null?void 0:Bt.response)==null?void 0:$L.response,console.log("delphiStore.rawinferredSkillarray-------",s.value),nL==null||nL.forEach(Dj=>{Dj.checked=!0});const ij=new Map,Ej=new Set;nL.forEach(Dj=>{Dj.parent_skill_id!==null&&Ej.add(Dj.parent_skill_id)}),nL.forEach(Dj=>{const{parent_skill_id:qj,parent_skill_name:Hj,skill_master_id:Au,skill_name:bj}=Dj;if(qj!==null&&Hj){const wj=`${qj}_${Hj}`;ij.has(wj)||ij.set(wj,{parent_skill_id:qj,parent_skill_name:Hj,subskill:[]}),ij.get(wj).subskill.push(Dj)}else if(!Ej.has(Dj.skill_master_id)){const wj=`top_${Dj.skill_master_id}`;ij.set(wj,{parent_skill_id:null,parent_skill_name:bj,subskill:[Dj]})}}),n.value=Array.from(ij.values()),console.log("Inferred",n.value)}}catch{}},JM=async()=>{var WM,BM;try{const Xt=await HL("/delphi/getNotification?filter=ohr");Xt!=null&&Xt.data&&!((WM=Xt==null?void 0:Xt.data)!=null&&WM.error)&&((BM=Xt==null?void 0:Xt.data)==null||BM.message)}catch{}},Nt=async()=>{var WM,BM;try{const Xt=await HL("/delphi/getNotification?filter=filtered");Xt!=null&&Xt.data&&!((WM=Xt==null?void 0:Xt.data)!=null&&WM.error)&&((BM=Xt==null?void 0:Xt.data)==null||BM.message)}catch{}},at=async()=>{var WM,BM,Xt,Ot,Bt,$L,nL,cL,ij,Ej,Dj,qj,Hj,Au,bj,wj,qL,Qu,RL,sL,QL,lj,KL,wL,Uu,hu,wA,_4,BN;try{const pt=await HL("/delphi/v2/myprofile");pt&&!(pt!=null&&pt.error)&&(VM.value=((BM=(WM=pt==null?void 0:pt.data)==null?void 0:WM.role_function)==null?void 0:BM.function)!==null,AL.value=(Bt=(Ot=(Xt=pt==null?void 0:pt.data)==null?void 0:Xt.role_function)==null?void 0:Ot.function)==null?void 0:Bt.name,zL.value=(cL=(nL=($L=pt==null?void 0:pt.data)==null?void 0:$L.role_function)==null?void 0:nL.role)==null?void 0:cL.name,CM.value=(ij=pt==null?void 0:pt.data)==null?void 0:ij.my_profile_last_refresh_date,b.value=pt==null?void 0:pt.data,h.value=(Ej=pt==null?void 0:pt.data)==null?void 0:Ej.manager_assessment,(Hj=(qj=(Dj=pt==null?void 0:pt.data)==null?void 0:Dj.manager_assessment)==null?void 0:qj.skill_data)!=null&&Hj.length?v.value=await((bj=(Au=pt==null?void 0:pt.data)==null?void 0:Au.merged_profile)==null?void 0:bj.map(nN=>{var we,c4;const HN=(c4=(we=pt==null?void 0:pt.data)==null?void 0:we.manager_assessment.skill_data)==null?void 0:c4.find(e0=>(e0==null?void 0:e0.skill_id)===(nN==null?void 0:nN.skill_id));return HN?{...nN,managerReview:!0,managerReviewprof:HN==null?void 0:HN.manager_reco_proficiency}:{...nN}})):v.value=(wj=pt==null?void 0:pt.data)==null?void 0:wj.merged_profile,((qL=pt==null?void 0:pt.data)==null?void 0:qL.skill_validation_matrix)!==null&&((Qu=pt==null?void 0:pt.data)!=null&&Qu.skill_validation_matrix)&&((QL=(sL=(RL=pt==null?void 0:pt.data)==null?void 0:RL.skill_validation_matrix[0])==null?void 0:sL.mandateData)!=null&&QL.master)?PM.value=(wL=(KL=(lj=pt==null?void 0:pt.data)==null?void 0:lj.skill_validation_matrix[0])==null?void 0:KL.mandateData)==null?void 0:wL.master:PM.value=[{masterType:"industry",Recommendation:[{type:"mandatory",description:""},{type:"nonmandatory",minSelect:0,description:""}]},{masterType:"service_line_or_domain",Recommendation:[{type:"mandatory",description:""},{type:"nonmandatory",minSelect:0,description:""}]},{masterType:"digital_technology",Recommendation:[{type:"mandatory",description:""},{type:"nonmandatory",minSelect:0,description:""}]},{masterType:"proff_skill",Recommendation:[{type:"mandatory",description:"Following are the recommended skill(s) for your role. These are automatically added to your My Plan"},{type:"nonmandatory",minSelect:0,description:""}]}],Q.value=(hu=(Uu=pt==null?void 0:pt.data)==null?void 0:Uu.role_function)==null?void 0:hu.function,w.value=(_4=(wA=pt==null?void 0:pt.data)==null?void 0:wA.role_function)==null?void 0:_4.role,gt.value=(BN=pt==null?void 0:pt.data)==null?void 0:BN.profile_status)}catch(pt){console.log("errormessage.value",pt)}},Ft=async()=>{var WM,BM,Xt,Ot,Bt,$L,nL,cL,ij,Ej,Dj,qj,Hj,Au,bj,wj,qL,Qu,RL,sL,QL,lj,KL;localStorage.setItem("ohrId","");try{const{data:wL}=await HL("/delphi/init");if(wL&&!(wL!=null&&wL.error)){if(localStorage.setItem("ohrId",wL==null?void 0:wL.learner_ohr),HM.value=wL==null?void 0:wL.allow_access,tt.value=wL==null?void 0:wL.downTimeMessage,wL!=null&&wL.allow_access){x.value=wL,(WM=x.value)!=null&&WM.global_preference||(Xt=(BM=x.value)==null?void 0:BM.learnerPreferences)!=null&&Xt.user_preference?(GM.value=!0,console.log("The Api is fetching data fron summary table")):GM.value=!1,kL.value=(Bt=(Ot=x.value)==null?void 0:Ot.ofconEntry)==null?void 0:Bt.BAND_GRADE,kL.value&&(DL.value=($L=kL.value)==null?void 0:$L.split("..")[1]),qM.value=(cL=(nL=x.value)==null?void 0:nL.learnerPreferences)==null?void 0:cL.ad_image,$.value=(ij=x.value)==null?void 0:ij.top_skills,jM.value=(Ej=wL==null?void 0:wL.existingDelphiJourney)==null?void 0:Ej.journey_current_state,iM.value=(wL==null?void 0:wL.emp_name)||"",console.log("initArray.value?.learnerPreferences?.language",(qj=(Dj=x.value)==null?void 0:Dj.learnerPreferences)==null?void 0:qj.language),((Au=(Hj=x.value)==null?void 0:Hj.learnerPreferences)==null?void 0:Au.language)!==null?oM.value=(wj=(bj=x.value)==null?void 0:bj.learnerPreferences)==null?void 0:wj.language:oM.value="en",oL.value=(qL=wL==null?void 0:wL.learnerPreferences)==null?void 0:qL.dont_show_popup_at_login;const Uu=xt();await Promise.all([bM(),aM(),vM(),YL(),JL(),at(),ht({event_type:"cta_tab_learning"}),uL(wL==null?void 0:wL.learner_ohr),Nj(wL==null?void 0:wL.learner_ohr),dt()]),(((RL=(Qu=x.value)==null?void 0:Qu.ofconEntry)==null?void 0:RL.Job_Family_Group)==="Technology Solutions and Services"||((QL=(sL=x.value)==null?void 0:sL.ofconEntry)==null?void 0:QL.Job_Family_Group)==="Data & Analytics"||((KL=(lj=x.value)==null?void 0:lj.ofconEntry)==null?void 0:KL.Job_Family_Group)==="Data and Analytics")&&await mL()}S.value=!0}}catch(wL){oM.value="en",console.log("errormessage.value",wL),wL.response?A.value=wL.response.data.message:wL.message?A.value=wL.message:A.value="Failed to load api"}},aM=async()=>{var WM,BM,Xt,Ot,Bt,$L;try{const{data:nL}=await HL("/summary-table/plan");nL&&(console.log("myplansummarydata",(BM=(WM=nL==null?void 0:nL.response)==null?void 0:WM.myplan)==null?void 0:BM.my_skill_plan),XM.value=(Ot=(Xt=nL==null?void 0:nL.response)==null?void 0:Xt.myplan)==null?void 0:Ot.my_skill_plan,ct.value=($L=(Bt=nL==null?void 0:nL.response)==null?void 0:Bt.myplan)==null?void 0:$L.my_academy_plan)}catch(nL){console.log("errormessage.value",nL),nL.response?A.value=nL.response.data.message:nL.message?A.value=nL.message:A.value="Failed to load api"}},Et=async()=>{var WM,BM,Xt,Ot,Bt,$L,nL;try{const{data:cL}=await HL("/summary-table/performance");if(cL){Zt.value=(WM=cL==null?void 0:cL.response)==null?void 0:WM.myperformance;const ij=[{skills:["Hi-Tech (Consumer Electronics)","Hi-Tech (Software and Internet)","Hi-Tech (Commercial Equipments, Semi-Conductors, Hardware)"],category:"Hi-Tech"},{skills:["Manufacturing - Automotive","Manufacturing - Industrial Machinery","Manufacturing - Aerospace & Defense","Manufacturing - Process Industries"],category:"Industrial Manufacturing"},{skills:["Pharmaceutical and Life Sciences","Healthcare Payors"],category:"Life Sciences and Healthcare"},{skills:["Supply Chain Management - PLAN","Supply Chain Management - AFTERSALES","Supply Chain Management - MAKE/DELIVER"],category:"Supply Chain Management"}],Ej=(Xt=(BM=cL==null?void 0:cL.response)==null?void 0:BM.myperformance)==null?void 0:Xt.my_skill_performance,Dj=(qj,Hj)=>{const Au=[],bj=new Set;return qj.forEach(wj=>{const qL=Hj.find(Qu=>Qu.skills.some(RL=>wj.skill.includes(RL)));if(qL){const Qu=`${qL.category}-${wj.proficiency}`;bj.has(Qu)||(Au.push({...wj,skill:qL.category,Channel:qL.category}),bj.add(Qu))}else Au.push({...wj,Channel:null})}),Au};if(Zt.value.my_skill_performance=Dj(Ej,ij),console.log("myperformanceSummaryvalue.value",Zt.value),((Bt=(Ot=Zt.value)==null?void 0:Ot.learner_score_history_trend)==null?void 0:Bt.length)>0){const qj=(nL=($L=Zt.value)==null?void 0:$L.learner_score_history_trend)==null?void 0:nL.reduce((bj,wj)=>(bj[wj.ls_year]=bj[wj.ls_year]||[],bj[wj.ls_year].push(wj),bj),{}),Hj=Ij(qj,"ls_month").reverse(),Au=Ij(Hj[0],"ls_month").reverse();N.value=Number(Au[0].learner_score_change)}}}catch(cL){console.log("errormessage.value",cL),cL.response?A.value=cL.response.data.message:cL.message?A.value=cL.message:A.value="Failed to load api"}},vM=async()=>{var WM;try{const{data:BM}=await HL("/summary-table/team-performance");BM&&(Wt.value=(WM=BM==null?void 0:BM.response)==null?void 0:WM.myTeamPerformance)}catch{}},eL=async()=>{try{const{data:WM}=await HL("/delphi/existing/subskill/parent");WM&&!(WM!=null&&WM.error)&&(E.value=WM==null?void 0:WM.existingSubskillParentSkills)}catch(WM){console.log("errormessage.value",WM),WM.response?A.value=WM.response.data.message:WM.message?A.value=WM.message:A.value="Failed to load api"}},Ct=async()=>{var WM;try{let BM=(WM=iM.value)==null?void 0:WM.split(",").map(Ot=>Ot.trim()),Xt="";if((BM==null?void 0:BM.length)>1)Xt=BM.map(Ot=>Ot[0]).join("");else{let Ot=BM[0].split(" ");(Ot==null?void 0:Ot.length)>1?Xt=Ot[0][0]+Ot[(Ot==null?void 0:Ot.length)-1][0]:Xt=Ot[0].slice(0,2)}zM.value=Xt.toUpperCase()}catch(BM){console.log("errormessage.value",BM),BM.response?A.value=BM.response.data.message:BM.message?A.value=BM.message:A.value="Failed to load api"}},NL=async()=>{var WM,BM,Xt;try{const Ot=await HL("/delphi/recomended/skills");Ot&&!((WM=Ot==null?void 0:Ot.data)!=null&&WM.error)&&((BM=Ot==null?void 0:Ot.data)==null||BM.suggestedSkills.forEach(async Bt=>{await(E==null?void 0:E.value.forEach($L=>{(Bt==null?void 0:Bt.skill_id)===$L&&(Bt.recomendedSkillHasSubskillsFlag=!0)}))}),Y.value=(Xt=Ot==null?void 0:Ot.data)==null?void 0:Xt.suggestedSkills)}catch(Ot){console.log("errormessage.value",Ot)}},JL=async()=>{var WM;try{const BM=await HL("/delphi/top_skills");BM&&!((WM=BM==null?void 0:BM.data)!=null&&WM.error)&&(yt.value=BM==null?void 0:BM.data)}catch(BM){console.log("errormessage.value",BM)}},YL=async()=>{var WM,BM,Xt,Ot;try{const Bt=await HL("/delphi/skill_ratings_from_voc");Bt&&!((BM=(WM=Bt==null?void 0:Bt.data)==null?void 0:WM.result)!=null&&BM.error)&&(AM.value=(Ot=(Xt=Bt==null?void 0:Bt.data)==null?void 0:Xt.result)==null?void 0:Ot.data)}catch(Bt){console.log("errormessage.value",Bt),Bt.response?A.value=Bt.response.data.message:Bt.message?A.value=Bt.message:A.value="Failed to load api"}},FL=async WM=>{var BM;try{const Xt=localStorage.getItem("ohrId")||"",Bt=await Mj("/data-hose/c2byfulltext",{search:WM,filter:[{key:"type_of_content",value:[]},{key:"content_source",value:[]},{key:"carousel_name",value:[]},{key:"channel_name",value:[]},{key:"proficiency",value:[]},{key:"languagecode",value:["en-US"]},{key:"material_type",value:[]}],orderBy:null,limit:1e7,ohrid:Xt,offset:0});if(Bt&&!((BM=Bt==null?void 0:Bt.data)!=null&&BM.error)){const $L=PeM(Bt.data.body,"curriculum_title");eM.value=$L}}catch(Xt){eM.value=null,Xt.response||Xt.message}},mL=async()=>{var WM;try{const BM=await HL("/delphi/coreskills");BM&&!((WM=BM==null?void 0:BM.data)!=null&&WM.error)&&(console.log("coreSkills",BM==null?void 0:BM.data),U.value=BM==null?void 0:BM.data)}catch(BM){console.log("errormessage.value",BM),BM.response||BM.message}},Cj=async()=>{var WM,BM,Xt,Ot,Bt,$L;try{const nL=await HL("/academy/learner/enrollment");MM.value=(WM=nL==null?void 0:nL.data)==null?void 0:WM.learnerEnrollments;const cL=await HL("/delphi/recommendataion/learning");if(cL&&!((BM=cL==null?void 0:cL.data)!=null&&BM.error))if((Xt=nL==null?void 0:nL.data)!=null&&Xt.learnerEnrollments){const ij=(Bt=cL==null?void 0:cL.data)==null?void 0:Bt.learnings.filter(Ej=>{var Dj;return!((Dj=nL==null?void 0:nL.data)!=null&&Dj.learnerEnrollments.some(qj=>qj.academyId===Ej.learning_path_id))}).concat((Ot=nL==null?void 0:nL.data)==null?void 0:Ot.learnerEnrollments.filter(Ej=>{var Dj;return!((Dj=cL==null?void 0:cL.data)!=null&&Dj.learnings.some(qj=>qj.learning_path_id===Ej.academyId))}));f.value=Ij(ij,"learner_enrollement_timestamp")}else f.value=($L=cL==null?void 0:cL.data)==null?void 0:$L.learnings}catch(nL){console.log("errormessage.value",nL),nL.response?A.value=nL.response.data.message:nL.message?A.value=nL.message:A.value="Failed to load api"}},gj=async()=>{var WM,BM,Xt,Ot,Bt,$L,nL,cL,ij,Ej,Dj,qj,Hj,Au,bj,wj,qL,Qu;try{let RL=await HL("/delphi/myperformance");if(RL&&!((WM=RL==null?void 0:RL.data)!=null&&WM.error)&&((BM=RL==null?void 0:RL.data)==null?void 0:BM.data)!==null){if(P.value=(Bt=(Ot=(Xt=RL==null?void 0:RL.data)==null?void 0:Xt.data)==null?void 0:Ot.manager_team)==null?void 0:Bt.data,((cL=(nL=($L=RL==null?void 0:RL.data)==null?void 0:$L.data)==null?void 0:nL.performance_history)==null?void 0:cL.data.length)>0){const sL=(qj=(Dj=(Ej=(ij=RL==null?void 0:RL.data)==null?void 0:ij.data)==null?void 0:Ej.performance_history)==null?void 0:Dj.data)==null?void 0:qj.reduce((KL,wL)=>(KL[wL.YEAR]=KL[wL.YEAR]||[],KL[wL.YEAR].push(wL),KL),{}),QL=Ij(sL,"MONTH").reverse(),lj=Ij(QL[0],"MONTH").reverse();N.value=lj[0].LS_CHANGE}uM.value=(Au=(Hj=RL==null?void 0:RL.data)==null?void 0:Hj.data)==null?void 0:Au.performance_report,V.value=(wj=(bj=RL==null?void 0:RL.data)==null?void 0:bj.data)==null?void 0:wj.manager_bits,_.value=(Qu=(qL=RL==null?void 0:RL.data)==null?void 0:qL.data)==null?void 0:Qu.academy_data}else P.value={error:"Manager not found"},await dA(),await K4()}catch(RL){console.log("errormessage.value",RL),RL.response?A.value=RL.response.data.message:RL.message?A.value=RL.message:A.value="Failed to load api"}},CL=async()=>{var WM;try{const BM=await HL("/delphi/profile/skills");BM&&!((WM=BM==null?void 0:BM.data)!=null&&WM.error)&&(p.value=BM==null?void 0:BM.data)}catch(BM){console.log("errormessage.value",BM),BM.response?A.value=BM.response.data.message:BM.message?A.value=BM.message:A.value="Failed to load api"}},uL=async WM=>{var BM,Xt,Ot;try{const Bt=await XeM(WM);Bt&&!(Bt!=null&&Bt.data.errors)&&(o.value=(Ot=(Xt=(BM=Bt.data)==null?void 0:BM.data)==null?void 0:Xt.MyPlan)==null?void 0:Ot.data)}catch(Bt){console.log("errormessage.value",Bt),Bt.response?A.value=Bt.response.data.message:Bt.message?A.value=Bt.message:A.value="Failed to load api"}},iL=async WM=>{try{const BM=await WeM([WM])}catch(BM){console.log("errormessage.value",BM),BM.response?A.value=BM.response.data.message:BM.message?A.value=BM.message:A.value="Failed to load api"}},Qj=async WM=>{try{const BM=await GeM(WM)}catch(BM){console.log("errormessage.value",BM),BM.response?A.value=BM.response.data.message:BM.message?A.value=BM.message:A.value="Failed to load api"}},nu=async(WM,BM)=>{var Xt,Ot,Bt,$L,nL,cL;try{const ij=await Eh(WM,BM);ij&&!(ij!=null&&ij.data.errors)&&(ij.data.data.Group.Master[0].SkillList=($L=(Bt=(Ot=(Xt=ij.data)==null?void 0:Xt.data)==null?void 0:Ot.Group)==null?void 0:Bt.Master[0])==null?void 0:$L.SkillList.filter(Ej=>(Ej==null?void 0:Ej.skillId)!=="f5e5ce1f-91fe-42ac-9085-67059c8402d8"&&(Ej==null?void 0:Ej.skillId)!=="92275259-cf7b-428e-9b23-903efdf5925d"),l.value=(cL=(nL=ij.data)==null?void 0:nL.data)==null?void 0:cL.Group)}catch(ij){console.log("errormessage.value",ij),ij.response?A.value=ij.response.data.message:ij.message?A.value=ij.message:A.value="Failed to load api"}},Nj=async WM=>{var BM,Xt;try{const Ot=await FeM(WM);Ot&&!(Ot!=null&&Ot.data.errors)&&(O.value=(Xt=(BM=Ot.data)==null?void 0:BM.data)==null?void 0:Xt.Employee)}catch(Ot){console.log("errormessage.value",Ot),Ot.response?A.value=Ot.response.data.message:Ot.message?A.value=Ot.message:A.value="Failed to load api"}},jj=async(WM,BM,Xt,Ot,Bt,$L,nL,cL,ij,Ej,Dj)=>{var RL,sL;const qj=await localStorage.getItem("ohrId")||"";let Hj=[],Au=[],bj=null;WM&&(WM==="card_duration_minutes"&&(WM="CAST(card_duration_minutes AS INT)"),bj={key:WM,type:BM}),Bt&&(Hj=["LinkedIn","Linkedin","linkedin","linkedin.com"]),Xt&&(Au=["Internal|Gknowledge","Internal|Genpact"]),$L||($L=0);const wj=(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:rL&&rL.tagName.toUpperCase()==="SCRIPT"&&rL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("-alpha")||(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:rL&&rL.tagName.toUpperCase()==="SCRIPT"&&rL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("http://localhost:5001")?"https://api-v2-dev.genpact.com/api/academy/getAccademyByName":"https://api-v2.genpact.com/api/academy/getAccademyByName",qL=((typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:rL&&rL.tagName.toUpperCase()==="SCRIPT"&&rL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("-alpha")||(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:rL&&rL.tagName.toUpperCase()==="SCRIPT"&&rL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("http://localhost:5001"),"https://api-v2.genpact.com/api/data-hose/c2byfulltext"),Qu={search:Ot,filter:[{key:"type_of_content",value:Au},{key:"content_source",value:Hj},{key:"carousel_name",value:nL},{key:"channel_name",value:cL},{key:"proficiency",value:ij},{key:"languagecode",value:Dj},{key:"material_type",value:Ej}],orderBy:bj,limit:100,ohrid:qj,offset:$L};try{const QL=await aV(`${qL}`,Qu),lj=[];(RL=QL==null?void 0:QL.data)==null||RL.body.forEach(hu=>{lj.push(hu.curriculum_title)});const KL={academyNames:lj},wL=await Mj(`${wj}`,KL);let Uu=(sL=QL==null?void 0:QL.data)==null?void 0:sL.body.map(hu=>{var _4,BN;const wA=(BN=(_4=wL==null?void 0:wL.data)==null?void 0:_4.academies)==null?void 0:BN.find(pt=>(pt==null?void 0:pt.Title)===(hu==null?void 0:hu.curriculum_title));return wA?{...hu,...wA}:hu});return Ej.includes("Course")?(Uu=Uu==null?void 0:Uu.reduce((hu,wA)=>(hu.some(_4=>_4.curriculum_deeplink_url===wA.curriculum_deeplink_url)||hu.push(wA),hu),[]),QL.data.body=Uu,QL.data.count=Uu==null?void 0:Uu.length):QL.data.body=Uu,QL==null?void 0:QL.data}catch(QL){console.log("errormessage.value",QL),QL.response?A.value=QL.response.data.message:QL.message?A.value=QL.message:A.value="Failed to load api"}},Eu=async WM=>{var Xt;const BM=(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:rL&&rL.tagName.toUpperCase()==="SCRIPT"&&rL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("-alpha")||(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:rL&&rL.tagName.toUpperCase()==="SCRIPT"&&rL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("http://localhost:5001")?"https://api-v2-dev.genpact.com/api/academy/learners/enrollment/request":"https://api-v2.genpact.com/api/academy/learners/enrollment/request";try{const Ot={academyId:WM},Bt=await Mj(`${BM}`,Ot);return!!((Xt=Bt==null?void 0:Bt.data)!=null&&Xt.message)}catch(Ot){return console.log("errormessage.value",Ot),Ot.response?A.value=Ot.response.data.message:Ot.message?A.value=Ot.message:A.value="Failed to load api",!1}},K4=async()=>{var WM;try{const BM=await HeM();BM&&!((WM=BM==null?void 0:BM.data)!=null&&WM.error)&&(uM.value=BM)}catch(BM){console.log("errormessage.value",BM),BM.response?A.value=BM.response.data.message:BM.message?A.value=BM.message:A.value="Failed to load api"}},dA=async()=>{var WM;try{const BM=await ZeM();BM&&!((WM=BM==null?void 0:BM.data)!=null&&WM.error)?_.value=BM:_.value=[]}catch(BM){console.log("errormessage.value",BM),BM.response?A.value=BM.response.data.message:BM.message?A.value=BM.message:A.value="Failed to load api"}};return{notificationArray:y,userimgvalue:zM,initArray:x,notificationFirstobject:g,userName:iM,existingSubskillParentSkillsArray:E,journeycurrentstate:jM,suggestedSkillsArray:Y,academylearningArray:f,myTeamArray:P,skillsArray:p,myplangraphArray:o,myacademyArray:_,performancereportArray:uM,genomeShorts:SM,getGenomeShorts:async()=>{try{const{data:WM}=await HL("/delphi/shorts");return WM&&!(WM!=null&&WM.error)&&(SM.value=WM),SM.value}catch(WM){console.log("errormessage.value",WM),WM.response?A.value=WM.response.data.message:WM.message?A.value=WM.message:A.value="Failed to load api"}},getShortsContent:async WM=>{var BM,Xt;try{const Ot=bu.create({baseURL:`https://api-v2.genpact.com/api/dcl/document/${WM}`}),{data:Bt}=await Ot.get("");if(Bt!=null&&Bt.response)return(Xt=(BM=Bt==null?void 0:Bt.response)==null?void 0:BM.documentDetails)==null?void 0:Xt.asset_url}catch(Ot){console.log("errormessage.value",Ot),Ot.response?A.value=Ot.response.data.message:Ot.message?A.value=Ot.message:A.value="Failed to load api"}},notificationByall:bM,notificationByohr:JM,notificationByfilter:Nt,myplanFunction:uL,skillsFunction:CL,userImgFunction:Ct,initFunction:Ft,existingSubskillParentSkillsFunction:eL,suggestedSkillsFunction:NL,academylearningFunction:Cj,performanceFunction:gj,proformancereportFunction:K4,academyFunction:dA,journeystateFunction:async()=>{var WM;try{const BM=await HL("/delphi/journey/state");BM&&!((WM=BM==null?void 0:BM.data)!=null&&WM.error)?jM.value=BM.data.current_delphi_journey_state:jM.value=""}catch(BM){console.log("errormessage.value",BM),BM.response?A.value=BM.response.data.message:BM.message?A.value=BM.message:A.value="Failed to load api"}},academyListFunction:FL,getAllBuildsForCalendar:async()=>{try{const{data:WM}=await HL("/academy/v2/build?activeBuilds=true");return WM&&!(WM!=null&&WM.error)&&(Qt.value=WM==null?void 0:WM.builds),Qt.value}catch(WM){console.log("errormessage.value",WM),WM.response?A.value=WM.response.data.message:WM.message?A.value=WM.message:A.value="Failed to load api"}},showInterstInBuild:async WM=>{try{const{data:BM}=await Mj("delphi/saveLearnerBuildInterest",{build_id:WM});return BM}catch(BM){return BM.response?BM.response.data.message:BM.message?BM.message:"Failed to load api"}},getRecoBuilds:async()=>{try{const{data:WM}=await HL("/delphi/build_reco");return WM&&!(WM!=null&&WM.error)&&(St.value=WM==null?void 0:WM.build_info),WM&&!(WM!=null&&WM.error)&&(Gt.value=WM==null?void 0:WM.build_recos),St.value}catch(WM){console.log("errormessage.value",WM),WM.response?A.value=WM.response.data.message:WM.message?A.value=WM.message:A.value="Failed to load api"}},getBuildById:async WM=>{var Xt,Ot;let BM=!1;try{const[Bt,$L]=await Promise.all([HL(`academy/v2/build/${WM}`),HL(`delphi/build_reco/${WM}`)]),{data:nL}=Bt,{data:cL}=$L;return cL&&!(cL!=null&&cL.error)&&(BM=((Ot=(Xt=cL==null?void 0:cL.build_reco)==null?void 0:Xt.is_learner_interested)==null?void 0:Ot.toLowerCase())==="true"),nL&&!(nL!=null&&nL.error)&&(Pt.value={...nL==null?void 0:nL.body,is_learner_interested:BM}),Pt.value}catch(Bt){console.log("errormessage.value",Bt),Bt.response?A.value=Bt.response.data.message:Bt.message?A.value=Bt.message:A.value="Failed to load API"}},setPreference:async(WM,BM,Xt)=>{try{let Ot={};(WM="switch")&&(Ot={switch_to:BM}),(WM="dont-show")&&(Ot={video_popup:!0,dont_show_again:BM}),await Mj("delphi/v3/preference",Ot)}catch(Ot){console.warn(Ot)}},allBuildsForCalendar:Qt,buildById:Pt,recoBuildInfo:St,recoBuildDetails:Gt,academyListArray:eM,versionvalue:sM,enteredCoreskillArray:rM,CurrententeredCoreskillArray:C,versionDatevalue:ZM,coreSkillsFunction:mL,userHashImage:qM,academyEnrolledarray:MM,notificationArrayv6:I,fetchImmerseContent:jj,EnrollAcademy:Eu,componentCheckv6:Yt,nameInitials:IM,displayAsk:lM,jobsrefcheck:FM,noError:S,errormessage:u,genomeFuntionCheck:VM,genomeRoleValue:zL,errorMessagetext:A,employeedetailsFunction:Nj,employeeSkillfunction:nu,employeedetailsarray:O,employeeSkillarray:l,ProfileV6function:at,merged_profileArray:v,functionObject:Q,roleObject:w,IdealProfilefunction:iL,descriptionfunction:Qj,profileStatus:gt,skillratingArray:AM,topskillArray:$,profileInfodata:b,logEventOnClick:ht,initSkilluploadArray:ot,fetchEmployeeDetails:async WM=>{var Xt,Ot,Bt,$L,nL,cL,ij,Ej,Dj,qj,Hj,Au,bj;const BM=`query Employee($ohrId: String) {
302
302
  Employee(where: { ohrid: { equals: $ohrId } }) {
303
303
  employeeId: id
304
304
  ohrid
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@genpact/genome.mfe.v6-app",
3
- "version": "1.0.842-alpha",
3
+ "version": "1.0.843-alpha",
4
4
  "displayversion": "1.0.0",
5
5
  "date": "2024-07-15",
6
6
  "license": "UNLICENSED",