diff --git a/api/hdate/assets/icons.js b/api/hdate/assets/icons.js index e88e8ca..3dfbd32 100644 --- a/api/hdate/assets/icons.js +++ b/api/hdate/assets/icons.js @@ -3,7 +3,7 @@ function addIcons() { if (document.readyState === "loading") return document.addEventListener("DOMContentLoaded", addIcons); const svg = document.body.appendChild(document.createElementNS("http://www.w3.org/2000/svg", "svg")); - svg.innerHTML = `""`; + svg.innerHTML = `MMNEPVFCICPMFPCPTTAAATR`; svg.style.display = "none"; if (location.protocol === "file:") updateUseElements(); } diff --git a/api/hdate/assets/icons.svg b/api/hdate/assets/icons.svg index e371b8b..a19417d 100644 --- a/api/hdate/assets/icons.svg +++ b/api/hdate/assets/icons.svg @@ -1 +1 @@ - \ No newline at end of file +MMNEPVFCICPMFPCPTTAAATR \ No newline at end of file diff --git a/api/hdate/assets/main.js b/api/hdate/assets/main.js index 3572881..99097a0 100644 --- a/api/hdate/assets/main.js +++ b/api/hdate/assets/main.js @@ -3,7 +3,7 @@ window.translations={"copy":"Copy","copied":"Copied!","normally_hidden":"This me "use strict";(()=>{var Pe=Object.create;var ie=Object.defineProperty;var Oe=Object.getOwnPropertyDescriptor;var _e=Object.getOwnPropertyNames;var Re=Object.getPrototypeOf,Me=Object.prototype.hasOwnProperty;var Fe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var De=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of _e(e))!Me.call(t,i)&&i!==n&&ie(t,i,{get:()=>e[i],enumerable:!(r=Oe(e,i))||r.enumerable});return t};var Ae=(t,e,n)=>(n=t!=null?Pe(Re(t)):{},De(e||!t||!t.__esModule?ie(n,"default",{value:t,enumerable:!0}):n,t));var ue=Fe((ae,le)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var d=t.utils.clone(n)||{};d.position=[a,u],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. `,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(n+=r[u+1]*i[d+1],u+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),m=s.str.charAt(1),p;m in s.node.edges?p=s.node.edges[m]:(p=new t.TokenSet,s.node.edges[m]=p),s.str.length==1&&(p.final=!0),i.push({node:p,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof ae=="object"?le.exports=n():e.lunr=n()}(this,function(){return t})})()});var se=[];function G(t,e){se.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible()),document.body.style.display||(this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}createComponents(e){se.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}showPage(){document.body.style.display&&(document.body.style.removeProperty("display"),this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}scrollToHash(){if(location.hash){let e=document.getElementById(location.hash.substring(1));if(!e)return;e.scrollIntoView({behavior:"instant",block:"start"})}}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e&&!Ve(e)){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r,document.querySelector(".col-sidebar").scrollTop=r}}updateIndexVisibility(){let e=document.querySelector(".tsd-index-content"),n=e?.open;e&&(e.open=!0),document.querySelectorAll(".tsd-index-section").forEach(r=>{r.style.display="block";let i=Array.from(r.querySelectorAll(".tsd-index-link")).every(s=>s.offsetParent==null);r.style.display=i?"none":"block"}),e&&(e.open=n)}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(!n)return;let r=n.offsetParent==null,i=n;for(;i!==document.body;)i instanceof HTMLDetailsElement&&(i.open=!0),i=i.parentElement;if(n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let s=document.createElement("p");s.classList.add("warning"),s.textContent=window.translations.normally_hidden,n.prepend(s)}r&&e.scrollIntoView()}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent=window.translations.copied,e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent=window.translations.copy},100)},1e3)})})}};function Ve(t){let e=t.getBoundingClientRect(),n=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(e.bottom<0||e.top-n>=0)}var oe=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var pe=Ae(ue());async function ce(t,e){if(!window.searchData)return;let n=await fetch(window.searchData),r=new Blob([await n.arrayBuffer()]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();t.data=i,t.index=pe.Index.load(i.index),e.classList.remove("loading"),e.classList.add("ready")}function fe(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:t.dataset.base+"/"},n=document.getElementById("tsd-search-script");t.classList.add("loading"),n&&(n.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),n.addEventListener("load",()=>{ce(e,t)}),ce(e,t));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");i.addEventListener("mouseup",()=>{te(t)}),r.addEventListener("focus",()=>t.classList.add("has-focus")),He(t,i,r,e)}function He(t,e,n,r){n.addEventListener("input",oe(()=>{Ne(t,e,n,r)},200)),n.addEventListener("keydown",i=>{i.key=="Enter"?Be(e,t):i.key=="ArrowUp"?(de(e,n,-1),i.preventDefault()):i.key==="ArrowDown"&&(de(e,n,1),i.preventDefault())}),document.body.addEventListener("keypress",i=>{i.altKey||i.ctrlKey||i.metaKey||!n.matches(":focus")&&i.key==="/"&&(i.preventDefault(),n.focus())}),document.body.addEventListener("keyup",i=>{t.classList.contains("has-focus")&&(i.key==="Escape"||!e.matches(":focus-within")&&!n.matches(":focus"))&&(n.blur(),te(t))})}function te(t){t.classList.remove("has-focus")}function Ne(t,e,n,r){if(!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s;if(i){let o=i.split(" ").map(a=>a.length?`*${a}*`:"").join(" ");s=r.index.search(o)}else s=[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o`,d=he(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` ${he(l.parent,i)}.${d}`);let m=document.createElement("li");m.classList.value=l.classes??"";let p=document.createElement("a");p.href=r.base+l.url,p.innerHTML=u+d,m.append(p),p.addEventListener("focus",()=>{e.querySelector(".current")?.classList.remove("current"),m.classList.add("current")}),e.appendChild(m)}}function de(t,e,n){let r=t.querySelector(".current");if(!r)r=t.querySelector(n==1?"li:first-child":"li:last-child"),r&&r.classList.add("current");else{let i=r;if(n===1)do i=i.nextElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);else do i=i.previousElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);i?(r.classList.remove("current"),i.classList.add("current")):n===-1&&(r.classList.remove("current"),e.focus())}}function Be(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),te(e)}}function he(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(ee(t.substring(s,o)),`${ee(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(ee(t.substring(s))),i.join("")}var je={"&":"&","<":"<",">":">","'":"'",'"':"""};function ee(t){return t.replace(/[&<>"'"]/g,e=>je[e])}var I=class{constructor(e){this.el=e.el,this.app=e.app}};var F="mousedown",ye="mousemove",N="mouseup",J={x:0,y:0},me=!1,ne=!1,qe=!1,D=!1,ve=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(ve?"is-mobile":"not-mobile");ve&&"ontouchstart"in document.documentElement&&(qe=!0,F="touchstart",ye="touchmove",N="touchend");document.addEventListener(F,t=>{ne=!0,D=!1;let e=F=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(ye,t=>{if(ne&&!D){let e=F=="touchstart"?t.targetTouches[0]:t,n=J.x-(e.pageX||0),r=J.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(N,()=>{ne=!1});document.addEventListener("click",t=>{me&&(t.preventDefault(),t.stopImmediatePropagation(),me=!1)});var X=class extends I{constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(N,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(F,n=>this.onDocumentPointerDown(n)),document.addEventListener(N,n=>this.onDocumentPointerUp(n))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(e){D||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!D&&this.active&&e.target.closest(".col-sidebar")){let n=e.target.closest("a");if(n){let r=window.location.href;r.indexOf("#")!=-1&&(r=r.substring(0,r.indexOf("#"))),n.href.substring(0,r.length)==r&&setTimeout(()=>this.setActive(!1),250)}}}};var re;try{re=localStorage}catch{re={getItem(){return null},setItem(){}}}var Q=re;var ge=document.head.appendChild(document.createElement("style"));ge.dataset.for="filters";var Y=class extends I{constructor(e){super(e),this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),ge.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } -`,this.app.updateIndexVisibility()}fromLocalStorage(){let e=Q.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){Q.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),this.app.updateIndexVisibility()}};var Z=class extends I{constructor(e){super(e),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let n=Q.getItem(this.key);this.el.open=n?n==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let r=this.summary.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.href)}),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function Ee(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,xe(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),xe(t.value)})}function xe(t){document.documentElement.dataset.theme=t}var K;function we(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",Le),Le())}async function Le(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let n=await(await fetch(window.navigationData)).arrayBuffer(),r=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();K=t.dataset.base,K.endsWith("/")||(K+="/"),t.innerHTML="";for(let s of i)Se(s,t,[]);window.app.createComponents(t),window.app.showPage(),window.app.ensureActivePageVisible()}function Se(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-accordion`:"tsd-accordion";let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.dataset.key=i.join("$"),o.innerHTML='',be(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let u of t.children)Se(u,l,i)}else be(t,r,t.class)}function be(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=K+t.path,n&&(r.className=n),location.pathname===r.pathname&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else e.appendChild(document.createElement("span")).textContent=t.text}G(X,"a[data-toggle]");G(Z,".tsd-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var Te=document.getElementById("tsd-theme");Te&&Ee(Te);var $e=new U;Object.defineProperty(window,"app",{value:$e});fe();we();})(); +`,this.app.updateIndexVisibility()}fromLocalStorage(){let e=Q.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){Q.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),this.app.updateIndexVisibility()}};var Z=class extends I{constructor(e){super(e),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let n=Q.getItem(this.key);this.el.open=n?n==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let r=this.summary.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.href)}),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function Ee(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,xe(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),xe(t.value)})}function xe(t){document.documentElement.dataset.theme=t}var K;function we(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",Le),Le())}async function Le(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let n=await(await fetch(window.navigationData)).arrayBuffer(),r=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();K=t.dataset.base,K.endsWith("/")||(K+="/"),t.innerHTML="";for(let s of i)Se(s,t,[]);window.app.createComponents(t),window.app.showPage(),window.app.ensureActivePageVisible()}function Se(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-accordion`:"tsd-accordion";let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.dataset.key=i.join("$"),o.innerHTML='',be(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let u of t.children)Se(u,l,i)}else be(t,r,t.class)}function be(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=K+t.path,n&&(r.className=n),location.pathname===r.pathname&&!r.href.includes("#")&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else{let r=e.appendChild(document.createElement("span"));r.innerHTML='',r.appendChild(document.createElement("span")).textContent=t.text}}G(X,"a[data-toggle]");G(Z,".tsd-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var Te=document.getElementById("tsd-theme");Te&&Ee(Te);var $e=new U;Object.defineProperty(window,"app",{value:$e});fe();we();})(); /*! Bundled license information: lunr/lunr.js: diff --git a/api/hdate/assets/style.css b/api/hdate/assets/style.css index 9d619a6..178bfb0 100644 --- a/api/hdate/assets/style.css +++ b/api/hdate/assets/style.css @@ -4,11 +4,17 @@ --light-color-background-secondary: #eff0f1; --light-color-warning-text: #222; --light-color-background-warning: #e6e600; - --light-color-icon-background: var(--light-color-background); --light-color-accent: #c5c7c9; --light-color-active-menu-item: var(--light-color-accent); --light-color-text: #222; --light-color-text-aside: #6e6e6e; + + --light-color-icon-background: var(--light-color-background); + --light-color-icon-text: var(--light-color-text); + + --light-color-comment-tag-text: var(--light-color-text); + --light-color-comment-tag: var(--light-color-background); + --light-color-link: #1f70c2; --light-color-focus-outline: #3584e4; @@ -22,16 +28,17 @@ --light-color-ts-function: #572be7; --light-color-ts-class: #1f70c2; --light-color-ts-interface: #108024; - --light-color-ts-constructor: var(--light-color-ts-class); - --light-color-ts-property: var(--light-color-ts-variable); - --light-color-ts-method: var(--light-color-ts-function); + --light-color-ts-constructor: #4d7fff; + --light-color-ts-property: #ff984d; + --light-color-ts-method: #ff4db8; + --light-color-ts-reference: #ff4d82; --light-color-ts-call-signature: var(--light-color-ts-method); --light-color-ts-index-signature: var(--light-color-ts-property); --light-color-ts-constructor-signature: var(--light-color-ts-constructor); --light-color-ts-parameter: var(--light-color-ts-variable); /* type literal not included as links will never be generated to it */ --light-color-ts-type-parameter: #a55c0e; - --light-color-ts-accessor: var(--light-color-ts-property); + --light-color-ts-accessor: #ff4d4d; --light-color-ts-get-signature: var(--light-color-ts-accessor); --light-color-ts-set-signature: var(--light-color-ts-accessor); --light-color-ts-type-alias: #d51270; @@ -46,11 +53,17 @@ --dark-color-background-secondary: #1e2024; --dark-color-background-warning: #bebe00; --dark-color-warning-text: #222; - --dark-color-icon-background: var(--dark-color-background-secondary); --dark-color-accent: #9096a2; --dark-color-active-menu-item: #5d5d6a; --dark-color-text: #f5f5f5; --dark-color-text-aside: #dddddd; + + --dark-color-icon-background: var(--dark-color-background-secondary); + --dark-color-icon-text: var(--dark-color-text); + + --dark-color-comment-tag-text: var(--dark-color-text); + --dark-color-comment-tag: var(--dark-color-background); + --dark-color-link: #00aff4; --dark-color-focus-outline: #4c97f2; @@ -64,16 +77,17 @@ --dark-color-ts-function: #a280ff; --dark-color-ts-class: #8ac4ff; --dark-color-ts-interface: #6cff87; - --dark-color-ts-constructor: var(--dark-color-ts-class); - --dark-color-ts-property: var(--dark-color-ts-variable); - --dark-color-ts-method: var(--dark-color-ts-function); + --dark-color-ts-constructor: #4d7fff; + --dark-color-ts-property: #ff984d; + --dark-color-ts-method: #ff4db8; + --dark-color-ts-reference: #ff4d82; --dark-color-ts-call-signature: var(--dark-color-ts-method); --dark-color-ts-index-signature: var(--dark-color-ts-property); --dark-color-ts-constructor-signature: var(--dark-color-ts-constructor); --dark-color-ts-parameter: var(--dark-color-ts-variable); /* type literal not included as links will never be generated to it */ --dark-color-ts-type-parameter: #e07d13; - --dark-color-ts-accessor: var(--dark-color-ts-property); + --dark-color-ts-accessor: #ff4d4d; --dark-color-ts-get-signature: var(--dark-color-ts-accessor); --dark-color-ts-set-signature: var(--dark-color-ts-accessor); --dark-color-ts-type-alias: #ff6492; @@ -90,15 +104,22 @@ --color-background-secondary: var(--light-color-background-secondary); --color-background-warning: var(--light-color-background-warning); --color-warning-text: var(--light-color-warning-text); - --color-icon-background: var(--light-color-icon-background); --color-accent: var(--light-color-accent); --color-active-menu-item: var(--light-color-active-menu-item); --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); + + --color-icon-background: var(--light-color-icon-background); + --color-icon-text: var(--light-color-icon-text); + + --color-comment-tag-text: var(--light-color-text); + --color-comment-tag: var(--light-color-background); + --color-link: var(--light-color-link); --color-focus-outline: var(--light-color-focus-outline); --color-ts-keyword: var(--light-color-ts-keyword); + --color-ts-project: var(--light-color-ts-project); --color-ts-module: var(--light-color-ts-module); --color-ts-namespace: var(--light-color-ts-namespace); --color-ts-enum: var(--light-color-ts-enum); @@ -110,6 +131,7 @@ --color-ts-constructor: var(--light-color-ts-constructor); --color-ts-property: var(--light-color-ts-property); --color-ts-method: var(--light-color-ts-method); + --color-ts-reference: var(--light-color-ts-reference); --color-ts-call-signature: var(--light-color-ts-call-signature); --color-ts-index-signature: var(--light-color-ts-index-signature); --color-ts-constructor-signature: var( @@ -134,15 +156,22 @@ --color-background-secondary: var(--dark-color-background-secondary); --color-background-warning: var(--dark-color-background-warning); --color-warning-text: var(--dark-color-warning-text); - --color-icon-background: var(--dark-color-icon-background); --color-accent: var(--dark-color-accent); --color-active-menu-item: var(--dark-color-active-menu-item); --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); + + --color-icon-background: var(--dark-color-icon-background); + --color-icon-text: var(--dark-color-icon-text); + + --color-comment-tag-text: var(--dark-color-text); + --color-comment-tag: var(--dark-color-background); + --color-link: var(--dark-color-link); --color-focus-outline: var(--dark-color-focus-outline); --color-ts-keyword: var(--dark-color-ts-keyword); + --color-ts-project: var(--dark-color-ts-project); --color-ts-module: var(--dark-color-ts-module); --color-ts-namespace: var(--dark-color-ts-namespace); --color-ts-enum: var(--dark-color-ts-enum); @@ -154,6 +183,7 @@ --color-ts-constructor: var(--dark-color-ts-constructor); --color-ts-property: var(--dark-color-ts-property); --color-ts-method: var(--dark-color-ts-method); + --color-ts-reference: var(--dark-color-ts-reference); --color-ts-call-signature: var(--dark-color-ts-call-signature); --color-ts-index-signature: var(--dark-color-ts-index-signature); --color-ts-constructor-signature: var( @@ -190,10 +220,16 @@ body { --color-active-menu-item: var(--light-color-active-menu-item); --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); + --color-icon-text: var(--light-color-icon-text); + + --color-comment-tag-text: var(--light-color-text); + --color-comment-tag: var(--light-color-background); + --color-link: var(--light-color-link); --color-focus-outline: var(--light-color-focus-outline); --color-ts-keyword: var(--light-color-ts-keyword); + --color-ts-project: var(--light-color-ts-project); --color-ts-module: var(--light-color-ts-module); --color-ts-namespace: var(--light-color-ts-namespace); --color-ts-enum: var(--light-color-ts-enum); @@ -205,6 +241,7 @@ body { --color-ts-constructor: var(--light-color-ts-constructor); --color-ts-property: var(--light-color-ts-property); --color-ts-method: var(--light-color-ts-method); + --color-ts-reference: var(--light-color-ts-reference); --color-ts-call-signature: var(--light-color-ts-call-signature); --color-ts-index-signature: var(--light-color-ts-index-signature); --color-ts-constructor-signature: var( @@ -232,10 +269,16 @@ body { --color-active-menu-item: var(--dark-color-active-menu-item); --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); + --color-icon-text: var(--dark-color-icon-text); + + --color-comment-tag-text: var(--dark-color-text); + --color-comment-tag: var(--dark-color-background); + --color-link: var(--dark-color-link); --color-focus-outline: var(--dark-color-focus-outline); --color-ts-keyword: var(--dark-color-ts-keyword); + --color-ts-project: var(--dark-color-ts-project); --color-ts-module: var(--dark-color-ts-module); --color-ts-namespace: var(--dark-color-ts-namespace); --color-ts-enum: var(--dark-color-ts-enum); @@ -247,6 +290,7 @@ body { --color-ts-constructor: var(--dark-color-ts-constructor); --color-ts-property: var(--dark-color-ts-property); --color-ts-method: var(--dark-color-ts-method); + --color-ts-reference: var(--dark-color-ts-reference); --color-ts-call-signature: var(--dark-color-ts-call-signature); --color-ts-index-signature: var(--dark-color-ts-index-signature); --color-ts-constructor-signature: var( @@ -439,7 +483,6 @@ pre { pre { position: relative; - white-space: pre; white-space: pre-wrap; word-wrap: break-word; padding: 10px; @@ -860,6 +903,12 @@ a.tsd-index-link { margin-bottom: 0.75rem; } +.tsd-no-select { + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} .tsd-kind-icon { margin-right: 0.5rem; width: 1.25rem; @@ -867,10 +916,6 @@ a.tsd-index-link { min-width: 1.25rem; min-height: 1.25rem; } -.tsd-kind-icon path { - transform-origin: center; - transform: scale(1.1); -} .tsd-signature > .tsd-kind-icon { margin-right: 0.8rem; } @@ -1242,6 +1287,9 @@ img { .tsd-kind-method { color: var(--color-ts-method); } +.tsd-kind-reference { + color: var(--color-ts-reference); +} .tsd-kind-call-signature { color: var(--color-ts-call-signature); } @@ -1254,9 +1302,6 @@ img { .tsd-kind-parameter { color: var(--color-ts-parameter); } -.tsd-kind-type-literal { - color: var(--color-ts-type-literal); -} .tsd-kind-type-parameter { color: var(--color-ts-type-parameter); } @@ -1435,7 +1480,7 @@ img { } .site-menu { - margin-top: 1rem 0; + margin-top: 1rem; } .page-menu, diff --git a/api/hdate/classes/HDate.html b/api/hdate/classes/HDate.html index b5dbf17..f08654a 100644 --- a/api/hdate/classes/HDate.html +++ b/api/hdate/classes/HDate.html @@ -10,11 +10,11 @@

This class uses Rata Die to convert between the Hebrew and Gregorian calendars.

To calculate times of day, use Zmanim class from @hebcal/core

-
    +

Constructors

Constructors

Properties

dd mm rd? @@ -78,21 +78,21 @@ If an HDate is specified, clones a copy of the given Hebrew date.

  • Optionalmonth: string | number

    Hebrew month of year (1=NISAN, 7=TISHREI)

  • Optionalyear: number

    Hebrew year

    -
  • Returns HDate

    import {HDate, months} from '@hebcal/hdate';

    const hd1 = new HDate();
    const hd2 = new HDate(new Date(2008, 10, 13));
    const hd3 = new HDate(15, 'Cheshvan', 5769);
    const hd4 = new HDate(15, months.CHESHVAN, 5769);
    const hd5 = new HDate(733359); // ==> 15 Cheshvan 5769
    const monthName = 'אייר';
    const hd6 = new HDate(5, monthName, 5773); +

    Returns HDate

    import {HDate, months} from '@hebcal/hdate';

    const hd1 = new HDate();
    const hd2 = new HDate(new Date(2008, 10, 13));
    const hd3 = new HDate(15, 'Cheshvan', 5769);
    const hd4 = new HDate(15, months.CHESHVAN, 5769);
    const hd5 = new HDate(733359); // ==> 15 Cheshvan 5769
    const monthName = 'אייר';
    const hd6 = new HDate(5, monthName, 5773);
    -

    Properties

    dd: number

    Hebrew day within the month (1-30)

    -
    mm: number

    Hebrew month of year (1=NISAN, 7=TISHREI)

    -
    rd?: number

    absolute Rata Die (R.D.) days

    -
    yy: number

    Hebrew year, 1-9999

    -

    Methods

    • Converts from Hebrew date representation to R.D. (Rata Die) fixed days. +

    Properties

    dd: number

    Hebrew day within the month (1-30)

    +
    mm: number

    Hebrew month of year (1=NISAN, 7=TISHREI)

    +
    rd?: number

    absolute Rata Die (R.D.) days

    +
    yy: number

    Hebrew year, 1-9999

    +

    Methods

    • Converts from Hebrew date representation to R.D. (Rata Die) fixed days. R.D. 1 is the imaginary date Monday, January 1, 1 (Gregorian). Note also that R.D. = Julian Date − 1,721,424.5

      -

      Returns number

      Rata Die

      -
      const hd = new HDate(15, 'Cheshvan', 5769);
      hd.abs(); // 733359 +

      Returns number

      const hd = new HDate(15, 'Cheshvan', 5769);
      hd.abs(); // 733359
      -
    • Returns a cloned HDate object with a specified amount of time added

      +
    • Returns an HDate corresponding to the specified day of week +

      Parameters

      • amount: string | number
      • units: string = 'd'

      Returns HDate

    • Returns an HDate corresponding to the specified day of week after this Hebrew date

      Parameters

      • dayOfWeek: number

        day of week: Sunday=0, Saturday=6

        -

      Returns HDate

      new HDate(new Date('Wednesday February 19, 2014')).after(6).greg() // Sat Feb 22 2014
      new HDate(new Date('Saturday February 22, 2014')).after(6).greg() // Sat Mar 01 2014
      new HDate(new Date('Sunday February 23, 2014')).after(6).greg() // Sat Mar 01 2014 +

    Returns HDate

    new HDate(new Date('Wednesday February 19, 2014')).after(6).greg() // Sat Feb 22 2014
    new HDate(new Date('Saturday February 22, 2014')).after(6).greg() // Sat Mar 01 2014
    new HDate(new Date('Sunday February 23, 2014')).after(6).greg() // Sat Mar 01 2014
    -
    • Returns an HDate corresponding to the specified day of week +

    • Returns an HDate corresponding to the specified day of week before this Hebrew date

      Parameters

      • dayOfWeek: number

        day of week: Sunday=0, Saturday=6

        -

      Returns HDate

      new HDate(new Date('Wednesday February 19, 2014')).before(6).greg() // Sat Feb 15 2014
      +

    Returns HDate

    new HDate(new Date('Wednesday February 19, 2014')).before(6).greg() // Sat Feb 15 2014
     
    -
    • Number of days in the month of this Hebrew date (29 or 30)

      +
    • Number of days in the month of this Hebrew date (29 or 30)

      Returns number

      an integer 29-30

      -
      const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
      hd.daysInMonth(); // 29 +
      const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
      hd.daysInMonth(); // 29
      -
    • Returns the difference in days between the two given HDates.

      +
    • Returns the difference in days between the two given HDates.

      The result is positive if this date is comes chronologically after the other date, and negative if the order of the two dates is reversed.

      The result is zero if the two dates are identical.

      Parameters

      • other: HDate

        Hebrew date to compare

        -

      Returns number

      import {HDate, months} from '@hebcal/hdate';

      const hd1 = new HDate(25, months.KISLEV, 5770);
      const hd2 = new HDate(15, months.CHESHVAN, 5769);
      const days = hd1.deltaDays(hd2); // 394 +

    Returns number

    import {HDate, months} from '@hebcal/hdate';

    const hd1 = new HDate(25, months.KISLEV, 5770);
    const hd2 = new HDate(15, months.CHESHVAN, 5769);
    const days = hd1.deltaDays(hd2); // 394
    -
    • Gets the day within the month (1-30)

      +
    • Gets the day within the month (1-30)

      Returns number

      an integer 1-30

      -
      const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
      hd.getDate(); // 15 +
      const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
      hd.getDate(); // 15
      -
    • Returns the day of the week for this Hebrew date, +

    • Returns the day of the week for this Hebrew date, where 0 represents Sunday, 1 represents Monday, 6 represents Saturday.

      For the day of the month, see getDate()

      Returns number

      an integer 0-6

      -
      const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
      hd.getDate(); // 4 +
      const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
      hd.getDate(); // 4
      -
    • Returns the Hebrew year of this Hebrew date

      +
    • Returns the Hebrew year of this Hebrew date

      Returns number

      an integer >= 1

      -
      const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
      hd.getFullYear(); // 5769 +
      const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
      hd.getFullYear(); // 5769
      -
    • Returns the Hebrew month (1=NISAN, 7=TISHREI) of this Hebrew date

      +
    • Returns the Hebrew month (1=NISAN, 7=TISHREI) of this Hebrew date

      Returns number

      an integer 1-13

      -
      const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
      hd.getMonth(); // 8 +
      const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
      hd.getMonth(); // 8
      -
    • Returns a transliterated Hebrew month name, e.g. 'Elul' or 'Cheshvan'.

      -

      Returns string

      const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
      hd.getMonthName(); // 'Cheshvan' +
    • Returns a transliterated Hebrew month name, e.g. 'Elul' or 'Cheshvan'.

      +

      Returns string

      const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
      hd.getMonthName(); // 'Cheshvan'
      -
    • The Tishrei-based month of this Hebrew date. 1 is Tishrei, 7 is Nisan, 13 is Elul in a leap year

      +
    • The Tishrei-based month of this Hebrew date. 1 is Tishrei, 7 is Nisan, 13 is Elul in a leap year

      Returns number

      an integer 1-13

      -
      const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
      hd.getTishreiMonth(); // 2 +
      const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
      hd.getTishreiMonth(); // 2
      -
    • Converts this Hebrew date to the corresponding Gregorian date. +

    • Converts this Hebrew date to the corresponding Gregorian date. Note that this function returns the daytime portion of the date. For example, the 15th of Cheshvan 5769 began at sundown on 12 November 2008 and continues through 13 November 2008. This function would return only the date 13 November 2008.

      -

      Returns Date

      const hd = new HDate(15, 'Cheshvan', 5769);
      hd.greg(); // 13 November 2008 +

      Returns Date

      const hd = new HDate(15, 'Cheshvan', 5769);
      hd.greg(); // 13 November 2008
      -
    • Returns true if this Hebrew date occurs during a Hebrew leap year

      -

      Returns boolean

      const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
      hd.isLeapYear(); // false +
    • Returns true if this Hebrew date occurs during a Hebrew leap year

      +

      Returns boolean

      const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
      hd.isLeapYear(); // false
      -
    • Compares this Hebrew date to another date, returning true if the dates match.

      +
    • Compares this Hebrew date to another date, returning true if the dates match.

      Parameters

      • other: HDate

        Hebrew date to compare

        -

      Returns boolean

      const hd1 = new HDate(new Date(2008, 10, 13));
      const hd2 = new HDate(15, 'Cheshvan', 5769);
      hd1.isSameDate(hd2); // true +

    Returns boolean

    const hd1 = new HDate(new Date(2008, 10, 13));
    const hd2 = new HDate(15, 'Cheshvan', 5769);
    hd1.isSameDate(hd2); // true
    -
    • Returns an HDate corresponding to the specified day of week +

    • Returns an HDate corresponding to the specified day of week nearest to this Hebrew date

      Parameters

      • dayOfWeek: number

        day of week: Sunday=0, Saturday=6

        -

      Returns HDate

      new HDate(new Date('Wednesday February 19, 2014')).nearest(6).greg() // Sat Feb 22 2014
      new HDate(new Date('Tuesday February 18, 2014')).nearest(6).greg() // Sat Feb 15 2014 +

    Returns HDate

    new HDate(new Date('Wednesday February 19, 2014')).nearest(6).greg() // Sat Feb 22 2014
    new HDate(new Date('Tuesday February 18, 2014')).nearest(6).greg() // Sat Feb 15 2014
    -
    • Returns the next Hebrew date

      -

      Returns HDate

      const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
      hd.next(); // '16 Cheshvan 5769' +
    • Returns the next Hebrew date

      +

      Returns HDate

      const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
      hd.next(); // '16 Cheshvan 5769'
      -
    • Returns an HDate corresponding to the specified day of week +

    • Returns an HDate corresponding to the specified day of week on or after this Hebrew date

      Parameters

      • dayOfWeek: number

        day of week: Sunday=0, Saturday=6

        -

      Returns HDate

      new HDate(new Date('Wednesday February 19, 2014')).onOrAfter(6).greg() // Sat Feb 22 2014
      new HDate(new Date('Saturday February 22, 2014')).onOrAfter(6).greg() // Sat Feb 22 2014
      new HDate(new Date('Sunday February 23, 2014')).onOrAfter(6).greg() // Sat Mar 01 2014 +

    Returns HDate

    new HDate(new Date('Wednesday February 19, 2014')).onOrAfter(6).greg() // Sat Feb 22 2014
    new HDate(new Date('Saturday February 22, 2014')).onOrAfter(6).greg() // Sat Feb 22 2014
    new HDate(new Date('Sunday February 23, 2014')).onOrAfter(6).greg() // Sat Mar 01 2014
    -
    • Returns an HDate corresponding to the specified day of week +

    • Returns an HDate corresponding to the specified day of week on or before this Hebrew date

      Parameters

      • dayOfWeek: number

        day of week: Sunday=0, Saturday=6

        -

      Returns HDate

      new HDate(new Date('Wednesday February 19, 2014')).onOrBefore(6).greg() // Sat Feb 15 2014
      new HDate(new Date('Saturday February 22, 2014')).onOrBefore(6).greg() // Sat Feb 22 2014
      new HDate(new Date('Sunday February 23, 2014')).onOrBefore(6).greg() // Sat Feb 22 2014 +

    Returns HDate

    new HDate(new Date('Wednesday February 19, 2014')).onOrBefore(6).greg() // Sat Feb 15 2014
    new HDate(new Date('Saturday February 22, 2014')).onOrBefore(6).greg() // Sat Feb 22 2014
    new HDate(new Date('Sunday February 23, 2014')).onOrBefore(6).greg() // Sat Feb 22 2014
    -
    • Returns the previous Hebrew date

      -

      Returns HDate

      const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
      hd.prev(); // '14 Cheshvan 5769' +
    • Returns the previous Hebrew date

      +

      Returns HDate

      const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
      hd.prev(); // '14 Cheshvan 5769'
      -
    • Renders this Hebrew date as a translated or transliterated string, +

    • Renders this Hebrew date as a translated or transliterated string, including ordinal e.g. '15th of Cheshvan, 5769'.

      Parameters

      • Optionallocale: string

        Optional locale name (defaults to active locale).

      • OptionalshowYear: boolean = true

        Display year (defaults to true).

        -

      Returns string

      import {HDate, months} from '@hebcal/hdate';

      const hd = new HDate(15, months.CHESHVAN, 5769);
      console.log(hd.render('en')); // '15th of Cheshvan, 5769'
      console.log(hd.render('he')); // '15 חֶשְׁוָן, 5769'
      console.log(hd.render('en', false)); // '15th of Cheshvan'
      console.log(hd.render('he', false)); // '15 חֶשְׁוָן' +

    Returns string

    import {HDate, months} from '@hebcal/hdate';

    const hd = new HDate(15, months.CHESHVAN, 5769);
    console.log(hd.render('en')); // '15th of Cheshvan, 5769'
    console.log(hd.render('he')); // '15 חֶשְׁוָן, 5769'
    console.log(hd.render('en', false)); // '15th of Cheshvan'
    console.log(hd.render('he', false)); // '15 חֶשְׁוָן'
    -

    Locale

    -
    • Renders this Hebrew date in Hebrew gematriya, regardless of locale.

      -

      Parameters

      • suppressNikud: boolean = false

      Returns string

      import {HDate, months} from '@hebcal/hdate';
      const hd = new HDate(15, months.CHESHVAN, 5769);
      hd.renderGematriya(); // 'ט״ו חֶשְׁוָן תשס״ט'
      hd.renderGematriya(true); // 'ט״ו חשון תשס״ט' +

      Locale

      +
    • Renders this Hebrew date in Hebrew gematriya, regardless of locale.

      +

      Parameters

      • suppressNikud: boolean = false

      Returns string

      import {HDate, months} from '@hebcal/hdate';
      const hd = new HDate(15, months.CHESHVAN, 5769);
      hd.renderGematriya(); // 'ט״ו חֶשְׁוָן תשס״ט'
      hd.renderGematriya(true); // 'ט״ו חשון תשס״ט'
      -
    • Returns a cloned HDate object with a specified amount of time subracted

      +
    • Returns a cloned HDate object with a specified amount of time subracted

      Units are case insensitive, and support plural and short forms. Note, short forms are case sensitive.

      @@ -272,84 +272,84 @@

      Returns HDate

      import {HDate, months} from '@hebcal/hdate';

      const hd1 = new HDate(15, months.CHESHVAN, 5769);
      const hd2 = hd1.add(1, 'weeks'); // 7 Kislev 5769
      const hd3 = hd1.add(-3, 'M'); // 30 Av 5768
      -
      • Returns a string representation of this Hebrew date using English transliterations

        -

        Returns string

        const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
        hd.toString(); // '15 Cheshvan 5769' +
      • Returns a string representation of this Hebrew date using English transliterations

        +

        Returns string

        const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
        hd.toString(); // '15 Cheshvan 5769'
        -
      • Convenience function for determining the R.D. date +

      • Convenience function for determining the R.D. date near a specified R.D. date, corresponding to the specified day of week.

        Note: Applying this function to d+6 gives us the dayOfWeek on or after an absolute day d. Similarly, applying it to d+3 gives the dayOfWeek nearest to absolute date d, applying it to d-1 gives the dayOfWeek previous to absolute date d, and applying it to d+7 gives the dayOfWeek following absolute date d.

        Parameters

        • dayOfWeek: number

          day of week: Sunday=0, Saturday=6

          -
        • absdate: number

        Returns number

      • Number of days in Hebrew month in a given year (29 or 30)

        +
      • absdate: number

      Returns number

      • Number of days in Hebrew month in a given year (29 or 30)

        Parameters

        • month: number

          Hebrew month (e.g. months.TISHREI)

        • year: number

          Hebrew year

          -

        Returns number

        import {HDate, months} from '@hebcal/hdate';
        HDate.daysInMonth(months.CHESHVAN, 5769); // 29 +

      Returns number

      import {HDate, months} from '@hebcal/hdate';
      HDate.daysInMonth(months.CHESHVAN, 5769); // 29
      -
      • Number of days in the Hebrew year. +

      • Number of days in the Hebrew year. Regular years can have 353, 354, or 355 days. Leap years can have 383, 384, or 385 days.

        Parameters

        • year: number

          Hebrew year

          -

        Returns number

        HDate.daysInYear(5783); // 355
        HDate.daysInYear(5784); // 383 +

      Returns number

      HDate.daysInYear(5783); // 355
      HDate.daysInYear(5784); // 383
      -
      • Construct a new instance of HDate from a Gematriya-formatted string

        -

        Parameters

        • str: string
        • currentThousands: number = 5000

        Returns HDate

        HDate.fromGematriyaString('כ״ז בְּתַמּוּז תשפ״ג') // 27 Tamuz 5783
        HDate.fromGematriyaString('כ׳ סיון תש״ד') // 20 Sivan 5704
        HDate.fromGematriyaString('ה׳ אִיָיר תש״ח') // 5 Iyyar 5708 +
      • Construct a new instance of HDate from a Gematriya-formatted string

        +

        Parameters

        • str: string
        • currentThousands: number = 5000

        Returns HDate

        HDate.fromGematriyaString('כ״ז בְּתַמּוּז תשפ״ג') // 27 Tamuz 5783
        HDate.fromGematriyaString('כ׳ סיון תש״ד') // 20 Sivan 5704
        HDate.fromGematriyaString('ה׳ אִיָיר תש״ח') // 5 Iyyar 5708
        -
      • Returns a transliterated string name of Hebrew month in year, +

      • Returns a transliterated string name of Hebrew month in year, for example 'Elul' or 'Cheshvan'.

        Parameters

        • month: number

          Hebrew month (e.g. months.TISHREI)

        • year: number

          Hebrew year

          -

        Returns string

        import {HDate, months} from '@hebcal/hdate';
        HDate.getMonthName(months.CHESHVAN, 5769); // 'Cheshvan' +

      Returns string

      import {HDate, months} from '@hebcal/hdate';
      HDate.getMonthName(months.CHESHVAN, 5769); // 'Cheshvan'
      -
      • Converts Hebrew date to R.D. (Rata Die) fixed days. +

      • Converts Hebrew date to R.D. (Rata Die) fixed days. R.D. 1 is the imaginary date Monday, January 1, 1 on the Gregorian Calendar.

        Parameters

        • year: number

          Hebrew year

        • month: number

          Hebrew month (1=NISAN, 7=TISHREI)

        • day: number

          Hebrew date (1-30)

          -

        Returns number

        import {HDate, months} from '@hebcal/hdate';
        HDate.hebrew2abs(5769, months.CHESHVAN, 15); // 733359 +

      Returns number

      import {HDate, months} from '@hebcal/hdate';
      HDate.hebrew2abs(5769, months.CHESHVAN, 15); // 733359
      -
      • Tests if the object is an instance of HDate

        -

        Parameters

        • obj: any

        Returns boolean

        HDate.isHDate(new HDate()); // true
        HDate.isHDate(new Date()); // false
        HDate.isHDate(null); // false
        HDate.isHDate(12345); // false
        HDate.isHDate('15 Cheshvan 5769'); // false +
      • Tests if the object is an instance of HDate

        +

        Parameters

        • obj: any

        Returns boolean

        HDate.isHDate(new HDate()); // true
        HDate.isHDate(new Date()); // false
        HDate.isHDate(null); // false
        HDate.isHDate(12345); // false
        HDate.isHDate('15 Cheshvan 5769'); // false
        -
      • Returns true if Hebrew year is a leap year

        +
      • Returns true if Hebrew year is a leap year

        Parameters

        • year: number

          Hebrew year

          -

        Returns boolean

        HDate.isLeapYear(5783); // false
        HDate.isLeapYear(5784); // true +

      Returns boolean

      HDate.isLeapYear(5783); // false
      HDate.isLeapYear(5784); // true
      -
      • true if Cheshvan is long in Hebrew year

        +
      • true if Cheshvan is long in Hebrew year

        Parameters

        • year: number

          Hebrew year

          -

        Returns boolean

        HDate.longCheshvan(5783); // true
        HDate.longCheshvan(5784); // false +

      Returns boolean

      HDate.longCheshvan(5783); // true
      HDate.longCheshvan(5784); // false
      -
      • Converts Hebrew month string name to numeric

        -

        Parameters

        • monthName: string | number

        Returns number

        import {HDate, months} from '@hebcal/hdate';
        HDate.monthFromName(months.CHESHVAN); // 8
        HDate.monthFromName('Cheshvan'); // 8
        HDate.monthFromName('חשון'); // 8 +
      • Converts Hebrew month string name to numeric

        +

        Parameters

        • monthName: string | number

        Returns number

        import {HDate, months} from '@hebcal/hdate';
        HDate.monthFromName(months.CHESHVAN); // 8
        HDate.monthFromName('Cheshvan'); // 8
        HDate.monthFromName('חשון'); // 8
        -
      • Returns the Hebrew month number (NISAN=1, TISHREI=7)

        +
      • Returns the Hebrew month number (NISAN=1, TISHREI=7)

        Parameters

        • month: string | number

          A number, or Hebrew month name string

          -

        Returns number

        import {HDate, months} from '@hebcal/hdate';
        HDate.monthNum(months.CHESHVAN); // 8
        HDate.monthNum('Cheshvan'); // 8
        HDate.monthNum('חשון'); // 8 +

      Returns number

      import {HDate, months} from '@hebcal/hdate';
      HDate.monthNum(months.CHESHVAN); // 8
      HDate.monthNum('Cheshvan'); // 8
      HDate.monthNum('חשון'); // 8
      -
      • Number of months in this Hebrew year (either 12 or 13 depending on leap year)

        +
      • Number of months in this Hebrew year (either 12 or 13 depending on leap year)

        Parameters

        • year: number

          Hebrew year

          -

        Returns number

        HDate.monthsInYear(5783); // 12
        HDate.monthsInYear(5784); // 13 +

      Returns number

      HDate.monthsInYear(5783); // 12
      HDate.monthsInYear(5784); // 13
      -
      • true if Kislev is short in Hebrew year

        +
      • true if Kislev is short in Hebrew year

        Parameters

        • year: number

          Hebrew year

          -

        Returns boolean

        HDate.shortKislev(5783); // false
        HDate.shortKislev(5784); // true +

      Returns boolean

      HDate.shortKislev(5783); // false
      HDate.shortKislev(5784); // true
      -
      +
      diff --git a/api/hdate/classes/Locale.html b/api/hdate/classes/Locale.html index c761bbc..5605faf 100644 --- a/api/hdate/classes/Locale.html +++ b/api/hdate/classes/Locale.html @@ -6,7 +6,7 @@
    • he - Hebrew (e.g. "שַׁבָּת")
    • he-x-NoNikud - Hebrew without nikud (e.g. "שבת")
    • -

      Constructors

      Constructors

      Methods

      Constructors

      Methods

      • Register locale translations.

        Parameters

        • locale: string

          Locale name (i.e.: 'he', 'fr')

        • data: LocaleData

          parsed data from a .po file.

          -

        Returns void

      • Adds a translation to locale, replacing any previous translation.

        +

      Returns void

      • Adds a translation to locale, replacing any previous translation.

        Parameters

        • locale: string

          Locale name (i.e: 'he', 'fr').

        • id: string

          Message ID to translate

        • translation: string | string[]

          Translation text

          -

        Returns void

      • Adds multiple translations to locale, replacing any previous translations.

        +

      Returns void

      • Adds multiple translations to locale, replacing any previous translations.

        Parameters

        • locale: string

          Locale name (i.e: 'he', 'fr').

        • data: LocaleData

          parsed data from a .po file.

          -

        Returns void

      • Returns the name of the active locale (i.e. 'he', 'ashkenazi', 'fr')

        -

        Returns string

      • Returns the names of registered locales

        -

        Returns string[]

      • By default, if no translation was found, returns id.

        +

      Returns void

      • Returns the name of the active locale (i.e. 'he', 'ashkenazi', 'fr')

        +

        Returns string

      • Returns the names of registered locales

        +

        Returns string[]

      • By default, if no translation was found, returns id.

        Parameters

        • id: string

          Message ID to translate

        • Optionallocale: string

          Optional locale name (i.e: 'he', 'fr'). Defaults to active locale.

          -

        Returns string

      • Removes nekudot from Hebrew string

        -

        Parameters

        • str: string

        Returns string

      • Returns translation only if locale offers a non-empty translation for id. +

      Returns string

      • Removes nekudot from Hebrew string

        +

        Parameters

        • str: string

        Returns string

      • Returns translation only if locale offers a non-empty translation for id. Otherwise, returns undefined.

        Parameters

        • id: string

          Message ID to translate

        • Optionallocale: string

          Optional locale name (i.e: 'he', 'fr'). Defaults to active locale.

          -

        Returns string

      • Renders a number in ordinal, such as 1st, 2nd or 3rd

        +

      Returns string

      • Renders a number in ordinal, such as 1st, 2nd or 3rd

        Parameters

        • n: number
        • Optionallocale: string

          Optional locale name (i.e: 'he', 'fr'). Defaults to active locale.

          -

        Returns string

      • Activates a locale. Throws an error if the locale has not been previously added. +

      Returns string

      • Activates a locale. Throws an error if the locale has not been previously added. After setting the locale to be used, all strings marked for translations will be represented by the corresponding translation in the specified locale.

        Parameters

        • locale: string

          Locale name (i.e: 'he', 'fr')

          -

        Returns StringArrayMap

      +

      Returns StringArrayMap

      diff --git a/api/hdate/enums/months.html b/api/hdate/enums/months.html index 513373b..701a690 100644 --- a/api/hdate/enums/months.html +++ b/api/hdate/enums/months.html @@ -1,5 +1,5 @@ months | @hebcal/hdate

      Enumeration monthsReadonly

      Hebrew months of the year (NISAN=1, TISHREI=7)

      -

      Enumeration Members

      Enumeration Members

      ADAR_I ADAR_II AV CHESHVAN @@ -12,17 +12,4 @@ TAMUZ TEVET TISHREI -

      Enumeration Members

      ADAR_I: number

      Adar or Adar Rishon / אדר

      -
      ADAR_II: number

      Adar Sheini (only on leap years) / אדר ב׳

      -
      AV: number

      Av / אב

      -
      CHESHVAN: number

      Cheshvan / חשון

      -
      ELUL: number

      Elul / אלול

      -
      IYYAR: number

      Iyyar / אייר

      -
      KISLEV: number

      Kislev / כסלו

      -
      NISAN: number

      Nissan / ניסן

      -
      SHVAT: number

      Sh'vat / שבט

      -
      SIVAN: number

      Sivan / סיון

      -
      TAMUZ: number

      Tamuz (sometimes Tammuz) / תמוז

      -
      TEVET: number

      Tevet / טבת

      -
      TISHREI: number

      Tishrei / תִּשְׁרֵי

      -
      +

      Enumeration Members

      ADAR_I
      ADAR_II
      AV
      CHESHVAN
      ELUL
      IYYAR
      KISLEV
      NISAN
      SHVAT
      SIVAN
      TAMUZ
      TEVET
      TISHREI
      diff --git a/api/hdate/functions/abs2greg.html b/api/hdate/functions/abs2greg.html index 71f5ed5..57e5a04 100644 --- a/api/hdate/functions/abs2greg.html +++ b/api/hdate/functions/abs2greg.html @@ -4,4 +4,4 @@ Clamen, Software--Practice and Experience, Volume 23, Number 4 (April, 1993), pages 383-404 for an explanation.

      Parameters

      • abs: number

        R.D. number of days

        -

      Returns Date

      +

      Returns Date

      diff --git a/api/hdate/functions/abs2hebrew.html b/api/hdate/functions/abs2hebrew.html index 5301872..0365437 100644 --- a/api/hdate/functions/abs2hebrew.html +++ b/api/hdate/functions/abs2hebrew.html @@ -1,3 +1,3 @@ abs2hebrew | @hebcal/hdate

      Function abs2hebrew

      +

      Returns SimpleHebrewDate

      diff --git a/api/hdate/functions/daysInGregMonth.html b/api/hdate/functions/daysInGregMonth.html index 3dfc2a7..01b6450 100644 --- a/api/hdate/functions/daysInGregMonth.html +++ b/api/hdate/functions/daysInGregMonth.html @@ -1,4 +1,4 @@ daysInGregMonth | @hebcal/hdate

      Function daysInGregMonth

      • Number of days in the Gregorian month for given year

        Parameters

        • month: number

          Gregorian month (1=January, 12=December)

        • year: number

          Gregorian year

          -

        Returns number

      +

      Returns number

      diff --git a/api/hdate/functions/daysInMonth.html b/api/hdate/functions/daysInMonth.html index f4c3b1e..23c746f 100644 --- a/api/hdate/functions/daysInMonth.html +++ b/api/hdate/functions/daysInMonth.html @@ -1,4 +1,4 @@ daysInMonth | @hebcal/hdate

      Function daysInMonth

      • Number of days in Hebrew month in a given year (29 or 30)

        Parameters

        • month: number

          Hebrew month (e.g. months.TISHREI)

        • year: number

          Hebrew year

          -

        Returns number

      +

      Returns number

      diff --git a/api/hdate/functions/daysInYear.html b/api/hdate/functions/daysInYear.html index 0344642..e7982bd 100644 --- a/api/hdate/functions/daysInYear.html +++ b/api/hdate/functions/daysInYear.html @@ -2,4 +2,4 @@ A common Hebrew calendar year can have a length of 353, 354 or 355 days A leap Hebrew calendar year can have a length of 383, 384 or 385 days

      Parameters

      • year: number

        Hebrew year

        -

      Returns number

      +

      Returns number

      diff --git a/api/hdate/functions/elapsedDays.html b/api/hdate/functions/elapsedDays.html index e3786cb..0f8838d 100644 --- a/api/hdate/functions/elapsedDays.html +++ b/api/hdate/functions/elapsedDays.html @@ -1,4 +1,4 @@ elapsedDays | @hebcal/hdate

      Function elapsedDays

      • Days from sunday prior to start of Hebrew calendar to mean conjunction of Tishrei in Hebrew YEAR

        Parameters

        • year: number

          Hebrew year

          -

        Returns number

      +

      Returns number

      diff --git a/api/hdate/functions/gematriya.html b/api/hdate/functions/gematriya.html index 77aa38b..3f095e2 100644 --- a/api/hdate/functions/gematriya.html +++ b/api/hdate/functions/gematriya.html @@ -1,7 +1,7 @@ gematriya | @hebcal/hdate

      Function gematriya

      • Converts a numerical value to a string of Hebrew letters.

        When specifying years of the Hebrew calendar in the present millennium, we omit the thousands (which is presently 5 [ה]).

        -

        Parameters

        • num: string | number

        Returns string

        gematriya(5774) // 'תשע״ד' - cropped to 774
        gematriya(25) // 'כ״ה'
        gematriya(60) // 'ס׳'
        gematriya(3761) // 'ג׳תשס״א'
        gematriya(1123) // 'א׳קכ״ג' +

        Parameters

        • num: string | number

        Returns string

        gematriya(5774) // 'תשע״ד' - cropped to 774
        gematriya(25) // 'כ״ה'
        gematriya(60) // 'ס׳'
        gematriya(3761) // 'ג׳תשס״א'
        gematriya(1123) // 'א׳קכ״ג'
        -
      +
      diff --git a/api/hdate/functions/gematriyaStrToNum.html b/api/hdate/functions/gematriyaStrToNum.html index c1477e6..3238bcd 100644 --- a/api/hdate/functions/gematriyaStrToNum.html +++ b/api/hdate/functions/gematriyaStrToNum.html @@ -2,4 +2,4 @@

      Only considers the value of Hebrew letters א through ת. Ignores final Hebrew letters such as ך (kaf sofit) or ם (mem sofit) and vowels (nekudot).

      -

      Parameters

      • str: string

      Returns number

      +

      Parameters

      • str: string

      Returns number

      diff --git a/api/hdate/functions/getBirthdayHD.html b/api/hdate/functions/getBirthdayHD.html index f9b19c8..a2e3351 100644 --- a/api/hdate/functions/getBirthdayHD.html +++ b/api/hdate/functions/getBirthdayHD.html @@ -1 +1 @@ -getBirthdayHD | @hebcal/hdate

      Function getBirthdayHD

      +getBirthdayHD | @hebcal/hdate

      Function getBirthdayHD

      diff --git a/api/hdate/functions/getBirthdayOrAnniversary.html b/api/hdate/functions/getBirthdayOrAnniversary.html index 25dde07..6ec086e 100644 --- a/api/hdate/functions/getBirthdayOrAnniversary.html +++ b/api/hdate/functions/getBirthdayOrAnniversary.html @@ -14,7 +14,7 @@

      Parameters

      • hyear: number

        Hebrew year

      • date: AnniversaryDate

        Gregorian or Hebrew date of event

      Returns Date | undefined

      anniversary occurring in hyear

      -
      import {getBirthdayOrAnniversary} from '@hebcal/hdate';
      const dt = new Date(2014, 2, 2); // '2014-03-02' == '30 Adar I 5774'
      const anniversary = getBirthdayOrAnniversary(5780, dt); // '3/26/2020' == '1 Nisan 5780' +
      import {getBirthdayOrAnniversary} from '@hebcal/hdate';
      const dt = new Date(2014, 2, 2); // '2014-03-02' == '30 Adar I 5774'
      const anniversary = getBirthdayOrAnniversary(5780, dt); // '3/26/2020' == '1 Nisan 5780'
      -
      +
      diff --git a/api/hdate/functions/getMonthName.html b/api/hdate/functions/getMonthName.html index 1b66409..dedf8b0 100644 --- a/api/hdate/functions/getMonthName.html +++ b/api/hdate/functions/getMonthName.html @@ -2,4 +2,4 @@ for example 'Elul' or 'Cheshvan'.

      Parameters

      • month: number

        Hebrew month (e.g. months.TISHREI)

      • year: number

        Hebrew year

        -

      Returns string

      +

      Returns string

      diff --git a/api/hdate/functions/getPseudoISO.html b/api/hdate/functions/getPseudoISO.html index fb4b698..ee00009 100644 --- a/api/hdate/functions/getPseudoISO.html +++ b/api/hdate/functions/getPseudoISO.html @@ -1,4 +1,4 @@ getPseudoISO | @hebcal/hdate

      Function getPseudoISO

      • Returns a string similar to Date.toISOString() but in the timezone tzid. Contrary to the typical meaning of Z at the end of the string, this is not actually a UTC date.

        -

        Parameters

        • tzid: string
        • date: Date

        Returns string

      +

      Parameters

      • tzid: string
      • date: Date

      Returns string

      diff --git a/api/hdate/functions/getTimezoneOffset.html b/api/hdate/functions/getTimezoneOffset.html index 82ff11d..688670a 100644 --- a/api/hdate/functions/getTimezoneOffset.html +++ b/api/hdate/functions/getTimezoneOffset.html @@ -1,2 +1,2 @@ getTimezoneOffset | @hebcal/hdate

      Function getTimezoneOffset

      • Returns number of minutes tzid is offset from UTC on date date.

        -

        Parameters

        • tzid: string
        • date: Date

        Returns number

      +

      Parameters

      • tzid: string
      • date: Date

      Returns number

      diff --git a/api/hdate/functions/getYahrzeit.html b/api/hdate/functions/getYahrzeit.html index b550293..d687208 100644 --- a/api/hdate/functions/getYahrzeit.html +++ b/api/hdate/functions/getYahrzeit.html @@ -24,7 +24,7 @@

      Parameters

      • hyear: number

        Hebrew year

      • date: AnniversaryDate

        Gregorian or Hebrew date of death

      Returns Date | undefined

      anniversary occurring in hyear

      -
      import {getYahrzeit} from '@hebcal/hdate';
      const dt = new Date(2014, 2, 2); // '2014-03-02' == '30 Adar I 5774'
      const anniversary = getYahrzeit(5780, dt); // '2/25/2020' == '30 Sh\'vat 5780' +
      import {getYahrzeit} from '@hebcal/hdate';
      const dt = new Date(2014, 2, 2); // '2014-03-02' == '30 Adar I 5774'
      const anniversary = getYahrzeit(5780, dt); // '2/25/2020' == '30 Sh\'vat 5780'
      -
      +
      diff --git a/api/hdate/functions/getYahrzeitHD.html b/api/hdate/functions/getYahrzeitHD.html index 9ff012d..46cf64d 100644 --- a/api/hdate/functions/getYahrzeitHD.html +++ b/api/hdate/functions/getYahrzeitHD.html @@ -1 +1 @@ -getYahrzeitHD | @hebcal/hdate

      Function getYahrzeitHD

      +getYahrzeitHD | @hebcal/hdate

      Function getYahrzeitHD

      diff --git a/api/hdate/functions/greg.abs2greg.html b/api/hdate/functions/greg.abs2greg.html index e1828a1..745c1cf 100644 --- a/api/hdate/functions/greg.abs2greg.html +++ b/api/hdate/functions/greg.abs2greg.html @@ -1 +1 @@ -abs2greg | @hebcal/hdate

      Function abs2greg

      +abs2greg | @hebcal/hdate

      Function abs2greg

      diff --git a/api/hdate/functions/greg.daysInMonth.html b/api/hdate/functions/greg.daysInMonth.html index 51844b2..3be1be5 100644 --- a/api/hdate/functions/greg.daysInMonth.html +++ b/api/hdate/functions/greg.daysInMonth.html @@ -1 +1 @@ -daysInMonth | @hebcal/hdate

      Function daysInMonth

      • Parameters

        • month: number
        • year: number

        Returns number

      +daysInMonth | @hebcal/hdate

      Function daysInMonth

      • Parameters

        • month: number
        • year: number

        Returns number

      diff --git a/api/hdate/functions/greg.greg2abs.html b/api/hdate/functions/greg.greg2abs.html index f0bd981..0847787 100644 --- a/api/hdate/functions/greg.greg2abs.html +++ b/api/hdate/functions/greg.greg2abs.html @@ -1 +1 @@ -greg2abs | @hebcal/hdate

      Function greg2abs

      +greg2abs | @hebcal/hdate

      Function greg2abs

      diff --git a/api/hdate/functions/greg.isDate.html b/api/hdate/functions/greg.isDate.html index 9180b01..313d63e 100644 --- a/api/hdate/functions/greg.isDate.html +++ b/api/hdate/functions/greg.isDate.html @@ -1 +1 @@ -isDate | @hebcal/hdate
      +isDate | @hebcal/hdate
      diff --git a/api/hdate/functions/greg.isLeapYear.html b/api/hdate/functions/greg.isLeapYear.html index b816554..925e2a5 100644 --- a/api/hdate/functions/greg.isLeapYear.html +++ b/api/hdate/functions/greg.isLeapYear.html @@ -1 +1 @@ -isLeapYear | @hebcal/hdate

      Function isLeapYear

      +isLeapYear | @hebcal/hdate

      Function isLeapYear

      diff --git a/api/hdate/functions/greg2abs.html b/api/hdate/functions/greg2abs.html index 3d3006d..d4c2943 100644 --- a/api/hdate/functions/greg2abs.html +++ b/api/hdate/functions/greg2abs.html @@ -1,3 +1,3 @@ greg2abs | @hebcal/hdate

      Function greg2abs

      • Converts Gregorian date to absolute R.D. (Rata Die) days

        Parameters

        • date: Date

          Gregorian date

          -

        Returns number

      +

      Returns number

      diff --git a/api/hdate/functions/hd2abs.html b/api/hdate/functions/hd2abs.html index 2e52110..7f7cf12 100644 --- a/api/hdate/functions/hd2abs.html +++ b/api/hdate/functions/hd2abs.html @@ -1,4 +1,4 @@ hd2abs | @hebcal/hdate

      Function hd2abs

      • Converts Hebrew date to R.D. (Rata Die) fixed days. R.D. 1 is the imaginary date Monday, January 1, 1 on the Gregorian Calendar.

        -

        Parameters

        Returns number

      +

      Parameters

      Returns number

      diff --git a/api/hdate/functions/hebrew2abs.html b/api/hdate/functions/hebrew2abs.html index a85e999..1e19727 100644 --- a/api/hdate/functions/hebrew2abs.html +++ b/api/hdate/functions/hebrew2abs.html @@ -4,4 +4,4 @@

      Parameters

      • year: number

        Hebrew year

      • month: number

        Hebrew month

      • day: number

        Hebrew date (1-30)

        -

      Returns number

      +

      Returns number

      diff --git a/api/hdate/functions/isDate.html b/api/hdate/functions/isDate.html index 2ed4735..c8cf963 100644 --- a/api/hdate/functions/isDate.html +++ b/api/hdate/functions/isDate.html @@ -1,2 +1,2 @@ isDate | @hebcal/hdate

      Function isDate

      • Returns true if the object is a Javascript Date

        -

        Parameters

        • obj: any

        Returns boolean

      +

      Parameters

      • obj: any

      Returns boolean

      diff --git a/api/hdate/functions/isGregLeapYear.html b/api/hdate/functions/isGregLeapYear.html index 8049186..d13a07b 100644 --- a/api/hdate/functions/isGregLeapYear.html +++ b/api/hdate/functions/isGregLeapYear.html @@ -1,3 +1,3 @@ isGregLeapYear | @hebcal/hdate

      Function isGregLeapYear

      • Returns true if the Gregorian year is a leap year

        Parameters

        • year: number

          Gregorian year

          -

        Returns boolean

      +

      Returns boolean

      diff --git a/api/hdate/functions/isLeapYear.html b/api/hdate/functions/isLeapYear.html index 2549fde..1595114 100644 --- a/api/hdate/functions/isLeapYear.html +++ b/api/hdate/functions/isLeapYear.html @@ -1,3 +1,3 @@ isLeapYear | @hebcal/hdate

      Function isLeapYear

      • Returns true if Hebrew year is a leap year

        Parameters

        • year: number

          Hebrew year

          -

        Returns boolean

      +

      Returns boolean

      diff --git a/api/hdate/functions/isoDateString.html b/api/hdate/functions/isoDateString.html index 842f52c..a316240 100644 --- a/api/hdate/functions/isoDateString.html +++ b/api/hdate/functions/isoDateString.html @@ -1,2 +1,2 @@ isoDateString | @hebcal/hdate

      Function isoDateString

      • Returns YYYY-MM-DD in the local timezone

        -

        Parameters

        • dt: Date

        Returns string

      +

      Parameters

      • dt: Date

      Returns string

      diff --git a/api/hdate/functions/longCheshvan.html b/api/hdate/functions/longCheshvan.html index 867cac3..b9c8475 100644 --- a/api/hdate/functions/longCheshvan.html +++ b/api/hdate/functions/longCheshvan.html @@ -1,3 +1,3 @@ longCheshvan | @hebcal/hdate

      Function longCheshvan

      • true if Cheshvan is long in Hebrew year

        Parameters

        • year: number

          Hebrew year

          -

        Returns boolean

      +

      Returns boolean

      diff --git a/api/hdate/functions/molad-1.html b/api/hdate/functions/molad-1.html index 007bca9..3550205 100644 --- a/api/hdate/functions/molad-1.html +++ b/api/hdate/functions/molad-1.html @@ -1,2 +1,2 @@ molad | @hebcal/hdate

      Function molad

      • Calculates the molad for a Hebrew month

        -

        Parameters

        • year: number
        • month: number

        Returns Molad

      +

      Parameters

      • year: number
      • month: number

      Returns Molad

      diff --git a/api/hdate/functions/monthFromName.html b/api/hdate/functions/monthFromName.html index 433d71d..6176fc0 100644 --- a/api/hdate/functions/monthFromName.html +++ b/api/hdate/functions/monthFromName.html @@ -1,3 +1,3 @@ monthFromName | @hebcal/hdate

      Function monthFromName

      • Converts Hebrew month string name to numeric

        Parameters

        • monthName: string

          monthName

          -

        Returns number

      +

      Returns number

      diff --git a/api/hdate/functions/monthsInYear.html b/api/hdate/functions/monthsInYear.html index 576c51b..4b0dfc4 100644 --- a/api/hdate/functions/monthsInYear.html +++ b/api/hdate/functions/monthsInYear.html @@ -1,3 +1,3 @@ monthsInYear | @hebcal/hdate

      Function monthsInYear

      • Number of months in this Hebrew year (either 12 or 13 depending on leap year)

        Parameters

        • year: number

          Hebrew year

          -

        Returns number

      +

      Returns number

      diff --git a/api/hdate/functions/omerEmoji.html b/api/hdate/functions/omerEmoji.html index 46a5f32..4f63836 100644 --- a/api/hdate/functions/omerEmoji.html +++ b/api/hdate/functions/omerEmoji.html @@ -2,4 +2,4 @@ from the “Enclosed CJK Letters and Months” block of the Unicode standard

      Parameters

      • omerDay: number

        the day of the omer, 1-49 inclusive

      Returns string

      a single Unicode character from through

      -
      +
      diff --git a/api/hdate/functions/omerSefira.html b/api/hdate/functions/omerSefira.html index 8b71eea..2ae4f3c 100644 --- a/api/hdate/functions/omerSefira.html +++ b/api/hdate/functions/omerSefira.html @@ -5,4 +5,4 @@

      Parameters

      • omerDay: number

        the day of the omer, 1-49 inclusive

      • lang: OmerLang

        en (English), he (Hebrew with nikud), or translit (Hebrew in Sephardic transliteration)

      Returns string

      a string such as Lovingkindness within Might or חֶֽסֶד שֶׁבִּגְבוּרָה

      -
      +
      diff --git a/api/hdate/functions/omerTodayIs.html b/api/hdate/functions/omerTodayIs.html index f7c65e4..7907ddb 100644 --- a/api/hdate/functions/omerTodayIs.html +++ b/api/hdate/functions/omerTodayIs.html @@ -3,4 +3,4 @@
    • lang: OmerLang

      en (English), he (Hebrew with nikud)

    • Returns string

      a string such as Today is 10 days, which is 1 week and 3 days of the Omer or הַיוֹם עֲשָׂרָה יָמִים, שְׁהֵם שָׁבוּעַ אֶחָד וְשְׁלוֹשָׁה יָמִים לָעוֹמֶר

      -
      +
      diff --git a/api/hdate/functions/pad2.html b/api/hdate/functions/pad2.html index 8238b5a..56bec15 100644 --- a/api/hdate/functions/pad2.html +++ b/api/hdate/functions/pad2.html @@ -1,3 +1,3 @@ pad2 | @hebcal/hdate

      Function pad2

      • Formats a number with leading zeros so the resulting string is 2 digits long. Similar to string.padStart(2, '0').

        -

        Parameters

        • num: number

        Returns string

      +

      Parameters

      • num: number

      Returns string

      diff --git a/api/hdate/functions/pad4.html b/api/hdate/functions/pad4.html index 8adeb6e..375d6b8 100644 --- a/api/hdate/functions/pad4.html +++ b/api/hdate/functions/pad4.html @@ -2,4 +2,4 @@ Similar to string.padStart(4, '0') but will also format negative numbers similar to how the JavaScript date formats negative year numbers (e.g. -37 is formatted as -000037).

      -

      Parameters

      • num: number

      Returns string

      +

      Parameters

      • num: number

      Returns string

      diff --git a/api/hdate/functions/shortKislev.html b/api/hdate/functions/shortKislev.html index 7979981..94c596a 100644 --- a/api/hdate/functions/shortKislev.html +++ b/api/hdate/functions/shortKislev.html @@ -1,3 +1,3 @@ shortKislev | @hebcal/hdate

      Function shortKislev

      • true if Kislev is short in Hebrew year

        Parameters

        • year: number

          Hebrew year

          -

        Returns boolean

      +

      Returns boolean

      diff --git a/api/hdate/index.html b/api/hdate/index.html index f320ef5..ebe8fdf 100644 --- a/api/hdate/index.html +++ b/api/hdate/index.html @@ -1,9 +1,9 @@ -@hebcal/hdate

      @hebcal/hdate

      @hebcal/hdate

      converts between Hebrew and Gregorian dates using Rata Die (R.D.) algorithm by Dershowitz and Reingold

      -

      Build Status

      +@hebcal/hdate

      @hebcal/hdate

      @hebcal/hdate

      converts between Hebrew and Gregorian dates using Rata Die (R.D.) algorithm by Dershowitz and Reingold

      +

      Build Status

      $ npm install @hebcal/hdate
       
      import {greg, abs2hebrew} from '@hebcal/hdate';

      const date = new Date(2008, 10, 13); // 13 November 2008
      const abs = greg.greg2abs(date);
      const hdate = abs2hebrew(abs); // {yy: 5769, mm: CHESHVAN, dd: 15}
      -
      +
      diff --git a/api/hdate/interfaces/Headers.html b/api/hdate/interfaces/Headers.html index 34475ba..80e758b 100644 --- a/api/hdate/interfaces/Headers.html +++ b/api/hdate/interfaces/Headers.html @@ -1,3 +1,3 @@ -Headers | @hebcal/hdate

      Interface Headers

      interface Headers {
          content-type?: string;
          plural-forms?: string;
      }

      Properties

      content-type? +Headers | @hebcal/hdate

      Interface Headers

      interface Headers {
          content-type?: string;
          plural-forms?: string;
      }

      Properties

      content-type?: string
      plural-forms?: string
      +

      Properties

      content-type?: string
      plural-forms?: string
      diff --git a/api/hdate/interfaces/LocaleData.html b/api/hdate/interfaces/LocaleData.html index c3be435..493a5fd 100644 --- a/api/hdate/interfaces/LocaleData.html +++ b/api/hdate/interfaces/LocaleData.html @@ -1,3 +1,3 @@ -LocaleData | @hebcal/hdate

      Interface LocaleData

      interface LocaleData {
          contexts: {
              [key: string]: StringArrayMap;
          };
          headers: Headers;
      }

      Properties

      contexts +LocaleData | @hebcal/hdate

      Interface LocaleData

      interface LocaleData {
          contexts: {
              [key: string]: StringArrayMap;
          };
          headers: Headers;
      }

      Properties

      Properties

      contexts: {
          [key: string]: StringArrayMap;
      }
      headers: Headers
      +

      Properties

      contexts: {
          [key: string]: StringArrayMap;
      }
      headers: Headers
      diff --git a/api/hdate/interfaces/StringArrayMap.html b/api/hdate/interfaces/StringArrayMap.html index 136411b..8978cc9 100644 --- a/api/hdate/interfaces/StringArrayMap.html +++ b/api/hdate/interfaces/StringArrayMap.html @@ -1 +1 @@ -StringArrayMap | @hebcal/hdate

      Interface StringArrayMap

      Indexable

      • [key: string]: string[]
      +StringArrayMap | @hebcal/hdate

      Interface StringArrayMap

      Indexable

      • [key: string]: string[]
      diff --git a/api/hdate/modules.html b/api/hdate/modules.html index a0ae8cd..df108f0 100644 --- a/api/hdate/modules.html +++ b/api/hdate/modules.html @@ -1,4 +1,4 @@ -@hebcal/hdate

      @hebcal/hdate

      Index

      Namespaces

      greg +@hebcal/hdate

      @hebcal/hdate

      Index

      Namespaces

      Enumerations

      Classes

      HDate Locale diff --git a/api/hdate/modules/greg.html b/api/hdate/modules/greg.html index feb9026..2b90876 100644 --- a/api/hdate/modules/greg.html +++ b/api/hdate/modules/greg.html @@ -1,5 +1,5 @@ greg | @hebcal/hdate

      Namespace greg

      Gregorian date helper functions

      -

      Index

      Functions

      Index

      Functions

      abs2greg daysInMonth greg2abs isDate diff --git a/api/hdate/types/Molad.html b/api/hdate/types/Molad.html index ce12cf8..860f0d5 100644 --- a/api/hdate/types/Molad.html +++ b/api/hdate/types/Molad.html @@ -5,4 +5,4 @@
    • Readonlyminutes: number

      minutes past hour (0-59)

    • Readonlymonth: number

      Hebrew month

    • Readonlyyear: number

      Hebrew year

      -
    • +
      diff --git a/api/hdate/types/OmerLang.html b/api/hdate/types/OmerLang.html index 8967e94..877f9ac 100644 --- a/api/hdate/types/OmerLang.html +++ b/api/hdate/types/OmerLang.html @@ -1,3 +1,3 @@ OmerLang | @hebcal/hdate

      Type Alias OmerLang

      OmerLang: "en" | "he" | "translit"

      Language for counting the Omer can be English or Hebrew. Lang for the Sefira can be English, Hebrew, or Hebrew in Sephardic transliteration.

      -
      +
      diff --git a/api/hdate/types/SimpleHebrewDate.html b/api/hdate/types/SimpleHebrewDate.html index 345c0ce..059ece5 100644 --- a/api/hdate/types/SimpleHebrewDate.html +++ b/api/hdate/types/SimpleHebrewDate.html @@ -1,4 +1,4 @@ SimpleHebrewDate | @hebcal/hdate

      Type Alias SimpleHebrewDate

      SimpleHebrewDate: {
          dd: number;
          mm: number;
          yy: number;
      }

      Type declaration

      • dd: number

        Day of month (1-30)

      • mm: number

        Hebrew month of year (1=NISAN, 7=TISHREI)

      • yy: number

        Hebrew year

        -
      +
      diff --git a/api/leyning/assets/icons.js b/api/leyning/assets/icons.js index e88e8ca..3dfbd32 100644 --- a/api/leyning/assets/icons.js +++ b/api/leyning/assets/icons.js @@ -3,7 +3,7 @@ function addIcons() { if (document.readyState === "loading") return document.addEventListener("DOMContentLoaded", addIcons); const svg = document.body.appendChild(document.createElementNS("http://www.w3.org/2000/svg", "svg")); - svg.innerHTML = `""`; + svg.innerHTML = `MMNEPVFCICPMFPCPTTAAATR`; svg.style.display = "none"; if (location.protocol === "file:") updateUseElements(); } diff --git a/api/leyning/assets/icons.svg b/api/leyning/assets/icons.svg index e371b8b..a19417d 100644 --- a/api/leyning/assets/icons.svg +++ b/api/leyning/assets/icons.svg @@ -1 +1 @@ - \ No newline at end of file +MMNEPVFCICPMFPCPTTAAATR \ No newline at end of file diff --git a/api/leyning/assets/main.js b/api/leyning/assets/main.js index 7d7f77a..99097a0 100644 --- a/api/leyning/assets/main.js +++ b/api/leyning/assets/main.js @@ -1,9 +1,9 @@ "use strict"; window.translations={"copy":"Copy","copied":"Copied!","normally_hidden":"This member is normally hidden due to your filter settings."}; -"use strict";(()=>{var Ce=Object.create;var ie=Object.defineProperty;var Oe=Object.getOwnPropertyDescriptor;var _e=Object.getOwnPropertyNames;var Re=Object.getPrototypeOf,Me=Object.prototype.hasOwnProperty;var Fe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var De=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of _e(e))!Me.call(t,i)&&i!==n&&ie(t,i,{get:()=>e[i],enumerable:!(r=Oe(e,i))||r.enumerable});return t};var Ae=(t,e,n)=>(n=t!=null?Ce(Re(t)):{},De(e||!t||!t.__esModule?ie(n,"default",{value:t,enumerable:!0}):n,t));var ue=Fe((ae,le)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var d=t.utils.clone(n)||{};d.position=[a,u],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. -`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(n+=r[u+1]*i[d+1],u+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),m=s.str.charAt(1),p;m in s.node.edges?p=s.node.edges[m]:(p=new t.TokenSet,s.node.edges[m]=p),s.str.length==1&&(p.final=!0),i.push({node:p,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof ae=="object"?le.exports=n():e.lunr=n()}(this,function(){return t})})()});var se=[];function G(t,e){se.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible()),document.body.style.display||(this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}createComponents(e){se.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}showPage(){document.body.style.display&&(document.body.style.removeProperty("display"),this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}scrollToHash(){if(location.hash){let e=document.getElementById(location.hash.substring(1));if(!e)return;e.scrollIntoView({behavior:"instant",block:"start"})}}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e&&!e.checkVisibility()){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r}}updateIndexVisibility(){let e=document.querySelector(".tsd-index-content"),n=e?.open;e&&(e.open=!0),document.querySelectorAll(".tsd-index-section").forEach(r=>{r.style.display="block";let i=Array.from(r.querySelectorAll(".tsd-index-link")).every(s=>s.offsetParent==null);r.style.display=i?"none":"block"}),e&&(e.open=n)}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(!n)return;let r=n.offsetParent==null,i=n;for(;i!==document.body;)i instanceof HTMLDetailsElement&&(i.open=!0),i=i.parentElement;if(n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let s=document.createElement("p");s.classList.add("warning"),s.textContent=window.translations.normally_hidden,n.prepend(s)}r&&e.scrollIntoView()}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent=window.translations.copied,e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent=window.translations.copy},100)},1e3)})})}};var oe=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var pe=Ae(ue());async function ce(t,e){if(!window.searchData)return;let n=await fetch(window.searchData),r=new Blob([await n.arrayBuffer()]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();t.data=i,t.index=pe.Index.load(i.index),e.classList.remove("loading"),e.classList.add("ready")}function fe(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:t.dataset.base+"/"},n=document.getElementById("tsd-search-script");t.classList.add("loading"),n&&(n.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),n.addEventListener("load",()=>{ce(e,t)}),ce(e,t));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");i.addEventListener("mouseup",()=>{te(t)}),r.addEventListener("focus",()=>t.classList.add("has-focus")),Ve(t,i,r,e)}function Ve(t,e,n,r){n.addEventListener("input",oe(()=>{Ne(t,e,n,r)},200)),n.addEventListener("keydown",i=>{i.key=="Enter"?He(e,t):i.key=="ArrowUp"?(de(e,n,-1),i.preventDefault()):i.key==="ArrowDown"&&(de(e,n,1),i.preventDefault())}),document.body.addEventListener("keypress",i=>{i.altKey||i.ctrlKey||i.metaKey||!n.matches(":focus")&&i.key==="/"&&(i.preventDefault(),n.focus())}),document.body.addEventListener("keyup",i=>{t.classList.contains("has-focus")&&(i.key==="Escape"||!e.matches(":focus-within")&&!n.matches(":focus"))&&(n.blur(),te(t))})}function te(t){t.classList.remove("has-focus")}function Ne(t,e,n,r){if(!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s;if(i){let o=i.split(" ").map(a=>a.length?`*${a}*`:"").join(" ");s=r.index.search(o)}else s=[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o`,d=he(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` - ${he(l.parent,i)}.${d}`);let m=document.createElement("li");m.classList.value=l.classes??"";let p=document.createElement("a");p.href=r.base+l.url,p.innerHTML=u+d,m.append(p),p.addEventListener("focus",()=>{e.querySelector(".current")?.classList.remove("current"),m.classList.add("current")}),e.appendChild(m)}}function de(t,e,n){let r=t.querySelector(".current");if(!r)r=t.querySelector(n==1?"li:first-child":"li:last-child"),r&&r.classList.add("current");else{let i=r;if(n===1)do i=i.nextElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);else do i=i.previousElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);i?(r.classList.remove("current"),i.classList.add("current")):n===-1&&(r.classList.remove("current"),e.focus())}}function He(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),te(e)}}function he(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(ee(t.substring(s,o)),`${ee(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(ee(t.substring(s))),i.join("")}var Be={"&":"&","<":"<",">":">","'":"'",'"':"""};function ee(t){return t.replace(/[&<>"'"]/g,e=>Be[e])}var I=class{constructor(e){this.el=e.el,this.app=e.app}};var F="mousedown",ye="mousemove",H="mouseup",J={x:0,y:0},me=!1,ne=!1,je=!1,D=!1,ve=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(ve?"is-mobile":"not-mobile");ve&&"ontouchstart"in document.documentElement&&(je=!0,F="touchstart",ye="touchmove",H="touchend");document.addEventListener(F,t=>{ne=!0,D=!1;let e=F=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(ye,t=>{if(ne&&!D){let e=F=="touchstart"?t.targetTouches[0]:t,n=J.x-(e.pageX||0),r=J.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(H,()=>{ne=!1});document.addEventListener("click",t=>{me&&(t.preventDefault(),t.stopImmediatePropagation(),me=!1)});var X=class extends I{constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(H,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(F,n=>this.onDocumentPointerDown(n)),document.addEventListener(H,n=>this.onDocumentPointerUp(n))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(e){D||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!D&&this.active&&e.target.closest(".col-sidebar")){let n=e.target.closest("a");if(n){let r=window.location.href;r.indexOf("#")!=-1&&(r=r.substring(0,r.indexOf("#"))),n.href.substring(0,r.length)==r&&setTimeout(()=>this.setActive(!1),250)}}}};var re;try{re=localStorage}catch{re={getItem(){return null},setItem(){}}}var Q=re;var ge=document.head.appendChild(document.createElement("style"));ge.dataset.for="filters";var Y=class extends I{constructor(e){super(e),this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),ge.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } -`,this.app.updateIndexVisibility()}fromLocalStorage(){let e=Q.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){Q.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),this.app.updateIndexVisibility()}};var Z=class extends I{constructor(e){super(e),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let n=Q.getItem(this.key);this.el.open=n?n==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let r=this.summary.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.href)}),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function Ee(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,xe(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),xe(t.value)})}function xe(t){document.documentElement.dataset.theme=t}var K;function we(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",Le),Le())}async function Le(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let n=await(await fetch(window.navigationData)).arrayBuffer(),r=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();K=t.dataset.base,K.endsWith("/")||(K+="/"),t.innerHTML="";for(let s of i)Se(s,t,[]);window.app.createComponents(t),window.app.showPage(),window.app.ensureActivePageVisible()}function Se(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-accordion`:"tsd-accordion";let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.dataset.key=i.join("$"),o.innerHTML='',be(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let u of t.children)Se(u,l,i)}else be(t,r,t.class)}function be(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=K+t.path,n&&(r.className=n),location.pathname===r.pathname&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else e.appendChild(document.createElement("span")).textContent=t.text}G(X,"a[data-toggle]");G(Z,".tsd-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var Te=document.getElementById("tsd-theme");Te&&Ee(Te);var qe=new U;Object.defineProperty(window,"app",{value:qe});fe();we();})(); +"use strict";(()=>{var Pe=Object.create;var ie=Object.defineProperty;var Oe=Object.getOwnPropertyDescriptor;var _e=Object.getOwnPropertyNames;var Re=Object.getPrototypeOf,Me=Object.prototype.hasOwnProperty;var Fe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var De=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of _e(e))!Me.call(t,i)&&i!==n&&ie(t,i,{get:()=>e[i],enumerable:!(r=Oe(e,i))||r.enumerable});return t};var Ae=(t,e,n)=>(n=t!=null?Pe(Re(t)):{},De(e||!t||!t.__esModule?ie(n,"default",{value:t,enumerable:!0}):n,t));var ue=Fe((ae,le)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var d=t.utils.clone(n)||{};d.position=[a,u],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. +`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(n+=r[u+1]*i[d+1],u+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),m=s.str.charAt(1),p;m in s.node.edges?p=s.node.edges[m]:(p=new t.TokenSet,s.node.edges[m]=p),s.str.length==1&&(p.final=!0),i.push({node:p,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof ae=="object"?le.exports=n():e.lunr=n()}(this,function(){return t})})()});var se=[];function G(t,e){se.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible()),document.body.style.display||(this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}createComponents(e){se.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}showPage(){document.body.style.display&&(document.body.style.removeProperty("display"),this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}scrollToHash(){if(location.hash){let e=document.getElementById(location.hash.substring(1));if(!e)return;e.scrollIntoView({behavior:"instant",block:"start"})}}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e&&!Ve(e)){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r,document.querySelector(".col-sidebar").scrollTop=r}}updateIndexVisibility(){let e=document.querySelector(".tsd-index-content"),n=e?.open;e&&(e.open=!0),document.querySelectorAll(".tsd-index-section").forEach(r=>{r.style.display="block";let i=Array.from(r.querySelectorAll(".tsd-index-link")).every(s=>s.offsetParent==null);r.style.display=i?"none":"block"}),e&&(e.open=n)}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(!n)return;let r=n.offsetParent==null,i=n;for(;i!==document.body;)i instanceof HTMLDetailsElement&&(i.open=!0),i=i.parentElement;if(n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let s=document.createElement("p");s.classList.add("warning"),s.textContent=window.translations.normally_hidden,n.prepend(s)}r&&e.scrollIntoView()}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent=window.translations.copied,e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent=window.translations.copy},100)},1e3)})})}};function Ve(t){let e=t.getBoundingClientRect(),n=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(e.bottom<0||e.top-n>=0)}var oe=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var pe=Ae(ue());async function ce(t,e){if(!window.searchData)return;let n=await fetch(window.searchData),r=new Blob([await n.arrayBuffer()]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();t.data=i,t.index=pe.Index.load(i.index),e.classList.remove("loading"),e.classList.add("ready")}function fe(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:t.dataset.base+"/"},n=document.getElementById("tsd-search-script");t.classList.add("loading"),n&&(n.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),n.addEventListener("load",()=>{ce(e,t)}),ce(e,t));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");i.addEventListener("mouseup",()=>{te(t)}),r.addEventListener("focus",()=>t.classList.add("has-focus")),He(t,i,r,e)}function He(t,e,n,r){n.addEventListener("input",oe(()=>{Ne(t,e,n,r)},200)),n.addEventListener("keydown",i=>{i.key=="Enter"?Be(e,t):i.key=="ArrowUp"?(de(e,n,-1),i.preventDefault()):i.key==="ArrowDown"&&(de(e,n,1),i.preventDefault())}),document.body.addEventListener("keypress",i=>{i.altKey||i.ctrlKey||i.metaKey||!n.matches(":focus")&&i.key==="/"&&(i.preventDefault(),n.focus())}),document.body.addEventListener("keyup",i=>{t.classList.contains("has-focus")&&(i.key==="Escape"||!e.matches(":focus-within")&&!n.matches(":focus"))&&(n.blur(),te(t))})}function te(t){t.classList.remove("has-focus")}function Ne(t,e,n,r){if(!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s;if(i){let o=i.split(" ").map(a=>a.length?`*${a}*`:"").join(" ");s=r.index.search(o)}else s=[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o`,d=he(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` + ${he(l.parent,i)}.${d}`);let m=document.createElement("li");m.classList.value=l.classes??"";let p=document.createElement("a");p.href=r.base+l.url,p.innerHTML=u+d,m.append(p),p.addEventListener("focus",()=>{e.querySelector(".current")?.classList.remove("current"),m.classList.add("current")}),e.appendChild(m)}}function de(t,e,n){let r=t.querySelector(".current");if(!r)r=t.querySelector(n==1?"li:first-child":"li:last-child"),r&&r.classList.add("current");else{let i=r;if(n===1)do i=i.nextElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);else do i=i.previousElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);i?(r.classList.remove("current"),i.classList.add("current")):n===-1&&(r.classList.remove("current"),e.focus())}}function Be(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),te(e)}}function he(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(ee(t.substring(s,o)),`${ee(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(ee(t.substring(s))),i.join("")}var je={"&":"&","<":"<",">":">","'":"'",'"':"""};function ee(t){return t.replace(/[&<>"'"]/g,e=>je[e])}var I=class{constructor(e){this.el=e.el,this.app=e.app}};var F="mousedown",ye="mousemove",N="mouseup",J={x:0,y:0},me=!1,ne=!1,qe=!1,D=!1,ve=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(ve?"is-mobile":"not-mobile");ve&&"ontouchstart"in document.documentElement&&(qe=!0,F="touchstart",ye="touchmove",N="touchend");document.addEventListener(F,t=>{ne=!0,D=!1;let e=F=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(ye,t=>{if(ne&&!D){let e=F=="touchstart"?t.targetTouches[0]:t,n=J.x-(e.pageX||0),r=J.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(N,()=>{ne=!1});document.addEventListener("click",t=>{me&&(t.preventDefault(),t.stopImmediatePropagation(),me=!1)});var X=class extends I{constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(N,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(F,n=>this.onDocumentPointerDown(n)),document.addEventListener(N,n=>this.onDocumentPointerUp(n))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(e){D||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!D&&this.active&&e.target.closest(".col-sidebar")){let n=e.target.closest("a");if(n){let r=window.location.href;r.indexOf("#")!=-1&&(r=r.substring(0,r.indexOf("#"))),n.href.substring(0,r.length)==r&&setTimeout(()=>this.setActive(!1),250)}}}};var re;try{re=localStorage}catch{re={getItem(){return null},setItem(){}}}var Q=re;var ge=document.head.appendChild(document.createElement("style"));ge.dataset.for="filters";var Y=class extends I{constructor(e){super(e),this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),ge.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } +`,this.app.updateIndexVisibility()}fromLocalStorage(){let e=Q.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){Q.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),this.app.updateIndexVisibility()}};var Z=class extends I{constructor(e){super(e),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let n=Q.getItem(this.key);this.el.open=n?n==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let r=this.summary.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.href)}),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function Ee(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,xe(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),xe(t.value)})}function xe(t){document.documentElement.dataset.theme=t}var K;function we(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",Le),Le())}async function Le(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let n=await(await fetch(window.navigationData)).arrayBuffer(),r=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();K=t.dataset.base,K.endsWith("/")||(K+="/"),t.innerHTML="";for(let s of i)Se(s,t,[]);window.app.createComponents(t),window.app.showPage(),window.app.ensureActivePageVisible()}function Se(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-accordion`:"tsd-accordion";let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.dataset.key=i.join("$"),o.innerHTML='',be(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let u of t.children)Se(u,l,i)}else be(t,r,t.class)}function be(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=K+t.path,n&&(r.className=n),location.pathname===r.pathname&&!r.href.includes("#")&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else{let r=e.appendChild(document.createElement("span"));r.innerHTML='',r.appendChild(document.createElement("span")).textContent=t.text}}G(X,"a[data-toggle]");G(Z,".tsd-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var Te=document.getElementById("tsd-theme");Te&&Ee(Te);var $e=new U;Object.defineProperty(window,"app",{value:$e});fe();we();})(); /*! Bundled license information: lunr/lunr.js: diff --git a/api/leyning/assets/navigation.js b/api/leyning/assets/navigation.js index e6b4d45..06b1103 100644 --- a/api/leyning/assets/navigation.js +++ b/api/leyning/assets/navigation.js @@ -1 +1 @@ -window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAE5XV32+bMBAH8P+F52jpsrbT8rZ0iyLRNNWo1odqDxdyCVaMjeyDLZr2v08JtGAwtvvq+96HH/LZL38jwj8UzaOEFBOHJ7mQkq+hiCZRAZRF84gJQrWHFPW0l/mQUc6jSXRkYhfNZze3/yZv3FfOTpC1Cp0K1NN6tdd39eXzx5tZr1eS8RJt+6XgE1awJ1DD57+u+/rv8SSYOPTbm+XA7gVoHBHOpUDlAXLUI8ylFug8gtIZrCDJoCphBDRDgXKSwXYLtJKc7eA0IpuhQPkZ8ThONlWfVX/TGmnw0W3FZyQFpgz4D4SdZVuYVa91GSLL7n4r+ITFZhO3zRUoBluOenpeN3s/ddtS4GnJgfChzH+i0t1ttS9FSkwKPR2mTPL2uktyKdCqnAu+xmYaR/ubuoPZS5UD1adKkklFNmsQCgSfGWULKY8+8zXnYA9IzaZdSjUYlJa15d7JxhgsxxiM16PihevY+9DhkeTE7YfTyENiPC2l+l6hsO4MazAI3ohvQNad38+4ufqbzjnrMJoJN9Uch4MzytDMkAPMQC9RE6uA26hO2YFwKY9l4XLMhJca34bduoPJ4Yj2i7Wl+pkw7hEU+bhLJoxLyjwHZR3lYcpDNqmlkrnzLfs5B1tcfvSTrO8sG2gmHJQ2bk89s2H9jItzXW464E77rRjhna7umbAjRsAHLUvOY3W+Ju50NaoZKR/ZnN5rJlL7LAxTA/LXf7vuve/5CwAA" \ No newline at end of file +window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAE5XVUW/TMBAH8O+S54pCYUP0jQ6iSlnXikzsYeLhml4bK44d2U6gQnx31CZb4tixvVff/36pK5/9/DdS+EdFyyhVgrDTI19xTjdQRbOoApVHy4gwheIIGcr5KPMuVyWNZlFB2CFaLm5u/81eua+UnCHvFXWuUM7b1VHf+y+fP9wsRr1caT+ib78WfMIajgqE+f2X9dD+neCVnEKuRZ90j2dG2GlsdMuB3SuQOCFcSoHKA5RobGZYC3R2IGQOa0hzaGqYAPVQoJzmsN+DWnNKDnCekPVQoPyEWEyTXdVntXvaoDI23Vd8RlphRoD+QDhYjoVe9VrXcbTMyWvBJ6y226RvbkAQ2FOU88u63vtx2JYBzWoKCh/q8icKOTxWx5plinAm52ZKJ28/DUnKGVqVS8HX2I3kZH9XdzBHLkpQ7f2U5lwom2WEAsEnovIV54XPfMk52BOq7tDGXBiD0rO23BvZBIPlBIPxdlS8cBt7G2peSU7cfjlNfCTBc8zF9waZ9WRYg0Hwln0DZT3544yba/d0yVmHUU+4qe46NO4oTdNDDjAHGaNUpAFqowZlB0I5L+rK5egJLzV9DId1B1NCgfaHtafGmTBuB0L5uGsmjEvrsgRhHWUz5SG7VCx46fyV45yDra5/9CNv3ywbqCcclNReT7mwYeOMi3M9bjLgTfstiMI72dwTZke0gA+Ka0oTcXkm7mQzqWkpH9nd3hvCMvssmCmD/PUfPkoJkEMMAAA=" \ No newline at end of file diff --git a/api/leyning/assets/search.js b/api/leyning/assets/search.js index 04fedf9..2fcaafb 100644 --- a/api/leyning/assets/search.js +++ b/api/leyning/assets/search.js @@ -1 +1 @@ -window.searchData = "data:application/octet-stream;base64,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"; \ No newline at end of file +window.searchData = "data:application/octet-stream;base64,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"; \ No newline at end of file diff --git a/api/leyning/assets/style.css b/api/leyning/assets/style.css index 9d619a6..178bfb0 100644 --- a/api/leyning/assets/style.css +++ b/api/leyning/assets/style.css @@ -4,11 +4,17 @@ --light-color-background-secondary: #eff0f1; --light-color-warning-text: #222; --light-color-background-warning: #e6e600; - --light-color-icon-background: var(--light-color-background); --light-color-accent: #c5c7c9; --light-color-active-menu-item: var(--light-color-accent); --light-color-text: #222; --light-color-text-aside: #6e6e6e; + + --light-color-icon-background: var(--light-color-background); + --light-color-icon-text: var(--light-color-text); + + --light-color-comment-tag-text: var(--light-color-text); + --light-color-comment-tag: var(--light-color-background); + --light-color-link: #1f70c2; --light-color-focus-outline: #3584e4; @@ -22,16 +28,17 @@ --light-color-ts-function: #572be7; --light-color-ts-class: #1f70c2; --light-color-ts-interface: #108024; - --light-color-ts-constructor: var(--light-color-ts-class); - --light-color-ts-property: var(--light-color-ts-variable); - --light-color-ts-method: var(--light-color-ts-function); + --light-color-ts-constructor: #4d7fff; + --light-color-ts-property: #ff984d; + --light-color-ts-method: #ff4db8; + --light-color-ts-reference: #ff4d82; --light-color-ts-call-signature: var(--light-color-ts-method); --light-color-ts-index-signature: var(--light-color-ts-property); --light-color-ts-constructor-signature: var(--light-color-ts-constructor); --light-color-ts-parameter: var(--light-color-ts-variable); /* type literal not included as links will never be generated to it */ --light-color-ts-type-parameter: #a55c0e; - --light-color-ts-accessor: var(--light-color-ts-property); + --light-color-ts-accessor: #ff4d4d; --light-color-ts-get-signature: var(--light-color-ts-accessor); --light-color-ts-set-signature: var(--light-color-ts-accessor); --light-color-ts-type-alias: #d51270; @@ -46,11 +53,17 @@ --dark-color-background-secondary: #1e2024; --dark-color-background-warning: #bebe00; --dark-color-warning-text: #222; - --dark-color-icon-background: var(--dark-color-background-secondary); --dark-color-accent: #9096a2; --dark-color-active-menu-item: #5d5d6a; --dark-color-text: #f5f5f5; --dark-color-text-aside: #dddddd; + + --dark-color-icon-background: var(--dark-color-background-secondary); + --dark-color-icon-text: var(--dark-color-text); + + --dark-color-comment-tag-text: var(--dark-color-text); + --dark-color-comment-tag: var(--dark-color-background); + --dark-color-link: #00aff4; --dark-color-focus-outline: #4c97f2; @@ -64,16 +77,17 @@ --dark-color-ts-function: #a280ff; --dark-color-ts-class: #8ac4ff; --dark-color-ts-interface: #6cff87; - --dark-color-ts-constructor: var(--dark-color-ts-class); - --dark-color-ts-property: var(--dark-color-ts-variable); - --dark-color-ts-method: var(--dark-color-ts-function); + --dark-color-ts-constructor: #4d7fff; + --dark-color-ts-property: #ff984d; + --dark-color-ts-method: #ff4db8; + --dark-color-ts-reference: #ff4d82; --dark-color-ts-call-signature: var(--dark-color-ts-method); --dark-color-ts-index-signature: var(--dark-color-ts-property); --dark-color-ts-constructor-signature: var(--dark-color-ts-constructor); --dark-color-ts-parameter: var(--dark-color-ts-variable); /* type literal not included as links will never be generated to it */ --dark-color-ts-type-parameter: #e07d13; - --dark-color-ts-accessor: var(--dark-color-ts-property); + --dark-color-ts-accessor: #ff4d4d; --dark-color-ts-get-signature: var(--dark-color-ts-accessor); --dark-color-ts-set-signature: var(--dark-color-ts-accessor); --dark-color-ts-type-alias: #ff6492; @@ -90,15 +104,22 @@ --color-background-secondary: var(--light-color-background-secondary); --color-background-warning: var(--light-color-background-warning); --color-warning-text: var(--light-color-warning-text); - --color-icon-background: var(--light-color-icon-background); --color-accent: var(--light-color-accent); --color-active-menu-item: var(--light-color-active-menu-item); --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); + + --color-icon-background: var(--light-color-icon-background); + --color-icon-text: var(--light-color-icon-text); + + --color-comment-tag-text: var(--light-color-text); + --color-comment-tag: var(--light-color-background); + --color-link: var(--light-color-link); --color-focus-outline: var(--light-color-focus-outline); --color-ts-keyword: var(--light-color-ts-keyword); + --color-ts-project: var(--light-color-ts-project); --color-ts-module: var(--light-color-ts-module); --color-ts-namespace: var(--light-color-ts-namespace); --color-ts-enum: var(--light-color-ts-enum); @@ -110,6 +131,7 @@ --color-ts-constructor: var(--light-color-ts-constructor); --color-ts-property: var(--light-color-ts-property); --color-ts-method: var(--light-color-ts-method); + --color-ts-reference: var(--light-color-ts-reference); --color-ts-call-signature: var(--light-color-ts-call-signature); --color-ts-index-signature: var(--light-color-ts-index-signature); --color-ts-constructor-signature: var( @@ -134,15 +156,22 @@ --color-background-secondary: var(--dark-color-background-secondary); --color-background-warning: var(--dark-color-background-warning); --color-warning-text: var(--dark-color-warning-text); - --color-icon-background: var(--dark-color-icon-background); --color-accent: var(--dark-color-accent); --color-active-menu-item: var(--dark-color-active-menu-item); --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); + + --color-icon-background: var(--dark-color-icon-background); + --color-icon-text: var(--dark-color-icon-text); + + --color-comment-tag-text: var(--dark-color-text); + --color-comment-tag: var(--dark-color-background); + --color-link: var(--dark-color-link); --color-focus-outline: var(--dark-color-focus-outline); --color-ts-keyword: var(--dark-color-ts-keyword); + --color-ts-project: var(--dark-color-ts-project); --color-ts-module: var(--dark-color-ts-module); --color-ts-namespace: var(--dark-color-ts-namespace); --color-ts-enum: var(--dark-color-ts-enum); @@ -154,6 +183,7 @@ --color-ts-constructor: var(--dark-color-ts-constructor); --color-ts-property: var(--dark-color-ts-property); --color-ts-method: var(--dark-color-ts-method); + --color-ts-reference: var(--dark-color-ts-reference); --color-ts-call-signature: var(--dark-color-ts-call-signature); --color-ts-index-signature: var(--dark-color-ts-index-signature); --color-ts-constructor-signature: var( @@ -190,10 +220,16 @@ body { --color-active-menu-item: var(--light-color-active-menu-item); --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); + --color-icon-text: var(--light-color-icon-text); + + --color-comment-tag-text: var(--light-color-text); + --color-comment-tag: var(--light-color-background); + --color-link: var(--light-color-link); --color-focus-outline: var(--light-color-focus-outline); --color-ts-keyword: var(--light-color-ts-keyword); + --color-ts-project: var(--light-color-ts-project); --color-ts-module: var(--light-color-ts-module); --color-ts-namespace: var(--light-color-ts-namespace); --color-ts-enum: var(--light-color-ts-enum); @@ -205,6 +241,7 @@ body { --color-ts-constructor: var(--light-color-ts-constructor); --color-ts-property: var(--light-color-ts-property); --color-ts-method: var(--light-color-ts-method); + --color-ts-reference: var(--light-color-ts-reference); --color-ts-call-signature: var(--light-color-ts-call-signature); --color-ts-index-signature: var(--light-color-ts-index-signature); --color-ts-constructor-signature: var( @@ -232,10 +269,16 @@ body { --color-active-menu-item: var(--dark-color-active-menu-item); --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); + --color-icon-text: var(--dark-color-icon-text); + + --color-comment-tag-text: var(--dark-color-text); + --color-comment-tag: var(--dark-color-background); + --color-link: var(--dark-color-link); --color-focus-outline: var(--dark-color-focus-outline); --color-ts-keyword: var(--dark-color-ts-keyword); + --color-ts-project: var(--dark-color-ts-project); --color-ts-module: var(--dark-color-ts-module); --color-ts-namespace: var(--dark-color-ts-namespace); --color-ts-enum: var(--dark-color-ts-enum); @@ -247,6 +290,7 @@ body { --color-ts-constructor: var(--dark-color-ts-constructor); --color-ts-property: var(--dark-color-ts-property); --color-ts-method: var(--dark-color-ts-method); + --color-ts-reference: var(--dark-color-ts-reference); --color-ts-call-signature: var(--dark-color-ts-call-signature); --color-ts-index-signature: var(--dark-color-ts-index-signature); --color-ts-constructor-signature: var( @@ -439,7 +483,6 @@ pre { pre { position: relative; - white-space: pre; white-space: pre-wrap; word-wrap: break-word; padding: 10px; @@ -860,6 +903,12 @@ a.tsd-index-link { margin-bottom: 0.75rem; } +.tsd-no-select { + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} .tsd-kind-icon { margin-right: 0.5rem; width: 1.25rem; @@ -867,10 +916,6 @@ a.tsd-index-link { min-width: 1.25rem; min-height: 1.25rem; } -.tsd-kind-icon path { - transform-origin: center; - transform: scale(1.1); -} .tsd-signature > .tsd-kind-icon { margin-right: 0.8rem; } @@ -1242,6 +1287,9 @@ img { .tsd-kind-method { color: var(--color-ts-method); } +.tsd-kind-reference { + color: var(--color-ts-reference); +} .tsd-kind-call-signature { color: var(--color-ts-call-signature); } @@ -1254,9 +1302,6 @@ img { .tsd-kind-parameter { color: var(--color-ts-parameter); } -.tsd-kind-type-literal { - color: var(--color-ts-type-literal); -} .tsd-kind-type-parameter { color: var(--color-ts-type-parameter); } @@ -1435,7 +1480,7 @@ img { } .site-menu { - margin-top: 1rem 0; + margin-top: 1rem; } .page-menu, diff --git a/api/leyning/functions/calculateNumVerses.html b/api/leyning/functions/calculateNumVerses.html index 4258e60..9dd01c9 100644 --- a/api/leyning/functions/calculateNumVerses.html +++ b/api/leyning/functions/calculateNumVerses.html @@ -1,4 +1,4 @@ calculateNumVerses | @hebcal/leyning

      Function calculateNumVerses

      • Calculates the number of verses in an aliyah or haftara based on the b (begin verse), e (end verse) and k (book). Modifies aliyah by setting the v field.

        -

        Parameters

        Returns number

      \ No newline at end of file +

      Parameters

      Returns number

      diff --git a/api/leyning/functions/clone.html b/api/leyning/functions/clone.html index c8e6bf9..f47f091 100644 --- a/api/leyning/functions/clone.html +++ b/api/leyning/functions/clone.html @@ -1,2 +1,2 @@ clone | @hebcal/leyning

      Function clone

      • Makes a deep copy of the src object using JSON stringify and parse

        -

        Parameters

        • src: any

        Returns any

      \ No newline at end of file +

      Parameters

      • src: any

      Returns any

      diff --git a/api/leyning/functions/cloneHaftara.html b/api/leyning/functions/cloneHaftara.html index 70975cb..4bc2518 100644 --- a/api/leyning/functions/cloneHaftara.html +++ b/api/leyning/functions/cloneHaftara.html @@ -1 +1 @@ -cloneHaftara | @hebcal/leyning

      Function cloneHaftara

      \ No newline at end of file +cloneHaftara | @hebcal/leyning

      Function cloneHaftara

      diff --git a/api/leyning/functions/formatAliyahShort.html b/api/leyning/functions/formatAliyahShort.html index ec0404a..9ad720a 100644 --- a/api/leyning/functions/formatAliyahShort.html +++ b/api/leyning/functions/formatAliyahShort.html @@ -1,2 +1,2 @@ formatAliyahShort | @hebcal/leyning

      Function formatAliyahShort

      • Formats an aliyah object like "Numbers 28:9-15"

        -

        Parameters

        • aliyah: Aliyah
        • showBook: boolean

        Returns string

      \ No newline at end of file +

      Parameters

      • aliyah: Aliyah
      • showBook: boolean

      Returns string

      diff --git a/api/leyning/functions/formatAliyahWithBook.html b/api/leyning/functions/formatAliyahWithBook.html index 7b755bd..766db27 100644 --- a/api/leyning/functions/formatAliyahWithBook.html +++ b/api/leyning/functions/formatAliyahWithBook.html @@ -1,2 +1,2 @@ formatAliyahWithBook | @hebcal/leyning

      Function formatAliyahWithBook

      • Formats an aliyah object like "Numbers 28:9-28:15"

        -

        Parameters

        Returns string

      \ No newline at end of file +

      Parameters

      Returns string

      diff --git a/api/leyning/functions/getLeyningForHoliday.html b/api/leyning/functions/getLeyningForHoliday.html index 9d47a53..a01efb2 100644 --- a/api/leyning/functions/getLeyningForHoliday.html +++ b/api/leyning/functions/getLeyningForHoliday.html @@ -3,4 +3,4 @@

      Parameters

      • ev: Event

        the Hebcal event associated with this leyning

      • Optionalil: boolean = false

        true if Israel holiday scheme

      Returns Leyning | undefined

      map of aliyot

      -
      \ No newline at end of file +
      diff --git a/api/leyning/functions/getLeyningForHolidayKey.html b/api/leyning/functions/getLeyningForHolidayKey.html index 8771578..c2a4841 100644 --- a/api/leyning/functions/getLeyningForHolidayKey.html +++ b/api/leyning/functions/getLeyningForHolidayKey.html @@ -2,4 +2,4 @@ (untranslated) string used in holiday-readings.json. Returns some of full kriyah aliyot, special Maftir, special Haftarah

      Parameters

      • Optionalkey: string

        name from holiday-readings.json to find

        -
      • OptionalcholHaMoedDay: number
      • Optionalil: boolean

      Returns Leyning | undefined

      \ No newline at end of file +
    • OptionalcholHaMoedDay: number
    • Optionalil: boolean
    • Returns Leyning | undefined

      diff --git a/api/leyning/functions/getLeyningForParsha.html b/api/leyning/functions/getLeyningForParsha.html index e500dfa..d3e5712 100644 --- a/api/leyning/functions/getLeyningForParsha.html +++ b/api/leyning/functions/getLeyningForParsha.html @@ -1,3 +1,3 @@ getLeyningForParsha | @hebcal/leyning

      Function getLeyningForParsha

      • Looks up regular leyning for a weekly parsha with no special readings

        Parameters

        • parsha: string | string[]

          untranslated name like 'Pinchas' or ['Pinchas'] or ['Matot','Masei']

          -

        Returns Leyning

      \ No newline at end of file +

      Returns Leyning

      diff --git a/api/leyning/functions/getLeyningForParshaHaShavua.html b/api/leyning/functions/getLeyningForParshaHaShavua.html index e5ebb1f..11cc7a3 100644 --- a/api/leyning/functions/getLeyningForParshaHaShavua.html +++ b/api/leyning/functions/getLeyningForParshaHaShavua.html @@ -3,4 +3,4 @@

      Parameters

      • ev: Event

        the Hebcal event associated with this leyning

      • Optionalil: boolean = false

        in Israel

      Returns Leyning

      map of aliyot

      -
      \ No newline at end of file +
      diff --git a/api/leyning/functions/getLeyningKeyForEvent.html b/api/leyning/functions/getLeyningKeyForEvent.html index 8016ca5..181b3df 100644 --- a/api/leyning/functions/getLeyningKeyForEvent.html +++ b/api/leyning/functions/getLeyningKeyForEvent.html @@ -2,4 +2,4 @@

      Parameters

      • ev: Event

        event

      • Optionalil: boolean = false

        true if Israel holiday scheme

      Returns string | undefined

      key to look up in holiday-reading.json

      -
      \ No newline at end of file +
      diff --git a/api/leyning/functions/getLeyningOnDate.html b/api/leyning/functions/getLeyningOnDate.html index bbbfce9..8ecdecd 100644 --- a/api/leyning/functions/getLeyningOnDate.html +++ b/api/leyning/functions/getLeyningOnDate.html @@ -8,4 +8,4 @@

      Parameters

      • hdate: HDate

        Hebrew Date

      • il: boolean

        in Israel

      • Optionalwantarray: boolean = false

        to return an array of 0 or more readings

        -

      Returns Leyning | LeyningWeekday | (Leyning | LeyningWeekday)[] | undefined

      \ No newline at end of file +

      Returns Leyning | LeyningWeekday | (Leyning | LeyningWeekday)[] | undefined

      diff --git a/api/leyning/functions/getParshaDates.html b/api/leyning/functions/getParshaDates.html index a5b7b3a..0f0fc62 100644 --- a/api/leyning/functions/getParshaDates.html +++ b/api/leyning/functions/getParshaDates.html @@ -1 +1 @@ -getParshaDates | @hebcal/leyning

      Function getParshaDates

      \ No newline at end of file +getParshaDates | @hebcal/leyning

      Function getParshaDates

      diff --git a/api/leyning/functions/getWeekdayReading.html b/api/leyning/functions/getWeekdayReading.html index 0f8b44f..f2d2de7 100644 --- a/api/leyning/functions/getWeekdayReading.html +++ b/api/leyning/functions/getWeekdayReading.html @@ -1,3 +1,3 @@ getWeekdayReading | @hebcal/leyning

      Function getWeekdayReading

      • Looks up Monday/Thursday aliyot for a regular parsha

        Parameters

        • parsha: string | string[]

          untranslated name like 'Pinchas' or ['Pinchas'] or ['Matot','Masei']

          -

        Returns AliyotMap

      \ No newline at end of file +

      Returns AliyotMap

      diff --git a/api/leyning/functions/hasFestival.html b/api/leyning/functions/hasFestival.html index 807b503..86bf193 100644 --- a/api/leyning/functions/hasFestival.html +++ b/api/leyning/functions/hasFestival.html @@ -1,2 +1,2 @@ hasFestival | @hebcal/leyning

      Function hasFestival

      • Is there a special festival Torah Reading for holiday?

        -

        Parameters

        • holiday: string

        Returns boolean

      \ No newline at end of file +

      Parameters

      • holiday: string

      Returns boolean

      diff --git a/api/leyning/functions/lookupFestival.html b/api/leyning/functions/lookupFestival.html index 9e0c6f8..eab0b7d 100644 --- a/api/leyning/functions/lookupFestival.html +++ b/api/leyning/functions/lookupFestival.html @@ -1,2 +1,2 @@ lookupFestival | @hebcal/leyning

      Function lookupFestival

      • Returns the raw metadata for festival reading for holiday

        -

        Parameters

        • holiday: string

        Returns JsonFestivalLeyning | undefined

      \ No newline at end of file +

      Parameters

      • holiday: string

      Returns JsonFestivalLeyning | undefined

      diff --git a/api/leyning/functions/lookupParsha.html b/api/leyning/functions/lookupParsha.html index b9cd677..fe68b8b 100644 --- a/api/leyning/functions/lookupParsha.html +++ b/api/leyning/functions/lookupParsha.html @@ -1,3 +1,3 @@ lookupParsha | @hebcal/leyning

      Function lookupParsha

      • Returns the parsha metadata

        Parameters

        • parsha: string | string[]

          untranslated name like 'Pinchas' or ['Pinchas'] or ['Matot','Masei']

          -

        Returns ParshaMeta

      \ No newline at end of file +

      Returns ParshaMeta

      diff --git a/api/leyning/functions/makeLeyningNames.html b/api/leyning/functions/makeLeyningNames.html index e87c519..11440d0 100644 --- a/api/leyning/functions/makeLeyningNames.html +++ b/api/leyning/functions/makeLeyningNames.html @@ -1,3 +1,3 @@ makeLeyningNames | @hebcal/leyning

      Function makeLeyningNames

      • Transliterated English and Hebrew names of this parsha

        Parameters

        • parsha: string[]

          untranslated name like ['Pinchas'] or ['Matot','Masei']

          -

        Returns LeyningNames

      \ No newline at end of file +

      Returns LeyningNames

      diff --git a/api/leyning/functions/makeLeyningParts.html b/api/leyning/functions/makeLeyningParts.html index 1fcf3ac..7e04191 100644 --- a/api/leyning/functions/makeLeyningParts.html +++ b/api/leyning/functions/makeLeyningParts.html @@ -1,3 +1,3 @@ makeLeyningParts | @hebcal/leyning

      Function makeLeyningParts

      • Summarizes an AliyotMap by collapsing all adjacent aliyot. Finds any non-overlapping parts (e.g. special 7th aliyah or maftir)

        -

        Parameters

        Returns Aliyah[]

      \ No newline at end of file +

      Parameters

      Returns Aliyah[]

      diff --git a/api/leyning/functions/makeLeyningSummary.html b/api/leyning/functions/makeLeyningSummary.html index c1a8928..815e290 100644 --- a/api/leyning/functions/makeLeyningSummary.html +++ b/api/leyning/functions/makeLeyningSummary.html @@ -1,2 +1,2 @@ makeLeyningSummary | @hebcal/leyning

      Function makeLeyningSummary

      • Makes a summary of the leyning, like "Genesis 6:9-11:32"

        -

        Parameters

        Returns string

      \ No newline at end of file +

      Parameters

      Returns string

      diff --git a/api/leyning/functions/makeSummaryFromParts.html b/api/leyning/functions/makeSummaryFromParts.html index 7141854..cb93934 100644 --- a/api/leyning/functions/makeSummaryFromParts.html +++ b/api/leyning/functions/makeSummaryFromParts.html @@ -3,4 +3,4 @@ by commas, e.g. Isaiah 6:1-7:6, 9:5-6. Verse ranges from different books are separated by semicolons, e.g. Genesis 21:1-34; Numbers 29:1-6.

      -

      Parameters

      Returns string

      \ No newline at end of file +

      Parameters

      Returns string

      diff --git a/api/leyning/functions/parshaToString.html b/api/leyning/functions/parshaToString.html index 95bf374..a3ad34f 100644 --- a/api/leyning/functions/parshaToString.html +++ b/api/leyning/functions/parshaToString.html @@ -1,3 +1,3 @@ parshaToString | @hebcal/leyning

      Function parshaToString

      • Formats parsha as a string

        Parameters

        • parsha: string | string[]

          untranslated name like 'Pinchas' or ['Pinchas'] or ['Matot','Masei']

          -

        Returns string

      \ No newline at end of file +

      Returns string

      diff --git a/api/leyning/functions/specialReadings2.html b/api/leyning/functions/specialReadings2.html index 198509e..fdfae98 100644 --- a/api/leyning/functions/specialReadings2.html +++ b/api/leyning/functions/specialReadings2.html @@ -6,4 +6,4 @@ (and in some cases the 6th and 7th aliyah, setting reason['7']).

      If a special Haftarah applies, the result will have a haft property pointing to Haftarah object and sets reason.haftara.

      -

      Parameters

      • parsha: string[]
      • hd: HDate
      • il: boolean
      • aliyot: AliyotMap

      Returns SpecialReading

      \ No newline at end of file +

      Parameters

      • parsha: string[]
      • hd: HDate
      • il: boolean
      • aliyot: AliyotMap

      Returns SpecialReading

      diff --git a/api/leyning/functions/sumVerses.html b/api/leyning/functions/sumVerses.html index 3630a1b..892a6d9 100644 --- a/api/leyning/functions/sumVerses.html +++ b/api/leyning/functions/sumVerses.html @@ -1,2 +1,2 @@ sumVerses | @hebcal/leyning

      Function sumVerses

      • Returns the total number of verses in an array of Aliyah (or haftarah) objects

        -

        Parameters

        Returns number

      \ No newline at end of file +

      Parameters

      Returns number

      diff --git a/api/leyning/functions/writeCsvLines.html b/api/leyning/functions/writeCsvLines.html index c4cef0f..580ddfd 100644 --- a/api/leyning/functions/writeCsvLines.html +++ b/api/leyning/functions/writeCsvLines.html @@ -1,2 +1,2 @@ writeCsvLines | @hebcal/leyning

      Function writeCsvLines

      • Formats reading for CSV

        -

        Parameters

        • stream: WriteStream
        • ev: Event
        • reading: Leyning
        • il: boolean
        • isParsha: boolean

        Returns void

      \ No newline at end of file +

      Parameters

      • stream: WriteStream
      • ev: Event
      • reading: Leyning
      • il: boolean
      • isParsha: boolean

      Returns void

      diff --git a/api/leyning/functions/writeFullKriyahCsv.html b/api/leyning/functions/writeFullKriyahCsv.html index 367a199..0873ed5 100644 --- a/api/leyning/functions/writeFullKriyahCsv.html +++ b/api/leyning/functions/writeFullKriyahCsv.html @@ -1 +1 @@ -writeFullKriyahCsv | @hebcal/leyning

      Function writeFullKriyahCsv

      • Parameters

        • stream: WriteStream
        • hyear: number
        • il: boolean

        Returns void

      \ No newline at end of file +writeFullKriyahCsv | @hebcal/leyning

      Function writeFullKriyahCsv

      • Parameters

        • stream: WriteStream
        • hyear: number
        • il: boolean

        Returns void

      diff --git a/api/leyning/functions/writeHolidayMincha.html b/api/leyning/functions/writeHolidayMincha.html index 287b3d0..8ba5a3f 100644 --- a/api/leyning/functions/writeHolidayMincha.html +++ b/api/leyning/functions/writeHolidayMincha.html @@ -1 +1 @@ -writeHolidayMincha | @hebcal/leyning

      Function writeHolidayMincha

      • Parameters

        • stream: WriteStream
        • ev: HolidayEvent
        • il: boolean

        Returns void

      \ No newline at end of file +writeHolidayMincha | @hebcal/leyning

      Function writeHolidayMincha

      • Parameters

        • stream: WriteStream
        • ev: HolidayEvent
        • il: boolean

        Returns void

      diff --git a/api/leyning/index.html b/api/leyning/index.html index 6aebe27..5cfba72 100644 --- a/api/leyning/index.html +++ b/api/leyning/index.html @@ -1,12 +1,12 @@ -@hebcal/leyning

      @hebcal/leyning

      @hebcal/leyning

      Javascript Torah Reading API for Parashat HaShavua and holidays

      -

      Build Status

      +@hebcal/leyning

      @hebcal/leyning

      @hebcal/leyning

      Javascript Torah Reading API for Parashat HaShavua and holidays

      +

      Build Status

      This package includes both traditional (full kriyah) and weekday Torah readings.

      -

      Triennial Torah Readings have moved to @hebcal/triennial

      +

      Triennial Torah Readings have moved to @hebcal/triennial

      $ npm install @hebcal/leyning
       
      import {HebrewCalendar, HDate, Event} from '@hebcal/core';
      import {getLeyningForParshaHaShavua, formatAliyahWithBook} from '@hebcal/leyning';

      const events = HebrewCalendar.calendar({sedrot: true, noHolidays: true});
      const ev = events.find((ev) => ev.getDesc() == 'Parashat Pinchas');
      const reading = getLeyningForParshaHaShavua(ev, false);
      console.log(`${ev.getDesc()}: ${reading.summary}`);
      console.log(`Haftara: ${reading.haftara}`);
      for (const [num, aliyah] of Object.entries(reading.fullkriyah)) {
      const number = num == 'M' ? 'maftir' : `aliyah ${num}`;
      let str = formatAliyahWithBook(aliyah);
      if (reading.reason[num]) {
      str += ' | ' + reading.reason[num];
      }
      str += ` (${aliyah.v} verses)`;
      console.log(`${number}: ${str}`);
      }
      -
      \ No newline at end of file +
      diff --git a/api/leyning/interfaces/StringToBoolMap.html b/api/leyning/interfaces/StringToBoolMap.html index b0e56f6..6f2904c 100644 --- a/api/leyning/interfaces/StringToBoolMap.html +++ b/api/leyning/interfaces/StringToBoolMap.html @@ -1 +1 @@ -StringToBoolMap | @hebcal/leyning

      Interface StringToBoolMap

      Indexable

      • [key: string]: boolean
      \ No newline at end of file +StringToBoolMap | @hebcal/leyning

      Interface StringToBoolMap

      Indexable

      • [key: string]: boolean
      diff --git a/api/leyning/modules.html b/api/leyning/modules.html index 702580b..7e61a81 100644 --- a/api/leyning/modules.html +++ b/api/leyning/modules.html @@ -1,7 +1,8 @@ -@hebcal/leyning

      @hebcal/leyning

      Index

      Interfaces

      StringToBoolMap +@hebcal/leyning
      \ No newline at end of file +
      diff --git a/api/leyning/types/Aliyah.html b/api/leyning/types/Aliyah.html index 6a24409..3edf92f 100644 --- a/api/leyning/types/Aliyah.html +++ b/api/leyning/types/Aliyah.html @@ -4,4 +4,4 @@
    • k: string

      Book (e.g. "Numbers")

    • Optionalp?: number

      parsha number (1=Bereshit, 54=Vezot HaBracha)

    • Optionalreason?: string
    • Optionalv?: number

      number of verses

      -
    • \ No newline at end of file +
      diff --git a/api/leyning/types/AliyotMap.html b/api/leyning/types/AliyotMap.html index c1704d4..d9fc6f2 100644 --- a/api/leyning/types/AliyotMap.html +++ b/api/leyning/types/AliyotMap.html @@ -1 +1 @@ -AliyotMap | @hebcal/leyning

      Type Alias AliyotMap

      AliyotMap: {
          [key: string]: Aliyah;
      }
      \ No newline at end of file +AliyotMap | @hebcal/leyning

      Type Alias AliyotMap

      AliyotMap: {
          [key: string]: Aliyah;
      }
      diff --git a/api/leyning/types/Haftarah.html b/api/leyning/types/Haftarah.html index 7acd346..d04dc7c 100644 --- a/api/leyning/types/Haftarah.html +++ b/api/leyning/types/Haftarah.html @@ -1 +1 @@ -Haftarah | @hebcal/leyning

      Type Alias Haftarah

      Haftarah:
          | Aliyah
          | Aliyah[]
          | JsonFestivalAliyah
          | JsonFestivalAliyah[]
      \ No newline at end of file +Haftarah | @hebcal/leyning

      Type Alias Haftarah

      Haftarah:
          | Aliyah
          | Aliyah[]
          | JsonFestivalAliyah
          | JsonFestivalAliyah[]
      diff --git a/api/leyning/types/Leyning.html b/api/leyning/types/Leyning.html index 59c3e3f..ce5bc7e 100644 --- a/api/leyning/types/Leyning.html +++ b/api/leyning/types/Leyning.html @@ -1 +1 @@ -Leyning | @hebcal/leyning
      \ No newline at end of file +Leyning | @hebcal/leyning
      diff --git a/api/leyning/types/LeyningBase.html b/api/leyning/types/LeyningBase.html index a016a26..765858d 100644 --- a/api/leyning/types/LeyningBase.html +++ b/api/leyning/types/LeyningBase.html @@ -1,4 +1,4 @@ LeyningBase | @hebcal/leyning

      Type Alias LeyningBase

      LeyningBase: {
          name: LeyningNames;
          note?: string;
          summary: string;
          summaryParts?: Aliyah[];
      }

      Leyning base - weekday, parsha hashavua or holiday

      Type declaration

      • name: LeyningNames

        Name of the parsha hashavua or holiday

      • Optionalnote?: string
      • summary: string

        Such as Genesis 1:1 - 6:8

        -
      • OptionalsummaryParts?: Aliyah[]
      \ No newline at end of file +
    • OptionalsummaryParts?: Aliyah[]
    • diff --git a/api/leyning/types/LeyningNames.html b/api/leyning/types/LeyningNames.html index 315d37f..8a6085e 100644 --- a/api/leyning/types/LeyningNames.html +++ b/api/leyning/types/LeyningNames.html @@ -1,4 +1,4 @@ LeyningNames | @hebcal/leyning

      Type Alias LeyningNames

      LeyningNames: {
          en: string;
          he: string;
      }

      Name of the parsha hashavua or holiday

      Type declaration

      • en: string

        English

      • he: string

        Hebrew (with nikud)

        -
      \ No newline at end of file +
      diff --git a/api/leyning/types/LeyningParshaHaShavua.html b/api/leyning/types/LeyningParshaHaShavua.html index 22e07e4..e4297f2 100644 --- a/api/leyning/types/LeyningParshaHaShavua.html +++ b/api/leyning/types/LeyningParshaHaShavua.html @@ -1,4 +1,4 @@ LeyningParshaHaShavua | @hebcal/leyning

      Type Alias LeyningParshaHaShavua

      LeyningParshaHaShavua: LeyningBase & {
          parsha?: string[];
          parshaNum?: number | number[];
      }

      Parashat haShavua - weekday or Shabbat

      Type declaration

      • Optionalparsha?: string[]

        An array of either 1 (regular) or 2 (doubled parsha). undefined for holiday readings

      • OptionalparshaNum?: number | number[]

        1 for Bereshit, 2 for Noach, etc. undefined for holiday readings

        -
      \ No newline at end of file +
      diff --git a/api/leyning/types/LeyningShabbatHoliday.html b/api/leyning/types/LeyningShabbatHoliday.html index 77d112d..7abfb68 100644 --- a/api/leyning/types/LeyningShabbatHoliday.html +++ b/api/leyning/types/LeyningShabbatHoliday.html @@ -1,8 +1,5 @@ -LeyningShabbatHoliday | @hebcal/leyning

      Type Alias LeyningShabbatHoliday

      LeyningShabbatHoliday: LeyningBase & {
          fullkriyah: AliyotMap;
          haft: Aliyah | Aliyah[];
          haftara: string;
          haftaraNumV?: number;
          megillah?: AliyotMap;
          reason?: StringMap;
          seph?: Aliyah | Aliyah[];
          sephardic?: string;
          sephardicNumV?: number;
          triHaftara?: string;
          triHaftaraNumV?: number;
      }

      Shabbat and holiday leyning always has full kriyah and haftarah

      +LeyningShabbatHoliday | @hebcal/leyning

      Type Alias LeyningShabbatHoliday

      LeyningShabbatHoliday: LeyningBase & HaftarahProps & {
          fullkriyah: AliyotMap;
          megillah?: AliyotMap;
          reason?: StringMap;
          seph?: Aliyah | Aliyah[];
          sephardic?: string;
          sephardicNumV?: number;
          triHaftara?: string;
          triHaftaraNumV?: number;
      }

      Shabbat and holiday leyning always has full kriyah and haftarah

      Type declaration

      • fullkriyah: AliyotMap

        Map of aliyot 1 through 7 plus M for maftir

        -
      • haft: Aliyah | Aliyah[]

        Haftarah object

        -
      • haftara: string

        Haftarah, such as Isaiah 42:5 – 43:11

        -
      • OptionalhaftaraNumV?: number

        Number of verses in the Haftarah

      • Optionalmegillah?: AliyotMap

        Song of Songs is read on the sabbath of Passover week, the Book of Ruth on Shavuot, Lamentations on Tisha be-Av, Ecclesiastes on the sabbath of the week of Sukkoth, and the Book of Esther on Purim

      • Optionalreason?: StringMap

        Explanations for special readings, keyed by aliyah number, M for maftir or haftara for Haftarah

      • Optionalseph?: Aliyah | Aliyah[]

        Haftarah object for Sephardim

        @@ -10,4 +7,4 @@
      • OptionalsephardicNumV?: number

        Number of verses in the Haftarah for Sephardim

      • OptionaltriHaftara?: string

        Triennial alternate Haftara

      • OptionaltriHaftaraNumV?: number

        Triennial alternate Haftara number of verses

        -
      \ No newline at end of file +
      diff --git a/api/leyning/types/LeyningWeekday.html b/api/leyning/types/LeyningWeekday.html index 21540cd..42e8a68 100644 --- a/api/leyning/types/LeyningWeekday.html +++ b/api/leyning/types/LeyningWeekday.html @@ -1,3 +1,3 @@ LeyningWeekday | @hebcal/leyning

      Type Alias LeyningWeekday

      LeyningWeekday: LeyningParshaHaShavua & {
          weekday?: AliyotMap;
      }

      Parashat haShavua - weekday

      Type declaration

      • Optionalweekday?: AliyotMap

        Optional map of weekday Torah Readings aliyot 1 through 3 for Monday and Thursday

        -
      \ No newline at end of file +
      diff --git a/api/leyning/types/ParshaMeta.html b/api/leyning/types/ParshaMeta.html index ec03a11..12d0404 100644 --- a/api/leyning/types/ParshaMeta.html +++ b/api/leyning/types/ParshaMeta.html @@ -7,4 +7,4 @@
    • Optionalnum1?: number
    • Optionalnum2?: number
    • Optionalp1?: string
    • Optionalp2?: string
    • Optionalseph?: Aliyah | Aliyah[]

      Haftarah object(s) for Sephardim

    • Optionalweekday?: {
          [key: string]: string[];
      }

      Map of weekday Torah Readings aliyot 1 through 3 for Monday and Thursday

      -
      • [key: string]: string[]
    • \ No newline at end of file +
      • [key: string]: string[]
      diff --git a/api/leyning/types/SpecialReading.html b/api/leyning/types/SpecialReading.html index df7db7d..7b04423 100644 --- a/api/leyning/types/SpecialReading.html +++ b/api/leyning/types/SpecialReading.html @@ -3,4 +3,4 @@
    • reason: StringMap

      Explanations for special readings, keyed by aliyah number, M for maftir or haftara for Haftarah

    • Optionalseph?: Aliyah | Aliyah[]

      Haftarah object(s) for Sephardim

      -
    • \ No newline at end of file +
      diff --git a/api/leyning/types/StringMap.html b/api/leyning/types/StringMap.html index 9a3502a..454711e 100644 --- a/api/leyning/types/StringMap.html +++ b/api/leyning/types/StringMap.html @@ -1 +1 @@ -StringMap | @hebcal/leyning

      Type Alias StringMap

      StringMap: {
          [key: string]: string;
      }
      \ No newline at end of file +StringMap | @hebcal/leyning

      Type Alias StringMap

      StringMap: {
          [key: string]: string;
      }
      diff --git a/api/leyning/variables/BOOK.html b/api/leyning/variables/BOOK.html index 30f1368..90c96e4 100644 --- a/api/leyning/variables/BOOK.html +++ b/api/leyning/variables/BOOK.html @@ -1,2 +1,2 @@ -BOOK | @hebcal/leyning

      Variable BOOKConst Readonly

      BOOK: string[] = ...

      Names of the books of the Torah. BOOK[1] === 'Genesis'

      -
      \ No newline at end of file +BOOK | @hebcal/leyning

      Variable BOOKConst Readonly

      BOOK: readonly ["", "Genesis", "Exodus", "Leviticus", "Numbers", "Deuteronomy"] = ...

      Names of the books of the Torah. BOOK[1] === 'Genesis'

      +