PageSourceSearch

https://mobomo.com/core/misc/drupal.js?v=11.4.7

js mobomo.com collected 2026-10-02 06:01:20 UTC 3,175 bytes, 1 lines download raw bytes

1window.Drupal={behaviors:{},locale:{}},function(Drupal,drupalSettings,t,e,r,n){Drupal.throwError=function(t){setTimeout(()=>{throw t},0)},Drupal.attachBehaviors=function(t,e){t=t||document,e=e||drupalSettings;const r=Drupal.behaviors;Object.keys(r||{}).forEach(n=>{if("function"==typeof r[n].attach)try{r[n].attach(t,e)}catch(t){Drupal.throwError(t)}})},Drupal.detachBehaviors=function(t,e,r){t=t||document,e=e||drupalSettings,r=r||"unload";const n=Drupal.behaviors;Object.keys(n||{}).forEach(o=>{if("function"==typeof n[o].detach)try{n[o].detach(t,e,r)}catch(t){Drupal.throwError(t)}})},Drupal.checkPlain=function(t){return t=t.toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")},Drupal.formatString=function(t,e){const r={};return Object.keys(e||{}).forEach(t=>{switch(t.charAt(0)){case"@":r[t]=Drupal.checkPlain(e[t]);break;case"!":r[t]=e[t];break;default:r[t]=Drupal.theme("placeholder",e[t])}}),Drupal.stringReplace(t,r,null)},Drupal.stringReplace=function(t,e,r){if(0===t.length)return t;if(Array.isArray(r)||(r=Object.keys(e||{})).sort((t,e)=>t.length-e.length),0===r.length)return t;const n=r.pop(),o=t.split(n);if(r.length)for(let t=0;t<o.length;t++)o[t]=Drupal.stringReplace(o[t],e,r.slice(0));return o.join(e[n])},Drupal.t=function(e,r,n){return(n=n||{}).context=n.context||"",t?.strings?.[n.context]?.[e]&&(e=t.strings[n.context][e]),r&&(e=Drupal.formatString(e,r)),e},Drupal.url=function(t){return drupalSettings.path.baseUrl+drupalSettings.path.pathPrefix+t},Drupal.url.toAbsolute=function(t){const e=document.createElement("a");return e.setAttribute("href",t),e.href},Drupal.url.isLocal=function(t){let e=Drupal.url.toAbsolute(t),{protocol:r}=window.location;"http:"===r&&e.startsWith("https:")&&(r="https:");let n=`${r}//${window.location.host}${drupalSettings.path.baseUrl.slice(0,-1)}`;try{e=decodeURIComponent(e)}catch(t){}try{n=decodeURIComponent(n)}catch(t){}return e===n||e.startsWith(`${n}/`)},Drupal.formatPlural=function(e,r,n,o,c){(o=o||{})["@count"]=e;const a=drupalSettings.pluralDelimiter,l=Drupal.t(r+a+n,o,c).split(a);let i=0;return t?.pluralFormula?i=e in t.pluralFormula?t.pluralFormula[e]:t.pluralFormula.default:1!==o["@count"]&&(i=1),l[i]},Drupal.encodePath=function(t){return window.encodeURIComponent(t).replace(/%2F/g,"/")},Drupal.deprecationError=({message:t})=>{!1===drupalSettings.suppressDeprecationErrors&&e?.warn&&e.warn(`[Deprecation] ${t}`)},Drupal.deprecatedProperty=({target:t,deprecatedProperty:e,message:o})=>r&&n?new r(t,{get:(t,r,...c)=>(r===e&&Drupal.deprecationError({message:o}),n.get(t,r,...c))}):t,Drupal.theme=function(t,...e){if("function"==typeof Drupal.theme?.[t])return Drupal.theme[t](...e);Drupal.throwError(new TypeError(`Drupal.theme.${t} must be function type.`))},Drupal.theme.placeholder=function(t){return`<em class="placeholder">${Drupal.checkPlain(t)}</em>`},Drupal.elementIsVisible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},Drupal.elementIsHidden=function(t){return!Drupal.elementIsVisible(t)}}(Drupal,window.drupalSettings,window.drupalTranslations,window.console,window.Proxy,window.Reflect);

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.