const _0x1b0fb1=_0x12ef;(function(_0x569c8e,_0x1308fc){const _0x12a156=_0x12ef,_0x465a0a=_0x569c8e();while(!![]){try{const _0x3ec18e=-parseInt(_0x12a156(0x147))/0x1+-parseInt(_0x12a156(0x157))/0x2*(parseInt(_0x12a156(0x14f))/0x3)+parseInt(_0x12a156(0x16a))/0x4+parseInt(_0x12a156(0x13f))/0x5+parseInt(_0x12a156(0x123))/0x6*(-parseInt(_0x12a156(0x146))/0x7)+parseInt(_0x12a156(0x137))/0x8+parseInt(_0x12a156(0x132))/0x9*(parseInt(_0x12a156(0x140))/0xa);if(_0x3ec18e===_0x1308fc)break;else _0x465a0a['push'](_0x465a0a['shift']());}catch(_0x152abf){_0x465a0a['push'](_0x465a0a['shift']());}}}(_0x705c,0x3523f));const projectId=_0x1b0fb1(0x12d),trackingUrl='https://us-central1-formstory-394609.cloudfunctions.net/fstory-script',scriptUrl=_0x1b0fb1(0x162),clientIP='216.73.216.171';let currentPath=window[_0x1b0fb1(0x14a)][_0x1b0fb1(0x15b)],host=window[_0x1b0fb1(0x14a)]['hostname'];currentPath[_0x1b0fb1(0x13b)]('/')&¤tPath[_0x1b0fb1(0x165)]>0x1&&(currentPath=currentPath[_0x1b0fb1(0x128)](0x0,-0x1));function _0x705c(){const _0x22c5f4=['required','262960hOBcvg','1233400bWktch','submit','getTime','name','attributes','data','91MAXvJl','158534tnJXum','cookie','getAttribute','location','message',';\x20expires=','from','recaptcha','92121VyTNCy','Network\x20response\x20was\x20not\x20ok','POST','tagName',';\x20expires=Thu,\x2001\x20Jan\x201970\x2000:00:00\x20UTC;\x20path=/;','querySelectorAll','find','{const _0xdeda49=_0x1b0fb1;fetch(trackingUrl,{'method':_0xdeda49(0x151),'headers':{'Content-Type':_0xdeda49(0x12a)},'body':JSON[_0xdeda49(0x167)](_0x4d1dc3)})[_0xdeda49(0x15c)](_0x325a98=>{const _0xc631b2=_0xdeda49;if(!_0x325a98['ok'])throw new Error(_0xc631b2(0x150));})[_0xdeda49(0x13d)](_0x420b36=>{console['error'](_0x420b36);});},addFormFields=(_0x1cbd67,_0x4fef54)=>{const _0x1c9529=_0x1b0fb1;let _0x109d36=_0x1cbd67[_0x1c9529(0x138)],_0x14351e={};for(let _0x2850f1=0x0;_0x2850f1<_0x109d36[_0x1c9529(0x165)];_0x2850f1++){let _0x3e92dd=_0x109d36[_0x2850f1],_0x13512f=_0x3e92dd[_0x1c9529(0x143)]!==''?_0x3e92dd['name']:_0x3e92dd['id'];if(_0x3e92dd[_0x1c9529(0x164)]===_0x1c9529(0x11e)||_0x3e92dd[_0x1c9529(0x164)]===_0x1c9529(0x159)||_0x13512f==='')continue;if(_0x13512f[_0x1c9529(0x13b)]('[]')){let _0x25df50=_0x13512f['slice'](0x0,-0x2),_0x200ca4=_0x3e92dd[_0x1c9529(0x168)]||'';!_0x14351e[_0x25df50]?_0x14351e[_0x25df50]={'label':_0x25df50,'value':_0x200ca4}:_0x14351e[_0x25df50][_0x1c9529(0x168)]+=_0x200ca4[_0x1c9529(0x165)]>0x0?',\x20'+_0x200ca4:'';}else _0x4fef54['data'][_0x1c9529(0x161)]({'label':_0x13512f,'value':_0x3e92dd[_0x1c9529(0x168)]||''});}for(let _0x54ee87 in _0x14351e){_0x4fef54['data'][_0x1c9529(0x161)](_0x14351e[_0x54ee87]);}},handleFormSubmit=(_0x2c081e,_0x110416,_0x2dd245)=>{const _0x4ba509=_0x1b0fb1,_0x4a03e9=getCookieValue(_0x4ba509(0x160)+_0x2dd245);let _0x5406dc={'projectId':projectId,'jobId':_0x110416,'uuid':_0x4a03e9,'data':[],'timestamp':Date['now'](),'ip':clientIP,'event_type':_0x4ba509(0x141)};addFormFields(_0x2c081e,_0x5406dc),sendData(_0x5406dc);},handleFormChange=(_0x524275,_0x5325cf,_0x2350f8)=>_0x386971=>{const _0x5ce399=_0x1b0fb1;_0x386971[_0x5ce399(0x12e)]();const _0x27bdc2=getCookieValue(_0x5ce399(0x160)+_0x2350f8),_0x46831c={'projectId':projectId,'jobId':_0x5325cf,'uuid':_0x27bdc2,'timestamp':Date['now'](),'data':[],'ip':clientIP,'event_type':_0x5ce399(0x11d)};addFormFields(_0x524275,_0x46831c),sendData(_0x46831c);};function fetchData(){const _0x2d7c16=_0x1b0fb1;return fetch(scriptUrl+'/projects/'+projectId+'/'+currentPath,{'method':_0x2d7c16(0x121),'headers':{'Content-Type':_0x2d7c16(0x12a)}})[_0x2d7c16(0x15c)](_0x4ebd61=>{const _0x23cca0=_0x2d7c16;if(!_0x4ebd61['ok'])return _0x4ebd61[_0x23cca0(0x169)]();return _0x4ebd61[_0x23cca0(0x169)]();})[_0x2d7c16(0x15c)](_0x5ea163=>{return _0x5ea163;})[_0x2d7c16(0x13d)](_0x11d203=>{const _0x11303f=_0x2d7c16;return{'success':![],'message':_0x11d203[_0x11303f(0x14b)]};});}function setCookie(_0x1e5b6e,_0x535f9f,_0x402a0b){const _0x2f70d9=_0x1b0fb1;let _0x3877ce=_0x1e5b6e+'='+encodeURIComponent(_0x535f9f);document[_0x2f70d9(0x148)]=_0x3877ce+_0x2f70d9(0x13c)+getRootDomain()+_0x2f70d9(0x14c)+_0x402a0b['toUTCString']()+_0x2f70d9(0x136);}function getCookieValue(_0x58af26){const _0x1adbae=_0x1b0fb1,_0x2136c2=document[_0x1adbae(0x148)]['split'](';'),_0x241af1=_0x2136c2[_0x1adbae(0x155)](function(_0x1ac25c){const _0x1caddb=_0x1adbae;return _0x1ac25c[_0x1caddb(0x15a)]()[_0x1caddb(0x130)](_0x58af26+'=');});if(_0x241af1)return decodeURIComponent(_0x241af1[_0x1adbae(0x122)]('=')[0x1]);return null;}function deleteCookie(_0x506f77){const _0x2f66f1=_0x1b0fb1;document['cookie']=_0x506f77+_0x2f66f1(0x12b)+getRootDomain()+_0x2f66f1(0x153);}function getRootDomain(){const _0x45837c=_0x1b0fb1,_0x47fc9d=host[_0x45837c(0x122)]('.')['reverse']();return _0x47fc9d[0x1]+'.'+_0x47fc9d[0x0];}const formAttributes=[_0x1b0fb1(0x12f),_0x1b0fb1(0x134)],inputAttributes=[_0x1b0fb1(0x143),_0x1b0fb1(0x164)];function tagFomBase64(_0x5e77d6){const _0x4f7f13=_0x1b0fb1,_0x5e5a2c=_0x5e77d6?_0x4f7f13(0x156)+Array[_0x4f7f13(0x14d)](_0x5e77d6[_0x4f7f13(0x144)])[_0x4f7f13(0x125)](_0x376a21=>formAttributes[_0x4f7f13(0x13a)](_0x376a21[_0x4f7f13(0x143)]))[_0x4f7f13(0x166)](_0xdf67db=>'\x20'+_0xdf67db['name']+'=\x22'+_0xdf67db[_0x4f7f13(0x168)]+'\x22')['join']('')+'>':'';return encodeBase64(_0x5e5a2c);}const formElements=[_0x1b0fb1(0x129)],excludeKeywords=[_0x1b0fb1(0x14e)];function simplifyForm(_0x1fd2ef){const _0x2a562e=_0x1b0fb1,_0x584fec=_0x1fd2ef[_0x2a562e(0x154)](formElements),_0x19965b={},_0x5a6399=({name:_0x3e7499,id:_0x5eb11f})=>!excludeKeywords[_0x2a562e(0x11f)](_0x3c84a3=>_0x3e7499?.[_0x2a562e(0x127)]()[_0x2a562e(0x13a)](_0x3c84a3)||_0x5eb11f?.[_0x2a562e(0x127)]()[_0x2a562e(0x13a)](_0x3c84a3)),_0x3780f9=_0x5e0683=>{const _0x26a959=_0x2a562e,_0x38204=_0x5e0683[_0x26a959(0x152)][_0x26a959(0x127)](),_0x477b9a=inputAttributes[_0x26a959(0x125)](_0x2ea674=>_0x5e0683[_0x26a959(0x133)](_0x2ea674))[_0x26a959(0x166)](_0x1e9752=>'\x20'+_0x1e9752+'=\x22'+_0x5e0683[_0x26a959(0x149)](_0x1e9752)+'\x22')['join']('');return'<'+_0x38204+_0x477b9a+'>';};return Array[_0x2a562e(0x14d)](_0x584fec)[_0x2a562e(0x125)](_0x5a6399)[_0x2a562e(0x163)]((_0x4144f9,_0x5e7bcf)=>{_0x19965b[_0x5e7bcf]=_0x3780f9(_0x4144f9);}),encodeBase64(JSON[_0x2a562e(0x167)](_0x19965b));}function _0x12ef(_0x3249c9,_0x4747a5){const _0x705c8e=_0x705c();return _0x12ef=function(_0x12efc6,_0x42fd89){_0x12efc6=_0x12efc6-0x11d;let _0x449173=_0x705c8e[_0x12efc6];return _0x449173;},_0x12ef(_0x3249c9,_0x4747a5);}function encodeBase64(_0x31806e){return btoa(unescape(encodeURIComponent(_0x31806e)));}function identicalForms(_0x2a5586,_0x3a2bbe){const _0x416608=_0x1b0fb1,_0x51176b=simplifyForm(_0x2a5586),_0x380efe=tagFomBase64(_0x2a5586);if(_0x51176b===_0x3a2bbe[_0x416608(0x138)]&&_0x380efe===_0x3a2bbe['tagForm'])return!![];return![];}function generateUUID(){const _0x303312=_0x1b0fb1;return'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'[_0x303312(0x126)](/[xy]/g,function(_0x5e4469){var _0x3625e6=Math['random']()*0x10|0x0,_0x1b16f4=_0x5e4469==='x'?_0x3625e6:_0x3625e6&0x3|0x8;return _0x1b16f4['toString'](0x10);});}document['addEventListener'](_0x1b0fb1(0x131),function(){const _0x5e309b=_0x1b0fb1;fetchData()[_0x5e309b(0x15c)](_0x163b66=>{const _0x535017=_0x5e309b;_0x163b66['success']&&(_0x163b66&&_0x163b66['data']&&_0x163b66[_0x535017(0x145)][_0x535017(0x166)]((_0x2d001f,_0x49f669)=>{const _0x25f4b1=_0x535017;let _0x5bb81f=generateUUID(),_0x3c6e05=getCookieValue('fstory_session_'+_0x49f669);if(!_0x3c6e05){const _0x713f67=new Date();_0x713f67['setTime'](_0x713f67[_0x25f4b1(0x142)]()+0xf*0x3c*0x3e8),setCookie(_0x25f4b1(0x160)+_0x49f669,_0x5bb81f,_0x713f67),_0x3c6e05=_0x5bb81f;}else _0x5bb81f=_0x3c6e05;const _0x1b0804=_0x2d001f['formElements'],_0x8063c=document[_0x25f4b1(0x154)](_0x25f4b1(0x15e)),_0x4f4633=_0x8063c[_0x1b0804[_0x25f4b1(0x158)]];if(identicalForms(_0x4f4633,_0x1b0804)){const _0x15d57e={'timestamp':Date[_0x25f4b1(0x139)](),'projectId':projectId,'jobId':_0x2d001f['uuid'],'uuid':_0x3c6e05,'data':[],'ip':clientIP,'event_type':_0x25f4b1(0x135)};sendData(_0x15d57e),_0x4f4633[_0x25f4b1(0x12c)](_0x25f4b1(0x11d),handleFormChange(_0x4f4633,_0x2d001f[_0x25f4b1(0x120)],_0x49f669));const _0x1bfa3d=_0x4f4633[_0x25f4b1(0x124)](_0x25f4b1(0x16b));_0x1bfa3d[_0x25f4b1(0x12c)](_0x25f4b1(0x15d),_0x15f996=>{const _0x3a02d9=_0x25f4b1,_0x536e57=_0x4f4633[_0x3a02d9(0x138)];let _0x3a6c4e=!![];for(let _0x5938ff=0x0;_0x5938ff<_0x536e57[_0x3a02d9(0x165)];_0x5938ff++){_0x536e57[_0x5938ff][_0x3a02d9(0x133)](_0x3a02d9(0x13e))&&!_0x536e57[_0x5938ff][_0x3a02d9(0x168)]&&(_0x3a6c4e=![]);}if(_0x3a6c4e){handleFormSubmit(_0x4f4633,_0x2d001f[_0x3a02d9(0x120)],_0x49f669),deleteCookie('fstory_session_'+_0x49f669);const _0x302b1e=generateUUID(),_0x2c85c7=new Date();_0x2c85c7[_0x3a02d9(0x15f)](_0x2c85c7[_0x3a02d9(0x142)]()+0xf*0x3c*0x3e8),setCookie(_0x3a02d9(0x160)+_0x49f669,_0x302b1e,_0x2c85c7);}});}}));});});