1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59170,(e,t,n)=>{"use strict";function i(e,t){var n,i;if(0===t.length)return e;for(n=0,i=t.length;n<i;n++)e=(e<<5)-e+t.charCodeAt(n)|0;return e<0?-2*e:e}t.exports=function(e){for(var t=(function e(t,n,r,o){var s,a=i(i(i(t,r),(s=n,Object.prototype.toString.call(s))),typeof n);if(null===n)return i(a,"null");if(void 0===n)return i(a,"undefined");if("object"==typeof n||"function"==typeof n){if(-1!==o.indexOf(n))return i(a,"[Circular]"+r);o.push(n);var u=Object.keys(n).sort().reduce(function(t,i){return e(t,n[i],i,o)},a);if(!("valueOf"in n)||"function"!=typeof n.valueOf)return u;try{return i(u,String(n.valueOf()))}catch(e){return i(u,"[valueOf exception]"+(e.stack||e.message))}}return i(a,n.toString())})(0,e,"",[]).toString(16);t.length<8;)t="0"+t;return t}},18992,e=>{"use strict";var t,n=function(){return(n=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},i=e.i(59170);"u"<typeof window||"function"==typeof window.CustomEvent||(window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n});var r="u">typeof window&&/^((?!chrome|android).)*safari/i.test(window.navigator.userAgent),o="u">typeof window;function s(e){if(!o||r||"u"<typeof MutationObserver)return void setTimeout(e);var t=0,n=new MutationObserver(function(){return e()}),i=document.createTextNode("");n.observe(i,{characterData:!0}),i.data=String(t=++t)}var a=Object.freeze(["__proto__","prototype","constructor"]),u=function(){function e(){}return e.parseDeep=function(e){var t=this.parse(e);return this.deepen(t)},e.stringifyDeep=function(e){var t=this.flatten(e);return this.stringify(t)},e.parse=function(e){for(var t={},n=("?"===e[0]?e.substr(1):e).split("&"),i=0;i<n.length;i++){var r=n[i].split("=");try{t[decodeURIComponent(r[0])]=decodeURIComponent(r[1]||"")}catch(e){}}return t},e.stringify=function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];t&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(i)}return t},e.deepen=function(e){var t={};for(var n in e){for(var i=t,r=n.split("."),o=r.pop(),s=0;s<r.length;s++){var u=r[s];(function(e){if(a.indexOf(e)>=0)throw Error('Property name "'.concat(e,'" is not allowed'))})(u),i=i[u]=i[u]||{}}i[o]=e[n]}return t},e.flatten=function(e,t,n){for(var i in void 0===n&&(n={}),e){var r=e[i],o=t?t+"."+i:i;r&&"object"==typeof r?this.flatten(r,o,n):n[o]=r}return n},e}(),c=function(){function e(e,t){this.listeners=e,this.listener=t,this.unsubscribed=!1,this.otherSubscriptions=[]}return Object.defineProperty(e.prototype,"closed",{get:function(){return this.unsubscribed},enumerable:!1,configurable:!0}),e.prototype.add=function(e){this.otherSubscriptions.push(e)},e.prototype.unsubscribe=function(){if(!this.unsubscribed){if(this.listener&&this.listeners){var e=this.listeners.indexOf(this.listener);e>-1&&this.listeners.splice(e,1)}this.otherSubscriptions.forEach(function(e){return e.unsubscribe()}),this.unsubscribed=!0}},e}(),l=function(){function e(e){var t=this;this.value=e,this.listeners=[],this.errorListeners=[],this.then=function(){for(var e,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return(e=t.toPromise()).then.apply(e,n)}}return e.prototype.next=function(e){this.value=e;for(var t=0,n=this.listeners;t<n.length;t++)(0,n[t])(e)},e.prototype.map=function(t){var n=new e(t(this.value));return this.subscribe(function(e){n.next(t(e))}),this.catch(function(e){n.error(e)}),n},e.prototype.catch=function(e){return this.errorListeners.push(e),new c(this.errorListeners,e)},e.prototype.error=function(e){for(var t=0,n=this.errorListeners;t<n.length;t++)(0,n[t])(e)},e.prototype.subscribe=function(e,t){return this.listeners.push(e),t&&this.errorListeners.push(t),new c(this.listeners,e)},e.prototype.toPromise=function(){var e=this;return new Promise(function(t,n){var i=e.subscribe(function(e){t(e),i.unsubscribe()},function(e){n(e),i.unsubscribe()})})}
1,e.prototype.promise=function(){return this.toPromise()},e}(),d="Pending",h="Fulfilled",p="Rejected";function f(e){return e&&"function"==typeof e}var v=function(){function e(e){this._state=d,this._handlers=[],this._value=null,e(this._resolve.bind(this),this._reject.bind(this))}return e.prototype._resolve=function(t){var n=this;if(t instanceof e)t.then(this._resolve.bind(this),this._reject.bind(this));else if(t&&"object"==typeof t||f(t)){var i=!1;try{var r=t.then;f(r)?r.call(t,function(e){i||n._resolve(e),i=!0},function(e){i||n._reject(e),i=!0}):this._fulfill(t)}catch(e){i||this._reject(e)}}else this._fulfill(t)},e.prototype._fulfill=function(e){var t=this;this._state=h,this._value=e,this._handlers.forEach(function(e){return t._callHandler(e)})},e.prototype._reject=function(e){var t=this;this._state=p,this._value=e,this._handlers.forEach(function(e){return t._callHandler(e)})},e.prototype._isPending=function(){return this._state===d},e.prototype._isFulfilled=function(){return this._state===h},e.prototype._isRejected=function(){return this._state===p},e.prototype._addHandler=function(e,t){this._handlers.push({onFulfilled:e,onRejected:t})},e.prototype._callHandler=function(e){this._isFulfilled()&&f(e.onFulfilled)?e.onFulfilled(this._value):this._isRejected()&&f(e.onRejected)&&e.onRejected(this._value)},e.prototype.then=function(t,n){var i=this;switch(this._state){case d:return new e(function(e,r){i._addHandler(function(n){s(function(){try{f(t)?e(t(n)):e(n)}catch(e){r(e)}})},function(t){s(function(){try{f(n)?e(n(t)):r(t)}catch(e){r(e)}})})});case h:return new e(function(e,n){s(function(){try{f(t)?e(t(i._value)):e(i._value)}catch(e){n(e)}})});case p:return new e(function(e,t){s(function(){try{f(n)?e(n(i._value)):t(i._value)}catch(e){t(e)}})})}},e}(),g="u">typeof Promise?Promise:v;try{t="u"<typeof window?e.z:function(){return null}}catch(e){t=function(){return null}}var y=t;function m(e){return new g(function(t){return t(e)})}function b(e,t){return void 0===t&&(t={}),new g(function(n,i){var r=new XMLHttpRequest;if(r.open(t.method||"get",e,!0),t.headers)for(var o in t.headers)r.setRequestHeader(o,t.headers[o]);r.withCredentials="include"===t.credentials,r.onload=function(){n(function e(){var t=[],n=[],i={},o=void 0;return r.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,r,s){var a=r;return t.push(a=a.toLowerCase()),n.push([a,s]),o=i[a],i[a]=o?"".concat(o,",").concat(s):s,""}),{ok:(r.status/100|0)==2,status:r.status,statusText:r.statusText,url:r.responseURL,clone:e,text:function(){return m(r.responseText)},json:function(){return m(r.responseText).then(JSON.parse)},blob:function(){return m(new Blob([r.response]))},headers:{keys:function(){return t},entries:function(){return n},get:function(e){return i[e.toLowerCase()]},has:function(e){return e.toLowerCase()in i}}}}())},r.onerror=i,r.send(t.body)})}function w(){var e=void 0;if(globalThis.fetch)null!=e||(e=globalThis.fetch);else if("u"<typeof window)try{null!=e||(e=y("node-fetch"))}catch(e){console.warn("node-fetch is not installed. consider polyfilling fetch or installing node-fetch."),console.warn(e)}return null!=e?e:b}function k(e){for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}function C(e,t,n){void 0===n&&(n={});var i,r,o,s=null,a=0,u=function(){a=!1===n.leading?0:Date.now(),s=null,o=e.apply(i,r),s||(i=r=null)};return function(){var c=Date.now();a||!1!==n.leading||(a=c);var l=t-(c-a);return i=this,r=arguments,l<=0||l>t?(s&&(clearTimeout(s),s=null),a=c,o=e.apply(i,r),s||(i=r=null)):s||!1===n.trailing||(s=setTimeout(u,l)),o}}var S=function(e){return e?e.replace(/([A-Z])/g,function(e){return"-".concat(e[0].toLowerCase())}):""},x=function(){function e(){}return e.prototype.bindAnimations=function(e){for(var t=0;t<e.length;t++){var n=e[t];switch(n.trigger){case"pageLoad":this.triggerAnimation(n);break;case"hover":this.bindHoverAnimation(n);break;case"scrollInView":this.bindScrollInViewAnimation(n)}}},e.prototype.warnElementNotPresent=function(e){console.warn("Cannot animate element: element with ID ".concat(e," not found!"))},e.prototype.augmentAnimation=function(e,t){for(var n=this.getAllStylesUsed(e),i=getComputedStyle(t),r=e.steps[0].styles,o=e.steps[e.steps.length-1].styles,s=0,a=[r,o];s<a.length;s++)for(var u=a[s],c=0;c<n.length;c++){var l=n[c];l in u||(u[l]=i[l])}},e.prototype.getAllStylesUsed=function(e){for(var t=[],n=0,i=e.steps;n<i.length;n++){var r=i[n];
1for(var o in r.styles)-1===t.indexOf(o)&&t.push(o)}return t},e.prototype.triggerAnimation=function(e){var t=this,n=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));n.length?Array.from(n).forEach(function(n){t.augmentAnimation(e,n),n.style.transition="none",n.style.transitionDelay="0",k(n.style,e.steps[0].styles),setTimeout(function(){n.style.transition="all ".concat(e.duration,"s ").concat(S(e.easing)),e.delay&&(n.style.transitionDelay=e.delay+"s"),k(n.style,e.steps[1].styles),setTimeout(function(){n.style.transition="",n.style.transitionDelay=""},1e3*(e.delay||0)+1e3*e.duration+100)})}):this.warnElementNotPresent(e.elementId||e.id||"")},e.prototype.bindHoverAnimation=function(e){var t=this,n=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));n.length?Array.from(n).forEach(function(n){t.augmentAnimation(e,n);var i=e.steps[0].styles,r=e.steps[1].styles;function o(){k(n.style,i)}o(),n.addEventListener("mouseenter",function(){k(n.style,r)}),n.addEventListener("mouseleave",o),setTimeout(function(){n.style.transition="all ".concat(e.duration,"s ").concat(S(e.easing)),e.delay&&(n.style.transitionDelay=e.delay+"s")})}):this.warnElementNotPresent(e.elementId||e.id||"")},e.prototype.bindScrollInViewAnimation=function(e){var t=this,n=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));n.length?Array.from(n).forEach(function(n){t.augmentAnimation(e,n);var i=!1,r=!1;function o(){!i&&a(n)?(i=!0,r=!0,setTimeout(function(){k(n.style,e.steps[1].styles),e.repeat||document.removeEventListener("scroll",s),setTimeout(function(){r=!1,e.repeat||(n.style.transition="",n.style.transitionDelay="")},(e.duration+(e.delay||0))*1e3+100)})):e.repeat&&i&&!r&&!a(n)&&(i=!1,k(n.style,e.steps[0].styles))}var s=C(o,200,{leading:!1});function a(t){var n=t.getBoundingClientRect(),i=window.innerHeight,r=(e.thresholdPercent||0)/100*i;return n.bottom>r&&n.top<i-r}var u=e.steps[0].styles;k(n.style,u),setTimeout(function(){n.style.transition="all ".concat(e.duration,"s ").concat(S(e.easing)),e.delay&&(n.style.transitionDelay=e.delay+"s")}),document.addEventListener("scroll",s,{capture:!0,passive:!0}),o()}):this.warnElementNotPresent(e.elementId||e.id||"")},e}(),O=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,T=function(){function e(e,t){this.request=e,this.response=t}return e.prototype.get=function(e){var t=this.request.headers.cookie;if(t){var n,i=t.match((n=e,new RegExp("(?:^|;) *".concat(n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"=([^;]*)"))));if(i)return i[1]}},e.prototype.set=function(e,t,n){var i=this.response,r=this.request,o=i.getHeader("Set-Cookie")||[],s=void 0!==this.secure?!!this.secure:"https"===r.protocol||r.connection.encrypted,a=new E(e,t,n);if("string"==typeof o&&(o=[o]),!s&&n&&n.secure)throw Error("Cannot send secure cookie over unencrypted connection");return a.secure=s,n&&"secure"in n&&(a.secure=!!n.secure),function(e,t){if(t.overwrite)for(var n=e.length-1;n>=0;n--)0===e[n].indexOf("".concat(t.name,"="))&&e.splice(n,1);e.push(t.toHeader())}(o,a),i.setHeader.call(i,"Set-Cookie",o),this},e}(),E=function(){function e(e,t,n){if(this.path="/",this.domain=void 0,this.httpOnly=!0,this.sameSite=!1,this.secure=!1,this.overwrite=!1,this.name="",this.value="",!O.test(e))throw TypeError("argument name is invalid");if(t&&!O.test(t))throw TypeError("argument value is invalid");t||(this.expires=new Date(0)),this.name=e,this.value=t||"",n.expires&&(this.expires=n.expires),n.secure&&(this.secure=n.secure)}return e.prototype.toString=function(){return"".concat(this.name,"=").concat(this.value)},e.prototype.toHeader=function(){var e=this.toString();return this.maxAge&&(this.expires=new Date(Date.now()+this.maxAge)),this.path&&(e+="; path=".concat(this.path)),this.expires&&(e+="; expires=".concat(this.expires.toUTCString())),this.domain&&(e+="; domain=".concat(this.domain)),e+="; SameSite=".concat(!0===this.sameSite?"strict":"None"),this.secure&&(e+="; secure"),this.httpOnly&&(e+="; httponly"),e},e}();function A(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=Object.assign({},e),r=0;r<t.length;r++){var o=t[r];delete i[o]}return i}function I(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}).replace(/-/g,"")}function P(){return{query:null,port:null,auth:null,hash:null,host:null,hostname:null,href:null,path:null,pathname:null,protocol:null,search:null,slashes:null}}function B(e){return void 0===e&&(e=30),new Date(Date.now()+6e4*e)}var j=function(e){return"number"==typeof e&&!isNaN(e)&&e>=0},U="object"==typeof navigator&&"ReactNative"===navigator.product,M=["production","qa","test","development","dev","cdn-qa","cloud","fast","cdn2","cdn-
1prod"],_=U?function(){return P()}:"object"==typeof window?function(e){var t=document.createElement("a");t.href=e;for(var n={},i=0,r=["username","password","host","hostname","port","protocol","origin","pathname","search","hash"];i<r.length;i++){var o=r[i];n[o]=t[o]}return(n.pathname||""===n.pathname)&&"string"==typeof n.pathname&&0!==n.pathname.indexOf("/")&&(n.pathname="/"+n.pathname),n}:function(e){var t,n,i=P();return""===e||"/"===e[0]?(i.href=(n=new URL(e,"http://0.0.0.0/")).href,i.href=null==(t=i.href)?void 0:t.slice(14)):(i.href=(n=new URL(e)).href,i.port=""===n.port?null:n.port,i.hash=""===n.hash?null:n.hash,i.host=n.host,i.hostname=n.hostname,i.href=n.href,i.pathname=n.pathname,i.protocol=n.protocol,i.slashes="/"===e[n.protocol.length]),i.search=n.search,i.query=n.search.slice(1),i.path="".concat(n.pathname).concat(n.search),i.pathname=n.pathname,i};function R(e){return Object.keys(e).length}function K(e,t){for(var n=e.length>>>0,i=arguments[1],r=0;r<n;r++){var o=e[r];if(t.call(i,o,r,e))return o}}var q="builderSessionId",L="builderVisitorId",V="u">typeof window&&!U,N=V&&window.top!==window.self,Q=function(){function e(t,n,i,r,o,s){void 0===t&&(t=null),void 0===r&&(r=!1),void 0===o&&(o=null);var a=this;if(this.request=n,this.response=i,this.eventsQueue=[],this.throttledClearEventsQueue=C(function(){a.processEventsQueue(),a.setCookie(q,a.sessionId,B(30)
1)},5),this.env="production",this.sessionId=this.getSessionId(),this.targetContent=!0,this.contentPerRequest=1,this.allowCustomFonts=!0,this.cookies=null,this.cachebust=!1,this.overrideParams="",this.noCache=!1,this.preview=!1,this.apiEndpoint$=new l("query"),this.apiVersion$=new l(void 0),this.canTrack$=new l(!this.browserTrackingDisabled),this.hasOverriddenCanTrack=!1,this.apiKey$=new l(null),this.authToken$=new l(null),this.contentId$=new l(null),this.userAttributesChanged=new l(null),this.editingMode$=new l(N),this.editingModel$=new l(null),this.userAgent="object"==typeof navigator&&navigator.userAgent||"",this.trackingHooks=[],this.visitorId=this.getVisitorId(),this.autoTrack=!!e.isBrowser&&!this.isDevelopmentEnv&&!(e.isBrowser&&-1!==location.search.indexOf("builder.preview=")),this.trackingUserAttributes={},this.blockContentLoading="",this.observersByKey={},this.noEditorUpdates={},this.overrides={},this.queryOptions={},this.getContentQueue=null,this.priorContentQueue=null,this.totalCountByKey={},this.testCookiePrefix="builder.tests",this.cookieQueue=[],e.isBrowser&&!r&&e.singletonInstance)return e.singletonInstance;if(this.request&&this.response&&(this.setUserAgent(this.request.headers["user-agent"]||""),this.cookies=new T(this.request,this.response)),t&&(this.apiKey=t),s&&(this.apiVersion=s),o&&(this.authToken=o),V&&e.isEditing&&(this.bindMessageListeners(),parent.postMessage({type:"builder.animatorOptions",data:{options:{version:2}}},"*")),N&&this.messageFrameLoaded(),this.canTrack$.subscribe(function(e){if(e){if("u">typeof sessionStorage)try{sessionStorage.getItem(q)||sessionStorage.setItem(q,a.sessionId)}catch(e){console.debug("Session storage error",e)}a.eventsQueue.length&&a.throttledClearEventsQueue(),a.cookieQueue.length&&(a.cookieQueue.forEach(function(e){a.setCookie(e[0],e[1])}),a.cookieQueue.length=0)}}),V){this.setTestsFromUrl(),this.getOverridesFromQueryString();var u=this.getCookie(e.attributesCookieName);if(u)try{var c=JSON.parse(u);this.setUserAttributes(c)}catch(e){console.debug("Error parsing user attributes cookie",e)}}}return e.register=function(t,n){"plugin"===t&&(n=this.serializeIncludingFunctions(n,!0));var i=this.registry[t];if(i||(i=this.registry[t]=[]),i.push(n),e.isBrowser){var r={type:"builder.register",data:{type:t,info:n}};try{parent.postMessage(r,"*"),parent!==window&&window.postMessage(r,"*")}catch(e){console.debug("Could not postmessage",e)}}this.registryChange.next(this.registry)},e.registerEditor=function(t){if(e.isBrowser){window.postMessage({type:"builder.registerEditor",data:A(t,"component")},"*");var n=location.hostname;e.isTrustedHost(n)||console.error("Builder.registerEditor() called in the wrong environment! You cannot load custom editors from your app, they must be loaded through the Builder.io app itself. Follow the readme here for more details: https://github.com/builderio/builder/tree/master/plugins/cloudinary or contact chat us in our Spectrum community for help: https://spectrum.chat/builder")}this.editors.push(t)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerAction=function(t){var n;if(this.actions.push(t),e.isBrowser){var i=JSON.parse(JSON.stringify(t));t.action&&(i.action=t.action.toString()),null==(n=window.parent)||n.postMessage({type:"builder.registerAction",data:i},"*")}},e.registerTrustedHost=function(e){this.trustedHosts.push(e)},e.setServerContext=function(e){this.serverContext=e},e.isTrustedHost=function(e){return this.trustedHosts.findIndex(function(t){return t.startsWith("*.")?e.endsWith(t.slice(1)):t===e})>-1},e.isTrustedHostForEvent=function(t){if("null"===t.origin)return!1;var n=_(t.origin);return n.hostname&&e.isTrustedHost(n.hostname)},e.runAction=function(e){if(!("string"==typeof e?K(this.actions,function(t){return t.name===e}):e))throw Error("Action not found: ".concat(e))},e.fields=function(e,t){var n;null==(n=window.parent)||n.postMessage({type:"builder.fields",data:{name:e,fields:t}},"*")},e.set=function(t){e.register("editor.settings",t)},e.import=function(t){if(!e.isBrowser)return void console.warn("Builder.import used on the server - this should only be used in the browser");var n=window.System;return n?n.import("https://cdn.builder.io/systemjs/".concat(t)):void console.warn("System.js not available. Please include System.js when using Builder.import")},Object.defineProperty(e,"editingPage",{get:function(){return this._editingPage},set:function(e){this._editingPage=e,V&&N&&(e?document.body.classList.add("builder-editing-page"):document.body.classList.remove("builder-editing-page"))}
1,enumerable:!1,configurable:!0}),e.serializeIncludingFunctions=function(e,t){var n=function(e){var t=e.toString().trim(),n=/^[a-zA-Z0-9_]+\s*=>/i.test(t),i=!t.startsWith("function")&&!t.startsWith("async")&&!t.startsWith("(")&&!n;return"return (".concat(i?"function ":"").concat(t,").apply(this, arguments)")},i=JSON.parse(JSON.stringify(e,function(e,i){return"function"!=typeof i||t&&"onSave"===e?i:n(i)}));return t&&(i.onSave=e.onSave),i},e.prepareComponentSpecToSend=function(e){return n(n({},this.serializeIncludingFunctions(e)),{class:void 0})},e.registerBlock=function(e,t){this.registerComponent(e,t)},e.registerComponent=function(e,t){var i,r=n(n({class:e},e.builderOptions),t);if(this.addComponent(r),t.models&&this.singletonInstance.editingModel?V&&t.models.includes(this.singletonInstance.editingModel):V){var o=this.prepareComponentSpecToSend(r);null==(i=window.parent)||i.postMessage({type:"builder.registerComponent",data:o},"*")}},e.addComponent=function(e){var t=K(this.components,function(t){return t.name===e.name});if(t){if(t.class&&!e.class)return;this.components.splice(this.components.indexOf(t),1,e)}else this.components.push(e)},e.component=function(e){var t=this;return void 0===e&&(e={}),function(i){var r,o=n(n({},e),{class:i});o.name||(o.name=i.name),t.addComponent(o);var s=t.prepareComponentSpecToSend(o);return V&&(null==(r=window.parent)||r.postMessage({type:"builder.registerComponent",data:s},"*")),i}},Object.defineProperty(e,"Component",{get:function(){return this.component},enumerable:!1,configurable:!0}),e.prototype.processEventsQueue=function(){if(this.eventsQueue.length){var t=this.eventsQueue;this.eventsQueue=[];for(var i=n(n({},e.overrideUserAttributes),this.trackingUserAttributes),r=0;r<t.length;r++){var o=t[r];o.data.metadata||(o.data.metadata={}),o.data.metadata.user||(o.data.metadata.user={}),Object.assign(o.data.metadata.user,i,o.data.metadata.user)}var s=this.host;w()("".concat(s,"/api/v1/track"),{method:"POST",body:JSON.stringify({events:t}),headers:n({"content-type":"application/json"},this.getSdkHeaders()),mode:"cors"}).catch(function(){})}},Object.defineProperty(e.prototype,"browserTrackingDisabled",{get:function(){return e.isBrowser&&!!(window.builderNoTrack||!navigator.cookieEnabled)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canTrack",{get:function(){return this.canTrack$.value},set:function(e){this.hasOverriddenCanTrack=!0,this.canTrack!==e&&this.canTrack$.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"apiVersion",{get:function(){return this.apiVersion$.value},set:function(e){this.apiVersion!==e&&this.apiVersion$.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"apiEndpoint",{get:function(){return this.apiEndpoint$.value},set:function(e){this.apiEndpoint!==e&&this.apiEndpoint$.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"editingMode",{get:function(){return this.editingMode$.value},set:function(e){e!==this.editingMode&&this.editingMode$.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"editingModel",{get:function(){return this.editingModel$.value},set:function(e){e!==this.editingModel&&this.editingModel$.next(e)},enumerable:!1,configurable:!0}),e.prototype.findParentElement=function(e,t,n){if(void 0===n&&(n=!0),!(e instanceof HTMLElement))return null;var i=n?e:e.parentElement;do{if(!i)break;if(t(i))return i}while(i=i.parentElement)return null},e.prototype.findBuilderParent=function(e){return this.findParentElement(e,function(e){var t=e.getAttribute("builder-id")||e.id;return!!(t&&0===t.indexOf("builder-"))})},e.prototype.setUserAgent=function(e){this.userAgent=e||""},e.prototype.setTrackingHook=function(e){this.trackingHooks.push(e)},e.prototype.track=function(t,i,r){if(void 0===i&&(i={}),!N&&V&&!e.isPreviewing){var o=this.apiKey;if(!o)return void console.error('Builder integration error: Looks like the Builder SDK has not been initialized properly (your API key has not been set). Make sure you are calling `builder.init("«YOUR-API-KEY»");` as early as possible in your application\'s code.');for(var s=JSON.parse(JSON.stringify({type:t,data:n(n({},A(i,"meta")),{metadata:n(n({sdkVersion:e.VERSION,url:location.href},i.meta),i.metadata),ownerId:o,userAttributes:this.getUserAttributes(),sessionId:this.sessionId,visitorId:this.visitorId})})),a=0,u=this.trackingHooks;a<u.length;a++){var c=(0,u[a])(s,r||{});c&&(s=c)}this.eventsQueue.push(s),this.canTrack&&this.throttledClearEventsQueue()}},e.prototype.getSessionId=function(){var t=this,n=null;try{e.isBrowser&&"u">typeof sessionStorage&&(n=this.getCookie(q))}catch(e){console.debug("Session storage error",e)}
1return n||(n=I()),e.isBrowser&&setTimeout(function(){try{t.canTrack&&t.setCookie(q,n,B(30))}catch(e){console.debug("Cookie setting error",e)}}),n},e.prototype.getVisitorId=function(){var t=this;if(this.visitorId)return this.visitorId;var n=null;try{e.isBrowser&&"u">typeof localStorage&&(n=localStorage.getItem(L))}catch(e){console.debug("Local storage error",e)}return n||(n=I()),this.visitorId=n,e.isBrowser&&setTimeout(function(){try{t.canTrack&&"u">typeof localStorage&&n&&localStorage.setItem(L,n)}catch(e){console.debug("Session storage error",e)}}),n},e.prototype.trackImpression=function(t,n,i,r){N||!V||e.isPreviewing||this.track("impression",{contentId:t,variationId:n!==t?n:void 0,metadata:i},r)},e.prototype.trackConversion=function(t,i,r,o,s){if(!N&&V&&!e.isPreviewing){var a="object"==typeof i?n({},i):o&&"object"==typeof o?n({},o):void 0;void 0!==t&&(a||(a={}),a.amount=t);var u="string"==typeof i?i:void 0;u||i||!this.contentId||(u=this.contentId);var c=r;!c&&u&&(c=this.getTestCookie(u)),this.track("conversion",{amount:t,variationId:c&&u&&c!==u?c:void 0,meta:a,contentId:u},s)}},Object.defineProperty(e.prototype,"isDevelopmentEnv",{get:function(){return e.isIframe||e.isBrowser&&("localhost"===location.hostname||""!==location.port)||"production"!==this.env},enumerable:!1,configurable:!0}),e.prototype.trackInteraction=function(t,n,i,r,o){if(void 0===i&&(i=!1),!N&&V&&!e.isPreviewing){var s=r&&r.target,a=s&&this.findBuilderParent(s),u={};if(r){var c=r.clientX,l=r.clientY;if(s){var d=s.getBoundingClientRect(),h=c-d.left,p=l-d.top,f=y(h/d.width),v=y(p/d.height);u.targetOffset={x:f,y:v}}if(a){var d=a.getBoundingClientRect(),h=c-d.left,p=l-d.top,f=y(h/d.width),v=y(p/d.height);u.builderTargetOffset={x:f,y:v}}}var g=a&&(a.getAttribute("builder-id")||a.id);g&&a&&(u.builderElementIndex=[].slice.call(document.getElementsByClassName(g)).indexOf(a)),this.track("click",{contentId:t,metadata:u,variationId:n!==t?n:void 0,unique:!i,targetBuilderElement:g||void 0},o)}function y(e){return Math.round(1e3*e)/1e3}},e.prototype.component=function(t){return void 0===t&&(t={}),e.component(t)},Object.defineProperty(e.prototype,"apiKey",{get:function(){return this.apiKey$.value},set:function(e){this.apiKey$.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentId",{get:function(){return this.contentId$.value},set:function(e){this.contentId$.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"authToken",{get:function(){return this.authToken$.value},set:function(e){this.authToken$.next(e)},enumerable:!1,configurable:!0}),e.prototype.modifySearch=function(e){return e.replace(/(^|&|\?)(builder_.*?)=/gi,function(e,t,n){return t+n.replace(/_/g,".")+"="})},e.prototype.setTestsFromUrl=function(){var e=this.getLocation().search;try{var t=u.parseDeep(this.modifySearch(e||"").substr(1)),n=t.builder&&t.builder.tests;if(n&&"object"==typeof n)for(var i in n)n.hasOwnProperty(i)&&this.setTestCookie(i,n[i])}catch(e){console.debug("Error parsing tests from URL",e)}},e.prototype.resetOverrides=function(){e.overrideUserAttributes={},this.cachebust=!1,this.noCache=!1,this.preview=!1,this.editingModel=null,this.overrides={},this.env="production",this.userAgent="",this.request=void 0,this.response=void 0},e.prototype.getOverridesFromQueryString=function(){var t=this.getLocation();try{var i=u.parseDeep(this.modifySearch(t.search||"").substr(1)),r=i.builder;if(r){var o=r.userAttributes,s=r.overrides,a=r.env,c=(r.host,r.api),l=r.cachebust,d=r.noCache,h=r.preview,p=r.editing,f=r.frameEditing,v=r.options,g=r.params;if(o&&this.setUserAttributes(o),v&&(this.queryOptions=n(n(n({},v.locale&&{locale:v.locale}),v.includeRefs&&{includeRefs:v.includeRefs}),v.enrich&&{enrich:v.enrich})),s&&(this.overrides=s),M.indexOf(a||c)>-1&&(this.env=a||c),e.isEditing){var y=f||p||h;y&&"true"!==y&&(this.editingModel=y)}l&&(this.cachebust=!0),d&&(this.noCache=!0),h&&(this.preview=!0),i&&(this.overrideParams=g)}}catch(e){console.debug("Error parsing overrides from URL",e)}},e.prototype.messageFrameLoaded=function(){var e;null==(e=window.parent)||e.postMessage({type:"builder.loaded",data:{value:!0}},"*")},e.prototype.bindMessageListeners=function(){var t=this;addEventListener("message",function(n){var i,r,o,s;if(e.isTrustedHostForEvent(n)){var a=n.data;if(a)switch(a.type){case"builder.ping":null==(i=window.parent)||i.postMessage({type:"builder.pong",data:{}},"*");break;case"builder.register":if(n.source===window)break;var u=a.data;if(!u)break;var c=u.type,l=u.info,d=e.registry[c];d||(d=e.registry[c]=[]),d.push(l),e.registryChange.next(e.registry);break;case"builder.settingsChange":if(n.source===window)break;var h=a.data;if(!h)break;Object.assign(e.settings,h),e.settingsChange.next(e.settings);break;
vendor: 5,788 bytes, line 1
1case"builder.registerEditor":if(n.source===window)break;var p=a.data;if(!p)break;var f=!!p.component;e.editors.every(function(t,n){return p.name!==t.name||(t.component&&!f||(e.editors[n]=t),!1)});break;case"builder.triggerAnimation":e.animator.triggerAnimation(a.data);break;case"builder.contentUpdate":var v=a.data.key||a.data.alias||a.data.entry||a.data.modelName,g=a.data.data,y=t.observersByKey[v];y&&!t.noEditorUpdates[v]&&y.next([g]);break;case"builder.getComponents":null==(r=window.parent)||r.postMessage({type:"builder.components",data:e.components.map(function(t){return e.prepareComponentSpecToSend(t)})},"*");break;case"builder.editingModel":t.editingModel=a.data.model;break;case"builder.registerComponent":var m=a.data;e.addComponent(m);break;case"builder.blockContentLoading":"string"==typeof a.data.model&&(t.blockContentLoading=a.data.model);break;case"builder.editingMode":a.data?(t.editingMode=!0,document.body.classList.add("builder-editing")):(t.editingMode=!1,document.body.classList.remove("builder-editing"));break;case"builder.editingPageMode":e.editingPage=a.data;break;case"builder.overrideUserAttributes":var b=a.data;k(e.overrideUserAttributes,b),t.flushGetContentQueue(!0);break;case"builder.overrideTestGroup":var w=a.data,C=w.variationId,S=w.contentId;C&&S&&(t.setTestCookie(S,C),t.flushGetContentQueue(!0));break;case"builder.evaluate":var x=a.data.text,O=a.data.arguments||[],T=a.data.id,E=Function(x),A=void 0,I=null;try{A=E.apply(t,O)}catch(e){I=e instanceof Error?e:Error(String(e))}I?null==(o=window.parent)||o.postMessage({type:"builder.evaluateError",data:{id:T,error:I.message}},"*"):A&&"function"==typeof A.then?A.then(function(e){var t;null==(t=window.parent)||t.postMessage({type:"builder.evaluateResult",data:{id:T,result:e}},"*")}).catch(console.error):null==(s=window.parent)||s.postMessage({type:"builder.evaluateResult",data:{result:A,id:T}},"*")}}})},Object.defineProperty(e.prototype,"defaultCanTrack",{get:function(){return!!(e.isBrowser&&navigator.userAgent.trim()&&!navigator.userAgent.match(/bot|crawler|spider|robot|crawling|prerender|google|baidu|bing|msn|duckduckbot|teoma|slurp|yandex|phantom|headless|selenium|puppeteer/i)&&!this.browserTrackingDisabled)},enumerable:!1,configurable:!0}),e.prototype.init=function(e,t,n,i,r,o){return void 0===t&&(t=this.defaultCanTrack),n&&(this.request=n),i&&(this.response=i),this.hasOverriddenCanTrack||(this.canTrack=t),this.apiKey=e,r&&(this.authToken=r),o&&(this.apiVersion=o),this},Object.defineProperty(e.prototype,"previewingModel",{get:function(){var e=this.getLocation().search;return u.parse((e||"").substr(1))["builder.preview"]},enumerable:!1,configurable:!0}),e.prototype.getLocation=function(){var e,t={};return this.request?t=_(null!=(e=this.request.url)?e:""):"object"==typeof location&&(t=_(location.href)),""===t.pathname&&(t.pathname="/"),t},e.prototype.getUserAttributes=function(t){void 0===t&&(t=this.userAgent||"");var i={Android:function(){return t.match(/Android/i)},BlackBerry:function(){return t.match(/BlackBerry/i)},iOS:function(){return t.match(/iPhone|iPod/i)},Opera:function(){return t.match(/Opera Mini/i)},Windows:function(){return t.match(/IEMobile/i)||t.match(/WPDesktop/i)},any:function(){return i.Android()||i.BlackBerry()||i.iOS()||i.Opera()||i.Windows()}},r=t.match(/Tablet|iPad/i),o=this.getLocation();return n({urlPath:o.pathname,host:o.host||o.hostname,device:r?"tablet":i.any()?"mobile":"desktop"},e.overrideUserAttributes)},e.prototype.setUserAttributes=function(t){k(e.overrideUserAttributes,t),this.canTrack&&this.setCookie(e.attributesCookieName,JSON.stringify(this.getUserAttributes())),this.userAttributesChanged.next(t)},e.prototype.setTrackingUserAttributes=function(e){k(this.trackingUserAttributes,e)},e.prototype.get=function(t,i){void 0===i&&(i={});var r,o=this,s=i.locale||(null==(r=i.userAttributes)?void 0:r.locale)||this.getUserAttributes().locale;"noTraverse"in i||(i.noTraverse=!1);var a=n(n({},i),s&&{locale:String(s),userAttributes:n({locale:String(s)},i.userAttributes)});return e.isBrowser?(i.apiKey&&!this.apiKey&&(this.apiKey=i.apiKey),i.authToken&&!this.authToken&&(this.authToken=i.authToken),i.apiVersion&&!this.apiVersion&&(this.apiVersion=i.apiVersion)):((o=new e(i.apiKey||this.apiKey,i.req,i.res,void 0,i.authToken||this.authToken,i.apiVersion||this.apiVersion)).apiEndpoint=this.apiEndpoint,o.setUserAttributes(this.getUserAttributes())),o.queueGetContent(t,a).map(function(t){var n=t&&t[0];if(e.isStatic)return n;var i=n&&n.data;return i?(void 0!==i.blocksString&&(i.blocks=JSON.parse(i.blocksString),delete i.blocksString),{data:i,id:n.id,variationId:n.testVariationId||n.variationId||null,testVariationId:n.testVariationId||n.variationId||null,testVariationName:n.testVariationName||null,lastUpdated:n.lastUpdated||null}):null})},e.prototype.queueGetContent=function(t,i){var r=this;void 0===i&&(i={});var o=i.key||i.alias||t,a=this.editingModel===t,u=this.observersByKey[o];"DEMO"!==this.apiKey||this.overrides[o]||i.initialContent||(i.initialContent=[]);var c=i.initialContent;if(u&&(!u.value||i.cache))return u.value&&s(function(){u.next(u.value)}),u;if(a&&e.isBrowser&&parent.postMessage({type:"builder.updateContent",data:{options:i}},"*"),!c)if(this.getContentQueue||(this.getContentQueue=[]),this.getContentQueue.push(n(n({},i),{model:t,key:o})),this.getContentQueue&&this.getContentQueue.length>=this.contentPerRequest){var d=this.getContentQueue.slice();this.getContentQueue=[],s(function(){r.flushGetContentQueue(!1,d)})}else s(function(){r.flushGetContentQueue()});var h=new l(null);return this.observersByKey[o]=h,i.noEditorUpdates&&(this.noEditorUpdates[o]=!0),c&&s(function(){h.next(c)}),h},e.prototype.requestUrl=function(e,t){return w()(e,this.addSdkHeaders(t)).then(function(e){return e.json()})}
1,Object.defineProperty(e.prototype,"host",{get:function(){switch(this.env){case"qa":return"https://qa.builder.io";case"test":return"https://builder-io-test.web.app";case"fast":return"https://fast.builder.io";case"cloud":return"https://cloud.builder.io";case"cdn2":return"https://cdn2.builder.io";case"cdn-qa":return"https://cdn-qa.builder.io";case"development":case"dev":return"http://localhost:5000";case"cdn-prod":return"https://cdn.builder.io";default:return e.overrideHost||"https://cdn.builder.io"}},enumerable:!1,configurable:!0}),e.prototype.getSdkHeaders=function(){return e.sdkInfo?{"X-Builder-SDK":e.sdkInfo.name,"X-Builder-SDK-GEN":"1","X-Builder-SDK-Version":e.sdkInfo.version}:{}},e.prototype.addSdkHeaders=function(e){return n(n({},e),{headers:n(n({},e.headers),this.getSdkHeaders())})},e.prototype.makeFetchApiCall=function(e,t){return w()(e,this.addSdkHeaders(t))},e.prototype.flattenMongoQuery=function(e,t,n){for(var i in void 0===n&&(n={}),e){var r=e[i],o=t?t+"."+i:i;!r||"object"!=typeof r||Array.isArray(r)||Object.keys(r).find(function(e){return e.startsWith("$")})?n[o]=r:this.flattenMongoQuery(r,o,n)}return n},e.prototype.flushGetContentQueue=function(t,i){var r,o,s,a=this;if(void 0===t&&(t=!1),!this.apiKey)throw Error("Fetching content failed, expected apiKey to be defined instead got: ".concat(this.apiKey));if(this.apiVersion){if(!["v1","v3"].includes(this.apiVersion))throw Error("Invalid apiVersion: expected 'v1' or 'v3', received '".concat(this.apiVersion,"'"))}else this.apiVersion="v3";if(t||this.getContentQueue){var c=i||(t?this.priorContentQueue:this.getContentQueue)||[];this.getOverridesFromQueryString();var l=n(n({omit:null!=(r=c[0].omit)?r:"meta.componentsUsed",apiKey:this.apiKey},c[0].options),this.queryOptions);c[0].locale&&(l.locale=c[0].locale),c[0].fields&&(l.fields=c[0].fields),c[0].format&&(l.format=c[0].format),"noTraverse"in c[0]&&(l.noTraverse=c[0].noTraverse),"includeUnpublished"in c[0]&&(l.includeUnpublished=c[0].includeUnpublished),c[0].sort&&(l.sort=c[0].sort);var d=("u">typeof location?u.parseDeep(location.search.substr(1)):void 0)||{},h=c&&c[0].userAttributes?c[0].userAttributes:this.targetContent?this.getUserAttributes():{urlPath:this.getLocation().pathname};if(c.find(function(e){return!!e.includeUrl})){var p=this.getLocation();p.origin&&(l.url="".concat(p.origin).concat(p.pathname).concat(p.search))}var f=null==i?void 0:i.find(function(e){return e.url});if((null==f?void 0:f.url)&&(h.urlPath=f.url.split("?")[0]),l.userAttributes=JSON.stringify(h),t||i||(this.priorContentQueue=c,this.getContentQueue=null),(this.cachebust||N||d.cachebust||d["builder.cachebust"]||"production"!==this.env)&&(l.cachebust=!0),e.isEditing&&(l.isEditing=!0),(this.noCache||"production"!==this.env)&&(l.noCache=!0),R(this.overrides))for(var v in this.overrides)this.overrides.hasOwnProperty(v)&&(l["overrides.".concat(v)]=this.overrides[v]);for(var g=0;g<c.length;g++){var y=c[g],m=y.format;m&&(l.format=m),y.static&&(l.static=y.static),y.cachebust&&(l.cachebust=y.cachebust),j(y.cacheSeconds)&&(l.cacheSeconds=y.cacheSeconds),j(y.staleCacheSeconds)&&(l.staleCacheSeconds=y.staleCacheSeconds),"content"===this.apiEndpoint&&(l.includeRefs=!0),"query"===this.apiEndpoint&&("enrich"in y&&void 0!==y.enrich&&(l.enrich=y.enrich),y.enrichOptions&&this.flattenEnrichOptions(y.enrichOptions,"enrichOptions",l));for(var b=["prerender","extractCss","limit","offset","query","preview","model","entry","rev","static","includeRefs","fetchTotalCount"],w=0;w<b.length;w++){var v=b[w],C=y[v];void 0!==C&&("query"===this.apiEndpoint?(l.options=l.options||{},l.options[y.key]=l.options[y.key]||{},l.options[y.key][v]=JSON.stringify(C)):l[v]=JSON.stringify(C))}"content"===this.apiEndpoint&&("enrich"in y&&void 0!==y.enrich&&(l.enrich=y.enrich),y.enrichOptions&&this.flattenEnrichOptions(y.enrichOptions,"enrichOptions",l))}this.preview&&this.previewingModel===(null==(o=null==c?void 0:c[0])?void 0:o.model)&&(l.preview="true");var S=Object.keys(l).length>0,x=this.host,O=c.map(function(e){return encodeURIComponent(e.key)}).join(",");this.overrideParams&&k(l,A(u.parse(this.overrideParams),"apiKey"));var T=l.format,E="solid"===T||"react"===T,I=E||"query"===this.apiEndpoint;if("content"===this.apiEndpoint&&c[0].query){delete l.query;var P={query:c[0].query},B=this.flattenMongoQuery(P);for(var v in B)l[v]=JSON.stringify(B[v])}var U=u.stringifyDeep(l),M=n({headers:{}},c[0].fetchOptions);return this.authToken&&(M.headers=n(n({},M.headers),{Authorization:"Bearer ".concat(this.authToken)})),s=(E?"".concat(x,"/api/v1/codegen/").concat(this.apiKey,"/").concat(O):"query"===this.apiEndpoint?"".concat(x,"/api/v3/query/").concat(this.apiKey,"/").concat(O):"".concat(x,"/api/v3/content/").concat(c[0].model))+(l&&S?"?".concat(U):""),this.makeFetchApiCall(s,M).then(function(e){return e.json()}).then(function(t){for(var n=0;n<c.length;n++){var i=c[n],r=i.key;if(i.model!==a.blockContentLoading||i.noEditorUpdates){a.editingModel===i.model&&e.isEditing&&parent.postMessage({type:"builder.updateContent",data:{options:i}},"*");var o=a.observersByKey[r];if(!o)return;var s=I?t[r]:t.results;if(void 0!==t.totalCount&&(a.totalCountByKey[r]=t.totalCount),s){var u=e.isServer?s:a.processResultsForTests(s);o.next(u)}else{if((a.getLocation().search||"").includes("builder.preview="+i.model)){var l={id:"preview",name:"Preview",data:{}};o.next([l])}o.next([])}}}},function(e){for(var t=0;t<c.length;t++){var n=c[t],i=a.observersByKey[n.key];if(!i)return;i.error(e)}})}},e.prototype.processResultsForTests=function(e){var t,i=this,r=e.map(function(e){if(!e.variations)return e;var t=i.getTestCookie(e.id),r=t===e.id?e:e.variations[t];if(r)return n(n({},e),{data:r.data,variationId:t,testVariationId:t,testVariationName:r.name});if(i.canTrack&&e.variations&&R(e.variations)){var o=0,s=Math.random();for(var a in e.variations){var u=e.variations[a];if(s<(o+=u.testRatio)){i.setTestCookie(e.id,u.id);var c=u.name||(u.id===e.id?"Default variation":"");return n(n({},e),{data:u.data,variationId:u.id,testVariationId:u.id,variationName:c,testVariationName:c})}}i.setTestCookie(e.id,e.id)}return n(n(n({},e),{variationId:e.id}),e.variations&&R(e.variations)&&{testVariationId:e.id,testVariationName:"Default variation"})});return N&&(null==(t=window.parent)||t.postMessage({type:"builder.contentResults",data:{results:r}},"*")),r},e.prototype.getTestCookie=function(e){return this.getCookie("".concat(this.testCookiePrefix,".").concat(e))},e.prototype.setTestCookie=function(e,t){if(!this.canTrack)return void this.cookieQueue.push([e,t]);var n=new Date;return n.setDate(n.getDate()+30),this.setCookie("".concat(this.testCookiePrefix,".").concat(e),t,n)},e.prototype.getCookie=function(t){return this.cookies?this.cookies.get(t):e.isBrowser&&function(e){try{return decodeURIComponent(document.cookie.replace(RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null}catch(e){console.warn("Could not get cookie",e)}}(t)},e.prototype.setCookie=function(t,n,i){return this.cookies&&!(e.isServer&&e.isStatic)?this.cookies.set(t,n,{expires:i,secure:"https:"===this.getLocation().protocol}):e.isBrowser&&function(e,t,n){try{var i="";n&&(i="; expires="+n.toUTCString());var r=!V||"https:"===location.protocol;document.cookie=e+"="+(t||"")+i+"; path=/"+(r?"; secure; SameSite=None":"")}catch(e){console.warn("Could not set cookie",e)}}(t,n,i)},e.prototype.flattenEnrichOptions=function(e,t,n){for(var i=0,r=Object.entries(e);i<r.length;i++){var o=r[i],s=o[0],a=o[1],u="".concat(t,".").concat(s);a&&"object"==typeof a&&!Array.isArray(a)?this.flattenEnrichOptions(a,u,n):n[u]=a}},e.prototype.getContent=function(e,t){if(void 0===t&&(t={}),!this.apiKey)throw Error("Fetching content from model ".concat(e," failed, expected apiKey to be defined instead got: ").concat(this.apiKey));return this.queueGetContent(e,t)},e.prototype.getAll=function(t,r){void 0===r&&(r={});var o=this;e.isBrowser?(r.apiKey&&!this.apiKey&&(this.apiKey=r.apiKey),r.authToken&&!this.authToken&&(this.authToken=r.authToken),r.apiVersion&&!this.apiVersion&&(this.apiVersion=r.apiVersion)):((o=new e(r.apiKey||this.apiKey,r.req,r.res,!1,r.authToken||this.authToken,r.apiVersion||this.apiVersion)).apiEndpoint=this.apiEndpoint,o.setUserAttributes(this.getUserAttributes())),"noTraverse"in r||(r.noTraverse=!0);var s=r.key||e.isBrowser||r.fetchTotalCount?"".concat(t,":").concat((0,i.default)(A(r,"initialContent","req","res"))):void 0;return o.getContent(t,n(n({limit:30},r),{key:s})).promise().then(function(e){var t;return r.fetchTotalCount?{results:e,totalCount:void 0!==s&&null!=(t=o.totalCountByKey[s])?t:0}:e})},e.VERSION="6.3.0",e.components=[],e.isStatic=!0,e.animator=new x,e.nextTick=s,e.throttle=C,e.editors=[],e.trustedHosts=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"],e.plugins=[],e.actions=[],e.registry={},e.attributesCookieName="builder.userAttributes",e.registryChange=new l({}),e._editingPage=!1,e.isIframe=N,e.isBrowser=V,e.isReactNative=U,e.isServer=!V&&!U,e.previewingModel=e.isBrowser&&function(e,t){for(var n=(e.split("?")[1]||"").split("&"),i=0;i<n.length;i++){var r=n[i].split("=");if(decodeURIComponent(r[0])===t)return decodeURIComponent(r[1])}return null}(location.href,"builder.preview"),e.settings={},e.settingsChange=new l({}),e.isEditing=!!(N&&(document.referrer&&document.referrer.match(/builder\.io|localhost:1234/)||-1!==location.search.indexOf("builder.frameEditing="))),e.isPreviewing=!!(V&&(-1!==location.search.indexOf("builder.preview=")||-1!==location.search.indexOf("builder.frameEditing="))),e.isReact=!1,e.sdkInfo=void 0,e.overrideUserAttributes={},e}(),D=new Q(null,void 0,void 0,!0);Q.singletonInstance=D,e.s(["BehaviorSubject",0,l,"Builder",0,Q,"BuilderComponent",0,function(e){return void 0===e&&(e={}),Q.Component(e)},"Subscription",0,c,"builder",0,D,"isBrowser",0,V],18992)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.