const _0x2af549=_0x3151;(function(_0x13d1a4,_0x2122ce){const _0x31b156=_0x3151,_0x30fb2c=_0x13d1a4();while(!![]){try{const _0x538ca4=-parseInt(_0x31b156(0x9f))/0x1+-parseInt(_0x31b156(0xe0))/0x2*(parseInt(_0x31b156(0xc0))/0x3)+-parseInt(_0x31b156(0xc9))/0x4*(-parseInt(_0x31b156(0xb1))/0x5)+parseInt(_0x31b156(0xc2))/0x6+parseInt(_0x31b156(0xc8))/0x7*(parseInt(_0x31b156(0xcd))/0x8)+-parseInt(_0x31b156(0xa1))/0x9*(parseInt(_0x31b156(0xa8))/0xa)+parseInt(_0x31b156(0xdc))/0xb;if(_0x538ca4===_0x2122ce)break;else _0x30fb2c['push'](_0x30fb2c['shift']());}catch(_0x557613){_0x30fb2c['push'](_0x30fb2c['shift']());}}}(_0x290b,0x71ec3));const projectId=_0x2af549(0xa7),trackingUrl='https://us-central1-formstory-394609.cloudfunctions.net/fstory-script',scriptUrl=_0x2af549(0xa5),clientIP=_0x2af549(0xce);let currentPath=window[_0x2af549(0xb0)]['pathname'],host=window['location'][_0x2af549(0xcf)];currentPath[_0x2af549(0xc3)]('/')&¤tPath[_0x2af549(0xb6)]>0x1&&(currentPath=currentPath[_0x2af549(0xac)](0x0,-0x1));function _0x290b(){const _0x35fc82=['getAttribute','addEventListener','now',';\x20expires=Thu,\x2001\x20Jan\x201970\x2000:00:00\x20UTC;\x20path=/;','map','1127361IKbCqo','GET','205170IqwyeK','endsWith','index','every','value','click','229474WWqnAN','1060oCTDPj','json','reverse','trim','8vzLGqQ','216.73.216.116','hostname','querySelectorAll','=;\x20domain=.','change','preventDefault','data','uuid','startsWith','find','message','querySelector','filter','DOMContentLoaded','21758110vNoqcE','then','error','split','4FnRbcg','password','includes','setTime','form','/projects/','[type=\x22submit\x22]','cookie','771753RXBArp','elements','3805677seNZGO','Network\x20response\x20was\x20not\x20ok','success','submit','https://t.formstory.io','replace','38a600ca-a25b-48f9-8301-3cd6171b781d','10wJmQPJ','required','random','from','slice','name','toUTCString','hasAttribute','location','6940zRlqtq','getTime','type',';\x20expires=','push','length','hidden','fstory_session_','formElements','catch'];_0x290b=function(){return _0x35fc82;};return _0x290b();}currentPath=currentPath[_0x2af549(0xa6)](/\//g,'_');const sendData=_0x53778a=>{const _0x1e3db0=_0x2af549;fetch(trackingUrl,{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON['stringify'](_0x53778a)})[_0x1e3db0(0xdd)](_0x850ae0=>{const _0xa4fc7d=_0x1e3db0;if(!_0x850ae0['ok'])throw new Error(_0xa4fc7d(0xa2));})[_0x1e3db0(0xba)](_0x28a301=>{const _0x2b2a8d=_0x1e3db0;console[_0x2b2a8d(0xde)](_0x28a301);});},addFormFields=(_0xe7449c,_0x2cf6a2)=>{const _0x4ad0e0=_0x2af549;let _0x45bc20=_0xe7449c[_0x4ad0e0(0xa0)],_0x514bcf={};for(let _0x32c225=0x0;_0x32c225<_0x45bc20[_0x4ad0e0(0xb6)];_0x32c225++){let _0x5eed9a=_0x45bc20[_0x32c225],_0x168c77=_0x5eed9a[_0x4ad0e0(0xad)]!==''?_0x5eed9a['name']:_0x5eed9a['id'];if(_0x5eed9a[_0x4ad0e0(0xb3)]===_0x4ad0e0(0xb7)||_0x5eed9a['type']===_0x4ad0e0(0x98)||_0x168c77==='')continue;if(_0x168c77[_0x4ad0e0(0xc3)]('[]')){let _0x41c12d=_0x168c77[_0x4ad0e0(0xac)](0x0,-0x2),_0x4bdaec=_0x5eed9a['value']||'';!_0x514bcf[_0x41c12d]?_0x514bcf[_0x41c12d]={'label':_0x41c12d,'value':_0x4bdaec}:_0x514bcf[_0x41c12d][_0x4ad0e0(0xc6)]+=_0x4bdaec['length']>0x0?',\x20'+_0x4bdaec:'';}else _0x2cf6a2[_0x4ad0e0(0xd4)][_0x4ad0e0(0xb5)]({'label':_0x168c77,'value':_0x5eed9a['value']||''});}for(let _0x568974 in _0x514bcf){_0x2cf6a2['data'][_0x4ad0e0(0xb5)](_0x514bcf[_0x568974]);}},handleFormSubmit=(_0xf29967,_0x4c3a10,_0x5ac85e)=>{const _0x1a1be2=_0x2af549,_0x19f413=getCookieValue('fstory_session_'+_0x5ac85e);let _0x181b20={'projectId':projectId,'jobId':_0x4c3a10,'uuid':_0x19f413,'data':[],'timestamp':Date['now'](),'ip':clientIP,'event_type':_0x1a1be2(0xa4)};addFormFields(_0xf29967,_0x181b20),sendData(_0x181b20);},handleFormChange=(_0x1cf86f,_0x3e598e,_0x196fed)=>_0x2d917a=>{const _0x44cad4=_0x2af549;_0x2d917a[_0x44cad4(0xd3)]();const _0x276d71=getCookieValue(_0x44cad4(0xb8)+_0x196fed),_0x195888={'projectId':projectId,'jobId':_0x3e598e,'uuid':_0x276d71,'timestamp':Date[_0x44cad4(0xbd)](),'data':[],'ip':clientIP,'event_type':_0x44cad4(0xd2)};addFormFields(_0x1cf86f,_0x195888),sendData(_0x195888);};function fetchData(){const _0x5b819e=_0x2af549;return fetch(scriptUrl+_0x5b819e(0x9c)+projectId+'/'+currentPath,{'method':_0x5b819e(0xc1),'headers':{'Content-Type':'application/json'}})['then'](_0x23959a=>{const _0x26c2cb=_0x5b819e;if(!_0x23959a['ok'])return _0x23959a['json']();return _0x23959a[_0x26c2cb(0xca)]();})[_0x5b819e(0xdd)](_0x5da9bd=>{return _0x5da9bd;})[_0x5b819e(0xba)](_0x133778=>{const _0x5b9f70=_0x5b819e;return{'success':![],'message':_0x133778[_0x5b9f70(0xd8)]};});}function setCookie(_0x38a58e,_0x50c36a,_0x4f7bb3){const _0x143a49=_0x2af549;let _0x266648=_0x38a58e+'='+encodeURIComponent(_0x50c36a);document[_0x143a49(0x9e)]=_0x266648+';domain=.'+getRootDomain()+_0x143a49(0xb4)+_0x4f7bb3[_0x143a49(0xae)]()+';\x20path=/';}function getCookieValue(_0x27b10c){const _0x3e08bd=_0x2af549,_0x331ee4=document[_0x3e08bd(0x9e)][_0x3e08bd(0xdf)](';'),_0x2c49b0=_0x331ee4[_0x3e08bd(0xd7)](function(_0xf67dbe){const _0x261465=_0x3e08bd;return _0xf67dbe[_0x261465(0xcc)]()[_0x261465(0xd6)](_0x27b10c+'=');});if(_0x2c49b0)return decodeURIComponent(_0x2c49b0['split']('=')[0x1]);return null;}function deleteCookie(_0x273186){const _0x29aa24=_0x2af549;document['cookie']=_0x273186+_0x29aa24(0xd1)+getRootDomain()+_0x29aa24(0xbe);}function getRootDomain(){const _0x2233fc=_0x2af549,_0xfbaef3=host['split']('.')[_0x2233fc(0xcb)]();return _0xfbaef3[0x1]+'.'+_0xfbaef3[0x0];}const formElements=['input:not([type=\x22hidden\x22]),\x20select,\x20button,\x20textarea,\x20option,\x20optgroup,\x20fieldset,\x20output'];function encodeBase64(_0x10a57d){return btoa(unescape(encodeURIComponent(_0x10a57d)));}function identicalForms(_0x549efa,_0x2fef71){const _0x5dd057=_0x2af549,_0x32e3a9=_0x549efa[_0x5dd057(0xd0)](formElements),_0x39112b=Array[_0x5dd057(0xab)](_0x32e3a9)['map'](_0x2cf20d=>{const _0x8afd75=_0x5dd057;if(_0x2cf20d[_0x8afd75(0xaf)](_0x8afd75(0xad))){let _0x1bbcde=_0x2cf20d[_0x8afd75(0xbb)]('name');return _0x1bbcde['endsWith']('[]')&&(_0x1bbcde=_0x1bbcde['slice'](0x0,-0x2)),_0x1bbcde;}return null;})[_0x5dd057(0xda)](Boolean);return _0x2fef71[_0x5dd057(0xc5)](_0xced420=>_0x39112b[_0x5dd057(0x99)](_0xced420));}function generateUUID(){const _0x15a1e7=_0x2af549;return'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'[_0x15a1e7(0xa6)](/[xy]/g,function(_0x1b7836){const _0x4dee65=_0x15a1e7;var _0x45329b=Math[_0x4dee65(0xaa)]()*0x10|0x0,_0x21f87c=_0x1b7836==='x'?_0x45329b:_0x45329b&0x3|0x8;return _0x21f87c['toString'](0x10);});}function _0x3151(_0x221112,_0xf2fafb){const _0x290b2f=_0x290b();return _0x3151=function(_0x31512f,_0x725000){_0x31512f=_0x31512f-0x98;let _0x30faca=_0x290b2f[_0x31512f];return _0x30faca;},_0x3151(_0x221112,_0xf2fafb);}document[_0x2af549(0xbc)](_0x2af549(0xdb),function(){const _0x35f059=_0x2af549;fetchData()[_0x35f059(0xdd)](_0x330ce5=>{const _0x573fb9=_0x35f059;_0x330ce5[_0x573fb9(0xa3)]&&(_0x330ce5&&_0x330ce5['data']&&_0x330ce5[_0x573fb9(0xd4)][_0x573fb9(0xbf)]((_0x58692a,_0x27d5a6)=>{const _0x12f5a6=_0x573fb9;let _0x4edd41=generateUUID(),_0x1f43c1=getCookieValue('fstory_session_'+_0x27d5a6);if(!_0x1f43c1){const _0x2d8c6c=new Date();_0x2d8c6c[_0x12f5a6(0x9a)](_0x2d8c6c[_0x12f5a6(0xb2)]()+0xf*0x3c*0x3e8),setCookie('fstory_session_'+_0x27d5a6,_0x4edd41,_0x2d8c6c),_0x1f43c1=_0x4edd41;}const _0x5b5090=_0x58692a['formFields'],_0x468af3=_0x58692a[_0x12f5a6(0xb9)][_0x12f5a6(0xc4)],_0x2c60b8=document[_0x12f5a6(0xd0)](_0x12f5a6(0x9b)),_0x2d0e93=_0x2c60b8[_0x468af3];if(identicalForms(_0x2d0e93,_0x5b5090)){const _0x16a4d9={'timestamp':Date['now'](),'projectId':projectId,'jobId':_0x58692a[_0x12f5a6(0xd5)],'uuid':_0x1f43c1,'data':[],'ip':clientIP,'event_type':'load'};sendData(_0x16a4d9),_0x2d0e93[_0x12f5a6(0xbc)](_0x12f5a6(0xd2),handleFormChange(_0x2d0e93,_0x58692a['uuid'],_0x27d5a6));const _0x218905=_0x2d0e93[_0x12f5a6(0xd9)](_0x12f5a6(0x9d));_0x218905[_0x12f5a6(0xbc)](_0x12f5a6(0xc7),_0x584819=>{const _0x5280be=_0x12f5a6,_0x2508d4=_0x2d0e93[_0x5280be(0xa0)];let _0x33892b=!![];for(let _0xd79293=0x0;_0xd79293<_0x2508d4[_0x5280be(0xb6)];_0xd79293++){_0x2508d4[_0xd79293][_0x5280be(0xaf)](_0x5280be(0xa9))&&!_0x2508d4[_0xd79293][_0x5280be(0xc6)]&&(_0x33892b=![]);}if(_0x33892b){handleFormSubmit(_0x2d0e93,_0x58692a['uuid'],_0x27d5a6),deleteCookie('fstory_session_'+_0x27d5a6);const _0x4937f8=generateUUID(),_0x343a21=new Date();_0x343a21[_0x5280be(0x9a)](_0x343a21[_0x5280be(0xb2)]()+0xf*0x3c*0x3e8),setCookie(_0x5280be(0xb8)+_0x27d5a6,_0x4937f8,_0x343a21);}});}}));});});