PageSourceSearch

https://www.tehy.fi/themes/custom/tehy/js/hyphenopoly/Hyphenopoly_Loader.min.js

js tehy.fi collected 2026-09-24 09:31:29 UTC 2,960 bytes, 1 lines download raw bytes

1window.Hyphenopoly={},((y,g,m,u)=>{"use strict";const w=e=>new Map(e),v="Hyphenopoly_Loader.js",r=g.currentScript.src,H=sessionStorage;let O=!1;m.config=e=>{var t=(s,e)=>s?(u.entries(e).forEach(([e,t])=>{s[e]=s[e]||t}),s):e,s=(m.cft=!!e.cacheFeatureTests,m.cft&&H.getItem(v)?(m.cf=JSON.parse(H.getItem(v)),m.cf.langs=w(m.cf.langs)):m.cf={langs:w(),pf:!1},r.slice(0,r.lastIndexOf("/")+1));m.paths=t(e.paths,{maindir:s,patterndir:s+"patterns/"}),m.s=t(e.setup,{CORScredentials:"include",hide:"all",selectors:{".hyphenate":{}},timeout:1e3}),m.s.hide=["all","element","text"].indexOf(m.s.hide),e.handleEvent&&(m.hev=e.handleEvent);const n=w(u.entries(e.fallbacks||{}));m.lrq=w(),u.entries(e.require).forEach(([e,t])=>{m.lrq.set(e.toLowerCase(),{fn:n.get(e)||e,wo:t})});{const l="appendChild",o="createElement",a="createTextNode",i=()=>{let s=null,n=null;const e=new Promise((e,t)=>{s=e,n=t});return e.resolve=s,e.reject=n,e},c=(m.ac=new AbortController,{credentials:m.s.CORScredentials,signal:m.ac.signal});let r=null;m.hide=(e,n)=>{if(e){let t="{visibility:hidden!important}",s=(r=g[o]("style"),"");0===n?s="html"+t:-1!==n&&(2===n&&(t="{color:transparent!important}"),u.keys(m.s.selectors).forEach(e=>{s+=e+t})),r[l](g[a](s)),g.head[l](r)}else r&&r.remove()};const h=(()=>{let n=null;return{ap:()=>n?(g.documentElement[l](n),n):null,cl:()=>{n&&n.remove()},cr:e=>{if(!m.cf.langs.has(e)){n=n||g[o]("body");const t=g[o]("div"),s="hyphens:auto";t.lang=e,t.style.cssText=`visibility:hidden;-webkit-${s};-ms-${s};${s};width:48px;font-size:12px;line-height:12px;border:none;padding:0;word-wrap:normal`,t[l](g[a](m.lrq.get(e).wo.toLowerCase())),n[l](t)}}}})(),d=(m.res={he:w()},e=>{var t=m.lrq.get(e).fn;m.cf.pf=!0,m.cf.langs.set(e,"H9Y"),m.res.he.has(t)?m.res.he.get(t).l.push(e):m.res.he.set(t,{l:[e],w:y.fetch(m.paths.patterndir+t+".wasm",c)})}),p=(m.lrq.forEach((e,t)=>{"FORCEHYPHENOPOLY"===e.wo||"H9Y"===m.cf.langs.get(t)?d(t):h.cr(t)}),h.ap()),f=(p&&(p.querySelectorAll("div").forEach(e=>{var t;"auto"===((t=e.style).hyphens||t.webkitHyphens||t.msHyphens)&&12<e.offsetHeight?m.cf.langs.set(e.lang,"CSS"):d(e.lang)}),h.cl()),m.hev);return m.cf.pf?(m.res.DOM=new Promise(e=>{"loading"===g.readyState?g.addEventListener("DOMContentLoaded",e,{once:!0,passive:!0}):e()}),m.hide(1,m.s.hide),m.timeOutHandler=y.setTimeout(()=>{m.hide(0,null),1&m.s.timeout&&m.ac.abort(),console.info(v+" timed out.")},m.s.timeout),O?m.main():fetch(m.paths.maindir+"Hyphenopoly.js",c).then(e=>{e.ok&&e.blob().then(e=>{const t=g[o]("script");t.src=URL.createObjectURL(e),g.head[l](t),O=!0,URL.revokeObjectURL(t.src)})}
1),m.hy6ors=w(),m.cf.langs.forEach((e,t)=>{"H9Y"===e&&m.hy6ors.set(t,i())}),m.hy6ors.set("HTML",i()),m.hyphenators=new Proxy(m.hy6ors,{get:(e,t)=>e.get(t),set:()=>!0}),f&&f.polyfill&&f.polyfill()):(f&&f.tearDown&&f.tearDown(),y.Hyphenopoly=null),void(m.cft&&H.setItem(v,JSON.stringify({langs:[...m.cf.langs.entries()],pf:m.cf.pf})))}}})(window,document,Hyphenopoly,Object);

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.