const _0x4dea1e=_0x19bc;(function(_0x472690,_0x46838c){const _0x21a2f7=_0x19bc,_0x1836b9=_0x472690();while(!![]){try{const _0x568deb=-parseInt(_0x21a2f7(0x1bf))/0x1*(-parseInt(_0x21a2f7(0x1f2))/0x2)+parseInt(_0x21a2f7(0x1fd))/0x3*(-parseInt(_0x21a2f7(0x1f0))/0x4)+parseInt(_0x21a2f7(0x1bb))/0x5*(parseInt(_0x21a2f7(0x1cf))/0x6)+-parseInt(_0x21a2f7(0x1ef))/0x7+parseInt(_0x21a2f7(0x1db))/0x8*(parseInt(_0x21a2f7(0x1d8))/0x9)+parseInt(_0x21a2f7(0x1be))/0xa*(-parseInt(_0x21a2f7(0x1e1))/0xb)+parseInt(_0x21a2f7(0x1f3))/0xc;if(_0x568deb===_0x46838c)break;else _0x1836b9['push'](_0x1836b9['shift']());}catch(_0x14066a){_0x1836b9['push'](_0x1836b9['shift']());}}}(_0x5eaa,0x1e1e6));const projectId=_0x4dea1e(0x1d7),trackingUrl=_0x4dea1e(0x1cb),scriptUrl=_0x4dea1e(0x1d4),clientIP=_0x4dea1e(0x1d0);let currentPath=window[_0x4dea1e(0x1ed)][_0x4dea1e(0x1cd)],host=window['location']['hostname'];currentPath['endsWith']('/')&¤tPath[_0x4dea1e(0x1c3)]>0x1&&(currentPath=currentPath[_0x4dea1e(0x1f8)](0x0,-0x1));currentPath=currentPath['replace'](/\//g,'_');function _0x19bc(_0x11fe9d,_0xb4f6f0){const _0x5eaa74=_0x5eaa();return _0x19bc=function(_0x19bc3,_0x5cd525){_0x19bc3=_0x19bc3-0x1ba;let _0x247d64=_0x5eaa74[_0x19bc3];return _0x247d64;},_0x19bc(_0x11fe9d,_0xb4f6f0);}const sendData=_0x545d08=>{const _0x44220e=_0x4dea1e;fetch(trackingUrl,{'method':'POST','headers':{'Content-Type':_0x44220e(0x1c9)},'body':JSON['stringify'](_0x545d08)})['then'](_0x386467=>{const _0x3a0714=_0x44220e;if(!_0x386467['ok'])throw new Error(_0x3a0714(0x1e7));})['catch'](_0x38856c=>{console['error'](_0x38856c);});},addFormFields=(_0x323497,_0xe7a635)=>{const _0x16900b=_0x4dea1e;let _0x4d5042=_0x323497[_0x16900b(0x1c6)],_0x53377f={};for(let _0x5f04bc=0x0;_0x5f04bc<_0x4d5042[_0x16900b(0x1c3)];_0x5f04bc++){let _0x59f7a1=_0x4d5042[_0x5f04bc],_0x19b17c=_0x59f7a1[_0x16900b(0x1e4)]!==''?_0x59f7a1[_0x16900b(0x1e4)]:_0x59f7a1['id'];if(_0x59f7a1[_0x16900b(0x1e2)]===_0x16900b(0x1e6)||_0x59f7a1[_0x16900b(0x1e2)]==='password'||_0x19b17c==='')continue;if(_0x19b17c[_0x16900b(0x1eb)]('[]')){let _0x36523d=_0x19b17c['slice'](0x0,-0x2),_0x31a66d=_0x59f7a1[_0x16900b(0x1bd)]||'';!_0x53377f[_0x36523d]?_0x53377f[_0x36523d]={'label':_0x36523d,'value':_0x31a66d}:_0x53377f[_0x36523d][_0x16900b(0x1bd)]+=_0x31a66d[_0x16900b(0x1c3)]>0x0?',\x20'+_0x31a66d:'';}else _0xe7a635['data'][_0x16900b(0x1f5)]({'label':_0x19b17c,'value':_0x59f7a1['value']||''});}for(let _0x59b1fd in _0x53377f){_0xe7a635['data'][_0x16900b(0x1f5)](_0x53377f[_0x59b1fd]);}},handleFormSubmit=(_0x4398d8,_0xcf4cc0,_0x2647a0)=>{const _0x381183=_0x4dea1e,_0x155a54=getCookieValue('fstory_session_'+_0x2647a0);let _0x5c3ede={'projectId':projectId,'jobId':_0xcf4cc0,'uuid':_0x155a54,'data':[],'timestamp':Date[_0x381183(0x1fa)](),'ip':clientIP,'event_type':'submit'};addFormFields(_0x4398d8,_0x5c3ede),sendData(_0x5c3ede);},handleFormChange=(_0x1aa8fd,_0xbc9d8d,_0x2a0737)=>_0x59aaff=>{const _0x24c2e5=_0x4dea1e;_0x59aaff[_0x24c2e5(0x1d9)]();const _0x2d04ea=getCookieValue('fstory_session_'+_0x2a0737),_0x586dd8={'projectId':projectId,'jobId':_0xbc9d8d,'uuid':_0x2d04ea,'timestamp':Date[_0x24c2e5(0x1fa)](),'data':[],'ip':clientIP,'event_type':_0x24c2e5(0x1d5)};addFormFields(_0x1aa8fd,_0x586dd8),sendData(_0x586dd8);};function fetchData(){const _0x1020c5=_0x4dea1e;return fetch(scriptUrl+_0x1020c5(0x1c4)+projectId+'/'+currentPath,{'method':'GET','headers':{'Content-Type':_0x1020c5(0x1c9)}})[_0x1020c5(0x1ea)](_0x1ebca3=>{const _0x404df6=_0x1020c5;if(!_0x1ebca3['ok'])return _0x1ebca3[_0x404df6(0x1ba)]();return _0x1ebca3[_0x404df6(0x1ba)]();})[_0x1020c5(0x1ea)](_0x124b84=>{return _0x124b84;})['catch'](_0x155a4a=>{const _0x2ae27f=_0x1020c5;return{'success':![],'message':_0x155a4a[_0x2ae27f(0x1cc)]};});}function setCookie(_0x15b925,_0x7ae311,_0x10a812){const _0x31b1fa=_0x4dea1e;let _0x541958=_0x15b925+'='+encodeURIComponent(_0x7ae311);document[_0x31b1fa(0x1fb)]=_0x541958+_0x31b1fa(0x1da)+getRootDomain()+_0x31b1fa(0x1f6)+_0x10a812['toUTCString']()+_0x31b1fa(0x1c2);}function getCookieValue(_0x3b006f){const _0x351acf=_0x4dea1e,_0x385275=document[_0x351acf(0x1fb)][_0x351acf(0x1c7)](';'),_0x365760=_0x385275['find'](function(_0x313385){const _0x5c45ef=_0x351acf;return _0x313385[_0x5c45ef(0x1f4)]()[_0x5c45ef(0x1e5)](_0x3b006f+'=');});if(_0x365760)return decodeURIComponent(_0x365760[_0x351acf(0x1c7)]('=')[0x1]);return null;}function deleteCookie(_0x2c6657){const _0x21f8b5=_0x4dea1e;document[_0x21f8b5(0x1fb)]=_0x2c6657+_0x21f8b5(0x1ec)+getRootDomain()+';\x20expires=Thu,\x2001\x20Jan\x201970\x2000:00:00\x20UTC;\x20path=/;';}function getRootDomain(){const _0x5d0ccb=_0x4dea1e,_0x27718b=host['split']('.')[_0x5d0ccb(0x1d3)]();return _0x27718b[0x1]+'.'+_0x27718b[0x0];}const formElements=[_0x4dea1e(0x1ee)];function encodeBase64(_0x2aaa85){return btoa(unescape(encodeURIComponent(_0x2aaa85)));}function identicalForms(_0x21f340,_0x1bb9ba){const _0x5129e1=_0x4dea1e,_0x45ce38=_0x21f340['querySelectorAll'](formElements),_0x29da3b=Array[_0x5129e1(0x1c8)](_0x45ce38)[_0x5129e1(0x1f1)](_0x3e2b7d=>{const _0x10269a=_0x5129e1;if(_0x3e2b7d[_0x10269a(0x1d6)](_0x10269a(0x1e4))){let _0x131528=_0x3e2b7d[_0x10269a(0x1fe)](_0x10269a(0x1e4));return _0x131528[_0x10269a(0x1eb)]('[]')&&(_0x131528=_0x131528[_0x10269a(0x1f8)](0x0,-0x2)),_0x131528;}return null;})['filter'](Boolean);return _0x1bb9ba[_0x5129e1(0x1f7)](_0x488045=>_0x29da3b[_0x5129e1(0x1e0)](_0x488045));}function _0x5eaa(){const _0x3a79c4=['32gyAsHJ','addEventListener','getTime','DOMContentLoaded','toString','includes','33iikTjV','type','data','name','startsWith','hidden','Network\x20response\x20was\x20not\x20ok','fstory_session_','click','then','endsWith','=;\x20domain=.','location','input:not([type=\x22hidden\x22]),\x20select,\x20button,\x20textarea,\x20option,\x20optgroup,\x20fieldset,\x20output','541450lXwDHL','132xMWVSB','map','12VSUKiK','690336Yxwbmc','trim','push',';\x20expires=','every','slice','replace','now','cookie','uuid','21759NqTIVF','getAttribute','json','260FXUXUk','required','value','684770VuSVDU','39462raOBgh','load','[type=\x22submit\x22]',';\x20path=/','length','/projects/','success','elements','split','from','application/json','form','https://us-central1-formstory-394609.cloudfunctions.net/fstory-script','message','pathname','formFields','12246cLpjjs','216.73.216.161','index','setTime','reverse','https://t.formstory.io','change','hasAttribute','427e7d59-4ca7-4e61-98ae-32a6c7213992','551394KIUJQu','preventDefault',';domain=.'];_0x5eaa=function(){return _0x3a79c4;};return _0x5eaa();}function generateUUID(){const _0x57fb4f=_0x4dea1e;return'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'[_0x57fb4f(0x1f9)](/[xy]/g,function(_0x5eacee){const _0x1117c7=_0x57fb4f;var _0x32bceb=Math['random']()*0x10|0x0,_0x145b19=_0x5eacee==='x'?_0x32bceb:_0x32bceb&0x3|0x8;return _0x145b19[_0x1117c7(0x1df)](0x10);});}document['addEventListener'](_0x4dea1e(0x1de),function(){const _0x562586=_0x4dea1e;fetchData()[_0x562586(0x1ea)](_0x374bf5=>{const _0x440c0d=_0x562586;_0x374bf5[_0x440c0d(0x1c5)]&&(_0x374bf5&&_0x374bf5[_0x440c0d(0x1e3)]&&_0x374bf5[_0x440c0d(0x1e3)][_0x440c0d(0x1f1)]((_0x39d9f9,_0x58a8bd)=>{const _0x274aef=_0x440c0d;let _0x2ac367=generateUUID(),_0x5065ab=getCookieValue(_0x274aef(0x1e8)+_0x58a8bd);if(!_0x5065ab){const _0x47b1da=new Date();_0x47b1da['setTime'](_0x47b1da[_0x274aef(0x1dd)]()+0xf*0x3c*0x3e8),setCookie(_0x274aef(0x1e8)+_0x58a8bd,_0x2ac367,_0x47b1da),_0x5065ab=_0x2ac367;}const _0x127cb5=_0x39d9f9[_0x274aef(0x1ce)],_0x5972e3=_0x39d9f9['formElements'][_0x274aef(0x1d1)],_0x17990e=document['querySelectorAll'](_0x274aef(0x1ca)),_0x2617e8=_0x17990e[_0x5972e3];if(identicalForms(_0x2617e8,_0x127cb5)){const _0x4c28bb={'timestamp':Date['now'](),'projectId':projectId,'jobId':_0x39d9f9['uuid'],'uuid':_0x5065ab,'data':[],'ip':clientIP,'event_type':_0x274aef(0x1c0)};sendData(_0x4c28bb),_0x2617e8['addEventListener'](_0x274aef(0x1d5),handleFormChange(_0x2617e8,_0x39d9f9['uuid'],_0x58a8bd));const _0x1dac5c=_0x2617e8['querySelector'](_0x274aef(0x1c1));_0x1dac5c[_0x274aef(0x1dc)](_0x274aef(0x1e9),_0x1bcee7=>{const _0x595b24=_0x274aef,_0x580021=_0x2617e8[_0x595b24(0x1c6)];let _0x502b2c=!![];for(let _0x2aac15=0x0;_0x2aac15<_0x580021['length'];_0x2aac15++){_0x580021[_0x2aac15][_0x595b24(0x1d6)](_0x595b24(0x1bc))&&!_0x580021[_0x2aac15][_0x595b24(0x1bd)]&&(_0x502b2c=![]);}if(_0x502b2c){handleFormSubmit(_0x2617e8,_0x39d9f9[_0x595b24(0x1fc)],_0x58a8bd),deleteCookie('fstory_session_'+_0x58a8bd);const _0x3b2008=generateUUID(),_0x1869da=new Date();_0x1869da[_0x595b24(0x1d2)](_0x1869da[_0x595b24(0x1dd)]()+0xf*0x3c*0x3e8),setCookie(_0x595b24(0x1e8)+_0x58a8bd,_0x3b2008,_0x1869da);}});}}));});});