@rainbow-robotics/preview-host 1.3.0 → 1.3.2
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/assets/{AmrCapabilityControl.BwqoiUgt.js → AmrCapabilityControl.Chcof_MA.js} +1 -1
- package/dist/assets/{MapInfo.CxEGZc6L.js → MapInfo.BlAKvTxe.js} +1 -1
- package/dist/assets/{RbLocalizationProvider.BwaClGjC.js → RbLocalizationProvider.8QfUcjTn.js} +2 -2
- package/dist/assets/{__federation_expose_App.D1Df_5Wp.js → __federation_expose_App.BAbbsoQK.js} +264 -264
- package/dist/assets/__federation_fn_import.ByOnqCI5.js +2 -2
- package/dist/assets/{cssMode.ez2zI1i7.js → cssMode.DQwGnRga.js} +1 -1
- package/dist/assets/{freemarker2.Cc2kimcX.js → freemarker2.nQ8Dv9NE.js} +1 -1
- package/dist/assets/{handlebars.DKZk17oh.js → handlebars.4ljVOLBH.js} +1 -1
- package/dist/assets/{html.BeU7idID.js → html.wI8i2xe8.js} +1 -1
- package/dist/assets/{htmlMode.B9kIaaPU.js → htmlMode.CcrHwGdx.js} +1 -1
- package/dist/assets/{index.DGfkoXgx.js → index.BXkM7QZC.js} +1 -1
- package/dist/assets/{index.Ck82ZSzv.js → index.CZd6_2oG.js} +1 -1
- package/dist/assets/index.jViA39qW.js +1 -0
- package/dist/assets/{javascript.Dnwc5LPt.js → javascript.sybawtc7.js} +1 -1
- package/dist/assets/{jsonMode.DURlW9iC.js → jsonMode.D72YMDk_.js} +1 -1
- package/dist/assets/{liquid.BpAB7AyG.js → liquid.DBl3RsVx.js} +1 -1
- package/dist/assets/{lspLanguageFeatures.BM2PkwZb.js → lspLanguageFeatures.DndgAwww.js} +1 -1
- package/dist/assets/{mdx.4CHpdk9w.js → mdx.CAHSwZsT.js} +1 -1
- package/dist/assets/{python.CxvdNThf.js → python.Q769__q0.js} +1 -1
- package/dist/assets/{razor.CrlIUpGr.js → razor.D0s7Ui7s.js} +1 -1
- package/dist/assets/remoteEntry.js +1 -1
- package/dist/assets/{tsMode.BUpJEX3l.js → tsMode.6IYga6qb.js} +1 -1
- package/dist/assets/{typescript.DidZG_cH.js → typescript.Bjzf5Bnp.js} +1 -1
- package/dist/assets/{useJsonFileDownload.CBp5Rc7y.js → useJsonFileDownload.C6bSXY2i.js} +213 -207
- package/dist/assets/{xml.fLTsUoIJ.js → xml.DNUQoxsD.js} +1 -1
- package/dist/assets/{yaml.Dc-pIYtq.js → yaml.CBZ64O9X.js} +1 -1
- package/dist/index.html +5 -5
- package/package.json +1 -1
- package/dist/assets/index.CzE8Rp0i.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{importShared as f}from"./__federation_fn_import.ByOnqCI5.js";import{cx as g,H as s,j as t,X as v,U as p,x as b,c1 as c,bI as O,aW as E,a$ as F,V as B,bs as P,bF as _,_ as T,fG as w,gC as R}from"./RbLocalizationProvider.BwaClGjC.js";import{b as D}from"./index.Ck82ZSzv.js";const{useQuery:L}=await f("@tanstack/react-query"),M={skipErrorToast:!0},C=[{key:"dock",endpoint:"/{robot_model}/capability/dock",labelKey:"move.amr.rightPanel.capability.dock"},{key:"io",endpoint:"/{robot_model}/capability/Io",labelKey:"move.amr.rightPanel.capability.io"},{key:"camera",endpoint:"/{robot_model}/capability/camera",labelKey:"move.amr.rightPanel.capability.camera"},{key:"lidar2d",endpoint:"/{robot_model}/capability/lidar2d",labelKey:"move.amr.rightPanel.capability.lidar2d"},{key:"lidar3d",endpoint:"/{robot_model}/capability/lidar3d",labelKey:"move.amr.rightPanel.capability.lidar3d"},{key:"imu",endpoint:"/{robot_model}/capability/imu",labelKey:"move.amr.rightPanel.capability.imu"},{key:"safetyBumper",endpoint:"/{robot_model}/capability/safetyBumper",labelKey:"move.amr.rightPanel.capability.safetyBumper"},{key:"safetyInterlock",endpoint:"/{robot_model}/capability/safetyInterlock",labelKey:"move.amr.rightPanel.capability.safetyInterlock"},{key:"safetyObstacle",endpoint:"/{robot_model}/capability/safetyObstacle",labelKey:"move.amr.rightPanel.capability.safetyObstacle"},{key:"safetyOperationStop",endpoint:"/{robot_model}/capability/safetyOperationStop",labelKey:"move.amr.rightPanel.capability.safetyOperationStop"},{key:"safetySpeedControl",endpoint:"/{robot_model}/capability/safetySpeedControl",labelKey:"move.amr.rightPanel.capability.safetySpeedControl"},{key:"tabos",endpoint:"/{robot_model}/capability/tabos",labelKey:"move.amr.rightPanel.capability.tabos"}],K=e=>typeof e=="object"&&e!==null&&"enabled"in e&&e.enabled===!1,q=e=>{if(e instanceof Error)return e.message;if(typeof e=="object"&&e!==null&&"message"in e){const a=e.message;if(typeof a=="string")return a}},U=async({robot_model:e})=>{const a=await Promise.allSettled(C.map(l=>{const r=l.endpoint.replace("{robot_model}",e);return D.get(r,M)}));return C.map((l,r)=>{const n=a[r];return n.status==="fulfilled"?{...l,supported:!K(n.value),data:n.value}:{...l,supported:!1,data:null,errorMessage:q(n.reason)}})},$=({robot_model:e,enabled:a=!0})=>L({queryKey:["amrCapabilities",e],queryFn:()=>U({robot_model:e}),enabled:!!e&&a,staleTime:5*1e3,gcTime:60*1e3}),{useMutation:V}=await f("@tanstack/react-query"),j=()=>V({mutationFn:({robot_model:e,target:a,frequency:l})=>D.post(`/${e}/control/streamFrequency`,{target:a,frequency:Math.min(10,Math.max(0,l))})}),{useState:k}=await f("react"),G=4294967295,x=e=>{if(!(e==null||e===G))return`${e} ms`},Y={0:"NONE",1:"CHARGING",2:"COMPLETE",3:"FAIL",4:"CANCEL"},z={0:"DEFAULT",1:"TABOS"},H={0:"CABLE",1:"CONTACT",2:"INDUCTIVE"},Q={0:"RPLIDAR",1:"SICK",2:"LAKI",3:"LIVOX",4:"HOKUYO"},X={0:"ORBBEC"},i=({label:e,children:a})=>s(p,{className:"items-center justify-between gap-3",children:[t("span",{className:"typo-compact-xs-normal text-fg-subtle shrink-0",children:e}),t("span",{className:b("typo-compact-xs-normal text-right",a!=null?"text-fg-default":"text-fg-subtler"),children:a??"—"})]}),W={default:"gray",success:"green",warning:"orange",danger:"red"},y=({label:e,variant:a="default"})=>t(T,{type:"soft",color:W[a],children:e}),h=({label:e,value:a})=>t(i,{label:e,children:t(y,{label:a?"ON":"OFF",variant:a?"success":"default"})}),u=({label:e,bits:a})=>s(c,{className:"gap-1",children:[t("span",{className:"typo-compact-xs-normal text-fg-subtle",children:e}),a?.length?t(p,{className:"gap-1",children:a.map((l,r)=>t("div",{className:b("size-4 rounded-sm border text-center leading-4",l?"border-fg-success bg-fill-success-subtlest":"border-border-subtler bg-fill-disabled"),children:t("span",{className:b("typo-compact-2xs-normal",l?"text-fg-success":"text-fg-subtler"),children:r})},r))}):t("span",{className:"typo-compact-xs-normal text-fg-subtler",children:"—"})]}),N=({label:e,connection:a,rows:l,children:r})=>{const{t:n}=g();return s(c,{className:"bg-fill-disabled gap-1.5 rounded-md p-2.5",children:[s(p,{className:"items-center justify-between gap-3",children:[t("span",{className:"typo-compact-xs-semibold text-fg-default min-w-0 break-words",children:e}),t("span",{className:b("typo-compact-2xs-medium shrink-0",a?"text-fg-success":"text-fg-subtler"),children:n(a?"settings.amr.frs.status.connected":"settings.amr.frs.status.disconnected")})]}),l.map(({key:o,value:d})=>t(i,{label:o,children:d},o)),r]})},J=({label:e,value:a})=>t(T,{type:"soft",color:a?"green":"gray",children:s(p,{className:"items-center gap-1",children:[a?t(w,{className:"size-3"}):t(R,{className:"size-3"}),t("span",{children:e}),t("span",{className:"font-semibold",children:a?"On":"Off"})]})}),I=({flags:e})=>t(p,{className:"flex-wrap gap-1.5",children:e.map(({label:a,value:l})=>t(J,{label:a,value:l},a))}),Z=({streams:e})=>e.length?s(c,{className:"border-subtle mt-0.5 gap-1 border-t pt-1.5",children:[t("span",{className:"typo-compact-xs-normal text-fg-subtle",children:"Streams"}),t(p,{className:"flex-wrap gap-1",children:e.map(a=>s(p,{className:"border-subtle bg-alt-1 items-center gap-1 rounded px-1.5 py-1",children:[t("span",{className:"typo-compact-2xs-semibold text-fg-default",children:a.quality}),s("span",{className:"typo-compact-2xs-normal text-fg-subtle",children:[a.width,"x",a.height]}),s("span",{className:"typo-compact-2xs-normal text-fg-subtler",children:[a.fps,"fps"]})]},`${a.camId}-${a.quality}`))})]}):null,ee=({data:e})=>{const a=Y[e.chargeState??-1]??String(e.chargeState),l=e.chargeState===1?"success":e.chargeState===3?"danger":e.chargeState===4?"warning":"default";return s(c,{className:"gap-2",children:[s(c,{className:"bg-fill-disabled gap-2 rounded-md p-2.5",children:[t(h,{label:"Dock State",value:e.dockState}),t(i,{label:"Charge State",children:t(y,{label:a,variant:l})}),s(i,{label:"Battery",children:[e.batteryPercent?.toFixed(1)," %"]}),s(i,{label:"Charge Current",children:[e.chargeCurrent?.toFixed(2)," A"]}),s(i,{label:"Contact Voltage",children:[e.contactVoltage?.toFixed(2)," V"]}),t(i,{label:"Battery Type",children:t(y,{label:z[e.batteryType??0]??"—"})})]}),s(p,{className:"items-center gap-1.5 px-0.5",children:[t("span",{className:"typo-compact-xs-normal text-fg-subtle shrink-0",children:"Charge Type"}),e.chargeType?.length?t(p,{className:"flex-wrap gap-1.5",children:e.chargeType.map(r=>t(y,{label:H[r]??String(r),variant:"default"},r))}):t("span",{className:"typo-compact-xs-normal text-fg-subtler",children:"—"})]})]})},ae=({data:e})=>s(c,{className:"gap-3 p-0.5",children:[t(u,{label:"MCU0 DIO",bits:e.mcu0Dio}),t(u,{label:"MCU1 DIO",bits:e.mcu1Dio}),t(u,{label:"MCU0 DIN",bits:e.mcu0Din}),t(u,{label:"MCU1 DIN",bits:e.mcu1Din})]}),te=({data:e})=>s(c,{className:"gap-2",children:[t(I,{flags:[{label:"Obstacle",value:e.enabledObs},{label:"Depth",value:e.enabledDepth},{label:"Filter",value:e.enabledFilter}]}),e.info?.length?e.info.map((a,l)=>{const r=typeof a.type=="number"?X[a.type]??String(a.type):a.type??"—",n=a.camId??a.index??l,o=e.rtspInfo?.filter(d=>d.camId===n)??[];return t(N,{label:`Camera ${n}${a.serial?` · ${a.serial}`:""}`,connection:a.connection,rows:[{key:"Type",value:r},{key:"TF",value:a.tf?.length?a.tf.map(d=>d.toFixed(2)).join(", "):void 0},{key:"Data Age",value:x(a.dataAgeMs)}],children:t(Z,{streams:o})},l)}):t("span",{className:"typo-compact-xs-normal text-fg-subtler px-0.5",children:"—"})]}),A=({data:e,is3d:a=!1})=>s(c,{className:"gap-2",children:[t(I,{flags:[{label:"Obstacle",value:e.enabledObs}]}),e.info?.length?e.info.map((l,r)=>t(N,{label:`Lidar ${l.index??r}${l.serial?` · ${l.serial}`:""}`,connection:l.connection,rows:[{key:"Type",value:Q[l.type]??String(l.type??"—")},...a?[]:[{key:"IP",value:l.ip}],{key:"Safety",value:l.safety!==void 0?l.safety?"Safety":"Normal":void 0},{key:"TF",value:l.tf?.length?l.tf.map(n=>n.toFixed(2)).join(", "):void 0},{key:"Data Age",value:x(l.dataAgeMs)}]},r)):t("span",{className:"typo-compact-xs-normal text-fg-subtler px-0.5",children:"—"})]}),le=({data:e})=>t(c,{className:"gap-2",children:e.info?.length?e.info.map((a,l)=>t(N,{label:`IMU ${a.index??l}${a.serial?` · ${a.serial}`:""}`,connection:a.connection,rows:[{key:"Type",value:a.type===1?"IMU":"DEFAULT"},{key:"Data Age",value:x(a.dataAgeMs)}]},l)):t("span",{className:"typo-compact-xs-normal text-fg-subtler px-0.5",children:"—"})}),se=({data:e})=>{const a=[{label:"Bumper State",value:e.bumperState},{label:"Interlock State",value:e.interlockState},{label:"Obstacle Detect",value:e.obsDetect},{label:"Operation Stop",value:e.operationStopState},{label:"Speed Control",value:e.speedControlState}].filter(l=>l.value!==void 0);return s(c,{className:"bg-fill-disabled gap-2 rounded-md p-2.5",children:[t(h,{label:"Enabled",value:e.enabled}),a.map(l=>t(h,{label:l.label,value:l.value},l.label))]})},re=({data:e})=>s(c,{className:"bg-fill-disabled gap-2 rounded-md p-2.5",children:[s(i,{label:"Voltage",children:[e.tabosVoltage?.toFixed(2)," V"]}),s(i,{label:"Current",children:[e.tabosCurrent?.toFixed(2)," A"]}),s(i,{label:"SOC",children:[e.tabosSoc?.toFixed(1)," %"]}),s(i,{label:"SOH",children:[e.tabosSoh?.toFixed(1)," %"]}),s(i,{label:"Temp",children:[e.tabosTemp?.toFixed(1)," °C"]})]}),ne=({capKey:e,data:a})=>{switch(e){case"dock":return t(ee,{data:a});case"io":return t(ae,{data:a});case"camera":return t(te,{data:a});case"lidar2d":return t(A,{data:a});case"lidar3d":return t(A,{data:a,is3d:!0});case"imu":return t(le,{data:a});case"tabos":return t(re,{data:a});default:return t(se,{data:a})}},ce=[{label:"LiDAR 2D",value:"lidar2d"},{label:"LiDAR 3D",value:"lidar3d"},{label:"OBS Map",value:"obsMap"}],oe=({robotModel:e})=>{const[a,l]=k("lidar2d"),[r,n]=k("1"),{mutate:o,isPending:d}=j();return s(c,{className:"gap-2 pb-1",children:[s(p,{className:"items-center justify-between gap-2",children:[t("span",{className:"typo-compact-xs-normal text-fg-subtle",children:"Target"}),t(F,{size:"2xs",variant:"brand",disabled:d,onClick:()=>{const m=Math.min(10,Math.max(0,Number(r)));o({robot_model:e,target:a,frequency:m})},children:"Set"})]}),t(P,{size:"sm",value:a,handleChange:m=>l(m),children:ce.map(({label:m,value:S})=>t(B,{value:S,children:m},S))}),t(p,{className:"items-center gap-2",children:t(_,{className:"flex-1",size:"sm",value:r,step:1,digit:0,fixedDigit:0,min:"0",max:"10",handleChange:m=>n(m)})})]})},ie=({item:e})=>{const{t:a}=g();return e.supported?e.data?t("div",{className:"pb-1",children:t(ne,{capKey:e.key,data:e.data})}):null:t("p",{className:"typo-compact-xs-normal text-fg-disabled px-1 py-2",children:a("move.amr.rightPanel.capability.status.notSupported")})},pe=()=>{const{t:e}=g();return t(E,{className:"flex-1 [&_[data-slot='empty-view-section']]:h-full",type:"icon",icon:t(O,{size:20}),message:e("move.amr.rightPanel.capability.status.loading")})},ye=({className:e,robotModel:a})=>{const{t:l}=g(),{data:r,isLoading:n}=$({robot_model:a});return s(c,{className:b("AmrCapabilityControl h-full min-h-0",e),children:[n&&t(pe,{}),(r??[]).map(o=>t("div",{className:"border-subtler border-b px-1 py-1",children:t(v,{disabled:!o.supported,title:t(p,{className:"w-full items-center justify-between gap-2",children:t("span",{className:b("typo-compact-sm2-semibold min-w-0 truncate",o.supported?"text-fg-default":"text-fg-disabled"),children:l(o.labelKey)})}),children:t(ie,{item:o})})},o.key)),t("div",{className:"border-subtler border-b px-1 py-1",children:t(v,{title:t("span",{className:"typo-compact-sm2-semibold text-fg-default",children:l("move.amr.rightPanel.capability.streamFrequency")}),children:t(oe,{robotModel:a})})})]})};export{ye as default};
|
|
1
|
+
import{importShared as f}from"./__federation_fn_import.ByOnqCI5.js";import{cx as g,H as s,j as t,X as v,U as p,x as b,c1 as c,bI as O,aW as E,a$ as F,V as B,bs as P,bF as _,_ as T,fG as w,gC as R}from"./RbLocalizationProvider.8QfUcjTn.js";import{b as D}from"./index.CZd6_2oG.js";const{useQuery:L}=await f("@tanstack/react-query"),M={skipErrorToast:!0},C=[{key:"dock",endpoint:"/{robot_model}/capability/dock",labelKey:"move.amr.rightPanel.capability.dock"},{key:"io",endpoint:"/{robot_model}/capability/Io",labelKey:"move.amr.rightPanel.capability.io"},{key:"camera",endpoint:"/{robot_model}/capability/camera",labelKey:"move.amr.rightPanel.capability.camera"},{key:"lidar2d",endpoint:"/{robot_model}/capability/lidar2d",labelKey:"move.amr.rightPanel.capability.lidar2d"},{key:"lidar3d",endpoint:"/{robot_model}/capability/lidar3d",labelKey:"move.amr.rightPanel.capability.lidar3d"},{key:"imu",endpoint:"/{robot_model}/capability/imu",labelKey:"move.amr.rightPanel.capability.imu"},{key:"safetyBumper",endpoint:"/{robot_model}/capability/safetyBumper",labelKey:"move.amr.rightPanel.capability.safetyBumper"},{key:"safetyInterlock",endpoint:"/{robot_model}/capability/safetyInterlock",labelKey:"move.amr.rightPanel.capability.safetyInterlock"},{key:"safetyObstacle",endpoint:"/{robot_model}/capability/safetyObstacle",labelKey:"move.amr.rightPanel.capability.safetyObstacle"},{key:"safetyOperationStop",endpoint:"/{robot_model}/capability/safetyOperationStop",labelKey:"move.amr.rightPanel.capability.safetyOperationStop"},{key:"safetySpeedControl",endpoint:"/{robot_model}/capability/safetySpeedControl",labelKey:"move.amr.rightPanel.capability.safetySpeedControl"},{key:"tabos",endpoint:"/{robot_model}/capability/tabos",labelKey:"move.amr.rightPanel.capability.tabos"}],K=e=>typeof e=="object"&&e!==null&&"enabled"in e&&e.enabled===!1,q=e=>{if(e instanceof Error)return e.message;if(typeof e=="object"&&e!==null&&"message"in e){const a=e.message;if(typeof a=="string")return a}},U=async({robot_model:e})=>{const a=await Promise.allSettled(C.map(l=>{const r=l.endpoint.replace("{robot_model}",e);return D.get(r,M)}));return C.map((l,r)=>{const n=a[r];return n.status==="fulfilled"?{...l,supported:!K(n.value),data:n.value}:{...l,supported:!1,data:null,errorMessage:q(n.reason)}})},$=({robot_model:e,enabled:a=!0})=>L({queryKey:["amrCapabilities",e],queryFn:()=>U({robot_model:e}),enabled:!!e&&a,staleTime:5*1e3,gcTime:60*1e3}),{useMutation:V}=await f("@tanstack/react-query"),j=()=>V({mutationFn:({robot_model:e,target:a,frequency:l})=>D.post(`/${e}/control/streamFrequency`,{target:a,frequency:Math.min(10,Math.max(0,l))})}),{useState:k}=await f("react"),G=4294967295,x=e=>{if(!(e==null||e===G))return`${e} ms`},Y={0:"NONE",1:"CHARGING",2:"COMPLETE",3:"FAIL",4:"CANCEL"},z={0:"DEFAULT",1:"TABOS"},H={0:"CABLE",1:"CONTACT",2:"INDUCTIVE"},Q={0:"RPLIDAR",1:"SICK",2:"LAKI",3:"LIVOX",4:"HOKUYO"},X={0:"ORBBEC"},i=({label:e,children:a})=>s(p,{className:"items-center justify-between gap-3",children:[t("span",{className:"typo-compact-xs-normal text-fg-subtle shrink-0",children:e}),t("span",{className:b("typo-compact-xs-normal text-right",a!=null?"text-fg-default":"text-fg-subtler"),children:a??"—"})]}),W={default:"gray",success:"green",warning:"orange",danger:"red"},y=({label:e,variant:a="default"})=>t(T,{type:"soft",color:W[a],children:e}),h=({label:e,value:a})=>t(i,{label:e,children:t(y,{label:a?"ON":"OFF",variant:a?"success":"default"})}),u=({label:e,bits:a})=>s(c,{className:"gap-1",children:[t("span",{className:"typo-compact-xs-normal text-fg-subtle",children:e}),a?.length?t(p,{className:"gap-1",children:a.map((l,r)=>t("div",{className:b("size-4 rounded-sm border text-center leading-4",l?"border-fg-success bg-fill-success-subtlest":"border-border-subtler bg-fill-disabled"),children:t("span",{className:b("typo-compact-2xs-normal",l?"text-fg-success":"text-fg-subtler"),children:r})},r))}):t("span",{className:"typo-compact-xs-normal text-fg-subtler",children:"—"})]}),N=({label:e,connection:a,rows:l,children:r})=>{const{t:n}=g();return s(c,{className:"bg-fill-disabled gap-1.5 rounded-md p-2.5",children:[s(p,{className:"items-center justify-between gap-3",children:[t("span",{className:"typo-compact-xs-semibold text-fg-default min-w-0 break-words",children:e}),t("span",{className:b("typo-compact-2xs-medium shrink-0",a?"text-fg-success":"text-fg-subtler"),children:n(a?"settings.amr.frs.status.connected":"settings.amr.frs.status.disconnected")})]}),l.map(({key:o,value:d})=>t(i,{label:o,children:d},o)),r]})},J=({label:e,value:a})=>t(T,{type:"soft",color:a?"green":"gray",children:s(p,{className:"items-center gap-1",children:[a?t(w,{className:"size-3"}):t(R,{className:"size-3"}),t("span",{children:e}),t("span",{className:"font-semibold",children:a?"On":"Off"})]})}),I=({flags:e})=>t(p,{className:"flex-wrap gap-1.5",children:e.map(({label:a,value:l})=>t(J,{label:a,value:l},a))}),Z=({streams:e})=>e.length?s(c,{className:"border-subtle mt-0.5 gap-1 border-t pt-1.5",children:[t("span",{className:"typo-compact-xs-normal text-fg-subtle",children:"Streams"}),t(p,{className:"flex-wrap gap-1",children:e.map(a=>s(p,{className:"border-subtle bg-alt-1 items-center gap-1 rounded px-1.5 py-1",children:[t("span",{className:"typo-compact-2xs-semibold text-fg-default",children:a.quality}),s("span",{className:"typo-compact-2xs-normal text-fg-subtle",children:[a.width,"x",a.height]}),s("span",{className:"typo-compact-2xs-normal text-fg-subtler",children:[a.fps,"fps"]})]},`${a.camId}-${a.quality}`))})]}):null,ee=({data:e})=>{const a=Y[e.chargeState??-1]??String(e.chargeState),l=e.chargeState===1?"success":e.chargeState===3?"danger":e.chargeState===4?"warning":"default";return s(c,{className:"gap-2",children:[s(c,{className:"bg-fill-disabled gap-2 rounded-md p-2.5",children:[t(h,{label:"Dock State",value:e.dockState}),t(i,{label:"Charge State",children:t(y,{label:a,variant:l})}),s(i,{label:"Battery",children:[e.batteryPercent?.toFixed(1)," %"]}),s(i,{label:"Charge Current",children:[e.chargeCurrent?.toFixed(2)," A"]}),s(i,{label:"Contact Voltage",children:[e.contactVoltage?.toFixed(2)," V"]}),t(i,{label:"Battery Type",children:t(y,{label:z[e.batteryType??0]??"—"})})]}),s(p,{className:"items-center gap-1.5 px-0.5",children:[t("span",{className:"typo-compact-xs-normal text-fg-subtle shrink-0",children:"Charge Type"}),e.chargeType?.length?t(p,{className:"flex-wrap gap-1.5",children:e.chargeType.map(r=>t(y,{label:H[r]??String(r),variant:"default"},r))}):t("span",{className:"typo-compact-xs-normal text-fg-subtler",children:"—"})]})]})},ae=({data:e})=>s(c,{className:"gap-3 p-0.5",children:[t(u,{label:"MCU0 DIO",bits:e.mcu0Dio}),t(u,{label:"MCU1 DIO",bits:e.mcu1Dio}),t(u,{label:"MCU0 DIN",bits:e.mcu0Din}),t(u,{label:"MCU1 DIN",bits:e.mcu1Din})]}),te=({data:e})=>s(c,{className:"gap-2",children:[t(I,{flags:[{label:"Obstacle",value:e.enabledObs},{label:"Depth",value:e.enabledDepth},{label:"Filter",value:e.enabledFilter}]}),e.info?.length?e.info.map((a,l)=>{const r=typeof a.type=="number"?X[a.type]??String(a.type):a.type??"—",n=a.camId??a.index??l,o=e.rtspInfo?.filter(d=>d.camId===n)??[];return t(N,{label:`Camera ${n}${a.serial?` · ${a.serial}`:""}`,connection:a.connection,rows:[{key:"Type",value:r},{key:"TF",value:a.tf?.length?a.tf.map(d=>d.toFixed(2)).join(", "):void 0},{key:"Data Age",value:x(a.dataAgeMs)}],children:t(Z,{streams:o})},l)}):t("span",{className:"typo-compact-xs-normal text-fg-subtler px-0.5",children:"—"})]}),A=({data:e,is3d:a=!1})=>s(c,{className:"gap-2",children:[t(I,{flags:[{label:"Obstacle",value:e.enabledObs}]}),e.info?.length?e.info.map((l,r)=>t(N,{label:`Lidar ${l.index??r}${l.serial?` · ${l.serial}`:""}`,connection:l.connection,rows:[{key:"Type",value:Q[l.type]??String(l.type??"—")},...a?[]:[{key:"IP",value:l.ip}],{key:"Safety",value:l.safety!==void 0?l.safety?"Safety":"Normal":void 0},{key:"TF",value:l.tf?.length?l.tf.map(n=>n.toFixed(2)).join(", "):void 0},{key:"Data Age",value:x(l.dataAgeMs)}]},r)):t("span",{className:"typo-compact-xs-normal text-fg-subtler px-0.5",children:"—"})]}),le=({data:e})=>t(c,{className:"gap-2",children:e.info?.length?e.info.map((a,l)=>t(N,{label:`IMU ${a.index??l}${a.serial?` · ${a.serial}`:""}`,connection:a.connection,rows:[{key:"Type",value:a.type===1?"IMU":"DEFAULT"},{key:"Data Age",value:x(a.dataAgeMs)}]},l)):t("span",{className:"typo-compact-xs-normal text-fg-subtler px-0.5",children:"—"})}),se=({data:e})=>{const a=[{label:"Bumper State",value:e.bumperState},{label:"Interlock State",value:e.interlockState},{label:"Obstacle Detect",value:e.obsDetect},{label:"Operation Stop",value:e.operationStopState},{label:"Speed Control",value:e.speedControlState}].filter(l=>l.value!==void 0);return s(c,{className:"bg-fill-disabled gap-2 rounded-md p-2.5",children:[t(h,{label:"Enabled",value:e.enabled}),a.map(l=>t(h,{label:l.label,value:l.value},l.label))]})},re=({data:e})=>s(c,{className:"bg-fill-disabled gap-2 rounded-md p-2.5",children:[s(i,{label:"Voltage",children:[e.tabosVoltage?.toFixed(2)," V"]}),s(i,{label:"Current",children:[e.tabosCurrent?.toFixed(2)," A"]}),s(i,{label:"SOC",children:[e.tabosSoc?.toFixed(1)," %"]}),s(i,{label:"SOH",children:[e.tabosSoh?.toFixed(1)," %"]}),s(i,{label:"Temp",children:[e.tabosTemp?.toFixed(1)," °C"]})]}),ne=({capKey:e,data:a})=>{switch(e){case"dock":return t(ee,{data:a});case"io":return t(ae,{data:a});case"camera":return t(te,{data:a});case"lidar2d":return t(A,{data:a});case"lidar3d":return t(A,{data:a,is3d:!0});case"imu":return t(le,{data:a});case"tabos":return t(re,{data:a});default:return t(se,{data:a})}},ce=[{label:"LiDAR 2D",value:"lidar2d"},{label:"LiDAR 3D",value:"lidar3d"},{label:"OBS Map",value:"obsMap"}],oe=({robotModel:e})=>{const[a,l]=k("lidar2d"),[r,n]=k("1"),{mutate:o,isPending:d}=j();return s(c,{className:"gap-2 pb-1",children:[s(p,{className:"items-center justify-between gap-2",children:[t("span",{className:"typo-compact-xs-normal text-fg-subtle",children:"Target"}),t(F,{size:"2xs",variant:"brand",disabled:d,onClick:()=>{const m=Math.min(10,Math.max(0,Number(r)));o({robot_model:e,target:a,frequency:m})},children:"Set"})]}),t(P,{size:"sm",value:a,handleChange:m=>l(m),children:ce.map(({label:m,value:S})=>t(B,{value:S,children:m},S))}),t(p,{className:"items-center gap-2",children:t(_,{className:"flex-1",size:"sm",value:r,step:1,digit:0,fixedDigit:0,min:"0",max:"10",handleChange:m=>n(m)})})]})},ie=({item:e})=>{const{t:a}=g();return e.supported?e.data?t("div",{className:"pb-1",children:t(ne,{capKey:e.key,data:e.data})}):null:t("p",{className:"typo-compact-xs-normal text-fg-disabled px-1 py-2",children:a("move.amr.rightPanel.capability.status.notSupported")})},pe=()=>{const{t:e}=g();return t(E,{className:"flex-1 [&_[data-slot='empty-view-section']]:h-full",type:"icon",icon:t(O,{size:20}),message:e("move.amr.rightPanel.capability.status.loading")})},ye=({className:e,robotModel:a})=>{const{t:l}=g(),{data:r,isLoading:n}=$({robot_model:a});return s(c,{className:b("AmrCapabilityControl h-full min-h-0",e),children:[n&&t(pe,{}),(r??[]).map(o=>t("div",{className:"border-subtler border-b px-1 py-1",children:t(v,{disabled:!o.supported,title:t(p,{className:"w-full items-center justify-between gap-2",children:t("span",{className:b("typo-compact-sm2-semibold min-w-0 truncate",o.supported?"text-fg-default":"text-fg-disabled"),children:l(o.labelKey)})}),children:t(ie,{item:o})})},o.key)),t("div",{className:"border-subtler border-b px-1 py-1",children:t(v,{title:t("span",{className:"typo-compact-sm2-semibold text-fg-default",children:l("move.amr.rightPanel.capability.streamFrequency")}),children:t(oe,{robotModel:a})})})]})};export{ye as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as h,H as a,j as e,cB as _,cx as A,c1 as c,g8 as O,g9 as I,U as r,ga as q,gb as F,a$ as u,
|
|
1
|
+
import{c as h,H as a,j as e,cB as _,cx as A,c1 as c,g8 as O,g9 as I,U as r,ga as q,gb as F,a$ as u,eN as G,gc as H,gd as U,ge as V,gf as Y}from"./RbLocalizationProvider.8QfUcjTn.js";import{am as k,aE as X}from"./useJsonFileDownload.C6bSXY2i.js";/**
|
|
2
2
|
* @license lucide-react v0.486.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
package/dist/assets/{RbLocalizationProvider.BwaClGjC.js → RbLocalizationProvider.8QfUcjTn.js}
RENAMED
|
@@ -176,7 +176,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
176
176
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[F4]=this[F4]={accessors:{}}).accessors,o=this.prototype;function a(i){const s=ld(i);r[s]||(dee(o,i),r[s]=!0)}return Pe.isArray(e)?e.forEach(a):a(e),this}};uo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Pe.reduceDescriptors(uo.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});Pe.freezeMethods(uo);function Ig(t,e){const n=this||Of,r=e||n,o=uo.from(r.headers);let a=r.data;return Pe.forEach(t,function(s){a=s.call(n,a,o.normalize(),e?e.status:void 0)}),o.normalize(),a}function GE(t){return!!(t&&t.__CANCEL__)}let Lf=class extends Pt{constructor(e,n,r){super(e??"canceled",Pt.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function KE(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new Pt("Request failed with status code "+n.status,[Pt.ERR_BAD_REQUEST,Pt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function fee(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function pee(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,a=0,i;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),d=r[a];i||(i=u),n[o]=l,r[o]=u;let f=a,m=0;for(;f!==o;)m+=n[f++],f=f%t;if(o=(o+1)%t,o===a&&(a=(a+1)%t),u-i<e)return;const v=d&&u-d;return v?Math.round(m*1e3/v):void 0}}function hee(t,e){let n=0,r=1e3/e,o,a;const i=(u,d=Date.now())=>{n=d,o=null,a&&(clearTimeout(a),a=null),t(...u)};return[(...u)=>{const d=Date.now(),f=d-n;f>=r?i(u,d):(o=u,a||(a=setTimeout(()=>{a=null,i(o)},r-f)))},()=>o&&i(o)]}const N0=(t,e,n=3)=>{let r=0;const o=pee(50,250);return hee(a=>{const i=a.loaded,s=a.lengthComputable?a.total:void 0,l=i-r,u=o(l),d=i<=s;r=i;const f={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&d?(s-i)/u:void 0,event:a,lengthComputable:s!=null,[e?"download":"upload"]:!0};t(f)},n)},V4=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},j4=t=>(...e)=>Pe.asap(()=>t(...e)),mee=Er.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Er.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Er.origin),Er.navigator&&/(msie|trident)/i.test(Er.navigator.userAgent)):()=>!0,gee=Er.hasStandardBrowserEnv?{write(t,e,n,r,o,a,i){if(typeof document>"u")return;const s=[`${t}=${encodeURIComponent(e)}`];Pe.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),Pe.isString(r)&&s.push(`path=${r}`),Pe.isString(o)&&s.push(`domain=${o}`),a===!0&&s.push("secure"),Pe.isString(i)&&s.push(`SameSite=${i}`),document.cookie=s.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function vee(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function wee(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function XE(t,e,n){let r=!vee(e);return t&&(r||n==!1)?wee(t,e):e}const H4=t=>t instanceof uo?{...t}:t;function Hl(t,e){e=e||{};const n={};function r(u,d,f,m){return Pe.isPlainObject(u)&&Pe.isPlainObject(d)?Pe.merge.call({caseless:m},u,d):Pe.isPlainObject(d)?Pe.merge({},d):Pe.isArray(d)?d.slice():d}function o(u,d,f,m){if(Pe.isUndefined(d)){if(!Pe.isUndefined(u))return r(void 0,u,f,m)}else return r(u,d,f,m)}function a(u,d){if(!Pe.isUndefined(d))return r(void 0,d)}function i(u,d){if(Pe.isUndefined(d)){if(!Pe.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function s(u,d,f){if(f in e)return r(u,d);if(f in t)return r(void 0,u)}const l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(u,d,f)=>o(H4(u),H4(d),f,!0)};return Pe.forEach(Object.keys({...t,...e}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const f=Pe.hasOwnProp(l,d)?l[d]:o,m=f(t[d],e[d],d);Pe.isUndefined(m)&&f!==s||(n[d]=m)}),n}const ZE=t=>{const e=Hl({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:s}=e;if(e.headers=i=uo.from(i),e.url=UE(XE(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),Pe.isFormData(n)){if(Er.hasStandardBrowserEnv||Er.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(Pe.isFunction(n.getHeaders)){const l=n.getHeaders(),u=["content-type","content-length"];Object.entries(l).forEach(([d,f])=>{u.includes(d.toLowerCase())&&i.set(d,f)})}}if(Er.hasStandardBrowserEnv&&(r&&Pe.isFunction(r)&&(r=r(e)),r||r!==!1&&mee(e.url))){const l=o&&a&&gee.read(a);l&&i.set(o,l)}return e},bee=typeof XMLHttpRequest<"u",yee=bee&&function(t){return new Promise(function(n,r){const o=ZE(t);let a=o.data;const i=uo.from(o.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=o,d,f,m,v,g;function w(){v&&v(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function _(){if(!y)return;const x=uo.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),R={data:!s||s==="text"||s==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:x,config:t,request:y};KE(function(O){n(O),w()},function(O){r(O),w()},R),y=null}"onloadend"in y?y.onloadend=_:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(_)},y.onabort=function(){y&&(r(new Pt("Request aborted",Pt.ECONNABORTED,t,y)),y=null)},y.onerror=function(C){const R=C&&C.message?C.message:"Network Error",P=new Pt(R,Pt.ERR_NETWORK,t,y);P.event=C||null,r(P),y=null},y.ontimeout=function(){let C=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const R=o.transitional||c3;o.timeoutErrorMessage&&(C=o.timeoutErrorMessage),r(new Pt(C,R.clarifyTimeoutError?Pt.ETIMEDOUT:Pt.ECONNABORTED,t,y)),y=null},a===void 0&&i.setContentType(null),"setRequestHeader"in y&&Pe.forEach(i.toJSON(),function(C,R){y.setRequestHeader(R,C)}),Pe.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),s&&s!=="json"&&(y.responseType=o.responseType),u&&([m,g]=N0(u,!0),y.addEventListener("progress",m)),l&&y.upload&&([f,v]=N0(l),y.upload.addEventListener("progress",f),y.upload.addEventListener("loadend",v)),(o.cancelToken||o.signal)&&(d=x=>{y&&(r(!x||x.type?new Lf(null,t,y):x),y.abort(),y=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const S=fee(o.url);if(S&&Er.protocols.indexOf(S)===-1){r(new Pt("Unsupported protocol "+S+":",Pt.ERR_BAD_REQUEST,t));return}y.send(a||null)})},_ee=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,o;const a=function(u){if(!o){o=!0,s();const d=u instanceof Error?u:this.reason;r.abort(d instanceof Pt?d:new Lf(d instanceof Error?d.message:d))}};let i=e&&setTimeout(()=>{i=null,a(new Pt(`timeout of ${e}ms exceeded`,Pt.ETIMEDOUT))},e);const s=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),t=null)};t.forEach(u=>u.addEventListener("abort",a));const{signal:l}=r;return l.unsubscribe=()=>Pe.asap(s),l}},xee=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,o;for(;r<n;)o=r+e,yield t.slice(r,o),r=o},See=async function*(t,e){for await(const n of Cee(t))yield*xee(n,e)},Cee=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},W4=(t,e,n,r)=>{const o=See(t,e);let a=0,i,s=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:d}=await o.next();if(u){s(),l.close();return}let f=d.byteLength;if(n){let m=a+=f;n(m)}l.enqueue(new Uint8Array(d))}catch(u){throw s(u),u}},cancel(l){return s(l),o.return()}},{highWaterMark:2})},q4=64*1024,{isFunction:Up}=Pe,Eee=(({Request:t,Response:e})=>({Request:t,Response:e}))(Pe.global),{ReadableStream:U4,TextEncoder:Y4}=Pe.global,G4=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Mee=t=>{t=Pe.merge.call({skipUndefined:!0},Eee,t);const{fetch:e,Request:n,Response:r}=t,o=e?Up(e):typeof fetch=="function",a=Up(n),i=Up(r);if(!o)return!1;const s=o&&Up(U4),l=o&&(typeof Y4=="function"?(g=>w=>g.encode(w))(new Y4):async g=>new Uint8Array(await new n(g).arrayBuffer())),u=a&&s&&G4(()=>{let g=!1;const w=new U4,y=new n(Er.origin,{body:w,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return w.cancel(),g&&!y}),d=i&&s&&G4(()=>Pe.isReadableStream(new r("").body)),f={stream:d&&(g=>g.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!f[g]&&(f[g]=(w,y)=>{let _=w&&w[g];if(_)return _.call(w);throw new Pt(`Response type '${g}' is not supported`,Pt.ERR_NOT_SUPPORT,y)})});const m=async g=>{if(g==null)return 0;if(Pe.isBlob(g))return g.size;if(Pe.isSpecCompliantForm(g))return(await new n(Er.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(Pe.isArrayBufferView(g)||Pe.isArrayBuffer(g))return g.byteLength;if(Pe.isURLSearchParams(g)&&(g=g+""),Pe.isString(g))return(await l(g)).byteLength},v=async(g,w)=>{const y=Pe.toFiniteNumber(g.getContentLength());return y??m(w)};return async g=>{let{url:w,method:y,data:_,signal:S,cancelToken:x,timeout:C,onDownloadProgress:R,onUploadProgress:P,responseType:O,headers:L,withCredentials:A="same-origin",fetchOptions:E}=ZE(g),$=e||fetch;O=O?(O+"").toLowerCase():"text";let B=_ee([S,x&&x.toAbortSignal()],C),F=null;const N=B&&B.unsubscribe&&(()=>{B.unsubscribe()});let V;try{if(P&&u&&y!=="get"&&y!=="head"&&(V=await v(L,_))!==0){let oe=new n(w,{method:"POST",body:_,duplex:"half"}),J;if(Pe.isFormData(_)&&(J=oe.headers.get("content-type"))&&L.setContentType(J),oe.body){const[re,le]=V4(V,N0(j4(P)));_=W4(oe.body,q4,re,le)}}Pe.isString(A)||(A=A?"include":"omit");const z=a&&"credentials"in n.prototype,I={...E,signal:B,method:y.toUpperCase(),headers:L.normalize().toJSON(),body:_,duplex:"half",credentials:z?A:void 0};F=a&&new n(w,I);let D=await(a?$(F,E):$(w,I));const U=d&&(O==="stream"||O==="response");if(d&&(R||U&&N)){const oe={};["status","statusText","headers"].forEach(ee=>{oe[ee]=D[ee]});const J=Pe.toFiniteNumber(D.headers.get("content-length")),[re,le]=R&&V4(J,N0(j4(R),!0))||[];D=new r(W4(D.body,q4,re,()=>{le&&le(),N&&N()}),oe)}O=O||"text";let Y=await f[Pe.findKey(f,O)||"text"](D,g);return!U&&N&&N(),await new Promise((oe,J)=>{KE(oe,J,{data:Y,headers:uo.from(D.headers),status:D.status,statusText:D.statusText,config:g,request:F})})}catch(z){throw N&&N(),z&&z.name==="TypeError"&&/Load failed|fetch/i.test(z.message)?Object.assign(new Pt("Network Error",Pt.ERR_NETWORK,g,F,z&&z.response),{cause:z.cause||z}):Pt.from(z,z&&z.code,g,F,z&&z.response)}}},kee=new Map,QE=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:o}=e,a=[r,o,n];let i=a.length,s=i,l,u,d=kee;for(;s--;)l=a[s],u=d.get(l),u===void 0&&d.set(l,u=s?new Map:Mee(e)),d=u;return u};QE();const d3={http:WJ,xhr:yee,fetch:{get:QE}};Pe.forEach(d3,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const K4=t=>`- ${t}`,Ree=t=>Pe.isFunction(t)||t===null||t===!1;function Tee(t,e){t=Pe.isArray(t)?t:[t];const{length:n}=t;let r,o;const a={};for(let i=0;i<n;i++){r=t[i];let s;if(o=r,!Ree(r)&&(o=d3[(s=String(r)).toLowerCase()],o===void 0))throw new Pt(`Unknown adapter '${s}'`);if(o&&(Pe.isFunction(o)||(o=o.get(e))))break;a[s||"#"+i]=o}if(!o){const i=Object.entries(a).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=n?i.length>1?`since :
|
|
177
177
|
`+i.map(K4).join(`
|
|
178
178
|
`):" "+K4(i[0]):"as no adapter specified";throw new Pt("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return o}const JE={getAdapter:Tee,adapters:d3};function Og(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Lf(null,t)}function X4(t){return Og(t),t.headers=uo.from(t.headers),t.data=Ig.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),JE.getAdapter(t.adapter||Of.adapter,t)(t).then(function(r){return Og(t),r.data=Ig.call(t,t.transformResponse,r),r.headers=uo.from(r.headers),r},function(r){return GE(r)||(Og(t),r&&r.response&&(r.response.data=Ig.call(t,t.transformResponse,r.response),r.response.headers=uo.from(r.response.headers))),Promise.reject(r)})}const eM="1.14.0",Rh={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Rh[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Z4={};Rh.transitional=function(e,n,r){function o(a,i){return"[Axios v"+eM+"] Transitional option '"+a+"'"+i+(r?". "+r:"")}return(a,i,s)=>{if(e===!1)throw new Pt(o(i," has been removed"+(n?" in "+n:"")),Pt.ERR_DEPRECATED);return n&&!Z4[i]&&(Z4[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(a,i,s):!0}};Rh.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Nee(t,e,n){if(typeof t!="object")throw new Pt("options must be an object",Pt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const a=r[o],i=e[a];if(i){const s=t[a],l=s===void 0||i(s,a,t);if(l!==!0)throw new Pt("option "+a+" must be "+l,Pt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Pt("Unknown option "+a,Pt.ERR_BAD_OPTION)}}const K1={assertOptions:Nee,validators:Rh},Vo=K1.validators;let Ol=class{constructor(e){this.defaults=e||{},this.interceptors={request:new z4,response:new z4}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
179
|
-
`+a):r.stack=a}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Hl(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&K1.assertOptions(r,{silentJSONParsing:Vo.transitional(Vo.boolean),forcedJSONParsing:Vo.transitional(Vo.boolean),clarifyTimeoutError:Vo.transitional(Vo.boolean),legacyInterceptorReqResOrdering:Vo.transitional(Vo.boolean)},!1),o!=null&&(Pe.isFunction(o)?n.paramsSerializer={serialize:o}:K1.assertOptions(o,{encode:Vo.function,serialize:Vo.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),K1.assertOptions(n,{baseUrl:Vo.spelling("baseURL"),withXsrfToken:Vo.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=a&&Pe.merge(a.common,a[n.method]);a&&Pe.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),n.headers=uo.concat(i,a);const s=[];let l=!0;this.interceptors.request.forEach(function(w){if(typeof w.runWhen=="function"&&w.runWhen(n)===!1)return;l=l&&w.synchronous;const y=n.transitional||c3;y&&y.legacyInterceptorReqResOrdering?s.unshift(w.fulfilled,w.rejected):s.push(w.fulfilled,w.rejected)});const u=[];this.interceptors.response.forEach(function(w){u.push(w.fulfilled,w.rejected)});let d,f=0,m;if(!l){const g=[X4.bind(this),void 0];for(g.unshift(...s),g.push(...u),m=g.length,d=Promise.resolve(n);f<m;)d=d.then(g[f++],g[f++]);return d}m=s.length;let v=n;for(;f<m;){const g=s[f++],w=s[f++];try{v=g(v)}catch(y){w.call(this,y);break}}try{d=X4.call(this,v)}catch(g){return Promise.reject(g)}for(f=0,m=u.length;f<m;)d=d.then(u[f++],u[f++]);return d}getUri(e){e=Hl(this.defaults,e);const n=XE(e.baseURL,e.url,e.allowAbsoluteUrls);return UE(n,e.params,e.paramsSerializer)}};Pe.forEach(["delete","get","head","options"],function(e){Ol.prototype[e]=function(n,r){return this.request(Hl(r||{},{method:e,url:n,data:(r||{}).data}))}});Pe.forEach(["post","put","patch"],function(e){function n(r){return function(a,i,s){return this.request(Hl(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Ol.prototype[e]=n(),Ol.prototype[e+"Form"]=n(!0)});let Pee=class tM{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(o=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(s=>{r.subscribe(s),a=s}).then(o);return i.cancel=function(){r.unsubscribe(a)},i},e(function(a,i,s){r.reason||(r.reason=new Lf(a,i,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new tM(function(o){e=o}),cancel:e}}};function Aee(t){return function(n){return t.apply(null,n)}}function Iee(t){return Pe.isObject(t)&&t.isAxiosError===!0}const wv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(wv).forEach(([t,e])=>{wv[e]=t});function nM(t){const e=new Ol(t),n=LE(Ol.prototype.request,e);return Pe.extend(n,Ol.prototype,e,{allOwnKeys:!0}),Pe.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return nM(Hl(t,o))},n}const Gn=nM(Of);Gn.Axios=Ol;Gn.CanceledError=Lf;Gn.CancelToken=Pee;Gn.isCancel=GE;Gn.VERSION=eM;Gn.toFormData=kh;Gn.AxiosError=Pt;Gn.Cancel=Gn.CanceledError;Gn.all=function(e){return Promise.all(e)};Gn.spread=Aee;Gn.isAxiosError=Iee;Gn.mergeConfig=Hl;Gn.AxiosHeaders=uo;Gn.formToJSON=t=>YE(Pe.isHTMLForm(t)?new FormData(t):t);Gn.getAdapter=JE.getAdapter;Gn.HttpStatusCode=wv;Gn.default=Gn;const{Axios:Vhe,AxiosError:jhe,CanceledError:Hhe,isCancel:Whe,CancelToken:qhe,VERSION:Uhe,all:Yhe,Cancel:Ghe,isAxiosError:Khe,spread:Xhe,toFormData:Zhe,AxiosHeaders:Qhe,HttpStatusCode:Jhe,formToJSON:eme,getAdapter:tme,mergeConfig:nme}=Gn;/*! js-cookie v3.0.5 | MIT */function Yp(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var Oee={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function bv(t,e){function n(o,a,i){if(!(typeof document>"u")){i=Yp({},e,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in i)i[l]&&(s+="; "+l,i[l]!==!0&&(s+="="+i[l].split(";")[0]));return document.cookie=o+"="+t.write(a,o)+s}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var a=document.cookie?document.cookie.split("; "):[],i={},s=0;s<a.length;s++){var l=a[s].split("="),u=l.slice(1).join("=");try{var d=decodeURIComponent(l[0]);if(i[d]=t.read(u,d),o===d)break}catch{}}return o?i[o]:i}}return Object.create({set:n,get:r,remove:function(o,a){n(o,"",Yp({},a,{expires:-1}))},withAttributes:function(o){return bv(this.converter,Yp({},this.attributes,o))},withConverter:function(o){return bv(Yp({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var Lee=bv(Oee,{path:"/"});const $f={onRequest({config:t,cookie:e}){return t},onResponse({response:t}){return t?.data},async onResponseError({error:t,cookie:e}){return Promise.reject(t)}},{QueryClient:$ee}=await q("@tanstack/react-query"),Dee=new $ee({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),Bee=(t,e)=>!t||!e||t.endsWith(e)?t:`${t}${e}`,Df=(t,e,n)=>{const r=Lee,{baseURL:o,withCredentials:a=!1,timeout:i=6e4}=t,s=Gn.create({...t,baseURL:o,withCredentials:a,timeout:i});return s.interceptors.request.use(l=>(l.baseURL&&(l.baseURL=Bee(l.baseURL,n)),e.onRequest?.({config:l,cookie:r}),l)),s.interceptors.response.use(l=>e.onResponse({response:l,cookie:r}),l=>e.onResponseError?.({error:l,cookie:r})),s},zee=`http://${window.location.hostname}:undefined`,Fee=`http://${window.location.hostname}:undefined`,rM=`http://${window.location.hostname}:undefined`;Df({baseURL:""},$f);Df({baseURL:zee},$f);Df({baseURL:Fee},$f);const oM=Df({baseURL:`${rM}/amr`},$f,"/amr"),Th=Df({baseURL:`${rM}/common`},$f,"/common"),{useQuery:rme}=await q("@tanstack/react-query"),{useMemo:ome}=await q("react"),{useQuery:ame}=await q("@tanstack/react-query"),{useMemo:ime}=await q("react"),{useMemo:sme}=await q("react"),{useQuery:lme}=await q("@tanstack/react-query"),Vee="/robot-component-list",jee=async(t,e)=>{try{return await Th.get(Vee,e?{baseURL:e,params:{be_service:t}}:{params:{be_service:t}})}catch(n){throw console.error(n),n}},{useMemo:cme}=await q("react"),{useQuery:ume}=await q("@tanstack/react-query"),Hee="/get-robot-info",Wee=async t=>{try{return await Th.get(Hee,t?{baseURL:t}:void 0)}catch(e){throw console.error(e),e}},{useQuery:dme}=await q("@tanstack/react-query"),qee="/common/robot-model",Uee=[qee],Yee=600*1e3,Gee=async t=>{const[e,n]=await Promise.all([Wee(t),jee("amr",t)]),r=e.info?.robotModel??e.modelInfo?.model;if(r)return r;const a=[...e.info?.components??[],...e.modelInfo?.components??[]].find(i=>n.includes(i));if(!a)throw new Error("AMR robot_model을 찾을 수 없습니다.");return a},Kee=t=>Dee.fetchQuery({queryKey:[...Uee,""],queryFn:()=>Gee(t),staleTime:Yee}),{useQuery:fme}=await q("@tanstack/react-query"),{useMemo:pme}=await q("react"),{useMemo:hme}=await q("react"),{useQuery:mme}=await q("@tanstack/react-query"),{useMemo:gme}=await q("react"),{useQuery:vme}=await q("@tanstack/react-query"),{useQuery:wme}=await q("@tanstack/react-query"),{useMemo:bme}=await q("react"),{useQuery:yme}=await q("@tanstack/react-query"),{useMemo:_me}=await q("react"),{useQuery:xme}=await q("@tanstack/react-query"),{useMemo:Sme}=await q("react"),{useQuery:Cme}=await q("@tanstack/react-query"),{useMemo:Eme}=await q("react"),{useQuery:Mme}=await q("@tanstack/react-query"),{useMemo:kme}=await q("react"),{useQuery:Rme}=await q("@tanstack/react-query"),{useMemo:Tme}=await q("react"),{useQuery:Nme}=await q("@tanstack/react-query"),{useMemo:Pme}=await q("react"),{useQuery:Ame}=await q("@tanstack/react-query"),{useMemo:Ime}=await q("react"),{useQuery:Xee}=await q("@tanstack/react-query"),{useMemo:Zee}=await q("react"),Q4="/getState",Ome=(t={},e,n="")=>{const r=Zee(()=>[Q4,e,n],[e,n]);return{...Xee({queryKey:r,queryFn:()=>Th.get(Q4,void 0),...t}),queryKey:r}},{useMemo:Lme}=await q("react"),{useQuery:$me}=await q("@tanstack/react-query"),{useQuery:Dme}=await q("@tanstack/react-query"),{useMemo:Bme}=await q("react"),{useQuery:zme}=await q("@tanstack/react-query"),{useMemo:Fme}=await q("react"),{useQuery:Vme}=await q("@tanstack/react-query"),{useMemo:jme}=await q("react");/**
|
|
179
|
+
`+a):r.stack=a}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Hl(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&K1.assertOptions(r,{silentJSONParsing:Vo.transitional(Vo.boolean),forcedJSONParsing:Vo.transitional(Vo.boolean),clarifyTimeoutError:Vo.transitional(Vo.boolean),legacyInterceptorReqResOrdering:Vo.transitional(Vo.boolean)},!1),o!=null&&(Pe.isFunction(o)?n.paramsSerializer={serialize:o}:K1.assertOptions(o,{encode:Vo.function,serialize:Vo.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),K1.assertOptions(n,{baseUrl:Vo.spelling("baseURL"),withXsrfToken:Vo.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=a&&Pe.merge(a.common,a[n.method]);a&&Pe.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),n.headers=uo.concat(i,a);const s=[];let l=!0;this.interceptors.request.forEach(function(w){if(typeof w.runWhen=="function"&&w.runWhen(n)===!1)return;l=l&&w.synchronous;const y=n.transitional||c3;y&&y.legacyInterceptorReqResOrdering?s.unshift(w.fulfilled,w.rejected):s.push(w.fulfilled,w.rejected)});const u=[];this.interceptors.response.forEach(function(w){u.push(w.fulfilled,w.rejected)});let d,f=0,m;if(!l){const g=[X4.bind(this),void 0];for(g.unshift(...s),g.push(...u),m=g.length,d=Promise.resolve(n);f<m;)d=d.then(g[f++],g[f++]);return d}m=s.length;let v=n;for(;f<m;){const g=s[f++],w=s[f++];try{v=g(v)}catch(y){w.call(this,y);break}}try{d=X4.call(this,v)}catch(g){return Promise.reject(g)}for(f=0,m=u.length;f<m;)d=d.then(u[f++],u[f++]);return d}getUri(e){e=Hl(this.defaults,e);const n=XE(e.baseURL,e.url,e.allowAbsoluteUrls);return UE(n,e.params,e.paramsSerializer)}};Pe.forEach(["delete","get","head","options"],function(e){Ol.prototype[e]=function(n,r){return this.request(Hl(r||{},{method:e,url:n,data:(r||{}).data}))}});Pe.forEach(["post","put","patch"],function(e){function n(r){return function(a,i,s){return this.request(Hl(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Ol.prototype[e]=n(),Ol.prototype[e+"Form"]=n(!0)});let Pee=class tM{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(o=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(s=>{r.subscribe(s),a=s}).then(o);return i.cancel=function(){r.unsubscribe(a)},i},e(function(a,i,s){r.reason||(r.reason=new Lf(a,i,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new tM(function(o){e=o}),cancel:e}}};function Aee(t){return function(n){return t.apply(null,n)}}function Iee(t){return Pe.isObject(t)&&t.isAxiosError===!0}const wv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(wv).forEach(([t,e])=>{wv[e]=t});function nM(t){const e=new Ol(t),n=LE(Ol.prototype.request,e);return Pe.extend(n,Ol.prototype,e,{allOwnKeys:!0}),Pe.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return nM(Hl(t,o))},n}const Gn=nM(Of);Gn.Axios=Ol;Gn.CanceledError=Lf;Gn.CancelToken=Pee;Gn.isCancel=GE;Gn.VERSION=eM;Gn.toFormData=kh;Gn.AxiosError=Pt;Gn.Cancel=Gn.CanceledError;Gn.all=function(e){return Promise.all(e)};Gn.spread=Aee;Gn.isAxiosError=Iee;Gn.mergeConfig=Hl;Gn.AxiosHeaders=uo;Gn.formToJSON=t=>YE(Pe.isHTMLForm(t)?new FormData(t):t);Gn.getAdapter=JE.getAdapter;Gn.HttpStatusCode=wv;Gn.default=Gn;const{Axios:Vhe,AxiosError:jhe,CanceledError:Hhe,isCancel:Whe,CancelToken:qhe,VERSION:Uhe,all:Yhe,Cancel:Ghe,isAxiosError:Khe,spread:Xhe,toFormData:Zhe,AxiosHeaders:Qhe,HttpStatusCode:Jhe,formToJSON:eme,getAdapter:tme,mergeConfig:nme}=Gn;/*! js-cookie v3.0.5 | MIT */function Yp(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var Oee={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function bv(t,e){function n(o,a,i){if(!(typeof document>"u")){i=Yp({},e,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in i)i[l]&&(s+="; "+l,i[l]!==!0&&(s+="="+i[l].split(";")[0]));return document.cookie=o+"="+t.write(a,o)+s}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var a=document.cookie?document.cookie.split("; "):[],i={},s=0;s<a.length;s++){var l=a[s].split("="),u=l.slice(1).join("=");try{var d=decodeURIComponent(l[0]);if(i[d]=t.read(u,d),o===d)break}catch{}}return o?i[o]:i}}return Object.create({set:n,get:r,remove:function(o,a){n(o,"",Yp({},a,{expires:-1}))},withAttributes:function(o){return bv(this.converter,Yp({},this.attributes,o))},withConverter:function(o){return bv(Yp({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var Lee=bv(Oee,{path:"/"});const $f={onRequest({config:t,cookie:e}){return t},onResponse({response:t}){return t?.data},async onResponseError({error:t,cookie:e}){return Promise.reject(t)}},{QueryClient:$ee}=await q("@tanstack/react-query"),Dee=new $ee({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),Bee=(t,e)=>!t||!e||t.endsWith(e)?t:`${t}${e}`,Df=(t,e,n)=>{const r=Lee,{baseURL:o,withCredentials:a=!1,timeout:i=6e4}=t,s=Gn.create({...t,baseURL:o,withCredentials:a,timeout:i});return s.interceptors.request.use(l=>(l.baseURL&&(l.baseURL=Bee(l.baseURL,n)),e.onRequest?.({config:l,cookie:r}),l)),s.interceptors.response.use(l=>e.onResponse({response:l,cookie:r}),l=>e.onResponseError?.({error:l,cookie:r})),s},zee=`http://${window.location.hostname}:undefined`,Fee=`http://${window.location.hostname}:undefined`,rM=`http://${window.location.hostname}:undefined`;Df({baseURL:""},$f);Df({baseURL:zee},$f);Df({baseURL:Fee},$f);const oM=Df({baseURL:`${rM}/amr`},$f,"/amr"),Th=Df({baseURL:`${rM}/common`},$f,"/common"),{useQuery:rme}=await q("@tanstack/react-query"),{useMemo:ome}=await q("react"),{useQuery:ame}=await q("@tanstack/react-query"),{useMemo:ime}=await q("react"),{useMemo:sme}=await q("react"),{useQuery:lme}=await q("@tanstack/react-query"),Vee="/robot-component-list",jee=async(t,e)=>{try{return await Th.get(Vee,e?{baseURL:e,params:{beService:t}}:{params:{beService:t}})}catch(n){throw console.error(n),n}},{useMemo:cme}=await q("react"),{useQuery:ume}=await q("@tanstack/react-query"),Hee="/get-robot-info",Wee=async t=>{try{return await Th.get(Hee,t?{baseURL:t}:void 0)}catch(e){throw console.error(e),e}},{useQuery:dme}=await q("@tanstack/react-query"),qee="/common/robot-model",Uee=[qee],Yee=600*1e3,Gee=async t=>{const[e,n]=await Promise.all([Wee(t),jee("amr",t)]),r=e.info?.robotModel??e.modelInfo?.model;if(r)return r;const a=[...e.info?.components??[],...e.modelInfo?.components??[]].find(i=>n.includes(i));if(!a)throw new Error("AMR robot_model을 찾을 수 없습니다.");return a},Kee=t=>Dee.fetchQuery({queryKey:[...Uee,""],queryFn:()=>Gee(t),staleTime:Yee}),{useQuery:fme}=await q("@tanstack/react-query"),{useMemo:pme}=await q("react"),{useMemo:hme}=await q("react"),{useQuery:mme}=await q("@tanstack/react-query"),{useMemo:gme}=await q("react"),{useQuery:vme}=await q("@tanstack/react-query"),{useQuery:wme}=await q("@tanstack/react-query"),{useMemo:bme}=await q("react"),{useQuery:yme}=await q("@tanstack/react-query"),{useMemo:_me}=await q("react"),{useQuery:xme}=await q("@tanstack/react-query"),{useMemo:Sme}=await q("react"),{useQuery:Cme}=await q("@tanstack/react-query"),{useMemo:Eme}=await q("react"),{useQuery:Mme}=await q("@tanstack/react-query"),{useMemo:kme}=await q("react"),{useQuery:Rme}=await q("@tanstack/react-query"),{useMemo:Tme}=await q("react"),{useQuery:Nme}=await q("@tanstack/react-query"),{useMemo:Pme}=await q("react"),{useQuery:Ame}=await q("@tanstack/react-query"),{useMemo:Ime}=await q("react"),{useQuery:Xee}=await q("@tanstack/react-query"),{useMemo:Zee}=await q("react"),Q4="/getState",Ome=(t={},e,n="")=>{const r=Zee(()=>[Q4,e,n],[e,n]);return{...Xee({queryKey:r,queryFn:()=>Th.get(Q4,void 0),...t}),queryKey:r}},{useMemo:Lme}=await q("react"),{useQuery:$me}=await q("@tanstack/react-query"),{useQuery:Dme}=await q("@tanstack/react-query"),{useMemo:Bme}=await q("react"),{useQuery:zme}=await q("@tanstack/react-query"),{useMemo:Fme}=await q("react"),{useQuery:Vme}=await q("@tanstack/react-query"),{useMemo:jme}=await q("react");/**
|
|
180
180
|
* @remix-run/router v1.23.2
|
|
181
181
|
*
|
|
182
182
|
* Copyright (c) Remix Software Inc.
|
|
@@ -308,4 +308,4 @@ Minimum version required to store current data is: `+$+`.
|
|
|
308
308
|
top ${r}ms ease,
|
|
309
309
|
bottom ${r}ms ease,
|
|
310
310
|
max-height ${r}ms ease
|
|
311
|
-
`},children:h("div",{"data-comp":"ToastStackContent",style:F&&B?{minHeight:y[E]+(g[E]?28:0),position:"relative",width:"100%"}:void 0,children:a[E]?.map((N,V)=>h(C0e,{...N,toastOrder:V+1,toastCount:a[E]?.length??0,component:o,animationDuration:r,isWrapperMouseOver:l[E],isStackExpanded:d[E],isWrapperExpandedForLayout:B,isWrapperScrollable:g[E],requestStackExpand:O,onStackMouseEnter:R,onStackMouseLeave:P},N.id))})},E)})})},{useEffect:M0e,useMemo:F2,useRef:T6,useState:N6}=await q("react"),u_e=({className:t,open:e,type:n="basic",variant:r="default",title:o,content:a,icon:i,actionLabel:s,handleActionClick:l,closeOnActionClick:u=!0,position:d,toastCount:f,isWrapperMouseOver:m,isStackExpanded:v,pauseTimer:g,resumeTimer:w,requestStackExpand:y,closeToast:_})=>{const S=T6(null),x=T6(null),[C,R]=N6(!1),[P,O]=N6(!1),L=!!s,A=(f??0)>=3&&!m&&!v,E=A,$=F2(()=>m0e(n,r),[n,r]),B=F2(()=>b0e(d,C),[d,C]),F=F2(()=>{switch(r){case"copy":return h(C7,{});case"danger":return h(E7,{});case"warning":case"caution":return h(O7,{});case"success":return n==="basic"?h(l0e,{}):h(Hs,{});default:return null}},[n,r]),N=i??F,V=L?g0e(n,r):null,z=L&&!!o!=!!a,I=Y=>{Y.button!==2&&(Y.stopPropagation(),Y.preventDefault(),Y.currentTarget.setPointerCapture?.(Y.pointerId),S.current=Y.pointerId,x.current={startX:Y.clientX,startY:Y.clientY},g())},D=Y=>{if(!x.current||S.current!==Y.pointerId)return;Y.stopPropagation(),Y.preventDefault();const{startX:oe,startY:J}=x.current,{clientX:re,clientY:le}=Y;x.current.deltaX=re-oe,x.current.deltaY=le-J;const ee=Y.currentTarget;ee.style.transitionProperty="translate",O(!0),d==="top-center"?x.current.deltaY<0?ee.style.top=`${x.current.deltaY}px`:(x.current=null,ee.hasPointerCapture?.(Y.pointerId)&&ee.releasePointerCapture(Y.pointerId)):d==="bottom-center"?x.current.deltaY>0?ee.style.bottom=`-${x.current.deltaY}px`:(x.current=null,ee.hasPointerCapture?.(Y.pointerId)&&ee.releasePointerCapture(Y.pointerId)):d.includes("left")?ee.style.left=`${x.current.deltaX}px`:d.includes("right")&&(ee.style.right=`-${x.current.deltaX}px`)},U=Y=>{if(Y.stopPropagation(),Y.preventDefault(),S.current!==Y.pointerId)return;const oe=Y.currentTarget;if(oe.style.transitionProperty="",oe.hasPointerCapture?.(Y.pointerId)&&oe.releasePointerCapture(Y.pointerId),!x.current){O(!1),S.current=null,w();return}const{deltaX:J=0,deltaY:re=0}=x.current,ee=d.includes("left")||d.includes("right")?J:re;if(J===0&&re===0){if((f??0)>=3&&!v){y?.(),O(!1),S.current=null,x.current=null,w();return}_();return}Math.abs(ee)>15?_():d==="top-center"?oe.style.top="0px":d==="bottom-center"?oe.style.bottom="0px":d.includes("left")?oe.style.left="0px":d.includes("right")&&(oe.style.right="0px"),O(!1),S.current=null,x.current=null,w()};return M0e(()=>{R(e)},[e]),h("div",{"data-comp":"RBSimpleToast",className:ae(w0e({open:C,hidden:!1,stacked:!1,motion:B}),!C&&"pointer-events-none",t),onPointerDown:I,onPointerMove:D,onPointerUp:U,onPointerLeave:U,onContextMenu:Y=>Y.preventDefault(),children:h("div",{className:ae(d0e({type:n,variant:r,hasAction:L,stacked:E,active:P})),style:P?{boxShadow:"none"}:void 0,onTouchEnd:()=>O(!1),children:ne(Ul,{className:"w-full items-stretch gap-3",children:[ne(Yo,{alignItems:"flex-start",className:ae(R6(),z&&"w-full justify-between gap-3"),children:[ne(Yo,{alignItems:"flex-start",className:ae(R6(),"min-w-0 flex-1"),children:[N?h("span",{className:f0e({type:n,tone:$,variant:r}),children:N}):null,ne(Ul,{className:ae(p0e(),"w-full"),children:[o?h("div",{className:ae(h0e(),A?"truncate":"wrap-break-word whitespace-pre-line"),children:o}):null,a?h("div",{className:ae(A?"truncate":"wrap-break-word whitespace-pre-line"),children:a}):null]})]}),V&&z?h("span",{className:"shrink-0",onPointerDown:Y=>Y.stopPropagation(),onPointerUp:Y=>Y.stopPropagation(),onClick:Y=>Y.stopPropagation(),children:h(Wr,{size:V.size,variant:V.variant,onClick:()=>{l?.(),u&&_?.()},children:s})}):null]}),V&&!z?h("span",{className:"inline-flex w-full justify-end",onPointerDown:Y=>Y.stopPropagation(),onPointerUp:Y=>Y.stopPropagation(),onClick:Y=>Y.stopPropagation(),children:h(Wr,{size:V.size,variant:V.variant,onClick:()=>{l?.(),u&&_?.()},children:s})}):null]})})})},{useEffect:k0e}=await q("react"),d_e=({className:t,open:e,resolve:n,onOpenChange:r})=>{const{barCodeValue:o}=aue(),{theme:a}=Q0();return k0e(()=>{o&&n(o)},[o,n]),ne(Vh,{className:ae("RBQrBarCodeGuideModal","max-h-full w-fit",t),open:e,header:{title:"QR 코드 스캔 가이드"},onOpenChange:r,children:[ne("div",{className:"text-fg-default text-body-sm-normal mt-[1.5rem] mb-[1rem] text-center leading-[1.5]",children:["바코드 USB를 로봇에 연결 후",h("br",{}),"로봇 명판에 QR 코드를 찍어주세요"]}),h("div",{className:"mx-auto w-[30rem] p-5",children:h("img",{src:Dx(a==="dark"?"/qr-bar-code-guide-dark-img.png":"/qr-bar-code-guide-img.webp"),alt:"qr-bar-code-guide",className:"w-full object-cover"})})]})};var V2={};const At=t=>typeof t=="string",Id=()=>{let t,e;const n=new Promise((r,o)=>{t=r,e=o});return n.resolve=t,n.reject=e,n},P6=t=>t==null?"":""+t,R0e=(t,e,n)=>{t.forEach(r=>{e[r]&&(n[r]=e[r])})},T0e=/###/g,A6=t=>t&&t.indexOf("###")>-1?t.replace(T0e,"."):t,I6=t=>!t||At(t),Gd=(t,e,n)=>{const r=At(e)?e.split("."):e;let o=0;for(;o<r.length-1;){if(I6(t))return{};const a=A6(r[o]);!t[a]&&n&&(t[a]=new n),Object.prototype.hasOwnProperty.call(t,a)?t=t[a]:t={},++o}return I6(t)?{}:{obj:t,k:A6(r[o])}},O6=(t,e,n)=>{const{obj:r,k:o}=Gd(t,e,Object);if(r!==void 0||e.length===1){r[o]=n;return}let a=e[e.length-1],i=e.slice(0,e.length-1),s=Gd(t,i,Object);for(;s.obj===void 0&&i.length;)a=`${i[i.length-1]}.${a}`,i=i.slice(0,i.length-1),s=Gd(t,i,Object),s?.obj&&typeof s.obj[`${s.k}.${a}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},N0e=(t,e,n,r)=>{const{obj:o,k:a}=Gd(t,e,Object);o[a]=o[a]||[],o[a].push(n)},U0=(t,e)=>{const{obj:n,k:r}=Gd(t,e);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},P0e=(t,e,n)=>{const r=U0(t,n);return r!==void 0?r:U0(e,n)},iR=(t,e,n)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?At(t[r])||t[r]instanceof String||At(e[r])||e[r]instanceof String?n&&(t[r]=e[r]):iR(t[r],e[r],n):t[r]=e[r]);return t},Ml=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var A0e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const I0e=t=>At(t)?t.replace(/[&<>"'\/]/g,e=>A0e[e]):t;class O0e{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const L0e=[" ",",","?","!",";"],$0e=new O0e(20),D0e=(t,e,n)=>{e=e||"",n=n||"";const r=L0e.filter(i=>e.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const o=$0e.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let a=!o.test(t);if(!a){const i=t.indexOf(n);i>0&&!o.test(t.substring(0,i))&&(a=!0)}return a},Xv=(t,e,n=".")=>{if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const r=e.split(n);let o=t;for(let a=0;a<r.length;){if(!o||typeof o!="object")return;let i,s="";for(let l=a;l<r.length;++l)if(l!==a&&(s+=n),s+=r[l],i=o[s],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&l<r.length-1)continue;a+=l-a+1;break}o=i}return o},uf=t=>t?.replace(/_/g,"-"),B0e={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console?.[t]?.apply?.(console,e)}};class Y0{constructor(e,n={}){this.init(e,n)}init(e,n={}){this.prefix=n.prefix||"i18next:",this.logger=e||B0e,this.options=n,this.debug=n.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,r,o){return o&&!this.debug?null:(At(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new Y0(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Y0(this.logger,e)}}var Ja=new Y0;class jh{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e,...n){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([o,a])=>{for(let i=0;i<a;i++)o(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,a])=>{for(let i=0;i<a;i++)o.apply(o,[e,...n])})}}class L6 extends jh{constructor(e,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,r,o={}){const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,i=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;e.indexOf(".")>-1?s=e.split("."):(s=[e,n],r&&(Array.isArray(r)?s.push(...r):At(r)&&a?s.push(...r.split(a)):s.push(r)));const l=U0(this.data,s);return!l&&!n&&!r&&e.indexOf(".")>-1&&(e=s[0],n=s[1],r=s.slice(2).join(".")),l||!i||!At(r)?l:Xv(this.data?.[e]?.[n],r,a)}addResource(e,n,r,o,a={silent:!1}){const i=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let s=[e,n];r&&(s=s.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(s=e.split("."),o=n,n=s[1]),this.addNamespaces(n),O6(this.data,s,o),a.silent||this.emit("added",e,n,r,o)}addResources(e,n,r,o={silent:!1}){for(const a in r)(At(r[a])||Array.isArray(r[a]))&&this.addResource(e,n,a,r[a],{silent:!0});o.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,o,a,i={silent:!1,skipCopy:!1}){let s=[e,n];e.indexOf(".")>-1&&(s=e.split("."),o=r,r=n,n=s[1]),this.addNamespaces(n);let l=U0(this.data,s)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?iR(l,r,a):l={...l,...r},O6(this.data,s,l),i.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var sR={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,o){return t.forEach(a=>{e=this.processors[a]?.process(e,n,r,o)??e}),e}};const lR=Symbol("i18next/PATH_KEY");function z0e(){const t=[],e=Object.create(null);let n;return e.get=(r,o)=>(n?.revoke?.(),o===lR?t:(t.push(o),n=Proxy.revocable(r,e),n.proxy)),Proxy.revocable(Object.create(null),e).proxy}function uu(t,e){const{[lR]:n}=t(z0e()),r=e?.keySeparator??".",o=e?.nsSeparator??":";if(n.length>1&&o){const a=e?.ns,i=Array.isArray(a)?a:null;if(i&&i.length>1&&i.slice(1).includes(n[0]))return`${n[0]}${o}${n.slice(1).join(r)}`}return n.join(r)}const $6={},j2=t=>!At(t)&&typeof t!="boolean"&&typeof t!="number";class G0 extends jh{constructor(e,n={}){super(),R0e(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ja.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,n={interpolation:{}}){const r={...n};if(e==null)return!1;const o=this.resolve(e,r);if(o?.res===void 0)return!1;const a=j2(o.res);return!(r.returnObjects===!1&&a)}extractFromKey(e,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let a=n.ns||this.options.defaultNS||[];const i=r&&e.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!D0e(e,r,o);if(i&&!s){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:At(a)?[a]:a};const u=e.split(r);(r!==o||r===o&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),e=u.join(o)}return{key:e,namespaces:At(a)?[a]:a}}translate(e,n,r){let o=typeof n=="object"?{...n}:n;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),e==null)return"";typeof e=="function"&&(e=uu(e,{...this.options,...o})),Array.isArray(e)||(e=[String(e)]),e=e.map(F=>typeof F=="function"?uu(F,{...this.options,...o}):String(F));const a=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(e[e.length-1],o),u=l[l.length-1];let d=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;d===void 0&&(d=":");const f=o.lng||this.language,m=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f?.toLowerCase()==="cimode")return m?a?{res:`${u}${d}${s}`,usedKey:s,exactUsedKey:s,usedLng:f,usedNS:u,usedParams:this.getUsedParamsDetails(o)}:`${u}${d}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:f,usedNS:u,usedParams:this.getUsedParamsDetails(o)}:s;const v=this.resolve(e,o);let g=v?.res;const w=v?.usedKey||s,y=v?.exactUsedKey||s,_=["[object Number]","[object Function]","[object RegExp]"],S=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,C=o.count!==void 0&&!At(o.count),R=G0.hasDefaultValue(o),P=C?this.pluralResolver.getSuffix(f,o.count,o):"",O=o.ordinal&&C?this.pluralResolver.getSuffix(f,o.count,{ordinal:!1}):"",L=C&&!o.ordinal&&o.count===0,A=L&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${P}`]||o[`defaultValue${O}`]||o.defaultValue;let E=g;x&&!g&&R&&(E=A);const $=j2(E),B=Object.prototype.toString.apply(E);if(x&&E&&$&&_.indexOf(B)<0&&!(At(S)&&Array.isArray(E))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const F=this.options.returnedObjectHandler?this.options.returnedObjectHandler(w,E,{...o,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(v.res=F,v.usedParams=this.getUsedParamsDetails(o),v):F}if(i){const F=Array.isArray(E),N=F?[]:{},V=F?y:w;for(const z in E)if(Object.prototype.hasOwnProperty.call(E,z)){const I=`${V}${i}${z}`;R&&!g?N[z]=this.translate(I,{...o,defaultValue:j2(A)?A[z]:void 0,joinArrays:!1,ns:l}):N[z]=this.translate(I,{...o,joinArrays:!1,ns:l}),N[z]===I&&(N[z]=E[z])}g=N}}else if(x&&At(S)&&Array.isArray(g))g=g.join(S),g&&(g=this.extendTranslation(g,e,o,r));else{let F=!1,N=!1;!this.isValidLookup(g)&&R&&(F=!0,g=A),this.isValidLookup(g)||(N=!0,g=s);const z=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&N?void 0:g,I=R&&A!==g&&this.options.updateMissing;if(N||F||I){if(this.logger.log(I?"updateKey":"missingKey",f,u,s,I?A:g),i){const oe=this.resolve(s,{...o,keySeparator:!1});oe&&oe.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 D=[];const U=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&U&&U[0])for(let oe=0;oe<U.length;oe++)D.push(U[oe]);else this.options.saveMissingTo==="all"?D=this.languageUtils.toResolveHierarchy(o.lng||this.language):D.push(o.lng||this.language);const Y=(oe,J,re)=>{const le=R&&re!==g?re:z;this.options.missingKeyHandler?this.options.missingKeyHandler(oe,u,J,le,I,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(oe,u,J,le,I,o),this.emit("missingKey",oe,u,J,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?D.forEach(oe=>{const J=this.pluralResolver.getSuffixes(oe,o);L&&o[`defaultValue${this.options.pluralSeparator}zero`]&&J.indexOf(`${this.options.pluralSeparator}zero`)<0&&J.push(`${this.options.pluralSeparator}zero`),J.forEach(re=>{Y([oe],s+re,o[`defaultValue${re}`]||A)})}):Y(D,s,A))}g=this.extendTranslation(g,e,o,v,r),N&&g===s&&this.options.appendNamespaceToMissingKey&&(g=`${u}${d}${s}`),(N||F)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${d}${s}`:s,F?g:void 0,o))}return a?(v.res=g,v.usedParams=this.getUsedParamsDetails(o),v):g}extendTranslation(e,n,r,o,a){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const l=At(e)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(l){const f=e.match(this.interpolator.nestingRegexp);u=f&&f.length}let d=r.replace&&!At(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),e=this.interpolator.interpolate(e,d,r.lng||this.language||o.usedLng,r),l){const f=e.match(this.interpolator.nestingRegexp),m=f&&f.length;u<m&&(r.nest=!1)}!r.lng&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,(...f)=>a?.[0]===f[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${n[0]}`),null):this.translate(...f,n),r)),r.interpolation&&this.interpolator.reset()}const i=r.postProcess||this.options.postProcess,s=At(i)?[i]:i;return e!=null&&s?.length&&r.applyPostProcessor!==!1&&(e=sR.handle(s,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,n={}){let r,o,a,i,s;return At(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(l=>typeof l=="function"?uu(l,{...this.options,...n}):l)),e.forEach(l=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(l,n),d=u.key;o=d;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const m=n.count!==void 0&&!At(n.count),v=m&&!n.ordinal&&n.count===0,g=n.context!==void 0&&(At(n.context)||typeof n.context=="number")&&n.context!=="",w=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(y=>{this.isValidLookup(r)||(s=y,!$6[`${w[0]}-${y}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(s)&&($6[`${w[0]}-${y}`]=!0,this.logger.warn(`key "${o}" for languages "${w.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!!!")),w.forEach(_=>{if(this.isValidLookup(r))return;i=_;const S=[d];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(S,d,_,y,n);else{let C;m&&(C=this.pluralResolver.getSuffix(_,n.count,n));const R=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(n.ordinal&&C.indexOf(P)===0&&S.push(d+C.replace(P,this.options.pluralSeparator)),S.push(d+C),v&&S.push(d+R)),g){const O=`${d}${this.options.contextSeparator||"_"}${n.context}`;S.push(O),m&&(n.ordinal&&C.indexOf(P)===0&&S.push(O+C.replace(P,this.options.pluralSeparator)),S.push(O+C),v&&S.push(O+R))}}let x;for(;x=S.pop();)this.isValidLookup(r)||(a=x,r=this.getResource(_,y,x,n))}))})}),{res:r,usedKey:o,exactUsedKey:a,usedLng:i,usedNS:s}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,n,r,o):this.resourceStore.getResource(e,n,r,o)}getUsedParamsDetails(e={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!At(e.replace);let o=r?e.replace:e;if(r&&typeof e.count<"u"&&(o.count=e.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const a of n)delete o[a]}return o}static hasDefaultValue(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&e[r]!==void 0)return!0;return!1}}class D6{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ja.create("languageUtils")}getScriptPartFromCode(e){if(e=uf(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=uf(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(At(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&e.forEach(r=>{if(n)return;const o=this.getScriptPartFromCode(r);if(this.isSupportedCode(o))return n=o;const a=this.getLanguagePartFromCode(r);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(i=>{if(i===a)return i;if(!(i.indexOf("-")<0&&a.indexOf("-")<0)&&(i.indexOf("-")>0&&a.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===a||i.indexOf(a)===0&&a.length>1))return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),At(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],e),o=[],a=i=>{i&&(this.isSupportedCode(i)?o.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return At(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):At(e)&&a(this.formatLanguageCode(e)),r.forEach(i=>{o.indexOf(i)<0&&a(this.formatLanguageCode(i))}),o}}const B6={zero:0,one:1,two:2,few:3,many:4,other:5},z6={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class F0e{constructor(e,n={}){this.languageUtils=e,this.options=n,this.logger=Ja.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,n={}){const r=uf(e==="dev"?"en":e),o=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:r,type:o});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let i;try{i=new Intl.PluralRules(r,{type:o})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),z6;if(!e.match(/-|_/))return z6;const l=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(l,n)}return this.pluralRulesCache[a]=i,i}needsPlural(e,n={}){let r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,n,r={}){return this.getSuffixes(e,r).map(o=>`${n}${o}`)}getSuffixes(e,n={}){let r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((o,a)=>B6[o]-B6[a]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(e,n,r={}){const o=this.getRule(e,r);return o?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,r))}}const F6=(t,e,n,r=".",o=!0)=>{let a=P0e(t,e,n);return!a&&o&&At(n)&&(a=Xv(t,n,r),a===void 0&&(a=Xv(e,n,r))),a},H2=t=>t.replace(/\$/g,"$$$$");class V6{constructor(e={}){this.logger=Ja.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(n=>n),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:a,prefixEscaped:i,suffix:s,suffixEscaped:l,formatSeparator:u,unescapeSuffix:d,unescapePrefix:f,nestingPrefix:m,nestingPrefixEscaped:v,nestingSuffix:g,nestingSuffixEscaped:w,nestingOptionsSeparator:y,maxReplaces:_,alwaysFormat:S}=e.interpolation;this.escape=n!==void 0?n:I0e,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=a?Ml(a):i||"{{",this.suffix=s?Ml(s):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=m?Ml(m):v||Ml("$t("),this.nestingSuffix=g?Ml(g):w||Ml(")"),this.nestingOptionsSeparator=y||",",this.maxReplaces=_||1e3,this.alwaysFormat=S!==void 0?S:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,n,r,o){let a,i,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=v=>{if(v.indexOf(this.formatSeparator)<0){const _=F6(n,l,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(_,void 0,r,{...o,...n,interpolationkey:v}):_}const g=v.split(this.formatSeparator),w=g.shift().trim(),y=g.join(this.formatSeparator).trim();return this.format(F6(n,l,w,this.options.keySeparator,this.options.ignoreJSONStructure),y,r,{...o,...n,interpolationkey:w})};this.resetRegExp();const d=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,f=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>H2(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?H2(this.escape(v)):H2(v)}].forEach(v=>{for(s=0;a=v.regex.exec(e);){const g=a[1].trim();if(i=u(g),i===void 0)if(typeof d=="function"){const y=d(e,a,o);i=At(y)?y:""}else if(o&&Object.prototype.hasOwnProperty.call(o,g))i="";else if(f){i=a[0];continue}else this.logger.warn(`missed to pass in variable ${g} for interpolating ${e}`),i="";else!At(i)&&!this.useRawValueToEscape&&(i=P6(i));const w=v.safeValue(i);if(e=e.replace(a[0],w),f?(v.regex.lastIndex+=i.length,v.regex.lastIndex-=a[0].length):v.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),e}nest(e,n,r={}){let o,a,i;const s=(l,u)=>{const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const f=l.split(new RegExp(`${Ml(d)}[ ]*{`));let m=`{${f[1]}`;l=f[0],m=this.interpolate(m,i);const v=m.match(/'/g),g=m.match(/"/g);((v?.length??0)%2===0&&!g||(g?.length??0)%2!==0)&&(m=m.replace(/'/g,'"'));try{i=JSON.parse(m),u&&(i={...u,...i})}catch(w){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,w),`${l}${d}${m}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,l};for(;o=this.nestingRegexp.exec(e);){let l=[];i={...r},i=i.replace&&!At(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;const u=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(u!==-1&&(l=o[1].slice(u).split(this.formatSeparator).map(d=>d.trim()).filter(Boolean),o[1]=o[1].slice(0,u)),a=n(s.call(this,o[1].trim(),i),i),a&&o[0]===e&&!At(a))return a;At(a)||(a=P6(a)),a||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`),a=""),l.length&&(a=l.reduce((d,f)=>this.format(d,f,r.lng,{...r,interpolationkey:o[1].trim()}),a.trim())),e=e.replace(o[0],a),this.regexp.lastIndex=0}return e}}const V0e=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);e==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):e==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(i=>{if(i){const[s,...l]=i.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),d=s.trim();n[d]||(n[d]=u),u==="false"&&(n[d]=!1),u==="true"&&(n[d]=!0),isNaN(u)||(n[d]=parseInt(u,10))}})}return{formatName:e,formatOptions:n}},j6=t=>{const e={};return(n,r,o)=>{let a=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(a={...a,[o.interpolationkey]:void 0});const i=r+JSON.stringify(a);let s=e[i];return s||(s=t(uf(r),o),e[i]=s),s(n)}},j0e=t=>(e,n,r)=>t(uf(n),r)(e);class H0e{constructor(e={}){this.logger=Ja.create("formatter"),this.options=e,this.init(e)}init(e,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?j6:j0e;this.formats={number:r((o,a)=>{const i=new Intl.NumberFormat(o,{...a});return s=>i.format(s)}),currency:r((o,a)=>{const i=new Intl.NumberFormat(o,{...a,style:"currency"});return s=>i.format(s)}),datetime:r((o,a)=>{const i=new Intl.DateTimeFormat(o,{...a});return s=>i.format(s)}),relativetime:r((o,a)=>{const i=new Intl.RelativeTimeFormat(o,{...a});return s=>i.format(s,a.range||"day")}),list:r((o,a)=>{const i=new Intl.ListFormat(o,{...a});return s=>i.format(s)})}}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=j6(n)}format(e,n,r,o={}){const a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(s=>s.indexOf(")")>-1)){const s=a.findIndex(l=>l.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,s)].join(this.formatSeparator)}return a.reduce((s,l)=>{const{formatName:u,formatOptions:d}=V0e(l);if(this.formats[u]){let f=s;try{const m=o?.formatParams?.[o.interpolationkey]||{},v=m.locale||m.lng||o.locale||o.lng||r;f=this.formats[u](s,v,{...d,...o,...m})}catch(m){this.logger.warn(m)}return f}else this.logger.warn(`there was no format function for ${u}`);return s},e)}}const W0e=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class q0e extends jh{constructor(e,n,r,o={}){super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=Ja.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,o.backend,o)}queueLoad(e,n,r,o){const a={},i={},s={},l={};return e.forEach(u=>{let d=!0;n.forEach(f=>{const m=`${u}|${f}`;!r.reload&&this.store.hasResourceBundle(u,f)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?i[m]===void 0&&(i[m]=!0):(this.state[m]=1,d=!1,i[m]===void 0&&(i[m]=!0),a[m]===void 0&&(a[m]=!0),l[f]===void 0&&(l[f]=!0)))}),d||(s[u]=!0)}),(Object.keys(a).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(a),pending:Object.keys(i),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(e,n,r){const o=e.split("|"),a=o[0],i=o[1];n&&this.emit("failedLoading",a,i,n),!n&&r&&this.store.addResourceBundle(a,i,r,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&r&&(this.state[e]=0);const s={};this.queue.forEach(l=>{N0e(l.loaded,[a],i),W0e(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{s[u]||(s[u]={});const d=l.loaded[u];d.length&&d.forEach(f=>{s[u][f]===void 0&&(s[u][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(e,n,r,o=0,a=this.retryTimeout,i){if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:o,wait:a,callback:i});return}this.readingCalls++;const s=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&d&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,r,o+1,a*2,i)},a);return}i(u,d)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(e,n);u&&typeof u.then=="function"?u.then(d=>s(null,d)).catch(s):s(null,u)}catch(u){s(u)}return}return l(e,n,s)}prepareLoading(e,n,r={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();At(e)&&(e=this.languageUtils.toResolveHierarchy(e)),At(n)&&(n=[n]);const a=this.queueLoad(e,n,r,o);if(!a.toLoad.length)return a.pending.length||o(),null;a.toLoad.forEach(i=>{this.loadOne(i)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e,n=""){const r=e.split("|"),o=r[0],a=r[1];this.read(o,a,"read",void 0,void 0,(i,s)=>{i&&this.logger.warn(`${n}loading namespace ${a} for language ${o} failed`,i),!i&&s&&this.logger.log(`${n}loaded namespace ${a} for language ${o}`,s),this.loaded(e,i,s)})}saveMissing(e,n,r,o,a,i={},s=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" 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(!(r==null||r==="")){if(this.backend?.create){const l={...i,isUpdate:a},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(e,n,r,o,l):d=u(e,n,r,o),d&&typeof d.then=="function"?d.then(f=>s(null,f)).catch(s):s(null,d)}catch(d){s(d)}else u(e,n,r,o,s,l)}!e||!e[0]||this.store.addResource(e[0],n,r,o)}}}const W2=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",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:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),At(t[1])&&(e.defaultValue=t[1]),At(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(r=>{e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),H6=t=>(At(t.ns)&&(t.ns=[t.ns]),At(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),At(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs?.indexOf?.("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t),T1=()=>{},U0e=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})},cR="__i18next_supportNoticeShown",Y0e=()=>!!(typeof globalThis<"u"&&globalThis[cR]||typeof process<"u"&&V2&&V2.I18NEXT_NO_SUPPORT_NOTICE||typeof process<"u"&&V2),G0e=()=>{typeof globalThis<"u"&&(globalThis[cR]=!0)},K0e=t=>!!(t?.modules?.backend?.name?.indexOf("Locize")>0||t?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||t?.options?.backend?.backends&&t.options.backend.backends.some(e=>e?.name?.indexOf("Locize")>0||e?.constructor?.name?.indexOf("Locize")>0)||t?.options?.backend?.projectId||t?.options?.backend?.backendOptions&&t.options.backend.backendOptions.some(e=>e?.projectId));class Kd extends jh{constructor(e={},n){if(super(),this.options=H6(e),this.services={},this.logger=Ja,this.modules={external:[]},U0e(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(e={},n){this.isInitializing=!0,typeof e=="function"&&(n=e,e={}),e.defaultNS==null&&e.ns&&(At(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const r=W2();this.options={...r,...this.options,...H6(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!K0e(this)&&!Y0e()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),G0e());const o=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?Ja.init(o(this.modules.logger),this.options):Ja.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=H0e;const d=new D6(this.options);this.store=new L6(this.options.resources,this.options);const f=this.services;f.logger=Ja,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new F0e(d,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),u&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(f.formatter=o(u),f.formatter.init&&f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new V6(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new q0e(o(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",(v,...g)=>{this.emit(v,...g)}),this.modules.languageDetector&&(f.languageDetector=o(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=o(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new G0(this.services,this.options),this.translator.on("*",(v,...g)=>{this.emit(v,...g)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,n||(n=T1),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[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(u=>{this[u]=(...d)=>this.store[u](...d)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...d)=>(this.store[u](...d),this)});const s=Id(),l=()=>{const u=(d,f)=>{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(f),n(d,f)};if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),s}loadResources(e,n=T1){let r=n;const o=At(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const a=[],i=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(u=>{u!=="cimode"&&a.indexOf(u)<0&&a.push(u)})};o?i(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>i(l)),this.options.preload?.forEach?.(s=>i(s)),this.services.backendConnector.load(a,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(e,n,r){const o=Id();return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),r||(r=T1),this.services.backendConnector.reload(e,n,a=>{o.resolve(),r(a)}),o}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&sR.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,n){this.isLanguageChangingTo=e;const r=Id();this.emit("languageChanging",e);const o=s=>{this.language=s,this.languages=this.services.languageUtils.toResolveHierarchy(s),this.resolvedLanguage=void 0,this.setResolvedLanguage(s)},a=(s,l)=>{l?this.isLanguageChangingTo===e&&(o(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve((...u)=>this.t(...u)),n&&n(s,(...u)=>this.t(...u))},i=s=>{!e&&!s&&this.services.languageDetector&&(s=[]);const l=At(s)?s:s&&s[0],u=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(At(s)?[s]:s);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector?.cacheUserLanguage?.(u)),this.loadResources(u,d=>{a(d,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?i(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e),r}getFixedT(e,n,r){const o=(a,i,...s)=>{let l;typeof i!="object"?l=this.options.overloadTranslationOptionHandler([a,i].concat(s)):l={...i},l.lng=l.lng||o.lng,l.lngs=l.lngs||o.lngs,l.ns=l.ns||o.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||o.keyPrefix);const u={...this.options,...l};typeof l.keyPrefix=="function"&&(l.keyPrefix=uu(l.keyPrefix,u));const d=this.options.keySeparator||".";let f;return l.keyPrefix&&Array.isArray(a)?f=a.map(m=>(typeof m=="function"&&(m=uu(m,u)),`${l.keyPrefix}${d}${m}`)):(typeof a=="function"&&(a=uu(a,u)),f=l.keyPrefix?`${l.keyPrefix}${d}${a}`:a),this.t(f,l)};return At(e)?o.lng=e:o.lngs=e,o.ns=n,o.keyPrefix=r,o}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,n={}){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;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(s,l)=>{const u=this.services.backendConnector.state[`${s}|${l}`];return u===-1||u===0||u===2};if(n.precheck){const s=n.precheck(this,i);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,e)&&(!o||i(a,e)))}loadNamespaces(e,n){const r=Id();return this.options.ns?(At(e)&&(e=[e]),e.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(e,n){const r=Id();At(e)&&(e=[e]);const o=this.options.preload||[],a=e.filter(i=>o.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return a.length?(this.options.preload=o.concat(a),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const o=new Intl.Locale(e);if(o&&o.getTextInfo){const a=o.getTextInfo();if(a&&a.direction)return a.direction}}catch{}const n=["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"],r=this.services?.languageUtils||new D6(W2());return e.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},n){const r=new Kd(e,n);return r.createInstance=Kd.createInstance,r}cloneInstance(e={},n=T1){const r=e.forkResourceStore;r&&delete e.forkResourceStore;const o={...this.options,...e,isClone:!0},a=new Kd(o);if((e.debug!==void 0||e.prefix!==void 0)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(s=>{a[s]=this[s]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r){const s=Object.keys(this.store.data).reduce((l,u)=>(l[u]={...this.store.data[u]},l[u]=Object.keys(l[u]).reduce((d,f)=>(d[f]={...l[u][f]},d),l[u]),l),{});a.store=new L6(s,o),a.services.resourceStore=a.store}if(e.interpolation){const l={...W2().interpolation,...this.options.interpolation,...e.interpolation},u={...o,interpolation:l};a.services.interpolator=new V6(u)}return a.translator=new G0(a.services,o),a.translator.on("*",(s,...l)=>{a.emit(s,...l)}),a.init(o,n),a.translator.options=o,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Pr=Kd.createInstance();Pr.createInstance;Pr.dir;Pr.init;Pr.loadResources;Pr.reloadResources;Pr.use;Pr.changeLanguage;Pr.getFixedT;Pr.t;Pr.exists;Pr.setDefaultNamespace;Pr.hasLoadedNamespace;Pr.loadNamespaces;Pr.loadLanguages;const X0e=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Z0e={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Q0e=t=>Z0e[t],J0e=t=>t.replace(X0e,Q0e);let W6={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:J0e,transDefaultProps:void 0};const ehe=(t={})=>{W6={...W6,...t}},the={type:"3rdParty",init(t){ehe(t.options.react)}},{createContext:nhe}=await q("react"),rhe=nhe(),{createElement:ohe,useMemo:ahe}=await q("react");function ihe({i18n:t,defaultNS:e,children:n}){const r=ahe(()=>({i18n:t,defaultNS:e}),[t,e]);return ohe(rhe.Provider,{value:r},n)}const{createContext:she,useContext:lhe}=await q("react");let che=(t=>String(t));const uhe=t=>{che=t.t.bind(t)},uR=she(null),f_e=()=>{const t=lhe(uR);if(!t)throw new Error("useLocalization must be used within RbLocalizationProvider");return t},{useCallback:dhe,useEffect:fhe,useMemo:phe,useState:q2}=await q("react"),p_e=({children:t,appName:e,resources:n,defaultLng:r="en",fallbackLng:o="en",separateInstance:a=!0})=>{const[i,s]=q2(null),[l,u]=q2(!1),[d,f]=q2(localStorage.getItem(`${e}_Language`)||r);fhe(()=>{(async()=>{try{const g=a?Pr.createInstance():Pr;await g.use(the).init({lng:d,fallbackLng:o,resources:n,interpolation:{escapeValue:!1}}),uhe(g),s(g),u(!0)}catch(g){console.error("Localization init Failed:",g)}})()},[n,d,o,a]);const m=dhe(g=>{i?.changeLanguage(g),f(g),localStorage.setItem(`${e}_Language`,g)},[i,e]),v=phe(()=>i?{i18n:i,t:i.t.bind(i),changeLanguage:m,currentLanguage:d}:null,[i,m,d]);return!l||!v?h("div",{className:"bg-default flex h-screen w-full items-center justify-center",children:h(Yk,{size:"3rem",className:"text-fg-default"})}):h(uR.Provider,{value:v,children:h(ihe,{i18n:i,children:t})})};export{Che as $,sH as A,Lee as B,lH as C,lw as D,rn as E,cw as F,he as G,ne as H,WU as I,lg as J,cg as K,vZ as L,HU as M,VU as N,_f as O,To as P,$he as Q,M8 as R,Hi as S,wZ as T,Yo as U,Wv as V,o6 as W,dz as X,Rhe as Y,afe as Z,Z3e as _,ad as a,Wr as a$,ebe as a0,abe as a1,sbe as a2,obe as a3,lbe as a4,tbe as a5,nbe as a6,ibe as a7,rbe as a8,ew as a9,jde as aA,Fde as aB,zde as aC,Dde as aD,$de as aE,Vde as aF,H3e as aG,cbe as aH,wbe as aI,gbe as aJ,dbe as aK,vbe as aL,ybe as aM,C1e as aN,pbe as aO,bbe as aP,_be as aQ,xbe as aR,fbe as aS,mbe as aT,hbe as aU,ube as aV,m6 as aW,d7 as aX,Mhe as aY,khe as aZ,Q3e as a_,QB as aa,GB as ab,qk as ac,Qfe as ad,Uk as ae,epe as af,sfe as ag,z3e as ah,Tk as ai,Ak as aj,Ik as ak,bde as al,j3e as am,xde as an,d0 as ao,Cde as ap,Sde as aq,zk as ar,yde as as,u0 as at,V3e as au,bz as av,Lde as aw,q3e as ax,W3e as ay,Bde as az,hg as b,jbe as b$,Sbe as b0,Abe as b1,Nbe as b2,Ebe as b3,Pbe as b4,Obe as b5,Cbe as b6,Mbe as b7,kbe as b8,Ibe as b9,efe as bA,Qde as bB,Zde as bC,nfe as bD,U3e as bE,Sfe as bF,u_e as bG,zbe as bH,Yk as bI,jue as bJ,Fbe as bK,Yfe as bL,Wk as bM,X3e as bN,ype as bO,Hbe as bP,Ube as bQ,Wbe as bR,qbe as bS,Gk as bT,_pe as bU,fF as bV,dfe as bW,cfe as bX,iw as bY,ufe as bZ,Vbe as b_,Lbe as ba,Bbe as bb,Rbe as bc,Dbe as bd,$be as be,Tbe as bf,Vh as bg,Vpe as bh,P3 as bi,G3e as bj,pfe as bk,d_e as bl,Fk as bm,Lfe as bn,F3e as bo,Ybe as bp,Kbe as bq,Gbe as br,qv as bs,Pk as bt,Bk as bu,Xde as bv,Y3e as bw,Jde as bx,rfe as by,tfe as bz,lh as c,DB as c$,J3e as c0,Ul as c1,tz as c2,xpe as c3,She as c4,l1e as c5,E$ as c6,KB as c7,jB as c8,K3e as c9,kn as cA,OE as cB,eve as cC,Mr as cD,TD as cE,B2e as cF,bhe as cG,Hd as cH,Dx as cI,yhe as cJ,rB as cK,oB as cL,ND as cM,Rve as cN,Dl as cO,Wo as cP,Cve as cQ,xo as cR,Cte as cS,dB as cT,zf as cU,DD as cV,$D as cW,OB as cX,LB as cY,$B as cZ,IB as c_,pz as ca,kpe as cb,tde as cc,ZL as cd,JB as ce,u7 as cf,Cfe as cg,pue as ch,vfe as ci,$fe as cj,sF as ck,Pz as cl,Qn as cm,E3 as cn,ace as co,oce as cp,C3 as cq,sce as cr,ice as cs,_k as ct,nn as cu,qce as cv,Q0 as cw,f_e as cx,Ohe as cy,Tve as cz,id as d,Zye as d$,AB as d0,Fq as d1,tc as d2,Rr as d3,rw as d4,K0 as d5,qme as d6,MD as d7,kD as d8,Ehe as d9,e_e as dA,Hye as dB,lye as dC,Jye as dD,vye as dE,oye as dF,kye as dG,Tye as dH,Rye as dI,Nye as dJ,Pye as dK,$ye as dL,mye as dM,Lye as dN,Oye as dO,Mye as dP,aye as dQ,Vye as dR,Iye as dS,Wye as dT,Kye as dU,n_e as dV,tye as dW,iye as dX,dye as dY,sye as dZ,eye as d_,SB as da,Ihe as db,ege as dc,tge as dd,nge as de,Bq as df,H$ as dg,q$ as dh,Xbe as di,Zbe as dj,Qbe as dk,t_e as dl,Gye as dm,Jbe as dn,Xye as dp,Bye as dq,Dye as dr,Uye as ds,uye as dt,Cye as du,Fye as dv,nye as dw,gye as dx,Yye as dy,wye as dz,fG as e,N3 as e$,hye as e0,r_e as e1,jye as e2,zye as e3,Eye as e4,xye as e5,Qye as e6,fye as e7,pye as e8,bye as e9,_7 as eA,N7 as eB,df as eC,Ahe as eD,Eve as eE,B3e as eF,_D as eG,g7 as eH,k7 as eI,RB as eJ,pB as eK,JD as eL,qD as eM,V$ as eN,lB as eO,zD as eP,m7 as eQ,zB as eR,oM as eS,Y$ as eT,c2e as eU,bve as eV,HD as eW,FD as eX,xB as eY,_B as eZ,_he as e_,Sye as ea,_ye as eb,yye as ec,cye as ed,Aye as ee,qye as ef,rye as eg,che as eh,aue as ei,V7 as ej,Gn as ek,Xie as el,Phe as em,RD as en,O7 as eo,Q$ as ep,ZD as eq,eB as er,K$ as es,Th as et,Roe as eu,mD as ev,Z$ as ew,vB as ex,dD as ey,x7 as ez,Ws as f,age as f$,yB as f0,WD as f1,u8 as f2,d8 as f3,p8 as f4,f8 as f5,l8 as f6,Ph as f7,B$ as f8,mB as f9,j$ as fA,pD as fB,ED as fC,Z0 as fD,xD as fE,bD as fF,Hs as fG,X0 as fH,KD as fI,fD as fJ,cD as fK,J2e as fL,mve as fM,nC as fN,nw as fO,ya as fP,EB as fQ,Gme as fR,Nhe as fS,oV as fT,rV as fU,xhe as fV,Ume as fW,Kce as fX,Ome as fY,Lwe as fZ,T7 as f_,hB as fa,X$ as fb,aB as fc,LD as fd,fB as fe,wB as ff,gB as fg,Qee as fh,E7 as fi,Jce as fj,Kme as fk,Gl as fl,Q2e as fm,Pse as fn,nk as fo,whe as fp,f7 as fq,jhe as fr,C7 as fs,Gz as ft,AD as fu,z$ as fv,F$ as fw,sD as fx,uB as fy,U$ as fz,qo as g,Yme as g0,Xme as g1,Ns as g2,Dee as g3,p_e as g4,The as g5,kve as g6,c_e as g7,yD as g8,sB as g9,oD as gA,Su as gB,iD as gC,Df as gD,uD as ga,bB as gb,nB as gc,vD as gd,XD as ge,nD as gf,nc as gg,sM as gh,Wme as gi,kte as gj,Hme as gk,Ste as gl,kr as gm,ute as gn,m3 as go,IE as gp,_ve as gq,S3 as gr,xve as gs,Fee as gt,zee as gu,CD as gv,UD as gw,nle as gx,kB as gy,hD as gz,bw as h,ln as i,h as j,Wt as k,it as l,v8 as m,I8 as n,yw as o,Go as p,X7 as q,cH as r,H7 as s,bf as t,Ko as u,yf as v,xf as w,ae as x,gZ as y,bZ as z};
|
|
311
|
+
`},children:h("div",{"data-comp":"ToastStackContent",style:F&&B?{minHeight:y[E]+(g[E]?28:0),position:"relative",width:"100%"}:void 0,children:a[E]?.map((N,V)=>h(C0e,{...N,toastOrder:V+1,toastCount:a[E]?.length??0,component:o,animationDuration:r,isWrapperMouseOver:l[E],isStackExpanded:d[E],isWrapperExpandedForLayout:B,isWrapperScrollable:g[E],requestStackExpand:O,onStackMouseEnter:R,onStackMouseLeave:P},N.id))})},E)})})},{useEffect:M0e,useMemo:F2,useRef:T6,useState:N6}=await q("react"),u_e=({className:t,open:e,type:n="basic",variant:r="default",title:o,content:a,icon:i,actionLabel:s,handleActionClick:l,closeOnActionClick:u=!0,position:d,toastCount:f,isWrapperMouseOver:m,isStackExpanded:v,pauseTimer:g,resumeTimer:w,requestStackExpand:y,closeToast:_})=>{const S=T6(null),x=T6(null),[C,R]=N6(!1),[P,O]=N6(!1),L=!!s,A=(f??0)>=3&&!m&&!v,E=A,$=F2(()=>m0e(n,r),[n,r]),B=F2(()=>b0e(d,C),[d,C]),F=F2(()=>{switch(r){case"copy":return h(C7,{});case"danger":return h(E7,{});case"warning":case"caution":return h(O7,{});case"success":return n==="basic"?h(l0e,{}):h(Hs,{});default:return null}},[n,r]),N=i??F,V=L?g0e(n,r):null,z=L&&!!o!=!!a,I=Y=>{Y.button!==2&&(Y.stopPropagation(),Y.preventDefault(),Y.currentTarget.setPointerCapture?.(Y.pointerId),S.current=Y.pointerId,x.current={startX:Y.clientX,startY:Y.clientY},g())},D=Y=>{if(!x.current||S.current!==Y.pointerId)return;Y.stopPropagation(),Y.preventDefault();const{startX:oe,startY:J}=x.current,{clientX:re,clientY:le}=Y;x.current.deltaX=re-oe,x.current.deltaY=le-J;const ee=Y.currentTarget;ee.style.transitionProperty="translate",O(!0),d==="top-center"?x.current.deltaY<0?ee.style.top=`${x.current.deltaY}px`:(x.current=null,ee.hasPointerCapture?.(Y.pointerId)&&ee.releasePointerCapture(Y.pointerId)):d==="bottom-center"?x.current.deltaY>0?ee.style.bottom=`-${x.current.deltaY}px`:(x.current=null,ee.hasPointerCapture?.(Y.pointerId)&&ee.releasePointerCapture(Y.pointerId)):d.includes("left")?ee.style.left=`${x.current.deltaX}px`:d.includes("right")&&(ee.style.right=`-${x.current.deltaX}px`)},U=Y=>{if(Y.stopPropagation(),Y.preventDefault(),S.current!==Y.pointerId)return;const oe=Y.currentTarget;if(oe.style.transitionProperty="",oe.hasPointerCapture?.(Y.pointerId)&&oe.releasePointerCapture(Y.pointerId),!x.current){O(!1),S.current=null,w();return}const{deltaX:J=0,deltaY:re=0}=x.current,ee=d.includes("left")||d.includes("right")?J:re;if(J===0&&re===0){if((f??0)>=3&&!v){y?.(),O(!1),S.current=null,x.current=null,w();return}_();return}Math.abs(ee)>15?_():d==="top-center"?oe.style.top="0px":d==="bottom-center"?oe.style.bottom="0px":d.includes("left")?oe.style.left="0px":d.includes("right")&&(oe.style.right="0px"),O(!1),S.current=null,x.current=null,w()};return M0e(()=>{R(e)},[e]),h("div",{"data-comp":"RBSimpleToast",className:ae(w0e({open:C,hidden:!1,stacked:!1,motion:B}),!C&&"pointer-events-none",t),onPointerDown:I,onPointerMove:D,onPointerUp:U,onPointerLeave:U,onContextMenu:Y=>Y.preventDefault(),children:h("div",{className:ae(d0e({type:n,variant:r,hasAction:L,stacked:E,active:P})),style:P?{boxShadow:"none"}:void 0,onTouchEnd:()=>O(!1),children:ne(Ul,{className:"w-full items-stretch gap-3",children:[ne(Yo,{alignItems:"flex-start",className:ae(R6(),z&&"w-full justify-between gap-3"),children:[ne(Yo,{alignItems:"flex-start",className:ae(R6(),"min-w-0 flex-1"),children:[N?h("span",{className:f0e({type:n,tone:$,variant:r}),children:N}):null,ne(Ul,{className:ae(p0e(),"w-full"),children:[o?h("div",{className:ae(h0e(),A?"truncate":"wrap-break-word whitespace-pre-line"),children:o}):null,a?h("div",{className:ae(A?"truncate":"wrap-break-word whitespace-pre-line"),children:a}):null]})]}),V&&z?h("span",{className:"shrink-0",onPointerDown:Y=>Y.stopPropagation(),onPointerUp:Y=>Y.stopPropagation(),onClick:Y=>Y.stopPropagation(),children:h(Wr,{size:V.size,variant:V.variant,onClick:()=>{l?.(),u&&_?.()},children:s})}):null]}),V&&!z?h("span",{className:"inline-flex w-full justify-end",onPointerDown:Y=>Y.stopPropagation(),onPointerUp:Y=>Y.stopPropagation(),onClick:Y=>Y.stopPropagation(),children:h(Wr,{size:V.size,variant:V.variant,onClick:()=>{l?.(),u&&_?.()},children:s})}):null]})})})},{useEffect:k0e}=await q("react"),d_e=({className:t,open:e,resolve:n,onOpenChange:r})=>{const{barCodeValue:o}=aue(),{theme:a}=Q0();return k0e(()=>{o&&n(o)},[o,n]),ne(Vh,{className:ae("RBQrBarCodeGuideModal","max-h-full w-fit",t),open:e,header:{title:"QR 코드 스캔 가이드"},onOpenChange:r,children:[ne("div",{className:"text-fg-default text-body-sm-normal mt-[1.5rem] mb-[1rem] text-center leading-[1.5]",children:["바코드 USB를 로봇에 연결 후",h("br",{}),"로봇 명판에 QR 코드를 찍어주세요"]}),h("div",{className:"mx-auto w-[30rem] p-5",children:h("img",{src:Dx(a==="dark"?"/qr-bar-code-guide-dark-img.png":"/qr-bar-code-guide-img.webp"),alt:"qr-bar-code-guide",className:"w-full object-cover"})})]})};var V2={};const At=t=>typeof t=="string",Id=()=>{let t,e;const n=new Promise((r,o)=>{t=r,e=o});return n.resolve=t,n.reject=e,n},P6=t=>t==null?"":""+t,R0e=(t,e,n)=>{t.forEach(r=>{e[r]&&(n[r]=e[r])})},T0e=/###/g,A6=t=>t&&t.indexOf("###")>-1?t.replace(T0e,"."):t,I6=t=>!t||At(t),Gd=(t,e,n)=>{const r=At(e)?e.split("."):e;let o=0;for(;o<r.length-1;){if(I6(t))return{};const a=A6(r[o]);!t[a]&&n&&(t[a]=new n),Object.prototype.hasOwnProperty.call(t,a)?t=t[a]:t={},++o}return I6(t)?{}:{obj:t,k:A6(r[o])}},O6=(t,e,n)=>{const{obj:r,k:o}=Gd(t,e,Object);if(r!==void 0||e.length===1){r[o]=n;return}let a=e[e.length-1],i=e.slice(0,e.length-1),s=Gd(t,i,Object);for(;s.obj===void 0&&i.length;)a=`${i[i.length-1]}.${a}`,i=i.slice(0,i.length-1),s=Gd(t,i,Object),s?.obj&&typeof s.obj[`${s.k}.${a}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},N0e=(t,e,n,r)=>{const{obj:o,k:a}=Gd(t,e,Object);o[a]=o[a]||[],o[a].push(n)},U0=(t,e)=>{const{obj:n,k:r}=Gd(t,e);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},P0e=(t,e,n)=>{const r=U0(t,n);return r!==void 0?r:U0(e,n)},iR=(t,e,n)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?At(t[r])||t[r]instanceof String||At(e[r])||e[r]instanceof String?n&&(t[r]=e[r]):iR(t[r],e[r],n):t[r]=e[r]);return t},Ml=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var A0e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const I0e=t=>At(t)?t.replace(/[&<>"'\/]/g,e=>A0e[e]):t;class O0e{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const L0e=[" ",",","?","!",";"],$0e=new O0e(20),D0e=(t,e,n)=>{e=e||"",n=n||"";const r=L0e.filter(i=>e.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const o=$0e.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let a=!o.test(t);if(!a){const i=t.indexOf(n);i>0&&!o.test(t.substring(0,i))&&(a=!0)}return a},Xv=(t,e,n=".")=>{if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const r=e.split(n);let o=t;for(let a=0;a<r.length;){if(!o||typeof o!="object")return;let i,s="";for(let l=a;l<r.length;++l)if(l!==a&&(s+=n),s+=r[l],i=o[s],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&l<r.length-1)continue;a+=l-a+1;break}o=i}return o},uf=t=>t?.replace(/_/g,"-"),B0e={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console?.[t]?.apply?.(console,e)}};class Y0{constructor(e,n={}){this.init(e,n)}init(e,n={}){this.prefix=n.prefix||"i18next:",this.logger=e||B0e,this.options=n,this.debug=n.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,r,o){return o&&!this.debug?null:(At(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new Y0(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Y0(this.logger,e)}}var Ja=new Y0;class jh{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e,...n){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([o,a])=>{for(let i=0;i<a;i++)o(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,a])=>{for(let i=0;i<a;i++)o.apply(o,[e,...n])})}}class L6 extends jh{constructor(e,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,r,o={}){const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,i=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;e.indexOf(".")>-1?s=e.split("."):(s=[e,n],r&&(Array.isArray(r)?s.push(...r):At(r)&&a?s.push(...r.split(a)):s.push(r)));const l=U0(this.data,s);return!l&&!n&&!r&&e.indexOf(".")>-1&&(e=s[0],n=s[1],r=s.slice(2).join(".")),l||!i||!At(r)?l:Xv(this.data?.[e]?.[n],r,a)}addResource(e,n,r,o,a={silent:!1}){const i=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let s=[e,n];r&&(s=s.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(s=e.split("."),o=n,n=s[1]),this.addNamespaces(n),O6(this.data,s,o),a.silent||this.emit("added",e,n,r,o)}addResources(e,n,r,o={silent:!1}){for(const a in r)(At(r[a])||Array.isArray(r[a]))&&this.addResource(e,n,a,r[a],{silent:!0});o.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,o,a,i={silent:!1,skipCopy:!1}){let s=[e,n];e.indexOf(".")>-1&&(s=e.split("."),o=r,r=n,n=s[1]),this.addNamespaces(n);let l=U0(this.data,s)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?iR(l,r,a):l={...l,...r},O6(this.data,s,l),i.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var sR={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,o){return t.forEach(a=>{e=this.processors[a]?.process(e,n,r,o)??e}),e}};const lR=Symbol("i18next/PATH_KEY");function z0e(){const t=[],e=Object.create(null);let n;return e.get=(r,o)=>(n?.revoke?.(),o===lR?t:(t.push(o),n=Proxy.revocable(r,e),n.proxy)),Proxy.revocable(Object.create(null),e).proxy}function uu(t,e){const{[lR]:n}=t(z0e()),r=e?.keySeparator??".",o=e?.nsSeparator??":";if(n.length>1&&o){const a=e?.ns,i=Array.isArray(a)?a:null;if(i&&i.length>1&&i.slice(1).includes(n[0]))return`${n[0]}${o}${n.slice(1).join(r)}`}return n.join(r)}const $6={},j2=t=>!At(t)&&typeof t!="boolean"&&typeof t!="number";class G0 extends jh{constructor(e,n={}){super(),R0e(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ja.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,n={interpolation:{}}){const r={...n};if(e==null)return!1;const o=this.resolve(e,r);if(o?.res===void 0)return!1;const a=j2(o.res);return!(r.returnObjects===!1&&a)}extractFromKey(e,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let a=n.ns||this.options.defaultNS||[];const i=r&&e.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!D0e(e,r,o);if(i&&!s){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:At(a)?[a]:a};const u=e.split(r);(r!==o||r===o&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),e=u.join(o)}return{key:e,namespaces:At(a)?[a]:a}}translate(e,n,r){let o=typeof n=="object"?{...n}:n;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),e==null)return"";typeof e=="function"&&(e=uu(e,{...this.options,...o})),Array.isArray(e)||(e=[String(e)]),e=e.map(F=>typeof F=="function"?uu(F,{...this.options,...o}):String(F));const a=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(e[e.length-1],o),u=l[l.length-1];let d=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;d===void 0&&(d=":");const f=o.lng||this.language,m=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f?.toLowerCase()==="cimode")return m?a?{res:`${u}${d}${s}`,usedKey:s,exactUsedKey:s,usedLng:f,usedNS:u,usedParams:this.getUsedParamsDetails(o)}:`${u}${d}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:f,usedNS:u,usedParams:this.getUsedParamsDetails(o)}:s;const v=this.resolve(e,o);let g=v?.res;const w=v?.usedKey||s,y=v?.exactUsedKey||s,_=["[object Number]","[object Function]","[object RegExp]"],S=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,C=o.count!==void 0&&!At(o.count),R=G0.hasDefaultValue(o),P=C?this.pluralResolver.getSuffix(f,o.count,o):"",O=o.ordinal&&C?this.pluralResolver.getSuffix(f,o.count,{ordinal:!1}):"",L=C&&!o.ordinal&&o.count===0,A=L&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${P}`]||o[`defaultValue${O}`]||o.defaultValue;let E=g;x&&!g&&R&&(E=A);const $=j2(E),B=Object.prototype.toString.apply(E);if(x&&E&&$&&_.indexOf(B)<0&&!(At(S)&&Array.isArray(E))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const F=this.options.returnedObjectHandler?this.options.returnedObjectHandler(w,E,{...o,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(v.res=F,v.usedParams=this.getUsedParamsDetails(o),v):F}if(i){const F=Array.isArray(E),N=F?[]:{},V=F?y:w;for(const z in E)if(Object.prototype.hasOwnProperty.call(E,z)){const I=`${V}${i}${z}`;R&&!g?N[z]=this.translate(I,{...o,defaultValue:j2(A)?A[z]:void 0,joinArrays:!1,ns:l}):N[z]=this.translate(I,{...o,joinArrays:!1,ns:l}),N[z]===I&&(N[z]=E[z])}g=N}}else if(x&&At(S)&&Array.isArray(g))g=g.join(S),g&&(g=this.extendTranslation(g,e,o,r));else{let F=!1,N=!1;!this.isValidLookup(g)&&R&&(F=!0,g=A),this.isValidLookup(g)||(N=!0,g=s);const z=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&N?void 0:g,I=R&&A!==g&&this.options.updateMissing;if(N||F||I){if(this.logger.log(I?"updateKey":"missingKey",f,u,s,I?A:g),i){const oe=this.resolve(s,{...o,keySeparator:!1});oe&&oe.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 D=[];const U=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&U&&U[0])for(let oe=0;oe<U.length;oe++)D.push(U[oe]);else this.options.saveMissingTo==="all"?D=this.languageUtils.toResolveHierarchy(o.lng||this.language):D.push(o.lng||this.language);const Y=(oe,J,re)=>{const le=R&&re!==g?re:z;this.options.missingKeyHandler?this.options.missingKeyHandler(oe,u,J,le,I,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(oe,u,J,le,I,o),this.emit("missingKey",oe,u,J,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?D.forEach(oe=>{const J=this.pluralResolver.getSuffixes(oe,o);L&&o[`defaultValue${this.options.pluralSeparator}zero`]&&J.indexOf(`${this.options.pluralSeparator}zero`)<0&&J.push(`${this.options.pluralSeparator}zero`),J.forEach(re=>{Y([oe],s+re,o[`defaultValue${re}`]||A)})}):Y(D,s,A))}g=this.extendTranslation(g,e,o,v,r),N&&g===s&&this.options.appendNamespaceToMissingKey&&(g=`${u}${d}${s}`),(N||F)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${d}${s}`:s,F?g:void 0,o))}return a?(v.res=g,v.usedParams=this.getUsedParamsDetails(o),v):g}extendTranslation(e,n,r,o,a){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const l=At(e)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(l){const f=e.match(this.interpolator.nestingRegexp);u=f&&f.length}let d=r.replace&&!At(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),e=this.interpolator.interpolate(e,d,r.lng||this.language||o.usedLng,r),l){const f=e.match(this.interpolator.nestingRegexp),m=f&&f.length;u<m&&(r.nest=!1)}!r.lng&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,(...f)=>a?.[0]===f[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${n[0]}`),null):this.translate(...f,n),r)),r.interpolation&&this.interpolator.reset()}const i=r.postProcess||this.options.postProcess,s=At(i)?[i]:i;return e!=null&&s?.length&&r.applyPostProcessor!==!1&&(e=sR.handle(s,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,n={}){let r,o,a,i,s;return At(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(l=>typeof l=="function"?uu(l,{...this.options,...n}):l)),e.forEach(l=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(l,n),d=u.key;o=d;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const m=n.count!==void 0&&!At(n.count),v=m&&!n.ordinal&&n.count===0,g=n.context!==void 0&&(At(n.context)||typeof n.context=="number")&&n.context!=="",w=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(y=>{this.isValidLookup(r)||(s=y,!$6[`${w[0]}-${y}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(s)&&($6[`${w[0]}-${y}`]=!0,this.logger.warn(`key "${o}" for languages "${w.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!!!")),w.forEach(_=>{if(this.isValidLookup(r))return;i=_;const S=[d];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(S,d,_,y,n);else{let C;m&&(C=this.pluralResolver.getSuffix(_,n.count,n));const R=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(n.ordinal&&C.indexOf(P)===0&&S.push(d+C.replace(P,this.options.pluralSeparator)),S.push(d+C),v&&S.push(d+R)),g){const O=`${d}${this.options.contextSeparator||"_"}${n.context}`;S.push(O),m&&(n.ordinal&&C.indexOf(P)===0&&S.push(O+C.replace(P,this.options.pluralSeparator)),S.push(O+C),v&&S.push(O+R))}}let x;for(;x=S.pop();)this.isValidLookup(r)||(a=x,r=this.getResource(_,y,x,n))}))})}),{res:r,usedKey:o,exactUsedKey:a,usedLng:i,usedNS:s}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,n,r,o):this.resourceStore.getResource(e,n,r,o)}getUsedParamsDetails(e={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!At(e.replace);let o=r?e.replace:e;if(r&&typeof e.count<"u"&&(o.count=e.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const a of n)delete o[a]}return o}static hasDefaultValue(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&e[r]!==void 0)return!0;return!1}}class D6{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ja.create("languageUtils")}getScriptPartFromCode(e){if(e=uf(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=uf(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(At(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&e.forEach(r=>{if(n)return;const o=this.getScriptPartFromCode(r);if(this.isSupportedCode(o))return n=o;const a=this.getLanguagePartFromCode(r);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(i=>{if(i===a)return i;if(!(i.indexOf("-")<0&&a.indexOf("-")<0)&&(i.indexOf("-")>0&&a.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===a||i.indexOf(a)===0&&a.length>1))return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),At(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],e),o=[],a=i=>{i&&(this.isSupportedCode(i)?o.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return At(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):At(e)&&a(this.formatLanguageCode(e)),r.forEach(i=>{o.indexOf(i)<0&&a(this.formatLanguageCode(i))}),o}}const B6={zero:0,one:1,two:2,few:3,many:4,other:5},z6={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class F0e{constructor(e,n={}){this.languageUtils=e,this.options=n,this.logger=Ja.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,n={}){const r=uf(e==="dev"?"en":e),o=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:r,type:o});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let i;try{i=new Intl.PluralRules(r,{type:o})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),z6;if(!e.match(/-|_/))return z6;const l=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(l,n)}return this.pluralRulesCache[a]=i,i}needsPlural(e,n={}){let r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,n,r={}){return this.getSuffixes(e,r).map(o=>`${n}${o}`)}getSuffixes(e,n={}){let r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((o,a)=>B6[o]-B6[a]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(e,n,r={}){const o=this.getRule(e,r);return o?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,r))}}const F6=(t,e,n,r=".",o=!0)=>{let a=P0e(t,e,n);return!a&&o&&At(n)&&(a=Xv(t,n,r),a===void 0&&(a=Xv(e,n,r))),a},H2=t=>t.replace(/\$/g,"$$$$");class V6{constructor(e={}){this.logger=Ja.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(n=>n),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:a,prefixEscaped:i,suffix:s,suffixEscaped:l,formatSeparator:u,unescapeSuffix:d,unescapePrefix:f,nestingPrefix:m,nestingPrefixEscaped:v,nestingSuffix:g,nestingSuffixEscaped:w,nestingOptionsSeparator:y,maxReplaces:_,alwaysFormat:S}=e.interpolation;this.escape=n!==void 0?n:I0e,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=a?Ml(a):i||"{{",this.suffix=s?Ml(s):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=m?Ml(m):v||Ml("$t("),this.nestingSuffix=g?Ml(g):w||Ml(")"),this.nestingOptionsSeparator=y||",",this.maxReplaces=_||1e3,this.alwaysFormat=S!==void 0?S:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,n,r,o){let a,i,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=v=>{if(v.indexOf(this.formatSeparator)<0){const _=F6(n,l,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(_,void 0,r,{...o,...n,interpolationkey:v}):_}const g=v.split(this.formatSeparator),w=g.shift().trim(),y=g.join(this.formatSeparator).trim();return this.format(F6(n,l,w,this.options.keySeparator,this.options.ignoreJSONStructure),y,r,{...o,...n,interpolationkey:w})};this.resetRegExp();const d=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,f=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>H2(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?H2(this.escape(v)):H2(v)}].forEach(v=>{for(s=0;a=v.regex.exec(e);){const g=a[1].trim();if(i=u(g),i===void 0)if(typeof d=="function"){const y=d(e,a,o);i=At(y)?y:""}else if(o&&Object.prototype.hasOwnProperty.call(o,g))i="";else if(f){i=a[0];continue}else this.logger.warn(`missed to pass in variable ${g} for interpolating ${e}`),i="";else!At(i)&&!this.useRawValueToEscape&&(i=P6(i));const w=v.safeValue(i);if(e=e.replace(a[0],w),f?(v.regex.lastIndex+=i.length,v.regex.lastIndex-=a[0].length):v.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),e}nest(e,n,r={}){let o,a,i;const s=(l,u)=>{const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const f=l.split(new RegExp(`${Ml(d)}[ ]*{`));let m=`{${f[1]}`;l=f[0],m=this.interpolate(m,i);const v=m.match(/'/g),g=m.match(/"/g);((v?.length??0)%2===0&&!g||(g?.length??0)%2!==0)&&(m=m.replace(/'/g,'"'));try{i=JSON.parse(m),u&&(i={...u,...i})}catch(w){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,w),`${l}${d}${m}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,l};for(;o=this.nestingRegexp.exec(e);){let l=[];i={...r},i=i.replace&&!At(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;const u=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(u!==-1&&(l=o[1].slice(u).split(this.formatSeparator).map(d=>d.trim()).filter(Boolean),o[1]=o[1].slice(0,u)),a=n(s.call(this,o[1].trim(),i),i),a&&o[0]===e&&!At(a))return a;At(a)||(a=P6(a)),a||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`),a=""),l.length&&(a=l.reduce((d,f)=>this.format(d,f,r.lng,{...r,interpolationkey:o[1].trim()}),a.trim())),e=e.replace(o[0],a),this.regexp.lastIndex=0}return e}}const V0e=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);e==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):e==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(i=>{if(i){const[s,...l]=i.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),d=s.trim();n[d]||(n[d]=u),u==="false"&&(n[d]=!1),u==="true"&&(n[d]=!0),isNaN(u)||(n[d]=parseInt(u,10))}})}return{formatName:e,formatOptions:n}},j6=t=>{const e={};return(n,r,o)=>{let a=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(a={...a,[o.interpolationkey]:void 0});const i=r+JSON.stringify(a);let s=e[i];return s||(s=t(uf(r),o),e[i]=s),s(n)}},j0e=t=>(e,n,r)=>t(uf(n),r)(e);class H0e{constructor(e={}){this.logger=Ja.create("formatter"),this.options=e,this.init(e)}init(e,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?j6:j0e;this.formats={number:r((o,a)=>{const i=new Intl.NumberFormat(o,{...a});return s=>i.format(s)}),currency:r((o,a)=>{const i=new Intl.NumberFormat(o,{...a,style:"currency"});return s=>i.format(s)}),datetime:r((o,a)=>{const i=new Intl.DateTimeFormat(o,{...a});return s=>i.format(s)}),relativetime:r((o,a)=>{const i=new Intl.RelativeTimeFormat(o,{...a});return s=>i.format(s,a.range||"day")}),list:r((o,a)=>{const i=new Intl.ListFormat(o,{...a});return s=>i.format(s)})}}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=j6(n)}format(e,n,r,o={}){const a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(s=>s.indexOf(")")>-1)){const s=a.findIndex(l=>l.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,s)].join(this.formatSeparator)}return a.reduce((s,l)=>{const{formatName:u,formatOptions:d}=V0e(l);if(this.formats[u]){let f=s;try{const m=o?.formatParams?.[o.interpolationkey]||{},v=m.locale||m.lng||o.locale||o.lng||r;f=this.formats[u](s,v,{...d,...o,...m})}catch(m){this.logger.warn(m)}return f}else this.logger.warn(`there was no format function for ${u}`);return s},e)}}const W0e=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class q0e extends jh{constructor(e,n,r,o={}){super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=Ja.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,o.backend,o)}queueLoad(e,n,r,o){const a={},i={},s={},l={};return e.forEach(u=>{let d=!0;n.forEach(f=>{const m=`${u}|${f}`;!r.reload&&this.store.hasResourceBundle(u,f)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?i[m]===void 0&&(i[m]=!0):(this.state[m]=1,d=!1,i[m]===void 0&&(i[m]=!0),a[m]===void 0&&(a[m]=!0),l[f]===void 0&&(l[f]=!0)))}),d||(s[u]=!0)}),(Object.keys(a).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(a),pending:Object.keys(i),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(e,n,r){const o=e.split("|"),a=o[0],i=o[1];n&&this.emit("failedLoading",a,i,n),!n&&r&&this.store.addResourceBundle(a,i,r,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&r&&(this.state[e]=0);const s={};this.queue.forEach(l=>{N0e(l.loaded,[a],i),W0e(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{s[u]||(s[u]={});const d=l.loaded[u];d.length&&d.forEach(f=>{s[u][f]===void 0&&(s[u][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(e,n,r,o=0,a=this.retryTimeout,i){if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:o,wait:a,callback:i});return}this.readingCalls++;const s=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&d&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,r,o+1,a*2,i)},a);return}i(u,d)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(e,n);u&&typeof u.then=="function"?u.then(d=>s(null,d)).catch(s):s(null,u)}catch(u){s(u)}return}return l(e,n,s)}prepareLoading(e,n,r={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();At(e)&&(e=this.languageUtils.toResolveHierarchy(e)),At(n)&&(n=[n]);const a=this.queueLoad(e,n,r,o);if(!a.toLoad.length)return a.pending.length||o(),null;a.toLoad.forEach(i=>{this.loadOne(i)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e,n=""){const r=e.split("|"),o=r[0],a=r[1];this.read(o,a,"read",void 0,void 0,(i,s)=>{i&&this.logger.warn(`${n}loading namespace ${a} for language ${o} failed`,i),!i&&s&&this.logger.log(`${n}loaded namespace ${a} for language ${o}`,s),this.loaded(e,i,s)})}saveMissing(e,n,r,o,a,i={},s=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" 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(!(r==null||r==="")){if(this.backend?.create){const l={...i,isUpdate:a},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(e,n,r,o,l):d=u(e,n,r,o),d&&typeof d.then=="function"?d.then(f=>s(null,f)).catch(s):s(null,d)}catch(d){s(d)}else u(e,n,r,o,s,l)}!e||!e[0]||this.store.addResource(e[0],n,r,o)}}}const W2=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",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:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),At(t[1])&&(e.defaultValue=t[1]),At(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(r=>{e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),H6=t=>(At(t.ns)&&(t.ns=[t.ns]),At(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),At(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs?.indexOf?.("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t),T1=()=>{},U0e=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})},cR="__i18next_supportNoticeShown",Y0e=()=>!!(typeof globalThis<"u"&&globalThis[cR]||typeof process<"u"&&V2&&V2.I18NEXT_NO_SUPPORT_NOTICE||typeof process<"u"&&V2),G0e=()=>{typeof globalThis<"u"&&(globalThis[cR]=!0)},K0e=t=>!!(t?.modules?.backend?.name?.indexOf("Locize")>0||t?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||t?.options?.backend?.backends&&t.options.backend.backends.some(e=>e?.name?.indexOf("Locize")>0||e?.constructor?.name?.indexOf("Locize")>0)||t?.options?.backend?.projectId||t?.options?.backend?.backendOptions&&t.options.backend.backendOptions.some(e=>e?.projectId));class Kd extends jh{constructor(e={},n){if(super(),this.options=H6(e),this.services={},this.logger=Ja,this.modules={external:[]},U0e(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(e={},n){this.isInitializing=!0,typeof e=="function"&&(n=e,e={}),e.defaultNS==null&&e.ns&&(At(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const r=W2();this.options={...r,...this.options,...H6(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!K0e(this)&&!Y0e()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),G0e());const o=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?Ja.init(o(this.modules.logger),this.options):Ja.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=H0e;const d=new D6(this.options);this.store=new L6(this.options.resources,this.options);const f=this.services;f.logger=Ja,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new F0e(d,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),u&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(f.formatter=o(u),f.formatter.init&&f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new V6(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new q0e(o(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",(v,...g)=>{this.emit(v,...g)}),this.modules.languageDetector&&(f.languageDetector=o(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=o(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new G0(this.services,this.options),this.translator.on("*",(v,...g)=>{this.emit(v,...g)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,n||(n=T1),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[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(u=>{this[u]=(...d)=>this.store[u](...d)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...d)=>(this.store[u](...d),this)});const s=Id(),l=()=>{const u=(d,f)=>{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(f),n(d,f)};if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),s}loadResources(e,n=T1){let r=n;const o=At(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const a=[],i=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(u=>{u!=="cimode"&&a.indexOf(u)<0&&a.push(u)})};o?i(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>i(l)),this.options.preload?.forEach?.(s=>i(s)),this.services.backendConnector.load(a,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(e,n,r){const o=Id();return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),r||(r=T1),this.services.backendConnector.reload(e,n,a=>{o.resolve(),r(a)}),o}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&sR.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,n){this.isLanguageChangingTo=e;const r=Id();this.emit("languageChanging",e);const o=s=>{this.language=s,this.languages=this.services.languageUtils.toResolveHierarchy(s),this.resolvedLanguage=void 0,this.setResolvedLanguage(s)},a=(s,l)=>{l?this.isLanguageChangingTo===e&&(o(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve((...u)=>this.t(...u)),n&&n(s,(...u)=>this.t(...u))},i=s=>{!e&&!s&&this.services.languageDetector&&(s=[]);const l=At(s)?s:s&&s[0],u=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(At(s)?[s]:s);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector?.cacheUserLanguage?.(u)),this.loadResources(u,d=>{a(d,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?i(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e),r}getFixedT(e,n,r){const o=(a,i,...s)=>{let l;typeof i!="object"?l=this.options.overloadTranslationOptionHandler([a,i].concat(s)):l={...i},l.lng=l.lng||o.lng,l.lngs=l.lngs||o.lngs,l.ns=l.ns||o.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||o.keyPrefix);const u={...this.options,...l};typeof l.keyPrefix=="function"&&(l.keyPrefix=uu(l.keyPrefix,u));const d=this.options.keySeparator||".";let f;return l.keyPrefix&&Array.isArray(a)?f=a.map(m=>(typeof m=="function"&&(m=uu(m,u)),`${l.keyPrefix}${d}${m}`)):(typeof a=="function"&&(a=uu(a,u)),f=l.keyPrefix?`${l.keyPrefix}${d}${a}`:a),this.t(f,l)};return At(e)?o.lng=e:o.lngs=e,o.ns=n,o.keyPrefix=r,o}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,n={}){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;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(s,l)=>{const u=this.services.backendConnector.state[`${s}|${l}`];return u===-1||u===0||u===2};if(n.precheck){const s=n.precheck(this,i);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,e)&&(!o||i(a,e)))}loadNamespaces(e,n){const r=Id();return this.options.ns?(At(e)&&(e=[e]),e.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(e,n){const r=Id();At(e)&&(e=[e]);const o=this.options.preload||[],a=e.filter(i=>o.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return a.length?(this.options.preload=o.concat(a),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const o=new Intl.Locale(e);if(o&&o.getTextInfo){const a=o.getTextInfo();if(a&&a.direction)return a.direction}}catch{}const n=["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"],r=this.services?.languageUtils||new D6(W2());return e.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},n){const r=new Kd(e,n);return r.createInstance=Kd.createInstance,r}cloneInstance(e={},n=T1){const r=e.forkResourceStore;r&&delete e.forkResourceStore;const o={...this.options,...e,isClone:!0},a=new Kd(o);if((e.debug!==void 0||e.prefix!==void 0)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(s=>{a[s]=this[s]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r){const s=Object.keys(this.store.data).reduce((l,u)=>(l[u]={...this.store.data[u]},l[u]=Object.keys(l[u]).reduce((d,f)=>(d[f]={...l[u][f]},d),l[u]),l),{});a.store=new L6(s,o),a.services.resourceStore=a.store}if(e.interpolation){const l={...W2().interpolation,...this.options.interpolation,...e.interpolation},u={...o,interpolation:l};a.services.interpolator=new V6(u)}return a.translator=new G0(a.services,o),a.translator.on("*",(s,...l)=>{a.emit(s,...l)}),a.init(o,n),a.translator.options=o,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Pr=Kd.createInstance();Pr.createInstance;Pr.dir;Pr.init;Pr.loadResources;Pr.reloadResources;Pr.use;Pr.changeLanguage;Pr.getFixedT;Pr.t;Pr.exists;Pr.setDefaultNamespace;Pr.hasLoadedNamespace;Pr.loadNamespaces;Pr.loadLanguages;const X0e=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Z0e={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Q0e=t=>Z0e[t],J0e=t=>t.replace(X0e,Q0e);let W6={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:J0e,transDefaultProps:void 0};const ehe=(t={})=>{W6={...W6,...t}},the={type:"3rdParty",init(t){ehe(t.options.react)}},{createContext:nhe}=await q("react"),rhe=nhe(),{createElement:ohe,useMemo:ahe}=await q("react");function ihe({i18n:t,defaultNS:e,children:n}){const r=ahe(()=>({i18n:t,defaultNS:e}),[t,e]);return ohe(rhe.Provider,{value:r},n)}const{createContext:she,useContext:lhe}=await q("react");let che=(t=>String(t));const uhe=t=>{che=t.t.bind(t)},uR=she(null),f_e=()=>{const t=lhe(uR);if(!t)throw new Error("useLocalization must be used within RbLocalizationProvider");return t},{useCallback:dhe,useEffect:fhe,useMemo:phe,useState:q2}=await q("react"),p_e=({children:t,appName:e,resources:n,defaultLng:r="en",fallbackLng:o="en",separateInstance:a=!0})=>{const[i,s]=q2(null),[l,u]=q2(!1),[d,f]=q2(localStorage.getItem(`${e}_Language`)||r);fhe(()=>{(async()=>{try{const g=a?Pr.createInstance():Pr;await g.use(the).init({lng:d,fallbackLng:o,resources:n,interpolation:{escapeValue:!1}}),uhe(g),s(g),u(!0)}catch(g){console.error("Localization init Failed:",g)}})()},[n,d,o,a]);const m=dhe(g=>{i?.changeLanguage(g),f(g),localStorage.setItem(`${e}_Language`,g)},[i,e]),v=phe(()=>i?{i18n:i,t:i.t.bind(i),changeLanguage:m,currentLanguage:d}:null,[i,m,d]);return!l||!v?h("div",{className:"bg-default flex h-screen w-full items-center justify-center",children:h(Yk,{size:"3rem",className:"text-fg-default"})}):h(uR.Provider,{value:v,children:h(ihe,{i18n:i,children:t})})};export{Che as $,sH as A,Lee as B,lH as C,lw as D,rn as E,cw as F,he as G,ne as H,WU as I,lg as J,cg as K,vZ as L,HU as M,VU as N,_f as O,To as P,$he as Q,M8 as R,Hi as S,wZ as T,Yo as U,Wv as V,o6 as W,dz as X,Rhe as Y,afe as Z,Z3e as _,ad as a,Wr as a$,ebe as a0,abe as a1,sbe as a2,obe as a3,lbe as a4,tbe as a5,nbe as a6,ibe as a7,rbe as a8,ew as a9,jde as aA,Fde as aB,zde as aC,Dde as aD,$de as aE,Vde as aF,H3e as aG,cbe as aH,wbe as aI,gbe as aJ,dbe as aK,vbe as aL,ybe as aM,C1e as aN,pbe as aO,bbe as aP,_be as aQ,xbe as aR,fbe as aS,mbe as aT,hbe as aU,ube as aV,m6 as aW,d7 as aX,Mhe as aY,khe as aZ,Q3e as a_,QB as aa,GB as ab,qk as ac,Qfe as ad,Uk as ae,epe as af,sfe as ag,z3e as ah,Tk as ai,Ak as aj,Ik as ak,bde as al,j3e as am,xde as an,d0 as ao,Cde as ap,Sde as aq,zk as ar,yde as as,u0 as at,V3e as au,bz as av,Lde as aw,q3e as ax,W3e as ay,Bde as az,hg as b,jbe as b$,Sbe as b0,Abe as b1,Nbe as b2,Ebe as b3,Pbe as b4,Obe as b5,Cbe as b6,Mbe as b7,kbe as b8,Ibe as b9,efe as bA,Qde as bB,Zde as bC,nfe as bD,U3e as bE,Sfe as bF,u_e as bG,zbe as bH,Yk as bI,jue as bJ,Fbe as bK,Yfe as bL,Wk as bM,X3e as bN,ype as bO,Hbe as bP,Ube as bQ,Wbe as bR,qbe as bS,Gk as bT,_pe as bU,fF as bV,dfe as bW,cfe as bX,iw as bY,ufe as bZ,Vbe as b_,Lbe as ba,Bbe as bb,Rbe as bc,Dbe as bd,$be as be,Tbe as bf,Vh as bg,Vpe as bh,P3 as bi,G3e as bj,pfe as bk,d_e as bl,Fk as bm,Lfe as bn,F3e as bo,Ybe as bp,Kbe as bq,Gbe as br,qv as bs,Pk as bt,Bk as bu,Xde as bv,Y3e as bw,Jde as bx,rfe as by,tfe as bz,lh as c,DB as c$,J3e as c0,Ul as c1,tz as c2,xpe as c3,She as c4,l1e as c5,E$ as c6,KB as c7,jB as c8,K3e as c9,kn as cA,OE as cB,eve as cC,Mr as cD,TD as cE,B2e as cF,bhe as cG,Dx as cH,yhe as cI,rB as cJ,oB as cK,ND as cL,Rve as cM,Hd as cN,Dl as cO,Wo as cP,Cve as cQ,xo as cR,Cte as cS,dB as cT,zf as cU,DD as cV,$D as cW,OB as cX,LB as cY,$B as cZ,IB as c_,pz as ca,kpe as cb,tde as cc,ZL as cd,JB as ce,u7 as cf,Cfe as cg,pue as ch,vfe as ci,$fe as cj,sF as ck,Pz as cl,Qn as cm,E3 as cn,ace as co,oce as cp,C3 as cq,sce as cr,ice as cs,_k as ct,nn as cu,qce as cv,Q0 as cw,f_e as cx,Ohe as cy,Tve as cz,id as d,Zye as d$,AB as d0,Fq as d1,tc as d2,Rr as d3,rw as d4,K0 as d5,qme as d6,MD as d7,kD as d8,Ehe as d9,e_e as dA,Hye as dB,lye as dC,Jye as dD,vye as dE,oye as dF,kye as dG,Tye as dH,Rye as dI,Nye as dJ,Pye as dK,$ye as dL,mye as dM,Lye as dN,Oye as dO,Mye as dP,aye as dQ,Vye as dR,Iye as dS,Wye as dT,Kye as dU,n_e as dV,tye as dW,iye as dX,dye as dY,sye as dZ,eye as d_,SB as da,Ihe as db,ege as dc,tge as dd,nge as de,Bq as df,H$ as dg,q$ as dh,Xbe as di,Zbe as dj,Qbe as dk,t_e as dl,Gye as dm,Jbe as dn,Xye as dp,Bye as dq,Dye as dr,Uye as ds,uye as dt,Cye as du,Fye as dv,nye as dw,gye as dx,Yye as dy,wye as dz,fG as e,WD as e$,hye as e0,r_e as e1,jye as e2,zye as e3,Eye as e4,xye as e5,Qye as e6,fye as e7,pye as e8,bye as e9,_7 as eA,N7 as eB,df as eC,Eve as eD,Ahe as eE,B3e as eF,_D as eG,g7 as eH,k7 as eI,RB as eJ,pB as eK,JD as eL,lB as eM,zD as eN,m7 as eO,zB as eP,oM as eQ,Y$ as eR,c2e as eS,bve as eT,HD as eU,FD as eV,xB as eW,_B as eX,_he as eY,N3 as eZ,yB as e_,Sye as ea,_ye as eb,yye as ec,cye as ed,Aye as ee,qye as ef,rye as eg,che as eh,aue as ei,V7 as ej,Gn as ek,Xie as el,Phe as em,RD as en,O7 as eo,Q$ as ep,ZD as eq,eB as er,K$ as es,Th as et,Roe as eu,mD as ev,Z$ as ew,vB as ex,dD as ey,x7 as ez,Ws as f,age as f$,u8 as f0,d8 as f1,p8 as f2,f8 as f3,l8 as f4,Ph as f5,B$ as f6,mB as f7,hB as f8,X$ as f9,j$ as fA,pD as fB,ED as fC,Z0 as fD,xD as fE,bD as fF,Hs as fG,X0 as fH,KD as fI,fD as fJ,cD as fK,J2e as fL,mve as fM,nC as fN,nw as fO,ya as fP,EB as fQ,Gme as fR,Nhe as fS,oV as fT,rV as fU,xhe as fV,Ume as fW,Kce as fX,Ome as fY,Lwe as fZ,T7 as f_,qD as fa,aB as fb,LD as fc,fB as fd,wB as fe,gB as ff,V$ as fg,Qee as fh,E7 as fi,Jce as fj,Kme as fk,Gl as fl,Q2e as fm,Pse as fn,nk as fo,whe as fp,f7 as fq,jhe as fr,C7 as fs,Gz as ft,AD as fu,z$ as fv,F$ as fw,sD as fx,uB as fy,U$ as fz,qo as g,Yme as g0,Xme as g1,Ns as g2,Dee as g3,p_e as g4,The as g5,kve as g6,c_e as g7,yD as g8,sB as g9,oD as gA,Su as gB,iD as gC,Df as gD,uD as ga,bB as gb,nB as gc,vD as gd,XD as ge,nD as gf,nc as gg,sM as gh,Wme as gi,kte as gj,Hme as gk,Ste as gl,kr as gm,ute as gn,m3 as go,IE as gp,_ve as gq,S3 as gr,xve as gs,Fee as gt,zee as gu,CD as gv,UD as gw,nle as gx,kB as gy,hD as gz,bw as h,ln as i,h as j,Wt as k,it as l,v8 as m,I8 as n,yw as o,Go as p,X7 as q,cH as r,H7 as s,bf as t,Ko as u,yf as v,xf as w,ae as x,gZ as y,bZ as z};
|