gedcom-ts 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +130 -0
- package/README.md +7 -7
- package/dist/commons/Act.d.ts +7 -2
- package/dist/commons/DateAct.d.ts +37 -0
- package/dist/commons/Identificator.enum.d.ts +5 -131
- package/dist/commons/Identifier.enum.d.ts +131 -0
- package/dist/commons/Note.d.ts +2 -2
- package/dist/export/GEDCOM.d.ts +0 -3
- package/dist/import/ReadGed.d.ts +5 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +9 -6
- package/dist/index.mjs +1 -1
- package/dist/utils/gedcom/actExtraction.d.ts +6 -0
- package/dist/utils/gedcom/personName.d.ts +6 -0
- package/dist/utils/gedcom/pointers.d.ts +3 -0
- package/dist/utils/multimedia/collectRelativeMediaPaths.d.ts +2 -0
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xe69df7=_0x1c6f;(function(_0x510fd5,_0x5bb2c8){const _0x2b01af=_0x1c6f,_0x592876=_0x510fd5();while(!![]){try{const _0x181c9c=-parseInt(_0x2b01af(0x23a))/0x1+-parseInt(_0x2b01af(0x2e7))/0x2+-parseInt(_0x2b01af(0x2cb))/0x3+parseInt(_0x2b01af(0x2eb))/0x4+parseInt(_0x2b01af(0x1e0))/0x5*(-parseInt(_0x2b01af(0x25a))/0x6)+-parseInt(_0x2b01af(0x238))/0x7*(parseInt(_0x2b01af(0x1e8))/0x8)+parseInt(_0x2b01af(0x248))/0x9;if(_0x181c9c===_0x5bb2c8)break;else _0x592876['push'](_0x592876['shift']());}catch(_0x41f92d){_0x592876['push'](_0x592876['shift']());}}}(_0x16cb,0xdec5f));function _0x1c6f(_0x4d86ad,_0x5f554a){_0x4d86ad=_0x4d86ad-0x19f;const _0x16cb8d=_0x16cb();let _0x1c6f0b=_0x16cb8d[_0x4d86ad];return _0x1c6f0b;}var pe=Object['create'],C=Object[_0xe69df7(0x291)],de=Object[_0xe69df7(0x226)],fe=Object['getOwnPropertyNames'],Ae=Object[_0xe69df7(0x19f)],ge=Object['prototype'][_0xe69df7(0x2b7)],Me=(_0x41d3f3,_0x40789d,_0x3bacd7)=>_0x40789d in _0x41d3f3?C(_0x41d3f3,_0x40789d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3bacd7}):_0x41d3f3[_0x40789d]=_0x3bacd7,Fe=(_0x53726d,_0x3c5836)=>{for(var _0x3ea553 in _0x3c5836)C(_0x53726d,_0x3ea553,{'get':_0x3c5836[_0x3ea553],'enumerable':!0x0});},q=(_0xbd0e07,_0xb72386,_0xccc2a7,_0x496e6b)=>{const _0x59b22d=_0xe69df7;if(_0xb72386&&typeof _0xb72386=='object'||typeof _0xb72386==_0x59b22d(0x2de)){for(let _0x56f9f0 of fe(_0xb72386))!ge[_0x59b22d(0x2a6)](_0xbd0e07,_0x56f9f0)&&_0x56f9f0!==_0xccc2a7&&C(_0xbd0e07,_0x56f9f0,{'get':()=>_0xb72386[_0x56f9f0],'enumerable':!(_0x496e6b=de(_0xb72386,_0x56f9f0))||_0x496e6b['enumerable']});}return _0xbd0e07;},K=(_0x75c3e5,_0x10d95d,_0x401620)=>(_0x401620=_0x75c3e5!=null?pe(Ae(_0x75c3e5)):{},q(_0x10d95d||!_0x75c3e5||!_0x75c3e5['__esModule']?C(_0x401620,_0xe69df7(0x2d8),{'value':_0x75c3e5,'enumerable':!0x0}):_0x401620,_0x75c3e5)),Ee=_0x293aa6=>q(C({},'__esModule',{'value':!0x0}),_0x293aa6),a=(_0x58e06d,_0x13746d,_0x24dcd1)=>Me(_0x58e06d,typeof _0x13746d!='symbol'?_0x13746d+'':_0x13746d,_0x24dcd1),xe={};Fe(xe,{'Act':()=>T,'Acts':()=>M,'ActsByYear':()=>$,'CoordinateGPS':()=>y,'DateAct':()=>S,'EventsByYears':()=>J,'ExportGedcomFile':()=>k,'ExportGedzipFile':()=>U,'Identificator':()=>N,'MultimediaFile':()=>E,'MultimediaFiles':()=>g,'Note':()=>v,'Notes':()=>b,'Person':()=>D,'Place':()=>F,'ReadGed':()=>x,'Sex':()=>R,'createSosaMap':()=>Z,'dateToDateLine':()=>Q,'days':()=>I,'getCityCoordinates':()=>le,'importGedFile':()=>oe,'months':()=>w,'remainingTypesAct':()=>ue}),module[_0xe69df7(0x1f8)]=Ee(xe);var I=[0x1,0x2,0x3,0x4,0x5,0x6,0x7,0x8,0x9,0xa,0xb,0xc,0xd,0xe,0xf,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f],w=[_0xe69df7(0x2e1),'FEB',_0xe69df7(0x212),'APR','MAY',_0xe69df7(0x2c7),'JUL',_0xe69df7(0x24b),'SEP',_0xe69df7(0x1f9),_0xe69df7(0x2aa),_0xe69df7(0x20e)],S=class{constructor(_0x5a2f2a){const _0x22c8b3=_0xe69df7;a(this,_0x22c8b3(0x24e)),a(this,_0x22c8b3(0x234),null),a(this,'month',null),a(this,_0x22c8b3(0x27c));if(_0x5a2f2a&&_0x5a2f2a!==_0x22c8b3(0x237)){let _0x37eb6a=_0x5a2f2a['trim']()[_0x22c8b3(0x24a)](/\s+/);switch(_0x37eb6a['length']){case 0x1:if(_0x37eb6a[0x0][_0x22c8b3(0x241)]('/')){let [_0x32f81f,_0x258362]=_0x37eb6a[0x0][_0x22c8b3(0x24a)]('/');this['month']=this[_0x22c8b3(0x1a1)](_0x32f81f),this[_0x22c8b3(0x27c)]=Number(_0x258362);}else this[_0x22c8b3(0x1d4)]=null,this[_0x22c8b3(0x27c)]=Number(_0x37eb6a[0x0]);break;case 0x2:if(_0x37eb6a[0x0]===_0x22c8b3(0x273)||_0x37eb6a[0x0]===_0x22c8b3(0x290)){if(this['typeDateAct']=_0x37eb6a[0x0],_0x37eb6a[0x1][_0x22c8b3(0x241)]('/')){let [_0x363e32,_0x5aac0e]=_0x37eb6a[0x1]['split']('/');this['month']=this['convertMonth'](_0x363e32),this[_0x22c8b3(0x27c)]=Number(_0x5aac0e);}else this[_0x22c8b3(0x1d4)]=null,this[_0x22c8b3(0x27c)]=Number(_0x37eb6a[0x1]);}else{if(_0x37eb6a[0x0][_0x22c8b3(0x241)]('/')){let [_0x5ab171,_0x2bf7ba]=_0x37eb6a[0x0]['split']('/');this['month']=this[_0x22c8b3(0x1a1)](_0x5ab171),this[_0x22c8b3(0x27c)]=Number(_0x2bf7ba);}else this['month']=_0x37eb6a[0x0]??null,this[_0x22c8b3(0x27c)]=Number(_0x37eb6a[0x1]);}break;case 0x3:if(_0x37eb6a[0x0]==='BEF'||_0x37eb6a[0x0]===_0x22c8b3(0x290))this['typeDateAct']=_0x37eb6a[0x0],this[_0x22c8b3(0x1d4)]=_0x37eb6a[0x1],this[_0x22c8b3(0x27c)]=Number(_0x37eb6a[0x2]);else{if(_0x37eb6a[0x1]['includes']('/')){let [_0x1a32c9,_0x351268]=_0x37eb6a[0x1][_0x22c8b3(0x24a)]('/');this['month']=this[_0x22c8b3(0x1a1)](_0x1a32c9),this['year']=Number(_0x351268);}else this[_0x22c8b3(0x234)]=Number(_0x37eb6a[0x0])>=0x1&&Number(_0x37eb6a[0x0])<=0x1f?Number(_0x37eb6a[0x0]):null,this['month']=_0x37eb6a[0x1],this['year']=Number(_0x37eb6a[0x2]);}break;}}}get[_0xe69df7(0x2bf)](){const _0xc97253=_0xe69df7;return this[_0xc97253(0x27c)]?this[_0xc97253(0x1d4)]?this[_0xc97253(0x234)]?this[_0xc97253(0x234)]+'\x20'+this['month']+'\x20'+this['year']:this['month']+'\x20'+this[_0xc97253(0x27c)]:''+this[_0xc97253(0x27c)]:null;}['convertMonth'](_0x13c57a){const _0x344f3b=_0xe69df7;switch(_0x13c57a){case'1':return _0x344f3b(0x2e1);case'2':return _0x344f3b(0x25c);case'3':return'MAR';case'4':return _0x344f3b(0x1ce);case'5':return _0x344f3b(0x1dc);case'6':return _0x344f3b(0x2c7);case'7':return'JUL';case'8':return _0x344f3b(0x24b);case'9':return'SEP';case'10':return _0x344f3b(0x1f9);case'11':return _0x344f3b(0x2aa);case'12':return _0x344f3b(0x20e);default:return null;}}[_0xe69df7(0x28a)](){const _0x323f6f=_0xe69df7;let _0x2a32e0=new Date()['getFullYear']();if(this[_0x323f6f(0x27c)]&&(this['year']<0x0||this['year']>_0x2a32e0))return!0x1;if(this[_0x323f6f(0x27c)]&&!this[_0x323f6f(0x1d4)]&&!this['day'])return!0x0;if(this['month']&&!w[_0x323f6f(0x241)](this[_0x323f6f(0x1d4)]))return!0x1;if(this[_0x323f6f(0x27c)]&&this[_0x323f6f(0x1d4)]&&!this[_0x323f6f(0x234)])return!0x0;if(this['day']){let _0x568649=this['year']%0x4===0x0&&this[_0x323f6f(0x27c)]%0x64!==0x0||this[_0x323f6f(0x27c)]%0x190===0x0,_0xa5dda3;if(this['month']===_0x323f6f(0x25c)&&_0x568649)_0xa5dda3=0x1d;else{let _0x1a560b=w[_0x323f6f(0x1a2)](_0x29a0fb=>_0x29a0fb===this[_0x323f6f(0x1d4)]);_0xa5dda3=I['filter'](_0x130c0b=>_0x130c0b<=new Date(this[_0x323f6f(0x27c)],_0x1a560b,0x0)[_0x323f6f(0x1e2)]())[_0x323f6f(0x2b0)];}return I[_0x323f6f(0x241)](this[_0x323f6f(0x234)])&&this[_0x323f6f(0x234)]<=_0xa5dda3;}return!0x1;}},Q=(_0x308de3,_0x657d8c,_0x4026b2)=>_0x308de3?_0x657d8c?_0x4026b2?_0x4026b2+'\x20'+_0x657d8c+'\x20'+_0x308de3:_0x657d8c+'\x20'+_0x308de3:''+_0x308de3:'',F=class{constructor(_0x57c44e,_0x1332a3){const _0x1db850=_0xe69df7;a(this,_0x1db850(0x2d3),null),a(this,'coordinate'),(_0x57c44e&&(this['city']=_0x57c44e),this[_0x1db850(0x29e)]=_0x1332a3??new y());}['addCity'](_0x1a081e){const _0x48f117=_0xe69df7;this[_0x48f117(0x2d3)]=_0x1a081e;}},y=class{constructor(_0x8610fb,_0x1f976c){const _0x329482=_0xe69df7;a(this,_0x329482(0x29f)),a(this,_0x329482(0x2b6)),(this['latitude']=_0x8610fb,this[_0x329482(0x2b6)]=_0x1f976c);}[_0xe69df7(0x275)]([_0x186c22,_0x502137]){this['latitude']=_0x186c22,this['longitude']=_0x502137;}},N=(_0x1e8fc1=>(_0x1e8fc1[_0xe69df7(0x239)]='ABBR',_0x1e8fc1[_0xe69df7(0x2b4)]=_0xe69df7(0x2b4),_0x1e8fc1['ADR1']=_0xe69df7(0x205),_0x1e8fc1[_0xe69df7(0x252)]=_0xe69df7(0x1be),_0x1e8fc1[_0xe69df7(0x22c)]='ADOP',_0x1e8fc1[_0xe69df7(0x21d)]='AFN',_0x1e8fc1[_0xe69df7(0x1c6)]='AGE',_0x1e8fc1['AGNC']='AGNC',_0x1e8fc1[_0xe69df7(0x2a9)]=_0xe69df7(0x2a9),_0x1e8fc1[_0xe69df7(0x293)]=_0xe69df7(0x293),_0x1e8fc1['ANCI']='ANCI',_0x1e8fc1['ANUL']='ANUL',_0x1e8fc1['ASSO']='ASSO',_0x1e8fc1[_0xe69df7(0x231)]=_0xe69df7(0x231),_0x1e8fc1['BAPL']=_0xe69df7(0x1ab),_0x1e8fc1['BAPM']='BAPM',_0x1e8fc1[_0xe69df7(0x1de)]='BARM',_0x1e8fc1[_0xe69df7(0x26e)]=_0xe69df7(0x26e),_0x1e8fc1[_0xe69df7(0x1b8)]=_0xe69df7(0x1b8),_0x1e8fc1['BLES']='BLES',_0x1e8fc1['BLOB']='BLOB',_0x1e8fc1[_0xe69df7(0x1f2)]=_0xe69df7(0x1f2),_0x1e8fc1[_0xe69df7(0x25e)]=_0xe69df7(0x25e),_0x1e8fc1[_0xe69df7(0x29b)]=_0xe69df7(0x29b),_0x1e8fc1[_0xe69df7(0x21a)]=_0xe69df7(0x21a),_0x1e8fc1[_0xe69df7(0x2be)]=_0xe69df7(0x2be),_0x1e8fc1['CHAN']='CHAN',_0x1e8fc1['CHAR']='CHAR',_0x1e8fc1[_0xe69df7(0x1b9)]=_0xe69df7(0x1b9),_0x1e8fc1[_0xe69df7(0x1e1)]='CHR',_0x1e8fc1[_0xe69df7(0x268)]=_0xe69df7(0x268),_0x1e8fc1['CITY']=_0xe69df7(0x2ab),_0x1e8fc1[_0xe69df7(0x208)]='CONC',_0x1e8fc1['CONF']=_0xe69df7(0x1b2),_0x1e8fc1['CONL']=_0xe69df7(0x215),_0x1e8fc1[_0xe69df7(0x28b)]=_0xe69df7(0x28b),_0x1e8fc1['COPR']=_0xe69df7(0x278),_0x1e8fc1[_0xe69df7(0x26f)]=_0xe69df7(0x26f),_0x1e8fc1[_0xe69df7(0x258)]=_0xe69df7(0x258),_0x1e8fc1['CTRY']=_0xe69df7(0x23d),_0x1e8fc1[_0xe69df7(0x263)]=_0xe69df7(0x263),_0x1e8fc1[_0xe69df7(0x1f5)]='DATE',_0x1e8fc1['DEAT']=_0xe69df7(0x250),_0x1e8fc1[_0xe69df7(0x1c2)]='DESC',_0x1e8fc1[_0xe69df7(0x2ac)]=_0xe69df7(0x2ac),_0x1e8fc1[_0xe69df7(0x274)]='DEST',_0x1e8fc1[_0xe69df7(0x1f3)]=_0xe69df7(0x1f3),_0x1e8fc1[_0xe69df7(0x206)]='DIVF',_0x1e8fc1['DSCR']=_0xe69df7(0x2ea),_0x1e8fc1[_0xe69df7(0x1c8)]=_0xe69df7(0x1c8),_0x1e8fc1['EMIG']='EMIG',_0x1e8fc1[_0xe69df7(0x2b1)]='ENDL',_0x1e8fc1[_0xe69df7(0x1a7)]='ENGA',_0x1e8fc1['EVEN']=_0xe69df7(0x27d),_0x1e8fc1[_0xe69df7(0x2e0)]=_0xe69df7(0x2e0),_0x1e8fc1['FAMC']=_0xe69df7(0x236),_0x1e8fc1[_0xe69df7(0x20b)]=_0xe69df7(0x20b),_0x1e8fc1[_0xe69df7(0x1b6)]=_0xe69df7(0x1b6),_0x1e8fc1[_0xe69df7(0x25b)]=_0xe69df7(0x25b),_0x1e8fc1[_0xe69df7(0x1d2)]=_0xe69df7(0x1d2),_0x1e8fc1[_0xe69df7(0x292)]='FORM',_0x1e8fc1[_0xe69df7(0x207)]=_0xe69df7(0x207),_0x1e8fc1[_0xe69df7(0x1f0)]='GIVN',_0x1e8fc1['GRAD']=_0xe69df7(0x1a9),_0x1e8fc1['HEAD']='HEAD',_0x1e8fc1['HUSB']='HUSB',_0x1e8fc1[_0xe69df7(0x1ac)]=_0xe69df7(0x1ac),_0x1e8fc1[_0xe69df7(0x2ca)]=_0xe69df7(0x2ca),_0x1e8fc1['INDI']='INDI',_0x1e8fc1[_0xe69df7(0x211)]=_0xe69df7(0x211),_0x1e8fc1['LEGA']=_0xe69df7(0x23f),_0x1e8fc1[_0xe69df7(0x282)]='MARB',_0x1e8fc1[_0xe69df7(0x2db)]=_0xe69df7(0x2db),_0x1e8fc1[_0xe69df7(0x1ca)]='MARL',_0x1e8fc1[_0xe69df7(0x22f)]='MARR',_0x1e8fc1[_0xe69df7(0x245)]=_0xe69df7(0x245),_0x1e8fc1['MEDI']='MEDI',_0x1e8fc1['NAME']=_0xe69df7(0x1f1),_0x1e8fc1['NATI']='NATI',_0x1e8fc1['NATU']=_0xe69df7(0x1ff),_0x1e8fc1['NCHI']=_0xe69df7(0x246),_0x1e8fc1[_0xe69df7(0x2b9)]='NICK',_0x1e8fc1[_0xe69df7(0x2a7)]=_0xe69df7(0x2a7),_0x1e8fc1[_0xe69df7(0x1cb)]=_0xe69df7(0x1cb),_0x1e8fc1[_0xe69df7(0x1bf)]='NPFX',_0x1e8fc1[_0xe69df7(0x2e3)]=_0xe69df7(0x2e3),_0x1e8fc1['OBJE']=_0xe69df7(0x1ae),_0x1e8fc1[_0xe69df7(0x2e6)]='OCCU',_0x1e8fc1['ORDI']=_0xe69df7(0x209),_0x1e8fc1[_0xe69df7(0x1c5)]='ORDN',_0x1e8fc1['PAGE']=_0xe69df7(0x2e4),_0x1e8fc1['PEDI']=_0xe69df7(0x2ce),_0x1e8fc1[_0xe69df7(0x247)]=_0xe69df7(0x247),_0x1e8fc1[_0xe69df7(0x220)]=_0xe69df7(0x220),_0x1e8fc1['POST']=_0xe69df7(0x1e9),_0x1e8fc1['PROB']=_0xe69df7(0x233),_0x1e8fc1[_0xe69df7(0x298)]=_0xe69df7(0x298),_0x1e8fc1[_0xe69df7(0x1ad)]=_0xe69df7(0x1ad),_0x1e8fc1[_0xe69df7(0x2d1)]=_0xe69df7(0x2d1),_0x1e8fc1[_0xe69df7(0x1a6)]='REFN',_0x1e8fc1[_0xe69df7(0x1cf)]=_0xe69df7(0x1cf),_0x1e8fc1['RELI']='RELI',_0x1e8fc1[_0xe69df7(0x24d)]='REPO',_0x1e8fc1['RESI']='RESI',_0x1e8fc1[_0xe69df7(0x2a4)]=_0xe69df7(0x2a4),_0x1e8fc1[_0xe69df7(0x2ef)]='RETI',_0x1e8fc1['RFN']='RFN',_0x1e8fc1['RIN']='RIN',_0x1e8fc1['ROLE']='ROLE',_0x1e8fc1['SEX']=_0xe69df7(0x270),_0x1e8fc1[_0xe69df7(0x1ea)]=_0xe69df7(0x1ea),_0x1e8fc1['SLGS']='SLGS',_0x1e8fc1['SOUR']=_0xe69df7(0x1f6),_0x1e8fc1[_0xe69df7(0x2f0)]=_0xe69df7(0x2f0),_0x1e8fc1['SSN']=_0xe69df7(0x1a3),_0x1e8fc1['STAE']='STAE',_0x1e8fc1['STAT']=_0xe69df7(0x1ba),_0x1e8fc1[_0xe69df7(0x1f7)]='SUBM',_0x1e8fc1['SUBN']=_0xe69df7(0x216),_0x1e8fc1[_0xe69df7(0x232)]=_0xe69df7(0x232),_0x1e8fc1[_0xe69df7(0x2cf)]=_0xe69df7(0x2cf),_0x1e8fc1[_0xe69df7(0x20d)]=_0xe69df7(0x20d),_0x1e8fc1[_0xe69df7(0x287)]=_0xe69df7(0x287),_0x1e8fc1[_0xe69df7(0x2ed)]='TITL',_0x1e8fc1['TRLR']=_0xe69df7(0x2d7),_0x1e8fc1[_0xe69df7(0x1f4)]=_0xe69df7(0x1f4),_0x1e8fc1[_0xe69df7(0x1bc)]=_0xe69df7(0x1bc),_0x1e8fc1['WIFE']='WIFE',_0x1e8fc1[_0xe69df7(0x1c4)]=_0xe69df7(0x1c4),_0x1e8fc1))(N||{}),E=class{constructor(_0x262156){const _0x395ba4=_0xe69df7;a(this,_0x395ba4(0x262)),a(this,_0x395ba4(0x1d7)),this[_0x395ba4(0x1d7)]=_0x262156;}get['filename'](){return this['file']['name'];}},g=class{constructor(){const _0x5215ee=_0xe69df7;a(this,'relativePath'),a(this,_0x5215ee(0x286),[]);}[_0xe69df7(0x1ec)](_0x2c108d){const _0x250ae7=_0xe69df7;let _0x455735=_0x2c108d[_0x250ae7(0x1d7)]?.[_0x250ae7(0x223)]??'',_0x113e07=(this[_0x250ae7(0x262)]??'')['replace'](/\/+$/,'');_0x2c108d[_0x250ae7(0x262)]=_0x113e07?_0x113e07+'/'+_0x455735:_0x455735,this[_0x250ae7(0x286)]['push'](_0x2c108d);}[_0xe69df7(0x281)](_0x43b37f){const _0x295335=_0xe69df7;let _0x497ffe=this[_0x295335(0x286)][_0x295335(0x1a2)]((_0x40a215,_0x4abd90)=>_0x4abd90===_0x43b37f);_0x497ffe>=0x0&&this['files'][_0x295335(0x2c8)](_0x497ffe,0x1);}[_0xe69df7(0x1d8)](){this['files']=[];}};function P(_0x50b8b9){const _0x1ff563=_0xe69df7;let _0x32630e=_0x50b8b9[_0x1ff563(0x299)](),_0x15b4af=_0x32630e['indexOf']('\x20');if(_0x15b4af<=0x0)return null;let _0x43b43e=_0x32630e[_0x1ff563(0x219)](0x0,_0x15b4af),_0xebd303=_0x32630e[_0x1ff563(0x219)](_0x15b4af+0x1)['trimStart'](),_0x185834=_0xebd303['indexOf']('\x20');if(_0x185834<=0x0)return{'level':_0x43b43e,'tag':_0xebd303,'value':''};let _0x239701=_0xebd303[_0x1ff563(0x219)](0x0,_0x185834),_0x44e30b=_0xebd303[_0x1ff563(0x219)](_0x185834+0x1);return{'level':_0x43b43e,'tag':_0x239701,'value':_0x44e30b};}function ye(_0x28fc43){let _0x3be6eb=_0x28fc43['lastIndexOf']('.');return _0x3be6eb<=0x0?{'stem':_0x28fc43,'ext':''}:{'stem':_0x28fc43['slice'](0x0,_0x3be6eb),'ext':_0x28fc43['slice'](_0x3be6eb)};}function _0x16cb(){const _0x112a02=['convertToActs','DEAT','https://nominatim.openstreetmap.org/search.php?city=','ADR2','You\x20don\x27t\x20have\x20any\x20.ged\x20File\x20in\x20your\x20.gdz\x20File','informationFamilies','1\x20GEDC','getFiles','media/events/','CREM','dateAct','6wJuEoi','FCOM','FEB','sortByYear','CALN','getReader','byteOffset','informationNotes','relativePath','DATA','gedcom-ts_','collectMediaFiles','keysFiles','4\x20LONG\x20','CHRA','INDI','assign','createFAMCFromValue','from','forEach','BASM','CORP','SEX','value','reduce','BEF','DEST','addCoordinates','firstnames','onCreate','COPR','updatePlace','place','ingestGedcomText','year','EVEN','resolveZipPath','events','updateLines','removeFromIndex','MARB','splitInformationNotes','exec','get','files','TIME','updateType','LONG','isValid','CONT','file-saver','updateDateAct','1\x20SOUR\x20generated\x20by\x20gedcom-ts','application/x-gedcom','ABT','defineProperty','FORM','ANCE','PLACE','set','0\x20HEAD','notes','PROP','trimStart','has','CAST','Le\x20type\x20doit-être\x20au\x20format:\x20application/x-gedcom','1\x20MARR','coordinate','latitude','test','find','2-digit','\x20FILE\x20','RESN','haveParentsOfPerson','call','NMR','removeMultimedia','ALIA','NOV','CITY','DESI','1\x20CHIL\x20@I','onload','resolveActIndis','length','ENDL','jszip','multimediaFiles','ADDR','createObjectURL','longitude','hasOwnProperty','3\x20MAP','NICK','1\x20WIFE','tag','1\x20BIRT','join','CENS','date','createPersonJson','childsMap','splitInformationFamilies','_gedcom-ts_','type','trim','line','JUN','splice','zipFile','IMMI','4276695ercTbG','generateUniqueIndi','addNoteFromGedcom','PEDI','TEMP','catch','QUAY','entries','city','parse','buffer','startsWith','TRLR','default','groupPartners','filename','MARC','getType','file\x20must\x20be\x20a\x20File','function','href','FAM','JAN','0\x20@F','NSFX','PAGE','acts','OCCU','1925134oRonwj','haveFiles','1\x20FILE\x20','DSCR','213076ZgNwkk','2\x20DATE\x20','TITL','toUpperCase','RETI','SPFX','getPrototypeOf','list','convertMonth','findIndex','SSN','partnersMap','formatDate','REFN','ENGA','\x20CONT\x20','GRAD','placesMap','BAPL','IDNO','PUBL','OBJE','number','mapFiles','persons','CONF','2\x20FILE\x20','@\x20FAM\x0a','finalizeAfterParse','FAMS','2\x20FORM\x20LINEAGE-LINKED','BIRT','CHIL','STAT','blob','VERS','byteLength','ADDR2','NPFX','SEP','indexOf','DESC','string','WILL','ORDN','AGE','replace','EDUC','createSexFromValue','MARL','NOTE','sortByDate','sosa','APR','RELA','ownerIndi','getFamc','FILE','addIndis','month','\x20@I','lines','file','removeAll','resolvePersonIndi','Impossible\x20de\x20trouver\x20un\x20nom\x20de\x20fichier\x20média\x20disponible','Le\x20fichier\x20envoyé\x20doit-etre\x20un\x20File','MAY','push','BARM','uint8array','158995CSlbZl','CHR','getDate','createFirstnamesAndLastnameJson','saveAs','size','responseText','keys','8qEAAkA','POST','SLGC','status','add','createFAMSFromValue','mediaRelativePathsInUse','LATI','GIVN','NAME','BURI','DIV','TYPE','DATE','SOUR','SUBM','exports','OCT','createElement','getFams','removeLines','INDIS','addMultimedia','NATU','zip','application/zip','setInformationFamilies','text','updateFromIndex','ADDR1','DIVF','GEDC','CONC','ORDI','unknown','FAMF','createDirectAncestries','TEXT','DEC','extractXrefId','title','LANG','MAR','fr-FR','ingestGedcomFileStream','CONL','SUBN','informationPersons','then','slice','CAUS','extractActsInfo','NOTES','AFN','1\x20DATE\x20','gedcomBlob','PLAC','getIndi','delete','name','createIndiFromZeroLine','1\x20FAMC\x20@F','getOwnPropertyDescriptor','fromGedcomFile','async','map','contentGedcom','mapPersons','ADOP','1\x20DEAT','sort','MARR','parsePersonLine','AUTH','SURN','PROB','day','newMultimediaFiles','FAMC','inconnue','5261543unZgaJ','ABBR','1351432XemHNx','getName','FILES','CTRY','values','LEGA','addCity','includes','beginGedcom','lastname','filter','MARS','NCHI','PHON','48439998YsWuWs','createPersons','split','AUG','ingestRecordBlock','REPO','typeDateAct'];_0x16cb=function(){return _0x112a02;};return _0x16cb();}function Ne(_0x2b55b2,_0x18a588,_0x4f2100){return _0x4f2100===0x0?''+_0x2b55b2+_0x18a588:_0x2b55b2+'_'+_0x4f2100+_0x18a588;}function O(_0x605425,_0x376a4d,_0x48536e){const _0x5eec66=_0xe69df7;let _0x1045c7=new Set(_0x48536e),_0x522540=_0x605425[_0x5eec66(0x1c7)](/\/+$/,''),_0x2a5946=_0x376a4d['replace'](/^[/\\]+|[/\\]+/g,''),{stem:_0x1c46e7,ext:_0x31e0d2}=ye(_0x2a5946),_0x531161=0x2710;for(let _0x2e85ae=0x0;_0x2e85ae<_0x531161;_0x2e85ae++){let _0x2b2956=Ne(_0x1c46e7,_0x31e0d2,_0x2e85ae),_0x3b06cc=_0x522540?_0x522540+'/'+_0x2b2956:_0x2b2956;if(!_0x1045c7[_0x5eec66(0x29a)](_0x3b06cc))return _0x3b06cc;}throw new Error(_0x5eec66(0x1da));}var T=class{constructor(_0x5c26d5,_0x3bb160,_0x175dd0,_0x3872f3,_0xc5ee51,_0x56b9ad,_0x3683f6){const _0x1d2b26=_0xe69df7;a(this,'type'),a(this,_0x1d2b26(0x259),null),a(this,_0x1d2b26(0x27a),null),a(this,'INDIS',[]),a(this,_0x1d2b26(0x235),new Map()),a(this,_0x1d2b26(0x2b3),new g()),a(this,_0x1d2b26(0x297)),(this[_0x1d2b26(0x2c4)]=_0x5c26d5,_0x3bb160&&(this[_0x1d2b26(0x259)]=_0x3bb160),_0x175dd0&&(this[_0x1d2b26(0x27a)]=_0x175dd0),_0x3872f3?.[_0x1d2b26(0x2b0)]>0x0&&(this[_0x1d2b26(0x1fd)]=_0x3872f3),_0xc5ee51&&(this[_0x1d2b26(0x2b3)]=_0xc5ee51),_0x56b9ad&&(this['newMultimediaFiles']=_0x56b9ad),_0x3683f6&&(this[_0x1d2b26(0x297)]=_0x3683f6));}get[_0xe69df7(0x286)](){const _0x1a547e=_0xe69df7;return Array[_0x1a547e(0x26c)](this[_0x1a547e(0x235)][_0x1a547e(0x23e)]());}get[_0xe69df7(0x266)](){const _0x14dddc=_0xe69df7;return Array[_0x14dddc(0x26c)](this['newMultimediaFiles']['keys']());}[_0xe69df7(0x1fe)](_0x31cf04,_0x31e662){const _0x4fb445=_0xe69df7;let _0x39cd65=_0x31e662??this[_0x4fb445(0x1fd)][0x0];if(_0x39cd65===void 0x0||!_0x31cf04?.[_0x4fb445(0x1d7)])return;let _0x398868=_0x39cd65+'/'+this['type'],_0x20ad8a=this[_0x4fb445(0x1ee)](),_0x4f1222=O(_0x398868,_0x31cf04[_0x4fb445(0x1d7)][_0x4fb445(0x223)],_0x20ad8a);_0x31cf04[_0x4fb445(0x262)]=_0x4f1222,this[_0x4fb445(0x2b3)][_0x4fb445(0x286)][_0x4fb445(0x1dd)](_0x31cf04),this['newMultimediaFiles'][_0x4fb445(0x295)](_0x4f1222,_0x31cf04);}[_0xe69df7(0x2a8)](_0x140ffb){const _0x511002=_0xe69df7;let _0xff97c7=Array[_0x511002(0x26c)](this[_0x511002(0x235)][_0x511002(0x1e7)]())[_0x511002(0x2a1)]((_0x4cecbf,_0x5d63ef)=>_0x140ffb===_0x5d63ef);if(_0xff97c7){this[_0x511002(0x235)]['delete'](_0xff97c7);let _0x5e57d9=this['multimediaFiles'][_0x511002(0x286)]['findIndex'](_0x18d68a=>_0x18d68a[_0x511002(0x262)]===_0xff97c7);_0x5e57d9>=0x0&&this[_0x511002(0x2b3)]['files'][_0x511002(0x2c8)](_0x5e57d9,0x1);}}[_0xe69df7(0x1ee)](){const _0x6b67ee=_0xe69df7;return[...this[_0x6b67ee(0x235)][_0x6b67ee(0x1e7)](),...this['multimediaFiles'][_0x6b67ee(0x286)][_0x6b67ee(0x229)](_0x44554e=>_0x44554e[_0x6b67ee(0x262)])[_0x6b67ee(0x244)](_0x3b22b4=>!!_0x3b22b4)];}[_0xe69df7(0x288)](_0x59c601){const _0x3e103e=_0xe69df7;this[_0x3e103e(0x2c4)]=_0x59c601;}[_0xe69df7(0x1d3)](_0x5b0590){const _0xafa6=_0xe69df7;this[_0xafa6(0x1fd)]=_0x5b0590;}[_0xe69df7(0x279)](_0x318409){this['place']=_0x318409;}[_0xe69df7(0x28d)](_0x494b41){const _0x46d9ea=_0xe69df7;_0x494b41?.[_0x46d9ea(0x28a)]()&&(this[_0x46d9ea(0x259)]=_0x494b41);}},M=class{constructor(){const _0x5d272c=_0xe69df7;a(this,_0x5d272c(0x1a0),[]);}['add'](_0x1063b1){const _0xd0e1fb=_0xe69df7;this[_0xd0e1fb(0x1a0)][_0xd0e1fb(0x1dd)](_0x1063b1);}['updateFromIndex'](_0x445bfd,_0x2e4add){this['list'][_0x2e4add]=_0x445bfd;}['removeFromIndex'](_0x1d9576){const _0x22870d=_0xe69df7;let _0x4a67cd=this[_0x22870d(0x1a0)]['findIndex']((_0x2f73a0,_0x1b7bad)=>_0x1b7bad===_0x1d9576);_0x4a67cd>=0x0&&this['list'][_0x22870d(0x2c8)](_0x4a67cd,0x1);}[_0xe69df7(0x1d8)](){const _0x2eb441=_0xe69df7;this[_0x2eb441(0x1a0)]=[];}['sortByDate'](){const _0x2332c6=_0xe69df7;this[_0x2332c6(0x1a0)]=[...this[_0x2332c6(0x1a0)]]['sort']((_0x14e50f,_0x94be20)=>{const _0x1aba9a=_0x2332c6;let _0xe7f4bf=_0x14e50f['dateAct']?.['year']||0x0,_0x57c8a4=_0x94be20[_0x1aba9a(0x259)]?.['year']||0x0;if(_0xe7f4bf!==_0x57c8a4)return _0xe7f4bf-_0x57c8a4;let _0x440e38=_0x14e50f['dateAct']?.['month']||'',_0x3b85b0=_0x94be20['dateAct']?.['month']||'',_0x22cb8a=[_0x1aba9a(0x2e1),_0x1aba9a(0x25c),'MAR','APR','MAY',_0x1aba9a(0x2c7),'JUL',_0x1aba9a(0x24b),_0x1aba9a(0x1c0),'OCT','NOV',_0x1aba9a(0x20e)],_0x5ebaf6=_0x22cb8a[_0x1aba9a(0x1c1)](_0x440e38),_0x20f72b=_0x22cb8a[_0x1aba9a(0x1c1)](_0x3b85b0);if(_0x5ebaf6!==_0x20f72b)return _0x5ebaf6-_0x20f72b;let _0x5c9f52=_0x14e50f[_0x1aba9a(0x259)]?.[_0x1aba9a(0x234)]||0x0,_0x34ad4a=_0x94be20[_0x1aba9a(0x259)]?.['day']||0x0;return _0x5c9f52-_0x34ad4a;});}},B=class extends M{[_0xe69df7(0x21b)](_0x533b9c,_0x26dc2d,_0x21792f){const _0x691554=_0xe69df7;let _0x36c4a4=[],_0x1774eb=_0x5622ec=>_0x5622ec[_0x691554(0x299)]()[_0x691554(0x2d6)]('1\x20'),_0x1673af=_0x16971f=>{const _0xb61e2e=_0x691554;let _0x27edab=_0x16971f[_0xb61e2e(0x1c1)]('@I');if(_0x27edab<0x0)return null;let _0x9aa92=_0x16971f[_0xb61e2e(0x1c1)]('@',_0x27edab+0x2);if(_0x9aa92<=_0x27edab)return null;let _0x303338=_0x16971f[_0xb61e2e(0x219)](_0x27edab+0x2,_0x9aa92);return/^\d+$/[_0xb61e2e(0x2a0)](_0x303338)?Number(_0x303338):null;};for(let _0x5078a5=0x0;_0x5078a5<_0x533b9c['length'];_0x5078a5++){let _0xc7c188=_0x533b9c[_0x5078a5];if(_0xc7c188['startsWith']('1\x20HUSB')||_0xc7c188[_0x691554(0x2d6)](_0x691554(0x2ba))){let _0x71d2c2=_0x1673af(_0xc7c188);_0x71d2c2!==null&&_0x26dc2d['push'](_0x71d2c2);}if(_0xc7c188['startsWith'](_0x691554(0x2bc))||_0xc7c188[_0x691554(0x2d6)](_0x691554(0x22d))||_0xc7c188[_0x691554(0x2d6)](_0x691554(0x29d))){let _0x22ab13=[_0xc7c188],_0x38fdcf=_0x5078a5+0x1,_0x484f6e=_0x533b9c[_0x38fdcf];for(;_0x484f6e&&!_0x1774eb(_0x484f6e);)_0x22ab13[_0x691554(0x1dd)](_0x484f6e),_0x38fdcf+=0x1,_0x484f6e=_0x533b9c[_0x38fdcf];_0x36c4a4['push'](_0x22ab13),_0x5078a5=_0x38fdcf-0x1;}}this[_0x691554(0x24f)](_0x36c4a4[_0x691554(0x244)](_0x2af028=>_0x2af028['length']>0x1),_0x26dc2d,_0x21792f);}[_0xe69df7(0x24f)](_0x5f1e60,_0xb0228c,_0x4441f4){const _0x767045=_0xe69df7;for(let _0x617cb8 of _0x5f1e60){let _0x1f4488=_0x617cb8[0x0],_0xf91227=_0x1f4488[_0x767045(0x241)](_0x767045(0x1b8))?'BIRT':_0x1f4488['includes']('DEAT')?_0x767045(0x250):_0x767045(0x22f),_0x4305d8,_0x39cb34=new F(),_0x29f75d=new g(),_0x2f4662=new Map(),_0x47e3d5=[];for(let _0x5b626d=0x1;_0x5b626d<_0x617cb8[_0x767045(0x2b0)];_0x5b626d++){let _0x3c5512=_0x617cb8[_0x5b626d],_0x5618e8=P(_0x3c5512);if(!_0x5618e8)continue;let {tag:_0x172aa0,value:_0x302ffa}=_0x5618e8;switch(_0x172aa0){case'DATE':{let _0x216112=_0x302ffa;_0x216112!==_0x767045(0x237)&&(_0x4305d8=new S(_0x216112));break;}case'PLAC':{let _0x163c35=_0x302ffa;_0x39cb34[_0x767045(0x240)](_0x163c35);break;}case _0x767045(0x1ef):case _0x767045(0x289):{let _0x5cb84a=_0x302ffa;_0x47e3d5[_0x767045(0x1dd)](Number(_0x5cb84a));break;}case _0x767045(0x1d2):{let _0xd91a35=_0x302ffa[_0x767045(0x2c5)](),_0x378a48=_0x4441f4['get'](_0xd91a35),_0x4efeeb=new E(_0x378a48);_0x4efeeb[_0x767045(0x262)]=_0xd91a35,_0x29f75d[_0x767045(0x286)]['push'](_0x4efeeb),_0x2f4662[_0x767045(0x295)](_0xd91a35,_0x4efeeb);break;}default:break;}_0x47e3d5['length']===0x2&&_0x39cb34['coordinate'][_0x767045(0x275)](_0x47e3d5);}if(_0x4305d8||_0x39cb34){let _0x1631e1=new T(_0xf91227,_0x4305d8,_0x39cb34,[],_0x29f75d,_0x2f4662);_0x1631e1[_0x767045(0x1d3)](_0xb0228c),this['add'](_0x1631e1);}}}},v=class{constructor(){const _0x1e16ee=_0xe69df7;a(this,'INDIS',[]),a(this,_0x1e16ee(0x2c4)),a(this,'lines');}[_0xe69df7(0x280)](_0x32a53e){const _0x28e39b=_0xe69df7;_0x32a53e?.['length']>0x0&&(this[_0x28e39b(0x1d6)]=_0x32a53e);}[_0xe69df7(0x1fc)](){const _0x587599=_0xe69df7;this[_0x587599(0x1d6)]=[];}[_0xe69df7(0x288)](_0x3aef48){const _0x37edc3=_0xe69df7;this[_0x37edc3(0x2c4)]=_0x3aef48;}['addIndis'](_0x46b7e3){this['INDIS']=_0x46b7e3;}},b=class{constructor(){const _0x29d914=_0xe69df7;a(this,_0x29d914(0x1a0),[]);}['addNote'](_0x517133){const _0x53b051=_0xe69df7;this['list'][_0x53b051(0x1dd)](_0x517133);}[_0xe69df7(0x204)](_0x597e97,_0x559f2d){this['list'][_0x559f2d]=_0x597e97;}[_0xe69df7(0x281)](_0x3d6e5d){const _0x3e5f66=_0xe69df7;let _0x3fafde=this[_0x3e5f66(0x1a0)]['findIndex']((_0x95b6c6,_0x3c935c)=>_0x3c935c===_0x3d6e5d);_0x3fafde>=0x0&&this[_0x3e5f66(0x1a0)][_0x3e5f66(0x2c8)](_0x3fafde,0x1);}[_0xe69df7(0x1d8)](){this['list']=[];}},R=(_0x1da27a=>(_0x1da27a['M']='M',_0x1da27a['F']='F',_0x1da27a))(R||{}),D=class{constructor(_0x33f193,_0x21f366,_0x37419e,_0x14105e,_0x4737a7,_0x39fb6c,_0x5b1f91,_0x4daaed,_0x11965d,_0x31736a){const _0x3911b8=_0xe69df7;a(this,'sosa'),a(this,'INDI'),a(this,'SEX'),a(this,_0x3911b8(0x276)),a(this,'lastname'),a(this,'FAMC'),a(this,_0x3911b8(0x1b6),[]),a(this,_0x3911b8(0x235),new Map()),a(this,_0x3911b8(0x2b3),new g()),a(this,'acts',new M()),a(this,_0x3911b8(0x297),new b()),(this[_0x3911b8(0x269)]=_0x5b1f91,this[_0x3911b8(0x270)]=_0x21f366,this[_0x3911b8(0x236)]=_0x4737a7,this[_0x3911b8(0x1b6)]=_0x39fb6c??[],this[_0x3911b8(0x1cd)]=_0x33f193,this[_0x3911b8(0x276)]=_0x37419e??[],this['lastname']=_0x14105e??'',_0x4daaed&&_0x4daaed[_0x3911b8(0x286)]['length']>0x0&&(this[_0x3911b8(0x2b3)]=_0x4daaed),_0x31736a&&_0x31736a[_0x3911b8(0x1a0)][_0x3911b8(0x2b0)]>0x0&&(this['acts']=_0x31736a));}get[_0xe69df7(0x286)](){const _0x291740=_0xe69df7;return Array['from'](this['newMultimediaFiles'][_0x291740(0x23e)]());}get['keysFiles'](){const _0x99e7b1=_0xe69df7;return Array['from'](this[_0x99e7b1(0x235)][_0x99e7b1(0x1e7)]());}[_0xe69df7(0x2c0)](_0x504d49,_0x1ff811,_0xfbcafc,_0x177964){const _0x52590b=_0xe69df7;let _0x1e5b01=_0x504d49[_0x52590b(0x229)](_0x11d129=>_0x11d129[_0x52590b(0x1c7)](/[\n\r]+/g,''));_0x1e5b01[_0x52590b(0x26d)](_0x3caa1b=>{this['parsePersonLine'](_0x3caa1b,_0xfbcafc,_0x177964);}),this[_0x52590b(0x1e3)](_0x1e5b01);let _0x3b4d57=new B();_0x3b4d57[_0x52590b(0x21b)](_0x1e5b01,[this[_0x52590b(0x269)]],_0xfbcafc),this[_0x52590b(0x1b6)]?.[_0x52590b(0x2b0)]>0x0&&_0x1ff811&&this[_0x52590b(0x1b6)][_0x52590b(0x26d)](_0x31daa8=>{const _0x37484c=_0x52590b;let _0x2725ec=_0x1ff811[_0x37484c(0x285)](_0x31daa8);_0x3b4d57['extractActsInfo'](_0x2725ec,[],_0xfbcafc);}),this['acts']=_0x3b4d57,this[_0x52590b(0x2e5)][_0x52590b(0x1cc)]();}[_0xe69df7(0x230)](_0x18bbce,_0x16f96e,_0x18f519){const _0x110be8=_0xe69df7;let _0x1f69b7=P(_0x18bbce);if(!_0x1f69b7)return;let {level:_0x3f5bb5,tag:_0x58c7fd,value:_0x4c20b0}=_0x1f69b7;if(_0x3f5bb5==='0'&&_0x58c7fd[_0x110be8(0x2d6)]('@I')){this[_0x110be8(0x224)](_0x18bbce);return;}switch(_0x58c7fd){case'SEX':this[_0x110be8(0x1c9)](_0x4c20b0);break;case'FAMC':this[_0x110be8(0x26b)](_0x4c20b0);break;case _0x110be8(0x1b6):this[_0x110be8(0x1ed)](_0x4c20b0);break;case _0x110be8(0x1cb):this['addNoteFromGedcom'](_0x4c20b0,_0x18f519);break;case'FILE':this['createMultimediaFilesFromValue'](_0x4c20b0,_0x16f96e);break;default:break;}}[_0xe69df7(0x224)](_0x1c1be7){const _0x5211fb=_0xe69df7;let _0x54ed0c=_0x1c1be7['indexOf']('@I');if(_0x54ed0c<0x0)return;let _0x1da688=_0x1c1be7[_0x5211fb(0x1c1)]('@',_0x54ed0c+0x2);if(_0x1da688<=_0x54ed0c||!_0x1c1be7[_0x5211fb(0x241)](_0x5211fb(0x269),_0x1da688))return;let _0x6f7062=_0x1c1be7[_0x5211fb(0x219)](_0x54ed0c+0x2,_0x1da688);/^\d+$/[_0x5211fb(0x2a0)](_0x6f7062)&&(this[_0x5211fb(0x269)]=Number(_0x6f7062));}['createSexFromValue'](_0x5acce9){const _0x15e118=_0xe69df7;let _0x48b300=_0x5acce9[_0x15e118(0x2c5)]();(_0x48b300==='M'||_0x48b300==='F')&&(this[_0x15e118(0x270)]=_0x48b300);}[_0xe69df7(0x26b)](_0x3240b6){const _0x4d4d83=_0xe69df7;let _0x31ce23=_0x3240b6[_0x4d4d83(0x2c5)](),_0x306833=/^@F(\d+)@$/['exec'](_0x31ce23);_0x306833?.[0x1]&&(this['FAMC']=Number(_0x306833[0x1]));}['createFAMSFromValue'](_0x33b56b){const _0x3c11d9=_0xe69df7;let _0x56a073=_0x33b56b[_0x3c11d9(0x2c5)](),_0x537477=/^@F(\d+)@$/[_0x3c11d9(0x284)](_0x56a073);_0x537477?.[0x1]&&this['FAMS'][_0x3c11d9(0x1dd)](Number(_0x537477[0x1]));}['createMultimediaFilesFromValue'](_0x5bcce0,_0xd8db05){const _0x3c6c06=_0xe69df7;if(!_0xd8db05?.[_0x3c6c06(0x1e5)]||!_0x5bcce0)return;let _0x49e63f=_0x5bcce0[_0x3c6c06(0x2c5)](),_0x4932f2=new E(_0xd8db05['get'](_0x49e63f));_0x4932f2[_0x3c6c06(0x262)]=_0x49e63f,this[_0x3c6c06(0x2b3)][_0x3c6c06(0x286)]['push'](_0x4932f2),this['newMultimediaFiles'][_0x3c6c06(0x295)](_0x49e63f,_0x4932f2);}[_0xe69df7(0x2cd)](_0x1834e8,_0x2da5e7){const _0x47d621=_0xe69df7;let _0x30c472=_0x1834e8[_0x47d621(0x2c5)]();if(!_0x30c472)return;let _0x13b048=/^@N(\d+)@$/['exec'](_0x30c472);if(_0x13b048?.[0x1]&&_0x2da5e7?.[_0x47d621(0x1e5)]){let _0x3d5a8e=Number(_0x13b048[0x1]),_0x10cee8=_0x2da5e7[_0x47d621(0x285)](_0x3d5a8e);if(!_0x10cee8||_0x10cee8[_0x47d621(0x2b0)]===0x0)return;let _0x1dfd87=new v();_0x1dfd87['updateLines']([..._0x10cee8]),this['INDI']&&_0x1dfd87[_0x47d621(0x1d3)]([this[_0x47d621(0x269)]]),this['notes']['addNote'](_0x1dfd87);return;}let _0x4c60a2=new v();_0x4c60a2[_0x47d621(0x280)]([_0x30c472]),this[_0x47d621(0x269)]&&_0x4c60a2['addIndis']([this[_0x47d621(0x269)]]),this['notes']['addNote'](_0x4c60a2);}[_0xe69df7(0x1fe)](_0x384e53){const _0x606187=_0xe69df7;if(!this[_0x606187(0x269)]||!_0x384e53?.[_0x606187(0x1d7)])return;let _0xeb5c6e=''+this['INDI'],_0x1b760a=this[_0x606187(0x1ee)](),_0x1ca55b=O(_0xeb5c6e,_0x384e53['file'][_0x606187(0x223)],_0x1b760a);_0x384e53[_0x606187(0x262)]=_0x1ca55b,this[_0x606187(0x2b3)][_0x606187(0x286)]['push'](_0x384e53),this[_0x606187(0x235)][_0x606187(0x295)](_0x1ca55b,_0x384e53);}['deleteMultimedia'](_0x436bc7){const _0x50be36=_0xe69df7;this['newMultimediaFiles'][_0x50be36(0x222)](_0x436bc7);let _0x162961=this['multimediaFiles'][_0x50be36(0x286)][_0x50be36(0x1a2)](_0x302379=>_0x302379['relativePath']===_0x436bc7);_0x162961>=0x0&&this[_0x50be36(0x2b3)]['files']['splice'](_0x162961,0x1);}[_0xe69df7(0x1ee)](){const _0xb66c1d=_0xe69df7;return[...this['newMultimediaFiles']['keys'](),...this[_0xb66c1d(0x2b3)][_0xb66c1d(0x286)][_0xb66c1d(0x229)](_0x17e9c3=>_0x17e9c3[_0xb66c1d(0x262)])['filter'](_0x444041=>!!_0x444041)];}[_0xe69df7(0x1e3)](_0x465e06){const _0x1ce707=_0xe69df7;let _0x2d4dfa;for(let _0x273aba of _0x465e06){let _0x2bb42b=P(_0x273aba);if(_0x2bb42b?.[_0x1ce707(0x2bb)]==='NAME'){_0x2d4dfa=_0x2bb42b[_0x1ce707(0x271)];break;}}if(!_0x2d4dfa)return;let _0x2d4879=/\/([^/]+)\//[_0x1ce707(0x284)](_0x2d4dfa);this['firstnames']=(_0x2d4879?_0x2d4dfa['replace'](_0x2d4879[0x0],''):_0x2d4dfa)[_0x1ce707(0x1c7)](/"/g,'')[_0x1ce707(0x1c7)](/\/+/g,'')[_0x1ce707(0x2c5)]()[_0x1ce707(0x24a)](/\s+/)['filter'](Boolean),this['lastname']=_0x2d4879?.[0x1]?.[_0x1ce707(0x2c5)]()[_0x1ce707(0x2ee)]()??'';}},te=K(require(_0xe69df7(0x2b2)),0x1),se=require(_0xe69df7(0x28c)),ee='\x0a';function ve(_0x2da345){const _0xea1eb2=_0xe69df7;if(!_0x2da345?.[_0xea1eb2(0x2b0)])return'';let _0x4f30e3='',_0x4e5325=!0x1;for(let _0x25fdc3 of _0x2da345){let _0xa10e42=P(_0x25fdc3[_0xea1eb2(0x299)]());if(!_0xa10e42)continue;let {level:_0x5790d0,tag:_0x22d97e,value:_0x3bb64c}=_0xa10e42;if(_0x5790d0==='0'&&_0x3bb64c===_0xea1eb2(0x1cb)&&_0x22d97e[_0xea1eb2(0x2d6)]('@N')&&_0x22d97e['endsWith']('@')){_0x4e5325=!0x0;continue;}if(_0x22d97e===_0xea1eb2(0x1cb)){_0x4f30e3=_0x3bb64c,_0x4e5325=!0x0;continue;}if(_0x22d97e==='CONC'){_0x4f30e3+=_0x3bb64c,_0x4e5325=!0x0;continue;}if(_0x22d97e===_0xea1eb2(0x28b)){_0x4f30e3+=(_0x4f30e3?'\x0a':'')+_0x3bb64c,_0x4e5325=!0x0;continue;}}return _0x4e5325?_0x4f30e3['replace'](/\r\n/g,'\x0a')[_0xea1eb2(0x1c7)](/\r/g,'\x0a'):_0x2da345[_0xea1eb2(0x244)](_0x438ce2=>_0x438ce2['length']>0x0)['join']('\x0a')[_0xea1eb2(0x1c7)](/\r\n/g,'\x0a')[_0xea1eb2(0x1c7)](/\r/g,'\x0a');}function Se(_0xdc7e73,_0x834ee1){const _0x493572=_0xe69df7;let _0x2627d6=ve(_0xdc7e73[_0x493572(0x1d6)]??[]);if(!_0x2627d6[_0x493572(0x2c5)]())return'';let _0x3e0d4a=_0x834ee1+0x1,_0x2880a6=_0x2627d6[_0x493572(0x24a)]('\x0a');for(;_0x2880a6[_0x493572(0x2b0)]>0x0&&_0x2880a6[0x0]==='';)_0x2880a6['shift']();if(_0x2880a6['length']===0x0)return'';let [_0x5ab0b8,..._0x52334c]=_0x2880a6,_0xf20052=_0x834ee1+'\x20NOTE\x20'+_0x5ab0b8+ee;return _0x52334c[_0x493572(0x2b0)]===0x0?_0xf20052:_0xf20052+_0x52334c['map'](_0xf48d76=>_0x3e0d4a+_0x493572(0x1a8)+_0xf48d76+ee)['join']('');}function V(_0x46c6a8,_0x44cfe5){const _0x1b123a=_0xe69df7;return _0x46c6a8?.['list']?.[_0x1b123a(0x2b0)]?_0x46c6a8[_0x1b123a(0x1a0)][_0x1b123a(0x229)](_0x16ac52=>Se(_0x16ac52,_0x44cfe5))[_0x1b123a(0x2bd)](''):'';}var d='\x0a',ie=(_0x7299e1,_0x572ca8,_0x23d126)=>{const _0x571460=_0xe69df7;let _0x50cedb=_0x572ca8['relativePath']?.[_0x571460(0x2c5)]();if(_0x50cedb&&_0x50cedb['includes']('/'))return _0x50cedb;let _0x29fbad=_0x50cedb||_0x572ca8['file']['name'];return _0x23d126['length']===0x1?_0x23d126[0x0]+'/'+_0x7299e1[_0x571460(0x2c4)]+'/'+_0x29fbad:_0x571460(0x257)+(_0x23d126[_0x571460(0x2b0)]>0x1?_0x23d126['join']('-'):_0x571460(0x20a))+'/'+_0x7299e1[_0x571460(0x2c4)]+'/'+_0x29fbad;},G=class{constructor(_0x53b522,_0x47a44e,_0x4db3ba){const _0x3af68a=_0xe69df7;a(this,'title'),a(this,_0x3af68a(0x1b1)),a(this,_0x3af68a(0x277),Date['now']()),a(this,_0x3af68a(0x2e8),!0x1);let _0x25ca72=_0x53b522?.['trim']();this[_0x3af68a(0x210)]=_0x25ca72?_0x25ca72+_0x3af68a(0x2c3)+this[_0x3af68a(0x277)]:_0x3af68a(0x264)+this[_0x3af68a(0x277)],this[_0x3af68a(0x1b1)]=_0x47a44e,this[_0x3af68a(0x2e8)]=_0x4db3ba;}get['beginGedcom'](){const _0x4e9086=_0xe69df7;let _0x10d5f9=new Date(),_0x5db5f8={'day':_0x4e9086(0x2a2),'month':_0x4e9086(0x2a2),'year':'numeric'};return _0x4e9086(0x296)+d+_0x4e9086(0x28e)+d+_0x4e9086(0x21e)+_0x10d5f9['toLocaleDateString'](_0x4e9086(0x213),_0x5db5f8)+d+'2\x20TIME\x20'+_0x10d5f9['toLocaleTimeString']('fr-FR')+d+_0x4e9086(0x2e9)+this[_0x4e9086(0x210)]+d+_0x4e9086(0x255)+d+_0x4e9086(0x1b7)+d+'1\x20CHAR\x20UTF-8'+d;}get[_0xe69df7(0x22a)](){const _0x13d10d=_0xe69df7;return this['persons'][_0x13d10d(0x229)](_0x299967=>new j(_0x299967,this[_0x13d10d(0x2e8)])[_0x13d10d(0x2c6)]())['join']('')+new Y(this[_0x13d10d(0x1b1)])[_0x13d10d(0x1d6)]();}['gedcomBlob'](){const _0x7f5a09=_0xe69df7;return new Blob([''+this[_0x7f5a09(0x242)]+this['contentGedcom']+'TRLR'],{'type':_0x7f5a09(0x28f)});}},U=class extends G{constructor(..._0x3bcc61){const _0x4d31fd=_0xe69df7;let [_0xb96823,_0x1d82aa]=typeof _0x3bcc61[0x0]==_0x4d31fd(0x1c3)?[_0x3bcc61[0x0],_0x3bcc61[0x1]]:[void 0x0,_0x3bcc61[0x0]];super(_0xb96823,_0x1d82aa,!0x0),a(this,'zip'),this[_0x4d31fd(0x200)]=new te[(_0x4d31fd(0x2d8))]();}async['download'](){const _0x32f583=_0xe69df7;this[_0x32f583(0x200)]['file'](this['title']+'.ged',this['gedcomBlob']()),this['persons'][_0x32f583(0x26d)](_0x1f9121=>{const _0x1cccc3=_0x32f583;let _0x259464=this[_0x1cccc3(0x1d9)](_0x1f9121);this['collectMediaFiles'](_0x1f9121['files'],_0x1f9121[_0x1cccc3(0x2b3)][_0x1cccc3(0x286)])['forEach'](_0x4f64d3=>{const _0x4fa75a=_0x1cccc3;let _0x5d9638=this[_0x4fa75a(0x27e)](_0x4f64d3,_0x259464);this[_0x4fa75a(0x2c9)](_0x4f64d3,_0x5d9638);}),_0x1f9121[_0x1cccc3(0x2e5)][_0x1cccc3(0x1a0)][_0x1cccc3(0x26d)](_0x1b0580=>{const _0x1f7490=_0x1cccc3;let _0x2a17e6=this[_0x1f7490(0x2af)](_0x259464,_0x1b0580);this[_0x1f7490(0x265)](_0x1b0580['files'],_0x1b0580[_0x1f7490(0x2b3)][_0x1f7490(0x286)])[_0x1f7490(0x26d)](_0x51da98=>{const _0x538bd4=_0x1f7490;let _0x428816=ie(_0x1b0580,_0x51da98,_0x2a17e6);this[_0x538bd4(0x2c9)](_0x51da98,_0x428816);});});}),this[_0x32f583(0x200)]['generateAsync']({'type':_0x32f583(0x1bb),'compression':'DEFLATE','compressionOptions':{'level':0x9}})[_0x32f583(0x218)](_0x226348=>{const _0x3537b5=_0x32f583;(0x0,se[_0x3537b5(0x1e4)])(_0x226348,this[_0x3537b5(0x210)]+'.zip');});}[_0xe69df7(0x265)](..._0x46a159){const _0x2d4943=_0xe69df7;let _0x574cad=new Map();for(let _0x21213c of _0x46a159)if(_0x21213c?.[_0x2d4943(0x2b0)])for(let _0x343916 of _0x21213c){if(!_0x343916?.['file'])continue;let _0xa64287=_0x343916['relativePath']||_0x343916[_0x2d4943(0x1d7)][_0x2d4943(0x223)];_0x574cad[_0x2d4943(0x29a)](_0xa64287)||_0x574cad[_0x2d4943(0x295)](_0xa64287,_0x343916);}return Array[_0x2d4943(0x26c)](_0x574cad['values']());}[_0xe69df7(0x1d9)](_0x2f9e60){const _0x2c7871=_0xe69df7;if(typeof _0x2f9e60[_0x2c7871(0x269)]==_0x2c7871(0x1af))return''+_0x2f9e60[_0x2c7871(0x269)];for(let _0x3111a7 of _0x2f9e60[_0x2c7871(0x2e5)]['list']){let _0x9e4bf=_0x3111a7[_0x2c7871(0x1fd)][_0x2c7871(0x2a1)](_0x2f6d75=>typeof _0x2f6d75==_0x2c7871(0x1af));if(_0x9e4bf!==void 0x0)return''+_0x9e4bf;}return'';}['resolveActIndis'](_0x253637,_0x473645){const _0x1e3fc5=_0xe69df7;let _0x1f0535=new Set();return _0x253637&&_0x1f0535['add'](_0x253637),_0x473645['INDIS'][_0x1e3fc5(0x244)](_0x1e1fbb=>typeof _0x1e1fbb=='number')['forEach'](_0x2425f7=>_0x1f0535['add'](''+_0x2425f7)),Array['from'](_0x1f0535);}[_0xe69df7(0x27e)](_0x5cdbec,_0x1e4464){const _0x5cc4b9=_0xe69df7;let _0x45dce9=_0x1e4464[_0x5cc4b9(0x1c7)](/\/+$/,''),_0x1bf05b=_0x5cdbec['relativePath']?.[_0x5cc4b9(0x2c5)]();if(_0x1bf05b&&_0x1bf05b['includes']('/'))return _0x1bf05b;let _0x43726f=_0x1bf05b||_0x5cdbec['file'][_0x5cc4b9(0x223)];return _0x45dce9?_0x45dce9+'/'+_0x43726f:_0x43726f;}['zipFile'](_0x43f2df,_0x54166d){const _0x5730da=_0xe69df7;let {file:_0x361ba1,relativePath:_0x1c03c2}=_0x43f2df;_0x361ba1&&this[_0x5730da(0x200)]['file'](_0x54166d||_0x1c03c2||_0x361ba1['name'],_0x361ba1);}},k=class extends G{constructor(..._0x50ce7c){const _0x25cf5a=_0xe69df7;let [_0x4e4fb3,_0x4bbe29]=typeof _0x50ce7c[0x0]==_0x25cf5a(0x1c3)?[_0x50ce7c[0x0],_0x50ce7c[0x1]]:[void 0x0,_0x50ce7c[0x0]];super(_0x4e4fb3,_0x4bbe29,!0x1);}['download'](){const _0x2099fd=_0xe69df7;let _0x50c55e=URL[_0x2099fd(0x2b5)](this[_0x2099fd(0x21f)]()),_0x4c202d=document[_0x2099fd(0x1fa)]('a');_0x4c202d[_0x2099fd(0x2df)]=_0x50c55e,_0x4c202d['download']=this[_0x2099fd(0x210)]+'.ged',_0x4c202d['click']();}},Y=class{constructor(_0x430cdc){const _0x42fa4c=_0xe69df7;a(this,_0x42fa4c(0x254),new Map()),_0x430cdc['forEach'](_0x360099=>{const _0x5e152b=_0x42fa4c;let {FAMS:_0x19a4f7,FAMC:_0x5c0910,INDI:_0x359434}=_0x360099;_0x19a4f7[_0x5e152b(0x2b0)]>0x0&&this[_0x5e152b(0x202)]('1\x20'+(_0x360099['SEX']==='M'?'HUSB':'WIFE')+_0x5e152b(0x1d5)+_0x359434+'@\x0a',_0x19a4f7),_0x5c0910&&this[_0x5e152b(0x202)](_0x5e152b(0x2ad)+_0x359434+'@\x0a',[_0x5c0910]);});}['lines'](){const _0x4d84d3=_0xe69df7;let _0x22da3c=[];for(let [_0x3f936e,_0xe39ad8]of this[_0x4d84d3(0x254)][_0x4d84d3(0x2d2)]())_0x22da3c['push'](_0x4d84d3(0x2e2)+_0x3f936e+_0x4d84d3(0x1b4),_0xe39ad8[_0x4d84d3(0x2bd)](''));return _0x22da3c[_0x4d84d3(0x2bd)]('');}[_0xe69df7(0x202)](_0x373da0,_0x1f76f5){_0x1f76f5['forEach'](_0x5c8720=>{const _0x77ebb0=_0x1c6f;if(this['informationFamilies']['has'](_0x5c8720)){let _0x54e47d=this['informationFamilies'][_0x77ebb0(0x285)](_0x5c8720);_0x54e47d[_0x77ebb0(0x1dd)](_0x373da0),this[_0x77ebb0(0x254)]['set'](_0x5c8720,_0x54e47d);}else this['informationFamilies']['set'](_0x5c8720,[_0x373da0]);});}},j=class{constructor(_0xd0e58a,_0x16eae7){const _0x1ed9ac=_0xe69df7;a(this,_0x1ed9ac(0x269)),a(this,_0x1ed9ac(0x1f1)),a(this,'SEX',''),a(this,_0x1ed9ac(0x1b6)),a(this,'FAMC'),a(this,_0x1ed9ac(0x23c),''),a(this,'ACTS',''),a(this,'NOTES',''),(this[_0x1ed9ac(0x269)]=this[_0x1ed9ac(0x221)](_0xd0e58a),this[_0x1ed9ac(0x1f1)]=this['getName'](_0xd0e58a),this['SEX']=this['getSex'](_0xd0e58a),this['FAMS']=this[_0x1ed9ac(0x1fb)](_0xd0e58a),this['FAMC']=this[_0x1ed9ac(0x1d1)](_0xd0e58a),_0x16eae7&&_0xd0e58a[_0x1ed9ac(0x2b3)]['files']['length']>0x0&&(this[_0x1ed9ac(0x23c)]=this[_0x1ed9ac(0x256)](_0xd0e58a)),_0xd0e58a[_0x1ed9ac(0x2e5)][_0x1ed9ac(0x1a0)]?.[_0x1ed9ac(0x2b0)]>0x0&&(this['ACTS']=new W(_0xd0e58a)['line']()),_0xd0e58a[_0x1ed9ac(0x297)]['list'][_0x1ed9ac(0x2b0)]>0x0&&(this[_0x1ed9ac(0x21c)]=V(_0xd0e58a[_0x1ed9ac(0x297)],0x1)));}['line'](){const _0x279e9e=_0xe69df7;return this[_0x279e9e(0x269)]+this['NAME']+this['SEX']+this[_0x279e9e(0x23c)]+this['ACTS']+this[_0x279e9e(0x21c)]+this['FAMS']+this[_0x279e9e(0x236)];}['getFileLines'](_0x34459e,_0x364fb4,_0x29f29c='1'){const _0x71c5bb=_0xe69df7;return _0x364fb4?.[_0x71c5bb(0x229)](_0xa5965b=>_0x29f29c+_0x71c5bb(0x2a3)+_0x34459e+'/'+_0xa5965b[_0x71c5bb(0x2da)]+d)[_0x71c5bb(0x2bd)]('')??'';}[_0xe69df7(0x221)](_0x41e8fc){return'0\x20@I'+_0x41e8fc['INDI']+'@\x20INDI'+d;}[_0xe69df7(0x23b)](_0xd82a8f){const _0xa9d45=_0xe69df7;let _0x4c7236=_0xd82a8f[_0xa9d45(0x276)]?.[_0xa9d45(0x2b0)]>0x0?[..._0xd82a8f['firstnames']]:[],_0x271eb6=_0xd82a8f[_0xa9d45(0x243)]??'';if(_0x4c7236||_0x271eb6){let _0x4b8539='1\x20NAME';return _0x4c7236&&_0x4c7236['length']>0x0&&(_0x4c7236[0x0]='\x22'+_0x4c7236[0x0]+'\x22',_0x4b8539+='\x20'+_0x4c7236[_0xa9d45(0x2bd)]('\x20')),_0x271eb6&&_0x271eb6['length']>0x0&&(_0x4b8539+='\x20/'+_0x271eb6+'/'),_0x4b8539+d;}return'';}['getSex'](_0x22aea6){return'1\x20SEX\x20'+_0x22aea6['SEX']+d;}[_0xe69df7(0x256)](_0x55769e){const _0x2c0fe6=_0xe69df7;return _0x55769e[_0x2c0fe6(0x2b3)]?.[_0x2c0fe6(0x286)][_0x2c0fe6(0x229)](_0x2d7e40=>'1\x20FILE\x20'+_0x2d7e40[_0x2c0fe6(0x262)]+d)[_0x2c0fe6(0x2bd)]('')??'';}['getFams'](_0xb06e27){const _0x2ab9d2=_0xe69df7;return _0xb06e27[_0x2ab9d2(0x1b6)][_0x2ab9d2(0x244)](_0x1c15fc=>_0x1c15fc>=0x0)[_0x2ab9d2(0x229)](_0x577619=>'1\x20FAMS\x20@F'+_0x577619+'@'+d)['join']('');}[_0xe69df7(0x1d1)](_0x501c4a){const _0x4440e6=_0xe69df7;return _0x501c4a['FAMC']?_0x4440e6(0x225)+_0x501c4a[_0x4440e6(0x236)]+'@'+d:'';}},z=class o{constructor(_0x1b622d,_0x1a7e2c){const _0x51f862=_0xe69df7;a(this,'TYPE'),a(this,_0x51f862(0x294)),a(this,_0x51f862(0x1f5)),a(this,_0x51f862(0x21c)),a(this,'FILES'),a(this,'ownerIndi'),(this[_0x51f862(0x1d0)]=_0x1a7e2c,this[_0x51f862(0x1f4)]=this[_0x51f862(0x2dc)](_0x1b622d),this[_0x51f862(0x294)]=this['getPlace'](_0x1b622d),this[_0x51f862(0x1f5)]=this[_0x51f862(0x1e2)](_0x1b622d),this['NOTES']=V(_0x1b622d[_0x51f862(0x297)],0x2),this['FILES']=this['getFile'](_0x1b622d));}static['formatDate'](_0x3317bc){const _0x2e841b=_0xe69df7;return _0x3317bc['date']?''+(_0x3317bc[_0x2e841b(0x234)]?_0x3317bc[_0x2e841b(0x234)]+'\x20':'')+(_0x3317bc[_0x2e841b(0x1d4)]?_0x3317bc[_0x2e841b(0x1d4)]+'\x20':'')+(_0x3317bc[_0x2e841b(0x27c)]?''+_0x3317bc['year']:''):'';}['line'](){const _0x28d144=_0xe69df7;return this[_0x28d144(0x1f4)]+this[_0x28d144(0x1f5)]+this[_0x28d144(0x294)]+this[_0x28d144(0x21c)]+this['FILES'];}['getFile'](_0x27ee1b){const _0xafd3c5=_0xe69df7;let _0x318fc9=new Map();return[..._0x27ee1b[_0xafd3c5(0x286)],..._0x27ee1b[_0xafd3c5(0x2b3)]['files']][_0xafd3c5(0x26d)](_0x33b6e1=>{const _0x33c40a=_0xafd3c5;if(!_0x33b6e1?.[_0x33c40a(0x1d7)])return;let _0x346007=_0x33b6e1[_0x33c40a(0x262)]||_0x33b6e1['file'][_0x33c40a(0x223)];_0x318fc9['has'](_0x346007)||_0x318fc9['set'](_0x346007,_0x33b6e1);}),Array['from'](_0x318fc9['values']())['map'](_0x568499=>{const _0xd6b9af=_0xafd3c5;let _0x29789f=new Set();return typeof this[_0xd6b9af(0x1d0)]=='number'&&_0x29789f['add'](''+this[_0xd6b9af(0x1d0)]),_0x27ee1b[_0xd6b9af(0x1fd)]['filter'](_0x3c4a72=>typeof _0x3c4a72=='number')[_0xd6b9af(0x26d)](_0x14274d=>_0x29789f[_0xd6b9af(0x1ec)](''+_0x14274d)),_0xd6b9af(0x1b3)+ie(_0x27ee1b,_0x568499,Array[_0xd6b9af(0x26c)](_0x29789f))+d;})[_0xafd3c5(0x2bd)]('');}['getType'](_0x2a0294){const _0x20a0ff=_0xe69df7;return'1\x20'+_0x2a0294[_0x20a0ff(0x2c4)]+d;}[_0xe69df7(0x1e2)](_0xda70d9){const _0x1d38eb=_0xe69df7;return _0xda70d9?.[_0x1d38eb(0x259)]?.[_0x1d38eb(0x2bf)]?_0x1d38eb(0x2ec)+o[_0x1d38eb(0x1a5)](_0xda70d9['dateAct'])+d:'';}['getPlace'](_0x46e363){const _0x30bad6=_0xe69df7;if(!_0x46e363[_0x30bad6(0x27a)])return'';let {city:_0xe2e6eb,coordinate:_0x1bf0f0}=_0x46e363[_0x30bad6(0x27a)];if(_0xe2e6eb){let _0x51b809='2\x20PLAC\x20'+_0x46e363[_0x30bad6(0x27a)][_0x30bad6(0x2d3)]+d,_0x394dd6='';return _0x1bf0f0[_0x30bad6(0x29f)]&&_0x1bf0f0[_0x30bad6(0x2b6)]&&(_0x394dd6=_0x30bad6(0x2b8)+d+'4\x20LATI\x20'+_0x1bf0f0[_0x30bad6(0x29f)]+d+_0x30bad6(0x267)+_0x1bf0f0['longitude']+d),_0x51b809+_0x394dd6;}return'';}},W=class{constructor(_0x556025){const _0x54c061=_0xe69df7;a(this,_0x54c061(0x2e5)),a(this,_0x54c061(0x269)),(this[_0x54c061(0x2e5)]=_0x556025['acts'][_0x54c061(0x1a0)],this[_0x54c061(0x269)]=_0x556025[_0x54c061(0x269)]);}[_0xe69df7(0x2c6)](){const _0x259ec8=_0xe69df7;return this[_0x259ec8(0x2e5)][_0x259ec8(0x229)](_0x1b88be=>new z(_0x1b88be,this[_0x259ec8(0x269)])['line']())[_0x259ec8(0x2bd)]('');}},X=class{constructor(_0xc003d9){const _0x1ecacd=_0xe69df7;a(this,'informationPersons',[]),a(this,_0x1ecacd(0x254),new Map()),a(this,'informationNotes',new Map()),_0xc003d9!==void 0x0&&this[_0x1ecacd(0x27b)](_0xc003d9);}[_0xe69df7(0x27b)](_0x52e121){const _0x1b18d2=_0xe69df7;let _0xadd0db=_0x52e121[_0x1b18d2(0x24a)]('\x0a')['map'](_0xf4af37=>_0xf4af37['replace'](/\r$/,'')),_0x768fe2=[],_0x27b534=()=>{const _0x4cd481=_0x1b18d2;_0x768fe2['length']!==0x0&&(this['ingestRecordBlock'](_0x768fe2[_0x4cd481(0x2bd)]('\x0a')),_0x768fe2=[]);};for(let _0x402385 of _0xadd0db)_0x402385['startsWith']('0\x20')?(_0x27b534(),_0x768fe2=[_0x402385]):_0x768fe2['length']>0x0&&_0x768fe2[_0x1b18d2(0x1dd)](_0x402385);_0x27b534();}async['ingestGedcomFileStream'](_0x59e99c){const _0x350c9b=_0xe69df7;if(typeof _0x59e99c['stream']!=_0x350c9b(0x2de)||typeof TextDecoderStream>'u'){this[_0x350c9b(0x27b)](await _0x59e99c[_0x350c9b(0x203)]());return;}let _0x592a18=_0x59e99c['stream']()['pipeThrough'](new TextDecoderStream())[_0x350c9b(0x25f)](),_0x2444ca='',_0x5d89ee=null,_0x350b86=()=>{const _0x3befb5=_0x350c9b;if(!_0x5d89ee||_0x5d89ee[_0x3befb5(0x2b0)]===0x0){_0x5d89ee=null;return;}let _0x187991=_0x5d89ee[_0x3befb5(0x2bd)]('\x0a');_0x5d89ee=null,this[_0x3befb5(0x24c)](_0x187991);};for(;;){let {done:_0x2f774a,value:_0x4d7ee0}=await _0x592a18['read']();if(_0x4d7ee0){_0x2444ca+=_0x4d7ee0;let _0x17a676=_0x2444ca[_0x350c9b(0x1c1)]('\x0a');for(;_0x17a676!==-0x1;){let _0x54f39d=_0x2444ca[_0x350c9b(0x219)](0x0,_0x17a676);_0x2444ca=_0x2444ca['slice'](_0x17a676+0x1),_0x17a676=_0x2444ca[_0x350c9b(0x1c1)]('\x0a');let _0x1cfc0b=_0x54f39d[_0x350c9b(0x1c7)](/\r$/,'');_0x1cfc0b['startsWith']('0\x20')?(_0x350b86(),_0x5d89ee=[_0x1cfc0b]):_0x5d89ee&&_0x5d89ee[_0x350c9b(0x1dd)](_0x1cfc0b);}}if(_0x2f774a){if(_0x2444ca[_0x350c9b(0x2b0)]>0x0){let _0x5ac03a=_0x2444ca[_0x350c9b(0x1c7)](/\r$/,'');_0x5ac03a['startsWith']('0\x20')?(_0x350b86(),_0x5d89ee=[_0x5ac03a]):_0x5d89ee&&_0x5d89ee[_0x350c9b(0x1dd)](_0x5ac03a);}_0x350b86();break;}}}['ingestRecordBlock'](_0x316f05){const _0x4c65c8=_0xe69df7;let _0x314a41=_0x316f05[_0x4c65c8(0x24a)]('\x0a')[0x0]?.['trimStart']()??'',_0x2ca775=_0x314a41['startsWith']('0\x20')?_0x314a41['slice'](0x2):_0x314a41;switch(''+_0x2ca775[0x0]+_0x2ca775[0x1]){case'@I':this['splitInformationPersons'](_0x316f05);break;case'@F':this[_0x4c65c8(0x2c2)](_0x316f05);break;case'@N':this['splitInformationNotes'](_0x316f05);break;case'@S':break;default:break;}}['splitInformationPersons'](_0x335974){const _0x1d7326=_0xe69df7;this[_0x1d7326(0x217)]['push'](_0x335974['split']('\x0a'));}[_0xe69df7(0x2c2)](_0x45f457){const _0x2816db=_0xe69df7;let _0x5be361=this[_0x2816db(0x20f)](_0x45f457,'@F');if(_0x5be361===null)return;let _0x5ef399=_0x45f457['split']('\x0a')['slice'](0x1);this[_0x2816db(0x254)][_0x2816db(0x295)](_0x5be361,_0x5ef399);}[_0xe69df7(0x283)](_0x2d1203){const _0x14bf9e=_0xe69df7;let _0x2c0d30=this[_0x14bf9e(0x20f)](_0x2d1203,'@N');if(_0x2c0d30===null)return;let _0x3991cc=_0x2d1203[_0x14bf9e(0x24a)]('\x0a')[_0x14bf9e(0x219)](0x1);this[_0x14bf9e(0x261)][_0x14bf9e(0x295)](_0x2c0d30,_0x3991cc);}['extractXrefId'](_0x518ba7,_0x2373bb){const _0x4645d0=_0xe69df7;let _0x4b9747=_0x518ba7[_0x4645d0(0x1c1)](_0x2373bb);if(_0x4b9747<0x0)return null;let _0x850ae6=_0x518ba7[_0x4645d0(0x1c1)]('@',_0x4b9747+_0x2373bb['length']);if(_0x850ae6<=_0x4b9747)return null;let _0x4b3970=_0x518ba7[_0x4645d0(0x219)](_0x4b9747+_0x2373bb[_0x4645d0(0x2b0)],_0x850ae6);return/^\d+$/[_0x4645d0(0x2a0)](_0x4b3970)?Number(_0x4b3970):null;}},ne=_0x4619eb=>{const _0x3120f5=_0xe69df7;let _0xb3612=_0x4619eb[_0x3120f5(0x229)](_0x16cef5=>_0x16cef5['INDI'])[_0x3120f5(0x22e)]((_0x5c5e2d,_0x21855c)=>_0x5c5e2d-_0x21855c);return _0xb3612[_0xb3612[_0x3120f5(0x2b0)]-0x1]+0x1;},x=class o extends X{constructor(_0x51008d,_0x401c65,_0x33b6b7,_0x39e68c){const _0x43101c=_0xe69df7;super(_0x51008d),a(this,'persons'),a(this,_0x43101c(0x22b)),a(this,'partnersMap'),a(this,'childsMap'),a(this,'mapFiles'),a(this,_0x43101c(0x1aa)),(this[_0x43101c(0x1b0)]=_0x401c65??new Map(),this[_0x43101c(0x1aa)]=_0x33b6b7??new Map(),this['mapPersons']=_0x39e68c??new Map(),_0x51008d!==void 0x0&&this[_0x43101c(0x1b5)]());}static async['fromGedcomFile'](_0x323ed7,_0x238fbd,_0x4942b9,_0x48b1db){const _0x47238f=_0xe69df7;let _0x25ca19=new o(void 0x0,_0x238fbd,_0x4942b9,_0x48b1db);return await _0x25ca19[_0x47238f(0x214)](_0x323ed7),_0x25ca19['finalizeAfterParse'](),_0x25ca19;}[_0xe69df7(0x1b5)](){const _0x56a18c=_0xe69df7;this[_0x56a18c(0x1b1)]=this[_0x56a18c(0x249)](),this[_0x56a18c(0x1b1)]?.[_0x56a18c(0x2b0)]>0x0&&this[_0x56a18c(0x1b1)][_0x56a18c(0x26d)](_0x2811b6=>{const _0x484a92=_0x56a18c;let _0x1ba0f8=_0x2811b6['acts']['list'];_0x1ba0f8[_0x484a92(0x2b0)]>0x0&&_0x1ba0f8['forEach'](_0xc4494f=>{const _0x86243c=_0x484a92;if(this[_0x86243c(0x1aa)]['has'](_0xc4494f['place'][_0x86243c(0x2d3)])){let {latitude:_0x5ab77d,longitude:_0x4a132c}=this[_0x86243c(0x1aa)][_0x86243c(0x285)](_0xc4494f[_0x86243c(0x27a)]['city'])['coordinate'];(_0x5ab77d===0x0||_0x5ab77d)&&(_0x4a132c===0x0||_0x4a132c)||this[_0x86243c(0x1aa)][_0x86243c(0x295)](_0xc4494f['place']['city'],_0xc4494f[_0x86243c(0x27a)]);}else this[_0x86243c(0x1aa)][_0x86243c(0x295)](_0xc4494f[_0x86243c(0x27a)]['city'],_0xc4494f[_0x86243c(0x27a)]);});}),this[_0x56a18c(0x1a4)]=new Map(),this['childsMap']=new Map(),this[_0x56a18c(0x2d9)]();}[_0xe69df7(0x2d9)](){const _0x500558=_0xe69df7;[...this[_0x500558(0x1b1)]]['forEach'](_0x5bdca4=>{const _0x233afd=_0x500558;if(_0x5bdca4['FAMS']?.[_0x233afd(0x2b0)]>0x0&&_0x5bdca4['FAMS']['forEach'](_0x280597=>{const _0x578212=_0x233afd;let _0x4fd513=[_0x5bdca4];this[_0x578212(0x1a4)]['has'](_0x280597)&&(_0x4fd513=[..._0x4fd513,...this[_0x578212(0x1a4)]['get'](_0x280597)]),this['partnersMap'][_0x578212(0x295)](_0x280597,_0x4fd513);}),_0x5bdca4[_0x233afd(0x236)]){let _0x2684b0=[_0x5bdca4];this['childsMap']['has'](_0x5bdca4['FAMC'])&&(_0x2684b0=[..._0x2684b0,...this['childsMap'][_0x233afd(0x285)](_0x5bdca4[_0x233afd(0x236)])]),this[_0x233afd(0x2c1)]['set'](_0x5bdca4[_0x233afd(0x236)],_0x2684b0);}});}[_0xe69df7(0x20c)](_0x2d7013){const _0xdf50d8=_0xe69df7;return this[_0xdf50d8(0x2a5)](_0x2d7013,[])['sort']((_0x3e8a82,_0x30e6f8)=>_0x3e8a82['sosa']-_0x30e6f8[_0xdf50d8(0x1cd)]);}[_0xe69df7(0x2cc)](){return ne(this['persons']);}['haveParentsOfPerson'](_0x1b7f73,_0x3d613d,_0x30d2e9){const _0x4a8b0e=_0xe69df7;let _0x4b8a2a=Object[_0x4a8b0e(0x26a)]({},_0x1b7f73);if(_0x4b8a2a[_0x4a8b0e(0x1cd)]=_0x30d2e9?_0x30d2e9*0x2+(_0x1b7f73['SEX']==='F'?0x1:0x0):0x1,this['partnersMap']['has'](_0x4b8a2a[_0x4a8b0e(0x236)])){let _0x275344=[...this['partnersMap']['get'](_0x4b8a2a['FAMC'])];_0x275344&&_0x275344[_0x4a8b0e(0x2b0)]>0x0&&_0x275344[_0x4a8b0e(0x26d)](_0x4d06e3=>{const _0x5bd0d2=_0x4a8b0e;this['haveParentsOfPerson'](_0x4d06e3,_0x3d613d,_0x4b8a2a[_0x5bd0d2(0x1cd)]);});}return _0x3d613d['push'](_0x4b8a2a),_0x3d613d;}['createPersons'](){const _0x352229=_0xe69df7;return this['informationPersons']?.[_0x352229(0x2b0)]>0x0?this['informationPersons']['map'](_0x26ccb8=>{const _0x493bb1=_0x352229;let _0x2eb56b=new D();return _0x2eb56b['createPersonJson'](_0x26ccb8,this['informationFamilies'],this[_0x493bb1(0x1b0)],this['informationNotes']),this[_0x493bb1(0x22b)][_0x493bb1(0x295)](_0x2eb56b['INDI'],_0x2eb56b),_0x2eb56b;})[_0x352229(0x22e)]((_0xeb6bbf,_0x227f07)=>_0xeb6bbf[_0x352229(0x236)]-_0x227f07['FAMC']):[];}},re=K(require('jszip'),0x1),oe=async _0x84cf81=>{const _0x314a38=_0xe69df7;if(_0x84cf81&&_0x84cf81 instanceof File){let {type:_0x2fdd7e}=_0x84cf81;return _0x2fdd7e===_0x314a38(0x201)?Re(_0x84cf81):ae(_0x84cf81);}throw new Error(_0x314a38(0x2dd));},ae=async(_0x40d891,_0x5e47b8)=>{const _0x404528=_0xe69df7;if(_0x40d891){if(/\.ged$/[_0x404528(0x2a0)](_0x40d891?.[_0x404528(0x223)]))return x[_0x404528(0x227)](_0x40d891,_0x5e47b8);throw new Error(_0x404528(0x29c));}throw new Error('Le\x20fichier\x20envoyé\x20doit-etre\x20un\x20File');},be=async(_0x308bb6,_0x375a2e)=>{const _0x356c34=_0xe69df7;let _0x304a89=await _0x308bb6[_0x356c34(0x228)](_0x356c34(0x1df)),_0xd4cce9=_0x304a89[_0x356c34(0x2d5)]['slice'](_0x304a89['byteOffset'],_0x304a89[_0x356c34(0x260)]+_0x304a89[_0x356c34(0x1bd)]),_0x530852=new Blob([_0xd4cce9]);return new File([_0x530852],_0x375a2e);},De=async _0x5b5896=>{const _0x24e281=_0xe69df7;let _0x521007=await new re[(_0x24e281(0x2d8))]()['loadAsync'](_0x5b5896),_0x2760dc=new Map(),_0x47b5f1=[];return _0x521007[_0x24e281(0x26d)]((_0x34668b,_0x1d5f26)=>{const _0x24aaaa=_0x24e281;_0x1d5f26['dir']||_0x47b5f1[_0x24aaaa(0x1dd)](new Promise((_0x5b2112,_0x24b695)=>{const _0x436a84=_0x24aaaa;be(_0x1d5f26,_0x34668b)[_0x436a84(0x218)](_0x3bbf85=>{const _0x101364=_0x436a84;_0x2760dc[_0x101364(0x295)](_0x34668b,_0x3bbf85),_0x5b2112();})[_0x436a84(0x2d0)](_0x24b695);}));}),await Promise['all'](_0x47b5f1),_0x2760dc;},Re=async _0x223a2b=>{const _0xde6b19=_0xe69df7;if(_0x223a2b){let _0x1f6da0=await De(_0x223a2b['slice']()),_0x2b8a22=/\.ged$/;for(let _0x4e266a of _0x1f6da0[_0xde6b19(0x1e7)]())if(_0x2b8a22[_0xde6b19(0x2a0)](_0x4e266a))return await ae(_0x1f6da0['get'](_0x4e266a),_0x1f6da0);throw new Error(_0xde6b19(0x253));}throw new Error(_0xde6b19(0x1db));};function le(_0x21b042,_0x31c623){const _0x3f0ee3=_0xe69df7;let _0x285832=_0x3f0ee3(0x251)+encodeURIComponent(_0x21b042)+'&polygon_geojson=1&format=jsonv2',_0x4841d4=new XMLHttpRequest();_0x4841d4['open']('GET',_0x285832,!0x0),_0x4841d4[_0x3f0ee3(0x2ae)]=function(){const _0x154adb=_0x3f0ee3;if(_0x4841d4[_0x154adb(0x1eb)]>=0xc8&&_0x4841d4[_0x154adb(0x1eb)]<0x190){let _0x5caeee=JSON[_0x154adb(0x2d4)](_0x4841d4[_0x154adb(0x1e6)])[_0x154adb(0x229)](_0x445ba5=>{const _0x191e98=_0x154adb;let {display_name:_0x2abd44,lat:_0x41ee96,lon:_0x58e0fc}=_0x445ba5,_0x4ea1d0=_0x2abd44['split'](',\x20'),_0x102c5c=_0x4ea1d0[0x0]+',\x20'+_0x4ea1d0[_0x4ea1d0[_0x191e98(0x2b0)]-0x2]+',\x20'+_0x4ea1d0[_0x4ea1d0['length']-0x1];return new F(_0x102c5c,new y(_0x41ee96,_0x58e0fc));});_0x31c623(_0x5caeee);}else _0x31c623([]);},_0x4841d4['onerror']=function(){_0x31c623([]);},_0x4841d4['send']();}var Z=(_0x22aea9,_0x215dd0,_0x43e5d5,_0x1d4dee)=>{const _0x3248ac=_0xe69df7;if(_0x1d4dee=_0x1d4dee??new Map(),_0x43e5d5=_0x43e5d5??0x1,_0x1d4dee[_0x3248ac(0x295)](_0x22aea9[_0x3248ac(0x269)],_0x43e5d5),_0x215dd0[_0x3248ac(0x29a)](_0x22aea9[_0x3248ac(0x236)])){let _0x508abf=_0x215dd0['get'](_0x22aea9[_0x3248ac(0x236)]);_0x508abf?.['length']>0x1&&(_0x508abf=[..._0x508abf]['sort']((_0x368056,_0x53a672)=>_0x368056[_0x3248ac(0x270)]&&_0x53a672[_0x3248ac(0x270)]?_0x53a672[_0x3248ac(0x270)]['localeCompare'](_0x368056['SEX']):0x0)),_0x508abf[_0x3248ac(0x26d)](_0xd5c914=>{const _0x3a3389=_0x3248ac;_0xd5c914[_0x3a3389(0x270)]&&(_0x1d4dee=Z(_0xd5c914,_0x215dd0,_0x43e5d5*0x2+(_0xd5c914[_0x3a3389(0x270)]==='M'?0x0:0x1),_0x1d4dee));});}return _0x1d4dee;},ue=(_0x3a6b12,_0x3c66fb)=>{const _0x12aba3=_0xe69df7;let _0x108bae=[_0x12aba3(0x1b8),_0x12aba3(0x250)],_0x301f45=[..._0x3a6b12[_0x12aba3(0x1a0)]][_0x12aba3(0x229)](_0x494d74=>_0x494d74[_0x12aba3(0x2c4)]);return _0x108bae=[..._0x108bae][_0x12aba3(0x244)](_0x4408ef=>!_0x301f45[_0x12aba3(0x241)](_0x4408ef)),_0x108bae[_0x12aba3(0x1dd)]('MARR'),_0x3c66fb&&([..._0x108bae][_0x12aba3(0x241)](_0x3c66fb['type'])||_0x108bae['push'](_0x3c66fb[_0x12aba3(0x2c4)])),_0x108bae;},$=class extends M{constructor(_0x47f367){super(),a(this,'year'),this['year']=_0x47f367;}},J=class{constructor(_0x37ed27){const _0x22f171=_0xe69df7;a(this,'events',[]),(this[_0x22f171(0x27f)]=[..._0x37ed27][_0x22f171(0x272)]((_0x39e742,_0x3dce0c)=>{const _0x535f2b=_0x22f171;let _0xa54a2,{dateAct:_0x5010e9,INDIS:_0xf08b48}=_0x3dce0c;if(_0x5010e9?.['year']){let _0x360efd=Number(_0x5010e9[_0x535f2b(0x27c)]),_0x5baa69=_0x39e742[_0x535f2b(0x1a2)](_0x3b26a8=>_0x3b26a8?.['year']===_0x360efd);_0x5baa69>=0x0?(_0xa54a2=_0x39e742[_0x5baa69],_0xa54a2[_0x535f2b(0x1a0)][_0x535f2b(0x2a1)](_0x369bc0=>_0x369bc0[_0x535f2b(0x1fd)][_0x535f2b(0x2a1)](_0x992213=>_0xf08b48[_0x535f2b(0x241)](_0x992213)))||(_0xa54a2[_0x535f2b(0x1ec)](_0x3dce0c),_0x39e742[_0x5baa69]=_0xa54a2)):(_0xa54a2=new $(_0x360efd),_0xa54a2[_0x535f2b(0x1ec)](_0x3dce0c),_0x39e742['push'](_0xa54a2));}return _0x39e742;},[]),this[_0x22f171(0x25d)]());}[_0xe69df7(0x25d)](){const _0x1a88f0=_0xe69df7;this['events']=[...this[_0x1a88f0(0x27f)]][_0x1a88f0(0x22e)]((_0x48f524,_0x1acc4a)=>_0x48f524['year']-_0x1acc4a[_0x1a88f0(0x27c)]);}};0x0&&(module[_0xe69df7(0x1f8)]={'Act':Act,'Acts':Acts,'ActsByYear':ActsByYear,'CoordinateGPS':CoordinateGPS,'DateAct':DateAct,'EventsByYears':EventsByYears,'ExportGedcomFile':ExportGedcomFile,'ExportGedzipFile':ExportGedzipFile,'Identificator':Identificator,'MultimediaFile':MultimediaFile,'MultimediaFiles':MultimediaFiles,'Note':Note,'Notes':Notes,'Person':Person,'Place':Place,'ReadGed':ReadGed,'Sex':Sex,'createSosaMap':createSosaMap,'dateToDateLine':dateToDateLine,'days':days,'getCityCoordinates':getCityCoordinates,'importGedFile':importGedFile,'months':months,'remainingTypesAct':remainingTypesAct});
|
|
1
|
+
const _0x2897e0=_0x5779;(function(_0x1a4e85,_0x3a1714){const _0x426786=_0x5779,_0x351122=_0x1a4e85();while(!![]){try{const _0x3ecb5d=parseInt(_0x426786(0x13d))/0x1+-parseInt(_0x426786(0x23d))/0x2+parseInt(_0x426786(0x178))/0x3+parseInt(_0x426786(0x18b))/0x4+parseInt(_0x426786(0x1b9))/0x5+-parseInt(_0x426786(0x276))/0x6+parseInt(_0x426786(0x286))/0x7*(-parseInt(_0x426786(0x1f0))/0x8);if(_0x3ecb5d===_0x3a1714)break;else _0x351122['push'](_0x351122['shift']());}catch(_0x275ee1){_0x351122['push'](_0x351122['shift']());}}}(_0x1ce7,0x9bd1d));var O=Object[_0x2897e0(0x256)],Et=Object['getOwnPropertyDescriptor'],Nt=Object[_0x2897e0(0x236)],Pt=Object[_0x2897e0(0x14c)][_0x2897e0(0x1c7)],vt=(_0x1db699,_0x118381,_0x41a305)=>_0x118381 in _0x1db699?O(_0x1db699,_0x118381,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41a305}):_0x1db699[_0x118381]=_0x41a305,Dt=(_0x5a1eee,_0x97db42)=>{for(var _0x562070 in _0x97db42)O(_0x5a1eee,_0x562070,{'get':_0x97db42[_0x562070],'enumerable':!0x0});},Tt=(_0x2e489d,_0x5ac93c,_0x4e40fc,_0x97d976)=>{const _0x58fa8d=_0x2897e0;if(_0x5ac93c&&typeof _0x5ac93c==_0x58fa8d(0x1fa)||typeof _0x5ac93c==_0x58fa8d(0x23a)){for(let _0x1f74d0 of Nt(_0x5ac93c))!Pt[_0x58fa8d(0x16a)](_0x2e489d,_0x1f74d0)&&_0x1f74d0!==_0x4e40fc&&O(_0x2e489d,_0x1f74d0,{'get':()=>_0x5ac93c[_0x1f74d0],'enumerable':!(_0x97d976=Et(_0x5ac93c,_0x1f74d0))||_0x97d976[_0x58fa8d(0x166)]});}return _0x2e489d;},St=_0x1b417b=>Tt(O({},_0x2897e0(0x294),{'value':!0x0}),_0x1b417b),l=(_0x22f1c8,_0x433156,_0x10abf4)=>vt(_0x22f1c8,typeof _0x433156!=_0x2897e0(0x1da)?_0x433156+'':_0x433156,_0x10abf4),Yt={};Dt(Yt,{'Act':()=>I,'Acts':()=>M,'ActsByYear':()=>C,'CoordinateGPS':()=>v,'DateAct':()=>T,'EventsByYears':()=>Y,'ExportGedcomFile':()=>z,'ExportGedzipFile':()=>J,'Identificator':()=>Vt,'Identifier':()=>g,'MultimediaFile':()=>E,'MultimediaFiles':()=>y,'Note':()=>D,'Notes':()=>N,'Person':()=>S,'Place':()=>F,'ReadGed':()=>b,'Sex':()=>R,'createSosaMap':()=>et,'dateToDateLine':()=>nt,'days':()=>B,'getCityCoordinates':()=>Mt,'importGedFile':()=>mt,'months':()=>x,'remainingTypesAct':()=>yt}),module['exports']=St(Yt);var g=(_0xfa872c=>(_0xfa872c[_0x2897e0(0x1c0)]=_0x2897e0(0x1c0),_0xfa872c[_0x2897e0(0x1e4)]=_0x2897e0(0x1e4),_0xfa872c[_0x2897e0(0x21e)]='ADR1',_0xfa872c['ADR2']=_0x2897e0(0x18d),_0xfa872c[_0x2897e0(0x257)]=_0x2897e0(0x257),_0xfa872c['AFN']=_0x2897e0(0x16d),_0xfa872c[_0x2897e0(0x190)]='AGE',_0xfa872c[_0x2897e0(0x1a0)]=_0x2897e0(0x1a0),_0xfa872c[_0x2897e0(0x1aa)]=_0x2897e0(0x1aa),_0xfa872c['ANCE']='ANCE',_0xfa872c[_0x2897e0(0x284)]='ANCI',_0xfa872c[_0x2897e0(0x298)]=_0x2897e0(0x298),_0xfa872c['ASSO']=_0x2897e0(0x205),_0xfa872c['AUTH']=_0x2897e0(0x266),_0xfa872c['BAPL']=_0x2897e0(0x163),_0xfa872c['BAPM']='BAPM',_0xfa872c[_0x2897e0(0x229)]=_0x2897e0(0x229),_0xfa872c['BASM']=_0x2897e0(0x232),_0xfa872c[_0x2897e0(0x18f)]='BIRT',_0xfa872c[_0x2897e0(0x19e)]=_0x2897e0(0x19e),_0xfa872c['BLOB']=_0x2897e0(0x191),_0xfa872c['BURI']='BURI',_0xfa872c['CALN']=_0x2897e0(0x15d),_0xfa872c[_0x2897e0(0x1de)]=_0x2897e0(0x1de),_0xfa872c[_0x2897e0(0x200)]=_0x2897e0(0x200),_0xfa872c[_0x2897e0(0x261)]='CENS',_0xfa872c[_0x2897e0(0x26b)]=_0x2897e0(0x26b),_0xfa872c[_0x2897e0(0x147)]=_0x2897e0(0x147),_0xfa872c[_0x2897e0(0x2a7)]=_0x2897e0(0x2a7),_0xfa872c[_0x2897e0(0x1ed)]=_0x2897e0(0x1ed),_0xfa872c[_0x2897e0(0x211)]=_0x2897e0(0x211),_0xfa872c['CITY']=_0x2897e0(0x180),_0xfa872c[_0x2897e0(0x242)]=_0x2897e0(0x242),_0xfa872c['CONF']=_0x2897e0(0x13b),_0xfa872c['CONL']=_0x2897e0(0x18a),_0xfa872c[_0x2897e0(0x1b5)]='CONT',_0xfa872c['COPR']=_0x2897e0(0x1d4),_0xfa872c['CORP']=_0x2897e0(0x20f),_0xfa872c[_0x2897e0(0x1f5)]='CREM',_0xfa872c['CTRY']=_0x2897e0(0x162),_0xfa872c[_0x2897e0(0x28e)]='DATA',_0xfa872c[_0x2897e0(0x250)]='DATE',_0xfa872c['DEAT']=_0x2897e0(0x28b),_0xfa872c[_0x2897e0(0x1dd)]='DESC',_0xfa872c[_0x2897e0(0x209)]=_0x2897e0(0x209),_0xfa872c[_0x2897e0(0x24a)]='DEST',_0xfa872c['DIV']=_0x2897e0(0x280),_0xfa872c[_0x2897e0(0x274)]=_0x2897e0(0x274),_0xfa872c['DSCR']=_0x2897e0(0x227),_0xfa872c[_0x2897e0(0x1b0)]='EDUC',_0xfa872c[_0x2897e0(0x213)]=_0x2897e0(0x213),_0xfa872c[_0x2897e0(0x1c6)]=_0x2897e0(0x1c6),_0xfa872c['ENGA']=_0x2897e0(0x207),_0xfa872c['EVEN']=_0x2897e0(0x1fc),_0xfa872c['FAM']='FAM',_0xfa872c[_0x2897e0(0x1f4)]=_0x2897e0(0x1f4),_0xfa872c[_0x2897e0(0x24b)]='FAMF',_0xfa872c['FAMS']=_0x2897e0(0x295),_0xfa872c[_0x2897e0(0x222)]='FCOM',_0xfa872c['FILE']=_0x2897e0(0x16c),_0xfa872c['FORM']='FORM',_0xfa872c[_0x2897e0(0x1ea)]='GEDC',_0xfa872c[_0x2897e0(0x1be)]=_0x2897e0(0x1be),_0xfa872c['GRAD']=_0x2897e0(0x149),_0xfa872c[_0x2897e0(0x1bd)]='HEAD',_0xfa872c[_0x2897e0(0x279)]='HUSB',_0xfa872c[_0x2897e0(0x262)]=_0x2897e0(0x262),_0xfa872c[_0x2897e0(0x175)]='IMMI',_0xfa872c['INDI']=_0x2897e0(0x17e),_0xfa872c[_0x2897e0(0x1e7)]=_0x2897e0(0x1e7),_0xfa872c[_0x2897e0(0x1ac)]=_0x2897e0(0x1ac),_0xfa872c['MARB']=_0x2897e0(0x283),_0xfa872c['MARC']='MARC',_0xfa872c['MARL']=_0x2897e0(0x194),_0xfa872c[_0x2897e0(0x20e)]=_0x2897e0(0x20e),_0xfa872c[_0x2897e0(0x146)]=_0x2897e0(0x146),_0xfa872c[_0x2897e0(0x206)]=_0x2897e0(0x206),_0xfa872c['NAME']='NAME',_0xfa872c[_0x2897e0(0x1e0)]=_0x2897e0(0x1e0),_0xfa872c[_0x2897e0(0x20c)]=_0x2897e0(0x20c),_0xfa872c['NCHI']=_0x2897e0(0x223),_0xfa872c[_0x2897e0(0x25d)]=_0x2897e0(0x25d),_0xfa872c['NMR']='NMR',_0xfa872c[_0x2897e0(0x289)]=_0x2897e0(0x289),_0xfa872c[_0x2897e0(0x1b2)]=_0x2897e0(0x1b2),_0xfa872c[_0x2897e0(0x2a5)]=_0x2897e0(0x2a5),_0xfa872c[_0x2897e0(0x28c)]=_0x2897e0(0x28c),_0xfa872c[_0x2897e0(0x139)]='OCCU',_0xfa872c[_0x2897e0(0x154)]='ORDI',_0xfa872c[_0x2897e0(0x204)]=_0x2897e0(0x204),_0xfa872c['PAGE']=_0x2897e0(0x170),_0xfa872c[_0x2897e0(0x1f6)]=_0x2897e0(0x1f6),_0xfa872c['PHON']='PHON',_0xfa872c[_0x2897e0(0x296)]='PLAC',_0xfa872c[_0x2897e0(0x277)]='POST',_0xfa872c[_0x2897e0(0x1fd)]=_0x2897e0(0x1fd),_0xfa872c[_0x2897e0(0x203)]='PROP',_0xfa872c['PUBL']=_0x2897e0(0x214),_0xfa872c[_0x2897e0(0x1a6)]=_0x2897e0(0x1a6),_0xfa872c[_0x2897e0(0x297)]=_0x2897e0(0x297),_0xfa872c['RELA']=_0x2897e0(0x18c),_0xfa872c[_0x2897e0(0x1c3)]=_0x2897e0(0x1c3),_0xfa872c['REPO']=_0x2897e0(0x17a),_0xfa872c[_0x2897e0(0x1d2)]=_0x2897e0(0x1d2),_0xfa872c[_0x2897e0(0x1d8)]=_0x2897e0(0x1d8),_0xfa872c['RETI']=_0x2897e0(0x20b),_0xfa872c[_0x2897e0(0x148)]=_0x2897e0(0x148),_0xfa872c['RIN']='RIN',_0xfa872c['ROLE']=_0x2897e0(0x1fb),_0xfa872c[_0x2897e0(0x29b)]=_0x2897e0(0x29b),_0xfa872c[_0x2897e0(0x1c8)]='SLGC',_0xfa872c[_0x2897e0(0x1ec)]=_0x2897e0(0x1ec),_0xfa872c['SOUR']='SOUR',_0xfa872c['SPFX']='SPFX',_0xfa872c[_0x2897e0(0x1cf)]='SSN',_0xfa872c['STAE']='STAE',_0xfa872c['STAT']='STAT',_0xfa872c[_0x2897e0(0x21c)]='SUBM',_0xfa872c[_0x2897e0(0x27c)]='SUBN',_0xfa872c[_0x2897e0(0x197)]='SURN',_0xfa872c['TEMP']=_0x2897e0(0x1a8),_0xfa872c['TEXT']='TEXT',_0xfa872c['TIME']=_0x2897e0(0x1d6),_0xfa872c[_0x2897e0(0x198)]='TITL',_0xfa872c[_0x2897e0(0x1f2)]=_0x2897e0(0x1f2),_0xfa872c['TYPE']='TYPE',_0xfa872c['VERS']=_0x2897e0(0x285),_0xfa872c['WIFE']=_0x2897e0(0x26e),_0xfa872c[_0x2897e0(0x1a3)]='WILL',_0xfa872c))(g||{}),B=[0x1,0x2,0x3,0x4,0x5,0x6,0x7,0x8,0x9,0xa,0xb,0xc,0xd,0xe,0xf,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f],x=[_0x2897e0(0x167),'FEB','MAR','APR','MAY','JUN',_0x2897e0(0x1db),_0x2897e0(0x140),'SEP','OCT',_0x2897e0(0x133),_0x2897e0(0x1f7)],Rt={0x1:'JAN',0x2:_0x2897e0(0x15f),0x3:_0x2897e0(0x1ab),0x4:_0x2897e0(0x17d),0x5:_0x2897e0(0x25a),0x6:_0x2897e0(0x1ff),0x7:'JUL',0x8:_0x2897e0(0x140),0x9:_0x2897e0(0x2a1),0xa:_0x2897e0(0x182),0xb:'NOV',0xc:_0x2897e0(0x1f7)},T=class{constructor(_0x488d34){const _0x1f0784=_0x2897e0;l(this,'typeDateAct'),l(this,_0x1f0784(0x187),null),l(this,_0x1f0784(0x1ef),null),l(this,_0x1f0784(0x247)),l(this,_0x1f0784(0x25f),null),l(this,_0x1f0784(0x252),null),l(this,'endYear');let _0x27017e=_0x488d34?.['trim']();if(!_0x27017e||_0x27017e==='inconnue'||this[_0x1f0784(0x1f1)](_0x27017e))return;let _0x486397=_0x27017e['split'](/\s+/);switch(_0x486397['length']){case 0x1:this['parseSinglePart'](_0x486397[0x0]);break;case 0x2:this[_0x1f0784(0x299)](_0x486397[0x0],_0x486397[0x1]);break;case 0x3:this[_0x1f0784(0x292)](_0x486397[0x0],_0x486397[0x1],_0x486397[0x2]);break;case 0x4:this['parseFourParts'](_0x486397[0x0],_0x486397[0x1],_0x486397[0x2],_0x486397[0x3]);break;default:break;}}get['date'](){const _0x333cef=_0x2897e0;if(!this[_0x333cef(0x247)])return null;if(this[_0x333cef(0x24c)]==='BET'&&this[_0x333cef(0x14b)]){let _0x597010=this[_0x333cef(0x1bc)](this[_0x333cef(0x187)],this[_0x333cef(0x1ef)],this['year']),_0xba569=this[_0x333cef(0x1bc)](this[_0x333cef(0x25f)],this['endMonth'],this['endYear']);return _0x333cef(0x226)+_0x597010+_0x333cef(0x1a7)+_0xba569;}if(this['typeDateAct']===_0x333cef(0x1a1)&&this[_0x333cef(0x14b)]){let _0x1ef9b5=this[_0x333cef(0x1bc)](this['day'],this['month'],this['year']),_0x5cff3b=this['formatCoreDate'](this['endDay'],this[_0x333cef(0x252)],this[_0x333cef(0x14b)]);return _0x333cef(0x15a)+_0x1ef9b5+_0x333cef(0x282)+_0x5cff3b;}let _0x51ba94=this['month']?this['day']?this[_0x333cef(0x187)]+'\x20'+this[_0x333cef(0x1ef)]+'\x20'+this['year']:this['month']+'\x20'+this[_0x333cef(0x247)]:''+this['year'];return this[_0x333cef(0x24c)]?this['typeDateAct']+'\x20'+_0x51ba94:_0x51ba94;}[_0x2897e0(0x24e)](_0x4c5161,_0x461c91,_0x565383){const _0x14bf8c=_0x2897e0;this['clearDate'](),this['year']=_0x4c5161,this['month']=_0x461c91??null,this[_0x14bf8c(0x187)]=_0x565383??null;}['updateQualifiedDate'](_0x165e2d,_0x5ec20b,_0x52e335,_0x42a800){this['clearDate'](),this['typeDateAct']=_0x165e2d,this['year']=_0x5ec20b,this['month']=_0x52e335??null,this['day']=_0x42a800??null;}[_0x2897e0(0x181)](_0x56d9b8,_0x3beb61){const _0x1c60aa=_0x2897e0;this[_0x1c60aa(0x25e)](),this[_0x1c60aa(0x24c)]=_0x1c60aa(0x2a8),this[_0x1c60aa(0x247)]=_0x56d9b8['year'],this[_0x1c60aa(0x1ef)]=_0x56d9b8[_0x1c60aa(0x1ef)]??null,this['day']=_0x56d9b8[_0x1c60aa(0x187)]??null,this[_0x1c60aa(0x14b)]=_0x3beb61['year'],this[_0x1c60aa(0x252)]=_0x3beb61[_0x1c60aa(0x1ef)]??null,this[_0x1c60aa(0x25f)]=_0x3beb61[_0x1c60aa(0x187)]??null;}[_0x2897e0(0x1bb)](_0x5215c9,_0x4d9419){const _0x5597d6=_0x2897e0;this['clearDate'](),this['typeDateAct']=_0x5597d6(0x1a1),this[_0x5597d6(0x247)]=_0x5215c9['year'],this[_0x5597d6(0x1ef)]=_0x5215c9[_0x5597d6(0x1ef)]??null,this['day']=_0x5215c9[_0x5597d6(0x187)]??null,this['endYear']=_0x4d9419[_0x5597d6(0x247)],this[_0x5597d6(0x252)]=_0x4d9419[_0x5597d6(0x1ef)]??null,this[_0x5597d6(0x25f)]=_0x4d9419['day']??null;}['clearDate'](){const _0x5fa6b9=_0x2897e0;this[_0x5fa6b9(0x24c)]=void 0x0,this['day']=null,this[_0x5fa6b9(0x1ef)]=null,this[_0x5fa6b9(0x247)]=void 0x0,this[_0x5fa6b9(0x25f)]=null,this[_0x5fa6b9(0x252)]=null,this[_0x5fa6b9(0x14b)]=void 0x0;}[_0x2897e0(0x157)](_0x1aceb5){return Rt[_0x1aceb5]??null;}[_0x2897e0(0x176)](_0x5badd3){const _0x49b8c8=_0x2897e0;if(_0x5badd3[_0x49b8c8(0x1e3)]('/')){this[_0x49b8c8(0x1ce)](_0x5badd3);return;}this['month']=null,this[_0x49b8c8(0x247)]=Number(_0x5badd3);}[_0x2897e0(0x299)](_0x17f7fd,_0x1de9a8){const _0x569b0e=_0x2897e0;if(this[_0x569b0e(0x1cc)](_0x17f7fd)){if(this['typeDateAct']=_0x17f7fd,_0x1de9a8[_0x569b0e(0x1e3)]('/')){this['assignMonthYearFromSlash'](_0x1de9a8);return;}this['month']=null,this[_0x569b0e(0x247)]=Number(_0x1de9a8);return;}if(_0x17f7fd[_0x569b0e(0x1e3)]('/')){this[_0x569b0e(0x1ce)](_0x17f7fd);return;}this[_0x569b0e(0x1ef)]=this[_0x569b0e(0x1dc)](_0x17f7fd),this['year']=Number(_0x1de9a8);}[_0x2897e0(0x292)](_0x2858cd,_0x4acb0,_0x4131af){const _0x2563e1=_0x2897e0;if(this[_0x2563e1(0x1cc)](_0x2858cd)){this['typeDateAct']=_0x2858cd,this['month']=this[_0x2563e1(0x1dc)](_0x4acb0),this['year']=Number(_0x4131af);return;}if(_0x4acb0['includes']('/')){this['assignMonthYearFromSlash'](_0x4acb0);return;}let _0x5e1e59=Number(_0x2858cd);this[_0x2563e1(0x187)]=_0x5e1e59>=0x1&&_0x5e1e59<=0x1f?_0x5e1e59:null,this[_0x2563e1(0x1ef)]=this[_0x2563e1(0x1dc)](_0x4acb0),this[_0x2563e1(0x247)]=Number(_0x4131af);}[_0x2897e0(0x14d)](_0xa72469,_0x5d2750,_0x5db469,_0x7ecbfb){const _0xb95d78=_0x2897e0;if(!this['isRelativeType'](_0xa72469))return;this['typeDateAct']=_0xa72469;let _0x15c88c=Number(_0x5d2750);this['day']=_0x15c88c>=0x1&&_0x15c88c<=0x1f?_0x15c88c:null,this[_0xb95d78(0x1ef)]=this['parseMonthToken'](_0x5db469),this[_0xb95d78(0x247)]=Number(_0x7ecbfb);}['assignMonthYearFromSlash'](_0x27879a){const _0x4d0ad0=_0x2897e0;let [_0x2958af,_0x52351d]=_0x27879a['split']('/');this[_0x4d0ad0(0x1ef)]=this['convertMonth'](_0x2958af),this[_0x4d0ad0(0x247)]=Number(_0x52351d);}[_0x2897e0(0x1dc)](_0x4692c3){return x['includes'](_0x4692c3)?_0x4692c3:null;}['formatCoreDate'](_0x1bb2db,_0x592cf8,_0x30b4d4){return _0x30b4d4?_0x592cf8?_0x1bb2db?_0x1bb2db+'\x20'+_0x592cf8+'\x20'+_0x30b4d4:_0x592cf8+'\x20'+_0x30b4d4:''+_0x30b4d4:'';}['tryParseRangeDate'](_0x9970a2){const _0x193423=_0x2897e0;let _0x540d7a=/^BET\s+(.+)\s+AND\s+(.+)$/['exec'](_0x9970a2);if(_0x540d7a?.[0x1]&&_0x540d7a?.[0x2]){let _0x30868f=this[_0x193423(0x288)](_0x540d7a[0x1]),_0x27a642=this[_0x193423(0x288)](_0x540d7a[0x2]);return!_0x30868f||!_0x27a642?!0x1:(this['updateBetweenDates'](_0x30868f,_0x27a642),!0x0);}let _0x45b64b=/^FROM\s+(.+)\s+TO\s+(.+)$/[_0x193423(0x17b)](_0x9970a2);if(_0x45b64b?.[0x1]&&_0x45b64b?.[0x2]){let _0x308df1=this[_0x193423(0x288)](_0x45b64b[0x1]),_0x2c8229=this['parseCoreDateValue'](_0x45b64b[0x2]);return!_0x308df1||!_0x2c8229?!0x1:(this['updateFromToDates'](_0x308df1,_0x2c8229),!0x0);}return!0x1;}['parseCoreDateValue'](_0x57fc2f){const _0x365b9a=_0x2897e0;let _0x16140d=_0x57fc2f[_0x365b9a(0x151)]()['split'](/\s+/);if(_0x16140d[_0x365b9a(0x238)]===0x1){let _0x17f3c2=Number(_0x16140d[0x0]);return Number['isFinite'](_0x17f3c2)?{'year':_0x17f3c2}:null;}if(_0x16140d[_0x365b9a(0x238)]===0x2){if(_0x16140d[0x0][_0x365b9a(0x1e3)]('/')){let [_0x939c08,_0x36fe9d]=_0x16140d[0x0]['split']('/'),_0x5f3592=Number(_0x36fe9d);return Number['isFinite'](_0x5f3592)?{'year':_0x5f3592,'month':this['convertMonth'](_0x939c08)}:null;}let _0x3608e0=this['parseMonthToken'](_0x16140d[0x0]),_0x453828=Number(_0x16140d[0x1]);return Number['isFinite'](_0x453828)?{'year':_0x453828,'month':_0x3608e0}:null;}if(_0x16140d['length']===0x3){let _0x1b8b70=Number(_0x16140d[0x0]),_0x336b48=this[_0x365b9a(0x1dc)](_0x16140d[0x1]),_0x3c2d8c=Number(_0x16140d[0x2]);return Number[_0x365b9a(0x177)](_0x3c2d8c)?{'year':_0x3c2d8c,'month':_0x336b48,'day':_0x1b8b70>=0x1&&_0x1b8b70<=0x1f?_0x1b8b70:null}:null;}return null;}['isRelativeType'](_0x5842f2){const _0x282b27=_0x2897e0;return _0x5842f2===_0x282b27(0x216)||_0x5842f2===_0x282b27(0x155)||_0x5842f2===_0x282b27(0x260);}[_0x2897e0(0x248)](){const _0xcfc265=_0x2897e0;let _0x5379be=new Date()[_0xcfc265(0x231)]();if(this[_0xcfc265(0x247)]&&(this[_0xcfc265(0x247)]<0x0||this[_0xcfc265(0x247)]>_0x5379be))return!0x1;if(this[_0xcfc265(0x247)]&&!this[_0xcfc265(0x1ef)]&&!this[_0xcfc265(0x187)])return!0x0;if(this[_0xcfc265(0x1ef)]&&!x[_0xcfc265(0x1e3)](this[_0xcfc265(0x1ef)]))return!0x1;if(this[_0xcfc265(0x247)]&&this[_0xcfc265(0x1ef)]&&!this['day'])return!0x0;if(this[_0xcfc265(0x187)]){let _0x259bfd=this['year']%0x4===0x0&&this['year']%0x64!==0x0||this['year']%0x190===0x0,_0x4d158b;if(this[_0xcfc265(0x1ef)]===_0xcfc265(0x15f)&&_0x259bfd)_0x4d158b=0x1d;else{let _0x594fea=x[_0xcfc265(0x21a)](_0x541ebf=>_0x541ebf===this[_0xcfc265(0x1ef)]);_0x4d158b=B[_0xcfc265(0x243)](_0x161d2b=>_0x161d2b<=new Date(this[_0xcfc265(0x247)],_0x594fea,0x0)[_0xcfc265(0x1af)]())[_0xcfc265(0x238)];}return B[_0xcfc265(0x1e3)](this['day'])&&this[_0xcfc265(0x187)]<=_0x4d158b;}return!0x1;}},nt=(_0x2e6f40,_0x5bcbfd,_0x4029ec)=>_0x2e6f40?_0x5bcbfd?_0x4029ec?_0x4029ec+'\x20'+_0x5bcbfd+'\x20'+_0x2e6f40:_0x5bcbfd+'\x20'+_0x2e6f40:''+_0x2e6f40:'',F=class{constructor(_0x2779f7,_0x2628fd){const _0x25e3c0=_0x2897e0;l(this,'city',null),l(this,'coordinate'),(_0x2779f7&&(this[_0x25e3c0(0x144)]=_0x2779f7),this[_0x25e3c0(0x25b)]=_0x2628fd??new v());}['addCity'](_0x52d7f2){const _0x178e0b=_0x2897e0;this[_0x178e0b(0x144)]=_0x52d7f2;}},v=class{constructor(_0x263959,_0x2de3d9){const _0x2ce090=_0x2897e0;l(this,'latitude'),l(this,_0x2ce090(0x1c4)),(this[_0x2ce090(0x1e9)]=_0x263959,this[_0x2ce090(0x1c4)]=_0x2de3d9);}[_0x2897e0(0x1ae)]([_0x2db1a0,_0x20a571]){const _0x41b43d=_0x2897e0;this['latitude']=_0x2db1a0,this[_0x41b43d(0x1c4)]=_0x20a571;}},E=class{constructor(_0x45a00e){const _0x505756=_0x2897e0;l(this,_0x505756(0x27a)),l(this,'file'),this[_0x505756(0x246)]=_0x45a00e;}get[_0x2897e0(0x14a)](){return this['file']['name'];}},y=class{constructor(){const _0x2c83f6=_0x2897e0;l(this,'relativePath'),l(this,_0x2c83f6(0x267),[]);}[_0x2897e0(0x290)](_0x4f476a){const _0x4cdfdf=_0x2897e0;let _0xa17d0c=_0x4f476a[_0x4cdfdf(0x246)]?.[_0x4cdfdf(0x16f)]??'',_0x3cd22a=(this['relativePath']??'')['replace'](/\/+$/,'');_0x4f476a['relativePath']=_0x3cd22a?_0x3cd22a+'/'+_0xa17d0c:_0xa17d0c,this[_0x4cdfdf(0x267)]['push'](_0x4f476a);}[_0x2897e0(0x164)](_0x4d2b2e){const _0x24efbb=_0x2897e0;let _0x5588fb=this['files']['findIndex']((_0x31817f,_0x3d7dd2)=>_0x3d7dd2===_0x4d2b2e);_0x5588fb>=0x0&&this['files'][_0x24efbb(0x27f)](_0x5588fb,0x1);}['removeAll'](){this['files']=[];}},D=class{constructor(){const _0x22d1bb=_0x2897e0;l(this,_0x22d1bb(0x26f),[]),l(this,_0x22d1bb(0x168)),l(this,_0x22d1bb(0x185));}['updateLines'](_0x3d364d){const _0x1a72fa=_0x2897e0;_0x3d364d?.[_0x1a72fa(0x238)]>0x0&&(this['lines']=_0x3d364d);}[_0x2897e0(0x210)](){this['lines']=[];}[_0x2897e0(0x1d5)](_0x5ba278){const _0x1df881=_0x2897e0;this[_0x1df881(0x168)]=_0x5ba278;}['addIndis'](_0x335d38){const _0x593f95=_0x2897e0;this[_0x593f95(0x26f)]=_0x335d38;}},N=class{constructor(){const _0x2b045b=_0x2897e0;l(this,_0x2b045b(0x1e6),[]);}['addNote'](_0x165f13){const _0x208c57=_0x2897e0;this[_0x208c57(0x1e6)][_0x208c57(0x28d)](_0x165f13);}[_0x2897e0(0x23e)](_0x494e48,_0x5f217c){const _0x371915=_0x2897e0;this[_0x371915(0x1e6)][_0x5f217c]=_0x494e48;}[_0x2897e0(0x164)](_0x359042){const _0x5aefa6=_0x2897e0;let _0x1b89f0=this['list']['findIndex']((_0x37405f,_0x6dd611)=>_0x6dd611===_0x359042);_0x1b89f0>=0x0&&this[_0x5aefa6(0x1e6)][_0x5aefa6(0x27f)](_0x1b89f0,0x1);}[_0x2897e0(0x215)](){const _0x29f0d5=_0x2897e0;this[_0x29f0d5(0x1e6)]=[];}};function P(_0xff1ef6){const _0x45269b=_0x2897e0;let _0x14da13=_0xff1ef6[_0x45269b(0x195)](),_0x7236a3=_0x14da13['indexOf']('\x20');if(_0x7236a3<=0x0)return null;let _0x16c58a=_0x14da13[_0x45269b(0x184)](0x0,_0x7236a3),_0x50ad20=_0x14da13[_0x45269b(0x184)](_0x7236a3+0x1)['trimStart'](),_0xf93f2c=_0x50ad20[_0x45269b(0x263)]('\x20');if(_0xf93f2c<=0x0)return{'level':_0x16c58a,'tag':_0x50ad20,'value':''};let _0x23c73a=_0x50ad20[_0x45269b(0x184)](0x0,_0xf93f2c),_0xc42c68=_0x50ad20[_0x45269b(0x184)](_0xf93f2c+0x1);return{'level':_0x16c58a,'tag':_0x23c73a,'value':_0xc42c68};}function bt(_0x28ea2f){const _0x4ef131=_0x2897e0;let _0x2ebe09=_0x28ea2f[_0x4ef131(0x1ad)]('.');return _0x2ebe09<=0x0?{'stem':_0x28ea2f,'ext':''}:{'stem':_0x28ea2f['slice'](0x0,_0x2ebe09),'ext':_0x28ea2f[_0x4ef131(0x184)](_0x2ebe09)};}function xt(_0x11de61,_0x2d6a99,_0x1e78e6){return _0x1e78e6===0x0?''+_0x11de61+_0x2d6a99:_0x11de61+'_'+_0x1e78e6+_0x2d6a99;}function G(_0x413bbd,_0x1ac0c3,_0x16bc7e){const _0x3cd5ff=_0x2897e0;let _0xf36e23=new Set(_0x16bc7e),_0x544481=_0x413bbd[_0x3cd5ff(0x142)](/\/+$/,''),_0x41bf03=_0x1ac0c3[_0x3cd5ff(0x142)](/^[/\\]+|[/\\]+/g,''),{stem:_0x4ac734,ext:_0x4d06b8}=bt(_0x41bf03),_0x26406a=0x2710;for(let _0xe25d54=0x0;_0xe25d54<_0x26406a;_0xe25d54++){let _0x3a589c=xt(_0x4ac734,_0x4d06b8,_0xe25d54),_0x395a42=_0x544481?_0x544481+'/'+_0x3a589c:_0x3a589c;if(!_0xf36e23[_0x3cd5ff(0x15e)](_0x395a42))return _0x395a42;}throw new Error(_0x3cd5ff(0x2a4));}function U(_0x3a6319,_0x522c2b){const _0x53ad14=_0x2897e0;return[..._0x3a6319,..._0x522c2b[_0x53ad14(0x1eb)](_0x23fcaf=>_0x23fcaf['relativePath'])[_0x53ad14(0x243)](_0x21a5cf=>!!_0x21a5cf)];}function k(_0x208023,_0x1ca6b3){const _0x2dd866=_0x2897e0;let _0x373775=_0x208023[_0x2dd866(0x151)](),_0x1a9e4c=new RegExp('^@'+_0x1ca6b3+_0x2dd866(0x171))['exec'](_0x373775);return _0x1a9e4c?.[0x1]?Number(_0x1a9e4c[0x1]):null;}function _0x1ce7(){const _0x41e523=['getSex','resolvePersonIndi','upsertPlace','sosa','hydratePlacesFromActs','keysFiles','getFullYear','BASM','find','finalizeAfterParse','open','getOwnPropertyNames','linkPersonAsChild','length','createSexFromValue','function','localeCompare','get','1530818ieGrvN','updateFromIndex','1\x20FAMS\x20@F','dateAct','1\x20SOUR\x20generated\x20by\x20gedcom-ts','CONC','filter','MAX_SAFE_INTEGER','send','file','year','isValid','extractActsInfo','DEST','FAMF','typeDateAct','getType','updateExactDate','values','DATE','split','endMonth','generateUniqueIndi','forEach','download','defineProperty','ADOP','parsePersonLine','informationNotes','MAY','coordinate','stream','NICK','clearDate','endDay','AFT','CENS','IDNO','indexOf','sort','getPlace','AUTH','files','2\x20PLAC\x20','setInformationFamilies','from','CHAN','ownerIndi','number','WIFE','INDIS','value','notes','splitInformationFamilies','firstnames','DIVF','TYPE','4605462DUSQsy','POST','haveFiles','HUSB','relativePath','updatePlace','SUBN','sortByDate','events','splice','DIV','0\x20@I','\x20TO\x20','MARB','ANCI','VERS','4292897yGyrJo','Le\x20type\x20doit-être\x20au\x20format:\x20application/x-gedcom','parseCoreDateValue','NOTE','deleteMultimedia','DEAT','OBJE','push','DATA','createPersons','add','read','parseThreeParts','convertToActs','__esModule','FAMS','PLAC','REFN','ANUL','parseTwoParts','entries','SEX','resolveZipPath','createIndiFromZeroLine','place','click','1\x20FILE\x20','SEP','assign','splitInformationPersons','Impossible\x20de\x20trouver\x20un\x20nom\x20de\x20fichier\x20média\x20disponible','NSFX','LATI','CHIL','BET','NOV','onload','groupPartners','line','lastname','\x20NOTE\x20','OCCU','Le\x20fichier\x20envoyé\x20doit-etre\x20un\x20File','CONF','1\x20FAMC\x20@F','335949sXHfMs','multimediaFiles','haveSameParticipants','AUG','placesMap','replace','getFams','city','compareByTypeOrder','MARS','CHAR','RFN','GRAD','filename','endYear','prototype','parseFourParts','extractXrefId','beginGedcom','fr-FR','trim','acts','@\x20FAM\x0a','ORDI','ABT','exports','convertMonth','gedcomBlob','3\x20MAP','FROM\x20','zipFile','1\x20GEDC','CALN','has','FEB','createMultimediaFilesFromValue','haveParentsOfPerson','CTRY','BAPL','removeFromIndex','addIndis','enumerable','JAN','type','2\x20DATE\x20','call','createDirectAncestries','FILE','AFN','_gedcom-ts_','name','PAGE','(\x5cd+)@$','https://nominatim.openstreetmap.org/search.php?city=','revokeObjectURL','getFiles','IMMI','parseSinglePart','isFinite','2848725sVmEtE','test','REPO','exec','addNoteFromGedcom','APR','INDI','NOTES','CITY','updateBetweenDates','OCT','fromGedcomFile','slice','lines','addNote','day','ingestRecordBlock','informationPersons','CONL','4820816jBHyfZ','RELA','ADR2','join','BIRT','AGE','BLOB','every','text','MARL','trimStart','resolveTypeAct','SURN','TITL','4\x20LATI\x20','4\x20LONG\x20','sortByYear','unzipSync','2\x20FILE\x20','BLES','keys','AGNC','FROM','size','WILL','getName','addMultimedia','QUAY','\x20AND\x20','TEMP','BURI','ALIA','MAR','LEGA','lastIndexOf','addCoordinates','getDate','EDUC','contentGedcom','NPFX','buildPerson','createFAMCFromValue','CONT','mapFiles','\x20CONT\x20','tag','1468830ZINQAG','fflate','updateFromToDates','formatCoreDate','HEAD','GIVN','set','ABBR','resolveActIndis','NAME','RELI','longitude','getFamc','ENDL','hasOwnProperty','SLGC','updateLines','string','createPersonJson','isRelativeType','some','assignMonthYearFromSlash','SSN','1\x20CHAR\x20UTF-8','formatDate','RESI','2\x20FORM\x20LINEAGE-LINKED','COPR','updateType','TIME','partnersMap','RESN','startsWith','symbol','JUL','parseMonthToken','DESC','CAST','parse','NATI','informationFamilies','childsMap','includes','ADDR','1\x20DATE\x20','list','LANG','FILES','latitude','GEDC','map','SLGS','CHR','ingestGedcomText','month','8TVOrqY','tryParseRangeDate','TRLR','.ged','FAMC','CREM','PEDI','DEC','title','hasSortableDate','object','ROLE','EVEN','PROB','getFile','JUN','CAUS','compareMarriageAndDivorce','newMultimediaFiles','PROP','ORDN','ASSO','MEDI','ENGA','toLocaleDateString','DESI','indis','RETI','NATU','status','MARR','CORP','removeLines','CHRA','persons','EMIG','PUBL','removeAll','BEF','getIndi','1\x20CHIL\x20@I','inconnue','findIndex','onCreate','SUBM','endsWith','ADR1','.zip','createFAMSFromValue','toUpperCase','FCOM','NCHI','createFirstnamesAndLastnameJson','GET','BET\x20','DSCR','mediaRelativePathsInUse','BARM','ACTS'];_0x1ce7=function(){return _0x41e523;};return _0x1ce7();}function rt(_0x546c46,_0x3da04a,_0x5d2272){const _0x2556ce=_0x2897e0;let _0x461c1b='@'+_0x3da04a,_0xf0a763=_0x546c46['indexOf'](_0x461c1b);if(_0xf0a763<0x0)return null;let _0x467f39=_0x546c46[_0x2556ce(0x263)]('@',_0xf0a763+_0x461c1b['length']);if(_0x467f39<=_0xf0a763||!_0x546c46[_0x2556ce(0x1e3)](_0x5d2272,_0x467f39))return null;let _0x210451=_0x546c46['slice'](_0xf0a763+_0x461c1b['length'],_0x467f39);return/^\d+$/['test'](_0x210451)?Number(_0x210451):null;}function st(_0x567dc7,_0x5242a7){const _0x287b9a=_0x2897e0;let _0x4fea58='@'+_0x5242a7,_0x2c55c5=_0x567dc7['indexOf'](_0x4fea58);if(_0x2c55c5<0x0)return null;let _0x9a23f8=_0x567dc7['indexOf']('@',_0x2c55c5+_0x4fea58[_0x287b9a(0x238)]);if(_0x9a23f8<=_0x2c55c5)return null;let _0xb22bfd=_0x567dc7[_0x287b9a(0x184)](_0x2c55c5+_0x4fea58[_0x287b9a(0x238)],_0x9a23f8);return/^\d+$/['test'](_0xb22bfd)?Number(_0xb22bfd):null;}function _0x5779(_0x3b1d7d,_0xacfa5a){_0x3b1d7d=_0x3b1d7d-0x133;const _0x1ce7b6=_0x1ce7();let _0x577952=_0x1ce7b6[_0x3b1d7d];return _0x577952;}var It=[_0x2897e0(0x18f),_0x2897e0(0x28b),_0x2897e0(0x20e),'BURI','CHR','DIV'];function it(_0x25e11a,_0x2491ae){const _0x173aa7=_0x2897e0;let _0x3a2e8a=[],_0x6e8f4c=[..._0x2491ae],_0x12cebd=_0x244ba6=>_0x244ba6[_0x173aa7(0x195)]()['startsWith']('1\x20');for(let _0x2cab0e=0x0;_0x2cab0e<_0x25e11a[_0x173aa7(0x238)];_0x2cab0e++){let _0x3f2605=_0x25e11a[_0x2cab0e];if(_0x3f2605[_0x173aa7(0x1d9)]('1\x20HUSB')||_0x3f2605['startsWith']('1\x20WIFE')){let _0x558c50=st(_0x3f2605,'I');_0x558c50!==null&&_0x6e8f4c['push'](_0x558c50);}if(It[_0x173aa7(0x1cd)](_0x2437b4=>_0x3f2605['startsWith']('1\x20'+_0x2437b4))){let _0x3afb35=[_0x3f2605],_0x4c3183=_0x2cab0e+0x1,_0x9a1b9a=_0x25e11a[_0x4c3183];for(;_0x9a1b9a&&!_0x12cebd(_0x9a1b9a);)_0x3afb35[_0x173aa7(0x28d)](_0x9a1b9a),_0x4c3183+=0x1,_0x9a1b9a=_0x25e11a[_0x4c3183];_0x3a2e8a['push'](_0x3afb35),_0x2cab0e=_0x4c3183-0x1;}}return{'entries':_0x3a2e8a['filter'](_0x12d192=>_0x12d192['length']>0x1),'indis':_0x6e8f4c};}var Ct=['BIRT','DEAT',_0x2897e0(0x20e),_0x2897e0(0x1a9),_0x2897e0(0x1ed),_0x2897e0(0x280)],ot=[_0x2897e0(0x18f),'CHR','MARR','DIV','DEAT',_0x2897e0(0x1a9)],at=[_0x2897e0(0x167),'FEB',_0x2897e0(0x1ab),_0x2897e0(0x17d),_0x2897e0(0x25a),'JUN','JUL','AUG',_0x2897e0(0x2a1),'OCT',_0x2897e0(0x133),'DEC'],I=class{constructor(_0x13d7cd,_0x28e1b0,_0x1d09cc,_0x42d1ad,_0x4e62e1,_0x139111,_0x2ca88a){const _0x36922a=_0x2897e0;l(this,'type'),l(this,_0x36922a(0x240),null),l(this,_0x36922a(0x29e),null),l(this,'INDIS',[]),l(this,_0x36922a(0x202),new Map()),l(this,_0x36922a(0x13e),new y()),l(this,'notes',new N()),(this[_0x36922a(0x168)]=_0x13d7cd,_0x28e1b0&&(this[_0x36922a(0x240)]=_0x28e1b0),_0x1d09cc&&(this['place']=_0x1d09cc),_0x42d1ad?.[_0x36922a(0x238)]>0x0&&(this[_0x36922a(0x26f)]=_0x42d1ad),_0x4e62e1&&(this[_0x36922a(0x13e)]=_0x4e62e1),_0x139111&&(this[_0x36922a(0x202)]=_0x139111),_0x2ca88a&&(this[_0x36922a(0x271)]=_0x2ca88a));}get[_0x2897e0(0x267)](){return Array['from'](this['newMultimediaFiles']['values']());}get[_0x2897e0(0x230)](){const _0x2c1df5=_0x2897e0;return Array[_0x2c1df5(0x26a)](this['newMultimediaFiles']['keys']());}[_0x2897e0(0x1a5)](_0x20ef49,_0xe36497){const _0x416274=_0x2897e0;let _0x496109=_0xe36497??this[_0x416274(0x26f)][0x0];if(_0x496109===void 0x0||!_0x20ef49?.['file'])return;let _0x39412d=_0x496109+'/'+this[_0x416274(0x168)],_0x354290=this[_0x416274(0x228)](),_0x200f35=G(_0x39412d,_0x20ef49['file']['name'],_0x354290);_0x20ef49[_0x416274(0x27a)]=_0x200f35,this[_0x416274(0x13e)][_0x416274(0x267)][_0x416274(0x28d)](_0x20ef49),this[_0x416274(0x202)][_0x416274(0x1bf)](_0x200f35,_0x20ef49);}['removeMultimedia'](_0x36d5e7){const _0x38a36f=_0x2897e0;let _0x9fa5f1=Array[_0x38a36f(0x26a)](this['newMultimediaFiles'][_0x38a36f(0x19f)]())[_0x38a36f(0x233)]((_0x40a362,_0x28da1f)=>_0x36d5e7===_0x28da1f);if(_0x9fa5f1){this[_0x38a36f(0x202)]['delete'](_0x9fa5f1);let _0x744047=this['multimediaFiles']['files'][_0x38a36f(0x21a)](_0x3e6514=>_0x3e6514['relativePath']===_0x9fa5f1);_0x744047>=0x0&&this[_0x38a36f(0x13e)][_0x38a36f(0x267)]['splice'](_0x744047,0x1);}}[_0x2897e0(0x228)](){const _0x3c5601=_0x2897e0;return U(this['newMultimediaFiles'][_0x3c5601(0x19f)](),this[_0x3c5601(0x13e)][_0x3c5601(0x267)]);}['updateType'](_0x3656f2){this['type']=_0x3656f2;}['addIndis'](_0x57639b){const _0x317e59=_0x2897e0;this[_0x317e59(0x26f)]=_0x57639b;}[_0x2897e0(0x27b)](_0x371cf8){const _0x1ef813=_0x2897e0;this[_0x1ef813(0x29e)]=_0x371cf8;}['updateDateAct'](_0x48fd91){_0x48fd91?.['isValid']()&&(this['dateAct']=_0x48fd91);}},M=class{constructor(){l(this,'list',[]);}[_0x2897e0(0x290)](_0x3c8a57){const _0x565773=_0x2897e0;this[_0x565773(0x1e6)][_0x565773(0x28d)](_0x3c8a57);}[_0x2897e0(0x23e)](_0x37e116,_0x4a958f){const _0x17c1ac=_0x2897e0;this[_0x17c1ac(0x1e6)][_0x4a958f]=_0x37e116;}[_0x2897e0(0x164)](_0x42d36b){const _0x51708c=_0x2897e0;let _0x1ea932=this[_0x51708c(0x1e6)]['findIndex']((_0x61af54,_0x4d6365)=>_0x4d6365===_0x42d36b);_0x1ea932>=0x0&&this[_0x51708c(0x1e6)]['splice'](_0x1ea932,0x1);}[_0x2897e0(0x215)](){this['list']=[];}[_0x2897e0(0x27d)](){const _0x893552=_0x2897e0;this[_0x893552(0x1e6)]=[...this['list']][_0x893552(0x264)]((_0x3cc0ab,_0x250933)=>{const _0x34cb36=_0x893552;let _0x417fd5=this['hasSortableDate'](_0x3cc0ab),_0x2a9661=this['hasSortableDate'](_0x250933),_0xf45c25=this['compareMarriageAndDivorce'](_0x3cc0ab,_0x250933);if(_0xf45c25!==0x0)return _0xf45c25;if(!_0x417fd5&&!_0x2a9661)return this['compareByTypeOrder'](_0x3cc0ab['type'],_0x250933[_0x34cb36(0x168)]);if(!_0x417fd5&&_0x2a9661)return 0x1;if(_0x417fd5&&!_0x2a9661)return-0x1;let _0x3f6f1d=_0x3cc0ab['dateAct'][_0x34cb36(0x247)],_0x2361f5=_0x250933['dateAct']['year'];if(_0x3f6f1d!==_0x2361f5)return _0x3f6f1d-_0x2361f5;let _0x5bfc8d=_0x3cc0ab['dateAct']?.[_0x34cb36(0x1ef)]||'',_0x25c2e6=_0x250933['dateAct']?.[_0x34cb36(0x1ef)]||'',_0x9b518e=at[_0x34cb36(0x263)](_0x5bfc8d),_0x1a52bc=at['indexOf'](_0x25c2e6),_0x4a5af3=_0x9b518e===-0x1?Number[_0x34cb36(0x244)]:_0x9b518e,_0x5df21e=_0x1a52bc===-0x1?Number['MAX_SAFE_INTEGER']:_0x1a52bc;if(_0x4a5af3!==_0x5df21e)return _0x4a5af3-_0x5df21e;let _0x5f515c=_0x3cc0ab['dateAct']?.['day']||0x0,_0x15ba89=_0x250933['dateAct']?.['day']||0x0;return _0x5f515c-_0x15ba89;});}[_0x2897e0(0x1f9)](_0x2087ca){const _0xf019f6=_0x2897e0;let _0x1597d6=_0x2087ca[_0xf019f6(0x240)]?.[_0xf019f6(0x247)];return Number['isFinite'](_0x1597d6)&&_0x1597d6>0x0;}[_0x2897e0(0x145)](_0x44a822,_0x55ae69){const _0x484f48=_0x2897e0;let _0xb8387f=ot[_0x484f48(0x263)](_0x44a822),_0x4160ff=ot['indexOf'](_0x55ae69);return _0xb8387f-_0x4160ff;}[_0x2897e0(0x201)](_0x287eb3,_0x47ef1f){const _0x2a66cc=_0x2897e0;return!(_0x287eb3[_0x2a66cc(0x168)]==='MARR'&&_0x47ef1f['type']==='DIV'||_0x287eb3[_0x2a66cc(0x168)]===_0x2a66cc(0x280)&&_0x47ef1f[_0x2a66cc(0x168)]===_0x2a66cc(0x20e))||!this[_0x2a66cc(0x13f)](_0x287eb3,_0x47ef1f)?0x0:_0x287eb3['type']==='MARR'?-0x1:0x1;}[_0x2897e0(0x13f)](_0x141fdb,_0x201fe2){const _0x223162=_0x2897e0;if(_0x141fdb['INDIS'][_0x223162(0x238)]===0x0||_0x201fe2['INDIS'][_0x223162(0x238)]===0x0||_0x141fdb[_0x223162(0x26f)][_0x223162(0x238)]!==_0x201fe2['INDIS'][_0x223162(0x238)])return!0x1;let _0x3be925=[..._0x141fdb['INDIS']][_0x223162(0x264)]((_0x25c3fa,_0x1fcea7)=>_0x25c3fa-_0x1fcea7),_0x27507b=[..._0x201fe2['INDIS']][_0x223162(0x264)]((_0x4198f1,_0x281d6e)=>_0x4198f1-_0x281d6e);return _0x3be925[_0x223162(0x192)]((_0x1a7f50,_0x1048c1)=>_0x1a7f50===_0x27507b[_0x1048c1]);}},V=class extends M{[_0x2897e0(0x249)](_0x5e9061,_0x25aa6f,_0x5bcf18){const _0x422098=_0x2897e0;let _0x35f3dc=it(_0x5e9061,_0x25aa6f);this['convertToActs'](_0x35f3dc['entries'],_0x35f3dc[_0x422098(0x20a)],_0x5bcf18);}[_0x2897e0(0x293)](_0x9ed0e5,_0x1150b2,_0x3a3ea7){const _0x1b5115=_0x2897e0;for(let _0x5b62f9 of _0x9ed0e5){let _0x2390df=_0x5b62f9[0x0],_0x12bb69=this[_0x1b5115(0x196)](_0x2390df);if(!_0x12bb69)continue;let _0x5b901f,_0x456c18=new F(),_0x20823d=new y(),_0xc8d076=new Map(),_0x5c1b35=[];for(let _0x1d5c11=0x1;_0x1d5c11<_0x5b62f9[_0x1b5115(0x238)];_0x1d5c11++){let _0x120258=_0x5b62f9[_0x1d5c11],_0x4e4e99=P(_0x120258);if(!_0x4e4e99)continue;let {tag:_0x3a1cd7,value:_0x591388}=_0x4e4e99;switch(_0x3a1cd7){case _0x1b5115(0x250):{let _0x168366=_0x591388;_0x168366!==_0x1b5115(0x219)&&(_0x5b901f=new T(_0x168366));break;}case _0x1b5115(0x296):{let _0x4d49be=_0x591388;_0x456c18['addCity'](_0x4d49be);break;}case _0x1b5115(0x2a6):case'LONG':{let _0x21ea9d=_0x591388;_0x5c1b35[_0x1b5115(0x28d)](Number(_0x21ea9d));break;}case'FILE':{let _0x585225=_0x591388[_0x1b5115(0x151)](),_0x3ed068=_0x3a3ea7['get'](_0x585225),_0x56eadf=new E(_0x3ed068);_0x56eadf[_0x1b5115(0x27a)]=_0x585225,_0x20823d[_0x1b5115(0x267)]['push'](_0x56eadf),_0xc8d076[_0x1b5115(0x1bf)](_0x585225,_0x56eadf);break;}default:break;}_0x5c1b35[_0x1b5115(0x238)]===0x2&&_0x456c18['coordinate'][_0x1b5115(0x1ae)](_0x5c1b35);}if(_0x5b901f||_0x456c18){let _0x2aa115=new I(_0x12bb69,_0x5b901f,_0x456c18,[],_0x20823d,_0xc8d076);_0x2aa115[_0x1b5115(0x165)](_0x1150b2),this['add'](_0x2aa115);}}}['resolveTypeAct'](_0xa86b20){const _0x28911e=_0x2897e0;return Ct[_0x28911e(0x233)](_0x34a903=>_0xa86b20[_0x28911e(0x1e3)](_0x34a903))??null;}};function lt(_0x1eefdc){const _0x3d7c01=_0x2897e0;let _0x477d60=/\/([^/]+)\//['exec'](_0x1eefdc);return{'firstnames':(_0x477d60?_0x1eefdc['replace'](_0x477d60[0x0],''):_0x1eefdc)[_0x3d7c01(0x142)](/"/g,'')['replace'](/\/+/g,'')[_0x3d7c01(0x151)]()['split'](/\s+/)['filter'](Boolean),'lastname':_0x477d60?.[0x1]?.[_0x3d7c01(0x151)]()[_0x3d7c01(0x221)]()??''};}function ct(_0x1fbcd0){const _0x157a62=_0x2897e0;for(let _0x1f11d8 of _0x1fbcd0){let _0x3d341f=P(_0x1f11d8);if(_0x3d341f?.[_0x157a62(0x1b8)]===_0x157a62(0x1c2))return _0x3d341f[_0x157a62(0x270)];}return null;}var R=(_0x506057=>(_0x506057['M']='M',_0x506057['F']='F',_0x506057))(R||{}),S=class{constructor(_0x239478,_0x39d2c5,_0x215395,_0x15f711,_0x46a9eb,_0x332f77,_0x3d741f,_0x518981,_0x31e727,_0x25f75c){const _0x1a0936=_0x2897e0;l(this,_0x1a0936(0x22e)),l(this,_0x1a0936(0x17e)),l(this,_0x1a0936(0x29b)),l(this,_0x1a0936(0x273)),l(this,'lastname'),l(this,_0x1a0936(0x1f4)),l(this,_0x1a0936(0x295),[]),l(this,_0x1a0936(0x202),new Map()),l(this,'multimediaFiles',new y()),l(this,_0x1a0936(0x152),new M()),l(this,'notes',new N()),(this[_0x1a0936(0x17e)]=_0x3d741f,this[_0x1a0936(0x29b)]=_0x39d2c5,this['FAMC']=_0x46a9eb,this['FAMS']=_0x332f77??[],this[_0x1a0936(0x22e)]=_0x239478,this[_0x1a0936(0x273)]=_0x215395??[],this[_0x1a0936(0x137)]=_0x15f711??'',_0x518981&&_0x518981[_0x1a0936(0x267)][_0x1a0936(0x238)]>0x0&&(this[_0x1a0936(0x13e)]=_0x518981),_0x25f75c&&_0x25f75c['list'][_0x1a0936(0x238)]>0x0&&(this[_0x1a0936(0x152)]=_0x25f75c));}get[_0x2897e0(0x267)](){const _0x14aeb7=_0x2897e0;return Array[_0x14aeb7(0x26a)](this['newMultimediaFiles'][_0x14aeb7(0x24f)]());}get['keysFiles'](){const _0x618afe=_0x2897e0;return Array[_0x618afe(0x26a)](this[_0x618afe(0x202)][_0x618afe(0x19f)]());}[_0x2897e0(0x1cb)](_0x25f76b,_0x5ae975,_0xd690bc,_0x5d3891){const _0xb0519f=_0x2897e0;let _0x5b1a74=_0x25f76b[_0xb0519f(0x1eb)](_0x282684=>_0x282684[_0xb0519f(0x142)](/[\n\r]+/g,''));_0x5b1a74['forEach'](_0x49a3eb=>{const _0x5bbeaa=_0xb0519f;this[_0x5bbeaa(0x258)](_0x49a3eb,_0xd690bc,_0x5d3891);}),this[_0xb0519f(0x224)](_0x5b1a74);let _0x1c4623=new V(),_0x1f9025=typeof this[_0xb0519f(0x17e)]=='number'?[this[_0xb0519f(0x17e)]]:[];_0x1c4623[_0xb0519f(0x249)](_0x5b1a74,_0x1f9025,_0xd690bc),this['FAMS']?.[_0xb0519f(0x238)]>0x0&&_0x5ae975&&this[_0xb0519f(0x295)]['forEach'](_0x5c3af0=>{const _0x370773=_0xb0519f;let _0x2d5d5a=_0x5ae975[_0x370773(0x23c)](_0x5c3af0);_0x1c4623['extractActsInfo'](_0x2d5d5a,[],_0xd690bc);}),this['acts']=_0x1c4623,this[_0xb0519f(0x152)]['sortByDate']();}['parsePersonLine'](_0x46dc27,_0x521bb5,_0x4b1a9d){const _0x168833=_0x2897e0;let _0x2a7f86=P(_0x46dc27);if(!_0x2a7f86)return;let {level:_0xd318f6,tag:_0x2e098d,value:_0x4aca51}=_0x2a7f86;if(_0xd318f6==='0'&&_0x2e098d['startsWith']('@I')){this[_0x168833(0x29d)](_0x46dc27);return;}switch(_0x2e098d){case _0x168833(0x29b):this[_0x168833(0x239)](_0x4aca51);break;case'FAMC':this[_0x168833(0x1b4)](_0x4aca51);break;case _0x168833(0x295):this[_0x168833(0x220)](_0x4aca51);break;case _0x168833(0x289):this[_0x168833(0x17c)](_0x4aca51,_0x4b1a9d);break;case'FILE':this['createMultimediaFilesFromValue'](_0x4aca51,_0x521bb5);break;default:break;}}[_0x2897e0(0x29d)](_0x510ffb){const _0x503916=_0x2897e0;let _0x570fc3=rt(_0x510ffb,'I',_0x503916(0x17e));_0x570fc3!==null&&(this['INDI']=_0x570fc3);}[_0x2897e0(0x239)](_0x7a5b9a){const _0x305611=_0x2897e0;let _0x140e66=_0x7a5b9a['trim']();(_0x140e66==='M'||_0x140e66==='F')&&(this[_0x305611(0x29b)]=_0x140e66);}[_0x2897e0(0x1b4)](_0x395b0f){const _0x508a15=_0x2897e0;let _0xde76ed=k(_0x395b0f,'F');_0xde76ed!==null&&(this[_0x508a15(0x1f4)]=_0xde76ed);}['createFAMSFromValue'](_0x5a12e4){const _0x10ee65=_0x2897e0;let _0x3c8f68=k(_0x5a12e4,'F');_0x3c8f68!==null&&this[_0x10ee65(0x295)]['push'](_0x3c8f68);}[_0x2897e0(0x160)](_0x2d8699,_0x4c9311){const _0xd177bc=_0x2897e0;if(!_0x4c9311?.[_0xd177bc(0x1a2)]||!_0x2d8699)return;let _0x3f7ea3=_0x2d8699['trim'](),_0x48fdd3=new E(_0x4c9311['get'](_0x3f7ea3));_0x48fdd3['relativePath']=_0x3f7ea3,this[_0xd177bc(0x13e)]['files'][_0xd177bc(0x28d)](_0x48fdd3),this['newMultimediaFiles'][_0xd177bc(0x1bf)](_0x3f7ea3,_0x48fdd3);}[_0x2897e0(0x17c)](_0x460ccd,_0x2e64e6){const _0xf3df60=_0x2897e0;let _0x2a0afb=_0x460ccd['trim']();if(!_0x2a0afb)return;let _0x1a52c4=k(_0x2a0afb,'N');if(_0x1a52c4!==null&&_0x2e64e6?.['size']){let _0x379788=_0x2e64e6[_0xf3df60(0x23c)](_0x1a52c4);if(!_0x379788||_0x379788[_0xf3df60(0x238)]===0x0)return;let _0x5663c7=new D();_0x5663c7[_0xf3df60(0x1c9)]([..._0x379788]),typeof this[_0xf3df60(0x17e)]==_0xf3df60(0x26d)&&_0x5663c7['addIndis']([this[_0xf3df60(0x17e)]]),this['notes'][_0xf3df60(0x186)](_0x5663c7);return;}let _0x317841=new D();_0x317841['updateLines']([_0x2a0afb]),typeof this['INDI']==_0xf3df60(0x26d)&&_0x317841[_0xf3df60(0x165)]([this['INDI']]),this[_0xf3df60(0x271)]['addNote'](_0x317841);}['addMultimedia'](_0x3e71b2){const _0x29632b=_0x2897e0;if(typeof this[_0x29632b(0x17e)]!=_0x29632b(0x26d)||!_0x3e71b2?.[_0x29632b(0x246)])return;let _0x6b9a27=''+this[_0x29632b(0x17e)],_0x13e63d=this[_0x29632b(0x228)](),_0x4ff7cf=G(_0x6b9a27,_0x3e71b2['file']['name'],_0x13e63d);_0x3e71b2['relativePath']=_0x4ff7cf,this['multimediaFiles'][_0x29632b(0x267)]['push'](_0x3e71b2),this[_0x29632b(0x202)][_0x29632b(0x1bf)](_0x4ff7cf,_0x3e71b2);}[_0x2897e0(0x28a)](_0x237ab3){const _0x27383a=_0x2897e0;this[_0x27383a(0x202)]['delete'](_0x237ab3);let _0x4a4858=this['multimediaFiles'][_0x27383a(0x267)][_0x27383a(0x21a)](_0x31d6f2=>_0x31d6f2['relativePath']===_0x237ab3);_0x4a4858>=0x0&&this[_0x27383a(0x13e)][_0x27383a(0x267)][_0x27383a(0x27f)](_0x4a4858,0x1);}[_0x2897e0(0x228)](){const _0x55d0fe=_0x2897e0;return U(this['newMultimediaFiles'][_0x55d0fe(0x19f)](),this[_0x55d0fe(0x13e)]['files']);}['createFirstnamesAndLastnameJson'](_0x129835){const _0x3b8c0f=_0x2897e0;let _0x4fec1a=ct(_0x129835);if(!_0x4fec1a)return;let _0x1e7a8e=lt(_0x4fec1a);this[_0x3b8c0f(0x273)]=_0x1e7a8e[_0x3b8c0f(0x273)],this['lastname']=_0x1e7a8e['lastname'];}},C=class extends M{constructor(_0x2d02f8){const _0x1f2696=_0x2897e0;super(),l(this,_0x1f2696(0x247)),this[_0x1f2696(0x247)]=_0x2d02f8;}},Y=class{constructor(_0x1419bb){const _0x475007=_0x2897e0;l(this,'events',[]),(this[_0x475007(0x27e)]=[..._0x1419bb]['reduce']((_0x41a99f,_0x59dd96)=>{const _0x23bf24=_0x475007;let _0x2703fa,{dateAct:_0x1dc2b5,INDIS:_0xa060fe}=_0x59dd96;if(_0x1dc2b5?.[_0x23bf24(0x247)]){let _0x2928de=Number(_0x1dc2b5[_0x23bf24(0x247)]),_0xd7e2b3=_0x41a99f[_0x23bf24(0x21a)](_0x41c35c=>_0x41c35c?.[_0x23bf24(0x247)]===_0x2928de);_0xd7e2b3>=0x0?(_0x2703fa=_0x41a99f[_0xd7e2b3],_0x2703fa[_0x23bf24(0x1e6)][_0x23bf24(0x233)](_0x2db533=>_0x2db533[_0x23bf24(0x26f)]['find'](_0x5e78e7=>_0xa060fe[_0x23bf24(0x1e3)](_0x5e78e7)))||(_0x2703fa['add'](_0x59dd96),_0x41a99f[_0xd7e2b3]=_0x2703fa)):(_0x2703fa=new C(_0x2928de),_0x2703fa[_0x23bf24(0x290)](_0x59dd96),_0x41a99f[_0x23bf24(0x28d)](_0x2703fa));}return _0x41a99f;},[]),this[_0x475007(0x19b)]());}[_0x2897e0(0x19b)](){const _0x49117e=_0x2897e0;this['events']=[...this['events']][_0x49117e(0x264)]((_0x19e93a,_0x9bb087)=>_0x19e93a['year']-_0x9bb087[_0x49117e(0x247)]);}},X=class{constructor(_0x317b00){const _0x1749e5=_0x2897e0;l(this,_0x1749e5(0x189),[]),l(this,'informationFamilies',new Map()),l(this,'informationNotes',new Map()),_0x317b00!==void 0x0&&this[_0x1749e5(0x1ee)](_0x317b00);}[_0x2897e0(0x1ee)](_0x13a5b2){const _0xe4aefa=_0x2897e0;let _0x235281=_0x13a5b2[_0xe4aefa(0x251)]('\x0a')[_0xe4aefa(0x1eb)](_0x13bdd3=>_0x13bdd3[_0xe4aefa(0x142)](/\r$/,'')),_0x5d67b6=[],_0x179fbf=()=>{const _0x1b466f=_0xe4aefa;_0x5d67b6[_0x1b466f(0x238)]!==0x0&&(this['ingestRecordBlock'](_0x5d67b6['join']('\x0a')),_0x5d67b6=[]);};for(let _0x19d7ec of _0x235281)_0x19d7ec['startsWith']('0\x20')?(_0x179fbf(),_0x5d67b6=[_0x19d7ec]):_0x5d67b6['length']>0x0&&_0x5d67b6['push'](_0x19d7ec);_0x179fbf();}async['ingestGedcomFileStream'](_0x41271f){const _0x383eb8=_0x2897e0;if(typeof _0x41271f['stream']!=_0x383eb8(0x23a)||typeof TextDecoderStream>'u'){this[_0x383eb8(0x1ee)](await _0x41271f[_0x383eb8(0x193)]());return;}let _0xc9447b=_0x41271f[_0x383eb8(0x25c)]()['pipeThrough'](new TextDecoderStream())['getReader'](),_0x256628='',_0xb8d55=null,_0x4baf9b=()=>{const _0x343d4c=_0x383eb8;if(!_0xb8d55||_0xb8d55[_0x343d4c(0x238)]===0x0){_0xb8d55=null;return;}let _0x2b1ad9=_0xb8d55['join']('\x0a');_0xb8d55=null,this[_0x343d4c(0x188)](_0x2b1ad9);};for(;;){let {done:_0x1bf32f,value:_0x593698}=await _0xc9447b[_0x383eb8(0x291)]();if(_0x593698){_0x256628+=_0x593698;let _0x28e77e=_0x256628[_0x383eb8(0x263)]('\x0a');for(;_0x28e77e!==-0x1;){let _0x12ec0f=_0x256628['slice'](0x0,_0x28e77e);_0x256628=_0x256628[_0x383eb8(0x184)](_0x28e77e+0x1),_0x28e77e=_0x256628['indexOf']('\x0a');let _0x584f68=_0x12ec0f[_0x383eb8(0x142)](/\r$/,'');_0x584f68[_0x383eb8(0x1d9)]('0\x20')?(_0x4baf9b(),_0xb8d55=[_0x584f68]):_0xb8d55&&_0xb8d55['push'](_0x584f68);}}if(_0x1bf32f){if(_0x256628[_0x383eb8(0x238)]===0x0){_0x4baf9b();break;}let _0x5d12f6=_0x256628[_0x383eb8(0x142)](/\r$/,'');_0x5d12f6[_0x383eb8(0x1d9)]('0\x20')?(_0x4baf9b(),_0xb8d55=[_0x5d12f6]):_0xb8d55&&_0xb8d55[_0x383eb8(0x28d)](_0x5d12f6),_0x4baf9b();break;}}}['ingestRecordBlock'](_0x334eb9){const _0x1bd1bf=_0x2897e0;let _0x4f8984=_0x334eb9[_0x1bd1bf(0x251)]('\x0a')[0x0]?.[_0x1bd1bf(0x195)]()??'',_0x42b900=_0x4f8984['startsWith']('0\x20')?_0x4f8984['slice'](0x2):_0x4f8984;switch(''+_0x42b900[0x0]+_0x42b900[0x1]){case'@I':this[_0x1bd1bf(0x2a3)](_0x334eb9);break;case'@F':this[_0x1bd1bf(0x272)](_0x334eb9);break;case'@N':this['splitInformationNotes'](_0x334eb9);break;case'@S':break;default:break;}}[_0x2897e0(0x2a3)](_0x5989d9){const _0x16962b=_0x2897e0;this['informationPersons']['push'](_0x5989d9[_0x16962b(0x251)]('\x0a'));}['splitInformationFamilies'](_0x21df36){const _0x5a93a7=_0x2897e0;let _0x63afca=this[_0x5a93a7(0x14e)](_0x21df36,'@F');if(_0x63afca===null)return;let _0x29e4e0=_0x21df36[_0x5a93a7(0x251)]('\x0a')['slice'](0x1);this['informationFamilies']['set'](_0x63afca,_0x29e4e0);}['splitInformationNotes'](_0x23aaf7){const _0x49cc58=_0x2897e0;let _0x2cfa90=this['extractXrefId'](_0x23aaf7,'@N');if(_0x2cfa90===null)return;let _0x1072cb=_0x23aaf7[_0x49cc58(0x251)]('\x0a')['slice'](0x1);this['informationNotes']['set'](_0x2cfa90,_0x1072cb);}['extractXrefId'](_0xd1f933,_0x34eda9){const _0x5528c8=_0x2897e0;let _0xeb9757=_0xd1f933[_0x5528c8(0x263)](_0x34eda9);if(_0xeb9757<0x0)return null;let _0x2eaba4=_0xd1f933[_0x5528c8(0x263)]('@',_0xeb9757+_0x34eda9['length']);if(_0x2eaba4<=_0xeb9757)return null;let _0x4715aa=_0xd1f933['slice'](_0xeb9757+_0x34eda9['length'],_0x2eaba4);return/^\d+$/[_0x5528c8(0x179)](_0x4715aa)?Number(_0x4715aa):null;}},ut=_0x1e72b0=>{const _0x41b0af=_0x2897e0;let _0x5354fd=_0x1e72b0['map'](_0x32b0dd=>_0x32b0dd[_0x41b0af(0x17e)])[_0x41b0af(0x243)](_0x173a2a=>typeof _0x173a2a==_0x41b0af(0x26d))['sort']((_0xe1addb,_0x3bcbab)=>_0xe1addb-_0x3bcbab);return _0x5354fd[_0x41b0af(0x238)]===0x0?0x1:_0x5354fd[_0x5354fd['length']-0x1]+0x1;},b=class o extends X{constructor(_0xb6ca9f,_0x46007c,_0xf5c3e,_0x5cd075){const _0x98f0d8=_0x2897e0;super(_0xb6ca9f),l(this,'persons'),l(this,'mapPersons'),l(this,'partnersMap'),l(this,'childsMap'),l(this,_0x98f0d8(0x1b6)),l(this,_0x98f0d8(0x141)),(this[_0x98f0d8(0x1b6)]=_0x46007c??new Map(),this['placesMap']=_0xf5c3e??new Map(),this['mapPersons']=_0x5cd075??new Map(),_0xb6ca9f!==void 0x0&&this[_0x98f0d8(0x234)]());}static async['fromGedcomFile'](_0x57619c,_0x1b59dc,_0x4f17c0,_0x186bc1){const _0x4bad07=_0x2897e0;let _0x1f9965=new o(void 0x0,_0x1b59dc,_0x4f17c0,_0x186bc1);return await _0x1f9965['ingestGedcomFileStream'](_0x57619c),_0x1f9965[_0x4bad07(0x234)](),_0x1f9965;}['finalizeAfterParse'](){const _0x51aea5=_0x2897e0;this[_0x51aea5(0x212)]=this['createPersons'](),this[_0x51aea5(0x22f)](),this[_0x51aea5(0x1d7)]=new Map(),this['childsMap']=new Map(),this[_0x51aea5(0x135)]();}['groupPartners'](){this['persons']['forEach'](_0x2e194b=>{const _0x502c04=_0x5779;this['linkPersonAsPartner'](_0x2e194b),this[_0x502c04(0x237)](_0x2e194b);});}[_0x2897e0(0x16b)](_0xd699b){const _0x8b5366=_0x2897e0;return this['haveParentsOfPerson'](_0xd699b,[])[_0x8b5366(0x264)]((_0x1a8a44,_0x52d593)=>_0x1a8a44['sosa']-_0x52d593[_0x8b5366(0x22e)]);}[_0x2897e0(0x253)](){const _0x257908=_0x2897e0;return ut(this[_0x257908(0x212)]);}[_0x2897e0(0x161)](_0x1a4de6,_0x570acf,_0x386307){const _0x188176=_0x2897e0;let _0x2f7e0c=Object[_0x188176(0x2a2)]({},_0x1a4de6);if(_0x2f7e0c[_0x188176(0x22e)]=_0x386307?_0x386307*0x2+(_0x1a4de6[_0x188176(0x29b)]==='F'?0x1:0x0):0x1,this[_0x188176(0x1d7)][_0x188176(0x15e)](_0x2f7e0c['FAMC'])){let _0x66cdde=[...this['partnersMap'][_0x188176(0x23c)](_0x2f7e0c[_0x188176(0x1f4)])];_0x66cdde['length']>0x0&&_0x66cdde[_0x188176(0x254)](_0x57e88c=>{const _0x3e2930=_0x188176;this['haveParentsOfPerson'](_0x57e88c,_0x570acf,_0x2f7e0c[_0x3e2930(0x22e)]);});}return _0x570acf[_0x188176(0x28d)](_0x2f7e0c),_0x570acf;}[_0x2897e0(0x28f)](){const _0x63a386=_0x2897e0;return this[_0x63a386(0x189)]?.[_0x63a386(0x238)]?this[_0x63a386(0x189)][_0x63a386(0x1eb)](_0x1a27bf=>this[_0x63a386(0x1b3)](_0x1a27bf))[_0x63a386(0x264)]((_0x3375a4,_0x2152aa)=>(_0x3375a4['FAMC']??Number[_0x63a386(0x244)])-(_0x2152aa[_0x63a386(0x1f4)]??Number[_0x63a386(0x244)])):[];}[_0x2897e0(0x1b3)](_0x32dddb){const _0x192637=_0x2897e0;let _0x3c3def=new S();return _0x3c3def[_0x192637(0x1cb)](_0x32dddb,this['informationFamilies'],this['mapFiles'],this[_0x192637(0x259)]),typeof _0x3c3def['INDI']=='number'&&this['mapPersons']['set'](_0x3c3def[_0x192637(0x17e)],_0x3c3def),_0x3c3def;}['hydratePlacesFromActs'](){const _0x4a7ffb=_0x2897e0;this['persons'][_0x4a7ffb(0x254)](_0x46d8b1=>{const _0x1bf039=_0x4a7ffb;_0x46d8b1[_0x1bf039(0x152)][_0x1bf039(0x1e6)][_0x1bf039(0x254)](_0x2f1524=>{const _0x22ba48=_0x1bf039;let _0x55d1e5=_0x2f1524[_0x22ba48(0x29e)]?.[_0x22ba48(0x144)];_0x55d1e5&&this['upsertPlace'](_0x55d1e5,_0x2f1524[_0x22ba48(0x29e)]);});});}[_0x2897e0(0x22d)](_0x17c451,_0x28d323){const _0x23322f=_0x2897e0;let _0x3a6410=this[_0x23322f(0x141)]['get'](_0x17c451);if(!_0x3a6410){this[_0x23322f(0x141)][_0x23322f(0x1bf)](_0x17c451,_0x28d323);return;}let {latitude:_0x148b53,longitude:_0xd49324}=_0x3a6410[_0x23322f(0x25b)];(_0x148b53===0x0||_0x148b53)&&(_0xd49324===0x0||_0xd49324)||this[_0x23322f(0x141)]['set'](_0x17c451,_0x28d323);}['linkPersonAsPartner'](_0xb2816e){const _0x36f981=_0x2897e0;_0xb2816e[_0x36f981(0x295)]?.['length']&&_0xb2816e[_0x36f981(0x295)]['forEach'](_0x3c0c2f=>{const _0x5db6e1=_0x36f981;let _0x183b18=this[_0x5db6e1(0x1d7)]['get'](_0x3c0c2f)??[];this['partnersMap']['set'](_0x3c0c2f,[_0xb2816e,..._0x183b18]);});}[_0x2897e0(0x237)](_0xb717d0){const _0x4a4622=_0x2897e0;if(!_0xb717d0[_0x4a4622(0x1f4)])return;let _0x165d67=this[_0x4a4622(0x1e2)][_0x4a4622(0x23c)](_0xb717d0[_0x4a4622(0x1f4)])??[];this[_0x4a4622(0x1e2)][_0x4a4622(0x1bf)](_0xb717d0['FAMC'],[_0xb717d0,..._0x165d67]);}},ht=require(_0x2897e0(0x1ba)),mt=async _0x131833=>{if(!(_0x131833 instanceof File))throw new Error('file\x20must\x20be\x20a\x20File');let {type:_0x489a01}=_0x131833;return _0x489a01==='application/zip'?Lt(_0x131833):pt(_0x131833);},pt=async(_0x3b23e1,_0x43a1a4)=>{const _0x21e98b=_0x2897e0;if(!(_0x3b23e1 instanceof File))throw new Error('Le\x20fichier\x20envoyé\x20doit-etre\x20un\x20File');if(!/\.ged$/['test'](_0x3b23e1['name']))throw new Error(_0x21e98b(0x287));return b[_0x21e98b(0x183)](_0x3b23e1,_0x43a1a4);},$t=async _0x53308c=>{const _0x3c0392=_0x2897e0;let _0x2056c3=(0x0,ht[_0x3c0392(0x19c)])(new Uint8Array(await _0x53308c['arrayBuffer']())),_0x5acc1c=new Map();for(let [_0x45d09b,_0x3d806a]of Object['entries'](_0x2056c3))_0x45d09b['endsWith']('/')||_0x5acc1c[_0x3c0392(0x1bf)](_0x45d09b,new File([Uint8Array[_0x3c0392(0x26a)](_0x3d806a)],_0x45d09b));return _0x5acc1c;},Lt=async _0x14b2b6=>{const _0x1706d7=_0x2897e0;if(!(_0x14b2b6 instanceof File))throw new Error(_0x1706d7(0x13a));let _0x560e66=await $t(_0x14b2b6['slice']()),_0x4a326f=/\.ged$/;for(let _0x16cf51 of _0x560e66['keys']())if(_0x4a326f[_0x1706d7(0x179)](_0x16cf51))return pt(_0x560e66[_0x1706d7(0x23c)](_0x16cf51),_0x560e66);throw new Error('You\x20don\x27t\x20have\x20any\x20.ged\x20File\x20in\x20your\x20.gdz\x20File');},ft=require('fflate'),dt='\x0a';function Ot(_0x1f36b8){const _0xfdb459=_0x2897e0;if(!_0x1f36b8?.[_0xfdb459(0x238)])return'';let _0x686028='',_0x2ee8f6=!0x1;for(let _0x1ad94a of _0x1f36b8){let _0x4eeba5=P(_0x1ad94a['trimStart']());if(!_0x4eeba5)continue;let {level:_0x5cb4b9,tag:_0x4b0a73,value:_0x9f9188}=_0x4eeba5;if(_0x5cb4b9==='0'&&_0x9f9188===_0xfdb459(0x289)&&_0x4b0a73['startsWith']('@N')&&_0x4b0a73[_0xfdb459(0x21d)]('@')){_0x2ee8f6=!0x0;continue;}if(_0x4b0a73===_0xfdb459(0x289)){_0x686028=_0x9f9188,_0x2ee8f6=!0x0;continue;}if(_0x4b0a73==='CONC'){_0x686028+=_0x9f9188,_0x2ee8f6=!0x0;continue;}if(_0x4b0a73==='CONT'){_0x686028+=(_0x686028?'\x0a':'')+_0x9f9188,_0x2ee8f6=!0x0;continue;}}return _0x2ee8f6?_0x686028['replace'](/\r\n/g,'\x0a')[_0xfdb459(0x142)](/\r/g,'\x0a'):_0x1f36b8[_0xfdb459(0x243)](_0x3e13b3=>_0x3e13b3[_0xfdb459(0x238)]>0x0)['join']('\x0a')['replace'](/\r\n/g,'\x0a')[_0xfdb459(0x142)](/\r/g,'\x0a');}function Bt(_0x1a7c52,_0x17f81f){const _0x507b62=_0x2897e0;let _0x8ac52f=Ot(_0x1a7c52[_0x507b62(0x185)]??[]);if(!_0x8ac52f['trim']())return'';let _0x5553a0=_0x17f81f+0x1,_0x10427f=_0x8ac52f['split']('\x0a');for(;_0x10427f[_0x507b62(0x238)]>0x0&&_0x10427f[0x0]==='';)_0x10427f['shift']();if(_0x10427f[_0x507b62(0x238)]===0x0)return'';let [_0x3268d2,..._0x32b7b0]=_0x10427f,_0x4f50f7=_0x17f81f+_0x507b62(0x138)+_0x3268d2+dt;return _0x32b7b0[_0x507b62(0x238)]===0x0?_0x4f50f7:_0x4f50f7+_0x32b7b0[_0x507b62(0x1eb)](_0x448e30=>_0x5553a0+_0x507b62(0x1b7)+_0x448e30+dt)[_0x507b62(0x18e)]('');}function _(_0x438ebf,_0x597144){const _0x1c6331=_0x2897e0;return _0x438ebf?.[_0x1c6331(0x1e6)]?.[_0x1c6331(0x238)]?_0x438ebf[_0x1c6331(0x1e6)]['map'](_0x56c48d=>Bt(_0x56c48d,_0x597144))['join'](''):'';}var p='\x0a',Gt={'day':'2-digit','month':'2-digit','year':'numeric'},At=(_0xe4bb46,_0x401ec1,_0x15b7be)=>{const _0x5077c4=_0x2897e0;let _0x12221f=_0x401ec1['relativePath']?.['trim']();if(_0x12221f&&_0x12221f[_0x5077c4(0x1e3)]('/'))return _0x12221f;let _0x2b8381=_0x12221f||_0x401ec1[_0x5077c4(0x246)]['name'];return _0x15b7be[_0x5077c4(0x238)]===0x1?_0x15b7be[0x0]+'/'+_0xe4bb46['type']+'/'+_0x2b8381:'media/events/'+(_0x15b7be['length']>0x1?_0x15b7be['join']('-'):'unknown')+'/'+_0xe4bb46['type']+'/'+_0x2b8381;},gt=(_0x497356,_0x1beed0)=>{const _0x3d47db=_0x2897e0;let _0x5754a8=URL['createObjectURL'](_0x497356),_0x9f11f9=document['createElement']('a');_0x9f11f9['href']=_0x5754a8,_0x9f11f9[_0x3d47db(0x255)]=_0x1beed0,_0x9f11f9[_0x3d47db(0x29f)](),setTimeout(()=>URL[_0x3d47db(0x173)](_0x5754a8),0x0);},Z=(..._0x2a8bd2)=>{const _0x4a27da=_0x2897e0;let _0x3e6247=new Map();for(let _0x11cd8c of _0x2a8bd2)if(_0x11cd8c?.[_0x4a27da(0x238)])for(let _0x153daa of _0x11cd8c){if(!_0x153daa?.[_0x4a27da(0x246)])continue;let _0x294c39=_0x153daa['relativePath']||_0x153daa['file'][_0x4a27da(0x16f)];_0x3e6247['has'](_0x294c39)||_0x3e6247[_0x4a27da(0x1bf)](_0x294c39,_0x153daa);}return Array['from'](_0x3e6247['values']());},H=class{constructor(_0x218c47,_0x25cd62,_0x385fa8){const _0x235bcc=_0x2897e0;l(this,_0x235bcc(0x1f8)),l(this,'persons'),l(this,_0x235bcc(0x21b),Date['now']()),l(this,_0x235bcc(0x278),!0x1);let _0x640d39=_0x218c47?.['trim']();this[_0x235bcc(0x1f8)]=_0x640d39?_0x640d39+_0x235bcc(0x16e)+this[_0x235bcc(0x21b)]:'gedcom-ts_'+this['onCreate'],this['persons']=_0x25cd62,this[_0x235bcc(0x278)]=_0x385fa8;}get[_0x2897e0(0x14f)](){const _0x560647=_0x2897e0;let _0xe3266d=new Date();return'0\x20HEAD'+p+_0x560647(0x241)+p+_0x560647(0x1e5)+_0xe3266d[_0x560647(0x208)](_0x560647(0x150),Gt)+p+'2\x20TIME\x20'+_0xe3266d['toLocaleTimeString']('fr-FR')+p+_0x560647(0x2a0)+this['title']+p+_0x560647(0x15c)+p+_0x560647(0x1d3)+p+_0x560647(0x1d0)+p;}get[_0x2897e0(0x1b1)](){const _0x42ca42=_0x2897e0;return this[_0x42ca42(0x212)][_0x42ca42(0x1eb)](_0x454f02=>new K(_0x454f02,this[_0x42ca42(0x278)])[_0x42ca42(0x136)]())[_0x42ca42(0x18e)]('')+new q(this['persons'])['lines']();}[_0x2897e0(0x158)](){const _0x261bc6=_0x2897e0;return new Blob([''+this['beginGedcom']+this[_0x261bc6(0x1b1)]+'TRLR'],{'type':'application/x-gedcom'});}},J=class extends H{constructor(..._0x64dcb9){const _0x4345b5=_0x2897e0;let [_0x3feed5,_0x423e68]=typeof _0x64dcb9[0x0]==_0x4345b5(0x1ca)?[_0x64dcb9[0x0],_0x64dcb9[0x1]]:[void 0x0,_0x64dcb9[0x0]];super(_0x3feed5,_0x423e68,!0x0);}async[_0x2897e0(0x255)](){const _0x51ed7e=_0x2897e0;let _0x191001={};_0x191001[this['title']+_0x51ed7e(0x1f3)]=new Uint8Array(await this['gedcomBlob']()['arrayBuffer']());let _0x59c50e=[];this['persons'][_0x51ed7e(0x254)](_0x32196b=>{const _0x41692d=_0x51ed7e;let _0x25d862=this[_0x41692d(0x22c)](_0x32196b);Z(_0x32196b[_0x41692d(0x267)],_0x32196b[_0x41692d(0x13e)][_0x41692d(0x267)])['forEach'](_0x2fe5b7=>{const _0x5ae33e=_0x41692d;let _0x20c570=this[_0x5ae33e(0x29c)](_0x2fe5b7,_0x25d862);_0x59c50e[_0x5ae33e(0x28d)](this[_0x5ae33e(0x15b)](_0x191001,_0x2fe5b7,_0x20c570));}),_0x32196b['acts']['list'][_0x41692d(0x254)](_0x3e7582=>{const _0x12b628=_0x41692d;let _0x38cd91=this[_0x12b628(0x1c1)](_0x25d862,_0x3e7582);Z(_0x3e7582['files'],_0x3e7582['multimediaFiles']['files'])['forEach'](_0x593f7d=>{const _0x1981d3=_0x12b628;let _0xaa965e=At(_0x3e7582,_0x593f7d,_0x38cd91);_0x59c50e[_0x1981d3(0x28d)](this[_0x1981d3(0x15b)](_0x191001,_0x593f7d,_0xaa965e));});});}),await Promise['all'](_0x59c50e),(0x0,ft['zip'])(_0x191001,{'level':0x9},(_0x19eaf3,_0x4fab96)=>{if(_0x19eaf3)throw _0x19eaf3;let _0x36a9ce=Uint8Array['from'](_0x4fab96);setTimeout(()=>{const _0x5b66b4=_0x5779;gt(new Blob([_0x36a9ce],{'type':'application/zip'}),this[_0x5b66b4(0x1f8)]+_0x5b66b4(0x21f));},0x0);});}[_0x2897e0(0x22c)](_0x4ad418){const _0x27230f=_0x2897e0;if(typeof _0x4ad418['INDI']==_0x27230f(0x26d))return''+_0x4ad418[_0x27230f(0x17e)];for(let _0x1780e0 of _0x4ad418[_0x27230f(0x152)]['list']){let _0x26c5b8=_0x1780e0[_0x27230f(0x26f)][_0x27230f(0x233)](_0x1e8b85=>typeof _0x1e8b85==_0x27230f(0x26d));if(_0x26c5b8!==void 0x0)return''+_0x26c5b8;}return'';}[_0x2897e0(0x1c1)](_0x271e0f,_0x34c35d){const _0x374a30=_0x2897e0;let _0xff0c3c=new Set();return _0x271e0f&&_0xff0c3c['add'](_0x271e0f),_0x34c35d['INDIS']['filter'](_0x2e5500=>typeof _0x2e5500==_0x374a30(0x26d))['forEach'](_0x28e447=>_0xff0c3c[_0x374a30(0x290)](''+_0x28e447)),Array[_0x374a30(0x26a)](_0xff0c3c);}[_0x2897e0(0x29c)](_0x267914,_0x5d7791){const _0x2fe5cc=_0x2897e0;let _0x152025=_0x5d7791[_0x2fe5cc(0x142)](/\/+$/,''),_0x248b47=_0x267914[_0x2fe5cc(0x27a)]?.[_0x2fe5cc(0x151)]();if(_0x248b47&&_0x248b47[_0x2fe5cc(0x1e3)]('/'))return _0x248b47;let _0xce791d=_0x248b47||_0x267914[_0x2fe5cc(0x246)]['name'];return _0x152025?_0x152025+'/'+_0xce791d:_0xce791d;}async['zipFile'](_0x13722b,_0x3eadc5,_0x519dd9){const _0x4b010a=_0x2897e0;let {file:_0x33790a,relativePath:_0xcc266f}=_0x3eadc5;if(!_0x33790a)return;let _0x55389a=_0x519dd9||_0xcc266f||_0x33790a[_0x4b010a(0x16f)];_0x13722b[_0x55389a]=new Uint8Array(await _0x33790a['arrayBuffer']());}},z=class extends H{constructor(..._0x1bb90c){const _0x1f4b95=_0x2897e0;let [_0xb07cc1,_0x57a747]=typeof _0x1bb90c[0x0]==_0x1f4b95(0x1ca)?[_0x1bb90c[0x0],_0x1bb90c[0x1]]:[void 0x0,_0x1bb90c[0x0]];super(_0xb07cc1,_0x57a747,!0x1);}[_0x2897e0(0x255)](){const _0x577f61=_0x2897e0;gt(this[_0x577f61(0x158)](),this['title']+'.ged');}},q=class{constructor(_0x2f29d6){const _0x2af5f0=_0x2897e0;l(this,_0x2af5f0(0x1e1),new Map()),_0x2f29d6[_0x2af5f0(0x254)](_0x101f6b=>{const _0x48feef=_0x2af5f0;let {FAMS:_0x585379,FAMC:_0x22d74a,INDI:_0x77f8ce}=_0x101f6b;_0x585379[_0x48feef(0x238)]>0x0&&this[_0x48feef(0x269)]('1\x20'+(_0x101f6b['SEX']==='M'?_0x48feef(0x279):_0x48feef(0x26e))+'\x20@I'+_0x77f8ce+'@\x0a',_0x585379),_0x22d74a&&this[_0x48feef(0x269)](_0x48feef(0x218)+_0x77f8ce+'@\x0a',[_0x22d74a]);});}[_0x2897e0(0x185)](){const _0x43bf98=_0x2897e0;let _0x4e6c70=[];for(let [_0x515eb9,_0x1c26cd]of this['informationFamilies'][_0x43bf98(0x29a)]())_0x4e6c70['push']('0\x20@F'+_0x515eb9+_0x43bf98(0x153),_0x1c26cd['join'](''));return _0x4e6c70['join']('');}['setInformationFamilies'](_0x1b8991,_0x2586b9){_0x2586b9['forEach'](_0x4aa95d=>{const _0x2d390e=_0x5779;if(this[_0x2d390e(0x1e1)][_0x2d390e(0x15e)](_0x4aa95d)){let _0x21c82f=this['informationFamilies'][_0x2d390e(0x23c)](_0x4aa95d);_0x21c82f['push'](_0x1b8991),this[_0x2d390e(0x1e1)][_0x2d390e(0x1bf)](_0x4aa95d,_0x21c82f);}else this[_0x2d390e(0x1e1)]['set'](_0x4aa95d,[_0x1b8991]);});}},K=class{constructor(_0x5225c4,_0x102f0b){const _0x177fce=_0x2897e0;l(this,'INDI'),l(this,'NAME'),l(this,_0x177fce(0x29b),''),l(this,'FAMS'),l(this,'FAMC'),l(this,_0x177fce(0x1e8),''),l(this,_0x177fce(0x22a),''),l(this,_0x177fce(0x17f),''),(this[_0x177fce(0x17e)]=this[_0x177fce(0x217)](_0x5225c4),this['NAME']=this[_0x177fce(0x1a4)](_0x5225c4),this[_0x177fce(0x29b)]=this['getSex'](_0x5225c4),this[_0x177fce(0x295)]=this[_0x177fce(0x143)](_0x5225c4),this['FAMC']=this[_0x177fce(0x1c5)](_0x5225c4),_0x102f0b&&_0x5225c4['multimediaFiles']['files'][_0x177fce(0x238)]>0x0&&(this['FILES']=this[_0x177fce(0x174)](_0x5225c4)),_0x5225c4[_0x177fce(0x152)][_0x177fce(0x1e6)]?.[_0x177fce(0x238)]>0x0&&(this['ACTS']=new tt(_0x5225c4)['line']()),_0x5225c4[_0x177fce(0x271)]['list'][_0x177fce(0x238)]>0x0&&(this['NOTES']=_(_0x5225c4[_0x177fce(0x271)],0x1)));}[_0x2897e0(0x136)](){const _0x6ad9b9=_0x2897e0;return this['INDI']+this['NAME']+this[_0x6ad9b9(0x29b)]+this['FILES']+this[_0x6ad9b9(0x22a)]+this[_0x6ad9b9(0x17f)]+this['FAMS']+this['FAMC'];}[_0x2897e0(0x217)](_0x194083){const _0xa264b1=_0x2897e0;return _0xa264b1(0x281)+_0x194083['INDI']+'@\x20INDI'+p;}['getName'](_0x1852c5){const _0x49503c=_0x2897e0;let _0x2a6128=_0x1852c5['firstnames']?.[_0x49503c(0x238)]>0x0?[..._0x1852c5[_0x49503c(0x273)]]:[],_0x328277=_0x1852c5[_0x49503c(0x137)]??'';if(_0x2a6128[_0x49503c(0x238)]>0x0||_0x328277['length']>0x0){let _0x511545='1\x20NAME';return _0x2a6128[_0x49503c(0x238)]>0x0&&(_0x2a6128[0x0]='\x22'+_0x2a6128[0x0]+'\x22',_0x511545+='\x20'+_0x2a6128[_0x49503c(0x18e)]('\x20')),_0x328277&&_0x328277['length']>0x0&&(_0x511545+='\x20/'+_0x328277+'/'),_0x511545+p;}return'';}[_0x2897e0(0x22b)](_0x76fd02){const _0x29bddc=_0x2897e0;return'1\x20SEX\x20'+_0x76fd02[_0x29bddc(0x29b)]+p;}[_0x2897e0(0x174)](_0x1e69a8){const _0xc717d1=_0x2897e0;return _0x1e69a8['multimediaFiles']?.['files'][_0xc717d1(0x1eb)](_0x4e121a=>_0xc717d1(0x2a0)+_0x4e121a['relativePath']+p)[_0xc717d1(0x18e)]('')??'';}['getFams'](_0x4e93e5){const _0x282e85=_0x2897e0;return _0x4e93e5[_0x282e85(0x295)][_0x282e85(0x243)](_0x1952d2=>_0x1952d2>=0x0)['map'](_0x26401e=>_0x282e85(0x23f)+_0x26401e+'@'+p)['join']('');}['getFamc'](_0x2a250b){const _0x2b8d54=_0x2897e0;return _0x2a250b[_0x2b8d54(0x1f4)]?_0x2b8d54(0x13c)+_0x2a250b[_0x2b8d54(0x1f4)]+'@'+p:'';}},Q=class o{constructor(_0x5bf8e2,_0x2e18f5){const _0x294e71=_0x2897e0;l(this,_0x294e71(0x275)),l(this,'PLACE'),l(this,_0x294e71(0x250)),l(this,_0x294e71(0x17f)),l(this,'FILES'),l(this,'ownerIndi'),(this[_0x294e71(0x26c)]=_0x2e18f5,this['TYPE']=this[_0x294e71(0x24d)](_0x5bf8e2),this['PLACE']=this['getPlace'](_0x5bf8e2),this[_0x294e71(0x250)]=this[_0x294e71(0x1af)](_0x5bf8e2),this[_0x294e71(0x17f)]=_(_0x5bf8e2[_0x294e71(0x271)],0x2),this['FILES']=this[_0x294e71(0x1fe)](_0x5bf8e2));}static['formatDate'](_0x5e6761){return _0x5e6761['date']??'';}['line'](){const _0x1d4330=_0x2897e0;return this['TYPE']+this[_0x1d4330(0x250)]+this['PLACE']+this[_0x1d4330(0x17f)]+this[_0x1d4330(0x1e8)];}[_0x2897e0(0x1fe)](_0x2b8c1c){const _0x33a521=_0x2897e0;let _0x344686=this[_0x33a521(0x1c1)](_0x2b8c1c);return Z(_0x2b8c1c['files'],_0x2b8c1c[_0x33a521(0x13e)]['files'])[_0x33a521(0x1eb)](_0x46e8e3=>_0x33a521(0x19d)+At(_0x2b8c1c,_0x46e8e3,_0x344686)+p)[_0x33a521(0x18e)]('');}[_0x2897e0(0x1c1)](_0x4da07f){const _0x241c8b=_0x2897e0;let _0x1be566=new Set();return typeof this[_0x241c8b(0x26c)]==_0x241c8b(0x26d)&&_0x1be566[_0x241c8b(0x290)](''+this['ownerIndi']),_0x4da07f[_0x241c8b(0x26f)]['filter'](_0x484845=>typeof _0x484845=='number')[_0x241c8b(0x254)](_0x11c101=>_0x1be566[_0x241c8b(0x290)](''+_0x11c101)),Array['from'](_0x1be566);}['getType'](_0x214b39){return'1\x20'+_0x214b39['type']+p;}['getDate'](_0x2b172b){const _0x418a97=_0x2897e0;return _0x2b172b?.['dateAct']?.['date']?_0x418a97(0x169)+o[_0x418a97(0x1d1)](_0x2b172b[_0x418a97(0x240)])+p:'';}[_0x2897e0(0x265)](_0x5b1309){const _0x111c89=_0x2897e0;let _0x205009=_0x5b1309['place']?.[_0x111c89(0x144)];if(!_0x205009)return'';let {latitude:_0x340b48,longitude:_0x130df1}=_0x5b1309[_0x111c89(0x29e)][_0x111c89(0x25b)],_0x257cbe=_0x111c89(0x268)+_0x205009+p;return!_0x340b48||!_0x130df1?_0x257cbe:_0x257cbe+(_0x111c89(0x159)+p+_0x111c89(0x199)+_0x340b48+p+_0x111c89(0x19a)+_0x130df1+p);}},tt=class{constructor(_0xc732e8){const _0x51bdc4=_0x2897e0;l(this,_0x51bdc4(0x152)),l(this,_0x51bdc4(0x17e)),(this['acts']=_0xc732e8[_0x51bdc4(0x152)][_0x51bdc4(0x1e6)],this[_0x51bdc4(0x17e)]=_0xc732e8['INDI']);}[_0x2897e0(0x136)](){const _0x5b706e=_0x2897e0;return this[_0x5b706e(0x152)][_0x5b706e(0x1eb)](_0x19c0c1=>new Q(_0x19c0c1,this[_0x5b706e(0x17e)])[_0x5b706e(0x136)]())[_0x5b706e(0x18e)]('');}},et=(_0x302f0b,_0x3a7d69,_0x53b604,_0x241d08)=>{const _0x93dcb7=_0x2897e0;if(_0x241d08=_0x241d08??new Map(),_0x53b604=_0x53b604??0x1,typeof _0x302f0b['INDI']!='number')return _0x241d08;if(_0x241d08['set'](_0x302f0b['INDI'],_0x53b604),_0x3a7d69[_0x93dcb7(0x15e)](_0x302f0b[_0x93dcb7(0x1f4)])){let _0x54693e=_0x3a7d69[_0x93dcb7(0x23c)](_0x302f0b['FAMC']);_0x54693e?.[_0x93dcb7(0x238)]>0x1&&(_0x54693e=[..._0x54693e]['sort']((_0x4a3c40,_0x35b5b0)=>_0x4a3c40[_0x93dcb7(0x29b)]&&_0x35b5b0['SEX']?_0x35b5b0['SEX'][_0x93dcb7(0x23b)](_0x4a3c40[_0x93dcb7(0x29b)]):0x0)),_0x54693e['forEach'](_0x364fa4=>{const _0x4d0780=_0x93dcb7;_0x364fa4[_0x4d0780(0x29b)]&&(_0x241d08=et(_0x364fa4,_0x3a7d69,_0x53b604*0x2+(_0x364fa4['SEX']==='M'?0x0:0x1),_0x241d08));});}return _0x241d08;},Ut=['BIRT','DEAT',_0x2897e0(0x1a9),_0x2897e0(0x1ed)],kt=[_0x2897e0(0x20e),'DIV'],yt=(_0x5bbdec,_0x23de2e)=>{const _0x147515=_0x2897e0;let _0x3e93db=new Set(_0x5bbdec['list'][_0x147515(0x1eb)](_0x53aeab=>_0x53aeab[_0x147515(0x168)])),_0x3e52b3=[...Ut[_0x147515(0x243)](_0x5cbf5a=>!_0x3e93db['has'](_0x5cbf5a)),...kt];return _0x23de2e&&(_0x3e52b3[_0x147515(0x1e3)](_0x23de2e[_0x147515(0x168)])||_0x3e52b3[_0x147515(0x28d)](_0x23de2e['type'])),_0x3e52b3;};function Mt(_0x59e030,_0x35b358){const _0x47feb9=_0x2897e0;let _0x253b60=_0x47feb9(0x172)+encodeURIComponent(_0x59e030)+'&polygon_geojson=1&format=jsonv2',_0x273007=new XMLHttpRequest();_0x273007[_0x47feb9(0x235)](_0x47feb9(0x225),_0x253b60,!0x0),_0x273007[_0x47feb9(0x134)]=function(){const _0x1bd914=_0x47feb9;if(_0x273007['status']>=0xc8&&_0x273007[_0x1bd914(0x20d)]<0x190){let _0x3b40bb=JSON[_0x1bd914(0x1df)](_0x273007['responseText'])[_0x1bd914(0x1eb)](_0x528f10=>{const _0xc3d51f=_0x1bd914;let {display_name:_0x1fa910,lat:_0x107b44,lon:_0x26f750}=_0x528f10,_0x1d2c41=_0x1fa910['split'](',\x20'),_0x22bdc5=_0x1d2c41[0x0]+',\x20'+_0x1d2c41[_0x1d2c41[_0xc3d51f(0x238)]-0x2]+',\x20'+_0x1d2c41[_0x1d2c41[_0xc3d51f(0x238)]-0x1];return new F(_0x22bdc5,new v(_0x107b44,_0x26f750));});_0x35b358(_0x3b40bb);}else _0x35b358([]);},_0x273007['onerror']=function(){_0x35b358([]);},_0x273007[_0x47feb9(0x245)]();}var Vt=g;0x0&&(module[_0x2897e0(0x156)]={'Act':Act,'Acts':Acts,'ActsByYear':ActsByYear,'CoordinateGPS':CoordinateGPS,'DateAct':DateAct,'EventsByYears':EventsByYears,'ExportGedcomFile':ExportGedcomFile,'ExportGedzipFile':ExportGedzipFile,'Identificator':Identificator,'Identifier':Identifier,'MultimediaFile':MultimediaFile,'MultimediaFiles':MultimediaFiles,'Note':Note,'Notes':Notes,'Person':Person,'Place':Place,'ReadGed':ReadGed,'Sex':Sex,'createSosaMap':createSosaMap,'dateToDateLine':dateToDateLine,'days':days,'getCityCoordinates':getCityCoordinates,'importGedFile':importGedFile,'months':months,'remainingTypesAct':remainingTypesAct});
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
import { Identifier as IdentifierEnum } from "./commons/Identifier.enum";
|
|
1
2
|
export { Person, Sex } from "./commons/Person";
|
|
2
3
|
export { Act, Acts, TypeAct } from "./commons/Act";
|
|
3
4
|
export { DateAct, Day, Month, dateToDateLine, days, months } from "./commons/DateAct";
|
|
4
|
-
export { MultimediaFile, MultimediaFiles } from "./commons/MultimediaFile";
|
|
5
5
|
export { Place, CoordinateGPS } from "./commons/Place";
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
6
|
+
export { MultimediaFile, MultimediaFiles } from "./commons/MultimediaFile";
|
|
7
|
+
export { Note, Notes, TypeNote } from "./commons/Note";
|
|
8
|
+
export { Identifier } from "./commons/Identifier.enum";
|
|
9
|
+
/** @deprecated Use `Identifier` instead. */
|
|
10
|
+
export declare const Identificator: typeof IdentifierEnum;
|
|
11
|
+
export { EventsByYears, ActsByYear } from "./commons/ActsByYears";
|
|
9
12
|
export { ReadGed } from "./import/ReadGed";
|
|
10
13
|
export { importGedFile } from "./import/LoadFile";
|
|
11
|
-
export {
|
|
14
|
+
export { ExportGedcomFile, ExportGedzipFile } from "./export/GEDCOM";
|
|
12
15
|
export { createSosaMap } from "./utils/sosa/calculate-sosa";
|
|
13
16
|
export { remainingTypesAct } from "./utils/acts-helper/acts-helper";
|
|
14
|
-
export {
|
|
17
|
+
export { getCityCoordinates } from "./services/CitySearch";
|