PageSourceSearch

https://templatedocs.io/_next/static/chunks/50e6add2-37bcf5cd3d94f056.js?dpl=33ce814e6

js templatedocs.io collected 2026-10-08 12:43:58 UTC 27,253 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1996],{2449:(e,t,r)=>{r.d(t,{Gv:()=>R,Yo:()=>x,_n:()=>D,y5:()=>O}),r(52313),r(13360),r(25673);var n=r(60996).Buffer;class i extends Error{constructor(e){super(`Internal error: ${e}`)}}class o extends i{constructor(e){super(`Argument '${e}' is missing.`),this.argName=e}}class s extends Error{constructor(e){super(e)}}class a extends s{constructor(e){super(`XML maximum depth reached (max depth: ${e}).`),this.maxDepth=e}}class d extends s{constructor(e){super(`Filetype "${e}" is not supported.`),this.fileType=e}}class l extends s{constructor(e,t,r,n){super(`Failed to parse XML at line ${r}, column ${n}: ${e}`),this.position=t,this.line=r,this.column=n}}function h(e){if(e.length)return e[e.length-1]}class c{static encode(e){return"undefined"!=typeof btoa?btoa(e):new n(e,"binary").toString("base64")}}function u(e,t){return e===t||e.prototype instanceof t}let p={isBlob(e){return this.isBlobConstructor(e.constructor)},isArrayBuffer(e){return this.isArrayBufferConstructor(e.constructor)},isBuffer(e){return this.isBufferConstructor(e.constructor)},isBlobConstructor:e=>"undefined"!=typeof Blob&&u(e,Blob),isArrayBufferConstructor:e=>"undefined"!=typeof ArrayBuffer&&u(e,ArrayBuffer),isBufferConstructor:e=>void 0!==n&&u(e,n),toBase64(e){if(this.isBlob(e))return new Promise(t=>{let r=new FileReader;r.onload=function(){t(c.encode(this.result))},r.readAsBinaryString(e)});if(this.isBuffer(e))return Promise.resolve(e.toString("base64"));if(this.isArrayBuffer(e)){let t=new Uint8Array(e).reduce((e,t)=>e+String.fromCharCode(t),"");return Promise.resolve(c.encode(t))}throw Error(`Binary type '${e.constructor.name}' is not supported.`)}};class f{static getFilename(e){let t=e.lastIndexOf("/");return e.substring(t+1)}static getDirectory(e){let t=e.lastIndexOf("/");return e.substring(0,t)}static combine(...e){let t=e.flatMap(e=>e?.split("/")?.map(e=>e.trim()).filter(Boolean)),r=[];for(let e of t)if("."!==e){if(".."===e){r.pop();continue}r.push(e)}return r.join("/")}}function m(e){let t,r,n,i,o,s,a,d,l=(e=function(e){e=e.replace(/\r\n/g,"\n");let t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);n<128?t+=String.fromCharCode(n):(n>127&&n<2048?t+=String.fromCharCode(n>>6|192):(t+=String.fromCharCode(n>>12|224),t+=String.fromCharCode(n>>6&63|128)),t+=String.fromCharCode(63&n|128))}return t}(e)).length,h=[];for(t=0;t<l-3;t+=4)r=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),h.push(r);switch(l%4){case 0:t=0x80000000;break;case 1:t=e.charCodeAt(l-1)<<24|8388608;break;case 2:t=e.charCodeAt(l-2)<<24|e.charCodeAt(l-1)<<16|32768;break;case 3:t=e.charCodeAt(l-3)<<24|e.charCodeAt(l-2)<<16|e.charCodeAt(l-1)<<8|128}for(h.push(t);h.length%16!=14;)h.push(0);h.push(l>>>29),h.push(l<<3);let c=Array(80),u=0x67452301,p=0xefcdab89,f=0x98badcfe,m=0x10325476,x=0xc3d2e1f0;for(let e=0;e<h.length;e+=16){for(t=0;t<16;t++)c[t]=h[e+t];for(t=16;t<=79;t++)c[t]=N(c[t-3]^c[t-8]^c[t-14]^c[t-16],1);for(t=0,n=u,i=p,o=f,s=m,a=x;t<=19;t++)d=N(n,5)+(i&o|~i&s)+a+c[t]+0x5a827999|0,a=s,s=o,o=N(i,30),i=n,n=d;for(t=20;t<=39;t++)d=N(n,5)+(i^o^s)+a+c[t]+0x6ed9eba1|0,a=s,s=o,o=N(i,30),i=n,n=d;for(t=40;t<=59;t++)d=N(n,5)+(i&o|i&s|o&s)+a+c[t]+0x8f1bbcdc|0,a=s,s=o,o=N(i,30),i=n,n=d;for(t=60;t<=79;t++)d=N(n,5)+(i^o^s)+a+c[t]+0xca62c1d6|0,a=s,s=o,o=N(i,30),i=n,n=d;u=u+n|0,p=p+i|0,f=f+o|0,m=m+s|0,x=x+a|0}return(d=g(u)+g(p)+g(f)+g(m)+g(x)).toLowerCase()}function N(e,t){return e<<t|e>>>32-t}function g(e){let t="";for(let r=7;r>=0;r--)t+=(e>>>4*r&15).toString(16);return t}RegExp("“|”|\xab|\xbb|„|“|‟|”|❝|❞|〝|〞|〟|"","g");let x=Object.freeze({Text:"Text",General:"General",Comment:"Comment"}),C="#text",y="#comment",w=Object.freeze({Tab:9,LineFeed:10,CarriageReturn:13,Space:32,Bang:33,Quote:34,Hash:35,Amp:38,Apos:39,Slash:47,Semicolon:59,LessThan:60,Equals:61,GreaterThan:62,Question:63,LowerX:120,Bom:65279});class b{static parse(e){return new b(e).parse()}stack=[];pos=0;root=null;constructor(e){this.str=e}parse(){let e=this.str,t=e.length;for(t&&e.charCodeAt(0)===w.Bom&&(this.pos=1);this.pos<t;){let r=e.indexOf("<",this.pos);if(-1===r){let r=e.slice(this.pos);this.handleText(r,!1),this.pos=t;break}if(this.pos<r){let t=e.slice(this.pos,r);this.handleText(t,!1),this.pos=r}let n=e.charCodeAt(r+1);if(n===w.Slash){this.parseElementClose();continue}if(n===w.Question){this.parseProcessingInstruction();continue}if(n===w.Bang){if(e.startsWith("\x3c!--",r)){this.parseComment();continue}if(e.startsWith("<![CDATA[",r)){this.parseCData();continue}if(e.startsWith("<!DOCTYPE",r)){this.parseDocType();continue}throw this.error("Unexpected markup.")}this.parseElementOpen()}if(this.stack.length)throw this.error(`Unclosed element <${this.stack[this.stack.length-1].nodeName}>.`);if(!this.root)throw this.error("No root element found.");return this.root}parseElementOpen(){let e=this.str,t=e.length;this.pos++;let r=this.readName();if(!r)throw this.error("Invalid element name.");let n={nodeType:x.General,nodeName:r,attributes:{},childNodes:[]};for(;;){if(this.skipWhitespace(),this.pos>=t)throw this.error(`Unterminated element <${r}>.`);let i=e.charCodeAt(this.pos);if(i===w.GreaterThan){this.pos++,this.appendChild(n),this.stack.push(n);return}if(i===w.Slash){if(e.charCodeAt(this.pos+1)!==w.GreaterThan)throw this.error(`Unexpected '/' in element <${r}>.`);this.pos+=2,this.appendChild(n);return}let o=this.readName();if(!o)throw this.error(`Invalid attribute name in element <${r}>.`);if("__proto__"===o)throw this.error(`Forbidden attribute name '${o}'.`);if(this.skipWhitespace(),e.charCodeAt(this.pos)!==w.Equals)throw this.error(`Attribute '${o}' has no value.`);this.pos++,this.skipWhitespace();let s=e.charCodeAt(this.pos);if(s!==w.Quote&&s!==w.Apos)throw this.error(`Attribute '${o}' value must be quoted.`);let a=this.pos+1,d=e.indexOf(String.fromCharCode(s),a);if(-1===d)throw this.error(`Unterminated value of attribute '${o}'.`);n.attributes[o]=A(function(e){let t="",r=0;for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);(i===w.CarriageReturn||i===w.LineFeed||i===w.Tab)&&(t+=e.slice(r,n)+" ",i===w.CarriageReturn&&e.charCodeAt(n+1)===w.LineFeed&&n++,r=n+1)}return 0===r?e:t+e.slice(r)}(e.slice(a,d))),this.pos=d+1}}parseElementClose(){let e=this.str,t=this.pos;this.pos+=2;let r=this.readName();if(this.skipWhitespace(),e.charCodeAt(this.pos)!==w.GreaterThan)throw this.pos=t,this.error(`Malformed element closing </${r}>.`);if(!this.stack.length)throw this.pos=t,this.error(`Unexpected element closing </${r}>.`);let n=this.stack[this.stack.length-1];if(n.nodeName!==r)throw this.pos=t,this.error(`Element closing </${r}> does not match element opening <${n.nodeName}>.`);this.pos++,this.stack.pop()}parseComment(){let e=this.pos+4,t=this.str.indexOf("--\x3e",e);if(-1===t)throw this.error("Unterminated comment.");if(this.stack.length){let r={nodeType:x.Comment,nodeName:y,commentContent:P(this.str.slice(e,t)).trim()};this.appendChild(r)}this.pos=t+3}parseCData(){let e=this.pos+9,t=this.str.indexOf("]]>",e);if(-1===t)throw this.error("Unterminated CDATA section.");let r=this.str.slice(e,t);this.handleText(r,!0),this.pos=t+3}parseProcessingInstruction(){let e=this.str.indexOf("?>",this.pos+2);
1if(-1===e)throw this.error("Unterminated processing instruction.");this.pos=e+2}parseDocType(){let e=this.str,t=e.indexOf(">",this.pos),r=e.indexOf("[",this.pos);if(-1!==r&&r<t){let n=e.indexOf("]",r);t=-1===n?-1:e.indexOf(">",n)}if(-1===t)throw this.error("Unterminated DOCTYPE declaration.");this.pos=t+1}handleText(e,t){if(!this.stack.length){if(t||!function(e){for(let t=0;t<e.length;t++)if(!T(e.charCodeAt(t)))return!1;return!0}(e))throw this.error("Text found outside of the root element.");return}e=P(e);let r=t?e:A(e),n=this.stack[this.stack.length-1],i=n.childNodes[n.childNodes.length-1];if(i&&i.nodeType===x.Text){i.textContent+=r;return}let o={nodeType:x.Text,nodeName:C,textContent:r};this.appendChild(o)}appendChild(e){if(!this.stack.length){if(this.root)throw this.error("Multiple root elements found.");this.root=e;return}let t=this.stack[this.stack.length-1],r=t.childNodes[t.childNodes.length-1];r&&(r.nextSibling=e),e.parentNode=t,t.childNodes.push(e)}readName(){var e;let t=this.str,r=t.length,n=this.pos;for(;this.pos<r&&!T(e=t.charCodeAt(this.pos))&&e!==w.LessThan&&e!==w.GreaterThan&&e!==w.Slash&&e!==w.Equals&&e!==w.Quote&&e!==w.Apos;)this.pos++;return t.slice(n,this.pos)}skipWhitespace(){let e=this.str,t=e.length;for(;this.pos<t&&T(e.charCodeAt(this.pos));)this.pos++}error(e){let t=Math.min(this.pos,this.str.length),r=1,n=0;for(let e=0;e<t;e++){let t=this.str.charCodeAt(e);(t===w.LineFeed||t===w.CarriageReturn&&this.str.charCodeAt(e+1)!==w.LineFeed)&&(r++,n=e+1)}let i=t-n+1;return new l(e,t,r,i)}}function T(e){return e===w.Space||e===w.LineFeed||e===w.CarriageReturn||e===w.Tab}function P(e){let t=e.indexOf("\r");if(-1===t)return e;let r="",n=0;for(;-1!==t;)r+=e.slice(n,t)+"\n",n=t+1,e.charCodeAt(n)===w.LineFeed&&n++,t=e.indexOf("\r",n);return r+e.slice(n)}function A(e){let t=e.indexOf("&");if(-1===t)return e;let r="",n=0;for(;-1!==t;){r+=e.slice(n,t);let i=function(e,t){let r=Math.min(e.length,t+16);for(let n=t;n<r;n++){let t=e.charCodeAt(n);if(t===w.Semicolon)return n;if(t===w.Amp||t===w.LessThan||T(t))break}return -1}(e,t+1),o=-1===i?null:function(e){var t;switch(e){case"lt":return"<";case"gt":return">";case"amp":return"&";case"apos":return"'";case"quot":return'"'}if(e.charCodeAt(0)!==w.Hash)return null;let r=e.charCodeAt(1)===w.LowerX,n=e.slice(r?2:1);if(!n||!function(e,t){for(let r=0;r<e.length;r++){let n=e.charCodeAt(r),i=n>=48&&n<=57,o=n>=65&&n<=70||n>=97&&n<=102;if(!i&&!(t&&o))return!1}return!0}(n,r))return null;let i=parseInt(n,r?16:10);return Number.isInteger(t=i)&&!(t<=0)&&!(t>1114111)&&!(t>=55296&&t<=57343)?String.fromCodePoint(i):null}(e.slice(t+1,i));null===o?(r+="&",n=t+1):(r+=o,n=i+1),t=e.indexOf("&",n)}return r+e.slice(n)}class q{depth=0;constructor(e){this.maxDepth=e}increment(){if(this.depth++,this.depth>this.maxDepth)throw new a(this.maxDepth)}decrement(){this.depth--}}class S{get node(){return this._current}constructor(e,t){if(!e)throw new i("Initial node is required");if(!t)throw new i("Max depth is required");this._current=e,this.depthTracker=new q(t)}next(){return this._current?(this._current=this.findNextNode(this._current),this._current):null}setCurrent(e){this._current=e}findNextNode(e){if(e.childNodes&&e.childNodes.length)return this.depthTracker.increment(),e.childNodes[0];if(e.nextSibling)return e.nextSibling;for(;e.parentNode;){if(e.parentNode.nextSibling)return this.depthTracker.decrement(),e.parentNode.nextSibling;this.depthTracker.decrement(),e=e.parentNode}return null}}class v{parser=new E;create=new $;query=new k;modify=new B}class E{static xmlFileHeader='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';parse(e){if(null==e)throw new o("str");return b.parse(e)}encodeValue(e){if(null==e)throw new o("str");if("string"!=typeof e)throw TypeError(`Expected a string, got '${e.constructor.name}'.`);return e.replace(/[<>&'"\r]/g,e=>{switch(e){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";case"'":return"&apos;";case'"':return"&quot;";case"\r":return"&#13;"}return""})}encodeAttributeValue(e){return this.encodeValue(e).replace(/[\n\t]/g,e=>"\n"===e?"&#10;":"&#9;")}serializeNode(e,t){return this._serializeNode(e,0,t)}serializeFile(e){return E.xmlFileHeader+D.parser.serializeNode(e)}_serializeNode(e,t,r){if(!e)return"";if(D.query.isTextNode(e))return D.parser.encodeValue(e.textContent||"");if(D.query.isCommentNode(e))return`<!-- ${D.parser.encodeValue(e.commentContent||"")} -->`;let n="";if(e.attributes){let t=Object.keys(e.attributes);t.length&&(n=" "+t.map(t=>`${t}="${D.parser.encodeAttributeValue(e.attributes[t]||"")}"`).join(" "))}let i=(e.childNodes||[]).length>0,o=`<${e.nodeName}${n}${i?"":"/"}>`;if(!i)return o;let s=`</${e.nodeName}>`,a=r?.indent??0;if(!a||e.childNodes.every(D.query.isTextNode))return o+e.childNodes.map(e=>this._serializeNode(e,t+1,r)).join("")+s;let d="\n"+" ".repeat((t+1)*a);return o+e.childNodes.map(e=>`${d}${this._serializeNode(e,t+1,r)}`).join("")+"\n"+" ".repeat(t*a)+s}}class ${textNode(e){return{nodeType:x.Text,nodeName:C,textContent:e}}generalNode(e,t){let r={nodeType:x.General,nodeName:e};if(t?.attributes&&(r.attributes=t.attributes),t?.childNodes)for(let e of t.childNodes)D.modify.appendChild(r,e);return r}commentNode(e){return{nodeType:x.Comment,nodeName:y,commentContent:e}}cloneNode(e,t){if(!e)throw new o("node");if(t){let t=function e(t){let r={};if(r.nodeType=t.nodeType,r.nodeName=t.nodeName,D.query.isTextNode(t))r.textContent=t.textContent;else{let e=t.attributes;e&&(r.attributes=Object.assign({},e))}if(t.childNodes){let n;for(let i of(r.childNodes=[],t.childNodes)){let t=e(i);r.childNodes.push(t),t.parentNode=r,n&&(n.nextSibling=t),n=t}}return r}(e);return t.parentNode=null,t}{let t=Object.assign({},e);return t.parentNode=null,t.childNodes=e.childNodes?[]:null,t.nextSibling=null,t}}}let k=class{isTextNode(e){if(e.nodeType===x.Text||e.nodeName===C){if(e.nodeType!==x.Text||e.nodeName!==C)throw new i(`Invalid text node. Type: '${e.nodeType}', Name: '${e.nodeName}'.`);return!0}return!1}
1isGeneralNode(e){return e.nodeType===x.General}isCommentNode(e){if(e.nodeType===x.Comment||e.nodeName===y){if(e.nodeType!==x.Comment||e.nodeName!==y)throw new i(`Invalid comment node. Type: '${e.nodeType}', Name: '${e.nodeName}'.`);return!0}return!1}lastTextChild(e,t=!0){if(!e)return null;if(D.query.isTextNode(e))return e;if(e.childNodes){let t=e.childNodes.filter(e=>D.query.isTextNode(e));if(t.length){let e=h(t);return e.textContent||(e.textContent=""),e}}if(!t)return null;let r={nodeType:x.Text,nodeName:C,textContent:""};return D.modify.appendChild(e,r),r}findParent(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}findParentByName(e,t){return D.query.findParent(e,e=>e.nodeName===t)}findChild(e,t){return e?(e.childNodes||[]).find(e=>t(e)):null}findByPath(e,t,...r){if(!e)return null;let n=e;for(let e=0;e<r.length;e++){let i=r[e];if("string"==typeof i&&(n=D.query.findChild(n,e=>e.nodeName===i)),"number"==typeof i){let o=e==r.length-1?t:x.General;n=n.childNodes.filter(e=>e.nodeType===o)[i]}if(!n)return null}return n.nodeType!==t?null:n}siblingsInRange(e,t){if(!e)throw new o("firstNode");if(!t)throw new o("lastNode");if(e.parentNode!==t.parentNode)throw Error(`Nodes are not siblings: '${e.nodeName}' and '${t.nodeName}'.`);let r=[],n=e;for(;n&&n!==t;)r.push(n),n=n.nextSibling;return r.push(t),r}textContent(e){if(!e)return"";let t="",r=[e];for(;r.length;){let e=r.pop();if(D.query.isTextNode(e)){t+=e.textContent||"";continue}if(e.childNodes)for(let t=e.childNodes.length-1;t>=0;t--)r.push(e.childNodes[t])}return t}descendants(e,t,r){let n=[],i=new S(e,t);for(;i.node;)r(i.node)&&n.push(i.node),i.next();return n}},B=class{insertBefore(e,t){if(!e)throw new o("newNode");if(!t)throw new o("referenceNode");if(!t.parentNode)throw Error("'referenceNode' has no parent");let r=t.parentNode.childNodes.indexOf(t);D.modify.insertChild(t.parentNode,e,r)}insertAfter(e,t){if(!e)throw new o("newNode");if(!t)throw new o("referenceNode");if(!t.parentNode)throw Error("'referenceNode' has no parent");let r=t.parentNode.childNodes.indexOf(t);D.modify.insertChild(t.parentNode,e,r+1)}insertChild(e,t,r){if(!e)throw new o("parent");if(D.query.isTextNode(e))throw Error("Appending children to text nodes is forbidden");if(!t)throw new o("child");if(e.childNodes||(e.childNodes=[]),r===e.childNodes.length)return void D.modify.appendChild(e,t);if(r>e.childNodes.length)throw RangeError(`Child index ${r} is out of range. Parent has only ${e.childNodes.length} child nodes.`);t.parentNode=e,t.nextSibling=e.childNodes[r],r>0&&(e.childNodes[r-1].nextSibling=t),e.childNodes.splice(r,0,t)}appendChild(e,t){if(!e)throw new o("parent");if(D.query.isTextNode(e))throw Error("Appending children to text nodes is forbidden");if(!t)throw new o("child");e.childNodes||(e.childNodes=[]),e.childNodes.length&&(e.childNodes[e.childNodes.length-1].nextSibling=t),t.nextSibling=null,t.parentNode=e,e.childNodes.push(t)}remove(e){if(!e)throw new o("node");if(!e.parentNode)throw Error("Node has no parent");D.modify.removeChild(e.parentNode,e)}removeChild(e,t){let r;if(!e)throw new o("parent");if(null==t)throw new o("childOrIndex");if(!e.childNodes||!e.childNodes.length)throw Error("Parent node has no children");if("number"==typeof t)r=t;else if(-1===(r=e.childNodes.indexOf(t)))throw Error("Selected child node is not a child of the specified parent");if(r>=e.childNodes.length)throw RangeError(`Child index ${r} is out of range. Parent has only ${e.childNodes.length} child nodes.`);let n=e.childNodes[r];return r>0&&(e.childNodes[r-1].nextSibling=n.nextSibling),n.parentNode=null,n.nextSibling=null,e.childNodes.splice(r,1)[0]}removeChildren(e,t){for(;e.childNodes?.length;){let r=e.childNodes.findIndex(t);if(-1===r)break;D.modify.removeChild(e,r)}}removeSiblings(e,t){let r;if(!e)throw new o("from");if(!t)throw new o("to");if(e.parentNode!==t.parentNode)throw Error(`Nodes are not siblings: '${e.nodeName}' and '${t.nodeName}'.`);if(e===t)return[];let n=[];for(e=e.nextSibling;e!==t;){let t=e;e=e.nextSibling,D.modify.remove(t),n.push(t),r&&(r.nextSibling=t),r=t}return n}splitByChild(e,t,r){if(t.parentNode!=e)throw Error("Node 'child' is not a direct child of 'parent'.");let n=D.create.cloneNode(e,!1);e.parentNode&&D.modify.insertBefore(n,e);let i=e.childNodes[0];for(;i!=t;)D.modify.remove(i),D.modify.appendChild(n,i),i=e.childNodes[0];return r&&D.modify.removeChild(e,0),[n,e]}removeEmptyTextNodes(e){!function e(t){if(!t.childNodes)return t;let r=t.childNodes;for(let n of(t.childNodes=[],r)){if(D.query.isTextNode(n)){n.textContent&&n.textContent.match(/\S/)&&t.childNodes.push(n);continue}let r=e(n);t.childNodes.push(r)}return t}(e)}},D=new v,R=Object.freeze({Open:"Open",Close:"Close",SelfClosed:"SelfClosed"}),O=Object.freeze({TextNode:"TextNode",Attribute:"Attribute"}),F=Object.freeze({Package:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/package",MainDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Header:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",Footer:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Link:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Chart:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",ChartColors:"http://schemas.microsoft.com/office/2011/relationships/chartColorStyle",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}),W=Object.freeze({Png:"image/png",Jpeg:"image/jpeg",Gif:"image/gif",Bmp:"image/bmp",Svg:"image/svg+xml"});class I{static getDefaultExtension(e){switch(e){case W.Png:return"png";case W.Jpeg:return"jpg";case W.Gif:return"gif";case W.Bmp:return"bmp";case W.Svg:return"svg";default:throw new d(e)}}static getOfficeRelType(e){switch(e){case W.Png:case W.Jpeg:case W.Gif:case W.Bmp:case W.Svg:return F.Image;default:throw new d(e)}}}class j{static mediaDir=null;files=new Map;nextFileId=0;constructor(e){this.zip=e}async add(e,t){if(this.files.has(e))return this.files.get(e);await this.hashMediaFiles();let r=m(await p.toBase64(e)),n=Object.keys(this.hashes).find(e=>this.hashes[e]===r);if(n)return n;let i=this.baseFilename(t),o=I.getDefaultExtension(t);do this.nextFileId++,n=`${j.mediaDir}/${i}${this.nextFileId}.${o}`;while(this.hashes[n]);return this.zip.setFile(n,e),this.hashes[n]=r,this.files.set(e,n),n}async count(){return await this.hashMediaFiles(),Object.keys(this.hashes).length}async hashMediaFiles(){if(!this.hashes)for(let e of(this.hashes={},this.zip.listFiles())){if(!e.startsWith(j.mediaDir)||!f.getFilename(e))continue;let t=m(await this.zip.getFile(e).getContentBase64());this.hashes[e]=t}}baseFilename(e){return e.split("/")[0]}}class z{Paragraph="w:p";ParagraphProperties="w:pPr";Run="w:r";RunProperties="w:rPr";Text="w:t";Table="w:tbl";TableRow="w:tr";TableCell="w:tc";Drawing="w:drawing";NumberProperties="w:numPr";StructuredTag="w:sdt";StructuredTagProperties="w:sdtPr";StructuredTagContent="w:sdtContent";FieldChar="w:fldChar"}class G{Paragraph="a:p";ParagraphProperties="a:pPr";Run="a:r";RunProperties="a:rPr";Text="a:t";Graphic="a:graphic";GraphicData="a:graphicData";Blip="a:blip";AlphaModFix="a:alphaModFix"}
1class M{DocPr="wp:docPr";Inline="wp:inline";FloatingAnchor="wp:anchor";Extent="wp:extent"}class _{Pic="pic:pic";NvPicPr="pic:nvPicPr";CnVPr="pic:cNvPr";BlipFill="pic:blipFill";SpPr="pic:spPr";Xfrm="a:xfrm";Ext="a:ext"}class L{static W=new z;static A=new G;static Wp=new M;static Pic=new _}class U{static SpacePreserve="xml:space";static FieldCharType="w:fldCharType"}class V{query=new X;modify=new H}class X{isTextNode(e){return e.nodeName===L.W.Text||e.nodeName===L.A.Text}isRunNode(e){return e.nodeName===L.W.Run||e.nodeName===L.A.Run}isRunPropertiesNode(e){return e.nodeName===L.W.RunProperties||e.nodeName===L.A.RunProperties}isTableNode(e){return e.nodeName===L.W.Table}isTableCellNode(e){return e.nodeName===L.W.TableCell}isParagraphNode(e){return e.nodeName===L.W.Paragraph||e.nodeName===L.A.Paragraph}isParagraphPropertiesNode(e){return e.nodeName===L.W.ParagraphProperties||e.nodeName===L.A.ParagraphProperties}isListParagraph(e){let t=Q.query.findParagraphPropertiesNode(e);return!!D.query.findByPath(t,x.General,L.W.NumberProperties)}isInlineDrawingNode(e){return e.nodeName===L.Wp.Inline&&e.parentNode?.nodeName===L.W.Drawing}findParagraphPropertiesNode(e){if(!Q.query.isParagraphNode(e))throw Error(`Expected paragraph node but received a '${e.nodeName}' node.`);return D.query.findChild(e,Q.query.isParagraphPropertiesNode)}firstTextNodeChild(e){if(!e||!Q.query.isRunNode(e)||!e.childNodes)return null;for(let t of e.childNodes)if(Q.query.isTextNode(t))return t;return null}containingTextNode(e){if(!e)return null;if(!D.query.isTextNode(e))throw Error("'Invalid argument node. Expected a XmlTextNode.");return D.query.findParent(e,Q.query.isTextNode)}containingRunNode(e){return D.query.findParent(e,Q.query.isRunNode)}containingParagraphNode(e){return D.query.findParent(e,Q.query.isParagraphNode)}containingTableRowNode(e){return D.query.findParentByName(e,L.W.TableRow)}containingTableCellNode(e){return D.query.findParent(e,Q.query.isTableCellNode)}containingTableNode(e){return D.query.findParentByName(e,L.W.Table)}containingStructuredTagContentNode(e){return D.query.findParentByName(e,L.W.StructuredTagContent)}isEmptyTextNode(e){if(!Q.query.isTextNode(e))throw Error(`Text node expected but '${e.nodeName}' received.`);if(!e.childNodes?.length)return!0;let t=e.childNodes[0];if(!D.query.isTextNode(t))throw Error("Invalid XML structure. 'w:t' node should contain a single text node only.");return!t.textContent}isEmptyRun(e){if(!Q.query.isRunNode(e))throw Error(`Run node expected but '${e.nodeName}' received.`);for(let t of e.childNodes??[])if(!Q.query.isRunPropertiesNode(t)&&!(Q.query.isTextNode(t)&&Q.query.isEmptyTextNode(t)))return!1;return!0}}class H{splitTextNode(e,t,r){let n,i,o=Q.query.containingTextNode(e),s=D.create.cloneNode(o,!0);if(Q.modify.setSpacePreserveAttribute(o),Q.modify.setSpacePreserveAttribute(s),r)D.modify.insertBefore(s,o),n=D.query.lastTextChild(s),i=e;else{let t=o.parentNode.childNodes.indexOf(o);D.modify.insertChild(o.parentNode,s,t+1),n=e,i=D.query.lastTextChild(s)}let a=n.textContent,d=i.textContent;return n.textContent=a.substring(0,t),i.textContent=d.substring(t),r?n:i}splitParagraphByTextNode(e,t,r){let n=Q.query.containingParagraphNode(t);if(n!=e)throw Error("Node 'textNode' is not contained in the specified paragraph.");let i=Q.query.containingRunNode(t),o=Q.query.containingTextNode(t),s=D.create.cloneNode(i,!1);D.modify.insertBefore(s,i);let a=i.childNodes.find(e=>Q.query.isRunPropertiesNode(e));if(a){let e=D.create.cloneNode(a,!0);D.modify.appendChild(s,e)}let d=+!!a,l=i.childNodes[d];for(;l!=o;)D.modify.remove(l),D.modify.appendChild(s,l),l=i.childNodes[d];r&&D.modify.removeChild(i,d);let h=D.create.cloneNode(n,!1);D.modify.insertBefore(h,n);let c=n.childNodes.find(e=>Q.query.isParagraphPropertiesNode(e));if(c){let e=D.create.cloneNode(c,!0);D.modify.appendChild(h,e)}let u=+!!c;for(l=n.childNodes[u];l!=i;)D.modify.remove(l),D.modify.appendChild(h,l),l=n.childNodes[u];return Q.query.isEmptyRun(s)&&D.modify.remove(s),Q.query.isEmptyRun(i)&&D.modify.remove(i),[h,n]}joinTextNodesRange(e,t){let r=Q.query.containingRunNode(e),n=Q.query.containingRunNode(t),i=r.parentNode;if(n.parentNode!==i)throw Error("Can not join text nodes from separate paragraphs.");let o=Q.query.containingTextNode(e),s=Q.query.containingTextNode(t),a=[],d=r;for(;d;){let e;for(e=d===r?o:Q.query.firstTextNodeChild(d);e;){if(!Q.query.isTextNode(e)){e=e.nextSibling;continue}let t=D.query.lastTextChild(e);a.push(t.textContent);let r=e;e=e===s?null:e.nextSibling,r!==o&&D.modify.remove(r)}let t=d;d=d===n?null:d.nextSibling,t.childNodes&&t.childNodes.length||D.modify.remove(t)}D.query.lastTextChild(o).textContent=a.join("")}joinParagraphs(e,t){if(e===t)return;let r=0;for(;t.childNodes&&r<t.childNodes.length;){let n=t.childNodes[r];Q.query.isRunNode(n)?(D.modify.removeChild(t,r),D.modify.appendChild(e,n)):r++}}setSpacePreserveAttribute(e){e.nodeName===L.W.Text&&(e.attributes||(e.attributes={}),e.attributes[U.SpacePreserve]||(e.attributes[U.SpacePreserve]="preserve"))}removeTag(e){if(e.placement===O.TextNode){let t=Q.query.containingTextNode(e.xmlTextNode),r=Q.query.containingRunNode(e.xmlTextNode);D.modify.remove(t),Q.query.isEmptyRun(r)&&D.modify.remove(r);return}if(e.placement===O.Attribute){if(!e.xmlNode.attributes||!(e.attributeName in e.xmlNode.attributes))return;e.xmlNode.attributes[e.attributeName]=e.xmlNode.attributes[e.attributeName].replace(e.rawText,""),""===e.xmlNode.attributes[e.attributeName]&&delete e.xmlNode.attributes[e.attributeName];return}throw Error(`Unexpected tag placement "${e.placement}" for tag "${e.rawText}".`)}}let Q=new V;Object.freeze({Row:"row",Column:"column",Paragraph:"paragraph",Content:"content"});Object.freeze({area3DChart:"c:area3DChart",areaChart:"c:areaChart",bar3DChart:"c:bar3DChart",barChart:"c:barChart",line3DChart:"c:line3DChart",lineChart:"c:lineChart",doughnutChart:"c:doughnutChart",ofPieChart:"c:ofPieChart",pie3DChart:"c:pie3DChart",pieChart:"c:pieChart",scatterChart:"c:scatterChart",bubbleChart:"c:bubbleChart"}),Object.freeze({General:0,0:1,"0.00":2,"#,##0":3,"#,##0.00":4,"0%":9,"0.00%":10,"0.00E+00":11,"# ?/?":12,"# ??/?":13,"mm-dd-yy":14,"d-mmm-yy":15,"d-mmm":16,"mmm-yy":17,"h:mm AM/PM":18,"h:mm:ss AM/PM":19,"h:mm":20,"h:mm:ss":21,"m/d/yy h:mm":22,"#,##0 ;(#,##0)":37,"#,##0 ;[Red](#,##0)":38,"#,##0.00;(#,##0.00)":39,"#,##0.00;[Red](#,##0.00)":40,"mm:ss":45,"[h]:mm:ss":46,"mmss.0":47,"##0.0E+0":48,"@":49})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.