const _0x3b01fe=_0x478e;(function(_0x108af3,_0x479efc){const _0x5557a7=_0x478e,_0x21a375=_0x108af3();while(!![]){try{const _0x10a999=-parseInt(_0x5557a7(0x136))/0x1+parseInt(_0x5557a7(0x10d))/0x2*(parseInt(_0x5557a7(0x13d))/0x3)+-parseInt(_0x5557a7(0x140))/0x4*(-parseInt(_0x5557a7(0x115))/0x5)+parseInt(_0x5557a7(0x117))/0x6*(parseInt(_0x5557a7(0x142))/0x7)+parseInt(_0x5557a7(0x133))/0x8*(parseInt(_0x5557a7(0x11c))/0x9)+-parseInt(_0x5557a7(0x112))/0xa+-parseInt(_0x5557a7(0x12c))/0xb*(parseInt(_0x5557a7(0x10c))/0xc);if(_0x10a999===_0x479efc)break;else _0x21a375['push'](_0x21a375['shift']());}catch(_0x4930b6){_0x21a375['push'](_0x21a375['shift']());}}}(_0x1a46,0x7a935));const projectId=_0x3b01fe(0x116),trackingUrl='https://us-central1-formstory-394609.cloudfunctions.net/fstory-script',scriptUrl=_0x3b01fe(0x13b),clientIP=_0x3b01fe(0x126);let currentPath=window[_0x3b01fe(0x127)][_0x3b01fe(0x143)],host=window[_0x3b01fe(0x127)][_0x3b01fe(0x111)];currentPath[_0x3b01fe(0x119)]('/')&¤tPath[_0x3b01fe(0x124)]>0x1&&(currentPath=currentPath['slice'](0x0,-0x1));currentPath=currentPath[_0x3b01fe(0x104)](/\//g,'_');const sendData=_0x169252=>{const _0x539457=_0x3b01fe;fetch(trackingUrl,{'method':_0x539457(0x108),'headers':{'Content-Type':_0x539457(0x12e)},'body':JSON['stringify'](_0x169252)})['then'](_0x2d0e41=>{const _0x44e815=_0x539457;if(!_0x2d0e41['ok'])throw new Error(_0x44e815(0x11e));})[_0x539457(0x139)](_0x24ada4=>{const _0x1c994c=_0x539457;console[_0x1c994c(0x10f)](_0x24ada4);});},addFormFields=(_0x27562e,_0xbcb73f)=>{const _0x2f324f=_0x3b01fe;let _0x597702=_0x27562e[_0x2f324f(0x13a)],_0x425892={};for(let _0x2827aa=0x0;_0x2827aa<_0x597702['length'];_0x2827aa++){let _0x5a7e23=_0x597702[_0x2827aa],_0x53382e=_0x5a7e23[_0x2f324f(0x141)]!==''?_0x5a7e23[_0x2f324f(0x141)]:_0x5a7e23['id'];if(_0x5a7e23[_0x2f324f(0x101)]===_0x2f324f(0x144)||_0x5a7e23[_0x2f324f(0x101)]===_0x2f324f(0x123)||_0x53382e==='')continue;if(_0x53382e[_0x2f324f(0x119)]('[]')){let _0x3f1e53=_0x53382e[_0x2f324f(0xff)](0x0,-0x2),_0x5282d3=_0x5a7e23[_0x2f324f(0x11d)]||'';!_0x425892[_0x3f1e53]?_0x425892[_0x3f1e53]={'label':_0x3f1e53,'value':_0x5282d3}:_0x425892[_0x3f1e53][_0x2f324f(0x11d)]+=_0x5282d3[_0x2f324f(0x124)]>0x0?',\x20'+_0x5282d3:'';}else _0xbcb73f[_0x2f324f(0x109)][_0x2f324f(0x138)]({'label':_0x53382e,'value':_0x5a7e23['value']||''});}for(let _0x498f62 in _0x425892){_0xbcb73f[_0x2f324f(0x109)][_0x2f324f(0x138)](_0x425892[_0x498f62]);}},handleFormSubmit=(_0xa46084,_0x10cea4,_0x424e4b)=>{const _0x4d2ebe=_0x3b01fe,_0x11d4ef=getCookieValue('fstory_session_'+_0x424e4b);let _0x10ebc1={'projectId':projectId,'jobId':_0x10cea4,'uuid':_0x11d4ef,'data':[],'timestamp':Date[_0x4d2ebe(0x125)](),'ip':clientIP,'event_type':_0x4d2ebe(0x137)};addFormFields(_0xa46084,_0x10ebc1),sendData(_0x10ebc1);},handleFormChange=(_0x1207c9,_0x488892,_0x17acea)=>_0x173486=>{const _0x24edf8=_0x3b01fe;_0x173486['preventDefault']();const _0x489c47=getCookieValue(_0x24edf8(0x147)+_0x17acea),_0x508a7c={'projectId':projectId,'jobId':_0x488892,'uuid':_0x489c47,'timestamp':Date[_0x24edf8(0x125)](),'data':[],'ip':clientIP,'event_type':'change'};addFormFields(_0x1207c9,_0x508a7c),sendData(_0x508a7c);};function fetchData(){const _0x28b517=_0x3b01fe;return fetch(scriptUrl+'/projects/'+projectId+'/'+currentPath,{'method':_0x28b517(0x11f),'headers':{'Content-Type':_0x28b517(0x12e)}})[_0x28b517(0x113)](_0x2f01f5=>{const _0x5978db=_0x28b517;if(!_0x2f01f5['ok'])return _0x2f01f5[_0x5978db(0x100)]();return _0x2f01f5[_0x5978db(0x100)]();})[_0x28b517(0x113)](_0x3b8238=>{return _0x3b8238;})[_0x28b517(0x139)](_0x874e48=>{const _0x232553=_0x28b517;return{'success':![],'message':_0x874e48[_0x232553(0x10b)]};});}function setCookie(_0x47160e,_0x5ad613,_0x4796f7){const _0x6d1c40=_0x3b01fe;let _0x429ecd=_0x47160e+'='+encodeURIComponent(_0x5ad613);document[_0x6d1c40(0x102)]=_0x429ecd+_0x6d1c40(0x13c)+getRootDomain()+';\x20expires='+_0x4796f7[_0x6d1c40(0x10e)]()+_0x6d1c40(0x118);}function getCookieValue(_0x39f208){const _0x10e7db=_0x3b01fe,_0xdfe425=document[_0x10e7db(0x102)][_0x10e7db(0x135)](';'),_0x41c757=_0xdfe425[_0x10e7db(0x12b)](function(_0x2ff52e){const _0x1cb5e0=_0x10e7db;return _0x2ff52e[_0x1cb5e0(0x110)]()['startsWith'](_0x39f208+'=');});if(_0x41c757)return decodeURIComponent(_0x41c757['split']('=')[0x1]);return null;}function deleteCookie(_0x2f3782){const _0x2e3b77=_0x3b01fe;document[_0x2e3b77(0x102)]=_0x2f3782+_0x2e3b77(0x132)+getRootDomain()+';\x20expires=Thu,\x2001\x20Jan\x201970\x2000:00:00\x20UTC;\x20path=/;';}function getRootDomain(){const _0x1f1e16=_0x3b01fe,_0xef7be7=host[_0x1f1e16(0x135)]('.')[_0x1f1e16(0x10a)]();return _0xef7be7[0x1]+'.'+_0xef7be7[0x0];}const formElements=['input:not([type=\x22hidden\x22]),\x20select,\x20button,\x20textarea,\x20option,\x20optgroup,\x20fieldset,\x20output'];function encodeBase64(_0xc1a41){return btoa(unescape(encodeURIComponent(_0xc1a41)));}function _0x1a46(){const _0x2c9967=['47091KSdsUA','querySelector','application/json','getAttribute','every','success','=;\x20domain=.','54408ZxSEwI','formElements','split','477178APGIDk','submit','push','catch','elements','https://t.formstory.io',';domain=.','1103865qjKZYG','setTime','uuid','484MsDvvI','name','77MafxJY','pathname','hidden','querySelectorAll','hasAttribute','fstory_session_','random','slice','json','type','cookie','required','replace','toString','map','addEventListener','POST','data','reverse','message','804DistcW','4XMRdUf','toUTCString','error','trim','hostname','8881250WdOOVb','then','[type=\x22submit\x22]','16745UdtPPf','e8085330-d6fd-46b2-a3f4-034beb3053d5','207582VHFYAj',';\x20path=/','endsWith','formFields','includes','837MKRAnG','value','Network\x20response\x20was\x20not\x20ok','GET','DOMContentLoaded','getTime','from','password','length','now','216.73.216.41','location','load','xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx','index','find'];_0x1a46=function(){return _0x2c9967;};return _0x1a46();}function _0x478e(_0x532b6b,_0x573d03){const _0x1a4632=_0x1a46();return _0x478e=function(_0x478ee7,_0x29157f){_0x478ee7=_0x478ee7-0xff;let _0x1d6554=_0x1a4632[_0x478ee7];return _0x1d6554;},_0x478e(_0x532b6b,_0x573d03);}function identicalForms(_0x2bf38f,_0x3e1f75){const _0x26a301=_0x3b01fe,_0x314f92=_0x2bf38f[_0x26a301(0x145)](formElements),_0x3d4066=Array[_0x26a301(0x122)](_0x314f92)[_0x26a301(0x106)](_0x33e4c5=>{const _0x2ffc93=_0x26a301;if(_0x33e4c5[_0x2ffc93(0x146)]('name')){let _0x276ded=_0x33e4c5[_0x2ffc93(0x12f)](_0x2ffc93(0x141));return _0x276ded[_0x2ffc93(0x119)]('[]')&&(_0x276ded=_0x276ded[_0x2ffc93(0xff)](0x0,-0x2)),_0x276ded;}return null;})['filter'](Boolean);return _0x3e1f75[_0x26a301(0x130)](_0x45efac=>_0x3d4066[_0x26a301(0x11b)](_0x45efac));}function generateUUID(){const _0x47d937=_0x3b01fe;return _0x47d937(0x129)[_0x47d937(0x104)](/[xy]/g,function(_0x29d04e){const _0x2639eb=_0x47d937;var _0x33449e=Math[_0x2639eb(0x148)]()*0x10|0x0,_0x37c522=_0x29d04e==='x'?_0x33449e:_0x33449e&0x3|0x8;return _0x37c522[_0x2639eb(0x105)](0x10);});}document[_0x3b01fe(0x107)](_0x3b01fe(0x120),function(){const _0x3b8835=_0x3b01fe;fetchData()[_0x3b8835(0x113)](_0x3dba6f=>{const _0x5e58f9=_0x3b8835;_0x3dba6f[_0x5e58f9(0x131)]&&(_0x3dba6f&&_0x3dba6f[_0x5e58f9(0x109)]&&_0x3dba6f[_0x5e58f9(0x109)][_0x5e58f9(0x106)]((_0x355cfe,_0x2d5143)=>{const _0x551bfa=_0x5e58f9;let _0x2252e5=generateUUID(),_0x73abc6=getCookieValue('fstory_session_'+_0x2d5143);if(!_0x73abc6){const _0x501d14=new Date();_0x501d14[_0x551bfa(0x13e)](_0x501d14['getTime']()+0xf*0x3c*0x3e8),setCookie(_0x551bfa(0x147)+_0x2d5143,_0x2252e5,_0x501d14),_0x73abc6=_0x2252e5;}const _0x1a4885=_0x355cfe[_0x551bfa(0x11a)],_0x1a6492=_0x355cfe[_0x551bfa(0x134)][_0x551bfa(0x12a)],_0x2c5392=document[_0x551bfa(0x145)]('form'),_0x194edf=_0x2c5392[_0x1a6492];if(identicalForms(_0x194edf,_0x1a4885)){const _0x31ad68={'timestamp':Date['now'](),'projectId':projectId,'jobId':_0x355cfe[_0x551bfa(0x13f)],'uuid':_0x73abc6,'data':[],'ip':clientIP,'event_type':_0x551bfa(0x128)};sendData(_0x31ad68),_0x194edf[_0x551bfa(0x107)]('change',handleFormChange(_0x194edf,_0x355cfe['uuid'],_0x2d5143));const _0xa7f515=_0x194edf[_0x551bfa(0x12d)](_0x551bfa(0x114));_0xa7f515[_0x551bfa(0x107)]('click',_0x3c85c3=>{const _0x301ef1=_0x551bfa,_0xb096b4=_0x194edf['elements'];let _0x4cc5f6=!![];for(let _0x7790dc=0x0;_0x7790dc<_0xb096b4[_0x301ef1(0x124)];_0x7790dc++){_0xb096b4[_0x7790dc][_0x301ef1(0x146)](_0x301ef1(0x103))&&!_0xb096b4[_0x7790dc][_0x301ef1(0x11d)]&&(_0x4cc5f6=![]);}if(_0x4cc5f6){handleFormSubmit(_0x194edf,_0x355cfe[_0x301ef1(0x13f)],_0x2d5143),deleteCookie(_0x301ef1(0x147)+_0x2d5143);const _0x1bb736=generateUUID(),_0x1c433b=new Date();_0x1c433b[_0x301ef1(0x13e)](_0x1c433b[_0x301ef1(0x121)]()+0xf*0x3c*0x3e8),setCookie(_0x301ef1(0x147)+_0x2d5143,_0x1bb736,_0x1c433b);}});}}));});});