forked from BuilderIO/builder
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
913c9654c7c07385ea6c92c43b997f49e840ebf2.c137a4cb7232ef77e527.js.download
1 lines (1 loc) · 9.02 KB
/
913c9654c7c07385ea6c92c43b997f49e840ebf2.c137a4cb7232ef77e527.js.download
1
(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[14],{"/uEC":function(e,t,r){"use strict";function o(e,t){null!==e&&void 0!==e&&e.variations&&Promise.all([r.e(12),r.e(0),r.e(11),r.e(13),r.e(236)]).then(r.bind(null,"8REp")).then((function(r){var o=r.track;Object.keys(e.variations).forEach((function(r){var n=e.variations[r];o("experiment viewed",{id:n.id,content_id:e.id,name:n.name,test_ratio:n.testRatio,type:"page",url:t})}))}))}r.d(t,"a",(function(){return o}))},"20a2":function(e,t,r){e.exports=r("nOHt")},"4JlD":function(e,t,r){"use strict";var o=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,r,s){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"===typeof e?a(c(e),(function(c){var s=encodeURIComponent(o(c))+r;return n(e[c])?a(e[c],(function(e){return s+encodeURIComponent(o(e))})).join(t):s+encodeURIComponent(o(e[c]))})).join(t):s?encodeURIComponent(o(s))+r+encodeURIComponent(o(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var r=[],o=0;o<e.length;o++)r.push(t(e[o],o));return r}var c=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},GRtX:function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return l}));var o=r("Ff2n"),n=r("QmWs"),a=r("YFqc"),c=r.n(a),s=r("AeFk");function i(e){var t;if("string"!==typeof e.href||e.href.startsWith("#"))return Object(s.c)("a",e);var r=Object(n.parse)(e.href);if(r.hostname&&!r.hostname.includes("builder.io")&&!r.hostname.includes("localhost")||null!==(t=r.hostname)&&void 0!==t&&t.includes("forum.builder.io"))return Object(s.c)("a",e);var a=r.pathname||"",i=a.startsWith("/c/")||"/"===a||a.startsWith("/m/")||a.startsWith("/blog")||a.startsWith("/hub"),l=e.children,p=Object(o.a)(e,["children"]),u=a+(r.search||"");return i?Object(s.c)(c.a,{href:u},Object(s.c)("a",p,l)):Object(s.c)("a",e)}var l=i},QmWs:function(e,t,r){var o,n=(o=r("s4NR"))&&"object"==typeof o&&"default"in o?o.default:o,a=/https?|ftp|gopher|file/;function c(e){"string"==typeof e&&(e=g(e));var t=function(e,t,r){var o=e.auth,n=e.hostname,a=e.protocol||"",c=e.pathname||"",s=e.hash||"",i=e.query||"",l=!1;o=o?encodeURIComponent(o).replace(/%3A/i,":")+"@":"",e.host?l=o+e.host:n&&(l=o+(~n.indexOf(":")?"["+n+"]":n),e.port&&(l+=":"+e.port)),i&&"object"==typeof i&&(i=t.encode(i));var p=e.search||i&&"?"+i||"";return a&&":"!==a.substr(-1)&&(a+=":"),e.slashes||(!a||r.test(a))&&!1!==l?(l="//"+(l||""),c&&"/"!==c[0]&&(c="/"+c)):l||(l=""),s&&"#"!==s[0]&&(s="#"+s),p&&"?"!==p[0]&&(p="?"+p),{protocol:a,host:l,pathname:c=c.replace(/[?#]/g,encodeURIComponent),search:p=p.replace("#","%23"),hash:s}}(e,n,a);return""+t.protocol+t.host+t.pathname+t.search+t.hash}var s="http://",i="w.w",l=s+i,p=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,u=/https?|ftp|gopher|file/;function f(e,t){var r="string"==typeof e?g(e):e;e="object"==typeof e?c(e):e;var o=g(t),n="";r.protocol&&!r.slashes&&(n=r.protocol,e=e.replace(r.protocol,""),n+="/"===t[0]||"/"===e[0]?"/":""),n&&o.protocol&&(n="",o.slashes||(n=o.protocol,t=t.replace(o.protocol,"")));var a=e.match(p);a&&!o.protocol&&(e=e.substr((n=a[1]+(a[2]||"")).length),/^\/\/[^/]/.test(t)&&(n=n.slice(0,-1)));var i=new URL(e,l+"/"),f=new URL(t,i).toString().replace(l,""),h=o.protocol||r.protocol;return h+=r.slashes||o.slashes?"//":"",!n&&h?f=f.replace(s,h):n&&(f=f.replace(s,"")),u.test(f)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==f.slice(-1)||(f=f.slice(0,-1)),n&&(f=n+("/"===f[0]?f.substr(1):f)),f}function h(){}h.prototype.parse=g,h.prototype.format=c,h.prototype.resolve=f,h.prototype.resolveObject=f;var d=/^https?|ftp|gopher|file/,v=/^(.*?)([#?].*)/,m=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,y=/^([a-z0-9.+-]*:)?\/\/\/*/i,b=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function g(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=!1),e&&"object"==typeof e&&e instanceof h)return e;var o=(e=e.trim()).match(v);e=o?o[1].replace(/\\/g,"/")+o[2]:e.replace(/\\/g,"/"),b.test(e)&&"/"!==e.slice(-1)&&(e+="/");var a=!/(^javascript)/.test(e)&&e.match(m),s=y.test(e),p="";a&&(d.test(a[1])||(p=a[1].toLowerCase(),e=""+a[2]+a[3]),a[2]||(s=!1,d.test(a[1])?(p=a[1],e=""+a[3]):e="//"+a[3]),3!==a[2].length&&1!==a[2].length||(p=a[1],e="/"+a[3]));var u,f=(o?o[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),g=f&&f[1],j=new h,O="",R="";try{u=new URL(e)}catch(n){O=n,p||r||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(R="/",e=e.substr(1));try{u=new URL(e,l)}catch(e){return j.protocol=p,j.href=p,j}}j.slashes=s&&!R,j.host=u.host===i?"":u.host,j.hostname=u.hostname===i?"":u.hostname.replace(/(\[|\])/g,""),j.protocol=O?p||null:u.protocol,j.search=u.search.replace(/\\/g,"%5C"),j.hash=u.hash.replace(/\\/g,"%5C");var C=e.split("#");!j.search&&~C[0].indexOf("?")&&(j.search="?"),j.hash||""!==C[1]||(j.hash="#"),j.query=t?n.decode(u.search.substr(1)):j.search.substr(1),j.pathname=R+(a?function(e){return e.replace(/['^|`]/g,(function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()})).replace(/((?:%[0-9A-F]{2})+)/g,(function(e,t){try{return decodeURIComponent(t).split("").map((function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()})).join("")}catch(e){return t}}))}(u.pathname):u.pathname),"about:"===j.protocol&&"blank"===j.pathname&&(j.protocol="",j.pathname=""),O&&"/"!==e[0]&&(j.pathname=j.pathname.substr(1)),p&&!d.test(p)&&"/"!==e.slice(-1)&&"/"===j.pathname&&(j.pathname=""),j.path=j.pathname+j.search,j.auth=[u.username,u.password].map(decodeURIComponent).filter(Boolean).join(":"),j.port=u.port,g&&!j.host.endsWith(g)&&(j.host+=g,j.port=g.slice(1)),j.href=R?""+j.pathname+j.search+j.hash:c(j);var w=/^(file)/.test(j.href)?["host","hostname"]:[];return Object.keys(j).forEach((function(e){~w.indexOf(e)||(j[e]=j[e]||null)})),j}t.parse=g,t.format=c,t.resolve=f,t.resolveObject=function(e,t){return g(f(e,t))},t.Url=h},USKV:function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return n}));var o="Builder.io: Drag & Drop Headless CMS",n="Drag and drop with your components, right within your existing site or app. Build and optimize digital experiences for any tech stack, visually."},XRWs:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var o=!1},YFqc:function(e,t,r){e.exports=r("cTJO")},cTJO:function(e,t,r){"use strict";var o=r("J4zp"),n=r("284h");t.__esModule=!0,t.default=void 0;var a=n(r("FdF9")),c=r("elyg"),s=r("nOHt"),i=r("vNVm"),l={};function p(e,t,r,o){if(e&&(0,c.isLocalURL)(t)){e.prefetch(t,r,o).catch((function(e){0}));var n=o&&"undefined"!==typeof o.locale?o.locale:e&&e.locale;l[t+"%"+r+(n?"%"+n:"")]=!0}}var u=function(e){var t=!1!==e.prefetch,r=(0,s.useRouter)(),n=r&&r.asPath||"/",u=a.default.useMemo((function(){var t=(0,c.resolveHref)(n,e.href,!0),r=o(t,2),a=r[0],s=r[1];return{href:a,as:e.as?(0,c.resolveHref)(n,e.as):s||a}}),[n,e.href,e.as]),f=u.href,h=u.as,d=e.children,v=e.replace,m=e.shallow,y=e.scroll,b=e.locale;"string"===typeof d&&(d=a.default.createElement("a",null,d));var g=a.Children.only(d),j=g&&"object"===typeof g&&g.ref,O=(0,i.useIntersection)({rootMargin:"200px"}),R=o(O,2),C=R[0],w=R[1],U=a.default.useCallback((function(e){C(e),j&&("function"===typeof j?j(e):"object"===typeof j&&(j.current=e))}),[j,C]);(0,a.useEffect)((function(){var e=w&&t&&(0,c.isLocalURL)(f),o="undefined"!==typeof b?b:r&&r.locale,n=l[f+"%"+h+(o?"%"+o:"")];e&&!n&&p(r,f,h,{locale:o})}),[h,f,w,b,t,r]);var L={ref:U,onClick:function(e){g.props&&"function"===typeof g.props.onClick&&g.props.onClick(e),e.defaultPrevented||function(e,t,r,o,n,a,s,i){("A"!==e.currentTarget.nodeName||!function(e){var t=e.currentTarget.target;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)&&(0,c.isLocalURL)(r))&&(e.preventDefault(),null==s&&(s=o.indexOf("#")<0),t[n?"replace":"push"](r,o,{shallow:a,locale:i,scroll:s}))}(e,r,f,h,v,m,y,b)},onMouseEnter:function(e){(0,c.isLocalURL)(f)&&(g.props&&"function"===typeof g.props.onMouseEnter&&g.props.onMouseEnter(e),p(r,f,h,{priority:!0}))}};if(e.passHref||"a"===g.type&&!("href"in g.props)){var x="undefined"!==typeof b?b:r&&r.locale,E=r&&r.isLocaleDomain&&(0,c.getDomainLocale)(h,x,r&&r.locales,r&&r.domainLocales);L.href=E||(0,c.addBasePath)((0,c.addLocale)(h,x,r&&r.defaultLocale))}return a.default.cloneElement(g,L)};t.default=u},kd2E:function(e,t,r){"use strict";function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,a){t=t||"&",r=r||"=";var c={};if("string"!==typeof e||0===e.length)return c;var s=/\+/g;e=e.split(t);var i=1e3;a&&"number"===typeof a.maxKeys&&(i=a.maxKeys);var l=e.length;i>0&&l>i&&(l=i);for(var p=0;p<l;++p){var u,f,h,d,v=e[p].replace(s,"%20"),m=v.indexOf(r);m>=0?(u=v.substr(0,m),f=v.substr(m+1)):(u=v,f=""),h=decodeURIComponent(u),d=decodeURIComponent(f),o(c,h)?n(c[h])?c[h].push(d):c[h]=[c[h],d]:c[h]=d}return c};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},s4NR:function(e,t,r){"use strict";t.decode=t.parse=r("kd2E"),t.encode=t.stringify=r("4JlD")}}]);