1import{g as e,r as n}from"./react-vendor-jggwe9L9.js";import{g as t,k as s,b as r,u as i}from"./index-3lAxo7IC.js";import{w as o,i as l,a,b as c,I as u}from"./Seo-C1rGzdDy.js";const p=e({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});var d=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function m(e){var n={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},t=e.match(/<\/?([^\s]+?)[/\s>]/);if(t&&(n.name=t[1],(p[t[1]]||"/"===e.charAt(e.length-2))&&(n.voidElement=!0),n.name.startsWith("!--"))){var s=e.indexOf("--\x3e");return{type:"comment",comment:-1!==s?e.slice(4,s):""}}for(var r=new RegExp(d),i=null;null!==(i=r.exec(e));)if(i[0].trim())if(i[1]){var o=i[1].trim(),l=[o,""];o.indexOf("=")>-1&&(l=o.split("=")),n.attrs[l[0]]=l[1],r.lastIndex--}else i[2]&&(n.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1));return n}var f=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,h=/^\s*$/,v=Object.create(null);var y=function(e,n){n||(n={}),n.components||(n.components=v);var t,s=[],r=[],i=-1,o=!1;if(0!==e.indexOf("<")){var l=e.indexOf("<");s.push({type:"text",content:-1===l?e:e.substring(0,l)})}return e.replace(f,function(l,a){if(o){if(l!=="</"+t.name+">")return;o=!1}var c,u="/"!==l.charAt(1),p=l.startsWith("\x3c!--"),d=a+l.length,f=e.charAt(d);if(p){var v=m(l);return i<0?(s.push(v),s):((c=r[i]).children.push(v),s)}if(u&&(i++,"tag"===(t=m(l)).type&&n.components[t.name]&&(t.type="component",o=!0),t.voidElement||o||!f||"<"===f||t.children.push({type:"text",content:e.slice(d,e.indexOf("<",d))}),0===i&&s.push(t),(c=r[i-1])&&c.children.push(t),r[i]=t),(!u||t.voidElement)&&(i>-1&&(t.voidElement||t.name===l.slice(2,-1))&&(i--,t=-1===i?s:r[i]),!o&&"<"!==f&&f)){c=-1===i?s:r[i].children;var y=e.indexOf("<",d),g=e.slice(d,-1===y?void 0:y);h.test(g)&&(g=" "),(y>-1&&i+c.length>=0||" "!==g)&&c.push({type:"text",content:g})}}),s};const g=(e,n)=>{var t;if(!e)return!1;const s=(null==(t=e.props)?void 0:t.children)??e.children;return n?s.length>0:!!s},b=e=>{var n,t;if(!e)return[];const s=(null==(n=e.props)?void 0:n.children)??e.children;return(null==(t=e.props)?void 0:t.i18nIsDynamicList)?E(s):s},E=e=>Array.isArray(e)?e:[e],O=(e,t,s,r)=>{if(!e)return"";let i="";const o=E(e),u=(null==t?void 0:t.transSupportBasicHtmlNodes)?t.transKeepBasicHtmlNodesFor??[]:[];return o.forEach((e,o)=>{if(l(e))i+=`${e}`;else{if(n.isValidElement(e)){const{props:n,type:a}=e,c=Object.keys(n).length,p=u.indexOf(a)>-1,d=n.children;if(!d&&p&&!c)return void(i+=`<${a}/>`);if(!d&&(!p||c)||n.i18nIsDynamicList)return void(i+=`<${o}></${o}>`);if(p&&1===c&&l(d))return void(i+=`<${a}>${d}</${a}>`);const m=O(d,t,s,r);return void(i+=`<${o}>${m}</${o}>`)}if(null!==e){if(c(e)){const{format:n,...t}=e,o=Object.keys(t);if(1===o.length){const e=n?`${o[0]}, ${n}`:o[0];return void(i+=`{{${e}}}`)}return void a(s,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:r,child:e})}a(s,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:r,child:e})}else a(s,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:r})}}),i},x=(e,s,r,o,a,u,p)=>{if(""===r)return[];const d=a.transKeepBasicHtmlNodesFor||[],m=r&&new RegExp(d.map(e=>`<${e}`).join("|")).test(r);if(!(e||s||m||p))return[r];const f=s??{},h=e=>{E(e).forEach(e=>{l(e)||(g(e)?h(b(e)):c(e)&&!n.isValidElement(e)&&Object.assign(f,e))})};h(e);const v=((e,n=[],t={})=>{if(!e)return e;const s=[...n,...Object.keys(t)];let r="",i=0;for(;i<e.length;)if("<"===e[i]){let n=!1;const t=e.slice(i).match(/^<\/(\d+|[a-zA-Z][a-zA-Z0-9_-]*)>/);if(t){const e=t[1];(/^\d+$/.test(e)||s.includes(e))&&(n=!0,r+=t[0],i+=t[0].length)}if(!n){const t=e.slice(i).match(/^<(\d+|[a-zA-Z][a-zA-Z0-9_-]*)(\s+[\w-]+(?:=(?:"[^"]*"|'[^']*'|[^\s>]+))?)*\s*(\/)?>/);if(t){const e=t[1];(/^\d+$/.test(e)||s.includes(e))&&(n=!0,r+=t[0],i+=t[0].length)}}n||(r+="<",i+=1)}else r+=e[i],i+=1;return r})(r,d,f),O=y(`<0>${v}</0>`),x={...f,...u},$=(e,t,s)=>{var r;const i=b(e),o=A(i,t.children,s);return(e=>Array.isArray(e)&&e.every(n.isValidElement))(i)&&0===o.length||(null==(r=e.props)?void 0:r.i18nIsDynamicList)?
1i:o},N=(e,t,s,r,i)=>{e.dummy?(e.children=t,s.push(n.cloneElement(e,{key:r},i?void 0:t))):s.push(...n.Children.map([e],e=>{const s="data-i18n-is-dynamic-list",o={key:r,[s]:void 0};return e&&e.props&&Object.keys(e.props).forEach(n=>{"ref"!==n&&"children"!==n&&"i18nIsDynamicList"!==n&&n!==s&&(o[n]=e.props[n])}),n.cloneElement(e,o,i?null:t)}))},A=(e,r,u)=>{const f=E(e);return E(r).reduce((e,r,h)=>{var v,y;const b=(null==(y=null==(v=r.children)?void 0:v[0])?void 0:y.content)&&o.services.interpolator.interpolate(r.children[0].content,x,o.language);if("tag"===r.type){let t=f[parseInt(r.name,10)];!t&&s&&(t=s[r.name]),1!==u.length||t||(t=u[0][r.name]),t||(t={});const v={...r.attrs};p&&Object.keys(v).forEach(e=>{const n=v[e];l(n)&&(v[e]=i(n))});const y=0!==Object.keys(v).length?((e,n)=>{const t={...n};return t.props={...n.props,...e.props},t})({props:v},t):t,E=n.isValidElement(y),O=E&&g(r,!0)&&!r.voidElement,k=m&&c(y)&&y.dummy&&!E,j=c(s)&&Object.hasOwnProperty.call(s,r.name);if(l(y)){const n=o.services.interpolator.interpolate(y,x,o.language);e.push(n)}else if(g(y)||O){const n=$(y,r,u);N(y,n,e,h)}else if(k){const n=A(f,r.children,u);N(y,n,e,h)}else if(Number.isNaN(parseFloat(r.name)))if(j){const n=$(y,r,u);N(y,n,e,h,r.voidElement)}else if(a.transSupportBasicHtmlNodes&&d.indexOf(r.name)>-1)if(r.voidElement)e.push(n.createElement(r.name,{key:`${r.name}-${h}`}));else{const t=A(f,r.children,u);e.push(n.createElement(r.name,{key:`${r.name}-${h}`},t))}else if(r.voidElement)e.push(`<${r.name} />`);else{const n=A(f,r.children,u);e.push(`<${r.name}>${n}</${r.name}>`)}else if(c(y)&&!E){const n=r.children[0]?b:null;n&&e.push(n)}else N(y,b,e,h,1!==r.children.length||!b)}else if("text"===r.type){const s=a.transWrapTextNodes,i="function"==typeof a.unescape?a.unescape:t().unescape,l=p?i(o.services.interpolator.interpolate(r.content,x,o.language)):o.services.interpolator.interpolate(r.content,x,o.language);s?e.push(n.createElement(s,{key:`${r.name}-${h}`},l)):e.push(l)}return e},[])},k=A([{dummy:!0,children:e||[]}],O,E(e||[]));return b(k[0])},$=(e,t,s)=>{const r=e.key||t,i=n.cloneElement(e,{key:r});if(!i.props||!i.props.children||s.indexOf(`${t}/>`)<0&&s.indexOf(`${t} />`)<0)return i;return n.createElement(function(){return n.createElement(n.Fragment,null,i)},{key:r})},N=(e,n,t,s)=>e?Array.isArray(e)?((e,n)=>e.map((e,t)=>$(e,t,n)))(e,n):c(e)?((e,n)=>{const t={};return Object.keys(e).forEach(s=>{Object.assign(t,{[s]:$(e[s],s,n)})}),t})(e,n):(o(t,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:s}),null):null;function A({children:e,count:i,parent:a,i18nKey:u,context:p,tOptions:d={},values:m,defaults:f,components:h,ns:v,i18n:y,t:$,shouldUnescape:A,...k}){var j,I,V,T,S,_;const K=y||r();if(!K)return o(K,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:u}),e;const L=$||K.t.bind(K)||(e=>e),D={...t(),...null==(j=K.options)?void 0:j.react};let R=v||L.ns||(null==(I=K.options)?void 0:I.defaultNS);R=l(R)?[R]:R||["translation"];const{transDefaultProps:w}=D,F=(null==w?void 0:w.tOptions)?{...w.tOptions,...d}:d,P=A??(null==w?void 0:w.shouldUnescape),U=(null==w?void 0:w.values)?{...w.values,...m}:m,z=(null==w?void 0:w.components)?{...w.components,...h}:h,B=O(e,D,K,u),Z=f||(null==F?void 0:F.defaultValue)||B||D.transEmptyNodeValue||("function"==typeof u?s(u):u),{hashTransKey:C}=D,H=u||(C?C(B||Z):B||Z);m=(null==(T=null==(V=K.options)?void 0:V.interpolation)?void 0:T.defaultVariables)?U&&Object.keys(U).length>0?{...U,...K.options.interpolation.defaultVariables}:{...K.options.interpolation.defaultVariables}:U;const W=(e=>{const t={};if(!e)return t;const s=e=>{E(e).forEach(e=>{l(e)||(g(e)?s(b(e)):c(e)&&!n.isValidElement(e)&&Object.assign(t,e))})};return s(e),t})(e);W&&"number"==typeof W.count&&void 0===i&&(i=W.count);const M=m||void 0!==i&&!(null==(_=null==(S=K.options)?void 0:S.interpolation)?void 0:_.alwaysFormat)||!e?F.interpolation:{interpolation:{...F.interpolation,prefix:"#$?",suffix:"?$#"}},J={...F,context:p||F.context,count:i,...m,...M,defaultValue:Z,ns:R};let X=H?L(H,J):Z;
1X===H&&Z&&(X=Z);const Y=N(z,X,K,u);let q=Y||e,G=null;var Q;c(Q=Y)&&!Array.isArray(Q)&&Object.keys(Q).reduce((e,n)=>e&&Number.isNaN(Number.parseFloat(n)),!0)&&(G=Y,q=e);const ee=x(q,G,X,K,D,J,P),ne=a??D.defaultTransParent;return ne?n.createElement(ne,k,ee):ee}function k({children:e,count:t,parent:s,i18nKey:i,context:o,tOptions:l={},values:a,defaults:c,components:p,ns:d,i18n:m,t:f,shouldUnescape:h,...v}){var y;const{i18n:g,defaultNS:b}=n.useContext(u)||{},E=m||g||r(),O=f||(null==E?void 0:E.t.bind(E));return A({children:e,count:t,parent:s,i18nKey:i,context:o,tOptions:l,values:a,defaults:c,components:p,ns:d||(null==O?void 0:O.ns)||b||(null==(y=null==E?void 0:E.options)?void 0:y.defaultNS),i18n:E,t:f,shouldUnescape:h,...v})}export{k as T};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.