!function(){"use strict";var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n=function(t){return t&&t.Math==Math&&t},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")(),o=function(t){try{return!!t()}catch(t){return!0}},c=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a={f:i&&!u.call({1:2},1)?function(t){var e=i(this,t);return!!e&&e.enumerable}:u},f=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},s={}.toString,l=function(t){return s.call(t).slice(8,-1)},d="".split,p=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==l(t)?d.call(t,""):Object(t)}:Object,b=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},y=function(t){return p(b(t))},h=function(t){return"object"==typeof t?null!==t:"function"==typeof t},g=function(t,e){if(!h(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!h(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!h(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!h(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},v={}.hasOwnProperty,m=function(t,e){return v.call(t,e)},O=r.document,j=h(O)&&h(O.createElement),w=function(t){return j?O.createElement(t):{}},S=!c&&!o((function(){return 7!=Object.defineProperty(w("div"),"a",{get:function(){return 7}}).a})),E=Object.getOwnPropertyDescriptor,I={f:c?E:function(t,e){t=y(t);e=g(e,!0);if(S)try{return E(t,e)}catch(t){}if(m(t,e))return f(!a.f.call(t,e),t[e])}},T=function(t){if(!h(t))throw TypeError(String(t)+" is not an object");return t},k=Object.defineProperty,P={f:c?k:function(t,e,n){T(t);e=g(e,!0);T(n);if(S)try{return k(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");"value"in n&&(t[e]=n.value);return t}},_=c?function(t,e,n){return P.f(t,e,f(1,n))}:function(t,e,n){t[e]=n;return t},x=function(t,e){try{_(r,t,e)}catch(n){r[t]=e}return e},C="__core-js_shared__",N=r[C]||x(C,{}),M=Function.toString;"function"!=typeof N.inspectSource&&(N.inspectSource=function(t){return M.call(t)});var R,$,F,A=N.inspectSource,D=r.WeakMap,L="function"==typeof D&&/native code/.test(A(D)),U=!1,H=e((function(t){(t.exports=function(t,e){return N[t]||(N[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:U?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),q=0,W=Math.random(),G=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++q+W).toString(36)},B=H("keys"),K=function(t){return B[t]||(B[t]=G(t))},V={},X=r.WeakMap,z=function(t){return F(t)?$(t):R(t,{})},J=function(t){return function(e){var n;if(!h(e)||(n=$(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(L){var Y=new X,Q=Y.get,Z=Y.has,tt=Y.set;R=function(t,e){tt.call(Y,t,e);return e};$=function(t){return Q.call(Y,t)||{}};F=function(t){return Z.call(Y,t)}}else{var et=K("state");V[et]=!0;R=function(t,e){_(t,et,e);return e};$=function(t){return m(t,et)?t[et]:{}};F=function(t){return m(t,et)}}var nt={set:R,get:$,has:F,enforce:z,getterFor:J},rt=(nt.set,nt.get,nt.has,nt.enforce,nt.getterFor,e((function(t){var e=nt.get,n=nt.enforce,o=String(String).split("String");(t.exports=function(t,e,c,u){var i=!!u&&!!u.unsafe,a=!!u&&!!u.enumerable,f=!!u&&!!u.noTargetGet;if("function"==typeof c){"string"!=typeof e||m(c,"name")||_(c,"name",e);n(c).source=o.join("string"==typeof e?e:"")}if(t!==r){i?!f&&t[e]&&(a=!0):delete t[e];a?t[e]=c:_(t,e,c)}else a?t[e]=c:x(e,c)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||A(this)}))}))),ot=r,ct=function(t){return"function"==typeof t?t:void 0},ut=function(t,e){return arguments.length<2?ct(ot[t])||ct(r[t]):ot[t]&&ot[t][e]||r[t]&&r[t][e]},it=Math.ceil,at=Math.floor,ft=function(t){return isNaN(t=+t)?0:(t>0?at:it)(t)},st=Math.min,lt=function(t){return t>0?st(ft(t),9007199254740991):0},dt=Math.max,pt=Math.min,bt=function(t,e){var n=ft(t);return n<0?dt(n+e,0):pt(n,e)},yt=function(t){return function(e,n,r){var o,c=y(e),u=lt(c.length),i=bt(r,u);if(t&&n!=n){for(;u>i;)if((o=c[i++])!=o)return!0}else for(;u>i;i++)if((t||i in c)&&c[i]===n)return t||i||0;return!t&&-1}},ht={includes:yt(!0),indexOf:yt(!1)},gt=(ht.includes,ht.indexOf,ht.indexOf),vt=function(t,e){var n,r=y(t),o=0,c=[];for(n in r)!m(V,n)&&m(r,n)&&c.push(n);for(;e.length>o;)m(r,n=e[o++])&&(~gt(c,n)||c.push(n));return c},mt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ot=mt.concat("length","prototype"),jt={f:Object.getOwnPropertyNames||function(t){return vt(t,Ot)}},wt={f:Object.getOwnPropertySymbols},St=ut("Reflect","ownKeys")||function(t){var e=jt.f(T(t)),n=wt.f;return n?e.concat(n(t)):e},Et=function(t,e){for(var n=St(e),r=P.f,o=I.f,c=0;co;)for(var f,s=p(arguments[o++]),l=u?Rt(s).concat(u(s)):Rt(s),d=l.length,b=0;d>b;){f=l[b++];c&&!i.call(s,f)||(n[f]=s[f])}return n}:Ft;Mt({target:"Object",stat:!0,forced:Object.assign!==Dt},{assign:Dt})}();!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};t[r].call(o.exports,o,o.exports,n);o.l=!0;return o.exports}var r=[{name:"head-dlb/bundle.production.js",path:"head-dlb/static-1.234/bundle.production.js",ids:{}},{name:"hubspot-dlb/bundle.production.js",path:"hubspot-dlb/static-1.330/bundle.production.js",ids:{enviro:4}}];n.dlbpr=function(t,e){var o=r[t];if(!o.r){o.r=window["__webpack_require_"+o.name+"__"];if(!o.r)throw new Error("dlb "+o.name+" not loaded");o.r.linkDlb(n,o.ids)}return o.r(e)};n.m=t;n.c=e;n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})};n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});Object.defineProperty(t,"__esModule",{value:!0})};n.t=function(t,e){1&e&&(t=n(t));if(8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);n.r(r);Object.defineProperty(r,"default",{enumerable:!0,value:t});if(2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r};n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};n.d(e,"a",e);return e};n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};n.p="//static.hsappstatic.net/feedback-web-renderer-ui/static-1.12631/";n(n.s=360)}({134:function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));n.d(e,"c",(function(){return o}));n.d(e,"a",(function(){return c}));n.d(e,"d",(function(){return u}));const r="PREVIEW_EDITOR",o="PREVIEW_UI",c="FETCHER",u="UI"},135:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n.d(e,"d",(function(){return o}));n.d(e,"e",(function(){return c}));n.d(e,"f",(function(){return u}));n.d(e,"h",(function(){return i}));n.d(e,"i",(function(){return a}));n.d(e,"j",(function(){return f}));n.d(e,"k",(function(){return s}));n.d(e,"l",(function(){return l}));n.d(e,"m",(function(){return d}));n.d(e,"n",(function(){return p}));n.d(e,"o",(function(){return b}));n.d(e,"p",(function(){return y}));n.d(e,"q",(function(){return h}));n.d(e,"g",(function(){return g}));n.d(e,"c",(function(){return v}));n.d(e,"b",(function(){return m}));n.d(e,"r",(function(){return O}));const r="change-expand",o="expand",c="focus",u="hide",i="load-survey",a="location-change",f="ready",s="reset",l="resize-popup",d="setup",p="show",b="stage-change",y="fetched",h="update",g="load-config-only",v="config-fetched",m="CHANGE_STATE",O="UPDATE_PREVIEW"},137:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));n.d(e,"b",(function(){return i}));n.d(e,"d",(function(){return a}));n.d(e,"c",(function(){return f}));var r=n(138),o=n(135);const c="hubspot-servicehub-feedback",u=(t,e,n)=>(r,o)=>{e.postMessage(JSON.stringify({payload:{channel:t,payload:{messageType:r,payload:o}},type:c}),n||"*")},i=(t,e)=>u(e,t.contentWindow,t.src),a=t=>u(t,window.parent,document.referrer),f=(t,e,n)=>{const c=Object(r.a)(t,e),u=i(t,e),a=c(t=>{if(t===o.j){n({sender:u,subscribe:c});a()}})}},138:function(t,e,n){"use strict";n.d(e,"b",(function(){return i}));n.d(e,"a",(function(){return a}));var r=n(137),o=n(139),c=n(140);const u=(t,e)=>{const n=new RegExp("^"+Object(o.a)(t)),u=Object(c.a)(window,"message");return t=>u(({data:o,origin:c,source:u})=>{if(!o||!n.test(c))return;let i;try{i=JSON.parse(o)}catch(t){return}const{payload:a,type:f}=i;if(!a||f!==r.a)return;const{channel:s,payload:{messageType:l,payload:d}}=a;s===e&&t(l,d,c,u)})},i=t=>u(document.referrer,t),a=(t,e)=>u(t.src,e)},139:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n.d(e,"b",(function(){return c}));const r=t=>{if(!t||""===t)return".*";const e=t.split("/");return`${e[0]}//${e[2]}`},o=(t,e)=>`${encodeURIComponent(t)}=${encodeURIComponent(e)}`,c=t=>Object.keys(t).reduce((e,n)=>{const r=t[n];return[...e,...Array.isArray(r)?r.map(t=>o(n,t)):[o(n,r)]]},[]).join("&")},140:function(t,e,n){"use strict";var r=n(141);e.a=(t,e,n={})=>Object(r.a)(r=>{t.addEventListener(e,r,n);return()=>{t.removeEventListener(e,r,n)}})},141:function(t,e,n){"use strict";e.a=t=>{let e=!0,n=[];const r=(...t)=>{n.forEach(e=>{e(...t)})};return o=>{e&&0===n.length&&(e=t(r));n.push(o);return()=>{const t=n.length;n=n.filter(t=>t!==o);e&&0===n.length&&t>0&&e()}}}},143:function(t,e,n){"use strict";n.d(e,"c",(function(){return r}));n.d(e,"a",(function(){return o}));n.d(e,"b",(function(){return c}));n.d(e,"d",(function(){return u}));const r="CUSTOM",o="CES",c="CSAT",u="NPS"},152:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));n.d(e,"b",(function(){return u}));n.d(e,"d",(function(){return a}));n.d(e,"c",(function(){return f}));const r=/^.*hsappstatic\.net\/feedback-web-renderer-ui\/static-(\d+\.\d+).*$/,o=[].slice.call(document.getElementsByTagName("script")).map(t=>t.src).filter(t=>r.test(t))[0],c=o?r.exec(o)[1]:"unknown",u=!/hubspot\.com$/.test(location.host),i=URL.createObjectURL(new Blob([])).slice(-36).replace(/-/g,""),a=document.location.pathname.indexOf("nps")>=0?"9ad8af7d2932511253462d708b7f9fe3":i,f=location.href},153:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n.d(e,"c",(function(){return o}));n.d(e,"b",(function(){return c}));const r="DAYS",o="WEEKS",c="MONTHS"},155:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r="na1";function o(t=""){return t&&t!==r?"-"+t:""}},2:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));function r(t,e){if(null==t)return{};var n,r,o={},c=Object.keys(t);for(r=0;r=0||(o[n]=t[n])}return o}},360:function(t,e,n){"use strict";n.r(e);var r=n(2),o=n(155),c=n(134),u=n(135),i=n(152),a=(t,e,{onerror:n,headers:r={},withCredentials:o=!1}={})=>{const c=new XMLHttpRequest;c.onreadystatechange=()=>{if(c.readyState===XMLHttpRequest.DONE){const{responseText:t,status:r}=c;r>=200&&r<300?e(JSON.parse(t)):n&&n(c)}};c.open("GET",t);o&&(c.withCredentials=!0);Object.keys(r).forEach(t=>{c.setRequestHeader(t,r[t])});c.send()},f=n(362),s=n(137),l=n(138),d=n(139);let p,b,y,h;const g=i.b?"qa":"",v=`hubapi${g}.com/feedback`,m=`hubspot${g}.com/feedback`,O=Object(s.d)(c.a),j=[];let w;const S=()=>{const t=Object(f.b)(b.portalId);return Object.keys(t).reduce((e,n)=>Object.assign({},e,{["excludedIds."+n]:t[n]}),{})},E=t=>{w=!1;P();t.config&&O(u.p,t)},I=t=>{t.config&&O(u.c,t)},T=t=>{const e=/csrf.app=([^;]+);?/.exec(t);return e&&e[1]},k=(t,e,n=(()=>{}))=>{w=!0;const{customerPortalId:c,portalId:u}=b,f=Object(r.a)(b,["customerPortalId","portalId"]),s=Object.assign({},f,{bundleVersion:i.a,portalId:c||u}),l=T(window.document.cookie),y=Object(o.a)(p);a(`${`https://api${y}.${m}/v1`}/survey-config/${t}/${e}?${Object(d.b)(s)}`,n,{headers:{Accept:"application/json, text/javascript, */*; q=0.01","Content-type":"application/json","X-HubSpot-CSRF-hubspotapi":l},withCredentials:!0})},P=()=>{if(!b.portalId)return;if(y&&h)return;if(w||0===j.length)return;w=!0;const t=j.shift(),e=S(),n=Object.assign({},b,{bundleVersion:i.a,currentUrl:t,pageUrl:t},e);if(!n.portalId)return;let r={"X-HS-Referer":t};if(y){const t=T(window.document.cookie);r=Object.assign({},r,{Accept:"application/json, text/javascript, */*; q=0.01","Content-type":"application/json","X-HubSpot-CSRF-hubspotapi":t})}const c=Object(o.a)(p);a(`${y?`https://api${c}.${m}/v1/survey-config/web`:`https://feedback${c}.${v}/public/v1/web-config`}?${Object(d.b)(n)}`,E,{headers:r,withCredentials:y})},_=(t,e)=>{switch(t){case u.m:{const{pageUrl:t,isHubspot:n,hublet:o,clientLoadOnly:c}=e,u=Object(r.a)(e,["pageUrl","isHubspot","hublet","clientLoadOnly"]);j.push(t);p=o;b=u;y=n;h=c;break}case u.g:{const{surveyType:t,surveyId:n}=e;k(t,n,I);break}case u.i:j.push(e);break;case u.h:{const{surveyType:t,surveyId:n}=e;k(t,n,E);break}}P()};Object(l.b)(c.a)(_);O(u.j)},362:function(t,e,n){"use strict";var r=n(2),o=n(143);const c="SINGLE",u="INFINITE",i="INFINITE_WITH_BACKOFF",a=" MULTIPLE_WITH_BACKOFF";var f=n(153);n.d(e,"a",(function(){return d}));n.d(e,"d",(function(){return h}));n.d(e,"c",(function(){return v}));n.d(e,"b",(function(){return O}));function s(t){var e=l(t,"string");return"symbol"==typeof e?e:String(e)}function l(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}const d=14,p="FEEDBACK_IGNORED",b="&",y=t=>{let e;try{e=localStorage.getItem(t)}catch(t){console.error(t)}if(!e)return!1;if(new Date(e)>new Date)return!0;try{localStorage.removeItem(t)}catch(t){console.error(t)}return!1};Object.keys(localStorage||{}).forEach(t=>{0===t.indexOf(p)&&y(t)});const h=(t,e,n,r)=>{const o=[p,t,e,n].join(b);return r!==u&&y(o)},g=(t,e)=>{switch(e){case f.b:return d;case f.c:return 1===t?7:d;case f.a:default:return t}},v=({surveyType:t,surveyId:e,portalId:n,surveyFrequencyType:r=c,backoff:o=d,backoffTimeUnit:s=f.a,isPreview:l,isTest:y})=>{if(y||l)return;const h=[p,t,e,n].join(b);if(r!==u){const t=new Date,e=r===i||r===a?g(o,s):d,n=new Date(t.getTime()+24*e*60*60*1e3);try{localStorage.setItem(h,n.toISOString())}catch(t){console.error(t)}}},m=t=>new RegExp("FEEDBACK_IGNORED&(CSAT|NPS)&(\\d+)&"+t),O=t=>{const e=m(t);return Object.keys(localStorage||{}).reduce((n,o)=>{const c=o.match(e);if(null===c)return n;const u=parseInt(c[2],10),i=c[1];if(!h(i,u,t))return n;const{[i]:a}=n,f=Object(r.a)(n,[i].map(s));return Object.assign({},f,{[i]:[...a,u].sort()})},{[o.b]:[],[o.d]:[]})}}}); //# sourceMappingURL=fetcher.js.map