UNPKG

@jinntec/fore

Version:

Fore - declarative user interfaces in plain HTML

1 lines 1.3 MB
function e(e,t,n,r){const i={op:t,func:n,data:r};return e.push(i),i}function t(e,t){return e}class n{constructor(){this.program=[]}test(t,n){return e(this.program,5,t,void 0===n?null:n)}jump(t){return e(this.program,3,null,t)}record(n,r){return e(this.program,4,void 0===r?t:r,n)}bad(t=1){return e(this.program,1,null,t)}accept(){return e(this.program,0,null,null)}fail(t){return e(this.program,2,t||null,null)}}class r{constructor(e,t,n){this.programLength=e,this.maxFromByPc=t,this.maxSurvivorFromByPc=n}static fromProgram(e){const t=e.length,n=[],i=[];return e.forEach((e=>{n.push(0),i.push(0)})),e.forEach(((e,r)=>{switch(e.op){case 2:if(null===e.func)return;if(r+1>=t)throw new Error("Invalid program: program could run past end");n[r+1]+=1;break;case 1:case 4:if(r+1>=t)throw new Error("Invalid program: program could run past end");n[r+1]+=1;break;case 3:e.data.forEach((e=>{if(e<0||e>=t)throw new Error("Invalid program: program could run past end");n[e]+=1}));break;case 5:if(r+1>=t)throw new Error("Invalid program: program could run past end");i[r+1]+=1;break;case 0:i[r]+=1}})),new r(t,n,i)}static createStub(e){const t=[],n=[];for(let r=0;r<e;++r)t.push(e),n.push(e);return new r(e,t,n)}}class i{constructor(e){this.acceptingTraces=e,this.success=e.length>0}}class s{constructor(e){this.t=0,this.i=0,this.h=new Uint16Array(e),this.l=new Uint8Array(e)}getBadness(e){return this.l[e]}add(e,t){this.l[e]=t>255?255:t;const n=function(e,t,n,r,i){let s=r,o=i;for(;s<o;){const r=s+o>>>1;n<t[e[r]]?o=r:s=r+1}return s}(this.h,this.l,t,this.i,this.t);this.h.copyWithin(n+1,n,this.t),this.h[n]=e,this.t+=1}reschedule(e,t){const n=Math.max(this.l[e],t>255?255:t);if(this.l[e]!==n){const t=this.h.indexOf(e,this.i);if(t<0||t>=this.t)return void(this.l[e]=n);this.h.copyWithin(t,t+1,this.t),this.t-=1,this.add(e,n)}}getNextPc(){return this.i>=this.t?null:this.h[this.i++]}reset(){this.t=0,this.i=0,this.l.fill(0)}}class o{constructor(e){this.o=[];let t=e.length;e.forEach((e=>{this.o.push(e>0?t:-1),t+=e})),this.u=new Uint16Array(t)}clear(){this.u.fill(0,0,this.o.length)}add(e,t){const n=this.u[t],r=this.o[t];this.u[t]+=1,this.u[r+n]=e}has(e){return this.u[e]>0}forEach(e,t){const n=this.u[e],r=this.o[e];for(let e=r;e<r+n;++e)t(this.u[e])}}function a(e,t,n=!1){return null===e?t:Array.isArray(e)?(-1===e.indexOf(t)&&(n&&(e=e.slice()),e.push(t)),e):e===t?e:[e,t]}class l{constructor(e,t){this.prefixes=e,this.record=t}}function c(e,t){let n;if(null===t){if(!Array.isArray(e))return e;n=e}else n=e===l.EMPTY?[]:Array.isArray(e)?e:[e];return new l(n,t)}l.EMPTY=new l([],null);class h{constructor(e){this.p=[],this.v=[];for(let t=0;t<e;++t)this.p.push(0),this.v.push(null)}mergeTraces(e,t,n,r,i,s){let o=!1;return n.forEach(t,(t=>{const n=this.trace(t,r,i,s);var l,c,h;c=n,h=o,e=null===(l=e)?c:null===c?l:Array.isArray(c)?c.reduce(((e,t)=>a(e,t,e===c)),l):a(l,c,h),o=e===n})),e}trace(e,t,n,r){switch(this.p[e]){case 2:return this.v[e];case 1:return null}this.p[e]=1;let i=null;const s=t[e];if(null!==s)i=s;else if(!n.has(e))throw new Error("Trace without source at pc "+e);if(i=this.mergeTraces(i,e,n,t,n,r),null!==i){const t=r[e];null!==t&&(i=c(i,t))}return this.v[e]=i,this.p[e]=2,i}buildSurvivorTraces(e,t,n,r,i){for(let s=0,o=e.length;s<o;++s){if(!n.has(s)){t[s]=null;continue}this.v.fill(null),this.p.fill(0);const o=this.mergeTraces(null,s,n,e,r,i);if(null===o)throw new Error("No non-cyclic paths found to survivor "+s);t[s]=c(o,null)}this.v.fill(null)}}class u{constructor(e){this.g=[],this.k=[],this.m=[],this.A=new o(e.maxFromByPc),this.T=new o(e.maxSurvivorFromByPc),this.S=new h(e.programLength);for(let t=0;t<e.programLength;++t)this.g.push(null),this.k.push(null),this.m.push(null);this.k[0]=l.EMPTY}reset(e){this.A.clear(),this.T.clear(),this.g.fill(null),e&&(this.k.fill(null),this.m.fill(null),this.k[0]=l.EMPTY)}record(e,t){this.g[e]=t}has(e){return this.A.has(e)||null!==this.k[e]}add(e,t){this.A.add(e,t)}hasSurvivor(e){return this.T.has(e)}addSurvivor(e,t){this.T.add(e,t)}buildSurvivorTraces(){const e=this.k;this.S.buildSurvivorTraces(e,this.m,this.T,this.A,this.g),this.k=this.m,this.m=e}getTraces(e){const t=e.reduce(((e,t)=>a(e,this.k[t])),null);return null===t?[]:Array.isArray(t)?t:[t]}}class d{constructor(e){this.I=[],this.N=new s(e.programLength),this.M=new s(e.programLength),this.P=new u(e)}reset(){this.N.reset(),this.N.add(0,0),this.I.length=0,this.P.reset(!0)}getNextThreadPc(){return this.N.getNextPc()}step(e,t,n){const r=this.P.has(t);this.P.add(e,t);const i=this.N.getBadness(e)+n;r?this.N.reschedule(t,i):this.N.add(t,i)}stepToNextGeneration(e,t){const n=this.P.hasSurvivor(t);this.P.addSurvivor(e,t);const r=this.N.getBadness(e);n?this.M.reschedule(t,r):this.M.add(t,r)}accept(e){this.I.push(e),this.P.addSurvivor(e,e)}fail(e){}record(e,t){this.P.record(e,t)}nextGeneration(){this.P.buildSurvivorTraces(),this.P.reset(!1);const e=this.N;e.reset(),this.N=this.M,this.M=e}getAcceptingTraces(){return this.P.getTraces(this.I)}}class p{constructor(e){this.U=[],this.G=e,this.V=r.fromProgram(e),this.U.push(new d(this.V))}execute(e,t){const n=this.U.pop()||new d(this.V);n.reset();const r=e.length;let s,o=-1;do{let i=n.getNextThreadPc();if(null===i)break;for(++o,s=o>=r?null:e[o];null!==i;){const e=this.G[i];switch(e.op){case 0:null===s?n.accept(i):n.fail(i);break;case 2:{const r=e.func;if(null===r||r(t)){n.fail(i);break}n.step(i,i+1,0);break}case 1:n.step(i,i+1,e.data);break;case 5:if(null===s){n.fail(i);break}if(!(0,e.func)(s,e.data,t)){n.fail(i);break}n.stepToNextGeneration(i,i+1);break;case 3:{const t=e.data,r=t.length;if(0===r){n.fail(i);break}for(let e=0;e<r;++e)n.step(i,t[e],0);break}case 4:{const r=(0,e.func)(e.data,o,t);null!=r&&n.record(i,r),n.step(i,i+1,0);break}}i=n.getNextThreadPc()}n.nextGeneration()}while(null!==s);const a=new i(n.getAcceptingTraces());return n.reset(),this.U.push(n),a}}function f(e){return t=>t===e}function m(e,t){if(null===e||null===t)throw new Error("unescaped hyphen may not be used as a range endpoint");if(t<e)throw new Error("character range is in the wrong order");return n=>e<=n&&n<=t}function g(e){return!0}function O(){return!1}function y(e,t){return n=>e(n)||t(n)}function w(e,t){switch(t.kind){case"predicate":return void e.test(t.value);case"regexp":return void v(e,t.value,!1)}}function v(e,t,n){const r=e.program.length,i=e.jump([]);n&&(i.data.push(e.program.length),e.test((()=>!0)),e.jump([r]));const s=[];if(t.forEach((t=>{i.data.push(e.program.length),function(e,t){t.forEach((t=>{!function(e,t){const[n,{min:r,max:i}]=t;if(null!==i){for(let t=0;t<r;++t)w(e,n);for(let t=r;t<i;++t){const t=e.jump([]);t.data.push(e.program.length),w(e,n),t.data.push(e.program.length)}}else if(r>0){for(let t=0;t<r-1;++t)w(e,n);const t=e.program.length;w(e,n),e.jump([t]).data.push(e.program.length)}else{const t=e.program.length,r=e.jump([]);r.data.push(e.program.length),w(e,n),e.jump([t]),r.data.push(e.program.length)}}(e,t)}))}(e,t),s.push(e.jump([]))})),s.forEach((t=>{t.data.push(e.program.length)})),n){const t=e.program.length,n=e.jump([]);n.data.push(e.program.length),e.test((()=>!0)),e.jump([t]),n.data.push(e.program.length)}}function b(e,t){return{success:!0,offset:e,value:t}}function x(e){return b(e,void 0)}function S(e,t,n=!1){return{success:!1,offset:e,expected:t,fatal:n}}function A(e){return(t,n)=>{const r=n+e.length;return t.slice(n,r)===e?b(r,e):S(n,[e])}}function k(e,t){return(n,r)=>{const i=e(n,r);return i.success?b(i.offset,t(i.value)):i}}function E(e,t,n,r){return(i,s)=>{const o=e(i,s);return o.success?t(o.value)?o:S(s,n,r):o}}function C(e,t){return(n,r)=>{let i=null;for(const s of e){const e=s(n,r);if(e.success)return e;if(null===i||e.offset>i.offset?i=e:e.offset===i.offset&&void 0===t&&(i.expected=i.expected.concat(e.expected)),e.fatal)return e}return t=t||(null==i?void 0:i.expected)||[],i&&(i.expected=t),i||S(r,t)}}function T(e){return(t,n)=>{const r=e(t,n);return r.success||r.fatal?r:b(n,null)}}function $(e){return(t,n)=>{let r=[],i=n;for(;;){const n=e(t,i);if(!n.success){if(n.fatal)return n;break}if(r.push(n.value),n.offset===i)break;i=n.offset}return b(i,r)}}function Q(e,t,n){return(r,i)=>{const s=e(r,i);if(!s.success)return s;const o=t(r,s.offset);return o.success?b(o.offset,n(s.value,o.value)):o}}function P(e){return Q(e,$(e),((e,t)=>[e].concat(t)))}function N(e,t){return e}function I(e,t){return t}function B(e,t){return Q(e,t,I)}function R(e,t){return Q(e,t,N)}function X(e,t,n,r=!1){return B(e,r?M(R(t,n)):R(t,n))}function D(e,t){return(n,r)=>e(n,r).success?S(r,t):x(r)}function M(e){return(t,n)=>{const r=e(t,n);return r.success?r:S(r.offset,r.expected,!0)}}const _=(e,t)=>e.length===t?x(t):S(t,["end of input"]),U=["Lu","Ll","Lt","Lm","Lo","Mn","Mc","Me","Nd","Nl","No","Pc","Pd","Ps","Pe","Pi","Pf","Po","Zs","Zl","Zp","Sm","Sc","Sk","So","Cc","Cf","Co","Cn"],F={};function L(e){return e.codePointAt(0)}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(((e,t)=>{F[e]=t}));const Z=e=>-1===e||-2===e;function V(e){return t=>!Z(t)&&!e(t)}function j(e,t){return null===t?e:n=>e(n)&&!t(n)}const G=function(e,t){const n=new Map;let r=0;return["BasicLatin","Latin-1Supplement","LatinExtended-A","LatinExtended-B","IPAExtensions","SpacingModifierLetters","CombiningDiacriticalMarks","GreekandCoptic|Greek","Cyrillic","CyrillicSupplement","Armenian","Hebrew","Arabic","Syriac","ArabicSupplement","Thaana","NKo","Samaritan","Mandaic","SyriacSupplement","ArabicExtended-B","ArabicExtended-A","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","HangulJamo","Ethiopic","EthiopicSupplement","Cherokee","UnifiedCanadianAboriginalSyllabics","Ogham","Runic","Tagalog","Hanunoo","Buhid","Tagbanwa","Khmer","Mongolian","UnifiedCanadianAboriginalSyllabicsExtended","Limbu","TaiLe","NewTaiLue","KhmerSymbols","Buginese","TaiTham","CombiningDiacriticalMarksExtended","Balinese","Sundanese","Batak","Lepcha","OlChiki","CyrillicExtended-C","GeorgianExtended","SundaneseSupplement","VedicExtensions","PhoneticExtensions","PhoneticExtensionsSupplement","CombiningDiacriticalMarksSupplement","LatinExtendedAdditional","GreekExtended","GeneralPunctuation","SuperscriptsandSubscripts","CurrencySymbols","CombiningDiacriticalMarksforSymbols|CombiningMarksforSymbols","LetterlikeSymbols","NumberForms","Arrows","MathematicalOperators","MiscellaneousTechnical","ControlPictures","OpticalCharacterRecognition","EnclosedAlphanumerics","BoxDrawing","BlockElements","GeometricShapes","MiscellaneousSymbols","Dingbats","MiscellaneousMathematicalSymbols-A","SupplementalArrows-A","BraillePatterns","SupplementalArrows-B","MiscellaneousMathematicalSymbols-B","SupplementalMathematicalOperators","MiscellaneousSymbolsandArrows","Glagolitic","LatinExtended-C","Coptic","GeorgianSupplement","Tifinagh","EthiopicExtended","CyrillicExtended-A","SupplementalPunctuation","CJKRadicalsSupplement","KangxiRadicals",null,"IdeographicDescriptionCharacters","CJKSymbolsandPunctuation","Hiragana","Katakana","Bopomofo","HangulCompatibilityJamo","Kanbun","BopomofoExtended","CJKStrokes","KatakanaPhoneticExtensions","EnclosedCJKLettersandMonths","CJKCompatibility","CJKUnifiedIdeographsExtensionA","YijingHexagramSymbols","CJKUnifiedIdeographs","YiSyllables","YiRadicals","Lisu","Vai","CyrillicExtended-B","Bamum","ModifierToneLetters","LatinExtended-D","SylotiNagri","CommonIndicNumberForms","Phags-pa","Saurashtra","DevanagariExtended","KayahLi","Rejang","HangulJamoExtended-A","Javanese","MyanmarExtended-B","Cham","MyanmarExtended-A","TaiViet","MeeteiMayekExtensions","EthiopicExtended-A","LatinExtended-E","CherokeeSupplement","MeeteiMayek","HangulSyllables","HangulJamoExtended-B","HighSurrogates","HighPrivateUseSurrogates","LowSurrogates","PrivateUseArea|PrivateUse","CJKCompatibilityIdeographs","AlphabeticPresentationForms","ArabicPresentationForms-A","VariationSelectors","VerticalForms","CombiningHalfMarks","CJKCompatibilityForms","SmallFormVariants","ArabicPresentationForms-B","HalfwidthandFullwidthForms","Specials","LinearBSyllabary","LinearBIdeograms","AegeanNumbers","AncientGreekNumbers","AncientSymbols","PhaistosDisc",null,"Lycian","Carian","CopticEpactNumbers","OldItalic","Gothic","OldPermic","Ugaritic","OldPersian",null,"Deseret","Shavian","Osmanya","Osage","Elbasan","CaucasianAlbanian","Vithkuqi",null,"LinearA","LatinExtended-F",null,"CypriotSyllabary","ImperialAramaic","Palmyrene","Nabataean",null,"Hatran","Phoenician","Lydian",null,"MeroiticHieroglyphs","MeroiticCursive","Kharoshthi","OldSouthArabian","OldNorthArabian",null,"Manichaean","Avestan","InscriptionalParthian","InscriptionalPahlavi","PsalterPahlavi",null,"OldTurkic",null,"OldHungarian","HanifiRohingya",null,"RumiNumeralSymbols","Yezidi","ArabicExtended-C","OldSogdian","Sogdian","OldUyghur","Chorasmian","Elymaic","Brahmi","Kaithi","SoraSompeng","Chakma","Mahajani","Sharada","SinhalaArchaicNumbers","Khojki",null,"Multani","Khudawadi","Grantha",null,"Newa","Tirhuta",null,"Siddham","Modi","MongolianSupplement","Takri",null,"Ahom",null,"Dogra",null,"WarangCiti","DivesAkuru",null,"Nandinagari","ZanabazarSquare","Soyombo","UnifiedCanadianAboriginalSyllabicsExtended-A","PauCinHau","DevanagariExtended-A",null,"Bhaiksuki","Marchen",null,"MasaramGondi","GunjalaGondi",null,"Makasar","Kawi",null,"LisuSupplement","TamilSupplement","Cuneiform","CuneiformNumbersandPunctuation","EarlyDynasticCuneiform",null,"Cypro-Minoan","EgyptianHieroglyphs","EgyptianHieroglyphFormatControls",null,"AnatolianHieroglyphs",null,"BamumSupplement","Mro","Tangsa","BassaVah","PahawhHmong",null,"Medefaidrin",null,"Miao",null,"IdeographicSymbolsandPunctuation","Tangut","TangutComponents","KhitanSmallScript","TangutSupplement",null,"KanaExtended-B","KanaSupplement","KanaExtended-A","SmallKanaExtension","Nushu",null,"Duployan","ShorthandFormatControls",null,"ZnamennyMusicalNotation",null,"ByzantineMusicalSymbols","MusicalSymbols","AncientGreekMusicalNotation",null,"KaktovikNumerals","MayanNumerals","TaiXuanJingSymbols","CountingRodNumerals",null,"MathematicalAlphanumericSymbols","SuttonSignWriting",null,"LatinExtended-G","GlagoliticSupplement","CyrillicExtended-D",null,"NyiakengPuachueHmong",null,"Toto","Wancho",null,"NagMundari",null,"EthiopicExtended-B","MendeKikakui",null,"Adlam",null,"IndicSiyaqNumbers",null,"OttomanSiyaqNumbers",null,"ArabicMathematicalAlphabeticSymbols",null,"MahjongTiles","DominoTiles","PlayingCards","EnclosedAlphanumericSupplement","EnclosedIdeographicSupplement","MiscellaneousSymbolsandPictographs","Emoticons","OrnamentalDingbats","TransportandMapSymbols","AlchemicalSymbols","GeometricShapesExtended","SupplementalArrows-C","SupplementalSymbolsandPictographs","ChessSymbols","SymbolsandPictographsExtended-A","SymbolsforLegacyComputing",null,"CJKUnifiedIdeographsExtensionB",null,"CJKUnifiedIdeographsExtensionC","CJKUnifiedIdeographsExtensionD","CJKUnifiedIdeographsExtensionE","CJKUnifiedIdeographsExtensionF",null,"CJKCompatibilityIdeographsSupplement",null,"CJKUnifiedIdeographsExtensionG","CJKUnifiedIdeographsExtensionH",null,"Tags",null,"VariationSelectorsSupplement",null,"SupplementaryPrivateUseArea-A|PrivateUse","SupplementaryPrivateUseArea-B|PrivateUse"].forEach(((e,i)=>{const s=t[i];null!==e&&e.split("|").forEach((e=>{const t=n.get(e),i=m(r,r+s-1);n.set(e,t?y(t,i):i)})),r+=s})),n}(0,[128,128,128,208,96,80,112,144,256,48,96,112,256,80,48,64,64,64,32,16,48,96,128,128,128,128,128,128,128,128,128,128,128,128,256,160,96,256,384,32,96,640,32,96,32,32,32,32,128,176,80,80,48,96,32,32,144,80,128,64,64,80,48,16,48,16,48,128,64,64,256,256,112,48,48,48,80,64,112,256,256,64,32,160,128,32,96,256,192,48,16,256,128,128,256,256,96,32,128,48,80,96,32,128,128,224,16,16,64,96,96,48,96,16,32,48,16,256,256,6592,64,20992,1168,64,48,320,96,96,32,224,48,16,64,96,32,48,48,32,96,32,96,32,96,32,48,64,80,64,11184,80,896,128,1024,6400,512,80,688,16,16,16,32,32,144,240,16,128,128,64,80,64,48,128,32,64,32,48,32,48,32,64,32,80,48,48,80,48,64,80,64,384,64,64,64,32,32,48,48,32,32,32,64,32,96,96,32,32,32,64,64,32,32,48,80,80,48,128,64,288,32,64,64,48,64,64,48,32,128,80,48,80,48,96,32,80,48,48,80,128,128,128,96,160,128,96,32,80,48,80,176,80,80,96,96,64,96,80,96,16,64,96,160,112,80,64,96,80,304,32,96,80,16,64,1024,128,208,2624,112,1072,48,4e3,640,8576,576,48,96,48,144,688,96,96,160,64,32,6144,768,512,128,8816,16,256,48,64,400,2304,160,16,4688,208,48,256,256,80,112,32,32,96,32,128,1024,688,1104,256,48,96,112,80,320,48,64,464,48,736,32,224,32,96,784,80,64,80,176,256,256,48,112,96,256,256,768,80,48,128,128,128,256,256,112,144,256,1024,42720,32,4160,224,5776,7488,3088,544,1504,4944,4192,711760,128,128,240,65040,65536,65536]),q=function(e){const t=new Map,n="bfUATCYATCPAQATAXATAOATBKJTBXCTBCZPATAQAZANAZADZPAXAQAXAbgUATAY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IRASATDNBTCXAPAQATKXATANATJUAcEBAcJMAFABBMFXCPAQAFAMJXCPAQABAFMBCYgBOHMJDHAJCHLBOaBCAaDCAaBDACCDBCCDAaACAaBXACEaFCAaACAaACAaACDaADACDDAGDDAaBDBCBXECADDaAXAaBDAaAMPLiCADALDMAaBBDXEaEXBaDXAaBXAaBXAaGXAaeXBaBXAaAXAae3LEAAaHPAQAPAQAaTXBaGPAQA6QBAAXAadXYanXF6EBAABYaKBUM76NBAAMV62CAAXAaIXAa1XH6uBAAXA63DAAPAQAPAQAPAQAPAQAPAQAPAQAPAQAMdarXEPAQAXePAQAPAQAPAQAPAQAPAQAXP6/DAA3CCAAPAQAPAQAPAQAPAQAPAQAPAQAPAQAPAQAPAQAPAQAPAQAX+PAQAPAQAXfPAQA3BEAAavXUaBXFamBBafBA6oBAACvDvABCCDBAFCCADDACADFFBCBgjBAADAaFADHCCADABETDMATBDlBADABEDABBG3BGFATABNHAGWBIGGBAGGBAGGBAGGBAGGBAGGBAGGBAGGBAHfTBRASARASATCRASATARASATIOATBOATARASATBRASAPAQAPAQAPAQAPAQATEFATJOBTDOATAPATMaBTCPAQAPAQAPAQAPAQAOABhaZBA6YBAABL6VDAABZaLBDUATCaAFAGALAPAQAPAQAPAQAPAQAPAQAaBPAQAPAQAPAQAPAQAOAPAQBaALIHDIBOAFEaBLCFAGATAaBBAmVBAABBHBZBFBGAOAmZBAATAFCGABEGqBAmdBAABAaBMDaJGfajBLGPaeBAMJadMHaAMOafMJamMO6/EAAm/mBAa/mUIFAFAm2RAABCa2BIGnFFTBmLEAAFATCGPKJGBBTAtGAHAJCTAHJTAFAAbFBHBmFBAALJHBTFBHZWFIZBANDBA9FADHADCAAJFAZBADGAADDBATCDABCDAPCCADBECADABADABADAADBXFCCADAGAFBDAGGHAGCHAGDHAGWIBHBIAaDHABCMFaBYAaABFGzTDBHIBGxIPHBBHTBKJBFHRGFTCGATAGBHAKJGbHHTBGWHKIBBKTAGcBCHCIAGuHAIBHDIBHB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6BBAAHCaAh5BAAMTBLMTBL6WBAABIMYhGCAACZDZCZDGBADRCZDZCABACBBBCABBCBBBCDBACHDDBADABADGBADKCZDZCBBACDBBCHBACGBADZCBBACDBACEBACABCCGBADZCZDZCZDZCZDZCZDZCZDZCZDbBBCYXADYXADFCYXADYXADFCYXADYXADFCYXADYXADFCYXADYXADFCADABBKx6/HAAH2aDHxaHHAaNHAaBTEBOHEBAHOhPRAADJGADTBFDFhUDAAHGBAHQBBHGBAHBBAHEBEF9BgHAhvBAAGsBCHGFGBBKJBDGAaAh/EAAGdHABQGrHDKJBEYAhPHAAGaFAHDKJhlLAAGGBAGDBAGBBAGOBAmEDAABBMIHGBoChDhHGFABDKJBDTBhQMAAM6aAMCYAMDhLBAAMsaAMOhBDAAGDBAGaBAGBBAGABBGABAGJBAGDBAGABAGABFGABDGABAGABAGABAGCBAGBBAGABBGABAGABAGABAGABAGABAGBBAGABBGDBAGGBAGDBAGDBAGABAGJBAGQBEGCBAGEBAGQBzXBhNEAAarBD6jBAABLaOBBaOBAaOBAakBJMM6gCAAB3acBMarBDaIBGaBBNaFhZCAA66DAAZE6XLAABDaQBCaMBC62BAABD6eBAABFaLBDaABOaLBDa3BHaJBFanBHadBBaBhNBAA6TFAABLaNBBaMBCaIBGatBAaGBHaNBDaIBGaIBG6SCAABAa2BkKJhFQAAmfbKABfm5ABABFmdDAABBmBaBABNmw0BAhewAAmdIAAhhXAAmKNBABEmfBBAhQxtCcABd8fBAAh/BAAnvDAAhP4PA99/PABB99/PA".split(""),r=U.map((()=>[]));let i=0,s=0;for(;s<n.length;){const e=F[n[s]],t=(31&e)-2;let o=1+F[n[s+1]];switch(32&e?(o+=F[n[s+2]]<<6,o+=F[n[s+3]]<<12,o+=F[n[s+4]]<<18,s+=5):s+=2,t){case-2:{let e=0;for(let t=i;t<i+o;++t)r[e].push(f(t)),e=(e+1)%2;break}case-1:break;default:{const e=r[t];1===o?e.push(f(i)):e.push(m(i,i+o-1));break}}i+=o}const o=new Map;return U.forEach(((e,n)=>{const i=r[n].reduce(y,O);t.set(e,i);const s=e.charAt(0),a=o.get(s)||[];o.set(s,a),a.push(i)})),o.forEach(((e,n)=>{t.set(n,e.reduce(y,O))})),t}();function Y(e){return 32===e||9===e||10===e||13===e}const z=[f(L(":")),m(L("A"),L("Z")),f(L("_")),m(L("a"),L("z")),m(192,214),m(216,246),m(192,214),m(216,246),m(248,767),m(880,893),m(895,8191),m(8204,8205),m(8304,8591),m(11264,12271),m(12289,55295),m(63744,64975),m(65008,65533),m(65536,983039)].reduce(y),W=[z,f(L("-")),f(L(".")),m(L("0"),L("9")),f(183),m(768,879),m(8255,8256)].reduce(y),H=q.get("Nd"),J=V(H),K=j(m(0,1114111),[q.get("P"),q.get("Z"),q.get("C")].reduce(y)),ee=V(K);function te(e){return 10!==e&&13!==e&&!Z(e)}const ne={s:Y,S:V(Y),i:z,I:V(z),c:W,C:V(W),d:H,D:J,w:K,W:ee},re=A("*"),ie=A("\\"),se=A("{"),oe=A("}"),ae=A("["),le=A("]"),ce=A("^"),he=A("$"),ue=A(","),de=A("-"),pe=A("("),fe=A(")"),me=A("."),ge=A("|"),Oe=A("+"),ye=A("?"),we=A("-["),ve=L("0");function be(e){return[...e].map((e=>e.codePointAt(0)))}var xe=Object.freeze({__proto__:null,compile:function(e,t={language:"xsd"}){const r=function(e){function t(e){return new Set(e.split("").map((e=>L(e))))}function n(e,t){const n=e.codePointAt(t);return void 0===n?S(t,["any character"]):b(t+String.fromCodePoint(n).length,n)}const r="xpath"===e.language?B(ie,C([k(A("n"),(()=>10)),k(A("r"),(()=>13)),k(A("t"),(()=>9)),k(C([ie,ge,me,de,ce,ye,re,Oe,se,oe,he,pe,fe,ae,le]),(e=>L(e)))])):B(ie,C([k(A("n"),(()=>10)),k(A("r"),(()=>13)),k(A("t"),(()=>9)),k(C([ie,ge,me,de,ce,ye,re,Oe,se,oe,pe,fe,ae,le]),(e=>L(e)))]));function i(e,r){const i=t(r);return Q(A(e),T(E(n,(e=>i.has(e)),r.split(""))),((e,t)=>function(e){const t=q.get(e);if(null==t)throw new Error(e+" is not a valid unicode category");return t}(null===t?e:e+String.fromCodePoint(t))))}const s=C([i("L","ultmo"),i("M","nce"),i("N","dlo"),i("P","cdseifo"),i("Z","slp"),i("S","mcko"),i("C","cfon")]),o=[m(L("a"),L("z")),m(L("A"),L("Z")),m(L("0"),L("9")),f(45)].reduce(y),a=C([s,k(B(A("Is"),function(e){return(t,n)=>{const r=e(t,n);return r.success?b(r.offset,t.slice(n,r.offset)):r}}(P(E(n,o,["block identifier"])))),(t=>function(e,t){const n=G.get(e);if(void 0===n){if(t)return g;throw new Error(`The unicode block identifier "${e}" is not known.`)}return n}(t,"xpath"!==e.language)))]),l=X(A("\\p{"),a,oe,!0),c=k(X(A("\\P{"),a,oe,!0),V),h=B(ie,k(C("sSiIcCdDwW".split("").map((e=>A(e)))),(e=>ne[e]))),u=k(me,(()=>te)),d=C([h,l,c]),p=t("\\[]"),O=C([r,E(n,(e=>!p.has(e)),["unescaped character"])]),w=C([k(de,(()=>null)),O]),v=Q(w,B(de,w),m);function x(e,t){return[e].concat(t||[])}const I=k(function(e){return(t,n)=>{const r=e(t,n);return r.success?b(n,r.value):r}}(C([le,we])),(()=>null)),U=L("-"),F=C([k(R(R(de,D(ae,["not ["])),I),(()=>U)),B(D(de,["not -"]),O)]),Z=C([Q(k(F,f),C([function(e,t){return Z(e,t)},I]),x),Q(C([v,d]),C([z,I]),x)]),Y=C([Q(k(O,f),C([Z,I]),x),Q(C([v,d]),C([z,I]),x)]);function z(e,t){return Y(e,t)}const W=k(Y,(e=>e.reduce(y))),H=k(B(ce,W),V),J=Q(C([B(D(ce,["not ^"]),W),H]),T(B(de,(function(e,t){return K(e,t)}))),j),K=X(ae,J,le,!0),ee="xpath"===e.language?C([k(r,f),d,K,u,k(ce,(()=>e=>-1===e)),k(he,(()=>e=>-2===e))]):C([k(r,f),d,K,u]),be="xpath"===e.language?t(".\\?*+{}()|^$[]"):t(".\\?*+{}()|[]"),xe=E(n,(e=>!be.has(e)),["NormalChar"]),Se=k(B(ie,Q(k(E(n,m(L("1"),L("9")),["digit"]),(e=>e-ve)),$(k(E(n,m(ve,L("9")),["digit"]),(e=>e-ve))),((e,t)=>{t.reduce(((e,t)=>10*e+t),e)}))),(e=>{throw new Error("Backreferences in XPath patterns are not yet implemented.")})),Ae="xpath"===e.language?C([k(xe,(e=>({kind:"predicate",value:f(e)}))),k(ee,(e=>({kind:"predicate",value:e}))),k(X(pe,B(T(A("?:")),Qe),fe,!0),(e=>({kind:"regexp",value:e}))),Se]):C([k(xe,(e=>({kind:"predicate",value:f(e)}))),k(ee,(e=>({kind:"predicate",value:e}))),k(X(pe,Qe,fe,!0),(e=>({kind:"regexp",value:e})))]),ke=k(P(k(E(n,m(ve,L("9")),["digit"]),(e=>e-ve))),(e=>e.reduce(((e,t)=>10*e+t)))),Ee=C([Q(ke,B(ue,ke),((e,t)=>{if(t<e)throw new Error("quantifier range is in the wrong order");return{min:e,max:t}})),Q(ke,ue,(e=>({min:e,max:null}))),k(ke,(e=>({min:e,max:e})))]),Ce="xpath"===e.language?Q(C([k(ye,(()=>({min:0,max:1}))),k(re,(()=>({min:0,max:null}))),k(Oe,(()=>({min:1,max:null}))),X(se,Ee,oe,!0)]),T(ye),((e,t)=>e)):C([k(ye,(()=>({min:0,max:1}))),k(re,(()=>({min:0,max:null}))),k(Oe,(()=>({min:1,max:null}))),X(se,Ee,oe,!0)]),Te=$(Q(Ae,k(T(Ce),(e=>null===e?{min:1,max:1}:e)),((e,t)=>[e,t]))),$e=Q(Te,$(B(ge,M(Te))),((e,t)=>[e].concat(t)));function Qe(e,t){return $e(e,t)}const Pe=function(e){return Q(e,_,N)}($e);return function(e){let t;try{t=Pe(e,0)}catch(t){throw new Error(`Error parsing pattern "${e}": ${t instanceof Error?t.message:t}`)}return t.success?t.value:function(e,t,n){const r=n.map((e=>`"${e}"`));throw new Error(`Error parsing pattern "${e}" at offset ${t}: expected ${r.length>1?"one of "+r.join(", "):r[0]} but found "${e.slice(t,t+1)}"`)}(e,t.offset,t.expected)}}(t)(e),i=function(e){const t=new n;return e(t),new p(t.program)}((e=>{v(e,r,"xpath"===t.language),e.accept()}));return function(e){const n="xpath"===t.language?[-1,...be(e),-2]:be(e);return i.execute(n).success}}});function Se(e,t){return{success:!0,offset:e,value:t}}function Ae(e){return Se(e,void 0)}function ke(e,t,n=!1){return{success:!1,offset:e,expected:t,fatal:n}}function Ee(e){return e>65535?2:1}function Ce(e,t){return(n,r)=>{const i=n.codePointAt(r);return void 0!==i&&e(i)?Ae(r+Ee(i)):ke(r,t)}}function Te(e,t){return(n,r)=>{const i=e(n,r);return i.success?Se(i.offset,t(i.value)):i}}function $e(e){return(t,n)=>{let r=[],i=n;for(;;){const n=e(t,i);if(!n.success){if(n.fatal)return n;break}if(r.push(n.value),n.offset===i)break;i=n.offset}return Se(i,r)}}function Qe(e){return(t,n)=>{let r=n;for(;;){const n=e(t,r);if(!n.success){if(n.fatal)return n;break}if(n.offset===r)break;r=n.offset}return Ae(r)}}function Pe(e,t,n){return(r,i)=>{const s=e(r,i);if(!s.success)return s;const o=t(r,s.offset);return o.success?Se(o.offset,n(s.value,o.value)):o}}function Ne(e,t){return e}function Ie(e,t){return t}function Be(e,t){return Pe(e,t,Ie)}function Re(e,t){return Pe(e,t,Ne)}function Xe(e,t){return(n,r)=>e(n,r).success?ke(r,t):Ae(r)}function De(e){return(t,n)=>{const r=e(t,n);return r.success?r:ke(r.offset,r.expected,!0)}}const Me=(e,t)=>e.length===t?Ae(t):ke(t,["end of input"]);function _e(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return[t,n.value]}var Ue=Object.freeze({__proto__:null,codepoint:Ce,codepoints:function(e,t){return(n,r)=>{const i=r;for(;;){const t=n.codePointAt(r);if(void 0===t)break;if(!e(t))break;r+=t>65535?2:1}return void 0!==t&&r===i?ke(r,t):Ae(r)}},collect:_e,complete:function(e){return Pe(e,Me,Ne)},consume:function(e){return Te(e,(()=>{}))},cut:De,delimited:function(e,t,n,r=!1){return Be(e,r?De(Re(t,n)):Re(t,n))},dispatch:function(e,t,n=0,r=[]){return(i,s)=>{const o=i.codePointAt(s+n);if(void 0===o)return ke(s,r);const a=e[o];return void 0===a?void 0===t?ke(s,r):t(i,s):a(i,s)}},end:Me,error:ke,except:function(e,t,n){return Be(Xe(t,n),e)},filter:function(e,t,n,r){return(i,s)=>{const o=e(i,s);return o.success?t(o.value)?o:ke(s,n,r):o}},filterUndefined:function(e){return Te(e,(e=>e.filter((e=>void 0!==e))))},first:Ne,followed:Re,map:Te,not:Xe,ok:Ae,okWithValue:Se,optional:function(e){return(t,n)=>{const r=e(t,n);return r.success||r.fatal?r:Se(n,null)}},or:function(e,t){return(n,r)=>{let i=null;for(const s of e){const e=s(n,r);if(e.success)return e;if(null===i||e.offset>i.offset?i=e:e.offset===i.offset&&void 0===t&&(i.expected=i.expected.concat(e.expected)),e.fatal)return e}return t=t||(null==i?void 0:i.expected)||[],i&&(i.expected=t),i||ke(r,t)}},peek:function(e){return(t,n)=>{const r=e(t,n);return r.success?Se(n,r.value):r}},plus:function(e){return Pe(e,$e(e),((e,t)=>[e].concat(t)))},plusConsumed:function(e){return Pe(e,Qe(e),Ie)},preceded:Be,range:function(e,t,n){return Ce((n=>e<=n&&n<=t),n||[`${String.fromCodePoint(e)}-${String.fromCodePoint(t)}`])},recognize:function(e){return(t,n)=>{const r=e(t,n);return r.success?Se(r.offset,t.slice(n,r.offset)):r}},second:Ie,sequence:function(...e){return(t,n)=>{const r=[];for(const i of e){const e=i(t,n);if(!e.success)return e;n=e.offset,r.push(e.value)}return Se(n,r)}},sequenceConsumed:function(...e){return(t,n)=>{for(const r of e){const e=r(t,n);if(!e.success)return e;n=e.offset}return Ae(n)}},skipChars:function(e){return(t,n)=>{let r=e;for(;r>0;){const e=t.codePointAt(n);if(void 0===e)return ke(n,["any character"]);n+=Ee(e),r-=1}return Ae(n)}},star:$e,starConsumed:Qe,start:(e,t)=>0===t?Ae(t):ke(t,["start of input"]),streaming:function(e){return function*(t,n){const r=e(t,n);return r.success&&(yield r.value),r}},streamingComplete:function(e){return function*(t,n){const r=yield*e(t,n);return r.success?Me(t,r.offset):r}},streamingFilterUndefined:function(e){return function*(t,n){const r=e(t,n);let i=r.next();for(;!i.done;){const e=i.value;void 0!==e&&(yield e),i=r.next()}return i.value}},streamingOptional:function(e){return function*(t,n){const[r,i]=_e(e(t,n));return i.success?(yield*r,i):i.fatal?i:Ae(n)}},streamingStar:function(e){return function*(t,n){for(;;){const[r,i]=_e(e(t,n));if(!i.success)return i.fatal?i:Ae(n);if(yield*r,n===i.offset)return Ae(n);n=i.offset}}},streamingThen:function(e,t){return function*(n,r){const i=yield*e(n,r);return i.success?yield*t(n,i.offset):i}},then:Pe,token:function(e){return(t,n)=>{const r=n+e.length;return t.slice(n,r)===e?Se(r,e):ke(n,[e])}}});const Fe=function(e,t){const n={};function r(e,t){if(!("0"!==e&&"-0"!==e||"0"!==t&&"-0"!==t))return 0;var n=/(?:\+|(-))?(\d+)?(?:\.(\d+))?/;e=n.exec(e+"");var r=n.exec(t+""),i=!e[1];const s=!r[1];return t=(e[2]||"").replace(/^0*/,""),n=(r[2]||"").replace(/^0*/,""),e=e[3]||"",r=r[3]||"",i&&!s?1:!i&&s?-1:(i=i&&s,t.length>n.length?i?1:-1:t.length<n.length?i?-1:1:t>n?i?1:-1:t<n?i?-1:1:(t=Math.max(e.length,r.length),(n=e.padEnd(t,"0"))>(t=r.padEnd(t,"0"))?i?1:-1:n<t?i?-1:1:0))}function i(e,t){return!(-1<(e=e.toString()).indexOf(".")&&0===t)&&(!(e=/^[-+]?0*([1-9]\d*)?(?:\.((?:\d*[1-9])*)0*)?$/.exec(e))[2]||e[2].length<=t)}function s(e,t){switch(t){case"required":return/(Z)|([+-])([01]\d):([0-5]\d)$/.test(e.toString());case"prohibited":return!/(Z)|([+-])([01]\d):([0-5]\d)$/.test(e.toString());case"optional":return!0}}function o(e){switch(e){case 1:case 0:case 6:case 3:case 18:case 22:case 21:case 20:case 23:case 44:return{};case 4:return{ka:i,wa:function(e,t){return 1>r(e,t)},nc:function(e,t){return 0>r(e,t)},xa:function(e,t){return-1<r(e,t)},oc:function(e,t){return 0<r(e,t)}};case 9:case 8:case 7:case 11:case 12:case 13:case 15:case 14:return{Ba:s};default:return null}}var a={},l={};function c(e){return/^([+-]?(\d*(\.\d*)?([eE][+-]?\d*)?|INF)|NaN)$/.test(e)}function h(e){return/^[_:A-Za-z][-._:A-Za-z0-9]*$/.test(e)}function u(e){return h(e)&&/^[_A-Za-z]([-._A-Za-z0-9])*$/.test(e)}function d(e){return 1===(e=e.split(":")).length?u(e[0]):2===e.length&&(u(e[0])&&u(e[1]))}function p(e){return!/[\u0009\u000A\u000D]/.test(e)}function f(e){return u(e)}const m=new Map([[45,function(){return!0}],[46,function(){return!0}],[1,function(){return!0}],[0,function(e){return/^(0|1|true|false)$/.test(e)}],[6,function(e){return c(e)}],[3,c],[4,function(e){return/^[+-]?\d*(\.\d*)?$/.test(e)}],[18,function(e){return/^(-)?P(\d+Y)?(\d+M)?(\d+D)?(T(\d+H)?(\d+M)?(\d+(\.\d*)?S)?)?$/.test(e)}],[9,function(e){return/^-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\.[0-9]+)?|(24:00:00(\.0+)?))(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?$/.test(e)}],[8,function(e){return/^(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\.[0-9]+)?|(24:00:00(\.0+)?))(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?$/.test(e)}],[7,function(e){return/^-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?$/.test(e)}],[11,function(e){return/^-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?$/.test(e)}],[12,function(e){return/^-?([1-9][0-9]{3,}|0[0-9]{3})(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?$/.test(e)}],[13,function(e){return/^--(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?$/.test(e)}],[15,function(e){return/^---(0[1-9]|[12][0-9]|3[01])(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?$/.test(e)}],[14,function(e){return/^--(0[1-9]|1[0-2])(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?$/.test(e)}],[22,function(e){return/^([0-9A-Fa-f]{2})*$/.test(e)}],[21,function(e){return new RegExp(/^((([A-Za-z0-9+/] ?){4})*((([A-Za-z0-9+/] ?){3}[A-Za-z0-9+/])|(([A-Za-z0-9+/] ?){2}[AEIMQUYcgkosw048] ?=)|(([A-Za-z0-9+/] ?)[AQgw] ?= ?=)))?$/).test(e)}],[20,function(){return!0}],[44,d],[48,p],[52,function(e){return p(e)&&!/^ | {2,}| $/.test(e)}],[51,function(e){return/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$/.test(e)}],[50,function(e){return/^[-._:A-Za-z0-9]+$/.test(e)}],[25,h],[23,d],[24,u],[42,f],[41,f],[26,function(e){return u(e)}],[5,function(e){return/^[+-]?\d+$/.test(e)}],[16,function(e){return/^-?P[0-9]+(Y([0-9]+M)?|M)$/.test(e)}],[17,function(e){return/^-?P([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+(\.[0-9]+)?S)?)?$/.test(e)}]]);var g=Object.create(null);function O(e,t){if(!g[t])throw Error("Unknown type");return{type:t,value:e}}[{C:0,name:59},{C:0,name:46,parent:59,K:{whiteSpace:"preserve"}},{C:0,name:19,parent:46},{C:0,name:1,parent:46},{C:0,name:0,parent:46,K:{whiteSpace:"collapse"}},{C:0,name:4,parent:46,K:{whiteSpace:"collapse"}},{C:0,name:6,parent:46,K:{whiteSpace:"collapse"}},{C:0,name:3,parent:46,K:{whiteSpace:"collapse"}},{C:0,name:18,parent:46,K:{whiteSpace:"collapse"}},{C:0,name:9,parent:46,K:{Ba:"optional",whiteSpace:"collapse"}},{C:0,name:8,parent:46,K:{Ba:"optional",whiteSpace:"collapse"}},{C:0,name:7,parent:46,K:{Ba:"optional",whiteSpace:"collapse"}},{C:0,name:11,parent:46,K:{Ba:"optional",whiteSpace:"collapse"}},{C:0,name:12,parent:46,K:{Ba:"optional",whiteSpace:"collapse"}},{C:0,name:13,parent:46,K:{Ba:"optional",whiteSpace:"collapse"}},{C:0,name:15,parent:46,K:{Ba:"optional",whiteSpace:"collapse"}},{C:0,name:14,parent:46,K:{Ba:"optional",whiteSpace:"collapse"}},{C:0,name:22,parent:46,K:{whiteSpace:"collapse"}},{C:0,name:21,parent:46,K:{whiteSpace:"collapse"}},{C:0,name:20,parent:46,K:{whiteSpace:"collapse"}},{C:0,name:23,parent:46,K:{whiteSpace:"collapse"}},{C:0,name:44,parent:46,K:{whiteSpace:"collapse"}},{C:1,name:10,S:9,K:{whiteSpace:"collapse",Ba:"required"}},{C:1,name:48,S:1,K:{whiteSpace:"replace"}},{C:1,name:52,S:48,K:{whiteSpace:"collapse"}},{C:1,name:51,S:52,K:{whiteSpace:"collapse"}},{C:1,name:50,S:52,K:{whiteSpace:"collapse"}},{C:2,name:49,type:50,K:{minLength:1,whiteSpace:"collapse"}},{C:1,name:25,S:52,K:{whiteSpace:"collapse"}},{C:1,name:24,S:25,K:{whiteSpace:"collapse"}},{C:1,name:42,S:24,K:{whiteSpace:"collapse"}},{C:1,name:41,S:24,K:{whiteSpace:"collapse"}},{C:2,name:43,type:41,K:{minLength:1,whiteSpace:"collapse"}},{C:1,name:26,S:24,K:{whiteSpace:"collapse"}},{C:2,name:40,type:26,K:{minLength:1,whiteSpace:"collapse"}},{C:0,name:5,parent:4,K:{ka:0,whiteSpace:"collapse"}},{C:1,name:27,S:5,K:{ka:0,wa:"0",whiteSpace:"collapse"}},{C:1,name:28,S:27,K:{ka:0,wa:"-1",whiteSpace:"collapse"}},{C:1,name:31,S:5,K:{ka:0,wa:"9223372036854775807",xa:"-9223372036854775808",whiteSpace:"collapse"}},{C:1,name:32,S:31,K:{ka:0,wa:"2147483647",xa:"-2147483648",whiteSpace:"collapse"}},{C:1,name:33,S:32,K:{ka:0,wa:"32767",xa:"-32768",whiteSpace:"collapse"}},{C:1,name:34,S:33,K:{ka:0,wa:"127",xa:"-128",whiteSpace:"collapse"}},{C:1,name:30,S:5,K:{ka:0,xa:"0",whiteSpace:"collapse"}},{C:1,name:36,S:30,K:{ka:0,wa:"18446744073709551615",xa:"0",whiteSpace:"collapse"}},{C:1,name:35,S:36,K:{ka:0,wa:"4294967295",xa:"0",whiteSpace:"collapse"}},{C:1,name:38,S:35,K:{ka:0,wa:"65535",xa:"0",whiteSpace:"collapse"}},{C:1,name:37,S:38,K:{ka:0,wa:"255",xa:"0",whiteSpace:"collapse"}},{C:1,name:29,S:30,K:{ka:0,xa:"1",whiteSpace:"collapse"}},{C:1,name:16,S:18,K:{whiteSpace:"collapse"}},{C:1,name:17,S:18,K:{whiteSpace:"collapse"}},{C:1,name:60,S:59},{C:3,name:39,Ca:[]},{C:1,name:61,S:60},{C:1,name:62,S:60},{C:0,name:53,parent:59},{C:1,name:54,S:53},{C:1,name:58,S:53},{C:1,name:47,S:53},{C:1,name:56,S:53},{C:1,name:57,S:53},{C:1,name:55,S:53},{C:3,name:2,Ca:[4,5,6,3]},{C:3,name:63,Ca:[]}].forEach((e=>{const t=e.name,n=e.K||{};switch(e.C){case 0:e=e.parent?g[e.parent]:null;var r=m.get(t)||null;g[t]={C:0,type:t,Ka:n,parent:e,gb:r,Oa:o(t),Ca:[]};break;case 1:e=g[e.S],r=m.get(t)||null,g[t]={C:1,type:t,Ka:n,parent:e,gb:r,Oa:e.Oa,Ca:[]};break;case 2:g[t]={C:2,type:t,Ka:n,parent:g[e.type],gb:null,Oa:a,Ca:[]};break;case 3:e=e.Ca.map((e=>g[e])),g[t]={C:3,type:t,Ka:n,parent:null,gb:null,Oa:l,Ca:e}}}));var y=O(!0,0),w=O(!1,0),v=(e="A wrong argument type was specified in a function call.")=>Error(`FORG0006: ${e}`),b=class{constructor(e,t){this.done=e,this.value=t}},x=new b(!0);function S(e){return new b(!1,e)}function A(e,t){if(3===t.C)return!!t.Ca.find((t=>A(e,t)));for(;e;){if(e.type===t.type)return!0;if(3===e.C)return!!e.Ca.find((e=>k(e.type,t.type)));e=e.parent}return!1}function k(e,t){return e===t||A(g[e],g[t])}var E=class{constructor(){this.value={next:()=>x}}hb(){return this}filter(){return this}first(){return null}O(){return[]}fa(){return!1}Pa(){return 0}F(){return!0}oa(){return!1}map(){return this}N(e){return e([])}X(e){return e.empty?e.empty(this):e.default(this)}},C=class{constructor(e,t){this.type=e,this.value=t}};const T={0:"xs:boolean",1:"xs:string",2:"xs:numeric",3:"xs:double",4:"xs:decimal",5:"xs:integer",6:"xs:float",7:"xs:date",8:"xs:time",9:"xs:dateTime",10:"xs:dateTimeStamp",11:"xs:gYearMonth",12:"xs:gYear",13:"xs:gMonthDay",14:"xs:gMonth",15:"xs:gDay",16:"xs:yearMonthDuration",17:"xs:dayTimeDuration",18:"xs:duration",19:"xs:untypedAtomic",20:"xs:anyURI",21:"xs:base64Binary",22:"xs:hexBinary",23:"xs:QName",24:"xs:NCName",25:"xs:Name",26:"xs:ENTITY",27:"xs:nonPositiveInteger",28:"xs:negativeInteger",29:"xs:positiveInteger",30:"xs:nonNegativeInteger",31:"xs:long",32:"xs:int",33:"xs:short",34:"xs:byte",35:"xs:unsignedInt",36:"xs:unsignedLong",37:"xs:unsignedByte",38:"xs:unsignedShort",39:"xs:error",40:"xs:ENTITIES",41:"xs:IDREF",42:"xs:ID",43:"xs:IDREFS",44:"xs:NOTATION",45:"xs:anySimpleType",46:"xs:anyAtomicType",47:"attribute()",48:"xs:normalizedString",49:"xs:NMTOKENS",50:"xs:NMTOKEN",51:"xs:language",52:"xs:token",53:"node()",54:"element()",55:"document-node()",56:"text()",57:"processing-instruction()",58:"comment()",59:"item()",60:"function(*)",61:"map(*)",62:"array(*)",63:"none"},$={"xs:boolean":0,"xs:string":1,"xs:numeric":2,"xs:double":3,"xs:decimal":4,"xs:integer":5,"xs:float":6,"xs:date":7,"xs:time":8,"xs:dateTime":9,"xs:dateTimeStamp":10,"xs:gYearMonth":11,"xs:gYear":12,"xs:gMonthDay":13,"xs:gMonth":14,"xs:gDay":15,"xs:yearMonthDuration":16,"xs:dayTimeDuration":17,"xs:duration":18,"xs:untypedAtomic":19,"xs:anyURI":20,"xs:base64Binary":21,"xs:hexBinary":22,"xs:QName":23,"xs:NCName":24,"xs:Name":25,"xs:ENTITY":26,"xs:nonPositiveInteger":27,"xs:negativeInteger":28,"xs:positiveInteger":29,"xs:nonNegativeInteger":30,"xs:long":31,"xs:int":32,"xs:short":33,"xs:byte":34,"xs:unsignedInt":35,"xs:unsignedLong":36,"xs:unsignedByte":37,"xs:unsignedShort":38,"xs:error":39,"xs:ENTITIES":40,"xs:IDREF":41,"xs:ID":42,"xs:IDREFS":43,"xs:NOTATION":44,"xs:anySimpleType":45,"xs:anyAtomicType":46,"attribute()":47,"xs:normalizedString":48,"xs:NMTOKENS":49,"xs:NMTOKEN":50,"xs:language":51,"xs:token":52,"node()":53,"element()":54,"document-node()":55,"text()":56,"processing-instruction()":57,"comment()":58,"item()":59,"function(*)":60,"map(*)":61,"array(*)":62};function Q(e){return 2===e.g?T[e.type]+"*":1===e.g?T[e.type]+"+":0===e.g?T[e.type]+"?":T[e.type]}function P(e){if("none"===e)throw Error('XPST0051: The type "none" could not be found');if(!e.startsWith("xs:")&&0<=e.indexOf(":"))throw Error(`XPST0081: Invalid prefix for input ${e}`);const t=$[e];if(void 0===t)throw Error(`XPST0051: The type "${e}" could not be found`);return t}function N(e){switch(e[e.length-1]){case"*":return{type:P(e.substr(0,e.length-1)),g:2};case"?":return{type:P(e.substr(0,e.length-1)),g:0};case"+":return{type:P(e.substr(0,e.length-1)),g:1};default:return{type:P(e),g:3}}}function I(e){const t=e.value;if(k(e.type,53))return!0;if(k(e.type,0))return t;if(k(e.type,1)||k(e.type,20)||k(e.type,19))return 0!==t.length;if(k(e.type,2))return!isNaN(t)&&0!==t;throw v(`Cannot determine the effective boolean value of a value with the type ${T[e.type]}`)}function B(e,t=0){e.h=t}var R=class{constructor(e){this.v=M,this.h=e;let t=!1;this.value={next:()=>t?x:(t=!0,S(e))},this.o=null}hb(){return this}filter(e){return e(this.h,0,this)?this:this.v.create()}first(){return this.h}O(){return[this.h]}fa(){return null===this.o&&(this.o=I(this.h)),this.o}Pa(){return 1}F(){return!1}oa(){return!0}map(e){return this.v.create(e(this.h,0,this))}N(e){return e([this.h])}X(e){return e.m?e.m(this):e.default(this)}};const X=new E;function D(e=null,t=null){if(null===e)return X;if(Array.isArray(e))switch(e.length){case 0:return X;case 1:return new R(e[0]);default:return new class{constructor(e){this.o=M,this.h=e;let t=-1;this.value={next:()=>(t++,t>=e.length?x:S(e[t]))}}hb(){return this}filter(e){let t=-1;return this.o.create({next:()=>{for(t++;t<this.h.length&&!e(this.h[t],t,this);)t++;return t>=this.h.length?x:S(this.h[t])}})}first(){return this.h[0]}O(){return this.h}fa(){if(k(this.h[0].type,53))return!0;throw v("Cannot determine the effective boolean value of a sequence with a length higher than one.")}Pa(){return this.h.length}F(){return!1}oa(){return!1}map(e){let t=-1;return this.o.create({next:()=>++t>=this.h.length?x:S(e(this.h[t],t,this))},this.h.length)}N(e){return e(this.h)}X(e){return e.multiple?e.multiple(this):e.default(this)}}(e)}return e.next?new class{constructor(e,t=null){this.D=M,this.value={next:t=>null!==this.o&&this.h>=this.o?x:void 0!==this.v[this.h]?S(this.v[this.h++]):(t=e.next(t)).done?(this.o=this.h,t):((this.l||2>this.h)&&(this.v[this.h]=t.value),this.h++,t)},this.l=!1,this.v=[],this.h=0,this.o=t}hb(){return this.D.create(this.O())}filter(e){let t=-1;const n=this.value;return this.D.create({next:r=>{for(t++,r=n.next(r);!r.done&&!e(r.value,t,this);)t++,r=n.next(0);return r}})}first(){if(void 0!==this.v[0])return this.v[0];const e=this.value.next(0);return B(this),e.done?null:e.value}O(){if(this.h>this.v.length&&this.o!==this.v.length)throw Error("Implementation error: Sequence Iterator has progressed.");const e=this.value;this.l=!0;let t=e.next(0);for(;!t.done;)t=e.next(0);return this.v}fa(){const e=this.value,t=this.h;B(this);var n=e.next(0);if(n.done)return B(this,t),!1;if(k((n=n.value).type,53))return B(this,t),!0;if(!e.next(0).done)throw v("Cannot determine the effective boolean value of a sequence with a length higher than one.");return B(this,t),I(n)}Pa(e=!1){if(null!==this.o)return this.o;if(e)return-1;e=this.h;const t=this.O().length;return B(this,e),t}F(){return 0===this.o||null===this.first()}oa(){if(null!==this.o)return 1===this.o;var e=this.value;const t=this.h;return B(this),e.next(0).done?(B(this,t),!1):(e=e.next(0),B(this,t),e.done)}map(e){let t=0;const n=this.value;return this.D.create({next:r=>(r=n.next(r)).done?x:S(e(r.value,t++,this))},this.o)}N(e,t){const n=this.value;let r;const i=[];let s=!0;return function(){for(let e=n.next(s?0:t);!e.done;e=n.next(t))s=!1,i.push(e.value);r=e(i).value}(),this.D.create({next:()=>r.next(0)})}X(e){let t=null;const n=e=>{t=e.value,-1!==(e=e.Pa(!0))&&(this.o=e)};return this.D.create({next:r=>t?t.next(r):this.F()?(n(e.empty?e.empty(this):e.default(this)),t.next(r)):this.oa()?(n(e.m?e.m(this):e.default(this)),t.next(r)):(n(e.multiple?e.multiple(this):e.default(this)),t.next(r))})}}(e,t):new R(e)}var M={create:D,m:e=>new R(e),empty:()=>D(),aa:()=>D(y),T:()=>D(w)};function _(e){const t=[],n=e.value;return()=>{let e=0;return M.create({next:()=>{if(void 0!==t[e])return t[e++];const r=n.next(0);return r.done?r:t[e++]=r}})}}var U=class{constructor(e,t,n){this.namespaceURI=t||null,this.prefix=e||"",this.localName=n}za(){return this.prefix?this.prefix+":"+this.localName:this.localName}};var F=class extends C{constructor({j:e,arity:t,Ya:n=!1,I:r=!1,localName:i,namespaceURI:s,i:o,value:a}){for(super(60,null),this.value=a,this.I=r,r=-1,a=0;a<e.length;a++)4===e[a]&&(r=a);-1<r&&(a=Array(t-(e.length-1)).fill(e[r-1]),e=e.slice(0,r).concat(a)),this.o=e,this.v=t,this.ia=n,this.D=i,this.l=s,this.s=o}Ya(){return this.ia}};function L(e,t){const n=[];return 2!==e&&1!==e||n.push("type-1-or-type-2"),n.push(`type-${e}`),t&&n.push(`name-${t}`),n}function Z(e){const t=e.node.nodeType;let n;return 2!==t&&1!==t||(n=e.node.localName),L(t,n)}function V(e){let t,n=e.nodeType;return 4===n&&(n=3),2!==n&&1!==n||(t=e.localName),L(n,t)}var j=class{getAllAttributes(e,t=null){return 1!==e.nodeType?[]:(e=Array.from(e.attributes),null===t?e:e.filter((e=>V(e).includes(t))))}getAttribute(e,t){return 1!==e.nodeType?null:e.getAttribute(t)}getChildNodes(e,t=null){return e=Array.from(e.childNodes),null===t?e:e.filter((e=>V(e).includes(t)))}getData(e){return 2===e.nodeType?e.value:e.data}getFirstChild(e,t=null){for(e=e.firstChild;e;e=e.nextSibling)if(null===t||V(e).includes(t))return e;return null}getLastChild(e,t=null){for(e=e.lastChild;e;e=e.previousSibling)if(null===t||V(e).includes(t))return e;return null}getNextSibling(e,t=null){for(e=e.nextSibling;e;e=e.nextSibling)if(null===t||V(e).includes(t))return e;return null}getParentNode(e,t=null){return(e=2===e.nodeType?e.ownerElement:e.parentNode)&&(null===t||V(e).includes(t))?e:null}getPreviousSibling(e,t=null){for(e=e.previousSibling;e;e=e.previousSibling)if(null===t||V(e).includes(t))return e;return null}};var G=new class{insertBefore(e,t,n){return e.insertBefore(t,n)}removeAttributeNS(e,t,n){return e.removeAttributeNS(t,n)}removeChild(e,t){return e.removeChild(t)}setAttributeNS(e,t,n,r){e.setAttributeNS(t,n,r)}setData(e,t){e.data=t}};class q{constructor(e){this.h=e}insertBefore(e,t,n){return this.h.insertBefore(e,t,n)}removeAttributeNS(e,t,n){return this.h.removeAttributeNS(e,t,n)}removeChild(e,t){return this.h.removeChild(e,t)}setAttributeNS(e,t,n,r){this.h.setAttributeNS(e,t,n,r)}setData(e,t){this.h.setData(e,t)}}function Y(e){return void 0!==e.Ra}function z(e,t,n){let r=null;return t&&(Y(t.node)?r={G:t.G,offset:n,parent:t.node}:t.G&&(r=t.G)),{node:e,G:r}}function W(e,t,n=null){return e.getAllAttributes(t.node,n).map((e=>z(e,t,e.nodeName)))}function H(e,t,n){return Y(t=t.node)?(e=t.attributes.find((e=>n===e.name)))?e.value:null:(e=e.h.getAttribu