import{s as x,e as l,c as u,b as h,f as c,i as f,n as _,W as K,p as N,M as y,t as P,d as k,h as d,j as v,r as M,o as p}from"./scheduler.VqJF7Vna.js";import{e as g}from"./each.COPsAJmc.js";import{S as E,i as C}from"./index.Ddm4CqKS.js";import{h as m}from"./has_field.olGNMGC8.js";const I=({text:r})=>{const s=r.split(" ");let i=s.length-1;for(let e=0;e<=i;e++){const n=i===e,t=s[e];if(t.endsWith(".")){s[e]=t.substring(0,t.length-1),s.splice(e+1,0,".");continue}else n||(s.splice(e+1,0," "),e=e+1,i=s.length-1)}return s},B=({last:r,E:s,words:i})=>{let e="";return s+1<=r&&(e=i[s]+" "+i[s+2]),e},b=({legend_language:r,text:s})=>{var i=[];const e=I({text:s}),n=e.length-1;for(let t=0;t<=n;t++){const a=e[t];let o=B({last:n,E:t,words:e});m(r,a)?i.push({text:r[a],code:"yes"}):m(r,o)?(i.push({text:r[o],code:"yes"}),t=t+2):i.push({text:a})}return i};function A(r,s,i){const e=r.slice();return e[4]=s[i],e}function w(r){let s,i=r[4].text+"",e;return{c(){s=l("span"),e=P(i)},l(n){s=u(n,"SPAN",{});var t=h(s);e=k(t,i),t.forEach(c)},m(n,t){f(n,s,t),d(s,e)},p(n,t){t&1&&i!==(i=n[4].text+"")&&v(e,i)},d(n){n&&c(s)}}}function L(r){let s,i,e=r[4].text+"",n;return{c(){s=l("span"),i=l("code"),n=P(e),this.h()},l(t){s=u(t,"SPAN",{});var a=h(s);i=u(a,"CODE",{class:!0,style:!0});var o=h(i);n=k(o,e),o.forEach(c),a.forEach(c),this.h()},h(){M(i,"class","code"),p(i,"color","inherit"),p(i,"font-weight","bold"),p(i,"font-size","1em")},m(t,a){f(t,s,a),d(s,i),d(i,n)},p(t,a){a&1&&e!==(e=t[4].text+"")&&v(n,e)},d(t){t&&c(s)}}}function S(r){let s;function i(t,a){return t[4].code==="yes"?L:w}let e=i(r),n=e(r);return{c(){n.c(),s=y()},l(t){n.l(t),s=y()},m(t,a){n.m(t,a),f(t,s,a)},p(t,a){e===(e=i(t))&&n?n.p(t,a):(n.d(1),n=e(t),n&&(n.c(),n.m(s.parentNode,s)))},d(t){t&&c(s),n.d(t)}}}function T(r){let s,i=g(r[0]),e=[];for(let n=0;n<i.length;n+=1)e[n]=S(A(r,i,n));return{c(){s=l("span");for(let n=0;n<e.length;n+=1)e[n].c()},l(n){s=u(n,"SPAN",{});var t=h(s);for(let a=0;a<e.length;a+=1)e[a].l(t);t.forEach(c)},m(n,t){f(n,s,t);for(let a=0;a<e.length;a+=1)e[a]&&e[a].m(s,null)},p(n,[t]){if(t&1){i=g(n[0]);let a;for(a=0;a<i.length;a+=1){const o=A(n,i,a);e[a]?e[a].p(o,t):(e[a]=S(o),e[a].c(),e[a].m(s,null))}for(;a<e.length;a+=1)e[a].d(1);e.length=i.length}},i:_,o:_,d(n){n&&c(s),K(e,n)}}}const O="English";function z(r,s,i){let n={Chinese:{},Francais:{},Spanish:{},English:{Internet_Location:"ICANN+IANA Lagrange Neuron",Internet:"ICANN/IANA Lagrange Neural Lattice",Aptos:"Aptos",Account:"Account",Accounts:"Accounts",Address:"Address",Addresses:"Addresses",consensus:"Group",Consensus:"Group",blockchain:"Map",Blockchain:"Map",Key:"Key",Keys:"Keys",Sender:"Sender",signature:"Signature",Signature:"Signature",Signatures:"Signatures",Sign:"Sign",Signing:"Signing",Signed:"Signed",the_pypi_module:"Hemoglycin",transaction:"Play",Transaction:"Play",Transactions:"Plays",Petition:"Petition",Petitions:"Petitions","private key":"private key","Private Key":"Private Key","Private Keys":"Private Keys","public key":"public key","Public Key":"Public Key","Public Keys":"Public Keys",Machine:"Beacon",Machines:"Beacons","Online Machine":"Howl Beacon","Offline Machine":"Keys Beacon"}}[O],{text:t=""}=s;var a=[];return N(()=>{i(0,a=b({legend_language:n,text:t}))}),r.$$set=o=>{"text"in o&&i(1,t=o.text)},r.$$.update=()=>{r.$$.dirty&2&&i(0,a=b({legend_language:n,text:t}))},[a,t]}class q extends E{constructor(s){super(),C(this,s,z,T,x,{text:1})}}export{q as T};
//# sourceMappingURL=Trinket.CVGjtVOj.js.map
