@axiom-lattice/gateway 11.1.1 → 11.2.0
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.
- package/dist/{chunk-JUA3VJE7.mjs → chunk-MQQGGIWU.mjs} +5 -19
- package/dist/{chunk-JUA3VJE7.mjs.map → chunk-MQQGGIWU.mjs.map} +1 -1
- package/dist/chunk-PSOMTQPW.mjs +138 -0
- package/dist/chunk-PSOMTQPW.mjs.map +1 -0
- package/dist/embed/embed-page-AgentDetailSideApp-UGLFIWJ3.js +1 -0
- package/dist/embed/embed-page-AgentGovernanceWorkbench-HZXQSMH2.js +1 -0
- package/dist/embed/{embed-page-LangfuseDashboard-SQO74LXT.js → embed-page-LangfuseDashboard-L2LCWTBP.js} +1 -1
- package/dist/embed/embed-page-MessageGraph-BQUYKIK3.js +6 -0
- package/dist/embed/embed-page-ReactChart-5C6FIRZ4.js +1 -0
- package/dist/embed/embed-page-SkillFlow-MP72HEKD.js +1 -0
- package/dist/embed/{embed-page-TasksSideApp-GOTX4KLM.js → embed-page-TasksSideApp-5JDZKFUH.js} +1 -1
- package/dist/embed/embed-page-TenantMonitorPanel-TIGNG44X.js +1 -0
- package/dist/embed/embed-page-ThreadMaintenancePanel-3OPCUQTF.js +1 -0
- package/dist/embed/{embed-page-TopologyRuntimeView-ZCNBFCEB.js → embed-page-TopologyRuntimeView-7BRFAWID.js} +1 -1
- package/dist/embed/{embed-page-WorkflowAutomationView-KEYHJ4UM.js → embed-page-WorkflowAutomationView-DKFNUAZY.js} +1 -1
- package/dist/embed/{embed-page-abnfDiagram-N423BO3Z-4HBLZWO7.js → embed-page-abnfDiagram-N423BO3Z-CRB43OW3.js} +1 -1
- package/dist/embed/embed-page-all-BS2CILLD.js +1 -0
- package/dist/embed/{embed-page-architectureDiagram-T3A2C74G-ZMH2RUZR.js → embed-page-architectureDiagram-T3A2C74G-N4QJM7EZ.js} +1 -1
- package/dist/embed/{embed-page-chunk-4XTG3IVQ.js → embed-page-chunk-32KEPBH4.js} +1 -1
- package/dist/embed/{embed-page-chunk-BOXGEF4I.js → embed-page-chunk-36VOH7DG.js} +1 -1
- package/dist/embed/{embed-page-chunk-UE7LEPK3.js → embed-page-chunk-77S6GKXR.js} +1 -1
- package/dist/embed/{embed-page-chunk-QPWSDWJ2.js → embed-page-chunk-7EEAFSMK.js} +1 -1
- package/dist/embed/{embed-page-chunk-5DAEWNE4.js → embed-page-chunk-A4EW4WEZ.js} +1 -1
- package/dist/embed/{embed-page-chunk-46K34TAK.js → embed-page-chunk-A4I7H7RP.js} +1 -1
- package/dist/embed/{embed-page-chunk-UWC5QL3B.js → embed-page-chunk-BPNG3LLL.js} +1 -1
- package/dist/embed/{embed-page-chunk-YGBGMNRQ.js → embed-page-chunk-CBD4QXF2.js} +1 -1
- package/dist/embed/{embed-page-chunk-W4W6GR5T.js → embed-page-chunk-CR6PEMSJ.js} +1 -1
- package/dist/embed/{embed-page-chunk-JUZFORQA.js → embed-page-chunk-CS6LWVK2.js} +1 -1
- package/dist/embed/{embed-page-chunk-IHJQAZFK.js → embed-page-chunk-CSRF4YQD.js} +6 -6
- package/dist/embed/{embed-page-chunk-RPGUOUD3.js → embed-page-chunk-EMCH2FMD.js} +1 -1
- package/dist/embed/{embed-page-chunk-V5NE4FIR.js → embed-page-chunk-F52TPGBP.js} +1 -1
- package/dist/embed/embed-page-chunk-F5RPCW5O.js +216 -0
- package/dist/embed/embed-page-chunk-FYIVKZA2.js +1 -0
- package/dist/embed/{embed-page-chunk-BMIOETGD.js → embed-page-chunk-HGFIZATQ.js} +1 -1
- package/dist/embed/{embed-page-chunk-IYC2UNW7.js → embed-page-chunk-HJYCGHWQ.js} +139 -139
- package/dist/embed/{embed-page-chunk-BJESMNTG.js → embed-page-chunk-I6Q3MSI4.js} +1 -1
- package/dist/embed/{embed-page-chunk-PZ6NWGT2.js → embed-page-chunk-IKESLNJH.js} +1 -1
- package/dist/embed/{embed-page-chunk-7IPWMDQ3.js → embed-page-chunk-OZUFLDHF.js} +1 -1
- package/dist/embed/embed-page-chunk-Q54ZBF3I.js +2 -0
- package/dist/embed/{embed-page-chunk-TWJOR2LG.js → embed-page-chunk-QWLZN3EX.js} +102 -102
- package/dist/embed/embed-page-chunk-VRVIRMMM.js +1 -0
- package/dist/embed/{embed-page-chunk-7TINC3YA.js → embed-page-chunk-WMHFEZXB.js} +1 -1
- package/dist/embed/{embed-page-chunk-6NFOCJSR.js → embed-page-chunk-XGZYUTPS.js} +1 -1
- package/dist/embed/{embed-page-chunk-NY2J2ZAX.js → embed-page-chunk-ZX5EBQI5.js} +1 -1
- package/dist/embed/{embed-page-classDiagram-JCYQIIEL-QS7YU54N.js → embed-page-classDiagram-JCYQIIEL-NUQ6QNVB.js} +1 -1
- package/dist/embed/{embed-page-classDiagram-v2-OCEON4UE-EMQVQCCM.js → embed-page-classDiagram-v2-OCEON4UE-PGDM7DLE.js} +1 -1
- package/dist/embed/{embed-page-code-highlighter-LFX62WWR.js → embed-page-code-highlighter-VEQOWOHE.js} +1 -1
- package/dist/embed/{embed-page-cynefinDiagram-MW4NZA55-PAQOPJV2.js → embed-page-cynefinDiagram-MW4NZA55-WVU5T5A4.js} +1 -1
- package/dist/embed/{embed-page-dagre-VZM6K2ZE-35URH6ZO.js → embed-page-dagre-VZM6K2ZE-CAXZPEHO.js} +1 -1
- package/dist/embed/{embed-page-diagram-7IWD3JNH-CYEWFX2M.js → embed-page-diagram-7IWD3JNH-2RDNXDA6.js} +1 -1
- package/dist/embed/{embed-page-diagram-B4RE2ZJO-YQLA7HKI.js → embed-page-diagram-B4RE2ZJO-ZQTDRA2Q.js} +1 -1
- package/dist/embed/{embed-page-diagram-LBJQPF4R-R5X23WLT.js → embed-page-diagram-LBJQPF4R-QMUPQDDN.js} +1 -1
- package/dist/embed/{embed-page-diagram-Q27KOJAE-CSOUXGQI.js → embed-page-diagram-Q27KOJAE-SNK7KL7X.js} +1 -1
- package/dist/embed/{embed-page-diagram-UB23O5K3-ZYKI7DKR.js → embed-page-diagram-UB23O5K3-BTZB45HL.js} +1 -1
- package/dist/embed/{embed-page-ebnfDiagram-BXEA7PRR-AXHHSO6J.js → embed-page-ebnfDiagram-BXEA7PRR-6YXIIO2V.js} +1 -1
- package/dist/embed/{embed-page-en-3ML3AIGI.js → embed-page-en-2PUUB6AU.js} +1 -1
- package/dist/embed/embed-page-en-WCGOIHE7.js +1 -0
- package/dist/embed/{embed-page-erDiagram-JOGREHBK-TIWNY54V.js → embed-page-erDiagram-JOGREHBK-L5HOOC7O.js} +1 -1
- package/dist/embed/{embed-page-flowDiagram-UKHOOZJN-YZBV5FD5.js → embed-page-flowDiagram-UKHOOZJN-DG3SO7VX.js} +1 -1
- package/dist/embed/{embed-page-gitGraphDiagram-DS77QQ5N-JXOCEBS4.js → embed-page-gitGraphDiagram-DS77QQ5N-N2FD2D7W.js} +1 -1
- package/dist/embed/{embed-page-infoDiagram-6WML65LV-JXXYLFOE.js → embed-page-infoDiagram-6WML65LV-EQW3XJ3V.js} +1 -1
- package/dist/embed/{embed-page-kanban-definition-27J2QSJJ-GLES277J.js → embed-page-kanban-definition-27J2QSJJ-N2UULQCD.js} +1 -1
- package/dist/embed/{embed-page-mermaid-TRGRXQWI.js → embed-page-mermaid-VMLRSGBS.js} +2 -2
- package/dist/embed/{embed-page-mindmap-definition-FAOFIHXS-IK7SJKOY.js → embed-page-mindmap-definition-FAOFIHXS-HTKLKWBW.js} +1 -1
- package/dist/embed/{embed-page-pegDiagram-VL7TDLO6-WTW3QO5Z.js → embed-page-pegDiagram-VL7TDLO6-SA6LNRAH.js} +1 -1
- package/dist/embed/{embed-page-pieDiagram-7S7Q4E2Y-IO7RF3AF.js → embed-page-pieDiagram-7S7Q4E2Y-OMYAEVGG.js} +1 -1
- package/dist/embed/{embed-page-railroadDiagram-AXF67PYL-OW3L5JI4.js → embed-page-railroadDiagram-AXF67PYL-BDS2I2BL.js} +1 -1
- package/dist/embed/{embed-page-requirementDiagram-LRYGKXZP-APMTCGOA.js → embed-page-requirementDiagram-LRYGKXZP-7TQTEVRC.js} +1 -1
- package/dist/embed/{embed-page-stateDiagram-OKZ733FA-DYGG6K57.js → embed-page-stateDiagram-OKZ733FA-AJO67KCZ.js} +1 -1
- package/dist/embed/{embed-page-stateDiagram-v2-UEYNNEHI-BZIFN7WW.js → embed-page-stateDiagram-v2-UEYNNEHI-4ISQYRGQ.js} +1 -1
- package/dist/embed/{embed-page-swimlanes-SLNWSIFB-OKHSRANK.js → embed-page-swimlanes-SLNWSIFB-PEXIKADL.js} +1 -1
- package/dist/embed/{embed-page-swimlanesDiagram-ULZ7WXOC-CTOAIWO4.js → embed-page-swimlanesDiagram-ULZ7WXOC-M76ES3LS.js} +1 -1
- package/dist/embed/embed-page-t4-vb-FJS5HDYF.js +1 -0
- package/dist/embed/{embed-page-wardleyDiagram-T6FBY63Y-DL57P2VA.js → embed-page-wardleyDiagram-T6FBY63Y-B4SOYBIA.js} +1 -1
- package/dist/embed/embed-page-zh-JI3RZIRT.js +1 -0
- package/dist/embed/{embed-page-zh-ARIKNWNS.js → embed-page-zh-NFR2SOHA.js} +1 -1
- package/dist/embed/embed-page.js +1 -1
- package/dist/embed/mcp-app-page.js +20 -20
- package/dist/index.js +1383 -1075
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +606 -452
- package/dist/index.mjs.map +1 -1
- package/dist/{open-TJLQARLV.mjs → open-IA7RD66P.mjs} +3 -2
- package/dist/{open-TJLQARLV.mjs.map → open-IA7RD66P.mjs.map} +1 -1
- package/dist/open-audit-B756NMRP.mjs +67 -0
- package/dist/open-audit-B756NMRP.mjs.map +1 -0
- package/dist/{open-files-QIMOTHSN.mjs → open-files-JKHNZ5FF.mjs} +3 -2
- package/dist/{open-files-QIMOTHSN.mjs.map → open-files-JKHNZ5FF.mjs.map} +1 -1
- package/package.json +8 -8
- package/dist/embed/embed-page-AgentDetailSideApp-XHW3RIK7.js +0 -1
- package/dist/embed/embed-page-AgentGovernanceWorkbench-AOP66BWX.js +0 -1
- package/dist/embed/embed-page-MessageGraph-BRLLZI3A.js +0 -6
- package/dist/embed/embed-page-ReactChart-L4YGF75J.js +0 -1
- package/dist/embed/embed-page-SkillFlow-F2CRI43T.js +0 -1
- package/dist/embed/embed-page-ThreadMaintenancePanel-R6OWUY73.js +0 -1
- package/dist/embed/embed-page-all-6R5IZE46.js +0 -1
- package/dist/embed/embed-page-chunk-LMWLK4X2.js +0 -1
- package/dist/embed/embed-page-chunk-QQNGMJBX.js +0 -217
- package/dist/embed/embed-page-t4-vb-5IKMGA3I.js +0 -1
- package/dist/open-audit-UJ3NXCGW.mjs +0 -32
- package/dist/open-audit-UJ3NXCGW.mjs.map +0 -1
- /package/dist/embed/{embed-page-chunk-XRN4MSDO.js → embed-page-chunk-3NCDEXPW.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as gr,b as Pn}from"./embed-page-chunk-
|
|
1
|
+
import{a as pn}from"./embed-page-chunk-U6PURUXV.js";import{a as gr,b as Pn}from"./embed-page-chunk-HGFIZATQ.js";import{b as qi,c as $i}from"./embed-page-chunk-A4EW4WEZ.js";import{a as Io}from"./embed-page-chunk-XGZYUTPS.js";import{c as xo,d as To}from"./embed-page-chunk-I6Q3MSI4.js";import{b as st,c as Li,d as ko,e as xt,f as wo,g as Mi,h as Cn,i as Sn,j as Ni,l as Oi,m as Fi}from"./embed-page-chunk-7EEAFSMK.js";import{a as Ki,b as Hi}from"./embed-page-chunk-IKESLNJH.js";import{J as _i,K as Ro,L as Co,M as So,N as Wi,O as Ao,P as zi,Q as Bi,R as Po,S as ji,T as An,V as pr,W as Gi,b as Ci,d as mo,e as Si,f as yo,g as vo,j as Rn,o as In,p as ho,q as Ai,t as Pi,u as Ei,v as Di,w as bo}from"./embed-page-chunk-HJYCGHWQ.js";import{a as et}from"./embed-page-chunk-A4I7H7RP.js";import{d as Ii,f as Lt}from"./embed-page-chunk-F5RPCW5O.js";import{d as co}from"./embed-page-chunk-FYIVKZA2.js";import{b as Yr,j as Xr,l as Jr,o as yt}from"./embed-page-chunk-CSRF4YQD.js";import{Da as wi,H as ci,J as ui,La as xi,N as pi,Q as gi,S as fi,Sa as fo,Ta as Ti,U as go,Ua as Ri,ba as mi,g as si,m as li,n as Gn,ra as yi,sa as vi,ta as hi,va as bi,wa as ki,z as di}from"./embed-page-chunk-BNA3NXXX.js";import{o as _}from"./embed-page-chunk-36VOH7DG.js";import{a as z}from"./embed-page-chunk-L2PNY33P.js";import{B as ni,G as uo,Ja as Dt,Oa as ri,P as Tn,Q as oi,Qa as ii,Ra as cr,Sa as ur,bb as ai,ea as dr,i as ei,s as ti,sa as po,z as jn}from"./embed-page-chunk-WMHFEZXB.js";import{Ca as Ur,Ga as Zr,Ha as Et,La as fe,Qa as _e,Ra as wt,Ua as Be,ba as Pt,eb as lo,fa as Z,fb as He,gb as Vr,ha as Ve,ia as Gt,jb as Ge,lb as Qr,ma as at,oa as Jt,qa as sr,ra as lr,wa as Hr,za as un}from"./embed-page-chunk-QWLZN3EX.js";import{a as Pe}from"./embed-page-chunk-MPQBYKDM.js";import{e as I}from"./embed-page-chunk-45A47GH2.js";var Hs={react:{label:"capability",color:"blue"},capability:{label:"capability",color:"blue"},deep_agent:{label:"orchestrator",color:"orange"},orchestrator:{label:"orchestrator",color:"orange"},processing:{label:"workflow",color:"purple"},workflow:{label:"workflow",color:"purple"},a2a_remote:{label:"remote",color:"cyan"},remote:{label:"remote",color:"cyan"}};function En(e){return Hs[e]??{label:"capability",color:"blue"}}var Us={enabled:"green",draft:"orange",disabled:"default"};function Zi(e){return Us[e]??"default"}var Ui={blue:"#3b82f6",orange:"#f59e0b",green:"#22c55e",purple:"#a855f7",cyan:"#06b6d4"};function Kn(e){return Ui[e]??Ui.cyan}function Yd(e){let t={enabled:"#22c55e",draft:"#f59e0b",disabled:"#d9d9d9"};return t[e]??t.disabled}function Dn(e){return typeof e.graphDefinition=="object"&&e.graphDefinition!==null?e.graphDefinition:{}}function mr(e){return((Dn(e).metadata??{}).tags??"").split(",").map(r=>r.trim()).filter(Boolean)}function yr(e){let o=(Dn(e).metadata??{}).version;return o?o.startsWith("v")?o:`v${o}`:"v1"}function vr(e){let o=(Dn(e).metadata??{}).status??"enabled";return o==="draft"||o==="disabled"?o:"enabled"}function fr(e){let n=Dn(e).subAgents??[],o=Array.isArray(n)?n.filter(Boolean):[];return Array.from(new Set(o))}function Xd(e){return e.map(t=>{let n=Dn(t),o=String(n.type??"react");return{id:t.id,name:t.name,description:t.description,type:En(o).label,tags:mr(t),version:yr(t),status:vr(t),subAgents:fr(t)}})}function Jd(e){let t=new Set(e.map(r=>r.id)),n=e.map(r=>({id:r.id,label:r.name,type:En(String(Dn(r).type??"react")).label,subAgentCount:fr(r).length})),o=[];for(let r of e)for(let i of fr(r))t.has(i)&&o.push({source:r.id,target:i});return{nodes:n,edges:o}}var Ee=I(Pe());var te=I(Pe());var k=I(z()),{TextArea:Zs}=_e,{Text:Tt}=Ge,Vi=["data","execution","workflow","assistant"],Qi={data:"chatConfig.agentPanel.category.data",execution:"chatConfig.agentPanel.category.execution",workflow:"chatConfig.agentPanel.category.workflow",assistant:"chatConfig.agentPanel.category.assistant",other:"chatConfig.agentPanel.category.other"},Vs={react:"chatConfig.agentPanel.typeDesc.react",deep_agent:"chatConfig.agentPanel.typeDesc.deepAgent"},qn=(e,t)=>{if(Array.isArray(e)){let n=e.map(o=>qn(o));return(t==="tools"||t==="subAgents")&&n.every(o=>typeof o=="string")?[...n].sort():n}return e!==null&&typeof e=="object"?Object.fromEntries(Object.entries(e).sort(([n],[o])=>n.localeCompare(o)).map(([n,o])=>[n,qn(o,n)])):e},Yi=e=>{if(typeof e!="string")return qn(e??null);try{return qn(JSON.parse(e))}catch{return e}},Xi=e=>JSON.stringify(qn({...e,tools:[...e.tools].sort(),subAgents:[...e.subAgents].sort()})),Qs=Ii(({token:e,css:t})=>({modalBody:t`
|
|
2
2
|
padding: 0;
|
|
3
3
|
height: 92vh;
|
|
4
4
|
width: 100%;
|
|
@@ -181,7 +181,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
181
181
|
#axiom-auth-root [data-axiom-part="product-frame"] {
|
|
182
182
|
background: rgba(255, 255, 255, 0.16);
|
|
183
183
|
border-color: rgba(255, 255, 255, 0.28);
|
|
184
|
-
}`},"data-story":{id:"data-story",labelKey:"platformAdmin.settings.branding.case.dataStory.label",descriptionKey:"platformAdmin.settings.branding.case.dataStory.description",presetId:"narrative",branding:{brandName:"AlphaFina",logoUrl:W("logo.png"),loginLayout:"split-story",panelEyebrow:"Trusted by modern teams",panelTitle:"Build with confidence",panelDescription:"A foundation for teams that care about craft, security, and speed.",panelPoint1:"SOC 2 ready workflows",panelPoint2:"Fast onboarding",panelPoint3:"Clear audit trails",panelStat1Value:"99.99%",panelStat1Label:"Uptime",panelStat2Value:"4.9/5",panelStat2Label:"Customer rating",panelStat3Value:"12k+",panelStat3Label:"Teams onboarded",panelQuote:"The calmest, most reliable launch experience we have shipped.",panelQuoteAuthor:"Maya Chen",panelQuoteRole:"VP Engineering, Northstar",panelTrustLogo1:W("presets/trust-northstar.svg"),panelTrustLogo2:W("presets/trust-acme.svg"),panelTrustLogo3:W("presets/trust-vertex.svg"),panelTrustLogo4:W("presets/trust-lumen.svg")}},"aurora-launch":{id:"aurora-launch",labelKey:"platformAdmin.settings.branding.case.auroraLaunch.label",descriptionKey:"platformAdmin.settings.branding.case.auroraLaunch.description",presetId:"aurora",branding:{brandName:"AlphaFina",logoUrl:W("logo.png"),loginLayout:"full-bleed",backgroundImageUrl:W("presets/aurora-bg.svg"),backgroundOverlayColor:"#000000",backgroundOverlayOpacity:35,imageFit:"cover",imagePosition:"center",imageTreatment:"none",cardStyle:"glass",cardPosition:"center",loginTitle:"Sign in to the network",loginSubtitle:"One secure account for every team and agent.",footerNote:"Encrypted sessions \xB7 SSO \xB7 Audit trails"}},"cinematic-video":{id:"cinematic-video",labelKey:"platformAdmin.settings.branding.case.cinematicVideo.label",descriptionKey:"platformAdmin.settings.branding.case.cinematicVideo.description",presetId:"cinematic",branding:{brandName:"AlphaFina",logoUrl:W("logo.png"),loginLayout:"full-bleed",backgroundVideoUrl:W("presets/14471967_3840_2160_30fps.mp4"),backgroundImageUrl:W("presets/aurora-bg.svg"),backgroundOverlayColor:"#000000",backgroundOverlayOpacity:65,imageFit:"cover",imagePosition:"center",imageTreatment:"none",cardStyle:"glass",cardPosition:"right",loginTitle:"Sign in to the network",loginSubtitle:"One secure account for every team and agent."}},"aurora-video":{id:"aurora-video",labelKey:"platformAdmin.settings.branding.case.auroraVideo.label",descriptionKey:"platformAdmin.settings.branding.case.auroraVideo.description",presetId:"aurora",branding:{brandName:"AlphaFina",logoUrl:W("logo.png"),loginLayout:"full-bleed",backgroundVideoUrl:W("presets/15404923_1920_1080_60fps.mp4"),backgroundImageUrl:W("presets/aurora-bg.svg"),backgroundOverlayColor:"#000000",backgroundOverlayOpacity:30,imageFit:"cover",imagePosition:"center",imageTreatment:"none",cardStyle:"glass",cardPosition:"center",loginTitle:"Sign in to the network",loginSubtitle:"One secure account for every team and agent."}}},iz=Object.keys(Q_);var jh=te(oe());var kx=te(oe(),1);var An=te(oe(),1);var N=e=>typeof e=="string",zn=()=>{let e,r,i=new Promise((o,t)=>{e=o,r=t});return i.resolve=e,i.reject=r,i},Pd=e=>e==null?"":String(e),ex=(e,r,i)=>{e.forEach(o=>{r[o]&&(i[o]=r[o])})},tx=/###/g,ih=e=>e&&e.includes("###")?e.replace(tx,"."):e,oh=e=>!e||N(e),Pn=(e,r,i)=>{let o=N(r)?r.split("."):r,t=0;for(;t<o.length-1;){if(oh(e))return{};let n=ih(o[t]);!e[n]&&i&&(e[n]=new i),Object.prototype.hasOwnProperty.call(e,n)?e=e[n]:e={},++t}return oh(e)?{}:{obj:e,k:ih(o[t])}},ah=(e,r,i)=>{let{obj:o,k:t}=Pn(e,r,Object);if(o!==void 0||r.length===1){o[t]=i;return}let n=r[r.length-1],a=r.slice(0,r.length-1),s=Pn(e,a,Object);for(;s.obj===void 0&&a.length;)n=`${a[a.length-1]}.${n}`,a=a.slice(0,a.length-1),s=Pn(e,a,Object),s?.obj&&typeof s.obj[`${s.k}.${n}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${n}`]=i},rx=(e,r,i,o)=>{let{obj:t,k:n}=Pn(e,r,Object);t[n]=t[n]||[],t[n].push(i)},Vo=(e,r)=>{let{obj:i,k:o}=Pn(e,r);if(i&&Object.prototype.hasOwnProperty.call(i,o))return i[o]},nx=(e,r,i)=>{let o=Vo(e,i);return o!==void 0?o:Vo(r,i)},ph=(e,r,i)=>{for(let o in r)o!=="__proto__"&&o!=="constructor"&&(Object.prototype.hasOwnProperty.call(e,o)?N(e[o])||e[o]instanceof String||N(r[o])||r[o]instanceof String?i&&(e[o]=r[o]):ph(e[o],r[o],i):e[o]=r[o]);return e},Be=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),ix={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},ox=e=>N(e)?e.replace(/[&<>"'\/]/g,r=>ix[r]):e,Ad=class{constructor(r){this.capacity=r,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(r){let i=this.regExpMap.get(r);if(i!==void 0)return i;let o=new RegExp(r);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(r,o),this.regExpQueue.push(r),o}},ax=[" ",",","?","!",";"],sx=new Ad(20),cx=(e,r,i)=>{r=r||"",i=i||"";let o=ax.filter(a=>!r.includes(a)&&!i.includes(a));if(o.length===0)return!0;let t=sx.getRegExp(`(${o.map(a=>a==="?"?"\\?":a).join("|")})`),n=!t.test(e);if(!n){let a=e.indexOf(i);a>0&&!t.test(e.substring(0,a))&&(n=!0)}return n},Td=(e,r,i=".")=>{if(!e)return;if(e[r])return Object.prototype.hasOwnProperty.call(e,r)?e[r]:void 0;let o=r.split(i),t=e;for(let n=0;n<o.length;){if(!t||typeof t!="object")return;let a,s="";for(let u=n;u<o.length;++u)if(u!==n&&(s+=i),s+=o[u],a=t[s],a!==void 0){if(["string","number","boolean"].includes(typeof a)&&u<o.length-1)continue;n+=u-n+1;break}t=a}return t},On=e=>e?.replace(/_/g,"-"),ux={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,r){console?.[e]?.apply?.(console,r)}},Ed=class e{constructor(r,i={}){this.init(r,i)}init(r,i={}){this.prefix=i.prefix||"i18next:",this.logger=r||ux,this.options=i,this.debug=i.debug}log(...r){return this.forward(r,"log","",!0)}warn(...r){return this.forward(r,"warn","",!0)}error(...r){return this.forward(r,"error","")}deprecate(...r){return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(r,i,o,t){return t&&!this.debug?null:(r=r.map(n=>N(n)?n.replace(/[\r\n\x00-\x1F\x7F]/g," "):n),N(r[0])&&(r[0]=`${o}${this.prefix} ${r[0]}`),this.logger[i](r))}create(r){return new e(this.logger,{prefix:`${this.prefix}:${r}:`,...this.options})}clone(r){return r=r||this.options,r.prefix=r.prefix||this.prefix,new e(this.logger,r)}},Le=new Ed,_r=class{constructor(){this.observers={}}on(r,i){return r.split(" ").forEach(o=>{this.observers[o]||(this.observers[o]=new Map);let t=this.observers[o].get(i)||0;this.observers[o].set(i,t+1)}),this}off(r,i){if(this.observers[r]){if(!i){delete this.observers[r];return}this.observers[r].delete(i)}}once(r,i){let o=(...t)=>{i(...t),this.off(r,o)};return this.on(r,o),this}emit(r,...i){this.observers[r]&&Array.from(this.observers[r].entries()).forEach(([t,n])=>{for(let a=0;a<n;a++)t(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([t,n])=>{for(let a=0;a<n;a++)t(r,...i)})}},Mo=class extends _r{constructor(r,i={ns:["translation"],defaultNS:"translation"}){super(),this.data=r||{},this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(r){this.options.ns.includes(r)||this.options.ns.push(r)}removeNamespaces(r){let i=this.options.ns.indexOf(r);i>-1&&this.options.ns.splice(i,1)}getResource(r,i,o,t={}){let n=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,a=t.ignoreJSONStructure!==void 0?t.ignoreJSONStructure:this.options.ignoreJSONStructure,s;r.includes(".")?s=r.split("."):(s=[r,i],o&&(Array.isArray(o)?s.push(...o):N(o)&&n?s.push(...o.split(n)):s.push(o)));let u=Vo(this.data,s);return!u&&!i&&!o&&r.includes(".")&&(r=s[0],i=s[1],o=s.slice(2).join(".")),u||!a||!N(o)?u:Td(this.data?.[r]?.[i],o,n)}addResource(r,i,o,t,n={silent:!1}){let a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,s=[r,i];o&&(s=s.concat(a?o.split(a):o)),r.includes(".")&&(s=r.split("."),t=i,i=s[1]),this.addNamespaces(i),ah(this.data,s,t),n.silent||this.emit("added",r,i,o,t)}addResources(r,i,o,t={silent:!1}){for(let n in o)(N(o[n])||Array.isArray(o[n]))&&this.addResource(r,i,n,o[n],{silent:!0});t.silent||this.emit("added",r,i,o)}addResourceBundle(r,i,o,t,n,a={silent:!1,skipCopy:!1}){let s=[r,i];r.includes(".")&&(s=r.split("."),t=o,o=i,i=s[1]),this.addNamespaces(i);let u=Vo(this.data,s)||{};a.skipCopy||(o=JSON.parse(JSON.stringify(o))),t?ph(u,o,n):u={...u,...o},ah(this.data,s,u),a.silent||this.emit("added",r,i,o)}removeResourceBundle(r,i){this.hasResourceBundle(r,i)&&delete this.data[r][i],this.removeNamespaces(i),this.emit("removed",r,i)}hasResourceBundle(r,i){return this.getResource(r,i)!==void 0}getResourceBundle(r,i){return i||(i=this.options.defaultNS),this.getResource(r,i)}getDataByLanguage(r){return this.data[r]}hasLanguageSomeTranslations(r){let i=this.getDataByLanguage(r);return!!(i&&Object.keys(i)||[]).find(t=>i[t]&&Object.keys(i[t]).length>0)}toJSON(){return this.data}},mh={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,r,i,o,t){return e.forEach(n=>{r=this.processors[n]?.process(r,i,o,t)??r}),r}},gh=Symbol("i18next/PATH_KEY");function lx(){let e=[],r=Object.create(null),i;return r.get=(o,t)=>(i?.revoke?.(),t===gh?e:(e.push(t),i=Proxy.revocable(o,r),i.proxy)),Proxy.revocable(Object.create(null),r).proxy}function Nt(e,r){let{[gh]:i}=e(lx()),o=r?.keySeparator??".",t=r?.nsSeparator??":",n=r?.enableSelector==="strict";if(i.length>1&&t){let a=r?.ns,s=n?Array.isArray(a)?a:a?[a]:null:Array.isArray(a)?a:null;if(s&&(n?s:s.length>1?s.slice(1):[]).includes(i[0]))return`${i[0]}${t}${i.slice(1).join(o)}`}return i.join(o)}var Od=e=>!N(e)&&typeof e!="boolean"&&typeof e!="number",Bo=class e extends _r{constructor(r,i={}){super(),ex(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Le.create("translator"),this.checkedLoadedFor={}}changeLanguage(r){r&&(this.language=r)}exists(r,i={interpolation:{}}){let o={...i};if(r==null)return!1;let t=this.resolve(r,o);if(t?.res===void 0)return!1;let n=Od(t.res);return!(o.returnObjects===!1&&n)}extractFromKey(r,i){let o=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");let t=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,n=i.ns||this.options.defaultNS||[],a=o&&r.includes(o),s=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!cx(r,o,t);if(a&&!s){let u=r.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:r,namespaces:N(n)?[n]:n};let c=r.split(o);(o!==t||o===t&&this.options.ns.includes(c[0]))&&(n=c.shift()),r=c.join(t)}return{key:r,namespaces:N(n)?[n]:n}}translate(r,i,o){let t=typeof i=="object"?{...i}:i;if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),r==null)return"";typeof r=="function"&&(r=Nt(r,{...this.options,...t})),Array.isArray(r)||(r=[String(r)]),r=r.map(U=>typeof U=="function"?Nt(U,{...this.options,...t}):String(U));let n=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,a=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:s,namespaces:u}=this.extractFromKey(r[r.length-1],t),c=u[u.length-1],l=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;l===void 0&&(l=":");let d=t.lng||this.language,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()==="cimode")return f?n?{res:`${c}${l}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(t)}:`${c}${l}${s}`:n?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(t)}:s;let p=this.resolve(r,t),m=p?.res,v=p?.usedKey||s,_=p?.exactUsedKey||s,S=["[object Number]","[object Function]","[object RegExp]"],k=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,P=t.count!==void 0&&!N(t.count),E=e.hasDefaultValue(t),T=P?this.pluralResolver.getSuffix(d,t.count,t):"",J=t.ordinal&&P?this.pluralResolver.getSuffix(d,t.count,{ordinal:!1}):"",we=P&&!t.ordinal&&t.count===0,ve=we&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${T}`]||t[`defaultValue${J}`]||t.defaultValue,j=m;w&&!m&&E&&(j=ve);let B=Od(j),K=Object.prototype.toString.apply(j);if(w&&j&&B&&!S.includes(K)&&!(N(k)&&Array.isArray(j))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let U=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,j,{...t,ns:u}):`key '${s} (${this.language})' returned an object instead of string.`;return n?(p.res=U,p.usedParams=this.getUsedParamsDetails(t),p):U}if(a){let U=Array.isArray(j),X=U?[]:{},ut=U?_:v;for(let xe in j)if(Object.prototype.hasOwnProperty.call(j,xe)){let Te=`${ut}${a}${xe}`;E&&!m?X[xe]=this.translate(Te,{...t,defaultValue:Od(ve)?ve[xe]:void 0,joinArrays:!1,ns:u}):X[xe]=this.translate(Te,{...t,joinArrays:!1,ns:u}),X[xe]===Te&&(X[xe]=j[xe])}m=X}}else if(w&&N(k)&&Array.isArray(m))m=m.join(k),m&&(m=this.extendTranslation(m,r,t,o));else{let U=!1,X=!1;!this.isValidLookup(m)&&E&&(U=!0,m=ve),this.isValidLookup(m)||(X=!0,m=s);let xe=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&X?void 0:m,Te=E&&ve!==m&&this.options.updateMissing;if(X||U||Te){if(this.logger.log(Te?"updateKey":"missingKey",d,c,P&&!Te?`${s}${this.pluralResolver.getSuffix(d,t.count,t)}`:s,Te?ve:m),a){let ye=this.resolve(s,{...t,keySeparator:!1});ye&&ye.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Ir=[],Dn=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Dn&&Dn[0])for(let ye=0;ye<Dn.length;ye++)Ir.push(Dn[ye]);else this.options.saveMissingTo==="all"?Ir=this.languageUtils.toResolveHierarchy(t.lng||this.language):Ir.push(t.lng||this.language);let Wd=(ye,lt,Sr)=>{let Hd=E&&Sr!==m?Sr:xe;this.options.missingKeyHandler?this.options.missingKeyHandler(ye,c,lt,Hd,Te,t):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(ye,c,lt,Hd,Te,t),this.emit("missingKey",ye,c,lt,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?Ir.forEach(ye=>{let lt=this.pluralResolver.getSuffixes(ye,t);we&&t[`defaultValue${this.options.pluralSeparator}zero`]&&!lt.includes(`${this.options.pluralSeparator}zero`)&<.push(`${this.options.pluralSeparator}zero`),lt.forEach(Sr=>{Wd([ye],s+Sr,t[`defaultValue${Sr}`]||ve)})}):Wd(Ir,s,ve))}m=this.extendTranslation(m,r,t,p,o),X&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${c}${l}${s}`),(X||U)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${l}${s}`:s,U?m:void 0,t))}return n?(p.res=m,p.usedParams=this.getUsedParamsDetails(t),p):m}extendTranslation(r,i,o,t,n){if(this.i18nFormat?.parse)r=this.i18nFormat.parse(r,{...this.options.interpolation.defaultVariables,...o},o.lng||this.language||t.usedLng,t.usedNS,t.usedKey,{resolved:t});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init({...o,interpolation:{...this.options.interpolation,...o.interpolation}});let u=N(r)&&(o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),c;if(u){let d=r.match(this.interpolator.nestingRegexp);c=d&&d.length}let l=o.replace&&!N(o.replace)?o.replace:o;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),r=this.interpolator.interpolate(r,l,o.lng||this.language||t.usedLng,o),u){let d=r.match(this.interpolator.nestingRegexp),f=d&&d.length;c<f&&(o.nest=!1)}!o.lng&&t&&t.res&&(o.lng=this.language||t.usedLng),o.nest!==!1&&(r=this.interpolator.nest(r,(...d)=>n?.[0]===d[0]&&!o.context?(this.logger.warn(`It seems you are nesting recursively key: ${d[0]} in key: ${i[0]}`),null):this.translate(...d,i),o)),o.interpolation&&this.interpolator.reset()}let a=o.postProcess||this.options.postProcess,s=N(a)?[a]:a;return r!=null&&s?.length&&o.applyPostProcessor!==!1&&(r=mh.handle(s,r,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...t,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),r}resolve(r,i={}){let o,t,n,a,s;return N(r)&&(r=[r]),Array.isArray(r)&&(r=r.map(u=>typeof u=="function"?Nt(u,{...this.options,...i}):u)),r.forEach(u=>{if(this.isValidLookup(o))return;let c=this.extractFromKey(u,i),l=c.key;t=l;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));let f=i.count!==void 0&&!N(i.count),p=f&&!i.ordinal&&i.count===0,m=i.context!==void 0&&(N(i.context)||typeof i.context=="number")&&i.context!=="",v=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);d.forEach(_=>{this.isValidLookup(o)||(s=_,!this.checkedLoadedFor[`${v[0]}-${_}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(s)&&(this.checkedLoadedFor[`${v[0]}-${_}`]=!0,this.logger.warn(`key "${t}" for languages "${v.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),v.forEach(S=>{if(this.isValidLookup(o))return;a=S;let k=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(k,l,S,_,i);else{let P;f&&(P=this.pluralResolver.getSuffix(S,i.count,i));let E=`${this.options.pluralSeparator}zero`,T=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(i.ordinal&&P.startsWith(T)&&k.push(l+P.replace(T,this.options.pluralSeparator)),k.push(l+P),p&&k.push(l+E)),m){let J=`${l}${this.options.contextSeparator||"_"}${i.context}`;k.push(J),f&&(i.ordinal&&P.startsWith(T)&&k.push(J+P.replace(T,this.options.pluralSeparator)),k.push(J+P),p&&k.push(J+E))}}let w;for(;w=k.pop();)this.isValidLookup(o)||(n=w,o=this.getResource(S,_,w,i))}))})}),{res:o,usedKey:t,exactUsedKey:n,usedLng:a,usedNS:s}}isValidLookup(r){return r!==void 0&&!(!this.options.returnNull&&r===null)&&!(!this.options.returnEmptyString&&r==="")}getResource(r,i,o,t={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(r,i,o,t):this.resourceStore.getResource(r,i,o,t)}getUsedParamsDetails(r={}){let i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=r.replace&&!N(r.replace),t=o?r.replace:r;if(o&&typeof r.count<"u"&&(t={...t,count:r.count}),this.options.interpolation.defaultVariables&&(t={...this.options.interpolation.defaultVariables,...t}),!o){t={...t};for(let n of i)delete t[n]}return t}static hasDefaultValue(r){let i="defaultValue";for(let o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&o.startsWith(i)&&r[o]!==void 0)return!0;return!1}},Ko=class{constructor(r){this.options=r,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Le.create("languageUtils"),this.resolveHierarchyCache={}}clearCache(){this.resolveHierarchyCache={}}getScriptPartFromCode(r){if(r=On(r),!r||!r.includes("-"))return null;let i=r.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(r){if(r=On(r),!r||!r.includes("-"))return r;let i=r.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(r){if(N(r)&&r.includes("-")){let i;try{i=Intl.getCanonicalLocales(r)[0]}catch{}return i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i||(this.options.lowerCaseLng?r.toLowerCase():r)}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}isSupportedCode(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(r)}getBestMatchFromCodes(r){if(!r)return null;let i;return r.forEach(o=>{if(i)return;let t=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(t))&&(i=t)}),!i&&this.options.supportedLngs&&r.forEach(o=>{if(i)return;let t=this.getScriptPartFromCode(o);if(this.isSupportedCode(t))return i=t;let n=this.getLanguagePartFromCode(o);if(this.isSupportedCode(n))return i=n;i=this.options.supportedLngs.find(a=>a===n?!0:!a.includes("-")&&!n.includes("-")?!1:!!(a.includes("-")&&!n.includes("-")&&a.slice(0,a.indexOf("-"))===n||a.startsWith(n)&&n.length>1))}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(r,i){if(!r)return[];if(typeof r=="function"&&(r=r(i)),N(r)&&(r=[r]),Array.isArray(r))return r;if(!i)return r.default||[];let o=r[i];return o||(o=r[this.getScriptPartFromCode(i)]),o||(o=r[this.formatLanguageCode(i)]),o||(o=r[this.getLanguagePartFromCode(i)]),o||(o=r.default),o||[]}toResolveHierarchy(r,i){let o=this.options.fallbackLng,t=Array.isArray(o)?o.join("|"):o;t!==this._cachedFallbackLng&&(this.resolveHierarchyCache={},this._cachedFallbackLng=t);let n=i===void 0||i===!1||N(i),a=i===void 0&&typeof this.options.fallbackLng=="function",s=N(r)&&n&&!a,u=null;if(s){let f;i===void 0?f="undefined":i===!1?f="boolean:false":f=`string:${i}`,u=`${r.length}:${r}|${f}`}if(u!==null){let f=this.resolveHierarchyCache[u];if(f!==void 0)return f.slice()}let c=this.getFallbackCodes((i===!1?[]:i)||this.options.fallbackLng||[],r),l=[],d=f=>{f&&(this.isSupportedCode(f)?l.push(f):this.logger.warn(`rejecting language code not found in supportedLngs: ${f}`))};return N(r)&&(r.includes("-")||r.includes("_"))?(this.options.load!=="languageOnly"&&d(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&d(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&d(this.getLanguagePartFromCode(r))):N(r)&&d(this.formatLanguageCode(r)),c.forEach(f=>{l.includes(f)||d(this.formatLanguageCode(f))}),u!==null?(this.resolveHierarchyCache[u]=l,l.slice()):l}},sh={zero:0,one:1,two:2,few:3,many:4,other:5},ch={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})},Dd=class{constructor(r,i={}){this.languageUtils=r,this.options=i,this.logger=Le.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(r,i={}){let o=On(r==="dev"?"en":r),t=i.ordinal?"ordinal":"cardinal",n=JSON.stringify({cleanedCode:o,type:t});if(n in this.pluralRulesCache)return this.pluralRulesCache[n];let a;try{a=new Intl.PluralRules(o,{type:t})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),ch;if(!r.match(/-|_/))return ch;let u=this.languageUtils.getLanguagePartFromCode(r);a=this.getRule(u,i)}return this.pluralRulesCache[n]=a,a}needsPlural(r,i={}){let o=this.getRule(r,i);return o||(o=this.getRule("dev",i)),o?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(r,i,o={}){return this.getSuffixes(r,o).map(t=>`${i}${t}`)}getSuffixes(r,i={}){let o=this.getRule(r,i);return o||(o=this.getRule("dev",i)),o?o.resolvedOptions().pluralCategories.sort((t,n)=>sh[t]-sh[n]).map(t=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${t}`):[]}getSuffix(r,i,o={}){let t=this.getRule(r,o);return t?`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${t.select(i)}`:(this.logger.warn(`no plural rule found for: ${r}`),this.getSuffix("dev",i,o))}},uh=(e,r,i,o=".",t=!0)=>{let n=nx(e,r,i);return!n&&t&&N(i)&&(n=Td(e,i,o),n===void 0&&(n=Td(r,i,o))),n},lh=e=>e.replace(/\$/g,"$$$$"),Jo=class{constructor(r={}){this.logger=Le.create("interpolator"),this.options=r,this.format=r?.interpolation?.format||(i=>i),this.init(r)}init(r={}){r.interpolation||(r.interpolation={escapeValue:!0});let{escape:i,escapeValue:o,useRawValueToEscape:t,prefix:n,prefixEscaped:a,suffix:s,suffixEscaped:u,formatSeparator:c,unescapeSuffix:l,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:p,nestingSuffix:m,nestingSuffixEscaped:v,nestingOptionsSeparator:_,maxReplaces:S,alwaysFormat:k}=r.interpolation;this.escape=i!==void 0?i:ox,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=t!==void 0?t:!1,this.prefix=n?Be(n):a||"{{",this.suffix=s?Be(s):u||"}}",this.formatSeparator=c||",",this.unescapePrefix=l?"":d?Be(d):"-",this.unescapeSuffix=this.unescapePrefix?"":l?Be(l):"",this.nestingPrefix=f?Be(f):p||Be("$t("),this.nestingSuffix=m?Be(m):v||Be(")"),this.nestingOptionsSeparator=_||",",this.maxReplaces=S||1e3,this.alwaysFormat=k!==void 0?k:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let r=(i,o)=>i?.source===o?(i.lastIndex=0,i):new RegExp(o,"g");this.regexp=r(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=r(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=r(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(r,i,o,t){let n,a,s,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=p=>{if(!p.includes(this.formatSeparator)){let S=uh(i,u,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(S,void 0,o,{...t,...i,interpolationkey:p}):S}let m=p.split(this.formatSeparator),v=m.shift().trim(),_=m.join(this.formatSeparator).trim();return this.format(uh(i,u,v,this.options.keySeparator,this.options.ignoreJSONStructure),_,o,{...t,...i,interpolationkey:v})};this.resetRegExp(),!this.escapeValue&&typeof r=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(r)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false \u2014 if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");let l=t?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=t?.interpolation?.skipOnVariables!==void 0?t.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>p},{regex:this.regexp,safeValue:p=>this.escapeValue?this.escape(p):p}].forEach(p=>{for(s=0;n=p.regex.exec(r);){let m=n[1].trim();if(a=c(m),a===void 0)if(typeof l=="function"){let _=l(r,n,t);a=N(_)?_:""}else if(t&&Object.prototype.hasOwnProperty.call(t,m))a="";else if(d){a=n[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${r}`),a="";else!N(a)&&!this.useRawValueToEscape&&(a=Pd(a));let v=p.safeValue(a);if(r=r.replace(n[0],lh(v)),d?(p.regex.lastIndex+=v.length,p.regex.lastIndex-=n[0].length):p.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),r}nest(r,i,o={}){let t,n,a,s=(u,c)=>{let l=this.nestingOptionsSeparator;if(!u.includes(l))return u;let d=u.split(new RegExp(`${Be(l)}[ ]*{`)),f=`{${d[1]}`;u=d[0],f=this.interpolate(f,a);let p=f.match(/'/g),m=f.match(/"/g);((p?.length??0)%2===0&&!m||(m?.length??0)%2!==0)&&(f=f.replace(/'/g,'"'));try{a=JSON.parse(f),c&&(a={...c,...a})}catch(v){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,v),`${u}${l}${f}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,u};for(;t=this.nestingRegexp.exec(r);){let u=[];a={...o},a=a.replace&&!N(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/s.test(t[1])?t[1].lastIndexOf("}")+1:t[1].indexOf(this.formatSeparator);if(c!==-1&&(u=t[1].slice(c).split(this.formatSeparator).map(l=>l.trim()).filter(Boolean),t[1]=t[1].slice(0,c)),n=i(s.call(this,t[1].trim(),a),a),n&&t[0]===r&&!N(n))return n;N(n)||(n=Pd(n)),n||(this.logger.warn(`missed to resolve ${t[1]} for nesting ${r}`),n=""),u.length&&(n=u.reduce((l,d)=>this.format(l,d,o.lng,{...o,interpolationkey:t[1].trim()}),n.trim())),r=r.replace(t[0],lh(Pd(n))),this.regexp.lastIndex=0}return r}},dx=e=>{let r=e.toLowerCase().trim(),i={};if(e.includes("(")){let o=e.split("(");r=o[0].toLowerCase().trim();let t=o[1].slice(0,-1);r==="currency"&&!t.includes(":")?i.currency||(i.currency=t.trim()):r==="relativetime"&&!t.includes(":")?i.range||(i.range=t.trim()):t.split(";").forEach(a=>{if(a){let[s,...u]=a.split(":"),c=u.join(":").trim().replace(/^'+|'+$/g,""),l=s.trim();i[l]||(i[l]=c),c==="false"&&(i[l]=!1),c==="true"&&(i[l]=!0),isNaN(c)||(i[l]=parseInt(c,10))}})}return{formatName:r,formatOptions:i}},dh=e=>{let r={};return(i,o,t)=>{let n=t;t&&t.interpolationkey&&t.formatParams&&t.formatParams[t.interpolationkey]&&t[t.interpolationkey]&&(n={...n,[t.interpolationkey]:void 0});let a=o+JSON.stringify(n),s=r[a];return s||(s=e(On(o),t),r[a]=s),s(i)}},fx=e=>(r,i,o)=>e(On(i),o)(r),jd=class{constructor(r={}){this.logger=Le.create("formatter"),this.options=r,this.init(r)}init(r,i={interpolation:{}}){this.formatSeparator=i.interpolation.formatSeparator||",";let o=i.cacheInBuiltFormats?dh:fx;this.formats={number:o((t,n)=>{let a=new Intl.NumberFormat(t,{...n});return s=>a.format(s)}),currency:o((t,n)=>{let a=new Intl.NumberFormat(t,{...n,style:"currency"});return s=>a.format(s)}),datetime:o((t,n)=>{let a=new Intl.DateTimeFormat(t,{...n});return s=>a.format(s)}),relativetime:o((t,n)=>{let a=new Intl.RelativeTimeFormat(t,{...n});return s=>a.format(s,n.range||"day")}),list:o((t,n)=>{let a=new Intl.ListFormat(t,{...n});return s=>a.format(s)})}}add(r,i){this.formats[r.toLowerCase().trim()]=i}addCached(r,i){this.formats[r.toLowerCase().trim()]=dh(i)}format(r,i,o,t={}){if(!i||r==null)return r;let n=i.split(this.formatSeparator),a=[];for(let u=0;u<n.length;u++){let c=n[u];for(;c.indexOf("(")>-1&&!c.includes(")")&&u+1<n.length;)c=`${c}${this.formatSeparator}${n[++u]}`;a.push(c)}return a.reduce((u,c)=>{let{formatName:l,formatOptions:d}=dx(c);if(this.formats[l]){let f=u;try{let p=t?.formatParams?.[t.interpolationkey]||{},m=p.locale||p.lng||t.locale||t.lng||o;f=this.formats[l](u,m,{...d,...t,...p})}catch(p){this.logger.warn(p)}return f}else this.logger.warn(`there was no format function for ${l}`);return u},r)}},px=(e,r)=>{e.pending[r]!==void 0&&(delete e.pending[r],e.pendingCount--)},Cd=class extends _r{constructor(r,i,o,t={}){super(),this.backend=r,this.store=i,this.services=o,this.languageUtils=o.languageUtils,this.options=t,this.logger=Le.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=t.maxParallelReads||10,this.readingCalls=0,this.maxRetries=t.maxRetries>=0?t.maxRetries:5,this.retryTimeout=t.retryTimeout>=1?t.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(o,t.backend,t)}queueLoad(r,i,o,t){let n={},a={},s={},u={};return r.forEach(c=>{let l=!0;i.forEach(d=>{let f=`${c}|${d}`;!o.reload&&this.store.hasResourceBundle(c,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?a[f]===void 0&&(a[f]=!0):(this.state[f]=1,l=!1,a[f]===void 0&&(a[f]=!0),n[f]===void 0&&(n[f]=!0),u[d]===void 0&&(u[d]=!0)))}),l||(s[c]=!0)}),(Object.keys(n).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:t}),{toLoad:Object.keys(n),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(u)}}loaded(r,i,o){let t=r.split("|"),n=t[0],a=t[1];i&&this.emit("failedLoading",n,a,i),!i&&o&&this.store.addResourceBundle(n,a,o,void 0,void 0,{skipCopy:!0}),this.state[r]=i?-1:2,i&&o&&(this.state[r]=0);let s={};this.queue.forEach(u=>{rx(u.loaded,[n],a),px(u,r),i&&u.errors.push(i),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(c=>{s[c]||(s[c]={});let l=u.loaded[c];l.length&&l.forEach(d=>{s[c][d]===void 0&&(s[c][d]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(u=>!u.done)}read(r,i,o,t=0,n=this.retryTimeout,a){if(!r.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:r,ns:i,fcName:o,tried:t,wait:n,callback:a});return}this.readingCalls++;let s=(c,l)=>{if(this.readingCalls--,this.waitingReads.length>0){let d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(c&&l&&t<this.maxRetries){setTimeout(()=>{this.read(r,i,o,t+1,n*2,a)},n);return}a(c,l)},u=this.backend[o].bind(this.backend);if(u.length===2){try{let c=u(r,i);c&&typeof c.then=="function"?c.then(l=>s(null,l)).catch(s):s(null,c)}catch(c){s(c)}return}return u(r,i,s)}prepareLoading(r,i,o={},t){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),t&&t();N(r)&&(r=this.languageUtils.toResolveHierarchy(r)),N(i)&&(i=[i]);let n=this.queueLoad(r,i,o,t);if(!n.toLoad.length)return n.pending.length||t(),null;n.toLoad.forEach(a=>{this.loadOne(a)})}load(r,i,o){this.prepareLoading(r,i,{},o)}reload(r,i,o){this.prepareLoading(r,i,{reload:!0},o)}loadOne(r,i=""){let o=r.split("|"),t=o[0],n=o[1];this.read(t,n,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${i}loading namespace ${n} for language ${t} failed`,a),!a&&s&&this.logger.log(`${i}loaded namespace ${n} for language ${t}`,s),this.loaded(r,a,s)})}saveMissing(r,i,o,t,n,a={},s=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(i)){this.logger.warn(`did not save key "${o}" as the namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if(this.backend?.create){let u={...a,isUpdate:n},c=this.backend.create.bind(this.backend);if(c.length<6)try{let l;c.length===5?l=c(r,i,o,t,u):l=c(r,i,o,t),l&&typeof l.then=="function"?l.then(d=>s(null,d)).catch(s):s(null,l)}catch(l){s(l)}else c(r,i,o,t,s,u)}!r||!r[0]||this.store.addResource(r[0],i,o,t)}}},Nd=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let r={};if(typeof e[1]=="object"&&(r=e[1]),N(e[1])&&(r.defaultValue=e[1]),N(e[2])&&(r.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let i=e[3]||e[2];Object.keys(i).forEach(o=>{r[o]=i[o]})}return r},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),fh=e=>(N(e.ns)&&(e.ns=[e.ns]),N(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),N(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Fo=()=>{},mx=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(i=>{typeof e[i]=="function"&&(e[i]=e[i].bind(e))})},Ld=class e extends _r{constructor(r={},i){if(super(),this.options=fh(r),this.services={},this.logger=Le,this.modules={external:[]},mx(this),i&&!this.isInitialized&&!r.isClone){if(!this.options.initAsync)return this.init(r,i),this;setTimeout(()=>{this.init(r,i)},0)}}init(r={},i){this.isInitializing=!0,typeof r=="function"&&(i=r,r={}),r.defaultNS==null&&r.ns&&(N(r.ns)?r.defaultNS=r.ns:r.ns.includes("translation")||(r.defaultNS=r.ns[0]));let o=Nd();this.options={...o,...this.options,...fh(r)},this.options.interpolation={...o.interpolation,...this.options.interpolation},r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=o.overloadTranslationOptionHandler);let t=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?Le.init(t(this.modules.logger),this.options):Le.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=jd;let l=new Ko(this.options);this.store=new Mo(this.options.resources,this.options);let d=this.services;d.logger=Le,d.resourceStore=this.store,d.languageUtils=l,d.pluralResolver=new Dd(l,{prepend:this.options.pluralSeparator}),c&&(d.formatter=t(c),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new Jo(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new Cd(t(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",(f,...p)=>{this.emit(f,...p)}),this.modules.languageDetector&&(d.languageDetector=t(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=t(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new Bo(this.services,this.options),this.translator.on("*",(f,...p)=>{this.emit(f,...p)}),this.modules.external.forEach(f=>{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,i||(i=Fo),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=(...l)=>this.store[c](...l)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=(...l)=>(this.store[c](...l),this)});let s=zn(),u=()=>{let c=(l,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(d),i(l,d)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),s}loadResources(r,i=Fo){let o=i,t=N(r)?r:this.language;if(typeof r=="function"&&(o=r),!this.options.resources||this.options.partialBundledLanguages){if(t?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return o();let n=[],a=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(c=>{c!=="cimode"&&(n.includes(c)||n.push(c))})};t?a(t):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>a(u)),this.options.preload?.forEach?.(s=>a(s)),this.services.backendConnector.load(n,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),o(s)})}else o(null)}reloadResources(r,i,o){let t=zn();return typeof r=="function"&&(o=r,r=void 0),typeof i=="function"&&(o=i,i=void 0),r||(r=this.languages),i||(i=this.options.ns),o||(o=Fo),this.services.backendConnector.reload(r,i,n=>{t.resolve(),o(n)}),t}use(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&mh.addPostProcessor(r),r.type==="formatter"&&(this.modules.formatter=r),r.type==="3rdParty"&&this.modules.external.push(r),this}setResolvedLanguage(r){if(!(!r||!this.languages)&&!["cimode","dev"].includes(r)){for(let i=0;i<this.languages.length;i++){let o=this.languages[i];if(!["cimode","dev"].includes(o)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}!this.resolvedLanguage&&!this.languages.includes(r)&&this.store.hasLanguageSomeTranslations(r)&&(this.resolvedLanguage=r,this.languages.unshift(r))}}changeLanguage(r,i){this.isLanguageChangingTo=r;let o=zn();this.emit("languageChanging",r);let t=s=>{this.language=s,this.languages=this.services.languageUtils.toResolveHierarchy(s),this.resolvedLanguage=void 0,this.setResolvedLanguage(s)},n=(s,u)=>{u?this.isLanguageChangingTo===r&&(t(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,o.resolve((...c)=>this.t(...c)),i&&i(s,(...c)=>this.t(...c))},a=s=>{!r&&!s&&this.services.languageDetector&&(s=[]);let u=N(s)?s:s&&s[0],c=this.store.hasLanguageSomeTranslations(u)?u:this.services.languageUtils.getBestMatchFromCodes(N(s)?[s]:s);c&&(this.language||t(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector?.cacheUserLanguage?.(c)),this.loadResources(c,l=>{n(l,c)})};return!r&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(r),o}getFixedT(r,i,o,t){let n=t?.scopeNs,a=(s,u,...c)=>{let l;typeof u!="object"?l=this.options.overloadTranslationOptionHandler([s,u].concat(c)):l={...u},l.lng=l.lng||a.lng,l.lngs=l.lngs||a.lngs;let d=l.ns!==void 0&&l.ns!==null;l.ns=l.ns||a.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||o||a.keyPrefix);let f={...this.options,...l};Array.isArray(n)&&!d&&(f.ns=n),typeof l.keyPrefix=="function"&&(l.keyPrefix=Nt(l.keyPrefix,f));let p=this.options.keySeparator||".",m;return l.keyPrefix&&Array.isArray(s)?m=s.map(v=>(typeof v=="function"&&(v=Nt(v,f)),`${l.keyPrefix}${p}${v}`)):(typeof s=="function"&&(s=Nt(s,f)),m=l.keyPrefix?`${l.keyPrefix}${p}${s}`:s),this.t(m,l)};return N(r)?a.lng=r:a.lngs=r,a.ns=i,a.keyPrefix=o,a}t(...r){return this.translator?.translate(...r)}exists(...r){return this.translator?.exists(...r)}setDefaultNamespace(r){this.options.defaultNS=r}hasLoadedNamespace(r,i={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let o=i.lng||this.resolvedLanguage||this.languages[0],t=this.options?this.options.fallbackLng:!1,n=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;let a=(s,u)=>{let c=this.services.backendConnector.state[`${s}|${u}`];return c===-1||c===0||c===2};if(i.precheck){let s=i.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(o,r)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(o,r)&&(!t||a(n,r)))}loadNamespaces(r,i){let o=zn();return this.options.ns?(N(r)&&(r=[r]),r.forEach(t=>{this.options.ns.includes(t)||this.options.ns.push(t)}),this.loadResources(t=>{o.resolve(),i&&i(t)}),o):(i&&i(),Promise.resolve())}loadLanguages(r,i){let o=zn();N(r)&&(r=[r]);let t=this.options.preload||[],n=r.filter(a=>!t.includes(a)&&this.services.languageUtils.isSupportedCode(a));return n.length?(this.options.preload=t.concat(n),this.loadResources(a=>{o.resolve(),i&&i(a)}),o):(i&&i(),Promise.resolve())}dir(r){if(r||(r=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!r)return"rtl";try{let t=new Intl.Locale(r);if(t&&t.getTextInfo){let n=t.getTextInfo();if(n&&n.direction)return n.direction}}catch{}let i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],o=this.services?.languageUtils||new Ko(Nd());return r.toLowerCase().indexOf("-latn")>1?"ltr":i.includes(o.getLanguagePartFromCode(r))||r.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(r={},i){let o=new e(r,i);return o.createInstance=e.createInstance,o}cloneInstance(r={},i=Fo){let o=r.forkResourceStore;o&&delete r.forkResourceStore;let t={...this.options,...r,isClone:!0},n=new e(t);if((r.debug!==void 0||r.prefix!==void 0)&&(n.logger=n.logger.clone(r)),["store","services","language"].forEach(s=>{n[s]=this[s]}),n.services={...this.services},n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},o){let s=Object.keys(this.store.data).reduce((u,c)=>(u[c]={...this.store.data[c]},u[c]=Object.keys(u[c]).reduce((l,d)=>(l[d]={...u[c][d]},l),u[c]),u),{});n.store=new Mo(s,t),n.services.resourceStore=n.store}if(r.interpolation){let u={...Nd().interpolation,...this.options.interpolation,...r.interpolation},c={...t,interpolation:u};n.services.interpolator=new Jo(c)}return n.translator=new Bo(n.services,t),n.translator.on("*",(s,...u)=>{n.emit(s,...u)}),n.init(t,i),n.translator.options=t,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},he=Ld.createInstance(),Ud=he.createInstance,az=he.dir,sz=he.init,cz=he.loadResources,uz=he.reloadResources,lz=he.use,dz=he.changeLanguage,fz=he.getFixedT,pz=he.t,mz=he.exists,gz=he.setDefaultNamespace,hz=he.hasLoadedNamespace,vz=he.loadNamespaces,yz=he.loadLanguages;var Go=(e,r,i,o)=>{let t=[i,{code:r,...o||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(t,"warn","react-i18next::",!0);Ne(t[0])&&(t[0]=`react-i18next:: ${t[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...t):console?.warn&&console.warn(...t)},hh={},Ke=(e,r,i,o)=>{Ne(i)&&hh[i]||(Ne(i)&&(hh[i]=new Date),Go(e,r,i,o))},vh=(e,r)=>()=>{if(e.isInitialized)r();else{let i=()=>{setTimeout(()=>{e.off("initialized",i)},0),r()};e.on("initialized",i)}},Wo=(e,r,i)=>{e.loadNamespaces(r,vh(e,i))},Rd=(e,r,i,o)=>{if(Ne(i)&&(i=[i]),e.options.preload&&e.options.preload.indexOf(r)>-1)return Wo(e,i,o);i.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(r,vh(e,o))},yh=(e,r,i={})=>!r.languages||!r.languages.length?(Ke(r,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:r.languages}),!0):r.hasLoadedNamespace(e,{lng:i.lng,precheck:(o,t)=>{if(i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!t(o.isLanguageChangingTo,e))return!1}});var Ne=e=>typeof e=="string",Zd=e=>typeof e=="object"&&e!==null;var gx=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,hx={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xA9","©":"\xA9","®":"\xAE","®":"\xAE","…":"\u2026","…":"\u2026","/":"/","/":"/"},vx=e=>hx[e],Fd=e=>e.replace(gx,vx);var yx={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Fd,transDefaultProps:void 0};var Nn=()=>yx;var bx;var Ae=()=>bx;var _h=te(oe(),1);var Je=(0,_h.createContext)(),Ho=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(r){r.forEach(i=>{this.usedNamespaces[i]||(this.usedNamespaces[i]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}};var wh=te(oe(),1);var At=te(oe(),1);var xr=class e extends Error{constructor(r,i,o){super(r),this.name="TranslationParserError",this.position=i,this.translationString=o,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};var xh={" ":"\xA0","&":"&","<":"<",">":">",""":'"',"'":"'","©":"\xA9","®":"\xAE","™":"\u2122","…":"\u2026","–":"\u2013","—":"\u2014","‘":"\u2018","’":"\u2019","‚":"\u201A","“":"\u201C","”":"\u201D","„":"\u201E","†":"\u2020","‡":"\u2021","•":"\u2022","′":"\u2032","″":"\u2033","‹":"\u2039","›":"\u203A","§":"\xA7","¶":"\xB6","·":"\xB7"," ":"\u2002"," ":"\u2003"," ":"\u2009","€":"\u20AC","£":"\xA3","¥":"\xA5","¢":"\xA2","¤":"\xA4","×":"\xD7","÷":"\xF7","−":"\u2212","±":"\xB1","≠":"\u2260","≤":"\u2264","≥":"\u2265","≈":"\u2248","≡":"\u2261","∞":"\u221E","∫":"\u222B","∑":"\u2211","∏":"\u220F","√":"\u221A","∂":"\u2202","‰":"\u2030","°":"\xB0","µ":"\xB5","←":"\u2190","↑":"\u2191","→":"\u2192","↓":"\u2193","↔":"\u2194","↵":"\u21B5","⇐":"\u21D0","⇑":"\u21D1","⇒":"\u21D2","⇓":"\u21D3","⇔":"\u21D4","α":"\u03B1","β":"\u03B2","γ":"\u03B3","δ":"\u03B4","ε":"\u03B5","ζ":"\u03B6","η":"\u03B7","θ":"\u03B8","ι":"\u03B9","κ":"\u03BA","λ":"\u03BB","μ":"\u03BC","ν":"\u03BD","ξ":"\u03BE","ο":"\u03BF","π":"\u03C0","ρ":"\u03C1","σ":"\u03C3","τ":"\u03C4","υ":"\u03C5","φ":"\u03C6","χ":"\u03C7","ψ":"\u03C8","ω":"\u03C9","Α":"\u0391","Β":"\u0392","Γ":"\u0393","Δ":"\u0394","Ε":"\u0395","Ζ":"\u0396","Η":"\u0397","Θ":"\u0398","Ι":"\u0399","Κ":"\u039A","Λ":"\u039B","Μ":"\u039C","Ν":"\u039D","Ξ":"\u039E","Ο":"\u039F","Π":"\u03A0","Ρ":"\u03A1","Σ":"\u03A3","Τ":"\u03A4","Υ":"\u03A5","Φ":"\u03A6","Χ":"\u03A7","Ψ":"\u03A8","Ω":"\u03A9","À":"\xC0","Á":"\xC1","Â":"\xC2","Ã":"\xC3","Ä":"\xC4","Å":"\xC5","Æ":"\xC6","Ç":"\xC7","È":"\xC8","É":"\xC9","Ê":"\xCA","Ë":"\xCB","Ì":"\xCC","Í":"\xCD","Î":"\xCE","Ï":"\xCF","Ð":"\xD0","Ñ":"\xD1","Ò":"\xD2","Ó":"\xD3","Ô":"\xD4","Õ":"\xD5","Ö":"\xD6","Ø":"\xD8","Ù":"\xD9","Ú":"\xDA","Û":"\xDB","Ü":"\xDC","Ý":"\xDD","Þ":"\xDE","ß":"\xDF","à":"\xE0","á":"\xE1","â":"\xE2","ã":"\xE3","ä":"\xE4","å":"\xE5","æ":"\xE6","ç":"\xE7","è":"\xE8","é":"\xE9","ê":"\xEA","ë":"\xEB","ì":"\xEC","í":"\xED","î":"\xEE","ï":"\xEF","ð":"\xF0","ñ":"\xF1","ò":"\xF2","ó":"\xF3","ô":"\xF4","õ":"\xF5","ö":"\xF6","ø":"\xF8","ù":"\xF9","ú":"\xFA","û":"\xFB","ü":"\xFC","ý":"\xFD","þ":"\xFE","ÿ":"\xFF","¡":"\xA1","¿":"\xBF","ƒ":"\u0192","ˆ":"\u02C6","˜":"\u02DC","Œ":"\u0152","œ":"\u0153","Š":"\u0160","š":"\u0161","Ÿ":"\u0178","ª":"\xAA","º":"\xBA","¯":"\xAF","´":"\xB4","¸":"\xB8","¹":"\xB9","²":"\xB2","³":"\xB3","¼":"\xBC","½":"\xBD","¾":"\xBE","♠":"\u2660","♣":"\u2663","♥":"\u2665","♦":"\u2666","◊":"\u25CA","‾":"\u203E","⁄":"\u2044","℘":"\u2118","ℑ":"\u2111","ℜ":"\u211C","ℵ":"\u2135"},Ix=new RegExp(Object.keys(xh).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g"),kh=e=>e.replace(Ix,r=>xh[r]).replace(/&#(\d+);/g,(r,i)=>String.fromCharCode(parseInt(i,10))).replace(/&#x([0-9a-fA-F]+);/g,(r,i)=>String.fromCharCode(parseInt(i,16)));var Ih=e=>{let r=[],i=0,o="",t=()=>{o&&(r.push({type:"Text",value:o,position:i-o.length}),o="")};for(;i<e.length;){let n=e[i];if(n==="<"){let a=e.slice(i).match(/^<(\d+)>/);if(a)t(),r.push({type:"TagOpen",value:a[0],position:i,tagNumber:parseInt(a[1],10)}),i+=a[0].length;else{let s=e.slice(i).match(/^<\/(\d+)>/);s?(t(),r.push({type:"TagClose",value:s[0],position:i,tagNumber:parseInt(s[1],10)}),i+=s[0].length):(o+=n,i+=1)}}else o+=n,i+=1}return t(),r};var Tn=te(oe(),1);var Sx=(e,r,i)=>{let{type:o,props:t={}}=e;if(t.children&&Array.isArray(t.children)&&i){let{children:n,...a}=t;return Tn.default.createElement(o,a,...r)}return r.length===0?Tn.default.createElement(o,t):r.length===1?Tn.default.createElement(o,t,r[0]):Tn.default.createElement(o,t,...r)},Sh=(e,r=[])=>{if(!e)return[];let i=Ih(e),o=[],t=[],n=new Set,a=()=>{if(t.length===0)return r;let s=t[t.length-1];return s.declaration.props?.children&&Array.isArray(s.declaration.props.children)?s.declaration.props.children:s.declarations};if(i.forEach(s=>{switch(s.type){case"Text":{let u=kh(s.value);(t.length>0?t[t.length-1].children:o).push(u)}break;case"TagOpen":{let{tagNumber:u}=s,c=a(),l=c[u];if(!l){n.add(u);let d=`<${u}>`;(t.length>0?t[t.length-1].children:o).push(d);break}t.push({tagNumber:u,children:[],position:s.position,declaration:l,declarations:c})}break;case"TagClose":{let{tagNumber:u}=s;if(n.has(u)){let f=`</${u}>`;(t.length>0?t[t.length-1].children:o).push(f),n.delete(u);break}if(t.length===0)throw new xr(`Unexpected closing tag </${u}> at position ${s.position}`,s.position,e);let c=t.pop();if(c.tagNumber!==u)throw new xr(`Mismatched tags: expected </${c.tagNumber}> but got </${u}> at position ${s.position}`,s.position,e);let l=Sx(c.declaration,c.children,c.declarations);(t.length>0?t[t.length-1].children:o).push(l)}break}}),t.length>0){let s=t[t.length-1];throw new xr(`Unclosed tag <${s.tagNumber}> at position ${s.position}`,s.position,e)}return o};function Xo({i18nKey:e,defaultTranslation:r,content:i,ns:o,values:t={},i18n:n,t:a}){let s=n||Ae();if(!s)return Ke(s,"NO_I18NEXT_INSTANCE","IcuTrans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:e}),At.default.createElement(At.default.Fragment,{},r);let u=a||s.t?.bind(s)||(f=>f),c=o||u.ns||s.options?.defaultNS;c=Ne(c)?[c]:c||["translation"];let l=t;s.options?.interpolation?.defaultVariables&&(l=t&&Object.keys(t).length>0?{...t,...s.options.interpolation.defaultVariables}:{...s.options.interpolation.defaultVariables});let d=u(e||r,{defaultValue:r,...l,ns:c});try{let f=Sh(d,i);return At.default.createElement(At.default.Fragment,{},...f)}catch(f){return Go(s,"ICU_TRANS_RENDER_ERROR",`IcuTrans component error for key "${e}": ${f.message}`,{i18nKey:e,error:f}),At.default.createElement(At.default.Fragment,{},d)}}Xo.displayName="IcuTransWithoutContext";function zh({i18nKey:e,defaultTranslation:r,content:i,ns:o,values:t={},i18n:n,t:a}){let{i18n:s,defaultNS:u}=(0,wh.useContext)(Je)||{},c=n||s||Ae(),l=a||c?.t.bind(c);return Xo({i18nKey:e,defaultTranslation:r,content:i,ns:o||l?.ns||u||c?.options?.defaultNS,values:t,i18n:c,t:a})}zh.displayName="IcuTrans";var ee=te(oe(),1),Th=te(Ah(),1);var jx=(e,r)=>{if(Ne(r))return r;if(Zd(r)&&Ne(r.defaultValue))return r.defaultValue;if(typeof e=="function")return"";if(Array.isArray(e)){let i=e[e.length-1];return typeof i=="function"?"":i}return e},Cx={t:jx,ready:!1},Lx=()=>()=>{},En=(e,r={})=>{let{i18n:i}=r,{i18n:o,defaultNS:t}=(0,ee.useContext)(Je)||{},n=i||o||Ae();n&&!n.reportNamespaces&&(n.reportNamespaces=new Ho),n||Ke(n,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.");let a=(0,ee.useMemo)(()=>({...Nn(),...n?.options?.react,...r}),[n,r]),{useSuspense:s,keyPrefix:u}=a,c=e||t||n?.options?.defaultNS,l=Ne(c)?[c]:c||["translation"],d=(0,ee.useMemo)(()=>l,l);n?.reportNamespaces?.addUsedNamespaces?.(d);let f=(0,ee.useRef)(0),p=(0,ee.useCallback)(j=>{if(!n)return Lx;let{bindI18n:B,bindI18nStore:K}=a,U=()=>{f.current+=1,j()};return B&&n.on(B,U),K&&n.store.on(K,U),()=>{B&&B.split(" ").forEach(X=>n.off(X,U)),K&&K.split(" ").forEach(X=>n.store.off(X,U))}},[n,a]),m=(0,ee.useRef)(),v=(0,ee.useCallback)(()=>{if(!n)return Cx;let j=!!(n.isInitialized||n.initializedStoreOnce)&&d.every(xe=>yh(xe,n,a)),B=r.lng||n.language,K=f.current,U=m.current;if(U&&U.ready===j&&U.lng===B&&U.keyPrefix===u&&U.revision===K)return U;let ut={t:n.getFixedT(B,a.nsMode==="fallback"?d:d[0],u,{scopeNs:d}),ready:j,lng:B,keyPrefix:u,revision:K};return m.current=ut,ut},[n,d,u,a,r.lng]),[_,S]=(0,ee.useState)(0),{t:k,ready:w}=(0,Th.useSyncExternalStore)(p,v,v);(0,ee.useEffect)(()=>{if(n&&!w&&!s){let j=()=>S(B=>B+1);r.lng?Rd(n,r.lng,d,j):Wo(n,d,j)}},[n,r.lng,d,w,s,_]);let P=n||{},E=(0,ee.useRef)(null),T=(0,ee.useRef)(),J=j=>`${j.language}|${j.resolvedLanguage}|${j.languages?.join(",")}`,we=j=>{let B=Object.getOwnPropertyDescriptors(j);B.__original&&delete B.__original;let K=Object.create(Object.getPrototypeOf(j),B);if(!Object.prototype.hasOwnProperty.call(K,"__original"))try{Object.defineProperty(K,"__original",{value:j,writable:!1,enumerable:!1,configurable:!1})}catch{}return K},ve=(0,ee.useMemo)(()=>{let j=P,B=j&&J(j),K=j;j&&(E.current&&E.current.__original===j?T.current!==B?(K=we(j),E.current=K,T.current=B):K=E.current:(K=we(j),E.current=K,T.current=B));let U=!w&&!s?(...ut)=>(Ke(n,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),k(...ut)):k,X=[U,K,w];return X.t=U,X.i18n=K,X.ready=w,X},[k,P,w,P.resolvedLanguage,P.language,P.languages]);if(n&&s&&!w){let j=!1;try{j=!1}catch{}throw j&&Ke(n,"SUSPENDED_WHILE_LOADING","useTranslation: suspended while translations are loading (useSuspense is true by default). Add a <Suspense> boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook"),new Promise(B=>{let K=()=>B();r.lng?Rd(n,r.lng,d,K):Wo(n,d,K)})}return ve};var Eh=te(oe(),1);var qo=te(oe(),1);function Md({i18n:e,defaultNS:r,children:i}){let o=(0,qo.useMemo)(()=>({i18n:e,defaultNS:r}),[e,r]);return(0,qo.createElement)(Je.Provider,{value:o},i)}var Vx=te(oe(),1);var Rx=te(oe(),1);var Mx=Xd({"./locales/a2a/en.json":()=>import("./embed-page-en-KJK6MNFJ.js"),"./locales/a2a/zh.json":()=>import("./embed-page-zh-JHGC2HD6.js"),"./locales/auth/en.json":()=>import("./embed-page-en-BRZZWMIP.js"),"./locales/auth/zh.json":()=>import("./embed-page-zh-D4S5EDEI.js"),"./locales/capability/en.json":()=>import("./embed-page-en-2LPUFX67.js"),"./locales/capability/zh.json":()=>import("./embed-page-zh-4TLT6Q7R.js"),"./locales/chat/en.json":()=>import("./embed-page-en-5ACLMQIE.js"),"./locales/chat/zh.json":()=>import("./embed-page-zh-DRCY3KAU.js"),"./locales/chatConfig/en.json":()=>import("./embed-page-en-27XXHBGT.js"),"./locales/chatConfig/zh.json":()=>import("./embed-page-zh-BAD2QK42.js"),"./locales/chatMenu/en.json":()=>import("./embed-page-en-3ML3AIGI.js"),"./locales/chatMenu/zh.json":()=>import("./embed-page-zh-ARIKNWNS.js"),"./locales/chatWorkspace/en.json":()=>import("./embed-page-en-GFJ3SC72.js"),"./locales/chatWorkspace/zh.json":()=>import("./embed-page-zh-XZVYNVKK.js"),"./locales/common/en.json":()=>import("./embed-page-en-O6D56CKX.js"),"./locales/common/zh.json":()=>import("./embed-page-zh-DCK5YTQZ.js"),"./locales/cospace/en.json":()=>import("./embed-page-en-UZPK7AZP.js"),"./locales/cospace/zh.json":()=>import("./embed-page-zh-F3R6OREL.js"),"./locales/crons/en.json":()=>import("./embed-page-en-LQIRPUCS.js"),"./locales/crons/zh.json":()=>import("./embed-page-zh-TL7EV7HL.js"),"./locales/entities/en.json":()=>import("./embed-page-en-UQFEMND3.js"),"./locales/entities/zh.json":()=>import("./embed-page-zh-VYDBQNQA.js"),"./locales/eval/en.json":()=>import("./embed-page-en-Y7WDOUBJ.js"),"./locales/eval/zh.json":()=>import("./embed-page-zh-MGFENHP4.js"),"./locales/genui/en.json":()=>import("./embed-page-en-W2HBB45W.js"),"./locales/genui/zh.json":()=>import("./embed-page-zh-INJ6HSJ3.js"),"./locales/governance/en.json":()=>import("./embed-page-en-VL6MIKJ2.js"),"./locales/governance/zh.json":()=>import("./embed-page-zh-YWYECP5U.js"),"./locales/info/en.json":()=>import("./embed-page-en-YH43GDEL.js"),"./locales/info/zh.json":()=>import("./embed-page-zh-CNKBPDPK.js"),"./locales/integration/en.json":()=>import("./embed-page-en-HJQ5BROW.js"),"./locales/integration/zh.json":()=>import("./embed-page-zh-BTEWSUVG.js"),"./locales/mcpapp/en.json":()=>import("./embed-page-en-EZW363FB.js"),"./locales/mcpapp/zh.json":()=>import("./embed-page-zh-VN52LDWX.js"),"./locales/migration/en.json":()=>import("./embed-page-en-ZMO6OBNA.js"),"./locales/migration/zh.json":()=>import("./embed-page-zh-VIM2MTU5.js"),"./locales/platformAdmin/en.json":()=>import("./embed-page-en-PVXMEFR4.js"),"./locales/platformAdmin/zh.json":()=>import("./embed-page-zh-VSMLSDTK.js"),"./locales/projectRoom/en.json":()=>import("./embed-page-en-6F6LTRLX.js"),"./locales/projectRoom/zh.json":()=>import("./embed-page-zh-PGH5LDJX.js"),"./locales/store/en.json":()=>import("./embed-page-en-D22SXYM7.js"),"./locales/store/zh.json":()=>import("./embed-page-zh-E5DB2NMV.js"),"./locales/tasks/en.json":()=>import("./embed-page-en-WZMFE5KI.js"),"./locales/tasks/zh.json":()=>import("./embed-page-zh-TYSAYPQU.js"),"./locales/training/en.json":()=>import("./embed-page-en-PXIPXZJP.js"),"./locales/training/zh.json":()=>import("./embed-page-zh-C4NGPHKB.js")});var Tt=["en-US","zh-CN"];function Yo(e){return e==="zh-CN"?"zh":"en"}function Bd(e){return e.startsWith("zh")?"zh-CN":"en-US"}var ct=["common","a2a","auth","capability","chat","chatConfig","chatMenu","chatWorkspace","cospace","crons","entities","eval","genui","governance","info","integration","mcpapp","migration","platformAdmin","projectRoom","store","tasks","training"];function Kd(e){let[r]=e.split(".");return ct.includes(r)?r:ct[0]}var Dh={type:"backend",read(e,r,i){Mx(`./locales/${r}/${e}.json`).then(o=>{let t=o.default??o;i(null,t.messages??t)}).catch(o=>i(o,null))}};function Bx(e,r){let i=((o,t)=>e(o,{ns:Kd(o),...t}));return i.locale=Bd(r??"en"),i}function Kx(){let{t:e,i18n:r}=En(),i=r?.language;return(0,jh.useMemo)(()=>Bx(e,i),[e,i])}var Jd=te(oe());var Ch=(0,Jd.createContext)(null);var Et=te(oe());var Gd=te(Yd());function Jx({locale:e="en-US",overrides:r,storageKey:i,onLocaleChange:o,children:t}){let[n,a]=(0,Et.useState)(!1),s=(0,Et.useMemo)(()=>Ud(),[]);(0,Et.useEffect)(()=>{let c=!1;return a(!1),s.use(Dh).init({lng:Yo(e),fallbackLng:"en",ns:[...ct],defaultNS:ct[0],keySeparator:!1,nsSeparator:!1,interpolation:{escapeValue:!1},resources:r?{[Yo(e)]:{[ct[0]]:r[e]??{}}}:void 0}).then(()=>s.loadNamespaces([...ct])).then(()=>{c||a(!0)}).catch(()=>{c||a(!0)}),()=>{c=!0}},[s,e,r]);let u=(0,Et.useMemo)(()=>({locale:e,supportedLocales:Tt,setLocale:c=>{if(Tt.includes(c)){if(i&&typeof window<"u")try{window.localStorage.setItem(i,c)}catch{}o?.(c)}}}),[e,i,o]);return n?(0,Gd.jsx)(Ch.Provider,{value:u,children:(0,Gd.jsx)(Md,{i18n:s,children:t})}):null}var Lh="lattice.locale";function Gx(e=Lh){if(!(typeof window>"u"))try{let r=window.localStorage.getItem(e);return r!==null&&Tt.includes(r)?r:void 0}catch{return}}export{$r as a,P_ as b,jw as c,Cw as d,Uw as e,L_ as f,Rw as g,Zw as h,Kw as i,Jw as j,Gw as k,Ww as l,nh as m,X_ as n,Kx as o,Ch as p,Jx as q,Lh as r,Gx as s};
|
|
184
|
+
}`},"data-story":{id:"data-story",labelKey:"platformAdmin.settings.branding.case.dataStory.label",descriptionKey:"platformAdmin.settings.branding.case.dataStory.description",presetId:"narrative",branding:{brandName:"AlphaFina",logoUrl:W("logo.png"),loginLayout:"split-story",panelEyebrow:"Trusted by modern teams",panelTitle:"Build with confidence",panelDescription:"A foundation for teams that care about craft, security, and speed.",panelPoint1:"SOC 2 ready workflows",panelPoint2:"Fast onboarding",panelPoint3:"Clear audit trails",panelStat1Value:"99.99%",panelStat1Label:"Uptime",panelStat2Value:"4.9/5",panelStat2Label:"Customer rating",panelStat3Value:"12k+",panelStat3Label:"Teams onboarded",panelQuote:"The calmest, most reliable launch experience we have shipped.",panelQuoteAuthor:"Maya Chen",panelQuoteRole:"VP Engineering, Northstar",panelTrustLogo1:W("presets/trust-northstar.svg"),panelTrustLogo2:W("presets/trust-acme.svg"),panelTrustLogo3:W("presets/trust-vertex.svg"),panelTrustLogo4:W("presets/trust-lumen.svg")}},"aurora-launch":{id:"aurora-launch",labelKey:"platformAdmin.settings.branding.case.auroraLaunch.label",descriptionKey:"platformAdmin.settings.branding.case.auroraLaunch.description",presetId:"aurora",branding:{brandName:"AlphaFina",logoUrl:W("logo.png"),loginLayout:"full-bleed",backgroundImageUrl:W("presets/aurora-bg.svg"),backgroundOverlayColor:"#000000",backgroundOverlayOpacity:35,imageFit:"cover",imagePosition:"center",imageTreatment:"none",cardStyle:"glass",cardPosition:"center",loginTitle:"Sign in to the network",loginSubtitle:"One secure account for every team and agent.",footerNote:"Encrypted sessions \xB7 SSO \xB7 Audit trails"}},"cinematic-video":{id:"cinematic-video",labelKey:"platformAdmin.settings.branding.case.cinematicVideo.label",descriptionKey:"platformAdmin.settings.branding.case.cinematicVideo.description",presetId:"cinematic",branding:{brandName:"AlphaFina",logoUrl:W("logo.png"),loginLayout:"full-bleed",backgroundVideoUrl:W("presets/14471967_3840_2160_30fps.mp4"),backgroundImageUrl:W("presets/aurora-bg.svg"),backgroundOverlayColor:"#000000",backgroundOverlayOpacity:65,imageFit:"cover",imagePosition:"center",imageTreatment:"none",cardStyle:"glass",cardPosition:"right",loginTitle:"Sign in to the network",loginSubtitle:"One secure account for every team and agent."}},"aurora-video":{id:"aurora-video",labelKey:"platformAdmin.settings.branding.case.auroraVideo.label",descriptionKey:"platformAdmin.settings.branding.case.auroraVideo.description",presetId:"aurora",branding:{brandName:"AlphaFina",logoUrl:W("logo.png"),loginLayout:"full-bleed",backgroundVideoUrl:W("presets/15404923_1920_1080_60fps.mp4"),backgroundImageUrl:W("presets/aurora-bg.svg"),backgroundOverlayColor:"#000000",backgroundOverlayOpacity:30,imageFit:"cover",imagePosition:"center",imageTreatment:"none",cardStyle:"glass",cardPosition:"center",loginTitle:"Sign in to the network",loginSubtitle:"One secure account for every team and agent."}}},iz=Object.keys(Q_);var jh=te(oe());var kx=te(oe(),1);var An=te(oe(),1);var N=e=>typeof e=="string",zn=()=>{let e,r,i=new Promise((o,t)=>{e=o,r=t});return i.resolve=e,i.reject=r,i},Pd=e=>e==null?"":String(e),ex=(e,r,i)=>{e.forEach(o=>{r[o]&&(i[o]=r[o])})},tx=/###/g,ih=e=>e&&e.includes("###")?e.replace(tx,"."):e,oh=e=>!e||N(e),Pn=(e,r,i)=>{let o=N(r)?r.split("."):r,t=0;for(;t<o.length-1;){if(oh(e))return{};let n=ih(o[t]);!e[n]&&i&&(e[n]=new i),Object.prototype.hasOwnProperty.call(e,n)?e=e[n]:e={},++t}return oh(e)?{}:{obj:e,k:ih(o[t])}},ah=(e,r,i)=>{let{obj:o,k:t}=Pn(e,r,Object);if(o!==void 0||r.length===1){o[t]=i;return}let n=r[r.length-1],a=r.slice(0,r.length-1),s=Pn(e,a,Object);for(;s.obj===void 0&&a.length;)n=`${a[a.length-1]}.${n}`,a=a.slice(0,a.length-1),s=Pn(e,a,Object),s?.obj&&typeof s.obj[`${s.k}.${n}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${n}`]=i},rx=(e,r,i,o)=>{let{obj:t,k:n}=Pn(e,r,Object);t[n]=t[n]||[],t[n].push(i)},Vo=(e,r)=>{let{obj:i,k:o}=Pn(e,r);if(i&&Object.prototype.hasOwnProperty.call(i,o))return i[o]},nx=(e,r,i)=>{let o=Vo(e,i);return o!==void 0?o:Vo(r,i)},ph=(e,r,i)=>{for(let o in r)o!=="__proto__"&&o!=="constructor"&&(Object.prototype.hasOwnProperty.call(e,o)?N(e[o])||e[o]instanceof String||N(r[o])||r[o]instanceof String?i&&(e[o]=r[o]):ph(e[o],r[o],i):e[o]=r[o]);return e},Be=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),ix={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},ox=e=>N(e)?e.replace(/[&<>"'\/]/g,r=>ix[r]):e,Ad=class{constructor(r){this.capacity=r,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(r){let i=this.regExpMap.get(r);if(i!==void 0)return i;let o=new RegExp(r);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(r,o),this.regExpQueue.push(r),o}},ax=[" ",",","?","!",";"],sx=new Ad(20),cx=(e,r,i)=>{r=r||"",i=i||"";let o=ax.filter(a=>!r.includes(a)&&!i.includes(a));if(o.length===0)return!0;let t=sx.getRegExp(`(${o.map(a=>a==="?"?"\\?":a).join("|")})`),n=!t.test(e);if(!n){let a=e.indexOf(i);a>0&&!t.test(e.substring(0,a))&&(n=!0)}return n},Td=(e,r,i=".")=>{if(!e)return;if(e[r])return Object.prototype.hasOwnProperty.call(e,r)?e[r]:void 0;let o=r.split(i),t=e;for(let n=0;n<o.length;){if(!t||typeof t!="object")return;let a,s="";for(let u=n;u<o.length;++u)if(u!==n&&(s+=i),s+=o[u],a=t[s],a!==void 0){if(["string","number","boolean"].includes(typeof a)&&u<o.length-1)continue;n+=u-n+1;break}t=a}return t},On=e=>e?.replace(/_/g,"-"),ux={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,r){console?.[e]?.apply?.(console,r)}},Ed=class e{constructor(r,i={}){this.init(r,i)}init(r,i={}){this.prefix=i.prefix||"i18next:",this.logger=r||ux,this.options=i,this.debug=i.debug}log(...r){return this.forward(r,"log","",!0)}warn(...r){return this.forward(r,"warn","",!0)}error(...r){return this.forward(r,"error","")}deprecate(...r){return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(r,i,o,t){return t&&!this.debug?null:(r=r.map(n=>N(n)?n.replace(/[\r\n\x00-\x1F\x7F]/g," "):n),N(r[0])&&(r[0]=`${o}${this.prefix} ${r[0]}`),this.logger[i](r))}create(r){return new e(this.logger,{prefix:`${this.prefix}:${r}:`,...this.options})}clone(r){return r=r||this.options,r.prefix=r.prefix||this.prefix,new e(this.logger,r)}},Le=new Ed,_r=class{constructor(){this.observers={}}on(r,i){return r.split(" ").forEach(o=>{this.observers[o]||(this.observers[o]=new Map);let t=this.observers[o].get(i)||0;this.observers[o].set(i,t+1)}),this}off(r,i){if(this.observers[r]){if(!i){delete this.observers[r];return}this.observers[r].delete(i)}}once(r,i){let o=(...t)=>{i(...t),this.off(r,o)};return this.on(r,o),this}emit(r,...i){this.observers[r]&&Array.from(this.observers[r].entries()).forEach(([t,n])=>{for(let a=0;a<n;a++)t(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([t,n])=>{for(let a=0;a<n;a++)t(r,...i)})}},Mo=class extends _r{constructor(r,i={ns:["translation"],defaultNS:"translation"}){super(),this.data=r||{},this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(r){this.options.ns.includes(r)||this.options.ns.push(r)}removeNamespaces(r){let i=this.options.ns.indexOf(r);i>-1&&this.options.ns.splice(i,1)}getResource(r,i,o,t={}){let n=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,a=t.ignoreJSONStructure!==void 0?t.ignoreJSONStructure:this.options.ignoreJSONStructure,s;r.includes(".")?s=r.split("."):(s=[r,i],o&&(Array.isArray(o)?s.push(...o):N(o)&&n?s.push(...o.split(n)):s.push(o)));let u=Vo(this.data,s);return!u&&!i&&!o&&r.includes(".")&&(r=s[0],i=s[1],o=s.slice(2).join(".")),u||!a||!N(o)?u:Td(this.data?.[r]?.[i],o,n)}addResource(r,i,o,t,n={silent:!1}){let a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,s=[r,i];o&&(s=s.concat(a?o.split(a):o)),r.includes(".")&&(s=r.split("."),t=i,i=s[1]),this.addNamespaces(i),ah(this.data,s,t),n.silent||this.emit("added",r,i,o,t)}addResources(r,i,o,t={silent:!1}){for(let n in o)(N(o[n])||Array.isArray(o[n]))&&this.addResource(r,i,n,o[n],{silent:!0});t.silent||this.emit("added",r,i,o)}addResourceBundle(r,i,o,t,n,a={silent:!1,skipCopy:!1}){let s=[r,i];r.includes(".")&&(s=r.split("."),t=o,o=i,i=s[1]),this.addNamespaces(i);let u=Vo(this.data,s)||{};a.skipCopy||(o=JSON.parse(JSON.stringify(o))),t?ph(u,o,n):u={...u,...o},ah(this.data,s,u),a.silent||this.emit("added",r,i,o)}removeResourceBundle(r,i){this.hasResourceBundle(r,i)&&delete this.data[r][i],this.removeNamespaces(i),this.emit("removed",r,i)}hasResourceBundle(r,i){return this.getResource(r,i)!==void 0}getResourceBundle(r,i){return i||(i=this.options.defaultNS),this.getResource(r,i)}getDataByLanguage(r){return this.data[r]}hasLanguageSomeTranslations(r){let i=this.getDataByLanguage(r);return!!(i&&Object.keys(i)||[]).find(t=>i[t]&&Object.keys(i[t]).length>0)}toJSON(){return this.data}},mh={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,r,i,o,t){return e.forEach(n=>{r=this.processors[n]?.process(r,i,o,t)??r}),r}},gh=Symbol("i18next/PATH_KEY");function lx(){let e=[],r=Object.create(null),i;return r.get=(o,t)=>(i?.revoke?.(),t===gh?e:(e.push(t),i=Proxy.revocable(o,r),i.proxy)),Proxy.revocable(Object.create(null),r).proxy}function Nt(e,r){let{[gh]:i}=e(lx()),o=r?.keySeparator??".",t=r?.nsSeparator??":",n=r?.enableSelector==="strict";if(i.length>1&&t){let a=r?.ns,s=n?Array.isArray(a)?a:a?[a]:null:Array.isArray(a)?a:null;if(s&&(n?s:s.length>1?s.slice(1):[]).includes(i[0]))return`${i[0]}${t}${i.slice(1).join(o)}`}return i.join(o)}var Od=e=>!N(e)&&typeof e!="boolean"&&typeof e!="number",Bo=class e extends _r{constructor(r,i={}){super(),ex(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Le.create("translator"),this.checkedLoadedFor={}}changeLanguage(r){r&&(this.language=r)}exists(r,i={interpolation:{}}){let o={...i};if(r==null)return!1;let t=this.resolve(r,o);if(t?.res===void 0)return!1;let n=Od(t.res);return!(o.returnObjects===!1&&n)}extractFromKey(r,i){let o=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");let t=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,n=i.ns||this.options.defaultNS||[],a=o&&r.includes(o),s=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!cx(r,o,t);if(a&&!s){let u=r.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:r,namespaces:N(n)?[n]:n};let c=r.split(o);(o!==t||o===t&&this.options.ns.includes(c[0]))&&(n=c.shift()),r=c.join(t)}return{key:r,namespaces:N(n)?[n]:n}}translate(r,i,o){let t=typeof i=="object"?{...i}:i;if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),r==null)return"";typeof r=="function"&&(r=Nt(r,{...this.options,...t})),Array.isArray(r)||(r=[String(r)]),r=r.map(U=>typeof U=="function"?Nt(U,{...this.options,...t}):String(U));let n=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,a=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:s,namespaces:u}=this.extractFromKey(r[r.length-1],t),c=u[u.length-1],l=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;l===void 0&&(l=":");let d=t.lng||this.language,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()==="cimode")return f?n?{res:`${c}${l}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(t)}:`${c}${l}${s}`:n?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(t)}:s;let p=this.resolve(r,t),m=p?.res,v=p?.usedKey||s,_=p?.exactUsedKey||s,S=["[object Number]","[object Function]","[object RegExp]"],k=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,P=t.count!==void 0&&!N(t.count),E=e.hasDefaultValue(t),T=P?this.pluralResolver.getSuffix(d,t.count,t):"",J=t.ordinal&&P?this.pluralResolver.getSuffix(d,t.count,{ordinal:!1}):"",we=P&&!t.ordinal&&t.count===0,ve=we&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${T}`]||t[`defaultValue${J}`]||t.defaultValue,j=m;w&&!m&&E&&(j=ve);let B=Od(j),K=Object.prototype.toString.apply(j);if(w&&j&&B&&!S.includes(K)&&!(N(k)&&Array.isArray(j))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let U=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,j,{...t,ns:u}):`key '${s} (${this.language})' returned an object instead of string.`;return n?(p.res=U,p.usedParams=this.getUsedParamsDetails(t),p):U}if(a){let U=Array.isArray(j),X=U?[]:{},ut=U?_:v;for(let xe in j)if(Object.prototype.hasOwnProperty.call(j,xe)){let Te=`${ut}${a}${xe}`;E&&!m?X[xe]=this.translate(Te,{...t,defaultValue:Od(ve)?ve[xe]:void 0,joinArrays:!1,ns:u}):X[xe]=this.translate(Te,{...t,joinArrays:!1,ns:u}),X[xe]===Te&&(X[xe]=j[xe])}m=X}}else if(w&&N(k)&&Array.isArray(m))m=m.join(k),m&&(m=this.extendTranslation(m,r,t,o));else{let U=!1,X=!1;!this.isValidLookup(m)&&E&&(U=!0,m=ve),this.isValidLookup(m)||(X=!0,m=s);let xe=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&X?void 0:m,Te=E&&ve!==m&&this.options.updateMissing;if(X||U||Te){if(this.logger.log(Te?"updateKey":"missingKey",d,c,P&&!Te?`${s}${this.pluralResolver.getSuffix(d,t.count,t)}`:s,Te?ve:m),a){let ye=this.resolve(s,{...t,keySeparator:!1});ye&&ye.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Ir=[],Dn=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Dn&&Dn[0])for(let ye=0;ye<Dn.length;ye++)Ir.push(Dn[ye]);else this.options.saveMissingTo==="all"?Ir=this.languageUtils.toResolveHierarchy(t.lng||this.language):Ir.push(t.lng||this.language);let Wd=(ye,lt,Sr)=>{let Hd=E&&Sr!==m?Sr:xe;this.options.missingKeyHandler?this.options.missingKeyHandler(ye,c,lt,Hd,Te,t):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(ye,c,lt,Hd,Te,t),this.emit("missingKey",ye,c,lt,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?Ir.forEach(ye=>{let lt=this.pluralResolver.getSuffixes(ye,t);we&&t[`defaultValue${this.options.pluralSeparator}zero`]&&!lt.includes(`${this.options.pluralSeparator}zero`)&<.push(`${this.options.pluralSeparator}zero`),lt.forEach(Sr=>{Wd([ye],s+Sr,t[`defaultValue${Sr}`]||ve)})}):Wd(Ir,s,ve))}m=this.extendTranslation(m,r,t,p,o),X&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${c}${l}${s}`),(X||U)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${l}${s}`:s,U?m:void 0,t))}return n?(p.res=m,p.usedParams=this.getUsedParamsDetails(t),p):m}extendTranslation(r,i,o,t,n){if(this.i18nFormat?.parse)r=this.i18nFormat.parse(r,{...this.options.interpolation.defaultVariables,...o},o.lng||this.language||t.usedLng,t.usedNS,t.usedKey,{resolved:t});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init({...o,interpolation:{...this.options.interpolation,...o.interpolation}});let u=N(r)&&(o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),c;if(u){let d=r.match(this.interpolator.nestingRegexp);c=d&&d.length}let l=o.replace&&!N(o.replace)?o.replace:o;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),r=this.interpolator.interpolate(r,l,o.lng||this.language||t.usedLng,o),u){let d=r.match(this.interpolator.nestingRegexp),f=d&&d.length;c<f&&(o.nest=!1)}!o.lng&&t&&t.res&&(o.lng=this.language||t.usedLng),o.nest!==!1&&(r=this.interpolator.nest(r,(...d)=>n?.[0]===d[0]&&!o.context?(this.logger.warn(`It seems you are nesting recursively key: ${d[0]} in key: ${i[0]}`),null):this.translate(...d,i),o)),o.interpolation&&this.interpolator.reset()}let a=o.postProcess||this.options.postProcess,s=N(a)?[a]:a;return r!=null&&s?.length&&o.applyPostProcessor!==!1&&(r=mh.handle(s,r,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...t,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),r}resolve(r,i={}){let o,t,n,a,s;return N(r)&&(r=[r]),Array.isArray(r)&&(r=r.map(u=>typeof u=="function"?Nt(u,{...this.options,...i}):u)),r.forEach(u=>{if(this.isValidLookup(o))return;let c=this.extractFromKey(u,i),l=c.key;t=l;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));let f=i.count!==void 0&&!N(i.count),p=f&&!i.ordinal&&i.count===0,m=i.context!==void 0&&(N(i.context)||typeof i.context=="number")&&i.context!=="",v=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);d.forEach(_=>{this.isValidLookup(o)||(s=_,!this.checkedLoadedFor[`${v[0]}-${_}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(s)&&(this.checkedLoadedFor[`${v[0]}-${_}`]=!0,this.logger.warn(`key "${t}" for languages "${v.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),v.forEach(S=>{if(this.isValidLookup(o))return;a=S;let k=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(k,l,S,_,i);else{let P;f&&(P=this.pluralResolver.getSuffix(S,i.count,i));let E=`${this.options.pluralSeparator}zero`,T=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(i.ordinal&&P.startsWith(T)&&k.push(l+P.replace(T,this.options.pluralSeparator)),k.push(l+P),p&&k.push(l+E)),m){let J=`${l}${this.options.contextSeparator||"_"}${i.context}`;k.push(J),f&&(i.ordinal&&P.startsWith(T)&&k.push(J+P.replace(T,this.options.pluralSeparator)),k.push(J+P),p&&k.push(J+E))}}let w;for(;w=k.pop();)this.isValidLookup(o)||(n=w,o=this.getResource(S,_,w,i))}))})}),{res:o,usedKey:t,exactUsedKey:n,usedLng:a,usedNS:s}}isValidLookup(r){return r!==void 0&&!(!this.options.returnNull&&r===null)&&!(!this.options.returnEmptyString&&r==="")}getResource(r,i,o,t={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(r,i,o,t):this.resourceStore.getResource(r,i,o,t)}getUsedParamsDetails(r={}){let i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=r.replace&&!N(r.replace),t=o?r.replace:r;if(o&&typeof r.count<"u"&&(t={...t,count:r.count}),this.options.interpolation.defaultVariables&&(t={...this.options.interpolation.defaultVariables,...t}),!o){t={...t};for(let n of i)delete t[n]}return t}static hasDefaultValue(r){let i="defaultValue";for(let o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&o.startsWith(i)&&r[o]!==void 0)return!0;return!1}},Ko=class{constructor(r){this.options=r,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Le.create("languageUtils"),this.resolveHierarchyCache={}}clearCache(){this.resolveHierarchyCache={}}getScriptPartFromCode(r){if(r=On(r),!r||!r.includes("-"))return null;let i=r.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(r){if(r=On(r),!r||!r.includes("-"))return r;let i=r.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(r){if(N(r)&&r.includes("-")){let i;try{i=Intl.getCanonicalLocales(r)[0]}catch{}return i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i||(this.options.lowerCaseLng?r.toLowerCase():r)}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}isSupportedCode(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(r)}getBestMatchFromCodes(r){if(!r)return null;let i;return r.forEach(o=>{if(i)return;let t=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(t))&&(i=t)}),!i&&this.options.supportedLngs&&r.forEach(o=>{if(i)return;let t=this.getScriptPartFromCode(o);if(this.isSupportedCode(t))return i=t;let n=this.getLanguagePartFromCode(o);if(this.isSupportedCode(n))return i=n;i=this.options.supportedLngs.find(a=>a===n?!0:!a.includes("-")&&!n.includes("-")?!1:!!(a.includes("-")&&!n.includes("-")&&a.slice(0,a.indexOf("-"))===n||a.startsWith(n)&&n.length>1))}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(r,i){if(!r)return[];if(typeof r=="function"&&(r=r(i)),N(r)&&(r=[r]),Array.isArray(r))return r;if(!i)return r.default||[];let o=r[i];return o||(o=r[this.getScriptPartFromCode(i)]),o||(o=r[this.formatLanguageCode(i)]),o||(o=r[this.getLanguagePartFromCode(i)]),o||(o=r.default),o||[]}toResolveHierarchy(r,i){let o=this.options.fallbackLng,t=Array.isArray(o)?o.join("|"):o;t!==this._cachedFallbackLng&&(this.resolveHierarchyCache={},this._cachedFallbackLng=t);let n=i===void 0||i===!1||N(i),a=i===void 0&&typeof this.options.fallbackLng=="function",s=N(r)&&n&&!a,u=null;if(s){let f;i===void 0?f="undefined":i===!1?f="boolean:false":f=`string:${i}`,u=`${r.length}:${r}|${f}`}if(u!==null){let f=this.resolveHierarchyCache[u];if(f!==void 0)return f.slice()}let c=this.getFallbackCodes((i===!1?[]:i)||this.options.fallbackLng||[],r),l=[],d=f=>{f&&(this.isSupportedCode(f)?l.push(f):this.logger.warn(`rejecting language code not found in supportedLngs: ${f}`))};return N(r)&&(r.includes("-")||r.includes("_"))?(this.options.load!=="languageOnly"&&d(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&d(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&d(this.getLanguagePartFromCode(r))):N(r)&&d(this.formatLanguageCode(r)),c.forEach(f=>{l.includes(f)||d(this.formatLanguageCode(f))}),u!==null?(this.resolveHierarchyCache[u]=l,l.slice()):l}},sh={zero:0,one:1,two:2,few:3,many:4,other:5},ch={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})},Dd=class{constructor(r,i={}){this.languageUtils=r,this.options=i,this.logger=Le.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(r,i={}){let o=On(r==="dev"?"en":r),t=i.ordinal?"ordinal":"cardinal",n=JSON.stringify({cleanedCode:o,type:t});if(n in this.pluralRulesCache)return this.pluralRulesCache[n];let a;try{a=new Intl.PluralRules(o,{type:t})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),ch;if(!r.match(/-|_/))return ch;let u=this.languageUtils.getLanguagePartFromCode(r);a=this.getRule(u,i)}return this.pluralRulesCache[n]=a,a}needsPlural(r,i={}){let o=this.getRule(r,i);return o||(o=this.getRule("dev",i)),o?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(r,i,o={}){return this.getSuffixes(r,o).map(t=>`${i}${t}`)}getSuffixes(r,i={}){let o=this.getRule(r,i);return o||(o=this.getRule("dev",i)),o?o.resolvedOptions().pluralCategories.sort((t,n)=>sh[t]-sh[n]).map(t=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${t}`):[]}getSuffix(r,i,o={}){let t=this.getRule(r,o);return t?`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${t.select(i)}`:(this.logger.warn(`no plural rule found for: ${r}`),this.getSuffix("dev",i,o))}},uh=(e,r,i,o=".",t=!0)=>{let n=nx(e,r,i);return!n&&t&&N(i)&&(n=Td(e,i,o),n===void 0&&(n=Td(r,i,o))),n},lh=e=>e.replace(/\$/g,"$$$$"),Jo=class{constructor(r={}){this.logger=Le.create("interpolator"),this.options=r,this.format=r?.interpolation?.format||(i=>i),this.init(r)}init(r={}){r.interpolation||(r.interpolation={escapeValue:!0});let{escape:i,escapeValue:o,useRawValueToEscape:t,prefix:n,prefixEscaped:a,suffix:s,suffixEscaped:u,formatSeparator:c,unescapeSuffix:l,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:p,nestingSuffix:m,nestingSuffixEscaped:v,nestingOptionsSeparator:_,maxReplaces:S,alwaysFormat:k}=r.interpolation;this.escape=i!==void 0?i:ox,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=t!==void 0?t:!1,this.prefix=n?Be(n):a||"{{",this.suffix=s?Be(s):u||"}}",this.formatSeparator=c||",",this.unescapePrefix=l?"":d?Be(d):"-",this.unescapeSuffix=this.unescapePrefix?"":l?Be(l):"",this.nestingPrefix=f?Be(f):p||Be("$t("),this.nestingSuffix=m?Be(m):v||Be(")"),this.nestingOptionsSeparator=_||",",this.maxReplaces=S||1e3,this.alwaysFormat=k!==void 0?k:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let r=(i,o)=>i?.source===o?(i.lastIndex=0,i):new RegExp(o,"g");this.regexp=r(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=r(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=r(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(r,i,o,t){let n,a,s,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=p=>{if(!p.includes(this.formatSeparator)){let S=uh(i,u,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(S,void 0,o,{...t,...i,interpolationkey:p}):S}let m=p.split(this.formatSeparator),v=m.shift().trim(),_=m.join(this.formatSeparator).trim();return this.format(uh(i,u,v,this.options.keySeparator,this.options.ignoreJSONStructure),_,o,{...t,...i,interpolationkey:v})};this.resetRegExp(),!this.escapeValue&&typeof r=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(r)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false \u2014 if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");let l=t?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=t?.interpolation?.skipOnVariables!==void 0?t.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>p},{regex:this.regexp,safeValue:p=>this.escapeValue?this.escape(p):p}].forEach(p=>{for(s=0;n=p.regex.exec(r);){let m=n[1].trim();if(a=c(m),a===void 0)if(typeof l=="function"){let _=l(r,n,t);a=N(_)?_:""}else if(t&&Object.prototype.hasOwnProperty.call(t,m))a="";else if(d){a=n[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${r}`),a="";else!N(a)&&!this.useRawValueToEscape&&(a=Pd(a));let v=p.safeValue(a);if(r=r.replace(n[0],lh(v)),d?(p.regex.lastIndex+=v.length,p.regex.lastIndex-=n[0].length):p.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),r}nest(r,i,o={}){let t,n,a,s=(u,c)=>{let l=this.nestingOptionsSeparator;if(!u.includes(l))return u;let d=u.split(new RegExp(`${Be(l)}[ ]*{`)),f=`{${d[1]}`;u=d[0],f=this.interpolate(f,a);let p=f.match(/'/g),m=f.match(/"/g);((p?.length??0)%2===0&&!m||(m?.length??0)%2!==0)&&(f=f.replace(/'/g,'"'));try{a=JSON.parse(f),c&&(a={...c,...a})}catch(v){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,v),`${u}${l}${f}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,u};for(;t=this.nestingRegexp.exec(r);){let u=[];a={...o},a=a.replace&&!N(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/s.test(t[1])?t[1].lastIndexOf("}")+1:t[1].indexOf(this.formatSeparator);if(c!==-1&&(u=t[1].slice(c).split(this.formatSeparator).map(l=>l.trim()).filter(Boolean),t[1]=t[1].slice(0,c)),n=i(s.call(this,t[1].trim(),a),a),n&&t[0]===r&&!N(n))return n;N(n)||(n=Pd(n)),n||(this.logger.warn(`missed to resolve ${t[1]} for nesting ${r}`),n=""),u.length&&(n=u.reduce((l,d)=>this.format(l,d,o.lng,{...o,interpolationkey:t[1].trim()}),n.trim())),r=r.replace(t[0],lh(Pd(n))),this.regexp.lastIndex=0}return r}},dx=e=>{let r=e.toLowerCase().trim(),i={};if(e.includes("(")){let o=e.split("(");r=o[0].toLowerCase().trim();let t=o[1].slice(0,-1);r==="currency"&&!t.includes(":")?i.currency||(i.currency=t.trim()):r==="relativetime"&&!t.includes(":")?i.range||(i.range=t.trim()):t.split(";").forEach(a=>{if(a){let[s,...u]=a.split(":"),c=u.join(":").trim().replace(/^'+|'+$/g,""),l=s.trim();i[l]||(i[l]=c),c==="false"&&(i[l]=!1),c==="true"&&(i[l]=!0),isNaN(c)||(i[l]=parseInt(c,10))}})}return{formatName:r,formatOptions:i}},dh=e=>{let r={};return(i,o,t)=>{let n=t;t&&t.interpolationkey&&t.formatParams&&t.formatParams[t.interpolationkey]&&t[t.interpolationkey]&&(n={...n,[t.interpolationkey]:void 0});let a=o+JSON.stringify(n),s=r[a];return s||(s=e(On(o),t),r[a]=s),s(i)}},fx=e=>(r,i,o)=>e(On(i),o)(r),jd=class{constructor(r={}){this.logger=Le.create("formatter"),this.options=r,this.init(r)}init(r,i={interpolation:{}}){this.formatSeparator=i.interpolation.formatSeparator||",";let o=i.cacheInBuiltFormats?dh:fx;this.formats={number:o((t,n)=>{let a=new Intl.NumberFormat(t,{...n});return s=>a.format(s)}),currency:o((t,n)=>{let a=new Intl.NumberFormat(t,{...n,style:"currency"});return s=>a.format(s)}),datetime:o((t,n)=>{let a=new Intl.DateTimeFormat(t,{...n});return s=>a.format(s)}),relativetime:o((t,n)=>{let a=new Intl.RelativeTimeFormat(t,{...n});return s=>a.format(s,n.range||"day")}),list:o((t,n)=>{let a=new Intl.ListFormat(t,{...n});return s=>a.format(s)})}}add(r,i){this.formats[r.toLowerCase().trim()]=i}addCached(r,i){this.formats[r.toLowerCase().trim()]=dh(i)}format(r,i,o,t={}){if(!i||r==null)return r;let n=i.split(this.formatSeparator),a=[];for(let u=0;u<n.length;u++){let c=n[u];for(;c.indexOf("(")>-1&&!c.includes(")")&&u+1<n.length;)c=`${c}${this.formatSeparator}${n[++u]}`;a.push(c)}return a.reduce((u,c)=>{let{formatName:l,formatOptions:d}=dx(c);if(this.formats[l]){let f=u;try{let p=t?.formatParams?.[t.interpolationkey]||{},m=p.locale||p.lng||t.locale||t.lng||o;f=this.formats[l](u,m,{...d,...t,...p})}catch(p){this.logger.warn(p)}return f}else this.logger.warn(`there was no format function for ${l}`);return u},r)}},px=(e,r)=>{e.pending[r]!==void 0&&(delete e.pending[r],e.pendingCount--)},Cd=class extends _r{constructor(r,i,o,t={}){super(),this.backend=r,this.store=i,this.services=o,this.languageUtils=o.languageUtils,this.options=t,this.logger=Le.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=t.maxParallelReads||10,this.readingCalls=0,this.maxRetries=t.maxRetries>=0?t.maxRetries:5,this.retryTimeout=t.retryTimeout>=1?t.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(o,t.backend,t)}queueLoad(r,i,o,t){let n={},a={},s={},u={};return r.forEach(c=>{let l=!0;i.forEach(d=>{let f=`${c}|${d}`;!o.reload&&this.store.hasResourceBundle(c,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?a[f]===void 0&&(a[f]=!0):(this.state[f]=1,l=!1,a[f]===void 0&&(a[f]=!0),n[f]===void 0&&(n[f]=!0),u[d]===void 0&&(u[d]=!0)))}),l||(s[c]=!0)}),(Object.keys(n).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:t}),{toLoad:Object.keys(n),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(u)}}loaded(r,i,o){let t=r.split("|"),n=t[0],a=t[1];i&&this.emit("failedLoading",n,a,i),!i&&o&&this.store.addResourceBundle(n,a,o,void 0,void 0,{skipCopy:!0}),this.state[r]=i?-1:2,i&&o&&(this.state[r]=0);let s={};this.queue.forEach(u=>{rx(u.loaded,[n],a),px(u,r),i&&u.errors.push(i),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(c=>{s[c]||(s[c]={});let l=u.loaded[c];l.length&&l.forEach(d=>{s[c][d]===void 0&&(s[c][d]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(u=>!u.done)}read(r,i,o,t=0,n=this.retryTimeout,a){if(!r.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:r,ns:i,fcName:o,tried:t,wait:n,callback:a});return}this.readingCalls++;let s=(c,l)=>{if(this.readingCalls--,this.waitingReads.length>0){let d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(c&&l&&t<this.maxRetries){setTimeout(()=>{this.read(r,i,o,t+1,n*2,a)},n);return}a(c,l)},u=this.backend[o].bind(this.backend);if(u.length===2){try{let c=u(r,i);c&&typeof c.then=="function"?c.then(l=>s(null,l)).catch(s):s(null,c)}catch(c){s(c)}return}return u(r,i,s)}prepareLoading(r,i,o={},t){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),t&&t();N(r)&&(r=this.languageUtils.toResolveHierarchy(r)),N(i)&&(i=[i]);let n=this.queueLoad(r,i,o,t);if(!n.toLoad.length)return n.pending.length||t(),null;n.toLoad.forEach(a=>{this.loadOne(a)})}load(r,i,o){this.prepareLoading(r,i,{},o)}reload(r,i,o){this.prepareLoading(r,i,{reload:!0},o)}loadOne(r,i=""){let o=r.split("|"),t=o[0],n=o[1];this.read(t,n,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${i}loading namespace ${n} for language ${t} failed`,a),!a&&s&&this.logger.log(`${i}loaded namespace ${n} for language ${t}`,s),this.loaded(r,a,s)})}saveMissing(r,i,o,t,n,a={},s=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(i)){this.logger.warn(`did not save key "${o}" as the namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if(this.backend?.create){let u={...a,isUpdate:n},c=this.backend.create.bind(this.backend);if(c.length<6)try{let l;c.length===5?l=c(r,i,o,t,u):l=c(r,i,o,t),l&&typeof l.then=="function"?l.then(d=>s(null,d)).catch(s):s(null,l)}catch(l){s(l)}else c(r,i,o,t,s,u)}!r||!r[0]||this.store.addResource(r[0],i,o,t)}}},Nd=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let r={};if(typeof e[1]=="object"&&(r=e[1]),N(e[1])&&(r.defaultValue=e[1]),N(e[2])&&(r.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let i=e[3]||e[2];Object.keys(i).forEach(o=>{r[o]=i[o]})}return r},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),fh=e=>(N(e.ns)&&(e.ns=[e.ns]),N(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),N(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Fo=()=>{},mx=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(i=>{typeof e[i]=="function"&&(e[i]=e[i].bind(e))})},Ld=class e extends _r{constructor(r={},i){if(super(),this.options=fh(r),this.services={},this.logger=Le,this.modules={external:[]},mx(this),i&&!this.isInitialized&&!r.isClone){if(!this.options.initAsync)return this.init(r,i),this;setTimeout(()=>{this.init(r,i)},0)}}init(r={},i){this.isInitializing=!0,typeof r=="function"&&(i=r,r={}),r.defaultNS==null&&r.ns&&(N(r.ns)?r.defaultNS=r.ns:r.ns.includes("translation")||(r.defaultNS=r.ns[0]));let o=Nd();this.options={...o,...this.options,...fh(r)},this.options.interpolation={...o.interpolation,...this.options.interpolation},r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=o.overloadTranslationOptionHandler);let t=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?Le.init(t(this.modules.logger),this.options):Le.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=jd;let l=new Ko(this.options);this.store=new Mo(this.options.resources,this.options);let d=this.services;d.logger=Le,d.resourceStore=this.store,d.languageUtils=l,d.pluralResolver=new Dd(l,{prepend:this.options.pluralSeparator}),c&&(d.formatter=t(c),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new Jo(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new Cd(t(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",(f,...p)=>{this.emit(f,...p)}),this.modules.languageDetector&&(d.languageDetector=t(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=t(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new Bo(this.services,this.options),this.translator.on("*",(f,...p)=>{this.emit(f,...p)}),this.modules.external.forEach(f=>{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,i||(i=Fo),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=(...l)=>this.store[c](...l)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=(...l)=>(this.store[c](...l),this)});let s=zn(),u=()=>{let c=(l,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(d),i(l,d)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),s}loadResources(r,i=Fo){let o=i,t=N(r)?r:this.language;if(typeof r=="function"&&(o=r),!this.options.resources||this.options.partialBundledLanguages){if(t?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return o();let n=[],a=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(c=>{c!=="cimode"&&(n.includes(c)||n.push(c))})};t?a(t):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>a(u)),this.options.preload?.forEach?.(s=>a(s)),this.services.backendConnector.load(n,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),o(s)})}else o(null)}reloadResources(r,i,o){let t=zn();return typeof r=="function"&&(o=r,r=void 0),typeof i=="function"&&(o=i,i=void 0),r||(r=this.languages),i||(i=this.options.ns),o||(o=Fo),this.services.backendConnector.reload(r,i,n=>{t.resolve(),o(n)}),t}use(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&mh.addPostProcessor(r),r.type==="formatter"&&(this.modules.formatter=r),r.type==="3rdParty"&&this.modules.external.push(r),this}setResolvedLanguage(r){if(!(!r||!this.languages)&&!["cimode","dev"].includes(r)){for(let i=0;i<this.languages.length;i++){let o=this.languages[i];if(!["cimode","dev"].includes(o)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}!this.resolvedLanguage&&!this.languages.includes(r)&&this.store.hasLanguageSomeTranslations(r)&&(this.resolvedLanguage=r,this.languages.unshift(r))}}changeLanguage(r,i){this.isLanguageChangingTo=r;let o=zn();this.emit("languageChanging",r);let t=s=>{this.language=s,this.languages=this.services.languageUtils.toResolveHierarchy(s),this.resolvedLanguage=void 0,this.setResolvedLanguage(s)},n=(s,u)=>{u?this.isLanguageChangingTo===r&&(t(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,o.resolve((...c)=>this.t(...c)),i&&i(s,(...c)=>this.t(...c))},a=s=>{!r&&!s&&this.services.languageDetector&&(s=[]);let u=N(s)?s:s&&s[0],c=this.store.hasLanguageSomeTranslations(u)?u:this.services.languageUtils.getBestMatchFromCodes(N(s)?[s]:s);c&&(this.language||t(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector?.cacheUserLanguage?.(c)),this.loadResources(c,l=>{n(l,c)})};return!r&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(r),o}getFixedT(r,i,o,t){let n=t?.scopeNs,a=(s,u,...c)=>{let l;typeof u!="object"?l=this.options.overloadTranslationOptionHandler([s,u].concat(c)):l={...u},l.lng=l.lng||a.lng,l.lngs=l.lngs||a.lngs;let d=l.ns!==void 0&&l.ns!==null;l.ns=l.ns||a.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||o||a.keyPrefix);let f={...this.options,...l};Array.isArray(n)&&!d&&(f.ns=n),typeof l.keyPrefix=="function"&&(l.keyPrefix=Nt(l.keyPrefix,f));let p=this.options.keySeparator||".",m;return l.keyPrefix&&Array.isArray(s)?m=s.map(v=>(typeof v=="function"&&(v=Nt(v,f)),`${l.keyPrefix}${p}${v}`)):(typeof s=="function"&&(s=Nt(s,f)),m=l.keyPrefix?`${l.keyPrefix}${p}${s}`:s),this.t(m,l)};return N(r)?a.lng=r:a.lngs=r,a.ns=i,a.keyPrefix=o,a}t(...r){return this.translator?.translate(...r)}exists(...r){return this.translator?.exists(...r)}setDefaultNamespace(r){this.options.defaultNS=r}hasLoadedNamespace(r,i={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let o=i.lng||this.resolvedLanguage||this.languages[0],t=this.options?this.options.fallbackLng:!1,n=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;let a=(s,u)=>{let c=this.services.backendConnector.state[`${s}|${u}`];return c===-1||c===0||c===2};if(i.precheck){let s=i.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(o,r)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(o,r)&&(!t||a(n,r)))}loadNamespaces(r,i){let o=zn();return this.options.ns?(N(r)&&(r=[r]),r.forEach(t=>{this.options.ns.includes(t)||this.options.ns.push(t)}),this.loadResources(t=>{o.resolve(),i&&i(t)}),o):(i&&i(),Promise.resolve())}loadLanguages(r,i){let o=zn();N(r)&&(r=[r]);let t=this.options.preload||[],n=r.filter(a=>!t.includes(a)&&this.services.languageUtils.isSupportedCode(a));return n.length?(this.options.preload=t.concat(n),this.loadResources(a=>{o.resolve(),i&&i(a)}),o):(i&&i(),Promise.resolve())}dir(r){if(r||(r=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!r)return"rtl";try{let t=new Intl.Locale(r);if(t&&t.getTextInfo){let n=t.getTextInfo();if(n&&n.direction)return n.direction}}catch{}let i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],o=this.services?.languageUtils||new Ko(Nd());return r.toLowerCase().indexOf("-latn")>1?"ltr":i.includes(o.getLanguagePartFromCode(r))||r.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(r={},i){let o=new e(r,i);return o.createInstance=e.createInstance,o}cloneInstance(r={},i=Fo){let o=r.forkResourceStore;o&&delete r.forkResourceStore;let t={...this.options,...r,isClone:!0},n=new e(t);if((r.debug!==void 0||r.prefix!==void 0)&&(n.logger=n.logger.clone(r)),["store","services","language"].forEach(s=>{n[s]=this[s]}),n.services={...this.services},n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},o){let s=Object.keys(this.store.data).reduce((u,c)=>(u[c]={...this.store.data[c]},u[c]=Object.keys(u[c]).reduce((l,d)=>(l[d]={...u[c][d]},l),u[c]),u),{});n.store=new Mo(s,t),n.services.resourceStore=n.store}if(r.interpolation){let u={...Nd().interpolation,...this.options.interpolation,...r.interpolation},c={...t,interpolation:u};n.services.interpolator=new Jo(c)}return n.translator=new Bo(n.services,t),n.translator.on("*",(s,...u)=>{n.emit(s,...u)}),n.init(t,i),n.translator.options=t,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},he=Ld.createInstance(),Ud=he.createInstance,az=he.dir,sz=he.init,cz=he.loadResources,uz=he.reloadResources,lz=he.use,dz=he.changeLanguage,fz=he.getFixedT,pz=he.t,mz=he.exists,gz=he.setDefaultNamespace,hz=he.hasLoadedNamespace,vz=he.loadNamespaces,yz=he.loadLanguages;var Go=(e,r,i,o)=>{let t=[i,{code:r,...o||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(t,"warn","react-i18next::",!0);Ne(t[0])&&(t[0]=`react-i18next:: ${t[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...t):console?.warn&&console.warn(...t)},hh={},Ke=(e,r,i,o)=>{Ne(i)&&hh[i]||(Ne(i)&&(hh[i]=new Date),Go(e,r,i,o))},vh=(e,r)=>()=>{if(e.isInitialized)r();else{let i=()=>{setTimeout(()=>{e.off("initialized",i)},0),r()};e.on("initialized",i)}},Wo=(e,r,i)=>{e.loadNamespaces(r,vh(e,i))},Rd=(e,r,i,o)=>{if(Ne(i)&&(i=[i]),e.options.preload&&e.options.preload.indexOf(r)>-1)return Wo(e,i,o);i.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(r,vh(e,o))},yh=(e,r,i={})=>!r.languages||!r.languages.length?(Ke(r,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:r.languages}),!0):r.hasLoadedNamespace(e,{lng:i.lng,precheck:(o,t)=>{if(i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!t(o.isLanguageChangingTo,e))return!1}});var Ne=e=>typeof e=="string",Zd=e=>typeof e=="object"&&e!==null;var gx=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,hx={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xA9","©":"\xA9","®":"\xAE","®":"\xAE","…":"\u2026","…":"\u2026","/":"/","/":"/"},vx=e=>hx[e],Fd=e=>e.replace(gx,vx);var yx={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Fd,transDefaultProps:void 0};var Nn=()=>yx;var bx;var Ae=()=>bx;var _h=te(oe(),1);var Je=(0,_h.createContext)(),Ho=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(r){r.forEach(i=>{this.usedNamespaces[i]||(this.usedNamespaces[i]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}};var wh=te(oe(),1);var At=te(oe(),1);var xr=class e extends Error{constructor(r,i,o){super(r),this.name="TranslationParserError",this.position=i,this.translationString=o,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};var xh={" ":"\xA0","&":"&","<":"<",">":">",""":'"',"'":"'","©":"\xA9","®":"\xAE","™":"\u2122","…":"\u2026","–":"\u2013","—":"\u2014","‘":"\u2018","’":"\u2019","‚":"\u201A","“":"\u201C","”":"\u201D","„":"\u201E","†":"\u2020","‡":"\u2021","•":"\u2022","′":"\u2032","″":"\u2033","‹":"\u2039","›":"\u203A","§":"\xA7","¶":"\xB6","·":"\xB7"," ":"\u2002"," ":"\u2003"," ":"\u2009","€":"\u20AC","£":"\xA3","¥":"\xA5","¢":"\xA2","¤":"\xA4","×":"\xD7","÷":"\xF7","−":"\u2212","±":"\xB1","≠":"\u2260","≤":"\u2264","≥":"\u2265","≈":"\u2248","≡":"\u2261","∞":"\u221E","∫":"\u222B","∑":"\u2211","∏":"\u220F","√":"\u221A","∂":"\u2202","‰":"\u2030","°":"\xB0","µ":"\xB5","←":"\u2190","↑":"\u2191","→":"\u2192","↓":"\u2193","↔":"\u2194","↵":"\u21B5","⇐":"\u21D0","⇑":"\u21D1","⇒":"\u21D2","⇓":"\u21D3","⇔":"\u21D4","α":"\u03B1","β":"\u03B2","γ":"\u03B3","δ":"\u03B4","ε":"\u03B5","ζ":"\u03B6","η":"\u03B7","θ":"\u03B8","ι":"\u03B9","κ":"\u03BA","λ":"\u03BB","μ":"\u03BC","ν":"\u03BD","ξ":"\u03BE","ο":"\u03BF","π":"\u03C0","ρ":"\u03C1","σ":"\u03C3","τ":"\u03C4","υ":"\u03C5","φ":"\u03C6","χ":"\u03C7","ψ":"\u03C8","ω":"\u03C9","Α":"\u0391","Β":"\u0392","Γ":"\u0393","Δ":"\u0394","Ε":"\u0395","Ζ":"\u0396","Η":"\u0397","Θ":"\u0398","Ι":"\u0399","Κ":"\u039A","Λ":"\u039B","Μ":"\u039C","Ν":"\u039D","Ξ":"\u039E","Ο":"\u039F","Π":"\u03A0","Ρ":"\u03A1","Σ":"\u03A3","Τ":"\u03A4","Υ":"\u03A5","Φ":"\u03A6","Χ":"\u03A7","Ψ":"\u03A8","Ω":"\u03A9","À":"\xC0","Á":"\xC1","Â":"\xC2","Ã":"\xC3","Ä":"\xC4","Å":"\xC5","Æ":"\xC6","Ç":"\xC7","È":"\xC8","É":"\xC9","Ê":"\xCA","Ë":"\xCB","Ì":"\xCC","Í":"\xCD","Î":"\xCE","Ï":"\xCF","Ð":"\xD0","Ñ":"\xD1","Ò":"\xD2","Ó":"\xD3","Ô":"\xD4","Õ":"\xD5","Ö":"\xD6","Ø":"\xD8","Ù":"\xD9","Ú":"\xDA","Û":"\xDB","Ü":"\xDC","Ý":"\xDD","Þ":"\xDE","ß":"\xDF","à":"\xE0","á":"\xE1","â":"\xE2","ã":"\xE3","ä":"\xE4","å":"\xE5","æ":"\xE6","ç":"\xE7","è":"\xE8","é":"\xE9","ê":"\xEA","ë":"\xEB","ì":"\xEC","í":"\xED","î":"\xEE","ï":"\xEF","ð":"\xF0","ñ":"\xF1","ò":"\xF2","ó":"\xF3","ô":"\xF4","õ":"\xF5","ö":"\xF6","ø":"\xF8","ù":"\xF9","ú":"\xFA","û":"\xFB","ü":"\xFC","ý":"\xFD","þ":"\xFE","ÿ":"\xFF","¡":"\xA1","¿":"\xBF","ƒ":"\u0192","ˆ":"\u02C6","˜":"\u02DC","Œ":"\u0152","œ":"\u0153","Š":"\u0160","š":"\u0161","Ÿ":"\u0178","ª":"\xAA","º":"\xBA","¯":"\xAF","´":"\xB4","¸":"\xB8","¹":"\xB9","²":"\xB2","³":"\xB3","¼":"\xBC","½":"\xBD","¾":"\xBE","♠":"\u2660","♣":"\u2663","♥":"\u2665","♦":"\u2666","◊":"\u25CA","‾":"\u203E","⁄":"\u2044","℘":"\u2118","ℑ":"\u2111","ℜ":"\u211C","ℵ":"\u2135"},Ix=new RegExp(Object.keys(xh).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g"),kh=e=>e.replace(Ix,r=>xh[r]).replace(/&#(\d+);/g,(r,i)=>String.fromCharCode(parseInt(i,10))).replace(/&#x([0-9a-fA-F]+);/g,(r,i)=>String.fromCharCode(parseInt(i,16)));var Ih=e=>{let r=[],i=0,o="",t=()=>{o&&(r.push({type:"Text",value:o,position:i-o.length}),o="")};for(;i<e.length;){let n=e[i];if(n==="<"){let a=e.slice(i).match(/^<(\d+)>/);if(a)t(),r.push({type:"TagOpen",value:a[0],position:i,tagNumber:parseInt(a[1],10)}),i+=a[0].length;else{let s=e.slice(i).match(/^<\/(\d+)>/);s?(t(),r.push({type:"TagClose",value:s[0],position:i,tagNumber:parseInt(s[1],10)}),i+=s[0].length):(o+=n,i+=1)}}else o+=n,i+=1}return t(),r};var Tn=te(oe(),1);var Sx=(e,r,i)=>{let{type:o,props:t={}}=e;if(t.children&&Array.isArray(t.children)&&i){let{children:n,...a}=t;return Tn.default.createElement(o,a,...r)}return r.length===0?Tn.default.createElement(o,t):r.length===1?Tn.default.createElement(o,t,r[0]):Tn.default.createElement(o,t,...r)},Sh=(e,r=[])=>{if(!e)return[];let i=Ih(e),o=[],t=[],n=new Set,a=()=>{if(t.length===0)return r;let s=t[t.length-1];return s.declaration.props?.children&&Array.isArray(s.declaration.props.children)?s.declaration.props.children:s.declarations};if(i.forEach(s=>{switch(s.type){case"Text":{let u=kh(s.value);(t.length>0?t[t.length-1].children:o).push(u)}break;case"TagOpen":{let{tagNumber:u}=s,c=a(),l=c[u];if(!l){n.add(u);let d=`<${u}>`;(t.length>0?t[t.length-1].children:o).push(d);break}t.push({tagNumber:u,children:[],position:s.position,declaration:l,declarations:c})}break;case"TagClose":{let{tagNumber:u}=s;if(n.has(u)){let f=`</${u}>`;(t.length>0?t[t.length-1].children:o).push(f),n.delete(u);break}if(t.length===0)throw new xr(`Unexpected closing tag </${u}> at position ${s.position}`,s.position,e);let c=t.pop();if(c.tagNumber!==u)throw new xr(`Mismatched tags: expected </${c.tagNumber}> but got </${u}> at position ${s.position}`,s.position,e);let l=Sx(c.declaration,c.children,c.declarations);(t.length>0?t[t.length-1].children:o).push(l)}break}}),t.length>0){let s=t[t.length-1];throw new xr(`Unclosed tag <${s.tagNumber}> at position ${s.position}`,s.position,e)}return o};function Xo({i18nKey:e,defaultTranslation:r,content:i,ns:o,values:t={},i18n:n,t:a}){let s=n||Ae();if(!s)return Ke(s,"NO_I18NEXT_INSTANCE","IcuTrans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:e}),At.default.createElement(At.default.Fragment,{},r);let u=a||s.t?.bind(s)||(f=>f),c=o||u.ns||s.options?.defaultNS;c=Ne(c)?[c]:c||["translation"];let l=t;s.options?.interpolation?.defaultVariables&&(l=t&&Object.keys(t).length>0?{...t,...s.options.interpolation.defaultVariables}:{...s.options.interpolation.defaultVariables});let d=u(e||r,{defaultValue:r,...l,ns:c});try{let f=Sh(d,i);return At.default.createElement(At.default.Fragment,{},...f)}catch(f){return Go(s,"ICU_TRANS_RENDER_ERROR",`IcuTrans component error for key "${e}": ${f.message}`,{i18nKey:e,error:f}),At.default.createElement(At.default.Fragment,{},d)}}Xo.displayName="IcuTransWithoutContext";function zh({i18nKey:e,defaultTranslation:r,content:i,ns:o,values:t={},i18n:n,t:a}){let{i18n:s,defaultNS:u}=(0,wh.useContext)(Je)||{},c=n||s||Ae(),l=a||c?.t.bind(c);return Xo({i18nKey:e,defaultTranslation:r,content:i,ns:o||l?.ns||u||c?.options?.defaultNS,values:t,i18n:c,t:a})}zh.displayName="IcuTrans";var ee=te(oe(),1),Th=te(Ah(),1);var jx=(e,r)=>{if(Ne(r))return r;if(Zd(r)&&Ne(r.defaultValue))return r.defaultValue;if(typeof e=="function")return"";if(Array.isArray(e)){let i=e[e.length-1];return typeof i=="function"?"":i}return e},Cx={t:jx,ready:!1},Lx=()=>()=>{},En=(e,r={})=>{let{i18n:i}=r,{i18n:o,defaultNS:t}=(0,ee.useContext)(Je)||{},n=i||o||Ae();n&&!n.reportNamespaces&&(n.reportNamespaces=new Ho),n||Ke(n,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.");let a=(0,ee.useMemo)(()=>({...Nn(),...n?.options?.react,...r}),[n,r]),{useSuspense:s,keyPrefix:u}=a,c=e||t||n?.options?.defaultNS,l=Ne(c)?[c]:c||["translation"],d=(0,ee.useMemo)(()=>l,l);n?.reportNamespaces?.addUsedNamespaces?.(d);let f=(0,ee.useRef)(0),p=(0,ee.useCallback)(j=>{if(!n)return Lx;let{bindI18n:B,bindI18nStore:K}=a,U=()=>{f.current+=1,j()};return B&&n.on(B,U),K&&n.store.on(K,U),()=>{B&&B.split(" ").forEach(X=>n.off(X,U)),K&&K.split(" ").forEach(X=>n.store.off(X,U))}},[n,a]),m=(0,ee.useRef)(),v=(0,ee.useCallback)(()=>{if(!n)return Cx;let j=!!(n.isInitialized||n.initializedStoreOnce)&&d.every(xe=>yh(xe,n,a)),B=r.lng||n.language,K=f.current,U=m.current;if(U&&U.ready===j&&U.lng===B&&U.keyPrefix===u&&U.revision===K)return U;let ut={t:n.getFixedT(B,a.nsMode==="fallback"?d:d[0],u,{scopeNs:d}),ready:j,lng:B,keyPrefix:u,revision:K};return m.current=ut,ut},[n,d,u,a,r.lng]),[_,S]=(0,ee.useState)(0),{t:k,ready:w}=(0,Th.useSyncExternalStore)(p,v,v);(0,ee.useEffect)(()=>{if(n&&!w&&!s){let j=()=>S(B=>B+1);r.lng?Rd(n,r.lng,d,j):Wo(n,d,j)}},[n,r.lng,d,w,s,_]);let P=n||{},E=(0,ee.useRef)(null),T=(0,ee.useRef)(),J=j=>`${j.language}|${j.resolvedLanguage}|${j.languages?.join(",")}`,we=j=>{let B=Object.getOwnPropertyDescriptors(j);B.__original&&delete B.__original;let K=Object.create(Object.getPrototypeOf(j),B);if(!Object.prototype.hasOwnProperty.call(K,"__original"))try{Object.defineProperty(K,"__original",{value:j,writable:!1,enumerable:!1,configurable:!1})}catch{}return K},ve=(0,ee.useMemo)(()=>{let j=P,B=j&&J(j),K=j;j&&(E.current&&E.current.__original===j?T.current!==B?(K=we(j),E.current=K,T.current=B):K=E.current:(K=we(j),E.current=K,T.current=B));let U=!w&&!s?(...ut)=>(Ke(n,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),k(...ut)):k,X=[U,K,w];return X.t=U,X.i18n=K,X.ready=w,X},[k,P,w,P.resolvedLanguage,P.language,P.languages]);if(n&&s&&!w){let j=!1;try{j=!1}catch{}throw j&&Ke(n,"SUSPENDED_WHILE_LOADING","useTranslation: suspended while translations are loading (useSuspense is true by default). Add a <Suspense> boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook"),new Promise(B=>{let K=()=>B();r.lng?Rd(n,r.lng,d,K):Wo(n,d,K)})}return ve};var Eh=te(oe(),1);var qo=te(oe(),1);function Md({i18n:e,defaultNS:r,children:i}){let o=(0,qo.useMemo)(()=>({i18n:e,defaultNS:r}),[e,r]);return(0,qo.createElement)(Je.Provider,{value:o},i)}var Vx=te(oe(),1);var Rx=te(oe(),1);var Mx=Xd({"./locales/a2a/en.json":()=>import("./embed-page-en-KJK6MNFJ.js"),"./locales/a2a/zh.json":()=>import("./embed-page-zh-JHGC2HD6.js"),"./locales/auth/en.json":()=>import("./embed-page-en-BRZZWMIP.js"),"./locales/auth/zh.json":()=>import("./embed-page-zh-D4S5EDEI.js"),"./locales/capability/en.json":()=>import("./embed-page-en-2LPUFX67.js"),"./locales/capability/zh.json":()=>import("./embed-page-zh-4TLT6Q7R.js"),"./locales/chat/en.json":()=>import("./embed-page-en-5ACLMQIE.js"),"./locales/chat/zh.json":()=>import("./embed-page-zh-DRCY3KAU.js"),"./locales/chatConfig/en.json":()=>import("./embed-page-en-27XXHBGT.js"),"./locales/chatConfig/zh.json":()=>import("./embed-page-zh-BAD2QK42.js"),"./locales/chatMenu/en.json":()=>import("./embed-page-en-2PUUB6AU.js"),"./locales/chatMenu/zh.json":()=>import("./embed-page-zh-NFR2SOHA.js"),"./locales/chatWorkspace/en.json":()=>import("./embed-page-en-GFJ3SC72.js"),"./locales/chatWorkspace/zh.json":()=>import("./embed-page-zh-XZVYNVKK.js"),"./locales/common/en.json":()=>import("./embed-page-en-O6D56CKX.js"),"./locales/common/zh.json":()=>import("./embed-page-zh-DCK5YTQZ.js"),"./locales/cospace/en.json":()=>import("./embed-page-en-UZPK7AZP.js"),"./locales/cospace/zh.json":()=>import("./embed-page-zh-F3R6OREL.js"),"./locales/crons/en.json":()=>import("./embed-page-en-LQIRPUCS.js"),"./locales/crons/zh.json":()=>import("./embed-page-zh-TL7EV7HL.js"),"./locales/entities/en.json":()=>import("./embed-page-en-UQFEMND3.js"),"./locales/entities/zh.json":()=>import("./embed-page-zh-VYDBQNQA.js"),"./locales/eval/en.json":()=>import("./embed-page-en-Y7WDOUBJ.js"),"./locales/eval/zh.json":()=>import("./embed-page-zh-MGFENHP4.js"),"./locales/genui/en.json":()=>import("./embed-page-en-W2HBB45W.js"),"./locales/genui/zh.json":()=>import("./embed-page-zh-INJ6HSJ3.js"),"./locales/governance/en.json":()=>import("./embed-page-en-VL6MIKJ2.js"),"./locales/governance/zh.json":()=>import("./embed-page-zh-YWYECP5U.js"),"./locales/info/en.json":()=>import("./embed-page-en-YH43GDEL.js"),"./locales/info/zh.json":()=>import("./embed-page-zh-CNKBPDPK.js"),"./locales/integration/en.json":()=>import("./embed-page-en-HJQ5BROW.js"),"./locales/integration/zh.json":()=>import("./embed-page-zh-BTEWSUVG.js"),"./locales/mcpapp/en.json":()=>import("./embed-page-en-EZW363FB.js"),"./locales/mcpapp/zh.json":()=>import("./embed-page-zh-VN52LDWX.js"),"./locales/migration/en.json":()=>import("./embed-page-en-ZMO6OBNA.js"),"./locales/migration/zh.json":()=>import("./embed-page-zh-VIM2MTU5.js"),"./locales/monitor/en.json":()=>import("./embed-page-en-WCGOIHE7.js"),"./locales/monitor/zh.json":()=>import("./embed-page-zh-JI3RZIRT.js"),"./locales/platformAdmin/en.json":()=>import("./embed-page-en-PVXMEFR4.js"),"./locales/platformAdmin/zh.json":()=>import("./embed-page-zh-VSMLSDTK.js"),"./locales/projectRoom/en.json":()=>import("./embed-page-en-6F6LTRLX.js"),"./locales/projectRoom/zh.json":()=>import("./embed-page-zh-PGH5LDJX.js"),"./locales/store/en.json":()=>import("./embed-page-en-D22SXYM7.js"),"./locales/store/zh.json":()=>import("./embed-page-zh-E5DB2NMV.js"),"./locales/tasks/en.json":()=>import("./embed-page-en-WZMFE5KI.js"),"./locales/tasks/zh.json":()=>import("./embed-page-zh-TYSAYPQU.js"),"./locales/training/en.json":()=>import("./embed-page-en-PXIPXZJP.js"),"./locales/training/zh.json":()=>import("./embed-page-zh-C4NGPHKB.js")});var Tt=["en-US","zh-CN"];function Yo(e){return e==="zh-CN"?"zh":"en"}function Bd(e){return e.startsWith("zh")?"zh-CN":"en-US"}var ct=["common","a2a","auth","capability","chat","chatConfig","chatMenu","chatWorkspace","cospace","crons","entities","eval","genui","governance","info","integration","mcpapp","migration","monitor","platformAdmin","projectRoom","store","tasks","training"];function Kd(e){let[r]=e.split(".");return ct.includes(r)?r:ct[0]}var Dh={type:"backend",read(e,r,i){Mx(`./locales/${r}/${e}.json`).then(o=>{let t=o.default??o;i(null,t.messages??t)}).catch(o=>i(o,null))}};function Bx(e,r){let i=((o,t)=>e(o,{ns:Kd(o),...t}));return i.locale=Bd(r??"en"),i}function Kx(){let{t:e,i18n:r}=En(),i=r?.language;return(0,jh.useMemo)(()=>Bx(e,i),[e,i])}var Jd=te(oe());var Ch=(0,Jd.createContext)(null);var Et=te(oe());var Gd=te(Yd());function Jx({locale:e="en-US",overrides:r,storageKey:i,onLocaleChange:o,children:t}){let[n,a]=(0,Et.useState)(!1),s=(0,Et.useMemo)(()=>Ud(),[]);(0,Et.useEffect)(()=>{let c=!1;return a(!1),s.use(Dh).init({lng:Yo(e),fallbackLng:"en",ns:[...ct],defaultNS:ct[0],keySeparator:!1,nsSeparator:!1,interpolation:{escapeValue:!1},resources:r?{[Yo(e)]:{[ct[0]]:r[e]??{}}}:void 0}).then(()=>s.loadNamespaces([...ct])).then(()=>{c||a(!0)}).catch(()=>{c||a(!0)}),()=>{c=!0}},[s,e,r]);let u=(0,Et.useMemo)(()=>({locale:e,supportedLocales:Tt,setLocale:c=>{if(Tt.includes(c)){if(i&&typeof window<"u")try{window.localStorage.setItem(i,c)}catch{}o?.(c)}}}),[e,i,o]);return n?(0,Gd.jsx)(Ch.Provider,{value:u,children:(0,Gd.jsx)(Md,{i18n:s,children:t})}):null}var Lh="lattice.locale";function Gx(e=Lh){if(!(typeof window>"u"))try{let r=window.localStorage.getItem(e);return r!==null&&Tt.includes(r)?r:void 0}catch{return}}export{$r as a,P_ as b,jw as c,Cw as d,Uw as e,L_ as f,Rw as g,Zw as h,Kw as i,Jw as j,Gw as k,Ww as l,nh as m,X_ as n,Kx as o,Ch as p,Jx as q,Lh as r,Gx as s};
|
|
185
185
|
/*! Bundled license information:
|
|
186
186
|
|
|
187
187
|
use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Me}from"./embed-page-chunk-44VORHMG.js";import{a as Zo}from"./embed-page-chunk-LSFGYL6V.js";import{a as _o}from"./embed-page-chunk-NSWJKEWL.js";import{a as ea}from"./embed-page-chunk-EWVCIXUT.js";import{a as ta}from"./embed-page-chunk-W2IURIUL.js";import{a as ra}from"./embed-page-chunk-SLC7IP3I.js";import{a as na}from"./embed-page-chunk-XEOY2EW2.js";import{a as oa}from"./embed-page-chunk-FLHVQHIW.js";import{a as aa}from"./embed-page-chunk-S5PFRSFC.js";import{a as Bo}from"./embed-page-chunk-PGJXTF54.js";import{a as Go}from"./embed-page-chunk-LI6LEX3B.js";import{a as Uo}from"./embed-page-chunk-PCLSFZT6.js";import{a as Vo}from"./embed-page-chunk-FCOFBOX7.js";import{a as Ko}from"./embed-page-chunk-VLBP4XJT.js";import{a as Jo}from"./embed-page-chunk-FJF5RFPM.js";import{a as Qo}from"./embed-page-chunk-UJFVUYGA.js";import{a as Yo}from"./embed-page-chunk-CA3I35Y2.js";import{a as zo}from"./embed-page-chunk-22QLO7HU.js";import{a as Do}from"./embed-page-chunk-H7SFKVW6.js";import{a as To}from"./embed-page-chunk-OLOTLSPV.js";import{a as Xo}from"./embed-page-chunk-CCZGLVOD.js";import{a as Ho}from"./embed-page-chunk-2DXIX63U.js";import{a as Fo}from"./embed-page-chunk-5POD35YE.js";import{a as Mo}from"./embed-page-chunk-4V3MBNWB.js";import{a as Wo}from"./embed-page-chunk-52AAMXQO.js";import{a as So}from"./embed-page-chunk-SHZWXQST.js";import{a as $o}from"./embed-page-chunk-U7N674UI.js";import{a as Po}from"./embed-page-chunk-IGBZLWCE.js";import{a as Oo}from"./embed-page-chunk-SY5UNRPH.js";import{a as Io}from"./embed-page-chunk-5EZZNWJW.js";import{a as Ao}from"./embed-page-chunk-PJUFBJO3.js";import{a as Eo}from"./embed-page-chunk-ISICGRKU.js";import{a as Ro}from"./embed-page-chunk-YRE5TTAK.js";import{a as qo}from"./embed-page-chunk-FHTWJM4A.js";import{a as vo}from"./embed-page-chunk-Z37WBJX3.js";import{a as xo}from"./embed-page-chunk-K7PC2OGY.js";import{a as ko}from"./embed-page-chunk-CIEMHVJ5.js";import{a as No}from"./embed-page-chunk-4LJ6KIB3.js";import{a as wo}from"./embed-page-chunk-DFLZ4RP6.js";import{a as jo}from"./embed-page-chunk-MP2G6ODF.js";import{a as Co}from"./embed-page-chunk-EVSTEEZG.js";import{a as uo}from"./embed-page-chunk-63U3ZMQG.js";import{a as mo}from"./embed-page-chunk-47NVZRSB.js";import{a as po}from"./embed-page-chunk-SI6UYBAI.js";import{a as fo}from"./embed-page-chunk-PXSN2N5W.js";import{a as ho}from"./embed-page-chunk-MTWIWRHG.js";import{a as yo}from"./embed-page-chunk-DXC32ILH.js";import{a as Lo}from"./embed-page-chunk-W6RAR5ZA.js";import{a as bo}from"./embed-page-chunk-QXLIXZTJ.js";import{a as no}from"./embed-page-chunk-4GOE7GPO.js";import{a as oo}from"./embed-page-chunk-HA6OMUWE.js";import{a as ao}from"./embed-page-chunk-O4JL65Z5.js";import{a as io}from"./embed-page-chunk-GG6CTYTV.js";import{a as so}from"./embed-page-chunk-T4XMMH46.js";import{a as co}from"./embed-page-chunk-D6DOSAV5.js";import{a as lo}from"./embed-page-chunk-W44ISDMI.js";import{a as go}from"./embed-page-chunk-IO5N3LDM.js";import{a as Jn}from"./embed-page-chunk-WSPGPYZ5.js";import{a as Qn}from"./embed-page-chunk-FKHPL5HZ.js";import{a as Yn}from"./embed-page-chunk-65HGKMTH.js";import{a as Zn}from"./embed-page-chunk-MODHZSOW.js";import{a as _n}from"./embed-page-chunk-Y7GBWIY3.js";import{a as eo}from"./embed-page-chunk-VGL7FOPA.js";import{a as to}from"./embed-page-chunk-7I5NMR7D.js";import{a as ro}from"./embed-page-chunk-BSN6TTUE.js";import{a as Fn}from"./embed-page-chunk-LU2CYZEL.js";import{a as Mn}from"./embed-page-chunk-RRN5HS3R.js";import{a as Wn}from"./embed-page-chunk-X32ETQEH.js";import{a as Bn}from"./embed-page-chunk-ADTQMCI7.js";import{a as Gn}from"./embed-page-chunk-ASJMYKJ3.js";import{a as Un}from"./embed-page-chunk-VUTUW44D.js";import{a as Vn}from"./embed-page-chunk-VCW6Q3M2.js";import{a as Kn}from"./embed-page-chunk-ZCFQB2FL.js";import{a as An}from"./embed-page-chunk-VRG47GGA.js";import{a as En}from"./embed-page-chunk-VDXUT2O4.js";import{a as Rn}from"./embed-page-chunk-JJG5IP23.js";import{a as zn}from"./embed-page-chunk-BIR5EKHA.js";import{a as Dn}from"./embed-page-chunk-WV4OQ36Y.js";import{a as Tn}from"./embed-page-chunk-PLN32M4W.js";import{a as Xn}from"./embed-page-chunk-WC5V56WN.js";import{a as Hn}from"./embed-page-chunk-SPG7J2QN.js";import{a as wn}from"./embed-page-chunk-Z5VVJLU3.js";import{a as jn}from"./embed-page-chunk-LAVQKYE6.js";import{a as Cn}from"./embed-page-chunk-BR7V2DRS.js";import{a as Sn}from"./embed-page-chunk-6SDLOCNN.js";import{a as $n}from"./embed-page-chunk-DFQK3F6H.js";import{a as Pn}from"./embed-page-chunk-H3HM3IQO.js";import{a as On}from"./embed-page-chunk-JALPYMFP.js";import{a as In}from"./embed-page-chunk-DKT7GHLO.js";import{a as yn}from"./embed-page-chunk-PBAOY4GW.js";import{a as Ln}from"./embed-page-chunk-PQTSLQHU.js";import{a as bn}from"./embed-page-chunk-NBBSKDFV.js";import{a as qn}from"./embed-page-chunk-AGGUS266.js";import{a as vn}from"./embed-page-chunk-AGRLL6XV.js";import{a as xn}from"./embed-page-chunk-WMNMDJPN.js";import{a as kn}from"./embed-page-chunk-LIAGNY4T.js";import{a as Nn}from"./embed-page-chunk-C5DELPFK.js";import{a as ln}from"./embed-page-chunk-VPYT7N7U.js";import{a as gn}from"./embed-page-chunk-WBC7OHMQ.js";import{a as un}from"./embed-page-chunk-BEZ2IARO.js";import{a as mn}from"./embed-page-chunk-ELWD53BF.js";import{a as pn}from"./embed-page-chunk-7DUMWDRL.js";import{a as dn}from"./embed-page-chunk-LV4KISX6.js";import{a as fn}from"./embed-page-chunk-2CGCX2PN.js";import{a as hn}from"./embed-page-chunk-ZA6RTR2C.js";import{a as en}from"./embed-page-chunk-BGSV4THC.js";import{a as tn}from"./embed-page-chunk-LM2BDWAS.js";import{a as rn}from"./embed-page-chunk-MOGAE3A2.js";import{a as nn}from"./embed-page-chunk-U7UBRXXJ.js";import{a as on}from"./embed-page-chunk-6IBN2M2Z.js";import{a as an}from"./embed-page-chunk-CTHHJ4I4.js";import{a as sn}from"./embed-page-chunk-44RJXK2M.js";import{a as cn}from"./embed-page-chunk-W5FGDA4S.js";import{a as Ur}from"./embed-page-chunk-GS3JO2NN.js";import{a as Vr}from"./embed-page-chunk-KHUS25AW.js";import{a as Kr}from"./embed-page-chunk-YI4TU7SU.js";import{a as Jr}from"./embed-page-chunk-MHBZ3GLK.js";import{a as Qr}from"./embed-page-chunk-7FGRLVLE.js";import{a as Yr}from"./embed-page-chunk-OEFICHJZ.js";import{a as Zr}from"./embed-page-chunk-ZAYHRY5U.js";import{a as _r}from"./embed-page-chunk-ZM5JCNFR.js";import{a as Tr}from"./embed-page-chunk-SDFFCMWV.js";import{a as Xr}from"./embed-page-chunk-Y2R2ZTRU.js";import{a as Hr}from"./embed-page-chunk-RBQ4X74Z.js";import{a as Fr}from"./embed-page-chunk-V3CCYGKQ.js";import{a as Mr}from"./embed-page-chunk-M3DZFGEK.js";import{a as Wr}from"./embed-page-chunk-LWW5TWRY.js";import{a as Br}from"./embed-page-chunk-KUWZZYT7.js";import{a as Gr}from"./embed-page-chunk-SFCL5PMT.js";import{a as Pr}from"./embed-page-chunk-YE7GGWM3.js";import{a as Or}from"./embed-page-chunk-Q6NAA7US.js";import{a as Ir}from"./embed-page-chunk-CUHZT2KV.js";import{a as Ar}from"./embed-page-chunk-5V2BQ2XN.js";import{a as Er}from"./embed-page-chunk-J5OFKWUC.js";import{a as Rr}from"./embed-page-chunk-FUKZ27G3.js";import{a as zr}from"./embed-page-chunk-3LCCPV2D.js";import{a as Dr}from"./embed-page-chunk-Z2MGKRM5.js";import{a as xr}from"./embed-page-chunk-WFLNAGJT.js";import{a as kr}from"./embed-page-chunk-6UYSVMXI.js";import{a as Nr}from"./embed-page-chunk-WLYWA466.js";import{a as wr}from"./embed-page-chunk-4PQ435OY.js";import{a as jr}from"./embed-page-chunk-27OOZ5UV.js";import{a as Cr}from"./embed-page-chunk-CVMAAGSF.js";import{a as Sr}from"./embed-page-chunk-UE7VOLX2.js";import{a as $r}from"./embed-page-chunk-2KBOGBGK.js";import{a as dr}from"./embed-page-chunk-COMKLDJJ.js";import{a as fr}from"./embed-page-chunk-GGYYUDVQ.js";import{a as hr}from"./embed-page-chunk-63OFBZ7M.js";import{a as yr}from"./embed-page-chunk-L7YFJJWU.js";import{a as Lr}from"./embed-page-chunk-5GDCAQ3I.js";import{a as br}from"./embed-page-chunk-JJH6SNGP.js";import{a as qr}from"./embed-page-chunk-HSO734RE.js";import{a as vr}from"./embed-page-chunk-YLXN53AC.js";import{a as ir}from"./embed-page-chunk-ZXNETJAB.js";import{a as sr}from"./embed-page-chunk-QMFJWH6G.js";import{a as cr}from"./embed-page-chunk-22YCXG63.js";import{a as lr}from"./embed-page-chunk-MCE5PWXA.js";import{a as gr}from"./embed-page-chunk-VEZ3QJH5.js";import{a as ur}from"./embed-page-chunk-N2YP42DT.js";import{a as mr}from"./embed-page-chunk-SH7ULUSK.js";import{a as pr}from"./embed-page-chunk-RGSIOYUU.js";import{a as Zt}from"./embed-page-chunk-TRVMFSTD.js";import{a as _t}from"./embed-page-chunk-LN25MSMN.js";import{a as er}from"./embed-page-chunk-IHSDCRQE.js";import{a as tr}from"./embed-page-chunk-XWI3C2AQ.js";import{a as rr}from"./embed-page-chunk-SPTINYQE.js";import{a as nr}from"./embed-page-chunk-YQYHINB3.js";import{a as or}from"./embed-page-chunk-Z4LB7RXZ.js";import{a as ar}from"./embed-page-chunk-67D5GXKN.js";import{a as Bt}from"./embed-page-chunk-YEGHCY2K.js";import{a as Gt}from"./embed-page-chunk-ORS3BLUZ.js";import{a as Ut}from"./embed-page-chunk-PZO43HPC.js";import{a as Vt}from"./embed-page-chunk-FCQ6L444.js";import{a as Kt}from"./embed-page-chunk-YTNZSCHE.js";import{a as Jt}from"./embed-page-chunk-LVFF3AZX.js";import{a as Qt}from"./embed-page-chunk-FPLGXSO7.js";import{a as Yt}from"./embed-page-chunk-2NHJMWUJ.js";import{a as zt}from"./embed-page-chunk-5TBTVULY.js";import{a as Dt}from"./embed-page-chunk-DQZOB6OC.js";import{a as Tt}from"./embed-page-chunk-CEI54LJA.js";import{a as Xt}from"./embed-page-chunk-2KKQ45B5.js";import{a as Ht}from"./embed-page-chunk-YUYV3OE6.js";import{a as Ft}from"./embed-page-chunk-ECP6XNAQ.js";import{a as Mt}from"./embed-page-chunk-RODKTYMZ.js";import{a as Wt}from"./embed-page-chunk-5OO6S3CB.js";import{a as St}from"./embed-page-chunk-JGUVBZCO.js";import{a as $t}from"./embed-page-chunk-Y2CX2WRC.js";import{a as Pt}from"./embed-page-chunk-OEKGXMBH.js";import{a as Ot}from"./embed-page-chunk-GJ3G5F24.js";import{a as It}from"./embed-page-chunk-YUJHQ6TB.js";import{a as At}from"./embed-page-chunk-VCDB6SEC.js";import{a as Et}from"./embed-page-chunk-6K7TJCIK.js";import{a as Rt}from"./embed-page-chunk-3MJTCHAS.js";import{A as He,B as Ct,C as Fe,f as Ee,g as J,o as le,p as ge,q as $,r as ue,s as Re,u as ze,x as De,y as Te,z as Xe}from"./embed-page-chunk-V5NE4FIR.js";import{Aa as Ie,Ea as Ae,H as Ce,I as Se,M as $e,a as q,wa as Pe,xa as Oe,y as je}from"./embed-page-chunk-7TINC3YA.js";import{Ha as Ne,b as j,d as se,ib as we,n as ce,oa as G,p as ke}from"./embed-page-chunk-TWJOR2LG.js";import{a as S}from"./embed-page-chunk-MPQBYKDM.js";import{c as jt,e as N}from"./embed-page-chunk-45A47GH2.js";var et=jt((Ga,_e)=>{"use strict";var t=St();_e.exports=t;t.registerLanguage("1c",$t());t.registerLanguage("abnf",Pt());t.registerLanguage("accesslog",Ot());t.registerLanguage("actionscript",It());t.registerLanguage("ada",At());t.registerLanguage("angelscript",Et());t.registerLanguage("apache",Rt());t.registerLanguage("applescript",zt());t.registerLanguage("arcade",Dt());t.registerLanguage("arduino",Tt());t.registerLanguage("armasm",Xt());t.registerLanguage("xml",Ht());t.registerLanguage("asciidoc",Ft());t.registerLanguage("aspectj",Mt());t.registerLanguage("autohotkey",Wt());t.registerLanguage("autoit",Bt());t.registerLanguage("avrasm",Gt());t.registerLanguage("awk",Ut());t.registerLanguage("axapta",Vt());t.registerLanguage("bash",Kt());t.registerLanguage("basic",Jt());t.registerLanguage("bnf",Qt());t.registerLanguage("brainfuck",Yt());t.registerLanguage("c-like",Zt());t.registerLanguage("c",_t());t.registerLanguage("cal",er());t.registerLanguage("capnproto",tr());t.registerLanguage("ceylon",rr());t.registerLanguage("clean",nr());t.registerLanguage("clojure",or());t.registerLanguage("clojure-repl",ar());t.registerLanguage("cmake",ir());t.registerLanguage("coffeescript",sr());t.registerLanguage("coq",cr());t.registerLanguage("cos",lr());t.registerLanguage("cpp",gr());t.registerLanguage("crmsh",ur());t.registerLanguage("crystal",mr());t.registerLanguage("csharp",pr());t.registerLanguage("csp",dr());t.registerLanguage("css",fr());t.registerLanguage("d",hr());t.registerLanguage("markdown",yr());t.registerLanguage("dart",Lr());t.registerLanguage("delphi",br());t.registerLanguage("diff",qr());t.registerLanguage("django",vr());t.registerLanguage("dns",xr());t.registerLanguage("dockerfile",kr());t.registerLanguage("dos",Nr());t.registerLanguage("dsconfig",wr());t.registerLanguage("dts",jr());t.registerLanguage("dust",Cr());t.registerLanguage("ebnf",Sr());t.registerLanguage("elixir",$r());t.registerLanguage("elm",Pr());t.registerLanguage("ruby",Or());t.registerLanguage("erb",Ir());t.registerLanguage("erlang-repl",Ar());t.registerLanguage("erlang",Er());t.registerLanguage("excel",Rr());t.registerLanguage("fix",zr());t.registerLanguage("flix",Dr());t.registerLanguage("fortran",Tr());t.registerLanguage("fsharp",Xr());t.registerLanguage("gams",Hr());t.registerLanguage("gauss",Fr());t.registerLanguage("gcode",Mr());t.registerLanguage("gherkin",Wr());t.registerLanguage("glsl",Br());t.registerLanguage("gml",Gr());t.registerLanguage("go",Ur());t.registerLanguage("golo",Vr());t.registerLanguage("gradle",Kr());t.registerLanguage("groovy",Jr());t.registerLanguage("haml",Qr());t.registerLanguage("handlebars",Yr());t.registerLanguage("haskell",Zr());t.registerLanguage("haxe",_r());t.registerLanguage("hsp",en());t.registerLanguage("htmlbars",tn());t.registerLanguage("http",rn());t.registerLanguage("hy",nn());t.registerLanguage("inform7",on());t.registerLanguage("ini",an());t.registerLanguage("irpf90",sn());t.registerLanguage("isbl",cn());t.registerLanguage("java",ln());t.registerLanguage("javascript",gn());t.registerLanguage("jboss-cli",un());t.registerLanguage("json",mn());t.registerLanguage("julia",pn());t.registerLanguage("julia-repl",dn());t.registerLanguage("kotlin",fn());t.registerLanguage("lasso",hn());t.registerLanguage("latex",yn());t.registerLanguage("ldif",Ln());t.registerLanguage("leaf",bn());t.registerLanguage("less",qn());t.registerLanguage("lisp",vn());t.registerLanguage("livecodeserver",xn());t.registerLanguage("livescript",kn());t.registerLanguage("llvm",Nn());t.registerLanguage("lsl",wn());t.registerLanguage("lua",jn());t.registerLanguage("makefile",Cn());t.registerLanguage("mathematica",Sn());t.registerLanguage("matlab",$n());t.registerLanguage("maxima",Pn());t.registerLanguage("mel",On());t.registerLanguage("mercury",In());t.registerLanguage("mipsasm",An());t.registerLanguage("mizar",En());t.registerLanguage("perl",Rn());t.registerLanguage("mojolicious",zn());t.registerLanguage("monkey",Dn());t.registerLanguage("moonscript",Tn());t.registerLanguage("n1ql",Xn());t.registerLanguage("nginx",Hn());t.registerLanguage("nim",Fn());t.registerLanguage("nix",Mn());t.registerLanguage("node-repl",Wn());t.registerLanguage("nsis",Bn());t.registerLanguage("objectivec",Gn());t.registerLanguage("ocaml",Un());t.registerLanguage("openscad",Vn());t.registerLanguage("oxygene",Kn());t.registerLanguage("parser3",Jn());t.registerLanguage("pf",Qn());t.registerLanguage("pgsql",Yn());t.registerLanguage("php",Zn());t.registerLanguage("php-template",_n());t.registerLanguage("plaintext",eo());t.registerLanguage("pony",to());t.registerLanguage("powershell",ro());t.registerLanguage("processing",no());t.registerLanguage("profile",oo());t.registerLanguage("prolog",ao());t.registerLanguage("properties",io());t.registerLanguage("protobuf",so());t.registerLanguage("puppet",co());t.registerLanguage("purebasic",lo());t.registerLanguage("python",go());t.registerLanguage("python-repl",uo());t.registerLanguage("q",mo());t.registerLanguage("qml",po());t.registerLanguage("r",fo());t.registerLanguage("reasonml",ho());t.registerLanguage("rib",yo());t.registerLanguage("roboconf",Lo());t.registerLanguage("routeros",bo());t.registerLanguage("rsl",qo());t.registerLanguage("ruleslanguage",vo());t.registerLanguage("rust",xo());t.registerLanguage("sas",ko());t.registerLanguage("scala",No());t.registerLanguage("scheme",wo());t.registerLanguage("scilab",jo());t.registerLanguage("scss",Co());t.registerLanguage("shell",So());t.registerLanguage("smali",$o());t.registerLanguage("smalltalk",Po());t.registerLanguage("sml",Oo());t.registerLanguage("sqf",Io());t.registerLanguage("sql_more",Ao());t.registerLanguage("sql",Eo());t.registerLanguage("stan",Ro());t.registerLanguage("stata",zo());t.registerLanguage("step21",Do());t.registerLanguage("stylus",To());t.registerLanguage("subunit",Xo());t.registerLanguage("swift",Ho());t.registerLanguage("taggerscript",Fo());t.registerLanguage("yaml",Mo());t.registerLanguage("tap",Wo());t.registerLanguage("tcl",Bo());t.registerLanguage("thrift",Go());t.registerLanguage("tp",Uo());t.registerLanguage("twig",Vo());t.registerLanguage("typescript",Ko());t.registerLanguage("vala",Jo());t.registerLanguage("vbnet",Qo());t.registerLanguage("vbscript",Yo());t.registerLanguage("vbscript-html",Zo());t.registerLanguage("verilog",_o());t.registerLanguage("vhdl",ea());t.registerLanguage("vim",ta());t.registerLanguage("x86asm",ra());t.registerLanguage("xl",na());t.registerLanguage("xquery",oa());t.registerLanguage("zephir",aa())});var X=N(S());var Ge=N(S());function We(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function Q(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?We(Object(o),!0).forEach(function(n){se(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):We(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ia(e){var r=e.length;if(r===0||r===1)return e;if(r===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(r===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(r>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var Le={};function sa(e){if(e.length===0||e.length===1)return e;var r=e.join(".");return Le[r]||(Le[r]=ia(e)),Le[r]}function ca(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,n=e.filter(function(i){return i!=="token"}),a=sa(n);return a.reduce(function(i,s){return Q(Q({},i),o[s])},r)}function Be(e){return e.join(" ")}function la(e,r){var o=0;return function(n){return o+=1,n.map(function(a,i){return me({node:a,stylesheet:e,useInlineStyles:r,key:"code-segment-".concat(o,"-").concat(i)})})}}function me(e){var r=e.node,o=e.stylesheet,n=e.style,a=n===void 0?{}:n,i=e.useInlineStyles,s=e.key,c=r.properties,h=r.type,m=r.tagName,d=r.value;if(h==="text")return d;if(m){var p=la(o,i),g;if(!i)g=Q(Q({},c),{},{className:Be(c.className)});else{var l=Object.keys(o).reduce(function(f,b){return b.split(".").forEach(function(v){f.includes(v)||f.push(v)}),f},[]),u=c.className&&c.className.includes("token")?["token"]:[],L=c.className&&u.concat(c.className.filter(function(f){return!l.includes(f)}));g=Q(Q({},c),{},{className:Be(L)||void 0,style:ca(c.className,Object.assign({},c.style,a),o)})}var y=p(r.children);return Ge.default.createElement(m,j({key:s},g),y)}}var Ue=(function(e,r){var o=e.listLanguages();return o.indexOf(r)!==-1});var ga=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Ve(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function H(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?Ve(Object(o),!0).forEach(function(n){se(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ve(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}var ua=/\n/g;function ma(e){return e.match(ua)}function pa(e){var r=e.lines,o=e.startingLineNumber,n=e.style;return r.map(function(a,i){var s=i+o;return X.default.createElement("span",{key:"line-".concat(i),className:"react-syntax-highlighter-line-number",style:typeof n=="function"?n(s):n},"".concat(s,`
|
|
1
|
+
import{a as Me}from"./embed-page-chunk-44VORHMG.js";import{a as oa}from"./embed-page-chunk-FLHVQHIW.js";import{a as aa}from"./embed-page-chunk-S5PFRSFC.js";import{a as Qo}from"./embed-page-chunk-UJFVUYGA.js";import{a as Yo}from"./embed-page-chunk-CA3I35Y2.js";import{a as Zo}from"./embed-page-chunk-LSFGYL6V.js";import{a as _o}from"./embed-page-chunk-NSWJKEWL.js";import{a as ea}from"./embed-page-chunk-EWVCIXUT.js";import{a as ta}from"./embed-page-chunk-W2IURIUL.js";import{a as ra}from"./embed-page-chunk-SLC7IP3I.js";import{a as na}from"./embed-page-chunk-XEOY2EW2.js";import{a as Mo}from"./embed-page-chunk-4V3MBNWB.js";import{a as Wo}from"./embed-page-chunk-52AAMXQO.js";import{a as Bo}from"./embed-page-chunk-PGJXTF54.js";import{a as Go}from"./embed-page-chunk-LI6LEX3B.js";import{a as Uo}from"./embed-page-chunk-PCLSFZT6.js";import{a as Vo}from"./embed-page-chunk-FCOFBOX7.js";import{a as Ko}from"./embed-page-chunk-VLBP4XJT.js";import{a as Jo}from"./embed-page-chunk-FJF5RFPM.js";import{a as Eo}from"./embed-page-chunk-ISICGRKU.js";import{a as Ro}from"./embed-page-chunk-YRE5TTAK.js";import{a as zo}from"./embed-page-chunk-22QLO7HU.js";import{a as Do}from"./embed-page-chunk-H7SFKVW6.js";import{a as To}from"./embed-page-chunk-OLOTLSPV.js";import{a as Xo}from"./embed-page-chunk-CCZGLVOD.js";import{a as Ho}from"./embed-page-chunk-2DXIX63U.js";import{a as Fo}from"./embed-page-chunk-5POD35YE.js";import{a as jo}from"./embed-page-chunk-MP2G6ODF.js";import{a as Co}from"./embed-page-chunk-EVSTEEZG.js";import{a as So}from"./embed-page-chunk-SHZWXQST.js";import{a as $o}from"./embed-page-chunk-U7N674UI.js";import{a as Po}from"./embed-page-chunk-IGBZLWCE.js";import{a as Oo}from"./embed-page-chunk-SY5UNRPH.js";import{a as Io}from"./embed-page-chunk-5EZZNWJW.js";import{a as Ao}from"./embed-page-chunk-PJUFBJO3.js";import{a as Lo}from"./embed-page-chunk-W6RAR5ZA.js";import{a as bo}from"./embed-page-chunk-QXLIXZTJ.js";import{a as qo}from"./embed-page-chunk-FHTWJM4A.js";import{a as vo}from"./embed-page-chunk-Z37WBJX3.js";import{a as xo}from"./embed-page-chunk-K7PC2OGY.js";import{a as ko}from"./embed-page-chunk-CIEMHVJ5.js";import{a as No}from"./embed-page-chunk-4LJ6KIB3.js";import{a as wo}from"./embed-page-chunk-DFLZ4RP6.js";import{a as lo}from"./embed-page-chunk-W44ISDMI.js";import{a as go}from"./embed-page-chunk-IO5N3LDM.js";import{a as uo}from"./embed-page-chunk-63U3ZMQG.js";import{a as mo}from"./embed-page-chunk-47NVZRSB.js";import{a as po}from"./embed-page-chunk-SI6UYBAI.js";import{a as fo}from"./embed-page-chunk-PXSN2N5W.js";import{a as ho}from"./embed-page-chunk-MTWIWRHG.js";import{a as yo}from"./embed-page-chunk-DXC32ILH.js";import{a as to}from"./embed-page-chunk-7I5NMR7D.js";import{a as ro}from"./embed-page-chunk-BSN6TTUE.js";import{a as no}from"./embed-page-chunk-4GOE7GPO.js";import{a as oo}from"./embed-page-chunk-HA6OMUWE.js";import{a as ao}from"./embed-page-chunk-O4JL65Z5.js";import{a as io}from"./embed-page-chunk-GG6CTYTV.js";import{a as so}from"./embed-page-chunk-T4XMMH46.js";import{a as co}from"./embed-page-chunk-D6DOSAV5.js";import{a as Vn}from"./embed-page-chunk-VCW6Q3M2.js";import{a as Kn}from"./embed-page-chunk-ZCFQB2FL.js";import{a as Jn}from"./embed-page-chunk-WSPGPYZ5.js";import{a as Qn}from"./embed-page-chunk-FKHPL5HZ.js";import{a as Yn}from"./embed-page-chunk-65HGKMTH.js";import{a as Zn}from"./embed-page-chunk-MODHZSOW.js";import{a as _n}from"./embed-page-chunk-Y7GBWIY3.js";import{a as eo}from"./embed-page-chunk-VGL7FOPA.js";import{a as Xn}from"./embed-page-chunk-WC5V56WN.js";import{a as Hn}from"./embed-page-chunk-SPG7J2QN.js";import{a as Fn}from"./embed-page-chunk-LU2CYZEL.js";import{a as Mn}from"./embed-page-chunk-RRN5HS3R.js";import{a as Wn}from"./embed-page-chunk-X32ETQEH.js";import{a as Bn}from"./embed-page-chunk-ADTQMCI7.js";import{a as Gn}from"./embed-page-chunk-ASJMYKJ3.js";import{a as Un}from"./embed-page-chunk-VUTUW44D.js";import{a as On}from"./embed-page-chunk-JALPYMFP.js";import{a as In}from"./embed-page-chunk-DKT7GHLO.js";import{a as An}from"./embed-page-chunk-VRG47GGA.js";import{a as En}from"./embed-page-chunk-VDXUT2O4.js";import{a as Rn}from"./embed-page-chunk-JJG5IP23.js";import{a as zn}from"./embed-page-chunk-BIR5EKHA.js";import{a as Dn}from"./embed-page-chunk-WV4OQ36Y.js";import{a as Tn}from"./embed-page-chunk-PLN32M4W.js";import{a as kn}from"./embed-page-chunk-LIAGNY4T.js";import{a as Nn}from"./embed-page-chunk-C5DELPFK.js";import{a as wn}from"./embed-page-chunk-Z5VVJLU3.js";import{a as jn}from"./embed-page-chunk-LAVQKYE6.js";import{a as Cn}from"./embed-page-chunk-BR7V2DRS.js";import{a as Sn}from"./embed-page-chunk-6SDLOCNN.js";import{a as $n}from"./embed-page-chunk-DFQK3F6H.js";import{a as Pn}from"./embed-page-chunk-H3HM3IQO.js";import{a as fn}from"./embed-page-chunk-2CGCX2PN.js";import{a as hn}from"./embed-page-chunk-ZA6RTR2C.js";import{a as yn}from"./embed-page-chunk-PBAOY4GW.js";import{a as Ln}from"./embed-page-chunk-PQTSLQHU.js";import{a as bn}from"./embed-page-chunk-NBBSKDFV.js";import{a as qn}from"./embed-page-chunk-AGGUS266.js";import{a as vn}from"./embed-page-chunk-AGRLL6XV.js";import{a as xn}from"./embed-page-chunk-WMNMDJPN.js";import{a as sn}from"./embed-page-chunk-44RJXK2M.js";import{a as cn}from"./embed-page-chunk-W5FGDA4S.js";import{a as ln}from"./embed-page-chunk-VPYT7N7U.js";import{a as gn}from"./embed-page-chunk-WBC7OHMQ.js";import{a as un}from"./embed-page-chunk-BEZ2IARO.js";import{a as mn}from"./embed-page-chunk-ELWD53BF.js";import{a as pn}from"./embed-page-chunk-7DUMWDRL.js";import{a as dn}from"./embed-page-chunk-LV4KISX6.js";import{a as Zr}from"./embed-page-chunk-ZAYHRY5U.js";import{a as _r}from"./embed-page-chunk-ZM5JCNFR.js";import{a as en}from"./embed-page-chunk-BGSV4THC.js";import{a as tn}from"./embed-page-chunk-LM2BDWAS.js";import{a as rn}from"./embed-page-chunk-MOGAE3A2.js";import{a as nn}from"./embed-page-chunk-U7UBRXXJ.js";import{a as on}from"./embed-page-chunk-6IBN2M2Z.js";import{a as an}from"./embed-page-chunk-CTHHJ4I4.js";import{a as Br}from"./embed-page-chunk-KUWZZYT7.js";import{a as Gr}from"./embed-page-chunk-SFCL5PMT.js";import{a as Ur}from"./embed-page-chunk-GS3JO2NN.js";import{a as Vr}from"./embed-page-chunk-KHUS25AW.js";import{a as Kr}from"./embed-page-chunk-YI4TU7SU.js";import{a as Jr}from"./embed-page-chunk-MHBZ3GLK.js";import{a as Qr}from"./embed-page-chunk-7FGRLVLE.js";import{a as Yr}from"./embed-page-chunk-OEFICHJZ.js";import{a as zr}from"./embed-page-chunk-3LCCPV2D.js";import{a as Dr}from"./embed-page-chunk-Z2MGKRM5.js";import{a as Tr}from"./embed-page-chunk-SDFFCMWV.js";import{a as Xr}from"./embed-page-chunk-Y2R2ZTRU.js";import{a as Hr}from"./embed-page-chunk-RBQ4X74Z.js";import{a as Fr}from"./embed-page-chunk-V3CCYGKQ.js";import{a as Mr}from"./embed-page-chunk-M3DZFGEK.js";import{a as Wr}from"./embed-page-chunk-LWW5TWRY.js";import{a as Sr}from"./embed-page-chunk-UE7VOLX2.js";import{a as $r}from"./embed-page-chunk-2KBOGBGK.js";import{a as Pr}from"./embed-page-chunk-YE7GGWM3.js";import{a as Or}from"./embed-page-chunk-Q6NAA7US.js";import{a as Ir}from"./embed-page-chunk-CUHZT2KV.js";import{a as Ar}from"./embed-page-chunk-5V2BQ2XN.js";import{a as Er}from"./embed-page-chunk-J5OFKWUC.js";import{a as Rr}from"./embed-page-chunk-FUKZ27G3.js";import{a as qr}from"./embed-page-chunk-HSO734RE.js";import{a as vr}from"./embed-page-chunk-YLXN53AC.js";import{a as xr}from"./embed-page-chunk-WFLNAGJT.js";import{a as kr}from"./embed-page-chunk-6UYSVMXI.js";import{a as Nr}from"./embed-page-chunk-WLYWA466.js";import{a as wr}from"./embed-page-chunk-4PQ435OY.js";import{a as jr}from"./embed-page-chunk-27OOZ5UV.js";import{a as Cr}from"./embed-page-chunk-CVMAAGSF.js";import{a as mr}from"./embed-page-chunk-SH7ULUSK.js";import{a as pr}from"./embed-page-chunk-RGSIOYUU.js";import{a as dr}from"./embed-page-chunk-COMKLDJJ.js";import{a as fr}from"./embed-page-chunk-GGYYUDVQ.js";import{a as hr}from"./embed-page-chunk-63OFBZ7M.js";import{a as yr}from"./embed-page-chunk-L7YFJJWU.js";import{a as Lr}from"./embed-page-chunk-5GDCAQ3I.js";import{a as br}from"./embed-page-chunk-JJH6SNGP.js";import{a as or}from"./embed-page-chunk-Z4LB7RXZ.js";import{a as ar}from"./embed-page-chunk-67D5GXKN.js";import{a as ir}from"./embed-page-chunk-ZXNETJAB.js";import{a as sr}from"./embed-page-chunk-QMFJWH6G.js";import{a as cr}from"./embed-page-chunk-22YCXG63.js";import{a as lr}from"./embed-page-chunk-MCE5PWXA.js";import{a as gr}from"./embed-page-chunk-VEZ3QJH5.js";import{a as ur}from"./embed-page-chunk-N2YP42DT.js";import{a as Qt}from"./embed-page-chunk-FPLGXSO7.js";import{a as Yt}from"./embed-page-chunk-2NHJMWUJ.js";import{a as Zt}from"./embed-page-chunk-TRVMFSTD.js";import{a as _t}from"./embed-page-chunk-LN25MSMN.js";import{a as er}from"./embed-page-chunk-IHSDCRQE.js";import{a as tr}from"./embed-page-chunk-XWI3C2AQ.js";import{a as rr}from"./embed-page-chunk-SPTINYQE.js";import{a as nr}from"./embed-page-chunk-YQYHINB3.js";import{a as Mt}from"./embed-page-chunk-RODKTYMZ.js";import{a as Wt}from"./embed-page-chunk-5OO6S3CB.js";import{a as Bt}from"./embed-page-chunk-YEGHCY2K.js";import{a as Gt}from"./embed-page-chunk-ORS3BLUZ.js";import{a as Ut}from"./embed-page-chunk-PZO43HPC.js";import{a as Vt}from"./embed-page-chunk-FCQ6L444.js";import{a as Kt}from"./embed-page-chunk-YTNZSCHE.js";import{a as Jt}from"./embed-page-chunk-LVFF3AZX.js";import{a as Et}from"./embed-page-chunk-6K7TJCIK.js";import{a as Rt}from"./embed-page-chunk-3MJTCHAS.js";import{a as zt}from"./embed-page-chunk-5TBTVULY.js";import{a as Dt}from"./embed-page-chunk-DQZOB6OC.js";import{a as Tt}from"./embed-page-chunk-CEI54LJA.js";import{a as Xt}from"./embed-page-chunk-2KKQ45B5.js";import{a as Ht}from"./embed-page-chunk-YUYV3OE6.js";import{a as Ft}from"./embed-page-chunk-ECP6XNAQ.js";import{a as St}from"./embed-page-chunk-JGUVBZCO.js";import{a as $t}from"./embed-page-chunk-Y2CX2WRC.js";import{a as Pt}from"./embed-page-chunk-OEKGXMBH.js";import{a as Ot}from"./embed-page-chunk-GJ3G5F24.js";import{a as It}from"./embed-page-chunk-YUJHQ6TB.js";import{a as At}from"./embed-page-chunk-VCDB6SEC.js";import{A as He,B as Ct,C as Fe,f as Ee,g as J,o as le,p as ge,q as $,r as ue,s as Re,u as ze,x as De,y as Te,z as Xe}from"./embed-page-chunk-F52TPGBP.js";import{Aa as Ie,Ea as Ae,H as Ce,I as Se,M as $e,a as q,wa as Pe,xa as Oe,y as je}from"./embed-page-chunk-WMHFEZXB.js";import{Ia as Ne,b as j,d as se,jb as we,n as ce,oa as G,p as ke}from"./embed-page-chunk-QWLZN3EX.js";import{a as S}from"./embed-page-chunk-MPQBYKDM.js";import{c as jt,e as N}from"./embed-page-chunk-45A47GH2.js";var et=jt((Ga,_e)=>{"use strict";var t=St();_e.exports=t;t.registerLanguage("1c",$t());t.registerLanguage("abnf",Pt());t.registerLanguage("accesslog",Ot());t.registerLanguage("actionscript",It());t.registerLanguage("ada",At());t.registerLanguage("angelscript",Et());t.registerLanguage("apache",Rt());t.registerLanguage("applescript",zt());t.registerLanguage("arcade",Dt());t.registerLanguage("arduino",Tt());t.registerLanguage("armasm",Xt());t.registerLanguage("xml",Ht());t.registerLanguage("asciidoc",Ft());t.registerLanguage("aspectj",Mt());t.registerLanguage("autohotkey",Wt());t.registerLanguage("autoit",Bt());t.registerLanguage("avrasm",Gt());t.registerLanguage("awk",Ut());t.registerLanguage("axapta",Vt());t.registerLanguage("bash",Kt());t.registerLanguage("basic",Jt());t.registerLanguage("bnf",Qt());t.registerLanguage("brainfuck",Yt());t.registerLanguage("c-like",Zt());t.registerLanguage("c",_t());t.registerLanguage("cal",er());t.registerLanguage("capnproto",tr());t.registerLanguage("ceylon",rr());t.registerLanguage("clean",nr());t.registerLanguage("clojure",or());t.registerLanguage("clojure-repl",ar());t.registerLanguage("cmake",ir());t.registerLanguage("coffeescript",sr());t.registerLanguage("coq",cr());t.registerLanguage("cos",lr());t.registerLanguage("cpp",gr());t.registerLanguage("crmsh",ur());t.registerLanguage("crystal",mr());t.registerLanguage("csharp",pr());t.registerLanguage("csp",dr());t.registerLanguage("css",fr());t.registerLanguage("d",hr());t.registerLanguage("markdown",yr());t.registerLanguage("dart",Lr());t.registerLanguage("delphi",br());t.registerLanguage("diff",qr());t.registerLanguage("django",vr());t.registerLanguage("dns",xr());t.registerLanguage("dockerfile",kr());t.registerLanguage("dos",Nr());t.registerLanguage("dsconfig",wr());t.registerLanguage("dts",jr());t.registerLanguage("dust",Cr());t.registerLanguage("ebnf",Sr());t.registerLanguage("elixir",$r());t.registerLanguage("elm",Pr());t.registerLanguage("ruby",Or());t.registerLanguage("erb",Ir());t.registerLanguage("erlang-repl",Ar());t.registerLanguage("erlang",Er());t.registerLanguage("excel",Rr());t.registerLanguage("fix",zr());t.registerLanguage("flix",Dr());t.registerLanguage("fortran",Tr());t.registerLanguage("fsharp",Xr());t.registerLanguage("gams",Hr());t.registerLanguage("gauss",Fr());t.registerLanguage("gcode",Mr());t.registerLanguage("gherkin",Wr());t.registerLanguage("glsl",Br());t.registerLanguage("gml",Gr());t.registerLanguage("go",Ur());t.registerLanguage("golo",Vr());t.registerLanguage("gradle",Kr());t.registerLanguage("groovy",Jr());t.registerLanguage("haml",Qr());t.registerLanguage("handlebars",Yr());t.registerLanguage("haskell",Zr());t.registerLanguage("haxe",_r());t.registerLanguage("hsp",en());t.registerLanguage("htmlbars",tn());t.registerLanguage("http",rn());t.registerLanguage("hy",nn());t.registerLanguage("inform7",on());t.registerLanguage("ini",an());t.registerLanguage("irpf90",sn());t.registerLanguage("isbl",cn());t.registerLanguage("java",ln());t.registerLanguage("javascript",gn());t.registerLanguage("jboss-cli",un());t.registerLanguage("json",mn());t.registerLanguage("julia",pn());t.registerLanguage("julia-repl",dn());t.registerLanguage("kotlin",fn());t.registerLanguage("lasso",hn());t.registerLanguage("latex",yn());t.registerLanguage("ldif",Ln());t.registerLanguage("leaf",bn());t.registerLanguage("less",qn());t.registerLanguage("lisp",vn());t.registerLanguage("livecodeserver",xn());t.registerLanguage("livescript",kn());t.registerLanguage("llvm",Nn());t.registerLanguage("lsl",wn());t.registerLanguage("lua",jn());t.registerLanguage("makefile",Cn());t.registerLanguage("mathematica",Sn());t.registerLanguage("matlab",$n());t.registerLanguage("maxima",Pn());t.registerLanguage("mel",On());t.registerLanguage("mercury",In());t.registerLanguage("mipsasm",An());t.registerLanguage("mizar",En());t.registerLanguage("perl",Rn());t.registerLanguage("mojolicious",zn());t.registerLanguage("monkey",Dn());t.registerLanguage("moonscript",Tn());t.registerLanguage("n1ql",Xn());t.registerLanguage("nginx",Hn());t.registerLanguage("nim",Fn());t.registerLanguage("nix",Mn());t.registerLanguage("node-repl",Wn());t.registerLanguage("nsis",Bn());t.registerLanguage("objectivec",Gn());t.registerLanguage("ocaml",Un());t.registerLanguage("openscad",Vn());t.registerLanguage("oxygene",Kn());t.registerLanguage("parser3",Jn());t.registerLanguage("pf",Qn());t.registerLanguage("pgsql",Yn());t.registerLanguage("php",Zn());t.registerLanguage("php-template",_n());t.registerLanguage("plaintext",eo());t.registerLanguage("pony",to());t.registerLanguage("powershell",ro());t.registerLanguage("processing",no());t.registerLanguage("profile",oo());t.registerLanguage("prolog",ao());t.registerLanguage("properties",io());t.registerLanguage("protobuf",so());t.registerLanguage("puppet",co());t.registerLanguage("purebasic",lo());t.registerLanguage("python",go());t.registerLanguage("python-repl",uo());t.registerLanguage("q",mo());t.registerLanguage("qml",po());t.registerLanguage("r",fo());t.registerLanguage("reasonml",ho());t.registerLanguage("rib",yo());t.registerLanguage("roboconf",Lo());t.registerLanguage("routeros",bo());t.registerLanguage("rsl",qo());t.registerLanguage("ruleslanguage",vo());t.registerLanguage("rust",xo());t.registerLanguage("sas",ko());t.registerLanguage("scala",No());t.registerLanguage("scheme",wo());t.registerLanguage("scilab",jo());t.registerLanguage("scss",Co());t.registerLanguage("shell",So());t.registerLanguage("smali",$o());t.registerLanguage("smalltalk",Po());t.registerLanguage("sml",Oo());t.registerLanguage("sqf",Io());t.registerLanguage("sql_more",Ao());t.registerLanguage("sql",Eo());t.registerLanguage("stan",Ro());t.registerLanguage("stata",zo());t.registerLanguage("step21",Do());t.registerLanguage("stylus",To());t.registerLanguage("subunit",Xo());t.registerLanguage("swift",Ho());t.registerLanguage("taggerscript",Fo());t.registerLanguage("yaml",Mo());t.registerLanguage("tap",Wo());t.registerLanguage("tcl",Bo());t.registerLanguage("thrift",Go());t.registerLanguage("tp",Uo());t.registerLanguage("twig",Vo());t.registerLanguage("typescript",Ko());t.registerLanguage("vala",Jo());t.registerLanguage("vbnet",Qo());t.registerLanguage("vbscript",Yo());t.registerLanguage("vbscript-html",Zo());t.registerLanguage("verilog",_o());t.registerLanguage("vhdl",ea());t.registerLanguage("vim",ta());t.registerLanguage("x86asm",ra());t.registerLanguage("xl",na());t.registerLanguage("xquery",oa());t.registerLanguage("zephir",aa())});var X=N(S());var Ge=N(S());function We(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function Q(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?We(Object(o),!0).forEach(function(n){se(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):We(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ia(e){var r=e.length;if(r===0||r===1)return e;if(r===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(r===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(r>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var Le={};function sa(e){if(e.length===0||e.length===1)return e;var r=e.join(".");return Le[r]||(Le[r]=ia(e)),Le[r]}function ca(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,n=e.filter(function(i){return i!=="token"}),a=sa(n);return a.reduce(function(i,s){return Q(Q({},i),o[s])},r)}function Be(e){return e.join(" ")}function la(e,r){var o=0;return function(n){return o+=1,n.map(function(a,i){return me({node:a,stylesheet:e,useInlineStyles:r,key:"code-segment-".concat(o,"-").concat(i)})})}}function me(e){var r=e.node,o=e.stylesheet,n=e.style,a=n===void 0?{}:n,i=e.useInlineStyles,s=e.key,c=r.properties,h=r.type,m=r.tagName,d=r.value;if(h==="text")return d;if(m){var p=la(o,i),g;if(!i)g=Q(Q({},c),{},{className:Be(c.className)});else{var l=Object.keys(o).reduce(function(f,b){return b.split(".").forEach(function(v){f.includes(v)||f.push(v)}),f},[]),u=c.className&&c.className.includes("token")?["token"]:[],L=c.className&&u.concat(c.className.filter(function(f){return!l.includes(f)}));g=Q(Q({},c),{},{className:Be(L)||void 0,style:ca(c.className,Object.assign({},c.style,a),o)})}var y=p(r.children);return Ge.default.createElement(m,j({key:s},g),y)}}var Ue=(function(e,r){var o=e.listLanguages();return o.indexOf(r)!==-1});var ga=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Ve(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function H(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?Ve(Object(o),!0).forEach(function(n){se(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ve(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}var ua=/\n/g;function ma(e){return e.match(ua)}function pa(e){var r=e.lines,o=e.startingLineNumber,n=e.style;return r.map(function(a,i){var s=i+o;return X.default.createElement("span",{key:"line-".concat(i),className:"react-syntax-highlighter-line-number",style:typeof n=="function"?n(s):n},"".concat(s,`
|
|
2
2
|
`))})}function da(e){var r=e.codeString,o=e.codeStyle,n=e.containerStyle,a=n===void 0?{float:"left",paddingRight:"10px"}:n,i=e.numberStyle,s=i===void 0?{}:i,c=e.startingLineNumber;return X.default.createElement("code",{style:Object.assign({},o,a)},pa({lines:r.replace(/\n$/,"").split(`
|
|
3
3
|
`),style:s,startingLineNumber:c}))}function fa(e){return"".concat(e.toString().length,".25em")}function Ke(e,r){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:r},children:[{type:"text",value:e}]}}function Je(e,r,o){var n={display:"inline-block",minWidth:fa(o),paddingRight:"1em",textAlign:"right",userSelect:"none"},a=typeof e=="function"?e(r):e,i=H(H({},n),a);return i}function pe(e){var r=e.children,o=e.lineNumber,n=e.lineNumberStyle,a=e.largestLineNumber,i=e.showInlineLineNumbers,s=e.lineProps,c=s===void 0?{}:s,h=e.className,m=h===void 0?[]:h,d=e.showLineNumbers,p=e.wrapLongLines,g=e.wrapLines,l=g===void 0?!1:g,u=l?H({},typeof c=="function"?c(o):c):{};if(u.className=u.className?[].concat(ce(u.className.trim().split(/\s+/)),ce(m)):m,o&&i){var L=Je(n,o,a);r.unshift(Ke(o,L))}return p&d&&(u.style=H({display:"flex"},u.style)),{type:"element",tagName:"span",properties:u,children:r}}function Qe(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];e.length===void 0&&(e=[e]);for(var n=0;n<e.length;n++){var a=e[n];if(a.type==="text")o.push(pe({children:[a],className:ce(new Set(r))}));else if(a.children){var i,s=r.concat(((i=a.properties)===null||i===void 0?void 0:i.className)||[]);Qe(a.children,s).forEach(function(c){return o.push(c)})}}return o}function ha(e,r,o,n,a,i,s,c,h){var m,d=Qe(e.value),p=[],g=-1,l=0;function u(k,x){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return pe({children:k,lineNumber:x,lineNumberStyle:c,largestLineNumber:s,showInlineLineNumbers:a,lineProps:o,className:w,showLineNumbers:n,wrapLongLines:h,wrapLines:r})}function L(k,x){if(n&&x&&a){var w=Je(c,x,s);k.unshift(Ke(x,w))}return k}function y(k,x){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return r||w.length>0?u(k,x,w):L(k,x)}for(var f=function(){var x=d[l],w=x.children[0].value,V=ma(w);if(V){var E=w.split(`
|
|
4
4
|
`);E.forEach(function(R,z){var D=n&&p.length+i,M={type:"text",value:"".concat(R,`
|