@vis3/kit 1.1.9 → 1.1.11
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/index.mjs +7 -3
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5569,8 +5569,12 @@ function M$(t) {
|
|
|
5569
5569
|
function P$(t) {
|
|
5570
5570
|
if (!t || typeof t != "string")
|
|
5571
5571
|
return "";
|
|
5572
|
-
|
|
5573
|
-
|
|
5572
|
+
try {
|
|
5573
|
+
const e = new URL(t).pathname;
|
|
5574
|
+
return decodeURIComponent(e.split("/").pop() ?? "");
|
|
5575
|
+
} catch {
|
|
5576
|
+
return "";
|
|
5577
|
+
}
|
|
5574
5578
|
}
|
|
5575
5579
|
function sc(t) {
|
|
5576
5580
|
if (typeof t != "string" || !t)
|
|
@@ -88373,7 +88377,7 @@ function jue({ className: t, name: e, value: r, extraTail: n, titleExtra: i }) {
|
|
|
88373
88377
|
} catch (V) {
|
|
88374
88378
|
return l && l.length > 0 && h(V.toString()), l;
|
|
88375
88379
|
}
|
|
88376
|
-
}, [l]), [x] = n5(y), O = Ce(() => y ? Object.keys(y) : [], [y]), v = Ce(() => Hue.validate(y).length === 0, [y]), L = Ce(() => Eue.validate(y).length === 0, [y]), b = Ce(() => _ue.validate(y).length === 0, [y]), S = Et((V) => {
|
|
88380
|
+
}, [l]), [x] = n5(y), O = Ce(() => y ? typeof y != "object" ? [] : Object.keys(y) : [], [y]), v = Ce(() => Hue.validate(y).length === 0, [y]), L = Ce(() => Eue.validate(y).length === 0, [y]), b = Ce(() => _ue.validate(y).length === 0, [y]), S = Et((V) => {
|
|
88377
88381
|
if (V) {
|
|
88378
88382
|
const _ = O.filter((D) => v ? Cue.includes(D) : L ? Aue.includes(D) : b ? Mue.includes(D) : Pue.includes(D)).map((D) => ({
|
|
88379
88383
|
id: Ra(),
|
package/dist/index.umd.js
CHANGED
|
@@ -80,7 +80,7 @@ ${i}
|
|
|
80
80
|
* @license BSD-3-Clause
|
|
81
81
|
* @version 10.0.6
|
|
82
82
|
*/const cR="array",QR="bit",Bh="bits",TR="byte",jh="bytes",ji="",fR="exponent",hR="function",Ls="iec",dR="Invalid number",pR="Invalid rounding method",bs="jedec",mR="object",Fh=".",gR="round",OR="s",yR="kbit",vR="kB",xR=" ",LR="string",bR="0",tu={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}};function SR(e,{bits:t=!1,pad:r=!1,base:n=-1,round:i=2,locale:a=ji,localeOptions:o={},separator:s=ji,spacer:l=xR,symbols:u={},standard:c=ji,output:Q=LR,fullform:T=!1,fullforms:f=[],exponent:h=-1,roundingMethod:p=gR,precision:g=0}={}){let d=h,m=Number(e),y=[],x=0,O=ji;n===-1&&c.length===0?(n=10,c=bs):n===-1&&c.length>0?(c=c===Ls?Ls:bs,n=c===Ls?2:10):(n=n===2?2:10,c=n===10||c===bs?bs:Ls);const v=n===10?1e3:1024,L=T===!0,b=m<0,S=Math[p];if(typeof e!="bigint"&&isNaN(e))throw new TypeError(dR);if(typeof S!==hR)throw new TypeError(pR);if(b&&(m=-m),(d===-1||isNaN(d))&&(d=Math.floor(Math.log(m)/Math.log(v)),d<0&&(d=0)),d>8&&(g>0&&(g+=8-d),d=8),Q===fR)return d;if(m===0)y[0]=0,O=y[1]=tu.symbol[c][t?Bh:jh][d];else{x=m/(n===2?Math.pow(2,d*10):Math.pow(1e3,d)),t&&(x=x*8,x>=v&&d<8&&(x=x/v,d++));const E=Math.pow(10,d>0?i:0);y[0]=S(x*E)/E,y[0]===v&&d<8&&h===-1&&(y[0]=1,d++),O=y[1]=n===10&&d===1?t?yR:vR:tu.symbol[c][t?Bh:jh][d]}if(b&&(y[0]=-y[0]),g>0&&(y[0]=y[0].toPrecision(g)),y[1]=u[y[1]]||y[1],a===!0?y[0]=y[0].toLocaleString():a.length>0?y[0]=y[0].toLocaleString(a,o):s.length>0&&(y[0]=y[0].toString().replace(Fh,s)),r&&Number.isInteger(y[0])===!1&&i>0){const E=s||Fh,C=y[0].toString().split(E),A=C[1]||ji,w=A.length,M=i-w;y[0]=`${C[0]}${E}${A.padEnd(w+M,bR)}`}return L&&(y[1]=f[d]?f[d]:tu.fullform[c][d]+(t?QR:TR)+(y[0]===1?ji:OR)),Q===cR?y:Q===mR?{value:y[0],symbol:y[1],exponent:d,unit:O}:y.join(l)}const ER={type:"fileSize",name:"文件大小",desc:"格式化文件大小",format:(e,t={})=>{if($h(e))return"";const r={base:2,standard:"jedec",...t};return SR(+e,r)}},HR=Object.freeze(Object.defineProperty({__proto__:null,basename:aR,dateTime:lR,extension:uR,fileSize:ER},Symbol.toStringTag,{value:"Module"})),ru={...HR};function _R(e){if(ru[e.type]){console.warn(`Formatter ${e.type} already exists.`);return}ru[e.type]=e}function wR(e,t,r){const n=ru[e];return n?n.format(t,r):(console.error(`Formatter type: ${e} does not exist.`),t)}const Ss={add:_R,format:wR};var nu,qh;function CR(){return qh||(qh=1,nu={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),nu}var AR=CR();const MR=Dr(AR);var PR=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function Zh(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(MR[r[1]]||e.charAt(e.length-2)==="/")&&(t.voidElement=!0),t.name.startsWith("!--"))){var n=e.indexOf("-->");return{type:"comment",comment:n!==-1?e.slice(4,n):""}}for(var i=new RegExp(PR),a=null;(a=i.exec(e))!==null;)if(a[0].trim())if(a[1]){var o=a[1].trim(),s=[o,""];o.indexOf("=")>-1&&(s=o.split("=")),t.attrs[s[0]]=s[1],i.lastIndex--}else a[2]&&(t.attrs[a[2]]=a[3].trim().substring(1,a[3].length-1));return t}var kR=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,DR=/^\s*$/,VR=Object.create(null);function zh(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(r){var n=[];for(var i in r)n.push(i+'="'+r[i]+'"');return n.length?" "+n.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(zh,"")+"</"+t.name+">";case"comment":return e+"<!--"+t.comment+"-->"}}var RR={parse:function(e,t){t||(t={}),t.components||(t.components=VR);var r,n=[],i=[],a=-1,o=!1;if(e.indexOf("<")!==0){var s=e.indexOf("<");n.push({type:"text",content:s===-1?e:e.substring(0,s)})}return e.replace(kR,function(l,u){if(o){if(l!=="</"+r.name+">")return;o=!1}var c,Q=l.charAt(1)!=="/",T=l.startsWith("<!--"),f=u+l.length,h=e.charAt(f);if(T){var p=Zh(l);return a<0?(n.push(p),n):((c=i[a]).children.push(p),n)}if(Q&&(a++,(r=Zh(l)).type==="tag"&&t.components[r.name]&&(r.type="component",o=!0),r.voidElement||o||!h||h==="<"||r.children.push({type:"text",content:e.slice(f,e.indexOf("<",f))}),a===0&&n.push(r),(c=i[a-1])&&c.children.push(r),i[a]=r),(!Q||r.voidElement)&&(a>-1&&(r.voidElement||r.name===l.slice(2,-1))&&(a--,r=a===-1?n:i[a]),!o&&h!=="<"&&h)){c=a===-1?n:i[a].children;var g=e.indexOf("<",f),d=e.slice(f,g===-1?void 0:g);DR.test(d)&&(d=" "),(g>-1&&a+c.length>=0||d!==" ")&&c.push({type:"text",content:d})}}),n},stringify:function(e){return e.reduce(function(t,r){return t+zh("",r)},"")}};const Es=(...e)=>{console?.warn&&(F1(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},Xh={},m5=(...e)=>{F1(e[0])&&Xh[e[0]]||(F1(e[0])&&(Xh[e[0]]=new Date),Es(...e))},Uh=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},iu=(e,t,r)=>{e.loadNamespaces(t,Uh(e,r))},Wh=(e,t,r,n)=>{if(F1(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return iu(e,r,n);r.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,Uh(e,n))},IR=(e,t,r={})=>!t.languages||!t.languages.length?(m5("i18n.languages were undefined or empty",t.languages),!0):t.hasLoadedNamespace(e,{lng:r.lng,precheck:(n,i)=>{if(r.bindI18n?.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!i(n.isLanguageChangingTo,e))return!1}}),Gh=e=>e.displayName||e.name||(F1(e)&&e.length>0?e:"Unknown"),F1=e=>typeof e=="string",T4=e=>typeof e=="object"&&e!==null,NR=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,$R={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},BR=e=>$R[e];let au={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(NR,BR)};const Yh=(e={})=>{au={...au,...e}},ou=()=>au;let Kh;const Jh=e=>{Kh=e},Fi=()=>Kh,su=(e,t)=>{if(!e)return!1;const r=e.props?.children??e.children;return t?r.length>0:!!r},lu=e=>{if(!e)return[];const t=e.props?.children??e.children;return e.props?.i18nIsDynamicList?qi(t):t},jR=e=>Array.isArray(e)&&e.every(W.isValidElement),qi=e=>Array.isArray(e)?e:[e],FR=(e,t)=>{const r={...t};return r.props=Object.assign(e.props,t.props),r},ed=(e,t)=>{if(!e)return"";let r="";const n=qi(e),i=t?.transSupportBasicHtmlNodes?t.transKeepBasicHtmlNodesFor??[]:[];return n.forEach((a,o)=>{if(F1(a))r+=`${a}`;else if(W.isValidElement(a)){const{props:s,type:l}=a,u=Object.keys(s).length,c=i.indexOf(l)>-1,Q=s.children;if(!Q&&c&&!u)r+=`<${l}/>`;else if(!Q&&(!c||u)||s.i18nIsDynamicList)r+=`<${o}></${o}>`;else if(c&&u===1&&F1(Q))r+=`<${l}>${Q}</${l}>`;else{const T=ed(Q,t);r+=`<${o}>${T}</${o}>`}}else if(a===null)Es("Trans: the passed in value is invalid - seems you passed in a null child.");else if(T4(a)){const{format:s,...l}=a,u=Object.keys(l);if(u.length===1){const c=s?`${u[0]}, ${s}`:u[0];r+=`{{${c}}}`}else Es("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",a)}else Es("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",a)}),r},qR=(e,t,r,n,i,a)=>{if(t==="")return[];const o=n.transKeepBasicHtmlNodesFor||[],s=t&&new RegExp(o.map(g=>`<${g}`).join("|")).test(t);if(!e&&!s&&!a)return[t];const l={},u=g=>{qi(g).forEach(m=>{F1(m)||(su(m)?u(lu(m)):T4(m)&&!W.isValidElement(m)&&Object.assign(l,m))})};u(e);const c=RR.parse(`<0>${t}</0>`),Q={...l,...i},T=(g,d,m)=>{const y=lu(g),x=h(y,d.children,m);return jR(y)&&x.length===0||g.props?.i18nIsDynamicList?y:x},f=(g,d,m,y,x)=>{g.dummy?(g.children=d,m.push(W.cloneElement(g,{key:y},x?void 0:d))):m.push(...W.Children.map([g],O=>{const v={...O.props};return delete v.i18nIsDynamicList,W.createElement(O.type,{...v,key:y,ref:O.ref},x?null:d)}))},h=(g,d,m)=>{const y=qi(g);return qi(d).reduce((O,v,L)=>{const b=v.children?.[0]?.content&&r.services.interpolator.interpolate(v.children[0].content,Q,r.language);if(v.type==="tag"){let S=y[parseInt(v.name,10)];m.length===1&&!S&&(S=m[0][v.name]),S||(S={});const E=Object.keys(v.attrs).length!==0?FR({props:v.attrs},S):S,C=W.isValidElement(E),A=C&&su(v,!0)&&!v.voidElement,w=s&&T4(E)&&E.dummy&&!C,M=T4(e)&&Object.hasOwnProperty.call(e,v.name);if(F1(E)){const P=r.services.interpolator.interpolate(E,Q,r.language);O.push(P)}else if(su(E)||A){const P=T(E,v,m);f(E,P,O,L)}else if(w){const P=h(y,v.children,m);f(E,P,O,L)}else if(Number.isNaN(parseFloat(v.name)))if(M){const P=T(E,v,m);f(E,P,O,L,v.voidElement)}else if(n.transSupportBasicHtmlNodes&&o.indexOf(v.name)>-1)if(v.voidElement)O.push(W.createElement(v.name,{key:`${v.name}-${L}`}));else{const P=h(y,v.children,m);O.push(W.createElement(v.name,{key:`${v.name}-${L}`},P))}else if(v.voidElement)O.push(`<${v.name} />`);else{const P=h(y,v.children,m);O.push(`<${v.name}>${P}</${v.name}>`)}else if(T4(E)&&!C){const P=v.children[0]?b:null;P&&O.push(P)}else f(E,b,O,L,v.children.length!==1||!b)}else if(v.type==="text"){const S=n.transWrapTextNodes,E=a?n.unescape(r.services.interpolator.interpolate(v.content,Q,r.language)):r.services.interpolator.interpolate(v.content,Q,r.language);S?O.push(W.createElement(S,{key:`${v.name}-${L}`},E)):O.push(E)}return O},[])},p=h([{dummy:!0,children:e||[]}],c,qi(e||[]));return lu(p[0])},td=(e,t,r)=>{const n=e.key||t,i=W.cloneElement(e,{key:n});if(!i.props||!i.props.children||r.indexOf(`${t}/>`)<0&&r.indexOf(`${t} />`)<0)return i;function a(){return W.createElement(W.Fragment,null,i)}return W.createElement(a)},ZR=(e,t)=>e.map((r,n)=>td(r,n,t)),zR=(e,t)=>{const r={};return Object.keys(e).forEach(n=>{Object.assign(r,{[n]:td(e[n],n,t)})}),r},XR=(e,t)=>e?Array.isArray(e)?ZR(e,t):T4(e)?zR(e,t):(m5("<Trans /> component prop expects an object or an array"),null):null;function rd({children:e,count:t,parent:r,i18nKey:n,context:i,tOptions:a={},values:o,defaults:s,components:l,ns:u,i18n:c,t:Q,shouldUnescape:T,...f}){const h=c||Fi();if(!h)return m5("You will need to pass in an i18next instance by using i18nextReactModule"),e;const p=Q||h.t.bind(h)||(A=>A),g={...ou(),...h.options?.react};let d=u||p.ns||h.options?.defaultNS;d=F1(d)?[d]:d||["translation"];const m=ed(e,g),y=s||m||g.transEmptyNodeValue||n,{hashTransKey:x}=g,O=n||(x?x(m||y):m||y);h.options?.interpolation?.defaultVariables&&(o=o&&Object.keys(o).length>0?{...o,...h.options.interpolation.defaultVariables}:{...h.options.interpolation.defaultVariables});const v=o||t!==void 0&&!h.options?.interpolation?.alwaysFormat||!e?a.interpolation:{interpolation:{...a.interpolation,prefix:"#$?",suffix:"?$#"}},L={...a,context:i||a.context,count:t,...o,...v,defaultValue:y,ns:d},b=O?p(O,L):y,S=XR(l,b),E=qR(S||e,b,h,g,L,T),C=r??g.defaultTransParent;return C?W.createElement(C,f,E):E}const nd={type:"3rdParty",init(e){Yh(e.options.react),Jh(e)}},g5=W.createContext();class UR{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const id=e=>async t=>{const r=await e.getInitialProps?.(t)??{},n=ad();return{...r,...n}},ad=()=>{const e=Fi(),t=e.reportNamespaces?.getUsedNamespaces()??[],r={},n={};return e.languages.forEach(i=>{n[i]={},t.forEach(a=>{n[i][a]=e.getResourceBundle(i,a)||{}})}),r.initialI18nStore=n,r.initialLanguage=e.language,r};function WR({children:e,count:t,parent:r,i18nKey:n,context:i,tOptions:a={},values:o,defaults:s,components:l,ns:u,i18n:c,t:Q,shouldUnescape:T,...f}){const{i18n:h,defaultNS:p}=W.useContext(g5)||{},g=c||h||Fi(),d=Q||g?.t.bind(g);return rd({children:e,count:t,parent:r,i18nKey:n,context:i,tOptions:a,values:o,defaults:s,components:l,ns:u||d?.ns||p||g?.options?.defaultNS,i18n:g,t:Q,shouldUnescape:T,...f})}const GR=(e,t)=>{const r=W.useRef();return W.useEffect(()=>{r.current=e},[e,t]),r.current},od=(e,t,r,n)=>e.getFixedT(t,r,n),YR=(e,t,r,n)=>W.useCallback(od(e,t,r,n),[e,t,r,n]),Jt=(e,t={})=>{const{i18n:r}=t,{i18n:n,defaultNS:i}=W.useContext(g5)||{},a=r||n||Fi();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new UR),!a){m5("You will need to pass in an i18next instance by using initReactI18next");const x=(v,L)=>F1(L)?L:T4(L)&&F1(L.defaultValue)?L.defaultValue:Array.isArray(v)?v[v.length-1]:v,O=[x,{},!1];return O.t=x,O.i18n={},O.ready=!1,O}a.options.react?.wait&&m5("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...ou(),...a.options.react,...t},{useSuspense:s,keyPrefix:l}=o;let u=e||i||a.options?.defaultNS;u=F1(u)?[u]:u||["translation"],a.reportNamespaces.addUsedNamespaces?.(u);const c=(a.isInitialized||a.initializedStoreOnce)&&u.every(x=>IR(x,a,o)),Q=YR(a,t.lng||null,o.nsMode==="fallback"?u:u[0],l),T=()=>Q,f=()=>od(a,t.lng||null,o.nsMode==="fallback"?u:u[0],l),[h,p]=W.useState(T);let g=u.join();t.lng&&(g=`${t.lng}${g}`);const d=GR(g),m=W.useRef(!0);W.useEffect(()=>{const{bindI18n:x,bindI18nStore:O}=o;m.current=!0,!c&&!s&&(t.lng?Wh(a,t.lng,u,()=>{m.current&&p(f)}):iu(a,u,()=>{m.current&&p(f)})),c&&d&&d!==g&&m.current&&p(f);const v=()=>{m.current&&p(f)};return x&&a?.on(x,v),O&&a?.store.on(O,v),()=>{m.current=!1,a&&x?.split(" ").forEach(L=>a.off(L,v)),O&&a&&O.split(" ").forEach(L=>a.store.off(L,v))}},[a,g]),W.useEffect(()=>{m.current&&c&&p(T)},[a,l,c]);const y=[h,a,c];if(y.t=h,y.i18n=a,y.ready=c,c||!c&&!s)return y;throw new Promise(x=>{t.lng?Wh(a,t.lng,u,()=>x()):iu(a,u,()=>x())})},KR=(e,t={})=>function(n){function i({forwardedRef:o,...s}){const[l,u,c]=Jt(e,{...s,keyPrefix:t.keyPrefix}),Q={...s,t:l,i18n:u,tReady:c};return t.withRef&&o?Q.ref=o:!t.withRef&&o&&(Q.forwardedRef=o),W.createElement(n,Q)}i.displayName=`withI18nextTranslation(${Gh(n)})`,i.WrappedComponent=n;const a=(o,s)=>W.createElement(i,Object.assign({},o,{forwardedRef:s}));return t.withRef?W.forwardRef(a):i},JR=({ns:e,children:t,...r})=>{const[n,i,a]=Jt(e,r);return t(n,{i18n:i,lng:i.language},a)};function sd({i18n:e,defaultNS:t,children:r}){const n=W.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return W.createElement(g5.Provider,{value:n},r)}const ld=(e,t,r={})=>{const{i18n:n}=r,{i18n:i}=W.useContext(g5)||{},a=n||i||Fi();a.options?.isClone||(e&&!a.initializedStoreOnce&&(a.services.resourceStore.data=e,a.options.ns=Object.values(e).reduce((o,s)=>(Object.keys(s).forEach(l=>{o.indexOf(l)<0&&o.push(l)}),o),a.options.ns),a.initializedStoreOnce=!0,a.isInitialized=!0),t&&!a.initializedLanguageOnce&&(a.changeLanguage(t),a.initializedLanguageOnce=!0))},eI=()=>function(t){function r({initialI18nStore:n,initialLanguage:i,...a}){return ld(n,i),W.createElement(t,{...a})}return r.getInitialProps=id(t),r.displayName=`withI18nextSSR(${Gh(t)})`,r.WrappedComponent=t,r},tI=()=>"",rI=()=>"",nI=()=>"",iI=()=>"",aI=()=>"",oI=()=>"",ke=e=>typeof e=="string",O5=()=>{let e,t;const r=new Promise((n,i)=>{e=n,t=i});return r.resolve=e,r.reject=t,r},ud=e=>e==null?"":""+e,sI=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},lI=/###/g,cd=e=>e&&e.indexOf("###")>-1?e.replace(lI,"."):e,Qd=e=>!e||ke(e),y5=(e,t,r)=>{const n=ke(t)?t.split("."):t;let i=0;for(;i<n.length-1;){if(Qd(e))return{};const a=cd(n[i]);!e[a]&&r&&(e[a]=new r),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++i}return Qd(e)?{}:{obj:e,k:cd(n[i])}},Td=(e,t,r)=>{const{obj:n,k:i}=y5(e,t,Object);if(n!==void 0||t.length===1){n[i]=r;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=y5(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=y5(e,o,Object),s&&s.obj&&typeof s.obj[`${s.k}.${a}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=r},uI=(e,t,r,n)=>{const{obj:i,k:a}=y5(e,t,Object);i[a]=i[a]||[],i[a].push(r)},Hs=(e,t)=>{const{obj:r,k:n}=y5(e,t);if(r)return r[n]},cI=(e,t,r)=>{const n=Hs(e,r);return n!==void 0?n:Hs(t,r)},fd=(e,t,r)=>{for(const n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?ke(e[n])||e[n]instanceof String||ke(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):fd(e[n],t[n],r):e[n]=t[n]);return e},Zi=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var QI={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const TI=e=>ke(e)?e.replace(/[&<>"'\/]/g,t=>QI[t]):e;class fI{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}const hI=[" ",",","?","!",";"],dI=new fI(20),pI=(e,t,r)=>{t=t||"",r=r||"";const n=hI.filter(o=>t.indexOf(o)<0&&r.indexOf(o)<0);if(n.length===0)return!0;const i=dI.getRegExp(`(${n.map(o=>o==="?"?"\\?":o).join("|")})`);let a=!i.test(e);if(!a){const o=e.indexOf(r);o>0&&!i.test(e.substring(0,o))&&(a=!0)}return a},uu=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const n=t.split(r);let i=e;for(let a=0;a<n.length;){if(!i||typeof i!="object")return;let o,s="";for(let l=a;l<n.length;++l)if(l!==a&&(s+=r),s+=n[l],o=i[s],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&l<n.length-1)continue;a+=l-a+1;break}i=o}return i},_s=e=>e&&e.replace("_","-"),mI={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class ws{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||mI,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,n,i){return i&&!this.debug?null:(ke(t[0])&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new ws(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new ws(this.logger,t)}}var Nr=new ws;class Cs{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const i=this.observers[n].get(r)||0;this.observers[n].set(r,i+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(o=>{let[s,l]=o;for(let u=0;u<l;u++)s(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(o=>{let[s,l]=o;for(let u=0;u<l;u++)s.apply(s,[t,...n])})}}class hd extends Cs{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,r],n&&(Array.isArray(n)?s.push(...n):ke(n)&&a?s.push(...n.split(a)):s.push(n)));const l=Hs(this.data,s);return!l&&!r&&!n&&t.indexOf(".")>-1&&(t=s[0],r=s[1],n=s.slice(2).join(".")),l||!o||!ke(n)?l:uu(this.data&&this.data[t]&&this.data[t][r],n,a)}addResource(t,r,n,i){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let s=[t,r];n&&(s=s.concat(o?n.split(o):n)),t.indexOf(".")>-1&&(s=t.split("."),i=r,r=s[1]),this.addNamespaces(r),Td(this.data,s,i),a.silent||this.emit("added",t,r,n,i)}addResources(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in n)(ke(n[a])||Array.isArray(n[a]))&&this.addResource(t,r,a,n[a],{silent:!0});i.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,i,a){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[t,r];t.indexOf(".")>-1&&(s=t.split("."),i=n,n=r,r=s[1]),this.addNamespaces(r);let l=Hs(this.data,s)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),i?fd(l,n,a):l={...l,...n},Td(this.data,s,l),o.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,r)}:this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(i=>r[i]&&Object.keys(r[i]).length>0)}toJSON(){return this.data}}var dd={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,i){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,r,n,i))}),t}};const pd={};class As extends Cs{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),sI(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Nr.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const n=this.resolve(t,r);return n&&n.res!==void 0}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let a=r.ns||this.options.defaultNS||[];const o=n&&t.indexOf(n)>-1,s=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!pI(t,n,i);if(o&&!s){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:ke(a)?[a]:a};const u=t.split(n);(n!==i||n===i&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),t=u.join(i)}return{key:t,namespaces:ke(a)?[a]:a}}translate(t,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:o,namespaces:s}=this.extractFromKey(t[t.length-1],r),l=s[s.length-1],u=r.lng||this.language,c=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const x=r.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${x}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${x}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:o}const Q=this.resolve(t,r);let T=Q&&Q.res;const f=Q&&Q.usedKey||o,h=Q&&Q.exactUsedKey||o,p=Object.prototype.toString.apply(T),g=["[object Number]","[object Function]","[object RegExp]"],d=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,y=!ke(T)&&typeof T!="boolean"&&typeof T!="number";if(m&&T&&y&&g.indexOf(p)<0&&!(ke(d)&&Array.isArray(T))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const x=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,T,{...r,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(Q.res=x,Q.usedParams=this.getUsedParamsDetails(r),Q):x}if(a){const x=Array.isArray(T),O=x?[]:{},v=x?h:f;for(const L in T)if(Object.prototype.hasOwnProperty.call(T,L)){const b=`${v}${a}${L}`;O[L]=this.translate(b,{...r,joinArrays:!1,ns:s}),O[L]===b&&(O[L]=T[L])}T=O}}else if(m&&ke(d)&&Array.isArray(T))T=T.join(d),T&&(T=this.extendTranslation(T,t,r,n));else{let x=!1,O=!1;const v=r.count!==void 0&&!ke(r.count),L=As.hasDefaultValue(r),b=v?this.pluralResolver.getSuffix(u,r.count,r):"",S=r.ordinal&&v?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",E=v&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),C=E&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${b}`]||r[`defaultValue${S}`]||r.defaultValue;!this.isValidLookup(T)&&L&&(x=!0,T=C),this.isValidLookup(T)||(O=!0,T=o);const w=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&O?void 0:T,M=L&&C!==T&&this.options.updateMissing;if(O||x||M){if(this.logger.log(M?"updateKey":"missingKey",u,l,o,M?C:T),a){const R=this.resolve(o,{...r,keySeparator:!1});R&&R.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 P=[];const N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&N&&N[0])for(let R=0;R<N.length;R++)P.push(N[R]);else this.options.saveMissingTo==="all"?P=this.languageUtils.toResolveHierarchy(r.lng||this.language):P.push(r.lng||this.language);const j=(R,V,_)=>{const D=L&&_!==T?_:w;this.options.missingKeyHandler?this.options.missingKeyHandler(R,l,V,D,M,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(R,l,V,D,M,r),this.emit("missingKey",R,l,V,T)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?P.forEach(R=>{const V=this.pluralResolver.getSuffixes(R,r);E&&r[`defaultValue${this.options.pluralSeparator}zero`]&&V.indexOf(`${this.options.pluralSeparator}zero`)<0&&V.push(`${this.options.pluralSeparator}zero`),V.forEach(_=>{j([R],o+_,r[`defaultValue${_}`]||C)})}):j(P,o,C))}T=this.extendTranslation(T,t,r,Q,n),O&&T===o&&this.options.appendNamespaceToMissingKey&&(T=`${l}:${o}`),(O||x)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?T=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,x?T:void 0):T=this.options.parseMissingKeyHandler(T))}return i?(Q.res=T,Q.usedParams=this.getUsedParamsDetails(r),Q):T}extendTranslation(t,r,n,i,a){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const u=ke(t)&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const T=t.match(this.interpolator.nestingRegexp);c=T&&T.length}let Q=n.replace&&!ke(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(Q={...this.options.interpolation.defaultVariables,...Q}),t=this.interpolator.interpolate(t,Q,n.lng||this.language||i.usedLng,n),u){const T=t.match(this.interpolator.nestingRegexp),f=T&&T.length;c<f&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(n.lng=this.language||i.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var T=arguments.length,f=new Array(T),h=0;h<T;h++)f[h]=arguments[h];return a&&a[0]===f[0]&&!n.context?(o.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${r[0]}`),null):o.translate(...f,r)},n)),n.interpolation&&this.interpolator.reset()}const s=n.postProcess||this.options.postProcess,l=ke(s)?[s]:s;return t!=null&&l&&l.length&&n.applyPostProcessor!==!1&&(t=dd.handle(l,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,i,a,o,s;return ke(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(n))return;const u=this.extractFromKey(l,r),c=u.key;i=c;let Q=u.namespaces;this.options.fallbackNS&&(Q=Q.concat(this.options.fallbackNS));const T=r.count!==void 0&&!ke(r.count),f=T&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),h=r.context!==void 0&&(ke(r.context)||typeof r.context=="number")&&r.context!=="",p=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);Q.forEach(g=>{this.isValidLookup(n)||(s=g,!pd[`${p[0]}-${g}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(pd[`${p[0]}-${g}`]=!0,this.logger.warn(`key "${i}" for languages "${p.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!!!")),p.forEach(d=>{if(this.isValidLookup(n))return;o=d;const m=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(m,c,d,g,r);else{let x;T&&(x=this.pluralResolver.getSuffix(d,r.count,r));const O=`${this.options.pluralSeparator}zero`,v=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(T&&(m.push(c+x),r.ordinal&&x.indexOf(v)===0&&m.push(c+x.replace(v,this.options.pluralSeparator)),f&&m.push(c+O)),h){const L=`${c}${this.options.contextSeparator}${r.context}`;m.push(L),T&&(m.push(L+x),r.ordinal&&x.indexOf(v)===0&&m.push(L+x.replace(v,this.options.pluralSeparator)),f&&m.push(L+O))}}let y;for(;y=m.pop();)this.isValidLookup(n)||(a=y,n=this.getResource(d,g,y,r))}))})}),{res:n,usedKey:i,exactUsedKey:a,usedLng:o,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,n,i):this.resourceStore.getResource(t,r,n,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&!ke(t.replace);let i=n?t.replace:t;if(n&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!n){i={...i};for(const a of r)delete i[a]}return i}static hasDefaultValue(t){const r="defaultValue";for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}}const cu=e=>e.charAt(0).toUpperCase()+e.slice(1);class md{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Nr.create("languageUtils")}getScriptPartFromCode(t){if(t=_s(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=_s(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(ke(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let i=Intl.getCanonicalLocales(t)[0];if(i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i)return i}catch{}const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map(i=>i.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=cu(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=cu(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=cu(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;const i=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(i))&&(r=i)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const i=this.getLanguagePartFromCode(n);if(this.isSupportedCode(i))return r=i;r=this.options.supportedLngs.find(a=>{if(a===i)return a;if(!(a.indexOf("-")<0&&i.indexOf("-")<0)&&(a.indexOf("-")>0&&i.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===i||a.indexOf(i)===0&&i.length>1))return a})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),ke(t)&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}toResolveHierarchy(t,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],t),i=[],a=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return ke(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):ke(t)&&a(this.formatLanguageCode(t)),n.forEach(o=>{i.indexOf(o)<0&&a(this.formatLanguageCode(o))}),i}}let gI=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],OI={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const yI=["v1","v2","v3"],vI=["v4"],gd={zero:0,one:1,two:2,few:3,many:4,other:5},xI=()=>{const e={};return gI.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:OI[t.fc]}})}),e};class LI{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=Nr.create("pluralResolver"),(!this.options.compatibilityJSON||vI.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=xI(),this.pluralRulesCache={}}addRule(t,r){this.rules[t]=r}clearCache(){this.pluralRulesCache={}}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const n=_s(t==="dev"?"en":t),i=r.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:n,type:i});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let o;try{o=new Intl.PluralRules(n,{type:i})}catch{if(!t.match(/-|_/))return;const l=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(l,r)}return this.pluralRulesCache[a]=o,o}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,n).map(i=>`${r}${i}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((i,a)=>gd[i]-gd[a]).map(i=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i}`):n.numbers.map(i=>this.getSuffix(t,i,r)):[]}getSuffix(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,n);return i?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(r)}`:this.getSuffixRetroCompatible(i,r):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,r){const n=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));let i=t.numbers[n];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const a=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!yI.includes(this.options.compatibilityJSON)}}const Od=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=cI(e,t,r);return!a&&i&&ke(r)&&(a=uu(e,r,n),a===void 0&&(a=uu(t,r,n))),a},Qu=e=>e.replace(/\$/g,"$$$$");class bI{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Nr.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:i,prefix:a,prefixEscaped:o,suffix:s,suffixEscaped:l,formatSeparator:u,unescapeSuffix:c,unescapePrefix:Q,nestingPrefix:T,nestingPrefixEscaped:f,nestingSuffix:h,nestingSuffixEscaped:p,nestingOptionsSeparator:g,maxReplaces:d,alwaysFormat:m}=t.interpolation;this.escape=r!==void 0?r:TI,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=a?Zi(a):o||"{{",this.suffix=s?Zi(s):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":Q||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=T?Zi(T):f||Zi("$t("),this.nestingSuffix=h?Zi(h):p||Zi(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=d||1e3,this.alwaysFormat=m!==void 0?m:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,n,i){let a,o,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=f=>{if(f.indexOf(this.formatSeparator)<0){const d=Od(r,l,f,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(d,void 0,n,{...i,...r,interpolationkey:f}):d}const h=f.split(this.formatSeparator),p=h.shift().trim(),g=h.join(this.formatSeparator).trim();return this.format(Od(r,l,p,this.options.keySeparator,this.options.ignoreJSONStructure),g,n,{...i,...r,interpolationkey:p})};this.resetRegExp();const c=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,Q=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:f=>Qu(f)},{regex:this.regexp,safeValue:f=>this.escapeValue?Qu(this.escape(f)):Qu(f)}].forEach(f=>{for(s=0;a=f.regex.exec(t);){const h=a[1].trim();if(o=u(h),o===void 0)if(typeof c=="function"){const g=c(t,a,i);o=ke(g)?g:""}else if(i&&Object.prototype.hasOwnProperty.call(i,h))o="";else if(Q){o=a[0];continue}else this.logger.warn(`missed to pass in variable ${h} for interpolating ${t}`),o="";else!ke(o)&&!this.useRawValueToEscape&&(o=ud(o));const p=f.safeValue(o);if(t=t.replace(a[0],p),Q?(f.regex.lastIndex+=o.length,f.regex.lastIndex-=a[0].length):f.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,a,o;const s=(l,u)=>{const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const Q=l.split(new RegExp(`${c}[ ]*{`));let T=`{${Q[1]}`;l=Q[0],T=this.interpolate(T,o);const f=T.match(/'/g),h=T.match(/"/g);(f&&f.length%2===0&&!h||h.length%2!==0)&&(T=T.replace(/'/g,'"'));try{o=JSON.parse(T),u&&(o={...u,...o})}catch(p){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,p),`${l}${c}${T}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,l};for(;i=this.nestingRegexp.exec(t);){let l=[];o={...n},o=o.replace&&!ke(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const c=i[1].split(this.formatSeparator).map(Q=>Q.trim());i[1]=c.shift(),l=c,u=!0}if(a=r(s.call(this,i[1].trim(),o),o),a&&i[0]===t&&!ke(a))return a;ke(a)||(a=ud(a)),a||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),a=""),u&&(a=l.reduce((c,Q)=>this.format(c,Q,n.lng,{...n,interpolationkey:i[1].trim()}),a.trim())),t=t.replace(i[0],a),this.regexp.lastIndex=0}return t}}const SI=e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const i=n[1].substring(0,n[1].length-1);t==="currency"&&i.indexOf(":")<0?r.currency||(r.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?r.range||(r.range=i.trim()):i.split(";").forEach(o=>{if(o){const[s,...l]=o.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),c=s.trim();r[c]||(r[c]=u),u==="false"&&(r[c]=!1),u==="true"&&(r[c]=!0),isNaN(u)||(r[c]=parseInt(u,10))}})}return{formatName:t,formatOptions:r}},zi=e=>{const t={};return(r,n,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});const o=n+JSON.stringify(a);let s=t[o];return s||(s=e(_s(n),i),t[o]=s),s(r)}};class EI{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Nr.create("formatter"),this.options=t,this.formats={number:zi((r,n)=>{const i=new Intl.NumberFormat(r,{...n});return a=>i.format(a)}),currency:zi((r,n)=>{const i=new Intl.NumberFormat(r,{...n,style:"currency"});return a=>i.format(a)}),datetime:zi((r,n)=>{const i=new Intl.DateTimeFormat(r,{...n});return a=>i.format(a)}),relativetime:zi((r,n)=>{const i=new Intl.RelativeTimeFormat(r,{...n});return a=>i.format(a,n.range||"day")}),list:zi((r,n)=>{const i=new Intl.ListFormat(r,{...n});return a=>i.format(a)})},this.init(t)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=r.interpolation.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=zi(r)}format(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=r.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:c}=SI(l);if(this.formats[u]){let Q=s;try{const T=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},f=T.locale||T.lng||i.locale||i.lng||n;Q=this.formats[u](s,f,{...c,...i,...T})}catch(T){this.logger.warn(T)}return Q}else this.logger.warn(`there was no format function for ${u}`);return s},t)}}const HI=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class _I extends Cs{constructor(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=Nr.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,i.backend,i)}queueLoad(t,r,n,i){const a={},o={},s={},l={};return t.forEach(u=>{let c=!0;r.forEach(Q=>{const T=`${u}|${Q}`;!n.reload&&this.store.hasResourceBundle(u,Q)?this.state[T]=2:this.state[T]<0||(this.state[T]===1?o[T]===void 0&&(o[T]=!0):(this.state[T]=1,c=!1,o[T]===void 0&&(o[T]=!0),a[T]===void 0&&(a[T]=!0),l[Q]===void 0&&(l[Q]=!0)))}),c||(s[u]=!0)}),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,r,n){const i=t.split("|"),a=i[0],o=i[1];r&&this.emit("failedLoading",a,o,r),!r&&n&&this.store.addResourceBundle(a,o,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2,r&&n&&(this.state[t]=0);const s={};this.queue.forEach(l=>{uI(l.loaded,[a],o),HI(l,t),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{s[u]||(s[u]={});const c=l.loaded[u];c.length&&c.forEach(Q=>{s[u][Q]===void 0&&(s[u][Q]=!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(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:i,wait:a,callback:o});return}this.readingCalls++;const s=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const Q=this.waitingReads.shift();this.read(Q.lng,Q.ns,Q.fcName,Q.tried,Q.wait,Q.callback)}if(u&&c&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,i+1,a*2,o)},a);return}o(u,c)},l=this.backend[n].bind(this.backend);if(l.length===2){try{const u=l(t,r);u&&typeof u.then=="function"?u.then(c=>s(null,c)).catch(s):s(null,u)}catch(u){s(u)}return}return l(t,r,s)}prepareLoading(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();ke(t)&&(t=this.languageUtils.toResolveHierarchy(t)),ke(r)&&(r=[r]);const a=this.queueLoad(t,r,n,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach(o=>{this.loadOne(o)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=t.split("|"),i=n[0],a=n[1];this.read(i,a,"read",void 0,void 0,(o,s)=>{o&&this.logger.warn(`${r}loading namespace ${a} for language ${i} failed`,o),!o&&s&&this.logger.log(`${r}loaded namespace ${a} for language ${i}`,s),this.loaded(t,o,s)})}saveMissing(t,r,n,i,a){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" 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(!(n==null||n==="")){if(this.backend&&this.backend.create){const l={...o,isUpdate:a},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,r,n,i,l):c=u(t,r,n,i),c&&typeof c.then=="function"?c.then(Q=>s(null,Q)).catch(s):s(null,c)}catch(c){s(c)}else u(t,r,n,i,s,l)}!t||!t[0]||this.store.addResource(t[0],r,n,i)}}}const yd=()=>({debug:!1,initImmediate:!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:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),ke(e[1])&&(t.defaultValue=e[1]),ke(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(n=>{t[n]=r[n]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),vd=e=>(ke(e.ns)&&(e.ns=[e.ns]),ke(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ke(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Ms=()=>{},wI=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class v5 extends Cs{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=vd(t),this.services={},this.logger=Nr,this.modules={external:[]},wI(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(ke(r.ns)?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const i=yd();this.options={...i,...this.options,...vd(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const a=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?Nr.init(a(this.modules.logger),this.options):Nr.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=EI);const Q=new md(this.options);this.store=new hd(this.options.resources,this.options);const T=this.services;T.logger=Nr,T.resourceStore=this.store,T.languageUtils=Q,T.pluralResolver=new LI(Q,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(T.formatter=a(c),T.formatter.init(T,this.options),this.options.interpolation.format=T.formatter.format.bind(T.formatter)),T.interpolator=new bI(this.options),T.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},T.backendConnector=new _I(a(this.modules.backend),T.resourceStore,T,this.options),T.backendConnector.on("*",function(f){for(var h=arguments.length,p=new Array(h>1?h-1:0),g=1;g<h;g++)p[g-1]=arguments[g];t.emit(f,...p)}),this.modules.languageDetector&&(T.languageDetector=a(this.modules.languageDetector),T.languageDetector.init&&T.languageDetector.init(T,this.options.detection,this.options)),this.modules.i18nFormat&&(T.i18nFormat=a(this.modules.i18nFormat),T.i18nFormat.init&&T.i18nFormat.init(this)),this.translator=new As(this.services,this.options),this.translator.on("*",function(f){for(var h=arguments.length,p=new Array(h>1?h-1:0),g=1;g<h;g++)p[g-1]=arguments[g];t.emit(f,...p)}),this.modules.external.forEach(f=>{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Ms),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=function(){return t.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return t.store[c](...arguments),t}});const l=O5(),u=()=>{const c=(Q,T)=>{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),l.resolve(T),n(Q,T)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ms;const i=ke(t)?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const a=[],o=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(u=>{u!=="cimode"&&a.indexOf(u)<0&&a.push(u)})};i?o(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>o(l)),this.options.preload&&this.options.preload.forEach(s=>o(s)),this.services.backendConnector.load(a,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(s)})}else n(null)}reloadResources(t,r,n){const i=O5();return typeof t=="function"&&(n=t,t=void 0),typeof r=="function"&&(n=r,r=void 0),t||(t=this.languages),r||(r=this.options.ns),n||(n=Ms),this.services.backendConnector.reload(t,r,a=>{i.resolve(),n(a)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&dd.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(t,r){var n=this;this.isLanguageChangingTo=t;const i=O5();this.emit("languageChanging",t);const a=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,u)=>{u?(a(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve(function(){return n.t(...arguments)}),r&&r(l,function(){return n.t(...arguments)})},s=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const u=ke(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{o(c,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),i}getFixedT(t,r,n){var i=this;const a=function(o,s){let l;if(typeof s!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),Q=2;Q<u;Q++)c[Q-2]=arguments[Q];l=i.options.overloadTranslationOptionHandler([o,s].concat(c))}else l={...s};l.lng=l.lng||a.lng,l.lngs=l.lngs||a.lngs,l.ns=l.ns||a.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||n||a.keyPrefix);const T=i.options.keySeparator||".";let f;return l.keyPrefix&&Array.isArray(o)?f=o.map(h=>`${l.keyPrefix}${T}${h}`):f=l.keyPrefix?`${l.keyPrefix}${T}${o}`:o,i.t(f,l)};return ke(t)?a.lng=t:a.lngs=t,a.ns=r,a.keyPrefix=n,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};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 n=r.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const o=(s,l)=>{const u=this.services.backendConnector.state[`${s}|${l}`];return u===-1||u===0||u===2};if(r.precheck){const s=r.precheck(this,o);if(s!==void 0)return s}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(n,t)&&(!i||o(a,t)))}loadNamespaces(t,r){const n=O5();return this.options.ns?(ke(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{n.resolve(),r&&r(i)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){const n=O5();ke(t)&&(t=[t]);const i=this.options.preload||[],a=t.filter(o=>i.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return a.length?(this.options.preload=i.concat(a),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const r=["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"],n=this.services&&this.services.languageUtils||new md(yd());return r.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new v5(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ms;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},a=new v5(i);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(s=>{a[s]=this[s]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},n&&(a.store=new hd(this.store.data,i),a.services.resourceStore=a.store),a.translator=new As(a.services,i),a.translator.on("*",function(s){for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;c<l;c++)u[c-1]=arguments[c];a.emit(s,...u)}),a.init(i,r),a.translator.options=i,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 Ke=v5.createInstance();Ke.createInstance=v5.createInstance,Ke.createInstance,Ke.dir,Ke.init,Ke.loadResources,Ke.reloadResources,Ke.use,Ke.changeLanguage,Ke.getFixedT,Ke.t,Ke.exists,Ke.setDefaultNamespace,Ke.hasLoadedNamespace,Ke.loadNamespaces,Ke.loadLanguages;const{slice:CI,forEach:AI}=[];function MI(e){return AI.call(CI.call(arguments,1),t=>{if(t)for(const r in t)e[r]===void 0&&(e[r]=t[r])}),e}function PI(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(r=>r.test(e))}const xd=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,kI=function(e,t){const n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(t);let a=`${e}=${i}`;if(n.maxAge>0){const o=n.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");a+=`; Max-Age=${Math.floor(o)}`}if(n.domain){if(!xd.test(n.domain))throw new TypeError("option domain is invalid");a+=`; Domain=${n.domain}`}if(n.path){if(!xd.test(n.path))throw new TypeError("option path is invalid");a+=`; Path=${n.path}`}if(n.expires){if(typeof n.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(a+="; HttpOnly"),n.secure&&(a+="; Secure"),n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return n.partitioned&&(a+="; Partitioned"),a},Ld={create(e,t,r,n){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+r*60*1e3)),n&&(i.domain=n),document.cookie=kI(e,t,i)},read(e){const t=`${e}=`,r=document.cookie.split(";");for(let n=0;n<r.length;n++){let i=r[n];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var DI={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return Ld.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:r,cookieMinutes:n,cookieDomain:i,cookieOptions:a}=t;r&&typeof document<"u"&&Ld.create(r,e,n,i,a)}},VI={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,r;if(typeof window<"u"){let{search:n}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));const a=n.substring(1).split("&");for(let o=0;o<a.length;o++){const s=a[o].indexOf("=");s>0&&a[o].substring(0,s)===t&&(r=a[o].substring(s+1))}}return r}},RI={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:r}=e,n;if(typeof window<"u"){const{hash:i}=window.location;if(i&&i.length>2){const a=i.substring(1);if(t){const o=a.split("&");for(let s=0;s<o.length;s++){const l=o[s].indexOf("=");l>0&&o[s].substring(0,l)===t&&(n=o[s].substring(l+1))}}if(n)return n;if(!n&&r>-1){const o=i.match(/\/([a-zA-Z-]*)/g);return Array.isArray(o)?o[typeof r=="number"?r:0]?.replace("/",""):void 0}}}return n}};let Xi=null;const bd=()=>{if(Xi!==null)return Xi;try{if(Xi=typeof window<"u"&&window.localStorage!==null,!Xi)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Xi=!1}return Xi};var II={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&bd())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:r}=t;r&&bd()&&window.localStorage.setItem(r,e)}};let Ui=null;const Sd=()=>{if(Ui!==null)return Ui;try{if(Ui=typeof window<"u"&&window.sessionStorage!==null,!Ui)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Ui=!1}return Ui};var NI={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&Sd())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:r}=t;r&&Sd()&&window.sessionStorage.setItem(r,e)}},$I={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:r,userLanguage:n,language:i}=navigator;if(r)for(let a=0;a<r.length;a++)t.push(r[a]);n&&t.push(n),i&&t.push(i)}return t.length>0?t:void 0}},BI={name:"htmlTag",lookup(e){let{htmlTag:t}=e,r;const n=t||(typeof document<"u"?document.documentElement:null);return n&&typeof n.getAttribute=="function"&&(r=n.getAttribute("lang")),r}},jI={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(r)?r[typeof t=="number"?t:0]?.replace("/",""):void 0}},FI={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const r=typeof t=="number"?t+1:1,n=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(n)return n[r]}};let Ed=!1;try{document.cookie,Ed=!0}catch{}const Hd=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Ed||Hd.splice(1,1);const qI=()=>({order:Hd,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class _d{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,r)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=MI(r,this.options||{},qI()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(DI),this.addDetector(VI),this.addDetector(II),this.addDetector(NI),this.addDetector($I),this.addDetector(BI),this.addDetector(jI),this.addDetector(FI),this.addDetector(RI)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,r=[];return t.forEach(n=>{if(this.detectors[n]){let i=this.detectors[n].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(r=r.concat(i))}}),r=r.filter(n=>n!=null&&!PI(n)).map(n=>this.options.convertDetectedLanguage(n)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}cacheUserLanguage(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||r.forEach(n=>{this.detectors[n]&&this.detectors[n].cacheUserLanguage(t,this.options)}))}}_d.type="languageDetector";const wd={"en-US":{translation:{cloud:"Cloud Documents",local:"Local Documents",demoTips:"The current version is a demo version. The data will be automatically cleared at midnight every day. Please back up important data in time. If you need to use it completely, please",localDeploy:"Local deployment",email:"Email address",emailPlease:"Please enter your email address",emailFormatPlease:"Please enter a valid email address",passwordPlease:"Please enter your password",password:"Password",passwordConfirm:"Confirm password",passwordConfirmPlease:"Please confirm your password",passwordRepeatedUnMatch:"The two passwords entered are inconsistent",passwordCannotContainsWhitespace:"Password cannot contain spaces",passwordLengthError:"Password length must be 6-18 characters",signUp:"Sign up",signUpSuccess:"Sign up successfully",signUpFailed:"Sign up failed",alreadyHaveAccount:"Already have an account?",openSourceToolbox:"Open source toolbox",documentation:"Documentation",logout:"Logout",goTo:"Go to",toolboxWelcome:"Welcome to OpenDataLab open source tools 🎉",tryOnline:"Try online",opendatalabDescription:"An open data platform leading the era of large AI models, providing massive, multimodal high-quality datasets to help AI development land",labelllmDescription:"Professional LLM dialogue annotation, through flexible tool configuration and wide compatibility with various data modalities, to create high-quality data for large models",minerUDescription:"One-stop open source high-quality data extraction tool, supports multiple formats (PDF/webpage/ebook), intelligent extraction, generating high-quality data",labelUDescription:"A lightweight open source annotation tool, freely combining various tools, seamlessly compatible with multiple data formats, and supporting loading of pre-annotation to accelerate annotation efficiency",status:"Status",createdBy:"Created by",download:"Download",delete:"Delete",deleteConfirm:"Are you sure you want to delete?",confirm:"Confirm",saveUnModified:"Save the edited content?",saveAndExit:"Save and exit",dontSave:"Don't save",preview:"Preview",exitPreview:"Exit preview",copy:"Copy",copied:"Copied",deleteAll:"Delete all files",deleteAllConfirm:"Are you sure you want to delete all files?",cancel:"Cancel",ok:"OK",noBucketFound:"No bucket found",account:{username:"Username",usernamePlaceholder:"Please enter your username",usernameRequired:"Username is required",usernameMinLength:"Username must be at least 3 characters",password:"Password",passwordMinLength:"Password must be at least 6 characters",passwordPlaceholder:"Please enter your password",passwordRequired:"Password is required",passwordConfirm:"Confirm password",passwordConfirmPlaceholder:"Please confirm your password",passwordConfirmRequired:"Please confirm your password",usernameIncorrect:"Username is incorrect",passwordIncorrect:"Password is incorrect",noAccountFound:"No account found",loginSuccess:"Login successfully",login:"Login",logout:"Logout",register:"Register",passwordConfirmError:"The two passwords entered are inconsistent",registerSuccess:"Register successfully",registerFailed:"Register failed",registerPlaceholder:"Please enter your email address",registerFormatPlaceholder:"Please enter a valid email address",registerPasswordPlaceholder:"Please enter your password",registerPasswordConfirmPlaceholder:"Please confirm your password",registerPasswordConfirmRequired:"Please confirm your password",createNewAccount:"Create new account",haveAccount:"Already have an account?",loginNow:"Login now"},slogan:"Data visualization tool",sloganDescription:"Seamless integration of mainstream cloud storage and local data sources, deep parsing of multi-format data content",fileList:"File List",bucketUpdated:"Bucket updated",editBucket:"Edit Bucket",noData:"No data",bucketForm:{deleteConfirm:"Are you sure you want to delete this bucket?",triggerTooltipMessage:"Add Bucket or Object path",addBucket:"Add Bucket",addPath:"Add S3 path",add:"Add",save:"Save",cancel:"Cancel",pathTooltip:"The timeout for checking accessibility is 30 seconds. If it exceeds the timeout, it will be determined as inaccessible",alertMessage:"Please select or add an AK/SK with access to the target path",name:"Name",namePlaceholder:"Bucket name (optional)",path:"S3 Path",remove:"Remove",refresh:"Refresh",pathPlaceholder:"Bucket path, start with s3://",pathRequired:"Please enter the path",atLeastOnePath:"At least one path is required",pathAdded:"Path added successfully",pathValidMessage:"Please enter a valid s3 path, must start with s3://",endpoint:"Endpoint",endpointPlaceholder:"Endpoint",endpointRequired:"Please enter the endpoint",endpointAccessible:"Endpoint is accessible",endpointInvalid:"This endpoint cannot be accessed",endpointValidMessage:"Please enter a valid url format",keychainId:"AK&SK",keychainIdRequired:"Please select AK&SK",noPermission:"The selected AK&SK does not have permission to access this path","AS&SKManagement":"AK&SK",pathDuplicated:"The same AK&SK cannot have the same path",duplicatedPathExists:"The same AK&SK and path already exists"},directoryTree:{show:"Expand file tree",hide:"Collapse file tree",loadMore:"Load more"},keychain:{deleted:"AK&SK deleted",updated:"AK&SK updated",add:"Add AK&SK",deleteConfirm:"Are you sure you want to delete this AK&SK?","addAS&SKTips":"To get access permission to Bucket or Object address, please add AK&SK of S3 cluster","noAK&SK":"No Data",name:"Name",namePlaceholder:"Put a label on the AK&SK",accessKeyId:"Access Key ID",accessKeyIdPlaceholder:"Access Key ID",secretKeyId:"Secret Key ID",secretKeyIdPlaceholder:"Secret Key ID",added:"AK&SK added successfully"},upload:{upload:"Upload",unzipError:"Unzip file failed",warcError:"Parse WARC file failed",readError:"Read file failed",drag:"Click or drag file to upload to the browser",recommend:"Support format: json, jsonl, jsonl.gz, html, md, csv, txt",deleteSuccess:"Removed",deleteFailed:"Remove failed",maxSize:"The maximum size of the file is",sameName:"The file with the same name already exists",success:"Added",failed:"Add failed"},renderer:{downloadZipFile:"Download ZIP File",close:"Close",fileInfo:"File Information",fileSize:"File Size",author:"Author",lastModified:"Last Modified",returnToParent:"Return to Parent Directory",prevPage:"Previous Page",nextPage:"Next Page",openInNewTab:"Open in New Tab",downloadFile:"Download",fullscreen:"Fullscreen",exitFullscreen:"Exit Fullscreen",copyFullPath:"Copy Full Path",showDirInfo:"Show Directory Information",dirInfo:"Directory Information",copied:"Copied to Clipboard",iKnow:"I Understand",addNow:"Add Now",noPermission:"No View Permission",needPermission:"To get view permission, please select AK&SK and add this address",pathNotExist:"Path does not exist or you do not have access permission",ifPathExists:"If the path exists, you can add path authorization access yourself",step1AddKey:"Step 1: Add Secret Key - Add an S3 key with permission to the target path",step2AddPath:"Step 2: Add Address - Use this key to add address authorization access",arrayTypeRequired:"Array type required",confirm:"Confirm",clear:"Clear",baseUrlEffect:"Effect: /abc.css => https://example.com/abc.css",convertToFullUrl:"Convert Absolute Path to Full URL",cancelLineWrap:"Disable Line Wrap",lineWrap:"Enable Line Wrap",closePreview:"Close Preview",openPreview:"Preview",katexDesc:"Suitable for common markdown documents, faster rendering",mathjaxDesc:"Suitable for complex mathematical formulas, slower rendering",raw:"Raw",image:"Image",html:"HTML",json:"JSON",markdown:"Markdown",contentList:"Content List",imgList:"Image List"},fullscreen:{exitFullscreenFailed:"Exit fullscreen failed",enterFullscreenFailed:"Enter fullscreen failed"},bucket:{fileDirectory:"File Directory",prevPage:"Previous Page",nextPage:"Next Page",returnToParent:"Return to Parent Directory",searchPath:"Search Path",copyPath:"Copy Path",directory:"Directory",pathMustStartWithS3:"Path must start with s3://",searchPlaceholder:"Enter address to search",duplicatedBuckets:"Duplicated Buckets, please select one"},textPreviewer:{prevSection:"Previous Section",nextSection:"Next Section"},codeViewer:{unparsableData:"Unparsable data type"},addFirstBucket:"Add your first bucket",currentSupport:"Currently supported cloud storage platforms:",supportedCloudPlatforms:{huawei:"Huawei Cloud",tencent:"Tencent Cloud",sensetime:"SenseTime AOS",aws:"AWS",aliyun:"Aliyun OSS",inspur:"Inspur Cloud",microsoft:"Microsoft Azure"},server:{"Request Validation Error":"Request Validation Error","Invalid Request":"Invalid Request","Ping Failed":"Ping Failed","Server Error":"Server Error","Failed to Read File":"Failed to Read File","Invalid Username":"Invalid Username","Invalid Password":"Invalid Password","Username Already Exists":"Username Already Exists","Keychain Not Found":"Keychain Not Found","Keychain Already Exists":"Keychain Already Exists","No Permission to Access This Keychain":"No Permission to Access This Keychain","No Permission to Delete This Keychain":"No Permission to Delete This Keychain","No Permission to Update This Keychain":"No Permission to Update This Keychain","Object Not Found, Please Check the Path":"Object Not Found, Please Check the Path","Request Size Out of Range, Maximum Size is 40 Mb":"Request Size Out of Range, Maximum Size is 40 Mb","Invalid S3 Path, Must Start with s3://":"Invalid S3 Path, Must Start with s3://","S3 Path Cannot Be Empty":"S3 Path Cannot Be Empty","Data is Empty":"Data is Empty","S3 Config File Not Found":"S3 Config File Not Found","Unknown Error":"Unknown Error"}}},"zh-CN":{translation:{cloud:"云端文件",local:"本地文件",demoTips:"当前为体验版,每日凌晨数据将自动清空,请及时备份重要数据。如需完整使用,建议",localDeploy:"本地部署",login:"登录",email:"Email邮箱地址",emailPlease:"请输入邮箱",emailFormatPlease:"请输入正确的邮箱格式",passwordPlease:"请输入密码",password:"密码",passwordConfirm:"确认密码",passwordConfirmPlease:"请确认密码",passwordRepeatedUnMatch:"两次输入的密码不一致",passwordCannotContainsWhitespace:"密码不能包含空格",passwordLengthError:"密码长度为6-18位",signUp:"注册",signUpSuccess:"注册成功",signUpFailed:"注册失败",alreadyHaveAccount:"已有账号?",openSourceToolbox:"开源工具箱",documentation:"帮助文档",logout:"退出登录",goTo:"立即前往",toolboxWelcome:"欢迎使用 OpenDataLab 开源工具 🎉",tryOnline:"在线体验",opendatalabDescription:"一个引领 AI 大模型时代的开放数据平台,提供了海量的、多模态的优质数据集,助力 AI 开发落地",labelllmDescription:"专业致力于 LLM 对话标注,通过灵活的工具配置与多种数据模态的广泛兼容,为大模型打造高质量数据",minerUDescription:"一站式开源高质量数据提取工具,支持多格式(PDF/网页/电子书),智能萃取,生成高质量语料",labelUDescription:"一款轻量级开源标注工具,自由组合多样工具,无缝兼容多格式数据,同时支持载入预标注,加速标注效率",status:"状态",createdBy:"创建者",download:"下载",delete:"删除",deleteConfirm:"确定删除?",confirm:"提示",saveUnModified:"是否保存已编辑的内容?",saveAndExit:"保存并退出",dontSave:"不保存",preview:"预览",exitPreview:"退出预览",copy:"复制",copied:"已复制",deleteAll:"删除所有文件",deleteAllConfirm:"确定删除所有文件?",cancel:"取消",ok:"确定",noBucketFound:"未找到 Bucket",account:{username:"用户名",usernamePlaceholder:"请输入用户名",usernameRequired:"用户名是必填项",usernameMinLength:"用户名至少3个字符",password:"密码",passwordMinLength:"密码至少6个字符",passwordPlaceholder:"请输入密码",passwordRequired:"密码是必填项",passwordConfirm:"确认密码",passwordConfirmPlaceholder:"请确认密码",passwordConfirmRequired:"请确认密码",usernameIncorrect:"用户名不正确",passwordIncorrect:"密码不正确",noAccountFound:"没有找到账号",loginSuccess:"登录成功",login:"登录",logout:"退出登录",register:"注册",passwordConfirmError:"两次输入的密码不一致",registerSuccess:"注册成功",registerFailed:"注册失败",registerPlaceholder:"请输入邮箱",registerFormatPlaceholder:"请输入正确的邮箱格式",registerPasswordPlaceholder:"请输入密码",registerPasswordConfirmPlaceholder:"请确认密码",registerPasswordConfirmRequired:"请确认密码",createNewAccount:"创建新账号",haveAccount:"已有账号?",loginNow:"立即登录"},slogan:"数据可视化工具",sloganDescription:"无缝对接主流云存储与本地数据源,深度解析多格式数据内容",fileList:"文件列表",bucketUpdated:"Bucket 更新",editBucket:"编辑 Bucket",noData:"暂无数据",bucketForm:{deleteConfirm:"确定删除此 Bucket?",triggerTooltipMessage:"添加 Bucket 或 Object 路径",addBucket:"添加 Bucket",addPath:"添加 S3 路径",add:"添加",save:"保存",cancel:"取消",pathTooltip:"检查访问权限的超时时间为30秒。如果超过超时时间,则确定为不可访问",alertMessage:"请选择或添加对目标路径有权限的 AK/SK",name:"名称",namePlaceholder:"Bucket 名称(可选)",path:"S3 路径",remove:"删除",refresh:"刷新",pathPlaceholder:"Bucket 路径,以 s3:// 开头",pathRequired:"请输入路径",atLeastOnePath:"至少一个路径是必填项",pathAdded:"路径添加成功",pathValidMessage:"请输入有效的 s3 路径,必须以 s3:// 开头",endpoint:"Endpoint",endpointPlaceholder:"Endpoint",endpointRequired:"请输入 Endpoint",endpointAccessible:"Endpoint 可访问",endpointInvalid:"此 Endpoint 无法访问",endpointValidMessage:"请输入有效的 url 格式",keychainId:"AK&SK",keychainIdRequired:"请选择 AK&SK",noPermission:"选择的 AK&SK 没有权限访问此路径","AS&SKManagement":"AK&SK 管理",pathDuplicated:"相同 AK&SK 下,路径不能重复",duplicatedPathExists:"相同 AK&SK 和路径已存在"},directoryTree:{show:"展开文件树",hide:"折叠文件树",loadMore:"加载更多"},keychain:{deleted:"AK&SK 已删除",updated:"AK&SK 已更新",add:"添加 AK&SK",deleteConfirm:"确定删除此 AK&SK","addAS&SKTips":"要获取 Bucket 或 Object 地址的访问权限,请添加 S3 集群的 AK&SK","noAK&SK":"暂无数据",name:"名称",namePlaceholder:"请输入 AK&SK 别名",accessKeyId:"Access Key ID",accessKeyIdPlaceholder:"请输入 Access Key ID",secretKeyId:"Secret Key ID",secretKeyIdPlaceholder:"请输入 Secret Key ID",added:"AK&SK 添加成功"},upload:{upload:"上传",unzipError:"解压文件失败",warcError:"解析 WARC 文件失败",readError:"读取文件失败",drag:"点击或拖拽文件到浏览器",recommend:"支持格式:json, jsonl, jsonl.gz, html, md, csv, txt",deleteSuccess:"删除成功",deleteFailed:"删除失败",maxSize:"文件最大大小为",sameName:"文件名已存在",success:"上传成功",failed:"上传失败"},renderer:{downloadZipFile:"下载压缩文件",close:"关闭",fileInfo:"文件信息",fileSize:"文件大小",author:"作者",lastModified:"最后更新时间",returnToParent:"返回上级目录",fullscreen:"全屏",exitFullscreen:"退出全屏",prevPage:"上一页",nextPage:"下一页",openInNewTab:"新标签页打开",downloadFile:"下载完整文件",copyFullPath:"复制完整路径",showDirInfo:"显示目录信息",dirInfo:"目录信息",copied:"已复制到剪贴板",iKnow:"我知道了",addNow:"立即添加",noPermission:"暂无查看权限",needPermission:"如需获取查看权限,请选择AK&SK并添加此地址",pathNotExist:"路径不存在或没有此路径访问权限",ifPathExists:"如路径存在,可自行添加路径授权访问",step1AddKey:"Step1. 新增密钥:添加对目标路径有权限的S3密钥",step2AddPath:"Step2. 添加地址:使用此密钥添加地址授权访问",arrayTypeRequired:"必须为数组类型",confirm:"确定",clear:"清空",baseUrlEffect:"效果:/abc.css => https://example.com/abc.css",convertToFullUrl:"将绝对路径转换为完整URL",cancelLineWrap:"取消换行",lineWrap:"换行",closePreview:"关闭预览",openPreview:"预览",katexDesc:"适合常见md文档,渲染速度快",mathjaxDesc:"适合复杂数学公式,渲染速度慢",raw:"原始内容",image:"图片",html:"网页",json:"JSON",markdown:"Markdown",contentList:"内容列表",imgList:"图片列表"},fullscreen:{exitFullscreenFailed:"退出全屏失败",enterFullscreenFailed:"进入全屏失败"},bucket:{fileDirectory:"文件目录",prevPage:"上一页",nextPage:"下一页",returnToParent:"返回上级目录",searchPath:"检索路径",copyPath:"复制路径",directory:"目录",pathMustStartWithS3:"路径必须以s3://开头",searchPlaceholder:"输入地址检索",duplicatedBuckets:"存在多个 Bucket,请选择一个"},textPreviewer:{prevSection:"上一段",nextSection:"下一段"},codeViewer:{unparsableData:"不可解析成字符串的数据的数据"},addFirstBucket:"添加第一个 Bucket",currentSupport:"目前支持的云存储平台:",supportedCloudPlatforms:{huawei:"华为云",tencent:"腾讯云",sensetime:"商汤大装置AOS",aws:"AWS",aliyun:"阿里云 OSS",inspur:"浪潮云",microsoft:"微软 Azure"},server:{"Request Validation Error":"请求验证错误","Invalid Request":"无效请求","Ping Failed":"Ping 失败","Server Error":"服务器错误","Failed to Read File":"读取文件失败","Invalid Username":"无效用户名","Invalid Password":"无效密码","Username Already Exists":"用户名已存在","Keychain Not Found":"密钥不存在","Keychain Already Exists":"AK已存在","No Permission to Access This Keychain":"没有权限访问此密钥","No Permission to Delete This Keychain":"没有权限删除此密钥","No Permission to Update This Keychain":"没有权限更新此密钥","Object Not Found, Please Check the Path":"对象不存在,请检查路径","Request Size Out of Range, Maximum Size is 40 Mb":"请求大小超出范围,最大大小为 40 Mb","Invalid S3 Path, Must Start with s3://":"无效的 S3 路径,必须以 s3:// 开头","S3 Path Cannot Be Empty":"S3 路径不能为空","Data is Empty":"数据为空","S3 Config File Not Found":"S3 配置不存在","Unknown Error":"未知错误"}}}};Ke.use(_d).use(nd).init({resources:wd,fallbackLng:"zh-CN",interpolation:{escapeValue:!1}});function Tu(e){return e&&typeof e=="object"&&!Array.isArray(e)}function fu(e,...t){if(!t.length)return e;const r=t.shift();if(Tu(e)&&Tu(r))for(const n in r)Tu(r[n])?(e[n]||Object.assign(e,{[n]:{}}),fu(e[n],r[n])):Object.assign(e,{[n]:r[n]});return fu(e,...t)}const ZI=(e,t)=>{const[r,n]=W.useState(()=>{try{const i=localStorage.getItem(e);return typeof i!="string"?(localStorage.setItem(e,JSON.stringify(t)),t):JSON.parse(i)}catch{return t}});return W.useEffect(()=>{try{const i=JSON.stringify(r);localStorage.setItem(e,i)}catch{}}),[r,n]},hu="labelu-lang-change";function zI(e){const{locales:t,children:r,locale:n}=e,[,i]=ZI("lang",()=>Ke.language);W.useEffect(()=>{n&&(Ke.changeLanguage(n),i(n))},[n,i]);const a=W.useCallback(o=>{Ke.changeLanguage(o.detail),i(o.detail)},[i]);return W.useEffect(()=>(document.addEventListener(hu,a),()=>{document.removeEventListener(hu,a)}),[a]),W.useEffect(()=>{i(Ke.language)},[Ke.language]),W.useEffect(()=>{t&&Object.keys(t||{}).forEach(o=>{Ke.addResourceBundle(o,"translation",fu({},wd[o],t[o]),!0)})},[t]),B.jsx(sd,{i18n:Ke,children:r})}const XI=e=>{Ke.changeLanguage(e),localStorage.setItem("lang",e),document.dispatchEvent(new CustomEvent(hu,{detail:e}))};function Cd(e){let t;if(!e)return;const r=e.split("?")[0];return kd(r)&&(t="video"),Pd(r)&&(t="image"),Dd(r)&&(t="audio"),Vd(r)&&(t="zip"),r.endsWith("/")&&(t="folder"),(r.endsWith(".html")||r.endsWith(".htm")||r.endsWith(".xhtml"))&&(t="html"),r.endsWith(".csv")&&(t="csv"),(r.endsWith(".jsonl")||r.endsWith(".jsonl.gz")||r.endsWith(".warc")||r.endsWith(".warc.gz"))&&(t="jsonl"),r.endsWith(".json")&&(t="json"),(r.endsWith(".md")||r.endsWith(".markdown"))&&(t="markdown"),r.endsWith(".pdf")&&(t="pdf"),r.endsWith(".xml")&&(t="xml"),r.endsWith(".py")&&(t="python"),(r.endsWith(".xls")||r.endsWith(".xlsx"))&&(t="csv"),(r.endsWith(".ppt")||r.endsWith(".PPT"))&&(t="ppt"),r.endsWith(".epub")&&(t="epub"),r.endsWith(".mobi")&&(t="mobi"),t}function UI(e,t){let r=e.path;return r.startsWith("s3://")||(r=`${t}${r}`),["bucket","directory"].includes(e.type)&&!r.endsWith("/")&&(r=`${r}/`),r}function Wi(){return Math.random().toString(36).substr(2)}function x5(e,t,r){if(e==null)return r;if(Array.isArray(t))return Ad(e,t,r);const n=WI(t);return Ad(e,n,r)}function WI(e){if(!e)return[];const t=[];let r=0;const n=e.length;let i="";for(;r<n;){let a=e[r];if(a==="["){if(i&&(t.push(i),i=""),r++,e[r]==='"'||e[r]==="'"){const o=e[r];for(r++;r<n&&e[r]!==o;)i+=e[r],r++;r++}else{for(;r<n&&e[r]!=="]";)i+=e[r],r++;/^\d+$/.test(i)&&(t.push(parseInt(i,10)),i="")}e[r]==="]"&&r++,i&&(t.push(i),i="")}else a==="."?(i&&(t.push(i),i=""),r++):(i+=a,r++)}return i&&t.push(i),t}function Ad(e,t,r){if(!t.length)return e;let n=e;for(let i=0;i<t.length;i++){if(n==null)return r;n=n[t[i]]}return n===void 0?r:n}function Md(e){if(typeof e!="string")return{headers:[],data:[]};const t=e.split(`
|
|
83
|
-
`),r=t[0].split(","),n=t.slice(1).map(i=>{const a={};return i.split(",").forEach((o,s)=>{a[r[s]]=o}),a});return{headers:r,data:n}}function Pd(e){return/\.(?:jpg|jpeg|png|gif|bmp|tiff|svg|webp)$/.test(e)&&!e.endsWith("/")}function kd(e){return/\.(?:mp4|avi|flv|wmv|mov|webm)$/.test(e)&&!e.endsWith("/")}function Dd(e){return/\.(?:mp3|wav|wma|ogg|flac)$/.test(e)&&!e.endsWith("/")}function Vd(e){return/\.(?:zip|rar|7z|tar|gz|bz2)$/.test(e)&&!e.endsWith("/")}function Rd(e){if(!e||typeof e!="string")return"";const t=new URL(e).pathname;return decodeURIComponent(t.split("/").pop()??"")}function Ps(e){if(typeof e!="string"||!e)return;const t=e.match(/bytes=(\d+),(\d+)/);if(t)return{byte:Number(t[1]),size:Number(t[2])}}function Id(e){if(!e)return"";const[t,r]=e.split("?"),n=Ps(r);return n?`${t}?bytes=${n.byte+n.size},0`:""}function GI(e){return e.startsWith("s3://")?e.split("s3://")[1].split("/")[0]:""}function Nd(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Nd(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function $d(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Nd(e))&&(n&&(n+=" "),n+=t);return n}const Bd=W.createContext({});function f4(){const e=W.useContext(Bd);if(!e)throw new Error("usePreviewBlockContext must be used within a PreviewBlockProvider");return e}const YI={AdditionalItemsError:"Array at `{{pointer}}` may not have an additional item `{{key}}`",AdditionalPropertiesError:"Additional property `{{property}}` on `{{pointer}}` does not match schema `{{schema}}`",AllOfError:"Value `{{value}}` at `{{pointer}}` does not match schema of `{{allOf}}`",AnyOfError:"Value `{{value}}` at `{{pointer}}` does not match any schema of `{{anyOf}}`",ConstError:"Expected value at `{{pointer}}` to be `{{expected}}`, but value given is `{{value}}`",containsAnyError:"The array at `{{pointer}}` must contain at least one item",ContainsArrayError:"The property at `{{pointer}}` must not be an array",ContainsError:"The array at `{{pointer}}` must contain an element that matches `{{schema}}`",EnumError:"Expected given value `{{value}}` in `{{pointer}}` to be one of `{{values}}`",ForbiddenPropertyError:"Property name `{{property}}` at `{{pointer}}` is not allowed",FormatDateError:"Value `{{value}}` at `{{pointer}}` is not a valid date",FormatDateTimeError:"Value `{{value}}` at `{{pointer}}` is not a valid date-time",FormatEmailError:"Value `{{value}}` at `{{pointer}}` is not a valid email",FormatHostnameError:"Value `{{value}}` at `{{pointer}}` is not a valid hostname",FormatIPV4Error:"Value `{{value}}` at `{{pointer}}` is not a valid IPv4 address",FormatIPV4LeadingZeroError:"IPv4 addresses starting with zero are invalid, since they are interpreted as octals",FormatIPV6Error:"Value `{{value}}` at `{{pointer}}` is not a valid IPv6 address",FormatIPV6LeadingZeroError:"IPv6 addresses starting with zero are invalid, since they are interpreted as octals",FormatJsonPointerError:"Value `{{value}}` at `{{pointer}}` is not a valid json-pointer",FormatRegExError:"Value `{{value}}` at `{{pointer}}` is not a valid regular expression",FormatTimeError:"Value `{{value}}` at `{{pointer}}` is not a valid time",FormatURIError:"Value `{{value}}` at `{{pointer}}` is not a valid uri",FormatURIReferenceError:"Value `{{value}}` at `{{pointer}}` is not a valid uri-reference",FormatURITemplateError:"Value `{{value}}` at `{{pointer}}` is not a valid uri-template",FormatURLError:"Value `{{value}}` at `{{pointer}}` is not a valid url",InvalidDataError:"No value may be specified in `{{pointer}}`",InvalidPropertyNameError:"Invalid property name `{{property}}` at `{{pointer}}`",MaximumError:"Value in `{{pointer}}` is `{{length}}`, but should be `{{maximum}}` at maximum",MaxItemsError:"Too many items in `{{pointer}}`, should be `{{maximum}}` at most, but got `{{length}}`",MaxLengthError:"Value `{{pointer}}` should have a maximum length of `{{maxLength}}`, but got `{{length}}`.",MaxPropertiesError:"Too many properties in `{{pointer}}`, should be `{{maximum}}` at most, but got `{{length}}`",MinimumError:"Value in `{{pointer}}` is `{{length}}`, but should be `{{minimum}}` at minimum",MinItemsError:"Too few items in `{{pointer}}`, should be at least `{{minItems}}`, but got `{{length}}`",MinItemsOneError:"At least one item is required in `{{pointer}}`",MinLengthError:"Value `{{pointer}}` should have a minimum length of `{{minLength}}`, but got `{{length}}`.",MinLengthOneError:"A value is required in `{{pointer}}`",MinPropertiesError:"Too few properties in `{{pointer}}`, should be at least `{{minimum}}`, but got `{{length}}`",MissingDependencyError:"The required propery '{{missingProperty}}' in `{{pointer}}` is missing",MissingOneOfPropertyError:"Value at `{{pointer}}` property: `{{property}}`",MultipleOfError:"Expected `{{value}}` in `{{pointer}}` to be multiple of `{{multipleOf}}`",MultipleOneOfError:"Value `{{value}}` should not match multiple schemas in oneOf `{{matches}}`",NoAdditionalPropertiesError:"Additional property `{{property}}` in `{{pointer}}` is not allowed",NotError:"Value `{{value}}` at pointer should not match schema `{{not}}`",OneOfError:"Value `{{value}}` in `{{pointer}}` does not match any given oneof schema",OneOfPropertyError:"Failed finding a matching oneOfProperty schema in `{{pointer}}` where `{{property}}` matches `{{value}}`",PatternError:"Value in `{{pointer}}` should match `{{description}}`, but received `{{received}}`",PatternPropertiesError:"Property `{{key}}` does not match any patterns in `{{pointer}}`. Valid patterns are: {{patterns}}",RequiredPropertyError:"The required property `{{key}}` is missing at `{{pointer}}`",SchemaWarning:"Failed retrieving a schema from '{{pointer}}' to key '{{key}}'",TypeError:"Expected `{{value}}` ({{received}}) in `{{pointer}}` to be of type `{{expected}}`",UndefinedValueError:"Value must not be undefined in `{{pointer}}`",UniqueItemsError:"Items in array must be unique. Value `{{value}}` in `{{pointer}}` is a duplicate of {{duplicatePointer}}.",UnknownPropertyError:"Could not find a valid schema for property `{{pointer}}` within object",ValueNotEmptyError:"A value for `{{property}}` is required at `{{pointer}}`"},KI=Object.prototype.toString;function Ge(e){const t=KI.call(e).match(/\s([^\]]+)\]/).pop().toLowerCase();return t==="file"?"object":t}const JI="object",eN="array";function tN(e,t={}){return e.replace(/\{\{\w+\}\}/g,r=>{const n=r.replace(/[{}]/g,""),i=t[n],a=Ge(i);return a===JI||a===eN?JSON.stringify(i):i})}function rN(e,t,r=e){var n;const i=(n=YI[e])!==null&&n!==void 0?n:r;return tN(i,t)}function nN(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function iN(e,t){return{type:"error",name:e,code:nN(e),message:rN(e,t),data:t}}function Ae(e){return iN.bind(null,e)}function L5(e,t=[]){for(let r=0;r<e.length;r+=1){const n=e[r];Array.isArray(n)?L5(n,t):t.push(n)}return t}const b5={DECLARATOR_ONEOF:"oneOfProperty",GET_TEMPLATE_RECURSION_LIMIT:1,propertyBlacklist:["_id"],templateDefaultOptions:{addOptionalProps:!1,removeInvalidData:!1,extendDefaults:!0}};function S5(e,t,r){const n={...t};return Object.defineProperty(n,"getOneOfOrigin",{enumerable:!1,value:()=>({index:r,schema:e})}),n}function q1(e){return e?.type==="error"}function aN(e){return e instanceof Promise}function ks(e){return q1(e)||aN(e)}const{DECLARATOR_ONEOF:Gi}=b5;function oN(e,t,r=e.rootSchema,n="#"){if(t!=null&&r[Gi]){const o=[],s=r[Gi],l=t[r[Gi]];if(l===void 0)return e.errors.missingOneOfPropertyError({property:s,pointer:n,schema:r,value:t});for(let u=0;u<r.oneOf.length;u+=1){const c=e.resolveRef(r.oneOf[u]),Q=e.step(s,c,t,n);if(q1(Q))return Q;let T=L5(e.validate(l,Q,n));if(T=T.filter(ks),T.length>0)o.push(...T);else return S5(r,c,u)}return e.errors.oneOfPropertyError({property:s,value:l,pointer:n,schema:r,errors:o})}const i=[],a=[];for(let o=0;o<r.oneOf.length;o+=1){const s=e.resolveRef(r.oneOf[o]);let l=L5(e.validate(t,s,n));l=l.filter(ks),l.length>0?a.push(...l):i.push({index:o,schema:s})}return i.length===1?S5(r,i[0].schema,i[0].index):i.length>1?e.errors.multipleOneOfError({value:t,pointer:n,schema:r,matches:i}):e.errors.oneOfError({value:JSON.stringify(t),pointer:n,schema:r,oneOf:r.oneOf,errors:a})}function sN(e,t,r,n){if(r==null||t.properties==null)return-1;let i=0;const a=Object.keys(t.properties);for(let o=0;o<a.length;o+=1){const s=a[o];r[s]!=null&&e.isValid(r[s],t.properties[s],n)&&(i+=1)}return i}function du(e,t,r=e.rootSchema,n="#"){if(t!=null&&r[Gi]){const a=[],o=r[Gi],s=t[r[Gi]];if(s===void 0)return e.errors.missingOneOfPropertyError({property:o,pointer:n,schema:r,value:t});for(let l=0;l<r.oneOf.length;l+=1){const u=e.resolveRef(r.oneOf[l]),c=e.step(o,u,t,n);if(q1(c))return c;let Q=L5(e.validate(s,c,n));if(Q=Q.filter(ks),Q.length>0)a.push(...Q);else return S5(r,u,l)}return e.errors.oneOfPropertyError({property:o,value:s,pointer:n,schema:r,errors:a})}const i=[];for(let a=0;a<r.oneOf.length;a+=1){const o=e.resolveRef(r.oneOf[a]);e.isValid(t,o,n)&&i.push({schema:o,index:a})}if(i.length===1)return S5(r,i[0].schema,i[0].index);if(Ge(t)==="object"){let a,o=-1,s=0;for(let l=0;l<r.oneOf.length;l+=1){const u=e.resolveRef(r.oneOf[l]),c=sN(e,u,t);s<c&&(s=c,a=r.oneOf[l],o=l)}return a===void 0?e.errors.oneOfError({value:JSON.stringify(t),pointer:n,schema:r,oneOf:r.oneOf}):S5(r,a,o)}return i.length>1?e.errors.multipleOneOfError({matches:i,pointer:n,schema:r,value:t}):e.errors.oneOfError({value:JSON.stringify(t),pointer:n,schema:r,oneOf:r.oneOf})}const lN=(e,t,r,n)=>{if(Array.isArray(t.oneOf)){const i=e.resolveOneOf(r,t,n);if(q1(i))return i}};var pu,jd;function uN(){if(jd)return pu;jd=1;var e=function(m){return t(m)&&!r(m)};function t(d){return!!d&&typeof d=="object"}function r(d){var m=Object.prototype.toString.call(d);return m==="[object RegExp]"||m==="[object Date]"||a(d)}var n=typeof Symbol=="function"&&Symbol.for,i=n?Symbol.for("react.element"):60103;function a(d){return d.$$typeof===i}function o(d){return Array.isArray(d)?[]:{}}function s(d,m){return m.clone!==!1&&m.isMergeableObject(d)?p(o(d),d,m):d}function l(d,m,y){return d.concat(m).map(function(x){return s(x,y)})}function u(d,m){if(!m.customMerge)return p;var y=m.customMerge(d);return typeof y=="function"?y:p}function c(d){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(d).filter(function(m){return Object.propertyIsEnumerable.call(d,m)}):[]}function Q(d){return Object.keys(d).concat(c(d))}function T(d,m){try{return m in d}catch{return!1}}function f(d,m){return T(d,m)&&!(Object.hasOwnProperty.call(d,m)&&Object.propertyIsEnumerable.call(d,m))}function h(d,m,y){var x={};return y.isMergeableObject(d)&&Q(d).forEach(function(O){x[O]=s(d[O],y)}),Q(m).forEach(function(O){f(d,O)||(T(d,O)&&y.isMergeableObject(m[O])?x[O]=u(O,y)(d[O],m[O],y):x[O]=s(m[O],y))}),x}function p(d,m,y){y=y||{},y.arrayMerge=y.arrayMerge||l,y.isMergeableObject=y.isMergeableObject||e,y.cloneUnlessOtherwiseSpecified=s;var x=Array.isArray(m),O=Array.isArray(d),v=x===O;return v?x?y.arrayMerge(d,m,y):h(d,m,y):s(m,y)}p.all=function(m,y){if(!Array.isArray(m))throw new Error("first argument should be an array");return m.reduce(function(x,O){return p(x,O,y)},{})};var g=p;return pu=g,pu}var cN=uN();const Fd=Dr(cN),QN=(e,t)=>t,qd=(e,t)=>Fd(e,t,{arrayMerge:QN}),TN=(e,t)=>{const r=e.concat(t);return r.filter((n,i)=>r.indexOf(n)===i)},fN=(e,t)=>Fd(e,t,{arrayMerge:TN});function y1(e,t){const r=Ge(e),n=Ge(t);if(r!==n)return e;const i=fN(e,t);return e.getOneOfOrigin?Object.defineProperty(i,"getOneOfOrigin",{enumerable:!1,value:e.getOneOfOrigin}):t.getOneOfOrigin&&Object.defineProperty(i,"getOneOfOrigin",{enumerable:!1,value:t.getOneOfOrigin}),i}function E5(e,...t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),e.getOneOfOrigin&&Object.defineProperty(r,"getOneOfOrigin",{enumerable:!1,value:e.getOneOfOrigin}),r}var hN=Function.prototype.toString,mu=Object.create,dN=Object.prototype.toString,pN=function(){function e(){this._keys=[],this._values=[]}return e.prototype.has=function(t){return!!~this._keys.indexOf(t)},e.prototype.get=function(t){return this._values[this._keys.indexOf(t)]},e.prototype.set=function(t,r){this._keys.push(t),this._values.push(r)},e}();function mN(){return new pN}function gN(){return new WeakMap}var ON=typeof WeakMap<"u"?gN:mN;function gu(e){if(!e)return mu(null);var t=e.constructor;if(t===Object)return e===Object.prototype?{}:mu(e);if(t&&~hN.call(t).indexOf("[native code]"))try{return new t}catch{}return mu(e)}function yN(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}function vN(e){return e.flags}var xN=/test/g.flags==="g"?vN:yN;function Zd(e){var t=dN.call(e);return t.substring(8,t.length-1)}function LN(e){return e[Symbol.toStringTag]||Zd(e)}var bN=typeof Symbol<"u"?LN:Zd,SN=Object.defineProperty,EN=Object.getOwnPropertyDescriptor,zd=Object.getOwnPropertyNames,Ou=Object.getOwnPropertySymbols,Xd=Object.prototype,Ud=Xd.hasOwnProperty,HN=Xd.propertyIsEnumerable,Wd=typeof Ou=="function";function _N(e){return zd(e).concat(Ou(e))}var wN=Wd?_N:zd;function Ds(e,t,r){for(var n=wN(e),i=0,a=n.length,o=void 0,s=void 0;i<a;++i)if(o=n[i],!(o==="callee"||o==="caller")){if(s=EN(e,o),!s){t[o]=r.copier(e[o],r);continue}!s.get&&!s.set&&(s.value=r.copier(s.value,r));try{SN(t,o,s)}catch{t[o]=s.value}}return t}function CN(e,t){var r=new t.Constructor;t.cache.set(e,r);for(var n=0,i=e.length;n<i;++n)r[n]=t.copier(e[n],t);return r}function AN(e,t){var r=new t.Constructor;return t.cache.set(e,r),Ds(e,r,t)}function Gd(e,t){return e.slice(0)}function MN(e,t){return e.slice(0,e.size,e.type)}function PN(e,t){return new t.Constructor(Gd(e.buffer))}function kN(e,t){return new t.Constructor(e.getTime())}function Yd(e,t){var r=new t.Constructor;return t.cache.set(e,r),e.forEach(function(n,i){r.set(i,t.copier(n,t))}),r}function DN(e,t){return Ds(e,Yd(e,t),t)}function VN(e,t){var r=gu(t.prototype);t.cache.set(e,r);for(var n in e)Ud.call(e,n)&&(r[n]=t.copier(e[n],t));return r}function RN(e,t){var r=gu(t.prototype);t.cache.set(e,r);for(var n in e)Ud.call(e,n)&&(r[n]=t.copier(e[n],t));for(var i=Ou(e),a=0,o=i.length,s=void 0;a<o;++a)s=i[a],HN.call(e,s)&&(r[s]=t.copier(e[s],t));return r}var IN=Wd?RN:VN;function NN(e,t){var r=gu(t.prototype);return t.cache.set(e,r),Ds(e,r,t)}function yu(e,t){return new t.Constructor(e.valueOf())}function $N(e,t){var r=new t.Constructor(e.source,xN(e));return r.lastIndex=e.lastIndex,r}function Vs(e,t){return e}function Kd(e,t){var r=new t.Constructor;return t.cache.set(e,r),e.forEach(function(n){r.add(t.copier(n,t))}),r}function BN(e,t){return Ds(e,Kd(e,t),t)}var jN=Array.isArray,vu=Object.assign,FN=Object.getPrototypeOf||function(e){return e.__proto__},Jd={array:CN,arrayBuffer:Gd,blob:MN,dataView:PN,date:kN,error:Vs,map:Yd,object:IN,regExp:$N,set:Kd},qN=vu({},Jd,{array:AN,map:DN,object:NN,set:BN});function ZN(e){return{Arguments:e.object,Array:e.array,ArrayBuffer:e.arrayBuffer,Blob:e.blob,Boolean:yu,DataView:e.dataView,Date:e.date,Error:e.error,Float32Array:e.arrayBuffer,Float64Array:e.arrayBuffer,Int8Array:e.arrayBuffer,Int16Array:e.arrayBuffer,Int32Array:e.arrayBuffer,Map:e.map,Number:yu,Object:e.object,Promise:Vs,RegExp:e.regExp,Set:e.set,String:yu,WeakMap:Vs,WeakSet:Vs,Uint8Array:e.arrayBuffer,Uint8ClampedArray:e.arrayBuffer,Uint16Array:e.arrayBuffer,Uint32Array:e.arrayBuffer,Uint64Array:e.arrayBuffer}}function ep(e){var t=vu({},Jd,e),r=ZN(t),n=r.Array,i=r.Object;function a(o,s){if(s.prototype=s.Constructor=void 0,!o||typeof o!="object")return o;if(s.cache.has(o))return s.cache.get(o);if(s.prototype=FN(o),s.Constructor=s.prototype&&s.prototype.constructor,!s.Constructor||s.Constructor===Object)return i(o,s);if(jN(o))return n(o,s);var l=r[bN(o)];return l?l(o,s):typeof o.then=="function"?o:i(o,s)}return function(s){return a(s,{Constructor:void 0,cache:ON(),copier:a,prototype:void 0})}}function zN(e){return ep(vu({},qN,e))}zN({});var Rs=ep({});function Is(e,t,r){if(t.if!=null){if(t.if===!1)return t.else;if(t.if&&(t.then||t.else)){const n=e.validate(r,e.resolveRef(t.if));if(n.length===0&&t.then)return e.resolveRef(t.then);if(n.length!==0&&t.else)return e.resolveRef(t.else)}}}const XN=(e,t,r,n)=>{const i=Is(e,t,r);if(i)return e.validate(r,i,n)};function tp(e,t,r){var n;const i={...(n=e.resolveRef(t))!==null&&n!==void 0?n:{}},a=Is(e,i,r);return a||E5(i,"if","then","else")}function UN(e,t,r=e.rootSchema){let n=Rs(r);for(let i=0;i<r.allOf.length;i+=1){const a=tp(e,r.allOf[i],t);n=y1(n,a)}return delete n.allOf,n}function rp(e,t){const{allOf:r}=t;if(!Array.isArray(r)||r.length===0)return;let n={};return r.forEach(i=>{n=y1(n,e.resolveRef(i))}),n}const WN=(e,t,r,n)=>{const{allOf:i}=t;if(!Array.isArray(i)||i.length===0)return;const a=[];return t.allOf.forEach(o=>{a.push(...e.validate(r,o,n))}),a};function GN(e,t){return e==null||e.$ref==null?e:e.getRoot?e.getRoot().getRef(e):t.getRef(e)}function YN(e){return e.filter((t,r)=>e.indexOf(t)===r)}function P3(e){return Ge(e)==="object"}function np(e,t,r){const{dependencies:n}=t;if(!P3(n)||!P3(r))return;let i=!1,a={required:[]};if(Object.keys(n).forEach(o=>{var s,l;if(r[o]==null&&!(!((s=t.required)===null||s===void 0)&&s.includes(o)||!((l=a.required)===null||l===void 0)&&l.includes(o)))return;const u=n[o];if(Array.isArray(u)){i=!0,a.required.push(...u);return}if(P3(u)){i=!0,a=y1(a,e.resolveRef(u));return}}),i)return a.required=YN(a.required),a}const KN=(e,t,r,n)=>{if(Ge(t.dependencies)!=="object")return;const i=[];return Object.keys(r).forEach(a=>{if(t.dependencies[a]===void 0||t.dependencies[a]===!0)return;if(t.dependencies[a]===!1){i.push(e.errors.missingDependencyError({pointer:n,schema:t,value:r}));return}let o;const s=Ge(t.dependencies[a]);if(s==="array")o=t.dependencies[a].filter(l=>r[l]===void 0).map(l=>e.errors.missingDependencyError({missingProperty:l,pointer:n,schema:t,value:r}));else if(s==="object")o=e.validate(r,t.dependencies[a],n);else throw new Error(`Invalid dependency definition for ${n}/${a}. Must be string[] or schema`);i.push(...o)}),i.length>0?i:void 0};function ip(e,t,r){if(!Array.isArray(t.anyOf)||t.anyOf.length===0)return;let n;return t.anyOf.forEach(i=>{i=e.resolveRef(i),e.isValid(r,i)&&(n=n?y1(n,i):i)}),n}function JN(e,t,r=e.rootSchema,n="#"){const{anyOf:i}=r;if(!Array.isArray(i)||i.length===0)return r;const a=ip(e,r,t);if(a==null)return e.errors.anyOfError({pointer:n,schema:r,value:t,anyOf:JSON.stringify(i)});const o=y1(r,a);return E5(o,"anyOf")}const e$=(e,t,r,n)=>{if(!(!Array.isArray(t.anyOf)||t.anyOf.length===0)){for(let i=0;i<t.anyOf.length;i+=1)if(e.isValid(r,t.anyOf[i]))return;return e.errors.anyOfError({pointer:n,schema:t,value:r,anyOf:t.anyOf})}},ap=["allOf","anyOf","oneOf","dependencies","if","then","else"],t$=["allOf","anyOf","oneOf","dependencies","if"];function r$(e){const t=Object.keys(e);return t$.findIndex(r=>t.includes(r))!==-1}function xu(e,t,r,n){let i,a;if(t=e.resolveRef(t),t.oneOf){const c=du(e,r,t,n);q1(c)?a=c:c&&(i=y1(i??{},c))}if(Array.isArray(t.allOf)){const c=t.allOf.map(Q=>{if(r$(Q)){let T=xu(e,Q,r,n);return T?(T=y1(Q,T),E5(T,...ap)):void 0}return Q});if(c.length>0){const Q=rp(e,{allOf:c});i=y1(i??{},Q)}}const o=ip(e,t,r);o&&(i=y1(i??{},o));const s=np(e,t,r);s&&(i=y1(i??{},s));const l=Is(e,t,r);if(l&&(i=y1(i??{},l)),i==null)return a;const u=xu(e,i,r,n);return u&&(i=y1(i,u)),E5(i,...ap)}const n$=["allOf","anyOf","oneOf","dependencies","if","then","else"];function op(e,t,r,n){let i=xu(e,t,r,n);return i?(i=y1(t,i),E5(i,...n$)):t}class i${constructor(t,r){this.remotes={},this.errors={},this.typeKeywords={},this.validateKeyword={},this.validateType={},this.validateFormat={},this.config=t,this.typeKeywords=Rs(t.typeKeywords),this.validateKeyword=Object.assign({},t.validateKeyword),this.validateType=Object.assign({},t.validateType),this.validateFormat=Object.assign({},t.validateFormat),this.errors=Object.assign({},t.errors),this.setSchema(r)}get rootSchema(){return this.__rootSchema}set rootSchema(t){t!=null&&(this.__rootSchema=this.config.compileSchema(this,t))}addRemoteSchema(t,r){this.config.addRemoteSchema(this,t,r)}compileSchema(t){var r;return this.config.compileSchema(this,t,(r=this.rootSchema)!==null&&r!==void 0?r:t)}createSchemaOf(t){return this.config.createSchemaOf(t)}each(t,r,n,i){return this.config.each(this,t,r,n,i)}eachSchema(t,r=this.rootSchema){return this.config.eachSchema(r,t)}getChildSchemaSelection(t,r){return this.config.getChildSchemaSelection(this,t,r)}getSchema(t){return this.config.getSchema(this,t)}getTemplate(t,r,n=this.config.templateDefaultOptions){return this.config.getTemplate(this,t,r,n)}isValid(t,r,n){return this.config.isValid(this,t,r,n)}resolveAnyOf(t,r,n){return this.config.resolveAnyOf(this,t,r,n)}resolveAllOf(t,r){return this.config.resolveAllOf(this,t,r)}resolveRef(t){return this.config.resolveRef(t,this.rootSchema)}resolveOneOf(t,r,n){return this.config.resolveOneOf(this,t,r,n)}setSchema(t){this.rootSchema=t}step(t,r,n,i){return this.config.step(this,t,r,n,i)}validate(t,r,n){return this.config.validate(this,t,r,n)}}function a$(e,t,r){r.id=r.id||t,e.remotes[t]=e.compileSchema(r)}var Ns={exports:{}},o$=Ns.exports,sp;function s$(){return sp||(sp=1,function(e,t){(function(r,n){e.exports=n()})(typeof self<"u"?self:o$,()=>(()=>{var r={d:(w,M)=>{for(var P in M)r.o(M,P)&&!r.o(w,P)&&Object.defineProperty(w,P,{enumerable:!0,get:M[P]})},o:(w,M)=>Object.prototype.hasOwnProperty.call(w,M),r:w=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(w,"__esModule",{value:!0})}},n={};function i(w){return w==="#"||w===""||Array.isArray(w)&&w.length===0||!1}r.r(n),r.d(n,{default:()=>A,get:()=>T,isRoot:()=>i,join:()=>E,remove:()=>O,removeUndefinedItems:()=>x,set:()=>d,split:()=>Q,splitLast:()=>C});const a=/~1/g,o=/~0/g,s=/\/+/g,l=/(^[#/]*|\/+$)/g;function u(w){return w.replace(a,"/").replace(o,"~")}function c(w){return u(decodeURIComponent(w))}function Q(w){if(w==null||typeof w!="string"||i(w))return Array.isArray(w)?w:[];const M=w.indexOf("#")>=0?c:u,P=(w=(w=w.replace(s,"/")).replace(l,"")).split("/");for(let N=0,j=P.length;N<j;N+=1)P[N]=M(P[N]);return P}function T(w,M,P=void 0){if(M==null||w==null)return P;if(i(M))return w;const N=f(w,Q(M));return N===void 0?P:N}function f(w,M){const P=M.shift();if(w!==void 0)return P!==void 0?f(w[P],M):w}const h=/^\[.*\]$/,p=/^\[(.+)\]$/;function g(w,M){return w==="__proto__"||w=="constructor"&&M.length>0&&M[0]=="prototype"}function d(w,M,P){if(M==null)return w;const N=Q(M);if(N.length===0)return w;w==null&&(w=h.test(N[0])?[]:{});let j,R,V=w;for(;N.length>1;)j=N.shift(),R=h.test(N[0]),g(j,N)||(V=y(V,j,R));return j=N.pop(),m(V,j,P),w}function m(w,M,P){let N;const j=M.match(p);M==="[]"&&Array.isArray(w)?w.push(P):j?(N=j.pop(),w[N]=P):w[M]=P}function y(w,M,P){if(w[M]!=null)return w[M];const N=P?[]:{};return m(w,M,N),N}function x(w){let M=0,P=0;for(;M+P<w.length;)w[M+P]===void 0&&(P+=1),w[M]=w[M+P],M+=1;return w.length=w.length-P,w}function O(w,M,P){const N=Q(M),j=N.pop(),R=T(w,N);return R&&delete R[j],Array.isArray(R)&&P!==!0&&x(R),w}const v=/\/+/g,L=/~/g,b=/\//g;function S(w,M){if(w.length===0)return M?"#":"";for(let P=0,N=w.length;P<N;P+=1)w[P]=w[P].replace(L,"~0").replace(b,"~1"),M&&(w[P]=encodeURIComponent(w[P]));return((M?"#/":"/")+w.join("/")).replace(v,"/")}function E(w,...M){const P=[];if(Array.isArray(w))return S(w,arguments[1]===!0);const N=arguments[arguments.length-1],j=typeof N=="boolean"?N:w&&w[0]==="#";for(let V=0,_=arguments.length;V<_;V+=1)P.push.apply(P,Q(arguments[V]));const R=[];for(let V=0,_=P.length;V<_;V+=1)if(P[V]===".."){if(R.length===0)return j?"#":"";R.pop()}else R.push(P[V]);return S(R,j)}function C(w){const M=Q(w);if(M.length===0)return typeof w=="string"&&w[0]==="#"?["#",M[0]]:["",void 0];if(M.length===1)return w[0]==="#"?["#",M[0]]:["",M[0]];const P=M.pop();return[E(M,w[0]==="#"),P]}const A={get:T,set:d,remove:O,join:E,split:Q,splitLast:C,isRoot:i,removeUndefinedItems:x};return n})())}(Ns)),Ns.exports}var Yi=s$();const H5=Dr(Yi);var $s={},A1={},_5={},lp;function l$(){if(lp)return _5;lp=1,Object.defineProperty(_5,"__esModule",{value:!0}),_5.TokenError=void 0;let e=class extends Error{constructor(r,n){if(super(r),this.message=r,this.token=n,n&&n.errors)n.errors.push(this);else throw this}inspect(){return"SyntaxError: "+this.message}};return _5.TokenError=e,_5}var up;function u$(){if(up)return A1;up=1,Object.defineProperty(A1,"__esModule",{value:!0}),A1.Parser=A1.findRuleByName=A1.parseRuleName=A1.escapeRegExp=A1.readToken=void 0;const e=/^[A-Z0-9_]+$/,t=/(\?|\+|\*)$/,r=/^(@|&|!)/,n="WS",i=l$();function a(p,g){let d=g.exec(p);return d&&d.index==0?d[0].length==0&&g.source.length>0?null:{type:null,text:d[0],rest:p.substr(d[0].length),start:0,end:d[0].length-1,fullText:d[0],errors:[],children:[],parent:null}:null}A1.readToken=a;function o(p){return p.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}A1.escapeRegExp=o;function s(p){p.rest="",p.children&&p.children.forEach(g=>s(g))}function l(p,g){p.start+=g,p.end+=g,p.children&&p.children.forEach(d=>l(d,p.start))}function u(p,g){g.errors&&g.errors.length&&g.errors.forEach(d=>p.push(d)),g.children&&g.children.forEach(d=>u(p,d))}function c(p){let g=t.exec(p),d=r.exec(p),m=g&&g[0]||"",y=d&&d[0]||"",x={raw:p,name:p.replace(t,"").replace(r,""),isOptional:m=="?"||m=="*",allowRepetition:m=="+"||m=="*",atLeastOne:m=="+",lookupPositive:y=="&",lookupNegative:y=="!",pinned:y=="@",lookup:!1,isLiteral:!1};return x.isLiteral=x.name[0]=="'"||x.name[0]=='"',x.lookup=x.lookupNegative||x.lookupPositive,x}A1.parseRuleName=c;function Q(p,g){let d=c(p);return g.cachedRules[d.name]||null}A1.findRuleByName=Q;function T(p,g){if(p.children){let d=p.children.filter(m=>m.type&&g.test(m.type));for(let m=0;m<d.length;m++){let y=p.children.indexOf(d[m]);y!=-1&&p.children.splice(y,1)}p.children.forEach(m=>T(m,g))}}const f=["EOF"];class h{constructor(g,d){this.grammarRules=g,this.options=d,this.cachedRules={},this.debug=d?d.debug===!0:!1;let m=[],y=[];if(g.forEach(x=>{let O=c(x.name);if(O.name in this.cachedRules){m.push("Duplicated rule "+O.name);return}else this.cachedRules[O.name]=x;if(!x.bnf||!x.bnf.length){let v="Missing rule content, rule: "+x.name;m.indexOf(v)==-1&&m.push(v)}else x.bnf.forEach(v=>{if(typeof v[0]=="string"&&c(v[0]).name==x.name){let b="Left recursion is not allowed, rule: "+x.name;m.indexOf(b)==-1&&m.push(b)}v.forEach(L=>{if(typeof L=="string"){let b=c(L);!b.isLiteral&&y.indexOf(b.name)==-1&&f.indexOf(b.name)==-1&&y.push(b.name)}})});n==x.name&&(x.implicitWs=!1),x.implicitWs&&y.indexOf(n)==-1&&y.push(n),x.recover&&y.indexOf(x.recover)==-1&&y.push(x.recover)}),y.forEach(x=>{x in this.cachedRules||m.push("Missing rule "+x)}),m.length)throw new Error(m.join(`
|
|
83
|
+
`),r=t[0].split(","),n=t.slice(1).map(i=>{const a={};return i.split(",").forEach((o,s)=>{a[r[s]]=o}),a});return{headers:r,data:n}}function Pd(e){return/\.(?:jpg|jpeg|png|gif|bmp|tiff|svg|webp)$/.test(e)&&!e.endsWith("/")}function kd(e){return/\.(?:mp4|avi|flv|wmv|mov|webm)$/.test(e)&&!e.endsWith("/")}function Dd(e){return/\.(?:mp3|wav|wma|ogg|flac)$/.test(e)&&!e.endsWith("/")}function Vd(e){return/\.(?:zip|rar|7z|tar|gz|bz2)$/.test(e)&&!e.endsWith("/")}function Rd(e){if(!e||typeof e!="string")return"";try{const t=new URL(e).pathname;return decodeURIComponent(t.split("/").pop()??"")}catch{return""}}function Ps(e){if(typeof e!="string"||!e)return;const t=e.match(/bytes=(\d+),(\d+)/);if(t)return{byte:Number(t[1]),size:Number(t[2])}}function Id(e){if(!e)return"";const[t,r]=e.split("?"),n=Ps(r);return n?`${t}?bytes=${n.byte+n.size},0`:""}function GI(e){return e.startsWith("s3://")?e.split("s3://")[1].split("/")[0]:""}function Nd(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Nd(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function $d(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Nd(e))&&(n&&(n+=" "),n+=t);return n}const Bd=W.createContext({});function f4(){const e=W.useContext(Bd);if(!e)throw new Error("usePreviewBlockContext must be used within a PreviewBlockProvider");return e}const YI={AdditionalItemsError:"Array at `{{pointer}}` may not have an additional item `{{key}}`",AdditionalPropertiesError:"Additional property `{{property}}` on `{{pointer}}` does not match schema `{{schema}}`",AllOfError:"Value `{{value}}` at `{{pointer}}` does not match schema of `{{allOf}}`",AnyOfError:"Value `{{value}}` at `{{pointer}}` does not match any schema of `{{anyOf}}`",ConstError:"Expected value at `{{pointer}}` to be `{{expected}}`, but value given is `{{value}}`",containsAnyError:"The array at `{{pointer}}` must contain at least one item",ContainsArrayError:"The property at `{{pointer}}` must not be an array",ContainsError:"The array at `{{pointer}}` must contain an element that matches `{{schema}}`",EnumError:"Expected given value `{{value}}` in `{{pointer}}` to be one of `{{values}}`",ForbiddenPropertyError:"Property name `{{property}}` at `{{pointer}}` is not allowed",FormatDateError:"Value `{{value}}` at `{{pointer}}` is not a valid date",FormatDateTimeError:"Value `{{value}}` at `{{pointer}}` is not a valid date-time",FormatEmailError:"Value `{{value}}` at `{{pointer}}` is not a valid email",FormatHostnameError:"Value `{{value}}` at `{{pointer}}` is not a valid hostname",FormatIPV4Error:"Value `{{value}}` at `{{pointer}}` is not a valid IPv4 address",FormatIPV4LeadingZeroError:"IPv4 addresses starting with zero are invalid, since they are interpreted as octals",FormatIPV6Error:"Value `{{value}}` at `{{pointer}}` is not a valid IPv6 address",FormatIPV6LeadingZeroError:"IPv6 addresses starting with zero are invalid, since they are interpreted as octals",FormatJsonPointerError:"Value `{{value}}` at `{{pointer}}` is not a valid json-pointer",FormatRegExError:"Value `{{value}}` at `{{pointer}}` is not a valid regular expression",FormatTimeError:"Value `{{value}}` at `{{pointer}}` is not a valid time",FormatURIError:"Value `{{value}}` at `{{pointer}}` is not a valid uri",FormatURIReferenceError:"Value `{{value}}` at `{{pointer}}` is not a valid uri-reference",FormatURITemplateError:"Value `{{value}}` at `{{pointer}}` is not a valid uri-template",FormatURLError:"Value `{{value}}` at `{{pointer}}` is not a valid url",InvalidDataError:"No value may be specified in `{{pointer}}`",InvalidPropertyNameError:"Invalid property name `{{property}}` at `{{pointer}}`",MaximumError:"Value in `{{pointer}}` is `{{length}}`, but should be `{{maximum}}` at maximum",MaxItemsError:"Too many items in `{{pointer}}`, should be `{{maximum}}` at most, but got `{{length}}`",MaxLengthError:"Value `{{pointer}}` should have a maximum length of `{{maxLength}}`, but got `{{length}}`.",MaxPropertiesError:"Too many properties in `{{pointer}}`, should be `{{maximum}}` at most, but got `{{length}}`",MinimumError:"Value in `{{pointer}}` is `{{length}}`, but should be `{{minimum}}` at minimum",MinItemsError:"Too few items in `{{pointer}}`, should be at least `{{minItems}}`, but got `{{length}}`",MinItemsOneError:"At least one item is required in `{{pointer}}`",MinLengthError:"Value `{{pointer}}` should have a minimum length of `{{minLength}}`, but got `{{length}}`.",MinLengthOneError:"A value is required in `{{pointer}}`",MinPropertiesError:"Too few properties in `{{pointer}}`, should be at least `{{minimum}}`, but got `{{length}}`",MissingDependencyError:"The required propery '{{missingProperty}}' in `{{pointer}}` is missing",MissingOneOfPropertyError:"Value at `{{pointer}}` property: `{{property}}`",MultipleOfError:"Expected `{{value}}` in `{{pointer}}` to be multiple of `{{multipleOf}}`",MultipleOneOfError:"Value `{{value}}` should not match multiple schemas in oneOf `{{matches}}`",NoAdditionalPropertiesError:"Additional property `{{property}}` in `{{pointer}}` is not allowed",NotError:"Value `{{value}}` at pointer should not match schema `{{not}}`",OneOfError:"Value `{{value}}` in `{{pointer}}` does not match any given oneof schema",OneOfPropertyError:"Failed finding a matching oneOfProperty schema in `{{pointer}}` where `{{property}}` matches `{{value}}`",PatternError:"Value in `{{pointer}}` should match `{{description}}`, but received `{{received}}`",PatternPropertiesError:"Property `{{key}}` does not match any patterns in `{{pointer}}`. Valid patterns are: {{patterns}}",RequiredPropertyError:"The required property `{{key}}` is missing at `{{pointer}}`",SchemaWarning:"Failed retrieving a schema from '{{pointer}}' to key '{{key}}'",TypeError:"Expected `{{value}}` ({{received}}) in `{{pointer}}` to be of type `{{expected}}`",UndefinedValueError:"Value must not be undefined in `{{pointer}}`",UniqueItemsError:"Items in array must be unique. Value `{{value}}` in `{{pointer}}` is a duplicate of {{duplicatePointer}}.",UnknownPropertyError:"Could not find a valid schema for property `{{pointer}}` within object",ValueNotEmptyError:"A value for `{{property}}` is required at `{{pointer}}`"},KI=Object.prototype.toString;function Ge(e){const t=KI.call(e).match(/\s([^\]]+)\]/).pop().toLowerCase();return t==="file"?"object":t}const JI="object",eN="array";function tN(e,t={}){return e.replace(/\{\{\w+\}\}/g,r=>{const n=r.replace(/[{}]/g,""),i=t[n],a=Ge(i);return a===JI||a===eN?JSON.stringify(i):i})}function rN(e,t,r=e){var n;const i=(n=YI[e])!==null&&n!==void 0?n:r;return tN(i,t)}function nN(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function iN(e,t){return{type:"error",name:e,code:nN(e),message:rN(e,t),data:t}}function Ae(e){return iN.bind(null,e)}function L5(e,t=[]){for(let r=0;r<e.length;r+=1){const n=e[r];Array.isArray(n)?L5(n,t):t.push(n)}return t}const b5={DECLARATOR_ONEOF:"oneOfProperty",GET_TEMPLATE_RECURSION_LIMIT:1,propertyBlacklist:["_id"],templateDefaultOptions:{addOptionalProps:!1,removeInvalidData:!1,extendDefaults:!0}};function S5(e,t,r){const n={...t};return Object.defineProperty(n,"getOneOfOrigin",{enumerable:!1,value:()=>({index:r,schema:e})}),n}function q1(e){return e?.type==="error"}function aN(e){return e instanceof Promise}function ks(e){return q1(e)||aN(e)}const{DECLARATOR_ONEOF:Gi}=b5;function oN(e,t,r=e.rootSchema,n="#"){if(t!=null&&r[Gi]){const o=[],s=r[Gi],l=t[r[Gi]];if(l===void 0)return e.errors.missingOneOfPropertyError({property:s,pointer:n,schema:r,value:t});for(let u=0;u<r.oneOf.length;u+=1){const c=e.resolveRef(r.oneOf[u]),Q=e.step(s,c,t,n);if(q1(Q))return Q;let T=L5(e.validate(l,Q,n));if(T=T.filter(ks),T.length>0)o.push(...T);else return S5(r,c,u)}return e.errors.oneOfPropertyError({property:s,value:l,pointer:n,schema:r,errors:o})}const i=[],a=[];for(let o=0;o<r.oneOf.length;o+=1){const s=e.resolveRef(r.oneOf[o]);let l=L5(e.validate(t,s,n));l=l.filter(ks),l.length>0?a.push(...l):i.push({index:o,schema:s})}return i.length===1?S5(r,i[0].schema,i[0].index):i.length>1?e.errors.multipleOneOfError({value:t,pointer:n,schema:r,matches:i}):e.errors.oneOfError({value:JSON.stringify(t),pointer:n,schema:r,oneOf:r.oneOf,errors:a})}function sN(e,t,r,n){if(r==null||t.properties==null)return-1;let i=0;const a=Object.keys(t.properties);for(let o=0;o<a.length;o+=1){const s=a[o];r[s]!=null&&e.isValid(r[s],t.properties[s],n)&&(i+=1)}return i}function du(e,t,r=e.rootSchema,n="#"){if(t!=null&&r[Gi]){const a=[],o=r[Gi],s=t[r[Gi]];if(s===void 0)return e.errors.missingOneOfPropertyError({property:o,pointer:n,schema:r,value:t});for(let l=0;l<r.oneOf.length;l+=1){const u=e.resolveRef(r.oneOf[l]),c=e.step(o,u,t,n);if(q1(c))return c;let Q=L5(e.validate(s,c,n));if(Q=Q.filter(ks),Q.length>0)a.push(...Q);else return S5(r,u,l)}return e.errors.oneOfPropertyError({property:o,value:s,pointer:n,schema:r,errors:a})}const i=[];for(let a=0;a<r.oneOf.length;a+=1){const o=e.resolveRef(r.oneOf[a]);e.isValid(t,o,n)&&i.push({schema:o,index:a})}if(i.length===1)return S5(r,i[0].schema,i[0].index);if(Ge(t)==="object"){let a,o=-1,s=0;for(let l=0;l<r.oneOf.length;l+=1){const u=e.resolveRef(r.oneOf[l]),c=sN(e,u,t);s<c&&(s=c,a=r.oneOf[l],o=l)}return a===void 0?e.errors.oneOfError({value:JSON.stringify(t),pointer:n,schema:r,oneOf:r.oneOf}):S5(r,a,o)}return i.length>1?e.errors.multipleOneOfError({matches:i,pointer:n,schema:r,value:t}):e.errors.oneOfError({value:JSON.stringify(t),pointer:n,schema:r,oneOf:r.oneOf})}const lN=(e,t,r,n)=>{if(Array.isArray(t.oneOf)){const i=e.resolveOneOf(r,t,n);if(q1(i))return i}};var pu,jd;function uN(){if(jd)return pu;jd=1;var e=function(m){return t(m)&&!r(m)};function t(d){return!!d&&typeof d=="object"}function r(d){var m=Object.prototype.toString.call(d);return m==="[object RegExp]"||m==="[object Date]"||a(d)}var n=typeof Symbol=="function"&&Symbol.for,i=n?Symbol.for("react.element"):60103;function a(d){return d.$$typeof===i}function o(d){return Array.isArray(d)?[]:{}}function s(d,m){return m.clone!==!1&&m.isMergeableObject(d)?p(o(d),d,m):d}function l(d,m,y){return d.concat(m).map(function(x){return s(x,y)})}function u(d,m){if(!m.customMerge)return p;var y=m.customMerge(d);return typeof y=="function"?y:p}function c(d){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(d).filter(function(m){return Object.propertyIsEnumerable.call(d,m)}):[]}function Q(d){return Object.keys(d).concat(c(d))}function T(d,m){try{return m in d}catch{return!1}}function f(d,m){return T(d,m)&&!(Object.hasOwnProperty.call(d,m)&&Object.propertyIsEnumerable.call(d,m))}function h(d,m,y){var x={};return y.isMergeableObject(d)&&Q(d).forEach(function(O){x[O]=s(d[O],y)}),Q(m).forEach(function(O){f(d,O)||(T(d,O)&&y.isMergeableObject(m[O])?x[O]=u(O,y)(d[O],m[O],y):x[O]=s(m[O],y))}),x}function p(d,m,y){y=y||{},y.arrayMerge=y.arrayMerge||l,y.isMergeableObject=y.isMergeableObject||e,y.cloneUnlessOtherwiseSpecified=s;var x=Array.isArray(m),O=Array.isArray(d),v=x===O;return v?x?y.arrayMerge(d,m,y):h(d,m,y):s(m,y)}p.all=function(m,y){if(!Array.isArray(m))throw new Error("first argument should be an array");return m.reduce(function(x,O){return p(x,O,y)},{})};var g=p;return pu=g,pu}var cN=uN();const Fd=Dr(cN),QN=(e,t)=>t,qd=(e,t)=>Fd(e,t,{arrayMerge:QN}),TN=(e,t)=>{const r=e.concat(t);return r.filter((n,i)=>r.indexOf(n)===i)},fN=(e,t)=>Fd(e,t,{arrayMerge:TN});function y1(e,t){const r=Ge(e),n=Ge(t);if(r!==n)return e;const i=fN(e,t);return e.getOneOfOrigin?Object.defineProperty(i,"getOneOfOrigin",{enumerable:!1,value:e.getOneOfOrigin}):t.getOneOfOrigin&&Object.defineProperty(i,"getOneOfOrigin",{enumerable:!1,value:t.getOneOfOrigin}),i}function E5(e,...t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),e.getOneOfOrigin&&Object.defineProperty(r,"getOneOfOrigin",{enumerable:!1,value:e.getOneOfOrigin}),r}var hN=Function.prototype.toString,mu=Object.create,dN=Object.prototype.toString,pN=function(){function e(){this._keys=[],this._values=[]}return e.prototype.has=function(t){return!!~this._keys.indexOf(t)},e.prototype.get=function(t){return this._values[this._keys.indexOf(t)]},e.prototype.set=function(t,r){this._keys.push(t),this._values.push(r)},e}();function mN(){return new pN}function gN(){return new WeakMap}var ON=typeof WeakMap<"u"?gN:mN;function gu(e){if(!e)return mu(null);var t=e.constructor;if(t===Object)return e===Object.prototype?{}:mu(e);if(t&&~hN.call(t).indexOf("[native code]"))try{return new t}catch{}return mu(e)}function yN(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}function vN(e){return e.flags}var xN=/test/g.flags==="g"?vN:yN;function Zd(e){var t=dN.call(e);return t.substring(8,t.length-1)}function LN(e){return e[Symbol.toStringTag]||Zd(e)}var bN=typeof Symbol<"u"?LN:Zd,SN=Object.defineProperty,EN=Object.getOwnPropertyDescriptor,zd=Object.getOwnPropertyNames,Ou=Object.getOwnPropertySymbols,Xd=Object.prototype,Ud=Xd.hasOwnProperty,HN=Xd.propertyIsEnumerable,Wd=typeof Ou=="function";function _N(e){return zd(e).concat(Ou(e))}var wN=Wd?_N:zd;function Ds(e,t,r){for(var n=wN(e),i=0,a=n.length,o=void 0,s=void 0;i<a;++i)if(o=n[i],!(o==="callee"||o==="caller")){if(s=EN(e,o),!s){t[o]=r.copier(e[o],r);continue}!s.get&&!s.set&&(s.value=r.copier(s.value,r));try{SN(t,o,s)}catch{t[o]=s.value}}return t}function CN(e,t){var r=new t.Constructor;t.cache.set(e,r);for(var n=0,i=e.length;n<i;++n)r[n]=t.copier(e[n],t);return r}function AN(e,t){var r=new t.Constructor;return t.cache.set(e,r),Ds(e,r,t)}function Gd(e,t){return e.slice(0)}function MN(e,t){return e.slice(0,e.size,e.type)}function PN(e,t){return new t.Constructor(Gd(e.buffer))}function kN(e,t){return new t.Constructor(e.getTime())}function Yd(e,t){var r=new t.Constructor;return t.cache.set(e,r),e.forEach(function(n,i){r.set(i,t.copier(n,t))}),r}function DN(e,t){return Ds(e,Yd(e,t),t)}function VN(e,t){var r=gu(t.prototype);t.cache.set(e,r);for(var n in e)Ud.call(e,n)&&(r[n]=t.copier(e[n],t));return r}function RN(e,t){var r=gu(t.prototype);t.cache.set(e,r);for(var n in e)Ud.call(e,n)&&(r[n]=t.copier(e[n],t));for(var i=Ou(e),a=0,o=i.length,s=void 0;a<o;++a)s=i[a],HN.call(e,s)&&(r[s]=t.copier(e[s],t));return r}var IN=Wd?RN:VN;function NN(e,t){var r=gu(t.prototype);return t.cache.set(e,r),Ds(e,r,t)}function yu(e,t){return new t.Constructor(e.valueOf())}function $N(e,t){var r=new t.Constructor(e.source,xN(e));return r.lastIndex=e.lastIndex,r}function Vs(e,t){return e}function Kd(e,t){var r=new t.Constructor;return t.cache.set(e,r),e.forEach(function(n){r.add(t.copier(n,t))}),r}function BN(e,t){return Ds(e,Kd(e,t),t)}var jN=Array.isArray,vu=Object.assign,FN=Object.getPrototypeOf||function(e){return e.__proto__},Jd={array:CN,arrayBuffer:Gd,blob:MN,dataView:PN,date:kN,error:Vs,map:Yd,object:IN,regExp:$N,set:Kd},qN=vu({},Jd,{array:AN,map:DN,object:NN,set:BN});function ZN(e){return{Arguments:e.object,Array:e.array,ArrayBuffer:e.arrayBuffer,Blob:e.blob,Boolean:yu,DataView:e.dataView,Date:e.date,Error:e.error,Float32Array:e.arrayBuffer,Float64Array:e.arrayBuffer,Int8Array:e.arrayBuffer,Int16Array:e.arrayBuffer,Int32Array:e.arrayBuffer,Map:e.map,Number:yu,Object:e.object,Promise:Vs,RegExp:e.regExp,Set:e.set,String:yu,WeakMap:Vs,WeakSet:Vs,Uint8Array:e.arrayBuffer,Uint8ClampedArray:e.arrayBuffer,Uint16Array:e.arrayBuffer,Uint32Array:e.arrayBuffer,Uint64Array:e.arrayBuffer}}function ep(e){var t=vu({},Jd,e),r=ZN(t),n=r.Array,i=r.Object;function a(o,s){if(s.prototype=s.Constructor=void 0,!o||typeof o!="object")return o;if(s.cache.has(o))return s.cache.get(o);if(s.prototype=FN(o),s.Constructor=s.prototype&&s.prototype.constructor,!s.Constructor||s.Constructor===Object)return i(o,s);if(jN(o))return n(o,s);var l=r[bN(o)];return l?l(o,s):typeof o.then=="function"?o:i(o,s)}return function(s){return a(s,{Constructor:void 0,cache:ON(),copier:a,prototype:void 0})}}function zN(e){return ep(vu({},qN,e))}zN({});var Rs=ep({});function Is(e,t,r){if(t.if!=null){if(t.if===!1)return t.else;if(t.if&&(t.then||t.else)){const n=e.validate(r,e.resolveRef(t.if));if(n.length===0&&t.then)return e.resolveRef(t.then);if(n.length!==0&&t.else)return e.resolveRef(t.else)}}}const XN=(e,t,r,n)=>{const i=Is(e,t,r);if(i)return e.validate(r,i,n)};function tp(e,t,r){var n;const i={...(n=e.resolveRef(t))!==null&&n!==void 0?n:{}},a=Is(e,i,r);return a||E5(i,"if","then","else")}function UN(e,t,r=e.rootSchema){let n=Rs(r);for(let i=0;i<r.allOf.length;i+=1){const a=tp(e,r.allOf[i],t);n=y1(n,a)}return delete n.allOf,n}function rp(e,t){const{allOf:r}=t;if(!Array.isArray(r)||r.length===0)return;let n={};return r.forEach(i=>{n=y1(n,e.resolveRef(i))}),n}const WN=(e,t,r,n)=>{const{allOf:i}=t;if(!Array.isArray(i)||i.length===0)return;const a=[];return t.allOf.forEach(o=>{a.push(...e.validate(r,o,n))}),a};function GN(e,t){return e==null||e.$ref==null?e:e.getRoot?e.getRoot().getRef(e):t.getRef(e)}function YN(e){return e.filter((t,r)=>e.indexOf(t)===r)}function P3(e){return Ge(e)==="object"}function np(e,t,r){const{dependencies:n}=t;if(!P3(n)||!P3(r))return;let i=!1,a={required:[]};if(Object.keys(n).forEach(o=>{var s,l;if(r[o]==null&&!(!((s=t.required)===null||s===void 0)&&s.includes(o)||!((l=a.required)===null||l===void 0)&&l.includes(o)))return;const u=n[o];if(Array.isArray(u)){i=!0,a.required.push(...u);return}if(P3(u)){i=!0,a=y1(a,e.resolveRef(u));return}}),i)return a.required=YN(a.required),a}const KN=(e,t,r,n)=>{if(Ge(t.dependencies)!=="object")return;const i=[];return Object.keys(r).forEach(a=>{if(t.dependencies[a]===void 0||t.dependencies[a]===!0)return;if(t.dependencies[a]===!1){i.push(e.errors.missingDependencyError({pointer:n,schema:t,value:r}));return}let o;const s=Ge(t.dependencies[a]);if(s==="array")o=t.dependencies[a].filter(l=>r[l]===void 0).map(l=>e.errors.missingDependencyError({missingProperty:l,pointer:n,schema:t,value:r}));else if(s==="object")o=e.validate(r,t.dependencies[a],n);else throw new Error(`Invalid dependency definition for ${n}/${a}. Must be string[] or schema`);i.push(...o)}),i.length>0?i:void 0};function ip(e,t,r){if(!Array.isArray(t.anyOf)||t.anyOf.length===0)return;let n;return t.anyOf.forEach(i=>{i=e.resolveRef(i),e.isValid(r,i)&&(n=n?y1(n,i):i)}),n}function JN(e,t,r=e.rootSchema,n="#"){const{anyOf:i}=r;if(!Array.isArray(i)||i.length===0)return r;const a=ip(e,r,t);if(a==null)return e.errors.anyOfError({pointer:n,schema:r,value:t,anyOf:JSON.stringify(i)});const o=y1(r,a);return E5(o,"anyOf")}const e$=(e,t,r,n)=>{if(!(!Array.isArray(t.anyOf)||t.anyOf.length===0)){for(let i=0;i<t.anyOf.length;i+=1)if(e.isValid(r,t.anyOf[i]))return;return e.errors.anyOfError({pointer:n,schema:t,value:r,anyOf:t.anyOf})}},ap=["allOf","anyOf","oneOf","dependencies","if","then","else"],t$=["allOf","anyOf","oneOf","dependencies","if"];function r$(e){const t=Object.keys(e);return t$.findIndex(r=>t.includes(r))!==-1}function xu(e,t,r,n){let i,a;if(t=e.resolveRef(t),t.oneOf){const c=du(e,r,t,n);q1(c)?a=c:c&&(i=y1(i??{},c))}if(Array.isArray(t.allOf)){const c=t.allOf.map(Q=>{if(r$(Q)){let T=xu(e,Q,r,n);return T?(T=y1(Q,T),E5(T,...ap)):void 0}return Q});if(c.length>0){const Q=rp(e,{allOf:c});i=y1(i??{},Q)}}const o=ip(e,t,r);o&&(i=y1(i??{},o));const s=np(e,t,r);s&&(i=y1(i??{},s));const l=Is(e,t,r);if(l&&(i=y1(i??{},l)),i==null)return a;const u=xu(e,i,r,n);return u&&(i=y1(i,u)),E5(i,...ap)}const n$=["allOf","anyOf","oneOf","dependencies","if","then","else"];function op(e,t,r,n){let i=xu(e,t,r,n);return i?(i=y1(t,i),E5(i,...n$)):t}class i${constructor(t,r){this.remotes={},this.errors={},this.typeKeywords={},this.validateKeyword={},this.validateType={},this.validateFormat={},this.config=t,this.typeKeywords=Rs(t.typeKeywords),this.validateKeyword=Object.assign({},t.validateKeyword),this.validateType=Object.assign({},t.validateType),this.validateFormat=Object.assign({},t.validateFormat),this.errors=Object.assign({},t.errors),this.setSchema(r)}get rootSchema(){return this.__rootSchema}set rootSchema(t){t!=null&&(this.__rootSchema=this.config.compileSchema(this,t))}addRemoteSchema(t,r){this.config.addRemoteSchema(this,t,r)}compileSchema(t){var r;return this.config.compileSchema(this,t,(r=this.rootSchema)!==null&&r!==void 0?r:t)}createSchemaOf(t){return this.config.createSchemaOf(t)}each(t,r,n,i){return this.config.each(this,t,r,n,i)}eachSchema(t,r=this.rootSchema){return this.config.eachSchema(r,t)}getChildSchemaSelection(t,r){return this.config.getChildSchemaSelection(this,t,r)}getSchema(t){return this.config.getSchema(this,t)}getTemplate(t,r,n=this.config.templateDefaultOptions){return this.config.getTemplate(this,t,r,n)}isValid(t,r,n){return this.config.isValid(this,t,r,n)}resolveAnyOf(t,r,n){return this.config.resolveAnyOf(this,t,r,n)}resolveAllOf(t,r){return this.config.resolveAllOf(this,t,r)}resolveRef(t){return this.config.resolveRef(t,this.rootSchema)}resolveOneOf(t,r,n){return this.config.resolveOneOf(this,t,r,n)}setSchema(t){this.rootSchema=t}step(t,r,n,i){return this.config.step(this,t,r,n,i)}validate(t,r,n){return this.config.validate(this,t,r,n)}}function a$(e,t,r){r.id=r.id||t,e.remotes[t]=e.compileSchema(r)}var Ns={exports:{}},o$=Ns.exports,sp;function s$(){return sp||(sp=1,function(e,t){(function(r,n){e.exports=n()})(typeof self<"u"?self:o$,()=>(()=>{var r={d:(w,M)=>{for(var P in M)r.o(M,P)&&!r.o(w,P)&&Object.defineProperty(w,P,{enumerable:!0,get:M[P]})},o:(w,M)=>Object.prototype.hasOwnProperty.call(w,M),r:w=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(w,"__esModule",{value:!0})}},n={};function i(w){return w==="#"||w===""||Array.isArray(w)&&w.length===0||!1}r.r(n),r.d(n,{default:()=>A,get:()=>T,isRoot:()=>i,join:()=>E,remove:()=>O,removeUndefinedItems:()=>x,set:()=>d,split:()=>Q,splitLast:()=>C});const a=/~1/g,o=/~0/g,s=/\/+/g,l=/(^[#/]*|\/+$)/g;function u(w){return w.replace(a,"/").replace(o,"~")}function c(w){return u(decodeURIComponent(w))}function Q(w){if(w==null||typeof w!="string"||i(w))return Array.isArray(w)?w:[];const M=w.indexOf("#")>=0?c:u,P=(w=(w=w.replace(s,"/")).replace(l,"")).split("/");for(let N=0,j=P.length;N<j;N+=1)P[N]=M(P[N]);return P}function T(w,M,P=void 0){if(M==null||w==null)return P;if(i(M))return w;const N=f(w,Q(M));return N===void 0?P:N}function f(w,M){const P=M.shift();if(w!==void 0)return P!==void 0?f(w[P],M):w}const h=/^\[.*\]$/,p=/^\[(.+)\]$/;function g(w,M){return w==="__proto__"||w=="constructor"&&M.length>0&&M[0]=="prototype"}function d(w,M,P){if(M==null)return w;const N=Q(M);if(N.length===0)return w;w==null&&(w=h.test(N[0])?[]:{});let j,R,V=w;for(;N.length>1;)j=N.shift(),R=h.test(N[0]),g(j,N)||(V=y(V,j,R));return j=N.pop(),m(V,j,P),w}function m(w,M,P){let N;const j=M.match(p);M==="[]"&&Array.isArray(w)?w.push(P):j?(N=j.pop(),w[N]=P):w[M]=P}function y(w,M,P){if(w[M]!=null)return w[M];const N=P?[]:{};return m(w,M,N),N}function x(w){let M=0,P=0;for(;M+P<w.length;)w[M+P]===void 0&&(P+=1),w[M]=w[M+P],M+=1;return w.length=w.length-P,w}function O(w,M,P){const N=Q(M),j=N.pop(),R=T(w,N);return R&&delete R[j],Array.isArray(R)&&P!==!0&&x(R),w}const v=/\/+/g,L=/~/g,b=/\//g;function S(w,M){if(w.length===0)return M?"#":"";for(let P=0,N=w.length;P<N;P+=1)w[P]=w[P].replace(L,"~0").replace(b,"~1"),M&&(w[P]=encodeURIComponent(w[P]));return((M?"#/":"/")+w.join("/")).replace(v,"/")}function E(w,...M){const P=[];if(Array.isArray(w))return S(w,arguments[1]===!0);const N=arguments[arguments.length-1],j=typeof N=="boolean"?N:w&&w[0]==="#";for(let V=0,_=arguments.length;V<_;V+=1)P.push.apply(P,Q(arguments[V]));const R=[];for(let V=0,_=P.length;V<_;V+=1)if(P[V]===".."){if(R.length===0)return j?"#":"";R.pop()}else R.push(P[V]);return S(R,j)}function C(w){const M=Q(w);if(M.length===0)return typeof w=="string"&&w[0]==="#"?["#",M[0]]:["",void 0];if(M.length===1)return w[0]==="#"?["#",M[0]]:["",M[0]];const P=M.pop();return[E(M,w[0]==="#"),P]}const A={get:T,set:d,remove:O,join:E,split:Q,splitLast:C,isRoot:i,removeUndefinedItems:x};return n})())}(Ns)),Ns.exports}var Yi=s$();const H5=Dr(Yi);var $s={},A1={},_5={},lp;function l$(){if(lp)return _5;lp=1,Object.defineProperty(_5,"__esModule",{value:!0}),_5.TokenError=void 0;let e=class extends Error{constructor(r,n){if(super(r),this.message=r,this.token=n,n&&n.errors)n.errors.push(this);else throw this}inspect(){return"SyntaxError: "+this.message}};return _5.TokenError=e,_5}var up;function u$(){if(up)return A1;up=1,Object.defineProperty(A1,"__esModule",{value:!0}),A1.Parser=A1.findRuleByName=A1.parseRuleName=A1.escapeRegExp=A1.readToken=void 0;const e=/^[A-Z0-9_]+$/,t=/(\?|\+|\*)$/,r=/^(@|&|!)/,n="WS",i=l$();function a(p,g){let d=g.exec(p);return d&&d.index==0?d[0].length==0&&g.source.length>0?null:{type:null,text:d[0],rest:p.substr(d[0].length),start:0,end:d[0].length-1,fullText:d[0],errors:[],children:[],parent:null}:null}A1.readToken=a;function o(p){return p.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}A1.escapeRegExp=o;function s(p){p.rest="",p.children&&p.children.forEach(g=>s(g))}function l(p,g){p.start+=g,p.end+=g,p.children&&p.children.forEach(d=>l(d,p.start))}function u(p,g){g.errors&&g.errors.length&&g.errors.forEach(d=>p.push(d)),g.children&&g.children.forEach(d=>u(p,d))}function c(p){let g=t.exec(p),d=r.exec(p),m=g&&g[0]||"",y=d&&d[0]||"",x={raw:p,name:p.replace(t,"").replace(r,""),isOptional:m=="?"||m=="*",allowRepetition:m=="+"||m=="*",atLeastOne:m=="+",lookupPositive:y=="&",lookupNegative:y=="!",pinned:y=="@",lookup:!1,isLiteral:!1};return x.isLiteral=x.name[0]=="'"||x.name[0]=='"',x.lookup=x.lookupNegative||x.lookupPositive,x}A1.parseRuleName=c;function Q(p,g){let d=c(p);return g.cachedRules[d.name]||null}A1.findRuleByName=Q;function T(p,g){if(p.children){let d=p.children.filter(m=>m.type&&g.test(m.type));for(let m=0;m<d.length;m++){let y=p.children.indexOf(d[m]);y!=-1&&p.children.splice(y,1)}p.children.forEach(m=>T(m,g))}}const f=["EOF"];class h{constructor(g,d){this.grammarRules=g,this.options=d,this.cachedRules={},this.debug=d?d.debug===!0:!1;let m=[],y=[];if(g.forEach(x=>{let O=c(x.name);if(O.name in this.cachedRules){m.push("Duplicated rule "+O.name);return}else this.cachedRules[O.name]=x;if(!x.bnf||!x.bnf.length){let v="Missing rule content, rule: "+x.name;m.indexOf(v)==-1&&m.push(v)}else x.bnf.forEach(v=>{if(typeof v[0]=="string"&&c(v[0]).name==x.name){let b="Left recursion is not allowed, rule: "+x.name;m.indexOf(b)==-1&&m.push(b)}v.forEach(L=>{if(typeof L=="string"){let b=c(L);!b.isLiteral&&y.indexOf(b.name)==-1&&f.indexOf(b.name)==-1&&y.push(b.name)}})});n==x.name&&(x.implicitWs=!1),x.implicitWs&&y.indexOf(n)==-1&&y.push(n),x.recover&&y.indexOf(x.recover)==-1&&y.push(x.recover)}),y.forEach(x=>{x in this.cachedRules||m.push("Missing rule "+x)}),m.length)throw new Error(m.join(`
|
|
84
84
|
`))}getAST(g,d){d||(d=this.grammarRules.filter(y=>!y.fragment&&y.name.indexOf("%")!=0)[0].name);let m=this.parse(g,d);if(m){u(m.errors,m),l(m,0),T(m,/^%/),(!this.options||!this.options.keepUpperRules)&&T(m,e);let y=m.rest;y&&new i.TokenError(`Unexpected end of input:
|
|
85
85
|
`+y,m),s(m),m.rest=y}return m}emitSource(){return"CANNOT EMIT SOURCE FROM BASE Parser"}parse(g,d,m=0){let y=null,x=c(d),O,v=this.debug&&!e.test(x.name);v&&console.log(new Array(m).join("│ ")+"Trying to get "+d+" from "+JSON.stringify(g.split(`
|
|
86
86
|
`)[0]));let L=x.name,b=Q(x.name,this);if(x.name=="EOF"){if(g.length)return null;if(g.length==0)return{type:"EOF",text:"",rest:"",start:0,end:0,fullText:"",errors:[],children:[],parent:null}}try{if(!b&&x.isLiteral){let S=x.name.trim();if(S.startsWith('"')?S=JSON.parse(S):S.startsWith("'")&&(S=S.replace(/^'(.+)'$/,"$1").replace(/\\'/g,"'")),S==="")return{type:"%%EMPTY%%",text:"",rest:g,start:0,end:0,fullText:"",errors:[],children:[],parent:null};O=new RegExp(o(S)),L=null}}catch(S){return S instanceof ReferenceError&&console.error(S),null}if(O){let S=a(g,O);if(S)return S.type=L,S}else{let S=b.bnf;S instanceof Array&&S.forEach(E=>{if(y)return;let C=null,A={type:x.name,text:"",children:[],end:0,errors:[],fullText:"",parent:null,start:0,rest:g};b.fragment&&(A.fragment=!0);let w=g,M=0,P=E.length>0,N=!1;for(let j=0;j<E.length;j++)if(typeof E[j]=="string"){let R=c(E[j]);P=P&&R.isOptional;let V,_=!1;do{if(V=null,b.implicitWs&&(V=this.parse(w,R.name,m+1),!V)){let D;do if(D=this.parse(w,n,m+1),D)A.text=A.text+D.text,A.end=A.text.length,D.parent=A,A.children.push(D),w=w.substr(D.text.length),M+=D.text.length;else break;while(D&&D.text.length)}if(V=V||this.parse(w,R.name,m+1),R.lookupNegative){if(V)return;break}if(R.lookupPositive&&!V)return;if(!V&&(R.isOptional||R.atLeastOne&&_))break;if(V&&b.pinned==j+1&&(C=V,v&&console.log(new Array(m+1).join("│ ")+"└─ "+V.type+" PINNED")),V||(V=this.parseRecovery(b,w,m+1)),!V)if(C)y=A,V={type:"SyntaxError",text:w,children:[],end:w.length,errors:[],fullText:"",parent:null,start:0,rest:""},w.length?new i.TokenError(`Unexpected end of input. Expecting ${R.name} Got: ${w}`,V):new i.TokenError(`Unexpected end of input. Missing ${R.name}`,V),v&&console.log(new Array(m+1).join("│ ")+"└─ "+V.type+" "+JSON.stringify(V.text));else return;if(_=!0,N=!0,V.type=="%%EMPTY%%")break;V.start+=M,V.end+=M,!R.lookupPositive&&V.type&&(V.fragment?V.children&&V.children.forEach(D=>{D.start+=M,D.end+=M,D.parent=A,A.children.push(D)}):(V.parent=A,A.children.push(V))),R.lookup&&(V.lookup=!0),v&&console.log(new Array(m+1).join("│ ")+"└─ "+V.type+" "+JSON.stringify(V.text)),!R.lookup&&!V.lookup&&(A.text=A.text+V.text,A.end=A.text.length,w=w.substr(V.text.length),M+=V.text.length),A.rest=w}while(V&&R.allowRepetition&&w.length&&!V.lookup)}else{let R=a(w,E[j]);if(!R)return;v&&console.log(new Array(m+1).join("│ ")+"└> "+JSON.stringify(R.text)+E[j].source),N=!0,R.start+=M,R.end+=M,A.text=A.text+R.text,A.end=A.text.length,w=w.substr(R.text.length),M+=R.text.length,A.rest=w}N&&(y=A,v&&console.log(new Array(m).join("│ ")+"├<─┴< PUSHING "+y.type+" "+JSON.stringify(y.text)))}),y&&b.simplifyWhenOneChildren&&y.children.length==1&&(y=y.children[0])}return y||v&&console.log(d+" NOT RESOLVED FROM "+g),y}parseRecovery(g,d,m){if(g.recover&&d.length){let y=this.debug;y&&console.log(new Array(m+1).join("│ ")+"Trying to recover until token "+g.recover+" from "+JSON.stringify(d.split(`
|
|
@@ -405,7 +405,7 @@ Valid keys: `+JSON.stringify(Object.keys(_),null," "));var I=le(G,ne,re,oe,ae+"
|
|
|
405
405
|
`,T7e=Ee.div`
|
|
406
406
|
background-color: #f0f0f0;
|
|
407
407
|
border-radius: 0.25rem;
|
|
408
|
-
`;function f7e({className:e,name:t,value:r,extraTail:n,titleExtra:i}){const{id:a,path:o,onKeyClick:s}=f4(),[l,u]=W.useState(r),[c,{wrap:Q}]=n5(),T=W.useRef(null),[f,h]=W.useState(""),p=W.useRef(null),[g,d]=W.useState([]),{t:m}=Jt(),y=W.useMemo(()=>{try{return h(""),JSON.parse(l??"")}catch(V){return l&&l.length>0&&h(V.toString()),l}},[l]),[x]=M6(y),O=W.useMemo(()=>y?Object.keys(y):[],[y]),v=W.useMemo(()=>Kse.validate(y).length===0,[y]),L=W.useMemo(()=>Yse.validate(y).length===0,[y]),b=W.useMemo(()=>Jse.validate(y).length===0,[y]),S=W.useCallback(V=>{if(V){const _=O.filter(D=>v?t7e.includes(D):L?r7e.includes(D):b?n7e.includes(D):i7e.includes(D)).map(D=>({id:Wi(),field:D,value:x5(y,D)??y,renderAs:e7e[D]??"raw"}));d(D=>D.length===0?[{id:"whole",field:"__whole__",renderAs:"json"},..._]:D)}},[b,v,L,O,y]),[E,{preview:C},A]=P6(!1,S),w=W.useRef({__root__:new p8("")});W.useEffect(()=>{u(r)},[r]),W.useEffect(()=>{const V=_=>{const D=_.detail.field,Z=_.detail.blockId,k=_.detail.parentField??"__whole__",re=`${Z}-${D}`,oe=`${Z}-${k}`,ae=w.current[oe],G=new p8(D,ae),X=Fk(D,_.detail.value);if(w.current[re]=G,a===Z){try{g.length===0?d([{id:"whole",field:"__whole__",renderAs:"json"},{id:Wi(),field:G.fullPath,renderAs:X}]):g.find(ee=>ee.field===D)||d(ee=>[...ee,{id:Wi(),field:G.fullPath,renderAs:X}])}catch(ee){console.error("error",ee)}A(!0),s?.(G.fullPath,x5(y,G.fullPath)??"")}};return document.addEventListener(q0,V),()=>{document.removeEventListener(q0,V)}},[a,g,y,A,s,o]);const M=jk(T.current),P=W.useMemo(()=>({wrap:Q??!1,value:l,onChange:u}),[Q,l]),N=W.useMemo(()=>({value:y,path:o}),[y,o]),j=W.useMemo(()=>{if(!T.current)return;const V=g.length??1,_=Math.floor(96/V),D=Math.floor(M.height/4);return g.map((Z,k)=>({i:Z.id,x:_*k,y:0,w:_,h:D}))},[g,M.height]),R=W.useCallback(V=>{d(_=>_.filter(D=>D.id!==V))},[]);return B.jsx(Yb.Provider,{value:N,children:B.jsx(_n.Provider,{value:P,children:B.jsx(Y1,{className:e,name:t,ref:p,titleExtra:i,extra:B.jsxs(o7e,{children:[!C&&c,E,B.jsx(K2,{elementRef:p}),x,n]}),children:B.jsxs("div",{ref:T,children:[f&&B.jsx(l7e,{children:B.jsx(u7e,{children:f})}),B.jsx(Q7e,{visible:C,children:B.jsx(s7e,{height:M.height,children:B.jsx(Dm,{layout:j,cols:96,rowHeight:4,draggableHandle:".field-name",width:M.width,margin:[0,0],className:"draggable-layout",resizeHandles:["nw","se","ne","sw"],children:g.map(V=>B.jsx(T7e,{children:B.jsx(a7e,{renderAs:V.renderAs,name:V.field,value:V.field==="__whole__"?y:x5(y,V.field),extraTail:V.field!=="__whole__"&&B.jsx(B.Fragment,{children:B.jsx(we.Tooltip,{title:m("renderer.close"),children:B.jsx(we.Button,{size:"small",type:"text",icon:B.jsx(Qs,{}),onClick:()=>R?.(V.id)})})})})},V.id))})})}),B.jsx(c7e,{visible:!C})]})})})})}const h7e={textLikePreviewer:"_textLikePreviewer_7q5wf_1"};function d7e({name:e,type:t,className:r,extraTail:n,titleExtra:i}){const{data:a,onNext:o,onPrev:s,prevable:l,nextable:u}=f4(),[c,Q]=W.useState(void 0),{t:T}=Jt();W.useEffect(()=>{Q(a?.content)},[a]);const f=["jsonl","json","csv","txt"].includes(t)?B.jsxs(we.Space.Compact,{children:[B.jsx(we.Tooltip,{title:T("textPreviewer.prevSection"),children:B.jsx(we.Button,{size:"small",type:"text",disabled:!l,onClick:s,icon:B.jsx(R8,{})})}),B.jsx(we.Tooltip,{title:T("textPreviewer.nextSection"),children:B.jsx(we.Button,{size:"small",type:"text",disabled:!u,onClick:o,icon:B.jsx(B8,{})})})]}):null;let h=null;return t==="jsonl"?h=f7e:h=wf(t)?.renderer??Pi.raw.renderer,h?B.jsx(h,{name:e,className:$d(r,h7e.textLikePreviewer),value:c,titleExtra:B.jsxs(B.Fragment,{children:[i,f]}),extraTail:n}):null}const Cf=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm6,10H18v8a4,4,0,1,1-4-4,3.9588,3.9588,0,0,1,2,.55475V8h6Z",style:{fill:"#ef5350"}})),qk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#fdd835",d:"M18.23 11.21q-.045-.24-1.32-1.65c-.02-.19.29-.45.9-.8l1.74-1.55c.39-.5.62-1.28.69-2.38l-.02-.26c-.07-.78-.63-1.4-1.69-1.89-.63-.42-1.76-.65-3.38-.68-1.35.11-3.11.59-5.28 1.43-.6.43-1.28.86-2.04 1.28l.01.14.21-.08c.08-.01.13.03.14.11l.13-.07.07-.01.01.06c0 .07-.47.44-1.76 1.35l-.06.12c-.31.02-.61.25-.91.67l.08.12.25-.09.18.24c.32-.33.66-.62 1.03-.87.19.05.29.11.44.16 1.02-.75 2.03-1.3 3.04-1.64l.01.14c-.2.27-.32.42-.38.42l.1.23c.01.19-2.55 7-6.66 14.44l.08.19c.35-.08.58-.17.75-.26l.01.13.4-.03-.67 1.76.14.06c.57-.64 1-1.29 1.3-1.88 1.67-.49 2.94-.97 3.82-1.44.88-.08 1.56-.31 2.02-.7l.92-.47c1.27-.98 2.22-1.67 2.87-2.08 1.33-.98 2.2-1.93 2.6-2.85zm-3.46 2.31L13 14.91c-1.29.85-2 1.3-2.09 1.3-2.07 1.13-3.36 1.72-3.86 1.76l-.05.01c.04-.23.96-2.12 2.75-5.67.78-.06 2.02-.43 3.71-1.1l.41-.03c.85-.08 1.49.09 1.91.49l.03.26c-.31.9-.67 1.44-1.04 1.59m1.09-5.78q-.27.33-1.5 1.11c-.27.03-1.27.42-3.01 1.18l-.28-.05-.01-.12c-.02-.25.09-.57.34-.95.13-.7.28-1.12.44-1.2l1.45-3.28c-.02-.22.29-.35.93-.46l.21-.02.01.18 1.16-.16c1.15-.1 1.75.14 1.8.7l.13-.02-.03-.32.15-.02c.35.19.52.4.54.68.02.18-.08.41-.29.68-.09.01-.14-.06-.15-.18l-.14.01-.03.4c-.58.87-1.01 1.31-1.27 1.34z"})),p7e=e=>K.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},K.createElement("path",{d:"M8.03243 3.33325C8.25344 3.33325 8.4654 3.42105 8.62168 3.57733L9.80019 4.75584C9.95647 4.91212 10.1684 4.99992 10.3894 4.99992H17.5443C18.0045 4.99992 18.3776 5.37301 18.3776 5.83325V15.8333C18.3776 16.2935 18.0045 16.6666 17.5443 16.6666H2.54427C2.08403 16.6666 1.71094 16.2935 1.71094 15.8333V4.16659C1.71094 3.70635 2.08403 3.33325 2.54427 3.33325H8.03243Z",fill:"#FFBA52"}),K.createElement("path",{d:"M3.37793 8.75C3.37793 8.05964 3.93757 7.5 4.62793 7.5H15.4613C16.1516 7.5 16.7113 8.05964 16.7113 8.75H3.37793Z",fill:"white"})),m7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#7e57c2",d:"M20 18h-2v-2h-2v2c0 .193 0 .703 1.254 1.033A3.345 3.345 0 0 1 20 22h2v2h2v-2c0-.388-.562-.851-1.254-1.034C20.356 20.34 20 18.84 20 18m-3.254 2.966C14.356 20.34 14 18.84 14 18h-2v-2h-2v8h2v-2h4v2h2v-2c0-.388-.562-.851-1.254-1.034"}),K.createElement("path",{fill:"#7e57c2",d:"M24 4H4v20a4 4 0 0 0 4 4h16.16A3.84 3.84 0 0 0 28 24.16V8a4 4 0 0 0-4-4m2 14h-2v-2h-2v2c0 .193 0 .703 1.254 1.033A3.345 3.345 0 0 1 26 22v2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2 2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2 2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2 2 2 0 0 1 2-2h2a2 2 0 0 1 2 2 2 2 0 0 1 2-2h2a2 2 0 0 1 2 2Z"})),Zk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#ffca28",d:"M16 24c-5.525 0-10-.9-10-2v4c0 1.1 4.475 2 10 2s10-.9 10-2v-4c0 1.1-4.475 2-10 2m0-8c-5.525 0-10-.9-10-2v4c0 1.1 4.475 2 10 2s10-.9 10-2v-4c0 1.1-4.475 2-10 2m0-12C10.477 4 6 4.895 6 6v4c0 1.1 4.475 2 10 2s10-.9 10-2V6c0-1.105-4.477-2-10-2"})),Af=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#0288D1",d:"M21.81 10.25c-.06-.04-.56-.43-1.64-.43-.28 0-.56.03-.84.08-.21-1.4-1.38-2.11-1.43-2.14l-.29-.17-.18.27c-.24.36-.43.77-.51 1.19-.2.8-.08 1.56.33 2.21-.49.28-1.29.35-1.46.35H2.62c-.34 0-.62.28-.62.63 0 1.15.18 2.3.58 3.38.45 1.19 1.13 2.07 2 2.61.98.6 2.59.94 4.42.94.79 0 1.61-.07 2.42-.22 1.12-.2 2.2-.59 3.19-1.16A8.3 8.3 0 0 0 16.78 16c1.05-1.17 1.67-2.5 2.12-3.65h.19c1.14 0 1.85-.46 2.24-.85.26-.24.45-.53.59-.87l.08-.24zm-17.96.99h1.76c.08 0 .16-.07.16-.16V9.5c0-.08-.07-.16-.16-.16H3.85c-.09 0-.16.07-.16.16v1.58c.01.09.07.16.16.16m2.43 0h1.76c.08 0 .16-.07.16-.16V9.5c0-.08-.07-.16-.16-.16H6.28c-.09 0-.16.07-.16.16v1.58c.01.09.07.16.16.16m2.47 0h1.75c.1 0 .17-.07.17-.16V9.5c0-.08-.06-.16-.17-.16H8.75c-.08 0-.15.07-.15.16v1.58c0 .09.06.16.15.16m2.44 0h1.77c.08 0 .15-.07.15-.16V9.5c0-.08-.06-.16-.15-.16h-1.77c-.08 0-.15.07-.15.16v1.58c0 .09.07.16.15.16M6.28 9h1.76c.08 0 .16-.09.16-.18V7.25c0-.09-.07-.16-.16-.16H6.28c-.09 0-.16.06-.16.16v1.57c.01.09.07.18.16.18m2.47 0h1.75c.1 0 .17-.09.17-.18V7.25c0-.09-.06-.16-.17-.16H8.75c-.08 0-.15.06-.15.16v1.57c0 .09.06.18.15.18m2.44 0h1.77c.08 0 .15-.09.15-.18V7.25c0-.09-.07-.16-.15-.16h-1.77c-.08 0-.15.06-.15.16v1.57c0 .09.07.18.15.18m0-2.28h1.77c.08 0 .15-.07.15-.16V5c0-.1-.07-.17-.15-.17h-1.77c-.08 0-.15.06-.15.17v1.56c0 .08.07.16.15.16m2.46 4.52h1.76c.09 0 .16-.07.16-.16V9.5c0-.08-.07-.16-.16-.16h-1.76c-.08 0-.15.07-.15.16v1.58c0 .09.07.16.15.16"})),Mf=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#3f51b5",d:"M22.713 4H9.287a.5.5 0 0 0-.432.248l-6.708 11.5a.5.5 0 0 0 0 .504l6.708 11.5a.5.5 0 0 0 .432.248h13.426a.5.5 0 0 0 .432-.248l6.708-11.5a.5.5 0 0 0 0-.504l-6.708-11.5A.5.5 0 0 0 22.713 4m-6.937 20.888-7.5-3.75A.5.5 0 0 1 8 20.691v-9.382a.5.5 0 0 1 .276-.447l7.5-3.75a.5.5 0 0 1 .448 0l7.5 3.75a.5.5 0 0 1 .276.447v9.382a.5.5 0 0 1-.276.447l-7.5 3.75a.5.5 0 0 1-.448 0"}),K.createElement("path",{fill:"#7986cb",d:"M22 19.441v-6.882a.5.5 0 0 0-.276-.447l-5.5-2.75a.5.5 0 0 0-.448 0l-5.5 2.75a.5.5 0 0 0-.276.447v6.882a.5.5 0 0 0 .276.447l5.5 2.75a.5.5 0 0 0 .448 0l5.5-2.75a.5.5 0 0 0 .276-.447"})),g7e=e=>K.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},K.createElement("path",{d:"M8.03243 3.33325C8.25344 3.33325 8.4654 3.42105 8.62168 3.57733L9.80019 4.75584C9.95647 4.91212 10.1684 4.99992 10.3894 4.99992H17.5443C18.0045 4.99992 18.3776 5.37301 18.3776 5.83325V15.8333C18.3776 16.2935 18.0045 16.6666 17.5443 16.6666H2.54427C2.08403 16.6666 1.71094 16.2935 1.71094 15.8333V4.16659C1.71094 3.70635 2.08403 3.33325 2.54427 3.33325H8.03243Z",fill:"#3477EB"}),K.createElement("path",{d:"M3.37695 8.75C3.37695 8.05964 3.9366 7.5 4.62695 7.5H15.4603C16.1506 7.5 16.7103 8.05964 16.7103 8.75H3.37695Z",fill:"white"})),O7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#e64a19",d:"M13.172 2.828 11.78 4.22l1.91 1.91 2 2A2.986 2.986 0 0 1 20 10.81a3.25 3.25 0 0 1-.31 1.31l2.06 2a2.68 2.68 0 0 1 3.37.57 2.86 2.86 0 0 1 .88 2.117 3.02 3.02 0 0 1-.856 2.109A2.9 2.9 0 0 1 23 19.81a2.93 2.93 0 0 1-2.13-.87 2.694 2.694 0 0 1-.56-3.38l-2-2.06a3 3 0 0 1-.31.12V20a3 3 0 0 1 1.44 1.09 2.92 2.92 0 0 1 .56 1.72 2.88 2.88 0 0 1-.878 2.128 2.98 2.98 0 0 1-2.048.871 2.981 2.981 0 0 1-2.514-4.719A3 3 0 0 1 16 20v-6.38a2.96 2.96 0 0 1-1.44-1.09 2.9 2.9 0 0 1-.56-1.72 2.9 2.9 0 0 1 .31-1.31l-3.9-3.9-7.579 7.572a4 4 0 0 0-.001 5.658l10.342 10.342a4 4 0 0 0 5.656 0l10.344-10.344a4 4 0 0 0 0-5.656L18.828 2.828a4 4 0 0 0-5.656 0"})),y7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#00acc1",d:"M2 12h4v2H2zm-2 4h6v2H0zm4 4h2v2H4zm16.954-5H14v3h3.239a4.42 4.42 0 0 1-3.531 2 2.65 2.65 0 0 1-2.053-.858 2.86 2.86 0 0 1-.628-2.28A4.515 4.515 0 0 1 15.292 13a2.73 2.73 0 0 1 1.749.584l2.962-1.185A5.6 5.6 0 0 0 15.292 10a7.526 7.526 0 0 0-7.243 6.5 5.614 5.614 0 0 0 5.659 6.5 7.526 7.526 0 0 0 7.243-6.5 6.4 6.4 0 0 0 .003-1.5"}),K.createElement("path",{fill:"#00acc1",d:"M26.292 10a7.526 7.526 0 0 0-7.243 6.5 5.614 5.614 0 0 0 5.659 6.5 7.526 7.526 0 0 0 7.243-6.5 5.614 5.614 0 0 0-5.659-6.5m2.681 6.137A4.515 4.515 0 0 1 24.708 20a2.65 2.65 0 0 1-2.053-.858 2.86 2.86 0 0 1-.628-2.28A4.515 4.515 0 0 1 26.292 13a2.65 2.65 0 0 1 2.053.858 2.86 2.86 0 0 1 .628 2.28Z"})),zk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#ec407a",d:"M6 20h20v2H6z"}),K.createElement("circle",{cx:7,cy:21,r:3,fill:"#ec407a"}),K.createElement("circle",{cx:16,cy:27,r:3,fill:"#ec407a"}),K.createElement("circle",{cx:25,cy:21,r:3,fill:"#ec407a"}),K.createElement("path",{fill:"#ec407a",d:"M6 10h20v2H6z"}),K.createElement("circle",{cx:7,cy:11,r:3,fill:"#ec407a"}),K.createElement("circle",{cx:16,cy:5,r:3,fill:"#ec407a"}),K.createElement("circle",{cx:25,cy:11,r:3,fill:"#ec407a"}),K.createElement("path",{fill:"#ec407a",d:"M6 12h2v10H6zm18-2h2v12h-2z"}),K.createElement("path",{fill:"#ec407a",d:"m5.014 19.41 11.674 6.866L15.674 28 4 21.134z"}),K.createElement("path",{fill:"#ec407a",d:"M26.688 21.724 15.014 28.59 14 26.866 25.674 20zM5.124 10.382l11.415-7.29 1.077 1.686L6.2 12.068z"}),K.createElement("path",{fill:"#ec407a",d:"m25.798 12.067-11.415-7.29 1.077-1.685 11.415 7.29zM6.2 19.932l11.416 7.29-1.077 1.686-11.415-7.29z"}),K.createElement("path",{fill:"#ec407a",d:"m26.875 21.619-11.415 7.29-1.077-1.687 11.415-7.289zM5.877 22.6 16.04 3.686l1.762.946L7.638 23.546z"}),K.createElement("path",{fill:"#ec407a",d:"M24.361 23.545 14.197 4.633l1.761-.947 10.165 18.913z"})),Xk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M4,4,6,26l10,2,10-2L28,4Zm19.72,7H11.28l.29,3H23.43l-.80243,9.335L15.99,25,9.35522,23.3537,8.93,19h3.02l.19,2,3.86.77L19.84,21l.29-4H8.84L8,8H24Z",style:{fill:"#e44d26"}})),ki=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M17,2H8A2,2,0,0,0,6,4V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V11ZM11,12a3,3,0,1,1-3,3A3,3,0,0,1,11,12ZM24,28H8l6-8,4,4,6-6ZM16,12V4l8,8Z",style:{fill:"#26a69a"}})),Pf=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#f44336",d:"M4 26h24v2H4zM28 4H7a1 1 0 0 0-1 1v13a4 4 0 0 0 4 4h10a4 4 0 0 0 4-4v-4h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 8h-4V6h4Z"})),v7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e},K.createElement("path",{fill:"#ffca28",d:"M2 2v12h12V2zm6 6h1v4a1.003 1.003 0 0 1-1 1H7a1.003 1.003 0 0 1-1-1v-1h1v1h1zm3 0h2v1h-2v1h1a1.003 1.003 0 0 1 1 1v1a1.003 1.003 0 0 1-1 1h-2v-1h2v-1h-1a1.003 1.003 0 0 1-1-1V9a1.003 1.003 0 0 1 1-1"})),Uk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",...e},K.createElement("path",{fill:"#f9a825",d:"M560-160v-80h120q17 0 28.5-11.5T720-280v-80q0-38 22-69t58-44v-14q-36-13-58-44t-22-69v-80q0-17-11.5-28.5T680-720H560v-80h120q50 0 85 35t35 85v80q0 17 11.5 28.5T840-560h40v160h-40q-17 0-28.5 11.5T800-360v80q0 50-35 85t-85 35H560Zm-280 0q-50 0-85-35t-35-85v-80q0-17-11.5-28.5T120-400H80v-160h40q17 0 28.5-11.5T160-600v-80q0-50 35-85t85-35h120v80H280q-17 0-28.5 11.5T240-680v80q0 38-22 69t-58 44v14q36 13 58 44t22 69v80q0 17 11.5 28.5T280-240h120v80H280Z"})),x7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#0277bd",d:"M8 3a2 2 0 0 0-2 2v4a2 2 0 0 1-2 2H3v2h1a2 2 0 0 1 2 2v4a2 2 0 0 0 2 2h2v-2H8v-5a2 2 0 0 0-2-2 2 2 0 0 0 2-2V5h2V3m6 0a2 2 0 0 1 2 2v4a2 2 0 0 0 2 2h1v2h-1a2 2 0 0 0-2 2v4a2 2 0 0 1-2 2h-2v-2h2v-5a2 2 0 0 1 2-2 2 2 0 0 1-2-2V5h-2V3z"})),Wk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("g",null,K.createElement("polygon",{points:"14 10 10 13.5 6 10 4 10 4 22 8 22 8 16 10 18 12 16 12 22 16 22 16 10 14 10",style:{fill:"#42a5f5"}}),K.createElement("polygon",{points:"26 16 26 10 22 10 22 16 18 16 24 24 30 16 26 16",style:{fill:"#42a5f5"}}))),m8=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#E53935",d:"M4 4v24h24V4Zm20 20h-4V12h-4v12H8V8h16Z"})),L7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("g",null,K.createElement("path",{d:"M14.32349,17.105l.18066-.92578.03387-.18066a1.57265,1.57265,0,0,0-.10162-1.242l-.16937-.05646-.079.1355a4.08291,4.08291,0,0,0,.079,2.31452Z",style:{fill:"#ef5350"}}),K.createElement("path",{d:"M8.94891,27.20966c.50812-.16932,1.17426-.91449,1.90821-2.258l-.542.35A4.16944,4.16944,0,0,0,8.94891,27.20966Z",style:{fill:"#ef5350"}}),K.createElement("path",{d:"M14.35736,19.80334a16.72025,16.72025,0,0,1-1.14038,2.7096l-.56458,1.17419.12421-.04516a21.30419,21.30419,0,0,1,3.77124-1.05l-.46289-.36127A6.93668,6.93668,0,0,1,14.35736,19.80334Z",style:{fill:"#ef5350"}}),K.createElement("path",{d:"M17,2H8A2,2,0,0,0,6,4V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V11Zm4.67407,22.10486a1.33172,1.33172,0,0,1-1.02746.33874,8.368,8.368,0,0,1-3.38739-.83551,23.68313,23.68313,0,0,0-4.55036.84681l-.20324.079C11.10553,26.92743,10.06671,28,9.15216,28l-.49683-.12421-.542-.35-.03387-.05646a1.02534,1.02534,0,0,1-.05646-.60968,4.42139,4.42139,0,0,1,2.12274-2.39349l1.005-.55323,1.08392-2.03222a19.08765,19.08765,0,0,0,1.21948-3.308V18.5614a5.572,5.572,0,0,1-.24841-3.69189,1.07706,1.07706,0,0,1,.892-.86933h.271a.96338.96338,0,0,1,.68878.27094c.74524.74518.39521,2.56286.02259,4.06445l-.04517.15808A6.66531,6.66531,0,0,0,16.84143,21.384l.98236.65479,1.45654-.079c1.40015,0,2.247.24841,2.57441.779a.90834.90834,0,0,1,.13549.621A1.091,1.091,0,0,1,21.67407,24.10486ZM16,12V4l8,8Z",style:{fill:"#ef5350"}}),K.createElement("path",{d:"M19.0658,22.90814a.266.266,0,0,0-.25971.11286,6.04074,6.04074,0,0,0,2.14533.5758l.21453-.02258h.04517c.05646-.02258.09033-.03388.10162-.14673l-.10162-.12421C21.09821,23.19037,20.64661,22.90814,19.0658,22.90814Z",style:{fill:"#ef5350"}}))),b7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#1E88E5",d:"M12 18.08c-6.63 0-12-2.72-12-6.08s5.37-6.08 12-6.08S24 8.64 24 12s-5.37 6.08-12 6.08m-5.19-7.95c.54 0 .91.1 1.09.31.18.2.22.56.13 1.03-.1.53-.29.87-.58 1.09q-.42.33-1.29.33h-.87l.53-2.76zm-3.5 5.55h1.44l.34-1.75h1.23c.54 0 .98-.06 1.33-.17.35-.12.67-.31.96-.58.24-.22.43-.46.58-.73.15-.26.26-.56.31-.88.16-.78.05-1.39-.33-1.82-.39-.44-.99-.65-1.82-.65H4.59zm7.25-8.33-1.28 6.58h1.42l.74-3.77h1.14c.36 0 .6.06.71.18s.13.34.07.66l-.57 2.93h1.45l.59-3.07c.13-.62.03-1.07-.27-1.36-.3-.27-.85-.4-1.65-.4h-1.27L12 7.35zM18 10.13c.55 0 .91.1 1.09.31.18.2.22.56.13 1.03-.1.53-.29.87-.57 1.09-.29.22-.72.33-1.3.33h-.85l.5-2.76zm-3.5 5.55h1.44l.34-1.75h1.22c.55 0 1-.06 1.35-.17.35-.12.65-.31.95-.58.24-.22.44-.46.58-.73.15-.26.26-.56.32-.88.15-.78.04-1.39-.34-1.82-.36-.44-.99-.65-1.82-.65h-2.75z"})),Gk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e},K.createElement("path",{fill:"#F44336",d:"M2 8h4v1H2zm0 6h4v1H2zm9-10h3v1h-3zM2 2h3v1H2z"}),K.createElement("path",{fill:"#F9A825",d:"M9 2h3v1H9zm1 4h4v1h-4zm-5 6h1v1H5zm-3-2h6v1H2z"}),K.createElement("path",{fill:"#26A69A",d:"M2 12h3v1H2zm7-4h5v1H9zM2 4h4v1H2zm3-2h4v1H5z"}),K.createElement("path",{fill:"#BA68C8",d:"M2 6h3v1H2zm7-2h2v1H9zm-1 6h4v1H8z"})),Yk=e=>K.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},K.createElement("path",{d:"M9.86 2A2.86 2.86 0 0 0 7 4.86v1.68h4.29c.39 0 .71.57.71.96H4.86A2.86 2.86 0 0 0 2 10.36v3.781a2.86 2.86 0 0 0 2.86 2.86h1.18v-2.68a2.85 2.85 0 0 1 2.85-2.86h5.25c1.58 0 2.86-1.271 2.86-2.851V4.86A2.86 2.86 0 0 0 14.14 2zm-.72 1.61c.4 0 .72.12.72.71s-.32.891-.72.891c-.39 0-.71-.3-.71-.89s.32-.711.71-.711z",fill:"#3c78aa"}),K.createElement("path",{d:"M17.959 7v2.68a2.85 2.85 0 0 1-2.85 2.859H9.86A2.85 2.85 0 0 0 7 15.389v3.75a2.86 2.86 0 0 0 2.86 2.86h4.28A2.86 2.86 0 0 0 17 19.14v-1.68h-4.291c-.39 0-.709-.57-.709-.96h7.14A2.86 2.86 0 0 0 22 13.64V9.86A2.86 2.86 0 0 0 19.14 7zM8.32 11.513l-.004.004c.012-.002.025-.001.038-.004zm6.54 7.276c.39 0 .71.3.71.89a.71.71 0 0 1-.71.71c-.4 0-.72-.12-.72-.71s.32-.89.72-.89z",fill:"#fdd835"})),Kk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#00bcd4",d:"M16 12c7.444 0 12 2.59 12 4s-4.556 4-12 4-12-2.59-12-4 4.556-4 12-4m0-2c-7.732 0-14 2.686-14 6s6.268 6 14 6 14-2.686 14-6-6.268-6-14-6"}),K.createElement("path",{fill:"#00bcd4",d:"M16 14a2 2 0 1 0 2 2 2 2 0 0 0-2-2"}),K.createElement("path",{fill:"#00bcd4",d:"M10.458 5.507c2.017 0 5.937 3.177 9.006 8.493 3.722 6.447 3.757 11.687 2.536 12.392a.9.9 0 0 1-.457.1c-2.017 0-5.938-3.176-9.007-8.492C8.814 11.553 8.779 6.313 10 5.608a.9.9 0 0 1 .458-.1m-.001-2A2.87 2.87 0 0 0 9 3.875C6.13 5.532 6.938 12.304 10.804 19c3.284 5.69 7.72 9.493 10.74 9.493A2.87 2.87 0 0 0 23 28.124c2.87-1.656 2.062-8.428-1.804-15.124-3.284-5.69-7.72-9.493-10.74-9.493Z"}),K.createElement("path",{fill:"#00bcd4",d:"M21.543 5.507a.9.9 0 0 1 .457.1c1.221.706 1.186 5.946-2.536 12.393-3.07 5.316-6.99 8.493-9.007 8.493a.9.9 0 0 1-.457-.1C8.779 25.686 8.814 20.446 12.536 14c3.07-5.316 6.99-8.493 9.007-8.493m0-2c-3.02 0-7.455 3.804-10.74 9.493C6.939 19.696 6.13 26.468 9 28.124a2.87 2.87 0 0 0 1.457.369c3.02 0 7.455-3.804 10.74-9.493C25.061 12.304 25.87 5.532 23 3.876a2.87 2.87 0 0 0-1.457-.369"})),S7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#ff7043",d:"m30 12-4-2V6h-4l-2-4-4 2-4-2-2 4H6v4l-4 2 2 4-2 4 4 2v4h4l2 4 4-2 4 2 2-4h4v-4l4-2-2-4ZM6 16a9.9 9.9 0 0 1 .842-4H10v8H6.842A9.9 9.9 0 0 1 6 16m10 10a9.98 9.98 0 0 1-7.978-4H16v-2h-2v-2h4c.819.819.297 2.308 1.179 3.37a1.89 1.89 0 0 0 1.46.63h3.34A9.98 9.98 0 0 1 16 26m-2-12v-2h4a1 1 0 0 1 0 2Zm11.158 6H24a2.006 2.006 0 0 1-2-2 2 2 0 0 0-2-2 3 3 0 0 0 3-3q0-.08-.004-.161A3.115 3.115 0 0 0 19.83 10H8.022a9.986 9.986 0 0 1 17.136 10"})),Jk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#ec407a",d:"M27.837 5.673a4.33 4.33 0 0 0-2.293-2.701c-2.362-1.261-6.11-1.298-9.548-.092a26.3 26.3 0 0 0-8.76 4.966c-2.752 2.542-3.438 4.925-3.189 6.194.523 2.668 3.274 4.539 5.485 6.042.418.284.822.559 1.175.816-1.429.76-4.261 2.444-5.088 4.248a3.88 3.88 0 0 0-.118 3.332A2.37 2.37 0 0 0 6.869 29.8a5.6 5.6 0 0 0 1.49.2 6.35 6.35 0 0 0 5.19-2.856 6.74 6.74 0 0 0 .864-5.382 7.3 7.3 0 0 1 2.044-.03 3.92 3.92 0 0 1 2.816 1.311 1.82 1.82 0 0 1 .423 1.262 1.55 1.55 0 0 1-.772 1.05c-.234.14-.586.355-.504.803.036.194.198.633.894.512a2.93 2.93 0 0 0 2.145-2.651 4 4 0 0 0-1.197-2.904 5.94 5.94 0 0 0-4.396-1.626 10.6 10.6 0 0 0-2.672.304 20 20 0 0 0-2.203-1.846c-1.712-1.3-3.33-2.529-3.235-4.26.125-2.263 2.468-4.532 6.964-6.744 4.016-1.976 7.254-2.037 8.944-1.438a2 2 0 0 1 1.204.883 2.77 2.77 0 0 1-.36 2.47 9.71 9.71 0 0 1-7.425 4.304 3.86 3.86 0 0 1-3.238-.757c-.278-.302-.593-.645-1.074-.383q-.565.31-.225 1.189a3.9 3.9 0 0 0 2.407 1.92 11.7 11.7 0 0 0 7.128-.671c3.527-1.35 6.681-5.202 5.756-8.787M11.895 24.475a4 4 0 0 1-.192.468 4.5 4.5 0 0 1-.753 1.081 2.83 2.83 0 0 1-2.533 1.107c-.056-.032-.078-.146-.085-.193a3.28 3.28 0 0 1 1.076-2.284 11.3 11.3 0 0 1 2.644-1.933 3.85 3.85 0 0 1-.157 1.754"})),kf=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M17,2H8A2,2,0,0,0,6,4V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V11Zm7,16H22.44189l-4.60968,3.00812L22.41693,24H24v4H18V24h.75739l-2.755-1.79779L13.2475,24H14v4H8V24H9.58783l4.58478-2.99188L9.563,18H8V14h6v4h-.77734l2.77972,1.814L18.78223,18H18V14h6Zm-8-6V4l8,8Z",style:{fill:"#8bc34a"}})),i5=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#42a5f5",d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"})),E7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e},K.createElement("path",{fill:"#cfd8dc",d:"M4 6V4h8v2H9v7H7V6z"}),K.createElement("path",{fill:"#ef5350",d:"M4 1v1H2v12h2v1H1V1zm8 0v1h2v12h-2v1h3V1z"})),H7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#757575",d:"M15 2H6a2.006 2.006 0 0 0-2 2v22a2.006 2.006 0 0 0 2 2h6v-4H6v-2h6v-2H6v-2h6v-2H6v-2h6v-2h2V4l8 8h2v-1Z","data-mit-no-recolor":"true"}),K.createElement("path",{fill:"#0288d1",d:"M12 12v18h18V12Zm8 6h-2v8h-2v-8h-2v-2h6Zm8 0h-4v2h2a2.006 2.006 0 0 1 2 2v2a2.006 2.006 0 0 1-2 2h-4v-2h4v-2h-2a2.006 2.006 0 0 1-2-2v-2a2.006 2.006 0 0 1 2-2h4Z"})),_7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 16 16",...e},K.createElement("path",{fill:"#0288d1",d:"M2 2v12h12V2zm4 6h3v1H8v4H7V9H6zm5 0h2v1h-2v1h1a1.003 1.003 0 0 1 1 1v1a1.003 1.003 0 0 1-1 1h-2v-1h2v-1h-1a1.003 1.003 0 0 1-1-1V9a1.003 1.003 0 0 1 1-1"})),os=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M24,6l2,6H22L20,6H17l2,6H15L13,6H10l2,6H8L6,6H5A3,3,0,0,0,2,9V23a3,3,0,0,0,3,3H27a3,3,0,0,0,3-3V6Z",style:{fill:"#ff9800"}})),eD=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#ffab00",d:"M10 2v16h4v12l9-16h-6l5-12Z"})),w7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#41b883",d:"M1.791 3.851 12 21.471 22.209 3.936V3.85H18.24l-6.18 10.616L5.906 3.851z"}),K.createElement("path",{fill:"#35495e",d:"m5.907 3.851 6.152 10.617L18.24 3.851h-3.723L12.084 8.03 9.66 3.85z"})),C7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#FAFAFA",fillOpacity:.785,d:"m19.376 15.988-7.708 4.45-7.709-4.45v-8.9l7.709-4.451 7.708 4.45z"}),K.createElement("path",{fill:"#90CAF9",d:"M12.286 1.98c-.21 0-.41.059-.57.179l-7.9 4.44c-.32.17-.53.5-.53.88v9c0 .38.21.711.53.881l7.9 4.44c.16.12.36.18.57.18s.41-.06.57-.18l7.9-4.44c.32-.17.53-.5.53-.88v-9c0-.38-.21-.712-.53-.882l-7.9-4.44a.95.95 0 0 0-.57-.179zm0 2.15 7 3.94v2.103h-.016v5.177h.016v.54l-7 3.939-7-3.94V8.07zm0 2.08-4.9 2.83 4.9 2.83 4.9-2.83zm-5 5.08v3.58l4 2.309v-3.58l-4-2.31zm10 0-4 2.308v3.58l4-2.308z"}),K.createElement("path",{fill:"#0277BD",d:"m12.286 6.21-4.9 2.83 4.9 2.83 4.9-2.83zm-5 5.08v3.58l4 2.309v-3.58l-4-2.31zm10 0-4 2.308v3.58l4-2.308z"})),Df=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#01579b",d:"M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2m7 1.5V9h5.5zM7 13l1.5 7h2l1.5-3 1.5 3h2l1.5-7h1v-2h-4v2h1l-.9 4.2L13 15h-2l-1.1 2.2L9 13h1v-2H6v2z"})),A7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M17,2H8A2,2,0,0,0,6,4V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V11ZM14.97656,26.10535,12.90942,28,8,22l4.90942-6,2.06714,1.89459L11.61749,22ZM19.09058,28l-2.06714-1.89465L20.38251,22l-3.35907-4.10541L19.09058,16,24,22ZM16,12V4l8,8Z",style:{fill:"#8bc34a"}})),tD=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#FF5252",d:"M13 9h5.5L13 3.5zM6 2h8l6 6v12c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2m12 16v-2H9v2zm-4-4v-2H6v2z"})),a5=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M27,4H5A1,1,0,0,0,4,5V27a1,1,0,0,0,1,1H27a1,1,0,0,0,1-1V5A1,1,0,0,0,27,4ZM20,14H16v4h4v4H16V18H12V14h4V10H12V6h4v4h4Z",style:{fill:"#afb42b"}}));Ee.div`
|
|
408
|
+
`;function f7e({className:e,name:t,value:r,extraTail:n,titleExtra:i}){const{id:a,path:o,onKeyClick:s}=f4(),[l,u]=W.useState(r),[c,{wrap:Q}]=n5(),T=W.useRef(null),[f,h]=W.useState(""),p=W.useRef(null),[g,d]=W.useState([]),{t:m}=Jt(),y=W.useMemo(()=>{try{return h(""),JSON.parse(l??"")}catch(V){return l&&l.length>0&&h(V.toString()),l}},[l]),[x]=M6(y),O=W.useMemo(()=>y?typeof y!="object"?[]:Object.keys(y):[],[y]),v=W.useMemo(()=>Kse.validate(y).length===0,[y]),L=W.useMemo(()=>Yse.validate(y).length===0,[y]),b=W.useMemo(()=>Jse.validate(y).length===0,[y]),S=W.useCallback(V=>{if(V){const _=O.filter(D=>v?t7e.includes(D):L?r7e.includes(D):b?n7e.includes(D):i7e.includes(D)).map(D=>({id:Wi(),field:D,value:x5(y,D)??y,renderAs:e7e[D]??"raw"}));d(D=>D.length===0?[{id:"whole",field:"__whole__",renderAs:"json"},..._]:D)}},[b,v,L,O,y]),[E,{preview:C},A]=P6(!1,S),w=W.useRef({__root__:new p8("")});W.useEffect(()=>{u(r)},[r]),W.useEffect(()=>{const V=_=>{const D=_.detail.field,Z=_.detail.blockId,k=_.detail.parentField??"__whole__",re=`${Z}-${D}`,oe=`${Z}-${k}`,ae=w.current[oe],G=new p8(D,ae),X=Fk(D,_.detail.value);if(w.current[re]=G,a===Z){try{g.length===0?d([{id:"whole",field:"__whole__",renderAs:"json"},{id:Wi(),field:G.fullPath,renderAs:X}]):g.find(ee=>ee.field===D)||d(ee=>[...ee,{id:Wi(),field:G.fullPath,renderAs:X}])}catch(ee){console.error("error",ee)}A(!0),s?.(G.fullPath,x5(y,G.fullPath)??"")}};return document.addEventListener(q0,V),()=>{document.removeEventListener(q0,V)}},[a,g,y,A,s,o]);const M=jk(T.current),P=W.useMemo(()=>({wrap:Q??!1,value:l,onChange:u}),[Q,l]),N=W.useMemo(()=>({value:y,path:o}),[y,o]),j=W.useMemo(()=>{if(!T.current)return;const V=g.length??1,_=Math.floor(96/V),D=Math.floor(M.height/4);return g.map((Z,k)=>({i:Z.id,x:_*k,y:0,w:_,h:D}))},[g,M.height]),R=W.useCallback(V=>{d(_=>_.filter(D=>D.id!==V))},[]);return B.jsx(Yb.Provider,{value:N,children:B.jsx(_n.Provider,{value:P,children:B.jsx(Y1,{className:e,name:t,ref:p,titleExtra:i,extra:B.jsxs(o7e,{children:[!C&&c,E,B.jsx(K2,{elementRef:p}),x,n]}),children:B.jsxs("div",{ref:T,children:[f&&B.jsx(l7e,{children:B.jsx(u7e,{children:f})}),B.jsx(Q7e,{visible:C,children:B.jsx(s7e,{height:M.height,children:B.jsx(Dm,{layout:j,cols:96,rowHeight:4,draggableHandle:".field-name",width:M.width,margin:[0,0],className:"draggable-layout",resizeHandles:["nw","se","ne","sw"],children:g.map(V=>B.jsx(T7e,{children:B.jsx(a7e,{renderAs:V.renderAs,name:V.field,value:V.field==="__whole__"?y:x5(y,V.field),extraTail:V.field!=="__whole__"&&B.jsx(B.Fragment,{children:B.jsx(we.Tooltip,{title:m("renderer.close"),children:B.jsx(we.Button,{size:"small",type:"text",icon:B.jsx(Qs,{}),onClick:()=>R?.(V.id)})})})})},V.id))})})}),B.jsx(c7e,{visible:!C})]})})})})}const h7e={textLikePreviewer:"_textLikePreviewer_7q5wf_1"};function d7e({name:e,type:t,className:r,extraTail:n,titleExtra:i}){const{data:a,onNext:o,onPrev:s,prevable:l,nextable:u}=f4(),[c,Q]=W.useState(void 0),{t:T}=Jt();W.useEffect(()=>{Q(a?.content)},[a]);const f=["jsonl","json","csv","txt"].includes(t)?B.jsxs(we.Space.Compact,{children:[B.jsx(we.Tooltip,{title:T("textPreviewer.prevSection"),children:B.jsx(we.Button,{size:"small",type:"text",disabled:!l,onClick:s,icon:B.jsx(R8,{})})}),B.jsx(we.Tooltip,{title:T("textPreviewer.nextSection"),children:B.jsx(we.Button,{size:"small",type:"text",disabled:!u,onClick:o,icon:B.jsx(B8,{})})})]}):null;let h=null;return t==="jsonl"?h=f7e:h=wf(t)?.renderer??Pi.raw.renderer,h?B.jsx(h,{name:e,className:$d(r,h7e.textLikePreviewer),value:c,titleExtra:B.jsxs(B.Fragment,{children:[i,f]}),extraTail:n}):null}const Cf=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm6,10H18v8a4,4,0,1,1-4-4,3.9588,3.9588,0,0,1,2,.55475V8h6Z",style:{fill:"#ef5350"}})),qk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#fdd835",d:"M18.23 11.21q-.045-.24-1.32-1.65c-.02-.19.29-.45.9-.8l1.74-1.55c.39-.5.62-1.28.69-2.38l-.02-.26c-.07-.78-.63-1.4-1.69-1.89-.63-.42-1.76-.65-3.38-.68-1.35.11-3.11.59-5.28 1.43-.6.43-1.28.86-2.04 1.28l.01.14.21-.08c.08-.01.13.03.14.11l.13-.07.07-.01.01.06c0 .07-.47.44-1.76 1.35l-.06.12c-.31.02-.61.25-.91.67l.08.12.25-.09.18.24c.32-.33.66-.62 1.03-.87.19.05.29.11.44.16 1.02-.75 2.03-1.3 3.04-1.64l.01.14c-.2.27-.32.42-.38.42l.1.23c.01.19-2.55 7-6.66 14.44l.08.19c.35-.08.58-.17.75-.26l.01.13.4-.03-.67 1.76.14.06c.57-.64 1-1.29 1.3-1.88 1.67-.49 2.94-.97 3.82-1.44.88-.08 1.56-.31 2.02-.7l.92-.47c1.27-.98 2.22-1.67 2.87-2.08 1.33-.98 2.2-1.93 2.6-2.85zm-3.46 2.31L13 14.91c-1.29.85-2 1.3-2.09 1.3-2.07 1.13-3.36 1.72-3.86 1.76l-.05.01c.04-.23.96-2.12 2.75-5.67.78-.06 2.02-.43 3.71-1.1l.41-.03c.85-.08 1.49.09 1.91.49l.03.26c-.31.9-.67 1.44-1.04 1.59m1.09-5.78q-.27.33-1.5 1.11c-.27.03-1.27.42-3.01 1.18l-.28-.05-.01-.12c-.02-.25.09-.57.34-.95.13-.7.28-1.12.44-1.2l1.45-3.28c-.02-.22.29-.35.93-.46l.21-.02.01.18 1.16-.16c1.15-.1 1.75.14 1.8.7l.13-.02-.03-.32.15-.02c.35.19.52.4.54.68.02.18-.08.41-.29.68-.09.01-.14-.06-.15-.18l-.14.01-.03.4c-.58.87-1.01 1.31-1.27 1.34z"})),p7e=e=>K.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},K.createElement("path",{d:"M8.03243 3.33325C8.25344 3.33325 8.4654 3.42105 8.62168 3.57733L9.80019 4.75584C9.95647 4.91212 10.1684 4.99992 10.3894 4.99992H17.5443C18.0045 4.99992 18.3776 5.37301 18.3776 5.83325V15.8333C18.3776 16.2935 18.0045 16.6666 17.5443 16.6666H2.54427C2.08403 16.6666 1.71094 16.2935 1.71094 15.8333V4.16659C1.71094 3.70635 2.08403 3.33325 2.54427 3.33325H8.03243Z",fill:"#FFBA52"}),K.createElement("path",{d:"M3.37793 8.75C3.37793 8.05964 3.93757 7.5 4.62793 7.5H15.4613C16.1516 7.5 16.7113 8.05964 16.7113 8.75H3.37793Z",fill:"white"})),m7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#7e57c2",d:"M20 18h-2v-2h-2v2c0 .193 0 .703 1.254 1.033A3.345 3.345 0 0 1 20 22h2v2h2v-2c0-.388-.562-.851-1.254-1.034C20.356 20.34 20 18.84 20 18m-3.254 2.966C14.356 20.34 14 18.84 14 18h-2v-2h-2v8h2v-2h4v2h2v-2c0-.388-.562-.851-1.254-1.034"}),K.createElement("path",{fill:"#7e57c2",d:"M24 4H4v20a4 4 0 0 0 4 4h16.16A3.84 3.84 0 0 0 28 24.16V8a4 4 0 0 0-4-4m2 14h-2v-2h-2v2c0 .193 0 .703 1.254 1.033A3.345 3.345 0 0 1 26 22v2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2 2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2 2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2 2 2 0 0 1 2-2h2a2 2 0 0 1 2 2 2 2 0 0 1 2-2h2a2 2 0 0 1 2 2Z"})),Zk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#ffca28",d:"M16 24c-5.525 0-10-.9-10-2v4c0 1.1 4.475 2 10 2s10-.9 10-2v-4c0 1.1-4.475 2-10 2m0-8c-5.525 0-10-.9-10-2v4c0 1.1 4.475 2 10 2s10-.9 10-2v-4c0 1.1-4.475 2-10 2m0-12C10.477 4 6 4.895 6 6v4c0 1.1 4.475 2 10 2s10-.9 10-2V6c0-1.105-4.477-2-10-2"})),Af=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#0288D1",d:"M21.81 10.25c-.06-.04-.56-.43-1.64-.43-.28 0-.56.03-.84.08-.21-1.4-1.38-2.11-1.43-2.14l-.29-.17-.18.27c-.24.36-.43.77-.51 1.19-.2.8-.08 1.56.33 2.21-.49.28-1.29.35-1.46.35H2.62c-.34 0-.62.28-.62.63 0 1.15.18 2.3.58 3.38.45 1.19 1.13 2.07 2 2.61.98.6 2.59.94 4.42.94.79 0 1.61-.07 2.42-.22 1.12-.2 2.2-.59 3.19-1.16A8.3 8.3 0 0 0 16.78 16c1.05-1.17 1.67-2.5 2.12-3.65h.19c1.14 0 1.85-.46 2.24-.85.26-.24.45-.53.59-.87l.08-.24zm-17.96.99h1.76c.08 0 .16-.07.16-.16V9.5c0-.08-.07-.16-.16-.16H3.85c-.09 0-.16.07-.16.16v1.58c.01.09.07.16.16.16m2.43 0h1.76c.08 0 .16-.07.16-.16V9.5c0-.08-.07-.16-.16-.16H6.28c-.09 0-.16.07-.16.16v1.58c.01.09.07.16.16.16m2.47 0h1.75c.1 0 .17-.07.17-.16V9.5c0-.08-.06-.16-.17-.16H8.75c-.08 0-.15.07-.15.16v1.58c0 .09.06.16.15.16m2.44 0h1.77c.08 0 .15-.07.15-.16V9.5c0-.08-.06-.16-.15-.16h-1.77c-.08 0-.15.07-.15.16v1.58c0 .09.07.16.15.16M6.28 9h1.76c.08 0 .16-.09.16-.18V7.25c0-.09-.07-.16-.16-.16H6.28c-.09 0-.16.06-.16.16v1.57c.01.09.07.18.16.18m2.47 0h1.75c.1 0 .17-.09.17-.18V7.25c0-.09-.06-.16-.17-.16H8.75c-.08 0-.15.06-.15.16v1.57c0 .09.06.18.15.18m2.44 0h1.77c.08 0 .15-.09.15-.18V7.25c0-.09-.07-.16-.15-.16h-1.77c-.08 0-.15.06-.15.16v1.57c0 .09.07.18.15.18m0-2.28h1.77c.08 0 .15-.07.15-.16V5c0-.1-.07-.17-.15-.17h-1.77c-.08 0-.15.06-.15.17v1.56c0 .08.07.16.15.16m2.46 4.52h1.76c.09 0 .16-.07.16-.16V9.5c0-.08-.07-.16-.16-.16h-1.76c-.08 0-.15.07-.15.16v1.58c0 .09.07.16.15.16"})),Mf=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#3f51b5",d:"M22.713 4H9.287a.5.5 0 0 0-.432.248l-6.708 11.5a.5.5 0 0 0 0 .504l6.708 11.5a.5.5 0 0 0 .432.248h13.426a.5.5 0 0 0 .432-.248l6.708-11.5a.5.5 0 0 0 0-.504l-6.708-11.5A.5.5 0 0 0 22.713 4m-6.937 20.888-7.5-3.75A.5.5 0 0 1 8 20.691v-9.382a.5.5 0 0 1 .276-.447l7.5-3.75a.5.5 0 0 1 .448 0l7.5 3.75a.5.5 0 0 1 .276.447v9.382a.5.5 0 0 1-.276.447l-7.5 3.75a.5.5 0 0 1-.448 0"}),K.createElement("path",{fill:"#7986cb",d:"M22 19.441v-6.882a.5.5 0 0 0-.276-.447l-5.5-2.75a.5.5 0 0 0-.448 0l-5.5 2.75a.5.5 0 0 0-.276.447v6.882a.5.5 0 0 0 .276.447l5.5 2.75a.5.5 0 0 0 .448 0l5.5-2.75a.5.5 0 0 0 .276-.447"})),g7e=e=>K.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},K.createElement("path",{d:"M8.03243 3.33325C8.25344 3.33325 8.4654 3.42105 8.62168 3.57733L9.80019 4.75584C9.95647 4.91212 10.1684 4.99992 10.3894 4.99992H17.5443C18.0045 4.99992 18.3776 5.37301 18.3776 5.83325V15.8333C18.3776 16.2935 18.0045 16.6666 17.5443 16.6666H2.54427C2.08403 16.6666 1.71094 16.2935 1.71094 15.8333V4.16659C1.71094 3.70635 2.08403 3.33325 2.54427 3.33325H8.03243Z",fill:"#3477EB"}),K.createElement("path",{d:"M3.37695 8.75C3.37695 8.05964 3.9366 7.5 4.62695 7.5H15.4603C16.1506 7.5 16.7103 8.05964 16.7103 8.75H3.37695Z",fill:"white"})),O7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#e64a19",d:"M13.172 2.828 11.78 4.22l1.91 1.91 2 2A2.986 2.986 0 0 1 20 10.81a3.25 3.25 0 0 1-.31 1.31l2.06 2a2.68 2.68 0 0 1 3.37.57 2.86 2.86 0 0 1 .88 2.117 3.02 3.02 0 0 1-.856 2.109A2.9 2.9 0 0 1 23 19.81a2.93 2.93 0 0 1-2.13-.87 2.694 2.694 0 0 1-.56-3.38l-2-2.06a3 3 0 0 1-.31.12V20a3 3 0 0 1 1.44 1.09 2.92 2.92 0 0 1 .56 1.72 2.88 2.88 0 0 1-.878 2.128 2.98 2.98 0 0 1-2.048.871 2.981 2.981 0 0 1-2.514-4.719A3 3 0 0 1 16 20v-6.38a2.96 2.96 0 0 1-1.44-1.09 2.9 2.9 0 0 1-.56-1.72 2.9 2.9 0 0 1 .31-1.31l-3.9-3.9-7.579 7.572a4 4 0 0 0-.001 5.658l10.342 10.342a4 4 0 0 0 5.656 0l10.344-10.344a4 4 0 0 0 0-5.656L18.828 2.828a4 4 0 0 0-5.656 0"})),y7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#00acc1",d:"M2 12h4v2H2zm-2 4h6v2H0zm4 4h2v2H4zm16.954-5H14v3h3.239a4.42 4.42 0 0 1-3.531 2 2.65 2.65 0 0 1-2.053-.858 2.86 2.86 0 0 1-.628-2.28A4.515 4.515 0 0 1 15.292 13a2.73 2.73 0 0 1 1.749.584l2.962-1.185A5.6 5.6 0 0 0 15.292 10a7.526 7.526 0 0 0-7.243 6.5 5.614 5.614 0 0 0 5.659 6.5 7.526 7.526 0 0 0 7.243-6.5 6.4 6.4 0 0 0 .003-1.5"}),K.createElement("path",{fill:"#00acc1",d:"M26.292 10a7.526 7.526 0 0 0-7.243 6.5 5.614 5.614 0 0 0 5.659 6.5 7.526 7.526 0 0 0 7.243-6.5 5.614 5.614 0 0 0-5.659-6.5m2.681 6.137A4.515 4.515 0 0 1 24.708 20a2.65 2.65 0 0 1-2.053-.858 2.86 2.86 0 0 1-.628-2.28A4.515 4.515 0 0 1 26.292 13a2.65 2.65 0 0 1 2.053.858 2.86 2.86 0 0 1 .628 2.28Z"})),zk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#ec407a",d:"M6 20h20v2H6z"}),K.createElement("circle",{cx:7,cy:21,r:3,fill:"#ec407a"}),K.createElement("circle",{cx:16,cy:27,r:3,fill:"#ec407a"}),K.createElement("circle",{cx:25,cy:21,r:3,fill:"#ec407a"}),K.createElement("path",{fill:"#ec407a",d:"M6 10h20v2H6z"}),K.createElement("circle",{cx:7,cy:11,r:3,fill:"#ec407a"}),K.createElement("circle",{cx:16,cy:5,r:3,fill:"#ec407a"}),K.createElement("circle",{cx:25,cy:11,r:3,fill:"#ec407a"}),K.createElement("path",{fill:"#ec407a",d:"M6 12h2v10H6zm18-2h2v12h-2z"}),K.createElement("path",{fill:"#ec407a",d:"m5.014 19.41 11.674 6.866L15.674 28 4 21.134z"}),K.createElement("path",{fill:"#ec407a",d:"M26.688 21.724 15.014 28.59 14 26.866 25.674 20zM5.124 10.382l11.415-7.29 1.077 1.686L6.2 12.068z"}),K.createElement("path",{fill:"#ec407a",d:"m25.798 12.067-11.415-7.29 1.077-1.685 11.415 7.29zM6.2 19.932l11.416 7.29-1.077 1.686-11.415-7.29z"}),K.createElement("path",{fill:"#ec407a",d:"m26.875 21.619-11.415 7.29-1.077-1.687 11.415-7.289zM5.877 22.6 16.04 3.686l1.762.946L7.638 23.546z"}),K.createElement("path",{fill:"#ec407a",d:"M24.361 23.545 14.197 4.633l1.761-.947 10.165 18.913z"})),Xk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M4,4,6,26l10,2,10-2L28,4Zm19.72,7H11.28l.29,3H23.43l-.80243,9.335L15.99,25,9.35522,23.3537,8.93,19h3.02l.19,2,3.86.77L19.84,21l.29-4H8.84L8,8H24Z",style:{fill:"#e44d26"}})),ki=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M17,2H8A2,2,0,0,0,6,4V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V11ZM11,12a3,3,0,1,1-3,3A3,3,0,0,1,11,12ZM24,28H8l6-8,4,4,6-6ZM16,12V4l8,8Z",style:{fill:"#26a69a"}})),Pf=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#f44336",d:"M4 26h24v2H4zM28 4H7a1 1 0 0 0-1 1v13a4 4 0 0 0 4 4h10a4 4 0 0 0 4-4v-4h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 8h-4V6h4Z"})),v7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e},K.createElement("path",{fill:"#ffca28",d:"M2 2v12h12V2zm6 6h1v4a1.003 1.003 0 0 1-1 1H7a1.003 1.003 0 0 1-1-1v-1h1v1h1zm3 0h2v1h-2v1h1a1.003 1.003 0 0 1 1 1v1a1.003 1.003 0 0 1-1 1h-2v-1h2v-1h-1a1.003 1.003 0 0 1-1-1V9a1.003 1.003 0 0 1 1-1"})),Uk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",...e},K.createElement("path",{fill:"#f9a825",d:"M560-160v-80h120q17 0 28.5-11.5T720-280v-80q0-38 22-69t58-44v-14q-36-13-58-44t-22-69v-80q0-17-11.5-28.5T680-720H560v-80h120q50 0 85 35t35 85v80q0 17 11.5 28.5T840-560h40v160h-40q-17 0-28.5 11.5T800-360v80q0 50-35 85t-85 35H560Zm-280 0q-50 0-85-35t-35-85v-80q0-17-11.5-28.5T120-400H80v-160h40q17 0 28.5-11.5T160-600v-80q0-50 35-85t85-35h120v80H280q-17 0-28.5 11.5T240-680v80q0 38-22 69t-58 44v14q36 13 58 44t22 69v80q0 17 11.5 28.5T280-240h120v80H280Z"})),x7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#0277bd",d:"M8 3a2 2 0 0 0-2 2v4a2 2 0 0 1-2 2H3v2h1a2 2 0 0 1 2 2v4a2 2 0 0 0 2 2h2v-2H8v-5a2 2 0 0 0-2-2 2 2 0 0 0 2-2V5h2V3m6 0a2 2 0 0 1 2 2v4a2 2 0 0 0 2 2h1v2h-1a2 2 0 0 0-2 2v4a2 2 0 0 1-2 2h-2v-2h2v-5a2 2 0 0 1 2-2 2 2 0 0 1-2-2V5h-2V3z"})),Wk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("g",null,K.createElement("polygon",{points:"14 10 10 13.5 6 10 4 10 4 22 8 22 8 16 10 18 12 16 12 22 16 22 16 10 14 10",style:{fill:"#42a5f5"}}),K.createElement("polygon",{points:"26 16 26 10 22 10 22 16 18 16 24 24 30 16 26 16",style:{fill:"#42a5f5"}}))),m8=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#E53935",d:"M4 4v24h24V4Zm20 20h-4V12h-4v12H8V8h16Z"})),L7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("g",null,K.createElement("path",{d:"M14.32349,17.105l.18066-.92578.03387-.18066a1.57265,1.57265,0,0,0-.10162-1.242l-.16937-.05646-.079.1355a4.08291,4.08291,0,0,0,.079,2.31452Z",style:{fill:"#ef5350"}}),K.createElement("path",{d:"M8.94891,27.20966c.50812-.16932,1.17426-.91449,1.90821-2.258l-.542.35A4.16944,4.16944,0,0,0,8.94891,27.20966Z",style:{fill:"#ef5350"}}),K.createElement("path",{d:"M14.35736,19.80334a16.72025,16.72025,0,0,1-1.14038,2.7096l-.56458,1.17419.12421-.04516a21.30419,21.30419,0,0,1,3.77124-1.05l-.46289-.36127A6.93668,6.93668,0,0,1,14.35736,19.80334Z",style:{fill:"#ef5350"}}),K.createElement("path",{d:"M17,2H8A2,2,0,0,0,6,4V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V11Zm4.67407,22.10486a1.33172,1.33172,0,0,1-1.02746.33874,8.368,8.368,0,0,1-3.38739-.83551,23.68313,23.68313,0,0,0-4.55036.84681l-.20324.079C11.10553,26.92743,10.06671,28,9.15216,28l-.49683-.12421-.542-.35-.03387-.05646a1.02534,1.02534,0,0,1-.05646-.60968,4.42139,4.42139,0,0,1,2.12274-2.39349l1.005-.55323,1.08392-2.03222a19.08765,19.08765,0,0,0,1.21948-3.308V18.5614a5.572,5.572,0,0,1-.24841-3.69189,1.07706,1.07706,0,0,1,.892-.86933h.271a.96338.96338,0,0,1,.68878.27094c.74524.74518.39521,2.56286.02259,4.06445l-.04517.15808A6.66531,6.66531,0,0,0,16.84143,21.384l.98236.65479,1.45654-.079c1.40015,0,2.247.24841,2.57441.779a.90834.90834,0,0,1,.13549.621A1.091,1.091,0,0,1,21.67407,24.10486ZM16,12V4l8,8Z",style:{fill:"#ef5350"}}),K.createElement("path",{d:"M19.0658,22.90814a.266.266,0,0,0-.25971.11286,6.04074,6.04074,0,0,0,2.14533.5758l.21453-.02258h.04517c.05646-.02258.09033-.03388.10162-.14673l-.10162-.12421C21.09821,23.19037,20.64661,22.90814,19.0658,22.90814Z",style:{fill:"#ef5350"}}))),b7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#1E88E5",d:"M12 18.08c-6.63 0-12-2.72-12-6.08s5.37-6.08 12-6.08S24 8.64 24 12s-5.37 6.08-12 6.08m-5.19-7.95c.54 0 .91.1 1.09.31.18.2.22.56.13 1.03-.1.53-.29.87-.58 1.09q-.42.33-1.29.33h-.87l.53-2.76zm-3.5 5.55h1.44l.34-1.75h1.23c.54 0 .98-.06 1.33-.17.35-.12.67-.31.96-.58.24-.22.43-.46.58-.73.15-.26.26-.56.31-.88.16-.78.05-1.39-.33-1.82-.39-.44-.99-.65-1.82-.65H4.59zm7.25-8.33-1.28 6.58h1.42l.74-3.77h1.14c.36 0 .6.06.71.18s.13.34.07.66l-.57 2.93h1.45l.59-3.07c.13-.62.03-1.07-.27-1.36-.3-.27-.85-.4-1.65-.4h-1.27L12 7.35zM18 10.13c.55 0 .91.1 1.09.31.18.2.22.56.13 1.03-.1.53-.29.87-.57 1.09-.29.22-.72.33-1.3.33h-.85l.5-2.76zm-3.5 5.55h1.44l.34-1.75h1.22c.55 0 1-.06 1.35-.17.35-.12.65-.31.95-.58.24-.22.44-.46.58-.73.15-.26.26-.56.32-.88.15-.78.04-1.39-.34-1.82-.36-.44-.99-.65-1.82-.65h-2.75z"})),Gk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e},K.createElement("path",{fill:"#F44336",d:"M2 8h4v1H2zm0 6h4v1H2zm9-10h3v1h-3zM2 2h3v1H2z"}),K.createElement("path",{fill:"#F9A825",d:"M9 2h3v1H9zm1 4h4v1h-4zm-5 6h1v1H5zm-3-2h6v1H2z"}),K.createElement("path",{fill:"#26A69A",d:"M2 12h3v1H2zm7-4h5v1H9zM2 4h4v1H2zm3-2h4v1H5z"}),K.createElement("path",{fill:"#BA68C8",d:"M2 6h3v1H2zm7-2h2v1H9zm-1 6h4v1H8z"})),Yk=e=>K.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},K.createElement("path",{d:"M9.86 2A2.86 2.86 0 0 0 7 4.86v1.68h4.29c.39 0 .71.57.71.96H4.86A2.86 2.86 0 0 0 2 10.36v3.781a2.86 2.86 0 0 0 2.86 2.86h1.18v-2.68a2.85 2.85 0 0 1 2.85-2.86h5.25c1.58 0 2.86-1.271 2.86-2.851V4.86A2.86 2.86 0 0 0 14.14 2zm-.72 1.61c.4 0 .72.12.72.71s-.32.891-.72.891c-.39 0-.71-.3-.71-.89s.32-.711.71-.711z",fill:"#3c78aa"}),K.createElement("path",{d:"M17.959 7v2.68a2.85 2.85 0 0 1-2.85 2.859H9.86A2.85 2.85 0 0 0 7 15.389v3.75a2.86 2.86 0 0 0 2.86 2.86h4.28A2.86 2.86 0 0 0 17 19.14v-1.68h-4.291c-.39 0-.709-.57-.709-.96h7.14A2.86 2.86 0 0 0 22 13.64V9.86A2.86 2.86 0 0 0 19.14 7zM8.32 11.513l-.004.004c.012-.002.025-.001.038-.004zm6.54 7.276c.39 0 .71.3.71.89a.71.71 0 0 1-.71.71c-.4 0-.72-.12-.72-.71s.32-.89.72-.89z",fill:"#fdd835"})),Kk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#00bcd4",d:"M16 12c7.444 0 12 2.59 12 4s-4.556 4-12 4-12-2.59-12-4 4.556-4 12-4m0-2c-7.732 0-14 2.686-14 6s6.268 6 14 6 14-2.686 14-6-6.268-6-14-6"}),K.createElement("path",{fill:"#00bcd4",d:"M16 14a2 2 0 1 0 2 2 2 2 0 0 0-2-2"}),K.createElement("path",{fill:"#00bcd4",d:"M10.458 5.507c2.017 0 5.937 3.177 9.006 8.493 3.722 6.447 3.757 11.687 2.536 12.392a.9.9 0 0 1-.457.1c-2.017 0-5.938-3.176-9.007-8.492C8.814 11.553 8.779 6.313 10 5.608a.9.9 0 0 1 .458-.1m-.001-2A2.87 2.87 0 0 0 9 3.875C6.13 5.532 6.938 12.304 10.804 19c3.284 5.69 7.72 9.493 10.74 9.493A2.87 2.87 0 0 0 23 28.124c2.87-1.656 2.062-8.428-1.804-15.124-3.284-5.69-7.72-9.493-10.74-9.493Z"}),K.createElement("path",{fill:"#00bcd4",d:"M21.543 5.507a.9.9 0 0 1 .457.1c1.221.706 1.186 5.946-2.536 12.393-3.07 5.316-6.99 8.493-9.007 8.493a.9.9 0 0 1-.457-.1C8.779 25.686 8.814 20.446 12.536 14c3.07-5.316 6.99-8.493 9.007-8.493m0-2c-3.02 0-7.455 3.804-10.74 9.493C6.939 19.696 6.13 26.468 9 28.124a2.87 2.87 0 0 0 1.457.369c3.02 0 7.455-3.804 10.74-9.493C25.061 12.304 25.87 5.532 23 3.876a2.87 2.87 0 0 0-1.457-.369"})),S7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#ff7043",d:"m30 12-4-2V6h-4l-2-4-4 2-4-2-2 4H6v4l-4 2 2 4-2 4 4 2v4h4l2 4 4-2 4 2 2-4h4v-4l4-2-2-4ZM6 16a9.9 9.9 0 0 1 .842-4H10v8H6.842A9.9 9.9 0 0 1 6 16m10 10a9.98 9.98 0 0 1-7.978-4H16v-2h-2v-2h4c.819.819.297 2.308 1.179 3.37a1.89 1.89 0 0 0 1.46.63h3.34A9.98 9.98 0 0 1 16 26m-2-12v-2h4a1 1 0 0 1 0 2Zm11.158 6H24a2.006 2.006 0 0 1-2-2 2 2 0 0 0-2-2 3 3 0 0 0 3-3q0-.08-.004-.161A3.115 3.115 0 0 0 19.83 10H8.022a9.986 9.986 0 0 1 17.136 10"})),Jk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#ec407a",d:"M27.837 5.673a4.33 4.33 0 0 0-2.293-2.701c-2.362-1.261-6.11-1.298-9.548-.092a26.3 26.3 0 0 0-8.76 4.966c-2.752 2.542-3.438 4.925-3.189 6.194.523 2.668 3.274 4.539 5.485 6.042.418.284.822.559 1.175.816-1.429.76-4.261 2.444-5.088 4.248a3.88 3.88 0 0 0-.118 3.332A2.37 2.37 0 0 0 6.869 29.8a5.6 5.6 0 0 0 1.49.2 6.35 6.35 0 0 0 5.19-2.856 6.74 6.74 0 0 0 .864-5.382 7.3 7.3 0 0 1 2.044-.03 3.92 3.92 0 0 1 2.816 1.311 1.82 1.82 0 0 1 .423 1.262 1.55 1.55 0 0 1-.772 1.05c-.234.14-.586.355-.504.803.036.194.198.633.894.512a2.93 2.93 0 0 0 2.145-2.651 4 4 0 0 0-1.197-2.904 5.94 5.94 0 0 0-4.396-1.626 10.6 10.6 0 0 0-2.672.304 20 20 0 0 0-2.203-1.846c-1.712-1.3-3.33-2.529-3.235-4.26.125-2.263 2.468-4.532 6.964-6.744 4.016-1.976 7.254-2.037 8.944-1.438a2 2 0 0 1 1.204.883 2.77 2.77 0 0 1-.36 2.47 9.71 9.71 0 0 1-7.425 4.304 3.86 3.86 0 0 1-3.238-.757c-.278-.302-.593-.645-1.074-.383q-.565.31-.225 1.189a3.9 3.9 0 0 0 2.407 1.92 11.7 11.7 0 0 0 7.128-.671c3.527-1.35 6.681-5.202 5.756-8.787M11.895 24.475a4 4 0 0 1-.192.468 4.5 4.5 0 0 1-.753 1.081 2.83 2.83 0 0 1-2.533 1.107c-.056-.032-.078-.146-.085-.193a3.28 3.28 0 0 1 1.076-2.284 11.3 11.3 0 0 1 2.644-1.933 3.85 3.85 0 0 1-.157 1.754"})),kf=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M17,2H8A2,2,0,0,0,6,4V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V11Zm7,16H22.44189l-4.60968,3.00812L22.41693,24H24v4H18V24h.75739l-2.755-1.79779L13.2475,24H14v4H8V24H9.58783l4.58478-2.99188L9.563,18H8V14h6v4h-.77734l2.77972,1.814L18.78223,18H18V14h6Zm-8-6V4l8,8Z",style:{fill:"#8bc34a"}})),i5=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#42a5f5",d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"})),E7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e},K.createElement("path",{fill:"#cfd8dc",d:"M4 6V4h8v2H9v7H7V6z"}),K.createElement("path",{fill:"#ef5350",d:"M4 1v1H2v12h2v1H1V1zm8 0v1h2v12h-2v1h3V1z"})),H7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#757575",d:"M15 2H6a2.006 2.006 0 0 0-2 2v22a2.006 2.006 0 0 0 2 2h6v-4H6v-2h6v-2H6v-2h6v-2H6v-2h6v-2h2V4l8 8h2v-1Z","data-mit-no-recolor":"true"}),K.createElement("path",{fill:"#0288d1",d:"M12 12v18h18V12Zm8 6h-2v8h-2v-8h-2v-2h6Zm8 0h-4v2h2a2.006 2.006 0 0 1 2 2v2a2.006 2.006 0 0 1-2 2h-4v-2h4v-2h-2a2.006 2.006 0 0 1-2-2v-2a2.006 2.006 0 0 1 2-2h4Z"})),_7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 16 16",...e},K.createElement("path",{fill:"#0288d1",d:"M2 2v12h12V2zm4 6h3v1H8v4H7V9H6zm5 0h2v1h-2v1h1a1.003 1.003 0 0 1 1 1v1a1.003 1.003 0 0 1-1 1h-2v-1h2v-1h-1a1.003 1.003 0 0 1-1-1V9a1.003 1.003 0 0 1 1-1"})),os=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M24,6l2,6H22L20,6H17l2,6H15L13,6H10l2,6H8L6,6H5A3,3,0,0,0,2,9V23a3,3,0,0,0,3,3H27a3,3,0,0,0,3-3V6Z",style:{fill:"#ff9800"}})),eD=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#ffab00",d:"M10 2v16h4v12l9-16h-6l5-12Z"})),w7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#41b883",d:"M1.791 3.851 12 21.471 22.209 3.936V3.85H18.24l-6.18 10.616L5.906 3.851z"}),K.createElement("path",{fill:"#35495e",d:"m5.907 3.851 6.152 10.617L18.24 3.851h-3.723L12.084 8.03 9.66 3.85z"})),C7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#FAFAFA",fillOpacity:.785,d:"m19.376 15.988-7.708 4.45-7.709-4.45v-8.9l7.709-4.451 7.708 4.45z"}),K.createElement("path",{fill:"#90CAF9",d:"M12.286 1.98c-.21 0-.41.059-.57.179l-7.9 4.44c-.32.17-.53.5-.53.88v9c0 .38.21.711.53.881l7.9 4.44c.16.12.36.18.57.18s.41-.06.57-.18l7.9-4.44c.32-.17.53-.5.53-.88v-9c0-.38-.21-.712-.53-.882l-7.9-4.44a.95.95 0 0 0-.57-.179zm0 2.15 7 3.94v2.103h-.016v5.177h.016v.54l-7 3.939-7-3.94V8.07zm0 2.08-4.9 2.83 4.9 2.83 4.9-2.83zm-5 5.08v3.58l4 2.309v-3.58l-4-2.31zm10 0-4 2.308v3.58l4-2.308z"}),K.createElement("path",{fill:"#0277BD",d:"m12.286 6.21-4.9 2.83 4.9 2.83 4.9-2.83zm-5 5.08v3.58l4 2.309v-3.58l-4-2.31zm10 0-4 2.308v3.58l4-2.308z"})),Df=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#01579b",d:"M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2m7 1.5V9h5.5zM7 13l1.5 7h2l1.5-3 1.5 3h2l1.5-7h1v-2h-4v2h1l-.9 4.2L13 15h-2l-1.1 2.2L9 13h1v-2H6v2z"})),A7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M17,2H8A2,2,0,0,0,6,4V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V11ZM14.97656,26.10535,12.90942,28,8,22l4.90942-6,2.06714,1.89459L11.61749,22ZM19.09058,28l-2.06714-1.89465L20.38251,22l-3.35907-4.10541L19.09058,16,24,22ZM16,12V4l8,8Z",style:{fill:"#8bc34a"}})),tD=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#FF5252",d:"M13 9h5.5L13 3.5zM6 2h8l6 6v12c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2m12 16v-2H9v2zm-4-4v-2H6v2z"})),a5=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M27,4H5A1,1,0,0,0,4,5V27a1,1,0,0,0,1,1H27a1,1,0,0,0,1-1V5A1,1,0,0,0,27,4ZM20,14H16v4h4v4H16V18H12V14h4V10H12V6h4v4h4Z",style:{fill:"#afb42b"}}));Ee.div`
|
|
409
409
|
font-size: 16px;
|
|
410
410
|
`;const Di={folder:B.jsx(g7e,{}),file:B.jsx(i5,{}),bucket:B.jsx(p7e,{}),txt:B.jsx(i5,{}),md:B.jsx(Wk,{}),markdown:B.jsx(Wk,{}),pdf:B.jsx(L7e,{}),doc:B.jsx(Df,{}),docx:B.jsx(Df,{}),rtf:B.jsx(Df,{}),json:B.jsx(Uk,{}),jsonl:B.jsx(Uk,{}),yaml:B.jsx(tD,{}),yml:B.jsx(tD,{}),toml:B.jsx(E7e,{}),xml:B.jsx(A7e,{}),csv:B.jsx(kf,{}),xls:B.jsx(kf,{}),xlsx:B.jsx(kf,{}),sql:B.jsx(Zk,{}),sqlite:B.jsx(Zk,{}),graphql:B.jsx(zk,{}),gql:B.jsx(zk,{}),ts:B.jsx(_7e,{}),tsx:B.jsx(Kk,{}),js:B.jsx(v7e,{}),jsx:B.jsx(Kk,{}),vue:B.jsx(w7e,{}),html:B.jsx(Xk,{}),htm:B.jsx(Xk,{}),css:B.jsx(m7e,{}),less:B.jsx(x7e,{}),sass:B.jsx(Jk,{}),scss:B.jsx(Jk,{}),py:B.jsx(Yk,{}),pyc:B.jsx(Yk,{}),java:B.jsx(Pf,{}),class:B.jsx(Pf,{}),jar:B.jsx(Pf,{}),go:B.jsx(y7e,{}),rs:B.jsx(S7e,{}),php:B.jsx(b7e,{}),sh:B.jsx(i5,{}),bash:B.jsx(i5,{}),zsh:B.jsx(i5,{}),fish:B.jsx(i5,{}),"tsconfig.json":B.jsx(H7e,{}),"package.json":B.jsx(m8,{}),"package-lock.json":B.jsx(m8,{}),"yarn.lock":B.jsx(m8,{}),"pnpm-lock.yaml":B.jsx(m8,{}),".gitignore":B.jsx(O7e,{}),".eslintrc":B.jsx(Mf,{}),".eslintrc.js":B.jsx(Mf,{}),".eslintrc.json":B.jsx(Mf,{}),".prettierrc":B.jsx(Gk,{}),".prettierrc.js":B.jsx(Gk,{}),".babelrc":B.jsx(qk,{}),"babel.config.js":B.jsx(qk,{}),"vite.config.ts":B.jsx(eD,{}),"vite.config.js":B.jsx(eD,{}),"webpack.config.js":B.jsx(C7e,{}),Dockerfile:B.jsx(Af,{}),"docker-compose.yml":B.jsx(Af,{}),"docker-compose.yaml":B.jsx(Af,{}),mp3:B.jsx(Cf,{}),wav:B.jsx(Cf,{}),ogg:B.jsx(Cf,{}),mp4:B.jsx(os,{}),avi:B.jsx(os,{}),mov:B.jsx(os,{}),mkv:B.jsx(os,{}),webm:B.jsx(os,{}),jpg:B.jsx(ki,{}),jpeg:B.jsx(ki,{}),png:B.jsx(ki,{}),gif:B.jsx(ki,{}),svg:B.jsx(ki,{}),webp:B.jsx(ki,{}),ico:B.jsx(ki,{}),zip:B.jsx(a5,{}),rar:B.jsx(a5,{}),"7z":B.jsx(a5,{}),tar:B.jsx(a5,{}),gz:B.jsx(a5,{}),tgz:B.jsx(a5,{})};function g8({path:e,type:t}){const r=n=>{if(!n.includes(".")&&n.endsWith("/"))return"folder";if(n.endsWith(".jsonl.gz"))return"jsonl";const i=n.split("/").pop()?.toLowerCase();if(i&&Di.hasOwnProperty(i))return i;const a=n.split(".").pop()?.toLowerCase();return a&&a in Di?a:"file"};if(t)return Di[t];if(e){const n=e.split("?")[0],i=r(n);return i?Di[i]:Di.file}return Di.file}const M7e=Ee(we.List.Item)`
|
|
411
411
|
position: relative;
|