1import{a as e,t}from"./chunk-BEqpzyXh.js";import{t as n}from"./react-BTpDkA_X.js";import{t as r}from"./jsx-runtime-CtcQ9akZ.js";var i=e(n());function a(e,t){if(e===t)return!0;if(!e||!t)return!1;let n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(let r=0;r<i;r++){let i=n[r];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0}var o=(0,i.createContext)(null);function s(){return(0,i.useContext)(o)}function c(){let{data:{i18n:e}}=s();return{locale:e,localeCode:e?.language||`en`,lines:e?.lines}}var l=t(((e,t)=>{(function(){var e=Object.assign;typeof e!=`function`&&(e=function(){var e=arguments,t=arguments[0];if(t==null)throw TypeError(`Cannot convert undefined or null to object`);t=Object(t);for(var n=1;n<e.length;n++)if(e[n]&&typeof e[n]==`object`)for(var r in e[n])t[r]=e[n][r];return t});function n(e){var t=e+``,n=t.indexOf(`...`);return n>=0&&(n<t.indexOf(`)`)||t.indexOf(`arguments`)>=0)}function r(t,r){r||={};var i=r.vargs||n(t),a=Object.create(null),o=[],s=[],c,l=new WeakMap,u=r.maxAge>0&&r.maxAge<1/0?function(e,t,n){return setTimeout(function(){if(n){t.splice(e,1),n.splice(e,1);return}t instanceof WeakMap?t.delete(e):delete t[e]},r.maxAge)}:0,d=r.equals?r.equals:function(e,t){return e===t},f=r.maxArgs,p=r.serializer,m,h;return t.length===1&&!r.equals&&!i?(m=(function(e){var n=typeof e;if(!p&&(n===`object`&&e||n===`function`)){var r;return l.get(e)||(!u||u(e,l),l.set(e,r=t.call(this,e)),r)}var i=n===`number`||n===`boolean`||e==null?e:n===`string`?JSON.stringify(e):p(e);return a[i]||(!u||u(i,a),a[i]=t.call(this,e))}).bind(this),h=1):m=(function(){var e=arguments.length;if(!e&&c!=null)return s[c];var n=f||e,r;for(r=o.length-1;r>=0;r--)if(!(!f&&o[r].length!==n)){for(var i=n-1;i>=0&&d(o[r][i],arguments[i]);i--)if(i===0)return s[r]}return r=o.length-(r+1),!e&&c==null&&(c=r),!u||u(r,s,o),s[r]=t.apply(this,o[r]=arguments)}).bind(this),m.clear=function(){l=new WeakMap,a=Object.create(null),o=[],s=[],c=void 0},m.keys=function(){return h?null:o.slice()},m.values=function(){return h?null:s.slice()},m.keyValues=function(){return h?{primitives:e({},a),objects:l}:null},m}t!==void 0&&(t.exports=r),typeof window<`u`&&(window.nanomemoize=r)}).call(e)})),u=e(l());function d(e,{message:t,values:n}){let r=t.match(/\[(.+?)]/),i=n?.count;if(r&&r[1]&&!Number.isNaN(i)){let[n,a]=r,o=a.split(`|`);if(!o.length)return t;let s=f(e).select(i),c=o.find(e=>e.startsWith(s));c||=o[0];let l=c.substring(c.indexOf(` `)+1);return t.replace(n,l)}return t}var f=(0,u.default)(e=>new Intl.PluralRules(e)),p=r();function m(e,t){return e==null?!1:Object.hasOwn===void 0?Object.hasOwnProperty(t):Object.hasOwn(e,t)}var h=(0,i.memo)(e=>{let{message:t,values:n}=e,{lines:r,localeCode:a}=c(),o;if(o=m(r,t)?r?.[t]:m(r,t?.toLowerCase())?r?.[t.toLowerCase()]:t,!n||!o)return(0,p.jsx)(i.Fragment,{children:o});o=d(a,{message:o,values:n});let s=[],l=[];if(Object.entries(n).forEach(([e,t])=>{typeof t==`function`?l.push(e):(0,i.isValidElement)(t)?s.push(e):t!=null&&(o=o?.replace(`:${e}`,`${t}`))}),l.length||s.length){let e=[];
1if(l.length){let t=l.join(``);e.push(`(<[${t}]>.+?<\\/[${t}]>)`)}if(s.length){let t=s.join(`|`);e.push(`(\:(?:${t}))`)}let t=new RegExp(e.join(`|`),`gm`);return(0,p.jsx)(i.Fragment,{children:o.split(t).filter(Boolean).map((e,t)=>{if(e.startsWith(`<`)&&e.endsWith(`>`)){let r=e.match(/<([a-z]+)>(.+?)<\/([a-z]+)>/);if(r){let[,e,a]=r,o=n?.[e];if(typeof o==`function`)return(0,i.cloneElement)(o(a),{key:t})}}if(e.startsWith(`:`)){let r=e.replace(`:`,``),a=n?.[r];if((0,i.isValidElement)(a))return(0,i.cloneElement)(a,{key:t})}return e})})}return(0,p.jsx)(i.Fragment,{children:o})},g);function g(e,t){let{values:n,...r}=e,{values:i,...o}=t;return a(i,n)&&a(r,o)}export{o as a,c as i,d as n,s as o,l as r,a as s,h 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.