const _0x1a9fc1=_0x1dfd;(function(_0x101bbd,_0x1a96e7){const _0x527e62=_0x1dfd,_0x2afa5a=_0x101bbd();while(!![]){try{const _0x34e4fc=parseInt(_0x527e62(0x9b))/0x1*(-parseInt(_0x527e62(0xbb))/0x2)+-parseInt(_0x527e62(0xc2))/0x3*(parseInt(_0x527e62(0x93))/0x4)+parseInt(_0x527e62(0xa1))/0x5*(-parseInt(_0x527e62(0xa4))/0x6)+parseInt(_0x527e62(0xa0))/0x7+-parseInt(_0x527e62(0xaf))/0x8+parseInt(_0x527e62(0xa2))/0x9+parseInt(_0x527e62(0xb9))/0xa;if(_0x34e4fc===_0x1a96e7)break;else _0x2afa5a['push'](_0x2afa5a['shift']());}catch(_0x470b11){_0x2afa5a['push'](_0x2afa5a['shift']());}}}(_0x17bf,0xd5a64));const projectId=_0x1a9fc1(0xab),trackingUrl='https://us-central1-formstory-394609.cloudfunctions.net/fstory-script',scriptUrl=_0x1a9fc1(0x9d),uuid='17f85119-2b77-4abf-ae7b-2ee55fa867bd',clientIP=_0x1a9fc1(0xa6);let currentPath=window[_0x1a9fc1(0xad)][_0x1a9fc1(0x9f)],host=window['location'][_0x1a9fc1(0xb1)];currentPath[_0x1a9fc1(0x95)]('/')&¤tPath[_0x1a9fc1(0xb5)]>0x1&&(currentPath=currentPath[_0x1a9fc1(0x99)](0x0,-0x1));currentPath=currentPath['replace'](/\//g,'_');let jobId='';const sendData=_0x350182=>{const _0x3b8eaa=_0x1a9fc1;fetch(trackingUrl,{'method':_0x3b8eaa(0xc1),'headers':{'Content-Type':_0x3b8eaa(0xb6)},'body':JSON[_0x3b8eaa(0xb3)](_0x350182)})[_0x3b8eaa(0xb8)](_0x29502d=>{const _0x5c618e=_0x3b8eaa;if(!_0x29502d['ok'])throw new Error(_0x5c618e(0xa8));})[_0x3b8eaa(0x8f)](_0xb24a51=>{console['error'](_0xb24a51);});},addFormFields=(_0x4de085,_0x2d0381)=>{const _0x255442=_0x1a9fc1;let _0x4ca45b=_0x4de085[_0x255442(0xc0)];for(let _0xeccdb3=0x0;_0xeccdb3<_0x4ca45b['length'];_0xeccdb3++){let _0x36eea2=_0x4ca45b[_0xeccdb3][_0x255442(0x9e)]!==''?_0x4ca45b[_0xeccdb3][_0x255442(0x9e)]:_0x4ca45b[_0xeccdb3]['id'];if(_0x4ca45b[_0xeccdb3][_0x255442(0xbf)]===_0x255442(0x91)||_0x36eea2==='')continue;_0x2d0381[_0x255442(0x9c)][_0x255442(0x96)]({'label':_0x36eea2,'value':_0x4ca45b[_0xeccdb3][_0x255442(0xb2)]});}},handleFormSubmit=(_0x3c8ddc,_0x6c604)=>{const _0x348e84=_0x1a9fc1;let _0x1fae2f={'projectId':projectId,'jobId':jobId,'uuid':_0x6c604,'data':[],'timestamp':Date[_0x348e84(0xc5)](),'ip':clientIP,'event_type':_0x348e84(0xba)};addFormFields(_0x3c8ddc,_0x1fae2f),sendData(_0x1fae2f);},handleFormChange=(_0x20aeca,_0x1944a7)=>_0x4b9606=>{const _0x1f624f=_0x1a9fc1;_0x4b9606[_0x1f624f(0xa3)]();const _0x53dced={'projectId':projectId,'jobId':jobId,'uuid':_0x1944a7,'timestamp':Date['now'](),'data':[],'ip':clientIP,'event_type':_0x1f624f(0xae)};addFormFields(_0x20aeca,_0x53dced),sendData(_0x53dced);};function fetchData(){const _0x18e63a=_0x1a9fc1;return fetch(scriptUrl+'/projects/'+projectId+'/'+currentPath,{'method':_0x18e63a(0xb4),'headers':{'Content-Type':_0x18e63a(0xb6)}})[_0x18e63a(0xb8)](_0x484f91=>{const _0x553a41=_0x18e63a;if(!_0x484f91['ok'])return _0x484f91[_0x553a41(0xb7)]();return _0x484f91['json']();})[_0x18e63a(0xb8)](_0x5ed5ed=>{return _0x5ed5ed;})[_0x18e63a(0x8f)](_0x149acf=>{return{'success':![],'message':_0x149acf['message']};});}function setCookie(_0x1cba6d,_0x490ddc,_0x27dcf8){const _0x86b32f=_0x1a9fc1;let _0x2bf5b0=_0x1cba6d+'='+encodeURIComponent(_0x490ddc);document['cookie']=_0x2bf5b0+';domain=.'+getRootDomain()+_0x86b32f(0xc3)+_0x27dcf8['toUTCString']()+_0x86b32f(0x9a);}function getCookieValue(_0x53b882){const _0x29f21d=_0x1a9fc1,_0x528348=document[_0x29f21d(0xbc)]['split'](';'),_0x2e82b1=_0x528348['find'](function(_0x14b242){const _0x8387d8=_0x29f21d;return _0x14b242['trim']()[_0x8387d8(0xc7)](_0x53b882+'=');});if(_0x2e82b1)return decodeURIComponent(_0x2e82b1[_0x29f21d(0xb0)]('=')[0x1]);return null;}function deleteCookie(_0x33d449){const _0x2b5a25=_0x1a9fc1;document[_0x2b5a25(0xbc)]=_0x33d449+_0x2b5a25(0xac)+getRootDomain()+_0x2b5a25(0x97);}function getRootDomain(){const _0x290766=_0x1a9fc1,_0x27a662=host['split']('.')[_0x290766(0x94)]();return _0x27a662[0x1]+'.'+_0x27a662[0x0];}function _0x17bf(){const _0x177977=['application/json','json','then','27365990TWTKrN','submit','2HaryiE','cookie','click','evaluate','type','elements','POST','3715677jQMyNu',';\x20expires=','load','now','addEventListener','startsWith','fstory_session','[type=\x22submit\x22]','catch','FIRST_ORDERED_NODE_TYPE','hidden','hasAttribute','4CisIuX','reverse','endsWith','push',';\x20expires=Thu,\x2001\x20Jan\x201970\x2000:00:00\x20UTC;\x20path=/;','getTime','slice',';\x20path=/','1145827lgrKwJ','data','https://t.formstory.io','name','pathname','7217567EGmIGe','2041045DSAjgW','7726239DMJtWf','preventDefault','6SAXCSY','setTime','18.218.6.213','uuid','Network\x20response\x20was\x20not\x20ok','querySelector','xpath','a1dc973d-2e2f-4b45-97ee-e8a4c54f4255','=;\x20domain=.','location','change','7667584uCXJcP','split','hostname','value','stringify','GET','length'];_0x17bf=function(){return _0x177977;};return _0x17bf();}function _0x1dfd(_0x779e5a,_0x1807d8){const _0x17bf3b=_0x17bf();return _0x1dfd=function(_0x1dfdd7,_0x322d58){_0x1dfdd7=_0x1dfdd7-0x8e;let _0x473ee9=_0x17bf3b[_0x1dfdd7];return _0x473ee9;},_0x1dfd(_0x779e5a,_0x1807d8);}document[_0x1a9fc1(0xc6)]('DOMContentLoaded',function(){const _0x27f9b1=_0x1a9fc1;fetchData()[_0x27f9b1(0xb8)](_0x20a6c6=>{const _0x51d3e7=_0x27f9b1;if(_0x20a6c6['success']){if(_0x20a6c6&&_0x20a6c6[_0x51d3e7(0x9c)]){let _0x3782e6=getCookieValue('fstory_session');if(!_0x3782e6){const _0x463bde=new Date();_0x463bde[_0x51d3e7(0xa5)](_0x463bde[_0x51d3e7(0x98)]()+0x5*0x3c*0x3e8),setCookie('fstory_session',uuid,_0x463bde),_0x3782e6=uuid;}jobId=_0x20a6c6[_0x51d3e7(0x9c)][_0x51d3e7(0xa7)];const _0x23409a=document[_0x51d3e7(0xbe)](_0x20a6c6[_0x51d3e7(0x9c)][_0x51d3e7(0xaa)],document,null,XPathResult[_0x51d3e7(0x90)],null)['singleNodeValue'];if(_0x23409a){const _0xd97ba5={'timestamp':Date[_0x51d3e7(0xc5)](),'projectId':projectId,'jobId':jobId,'uuid':_0x3782e6,'data':[],'ip':clientIP,'event_type':_0x51d3e7(0xc4)};sendData(_0xd97ba5),_0x23409a[_0x51d3e7(0xc6)](_0x51d3e7(0xae),handleFormChange(_0x23409a,_0x3782e6));const _0x350971=_0x23409a[_0x51d3e7(0xa9)](_0x51d3e7(0x8e));_0x350971['addEventListener'](_0x51d3e7(0xbd),_0x4f01a3=>{const _0x423e04=_0x51d3e7,_0x9ac71a=_0x23409a[_0x423e04(0xc0)];let _0x338746=!![];for(let _0x47283e=0x0;_0x47283e<_0x9ac71a[_0x423e04(0xb5)];_0x47283e++){_0x9ac71a[_0x47283e][_0x423e04(0x92)]('required')&&!_0x9ac71a[_0x47283e]['value']&&(_0x338746=![]);}_0x338746&&(deleteCookie(_0x423e04(0xc8)),handleFormSubmit(_0x23409a,_0x3782e6));});}}}});});