gitea-local/public/assets/js/citation-js-core-citation-js-formats-citation-js-bibtex-citation-js-csl.f6949703.js
2024-08-07 15:56:31 +08:00

13 lines
87 KiB
JavaScript
Executable File

(self.webpackChunk=self.webpackChunk||[]).push([["citation-js-core-citation-js-formats-citation-js-bibtex-citation-js-csl"],{"./node_modules/@citation-js/core/lib-mjs/index.js":function(ft,U,A){"use strict";A.r(U),A.d(U,{Cite:function(){return Br},logger:function(){return q},plugins:function(){return k},util:function(){return c},version:function(){return Xr}});var m={};A.r(m),A.d(m,{currentVersion:function(){return I},retrieveLastVersion:function(){return it},retrieveVersion:function(){return nt},save:function(){return pt},undo:function(){return tt}});var P={};A.r(P),A.d(P,{defaultOptions:function(){return ut},options:function(){return f}});var g={};A.r(g),A.d(g,{dataTypeOf:function(){return w},typeOf:function(){return p}});var T={};A.r(T),A.d(T,{applyGraph:function(){return G},removeGraph:function(){return j}});var S={};A.r(S),A.d(S,{DataParser:function(){return a},FormatParser:function(){return y},TypeParser:function(){return o}});var D={};A.r(D),A.d(D,{clean:function(){return ce}});var c={};A.r(c),A.d(c,{Grammar:function(){return Ye},Register:function(){return Kt},TokenStack:function(){return Xe},Translator:function(){return Dt},deepCopy:function(){return Pt},downgradeCsl:function(){return Nt},fetchFile:function(){return Ge},fetchFileAsync:function(){return _e},fetchId:function(){return Xt},setUserAgent:function(){return We},upgradeCsl:function(){return Wt}});var v={};A.r(v),A.d(v,{add:function(){return nr},addDataParser:function(){return ee},addTypeParser:function(){return Rt},chain:function(){return Yt},chainAsync:function(){return Qt},chainLink:function(){return tr},chainLinkAsync:function(){return er},data:function(){return kt},dataAsync:function(){return te},get:function(){return Ce},has:function(){return ir},hasDataParser:function(){return De},hasTypeParser:function(){return Lt},list:function(){return or},listDataParser:function(){return rr},listTypeParser:function(){return at},remove:function(){return ur},removeDataParser:function(){return re},removeTypeParser:function(){return mt},treeTypeParser:function(){return jt},type:function(){return Et},typeMatcher:function(){return $t},util:function(){return sr}});var O={};A.r(O),A.d(O,{add:function(){return ar},addAsync:function(){return cr},reset:function(){return hr},set:function(){return fr},setAsync:function(){return lr}});var F={};A.r(F),A.d(F,{sort:function(){return Er}});var M={};A.r(M),A.d(M,{add:function(){return gr},format:function(){return Fe},has:function(){return Dr},list:function(){return Cr},register:function(){return wt},remove:function(){return mr}});var _={};A.r(_),A.d(_,{format:function(){return br},get:function(){return Fr},getIds:function(){return wr}});var l={};A.r(l),A.d(l,{async:function(){return xr},validateOptions:function(){return yt},validateOutputOptions:function(){return K}});var d={};A.r(d),A.d(d,{add:function(){return Or},get:function(){return ve},has:function(){return Pr},htmlDict:function(){return Ir},list:function(){return Sr},register:function(){return bt},remove:function(){return jr},textDict:function(){return Ur}});var C={};A.r(C),A.d(C,{add:function(){return Rr},get:function(){return Lr},has:function(){return $r},list:function(){return Mr},remove:function(){return Nr}});var k={};A.r(k),A.d(k,{add:function(){return xe},config:function(){return C},dict:function(){return d},has:function(){return Hr},input:function(){return v},list:function(){return Vr},output:function(){return M},remove:function(){return kr}});var x={};A.r(x),A.d(x,{parse:function(){return Ht}});var $={};A.r($),A.d($,{default:function(){return ue},parse:function(){return ue}});var H={};A.r(H),A.d(H,{parse:function(){return Be}});var N={};A.r(N),A.d(N,{parse:function(){return Te}});function I(){return this.log.length}function nt(t=1){if(t<=0||t>this.currentVersion())return null;{const[n,i]=this.log[t-1],s=new this.constructor(JSON.parse(n),JSON.parse(i));return s.log=this.log.slice(0,t),s}}function tt(t=1){return this.retrieveVersion(this.currentVersion()-t)}function it(){return this.retrieveVersion(this.currentVersion())}function pt(){return this.log.push([JSON.stringify(this.data),JSON.stringify(this._options)]),this}const ot=["real","string"],Q=["json","html","string","rtf"],lt=["csl","bibtex","bibtxt","citation-*","ris","ndjson"],gt=["string","function"];function K(t){if(typeof t!="object")throw new TypeError("Options not an object!");const{format:n,type:i,style:s,lang:h,append:B,prepend:L}=t;if(n&&!ot.includes(n))throw new TypeError(`Option format ("${n}") should be one of: ${ot}`);if(i&&!Q.includes(i))throw new TypeError(`Option type ("${i}") should be one of: ${Q}`);if(s&&!lt.includes(s)&&!/^citation/.test(s))throw new TypeError(`Option style ("${s}") should be one of: ${lt}`);if(h&&typeof h!="string")throw new TypeError(`Option lang should be a string, but is a ${typeof h}`);if(L&&!gt.includes(typeof L))throw new TypeError(`Option prepend should be a string or a function, but is a ${typeof L}`);if(B&&!gt.includes(typeof B))throw new TypeError(`Option append should be a string or a function, but is a ${typeof B}`);if(/^citation/.test(s)&&i==="json")throw new Error(`Combination type/style of json/citation-* is not valid: ${i}/${s}`);return!0}function yt(t){if(typeof t!="object")throw new TypeError("Options should be an object");if(t.output)K(t.output);else{if(t.maxChainLength&&typeof t.maxChainLength!="number")throw new TypeError("Option maxChainLength should be a number");if(t.forceType&&typeof t.forceType!="string")throw new TypeError("Option forceType should be a string");if(t.generateGraph!=null&&typeof t.generateGraph!="boolean")throw new TypeError("Option generateGraph should be a boolean");if(t.strict!=null&&typeof t.strict!="boolean")throw new TypeError("Option strict should be a boolean");if(t.target!=null&&typeof t.target!="string")throw new TypeError("Option target should be a boolean")}return!0}const ut={format:"real",type:"json",style:"csl",lang:"en-US"};function f(t,n){return K(t),n&&this.save(),Object.assign(this._options,t),this}function p(t){switch(t){case void 0:return"Undefined";case null:return"Null";default:return t.constructor.name}}function w(t){switch(typeof t){case"string":return"String";case"object":if(Array.isArray(t))return"Array";if(p(t)==="Object")return"SimpleObject";if(p(t)!=="Null")return"ComplexObject";default:return"Primitive"}}function G(t,n){if(t._graph){const i=n.findIndex(({type:s})=>s==="@else/list+object");i!==-1&&n.splice(i+1,0,...t._graph.slice(0,-1))}return t._graph=n,t}function j(t){return delete t._graph,t}const b={_output(t,n,i){this._log.push(n,i),!(this._levels.indexOf(t)<this._levels.indexOf(this.level))&&this._console.log(n,...i)},_console:null,_log:[],_levels:["http","debug","unmapped","info","warn","error","silent"],level:"silent"};for(const t of b._levels)b[t]=(n,...i)=>b._output(t,n,i);typeof console.Console=="function"?b._console=new console.Console(process.stderr):b._console=console;var q=b;const et={},X={},st={};function Ut(t,n){switch(n){case"Array":return t.length===0||t.every(i=>Et(i)==="@csl/object")?"@csl/list+object":"@else/list+object";case"SimpleObject":case"ComplexObject":return"@csl/object";default:return"@invalid"}}function Ft(t=[],n){for(const i of t)if(et[i].predicate(n))return Ft(et[i].extensions,n)||i}function Et(t){const n=w(t);return n==="Array"&&t.length===0?Ut(t,n):Ft(X[n],t)||Ut(t,n)}function Rt(t,{dataType:n,predicate:i,extends:s}){let h=[];t in st&&(h=st[t],delete st[t],q.debug("[core]",`Subclasses "${h}" finally registered to parent type "${t}"`));const B={predicate:i,extensions:h};if(et[t]=B,s){const L=et[s];L?L.extensions.push(t):(st[s]||(st[s]=[]),st[s].push(t),q.debug("[core]",`Subclass "${t}" is waiting on parent type "${s}"`))}else(X[n]||(X[n]=[])).push(t)}function Lt(t){return Object.prototype.hasOwnProperty.call(et,t)}function mt(t){delete et[t],[...Object.keys(X).map(i=>X[i]),...Object.keys(et).map(i=>et[i].extensions).filter(i=>i.length>0)].forEach(i=>{const s=i.indexOf(t);s>-1&&i.splice(s,1)})}function at(){return Object.keys(et)}function jt(){const t=n=>({name:n,children:et[n].extensions.map(t)});return{name:"Type tree",children:Object.keys(X).map(n=>({name:n,children:X[n].map(t)}))}}const $t=/^(?:@(.+?))(?:\/(?:(.+?)\+)?(?:(.+)))?$/;function u(t,n,i){return n=e(n),n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function e(t){var n=r(t,"string");return typeof n=="symbol"?n:n+""}function r(t,n){if(typeof t!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var s=i.call(t,n||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(t)}class o{constructor(n){u(this,"validDataTypes",["String","Array","SimpleObject","ComplexObject","Primitive"]),this.data=n}validateDataType(){const n=this.data.dataType;if(n&&!this.validDataTypes.includes(n))throw new RangeError(`dataType was ${n}; expected one of ${this.validDataTypes}`)}validateParseType(){const n=this.data.predicate;if(n&&!(n instanceof RegExp||typeof n=="function"))throw new TypeError(`predicate was ${typeof n}; expected RegExp or function`)}validateTokenList(){const n=this.data.tokenList;if(n&&typeof n!="object")throw new TypeError(`tokenList was ${typeof n}; expected object or RegExp`)}validatePropertyConstraint(){const n=this.data.propertyConstraint;if(n&&typeof n!="object")throw new TypeError(`propertyConstraint was ${typeof n}; expected array or object`)}validateElementConstraint(){const n=this.data.elementConstraint;if(n&&typeof n!="string")throw new TypeError(`elementConstraint was ${typeof n}; expected string`)}validateExtends(){const n=this.data.extends;if(n&&typeof n!="string")throw new TypeError(`extends was ${typeof n}; expected string`)}validate(){if(this.data===null||typeof this.data!="object")throw new TypeError(`typeParser was ${typeof this.data}; expected object`);this.validateDataType(),this.validateParseType(),this.validateTokenList(),this.validatePropertyConstraint(),this.validateElementConstraint(),this.validateExtends()}parseTokenList(){let n=this.data.tokenList;if(n)n instanceof RegExp&&(n={token:n});else return[];const{token:i,split:s=/\s+/,trim:h=!0,every:B=!0}=n,L=Y=>h?Y.trim():Y,ct=B?"every":"some";return[Y=>L(Y).split(s)[ct](rt=>i.test(rt))]}parsePropertyConstraint(){return[].concat(this.data.propertyConstraint||[]).map(({props:i,match:s,value:h})=>{switch(i=[].concat(i),s){case"any":case"some":return B=>i.some(L=>L in B&&(!h||h(B[L])));case"none":return B=>!i.some(L=>L in B&&(!h||h(B[L])));case"every":default:return B=>i.every(L=>L in B&&(!h||h(B[L])))}})}parseElementConstraint(){const n=this.data.elementConstraint;return n?[i=>i.every(s=>Et(s)===n)]:[]}parsePredicate(){return this.data.predicate instanceof RegExp?[this.data.predicate.test.bind(this.data.predicate)]:this.data.predicate?[this.data.predicate]:[]}getCombinedPredicate(){const n=[...this.parsePredicate(),...this.parseTokenList(),...this.parsePropertyConstraint(),...this.parseElementConstraint()];return n.length===0?()=>!0:n.length===1?n[0]:i=>n.every(s=>s(i))}getDataType(){return this.data.dataType?this.data.dataType:this.data.predicate instanceof RegExp||this.data.tokenList?"String":this.data.elementConstraint?"Array":"Primitive"}get dataType(){return this.getDataType()}get predicate(){return this.getCombinedPredicate()}get extends(){return this.data.extends}}class a{constructor(n,{async:i}={}){this.parser=n,this.async=i}validate(){const n=this.parser;if(typeof n!="function")throw new TypeError(`parser was ${typeof n}; expected function`)}}class y{constructor(n,i={}){this.format=n,i.parseType&&(this.typeParser=new o(i.parseType)),i.parse&&(this.dataParser=new a(i.parse,{async:!1})),i.parseAsync&&(this.asyncDataParser=new a(i.parseAsync,{async:!0}))}validateFormat(){const n=this.format;if(!$t.test(n))throw new TypeError(`format name was "${n}"; didn't match expected pattern`)}validate(){this.validateFormat(),this.typeParser&&this.typeParser.validate(),this.dataParser&&this.dataParser.validate(),this.asyncDataParser&&this.asyncDataParser.validate()}}var E=A("./node_modules/@citation-js/name/lib/index.js");function R(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);n&&(s=s.filter(function(h){return Object.getOwnPropertyDescriptor(t,h).enumerable})),i.push.apply(i,s)}return i}function V(t){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?R(Object(i),!0).forEach(function(s){W(t,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):R(Object(i)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(i,s))})}return t}function W(t,n,i){return n=Z(n),n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function Z(t){var n=z(t,"string");return typeof n=="symbol"?n:n+""}function z(t,n){if(typeof t!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var s=i.call(t,n||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(t)}const vt=1,J=2,ht=3,ie=4,Jt={article:!0,"article-journal":!0,"article-magazine":!0,"article-newspaper":!0,bill:!0,book:!0,broadcast:!0,chapter:!0,classic:!0,collection:!0,dataset:!0,document:!0,entry:!0,"entry-dictionary":!0,"entry-encyclopedia":!0,event:!0,figure:!0,graphic:!0,hearing:!0,interview:!0,legal_case:!0,legislation:!0,manuscript:!0,map:!0,motion_picture:!0,musical_score:!0,pamphlet:!0,"paper-conference":!0,patent:!0,performance:!0,periodical:!0,personal_communication:!0,post:!0,"post-weblog":!0,regulation:!0,report:!0,review:!0,"review-book":!0,software:!0,song:!0,speech:!0,standard:!0,thesis:!0,treaty:!0,webpage:!0,"journal-article":"article-journal","book-chapter":"chapter","posted-content":"manuscript","proceedings-article":"paper-conference",dissertation:"thesis"},oe={author:J,chair:J,"collection-editor":J,compiler:J,composer:J,"container-author":J,contributor:J,curator:J,director:J,editor:J,"editorial-director":J,"executive-producer":J,guest:J,host:J,interviewer:J,illustrator:J,narrator:J,organizer:J,"original-author":J,performer:J,producer:J,"reviewed-author":J,recipient:J,"script-writer":J,"series-creator":J,translator:J,accessed:ht,"available-date":ht,container:ht,"event-date":ht,issued:ht,"original-date":ht,submitted:ht,type:ie,categories:"object",custom:"object",id:["string","number"],language:"string",journalAbbreviation:"string",shortTitle:"string",abstract:"string",annote:"string",archive:"string",archive_collection:"string",archive_location:"string","archive-place":"string",authority:"string","call-number":"string","chapter-number":"string","citation-number":"string","citation-key":"string","citation-label":"string","collection-number":"string","collection-title":"string","container-title":"string","container-title-short":"string",dimensions:"string",division:"string",DOI:"string",edition:["string","number"],event:"string","event-title":"string","event-place":"string","first-reference-note-number":"string",genre:"string",ISBN:"string",ISSN:"string",issue:["string","number"],jurisdiction:"string",keyword:"string",locator:"string",medium:"string",note:"string",number:["string","number"],"number-of-pages":"string","number-of-volumes":["string","number"],"original-publisher":"string","original-publisher-place":"string","original-title":"string",page:"string","page-first":"string","part-number":["string","number"],"part-title":"string",PMCID:"string",PMID:"string",printing:"string",publisher:"string","publisher-place":"string",references:"string","reviewed-title":"string","reviewed-genre":"string",scale:"string",section:"string",source:"string",status:"string",supplement:["string","number"],title:"string","title-short":"string",URL:"string",version:"string",volume:["string","number"],"volume-title":"string","volume-title-short":"string","year-suffix":"string"};function se(t,n){if(typeof t=="object"&&t!==null&&(t.literal||t.given||t.family))return(t.ORCID||t.orcid||t._ORCID)&&(t=V({_orcid:t.ORCID||t.orcid||t._ORCID},t),delete t.ORCID,delete t.orcid,delete t._ORCID),t;if(n){if(typeof t=="string")return(0,E.parse)(t)}else return}function Ie(t,n){if(t instanceof Array){const i=t.map(s=>se(s,n)).filter(Boolean);return i.length?i:void 0}}function Gt(t,n){return t.every(i=>typeof i=="number")?t:!n||t.some(i=>isNaN(parseInt(i)))?void 0:t.map(i=>parseInt(i))}function Ue(t,n){const i="date-parts";if(!(typeof t!="object"||t===null)){if(t[i]instanceof Array&&t[i].every(s=>s instanceof Array)){const s=t[i].map(h=>Gt(h,n)).filter(Boolean);return s.length?V(V({},t),{},{"date-parts":s}):void 0}else if(t instanceof Array&&t.every(s=>s[i]instanceof Array)){const s=t.map(h=>Gt(h[i],n)).filter(Boolean);return s.length?{"date-parts":s}:void 0}else if(t[i]instanceof Array){const s=Gt(t[i],n);return s&&{"date-parts":[s]}}else if("literal"in t||"raw"in t)return t}}function ae(t,n){if(t=_t("language",t,n),Jt[t]===!0)return t;if(n){if(t in Jt)return Jt[t];if(t.toLowerCase()!==t)return ae(t.toLowerCase(),n)}}function _t(t,n,i){const s=[].concat(oe[t]);switch(oe[t]){case vt:return se(n,i);case J:return Ie(n,i);case ht:return Ue(n,i);case ie:return ae(n,i)}if(i){if(typeof n=="string"&&s.includes("number")&&!s.includes("string")&&!isNaN(+n))return parseFloat(n);if(typeof n=="number"&&s.includes("string")&&!s.includes("number"))return n.toString();if(Array.isArray(n)&&n.length)return _t(t,n[0],i)}if(s.includes(typeof n))return n}function ce(t,n=!0){return t.map(function(i){const s={};for(const h in i){const B=_t(h,i[h],n);B!==void 0&&(s[h]=B)}return s})}function fe(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);n&&(s=s.filter(function(h){return Object.getOwnPropertyDescriptor(t,h).enumerable})),i.push.apply(i,s)}return i}function le(t){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?fe(Object(i),!0).forEach(function(s){Re(t,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):fe(Object(i)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(i,s))})}return t}function Re(t,n,i){return n=Le(n),n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function Le(t){var n=$e(t,"string");return typeof n=="symbol"?n:n+""}function $e(t,n){if(typeof t!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var s=i.call(t,n||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(t)}function Wt(t){return Array.isArray(t)?t.map(Wt):(t=le({},t),"event"in t&&(t["event-title"]=t.event,delete t.event),t.type==="book"&&"version"in t&&(t.type="software"),t)}function Nt(t){return Array.isArray(t)?t.map(Nt):(t=le({},t),"event-title"in t&&(t.event=t["event-title"],delete t["event-title"]),t.type==="software"&&(t.type="book"),t)}function Mt(t,n=new Set){if(typeof t!="object"||t===null||t.constructor!==Object&&t.constructor!==Array)return t;if(n.has(t))throw new TypeError("Recursively copying circular structure");n.add(t);let i;if(t.constructor===Array)i=t.map(s=>Mt(s,n));else{const s={};for(const h in t)s[h]=Mt(t[h],n);i=s}return n.delete(t),i}var Pt=Mt,Ne=A("./node_modules/sync-fetch/browser.js"),he=A.n(Ne),Me=A("./node_modules/fetch-ponyfill/build/fetch-browser.js"),ke=A.n(Me),pe={rE:"0.7.11"};const{fetch:He,Headers:Ve}=ke()(),de=typeof location<"u"&&typeof document<"u";let zt=de?"":`Citation.js/${pe.rE} Node.js/${process.version}`;function ye(t){const n={},i=t instanceof Ve||t instanceof he().Headers?Array.from(t):Object.entries(t);for(const[s,h]of i)n[s.toLowerCase()]=h.toString();return n}function Ee(t={}){const n={headers:{accept:"*/*"},method:"GET",checkContentType:t.checkContentType};if(zt&&!de&&(n.headers["user-agent"]=zt),t.body){n.method="POST";const i=typeof t.body!="string";n.body=i?JSON.stringify(t.body):t.body,n.headers["content-type"]=i?"application/json":"text/plain"}return t.headers&&Object.assign(n.headers,ye(t.headers)),n}function Je(t,n){if(!t.accept||t.accept==="*/*"||!n["content-type"])return!0;const[i,s]=n["content-type"].split(";")[0].trim().split("/");return t.accept.split(",").map(h=>h.split(";")[0].trim().split("/")).some(([h,B])=>(h===i||h==="*")&&(B===s||B==="*"))}function Ae(t,n){const{status:i,headers:s}=t;let h;if(i>=400?h=new Error(`Server responded with status code ${i}`):n.checkContentType===!0&&!Je(n.headers,ye(s))&&(h=new Error(`Server responded with content-type ${s.get("content-type")}`)),h)throw h.status=i,h.headers=s,h.body=t.body,h;return t}function Ge(t,n){const i=Ee(n);return q.http("[core]",i.method,t,i),Ae(he()(t,i),i).text()}async function _e(t,n){const i=Ee(n);return q.http("[core]",i.method,t,i),He(t,i).then(s=>Ae(s,i)).then(s=>s.text())}function We(t){zt=t}var Yr=null;function ze(t,n){let i;for(;i===void 0||t.includes(i);)i=`${n}${Math.random().toString().slice(2)}`;return i}var Xt=ze;class dt{constructor(n){this.stack=n,this.index=0,this.current=this.stack[this.index]}static getPatternText(n){return`"${n instanceof RegExp?n.source:n}"`}static getMatchCallback(n){if(Array.isArray(n)){const i=n.map(dt.getMatchCallback);return s=>i.some(h=>h(s))}else return n instanceof Function?n:n instanceof RegExp?i=>n.test(i):i=>n===i}tokensLeft(){return this.stack.length-this.index}matches(n){return dt.getMatchCallback(n)(this.current,this.index,this.stack)}matchesSequence(n){const i=this.stack.slice(this.index,this.index+n.length).join("");return typeof n=="string"?i===n:n.every((s,h)=>dt.getMatchCallback(s)(i[h]))}consumeToken(n=/^[\s\S]$/,{inverse:i=!1,spaced:s=!0}={}){s&&this.consumeWhitespace();const h=this.current;if(dt.getMatchCallback(n)(h,this.index,this.stack))this.current=this.stack[++this.index];else throw new SyntaxError(`Unexpected token at index ${this.index}: Expected ${dt.getPatternText(n)}, got "${h}"`);return s&&this.consumeWhitespace(),h}consumeWhitespace(n=/^\s$/,{optional:i=!0}={}){return this.consume(n,{min:+!i})}consumeN(n){if(this.tokensLeft()<n)throw new SyntaxError("Not enough tokens left");const i=this.index;for(;n--;)this.current=this.stack[++this.index];return this.stack.slice(i,this.index).join("")}consumeSequence(n){if(this.matchesSequence(n))return this.consumeN(n.length);throw new SyntaxError(`Expected "${n}", got "${this.consumeN(n.length)}"`)}consume(n=/^[\s\S]$/,{min:i=0,max:s=1/0,inverse:h=!1,tokenMap:B,tokenFilter:L}={}){const ct=this.index,At=dt.getMatchCallback(n);for(;At(this.current,this.index,this.stack)!==h;)this.current=this.stack[++this.index];let Y=this.stack.slice(ct,this.index);if(Y.length<i)throw new SyntaxError(`Not enough ${dt.getPatternText(n)}`);if(Y.length>s)throw new SyntaxError(`Too many ${dt.getPatternText(n)}`);return B&&(Y=Y.map(B)),L&&(Y=Y.filter(L)),Y.join("")}}var Xe=dt;class Ke{constructor(n={}){this.data=n}set(n,i){return this.data[n]=i,this}add(...n){return this.set(...n)}delete(n){return delete this.data[n],this}remove(...n){return this.delete(...n)}get(n){return this.data[n]}has(n){return Object.prototype.hasOwnProperty.call(this.data,n)}list(){return Object.keys(this.data)}}var Kt=Ke;class Ye{constructor(n,i){this.rules=n,this.defaultState=i,this.mainRule=Object.keys(n)[0],this.log=[]}parse(n,i){return this.lexer=n,this.token=this.lexer.next(),this.state=Mt(this.defaultState),this.log=[],this.consumeRule(i||this.mainRule)}matchEndOfFile(){return!this.token}matchToken(n){return this.token&&n===this.token.type}consumeToken(n,i){const s=this.token;if(!n||s&&s.type===n)return this.token=this.lexer.next(),s;if(i)return;{const h=s?`"${s.type}"`:"EOF",B=new SyntaxError(this.lexer.formatError(s,`expected "${n}", got ${h}`));throw B.message+=` (${this.log.join("->")})`,B}}consumeRule(n){this.log.push(n);const i=this.rules[n].call(this);return this.log.pop(),i}}function Qe(t){return function(i){return typeof t=="boolean"?t:Object.keys(t).every(s=>{const h=t[s];return h===!0?s in i:h===!1?!(s in i):typeof h=="function"?h(i[s]):Array.isArray(h)?h.includes(i[s]):i[s]===h})}}function Ze(t,n){let i,s,h,B;if(typeof t=="string")i=s=t;else if(t)i=n?t.target:t.source,s=n?t.source:t.target,t.convert&&(h=n?t.convert.toSource:t.convert.toTarget),t.when&&(B=n?t.when.target:t.when.source,B!=null&&(B=Qe(B)));else return null;return i=[].concat(i).filter(Boolean),s=[].concat(s).filter(Boolean),{inputProp:i,outputProp:s,convert:h,condition:B}}function ge(t,n){return n=n===Dt.CONVERT_TO_SOURCE,t=t.map(i=>Ze(i,n)).filter(Boolean),function(s){const h={};for(const{inputProp:B,outputProp:L,convert:ct,condition:At}of t){if(L.length===0)continue;if(At&&!At(s))continue;if(B.length!==0&&B.every(rt=>!(rt in s)))continue;let Y=B.map(rt=>s[rt]);if(ct)try{const rt=ct.apply(s,Y);Y=L.length===1?[rt]:rt}catch(rt){throw new Error(`Failed to convert ${B} to ${L}`,{cause:rt})}L.forEach((rt,Ot)=>{const Vt=Y[Ot];Vt!==void 0&&(h[rt]=Vt)})}return h}}class Dt{constructor(n){this.convertToSource=ge(n,Dt.CONVERT_TO_SOURCE),this.convertToTarget=ge(n,Dt.CONVERT_TO_TARGET)}}Dt.CONVERT_TO_SOURCE=Symbol("convert to source"),Dt.CONVERT_TO_TARGET=Symbol("convert to target");function qe(t){return t.reduce((n,i)=>{const s=n[n.length-1];return s&&s.type===i.type?s.count=s.count+1||2:n.push(i),n},[]).map(n=>(n.count>1?n.count+"x ":"")+n.type).join(" -> ")}class me{constructor(n,i={}){this.options=Object.assign({generateGraph:!0,forceType:Et(n),maxChainLength:10,strict:!0,target:"@csl/list+object"},i),this.type=this.options.forceType,this.data=typeof n=="object"?Pt(n):n,this.graph=[{type:this.type,data:n}],this.iteration=0}iterate(){if(this.iteration!==0){const n=Ce(this.type);n&&n.outputs?this.type=n.outputs:this.type=Et(this.data),this.graph.push({type:this.type})}return this.error||this.type===this.options.target?!1:this.iteration>=this.options.maxChainLength?(this.error=new RangeError(`Max. number of parsing iterations reached (${qe(this.graph)})`),!1):(this.iteration++,!0)}end(){if(this.error){if(q.error("[core]",this.error.message),this.options.strict!==!1)throw this.error;return[]}else return this.options.target==="@csl/list+object"?Wt(this.data).map(this.options.generateGraph?n=>G(n,this.graph):j):this.data}}const Yt=(...t)=>{const n=new me(...t);for(;n.iterate();)try{n.data=kt(n.data,n.type)}catch(i){n.error=i}return n.end()},tr=t=>{const n=Et(t),i=n.match(/array|object/)?Pt(t):t;return kt(i,n)},Qt=async(...t)=>{const n=new me(...t);for(;n.iterate();)n.data=await te(n.data,n.type).catch(i=>{n.error=i});return n.end()},er=async t=>{const n=Et(t),i=n.match(/array|object/)?Pt(t):t;return te(i,n)},xt={},Bt={},Zt={"@csl/object":t=>[t],"@csl/list+object":t=>t,"@else/list+object":t=>t.map(Yt).flat(),"@invalid":()=>{throw new Error("This format is not supported or recognized")}},qt={"@else/list+object":async t=>(await Promise.all(t.map(Qt))).flat()};function kt(t,n){if(typeof xt[n]=="function")return xt[n](t);if(typeof Zt[n]=="function")return Zt[n](t);throw new TypeError(`No synchronous parser found for ${n}`)}async function te(t,n){if(typeof Bt[n]=="function")return Bt[n](t);if(typeof qt[n]=="function")return qt[n](t);if(De(n,!1))return kt(t,n);throw new TypeError(`No parser found for ${n}`)}function ee(t,{parser:n,async:i}){i?Bt[t]=n:xt[t]=n}function De(t,n){return n?Bt[t]||qt[t]:xt[t]||Zt[t]}function re(t,n){delete(n?Bt:xt)[t]}function rr(t){return Object.keys(t?Bt:xt)}const Ct={};function nr(t,n){const i=new y(t,n);i.validate();const s=Ct[t]||(Ct[t]={});i.typeParser&&(Rt(t,i.typeParser),s.type=!0),i.dataParser&&(ee(t,i.dataParser),s.data=!0),i.asyncDataParser&&(ee(t,i.asyncDataParser),s.asyncData=!0),n.outputs&&(s.outputs=n.outputs)}function Ce(t){return Ct[t]}function ur(t){const n=Ct[t];n&&(n.type&&mt(t),n.data&&re(t),n.asyncData&&re(t,!0),delete Ct[t])}function ir(t){return t in Ct}function or(){return Object.keys(Ct)}const sr=Object.assign({},g,T,S,D);function ar(t,n={},i=!1){return(n===!0||i===!0)&&this.save(),this.data.push(...Yt(t,n)),this.data.filter(s=>!Object.prototype.hasOwnProperty.call(s,"id")).forEach(s=>{s.id=Xt(this.getIds(),"temp_id_")}),this}async function cr(t,n={},i=!1){return(n===!0||i===!0)&&this.save(),this.data.push(...await Qt(t,n)),this.data.filter(s=>!Object.prototype.hasOwnProperty.call(s,"id")).forEach(s=>{s.id=Xt(this.getIds(),"temp_id_")}),this}function fr(t,n={},i=!1){return(n===!0||i===!0)&&this.save(),this.data=[],typeof n!="boolean"?this.add(t,n):this.add(t)}async function lr(t,n={},i=!1){return(n===!0||i===!0)&&this.save(),this.data=[],typeof n!="boolean"?this.addAsync(t,n):this.addAsync(t)}function hr(t){return t&&this.save(),this.data=[],this._options={},this}function we(t){if("citation-label"in t)return t["citation-label"];let n="";return t.author&&(n+=t.author[0].family||t.author[0].literal),t.issued&&t.issued["date-parts"]&&t.issued["date-parts"][0]&&(n+=t.issued["date-parts"][0][0]),t["year-suffix"]?n+=t["year-suffix"]:t.title&&(n+=t.title.replace(/<\/?.*?>/g,"").match(/^(?:(?:the|a|an)\s+)?(\S+)/i)[1]),n}var pr={label(t){return t.reduce((n,i)=>(n[i.id]=we(i),n),{})}};function be(t,n,i=n==="label"){let s=i?we(t):t[n];switch(n){case"author":case"editor":return s.map(h=>h.literal||h.family||(0,E.format)(h));case"accessed":case"issued":return s["date-parts"][0];case"page":return s.split("-").map(h=>parseInt(h));case"edition":case"issue":case"volume":return s=parseInt(s),isNaN(s)?-1/0:s;default:return s||-1/0}}function dr(t,n,i,s=/^!/.test(i)){i=i.replace(/^!/,"");const h=be(t,i),B=be(n,i);return(s?-1:1)*(h>B?1:h<B?-1:0)}function yr(...t){return(n,i)=>{const s=t.slice();let h=0;for(;!h&&s.length;)h=dr(n,i,s.shift());return h}}function Er(t=[],n){return n&&this.save(),this.data.sort(typeof t=="function"?t:yr(...t,"label")),this}function Ar(t,n){if(typeof t!="string")throw new TypeError(`Invalid output format name, expected string, got ${typeof t}`);if(typeof n!="function")throw new TypeError(`Invalid formatter, expected function, got ${typeof n}`)}const wt=new Kt;function gr(t,n){Ar(t,n),wt.set(t,n)}function mr(t){wt.remove(t)}function Dr(t){return wt.has(t)}function Cr(){return wt.list()}function Fe(t,n,...i){if(!wt.has(t))throw new Error(`Output format "${t}" unavailable`);return wt.get(t)(n,...i)}function wr(){return this.data.map(t=>t.id)}function br(t,...n){return Fe(t,ce(this.data),...n)}function Fr(t={}){K(t);const n=Object.assign({},this.defaultOptions,this._options.output,t),{type:i,style:s}=n,[h,B]=s.split("-"),L=h==="citation"?"bibliography":h==="csl"?"data":h,ct=i==="string"?"text":i==="json"?"object":i;let At;switch(L){case"bibliography":{const{lang:Ot,append:Vt,prepend:Kr}=n;At={template:B,lang:Ot,format:ct,append:Vt,prepend:Kr};break}case"data":case"bibtex":case"bibtxt":case"ndjson":case"ris":At={type:ct};break;default:throw new Error(`Invalid style "${L}"`)}const Y=this.format(L,Object.assign(At,t._newOptions)),{format:rt}=n;if(rt==="real"&&ct==="html"&&typeof document<"u"&&typeof document.createElement=="function"){const Ot=document.createElement("div");return Ot.innerHTML=Y,Ot.firstChild}else return rt==="string"&&typeof Y=="object"?JSON.stringify(Y):Y}function vr(t,n,i){typeof n=="function"&&!i&&(i=n,n=void 0);const s=new this().setAsync(t,n);if(typeof i=="function"){s.then(i);return}else return s}var xr=vr;function Tt(t,n={}){return this instanceof Tt?(this._options=n,this.log=[],this.data=[],this.set(t,n),this.options(n),this):new Tt(t,n)}Object.assign(Tt.prototype,m,P,O,F,_),Tt.prototype[Symbol.iterator]=function*(){yield*this.data},Object.assign(Tt,l);var Br=Tt;function Tr(t,n){if(typeof t!="string")throw new TypeError(`Invalid dict name, expected string, got ${typeof t}`);if(typeof n!="object")throw new TypeError(`Invalid dict, expected object, got ${typeof n}`);for(const i in n){const s=n[i];if(!Array.isArray(s)||s.some(h=>typeof h!="string"))throw new TypeError(`Invalid dict entry "${i}", expected array of strings`)}}const bt=new Kt({html:{bibliographyContainer:['<div class="csl-bib-body">',"</div>"],entry:['<div class="csl-entry">',"</div>"],list:['<ul style="list-style-type:none">',"</ul>"],listItem:["<li>","</li>"]},text:{bibliographyContainer:["",`
`],entry:["",`
`],list:[`
`,""],listItem:[" ",`
`]}});function Or(t,n){Tr(t,n),bt.set(t,n)}function jr(t){bt.remove(t)}function Pr(t){return bt.has(t)}function Sr(){return bt.list()}function ve(t){if(!bt.has(t))throw new Error(`Dict "${t}" unavailable`);return bt.get(t)}const Ir={wr_start:'<div class="csl-bib-body">',wr_end:"</div>",en_start:'<div class="csl-entry">',en_end:"</div>",ul_start:'<ul style="list-style-type:none">',ul_end:"</ul>",li_start:"<li>",li_end:"</li>"},Ur={wr_start:"",wr_end:`
`,en_start:"",en_end:`
`,ul_start:`
`,ul_end:"",li_start:" ",li_end:`
`},St={};function Rr(t,n){St[t]=n}function Lr(t){return St[t]}function $r(t){return Object.prototype.hasOwnProperty.call(St,t)}function Nr(t){delete St[t]}function Mr(){return Object.keys(St)}const ne={input:v,output:M,dict:d,config:C},It={};function xe(t,n={}){const i=It[t]={};for(const s in n){if(s==="config"){i.config={[t]:n.config},ne.config.add(t,n.config);continue}const h=i[s]={},B=n[s];for(const L in B){const ct=B[L];h[L]=!0,ne[s].add(L,ct)}}}function kr(t){const n=It[t];for(const i in n){const s=n[i];for(const h in s)ne[i].remove(h)}delete It[t]}function Hr(t){return t in It}function Vr(){return Object.keys(It)}function Ht(){return[]}const Jr=[[/((?:\[|:|,)\s*)'((?:\\'|[^'])*?[^\\])?'(?=\s*(?:\]|}|,))/g,'$1"$2"'],[/((?:(?:"|]|}|\/[gmiuys]|\.|(?:\d|\.|-)*\d)\s*,|{)\s*)(?:"([^":\n]+?)"|'([^":\n]+?)'|([^":\n]+?))(\s*):/g,'$1"$2$3$4"$5:']];function ue(t){if(typeof t!="string")return JSON.parse(t);try{return JSON.parse(t)}catch{return q.debug("[plugin-common]","Invalid JSON, switching to experimental parser"),Jr.forEach(([i,s])=>{t=t.replace(i,s)}),JSON.parse(t)}}function Be(t){return t.val()||t.text()||t.html()}function Te(t){return t.value||t.textContent}const Gr="@else",Qr={empty:x,json:$,jquery:H,html:N},_r={"@empty/text":{parse:Ht,parseType:{dataType:"String",predicate:t=>t===""}},"@empty/whitespace+text":{parse:Ht,parseType:{dataType:"String",predicate:/^\s+$/}},"@empty":{parse:Ht,parseType:{dataType:"Primitive",predicate:t=>t==null}},"@else/json":{parse:ue,parseType:{dataType:"String",predicate:/^\s*(\{[\S\s]*\}|\[[\S\s]*\])\s*$/}},"@else/url":{parseType:{dataType:"String",predicate:/^https?:\/\/(([\w-]+\.)*[\w-]+)(:\d+)?(\/[^?/]*)*(\?[^#]*)?(#.*)?$/i}},"@else/jquery":{parse:Be,parseType:{dataType:"ComplexObject",predicate(t){return typeof jQuery<"u"&&t instanceof jQuery}}},"@else/html":{parse:Te,parseType:{dataType:"ComplexObject",predicate(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}}}};function Oe(t,n,i){return t+(n<i.length-1?",":"")}function je(t,n){const i=Array.isArray(t);let s;return i?s=t.map(h=>Pe(h,n)):s=Object.keys(t).filter(h=>JSON.stringify(t[h])).map(h=>`"${h}": ${Pe(t[h],n)}`),s=s.map(Oe).map(h=>n.listItem.join(h)),s=n.list.join(s.join("")),i?`[${s}]`:`{${s}}`}function Pe(t,n){return typeof t=="object"&&t!==null?t.length===0?"[]":Object.keys(t).length===0?"{}":je(t,n):JSON.stringify(t)}function Se(t,n){let i=t.map(s=>je(s,n));return i=i.map(Oe).map(s=>n.entry.join(s)),i=i.join(""),n.bibliographyContainer.join(`[${i}]`)}function Zr(t){return Se(t,plugins.dict.get("html"))}var Wr={data(t,{type:n,format:i=n||"text",version:s="1.0.2"}={}){return s<"1.0.2"&&(t=Nt(t)),i==="object"?Pt(t):i==="text"?JSON.stringify(t,null,2):(q.warn("[core]","This feature (JSON output with special formatting) is unstable. See https://github.com/larsgw/citation.js/issues/144"),Se(t,ve(i)))},ndjson(t,{version:n="1.0.2"}={}){return n<"1.0.2"&&(t=Nt(t)),t.map(i=>JSON.stringify(i)).join(`
`)}},zr=Object.assign({},Wr,pr);xe(Gr,{input:_r,output:zr});const Xr=pe.rE},"./node_modules/@citation-js/name/lib/index.js":function(ft,U,A){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),Object.defineProperty(U,"parse",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(U,"format",{enumerable:!0,get:function(){return P.default}});var m=g(A("./node_modules/@citation-js/name/lib/input.js")),P=g(A("./node_modules/@citation-js/name/lib/output.js"));function g(T){return T&&T.__esModule?T:{default:T}}},"./node_modules/@citation-js/name/lib/input.js":function(ft,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=U.parse=U.types=U.scope=void 0;function A(N,I){return g(N)||P(N,I)||m()}function m(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function P(N,I){var nt=[],tt=!0,it=!1,pt=void 0;try{for(var ot=N[Symbol.iterator](),Q;!(tt=(Q=ot.next()).done)&&(nt.push(Q.value),!(I&&nt.length===I));tt=!0);}catch(lt){it=!0,pt=lt}finally{try{!tt&&ot.return!=null&&ot.return()}finally{if(it)throw pt}}return nt}function g(N){if(Array.isArray(N))return N}const T=N=>N.replace(/$|( )|(?!^)(?=[A-Z])/g,"\\.?$1"),S=N=>`(?:${N.join("|")})\\b`,D=(N,I)=>new RegExp(`(?:^| )(${N}$)`,I),c=["mr","mrs","ms","miss","dr","herr","monsieur","hr","frau","a v m","admiraal","admiral","air cdre","air commodore","air marshal","air vice marshal","alderman","alhaji","ambassador","baron","barones","brig","brig gen","brig general","brigadier","brigadier general","brother","canon","capt","captain","cardinal","cdr","chief","cik","cmdr","coach","col","col dr","colonel","commandant","commander","commissioner","commodore","comte","comtessa","congressman","conseiller","consul","conte","contessa","corporal","councillor","count","countess","crown prince","crown princess","dame","datin","dato","datuk","datuk seri","deacon","deaconess","dean","dhr","dipl ing","doctor","dott","dott sa","dr","dr ing","dra","drs","embajador","embajadora","en","encik","eng","eur ing","exma sra","exmo sr","f o","father","first lieutient","first officer","flt lieut","flying officer","fr","frau","fraulein","fru","gen","generaal","general","governor","graaf","gravin","group captain","grp capt","h e dr","h h","h m","h r h","hajah","haji","hajim","her highness","her majesty","herr","high chief","his highness","his holiness","his majesty","hon","hr","hra","ing","ir","jonkheer","judge","justice","khun ying","kolonel","lady","lcda","lic","lieut","lieut cdr","lieut col","lieut gen","lord","m","m l","m r","madame","mademoiselle","maj gen","major","master","mevrouw","miss","mlle","mme","monsieur","monsignor","mr","mrs","ms","mstr","nti","pastor","president","prince","princess","princesse","prinses","prof","prof dr","prof sir","professor","puan","puan sri","rabbi","rear admiral","rev","rev canon","rev dr","rev mother","reverend","rva","senator","sergeant","sheikh","sheikha","sig","sig na","sig ra","sir","sister","sqn ldr","sr","sr d","sra","srta","sultan","tan sri","tan sri dato","tengku","teuku","than puying","the hon dr","the hon justice","the hon miss","the hon mr","the hon mrs","the hon ms","the hon sir","the very rev","toh puan","tun","vice admiral","viscount","viscountess","wg cdr"],v=["I","II","III","IV","V","Senior","Junior","Jr","Sr","PhD","Ph\\.D","APR","RPh","PE","MD","MA","DMD","CME","BVM","CFRE","CLU","CPA","CSC","CSJ","DC","DD","DDS","DO","DVM","EdD","Esq","JD","LLD","OD","OSB","PC","Ret","RGS","RN","RNC","SHCJ","SJ","SNJM","SSMO","USA","USAF","USAFR","USAR","USCG","USMC","USMCR","USN","USNR"],O=["Vere","Von","Van","De","Del","Della","Di","Da","Pietro","Vanden","Du","St.","St","La","Lo","Ter","O","O'","Mac","Fitz"],F=S(c.map(T)),M=S(v.map(T)),_=S(O),l=new RegExp(`^((?:${F} )*)(.*)$`,"i"),d=D(`(?:${M}, )*(?:${M})`,"i"),C=D(`${/(?:[A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1C90-\u1CBA\u1CBD-\u1CBF\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2160-\u216F\u2183\u24B6-\u24CF\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AE\uA7B0-\uA7B4\uA7B6\uA7B8\uFF21-\uFF3A]|\uD801[\uDC00-\uDC27\uDCB0-\uDCD3]|\uD803[\uDC80-\uDCB2]|\uD806[\uDCA0-\uDCBF]|\uD81B[\uDE40-\uDE5F]|\uD835[\uDC00-\uDC19\uDC34-\uDC4D\uDC68-\uDC81\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB5\uDCD0-\uDCE9\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD38\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD6C-\uDD85\uDDA0-\uDDB9\uDDD4-\uDDED\uDE08-\uDE21\uDE3C-\uDE55\uDE70-\uDE89\uDEA8-\uDEC0\uDEE2-\uDEFA\uDF1C-\uDF34\uDF56-\uDF6E\uDF90-\uDFA8\uDFCA]|\uD83A[\uDD00-\uDD21]|\uD83C[\uDD30-\uDD49\uDD50-\uDD69\uDD70-\uDD89])/.source}.*`),k=D(`(?:${/(?:[a-z\xAA\xB5\xBA\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02B8\u02C0\u02C1\u02E0-\u02E4\u0345\u0371\u0373\u0377\u037A-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0560-\u0588\u10D0-\u10FA\u10FD-\u10FF\u13F8-\u13FD\u1C80-\u1C88\u1D00-\u1DBF\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD0-\u1FD3\u1FD6\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u2071\u207F\u2090-\u209C\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2170-\u217F\u2184\u24D0-\u24E9\u2C30-\u2C5E\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7D\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B-\uA69D\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7AF\uA7B5\uA7B7\uA7B9\uA7F8-\uA7FA\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A]|\uD801[\uDC28-\uDC4F\uDCD8-\uDCFB]|\uD803[\uDCC0-\uDCF2]|\uD806[\uDCC0-\uDCDF]|\uD81B[\uDE60-\uDE7F]|\uD835[\uDC1A-\uDC33\uDC4E-\uDC54\uDC56-\uDC67\uDC82-\uDC9B\uDCB6-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDCEA-\uDD03\uDD1E-\uDD37\uDD52-\uDD6B\uDD86-\uDD9F\uDDBA-\uDDD3\uDDEE-\uDE07\uDE22-\uDE3B\uDE56-\uDE6F\uDE8A-\uDEA5\uDEC2-\uDEDA\uDEDC-\uDEE1\uDEFC-\uDF14\uDF16-\uDF1B\uDF36-\uDF4E\uDF50-\uDF55\uDF70-\uDF88\uDF8A-\uDF8F\uDFAA-\uDFC2\uDFC4-\uDFC9\uDFCB]|\uD83A[\uDD22-\uDD43])/.source}.*|${_}.*|\\S*)`),x=function(I=""){typeof I!="string"&&(I=I+"");let nt="",tt="",it="";if(/[^.], /.test(I)){const p=I.split(", ");it=p.shift();const w=RegExp(M).exec(p.join(", "));nt=p.splice(w&&w.index!==0?0:-1,1)[0],tt=p.join(", ")}else{const p=I.split(d,2),w=p.shift().split(k,2);nt=w[0],it=w[1],tt=p.pop()}const pt=nt.match(l),ot=A(pt,3),Q=ot[1],lt=ot[2],gt=tt,K=it.split(C,2).reverse(),yt=A(K,2),ut=yt[0],f=yt[1];if(!lt&&ut)return ut.includes(" ")?{literal:ut}:{family:ut};if(ut){const p={"dropping-particle":Q,given:lt,suffix:gt,"non-dropping-particle":f,family:ut};return Object.keys(p).forEach(w=>{p[w]||delete p[w]}),p}else return{literal:I}};U.default=U.parse=x;const $="@name";U.scope=$;const H="@name";U.types=H},"./node_modules/@citation-js/name/lib/output.js":function(ft,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=void 0;const A=["dropping-particle","given"],m=["suffix"],P=["non-dropping-particle","family"];var T=function(D,c=!1){const v=O=>O.map(F=>D[F]||"").filter(Boolean).join(" ");if(D.literal)return D.literal;if(c){const O=v(m)?`, ${v(m)}`:"",F=v(A)?`, ${v(A)}`:"";return v(P)+O+F}else return`${v([...A,...m,...P])}`};U.default=T},"./node_modules/base64-js/index.js":function(ft,U){"use strict";U.byteLength=c,U.toByteArray=O,U.fromByteArray=_;for(var A=[],m=[],P=typeof Uint8Array<"u"?Uint8Array:Array,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",T=0,S=g.length;T<S;++T)A[T]=g[T],m[g.charCodeAt(T)]=T;m[45]=62,m[95]=63;function D(l){var d=l.length;if(d%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var C=l.indexOf("=");C===-1&&(C=d);var k=C===d?0:4-C%4;return[C,k]}function c(l){var d=D(l),C=d[0],k=d[1];return(C+k)*3/4-k}function v(l,d,C){return(d+C)*3/4-C}function O(l){var d,C=D(l),k=C[0],x=C[1],$=new P(v(l,k,x)),H=0,N=x>0?k-4:k,I;for(I=0;I<N;I+=4)d=m[l.charCodeAt(I)]<<18|m[l.charCodeAt(I+1)]<<12|m[l.charCodeAt(I+2)]<<6|m[l.charCodeAt(I+3)],$[H++]=d>>16&255,$[H++]=d>>8&255,$[H++]=d&255;return x===2&&(d=m[l.charCodeAt(I)]<<2|m[l.charCodeAt(I+1)]>>4,$[H++]=d&255),x===1&&(d=m[l.charCodeAt(I)]<<10|m[l.charCodeAt(I+1)]<<4|m[l.charCodeAt(I+2)]>>2,$[H++]=d>>8&255,$[H++]=d&255),$}function F(l){return A[l>>18&63]+A[l>>12&63]+A[l>>6&63]+A[l&63]}function M(l,d,C){for(var k,x=[],$=d;$<C;$+=3)k=(l[$]<<16&16711680)+(l[$+1]<<8&65280)+(l[$+2]&255),x.push(F(k));return x.join("")}function _(l){for(var d,C=l.length,k=C%3,x=[],$=16383,H=0,N=C-k;H<N;H+=$)x.push(M(l,H,H+$>N?N:H+$));return k===1?(d=l[C-1],x.push(A[d>>2]+A[d<<4&63]+"==")):k===2&&(d=(l[C-2]<<8)+l[C-1],x.push(A[d>>10]+A[d>>4&63]+A[d<<2&63]+"=")),x.join("")}},"./node_modules/buffer/index.js":function(ft,U,A){"use strict";var m=A("./node_modules/base64-js/index.js"),P=A("./node_modules/ieee754/index.js"),g=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;U.Buffer=c,U.SlowBuffer=$,U.INSPECT_MAX_BYTES=50;var T=2147483647;U.kMaxLength=T,c.TYPED_ARRAY_SUPPORT=S(),!c.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function S(){try{var u=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(u,e),u.foo()===42}catch{return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function D(u){if(u>T)throw new RangeError('The value "'+u+'" is invalid for option "size"');var e=new Uint8Array(u);return Object.setPrototypeOf(e,c.prototype),e}function c(u,e,r){if(typeof u=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return M(u)}return v(u,e,r)}c.poolSize=8192;function v(u,e,r){if(typeof u=="string")return _(u,e);if(ArrayBuffer.isView(u))return d(u);if(u==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof u);if(at(u,ArrayBuffer)||u&&at(u.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(at(u,SharedArrayBuffer)||u&&at(u.buffer,SharedArrayBuffer)))return C(u,e,r);if(typeof u=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=u.valueOf&&u.valueOf();if(o!=null&&o!==u)return c.from(o,e,r);var a=k(u);if(a)return a;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof u[Symbol.toPrimitive]=="function")return c.from(u[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof u)}c.from=function(u,e,r){return v(u,e,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array);function O(u){if(typeof u!="number")throw new TypeError('"size" argument must be of type number');if(u<0)throw new RangeError('The value "'+u+'" is invalid for option "size"')}function F(u,e,r){return O(u),u<=0?D(u):e!==void 0?typeof r=="string"?D(u).fill(e,r):D(u).fill(e):D(u)}c.alloc=function(u,e,r){return F(u,e,r)};function M(u){return O(u),D(u<0?0:x(u)|0)}c.allocUnsafe=function(u){return M(u)},c.allocUnsafeSlow=function(u){return M(u)};function _(u,e){if((typeof e!="string"||e==="")&&(e="utf8"),!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=H(u,e)|0,o=D(r),a=o.write(u,e);return a!==r&&(o=o.slice(0,a)),o}function l(u){for(var e=u.length<0?0:x(u.length)|0,r=D(e),o=0;o<e;o+=1)r[o]=u[o]&255;return r}function d(u){if(at(u,Uint8Array)){var e=new Uint8Array(u);return C(e.buffer,e.byteOffset,e.byteLength)}return l(u)}function C(u,e,r){if(e<0||u.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(u.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var o;return e===void 0&&r===void 0?o=new Uint8Array(u):r===void 0?o=new Uint8Array(u,e):o=new Uint8Array(u,e,r),Object.setPrototypeOf(o,c.prototype),o}function k(u){if(c.isBuffer(u)){var e=x(u.length)|0,r=D(e);return r.length===0||u.copy(r,0,0,e),r}if(u.length!==void 0)return typeof u.length!="number"||jt(u.length)?D(0):l(u);if(u.type==="Buffer"&&Array.isArray(u.data))return l(u.data)}function x(u){if(u>=T)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+T.toString(16)+" bytes");return u|0}function $(u){return+u!=u&&(u=0),c.alloc(+u)}c.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==c.prototype},c.compare=function(e,r){if(at(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),at(r,Uint8Array)&&(r=c.from(r,r.offset,r.byteLength)),!c.isBuffer(e)||!c.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var o=e.length,a=r.length,y=0,E=Math.min(o,a);y<E;++y)if(e[y]!==r[y]){o=e[y],a=r[y];break}return o<a?-1:a<o?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return c.alloc(0);var o;if(r===void 0)for(r=0,o=0;o<e.length;++o)r+=e[o].length;var a=c.allocUnsafe(r),y=0;for(o=0;o<e.length;++o){var E=e[o];if(at(E,Uint8Array))y+E.length>a.length?c.from(E).copy(a,y):Uint8Array.prototype.set.call(a,E,y);else if(c.isBuffer(E))E.copy(a,y);else throw new TypeError('"list" argument must be an Array of Buffers');y+=E.length}return a};function H(u,e){if(c.isBuffer(u))return u.length;if(ArrayBuffer.isView(u)||at(u,ArrayBuffer))return u.byteLength;if(typeof u!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof u);var r=u.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&r===0)return 0;for(var a=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Ft(u).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Lt(u).length;default:if(a)return o?-1:Ft(u).length;e=(""+e).toLowerCase(),a=!0}}c.byteLength=H;function N(u,e,r){var o=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(u||(u="utf8");;)switch(u){case"hex":return w(this,e,r);case"utf8":case"utf-8":return K(this,e,r);case"ascii":return f(this,e,r);case"latin1":case"binary":return p(this,e,r);case"base64":return gt(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,e,r);default:if(o)throw new TypeError("Unknown encoding: "+u);u=(u+"").toLowerCase(),o=!0}}c.prototype._isBuffer=!0;function I(u,e,r){var o=u[e];u[e]=u[r],u[r]=o}c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)I(this,r,r+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)I(this,r,r+3),I(this,r+1,r+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)I(this,r,r+7),I(this,r+1,r+6),I(this,r+2,r+5),I(this,r+3,r+4);return this},c.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?K(this,0,e):N.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:c.compare(this,e)===0},c.prototype.inspect=function(){var e="",r=U.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},g&&(c.prototype[g]=c.prototype.inspect),c.prototype.compare=function(e,r,o,a,y){if(at(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),o===void 0&&(o=e?e.length:0),a===void 0&&(a=0),y===void 0&&(y=this.length),r<0||o>e.length||a<0||y>this.length)throw new RangeError("out of range index");if(a>=y&&r>=o)return 0;if(a>=y)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,a>>>=0,y>>>=0,this===e)return 0;for(var E=y-a,R=o-r,V=Math.min(E,R),W=this.slice(a,y),Z=e.slice(r,o),z=0;z<V;++z)if(W[z]!==Z[z]){E=W[z],R=Z[z];break}return E<R?-1:R<E?1:0};function nt(u,e,r,o,a){if(u.length===0)return-1;if(typeof r=="string"?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,jt(r)&&(r=a?0:u.length-1),r<0&&(r=u.length+r),r>=u.length){if(a)return-1;r=u.length-1}else if(r<0)if(a)r=0;else return-1;if(typeof e=="string"&&(e=c.from(e,o)),c.isBuffer(e))return e.length===0?-1:tt(u,e,r,o,a);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?a?Uint8Array.prototype.indexOf.call(u,e,r):Uint8Array.prototype.lastIndexOf.call(u,e,r):tt(u,[e],r,o,a);throw new TypeError("val must be string, number or Buffer")}function tt(u,e,r,o,a){var y=1,E=u.length,R=e.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(u.length<2||e.length<2)return-1;y=2,E/=2,R/=2,r/=2}function V(J,ht){return y===1?J[ht]:J.readUInt16BE(ht*y)}var W;if(a){var Z=-1;for(W=r;W<E;W++)if(V(u,W)===V(e,Z===-1?0:W-Z)){if(Z===-1&&(Z=W),W-Z+1===R)return Z*y}else Z!==-1&&(W-=W-Z),Z=-1}else for(r+R>E&&(r=E-R),W=r;W>=0;W--){for(var z=!0,vt=0;vt<R;vt++)if(V(u,W+vt)!==V(e,vt)){z=!1;break}if(z)return W}return-1}c.prototype.includes=function(e,r,o){return this.indexOf(e,r,o)!==-1},c.prototype.indexOf=function(e,r,o){return nt(this,e,r,o,!0)},c.prototype.lastIndexOf=function(e,r,o){return nt(this,e,r,o,!1)};function it(u,e,r,o){r=Number(r)||0;var a=u.length-r;o?(o=Number(o),o>a&&(o=a)):o=a;var y=e.length;o>y/2&&(o=y/2);for(var E=0;E<o;++E){var R=parseInt(e.substr(E*2,2),16);if(jt(R))return E;u[r+E]=R}return E}function pt(u,e,r,o){return mt(Ft(e,u.length-r),u,r,o)}function ot(u,e,r,o){return mt(Et(e),u,r,o)}function Q(u,e,r,o){return mt(Lt(e),u,r,o)}function lt(u,e,r,o){return mt(Rt(e,u.length-r),u,r,o)}c.prototype.write=function(e,r,o,a){if(r===void 0)a="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")a=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,a===void 0&&(a="utf8")):(a=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var y=this.length-r;if((o===void 0||o>y)&&(o=y),e.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var E=!1;;)switch(a){case"hex":return it(this,e,r,o);case"utf8":case"utf-8":return pt(this,e,r,o);case"ascii":case"latin1":case"binary":return ot(this,e,r,o);case"base64":return Q(this,e,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lt(this,e,r,o);default:if(E)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),E=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function gt(u,e,r){return e===0&&r===u.length?m.fromByteArray(u):m.fromByteArray(u.slice(e,r))}function K(u,e,r){r=Math.min(u.length,r);for(var o=[],a=e;a<r;){var y=u[a],E=null,R=y>239?4:y>223?3:y>191?2:1;if(a+R<=r){var V,W,Z,z;switch(R){case 1:y<128&&(E=y);break;case 2:V=u[a+1],(V&192)===128&&(z=(y&31)<<6|V&63,z>127&&(E=z));break;case 3:V=u[a+1],W=u[a+2],(V&192)===128&&(W&192)===128&&(z=(y&15)<<12|(V&63)<<6|W&63,z>2047&&(z<55296||z>57343)&&(E=z));break;case 4:V=u[a+1],W=u[a+2],Z=u[a+3],(V&192)===128&&(W&192)===128&&(Z&192)===128&&(z=(y&15)<<18|(V&63)<<12|(W&63)<<6|Z&63,z>65535&&z<1114112&&(E=z))}}E===null?(E=65533,R=1):E>65535&&(E-=65536,o.push(E>>>10&1023|55296),E=56320|E&1023),o.push(E),a+=R}return ut(o)}var yt=4096;function ut(u){var e=u.length;if(e<=yt)return String.fromCharCode.apply(String,u);for(var r="",o=0;o<e;)r+=String.fromCharCode.apply(String,u.slice(o,o+=yt));return r}function f(u,e,r){var o="";r=Math.min(u.length,r);for(var a=e;a<r;++a)o+=String.fromCharCode(u[a]&127);return o}function p(u,e,r){var o="";r=Math.min(u.length,r);for(var a=e;a<r;++a)o+=String.fromCharCode(u[a]);return o}function w(u,e,r){var o=u.length;(!e||e<0)&&(e=0),(!r||r<0||r>o)&&(r=o);for(var a="",y=e;y<r;++y)a+=$t[u[y]];return a}function G(u,e,r){for(var o=u.slice(e,r),a="",y=0;y<o.length-1;y+=2)a+=String.fromCharCode(o[y]+o[y+1]*256);return a}c.prototype.slice=function(e,r){var o=this.length;e=~~e,r=r===void 0?o:~~r,e<0?(e+=o,e<0&&(e=0)):e>o&&(e=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r<e&&(r=e);var a=this.subarray(e,r);return Object.setPrototypeOf(a,c.prototype),a};function j(u,e,r){if(u%1!==0||u<0)throw new RangeError("offset is not uint");if(u+e>r)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(e,r,o){e=e>>>0,r=r>>>0,o||j(e,r,this.length);for(var a=this[e],y=1,E=0;++E<r&&(y*=256);)a+=this[e+E]*y;return a},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,r,o){e=e>>>0,r=r>>>0,o||j(e,r,this.length);for(var a=this[e+--r],y=1;r>0&&(y*=256);)a+=this[e+--r]*y;return a},c.prototype.readUint8=c.prototype.readUInt8=function(e,r){return e=e>>>0,r||j(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||j(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||j(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||j(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,r,o){e=e>>>0,r=r>>>0,o||j(e,r,this.length);for(var a=this[e],y=1,E=0;++E<r&&(y*=256);)a+=this[e+E]*y;return y*=128,a>=y&&(a-=Math.pow(2,8*r)),a},c.prototype.readIntBE=function(e,r,o){e=e>>>0,r=r>>>0,o||j(e,r,this.length);for(var a=r,y=1,E=this[e+--a];a>0&&(y*=256);)E+=this[e+--a]*y;return y*=128,E>=y&&(E-=Math.pow(2,8*r)),E},c.prototype.readInt8=function(e,r){return e=e>>>0,r||j(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},c.prototype.readInt16LE=function(e,r){e=e>>>0,r||j(e,2,this.length);var o=this[e]|this[e+1]<<8;return o&32768?o|4294901760:o},c.prototype.readInt16BE=function(e,r){e=e>>>0,r||j(e,2,this.length);var o=this[e+1]|this[e]<<8;return o&32768?o|4294901760:o},c.prototype.readInt32LE=function(e,r){return e=e>>>0,r||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,r){return e=e>>>0,r||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,r){return e=e>>>0,r||j(e,4,this.length),P.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,r){return e=e>>>0,r||j(e,4,this.length),P.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||j(e,8,this.length),P.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||j(e,8,this.length),P.read(this,e,!1,52,8)};function b(u,e,r,o,a,y){if(!c.isBuffer(u))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>a||e<y)throw new RangeError('"value" argument is out of bounds');if(r+o>u.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,r,o,a){if(e=+e,r=r>>>0,o=o>>>0,!a){var y=Math.pow(2,8*o)-1;b(this,e,r,o,y,0)}var E=1,R=0;for(this[r]=e&255;++R<o&&(E*=256);)this[r+R]=e/E&255;return r+o},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,r,o,a){if(e=+e,r=r>>>0,o=o>>>0,!a){var y=Math.pow(2,8*o)-1;b(this,e,r,o,y,0)}var E=o-1,R=1;for(this[r+E]=e&255;--E>=0&&(R*=256);)this[r+E]=e/R&255;return r+o},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,r,o){return e=+e,r=r>>>0,o||b(this,e,r,1,255,0),this[r]=e&255,r+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,r,o){return e=+e,r=r>>>0,o||b(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,r,o){return e=+e,r=r>>>0,o||b(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,r,o){return e=+e,r=r>>>0,o||b(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,r,o){return e=+e,r=r>>>0,o||b(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4},c.prototype.writeIntLE=function(e,r,o,a){if(e=+e,r=r>>>0,!a){var y=Math.pow(2,8*o-1);b(this,e,r,o,y-1,-y)}var E=0,R=1,V=0;for(this[r]=e&255;++E<o&&(R*=256);)e<0&&V===0&&this[r+E-1]!==0&&(V=1),this[r+E]=(e/R>>0)-V&255;return r+o},c.prototype.writeIntBE=function(e,r,o,a){if(e=+e,r=r>>>0,!a){var y=Math.pow(2,8*o-1);b(this,e,r,o,y-1,-y)}var E=o-1,R=1,V=0;for(this[r+E]=e&255;--E>=0&&(R*=256);)e<0&&V===0&&this[r+E+1]!==0&&(V=1),this[r+E]=(e/R>>0)-V&255;return r+o},c.prototype.writeInt8=function(e,r,o){return e=+e,r=r>>>0,o||b(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1},c.prototype.writeInt16LE=function(e,r,o){return e=+e,r=r>>>0,o||b(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2},c.prototype.writeInt16BE=function(e,r,o){return e=+e,r=r>>>0,o||b(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2},c.prototype.writeInt32LE=function(e,r,o){return e=+e,r=r>>>0,o||b(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4},c.prototype.writeInt32BE=function(e,r,o){return e=+e,r=r>>>0,o||b(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function q(u,e,r,o,a,y){if(r+o>u.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function et(u,e,r,o,a){return e=+e,r=r>>>0,a||q(u,e,r,4,34028234663852886e22,-34028234663852886e22),P.write(u,e,r,o,23,4),r+4}c.prototype.writeFloatLE=function(e,r,o){return et(this,e,r,!0,o)},c.prototype.writeFloatBE=function(e,r,o){return et(this,e,r,!1,o)};function X(u,e,r,o,a){return e=+e,r=r>>>0,a||q(u,e,r,8,17976931348623157e292,-17976931348623157e292),P.write(u,e,r,o,52,8),r+8}c.prototype.writeDoubleLE=function(e,r,o){return X(this,e,r,!0,o)},c.prototype.writeDoubleBE=function(e,r,o){return X(this,e,r,!1,o)},c.prototype.copy=function(e,r,o,a){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(o||(o=0),!a&&a!==0&&(a=this.length),r>=e.length&&(r=e.length),r||(r=0),a>0&&a<o&&(a=o),a===o||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-r<a-o&&(a=e.length-r+o);var y=a-o;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,a):Uint8Array.prototype.set.call(e,this.subarray(o,a),r),y},c.prototype.fill=function(e,r,o,a){if(typeof e=="string"){if(typeof r=="string"?(a=r,r=0,o=this.length):typeof o=="string"&&(a=o,o=this.length),a!==void 0&&typeof a!="string")throw new TypeError("encoding must be a string");if(typeof a=="string"&&!c.isEncoding(a))throw new TypeError("Unknown encoding: "+a);if(e.length===1){var y=e.charCodeAt(0);(a==="utf8"&&y<128||a==="latin1")&&(e=y)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,e||(e=0);var E;if(typeof e=="number")for(E=r;E<o;++E)this[E]=e;else{var R=c.isBuffer(e)?e:c.from(e,a),V=R.length;if(V===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(E=0;E<o-r;++E)this[E+r]=R[E%V]}return this};var st=/[^+/0-9A-Za-z-_]/g;function Ut(u){if(u=u.split("=")[0],u=u.trim().replace(st,""),u.length<2)return"";for(;u.length%4!==0;)u=u+"=";return u}function Ft(u,e){e=e||1/0;for(var r,o=u.length,a=null,y=[],E=0;E<o;++E){if(r=u.charCodeAt(E),r>55295&&r<57344){if(!a){if(r>56319){(e-=3)>-1&&y.push(239,191,189);continue}else if(E+1===o){(e-=3)>-1&&y.push(239,191,189);continue}a=r;continue}if(r<56320){(e-=3)>-1&&y.push(239,191,189),a=r;continue}r=(a-55296<<10|r-56320)+65536}else a&&(e-=3)>-1&&y.push(239,191,189);if(a=null,r<128){if((e-=1)<0)break;y.push(r)}else if(r<2048){if((e-=2)<0)break;y.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;y.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;y.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return y}function Et(u){for(var e=[],r=0;r<u.length;++r)e.push(u.charCodeAt(r)&255);return e}function Rt(u,e){for(var r,o,a,y=[],E=0;E<u.length&&!((e-=2)<0);++E)r=u.charCodeAt(E),o=r>>8,a=r%256,y.push(a),y.push(o);return y}function Lt(u){return m.toByteArray(Ut(u))}function mt(u,e,r,o){for(var a=0;a<o&&!(a+r>=e.length||a>=u.length);++a)e[a+r]=u[a];return a}function at(u,e){return u instanceof e||u!=null&&u.constructor!=null&&u.constructor.name!=null&&u.constructor.name===e.name}function jt(u){return u!==u}var $t=function(){for(var u="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var o=r*16,a=0;a<16;++a)e[o+a]=u[r]+u[a];return e}()},"./node_modules/fetch-ponyfill/build/fetch-browser.js":function(ft,U,A){var m;(function(P){"use strict";function g(T){var S=T&&T.Promise||P.Promise,D=T&&T.XMLHttpRequest||P.XMLHttpRequest;return function(){var c=Object.create(P,{fetch:{value:void 0,writable:!0}});return function(v,O){O(U)}(this,function(v){"use strict";var O=typeof c<"u"&&c||typeof self<"u"&&self||typeof O<"u"&&O,F={searchParams:"URLSearchParams"in O,iterable:"Symbol"in O&&"iterator"in Symbol,blob:"FileReader"in O&&"Blob"in O&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in O,arrayBuffer:"ArrayBuffer"in O};function M(f){return f&&DataView.prototype.isPrototypeOf(f)}if(F.arrayBuffer)var _=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(f){return f&&_.indexOf(Object.prototype.toString.call(f))>-1};function d(f){if(typeof f!="string"&&(f=String(f)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(f)||f==="")throw new TypeError("Invalid character in header field name");return f.toLowerCase()}function C(f){return typeof f!="string"&&(f=String(f)),f}function k(f){var p={next:function(){var w=f.shift();return{done:w===void 0,value:w}}};return F.iterable&&(p[Symbol.iterator]=function(){return p}),p}function x(f){this.map={},f instanceof x?f.forEach(function(p,w){this.append(w,p)},this):Array.isArray(f)?f.forEach(function(p){this.append(p[0],p[1])},this):f&&Object.getOwnPropertyNames(f).forEach(function(p){this.append(p,f[p])},this)}x.prototype.append=function(f,p){f=d(f),p=C(p);var w=this.map[f];this.map[f]=w?w+", "+p:p},x.prototype.delete=function(f){delete this.map[d(f)]},x.prototype.get=function(f){return f=d(f),this.has(f)?this.map[f]:null},x.prototype.has=function(f){return this.map.hasOwnProperty(d(f))},x.prototype.set=function(f,p){this.map[d(f)]=C(p)},x.prototype.forEach=function(f,p){for(var w in this.map)this.map.hasOwnProperty(w)&&f.call(p,this.map[w],w,this)},x.prototype.keys=function(){var f=[];return this.forEach(function(p,w){f.push(w)}),k(f)},x.prototype.values=function(){var f=[];return this.forEach(function(p){f.push(p)}),k(f)},x.prototype.entries=function(){var f=[];return this.forEach(function(p,w){f.push([w,p])}),k(f)},F.iterable&&(x.prototype[Symbol.iterator]=x.prototype.entries);function $(f){if(f.bodyUsed)return S.reject(new TypeError("Already read"));f.bodyUsed=!0}function H(f){return new S(function(p,w){f.onload=function(){p(f.result)},f.onerror=function(){w(f.error)}})}function N(f){var p=new FileReader,w=H(p);return p.readAsArrayBuffer(f),w}function I(f){var p=new FileReader,w=H(p);return p.readAsText(f),w}function nt(f){for(var p=new Uint8Array(f),w=new Array(p.length),G=0;G<p.length;G++)w[G]=String.fromCharCode(p[G]);return w.join("")}function tt(f){if(f.slice)return f.slice(0);var p=new Uint8Array(f.byteLength);return p.set(new Uint8Array(f)),p.buffer}function it(){return this.bodyUsed=!1,this._initBody=function(f){this.bodyUsed=this.bodyUsed,this._bodyInit=f,f?typeof f=="string"?this._bodyText=f:F.blob&&Blob.prototype.isPrototypeOf(f)?this._bodyBlob=f:F.formData&&FormData.prototype.isPrototypeOf(f)?this._bodyFormData=f:F.searchParams&&URLSearchParams.prototype.isPrototypeOf(f)?this._bodyText=f.toString():F.arrayBuffer&&F.blob&&M(f)?(this._bodyArrayBuffer=tt(f.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):F.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(f)||l(f))?this._bodyArrayBuffer=tt(f):this._bodyText=f=Object.prototype.toString.call(f):this._bodyText="",this.headers.get("content-type")||(typeof f=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):F.searchParams&&URLSearchParams.prototype.isPrototypeOf(f)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},F.blob&&(this.blob=function(){var f=$(this);if(f)return f;if(this._bodyBlob)return S.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return S.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return S.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var f=$(this);return f||(ArrayBuffer.isView(this._bodyArrayBuffer)?S.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):S.resolve(this._bodyArrayBuffer))}else return this.blob().then(N)}),this.text=function(){var f=$(this);if(f)return f;if(this._bodyBlob)return I(this._bodyBlob);if(this._bodyArrayBuffer)return S.resolve(nt(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return S.resolve(this._bodyText)},F.formData&&(this.formData=function(){return this.text().then(lt)}),this.json=function(){return this.text().then(JSON.parse)},this}var pt=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function ot(f){var p=f.toUpperCase();return pt.indexOf(p)>-1?p:f}function Q(f,p){if(!(this instanceof Q))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');p=p||{};var w=p.body;if(f instanceof Q){if(f.bodyUsed)throw new TypeError("Already read");this.url=f.url,this.credentials=f.credentials,p.headers||(this.headers=new x(f.headers)),this.method=f.method,this.mode=f.mode,this.signal=f.signal,!w&&f._bodyInit!=null&&(w=f._bodyInit,f.bodyUsed=!0)}else this.url=String(f);if(this.credentials=p.credentials||this.credentials||"same-origin",(p.headers||!this.headers)&&(this.headers=new x(p.headers)),this.method=ot(p.method||this.method||"GET"),this.mode=p.mode||this.mode||null,this.signal=p.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&w)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(w),(this.method==="GET"||this.method==="HEAD")&&(p.cache==="no-store"||p.cache==="no-cache")){var G=/([?&])_=[^&]*/;if(G.test(this.url))this.url=this.url.replace(G,"$1_="+new Date().getTime());else{var j=/\?/;this.url+=(j.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}Q.prototype.clone=function(){return new Q(this,{body:this._bodyInit})};function lt(f){var p=new FormData;return f.trim().split("&").forEach(function(w){if(w){var G=w.split("="),j=G.shift().replace(/\+/g," "),b=G.join("=").replace(/\+/g," ");p.append(decodeURIComponent(j),decodeURIComponent(b))}}),p}function gt(f){var p=new x,w=f.replace(/\r?\n[\t ]+/g," ");return w.split("\r").map(function(G){return G.indexOf(`
`)===0?G.substr(1,G.length):G}).forEach(function(G){var j=G.split(":"),b=j.shift().trim();if(b){var q=j.join(":").trim();p.append(b,q)}}),p}it.call(Q.prototype);function K(f,p){if(!(this instanceof K))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');p||(p={}),this.type="default",this.status=p.status===void 0?200:p.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in p?p.statusText:"",this.headers=new x(p.headers),this.url=p.url||"",this._initBody(f)}it.call(K.prototype),K.prototype.clone=function(){return new K(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new x(this.headers),url:this.url})},K.error=function(){var f=new K(null,{status:0,statusText:""});return f.type="error",f};var yt=[301,302,303,307,308];K.redirect=function(f,p){if(yt.indexOf(p)===-1)throw new RangeError("Invalid status code");return new K(null,{status:p,headers:{location:f}})},v.DOMException=O.DOMException;try{new v.DOMException}catch{v.DOMException=function(p,w){this.message=p,this.name=w;var G=Error(p);this.stack=G.stack},v.DOMException.prototype=Object.create(Error.prototype),v.DOMException.prototype.constructor=v.DOMException}function ut(f,p){return new S(function(w,G){var j=new Q(f,p);if(j.signal&&j.signal.aborted)return G(new v.DOMException("Aborted","AbortError"));var b=new D;function q(){b.abort()}b.onload=function(){var X={status:b.status,statusText:b.statusText,headers:gt(b.getAllResponseHeaders()||"")};X.url="responseURL"in b?b.responseURL:X.headers.get("X-Request-URL");var st="response"in b?b.response:b.responseText;setTimeout(function(){w(new K(st,X))},0)},b.onerror=function(){setTimeout(function(){G(new TypeError("Network request failed"))},0)},b.ontimeout=function(){setTimeout(function(){G(new TypeError("Network request failed"))},0)},b.onabort=function(){setTimeout(function(){G(new v.DOMException("Aborted","AbortError"))},0)};function et(X){try{return X===""&&O.location.href?O.location.href:X}catch{return X}}b.open(j.method,et(j.url),!0),j.credentials==="include"?b.withCredentials=!0:j.credentials==="omit"&&(b.withCredentials=!1),"responseType"in b&&(F.blob?b.responseType="blob":F.arrayBuffer&&j.headers.get("Content-Type")&&j.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(b.responseType="arraybuffer")),p&&typeof p.headers=="object"&&!(p.headers instanceof x)?Object.getOwnPropertyNames(p.headers).forEach(function(X){b.setRequestHeader(X,C(p.headers[X]))}):j.headers.forEach(function(X,st){b.setRequestHeader(st,X)}),j.signal&&(j.signal.addEventListener("abort",q),b.onreadystatechange=function(){b.readyState===4&&j.signal.removeEventListener("abort",q)}),b.send(typeof j._bodyInit>"u"?null:j._bodyInit)})}ut.polyfill=!0,O.fetch||(O.fetch=ut,O.Headers=x,O.Request=Q,O.Response=K),v.Headers=x,v.Request=Q,v.Response=K,v.fetch=ut,Object.defineProperty(v,"__esModule",{value:!0})}),{fetch:c.fetch,Headers:c.Headers,Request:c.Request,Response:c.Response,DOMException:c.DOMException}}()}m=function(){return g}.call(U,A,U,ft),m!==void 0&&(ft.exports=m)})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof A.g<"u"?A.g:this)},"./node_modules/ieee754/index.js":function(ft,U){U.read=function(A,m,P,g,T){var S,D,c=T*8-g-1,v=(1<<c)-1,O=v>>1,F=-7,M=P?T-1:0,_=P?-1:1,l=A[m+M];for(M+=_,S=l&(1<<-F)-1,l>>=-F,F+=c;F>0;S=S*256+A[m+M],M+=_,F-=8);for(D=S&(1<<-F)-1,S>>=-F,F+=g;F>0;D=D*256+A[m+M],M+=_,F-=8);if(S===0)S=1-O;else{if(S===v)return D?NaN:(l?-1:1)*(1/0);D=D+Math.pow(2,g),S=S-O}return(l?-1:1)*D*Math.pow(2,S-g)},U.write=function(A,m,P,g,T,S){var D,c,v,O=S*8-T-1,F=(1<<O)-1,M=F>>1,_=T===23?Math.pow(2,-24)-Math.pow(2,-77):0,l=g?0:S-1,d=g?1:-1,C=m<0||m===0&&1/m<0?1:0;for(m=Math.abs(m),isNaN(m)||m===1/0?(c=isNaN(m)?1:0,D=F):(D=Math.floor(Math.log(m)/Math.LN2),m*(v=Math.pow(2,-D))<1&&(D--,v*=2),D+M>=1?m+=_/v:m+=_*Math.pow(2,1-M),m*v>=2&&(D++,v/=2),D+M>=F?(c=0,D=F):D+M>=1?(c=(m*v-1)*Math.pow(2,T),D=D+M):(c=m*Math.pow(2,M-1)*Math.pow(2,T),D=0));T>=8;A[P+l]=c&255,l+=d,c/=256,T-=8);for(D=D<<T|c,O+=T;O>0;A[P+l]=D&255,l+=d,D/=256,O-=8);A[P+l-d]|=C*128}},"./node_modules/sync-fetch/browser.js":function(ft,U,A){const{Buffer:m}=A("./node_modules/buffer/index.js");function P(..._){const l=new P.Request(..._),d=new XMLHttpRequest;d.withCredentials=l.credentials==="include",d.timeout=l[g].timeout,d.open(l.method,l.url,!1);let C=!1;try{d.responseType="arraybuffer"}catch{d.overrideMimeType("text/plain; charset=x-user-defined"),C=!0}for(const H of l.headers)d.setRequestHeader(...H);d.send(l.body||null);let k=d.getAllResponseHeaders();k=k&&k.split(`\r
`).filter(Boolean).map(H=>H.split(": ",2));let x=d.response;if(C){const H=m.alloc(x.length);for(let N=0;N<x.length;N++)H[N]=x.charCodeAt(N)&255;x=H}const $=new P.Response(x,{headers:k,status:d.status,statusText:d.statusText});return $[g].url=d.responseURL,$[g].redirected=d.responseURL!==l.url,$}const g=Symbol("SyncFetch Internals"),T=["mode","cache","redirect","referrer","integrity"],S={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",426:"Upgrade Required",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};class D{constructor(l,d={}){for(const C of T)if(C in d)throw new TypeError(`option ${C} not supported`);if(d.credentials==="same-origin")throw new TypeError("option credentials with value 'same-origin' not supported");if(this[g]={method:d.method||"GET",headers:new P.Headers(d.headers),body:d.body?m.from(d.body):null,credentials:d.credentials||"omit",timeout:d.timeout||0},typeof l=="string")this[g].url=l;else if(l instanceof D)this[g].url=l.url,d.method||(this[g].method=l.method),d.headers||(this[g].headers=l.headers),d.body||(this[g].body=l[g].body),d.credentials||(this[g].credentials=l.credentials);else throw new TypeError("Request input should be a URL string or a Request object")}get cache(){return"default"}get credentials(){return this[g].credentials}get destination(){return""}get headers(){return this[g].headers}get integrity(){return""}get method(){return this[g].method}get mode(){return"cors"}get priority(){return"auto"}get redirect(){return"follow"}get referrer(){return"about:client"}get referrerPolicy(){return""}get url(){return this[g].url}clone(){return O(this),new D(this.url,this[g])}}class c{constructor(l,d={}){this[g]={body:l?m.from(l):null,bodyUsed:!1,headers:new P.Headers(d.headers),status:d.status,statusText:d.statusText}}get headers(){return this[g].headers}get ok(){const l=this[g].status;return l>=200&&l<300}get redirected(){return this[g].redirected}get status(){return this[g].status}get statusText(){return this[g].statusText}get url(){return this[g].url}clone(){return this.redirect(this[g].url,this[g].status)}redirect(l,d){O(this);const C=new c(this[g].body,{headers:this[g].headers,status:d||this[g].status,statusText:S[d]||this[g].statusText});return C[g].url=l||this[g].url,C[g].redirected=this[g].redirected,C}}class v{constructor(l){this[g]={body:m.from(l),bodyUsed:!1}}get bodyUsed(){return this[g].bodyUsed}static mixin(l){for(const d of Object.getOwnPropertyNames(v.prototype)){if(d==="constructor")continue;const C=Object.getOwnPropertyDescriptor(v.prototype,d);Object.defineProperty(l,d,{...C,enumerable:!0})}}arrayBuffer(){const l=F(this);return l.buffer.slice(l.byteOffset,l.byteOffset+l.byteLength)}blob(){const l=this.headers&&this.headers.get("content-type");return new Blob([F(this)],l&&{type:l})}text(){return F(this).toString()}json(){try{return JSON.parse(F(this).toString())}catch(l){throw new TypeError(`invalid json response body at ${this.url} reason: ${l.message}`,"invalid-json")}}buffer(){return F(this).clone()}}function O(_){if(_.bodyUsed)throw new TypeError(`body used already for: ${_.url}`)}function F(_){return O(_),_[g].bodyUsed=!0,_[g].body||m.alloc(0)}v.mixin(D.prototype),v.mixin(c.prototype);class M{constructor(l){if(l instanceof P.Headers)this[g]={...l[g]};else if(this[g]={},Array.isArray(l))for(const[d,C]of l)this.append(d,C);else if(typeof l=="object")for(const d in l)this.set(d,l[d])}append(l,d){l=l.toLowerCase(),this[g][l]||(this[g][l]=[]),this[g][l].push(d)}delete(l){delete this[g][l.toLowerCase()]}set(l,d){this[g][l.toLowerCase()]=[d]}entries(){const l=[];for(const d in this[g])for(const C of this[g][d])l.push([d,C]);return l}get(l){return l=l.toLowerCase(),l in this[g]?this[g][l].join(", "):null}keys(){return Object.keys(this[g])}has(l){return l.toLowerCase()in this[g]}values(){const l=[];for(const d in this[g])for(const C of this[g][d])l.push(C);return l}*[Symbol.iterator](){for(const l in this[g])for(const d of this[g][l])yield[l,d]}}P.Headers=M,P.Request=D,P.Response=c,ft.exports=P}}]);