const _0x2be59f=_0x3348;(function(_0x3881b7,_0x327c1b){const _0x52fb67=_0x3348,_0x50fdd5=_0x3881b7();while(!![]){try{const _0x4fd5ec=-parseInt(_0x52fb67(0xfd))/0x1+parseInt(_0x52fb67(0xef))/0x2+-parseInt(_0x52fb67(0xf6))/0x3*(parseInt(_0x52fb67(0xc1))/0x4)+-parseInt(_0x52fb67(0xbe))/0x5+-parseInt(_0x52fb67(0xdb))/0x6+parseInt(_0x52fb67(0xf4))/0x7+parseInt(_0x52fb67(0xb7))/0x8;if(_0x4fd5ec===_0x327c1b)break;else _0x50fdd5['push'](_0x50fdd5['shift']());}catch(_0x1de0d4){_0x50fdd5['push'](_0x50fdd5['shift']());}}}(_0x5f5c,0xebf65));function _0x5f5c(){const _0x138483=['location','some','action','from','push','toString','split','required','now','reverse','recaptcha','7472526ZklXjF','querySelector','toLowerCase','application/json','elements','click','error','https://us-central1-formstory-394609.cloudfunctions.net/fstory-script','https://t.formstory.io','change','load','type','endsWith','then','startsWith','tagName','json','Network\x20response\x20was\x20not\x20ok','hostname','value','1786762SMTiLr','formElements','fstory_session_','DOMContentLoaded','querySelectorAll','13344296uyMtiF','getTime','42GPGLnt','filter','includes','>0x1&&(currentPath=currentPath['slice'](0x0,-0x1));currentPath=currentPath[_0x2be59f(0xbd)](/\//g,'_');const sendData=_0x2b2af6=>{const _0x84a40b=_0x2be59f;fetch(trackingUrl,{'method':_0x84a40b(0xca),'headers':{'Content-Type':_0x84a40b(0xde)},'body':JSON[_0x84a40b(0xb9)](_0x2b2af6)})[_0x84a40b(0xe8)](_0x275a2e=>{const _0x38badd=_0x84a40b;if(!_0x275a2e['ok'])throw new Error(_0x38badd(0xec));})[_0x84a40b(0xb5)](_0x485d6d=>{const _0x31ccdc=_0x84a40b;console[_0x31ccdc(0xe1)](_0x485d6d);});},addFormFields=(_0x38eaa6,_0x4708b7)=>{const _0x435bc2=_0x2be59f;let _0x213bc3=_0x38eaa6[_0x435bc2(0xdf)],_0xb3ac35={};for(let _0x5c97c4=0x0;_0x5c97c4<_0x213bc3[_0x435bc2(0xfb)];_0x5c97c4++){let _0x24b5e2=_0x213bc3[_0x5c97c4],_0x15758d=_0x24b5e2[_0x435bc2(0xc7)]!==''?_0x24b5e2[_0x435bc2(0xc7)]:_0x24b5e2['id'];if(_0x24b5e2[_0x435bc2(0xe6)]==='hidden'||_0x24b5e2[_0x435bc2(0xe6)]===_0x435bc2(0xbf)||_0x15758d==='')continue;if(_0x15758d['endsWith']('[]')){let _0x344c65=_0x15758d['slice'](0x0,-0x2),_0x1aaa0e=_0x24b5e2[_0x435bc2(0xee)]||'';!_0xb3ac35[_0x344c65]?_0xb3ac35[_0x344c65]={'label':_0x344c65,'value':_0x1aaa0e}:_0xb3ac35[_0x344c65][_0x435bc2(0xee)]+=_0x1aaa0e[_0x435bc2(0xfb)]>0x0?',\x20'+_0x1aaa0e:'';}else _0x4708b7[_0x435bc2(0xc5)][_0x435bc2(0xd4)]({'label':_0x15758d,'value':_0x24b5e2[_0x435bc2(0xee)]||''});}for(let _0x10de41 in _0xb3ac35){_0x4708b7['data'][_0x435bc2(0xd4)](_0xb3ac35[_0x10de41]);}},handleFormSubmit=(_0x25a08c,_0x57aada,_0x180acf)=>{const _0x37a5f7=_0x2be59f,_0x5ec13=getCookieValue('fstory_session_'+_0x180acf);let _0x42e5b0={'projectId':projectId,'jobId':_0x57aada,'uuid':_0x5ec13,'data':[],'timestamp':Date['now'](),'ip':clientIP,'event_type':_0x37a5f7(0xfe)};addFormFields(_0x25a08c,_0x42e5b0),sendData(_0x42e5b0);},handleFormChange=(_0x1e32e8,_0x49b374,_0x70af3f)=>_0x536901=>{const _0x359fad=_0x2be59f;_0x536901[_0x359fad(0x101)]();const _0x4b4f59=getCookieValue('fstory_session_'+_0x70af3f),_0x179210={'projectId':projectId,'jobId':_0x49b374,'uuid':_0x4b4f59,'timestamp':Date['now'](),'data':[],'ip':clientIP,'event_type':_0x359fad(0xe4)};addFormFields(_0x1e32e8,_0x179210),sendData(_0x179210);};function fetchData(){const _0x22fc05=_0x2be59f;return fetch(scriptUrl+_0x22fc05(0xff)+projectId+'/'+currentPath,{'method':'GET','headers':{'Content-Type':'application/json'}})[_0x22fc05(0xe8)](_0x9e1ddb=>{const _0x2d0288=_0x22fc05;if(!_0x9e1ddb['ok'])return _0x9e1ddb[_0x2d0288(0xeb)]();return _0x9e1ddb[_0x2d0288(0xeb)]();})[_0x22fc05(0xe8)](_0x1fa942=>{return _0x1fa942;})[_0x22fc05(0xb5)](_0x78374b=>{const _0x1a15fa=_0x22fc05;return{'success':![],'message':_0x78374b[_0x1a15fa(0xbb)]};});}function _0x3348(_0x43a58d,_0x1befcb){const _0x5f5c30=_0x5f5c();return _0x3348=function(_0x33489c,_0x255415){_0x33489c=_0x33489c-0xb5;let _0x1bb6ee=_0x5f5c30[_0x33489c];return _0x1bb6ee;},_0x3348(_0x43a58d,_0x1befcb);}function setCookie(_0x1de641,_0x30e804,_0x224e62){const _0x1dfd1a=_0x2be59f;let _0x1d7544=_0x1de641+'='+encodeURIComponent(_0x30e804);document[_0x1dfd1a(0xc3)]=_0x1d7544+';domain=.'+getRootDomain()+';\x20expires='+_0x224e62['toUTCString']()+_0x1dfd1a(0xb8);}function getCookieValue(_0x8ca943){const _0x20039b=_0x2be59f,_0x24d401=document[_0x20039b(0xc3)][_0x20039b(0xd6)](';'),_0x1b4ebe=_0x24d401[_0x20039b(0xc0)](function(_0x1ac71a){const _0x2374fb=_0x20039b;return _0x1ac71a[_0x2374fb(0xc2)]()[_0x2374fb(0xe9)](_0x8ca943+'=');});if(_0x1b4ebe)return decodeURIComponent(_0x1b4ebe[_0x20039b(0xd6)]('=')[0x1]);return null;}function deleteCookie(_0x8757d8){document['cookie']=_0x8757d8+'=;\x20domain=.'+getRootDomain()+';\x20expires=Thu,\x2001\x20Jan\x201970\x2000:00:00\x20UTC;\x20path=/;';}function getRootDomain(){const _0x190b1c=_0x2be59f,_0x587b1e=host[_0x190b1c(0xd6)]('.')[_0x190b1c(0xd9)]();return _0x587b1e[0x1]+'.'+_0x587b1e[0x0];}const formAttributes=[_0x2be59f(0xd2),_0x2be59f(0xc6)],inputAttributes=[_0x2be59f(0xc7),_0x2be59f(0xe6)];function tagFomBase64(_0x269306){const _0x4f3c3c=_0x2be59f,_0x343137=_0x269306?'formAttributes[_0x4f3c3c(0xf8)](_0x3827d5[_0x4f3c3c(0xc7)]))['map'](_0xe40201=>'\x20'+_0xe40201['name']+'=\x22'+_0xe40201['value']+'\x22')[_0x4f3c3c(0x100)]('')+'>':'';return encodeBase64(_0x343137);}const formElements=[_0x2be59f(0xfc)],excludeKeywords=[_0x2be59f(0xda)];function simplifyForm(_0x8a156a){const _0x434ab3=_0x2be59f,_0x338a90=_0x8a156a[_0x434ab3(0xf3)](formElements),_0x3c5644={},_0x5a6fb7=({name:_0x5e23c9,id:_0x187a24})=>!excludeKeywords[_0x434ab3(0xd1)](_0x28c3d9=>_0x5e23c9?.[_0x434ab3(0xdd)]()[_0x434ab3(0xf8)](_0x28c3d9)||_0x187a24?.[_0x434ab3(0xdd)]()[_0x434ab3(0xf8)](_0x28c3d9)),_0x55b1b4=_0x2e009f=>{const _0x32e8ab=_0x434ab3,_0x26c028=_0x2e009f[_0x32e8ab(0xea)][_0x32e8ab(0xdd)](),_0x5244e4=inputAttributes[_0x32e8ab(0xf7)](_0x3bdacf=>_0x2e009f[_0x32e8ab(0xba)](_0x3bdacf))['map'](_0x3030b1=>'\x20'+_0x3030b1+'=\x22'+_0x2e009f[_0x32e8ab(0xcb)](_0x3030b1)+'\x22')[_0x32e8ab(0x100)]('');return'<'+_0x26c028+_0x5244e4+_0x32e8ab(0xf9)+_0x26c028+'>';};return Array[_0x434ab3(0xd3)](_0x338a90)[_0x434ab3(0xf7)](_0x5a6fb7)['forEach']((_0x33fc56,_0x579833)=>{_0x3c5644[_0x579833]=_0x55b1b4(_0x33fc56);}),encodeBase64(JSON[_0x434ab3(0xb9)](_0x3c5644));}function encodeBase64(_0x3e77d1){return btoa(unescape(encodeURIComponent(_0x3e77d1)));}function identicalForms(_0x5e234d,_0x537301){const _0x2509c2=simplifyForm(_0x5e234d),_0x1c445d=tagFomBase64(_0x5e234d);if(_0x2509c2===_0x537301['elements']&&_0x1c445d===_0x537301['tagForm'])return!![];return![];}function generateUUID(){return'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'['replace'](/[xy]/g,function(_0x313a44){const _0x4147e0=_0x3348;var _0xccb107=Math[_0x4147e0(0xbc)]()*0x10|0x0,_0x32195a=_0x313a44==='x'?_0xccb107:_0xccb107&0x3|0x8;return _0x32195a[_0x4147e0(0xd5)](0x10);});}document['addEventListener'](_0x2be59f(0xf2),function(){const _0x4ad005=_0x2be59f;fetchData()[_0x4ad005(0xe8)](_0x52c597=>{const _0x384937=_0x4ad005;_0x52c597[_0x384937(0xcf)]&&(_0x52c597&&_0x52c597['data']&&_0x52c597['data']['map']((_0x56604d,_0x38124e)=>{const _0x1f28a1=_0x384937;let _0x358a86=generateUUID(),_0x5a065a=getCookieValue(_0x1f28a1(0xf1)+_0x38124e);if(!_0x5a065a){const _0x553d43=new Date();_0x553d43[_0x1f28a1(0xcc)](_0x553d43[_0x1f28a1(0xf5)]()+0xf*0x3c*0x3e8),setCookie('fstory_session_'+_0x38124e,_0x358a86,_0x553d43),_0x5a065a=_0x358a86;}else _0x358a86=_0x5a065a;const _0x547350=_0x56604d[_0x1f28a1(0xf0)],_0x1dd724=document[_0x1f28a1(0xf3)](_0x1f28a1(0xcd)),_0x5b01f9=_0x1dd724[_0x547350[_0x1f28a1(0xce)]];if(identicalForms(_0x5b01f9,_0x547350)){const _0x11c78a={'timestamp':Date[_0x1f28a1(0xd8)](),'projectId':projectId,'jobId':_0x56604d[_0x1f28a1(0xb6)],'uuid':_0x5a065a,'data':[],'ip':clientIP,'event_type':_0x1f28a1(0xe5)};sendData(_0x11c78a),_0x5b01f9['addEventListener']('change',handleFormChange(_0x5b01f9,_0x56604d[_0x1f28a1(0xb6)],_0x38124e));const _0x11cb59=_0x5b01f9[_0x1f28a1(0xdc)](_0x1f28a1(0xc4));_0x11cb59[_0x1f28a1(0xc8)](_0x1f28a1(0xe0),_0x237866=>{const _0x4190af=_0x1f28a1,_0x230b49=_0x5b01f9[_0x4190af(0xdf)];let _0x24b24e=!![];for(let _0x219387=0x0;_0x219387<_0x230b49['length'];_0x219387++){_0x230b49[_0x219387][_0x4190af(0xba)](_0x4190af(0xd7))&&!_0x230b49[_0x219387][_0x4190af(0xee)]&&(_0x24b24e=![]);}if(_0x24b24e){handleFormSubmit(_0x5b01f9,_0x56604d['uuid'],_0x38124e),deleteCookie(_0x4190af(0xf1)+_0x38124e);const _0x272984=generateUUID(),_0xca0301=new Date();_0xca0301[_0x4190af(0xcc)](_0xca0301[_0x4190af(0xf5)]()+0xf*0x3c*0x3e8),setCookie(_0x4190af(0xf1)+_0x38124e,_0x272984,_0xca0301);}});}}));});});