Full Site Editing - Version 3.16100

Version Description

Download this release

Release Info

Developer vindl
Plugin Icon wp plugin Full Site Editing
Version 3.16100
Comparing to
See all releases

Code changes from version 3.15741 to 3.16100

Files changed (43) hide show
  1. block-inserter-modifications/dist/contextual-tips.asset.php +1 -1
  2. common/dist/common.asset.php +1 -1
  3. common/dist/data-stores.asset.php +1 -1
  4. common/dist/data-stores.js +2 -2
  5. common/dist/disable-heic-images.asset.php +1 -1
  6. common/dist/hide-plugin-buttons-mobile.asset.php +1 -1
  7. dotcom-fse/dist/dotcom-fse.asset.php +1 -1
  8. editor-site-launch/dist/focused-launch.asset.php +1 -1
  9. editor-site-launch/dist/focused-launch.js +3 -3
  10. editor-site-launch/dist/gutenboarding-launch.asset.php +1 -1
  11. editor-site-launch/dist/gutenboarding-launch.js +6 -6
  12. editor-site-launch/dist/launch-button.asset.php +1 -1
  13. editor-site-launch/src/attach-focused-launch.tsx +3 -3
  14. editor-site-launch/src/attach-launch-sidebar.tsx +3 -3
  15. editor-site-launch/src/launch-menu/index.tsx +1 -1
  16. editor-site-launch/src/launch-menu/item.tsx +1 -1
  17. editor-site-launch/src/launch-modal/index.tsx +1 -1
  18. editor-site-launch/src/launch-progress/index.tsx +1 -1
  19. editor-site-launch/src/launch-sidebar/index.tsx +1 -1
  20. editor-site-launch/src/launch-step/index.tsx +1 -1
  21. editor-site-launch/src/launch-steps/domain-step/index.tsx +1 -1
  22. editor-site-launch/src/launch-steps/final-step/index.tsx +1 -1
  23. editor-site-launch/src/launch-steps/name-step/index.tsx +1 -1
  24. editor-site-launch/src/launch-steps/plan-step/index.tsx +1 -1
  25. editor-site-launch/src/launch/index.tsx +1 -1
  26. error-reporting/dist/error-reporting.asset.php +1 -1
  27. event-countdown-block/dist/event-countdown-block.asset.php +1 -1
  28. full-site-editing-plugin.php +2 -2
  29. global-styles/dist/global-styles.asset.php +1 -1
  30. jetpack-timeline/dist/jetpack-timeline.asset.php +1 -1
  31. newspack-blocks/dist/blog-posts-block-editor.asset.php +1 -1
  32. newspack-blocks/dist/blog-posts-block-view.asset.php +1 -1
  33. newspack-blocks/dist/carousel-block-editor.asset.php +1 -1
  34. newspack-blocks/dist/carousel-block-view.asset.php +1 -1
  35. posts-list-block/dist/posts-list-block.asset.php +1 -1
  36. readme.txt +1 -1
  37. starter-page-templates/dist/starter-page-templates.asset.php +1 -1
  38. starter-page-templates/index.tsx +0 -1
  39. starter-page-templates/page-patterns-plugin.tsx +1 -1
  40. tags-education/dist/tags-education.asset.php +1 -1
  41. tags-education/dist/tags-education.js +1 -1
  42. whats-new/dist/whats-new.asset.php +1 -1
  43. whats-new/dist/whats-new.js +1 -1
block-inserter-modifications/dist/contextual-tips.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill'), 'version' => '3e4b6c5868fc4762635b0e6f41878bf3');
1
+ <?php return array('dependencies' => array('lodash', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill'), 'version' => '0b24df11606ff9e73ee68f0f1c106cf0');
common/dist/common.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-polyfill'), 'version' => 'd11d07771894c10c2e277cb25516f7f8');
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => '35f57829e8a2dcc2aebb4a68b7226473');
common/dist/data-stores.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('react', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-polyfill'), 'version' => '42b3c90d4902412ef5757c613b3c0724');
1
+ <?php return array('dependencies' => array('react', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-polyfill'), 'version' => '14baf8ad5816a5b1bc5d092cb3f69c80');
common/dist/data-stores.js CHANGED
@@ -3,7 +3,7 @@
3
  object-assign
4
  (c) Sindre Sorhus
5
  @license MIT
6
- */var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(o){return!1}}()?Object.assign:function(e,i){for(var a,u,s=o(e),l=1;l<arguments.length;l++){for(var c in a=Object(arguments[l]))r.call(a,c)&&(s[c]=a[c]);if(t){u=t(a);for(var f=0;f<u.length;f++)n.call(a,u[f])&&(s[u[f]]=a[u[f]])}}return s}},9500:function(e,t,r){var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,u="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=u&&s&&"function"==typeof s.get?s.get:null,c=u&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,g=Object.prototype.toString,m=Function.prototype.toString,h=String.prototype.match,v="function"==typeof BigInt?BigInt.prototype.valueOf:null,b=Object.getOwnPropertySymbols,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,S="function"==typeof Symbol&&"object"==typeof Symbol.iterator,A=Object.prototype.propertyIsEnumerable,E=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null),P=r(3260).custom,O=P&&x(P)?P:null,M="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function C(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function I(e){return String(e).replace(/"/g,"&quot;")}function w(e){return!("[object Array]"!==L(e)||M&&"object"==typeof e&&M in e)}function x(e){if(S)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,n,o){var u=r||{};if(F(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(F(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=!F(u,"customInspect")||u.customInspect;if("boolean"!=typeof s)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(F(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return T(t,u);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var g=void 0===u.depth?5:u.depth;if(void 0===n&&(n=0),n>=g&&g>0&&"object"==typeof t)return w(t)?"[Array]":"[Object]";var b=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=Array(e.indent+1).join(" ")}return{base:r,prev:Array(t+1).join(r)}}(u,n);if(void 0===o)o=[];else if(R(o,t)>=0)return"[Circular]";function A(t,r,i){if(r&&(o=o.slice()).push(r),i){var a={depth:u.depth};return F(u,"quoteStyle")&&(a.quoteStyle=u.quoteStyle),e(t,a,n+1,o)}return e(t,u,n+1,o)}if("function"==typeof t){var P=function(e){if(e.name)return e.name;var t=h.call(m.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),$=B(t,A);return"[Function"+(P?": "+P:" (anonymous)")+"]"+($.length>0?" { "+$.join(", ")+" }":"")}if(x(t)){var N=S?String(t).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):_.call(t);return"object"!=typeof t||S?N:D(N)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var k="<"+String(t.nodeName).toLowerCase(),G=t.attributes||[],H=0;H<G.length;H++)k+=" "+G[H].name+"="+C(I(G[H].value),"double",u);return k+=">",t.childNodes&&t.childNodes.length&&(k+="..."),k+="</"+String(t.nodeName).toLowerCase()+">"}if(w(t)){if(0===t.length)return"[]";var V=B(t,A);return b&&!function(e){for(var t=0;t<e.length;t++)if(R(e[t],"\n")>=0)return!1;return!0}(V)?"["+U(V,b)+"]":"[ "+V.join(", ")+" ]"}if(function(e){return!("[object Error]"!==L(e)||M&&"object"==typeof e&&M in e)}(t)){var W=B(t,A);return 0===W.length?"["+String(t)+"]":"{ ["+String(t)+"] "+W.join(", ")+" }"}if("object"==typeof t&&s){if(O&&"function"==typeof t[O])return t[O]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{l.call(e)}catch(k){return!0}return e instanceof Map}catch(t){}return!1}(t)){var Y=[];return a.call(t,(function(e,r){Y.push(A(r,t,!0)+" => "+A(e,t))})),Z("Map",i.call(t),Y,b)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{i.call(e)}catch(t){return!0}return e instanceof Set}catch(r){}return!1}(t)){var K=[];return c.call(t,(function(e){K.push(A(e,t))})),Z("Set",l.call(t),K,b)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(k){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return j("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(k){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return j("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(t){}return!1}(t))return j("WeakRef");if(function(e){return!("[object Number]"!==L(e)||M&&"object"==typeof e&&M in e)}(t))return D(A(Number(t)));if(function(e){if(!e||"object"!=typeof e||!v)return!1;try{return v.call(e),!0}catch(t){}return!1}(t))return D(A(v.call(t)));if(function(e){return!("[object Boolean]"!==L(e)||M&&"object"==typeof e&&M in e)}(t))return D(y.call(t));if(function(e){return!("[object String]"!==L(e)||M&&"object"==typeof e&&M in e)}(t))return D(A(String(t)));if(!function(e){return!("[object Date]"!==L(e)||M&&"object"==typeof e&&M in e)}(t)&&!function(e){return!("[object RegExp]"!==L(e)||M&&"object"==typeof e&&M in e)}(t)){var z=B(t,A),q=E?E(t)===Object.prototype:t instanceof Object||t.constructor===Object,J=t instanceof Object?"":"null prototype",X=!q&&M&&Object(t)===t&&M in t?L(t).slice(8,-1):J?"Object":"",Q=(q||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(X||J?"["+[].concat(X||[],J||[]).join(": ")+"] ":"");return 0===z.length?Q+"{}":b?Q+"{"+U(z,b)+"}":Q+"{ "+z.join(", ")+" }"}return String(t)};var $=Object.prototype.hasOwnProperty||function(e){return e in this};function F(e,t){return $.call(e,t)}function L(e){return g.call(e)}function R(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function T(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return T(e.slice(0,t.maxStringLength),t)+n}return C(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,N),"single",t)}function N(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function D(e){return"Object("+e+")"}function j(e){return e+" { ? }"}function Z(e,t,r,n){return e+" ("+t+") {"+(n?U(r,n):r.join(", "))+"}"}function U(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+e.join(","+r)+"\n"+t.prev}function B(e,t){var r=w(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=F(e,o)?t(e[o],e):""}var i,a="function"==typeof b?b(e):[];if(S){i={};for(var u=0;u<a.length;u++)i["$"+a[u]]=a[u]}for(var s in e)F(e,s)&&(r&&String(Number(s))===s&&s<e.length||S&&i["$"+s]instanceof Symbol||(/[^\w$]/.test(s)?n.push(t(s,e)+": "+t(e[s],e)):n.push(s+": "+t(e[s],e))));if("function"==typeof b)for(var l=0;l<a.length;l++)A.call(e,a[l])&&n.push("["+t(a[l])+"]: "+t(e[a[l]],e));return n}},8650:function(e){var t,r=window.ProgressEvent,n=!!r;try{t=new r("loaded"),n="loaded"===t.type,t=null}catch(o){n=!1}e.exports=n?r:"function"==typeof document.createEvent?function(e,t){var r=document.createEvent("Event");return r.initEvent(e,!1,!1),t?(r.lengthComputable=Boolean(t.lengthComputable),r.loaded=Number(t.loaded)||0,r.total=Number(t.total)||0):(r.lengthComputable=!1,r.loaded=r.total=0),r}:function(e,t){var r=document.createEventObject();return r.type=e,t?(r.lengthComputable=Boolean(t.lengthComputable),r.loaded=Number(t.loaded)||0,r.total=Number(t.total)||0):(r.lengthComputable=!1,r.loaded=r.total=0),r}},5527:function(e){"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC1738",o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n,RFC3986:o}},9126:function(e,t,r){"use strict";var n=r(6845),o=r(9166),i=r(5527);e.exports={formats:i,parse:o,stringify:n}},9166:function(e,t,r){"use strict";var n=r(2493),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},u=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,u=r.depth>0&&/(\[[^[\]]*])/.exec(i),l=u?i.slice(0,u.index):i,c=[];if(l){if(!r.plainObjects&&o.call(Object.prototype,l)&&!r.allowPrototypes)return;c.push(l)}for(var f=0;r.depth>0&&null!==(u=a.exec(i))&&f<r.depth;){if(f+=1,!r.plainObjects&&o.call(Object.prototype,u[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(u[1])}return u&&c.push("["+i.slice(u.index)+"]"),function(e,t,r,n){for(var o=n?t:s(t,r),i=e.length-1;i>=0;--i){var a,u=e[i];if("[]"===u&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var l="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,c=parseInt(l,10);r.parseArrays||""!==l?!isNaN(c)&&u!==l&&String(c)===l&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(a=[])[c]=o:a[l]=o:a={0:o}}o=a}return o}(c,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var r,l={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,f),p=-1,y=t.charset;if(t.charsetSentinel)for(r=0;r<d.length;++r)0===d[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[r]?y="utf-8":"utf8=%26%2310003%3B"===d[r]&&(y="iso-8859-1"),p=r,r=d.length);for(r=0;r<d.length;++r)if(r!==p){var g,m,h=d[r],v=h.indexOf("]="),b=-1===v?h.indexOf("="):v+1;-1===b?(g=t.decoder(h,a.decoder,y,"key"),m=t.strictNullHandling?null:""):(g=t.decoder(h.slice(0,b),a.decoder,y,"key"),m=n.maybeMap(s(h.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,y,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===y&&(m=u(m)),h.indexOf("[]=")>-1&&(m=i(m)?[m]:m),o.call(l,g)?l[g]=n.combine(l[g],m):l[g]=m}return l}(e,r):e,f=r.plainObjects?Object.create(null):{},d=Object.keys(c),p=0;p<d.length;++p){var y=d[p],g=l(y,c[y],r,"string"==typeof e);f=n.merge(f,g,r)}return!0===r.allowSparse?f:n.compact(f)}},6845:function(e,t,r){"use strict";var n=r(4294),o=r(2493),i=r(5527),a=Object.prototype.hasOwnProperty,u={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,l=Array.prototype.push,c=function(e,t){l.apply(e,s(t)?t:[t])},f=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},y=function e(t,r,i,a,u,l,f,d,y,g,m,h,v,b,_){var S,A=t;if(_.has(t))throw new RangeError("Cyclic object value");if("function"==typeof f?A=f(r,A):A instanceof Date?A=g(A):"comma"===i&&s(A)&&(A=o.maybeMap(A,(function(e){return e instanceof Date?g(e):e}))),null===A){if(a)return l&&!v?l(r,p.encoder,b,"key",m):r;A=""}if("string"==typeof(S=A)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||o.isBuffer(A))return l?[h(v?r:l(r,p.encoder,b,"key",m))+"="+h(l(A,p.encoder,b,"value",m))]:[h(r)+"="+h(String(A))];var E,P=[];if(void 0===A)return P;if("comma"===i&&s(A))E=[{value:A.length>0?A.join(",")||null:void 0}];else if(s(f))E=f;else{var O=Object.keys(A);E=d?O.sort(d):O}for(var M=0;M<E.length;++M){var C=E[M],I="object"==typeof C&&void 0!==C.value?C.value:A[C];if(!u||null!==I){var w=s(A)?"function"==typeof i?i(r,C):r:r+(y?"."+C:"["+C+"]");_.set(t,!0);var x=n();c(P,e(I,w,i,a,u,l,f,d,y,g,m,h,v,b,x))}}return P};e.exports=function(e,t){var r,o=e,l=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=i.formatters[r],o=p.filter;return("function"==typeof e.filter||s(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof l.filter?o=(0,l.filter)("",o):s(l.filter)&&(r=l.filter);var f,d=[];if("object"!=typeof o||null===o)return"";f=t&&t.arrayFormat in u?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var g=u[f];r||(r=Object.keys(o)),l.sort&&r.sort(l.sort);for(var m=n(),h=0;h<r.length;++h){var v=r[h];l.skipNulls&&null===o[v]||c(d,y(o[v],v,g,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,m))}var b=d.join(l.delimiter),_=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),b.length>0?_+b:""}},2493:function(e,t,r){"use strict";var n=r(5527),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),u=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:u,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],a=o.obj[o.prop],u=Object.keys(a),s=0;s<u.length;++s){var l=u[s],c=a[l];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:a,prop:l}),r.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(o){return n}},encode:function(e,t,r,o,i){if(0===e.length)return e;var u=e;if("symbol"==typeof e?u=Symbol.prototype.toString.call(e):"string"!=typeof e&&(u=String(e)),"iso-8859-1"===r)return escape(u).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var s="",l=0;l<u.length;++l){var c=u.charCodeAt(l);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===n.RFC1738&&(40===c||41===c)?s+=u.charAt(l):c<128?s+=a[c]:c<2048?s+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?s+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(l+=1,c=65536+((1023&c)<<10|1023&u.charCodeAt(l)),s+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return s},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return i(t)&&!i(r)&&(a=u(t,n)),i(t)&&i(r)?(r.forEach((function(r,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,n):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var a=r[i];return o.call(t,i)?t[i]=e(t[i],a,n):t[i]=a,t}),a)}}},3631:function(e,t,r){"use strict";var n=r(9196),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=r(7201),a=r(4983),u=r(6590),s="function"==typeof Symbol&&Symbol.iterator;function l(e,t){return e&&"object"==typeof e&&null!=e.key?(r=e.key,n={"=":"=0",":":"=2"},"$"+(""+r).replace(/[=:]/g,(function(e){return n[e]}))):t.toString(36);var r,n}function c(e,t,r,n){var i,u=typeof e;if("undefined"!==u&&"boolean"!==u||(e=null),null===e||"string"===u||"number"===u||"object"===u&&e.$$typeof===o)return r(n,e,""===t?"."+l(e,0):t),1;var f=0,d=""===t?".":t+":";if(Array.isArray(e))for(var p=0;p<e.length;p++)f+=c(i=e[p],d+l(i,p),r,n);else{var y=function(e){var t=e&&(s&&e[s]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(y){0;for(var g,m=y.call(e),h=0;!(g=m.next()).done;)f+=c(i=g.value,d+l(i,h++),r,n)}else if("object"===u){0;var v=""+e;a(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===v?"object with keys {"+Object.keys(e).join(", ")+"}":v,"")}}return f}var f=/\/+/g;function d(e){return(""+e).replace(f,"$&/")}var p,y,g=m,m=function(e){var t=this;if(t.instancePool.length){var r=t.instancePool.pop();return t.call(r,e),r}return new t(e)},h=function(e){var t=this;a(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function v(e,t,r,n){this.result=e,this.keyPrefix=t,this.func=r,this.context=n,this.count=0}function b(e,t,r){var o,a,u=e.result,s=e.keyPrefix,l=e.func,c=e.context,f=l.call(c,t,e.count++);Array.isArray(f)?_(f,u,r,i.thatReturnsArgument):null!=f&&(n.isValidElement(f)&&(o=f,a=s+(!f.key||t&&t.key===f.key?"":d(f.key)+"/")+r,f=n.cloneElement(o,{key:a},void 0!==o.props?o.props.children:void 0)),u.push(f))}function _(e,t,r,n,o){var i="";null!=r&&(i=d(r)+"/");var a=v.getPooled(t,i,n,o);!function(e,t,r){null==e||c(e,"",t,r)}(e,b,a),v.release(a)}v.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},p=function(e,t,r,n){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,r,n),i}return new o(e,t,r,n)},(y=v).instancePool=[],y.getPooled=p||g,y.poolSize||(y.poolSize=10),y.release=h;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return u(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(n.isValidElement(e))return u(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;a(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var r in e)_(e[r],t,r,i.thatReturnsArgument);return t}},4294:function(e,t,r){"use strict";var n=r(7286),o=r(2680),i=r(9500),a=n("%TypeError%"),u=n("%WeakMap%",!0),s=n("%Map%",!0),l=o("WeakMap.prototype.get",!0),c=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),d=o("Map.prototype.get",!0),p=o("Map.prototype.set",!0),y=o("Map.prototype.has",!0),g=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new a("Side channel does not contain "+i(e))},get:function(n){if(u&&n&&("object"==typeof n||"function"==typeof n)){if(e)return l(e,n)}else if(s){if(t)return d(t,n)}else if(r)return function(e,t){var r=g(e,t);return r&&r.value}(r,n)},has:function(n){if(u&&n&&("object"==typeof n||"function"==typeof n)){if(e)return f(e,n)}else if(s){if(t)return y(t,n)}else if(r)return function(e,t){return!!g(e,t)}(r,n);return!1},set:function(n,o){u&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new u),c(e,n,o)):s?(t||(t=new s),p(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=g(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n}},9830:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(1184),o={contextDelimiter:"",onMissingKey:null};function i(e,t){var r;for(r in this.data=e,this.pluralForms={},this.options={},o)this.options[r]=void 0!==t&&r in t?t[r]:o[r]}i.prototype.getPluralForm=function(e,t){var r,o,i,a=this.pluralForms[e];return a||("function"!=typeof(i=(r=this.data[e][""])["Plural-Forms"]||r["plural-forms"]||r.plural_forms)&&(o=function(e){var t,r,n;for(t=e.split(";"),r=0;r<t.length;r++)if(0===(n=t[r].trim()).indexOf("plural="))return n.substr(7)}(r["Plural-Forms"]||r["plural-forms"]||r.plural_forms),i=(0,n.Z)(o)),a=this.pluralForms[e]=i),a(t)},i.prototype.dcnpgettext=function(e,t,r,n,o){var i,a,u;return i=void 0===o?0:this.getPluralForm(e,o),a=r,t&&(a=t+this.options.contextDelimiter+r),(u=this.data[e][a])&&u[i]?u[i]:(this.options.onMissingKey&&this.options.onMissingKey(r,e),0===i?r:n)}},6274:function(e,t,r){"use strict";r(8077).z2()},5608:function(e,t,r){"use strict";r(1635).z()},3857:function(e,t,r){"use strict";r(9734).register()},561:function(e,t,r){"use strict";r(2369).z2({client_id:"",client_secret:""})},9512:function(e,t,r){"use strict";r(182).z()},3600:function(e,t,r){"use strict";r.r(t),r.d(t,{receiveCategories:function(){return n},fetchDomainSuggestions:function(){return o},receiveDomainAvailability:function(){return i},receiveDomainSuggestionsSuccess:function(){return a},receiveDomainSuggestionsError:function(){return u}});const n=e=>({type:"RECEIVE_CATEGORIES",categories:e}),o=()=>({type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}),i=(e,t)=>({type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}),a=(e,t)=>({type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}),u=e=>({type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()})},584:function(e,t,r){"use strict";r.d(t,{L:function(){return n},r:function(){return o}});const n="automattic/domains/suggestions";let o;!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(o||(o={}))},8077:function(e,t,r){"use strict";r.d(t,{z2:function(){return f}});var n=r(9818),o=r(3661),i=r(3600),a=r(584),u=r(3717),s=r(2269),l=r(267);let c=!1;function f(){return c||(c=!0,(0,n.registerStore)(a.L,{actions:i,controls:o.ai,reducer:u.Z,resolvers:s,selectors:l})),a.L}},3717:function(e,t,r){"use strict";var n=r(9818),o=r(584),i=r(4211);const a={state:o.r.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},u=(0,n.combineReducers)({categories:(e=[],t)=>"RECEIVE_CATEGORIES"===t.type?t.categories:e,domainSuggestions:(e=a,t)=>"FETCH_DOMAIN_SUGGESTIONS"===t.type?{...e,state:o.r.Pending,errorMessage:null,pendingSince:t.timeStamp}:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?{...e,state:o.r.Success,data:{...e.data,[(0,i.Le)(t.queryObject)]:t.suggestions},errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?{...e,state:o.r.Failure,errorMessage:t.errorMessage,lastUpdated:t.timeStamp,pendingSince:void 0}:e,availability:(e={},t)=>"RECEIVE_DOMAIN_AVAILABILITY"===t.type?{...e,[t.domainName]:t.availability}:e});t.Z=u},2269:function(e,t,r){"use strict";r.r(t),r.d(t,{isAvailable:function(){return c},getCategories:function(){return f},__internalGetDomainSuggestions:function(){return d}});var n=r(1481),o=r(9126),i=r(6468),a=r.n(i),u=r(3661),s=r(3600),l=r(4211);const c=function*(e){const t=function(e){return`https://public-api.wordpress.com/rest/v1.3/domains/${encodeURIComponent(e)}/is-available?is_cart_pre_check=true`}(e);try{const{body:r}=yield(0,u.An)(t);return(0,s.receiveDomainAvailability)(e,r)}catch{return(0,s.receiveDomainAvailability)(e,{domain_name:e,mappable:"unknown",status:"unknown",supports_privacy:!1})}};function*f(){const{body:e}=yield(0,u.An)("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");return(0,s.receiveCategories)(e)}function*d(e){if(!e.query)return(0,s.receiveDomainSuggestionsError)("Empty query");yield(0,s.fetchDomainSuggestions)();try{const t=yield(0,u._9)({apiVersion:"1.1",path:"/domains/suggestions",query:(0,o.stringify)(e)});if(!Array.isArray(t))return(0,s.receiveDomainSuggestionsError)((0,n.Iu)("Invalid response from the server"));if(function(e,t){return a().isFQDN(t)&&!e.some((e=>e.domain_name.toLowerCase()===t))}(t,e.query)){const r={domain_name:e.query,unavailable:!0,cost:"",raw_price:0,currency_code:""};t.unshift(r)}const r=t.map((e=>e.unavailable?e:{...e,...e.raw_price&&e.currency_code&&{cost:(0,l._B)(e.raw_price,e.currency_code)}}));return(0,s.receiveDomainSuggestionsSuccess)(e,r)}catch(t){return(0,s.receiveDomainSuggestionsError)(t.message||(0,n.Iu)("Error while fetching server response"))}}},267:function(e,t,r){"use strict";r.r(t),r.d(t,{getCategories:function(){return a},getDomainSuggestions:function(){return u},getDomainState:function(){return s},getDomainErrorMessage:function(){return l},isLoadingDomainSuggestions:function(){return c},__internalGetDomainSuggestions:function(){return f},isAvailable:function(){return d},getDomainAvailabilities:function(){return p}});var n=r(9818),o=r(584),i=r(4211);const a=e=>[...e.categories.filter((({tier:e})=>null!==e)).sort(((e,t)=>e>t?1:-1)),...e.categories.filter((({tier:e})=>null===e)).sort(((e,t)=>e.title.localeCompare(t.title)))],u=(e,t,r={})=>{const a=(0,i.o0)(t,r);return(0,n.select)(o.L).__internalGetDomainSuggestions(a)},s=e=>e.domainSuggestions.state,l=e=>e.domainSuggestions.errorMessage,c=(e,t,r={})=>{const a=(0,i.o0)(t,r);return(0,n.select)("core/data").isResolving(o.L,"__internalGetDomainSuggestions",[a])},f=(e,t)=>e.domainSuggestions.data[(0,i.Le)(t)],d=(e,t)=>e.availability[t],p=e=>e.availability},4211:function(e,t,r){"use strict";r.d(t,{Le:function(){return i},_B:function(){return a},o0:function(){return u}});var n=r(1621),o=r(5695);const i=r.n(o)();function a(e,t){return(0,n.ZP)(e,t,{stripZeros:!0})}function u(e,t){return{include_wordpressdotcom:t.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:"variation2_front",...t,query:e.trim().toLocaleLowerCase()}}},6108:function(e,t,r){"use strict";r.r(t),r.d(t,{setSidebarFullscreen:function(){return i},unsetSidebarFullscreen:function(){return a},setStep:function(){return u},setSiteTitle:function(){return s},setDomain:function(){return l},unsetDomain:function(){return c},confirmDomainSelection:function(){return f},setDomainSearch:function(){return d},setPlanProductId:function(){return p},unsetPlanProductId:function(){return y},updatePlan:function(){return g},openSidebar:function(){return m},closeSidebar:function(){return h},openFocusedLaunch:function(){return v},closeFocusedLaunch:function(){return b},enableAnchorFm:function(){return _},showSiteTitleStep:function(){return S},setModalDismissible:function(){return A},unsetModalDismissible:function(){return E},showModalTitle:function(){return P},hideModalTitle:function(){return O},enablePersistentSuccessView:function(){return M},disablePersistentSuccessView:function(){return C}});var n=r(9818),o=r(9149);const i=()=>({type:"SET_SIDEBAR_FULLSCREEN"}),a=()=>({type:"UNSET_SIDEBAR_FULLSCREEN"}),u=e=>({type:"SET_STEP",step:e}),s=e=>({type:"SET_SITE_TITLE",title:e}),l=e=>({type:"SET_DOMAIN",domain:e}),c=()=>({type:"UNSET_DOMAIN"}),f=()=>({type:"CONFIRM_DOMAIN_SELECTION"}),d=e=>({type:"SET_DOMAIN_SEARCH",domainSearch:e}),p=function*(e){if(!(0,n.select)(o.Fs).isPlanProductFree(e)){const t=(0,n.select)(o.Fs).getPlanProductById(e),r=(null==t?void 0:t.billingPeriod)??"ANNUALLY";yield(e=>({type:"SET_PLAN_BILLING_PERIOD",billingPeriod:e}))(r)}return{type:"SET_PLAN_PRODUCT_ID",planProductId:e}},y=()=>({type:"UNSET_PLAN_PRODUCT_ID"});function g(e){return p(e)}const m=()=>({type:"OPEN_SIDEBAR"}),h=()=>({type:"CLOSE_SIDEBAR"}),v=()=>({type:"OPEN_FOCUSED_LAUNCH"}),b=()=>({type:"CLOSE_FOCUSED_LAUNCH"}),_=()=>({type:"ENABLE_ANCHOR_FM"}),S=()=>({type:"SHOW_SITE_TITLE_STEP"}),A=()=>({type:"SET_MODAL_DISMISSIBLE"}),E=()=>({type:"UNSET_MODAL_DISMISSIBLE"}),P=()=>({type:"SHOW_MODAL_TITLE"}),O=()=>({type:"HIDE_MODAL_TITLE"}),M=()=>({type:"ENABLE_SUCCESS_VIEW"}),C=()=>({type:"DISABLE_SUCCESS_VIEW"})},9149:function(e,t,r){"use strict";r.d(t,{Ls:function(){return n},Fs:function(){return o}});const n="automattic/launch",o="automattic/onboard/plans"},3610:function(e,t,r){"use strict";r.d(t,{y:function(){return n},M:function(){return o}});const n={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},o=[n.Name,n.Domain,n.Plan,n.Final]},1635:function(e,t,r){"use strict";r.d(t,{z:function(){return f}});var n=r(9818),o=r(3418),i=r(6108),a=r(9149),u=r(594),s=r(4648),l=r(7092);(0,n.use)(n.plugins.persistence,u.Z);let c=!1;function f(){return c||(c=!0,(0,n.registerStore)(a.Ls,{actions:i,controls:o.controls,reducer:s.Z,selectors:l,persist:["domain","domainSearch","planProductId","planBillingPeriod","confirmedDomainSelection","isAnchorFm","isSiteTitleStepVisible","siteTitle"]})),a.Ls}},594:function(e,t,r){"use strict";var n=r(492);t.Z=(0,n.Z)("WP_LAUNCH")},4648:function(e,t,r){"use strict";var n=r(9818),o=r(3610);const i=(0,n.combineReducers)({step:(e=o.y.Name,t)=>"SET_STEP"===t.type?t.step:e,siteTitle:(e,t)=>"SET_SITE_TITLE"===t.type?t.title:e,domain:(e,t)=>"SET_DOMAIN"===t.type?t.domain:"UNSET_DOMAIN"!==t.type?e:void 0,confirmedDomainSelection:(e=!1,t)=>"CONFIRM_DOMAIN_SELECTION"===t.type||e,domainSearch:(e="",t)=>"SET_DOMAIN_SEARCH"===t.type?t.domainSearch:e,planBillingPeriod:(e="ANNUALLY",t)=>"SET_PLAN_BILLING_PERIOD"===t.type?t.billingPeriod:e,planProductId:(e,t)=>"SET_PLAN_PRODUCT_ID"===t.type?t.planProductId:"UNSET_PLAN_PRODUCT_ID"!==t.type?e:void 0,isSidebarOpen:(e=!1,t)=>"OPEN_SIDEBAR"===t.type||"CLOSE_SIDEBAR"!==t.type&&e,isSidebarFullscreen:(e=!1,t)=>"SET_SIDEBAR_FULLSCREEN"===t.type||"UNSET_SIDEBAR_FULLSCREEN"!==t.type&&e,isAnchorFm:(e=!1,t)=>"ENABLE_ANCHOR_FM"===t.type||e,isFocusedLaunchOpen:(e=!1,t)=>"OPEN_FOCUSED_LAUNCH"===t.type||"CLOSE_FOCUSED_LAUNCH"!==t.type&&e,isSiteTitleStepVisible:(e=!1,t)=>"SHOW_SITE_TITLE_STEP"===t.type||e,isModalDismissible:(e=!0,t)=>"SET_MODAL_DISMISSIBLE"===t.type||"UNSET_MODAL_DISMISSIBLE"!==t.type&&e,isModalTitleVisible:(e=!0,t)=>"SHOW_MODAL_TITLE"===t.type||"HIDE_MODAL_TITLE"!==t.type&&e});t.Z=i},7092:function(e,t,r){"use strict";r.r(t),r.d(t,{getLaunchSequence:function(){return a},getLaunchStep:function(){return u},getState:function(){return s},hasPaidDomain:function(){return l},getSelectedDomain:function(){return c},getSelectedPlanProductId:function(){return f},getLastPlanBillingPeriod:function(){return d},isSelectedPlanPaid:function(){return p},hasSelectedDomainOrSubdomain:function(){return y},isStepCompleted:function(){return g},isFlowCompleted:function(){return m},isFlowStarted:function(){return h},getFirstIncompleteStep:function(){return v},getSiteTitle:function(){return b},getCurrentStep:function(){return _},getDomainSearch:function(){return S}});var n=r(9818),o=r(9149),i=r(3610);const a=()=>i.M,u=()=>i.y,s=e=>e,l=e=>!!e.domain&&!e.domain.is_free,c=e=>e.domain,f=e=>e.planProductId,d=e=>e.planBillingPeriod,p=e=>void 0!==e.planProductId&&!(0,n.select)(o.Fs).isPlanProductFree(e.planProductId),y=e=>!!c(e)||e.confirmedDomainSelection,g=(e,t)=>{if(t===i.y.Plan)return!!f(e);if(t===i.y.Name){const e=(0,n.select)("core").getEntityRecord("root","site",void 0);return!(null==e||!e.title)}return t===i.y.Domain&&(0,n.select)(o.Ls).hasSelectedDomainOrSubdomain()},m=e=>i.M.slice(0,i.M.length-1).every((t=>g(e,t))),h=e=>i.M.some((t=>g(e,t))),v=e=>i.M.find((t=>!g(e,t))),b=e=>null==e?void 0:e.siteTitle,_=e=>e.step,S=e=>e.domainSearch},492:function(e,t,r){"use strict";function n(e){const t=e,r=e+"_TS",n={},o={getItem:e=>n.hasOwnProperty(e)?n[e]:null,setItem(e,t){n[e]=String(t)},removeItem(e){delete n[e]}},i=(()=>{try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}})()?window.localStorage:o;return{storageKey:t,storage:{getItem(e){const n=i.getItem(r);return n&&(e=>{const t=Number(e);return Boolean(t)&&t+6048e5>Date.now()})(n)&&!new URLSearchParams(window.location.search).has("fresh")?i.getItem(e):(i.removeItem(t),i.removeItem(r),null)},setItem(e,t){i.setItem(r,JSON.stringify(Date.now())),i.setItem(e,t)}}}}r.d(t,{Z:function(){return n}})},9068:function(e,t,r){"use strict";r.r(t),r.d(t,{setFeatures:function(){return n},setFeaturesByType:function(){return o},setPlans:function(){return i},setPlanProducts:function(){return a},resetPlan:function(){return u}});const n=(e,t)=>({type:"SET_FEATURES",features:e,locale:t}),o=(e,t)=>({type:"SET_FEATURES_BY_TYPE",featuresByType:e,locale:t}),i=(e,t)=>({type:"SET_PLANS",plans:e,locale:t}),a=e=>({type:"SET_PLAN_PRODUCTS",products:e}),u=()=>({type:"RESET_PLAN"})},4703:function(e,t,r){"use strict";r.d(t,{Ls:function(){return n},Ho:function(){return o},TO:function(){return i},YS:function(){return a},Gz:function(){return u},hx:function(){return s},iL:function(){return l},B6:function(){return c},xT:function(){return f},AX:function(){return d},bS:function(){return p},UB:function(){return y},BV:function(){return g},nN:function(){return m}});const n="automattic/onboard/plans",o=1,i="free",a="personal",u="premium",s="business",l="ecommerce",c=[i,a,u,s,l],f=c,d=u,p=["personal-bundle","value_bundle","business-bundle","ecommerce-bundle"],y=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],g=["free_plan",...p,...y],m=["custom-domain","support-live","priority-support"]},9734:function(e,t,r){"use strict";r.r(t),r.d(t,{plansSlugs:function(){return a.B6},plansProductSlugs:function(){return a.BV},TIMELESS_PLAN_FREE:function(){return a.TO},TIMELESS_PLAN_PERSONAL:function(){return a.YS},TIMELESS_PLAN_PREMIUM:function(){return a.Gz},TIMELESS_PLAN_BUSINESS:function(){return a.hx},TIMELESS_PLAN_ECOMMERCE:function(){return a.iL},FREE_PLAN_PRODUCT_ID:function(){return a.Ho},register:function(){return f}});var n=r(9818),o=r(3661),i=r(9068),a=r(4703),u=r(9438),s=r(5261),l=r(7738);let c=!1;function f(){return c||(c=!0,(0,n.registerStore)(a.Ls,{resolvers:s,actions:i,controls:o.ai,reducer:u.ZP,selectors:l})),a.Ls}},9438:function(e,t,r){"use strict";var n=r(9818);const o=(0,n.combineReducers)({features:(e={},t)=>"SET_FEATURES"===t.type?{...e,[t.locale]:t.features}:e,featuresByType:(e={},t)=>"SET_FEATURES_BY_TYPE"===t.type?{...e,[t.locale]:t.featuresByType}:e,planProducts:(e=[],t)=>"SET_PLAN_PRODUCTS"===t.type?t.products:e,plans:(e={},t)=>"SET_PLANS"===t.type?{...e,[t.locale]:t.plans}:e});t.ZP=o},5261:function(e,t,r){"use strict";r.r(t),r.d(t,{getSupportedPlans:function(){return p}});var n=r(1621),o=r(9126),i=r(3661),a=r(9068),u=r(4703);function s(e){return(0,n.ZP)(12*e.raw_price,e.currency_code,{stripZeros:!0})}function l(e){return(0,n.ZP)(e.raw_price,e.currency_code,{stripZeros:!0})}function c(e,t){const r=Object.keys(t).find((r=>t[r].name===e));return!!r&&t[r].requiresAnnuallyBilledPlan}function f(e,t){const r=e.highlighted_features.map((e=>({name:e,requiresAnnuallyBilledPlan:c(e,t)})));return r.sort(((e,t)=>Number(t.requiresAnnuallyBilledPlan)-Number(e.requiresAnnuallyBilledPlan))),r}function d(e,t){const r=u.BV.reduce(((r,o)=>{const i=e.find((e=>e.product_slug===o));if(!i)return r;const a=t.find((e=>e.productIds.indexOf(i.product_id)>-1));var u;return r.push({productId:i.product_id,billingPeriod:31===i.bill_period?"MONTHLY":"ANNUALLY",periodAgnosticSlug:a.periodAgnosticSlug,storeSlug:i.product_slug,rawPrice:i.raw_price,pathSlug:i.path_slug,price:31===(null==i?void 0:i.bill_period)||0===i.raw_price?l(i):(u=i,(0,n.ZP)(u.raw_price/12,u.currency_code,{stripZeros:!0})),annualPrice:31===(null==i?void 0:i.bill_period)?s(i):l(i)}),r}),[]);return function(e){for(let t=0;t<u.bS.length;t++){const r=e.find((e=>e.storeSlug===u.bS[t])),n=e.find((e=>e.storeSlug===u.UB[t]));if(r&&n){const e=12*n.rawPrice,t=r.rawPrice,o=Math.round(100*(1-t/e));r.annualDiscount=o,n.annualDiscount=o}}}(r),r}function*p(e="en"){const t=yield(0,i._9)({path:"/plans",query:(0,o.stringify)({locale:e}),apiVersion:"1.5"}),{body:r}=yield(0,i.An)(`https://public-api.wordpress.com/wpcom/v2/plans/details?locale=${encodeURIComponent(e)}`,{mode:"cors",credentials:"omit"}),n=function(e){return e.reduce(((e,t)=>(e[t.id]={id:t.id,name:t.name,description:t.description,type:"checkbox",requiresAnnuallyBilledPlan:u.nN.indexOf(t.id)>-1},e)),{})}(r.features),s=r.plans.map((e=>{var t;const r=null===(t=e.nonlocalized_short_name)||void 0===t?void 0:t.toLowerCase();return{description:e.tagline,features:f(e,n),storage:e.storage,title:e.short_name,featuresSlugs:e.features.reduce(((e,t)=>(e[t]=!0,e)),{}),isFree:r===u.TO,isPopular:r===u.Gz,periodAgnosticSlug:r,productIds:e.products.map((({plan_id:e})=>e))}})),l=d(t,s);yield(0,a.setPlans)(s,e),yield(0,a.setPlanProducts)(l),yield(0,a.setFeatures)(n,e),yield(0,a.setFeaturesByType)(r.features_by_type,e)}},7738:function(e,t,r){"use strict";r.r(t),r.d(t,{getFeatures:function(){return u},getFeaturesByType:function(){return s},getPlanByProductId:function(){return l},getPlanProductById:function(){return c},getPlanByPeriodAgnosticSlug:function(){return f},getDefaultPaidPlan:function(){return d},getDefaultFreePlan:function(){return p},getSupportedPlans:function(){return y},getPlansProducts:function(){return g},getPrices:function(){return m},getPlanByPath:function(){return h},getPlanProduct:function(){return v},isPlanEcommerce:function(){return b},isPlanFree:function(){return _},isPlanProductFree:function(){return S}});var n=r(9818),o=r(7180),i=r.n(o),a=r(4703);const u=(e,t)=>e.features[t]??{},s=(e,t)=>e.featuresByType[t]??[],l=(e,t,r)=>{if(t)return(0,n.select)(a.Ls).getSupportedPlans(r).find((e=>e.productIds.indexOf(t)>-1))},c=(e,t)=>{if(t)return(0,n.select)(a.Ls).getPlansProducts().find((e=>e.productId===t))},f=(e,t,r)=>{if(t)return(0,n.select)(a.Ls).getSupportedPlans(r).find((e=>e.periodAgnosticSlug===t))},d=(e,t)=>(0,n.select)(a.Ls).getSupportedPlans(t).find((e=>e.periodAgnosticSlug===a.AX)),p=(e,t)=>(0,n.select)(a.Ls).getSupportedPlans(t).find((e=>e.periodAgnosticSlug===a.TO)),y=(e,t)=>e.plans[t]??[],g=e=>e.planProducts,m=(e,t)=>(i()("getPrices",{alternative:"getPlanProduct().price"}),(0,n.select)(a.Ls).getPlansProducts().reduce(((e,t)=>(e[t.storeSlug]=t.price,e)),{})),h=(e,t,r)=>{if(!t)return;const o=(0,n.select)(a.Ls).getPlansProducts().find((e=>e.pathSlug===t));return o?(0,n.select)(a.Ls).getSupportedPlans(r).find((e=>e.periodAgnosticSlug===o.periodAgnosticSlug)):void 0},v=(e,t,r)=>{if(t&&r)return(0,n.select)(a.Ls).getPlansProducts().find((e=>{const n=e.periodAgnosticSlug===t,o=t===a.TO||e.billingPeriod===r;return n&&o}))},b=(e,t)=>t===a.iL,_=(e,t)=>t===a.TO,S=(e,t)=>t===a.Ho},8459:function(e,t,r){"use strict";r.d(t,{d:function(){return i}});var n=r(3661),o=r(9639);function i(e){const t=()=>({type:"FETCH_NEW_SITE"}),r=e=>({type:"RECEIVE_NEW_SITE",response:e}),i=e=>({type:"RECEIVE_NEW_SITE_FAILED",error:e});const a=(e,t)=>({type:"RECEIVE_SITE_TITLE",siteId:e,title:t}),u=e=>({type:"LAUNCH_SITE_START",siteId:e}),s=e=>({type:"LAUNCH_SITE_SUCCESS",siteId:e}),l=(e,t)=>({type:"LAUNCH_SITE_FAILURE",siteId:e,error:t});return{receiveSiteDomains:(e,t)=>({type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}),saveSiteTitle:function*(e,t){try{yield(0,n._9)({path:`/sites/${encodeURIComponent(e)}/settings`,apiVersion:"1.4",body:{blogname:t},method:"POST"}),yield a(e,t)}catch(r){}},receiveSiteTitle:a,fetchNewSite:t,fetchSite:()=>({type:"FETCH_SITE"}),receiveNewSite:r,receiveNewSiteFailed:i,resetNewSiteFailed:()=>({type:"RESET_RECEIVE_NEW_SITE_FAILED"}),createSite:function*(t){yield{type:"FETCH_NEW_SITE"};try{const{authToken:o,...i}=t,a={...{client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},...i,validate:!1},u=yield(0,n._9)({path:"/sites/new",apiVersion:"1.1",method:"post",body:a,token:o});return yield r(u),!0}catch(o){return yield i(o),!1}},receiveSite:(e,t)=>({type:"RECEIVE_SITE",siteId:e,response:t}),receiveSiteFailed:(e,t)=>({type:"RECEIVE_SITE_FAILED",siteId:e,response:t}),reset:()=>({type:"RESET_SITE_STORE"}),launchSite:function*(e){yield u(e);try{yield(0,n._9)({path:`/sites/${e}/launch`,apiVersion:"1.1",method:"post"}),yield s(e)}catch(t){yield l(e,o.Hc.INTERNAL)}},launchSiteStart:u,launchSiteSuccess:s,launchSiteFailure:l,getCart:function*(e){return yield(0,n._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"})},setCart:function*(e,t){return yield(0,n._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t})}}}},2005:function(e,t,r){"use strict";r.d(t,{L:function(){return n}});const n="automattic/site"},2369:function(e,t,r){"use strict";r.d(t,{z2:function(){return f}});var n=r(9818),o=r(3661),i=r(8459),a=r(2005),u=r(2701),s=r(7862),l=r(4309);let c=!1;function f(e){return c||(c=!0,(0,n.registerStore)(a.L,{actions:(0,i.d)(e),controls:o.ai,reducer:u.ZP,resolvers:s,selectors:l})),a.L}},2701:function(e,t,r){"use strict";var n=r(9818),o=r(9639);const i=(0,n.combineReducers)({data:(e,t)=>{if("RECEIVE_NEW_SITE"===t.type){const{response:e}=t;return e.blog_details}if("RECEIVE_NEW_SITE_FAILED"!==t.type&&"RESET_SITE_STORE"!==t.type)return e},error:(e,t)=>{switch(t.type){case"FETCH_NEW_SITE":case"RECEIVE_NEW_SITE":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return;case"RECEIVE_NEW_SITE_FAILED":return{error:t.error.error,status:t.error.status,statusCode:t.error.statusCode,name:t.error.name,message:t.error.message}}return e},isFetching:(e=!1,t)=>{switch(t.type){case"FETCH_NEW_SITE":return!0;case"RECEIVE_NEW_SITE":case"RECEIVE_NEW_SITE_FAILED":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return!1}return e}}),a=(0,n.combineReducers)({isFetchingSiteDetails:(e=!1,t)=>{switch(t.type){case"FETCH_SITE":return!0;case"RECEIVE_SITE":case"RECEIVE_SITE_FAILED":return!1}return e},newSite:i,sites:(e={},t)=>{if("RECEIVE_SITE"===t.type)return{...e,[t.siteId]:t.response};if("RECEIVE_SITE_FAILED"===t.type){const{[t.siteId]:r,...n}=e;return{...n}}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?{...e,[t.siteId]:{...e[t.siteId],name:t.title}}:e},launchStatus:(e={},t)=>"LAUNCH_SITE_START"===t.type?{...e,[t.siteId]:{status:o.uS.IN_PROGRESS,errorCode:void 0}}:"LAUNCH_SITE_SUCCESS"===t.type?{...e,[t.siteId]:{status:o.uS.SUCCESS,errorCode:void 0}}:"LAUNCH_SITE_FAILURE"===t.type?{...e,[t.siteId]:{status:o.uS.FAILURE,errorCode:t.error}}:e,sitesDomains:(e={},t)=>"RECEIVE_SITE_DOMAINS"===t.type?{...e,[t.siteId]:t.domains}:e});t.ZP=a},7862:function(e,t,r){"use strict";r.r(t),r.d(t,{getSite:function(){return a},getSiteDomains:function(){return u}});var n=r(9818),o=r(3661),i=r(2005);function*a(e){yield(0,n.dispatch)(i.L).fetchSite();try{const t=yield(0,o._9)({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});yield(0,n.dispatch)(i.L).receiveSite(e,t)}catch(t){yield(0,n.dispatch)(i.L).receiveSiteFailed(e,void 0)}}function*u(e){try{const t=yield(0,o._9)({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});yield(0,n.dispatch)(i.L).receiveSiteDomains(e,null==t?void 0:t.domains)}catch(t){}}},4309:function(e,t,r){"use strict";r.r(t),r.d(t,{getState:function(){return a},getNewSite:function(){return u},getNewSiteError:function(){return s},isFetchingSite:function(){return l},isFetchingSiteDetails:function(){return c},isNewSite:function(){return f},getSite:function(){return d},getSiteTitle:function(){return p},isSiteLaunched:function(){return y},isSiteLaunching:function(){return g},getSiteDomains:function(){return m},getPrimarySiteDomain:function(){return h},getSiteSubdomain:function(){return v}});var n=r(9818),o=r(2005),i=r(9639);const a=e=>e,u=e=>e.newSite.data,s=e=>e.newSite.error,l=e=>e.newSite.isFetching,c=e=>e.isFetchingSiteDetails,f=e=>!!e.newSite.data,d=(e,t)=>e.sites[t],p=(e,t)=>{var r;return null===(r=(0,n.select)(o.L).getSite(t))||void 0===r?void 0:r.name},y=(e,t)=>{var r;return(null===(r=e.launchStatus[t])||void 0===r?void 0:r.status)===i.uS.SUCCESS},g=(e,t)=>{var r;return(null===(r=e.launchStatus[t])||void 0===r?void 0:r.status)===i.uS.IN_PROGRESS},m=(e,t)=>e.sitesDomains[t],h=(e,t)=>{var r;return null===(r=(0,n.select)(o.L).getSiteDomains(t))||void 0===r?void 0:r.find((e=>e.primary_domain))},v=(e,t)=>{var r;return null===(r=(0,n.select)(o.L).getSiteDomains(t))||void 0===r?void 0:r.find((e=>e.is_subdomain))}},9639:function(e,t,r){"use strict";let n,o,i;r.d(t,{Hc:function(){return o},uS:function(){return i}}),function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(n||(n={})),function(e){e.INTERNAL="internal"}(o||(o={})),function(e){e.UNINITIALIZED="unintialized",e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.FAILURE="failure"}(i||(i={}))},4366:function(e,t,r){"use strict";r.d(t,{L:function(){return n}});const n="automattic/wpcom-features"},2613:function(e,t,r){"use strict";r.d(t,{$:function(){return s}});var n=r(9734);const{TIMELESS_PLAN_PERSONAL:o,TIMELESS_PLAN_PREMIUM:i,TIMELESS_PLAN_BUSINESS:a,TIMELESS_PLAN_ECOMMERCE:u}=n,s={domain:{id:"domain",minSupportedPlan:o},store:{id:"store",minSupportedPlan:u},seo:{id:"seo",minSupportedPlan:a},plugins:{id:"plugins",minSupportedPlan:a},"ad-free":{id:"ad-free",minSupportedPlan:o},"image-storage":{id:"image-storage",minSupportedPlan:i},"video-storage":{id:"video-storage",minSupportedPlan:i},support:{id:"support",minSupportedPlan:a}}},182:function(e,t,r){"use strict";r.d(t,{z:function(){return l}});var n=r(9818),o=r(3418),i=r(4366),a=r(8638),u=r(335);let s=!1;function l(){return s||(s=!0,(0,n.registerStore)(i.L,{controls:o.controls,reducer:a.Z,selectors:u})),i.L}},8638:function(e,t,r){"use strict";var n=r(2613);t.Z=(e=n.$)=>e},335:function(e,t,r){"use strict";r.r(t),r.d(t,{getAllFeatures:function(){return o},getRecommendedPlanSlug:function(){return i}});var n=r(4703);const o=e=>e,i=(e,t)=>{const r=o(e);if(t.length)return t.reduce(((e,t)=>{const o=r[t].minSupportedPlan;return n.xT.indexOf(o)>n.xT.indexOf(e)?o:e}),r[t[0]].minSupportedPlan)}},3661:function(e,t,r){"use strict";r.d(t,{_9:function(){return o},An:function(){return i},ai:function(){return a}});var n=r(8552);const o=e=>({type:"WPCOM_REQUEST",request:e}),i=(e,t)=>({type:"FETCH_AND_PARSE",resource:e,options:t}),a={WPCOM_REQUEST:({request:e})=>(0,n.ZP)(e),FETCH_AND_PARSE:async({resource:e,options:t})=>{const r=await window.fetch(e,t);return{ok:r.ok,body:await r.json()}},RELOAD_PROXY:()=>{(0,n.sS)()},REQUEST_ALL_BLOGS_ACCESS:()=>(0,n.Vw)(),WAIT:({ms:e})=>new Promise((t=>setTimeout(t,e)))}},3759:function(e,t,r){"use strict";r.d(t,{X:function(){return o}});const n={AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function o(e){return n[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},1621:function(e,t,r){"use strict";r.d(t,{ZP:function(){return i}});var n=r(1481),o=r(3759);function i(e,t,r={}){const i=(0,o.X)(t);if(!i||isNaN(e))return null;const{decimal:a,grouping:u,precision:s,symbol:l}={...i,...r},c=e<0?"-":"";let f=(0,n.Y4)(Math.abs(e),{decimals:s,thousandsSep:u,decPoint:a});return r.stripZeros&&(f=function(e,t){const r=new RegExp(`\\${t}0+$`);return e.replace(r,"")}(f,a)),`${c}${l}${f}`}},914:function(e,t,r){"use strict";var n=r(2699),o=r(6668),i=r(8049),a=r.n(i),u=r(5079),s=r.n(u),l=r(7010),c=r(7839),f=r.n(c),d=r(9830),p=r(3);const y=a()("i18n-calypso"),g="number_format_decimals",m="number_format_thousands_sep",h="messages",v=[function(e){return e}],b={};function _(){O.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function S(e){return Array.prototype.slice.call(e)}function A(e){const t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&_("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",S(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&_("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",S(e));let r={};for(let n=0;n<e.length;n++)"object"==typeof e[n]&&(r=e[n]);if("string"==typeof t?r.original=t:"object"==typeof r.original&&(r.plural=r.original.plural,r.count=r.original.count,r.original=r.original.single),"string"==typeof e[1]&&(r.plural=e[1]),void 0===r.original)throw new Error("Translate called without a `string` value as first argument.");return r}function E(e,t){return e.dcnpgettext(h,t.context,t.original,t.plural,t.count)}function P(e,t){for(let r=v.length-1;r>=0;r--){const n=v[r](Object.assign({},t)),o=n.context?n.context+""+n.original:n.original;if(e.state.locale[o])return E(e.state.tannin,n)}return null}function O(){if(!(this instanceof O))return new O;this.defaultLocaleSlug="en",this.defaultPluralForms=e=>1===e?0:1,this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:f()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new n.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}O.throwErrors=!1,O.prototype.on=function(...e){this.stateObserver.on(...e)},O.prototype.off=function(...e){this.stateObserver.off(...e)},O.prototype.emit=function(...e){this.stateObserver.emit(...e)},O.prototype.numberFormat=function(e,t={}){const r="number"==typeof t?t:t.decimals||0,n=t.decPoint||this.state.numberFormatSettings.decimal_point||".",o=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return(0,p.Z)(e,r,n,o)},O.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},O.prototype.setLocale=function(e){var t,r,n;if(e&&e[""]&&e[""]["key-hash"]){const t=e[""]["key-hash"],r=function(e,t){const r=!1===t?"":String(t);if(void 0!==b[r+e])return b[r+e];const n=s()().update(e).digest("hex");return b[r+e]=t?n.substr(0,t):n},n=function(e){return function(t){return t.context?(t.original=r(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=r(t.original,e),t}};if("sha1"===t.substr(0,4))if(4===t.length)v.push(n(!1));else{const e=t.substr(5).indexOf("-");if(e<0){const e=Number(t.substr(5));v.push(n(e))}else{const r=Number(t.substr(5,e)),o=Number(t.substr(6+e));for(let e=r;e<=o;e++)v.push(n(e))}}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(r=this.state.locale[""])||void 0===r||null===(n=r.momentjs_locale)||void 0===n?void 0:n.textDirection),this.state.tannin=new d.Z({[h]:this.state.locale}),this.state.numberFormatSettings.decimal_point=E(this.state.tannin,A([g])),this.state.numberFormatSettings.thousands_sep=E(this.state.tannin,A([m])),this.state.numberFormatSettings.decimal_point===g&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===m&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},O.prototype.getLocale=function(){return this.state.locale},O.prototype.getLocaleSlug=function(){return this.state.localeSlug},O.prototype.getLocaleVariant=function(){return this.state.localeVariant},O.prototype.isRtl=function(){return"rtl"===this.state.textDirection},O.prototype.addTranslations=function(e){for(const t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},O.prototype.hasTranslation=function(){return!!P(this,A(arguments))},O.prototype.translate=function(){const e=A(arguments);let t=P(this,e);if(t||(t=E(this.state.tannin,e)),e.args){const n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=(0,o.Z)(...n)}catch(r){if(!window||!window.console)return;const e=this.throwErrors?"error":"warn";"string"!=typeof r?window.console[e](r):window.console[e]("i18n sprintf error:",n)}}return e.components&&(t=(0,l.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(r){t=r(t,e)})),t},O.prototype.reRenderTranslations=function(){y("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},O.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},O.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},t.Z=O},1481:function(e,t,r){"use strict";r.d(t,{Y4:function(){return s},Iu:function(){return l}});var n=r(914),o=r(3493),i=r(8373),a=r(975);const u=new n.Z;const s=u.numberFormat.bind(u),l=u.translate.bind(u),{useRtl:c,withRtl:f}=(u.configure.bind(u),u.setLocale.bind(u),u.getLocale.bind(u),u.getLocaleSlug.bind(u),u.getLocaleVariant.bind(u),u.isRtl.bind(u),u.addTranslations.bind(u),u.reRenderTranslations.bind(u),u.registerComponentUpdateHook.bind(u),u.registerTranslateHook.bind(u),u.state,u.stateObserver,u.on.bind(u),u.off.bind(u),u.emit.bind(u),(0,o.Z)(u),(0,a.Z)(u),(0,i.Z)(u))},3493:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(6666),o=r(9307),i=r(9196),a=r.n(i);function u(e){const t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(r){var i,u;const s=r.displayName||r.name||"";return u=i=class extends a().Component{constructor(...e){super(...e),(0,n.Z)(this,"boundForceUpdate",this.forceUpdate.bind(this))}componentDidMount(){e.on("change",this.boundForceUpdate)}componentWillUnmount(){e.off("change",this.boundForceUpdate)}render(){const n={locale:e.getLocaleSlug(),...this.props,...t};return(0,o.createElement)(r,n)}},(0,n.Z)(i,"displayName","Localized("+s+")"),u}}},3:function(e,t,r){"use strict";function n(e,t,r,n){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");const o=isFinite(+e)?+e:0,i=isFinite(+t)?Math.abs(t):0,a=void 0===n?",":n,u=void 0===r?".":r;let s="";return s=(i?
7
  /*
8
  * Exposes number format capability
9
  *
@@ -11,7 +11,7 @@ object-assign
11
  * @license See CREDITS.md
12
  * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
13
  */
14
- function(e,t){const r=Math.pow(10,t);return""+(Math.round(e*r)/r).toFixed(t)}(o,i):""+Math.round(o)).split("."),s[0].length>3&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(s[1]||"").length<i&&(s[1]=s[1]||"",s[1]+=new Array(i-s[1].length+1).join("0")),s.join(u)}r.d(t,{Z:function(){return n}})},8373:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(7896),o=r(9307),i=r(4333),a=r(9196),u=r(6718);function s(e){const t={getCurrentValue:()=>e.isRtl(),subscribe:t=>(e.on("change",t),()=>e.off("change",t))};function r(){return(0,u.useSubscription)(t)}const s=(0,i.createHigherOrderComponent)((e=>(0,a.forwardRef)(((t,i)=>{const a=r();return(0,o.createElement)(e,(0,n.Z)({},t,{isRtl:a,ref:i}))}))),"WithRTL");return{useRtl:r,withRtl:s}}},975:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(9196),o=r.n(n);function i(e){function t(){const t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}return function(){const[r,n]=o().useState(t);return o().useEffect((()=>{const r=()=>n(t);return e.on("change",r),()=>e.off("change",r)}),[]),r}}},8552:function(e,t,r){"use strict";r.d(t,{Vw:function(){return A},sS:function(){return C}});var n=r(8049),o=r.n(n),i=r(8650),a=r.n(i),u=r(8767),s=r(2884),l=r.n(s);const c=o()("wpcom-proxy-request"),f="https://public-api.wordpress.com",d=window.location.protocol+"//"+window.location.host,p=(()=>{let e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e})(),y=(()=>{try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}})();let g,m=null,h=!1;const v={},b=!!window.ProgressEvent&&!!window.FormData;c('using "origin": %o',d);const _=(e,t)=>{const r=Object.assign({},e);c("request(%o)",r),m||M();const n=(0,u.Z)();r.callback=n,r.supports_args=!0,r.supports_error_obj=!0,r.supports_progress=b,r.method=String(r.method||"GET").toUpperCase(),c("params object: %o",r);const o=new window.XMLHttpRequest;if(o.params=r,v[n]=o,"function"==typeof t){let e=!1;const r=r=>{if(e)return;e=!0;const n=r.response||o.response;c("body: ",n),c("headers: ",r.headers),t(null,n,r.headers)},n=r=>{if(e)return;e=!0;const n=r.error||r.err||r;c("error: ",n),c("headers: ",r.headers),t(n,null,r.headers)};o.addEventListener("load",r),o.addEventListener("abort",n),o.addEventListener("error",n)}return"function"==typeof r.onStreamRecord&&delete r.onStreamRecord,h?E(r):(c("buffering API request since proxying <iframe> is not yet loaded"),g.push(r)),o},S=(e,t)=>"function"==typeof t?_(e,t):new Promise(((t,r)=>{_(e,((e,n)=>{e?r(e):t(n)}))}));function A(){return S({metaAPI:{accessAllUsersBlogs:!0}})}function E(e){c("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!y)return;for(let t=0;t<e.length;t++){const r=O(e[t][1]);r&&(e[t][1]=new window.File([r],r.name,{type:r.type}))}}(e.formData),m.contentWindow.postMessage(p?JSON.stringify(e):e,f)}function P(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function O(e){return P(e)?e:"object"==typeof e&&P(e.fileContents)?e.fileContents:null}function M(){c("install()"),m&&(c("uninstall()"),window.removeEventListener("message",I),document.body.removeChild(m),h=!1,m=null),g=[],window.addEventListener("message",I),m=document.createElement("iframe"),m.src=f+"/wp-admin/rest-proxy/?v=2.0#"+d,m.style.display="none",document.body.appendChild(m)}const C=()=>{M()};function I(e){if(c("onmessage"),e.origin!==f)return void c("ignoring message... %o !== %o",e.origin,f);if(e.source!==m.contentWindow)return void c("ignoring message... iframe elements do not match");let{data:t}=e;if(!t)return c("no `data`, bailing");if("ready"===t)return void function(){if(c('proxy <iframe> "load" event'),h=!0,g){for(let e=0;e<g.length;e++)E(g[e]);g=null}}();if(p&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){c('got "progress" event: %o',e);const t=v[e.callbackId];if(t){const r=new(a())("progress",e);(e.upload?t.upload:t).dispatchEvent(r)}}(t);if(!t.length)return c("`e.data` doesn't appear to be an Array, bailing...");const r=t[t.length-1];if(!(r in v))return c("bailing, no matching request with callback: %o",r);const n=v[r],{params:o}=n,i=t[0];let u=t[1];const s=t[2];if(207===u||delete v[r],o.metaAPI?u="metaAPIupdated"===i?200:500:c("got %o status code for URL: %o",u,o.path),"object"==typeof s&&(s.status=u,d=s["Content-Type"],/^application[/]x-ndjson($|;)/.test(d))){w(n,new Error("stream mode processing is not yet implemented for wpcom-proxy-request"),s)}else{var d;if(u&&2===Math.floor(u/100))!function(e,t,r){const n=new(a())("load");n.data=n.body=n.response=t,n.headers=r,e.dispatchEvent(n)}(n,i,s);else{w(n,l()(o,u,i),s)}}}function w(e,t,r){const n=new(a())("error");n.error=n.err=t,n.headers=r,e.dispatchEvent(n)}t.ZP=S},8049:function(e,t,r){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(o=n))})),t.splice(o,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(r){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(r){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(2632)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,r){e.exports=function(e){function t(e){let r,o,i,a=null;function u(...e){if(!u.enabled)return;const n=u,o=Number(new Date),i=o-(r||o);n.diff=i,n.prev=r,n.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,o)=>{if("%%"===r)return"%";a++;const i=t.formatters[o];if("function"==typeof i){const t=e[a];r=i.call(n,t),e.splice(a,1),a--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return u.namespace=e,u.useColors=t.useColors(),u.color=t.selectColor(e),u.extend=n,u.destroy=t.destroy,Object.defineProperty(u,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{a=e}}),"function"==typeof t.init&&t.init(u),u}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),o=n.length;for(r=0;r<o;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(1378),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},3830:function(e,t,r){"use strict";var n=r(956);e.exports=function(){var e=n.apply(n,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},956:function(e){"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},8186:function(e,t,r){"use strict";
15
  /** @license React vundefined
16
  * use-subscription.production.min.js
17
  *
3
  object-assign
4
  (c) Sindre Sorhus
5
  @license MIT
6
+ */var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(o){return!1}}()?Object.assign:function(e,i){for(var a,u,s=o(e),l=1;l<arguments.length;l++){for(var c in a=Object(arguments[l]))r.call(a,c)&&(s[c]=a[c]);if(t){u=t(a);for(var f=0;f<u.length;f++)n.call(a,u[f])&&(s[u[f]]=a[u[f]])}}return s}},9500:function(e,t,r){var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,u="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=u&&s&&"function"==typeof s.get?s.get:null,c=u&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,g=Object.prototype.toString,m=Function.prototype.toString,h=String.prototype.match,v="function"==typeof BigInt?BigInt.prototype.valueOf:null,b=Object.getOwnPropertySymbols,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,S="function"==typeof Symbol&&"object"==typeof Symbol.iterator,A=Object.prototype.propertyIsEnumerable,E=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null),P=r(3260).custom,O=P&&x(P)?P:null,M="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function C(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function I(e){return String(e).replace(/"/g,"&quot;")}function w(e){return!("[object Array]"!==L(e)||M&&"object"==typeof e&&M in e)}function x(e){if(S)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,n,o){var u=r||{};if(F(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(F(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=!F(u,"customInspect")||u.customInspect;if("boolean"!=typeof s&&"symbol"!==s)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(F(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return T(t,u);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var g=void 0===u.depth?5:u.depth;if(void 0===n&&(n=0),n>=g&&g>0&&"object"==typeof t)return w(t)?"[Array]":"[Object]";var b=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=Array(e.indent+1).join(" ")}return{base:r,prev:Array(t+1).join(r)}}(u,n);if(void 0===o)o=[];else if(R(o,t)>=0)return"[Circular]";function A(t,r,i){if(r&&(o=o.slice()).push(r),i){var a={depth:u.depth};return F(u,"quoteStyle")&&(a.quoteStyle=u.quoteStyle),e(t,a,n+1,o)}return e(t,u,n+1,o)}if("function"==typeof t){var P=function(e){if(e.name)return e.name;var t=h.call(m.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),$=B(t,A);return"[Function"+(P?": "+P:" (anonymous)")+"]"+($.length>0?" { "+$.join(", ")+" }":"")}if(x(t)){var N=S?String(t).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):_.call(t);return"object"!=typeof t||S?N:D(N)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var k="<"+String(t.nodeName).toLowerCase(),G=t.attributes||[],H=0;H<G.length;H++)k+=" "+G[H].name+"="+C(I(G[H].value),"double",u);return k+=">",t.childNodes&&t.childNodes.length&&(k+="..."),k+="</"+String(t.nodeName).toLowerCase()+">"}if(w(t)){if(0===t.length)return"[]";var V=B(t,A);return b&&!function(e){for(var t=0;t<e.length;t++)if(R(e[t],"\n")>=0)return!1;return!0}(V)?"["+U(V,b)+"]":"[ "+V.join(", ")+" ]"}if(function(e){return!("[object Error]"!==L(e)||M&&"object"==typeof e&&M in e)}(t)){var W=B(t,A);return 0===W.length?"["+String(t)+"]":"{ ["+String(t)+"] "+W.join(", ")+" }"}if("object"==typeof t&&s){if(O&&"function"==typeof t[O])return t[O]();if("symbol"!==s&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{l.call(e)}catch(k){return!0}return e instanceof Map}catch(t){}return!1}(t)){var Y=[];return a.call(t,(function(e,r){Y.push(A(r,t,!0)+" => "+A(e,t))})),Z("Map",i.call(t),Y,b)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{i.call(e)}catch(t){return!0}return e instanceof Set}catch(r){}return!1}(t)){var K=[];return c.call(t,(function(e){K.push(A(e,t))})),Z("Set",l.call(t),K,b)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(k){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return j("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(k){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return j("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(t){}return!1}(t))return j("WeakRef");if(function(e){return!("[object Number]"!==L(e)||M&&"object"==typeof e&&M in e)}(t))return D(A(Number(t)));if(function(e){if(!e||"object"!=typeof e||!v)return!1;try{return v.call(e),!0}catch(t){}return!1}(t))return D(A(v.call(t)));if(function(e){return!("[object Boolean]"!==L(e)||M&&"object"==typeof e&&M in e)}(t))return D(y.call(t));if(function(e){return!("[object String]"!==L(e)||M&&"object"==typeof e&&M in e)}(t))return D(A(String(t)));if(!function(e){return!("[object Date]"!==L(e)||M&&"object"==typeof e&&M in e)}(t)&&!function(e){return!("[object RegExp]"!==L(e)||M&&"object"==typeof e&&M in e)}(t)){var z=B(t,A),q=E?E(t)===Object.prototype:t instanceof Object||t.constructor===Object,J=t instanceof Object?"":"null prototype",X=!q&&M&&Object(t)===t&&M in t?L(t).slice(8,-1):J?"Object":"",Q=(q||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(X||J?"["+[].concat(X||[],J||[]).join(": ")+"] ":"");return 0===z.length?Q+"{}":b?Q+"{"+U(z,b)+"}":Q+"{ "+z.join(", ")+" }"}return String(t)};var $=Object.prototype.hasOwnProperty||function(e){return e in this};function F(e,t){return $.call(e,t)}function L(e){return g.call(e)}function R(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function T(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return T(e.slice(0,t.maxStringLength),t)+n}return C(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,N),"single",t)}function N(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function D(e){return"Object("+e+")"}function j(e){return e+" { ? }"}function Z(e,t,r,n){return e+" ("+t+") {"+(n?U(r,n):r.join(", "))+"}"}function U(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+e.join(","+r)+"\n"+t.prev}function B(e,t){var r=w(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=F(e,o)?t(e[o],e):""}var i,a="function"==typeof b?b(e):[];if(S){i={};for(var u=0;u<a.length;u++)i["$"+a[u]]=a[u]}for(var s in e)F(e,s)&&(r&&String(Number(s))===s&&s<e.length||S&&i["$"+s]instanceof Symbol||(/[^\w$]/.test(s)?n.push(t(s,e)+": "+t(e[s],e)):n.push(s+": "+t(e[s],e))));if("function"==typeof b)for(var l=0;l<a.length;l++)A.call(e,a[l])&&n.push("["+t(a[l])+"]: "+t(e[a[l]],e));return n}},8650:function(e){var t,r=window.ProgressEvent,n=!!r;try{t=new r("loaded"),n="loaded"===t.type,t=null}catch(o){n=!1}e.exports=n?r:"function"==typeof document.createEvent?function(e,t){var r=document.createEvent("Event");return r.initEvent(e,!1,!1),t?(r.lengthComputable=Boolean(t.lengthComputable),r.loaded=Number(t.loaded)||0,r.total=Number(t.total)||0):(r.lengthComputable=!1,r.loaded=r.total=0),r}:function(e,t){var r=document.createEventObject();return r.type=e,t?(r.lengthComputable=Boolean(t.lengthComputable),r.loaded=Number(t.loaded)||0,r.total=Number(t.total)||0):(r.lengthComputable=!1,r.loaded=r.total=0),r}},5527:function(e){"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC1738",o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n,RFC3986:o}},9126:function(e,t,r){"use strict";var n=r(6845),o=r(9166),i=r(5527);e.exports={formats:i,parse:o,stringify:n}},9166:function(e,t,r){"use strict";var n=r(2493),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},u=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,u=r.depth>0&&/(\[[^[\]]*])/.exec(i),l=u?i.slice(0,u.index):i,c=[];if(l){if(!r.plainObjects&&o.call(Object.prototype,l)&&!r.allowPrototypes)return;c.push(l)}for(var f=0;r.depth>0&&null!==(u=a.exec(i))&&f<r.depth;){if(f+=1,!r.plainObjects&&o.call(Object.prototype,u[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(u[1])}return u&&c.push("["+i.slice(u.index)+"]"),function(e,t,r,n){for(var o=n?t:s(t,r),i=e.length-1;i>=0;--i){var a,u=e[i];if("[]"===u&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var l="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,c=parseInt(l,10);r.parseArrays||""!==l?!isNaN(c)&&u!==l&&String(c)===l&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(a=[])[c]=o:a[l]=o:a={0:o}}o=a}return o}(c,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var r,l={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,f),p=-1,y=t.charset;if(t.charsetSentinel)for(r=0;r<d.length;++r)0===d[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[r]?y="utf-8":"utf8=%26%2310003%3B"===d[r]&&(y="iso-8859-1"),p=r,r=d.length);for(r=0;r<d.length;++r)if(r!==p){var g,m,h=d[r],v=h.indexOf("]="),b=-1===v?h.indexOf("="):v+1;-1===b?(g=t.decoder(h,a.decoder,y,"key"),m=t.strictNullHandling?null:""):(g=t.decoder(h.slice(0,b),a.decoder,y,"key"),m=n.maybeMap(s(h.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,y,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===y&&(m=u(m)),h.indexOf("[]=")>-1&&(m=i(m)?[m]:m),o.call(l,g)?l[g]=n.combine(l[g],m):l[g]=m}return l}(e,r):e,f=r.plainObjects?Object.create(null):{},d=Object.keys(c),p=0;p<d.length;++p){var y=d[p],g=l(y,c[y],r,"string"==typeof e);f=n.merge(f,g,r)}return!0===r.allowSparse?f:n.compact(f)}},6845:function(e,t,r){"use strict";var n=r(4294),o=r(2493),i=r(5527),a=Object.prototype.hasOwnProperty,u={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,l=Array.prototype.push,c=function(e,t){l.apply(e,s(t)?t:[t])},f=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},y=function e(t,r,i,a,u,l,f,d,y,g,m,h,v,b,_){var S,A=t;if(_.has(t))throw new RangeError("Cyclic object value");if("function"==typeof f?A=f(r,A):A instanceof Date?A=g(A):"comma"===i&&s(A)&&(A=o.maybeMap(A,(function(e){return e instanceof Date?g(e):e}))),null===A){if(a)return l&&!v?l(r,p.encoder,b,"key",m):r;A=""}if("string"==typeof(S=A)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||o.isBuffer(A))return l?[h(v?r:l(r,p.encoder,b,"key",m))+"="+h(l(A,p.encoder,b,"value",m))]:[h(r)+"="+h(String(A))];var E,P=[];if(void 0===A)return P;if("comma"===i&&s(A))E=[{value:A.length>0?A.join(",")||null:void 0}];else if(s(f))E=f;else{var O=Object.keys(A);E=d?O.sort(d):O}for(var M=0;M<E.length;++M){var C=E[M],I="object"==typeof C&&void 0!==C.value?C.value:A[C];if(!u||null!==I){var w=s(A)?"function"==typeof i?i(r,C):r:r+(y?"."+C:"["+C+"]");_.set(t,!0);var x=n();c(P,e(I,w,i,a,u,l,f,d,y,g,m,h,v,b,x))}}return P};e.exports=function(e,t){var r,o=e,l=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=i.formatters[r],o=p.filter;return("function"==typeof e.filter||s(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof l.filter?o=(0,l.filter)("",o):s(l.filter)&&(r=l.filter);var f,d=[];if("object"!=typeof o||null===o)return"";f=t&&t.arrayFormat in u?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var g=u[f];r||(r=Object.keys(o)),l.sort&&r.sort(l.sort);for(var m=n(),h=0;h<r.length;++h){var v=r[h];l.skipNulls&&null===o[v]||c(d,y(o[v],v,g,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,m))}var b=d.join(l.delimiter),_=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),b.length>0?_+b:""}},2493:function(e,t,r){"use strict";var n=r(5527),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),u=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:u,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],a=o.obj[o.prop],u=Object.keys(a),s=0;s<u.length;++s){var l=u[s],c=a[l];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:a,prop:l}),r.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(o){return n}},encode:function(e,t,r,o,i){if(0===e.length)return e;var u=e;if("symbol"==typeof e?u=Symbol.prototype.toString.call(e):"string"!=typeof e&&(u=String(e)),"iso-8859-1"===r)return escape(u).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var s="",l=0;l<u.length;++l){var c=u.charCodeAt(l);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===n.RFC1738&&(40===c||41===c)?s+=u.charAt(l):c<128?s+=a[c]:c<2048?s+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?s+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(l+=1,c=65536+((1023&c)<<10|1023&u.charCodeAt(l)),s+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return s},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return i(t)&&!i(r)&&(a=u(t,n)),i(t)&&i(r)?(r.forEach((function(r,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,n):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var a=r[i];return o.call(t,i)?t[i]=e(t[i],a,n):t[i]=a,t}),a)}}},3631:function(e,t,r){"use strict";var n=r(9196),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=r(7201),a=r(4983),u=r(6590),s="function"==typeof Symbol&&Symbol.iterator;function l(e,t){return e&&"object"==typeof e&&null!=e.key?(r=e.key,n={"=":"=0",":":"=2"},"$"+(""+r).replace(/[=:]/g,(function(e){return n[e]}))):t.toString(36);var r,n}function c(e,t,r,n){var i,u=typeof e;if("undefined"!==u&&"boolean"!==u||(e=null),null===e||"string"===u||"number"===u||"object"===u&&e.$$typeof===o)return r(n,e,""===t?"."+l(e,0):t),1;var f=0,d=""===t?".":t+":";if(Array.isArray(e))for(var p=0;p<e.length;p++)f+=c(i=e[p],d+l(i,p),r,n);else{var y=function(e){var t=e&&(s&&e[s]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(y){0;for(var g,m=y.call(e),h=0;!(g=m.next()).done;)f+=c(i=g.value,d+l(i,h++),r,n)}else if("object"===u){0;var v=""+e;a(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===v?"object with keys {"+Object.keys(e).join(", ")+"}":v,"")}}return f}var f=/\/+/g;function d(e){return(""+e).replace(f,"$&/")}var p,y,g=m,m=function(e){var t=this;if(t.instancePool.length){var r=t.instancePool.pop();return t.call(r,e),r}return new t(e)},h=function(e){var t=this;a(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function v(e,t,r,n){this.result=e,this.keyPrefix=t,this.func=r,this.context=n,this.count=0}function b(e,t,r){var o,a,u=e.result,s=e.keyPrefix,l=e.func,c=e.context,f=l.call(c,t,e.count++);Array.isArray(f)?_(f,u,r,i.thatReturnsArgument):null!=f&&(n.isValidElement(f)&&(o=f,a=s+(!f.key||t&&t.key===f.key?"":d(f.key)+"/")+r,f=n.cloneElement(o,{key:a},void 0!==o.props?o.props.children:void 0)),u.push(f))}function _(e,t,r,n,o){var i="";null!=r&&(i=d(r)+"/");var a=v.getPooled(t,i,n,o);!function(e,t,r){null==e||c(e,"",t,r)}(e,b,a),v.release(a)}v.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},p=function(e,t,r,n){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,r,n),i}return new o(e,t,r,n)},(y=v).instancePool=[],y.getPooled=p||g,y.poolSize||(y.poolSize=10),y.release=h;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return u(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(n.isValidElement(e))return u(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;a(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var r in e)_(e[r],t,r,i.thatReturnsArgument);return t}},4294:function(e,t,r){"use strict";var n=r(7286),o=r(2680),i=r(9500),a=n("%TypeError%"),u=n("%WeakMap%",!0),s=n("%Map%",!0),l=o("WeakMap.prototype.get",!0),c=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),d=o("Map.prototype.get",!0),p=o("Map.prototype.set",!0),y=o("Map.prototype.has",!0),g=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new a("Side channel does not contain "+i(e))},get:function(n){if(u&&n&&("object"==typeof n||"function"==typeof n)){if(e)return l(e,n)}else if(s){if(t)return d(t,n)}else if(r)return function(e,t){var r=g(e,t);return r&&r.value}(r,n)},has:function(n){if(u&&n&&("object"==typeof n||"function"==typeof n)){if(e)return f(e,n)}else if(s){if(t)return y(t,n)}else if(r)return function(e,t){return!!g(e,t)}(r,n);return!1},set:function(n,o){u&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new u),c(e,n,o)):s?(t||(t=new s),p(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=g(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n}},9830:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(1184),o={contextDelimiter:"",onMissingKey:null};function i(e,t){var r;for(r in this.data=e,this.pluralForms={},this.options={},o)this.options[r]=void 0!==t&&r in t?t[r]:o[r]}i.prototype.getPluralForm=function(e,t){var r,o,i,a=this.pluralForms[e];return a||("function"!=typeof(i=(r=this.data[e][""])["Plural-Forms"]||r["plural-forms"]||r.plural_forms)&&(o=function(e){var t,r,n;for(t=e.split(";"),r=0;r<t.length;r++)if(0===(n=t[r].trim()).indexOf("plural="))return n.substr(7)}(r["Plural-Forms"]||r["plural-forms"]||r.plural_forms),i=(0,n.Z)(o)),a=this.pluralForms[e]=i),a(t)},i.prototype.dcnpgettext=function(e,t,r,n,o){var i,a,u;return i=void 0===o?0:this.getPluralForm(e,o),a=r,t&&(a=t+this.options.contextDelimiter+r),(u=this.data[e][a])&&u[i]?u[i]:(this.options.onMissingKey&&this.options.onMissingKey(r,e),0===i?r:n)}},6274:function(e,t,r){"use strict";r(8077).z2()},5608:function(e,t,r){"use strict";r(1635).z()},3857:function(e,t,r){"use strict";r(9734).register()},561:function(e,t,r){"use strict";r(2369).z2({client_id:"",client_secret:""})},9512:function(e,t,r){"use strict";r(182).z()},3600:function(e,t,r){"use strict";r.r(t),r.d(t,{receiveCategories:function(){return n},fetchDomainSuggestions:function(){return o},receiveDomainAvailability:function(){return i},receiveDomainSuggestionsSuccess:function(){return a},receiveDomainSuggestionsError:function(){return u}});const n=e=>({type:"RECEIVE_CATEGORIES",categories:e}),o=()=>({type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}),i=(e,t)=>({type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}),a=(e,t)=>({type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}),u=e=>({type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()})},584:function(e,t,r){"use strict";r.d(t,{L:function(){return n},r:function(){return o}});const n="automattic/domains/suggestions";let o;!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(o||(o={}))},8077:function(e,t,r){"use strict";r.d(t,{z2:function(){return f}});var n=r(9818),o=r(3661),i=r(3600),a=r(584),u=r(3717),s=r(2269),l=r(267);let c=!1;function f(){return c||(c=!0,(0,n.registerStore)(a.L,{actions:i,controls:o.ai,reducer:u.Z,resolvers:s,selectors:l})),a.L}},3717:function(e,t,r){"use strict";var n=r(9818),o=r(584),i=r(4211);const a={state:o.r.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},u=(0,n.combineReducers)({categories:(e=[],t)=>"RECEIVE_CATEGORIES"===t.type?t.categories:e,domainSuggestions:(e=a,t)=>"FETCH_DOMAIN_SUGGESTIONS"===t.type?{...e,state:o.r.Pending,errorMessage:null,pendingSince:t.timeStamp}:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?{...e,state:o.r.Success,data:{...e.data,[(0,i.Le)(t.queryObject)]:t.suggestions},errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?{...e,state:o.r.Failure,errorMessage:t.errorMessage,lastUpdated:t.timeStamp,pendingSince:void 0}:e,availability:(e={},t)=>"RECEIVE_DOMAIN_AVAILABILITY"===t.type?{...e,[t.domainName]:t.availability}:e});t.Z=u},2269:function(e,t,r){"use strict";r.r(t),r.d(t,{isAvailable:function(){return c},getCategories:function(){return f},__internalGetDomainSuggestions:function(){return d}});var n=r(1481),o=r(9126),i=r(6468),a=r.n(i),u=r(3661),s=r(3600),l=r(4211);const c=function*(e){const t=function(e){return`https://public-api.wordpress.com/rest/v1.3/domains/${encodeURIComponent(e)}/is-available?is_cart_pre_check=true`}(e);try{const{body:r}=yield(0,u.An)(t);return(0,s.receiveDomainAvailability)(e,r)}catch{return(0,s.receiveDomainAvailability)(e,{domain_name:e,mappable:"unknown",status:"unknown",supports_privacy:!1})}};function*f(){const{body:e}=yield(0,u.An)("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");return(0,s.receiveCategories)(e)}function*d(e){if(!e.query)return(0,s.receiveDomainSuggestionsError)("Empty query");yield(0,s.fetchDomainSuggestions)();try{const t=yield(0,u._9)({apiVersion:"1.1",path:"/domains/suggestions",query:(0,o.stringify)(e)});if(!Array.isArray(t))return(0,s.receiveDomainSuggestionsError)((0,n.Iu)("Invalid response from the server"));if(function(e,t){return a().isFQDN(t)&&!e.some((e=>e.domain_name.toLowerCase()===t))}(t,e.query)){const r={domain_name:e.query,unavailable:!0,cost:"",raw_price:0,currency_code:""};t.unshift(r)}const r=t.map((e=>e.unavailable?e:{...e,...e.raw_price&&e.currency_code&&{cost:(0,l._B)(e.raw_price,e.currency_code)}}));return(0,s.receiveDomainSuggestionsSuccess)(e,r)}catch(t){return(0,s.receiveDomainSuggestionsError)(t.message||(0,n.Iu)("Error while fetching server response"))}}},267:function(e,t,r){"use strict";r.r(t),r.d(t,{getCategories:function(){return a},getDomainSuggestions:function(){return u},getDomainState:function(){return s},getDomainErrorMessage:function(){return l},isLoadingDomainSuggestions:function(){return c},__internalGetDomainSuggestions:function(){return f},isAvailable:function(){return d},getDomainAvailabilities:function(){return p}});var n=r(9818),o=r(584),i=r(4211);const a=e=>[...e.categories.filter((({tier:e})=>null!==e)).sort(((e,t)=>e>t?1:-1)),...e.categories.filter((({tier:e})=>null===e)).sort(((e,t)=>e.title.localeCompare(t.title)))],u=(e,t,r={})=>{const a=(0,i.o0)(t,r);return(0,n.select)(o.L).__internalGetDomainSuggestions(a)},s=e=>e.domainSuggestions.state,l=e=>e.domainSuggestions.errorMessage,c=(e,t,r={})=>{const a=(0,i.o0)(t,r);return(0,n.select)("core/data").isResolving(o.L,"__internalGetDomainSuggestions",[a])},f=(e,t)=>e.domainSuggestions.data[(0,i.Le)(t)],d=(e,t)=>e.availability[t],p=e=>e.availability},4211:function(e,t,r){"use strict";r.d(t,{Le:function(){return i},_B:function(){return a},o0:function(){return u}});var n=r(1621),o=r(5695);const i=r.n(o)();function a(e,t){return(0,n.ZP)(e,t,{stripZeros:!0})}function u(e,t){return{include_wordpressdotcom:t.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:"variation2_front",...t,query:e.trim().toLocaleLowerCase()}}},6108:function(e,t,r){"use strict";r.r(t),r.d(t,{setSidebarFullscreen:function(){return i},unsetSidebarFullscreen:function(){return a},setStep:function(){return u},setSiteTitle:function(){return s},setDomain:function(){return l},unsetDomain:function(){return c},confirmDomainSelection:function(){return f},setDomainSearch:function(){return d},setPlanProductId:function(){return p},unsetPlanProductId:function(){return y},updatePlan:function(){return g},openSidebar:function(){return m},closeSidebar:function(){return h},openFocusedLaunch:function(){return v},closeFocusedLaunch:function(){return b},enableAnchorFm:function(){return _},showSiteTitleStep:function(){return S},setModalDismissible:function(){return A},unsetModalDismissible:function(){return E},showModalTitle:function(){return P},hideModalTitle:function(){return O},enablePersistentSuccessView:function(){return M},disablePersistentSuccessView:function(){return C}});var n=r(9818),o=r(9149);const i=()=>({type:"SET_SIDEBAR_FULLSCREEN"}),a=()=>({type:"UNSET_SIDEBAR_FULLSCREEN"}),u=e=>({type:"SET_STEP",step:e}),s=e=>({type:"SET_SITE_TITLE",title:e}),l=e=>({type:"SET_DOMAIN",domain:e}),c=()=>({type:"UNSET_DOMAIN"}),f=()=>({type:"CONFIRM_DOMAIN_SELECTION"}),d=e=>({type:"SET_DOMAIN_SEARCH",domainSearch:e}),p=function*(e){if(!(0,n.select)(o.Fs).isPlanProductFree(e)){const t=(0,n.select)(o.Fs).getPlanProductById(e),r=(null==t?void 0:t.billingPeriod)??"ANNUALLY";yield(e=>({type:"SET_PLAN_BILLING_PERIOD",billingPeriod:e}))(r)}return{type:"SET_PLAN_PRODUCT_ID",planProductId:e}},y=()=>({type:"UNSET_PLAN_PRODUCT_ID"});function g(e){return p(e)}const m=()=>({type:"OPEN_SIDEBAR"}),h=()=>({type:"CLOSE_SIDEBAR"}),v=()=>({type:"OPEN_FOCUSED_LAUNCH"}),b=()=>({type:"CLOSE_FOCUSED_LAUNCH"}),_=()=>({type:"ENABLE_ANCHOR_FM"}),S=()=>({type:"SHOW_SITE_TITLE_STEP"}),A=()=>({type:"SET_MODAL_DISMISSIBLE"}),E=()=>({type:"UNSET_MODAL_DISMISSIBLE"}),P=()=>({type:"SHOW_MODAL_TITLE"}),O=()=>({type:"HIDE_MODAL_TITLE"}),M=()=>({type:"ENABLE_SUCCESS_VIEW"}),C=()=>({type:"DISABLE_SUCCESS_VIEW"})},9149:function(e,t,r){"use strict";r.d(t,{Ls:function(){return n},Fs:function(){return o}});const n="automattic/launch",o="automattic/onboard/plans"},3610:function(e,t,r){"use strict";r.d(t,{y:function(){return n},M:function(){return o}});const n={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},o=[n.Name,n.Domain,n.Plan,n.Final]},1635:function(e,t,r){"use strict";r.d(t,{z:function(){return f}});var n=r(9818),o=r(3418),i=r(6108),a=r(9149),u=r(594),s=r(4648),l=r(7092);(0,n.use)(n.plugins.persistence,u.Z);let c=!1;function f(){return c||(c=!0,(0,n.registerStore)(a.Ls,{actions:i,controls:o.controls,reducer:s.Z,selectors:l,persist:["domain","domainSearch","planProductId","planBillingPeriod","confirmedDomainSelection","isAnchorFm","isSiteTitleStepVisible","siteTitle"]})),a.Ls}},594:function(e,t,r){"use strict";var n=r(492);t.Z=(0,n.Z)("WP_LAUNCH")},4648:function(e,t,r){"use strict";var n=r(9818),o=r(3610);const i=(0,n.combineReducers)({step:(e=o.y.Name,t)=>"SET_STEP"===t.type?t.step:e,siteTitle:(e,t)=>"SET_SITE_TITLE"===t.type?t.title:e,domain:(e,t)=>"SET_DOMAIN"===t.type?t.domain:"UNSET_DOMAIN"!==t.type?e:void 0,confirmedDomainSelection:(e=!1,t)=>"CONFIRM_DOMAIN_SELECTION"===t.type||e,domainSearch:(e="",t)=>"SET_DOMAIN_SEARCH"===t.type?t.domainSearch:e,planBillingPeriod:(e="ANNUALLY",t)=>"SET_PLAN_BILLING_PERIOD"===t.type?t.billingPeriod:e,planProductId:(e,t)=>"SET_PLAN_PRODUCT_ID"===t.type?t.planProductId:"UNSET_PLAN_PRODUCT_ID"!==t.type?e:void 0,isSidebarOpen:(e=!1,t)=>"OPEN_SIDEBAR"===t.type||"CLOSE_SIDEBAR"!==t.type&&e,isSidebarFullscreen:(e=!1,t)=>"SET_SIDEBAR_FULLSCREEN"===t.type||"UNSET_SIDEBAR_FULLSCREEN"!==t.type&&e,isAnchorFm:(e=!1,t)=>"ENABLE_ANCHOR_FM"===t.type||e,isFocusedLaunchOpen:(e=!1,t)=>"OPEN_FOCUSED_LAUNCH"===t.type||"CLOSE_FOCUSED_LAUNCH"!==t.type&&e,isSiteTitleStepVisible:(e=!1,t)=>"SHOW_SITE_TITLE_STEP"===t.type||e,isModalDismissible:(e=!0,t)=>"SET_MODAL_DISMISSIBLE"===t.type||"UNSET_MODAL_DISMISSIBLE"!==t.type&&e,isModalTitleVisible:(e=!0,t)=>"SHOW_MODAL_TITLE"===t.type||"HIDE_MODAL_TITLE"!==t.type&&e});t.Z=i},7092:function(e,t,r){"use strict";r.r(t),r.d(t,{getLaunchSequence:function(){return a},getLaunchStep:function(){return u},getState:function(){return s},hasPaidDomain:function(){return l},getSelectedDomain:function(){return c},getSelectedPlanProductId:function(){return f},getLastPlanBillingPeriod:function(){return d},isSelectedPlanPaid:function(){return p},hasSelectedDomainOrSubdomain:function(){return y},isStepCompleted:function(){return g},isFlowCompleted:function(){return m},isFlowStarted:function(){return h},getFirstIncompleteStep:function(){return v},getSiteTitle:function(){return b},getCurrentStep:function(){return _},getDomainSearch:function(){return S}});var n=r(9818),o=r(9149),i=r(3610);const a=()=>i.M,u=()=>i.y,s=e=>e,l=e=>!!e.domain&&!e.domain.is_free,c=e=>e.domain,f=e=>e.planProductId,d=e=>e.planBillingPeriod,p=e=>void 0!==e.planProductId&&!(0,n.select)(o.Fs).isPlanProductFree(e.planProductId),y=e=>!!c(e)||e.confirmedDomainSelection,g=(e,t)=>{if(t===i.y.Plan)return!!f(e);if(t===i.y.Name){const e=(0,n.select)("core").getEntityRecord("root","site",void 0);return!(null==e||!e.title)}return t===i.y.Domain&&(0,n.select)(o.Ls).hasSelectedDomainOrSubdomain()},m=e=>i.M.slice(0,i.M.length-1).every((t=>g(e,t))),h=e=>i.M.some((t=>g(e,t))),v=e=>i.M.find((t=>!g(e,t))),b=e=>null==e?void 0:e.siteTitle,_=e=>e.step,S=e=>e.domainSearch},492:function(e,t,r){"use strict";function n(e){const t=e,r=e+"_TS",n={},o={getItem:e=>n.hasOwnProperty(e)?n[e]:null,setItem(e,t){n[e]=String(t)},removeItem(e){delete n[e]}},i=(()=>{try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}})()?window.localStorage:o;return{storageKey:t,storage:{getItem(e){const n=i.getItem(r);return n&&(e=>{const t=Number(e);return Boolean(t)&&t+6048e5>Date.now()})(n)&&!new URLSearchParams(window.location.search).has("fresh")?i.getItem(e):(i.removeItem(t),i.removeItem(r),null)},setItem(e,t){i.setItem(r,JSON.stringify(Date.now())),i.setItem(e,t)}}}}r.d(t,{Z:function(){return n}})},9068:function(e,t,r){"use strict";r.r(t),r.d(t,{setFeatures:function(){return n},setFeaturesByType:function(){return o},setPlans:function(){return i},setPlanProducts:function(){return a},resetPlan:function(){return u}});const n=(e,t)=>({type:"SET_FEATURES",features:e,locale:t}),o=(e,t)=>({type:"SET_FEATURES_BY_TYPE",featuresByType:e,locale:t}),i=(e,t)=>({type:"SET_PLANS",plans:e,locale:t}),a=e=>({type:"SET_PLAN_PRODUCTS",products:e}),u=()=>({type:"RESET_PLAN"})},4703:function(e,t,r){"use strict";r.d(t,{Ls:function(){return n},Ho:function(){return o},TO:function(){return i},YS:function(){return a},Gz:function(){return u},hx:function(){return s},iL:function(){return l},B6:function(){return c},xT:function(){return f},AX:function(){return d},bS:function(){return p},UB:function(){return y},BV:function(){return g},nN:function(){return m}});const n="automattic/onboard/plans",o=1,i="free",a="personal",u="premium",s="business",l="ecommerce",c=[i,a,u,s,l],f=c,d=u,p=["personal-bundle","value_bundle","business-bundle","ecommerce-bundle"],y=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],g=["free_plan",...p,...y],m=["custom-domain","support-live","priority-support"]},9734:function(e,t,r){"use strict";r.r(t),r.d(t,{plansSlugs:function(){return a.B6},plansProductSlugs:function(){return a.BV},TIMELESS_PLAN_FREE:function(){return a.TO},TIMELESS_PLAN_PERSONAL:function(){return a.YS},TIMELESS_PLAN_PREMIUM:function(){return a.Gz},TIMELESS_PLAN_BUSINESS:function(){return a.hx},TIMELESS_PLAN_ECOMMERCE:function(){return a.iL},FREE_PLAN_PRODUCT_ID:function(){return a.Ho},register:function(){return f}});var n=r(9818),o=r(3661),i=r(9068),a=r(4703),u=r(9438),s=r(5261),l=r(7738);let c=!1;function f(){return c||(c=!0,(0,n.registerStore)(a.Ls,{resolvers:s,actions:i,controls:o.ai,reducer:u.ZP,selectors:l})),a.Ls}},9438:function(e,t,r){"use strict";var n=r(9818);const o=(0,n.combineReducers)({features:(e={},t)=>"SET_FEATURES"===t.type?{...e,[t.locale]:t.features}:e,featuresByType:(e={},t)=>"SET_FEATURES_BY_TYPE"===t.type?{...e,[t.locale]:t.featuresByType}:e,planProducts:(e=[],t)=>"SET_PLAN_PRODUCTS"===t.type?t.products:e,plans:(e={},t)=>"SET_PLANS"===t.type?{...e,[t.locale]:t.plans}:e});t.ZP=o},5261:function(e,t,r){"use strict";r.r(t),r.d(t,{getSupportedPlans:function(){return p}});var n=r(1621),o=r(9126),i=r(3661),a=r(9068),u=r(4703);function s(e){return(0,n.ZP)(12*e.raw_price,e.currency_code,{stripZeros:!0})}function l(e){return(0,n.ZP)(e.raw_price,e.currency_code,{stripZeros:!0})}function c(e,t){const r=Object.keys(t).find((r=>t[r].name===e));return!!r&&t[r].requiresAnnuallyBilledPlan}function f(e,t){const r=e.highlighted_features.map((e=>({name:e,requiresAnnuallyBilledPlan:c(e,t)})));return r.sort(((e,t)=>Number(t.requiresAnnuallyBilledPlan)-Number(e.requiresAnnuallyBilledPlan))),r}function d(e,t){const r=u.BV.reduce(((r,o)=>{const i=e.find((e=>e.product_slug===o));if(!i)return r;const a=t.find((e=>e.productIds.indexOf(i.product_id)>-1));var u;return r.push({productId:i.product_id,billingPeriod:31===i.bill_period?"MONTHLY":"ANNUALLY",periodAgnosticSlug:a.periodAgnosticSlug,storeSlug:i.product_slug,rawPrice:i.raw_price,pathSlug:i.path_slug,price:31===(null==i?void 0:i.bill_period)||0===i.raw_price?l(i):(u=i,(0,n.ZP)(u.raw_price/12,u.currency_code,{stripZeros:!0})),annualPrice:31===(null==i?void 0:i.bill_period)?s(i):l(i)}),r}),[]);return function(e){for(let t=0;t<u.bS.length;t++){const r=e.find((e=>e.storeSlug===u.bS[t])),n=e.find((e=>e.storeSlug===u.UB[t]));if(r&&n){const e=12*n.rawPrice,t=r.rawPrice,o=Math.round(100*(1-t/e));r.annualDiscount=o,n.annualDiscount=o}}}(r),r}function*p(e="en"){const t=yield(0,i._9)({path:"/plans",query:(0,o.stringify)({locale:e}),apiVersion:"1.5"}),{body:r}=yield(0,i.An)(`https://public-api.wordpress.com/wpcom/v2/plans/details?locale=${encodeURIComponent(e)}`,{mode:"cors",credentials:"omit"}),n=function(e){return e.reduce(((e,t)=>(e[t.id]={id:t.id,name:t.name,description:t.description,type:"checkbox",requiresAnnuallyBilledPlan:u.nN.indexOf(t.id)>-1},e)),{})}(r.features),s=r.plans.map((e=>{var t;const r=null===(t=e.nonlocalized_short_name)||void 0===t?void 0:t.toLowerCase();return{description:e.tagline,features:f(e,n),storage:e.storage,title:e.short_name,featuresSlugs:e.features.reduce(((e,t)=>(e[t]=!0,e)),{}),isFree:r===u.TO,isPopular:r===u.Gz,periodAgnosticSlug:r,productIds:e.products.map((({plan_id:e})=>e))}})),l=d(t,s);yield(0,a.setPlans)(s,e),yield(0,a.setPlanProducts)(l),yield(0,a.setFeatures)(n,e),yield(0,a.setFeaturesByType)(r.features_by_type,e)}},7738:function(e,t,r){"use strict";r.r(t),r.d(t,{getFeatures:function(){return u},getFeaturesByType:function(){return s},getPlanByProductId:function(){return l},getPlanProductById:function(){return c},getPlanByPeriodAgnosticSlug:function(){return f},getDefaultPaidPlan:function(){return d},getDefaultFreePlan:function(){return p},getSupportedPlans:function(){return y},getPlansProducts:function(){return g},getPrices:function(){return m},getPlanByPath:function(){return h},getPlanProduct:function(){return v},isPlanEcommerce:function(){return b},isPlanFree:function(){return _},isPlanProductFree:function(){return S}});var n=r(9818),o=r(7180),i=r.n(o),a=r(4703);const u=(e,t)=>e.features[t]??{},s=(e,t)=>e.featuresByType[t]??[],l=(e,t,r)=>{if(t)return(0,n.select)(a.Ls).getSupportedPlans(r).find((e=>e.productIds.indexOf(t)>-1))},c=(e,t)=>{if(t)return(0,n.select)(a.Ls).getPlansProducts().find((e=>e.productId===t))},f=(e,t,r)=>{if(t)return(0,n.select)(a.Ls).getSupportedPlans(r).find((e=>e.periodAgnosticSlug===t))},d=(e,t)=>(0,n.select)(a.Ls).getSupportedPlans(t).find((e=>e.periodAgnosticSlug===a.AX)),p=(e,t)=>(0,n.select)(a.Ls).getSupportedPlans(t).find((e=>e.periodAgnosticSlug===a.TO)),y=(e,t)=>e.plans[t]??[],g=e=>e.planProducts,m=(e,t)=>(i()("getPrices",{alternative:"getPlanProduct().price"}),(0,n.select)(a.Ls).getPlansProducts().reduce(((e,t)=>(e[t.storeSlug]=t.price,e)),{})),h=(e,t,r)=>{if(!t)return;const o=(0,n.select)(a.Ls).getPlansProducts().find((e=>e.pathSlug===t));return o?(0,n.select)(a.Ls).getSupportedPlans(r).find((e=>e.periodAgnosticSlug===o.periodAgnosticSlug)):void 0},v=(e,t,r)=>{if(t&&r)return(0,n.select)(a.Ls).getPlansProducts().find((e=>{const n=e.periodAgnosticSlug===t,o=t===a.TO||e.billingPeriod===r;return n&&o}))},b=(e,t)=>t===a.iL,_=(e,t)=>t===a.TO,S=(e,t)=>t===a.Ho},8459:function(e,t,r){"use strict";r.d(t,{d:function(){return i}});var n=r(3661),o=r(9639);function i(e){const t=()=>({type:"FETCH_NEW_SITE"}),r=e=>({type:"RECEIVE_NEW_SITE",response:e}),i=e=>({type:"RECEIVE_NEW_SITE_FAILED",error:e});const a=(e,t)=>({type:"RECEIVE_SITE_TITLE",siteId:e,title:t}),u=e=>({type:"LAUNCH_SITE_START",siteId:e}),s=e=>({type:"LAUNCH_SITE_SUCCESS",siteId:e}),l=(e,t)=>({type:"LAUNCH_SITE_FAILURE",siteId:e,error:t});return{receiveSiteDomains:(e,t)=>({type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}),saveSiteTitle:function*(e,t){try{yield(0,n._9)({path:`/sites/${encodeURIComponent(e)}/settings`,apiVersion:"1.4",body:{blogname:t},method:"POST"}),yield a(e,t)}catch(r){}},receiveSiteTitle:a,fetchNewSite:t,fetchSite:()=>({type:"FETCH_SITE"}),receiveNewSite:r,receiveNewSiteFailed:i,resetNewSiteFailed:()=>({type:"RESET_RECEIVE_NEW_SITE_FAILED"}),createSite:function*(t){yield{type:"FETCH_NEW_SITE"};try{const{authToken:o,...i}=t,a={...{client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},...i,validate:!1},u=yield(0,n._9)({path:"/sites/new",apiVersion:"1.1",method:"post",body:a,token:o});return yield r(u),!0}catch(o){return yield i(o),!1}},receiveSite:(e,t)=>({type:"RECEIVE_SITE",siteId:e,response:t}),receiveSiteFailed:(e,t)=>({type:"RECEIVE_SITE_FAILED",siteId:e,response:t}),reset:()=>({type:"RESET_SITE_STORE"}),launchSite:function*(e){yield u(e);try{yield(0,n._9)({path:`/sites/${e}/launch`,apiVersion:"1.1",method:"post"}),yield s(e)}catch(t){yield l(e,o.Hc.INTERNAL)}},launchSiteStart:u,launchSiteSuccess:s,launchSiteFailure:l,getCart:function*(e){return yield(0,n._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"})},setCart:function*(e,t){return yield(0,n._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t})}}}},2005:function(e,t,r){"use strict";r.d(t,{L:function(){return n}});const n="automattic/site"},2369:function(e,t,r){"use strict";r.d(t,{z2:function(){return f}});var n=r(9818),o=r(3661),i=r(8459),a=r(2005),u=r(2701),s=r(7862),l=r(4309);let c=!1;function f(e){return c||(c=!0,(0,n.registerStore)(a.L,{actions:(0,i.d)(e),controls:o.ai,reducer:u.ZP,resolvers:s,selectors:l})),a.L}},2701:function(e,t,r){"use strict";var n=r(9818),o=r(9639);const i=(0,n.combineReducers)({data:(e,t)=>{if("RECEIVE_NEW_SITE"===t.type){const{response:e}=t;return e.blog_details}if("RECEIVE_NEW_SITE_FAILED"!==t.type&&"RESET_SITE_STORE"!==t.type)return e},error:(e,t)=>{switch(t.type){case"FETCH_NEW_SITE":case"RECEIVE_NEW_SITE":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return;case"RECEIVE_NEW_SITE_FAILED":return{error:t.error.error,status:t.error.status,statusCode:t.error.statusCode,name:t.error.name,message:t.error.message}}return e},isFetching:(e=!1,t)=>{switch(t.type){case"FETCH_NEW_SITE":return!0;case"RECEIVE_NEW_SITE":case"RECEIVE_NEW_SITE_FAILED":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return!1}return e}}),a=(0,n.combineReducers)({isFetchingSiteDetails:(e=!1,t)=>{switch(t.type){case"FETCH_SITE":return!0;case"RECEIVE_SITE":case"RECEIVE_SITE_FAILED":return!1}return e},newSite:i,sites:(e={},t)=>{if("RECEIVE_SITE"===t.type)return{...e,[t.siteId]:t.response};if("RECEIVE_SITE_FAILED"===t.type){const{[t.siteId]:r,...n}=e;return{...n}}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?{...e,[t.siteId]:{...e[t.siteId],name:t.title}}:e},launchStatus:(e={},t)=>"LAUNCH_SITE_START"===t.type?{...e,[t.siteId]:{status:o.uS.IN_PROGRESS,errorCode:void 0}}:"LAUNCH_SITE_SUCCESS"===t.type?{...e,[t.siteId]:{status:o.uS.SUCCESS,errorCode:void 0}}:"LAUNCH_SITE_FAILURE"===t.type?{...e,[t.siteId]:{status:o.uS.FAILURE,errorCode:t.error}}:e,sitesDomains:(e={},t)=>"RECEIVE_SITE_DOMAINS"===t.type?{...e,[t.siteId]:t.domains}:e});t.ZP=a},7862:function(e,t,r){"use strict";r.r(t),r.d(t,{getSite:function(){return a},getSiteDomains:function(){return u}});var n=r(9818),o=r(3661),i=r(2005);function*a(e){yield(0,n.dispatch)(i.L).fetchSite();try{const t=yield(0,o._9)({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});yield(0,n.dispatch)(i.L).receiveSite(e,t)}catch(t){yield(0,n.dispatch)(i.L).receiveSiteFailed(e,void 0)}}function*u(e){try{const t=yield(0,o._9)({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});yield(0,n.dispatch)(i.L).receiveSiteDomains(e,null==t?void 0:t.domains)}catch(t){}}},4309:function(e,t,r){"use strict";r.r(t),r.d(t,{getState:function(){return a},getNewSite:function(){return u},getNewSiteError:function(){return s},isFetchingSite:function(){return l},isFetchingSiteDetails:function(){return c},isNewSite:function(){return f},getSite:function(){return d},getSiteTitle:function(){return p},isSiteLaunched:function(){return y},isSiteLaunching:function(){return g},getSiteDomains:function(){return m},getPrimarySiteDomain:function(){return h},getSiteSubdomain:function(){return v}});var n=r(9818),o=r(2005),i=r(9639);const a=e=>e,u=e=>e.newSite.data,s=e=>e.newSite.error,l=e=>e.newSite.isFetching,c=e=>e.isFetchingSiteDetails,f=e=>!!e.newSite.data,d=(e,t)=>e.sites[t],p=(e,t)=>{var r;return null===(r=(0,n.select)(o.L).getSite(t))||void 0===r?void 0:r.name},y=(e,t)=>{var r;return(null===(r=e.launchStatus[t])||void 0===r?void 0:r.status)===i.uS.SUCCESS},g=(e,t)=>{var r;return(null===(r=e.launchStatus[t])||void 0===r?void 0:r.status)===i.uS.IN_PROGRESS},m=(e,t)=>e.sitesDomains[t],h=(e,t)=>{var r;return null===(r=(0,n.select)(o.L).getSiteDomains(t))||void 0===r?void 0:r.find((e=>e.primary_domain))},v=(e,t)=>{var r;return null===(r=(0,n.select)(o.L).getSiteDomains(t))||void 0===r?void 0:r.find((e=>e.is_subdomain))}},9639:function(e,t,r){"use strict";let n,o,i;r.d(t,{Hc:function(){return o},uS:function(){return i}}),function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(n||(n={})),function(e){e.INTERNAL="internal"}(o||(o={})),function(e){e.UNINITIALIZED="unintialized",e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.FAILURE="failure"}(i||(i={}))},4366:function(e,t,r){"use strict";r.d(t,{L:function(){return n}});const n="automattic/wpcom-features"},2613:function(e,t,r){"use strict";r.d(t,{$:function(){return s}});var n=r(9734);const{TIMELESS_PLAN_PERSONAL:o,TIMELESS_PLAN_PREMIUM:i,TIMELESS_PLAN_BUSINESS:a,TIMELESS_PLAN_ECOMMERCE:u}=n,s={domain:{id:"domain",minSupportedPlan:o},store:{id:"store",minSupportedPlan:u},seo:{id:"seo",minSupportedPlan:a},plugins:{id:"plugins",minSupportedPlan:a},"ad-free":{id:"ad-free",minSupportedPlan:o},"image-storage":{id:"image-storage",minSupportedPlan:i},"video-storage":{id:"video-storage",minSupportedPlan:i},support:{id:"support",minSupportedPlan:a}}},182:function(e,t,r){"use strict";r.d(t,{z:function(){return l}});var n=r(9818),o=r(3418),i=r(4366),a=r(8638),u=r(335);let s=!1;function l(){return s||(s=!0,(0,n.registerStore)(i.L,{controls:o.controls,reducer:a.Z,selectors:u})),i.L}},8638:function(e,t,r){"use strict";var n=r(2613);t.Z=(e=n.$)=>e},335:function(e,t,r){"use strict";r.r(t),r.d(t,{getAllFeatures:function(){return o},getRecommendedPlanSlug:function(){return i}});var n=r(4703);const o=e=>e,i=(e,t)=>{const r=o(e);if(t.length)return t.reduce(((e,t)=>{const o=r[t].minSupportedPlan;return n.xT.indexOf(o)>n.xT.indexOf(e)?o:e}),r[t[0]].minSupportedPlan)}},3661:function(e,t,r){"use strict";r.d(t,{_9:function(){return o},An:function(){return i},ai:function(){return a}});var n=r(8552);const o=e=>({type:"WPCOM_REQUEST",request:e}),i=(e,t)=>({type:"FETCH_AND_PARSE",resource:e,options:t}),a={WPCOM_REQUEST:({request:e})=>(0,n.ZP)(e),FETCH_AND_PARSE:async({resource:e,options:t})=>{const r=await window.fetch(e,t);return{ok:r.ok,body:await r.json()}},RELOAD_PROXY:()=>{(0,n.sS)()},REQUEST_ALL_BLOGS_ACCESS:()=>(0,n.Vw)(),WAIT:({ms:e})=>new Promise((t=>setTimeout(t,e)))}},3759:function(e,t,r){"use strict";r.d(t,{X:function(){return o}});const n={AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function o(e){return n[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},1621:function(e,t,r){"use strict";r.d(t,{ZP:function(){return i}});var n=r(1481),o=r(3759);function i(e,t,r={}){const i=(0,o.X)(t);if(!i||isNaN(e))return null;const{decimal:a,grouping:u,precision:s,symbol:l}={...i,...r},c=e<0?"-":"";let f=(0,n.Y4)(Math.abs(e),{decimals:s,thousandsSep:u,decPoint:a});return r.stripZeros&&(f=function(e,t){const r=new RegExp(`\\${t}0+$`);return e.replace(r,"")}(f,a)),`${c}${l}${f}`}},914:function(e,t,r){"use strict";var n=r(2699),o=r(6668),i=r(8049),a=r.n(i),u=r(5079),s=r.n(u),l=r(7010),c=r(7839),f=r.n(c),d=r(9830),p=r(3);const y=a()("i18n-calypso"),g="number_format_decimals",m="number_format_thousands_sep",h="messages",v=[function(e){return e}],b={};function _(){O.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function S(e){return Array.prototype.slice.call(e)}function A(e){const t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&_("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",S(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&_("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",S(e));let r={};for(let n=0;n<e.length;n++)"object"==typeof e[n]&&(r=e[n]);if("string"==typeof t?r.original=t:"object"==typeof r.original&&(r.plural=r.original.plural,r.count=r.original.count,r.original=r.original.single),"string"==typeof e[1]&&(r.plural=e[1]),void 0===r.original)throw new Error("Translate called without a `string` value as first argument.");return r}function E(e,t){return e.dcnpgettext(h,t.context,t.original,t.plural,t.count)}function P(e,t){for(let r=v.length-1;r>=0;r--){const n=v[r](Object.assign({},t)),o=n.context?n.context+""+n.original:n.original;if(e.state.locale[o])return E(e.state.tannin,n)}return null}function O(){if(!(this instanceof O))return new O;this.defaultLocaleSlug="en",this.defaultPluralForms=e=>1===e?0:1,this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:f()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new n.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}O.throwErrors=!1,O.prototype.on=function(...e){this.stateObserver.on(...e)},O.prototype.off=function(...e){this.stateObserver.off(...e)},O.prototype.emit=function(...e){this.stateObserver.emit(...e)},O.prototype.numberFormat=function(e,t={}){const r="number"==typeof t?t:t.decimals||0,n=t.decPoint||this.state.numberFormatSettings.decimal_point||".",o=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return(0,p.Z)(e,r,n,o)},O.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},O.prototype.setLocale=function(e){var t,r,n;if(e&&e[""]&&e[""]["key-hash"]){const t=e[""]["key-hash"],r=function(e,t){const r=!1===t?"":String(t);if(void 0!==b[r+e])return b[r+e];const n=s()().update(e).digest("hex");return b[r+e]=t?n.substr(0,t):n},n=function(e){return function(t){return t.context?(t.original=r(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=r(t.original,e),t}};if("sha1"===t.substr(0,4))if(4===t.length)v.push(n(!1));else{const e=t.substr(5).indexOf("-");if(e<0){const e=Number(t.substr(5));v.push(n(e))}else{const r=Number(t.substr(5,e)),o=Number(t.substr(6+e));for(let e=r;e<=o;e++)v.push(n(e))}}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(r=this.state.locale[""])||void 0===r||null===(n=r.momentjs_locale)||void 0===n?void 0:n.textDirection),this.state.tannin=new d.Z({[h]:this.state.locale}),this.state.numberFormatSettings.decimal_point=E(this.state.tannin,A([g])),this.state.numberFormatSettings.thousands_sep=E(this.state.tannin,A([m])),this.state.numberFormatSettings.decimal_point===g&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===m&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},O.prototype.getLocale=function(){return this.state.locale},O.prototype.getLocaleSlug=function(){return this.state.localeSlug},O.prototype.getLocaleVariant=function(){return this.state.localeVariant},O.prototype.isRtl=function(){return"rtl"===this.state.textDirection},O.prototype.addTranslations=function(e){for(const t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},O.prototype.hasTranslation=function(){return!!P(this,A(arguments))},O.prototype.translate=function(){const e=A(arguments);let t=P(this,e);if(t||(t=E(this.state.tannin,e)),e.args){const n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=(0,o.Z)(...n)}catch(r){if(!window||!window.console)return;const e=this.throwErrors?"error":"warn";"string"!=typeof r?window.console[e](r):window.console[e]("i18n sprintf error:",n)}}return e.components&&(t=(0,l.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(r){t=r(t,e)})),t},O.prototype.reRenderTranslations=function(){y("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},O.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},O.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},t.Z=O},1481:function(e,t,r){"use strict";r.d(t,{Y4:function(){return s},Iu:function(){return l}});var n=r(914),o=r(3493),i=r(8373),a=r(975);const u=new n.Z;const s=u.numberFormat.bind(u),l=u.translate.bind(u),{useRtl:c,withRtl:f}=(u.configure.bind(u),u.setLocale.bind(u),u.getLocale.bind(u),u.getLocaleSlug.bind(u),u.getLocaleVariant.bind(u),u.isRtl.bind(u),u.addTranslations.bind(u),u.reRenderTranslations.bind(u),u.registerComponentUpdateHook.bind(u),u.registerTranslateHook.bind(u),u.state,u.stateObserver,u.on.bind(u),u.off.bind(u),u.emit.bind(u),(0,o.Z)(u),(0,a.Z)(u),(0,i.Z)(u))},3493:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(6666),o=r(9307),i=r(9196);function a(e){const t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(r){var a,u;const s=r.displayName||r.name||"";return u=a=class extends i.Component{constructor(...e){super(...e),(0,n.Z)(this,"boundForceUpdate",this.forceUpdate.bind(this))}componentDidMount(){e.on("change",this.boundForceUpdate)}componentWillUnmount(){e.off("change",this.boundForceUpdate)}render(){const n={locale:e.getLocaleSlug(),...this.props,...t};return(0,o.createElement)(r,n)}},(0,n.Z)(a,"displayName","Localized("+s+")"),u}}},3:function(e,t,r){"use strict";function n(e,t,r,n){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");const o=isFinite(+e)?+e:0,i=isFinite(+t)?Math.abs(t):0,a=void 0===n?",":n,u=void 0===r?".":r;let s="";return s=(i?
7
  /*
8
  * Exposes number format capability
9
  *
11
  * @license See CREDITS.md
12
  * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
13
  */
14
+ function(e,t){const r=Math.pow(10,t);return""+(Math.round(e*r)/r).toFixed(t)}(o,i):""+Math.round(o)).split("."),s[0].length>3&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(s[1]||"").length<i&&(s[1]=s[1]||"",s[1]+=new Array(i-s[1].length+1).join("0")),s.join(u)}r.d(t,{Z:function(){return n}})},8373:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(7896),o=r(9307),i=r(4333),a=r(9196),u=r(6718);function s(e){const t={getCurrentValue:()=>e.isRtl(),subscribe:t=>(e.on("change",t),()=>e.off("change",t))};function r(){return(0,u.useSubscription)(t)}const s=(0,i.createHigherOrderComponent)((e=>(0,a.forwardRef)(((t,i)=>{const a=r();return(0,o.createElement)(e,(0,n.Z)({},t,{isRtl:a,ref:i}))}))),"WithRTL");return{useRtl:r,withRtl:s}}},975:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(9196);function o(e){function t(){const t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}return function(){const[r,o]=(0,n.useState)(t);return(0,n.useEffect)((()=>{const r=()=>o(t);return e.on("change",r),()=>e.off("change",r)}),[]),r}}},8552:function(e,t,r){"use strict";r.d(t,{Vw:function(){return A},sS:function(){return C}});var n=r(8049),o=r.n(n),i=r(8650),a=r.n(i),u=r(8767),s=r(2884),l=r.n(s);const c=o()("wpcom-proxy-request"),f="https://public-api.wordpress.com",d=window.location.protocol+"//"+window.location.host,p=(()=>{let e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e})(),y=(()=>{try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}})();let g,m=null,h=!1;const v={},b=!!window.ProgressEvent&&!!window.FormData;c('using "origin": %o',d);const _=(e,t)=>{const r=Object.assign({},e);c("request(%o)",r),m||M();const n=(0,u.Z)();r.callback=n,r.supports_args=!0,r.supports_error_obj=!0,r.supports_progress=b,r.method=String(r.method||"GET").toUpperCase(),c("params object: %o",r);const o=new window.XMLHttpRequest;if(o.params=r,v[n]=o,"function"==typeof t){let e=!1;const r=r=>{if(e)return;e=!0;const n=r.response||o.response;c("body: ",n),c("headers: ",r.headers),t(null,n,r.headers)},n=r=>{if(e)return;e=!0;const n=r.error||r.err||r;c("error: ",n),c("headers: ",r.headers),t(n,null,r.headers)};o.addEventListener("load",r),o.addEventListener("abort",n),o.addEventListener("error",n)}return"function"==typeof r.onStreamRecord&&delete r.onStreamRecord,h?E(r):(c("buffering API request since proxying <iframe> is not yet loaded"),g.push(r)),o},S=(e,t)=>"function"==typeof t?_(e,t):new Promise(((t,r)=>{_(e,((e,n)=>{e?r(e):t(n)}))}));function A(){return S({metaAPI:{accessAllUsersBlogs:!0}})}function E(e){c("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!y)return;for(let t=0;t<e.length;t++){const r=O(e[t][1]);r&&(e[t][1]=new window.File([r],r.name,{type:r.type}))}}(e.formData),m.contentWindow.postMessage(p?JSON.stringify(e):e,f)}function P(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function O(e){return P(e)?e:"object"==typeof e&&P(e.fileContents)?e.fileContents:null}function M(){c("install()"),m&&(c("uninstall()"),window.removeEventListener("message",I),document.body.removeChild(m),h=!1,m=null),g=[],window.addEventListener("message",I),m=document.createElement("iframe"),m.src=f+"/wp-admin/rest-proxy/?v=2.0#"+d,m.style.display="none",document.body.appendChild(m)}const C=()=>{M()};function I(e){if(c("onmessage"),e.origin!==f)return void c("ignoring message... %o !== %o",e.origin,f);if(e.source!==m.contentWindow)return void c("ignoring message... iframe elements do not match");let{data:t}=e;if(!t)return c("no `data`, bailing");if("ready"===t)return void function(){if(c('proxy <iframe> "load" event'),h=!0,g){for(let e=0;e<g.length;e++)E(g[e]);g=null}}();if(p&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){c('got "progress" event: %o',e);const t=v[e.callbackId];if(t){const r=new(a())("progress",e);(e.upload?t.upload:t).dispatchEvent(r)}}(t);if(!t.length)return c("`e.data` doesn't appear to be an Array, bailing...");const r=t[t.length-1];if(!(r in v))return c("bailing, no matching request with callback: %o",r);const n=v[r],{params:o}=n,i=t[0];let u=t[1];const s=t[2];if(207===u||delete v[r],o.metaAPI?u="metaAPIupdated"===i?200:500:c("got %o status code for URL: %o",u,o.path),"object"==typeof s&&(s.status=u,d=s["Content-Type"],/^application[/]x-ndjson($|;)/.test(d))){w(n,new Error("stream mode processing is not yet implemented for wpcom-proxy-request"),s)}else{var d;if(u&&2===Math.floor(u/100))!function(e,t,r){const n=new(a())("load");n.data=n.body=n.response=t,n.headers=r,e.dispatchEvent(n)}(n,i,s);else{w(n,l()(o,u,i),s)}}}function w(e,t,r){const n=new(a())("error");n.error=n.err=t,n.headers=r,e.dispatchEvent(n)}t.ZP=S},8049:function(e,t,r){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(o=n))})),t.splice(o,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(r){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(r){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(2632)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,r){e.exports=function(e){function t(e){let r,o,i,a=null;function u(...e){if(!u.enabled)return;const n=u,o=Number(new Date),i=o-(r||o);n.diff=i,n.prev=r,n.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,o)=>{if("%%"===r)return"%";a++;const i=t.formatters[o];if("function"==typeof i){const t=e[a];r=i.call(n,t),e.splice(a,1),a--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return u.namespace=e,u.useColors=t.useColors(),u.color=t.selectColor(e),u.extend=n,u.destroy=t.destroy,Object.defineProperty(u,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{a=e}}),"function"==typeof t.init&&t.init(u),u}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),o=n.length;for(r=0;r<o;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(1378),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},3830:function(e,t,r){"use strict";var n=r(956);e.exports=function(){var e=n.apply(n,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},956:function(e){"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},8186:function(e,t,r){"use strict";
15
  /** @license React vundefined
16
  * use-subscription.production.min.js
17
  *
common/dist/disable-heic-images.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-compose', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => '89ba6167334e3f89b43be59c0402c3b3');
1
+ <?php return array('dependencies' => array('wp-compose', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => '2d6b9558c2e2298e08a8e5edb4c45aee');
common/dist/hide-plugin-buttons-mobile.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-polyfill'), 'version' => 'bc839c7a253fd3549a7c9df0ed154c5e');
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => 'ca4b92c22f0e6d5d34f841155c050efc');
dotcom-fse/dist/dotcom-fse.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-server-side-render', 'wp-url'), 'version' => 'e9238b7b04aebc3563328f9b1d5b5957');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-server-side-render', 'wp-url'), 'version' => 'aeb6ce8c497b1dda7c8474203cb51ef0');
editor-site-launch/dist/focused-launch.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-react-i18n', 'wp-url'), 'version' => 'ddd9f836bcd99bdb7545f93e367f29d3');
1
+ <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-react-i18n', 'wp-url'), 'version' => '3da6b9cde012e2446414d3c414cceef2');
editor-site-launch/dist/focused-launch.js CHANGED
@@ -8,7 +8,7 @@
8
  object-assign
9
  (c) Sindre Sorhus
10
  @license MIT
11
- */var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,i){for(var a,s,l=o(e),u=1;u<arguments.length;u++){for(var c in a=Object(arguments[u]))n.call(a,c)&&(l[c]=a[c]);if(t){s=t(a);for(var d=0;d<s.length;d++)r.call(a,s[d])&&(l[s[d]]=a[s[d]])}}return l}},9500:function(e,t,n){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&l&&"function"==typeof l.get?l.get:null,c=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,g=Object.prototype.toString,h=Function.prototype.toString,y=String.prototype.match,v="function"==typeof BigInt?BigInt.prototype.valueOf:null,_=Object.getOwnPropertySymbols,b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,E="function"==typeof Symbol&&"object"==typeof Symbol.iterator,S=Object.prototype.propertyIsEnumerable,A=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null),w=n(3260).custom,P=w&&O(w)?w:null,C="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function x(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function N(e){return String(e).replace(/"/g,"&quot;")}function I(e){return!("[object Array]"!==F(e)||C&&"object"==typeof e&&C in e)}function O(e){if(E)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!b)return!1;try{return b.call(e),!0}catch(t){}return!1}e.exports=function e(t,n,r,o){var s=n||{};if(L(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(L(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!L(s,"customInspect")||s.customInspect;if("boolean"!=typeof l)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(L(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return $(t,s);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var g=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=g&&g>0&&"object"==typeof t)return I(t)?"[Array]":"[Object]";var _=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Array(e.indent+1).join(" ")}return{base:n,prev:Array(t+1).join(n)}}(s,r);if(void 0===o)o=[];else if(T(o,t)>=0)return"[Circular]";function S(t,n,i){if(n&&(o=o.slice()).push(n),i){var a={depth:s.depth};return L(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if("function"==typeof t){var w=function(e){if(e.name)return e.name;var t=y.call(h.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),M=U(t,S);return"[Function"+(w?": "+w:" (anonymous)")+"]"+(M.length>0?" { "+M.join(", ")+" }":"")}if(O(t)){var D=E?String(t).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):b.call(t);return"object"!=typeof t||E?D:R(D)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var B="<"+String(t.nodeName).toLowerCase(),G=t.attributes||[],V=0;V<G.length;V++)B+=" "+G[V].name+"="+x(N(G[V].value),"double",s);return B+=">",t.childNodes&&t.childNodes.length&&(B+="..."),B+="</"+String(t.nodeName).toLowerCase()+">"}if(I(t)){if(0===t.length)return"[]";var H=U(t,S);return _&&!function(e){for(var t=0;t<e.length;t++)if(T(e[t],"\n")>=0)return!1;return!0}(H)?"["+j(H,_)+"]":"[ "+H.join(", ")+" ]"}if(function(e){return!("[object Error]"!==F(e)||C&&"object"==typeof e&&C in e)}(t)){var W=U(t,S);return 0===W.length?"["+String(t)+"]":"{ ["+String(t)+"] "+W.join(", ")+" }"}if("object"==typeof t&&l){if(P&&"function"==typeof t[P])return t[P]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(B){return!0}return e instanceof Map}catch(t){}return!1}(t)){var z=[];return a.call(t,(function(e,n){z.push(S(n,t,!0)+" => "+S(e,t))})),Z("Map",i.call(t),z,_)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var Y=[];return c.call(t,(function(e){Y.push(S(e,t))})),Z("Set",u.call(t),Y,_)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(B){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return k("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(B){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return k("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(t){}return!1}(t))return k("WeakRef");if(function(e){return!("[object Number]"!==F(e)||C&&"object"==typeof e&&C in e)}(t))return R(S(Number(t)));if(function(e){if(!e||"object"!=typeof e||!v)return!1;try{return v.call(e),!0}catch(t){}return!1}(t))return R(S(v.call(t)));if(function(e){return!("[object Boolean]"!==F(e)||C&&"object"==typeof e&&C in e)}(t))return R(m.call(t));if(function(e){return!("[object String]"!==F(e)||C&&"object"==typeof e&&C in e)}(t))return R(S(String(t)));if(!function(e){return!("[object Date]"!==F(e)||C&&"object"==typeof e&&C in e)}(t)&&!function(e){return!("[object RegExp]"!==F(e)||C&&"object"==typeof e&&C in e)}(t)){var K=U(t,S),q=A?A(t)===Object.prototype:t instanceof Object||t.constructor===Object,J=t instanceof Object?"":"null prototype",X=!q&&C&&Object(t)===t&&C in t?F(t).slice(8,-1):J?"Object":"",Q=(q||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(X||J?"["+[].concat(X||[],J||[]).join(": ")+"] ":"");return 0===K.length?Q+"{}":_?Q+"{"+j(K,_)+"}":Q+"{ "+K.join(", ")+" }"}return String(t)};var M=Object.prototype.hasOwnProperty||function(e){return e in this};function L(e,t){return M.call(e,t)}function F(e){return g.call(e)}function T(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function $(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return $(e.slice(0,t.maxStringLength),t)+r}return x(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,D),"single",t)}function D(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function R(e){return"Object("+e+")"}function k(e){return e+" { ? }"}function Z(e,t,n,r){return e+" ("+t+") {"+(r?j(n,r):n.join(", "))+"}"}function j(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+e.join(","+n)+"\n"+t.prev}function U(e,t){var n=I(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=L(e,o)?t(e[o],e):""}var i,a="function"==typeof _?_(e):[];if(E){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var l in e)L(e,l)&&(n&&String(Number(l))===l&&l<e.length||E&&i["$"+l]instanceof Symbol||(/[^\w$]/.test(l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof _)for(var u=0;u<a.length;u++)S.call(e,a[u])&&r.push("["+t(a[u])+"]: "+t(e[a[u]],e));return r}},99:function(e,t,n){var r=n(243);e.exports=p,e.exports.parse=i,e.exports.compile=function(e,t){return s(i(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=f;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,a=0,s="",c=t&&t.delimiter||"/";null!=(n=o.exec(e));){var d=n[0],f=n[1],p=n.index;if(s+=e.slice(a,p),a=p+d.length,f)s+=f[1];else{var m=e[a],g=n[2],h=n[3],y=n[4],v=n[5],_=n[6],b=n[7];s&&(r.push(s),s="");var E=null!=g&&null!=m&&m!==g,S="+"===_||"*"===_,A="?"===_||"*"===_,w=n[2]||c,P=y||v;r.push({name:h||i++,prefix:g||"",delimiter:w,optional:A,repeat:S,partial:E,asterisk:!!b,pattern:P?u(P):b?".*":"[^"+l(w)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"==typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",d(t)));return function(t,o){for(var i="",s=t||{},l=(o||{}).pretty?a:encodeURIComponent,u=0;u<e.length;u++){var c=e[u];if("string"!=typeof c){var d,f=s[c.name];if(null==f){if(c.optional){c.partial&&(i+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(r(f)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var p=0;p<f.length;p++){if(d=l(f[p]),!n[u].test(d))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(d)+"`");i+=(0===p?c.prefix:c.delimiter)+d}}else{if(d=c.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(f),!n[u].test(d))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+d+'"');i+=c.prefix+d}}else i+=c}return i}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",s=0;s<e.length;s++){var u=e[s];if("string"==typeof u)a+=l(u);else{var f=l(u.prefix),p="(?:"+u.pattern+")";t.push(u),u.repeat&&(p+="(?:"+f+p+")*"),a+=p=u.optional?u.partial?f+"("+p+")?":"(?:"+f+"("+p+"))?":f+"("+p+")"}}var m=l(n.delimiter||"/"),g=a.slice(-m.length)===m;return o||(a=(g?a.slice(0,-m.length):a)+"(?:"+m+"(?=$))?"),a+=i?"$":o&&g?"":"(?="+m+"|$)",c(new RegExp("^"+a,d(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(p(e[o],t,n).source);return c(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return f(i(e,n),t,n)}(e,t,n)}},243:function(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},8650:function(e){var t,n=window.ProgressEvent,r=!!n;try{t=new n("loaded"),r="loaded"===t.type,t=null}catch(o){r=!1}e.exports=r?n:"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("Event");return n.initEvent(e,!1,!1),t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}},8262:function(e,t,n){"use strict";var r=n(3586);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},3980:function(e,t,n){e.exports=n(8262)()},3586:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5527:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:o}},9126:function(e,t,n){"use strict";var r=n(6845),o=n(9166),i=n(5527);e.exports={formats:i,parse:o,stringify:r}},9166:function(e,t,n){"use strict";var r=n(2493),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),u=s?i.slice(0,s.index):i,c=[];if(u){if(!n.plainObjects&&o.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var d=0;n.depth>0&&null!==(s=a.exec(i))&&d<n.depth;){if(d+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(s[1])}return s&&c.push("["+i.slice(s.index)+"]"),function(e,t,n,r){for(var o=r?t:l(t,n),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(u,10);n.parseArrays||""!==u?!isNaN(c)&&s!==u&&String(c)===u&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=o:a[u]=o:a={0:o}}o=a}return o}(c,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var n,u={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=c.split(t.delimiter,d),p=-1,m=t.charset;if(t.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?m="utf-8":"utf8=%26%2310003%3B"===f[n]&&(m="iso-8859-1"),p=n,n=f.length);for(n=0;n<f.length;++n)if(n!==p){var g,h,y=f[n],v=y.indexOf("]="),_=-1===v?y.indexOf("="):v+1;-1===_?(g=t.decoder(y,a.decoder,m,"key"),h=t.strictNullHandling?null:""):(g=t.decoder(y.slice(0,_),a.decoder,m,"key"),h=r.maybeMap(l(y.slice(_+1),t),(function(e){return t.decoder(e,a.decoder,m,"value")}))),h&&t.interpretNumericEntities&&"iso-8859-1"===m&&(h=s(h)),y.indexOf("[]=")>-1&&(h=i(h)?[h]:h),o.call(u,g)?u[g]=r.combine(u[g],h):u[g]=h}return u}(e,n):e,d=n.plainObjects?Object.create(null):{},f=Object.keys(c),p=0;p<f.length;++p){var m=f[p],g=u(m,c[m],n,"string"==typeof e);d=r.merge(d,g,n)}return!0===n.allowSparse?d:r.compact(d)}},6845:function(e,t,n){"use strict";var r=n(4294),o=n(2493),i=n(5527),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,f=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},m=function e(t,n,i,a,s,u,d,f,m,g,h,y,v,_,b){var E,S=t;if(b.has(t))throw new RangeError("Cyclic object value");if("function"==typeof d?S=d(n,S):S instanceof Date?S=g(S):"comma"===i&&l(S)&&(S=o.maybeMap(S,(function(e){return e instanceof Date?g(e):e}))),null===S){if(a)return u&&!v?u(n,p.encoder,_,"key",h):n;S=""}if("string"==typeof(E=S)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||o.isBuffer(S))return u?[y(v?n:u(n,p.encoder,_,"key",h))+"="+y(u(S,p.encoder,_,"value",h))]:[y(n)+"="+y(String(S))];var A,w=[];if(void 0===S)return w;if("comma"===i&&l(S))A=[{value:S.length>0?S.join(",")||null:void 0}];else if(l(d))A=d;else{var P=Object.keys(S);A=f?P.sort(f):P}for(var C=0;C<A.length;++C){var x=A[C],N="object"==typeof x&&void 0!==x.value?x.value:S[x];if(!s||null!==N){var I=l(S)?"function"==typeof i?i(n,x):n:n+(m?"."+x:"["+x+"]");b.set(t,!0);var O=r();c(w,e(N,I,i,a,s,u,d,f,m,g,h,y,v,_,O))}}return w};e.exports=function(e,t){var n,o=e,u=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],o=p.filter;return("function"==typeof e.filter||l(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof u.filter?o=(0,u.filter)("",o):l(u.filter)&&(n=u.filter);var d,f=[];if("object"!=typeof o||null===o)return"";d=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var g=s[d];n||(n=Object.keys(o)),u.sort&&n.sort(u.sort);for(var h=r(),y=0;y<n.length;++y){var v=n[y];u.skipNulls&&null===o[v]||c(f,m(o[v],v,g,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,h))}var _=f.join(u.delimiter),b=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),_.length>0?b+_:""}},2493:function(e,t,n){"use strict";var r=n(5527),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],s=Object.keys(a),l=0;l<s.length;++l){var u=s[l],c=a[u];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:a,prop:u}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(o){return r}},encode:function(e,t,n,o,i){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",u=0;u<s.length;++u){var c=s.charCodeAt(u);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===r.RFC1738&&(40===c||41===c)?l+=s.charAt(u):c<128?l+=a[c]:c<2048?l+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?l+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(u+=1,c=65536+((1023&c)<<10|1023&s.charCodeAt(u)),l+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return l},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&n&&"object"==typeof n?t[i]=e(a,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return o.call(t,i)?t[i]=e(t[i],a,r):t[i]=a,t}),a)}}},3631:function(e,t,n){"use strict";var r=n(9196),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(7201),a=n(4983),s=n(6590),l="function"==typeof Symbol&&Symbol.iterator;function u(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function c(e,t,n,r){var i,s=typeof e;if("undefined"!==s&&"boolean"!==s||(e=null),null===e||"string"===s||"number"===s||"object"===s&&e.$$typeof===o)return n(r,e,""===t?"."+u(e,0):t),1;var d=0,f=""===t?".":t+":";if(Array.isArray(e))for(var p=0;p<e.length;p++)d+=c(i=e[p],f+u(i,p),n,r);else{var m=function(e){var t=e&&(l&&e[l]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(m){0;for(var g,h=m.call(e),y=0;!(g=h.next()).done;)d+=c(i=g.value,f+u(i,y++),n,r)}else if("object"===s){0;var v=""+e;a(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===v?"object with keys {"+Object.keys(e).join(", ")+"}":v,"")}}return d}var d=/\/+/g;function f(e){return(""+e).replace(d,"$&/")}var p,m,g=h,h=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},y=function(e){var t=this;a(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function v(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function _(e,t,n){var o,a,s=e.result,l=e.keyPrefix,u=e.func,c=e.context,d=u.call(c,t,e.count++);Array.isArray(d)?b(d,s,n,i.thatReturnsArgument):null!=d&&(r.isValidElement(d)&&(o=d,a=l+(!d.key||t&&t.key===d.key?"":f(d.key)+"/")+n,d=r.cloneElement(o,{key:a},void 0!==o.props?o.props.children:void 0)),s.push(d))}function b(e,t,n,r,o){var i="";null!=n&&(i=f(n)+"/");var a=v.getPooled(t,i,r,o);!function(e,t,n){null==e||c(e,"",t,n)}(e,_,a),v.release(a)}v.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},p=function(e,t,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,n,r),i}return new o(e,t,n,r)},(m=v).instancePool=[],m.getPooled=p||g,m.poolSize||(m.poolSize=10),m.release=y;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return s(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return s(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;a(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)b(e[n],t,n,i.thatReturnsArgument);return t}},6866:function(e,t){"use strict";
12
  /** @license React v16.13.1
13
  * react-is.production.min.js
14
  *
@@ -16,7 +16,7 @@ object-assign
16
  *
17
  * This source code is licensed under the MIT license found in the
18
  * LICENSE file in the root directory of this source tree.
19
- */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,_=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case h:case g:case l:return e;default:return t}}case o:return t}}}function S(e){return E(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=h,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||E(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===i},t.isLazy=function(e){return E(e)===h},t.isMemo=function(e){return E(e)===g},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===v||e.$$typeof===_||e.$$typeof===b||e.$$typeof===y)},t.typeOf=E},8570:function(e,t,n){"use strict";e.exports=n(6866)},7933:function(e,t,n){"use strict";n.d(t,{rU:function(){return h}});var r=n(7267),o=n(1665),i=n(9196),a=n.n(i),s=n(7547),l=(n(3980),n(7896)),u=n(1461),c=n(1898);a().Component;a().Component;var d=function(e,t){return"function"==typeof e?e(t):e},f=function(e,t){return"string"==typeof e?(0,s.ob)(e,null,null,t):e},p=function(e){return e},m=a().forwardRef;void 0===m&&(m=p);var g=m((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,i=(0,u.Z)(e,["innerRef","navigate","onClick"]),s=i.target,c=(0,l.Z)({},i,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return c.ref=p!==m&&t||n,a().createElement("a",c)}));var h=m((function(e,t){var n=e.component,o=void 0===n?g:n,i=e.replace,s=e.to,h=e.innerRef,y=(0,u.Z)(e,["component","replace","to","innerRef"]);return a().createElement(r.s6.Consumer,null,(function(e){e||(0,c.Z)(!1);var n=e.history,r=f(d(s,e.location),e.location),u=r?n.createHref(r):"",g=(0,l.Z)({},y,{href:u,navigate:function(){var t=d(s,e.location);(i?n.replace:n.push)(t)}});return p!==m?g.ref=t||h:g.innerRef=h,a().createElement(o,g)}))})),y=function(e){return e},v=a().forwardRef;void 0===v&&(v=y);v((function(e,t){var n=e["aria-current"],o=void 0===n?"page":n,i=e.activeClassName,s=void 0===i?"active":i,p=e.activeStyle,m=e.className,g=e.exact,_=e.isActive,b=e.location,E=e.sensitive,S=e.strict,A=e.style,w=e.to,P=e.innerRef,C=(0,u.Z)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a().createElement(r.s6.Consumer,null,(function(e){e||(0,c.Z)(!1);var n=b||e.location,i=f(d(w,n),n),u=i.pathname,x=u&&u.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),N=x?(0,r.LX)(n.pathname,{path:x,exact:g,sensitive:E,strict:S}):null,I=!!(_?_(N,n):N),O=I?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(m,s):m,M=I?(0,l.Z)({},A,{},p):A,L=(0,l.Z)({"aria-current":I&&o||null,className:O,style:M,to:i},C);return y!==v?L.ref=t||P:L.innerRef=P,a().createElement(h,L)}))}))},7267:function(e,t,n){"use strict";n.d(t,{VA:function(){return v},l_:function(){return A},AW:function(){return x},F0:function(){return y},rs:function(){return F},s6:function(){return h},LX:function(){return C},k6:function(){return $},TH:function(){return D}});var r=n(1665),o=n(9196),i=n.n(o),a=(n(3980),n(7547)),s=n(1549),l=n(1898),u=n(7896),c=n(99),d=n.n(c),f=(n(8570),n(1461)),p=(n(3463),function(e){var t=(0,s.Z)();return t.displayName=e,t}),m=p("Router-History"),g=function(e){var t=(0,s.Z)();return t.displayName=e,t},h=g("Router"),y=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}(0,r.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return i().createElement(h.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i().createElement(m.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i().Component);var v=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,a.PP)(t.props),t}return(0,r.Z)(t,e),t.prototype.render=function(){return i().createElement(y,{history:this.history,children:this.props.children})},t}(i().Component);var _=function(e){function t(){return e.apply(this,arguments)||this}(0,r.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(i().Component);var b={},E=0;function S(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(b[e])return b[e];var t=d().compile(e);return E<1e4&&(b[e]=t,E++),t}(e)(t,{pretty:!0})}function A(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return i().createElement(h.Consumer,null,(function(e){e||(0,l.Z)(!1);var r=e.history,s=e.staticContext,c=o?r.push:r.replace,d=(0,a.ob)(t?"string"==typeof n?S(n,t.params):(0,u.Z)({},n,{pathname:S(n.pathname,t.params)}):n);return s?(c(d),null):i().createElement(_,{onMount:function(){c(d)},onUpdate:function(e,t){var n=(0,a.ob)(t.to);(0,a.Hp)(n,(0,u.Z)({},d,{key:n.key}))||c(d)},to:n})}))}var w={},P=0;function C(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,s=void 0!==a&&a,l=n.sensitive,u=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=w[n]||(w[n]={});if(r[e])return r[e];var o=[],i={regexp:d()(e,o,t),keys:o};return P<1e4&&(r[e]=i,P++),i}(n,{end:i,strict:s,sensitive:u}),o=r.regexp,a=r.keys,l=o.exec(e);if(!l)return null;var c=l[0],f=l.slice(1),p=e===c;return i&&!p?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var x=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return i().createElement(h.Consumer,null,(function(t){t||(0,l.Z)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?C(n.pathname,e.props):t.match,o=(0,u.Z)({},t,{location:n,match:r}),a=e.props,s=a.children,c=a.component,d=a.render;return Array.isArray(s)&&0===s.length&&(s=null),i().createElement(h.Provider,{value:o},o.match?s?"function"==typeof s?s(o):s:c?i().createElement(c,o):d?d(o):null:"function"==typeof s?s(o):null)}))},t}(i().Component);function N(e){return"/"===e.charAt(0)?e:"/"+e}function I(e,t){if(!e)return t;var n=N(e);return 0!==t.pathname.indexOf(n)?t:(0,u.Z)({},t,{pathname:t.pathname.substr(n.length)})}function O(e){return"string"==typeof e?e:(0,a.Ep)(e)}function M(e){return function(){(0,l.Z)(!1)}}function L(){}i().Component;var F=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return i().createElement(h.Consumer,null,(function(t){t||(0,l.Z)(!1);var n,r,o=e.props.location||t.location;return i().Children.forEach(e.props.children,(function(e){if(null==r&&i().isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?C(o.pathname,(0,u.Z)({},e.props,{path:a})):t.match}})),r?i().cloneElement(n,{location:o,computedMatch:r}):null}))},t}(i().Component);var T=i().useContext;function $(){return T(m)}function D(){return T(h).location}},7613:function(e,t){"use strict";function n(e){return"/"===e.charAt(0)}function r(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}t.Z=function(e,t){void 0===t&&(t="");var o,i=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&n(e),l=t&&n(t),u=s||l;if(e&&n(e)?a=i:i.length&&(a.pop(),a=a.concat(i)),!a.length)return"/";if(a.length){var c=a[a.length-1];o="."===c||".."===c||""===c}else o=!1;for(var d=0,f=a.length;f>=0;f--){var p=a[f];"."===p?r(a,f):".."===p?(r(a,f),d++):d&&(r(a,f),d--)}if(!u)for(;d--;d)a.unshift("..");!u||""===a[0]||a[0]&&n(a[0])||a.unshift("");var m=a.join("/");return o&&"/"!==m.substr(-1)&&(m+="/"),m}},4294:function(e,t,n){"use strict";var r=n(7286),o=n(2680),i=n(9500),a=r("%TypeError%"),s=r("%WeakMap%",!0),l=r("%Map%",!0),u=o("WeakMap.prototype.get",!0),c=o("WeakMap.prototype.set",!0),d=o("WeakMap.prototype.has",!0),f=o("Map.prototype.get",!0),p=o("Map.prototype.set",!0),m=o("Map.prototype.has",!0),g=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+i(e))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return u(e,r)}else if(l){if(t)return f(t,r)}else if(n)return function(e,t){var n=g(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return d(e,r)}else if(l){if(t)return m(t,r)}else if(n)return function(e,t){return!!g(e,t)}(n,r);return!1},set:function(r,o){s&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new s),c(e,r,o)):l?(t||(t=new l),p(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=g(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r}},9830:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1184),o={contextDelimiter:"",onMissingKey:null};function i(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},o)this.options[n]=void 0!==t&&n in t?t[n]:o[n]}i.prototype.getPluralForm=function(e,t){var n,o,i,a=this.pluralForms[e];return a||("function"!=typeof(i=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(o=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),i=(0,r.Z)(o)),a=this.pluralForms[e]=i),a(t)},i.prototype.dcnpgettext=function(e,t,n,r,o){var i,a,s;return i=void 0===o?0:this.getPluralForm(e,o),a=n,t&&(a=t+this.options.contextDelimiter+n),(s=this.data[e][a])&&s[i]?s[i]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===i?n:r)}},365:function(e,t,n){"use strict";n.d(t,{y:function(){return r}});const r=()=>{try{return window.self!==window.top}catch(e){return!0}};!window||!window._currentSiteType||window._currentSiteType},5631:function(e,t,n){"use strict";var r=n(9307),o=n(8152),i=n(9818),a=n(8817),s=n(6483),l=n(9196),u=n.n(l),c=n(365),d=n(1157),f=n(8318),p=n(8550);var m,g;m="a8c-editor-editor-focused-launch",g={render:function(){var e;const t=window._currentSiteId,n=(0,i.useSelect)((e=>e(f.j4).isSiteLaunched(t)),[t]),{isFocusedLaunchOpen:a,isAnchorFm:l}=(0,i.useSelect)((e=>e(f.sC).getState()),[]),{openFocusedLaunch:m}=(0,i.useDispatch)(f.sC);u().useEffect((()=>{n&&document.body.classList.add("is-focused-launch-complete")}),[n]);const g=(0,s.hasQueryArg)((0,p.O0)(),d.nU);return u().useEffect((()=>{g&&!n&&m()}),[g,n,m]),a?(0,r.createElement)(o.Z,{locale:null===(e=window.wpcomEditorSiteLaunch)||void 0===e?void 0:e.locale,openCheckout:p.Rd,redirectTo:p.gQ,siteId:t,getCurrentLaunchFlowUrl:p.O0,isInIframe:(0,c.y)(),isLaunchImmediately:g||l}):null}},(0,a.registerPlugin)(m,g)},1157:function(e,t,n){"use strict";n.d(t,{Js:function(){return r},nU:function(){return o}});const r="focused-launch",o="should_launch"},8318:function(e,t,n){"use strict";n.d(t,{j4:function(){return r},sC:function(){return o}});n(3288);const r="automattic/site",o="automattic/launch"},8550:function(e,t,n){"use strict";n.d(t,{O0:function(){return a},gQ:function(){return s},Rd:function(){return l}});var r=n(2694),o=n(6483),i=n(1157);const a=()=>{var e,t;return(null===(e=window)||void 0===e||null===(t=e.calypsoifyGutenberg)||void 0===t?void 0:t.currentCalypsoUrl)??window.location.href},s=e=>{let t="https://wordpress.com";try{var n,r;t=new URL((null===(n=window)||void 0===n||null===(r=n.calypsoifyGutenberg)||void 0===r?void 0:r.currentCalypsoUrl)||"").origin}catch{}(e=>{window.top.location.href=e})(`${t}${e.startsWith("/")?e:`/${e}`}`)},l=(e=window._currentSiteId.toString(),t=!1,n)=>{var l,u;const c="a8c.wpcom-block-editor.openCheckoutModal",d=(null===(l=window)||void 0===l||null===(u=l.wpcomEditorSiteLaunch)||void 0===u?void 0:u.launchFlow)===i.Js,f=a().split("?")[0];if((0,r.hasAction)(c)&&d&&!t)return void(0,r.doAction)(c,{checkoutOnSuccessCallback:n,isFocusedLaunch:!0,redirectTo:(0,o.addQueryArgs)(f,{[i.nU]:!0})});const p=(0,o.addQueryArgs)(`/checkout/${e}`,{...!t&&{redirect_to:`/home/${e}`}});s(p)}},6115:function(e,t,n){"use strict";n.d(t,{jN:function(){return r.jN},Sn:function(){return o.Sn},Lo:function(){return o.Lo},k9:function(){return o.k9}});n(1694),n(6209),n(9377);var r=n(9792),o=n(3722)},9377:function(e,t,n){"use strict";let r=null;"undefined"!=typeof window&&window.addEventListener("popstate",(function(){r=null}))},9792:function(e,t,n){"use strict";n.d(t,{jN:function(){return f}});var r=n(382),o=n(4898),i=(n(3421),n(2819)),a=(n(9377),n(6209),n(9358));n(1694);const s=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];let l,u=Promise.resolve();function c(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(u=(0,o.ve)("//stats.wp.com/w.js?63"));const d=new r.EventEmitter;function f(e,t){if(t=t||{},(0,a.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,i.includes)(s,e)){if(l){const e=l(t);t={...t,...e}}t=(0,i.omitBy)(t,(e=>void 0===e)),(0,a.Z)('Recording event "%s" with actual props %o',e,t),c(["recordEvent",e,t]),d.emit("record-event",e,t)}else(0,a.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(e,t,n){"use strict";n.d(t,{Sn:function(){return i},Lo:function(){return a},k9:function(){return s}});var r=n(8767),o=n(9792);function i({railcarId:e,uiAlgo:t,uiPosition:n,fetchAlgo:r,result:i,query:a}){(0,o.jN)("calypso_traintracks_render",{railcar:e,ui_algo:t,ui_position:n,fetch_algo:r,rec_result:i,fetch_query:a})}function a({railcarId:e,action:t}){(0,o.jN)("calypso_traintracks_interact",{railcar:e,action:t})}function s(e="recommendation"){return`${(0,r.Z)().replace(/-/g,"")}-${e}`}},6209:function(e,t,n){"use strict";n(4)},9358:function(e,t,n){"use strict";var r=n(8049),o=n.n(r);t.Z=o()("calypso:analytics")},1694:function(e,t,n){"use strict";n(9358)},4:function(e,t,n){"use strict";n(8032)},3600:function(e,t,n){"use strict";n.r(t),n.d(t,{receiveCategories:function(){return r},fetchDomainSuggestions:function(){return o},receiveDomainAvailability:function(){return i},receiveDomainSuggestionsSuccess:function(){return a},receiveDomainSuggestionsError:function(){return s}});const r=e=>({type:"RECEIVE_CATEGORIES",categories:e}),o=()=>({type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}),i=(e,t)=>({type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}),a=(e,t)=>({type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}),s=e=>({type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()})},584:function(e,t,n){"use strict";n.d(t,{L:function(){return r},r:function(){return o}});const r="automattic/domains/suggestions";let o;!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(o||(o={}))},8077:function(e,t,n){"use strict";n.d(t,{z2:function(){return d}});var r=n(9818),o=n(3661),i=n(3600),a=n(584),s=n(3717),l=n(2269),u=n(267);let c=!1;function d(){return c||(c=!0,(0,r.registerStore)(a.L,{actions:i,controls:o.ai,reducer:s.Z,resolvers:l,selectors:u})),a.L}},3717:function(e,t,n){"use strict";var r=n(9818),o=n(584),i=n(4211);const a={state:o.r.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},s=(0,r.combineReducers)({categories:(e=[],t)=>"RECEIVE_CATEGORIES"===t.type?t.categories:e,domainSuggestions:(e=a,t)=>"FETCH_DOMAIN_SUGGESTIONS"===t.type?{...e,state:o.r.Pending,errorMessage:null,pendingSince:t.timeStamp}:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?{...e,state:o.r.Success,data:{...e.data,[(0,i.Le)(t.queryObject)]:t.suggestions},errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?{...e,state:o.r.Failure,errorMessage:t.errorMessage,lastUpdated:t.timeStamp,pendingSince:void 0}:e,availability:(e={},t)=>"RECEIVE_DOMAIN_AVAILABILITY"===t.type?{...e,[t.domainName]:t.availability}:e});t.Z=s},2269:function(e,t,n){"use strict";n.r(t),n.d(t,{isAvailable:function(){return c},getCategories:function(){return d},__internalGetDomainSuggestions:function(){return f}});var r=n(1481),o=n(9126),i=n(6468),a=n.n(i),s=n(3661),l=n(3600),u=n(4211);const c=function*(e){const t=function(e){return`https://public-api.wordpress.com/rest/v1.3/domains/${encodeURIComponent(e)}/is-available?is_cart_pre_check=true`}(e);try{const{body:n}=yield(0,s.An)(t);return(0,l.receiveDomainAvailability)(e,n)}catch{return(0,l.receiveDomainAvailability)(e,{domain_name:e,mappable:"unknown",status:"unknown",supports_privacy:!1})}};function*d(){const{body:e}=yield(0,s.An)("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");return(0,l.receiveCategories)(e)}function*f(e){if(!e.query)return(0,l.receiveDomainSuggestionsError)("Empty query");yield(0,l.fetchDomainSuggestions)();try{const t=yield(0,s._9)({apiVersion:"1.1",path:"/domains/suggestions",query:(0,o.stringify)(e)});if(!Array.isArray(t))return(0,l.receiveDomainSuggestionsError)((0,r.Iu)("Invalid response from the server"));if(function(e,t){return a().isFQDN(t)&&!e.some((e=>e.domain_name.toLowerCase()===t))}(t,e.query)){const n={domain_name:e.query,unavailable:!0,cost:"",raw_price:0,currency_code:""};t.unshift(n)}const n=t.map((e=>e.unavailable?e:{...e,...e.raw_price&&e.currency_code&&{cost:(0,u._B)(e.raw_price,e.currency_code)}}));return(0,l.receiveDomainSuggestionsSuccess)(e,n)}catch(t){return(0,l.receiveDomainSuggestionsError)(t.message||(0,r.Iu)("Error while fetching server response"))}}},267:function(e,t,n){"use strict";n.r(t),n.d(t,{getCategories:function(){return a},getDomainSuggestions:function(){return s},getDomainState:function(){return l},getDomainErrorMessage:function(){return u},isLoadingDomainSuggestions:function(){return c},__internalGetDomainSuggestions:function(){return d},isAvailable:function(){return f},getDomainAvailabilities:function(){return p}});var r=n(9818),o=n(584),i=n(4211);const a=e=>[...e.categories.filter((({tier:e})=>null!==e)).sort(((e,t)=>e>t?1:-1)),...e.categories.filter((({tier:e})=>null===e)).sort(((e,t)=>e.title.localeCompare(t.title)))],s=(e,t,n={})=>{const a=(0,i.o0)(t,n);return(0,r.select)(o.L).__internalGetDomainSuggestions(a)},l=e=>e.domainSuggestions.state,u=e=>e.domainSuggestions.errorMessage,c=(e,t,n={})=>{const a=(0,i.o0)(t,n);return(0,r.select)("core/data").isResolving(o.L,"__internalGetDomainSuggestions",[a])},d=(e,t)=>e.domainSuggestions.data[(0,i.Le)(t)],f=(e,t)=>e.availability[t],p=e=>e.availability},4211:function(e,t,n){"use strict";n.d(t,{Le:function(){return i},_B:function(){return a},o0:function(){return s}});var r=n(1621),o=n(5695);const i=n.n(o)();function a(e,t){return(0,r.ZP)(e,t,{stripZeros:!0})}function s(e,t){return{include_wordpressdotcom:t.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:"variation2_front",...t,query:e.trim().toLocaleLowerCase()}}},6108:function(e,t,n){"use strict";n.r(t),n.d(t,{setSidebarFullscreen:function(){return i},unsetSidebarFullscreen:function(){return a},setStep:function(){return s},setSiteTitle:function(){return l},setDomain:function(){return u},unsetDomain:function(){return c},confirmDomainSelection:function(){return d},setDomainSearch:function(){return f},setPlanProductId:function(){return p},unsetPlanProductId:function(){return m},updatePlan:function(){return g},openSidebar:function(){return h},closeSidebar:function(){return y},openFocusedLaunch:function(){return v},closeFocusedLaunch:function(){return _},enableAnchorFm:function(){return b},showSiteTitleStep:function(){return E},setModalDismissible:function(){return S},unsetModalDismissible:function(){return A},showModalTitle:function(){return w},hideModalTitle:function(){return P},enablePersistentSuccessView:function(){return C},disablePersistentSuccessView:function(){return x}});var r=n(9818),o=n(9149);const i=()=>({type:"SET_SIDEBAR_FULLSCREEN"}),a=()=>({type:"UNSET_SIDEBAR_FULLSCREEN"}),s=e=>({type:"SET_STEP",step:e}),l=e=>({type:"SET_SITE_TITLE",title:e}),u=e=>({type:"SET_DOMAIN",domain:e}),c=()=>({type:"UNSET_DOMAIN"}),d=()=>({type:"CONFIRM_DOMAIN_SELECTION"}),f=e=>({type:"SET_DOMAIN_SEARCH",domainSearch:e}),p=function*(e){if(!(0,r.select)(o.Fs).isPlanProductFree(e)){const t=(0,r.select)(o.Fs).getPlanProductById(e),n=(null==t?void 0:t.billingPeriod)??"ANNUALLY";yield(e=>({type:"SET_PLAN_BILLING_PERIOD",billingPeriod:e}))(n)}return{type:"SET_PLAN_PRODUCT_ID",planProductId:e}},m=()=>({type:"UNSET_PLAN_PRODUCT_ID"});function g(e){return p(e)}const h=()=>({type:"OPEN_SIDEBAR"}),y=()=>({type:"CLOSE_SIDEBAR"}),v=()=>({type:"OPEN_FOCUSED_LAUNCH"}),_=()=>({type:"CLOSE_FOCUSED_LAUNCH"}),b=()=>({type:"ENABLE_ANCHOR_FM"}),E=()=>({type:"SHOW_SITE_TITLE_STEP"}),S=()=>({type:"SET_MODAL_DISMISSIBLE"}),A=()=>({type:"UNSET_MODAL_DISMISSIBLE"}),w=()=>({type:"SHOW_MODAL_TITLE"}),P=()=>({type:"HIDE_MODAL_TITLE"}),C=()=>({type:"ENABLE_SUCCESS_VIEW"}),x=()=>({type:"DISABLE_SUCCESS_VIEW"})},9149:function(e,t,n){"use strict";n.d(t,{Ls:function(){return r},Fs:function(){return o}});const r="automattic/launch",o="automattic/onboard/plans"},3610:function(e,t,n){"use strict";n.d(t,{y:function(){return r},M:function(){return o}});const r={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},o=[r.Name,r.Domain,r.Plan,r.Final]},1635:function(e,t,n){"use strict";n.d(t,{z:function(){return d}});var r=n(9818),o=n(3418),i=n(6108),a=n(9149),s=n(594),l=n(4648),u=n(7092);(0,r.use)(r.plugins.persistence,s.Z);let c=!1;function d(){return c||(c=!0,(0,r.registerStore)(a.Ls,{actions:i,controls:o.controls,reducer:l.Z,selectors:u,persist:["domain","domainSearch","planProductId","planBillingPeriod","confirmedDomainSelection","isAnchorFm","isSiteTitleStepVisible","siteTitle"]})),a.Ls}},594:function(e,t,n){"use strict";var r=n(492);t.Z=(0,r.Z)("WP_LAUNCH")},4648:function(e,t,n){"use strict";var r=n(9818),o=n(3610);const i=(0,r.combineReducers)({step:(e=o.y.Name,t)=>"SET_STEP"===t.type?t.step:e,siteTitle:(e,t)=>"SET_SITE_TITLE"===t.type?t.title:e,domain:(e,t)=>"SET_DOMAIN"===t.type?t.domain:"UNSET_DOMAIN"!==t.type?e:void 0,confirmedDomainSelection:(e=!1,t)=>"CONFIRM_DOMAIN_SELECTION"===t.type||e,domainSearch:(e="",t)=>"SET_DOMAIN_SEARCH"===t.type?t.domainSearch:e,planBillingPeriod:(e="ANNUALLY",t)=>"SET_PLAN_BILLING_PERIOD"===t.type?t.billingPeriod:e,planProductId:(e,t)=>"SET_PLAN_PRODUCT_ID"===t.type?t.planProductId:"UNSET_PLAN_PRODUCT_ID"!==t.type?e:void 0,isSidebarOpen:(e=!1,t)=>"OPEN_SIDEBAR"===t.type||"CLOSE_SIDEBAR"!==t.type&&e,isSidebarFullscreen:(e=!1,t)=>"SET_SIDEBAR_FULLSCREEN"===t.type||"UNSET_SIDEBAR_FULLSCREEN"!==t.type&&e,isAnchorFm:(e=!1,t)=>"ENABLE_ANCHOR_FM"===t.type||e,isFocusedLaunchOpen:(e=!1,t)=>"OPEN_FOCUSED_LAUNCH"===t.type||"CLOSE_FOCUSED_LAUNCH"!==t.type&&e,isSiteTitleStepVisible:(e=!1,t)=>"SHOW_SITE_TITLE_STEP"===t.type||e,isModalDismissible:(e=!0,t)=>"SET_MODAL_DISMISSIBLE"===t.type||"UNSET_MODAL_DISMISSIBLE"!==t.type&&e,isModalTitleVisible:(e=!0,t)=>"SHOW_MODAL_TITLE"===t.type||"HIDE_MODAL_TITLE"!==t.type&&e});t.Z=i},7092:function(e,t,n){"use strict";n.r(t),n.d(t,{getLaunchSequence:function(){return a},getLaunchStep:function(){return s},getState:function(){return l},hasPaidDomain:function(){return u},getSelectedDomain:function(){return c},getSelectedPlanProductId:function(){return d},getLastPlanBillingPeriod:function(){return f},isSelectedPlanPaid:function(){return p},hasSelectedDomainOrSubdomain:function(){return m},isStepCompleted:function(){return g},isFlowCompleted:function(){return h},isFlowStarted:function(){return y},getFirstIncompleteStep:function(){return v},getSiteTitle:function(){return _},getCurrentStep:function(){return b},getDomainSearch:function(){return E}});var r=n(9818),o=n(9149),i=n(3610);const a=()=>i.M,s=()=>i.y,l=e=>e,u=e=>!!e.domain&&!e.domain.is_free,c=e=>e.domain,d=e=>e.planProductId,f=e=>e.planBillingPeriod,p=e=>void 0!==e.planProductId&&!(0,r.select)(o.Fs).isPlanProductFree(e.planProductId),m=e=>!!c(e)||e.confirmedDomainSelection,g=(e,t)=>{if(t===i.y.Plan)return!!d(e);if(t===i.y.Name){const e=(0,r.select)("core").getEntityRecord("root","site",void 0);return!(null==e||!e.title)}return t===i.y.Domain&&(0,r.select)(o.Ls).hasSelectedDomainOrSubdomain()},h=e=>i.M.slice(0,i.M.length-1).every((t=>g(e,t))),y=e=>i.M.some((t=>g(e,t))),v=e=>i.M.find((t=>!g(e,t))),_=e=>null==e?void 0:e.siteTitle,b=e=>e.step,E=e=>e.domainSearch},492:function(e,t,n){"use strict";function r(e){const t=e,n=e+"_TS",r={},o={getItem:e=>r.hasOwnProperty(e)?r[e]:null,setItem(e,t){r[e]=String(t)},removeItem(e){delete r[e]}},i=(()=>{try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}})()?window.localStorage:o;return{storageKey:t,storage:{getItem(e){const r=i.getItem(n);return r&&(e=>{const t=Number(e);return Boolean(t)&&t+6048e5>Date.now()})(r)&&!new URLSearchParams(window.location.search).has("fresh")?i.getItem(e):(i.removeItem(t),i.removeItem(n),null)},setItem(e,t){i.setItem(n,JSON.stringify(Date.now())),i.setItem(e,t)}}}}n.d(t,{Z:function(){return r}})},9068:function(e,t,n){"use strict";n.r(t),n.d(t,{setFeatures:function(){return r},setFeaturesByType:function(){return o},setPlans:function(){return i},setPlanProducts:function(){return a},resetPlan:function(){return s}});const r=(e,t)=>({type:"SET_FEATURES",features:e,locale:t}),o=(e,t)=>({type:"SET_FEATURES_BY_TYPE",featuresByType:e,locale:t}),i=(e,t)=>({type:"SET_PLANS",plans:e,locale:t}),a=e=>({type:"SET_PLAN_PRODUCTS",products:e}),s=()=>({type:"RESET_PLAN"})},4703:function(e,t,n){"use strict";n.d(t,{Ls:function(){return r},Ho:function(){return o},TO:function(){return i},YS:function(){return a},Gz:function(){return s},hx:function(){return l},iL:function(){return u},B6:function(){return c},xT:function(){return d},AX:function(){return f},bS:function(){return p},UB:function(){return m},BV:function(){return g},nN:function(){return h}});const r="automattic/onboard/plans",o=1,i="free",a="personal",s="premium",l="business",u="ecommerce",c=[i,a,s,l,u],d=c,f=s,p=["personal-bundle","value_bundle","business-bundle","ecommerce-bundle"],m=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],g=["free_plan",...p,...m],h=["custom-domain","support-live","priority-support"]},9734:function(e,t,n){"use strict";n.r(t),n.d(t,{plansSlugs:function(){return a.B6},plansProductSlugs:function(){return a.BV},TIMELESS_PLAN_FREE:function(){return a.TO},TIMELESS_PLAN_PERSONAL:function(){return a.YS},TIMELESS_PLAN_PREMIUM:function(){return a.Gz},TIMELESS_PLAN_BUSINESS:function(){return a.hx},TIMELESS_PLAN_ECOMMERCE:function(){return a.iL},FREE_PLAN_PRODUCT_ID:function(){return a.Ho},register:function(){return d}});var r=n(9818),o=n(3661),i=n(9068),a=n(4703),s=n(9438),l=n(5261),u=n(7738);let c=!1;function d(){return c||(c=!0,(0,r.registerStore)(a.Ls,{resolvers:l,actions:i,controls:o.ai,reducer:s.ZP,selectors:u})),a.Ls}},9438:function(e,t,n){"use strict";var r=n(9818);const o=(0,r.combineReducers)({features:(e={},t)=>"SET_FEATURES"===t.type?{...e,[t.locale]:t.features}:e,featuresByType:(e={},t)=>"SET_FEATURES_BY_TYPE"===t.type?{...e,[t.locale]:t.featuresByType}:e,planProducts:(e=[],t)=>"SET_PLAN_PRODUCTS"===t.type?t.products:e,plans:(e={},t)=>"SET_PLANS"===t.type?{...e,[t.locale]:t.plans}:e});t.ZP=o},5261:function(e,t,n){"use strict";n.r(t),n.d(t,{getSupportedPlans:function(){return p}});var r=n(1621),o=n(9126),i=n(3661),a=n(9068),s=n(4703);function l(e){return(0,r.ZP)(12*e.raw_price,e.currency_code,{stripZeros:!0})}function u(e){return(0,r.ZP)(e.raw_price,e.currency_code,{stripZeros:!0})}function c(e,t){const n=Object.keys(t).find((n=>t[n].name===e));return!!n&&t[n].requiresAnnuallyBilledPlan}function d(e,t){const n=e.highlighted_features.map((e=>({name:e,requiresAnnuallyBilledPlan:c(e,t)})));return n.sort(((e,t)=>Number(t.requiresAnnuallyBilledPlan)-Number(e.requiresAnnuallyBilledPlan))),n}function f(e,t){const n=s.BV.reduce(((n,o)=>{const i=e.find((e=>e.product_slug===o));if(!i)return n;const a=t.find((e=>e.productIds.indexOf(i.product_id)>-1));var s;return n.push({productId:i.product_id,billingPeriod:31===i.bill_period?"MONTHLY":"ANNUALLY",periodAgnosticSlug:a.periodAgnosticSlug,storeSlug:i.product_slug,rawPrice:i.raw_price,pathSlug:i.path_slug,price:31===(null==i?void 0:i.bill_period)||0===i.raw_price?u(i):(s=i,(0,r.ZP)(s.raw_price/12,s.currency_code,{stripZeros:!0})),annualPrice:31===(null==i?void 0:i.bill_period)?l(i):u(i)}),n}),[]);return function(e){for(let t=0;t<s.bS.length;t++){const n=e.find((e=>e.storeSlug===s.bS[t])),r=e.find((e=>e.storeSlug===s.UB[t]));if(n&&r){const e=12*r.rawPrice,t=n.rawPrice,o=Math.round(100*(1-t/e));n.annualDiscount=o,r.annualDiscount=o}}}(n),n}function*p(e="en"){const t=yield(0,i._9)({path:"/plans",query:(0,o.stringify)({locale:e}),apiVersion:"1.5"}),{body:n}=yield(0,i.An)(`https://public-api.wordpress.com/wpcom/v2/plans/details?locale=${encodeURIComponent(e)}`,{mode:"cors",credentials:"omit"}),r=function(e){return e.reduce(((e,t)=>(e[t.id]={id:t.id,name:t.name,description:t.description,type:"checkbox",requiresAnnuallyBilledPlan:s.nN.indexOf(t.id)>-1},e)),{})}(n.features),l=n.plans.map((e=>{var t;const n=null===(t=e.nonlocalized_short_name)||void 0===t?void 0:t.toLowerCase();return{description:e.tagline,features:d(e,r),storage:e.storage,title:e.short_name,featuresSlugs:e.features.reduce(((e,t)=>(e[t]=!0,e)),{}),isFree:n===s.TO,isPopular:n===s.Gz,periodAgnosticSlug:n,productIds:e.products.map((({plan_id:e})=>e))}})),u=f(t,l);yield(0,a.setPlans)(l,e),yield(0,a.setPlanProducts)(u),yield(0,a.setFeatures)(r,e),yield(0,a.setFeaturesByType)(n.features_by_type,e)}},7738:function(e,t,n){"use strict";n.r(t),n.d(t,{getFeatures:function(){return s},getFeaturesByType:function(){return l},getPlanByProductId:function(){return u},getPlanProductById:function(){return c},getPlanByPeriodAgnosticSlug:function(){return d},getDefaultPaidPlan:function(){return f},getDefaultFreePlan:function(){return p},getSupportedPlans:function(){return m},getPlansProducts:function(){return g},getPrices:function(){return h},getPlanByPath:function(){return y},getPlanProduct:function(){return v},isPlanEcommerce:function(){return _},isPlanFree:function(){return b},isPlanProductFree:function(){return E}});var r=n(9818),o=n(7180),i=n.n(o),a=n(4703);const s=(e,t)=>e.features[t]??{},l=(e,t)=>e.featuresByType[t]??[],u=(e,t,n)=>{if(t)return(0,r.select)(a.Ls).getSupportedPlans(n).find((e=>e.productIds.indexOf(t)>-1))},c=(e,t)=>{if(t)return(0,r.select)(a.Ls).getPlansProducts().find((e=>e.productId===t))},d=(e,t,n)=>{if(t)return(0,r.select)(a.Ls).getSupportedPlans(n).find((e=>e.periodAgnosticSlug===t))},f=(e,t)=>(0,r.select)(a.Ls).getSupportedPlans(t).find((e=>e.periodAgnosticSlug===a.AX)),p=(e,t)=>(0,r.select)(a.Ls).getSupportedPlans(t).find((e=>e.periodAgnosticSlug===a.TO)),m=(e,t)=>e.plans[t]??[],g=e=>e.planProducts,h=(e,t)=>(i()("getPrices",{alternative:"getPlanProduct().price"}),(0,r.select)(a.Ls).getPlansProducts().reduce(((e,t)=>(e[t.storeSlug]=t.price,e)),{})),y=(e,t,n)=>{if(!t)return;const o=(0,r.select)(a.Ls).getPlansProducts().find((e=>e.pathSlug===t));return o?(0,r.select)(a.Ls).getSupportedPlans(n).find((e=>e.periodAgnosticSlug===o.periodAgnosticSlug)):void 0},v=(e,t,n)=>{if(t&&n)return(0,r.select)(a.Ls).getPlansProducts().find((e=>{const r=e.periodAgnosticSlug===t,o=t===a.TO||e.billingPeriod===n;return r&&o}))},_=(e,t)=>t===a.iL,b=(e,t)=>t===a.TO,E=(e,t)=>t===a.Ho},8459:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var r=n(3661),o=n(2699);function i(e){const t=()=>({type:"FETCH_NEW_SITE"}),n=e=>({type:"RECEIVE_NEW_SITE",response:e}),i=e=>({type:"RECEIVE_NEW_SITE_FAILED",error:e});const a=(e,t)=>({type:"RECEIVE_SITE_TITLE",siteId:e,title:t}),s=e=>({type:"LAUNCH_SITE_START",siteId:e}),l=e=>({type:"LAUNCH_SITE_SUCCESS",siteId:e}),u=(e,t)=>({type:"LAUNCH_SITE_FAILURE",siteId:e,error:t});return{receiveSiteDomains:(e,t)=>({type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}),saveSiteTitle:function*(e,t){try{yield(0,r._9)({path:`/sites/${encodeURIComponent(e)}/settings`,apiVersion:"1.4",body:{blogname:t},method:"POST"}),yield a(e,t)}catch(n){}},receiveSiteTitle:a,fetchNewSite:t,fetchSite:()=>({type:"FETCH_SITE"}),receiveNewSite:n,receiveNewSiteFailed:i,resetNewSiteFailed:()=>({type:"RESET_RECEIVE_NEW_SITE_FAILED"}),createSite:function*(t){yield{type:"FETCH_NEW_SITE"};try{const{authToken:o,...i}=t,a={...{client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},...i,validate:!1},s=yield(0,r._9)({path:"/sites/new",apiVersion:"1.1",method:"post",body:a,token:o});return yield n(s),!0}catch(o){return yield i(o),!1}},receiveSite:(e,t)=>({type:"RECEIVE_SITE",siteId:e,response:t}),receiveSiteFailed:(e,t)=>({type:"RECEIVE_SITE_FAILED",siteId:e,response:t}),reset:()=>({type:"RESET_SITE_STORE"}),launchSite:function*(e){yield s(e);try{yield(0,r._9)({path:`/sites/${e}/launch`,apiVersion:"1.1",method:"post"}),yield l(e)}catch(t){yield u(e,o.Hc.INTERNAL)}},launchSiteStart:s,launchSiteSuccess:l,launchSiteFailure:u,getCart:function*(e){return yield(0,r._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"})},setCart:function*(e,t){return yield(0,r._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t})}}}},2005:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});const r="automattic/site"},2369:function(e,t,n){"use strict";n.d(t,{z2:function(){return d}});var r=n(9818),o=n(3661),i=n(8459),a=n(2005),s=n(2701),l=n(7862),u=n(4309);let c=!1;function d(e){return c||(c=!0,(0,r.registerStore)(a.L,{actions:(0,i.d)(e),controls:o.ai,reducer:s.ZP,resolvers:l,selectors:u})),a.L}},2701:function(e,t,n){"use strict";var r=n(9818),o=n(2699);const i=(0,r.combineReducers)({data:(e,t)=>{if("RECEIVE_NEW_SITE"===t.type){const{response:e}=t;return e.blog_details}if("RECEIVE_NEW_SITE_FAILED"!==t.type&&"RESET_SITE_STORE"!==t.type)return e},error:(e,t)=>{switch(t.type){case"FETCH_NEW_SITE":case"RECEIVE_NEW_SITE":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return;case"RECEIVE_NEW_SITE_FAILED":return{error:t.error.error,status:t.error.status,statusCode:t.error.statusCode,name:t.error.name,message:t.error.message}}return e},isFetching:(e=!1,t)=>{switch(t.type){case"FETCH_NEW_SITE":return!0;case"RECEIVE_NEW_SITE":case"RECEIVE_NEW_SITE_FAILED":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return!1}return e}}),a=(0,r.combineReducers)({isFetchingSiteDetails:(e=!1,t)=>{switch(t.type){case"FETCH_SITE":return!0;case"RECEIVE_SITE":case"RECEIVE_SITE_FAILED":return!1}return e},newSite:i,sites:(e={},t)=>{if("RECEIVE_SITE"===t.type)return{...e,[t.siteId]:t.response};if("RECEIVE_SITE_FAILED"===t.type){const{[t.siteId]:n,...r}=e;return{...r}}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?{...e,[t.siteId]:{...e[t.siteId],name:t.title}}:e},launchStatus:(e={},t)=>"LAUNCH_SITE_START"===t.type?{...e,[t.siteId]:{status:o.uS.IN_PROGRESS,errorCode:void 0}}:"LAUNCH_SITE_SUCCESS"===t.type?{...e,[t.siteId]:{status:o.uS.SUCCESS,errorCode:void 0}}:"LAUNCH_SITE_FAILURE"===t.type?{...e,[t.siteId]:{status:o.uS.FAILURE,errorCode:t.error}}:e,sitesDomains:(e={},t)=>"RECEIVE_SITE_DOMAINS"===t.type?{...e,[t.siteId]:t.domains}:e});t.ZP=a},7862:function(e,t,n){"use strict";n.r(t),n.d(t,{getSite:function(){return a},getSiteDomains:function(){return s}});var r=n(9818),o=n(3661),i=n(2005);function*a(e){yield(0,r.dispatch)(i.L).fetchSite();try{const t=yield(0,o._9)({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});yield(0,r.dispatch)(i.L).receiveSite(e,t)}catch(t){yield(0,r.dispatch)(i.L).receiveSiteFailed(e,void 0)}}function*s(e){try{const t=yield(0,o._9)({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});yield(0,r.dispatch)(i.L).receiveSiteDomains(e,null==t?void 0:t.domains)}catch(t){}}},4309:function(e,t,n){"use strict";n.r(t),n.d(t,{getState:function(){return a},getNewSite:function(){return s},getNewSiteError:function(){return l},isFetchingSite:function(){return u},isFetchingSiteDetails:function(){return c},isNewSite:function(){return d},getSite:function(){return f},getSiteTitle:function(){return p},isSiteLaunched:function(){return m},isSiteLaunching:function(){return g},getSiteDomains:function(){return h},getPrimarySiteDomain:function(){return y},getSiteSubdomain:function(){return v}});var r=n(9818),o=n(2005),i=n(2699);const a=e=>e,s=e=>e.newSite.data,l=e=>e.newSite.error,u=e=>e.newSite.isFetching,c=e=>e.isFetchingSiteDetails,d=e=>!!e.newSite.data,f=(e,t)=>e.sites[t],p=(e,t)=>{var n;return null===(n=(0,r.select)(o.L).getSite(t))||void 0===n?void 0:n.name},m=(e,t)=>{var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===i.uS.SUCCESS},g=(e,t)=>{var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===i.uS.IN_PROGRESS},h=(e,t)=>e.sitesDomains[t],y=(e,t)=>{var n;return null===(n=(0,r.select)(o.L).getSiteDomains(t))||void 0===n?void 0:n.find((e=>e.primary_domain))},v=(e,t)=>{var n;return null===(n=(0,r.select)(o.L).getSiteDomains(t))||void 0===n?void 0:n.find((e=>e.is_subdomain))}},2699:function(e,t,n){"use strict";let r,o,i;n.d(t,{Hc:function(){return o},uS:function(){return i}}),function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(r||(r={})),function(e){e.INTERNAL="internal"}(o||(o={})),function(e){e.UNINITIALIZED="unintialized",e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.FAILURE="failure"}(i||(i={}))},4366:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});const r="automattic/wpcom-features"},2613:function(e,t,n){"use strict";n.d(t,{$:function(){return l}});var r=n(9734);const{TIMELESS_PLAN_PERSONAL:o,TIMELESS_PLAN_PREMIUM:i,TIMELESS_PLAN_BUSINESS:a,TIMELESS_PLAN_ECOMMERCE:s}=r,l={domain:{id:"domain",minSupportedPlan:o},store:{id:"store",minSupportedPlan:s},seo:{id:"seo",minSupportedPlan:a},plugins:{id:"plugins",minSupportedPlan:a},"ad-free":{id:"ad-free",minSupportedPlan:o},"image-storage":{id:"image-storage",minSupportedPlan:i},"video-storage":{id:"video-storage",minSupportedPlan:i},support:{id:"support",minSupportedPlan:a}}},182:function(e,t,n){"use strict";n.d(t,{z:function(){return u}});var r=n(9818),o=n(3418),i=n(4366),a=n(8638),s=n(335);let l=!1;function u(){return l||(l=!0,(0,r.registerStore)(i.L,{controls:o.controls,reducer:a.Z,selectors:s})),i.L}},8638:function(e,t,n){"use strict";var r=n(2613);t.Z=(e=r.$)=>e},335:function(e,t,n){"use strict";n.r(t),n.d(t,{getAllFeatures:function(){return o},getRecommendedPlanSlug:function(){return i}});var r=n(4703);const o=e=>e,i=(e,t)=>{const n=o(e);if(t.length)return t.reduce(((e,t)=>{const o=n[t].minSupportedPlan;return r.xT.indexOf(o)>r.xT.indexOf(e)?o:e}),n[t[0]].minSupportedPlan)}},3661:function(e,t,n){"use strict";n.d(t,{_9:function(){return o},An:function(){return i},ai:function(){return a}});var r=n(8552);const o=e=>({type:"WPCOM_REQUEST",request:e}),i=(e,t)=>({type:"FETCH_AND_PARSE",resource:e,options:t}),a={WPCOM_REQUEST:({request:e})=>(0,r.ZP)(e),FETCH_AND_PARSE:async({resource:e,options:t})=>{const n=await window.fetch(e,t);return{ok:n.ok,body:await n.json()}},RELOAD_PROXY:()=>{(0,r.sS)()},REQUEST_ALL_BLOGS_ACCESS:()=>(0,r.Vw)(),WAIT:({ms:e})=>new Promise((t=>setTimeout(t,e)))}},7003:function(e,t,n){"use strict";var r=n(9307),o=n(5609),i=n(9818),a=n(5869),s=n(3383),l=n(6656),u=n(2779),c=n.n(u),d=(n(9196),n(3300));n(5918);t.Z=({onSelect:e,selected:t})=>{const{__:__}=(0,l.useI18n)(),[n,u]=(0,r.useState)(!1),f=t=>{u(!1),e(t)},p=(0,i.useSelect)((e=>e(d.GN).getCategories())),m=__("All Categories","full-site-editing");return(0,r.createElement)("div",{className:c()("domain-categories",{"is-open":n})},(0,r.createElement)(o.Button,{className:"domain-categories__dropdown-button",onClick:()=>u(!n)},(0,r.createElement)("span",null,t??m),(0,r.createElement)(a.Z,{icon:s.Z,size:16})),(0,r.createElement)("ul",{className:"domain-categories__item-group"},(0,r.createElement)("li",{className:c()("domain-categories__item",{"is-selected":!t})},(0,r.createElement)(o.Button,{onClick:()=>f()},__("View all","full-site-editing"))),p.map((({slug:e,title:n})=>(0,r.createElement)("li",{key:e,className:c()("domain-categories__item",{"is-selected":e===t})},(0,r.createElement)(o.Button,{onClick:()=>f(e)},n))))))}},6325:function(e,t,n){"use strict";n.d(t,{q:function(){return i}});var r=n(9307),o=n(6656);n(9196);const i=()=>{const{__:__,isRTL:e}=(0,o.useI18n)();return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 300 40",xmlSpace:"preserve",width:"300",style:e()?{transform:"scaleX(-1)"}:void 0},(0,r.createElement)("rect",{x:"0",width:"310",height:"50",rx:"10",fill:"#D8D8D8"}),(0,r.createElement)("rect",{x:"8",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("rect",{x:"40",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("rect",{x:"72",y:"8",width:"300",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("text",{x:"80",y:"26",direction:"ltr",textAnchor:e()?"end":"start",transform:e()?"scale(-1,1) translate(-160,0)":void 0},(0,r.createElement)("tspan",{fill:"#999"},(0,r.createElement)("tspan",null,"https://")),(0,r.createElement)("tspan",{fill:"#515151",dx:"4.5"},__("example.com","full-site-editing"))))}},1614:function(e,t,n){"use strict";var r=n(9307),o=n(2779),i=n.n(o);n(9196);t.Z=({type:e})=>(0,r.createElement)("div",{className:i()("domain-picker__suggestion-item placeholder",`type-${e}`)},(0,r.createElement)("div",{className:"domain-picker__suggestion-item-name placeholder"}),(0,r.createElement)("div",{className:"domain-picker__price placeholder"}))},7226:function(e,t,n){"use strict";var r=n(7896),o=n(9307),i=n(9196),a=n(6461);const s=i.forwardRef((({type:e,disabled:t,...n},i)=>e===a.ln?(0,o.createElement)("div",n):(0,o.createElement)("button",(0,r.Z)({ref:i,disabled:t},n))));t.Z=s},6461:function(e,t,n){"use strict";n.d(t,{fe:function(){return y},ln:function(){return v},vv:function(){return _}});var r=n(7896),o=n(9307),i=n(6115),a=n(849),s=n(7498),l=n(5609),u=n(4333),c=n(5736),d=n(6656),f=n(2779),p=n.n(f),m=n(9196),g=n(413),h=n(7226);const y="radio",v="button",_="individual-item",b=({isUnavailable:e,domain:t,isLoading:n,cost:r,railcarId:f,hstsRequired:b=!1,isFree:E=!1,isExistingSubdomain:S=!1,isRecommended:A=!1,onSelect:w,onRender:P,selected:C,type:x=y,buttonRef:N})=>{const{__:__,hasTranslation:I}=(0,d.useI18n)(),O=(0,a.bU)(),M=(0,s.Iu)(),L=!(0,u.useViewportMatch)("small",">="),F=t.indexOf("."),T=t.slice(0,F),$=t.slice(F),[D,R]=m.useState(),[k,Z]=m.useState(),j=__("Default","full-site-editing"),U=__("Free","full-site-editing"),B=x===_?j:U,G=__("Included with annual plans","full-site-editing"),V=__("Included in annual plans","full-site-editing"),H="en"===O||null!=I&&I("Included in annual plans")?V:G,W=__("<strong>First year included</strong> in paid plans","full-site-editing"),z=__("<strong>First year included</strong> in annual plans","full-site-editing"),Y="en"===O||null!=I&&I("<strong>First year included</strong> in annual plans")?z:W,K=L?H:(0,o.createInterpolateElement)(Y,{strong:(0,o.createElement)("strong",null)});m.useEffect((()=>{t!==D&&k!==f&&f&&(P(),R(t),Z(f))}),[t,D,k,f,P]);const q=()=>{k&&(0,i.Lo)({action:"domain_selected",railcarId:k}),w(t)},J=__("Selected","full-site-editing"),X=__("Select","full-site-editing");return(0,o.createElement)(h.Z,{ref:N,type:x,key:T,className:p()("domain-picker__suggestion-item",{"is-free":E,"is-selected":C,"is-unavailable":e},`type-${x}`),onClick:x!==v?q:void 0,disabled:e},x===y&&(n?(0,o.createElement)(l.Spinner,null):(0,o.createElement)("span",{className:p()("domain-picker__suggestion-radio-circle",{"is-checked":C,"is-unavailable":e})})),(0,o.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,o.createElement)("div",{className:"domain-picker__suggestion-item-name-inner"},(0,o.createElement)("span",{className:p()("domain-picker__domain-wrapper",{"with-margin":!b})},(0,o.createElement)("span",{className:"domain-picker__domain-sub-domain"},T),(0,o.createElement)("span",{className:"domain-picker__domain-tld"},$)),A&&!e&&(0,o.createElement)("div",{className:"domain-picker__badge is-recommended"},__("Recommended","full-site-editing")),b&&(0,o.createElement)(g.Z,{position:L?"bottom center":"middle right",noArrow:!1,className:"domain-picker__info-tooltip"},(0,o.createInterpolateElement)(__("All domains ending with <tld /> require an SSL certificate to host a website. When you host this domain at WordPress.com an SSL certificate is included. <learn_more_link>Learn more</learn_more_link>","full-site-editing"),{tld:(0,o.createElement)("b",null,$),learn_more_link:(0,o.createElement)("a",{target:"_blank",rel:"noreferrer",href:M("https://wordpress.com/support/https-ssl")})}))),S&&x!==_&&(0,o.createElement)("div",{className:"domain-picker__change-subdomain-tip"},__("You can change your free subdomain later under Domain Settings.","full-site-editing"))),(0,o.createElement)("div",{className:p()("domain-picker__price",{"is-paid":!E})},e&&__("Unavailable","full-site-editing"),E&&!e&&B,!E&&!e&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("span",{className:"domain-picker__price-cost"},(0,c.sprintf)(__("%s/year","full-site-editing"),r)),(0,o.createElement)("span",{className:"domain-picker__price-inclusive"}," ",K," "),(0,o.createElement)("span",{className:"domain-picker__price-renewal"},(0,c.sprintf)(__("Renews at: %s /year","full-site-editing"),r)))),x===v&&(n?(0,o.createElement)(l.Spinner,null):(0,o.createElement)("div",{className:"domain-picker__action"},(0,o.createElement)(l.Button,{ref:N,isSecondary:!0,className:p()("domain-picker__suggestion-select-button",{"is-selected":C&&!e}),disabled:e,onClick:q},C&&!e?J:X))))};t.ZP=m.forwardRef(((e,t)=>(0,o.createElement)(b,(0,r.Z)({},e,{buttonRef:t}))))},605:function(e,t,n){"use strict";var r=n(9307),o=n(9211),i=n(6656),a=(n(9196),n(7226));t.Z=({onClick:e})=>{const{__:__,_x:_x}=(0,i.useI18n)();return(0,r.createElement)(a.Z,{type:"button",className:"domain-picker__suggestion-item type-link",onClick:e},(0,r.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,r.createElement)("span",{className:"domain-picker__domain-wrapper with-margin with-bold-text"},__("Already own a domain?","full-site-editing")),(0,r.createElement)("div",null,(0,r.createElement)("span",{className:"domain-picker__item-tip"},_x("You can use it as your site's address.","Upgrades: Register domain description","full-site-editing")))),(0,r.createElement)(o.b4,{arrow:"right"},_x("Use a domain I own","Domain transfer or mapping suggestion button","full-site-editing")))}},2999:function(e,t,n){"use strict";var r=n(9307),o=n(6115),i=n(584),a=n(5609),s=n(5869),l=n(7108),u=n(6656),c=n(2819),d=n(9196),f=n.n(d),p=n(3300),m=n(5241),g=n(1045),h=n(1071),y=n(3446),v=n(7003),_=n(6325),b=n(6461),E=n(1614),S=n(605);n(5592);const A=function({groupItems:e,children:t}){return e?(0,r.createElement)("div",{className:"domain-picker__suggestion-item-group"},t):(0,r.createElement)(d.Fragment,null,t)},w=function({children:e}){return(0,r.createElement)("p",{className:"domain-picker__suggestion-group-label"},e)};t.ZP=({header:e,showDomainCategories:t,onDomainSelect:n,onExistingSubdomainSelect:P,quantity:C=p.SL,quantityExpanded:x=p.Mm,onDomainSearchBlur:N,analyticsFlowId:I,analyticsUiAlgo:O,initialDomainSearch:M="",onSetDomainSearch:L,currentDomain:F,isCheckingDomainAvailability:T,existingSubdomain:$,segregateFreeAndPaid:D=!1,showSearchField:R=!0,itemType:k=b.fe,locale:Z,areDependenciesLoading:j=!1,orderSubDomainsLast:U=!1,onUseYourDomainClick:B,vendor:G=(0,y.iY)(),showRecommendationLabel:V=!0})=>{var H;const{__:__}=(0,u.useI18n)(),W=__("Search for a domain","full-site-editing"),[z,Y]=(0,d.useState)(!1),[K,q]=(0,d.useState)(M),[J,X]=(0,d.useState)(),{allDomainSuggestions:Q,errorMessage:ee,state:te,retryRequest:ne}=(0,m.O)(K.trim(),x,J,Z)||{},re=null==Q?void 0:Q.filter((e=>!($&&e.is_free))).slice(0,z?x-1:C-1),oe=null==re?void 0:re.findIndex((e=>!e.is_free&&!e.unavailable)),ie=(0,g.$)(re,$,F);ie&&(null==re||re.push(ie));const ae=(0,h.P)();(0,d.useEffect)((()=>{Y(!1)}),[K]);const[se,le]=(0,d.useState)();(0,d.useEffect)((()=>{Q&&le((0,o.k9)("suggestion"))}),[Q,le]),(0,d.useEffect)((()=>{R||q(M)}),[M,R]);const ue=f().useRef([]);(0,d.useEffect)((()=>{var e,t;z&&(null===(e=ue.current[C])||void 0===e||null===(t=e.focus)||void 0===t||t.call(e))}),[z,C]);const ce=(e,t,n,r)=>{const i=`/domains/search/${G}/${I}${J?"/"+J:""}`;(0,o.Sn)({uiAlgo:`/${I}/${O}`,fetchAlgo:i,query:K,railcarId:t,result:r?e+"#recommended":e,uiPosition:n})},de=f().useRef(),fe=te===i.r.Failure,pe=(null===(H=K.trim)||void 0===H?void 0:H.call(K).length)<=1,me=!fe&&!pe,ge=!fe&&pe;let he=C;ie&&(he+=1),B&&(he+=1),$&&(he-=1);const ye=["professional"];return $&&ye.unshift("sub-domain"),U&&ye.reverse(),(0,r.createElement)("div",{className:"domain-picker"},e&&e,R&&(0,r.createElement)("div",{className:"domain-picker__search"},(0,r.createElement)("form",{action:"",onSubmit:e=>{var t;e.preventDefault(),null==de||null===(t=de.current)||void 0===t||t.blur()}},(0,r.createElement)("div",{className:"domain-picker__search-icon"},(0,r.createElement)(s.Z,{icon:l.Z})),(0,r.createElement)(a.TextControl,{ref:e=>{de.current=e},hideLabelFromVision:!0,name:"search",label:W,placeholder:W,onChange:e=>{q(e),L&&L(e)},onBlur:e=>{N&&N(e.currentTarget.value)},value:K,dir:"ltr"}))),fe&&(0,r.createElement)(a.Notice,{className:"domain-picker__error",status:"error",isDismissible:!1},(0,r.createElement)("p",{className:"domain-picker__error-message"},ee||__("An error has occurred, please check your connection and retry.","full-site-editing")),(0,r.createElement)(a.Button,{isPrimary:!0,className:"domain-picker__error-retry-btn",onClick:ne},__("Retry","full-site-editing"))),(me||j)&&(0,r.createElement)("div",{className:"domain-picker__body"},t&&(0,r.createElement)("div",{className:"domain-picker__aside"},(0,r.createElement)(v.Z,{selected:J,onSelect:X})),(0,r.createElement)("div",{className:"domain-picker__suggestion-sections"},(0,r.createElement)("div",{className:"domain-picker__sugggested-items-container"},ye.map((e=>"sub-domain"===e?(0,r.createElement)(d.Fragment,{key:e},D&&(0,r.createElement)(w,null,__("Keep sub-domain","full-site-editing")),(0,r.createElement)(A,{key:e,groupItems:D},!j&&$&&(0,r.createElement)(b.ZP,{key:null==$?void 0:$.domain_name,domain:null==$?void 0:$.domain_name,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:se?`${se}0`:void 0,onRender:()=>ce(null==$?void 0:$.domain_name,`${se}0`,0,!1),selected:(null==F?void 0:F.domain_name)===(null==$?void 0:$.domain_name),onSelect:()=>{null==P||P(null==$?void 0:$.domain_name)},type:k})||(0,r.createElement)(E.Z,{type:k}))):(0,r.createElement)(d.Fragment,{key:e},D&&(0,r.createElement)(w,null,__("Professional domains","full-site-editing")),(0,r.createElement)(A,{key:e,groupItems:D},!j&&(null==re?void 0:re.map(((e,t)=>{var o;const i=null!=$&&$.domain_name?t+1:t,a=t===oe,s=null===(o=ae[null==e?void 0:e.domain_name])||void 0===o?void 0:o.status,l=!s||(null===p.vn||void 0===p.vn?void 0:p.vn.indexOf(s))>-1;return(0,r.createElement)(b.ZP,{ref:e=>{ue.current[i]=e},key:e.domain_name,domain:e.domain_name,cost:e.cost,isUnavailable:!l||(null==e?void 0:e.unavailable),isLoading:(null==F?void 0:F.domain_name)===e.domain_name&&T,hstsRequired:e.hsts_required,isFree:e.is_free,isRecommended:V&&a,railcarId:se?`${se}${i}`:void 0,onRender:()=>ce(e.domain_name,`${se}${i}`,i,a),onSelect:()=>{n(e)},selected:(null==F?void 0:F.domain_name)===e.domain_name,type:k})})))||(0,c.times)(he,(e=>(0,r.createElement)(E.Z,{type:k,key:e}))),B&&!!re&&(0,r.createElement)(S.Z,{onClick:B})))))),!z&&C<x&&(null==Q?void 0:Q.length)&&(null==Q?void 0:Q.length)>C&&(0,r.createElement)("div",{className:"domain-picker__show-more"},(0,r.createElement)(a.Button,{onClick:()=>Y(!0),isLink:!0},__("View more results","full-site-editing"))))),ge&&!j&&(0,r.createElement)("div",{className:"domain-picker__empty-state"},(0,r.createElement)("p",{className:"domain-picker__empty-state--text"},__("A domain name is the site address people type in their browser to visit your site.","full-site-editing")),(0,r.createElement)("div",null,(0,r.createElement)(_.q,null))))}},413:function(e,t,n){"use strict";var r=n(9307),o=n(5609),i=n(5614),a=n(2779),s=n.n(a),l=n(9196);n(125);t.Z=({children:e,className:t,id:n,position:a="bottom center",noArrow:u=!0})=>{const[c,d]=(0,l.useState)(!1);return(0,r.createElement)((e=>(0,r.createElement)(o.Button,e)),{icon:i.Z,onClick:e=>{d(!c),e.stopPropagation()},className:"info-tooltip","data-testid":"info-tooltip"},c&&(0,r.createElement)(o.Popover,{id:n,className:s()("info-tooltip__content",t),onClose:()=>{d(!1)},position:a,noArrow:u},e))}},3300:function(e,t,n){"use strict";n.d(t,{SL:function(){return o},Mm:function(){return i},F9:function(){return a},dP:function(){return s},GN:function(){return l},vn:function(){return u}});var r=n(8077);const o=5,i=10,a=2,s=300,l=r.z2(),u=["available","available_premium"]},1071:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});var r=n(9818),o=n(3300);function i(){return(0,r.useSelect)((e=>e(o.GN).getDomainAvailabilities()),[])}},5241:function(e,t,n){"use strict";n.d(t,{O:function(){return a}});var r=n(9818),o=n(7127),i=n(3300);function a(e="",t,n,a="en",s={}){const[l]=(0,o.Z)(e,i.dP),{invalidateResolutionForStoreSelector:u}=(0,r.useDispatch)(i.GN);return(0,r.useSelect)((e=>{if(!l||l.length<i.F9)return;const{getDomainSuggestions:r,getDomainState:o,getDomainErrorMessage:c}=e(i.GN);return{allDomainSuggestions:r(l,{include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:t+1,locale:a,category_slug:n,...s}),state:o(),errorMessage:c(),retryRequest:()=>{u("__internalGetDomainSuggestions")}}}),[l,n,t])}},1045:function(e,t,n){"use strict";n.d(t,{$:function(){return o}});var r=n(9196);function o(e,t,n){const[o,i]=r.useState(),a=t&&Array.isArray(e)?[t,...e]:e;r.useEffect((()=>{const e=null==a?void 0:a.some((e=>e.domain_name===(null==n?void 0:n.domain_name)));null!=a&&a.length&&!e&&i(n)}),[n,a]);if(!(null==a?void 0:a.some((e=>(null==e?void 0:e.domain_name)===(null==o?void 0:o.domain_name)))))return o}},3446:function(e,t,n){"use strict";function r(e){if(e)return{domain_name:e,relevance:1,supports_privacy:!0,vendor:"",cost:"",product_id:0,product_slug:"",raw_price:0,currency_code:"",unavailable:!1}}function o(e){return void 0!==e.normalize&&!!e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(/[a-z0-9-.\s]/i)}function i(e={}){return e.isSignup&&!e.isDomainOnly?"variation4_front":e.isPremium?"variation8_front":"variation2_front"}n.d(t,{nf:function(){return r},Qi:function(){return o},iY:function(){return i}})},3759:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});const r={AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function o(e){return r[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},1621:function(e,t,n){"use strict";n.d(t,{ZP:function(){return i}});var r=n(1481),o=n(3759);function i(e,t,n={}){const i=(0,o.X)(t);if(!i||isNaN(e))return null;const{decimal:a,grouping:s,precision:l,symbol:u}={...i,...n},c=e<0?"-":"";let d=(0,r.Y4)(Math.abs(e),{decimals:l,thousandsSep:s,decPoint:a});return n.stripZeros&&(d=function(e,t){const n=new RegExp(`\\${t}0+$`);return e.replace(n,"")}(d,a)),`${c}${u}${d}`}},914:function(e,t,n){"use strict";var r=n(382),o=n(6668),i=n(8049),a=n.n(i),s=n(5079),l=n.n(s),u=n(7010),c=n(7839),d=n.n(c),f=n(9830),p=n(3);const m=a()("i18n-calypso"),g="number_format_decimals",h="number_format_thousands_sep",y="messages",v=[function(e){return e}],_={};function b(){P.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function E(e){return Array.prototype.slice.call(e)}function S(e){const t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&b("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",E(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&b("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",E(e));let n={};for(let r=0;r<e.length;r++)"object"==typeof e[r]&&(n=e[r]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function A(e,t){return e.dcnpgettext(y,t.context,t.original,t.plural,t.count)}function w(e,t){for(let n=v.length-1;n>=0;n--){const r=v[n](Object.assign({},t)),o=r.context?r.context+""+r.original:r.original;if(e.state.locale[o])return A(e.state.tannin,r)}return null}function P(){if(!(this instanceof P))return new P;this.defaultLocaleSlug="en",this.defaultPluralForms=e=>1===e?0:1,this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:d()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new r.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}P.throwErrors=!1,P.prototype.on=function(...e){this.stateObserver.on(...e)},P.prototype.off=function(...e){this.stateObserver.off(...e)},P.prototype.emit=function(...e){this.stateObserver.emit(...e)},P.prototype.numberFormat=function(e,t={}){const n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",o=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return(0,p.Z)(e,n,r,o)},P.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},P.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){const t=e[""]["key-hash"],n=function(e,t){const n=!1===t?"":String(t);if(void 0!==_[n+e])return _[n+e];const r=l()().update(e).digest("hex");return _[n+e]=t?r.substr(0,t):r},r=function(e){return function(t){return t.context?(t.original=n(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=n(t.original,e),t}};if("sha1"===t.substr(0,4))if(4===t.length)v.push(r(!1));else{const e=t.substr(5).indexOf("-");if(e<0){const e=Number(t.substr(5));v.push(r(e))}else{const n=Number(t.substr(5,e)),o=Number(t.substr(6+e));for(let e=n;e<=o;e++)v.push(r(e))}}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new f.Z({[y]:this.state.locale}),this.state.numberFormatSettings.decimal_point=A(this.state.tannin,S([g])),this.state.numberFormatSettings.thousands_sep=A(this.state.tannin,S([h])),this.state.numberFormatSettings.decimal_point===g&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===h&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},P.prototype.getLocale=function(){return this.state.locale},P.prototype.getLocaleSlug=function(){return this.state.localeSlug},P.prototype.getLocaleVariant=function(){return this.state.localeVariant},P.prototype.isRtl=function(){return"rtl"===this.state.textDirection},P.prototype.addTranslations=function(e){for(const t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},P.prototype.hasTranslation=function(){return!!w(this,S(arguments))},P.prototype.translate=function(){const e=S(arguments);let t=w(this,e);if(t||(t=A(this.state.tannin,e)),e.args){const r=Array.isArray(e.args)?e.args.slice(0):[e.args];r.unshift(t);try{t=(0,o.Z)(...r)}catch(n){if(!window||!window.console)return;const e=this.throwErrors?"error":"warn";"string"!=typeof n?window.console[e](n):window.console[e]("i18n sprintf error:",r)}}return e.components&&(t=(0,u.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},P.prototype.reRenderTranslations=function(){m("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},P.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},P.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},t.Z=P},1481:function(e,t,n){"use strict";n.d(t,{Y4:function(){return l},Iu:function(){return u}});var r=n(914),o=n(3493),i=n(8373),a=n(975);const s=new r.Z;const l=s.numberFormat.bind(s),u=s.translate.bind(s),{useRtl:c,withRtl:d}=(s.configure.bind(s),s.setLocale.bind(s),s.getLocale.bind(s),s.getLocaleSlug.bind(s),s.getLocaleVariant.bind(s),s.isRtl.bind(s),s.addTranslations.bind(s),s.reRenderTranslations.bind(s),s.registerComponentUpdateHook.bind(s),s.registerTranslateHook.bind(s),s.state,s.stateObserver,s.on.bind(s),s.off.bind(s),s.emit.bind(s),(0,o.Z)(s),(0,a.Z)(s),(0,i.Z)(s))},3493:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(6666),o=n(9307),i=n(9196),a=n.n(i);function s(e){const t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(n){var i,s;const l=n.displayName||n.name||"";return s=i=class extends a().Component{constructor(...e){super(...e),(0,r.Z)(this,"boundForceUpdate",this.forceUpdate.bind(this))}componentDidMount(){e.on("change",this.boundForceUpdate)}componentWillUnmount(){e.off("change",this.boundForceUpdate)}render(){const r={locale:e.getLocaleSlug(),...this.props,...t};return(0,o.createElement)(n,r)}},(0,r.Z)(i,"displayName","Localized("+l+")"),s}}},3:function(e,t,n){"use strict";function r(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");const o=isFinite(+e)?+e:0,i=isFinite(+t)?Math.abs(t):0,a=void 0===r?",":r,s=void 0===n?".":n;let l="";return l=(i?
20
  /*
21
  * Exposes number format capability
22
  *
@@ -24,7 +24,7 @@ object-assign
24
  * @license See CREDITS.md
25
  * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
26
  */
27
- function(e,t){const n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(o,i):""+Math.round(o)).split("."),l[0].length>3&&(l[0]=l[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(l[1]||"").length<i&&(l[1]=l[1]||"",l[1]+=new Array(i-l[1].length+1).join("0")),l.join(s)}n.d(t,{Z:function(){return r}})},8373:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(7896),o=n(9307),i=n(4333),a=n(9196),s=n(6718);function l(e){const t={getCurrentValue:()=>e.isRtl(),subscribe:t=>(e.on("change",t),()=>e.off("change",t))};function n(){return(0,s.useSubscription)(t)}const l=(0,i.createHigherOrderComponent)((e=>(0,a.forwardRef)(((t,i)=>{const a=n();return(0,o.createElement)(e,(0,r.Z)({},t,{isRtl:a,ref:i}))}))),"WithRTL");return{useRtl:n,withRtl:l}}},975:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(9196),o=n.n(r);function i(e){function t(){const t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}return function(){const[n,r]=o().useState(t);return o().useEffect((()=>{const n=()=>r(t);return e.on("change",n),()=>e.off("change",n)}),[]),n}}},849:function(e,t,n){"use strict";n.d(t,{Iw:function(){return u},bU:function(){return d}});var r=n(7896),o=n(9307),i=n(4333),a=n(5736),s=n(9196);const l=(0,s.createContext)(null),u=({children:e,localeSlug:t})=>(0,o.createElement)(l.Provider,{value:t},e);function c(){var e,t;return function(e=""){if(!e)return"";const t=e.toLowerCase();return(["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"].includes(t)?t.replace("_","-"):t.replace(/([-_].*)$/i,""))||"en"}(a.getLocaleData?null===(e=a.getLocaleData())||void 0===e||null===(t=e[""])||void 0===t?void 0:t.language:"")}function d(){const e=(0,s.useContext)(l),t=!!e,[n,r]=(0,s.useState)(c());return(0,s.useEffect)((()=>{if(!t)return r(c()),a.subscribe((()=>{r(c())}))}),[t]),e||n||"en"}(0,i.createHigherOrderComponent)((e=>t=>{const n=d();return(0,o.createElement)(e,(0,r.Z)({locale:n},t))}),"withLocale")},4655:function(e,t,n){"use strict";n.d(t,{GG:function(){return r},iT:function(){return o},xn:function(){return i},Xb:function(){return a},xN:function(){return s},hI:function(){return l},mL:function(){return u},vS:function(){return c},_r:function(){return d}});const r=["en","ja","es","pt","fr","pt-br"],o=["en","fr","de"],i=["en","fr","de"],a={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},s=["en","en-gb"],l=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],u=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],c=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],d=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},7498:function(e,t,n){"use strict";n.d(t,{Iu:function(){return g}});var r=n(7896),o=n(9307),i=n(4333),a=n(9196),s=n(849),l=n(4655);const u="http://__domain__.invalid",c=(e,t=[])=>(n,r)=>(t.includes(r)&&"en"!==r&&n.pathname.substr(0,r.length+2)!=="/"+r+"/"&&(n.host=`${l.Xb[r]||r}.${e}`),n),d=(e,t=[],n=null)=>(r,o)=>(r.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(r.pathname)&&(t=[]),r.pathname=e+r.pathname,t.includes(o)&&"en"!==o&&(r.pathname=o+r.pathname),r),f=(e=[],t=null)=>(n,r)=>("object"==typeof t&&t instanceof RegExp&&!t.test(n.pathname)||e.includes(r)&&"en"!==r&&(n.pathname=r+n.pathname),n),p={"wordpress.com/support/":f(l.hI),"wordpress.com/forums/":f(l.mL),"wordpress.com/blog/":f(l.GG,/^\/blog\/?$/),"wordpress.com/tos/":f(l.vS),"wordpress.com/wp-admin/":c("wordpress.com",l.vS),"wordpress.com/wp-login.php":c("wordpress.com",l.vS),"jetpack.com":c("jetpack.com",l._r),"en.support.wordpress.com":d("/support",l.hI),"en.blog.wordpress.com":d("/blog",l.GG,/^\/$/),"en.forums.wordpress.com":d("/forums",l.mL),"automattic.com/privacy/":f(l.iT),"automattic.com/cookies/":f(l.xn),"wordpress.com/help/contact/":(e,t,n)=>n?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),f(l.hI)(e,t)),"wordpress.com":(e,t)=>/^\/(checkout|me)(\/|$)/.test(e.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(e.pathname)?e:f(l.vS)(e,t),"wordpress.com/theme/":(e,t,n)=>n?e:f(l.vS)(e,t),"wordpress.com/themes/":(e,t,n)=>n?e:f(l.vS)(e,t)};function m(e,t,n=!0){let r;try{r=new URL(String(e),u)}catch(a){return e}if(r.origin===u)return e;r.protocol="https:",r.hostname="",r.pathname.endsWith(".php")||(r.pathname=(r.pathname+"/").replace(/\/+$/,"/"));const o=r.pathname.substr(0,1+r.pathname.indexOf("/",1));if("en.wordpress.com"===r.host&&(r.host="wordpress.com"),"/"+t+"/"===o)return e;const i=[r.host,r.host+o,r.host+r.pathname];for(let s=i.length-1;s>=0;s--)if(i[s]in p)return p[i[s]](r,t,n).href;return e}function g(){const e=(0,s.bU)();return(0,a.useCallback)(((t,n,r)=>m(t,n||e,r)),[e])}(0,i.createHigherOrderComponent)((e=>t=>{const n=g();return(0,o.createElement)(e,(0,r.Z)({localizeUrl:n},t))}),"withLocalizeUrl")},7469:function(e,t,n){"use strict";n.d(t,{s:function(){return r}});const r="focused-launch"},6357:function(e,t,n){"use strict";var r=n(6483),o=n(9196);const i=e=>{window.location.href=e},a=o.createContext({siteId:0,redirectTo:i,getCurrentLaunchFlowUrl:()=>window.location.href,openCheckout:(e,t)=>{i((0,r.addQueryArgs)(`/checkout/${e}`,{...!t&&{redirect_to:`/home/${e}`}}))},flow:"launch",isInIframe:!1});t.Z=a},1918:function(e,t,n){"use strict";var r=n(9307),o=n(6115),i=n(2999),a=n(3446),s=n(6461),l=n(849),u=n(5915),c=n(6656),d=n(9196),f=n(7267),p=n(7469),m=n(6357),g=n(5144),h=n(6956),y=n(780),v=n(1319);n(4695);const _="domain_step";t.Z=()=>{const{getCurrentLaunchFlowUrl:e,redirectTo:t}=d.useContext(m.Z),{__:__,hasTranslation:n}=(0,c.useI18n)(),b=(0,l.bU)(),{siteSubdomain:E}=(0,g.j)(),{domainSearch:S,setDomainSearch:A}=(0,h.f)(),{onDomainSelect:w,onExistingSubdomainSelect:P,currentDomain:C}=(0,y.my)(),x=(0,f.k6)(),N=()=>{x.goBack()},I=e(),O=__("Free for the first year with any paid plan.","full-site-editing"),M=__("Free for the first year with any annual plan.","full-site-editing"),L="en"===b||null!=n&&n("Free for the first year with any annual plan.")?M:O;return(0,r.createElement)("div",{className:"focused-launch-container"},(0,r.createElement)("div",{className:"focused-launch-details__back-button-wrapper"},(0,r.createElement)(v.Z,{onClick:N})),(0,r.createElement)("div",{className:"focused-launch-details__header"},(0,r.createElement)(u.b,null,__("Choose a domain","full-site-editing")),(0,r.createElement)(u.D,null,L)),(0,r.createElement)("div",{className:"focused-launch-details__body"},(0,r.createElement)(i.ZP,{initialDomainSearch:S,onSetDomainSearch:A,onDomainSearchBlur:e=>{(0,o.jN)("calypso_newsite_domain_search_blur",{flow:p.s,query:e,where:_})},currentDomain:C,existingSubdomain:(0,a.nf)(null==E?void 0:E.domain),onDomainSelect:e=>{w(e),N()},onExistingSubdomainSelect:()=>{P(),N()},analyticsFlowId:p.s,analyticsUiAlgo:_,segregateFreeAndPaid:!0,locale:b,itemType:s.ln,onUseYourDomainClick:()=>{const e=`/start/launch-site/domains-launch/use-your-domain?siteSlug=${null==E?void 0:E.domain}&source=${I}`;t(e)}})))}},1319:function(e,t,n){"use strict";var r=n(7896),o=n(9307),i=n(9211),a=n(5736),s=n(5869),l=n(1100),u=n(2779),c=n.n(u);n(9196),n(4882);const __=a.__;t.Z=({className:e,...t})=>(0,o.createElement)(i.xE,(0,r.Z)({},t,{className:c()("go-back-button__focused-launch",e)}),(0,o.createElement)(s.Z,{icon:l.Z}),__("Go back","full-site-editing"))},1342:function(e,t,n){"use strict";var r=n(9307),o=n(737),i=n(9818),a=n(9196),s=n(7267),l=n(3073),u=n(780),c=n(6698),d=n(1120),f=n(1918),p=n(1796),m=n(6321),g=n(4195),h=n(4181);n(6604);t.Z=()=>{const{hasPaidPlan:e,isSiteLaunched:t,isSiteLaunching:n}=(0,l.W)(),[y,v]=(0,i.useSelect)((e=>{const{planProductId:t}=e(d.sC).getState();return[e(d.sC).hasSelectedDomainOrSubdomain(),t]})),_=(0,u.cU)(),{setDomain:b}=(0,i.useDispatch)(d.sC);a.useEffect((()=>{!y&&_&&b(_)}),[y,_,b]);const E=(0,c.eM)(),{setPlanProductId:S}=(0,i.useDispatch)(d.sC),A=a.useRef(!0);a.useEffect((()=>{v&&(A.current=!1)}),[v]),a.useEffect((()=>{!v&&E&&!e&&A.current&&S(E)}),[v,E,S,e,A]);const{unsetPlanProductId:w}=(0,i.useDispatch)(d.sC);return a.useEffect((()=>{e&&w()}),[e,w]),(0,r.createElement)(s.VA,null,(0,r.createElement)(o.Z,{selector:".components-modal__content"}),(t||n)&&(0,r.createElement)(s.l_,{to:m.A.Success}),(0,r.createElement)(s.rs,null,(0,r.createElement)(s.AW,{path:m.A.DomainDetails},(0,r.createElement)(f.Z,null)),(0,r.createElement)(s.AW,{path:m.A.PlanDetails},(0,r.createElement)(p.Z,null)),(0,r.createElement)(s.AW,{path:m.A.Success},(0,r.createElement)(g.Z,null)),(0,r.createElement)(s.AW,{path:m.A.Summary},(0,r.createElement)(h.Z,null))))}},1796:function(e,t,n){"use strict";var r=n(9307),o=n(849),i=n(5915),a=n(5315),s=n(9818),l=n(5736),u=(n(9196),n(7267)),c=n(1120),d=n(1319);n(2772);const __=l.__;t.Z=()=>{const e=(0,o.bU)(),t=(0,s.useSelect)((e=>e(c.sC).getSelectedDomain())),n=(0,s.useSelect)((e=>e(c.sC).getSelectedPlanProductId())),f=(0,u.k6)(),{updatePlan:p}=(0,s.useDispatch)(c.sC),m=t&&!t.is_free,g=()=>{f.goBack()};return(0,r.createElement)("div",{className:"focused-launch-container focused-launch-container--wide"},(0,r.createElement)("div",{className:"focused-launch-details__back-button-wrapper"},(0,r.createElement)(d.Z,{onClick:g})),(0,r.createElement)("div",{className:"focused-launch-details__header"},(0,r.createElement)(i.b,{tagName:"h2"},__("Select a plan","full-site-editing")),(0,r.createElement)(i.D,{tagName:"h3"},(0,l.sprintf)(__("There's no risk, you can cancel for a full refund within %1$d days.","full-site-editing"),14))),(0,r.createElement)("div",{className:"focused-launch-details__body"},(0,r.createElement)(a.Z,{currentDomain:t,onPlanSelect:e=>{p(e),g()},currentPlanProductId:n,onPickDomainClick:g,customTagLines:{free:__("Best for getting started","full-site-editing"),business:__("Best for small businesses","full-site-editing")},showPlanTaglines:!0,popularBadgeVariation:"NEXT_TO_NAME",disabledPlans:m?{free:__("Unavailable with domain","full-site-editing")}:void 0,CTAVariation:"FULL_WIDTH",locale:e,hidePlansComparison:!0,defaultAllPlansExpanded:!0})))}},6321:function(e,t,n){"use strict";let r;n.d(t,{A:function(){return r}}),function(e){e.Summary="/",e.PlanDetails="/plan-details",e.DomainDetails="/domain-details",e.Success="/success"}(r||(r={}))},2929:function(e,t,n){"use strict";var r=n(9307),o=n(5609);n(9196);t.Z=({className:e})=>(0,r.createElement)(o.SVG,{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 356 136",role:"presentation",className:e},(0,r.createElement)(o.Rect,{x:"314.913",y:"59.963",width:"7",height:"22",rx:"3.5",transform:"rotate(-50 314.913 59.963)",fill:"#984A9C"}),(0,r.createElement)(o.Rect,{y:"121.876",width:"5.091",height:"16",rx:"2.545",transform:"rotate(-50 0 121.876)",fill:"#64CA43"}),(0,r.createElement)(o.Rect,{x:"21.447",y:"85.104",width:"7",height:"22",rx:"3.5",transform:"rotate(-120 21.447 85.104)",fill:"#37E788"}),(0,r.createElement)(o.Rect,{x:"75",y:"61.64",width:"4",height:"12.571",rx:"2",transform:"rotate(130 75 61.64)",fill:"#FF2D55"}),(0,r.createElement)(o.Rect,{x:"247.461",y:"63.86",width:"4.773",height:"15",rx:"2.386",transform:"rotate(118 247.461 63.86)",fill:"#E7C037"}),(0,r.createElement)(o.Rect,{x:"97",y:"2.529",width:"4.773",height:"15",rx:"2.386",transform:"rotate(-32 97 2.53)",fill:"#117AC9"}),(0,r.createElement)(o.Rect,{x:"323.638",y:"110.513",width:"5.091",height:"16",rx:"2.545",transform:"rotate(40 323.638 110.513)",fill:"#3361CC"}),(0,r.createElement)(o.Rect,{x:"160.138",y:"27",width:"7",height:"22",rx:"3.5",transform:"rotate(40 160.138 27)",fill:"#FF8085"}),(0,r.createElement)(o.Circle,{cx:"40.5",cy:"101.095",r:"4.5",fill:"#F0B849"}),(0,r.createElement)(o.Circle,{cx:"20.928",cy:"47.751",r:"3",fill:"#BF5AF2"}),(0,r.createElement)(o.Circle,{cx:"341",cy:"134",r:"2",fill:"#F0C930"}),(0,r.createElement)(o.Circle,{cx:"131",cy:"83",r:"2",fill:"#3361CC"}),(0,r.createElement)(o.Circle,{cx:"214.5",cy:"13.5",r:"2.5",fill:"#37E688"}),(0,r.createElement)(o.Circle,{cx:"352.763",cy:"98.263",r:"3",fill:"#009E73"}),(0,r.createElement)(o.Circle,{cx:"285.181",cy:"60.541",r:"3",fill:"#FF3B30"}))},4195:function(e,t,n){"use strict";var r=n(9307),o=n(5915),i=n(9211),a=n(5609),s=n(9818),l=n(5736),u=n(5869),c=n(2042),d=n(9196),f=n(6357),p=n(5144),m=n(6134),g=n(1120),h=n(2929);n(8060);const __=l.__;t.Z=()=>{const{redirectTo:e,siteId:t,getCurrentLaunchFlowUrl:n,isInIframe:l}=d.useContext(f.Z),y=(0,s.useSelect)((e=>e(g.j4).isSiteLaunching(t)),[]),[v,_]=(0,s.useSelect)((e=>{const t=e(g.sC);return[t.isSelectedPlanPaid(),t.getSelectedDomain()]}),[]),[b,E]=d.useState(!1),{savePost:S}=(0,s.useDispatch)("core/editor");d.useEffect((()=>{(async()=>{b||(await S(),E(!0))})()}),[b,S]);const{unsetModalDismissible:A,hideModalTitle:w,closeFocusedLaunch:P}=(0,s.useDispatch)(g.sC),{siteSubdomain:C,sitePrimaryDomain:x}=(0,p.j)(),[N,I]=d.useState(""),[O,M]=d.useState(!1),L=(0,m.O)(),F=!_&&!v||!L&&l;d.useEffect((()=>{I(`https://${null==x?void 0:x.domain}`)}),[x]),d.useEffect((()=>{A(),w()}),[A,w]);const T=__("Your site will be live shortly.","full-site-editing"),$=__("Congratulations, your website is now live. We're excited to watch you grow with WordPress.","full-site-editing"),D=__("Copy Link","full-site-editing"),R=__("Copied!","full-site-editing"),k=!y&&b;return(0,r.createElement)("div",{className:"focused-launch-container focused-launch-success__wrapper"},(0,r.createElement)(h.Z,{className:"focused-launch-success__confetti"}),(0,r.createElement)(o.b,{tagName:"h2"},__("Hooray!","full-site-editing")),(0,r.createElement)(o.D,{tagName:"h3"},k?$:T),F&&k&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"focused-launch-success__url-wrapper"},(0,r.createElement)("span",{className:"focused-launch-success__url-field"},N),(0,r.createElement)("a",{href:N,target:"_blank",rel:"noopener noreferrer",className:"focused-launch-success__url-link","aria-label":__("Visit site","full-site-editing")},(0,r.createElement)(u.Z,{icon:c.Z,size:16})),(0,r.createElement)(a.ClipboardButton,{text:N,onCopy:()=>M(!0),onFinishCopy:()=>M(!1),className:"focused-launch-success__url-copy-button"},O?R:D)),(0,r.createElement)(i.aW,{onClick:()=>{if(v){var t;const r=null===(t=new URL(n()||""))||void 0===t?void 0:t.pathname;e(r||`/page/${null==C?void 0:C.domain}/home`)}else P()},className:"focused-launch-success__continue-editing-button"},__("Continue Editing","full-site-editing")),(0,r.createElement)(i.xE,{onClick:()=>{e(`/home/${null==C?void 0:C.domain}`)}},__("Back home","full-site-editing"))))}},4245:function(e,t,n){"use strict";n.d(t,{gw:function(){return s},Pw:function(){return l}});var r=n(7896),o=n(9307),i=n(2779),a=n.n(i);n(9196),n(6385);const s=({label:e,badgeText:t})=>(0,o.createElement)("div",{className:"focused-launch-summary-item__leading-side"},(0,o.createElement)("span",{className:"focused-launch-summary-item__leading-side-label"},e),t?(0,o.createElement)("span",{className:"focused-launch-summary-item__leading-side-badge"},t):null),l=({nodeType:e,children:t})=>(0,o.createElement)("div",{className:a()({"focused-launch-summary-item__warning-note":"WARNING"===e,"focused-launch-summary-item__price-cost":"PRICE"===e})},t);t.ZP=({children:e,isSelected:t=!1,readOnly:n=!1,isLoading:i,...s})=>(0,o.createElement)("button",(0,r.Z)({},s,{disabled:n,className:a()("focused-launch-summary__item",{"is-selected":t,"is-readonly":n,"is-loading":i})}),null==e?void 0:e[0],null==e?void 0:e[1])},4181:function(e,t,n){"use strict";var r=n(9307),o=n(2999),i=n(6461),a=n(3446),s=n(849),l=n(7498),u=n(5915),c=n(9211),d=n(5609),f=n(9818),p=n(5736),m=n(5869),g=n(9806),h=n(2779),y=n.n(h),v=n(9196),_=n(7933),b=n(7469),E=n(6357),S=n(6698),A=n(3073),w=n(4557),P=n(5144),C=n(780),x=n(6956),N=n(8039),I=n(1120),O=n(6321),M=n(4245);n(141);const __=p.__,L=(0,r.createElement)(d.SVG,{viewBox:"0 0 24 24"},(0,r.createElement)(d.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})),F=(0,r.createElement)(d.SVG,{className:"focused-launch-summary__info-icon",viewBox:"0 0 24 24",width:"16"},(0,r.createElement)(d.Circle,{cx:"12",cy:"12",stroke:"#8C8F94",strokeWidth:"2",r:"10",fill:"transparent"}),(0,r.createElement)(d.Rect,{x:"10.5",y:"5",width:"3",height:"3",fill:"#8C8F94"}),(0,r.createElement)(d.Rect,{x:"10.5",y:"10",width:"3",height:"8",fill:"#8C8F94"})),T=({input:e,commentary:t,highlighted:n})=>(0,r.createElement)("div",{className:y()("focused-launch-summary__step",{highlighted:n})},(0,r.createElement)("div",{className:"focused-launch-summary__data-input"},(0,r.createElement)("div",{className:"focused-launch-summary__section"},e)),(0,r.createElement)("div",{className:"focused-launch-summary__side-commentary"},t)),$=({stepIndex:e,value:t,onChange:n,onBlur:o})=>(0,r.createElement)(T,{highlighted:!0,input:(0,r.createElement)(d.TextControl,{className:"focused-launch-summary__input",label:(0,r.createElement)("label",{className:"focused-launch-summary__label"},e&&`${e}. `,__("Name your site","full-site-editing")),value:t,onChange:n,onBlur:o})}),D=({stepIndex:e,existingSubdomain:t,currentDomain:n,initialDomainSearch:a,hasPaidDomain:l,onDomainSelect:u,onExistingSubdomainSelect:c,isLoading:f,highlighted:p})=>{const h=(0,s.bU)();return(0,r.createElement)(T,{highlighted:!!p,input:l?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("label",{className:"focused-launch-summary__label"},__("Your domain","full-site-editing"),(0,r.createElement)(d.Tooltip,{position:"top center",text:__("Changes to your purchased domain can be managed from your Domains page.","full-site-editing")},(0,r.createElement)("span",null,F)),(0,r.createElement)("p",{className:"focused-launch-summary__mobile-commentary"},(0,r.createElement)(m.Z,{icon:L}),(0,r.createElement)("span",null,(0,r.createInterpolateElement)(__("<strong>Unique domains</strong> help build brand trust","full-site-editing"),{strong:(0,r.createElement)("strong",null)})))),(0,r.createElement)(M.ZP,{readOnly:!0},(0,r.createElement)(M.gw,{label:(null==n?void 0:n.domain_name)||""}),(0,r.createElement)(M.Pw,{nodeType:"PRICE"},(0,r.createElement)(m.Z,{icon:g.Z,size:18})," ",__("Purchased","full-site-editing")))):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.ZP,{header:(0,r.createElement)(r.Fragment,null,(0,r.createElement)("label",{className:"focused-launch-summary__label"},e&&`${e}. `,__("Confirm your domain","full-site-editing")),(0,r.createElement)("p",{className:"focused-launch-summary__mobile-commentary"},(0,r.createElement)(m.Z,{icon:L}),(0,r.createElement)("span",null,(0,r.createInterpolateElement)(__("<strong>46.9%</strong> of registered domains are <strong>.com</strong>","full-site-editing"),{strong:(0,r.createElement)("strong",null)})))),areDependenciesLoading:f,existingSubdomain:t,currentDomain:n,onDomainSelect:u,onExistingSubdomainSelect:c,initialDomainSearch:a,showSearchField:!1,analyticsFlowId:b.s,analyticsUiAlgo:"summary_domain_step",quantity:3,quantityExpanded:3,itemType:i.vv,locale:h,orderSubDomainsLast:!0}),(0,r.createElement)(_.rU,{to:O.A.DomainDetails,className:"focused-launch-summary__details-link"},__("View all domains","full-site-editing"))),commentary:(0,r.createElement)(r.Fragment,null,l?(0,r.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},(0,r.createInterpolateElement)(__("<strong>Unique domains</strong> help build brand recognition and trust","full-site-editing"),{strong:(0,r.createElement)("strong",null)})):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},(0,r.createInterpolateElement)(__("<strong>46.9%</strong> of globally registered domains are <strong>.com</strong>","full-site-editing"),{strong:(0,r.createElement)("strong",null)})),(0,r.createElement)("ul",{className:"focused-launch-summary__side-commentary-list"},(0,r.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,r.createElement)(m.Z,{icon:g.Z}),__("Stand out with a unique domain","full-site-editing")),(0,r.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,r.createElement)(m.Z,{icon:g.Z}),__("Easy to remember and easy to share","full-site-editing")),(0,r.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,r.createElement)(m.Z,{icon:g.Z}),__("Builds brand recognition and trust","full-site-editing")))))})},R=({stepIndex:e,highlighted:t,hasPaidPlan:n=!1,hasPaidDomain:o=!1,selectedPaidDomain:i=!1})=>{const a=(0,s.bU)(),{setPlanProductId:l}=(0,f.useDispatch)(I.sC),[u,c]=(0,f.useSelect)((e=>[e(I.sC).getSelectedPlanProductId(),e(I.sC).getLastPlanBillingPeriod()])),{selectedPlan:h,selectedPlanProduct:y}=(0,f.useSelect)((e=>{const t=e(I.Fs);return{selectedPlan:t.getPlanByProductId(u,a),selectedPlanProduct:t.getPlanProductById(u)}})),[b,E]=v.useState(),[w,P]=v.useState(),{defaultPaidPlan:C,defaultFreePlan:x,defaultPaidPlanProduct:N,defaultFreePlanProduct:$}=(0,S.xn)(c);v.useEffect((()=>{h&&C&&!h.isFree&&h.periodAgnosticSlug!==C.periodAgnosticSlug&&(E(h),P(y))}),[h,C,b,y]);const D=e=>e&&e.periodAgnosticSlug===(null==h?void 0:h.periodAgnosticSlug),{sitePlan:R}=(0,A.W)(),k=b?[C,b,x]:[C,x],Z=w?[N,w,$]:[N,$],j=__("Popular","full-site-editing"),U=__("Free","full-site-editing"),B=__("Not available with your domain selection","full-site-editing");return(0,r.createElement)(T,{highlighted:!!t,input:n?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("label",{className:"focused-launch-summary__label"},__("Your plan","full-site-editing"),(0,r.createElement)(d.Tooltip,{position:"top center",text:__("Changes to your purchased plan can be managed from your Plans page.","full-site-editing")},(0,r.createElement)("span",null,F)),(0,r.createElement)("p",{className:"focused-launch-summary__mobile-commentary focused-launch-summary__mobile-only"},(0,r.createElement)(m.Z,{icon:L}),(0,r.createElement)("span",null,(0,r.createInterpolateElement)(__("More than <strong>38%</strong> of the internet uses <strong>WordPress</strong>","full-site-editing"),{strong:(0,r.createElement)("strong",null)})))),(0,r.createElement)("div",null,(0,r.createElement)(M.ZP,{readOnly:!0},(0,r.createElement)(M.gw,{label:(0,p.sprintf)(__("%s Plan","full-site-editing"),null==R?void 0:R.product_name_short)}),(0,r.createElement)(M.Pw,{nodeType:"PRICE"},(0,r.createElement)(m.Z,{icon:g.Z,size:18})," ",__("Purchased","full-site-editing"))))):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("label",{className:"focused-launch-summary__label"},e&&`${e}. `,__("Confirm your plan","full-site-editing")),(0,r.createElement)("p",{className:"focused-launch-summary__mobile-commentary focused-launch-summary__mobile-only"},(0,r.createElement)(m.Z,{icon:L}),(0,r.createElement)("span",null,(0,r.createInterpolateElement)(__("Grow your business with <strong>WordPress Business</strong>","full-site-editing"),{strong:(0,r.createElement)("strong",null)}))),(0,r.createElement)("div",null,k.map(((e,t)=>{var n;const a=Z[t];return e&&a&&e.periodAgnosticSlug===(null==a?void 0:a.periodAgnosticSlug)?(0,r.createElement)(M.ZP,{key:e.periodAgnosticSlug,isLoading:!x||!C,onClick:()=>{var e;return l(null===(e=Z[t])||void 0===e?void 0:e.productId)},isSelected:D(e),readOnly:e.isFree&&(o||i)},(0,r.createElement)(M.gw,{label:(0,p.sprintf)(__("%s Plan","full-site-editing"),e.title??""),badgeText:e.isPopular?j:""}),e.isFree?(0,r.createElement)(M.Pw,{nodeType:o||i?"WARNING":"PRICE"},o||i?B:U):(0,r.createElement)(M.Pw,{nodeType:"PRICE"},(0,r.createElement)("span",null,null===(n=Z[t])||void 0===n?void 0:n.price),(0,r.createElement)("span",null,__("/mo","full-site-editing")))):(0,r.createElement)(M.ZP,{key:t,isLoading:!0})}))),(0,r.createElement)(_.rU,{to:O.A.PlanDetails,className:"focused-launch-summary__details-link"},__("View all plans","full-site-editing"))),commentary:n?(0,r.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},(0,r.createInterpolateElement)(__("More than <strong>38%</strong> of the internet uses <strong>WordPress</strong>","full-site-editing"),{strong:(0,r.createElement)("strong",null)})):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},(0,r.createInterpolateElement)(__("Monetize your site with <strong>WordPress Premium</strong>","full-site-editing"),{strong:(0,r.createElement)("strong",null)})),(0,r.createElement)("ul",{className:"focused-launch-summary__side-commentary-list"},(0,r.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,r.createElement)(m.Z,{icon:g.Z}),__("Advanced tools and customization","full-site-editing")),(0,r.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,r.createElement)(m.Z,{icon:g.Z}),__("Accept payments","full-site-editing"))))})};t.Z=()=>{const{siteId:e}=v.useContext(E.Z),[t,n,o,i]=(0,f.useSelect)((e=>{const t=e(I.sC),{isSiteTitleStepVisible:n,domain:r,planProductId:o}=t.getState();return[t.hasSelectedDomainOrSubdomain(),n,r,o]}),[]),p=(0,f.useSelect)((e=>e(I.sC).isSelectedPlanPaid()),[]),{launchSite:m}=(0,f.useDispatch)(I.j4),{setModalDismissible:g,unsetModalDismissible:h,showModalTitle:_,showSiteTitleStep:b}=(0,f.useDispatch)(I.sC),{title:S,isValidTitle:O,isDefaultTitle:M,updateTitle:L}=(0,w.Z)(),{siteSubdomain:F,hasPaidDomain:T}=(0,P.j)(),{onDomainSelect:k,onExistingSubdomainSelect:Z,currentDomain:j}=(0,C.my)(),{domainSearch:U,isLoading:B}=(0,x.f)(),{hasPaidPlan:G}=(0,A.W)(),V=(0,s.bU)(),H=(0,l.Iu)(),{goToCheckoutAndLaunch:W,isCartUpdating:z}=(0,N.j)();v.useEffect((()=>{z?h():g(),_()}),[z,g,_,h]),v.useEffect((()=>{!n&&M&&b()}),[M,b,n,S]);const Y=!!i||!!t||O,K=!!t||!!i,q=[],J=[];n&&J.push((({stepIndex:e,forwardStepIndex:t})=>(0,r.createElement)($,{stepIndex:t?e:void 0,key:e,value:S||"",onChange:L}))),(T?q:J).push((({stepIndex:e,forwardStepIndex:t})=>(0,r.createElement)(D,{highlighted:Y,stepIndex:t?e:void 0,key:e,existingSubdomain:(0,a.nf)(null==F?void 0:F.domain),currentDomain:j,initialDomainSearch:U,hasPaidDomain:T,isLoading:B,onDomainSelect:k,onExistingSubdomainSelect:Z}))),(G?q:J).push((({stepIndex:e,forwardStepIndex:t})=>(0,r.createElement)(R,{highlighted:K,hasPaidPlan:G,selectedPaidDomain:o&&!o.is_free,hasPaidDomain:T,stepIndex:t?e:void 0,key:e})));const X=S&&(T||t)&&(G||i),Q=__("You're ready to launch","full-site-editing"),ee=__("You're almost there","full-site-editing"),te=__("You're good to go! Launch your site and share your site address.","full-site-editing"),ne=__("Prepare for launch! Confirm a few final things before you take it live.","full-site-editing");return(0,r.createElement)("div",{className:"focused-launch-container"},(0,r.createElement)("div",{className:"focused-launch-summary__section"},(0,r.createElement)(u.b,{tagName:"h2"},T&&G?Q:ee),(0,r.createElement)(u.D,{tagName:"p",className:"focused-launch-summary__caption"},T&&G?te:ne)),q.map(((e,t)=>e({stepIndex:t+1,forwardStepIndex:!1}))),J.map(((e,t)=>e({stepIndex:t+1,forwardStepIndex:J.length>1}))),(0,r.createElement)("div",{className:"focused-launch-summary__actions-wrapper"},(0,r.createElement)(c.ZP,{className:"focused-launch-summary__launch-action-bar"},(0,r.createElement)(c.aW,{className:y()("focused-launch-summary__launch-button",{"focused-launch-summary__launch-button--is-loading":z}),disabled:!X||z,onClick:()=>{o||p?W():m(e)}},__("Launch your site","full-site-editing"))),(0,r.createElement)("div",{className:"focused-launch-summary__ask-for-help"},(0,r.createElement)("p",null,__("Questions? Our experts can assist.","full-site-editing")),(0,r.createElement)(d.Button,{isLink:!0,href:H("https://wordpress.com/help/contact",V),target:"_blank",rel:"noopener noreferrer"},__("Ask a Happiness Engineer","full-site-editing")))))}},8039:function(e,t,n){"use strict";n.d(t,{j:function(){return d}});var r=n(849),o=n(9818),i=n(9196),a=n(6357),s=n(5144),l=n(6134),u=n(1120),c=n(6950);function d(){const{siteId:e,flow:t,openCheckout:n,isInIframe:d}=i.useContext(a.Z),f=(0,r.bU)(),[p,m]=(0,o.useSelect)((e=>[e(u.sC).getSelectedPlanProductId(),e(u.sC).getSelectedDomain()])),{planProduct:g,isEcommercePlan:h}=(0,o.useSelect)((e=>{const t=e(u.Fs),n=t.getPlanByProductId(p,f);return{planProduct:t.getPlanProductById(p),isEcommercePlan:t.isPlanEcommerce(null==n?void 0:n.periodAgnosticSlug)}}),[p,f]),{siteSubdomain:y}=(0,s.j)(),{getCart:v,setCart:_,launchSite:b}=(0,o.useDispatch)(u.j4),E=()=>b(e),[S,A]=i.useState(!1),w=(0,l.O)(),P=async()=>{await(async()=>{if(S)return;A(!0);const n=m&&(0,c.K9)(m,t),r=g&&(0,c.An)(g,t),o=await v(e);await _(e,{...o,products:[r,n]}),A(!1)})(),n(null==y?void 0:y.domain,h,E)};return{goToCheckout:P,goToCheckoutAndLaunch:async()=>{d&&!w||await b(e),P()},isCartUpdating:S}}},6956:function(e,t,n){"use strict";n.d(t,{f:function(){return c}});var r=n(3300),o=n(3446),i=n(9818),a=n(1120),s=n(5144),l=n(4557),u=n(3073);function c(){var e;const t=(0,i.useSelect)((e=>e(a.sC).getDomainSearch()),[]),{isDefaultTitle:n,title:c}=(0,l.Z)(),{isLoadingSite:d}=(0,u.W)(),{siteSubdomain:f}=(0,s.j)(),{setDomainSearch:p}=(0,i.useDispatch)(a.sC),m=void 0!==c&&c.length>=r.F9&&!n?c:"",g=(t.trim()||function(e){return(0,o.Qi)(e)?e:""}(m)||(null==f||null===(e=f.domain)||void 0===e?void 0:e.split(".")[0]))??"";return{domainSearch:g,isLoading:d,setDomainSearch:p}}},780:function(e,t,n){"use strict";n.d(t,{cU:function(){return d},my:function(){return f}});var r=n(4211),o=n(3446),i=n(9818),a=n(9196),s=n(6357),l=n(1120),u=n(6950),c=n(5144);function d(){const e=function(){const{siteId:e}=a.useContext(s.Z),{getCart:t}=(0,i.useDispatch)(l.j4),[n,r]=a.useState(void 0);return a.useEffect((()=>{!async function(){var n;const o=null===(n=(await t(e)).products)||void 0===n?void 0:n.find((e=>(0,u.pf)(e)));r(o)}()}),[e,t,r]),n}(),t=null==e?void 0:e.meta,n=(0,i.useSelect)((e=>{if(t)return e(l.GN).isAvailable(t)}),[t]);if(e&&t&&n&&"available"===n.status)return{hsts_required:n.hsts_required,domain_name:t,raw_price:e.cost,currency_code:e.currency,supports_privacy:e.extra.privacy_available,is_free:!1,product_id:e.product_id,product_slug:e.product_slug,cost:r._B(e.cost,e.currency),unavailable:!1}}function f(){const{setDomain:e,unsetDomain:t,unsetPlanProductId:n,confirmDomainSelection:r}=(0,i.useDispatch)(l.sC),{domain:a,planProductId:s,confirmedDomainSelection:u}=(0,i.useSelect)((e=>e(l.sC).getState())),d=(0,i.useSelect)((e=>e(l.Fs).isPlanProductFree(s))),{siteSubdomain:f,hasPaidDomain:p,sitePrimaryDomain:m}=(0,c.j)();let g;return a?g=a:p?g=(0,o.nf)(null==m?void 0:m.domain):u&&(g=(0,o.nf)(null==f?void 0:f.domain)),{onDomainSelect:function(t){r(),e(t),d&&n()},onExistingSubdomainSelect:function(){r(),t()},selectedDomain:a,currentDomain:g}}},6134:function(e,t,n){"use strict";n.d(t,{O:function(){return a}});var r=n(849),o=n(9818),i=n(1120);function a(){const e=(0,r.bU)(),t=(0,o.useSelect)((e=>e(i.sC).getSelectedPlanProductId()),[]);return(0,o.useSelect)((n=>{const r=n(i.Fs),o=r.getPlanByProductId(t,e);return r.isPlanEcommerce(null==o?void 0:o.periodAgnosticSlug)}),[t,e])}},6698:function(e,t,n){"use strict";n.d(t,{xn:function(){return u},eM:function(){return c}});var r=n(849),o=n(9818),i=n(9196),a=n(6357),s=n(1120),l=n(6950);function u(e="ANNUALLY"){const t=(0,r.bU)();return(0,o.useSelect)((n=>{const r=n(s.Fs),o=r.getDefaultFreePlan(t),i=r.getDefaultPaidPlan(t),a=r.getPlanProduct(null==i?void 0:i.periodAgnosticSlug,e);return{defaultFreePlan:o,defaultPaidPlan:i,defaultFreePlanProduct:r.getPlanProduct(null==o?void 0:o.periodAgnosticSlug,e),defaultPaidPlanProduct:a}}),[e,t])}function c(){const e=function(){const{siteId:e}=i.useContext(a.Z),{getCart:t}=(0,o.useDispatch)(s.j4),[n,r]=i.useState(void 0);return i.useEffect((()=>{!async function(){var n;const o=null===(n=(await t(e)).products)||void 0===n?void 0:n.find((e=>(0,l.HM)(e)));r(o)}()}),[e,t,r]),n}();return null==e?void 0:e.product_id}},5144:function(e,t,n){"use strict";n.d(t,{j:function(){return s}});var r=n(9818),o=n(9196),i=n(6357),a=n(1120);function s(){const{siteId:e}=o.useContext(i.Z),t=(0,r.useSelect)((t=>t(a.j4).getPrimarySiteDomain(e)));return{sitePrimaryDomain:t,siteSubdomain:(0,r.useSelect)((t=>t(a.j4).getSiteSubdomain(e))),hasPaidDomain:t&&!(null!=t&&t.is_subdomain)}}},3073:function(e,t,n){"use strict";n.d(t,{W:function(){return s}});var r=n(9818),o=n(9196),i=n(6357),a=n(1120);function s(){var e,t;const{siteId:n}=o.useContext(i.Z),[s,l,u,c]=(0,r.useSelect)((e=>{const t=e(a.j4);return[t.getSite(n),t.isSiteLaunched(n),t.isSiteLaunching(n),t.isFetchingSiteDetails()]}),[n]);return{sitePlan:null==s?void 0:s.plan,hasPaidPlan:s&&!(null!==(e=s.plan)&&void 0!==e&&e.is_free),isSiteLaunched:l,isSiteLaunching:u,selectedFeatures:null==s||null===(t=s.options)||void 0===t?void 0:t.selected_features,isLoadingSite:!!c}}},4557:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(849),o=n(4655),i=n(9818),a=n(5736),s=n(9196),l=n(669),u=n(6357),c=n(1120);const __=a.__;function d(){const{siteId:e}=(0,s.useContext)(u.Z),t=(0,r.bU)(),n=(0,i.useSelect)((t=>t(c.j4).getSiteTitle(e)),[e]),a=(0,i.useSelect)((e=>e(c.sC).getSiteTitle()),[]),d=(0,i.useDispatch)(c.sC).setSiteTitle,f=(0,i.useDispatch)(c.j4).saveSiteTitle,[p]=(0,l.Z)(f,1e3),m=void 0===a,g=m?n:a;(0,s.useEffect)((()=>{m||p(e,a)}),[a,p,e,m]);const h=__("Site Title","full-site-editing");let y=void 0!==g&&g===h,v=void 0!==g&&""!==g&&!y;return-1===o.xN.indexOf(t)&&(y=!(null!=a&&a.trim()),v=void 0!==g&&""!==g),{isDefaultTitle:y,isValidTitle:v,title:g,updateTitle:d}}},8152:function(e,t,n){"use strict";var r=n(9307),o=n(849),i=n(5609),a=n(9818),s=n(5736),l=n(5869),u=n(1742),c=n(2779),d=n.n(c),f=n(9196),p=n(7469),m=n(6357),g=n(1342),h=n(4195),y=n(1120);n(3254);const __=s.__;t.Z=({locale:e="en",siteId:t,openCheckout:n,redirectTo:s,getCurrentLaunchFlowUrl:c,isInIframe:v,isLaunchImmediately:_})=>{const{isModalDismissible:b,isModalTitleVisible:E}=(0,a.useSelect)((e=>e(y.sC).getState())),{launchSite:S}=(0,a.useDispatch)(y.j4),{closeFocusedLaunch:A,unsetPlanProductId:w}=(0,a.useDispatch)(y.sC);return f.useEffect((()=>{_&&(w(),S(t))}),[_,w,S,t]),(0,r.createElement)(o.Iw,{localeSlug:e},(0,r.createElement)(i.Modal,{open:!0,className:d()("launch__focused-modal",{"launch__focused-modal--hide-title":!E}),bodyOpenClassName:"has-focused-launch-modal",overlayClassName:d()("launch__focused-modal-overlay",{"launch__focused-modal-overlay--delay-animation-in":_}),onRequestClose:A,title:__("Complete setup","full-site-editing"),icon:(0,r.createElement)(l.Z,{icon:u.Z,size:36}),isDismissible:b,shouldCloseOnEsc:b,shouldCloseOnClickOutside:b},(0,r.createElement)("div",{className:"launch__focused-modal-body"},(0,r.createElement)(m.Z.Provider,{value:{siteId:t,redirectTo:s,openCheckout:n,flow:p.s,getCurrentLaunchFlowUrl:c,isInIframe:v}},_?(0,r.createElement)(h.Z,null):(0,r.createElement)(g.Z,null)))))}},1120:function(e,t,n){"use strict";n.d(t,{j4:function(){return s},Fs:function(){return l},GN:function(){return u},sC:function(){return c}});var r=n(2369),o=n(9734),i=n(8077),a=n(1635);const s=r.z2({client_id:"",client_secret:""}),l=o.register(),u=i.z2(),c=a.z()},6950:function(e,t,n){"use strict";n.d(t,{An:function(){return o},K9:function(){return i},pf:function(){return a},HM:function(){return s}});var r=n(4703);const o=(e,t)=>({product_id:e.productId,product_slug:e.storeSlug,extra:{source:t}}),i=(e,t)=>{if(!e.unavailable&&null!=e&&e.product_id)return{meta:null==e?void 0:e.domain_name,product_id:null==e?void 0:e.product_id,extra:{privacy_available:null==e?void 0:e.supports_privacy,privacy:null==e?void 0:e.supports_privacy,source:t},product_cost_display:e.cost,currency_code:e.currency_code,product_slug:e.product_slug,cost:e.raw_price,currency:e.currency_code}},a=e=>!!e.is_domain_registration,s=e=>r.BV.indexOf(e.product_slug)>-1},3340:function(e,t,n){"use strict";n.d(t,{hg:function(){return s},lZ:function(){return l},_W:function(){return c},Yt:function(){return d}});var r=n(8049);const o=n.n(r)()("lib/load-script/callback-handler"),i=new Map;function a(){return i}function s(e){return a().has(e)}function l(e,t){const n=a();s(e)?(o(`Adding a callback for an existing script from "${e}"`),n.get(e).add(t)):(o(`Adding a callback for a new script from "${e}"`),n.set(e,new Set([t])))}function u(e,t=null){const n=a(),r=n.get(e);if(r){o(`Executing callbacks for "${e}"`+(null===t?" with success":` with error "${t}"`)),r.forEach((e=>{"function"==typeof e&&e(t)})),n.delete(e)}}function c(){const e=this.getAttribute("src");o(`Handling successful request for "${e}"`),u(e),this.onload=null}function d(){const e=this.getAttribute("src");o(`Handling failed request for "${e}"`),u(e,new Error(`Failed to load script "${e}"`)),this.onerror=null}},5606:function(e,t,n){"use strict";n.d(t,{C:function(){return s},k:function(){return l}});var r=n(8049),o=n.n(r),i=n(3340);const a=o()("lib/load-script/dom-operations");function s(e){a(`Creating script element for "${e}"`);const t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=i._W,t.onerror=i.Yt,t}function l(e){a("Attaching element to head"),document.head.appendChild(e)}},4898:function(e,t,n){"use strict";n.d(t,{ve:function(){return s}});var r=n(8049),o=n.n(r),i=n(3340),a=n(5606);o()("package/load-script");function s(e,t){if(!(0,i.hg)(e)&&(0,a.k)((0,a.C)(e)),"function"!=typeof t)return new Promise(((t,n)=>{(0,i.lZ)(e,(e=>{null===e?t():n(e)}))}));(0,i.lZ)(e,t)}},9211:function(e,t,n){"use strict";n.d(t,{xE:function(){return f},aW:function(){return p},b4:function(){return m}});var r=n(7896),o=n(9307),i=n(5609),a=n(5869),s=n(1100),l=n(2481),u=n(6656),c=n(2779),d=n.n(c);n(9196),n(5838);t.ZP=({className:e,children:t,sticky:n=null})=>{let r="";return!0===n&&(r="is-sticky"),!1===n&&(r="no-sticky"),(0,o.createElement)("div",{className:d()("action-buttons",e,r)},t)};const f=({className:e,children:t,...n})=>{const{__:__}=(0,u.useI18n)();return(0,o.createElement)(i.Button,(0,r.Z)({className:d()("action_buttons__button action-buttons__back",e),isLink:!0},n),t||__("Go back","full-site-editing"))},p=({className:e,children:t,...n})=>{const{__:__}=(0,u.useI18n)();return(0,o.createElement)(i.Button,(0,r.Z)({className:d()("action_buttons__button action-buttons__next",e),isPrimary:!0},n),t||__("Continue","full-site-editing"))},m=({className:e,children:t,arrow:n="right",...u})=>(0,o.createElement)(i.Button,(0,r.Z)({className:d()(`action_buttons__button action-buttons__arrow action-buttons__arrow--${n}`,e)},u),"left"===n&&(0,o.createElement)(a.Z,{icon:s.Z}),t,"right"===n&&(0,o.createElement)(a.Z,{icon:l.Z}))},737:function(e,t,n){"use strict";var r=n(9196),o=n(7267);t.Z=({selector:e})=>{const{pathname:t}=(0,o.TH)();return r.useEffect((()=>{var t;e?null===(t=document.querySelector(e))||void 0===t||t.scrollTo(0,0):window.scrollTo(0,0)}),[e,t]),null}},5915:function(e,t,n){"use strict";n.d(t,{b:function(){return a},D:function(){return s}});var r=n(2779),o=n.n(r),i=n(9196);n(6876);const a=({className:e,children:t,tagName:n="h1",...r})=>i.createElement(n,{className:o()("onboarding-title",e),...r},t),s=({className:e,children:t,tagName:n="h2",...r})=>i.createElement(n,{className:o()("onboarding-subtitle",e),...r},t)},1201:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var r=n(9818),o=n(9255);const i=(e,t)=>{const{supportedPlans:n,annualDiscounts:i}=(0,r.useSelect)((n=>{const r=n(o.F).getSupportedPlans(e),i=r.map((e=>n(o.F).getPlanProduct(e.periodAgnosticSlug,t))).map((e=>null==e?void 0:e.annualDiscount)).filter((e=>!!e));return{supportedPlans:r,annualDiscounts:i}}));return{supportedPlans:n,maxAnnualDiscount:i.reduce(((e,t)=>Math.max(e,t)),0)}}},130:function(e,t,n){"use strict";var r=n(9307),o=n(849),i=n(9211),a=n(9818),s=n(5736),l=n(6656),u=n(2779),c=n.n(u),d=(n(9196),n(373)),f=n(9255);n(4893);const p=(0,r.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,r.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}));t.Z=({slug:e,name:t,description:n,features:u,billingPeriod:m,domain:g,badge:h,isFree:y=!1,isOpen:v=!1,isPrimary:_=!1,onSelect:b,onPickDomainClick:E,onToggle:S,disabledLabel:A})=>{const{__:__,hasTranslation:w}=(0,l.useI18n)(),P=(0,o.bU)(),C=(0,a.useSelect)((t=>t(f.F).getPlanProduct(e,m))),x=()=>{!A&&(null==S||S(e,!v))},N=__("billed annually","full-site-editing"),I=__("billed as %s annually","full-site-editing"),O="en"===P||null!=w&&w("billed as %s annually")?(0,s.sprintf)(I,null==C?void 0:C.annualPrice):N,M=__("per month, billed monthly","full-site-editing"),L=__("billed monthly","full-site-editing"),F="en"===P||null!=w&&w("billed monthly")?L:M;return(0,r.createElement)("div",{className:c()("plans-accordion-item",{"is-open":v,"is-primary":_,"has-badge":!!h,"is-disabled":!!A})},h&&(0,r.createElement)("div",{className:"plans-accordion-item__badge"},(0,r.createElement)("span",null,h)),(0,r.createElement)("div",{className:"plans-accordion-item__viewport"},(0,r.createElement)("div",{className:"plans-accordion-item__details"},(0,r.createElement)("div",{tabIndex:0,role:"button",onClick:x,onKeyDown:e=>32===e.keyCode&&x(),className:"plans-accordion-item__header"},(0,r.createElement)("div",{className:"plans-accordion-item__heading"},(0,r.createElement)("div",{className:"plans-accordion-item__name"},t),(0,r.createElement)("div",{className:"plans-accordion-item__description"},n)),(0,r.createElement)("div",{className:"plans-accordion-item__price"},(0,r.createElement)("div",{className:c()("plans-accordion-item__price-amount",{"is-loading":!(null!=C&&C.price)})},(null==C?void 0:C.price)||"  ",(null==C?void 0:C.price)&&(0,r.createElement)("span",null,__("/mo","full-site-editing"))),(0,r.createElement)("div",{className:"plans-accordion-item__price-note"},y&&__("free forever","full-site-editing"),!y&&("ANNUALLY"===m?O:F)),!y&&(0,r.createElement)("div",{className:c()("plans-accordion-item__price-discount",{"plans-accordion-item__price-discount--disabled":"ANNUALLY"!==m})},(0,s.sprintf)(__("Save %(discountRate)s%% by paying annually","full-site-editing"),{discountRate:(null==C?void 0:C.annualDiscount)??0}))),(0,r.createElement)("div",{className:"plans-accordion-item__disabled-label"},A),!v&&(0,r.createElement)("div",{className:"plans-accordion-item__dropdown-chevron"},p)),(0,r.createElement)("div",{className:c()("plans-accordion-item__actions",{"plans-accordion-item__actions--paid-plan-margin":!y}),hidden:!v},(0,r.createElement)(i.aW,{"data-e2e-button":y?"freePlan":"paidPlan",onClick:()=>{b(null==C?void 0:C.productId)}},__("Select","full-site-editing"))),(0,r.createElement)(d.Z,{features:u,billingPeriod:m,domain:g,isFree:y,isOpen:v,onPickDomain:E,multiColumn:!0}))))}},4416:function(e,t,n){"use strict";var r=n(9307),o=n(9211),i=n(2779),a=n.n(i),s=(n(9196),n(7891));n(4893);const l=(0,r.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,r.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}));t.Z=({isOpen:e,isPrimary:t})=>(0,r.createElement)("div",{className:a()("plans-accordion-item",{"is-open":e,"is-primary":t})},(0,r.createElement)("div",{className:"plans-accordion-item__viewport"},(0,r.createElement)("div",{className:"plans-accordion-item__details"},(0,r.createElement)("div",{tabIndex:0,role:"button",className:"plans-accordion-item__header"},(0,r.createElement)("div",{className:"plans-accordion-item__heading"},(0,r.createElement)("div",{className:"plans-accordion-item__name"},(0,r.createElement)("span",{className:"plans-accordion-item__placeholder"},"")),(0,r.createElement)("div",{className:"plans-accordion-item__description"},(0,r.createElement)("span",{className:"plans-accordion-item__placeholder plans-accordion-item__placeholder--wide"},""))),(0,r.createElement)("div",{className:"plans-accordion-item__price"},(0,r.createElement)("div",{className:"plans-accordion-item__price-amount"},(0,r.createElement)("span",{className:"plans-accordion-item__placeholder"},"")),(0,r.createElement)("div",{className:"plans-accordion-item__price-note"},(0,r.createElement)("span",{className:"plans-accordion-item__placeholder plans-accordion-item__placeholder--wide"},""))),(0,r.createElement)("div",{className:"plans-accordion-item__disabled-label"},""),!e&&(0,r.createElement)("div",{className:"plans-accordion-item__dropdown-chevron"},l)),(0,r.createElement)("div",{className:"plans-accordion-item__actions",hidden:!e},(0,r.createElement)(o.aW,{disabled:!0},(0,r.createElement)("span",null,""))),(0,r.createElement)(s.Z,{isOpen:e,multiColumn:!0}))))},222:function(e,t,n){"use strict";var r=n(9307),o=n(5609),i=n(9818),a=n(5869),s=n(6656),l=n(9196),u=n(1201),c=n(130),d=n(4416),f=n(9255);n(3796);const p=(0,r.createElement)(o.SVG,{viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"}));t.Z=({selectedFeatures:e=[],selectedPlanProductId:t,onPlanSelect:n,onPickDomainClick:m,currentDomain:g,disabledPlans:h,locale:y,billingPeriod:v})=>{var _;const{__:__}=(0,s.useI18n)(),{supportedPlans:b}=(0,u.N)(y,v),E=!(null!=b&&b.length),{popularPlan:S,getPlanProduct:A}=(0,i.useSelect)((e=>{const t=e(f.F);return{popularPlan:t.getDefaultPaidPlan(y),getPlanProduct:t.getPlanProduct}})),w=(0,i.useSelect)((t=>t(f.J).getRecommendedPlanSlug(e))),P=(0,i.useSelect)((e=>e(f.F).getPlanByPeriodAgnosticSlug(w,y))),C=P||S,x=__("Recommended for you","full-site-editing"),N=__("Popular","full-site-editing"),I=b.filter((e=>e.periodAgnosticSlug!==(null==C?void 0:C.periodAgnosticSlug))),O=[null==C?void 0:C.periodAgnosticSlug],[M,L]=(0,l.useState)(O),F=!E&&M.length>=b.length,T=(e,t)=>{L(t?[...M,e]:M.filter((t=>t!==e)))},$=__("Collapse all plans","full-site-editing"),D=__("Show all plans","full-site-editing");return(0,r.createElement)("div",{className:"plans-accordion"},(0,r.createElement)("div",{className:"plans-accordion__plan-item-group"},E?(0,r.createElement)(d.Z,{isOpen:!0,isPrimary:!0}):C&&(0,r.createElement)(r.Fragment,null,P&&(0,r.createElement)("div",{className:"plans-accordion__recommend-hint"},(0,r.createElement)(a.Z,{icon:p,size:16}),(0,r.createElement)("span",null,__("Based on the features you selected.","full-site-editing"))),(0,r.createElement)(c.Z,{key:C.periodAgnosticSlug,slug:C.periodAgnosticSlug,name:null==C?void 0:C.title.toString(),description:null==C?void 0:C.description.toString(),features:C.features??[],billingPeriod:v,domain:g,badge:P?x:N,isFree:C.isFree,isOpen:!0,isPrimary:!0,isSelected:!!t&&t===(null===(_=A(C.periodAgnosticSlug,v))||void 0===_?void 0:_.productId),onSelect:n,onPickDomainClick:m}))),(0,r.createElement)("div",{className:"plans-accordion__actions"},(0,r.createElement)(o.Button,{className:"plans-accordion__toggle-all-button",onClick:()=>{L(F?O:b.map((e=>e.periodAgnosticSlug)))},isLink:!0},F?$:D)),(0,r.createElement)("div",{className:"plans-accordion__plan-item-group"},E?[1,2,3,4].map((e=>(0,r.createElement)(d.Z,{key:e}))):I.map((e=>{var o;return(0,r.createElement)(c.Z,{key:e.periodAgnosticSlug,slug:e.periodAgnosticSlug,name:null==e?void 0:e.title.toString(),description:null==e?void 0:e.description.toString(),features:e.features??[],billingPeriod:v,domain:g,isFree:e.isFree,isOpen:M.indexOf(e.periodAgnosticSlug)>-1&&!(null!=h&&h[e.periodAgnosticSlug]),isSelected:!!t&&t===(null===(o=A(e.periodAgnosticSlug,v))||void 0===o?void 0:o.productId),onSelect:n,onPickDomainClick:m,onToggle:T,disabledLabel:null==h?void 0:h[e.periodAgnosticSlug]})}))))}},4564:function(e,t,n){"use strict";var r=n(9307),o=n(5609),i=n(9818),a=n(5869),s=n(9806),l=n(8565),u=n(6656),c=n(2779),d=n.n(c),f=(n(9196),n(9255));n(4531);const p=(0,r.createElement)(a.Z,{icon:s.Z,size:25}),m=(0,r.createElement)(a.Z,{icon:l.Z,size:25});t.Z=({onSelect:e,locale:t,billingPeriod:n})=>{const{__:__,hasTranslation:a}=(0,u.useI18n)(),{supportedPlans:s,planProducts:l,features:c,featuresByType:g}=(0,i.useSelect)((e=>{const{getPlanProduct:r,getFeatures:o,getFeaturesByType:i,getSupportedPlans:a}=e(f.F),s=a(t),l=s.map((e=>r(e.periodAgnosticSlug,n)));return{supportedPlans:s,planProducts:l,features:o(t),featuresByType:i(t)}})),h=!(null!=s&&s.length),y=[1,2,3,4,5],v=__("Monthly price (billed yearly)","full-site-editing"),_=__("Monthly subscription (billed yearly)","full-site-editing"),b="en"===t||null!=a&&a("Monthly price (billed yearly)")?v:_,E=__("Monthly subscription","full-site-editing"),S=__("Included with annual plans","full-site-editing"),A=__("Only included with annual plans","full-site-editing");return(0,r.createElement)("div",{className:"plans-details"},(0,r.createElement)("table",{className:"plans-details__table"},(0,r.createElement)("thead",null,(0,r.createElement)("tr",{className:"plans-details__header-row"},(0,r.createElement)("th",null,__("Feature","full-site-editing")),h?y.map((e=>(0,r.createElement)("th",{key:e},(0,r.createElement)("span",{className:"plans-details__placeholder"},"")))):s.map((e=>(0,r.createElement)("th",{key:e.periodAgnosticSlug},e.title))))),h?(0,r.createElement)("tbody",null,y.map(((e,t)=>(0,r.createElement)("tr",{className:"plans-details__feature-row",key:t},(0,r.createElement)("th",{key:e},(0,r.createElement)("span",{className:"plans-details__placeholder plans-details__placeholder--wide"},"")),y.map((e=>(0,r.createElement)("td",{key:e}))))))):g.map((e=>{var t;return(0,r.createElement)("tbody",{key:e.id},e.name&&(0,r.createElement)("tr",{className:"plans-details__header-row"},(0,r.createElement)("th",{colSpan:6},e.name)),null===(t=e.features)||void 0===t?void 0:t.map(((e,t)=>(0,r.createElement)("tr",{className:d()("plans-details__feature-row",{"plans-details__feature-row--enabled":c[e].requiresAnnuallyBilledPlan&&"ANNUALLY"===n,"plans-details__feature-row--disabled":c[e].requiresAnnuallyBilledPlan&&"ANNUALLY"!==n}),key:t},(0,r.createElement)("th",null,c[e].requiresAnnuallyBilledPlan&&(0,r.createElement)("span",{className:"plans-details__feature-annual-nudge","aria-label":"ANNUALLY"===n?S:A},__("Included with annual plans","full-site-editing")),(0,r.createElement)("span",null,c[e].name)),s.map(((t,o)=>{var i;return"storage"===e?(0,r.createElement)("td",{key:o},t.storage):(0,r.createElement)("td",{key:o},null!==(i=t.featuresSlugs)&&void 0!==i&&i[e]?(0,r.createElement)(r.Fragment,null,c[e].requiresAnnuallyBilledPlan&&"ANNUALLY"!==n?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"hidden"},__("Unavailable","full-site-editing")),m):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"hidden"},__("Available","full-site-editing")),p)):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"hidden"},__("Unavailable","full-site-editing"))))}))))))})),(0,r.createElement)("tbody",null,(0,r.createElement)("tr",{className:"plans-details__header-row"},(0,r.createElement)("th",{colSpan:6},__("Sign up","full-site-editing"))),(0,r.createElement)("tr",{className:"plans-details__feature-row",key:"price"},(0,r.createElement)("th",null,"ANNUALLY"===n?b:E),h?y.map((e=>(0,r.createElement)("td",{key:e},(0,r.createElement)("span",{className:"plans-details__placeholder"},"")))):s.map(((e,t)=>{var n;return(0,r.createElement)("td",{key:e.periodAgnosticSlug},null===(n=l[t])||void 0===n?void 0:n.price)}))),(0,r.createElement)("tr",{className:"plans-details__feature-row",key:"cta"},(0,r.createElement)("th",null),h?y.map((e=>(0,r.createElement)("td",{key:e},(0,r.createElement)(o.Button,{className:"plans-details__select-button",isPrimary:!0,disabled:!0},(0,r.createElement)("span",{className:"plans-details__placeholder plans-details__placeholder--narrow"},""))," "))):s.map(((t,n)=>(0,r.createElement)("td",{key:t.periodAgnosticSlug},(0,r.createElement)(o.Button,{className:"plans-details__select-button",onClick:()=>{var t;e(null===(t=l[n])||void 0===t?void 0:t.productId)},isPrimary:!0},(0,r.createElement)("span",null,__("Select","full-site-editing"))))))))))}},373:function(e,t,n){"use strict";var r=n(7896),o=n(9307),i=n(5609),a=n(5869),s=n(9806),l=n(8565),u=n(6656),c=n(2779),d=n.n(c);n(9196),n(4571);const f=({className:e})=>(0,o.createElement)(a.Z,{className:e,icon:s.Z,size:18}),p=({className:e})=>(0,o.createElement)(a.Z,{className:e,icon:l.Z,size:18}),m=({children:e,className:t})=>(0,o.createElement)("span",{className:t},e),g=({billingPeriod:e,__:__})=>{const t=__("Included with annual plans","full-site-editing"),n=__("Only included with annual plans","full-site-editing");return(0,o.createElement)("span",{className:"plans-feature-list__item-annual-nudge","aria-label":"ANNUALLY"===e?t:n},t)};const h=({bulletIcon:e,textNode:t,requiresAnnuallyBilledPlan:n,contentWrapperNode:r=m,listItemExtraClassName:i,billingPeriod:a},s)=>{const{__:__}=(0,u.useI18n)();return(0,o.createElement)("li",{key:s,className:d()("plans-feature-list__item",{"plans-feature-list__item--requires-annual-enabled":n&&"ANNUALLY"===a,"plans-feature-list__item--requires-annual-disabled":n&&"ANNUALLY"!==a},i)},(0,o.createElement)(r,{className:"plans-feature-list__item-content-wrapper"},(0,o.createElement)(e,{className:"plans-feature-list__item-bullet-icon"}),(0,o.createElement)("span",{className:"plans-feature-list__item-text"},n&&(0,o.createElement)(g,{billingPeriod:a,__:__}),(0,o.createElement)("span",{className:"plans-feature-list__item-description"},t))))};t.Z=({features:e,domain:t,billingPeriod:n,isFree:a=!1,isOpen:s=!1,onPickDomain:l,disabledLabel:c,multiColumn:m=!1})=>{const{__:__}=(0,u.useI18n)(),g=function(e,t,n,__){const r="plans-feature-list__item-content-wrapper--domain-button";return{NO_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{wrapperClassName:d()(r,"is-cta"),bulletIcon:"ANNUALLY"===n?f:p,requiresAnnuallyBilledPlan:!0,domainMessage:(0,o.createElement)(o.Fragment,null,__("Pick a free domain (1 year)","full-site-editing"))}},FREE_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{wrapperClassName:d()(r,"is-cta"),bulletIcon:"ANNUALLY"===n?f:p,requiresAnnuallyBilledPlan:!0,domainMessage:(0,o.createElement)(o.Fragment,null,__("Pick a free domain (1 year)","full-site-editing"))}},PAID_DOMAIN:{FREE_PLAN:{wrapperClassName:d()(r,"is-unavailable"),bulletIcon:p,requiresAnnuallyBilledPlan:!1,domainMessage:(0,o.createElement)(o.Fragment,null,(0,o.createInterpolateElement)(__("<url /> is not included","full-site-editing"),{url:(0,o.createElement)("span",{className:"plans-feature-list__item-url"},null==t?void 0:t.domain_name)}))},PAID_PLAN:{wrapperClassName:r,bulletIcon:"ANNUALLY"===n?f:p,requiresAnnuallyBilledPlan:!0,domainMessage:(0,o.createElement)(o.Fragment,null,(0,o.createInterpolateElement)(__("<url /> is included","full-site-editing"),{url:(0,o.createElement)("span",{className:"plans-feature-list__item-url"},null==t?void 0:t.domain_name)}))}}}[t&&(t.is_free?"FREE_DOMAIN":"PAID_DOMAIN")||"NO_DOMAIN"][e?"FREE_PLAN":"PAID_PLAN"]}(a,t,n,__),y=[];return c?y.push({bulletIcon:p,textNode:c,requiresAnnuallyBilledPlan:!1,listItemExtraClassName:"plans-feature-list__item--disabled-message"}):g&&y.push({bulletIcon:g.bulletIcon,textNode:g.domainMessage,requiresAnnuallyBilledPlan:g.requiresAnnuallyBilledPlan,contentWrapperNode:({children:e,className:t})=>(0,o.createElement)(i.Button,{className:d()(g.wrapperClassName,t),onClick:l,isLink:!0},e)}),e.forEach((({name:e,requiresAnnuallyBilledPlan:t})=>y.push({bulletIcon:t&&"MONTHLY"===n?p:f,textNode:e,requiresAnnuallyBilledPlan:t}))),(0,o.createElement)("div",{className:"plans-feature-list",hidden:!s},(0,o.createElement)("ul",{className:d()("plans-feature-list__item-group",{"plans-feature-list__item-group--columns":m})},y.map(((e,t)=>(0,o.createElement)(h,(0,r.Z)({},e,{billingPeriod:n,key:t}))))))}},7891:function(e,t,n){"use strict";var r=n(9307),o=n(2779),i=n.n(o);n(9196),n(4571);t.Z=({isOpen:e=!1,multiColumn:t=!1})=>{const n=Array.from(Array(10).keys());return(0,r.createElement)("div",{className:"plans-feature-list",hidden:!e},(0,r.createElement)("ul",{className:i()("plans-feature-list__item-group",{"plans-feature-list__item-group--columns":t})},n.map((e=>(0,r.createElement)("li",{key:e,className:"plans-feature-list__item"},(0,r.createElement)("span",{className:"plans-feature-list__placeholder"},""))))))}},5315:function(e,t,n){"use strict";var r=n(9307),o=n(5915),i=n(9818),a=n(6656),s=n(8049),l=n.n(s),u=n(9196),c=n(1201),d=n(222),f=n(4564),p=n(1954),m=n(6795),g=n(9255);n(4290);const h=l()("plans-grid");t.Z=({header:e,selectedFeatures:t,currentPlanProductId:n,currentDomain:s,onPlanSelect:l,onPickDomainClick:y,disabledPlans:v,isAccordion:_,locale:b,showPlanTaglines:E=!1,CTAVariation:S="NORMAL",popularBadgeVariation:A="ON_TOP",customTagLines:w,hidePlansComparison:P=!1,defaultAllPlansExpanded:C=!1,onBillingPeriodChange:x})=>{const{__:__}=(0,a.useI18n)(),N=(0,i.useSelect)((e=>{var t;return null===(t=e(g.F).getPlanProductById(n))||void 0===t?void 0:t.billingPeriod})),[I,O]=u.useState(N||"ANNUALLY");u.useEffect((()=>{x&&x(I)}),[I,x]);const{maxAnnualDiscount:M}=(0,c.N)(b,I);return _&&h("PlansGrid accordion version is active"),(0,r.createElement)("div",{className:"plans-grid"},e&&(0,r.createElement)("div",{className:"plans-grid__header"},e),(0,r.createElement)(p.Z,{intervalType:I,onChange:O,maxMonthlyDiscountPercentage:M,className:"plans-grid__toggle"}),(0,r.createElement)("div",{className:"plans-grid__table"},(0,r.createElement)("div",{className:"plans-grid__table-container"},_?(0,r.createElement)(d.Z,{selectedFeatures:t,selectedPlanProductId:n,onPlanSelect:l,currentDomain:s,onPickDomainClick:y,disabledPlans:v,locale:b,billingPeriod:I}):(0,r.createElement)(m.Z,{popularBadgeVariation:A,CTAVariation:S,selectedPlanProductId:n,onPlanSelect:l,customTagLines:w,currentDomain:s,onPickDomainClick:y,disabledPlans:v,locale:b,showTaglines:E,defaultAllPlansExpanded:C,billingPeriod:I}))),!P&&(0,r.createElement)("div",{className:"plans-grid__details"},(0,r.createElement)("div",{className:"plans-grid__details-heading"},(0,r.createElement)(o.b,{tagName:"h2"},__("Detailed comparison","full-site-editing"))),(0,r.createElement)("div",{className:"plans-grid__details-container"},(0,r.createElement)(f.Z,{onSelect:l,locale:b,billingPeriod:I}))))}},1954:function(e,t,n){"use strict";var r=n(9307),o=n(849),i=n(5609),a=n(5736),s=n(6656),l=n(2779),u=n.n(l),c=(n(9196),n(5532));n(8674);const d=({children:e})=>{const t={desktop:"middle right",mobile:"bottom center"};return(0,r.createElement)(r.Fragment,null,Object.keys(t).map((n=>(0,r.createElement)(i.Popover,{key:n,className:u()("plans-interval-toggle__popover",`plans-interval-toggle__popover--${n}`),position:t[n],noArrow:!1},e))))};t.Z=({onChange:e,intervalType:t,maxMonthlyDiscountPercentage:n,className:i=""})=>{const{__:__,_x:_x,hasTranslation:l}=(0,s.useI18n)(),f=(0,o.bU)(),p=__("Pay monthly","full-site-editing"),m=_x("Monthly",'Adverb (as in "Pay monthly")',"full-site-editing"),g="en"===f||l("Monthly",'Adverb (as in "Pay monthly")',"full-site-editing")?m:p,h=__("Pay annually","full-site-editing"),y=_x("Annually",'Adverb (as in "Pay annually")',"full-site-editing"),v="en"===f||l("Annually",'Adverb (as in "Pay annually")',"full-site-editing")?y:h;return(0,r.createElement)("div",{className:u()("plans-interval-toggle",{"plans-interval-toggle--monthly":"MONTHLY"===t},i)},(0,r.createElement)(c.Z,null,(0,r.createElement)(c.Z.Item,{selected:"MONTHLY"===t,onClick:()=>e("MONTHLY")},(0,r.createElement)("span",{className:"plans-interval-toggle__label"},g)),(0,r.createElement)(c.Z.Item,{selected:"ANNUALLY"===t,onClick:()=>e("ANNUALLY")},(0,r.createElement)("span",{className:"plans-interval-toggle__label"},v),"MONTHLY"===t&&n&&(0,r.createElement)(d,null,(0,a.sprintf)(__("Save up to %(maxDiscount)d%% by paying annually and get a free domain for one year","full-site-editing"),{maxDiscount:n})))))}},6795:function(e,t,n){"use strict";var r=n(9307),o=n(9818),i=n(9196),a=n(1201),s=n(9255),l=n(2893);n(1233);t.Z=({selectedPlanProductId:e,onPlanSelect:t,onPickDomainClick:n,currentDomain:u,disabledPlans:c,locale:d,billingPeriod:f,showTaglines:p=!1,CTAVariation:m="NORMAL",popularBadgeVariation:g="ON_TOP",customTagLines:h,defaultAllPlansExpanded:y=!1})=>{const{supportedPlans:v}=(0,a.N)(d,f),[_,b]=(0,i.useState)(y),E=(0,o.useSelect)((e=>e(s.F).getPlanProduct));return(0,r.createElement)("div",{className:"plans-table"},v.filter((e=>!!e)).map((o=>{var i;return(0,r.createElement)(l.Z,{popularBadgeVariation:g,allPlansExpanded:_,key:o.periodAgnosticSlug,slug:o.periodAgnosticSlug,domain:u,tagline:(p&&(null==h?void 0:h[o.periodAgnosticSlug]))??o.description,CTAVariation:m,features:o.features??[],billingPeriod:f,isPopular:o.isPopular,isFree:o.isFree,name:null==o?void 0:o.title.toString(),isSelected:!!e&&e===(null===(i=E(o.periodAgnosticSlug,f))||void 0===i?void 0:i.productId),onSelect:t,onPickDomainClick:n,onToggleExpandAll:()=>b((e=>!e)),disabledLabel:null==c?void 0:c[o.periodAgnosticSlug]})})))}},2893:function(e,t,n){"use strict";var r=n(9307),o=n(849),i=n(5609),a=n(4333),s=n(9818),l=n(5736),u=n(5869),c=n(9806),d=n(6656),f=n(2779),p=n.n(f),m=n(9196),g=n(373),h=n(9255);const y=(0,r.createElement)(u.Z,{icon:c.Z,size:17}),v=(0,r.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,r.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}));t.Z=({slug:e,name:t,tagline:n,isPopular:u=!1,isFree:c=!1,domain:f,features:_,billingPeriod:b,onSelect:E,onPickDomainClick:S,onToggleExpandAll:A,allPlansExpanded:w,disabledLabel:P,CTAVariation:C="NORMAL",popularBadgeVariation:x="ON_TOP",isSelected:N})=>{const{__:__,hasTranslation:I}=(0,d.useI18n)(),O=(0,o.bU)(),M=(0,s.useSelect)((t=>t(h.F).getPlanProduct(e,b))),[L,F]=m.useState(!1),T=(0,a.useViewportMatch)("mobile",">=");m.useEffect((()=>{F(w)}),[w]);const $=w||T||u||L,D=__("Choose","full-site-editing"),R=__("Current Selection","full-site-editing"),k=__("Select %s","full-site-editing"),Z=__("billed annually","full-site-editing"),j=__("per month, billed as %s annually","full-site-editing"),U="en"===O||null!=I&&I("per month, billed as %s annually")?(0,l.sprintf)(j,null==M?void 0:M.annualPrice):Z,B=__("per month, billed monthly","full-site-editing"),G=__("Collapse all plans","full-site-editing"),V=__("Expand all plans","full-site-editing");return(0,r.createElement)("div",{className:p()("plan-item",{"is-popular":u,"is-open":$,"badge-next-to-name":"NEXT_TO_NAME"===x})},u&&"ON_TOP"===x&&(0,r.createElement)("span",{className:"plan-item__badge"},__("Popular","full-site-editing")),(0,r.createElement)("div",{className:p()("plan-item__viewport",{"is-popular":u})},(0,r.createElement)("div",{className:"plan-item__details"},(0,r.createElement)("div",{tabIndex:0,role:"button",onClick:()=>F((e=>!e)),onKeyDown:e=>32===e.keyCode&&F((e=>!e)),className:"plan-item__summary"},(0,r.createElement)("div",{className:p()("plan-item__heading",{"badge-next-to-name":"NEXT_TO_NAME"===x})},(0,r.createElement)("div",{className:"plan-item__name"},t),u&&"NEXT_TO_NAME"===x&&(0,r.createElement)("span",{className:"plan-item__badge-next-to-name"},__("Popular","full-site-editing"))),n&&(0,r.createElement)("p",{className:"plan-item__tagline"},n),(0,r.createElement)("div",{className:"plan-item__price"},(0,r.createElement)("div",{className:p()("plan-item__price-amount",{"is-loading":!(null!=M&&M.price)})},(null==M?void 0:M.price)||" ")),!$&&(0,r.createElement)("div",{className:"plan-item__dropdown-chevron"},v)),(0,r.createElement)("div",{hidden:!$},(0,r.createElement)("div",{className:"plan-item__price-note"},c&&__("free forever","full-site-editing"),!c&&("ANNUALLY"===b?U:B)),(0,r.createElement)("div",{className:p()("plan-item__price-discount",{"plan-item__price-discount--disabled":"ANNUALLY"!==b,"plan-item__price-discount--hidden":c}),"aria-hidden":c?"true":"false"},(0,l.sprintf)(__("Save %(discountRate)s%% by paying annually","full-site-editing"),{discountRate:(null==M?void 0:M.annualDiscount)??0})),(0,r.createElement)("div",{className:"plan-item__actions"},"NORMAL"===C?(0,r.createElement)(i.Button,{className:"plan-item__select-button",onClick:()=>{E(null==M?void 0:M.productId)},isPrimary:!0,disabled:!!P},(0,r.createElement)("span",null,P??D)):(0,r.createElement)(i.Button,{className:p()("plan-item__select-button full-width",{"is-selected":N,"is-popular":u}),onClick:()=>{E(null==M?void 0:M.productId)},isPrimary:u,disabled:!!P},(0,r.createElement)("span",null,P??(0,r.createElement)(r.Fragment,null,N?y:"",N?R:(0,l.sprintf)(k,t))))),(0,r.createElement)(g.Z,{features:_,domain:f,isFree:c,isOpen:$,onPickDomain:S,disabledLabel:P&&(0,l.sprintf)(__("%s is not included","full-site-editing"),null==f?void 0:f.domain_name),billingPeriod:b})))),u&&!T&&(0,r.createElement)(i.Button,{onClick:A,className:"plan-item__mobile-expand-all-plans",isLink:!0},w?G:V))}},5532:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(6666),o=n(9307),i=n(2779),a=n.n(i),s=n(3980),l=n.n(s),u=n(9196),c=n.n(u),d=n(8268);n(6011);class f extends c().Component{render(){const e={"is-compact":this.props.compact,"is-primary":this.props.primary};return(0,o.createElement)("ul",{className:a()("segmented-control",e,this.props.className),style:this.props.style,role:"radiogroup"},this.props.children)}}(0,r.Z)(f,"Item",d.Z),(0,r.Z)(f,"propTypes",{className:l().string,compact:l().bool,primary:l().bool,style:l().object,children:l().node.isRequired})},8268:function(e,t,n){"use strict";var r=n(6666),o=n(9307),i=n(2779),a=n.n(i),s=n(3980),l=n.n(s),u=n(9196),c=n.n(u);class d extends c().Component{constructor(...e){super(...e),(0,r.Z)(this,"handleKeyEvent",(e=>{switch(e.keyCode){case 13:case 32:e.preventDefault(),document.activeElement.click()}}))}render(){const e=a()({"segmented-control__item":!0,"is-selected":this.props.selected}),t=a()("segmented-control__link",{[`item-index-${this.props.index}`]:null!=this.props.index});return(0,o.createElement)("li",{className:e},(0,o.createElement)("a",{href:this.props.path,className:t,onClick:this.props.onClick,title:this.props.title,"data-e2e-value":this.props.value,role:"radio",tabIndex:0,"aria-checked":this.props.selected,onKeyDown:this.handleKeyEvent},(0,o.createElement)("span",{className:"segmented-control__text"},this.props.children)))}}(0,r.Z)(d,"propTypes",{children:l().node.isRequired,path:l().string,selected:l().bool,title:l().string,value:l().string,onClick:l().func,index:l().number}),(0,r.Z)(d,"defaultProps",{selected:!1}),t.Z=d},9255:function(e,t,n){"use strict";n.d(t,{F:function(){return i},J:function(){return a}});var r=n(9734),o=n(182);const i=r.register(),a=o.z()},8552:function(e,t,n){"use strict";n.d(t,{Vw:function(){return S},sS:function(){return x}});var r=n(8049),o=n.n(r),i=n(8650),a=n.n(i),s=n(8767),l=n(2884),u=n.n(l);const c=o()("wpcom-proxy-request"),d="https://public-api.wordpress.com",f=window.location.protocol+"//"+window.location.host,p=(()=>{let e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e})(),m=(()=>{try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}})();let g,h=null,y=!1;const v={},_=!!window.ProgressEvent&&!!window.FormData;c('using "origin": %o',f);const b=(e,t)=>{const n=Object.assign({},e);c("request(%o)",n),h||C();const r=(0,s.Z)();n.callback=r,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=_,n.method=String(n.method||"GET").toUpperCase(),c("params object: %o",n);const o=new window.XMLHttpRequest;if(o.params=n,v[r]=o,"function"==typeof t){let e=!1;const n=n=>{if(e)return;e=!0;const r=n.response||o.response;c("body: ",r),c("headers: ",n.headers),t(null,r,n.headers)},r=n=>{if(e)return;e=!0;const r=n.error||n.err||n;c("error: ",r),c("headers: ",n.headers),t(r,null,n.headers)};o.addEventListener("load",n),o.addEventListener("abort",r),o.addEventListener("error",r)}return"function"==typeof n.onStreamRecord&&delete n.onStreamRecord,y?A(n):(c("buffering API request since proxying <iframe> is not yet loaded"),g.push(n)),o},E=(e,t)=>"function"==typeof t?b(e,t):new Promise(((t,n)=>{b(e,((e,r)=>{e?n(e):t(r)}))}));function S(){return E({metaAPI:{accessAllUsersBlogs:!0}})}function A(e){c("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!m)return;for(let t=0;t<e.length;t++){const n=P(e[t][1]);n&&(e[t][1]=new window.File([n],n.name,{type:n.type}))}}(e.formData),h.contentWindow.postMessage(p?JSON.stringify(e):e,d)}function w(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function P(e){return w(e)?e:"object"==typeof e&&w(e.fileContents)?e.fileContents:null}function C(){c("install()"),h&&(c("uninstall()"),window.removeEventListener("message",N),document.body.removeChild(h),y=!1,h=null),g=[],window.addEventListener("message",N),h=document.createElement("iframe"),h.src=d+"/wp-admin/rest-proxy/?v=2.0#"+f,h.style.display="none",document.body.appendChild(h)}const x=()=>{C()};function N(e){if(c("onmessage"),e.origin!==d)return void c("ignoring message... %o !== %o",e.origin,d);if(e.source!==h.contentWindow)return void c("ignoring message... iframe elements do not match");let{data:t}=e;if(!t)return c("no `data`, bailing");if("ready"===t)return void function(){if(c('proxy <iframe> "load" event'),y=!0,g){for(let e=0;e<g.length;e++)A(g[e]);g=null}}();if(p&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){c('got "progress" event: %o',e);const t=v[e.callbackId];if(t){const n=new(a())("progress",e);(e.upload?t.upload:t).dispatchEvent(n)}}(t);if(!t.length)return c("`e.data` doesn't appear to be an Array, bailing...");const n=t[t.length-1];if(!(n in v))return c("bailing, no matching request with callback: %o",n);const r=v[n],{params:o}=r,i=t[0];let s=t[1];const l=t[2];if(207===s||delete v[n],o.metaAPI?s="metaAPIupdated"===i?200:500:c("got %o status code for URL: %o",s,o.path),"object"==typeof l&&(l.status=s,f=l["Content-Type"],/^application[/]x-ndjson($|;)/.test(f))){I(r,new Error("stream mode processing is not yet implemented for wpcom-proxy-request"),l)}else{var f;if(s&&2===Math.floor(s/100))!function(e,t,n){const r=new(a())("load");r.data=r.body=r.response=t,r.headers=n,e.dispatchEvent(r)}(r,i,l);else{I(r,u()(o,s,i),l)}}}function I(e,t,n){const r=new(a())("error");r.error=r.err=t,r.headers=n,e.dispatchEvent(r)}t.ZP=E},8049:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(2632)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,n){e.exports=function(e){function t(e){let n,o,i,a=null;function s(...e){if(!s.enabled)return;const r=s,o=Number(new Date),i=o-(n||o);r.diff=i,r.prev=n,r.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,o)=>{if("%%"===n)return"%";a++;const i=t.formatters[o];if("function"==typeof i){const t=e[a];n=i.call(r,t),e.splice(a,1),a--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1378),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},1898:function(e,t){"use strict";var n="Invariant failed";t.Z=function(e,t){if(!e)throw new Error(n)}},3830:function(e,t,n){"use strict";var r=n(956);e.exports=function(){var e=r.apply(r,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},956:function(e){"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},7127:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(9196),o=n(669);function i(e,t){return e===t}function a(e,t,n){var a=n&&n.equalityFn?n.equalityFn:i,s=(0,r.useState)(e),l=s[0],u=s[1],c=(0,o.Z)((0,r.useCallback)((function(e){return u(e)}),[]),t,n),d=c[0],f=c[1],p=(0,r.useRef)(e);return(0,r.useEffect)((function(){a(p.current,e)||(d(e),p.current=e)}),[e,d,a]),[l,f]}},669:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9196);function o(e,t,n){void 0===n&&(n={});var o=n.maxWait,i=(0,r.useRef)(null),a=(0,r.useRef)([]),s=n.leading,l=(0,r.useRef)(!1),u=(0,r.useRef)(null),c=(0,r.useRef)(!1),d=(0,r.useRef)(e);d.current=e;var f=(0,r.useCallback)((function(){clearTimeout(u.current),clearTimeout(i.current),i.current=null,a.current=[],u.current=null,l.current=!1}),[]);(0,r.useEffect)((function(){return function(){c.current=!0}}),[]);var p=(0,r.useCallback)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(a.current=e,clearTimeout(u.current),!u.current&&s&&!l.current)return d.current.apply(d,e),void(l.current=!0);u.current=setTimeout((function(){f(),c.current||d.current.apply(d,e)}),t),o&&!i.current&&(i.current=setTimeout((function(){var e=a.current;f(),c.current||d.current.apply(null,e)}),o))}),[o,t,f,s]);return[p,f,function(){u.current&&(d.current.apply(null,a.current),f())}]}},8186:function(e,t,n){"use strict";
28
  /** @license React vundefined
29
  * use-subscription.production.min.js
30
  *
8
  object-assign
9
  (c) Sindre Sorhus
10
  @license MIT
11
+ */var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,i){for(var a,s,l=o(e),u=1;u<arguments.length;u++){for(var c in a=Object(arguments[u]))n.call(a,c)&&(l[c]=a[c]);if(t){s=t(a);for(var d=0;d<s.length;d++)r.call(a,s[d])&&(l[s[d]]=a[s[d]])}}return l}},9500:function(e,t,n){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&l&&"function"==typeof l.get?l.get:null,c=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,g=Object.prototype.toString,h=Function.prototype.toString,y=String.prototype.match,v="function"==typeof BigInt?BigInt.prototype.valueOf:null,_=Object.getOwnPropertySymbols,b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,E="function"==typeof Symbol&&"object"==typeof Symbol.iterator,S=Object.prototype.propertyIsEnumerable,A=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null),w=n(3260).custom,P=w&&O(w)?w:null,C="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function x(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function N(e){return String(e).replace(/"/g,"&quot;")}function I(e){return!("[object Array]"!==F(e)||C&&"object"==typeof e&&C in e)}function O(e){if(E)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!b)return!1;try{return b.call(e),!0}catch(t){}return!1}e.exports=function e(t,n,r,o){var s=n||{};if(L(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(L(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!L(s,"customInspect")||s.customInspect;if("boolean"!=typeof l&&"symbol"!==l)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(L(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return $(t,s);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var g=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=g&&g>0&&"object"==typeof t)return I(t)?"[Array]":"[Object]";var _=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Array(e.indent+1).join(" ")}return{base:n,prev:Array(t+1).join(n)}}(s,r);if(void 0===o)o=[];else if(T(o,t)>=0)return"[Circular]";function S(t,n,i){if(n&&(o=o.slice()).push(n),i){var a={depth:s.depth};return L(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if("function"==typeof t){var w=function(e){if(e.name)return e.name;var t=y.call(h.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),M=U(t,S);return"[Function"+(w?": "+w:" (anonymous)")+"]"+(M.length>0?" { "+M.join(", ")+" }":"")}if(O(t)){var D=E?String(t).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):b.call(t);return"object"!=typeof t||E?D:R(D)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var B="<"+String(t.nodeName).toLowerCase(),G=t.attributes||[],V=0;V<G.length;V++)B+=" "+G[V].name+"="+x(N(G[V].value),"double",s);return B+=">",t.childNodes&&t.childNodes.length&&(B+="..."),B+="</"+String(t.nodeName).toLowerCase()+">"}if(I(t)){if(0===t.length)return"[]";var H=U(t,S);return _&&!function(e){for(var t=0;t<e.length;t++)if(T(e[t],"\n")>=0)return!1;return!0}(H)?"["+j(H,_)+"]":"[ "+H.join(", ")+" ]"}if(function(e){return!("[object Error]"!==F(e)||C&&"object"==typeof e&&C in e)}(t)){var W=U(t,S);return 0===W.length?"["+String(t)+"]":"{ ["+String(t)+"] "+W.join(", ")+" }"}if("object"==typeof t&&l){if(P&&"function"==typeof t[P])return t[P]();if("symbol"!==l&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(B){return!0}return e instanceof Map}catch(t){}return!1}(t)){var z=[];return a.call(t,(function(e,n){z.push(S(n,t,!0)+" => "+S(e,t))})),Z("Map",i.call(t),z,_)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var Y=[];return c.call(t,(function(e){Y.push(S(e,t))})),Z("Set",u.call(t),Y,_)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(B){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return k("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(B){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return k("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(t){}return!1}(t))return k("WeakRef");if(function(e){return!("[object Number]"!==F(e)||C&&"object"==typeof e&&C in e)}(t))return R(S(Number(t)));if(function(e){if(!e||"object"!=typeof e||!v)return!1;try{return v.call(e),!0}catch(t){}return!1}(t))return R(S(v.call(t)));if(function(e){return!("[object Boolean]"!==F(e)||C&&"object"==typeof e&&C in e)}(t))return R(m.call(t));if(function(e){return!("[object String]"!==F(e)||C&&"object"==typeof e&&C in e)}(t))return R(S(String(t)));if(!function(e){return!("[object Date]"!==F(e)||C&&"object"==typeof e&&C in e)}(t)&&!function(e){return!("[object RegExp]"!==F(e)||C&&"object"==typeof e&&C in e)}(t)){var K=U(t,S),q=A?A(t)===Object.prototype:t instanceof Object||t.constructor===Object,J=t instanceof Object?"":"null prototype",X=!q&&C&&Object(t)===t&&C in t?F(t).slice(8,-1):J?"Object":"",Q=(q||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(X||J?"["+[].concat(X||[],J||[]).join(": ")+"] ":"");return 0===K.length?Q+"{}":_?Q+"{"+j(K,_)+"}":Q+"{ "+K.join(", ")+" }"}return String(t)};var M=Object.prototype.hasOwnProperty||function(e){return e in this};function L(e,t){return M.call(e,t)}function F(e){return g.call(e)}function T(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function $(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return $(e.slice(0,t.maxStringLength),t)+r}return x(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,D),"single",t)}function D(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function R(e){return"Object("+e+")"}function k(e){return e+" { ? }"}function Z(e,t,n,r){return e+" ("+t+") {"+(r?j(n,r):n.join(", "))+"}"}function j(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+e.join(","+n)+"\n"+t.prev}function U(e,t){var n=I(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=L(e,o)?t(e[o],e):""}var i,a="function"==typeof _?_(e):[];if(E){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var l in e)L(e,l)&&(n&&String(Number(l))===l&&l<e.length||E&&i["$"+l]instanceof Symbol||(/[^\w$]/.test(l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof _)for(var u=0;u<a.length;u++)S.call(e,a[u])&&r.push("["+t(a[u])+"]: "+t(e[a[u]],e));return r}},99:function(e,t,n){var r=n(243);e.exports=p,e.exports.parse=i,e.exports.compile=function(e,t){return s(i(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=f;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,a=0,s="",c=t&&t.delimiter||"/";null!=(n=o.exec(e));){var d=n[0],f=n[1],p=n.index;if(s+=e.slice(a,p),a=p+d.length,f)s+=f[1];else{var m=e[a],g=n[2],h=n[3],y=n[4],v=n[5],_=n[6],b=n[7];s&&(r.push(s),s="");var E=null!=g&&null!=m&&m!==g,S="+"===_||"*"===_,A="?"===_||"*"===_,w=n[2]||c,P=y||v;r.push({name:h||i++,prefix:g||"",delimiter:w,optional:A,repeat:S,partial:E,asterisk:!!b,pattern:P?u(P):b?".*":"[^"+l(w)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"==typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",d(t)));return function(t,o){for(var i="",s=t||{},l=(o||{}).pretty?a:encodeURIComponent,u=0;u<e.length;u++){var c=e[u];if("string"!=typeof c){var d,f=s[c.name];if(null==f){if(c.optional){c.partial&&(i+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(r(f)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var p=0;p<f.length;p++){if(d=l(f[p]),!n[u].test(d))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(d)+"`");i+=(0===p?c.prefix:c.delimiter)+d}}else{if(d=c.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(f),!n[u].test(d))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+d+'"');i+=c.prefix+d}}else i+=c}return i}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",s=0;s<e.length;s++){var u=e[s];if("string"==typeof u)a+=l(u);else{var f=l(u.prefix),p="(?:"+u.pattern+")";t.push(u),u.repeat&&(p+="(?:"+f+p+")*"),a+=p=u.optional?u.partial?f+"("+p+")?":"(?:"+f+"("+p+"))?":f+"("+p+")"}}var m=l(n.delimiter||"/"),g=a.slice(-m.length)===m;return o||(a=(g?a.slice(0,-m.length):a)+"(?:"+m+"(?=$))?"),a+=i?"$":o&&g?"":"(?="+m+"|$)",c(new RegExp("^"+a,d(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(p(e[o],t,n).source);return c(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return f(i(e,n),t,n)}(e,t,n)}},243:function(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},8650:function(e){var t,n=window.ProgressEvent,r=!!n;try{t=new n("loaded"),r="loaded"===t.type,t=null}catch(o){r=!1}e.exports=r?n:"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("Event");return n.initEvent(e,!1,!1),t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}},8262:function(e,t,n){"use strict";var r=n(3586);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},3980:function(e,t,n){e.exports=n(8262)()},3586:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5527:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:o}},9126:function(e,t,n){"use strict";var r=n(6845),o=n(9166),i=n(5527);e.exports={formats:i,parse:o,stringify:r}},9166:function(e,t,n){"use strict";var r=n(2493),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),u=s?i.slice(0,s.index):i,c=[];if(u){if(!n.plainObjects&&o.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var d=0;n.depth>0&&null!==(s=a.exec(i))&&d<n.depth;){if(d+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(s[1])}return s&&c.push("["+i.slice(s.index)+"]"),function(e,t,n,r){for(var o=r?t:l(t,n),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(u,10);n.parseArrays||""!==u?!isNaN(c)&&s!==u&&String(c)===u&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=o:a[u]=o:a={0:o}}o=a}return o}(c,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var n,u={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=c.split(t.delimiter,d),p=-1,m=t.charset;if(t.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?m="utf-8":"utf8=%26%2310003%3B"===f[n]&&(m="iso-8859-1"),p=n,n=f.length);for(n=0;n<f.length;++n)if(n!==p){var g,h,y=f[n],v=y.indexOf("]="),_=-1===v?y.indexOf("="):v+1;-1===_?(g=t.decoder(y,a.decoder,m,"key"),h=t.strictNullHandling?null:""):(g=t.decoder(y.slice(0,_),a.decoder,m,"key"),h=r.maybeMap(l(y.slice(_+1),t),(function(e){return t.decoder(e,a.decoder,m,"value")}))),h&&t.interpretNumericEntities&&"iso-8859-1"===m&&(h=s(h)),y.indexOf("[]=")>-1&&(h=i(h)?[h]:h),o.call(u,g)?u[g]=r.combine(u[g],h):u[g]=h}return u}(e,n):e,d=n.plainObjects?Object.create(null):{},f=Object.keys(c),p=0;p<f.length;++p){var m=f[p],g=u(m,c[m],n,"string"==typeof e);d=r.merge(d,g,n)}return!0===n.allowSparse?d:r.compact(d)}},6845:function(e,t,n){"use strict";var r=n(4294),o=n(2493),i=n(5527),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,f=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},m=function e(t,n,i,a,s,u,d,f,m,g,h,y,v,_,b){var E,S=t;if(b.has(t))throw new RangeError("Cyclic object value");if("function"==typeof d?S=d(n,S):S instanceof Date?S=g(S):"comma"===i&&l(S)&&(S=o.maybeMap(S,(function(e){return e instanceof Date?g(e):e}))),null===S){if(a)return u&&!v?u(n,p.encoder,_,"key",h):n;S=""}if("string"==typeof(E=S)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||o.isBuffer(S))return u?[y(v?n:u(n,p.encoder,_,"key",h))+"="+y(u(S,p.encoder,_,"value",h))]:[y(n)+"="+y(String(S))];var A,w=[];if(void 0===S)return w;if("comma"===i&&l(S))A=[{value:S.length>0?S.join(",")||null:void 0}];else if(l(d))A=d;else{var P=Object.keys(S);A=f?P.sort(f):P}for(var C=0;C<A.length;++C){var x=A[C],N="object"==typeof x&&void 0!==x.value?x.value:S[x];if(!s||null!==N){var I=l(S)?"function"==typeof i?i(n,x):n:n+(m?"."+x:"["+x+"]");b.set(t,!0);var O=r();c(w,e(N,I,i,a,s,u,d,f,m,g,h,y,v,_,O))}}return w};e.exports=function(e,t){var n,o=e,u=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],o=p.filter;return("function"==typeof e.filter||l(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof u.filter?o=(0,u.filter)("",o):l(u.filter)&&(n=u.filter);var d,f=[];if("object"!=typeof o||null===o)return"";d=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var g=s[d];n||(n=Object.keys(o)),u.sort&&n.sort(u.sort);for(var h=r(),y=0;y<n.length;++y){var v=n[y];u.skipNulls&&null===o[v]||c(f,m(o[v],v,g,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,h))}var _=f.join(u.delimiter),b=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),_.length>0?b+_:""}},2493:function(e,t,n){"use strict";var r=n(5527),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],s=Object.keys(a),l=0;l<s.length;++l){var u=s[l],c=a[u];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:a,prop:u}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(o){return r}},encode:function(e,t,n,o,i){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",u=0;u<s.length;++u){var c=s.charCodeAt(u);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===r.RFC1738&&(40===c||41===c)?l+=s.charAt(u):c<128?l+=a[c]:c<2048?l+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?l+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(u+=1,c=65536+((1023&c)<<10|1023&s.charCodeAt(u)),l+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return l},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&n&&"object"==typeof n?t[i]=e(a,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return o.call(t,i)?t[i]=e(t[i],a,r):t[i]=a,t}),a)}}},3631:function(e,t,n){"use strict";var r=n(9196),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(7201),a=n(4983),s=n(6590),l="function"==typeof Symbol&&Symbol.iterator;function u(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function c(e,t,n,r){var i,s=typeof e;if("undefined"!==s&&"boolean"!==s||(e=null),null===e||"string"===s||"number"===s||"object"===s&&e.$$typeof===o)return n(r,e,""===t?"."+u(e,0):t),1;var d=0,f=""===t?".":t+":";if(Array.isArray(e))for(var p=0;p<e.length;p++)d+=c(i=e[p],f+u(i,p),n,r);else{var m=function(e){var t=e&&(l&&e[l]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(m){0;for(var g,h=m.call(e),y=0;!(g=h.next()).done;)d+=c(i=g.value,f+u(i,y++),n,r)}else if("object"===s){0;var v=""+e;a(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===v?"object with keys {"+Object.keys(e).join(", ")+"}":v,"")}}return d}var d=/\/+/g;function f(e){return(""+e).replace(d,"$&/")}var p,m,g=h,h=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},y=function(e){var t=this;a(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function v(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function _(e,t,n){var o,a,s=e.result,l=e.keyPrefix,u=e.func,c=e.context,d=u.call(c,t,e.count++);Array.isArray(d)?b(d,s,n,i.thatReturnsArgument):null!=d&&(r.isValidElement(d)&&(o=d,a=l+(!d.key||t&&t.key===d.key?"":f(d.key)+"/")+n,d=r.cloneElement(o,{key:a},void 0!==o.props?o.props.children:void 0)),s.push(d))}function b(e,t,n,r,o){var i="";null!=n&&(i=f(n)+"/");var a=v.getPooled(t,i,r,o);!function(e,t,n){null==e||c(e,"",t,n)}(e,_,a),v.release(a)}v.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},p=function(e,t,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,n,r),i}return new o(e,t,n,r)},(m=v).instancePool=[],m.getPooled=p||g,m.poolSize||(m.poolSize=10),m.release=y;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return s(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return s(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;a(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)b(e[n],t,n,i.thatReturnsArgument);return t}},6866:function(e,t){"use strict";
12
  /** @license React v16.13.1
13
  * react-is.production.min.js
14
  *
16
  *
17
  * This source code is licensed under the MIT license found in the
18
  * LICENSE file in the root directory of this source tree.
19
+ */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,_=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case h:case g:case l:return e;default:return t}}case o:return t}}}function S(e){return E(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=h,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||E(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===i},t.isLazy=function(e){return E(e)===h},t.isMemo=function(e){return E(e)===g},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===v||e.$$typeof===_||e.$$typeof===b||e.$$typeof===y)},t.typeOf=E},8570:function(e,t,n){"use strict";e.exports=n(6866)},7933:function(e,t,n){"use strict";n.d(t,{rU:function(){return h}});var r=n(7267),o=n(1665),i=n(9196),a=n.n(i),s=n(7547),l=(n(3980),n(7896)),u=n(1461),c=n(1898);a().Component;a().Component;var d=function(e,t){return"function"==typeof e?e(t):e},f=function(e,t){return"string"==typeof e?(0,s.ob)(e,null,null,t):e},p=function(e){return e},m=a().forwardRef;void 0===m&&(m=p);var g=m((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,i=(0,u.Z)(e,["innerRef","navigate","onClick"]),s=i.target,c=(0,l.Z)({},i,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return c.ref=p!==m&&t||n,a().createElement("a",c)}));var h=m((function(e,t){var n=e.component,o=void 0===n?g:n,i=e.replace,s=e.to,h=e.innerRef,y=(0,u.Z)(e,["component","replace","to","innerRef"]);return a().createElement(r.s6.Consumer,null,(function(e){e||(0,c.Z)(!1);var n=e.history,r=f(d(s,e.location),e.location),u=r?n.createHref(r):"",g=(0,l.Z)({},y,{href:u,navigate:function(){var t=d(s,e.location);(i?n.replace:n.push)(t)}});return p!==m?g.ref=t||h:g.innerRef=h,a().createElement(o,g)}))})),y=function(e){return e},v=a().forwardRef;void 0===v&&(v=y);v((function(e,t){var n=e["aria-current"],o=void 0===n?"page":n,i=e.activeClassName,s=void 0===i?"active":i,p=e.activeStyle,m=e.className,g=e.exact,_=e.isActive,b=e.location,E=e.sensitive,S=e.strict,A=e.style,w=e.to,P=e.innerRef,C=(0,u.Z)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a().createElement(r.s6.Consumer,null,(function(e){e||(0,c.Z)(!1);var n=b||e.location,i=f(d(w,n),n),u=i.pathname,x=u&&u.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),N=x?(0,r.LX)(n.pathname,{path:x,exact:g,sensitive:E,strict:S}):null,I=!!(_?_(N,n):N),O=I?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(m,s):m,M=I?(0,l.Z)({},A,{},p):A,L=(0,l.Z)({"aria-current":I&&o||null,className:O,style:M,to:i},C);return y!==v?L.ref=t||P:L.innerRef=P,a().createElement(h,L)}))}))},7267:function(e,t,n){"use strict";n.d(t,{VA:function(){return v},l_:function(){return A},AW:function(){return x},F0:function(){return y},rs:function(){return F},s6:function(){return h},LX:function(){return C},k6:function(){return $},TH:function(){return D}});var r=n(1665),o=n(9196),i=n.n(o),a=(n(3980),n(7547)),s=n(1549),l=n(1898),u=n(7896),c=n(99),d=n.n(c),f=(n(8570),n(1461)),p=(n(3463),function(e){var t=(0,s.Z)();return t.displayName=e,t}),m=p("Router-History"),g=function(e){var t=(0,s.Z)();return t.displayName=e,t},h=g("Router"),y=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}(0,r.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return i().createElement(h.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i().createElement(m.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i().Component);var v=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,a.PP)(t.props),t}return(0,r.Z)(t,e),t.prototype.render=function(){return i().createElement(y,{history:this.history,children:this.props.children})},t}(i().Component);var _=function(e){function t(){return e.apply(this,arguments)||this}(0,r.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(i().Component);var b={},E=0;function S(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(b[e])return b[e];var t=d().compile(e);return E<1e4&&(b[e]=t,E++),t}(e)(t,{pretty:!0})}function A(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return i().createElement(h.Consumer,null,(function(e){e||(0,l.Z)(!1);var r=e.history,s=e.staticContext,c=o?r.push:r.replace,d=(0,a.ob)(t?"string"==typeof n?S(n,t.params):(0,u.Z)({},n,{pathname:S(n.pathname,t.params)}):n);return s?(c(d),null):i().createElement(_,{onMount:function(){c(d)},onUpdate:function(e,t){var n=(0,a.ob)(t.to);(0,a.Hp)(n,(0,u.Z)({},d,{key:n.key}))||c(d)},to:n})}))}var w={},P=0;function C(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,s=void 0!==a&&a,l=n.sensitive,u=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=w[n]||(w[n]={});if(r[e])return r[e];var o=[],i={regexp:d()(e,o,t),keys:o};return P<1e4&&(r[e]=i,P++),i}(n,{end:i,strict:s,sensitive:u}),o=r.regexp,a=r.keys,l=o.exec(e);if(!l)return null;var c=l[0],f=l.slice(1),p=e===c;return i&&!p?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var x=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return i().createElement(h.Consumer,null,(function(t){t||(0,l.Z)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?C(n.pathname,e.props):t.match,o=(0,u.Z)({},t,{location:n,match:r}),a=e.props,s=a.children,c=a.component,d=a.render;return Array.isArray(s)&&0===s.length&&(s=null),i().createElement(h.Provider,{value:o},o.match?s?"function"==typeof s?s(o):s:c?i().createElement(c,o):d?d(o):null:"function"==typeof s?s(o):null)}))},t}(i().Component);function N(e){return"/"===e.charAt(0)?e:"/"+e}function I(e,t){if(!e)return t;var n=N(e);return 0!==t.pathname.indexOf(n)?t:(0,u.Z)({},t,{pathname:t.pathname.substr(n.length)})}function O(e){return"string"==typeof e?e:(0,a.Ep)(e)}function M(e){return function(){(0,l.Z)(!1)}}function L(){}i().Component;var F=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return i().createElement(h.Consumer,null,(function(t){t||(0,l.Z)(!1);var n,r,o=e.props.location||t.location;return i().Children.forEach(e.props.children,(function(e){if(null==r&&i().isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?C(o.pathname,(0,u.Z)({},e.props,{path:a})):t.match}})),r?i().cloneElement(n,{location:o,computedMatch:r}):null}))},t}(i().Component);var T=i().useContext;function $(){return T(m)}function D(){return T(h).location}},7613:function(e,t){"use strict";function n(e){return"/"===e.charAt(0)}function r(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}t.Z=function(e,t){void 0===t&&(t="");var o,i=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&n(e),l=t&&n(t),u=s||l;if(e&&n(e)?a=i:i.length&&(a.pop(),a=a.concat(i)),!a.length)return"/";if(a.length){var c=a[a.length-1];o="."===c||".."===c||""===c}else o=!1;for(var d=0,f=a.length;f>=0;f--){var p=a[f];"."===p?r(a,f):".."===p?(r(a,f),d++):d&&(r(a,f),d--)}if(!u)for(;d--;d)a.unshift("..");!u||""===a[0]||a[0]&&n(a[0])||a.unshift("");var m=a.join("/");return o&&"/"!==m.substr(-1)&&(m+="/"),m}},4294:function(e,t,n){"use strict";var r=n(7286),o=n(2680),i=n(9500),a=r("%TypeError%"),s=r("%WeakMap%",!0),l=r("%Map%",!0),u=o("WeakMap.prototype.get",!0),c=o("WeakMap.prototype.set",!0),d=o("WeakMap.prototype.has",!0),f=o("Map.prototype.get",!0),p=o("Map.prototype.set",!0),m=o("Map.prototype.has",!0),g=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+i(e))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return u(e,r)}else if(l){if(t)return f(t,r)}else if(n)return function(e,t){var n=g(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return d(e,r)}else if(l){if(t)return m(t,r)}else if(n)return function(e,t){return!!g(e,t)}(n,r);return!1},set:function(r,o){s&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new s),c(e,r,o)):l?(t||(t=new l),p(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=g(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r}},9830:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1184),o={contextDelimiter:"",onMissingKey:null};function i(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},o)this.options[n]=void 0!==t&&n in t?t[n]:o[n]}i.prototype.getPluralForm=function(e,t){var n,o,i,a=this.pluralForms[e];return a||("function"!=typeof(i=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(o=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),i=(0,r.Z)(o)),a=this.pluralForms[e]=i),a(t)},i.prototype.dcnpgettext=function(e,t,n,r,o){var i,a,s;return i=void 0===o?0:this.getPluralForm(e,o),a=n,t&&(a=t+this.options.contextDelimiter+n),(s=this.data[e][a])&&s[i]?s[i]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===i?n:r)}},365:function(e,t,n){"use strict";n.d(t,{y:function(){return r}});const r=()=>{try{return window.self!==window.top}catch(e){return!0}};!window||!window._currentSiteType||window._currentSiteType},5631:function(e,t,n){"use strict";var r=n(9307),o=n(8152),i=n(9818),a=n(8817),s=n(6483),l=n(9196),u=n(365),c=n(1157),d=n(8318),f=n(8550);var p,m;p="a8c-editor-editor-focused-launch",m={render:function(){var e;const t=window._currentSiteId,n=(0,i.useSelect)((e=>e(d.j4).isSiteLaunched(t)),[t]),{isFocusedLaunchOpen:a,isAnchorFm:p}=(0,i.useSelect)((e=>e(d.sC).getState()),[]),{openFocusedLaunch:m}=(0,i.useDispatch)(d.sC);(0,l.useEffect)((()=>{n&&document.body.classList.add("is-focused-launch-complete")}),[n]);const g=(0,s.hasQueryArg)((0,f.O0)(),c.nU);return(0,l.useEffect)((()=>{g&&!n&&m()}),[g,n,m]),a?(0,r.createElement)(o.Z,{locale:null===(e=window.wpcomEditorSiteLaunch)||void 0===e?void 0:e.locale,openCheckout:f.Rd,redirectTo:f.gQ,siteId:t,getCurrentLaunchFlowUrl:f.O0,isInIframe:(0,u.y)(),isLaunchImmediately:g||p}):null}},(0,a.registerPlugin)(p,m)},1157:function(e,t,n){"use strict";n.d(t,{Js:function(){return r},nU:function(){return o}});const r="focused-launch",o="should_launch"},8318:function(e,t,n){"use strict";n.d(t,{j4:function(){return r},sC:function(){return o}});n(3288);const r="automattic/site",o="automattic/launch"},8550:function(e,t,n){"use strict";n.d(t,{O0:function(){return a},gQ:function(){return s},Rd:function(){return l}});var r=n(2694),o=n(6483),i=n(1157);const a=()=>{var e,t;return(null===(e=window)||void 0===e||null===(t=e.calypsoifyGutenberg)||void 0===t?void 0:t.currentCalypsoUrl)??window.location.href},s=e=>{let t="https://wordpress.com";try{var n,r;t=new URL((null===(n=window)||void 0===n||null===(r=n.calypsoifyGutenberg)||void 0===r?void 0:r.currentCalypsoUrl)||"").origin}catch{}(e=>{window.top.location.href=e})(`${t}${e.startsWith("/")?e:`/${e}`}`)},l=(e=window._currentSiteId.toString(),t=!1,n)=>{var l,u;const c="a8c.wpcom-block-editor.openCheckoutModal",d=(null===(l=window)||void 0===l||null===(u=l.wpcomEditorSiteLaunch)||void 0===u?void 0:u.launchFlow)===i.Js,f=a().split("?")[0];if((0,r.hasAction)(c)&&d&&!t)return void(0,r.doAction)(c,{checkoutOnSuccessCallback:n,isFocusedLaunch:!0,redirectTo:(0,o.addQueryArgs)(f,{[i.nU]:!0})});const p=(0,o.addQueryArgs)(`/checkout/${e}`,{...!t&&{redirect_to:`/home/${e}`}});s(p)}},6115:function(e,t,n){"use strict";n.d(t,{jN:function(){return r.jN},Sn:function(){return o.Sn},Lo:function(){return o.Lo},k9:function(){return o.k9}});n(1694),n(6209),n(9377);var r=n(9792),o=n(3722)},9377:function(e,t,n){"use strict";let r=null;"undefined"!=typeof window&&window.addEventListener("popstate",(function(){r=null}))},9792:function(e,t,n){"use strict";n.d(t,{jN:function(){return f}});var r=n(382),o=n(4898),i=(n(3421),n(2819)),a=(n(9377),n(6209),n(9358));n(1694);const s=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];let l,u=Promise.resolve();function c(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(u=(0,o.ve)("//stats.wp.com/w.js?63"));const d=new r.EventEmitter;function f(e,t){if(t=t||{},(0,a.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,i.includes)(s,e)){if(l){const e=l(t);t={...t,...e}}t=(0,i.omitBy)(t,(e=>void 0===e)),(0,a.Z)('Recording event "%s" with actual props %o',e,t),c(["recordEvent",e,t]),d.emit("record-event",e,t)}else(0,a.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(e,t,n){"use strict";n.d(t,{Sn:function(){return i},Lo:function(){return a},k9:function(){return s}});var r=n(8767),o=n(9792);function i({railcarId:e,uiAlgo:t,uiPosition:n,fetchAlgo:r,result:i,query:a}){(0,o.jN)("calypso_traintracks_render",{railcar:e,ui_algo:t,ui_position:n,fetch_algo:r,rec_result:i,fetch_query:a})}function a({railcarId:e,action:t}){(0,o.jN)("calypso_traintracks_interact",{railcar:e,action:t})}function s(e="recommendation"){return`${(0,r.Z)().replace(/-/g,"")}-${e}`}},6209:function(e,t,n){"use strict";n(4)},9358:function(e,t,n){"use strict";var r=n(8049),o=n.n(r);t.Z=o()("calypso:analytics")},1694:function(e,t,n){"use strict";n(9358)},4:function(e,t,n){"use strict";n(8032)},3600:function(e,t,n){"use strict";n.r(t),n.d(t,{receiveCategories:function(){return r},fetchDomainSuggestions:function(){return o},receiveDomainAvailability:function(){return i},receiveDomainSuggestionsSuccess:function(){return a},receiveDomainSuggestionsError:function(){return s}});const r=e=>({type:"RECEIVE_CATEGORIES",categories:e}),o=()=>({type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}),i=(e,t)=>({type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}),a=(e,t)=>({type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}),s=e=>({type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()})},584:function(e,t,n){"use strict";n.d(t,{L:function(){return r},r:function(){return o}});const r="automattic/domains/suggestions";let o;!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(o||(o={}))},8077:function(e,t,n){"use strict";n.d(t,{z2:function(){return d}});var r=n(9818),o=n(3661),i=n(3600),a=n(584),s=n(3717),l=n(2269),u=n(267);let c=!1;function d(){return c||(c=!0,(0,r.registerStore)(a.L,{actions:i,controls:o.ai,reducer:s.Z,resolvers:l,selectors:u})),a.L}},3717:function(e,t,n){"use strict";var r=n(9818),o=n(584),i=n(4211);const a={state:o.r.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},s=(0,r.combineReducers)({categories:(e=[],t)=>"RECEIVE_CATEGORIES"===t.type?t.categories:e,domainSuggestions:(e=a,t)=>"FETCH_DOMAIN_SUGGESTIONS"===t.type?{...e,state:o.r.Pending,errorMessage:null,pendingSince:t.timeStamp}:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?{...e,state:o.r.Success,data:{...e.data,[(0,i.Le)(t.queryObject)]:t.suggestions},errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?{...e,state:o.r.Failure,errorMessage:t.errorMessage,lastUpdated:t.timeStamp,pendingSince:void 0}:e,availability:(e={},t)=>"RECEIVE_DOMAIN_AVAILABILITY"===t.type?{...e,[t.domainName]:t.availability}:e});t.Z=s},2269:function(e,t,n){"use strict";n.r(t),n.d(t,{isAvailable:function(){return c},getCategories:function(){return d},__internalGetDomainSuggestions:function(){return f}});var r=n(1481),o=n(9126),i=n(6468),a=n.n(i),s=n(3661),l=n(3600),u=n(4211);const c=function*(e){const t=function(e){return`https://public-api.wordpress.com/rest/v1.3/domains/${encodeURIComponent(e)}/is-available?is_cart_pre_check=true`}(e);try{const{body:n}=yield(0,s.An)(t);return(0,l.receiveDomainAvailability)(e,n)}catch{return(0,l.receiveDomainAvailability)(e,{domain_name:e,mappable:"unknown",status:"unknown",supports_privacy:!1})}};function*d(){const{body:e}=yield(0,s.An)("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");return(0,l.receiveCategories)(e)}function*f(e){if(!e.query)return(0,l.receiveDomainSuggestionsError)("Empty query");yield(0,l.fetchDomainSuggestions)();try{const t=yield(0,s._9)({apiVersion:"1.1",path:"/domains/suggestions",query:(0,o.stringify)(e)});if(!Array.isArray(t))return(0,l.receiveDomainSuggestionsError)((0,r.Iu)("Invalid response from the server"));if(function(e,t){return a().isFQDN(t)&&!e.some((e=>e.domain_name.toLowerCase()===t))}(t,e.query)){const n={domain_name:e.query,unavailable:!0,cost:"",raw_price:0,currency_code:""};t.unshift(n)}const n=t.map((e=>e.unavailable?e:{...e,...e.raw_price&&e.currency_code&&{cost:(0,u._B)(e.raw_price,e.currency_code)}}));return(0,l.receiveDomainSuggestionsSuccess)(e,n)}catch(t){return(0,l.receiveDomainSuggestionsError)(t.message||(0,r.Iu)("Error while fetching server response"))}}},267:function(e,t,n){"use strict";n.r(t),n.d(t,{getCategories:function(){return a},getDomainSuggestions:function(){return s},getDomainState:function(){return l},getDomainErrorMessage:function(){return u},isLoadingDomainSuggestions:function(){return c},__internalGetDomainSuggestions:function(){return d},isAvailable:function(){return f},getDomainAvailabilities:function(){return p}});var r=n(9818),o=n(584),i=n(4211);const a=e=>[...e.categories.filter((({tier:e})=>null!==e)).sort(((e,t)=>e>t?1:-1)),...e.categories.filter((({tier:e})=>null===e)).sort(((e,t)=>e.title.localeCompare(t.title)))],s=(e,t,n={})=>{const a=(0,i.o0)(t,n);return(0,r.select)(o.L).__internalGetDomainSuggestions(a)},l=e=>e.domainSuggestions.state,u=e=>e.domainSuggestions.errorMessage,c=(e,t,n={})=>{const a=(0,i.o0)(t,n);return(0,r.select)("core/data").isResolving(o.L,"__internalGetDomainSuggestions",[a])},d=(e,t)=>e.domainSuggestions.data[(0,i.Le)(t)],f=(e,t)=>e.availability[t],p=e=>e.availability},4211:function(e,t,n){"use strict";n.d(t,{Le:function(){return i},_B:function(){return a},o0:function(){return s}});var r=n(1621),o=n(5695);const i=n.n(o)();function a(e,t){return(0,r.ZP)(e,t,{stripZeros:!0})}function s(e,t){return{include_wordpressdotcom:t.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:"variation2_front",...t,query:e.trim().toLocaleLowerCase()}}},6108:function(e,t,n){"use strict";n.r(t),n.d(t,{setSidebarFullscreen:function(){return i},unsetSidebarFullscreen:function(){return a},setStep:function(){return s},setSiteTitle:function(){return l},setDomain:function(){return u},unsetDomain:function(){return c},confirmDomainSelection:function(){return d},setDomainSearch:function(){return f},setPlanProductId:function(){return p},unsetPlanProductId:function(){return m},updatePlan:function(){return g},openSidebar:function(){return h},closeSidebar:function(){return y},openFocusedLaunch:function(){return v},closeFocusedLaunch:function(){return _},enableAnchorFm:function(){return b},showSiteTitleStep:function(){return E},setModalDismissible:function(){return S},unsetModalDismissible:function(){return A},showModalTitle:function(){return w},hideModalTitle:function(){return P},enablePersistentSuccessView:function(){return C},disablePersistentSuccessView:function(){return x}});var r=n(9818),o=n(9149);const i=()=>({type:"SET_SIDEBAR_FULLSCREEN"}),a=()=>({type:"UNSET_SIDEBAR_FULLSCREEN"}),s=e=>({type:"SET_STEP",step:e}),l=e=>({type:"SET_SITE_TITLE",title:e}),u=e=>({type:"SET_DOMAIN",domain:e}),c=()=>({type:"UNSET_DOMAIN"}),d=()=>({type:"CONFIRM_DOMAIN_SELECTION"}),f=e=>({type:"SET_DOMAIN_SEARCH",domainSearch:e}),p=function*(e){if(!(0,r.select)(o.Fs).isPlanProductFree(e)){const t=(0,r.select)(o.Fs).getPlanProductById(e),n=(null==t?void 0:t.billingPeriod)??"ANNUALLY";yield(e=>({type:"SET_PLAN_BILLING_PERIOD",billingPeriod:e}))(n)}return{type:"SET_PLAN_PRODUCT_ID",planProductId:e}},m=()=>({type:"UNSET_PLAN_PRODUCT_ID"});function g(e){return p(e)}const h=()=>({type:"OPEN_SIDEBAR"}),y=()=>({type:"CLOSE_SIDEBAR"}),v=()=>({type:"OPEN_FOCUSED_LAUNCH"}),_=()=>({type:"CLOSE_FOCUSED_LAUNCH"}),b=()=>({type:"ENABLE_ANCHOR_FM"}),E=()=>({type:"SHOW_SITE_TITLE_STEP"}),S=()=>({type:"SET_MODAL_DISMISSIBLE"}),A=()=>({type:"UNSET_MODAL_DISMISSIBLE"}),w=()=>({type:"SHOW_MODAL_TITLE"}),P=()=>({type:"HIDE_MODAL_TITLE"}),C=()=>({type:"ENABLE_SUCCESS_VIEW"}),x=()=>({type:"DISABLE_SUCCESS_VIEW"})},9149:function(e,t,n){"use strict";n.d(t,{Ls:function(){return r},Fs:function(){return o}});const r="automattic/launch",o="automattic/onboard/plans"},3610:function(e,t,n){"use strict";n.d(t,{y:function(){return r},M:function(){return o}});const r={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},o=[r.Name,r.Domain,r.Plan,r.Final]},1635:function(e,t,n){"use strict";n.d(t,{z:function(){return d}});var r=n(9818),o=n(3418),i=n(6108),a=n(9149),s=n(594),l=n(4648),u=n(7092);(0,r.use)(r.plugins.persistence,s.Z);let c=!1;function d(){return c||(c=!0,(0,r.registerStore)(a.Ls,{actions:i,controls:o.controls,reducer:l.Z,selectors:u,persist:["domain","domainSearch","planProductId","planBillingPeriod","confirmedDomainSelection","isAnchorFm","isSiteTitleStepVisible","siteTitle"]})),a.Ls}},594:function(e,t,n){"use strict";var r=n(492);t.Z=(0,r.Z)("WP_LAUNCH")},4648:function(e,t,n){"use strict";var r=n(9818),o=n(3610);const i=(0,r.combineReducers)({step:(e=o.y.Name,t)=>"SET_STEP"===t.type?t.step:e,siteTitle:(e,t)=>"SET_SITE_TITLE"===t.type?t.title:e,domain:(e,t)=>"SET_DOMAIN"===t.type?t.domain:"UNSET_DOMAIN"!==t.type?e:void 0,confirmedDomainSelection:(e=!1,t)=>"CONFIRM_DOMAIN_SELECTION"===t.type||e,domainSearch:(e="",t)=>"SET_DOMAIN_SEARCH"===t.type?t.domainSearch:e,planBillingPeriod:(e="ANNUALLY",t)=>"SET_PLAN_BILLING_PERIOD"===t.type?t.billingPeriod:e,planProductId:(e,t)=>"SET_PLAN_PRODUCT_ID"===t.type?t.planProductId:"UNSET_PLAN_PRODUCT_ID"!==t.type?e:void 0,isSidebarOpen:(e=!1,t)=>"OPEN_SIDEBAR"===t.type||"CLOSE_SIDEBAR"!==t.type&&e,isSidebarFullscreen:(e=!1,t)=>"SET_SIDEBAR_FULLSCREEN"===t.type||"UNSET_SIDEBAR_FULLSCREEN"!==t.type&&e,isAnchorFm:(e=!1,t)=>"ENABLE_ANCHOR_FM"===t.type||e,isFocusedLaunchOpen:(e=!1,t)=>"OPEN_FOCUSED_LAUNCH"===t.type||"CLOSE_FOCUSED_LAUNCH"!==t.type&&e,isSiteTitleStepVisible:(e=!1,t)=>"SHOW_SITE_TITLE_STEP"===t.type||e,isModalDismissible:(e=!0,t)=>"SET_MODAL_DISMISSIBLE"===t.type||"UNSET_MODAL_DISMISSIBLE"!==t.type&&e,isModalTitleVisible:(e=!0,t)=>"SHOW_MODAL_TITLE"===t.type||"HIDE_MODAL_TITLE"!==t.type&&e});t.Z=i},7092:function(e,t,n){"use strict";n.r(t),n.d(t,{getLaunchSequence:function(){return a},getLaunchStep:function(){return s},getState:function(){return l},hasPaidDomain:function(){return u},getSelectedDomain:function(){return c},getSelectedPlanProductId:function(){return d},getLastPlanBillingPeriod:function(){return f},isSelectedPlanPaid:function(){return p},hasSelectedDomainOrSubdomain:function(){return m},isStepCompleted:function(){return g},isFlowCompleted:function(){return h},isFlowStarted:function(){return y},getFirstIncompleteStep:function(){return v},getSiteTitle:function(){return _},getCurrentStep:function(){return b},getDomainSearch:function(){return E}});var r=n(9818),o=n(9149),i=n(3610);const a=()=>i.M,s=()=>i.y,l=e=>e,u=e=>!!e.domain&&!e.domain.is_free,c=e=>e.domain,d=e=>e.planProductId,f=e=>e.planBillingPeriod,p=e=>void 0!==e.planProductId&&!(0,r.select)(o.Fs).isPlanProductFree(e.planProductId),m=e=>!!c(e)||e.confirmedDomainSelection,g=(e,t)=>{if(t===i.y.Plan)return!!d(e);if(t===i.y.Name){const e=(0,r.select)("core").getEntityRecord("root","site",void 0);return!(null==e||!e.title)}return t===i.y.Domain&&(0,r.select)(o.Ls).hasSelectedDomainOrSubdomain()},h=e=>i.M.slice(0,i.M.length-1).every((t=>g(e,t))),y=e=>i.M.some((t=>g(e,t))),v=e=>i.M.find((t=>!g(e,t))),_=e=>null==e?void 0:e.siteTitle,b=e=>e.step,E=e=>e.domainSearch},492:function(e,t,n){"use strict";function r(e){const t=e,n=e+"_TS",r={},o={getItem:e=>r.hasOwnProperty(e)?r[e]:null,setItem(e,t){r[e]=String(t)},removeItem(e){delete r[e]}},i=(()=>{try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}})()?window.localStorage:o;return{storageKey:t,storage:{getItem(e){const r=i.getItem(n);return r&&(e=>{const t=Number(e);return Boolean(t)&&t+6048e5>Date.now()})(r)&&!new URLSearchParams(window.location.search).has("fresh")?i.getItem(e):(i.removeItem(t),i.removeItem(n),null)},setItem(e,t){i.setItem(n,JSON.stringify(Date.now())),i.setItem(e,t)}}}}n.d(t,{Z:function(){return r}})},9068:function(e,t,n){"use strict";n.r(t),n.d(t,{setFeatures:function(){return r},setFeaturesByType:function(){return o},setPlans:function(){return i},setPlanProducts:function(){return a},resetPlan:function(){return s}});const r=(e,t)=>({type:"SET_FEATURES",features:e,locale:t}),o=(e,t)=>({type:"SET_FEATURES_BY_TYPE",featuresByType:e,locale:t}),i=(e,t)=>({type:"SET_PLANS",plans:e,locale:t}),a=e=>({type:"SET_PLAN_PRODUCTS",products:e}),s=()=>({type:"RESET_PLAN"})},4703:function(e,t,n){"use strict";n.d(t,{Ls:function(){return r},Ho:function(){return o},TO:function(){return i},YS:function(){return a},Gz:function(){return s},hx:function(){return l},iL:function(){return u},B6:function(){return c},xT:function(){return d},AX:function(){return f},bS:function(){return p},UB:function(){return m},BV:function(){return g},nN:function(){return h}});const r="automattic/onboard/plans",o=1,i="free",a="personal",s="premium",l="business",u="ecommerce",c=[i,a,s,l,u],d=c,f=s,p=["personal-bundle","value_bundle","business-bundle","ecommerce-bundle"],m=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],g=["free_plan",...p,...m],h=["custom-domain","support-live","priority-support"]},9734:function(e,t,n){"use strict";n.r(t),n.d(t,{plansSlugs:function(){return a.B6},plansProductSlugs:function(){return a.BV},TIMELESS_PLAN_FREE:function(){return a.TO},TIMELESS_PLAN_PERSONAL:function(){return a.YS},TIMELESS_PLAN_PREMIUM:function(){return a.Gz},TIMELESS_PLAN_BUSINESS:function(){return a.hx},TIMELESS_PLAN_ECOMMERCE:function(){return a.iL},FREE_PLAN_PRODUCT_ID:function(){return a.Ho},register:function(){return d}});var r=n(9818),o=n(3661),i=n(9068),a=n(4703),s=n(9438),l=n(5261),u=n(7738);let c=!1;function d(){return c||(c=!0,(0,r.registerStore)(a.Ls,{resolvers:l,actions:i,controls:o.ai,reducer:s.ZP,selectors:u})),a.Ls}},9438:function(e,t,n){"use strict";var r=n(9818);const o=(0,r.combineReducers)({features:(e={},t)=>"SET_FEATURES"===t.type?{...e,[t.locale]:t.features}:e,featuresByType:(e={},t)=>"SET_FEATURES_BY_TYPE"===t.type?{...e,[t.locale]:t.featuresByType}:e,planProducts:(e=[],t)=>"SET_PLAN_PRODUCTS"===t.type?t.products:e,plans:(e={},t)=>"SET_PLANS"===t.type?{...e,[t.locale]:t.plans}:e});t.ZP=o},5261:function(e,t,n){"use strict";n.r(t),n.d(t,{getSupportedPlans:function(){return p}});var r=n(1621),o=n(9126),i=n(3661),a=n(9068),s=n(4703);function l(e){return(0,r.ZP)(12*e.raw_price,e.currency_code,{stripZeros:!0})}function u(e){return(0,r.ZP)(e.raw_price,e.currency_code,{stripZeros:!0})}function c(e,t){const n=Object.keys(t).find((n=>t[n].name===e));return!!n&&t[n].requiresAnnuallyBilledPlan}function d(e,t){const n=e.highlighted_features.map((e=>({name:e,requiresAnnuallyBilledPlan:c(e,t)})));return n.sort(((e,t)=>Number(t.requiresAnnuallyBilledPlan)-Number(e.requiresAnnuallyBilledPlan))),n}function f(e,t){const n=s.BV.reduce(((n,o)=>{const i=e.find((e=>e.product_slug===o));if(!i)return n;const a=t.find((e=>e.productIds.indexOf(i.product_id)>-1));var s;return n.push({productId:i.product_id,billingPeriod:31===i.bill_period?"MONTHLY":"ANNUALLY",periodAgnosticSlug:a.periodAgnosticSlug,storeSlug:i.product_slug,rawPrice:i.raw_price,pathSlug:i.path_slug,price:31===(null==i?void 0:i.bill_period)||0===i.raw_price?u(i):(s=i,(0,r.ZP)(s.raw_price/12,s.currency_code,{stripZeros:!0})),annualPrice:31===(null==i?void 0:i.bill_period)?l(i):u(i)}),n}),[]);return function(e){for(let t=0;t<s.bS.length;t++){const n=e.find((e=>e.storeSlug===s.bS[t])),r=e.find((e=>e.storeSlug===s.UB[t]));if(n&&r){const e=12*r.rawPrice,t=n.rawPrice,o=Math.round(100*(1-t/e));n.annualDiscount=o,r.annualDiscount=o}}}(n),n}function*p(e="en"){const t=yield(0,i._9)({path:"/plans",query:(0,o.stringify)({locale:e}),apiVersion:"1.5"}),{body:n}=yield(0,i.An)(`https://public-api.wordpress.com/wpcom/v2/plans/details?locale=${encodeURIComponent(e)}`,{mode:"cors",credentials:"omit"}),r=function(e){return e.reduce(((e,t)=>(e[t.id]={id:t.id,name:t.name,description:t.description,type:"checkbox",requiresAnnuallyBilledPlan:s.nN.indexOf(t.id)>-1},e)),{})}(n.features),l=n.plans.map((e=>{var t;const n=null===(t=e.nonlocalized_short_name)||void 0===t?void 0:t.toLowerCase();return{description:e.tagline,features:d(e,r),storage:e.storage,title:e.short_name,featuresSlugs:e.features.reduce(((e,t)=>(e[t]=!0,e)),{}),isFree:n===s.TO,isPopular:n===s.Gz,periodAgnosticSlug:n,productIds:e.products.map((({plan_id:e})=>e))}})),u=f(t,l);yield(0,a.setPlans)(l,e),yield(0,a.setPlanProducts)(u),yield(0,a.setFeatures)(r,e),yield(0,a.setFeaturesByType)(n.features_by_type,e)}},7738:function(e,t,n){"use strict";n.r(t),n.d(t,{getFeatures:function(){return s},getFeaturesByType:function(){return l},getPlanByProductId:function(){return u},getPlanProductById:function(){return c},getPlanByPeriodAgnosticSlug:function(){return d},getDefaultPaidPlan:function(){return f},getDefaultFreePlan:function(){return p},getSupportedPlans:function(){return m},getPlansProducts:function(){return g},getPrices:function(){return h},getPlanByPath:function(){return y},getPlanProduct:function(){return v},isPlanEcommerce:function(){return _},isPlanFree:function(){return b},isPlanProductFree:function(){return E}});var r=n(9818),o=n(7180),i=n.n(o),a=n(4703);const s=(e,t)=>e.features[t]??{},l=(e,t)=>e.featuresByType[t]??[],u=(e,t,n)=>{if(t)return(0,r.select)(a.Ls).getSupportedPlans(n).find((e=>e.productIds.indexOf(t)>-1))},c=(e,t)=>{if(t)return(0,r.select)(a.Ls).getPlansProducts().find((e=>e.productId===t))},d=(e,t,n)=>{if(t)return(0,r.select)(a.Ls).getSupportedPlans(n).find((e=>e.periodAgnosticSlug===t))},f=(e,t)=>(0,r.select)(a.Ls).getSupportedPlans(t).find((e=>e.periodAgnosticSlug===a.AX)),p=(e,t)=>(0,r.select)(a.Ls).getSupportedPlans(t).find((e=>e.periodAgnosticSlug===a.TO)),m=(e,t)=>e.plans[t]??[],g=e=>e.planProducts,h=(e,t)=>(i()("getPrices",{alternative:"getPlanProduct().price"}),(0,r.select)(a.Ls).getPlansProducts().reduce(((e,t)=>(e[t.storeSlug]=t.price,e)),{})),y=(e,t,n)=>{if(!t)return;const o=(0,r.select)(a.Ls).getPlansProducts().find((e=>e.pathSlug===t));return o?(0,r.select)(a.Ls).getSupportedPlans(n).find((e=>e.periodAgnosticSlug===o.periodAgnosticSlug)):void 0},v=(e,t,n)=>{if(t&&n)return(0,r.select)(a.Ls).getPlansProducts().find((e=>{const r=e.periodAgnosticSlug===t,o=t===a.TO||e.billingPeriod===n;return r&&o}))},_=(e,t)=>t===a.iL,b=(e,t)=>t===a.TO,E=(e,t)=>t===a.Ho},8459:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var r=n(3661),o=n(2699);function i(e){const t=()=>({type:"FETCH_NEW_SITE"}),n=e=>({type:"RECEIVE_NEW_SITE",response:e}),i=e=>({type:"RECEIVE_NEW_SITE_FAILED",error:e});const a=(e,t)=>({type:"RECEIVE_SITE_TITLE",siteId:e,title:t}),s=e=>({type:"LAUNCH_SITE_START",siteId:e}),l=e=>({type:"LAUNCH_SITE_SUCCESS",siteId:e}),u=(e,t)=>({type:"LAUNCH_SITE_FAILURE",siteId:e,error:t});return{receiveSiteDomains:(e,t)=>({type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}),saveSiteTitle:function*(e,t){try{yield(0,r._9)({path:`/sites/${encodeURIComponent(e)}/settings`,apiVersion:"1.4",body:{blogname:t},method:"POST"}),yield a(e,t)}catch(n){}},receiveSiteTitle:a,fetchNewSite:t,fetchSite:()=>({type:"FETCH_SITE"}),receiveNewSite:n,receiveNewSiteFailed:i,resetNewSiteFailed:()=>({type:"RESET_RECEIVE_NEW_SITE_FAILED"}),createSite:function*(t){yield{type:"FETCH_NEW_SITE"};try{const{authToken:o,...i}=t,a={...{client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},...i,validate:!1},s=yield(0,r._9)({path:"/sites/new",apiVersion:"1.1",method:"post",body:a,token:o});return yield n(s),!0}catch(o){return yield i(o),!1}},receiveSite:(e,t)=>({type:"RECEIVE_SITE",siteId:e,response:t}),receiveSiteFailed:(e,t)=>({type:"RECEIVE_SITE_FAILED",siteId:e,response:t}),reset:()=>({type:"RESET_SITE_STORE"}),launchSite:function*(e){yield s(e);try{yield(0,r._9)({path:`/sites/${e}/launch`,apiVersion:"1.1",method:"post"}),yield l(e)}catch(t){yield u(e,o.Hc.INTERNAL)}},launchSiteStart:s,launchSiteSuccess:l,launchSiteFailure:u,getCart:function*(e){return yield(0,r._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"})},setCart:function*(e,t){return yield(0,r._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t})}}}},2005:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});const r="automattic/site"},2369:function(e,t,n){"use strict";n.d(t,{z2:function(){return d}});var r=n(9818),o=n(3661),i=n(8459),a=n(2005),s=n(2701),l=n(7862),u=n(4309);let c=!1;function d(e){return c||(c=!0,(0,r.registerStore)(a.L,{actions:(0,i.d)(e),controls:o.ai,reducer:s.ZP,resolvers:l,selectors:u})),a.L}},2701:function(e,t,n){"use strict";var r=n(9818),o=n(2699);const i=(0,r.combineReducers)({data:(e,t)=>{if("RECEIVE_NEW_SITE"===t.type){const{response:e}=t;return e.blog_details}if("RECEIVE_NEW_SITE_FAILED"!==t.type&&"RESET_SITE_STORE"!==t.type)return e},error:(e,t)=>{switch(t.type){case"FETCH_NEW_SITE":case"RECEIVE_NEW_SITE":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return;case"RECEIVE_NEW_SITE_FAILED":return{error:t.error.error,status:t.error.status,statusCode:t.error.statusCode,name:t.error.name,message:t.error.message}}return e},isFetching:(e=!1,t)=>{switch(t.type){case"FETCH_NEW_SITE":return!0;case"RECEIVE_NEW_SITE":case"RECEIVE_NEW_SITE_FAILED":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return!1}return e}}),a=(0,r.combineReducers)({isFetchingSiteDetails:(e=!1,t)=>{switch(t.type){case"FETCH_SITE":return!0;case"RECEIVE_SITE":case"RECEIVE_SITE_FAILED":return!1}return e},newSite:i,sites:(e={},t)=>{if("RECEIVE_SITE"===t.type)return{...e,[t.siteId]:t.response};if("RECEIVE_SITE_FAILED"===t.type){const{[t.siteId]:n,...r}=e;return{...r}}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?{...e,[t.siteId]:{...e[t.siteId],name:t.title}}:e},launchStatus:(e={},t)=>"LAUNCH_SITE_START"===t.type?{...e,[t.siteId]:{status:o.uS.IN_PROGRESS,errorCode:void 0}}:"LAUNCH_SITE_SUCCESS"===t.type?{...e,[t.siteId]:{status:o.uS.SUCCESS,errorCode:void 0}}:"LAUNCH_SITE_FAILURE"===t.type?{...e,[t.siteId]:{status:o.uS.FAILURE,errorCode:t.error}}:e,sitesDomains:(e={},t)=>"RECEIVE_SITE_DOMAINS"===t.type?{...e,[t.siteId]:t.domains}:e});t.ZP=a},7862:function(e,t,n){"use strict";n.r(t),n.d(t,{getSite:function(){return a},getSiteDomains:function(){return s}});var r=n(9818),o=n(3661),i=n(2005);function*a(e){yield(0,r.dispatch)(i.L).fetchSite();try{const t=yield(0,o._9)({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});yield(0,r.dispatch)(i.L).receiveSite(e,t)}catch(t){yield(0,r.dispatch)(i.L).receiveSiteFailed(e,void 0)}}function*s(e){try{const t=yield(0,o._9)({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});yield(0,r.dispatch)(i.L).receiveSiteDomains(e,null==t?void 0:t.domains)}catch(t){}}},4309:function(e,t,n){"use strict";n.r(t),n.d(t,{getState:function(){return a},getNewSite:function(){return s},getNewSiteError:function(){return l},isFetchingSite:function(){return u},isFetchingSiteDetails:function(){return c},isNewSite:function(){return d},getSite:function(){return f},getSiteTitle:function(){return p},isSiteLaunched:function(){return m},isSiteLaunching:function(){return g},getSiteDomains:function(){return h},getPrimarySiteDomain:function(){return y},getSiteSubdomain:function(){return v}});var r=n(9818),o=n(2005),i=n(2699);const a=e=>e,s=e=>e.newSite.data,l=e=>e.newSite.error,u=e=>e.newSite.isFetching,c=e=>e.isFetchingSiteDetails,d=e=>!!e.newSite.data,f=(e,t)=>e.sites[t],p=(e,t)=>{var n;return null===(n=(0,r.select)(o.L).getSite(t))||void 0===n?void 0:n.name},m=(e,t)=>{var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===i.uS.SUCCESS},g=(e,t)=>{var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===i.uS.IN_PROGRESS},h=(e,t)=>e.sitesDomains[t],y=(e,t)=>{var n;return null===(n=(0,r.select)(o.L).getSiteDomains(t))||void 0===n?void 0:n.find((e=>e.primary_domain))},v=(e,t)=>{var n;return null===(n=(0,r.select)(o.L).getSiteDomains(t))||void 0===n?void 0:n.find((e=>e.is_subdomain))}},2699:function(e,t,n){"use strict";let r,o,i;n.d(t,{Hc:function(){return o},uS:function(){return i}}),function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(r||(r={})),function(e){e.INTERNAL="internal"}(o||(o={})),function(e){e.UNINITIALIZED="unintialized",e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.FAILURE="failure"}(i||(i={}))},4366:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});const r="automattic/wpcom-features"},2613:function(e,t,n){"use strict";n.d(t,{$:function(){return l}});var r=n(9734);const{TIMELESS_PLAN_PERSONAL:o,TIMELESS_PLAN_PREMIUM:i,TIMELESS_PLAN_BUSINESS:a,TIMELESS_PLAN_ECOMMERCE:s}=r,l={domain:{id:"domain",minSupportedPlan:o},store:{id:"store",minSupportedPlan:s},seo:{id:"seo",minSupportedPlan:a},plugins:{id:"plugins",minSupportedPlan:a},"ad-free":{id:"ad-free",minSupportedPlan:o},"image-storage":{id:"image-storage",minSupportedPlan:i},"video-storage":{id:"video-storage",minSupportedPlan:i},support:{id:"support",minSupportedPlan:a}}},182:function(e,t,n){"use strict";n.d(t,{z:function(){return u}});var r=n(9818),o=n(3418),i=n(4366),a=n(8638),s=n(335);let l=!1;function u(){return l||(l=!0,(0,r.registerStore)(i.L,{controls:o.controls,reducer:a.Z,selectors:s})),i.L}},8638:function(e,t,n){"use strict";var r=n(2613);t.Z=(e=r.$)=>e},335:function(e,t,n){"use strict";n.r(t),n.d(t,{getAllFeatures:function(){return o},getRecommendedPlanSlug:function(){return i}});var r=n(4703);const o=e=>e,i=(e,t)=>{const n=o(e);if(t.length)return t.reduce(((e,t)=>{const o=n[t].minSupportedPlan;return r.xT.indexOf(o)>r.xT.indexOf(e)?o:e}),n[t[0]].minSupportedPlan)}},3661:function(e,t,n){"use strict";n.d(t,{_9:function(){return o},An:function(){return i},ai:function(){return a}});var r=n(8552);const o=e=>({type:"WPCOM_REQUEST",request:e}),i=(e,t)=>({type:"FETCH_AND_PARSE",resource:e,options:t}),a={WPCOM_REQUEST:({request:e})=>(0,r.ZP)(e),FETCH_AND_PARSE:async({resource:e,options:t})=>{const n=await window.fetch(e,t);return{ok:n.ok,body:await n.json()}},RELOAD_PROXY:()=>{(0,r.sS)()},REQUEST_ALL_BLOGS_ACCESS:()=>(0,r.Vw)(),WAIT:({ms:e})=>new Promise((t=>setTimeout(t,e)))}},7003:function(e,t,n){"use strict";var r=n(9307),o=n(5609),i=n(9818),a=n(5869),s=n(3383),l=n(6656),u=n(2779),c=n.n(u),d=(n(9196),n(3300));n(5918);t.Z=({onSelect:e,selected:t})=>{const{__:__}=(0,l.useI18n)(),[n,u]=(0,r.useState)(!1),f=t=>{u(!1),e(t)},p=(0,i.useSelect)((e=>e(d.GN).getCategories())),m=__("All Categories","full-site-editing");return(0,r.createElement)("div",{className:c()("domain-categories",{"is-open":n})},(0,r.createElement)(o.Button,{className:"domain-categories__dropdown-button",onClick:()=>u(!n)},(0,r.createElement)("span",null,t??m),(0,r.createElement)(a.Z,{icon:s.Z,size:16})),(0,r.createElement)("ul",{className:"domain-categories__item-group"},(0,r.createElement)("li",{className:c()("domain-categories__item",{"is-selected":!t})},(0,r.createElement)(o.Button,{onClick:()=>f()},__("View all","full-site-editing"))),p.map((({slug:e,title:n})=>(0,r.createElement)("li",{key:e,className:c()("domain-categories__item",{"is-selected":e===t})},(0,r.createElement)(o.Button,{onClick:()=>f(e)},n))))))}},6325:function(e,t,n){"use strict";n.d(t,{q:function(){return i}});var r=n(9307),o=n(6656);const i=()=>{const{__:__,isRTL:e}=(0,o.useI18n)();return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 300 40",xmlSpace:"preserve",width:"300",style:e()?{transform:"scaleX(-1)"}:void 0},(0,r.createElement)("rect",{x:"0",width:"310",height:"50",rx:"10",fill:"#D8D8D8"}),(0,r.createElement)("rect",{x:"8",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("rect",{x:"40",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("rect",{x:"72",y:"8",width:"300",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("text",{x:"80",y:"26",direction:"ltr",textAnchor:e()?"end":"start",transform:e()?"scale(-1,1) translate(-160,0)":void 0},(0,r.createElement)("tspan",{fill:"#999"},(0,r.createElement)("tspan",null,"https://")),(0,r.createElement)("tspan",{fill:"#515151",dx:"4.5"},__("example.com","full-site-editing"))))}},1614:function(e,t,n){"use strict";var r=n(9307),o=n(2779),i=n.n(o);t.Z=({type:e})=>(0,r.createElement)("div",{className:i()("domain-picker__suggestion-item placeholder",`type-${e}`)},(0,r.createElement)("div",{className:"domain-picker__suggestion-item-name placeholder"}),(0,r.createElement)("div",{className:"domain-picker__price placeholder"}))},7226:function(e,t,n){"use strict";var r=n(7896),o=n(9307),i=n(9196),a=n(6461);const s=i.forwardRef((({type:e,disabled:t,...n},i)=>e===a.ln?(0,o.createElement)("div",n):(0,o.createElement)("button",(0,r.Z)({ref:i,disabled:t},n))));t.Z=s},6461:function(e,t,n){"use strict";n.d(t,{fe:function(){return y},ln:function(){return v},vv:function(){return _}});var r=n(7896),o=n(9307),i=n(6115),a=n(849),s=n(7498),l=n(5609),u=n(4333),c=n(5736),d=n(6656),f=n(2779),p=n.n(f),m=n(9196),g=n(413),h=n(7226);const y="radio",v="button",_="individual-item",b=({isUnavailable:e,domain:t,isLoading:n,cost:r,railcarId:f,hstsRequired:b=!1,isFree:E=!1,isExistingSubdomain:S=!1,isRecommended:A=!1,onSelect:w,onRender:P,selected:C,type:x=y,buttonRef:N})=>{const{__:__,hasTranslation:I}=(0,d.useI18n)(),O=(0,a.bU)(),M=(0,s.Iu)(),L=!(0,u.useViewportMatch)("small",">="),F=t.indexOf("."),T=t.slice(0,F),$=t.slice(F),[D,R]=m.useState(),[k,Z]=m.useState(),j=__("Default","full-site-editing"),U=__("Free","full-site-editing"),B=x===_?j:U,G=__("Included with annual plans","full-site-editing"),V=__("Included in annual plans","full-site-editing"),H="en"===O||null!=I&&I("Included in annual plans")?V:G,W=__("<strong>First year included</strong> in paid plans","full-site-editing"),z=__("<strong>First year included</strong> in annual plans","full-site-editing"),Y="en"===O||null!=I&&I("<strong>First year included</strong> in annual plans")?z:W,K=L?H:(0,o.createInterpolateElement)(Y,{strong:(0,o.createElement)("strong",null)});m.useEffect((()=>{t!==D&&k!==f&&f&&(P(),R(t),Z(f))}),[t,D,k,f,P]);const q=()=>{k&&(0,i.Lo)({action:"domain_selected",railcarId:k}),w(t)},J=__("Selected","full-site-editing"),X=__("Select","full-site-editing");return(0,o.createElement)(h.Z,{ref:N,type:x,key:T,className:p()("domain-picker__suggestion-item",{"is-free":E,"is-selected":C,"is-unavailable":e},`type-${x}`),onClick:x!==v?q:void 0,disabled:e},x===y&&(n?(0,o.createElement)(l.Spinner,null):(0,o.createElement)("span",{className:p()("domain-picker__suggestion-radio-circle",{"is-checked":C,"is-unavailable":e})})),(0,o.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,o.createElement)("div",{className:"domain-picker__suggestion-item-name-inner"},(0,o.createElement)("span",{className:p()("domain-picker__domain-wrapper",{"with-margin":!b})},(0,o.createElement)("span",{className:"domain-picker__domain-sub-domain"},T),(0,o.createElement)("span",{className:"domain-picker__domain-tld"},$)),A&&!e&&(0,o.createElement)("div",{className:"domain-picker__badge is-recommended"},__("Recommended","full-site-editing")),b&&(0,o.createElement)(g.Z,{position:L?"bottom center":"middle right",noArrow:!1,className:"domain-picker__info-tooltip"},(0,o.createInterpolateElement)(__("All domains ending with <tld /> require an SSL certificate to host a website. When you host this domain at WordPress.com an SSL certificate is included. <learn_more_link>Learn more</learn_more_link>","full-site-editing"),{tld:(0,o.createElement)("b",null,$),learn_more_link:(0,o.createElement)("a",{target:"_blank",rel:"noreferrer",href:M("https://wordpress.com/support/https-ssl")})}))),S&&x!==_&&(0,o.createElement)("div",{className:"domain-picker__change-subdomain-tip"},__("You can change your free subdomain later under Domain Settings.","full-site-editing"))),(0,o.createElement)("div",{className:p()("domain-picker__price",{"is-paid":!E})},e&&__("Unavailable","full-site-editing"),E&&!e&&B,!E&&!e&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("span",{className:"domain-picker__price-cost"},(0,c.sprintf)(__("%s/year","full-site-editing"),r)),(0,o.createElement)("span",{className:"domain-picker__price-inclusive"}," ",K," "),(0,o.createElement)("span",{className:"domain-picker__price-renewal"},(0,c.sprintf)(__("Renews at: %s /year","full-site-editing"),r)))),x===v&&(n?(0,o.createElement)(l.Spinner,null):(0,o.createElement)("div",{className:"domain-picker__action"},(0,o.createElement)(l.Button,{ref:N,isSecondary:!0,className:p()("domain-picker__suggestion-select-button",{"is-selected":C&&!e}),disabled:e,onClick:q},C&&!e?J:X))))};t.ZP=m.forwardRef(((e,t)=>(0,o.createElement)(b,(0,r.Z)({},e,{buttonRef:t}))))},605:function(e,t,n){"use strict";var r=n(9307),o=n(9211),i=n(6656),a=(n(9196),n(7226));t.Z=({onClick:e})=>{const{__:__,_x:_x}=(0,i.useI18n)();return(0,r.createElement)(a.Z,{type:"button",className:"domain-picker__suggestion-item type-link",onClick:e},(0,r.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,r.createElement)("span",{className:"domain-picker__domain-wrapper with-margin with-bold-text"},__("Already own a domain?","full-site-editing")),(0,r.createElement)("div",null,(0,r.createElement)("span",{className:"domain-picker__item-tip"},_x("You can use it as your site's address.","Upgrades: Register domain description","full-site-editing")))),(0,r.createElement)(o.b4,{arrow:"right"},_x("Use a domain I own","Domain transfer or mapping suggestion button","full-site-editing")))}},2999:function(e,t,n){"use strict";var r=n(9307),o=n(6115),i=n(584),a=n(5609),s=n(5869),l=n(7108),u=n(6656),c=n(2819),d=n(9196),f=n(3300),p=n(5241),m=n(1045),g=n(1071),h=n(3446),y=n(7003),v=n(6325),_=n(6461),b=n(1614),E=n(605);n(5592);const S=function({groupItems:e,children:t}){return e?(0,r.createElement)("div",{className:"domain-picker__suggestion-item-group"},t):(0,r.createElement)(d.Fragment,null,t)},A=function({children:e}){return(0,r.createElement)("p",{className:"domain-picker__suggestion-group-label"},e)};t.ZP=({header:e,showDomainCategories:t,onDomainSelect:n,onExistingSubdomainSelect:w,quantity:P=f.SL,quantityExpanded:C=f.Mm,onDomainSearchBlur:x,analyticsFlowId:N,analyticsUiAlgo:I,initialDomainSearch:O="",onSetDomainSearch:M,currentDomain:L,isCheckingDomainAvailability:F,existingSubdomain:T,segregateFreeAndPaid:$=!1,showSearchField:D=!0,itemType:R=_.fe,locale:k,areDependenciesLoading:Z=!1,orderSubDomainsLast:j=!1,onUseYourDomainClick:U,vendor:B=(0,h.iY)(),showRecommendationLabel:G=!0})=>{var V;const{__:__}=(0,u.useI18n)(),H=__("Search for a domain","full-site-editing"),[W,z]=(0,d.useState)(!1),[Y,K]=(0,d.useState)(O),[q,J]=(0,d.useState)(),{allDomainSuggestions:X,errorMessage:Q,state:ee,retryRequest:te}=(0,p.O)(Y.trim(),C,q,k)||{},ne=null==X?void 0:X.filter((e=>!(T&&e.is_free))).slice(0,W?C-1:P-1),re=null==ne?void 0:ne.findIndex((e=>!e.is_free&&!e.unavailable)),oe=(0,m.$)(ne,T,L);oe&&(null==ne||ne.push(oe));const ie=(0,g.P)();(0,d.useEffect)((()=>{z(!1)}),[Y]);const[ae,se]=(0,d.useState)();(0,d.useEffect)((()=>{X&&se((0,o.k9)("suggestion"))}),[X,se]),(0,d.useEffect)((()=>{D||K(O)}),[O,D]);const le=d.useRef([]);(0,d.useEffect)((()=>{var e,t;W&&(null===(e=le.current[P])||void 0===e||null===(t=e.focus)||void 0===t||t.call(e))}),[W,P]);const ue=(e,t,n,r)=>{const i=`/domains/search/${B}/${N}${q?"/"+q:""}`;(0,o.Sn)({uiAlgo:`/${N}/${I}`,fetchAlgo:i,query:Y,railcarId:t,result:r?e+"#recommended":e,uiPosition:n})},ce=d.useRef(),de=ee===i.r.Failure,fe=(null===(V=Y.trim)||void 0===V?void 0:V.call(Y).length)<=1,pe=!de&&!fe,me=!de&&fe;let ge=P;oe&&(ge+=1),U&&(ge+=1),T&&(ge-=1);const he=["professional"];return T&&he.unshift("sub-domain"),j&&he.reverse(),(0,r.createElement)("div",{className:"domain-picker"},e&&e,D&&(0,r.createElement)("div",{className:"domain-picker__search"},(0,r.createElement)("form",{action:"",onSubmit:e=>{var t;e.preventDefault(),null==ce||null===(t=ce.current)||void 0===t||t.blur()}},(0,r.createElement)("div",{className:"domain-picker__search-icon"},(0,r.createElement)(s.Z,{icon:l.Z})),(0,r.createElement)(a.TextControl,{ref:e=>{ce.current=e},hideLabelFromVision:!0,name:"search",label:H,placeholder:H,onChange:e=>{K(e),M&&M(e)},onBlur:e=>{x&&x(e.currentTarget.value)},value:Y,dir:"ltr"}))),de&&(0,r.createElement)(a.Notice,{className:"domain-picker__error",status:"error",isDismissible:!1},(0,r.createElement)("p",{className:"domain-picker__error-message"},Q||__("An error has occurred, please check your connection and retry.","full-site-editing")),(0,r.createElement)(a.Button,{isPrimary:!0,className:"domain-picker__error-retry-btn",onClick:te},__("Retry","full-site-editing"))),(pe||Z)&&(0,r.createElement)("div",{className:"domain-picker__body"},t&&(0,r.createElement)("div",{className:"domain-picker__aside"},(0,r.createElement)(y.Z,{selected:q,onSelect:J})),(0,r.createElement)("div",{className:"domain-picker__suggestion-sections"},(0,r.createElement)("div",{className:"domain-picker__sugggested-items-container"},he.map((e=>"sub-domain"===e?(0,r.createElement)(d.Fragment,{key:e},$&&(0,r.createElement)(A,null,__("Keep sub-domain","full-site-editing")),(0,r.createElement)(S,{key:e,groupItems:$},!Z&&T&&(0,r.createElement)(_.ZP,{key:null==T?void 0:T.domain_name,domain:null==T?void 0:T.domain_name,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:ae?`${ae}0`:void 0,onRender:()=>ue(null==T?void 0:T.domain_name,`${ae}0`,0,!1),selected:(null==L?void 0:L.domain_name)===(null==T?void 0:T.domain_name),onSelect:()=>{null==w||w(null==T?void 0:T.domain_name)},type:R})||(0,r.createElement)(b.Z,{type:R}))):(0,r.createElement)(d.Fragment,{key:e},$&&(0,r.createElement)(A,null,__("Professional domains","full-site-editing")),(0,r.createElement)(S,{key:e,groupItems:$},!Z&&(null==ne?void 0:ne.map(((e,t)=>{var o;const i=null!=T&&T.domain_name?t+1:t,a=t===re,s=null===(o=ie[null==e?void 0:e.domain_name])||void 0===o?void 0:o.status,l=!s||(null===f.vn||void 0===f.vn?void 0:f.vn.indexOf(s))>-1;return(0,r.createElement)(_.ZP,{ref:e=>{le.current[i]=e},key:e.domain_name,domain:e.domain_name,cost:e.cost,isUnavailable:!l||(null==e?void 0:e.unavailable),isLoading:(null==L?void 0:L.domain_name)===e.domain_name&&F,hstsRequired:e.hsts_required,isFree:e.is_free,isRecommended:G&&a,railcarId:ae?`${ae}${i}`:void 0,onRender:()=>ue(e.domain_name,`${ae}${i}`,i,a),onSelect:()=>{n(e)},selected:(null==L?void 0:L.domain_name)===e.domain_name,type:R})})))||(0,c.times)(ge,(e=>(0,r.createElement)(b.Z,{type:R,key:e}))),U&&!!ne&&(0,r.createElement)(E.Z,{onClick:U})))))),!W&&P<C&&(null==X?void 0:X.length)&&(null==X?void 0:X.length)>P&&(0,r.createElement)("div",{className:"domain-picker__show-more"},(0,r.createElement)(a.Button,{onClick:()=>z(!0),isLink:!0},__("View more results","full-site-editing"))))),me&&!Z&&(0,r.createElement)("div",{className:"domain-picker__empty-state"},(0,r.createElement)("p",{className:"domain-picker__empty-state--text"},__("A domain name is the site address people type in their browser to visit your site.","full-site-editing")),(0,r.createElement)("div",null,(0,r.createElement)(v.q,null))))}},413:function(e,t,n){"use strict";var r=n(9307),o=n(5609),i=n(5614),a=n(2779),s=n.n(a),l=n(9196);n(125);t.Z=({children:e,className:t,id:n,position:a="bottom center",noArrow:u=!0})=>{const[c,d]=(0,l.useState)(!1);return(0,r.createElement)((e=>(0,r.createElement)(o.Button,e)),{icon:i.Z,onClick:e=>{d(!c),e.stopPropagation()},className:"info-tooltip","data-testid":"info-tooltip"},c&&(0,r.createElement)(o.Popover,{id:n,className:s()("info-tooltip__content",t),onClose:()=>{d(!1)},position:a,noArrow:u},e))}},3300:function(e,t,n){"use strict";n.d(t,{SL:function(){return o},Mm:function(){return i},F9:function(){return a},dP:function(){return s},GN:function(){return l},vn:function(){return u}});var r=n(8077);const o=5,i=10,a=2,s=300,l=r.z2(),u=["available","available_premium"]},1071:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});var r=n(9818),o=n(3300);function i(){return(0,r.useSelect)((e=>e(o.GN).getDomainAvailabilities()),[])}},5241:function(e,t,n){"use strict";n.d(t,{O:function(){return a}});var r=n(9818),o=n(7127),i=n(3300);function a(e="",t,n,a="en",s={}){const[l]=(0,o.Z)(e,i.dP),{invalidateResolutionForStoreSelector:u}=(0,r.useDispatch)(i.GN);return(0,r.useSelect)((e=>{if(!l||l.length<i.F9)return;const{getDomainSuggestions:r,getDomainState:o,getDomainErrorMessage:c}=e(i.GN);return{allDomainSuggestions:r(l,{include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:t+1,locale:a,category_slug:n,...s}),state:o(),errorMessage:c(),retryRequest:()=>{u("__internalGetDomainSuggestions")}}}),[l,n,t])}},1045:function(e,t,n){"use strict";n.d(t,{$:function(){return o}});var r=n(9196);function o(e,t,n){const[o,i]=(0,r.useState)(),a=t&&Array.isArray(e)?[t,...e]:e;(0,r.useEffect)((()=>{const e=null==a?void 0:a.some((e=>e.domain_name===(null==n?void 0:n.domain_name)));null!=a&&a.length&&!e&&i(n)}),[n,a]);if(!(null==a?void 0:a.some((e=>(null==e?void 0:e.domain_name)===(null==o?void 0:o.domain_name)))))return o}},3446:function(e,t,n){"use strict";function r(e){if(e)return{domain_name:e,relevance:1,supports_privacy:!0,vendor:"",cost:"",product_id:0,product_slug:"",raw_price:0,currency_code:"",unavailable:!1}}function o(e){return void 0!==e.normalize&&!!e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(/[a-z0-9-.\s]/i)}function i(e={}){return e.isSignup&&!e.isDomainOnly?"variation4_front":e.isPremium?"variation8_front":"variation2_front"}n.d(t,{nf:function(){return r},Qi:function(){return o},iY:function(){return i}})},3759:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});const r={AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function o(e){return r[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},1621:function(e,t,n){"use strict";n.d(t,{ZP:function(){return i}});var r=n(1481),o=n(3759);function i(e,t,n={}){const i=(0,o.X)(t);if(!i||isNaN(e))return null;const{decimal:a,grouping:s,precision:l,symbol:u}={...i,...n},c=e<0?"-":"";let d=(0,r.Y4)(Math.abs(e),{decimals:l,thousandsSep:s,decPoint:a});return n.stripZeros&&(d=function(e,t){const n=new RegExp(`\\${t}0+$`);return e.replace(n,"")}(d,a)),`${c}${u}${d}`}},914:function(e,t,n){"use strict";var r=n(382),o=n(6668),i=n(8049),a=n.n(i),s=n(5079),l=n.n(s),u=n(7010),c=n(7839),d=n.n(c),f=n(9830),p=n(3);const m=a()("i18n-calypso"),g="number_format_decimals",h="number_format_thousands_sep",y="messages",v=[function(e){return e}],_={};function b(){P.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function E(e){return Array.prototype.slice.call(e)}function S(e){const t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&b("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",E(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&b("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",E(e));let n={};for(let r=0;r<e.length;r++)"object"==typeof e[r]&&(n=e[r]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function A(e,t){return e.dcnpgettext(y,t.context,t.original,t.plural,t.count)}function w(e,t){for(let n=v.length-1;n>=0;n--){const r=v[n](Object.assign({},t)),o=r.context?r.context+""+r.original:r.original;if(e.state.locale[o])return A(e.state.tannin,r)}return null}function P(){if(!(this instanceof P))return new P;this.defaultLocaleSlug="en",this.defaultPluralForms=e=>1===e?0:1,this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:d()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new r.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}P.throwErrors=!1,P.prototype.on=function(...e){this.stateObserver.on(...e)},P.prototype.off=function(...e){this.stateObserver.off(...e)},P.prototype.emit=function(...e){this.stateObserver.emit(...e)},P.prototype.numberFormat=function(e,t={}){const n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",o=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return(0,p.Z)(e,n,r,o)},P.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},P.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){const t=e[""]["key-hash"],n=function(e,t){const n=!1===t?"":String(t);if(void 0!==_[n+e])return _[n+e];const r=l()().update(e).digest("hex");return _[n+e]=t?r.substr(0,t):r},r=function(e){return function(t){return t.context?(t.original=n(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=n(t.original,e),t}};if("sha1"===t.substr(0,4))if(4===t.length)v.push(r(!1));else{const e=t.substr(5).indexOf("-");if(e<0){const e=Number(t.substr(5));v.push(r(e))}else{const n=Number(t.substr(5,e)),o=Number(t.substr(6+e));for(let e=n;e<=o;e++)v.push(r(e))}}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new f.Z({[y]:this.state.locale}),this.state.numberFormatSettings.decimal_point=A(this.state.tannin,S([g])),this.state.numberFormatSettings.thousands_sep=A(this.state.tannin,S([h])),this.state.numberFormatSettings.decimal_point===g&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===h&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},P.prototype.getLocale=function(){return this.state.locale},P.prototype.getLocaleSlug=function(){return this.state.localeSlug},P.prototype.getLocaleVariant=function(){return this.state.localeVariant},P.prototype.isRtl=function(){return"rtl"===this.state.textDirection},P.prototype.addTranslations=function(e){for(const t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},P.prototype.hasTranslation=function(){return!!w(this,S(arguments))},P.prototype.translate=function(){const e=S(arguments);let t=w(this,e);if(t||(t=A(this.state.tannin,e)),e.args){const r=Array.isArray(e.args)?e.args.slice(0):[e.args];r.unshift(t);try{t=(0,o.Z)(...r)}catch(n){if(!window||!window.console)return;const e=this.throwErrors?"error":"warn";"string"!=typeof n?window.console[e](n):window.console[e]("i18n sprintf error:",r)}}return e.components&&(t=(0,u.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},P.prototype.reRenderTranslations=function(){m("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},P.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},P.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},t.Z=P},1481:function(e,t,n){"use strict";n.d(t,{Y4:function(){return l},Iu:function(){return u}});var r=n(914),o=n(3493),i=n(8373),a=n(975);const s=new r.Z;const l=s.numberFormat.bind(s),u=s.translate.bind(s),{useRtl:c,withRtl:d}=(s.configure.bind(s),s.setLocale.bind(s),s.getLocale.bind(s),s.getLocaleSlug.bind(s),s.getLocaleVariant.bind(s),s.isRtl.bind(s),s.addTranslations.bind(s),s.reRenderTranslations.bind(s),s.registerComponentUpdateHook.bind(s),s.registerTranslateHook.bind(s),s.state,s.stateObserver,s.on.bind(s),s.off.bind(s),s.emit.bind(s),(0,o.Z)(s),(0,a.Z)(s),(0,i.Z)(s))},3493:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(6666),o=n(9307),i=n(9196);function a(e){const t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(n){var a,s;const l=n.displayName||n.name||"";return s=a=class extends i.Component{constructor(...e){super(...e),(0,r.Z)(this,"boundForceUpdate",this.forceUpdate.bind(this))}componentDidMount(){e.on("change",this.boundForceUpdate)}componentWillUnmount(){e.off("change",this.boundForceUpdate)}render(){const r={locale:e.getLocaleSlug(),...this.props,...t};return(0,o.createElement)(n,r)}},(0,r.Z)(a,"displayName","Localized("+l+")"),s}}},3:function(e,t,n){"use strict";function r(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");const o=isFinite(+e)?+e:0,i=isFinite(+t)?Math.abs(t):0,a=void 0===r?",":r,s=void 0===n?".":n;let l="";return l=(i?
20
  /*
21
  * Exposes number format capability
22
  *
24
  * @license See CREDITS.md
25
  * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
26
  */
27
+ function(e,t){const n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(o,i):""+Math.round(o)).split("."),l[0].length>3&&(l[0]=l[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(l[1]||"").length<i&&(l[1]=l[1]||"",l[1]+=new Array(i-l[1].length+1).join("0")),l.join(s)}n.d(t,{Z:function(){return r}})},8373:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(7896),o=n(9307),i=n(4333),a=n(9196),s=n(6718);function l(e){const t={getCurrentValue:()=>e.isRtl(),subscribe:t=>(e.on("change",t),()=>e.off("change",t))};function n(){return(0,s.useSubscription)(t)}const l=(0,i.createHigherOrderComponent)((e=>(0,a.forwardRef)(((t,i)=>{const a=n();return(0,o.createElement)(e,(0,r.Z)({},t,{isRtl:a,ref:i}))}))),"WithRTL");return{useRtl:n,withRtl:l}}},975:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9196);function o(e){function t(){const t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}return function(){const[n,o]=(0,r.useState)(t);return(0,r.useEffect)((()=>{const n=()=>o(t);return e.on("change",n),()=>e.off("change",n)}),[]),n}}},849:function(e,t,n){"use strict";n.d(t,{Iw:function(){return u},bU:function(){return d}});var r=n(7896),o=n(9307),i=n(4333),a=n(5736),s=n(9196);const l=(0,s.createContext)(null),u=({children:e,localeSlug:t})=>(0,o.createElement)(l.Provider,{value:t},e);function c(){var e,t;return function(e=""){if(!e)return"";const t=e.toLowerCase();return(["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"].includes(t)?t.replace("_","-"):t.replace(/([-_].*)$/i,""))||"en"}(a.getLocaleData?null===(e=a.getLocaleData())||void 0===e||null===(t=e[""])||void 0===t?void 0:t.language:"")}function d(){const e=(0,s.useContext)(l),t=!!e,[n,r]=(0,s.useState)(c());return(0,s.useEffect)((()=>{if(!t)return r(c()),a.subscribe((()=>{r(c())}))}),[t]),e||n||"en"}(0,i.createHigherOrderComponent)((e=>t=>{const n=d();return(0,o.createElement)(e,(0,r.Z)({locale:n},t))}),"withLocale")},4655:function(e,t,n){"use strict";n.d(t,{GG:function(){return r},iT:function(){return o},xn:function(){return i},Xb:function(){return a},xN:function(){return s},hI:function(){return l},mL:function(){return u},vS:function(){return c},_r:function(){return d}});const r=["en","ja","es","pt","fr","pt-br"],o=["en","fr","de","es"],i=["en","fr","de","es"],a={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},s=["en","en-gb"],l=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],u=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],c=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],d=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},7498:function(e,t,n){"use strict";n.d(t,{Iu:function(){return g}});var r=n(7896),o=n(9307),i=n(4333),a=n(9196),s=n(849),l=n(4655);const u="http://__domain__.invalid",c=(e,t=[])=>(n,r)=>(t.includes(r)&&"en"!==r&&n.pathname.substr(0,r.length+2)!=="/"+r+"/"&&(n.host=`${l.Xb[r]||r}.${e}`),n),d=(e,t=[],n=null)=>(r,o)=>(r.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(r.pathname)&&(t=[]),r.pathname=e+r.pathname,t.includes(o)&&"en"!==o&&(r.pathname=o+r.pathname),r),f=(e=[],t=null)=>(n,r)=>("object"==typeof t&&t instanceof RegExp&&!t.test(n.pathname)||e.includes(r)&&"en"!==r&&(n.pathname=r+n.pathname),n),p={"wordpress.com/support/":f(l.hI),"wordpress.com/forums/":f(l.mL),"wordpress.com/blog/":f(l.GG,/^\/blog\/?$/),"wordpress.com/tos/":f(l.vS),"wordpress.com/wp-admin/":c("wordpress.com",l.vS),"wordpress.com/wp-login.php":c("wordpress.com",l.vS),"jetpack.com":c("jetpack.com",l._r),"en.support.wordpress.com":d("/support",l.hI),"en.blog.wordpress.com":d("/blog",l.GG,/^\/$/),"en.forums.wordpress.com":d("/forums",l.mL),"automattic.com/privacy/":f(l.iT),"automattic.com/cookies/":f(l.xn),"wordpress.com/help/contact/":(e,t,n)=>n?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),f(l.hI)(e,t)),"wordpress.com":(e,t)=>/^\/(checkout|me)(\/|$)/.test(e.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(e.pathname)?e:f(l.vS)(e,t),"wordpress.com/theme/":(e,t,n)=>n?e:f(l.vS)(e,t),"wordpress.com/themes/":(e,t,n)=>n?e:f(l.vS)(e,t)};function m(e,t,n=!0){let r;try{r=new URL(String(e),u)}catch(a){return e}if(r.origin===u)return e;r.protocol="https:",r.hostname="",r.pathname.endsWith(".php")||(r.pathname=(r.pathname+"/").replace(/\/+$/,"/"));const o=r.pathname.substr(0,1+r.pathname.indexOf("/",1));if("en.wordpress.com"===r.host&&(r.host="wordpress.com"),"/"+t+"/"===o)return e;const i=[r.host,r.host+o,r.host+r.pathname];for(let s=i.length-1;s>=0;s--)if(i[s]in p)return p[i[s]](r,t,n).href;return e}function g(){const e=(0,s.bU)();return(0,a.useCallback)(((t,n,r)=>m(t,n||e,r)),[e])}(0,i.createHigherOrderComponent)((e=>t=>{const n=g();return(0,o.createElement)(e,(0,r.Z)({localizeUrl:n},t))}),"withLocalizeUrl")},7469:function(e,t,n){"use strict";n.d(t,{s:function(){return r}});const r="focused-launch"},6357:function(e,t,n){"use strict";var r=n(6483),o=n(9196);const i=e=>{window.location.href=e},a=(0,o.createContext)({siteId:0,redirectTo:i,getCurrentLaunchFlowUrl:()=>window.location.href,openCheckout:(e,t)=>{i((0,r.addQueryArgs)(`/checkout/${e}`,{...!t&&{redirect_to:`/home/${e}`}}))},flow:"launch",isInIframe:!1});t.Z=a},1918:function(e,t,n){"use strict";var r=n(9307),o=n(6115),i=n(2999),a=n(3446),s=n(6461),l=n(849),u=n(5915),c=n(6656),d=n(9196),f=n(7267),p=n(7469),m=n(6357),g=n(5144),h=n(6956),y=n(780),v=n(1319);n(4695);const _="domain_step";t.Z=()=>{const{getCurrentLaunchFlowUrl:e,redirectTo:t}=d.useContext(m.Z),{__:__,hasTranslation:n}=(0,c.useI18n)(),b=(0,l.bU)(),{siteSubdomain:E}=(0,g.j)(),{domainSearch:S,setDomainSearch:A}=(0,h.f)(),{onDomainSelect:w,onExistingSubdomainSelect:P,currentDomain:C}=(0,y.my)(),x=(0,f.k6)(),N=()=>{x.goBack()},I=e(),O=__("Free for the first year with any paid plan.","full-site-editing"),M=__("Free for the first year with any annual plan.","full-site-editing"),L="en"===b||null!=n&&n("Free for the first year with any annual plan.")?M:O;return(0,r.createElement)("div",{className:"focused-launch-container"},(0,r.createElement)("div",{className:"focused-launch-details__back-button-wrapper"},(0,r.createElement)(v.Z,{onClick:N})),(0,r.createElement)("div",{className:"focused-launch-details__header"},(0,r.createElement)(u.b,null,__("Choose a domain","full-site-editing")),(0,r.createElement)(u.D,null,L)),(0,r.createElement)("div",{className:"focused-launch-details__body"},(0,r.createElement)(i.ZP,{initialDomainSearch:S,onSetDomainSearch:A,onDomainSearchBlur:e=>{(0,o.jN)("calypso_newsite_domain_search_blur",{flow:p.s,query:e,where:_})},currentDomain:C,existingSubdomain:(0,a.nf)(null==E?void 0:E.domain),onDomainSelect:e=>{w(e),N()},onExistingSubdomainSelect:()=>{P(),N()},analyticsFlowId:p.s,analyticsUiAlgo:_,segregateFreeAndPaid:!0,locale:b,itemType:s.ln,onUseYourDomainClick:()=>{const e=`/start/launch-site/domains-launch/use-your-domain?siteSlug=${null==E?void 0:E.domain}&source=${I}`;t(e)}})))}},1319:function(e,t,n){"use strict";var r=n(7896),o=n(9307),i=n(9211),a=n(5736),s=n(5869),l=n(1100),u=n(2779),c=n.n(u);n(9196),n(4882);const __=a.__;t.Z=({className:e,...t})=>(0,o.createElement)(i.xE,(0,r.Z)({},t,{className:c()("go-back-button__focused-launch",e)}),(0,o.createElement)(s.Z,{icon:l.Z}),__("Go back","full-site-editing"))},1342:function(e,t,n){"use strict";var r=n(9307),o=n(737),i=n(9818),a=n(9196),s=n(7267),l=n(3073),u=n(780),c=n(6698),d=n(1120),f=n(1918),p=n(1796),m=n(6321),g=n(4195),h=n(4181);n(6604);t.Z=()=>{const{hasPaidPlan:e,isSiteLaunched:t,isSiteLaunching:n}=(0,l.W)(),[y,v]=(0,i.useSelect)((e=>{const{planProductId:t}=e(d.sC).getState();return[e(d.sC).hasSelectedDomainOrSubdomain(),t]})),_=(0,u.cU)(),{setDomain:b}=(0,i.useDispatch)(d.sC);a.useEffect((()=>{!y&&_&&b(_)}),[y,_,b]);const E=(0,c.eM)(),{setPlanProductId:S}=(0,i.useDispatch)(d.sC),A=a.useRef(!0);a.useEffect((()=>{v&&(A.current=!1)}),[v]),a.useEffect((()=>{!v&&E&&!e&&A.current&&S(E)}),[v,E,S,e,A]);const{unsetPlanProductId:w}=(0,i.useDispatch)(d.sC);return a.useEffect((()=>{e&&w()}),[e,w]),(0,r.createElement)(s.VA,null,(0,r.createElement)(o.Z,{selector:".components-modal__content"}),(t||n)&&(0,r.createElement)(s.l_,{to:m.A.Success}),(0,r.createElement)(s.rs,null,(0,r.createElement)(s.AW,{path:m.A.DomainDetails},(0,r.createElement)(f.Z,null)),(0,r.createElement)(s.AW,{path:m.A.PlanDetails},(0,r.createElement)(p.Z,null)),(0,r.createElement)(s.AW,{path:m.A.Success},(0,r.createElement)(g.Z,null)),(0,r.createElement)(s.AW,{path:m.A.Summary},(0,r.createElement)(h.Z,null))))}},1796:function(e,t,n){"use strict";var r=n(9307),o=n(849),i=n(5915),a=n(5315),s=n(9818),l=n(5736),u=(n(9196),n(7267)),c=n(1120),d=n(1319);n(2772);const __=l.__;t.Z=()=>{const e=(0,o.bU)(),t=(0,s.useSelect)((e=>e(c.sC).getSelectedDomain())),n=(0,s.useSelect)((e=>e(c.sC).getSelectedPlanProductId())),f=(0,u.k6)(),{updatePlan:p}=(0,s.useDispatch)(c.sC),m=t&&!t.is_free,g=()=>{f.goBack()};return(0,r.createElement)("div",{className:"focused-launch-container focused-launch-container--wide"},(0,r.createElement)("div",{className:"focused-launch-details__back-button-wrapper"},(0,r.createElement)(d.Z,{onClick:g})),(0,r.createElement)("div",{className:"focused-launch-details__header"},(0,r.createElement)(i.b,{tagName:"h2"},__("Select a plan","full-site-editing")),(0,r.createElement)(i.D,{tagName:"h3"},(0,l.sprintf)(__("There's no risk, you can cancel for a full refund within %1$d days.","full-site-editing"),14))),(0,r.createElement)("div",{className:"focused-launch-details__body"},(0,r.createElement)(a.Z,{currentDomain:t,onPlanSelect:e=>{p(e),g()},currentPlanProductId:n,onPickDomainClick:g,customTagLines:{free:__("Best for getting started","full-site-editing"),business:__("Best for small businesses","full-site-editing")},showPlanTaglines:!0,popularBadgeVariation:"NEXT_TO_NAME",disabledPlans:m?{free:__("Unavailable with domain","full-site-editing")}:void 0,CTAVariation:"FULL_WIDTH",locale:e,hidePlansComparison:!0,defaultAllPlansExpanded:!0})))}},6321:function(e,t,n){"use strict";let r;n.d(t,{A:function(){return r}}),function(e){e.Summary="/",e.PlanDetails="/plan-details",e.DomainDetails="/domain-details",e.Success="/success"}(r||(r={}))},2929:function(e,t,n){"use strict";var r=n(9307),o=n(5609);n(9196);t.Z=({className:e})=>(0,r.createElement)(o.SVG,{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 356 136",role:"presentation",className:e},(0,r.createElement)(o.Rect,{x:"314.913",y:"59.963",width:"7",height:"22",rx:"3.5",transform:"rotate(-50 314.913 59.963)",fill:"#984A9C"}),(0,r.createElement)(o.Rect,{y:"121.876",width:"5.091",height:"16",rx:"2.545",transform:"rotate(-50 0 121.876)",fill:"#64CA43"}),(0,r.createElement)(o.Rect,{x:"21.447",y:"85.104",width:"7",height:"22",rx:"3.5",transform:"rotate(-120 21.447 85.104)",fill:"#37E788"}),(0,r.createElement)(o.Rect,{x:"75",y:"61.64",width:"4",height:"12.571",rx:"2",transform:"rotate(130 75 61.64)",fill:"#FF2D55"}),(0,r.createElement)(o.Rect,{x:"247.461",y:"63.86",width:"4.773",height:"15",rx:"2.386",transform:"rotate(118 247.461 63.86)",fill:"#E7C037"}),(0,r.createElement)(o.Rect,{x:"97",y:"2.529",width:"4.773",height:"15",rx:"2.386",transform:"rotate(-32 97 2.53)",fill:"#117AC9"}),(0,r.createElement)(o.Rect,{x:"323.638",y:"110.513",width:"5.091",height:"16",rx:"2.545",transform:"rotate(40 323.638 110.513)",fill:"#3361CC"}),(0,r.createElement)(o.Rect,{x:"160.138",y:"27",width:"7",height:"22",rx:"3.5",transform:"rotate(40 160.138 27)",fill:"#FF8085"}),(0,r.createElement)(o.Circle,{cx:"40.5",cy:"101.095",r:"4.5",fill:"#F0B849"}),(0,r.createElement)(o.Circle,{cx:"20.928",cy:"47.751",r:"3",fill:"#BF5AF2"}),(0,r.createElement)(o.Circle,{cx:"341",cy:"134",r:"2",fill:"#F0C930"}),(0,r.createElement)(o.Circle,{cx:"131",cy:"83",r:"2",fill:"#3361CC"}),(0,r.createElement)(o.Circle,{cx:"214.5",cy:"13.5",r:"2.5",fill:"#37E688"}),(0,r.createElement)(o.Circle,{cx:"352.763",cy:"98.263",r:"3",fill:"#009E73"}),(0,r.createElement)(o.Circle,{cx:"285.181",cy:"60.541",r:"3",fill:"#FF3B30"}))},4195:function(e,t,n){"use strict";var r=n(9307),o=n(5915),i=n(9211),a=n(5609),s=n(9818),l=n(5736),u=n(5869),c=n(2042),d=n(9196),f=n(6357),p=n(5144),m=n(6134),g=n(1120),h=n(2929);n(8060);const __=l.__;t.Z=()=>{const{redirectTo:e,siteId:t,getCurrentLaunchFlowUrl:n,isInIframe:l}=d.useContext(f.Z),y=(0,s.useSelect)((e=>e(g.j4).isSiteLaunching(t)),[]),[v,_]=(0,s.useSelect)((e=>{const t=e(g.sC);return[t.isSelectedPlanPaid(),t.getSelectedDomain()]}),[]),[b,E]=d.useState(!1),{savePost:S}=(0,s.useDispatch)("core/editor");d.useEffect((()=>{(async()=>{b||(await S(),E(!0))})()}),[b,S]);const{unsetModalDismissible:A,hideModalTitle:w,closeFocusedLaunch:P}=(0,s.useDispatch)(g.sC),{siteSubdomain:C,sitePrimaryDomain:x}=(0,p.j)(),[N,I]=d.useState(""),[O,M]=d.useState(!1),L=(0,m.O)(),F=!_&&!v||!L&&l;d.useEffect((()=>{I(`https://${null==x?void 0:x.domain}`)}),[x]),d.useEffect((()=>{A(),w()}),[A,w]);const T=__("Your site will be live shortly.","full-site-editing"),$=__("Congratulations, your website is now live. We're excited to watch you grow with WordPress.","full-site-editing"),D=__("Copy Link","full-site-editing"),R=__("Copied!","full-site-editing"),k=!y&&b;return(0,r.createElement)("div",{className:"focused-launch-container focused-launch-success__wrapper"},(0,r.createElement)(h.Z,{className:"focused-launch-success__confetti"}),(0,r.createElement)(o.b,{tagName:"h2"},__("Hooray!","full-site-editing")),(0,r.createElement)(o.D,{tagName:"h3"},k?$:T),F&&k&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"focused-launch-success__url-wrapper"},(0,r.createElement)("span",{className:"focused-launch-success__url-field"},N),(0,r.createElement)("a",{href:N,target:"_blank",rel:"noopener noreferrer",className:"focused-launch-success__url-link","aria-label":__("Visit site","full-site-editing")},(0,r.createElement)(u.Z,{icon:c.Z,size:16})),(0,r.createElement)(a.ClipboardButton,{text:N,onCopy:()=>M(!0),onFinishCopy:()=>M(!1),className:"focused-launch-success__url-copy-button"},O?R:D)),(0,r.createElement)(i.aW,{onClick:()=>{if(v){var t;const r=null===(t=new URL(n()||""))||void 0===t?void 0:t.pathname;e(r||`/page/${null==C?void 0:C.domain}/home`)}else P()},className:"focused-launch-success__continue-editing-button"},__("Continue Editing","full-site-editing")),(0,r.createElement)(i.xE,{onClick:()=>{e(`/home/${null==C?void 0:C.domain}`)}},__("Back home","full-site-editing"))))}},4245:function(e,t,n){"use strict";n.d(t,{gw:function(){return s},Pw:function(){return l}});var r=n(7896),o=n(9307),i=n(2779),a=n.n(i);n(9196),n(6385);const s=({label:e,badgeText:t})=>(0,o.createElement)("div",{className:"focused-launch-summary-item__leading-side"},(0,o.createElement)("span",{className:"focused-launch-summary-item__leading-side-label"},e),t?(0,o.createElement)("span",{className:"focused-launch-summary-item__leading-side-badge"},t):null),l=({nodeType:e,children:t})=>(0,o.createElement)("div",{className:a()({"focused-launch-summary-item__warning-note":"WARNING"===e,"focused-launch-summary-item__price-cost":"PRICE"===e})},t);t.ZP=({children:e,isSelected:t=!1,readOnly:n=!1,isLoading:i,...s})=>(0,o.createElement)("button",(0,r.Z)({},s,{disabled:n,className:a()("focused-launch-summary__item",{"is-selected":t,"is-readonly":n,"is-loading":i})}),null==e?void 0:e[0],null==e?void 0:e[1])},4181:function(e,t,n){"use strict";var r=n(9307),o=n(2999),i=n(6461),a=n(3446),s=n(849),l=n(7498),u=n(5915),c=n(9211),d=n(5609),f=n(9818),p=n(5736),m=n(5869),g=n(9806),h=n(2779),y=n.n(h),v=n(9196),_=n(7933),b=n(7469),E=n(6357),S=n(6698),A=n(3073),w=n(4557),P=n(5144),C=n(780),x=n(6956),N=n(8039),I=n(1120),O=n(6321),M=n(4245);n(141);const __=p.__,L=(0,r.createElement)(d.SVG,{viewBox:"0 0 24 24"},(0,r.createElement)(d.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})),F=(0,r.createElement)(d.SVG,{className:"focused-launch-summary__info-icon",viewBox:"0 0 24 24",width:"16"},(0,r.createElement)(d.Circle,{cx:"12",cy:"12",stroke:"#8C8F94",strokeWidth:"2",r:"10",fill:"transparent"}),(0,r.createElement)(d.Rect,{x:"10.5",y:"5",width:"3",height:"3",fill:"#8C8F94"}),(0,r.createElement)(d.Rect,{x:"10.5",y:"10",width:"3",height:"8",fill:"#8C8F94"})),T=({input:e,commentary:t,highlighted:n})=>(0,r.createElement)("div",{className:y()("focused-launch-summary__step",{highlighted:n})},(0,r.createElement)("div",{className:"focused-launch-summary__data-input"},(0,r.createElement)("div",{className:"focused-launch-summary__section"},e)),(0,r.createElement)("div",{className:"focused-launch-summary__side-commentary"},t)),$=({stepIndex:e,value:t,onChange:n,onBlur:o})=>(0,r.createElement)(T,{highlighted:!0,input:(0,r.createElement)(d.TextControl,{className:"focused-launch-summary__input",label:(0,r.createElement)("label",{className:"focused-launch-summary__label"},e&&`${e}. `,__("Name your site","full-site-editing")),value:t,onChange:n,onBlur:o})}),D=({stepIndex:e,existingSubdomain:t,currentDomain:n,initialDomainSearch:a,hasPaidDomain:l,onDomainSelect:u,onExistingSubdomainSelect:c,isLoading:f,highlighted:p})=>{const h=(0,s.bU)();return(0,r.createElement)(T,{highlighted:!!p,input:l?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("label",{className:"focused-launch-summary__label"},__("Your domain","full-site-editing"),(0,r.createElement)(d.Tooltip,{position:"top center",text:__("Changes to your purchased domain can be managed from your Domains page.","full-site-editing")},(0,r.createElement)("span",null,F)),(0,r.createElement)("p",{className:"focused-launch-summary__mobile-commentary"},(0,r.createElement)(m.Z,{icon:L}),(0,r.createElement)("span",null,(0,r.createInterpolateElement)(__("<strong>Unique domains</strong> help build brand trust","full-site-editing"),{strong:(0,r.createElement)("strong",null)})))),(0,r.createElement)(M.ZP,{readOnly:!0},(0,r.createElement)(M.gw,{label:(null==n?void 0:n.domain_name)||""}),(0,r.createElement)(M.Pw,{nodeType:"PRICE"},(0,r.createElement)(m.Z,{icon:g.Z,size:18})," ",__("Purchased","full-site-editing")))):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.ZP,{header:(0,r.createElement)(r.Fragment,null,(0,r.createElement)("label",{className:"focused-launch-summary__label"},e&&`${e}. `,__("Confirm your domain","full-site-editing")),(0,r.createElement)("p",{className:"focused-launch-summary__mobile-commentary"},(0,r.createElement)(m.Z,{icon:L}),(0,r.createElement)("span",null,(0,r.createInterpolateElement)(__("<strong>46.9%</strong> of registered domains are <strong>.com</strong>","full-site-editing"),{strong:(0,r.createElement)("strong",null)})))),areDependenciesLoading:f,existingSubdomain:t,currentDomain:n,onDomainSelect:u,onExistingSubdomainSelect:c,initialDomainSearch:a,showSearchField:!1,analyticsFlowId:b.s,analyticsUiAlgo:"summary_domain_step",quantity:3,quantityExpanded:3,itemType:i.vv,locale:h,orderSubDomainsLast:!0}),(0,r.createElement)(_.rU,{to:O.A.DomainDetails,className:"focused-launch-summary__details-link"},__("View all domains","full-site-editing"))),commentary:(0,r.createElement)(r.Fragment,null,l?(0,r.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},(0,r.createInterpolateElement)(__("<strong>Unique domains</strong> help build brand recognition and trust","full-site-editing"),{strong:(0,r.createElement)("strong",null)})):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},(0,r.createInterpolateElement)(__("<strong>46.9%</strong> of globally registered domains are <strong>.com</strong>","full-site-editing"),{strong:(0,r.createElement)("strong",null)})),(0,r.createElement)("ul",{className:"focused-launch-summary__side-commentary-list"},(0,r.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,r.createElement)(m.Z,{icon:g.Z}),__("Stand out with a unique domain","full-site-editing")),(0,r.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,r.createElement)(m.Z,{icon:g.Z}),__("Easy to remember and easy to share","full-site-editing")),(0,r.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,r.createElement)(m.Z,{icon:g.Z}),__("Builds brand recognition and trust","full-site-editing")))))})},R=({stepIndex:e,highlighted:t,hasPaidPlan:n=!1,hasPaidDomain:o=!1,selectedPaidDomain:i=!1})=>{const a=(0,s.bU)(),{setPlanProductId:l}=(0,f.useDispatch)(I.sC),[u,c]=(0,f.useSelect)((e=>[e(I.sC).getSelectedPlanProductId(),e(I.sC).getLastPlanBillingPeriod()])),{selectedPlan:h,selectedPlanProduct:y}=(0,f.useSelect)((e=>{const t=e(I.Fs);return{selectedPlan:t.getPlanByProductId(u,a),selectedPlanProduct:t.getPlanProductById(u)}})),[b,E]=v.useState(),[w,P]=v.useState(),{defaultPaidPlan:C,defaultFreePlan:x,defaultPaidPlanProduct:N,defaultFreePlanProduct:$}=(0,S.xn)(c);v.useEffect((()=>{h&&C&&!h.isFree&&h.periodAgnosticSlug!==C.periodAgnosticSlug&&(E(h),P(y))}),[h,C,b,y]);const D=e=>e&&e.periodAgnosticSlug===(null==h?void 0:h.periodAgnosticSlug),{sitePlan:R}=(0,A.W)(),k=b?[C,b,x]:[C,x],Z=w?[N,w,$]:[N,$],j=__("Popular","full-site-editing"),U=__("Free","full-site-editing"),B=__("Not available with your domain selection","full-site-editing");return(0,r.createElement)(T,{highlighted:!!t,input:n?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("label",{className:"focused-launch-summary__label"},__("Your plan","full-site-editing"),(0,r.createElement)(d.Tooltip,{position:"top center",text:__("Changes to your purchased plan can be managed from your Plans page.","full-site-editing")},(0,r.createElement)("span",null,F)),(0,r.createElement)("p",{className:"focused-launch-summary__mobile-commentary focused-launch-summary__mobile-only"},(0,r.createElement)(m.Z,{icon:L}),(0,r.createElement)("span",null,(0,r.createInterpolateElement)(__("More than <strong>38%</strong> of the internet uses <strong>WordPress</strong>","full-site-editing"),{strong:(0,r.createElement)("strong",null)})))),(0,r.createElement)("div",null,(0,r.createElement)(M.ZP,{readOnly:!0},(0,r.createElement)(M.gw,{label:(0,p.sprintf)(__("%s Plan","full-site-editing"),null==R?void 0:R.product_name_short)}),(0,r.createElement)(M.Pw,{nodeType:"PRICE"},(0,r.createElement)(m.Z,{icon:g.Z,size:18})," ",__("Purchased","full-site-editing"))))):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("label",{className:"focused-launch-summary__label"},e&&`${e}. `,__("Confirm your plan","full-site-editing")),(0,r.createElement)("p",{className:"focused-launch-summary__mobile-commentary focused-launch-summary__mobile-only"},(0,r.createElement)(m.Z,{icon:L}),(0,r.createElement)("span",null,(0,r.createInterpolateElement)(__("Grow your business with <strong>WordPress Business</strong>","full-site-editing"),{strong:(0,r.createElement)("strong",null)}))),(0,r.createElement)("div",null,k.map(((e,t)=>{var n;const a=Z[t];return e&&a&&e.periodAgnosticSlug===(null==a?void 0:a.periodAgnosticSlug)?(0,r.createElement)(M.ZP,{key:e.periodAgnosticSlug,isLoading:!x||!C,onClick:()=>{var e;return l(null===(e=Z[t])||void 0===e?void 0:e.productId)},isSelected:D(e),readOnly:e.isFree&&(o||i)},(0,r.createElement)(M.gw,{label:(0,p.sprintf)(__("%s Plan","full-site-editing"),e.title??""),badgeText:e.isPopular?j:""}),e.isFree?(0,r.createElement)(M.Pw,{nodeType:o||i?"WARNING":"PRICE"},o||i?B:U):(0,r.createElement)(M.Pw,{nodeType:"PRICE"},(0,r.createElement)("span",null,null===(n=Z[t])||void 0===n?void 0:n.price),(0,r.createElement)("span",null,__("/mo","full-site-editing")))):(0,r.createElement)(M.ZP,{key:t,isLoading:!0})}))),(0,r.createElement)(_.rU,{to:O.A.PlanDetails,className:"focused-launch-summary__details-link"},__("View all plans","full-site-editing"))),commentary:n?(0,r.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},(0,r.createInterpolateElement)(__("More than <strong>38%</strong> of the internet uses <strong>WordPress</strong>","full-site-editing"),{strong:(0,r.createElement)("strong",null)})):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},(0,r.createInterpolateElement)(__("Monetize your site with <strong>WordPress Premium</strong>","full-site-editing"),{strong:(0,r.createElement)("strong",null)})),(0,r.createElement)("ul",{className:"focused-launch-summary__side-commentary-list"},(0,r.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,r.createElement)(m.Z,{icon:g.Z}),__("Advanced tools and customization","full-site-editing")),(0,r.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,r.createElement)(m.Z,{icon:g.Z}),__("Accept payments","full-site-editing"))))})};t.Z=()=>{const{siteId:e}=v.useContext(E.Z),[t,n,o,i]=(0,f.useSelect)((e=>{const t=e(I.sC),{isSiteTitleStepVisible:n,domain:r,planProductId:o}=t.getState();return[t.hasSelectedDomainOrSubdomain(),n,r,o]}),[]),p=(0,f.useSelect)((e=>e(I.sC).isSelectedPlanPaid()),[]),{launchSite:m}=(0,f.useDispatch)(I.j4),{setModalDismissible:g,unsetModalDismissible:h,showModalTitle:_,showSiteTitleStep:b}=(0,f.useDispatch)(I.sC),{title:S,isValidTitle:O,isDefaultTitle:M,updateTitle:L}=(0,w.Z)(),{siteSubdomain:F,hasPaidDomain:T}=(0,P.j)(),{onDomainSelect:k,onExistingSubdomainSelect:Z,currentDomain:j}=(0,C.my)(),{domainSearch:U,isLoading:B}=(0,x.f)(),{hasPaidPlan:G}=(0,A.W)(),V=(0,s.bU)(),H=(0,l.Iu)(),{goToCheckoutAndLaunch:W,isCartUpdating:z}=(0,N.j)();v.useEffect((()=>{z?h():g(),_()}),[z,g,_,h]),v.useEffect((()=>{!n&&M&&b()}),[M,b,n,S]);const Y=!!i||!!t||O,K=!!t||!!i,q=[],J=[];n&&J.push((({stepIndex:e,forwardStepIndex:t})=>(0,r.createElement)($,{stepIndex:t?e:void 0,key:e,value:S||"",onChange:L}))),(T?q:J).push((({stepIndex:e,forwardStepIndex:t})=>(0,r.createElement)(D,{highlighted:Y,stepIndex:t?e:void 0,key:e,existingSubdomain:(0,a.nf)(null==F?void 0:F.domain),currentDomain:j,initialDomainSearch:U,hasPaidDomain:T,isLoading:B,onDomainSelect:k,onExistingSubdomainSelect:Z}))),(G?q:J).push((({stepIndex:e,forwardStepIndex:t})=>(0,r.createElement)(R,{highlighted:K,hasPaidPlan:G,selectedPaidDomain:o&&!o.is_free,hasPaidDomain:T,stepIndex:t?e:void 0,key:e})));const X=S&&(T||t)&&(G||i),Q=__("You're ready to launch","full-site-editing"),ee=__("You're almost there","full-site-editing"),te=__("You're good to go! Launch your site and share your site address.","full-site-editing"),ne=__("Prepare for launch! Confirm a few final things before you take it live.","full-site-editing");return(0,r.createElement)("div",{className:"focused-launch-container"},(0,r.createElement)("div",{className:"focused-launch-summary__section"},(0,r.createElement)(u.b,{tagName:"h2"},T&&G?Q:ee),(0,r.createElement)(u.D,{tagName:"p",className:"focused-launch-summary__caption"},T&&G?te:ne)),q.map(((e,t)=>e({stepIndex:t+1,forwardStepIndex:!1}))),J.map(((e,t)=>e({stepIndex:t+1,forwardStepIndex:J.length>1}))),(0,r.createElement)("div",{className:"focused-launch-summary__actions-wrapper"},(0,r.createElement)(c.ZP,{className:"focused-launch-summary__launch-action-bar"},(0,r.createElement)(c.aW,{className:y()("focused-launch-summary__launch-button",{"focused-launch-summary__launch-button--is-loading":z}),disabled:!X||z,onClick:()=>{o||p?W():m(e)}},__("Launch your site","full-site-editing"))),(0,r.createElement)("div",{className:"focused-launch-summary__ask-for-help"},(0,r.createElement)("p",null,__("Questions? Our experts can assist.","full-site-editing")),(0,r.createElement)(d.Button,{isLink:!0,href:H("https://wordpress.com/help/contact",V),target:"_blank",rel:"noopener noreferrer"},__("Ask a Happiness Engineer","full-site-editing")))))}},8039:function(e,t,n){"use strict";n.d(t,{j:function(){return d}});var r=n(849),o=n(9818),i=n(9196),a=n(6357),s=n(5144),l=n(6134),u=n(1120),c=n(6950);function d(){const{siteId:e,flow:t,openCheckout:n,isInIframe:d}=(0,i.useContext)(a.Z),f=(0,r.bU)(),[p,m]=(0,o.useSelect)((e=>[e(u.sC).getSelectedPlanProductId(),e(u.sC).getSelectedDomain()])),{planProduct:g,isEcommercePlan:h}=(0,o.useSelect)((e=>{const t=e(u.Fs),n=t.getPlanByProductId(p,f);return{planProduct:t.getPlanProductById(p),isEcommercePlan:t.isPlanEcommerce(null==n?void 0:n.periodAgnosticSlug)}}),[p,f]),{siteSubdomain:y}=(0,s.j)(),{getCart:v,setCart:_,launchSite:b}=(0,o.useDispatch)(u.j4),E=()=>b(e),[S,A]=(0,i.useState)(!1),w=(0,l.O)(),P=async()=>{await(async()=>{if(S)return;A(!0);const n=m&&(0,c.K9)(m,t),r=g&&(0,c.An)(g,t),o=await v(e);await _(e,{...o,products:[r,n]}),A(!1)})(),n(null==y?void 0:y.domain,h,E)};return{goToCheckout:P,goToCheckoutAndLaunch:async()=>{d&&!w||await b(e),P()},isCartUpdating:S}}},6956:function(e,t,n){"use strict";n.d(t,{f:function(){return c}});var r=n(3300),o=n(3446),i=n(9818),a=n(1120),s=n(5144),l=n(4557),u=n(3073);function c(){var e;const t=(0,i.useSelect)((e=>e(a.sC).getDomainSearch()),[]),{isDefaultTitle:n,title:c}=(0,l.Z)(),{isLoadingSite:d}=(0,u.W)(),{siteSubdomain:f}=(0,s.j)(),{setDomainSearch:p}=(0,i.useDispatch)(a.sC),m=void 0!==c&&c.length>=r.F9&&!n?c:"",g=(t.trim()||function(e){return(0,o.Qi)(e)?e:""}(m)||(null==f||null===(e=f.domain)||void 0===e?void 0:e.split(".")[0]))??"";return{domainSearch:g,isLoading:d,setDomainSearch:p}}},780:function(e,t,n){"use strict";n.d(t,{cU:function(){return d},my:function(){return f}});var r=n(4211),o=n(3446),i=n(9818),a=n(9196),s=n(6357),l=n(1120),u=n(6950),c=n(5144);function d(){const e=function(){const{siteId:e}=(0,a.useContext)(s.Z),{getCart:t}=(0,i.useDispatch)(l.j4),[n,r]=(0,a.useState)(void 0);return(0,a.useEffect)((()=>{!async function(){var n;const o=null===(n=(await t(e)).products)||void 0===n?void 0:n.find((e=>(0,u.pf)(e)));r(o)}()}),[e,t,r]),n}(),t=null==e?void 0:e.meta,n=(0,i.useSelect)((e=>{if(t)return e(l.GN).isAvailable(t)}),[t]);if(e&&t&&n&&"available"===n.status)return{hsts_required:n.hsts_required,domain_name:t,raw_price:e.cost,currency_code:e.currency,supports_privacy:e.extra.privacy_available,is_free:!1,product_id:e.product_id,product_slug:e.product_slug,cost:r._B(e.cost,e.currency),unavailable:!1}}function f(){const{setDomain:e,unsetDomain:t,unsetPlanProductId:n,confirmDomainSelection:r}=(0,i.useDispatch)(l.sC),{domain:a,planProductId:s,confirmedDomainSelection:u}=(0,i.useSelect)((e=>e(l.sC).getState())),d=(0,i.useSelect)((e=>e(l.Fs).isPlanProductFree(s))),{siteSubdomain:f,hasPaidDomain:p,sitePrimaryDomain:m}=(0,c.j)();let g;return a?g=a:p?g=(0,o.nf)(null==m?void 0:m.domain):u&&(g=(0,o.nf)(null==f?void 0:f.domain)),{onDomainSelect:function(t){r(),e(t),d&&n()},onExistingSubdomainSelect:function(){r(),t()},selectedDomain:a,currentDomain:g}}},6134:function(e,t,n){"use strict";n.d(t,{O:function(){return a}});var r=n(849),o=n(9818),i=n(1120);function a(){const e=(0,r.bU)(),t=(0,o.useSelect)((e=>e(i.sC).getSelectedPlanProductId()),[]);return(0,o.useSelect)((n=>{const r=n(i.Fs),o=r.getPlanByProductId(t,e);return r.isPlanEcommerce(null==o?void 0:o.periodAgnosticSlug)}),[t,e])}},6698:function(e,t,n){"use strict";n.d(t,{xn:function(){return u},eM:function(){return c}});var r=n(849),o=n(9818),i=n(9196),a=n(6357),s=n(1120),l=n(6950);function u(e="ANNUALLY"){const t=(0,r.bU)();return(0,o.useSelect)((n=>{const r=n(s.Fs),o=r.getDefaultFreePlan(t),i=r.getDefaultPaidPlan(t),a=r.getPlanProduct(null==i?void 0:i.periodAgnosticSlug,e);return{defaultFreePlan:o,defaultPaidPlan:i,defaultFreePlanProduct:r.getPlanProduct(null==o?void 0:o.periodAgnosticSlug,e),defaultPaidPlanProduct:a}}),[e,t])}function c(){const e=function(){const{siteId:e}=(0,i.useContext)(a.Z),{getCart:t}=(0,o.useDispatch)(s.j4),[n,r]=(0,i.useState)(void 0);return(0,i.useEffect)((()=>{!async function(){var n;const o=null===(n=(await t(e)).products)||void 0===n?void 0:n.find((e=>(0,l.HM)(e)));r(o)}()}),[e,t,r]),n}();return null==e?void 0:e.product_id}},5144:function(e,t,n){"use strict";n.d(t,{j:function(){return s}});var r=n(9818),o=n(9196),i=n(6357),a=n(1120);function s(){const{siteId:e}=(0,o.useContext)(i.Z),t=(0,r.useSelect)((t=>t(a.j4).getPrimarySiteDomain(e)));return{sitePrimaryDomain:t,siteSubdomain:(0,r.useSelect)((t=>t(a.j4).getSiteSubdomain(e))),hasPaidDomain:t&&!(null!=t&&t.is_subdomain)}}},3073:function(e,t,n){"use strict";n.d(t,{W:function(){return s}});var r=n(9818),o=n(9196),i=n(6357),a=n(1120);function s(){var e,t;const{siteId:n}=(0,o.useContext)(i.Z),[s,l,u,c]=(0,r.useSelect)((e=>{const t=e(a.j4);return[t.getSite(n),t.isSiteLaunched(n),t.isSiteLaunching(n),t.isFetchingSiteDetails()]}),[n]);return{sitePlan:null==s?void 0:s.plan,hasPaidPlan:s&&!(null!==(e=s.plan)&&void 0!==e&&e.is_free),isSiteLaunched:l,isSiteLaunching:u,selectedFeatures:null==s||null===(t=s.options)||void 0===t?void 0:t.selected_features,isLoadingSite:!!c}}},4557:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(849),o=n(4655),i=n(9818),a=n(5736),s=n(9196),l=n(669),u=n(6357),c=n(1120);const __=a.__;function d(){const{siteId:e}=(0,s.useContext)(u.Z),t=(0,r.bU)(),n=(0,i.useSelect)((t=>t(c.j4).getSiteTitle(e)),[e]),a=(0,i.useSelect)((e=>e(c.sC).getSiteTitle()),[]),d=(0,i.useDispatch)(c.sC).setSiteTitle,f=(0,i.useDispatch)(c.j4).saveSiteTitle,[p]=(0,l.Z)(f,1e3),m=void 0===a,g=m?n:a;(0,s.useEffect)((()=>{m||p(e,a)}),[a,p,e,m]);const h=__("Site Title","full-site-editing");let y=void 0!==g&&g===h,v=void 0!==g&&""!==g&&!y;return-1===o.xN.indexOf(t)&&(y=!(null!=a&&a.trim()),v=void 0!==g&&""!==g),{isDefaultTitle:y,isValidTitle:v,title:g,updateTitle:d}}},8152:function(e,t,n){"use strict";var r=n(9307),o=n(849),i=n(5609),a=n(9818),s=n(5736),l=n(5869),u=n(1742),c=n(2779),d=n.n(c),f=n(9196),p=n(7469),m=n(6357),g=n(1342),h=n(4195),y=n(1120);n(3254);const __=s.__;t.Z=({locale:e="en",siteId:t,openCheckout:n,redirectTo:s,getCurrentLaunchFlowUrl:c,isInIframe:v,isLaunchImmediately:_})=>{const{isModalDismissible:b,isModalTitleVisible:E}=(0,a.useSelect)((e=>e(y.sC).getState())),{launchSite:S}=(0,a.useDispatch)(y.j4),{closeFocusedLaunch:A,unsetPlanProductId:w}=(0,a.useDispatch)(y.sC);return f.useEffect((()=>{_&&(w(),S(t))}),[_,w,S,t]),(0,r.createElement)(o.Iw,{localeSlug:e},(0,r.createElement)(i.Modal,{open:!0,className:d()("launch__focused-modal",{"launch__focused-modal--hide-title":!E}),bodyOpenClassName:"has-focused-launch-modal",overlayClassName:d()("launch__focused-modal-overlay",{"launch__focused-modal-overlay--delay-animation-in":_}),onRequestClose:A,title:__("Complete setup","full-site-editing"),icon:(0,r.createElement)(l.Z,{icon:u.Z,size:36}),isDismissible:b,shouldCloseOnEsc:b,shouldCloseOnClickOutside:b},(0,r.createElement)("div",{className:"launch__focused-modal-body"},(0,r.createElement)(m.Z.Provider,{value:{siteId:t,redirectTo:s,openCheckout:n,flow:p.s,getCurrentLaunchFlowUrl:c,isInIframe:v}},_?(0,r.createElement)(h.Z,null):(0,r.createElement)(g.Z,null)))))}},1120:function(e,t,n){"use strict";n.d(t,{j4:function(){return s},Fs:function(){return l},GN:function(){return u},sC:function(){return c}});var r=n(2369),o=n(9734),i=n(8077),a=n(1635);const s=r.z2({client_id:"",client_secret:""}),l=o.register(),u=i.z2(),c=a.z()},6950:function(e,t,n){"use strict";n.d(t,{An:function(){return o},K9:function(){return i},pf:function(){return a},HM:function(){return s}});var r=n(4703);const o=(e,t)=>({product_id:e.productId,product_slug:e.storeSlug,extra:{source:t}}),i=(e,t)=>{if(!e.unavailable&&null!=e&&e.product_id)return{meta:null==e?void 0:e.domain_name,product_id:null==e?void 0:e.product_id,extra:{privacy_available:null==e?void 0:e.supports_privacy,privacy:null==e?void 0:e.supports_privacy,source:t},product_cost_display:e.cost,currency_code:e.currency_code,product_slug:e.product_slug,cost:e.raw_price,currency:e.currency_code}},a=e=>!!e.is_domain_registration,s=e=>r.BV.indexOf(e.product_slug)>-1},3340:function(e,t,n){"use strict";n.d(t,{hg:function(){return s},lZ:function(){return l},_W:function(){return c},Yt:function(){return d}});var r=n(8049);const o=n.n(r)()("lib/load-script/callback-handler"),i=new Map;function a(){return i}function s(e){return a().has(e)}function l(e,t){const n=a();s(e)?(o(`Adding a callback for an existing script from "${e}"`),n.get(e).add(t)):(o(`Adding a callback for a new script from "${e}"`),n.set(e,new Set([t])))}function u(e,t=null){const n=a(),r=n.get(e);if(r){o(`Executing callbacks for "${e}"`+(null===t?" with success":` with error "${t}"`)),r.forEach((e=>{"function"==typeof e&&e(t)})),n.delete(e)}}function c(){const e=this.getAttribute("src");o(`Handling successful request for "${e}"`),u(e),this.onload=null}function d(){const e=this.getAttribute("src");o(`Handling failed request for "${e}"`),u(e,new Error(`Failed to load script "${e}"`)),this.onerror=null}},5606:function(e,t,n){"use strict";n.d(t,{C:function(){return s},k:function(){return l}});var r=n(8049),o=n.n(r),i=n(3340);const a=o()("lib/load-script/dom-operations");function s(e){a(`Creating script element for "${e}"`);const t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=i._W,t.onerror=i.Yt,t}function l(e){a("Attaching element to head"),document.head.appendChild(e)}},4898:function(e,t,n){"use strict";n.d(t,{ve:function(){return s}});var r=n(8049),o=n.n(r),i=n(3340),a=n(5606);o()("package/load-script");function s(e,t){if(!(0,i.hg)(e)&&(0,a.k)((0,a.C)(e)),"function"!=typeof t)return new Promise(((t,n)=>{(0,i.lZ)(e,(e=>{null===e?t():n(e)}))}));(0,i.lZ)(e,t)}},9211:function(e,t,n){"use strict";n.d(t,{xE:function(){return f},aW:function(){return p},b4:function(){return m}});var r=n(7896),o=n(9307),i=n(5609),a=n(5869),s=n(1100),l=n(2481),u=n(6656),c=n(2779),d=n.n(c);n(9196),n(5838);t.ZP=({className:e,children:t,sticky:n=null})=>{let r="";return!0===n&&(r="is-sticky"),!1===n&&(r="no-sticky"),(0,o.createElement)("div",{className:d()("action-buttons",e,r)},t)};const f=({className:e,children:t,...n})=>{const{__:__}=(0,u.useI18n)();return(0,o.createElement)(i.Button,(0,r.Z)({className:d()("action_buttons__button action-buttons__back",e),isLink:!0},n),t||__("Go back","full-site-editing"))},p=({className:e,children:t,...n})=>{const{__:__}=(0,u.useI18n)();return(0,o.createElement)(i.Button,(0,r.Z)({className:d()("action_buttons__button action-buttons__next",e),isPrimary:!0},n),t||__("Continue","full-site-editing"))},m=({className:e,children:t,arrow:n="right",...u})=>(0,o.createElement)(i.Button,(0,r.Z)({className:d()(`action_buttons__button action-buttons__arrow action-buttons__arrow--${n}`,e)},u),"left"===n&&(0,o.createElement)(a.Z,{icon:s.Z}),t,"right"===n&&(0,o.createElement)(a.Z,{icon:l.Z}))},737:function(e,t,n){"use strict";var r=n(9196),o=n(7267);t.Z=({selector:e})=>{const{pathname:t}=(0,o.TH)();return r.useEffect((()=>{var t;e?null===(t=document.querySelector(e))||void 0===t||t.scrollTo(0,0):window.scrollTo(0,0)}),[e,t]),null}},5915:function(e,t,n){"use strict";n.d(t,{b:function(){return a},D:function(){return s}});var r=n(2779),o=n.n(r),i=n(9196);n(6876);const a=({className:e,children:t,tagName:n="h1",...r})=>i.createElement(n,{className:o()("onboarding-title",e),...r},t),s=({className:e,children:t,tagName:n="h2",...r})=>i.createElement(n,{className:o()("onboarding-subtitle",e),...r},t)},1201:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var r=n(9818),o=n(9255);const i=(e,t)=>{const{supportedPlans:n,annualDiscounts:i}=(0,r.useSelect)((n=>{const r=n(o.F).getSupportedPlans(e),i=r.map((e=>n(o.F).getPlanProduct(e.periodAgnosticSlug,t))).map((e=>null==e?void 0:e.annualDiscount)).filter((e=>!!e));return{supportedPlans:r,annualDiscounts:i}}));return{supportedPlans:n,maxAnnualDiscount:i.reduce(((e,t)=>Math.max(e,t)),0)}}},130:function(e,t,n){"use strict";var r=n(9307),o=n(849),i=n(9211),a=n(9818),s=n(5736),l=n(6656),u=n(2779),c=n.n(u),d=(n(9196),n(373)),f=n(9255);n(4893);const p=(0,r.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,r.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}));t.Z=({slug:e,name:t,description:n,features:u,billingPeriod:m,domain:g,badge:h,isFree:y=!1,isOpen:v=!1,isPrimary:_=!1,onSelect:b,onPickDomainClick:E,onToggle:S,disabledLabel:A})=>{const{__:__,hasTranslation:w}=(0,l.useI18n)(),P=(0,o.bU)(),C=(0,a.useSelect)((t=>t(f.F).getPlanProduct(e,m))),x=()=>{!A&&(null==S||S(e,!v))},N=__("billed annually","full-site-editing"),I=__("billed as %s annually","full-site-editing"),O="en"===P||null!=w&&w("billed as %s annually")?(0,s.sprintf)(I,null==C?void 0:C.annualPrice):N,M=__("per month, billed monthly","full-site-editing"),L=__("billed monthly","full-site-editing"),F="en"===P||null!=w&&w("billed monthly")?L:M;return(0,r.createElement)("div",{className:c()("plans-accordion-item",{"is-open":v,"is-primary":_,"has-badge":!!h,"is-disabled":!!A})},h&&(0,r.createElement)("div",{className:"plans-accordion-item__badge"},(0,r.createElement)("span",null,h)),(0,r.createElement)("div",{className:"plans-accordion-item__viewport"},(0,r.createElement)("div",{className:"plans-accordion-item__details"},(0,r.createElement)("div",{tabIndex:0,role:"button",onClick:x,onKeyDown:e=>32===e.keyCode&&x(),className:"plans-accordion-item__header"},(0,r.createElement)("div",{className:"plans-accordion-item__heading"},(0,r.createElement)("div",{className:"plans-accordion-item__name"},t),(0,r.createElement)("div",{className:"plans-accordion-item__description"},n)),(0,r.createElement)("div",{className:"plans-accordion-item__price"},(0,r.createElement)("div",{className:c()("plans-accordion-item__price-amount",{"is-loading":!(null!=C&&C.price)})},(null==C?void 0:C.price)||"  ",(null==C?void 0:C.price)&&(0,r.createElement)("span",null,__("/mo","full-site-editing"))),(0,r.createElement)("div",{className:"plans-accordion-item__price-note"},y&&__("free forever","full-site-editing"),!y&&("ANNUALLY"===m?O:F)),!y&&(0,r.createElement)("div",{className:c()("plans-accordion-item__price-discount",{"plans-accordion-item__price-discount--disabled":"ANNUALLY"!==m})},(0,s.sprintf)(__("Save %(discountRate)s%% by paying annually","full-site-editing"),{discountRate:(null==C?void 0:C.annualDiscount)??0}))),(0,r.createElement)("div",{className:"plans-accordion-item__disabled-label"},A),!v&&(0,r.createElement)("div",{className:"plans-accordion-item__dropdown-chevron"},p)),(0,r.createElement)("div",{className:c()("plans-accordion-item__actions",{"plans-accordion-item__actions--paid-plan-margin":!y}),hidden:!v},(0,r.createElement)(i.aW,{"data-e2e-button":y?"freePlan":"paidPlan",onClick:()=>{b(null==C?void 0:C.productId)}},__("Select","full-site-editing"))),(0,r.createElement)(d.Z,{features:u,billingPeriod:m,domain:g,isFree:y,isOpen:v,onPickDomain:E,multiColumn:!0}))))}},4416:function(e,t,n){"use strict";var r=n(9307),o=n(9211),i=n(2779),a=n.n(i),s=(n(9196),n(7891));n(4893);const l=(0,r.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,r.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}));t.Z=({isOpen:e,isPrimary:t})=>(0,r.createElement)("div",{className:a()("plans-accordion-item",{"is-open":e,"is-primary":t})},(0,r.createElement)("div",{className:"plans-accordion-item__viewport"},(0,r.createElement)("div",{className:"plans-accordion-item__details"},(0,r.createElement)("div",{tabIndex:0,role:"button",className:"plans-accordion-item__header"},(0,r.createElement)("div",{className:"plans-accordion-item__heading"},(0,r.createElement)("div",{className:"plans-accordion-item__name"},(0,r.createElement)("span",{className:"plans-accordion-item__placeholder"},"")),(0,r.createElement)("div",{className:"plans-accordion-item__description"},(0,r.createElement)("span",{className:"plans-accordion-item__placeholder plans-accordion-item__placeholder--wide"},""))),(0,r.createElement)("div",{className:"plans-accordion-item__price"},(0,r.createElement)("div",{className:"plans-accordion-item__price-amount"},(0,r.createElement)("span",{className:"plans-accordion-item__placeholder"},"")),(0,r.createElement)("div",{className:"plans-accordion-item__price-note"},(0,r.createElement)("span",{className:"plans-accordion-item__placeholder plans-accordion-item__placeholder--wide"},""))),(0,r.createElement)("div",{className:"plans-accordion-item__disabled-label"},""),!e&&(0,r.createElement)("div",{className:"plans-accordion-item__dropdown-chevron"},l)),(0,r.createElement)("div",{className:"plans-accordion-item__actions",hidden:!e},(0,r.createElement)(o.aW,{disabled:!0},(0,r.createElement)("span",null,""))),(0,r.createElement)(s.Z,{isOpen:e,multiColumn:!0}))))},222:function(e,t,n){"use strict";var r=n(9307),o=n(5609),i=n(9818),a=n(5869),s=n(6656),l=n(9196),u=n(1201),c=n(130),d=n(4416),f=n(9255);n(3796);const p=(0,r.createElement)(o.SVG,{viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"}));t.Z=({selectedFeatures:e=[],selectedPlanProductId:t,onPlanSelect:n,onPickDomainClick:m,currentDomain:g,disabledPlans:h,locale:y,billingPeriod:v})=>{var _;const{__:__}=(0,s.useI18n)(),{supportedPlans:b}=(0,u.N)(y,v),E=!(null!=b&&b.length),{popularPlan:S,getPlanProduct:A}=(0,i.useSelect)((e=>{const t=e(f.F);return{popularPlan:t.getDefaultPaidPlan(y),getPlanProduct:t.getPlanProduct}})),w=(0,i.useSelect)((t=>t(f.J).getRecommendedPlanSlug(e))),P=(0,i.useSelect)((e=>e(f.F).getPlanByPeriodAgnosticSlug(w,y))),C=P||S,x=__("Recommended for you","full-site-editing"),N=__("Popular","full-site-editing"),I=b.filter((e=>e.periodAgnosticSlug!==(null==C?void 0:C.periodAgnosticSlug))),O=[null==C?void 0:C.periodAgnosticSlug],[M,L]=(0,l.useState)(O),F=!E&&M.length>=b.length,T=(e,t)=>{L(t?[...M,e]:M.filter((t=>t!==e)))},$=__("Collapse all plans","full-site-editing"),D=__("Show all plans","full-site-editing");return(0,r.createElement)("div",{className:"plans-accordion"},(0,r.createElement)("div",{className:"plans-accordion__plan-item-group"},E?(0,r.createElement)(d.Z,{isOpen:!0,isPrimary:!0}):C&&(0,r.createElement)(r.Fragment,null,P&&(0,r.createElement)("div",{className:"plans-accordion__recommend-hint"},(0,r.createElement)(a.Z,{icon:p,size:16}),(0,r.createElement)("span",null,__("Based on the features you selected.","full-site-editing"))),(0,r.createElement)(c.Z,{key:C.periodAgnosticSlug,slug:C.periodAgnosticSlug,name:null==C?void 0:C.title.toString(),description:null==C?void 0:C.description.toString(),features:C.features??[],billingPeriod:v,domain:g,badge:P?x:N,isFree:C.isFree,isOpen:!0,isPrimary:!0,isSelected:!!t&&t===(null===(_=A(C.periodAgnosticSlug,v))||void 0===_?void 0:_.productId),onSelect:n,onPickDomainClick:m}))),(0,r.createElement)("div",{className:"plans-accordion__actions"},(0,r.createElement)(o.Button,{className:"plans-accordion__toggle-all-button",onClick:()=>{L(F?O:b.map((e=>e.periodAgnosticSlug)))},isLink:!0},F?$:D)),(0,r.createElement)("div",{className:"plans-accordion__plan-item-group"},E?[1,2,3,4].map((e=>(0,r.createElement)(d.Z,{key:e}))):I.map((e=>{var o;return(0,r.createElement)(c.Z,{key:e.periodAgnosticSlug,slug:e.periodAgnosticSlug,name:null==e?void 0:e.title.toString(),description:null==e?void 0:e.description.toString(),features:e.features??[],billingPeriod:v,domain:g,isFree:e.isFree,isOpen:M.indexOf(e.periodAgnosticSlug)>-1&&!(null!=h&&h[e.periodAgnosticSlug]),isSelected:!!t&&t===(null===(o=A(e.periodAgnosticSlug,v))||void 0===o?void 0:o.productId),onSelect:n,onPickDomainClick:m,onToggle:T,disabledLabel:null==h?void 0:h[e.periodAgnosticSlug]})}))))}},4564:function(e,t,n){"use strict";var r=n(9307),o=n(5609),i=n(9818),a=n(5869),s=n(9806),l=n(8565),u=n(6656),c=n(2779),d=n.n(c),f=(n(9196),n(9255));n(4531);const p=(0,r.createElement)(a.Z,{icon:s.Z,size:25}),m=(0,r.createElement)(a.Z,{icon:l.Z,size:25});t.Z=({onSelect:e,locale:t,billingPeriod:n})=>{const{__:__,hasTranslation:a}=(0,u.useI18n)(),{supportedPlans:s,planProducts:l,features:c,featuresByType:g}=(0,i.useSelect)((e=>{const{getPlanProduct:r,getFeatures:o,getFeaturesByType:i,getSupportedPlans:a}=e(f.F),s=a(t),l=s.map((e=>r(e.periodAgnosticSlug,n)));return{supportedPlans:s,planProducts:l,features:o(t),featuresByType:i(t)}})),h=!(null!=s&&s.length),y=[1,2,3,4,5],v=__("Monthly price (billed yearly)","full-site-editing"),_=__("Monthly subscription (billed yearly)","full-site-editing"),b="en"===t||null!=a&&a("Monthly price (billed yearly)")?v:_,E=__("Monthly subscription","full-site-editing"),S=__("Included with annual plans","full-site-editing"),A=__("Only included with annual plans","full-site-editing");return(0,r.createElement)("div",{className:"plans-details"},(0,r.createElement)("table",{className:"plans-details__table"},(0,r.createElement)("thead",null,(0,r.createElement)("tr",{className:"plans-details__header-row"},(0,r.createElement)("th",null,__("Feature","full-site-editing")),h?y.map((e=>(0,r.createElement)("th",{key:e},(0,r.createElement)("span",{className:"plans-details__placeholder"},"")))):s.map((e=>(0,r.createElement)("th",{key:e.periodAgnosticSlug},e.title))))),h?(0,r.createElement)("tbody",null,y.map(((e,t)=>(0,r.createElement)("tr",{className:"plans-details__feature-row",key:t},(0,r.createElement)("th",{key:e},(0,r.createElement)("span",{className:"plans-details__placeholder plans-details__placeholder--wide"},"")),y.map((e=>(0,r.createElement)("td",{key:e}))))))):g.map((e=>{var t;return(0,r.createElement)("tbody",{key:e.id},e.name&&(0,r.createElement)("tr",{className:"plans-details__header-row"},(0,r.createElement)("th",{colSpan:6},e.name)),null===(t=e.features)||void 0===t?void 0:t.map(((e,t)=>(0,r.createElement)("tr",{className:d()("plans-details__feature-row",{"plans-details__feature-row--enabled":c[e].requiresAnnuallyBilledPlan&&"ANNUALLY"===n,"plans-details__feature-row--disabled":c[e].requiresAnnuallyBilledPlan&&"ANNUALLY"!==n}),key:t},(0,r.createElement)("th",null,c[e].requiresAnnuallyBilledPlan&&(0,r.createElement)("span",{className:"plans-details__feature-annual-nudge","aria-label":"ANNUALLY"===n?S:A},__("Included with annual plans","full-site-editing")),(0,r.createElement)("span",null,c[e].name)),s.map(((t,o)=>{var i;return"storage"===e?(0,r.createElement)("td",{key:o},t.storage):(0,r.createElement)("td",{key:o},null!==(i=t.featuresSlugs)&&void 0!==i&&i[e]?(0,r.createElement)(r.Fragment,null,c[e].requiresAnnuallyBilledPlan&&"ANNUALLY"!==n?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"hidden"},__("Unavailable","full-site-editing")),m):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"hidden"},__("Available","full-site-editing")),p)):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"hidden"},__("Unavailable","full-site-editing"))))}))))))})),(0,r.createElement)("tbody",null,(0,r.createElement)("tr",{className:"plans-details__header-row"},(0,r.createElement)("th",{colSpan:6},__("Sign up","full-site-editing"))),(0,r.createElement)("tr",{className:"plans-details__feature-row",key:"price"},(0,r.createElement)("th",null,"ANNUALLY"===n?b:E),h?y.map((e=>(0,r.createElement)("td",{key:e},(0,r.createElement)("span",{className:"plans-details__placeholder"},"")))):s.map(((e,t)=>{var n;return(0,r.createElement)("td",{key:e.periodAgnosticSlug},null===(n=l[t])||void 0===n?void 0:n.price)}))),(0,r.createElement)("tr",{className:"plans-details__feature-row",key:"cta"},(0,r.createElement)("th",null),h?y.map((e=>(0,r.createElement)("td",{key:e},(0,r.createElement)(o.Button,{className:"plans-details__select-button",isPrimary:!0,disabled:!0},(0,r.createElement)("span",{className:"plans-details__placeholder plans-details__placeholder--narrow"},""))," "))):s.map(((t,n)=>(0,r.createElement)("td",{key:t.periodAgnosticSlug},(0,r.createElement)(o.Button,{className:"plans-details__select-button",onClick:()=>{var t;e(null===(t=l[n])||void 0===t?void 0:t.productId)},isPrimary:!0},(0,r.createElement)("span",null,__("Select","full-site-editing"))))))))))}},373:function(e,t,n){"use strict";var r=n(7896),o=n(9307),i=n(5609),a=n(5869),s=n(9806),l=n(8565),u=n(6656),c=n(2779),d=n.n(c);n(9196),n(4571);const f=({className:e})=>(0,o.createElement)(a.Z,{className:e,icon:s.Z,size:18}),p=({className:e})=>(0,o.createElement)(a.Z,{className:e,icon:l.Z,size:18}),m=({children:e,className:t})=>(0,o.createElement)("span",{className:t},e),g=({billingPeriod:e,__:__})=>{const t=__("Included with annual plans","full-site-editing"),n=__("Only included with annual plans","full-site-editing");return(0,o.createElement)("span",{className:"plans-feature-list__item-annual-nudge","aria-label":"ANNUALLY"===e?t:n},t)};const h=({bulletIcon:e,textNode:t,requiresAnnuallyBilledPlan:n,contentWrapperNode:r=m,listItemExtraClassName:i,billingPeriod:a},s)=>{const{__:__}=(0,u.useI18n)();return(0,o.createElement)("li",{key:s,className:d()("plans-feature-list__item",{"plans-feature-list__item--requires-annual-enabled":n&&"ANNUALLY"===a,"plans-feature-list__item--requires-annual-disabled":n&&"ANNUALLY"!==a},i)},(0,o.createElement)(r,{className:"plans-feature-list__item-content-wrapper"},(0,o.createElement)(e,{className:"plans-feature-list__item-bullet-icon"}),(0,o.createElement)("span",{className:"plans-feature-list__item-text"},n&&(0,o.createElement)(g,{billingPeriod:a,__:__}),(0,o.createElement)("span",{className:"plans-feature-list__item-description"},t))))};t.Z=({features:e,domain:t,billingPeriod:n,isFree:a=!1,isOpen:s=!1,onPickDomain:l,disabledLabel:c,multiColumn:m=!1})=>{const{__:__}=(0,u.useI18n)(),g=function(e,t,n,__){const r="plans-feature-list__item-content-wrapper--domain-button";return{NO_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{wrapperClassName:d()(r,"is-cta"),bulletIcon:"ANNUALLY"===n?f:p,requiresAnnuallyBilledPlan:!0,domainMessage:(0,o.createElement)(o.Fragment,null,__("Pick a free domain (1 year)","full-site-editing"))}},FREE_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{wrapperClassName:d()(r,"is-cta"),bulletIcon:"ANNUALLY"===n?f:p,requiresAnnuallyBilledPlan:!0,domainMessage:(0,o.createElement)(o.Fragment,null,__("Pick a free domain (1 year)","full-site-editing"))}},PAID_DOMAIN:{FREE_PLAN:{wrapperClassName:d()(r,"is-unavailable"),bulletIcon:p,requiresAnnuallyBilledPlan:!1,domainMessage:(0,o.createElement)(o.Fragment,null,(0,o.createInterpolateElement)(__("<url /> is not included","full-site-editing"),{url:(0,o.createElement)("span",{className:"plans-feature-list__item-url"},null==t?void 0:t.domain_name)}))},PAID_PLAN:{wrapperClassName:r,bulletIcon:"ANNUALLY"===n?f:p,requiresAnnuallyBilledPlan:!0,domainMessage:(0,o.createElement)(o.Fragment,null,(0,o.createInterpolateElement)(__("<url /> is included","full-site-editing"),{url:(0,o.createElement)("span",{className:"plans-feature-list__item-url"},null==t?void 0:t.domain_name)}))}}}[t&&(t.is_free?"FREE_DOMAIN":"PAID_DOMAIN")||"NO_DOMAIN"][e?"FREE_PLAN":"PAID_PLAN"]}(a,t,n,__),y=[];return c?y.push({bulletIcon:p,textNode:c,requiresAnnuallyBilledPlan:!1,listItemExtraClassName:"plans-feature-list__item--disabled-message"}):g&&y.push({bulletIcon:g.bulletIcon,textNode:g.domainMessage,requiresAnnuallyBilledPlan:g.requiresAnnuallyBilledPlan,contentWrapperNode:({children:e,className:t})=>(0,o.createElement)(i.Button,{className:d()(g.wrapperClassName,t),onClick:l,isLink:!0},e)}),e.forEach((({name:e,requiresAnnuallyBilledPlan:t})=>y.push({bulletIcon:t&&"MONTHLY"===n?p:f,textNode:e,requiresAnnuallyBilledPlan:t}))),(0,o.createElement)("div",{className:"plans-feature-list",hidden:!s},(0,o.createElement)("ul",{className:d()("plans-feature-list__item-group",{"plans-feature-list__item-group--columns":m})},y.map(((e,t)=>(0,o.createElement)(h,(0,r.Z)({},e,{billingPeriod:n,key:t}))))))}},7891:function(e,t,n){"use strict";var r=n(9307),o=n(2779),i=n.n(o);n(9196),n(4571);t.Z=({isOpen:e=!1,multiColumn:t=!1})=>{const n=Array.from(Array(10).keys());return(0,r.createElement)("div",{className:"plans-feature-list",hidden:!e},(0,r.createElement)("ul",{className:i()("plans-feature-list__item-group",{"plans-feature-list__item-group--columns":t})},n.map((e=>(0,r.createElement)("li",{key:e,className:"plans-feature-list__item"},(0,r.createElement)("span",{className:"plans-feature-list__placeholder"},""))))))}},5315:function(e,t,n){"use strict";var r=n(9307),o=n(5915),i=n(9818),a=n(6656),s=n(8049),l=n.n(s),u=n(9196),c=n(1201),d=n(222),f=n(4564),p=n(1954),m=n(6795),g=n(9255);n(4290);const h=l()("plans-grid");t.Z=({header:e,selectedFeatures:t,currentPlanProductId:n,currentDomain:s,onPlanSelect:l,onPickDomainClick:y,disabledPlans:v,isAccordion:_,locale:b,showPlanTaglines:E=!1,CTAVariation:S="NORMAL",popularBadgeVariation:A="ON_TOP",customTagLines:w,hidePlansComparison:P=!1,defaultAllPlansExpanded:C=!1,onBillingPeriodChange:x})=>{const{__:__}=(0,a.useI18n)(),N=(0,i.useSelect)((e=>{var t;return null===(t=e(g.F).getPlanProductById(n))||void 0===t?void 0:t.billingPeriod})),[I,O]=u.useState(N||"ANNUALLY");u.useEffect((()=>{x&&x(I)}),[I,x]);const{maxAnnualDiscount:M}=(0,c.N)(b,I);return _&&h("PlansGrid accordion version is active"),(0,r.createElement)("div",{className:"plans-grid"},e&&(0,r.createElement)("div",{className:"plans-grid__header"},e),(0,r.createElement)(p.Z,{intervalType:I,onChange:O,maxMonthlyDiscountPercentage:M,className:"plans-grid__toggle"}),(0,r.createElement)("div",{className:"plans-grid__table"},(0,r.createElement)("div",{className:"plans-grid__table-container"},_?(0,r.createElement)(d.Z,{selectedFeatures:t,selectedPlanProductId:n,onPlanSelect:l,currentDomain:s,onPickDomainClick:y,disabledPlans:v,locale:b,billingPeriod:I}):(0,r.createElement)(m.Z,{popularBadgeVariation:A,CTAVariation:S,selectedPlanProductId:n,onPlanSelect:l,customTagLines:w,currentDomain:s,onPickDomainClick:y,disabledPlans:v,locale:b,showTaglines:E,defaultAllPlansExpanded:C,billingPeriod:I}))),!P&&(0,r.createElement)("div",{className:"plans-grid__details"},(0,r.createElement)("div",{className:"plans-grid__details-heading"},(0,r.createElement)(o.b,{tagName:"h2"},__("Detailed comparison","full-site-editing"))),(0,r.createElement)("div",{className:"plans-grid__details-container"},(0,r.createElement)(f.Z,{onSelect:l,locale:b,billingPeriod:I}))))}},1954:function(e,t,n){"use strict";var r=n(9307),o=n(849),i=n(5609),a=n(5736),s=n(6656),l=n(2779),u=n.n(l),c=(n(9196),n(5532));n(8674);const d=({children:e})=>{const t={desktop:"middle right",mobile:"bottom center"};return(0,r.createElement)(r.Fragment,null,Object.keys(t).map((n=>(0,r.createElement)(i.Popover,{key:n,className:u()("plans-interval-toggle__popover",`plans-interval-toggle__popover--${n}`),position:t[n],noArrow:!1},e))))};t.Z=({onChange:e,intervalType:t,maxMonthlyDiscountPercentage:n,className:i=""})=>{const{__:__,_x:_x,hasTranslation:l}=(0,s.useI18n)(),f=(0,o.bU)(),p=__("Pay monthly","full-site-editing"),m=_x("Monthly",'Adverb (as in "Pay monthly")',"full-site-editing"),g="en"===f||l("Monthly",'Adverb (as in "Pay monthly")',"full-site-editing")?m:p,h=__("Pay annually","full-site-editing"),y=_x("Annually",'Adverb (as in "Pay annually")',"full-site-editing"),v="en"===f||l("Annually",'Adverb (as in "Pay annually")',"full-site-editing")?y:h;return(0,r.createElement)("div",{className:u()("plans-interval-toggle",{"plans-interval-toggle--monthly":"MONTHLY"===t},i)},(0,r.createElement)(c.Z,null,(0,r.createElement)(c.Z.Item,{selected:"MONTHLY"===t,onClick:()=>e("MONTHLY")},(0,r.createElement)("span",{className:"plans-interval-toggle__label"},g)),(0,r.createElement)(c.Z.Item,{selected:"ANNUALLY"===t,onClick:()=>e("ANNUALLY")},(0,r.createElement)("span",{className:"plans-interval-toggle__label"},v),"MONTHLY"===t&&n&&(0,r.createElement)(d,null,(0,a.sprintf)(__("Save up to %(maxDiscount)d%% by paying annually and get a free domain for one year","full-site-editing"),{maxDiscount:n})))))}},6795:function(e,t,n){"use strict";var r=n(9307),o=n(9818),i=n(9196),a=n(1201),s=n(9255),l=n(2893);n(1233);t.Z=({selectedPlanProductId:e,onPlanSelect:t,onPickDomainClick:n,currentDomain:u,disabledPlans:c,locale:d,billingPeriod:f,showTaglines:p=!1,CTAVariation:m="NORMAL",popularBadgeVariation:g="ON_TOP",customTagLines:h,defaultAllPlansExpanded:y=!1})=>{const{supportedPlans:v}=(0,a.N)(d,f),[_,b]=(0,i.useState)(y),E=(0,o.useSelect)((e=>e(s.F).getPlanProduct));return(0,r.createElement)("div",{className:"plans-table"},v.filter((e=>!!e)).map((o=>{var i;return(0,r.createElement)(l.Z,{popularBadgeVariation:g,allPlansExpanded:_,key:o.periodAgnosticSlug,slug:o.periodAgnosticSlug,domain:u,tagline:(p&&(null==h?void 0:h[o.periodAgnosticSlug]))??o.description,CTAVariation:m,features:o.features??[],billingPeriod:f,isPopular:o.isPopular,isFree:o.isFree,name:null==o?void 0:o.title.toString(),isSelected:!!e&&e===(null===(i=E(o.periodAgnosticSlug,f))||void 0===i?void 0:i.productId),onSelect:t,onPickDomainClick:n,onToggleExpandAll:()=>b((e=>!e)),disabledLabel:null==c?void 0:c[o.periodAgnosticSlug]})})))}},2893:function(e,t,n){"use strict";var r=n(9307),o=n(849),i=n(5609),a=n(4333),s=n(9818),l=n(5736),u=n(5869),c=n(9806),d=n(6656),f=n(2779),p=n.n(f),m=n(9196),g=n(373),h=n(9255);const y=(0,r.createElement)(u.Z,{icon:c.Z,size:17}),v=(0,r.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,r.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}));t.Z=({slug:e,name:t,tagline:n,isPopular:u=!1,isFree:c=!1,domain:f,features:_,billingPeriod:b,onSelect:E,onPickDomainClick:S,onToggleExpandAll:A,allPlansExpanded:w,disabledLabel:P,CTAVariation:C="NORMAL",popularBadgeVariation:x="ON_TOP",isSelected:N})=>{const{__:__,hasTranslation:I}=(0,d.useI18n)(),O=(0,o.bU)(),M=(0,s.useSelect)((t=>t(h.F).getPlanProduct(e,b))),[L,F]=m.useState(!1),T=(0,a.useViewportMatch)("mobile",">=");m.useEffect((()=>{F(w)}),[w]);const $=w||T||u||L,D=__("Choose","full-site-editing"),R=__("Current Selection","full-site-editing"),k=__("Select %s","full-site-editing"),Z=__("billed annually","full-site-editing"),j=__("per month, billed as %s annually","full-site-editing"),U="en"===O||null!=I&&I("per month, billed as %s annually")?(0,l.sprintf)(j,null==M?void 0:M.annualPrice):Z,B=__("per month, billed monthly","full-site-editing"),G=__("Collapse all plans","full-site-editing"),V=__("Expand all plans","full-site-editing");return(0,r.createElement)("div",{className:p()("plan-item",{"is-popular":u,"is-open":$,"badge-next-to-name":"NEXT_TO_NAME"===x})},u&&"ON_TOP"===x&&(0,r.createElement)("span",{className:"plan-item__badge"},__("Popular","full-site-editing")),(0,r.createElement)("div",{className:p()("plan-item__viewport",{"is-popular":u})},(0,r.createElement)("div",{className:"plan-item__details"},(0,r.createElement)("div",{tabIndex:0,role:"button",onClick:()=>F((e=>!e)),onKeyDown:e=>32===e.keyCode&&F((e=>!e)),className:"plan-item__summary"},(0,r.createElement)("div",{className:p()("plan-item__heading",{"badge-next-to-name":"NEXT_TO_NAME"===x})},(0,r.createElement)("div",{className:"plan-item__name"},t),u&&"NEXT_TO_NAME"===x&&(0,r.createElement)("span",{className:"plan-item__badge-next-to-name"},__("Popular","full-site-editing"))),n&&(0,r.createElement)("p",{className:"plan-item__tagline"},n),(0,r.createElement)("div",{className:"plan-item__price"},(0,r.createElement)("div",{className:p()("plan-item__price-amount",{"is-loading":!(null!=M&&M.price)})},(null==M?void 0:M.price)||" ")),!$&&(0,r.createElement)("div",{className:"plan-item__dropdown-chevron"},v)),(0,r.createElement)("div",{hidden:!$},(0,r.createElement)("div",{className:"plan-item__price-note"},c&&__("free forever","full-site-editing"),!c&&("ANNUALLY"===b?U:B)),(0,r.createElement)("div",{className:p()("plan-item__price-discount",{"plan-item__price-discount--disabled":"ANNUALLY"!==b,"plan-item__price-discount--hidden":c}),"aria-hidden":c?"true":"false"},(0,l.sprintf)(__("Save %(discountRate)s%% by paying annually","full-site-editing"),{discountRate:(null==M?void 0:M.annualDiscount)??0})),(0,r.createElement)("div",{className:"plan-item__actions"},"NORMAL"===C?(0,r.createElement)(i.Button,{className:"plan-item__select-button",onClick:()=>{E(null==M?void 0:M.productId)},isPrimary:!0,disabled:!!P},(0,r.createElement)("span",null,P??D)):(0,r.createElement)(i.Button,{className:p()("plan-item__select-button full-width",{"is-selected":N,"is-popular":u}),onClick:()=>{E(null==M?void 0:M.productId)},isPrimary:u,disabled:!!P},(0,r.createElement)("span",null,P??(0,r.createElement)(r.Fragment,null,N?y:"",N?R:(0,l.sprintf)(k,t))))),(0,r.createElement)(g.Z,{features:_,domain:f,isFree:c,isOpen:$,onPickDomain:S,disabledLabel:P&&(0,l.sprintf)(__("%s is not included","full-site-editing"),null==f?void 0:f.domain_name),billingPeriod:b})))),u&&!T&&(0,r.createElement)(i.Button,{onClick:A,className:"plan-item__mobile-expand-all-plans",isLink:!0},w?G:V))}},5532:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(6666),o=n(9307),i=n(2779),a=n.n(i),s=n(3980),l=n.n(s),u=n(9196),c=n(8268);n(6011);class d extends u.Component{render(){const e={"is-compact":this.props.compact,"is-primary":this.props.primary};return(0,o.createElement)("ul",{className:a()("segmented-control",e,this.props.className),style:this.props.style,role:"radiogroup"},this.props.children)}}(0,r.Z)(d,"Item",c.Z),(0,r.Z)(d,"propTypes",{className:l().string,compact:l().bool,primary:l().bool,style:l().object,children:l().node.isRequired})},8268:function(e,t,n){"use strict";var r=n(6666),o=n(9307),i=n(2779),a=n.n(i),s=n(3980),l=n.n(s),u=n(9196);class c extends u.Component{constructor(...e){super(...e),(0,r.Z)(this,"handleKeyEvent",(e=>{switch(e.keyCode){case 13:case 32:e.preventDefault(),document.activeElement.click()}}))}render(){const e=a()({"segmented-control__item":!0,"is-selected":this.props.selected}),t=a()("segmented-control__link",{[`item-index-${this.props.index}`]:null!=this.props.index});return(0,o.createElement)("li",{className:e},(0,o.createElement)("a",{href:this.props.path,className:t,onClick:this.props.onClick,title:this.props.title,"data-e2e-value":this.props.value,role:"radio",tabIndex:0,"aria-checked":this.props.selected,onKeyDown:this.handleKeyEvent},(0,o.createElement)("span",{className:"segmented-control__text"},this.props.children)))}}(0,r.Z)(c,"propTypes",{children:l().node.isRequired,path:l().string,selected:l().bool,title:l().string,value:l().string,onClick:l().func,index:l().number}),(0,r.Z)(c,"defaultProps",{selected:!1}),t.Z=c},9255:function(e,t,n){"use strict";n.d(t,{F:function(){return i},J:function(){return a}});var r=n(9734),o=n(182);const i=r.register(),a=o.z()},8552:function(e,t,n){"use strict";n.d(t,{Vw:function(){return S},sS:function(){return x}});var r=n(8049),o=n.n(r),i=n(8650),a=n.n(i),s=n(8767),l=n(2884),u=n.n(l);const c=o()("wpcom-proxy-request"),d="https://public-api.wordpress.com",f=window.location.protocol+"//"+window.location.host,p=(()=>{let e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e})(),m=(()=>{try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}})();let g,h=null,y=!1;const v={},_=!!window.ProgressEvent&&!!window.FormData;c('using "origin": %o',f);const b=(e,t)=>{const n=Object.assign({},e);c("request(%o)",n),h||C();const r=(0,s.Z)();n.callback=r,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=_,n.method=String(n.method||"GET").toUpperCase(),c("params object: %o",n);const o=new window.XMLHttpRequest;if(o.params=n,v[r]=o,"function"==typeof t){let e=!1;const n=n=>{if(e)return;e=!0;const r=n.response||o.response;c("body: ",r),c("headers: ",n.headers),t(null,r,n.headers)},r=n=>{if(e)return;e=!0;const r=n.error||n.err||n;c("error: ",r),c("headers: ",n.headers),t(r,null,n.headers)};o.addEventListener("load",n),o.addEventListener("abort",r),o.addEventListener("error",r)}return"function"==typeof n.onStreamRecord&&delete n.onStreamRecord,y?A(n):(c("buffering API request since proxying <iframe> is not yet loaded"),g.push(n)),o},E=(e,t)=>"function"==typeof t?b(e,t):new Promise(((t,n)=>{b(e,((e,r)=>{e?n(e):t(r)}))}));function S(){return E({metaAPI:{accessAllUsersBlogs:!0}})}function A(e){c("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!m)return;for(let t=0;t<e.length;t++){const n=P(e[t][1]);n&&(e[t][1]=new window.File([n],n.name,{type:n.type}))}}(e.formData),h.contentWindow.postMessage(p?JSON.stringify(e):e,d)}function w(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function P(e){return w(e)?e:"object"==typeof e&&w(e.fileContents)?e.fileContents:null}function C(){c("install()"),h&&(c("uninstall()"),window.removeEventListener("message",N),document.body.removeChild(h),y=!1,h=null),g=[],window.addEventListener("message",N),h=document.createElement("iframe"),h.src=d+"/wp-admin/rest-proxy/?v=2.0#"+f,h.style.display="none",document.body.appendChild(h)}const x=()=>{C()};function N(e){if(c("onmessage"),e.origin!==d)return void c("ignoring message... %o !== %o",e.origin,d);if(e.source!==h.contentWindow)return void c("ignoring message... iframe elements do not match");let{data:t}=e;if(!t)return c("no `data`, bailing");if("ready"===t)return void function(){if(c('proxy <iframe> "load" event'),y=!0,g){for(let e=0;e<g.length;e++)A(g[e]);g=null}}();if(p&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){c('got "progress" event: %o',e);const t=v[e.callbackId];if(t){const n=new(a())("progress",e);(e.upload?t.upload:t).dispatchEvent(n)}}(t);if(!t.length)return c("`e.data` doesn't appear to be an Array, bailing...");const n=t[t.length-1];if(!(n in v))return c("bailing, no matching request with callback: %o",n);const r=v[n],{params:o}=r,i=t[0];let s=t[1];const l=t[2];if(207===s||delete v[n],o.metaAPI?s="metaAPIupdated"===i?200:500:c("got %o status code for URL: %o",s,o.path),"object"==typeof l&&(l.status=s,f=l["Content-Type"],/^application[/]x-ndjson($|;)/.test(f))){I(r,new Error("stream mode processing is not yet implemented for wpcom-proxy-request"),l)}else{var f;if(s&&2===Math.floor(s/100))!function(e,t,n){const r=new(a())("load");r.data=r.body=r.response=t,r.headers=n,e.dispatchEvent(r)}(r,i,l);else{I(r,u()(o,s,i),l)}}}function I(e,t,n){const r=new(a())("error");r.error=r.err=t,r.headers=n,e.dispatchEvent(r)}t.ZP=E},8049:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(2632)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,n){e.exports=function(e){function t(e){let n,o,i,a=null;function s(...e){if(!s.enabled)return;const r=s,o=Number(new Date),i=o-(n||o);r.diff=i,r.prev=n,r.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,o)=>{if("%%"===n)return"%";a++;const i=t.formatters[o];if("function"==typeof i){const t=e[a];n=i.call(r,t),e.splice(a,1),a--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1378),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},1898:function(e,t){"use strict";var n="Invariant failed";t.Z=function(e,t){if(!e)throw new Error(n)}},3830:function(e,t,n){"use strict";var r=n(956);e.exports=function(){var e=r.apply(r,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},956:function(e){"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},7127:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(9196),o=n(669);function i(e,t){return e===t}function a(e,t,n){var a=n&&n.equalityFn?n.equalityFn:i,s=(0,r.useState)(e),l=s[0],u=s[1],c=(0,o.Z)((0,r.useCallback)((function(e){return u(e)}),[]),t,n),d=c[0],f=c[1],p=(0,r.useRef)(e);return(0,r.useEffect)((function(){a(p.current,e)||(d(e),p.current=e)}),[e,d,a]),[l,f]}},669:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9196);function o(e,t,n){void 0===n&&(n={});var o=n.maxWait,i=(0,r.useRef)(null),a=(0,r.useRef)([]),s=n.leading,l=(0,r.useRef)(!1),u=(0,r.useRef)(null),c=(0,r.useRef)(!1),d=(0,r.useRef)(e);d.current=e;var f=(0,r.useCallback)((function(){clearTimeout(u.current),clearTimeout(i.current),i.current=null,a.current=[],u.current=null,l.current=!1}),[]);(0,r.useEffect)((function(){return function(){c.current=!0}}),[]);var p=(0,r.useCallback)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(a.current=e,clearTimeout(u.current),!u.current&&s&&!l.current)return d.current.apply(d,e),void(l.current=!0);u.current=setTimeout((function(){f(),c.current||d.current.apply(d,e)}),t),o&&!i.current&&(i.current=setTimeout((function(){var e=a.current;f(),c.current||d.current.apply(null,e)}),o))}),[o,t,f,s]);return[p,f,function(){u.current&&(d.current.apply(null,a.current),f())}]}},8186:function(e,t,n){"use strict";
28
  /** @license React vundefined
29
  * use-subscription.production.min.js
30
  *
editor-site-launch/dist/gutenboarding-launch.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-react-i18n', 'wp-url'), 'version' => '67368d29a9fd216fe13ceaaea49260cb');
1
+ <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-react-i18n', 'wp-url'), 'version' => 'cf711e4dc20a952ffbc6a9076c2adf13');
editor-site-launch/dist/gutenboarding-launch.js CHANGED
@@ -8,7 +8,7 @@
8
  object-assign
9
  (c) Sindre Sorhus
10
  @license MIT
11
- */var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,o){for(var a,s,l=i(e),u=1;u<arguments.length;u++){for(var c in a=Object(arguments[u]))n.call(a,c)&&(l[c]=a[c]);if(t){s=t(a);for(var d=0;d<s.length;d++)r.call(a,s[d])&&(l[s[d]]=a[s[d]])}}return l}},9500:function(e,t,n){var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&l&&"function"==typeof l.get?l.get:null,c=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,g=Object.prototype.toString,h=Function.prototype.toString,y=String.prototype.match,v="function"==typeof BigInt?BigInt.prototype.valueOf:null,b=Object.getOwnPropertySymbols,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,S="function"==typeof Symbol&&"object"==typeof Symbol.iterator,E=Object.prototype.propertyIsEnumerable,A=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null),w=n(3260).custom,P=w&&O(w)?w:null,x="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function C(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function N(e){return String(e).replace(/"/g,"&quot;")}function I(e){return!("[object Array]"!==M(e)||x&&"object"==typeof e&&x in e)}function O(e){if(S)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(t){}return!1}e.exports=function e(t,n,r,i){var s=n||{};if(L(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(L(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!L(s,"customInspect")||s.customInspect;if("boolean"!=typeof l)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(L(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return F(t,s);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var g=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=g&&g>0&&"object"==typeof t)return I(t)?"[Array]":"[Object]";var b=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Array(e.indent+1).join(" ")}return{base:n,prev:Array(t+1).join(n)}}(s,r);if(void 0===i)i=[];else if(k(i,t)>=0)return"[Circular]";function E(t,n,o){if(n&&(i=i.slice()).push(n),o){var a={depth:s.depth};return L(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,i)}return e(t,s,r+1,i)}if("function"==typeof t){var w=function(e){if(e.name)return e.name;var t=y.call(h.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),$=B(t,E);return"[Function"+(w?": "+w:" (anonymous)")+"]"+($.length>0?" { "+$.join(", ")+" }":"")}if(O(t)){var T=S?String(t).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):_.call(t);return"object"!=typeof t||S?T:D(T)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var U="<"+String(t.nodeName).toLowerCase(),G=t.attributes||[],H=0;H<G.length;H++)U+=" "+G[H].name+"="+C(N(G[H].value),"double",s);return U+=">",t.childNodes&&t.childNodes.length&&(U+="..."),U+="</"+String(t.nodeName).toLowerCase()+">"}if(I(t)){if(0===t.length)return"[]";var V=B(t,E);return b&&!function(e){for(var t=0;t<e.length;t++)if(k(e[t],"\n")>=0)return!1;return!0}(V)?"["+j(V,b)+"]":"[ "+V.join(", ")+" ]"}if(function(e){return!("[object Error]"!==M(e)||x&&"object"==typeof e&&x in e)}(t)){var W=B(t,E);return 0===W.length?"["+String(t)+"]":"{ ["+String(t)+"] "+W.join(", ")+" }"}if("object"==typeof t&&l){if(P&&"function"==typeof t[P])return t[P]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{u.call(e)}catch(U){return!0}return e instanceof Map}catch(t){}return!1}(t)){var z=[];return a.call(t,(function(e,n){z.push(E(n,t,!0)+" => "+E(e,t))})),Z("Map",o.call(t),z,b)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var Y=[];return c.call(t,(function(e){Y.push(E(e,t))})),Z("Set",u.call(t),Y,b)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(U){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return R("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(U){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return R("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(t){}return!1}(t))return R("WeakRef");if(function(e){return!("[object Number]"!==M(e)||x&&"object"==typeof e&&x in e)}(t))return D(E(Number(t)));if(function(e){if(!e||"object"!=typeof e||!v)return!1;try{return v.call(e),!0}catch(t){}return!1}(t))return D(E(v.call(t)));if(function(e){return!("[object Boolean]"!==M(e)||x&&"object"==typeof e&&x in e)}(t))return D(m.call(t));if(function(e){return!("[object String]"!==M(e)||x&&"object"==typeof e&&x in e)}(t))return D(E(String(t)));if(!function(e){return!("[object Date]"!==M(e)||x&&"object"==typeof e&&x in e)}(t)&&!function(e){return!("[object RegExp]"!==M(e)||x&&"object"==typeof e&&x in e)}(t)){var q=B(t,E),K=A?A(t)===Object.prototype:t instanceof Object||t.constructor===Object,J=t instanceof Object?"":"null prototype",X=!K&&x&&Object(t)===t&&x in t?M(t).slice(8,-1):J?"Object":"",Q=(K||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(X||J?"["+[].concat(X||[],J||[]).join(": ")+"] ":"");return 0===q.length?Q+"{}":b?Q+"{"+j(q,b)+"}":Q+"{ "+q.join(", ")+" }"}return String(t)};var $=Object.prototype.hasOwnProperty||function(e){return e in this};function L(e,t){return $.call(e,t)}function M(e){return g.call(e)}function k(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function F(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return F(e.slice(0,t.maxStringLength),t)+r}return C(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,T),"single",t)}function T(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function D(e){return"Object("+e+")"}function R(e){return e+" { ? }"}function Z(e,t,n,r){return e+" ("+t+") {"+(r?j(n,r):n.join(", "))+"}"}function j(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+e.join(","+n)+"\n"+t.prev}function B(e,t){var n=I(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=L(e,i)?t(e[i],e):""}var o,a="function"==typeof b?b(e):[];if(S){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var l in e)L(e,l)&&(n&&String(Number(l))===l&&l<e.length||S&&o["$"+l]instanceof Symbol||(/[^\w$]/.test(l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof b)for(var u=0;u<a.length;u++)E.call(e,a[u])&&r.push("["+t(a[u])+"]: "+t(e[a[u]],e));return r}},8650:function(e){var t,n=window.ProgressEvent,r=!!n;try{t=new n("loaded"),r="loaded"===t.type,t=null}catch(i){r=!1}e.exports=r?n:"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("Event");return n.initEvent(e,!1,!1),t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}},8262:function(e,t,n){"use strict";var r=n(3586);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},3980:function(e,t,n){e.exports=n(8262)()},3586:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5527:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:i}},9126:function(e,t,n){"use strict";var r=n(6845),i=n(9166),o=n(5527);e.exports={formats:o,parse:i,stringify:r}},9166:function(e,t,n){"use strict";var r=n(2493),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),u=s?o.slice(0,s.index):o,c=[];if(u){if(!n.plainObjects&&i.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var d=0;n.depth>0&&null!==(s=a.exec(o))&&d<n.depth;){if(d+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(s[1])}return s&&c.push("["+o.slice(s.index)+"]"),function(e,t,n,r){for(var i=r?t:l(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(u,10);n.parseArrays||""!==u?!isNaN(c)&&s!==u&&String(c)===u&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=i:a[u]=i:a={0:i}}i=a}return i}(c,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var n,u={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=c.split(t.delimiter,d),p=-1,m=t.charset;if(t.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?m="utf-8":"utf8=%26%2310003%3B"===f[n]&&(m="iso-8859-1"),p=n,n=f.length);for(n=0;n<f.length;++n)if(n!==p){var g,h,y=f[n],v=y.indexOf("]="),b=-1===v?y.indexOf("="):v+1;-1===b?(g=t.decoder(y,a.decoder,m,"key"),h=t.strictNullHandling?null:""):(g=t.decoder(y.slice(0,b),a.decoder,m,"key"),h=r.maybeMap(l(y.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,m,"value")}))),h&&t.interpretNumericEntities&&"iso-8859-1"===m&&(h=s(h)),y.indexOf("[]=")>-1&&(h=o(h)?[h]:h),i.call(u,g)?u[g]=r.combine(u[g],h):u[g]=h}return u}(e,n):e,d=n.plainObjects?Object.create(null):{},f=Object.keys(c),p=0;p<f.length;++p){var m=f[p],g=u(m,c[m],n,"string"==typeof e);d=r.merge(d,g,n)}return!0===n.allowSparse?d:r.compact(d)}},6845:function(e,t,n){"use strict";var r=n(4294),i=n(2493),o=n(5527),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,f=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},m=function e(t,n,o,a,s,u,d,f,m,g,h,y,v,b,_){var S,E=t;if(_.has(t))throw new RangeError("Cyclic object value");if("function"==typeof d?E=d(n,E):E instanceof Date?E=g(E):"comma"===o&&l(E)&&(E=i.maybeMap(E,(function(e){return e instanceof Date?g(e):e}))),null===E){if(a)return u&&!v?u(n,p.encoder,b,"key",h):n;E=""}if("string"==typeof(S=E)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||i.isBuffer(E))return u?[y(v?n:u(n,p.encoder,b,"key",h))+"="+y(u(E,p.encoder,b,"value",h))]:[y(n)+"="+y(String(E))];var A,w=[];if(void 0===E)return w;if("comma"===o&&l(E))A=[{value:E.length>0?E.join(",")||null:void 0}];else if(l(d))A=d;else{var P=Object.keys(E);A=f?P.sort(f):P}for(var x=0;x<A.length;++x){var C=A[x],N="object"==typeof C&&void 0!==C.value?C.value:E[C];if(!s||null!==N){var I=l(E)?"function"==typeof o?o(n,C):n:n+(m?"."+C:"["+C+"]");_.set(t,!0);var O=r();c(w,e(N,I,o,a,s,u,d,f,m,g,h,y,v,b,O))}}return w};e.exports=function(e,t){var n,i=e,u=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],i=p.filter;return("function"==typeof e.filter||l(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof u.filter?i=(0,u.filter)("",i):l(u.filter)&&(n=u.filter);var d,f=[];if("object"!=typeof i||null===i)return"";d=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var g=s[d];n||(n=Object.keys(i)),u.sort&&n.sort(u.sort);for(var h=r(),y=0;y<n.length;++y){var v=n[y];u.skipNulls&&null===i[v]||c(f,m(i[v],v,g,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,h))}var b=f.join(u.delimiter),_=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),b.length>0?_+b:""}},2493:function(e,t,n){"use strict";var r=n(5527),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),l=0;l<s.length;++l){var u=s[l],c=a[u];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:a,prop:u}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(e,t,n,i,o){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",u=0;u<s.length;++u){var c=s.charCodeAt(u);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===r.RFC1738&&(40===c||41===c)?l+=s.charAt(u):c<128?l+=a[c]:c<2048?l+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?l+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(u+=1,c=65536+((1023&c)<<10|1023&s.charCodeAt(u)),l+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return l},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=s(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),a)}}},3631:function(e,t,n){"use strict";var r=n(9196),i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=n(7201),a=n(4983),s=n(6590),l="function"==typeof Symbol&&Symbol.iterator;function u(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function c(e,t,n,r){var o,s=typeof e;if("undefined"!==s&&"boolean"!==s||(e=null),null===e||"string"===s||"number"===s||"object"===s&&e.$$typeof===i)return n(r,e,""===t?"."+u(e,0):t),1;var d=0,f=""===t?".":t+":";if(Array.isArray(e))for(var p=0;p<e.length;p++)d+=c(o=e[p],f+u(o,p),n,r);else{var m=function(e){var t=e&&(l&&e[l]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(m){0;for(var g,h=m.call(e),y=0;!(g=h.next()).done;)d+=c(o=g.value,f+u(o,y++),n,r)}else if("object"===s){0;var v=""+e;a(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===v?"object with keys {"+Object.keys(e).join(", ")+"}":v,"")}}return d}var d=/\/+/g;function f(e){return(""+e).replace(d,"$&/")}var p,m,g=h,h=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},y=function(e){var t=this;a(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function v(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function b(e,t,n){var i,a,s=e.result,l=e.keyPrefix,u=e.func,c=e.context,d=u.call(c,t,e.count++);Array.isArray(d)?_(d,s,n,o.thatReturnsArgument):null!=d&&(r.isValidElement(d)&&(i=d,a=l+(!d.key||t&&t.key===d.key?"":f(d.key)+"/")+n,d=r.cloneElement(i,{key:a},void 0!==i.props?i.props.children:void 0)),s.push(d))}function _(e,t,n,r,i){var o="";null!=n&&(o=f(n)+"/");var a=v.getPooled(t,o,r,i);!function(e,t,n){null==e||c(e,"",t,n)}(e,b,a),v.release(a)}v.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},p=function(e,t,n,r){var i=this;if(i.instancePool.length){var o=i.instancePool.pop();return i.call(o,e,t,n,r),o}return new i(e,t,n,r)},(m=v).instancePool=[],m.getPooled=p||g,m.poolSize||(m.poolSize=10),m.release=y;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return s(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return s(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;a(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)_(e[n],t,n,o.thatReturnsArgument);return t}},4294:function(e,t,n){"use strict";var r=n(7286),i=n(2680),o=n(9500),a=r("%TypeError%"),s=r("%WeakMap%",!0),l=r("%Map%",!0),u=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),f=i("Map.prototype.get",!0),p=i("Map.prototype.set",!0),m=i("Map.prototype.has",!0),g=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+o(e))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return u(e,r)}else if(l){if(t)return f(t,r)}else if(n)return function(e,t){var n=g(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return d(e,r)}else if(l){if(t)return m(t,r)}else if(n)return function(e,t){return!!g(e,t)}(n,r);return!1},set:function(r,i){s&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new s),c(e,r,i)):l?(t||(t=new l),p(t,r,i)):(n||(n={key:{},next:null}),function(e,t,n){var r=g(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,i))}};return r}},9830:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1184),i={contextDelimiter:"",onMissingKey:null};function o(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},i)this.options[n]=void 0!==t&&n in t?t[n]:i[n]}o.prototype.getPluralForm=function(e,t){var n,i,o,a=this.pluralForms[e];return a||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(i=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),o=(0,r.Z)(i)),a=this.pluralForms[e]=o),a(t)},o.prototype.dcnpgettext=function(e,t,n,r,i){var o,a,s;return o=void 0===i?0:this.getPluralForm(e,i),a=n,t&&(a=t+this.options.contextDelimiter+n),(s=this.data[e][a])&&s[o]?s[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)}},365:function(e,t,n){"use strict";n.d(t,{y:function(){return r}});const r=()=>{try{return window.self!==window.top}catch(e){return!0}};!window||!window._currentSiteType||window._currentSiteType},7989:function(e,t,n){"use strict";var r=n(9307),i=n(849),o=n(4655),a=n(6357),s=n(9818),l=n(2694),u=n(8817),c=n(9196),d=n.n(c),f=n(365),p=n(1157),m=n(9095),g=n(8318),h=n(8550);var y,v;y="a8c-editor-site-launch",v={render:function(){var e;const{isSidebarOpen:t}=(0,s.useSelect)((e=>e(g.sC).getState())),{closeSidebar:n,setSidebarFullscreen:u,unsetSidebarFullscreen:c}=(0,s.useDispatch)(g.sC);return d().useEffect((()=>{window.innerWidth<782?u():c()}),[t,u,c]),d().useEffect((()=>{const e="a8c.wpcom-block-editor.toggleInlineHelpButton";(0,l.hasAction)(e)&&(0,l.doAction)(e,{hidden:t})}),[t]),t?(0,r.createElement)(i.Iw,{localeSlug:(null===(e=window.wpcomEditorSiteLaunch)||void 0===e?void 0:e.locale)??o.OP},(0,r.createElement)(a.Z.Provider,{value:{siteId:window._currentSiteId,flow:p.OS,redirectTo:h.gQ,openCheckout:h.Rd,getCurrentLaunchFlowUrl:h.O0,isInIframe:(0,f.y)()}},(0,r.createElement)(m.Z,{onClose:n}))):null}},(0,u.registerPlugin)(y,v)},1157:function(e,t,n){"use strict";n.d(t,{OS:function(){return r},Js:function(){return i},nU:function(){return o}});const r="gutenboarding",i="focused-launch",o="should_launch"},6915:function(e,t,n){"use strict";var r=n(9307),i=n(9818),o=n(6656),a=(n(9196),n(8318)),s=n(8374);n(4919);t.Z=({onMenuItemClick:e})=>{const{__:__}=(0,o.useI18n)(),{currentStep:t,LaunchStep:n,LaunchSequence:l,isStepCompleted:u,isFlowCompleted:c}=(0,i.useSelect)((e=>{const t=e(a.sC);return{currentStep:t.getCurrentStep(),LaunchStep:t.getLaunchStep(),LaunchSequence:t.getLaunchSequence(),isStepCompleted:t.isStepCompleted,isFlowCompleted:t.isFlowCompleted()}})),d={[n.Name]:__("Name your site","full-site-editing"),[n.Domain]:__("Select a domain","full-site-editing"),[n.Plan]:__("Select a plan","full-site-editing"),[n.Final]:__("Launch your site","full-site-editing")},{setStep:f}=(0,i.useDispatch)(a.sC);return(0,r.createElement)("div",{className:"nux-launch-menu"},(0,r.createElement)("h4",null,__("Site Launch Steps","full-site-editing")),(0,r.createElement)("div",{className:"nux-launch-menu__item-group"},l.map((i=>(0,r.createElement)(s.Z,{key:i,title:d[i],isCompleted:u(i),isCurrent:i===t,onClick:()=>(t=>{f(t),e(t)})(i),isDisabled:i===n.Final&&!c})))))}},8374:function(e,t,n){"use strict";var r=n(9307),i=n(5609),o=n(5869),a=n(9806),s=n(2779),l=n.n(s);n(9196);const u=(0,r.createElement)(i.SVG,{viewBox:"0 0 24 24"},(0,r.createElement)(i.Circle,{cx:"12",cy:"12",r:"5"}));t.Z=({title:e,isCompleted:t,isCurrent:n,isDisabled:s,onClick:c})=>(0,r.createElement)(i.Button,{className:l()("nux-launch-menu__item",{"is-current":n,"is-completed":t}),onClick:c,disabled:s,isLink:!0},(0,r.createElement)(o.Z,{icon:t?a.Z:u,size:16}),(0,r.createElement)("span",null,e))},9095:function(e,t,n){"use strict";var r=n(9307),i=n(849),o=n(6357),a=n(3357),s=n(5609),l=n(9818),u=n(5736),c=n(5869),d=n(1742),f=n(8565),p=n(2779),m=n.n(p),g=n(9196),h=n.n(g),y=n(8398),v=n(2526),b=n(2326),_=n(8318);n(7280);const __=u.__;t.Z=({onClose:e,isLaunchImmediately:t})=>{const{siteId:n}=h().useContext(o.Z),{step:u,isSidebarFullscreen:p}=(0,l.useSelect)((e=>e(_.sC).getState())),[g,S]=h().useState(!1),[E,A]=h().useState(!1),{launchSite:w}=(0,l.useDispatch)(_.j4),{savePost:P}=(0,l.useDispatch)("core/editor"),x=(0,i.bU)(),{setPlanProductId:C}=(0,l.useDispatch)(_.sC),N=(0,l.useSelect)((e=>e(_.Fs).getDefaultFreePlan(x))),I=h().useCallback((()=>{w(n),S(!0)}),[w,S,n]);return h().useEffect((()=>{t&&!g&&S(!0)}),[g,t]),h().useEffect((()=>{t&&!E&&null!=N&&N.productIds[0]&&(C(null==N?void 0:N.productIds[0]),A(!0),(async()=>{await P()})(),I())}),[t,E,I,P,N,C]),(0,a.X)(),(0,r.createElement)(s.Modal,{open:!0,className:m()("nux-launch-modal",`step-${u}`,p?"is-sidebar-fullscreen":""),overlayClassName:"nux-launch-modal-overlay",bodyOpenClassName:"has-nux-launch-modal",onRequestClose:e,title:""},g?(0,r.createElement)("div",{className:"nux-launch-modal-body__launching"},__("Hooray! Your site will be ready shortly.","full-site-editing")):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"nux-launch-modal-body"},(0,r.createElement)("div",{className:"nux-launch-modal-header"},(0,r.createElement)("div",{className:"nux-launch-modal-header__wp-logo"},(0,r.createElement)(c.Z,{icon:d.Z,size:36})),(0,r.createElement)(v.Z,null)),(0,r.createElement)(y.Z,{onSubmit:I})),(0,r.createElement)("div",{className:"nux-launch-modal-aside"},(0,r.createElement)(b.Z,null)),(0,r.createElement)(s.Button,{isLink:!0,className:"nux-launch-modal__close-button",onClick:e,"aria-label":__("Close dialog","full-site-editing"),disabled:!e},(0,r.createElement)("span",null,(0,r.createElement)(c.Z,{icon:f.Z,size:24})))))}},2526:function(e,t,n){"use strict";var r=n(9307),i=n(9818),o=n(5736),a=n(6656),s=(n(9196),n(8318));n(3232);t.Z=()=>{const{__:__}=(0,a.useI18n)(),{currentStep:e,LaunchSequence:t}=(0,i.useSelect)((e=>{const t=e(s.sC);return{currentStep:t.getCurrentStep(),LaunchSequence:t.getLaunchSequence()}})),n=t.indexOf(e)+1,l=t.length,u=(0,o.sprintf)(__("%1$d of %2$d","full-site-editing"),n,l);return(0,r.createElement)("div",{className:"nux-launch-progress"},u)}},2326:function(e,t,n){"use strict";var r=n(9307),i=n(5915),o=n(9211),a=n(9818),s=n(5736),l=(n(9196),n(6915)),u=n(8318);n(1128);const __=s.__;t.Z=()=>{const{setStep:e,unsetSidebarFullscreen:t}=(0,a.useDispatch)(u.sC),n=(0,a.useSelect)((e=>e(u.sC).getLaunchSequence()));return(0,r.createElement)("div",{className:"nux-launch-sidebar"},(0,r.createElement)("div",{className:"nux-launch-sidebar__header"},(0,r.createElement)(i.b,null,__("You're almost there!","full-site-editing")),(0,r.createElement)(i.D,null,__("Complete the following steps to launch your site. Your site will remain private until you Launch.","full-site-editing"))),(0,r.createElement)("div",{className:"nux-launch-sidebar__body"},(0,r.createElement)(l.Z,{onMenuItemClick:()=>{t()}})),(0,r.createElement)("div",{className:"nux-launch-sidebar__footer"},(0,r.createElement)(o.ZP,{sticky:!0},(0,r.createElement)(o.aW,{onClick:()=>{e(n[0]),t()}},__("Get Started","full-site-editing")))))}},381:function(e,t,n){"use strict";var r=n(9307);n(9196),n(8306);t.Z=({children:e})=>(0,r.createElement)(r.Fragment,null,e)},9270:function(e,t,n){"use strict";var r=n(9307),i=n(6115),o=n(2999),a=n(3446),s=n(849),l=n(780),u=n(5144),c=n(6956),d=n(5915),f=n(9211),p=n(9818),m=n(6656),g=(n(9196),n(1157)),h=n(381),y=n(8318);t.Z=({onPrevStep:e,onNextStep:t})=>{const{__:__,hasTranslation:n}=(0,m.useI18n)(),v=(0,s.bU)(),{onDomainSelect:b,onExistingSubdomainSelect:_,currentDomain:S}=(0,l.my)(),{siteSubdomain:E}=(0,u.j)(),{domainSearch:A,setDomainSearch:w}=(0,c.f)(),{confirmDomainSelection:P}=(0,p.useDispatch)(y.sC),x=()=>{P(),null==t||t()},C=__("Free for the first year with any paid plan.","full-site-editing"),N=__("Free for the first year with any annual plan.","full-site-editing"),I="en"===v||null!=n&&n("Free for the first year with any annual plan.")?N:C;return(0,r.createElement)(h.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(d.b,null,__("Choose a domain","full-site-editing")),(0,r.createElement)(d.D,null,I)),(0,r.createElement)(f.ZP,{sticky:!1},(0,r.createElement)(f.aW,{onClick:x,disabled:!A}))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)(o.ZP,{analyticsFlowId:g.OS,initialDomainSearch:A,onSetDomainSearch:w,onDomainSearchBlur:e=>{(0,i.jN)("calypso_newsite_domain_search_blur",{flow:g.OS,query:e,where:"editor_domain_modal"})},currentDomain:S||(0,a.nf)(null==E?void 0:E.domain),existingSubdomain:(0,a.nf)(null==E?void 0:E.domain),onDomainSelect:b,onExistingSubdomainSelect:_,analyticsUiAlgo:"editor_domain_modal",segregateFreeAndPaid:!0,locale:v})),(0,r.createElement)("div",{className:"nux-launch-step__footer"},(0,r.createElement)(f.ZP,{sticky:!0},(0,r.createElement)(f.xE,{onClick:()=>{null==e||e()}}),(0,r.createElement)(f.aW,{onClick:x,disabled:!A}))))}},4502:function(e,t,n){"use strict";var r=n(9307),i=n(7384),o=n(1806),a=n(7450),s=n(849),l=n(7498),u=n(4557),c=n(5144),d=n(8463),f=n(6956),p=n(5915),m=n(9211),g=n(3509),h=n(5609),y=n(9818),v=n(5736),b=n(5869),_=n(9806),S=n(6656),E=n(2779),A=n.n(E),w=(n(9196),n(381)),P=n(8318);n(4734);const x=(0,r.createElement)(b.Z,{icon:_.Z,size:17});t.Z=({onNextStep:e,onPrevStep:t})=>{const{domain:n,LaunchStep:b,isStepCompleted:_,isFlowCompleted:E,planProductId:C}=(0,y.useSelect)((e=>{const t=e(P.sC);return{domain:t.getSelectedDomain(),LaunchStep:t.getLaunchStep(),isStepCompleted:t.isStepCompleted,isFlowCompleted:t.isFlowCompleted(),planProductId:t.getSelectedPlanProductId()}})),{__:__,hasTranslation:N}=(0,S.useI18n)(),I=(0,s.bU)(),[O,$]=(0,y.useSelect)((e=>[e(P.Fs).getPlanByProductId(C,I),e(P.Fs).getPlanProductById(C)])),{title:L}=(0,u.Z)(),{siteSubdomain:M}=(0,c.j)(),k=(0,d.V)(),{domainSearch:F}=(0,f.f)(),{setStep:T}=(0,y.useDispatch)(P.sC),D=(0,l.Iu)(),R=(0,r.createElement)("div",{className:"nux-launch__summary-item"},(0,r.createElement)("p",null,__("Site","full-site-editing"),": ",L)),Z=(0,r.createElement)("div",{className:"nux-launch__summary-item"},null!=n&&n.domain_name?(0,r.createElement)("p",null,__("Custom domain","full-site-editing"),": ",n.domain_name,"MONTHLY"===(null==$?void 0:$.billingPeriod)&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("br",null),(0,r.createElement)("span",{className:"nux-launch__summary-item__domain-price"},__("Domain Registration","full-site-editing"),":"," ",(0,v.sprintf)(__("%s/year","full-site-editing"),n.cost)))):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",null,__("Free site address","full-site-editing"),": ",null==M?void 0:M.domain),(0,r.createElement)(h.Tip,null,F?(0,r.createInterpolateElement)(__("A custom site address like <DomainName /> (<Link>now available!</Link>) is more unique and can help with your SEO ranking.","full-site-editing"),{DomainName:(0,r.createElement)("span",{className:A()("nux-launch__summary-item__domain-name",{"is-loading":!k})},(null==k?void 0:k.domain_name)||"loading-example.com"),Link:(0,r.createElement)(h.Button,{isLink:!0,onClick:()=>T(b.Domain)})}):__("A custom site address is more unique and can help with your SEO ranking.","full-site-editing")))),j=__("billed annually","full-site-editing"),B=__("per month, billed as %s annually","full-site-editing"),U="en"===I||null!=N&&N("per month, billed as %s annually")?(0,v.sprintf)(B,null==$?void 0:$.annualPrice):j,G=__("per month, billed monthly","full-site-editing"),H=(0,r.createElement)("div",{className:"nux-launch__summary-item"},O&&$&&!O.isFree?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com ",O.title),__("Plan subscription","full-site-editing"),": ",$.price," ","ANNUALLY"===$.billingPeriod?U:G):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com Free"),(0,r.createElement)("p",null,__("Plan subscription: Free forever","full-site-editing")),(0,r.createElement)(h.Tip,null,(0,r.createInterpolateElement)((0,v.sprintf)(__("<Link>Upgrade to Premium</Link> to get access to 13GB storage space, payment collection options, 24/7 Live Chat support, and more. Not sure? Give it a spin—we offer %1$d-day full-refunds, guaranteed.","full-site-editing"),14),{Link:(0,r.createElement)(h.Button,{isLink:!0,onClick:()=>T(b.Plan)})}))));return(0,r.createElement)(w.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(p.b,null,__("Launch your site","full-site-editing")),(0,r.createElement)(p.D,null,__("Your site will be made public and ready to share with others.","full-site-editing")))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)(g.a,{theme:i.Z},(0,r.createElement)(o._U,null,_(b.Plan)&&(0,r.createElement)(o.Bb,null,(0,r.createElement)(o.nb,{className:"nux-launch__feature-list"},(0,r.createElement)("h3",{className:"nux-launch__feature-list-title"},__("Included in your plan","full-site-editing")),(0,r.createElement)("ul",{className:"nux-launch__feature-item-group"},null==O?void 0:O.features.filter((e=>"ANNUALLY"===(null==$?void 0:$.billingPeriod)||!e.requiresAnnuallyBilledPlan)).map(((e,t)=>(0,r.createElement)("li",{key:t,className:"nux-launch__feature-item"},x," ",e.name)))),(0,r.createElement)("p",null,__("Questions?","full-site-editing")," ",(0,r.createElement)(h.Button,{isLink:!0,href:D("https://wordpress.com/help/contact",I),target:"_blank",rel:"noopener noreferrer"},__("Ask a Happiness Engineer","full-site-editing"))))),(0,r.createElement)(o.r8,null,(0,r.createElement)(o.V9,{isStepActive:!1,titleContent:__("Your site name","full-site-editing"),isStepComplete:_(b.Name),goToThisStep:()=>T(b.Name),completeStepContent:R,stepId:"name",formStatus:a.PX.READY}),(0,r.createElement)(o.V9,{isStepActive:!1,titleContent:__("Your domain","full-site-editing"),isStepComplete:_(b.Domain),goToThisStep:()=>T(b.Domain),completeStepContent:Z,stepId:"domain",formStatus:a.PX.READY}),(0,r.createElement)(o.V9,{isStepActive:!1,titleContent:__("Your plan","full-site-editing"),isStepComplete:_(b.Plan),goToThisStep:()=>T(b.Plan),completeStepContent:H,stepId:"plan",formStatus:a.PX.READY}),(0,r.createElement)(o.ds,null,(0,r.createElement)(h.Button,{isPrimary:!0,disabled:!E,onClick:e,className:"nux-launch__submit-button"},__("Launch your site","full-site-editing"))))))),(0,r.createElement)("div",{className:"nux-launch-step__footer"},(0,r.createElement)(m.ZP,{sticky:!0},(0,r.createElement)(m.xE,{onClick:()=>{null==t||t()}}))))}},958:function(e,t,n){"use strict";var r=n(9307),i=n(4557),o=n(5915),a=n(9211),s=n(5609),l=n(5736),u=(n(9196),n(381));n(8594);const __=l.__;t.Z=({onPrevStep:e,onNextStep:t})=>{const{title:n,updateTitle:l}=(0,i.Z)(),c=()=>{null==t||t()};return(0,r.createElement)(u.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(o.b,null,__("Name your site","full-site-editing")),(0,r.createElement)(o.D,null,__("Pick a name for your site.","full-site-editing"))),(0,r.createElement)(a.ZP,{sticky:!1},(0,r.createElement)(a.aW,{onClick:c,disabled:!(null!=n&&n.trim())}))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)("form",{onSubmit:c},(0,r.createElement)(s.TextControl,{id:"nux-launch-step__input",className:"nux-launch-step__input",onChange:l,value:n||"",spellCheck:!1,autoComplete:"off",placeholder:__("Enter site name","full-site-editing"),autoCorrect:"off"}),(0,r.createElement)("div",{className:"nux-launch-step__input-hint"},(0,r.createElement)(s.Tip,{size:18}),(0,r.createElement)("span",null,__("Don't worry, you can change it later.","full-site-editing"))))),(0,r.createElement)("div",{className:"nux-launch-step__footer"},(0,r.createElement)(a.ZP,{sticky:!0},(0,r.createElement)(a.xE,{onClick:()=>{null==e||e()}}),(0,r.createElement)(a.aW,{onClick:c,disabled:!(null!=n&&n.trim())}))))}},4524:function(e,t,n){"use strict";var r=n(9307),i=n(3073),o=n(5915),a=n(9211),s=n(5315),l=n(9818),u=n(5736),c=(n(9196),n(381)),d=n(8318);n(7605);const __=u.__;t.Z=({onPrevStep:e,onNextStep:t})=>{var n;const{domain:f,LaunchStep:p,selectedPlanProductId:m}=(0,l.useSelect)((e=>{const t=e(d.sC);return{domain:t.getSelectedDomain(),LaunchStep:t.getLaunchStep(),selectedPlanProductId:t.getSelectedPlanProductId()}})),{setPlanProductId:g,setStep:h}=(0,l.useDispatch)(d.sC),{selectedFeatures:y}=(0,i.W)(),v=f&&!f.is_free;return(0,r.createElement)(c.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(o.b,null,__("Select a plan","full-site-editing")),(0,r.createElement)(o.D,null,(0,u.sprintf)(__("Pick a plan that’s right for you. Switch plans as your needs change. There’s no risk, you can cancel for a full refund within %1$d days.","full-site-editing"),14)))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)(s.Z,{currentPlanProductId:m,currentDomain:f,onPlanSelect:e=>{g(e),null==t||t()},onPickDomainClick:()=>{h(p.Domain)},disabledPlans:v?{free:__("Unavailable with domain","full-site-editing")}:void 0,isAccordion:!0,selectedFeatures:y,locale:(null===(n=window.wpcomEditorSiteLaunch)||void 0===n?void 0:n.locale)||"en"})),(0,r.createElement)("div",{className:"nux-launch-step__footer"},(0,r.createElement)(a.ZP,{sticky:!0},(0,r.createElement)(a.xE,{onClick:()=>{null==e||e()}}))))}},8398:function(e,t,n){"use strict";var r=n(9307),i=n(9818),o=n(9196),a=n.n(o),s=n(9270),l=n(4502),u=n(958),c=n(4524),d=n(8318);n(8508);t.Z=({onSubmit:e})=>{const{step:t}=(0,i.useSelect)((e=>e(d.sC).getState())),n=(0,i.useSelect)((e=>e(d.sC).getLaunchStep())),o=(0,i.useSelect)((e=>e(d.sC).getLaunchSequence())),f=(0,i.useSelect)((e=>e(d.sC).getFirstIncompleteStep())),{setStep:p,setSidebarFullscreen:m,unsetSidebarFullscreen:g}=(0,i.useDispatch)(d.sC),h={[n.Name]:u.Z,[n.Domain]:s.Z,[n.Plan]:c.Z,[n.Final]:l.Z},y=o.indexOf(t),v=h[t];return a().useEffect((()=>{f&&f!==n.Name&&p(f)}),[]),(0,r.createElement)(v,{onPrevStep:()=>{let e=y-1;e<0&&(e=0,m()),p(o[e])},onNextStep:()=>{const t=y+1;t>o.length-1&&(null==e||e()),g(),p(o[t])}})}},8318:function(e,t,n){"use strict";n.d(t,{j4:function(){return r},sC:function(){return i},Fs:function(){return o}});n(3288);const r="automattic/site",i="automattic/launch",o="automattic/onboard/plans"},8550:function(e,t,n){"use strict";n.d(t,{O0:function(){return a},gQ:function(){return s},Rd:function(){return l}});var r=n(2694),i=n(6483),o=n(1157);const a=()=>{var e,t;return(null===(e=window)||void 0===e||null===(t=e.calypsoifyGutenberg)||void 0===t?void 0:t.currentCalypsoUrl)??window.location.href},s=e=>{let t="https://wordpress.com";try{var n,r;t=new URL((null===(n=window)||void 0===n||null===(r=n.calypsoifyGutenberg)||void 0===r?void 0:r.currentCalypsoUrl)||"").origin}catch{}(e=>{window.top.location.href=e})(`${t}${e.startsWith("/")?e:`/${e}`}`)},l=(e=window._currentSiteId.toString(),t=!1,n)=>{var l,u;const c="a8c.wpcom-block-editor.openCheckoutModal",d=(null===(l=window)||void 0===l||null===(u=l.wpcomEditorSiteLaunch)||void 0===u?void 0:u.launchFlow)===o.Js,f=a().split("?")[0];if((0,r.hasAction)(c)&&d&&!t)return void(0,r.doAction)(c,{checkoutOnSuccessCallback:n,isFocusedLaunch:!0,redirectTo:(0,i.addQueryArgs)(f,{[o.nU]:!0})});const p=(0,i.addQueryArgs)(`/checkout/${e}`,{...!t&&{redirect_to:`/home/${e}`}});s(p)}},6115:function(e,t,n){"use strict";n.d(t,{jN:function(){return r.jN},Sn:function(){return i.Sn},Lo:function(){return i.Lo},k9:function(){return i.k9}});n(1694),n(6209),n(9377);var r=n(9792),i=n(3722)},9377:function(e,t,n){"use strict";let r=null;"undefined"!=typeof window&&window.addEventListener("popstate",(function(){r=null}))},9792:function(e,t,n){"use strict";n.d(t,{jN:function(){return f}});var r=n(2699),i=n(4898),o=(n(3421),n(2819)),a=(n(9377),n(6209),n(9358));n(1694);const s=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];let l,u=Promise.resolve();function c(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(u=(0,i.ve)("//stats.wp.com/w.js?63"));const d=new r.EventEmitter;function f(e,t){if(t=t||{},(0,a.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,o.includes)(s,e)){if(l){const e=l(t);t={...t,...e}}t=(0,o.omitBy)(t,(e=>void 0===e)),(0,a.Z)('Recording event "%s" with actual props %o',e,t),c(["recordEvent",e,t]),d.emit("record-event",e,t)}else(0,a.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(e,t,n){"use strict";n.d(t,{Sn:function(){return o},Lo:function(){return a},k9:function(){return s}});var r=n(8767),i=n(9792);function o({railcarId:e,uiAlgo:t,uiPosition:n,fetchAlgo:r,result:o,query:a}){(0,i.jN)("calypso_traintracks_render",{railcar:e,ui_algo:t,ui_position:n,fetch_algo:r,rec_result:o,fetch_query:a})}function a({railcarId:e,action:t}){(0,i.jN)("calypso_traintracks_interact",{railcar:e,action:t})}function s(e="recommendation"){return`${(0,r.Z)().replace(/-/g,"")}-${e}`}},6209:function(e,t,n){"use strict";n(4)},9358:function(e,t,n){"use strict";var r=n(8049),i=n.n(r);t.Z=i()("calypso:analytics")},1694:function(e,t,n){"use strict";n(9358)},4:function(e,t,n){"use strict";n(8032)},4790:function(e,t,n){"use strict";var r=n(7896),i=n(9307),o=n(2248),a=(n(9196),n(6654));const s=(0,o.Z)("button")`
12
  display: block;
13
  width: ${e=>e.fullWidth?"100%":"auto"};
14
  font-size: 16px;
@@ -59,10 +59,10 @@ object-assign
59
  background-position: 200px 0;
60
  }
61
  }
62
- `;function l({disabled:e,buttonType:t,theme:n}){const{colors:r}=n;if(e)return r.disabledPaymentButtons;switch(t){case"paypal":return r.paypalGoldHover;case"primary":return r.primaryOver;case"secondary":return r.highlightOver;default:return"none"}}function u({disabled:e,buttonType:t,theme:n}){const{colors:r}=n;if(e)return r.disabledButtons;switch(t){case"primary":case"secondary":return r.surface;case"text-button":return r.highlight;default:return r.textColor}}function c({disabled:e,buttonType:t,theme:n}){const{colors:r}=n;if(e&&"text-button"!==t)return r.disabledPaymentButtons;switch(t){case"paypal":return r.paypalGold;case"primary":return r.primary;case"secondary":return r.highlight;default:return"none"}}function d({disabled:e,buttonType:t,theme:n}){const{colors:r}=n;if(e)return r.disabledPaymentButtonsAccent;switch(t){case"paypal":return r.paypalGoldHover;case"primary":return r.primaryOver;case"secondary":return r.highlightOver;default:return"none"}}function f({buttonType:e}){return"text-button"===e?"underline":"none"}t.Z=({className:e,buttonType:t,isBusy:n,children:o,fullWidth:l,...u})=>{const c=(0,a.Z)(["checkout-button",...t?["is-status-"+t]:[],...n?["is-busy"]:[],...e?[e]:[]]);return(0,i.createElement)(s,(0,r.Z)({fullWidth:l,buttonType:t,className:c},u),o)}},3246:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(6666),i=n(9307),o=n(2248),a=n(8049),s=n.n(a),l=n(9196),u=n.n(l);const c=s()("composite-checkout:checkout-error-boundary"),d=o.Z.div`
63
  margin: 2em;
64
  text-align: center;
65
- `;class f extends u().Component{constructor(e){super(e),(0,r.Z)(this,"state",{hasError:!1})}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){if(this.props.onError){const n=`${e.message}; Stack: ${e.stack}; Component Stack: ${t.componentStack}`;c("reporting the error",n),this.props.onError(n)}}render(){return this.state.hasError?(0,i.createElement)(p,{errorMessage:this.props.errorMessage}):this.props.children}}function p({errorMessage:e}){return(0,i.createElement)(d,null,e)}},7984:function(e,t,n){"use strict";var r=n(7896),i=n(9307),o=(n(9196),n(4790));t.Z=function({value:e,onClick:t,ariaLabel:n,...a}){return(0,i.createElement)(o.Z,(0,r.Z)({onClick:t,buttonType:"primary","aria-label":n},a),e)}},1806:function(e,t,n){"use strict";n.d(t,{_U:function(){return h},Bb:function(){return v},nb:function(){return b},r8:function(){return _},ds:function(){return S},V9:function(){return P}});var r=n(9307),i=n(2248),o=n(6656),a=n(8049),s=n.n(a),l=n(3980),u=n.n(l),c=(n(9196),n(6654)),d=n(7450),f=n(4790),p=n(3246),m=n(7984),g=n(5197);s()("composite-checkout:checkout"),i.Z.div`
66
  *:focus {
67
  outline: ${e=>e.theme.colors.outline} solid 2px;
68
  }
@@ -288,9 +288,9 @@ object-assign
288
  svg {
289
  margin-top: 4px;
290
  }
291
- `;function k({isComplete:e,isActive:t,className:n,children:i,id:o}){const a=!t&&e;return(0,r.createElement)(O,{className:(0,c.Z)([n,"checkout-step__stepper"])},(0,r.createElement)($,{isComplete:a},(0,r.createElement)(L,{isComplete:a,isActive:t},i),(0,r.createElement)(M,null,(0,r.createElement)(g.nQ,{id:o}))))}I.propTypes={id:u().string,className:u().string,stepNumber:u().number,title:u().node.isRequired,isActive:u().bool,isComplete:u().bool,editButtonText:u().string,editButtonAriaLabel:u().string,onEdit:u().func},k.propTypes={id:u().string,className:u().string,isComplete:u().bool,isActive:u().bool}},5197:function(e,t,n){"use strict";n.d(t,{nQ:function(){return a}});var r=n(9307),i=n(2248);n(9196);const o=i.Z.svg`
292
  fill: #fff;
293
- `;function a({className:e,id:t}){return(0,r.createElement)(o,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:e},(0,r.createElement)("mask",{id:t+"-check-icon-mask","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"16",height:"12"},(0,r.createElement)("path",{d:"M7.32916 13.2292L3.85416 9.75417L2.67083 10.9292L7.32916 15.5875L17.3292 5.58751L16.1542 4.41251L7.32916 13.2292Z"})),(0,r.createElement)("g",{mask:"url(#"+t+"-check-icon-mask)"},(0,r.createElement)("rect",{width:"20",height:"20"})))}},6654:function(e,t,n){"use strict";function r(e){return e.filter((e=>e)).join(" ")}n.d(t,{Z:function(){return r}})},5777:function(e,t,n){"use strict";n.d(t,{I:function(){return r}});const r={wordpressBlue5:"#BEDAE6",wordpressBlue40:"#187AA2",wordpressBlue50:"#006088",wordpressBlue60:"#004E6E",wordpressBlue80:"#002C40",blue5:"#BBE0FA",blue30:"#399CE3",blue40:"#1689DB",blue50:"#0675C4",blue60:"#055D9C",blue80:"#02395C",gray0:"#F6F7F7",gray5:"#DCDCDE",gray10:"#C3C4C7",gray20:"#A7AAAD",gray30:"#8E9196",gray50:"#646970",gray80:"#2C3338",pink50:"#C9356E",pink60:"#AB235A",pink80:"#700F3B",green50:"#008A20",red50:"#D63638",red0:"#F7EBEC",white:"#FFF",black:"#000"}},7384:function(e,t,n){"use strict";var r=n(5777);const i={colors:{background:r.I.gray0,surface:r.I.white,primary:r.I.pink50,primaryBorder:r.I.pink80,primaryOver:r.I.pink60,highlight:r.I.blue50,highlightBorder:r.I.blue80,highlightOver:r.I.blue60,success:r.I.green50,discount:r.I.green50,disabledPaymentButtons:r.I.gray0,disabledPaymentButtonsAccent:r.I.gray5,disabledButtons:r.I.gray20,borderColor:r.I.gray10,borderColorLight:r.I.gray5,borderColorDark:r.I.gray50,upcomingStepBackground:r.I.gray5,textColor:r.I.gray80,textColorLight:r.I.gray50,textColorDark:r.I.black,error:r.I.red50,warningBackground:r.I.red0,outline:r.I.blue30,applePayButtonColor:r.I.black,applePayButtonRollOverColor:r.I.gray80,noticeBackground:r.I.gray80,defaultNoticeIconBackground:r.I.gray30,textColorOnDarkBackground:r.I.white,paypalGold:"#F0C443",paypalGoldHover:"#FFB900",modalBackground:"rgba( 255,255,255,0.9 )",disabledField:r.I.gray0,placeHolderTextColor:r.I.gray30},breakpoints:{desktopUp:"min-width: 960px",tabletUp:"min-width: 700px",bigPhoneUp:"min-width: 480px",smallPhoneUp:"min-width: 400px"},weights:{bold:"600",normal:"400"},fonts:{body:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'},fontSize:{small:"14px"}};t.Z=i},7450:function(e,t,n){"use strict";let r,i,o;n.d(t,{PX:function(){return r}}),function(e){e.LOADING="loading",e.READY="ready",e.SUBMITTING="submitting",e.VALIDATING="validating",e.COMPLETE="complete"}(r||(r={})),function(e){e.SUCCESS="SUCCESS",e.REDIRECT="REDIRECT",e.MANUAL="MANUAL",e.ERROR="ERROR"}(i||(i={})),function(e){e.NOT_STARTED="not-started",e.PENDING="pending",e.COMPLETE="complete",e.REDIRECTING="redirecting",e.ERROR="error"}(o||(o={}))},3600:function(e,t,n){"use strict";n.r(t),n.d(t,{receiveCategories:function(){return r},fetchDomainSuggestions:function(){return i},receiveDomainAvailability:function(){return o},receiveDomainSuggestionsSuccess:function(){return a},receiveDomainSuggestionsError:function(){return s}});const r=e=>({type:"RECEIVE_CATEGORIES",categories:e}),i=()=>({type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}),o=(e,t)=>({type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}),a=(e,t)=>({type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}),s=e=>({type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()})},584:function(e,t,n){"use strict";n.d(t,{L:function(){return r},r:function(){return i}});const r="automattic/domains/suggestions";let i;!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(i||(i={}))},8077:function(e,t,n){"use strict";n.d(t,{z2:function(){return d}});var r=n(9818),i=n(3661),o=n(3600),a=n(584),s=n(3717),l=n(2269),u=n(267);let c=!1;function d(){return c||(c=!0,(0,r.registerStore)(a.L,{actions:o,controls:i.ai,reducer:s.Z,resolvers:l,selectors:u})),a.L}},3717:function(e,t,n){"use strict";var r=n(9818),i=n(584),o=n(4211);const a={state:i.r.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},s=(0,r.combineReducers)({categories:(e=[],t)=>"RECEIVE_CATEGORIES"===t.type?t.categories:e,domainSuggestions:(e=a,t)=>"FETCH_DOMAIN_SUGGESTIONS"===t.type?{...e,state:i.r.Pending,errorMessage:null,pendingSince:t.timeStamp}:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?{...e,state:i.r.Success,data:{...e.data,[(0,o.Le)(t.queryObject)]:t.suggestions},errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?{...e,state:i.r.Failure,errorMessage:t.errorMessage,lastUpdated:t.timeStamp,pendingSince:void 0}:e,availability:(e={},t)=>"RECEIVE_DOMAIN_AVAILABILITY"===t.type?{...e,[t.domainName]:t.availability}:e});t.Z=s},2269:function(e,t,n){"use strict";n.r(t),n.d(t,{isAvailable:function(){return c},getCategories:function(){return d},__internalGetDomainSuggestions:function(){return f}});var r=n(1481),i=n(9126),o=n(6468),a=n.n(o),s=n(3661),l=n(3600),u=n(4211);const c=function*(e){const t=function(e){return`https://public-api.wordpress.com/rest/v1.3/domains/${encodeURIComponent(e)}/is-available?is_cart_pre_check=true`}(e);try{const{body:n}=yield(0,s.An)(t);return(0,l.receiveDomainAvailability)(e,n)}catch{return(0,l.receiveDomainAvailability)(e,{domain_name:e,mappable:"unknown",status:"unknown",supports_privacy:!1})}};function*d(){const{body:e}=yield(0,s.An)("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");return(0,l.receiveCategories)(e)}function*f(e){if(!e.query)return(0,l.receiveDomainSuggestionsError)("Empty query");yield(0,l.fetchDomainSuggestions)();try{const t=yield(0,s._9)({apiVersion:"1.1",path:"/domains/suggestions",query:(0,i.stringify)(e)});if(!Array.isArray(t))return(0,l.receiveDomainSuggestionsError)((0,r.Iu)("Invalid response from the server"));if(function(e,t){return a().isFQDN(t)&&!e.some((e=>e.domain_name.toLowerCase()===t))}(t,e.query)){const n={domain_name:e.query,unavailable:!0,cost:"",raw_price:0,currency_code:""};t.unshift(n)}const n=t.map((e=>e.unavailable?e:{...e,...e.raw_price&&e.currency_code&&{cost:(0,u._B)(e.raw_price,e.currency_code)}}));return(0,l.receiveDomainSuggestionsSuccess)(e,n)}catch(t){return(0,l.receiveDomainSuggestionsError)(t.message||(0,r.Iu)("Error while fetching server response"))}}},267:function(e,t,n){"use strict";n.r(t),n.d(t,{getCategories:function(){return a},getDomainSuggestions:function(){return s},getDomainState:function(){return l},getDomainErrorMessage:function(){return u},isLoadingDomainSuggestions:function(){return c},__internalGetDomainSuggestions:function(){return d},isAvailable:function(){return f},getDomainAvailabilities:function(){return p}});var r=n(9818),i=n(584),o=n(4211);const a=e=>[...e.categories.filter((({tier:e})=>null!==e)).sort(((e,t)=>e>t?1:-1)),...e.categories.filter((({tier:e})=>null===e)).sort(((e,t)=>e.title.localeCompare(t.title)))],s=(e,t,n={})=>{const a=(0,o.o0)(t,n);return(0,r.select)(i.L).__internalGetDomainSuggestions(a)},l=e=>e.domainSuggestions.state,u=e=>e.domainSuggestions.errorMessage,c=(e,t,n={})=>{const a=(0,o.o0)(t,n);return(0,r.select)("core/data").isResolving(i.L,"__internalGetDomainSuggestions",[a])},d=(e,t)=>e.domainSuggestions.data[(0,o.Le)(t)],f=(e,t)=>e.availability[t],p=e=>e.availability},4211:function(e,t,n){"use strict";n.d(t,{Le:function(){return o},_B:function(){return a},o0:function(){return s}});var r=n(1621),i=n(5695);const o=n.n(i)();function a(e,t){return(0,r.ZP)(e,t,{stripZeros:!0})}function s(e,t){return{include_wordpressdotcom:t.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:"variation2_front",...t,query:e.trim().toLocaleLowerCase()}}},6108:function(e,t,n){"use strict";n.r(t),n.d(t,{setSidebarFullscreen:function(){return o},unsetSidebarFullscreen:function(){return a},setStep:function(){return s},setSiteTitle:function(){return l},setDomain:function(){return u},unsetDomain:function(){return c},confirmDomainSelection:function(){return d},setDomainSearch:function(){return f},setPlanProductId:function(){return p},unsetPlanProductId:function(){return m},updatePlan:function(){return g},openSidebar:function(){return h},closeSidebar:function(){return y},openFocusedLaunch:function(){return v},closeFocusedLaunch:function(){return b},enableAnchorFm:function(){return _},showSiteTitleStep:function(){return S},setModalDismissible:function(){return E},unsetModalDismissible:function(){return A},showModalTitle:function(){return w},hideModalTitle:function(){return P},enablePersistentSuccessView:function(){return x},disablePersistentSuccessView:function(){return C}});var r=n(9818),i=n(9149);const o=()=>({type:"SET_SIDEBAR_FULLSCREEN"}),a=()=>({type:"UNSET_SIDEBAR_FULLSCREEN"}),s=e=>({type:"SET_STEP",step:e}),l=e=>({type:"SET_SITE_TITLE",title:e}),u=e=>({type:"SET_DOMAIN",domain:e}),c=()=>({type:"UNSET_DOMAIN"}),d=()=>({type:"CONFIRM_DOMAIN_SELECTION"}),f=e=>({type:"SET_DOMAIN_SEARCH",domainSearch:e}),p=function*(e){if(!(0,r.select)(i.Fs).isPlanProductFree(e)){const t=(0,r.select)(i.Fs).getPlanProductById(e),n=(null==t?void 0:t.billingPeriod)??"ANNUALLY";yield(e=>({type:"SET_PLAN_BILLING_PERIOD",billingPeriod:e}))(n)}return{type:"SET_PLAN_PRODUCT_ID",planProductId:e}},m=()=>({type:"UNSET_PLAN_PRODUCT_ID"});function g(e){return p(e)}const h=()=>({type:"OPEN_SIDEBAR"}),y=()=>({type:"CLOSE_SIDEBAR"}),v=()=>({type:"OPEN_FOCUSED_LAUNCH"}),b=()=>({type:"CLOSE_FOCUSED_LAUNCH"}),_=()=>({type:"ENABLE_ANCHOR_FM"}),S=()=>({type:"SHOW_SITE_TITLE_STEP"}),E=()=>({type:"SET_MODAL_DISMISSIBLE"}),A=()=>({type:"UNSET_MODAL_DISMISSIBLE"}),w=()=>({type:"SHOW_MODAL_TITLE"}),P=()=>({type:"HIDE_MODAL_TITLE"}),x=()=>({type:"ENABLE_SUCCESS_VIEW"}),C=()=>({type:"DISABLE_SUCCESS_VIEW"})},9149:function(e,t,n){"use strict";n.d(t,{Ls:function(){return r},Fs:function(){return i}});const r="automattic/launch",i="automattic/onboard/plans"},3610:function(e,t,n){"use strict";n.d(t,{y:function(){return r},M:function(){return i}});const r={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},i=[r.Name,r.Domain,r.Plan,r.Final]},1635:function(e,t,n){"use strict";n.d(t,{z:function(){return d}});var r=n(9818),i=n(3418),o=n(6108),a=n(9149),s=n(594),l=n(4648),u=n(7092);(0,r.use)(r.plugins.persistence,s.Z);let c=!1;function d(){return c||(c=!0,(0,r.registerStore)(a.Ls,{actions:o,controls:i.controls,reducer:l.Z,selectors:u,persist:["domain","domainSearch","planProductId","planBillingPeriod","confirmedDomainSelection","isAnchorFm","isSiteTitleStepVisible","siteTitle"]})),a.Ls}},594:function(e,t,n){"use strict";var r=n(492);t.Z=(0,r.Z)("WP_LAUNCH")},4648:function(e,t,n){"use strict";var r=n(9818),i=n(3610);const o=(0,r.combineReducers)({step:(e=i.y.Name,t)=>"SET_STEP"===t.type?t.step:e,siteTitle:(e,t)=>"SET_SITE_TITLE"===t.type?t.title:e,domain:(e,t)=>"SET_DOMAIN"===t.type?t.domain:"UNSET_DOMAIN"!==t.type?e:void 0,confirmedDomainSelection:(e=!1,t)=>"CONFIRM_DOMAIN_SELECTION"===t.type||e,domainSearch:(e="",t)=>"SET_DOMAIN_SEARCH"===t.type?t.domainSearch:e,planBillingPeriod:(e="ANNUALLY",t)=>"SET_PLAN_BILLING_PERIOD"===t.type?t.billingPeriod:e,planProductId:(e,t)=>"SET_PLAN_PRODUCT_ID"===t.type?t.planProductId:"UNSET_PLAN_PRODUCT_ID"!==t.type?e:void 0,isSidebarOpen:(e=!1,t)=>"OPEN_SIDEBAR"===t.type||"CLOSE_SIDEBAR"!==t.type&&e,isSidebarFullscreen:(e=!1,t)=>"SET_SIDEBAR_FULLSCREEN"===t.type||"UNSET_SIDEBAR_FULLSCREEN"!==t.type&&e,isAnchorFm:(e=!1,t)=>"ENABLE_ANCHOR_FM"===t.type||e,isFocusedLaunchOpen:(e=!1,t)=>"OPEN_FOCUSED_LAUNCH"===t.type||"CLOSE_FOCUSED_LAUNCH"!==t.type&&e,isSiteTitleStepVisible:(e=!1,t)=>"SHOW_SITE_TITLE_STEP"===t.type||e,isModalDismissible:(e=!0,t)=>"SET_MODAL_DISMISSIBLE"===t.type||"UNSET_MODAL_DISMISSIBLE"!==t.type&&e,isModalTitleVisible:(e=!0,t)=>"SHOW_MODAL_TITLE"===t.type||"HIDE_MODAL_TITLE"!==t.type&&e});t.Z=o},7092:function(e,t,n){"use strict";n.r(t),n.d(t,{getLaunchSequence:function(){return a},getLaunchStep:function(){return s},getState:function(){return l},hasPaidDomain:function(){return u},getSelectedDomain:function(){return c},getSelectedPlanProductId:function(){return d},getLastPlanBillingPeriod:function(){return f},isSelectedPlanPaid:function(){return p},hasSelectedDomainOrSubdomain:function(){return m},isStepCompleted:function(){return g},isFlowCompleted:function(){return h},isFlowStarted:function(){return y},getFirstIncompleteStep:function(){return v},getSiteTitle:function(){return b},getCurrentStep:function(){return _},getDomainSearch:function(){return S}});var r=n(9818),i=n(9149),o=n(3610);const a=()=>o.M,s=()=>o.y,l=e=>e,u=e=>!!e.domain&&!e.domain.is_free,c=e=>e.domain,d=e=>e.planProductId,f=e=>e.planBillingPeriod,p=e=>void 0!==e.planProductId&&!(0,r.select)(i.Fs).isPlanProductFree(e.planProductId),m=e=>!!c(e)||e.confirmedDomainSelection,g=(e,t)=>{if(t===o.y.Plan)return!!d(e);if(t===o.y.Name){const e=(0,r.select)("core").getEntityRecord("root","site",void 0);return!(null==e||!e.title)}return t===o.y.Domain&&(0,r.select)(i.Ls).hasSelectedDomainOrSubdomain()},h=e=>o.M.slice(0,o.M.length-1).every((t=>g(e,t))),y=e=>o.M.some((t=>g(e,t))),v=e=>o.M.find((t=>!g(e,t))),b=e=>null==e?void 0:e.siteTitle,_=e=>e.step,S=e=>e.domainSearch},492:function(e,t,n){"use strict";function r(e){const t=e,n=e+"_TS",r={},i={getItem:e=>r.hasOwnProperty(e)?r[e]:null,setItem(e,t){r[e]=String(t)},removeItem(e){delete r[e]}},o=(()=>{try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}})()?window.localStorage:i;return{storageKey:t,storage:{getItem(e){const r=o.getItem(n);return r&&(e=>{const t=Number(e);return Boolean(t)&&t+6048e5>Date.now()})(r)&&!new URLSearchParams(window.location.search).has("fresh")?o.getItem(e):(o.removeItem(t),o.removeItem(n),null)},setItem(e,t){o.setItem(n,JSON.stringify(Date.now())),o.setItem(e,t)}}}}n.d(t,{Z:function(){return r}})},9068:function(e,t,n){"use strict";n.r(t),n.d(t,{setFeatures:function(){return r},setFeaturesByType:function(){return i},setPlans:function(){return o},setPlanProducts:function(){return a},resetPlan:function(){return s}});const r=(e,t)=>({type:"SET_FEATURES",features:e,locale:t}),i=(e,t)=>({type:"SET_FEATURES_BY_TYPE",featuresByType:e,locale:t}),o=(e,t)=>({type:"SET_PLANS",plans:e,locale:t}),a=e=>({type:"SET_PLAN_PRODUCTS",products:e}),s=()=>({type:"RESET_PLAN"})},4703:function(e,t,n){"use strict";n.d(t,{Ls:function(){return r},Ho:function(){return i},TO:function(){return o},YS:function(){return a},Gz:function(){return s},hx:function(){return l},iL:function(){return u},B6:function(){return c},xT:function(){return d},AX:function(){return f},bS:function(){return p},UB:function(){return m},BV:function(){return g},nN:function(){return h}});const r="automattic/onboard/plans",i=1,o="free",a="personal",s="premium",l="business",u="ecommerce",c=[o,a,s,l,u],d=c,f=s,p=["personal-bundle","value_bundle","business-bundle","ecommerce-bundle"],m=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],g=["free_plan",...p,...m],h=["custom-domain","support-live","priority-support"]},9734:function(e,t,n){"use strict";n.r(t),n.d(t,{plansSlugs:function(){return a.B6},plansProductSlugs:function(){return a.BV},TIMELESS_PLAN_FREE:function(){return a.TO},TIMELESS_PLAN_PERSONAL:function(){return a.YS},TIMELESS_PLAN_PREMIUM:function(){return a.Gz},TIMELESS_PLAN_BUSINESS:function(){return a.hx},TIMELESS_PLAN_ECOMMERCE:function(){return a.iL},FREE_PLAN_PRODUCT_ID:function(){return a.Ho},register:function(){return d}});var r=n(9818),i=n(3661),o=n(9068),a=n(4703),s=n(9438),l=n(5261),u=n(7738);let c=!1;function d(){return c||(c=!0,(0,r.registerStore)(a.Ls,{resolvers:l,actions:o,controls:i.ai,reducer:s.ZP,selectors:u})),a.Ls}},9438:function(e,t,n){"use strict";var r=n(9818);const i=(0,r.combineReducers)({features:(e={},t)=>"SET_FEATURES"===t.type?{...e,[t.locale]:t.features}:e,featuresByType:(e={},t)=>"SET_FEATURES_BY_TYPE"===t.type?{...e,[t.locale]:t.featuresByType}:e,planProducts:(e=[],t)=>"SET_PLAN_PRODUCTS"===t.type?t.products:e,plans:(e={},t)=>"SET_PLANS"===t.type?{...e,[t.locale]:t.plans}:e});t.ZP=i},5261:function(e,t,n){"use strict";n.r(t),n.d(t,{getSupportedPlans:function(){return p}});var r=n(1621),i=n(9126),o=n(3661),a=n(9068),s=n(4703);function l(e){return(0,r.ZP)(12*e.raw_price,e.currency_code,{stripZeros:!0})}function u(e){return(0,r.ZP)(e.raw_price,e.currency_code,{stripZeros:!0})}function c(e,t){const n=Object.keys(t).find((n=>t[n].name===e));return!!n&&t[n].requiresAnnuallyBilledPlan}function d(e,t){const n=e.highlighted_features.map((e=>({name:e,requiresAnnuallyBilledPlan:c(e,t)})));return n.sort(((e,t)=>Number(t.requiresAnnuallyBilledPlan)-Number(e.requiresAnnuallyBilledPlan))),n}function f(e,t){const n=s.BV.reduce(((n,i)=>{const o=e.find((e=>e.product_slug===i));if(!o)return n;const a=t.find((e=>e.productIds.indexOf(o.product_id)>-1));var s;return n.push({productId:o.product_id,billingPeriod:31===o.bill_period?"MONTHLY":"ANNUALLY",periodAgnosticSlug:a.periodAgnosticSlug,storeSlug:o.product_slug,rawPrice:o.raw_price,pathSlug:o.path_slug,price:31===(null==o?void 0:o.bill_period)||0===o.raw_price?u(o):(s=o,(0,r.ZP)(s.raw_price/12,s.currency_code,{stripZeros:!0})),annualPrice:31===(null==o?void 0:o.bill_period)?l(o):u(o)}),n}),[]);return function(e){for(let t=0;t<s.bS.length;t++){const n=e.find((e=>e.storeSlug===s.bS[t])),r=e.find((e=>e.storeSlug===s.UB[t]));if(n&&r){const e=12*r.rawPrice,t=n.rawPrice,i=Math.round(100*(1-t/e));n.annualDiscount=i,r.annualDiscount=i}}}(n),n}function*p(e="en"){const t=yield(0,o._9)({path:"/plans",query:(0,i.stringify)({locale:e}),apiVersion:"1.5"}),{body:n}=yield(0,o.An)(`https://public-api.wordpress.com/wpcom/v2/plans/details?locale=${encodeURIComponent(e)}`,{mode:"cors",credentials:"omit"}),r=function(e){return e.reduce(((e,t)=>(e[t.id]={id:t.id,name:t.name,description:t.description,type:"checkbox",requiresAnnuallyBilledPlan:s.nN.indexOf(t.id)>-1},e)),{})}(n.features),l=n.plans.map((e=>{var t;const n=null===(t=e.nonlocalized_short_name)||void 0===t?void 0:t.toLowerCase();return{description:e.tagline,features:d(e,r),storage:e.storage,title:e.short_name,featuresSlugs:e.features.reduce(((e,t)=>(e[t]=!0,e)),{}),isFree:n===s.TO,isPopular:n===s.Gz,periodAgnosticSlug:n,productIds:e.products.map((({plan_id:e})=>e))}})),u=f(t,l);yield(0,a.setPlans)(l,e),yield(0,a.setPlanProducts)(u),yield(0,a.setFeatures)(r,e),yield(0,a.setFeaturesByType)(n.features_by_type,e)}},7738:function(e,t,n){"use strict";n.r(t),n.d(t,{getFeatures:function(){return s},getFeaturesByType:function(){return l},getPlanByProductId:function(){return u},getPlanProductById:function(){return c},getPlanByPeriodAgnosticSlug:function(){return d},getDefaultPaidPlan:function(){return f},getDefaultFreePlan:function(){return p},getSupportedPlans:function(){return m},getPlansProducts:function(){return g},getPrices:function(){return h},getPlanByPath:function(){return y},getPlanProduct:function(){return v},isPlanEcommerce:function(){return b},isPlanFree:function(){return _},isPlanProductFree:function(){return S}});var r=n(9818),i=n(7180),o=n.n(i),a=n(4703);const s=(e,t)=>e.features[t]??{},l=(e,t)=>e.featuresByType[t]??[],u=(e,t,n)=>{if(t)return(0,r.select)(a.Ls).getSupportedPlans(n).find((e=>e.productIds.indexOf(t)>-1))},c=(e,t)=>{if(t)return(0,r.select)(a.Ls).getPlansProducts().find((e=>e.productId===t))},d=(e,t,n)=>{if(t)return(0,r.select)(a.Ls).getSupportedPlans(n).find((e=>e.periodAgnosticSlug===t))},f=(e,t)=>(0,r.select)(a.Ls).getSupportedPlans(t).find((e=>e.periodAgnosticSlug===a.AX)),p=(e,t)=>(0,r.select)(a.Ls).getSupportedPlans(t).find((e=>e.periodAgnosticSlug===a.TO)),m=(e,t)=>e.plans[t]??[],g=e=>e.planProducts,h=(e,t)=>(o()("getPrices",{alternative:"getPlanProduct().price"}),(0,r.select)(a.Ls).getPlansProducts().reduce(((e,t)=>(e[t.storeSlug]=t.price,e)),{})),y=(e,t,n)=>{if(!t)return;const i=(0,r.select)(a.Ls).getPlansProducts().find((e=>e.pathSlug===t));return i?(0,r.select)(a.Ls).getSupportedPlans(n).find((e=>e.periodAgnosticSlug===i.periodAgnosticSlug)):void 0},v=(e,t,n)=>{if(t&&n)return(0,r.select)(a.Ls).getPlansProducts().find((e=>{const r=e.periodAgnosticSlug===t,i=t===a.TO||e.billingPeriod===n;return r&&i}))},b=(e,t)=>t===a.iL,_=(e,t)=>t===a.TO,S=(e,t)=>t===a.Ho},8459:function(e,t,n){"use strict";n.d(t,{d:function(){return o}});var r=n(3661),i=n(9639);function o(e){const t=()=>({type:"FETCH_NEW_SITE"}),n=e=>({type:"RECEIVE_NEW_SITE",response:e}),o=e=>({type:"RECEIVE_NEW_SITE_FAILED",error:e});const a=(e,t)=>({type:"RECEIVE_SITE_TITLE",siteId:e,title:t}),s=e=>({type:"LAUNCH_SITE_START",siteId:e}),l=e=>({type:"LAUNCH_SITE_SUCCESS",siteId:e}),u=(e,t)=>({type:"LAUNCH_SITE_FAILURE",siteId:e,error:t});return{receiveSiteDomains:(e,t)=>({type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}),saveSiteTitle:function*(e,t){try{yield(0,r._9)({path:`/sites/${encodeURIComponent(e)}/settings`,apiVersion:"1.4",body:{blogname:t},method:"POST"}),yield a(e,t)}catch(n){}},receiveSiteTitle:a,fetchNewSite:t,fetchSite:()=>({type:"FETCH_SITE"}),receiveNewSite:n,receiveNewSiteFailed:o,resetNewSiteFailed:()=>({type:"RESET_RECEIVE_NEW_SITE_FAILED"}),createSite:function*(t){yield{type:"FETCH_NEW_SITE"};try{const{authToken:i,...o}=t,a={...{client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},...o,validate:!1},s=yield(0,r._9)({path:"/sites/new",apiVersion:"1.1",method:"post",body:a,token:i});return yield n(s),!0}catch(i){return yield o(i),!1}},receiveSite:(e,t)=>({type:"RECEIVE_SITE",siteId:e,response:t}),receiveSiteFailed:(e,t)=>({type:"RECEIVE_SITE_FAILED",siteId:e,response:t}),reset:()=>({type:"RESET_SITE_STORE"}),launchSite:function*(e){yield s(e);try{yield(0,r._9)({path:`/sites/${e}/launch`,apiVersion:"1.1",method:"post"}),yield l(e)}catch(t){yield u(e,i.Hc.INTERNAL)}},launchSiteStart:s,launchSiteSuccess:l,launchSiteFailure:u,getCart:function*(e){return yield(0,r._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"})},setCart:function*(e,t){return yield(0,r._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t})}}}},2005:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});const r="automattic/site"},2369:function(e,t,n){"use strict";n.d(t,{z2:function(){return d}});var r=n(9818),i=n(3661),o=n(8459),a=n(2005),s=n(2701),l=n(7862),u=n(4309);let c=!1;function d(e){return c||(c=!0,(0,r.registerStore)(a.L,{actions:(0,o.d)(e),controls:i.ai,reducer:s.ZP,resolvers:l,selectors:u})),a.L}},2701:function(e,t,n){"use strict";var r=n(9818),i=n(9639);const o=(0,r.combineReducers)({data:(e,t)=>{if("RECEIVE_NEW_SITE"===t.type){const{response:e}=t;return e.blog_details}if("RECEIVE_NEW_SITE_FAILED"!==t.type&&"RESET_SITE_STORE"!==t.type)return e},error:(e,t)=>{switch(t.type){case"FETCH_NEW_SITE":case"RECEIVE_NEW_SITE":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return;case"RECEIVE_NEW_SITE_FAILED":return{error:t.error.error,status:t.error.status,statusCode:t.error.statusCode,name:t.error.name,message:t.error.message}}return e},isFetching:(e=!1,t)=>{switch(t.type){case"FETCH_NEW_SITE":return!0;case"RECEIVE_NEW_SITE":case"RECEIVE_NEW_SITE_FAILED":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return!1}return e}}),a=(0,r.combineReducers)({isFetchingSiteDetails:(e=!1,t)=>{switch(t.type){case"FETCH_SITE":return!0;case"RECEIVE_SITE":case"RECEIVE_SITE_FAILED":return!1}return e},newSite:o,sites:(e={},t)=>{if("RECEIVE_SITE"===t.type)return{...e,[t.siteId]:t.response};if("RECEIVE_SITE_FAILED"===t.type){const{[t.siteId]:n,...r}=e;return{...r}}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?{...e,[t.siteId]:{...e[t.siteId],name:t.title}}:e},launchStatus:(e={},t)=>"LAUNCH_SITE_START"===t.type?{...e,[t.siteId]:{status:i.uS.IN_PROGRESS,errorCode:void 0}}:"LAUNCH_SITE_SUCCESS"===t.type?{...e,[t.siteId]:{status:i.uS.SUCCESS,errorCode:void 0}}:"LAUNCH_SITE_FAILURE"===t.type?{...e,[t.siteId]:{status:i.uS.FAILURE,errorCode:t.error}}:e,sitesDomains:(e={},t)=>"RECEIVE_SITE_DOMAINS"===t.type?{...e,[t.siteId]:t.domains}:e});t.ZP=a},7862:function(e,t,n){"use strict";n.r(t),n.d(t,{getSite:function(){return a},getSiteDomains:function(){return s}});var r=n(9818),i=n(3661),o=n(2005);function*a(e){yield(0,r.dispatch)(o.L).fetchSite();try{const t=yield(0,i._9)({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});yield(0,r.dispatch)(o.L).receiveSite(e,t)}catch(t){yield(0,r.dispatch)(o.L).receiveSiteFailed(e,void 0)}}function*s(e){try{const t=yield(0,i._9)({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});yield(0,r.dispatch)(o.L).receiveSiteDomains(e,null==t?void 0:t.domains)}catch(t){}}},4309:function(e,t,n){"use strict";n.r(t),n.d(t,{getState:function(){return a},getNewSite:function(){return s},getNewSiteError:function(){return l},isFetchingSite:function(){return u},isFetchingSiteDetails:function(){return c},isNewSite:function(){return d},getSite:function(){return f},getSiteTitle:function(){return p},isSiteLaunched:function(){return m},isSiteLaunching:function(){return g},getSiteDomains:function(){return h},getPrimarySiteDomain:function(){return y},getSiteSubdomain:function(){return v}});var r=n(9818),i=n(2005),o=n(9639);const a=e=>e,s=e=>e.newSite.data,l=e=>e.newSite.error,u=e=>e.newSite.isFetching,c=e=>e.isFetchingSiteDetails,d=e=>!!e.newSite.data,f=(e,t)=>e.sites[t],p=(e,t)=>{var n;return null===(n=(0,r.select)(i.L).getSite(t))||void 0===n?void 0:n.name},m=(e,t)=>{var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===o.uS.SUCCESS},g=(e,t)=>{var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===o.uS.IN_PROGRESS},h=(e,t)=>e.sitesDomains[t],y=(e,t)=>{var n;return null===(n=(0,r.select)(i.L).getSiteDomains(t))||void 0===n?void 0:n.find((e=>e.primary_domain))},v=(e,t)=>{var n;return null===(n=(0,r.select)(i.L).getSiteDomains(t))||void 0===n?void 0:n.find((e=>e.is_subdomain))}},9639:function(e,t,n){"use strict";let r,i,o;n.d(t,{Hc:function(){return i},uS:function(){return o}}),function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(r||(r={})),function(e){e.INTERNAL="internal"}(i||(i={})),function(e){e.UNINITIALIZED="unintialized",e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.FAILURE="failure"}(o||(o={}))},4366:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});const r="automattic/wpcom-features"},2613:function(e,t,n){"use strict";n.d(t,{$:function(){return l}});var r=n(9734);const{TIMELESS_PLAN_PERSONAL:i,TIMELESS_PLAN_PREMIUM:o,TIMELESS_PLAN_BUSINESS:a,TIMELESS_PLAN_ECOMMERCE:s}=r,l={domain:{id:"domain",minSupportedPlan:i},store:{id:"store",minSupportedPlan:s},seo:{id:"seo",minSupportedPlan:a},plugins:{id:"plugins",minSupportedPlan:a},"ad-free":{id:"ad-free",minSupportedPlan:i},"image-storage":{id:"image-storage",minSupportedPlan:o},"video-storage":{id:"video-storage",minSupportedPlan:o},support:{id:"support",minSupportedPlan:a}}},182:function(e,t,n){"use strict";n.d(t,{z:function(){return u}});var r=n(9818),i=n(3418),o=n(4366),a=n(8638),s=n(335);let l=!1;function u(){return l||(l=!0,(0,r.registerStore)(o.L,{controls:i.controls,reducer:a.Z,selectors:s})),o.L}},8638:function(e,t,n){"use strict";var r=n(2613);t.Z=(e=r.$)=>e},335:function(e,t,n){"use strict";n.r(t),n.d(t,{getAllFeatures:function(){return i},getRecommendedPlanSlug:function(){return o}});var r=n(4703);const i=e=>e,o=(e,t)=>{const n=i(e);if(t.length)return t.reduce(((e,t)=>{const i=n[t].minSupportedPlan;return r.xT.indexOf(i)>r.xT.indexOf(e)?i:e}),n[t[0]].minSupportedPlan)}},3661:function(e,t,n){"use strict";n.d(t,{_9:function(){return i},An:function(){return o},ai:function(){return a}});var r=n(8552);const i=e=>({type:"WPCOM_REQUEST",request:e}),o=(e,t)=>({type:"FETCH_AND_PARSE",resource:e,options:t}),a={WPCOM_REQUEST:({request:e})=>(0,r.ZP)(e),FETCH_AND_PARSE:async({resource:e,options:t})=>{const n=await window.fetch(e,t);return{ok:n.ok,body:await n.json()}},RELOAD_PROXY:()=>{(0,r.sS)()},REQUEST_ALL_BLOGS_ACCESS:()=>(0,r.Vw)(),WAIT:({ms:e})=>new Promise((t=>setTimeout(t,e)))}},7003:function(e,t,n){"use strict";var r=n(9307),i=n(5609),o=n(9818),a=n(5869),s=n(3383),l=n(6656),u=n(2779),c=n.n(u),d=(n(9196),n(3300));n(5918);t.Z=({onSelect:e,selected:t})=>{const{__:__}=(0,l.useI18n)(),[n,u]=(0,r.useState)(!1),f=t=>{u(!1),e(t)},p=(0,o.useSelect)((e=>e(d.GN).getCategories())),m=__("All Categories","full-site-editing");return(0,r.createElement)("div",{className:c()("domain-categories",{"is-open":n})},(0,r.createElement)(i.Button,{className:"domain-categories__dropdown-button",onClick:()=>u(!n)},(0,r.createElement)("span",null,t??m),(0,r.createElement)(a.Z,{icon:s.Z,size:16})),(0,r.createElement)("ul",{className:"domain-categories__item-group"},(0,r.createElement)("li",{className:c()("domain-categories__item",{"is-selected":!t})},(0,r.createElement)(i.Button,{onClick:()=>f()},__("View all","full-site-editing"))),p.map((({slug:e,title:n})=>(0,r.createElement)("li",{key:e,className:c()("domain-categories__item",{"is-selected":e===t})},(0,r.createElement)(i.Button,{onClick:()=>f(e)},n))))))}},6325:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(9307),i=n(6656);n(9196);const o=()=>{const{__:__,isRTL:e}=(0,i.useI18n)();return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 300 40",xmlSpace:"preserve",width:"300",style:e()?{transform:"scaleX(-1)"}:void 0},(0,r.createElement)("rect",{x:"0",width:"310",height:"50",rx:"10",fill:"#D8D8D8"}),(0,r.createElement)("rect",{x:"8",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("rect",{x:"40",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("rect",{x:"72",y:"8",width:"300",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("text",{x:"80",y:"26",direction:"ltr",textAnchor:e()?"end":"start",transform:e()?"scale(-1,1) translate(-160,0)":void 0},(0,r.createElement)("tspan",{fill:"#999"},(0,r.createElement)("tspan",null,"https://")),(0,r.createElement)("tspan",{fill:"#515151",dx:"4.5"},__("example.com","full-site-editing"))))}},1614:function(e,t,n){"use strict";var r=n(9307),i=n(2779),o=n.n(i);n(9196);t.Z=({type:e})=>(0,r.createElement)("div",{className:o()("domain-picker__suggestion-item placeholder",`type-${e}`)},(0,r.createElement)("div",{className:"domain-picker__suggestion-item-name placeholder"}),(0,r.createElement)("div",{className:"domain-picker__price placeholder"}))},7226:function(e,t,n){"use strict";var r=n(7896),i=n(9307),o=n(9196),a=n(6461);const s=o.forwardRef((({type:e,disabled:t,...n},o)=>e===a.ln?(0,i.createElement)("div",n):(0,i.createElement)("button",(0,r.Z)({ref:o,disabled:t},n))));t.Z=s},6461:function(e,t,n){"use strict";n.d(t,{fe:function(){return y},ln:function(){return v}});var r=n(7896),i=n(9307),o=n(6115),a=n(849),s=n(7498),l=n(5609),u=n(4333),c=n(5736),d=n(6656),f=n(2779),p=n.n(f),m=n(9196),g=n(413),h=n(7226);const y="radio",v="button",b="individual-item",_=({isUnavailable:e,domain:t,isLoading:n,cost:r,railcarId:f,hstsRequired:_=!1,isFree:S=!1,isExistingSubdomain:E=!1,isRecommended:A=!1,onSelect:w,onRender:P,selected:x,type:C=y,buttonRef:N})=>{const{__:__,hasTranslation:I}=(0,d.useI18n)(),O=(0,a.bU)(),$=(0,s.Iu)(),L=!(0,u.useViewportMatch)("small",">="),M=t.indexOf("."),k=t.slice(0,M),F=t.slice(M),[T,D]=m.useState(),[R,Z]=m.useState(),j=__("Default","full-site-editing"),B=__("Free","full-site-editing"),U=C===b?j:B,G=__("Included with annual plans","full-site-editing"),H=__("Included in annual plans","full-site-editing"),V="en"===O||null!=I&&I("Included in annual plans")?H:G,W=__("<strong>First year included</strong> in paid plans","full-site-editing"),z=__("<strong>First year included</strong> in annual plans","full-site-editing"),Y="en"===O||null!=I&&I("<strong>First year included</strong> in annual plans")?z:W,q=L?V:(0,i.createInterpolateElement)(Y,{strong:(0,i.createElement)("strong",null)});m.useEffect((()=>{t!==T&&R!==f&&f&&(P(),D(t),Z(f))}),[t,T,R,f,P]);const K=()=>{R&&(0,o.Lo)({action:"domain_selected",railcarId:R}),w(t)},J=__("Selected","full-site-editing"),X=__("Select","full-site-editing");return(0,i.createElement)(h.Z,{ref:N,type:C,key:k,className:p()("domain-picker__suggestion-item",{"is-free":S,"is-selected":x,"is-unavailable":e},`type-${C}`),onClick:C!==v?K:void 0,disabled:e},C===y&&(n?(0,i.createElement)(l.Spinner,null):(0,i.createElement)("span",{className:p()("domain-picker__suggestion-radio-circle",{"is-checked":x,"is-unavailable":e})})),(0,i.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,i.createElement)("div",{className:"domain-picker__suggestion-item-name-inner"},(0,i.createElement)("span",{className:p()("domain-picker__domain-wrapper",{"with-margin":!_})},(0,i.createElement)("span",{className:"domain-picker__domain-sub-domain"},k),(0,i.createElement)("span",{className:"domain-picker__domain-tld"},F)),A&&!e&&(0,i.createElement)("div",{className:"domain-picker__badge is-recommended"},__("Recommended","full-site-editing")),_&&(0,i.createElement)(g.Z,{position:L?"bottom center":"middle right",noArrow:!1,className:"domain-picker__info-tooltip"},(0,i.createInterpolateElement)(__("All domains ending with <tld /> require an SSL certificate to host a website. When you host this domain at WordPress.com an SSL certificate is included. <learn_more_link>Learn more</learn_more_link>","full-site-editing"),{tld:(0,i.createElement)("b",null,F),learn_more_link:(0,i.createElement)("a",{target:"_blank",rel:"noreferrer",href:$("https://wordpress.com/support/https-ssl")})}))),E&&C!==b&&(0,i.createElement)("div",{className:"domain-picker__change-subdomain-tip"},__("You can change your free subdomain later under Domain Settings.","full-site-editing"))),(0,i.createElement)("div",{className:p()("domain-picker__price",{"is-paid":!S})},e&&__("Unavailable","full-site-editing"),S&&!e&&U,!S&&!e&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)("span",{className:"domain-picker__price-cost"},(0,c.sprintf)(__("%s/year","full-site-editing"),r)),(0,i.createElement)("span",{className:"domain-picker__price-inclusive"}," ",q," "),(0,i.createElement)("span",{className:"domain-picker__price-renewal"},(0,c.sprintf)(__("Renews at: %s /year","full-site-editing"),r)))),C===v&&(n?(0,i.createElement)(l.Spinner,null):(0,i.createElement)("div",{className:"domain-picker__action"},(0,i.createElement)(l.Button,{ref:N,isSecondary:!0,className:p()("domain-picker__suggestion-select-button",{"is-selected":x&&!e}),disabled:e,onClick:K},x&&!e?J:X))))};t.ZP=m.forwardRef(((e,t)=>(0,i.createElement)(_,(0,r.Z)({},e,{buttonRef:t}))))},605:function(e,t,n){"use strict";var r=n(9307),i=n(9211),o=n(6656),a=(n(9196),n(7226));t.Z=({onClick:e})=>{const{__:__,_x:_x}=(0,o.useI18n)();return(0,r.createElement)(a.Z,{type:"button",className:"domain-picker__suggestion-item type-link",onClick:e},(0,r.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,r.createElement)("span",{className:"domain-picker__domain-wrapper with-margin with-bold-text"},__("Already own a domain?","full-site-editing")),(0,r.createElement)("div",null,(0,r.createElement)("span",{className:"domain-picker__item-tip"},_x("You can use it as your site's address.","Upgrades: Register domain description","full-site-editing")))),(0,r.createElement)(i.b4,{arrow:"right"},_x("Use a domain I own","Domain transfer or mapping suggestion button","full-site-editing")))}},2999:function(e,t,n){"use strict";var r=n(9307),i=n(6115),o=n(584),a=n(5609),s=n(5869),l=n(7108),u=n(6656),c=n(2819),d=n(9196),f=n.n(d),p=n(3300),m=n(5241),g=n(1045),h=n(1071),y=n(3446),v=n(7003),b=n(6325),_=n(6461),S=n(1614),E=n(605);n(5592);const A=function({groupItems:e,children:t}){return e?(0,r.createElement)("div",{className:"domain-picker__suggestion-item-group"},t):(0,r.createElement)(d.Fragment,null,t)},w=function({children:e}){return(0,r.createElement)("p",{className:"domain-picker__suggestion-group-label"},e)};t.ZP=({header:e,showDomainCategories:t,onDomainSelect:n,onExistingSubdomainSelect:P,quantity:x=p.SL,quantityExpanded:C=p.Mm,onDomainSearchBlur:N,analyticsFlowId:I,analyticsUiAlgo:O,initialDomainSearch:$="",onSetDomainSearch:L,currentDomain:M,isCheckingDomainAvailability:k,existingSubdomain:F,segregateFreeAndPaid:T=!1,showSearchField:D=!0,itemType:R=_.fe,locale:Z,areDependenciesLoading:j=!1,orderSubDomainsLast:B=!1,onUseYourDomainClick:U,vendor:G=(0,y.iY)(),showRecommendationLabel:H=!0})=>{var V;const{__:__}=(0,u.useI18n)(),W=__("Search for a domain","full-site-editing"),[z,Y]=(0,d.useState)(!1),[q,K]=(0,d.useState)($),[J,X]=(0,d.useState)(),{allDomainSuggestions:Q,errorMessage:ee,state:te,retryRequest:ne}=(0,m.O)(q.trim(),C,J,Z)||{},re=null==Q?void 0:Q.filter((e=>!(F&&e.is_free))).slice(0,z?C-1:x-1),ie=null==re?void 0:re.findIndex((e=>!e.is_free&&!e.unavailable)),oe=(0,g.$)(re,F,M);oe&&(null==re||re.push(oe));const ae=(0,h.P)();(0,d.useEffect)((()=>{Y(!1)}),[q]);const[se,le]=(0,d.useState)();(0,d.useEffect)((()=>{Q&&le((0,i.k9)("suggestion"))}),[Q,le]),(0,d.useEffect)((()=>{D||K($)}),[$,D]);const ue=f().useRef([]);(0,d.useEffect)((()=>{var e,t;z&&(null===(e=ue.current[x])||void 0===e||null===(t=e.focus)||void 0===t||t.call(e))}),[z,x]);const ce=(e,t,n,r)=>{const o=`/domains/search/${G}/${I}${J?"/"+J:""}`;(0,i.Sn)({uiAlgo:`/${I}/${O}`,fetchAlgo:o,query:q,railcarId:t,result:r?e+"#recommended":e,uiPosition:n})},de=f().useRef(),fe=te===o.r.Failure,pe=(null===(V=q.trim)||void 0===V?void 0:V.call(q).length)<=1,me=!fe&&!pe,ge=!fe&&pe;let he=x;oe&&(he+=1),U&&(he+=1),F&&(he-=1);const ye=["professional"];return F&&ye.unshift("sub-domain"),B&&ye.reverse(),(0,r.createElement)("div",{className:"domain-picker"},e&&e,D&&(0,r.createElement)("div",{className:"domain-picker__search"},(0,r.createElement)("form",{action:"",onSubmit:e=>{var t;e.preventDefault(),null==de||null===(t=de.current)||void 0===t||t.blur()}},(0,r.createElement)("div",{className:"domain-picker__search-icon"},(0,r.createElement)(s.Z,{icon:l.Z})),(0,r.createElement)(a.TextControl,{ref:e=>{de.current=e},hideLabelFromVision:!0,name:"search",label:W,placeholder:W,onChange:e=>{K(e),L&&L(e)},onBlur:e=>{N&&N(e.currentTarget.value)},value:q,dir:"ltr"}))),fe&&(0,r.createElement)(a.Notice,{className:"domain-picker__error",status:"error",isDismissible:!1},(0,r.createElement)("p",{className:"domain-picker__error-message"},ee||__("An error has occurred, please check your connection and retry.","full-site-editing")),(0,r.createElement)(a.Button,{isPrimary:!0,className:"domain-picker__error-retry-btn",onClick:ne},__("Retry","full-site-editing"))),(me||j)&&(0,r.createElement)("div",{className:"domain-picker__body"},t&&(0,r.createElement)("div",{className:"domain-picker__aside"},(0,r.createElement)(v.Z,{selected:J,onSelect:X})),(0,r.createElement)("div",{className:"domain-picker__suggestion-sections"},(0,r.createElement)("div",{className:"domain-picker__sugggested-items-container"},ye.map((e=>"sub-domain"===e?(0,r.createElement)(d.Fragment,{key:e},T&&(0,r.createElement)(w,null,__("Keep sub-domain","full-site-editing")),(0,r.createElement)(A,{key:e,groupItems:T},!j&&F&&(0,r.createElement)(_.ZP,{key:null==F?void 0:F.domain_name,domain:null==F?void 0:F.domain_name,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:se?`${se}0`:void 0,onRender:()=>ce(null==F?void 0:F.domain_name,`${se}0`,0,!1),selected:(null==M?void 0:M.domain_name)===(null==F?void 0:F.domain_name),onSelect:()=>{null==P||P(null==F?void 0:F.domain_name)},type:R})||(0,r.createElement)(S.Z,{type:R}))):(0,r.createElement)(d.Fragment,{key:e},T&&(0,r.createElement)(w,null,__("Professional domains","full-site-editing")),(0,r.createElement)(A,{key:e,groupItems:T},!j&&(null==re?void 0:re.map(((e,t)=>{var i;const o=null!=F&&F.domain_name?t+1:t,a=t===ie,s=null===(i=ae[null==e?void 0:e.domain_name])||void 0===i?void 0:i.status,l=!s||(null===p.vn||void 0===p.vn?void 0:p.vn.indexOf(s))>-1;return(0,r.createElement)(_.ZP,{ref:e=>{ue.current[o]=e},key:e.domain_name,domain:e.domain_name,cost:e.cost,isUnavailable:!l||(null==e?void 0:e.unavailable),isLoading:(null==M?void 0:M.domain_name)===e.domain_name&&k,hstsRequired:e.hsts_required,isFree:e.is_free,isRecommended:H&&a,railcarId:se?`${se}${o}`:void 0,onRender:()=>ce(e.domain_name,`${se}${o}`,o,a),onSelect:()=>{n(e)},selected:(null==M?void 0:M.domain_name)===e.domain_name,type:R})})))||(0,c.times)(he,(e=>(0,r.createElement)(S.Z,{type:R,key:e}))),U&&!!re&&(0,r.createElement)(E.Z,{onClick:U})))))),!z&&x<C&&(null==Q?void 0:Q.length)&&(null==Q?void 0:Q.length)>x&&(0,r.createElement)("div",{className:"domain-picker__show-more"},(0,r.createElement)(a.Button,{onClick:()=>Y(!0),isLink:!0},__("View more results","full-site-editing"))))),ge&&!j&&(0,r.createElement)("div",{className:"domain-picker__empty-state"},(0,r.createElement)("p",{className:"domain-picker__empty-state--text"},__("A domain name is the site address people type in their browser to visit your site.","full-site-editing")),(0,r.createElement)("div",null,(0,r.createElement)(b.q,null))))}},413:function(e,t,n){"use strict";var r=n(9307),i=n(5609),o=n(5614),a=n(2779),s=n.n(a),l=n(9196);n(125);t.Z=({children:e,className:t,id:n,position:a="bottom center",noArrow:u=!0})=>{const[c,d]=(0,l.useState)(!1);return(0,r.createElement)((e=>(0,r.createElement)(i.Button,e)),{icon:o.Z,onClick:e=>{d(!c),e.stopPropagation()},className:"info-tooltip","data-testid":"info-tooltip"},c&&(0,r.createElement)(i.Popover,{id:n,className:s()("info-tooltip__content",t),onClose:()=>{d(!1)},position:a,noArrow:u},e))}},3300:function(e,t,n){"use strict";n.d(t,{SL:function(){return i},Mm:function(){return o},F9:function(){return a},dP:function(){return s},GN:function(){return l},vn:function(){return u}});var r=n(8077);const i=5,o=10,a=2,s=300,l=r.z2(),u=["available","available_premium"]},1071:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var r=n(9818),i=n(3300);function o(){return(0,r.useSelect)((e=>e(i.GN).getDomainAvailabilities()),[])}},5241:function(e,t,n){"use strict";n.d(t,{O:function(){return a}});var r=n(9818),i=n(7127),o=n(3300);function a(e="",t,n,a="en",s={}){const[l]=(0,i.Z)(e,o.dP),{invalidateResolutionForStoreSelector:u}=(0,r.useDispatch)(o.GN);return(0,r.useSelect)((e=>{if(!l||l.length<o.F9)return;const{getDomainSuggestions:r,getDomainState:i,getDomainErrorMessage:c}=e(o.GN);return{allDomainSuggestions:r(l,{include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:t+1,locale:a,category_slug:n,...s}),state:i(),errorMessage:c(),retryRequest:()=>{u("__internalGetDomainSuggestions")}}}),[l,n,t])}},1045:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var r=n(9196);function i(e,t,n){const[i,o]=r.useState(),a=t&&Array.isArray(e)?[t,...e]:e;r.useEffect((()=>{const e=null==a?void 0:a.some((e=>e.domain_name===(null==n?void 0:n.domain_name)));null!=a&&a.length&&!e&&o(n)}),[n,a]);if(!(null==a?void 0:a.some((e=>(null==e?void 0:e.domain_name)===(null==i?void 0:i.domain_name)))))return i}},3446:function(e,t,n){"use strict";function r(e){if(e)return{domain_name:e,relevance:1,supports_privacy:!0,vendor:"",cost:"",product_id:0,product_slug:"",raw_price:0,currency_code:"",unavailable:!1}}function i(e){return void 0!==e.normalize&&!!e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(/[a-z0-9-.\s]/i)}function o(e={}){return e.isSignup&&!e.isDomainOnly?"variation4_front":e.isPremium?"variation8_front":"variation2_front"}n.d(t,{nf:function(){return r},Qi:function(){return i},iY:function(){return o}})},3759:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});const r={AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function i(e){return r[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},1621:function(e,t,n){"use strict";n.d(t,{ZP:function(){return o}});var r=n(1481),i=n(3759);function o(e,t,n={}){const o=(0,i.X)(t);if(!o||isNaN(e))return null;const{decimal:a,grouping:s,precision:l,symbol:u}={...o,...n},c=e<0?"-":"";let d=(0,r.Y4)(Math.abs(e),{decimals:l,thousandsSep:s,decPoint:a});return n.stripZeros&&(d=function(e,t){const n=new RegExp(`\\${t}0+$`);return e.replace(n,"")}(d,a)),`${c}${u}${d}`}},914:function(e,t,n){"use strict";var r=n(2699),i=n(6668),o=n(8049),a=n.n(o),s=n(5079),l=n.n(s),u=n(7010),c=n(7839),d=n.n(c),f=n(9830),p=n(3);const m=a()("i18n-calypso"),g="number_format_decimals",h="number_format_thousands_sep",y="messages",v=[function(e){return e}],b={};function _(){P.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function S(e){return Array.prototype.slice.call(e)}function E(e){const t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&_("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",S(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&_("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",S(e));let n={};for(let r=0;r<e.length;r++)"object"==typeof e[r]&&(n=e[r]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function A(e,t){return e.dcnpgettext(y,t.context,t.original,t.plural,t.count)}function w(e,t){for(let n=v.length-1;n>=0;n--){const r=v[n](Object.assign({},t)),i=r.context?r.context+""+r.original:r.original;if(e.state.locale[i])return A(e.state.tannin,r)}return null}function P(){if(!(this instanceof P))return new P;this.defaultLocaleSlug="en",this.defaultPluralForms=e=>1===e?0:1,this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:d()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new r.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}P.throwErrors=!1,P.prototype.on=function(...e){this.stateObserver.on(...e)},P.prototype.off=function(...e){this.stateObserver.off(...e)},P.prototype.emit=function(...e){this.stateObserver.emit(...e)},P.prototype.numberFormat=function(e,t={}){const n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",i=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return(0,p.Z)(e,n,r,i)},P.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},P.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){const t=e[""]["key-hash"],n=function(e,t){const n=!1===t?"":String(t);if(void 0!==b[n+e])return b[n+e];const r=l()().update(e).digest("hex");return b[n+e]=t?r.substr(0,t):r},r=function(e){return function(t){return t.context?(t.original=n(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=n(t.original,e),t}};if("sha1"===t.substr(0,4))if(4===t.length)v.push(r(!1));else{const e=t.substr(5).indexOf("-");if(e<0){const e=Number(t.substr(5));v.push(r(e))}else{const n=Number(t.substr(5,e)),i=Number(t.substr(6+e));for(let e=n;e<=i;e++)v.push(r(e))}}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new f.Z({[y]:this.state.locale}),this.state.numberFormatSettings.decimal_point=A(this.state.tannin,E([g])),this.state.numberFormatSettings.thousands_sep=A(this.state.tannin,E([h])),this.state.numberFormatSettings.decimal_point===g&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===h&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},P.prototype.getLocale=function(){return this.state.locale},P.prototype.getLocaleSlug=function(){return this.state.localeSlug},P.prototype.getLocaleVariant=function(){return this.state.localeVariant},P.prototype.isRtl=function(){return"rtl"===this.state.textDirection},P.prototype.addTranslations=function(e){for(const t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},P.prototype.hasTranslation=function(){return!!w(this,E(arguments))},P.prototype.translate=function(){const e=E(arguments);let t=w(this,e);if(t||(t=A(this.state.tannin,e)),e.args){const r=Array.isArray(e.args)?e.args.slice(0):[e.args];r.unshift(t);try{t=(0,i.Z)(...r)}catch(n){if(!window||!window.console)return;const e=this.throwErrors?"error":"warn";"string"!=typeof n?window.console[e](n):window.console[e]("i18n sprintf error:",r)}}return e.components&&(t=(0,u.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},P.prototype.reRenderTranslations=function(){m("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},P.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},P.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},t.Z=P},1481:function(e,t,n){"use strict";n.d(t,{Y4:function(){return l},Iu:function(){return u}});var r=n(914),i=n(3493),o=n(8373),a=n(975);const s=new r.Z;const l=s.numberFormat.bind(s),u=s.translate.bind(s),{useRtl:c,withRtl:d}=(s.configure.bind(s),s.setLocale.bind(s),s.getLocale.bind(s),s.getLocaleSlug.bind(s),s.getLocaleVariant.bind(s),s.isRtl.bind(s),s.addTranslations.bind(s),s.reRenderTranslations.bind(s),s.registerComponentUpdateHook.bind(s),s.registerTranslateHook.bind(s),s.state,s.stateObserver,s.on.bind(s),s.off.bind(s),s.emit.bind(s),(0,i.Z)(s),(0,a.Z)(s),(0,o.Z)(s))},3493:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(6666),i=n(9307),o=n(9196),a=n.n(o);function s(e){const t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(n){var o,s;const l=n.displayName||n.name||"";return s=o=class extends a().Component{constructor(...e){super(...e),(0,r.Z)(this,"boundForceUpdate",this.forceUpdate.bind(this))}componentDidMount(){e.on("change",this.boundForceUpdate)}componentWillUnmount(){e.off("change",this.boundForceUpdate)}render(){const r={locale:e.getLocaleSlug(),...this.props,...t};return(0,i.createElement)(n,r)}},(0,r.Z)(o,"displayName","Localized("+l+")"),s}}},3:function(e,t,n){"use strict";function r(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");const i=isFinite(+e)?+e:0,o=isFinite(+t)?Math.abs(t):0,a=void 0===r?",":r,s=void 0===n?".":n;let l="";return l=(o?
294
  /*
295
  * Exposes number format capability
296
  *
@@ -298,7 +298,7 @@ object-assign
298
  * @license See CREDITS.md
299
  * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
300
  */
301
- function(e,t){const n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,o):""+Math.round(i)).split("."),l[0].length>3&&(l[0]=l[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(l[1]||"").length<o&&(l[1]=l[1]||"",l[1]+=new Array(o-l[1].length+1).join("0")),l.join(s)}n.d(t,{Z:function(){return r}})},8373:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(7896),i=n(9307),o=n(4333),a=n(9196),s=n(6718);function l(e){const t={getCurrentValue:()=>e.isRtl(),subscribe:t=>(e.on("change",t),()=>e.off("change",t))};function n(){return(0,s.useSubscription)(t)}const l=(0,o.createHigherOrderComponent)((e=>(0,a.forwardRef)(((t,o)=>{const a=n();return(0,i.createElement)(e,(0,r.Z)({},t,{isRtl:a,ref:o}))}))),"WithRTL");return{useRtl:n,withRtl:l}}},975:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9196),i=n.n(r);function o(e){function t(){const t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}return function(){const[n,r]=i().useState(t);return i().useEffect((()=>{const n=()=>r(t);return e.on("change",n),()=>e.off("change",n)}),[]),n}}},849:function(e,t,n){"use strict";n.d(t,{Iw:function(){return u},bU:function(){return d}});var r=n(7896),i=n(9307),o=n(4333),a=n(5736),s=n(9196);const l=(0,s.createContext)(null),u=({children:e,localeSlug:t})=>(0,i.createElement)(l.Provider,{value:t},e);function c(){var e,t;return function(e=""){if(!e)return"";const t=e.toLowerCase();return(["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"].includes(t)?t.replace("_","-"):t.replace(/([-_].*)$/i,""))||"en"}(a.getLocaleData?null===(e=a.getLocaleData())||void 0===e||null===(t=e[""])||void 0===t?void 0:t.language:"")}function d(){const e=(0,s.useContext)(l),t=!!e,[n,r]=(0,s.useState)(c());return(0,s.useEffect)((()=>{if(!t)return r(c()),a.subscribe((()=>{r(c())}))}),[t]),e||n||"en"}(0,o.createHigherOrderComponent)((e=>t=>{const n=d();return(0,i.createElement)(e,(0,r.Z)({locale:n},t))}),"withLocale")},4655:function(e,t,n){"use strict";n.d(t,{OP:function(){return r},GG:function(){return i},iT:function(){return o},xn:function(){return a},Xb:function(){return s},xN:function(){return l},hI:function(){return u},mL:function(){return c},vS:function(){return d},_r:function(){return f}});const r="en",i=["en","ja","es","pt","fr","pt-br"],o=["en","fr","de"],a=["en","fr","de"],s={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},l=["en","en-gb"],u=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],c=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],d=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],f=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},7498:function(e,t,n){"use strict";n.d(t,{Iu:function(){return g}});var r=n(7896),i=n(9307),o=n(4333),a=n(9196),s=n(849),l=n(4655);const u="http://__domain__.invalid",c=(e,t=[])=>(n,r)=>(t.includes(r)&&"en"!==r&&n.pathname.substr(0,r.length+2)!=="/"+r+"/"&&(n.host=`${l.Xb[r]||r}.${e}`),n),d=(e,t=[],n=null)=>(r,i)=>(r.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(r.pathname)&&(t=[]),r.pathname=e+r.pathname,t.includes(i)&&"en"!==i&&(r.pathname=i+r.pathname),r),f=(e=[],t=null)=>(n,r)=>("object"==typeof t&&t instanceof RegExp&&!t.test(n.pathname)||e.includes(r)&&"en"!==r&&(n.pathname=r+n.pathname),n),p={"wordpress.com/support/":f(l.hI),"wordpress.com/forums/":f(l.mL),"wordpress.com/blog/":f(l.GG,/^\/blog\/?$/),"wordpress.com/tos/":f(l.vS),"wordpress.com/wp-admin/":c("wordpress.com",l.vS),"wordpress.com/wp-login.php":c("wordpress.com",l.vS),"jetpack.com":c("jetpack.com",l._r),"en.support.wordpress.com":d("/support",l.hI),"en.blog.wordpress.com":d("/blog",l.GG,/^\/$/),"en.forums.wordpress.com":d("/forums",l.mL),"automattic.com/privacy/":f(l.iT),"automattic.com/cookies/":f(l.xn),"wordpress.com/help/contact/":(e,t,n)=>n?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),f(l.hI)(e,t)),"wordpress.com":(e,t)=>/^\/(checkout|me)(\/|$)/.test(e.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(e.pathname)?e:f(l.vS)(e,t),"wordpress.com/theme/":(e,t,n)=>n?e:f(l.vS)(e,t),"wordpress.com/themes/":(e,t,n)=>n?e:f(l.vS)(e,t)};function m(e,t,n=!0){let r;try{r=new URL(String(e),u)}catch(a){return e}if(r.origin===u)return e;r.protocol="https:",r.hostname="",r.pathname.endsWith(".php")||(r.pathname=(r.pathname+"/").replace(/\/+$/,"/"));const i=r.pathname.substr(0,1+r.pathname.indexOf("/",1));if("en.wordpress.com"===r.host&&(r.host="wordpress.com"),"/"+t+"/"===i)return e;const o=[r.host,r.host+i,r.host+r.pathname];for(let s=o.length-1;s>=0;s--)if(o[s]in p)return p[o[s]](r,t,n).href;return e}function g(){const e=(0,s.bU)();return(0,a.useCallback)(((t,n,r)=>m(t,n||e,r)),[e])}(0,o.createHigherOrderComponent)((e=>t=>{const n=g();return(0,i.createElement)(e,(0,r.Z)({localizeUrl:n},t))}),"withLocalizeUrl")},6357:function(e,t,n){"use strict";var r=n(6483),i=n(9196);const o=e=>{window.location.href=e},a=i.createContext({siteId:0,redirectTo:o,getCurrentLaunchFlowUrl:()=>window.location.href,openCheckout:(e,t)=>{o((0,r.addQueryArgs)(`/checkout/${e}`,{...!t&&{redirect_to:`/home/${e}`}}))},flow:"launch",isInIframe:!1});t.Z=a},8039:function(e,t,n){"use strict";n.d(t,{j:function(){return d}});var r=n(849),i=n(9818),o=n(9196),a=n(6357),s=n(5144),l=n(6134),u=n(1120),c=n(6950);function d(){const{siteId:e,flow:t,openCheckout:n,isInIframe:d}=o.useContext(a.Z),f=(0,r.bU)(),[p,m]=(0,i.useSelect)((e=>[e(u.sC).getSelectedPlanProductId(),e(u.sC).getSelectedDomain()])),{planProduct:g,isEcommercePlan:h}=(0,i.useSelect)((e=>{const t=e(u.Fs),n=t.getPlanByProductId(p,f);return{planProduct:t.getPlanProductById(p),isEcommercePlan:t.isPlanEcommerce(null==n?void 0:n.periodAgnosticSlug)}}),[p,f]),{siteSubdomain:y}=(0,s.j)(),{getCart:v,setCart:b,launchSite:_}=(0,i.useDispatch)(u.j4),S=()=>_(e),[E,A]=o.useState(!1),w=(0,l.O)(),P=async()=>{await(async()=>{if(E)return;A(!0);const n=m&&(0,c.K9)(m,t),r=g&&(0,c.An)(g,t),i=await v(e);await b(e,{...i,products:[r,n]}),A(!1)})(),n(null==y?void 0:y.domain,h,S)};return{goToCheckout:P,goToCheckoutAndLaunch:async()=>{d&&!w||await _(e),P()},isCartUpdating:E}}},6956:function(e,t,n){"use strict";n.d(t,{f:function(){return c}});var r=n(3300),i=n(3446),o=n(9818),a=n(1120),s=n(5144),l=n(4557),u=n(3073);function c(){var e;const t=(0,o.useSelect)((e=>e(a.sC).getDomainSearch()),[]),{isDefaultTitle:n,title:c}=(0,l.Z)(),{isLoadingSite:d}=(0,u.W)(),{siteSubdomain:f}=(0,s.j)(),{setDomainSearch:p}=(0,o.useDispatch)(a.sC),m=void 0!==c&&c.length>=r.F9&&!n?c:"",g=(t.trim()||function(e){return(0,i.Qi)(e)?e:""}(m)||(null==f||null===(e=f.domain)||void 0===e?void 0:e.split(".")[0]))??"";return{domainSearch:g,isLoading:d,setDomainSearch:p}}},780:function(e,t,n){"use strict";n.d(t,{my:function(){return s}});var r=n(3446),i=n(9818),o=(n(9196),n(1120)),a=n(5144);function s(){const{setDomain:e,unsetDomain:t,unsetPlanProductId:n,confirmDomainSelection:s}=(0,i.useDispatch)(o.sC),{domain:l,planProductId:u,confirmedDomainSelection:c}=(0,i.useSelect)((e=>e(o.sC).getState())),d=(0,i.useSelect)((e=>e(o.Fs).isPlanProductFree(u))),{siteSubdomain:f,hasPaidDomain:p,sitePrimaryDomain:m}=(0,a.j)();let g;return l?g=l:p?g=(0,r.nf)(null==m?void 0:m.domain):c&&(g=(0,r.nf)(null==f?void 0:f.domain)),{onDomainSelect:function(t){s(),e(t),d&&n()},onExistingSubdomainSelect:function(){s(),t()},selectedDomain:l,currentDomain:g}}},8463:function(e,t,n){"use strict";n.d(t,{V:function(){return s}});var r=n(849),i=n(9818),o=n(1120),a=n(6956);function s(){var e;const t=(0,r.bU)(),{domainSearch:n}=(0,a.f)();return null===(e=(0,i.useSelect)((e=>{if(n&&!(n.length<2))return e(o.GN).getDomainSuggestions(n,{include_wordpressdotcom:!1,include_dotblogsubdomain:!1,quantity:1,locale:t})}),[n]))||void 0===e?void 0:e[0]}},6134:function(e,t,n){"use strict";n.d(t,{O:function(){return a}});var r=n(849),i=n(9818),o=n(1120);function a(){const e=(0,r.bU)(),t=(0,i.useSelect)((e=>e(o.sC).getSelectedPlanProductId()),[]);return(0,i.useSelect)((n=>{const r=n(o.Fs),i=r.getPlanByProductId(t,e);return r.isPlanEcommerce(null==i?void 0:i.periodAgnosticSlug)}),[t,e])}},3357:function(e,t,n){"use strict";n.d(t,{X:function(){return c}});var r=n(9818),i=n(9196),o=n(6357),a=n(5144),s=n(8039),l=n(1120),u=n(3073);const c=()=>{const{siteId:e,redirectTo:t}=i.useContext(o.Z),{planProductId:n}=(0,r.useSelect)((e=>e(l.sC).getState())),c=(0,r.useSelect)((e=>e(l.Fs).isPlanProductFree(n))),{isSiteLaunched:d}=(0,u.W)(),{siteSubdomain:f}=(0,a.j)(),{goToCheckout:p}=(0,s.j)();i.useEffect((()=>{if(d){if(!c)return void p();t(`/home/${(null==f?void 0:f.domain)||e}`)}}),[d])}},5144:function(e,t,n){"use strict";n.d(t,{j:function(){return s}});var r=n(9818),i=n(9196),o=n(6357),a=n(1120);function s(){const{siteId:e}=i.useContext(o.Z),t=(0,r.useSelect)((t=>t(a.j4).getPrimarySiteDomain(e)));return{sitePrimaryDomain:t,siteSubdomain:(0,r.useSelect)((t=>t(a.j4).getSiteSubdomain(e))),hasPaidDomain:t&&!(null!=t&&t.is_subdomain)}}},3073:function(e,t,n){"use strict";n.d(t,{W:function(){return s}});var r=n(9818),i=n(9196),o=n(6357),a=n(1120);function s(){var e,t;const{siteId:n}=i.useContext(o.Z),[s,l,u,c]=(0,r.useSelect)((e=>{const t=e(a.j4);return[t.getSite(n),t.isSiteLaunched(n),t.isSiteLaunching(n),t.isFetchingSiteDetails()]}),[n]);return{sitePlan:null==s?void 0:s.plan,hasPaidPlan:s&&!(null!==(e=s.plan)&&void 0!==e&&e.is_free),isSiteLaunched:l,isSiteLaunching:u,selectedFeatures:null==s||null===(t=s.options)||void 0===t?void 0:t.selected_features,isLoadingSite:!!c}}},4557:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(849),i=n(4655),o=n(9818),a=n(5736),s=n(9196),l=n(669),u=n(6357),c=n(1120);const __=a.__;function d(){const{siteId:e}=(0,s.useContext)(u.Z),t=(0,r.bU)(),n=(0,o.useSelect)((t=>t(c.j4).getSiteTitle(e)),[e]),a=(0,o.useSelect)((e=>e(c.sC).getSiteTitle()),[]),d=(0,o.useDispatch)(c.sC).setSiteTitle,f=(0,o.useDispatch)(c.j4).saveSiteTitle,[p]=(0,l.Z)(f,1e3),m=void 0===a,g=m?n:a;(0,s.useEffect)((()=>{m||p(e,a)}),[a,p,e,m]);const h=__("Site Title","full-site-editing");let y=void 0!==g&&g===h,v=void 0!==g&&""!==g&&!y;return-1===i.xN.indexOf(t)&&(y=!(null!=a&&a.trim()),v=void 0!==g&&""!==g),{isDefaultTitle:y,isValidTitle:v,title:g,updateTitle:d}}},1120:function(e,t,n){"use strict";n.d(t,{j4:function(){return s},Fs:function(){return l},GN:function(){return u},sC:function(){return c}});var r=n(2369),i=n(9734),o=n(8077),a=n(1635);const s=r.z2({client_id:"",client_secret:""}),l=i.register(),u=o.z2(),c=a.z()},6950:function(e,t,n){"use strict";n.d(t,{An:function(){return r},K9:function(){return i}});const r=(e,t)=>({product_id:e.productId,product_slug:e.storeSlug,extra:{source:t}}),i=(e,t)=>{if(!e.unavailable&&null!=e&&e.product_id)return{meta:null==e?void 0:e.domain_name,product_id:null==e?void 0:e.product_id,extra:{privacy_available:null==e?void 0:e.supports_privacy,privacy:null==e?void 0:e.supports_privacy,source:t},product_cost_display:e.cost,currency_code:e.currency_code,product_slug:e.product_slug,cost:e.raw_price,currency:e.currency_code}}},3340:function(e,t,n){"use strict";n.d(t,{hg:function(){return s},lZ:function(){return l},_W:function(){return c},Yt:function(){return d}});var r=n(8049);const i=n.n(r)()("lib/load-script/callback-handler"),o=new Map;function a(){return o}function s(e){return a().has(e)}function l(e,t){const n=a();s(e)?(i(`Adding a callback for an existing script from "${e}"`),n.get(e).add(t)):(i(`Adding a callback for a new script from "${e}"`),n.set(e,new Set([t])))}function u(e,t=null){const n=a(),r=n.get(e);if(r){i(`Executing callbacks for "${e}"`+(null===t?" with success":` with error "${t}"`)),r.forEach((e=>{"function"==typeof e&&e(t)})),n.delete(e)}}function c(){const e=this.getAttribute("src");i(`Handling successful request for "${e}"`),u(e),this.onload=null}function d(){const e=this.getAttribute("src");i(`Handling failed request for "${e}"`),u(e,new Error(`Failed to load script "${e}"`)),this.onerror=null}},5606:function(e,t,n){"use strict";n.d(t,{C:function(){return s},k:function(){return l}});var r=n(8049),i=n.n(r),o=n(3340);const a=i()("lib/load-script/dom-operations");function s(e){a(`Creating script element for "${e}"`);const t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=o._W,t.onerror=o.Yt,t}function l(e){a("Attaching element to head"),document.head.appendChild(e)}},4898:function(e,t,n){"use strict";n.d(t,{ve:function(){return s}});var r=n(8049),i=n.n(r),o=n(3340),a=n(5606);i()("package/load-script");function s(e,t){if(!(0,o.hg)(e)&&(0,a.k)((0,a.C)(e)),"function"!=typeof t)return new Promise(((t,n)=>{(0,o.lZ)(e,(e=>{null===e?t():n(e)}))}));(0,o.lZ)(e,t)}},9211:function(e,t,n){"use strict";n.d(t,{xE:function(){return f},aW:function(){return p},b4:function(){return m}});var r=n(7896),i=n(9307),o=n(5609),a=n(5869),s=n(1100),l=n(2481),u=n(6656),c=n(2779),d=n.n(c);n(9196),n(5838);t.ZP=({className:e,children:t,sticky:n=null})=>{let r="";return!0===n&&(r="is-sticky"),!1===n&&(r="no-sticky"),(0,i.createElement)("div",{className:d()("action-buttons",e,r)},t)};const f=({className:e,children:t,...n})=>{const{__:__}=(0,u.useI18n)();return(0,i.createElement)(o.Button,(0,r.Z)({className:d()("action_buttons__button action-buttons__back",e),isLink:!0},n),t||__("Go back","full-site-editing"))},p=({className:e,children:t,...n})=>{const{__:__}=(0,u.useI18n)();return(0,i.createElement)(o.Button,(0,r.Z)({className:d()("action_buttons__button action-buttons__next",e),isPrimary:!0},n),t||__("Continue","full-site-editing"))},m=({className:e,children:t,arrow:n="right",...u})=>(0,i.createElement)(o.Button,(0,r.Z)({className:d()(`action_buttons__button action-buttons__arrow action-buttons__arrow--${n}`,e)},u),"left"===n&&(0,i.createElement)(a.Z,{icon:s.Z}),t,"right"===n&&(0,i.createElement)(a.Z,{icon:l.Z}))},5915:function(e,t,n){"use strict";n.d(t,{b:function(){return a},D:function(){return s}});var r=n(2779),i=n.n(r),o=n(9196);n(6876);const a=({className:e,children:t,tagName:n="h1",...r})=>o.createElement(n,{className:i()("onboarding-title",e),...r},t),s=({className:e,children:t,tagName:n="h2",...r})=>o.createElement(n,{className:i()("onboarding-subtitle",e),...r},t)},1201:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(9818),i=n(9255);const o=(e,t)=>{const{supportedPlans:n,annualDiscounts:o}=(0,r.useSelect)((n=>{const r=n(i.F).getSupportedPlans(e),o=r.map((e=>n(i.F).getPlanProduct(e.periodAgnosticSlug,t))).map((e=>null==e?void 0:e.annualDiscount)).filter((e=>!!e));return{supportedPlans:r,annualDiscounts:o}}));return{supportedPlans:n,maxAnnualDiscount:o.reduce(((e,t)=>Math.max(e,t)),0)}}},130:function(e,t,n){"use strict";var r=n(9307),i=n(849),o=n(9211),a=n(9818),s=n(5736),l=n(6656),u=n(2779),c=n.n(u),d=(n(9196),n(373)),f=n(9255);n(4893);const p=(0,r.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,r.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}));t.Z=({slug:e,name:t,description:n,features:u,billingPeriod:m,domain:g,badge:h,isFree:y=!1,isOpen:v=!1,isPrimary:b=!1,onSelect:_,onPickDomainClick:S,onToggle:E,disabledLabel:A})=>{const{__:__,hasTranslation:w}=(0,l.useI18n)(),P=(0,i.bU)(),x=(0,a.useSelect)((t=>t(f.F).getPlanProduct(e,m))),C=()=>{!A&&(null==E||E(e,!v))},N=__("billed annually","full-site-editing"),I=__("billed as %s annually","full-site-editing"),O="en"===P||null!=w&&w("billed as %s annually")?(0,s.sprintf)(I,null==x?void 0:x.annualPrice):N,$=__("per month, billed monthly","full-site-editing"),L=__("billed monthly","full-site-editing"),M="en"===P||null!=w&&w("billed monthly")?L:$;return(0,r.createElement)("div",{className:c()("plans-accordion-item",{"is-open":v,"is-primary":b,"has-badge":!!h,"is-disabled":!!A})},h&&(0,r.createElement)("div",{className:"plans-accordion-item__badge"},(0,r.createElement)("span",null,h)),(0,r.createElement)("div",{className:"plans-accordion-item__viewport"},(0,r.createElement)("div",{className:"plans-accordion-item__details"},(0,r.createElement)("div",{tabIndex:0,role:"button",onClick:C,onKeyDown:e=>32===e.keyCode&&C(),className:"plans-accordion-item__header"},(0,r.createElement)("div",{className:"plans-accordion-item__heading"},(0,r.createElement)("div",{className:"plans-accordion-item__name"},t),(0,r.createElement)("div",{className:"plans-accordion-item__description"},n)),(0,r.createElement)("div",{className:"plans-accordion-item__price"},(0,r.createElement)("div",{className:c()("plans-accordion-item__price-amount",{"is-loading":!(null!=x&&x.price)})},(null==x?void 0:x.price)||"  ",(null==x?void 0:x.price)&&(0,r.createElement)("span",null,__("/mo","full-site-editing"))),(0,r.createElement)("div",{className:"plans-accordion-item__price-note"},y&&__("free forever","full-site-editing"),!y&&("ANNUALLY"===m?O:M)),!y&&(0,r.createElement)("div",{className:c()("plans-accordion-item__price-discount",{"plans-accordion-item__price-discount--disabled":"ANNUALLY"!==m})},(0,s.sprintf)(__("Save %(discountRate)s%% by paying annually","full-site-editing"),{discountRate:(null==x?void 0:x.annualDiscount)??0}))),(0,r.createElement)("div",{className:"plans-accordion-item__disabled-label"},A),!v&&(0,r.createElement)("div",{className:"plans-accordion-item__dropdown-chevron"},p)),(0,r.createElement)("div",{className:c()("plans-accordion-item__actions",{"plans-accordion-item__actions--paid-plan-margin":!y}),hidden:!v},(0,r.createElement)(o.aW,{"data-e2e-button":y?"freePlan":"paidPlan",onClick:()=>{_(null==x?void 0:x.productId)}},__("Select","full-site-editing"))),(0,r.createElement)(d.Z,{features:u,billingPeriod:m,domain:g,isFree:y,isOpen:v,onPickDomain:S,multiColumn:!0}))))}},4416:function(e,t,n){"use strict";var r=n(9307),i=n(9211),o=n(2779),a=n.n(o),s=(n(9196),n(7891));n(4893);const l=(0,r.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,r.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}));t.Z=({isOpen:e,isPrimary:t})=>(0,r.createElement)("div",{className:a()("plans-accordion-item",{"is-open":e,"is-primary":t})},(0,r.createElement)("div",{className:"plans-accordion-item__viewport"},(0,r.createElement)("div",{className:"plans-accordion-item__details"},(0,r.createElement)("div",{tabIndex:0,role:"button",className:"plans-accordion-item__header"},(0,r.createElement)("div",{className:"plans-accordion-item__heading"},(0,r.createElement)("div",{className:"plans-accordion-item__name"},(0,r.createElement)("span",{className:"plans-accordion-item__placeholder"},"")),(0,r.createElement)("div",{className:"plans-accordion-item__description"},(0,r.createElement)("span",{className:"plans-accordion-item__placeholder plans-accordion-item__placeholder--wide"},""))),(0,r.createElement)("div",{className:"plans-accordion-item__price"},(0,r.createElement)("div",{className:"plans-accordion-item__price-amount"},(0,r.createElement)("span",{className:"plans-accordion-item__placeholder"},"")),(0,r.createElement)("div",{className:"plans-accordion-item__price-note"},(0,r.createElement)("span",{className:"plans-accordion-item__placeholder plans-accordion-item__placeholder--wide"},""))),(0,r.createElement)("div",{className:"plans-accordion-item__disabled-label"},""),!e&&(0,r.createElement)("div",{className:"plans-accordion-item__dropdown-chevron"},l)),(0,r.createElement)("div",{className:"plans-accordion-item__actions",hidden:!e},(0,r.createElement)(i.aW,{disabled:!0},(0,r.createElement)("span",null,""))),(0,r.createElement)(s.Z,{isOpen:e,multiColumn:!0}))))},222:function(e,t,n){"use strict";var r=n(9307),i=n(5609),o=n(9818),a=n(5869),s=n(6656),l=n(9196),u=n(1201),c=n(130),d=n(4416),f=n(9255);n(3796);const p=(0,r.createElement)(i.SVG,{viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"}));t.Z=({selectedFeatures:e=[],selectedPlanProductId:t,onPlanSelect:n,onPickDomainClick:m,currentDomain:g,disabledPlans:h,locale:y,billingPeriod:v})=>{var b;const{__:__}=(0,s.useI18n)(),{supportedPlans:_}=(0,u.N)(y,v),S=!(null!=_&&_.length),{popularPlan:E,getPlanProduct:A}=(0,o.useSelect)((e=>{const t=e(f.F);return{popularPlan:t.getDefaultPaidPlan(y),getPlanProduct:t.getPlanProduct}})),w=(0,o.useSelect)((t=>t(f.J).getRecommendedPlanSlug(e))),P=(0,o.useSelect)((e=>e(f.F).getPlanByPeriodAgnosticSlug(w,y))),x=P||E,C=__("Recommended for you","full-site-editing"),N=__("Popular","full-site-editing"),I=_.filter((e=>e.periodAgnosticSlug!==(null==x?void 0:x.periodAgnosticSlug))),O=[null==x?void 0:x.periodAgnosticSlug],[$,L]=(0,l.useState)(O),M=!S&&$.length>=_.length,k=(e,t)=>{L(t?[...$,e]:$.filter((t=>t!==e)))},F=__("Collapse all plans","full-site-editing"),T=__("Show all plans","full-site-editing");return(0,r.createElement)("div",{className:"plans-accordion"},(0,r.createElement)("div",{className:"plans-accordion__plan-item-group"},S?(0,r.createElement)(d.Z,{isOpen:!0,isPrimary:!0}):x&&(0,r.createElement)(r.Fragment,null,P&&(0,r.createElement)("div",{className:"plans-accordion__recommend-hint"},(0,r.createElement)(a.Z,{icon:p,size:16}),(0,r.createElement)("span",null,__("Based on the features you selected.","full-site-editing"))),(0,r.createElement)(c.Z,{key:x.periodAgnosticSlug,slug:x.periodAgnosticSlug,name:null==x?void 0:x.title.toString(),description:null==x?void 0:x.description.toString(),features:x.features??[],billingPeriod:v,domain:g,badge:P?C:N,isFree:x.isFree,isOpen:!0,isPrimary:!0,isSelected:!!t&&t===(null===(b=A(x.periodAgnosticSlug,v))||void 0===b?void 0:b.productId),onSelect:n,onPickDomainClick:m}))),(0,r.createElement)("div",{className:"plans-accordion__actions"},(0,r.createElement)(i.Button,{className:"plans-accordion__toggle-all-button",onClick:()=>{L(M?O:_.map((e=>e.periodAgnosticSlug)))},isLink:!0},M?F:T)),(0,r.createElement)("div",{className:"plans-accordion__plan-item-group"},S?[1,2,3,4].map((e=>(0,r.createElement)(d.Z,{key:e}))):I.map((e=>{var i;return(0,r.createElement)(c.Z,{key:e.periodAgnosticSlug,slug:e.periodAgnosticSlug,name:null==e?void 0:e.title.toString(),description:null==e?void 0:e.description.toString(),features:e.features??[],billingPeriod:v,domain:g,isFree:e.isFree,isOpen:$.indexOf(e.periodAgnosticSlug)>-1&&!(null!=h&&h[e.periodAgnosticSlug]),isSelected:!!t&&t===(null===(i=A(e.periodAgnosticSlug,v))||void 0===i?void 0:i.productId),onSelect:n,onPickDomainClick:m,onToggle:k,disabledLabel:null==h?void 0:h[e.periodAgnosticSlug]})}))))}},4564:function(e,t,n){"use strict";var r=n(9307),i=n(5609),o=n(9818),a=n(5869),s=n(9806),l=n(8565),u=n(6656),c=n(2779),d=n.n(c),f=(n(9196),n(9255));n(4531);const p=(0,r.createElement)(a.Z,{icon:s.Z,size:25}),m=(0,r.createElement)(a.Z,{icon:l.Z,size:25});t.Z=({onSelect:e,locale:t,billingPeriod:n})=>{const{__:__,hasTranslation:a}=(0,u.useI18n)(),{supportedPlans:s,planProducts:l,features:c,featuresByType:g}=(0,o.useSelect)((e=>{const{getPlanProduct:r,getFeatures:i,getFeaturesByType:o,getSupportedPlans:a}=e(f.F),s=a(t),l=s.map((e=>r(e.periodAgnosticSlug,n)));return{supportedPlans:s,planProducts:l,features:i(t),featuresByType:o(t)}})),h=!(null!=s&&s.length),y=[1,2,3,4,5],v=__("Monthly price (billed yearly)","full-site-editing"),b=__("Monthly subscription (billed yearly)","full-site-editing"),_="en"===t||null!=a&&a("Monthly price (billed yearly)")?v:b,S=__("Monthly subscription","full-site-editing"),E=__("Included with annual plans","full-site-editing"),A=__("Only included with annual plans","full-site-editing");return(0,r.createElement)("div",{className:"plans-details"},(0,r.createElement)("table",{className:"plans-details__table"},(0,r.createElement)("thead",null,(0,r.createElement)("tr",{className:"plans-details__header-row"},(0,r.createElement)("th",null,__("Feature","full-site-editing")),h?y.map((e=>(0,r.createElement)("th",{key:e},(0,r.createElement)("span",{className:"plans-details__placeholder"},"")))):s.map((e=>(0,r.createElement)("th",{key:e.periodAgnosticSlug},e.title))))),h?(0,r.createElement)("tbody",null,y.map(((e,t)=>(0,r.createElement)("tr",{className:"plans-details__feature-row",key:t},(0,r.createElement)("th",{key:e},(0,r.createElement)("span",{className:"plans-details__placeholder plans-details__placeholder--wide"},"")),y.map((e=>(0,r.createElement)("td",{key:e}))))))):g.map((e=>{var t;return(0,r.createElement)("tbody",{key:e.id},e.name&&(0,r.createElement)("tr",{className:"plans-details__header-row"},(0,r.createElement)("th",{colSpan:6},e.name)),null===(t=e.features)||void 0===t?void 0:t.map(((e,t)=>(0,r.createElement)("tr",{className:d()("plans-details__feature-row",{"plans-details__feature-row--enabled":c[e].requiresAnnuallyBilledPlan&&"ANNUALLY"===n,"plans-details__feature-row--disabled":c[e].requiresAnnuallyBilledPlan&&"ANNUALLY"!==n}),key:t},(0,r.createElement)("th",null,c[e].requiresAnnuallyBilledPlan&&(0,r.createElement)("span",{className:"plans-details__feature-annual-nudge","aria-label":"ANNUALLY"===n?E:A},__("Included with annual plans","full-site-editing")),(0,r.createElement)("span",null,c[e].name)),s.map(((t,i)=>{var o;return"storage"===e?(0,r.createElement)("td",{key:i},t.storage):(0,r.createElement)("td",{key:i},null!==(o=t.featuresSlugs)&&void 0!==o&&o[e]?(0,r.createElement)(r.Fragment,null,c[e].requiresAnnuallyBilledPlan&&"ANNUALLY"!==n?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"hidden"},__("Unavailable","full-site-editing")),m):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"hidden"},__("Available","full-site-editing")),p)):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"hidden"},__("Unavailable","full-site-editing"))))}))))))})),(0,r.createElement)("tbody",null,(0,r.createElement)("tr",{className:"plans-details__header-row"},(0,r.createElement)("th",{colSpan:6},__("Sign up","full-site-editing"))),(0,r.createElement)("tr",{className:"plans-details__feature-row",key:"price"},(0,r.createElement)("th",null,"ANNUALLY"===n?_:S),h?y.map((e=>(0,r.createElement)("td",{key:e},(0,r.createElement)("span",{className:"plans-details__placeholder"},"")))):s.map(((e,t)=>{var n;return(0,r.createElement)("td",{key:e.periodAgnosticSlug},null===(n=l[t])||void 0===n?void 0:n.price)}))),(0,r.createElement)("tr",{className:"plans-details__feature-row",key:"cta"},(0,r.createElement)("th",null),h?y.map((e=>(0,r.createElement)("td",{key:e},(0,r.createElement)(i.Button,{className:"plans-details__select-button",isPrimary:!0,disabled:!0},(0,r.createElement)("span",{className:"plans-details__placeholder plans-details__placeholder--narrow"},""))," "))):s.map(((t,n)=>(0,r.createElement)("td",{key:t.periodAgnosticSlug},(0,r.createElement)(i.Button,{className:"plans-details__select-button",onClick:()=>{var t;e(null===(t=l[n])||void 0===t?void 0:t.productId)},isPrimary:!0},(0,r.createElement)("span",null,__("Select","full-site-editing"))))))))))}},373:function(e,t,n){"use strict";var r=n(7896),i=n(9307),o=n(5609),a=n(5869),s=n(9806),l=n(8565),u=n(6656),c=n(2779),d=n.n(c);n(9196),n(4571);const f=({className:e})=>(0,i.createElement)(a.Z,{className:e,icon:s.Z,size:18}),p=({className:e})=>(0,i.createElement)(a.Z,{className:e,icon:l.Z,size:18}),m=({children:e,className:t})=>(0,i.createElement)("span",{className:t},e),g=({billingPeriod:e,__:__})=>{const t=__("Included with annual plans","full-site-editing"),n=__("Only included with annual plans","full-site-editing");return(0,i.createElement)("span",{className:"plans-feature-list__item-annual-nudge","aria-label":"ANNUALLY"===e?t:n},t)};const h=({bulletIcon:e,textNode:t,requiresAnnuallyBilledPlan:n,contentWrapperNode:r=m,listItemExtraClassName:o,billingPeriod:a},s)=>{const{__:__}=(0,u.useI18n)();return(0,i.createElement)("li",{key:s,className:d()("plans-feature-list__item",{"plans-feature-list__item--requires-annual-enabled":n&&"ANNUALLY"===a,"plans-feature-list__item--requires-annual-disabled":n&&"ANNUALLY"!==a},o)},(0,i.createElement)(r,{className:"plans-feature-list__item-content-wrapper"},(0,i.createElement)(e,{className:"plans-feature-list__item-bullet-icon"}),(0,i.createElement)("span",{className:"plans-feature-list__item-text"},n&&(0,i.createElement)(g,{billingPeriod:a,__:__}),(0,i.createElement)("span",{className:"plans-feature-list__item-description"},t))))};t.Z=({features:e,domain:t,billingPeriod:n,isFree:a=!1,isOpen:s=!1,onPickDomain:l,disabledLabel:c,multiColumn:m=!1})=>{const{__:__}=(0,u.useI18n)(),g=function(e,t,n,__){const r="plans-feature-list__item-content-wrapper--domain-button";return{NO_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{wrapperClassName:d()(r,"is-cta"),bulletIcon:"ANNUALLY"===n?f:p,requiresAnnuallyBilledPlan:!0,domainMessage:(0,i.createElement)(i.Fragment,null,__("Pick a free domain (1 year)","full-site-editing"))}},FREE_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{wrapperClassName:d()(r,"is-cta"),bulletIcon:"ANNUALLY"===n?f:p,requiresAnnuallyBilledPlan:!0,domainMessage:(0,i.createElement)(i.Fragment,null,__("Pick a free domain (1 year)","full-site-editing"))}},PAID_DOMAIN:{FREE_PLAN:{wrapperClassName:d()(r,"is-unavailable"),bulletIcon:p,requiresAnnuallyBilledPlan:!1,domainMessage:(0,i.createElement)(i.Fragment,null,(0,i.createInterpolateElement)(__("<url /> is not included","full-site-editing"),{url:(0,i.createElement)("span",{className:"plans-feature-list__item-url"},null==t?void 0:t.domain_name)}))},PAID_PLAN:{wrapperClassName:r,bulletIcon:"ANNUALLY"===n?f:p,requiresAnnuallyBilledPlan:!0,domainMessage:(0,i.createElement)(i.Fragment,null,(0,i.createInterpolateElement)(__("<url /> is included","full-site-editing"),{url:(0,i.createElement)("span",{className:"plans-feature-list__item-url"},null==t?void 0:t.domain_name)}))}}}[t&&(t.is_free?"FREE_DOMAIN":"PAID_DOMAIN")||"NO_DOMAIN"][e?"FREE_PLAN":"PAID_PLAN"]}(a,t,n,__),y=[];return c?y.push({bulletIcon:p,textNode:c,requiresAnnuallyBilledPlan:!1,listItemExtraClassName:"plans-feature-list__item--disabled-message"}):g&&y.push({bulletIcon:g.bulletIcon,textNode:g.domainMessage,requiresAnnuallyBilledPlan:g.requiresAnnuallyBilledPlan,contentWrapperNode:({children:e,className:t})=>(0,i.createElement)(o.Button,{className:d()(g.wrapperClassName,t),onClick:l,isLink:!0},e)}),e.forEach((({name:e,requiresAnnuallyBilledPlan:t})=>y.push({bulletIcon:t&&"MONTHLY"===n?p:f,textNode:e,requiresAnnuallyBilledPlan:t}))),(0,i.createElement)("div",{className:"plans-feature-list",hidden:!s},(0,i.createElement)("ul",{className:d()("plans-feature-list__item-group",{"plans-feature-list__item-group--columns":m})},y.map(((e,t)=>(0,i.createElement)(h,(0,r.Z)({},e,{billingPeriod:n,key:t}))))))}},7891:function(e,t,n){"use strict";var r=n(9307),i=n(2779),o=n.n(i);n(9196),n(4571);t.Z=({isOpen:e=!1,multiColumn:t=!1})=>{const n=Array.from(Array(10).keys());return(0,r.createElement)("div",{className:"plans-feature-list",hidden:!e},(0,r.createElement)("ul",{className:o()("plans-feature-list__item-group",{"plans-feature-list__item-group--columns":t})},n.map((e=>(0,r.createElement)("li",{key:e,className:"plans-feature-list__item"},(0,r.createElement)("span",{className:"plans-feature-list__placeholder"},""))))))}},5315:function(e,t,n){"use strict";var r=n(9307),i=n(5915),o=n(9818),a=n(6656),s=n(8049),l=n.n(s),u=n(9196),c=n(1201),d=n(222),f=n(4564),p=n(1954),m=n(6795),g=n(9255);n(4290);const h=l()("plans-grid");t.Z=({header:e,selectedFeatures:t,currentPlanProductId:n,currentDomain:s,onPlanSelect:l,onPickDomainClick:y,disabledPlans:v,isAccordion:b,locale:_,showPlanTaglines:S=!1,CTAVariation:E="NORMAL",popularBadgeVariation:A="ON_TOP",customTagLines:w,hidePlansComparison:P=!1,defaultAllPlansExpanded:x=!1,onBillingPeriodChange:C})=>{const{__:__}=(0,a.useI18n)(),N=(0,o.useSelect)((e=>{var t;return null===(t=e(g.F).getPlanProductById(n))||void 0===t?void 0:t.billingPeriod})),[I,O]=u.useState(N||"ANNUALLY");u.useEffect((()=>{C&&C(I)}),[I,C]);const{maxAnnualDiscount:$}=(0,c.N)(_,I);return b&&h("PlansGrid accordion version is active"),(0,r.createElement)("div",{className:"plans-grid"},e&&(0,r.createElement)("div",{className:"plans-grid__header"},e),(0,r.createElement)(p.Z,{intervalType:I,onChange:O,maxMonthlyDiscountPercentage:$,className:"plans-grid__toggle"}),(0,r.createElement)("div",{className:"plans-grid__table"},(0,r.createElement)("div",{className:"plans-grid__table-container"},b?(0,r.createElement)(d.Z,{selectedFeatures:t,selectedPlanProductId:n,onPlanSelect:l,currentDomain:s,onPickDomainClick:y,disabledPlans:v,locale:_,billingPeriod:I}):(0,r.createElement)(m.Z,{popularBadgeVariation:A,CTAVariation:E,selectedPlanProductId:n,onPlanSelect:l,customTagLines:w,currentDomain:s,onPickDomainClick:y,disabledPlans:v,locale:_,showTaglines:S,defaultAllPlansExpanded:x,billingPeriod:I}))),!P&&(0,r.createElement)("div",{className:"plans-grid__details"},(0,r.createElement)("div",{className:"plans-grid__details-heading"},(0,r.createElement)(i.b,{tagName:"h2"},__("Detailed comparison","full-site-editing"))),(0,r.createElement)("div",{className:"plans-grid__details-container"},(0,r.createElement)(f.Z,{onSelect:l,locale:_,billingPeriod:I}))))}},1954:function(e,t,n){"use strict";var r=n(9307),i=n(849),o=n(5609),a=n(5736),s=n(6656),l=n(2779),u=n.n(l),c=(n(9196),n(5532));n(8674);const d=({children:e})=>{const t={desktop:"middle right",mobile:"bottom center"};return(0,r.createElement)(r.Fragment,null,Object.keys(t).map((n=>(0,r.createElement)(o.Popover,{key:n,className:u()("plans-interval-toggle__popover",`plans-interval-toggle__popover--${n}`),position:t[n],noArrow:!1},e))))};t.Z=({onChange:e,intervalType:t,maxMonthlyDiscountPercentage:n,className:o=""})=>{const{__:__,_x:_x,hasTranslation:l}=(0,s.useI18n)(),f=(0,i.bU)(),p=__("Pay monthly","full-site-editing"),m=_x("Monthly",'Adverb (as in "Pay monthly")',"full-site-editing"),g="en"===f||l("Monthly",'Adverb (as in "Pay monthly")',"full-site-editing")?m:p,h=__("Pay annually","full-site-editing"),y=_x("Annually",'Adverb (as in "Pay annually")',"full-site-editing"),v="en"===f||l("Annually",'Adverb (as in "Pay annually")',"full-site-editing")?y:h;return(0,r.createElement)("div",{className:u()("plans-interval-toggle",{"plans-interval-toggle--monthly":"MONTHLY"===t},o)},(0,r.createElement)(c.Z,null,(0,r.createElement)(c.Z.Item,{selected:"MONTHLY"===t,onClick:()=>e("MONTHLY")},(0,r.createElement)("span",{className:"plans-interval-toggle__label"},g)),(0,r.createElement)(c.Z.Item,{selected:"ANNUALLY"===t,onClick:()=>e("ANNUALLY")},(0,r.createElement)("span",{className:"plans-interval-toggle__label"},v),"MONTHLY"===t&&n&&(0,r.createElement)(d,null,(0,a.sprintf)(__("Save up to %(maxDiscount)d%% by paying annually and get a free domain for one year","full-site-editing"),{maxDiscount:n})))))}},6795:function(e,t,n){"use strict";var r=n(9307),i=n(9818),o=n(9196),a=n(1201),s=n(9255),l=n(2893);n(1233);t.Z=({selectedPlanProductId:e,onPlanSelect:t,onPickDomainClick:n,currentDomain:u,disabledPlans:c,locale:d,billingPeriod:f,showTaglines:p=!1,CTAVariation:m="NORMAL",popularBadgeVariation:g="ON_TOP",customTagLines:h,defaultAllPlansExpanded:y=!1})=>{const{supportedPlans:v}=(0,a.N)(d,f),[b,_]=(0,o.useState)(y),S=(0,i.useSelect)((e=>e(s.F).getPlanProduct));return(0,r.createElement)("div",{className:"plans-table"},v.filter((e=>!!e)).map((i=>{var o;return(0,r.createElement)(l.Z,{popularBadgeVariation:g,allPlansExpanded:b,key:i.periodAgnosticSlug,slug:i.periodAgnosticSlug,domain:u,tagline:(p&&(null==h?void 0:h[i.periodAgnosticSlug]))??i.description,CTAVariation:m,features:i.features??[],billingPeriod:f,isPopular:i.isPopular,isFree:i.isFree,name:null==i?void 0:i.title.toString(),isSelected:!!e&&e===(null===(o=S(i.periodAgnosticSlug,f))||void 0===o?void 0:o.productId),onSelect:t,onPickDomainClick:n,onToggleExpandAll:()=>_((e=>!e)),disabledLabel:null==c?void 0:c[i.periodAgnosticSlug]})})))}},2893:function(e,t,n){"use strict";var r=n(9307),i=n(849),o=n(5609),a=n(4333),s=n(9818),l=n(5736),u=n(5869),c=n(9806),d=n(6656),f=n(2779),p=n.n(f),m=n(9196),g=n(373),h=n(9255);const y=(0,r.createElement)(u.Z,{icon:c.Z,size:17}),v=(0,r.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,r.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}));t.Z=({slug:e,name:t,tagline:n,isPopular:u=!1,isFree:c=!1,domain:f,features:b,billingPeriod:_,onSelect:S,onPickDomainClick:E,onToggleExpandAll:A,allPlansExpanded:w,disabledLabel:P,CTAVariation:x="NORMAL",popularBadgeVariation:C="ON_TOP",isSelected:N})=>{const{__:__,hasTranslation:I}=(0,d.useI18n)(),O=(0,i.bU)(),$=(0,s.useSelect)((t=>t(h.F).getPlanProduct(e,_))),[L,M]=m.useState(!1),k=(0,a.useViewportMatch)("mobile",">=");m.useEffect((()=>{M(w)}),[w]);const F=w||k||u||L,T=__("Choose","full-site-editing"),D=__("Current Selection","full-site-editing"),R=__("Select %s","full-site-editing"),Z=__("billed annually","full-site-editing"),j=__("per month, billed as %s annually","full-site-editing"),B="en"===O||null!=I&&I("per month, billed as %s annually")?(0,l.sprintf)(j,null==$?void 0:$.annualPrice):Z,U=__("per month, billed monthly","full-site-editing"),G=__("Collapse all plans","full-site-editing"),H=__("Expand all plans","full-site-editing");return(0,r.createElement)("div",{className:p()("plan-item",{"is-popular":u,"is-open":F,"badge-next-to-name":"NEXT_TO_NAME"===C})},u&&"ON_TOP"===C&&(0,r.createElement)("span",{className:"plan-item__badge"},__("Popular","full-site-editing")),(0,r.createElement)("div",{className:p()("plan-item__viewport",{"is-popular":u})},(0,r.createElement)("div",{className:"plan-item__details"},(0,r.createElement)("div",{tabIndex:0,role:"button",onClick:()=>M((e=>!e)),onKeyDown:e=>32===e.keyCode&&M((e=>!e)),className:"plan-item__summary"},(0,r.createElement)("div",{className:p()("plan-item__heading",{"badge-next-to-name":"NEXT_TO_NAME"===C})},(0,r.createElement)("div",{className:"plan-item__name"},t),u&&"NEXT_TO_NAME"===C&&(0,r.createElement)("span",{className:"plan-item__badge-next-to-name"},__("Popular","full-site-editing"))),n&&(0,r.createElement)("p",{className:"plan-item__tagline"},n),(0,r.createElement)("div",{className:"plan-item__price"},(0,r.createElement)("div",{className:p()("plan-item__price-amount",{"is-loading":!(null!=$&&$.price)})},(null==$?void 0:$.price)||" ")),!F&&(0,r.createElement)("div",{className:"plan-item__dropdown-chevron"},v)),(0,r.createElement)("div",{hidden:!F},(0,r.createElement)("div",{className:"plan-item__price-note"},c&&__("free forever","full-site-editing"),!c&&("ANNUALLY"===_?B:U)),(0,r.createElement)("div",{className:p()("plan-item__price-discount",{"plan-item__price-discount--disabled":"ANNUALLY"!==_,"plan-item__price-discount--hidden":c}),"aria-hidden":c?"true":"false"},(0,l.sprintf)(__("Save %(discountRate)s%% by paying annually","full-site-editing"),{discountRate:(null==$?void 0:$.annualDiscount)??0})),(0,r.createElement)("div",{className:"plan-item__actions"},"NORMAL"===x?(0,r.createElement)(o.Button,{className:"plan-item__select-button",onClick:()=>{S(null==$?void 0:$.productId)},isPrimary:!0,disabled:!!P},(0,r.createElement)("span",null,P??T)):(0,r.createElement)(o.Button,{className:p()("plan-item__select-button full-width",{"is-selected":N,"is-popular":u}),onClick:()=>{S(null==$?void 0:$.productId)},isPrimary:u,disabled:!!P},(0,r.createElement)("span",null,P??(0,r.createElement)(r.Fragment,null,N?y:"",N?D:(0,l.sprintf)(R,t))))),(0,r.createElement)(g.Z,{features:b,domain:f,isFree:c,isOpen:F,onPickDomain:E,disabledLabel:P&&(0,l.sprintf)(__("%s is not included","full-site-editing"),null==f?void 0:f.domain_name),billingPeriod:_})))),u&&!k&&(0,r.createElement)(o.Button,{onClick:A,className:"plan-item__mobile-expand-all-plans",isLink:!0},w?G:H))}},5532:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(6666),i=n(9307),o=n(2779),a=n.n(o),s=n(3980),l=n.n(s),u=n(9196),c=n.n(u),d=n(8268);n(6011);class f extends c().Component{render(){const e={"is-compact":this.props.compact,"is-primary":this.props.primary};return(0,i.createElement)("ul",{className:a()("segmented-control",e,this.props.className),style:this.props.style,role:"radiogroup"},this.props.children)}}(0,r.Z)(f,"Item",d.Z),(0,r.Z)(f,"propTypes",{className:l().string,compact:l().bool,primary:l().bool,style:l().object,children:l().node.isRequired})},8268:function(e,t,n){"use strict";var r=n(6666),i=n(9307),o=n(2779),a=n.n(o),s=n(3980),l=n.n(s),u=n(9196),c=n.n(u);class d extends c().Component{constructor(...e){super(...e),(0,r.Z)(this,"handleKeyEvent",(e=>{switch(e.keyCode){case 13:case 32:e.preventDefault(),document.activeElement.click()}}))}render(){const e=a()({"segmented-control__item":!0,"is-selected":this.props.selected}),t=a()("segmented-control__link",{[`item-index-${this.props.index}`]:null!=this.props.index});return(0,i.createElement)("li",{className:e},(0,i.createElement)("a",{href:this.props.path,className:t,onClick:this.props.onClick,title:this.props.title,"data-e2e-value":this.props.value,role:"radio",tabIndex:0,"aria-checked":this.props.selected,onKeyDown:this.handleKeyEvent},(0,i.createElement)("span",{className:"segmented-control__text"},this.props.children)))}}(0,r.Z)(d,"propTypes",{children:l().node.isRequired,path:l().string,selected:l().bool,title:l().string,value:l().string,onClick:l().func,index:l().number}),(0,r.Z)(d,"defaultProps",{selected:!1}),t.Z=d},9255:function(e,t,n){"use strict";n.d(t,{F:function(){return o},J:function(){return a}});var r=n(9734),i=n(182);const o=r.register(),a=i.z()},8552:function(e,t,n){"use strict";n.d(t,{Vw:function(){return E},sS:function(){return C}});var r=n(8049),i=n.n(r),o=n(8650),a=n.n(o),s=n(8767),l=n(2884),u=n.n(l);const c=i()("wpcom-proxy-request"),d="https://public-api.wordpress.com",f=window.location.protocol+"//"+window.location.host,p=(()=>{let e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e})(),m=(()=>{try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}})();let g,h=null,y=!1;const v={},b=!!window.ProgressEvent&&!!window.FormData;c('using "origin": %o',f);const _=(e,t)=>{const n=Object.assign({},e);c("request(%o)",n),h||x();const r=(0,s.Z)();n.callback=r,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=b,n.method=String(n.method||"GET").toUpperCase(),c("params object: %o",n);const i=new window.XMLHttpRequest;if(i.params=n,v[r]=i,"function"==typeof t){let e=!1;const n=n=>{if(e)return;e=!0;const r=n.response||i.response;c("body: ",r),c("headers: ",n.headers),t(null,r,n.headers)},r=n=>{if(e)return;e=!0;const r=n.error||n.err||n;c("error: ",r),c("headers: ",n.headers),t(r,null,n.headers)};i.addEventListener("load",n),i.addEventListener("abort",r),i.addEventListener("error",r)}return"function"==typeof n.onStreamRecord&&delete n.onStreamRecord,y?A(n):(c("buffering API request since proxying <iframe> is not yet loaded"),g.push(n)),i},S=(e,t)=>"function"==typeof t?_(e,t):new Promise(((t,n)=>{_(e,((e,r)=>{e?n(e):t(r)}))}));function E(){return S({metaAPI:{accessAllUsersBlogs:!0}})}function A(e){c("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!m)return;for(let t=0;t<e.length;t++){const n=P(e[t][1]);n&&(e[t][1]=new window.File([n],n.name,{type:n.type}))}}(e.formData),h.contentWindow.postMessage(p?JSON.stringify(e):e,d)}function w(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function P(e){return w(e)?e:"object"==typeof e&&w(e.fileContents)?e.fileContents:null}function x(){c("install()"),h&&(c("uninstall()"),window.removeEventListener("message",N),document.body.removeChild(h),y=!1,h=null),g=[],window.addEventListener("message",N),h=document.createElement("iframe"),h.src=d+"/wp-admin/rest-proxy/?v=2.0#"+f,h.style.display="none",document.body.appendChild(h)}const C=()=>{x()};function N(e){if(c("onmessage"),e.origin!==d)return void c("ignoring message... %o !== %o",e.origin,d);if(e.source!==h.contentWindow)return void c("ignoring message... iframe elements do not match");let{data:t}=e;if(!t)return c("no `data`, bailing");if("ready"===t)return void function(){if(c('proxy <iframe> "load" event'),y=!0,g){for(let e=0;e<g.length;e++)A(g[e]);g=null}}();if(p&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){c('got "progress" event: %o',e);const t=v[e.callbackId];if(t){const n=new(a())("progress",e);(e.upload?t.upload:t).dispatchEvent(n)}}(t);if(!t.length)return c("`e.data` doesn't appear to be an Array, bailing...");const n=t[t.length-1];if(!(n in v))return c("bailing, no matching request with callback: %o",n);const r=v[n],{params:i}=r,o=t[0];let s=t[1];const l=t[2];if(207===s||delete v[n],i.metaAPI?s="metaAPIupdated"===o?200:500:c("got %o status code for URL: %o",s,i.path),"object"==typeof l&&(l.status=s,f=l["Content-Type"],/^application[/]x-ndjson($|;)/.test(f))){I(r,new Error("stream mode processing is not yet implemented for wpcom-proxy-request"),l)}else{var f;if(s&&2===Math.floor(s/100))!function(e,t,n){const r=new(a())("load");r.data=r.body=r.response=t,r.headers=n,e.dispatchEvent(r)}(r,o,l);else{I(r,u()(i,s,o),l)}}}function I(e,t,n){const r=new(a())("error");r.error=r.err=t,r.headers=n,e.dispatchEvent(r)}t.ZP=S},8049:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(2632)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,n){e.exports=function(e){function t(e){let n,i,o,a=null;function s(...e){if(!s.enabled)return;const r=s,i=Number(new Date),o=i-(n||i);r.diff=o,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,i)=>{if("%%"===n)return"%";a++;const o=t.formatters[i];if("function"==typeof o){const t=e[a];n=o.call(r,t),e.splice(a,1),a--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1378),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},3830:function(e,t,n){"use strict";var r=n(956);e.exports=function(){var e=r.apply(r,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},956:function(e){"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},7127:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(9196),i=n(669);function o(e,t){return e===t}function a(e,t,n){var a=n&&n.equalityFn?n.equalityFn:o,s=(0,r.useState)(e),l=s[0],u=s[1],c=(0,i.Z)((0,r.useCallback)((function(e){return u(e)}),[]),t,n),d=c[0],f=c[1],p=(0,r.useRef)(e);return(0,r.useEffect)((function(){a(p.current,e)||(d(e),p.current=e)}),[e,d,a]),[l,f]}},669:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(9196);function i(e,t,n){void 0===n&&(n={});var i=n.maxWait,o=(0,r.useRef)(null),a=(0,r.useRef)([]),s=n.leading,l=(0,r.useRef)(!1),u=(0,r.useRef)(null),c=(0,r.useRef)(!1),d=(0,r.useRef)(e);d.current=e;var f=(0,r.useCallback)((function(){clearTimeout(u.current),clearTimeout(o.current),o.current=null,a.current=[],u.current=null,l.current=!1}),[]);(0,r.useEffect)((function(){return function(){c.current=!0}}),[]);var p=(0,r.useCallback)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(a.current=e,clearTimeout(u.current),!u.current&&s&&!l.current)return d.current.apply(d,e),void(l.current=!0);u.current=setTimeout((function(){f(),c.current||d.current.apply(d,e)}),t),i&&!o.current&&(o.current=setTimeout((function(){var e=a.current;f(),c.current||d.current.apply(null,e)}),i))}),[i,t,f,s]);return[p,f,function(){u.current&&(d.current.apply(null,a.current),f())}]}},8186:function(e,t,n){"use strict";
302
  /** @license React vundefined
303
  * use-subscription.production.min.js
304
  *
8
  object-assign
9
  (c) Sindre Sorhus
10
  @license MIT
11
+ */var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,o){for(var a,s,l=i(e),u=1;u<arguments.length;u++){for(var c in a=Object(arguments[u]))n.call(a,c)&&(l[c]=a[c]);if(t){s=t(a);for(var d=0;d<s.length;d++)r.call(a,s[d])&&(l[s[d]]=a[s[d]])}}return l}},9500:function(e,t,n){var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&l&&"function"==typeof l.get?l.get:null,c=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,g=Object.prototype.toString,h=Function.prototype.toString,y=String.prototype.match,v="function"==typeof BigInt?BigInt.prototype.valueOf:null,b=Object.getOwnPropertySymbols,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,S="function"==typeof Symbol&&"object"==typeof Symbol.iterator,E=Object.prototype.propertyIsEnumerable,A=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null),w=n(3260).custom,P=w&&O(w)?w:null,x="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function C(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function N(e){return String(e).replace(/"/g,"&quot;")}function I(e){return!("[object Array]"!==M(e)||x&&"object"==typeof e&&x in e)}function O(e){if(S)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(t){}return!1}e.exports=function e(t,n,r,i){var s=n||{};if(L(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(L(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!L(s,"customInspect")||s.customInspect;if("boolean"!=typeof l&&"symbol"!==l)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(L(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return F(t,s);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var g=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=g&&g>0&&"object"==typeof t)return I(t)?"[Array]":"[Object]";var b=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Array(e.indent+1).join(" ")}return{base:n,prev:Array(t+1).join(n)}}(s,r);if(void 0===i)i=[];else if(k(i,t)>=0)return"[Circular]";function E(t,n,o){if(n&&(i=i.slice()).push(n),o){var a={depth:s.depth};return L(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,i)}return e(t,s,r+1,i)}if("function"==typeof t){var w=function(e){if(e.name)return e.name;var t=y.call(h.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),$=B(t,E);return"[Function"+(w?": "+w:" (anonymous)")+"]"+($.length>0?" { "+$.join(", ")+" }":"")}if(O(t)){var T=S?String(t).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):_.call(t);return"object"!=typeof t||S?T:D(T)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var U="<"+String(t.nodeName).toLowerCase(),G=t.attributes||[],H=0;H<G.length;H++)U+=" "+G[H].name+"="+C(N(G[H].value),"double",s);return U+=">",t.childNodes&&t.childNodes.length&&(U+="..."),U+="</"+String(t.nodeName).toLowerCase()+">"}if(I(t)){if(0===t.length)return"[]";var V=B(t,E);return b&&!function(e){for(var t=0;t<e.length;t++)if(k(e[t],"\n")>=0)return!1;return!0}(V)?"["+j(V,b)+"]":"[ "+V.join(", ")+" ]"}if(function(e){return!("[object Error]"!==M(e)||x&&"object"==typeof e&&x in e)}(t)){var W=B(t,E);return 0===W.length?"["+String(t)+"]":"{ ["+String(t)+"] "+W.join(", ")+" }"}if("object"==typeof t&&l){if(P&&"function"==typeof t[P])return t[P]();if("symbol"!==l&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{u.call(e)}catch(U){return!0}return e instanceof Map}catch(t){}return!1}(t)){var z=[];return a.call(t,(function(e,n){z.push(E(n,t,!0)+" => "+E(e,t))})),Z("Map",o.call(t),z,b)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var Y=[];return c.call(t,(function(e){Y.push(E(e,t))})),Z("Set",u.call(t),Y,b)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(U){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return R("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(U){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return R("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(t){}return!1}(t))return R("WeakRef");if(function(e){return!("[object Number]"!==M(e)||x&&"object"==typeof e&&x in e)}(t))return D(E(Number(t)));if(function(e){if(!e||"object"!=typeof e||!v)return!1;try{return v.call(e),!0}catch(t){}return!1}(t))return D(E(v.call(t)));if(function(e){return!("[object Boolean]"!==M(e)||x&&"object"==typeof e&&x in e)}(t))return D(m.call(t));if(function(e){return!("[object String]"!==M(e)||x&&"object"==typeof e&&x in e)}(t))return D(E(String(t)));if(!function(e){return!("[object Date]"!==M(e)||x&&"object"==typeof e&&x in e)}(t)&&!function(e){return!("[object RegExp]"!==M(e)||x&&"object"==typeof e&&x in e)}(t)){var q=B(t,E),K=A?A(t)===Object.prototype:t instanceof Object||t.constructor===Object,J=t instanceof Object?"":"null prototype",X=!K&&x&&Object(t)===t&&x in t?M(t).slice(8,-1):J?"Object":"",Q=(K||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(X||J?"["+[].concat(X||[],J||[]).join(": ")+"] ":"");return 0===q.length?Q+"{}":b?Q+"{"+j(q,b)+"}":Q+"{ "+q.join(", ")+" }"}return String(t)};var $=Object.prototype.hasOwnProperty||function(e){return e in this};function L(e,t){return $.call(e,t)}function M(e){return g.call(e)}function k(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function F(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return F(e.slice(0,t.maxStringLength),t)+r}return C(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,T),"single",t)}function T(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function D(e){return"Object("+e+")"}function R(e){return e+" { ? }"}function Z(e,t,n,r){return e+" ("+t+") {"+(r?j(n,r):n.join(", "))+"}"}function j(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+e.join(","+n)+"\n"+t.prev}function B(e,t){var n=I(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=L(e,i)?t(e[i],e):""}var o,a="function"==typeof b?b(e):[];if(S){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var l in e)L(e,l)&&(n&&String(Number(l))===l&&l<e.length||S&&o["$"+l]instanceof Symbol||(/[^\w$]/.test(l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof b)for(var u=0;u<a.length;u++)E.call(e,a[u])&&r.push("["+t(a[u])+"]: "+t(e[a[u]],e));return r}},8650:function(e){var t,n=window.ProgressEvent,r=!!n;try{t=new n("loaded"),r="loaded"===t.type,t=null}catch(i){r=!1}e.exports=r?n:"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("Event");return n.initEvent(e,!1,!1),t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}},8262:function(e,t,n){"use strict";var r=n(3586);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},3980:function(e,t,n){e.exports=n(8262)()},3586:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5527:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:i}},9126:function(e,t,n){"use strict";var r=n(6845),i=n(9166),o=n(5527);e.exports={formats:o,parse:i,stringify:r}},9166:function(e,t,n){"use strict";var r=n(2493),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),u=s?o.slice(0,s.index):o,c=[];if(u){if(!n.plainObjects&&i.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var d=0;n.depth>0&&null!==(s=a.exec(o))&&d<n.depth;){if(d+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(s[1])}return s&&c.push("["+o.slice(s.index)+"]"),function(e,t,n,r){for(var i=r?t:l(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(u,10);n.parseArrays||""!==u?!isNaN(c)&&s!==u&&String(c)===u&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=i:a[u]=i:a={0:i}}i=a}return i}(c,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var n,u={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=c.split(t.delimiter,d),p=-1,m=t.charset;if(t.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?m="utf-8":"utf8=%26%2310003%3B"===f[n]&&(m="iso-8859-1"),p=n,n=f.length);for(n=0;n<f.length;++n)if(n!==p){var g,h,y=f[n],v=y.indexOf("]="),b=-1===v?y.indexOf("="):v+1;-1===b?(g=t.decoder(y,a.decoder,m,"key"),h=t.strictNullHandling?null:""):(g=t.decoder(y.slice(0,b),a.decoder,m,"key"),h=r.maybeMap(l(y.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,m,"value")}))),h&&t.interpretNumericEntities&&"iso-8859-1"===m&&(h=s(h)),y.indexOf("[]=")>-1&&(h=o(h)?[h]:h),i.call(u,g)?u[g]=r.combine(u[g],h):u[g]=h}return u}(e,n):e,d=n.plainObjects?Object.create(null):{},f=Object.keys(c),p=0;p<f.length;++p){var m=f[p],g=u(m,c[m],n,"string"==typeof e);d=r.merge(d,g,n)}return!0===n.allowSparse?d:r.compact(d)}},6845:function(e,t,n){"use strict";var r=n(4294),i=n(2493),o=n(5527),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,f=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},m=function e(t,n,o,a,s,u,d,f,m,g,h,y,v,b,_){var S,E=t;if(_.has(t))throw new RangeError("Cyclic object value");if("function"==typeof d?E=d(n,E):E instanceof Date?E=g(E):"comma"===o&&l(E)&&(E=i.maybeMap(E,(function(e){return e instanceof Date?g(e):e}))),null===E){if(a)return u&&!v?u(n,p.encoder,b,"key",h):n;E=""}if("string"==typeof(S=E)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||i.isBuffer(E))return u?[y(v?n:u(n,p.encoder,b,"key",h))+"="+y(u(E,p.encoder,b,"value",h))]:[y(n)+"="+y(String(E))];var A,w=[];if(void 0===E)return w;if("comma"===o&&l(E))A=[{value:E.length>0?E.join(",")||null:void 0}];else if(l(d))A=d;else{var P=Object.keys(E);A=f?P.sort(f):P}for(var x=0;x<A.length;++x){var C=A[x],N="object"==typeof C&&void 0!==C.value?C.value:E[C];if(!s||null!==N){var I=l(E)?"function"==typeof o?o(n,C):n:n+(m?"."+C:"["+C+"]");_.set(t,!0);var O=r();c(w,e(N,I,o,a,s,u,d,f,m,g,h,y,v,b,O))}}return w};e.exports=function(e,t){var n,i=e,u=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],i=p.filter;return("function"==typeof e.filter||l(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof u.filter?i=(0,u.filter)("",i):l(u.filter)&&(n=u.filter);var d,f=[];if("object"!=typeof i||null===i)return"";d=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var g=s[d];n||(n=Object.keys(i)),u.sort&&n.sort(u.sort);for(var h=r(),y=0;y<n.length;++y){var v=n[y];u.skipNulls&&null===i[v]||c(f,m(i[v],v,g,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,h))}var b=f.join(u.delimiter),_=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),b.length>0?_+b:""}},2493:function(e,t,n){"use strict";var r=n(5527),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),l=0;l<s.length;++l){var u=s[l],c=a[u];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:a,prop:u}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(e,t,n,i,o){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",u=0;u<s.length;++u){var c=s.charCodeAt(u);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===r.RFC1738&&(40===c||41===c)?l+=s.charAt(u):c<128?l+=a[c]:c<2048?l+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?l+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(u+=1,c=65536+((1023&c)<<10|1023&s.charCodeAt(u)),l+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return l},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=s(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),a)}}},3631:function(e,t,n){"use strict";var r=n(9196),i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=n(7201),a=n(4983),s=n(6590),l="function"==typeof Symbol&&Symbol.iterator;function u(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function c(e,t,n,r){var o,s=typeof e;if("undefined"!==s&&"boolean"!==s||(e=null),null===e||"string"===s||"number"===s||"object"===s&&e.$$typeof===i)return n(r,e,""===t?"."+u(e,0):t),1;var d=0,f=""===t?".":t+":";if(Array.isArray(e))for(var p=0;p<e.length;p++)d+=c(o=e[p],f+u(o,p),n,r);else{var m=function(e){var t=e&&(l&&e[l]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(m){0;for(var g,h=m.call(e),y=0;!(g=h.next()).done;)d+=c(o=g.value,f+u(o,y++),n,r)}else if("object"===s){0;var v=""+e;a(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===v?"object with keys {"+Object.keys(e).join(", ")+"}":v,"")}}return d}var d=/\/+/g;function f(e){return(""+e).replace(d,"$&/")}var p,m,g=h,h=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},y=function(e){var t=this;a(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function v(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function b(e,t,n){var i,a,s=e.result,l=e.keyPrefix,u=e.func,c=e.context,d=u.call(c,t,e.count++);Array.isArray(d)?_(d,s,n,o.thatReturnsArgument):null!=d&&(r.isValidElement(d)&&(i=d,a=l+(!d.key||t&&t.key===d.key?"":f(d.key)+"/")+n,d=r.cloneElement(i,{key:a},void 0!==i.props?i.props.children:void 0)),s.push(d))}function _(e,t,n,r,i){var o="";null!=n&&(o=f(n)+"/");var a=v.getPooled(t,o,r,i);!function(e,t,n){null==e||c(e,"",t,n)}(e,b,a),v.release(a)}v.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},p=function(e,t,n,r){var i=this;if(i.instancePool.length){var o=i.instancePool.pop();return i.call(o,e,t,n,r),o}return new i(e,t,n,r)},(m=v).instancePool=[],m.getPooled=p||g,m.poolSize||(m.poolSize=10),m.release=y;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return s(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return s(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;a(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)_(e[n],t,n,o.thatReturnsArgument);return t}},4294:function(e,t,n){"use strict";var r=n(7286),i=n(2680),o=n(9500),a=r("%TypeError%"),s=r("%WeakMap%",!0),l=r("%Map%",!0),u=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),f=i("Map.prototype.get",!0),p=i("Map.prototype.set",!0),m=i("Map.prototype.has",!0),g=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+o(e))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return u(e,r)}else if(l){if(t)return f(t,r)}else if(n)return function(e,t){var n=g(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return d(e,r)}else if(l){if(t)return m(t,r)}else if(n)return function(e,t){return!!g(e,t)}(n,r);return!1},set:function(r,i){s&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new s),c(e,r,i)):l?(t||(t=new l),p(t,r,i)):(n||(n={key:{},next:null}),function(e,t,n){var r=g(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,i))}};return r}},9830:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1184),i={contextDelimiter:"",onMissingKey:null};function o(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},i)this.options[n]=void 0!==t&&n in t?t[n]:i[n]}o.prototype.getPluralForm=function(e,t){var n,i,o,a=this.pluralForms[e];return a||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(i=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),o=(0,r.Z)(i)),a=this.pluralForms[e]=o),a(t)},o.prototype.dcnpgettext=function(e,t,n,r,i){var o,a,s;return o=void 0===i?0:this.getPluralForm(e,i),a=n,t&&(a=t+this.options.contextDelimiter+n),(s=this.data[e][a])&&s[o]?s[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)}},365:function(e,t,n){"use strict";n.d(t,{y:function(){return r}});const r=()=>{try{return window.self!==window.top}catch(e){return!0}};!window||!window._currentSiteType||window._currentSiteType},7989:function(e,t,n){"use strict";var r=n(9307),i=n(849),o=n(4655),a=n(6357),s=n(9818),l=n(2694),u=n(8817),c=n(9196),d=n(365),f=n(1157),p=n(9095),m=n(8318),g=n(8550);var h,y;h="a8c-editor-site-launch",y={render:function(){var e;const{isSidebarOpen:t}=(0,s.useSelect)((e=>e(m.sC).getState())),{closeSidebar:n,setSidebarFullscreen:u,unsetSidebarFullscreen:h}=(0,s.useDispatch)(m.sC);return(0,c.useEffect)((()=>{window.innerWidth<782?u():h()}),[t,u,h]),(0,c.useEffect)((()=>{const e="a8c.wpcom-block-editor.toggleInlineHelpButton";(0,l.hasAction)(e)&&(0,l.doAction)(e,{hidden:t})}),[t]),t?(0,r.createElement)(i.Iw,{localeSlug:(null===(e=window.wpcomEditorSiteLaunch)||void 0===e?void 0:e.locale)??o.OP},(0,r.createElement)(a.Z.Provider,{value:{siteId:window._currentSiteId,flow:f.OS,redirectTo:g.gQ,openCheckout:g.Rd,getCurrentLaunchFlowUrl:g.O0,isInIframe:(0,d.y)()}},(0,r.createElement)(p.Z,{onClose:n}))):null}},(0,u.registerPlugin)(h,y)},1157:function(e,t,n){"use strict";n.d(t,{OS:function(){return r},Js:function(){return i},nU:function(){return o}});const r="gutenboarding",i="focused-launch",o="should_launch"},6915:function(e,t,n){"use strict";var r=n(9307),i=n(9818),o=n(6656),a=(n(9196),n(8318)),s=n(8374);n(4919);t.Z=({onMenuItemClick:e})=>{const{__:__}=(0,o.useI18n)(),{currentStep:t,LaunchStep:n,LaunchSequence:l,isStepCompleted:u,isFlowCompleted:c}=(0,i.useSelect)((e=>{const t=e(a.sC);return{currentStep:t.getCurrentStep(),LaunchStep:t.getLaunchStep(),LaunchSequence:t.getLaunchSequence(),isStepCompleted:t.isStepCompleted,isFlowCompleted:t.isFlowCompleted()}})),d={[n.Name]:__("Name your site","full-site-editing"),[n.Domain]:__("Select a domain","full-site-editing"),[n.Plan]:__("Select a plan","full-site-editing"),[n.Final]:__("Launch your site","full-site-editing")},{setStep:f}=(0,i.useDispatch)(a.sC);return(0,r.createElement)("div",{className:"nux-launch-menu"},(0,r.createElement)("h4",null,__("Site Launch Steps","full-site-editing")),(0,r.createElement)("div",{className:"nux-launch-menu__item-group"},l.map((i=>(0,r.createElement)(s.Z,{key:i,title:d[i],isCompleted:u(i),isCurrent:i===t,onClick:()=>(t=>{f(t),e(t)})(i),isDisabled:i===n.Final&&!c})))))}},8374:function(e,t,n){"use strict";var r=n(9307),i=n(5609),o=n(5869),a=n(9806),s=n(2779),l=n.n(s);n(9196);const u=(0,r.createElement)(i.SVG,{viewBox:"0 0 24 24"},(0,r.createElement)(i.Circle,{cx:"12",cy:"12",r:"5"}));t.Z=({title:e,isCompleted:t,isCurrent:n,isDisabled:s,onClick:c})=>(0,r.createElement)(i.Button,{className:l()("nux-launch-menu__item",{"is-current":n,"is-completed":t}),onClick:c,disabled:s,isLink:!0},(0,r.createElement)(o.Z,{icon:t?a.Z:u,size:16}),(0,r.createElement)("span",null,e))},9095:function(e,t,n){"use strict";var r=n(9307),i=n(849),o=n(6357),a=n(3357),s=n(5609),l=n(9818),u=n(5736),c=n(5869),d=n(1742),f=n(8565),p=n(2779),m=n.n(p),g=n(9196),h=n(8398),y=n(2526),v=n(2326),b=n(8318);n(7280);const __=u.__;t.Z=({onClose:e,isLaunchImmediately:t})=>{const{siteId:n}=g.useContext(o.Z),{step:u,isSidebarFullscreen:p}=(0,l.useSelect)((e=>e(b.sC).getState())),[_,S]=g.useState(!1),[E,A]=g.useState(!1),{launchSite:w}=(0,l.useDispatch)(b.j4),{savePost:P}=(0,l.useDispatch)("core/editor"),x=(0,i.bU)(),{setPlanProductId:C}=(0,l.useDispatch)(b.sC),N=(0,l.useSelect)((e=>e(b.Fs).getDefaultFreePlan(x))),I=g.useCallback((()=>{w(n),S(!0)}),[w,S,n]);return g.useEffect((()=>{t&&!_&&S(!0)}),[_,t]),g.useEffect((()=>{t&&!E&&null!=N&&N.productIds[0]&&(C(null==N?void 0:N.productIds[0]),A(!0),(async()=>{await P()})(),I())}),[t,E,I,P,N,C]),(0,a.X)(),(0,r.createElement)(s.Modal,{open:!0,className:m()("nux-launch-modal",`step-${u}`,p?"is-sidebar-fullscreen":""),overlayClassName:"nux-launch-modal-overlay",bodyOpenClassName:"has-nux-launch-modal",onRequestClose:e,title:""},_?(0,r.createElement)("div",{className:"nux-launch-modal-body__launching"},__("Hooray! Your site will be ready shortly.","full-site-editing")):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"nux-launch-modal-body"},(0,r.createElement)("div",{className:"nux-launch-modal-header"},(0,r.createElement)("div",{className:"nux-launch-modal-header__wp-logo"},(0,r.createElement)(c.Z,{icon:d.Z,size:36})),(0,r.createElement)(y.Z,null)),(0,r.createElement)(h.Z,{onSubmit:I})),(0,r.createElement)("div",{className:"nux-launch-modal-aside"},(0,r.createElement)(v.Z,null)),(0,r.createElement)(s.Button,{isLink:!0,className:"nux-launch-modal__close-button",onClick:e,"aria-label":__("Close dialog","full-site-editing"),disabled:!e},(0,r.createElement)("span",null,(0,r.createElement)(c.Z,{icon:f.Z,size:24})))))}},2526:function(e,t,n){"use strict";var r=n(9307),i=n(9818),o=n(5736),a=n(6656),s=(n(9196),n(8318));n(3232);t.Z=()=>{const{__:__}=(0,a.useI18n)(),{currentStep:e,LaunchSequence:t}=(0,i.useSelect)((e=>{const t=e(s.sC);return{currentStep:t.getCurrentStep(),LaunchSequence:t.getLaunchSequence()}})),n=t.indexOf(e)+1,l=t.length,u=(0,o.sprintf)(__("%1$d of %2$d","full-site-editing"),n,l);return(0,r.createElement)("div",{className:"nux-launch-progress"},u)}},2326:function(e,t,n){"use strict";var r=n(9307),i=n(5915),o=n(9211),a=n(9818),s=n(5736),l=(n(9196),n(6915)),u=n(8318);n(1128);const __=s.__;t.Z=()=>{const{setStep:e,unsetSidebarFullscreen:t}=(0,a.useDispatch)(u.sC),n=(0,a.useSelect)((e=>e(u.sC).getLaunchSequence()));return(0,r.createElement)("div",{className:"nux-launch-sidebar"},(0,r.createElement)("div",{className:"nux-launch-sidebar__header"},(0,r.createElement)(i.b,null,__("You're almost there!","full-site-editing")),(0,r.createElement)(i.D,null,__("Complete the following steps to launch your site. Your site will remain private until you Launch.","full-site-editing"))),(0,r.createElement)("div",{className:"nux-launch-sidebar__body"},(0,r.createElement)(l.Z,{onMenuItemClick:()=>{t()}})),(0,r.createElement)("div",{className:"nux-launch-sidebar__footer"},(0,r.createElement)(o.ZP,{sticky:!0},(0,r.createElement)(o.aW,{onClick:()=>{e(n[0]),t()}},__("Get Started","full-site-editing")))))}},381:function(e,t,n){"use strict";var r=n(9307);n(9196),n(8306);t.Z=({children:e})=>(0,r.createElement)(r.Fragment,null,e)},9270:function(e,t,n){"use strict";var r=n(9307),i=n(6115),o=n(2999),a=n(3446),s=n(849),l=n(780),u=n(5144),c=n(6956),d=n(5915),f=n(9211),p=n(9818),m=n(6656),g=(n(9196),n(1157)),h=n(381),y=n(8318);t.Z=({onPrevStep:e,onNextStep:t})=>{const{__:__,hasTranslation:n}=(0,m.useI18n)(),v=(0,s.bU)(),{onDomainSelect:b,onExistingSubdomainSelect:_,currentDomain:S}=(0,l.my)(),{siteSubdomain:E}=(0,u.j)(),{domainSearch:A,setDomainSearch:w}=(0,c.f)(),{confirmDomainSelection:P}=(0,p.useDispatch)(y.sC),x=()=>{P(),null==t||t()},C=__("Free for the first year with any paid plan.","full-site-editing"),N=__("Free for the first year with any annual plan.","full-site-editing"),I="en"===v||null!=n&&n("Free for the first year with any annual plan.")?N:C;return(0,r.createElement)(h.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(d.b,null,__("Choose a domain","full-site-editing")),(0,r.createElement)(d.D,null,I)),(0,r.createElement)(f.ZP,{sticky:!1},(0,r.createElement)(f.aW,{onClick:x,disabled:!A}))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)(o.ZP,{analyticsFlowId:g.OS,initialDomainSearch:A,onSetDomainSearch:w,onDomainSearchBlur:e=>{(0,i.jN)("calypso_newsite_domain_search_blur",{flow:g.OS,query:e,where:"editor_domain_modal"})},currentDomain:S||(0,a.nf)(null==E?void 0:E.domain),existingSubdomain:(0,a.nf)(null==E?void 0:E.domain),onDomainSelect:b,onExistingSubdomainSelect:_,analyticsUiAlgo:"editor_domain_modal",segregateFreeAndPaid:!0,locale:v})),(0,r.createElement)("div",{className:"nux-launch-step__footer"},(0,r.createElement)(f.ZP,{sticky:!0},(0,r.createElement)(f.xE,{onClick:()=>{null==e||e()}}),(0,r.createElement)(f.aW,{onClick:x,disabled:!A}))))}},4502:function(e,t,n){"use strict";var r=n(9307),i=n(7384),o=n(1806),a=n(7450),s=n(849),l=n(7498),u=n(4557),c=n(5144),d=n(8463),f=n(6956),p=n(5915),m=n(9211),g=n(3509),h=n(5609),y=n(9818),v=n(5736),b=n(5869),_=n(9806),S=n(6656),E=n(2779),A=n.n(E),w=(n(9196),n(381)),P=n(8318);n(4734);const x=(0,r.createElement)(b.Z,{icon:_.Z,size:17});t.Z=({onNextStep:e,onPrevStep:t})=>{const{domain:n,LaunchStep:b,isStepCompleted:_,isFlowCompleted:E,planProductId:C}=(0,y.useSelect)((e=>{const t=e(P.sC);return{domain:t.getSelectedDomain(),LaunchStep:t.getLaunchStep(),isStepCompleted:t.isStepCompleted,isFlowCompleted:t.isFlowCompleted(),planProductId:t.getSelectedPlanProductId()}})),{__:__,hasTranslation:N}=(0,S.useI18n)(),I=(0,s.bU)(),[O,$]=(0,y.useSelect)((e=>[e(P.Fs).getPlanByProductId(C,I),e(P.Fs).getPlanProductById(C)])),{title:L}=(0,u.Z)(),{siteSubdomain:M}=(0,c.j)(),k=(0,d.V)(),{domainSearch:F}=(0,f.f)(),{setStep:T}=(0,y.useDispatch)(P.sC),D=(0,l.Iu)(),R=(0,r.createElement)("div",{className:"nux-launch__summary-item"},(0,r.createElement)("p",null,__("Site","full-site-editing"),": ",L)),Z=(0,r.createElement)("div",{className:"nux-launch__summary-item"},null!=n&&n.domain_name?(0,r.createElement)("p",null,__("Custom domain","full-site-editing"),": ",n.domain_name,"MONTHLY"===(null==$?void 0:$.billingPeriod)&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("br",null),(0,r.createElement)("span",{className:"nux-launch__summary-item__domain-price"},__("Domain Registration","full-site-editing"),":"," ",(0,v.sprintf)(__("%s/year","full-site-editing"),n.cost)))):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",null,__("Free site address","full-site-editing"),": ",null==M?void 0:M.domain),(0,r.createElement)(h.Tip,null,F?(0,r.createInterpolateElement)(__("A custom site address like <DomainName /> (<Link>now available!</Link>) is more unique and can help with your SEO ranking.","full-site-editing"),{DomainName:(0,r.createElement)("span",{className:A()("nux-launch__summary-item__domain-name",{"is-loading":!k})},(null==k?void 0:k.domain_name)||"loading-example.com"),Link:(0,r.createElement)(h.Button,{isLink:!0,onClick:()=>T(b.Domain)})}):__("A custom site address is more unique and can help with your SEO ranking.","full-site-editing")))),j=__("billed annually","full-site-editing"),B=__("per month, billed as %s annually","full-site-editing"),U="en"===I||null!=N&&N("per month, billed as %s annually")?(0,v.sprintf)(B,null==$?void 0:$.annualPrice):j,G=__("per month, billed monthly","full-site-editing"),H=(0,r.createElement)("div",{className:"nux-launch__summary-item"},O&&$&&!O.isFree?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com ",O.title),__("Plan subscription","full-site-editing"),": ",$.price," ","ANNUALLY"===$.billingPeriod?U:G):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com Free"),(0,r.createElement)("p",null,__("Plan subscription: Free forever","full-site-editing")),(0,r.createElement)(h.Tip,null,(0,r.createInterpolateElement)((0,v.sprintf)(__("<Link>Upgrade to Premium</Link> to get access to 13GB storage space, payment collection options, 24/7 Live Chat support, and more. Not sure? Give it a spin—we offer %1$d-day full-refunds, guaranteed.","full-site-editing"),14),{Link:(0,r.createElement)(h.Button,{isLink:!0,onClick:()=>T(b.Plan)})}))));return(0,r.createElement)(w.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(p.b,null,__("Launch your site","full-site-editing")),(0,r.createElement)(p.D,null,__("Your site will be made public and ready to share with others.","full-site-editing")))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)(g.a,{theme:i.Z},(0,r.createElement)(o._U,null,_(b.Plan)&&(0,r.createElement)(o.Bb,null,(0,r.createElement)(o.nb,{className:"nux-launch__feature-list"},(0,r.createElement)("h3",{className:"nux-launch__feature-list-title"},__("Included in your plan","full-site-editing")),(0,r.createElement)("ul",{className:"nux-launch__feature-item-group"},null==O?void 0:O.features.filter((e=>"ANNUALLY"===(null==$?void 0:$.billingPeriod)||!e.requiresAnnuallyBilledPlan)).map(((e,t)=>(0,r.createElement)("li",{key:t,className:"nux-launch__feature-item"},x," ",e.name)))),(0,r.createElement)("p",null,__("Questions?","full-site-editing")," ",(0,r.createElement)(h.Button,{isLink:!0,href:D("https://wordpress.com/help/contact",I),target:"_blank",rel:"noopener noreferrer"},__("Ask a Happiness Engineer","full-site-editing"))))),(0,r.createElement)(o.r8,null,(0,r.createElement)(o.V9,{isStepActive:!1,titleContent:__("Your site name","full-site-editing"),isStepComplete:_(b.Name),goToThisStep:()=>T(b.Name),completeStepContent:R,stepId:"name",formStatus:a.PX.READY}),(0,r.createElement)(o.V9,{isStepActive:!1,titleContent:__("Your domain","full-site-editing"),isStepComplete:_(b.Domain),goToThisStep:()=>T(b.Domain),completeStepContent:Z,stepId:"domain",formStatus:a.PX.READY}),(0,r.createElement)(o.V9,{isStepActive:!1,titleContent:__("Your plan","full-site-editing"),isStepComplete:_(b.Plan),goToThisStep:()=>T(b.Plan),completeStepContent:H,stepId:"plan",formStatus:a.PX.READY}),(0,r.createElement)(o.ds,null,(0,r.createElement)(h.Button,{isPrimary:!0,disabled:!E,onClick:e,className:"nux-launch__submit-button"},__("Launch your site","full-site-editing"))))))),(0,r.createElement)("div",{className:"nux-launch-step__footer"},(0,r.createElement)(m.ZP,{sticky:!0},(0,r.createElement)(m.xE,{onClick:()=>{null==t||t()}}))))}},958:function(e,t,n){"use strict";var r=n(9307),i=n(4557),o=n(5915),a=n(9211),s=n(5609),l=n(5736),u=(n(9196),n(381));n(8594);const __=l.__;t.Z=({onPrevStep:e,onNextStep:t})=>{const{title:n,updateTitle:l}=(0,i.Z)(),c=()=>{null==t||t()};return(0,r.createElement)(u.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(o.b,null,__("Name your site","full-site-editing")),(0,r.createElement)(o.D,null,__("Pick a name for your site.","full-site-editing"))),(0,r.createElement)(a.ZP,{sticky:!1},(0,r.createElement)(a.aW,{onClick:c,disabled:!(null!=n&&n.trim())}))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)("form",{onSubmit:c},(0,r.createElement)(s.TextControl,{id:"nux-launch-step__input",className:"nux-launch-step__input",onChange:l,value:n||"",spellCheck:!1,autoComplete:"off",placeholder:__("Enter site name","full-site-editing"),autoCorrect:"off"}),(0,r.createElement)("div",{className:"nux-launch-step__input-hint"},(0,r.createElement)(s.Tip,{size:18}),(0,r.createElement)("span",null,__("Don't worry, you can change it later.","full-site-editing"))))),(0,r.createElement)("div",{className:"nux-launch-step__footer"},(0,r.createElement)(a.ZP,{sticky:!0},(0,r.createElement)(a.xE,{onClick:()=>{null==e||e()}}),(0,r.createElement)(a.aW,{onClick:c,disabled:!(null!=n&&n.trim())}))))}},4524:function(e,t,n){"use strict";var r=n(9307),i=n(3073),o=n(5915),a=n(9211),s=n(5315),l=n(9818),u=n(5736),c=(n(9196),n(381)),d=n(8318);n(7605);const __=u.__;t.Z=({onPrevStep:e,onNextStep:t})=>{var n;const{domain:f,LaunchStep:p,selectedPlanProductId:m}=(0,l.useSelect)((e=>{const t=e(d.sC);return{domain:t.getSelectedDomain(),LaunchStep:t.getLaunchStep(),selectedPlanProductId:t.getSelectedPlanProductId()}})),{setPlanProductId:g,setStep:h}=(0,l.useDispatch)(d.sC),{selectedFeatures:y}=(0,i.W)(),v=f&&!f.is_free;return(0,r.createElement)(c.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(o.b,null,__("Select a plan","full-site-editing")),(0,r.createElement)(o.D,null,(0,u.sprintf)(__("Pick a plan that’s right for you. Switch plans as your needs change. There’s no risk, you can cancel for a full refund within %1$d days.","full-site-editing"),14)))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)(s.Z,{currentPlanProductId:m,currentDomain:f,onPlanSelect:e=>{g(e),null==t||t()},onPickDomainClick:()=>{h(p.Domain)},disabledPlans:v?{free:__("Unavailable with domain","full-site-editing")}:void 0,isAccordion:!0,selectedFeatures:y,locale:(null===(n=window.wpcomEditorSiteLaunch)||void 0===n?void 0:n.locale)||"en"})),(0,r.createElement)("div",{className:"nux-launch-step__footer"},(0,r.createElement)(a.ZP,{sticky:!0},(0,r.createElement)(a.xE,{onClick:()=>{null==e||e()}}))))}},8398:function(e,t,n){"use strict";var r=n(9307),i=n(9818),o=n(9196),a=n(9270),s=n(4502),l=n(958),u=n(4524),c=n(8318);n(8508);t.Z=({onSubmit:e})=>{const{step:t}=(0,i.useSelect)((e=>e(c.sC).getState())),n=(0,i.useSelect)((e=>e(c.sC).getLaunchStep())),d=(0,i.useSelect)((e=>e(c.sC).getLaunchSequence())),f=(0,i.useSelect)((e=>e(c.sC).getFirstIncompleteStep())),{setStep:p,setSidebarFullscreen:m,unsetSidebarFullscreen:g}=(0,i.useDispatch)(c.sC),h={[n.Name]:l.Z,[n.Domain]:a.Z,[n.Plan]:u.Z,[n.Final]:s.Z},y=d.indexOf(t),v=h[t];return o.useEffect((()=>{f&&f!==n.Name&&p(f)}),[]),(0,r.createElement)(v,{onPrevStep:()=>{let e=y-1;e<0&&(e=0,m()),p(d[e])},onNextStep:()=>{const t=y+1;t>d.length-1&&(null==e||e()),g(),p(d[t])}})}},8318:function(e,t,n){"use strict";n.d(t,{j4:function(){return r},sC:function(){return i},Fs:function(){return o}});n(3288);const r="automattic/site",i="automattic/launch",o="automattic/onboard/plans"},8550:function(e,t,n){"use strict";n.d(t,{O0:function(){return a},gQ:function(){return s},Rd:function(){return l}});var r=n(2694),i=n(6483),o=n(1157);const a=()=>{var e,t;return(null===(e=window)||void 0===e||null===(t=e.calypsoifyGutenberg)||void 0===t?void 0:t.currentCalypsoUrl)??window.location.href},s=e=>{let t="https://wordpress.com";try{var n,r;t=new URL((null===(n=window)||void 0===n||null===(r=n.calypsoifyGutenberg)||void 0===r?void 0:r.currentCalypsoUrl)||"").origin}catch{}(e=>{window.top.location.href=e})(`${t}${e.startsWith("/")?e:`/${e}`}`)},l=(e=window._currentSiteId.toString(),t=!1,n)=>{var l,u;const c="a8c.wpcom-block-editor.openCheckoutModal",d=(null===(l=window)||void 0===l||null===(u=l.wpcomEditorSiteLaunch)||void 0===u?void 0:u.launchFlow)===o.Js,f=a().split("?")[0];if((0,r.hasAction)(c)&&d&&!t)return void(0,r.doAction)(c,{checkoutOnSuccessCallback:n,isFocusedLaunch:!0,redirectTo:(0,i.addQueryArgs)(f,{[o.nU]:!0})});const p=(0,i.addQueryArgs)(`/checkout/${e}`,{...!t&&{redirect_to:`/home/${e}`}});s(p)}},6115:function(e,t,n){"use strict";n.d(t,{jN:function(){return r.jN},Sn:function(){return i.Sn},Lo:function(){return i.Lo},k9:function(){return i.k9}});n(1694),n(6209),n(9377);var r=n(9792),i=n(3722)},9377:function(e,t,n){"use strict";let r=null;"undefined"!=typeof window&&window.addEventListener("popstate",(function(){r=null}))},9792:function(e,t,n){"use strict";n.d(t,{jN:function(){return f}});var r=n(2699),i=n(4898),o=(n(3421),n(2819)),a=(n(9377),n(6209),n(9358));n(1694);const s=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];let l,u=Promise.resolve();function c(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(u=(0,i.ve)("//stats.wp.com/w.js?63"));const d=new r.EventEmitter;function f(e,t){if(t=t||{},(0,a.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,o.includes)(s,e)){if(l){const e=l(t);t={...t,...e}}t=(0,o.omitBy)(t,(e=>void 0===e)),(0,a.Z)('Recording event "%s" with actual props %o',e,t),c(["recordEvent",e,t]),d.emit("record-event",e,t)}else(0,a.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(e,t,n){"use strict";n.d(t,{Sn:function(){return o},Lo:function(){return a},k9:function(){return s}});var r=n(8767),i=n(9792);function o({railcarId:e,uiAlgo:t,uiPosition:n,fetchAlgo:r,result:o,query:a}){(0,i.jN)("calypso_traintracks_render",{railcar:e,ui_algo:t,ui_position:n,fetch_algo:r,rec_result:o,fetch_query:a})}function a({railcarId:e,action:t}){(0,i.jN)("calypso_traintracks_interact",{railcar:e,action:t})}function s(e="recommendation"){return`${(0,r.Z)().replace(/-/g,"")}-${e}`}},6209:function(e,t,n){"use strict";n(4)},9358:function(e,t,n){"use strict";var r=n(8049),i=n.n(r);t.Z=i()("calypso:analytics")},1694:function(e,t,n){"use strict";n(9358)},4:function(e,t,n){"use strict";n(8032)},4790:function(e,t,n){"use strict";var r=n(7896),i=n(9307),o=n(2248),a=(n(9196),n(6654));const s=(0,o.Z)("button")`
12
  display: block;
13
  width: ${e=>e.fullWidth?"100%":"auto"};
14
  font-size: 16px;
59
  background-position: 200px 0;
60
  }
61
  }
62
+ `;function l({disabled:e,buttonType:t,theme:n}){const{colors:r}=n;if(e)return r.disabledPaymentButtons;switch(t){case"paypal":return r.paypalGoldHover;case"primary":return r.primaryOver;case"secondary":return r.highlightOver;default:return"none"}}function u({disabled:e,buttonType:t,theme:n}){const{colors:r}=n;if(e)return r.disabledButtons;switch(t){case"primary":case"secondary":return r.surface;case"text-button":return r.highlight;default:return r.textColor}}function c({disabled:e,buttonType:t,theme:n}){const{colors:r}=n;if(e&&"text-button"!==t)return r.disabledPaymentButtons;switch(t){case"paypal":return r.paypalGold;case"primary":return r.primary;case"secondary":return r.highlight;default:return"none"}}function d({disabled:e,buttonType:t,theme:n}){const{colors:r}=n;if(e)return r.disabledPaymentButtonsAccent;switch(t){case"paypal":return r.paypalGoldHover;case"primary":return r.primaryOver;case"secondary":return r.highlightOver;default:return"none"}}function f({buttonType:e}){return"text-button"===e?"underline":"none"}t.Z=({className:e,buttonType:t,isBusy:n,children:o,fullWidth:l,...u})=>{const c=(0,a.Z)(["checkout-button",...t?["is-status-"+t]:[],...n?["is-busy"]:[],...e?[e]:[]]);return(0,i.createElement)(s,(0,r.Z)({fullWidth:l,buttonType:t,className:c},u),o)}},3246:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(6666),i=n(9307),o=n(2248),a=n(8049),s=n.n(a),l=n(9196);const u=s()("composite-checkout:checkout-error-boundary"),c=o.Z.div`
63
  margin: 2em;
64
  text-align: center;
65
+ `;class d extends l.Component{constructor(e){super(e),(0,r.Z)(this,"state",{hasError:!1})}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){if(this.props.onError){const n=`${e.message}; Stack: ${e.stack}; Component Stack: ${t.componentStack}`;u("reporting the error",n),this.props.onError(n)}}render(){return this.state.hasError?(0,i.createElement)(f,{errorMessage:this.props.errorMessage}):this.props.children}}function f({errorMessage:e}){return(0,i.createElement)(c,null,e)}},7984:function(e,t,n){"use strict";var r=n(7896),i=n(9307),o=(n(9196),n(4790));t.Z=function({value:e,onClick:t,ariaLabel:n,...a}){return(0,i.createElement)(o.Z,(0,r.Z)({onClick:t,buttonType:"primary","aria-label":n},a),e)}},1806:function(e,t,n){"use strict";n.d(t,{_U:function(){return h},Bb:function(){return v},nb:function(){return b},r8:function(){return _},ds:function(){return S},V9:function(){return P}});var r=n(9307),i=n(2248),o=n(6656),a=n(8049),s=n.n(a),l=n(3980),u=n.n(l),c=(n(9196),n(6654)),d=n(7450),f=n(4790),p=n(3246),m=n(7984),g=n(5197);s()("composite-checkout:checkout"),i.Z.div`
66
  *:focus {
67
  outline: ${e=>e.theme.colors.outline} solid 2px;
68
  }
288
  svg {
289
  margin-top: 4px;
290
  }
291
+ `;function k({isComplete:e,isActive:t,className:n,children:i,id:o}){const a=!t&&e;return(0,r.createElement)(O,{className:(0,c.Z)([n,"checkout-step__stepper"])},(0,r.createElement)($,{isComplete:a},(0,r.createElement)(L,{isComplete:a,isActive:t},i),(0,r.createElement)(M,null,(0,r.createElement)(g.nQ,{id:o}))))}I.propTypes={id:u().string,className:u().string,stepNumber:u().number,title:u().node.isRequired,isActive:u().bool,isComplete:u().bool,editButtonText:u().string,editButtonAriaLabel:u().string,onEdit:u().func},k.propTypes={id:u().string,className:u().string,isComplete:u().bool,isActive:u().bool}},5197:function(e,t,n){"use strict";n.d(t,{nQ:function(){return o}});var r=n(9307);const i=n(2248).Z.svg`
292
  fill: #fff;
293
+ `;function o({className:e,id:t}){return(0,r.createElement)(i,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:e},(0,r.createElement)("mask",{id:t+"-check-icon-mask","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"16",height:"12"},(0,r.createElement)("path",{d:"M7.32916 13.2292L3.85416 9.75417L2.67083 10.9292L7.32916 15.5875L17.3292 5.58751L16.1542 4.41251L7.32916 13.2292Z"})),(0,r.createElement)("g",{mask:"url(#"+t+"-check-icon-mask)"},(0,r.createElement)("rect",{width:"20",height:"20"})))}},6654:function(e,t,n){"use strict";function r(e){return e.filter((e=>e)).join(" ")}n.d(t,{Z:function(){return r}})},5777:function(e,t,n){"use strict";n.d(t,{I:function(){return r}});const r={wordpressBlue5:"#BEDAE6",wordpressBlue40:"#187AA2",wordpressBlue50:"#006088",wordpressBlue60:"#004E6E",wordpressBlue80:"#002C40",blue5:"#BBE0FA",blue30:"#399CE3",blue40:"#1689DB",blue50:"#0675C4",blue60:"#055D9C",blue80:"#02395C",gray0:"#F6F7F7",gray5:"#DCDCDE",gray10:"#C3C4C7",gray20:"#A7AAAD",gray30:"#8E9196",gray50:"#646970",gray80:"#2C3338",pink50:"#C9356E",pink60:"#AB235A",pink80:"#700F3B",green50:"#008A20",red50:"#D63638",red0:"#F7EBEC",white:"#FFF",black:"#000"}},7384:function(e,t,n){"use strict";var r=n(5777);const i={colors:{background:r.I.gray0,surface:r.I.white,primary:r.I.pink50,primaryBorder:r.I.pink80,primaryOver:r.I.pink60,highlight:r.I.blue50,highlightBorder:r.I.blue80,highlightOver:r.I.blue60,success:r.I.green50,discount:r.I.green50,disabledPaymentButtons:r.I.gray0,disabledPaymentButtonsAccent:r.I.gray5,disabledButtons:r.I.gray20,borderColor:r.I.gray10,borderColorLight:r.I.gray5,borderColorDark:r.I.gray50,upcomingStepBackground:r.I.gray5,textColor:r.I.gray80,textColorLight:r.I.gray50,textColorDark:r.I.black,error:r.I.red50,warningBackground:r.I.red0,outline:r.I.blue30,applePayButtonColor:r.I.black,applePayButtonRollOverColor:r.I.gray80,noticeBackground:r.I.gray80,defaultNoticeIconBackground:r.I.gray30,textColorOnDarkBackground:r.I.white,paypalGold:"#F0C443",paypalGoldHover:"#FFB900",modalBackground:"rgba( 255,255,255,0.9 )",disabledField:r.I.gray0,placeHolderTextColor:r.I.gray30},breakpoints:{desktopUp:"min-width: 960px",tabletUp:"min-width: 700px",bigPhoneUp:"min-width: 480px",smallPhoneUp:"min-width: 400px"},weights:{bold:"600",normal:"400"},fonts:{body:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'},fontSize:{small:"14px"}};t.Z=i},7450:function(e,t,n){"use strict";let r,i,o;n.d(t,{PX:function(){return r}}),function(e){e.LOADING="loading",e.READY="ready",e.SUBMITTING="submitting",e.VALIDATING="validating",e.COMPLETE="complete"}(r||(r={})),function(e){e.SUCCESS="SUCCESS",e.REDIRECT="REDIRECT",e.MANUAL="MANUAL",e.ERROR="ERROR"}(i||(i={})),function(e){e.NOT_STARTED="not-started",e.PENDING="pending",e.COMPLETE="complete",e.REDIRECTING="redirecting",e.ERROR="error"}(o||(o={}))},3600:function(e,t,n){"use strict";n.r(t),n.d(t,{receiveCategories:function(){return r},fetchDomainSuggestions:function(){return i},receiveDomainAvailability:function(){return o},receiveDomainSuggestionsSuccess:function(){return a},receiveDomainSuggestionsError:function(){return s}});const r=e=>({type:"RECEIVE_CATEGORIES",categories:e}),i=()=>({type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}),o=(e,t)=>({type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}),a=(e,t)=>({type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}),s=e=>({type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()})},584:function(e,t,n){"use strict";n.d(t,{L:function(){return r},r:function(){return i}});const r="automattic/domains/suggestions";let i;!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(i||(i={}))},8077:function(e,t,n){"use strict";n.d(t,{z2:function(){return d}});var r=n(9818),i=n(3661),o=n(3600),a=n(584),s=n(3717),l=n(2269),u=n(267);let c=!1;function d(){return c||(c=!0,(0,r.registerStore)(a.L,{actions:o,controls:i.ai,reducer:s.Z,resolvers:l,selectors:u})),a.L}},3717:function(e,t,n){"use strict";var r=n(9818),i=n(584),o=n(4211);const a={state:i.r.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},s=(0,r.combineReducers)({categories:(e=[],t)=>"RECEIVE_CATEGORIES"===t.type?t.categories:e,domainSuggestions:(e=a,t)=>"FETCH_DOMAIN_SUGGESTIONS"===t.type?{...e,state:i.r.Pending,errorMessage:null,pendingSince:t.timeStamp}:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?{...e,state:i.r.Success,data:{...e.data,[(0,o.Le)(t.queryObject)]:t.suggestions},errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?{...e,state:i.r.Failure,errorMessage:t.errorMessage,lastUpdated:t.timeStamp,pendingSince:void 0}:e,availability:(e={},t)=>"RECEIVE_DOMAIN_AVAILABILITY"===t.type?{...e,[t.domainName]:t.availability}:e});t.Z=s},2269:function(e,t,n){"use strict";n.r(t),n.d(t,{isAvailable:function(){return c},getCategories:function(){return d},__internalGetDomainSuggestions:function(){return f}});var r=n(1481),i=n(9126),o=n(6468),a=n.n(o),s=n(3661),l=n(3600),u=n(4211);const c=function*(e){const t=function(e){return`https://public-api.wordpress.com/rest/v1.3/domains/${encodeURIComponent(e)}/is-available?is_cart_pre_check=true`}(e);try{const{body:n}=yield(0,s.An)(t);return(0,l.receiveDomainAvailability)(e,n)}catch{return(0,l.receiveDomainAvailability)(e,{domain_name:e,mappable:"unknown",status:"unknown",supports_privacy:!1})}};function*d(){const{body:e}=yield(0,s.An)("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");return(0,l.receiveCategories)(e)}function*f(e){if(!e.query)return(0,l.receiveDomainSuggestionsError)("Empty query");yield(0,l.fetchDomainSuggestions)();try{const t=yield(0,s._9)({apiVersion:"1.1",path:"/domains/suggestions",query:(0,i.stringify)(e)});if(!Array.isArray(t))return(0,l.receiveDomainSuggestionsError)((0,r.Iu)("Invalid response from the server"));if(function(e,t){return a().isFQDN(t)&&!e.some((e=>e.domain_name.toLowerCase()===t))}(t,e.query)){const n={domain_name:e.query,unavailable:!0,cost:"",raw_price:0,currency_code:""};t.unshift(n)}const n=t.map((e=>e.unavailable?e:{...e,...e.raw_price&&e.currency_code&&{cost:(0,u._B)(e.raw_price,e.currency_code)}}));return(0,l.receiveDomainSuggestionsSuccess)(e,n)}catch(t){return(0,l.receiveDomainSuggestionsError)(t.message||(0,r.Iu)("Error while fetching server response"))}}},267:function(e,t,n){"use strict";n.r(t),n.d(t,{getCategories:function(){return a},getDomainSuggestions:function(){return s},getDomainState:function(){return l},getDomainErrorMessage:function(){return u},isLoadingDomainSuggestions:function(){return c},__internalGetDomainSuggestions:function(){return d},isAvailable:function(){return f},getDomainAvailabilities:function(){return p}});var r=n(9818),i=n(584),o=n(4211);const a=e=>[...e.categories.filter((({tier:e})=>null!==e)).sort(((e,t)=>e>t?1:-1)),...e.categories.filter((({tier:e})=>null===e)).sort(((e,t)=>e.title.localeCompare(t.title)))],s=(e,t,n={})=>{const a=(0,o.o0)(t,n);return(0,r.select)(i.L).__internalGetDomainSuggestions(a)},l=e=>e.domainSuggestions.state,u=e=>e.domainSuggestions.errorMessage,c=(e,t,n={})=>{const a=(0,o.o0)(t,n);return(0,r.select)("core/data").isResolving(i.L,"__internalGetDomainSuggestions",[a])},d=(e,t)=>e.domainSuggestions.data[(0,o.Le)(t)],f=(e,t)=>e.availability[t],p=e=>e.availability},4211:function(e,t,n){"use strict";n.d(t,{Le:function(){return o},_B:function(){return a},o0:function(){return s}});var r=n(1621),i=n(5695);const o=n.n(i)();function a(e,t){return(0,r.ZP)(e,t,{stripZeros:!0})}function s(e,t){return{include_wordpressdotcom:t.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:"variation2_front",...t,query:e.trim().toLocaleLowerCase()}}},6108:function(e,t,n){"use strict";n.r(t),n.d(t,{setSidebarFullscreen:function(){return o},unsetSidebarFullscreen:function(){return a},setStep:function(){return s},setSiteTitle:function(){return l},setDomain:function(){return u},unsetDomain:function(){return c},confirmDomainSelection:function(){return d},setDomainSearch:function(){return f},setPlanProductId:function(){return p},unsetPlanProductId:function(){return m},updatePlan:function(){return g},openSidebar:function(){return h},closeSidebar:function(){return y},openFocusedLaunch:function(){return v},closeFocusedLaunch:function(){return b},enableAnchorFm:function(){return _},showSiteTitleStep:function(){return S},setModalDismissible:function(){return E},unsetModalDismissible:function(){return A},showModalTitle:function(){return w},hideModalTitle:function(){return P},enablePersistentSuccessView:function(){return x},disablePersistentSuccessView:function(){return C}});var r=n(9818),i=n(9149);const o=()=>({type:"SET_SIDEBAR_FULLSCREEN"}),a=()=>({type:"UNSET_SIDEBAR_FULLSCREEN"}),s=e=>({type:"SET_STEP",step:e}),l=e=>({type:"SET_SITE_TITLE",title:e}),u=e=>({type:"SET_DOMAIN",domain:e}),c=()=>({type:"UNSET_DOMAIN"}),d=()=>({type:"CONFIRM_DOMAIN_SELECTION"}),f=e=>({type:"SET_DOMAIN_SEARCH",domainSearch:e}),p=function*(e){if(!(0,r.select)(i.Fs).isPlanProductFree(e)){const t=(0,r.select)(i.Fs).getPlanProductById(e),n=(null==t?void 0:t.billingPeriod)??"ANNUALLY";yield(e=>({type:"SET_PLAN_BILLING_PERIOD",billingPeriod:e}))(n)}return{type:"SET_PLAN_PRODUCT_ID",planProductId:e}},m=()=>({type:"UNSET_PLAN_PRODUCT_ID"});function g(e){return p(e)}const h=()=>({type:"OPEN_SIDEBAR"}),y=()=>({type:"CLOSE_SIDEBAR"}),v=()=>({type:"OPEN_FOCUSED_LAUNCH"}),b=()=>({type:"CLOSE_FOCUSED_LAUNCH"}),_=()=>({type:"ENABLE_ANCHOR_FM"}),S=()=>({type:"SHOW_SITE_TITLE_STEP"}),E=()=>({type:"SET_MODAL_DISMISSIBLE"}),A=()=>({type:"UNSET_MODAL_DISMISSIBLE"}),w=()=>({type:"SHOW_MODAL_TITLE"}),P=()=>({type:"HIDE_MODAL_TITLE"}),x=()=>({type:"ENABLE_SUCCESS_VIEW"}),C=()=>({type:"DISABLE_SUCCESS_VIEW"})},9149:function(e,t,n){"use strict";n.d(t,{Ls:function(){return r},Fs:function(){return i}});const r="automattic/launch",i="automattic/onboard/plans"},3610:function(e,t,n){"use strict";n.d(t,{y:function(){return r},M:function(){return i}});const r={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},i=[r.Name,r.Domain,r.Plan,r.Final]},1635:function(e,t,n){"use strict";n.d(t,{z:function(){return d}});var r=n(9818),i=n(3418),o=n(6108),a=n(9149),s=n(594),l=n(4648),u=n(7092);(0,r.use)(r.plugins.persistence,s.Z);let c=!1;function d(){return c||(c=!0,(0,r.registerStore)(a.Ls,{actions:o,controls:i.controls,reducer:l.Z,selectors:u,persist:["domain","domainSearch","planProductId","planBillingPeriod","confirmedDomainSelection","isAnchorFm","isSiteTitleStepVisible","siteTitle"]})),a.Ls}},594:function(e,t,n){"use strict";var r=n(492);t.Z=(0,r.Z)("WP_LAUNCH")},4648:function(e,t,n){"use strict";var r=n(9818),i=n(3610);const o=(0,r.combineReducers)({step:(e=i.y.Name,t)=>"SET_STEP"===t.type?t.step:e,siteTitle:(e,t)=>"SET_SITE_TITLE"===t.type?t.title:e,domain:(e,t)=>"SET_DOMAIN"===t.type?t.domain:"UNSET_DOMAIN"!==t.type?e:void 0,confirmedDomainSelection:(e=!1,t)=>"CONFIRM_DOMAIN_SELECTION"===t.type||e,domainSearch:(e="",t)=>"SET_DOMAIN_SEARCH"===t.type?t.domainSearch:e,planBillingPeriod:(e="ANNUALLY",t)=>"SET_PLAN_BILLING_PERIOD"===t.type?t.billingPeriod:e,planProductId:(e,t)=>"SET_PLAN_PRODUCT_ID"===t.type?t.planProductId:"UNSET_PLAN_PRODUCT_ID"!==t.type?e:void 0,isSidebarOpen:(e=!1,t)=>"OPEN_SIDEBAR"===t.type||"CLOSE_SIDEBAR"!==t.type&&e,isSidebarFullscreen:(e=!1,t)=>"SET_SIDEBAR_FULLSCREEN"===t.type||"UNSET_SIDEBAR_FULLSCREEN"!==t.type&&e,isAnchorFm:(e=!1,t)=>"ENABLE_ANCHOR_FM"===t.type||e,isFocusedLaunchOpen:(e=!1,t)=>"OPEN_FOCUSED_LAUNCH"===t.type||"CLOSE_FOCUSED_LAUNCH"!==t.type&&e,isSiteTitleStepVisible:(e=!1,t)=>"SHOW_SITE_TITLE_STEP"===t.type||e,isModalDismissible:(e=!0,t)=>"SET_MODAL_DISMISSIBLE"===t.type||"UNSET_MODAL_DISMISSIBLE"!==t.type&&e,isModalTitleVisible:(e=!0,t)=>"SHOW_MODAL_TITLE"===t.type||"HIDE_MODAL_TITLE"!==t.type&&e});t.Z=o},7092:function(e,t,n){"use strict";n.r(t),n.d(t,{getLaunchSequence:function(){return a},getLaunchStep:function(){return s},getState:function(){return l},hasPaidDomain:function(){return u},getSelectedDomain:function(){return c},getSelectedPlanProductId:function(){return d},getLastPlanBillingPeriod:function(){return f},isSelectedPlanPaid:function(){return p},hasSelectedDomainOrSubdomain:function(){return m},isStepCompleted:function(){return g},isFlowCompleted:function(){return h},isFlowStarted:function(){return y},getFirstIncompleteStep:function(){return v},getSiteTitle:function(){return b},getCurrentStep:function(){return _},getDomainSearch:function(){return S}});var r=n(9818),i=n(9149),o=n(3610);const a=()=>o.M,s=()=>o.y,l=e=>e,u=e=>!!e.domain&&!e.domain.is_free,c=e=>e.domain,d=e=>e.planProductId,f=e=>e.planBillingPeriod,p=e=>void 0!==e.planProductId&&!(0,r.select)(i.Fs).isPlanProductFree(e.planProductId),m=e=>!!c(e)||e.confirmedDomainSelection,g=(e,t)=>{if(t===o.y.Plan)return!!d(e);if(t===o.y.Name){const e=(0,r.select)("core").getEntityRecord("root","site",void 0);return!(null==e||!e.title)}return t===o.y.Domain&&(0,r.select)(i.Ls).hasSelectedDomainOrSubdomain()},h=e=>o.M.slice(0,o.M.length-1).every((t=>g(e,t))),y=e=>o.M.some((t=>g(e,t))),v=e=>o.M.find((t=>!g(e,t))),b=e=>null==e?void 0:e.siteTitle,_=e=>e.step,S=e=>e.domainSearch},492:function(e,t,n){"use strict";function r(e){const t=e,n=e+"_TS",r={},i={getItem:e=>r.hasOwnProperty(e)?r[e]:null,setItem(e,t){r[e]=String(t)},removeItem(e){delete r[e]}},o=(()=>{try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}})()?window.localStorage:i;return{storageKey:t,storage:{getItem(e){const r=o.getItem(n);return r&&(e=>{const t=Number(e);return Boolean(t)&&t+6048e5>Date.now()})(r)&&!new URLSearchParams(window.location.search).has("fresh")?o.getItem(e):(o.removeItem(t),o.removeItem(n),null)},setItem(e,t){o.setItem(n,JSON.stringify(Date.now())),o.setItem(e,t)}}}}n.d(t,{Z:function(){return r}})},9068:function(e,t,n){"use strict";n.r(t),n.d(t,{setFeatures:function(){return r},setFeaturesByType:function(){return i},setPlans:function(){return o},setPlanProducts:function(){return a},resetPlan:function(){return s}});const r=(e,t)=>({type:"SET_FEATURES",features:e,locale:t}),i=(e,t)=>({type:"SET_FEATURES_BY_TYPE",featuresByType:e,locale:t}),o=(e,t)=>({type:"SET_PLANS",plans:e,locale:t}),a=e=>({type:"SET_PLAN_PRODUCTS",products:e}),s=()=>({type:"RESET_PLAN"})},4703:function(e,t,n){"use strict";n.d(t,{Ls:function(){return r},Ho:function(){return i},TO:function(){return o},YS:function(){return a},Gz:function(){return s},hx:function(){return l},iL:function(){return u},B6:function(){return c},xT:function(){return d},AX:function(){return f},bS:function(){return p},UB:function(){return m},BV:function(){return g},nN:function(){return h}});const r="automattic/onboard/plans",i=1,o="free",a="personal",s="premium",l="business",u="ecommerce",c=[o,a,s,l,u],d=c,f=s,p=["personal-bundle","value_bundle","business-bundle","ecommerce-bundle"],m=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],g=["free_plan",...p,...m],h=["custom-domain","support-live","priority-support"]},9734:function(e,t,n){"use strict";n.r(t),n.d(t,{plansSlugs:function(){return a.B6},plansProductSlugs:function(){return a.BV},TIMELESS_PLAN_FREE:function(){return a.TO},TIMELESS_PLAN_PERSONAL:function(){return a.YS},TIMELESS_PLAN_PREMIUM:function(){return a.Gz},TIMELESS_PLAN_BUSINESS:function(){return a.hx},TIMELESS_PLAN_ECOMMERCE:function(){return a.iL},FREE_PLAN_PRODUCT_ID:function(){return a.Ho},register:function(){return d}});var r=n(9818),i=n(3661),o=n(9068),a=n(4703),s=n(9438),l=n(5261),u=n(7738);let c=!1;function d(){return c||(c=!0,(0,r.registerStore)(a.Ls,{resolvers:l,actions:o,controls:i.ai,reducer:s.ZP,selectors:u})),a.Ls}},9438:function(e,t,n){"use strict";var r=n(9818);const i=(0,r.combineReducers)({features:(e={},t)=>"SET_FEATURES"===t.type?{...e,[t.locale]:t.features}:e,featuresByType:(e={},t)=>"SET_FEATURES_BY_TYPE"===t.type?{...e,[t.locale]:t.featuresByType}:e,planProducts:(e=[],t)=>"SET_PLAN_PRODUCTS"===t.type?t.products:e,plans:(e={},t)=>"SET_PLANS"===t.type?{...e,[t.locale]:t.plans}:e});t.ZP=i},5261:function(e,t,n){"use strict";n.r(t),n.d(t,{getSupportedPlans:function(){return p}});var r=n(1621),i=n(9126),o=n(3661),a=n(9068),s=n(4703);function l(e){return(0,r.ZP)(12*e.raw_price,e.currency_code,{stripZeros:!0})}function u(e){return(0,r.ZP)(e.raw_price,e.currency_code,{stripZeros:!0})}function c(e,t){const n=Object.keys(t).find((n=>t[n].name===e));return!!n&&t[n].requiresAnnuallyBilledPlan}function d(e,t){const n=e.highlighted_features.map((e=>({name:e,requiresAnnuallyBilledPlan:c(e,t)})));return n.sort(((e,t)=>Number(t.requiresAnnuallyBilledPlan)-Number(e.requiresAnnuallyBilledPlan))),n}function f(e,t){const n=s.BV.reduce(((n,i)=>{const o=e.find((e=>e.product_slug===i));if(!o)return n;const a=t.find((e=>e.productIds.indexOf(o.product_id)>-1));var s;return n.push({productId:o.product_id,billingPeriod:31===o.bill_period?"MONTHLY":"ANNUALLY",periodAgnosticSlug:a.periodAgnosticSlug,storeSlug:o.product_slug,rawPrice:o.raw_price,pathSlug:o.path_slug,price:31===(null==o?void 0:o.bill_period)||0===o.raw_price?u(o):(s=o,(0,r.ZP)(s.raw_price/12,s.currency_code,{stripZeros:!0})),annualPrice:31===(null==o?void 0:o.bill_period)?l(o):u(o)}),n}),[]);return function(e){for(let t=0;t<s.bS.length;t++){const n=e.find((e=>e.storeSlug===s.bS[t])),r=e.find((e=>e.storeSlug===s.UB[t]));if(n&&r){const e=12*r.rawPrice,t=n.rawPrice,i=Math.round(100*(1-t/e));n.annualDiscount=i,r.annualDiscount=i}}}(n),n}function*p(e="en"){const t=yield(0,o._9)({path:"/plans",query:(0,i.stringify)({locale:e}),apiVersion:"1.5"}),{body:n}=yield(0,o.An)(`https://public-api.wordpress.com/wpcom/v2/plans/details?locale=${encodeURIComponent(e)}`,{mode:"cors",credentials:"omit"}),r=function(e){return e.reduce(((e,t)=>(e[t.id]={id:t.id,name:t.name,description:t.description,type:"checkbox",requiresAnnuallyBilledPlan:s.nN.indexOf(t.id)>-1},e)),{})}(n.features),l=n.plans.map((e=>{var t;const n=null===(t=e.nonlocalized_short_name)||void 0===t?void 0:t.toLowerCase();return{description:e.tagline,features:d(e,r),storage:e.storage,title:e.short_name,featuresSlugs:e.features.reduce(((e,t)=>(e[t]=!0,e)),{}),isFree:n===s.TO,isPopular:n===s.Gz,periodAgnosticSlug:n,productIds:e.products.map((({plan_id:e})=>e))}})),u=f(t,l);yield(0,a.setPlans)(l,e),yield(0,a.setPlanProducts)(u),yield(0,a.setFeatures)(r,e),yield(0,a.setFeaturesByType)(n.features_by_type,e)}},7738:function(e,t,n){"use strict";n.r(t),n.d(t,{getFeatures:function(){return s},getFeaturesByType:function(){return l},getPlanByProductId:function(){return u},getPlanProductById:function(){return c},getPlanByPeriodAgnosticSlug:function(){return d},getDefaultPaidPlan:function(){return f},getDefaultFreePlan:function(){return p},getSupportedPlans:function(){return m},getPlansProducts:function(){return g},getPrices:function(){return h},getPlanByPath:function(){return y},getPlanProduct:function(){return v},isPlanEcommerce:function(){return b},isPlanFree:function(){return _},isPlanProductFree:function(){return S}});var r=n(9818),i=n(7180),o=n.n(i),a=n(4703);const s=(e,t)=>e.features[t]??{},l=(e,t)=>e.featuresByType[t]??[],u=(e,t,n)=>{if(t)return(0,r.select)(a.Ls).getSupportedPlans(n).find((e=>e.productIds.indexOf(t)>-1))},c=(e,t)=>{if(t)return(0,r.select)(a.Ls).getPlansProducts().find((e=>e.productId===t))},d=(e,t,n)=>{if(t)return(0,r.select)(a.Ls).getSupportedPlans(n).find((e=>e.periodAgnosticSlug===t))},f=(e,t)=>(0,r.select)(a.Ls).getSupportedPlans(t).find((e=>e.periodAgnosticSlug===a.AX)),p=(e,t)=>(0,r.select)(a.Ls).getSupportedPlans(t).find((e=>e.periodAgnosticSlug===a.TO)),m=(e,t)=>e.plans[t]??[],g=e=>e.planProducts,h=(e,t)=>(o()("getPrices",{alternative:"getPlanProduct().price"}),(0,r.select)(a.Ls).getPlansProducts().reduce(((e,t)=>(e[t.storeSlug]=t.price,e)),{})),y=(e,t,n)=>{if(!t)return;const i=(0,r.select)(a.Ls).getPlansProducts().find((e=>e.pathSlug===t));return i?(0,r.select)(a.Ls).getSupportedPlans(n).find((e=>e.periodAgnosticSlug===i.periodAgnosticSlug)):void 0},v=(e,t,n)=>{if(t&&n)return(0,r.select)(a.Ls).getPlansProducts().find((e=>{const r=e.periodAgnosticSlug===t,i=t===a.TO||e.billingPeriod===n;return r&&i}))},b=(e,t)=>t===a.iL,_=(e,t)=>t===a.TO,S=(e,t)=>t===a.Ho},8459:function(e,t,n){"use strict";n.d(t,{d:function(){return o}});var r=n(3661),i=n(9639);function o(e){const t=()=>({type:"FETCH_NEW_SITE"}),n=e=>({type:"RECEIVE_NEW_SITE",response:e}),o=e=>({type:"RECEIVE_NEW_SITE_FAILED",error:e});const a=(e,t)=>({type:"RECEIVE_SITE_TITLE",siteId:e,title:t}),s=e=>({type:"LAUNCH_SITE_START",siteId:e}),l=e=>({type:"LAUNCH_SITE_SUCCESS",siteId:e}),u=(e,t)=>({type:"LAUNCH_SITE_FAILURE",siteId:e,error:t});return{receiveSiteDomains:(e,t)=>({type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}),saveSiteTitle:function*(e,t){try{yield(0,r._9)({path:`/sites/${encodeURIComponent(e)}/settings`,apiVersion:"1.4",body:{blogname:t},method:"POST"}),yield a(e,t)}catch(n){}},receiveSiteTitle:a,fetchNewSite:t,fetchSite:()=>({type:"FETCH_SITE"}),receiveNewSite:n,receiveNewSiteFailed:o,resetNewSiteFailed:()=>({type:"RESET_RECEIVE_NEW_SITE_FAILED"}),createSite:function*(t){yield{type:"FETCH_NEW_SITE"};try{const{authToken:i,...o}=t,a={...{client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},...o,validate:!1},s=yield(0,r._9)({path:"/sites/new",apiVersion:"1.1",method:"post",body:a,token:i});return yield n(s),!0}catch(i){return yield o(i),!1}},receiveSite:(e,t)=>({type:"RECEIVE_SITE",siteId:e,response:t}),receiveSiteFailed:(e,t)=>({type:"RECEIVE_SITE_FAILED",siteId:e,response:t}),reset:()=>({type:"RESET_SITE_STORE"}),launchSite:function*(e){yield s(e);try{yield(0,r._9)({path:`/sites/${e}/launch`,apiVersion:"1.1",method:"post"}),yield l(e)}catch(t){yield u(e,i.Hc.INTERNAL)}},launchSiteStart:s,launchSiteSuccess:l,launchSiteFailure:u,getCart:function*(e){return yield(0,r._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"})},setCart:function*(e,t){return yield(0,r._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t})}}}},2005:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});const r="automattic/site"},2369:function(e,t,n){"use strict";n.d(t,{z2:function(){return d}});var r=n(9818),i=n(3661),o=n(8459),a=n(2005),s=n(2701),l=n(7862),u=n(4309);let c=!1;function d(e){return c||(c=!0,(0,r.registerStore)(a.L,{actions:(0,o.d)(e),controls:i.ai,reducer:s.ZP,resolvers:l,selectors:u})),a.L}},2701:function(e,t,n){"use strict";var r=n(9818),i=n(9639);const o=(0,r.combineReducers)({data:(e,t)=>{if("RECEIVE_NEW_SITE"===t.type){const{response:e}=t;return e.blog_details}if("RECEIVE_NEW_SITE_FAILED"!==t.type&&"RESET_SITE_STORE"!==t.type)return e},error:(e,t)=>{switch(t.type){case"FETCH_NEW_SITE":case"RECEIVE_NEW_SITE":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return;case"RECEIVE_NEW_SITE_FAILED":return{error:t.error.error,status:t.error.status,statusCode:t.error.statusCode,name:t.error.name,message:t.error.message}}return e},isFetching:(e=!1,t)=>{switch(t.type){case"FETCH_NEW_SITE":return!0;case"RECEIVE_NEW_SITE":case"RECEIVE_NEW_SITE_FAILED":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return!1}return e}}),a=(0,r.combineReducers)({isFetchingSiteDetails:(e=!1,t)=>{switch(t.type){case"FETCH_SITE":return!0;case"RECEIVE_SITE":case"RECEIVE_SITE_FAILED":return!1}return e},newSite:o,sites:(e={},t)=>{if("RECEIVE_SITE"===t.type)return{...e,[t.siteId]:t.response};if("RECEIVE_SITE_FAILED"===t.type){const{[t.siteId]:n,...r}=e;return{...r}}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?{...e,[t.siteId]:{...e[t.siteId],name:t.title}}:e},launchStatus:(e={},t)=>"LAUNCH_SITE_START"===t.type?{...e,[t.siteId]:{status:i.uS.IN_PROGRESS,errorCode:void 0}}:"LAUNCH_SITE_SUCCESS"===t.type?{...e,[t.siteId]:{status:i.uS.SUCCESS,errorCode:void 0}}:"LAUNCH_SITE_FAILURE"===t.type?{...e,[t.siteId]:{status:i.uS.FAILURE,errorCode:t.error}}:e,sitesDomains:(e={},t)=>"RECEIVE_SITE_DOMAINS"===t.type?{...e,[t.siteId]:t.domains}:e});t.ZP=a},7862:function(e,t,n){"use strict";n.r(t),n.d(t,{getSite:function(){return a},getSiteDomains:function(){return s}});var r=n(9818),i=n(3661),o=n(2005);function*a(e){yield(0,r.dispatch)(o.L).fetchSite();try{const t=yield(0,i._9)({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});yield(0,r.dispatch)(o.L).receiveSite(e,t)}catch(t){yield(0,r.dispatch)(o.L).receiveSiteFailed(e,void 0)}}function*s(e){try{const t=yield(0,i._9)({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});yield(0,r.dispatch)(o.L).receiveSiteDomains(e,null==t?void 0:t.domains)}catch(t){}}},4309:function(e,t,n){"use strict";n.r(t),n.d(t,{getState:function(){return a},getNewSite:function(){return s},getNewSiteError:function(){return l},isFetchingSite:function(){return u},isFetchingSiteDetails:function(){return c},isNewSite:function(){return d},getSite:function(){return f},getSiteTitle:function(){return p},isSiteLaunched:function(){return m},isSiteLaunching:function(){return g},getSiteDomains:function(){return h},getPrimarySiteDomain:function(){return y},getSiteSubdomain:function(){return v}});var r=n(9818),i=n(2005),o=n(9639);const a=e=>e,s=e=>e.newSite.data,l=e=>e.newSite.error,u=e=>e.newSite.isFetching,c=e=>e.isFetchingSiteDetails,d=e=>!!e.newSite.data,f=(e,t)=>e.sites[t],p=(e,t)=>{var n;return null===(n=(0,r.select)(i.L).getSite(t))||void 0===n?void 0:n.name},m=(e,t)=>{var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===o.uS.SUCCESS},g=(e,t)=>{var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===o.uS.IN_PROGRESS},h=(e,t)=>e.sitesDomains[t],y=(e,t)=>{var n;return null===(n=(0,r.select)(i.L).getSiteDomains(t))||void 0===n?void 0:n.find((e=>e.primary_domain))},v=(e,t)=>{var n;return null===(n=(0,r.select)(i.L).getSiteDomains(t))||void 0===n?void 0:n.find((e=>e.is_subdomain))}},9639:function(e,t,n){"use strict";let r,i,o;n.d(t,{Hc:function(){return i},uS:function(){return o}}),function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(r||(r={})),function(e){e.INTERNAL="internal"}(i||(i={})),function(e){e.UNINITIALIZED="unintialized",e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.FAILURE="failure"}(o||(o={}))},4366:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});const r="automattic/wpcom-features"},2613:function(e,t,n){"use strict";n.d(t,{$:function(){return l}});var r=n(9734);const{TIMELESS_PLAN_PERSONAL:i,TIMELESS_PLAN_PREMIUM:o,TIMELESS_PLAN_BUSINESS:a,TIMELESS_PLAN_ECOMMERCE:s}=r,l={domain:{id:"domain",minSupportedPlan:i},store:{id:"store",minSupportedPlan:s},seo:{id:"seo",minSupportedPlan:a},plugins:{id:"plugins",minSupportedPlan:a},"ad-free":{id:"ad-free",minSupportedPlan:i},"image-storage":{id:"image-storage",minSupportedPlan:o},"video-storage":{id:"video-storage",minSupportedPlan:o},support:{id:"support",minSupportedPlan:a}}},182:function(e,t,n){"use strict";n.d(t,{z:function(){return u}});var r=n(9818),i=n(3418),o=n(4366),a=n(8638),s=n(335);let l=!1;function u(){return l||(l=!0,(0,r.registerStore)(o.L,{controls:i.controls,reducer:a.Z,selectors:s})),o.L}},8638:function(e,t,n){"use strict";var r=n(2613);t.Z=(e=r.$)=>e},335:function(e,t,n){"use strict";n.r(t),n.d(t,{getAllFeatures:function(){return i},getRecommendedPlanSlug:function(){return o}});var r=n(4703);const i=e=>e,o=(e,t)=>{const n=i(e);if(t.length)return t.reduce(((e,t)=>{const i=n[t].minSupportedPlan;return r.xT.indexOf(i)>r.xT.indexOf(e)?i:e}),n[t[0]].minSupportedPlan)}},3661:function(e,t,n){"use strict";n.d(t,{_9:function(){return i},An:function(){return o},ai:function(){return a}});var r=n(8552);const i=e=>({type:"WPCOM_REQUEST",request:e}),o=(e,t)=>({type:"FETCH_AND_PARSE",resource:e,options:t}),a={WPCOM_REQUEST:({request:e})=>(0,r.ZP)(e),FETCH_AND_PARSE:async({resource:e,options:t})=>{const n=await window.fetch(e,t);return{ok:n.ok,body:await n.json()}},RELOAD_PROXY:()=>{(0,r.sS)()},REQUEST_ALL_BLOGS_ACCESS:()=>(0,r.Vw)(),WAIT:({ms:e})=>new Promise((t=>setTimeout(t,e)))}},7003:function(e,t,n){"use strict";var r=n(9307),i=n(5609),o=n(9818),a=n(5869),s=n(3383),l=n(6656),u=n(2779),c=n.n(u),d=(n(9196),n(3300));n(5918);t.Z=({onSelect:e,selected:t})=>{const{__:__}=(0,l.useI18n)(),[n,u]=(0,r.useState)(!1),f=t=>{u(!1),e(t)},p=(0,o.useSelect)((e=>e(d.GN).getCategories())),m=__("All Categories","full-site-editing");return(0,r.createElement)("div",{className:c()("domain-categories",{"is-open":n})},(0,r.createElement)(i.Button,{className:"domain-categories__dropdown-button",onClick:()=>u(!n)},(0,r.createElement)("span",null,t??m),(0,r.createElement)(a.Z,{icon:s.Z,size:16})),(0,r.createElement)("ul",{className:"domain-categories__item-group"},(0,r.createElement)("li",{className:c()("domain-categories__item",{"is-selected":!t})},(0,r.createElement)(i.Button,{onClick:()=>f()},__("View all","full-site-editing"))),p.map((({slug:e,title:n})=>(0,r.createElement)("li",{key:e,className:c()("domain-categories__item",{"is-selected":e===t})},(0,r.createElement)(i.Button,{onClick:()=>f(e)},n))))))}},6325:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(9307),i=n(6656);const o=()=>{const{__:__,isRTL:e}=(0,i.useI18n)();return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 300 40",xmlSpace:"preserve",width:"300",style:e()?{transform:"scaleX(-1)"}:void 0},(0,r.createElement)("rect",{x:"0",width:"310",height:"50",rx:"10",fill:"#D8D8D8"}),(0,r.createElement)("rect",{x:"8",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("rect",{x:"40",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("rect",{x:"72",y:"8",width:"300",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("text",{x:"80",y:"26",direction:"ltr",textAnchor:e()?"end":"start",transform:e()?"scale(-1,1) translate(-160,0)":void 0},(0,r.createElement)("tspan",{fill:"#999"},(0,r.createElement)("tspan",null,"https://")),(0,r.createElement)("tspan",{fill:"#515151",dx:"4.5"},__("example.com","full-site-editing"))))}},1614:function(e,t,n){"use strict";var r=n(9307),i=n(2779),o=n.n(i);t.Z=({type:e})=>(0,r.createElement)("div",{className:o()("domain-picker__suggestion-item placeholder",`type-${e}`)},(0,r.createElement)("div",{className:"domain-picker__suggestion-item-name placeholder"}),(0,r.createElement)("div",{className:"domain-picker__price placeholder"}))},7226:function(e,t,n){"use strict";var r=n(7896),i=n(9307),o=n(9196),a=n(6461);const s=o.forwardRef((({type:e,disabled:t,...n},o)=>e===a.ln?(0,i.createElement)("div",n):(0,i.createElement)("button",(0,r.Z)({ref:o,disabled:t},n))));t.Z=s},6461:function(e,t,n){"use strict";n.d(t,{fe:function(){return y},ln:function(){return v}});var r=n(7896),i=n(9307),o=n(6115),a=n(849),s=n(7498),l=n(5609),u=n(4333),c=n(5736),d=n(6656),f=n(2779),p=n.n(f),m=n(9196),g=n(413),h=n(7226);const y="radio",v="button",b="individual-item",_=({isUnavailable:e,domain:t,isLoading:n,cost:r,railcarId:f,hstsRequired:_=!1,isFree:S=!1,isExistingSubdomain:E=!1,isRecommended:A=!1,onSelect:w,onRender:P,selected:x,type:C=y,buttonRef:N})=>{const{__:__,hasTranslation:I}=(0,d.useI18n)(),O=(0,a.bU)(),$=(0,s.Iu)(),L=!(0,u.useViewportMatch)("small",">="),M=t.indexOf("."),k=t.slice(0,M),F=t.slice(M),[T,D]=m.useState(),[R,Z]=m.useState(),j=__("Default","full-site-editing"),B=__("Free","full-site-editing"),U=C===b?j:B,G=__("Included with annual plans","full-site-editing"),H=__("Included in annual plans","full-site-editing"),V="en"===O||null!=I&&I("Included in annual plans")?H:G,W=__("<strong>First year included</strong> in paid plans","full-site-editing"),z=__("<strong>First year included</strong> in annual plans","full-site-editing"),Y="en"===O||null!=I&&I("<strong>First year included</strong> in annual plans")?z:W,q=L?V:(0,i.createInterpolateElement)(Y,{strong:(0,i.createElement)("strong",null)});m.useEffect((()=>{t!==T&&R!==f&&f&&(P(),D(t),Z(f))}),[t,T,R,f,P]);const K=()=>{R&&(0,o.Lo)({action:"domain_selected",railcarId:R}),w(t)},J=__("Selected","full-site-editing"),X=__("Select","full-site-editing");return(0,i.createElement)(h.Z,{ref:N,type:C,key:k,className:p()("domain-picker__suggestion-item",{"is-free":S,"is-selected":x,"is-unavailable":e},`type-${C}`),onClick:C!==v?K:void 0,disabled:e},C===y&&(n?(0,i.createElement)(l.Spinner,null):(0,i.createElement)("span",{className:p()("domain-picker__suggestion-radio-circle",{"is-checked":x,"is-unavailable":e})})),(0,i.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,i.createElement)("div",{className:"domain-picker__suggestion-item-name-inner"},(0,i.createElement)("span",{className:p()("domain-picker__domain-wrapper",{"with-margin":!_})},(0,i.createElement)("span",{className:"domain-picker__domain-sub-domain"},k),(0,i.createElement)("span",{className:"domain-picker__domain-tld"},F)),A&&!e&&(0,i.createElement)("div",{className:"domain-picker__badge is-recommended"},__("Recommended","full-site-editing")),_&&(0,i.createElement)(g.Z,{position:L?"bottom center":"middle right",noArrow:!1,className:"domain-picker__info-tooltip"},(0,i.createInterpolateElement)(__("All domains ending with <tld /> require an SSL certificate to host a website. When you host this domain at WordPress.com an SSL certificate is included. <learn_more_link>Learn more</learn_more_link>","full-site-editing"),{tld:(0,i.createElement)("b",null,F),learn_more_link:(0,i.createElement)("a",{target:"_blank",rel:"noreferrer",href:$("https://wordpress.com/support/https-ssl")})}))),E&&C!==b&&(0,i.createElement)("div",{className:"domain-picker__change-subdomain-tip"},__("You can change your free subdomain later under Domain Settings.","full-site-editing"))),(0,i.createElement)("div",{className:p()("domain-picker__price",{"is-paid":!S})},e&&__("Unavailable","full-site-editing"),S&&!e&&U,!S&&!e&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)("span",{className:"domain-picker__price-cost"},(0,c.sprintf)(__("%s/year","full-site-editing"),r)),(0,i.createElement)("span",{className:"domain-picker__price-inclusive"}," ",q," "),(0,i.createElement)("span",{className:"domain-picker__price-renewal"},(0,c.sprintf)(__("Renews at: %s /year","full-site-editing"),r)))),C===v&&(n?(0,i.createElement)(l.Spinner,null):(0,i.createElement)("div",{className:"domain-picker__action"},(0,i.createElement)(l.Button,{ref:N,isSecondary:!0,className:p()("domain-picker__suggestion-select-button",{"is-selected":x&&!e}),disabled:e,onClick:K},x&&!e?J:X))))};t.ZP=m.forwardRef(((e,t)=>(0,i.createElement)(_,(0,r.Z)({},e,{buttonRef:t}))))},605:function(e,t,n){"use strict";var r=n(9307),i=n(9211),o=n(6656),a=(n(9196),n(7226));t.Z=({onClick:e})=>{const{__:__,_x:_x}=(0,o.useI18n)();return(0,r.createElement)(a.Z,{type:"button",className:"domain-picker__suggestion-item type-link",onClick:e},(0,r.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,r.createElement)("span",{className:"domain-picker__domain-wrapper with-margin with-bold-text"},__("Already own a domain?","full-site-editing")),(0,r.createElement)("div",null,(0,r.createElement)("span",{className:"domain-picker__item-tip"},_x("You can use it as your site's address.","Upgrades: Register domain description","full-site-editing")))),(0,r.createElement)(i.b4,{arrow:"right"},_x("Use a domain I own","Domain transfer or mapping suggestion button","full-site-editing")))}},2999:function(e,t,n){"use strict";var r=n(9307),i=n(6115),o=n(584),a=n(5609),s=n(5869),l=n(7108),u=n(6656),c=n(2819),d=n(9196),f=n(3300),p=n(5241),m=n(1045),g=n(1071),h=n(3446),y=n(7003),v=n(6325),b=n(6461),_=n(1614),S=n(605);n(5592);const E=function({groupItems:e,children:t}){return e?(0,r.createElement)("div",{className:"domain-picker__suggestion-item-group"},t):(0,r.createElement)(d.Fragment,null,t)},A=function({children:e}){return(0,r.createElement)("p",{className:"domain-picker__suggestion-group-label"},e)};t.ZP=({header:e,showDomainCategories:t,onDomainSelect:n,onExistingSubdomainSelect:w,quantity:P=f.SL,quantityExpanded:x=f.Mm,onDomainSearchBlur:C,analyticsFlowId:N,analyticsUiAlgo:I,initialDomainSearch:O="",onSetDomainSearch:$,currentDomain:L,isCheckingDomainAvailability:M,existingSubdomain:k,segregateFreeAndPaid:F=!1,showSearchField:T=!0,itemType:D=b.fe,locale:R,areDependenciesLoading:Z=!1,orderSubDomainsLast:j=!1,onUseYourDomainClick:B,vendor:U=(0,h.iY)(),showRecommendationLabel:G=!0})=>{var H;const{__:__}=(0,u.useI18n)(),V=__("Search for a domain","full-site-editing"),[W,z]=(0,d.useState)(!1),[Y,q]=(0,d.useState)(O),[K,J]=(0,d.useState)(),{allDomainSuggestions:X,errorMessage:Q,state:ee,retryRequest:te}=(0,p.O)(Y.trim(),x,K,R)||{},ne=null==X?void 0:X.filter((e=>!(k&&e.is_free))).slice(0,W?x-1:P-1),re=null==ne?void 0:ne.findIndex((e=>!e.is_free&&!e.unavailable)),ie=(0,m.$)(ne,k,L);ie&&(null==ne||ne.push(ie));const oe=(0,g.P)();(0,d.useEffect)((()=>{z(!1)}),[Y]);const[ae,se]=(0,d.useState)();(0,d.useEffect)((()=>{X&&se((0,i.k9)("suggestion"))}),[X,se]),(0,d.useEffect)((()=>{T||q(O)}),[O,T]);const le=d.useRef([]);(0,d.useEffect)((()=>{var e,t;W&&(null===(e=le.current[P])||void 0===e||null===(t=e.focus)||void 0===t||t.call(e))}),[W,P]);const ue=(e,t,n,r)=>{const o=`/domains/search/${U}/${N}${K?"/"+K:""}`;(0,i.Sn)({uiAlgo:`/${N}/${I}`,fetchAlgo:o,query:Y,railcarId:t,result:r?e+"#recommended":e,uiPosition:n})},ce=d.useRef(),de=ee===o.r.Failure,fe=(null===(H=Y.trim)||void 0===H?void 0:H.call(Y).length)<=1,pe=!de&&!fe,me=!de&&fe;let ge=P;ie&&(ge+=1),B&&(ge+=1),k&&(ge-=1);const he=["professional"];return k&&he.unshift("sub-domain"),j&&he.reverse(),(0,r.createElement)("div",{className:"domain-picker"},e&&e,T&&(0,r.createElement)("div",{className:"domain-picker__search"},(0,r.createElement)("form",{action:"",onSubmit:e=>{var t;e.preventDefault(),null==ce||null===(t=ce.current)||void 0===t||t.blur()}},(0,r.createElement)("div",{className:"domain-picker__search-icon"},(0,r.createElement)(s.Z,{icon:l.Z})),(0,r.createElement)(a.TextControl,{ref:e=>{ce.current=e},hideLabelFromVision:!0,name:"search",label:V,placeholder:V,onChange:e=>{q(e),$&&$(e)},onBlur:e=>{C&&C(e.currentTarget.value)},value:Y,dir:"ltr"}))),de&&(0,r.createElement)(a.Notice,{className:"domain-picker__error",status:"error",isDismissible:!1},(0,r.createElement)("p",{className:"domain-picker__error-message"},Q||__("An error has occurred, please check your connection and retry.","full-site-editing")),(0,r.createElement)(a.Button,{isPrimary:!0,className:"domain-picker__error-retry-btn",onClick:te},__("Retry","full-site-editing"))),(pe||Z)&&(0,r.createElement)("div",{className:"domain-picker__body"},t&&(0,r.createElement)("div",{className:"domain-picker__aside"},(0,r.createElement)(y.Z,{selected:K,onSelect:J})),(0,r.createElement)("div",{className:"domain-picker__suggestion-sections"},(0,r.createElement)("div",{className:"domain-picker__sugggested-items-container"},he.map((e=>"sub-domain"===e?(0,r.createElement)(d.Fragment,{key:e},F&&(0,r.createElement)(A,null,__("Keep sub-domain","full-site-editing")),(0,r.createElement)(E,{key:e,groupItems:F},!Z&&k&&(0,r.createElement)(b.ZP,{key:null==k?void 0:k.domain_name,domain:null==k?void 0:k.domain_name,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:ae?`${ae}0`:void 0,onRender:()=>ue(null==k?void 0:k.domain_name,`${ae}0`,0,!1),selected:(null==L?void 0:L.domain_name)===(null==k?void 0:k.domain_name),onSelect:()=>{null==w||w(null==k?void 0:k.domain_name)},type:D})||(0,r.createElement)(_.Z,{type:D}))):(0,r.createElement)(d.Fragment,{key:e},F&&(0,r.createElement)(A,null,__("Professional domains","full-site-editing")),(0,r.createElement)(E,{key:e,groupItems:F},!Z&&(null==ne?void 0:ne.map(((e,t)=>{var i;const o=null!=k&&k.domain_name?t+1:t,a=t===re,s=null===(i=oe[null==e?void 0:e.domain_name])||void 0===i?void 0:i.status,l=!s||(null===f.vn||void 0===f.vn?void 0:f.vn.indexOf(s))>-1;return(0,r.createElement)(b.ZP,{ref:e=>{le.current[o]=e},key:e.domain_name,domain:e.domain_name,cost:e.cost,isUnavailable:!l||(null==e?void 0:e.unavailable),isLoading:(null==L?void 0:L.domain_name)===e.domain_name&&M,hstsRequired:e.hsts_required,isFree:e.is_free,isRecommended:G&&a,railcarId:ae?`${ae}${o}`:void 0,onRender:()=>ue(e.domain_name,`${ae}${o}`,o,a),onSelect:()=>{n(e)},selected:(null==L?void 0:L.domain_name)===e.domain_name,type:D})})))||(0,c.times)(ge,(e=>(0,r.createElement)(_.Z,{type:D,key:e}))),B&&!!ne&&(0,r.createElement)(S.Z,{onClick:B})))))),!W&&P<x&&(null==X?void 0:X.length)&&(null==X?void 0:X.length)>P&&(0,r.createElement)("div",{className:"domain-picker__show-more"},(0,r.createElement)(a.Button,{onClick:()=>z(!0),isLink:!0},__("View more results","full-site-editing"))))),me&&!Z&&(0,r.createElement)("div",{className:"domain-picker__empty-state"},(0,r.createElement)("p",{className:"domain-picker__empty-state--text"},__("A domain name is the site address people type in their browser to visit your site.","full-site-editing")),(0,r.createElement)("div",null,(0,r.createElement)(v.q,null))))}},413:function(e,t,n){"use strict";var r=n(9307),i=n(5609),o=n(5614),a=n(2779),s=n.n(a),l=n(9196);n(125);t.Z=({children:e,className:t,id:n,position:a="bottom center",noArrow:u=!0})=>{const[c,d]=(0,l.useState)(!1);return(0,r.createElement)((e=>(0,r.createElement)(i.Button,e)),{icon:o.Z,onClick:e=>{d(!c),e.stopPropagation()},className:"info-tooltip","data-testid":"info-tooltip"},c&&(0,r.createElement)(i.Popover,{id:n,className:s()("info-tooltip__content",t),onClose:()=>{d(!1)},position:a,noArrow:u},e))}},3300:function(e,t,n){"use strict";n.d(t,{SL:function(){return i},Mm:function(){return o},F9:function(){return a},dP:function(){return s},GN:function(){return l},vn:function(){return u}});var r=n(8077);const i=5,o=10,a=2,s=300,l=r.z2(),u=["available","available_premium"]},1071:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var r=n(9818),i=n(3300);function o(){return(0,r.useSelect)((e=>e(i.GN).getDomainAvailabilities()),[])}},5241:function(e,t,n){"use strict";n.d(t,{O:function(){return a}});var r=n(9818),i=n(7127),o=n(3300);function a(e="",t,n,a="en",s={}){const[l]=(0,i.Z)(e,o.dP),{invalidateResolutionForStoreSelector:u}=(0,r.useDispatch)(o.GN);return(0,r.useSelect)((e=>{if(!l||l.length<o.F9)return;const{getDomainSuggestions:r,getDomainState:i,getDomainErrorMessage:c}=e(o.GN);return{allDomainSuggestions:r(l,{include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:t+1,locale:a,category_slug:n,...s}),state:i(),errorMessage:c(),retryRequest:()=>{u("__internalGetDomainSuggestions")}}}),[l,n,t])}},1045:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var r=n(9196);function i(e,t,n){const[i,o]=(0,r.useState)(),a=t&&Array.isArray(e)?[t,...e]:e;(0,r.useEffect)((()=>{const e=null==a?void 0:a.some((e=>e.domain_name===(null==n?void 0:n.domain_name)));null!=a&&a.length&&!e&&o(n)}),[n,a]);if(!(null==a?void 0:a.some((e=>(null==e?void 0:e.domain_name)===(null==i?void 0:i.domain_name)))))return i}},3446:function(e,t,n){"use strict";function r(e){if(e)return{domain_name:e,relevance:1,supports_privacy:!0,vendor:"",cost:"",product_id:0,product_slug:"",raw_price:0,currency_code:"",unavailable:!1}}function i(e){return void 0!==e.normalize&&!!e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(/[a-z0-9-.\s]/i)}function o(e={}){return e.isSignup&&!e.isDomainOnly?"variation4_front":e.isPremium?"variation8_front":"variation2_front"}n.d(t,{nf:function(){return r},Qi:function(){return i},iY:function(){return o}})},3759:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});const r={AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function i(e){return r[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},1621:function(e,t,n){"use strict";n.d(t,{ZP:function(){return o}});var r=n(1481),i=n(3759);function o(e,t,n={}){const o=(0,i.X)(t);if(!o||isNaN(e))return null;const{decimal:a,grouping:s,precision:l,symbol:u}={...o,...n},c=e<0?"-":"";let d=(0,r.Y4)(Math.abs(e),{decimals:l,thousandsSep:s,decPoint:a});return n.stripZeros&&(d=function(e,t){const n=new RegExp(`\\${t}0+$`);return e.replace(n,"")}(d,a)),`${c}${u}${d}`}},914:function(e,t,n){"use strict";var r=n(2699),i=n(6668),o=n(8049),a=n.n(o),s=n(5079),l=n.n(s),u=n(7010),c=n(7839),d=n.n(c),f=n(9830),p=n(3);const m=a()("i18n-calypso"),g="number_format_decimals",h="number_format_thousands_sep",y="messages",v=[function(e){return e}],b={};function _(){P.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function S(e){return Array.prototype.slice.call(e)}function E(e){const t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&_("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",S(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&_("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",S(e));let n={};for(let r=0;r<e.length;r++)"object"==typeof e[r]&&(n=e[r]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function A(e,t){return e.dcnpgettext(y,t.context,t.original,t.plural,t.count)}function w(e,t){for(let n=v.length-1;n>=0;n--){const r=v[n](Object.assign({},t)),i=r.context?r.context+""+r.original:r.original;if(e.state.locale[i])return A(e.state.tannin,r)}return null}function P(){if(!(this instanceof P))return new P;this.defaultLocaleSlug="en",this.defaultPluralForms=e=>1===e?0:1,this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:d()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new r.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}P.throwErrors=!1,P.prototype.on=function(...e){this.stateObserver.on(...e)},P.prototype.off=function(...e){this.stateObserver.off(...e)},P.prototype.emit=function(...e){this.stateObserver.emit(...e)},P.prototype.numberFormat=function(e,t={}){const n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",i=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return(0,p.Z)(e,n,r,i)},P.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},P.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){const t=e[""]["key-hash"],n=function(e,t){const n=!1===t?"":String(t);if(void 0!==b[n+e])return b[n+e];const r=l()().update(e).digest("hex");return b[n+e]=t?r.substr(0,t):r},r=function(e){return function(t){return t.context?(t.original=n(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=n(t.original,e),t}};if("sha1"===t.substr(0,4))if(4===t.length)v.push(r(!1));else{const e=t.substr(5).indexOf("-");if(e<0){const e=Number(t.substr(5));v.push(r(e))}else{const n=Number(t.substr(5,e)),i=Number(t.substr(6+e));for(let e=n;e<=i;e++)v.push(r(e))}}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new f.Z({[y]:this.state.locale}),this.state.numberFormatSettings.decimal_point=A(this.state.tannin,E([g])),this.state.numberFormatSettings.thousands_sep=A(this.state.tannin,E([h])),this.state.numberFormatSettings.decimal_point===g&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===h&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},P.prototype.getLocale=function(){return this.state.locale},P.prototype.getLocaleSlug=function(){return this.state.localeSlug},P.prototype.getLocaleVariant=function(){return this.state.localeVariant},P.prototype.isRtl=function(){return"rtl"===this.state.textDirection},P.prototype.addTranslations=function(e){for(const t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},P.prototype.hasTranslation=function(){return!!w(this,E(arguments))},P.prototype.translate=function(){const e=E(arguments);let t=w(this,e);if(t||(t=A(this.state.tannin,e)),e.args){const r=Array.isArray(e.args)?e.args.slice(0):[e.args];r.unshift(t);try{t=(0,i.Z)(...r)}catch(n){if(!window||!window.console)return;const e=this.throwErrors?"error":"warn";"string"!=typeof n?window.console[e](n):window.console[e]("i18n sprintf error:",r)}}return e.components&&(t=(0,u.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},P.prototype.reRenderTranslations=function(){m("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},P.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},P.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},t.Z=P},1481:function(e,t,n){"use strict";n.d(t,{Y4:function(){return l},Iu:function(){return u}});var r=n(914),i=n(3493),o=n(8373),a=n(975);const s=new r.Z;const l=s.numberFormat.bind(s),u=s.translate.bind(s),{useRtl:c,withRtl:d}=(s.configure.bind(s),s.setLocale.bind(s),s.getLocale.bind(s),s.getLocaleSlug.bind(s),s.getLocaleVariant.bind(s),s.isRtl.bind(s),s.addTranslations.bind(s),s.reRenderTranslations.bind(s),s.registerComponentUpdateHook.bind(s),s.registerTranslateHook.bind(s),s.state,s.stateObserver,s.on.bind(s),s.off.bind(s),s.emit.bind(s),(0,i.Z)(s),(0,a.Z)(s),(0,o.Z)(s))},3493:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(6666),i=n(9307),o=n(9196);function a(e){const t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(n){var a,s;const l=n.displayName||n.name||"";return s=a=class extends o.Component{constructor(...e){super(...e),(0,r.Z)(this,"boundForceUpdate",this.forceUpdate.bind(this))}componentDidMount(){e.on("change",this.boundForceUpdate)}componentWillUnmount(){e.off("change",this.boundForceUpdate)}render(){const r={locale:e.getLocaleSlug(),...this.props,...t};return(0,i.createElement)(n,r)}},(0,r.Z)(a,"displayName","Localized("+l+")"),s}}},3:function(e,t,n){"use strict";function r(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");const i=isFinite(+e)?+e:0,o=isFinite(+t)?Math.abs(t):0,a=void 0===r?",":r,s=void 0===n?".":n;let l="";return l=(o?
294
  /*
295
  * Exposes number format capability
296
  *
298
  * @license See CREDITS.md
299
  * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
300
  */
301
+ function(e,t){const n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,o):""+Math.round(i)).split("."),l[0].length>3&&(l[0]=l[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(l[1]||"").length<o&&(l[1]=l[1]||"",l[1]+=new Array(o-l[1].length+1).join("0")),l.join(s)}n.d(t,{Z:function(){return r}})},8373:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(7896),i=n(9307),o=n(4333),a=n(9196),s=n(6718);function l(e){const t={getCurrentValue:()=>e.isRtl(),subscribe:t=>(e.on("change",t),()=>e.off("change",t))};function n(){return(0,s.useSubscription)(t)}const l=(0,o.createHigherOrderComponent)((e=>(0,a.forwardRef)(((t,o)=>{const a=n();return(0,i.createElement)(e,(0,r.Z)({},t,{isRtl:a,ref:o}))}))),"WithRTL");return{useRtl:n,withRtl:l}}},975:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(9196);function i(e){function t(){const t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}return function(){const[n,i]=(0,r.useState)(t);return(0,r.useEffect)((()=>{const n=()=>i(t);return e.on("change",n),()=>e.off("change",n)}),[]),n}}},849:function(e,t,n){"use strict";n.d(t,{Iw:function(){return u},bU:function(){return d}});var r=n(7896),i=n(9307),o=n(4333),a=n(5736),s=n(9196);const l=(0,s.createContext)(null),u=({children:e,localeSlug:t})=>(0,i.createElement)(l.Provider,{value:t},e);function c(){var e,t;return function(e=""){if(!e)return"";const t=e.toLowerCase();return(["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"].includes(t)?t.replace("_","-"):t.replace(/([-_].*)$/i,""))||"en"}(a.getLocaleData?null===(e=a.getLocaleData())||void 0===e||null===(t=e[""])||void 0===t?void 0:t.language:"")}function d(){const e=(0,s.useContext)(l),t=!!e,[n,r]=(0,s.useState)(c());return(0,s.useEffect)((()=>{if(!t)return r(c()),a.subscribe((()=>{r(c())}))}),[t]),e||n||"en"}(0,o.createHigherOrderComponent)((e=>t=>{const n=d();return(0,i.createElement)(e,(0,r.Z)({locale:n},t))}),"withLocale")},4655:function(e,t,n){"use strict";n.d(t,{OP:function(){return r},GG:function(){return i},iT:function(){return o},xn:function(){return a},Xb:function(){return s},xN:function(){return l},hI:function(){return u},mL:function(){return c},vS:function(){return d},_r:function(){return f}});const r="en",i=["en","ja","es","pt","fr","pt-br"],o=["en","fr","de","es"],a=["en","fr","de","es"],s={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},l=["en","en-gb"],u=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],c=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],d=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],f=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},7498:function(e,t,n){"use strict";n.d(t,{Iu:function(){return g}});var r=n(7896),i=n(9307),o=n(4333),a=n(9196),s=n(849),l=n(4655);const u="http://__domain__.invalid",c=(e,t=[])=>(n,r)=>(t.includes(r)&&"en"!==r&&n.pathname.substr(0,r.length+2)!=="/"+r+"/"&&(n.host=`${l.Xb[r]||r}.${e}`),n),d=(e,t=[],n=null)=>(r,i)=>(r.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(r.pathname)&&(t=[]),r.pathname=e+r.pathname,t.includes(i)&&"en"!==i&&(r.pathname=i+r.pathname),r),f=(e=[],t=null)=>(n,r)=>("object"==typeof t&&t instanceof RegExp&&!t.test(n.pathname)||e.includes(r)&&"en"!==r&&(n.pathname=r+n.pathname),n),p={"wordpress.com/support/":f(l.hI),"wordpress.com/forums/":f(l.mL),"wordpress.com/blog/":f(l.GG,/^\/blog\/?$/),"wordpress.com/tos/":f(l.vS),"wordpress.com/wp-admin/":c("wordpress.com",l.vS),"wordpress.com/wp-login.php":c("wordpress.com",l.vS),"jetpack.com":c("jetpack.com",l._r),"en.support.wordpress.com":d("/support",l.hI),"en.blog.wordpress.com":d("/blog",l.GG,/^\/$/),"en.forums.wordpress.com":d("/forums",l.mL),"automattic.com/privacy/":f(l.iT),"automattic.com/cookies/":f(l.xn),"wordpress.com/help/contact/":(e,t,n)=>n?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),f(l.hI)(e,t)),"wordpress.com":(e,t)=>/^\/(checkout|me)(\/|$)/.test(e.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(e.pathname)?e:f(l.vS)(e,t),"wordpress.com/theme/":(e,t,n)=>n?e:f(l.vS)(e,t),"wordpress.com/themes/":(e,t,n)=>n?e:f(l.vS)(e,t)};function m(e,t,n=!0){let r;try{r=new URL(String(e),u)}catch(a){return e}if(r.origin===u)return e;r.protocol="https:",r.hostname="",r.pathname.endsWith(".php")||(r.pathname=(r.pathname+"/").replace(/\/+$/,"/"));const i=r.pathname.substr(0,1+r.pathname.indexOf("/",1));if("en.wordpress.com"===r.host&&(r.host="wordpress.com"),"/"+t+"/"===i)return e;const o=[r.host,r.host+i,r.host+r.pathname];for(let s=o.length-1;s>=0;s--)if(o[s]in p)return p[o[s]](r,t,n).href;return e}function g(){const e=(0,s.bU)();return(0,a.useCallback)(((t,n,r)=>m(t,n||e,r)),[e])}(0,o.createHigherOrderComponent)((e=>t=>{const n=g();return(0,i.createElement)(e,(0,r.Z)({localizeUrl:n},t))}),"withLocalizeUrl")},6357:function(e,t,n){"use strict";var r=n(6483),i=n(9196);const o=e=>{window.location.href=e},a=(0,i.createContext)({siteId:0,redirectTo:o,getCurrentLaunchFlowUrl:()=>window.location.href,openCheckout:(e,t)=>{o((0,r.addQueryArgs)(`/checkout/${e}`,{...!t&&{redirect_to:`/home/${e}`}}))},flow:"launch",isInIframe:!1});t.Z=a},8039:function(e,t,n){"use strict";n.d(t,{j:function(){return d}});var r=n(849),i=n(9818),o=n(9196),a=n(6357),s=n(5144),l=n(6134),u=n(1120),c=n(6950);function d(){const{siteId:e,flow:t,openCheckout:n,isInIframe:d}=(0,o.useContext)(a.Z),f=(0,r.bU)(),[p,m]=(0,i.useSelect)((e=>[e(u.sC).getSelectedPlanProductId(),e(u.sC).getSelectedDomain()])),{planProduct:g,isEcommercePlan:h}=(0,i.useSelect)((e=>{const t=e(u.Fs),n=t.getPlanByProductId(p,f);return{planProduct:t.getPlanProductById(p),isEcommercePlan:t.isPlanEcommerce(null==n?void 0:n.periodAgnosticSlug)}}),[p,f]),{siteSubdomain:y}=(0,s.j)(),{getCart:v,setCart:b,launchSite:_}=(0,i.useDispatch)(u.j4),S=()=>_(e),[E,A]=(0,o.useState)(!1),w=(0,l.O)(),P=async()=>{await(async()=>{if(E)return;A(!0);const n=m&&(0,c.K9)(m,t),r=g&&(0,c.An)(g,t),i=await v(e);await b(e,{...i,products:[r,n]}),A(!1)})(),n(null==y?void 0:y.domain,h,S)};return{goToCheckout:P,goToCheckoutAndLaunch:async()=>{d&&!w||await _(e),P()},isCartUpdating:E}}},6956:function(e,t,n){"use strict";n.d(t,{f:function(){return c}});var r=n(3300),i=n(3446),o=n(9818),a=n(1120),s=n(5144),l=n(4557),u=n(3073);function c(){var e;const t=(0,o.useSelect)((e=>e(a.sC).getDomainSearch()),[]),{isDefaultTitle:n,title:c}=(0,l.Z)(),{isLoadingSite:d}=(0,u.W)(),{siteSubdomain:f}=(0,s.j)(),{setDomainSearch:p}=(0,o.useDispatch)(a.sC),m=void 0!==c&&c.length>=r.F9&&!n?c:"",g=(t.trim()||function(e){return(0,i.Qi)(e)?e:""}(m)||(null==f||null===(e=f.domain)||void 0===e?void 0:e.split(".")[0]))??"";return{domainSearch:g,isLoading:d,setDomainSearch:p}}},780:function(e,t,n){"use strict";n.d(t,{my:function(){return s}});var r=n(3446),i=n(9818),o=(n(9196),n(1120)),a=n(5144);function s(){const{setDomain:e,unsetDomain:t,unsetPlanProductId:n,confirmDomainSelection:s}=(0,i.useDispatch)(o.sC),{domain:l,planProductId:u,confirmedDomainSelection:c}=(0,i.useSelect)((e=>e(o.sC).getState())),d=(0,i.useSelect)((e=>e(o.Fs).isPlanProductFree(u))),{siteSubdomain:f,hasPaidDomain:p,sitePrimaryDomain:m}=(0,a.j)();let g;return l?g=l:p?g=(0,r.nf)(null==m?void 0:m.domain):c&&(g=(0,r.nf)(null==f?void 0:f.domain)),{onDomainSelect:function(t){s(),e(t),d&&n()},onExistingSubdomainSelect:function(){s(),t()},selectedDomain:l,currentDomain:g}}},8463:function(e,t,n){"use strict";n.d(t,{V:function(){return s}});var r=n(849),i=n(9818),o=n(1120),a=n(6956);function s(){var e;const t=(0,r.bU)(),{domainSearch:n}=(0,a.f)();return null===(e=(0,i.useSelect)((e=>{if(n&&!(n.length<2))return e(o.GN).getDomainSuggestions(n,{include_wordpressdotcom:!1,include_dotblogsubdomain:!1,quantity:1,locale:t})}),[n]))||void 0===e?void 0:e[0]}},6134:function(e,t,n){"use strict";n.d(t,{O:function(){return a}});var r=n(849),i=n(9818),o=n(1120);function a(){const e=(0,r.bU)(),t=(0,i.useSelect)((e=>e(o.sC).getSelectedPlanProductId()),[]);return(0,i.useSelect)((n=>{const r=n(o.Fs),i=r.getPlanByProductId(t,e);return r.isPlanEcommerce(null==i?void 0:i.periodAgnosticSlug)}),[t,e])}},3357:function(e,t,n){"use strict";n.d(t,{X:function(){return c}});var r=n(9818),i=n(9196),o=n(6357),a=n(5144),s=n(8039),l=n(1120),u=n(3073);const c=()=>{const{siteId:e,redirectTo:t}=(0,i.useContext)(o.Z),{planProductId:n}=(0,r.useSelect)((e=>e(l.sC).getState())),c=(0,r.useSelect)((e=>e(l.Fs).isPlanProductFree(n))),{isSiteLaunched:d}=(0,u.W)(),{siteSubdomain:f}=(0,a.j)(),{goToCheckout:p}=(0,s.j)();(0,i.useEffect)((()=>{if(d){if(!c)return void p();t(`/home/${(null==f?void 0:f.domain)||e}`)}}),[d])}},5144:function(e,t,n){"use strict";n.d(t,{j:function(){return s}});var r=n(9818),i=n(9196),o=n(6357),a=n(1120);function s(){const{siteId:e}=(0,i.useContext)(o.Z),t=(0,r.useSelect)((t=>t(a.j4).getPrimarySiteDomain(e)));return{sitePrimaryDomain:t,siteSubdomain:(0,r.useSelect)((t=>t(a.j4).getSiteSubdomain(e))),hasPaidDomain:t&&!(null!=t&&t.is_subdomain)}}},3073:function(e,t,n){"use strict";n.d(t,{W:function(){return s}});var r=n(9818),i=n(9196),o=n(6357),a=n(1120);function s(){var e,t;const{siteId:n}=(0,i.useContext)(o.Z),[s,l,u,c]=(0,r.useSelect)((e=>{const t=e(a.j4);return[t.getSite(n),t.isSiteLaunched(n),t.isSiteLaunching(n),t.isFetchingSiteDetails()]}),[n]);return{sitePlan:null==s?void 0:s.plan,hasPaidPlan:s&&!(null!==(e=s.plan)&&void 0!==e&&e.is_free),isSiteLaunched:l,isSiteLaunching:u,selectedFeatures:null==s||null===(t=s.options)||void 0===t?void 0:t.selected_features,isLoadingSite:!!c}}},4557:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(849),i=n(4655),o=n(9818),a=n(5736),s=n(9196),l=n(669),u=n(6357),c=n(1120);const __=a.__;function d(){const{siteId:e}=(0,s.useContext)(u.Z),t=(0,r.bU)(),n=(0,o.useSelect)((t=>t(c.j4).getSiteTitle(e)),[e]),a=(0,o.useSelect)((e=>e(c.sC).getSiteTitle()),[]),d=(0,o.useDispatch)(c.sC).setSiteTitle,f=(0,o.useDispatch)(c.j4).saveSiteTitle,[p]=(0,l.Z)(f,1e3),m=void 0===a,g=m?n:a;(0,s.useEffect)((()=>{m||p(e,a)}),[a,p,e,m]);const h=__("Site Title","full-site-editing");let y=void 0!==g&&g===h,v=void 0!==g&&""!==g&&!y;return-1===i.xN.indexOf(t)&&(y=!(null!=a&&a.trim()),v=void 0!==g&&""!==g),{isDefaultTitle:y,isValidTitle:v,title:g,updateTitle:d}}},1120:function(e,t,n){"use strict";n.d(t,{j4:function(){return s},Fs:function(){return l},GN:function(){return u},sC:function(){return c}});var r=n(2369),i=n(9734),o=n(8077),a=n(1635);const s=r.z2({client_id:"",client_secret:""}),l=i.register(),u=o.z2(),c=a.z()},6950:function(e,t,n){"use strict";n.d(t,{An:function(){return r},K9:function(){return i}});const r=(e,t)=>({product_id:e.productId,product_slug:e.storeSlug,extra:{source:t}}),i=(e,t)=>{if(!e.unavailable&&null!=e&&e.product_id)return{meta:null==e?void 0:e.domain_name,product_id:null==e?void 0:e.product_id,extra:{privacy_available:null==e?void 0:e.supports_privacy,privacy:null==e?void 0:e.supports_privacy,source:t},product_cost_display:e.cost,currency_code:e.currency_code,product_slug:e.product_slug,cost:e.raw_price,currency:e.currency_code}}},3340:function(e,t,n){"use strict";n.d(t,{hg:function(){return s},lZ:function(){return l},_W:function(){return c},Yt:function(){return d}});var r=n(8049);const i=n.n(r)()("lib/load-script/callback-handler"),o=new Map;function a(){return o}function s(e){return a().has(e)}function l(e,t){const n=a();s(e)?(i(`Adding a callback for an existing script from "${e}"`),n.get(e).add(t)):(i(`Adding a callback for a new script from "${e}"`),n.set(e,new Set([t])))}function u(e,t=null){const n=a(),r=n.get(e);if(r){i(`Executing callbacks for "${e}"`+(null===t?" with success":` with error "${t}"`)),r.forEach((e=>{"function"==typeof e&&e(t)})),n.delete(e)}}function c(){const e=this.getAttribute("src");i(`Handling successful request for "${e}"`),u(e),this.onload=null}function d(){const e=this.getAttribute("src");i(`Handling failed request for "${e}"`),u(e,new Error(`Failed to load script "${e}"`)),this.onerror=null}},5606:function(e,t,n){"use strict";n.d(t,{C:function(){return s},k:function(){return l}});var r=n(8049),i=n.n(r),o=n(3340);const a=i()("lib/load-script/dom-operations");function s(e){a(`Creating script element for "${e}"`);const t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=o._W,t.onerror=o.Yt,t}function l(e){a("Attaching element to head"),document.head.appendChild(e)}},4898:function(e,t,n){"use strict";n.d(t,{ve:function(){return s}});var r=n(8049),i=n.n(r),o=n(3340),a=n(5606);i()("package/load-script");function s(e,t){if(!(0,o.hg)(e)&&(0,a.k)((0,a.C)(e)),"function"!=typeof t)return new Promise(((t,n)=>{(0,o.lZ)(e,(e=>{null===e?t():n(e)}))}));(0,o.lZ)(e,t)}},9211:function(e,t,n){"use strict";n.d(t,{xE:function(){return f},aW:function(){return p},b4:function(){return m}});var r=n(7896),i=n(9307),o=n(5609),a=n(5869),s=n(1100),l=n(2481),u=n(6656),c=n(2779),d=n.n(c);n(9196),n(5838);t.ZP=({className:e,children:t,sticky:n=null})=>{let r="";return!0===n&&(r="is-sticky"),!1===n&&(r="no-sticky"),(0,i.createElement)("div",{className:d()("action-buttons",e,r)},t)};const f=({className:e,children:t,...n})=>{const{__:__}=(0,u.useI18n)();return(0,i.createElement)(o.Button,(0,r.Z)({className:d()("action_buttons__button action-buttons__back",e),isLink:!0},n),t||__("Go back","full-site-editing"))},p=({className:e,children:t,...n})=>{const{__:__}=(0,u.useI18n)();return(0,i.createElement)(o.Button,(0,r.Z)({className:d()("action_buttons__button action-buttons__next",e),isPrimary:!0},n),t||__("Continue","full-site-editing"))},m=({className:e,children:t,arrow:n="right",...u})=>(0,i.createElement)(o.Button,(0,r.Z)({className:d()(`action_buttons__button action-buttons__arrow action-buttons__arrow--${n}`,e)},u),"left"===n&&(0,i.createElement)(a.Z,{icon:s.Z}),t,"right"===n&&(0,i.createElement)(a.Z,{icon:l.Z}))},5915:function(e,t,n){"use strict";n.d(t,{b:function(){return a},D:function(){return s}});var r=n(2779),i=n.n(r),o=n(9196);n(6876);const a=({className:e,children:t,tagName:n="h1",...r})=>o.createElement(n,{className:i()("onboarding-title",e),...r},t),s=({className:e,children:t,tagName:n="h2",...r})=>o.createElement(n,{className:i()("onboarding-subtitle",e),...r},t)},1201:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(9818),i=n(9255);const o=(e,t)=>{const{supportedPlans:n,annualDiscounts:o}=(0,r.useSelect)((n=>{const r=n(i.F).getSupportedPlans(e),o=r.map((e=>n(i.F).getPlanProduct(e.periodAgnosticSlug,t))).map((e=>null==e?void 0:e.annualDiscount)).filter((e=>!!e));return{supportedPlans:r,annualDiscounts:o}}));return{supportedPlans:n,maxAnnualDiscount:o.reduce(((e,t)=>Math.max(e,t)),0)}}},130:function(e,t,n){"use strict";var r=n(9307),i=n(849),o=n(9211),a=n(9818),s=n(5736),l=n(6656),u=n(2779),c=n.n(u),d=(n(9196),n(373)),f=n(9255);n(4893);const p=(0,r.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,r.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}));t.Z=({slug:e,name:t,description:n,features:u,billingPeriod:m,domain:g,badge:h,isFree:y=!1,isOpen:v=!1,isPrimary:b=!1,onSelect:_,onPickDomainClick:S,onToggle:E,disabledLabel:A})=>{const{__:__,hasTranslation:w}=(0,l.useI18n)(),P=(0,i.bU)(),x=(0,a.useSelect)((t=>t(f.F).getPlanProduct(e,m))),C=()=>{!A&&(null==E||E(e,!v))},N=__("billed annually","full-site-editing"),I=__("billed as %s annually","full-site-editing"),O="en"===P||null!=w&&w("billed as %s annually")?(0,s.sprintf)(I,null==x?void 0:x.annualPrice):N,$=__("per month, billed monthly","full-site-editing"),L=__("billed monthly","full-site-editing"),M="en"===P||null!=w&&w("billed monthly")?L:$;return(0,r.createElement)("div",{className:c()("plans-accordion-item",{"is-open":v,"is-primary":b,"has-badge":!!h,"is-disabled":!!A})},h&&(0,r.createElement)("div",{className:"plans-accordion-item__badge"},(0,r.createElement)("span",null,h)),(0,r.createElement)("div",{className:"plans-accordion-item__viewport"},(0,r.createElement)("div",{className:"plans-accordion-item__details"},(0,r.createElement)("div",{tabIndex:0,role:"button",onClick:C,onKeyDown:e=>32===e.keyCode&&C(),className:"plans-accordion-item__header"},(0,r.createElement)("div",{className:"plans-accordion-item__heading"},(0,r.createElement)("div",{className:"plans-accordion-item__name"},t),(0,r.createElement)("div",{className:"plans-accordion-item__description"},n)),(0,r.createElement)("div",{className:"plans-accordion-item__price"},(0,r.createElement)("div",{className:c()("plans-accordion-item__price-amount",{"is-loading":!(null!=x&&x.price)})},(null==x?void 0:x.price)||"  ",(null==x?void 0:x.price)&&(0,r.createElement)("span",null,__("/mo","full-site-editing"))),(0,r.createElement)("div",{className:"plans-accordion-item__price-note"},y&&__("free forever","full-site-editing"),!y&&("ANNUALLY"===m?O:M)),!y&&(0,r.createElement)("div",{className:c()("plans-accordion-item__price-discount",{"plans-accordion-item__price-discount--disabled":"ANNUALLY"!==m})},(0,s.sprintf)(__("Save %(discountRate)s%% by paying annually","full-site-editing"),{discountRate:(null==x?void 0:x.annualDiscount)??0}))),(0,r.createElement)("div",{className:"plans-accordion-item__disabled-label"},A),!v&&(0,r.createElement)("div",{className:"plans-accordion-item__dropdown-chevron"},p)),(0,r.createElement)("div",{className:c()("plans-accordion-item__actions",{"plans-accordion-item__actions--paid-plan-margin":!y}),hidden:!v},(0,r.createElement)(o.aW,{"data-e2e-button":y?"freePlan":"paidPlan",onClick:()=>{_(null==x?void 0:x.productId)}},__("Select","full-site-editing"))),(0,r.createElement)(d.Z,{features:u,billingPeriod:m,domain:g,isFree:y,isOpen:v,onPickDomain:S,multiColumn:!0}))))}},4416:function(e,t,n){"use strict";var r=n(9307),i=n(9211),o=n(2779),a=n.n(o),s=(n(9196),n(7891));n(4893);const l=(0,r.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,r.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}));t.Z=({isOpen:e,isPrimary:t})=>(0,r.createElement)("div",{className:a()("plans-accordion-item",{"is-open":e,"is-primary":t})},(0,r.createElement)("div",{className:"plans-accordion-item__viewport"},(0,r.createElement)("div",{className:"plans-accordion-item__details"},(0,r.createElement)("div",{tabIndex:0,role:"button",className:"plans-accordion-item__header"},(0,r.createElement)("div",{className:"plans-accordion-item__heading"},(0,r.createElement)("div",{className:"plans-accordion-item__name"},(0,r.createElement)("span",{className:"plans-accordion-item__placeholder"},"")),(0,r.createElement)("div",{className:"plans-accordion-item__description"},(0,r.createElement)("span",{className:"plans-accordion-item__placeholder plans-accordion-item__placeholder--wide"},""))),(0,r.createElement)("div",{className:"plans-accordion-item__price"},(0,r.createElement)("div",{className:"plans-accordion-item__price-amount"},(0,r.createElement)("span",{className:"plans-accordion-item__placeholder"},"")),(0,r.createElement)("div",{className:"plans-accordion-item__price-note"},(0,r.createElement)("span",{className:"plans-accordion-item__placeholder plans-accordion-item__placeholder--wide"},""))),(0,r.createElement)("div",{className:"plans-accordion-item__disabled-label"},""),!e&&(0,r.createElement)("div",{className:"plans-accordion-item__dropdown-chevron"},l)),(0,r.createElement)("div",{className:"plans-accordion-item__actions",hidden:!e},(0,r.createElement)(i.aW,{disabled:!0},(0,r.createElement)("span",null,""))),(0,r.createElement)(s.Z,{isOpen:e,multiColumn:!0}))))},222:function(e,t,n){"use strict";var r=n(9307),i=n(5609),o=n(9818),a=n(5869),s=n(6656),l=n(9196),u=n(1201),c=n(130),d=n(4416),f=n(9255);n(3796);const p=(0,r.createElement)(i.SVG,{viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"}));t.Z=({selectedFeatures:e=[],selectedPlanProductId:t,onPlanSelect:n,onPickDomainClick:m,currentDomain:g,disabledPlans:h,locale:y,billingPeriod:v})=>{var b;const{__:__}=(0,s.useI18n)(),{supportedPlans:_}=(0,u.N)(y,v),S=!(null!=_&&_.length),{popularPlan:E,getPlanProduct:A}=(0,o.useSelect)((e=>{const t=e(f.F);return{popularPlan:t.getDefaultPaidPlan(y),getPlanProduct:t.getPlanProduct}})),w=(0,o.useSelect)((t=>t(f.J).getRecommendedPlanSlug(e))),P=(0,o.useSelect)((e=>e(f.F).getPlanByPeriodAgnosticSlug(w,y))),x=P||E,C=__("Recommended for you","full-site-editing"),N=__("Popular","full-site-editing"),I=_.filter((e=>e.periodAgnosticSlug!==(null==x?void 0:x.periodAgnosticSlug))),O=[null==x?void 0:x.periodAgnosticSlug],[$,L]=(0,l.useState)(O),M=!S&&$.length>=_.length,k=(e,t)=>{L(t?[...$,e]:$.filter((t=>t!==e)))},F=__("Collapse all plans","full-site-editing"),T=__("Show all plans","full-site-editing");return(0,r.createElement)("div",{className:"plans-accordion"},(0,r.createElement)("div",{className:"plans-accordion__plan-item-group"},S?(0,r.createElement)(d.Z,{isOpen:!0,isPrimary:!0}):x&&(0,r.createElement)(r.Fragment,null,P&&(0,r.createElement)("div",{className:"plans-accordion__recommend-hint"},(0,r.createElement)(a.Z,{icon:p,size:16}),(0,r.createElement)("span",null,__("Based on the features you selected.","full-site-editing"))),(0,r.createElement)(c.Z,{key:x.periodAgnosticSlug,slug:x.periodAgnosticSlug,name:null==x?void 0:x.title.toString(),description:null==x?void 0:x.description.toString(),features:x.features??[],billingPeriod:v,domain:g,badge:P?C:N,isFree:x.isFree,isOpen:!0,isPrimary:!0,isSelected:!!t&&t===(null===(b=A(x.periodAgnosticSlug,v))||void 0===b?void 0:b.productId),onSelect:n,onPickDomainClick:m}))),(0,r.createElement)("div",{className:"plans-accordion__actions"},(0,r.createElement)(i.Button,{className:"plans-accordion__toggle-all-button",onClick:()=>{L(M?O:_.map((e=>e.periodAgnosticSlug)))},isLink:!0},M?F:T)),(0,r.createElement)("div",{className:"plans-accordion__plan-item-group"},S?[1,2,3,4].map((e=>(0,r.createElement)(d.Z,{key:e}))):I.map((e=>{var i;return(0,r.createElement)(c.Z,{key:e.periodAgnosticSlug,slug:e.periodAgnosticSlug,name:null==e?void 0:e.title.toString(),description:null==e?void 0:e.description.toString(),features:e.features??[],billingPeriod:v,domain:g,isFree:e.isFree,isOpen:$.indexOf(e.periodAgnosticSlug)>-1&&!(null!=h&&h[e.periodAgnosticSlug]),isSelected:!!t&&t===(null===(i=A(e.periodAgnosticSlug,v))||void 0===i?void 0:i.productId),onSelect:n,onPickDomainClick:m,onToggle:k,disabledLabel:null==h?void 0:h[e.periodAgnosticSlug]})}))))}},4564:function(e,t,n){"use strict";var r=n(9307),i=n(5609),o=n(9818),a=n(5869),s=n(9806),l=n(8565),u=n(6656),c=n(2779),d=n.n(c),f=(n(9196),n(9255));n(4531);const p=(0,r.createElement)(a.Z,{icon:s.Z,size:25}),m=(0,r.createElement)(a.Z,{icon:l.Z,size:25});t.Z=({onSelect:e,locale:t,billingPeriod:n})=>{const{__:__,hasTranslation:a}=(0,u.useI18n)(),{supportedPlans:s,planProducts:l,features:c,featuresByType:g}=(0,o.useSelect)((e=>{const{getPlanProduct:r,getFeatures:i,getFeaturesByType:o,getSupportedPlans:a}=e(f.F),s=a(t),l=s.map((e=>r(e.periodAgnosticSlug,n)));return{supportedPlans:s,planProducts:l,features:i(t),featuresByType:o(t)}})),h=!(null!=s&&s.length),y=[1,2,3,4,5],v=__("Monthly price (billed yearly)","full-site-editing"),b=__("Monthly subscription (billed yearly)","full-site-editing"),_="en"===t||null!=a&&a("Monthly price (billed yearly)")?v:b,S=__("Monthly subscription","full-site-editing"),E=__("Included with annual plans","full-site-editing"),A=__("Only included with annual plans","full-site-editing");return(0,r.createElement)("div",{className:"plans-details"},(0,r.createElement)("table",{className:"plans-details__table"},(0,r.createElement)("thead",null,(0,r.createElement)("tr",{className:"plans-details__header-row"},(0,r.createElement)("th",null,__("Feature","full-site-editing")),h?y.map((e=>(0,r.createElement)("th",{key:e},(0,r.createElement)("span",{className:"plans-details__placeholder"},"")))):s.map((e=>(0,r.createElement)("th",{key:e.periodAgnosticSlug},e.title))))),h?(0,r.createElement)("tbody",null,y.map(((e,t)=>(0,r.createElement)("tr",{className:"plans-details__feature-row",key:t},(0,r.createElement)("th",{key:e},(0,r.createElement)("span",{className:"plans-details__placeholder plans-details__placeholder--wide"},"")),y.map((e=>(0,r.createElement)("td",{key:e}))))))):g.map((e=>{var t;return(0,r.createElement)("tbody",{key:e.id},e.name&&(0,r.createElement)("tr",{className:"plans-details__header-row"},(0,r.createElement)("th",{colSpan:6},e.name)),null===(t=e.features)||void 0===t?void 0:t.map(((e,t)=>(0,r.createElement)("tr",{className:d()("plans-details__feature-row",{"plans-details__feature-row--enabled":c[e].requiresAnnuallyBilledPlan&&"ANNUALLY"===n,"plans-details__feature-row--disabled":c[e].requiresAnnuallyBilledPlan&&"ANNUALLY"!==n}),key:t},(0,r.createElement)("th",null,c[e].requiresAnnuallyBilledPlan&&(0,r.createElement)("span",{className:"plans-details__feature-annual-nudge","aria-label":"ANNUALLY"===n?E:A},__("Included with annual plans","full-site-editing")),(0,r.createElement)("span",null,c[e].name)),s.map(((t,i)=>{var o;return"storage"===e?(0,r.createElement)("td",{key:i},t.storage):(0,r.createElement)("td",{key:i},null!==(o=t.featuresSlugs)&&void 0!==o&&o[e]?(0,r.createElement)(r.Fragment,null,c[e].requiresAnnuallyBilledPlan&&"ANNUALLY"!==n?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"hidden"},__("Unavailable","full-site-editing")),m):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"hidden"},__("Available","full-site-editing")),p)):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"hidden"},__("Unavailable","full-site-editing"))))}))))))})),(0,r.createElement)("tbody",null,(0,r.createElement)("tr",{className:"plans-details__header-row"},(0,r.createElement)("th",{colSpan:6},__("Sign up","full-site-editing"))),(0,r.createElement)("tr",{className:"plans-details__feature-row",key:"price"},(0,r.createElement)("th",null,"ANNUALLY"===n?_:S),h?y.map((e=>(0,r.createElement)("td",{key:e},(0,r.createElement)("span",{className:"plans-details__placeholder"},"")))):s.map(((e,t)=>{var n;return(0,r.createElement)("td",{key:e.periodAgnosticSlug},null===(n=l[t])||void 0===n?void 0:n.price)}))),(0,r.createElement)("tr",{className:"plans-details__feature-row",key:"cta"},(0,r.createElement)("th",null),h?y.map((e=>(0,r.createElement)("td",{key:e},(0,r.createElement)(i.Button,{className:"plans-details__select-button",isPrimary:!0,disabled:!0},(0,r.createElement)("span",{className:"plans-details__placeholder plans-details__placeholder--narrow"},""))," "))):s.map(((t,n)=>(0,r.createElement)("td",{key:t.periodAgnosticSlug},(0,r.createElement)(i.Button,{className:"plans-details__select-button",onClick:()=>{var t;e(null===(t=l[n])||void 0===t?void 0:t.productId)},isPrimary:!0},(0,r.createElement)("span",null,__("Select","full-site-editing"))))))))))}},373:function(e,t,n){"use strict";var r=n(7896),i=n(9307),o=n(5609),a=n(5869),s=n(9806),l=n(8565),u=n(6656),c=n(2779),d=n.n(c);n(9196),n(4571);const f=({className:e})=>(0,i.createElement)(a.Z,{className:e,icon:s.Z,size:18}),p=({className:e})=>(0,i.createElement)(a.Z,{className:e,icon:l.Z,size:18}),m=({children:e,className:t})=>(0,i.createElement)("span",{className:t},e),g=({billingPeriod:e,__:__})=>{const t=__("Included with annual plans","full-site-editing"),n=__("Only included with annual plans","full-site-editing");return(0,i.createElement)("span",{className:"plans-feature-list__item-annual-nudge","aria-label":"ANNUALLY"===e?t:n},t)};const h=({bulletIcon:e,textNode:t,requiresAnnuallyBilledPlan:n,contentWrapperNode:r=m,listItemExtraClassName:o,billingPeriod:a},s)=>{const{__:__}=(0,u.useI18n)();return(0,i.createElement)("li",{key:s,className:d()("plans-feature-list__item",{"plans-feature-list__item--requires-annual-enabled":n&&"ANNUALLY"===a,"plans-feature-list__item--requires-annual-disabled":n&&"ANNUALLY"!==a},o)},(0,i.createElement)(r,{className:"plans-feature-list__item-content-wrapper"},(0,i.createElement)(e,{className:"plans-feature-list__item-bullet-icon"}),(0,i.createElement)("span",{className:"plans-feature-list__item-text"},n&&(0,i.createElement)(g,{billingPeriod:a,__:__}),(0,i.createElement)("span",{className:"plans-feature-list__item-description"},t))))};t.Z=({features:e,domain:t,billingPeriod:n,isFree:a=!1,isOpen:s=!1,onPickDomain:l,disabledLabel:c,multiColumn:m=!1})=>{const{__:__}=(0,u.useI18n)(),g=function(e,t,n,__){const r="plans-feature-list__item-content-wrapper--domain-button";return{NO_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{wrapperClassName:d()(r,"is-cta"),bulletIcon:"ANNUALLY"===n?f:p,requiresAnnuallyBilledPlan:!0,domainMessage:(0,i.createElement)(i.Fragment,null,__("Pick a free domain (1 year)","full-site-editing"))}},FREE_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{wrapperClassName:d()(r,"is-cta"),bulletIcon:"ANNUALLY"===n?f:p,requiresAnnuallyBilledPlan:!0,domainMessage:(0,i.createElement)(i.Fragment,null,__("Pick a free domain (1 year)","full-site-editing"))}},PAID_DOMAIN:{FREE_PLAN:{wrapperClassName:d()(r,"is-unavailable"),bulletIcon:p,requiresAnnuallyBilledPlan:!1,domainMessage:(0,i.createElement)(i.Fragment,null,(0,i.createInterpolateElement)(__("<url /> is not included","full-site-editing"),{url:(0,i.createElement)("span",{className:"plans-feature-list__item-url"},null==t?void 0:t.domain_name)}))},PAID_PLAN:{wrapperClassName:r,bulletIcon:"ANNUALLY"===n?f:p,requiresAnnuallyBilledPlan:!0,domainMessage:(0,i.createElement)(i.Fragment,null,(0,i.createInterpolateElement)(__("<url /> is included","full-site-editing"),{url:(0,i.createElement)("span",{className:"plans-feature-list__item-url"},null==t?void 0:t.domain_name)}))}}}[t&&(t.is_free?"FREE_DOMAIN":"PAID_DOMAIN")||"NO_DOMAIN"][e?"FREE_PLAN":"PAID_PLAN"]}(a,t,n,__),y=[];return c?y.push({bulletIcon:p,textNode:c,requiresAnnuallyBilledPlan:!1,listItemExtraClassName:"plans-feature-list__item--disabled-message"}):g&&y.push({bulletIcon:g.bulletIcon,textNode:g.domainMessage,requiresAnnuallyBilledPlan:g.requiresAnnuallyBilledPlan,contentWrapperNode:({children:e,className:t})=>(0,i.createElement)(o.Button,{className:d()(g.wrapperClassName,t),onClick:l,isLink:!0},e)}),e.forEach((({name:e,requiresAnnuallyBilledPlan:t})=>y.push({bulletIcon:t&&"MONTHLY"===n?p:f,textNode:e,requiresAnnuallyBilledPlan:t}))),(0,i.createElement)("div",{className:"plans-feature-list",hidden:!s},(0,i.createElement)("ul",{className:d()("plans-feature-list__item-group",{"plans-feature-list__item-group--columns":m})},y.map(((e,t)=>(0,i.createElement)(h,(0,r.Z)({},e,{billingPeriod:n,key:t}))))))}},7891:function(e,t,n){"use strict";var r=n(9307),i=n(2779),o=n.n(i);n(9196),n(4571);t.Z=({isOpen:e=!1,multiColumn:t=!1})=>{const n=Array.from(Array(10).keys());return(0,r.createElement)("div",{className:"plans-feature-list",hidden:!e},(0,r.createElement)("ul",{className:o()("plans-feature-list__item-group",{"plans-feature-list__item-group--columns":t})},n.map((e=>(0,r.createElement)("li",{key:e,className:"plans-feature-list__item"},(0,r.createElement)("span",{className:"plans-feature-list__placeholder"},""))))))}},5315:function(e,t,n){"use strict";var r=n(9307),i=n(5915),o=n(9818),a=n(6656),s=n(8049),l=n.n(s),u=n(9196),c=n(1201),d=n(222),f=n(4564),p=n(1954),m=n(6795),g=n(9255);n(4290);const h=l()("plans-grid");t.Z=({header:e,selectedFeatures:t,currentPlanProductId:n,currentDomain:s,onPlanSelect:l,onPickDomainClick:y,disabledPlans:v,isAccordion:b,locale:_,showPlanTaglines:S=!1,CTAVariation:E="NORMAL",popularBadgeVariation:A="ON_TOP",customTagLines:w,hidePlansComparison:P=!1,defaultAllPlansExpanded:x=!1,onBillingPeriodChange:C})=>{const{__:__}=(0,a.useI18n)(),N=(0,o.useSelect)((e=>{var t;return null===(t=e(g.F).getPlanProductById(n))||void 0===t?void 0:t.billingPeriod})),[I,O]=u.useState(N||"ANNUALLY");u.useEffect((()=>{C&&C(I)}),[I,C]);const{maxAnnualDiscount:$}=(0,c.N)(_,I);return b&&h("PlansGrid accordion version is active"),(0,r.createElement)("div",{className:"plans-grid"},e&&(0,r.createElement)("div",{className:"plans-grid__header"},e),(0,r.createElement)(p.Z,{intervalType:I,onChange:O,maxMonthlyDiscountPercentage:$,className:"plans-grid__toggle"}),(0,r.createElement)("div",{className:"plans-grid__table"},(0,r.createElement)("div",{className:"plans-grid__table-container"},b?(0,r.createElement)(d.Z,{selectedFeatures:t,selectedPlanProductId:n,onPlanSelect:l,currentDomain:s,onPickDomainClick:y,disabledPlans:v,locale:_,billingPeriod:I}):(0,r.createElement)(m.Z,{popularBadgeVariation:A,CTAVariation:E,selectedPlanProductId:n,onPlanSelect:l,customTagLines:w,currentDomain:s,onPickDomainClick:y,disabledPlans:v,locale:_,showTaglines:S,defaultAllPlansExpanded:x,billingPeriod:I}))),!P&&(0,r.createElement)("div",{className:"plans-grid__details"},(0,r.createElement)("div",{className:"plans-grid__details-heading"},(0,r.createElement)(i.b,{tagName:"h2"},__("Detailed comparison","full-site-editing"))),(0,r.createElement)("div",{className:"plans-grid__details-container"},(0,r.createElement)(f.Z,{onSelect:l,locale:_,billingPeriod:I}))))}},1954:function(e,t,n){"use strict";var r=n(9307),i=n(849),o=n(5609),a=n(5736),s=n(6656),l=n(2779),u=n.n(l),c=(n(9196),n(5532));n(8674);const d=({children:e})=>{const t={desktop:"middle right",mobile:"bottom center"};return(0,r.createElement)(r.Fragment,null,Object.keys(t).map((n=>(0,r.createElement)(o.Popover,{key:n,className:u()("plans-interval-toggle__popover",`plans-interval-toggle__popover--${n}`),position:t[n],noArrow:!1},e))))};t.Z=({onChange:e,intervalType:t,maxMonthlyDiscountPercentage:n,className:o=""})=>{const{__:__,_x:_x,hasTranslation:l}=(0,s.useI18n)(),f=(0,i.bU)(),p=__("Pay monthly","full-site-editing"),m=_x("Monthly",'Adverb (as in "Pay monthly")',"full-site-editing"),g="en"===f||l("Monthly",'Adverb (as in "Pay monthly")',"full-site-editing")?m:p,h=__("Pay annually","full-site-editing"),y=_x("Annually",'Adverb (as in "Pay annually")',"full-site-editing"),v="en"===f||l("Annually",'Adverb (as in "Pay annually")',"full-site-editing")?y:h;return(0,r.createElement)("div",{className:u()("plans-interval-toggle",{"plans-interval-toggle--monthly":"MONTHLY"===t},o)},(0,r.createElement)(c.Z,null,(0,r.createElement)(c.Z.Item,{selected:"MONTHLY"===t,onClick:()=>e("MONTHLY")},(0,r.createElement)("span",{className:"plans-interval-toggle__label"},g)),(0,r.createElement)(c.Z.Item,{selected:"ANNUALLY"===t,onClick:()=>e("ANNUALLY")},(0,r.createElement)("span",{className:"plans-interval-toggle__label"},v),"MONTHLY"===t&&n&&(0,r.createElement)(d,null,(0,a.sprintf)(__("Save up to %(maxDiscount)d%% by paying annually and get a free domain for one year","full-site-editing"),{maxDiscount:n})))))}},6795:function(e,t,n){"use strict";var r=n(9307),i=n(9818),o=n(9196),a=n(1201),s=n(9255),l=n(2893);n(1233);t.Z=({selectedPlanProductId:e,onPlanSelect:t,onPickDomainClick:n,currentDomain:u,disabledPlans:c,locale:d,billingPeriod:f,showTaglines:p=!1,CTAVariation:m="NORMAL",popularBadgeVariation:g="ON_TOP",customTagLines:h,defaultAllPlansExpanded:y=!1})=>{const{supportedPlans:v}=(0,a.N)(d,f),[b,_]=(0,o.useState)(y),S=(0,i.useSelect)((e=>e(s.F).getPlanProduct));return(0,r.createElement)("div",{className:"plans-table"},v.filter((e=>!!e)).map((i=>{var o;return(0,r.createElement)(l.Z,{popularBadgeVariation:g,allPlansExpanded:b,key:i.periodAgnosticSlug,slug:i.periodAgnosticSlug,domain:u,tagline:(p&&(null==h?void 0:h[i.periodAgnosticSlug]))??i.description,CTAVariation:m,features:i.features??[],billingPeriod:f,isPopular:i.isPopular,isFree:i.isFree,name:null==i?void 0:i.title.toString(),isSelected:!!e&&e===(null===(o=S(i.periodAgnosticSlug,f))||void 0===o?void 0:o.productId),onSelect:t,onPickDomainClick:n,onToggleExpandAll:()=>_((e=>!e)),disabledLabel:null==c?void 0:c[i.periodAgnosticSlug]})})))}},2893:function(e,t,n){"use strict";var r=n(9307),i=n(849),o=n(5609),a=n(4333),s=n(9818),l=n(5736),u=n(5869),c=n(9806),d=n(6656),f=n(2779),p=n.n(f),m=n(9196),g=n(373),h=n(9255);const y=(0,r.createElement)(u.Z,{icon:c.Z,size:17}),v=(0,r.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,r.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}));t.Z=({slug:e,name:t,tagline:n,isPopular:u=!1,isFree:c=!1,domain:f,features:b,billingPeriod:_,onSelect:S,onPickDomainClick:E,onToggleExpandAll:A,allPlansExpanded:w,disabledLabel:P,CTAVariation:x="NORMAL",popularBadgeVariation:C="ON_TOP",isSelected:N})=>{const{__:__,hasTranslation:I}=(0,d.useI18n)(),O=(0,i.bU)(),$=(0,s.useSelect)((t=>t(h.F).getPlanProduct(e,_))),[L,M]=m.useState(!1),k=(0,a.useViewportMatch)("mobile",">=");m.useEffect((()=>{M(w)}),[w]);const F=w||k||u||L,T=__("Choose","full-site-editing"),D=__("Current Selection","full-site-editing"),R=__("Select %s","full-site-editing"),Z=__("billed annually","full-site-editing"),j=__("per month, billed as %s annually","full-site-editing"),B="en"===O||null!=I&&I("per month, billed as %s annually")?(0,l.sprintf)(j,null==$?void 0:$.annualPrice):Z,U=__("per month, billed monthly","full-site-editing"),G=__("Collapse all plans","full-site-editing"),H=__("Expand all plans","full-site-editing");return(0,r.createElement)("div",{className:p()("plan-item",{"is-popular":u,"is-open":F,"badge-next-to-name":"NEXT_TO_NAME"===C})},u&&"ON_TOP"===C&&(0,r.createElement)("span",{className:"plan-item__badge"},__("Popular","full-site-editing")),(0,r.createElement)("div",{className:p()("plan-item__viewport",{"is-popular":u})},(0,r.createElement)("div",{className:"plan-item__details"},(0,r.createElement)("div",{tabIndex:0,role:"button",onClick:()=>M((e=>!e)),onKeyDown:e=>32===e.keyCode&&M((e=>!e)),className:"plan-item__summary"},(0,r.createElement)("div",{className:p()("plan-item__heading",{"badge-next-to-name":"NEXT_TO_NAME"===C})},(0,r.createElement)("div",{className:"plan-item__name"},t),u&&"NEXT_TO_NAME"===C&&(0,r.createElement)("span",{className:"plan-item__badge-next-to-name"},__("Popular","full-site-editing"))),n&&(0,r.createElement)("p",{className:"plan-item__tagline"},n),(0,r.createElement)("div",{className:"plan-item__price"},(0,r.createElement)("div",{className:p()("plan-item__price-amount",{"is-loading":!(null!=$&&$.price)})},(null==$?void 0:$.price)||" ")),!F&&(0,r.createElement)("div",{className:"plan-item__dropdown-chevron"},v)),(0,r.createElement)("div",{hidden:!F},(0,r.createElement)("div",{className:"plan-item__price-note"},c&&__("free forever","full-site-editing"),!c&&("ANNUALLY"===_?B:U)),(0,r.createElement)("div",{className:p()("plan-item__price-discount",{"plan-item__price-discount--disabled":"ANNUALLY"!==_,"plan-item__price-discount--hidden":c}),"aria-hidden":c?"true":"false"},(0,l.sprintf)(__("Save %(discountRate)s%% by paying annually","full-site-editing"),{discountRate:(null==$?void 0:$.annualDiscount)??0})),(0,r.createElement)("div",{className:"plan-item__actions"},"NORMAL"===x?(0,r.createElement)(o.Button,{className:"plan-item__select-button",onClick:()=>{S(null==$?void 0:$.productId)},isPrimary:!0,disabled:!!P},(0,r.createElement)("span",null,P??T)):(0,r.createElement)(o.Button,{className:p()("plan-item__select-button full-width",{"is-selected":N,"is-popular":u}),onClick:()=>{S(null==$?void 0:$.productId)},isPrimary:u,disabled:!!P},(0,r.createElement)("span",null,P??(0,r.createElement)(r.Fragment,null,N?y:"",N?D:(0,l.sprintf)(R,t))))),(0,r.createElement)(g.Z,{features:b,domain:f,isFree:c,isOpen:F,onPickDomain:E,disabledLabel:P&&(0,l.sprintf)(__("%s is not included","full-site-editing"),null==f?void 0:f.domain_name),billingPeriod:_})))),u&&!k&&(0,r.createElement)(o.Button,{onClick:A,className:"plan-item__mobile-expand-all-plans",isLink:!0},w?G:H))}},5532:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(6666),i=n(9307),o=n(2779),a=n.n(o),s=n(3980),l=n.n(s),u=n(9196),c=n(8268);n(6011);class d extends u.Component{render(){const e={"is-compact":this.props.compact,"is-primary":this.props.primary};return(0,i.createElement)("ul",{className:a()("segmented-control",e,this.props.className),style:this.props.style,role:"radiogroup"},this.props.children)}}(0,r.Z)(d,"Item",c.Z),(0,r.Z)(d,"propTypes",{className:l().string,compact:l().bool,primary:l().bool,style:l().object,children:l().node.isRequired})},8268:function(e,t,n){"use strict";var r=n(6666),i=n(9307),o=n(2779),a=n.n(o),s=n(3980),l=n.n(s),u=n(9196);class c extends u.Component{constructor(...e){super(...e),(0,r.Z)(this,"handleKeyEvent",(e=>{switch(e.keyCode){case 13:case 32:e.preventDefault(),document.activeElement.click()}}))}render(){const e=a()({"segmented-control__item":!0,"is-selected":this.props.selected}),t=a()("segmented-control__link",{[`item-index-${this.props.index}`]:null!=this.props.index});return(0,i.createElement)("li",{className:e},(0,i.createElement)("a",{href:this.props.path,className:t,onClick:this.props.onClick,title:this.props.title,"data-e2e-value":this.props.value,role:"radio",tabIndex:0,"aria-checked":this.props.selected,onKeyDown:this.handleKeyEvent},(0,i.createElement)("span",{className:"segmented-control__text"},this.props.children)))}}(0,r.Z)(c,"propTypes",{children:l().node.isRequired,path:l().string,selected:l().bool,title:l().string,value:l().string,onClick:l().func,index:l().number}),(0,r.Z)(c,"defaultProps",{selected:!1}),t.Z=c},9255:function(e,t,n){"use strict";n.d(t,{F:function(){return o},J:function(){return a}});var r=n(9734),i=n(182);const o=r.register(),a=i.z()},8552:function(e,t,n){"use strict";n.d(t,{Vw:function(){return E},sS:function(){return C}});var r=n(8049),i=n.n(r),o=n(8650),a=n.n(o),s=n(8767),l=n(2884),u=n.n(l);const c=i()("wpcom-proxy-request"),d="https://public-api.wordpress.com",f=window.location.protocol+"//"+window.location.host,p=(()=>{let e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e})(),m=(()=>{try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}})();let g,h=null,y=!1;const v={},b=!!window.ProgressEvent&&!!window.FormData;c('using "origin": %o',f);const _=(e,t)=>{const n=Object.assign({},e);c("request(%o)",n),h||x();const r=(0,s.Z)();n.callback=r,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=b,n.method=String(n.method||"GET").toUpperCase(),c("params object: %o",n);const i=new window.XMLHttpRequest;if(i.params=n,v[r]=i,"function"==typeof t){let e=!1;const n=n=>{if(e)return;e=!0;const r=n.response||i.response;c("body: ",r),c("headers: ",n.headers),t(null,r,n.headers)},r=n=>{if(e)return;e=!0;const r=n.error||n.err||n;c("error: ",r),c("headers: ",n.headers),t(r,null,n.headers)};i.addEventListener("load",n),i.addEventListener("abort",r),i.addEventListener("error",r)}return"function"==typeof n.onStreamRecord&&delete n.onStreamRecord,y?A(n):(c("buffering API request since proxying <iframe> is not yet loaded"),g.push(n)),i},S=(e,t)=>"function"==typeof t?_(e,t):new Promise(((t,n)=>{_(e,((e,r)=>{e?n(e):t(r)}))}));function E(){return S({metaAPI:{accessAllUsersBlogs:!0}})}function A(e){c("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!m)return;for(let t=0;t<e.length;t++){const n=P(e[t][1]);n&&(e[t][1]=new window.File([n],n.name,{type:n.type}))}}(e.formData),h.contentWindow.postMessage(p?JSON.stringify(e):e,d)}function w(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function P(e){return w(e)?e:"object"==typeof e&&w(e.fileContents)?e.fileContents:null}function x(){c("install()"),h&&(c("uninstall()"),window.removeEventListener("message",N),document.body.removeChild(h),y=!1,h=null),g=[],window.addEventListener("message",N),h=document.createElement("iframe"),h.src=d+"/wp-admin/rest-proxy/?v=2.0#"+f,h.style.display="none",document.body.appendChild(h)}const C=()=>{x()};function N(e){if(c("onmessage"),e.origin!==d)return void c("ignoring message... %o !== %o",e.origin,d);if(e.source!==h.contentWindow)return void c("ignoring message... iframe elements do not match");let{data:t}=e;if(!t)return c("no `data`, bailing");if("ready"===t)return void function(){if(c('proxy <iframe> "load" event'),y=!0,g){for(let e=0;e<g.length;e++)A(g[e]);g=null}}();if(p&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){c('got "progress" event: %o',e);const t=v[e.callbackId];if(t){const n=new(a())("progress",e);(e.upload?t.upload:t).dispatchEvent(n)}}(t);if(!t.length)return c("`e.data` doesn't appear to be an Array, bailing...");const n=t[t.length-1];if(!(n in v))return c("bailing, no matching request with callback: %o",n);const r=v[n],{params:i}=r,o=t[0];let s=t[1];const l=t[2];if(207===s||delete v[n],i.metaAPI?s="metaAPIupdated"===o?200:500:c("got %o status code for URL: %o",s,i.path),"object"==typeof l&&(l.status=s,f=l["Content-Type"],/^application[/]x-ndjson($|;)/.test(f))){I(r,new Error("stream mode processing is not yet implemented for wpcom-proxy-request"),l)}else{var f;if(s&&2===Math.floor(s/100))!function(e,t,n){const r=new(a())("load");r.data=r.body=r.response=t,r.headers=n,e.dispatchEvent(r)}(r,o,l);else{I(r,u()(i,s,o),l)}}}function I(e,t,n){const r=new(a())("error");r.error=r.err=t,r.headers=n,e.dispatchEvent(r)}t.ZP=S},8049:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(2632)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,n){e.exports=function(e){function t(e){let n,i,o,a=null;function s(...e){if(!s.enabled)return;const r=s,i=Number(new Date),o=i-(n||i);r.diff=o,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,i)=>{if("%%"===n)return"%";a++;const o=t.formatters[i];if("function"==typeof o){const t=e[a];n=o.call(r,t),e.splice(a,1),a--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1378),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},3830:function(e,t,n){"use strict";var r=n(956);e.exports=function(){var e=r.apply(r,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},956:function(e){"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},7127:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(9196),i=n(669);function o(e,t){return e===t}function a(e,t,n){var a=n&&n.equalityFn?n.equalityFn:o,s=(0,r.useState)(e),l=s[0],u=s[1],c=(0,i.Z)((0,r.useCallback)((function(e){return u(e)}),[]),t,n),d=c[0],f=c[1],p=(0,r.useRef)(e);return(0,r.useEffect)((function(){a(p.current,e)||(d(e),p.current=e)}),[e,d,a]),[l,f]}},669:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(9196);function i(e,t,n){void 0===n&&(n={});var i=n.maxWait,o=(0,r.useRef)(null),a=(0,r.useRef)([]),s=n.leading,l=(0,r.useRef)(!1),u=(0,r.useRef)(null),c=(0,r.useRef)(!1),d=(0,r.useRef)(e);d.current=e;var f=(0,r.useCallback)((function(){clearTimeout(u.current),clearTimeout(o.current),o.current=null,a.current=[],u.current=null,l.current=!1}),[]);(0,r.useEffect)((function(){return function(){c.current=!0}}),[]);var p=(0,r.useCallback)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(a.current=e,clearTimeout(u.current),!u.current&&s&&!l.current)return d.current.apply(d,e),void(l.current=!0);u.current=setTimeout((function(){f(),c.current||d.current.apply(d,e)}),t),i&&!o.current&&(o.current=setTimeout((function(){var e=a.current;f(),c.current||d.current.apply(null,e)}),i))}),[i,t,f,s]);return[p,f,function(){u.current&&(d.current.apply(null,a.current),f())}]}},8186:function(e,t,n){"use strict";
302
  /** @license React vundefined
303
  * use-subscription.production.min.js
304
  *
editor-site-launch/dist/launch-button.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-i18n', 'wp-polyfill'), 'version' => '203fc87fdd80af58bf3b0b00da6c14e9');
1
+ <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-i18n', 'wp-polyfill'), 'version' => '7befcd8bb55d321afc2b02bd0585cd05');
editor-site-launch/src/attach-focused-launch.tsx CHANGED
@@ -2,7 +2,7 @@ import FocusedLaunchModal from '@automattic/launch';
2
  import { useSelect, useDispatch } from '@wordpress/data';
3
  import { registerPlugin as originalRegisterPlugin, PluginSettings } from '@wordpress/plugins';
4
  import { hasQueryArg } from '@wordpress/url';
5
- import React from 'react';
6
  import { inIframe } from '../../block-inserter-modifications/contextual-tips/utils';
7
  import { IMMEDIATE_LAUNCH_QUERY_ARG } from './constants';
8
  import { LAUNCH_STORE, SITE_STORE } from './stores';
@@ -29,7 +29,7 @@ registerPlugin( 'a8c-editor-editor-focused-launch', {
29
  const { openFocusedLaunch } = useDispatch( LAUNCH_STORE );
30
 
31
  // Add a class to hide the Launch button from editor bar when site is launched
32
- React.useEffect( () => {
33
  if ( isSiteLaunched ) {
34
  document.body.classList.add( 'is-focused-launch-complete' );
35
  }
@@ -39,7 +39,7 @@ registerPlugin( 'a8c-editor-editor-focused-launch', {
39
  // is redirecting to an external payment processing page (eg: Paypal)
40
  const shouldLaunch = hasQueryArg( getCurrentLaunchFlowUrl(), IMMEDIATE_LAUNCH_QUERY_ARG );
41
 
42
- React.useEffect( () => {
43
  if ( shouldLaunch && ! isSiteLaunched ) {
44
  openFocusedLaunch();
45
  }
2
  import { useSelect, useDispatch } from '@wordpress/data';
3
  import { registerPlugin as originalRegisterPlugin, PluginSettings } from '@wordpress/plugins';
4
  import { hasQueryArg } from '@wordpress/url';
5
+ import { useEffect } from 'react';
6
  import { inIframe } from '../../block-inserter-modifications/contextual-tips/utils';
7
  import { IMMEDIATE_LAUNCH_QUERY_ARG } from './constants';
8
  import { LAUNCH_STORE, SITE_STORE } from './stores';
29
  const { openFocusedLaunch } = useDispatch( LAUNCH_STORE );
30
 
31
  // Add a class to hide the Launch button from editor bar when site is launched
32
+ useEffect( () => {
33
  if ( isSiteLaunched ) {
34
  document.body.classList.add( 'is-focused-launch-complete' );
35
  }
39
  // is redirecting to an external payment processing page (eg: Paypal)
40
  const shouldLaunch = hasQueryArg( getCurrentLaunchFlowUrl(), IMMEDIATE_LAUNCH_QUERY_ARG );
41
 
42
+ useEffect( () => {
43
  if ( shouldLaunch && ! isSiteLaunched ) {
44
  openFocusedLaunch();
45
  }
editor-site-launch/src/attach-launch-sidebar.tsx CHANGED
@@ -3,7 +3,7 @@ import { LaunchContext } from '@automattic/launch';
3
  import { useDispatch, useSelect } from '@wordpress/data';
4
  import { doAction, hasAction } from '@wordpress/hooks';
5
  import { registerPlugin as originalRegisterPlugin, PluginSettings } from '@wordpress/plugins';
6
- import React from 'react';
7
  import { inIframe } from '../../block-inserter-modifications/contextual-tips/utils';
8
  import { FLOW_ID } from './constants';
9
  import LaunchModal from './launch-modal';
@@ -21,12 +21,12 @@ registerPlugin( 'a8c-editor-site-launch', {
21
  LAUNCH_STORE
22
  );
23
 
24
- React.useEffect( () => {
25
  // @automattic/viewport doesn't have a breakpoint for medium (782px)
26
  window.innerWidth < 782 ? setSidebarFullscreen() : unsetSidebarFullscreen();
27
  }, [ isSidebarOpen, setSidebarFullscreen, unsetSidebarFullscreen ] );
28
 
29
- React.useEffect( () => {
30
  const TOGGLE_INLINE_HELP_BUTTON_ACTION = 'a8c.wpcom-block-editor.toggleInlineHelpButton';
31
  if ( hasAction( TOGGLE_INLINE_HELP_BUTTON_ACTION ) ) {
32
  doAction( TOGGLE_INLINE_HELP_BUTTON_ACTION, { hidden: isSidebarOpen } );
3
  import { useDispatch, useSelect } from '@wordpress/data';
4
  import { doAction, hasAction } from '@wordpress/hooks';
5
  import { registerPlugin as originalRegisterPlugin, PluginSettings } from '@wordpress/plugins';
6
+ import { useEffect } from 'react';
7
  import { inIframe } from '../../block-inserter-modifications/contextual-tips/utils';
8
  import { FLOW_ID } from './constants';
9
  import LaunchModal from './launch-modal';
21
  LAUNCH_STORE
22
  );
23
 
24
+ useEffect( () => {
25
  // @automattic/viewport doesn't have a breakpoint for medium (782px)
26
  window.innerWidth < 782 ? setSidebarFullscreen() : unsetSidebarFullscreen();
27
  }, [ isSidebarOpen, setSidebarFullscreen, unsetSidebarFullscreen ] );
28
 
29
+ useEffect( () => {
30
  const TOGGLE_INLINE_HELP_BUTTON_ACTION = 'a8c.wpcom-block-editor.toggleInlineHelpButton';
31
  if ( hasAction( TOGGLE_INLINE_HELP_BUTTON_ACTION ) ) {
32
  doAction( TOGGLE_INLINE_HELP_BUTTON_ACTION, { hidden: isSidebarOpen } );
editor-site-launch/src/launch-menu/index.tsx CHANGED
@@ -1,6 +1,6 @@
1
  import { useSelect, useDispatch } from '@wordpress/data';
2
  import { useI18n } from '@wordpress/react-i18n';
3
- import React from 'react';
4
  import { LAUNCH_STORE } from '../stores';
5
  import LaunchMenuItem from './item';
6
  import type { LaunchStepType } from '../../../common/data-stores/launch';
1
  import { useSelect, useDispatch } from '@wordpress/data';
2
  import { useI18n } from '@wordpress/react-i18n';
3
+ import * as React from 'react';
4
  import { LAUNCH_STORE } from '../stores';
5
  import LaunchMenuItem from './item';
6
  import type { LaunchStepType } from '../../../common/data-stores/launch';
editor-site-launch/src/launch-menu/item.tsx CHANGED
@@ -1,7 +1,7 @@
1
  import { Button, SVG, Circle } from '@wordpress/components';
2
  import { Icon, check } from '@wordpress/icons';
3
  import classnames from 'classnames';
4
- import React from 'react';
5
 
6
  const circle = (
7
  <SVG viewBox="0 0 24 24">
1
  import { Button, SVG, Circle } from '@wordpress/components';
2
  import { Icon, check } from '@wordpress/icons';
3
  import classnames from 'classnames';
4
+ import * as React from 'react';
5
 
6
  const circle = (
7
  <SVG viewBox="0 0 24 24">
editor-site-launch/src/launch-modal/index.tsx CHANGED
@@ -5,7 +5,7 @@ import { useDispatch, useSelect } from '@wordpress/data';
5
  import { __ } from '@wordpress/i18n';
6
  import { Icon, wordpress, close } from '@wordpress/icons';
7
  import classnames from 'classnames';
8
- import React from 'react';
9
  import Launch from '../launch';
10
  import LaunchProgress from '../launch-progress';
11
  import LaunchSidebar from '../launch-sidebar';
5
  import { __ } from '@wordpress/i18n';
6
  import { Icon, wordpress, close } from '@wordpress/icons';
7
  import classnames from 'classnames';
8
+ import * as React from 'react';
9
  import Launch from '../launch';
10
  import LaunchProgress from '../launch-progress';
11
  import LaunchSidebar from '../launch-sidebar';
editor-site-launch/src/launch-progress/index.tsx CHANGED
@@ -1,7 +1,7 @@
1
  import { useSelect } from '@wordpress/data';
2
  import { sprintf } from '@wordpress/i18n';
3
  import { useI18n } from '@wordpress/react-i18n';
4
- import React from 'react';
5
  import { LAUNCH_STORE } from '../stores';
6
 
7
  import './styles.scss';
1
  import { useSelect } from '@wordpress/data';
2
  import { sprintf } from '@wordpress/i18n';
3
  import { useI18n } from '@wordpress/react-i18n';
4
+ import * as React from 'react';
5
  import { LAUNCH_STORE } from '../stores';
6
 
7
  import './styles.scss';
editor-site-launch/src/launch-sidebar/index.tsx CHANGED
@@ -1,7 +1,7 @@
1
  import { Title, SubTitle, ActionButtons, NextButton } from '@automattic/onboarding';
2
  import { useSelect, useDispatch } from '@wordpress/data';
3
  import { __ } from '@wordpress/i18n';
4
- import React from 'react';
5
  import LaunchMenu from '../launch-menu';
6
  import { LAUNCH_STORE } from '../stores';
7
 
1
  import { Title, SubTitle, ActionButtons, NextButton } from '@automattic/onboarding';
2
  import { useSelect, useDispatch } from '@wordpress/data';
3
  import { __ } from '@wordpress/i18n';
4
+ import * as React from 'react';
5
  import LaunchMenu from '../launch-menu';
6
  import { LAUNCH_STORE } from '../stores';
7
 
editor-site-launch/src/launch-step/index.tsx CHANGED
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
 
3
  import './styles.scss';
4
 
1
+ import * as React from 'react';
2
 
3
  import './styles.scss';
4
 
editor-site-launch/src/launch-steps/domain-step/index.tsx CHANGED
@@ -5,7 +5,7 @@ import { useDomainSelection, useSiteDomains, useDomainSearch } from '@automattic
5
  import { Title, SubTitle, ActionButtons, BackButton, NextButton } from '@automattic/onboarding';
6
  import { useDispatch } from '@wordpress/data';
7
  import { useI18n } from '@wordpress/react-i18n';
8
- import React from 'react';
9
  import { FLOW_ID } from '../../constants';
10
  import LaunchStepContainer, { Props as LaunchStepProps } from '../../launch-step';
11
  import { LAUNCH_STORE } from '../../stores';
5
  import { Title, SubTitle, ActionButtons, BackButton, NextButton } from '@automattic/onboarding';
6
  import { useDispatch } from '@wordpress/data';
7
  import { useI18n } from '@wordpress/react-i18n';
8
+ import * as React from 'react';
9
  import { FLOW_ID } from '../../constants';
10
  import LaunchStepContainer, { Props as LaunchStepProps } from '../../launch-step';
11
  import { LAUNCH_STORE } from '../../stores';
editor-site-launch/src/launch-steps/final-step/index.tsx CHANGED
@@ -19,7 +19,7 @@ import { sprintf } from '@wordpress/i18n';
19
  import { Icon, check } from '@wordpress/icons';
20
  import { useI18n } from '@wordpress/react-i18n';
21
  import classnames from 'classnames';
22
- import React from 'react';
23
  import LaunchStepContainer, { Props as LaunchStepProps } from '../../launch-step';
24
  import { LAUNCH_STORE, PLANS_STORE } from '../../stores';
25
 
19
  import { Icon, check } from '@wordpress/icons';
20
  import { useI18n } from '@wordpress/react-i18n';
21
  import classnames from 'classnames';
22
+ import * as React from 'react';
23
  import LaunchStepContainer, { Props as LaunchStepProps } from '../../launch-step';
24
  import { LAUNCH_STORE, PLANS_STORE } from '../../stores';
25
 
editor-site-launch/src/launch-steps/name-step/index.tsx CHANGED
@@ -2,7 +2,7 @@ import { useTitle } from '@automattic/launch';
2
  import { Title, SubTitle, ActionButtons, BackButton, NextButton } from '@automattic/onboarding';
3
  import { TextControl, Tip } from '@wordpress/components';
4
  import { __ } from '@wordpress/i18n';
5
- import React from 'react';
6
  import LaunchStepContainer, { Props as LaunchStepProps } from '../../launch-step';
7
 
8
  import './styles.scss';
2
  import { Title, SubTitle, ActionButtons, BackButton, NextButton } from '@automattic/onboarding';
3
  import { TextControl, Tip } from '@wordpress/components';
4
  import { __ } from '@wordpress/i18n';
5
+ import * as React from 'react';
6
  import LaunchStepContainer, { Props as LaunchStepProps } from '../../launch-step';
7
 
8
  import './styles.scss';
editor-site-launch/src/launch-steps/plan-step/index.tsx CHANGED
@@ -3,7 +3,7 @@ import { Title, SubTitle, ActionButtons, BackButton } from '@automattic/onboardi
3
  import PlansGrid from '@automattic/plans-grid';
4
  import { useSelect, useDispatch } from '@wordpress/data';
5
  import { __, sprintf } from '@wordpress/i18n';
6
- import React from 'react';
7
  import LaunchStepContainer, { Props as LaunchStepProps } from '../../launch-step';
8
  import { LAUNCH_STORE } from '../../stores';
9
 
3
  import PlansGrid from '@automattic/plans-grid';
4
  import { useSelect, useDispatch } from '@wordpress/data';
5
  import { __, sprintf } from '@wordpress/i18n';
6
+ import * as React from 'react';
7
  import LaunchStepContainer, { Props as LaunchStepProps } from '../../launch-step';
8
  import { LAUNCH_STORE } from '../../stores';
9
 
editor-site-launch/src/launch/index.tsx CHANGED
@@ -1,5 +1,5 @@
1
  import { useSelect, useDispatch } from '@wordpress/data';
2
- import React from 'react';
3
  import DomainStep from '../launch-steps/domain-step';
4
  import FinalStep from '../launch-steps/final-step';
5
  import NameStep from '../launch-steps/name-step';
1
  import { useSelect, useDispatch } from '@wordpress/data';
2
+ import * as React from 'react';
3
  import DomainStep from '../launch-steps/domain-step';
4
  import FinalStep from '../launch-steps/final-step';
5
  import NameStep from '../launch-steps/name-step';
error-reporting/dist/error-reporting.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-api-fetch', 'wp-polyfill'), 'version' => '2535d939cd1a42dcdf522147eb363873');
1
+ <?php return array('dependencies' => array('wp-api-fetch', 'wp-polyfill'), 'version' => '3eeca243632d5ac8d09a95ef5d06f1fe');
event-countdown-block/dist/event-countdown-block.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-blocks', 'wp-components', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '34216bdbf39945d0e308d961079e0974');
1
+ <?php return array('dependencies' => array('wp-blocks', 'wp-components', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'eea5fc301e639a77da41511eca429013');
full-site-editing-plugin.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: WordPress.com Editing Toolkit
4
  * Description: Enhances your page creation workflow within the Block Editor.
5
- * Version: 3.15741
6
  * Author: Automattic
7
  * Author URI: https://automattic.com/wordpress-plugins/
8
  * License: GPLv2 or later
@@ -42,7 +42,7 @@ namespace A8C\FSE;
42
  *
43
  * @var string
44
  */
45
- define( 'A8C_ETK_PLUGIN_VERSION', '3.15741' );
46
 
47
  // Always include these helper files for dotcom FSE.
48
  require_once __DIR__ . '/dotcom-fse/helpers.php';
2
  /**
3
  * Plugin Name: WordPress.com Editing Toolkit
4
  * Description: Enhances your page creation workflow within the Block Editor.
5
+ * Version: 3.16100
6
  * Author: Automattic
7
  * Author URI: https://automattic.com/wordpress-plugins/
8
  * License: GPLv2 or later
42
  *
43
  * @var string
44
  */
45
+ define( 'A8C_ETK_PLUGIN_VERSION', '3.16100' );
46
 
47
  // Always include these helper files for dotcom FSE.
48
  require_once __DIR__ . '/dotcom-fse/helpers.php';
global-styles/dist/global-styles.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '4bb2f8c44998ed076f996d9f542e785d');
1
+ <?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '78066fea04a9c8e1c56d7e7bd0a42d9c');
jetpack-timeline/dist/jetpack-timeline.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '51256e37059a11ce46f06623c3e8a065');
1
+ <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'bff3553b051b2aeb5706a62db30476b3');
newspack-blocks/dist/blog-posts-block-editor.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'f038adc2c024ca8e712a91d49d65a4f1');
1
+ <?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '91bac136e83bc873c32474b548fd49e9');
newspack-blocks/dist/blog-posts-block-view.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-polyfill'), 'version' => 'edeb073c7e06f4486de48a91843998d2');
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => '8cfc0584a86f5d6d33d955dcb2079b13');
newspack-blocks/dist/carousel-block-editor.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '737a84e5287715b95ac75c2ff568d723');
1
+ <?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '0404a25e6f0fa2230eaa7b8dc2891a08');
newspack-blocks/dist/carousel-block-view.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-a11y', 'wp-dom-ready', 'wp-escape-html', 'wp-i18n', 'wp-polyfill'), 'version' => '4372d1b923cc47759946bb7bf27f83ea');
1
+ <?php return array('dependencies' => array('wp-a11y', 'wp-dom-ready', 'wp-escape-html', 'wp-i18n', 'wp-polyfill'), 'version' => '210e2c185eabf8c2f0fc6acaa3a2942d');
posts-list-block/dist/posts-list-block.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '6e2bde7ee1f85d1f86b6e2d37cdc7c17');
1
+ <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '7345617eca565b624fb9ad9b5a6e8c30');
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: automattic
3
  Tags: block, blocks, editor, gutenberg, page
4
  Requires at least: 5.5
5
  Tested up to: 5.6
6
- Stable tag: 3.15741
7
  Requires PHP: 5.6.20
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
3
  Tags: block, blocks, editor, gutenberg, page
4
  Requires at least: 5.5
5
  Tested up to: 5.6
6
+ Stable tag: 3.16100
7
  Requires PHP: 5.6.20
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
starter-page-templates/dist/starter-page-templates.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-url'), 'version' => '64b002105c0cfd925a5f08eb625c1965');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-url'), 'version' => '8c2422f0955cdd66493d88cf8415d201');
starter-page-templates/index.tsx CHANGED
@@ -1,6 +1,5 @@
1
  import { initializeTracksWithIdentity, PatternDefinition } from '@automattic/page-pattern-modal';
2
  import { dispatch } from '@wordpress/data';
3
- import React from '@wordpress/element';
4
  import { registerPlugin } from '@wordpress/plugins';
5
  import { PagePatternsPlugin } from './page-patterns-plugin';
6
 
1
  import { initializeTracksWithIdentity, PatternDefinition } from '@automattic/page-pattern-modal';
2
  import { dispatch } from '@wordpress/data';
 
3
  import { registerPlugin } from '@wordpress/plugins';
4
  import { PagePatternsPlugin } from './page-patterns-plugin';
5
 
starter-page-templates/page-patterns-plugin.tsx CHANGED
@@ -1,6 +1,6 @@
1
  import { PagePatternModal, PatternDefinition } from '@automattic/page-pattern-modal';
2
  import { useSelect, useDispatch } from '@wordpress/data';
3
- import React, { useCallback } from '@wordpress/element';
4
  import { addFilter, removeFilter } from '@wordpress/hooks';
5
  import { __ } from '@wordpress/i18n';
6
 
1
  import { PagePatternModal, PatternDefinition } from '@automattic/page-pattern-modal';
2
  import { useSelect, useDispatch } from '@wordpress/data';
3
+ import { useCallback } from '@wordpress/element';
4
  import { addFilter, removeFilter } from '@wordpress/hooks';
5
  import { __ } from '@wordpress/i18n';
6
 
tags-education/dist/tags-education.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => 'd279723cd2aa6f0bb472acce8084a327');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => 'eecccd329dcac7dd6b412ea285db8965');
tags-education/dist/tags-education.js CHANGED
@@ -1 +1 @@
1
- !function(){var t={421:function(t,e){"use strict";var n=decodeURIComponent,r=encodeURIComponent,o=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(t,e){try{return e(t)}catch(n){return t}}},699:function(t){"use strict";var e,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function i(){i.init.call(this)}t.exports=i,t.exports.once=function(t,e){return new Promise((function(n,r){function o(){void 0!==i&&t.removeListener("error",i),n([].slice.call(arguments))}var i;"error"!==e&&(i=function(n){t.removeListener(e,o),r(n)},t.once("error",i)),t.once(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function c(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?i.defaultMaxListeners:t._maxListeners}function a(t,e,n,r){var o,i,s,a;if(c(n),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),i=t._events),s=i[e]),void 0===s)s=i[e]=n,++t._eventsCount;else if("function"==typeof s?s=i[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=u(t))>0&&s.length>o&&!s.warned){s.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=t,f.type=e,f.count=s.length,a=f,console&&console.warn&&console.warn(a)}return t}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},o=f.bind(r);return o.listener=n,r.wrapFn=o,o}function h(t,e,n){var r=t._events;if(void 0===r)return[];var o=r[e];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(o):d(o,o.length)}function p(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function d(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},i.prototype.getMaxListeners=function(){return u(this)},i.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var o="error"===t,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var c=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw c.context=s,c}var u=i[t];if(void 0===u)return!1;if("function"==typeof u)r(u,this,e);else{var a=u.length,f=d(u,a);for(n=0;n<a;++n)r(f[n],this,e)}return!0},i.prototype.addListener=function(t,e){return a(this,t,e,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(t,e){return a(this,t,e,!0)},i.prototype.once=function(t,e){return c(e),this.on(t,l(this,t,e)),this},i.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,l(this,t,e)),this},i.prototype.removeListener=function(t,e){var n,r,o,i,s;if(c(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===e||n[i].listener===e){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,o),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,s||e)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},i.prototype.listeners=function(t){return h(this,t,!0)},i.prototype.rawListeners=function(t){return h(this,t,!1)},i.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},495:function(t,e,n){"use strict";var r=n(212),o=n(561);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=i,i.prototype.update=function(t,e){if(t=r.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-n,this.endian);for(var o=0;o<t.length;o+=this._delta32)this._update(t,o,o+this._delta32)}return this},i.prototype.digest=function(t){return this.update(this._pad()),o(null===this.pending),this._digest(t)},i.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,r=new Array(n+this.padLength);r[0]=128;for(var o=1;o<n;o++)r[o]=0;if(t<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)r[o++]=0;r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=t>>>24&255,r[o++]=t>>>16&255,r[o++]=t>>>8&255,r[o++]=255&t}else for(r[o++]=255&t,r[o++]=t>>>8&255,r[o++]=t>>>16&255,r[o++]=t>>>24&255,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,i=8;i<this.padLength;i++)r[o++]=0;return r}},32:function(t,e,n){"use strict";var r=n(212),o=n(495),i=n(713),s=n(561),c=r.sum32,u=r.sum32_4,a=r.sum32_5,f=i.ch32,l=i.maj32,h=i.s0_256,p=i.s1_256,d=i.g0_256,m=i.g1_256,g=o.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function w(){if(!(this instanceof w))return new w;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(w,g),t.exports=w,w.blockSize=512,w.outSize=256,w.hmacStrength=192,w.padLength=64,w.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=u(m(n[r-2]),n[r-7],d(n[r-15]),n[r-16]);var o=this.h[0],i=this.h[1],g=this.h[2],v=this.h[3],w=this.h[4],y=this.h[5],C=this.h[6],_=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var b=a(_,p(w),f(w,y,C),this.k[r],n[r]),F=c(h(o),l(o,i,g));_=C,C=y,y=w,w=c(v,b),v=g,g=i,i=o,o=c(b,F)}this.h[0]=c(this.h[0],o),this.h[1]=c(this.h[1],i),this.h[2]=c(this.h[2],g),this.h[3]=c(this.h[3],v),this.h[4]=c(this.h[4],w),this.h[5]=c(this.h[5],y),this.h[6]=c(this.h[6],C),this.h[7]=c(this.h[7],_)},w.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(t,e,n){"use strict";var r=n(212).rotr32;function o(t,e,n){return t&e^~t&n}function i(t,e,n){return t&e^t&n^e&n}function s(t,e,n){return t^e^n}e.ft_1=function(t,e,n,r){return 0===t?o(e,n,r):1===t||3===t?s(e,n,r):2===t?i(e,n,r):void 0},e.ch32=o,e.maj32=i,e.p32=s,e.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22)},e.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25)},e.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},212:function(t,e,n){"use strict";var r=n(561),o=n(285);function i(t,e){return 55296==(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function s(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function c(t){return 1===t.length?"0"+t:t}function u(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=o,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),o=0;o<t.length;o+=2)n.push(parseInt(t[o]+t[o+1],16))}else for(var r=0,o=0;o<t.length;o++){var s=t.charCodeAt(o);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):i(t,o)?(s=65536+((1023&s)<<10)+(1023&t.charCodeAt(++o)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(o=0;o<t.length;o++)n[o]=0|t[o];return n},e.toHex=function(t){for(var e="",n=0;n<t.length;n++)e+=c(t[n].toString(16));return e},e.htonl=s,e.toHex32=function(t,e){for(var n="",r=0;r<t.length;r++){var o=t[r];"little"===e&&(o=s(o)),n+=u(o.toString(16))}return n},e.zero2=c,e.zero8=u,e.join32=function(t,e,n,o){var i=n-e;r(i%4==0);for(var s=new Array(i/4),c=0,u=e;c<s.length;c++,u+=4){var a;a="big"===o?t[u]<<24|t[u+1]<<16|t[u+2]<<8|t[u+3]:t[u+3]<<24|t[u+2]<<16|t[u+1]<<8|t[u],s[c]=a>>>0}return s},e.split32=function(t,e){for(var n=new Array(4*t.length),r=0,o=0;r<t.length;r++,o+=4){var i=t[r];"big"===e?(n[o]=i>>>24,n[o+1]=i>>>16&255,n[o+2]=i>>>8&255,n[o+3]=255&i):(n[o+3]=i>>>24,n[o+2]=i>>>16&255,n[o+1]=i>>>8&255,n[o]=255&i)}return n},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,n){return t+e+n>>>0},e.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},e.sum32_5=function(t,e,n,r,o){return t+e+n+r+o>>>0},e.sum64=function(t,e,n,r){var o=t[e],i=r+t[e+1]>>>0,s=(i<r?1:0)+n+o;t[e]=s>>>0,t[e+1]=i},e.sum64_hi=function(t,e,n,r){return(e+r>>>0<e?1:0)+t+n>>>0},e.sum64_lo=function(t,e,n,r){return e+r>>>0},e.sum64_4_hi=function(t,e,n,r,o,i,s,c){var u=0,a=e;return u+=(a=a+r>>>0)<e?1:0,u+=(a=a+i>>>0)<i?1:0,t+n+o+s+(u+=(a=a+c>>>0)<c?1:0)>>>0},e.sum64_4_lo=function(t,e,n,r,o,i,s,c){return e+r+i+c>>>0},e.sum64_5_hi=function(t,e,n,r,o,i,s,c,u,a){var f=0,l=e;return f+=(l=l+r>>>0)<e?1:0,f+=(l=l+i>>>0)<i?1:0,f+=(l=l+c>>>0)<c?1:0,t+n+o+s+u+(f+=(l=l+a>>>0)<a?1:0)>>>0},e.sum64_5_lo=function(t,e,n,r,o,i,s,c,u,a){return e+r+i+c+a>>>0},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},e.shr64_hi=function(t,e,n){return t>>>n},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},285:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},561:function(t){function e(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=e,e.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)}},378:function(t){var e=1e3,n=60*e,r=60*n,o=24*r,i=7*o,s=365.25*o;function c(t,e,n,r){var o=e>=1.5*n;return Math.round(t/n)+" "+r+(o?"s":"")}t.exports=function(t,u){u=u||{};var a=typeof t;if("string"===a&&t.length>0)return function(t){if((t=String(t)).length>100)return;var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!c)return;var u=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*s;case"weeks":case"week":case"w":return u*i;case"days":case"day":case"d":return u*o;case"hours":case"hour":case"hrs":case"hr":case"h":return u*r;case"minutes":case"minute":case"mins":case"min":case"m":return u*n;case"seconds":case"second":case"secs":case"sec":case"s":return u*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(t);if("number"===a&&isFinite(t))return u.long?function(t){var i=Math.abs(t);if(i>=o)return c(t,i,o,"day");if(i>=r)return c(t,i,r,"hour");if(i>=n)return c(t,i,n,"minute");if(i>=e)return c(t,i,e,"second");return t+" ms"}(t):function(t){var i=Math.abs(t);if(i>=o)return Math.round(t/o)+"d";if(i>=r)return Math.round(t/r)+"h";if(i>=n)return Math.round(t/n)+"m";if(i>=e)return Math.round(t/e)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},641:function(t,e,n){"use strict";var r=n(307),o=n(115),i=n(498),s=n(609),c=n(333),u=n(618),a=n(736);const __=a.__,f=()=>(0,o.jN)("wpcom_block_editor_tags_education_link_click"),l=(0,c.createHigherOrderComponent)((t=>e=>{const n=(0,i.Iu)();return"post_tag"!==e.slug?(0,r.createElement)(t,e):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(t,e),(0,r.createElement)(s.ExternalLink,{href:n("https://wordpress.com/support/posts/tags/",window.tagsEducationLocale),onClick:f},__("Build your audience with tags","full-site-editing")))}),"addTagsEducationLink");(0,u.addFilter)("editor.PostTaxonomyType","full-site-editing/add-tags-education-link",l)},115:function(t,e,n){"use strict";n.d(e,{jN:function(){return r.jN}});n(694),n(209),n(377);var r=n(792);n(722)},377:function(t,e,n){"use strict";let r=null;"undefined"!=typeof window&&window.addEventListener("popstate",(function(){r=null}))},792:function(t,e,n){"use strict";n.d(e,{jN:function(){return h}});var r=n(699),o=n(898),i=(n(421),n(819)),s=(n(377),n(209),n(358));n(694);const c=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];let u,a=Promise.resolve();function f(t){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(t))}"undefined"!=typeof document&&(a=(0,o.ve)("//stats.wp.com/w.js?63"));const l=new r.EventEmitter;function h(t,e){if(e=e||{},(0,s.Z)('Record event "%s" called with props %o',t,e),t.startsWith("calypso_")||(0,i.includes)(c,t)){if(u){const t=u(e);e={...e,...t}}e=(0,i.omitBy)(e,(t=>void 0===t)),(0,s.Z)('Recording event "%s" with actual props %o',t,e),f(["recordEvent",t,e]),l.emit("record-event",t,e)}else(0,s.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},722:function(t,e,n){"use strict";n(792)},209:function(t,e,n){"use strict";n(4)},358:function(t,e,n){"use strict";var r=n(49),o=n.n(r);e.Z=o()("calypso:analytics")},694:function(t,e,n){"use strict";n(358)},4:function(t,e,n){"use strict";n(32)},849:function(t,e,n){"use strict";n.d(e,{bU:function(){return f}});var r=n(896),o=n(307),i=n(333),s=n(736),c=n(196);const u=(0,c.createContext)(null);function a(){var t,e;return function(t=""){if(!t)return"";const e=t.toLowerCase();return(["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"].includes(e)?e.replace("_","-"):e.replace(/([-_].*)$/i,""))||"en"}(s.getLocaleData?null===(t=s.getLocaleData())||void 0===t||null===(e=t[""])||void 0===e?void 0:e.language:"")}function f(){const t=(0,c.useContext)(u),e=!!t,[n,r]=(0,c.useState)(a());return(0,c.useEffect)((()=>{if(!e)return r(a()),s.subscribe((()=>{r(a())}))}),[e]),t||n||"en"}(0,i.createHigherOrderComponent)((t=>e=>{const n=f();return(0,o.createElement)(t,(0,r.Z)({locale:n},e))}),"withLocale")},655:function(t,e,n){"use strict";n.d(e,{GG:function(){return r},iT:function(){return o},xn:function(){return i},Xb:function(){return s},hI:function(){return c},mL:function(){return u},vS:function(){return a},_r:function(){return f}});const r=["en","ja","es","pt","fr","pt-br"],o=["en","fr","de"],i=["en","fr","de"],s={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},c=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],u=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],a=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],f=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},498:function(t,e,n){"use strict";n.d(e,{Iu:function(){return m}});var r=n(896),o=n(307),i=n(333),s=n(196),c=n(849),u=n(655);const a="http://__domain__.invalid",f=(t,e=[])=>(n,r)=>(e.includes(r)&&"en"!==r&&n.pathname.substr(0,r.length+2)!=="/"+r+"/"&&(n.host=`${u.Xb[r]||r}.${t}`),n),l=(t,e=[],n=null)=>(r,o)=>(r.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(r.pathname)&&(e=[]),r.pathname=t+r.pathname,e.includes(o)&&"en"!==o&&(r.pathname=o+r.pathname),r),h=(t=[],e=null)=>(n,r)=>("object"==typeof e&&e instanceof RegExp&&!e.test(n.pathname)||t.includes(r)&&"en"!==r&&(n.pathname=r+n.pathname),n),p={"wordpress.com/support/":h(u.hI),"wordpress.com/forums/":h(u.mL),"wordpress.com/blog/":h(u.GG,/^\/blog\/?$/),"wordpress.com/tos/":h(u.vS),"wordpress.com/wp-admin/":f("wordpress.com",u.vS),"wordpress.com/wp-login.php":f("wordpress.com",u.vS),"jetpack.com":f("jetpack.com",u._r),"en.support.wordpress.com":l("/support",u.hI),"en.blog.wordpress.com":l("/blog",u.GG,/^\/$/),"en.forums.wordpress.com":l("/forums",u.mL),"automattic.com/privacy/":h(u.iT),"automattic.com/cookies/":h(u.xn),"wordpress.com/help/contact/":(t,e,n)=>n?t:(t.pathname=t.pathname.replace(/\/help\//,"/support/"),h(u.hI)(t,e)),"wordpress.com":(t,e)=>/^\/(checkout|me)(\/|$)/.test(t.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(t.pathname)?t:h(u.vS)(t,e),"wordpress.com/theme/":(t,e,n)=>n?t:h(u.vS)(t,e),"wordpress.com/themes/":(t,e,n)=>n?t:h(u.vS)(t,e)};function d(t,e,n=!0){let r;try{r=new URL(String(t),a)}catch(s){return t}if(r.origin===a)return t;r.protocol="https:",r.hostname="",r.pathname.endsWith(".php")||(r.pathname=(r.pathname+"/").replace(/\/+$/,"/"));const o=r.pathname.substr(0,1+r.pathname.indexOf("/",1));if("en.wordpress.com"===r.host&&(r.host="wordpress.com"),"/"+e+"/"===o)return t;const i=[r.host,r.host+o,r.host+r.pathname];for(let c=i.length-1;c>=0;c--)if(i[c]in p)return p[i[c]](r,e,n).href;return t}function m(){const t=(0,c.bU)();return(0,s.useCallback)(((e,n,r)=>d(e,n||t,r)),[t])}(0,i.createHigherOrderComponent)((t=>e=>{const n=m();return(0,o.createElement)(t,(0,r.Z)({localizeUrl:n},e))}),"withLocalizeUrl")},340:function(t,e,n){"use strict";n.d(e,{hg:function(){return c},lZ:function(){return u},_W:function(){return f},Yt:function(){return l}});var r=n(49);const o=n.n(r)()("lib/load-script/callback-handler"),i=new Map;function s(){return i}function c(t){return s().has(t)}function u(t,e){const n=s();c(t)?(o(`Adding a callback for an existing script from "${t}"`),n.get(t).add(e)):(o(`Adding a callback for a new script from "${t}"`),n.set(t,new Set([e])))}function a(t,e=null){const n=s(),r=n.get(t);if(r){o(`Executing callbacks for "${t}"`+(null===e?" with success":` with error "${e}"`)),r.forEach((t=>{"function"==typeof t&&t(e)})),n.delete(t)}}function f(){const t=this.getAttribute("src");o(`Handling successful request for "${t}"`),a(t),this.onload=null}function l(){const t=this.getAttribute("src");o(`Handling failed request for "${t}"`),a(t,new Error(`Failed to load script "${t}"`)),this.onerror=null}},606:function(t,e,n){"use strict";n.d(e,{C:function(){return c},k:function(){return u}});var r=n(49),o=n.n(r),i=n(340);const s=o()("lib/load-script/dom-operations");function c(t){s(`Creating script element for "${t}"`);const e=document.createElement("script");return e.src=t,e.type="text/javascript",e.async=!0,e.onload=i._W,e.onerror=i.Yt,e}function u(t){s("Attaching element to head"),document.head.appendChild(t)}},898:function(t,e,n){"use strict";n.d(e,{ve:function(){return c}});var r=n(49),o=n.n(r),i=n(340),s=n(606);o()("package/load-script");function c(t,e){if(!(0,i.hg)(t)&&(0,s.k)((0,s.C)(t)),"function"!=typeof e)return new Promise(((e,n)=>{(0,i.lZ)(t,(t=>{null===t?e():n(t)}))}));(0,i.lZ)(t,e)}},49:function(t,e,n){e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(r++,"%c"===t&&(o=r))})),e.splice(o,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(n){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(n){}!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG);return t},e.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=n(632)(e);const{formatters:r}=t.exports;r.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},632:function(t,e,n){t.exports=function(t){function e(t){let n,o,i,s=null;function c(...t){if(!c.enabled)return;const r=c,o=Number(new Date),i=o-(n||o);r.diff=i,r.prev=n,r.curr=o,n=o,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let s=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((n,o)=>{if("%%"===n)return"%";s++;const i=e.formatters[o];if("function"==typeof i){const e=t[s];n=i.call(r,e),t.splice(s,1),s--}return n})),e.formatArgs.call(r,t);(r.log||e.log).apply(r,t)}return c.namespace=t,c.useColors=e.useColors(),c.color=e.selectColor(t),c.extend=r,c.destroy=e.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(o!==e.namespaces&&(o=e.namespaces,i=e.enabled(t)),i),set:t=>{s=t}}),"function"==typeof e.init&&e.init(c),c}function r(t,n){const r=e(this.namespace+(void 0===n?":":n)+t);return r.log=this.log,r}function o(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},e.disable=function(){const t=[...e.names.map(o),...e.skips.map(o).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let n;e.save(t),e.namespaces=t,e.names=[],e.skips=[];const r=("string"==typeof t?t:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(t=r[n].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;let n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=n(378),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((n=>{e[n]=t[n]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return e.colors[Math.abs(n)%e.colors.length]},e.enable(e.load()),e}},196:function(t){"use strict";t.exports=window.React},819:function(t){"use strict";t.exports=window.lodash},609:function(t){"use strict";t.exports=window.wp.components},333:function(t){"use strict";t.exports=window.wp.compose},307:function(t){"use strict";t.exports=window.wp.element},618:function(t){"use strict";t.exports=window.wp.hooks},736:function(t){"use strict";t.exports=window.wp.i18n},896:function(t,e,n){"use strict";function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}n.d(e,{Z:function(){return r}})}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};!function(){"use strict";n.r(r);n(641)}(),window.EditingToolkit=r}();
1
+ !function(){var t={421:function(t,e){"use strict";var n=decodeURIComponent,r=encodeURIComponent,o=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(t,e){try{return e(t)}catch(n){return t}}},699:function(t){"use strict";var e,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function i(){i.init.call(this)}t.exports=i,t.exports.once=function(t,e){return new Promise((function(n,r){function o(){void 0!==i&&t.removeListener("error",i),n([].slice.call(arguments))}var i;"error"!==e&&(i=function(n){t.removeListener(e,o),r(n)},t.once("error",i)),t.once(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function c(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?i.defaultMaxListeners:t._maxListeners}function a(t,e,n,r){var o,i,s,a;if(c(n),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),i=t._events),s=i[e]),void 0===s)s=i[e]=n,++t._eventsCount;else if("function"==typeof s?s=i[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=u(t))>0&&s.length>o&&!s.warned){s.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=t,f.type=e,f.count=s.length,a=f,console&&console.warn&&console.warn(a)}return t}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},o=f.bind(r);return o.listener=n,r.wrapFn=o,o}function h(t,e,n){var r=t._events;if(void 0===r)return[];var o=r[e];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(o):d(o,o.length)}function p(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function d(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},i.prototype.getMaxListeners=function(){return u(this)},i.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var o="error"===t,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var c=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw c.context=s,c}var u=i[t];if(void 0===u)return!1;if("function"==typeof u)r(u,this,e);else{var a=u.length,f=d(u,a);for(n=0;n<a;++n)r(f[n],this,e)}return!0},i.prototype.addListener=function(t,e){return a(this,t,e,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(t,e){return a(this,t,e,!0)},i.prototype.once=function(t,e){return c(e),this.on(t,l(this,t,e)),this},i.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,l(this,t,e)),this},i.prototype.removeListener=function(t,e){var n,r,o,i,s;if(c(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===e||n[i].listener===e){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,o),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,s||e)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},i.prototype.listeners=function(t){return h(this,t,!0)},i.prototype.rawListeners=function(t){return h(this,t,!1)},i.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},495:function(t,e,n){"use strict";var r=n(212),o=n(561);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=i,i.prototype.update=function(t,e){if(t=r.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-n,this.endian);for(var o=0;o<t.length;o+=this._delta32)this._update(t,o,o+this._delta32)}return this},i.prototype.digest=function(t){return this.update(this._pad()),o(null===this.pending),this._digest(t)},i.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,r=new Array(n+this.padLength);r[0]=128;for(var o=1;o<n;o++)r[o]=0;if(t<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)r[o++]=0;r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=t>>>24&255,r[o++]=t>>>16&255,r[o++]=t>>>8&255,r[o++]=255&t}else for(r[o++]=255&t,r[o++]=t>>>8&255,r[o++]=t>>>16&255,r[o++]=t>>>24&255,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,i=8;i<this.padLength;i++)r[o++]=0;return r}},32:function(t,e,n){"use strict";var r=n(212),o=n(495),i=n(713),s=n(561),c=r.sum32,u=r.sum32_4,a=r.sum32_5,f=i.ch32,l=i.maj32,h=i.s0_256,p=i.s1_256,d=i.g0_256,m=i.g1_256,g=o.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function w(){if(!(this instanceof w))return new w;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(w,g),t.exports=w,w.blockSize=512,w.outSize=256,w.hmacStrength=192,w.padLength=64,w.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=u(m(n[r-2]),n[r-7],d(n[r-15]),n[r-16]);var o=this.h[0],i=this.h[1],g=this.h[2],v=this.h[3],w=this.h[4],y=this.h[5],C=this.h[6],_=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var b=a(_,p(w),f(w,y,C),this.k[r],n[r]),F=c(h(o),l(o,i,g));_=C,C=y,y=w,w=c(v,b),v=g,g=i,i=o,o=c(b,F)}this.h[0]=c(this.h[0],o),this.h[1]=c(this.h[1],i),this.h[2]=c(this.h[2],g),this.h[3]=c(this.h[3],v),this.h[4]=c(this.h[4],w),this.h[5]=c(this.h[5],y),this.h[6]=c(this.h[6],C),this.h[7]=c(this.h[7],_)},w.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(t,e,n){"use strict";var r=n(212).rotr32;function o(t,e,n){return t&e^~t&n}function i(t,e,n){return t&e^t&n^e&n}function s(t,e,n){return t^e^n}e.ft_1=function(t,e,n,r){return 0===t?o(e,n,r):1===t||3===t?s(e,n,r):2===t?i(e,n,r):void 0},e.ch32=o,e.maj32=i,e.p32=s,e.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22)},e.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25)},e.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},212:function(t,e,n){"use strict";var r=n(561),o=n(285);function i(t,e){return 55296==(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function s(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function c(t){return 1===t.length?"0"+t:t}function u(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=o,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),o=0;o<t.length;o+=2)n.push(parseInt(t[o]+t[o+1],16))}else for(var r=0,o=0;o<t.length;o++){var s=t.charCodeAt(o);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):i(t,o)?(s=65536+((1023&s)<<10)+(1023&t.charCodeAt(++o)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(o=0;o<t.length;o++)n[o]=0|t[o];return n},e.toHex=function(t){for(var e="",n=0;n<t.length;n++)e+=c(t[n].toString(16));return e},e.htonl=s,e.toHex32=function(t,e){for(var n="",r=0;r<t.length;r++){var o=t[r];"little"===e&&(o=s(o)),n+=u(o.toString(16))}return n},e.zero2=c,e.zero8=u,e.join32=function(t,e,n,o){var i=n-e;r(i%4==0);for(var s=new Array(i/4),c=0,u=e;c<s.length;c++,u+=4){var a;a="big"===o?t[u]<<24|t[u+1]<<16|t[u+2]<<8|t[u+3]:t[u+3]<<24|t[u+2]<<16|t[u+1]<<8|t[u],s[c]=a>>>0}return s},e.split32=function(t,e){for(var n=new Array(4*t.length),r=0,o=0;r<t.length;r++,o+=4){var i=t[r];"big"===e?(n[o]=i>>>24,n[o+1]=i>>>16&255,n[o+2]=i>>>8&255,n[o+3]=255&i):(n[o+3]=i>>>24,n[o+2]=i>>>16&255,n[o+1]=i>>>8&255,n[o]=255&i)}return n},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,n){return t+e+n>>>0},e.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},e.sum32_5=function(t,e,n,r,o){return t+e+n+r+o>>>0},e.sum64=function(t,e,n,r){var o=t[e],i=r+t[e+1]>>>0,s=(i<r?1:0)+n+o;t[e]=s>>>0,t[e+1]=i},e.sum64_hi=function(t,e,n,r){return(e+r>>>0<e?1:0)+t+n>>>0},e.sum64_lo=function(t,e,n,r){return e+r>>>0},e.sum64_4_hi=function(t,e,n,r,o,i,s,c){var u=0,a=e;return u+=(a=a+r>>>0)<e?1:0,u+=(a=a+i>>>0)<i?1:0,t+n+o+s+(u+=(a=a+c>>>0)<c?1:0)>>>0},e.sum64_4_lo=function(t,e,n,r,o,i,s,c){return e+r+i+c>>>0},e.sum64_5_hi=function(t,e,n,r,o,i,s,c,u,a){var f=0,l=e;return f+=(l=l+r>>>0)<e?1:0,f+=(l=l+i>>>0)<i?1:0,f+=(l=l+c>>>0)<c?1:0,t+n+o+s+u+(f+=(l=l+a>>>0)<a?1:0)>>>0},e.sum64_5_lo=function(t,e,n,r,o,i,s,c,u,a){return e+r+i+c+a>>>0},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},e.shr64_hi=function(t,e,n){return t>>>n},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},285:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},561:function(t){function e(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=e,e.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)}},378:function(t){var e=1e3,n=60*e,r=60*n,o=24*r,i=7*o,s=365.25*o;function c(t,e,n,r){var o=e>=1.5*n;return Math.round(t/n)+" "+r+(o?"s":"")}t.exports=function(t,u){u=u||{};var a=typeof t;if("string"===a&&t.length>0)return function(t){if((t=String(t)).length>100)return;var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!c)return;var u=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*s;case"weeks":case"week":case"w":return u*i;case"days":case"day":case"d":return u*o;case"hours":case"hour":case"hrs":case"hr":case"h":return u*r;case"minutes":case"minute":case"mins":case"min":case"m":return u*n;case"seconds":case"second":case"secs":case"sec":case"s":return u*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(t);if("number"===a&&isFinite(t))return u.long?function(t){var i=Math.abs(t);if(i>=o)return c(t,i,o,"day");if(i>=r)return c(t,i,r,"hour");if(i>=n)return c(t,i,n,"minute");if(i>=e)return c(t,i,e,"second");return t+" ms"}(t):function(t){var i=Math.abs(t);if(i>=o)return Math.round(t/o)+"d";if(i>=r)return Math.round(t/r)+"h";if(i>=n)return Math.round(t/n)+"m";if(i>=e)return Math.round(t/e)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},641:function(t,e,n){"use strict";var r=n(307),o=n(115),i=n(498),s=n(609),c=n(333),u=n(618),a=n(736);const __=a.__,f=()=>(0,o.jN)("wpcom_block_editor_tags_education_link_click"),l=(0,c.createHigherOrderComponent)((t=>e=>{const n=(0,i.Iu)();return"post_tag"!==e.slug?(0,r.createElement)(t,e):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(t,e),(0,r.createElement)(s.ExternalLink,{href:n("https://wordpress.com/support/posts/tags/",window.tagsEducationLocale),onClick:f},__("Build your audience with tags","full-site-editing")))}),"addTagsEducationLink");(0,u.addFilter)("editor.PostTaxonomyType","full-site-editing/add-tags-education-link",l)},115:function(t,e,n){"use strict";n.d(e,{jN:function(){return r.jN}});n(694),n(209),n(377);var r=n(792);n(722)},377:function(t,e,n){"use strict";let r=null;"undefined"!=typeof window&&window.addEventListener("popstate",(function(){r=null}))},792:function(t,e,n){"use strict";n.d(e,{jN:function(){return h}});var r=n(699),o=n(898),i=(n(421),n(819)),s=(n(377),n(209),n(358));n(694);const c=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];let u,a=Promise.resolve();function f(t){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(t))}"undefined"!=typeof document&&(a=(0,o.ve)("//stats.wp.com/w.js?63"));const l=new r.EventEmitter;function h(t,e){if(e=e||{},(0,s.Z)('Record event "%s" called with props %o',t,e),t.startsWith("calypso_")||(0,i.includes)(c,t)){if(u){const t=u(e);e={...e,...t}}e=(0,i.omitBy)(e,(t=>void 0===t)),(0,s.Z)('Recording event "%s" with actual props %o',t,e),f(["recordEvent",t,e]),l.emit("record-event",t,e)}else(0,s.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},722:function(t,e,n){"use strict";n(792)},209:function(t,e,n){"use strict";n(4)},358:function(t,e,n){"use strict";var r=n(49),o=n.n(r);e.Z=o()("calypso:analytics")},694:function(t,e,n){"use strict";n(358)},4:function(t,e,n){"use strict";n(32)},849:function(t,e,n){"use strict";n.d(e,{bU:function(){return f}});var r=n(896),o=n(307),i=n(333),s=n(736),c=n(196);const u=(0,c.createContext)(null);function a(){var t,e;return function(t=""){if(!t)return"";const e=t.toLowerCase();return(["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"].includes(e)?e.replace("_","-"):e.replace(/([-_].*)$/i,""))||"en"}(s.getLocaleData?null===(t=s.getLocaleData())||void 0===t||null===(e=t[""])||void 0===e?void 0:e.language:"")}function f(){const t=(0,c.useContext)(u),e=!!t,[n,r]=(0,c.useState)(a());return(0,c.useEffect)((()=>{if(!e)return r(a()),s.subscribe((()=>{r(a())}))}),[e]),t||n||"en"}(0,i.createHigherOrderComponent)((t=>e=>{const n=f();return(0,o.createElement)(t,(0,r.Z)({locale:n},e))}),"withLocale")},655:function(t,e,n){"use strict";n.d(e,{GG:function(){return r},iT:function(){return o},xn:function(){return i},Xb:function(){return s},hI:function(){return c},mL:function(){return u},vS:function(){return a},_r:function(){return f}});const r=["en","ja","es","pt","fr","pt-br"],o=["en","fr","de","es"],i=["en","fr","de","es"],s={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},c=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],u=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],a=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],f=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},498:function(t,e,n){"use strict";n.d(e,{Iu:function(){return m}});var r=n(896),o=n(307),i=n(333),s=n(196),c=n(849),u=n(655);const a="http://__domain__.invalid",f=(t,e=[])=>(n,r)=>(e.includes(r)&&"en"!==r&&n.pathname.substr(0,r.length+2)!=="/"+r+"/"&&(n.host=`${u.Xb[r]||r}.${t}`),n),l=(t,e=[],n=null)=>(r,o)=>(r.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(r.pathname)&&(e=[]),r.pathname=t+r.pathname,e.includes(o)&&"en"!==o&&(r.pathname=o+r.pathname),r),h=(t=[],e=null)=>(n,r)=>("object"==typeof e&&e instanceof RegExp&&!e.test(n.pathname)||t.includes(r)&&"en"!==r&&(n.pathname=r+n.pathname),n),p={"wordpress.com/support/":h(u.hI),"wordpress.com/forums/":h(u.mL),"wordpress.com/blog/":h(u.GG,/^\/blog\/?$/),"wordpress.com/tos/":h(u.vS),"wordpress.com/wp-admin/":f("wordpress.com",u.vS),"wordpress.com/wp-login.php":f("wordpress.com",u.vS),"jetpack.com":f("jetpack.com",u._r),"en.support.wordpress.com":l("/support",u.hI),"en.blog.wordpress.com":l("/blog",u.GG,/^\/$/),"en.forums.wordpress.com":l("/forums",u.mL),"automattic.com/privacy/":h(u.iT),"automattic.com/cookies/":h(u.xn),"wordpress.com/help/contact/":(t,e,n)=>n?t:(t.pathname=t.pathname.replace(/\/help\//,"/support/"),h(u.hI)(t,e)),"wordpress.com":(t,e)=>/^\/(checkout|me)(\/|$)/.test(t.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(t.pathname)?t:h(u.vS)(t,e),"wordpress.com/theme/":(t,e,n)=>n?t:h(u.vS)(t,e),"wordpress.com/themes/":(t,e,n)=>n?t:h(u.vS)(t,e)};function d(t,e,n=!0){let r;try{r=new URL(String(t),a)}catch(s){return t}if(r.origin===a)return t;r.protocol="https:",r.hostname="",r.pathname.endsWith(".php")||(r.pathname=(r.pathname+"/").replace(/\/+$/,"/"));const o=r.pathname.substr(0,1+r.pathname.indexOf("/",1));if("en.wordpress.com"===r.host&&(r.host="wordpress.com"),"/"+e+"/"===o)return t;const i=[r.host,r.host+o,r.host+r.pathname];for(let c=i.length-1;c>=0;c--)if(i[c]in p)return p[i[c]](r,e,n).href;return t}function m(){const t=(0,c.bU)();return(0,s.useCallback)(((e,n,r)=>d(e,n||t,r)),[t])}(0,i.createHigherOrderComponent)((t=>e=>{const n=m();return(0,o.createElement)(t,(0,r.Z)({localizeUrl:n},e))}),"withLocalizeUrl")},340:function(t,e,n){"use strict";n.d(e,{hg:function(){return c},lZ:function(){return u},_W:function(){return f},Yt:function(){return l}});var r=n(49);const o=n.n(r)()("lib/load-script/callback-handler"),i=new Map;function s(){return i}function c(t){return s().has(t)}function u(t,e){const n=s();c(t)?(o(`Adding a callback for an existing script from "${t}"`),n.get(t).add(e)):(o(`Adding a callback for a new script from "${t}"`),n.set(t,new Set([e])))}function a(t,e=null){const n=s(),r=n.get(t);if(r){o(`Executing callbacks for "${t}"`+(null===e?" with success":` with error "${e}"`)),r.forEach((t=>{"function"==typeof t&&t(e)})),n.delete(t)}}function f(){const t=this.getAttribute("src");o(`Handling successful request for "${t}"`),a(t),this.onload=null}function l(){const t=this.getAttribute("src");o(`Handling failed request for "${t}"`),a(t,new Error(`Failed to load script "${t}"`)),this.onerror=null}},606:function(t,e,n){"use strict";n.d(e,{C:function(){return c},k:function(){return u}});var r=n(49),o=n.n(r),i=n(340);const s=o()("lib/load-script/dom-operations");function c(t){s(`Creating script element for "${t}"`);const e=document.createElement("script");return e.src=t,e.type="text/javascript",e.async=!0,e.onload=i._W,e.onerror=i.Yt,e}function u(t){s("Attaching element to head"),document.head.appendChild(t)}},898:function(t,e,n){"use strict";n.d(e,{ve:function(){return c}});var r=n(49),o=n.n(r),i=n(340),s=n(606);o()("package/load-script");function c(t,e){if(!(0,i.hg)(t)&&(0,s.k)((0,s.C)(t)),"function"!=typeof e)return new Promise(((e,n)=>{(0,i.lZ)(t,(t=>{null===t?e():n(t)}))}));(0,i.lZ)(t,e)}},49:function(t,e,n){e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(r++,"%c"===t&&(o=r))})),e.splice(o,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(n){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(n){}!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG);return t},e.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=n(632)(e);const{formatters:r}=t.exports;r.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},632:function(t,e,n){t.exports=function(t){function e(t){let n,o,i,s=null;function c(...t){if(!c.enabled)return;const r=c,o=Number(new Date),i=o-(n||o);r.diff=i,r.prev=n,r.curr=o,n=o,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let s=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((n,o)=>{if("%%"===n)return"%";s++;const i=e.formatters[o];if("function"==typeof i){const e=t[s];n=i.call(r,e),t.splice(s,1),s--}return n})),e.formatArgs.call(r,t);(r.log||e.log).apply(r,t)}return c.namespace=t,c.useColors=e.useColors(),c.color=e.selectColor(t),c.extend=r,c.destroy=e.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(o!==e.namespaces&&(o=e.namespaces,i=e.enabled(t)),i),set:t=>{s=t}}),"function"==typeof e.init&&e.init(c),c}function r(t,n){const r=e(this.namespace+(void 0===n?":":n)+t);return r.log=this.log,r}function o(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},e.disable=function(){const t=[...e.names.map(o),...e.skips.map(o).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let n;e.save(t),e.namespaces=t,e.names=[],e.skips=[];const r=("string"==typeof t?t:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(t=r[n].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;let n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=n(378),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((n=>{e[n]=t[n]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return e.colors[Math.abs(n)%e.colors.length]},e.enable(e.load()),e}},196:function(t){"use strict";t.exports=window.React},819:function(t){"use strict";t.exports=window.lodash},609:function(t){"use strict";t.exports=window.wp.components},333:function(t){"use strict";t.exports=window.wp.compose},307:function(t){"use strict";t.exports=window.wp.element},618:function(t){"use strict";t.exports=window.wp.hooks},736:function(t){"use strict";t.exports=window.wp.i18n},896:function(t,e,n){"use strict";function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}n.d(e,{Z:function(){return r}})}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};!function(){"use strict";n.r(r);n(641)}(),window.EditingToolkit=r}();
whats-new/dist/whats-new.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-react-i18n'), 'version' => '78fdae3493b7d30699590d379c25a469');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-react-i18n'), 'version' => 'a4d30f190621561b7096bb6ca2407d53');
whats-new/dist/whats-new.js CHANGED
@@ -1 +1 @@
1
- !function(){var t={2680:function(t,e,n){"use strict";var r=n(7286),o=n(9429),i=o(r("String.prototype.indexOf"));t.exports=function(t,e){var n=r(t,!!e);return"function"==typeof n&&i(t,".prototype.")>-1?o(n):n}},9429:function(t,e,n){"use strict";var r=n(4090),o=n(7286),i=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(s,i),a=o("%Object.getOwnPropertyDescriptor%",!0),u=o("%Object.defineProperty%",!0),p=o("%Math.max%");if(u)try{u({},"a",{value:1})}catch(l){u=null}t.exports=function(t){var e=c(r,s,arguments);if(a&&u){var n=a(e,"length");n.configurable&&u(e,"length",{value:1+p(0,t.length-(arguments.length-1))})}return e};var f=function(){return c(r,i,arguments)};u?u(t.exports,"apply",{value:f}):t.exports.apply=f},3421:function(t,e){"use strict";var n=decodeURIComponent,r=encodeURIComponent,o=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(t,e){try{return e(t)}catch(n){return t}}},2699:function(t){"use strict";var e,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function i(){i.init.call(this)}t.exports=i,t.exports.once=function(t,e){return new Promise((function(n,r){function o(){void 0!==i&&t.removeListener("error",i),n([].slice.call(arguments))}var i;"error"!==e&&(i=function(n){t.removeListener(e,o),r(n)},t.once("error",i)),t.once(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function c(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function a(t){return void 0===t._maxListeners?i.defaultMaxListeners:t._maxListeners}function u(t,e,n,r){var o,i,s,u;if(c(n),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),i=t._events),s=i[e]),void 0===s)s=i[e]=n,++t._eventsCount;else if("function"==typeof s?s=i[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=a(t))>0&&s.length>o&&!s.warned){s.warned=!0;var p=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");p.name="MaxListenersExceededWarning",p.emitter=t,p.type=e,p.count=s.length,u=p,console&&console.warn&&console.warn(u)}return t}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},o=p.bind(r);return o.listener=n,r.wrapFn=o,o}function l(t,e,n){var r=t._events;if(void 0===r)return[];var o=r[e];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(o):d(o,o.length)}function h(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function d(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},i.prototype.getMaxListeners=function(){return a(this)},i.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var o="error"===t,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var c=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw c.context=s,c}var a=i[t];if(void 0===a)return!1;if("function"==typeof a)r(a,this,e);else{var u=a.length,p=d(a,u);for(n=0;n<u;++n)r(p[n],this,e)}return!0},i.prototype.addListener=function(t,e){return u(this,t,e,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(t,e){return u(this,t,e,!0)},i.prototype.once=function(t,e){return c(e),this.on(t,f(this,t,e)),this},i.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,f(this,t,e)),this},i.prototype.removeListener=function(t,e){var n,r,o,i,s;if(c(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===e||n[i].listener===e){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,o),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,s||e)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},i.prototype.listeners=function(t){return l(this,t,!0)},i.prototype.rawListeners=function(t){return l(this,t,!1)},i.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):h.call(t,e)},i.prototype.listenerCount=h,i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},7795:function(t){"use strict";var e="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,r=Object.prototype.toString,o="[object Function]";t.exports=function(t){var i=this;if("function"!=typeof i||r.call(i)!==o)throw new TypeError(e+i);for(var s,c=n.call(arguments,1),a=function(){if(this instanceof s){var e=i.apply(this,c.concat(n.call(arguments)));return Object(e)===e?e:this}return i.apply(t,c.concat(n.call(arguments)))},u=Math.max(0,i.length-c.length),p=[],f=0;f<u;f++)p.push("$"+f);if(s=Function("binder","return function ("+p.join(",")+"){ return binder.apply(this,arguments); }")(a),i.prototype){var l=function(){};l.prototype=i.prototype,s.prototype=new l,l.prototype=null}return s}},4090:function(t,e,n){"use strict";var r=n(7795);t.exports=Function.prototype.bind||r},7286:function(t,e,n){"use strict";var r,o=SyntaxError,i=Function,s=TypeError,c=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(e){}},a=Object.getOwnPropertyDescriptor;if(a)try{a({},"")}catch(x){a=null}var u=function(){throw new s},p=a?function(){try{return u}catch(t){try{return a(arguments,"callee").get}catch(e){return u}}}():u,f=n(2636)(),l=Object.getPrototypeOf||function(t){return t.__proto__},h={},d="undefined"==typeof Uint8Array?r:l(Uint8Array),y={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f?l([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?l(l([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?l((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?l((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?l(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":p,"%TypedArray%":d,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},m=function t(e){var n;if("%AsyncFunction%"===e)n=c("async function () {}");else if("%GeneratorFunction%"===e)n=c("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=c("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&(n=l(o.prototype))}return y[e]=n,n},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=n(4090),v=n(3198),b=w.call(Function.call,Array.prototype.concat),_=w.call(Function.apply,Array.prototype.splice),C=w.call(Function.call,String.prototype.replace),S=w.call(Function.call,String.prototype.slice),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,j=function(t){var e=S(t,0,1),n=S(t,-1);if("%"===e&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return C(t,E,(function(t,e,n,o){r[r.length]=n?C(o,P,"$1"):e||t})),r},A=function(t,e){var n,r=t;if(v(g,r)&&(r="%"+(n=g[r])[0]+"%"),v(y,r)){var i=y[r];if(i===h&&(i=m(r)),void 0===i&&!e)throw new s("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new s('"allowMissing" argument must be a boolean');var n=j(t),r=n.length>0?n[0]:"",i=A("%"+r+"%",e),c=i.name,u=i.value,p=!1,f=i.alias;f&&(r=f[0],_(n,b([0,1],f)));for(var l=1,h=!0;l<n.length;l+=1){var d=n[l],m=S(d,0,1),g=S(d,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==d&&h||(p=!0),v(y,c="%"+(r+="."+d)+"%"))u=y[c];else if(null!=u){if(!(d in u)){if(!e)throw new s("base intrinsic for "+t+" exists, but the property is not available.");return}if(a&&l+1>=n.length){var w=a(u,d);u=(h=!!w)&&"get"in w&&!("originalValue"in w.get)?w.get:u[d]}else h=v(u,d),u=u[d];h&&!p&&(y[c]=u)}}return u}},2636:function(t,e,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(6679);t.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},6679:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},3198:function(t,e,n){"use strict";var r=n(4090);t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},4495:function(t,e,n){"use strict";var r=n(212),o=n(9561);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=i,i.prototype.update=function(t,e){if(t=r.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-n,this.endian);for(var o=0;o<t.length;o+=this._delta32)this._update(t,o,o+this._delta32)}return this},i.prototype.digest=function(t){return this.update(this._pad()),o(null===this.pending),this._digest(t)},i.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,r=new Array(n+this.padLength);r[0]=128;for(var o=1;o<n;o++)r[o]=0;if(t<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)r[o++]=0;r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=t>>>24&255,r[o++]=t>>>16&255,r[o++]=t>>>8&255,r[o++]=255&t}else for(r[o++]=255&t,r[o++]=t>>>8&255,r[o++]=t>>>16&255,r[o++]=t>>>24&255,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,i=8;i<this.padLength;i++)r[o++]=0;return r}},8032:function(t,e,n){"use strict";var r=n(212),o=n(4495),i=n(713),s=n(9561),c=r.sum32,a=r.sum32_4,u=r.sum32_5,p=i.ch32,f=i.maj32,l=i.s0_256,h=i.s1_256,d=i.g0_256,y=i.g1_256,m=o.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function w(){if(!(this instanceof w))return new w;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}r.inherits(w,m),t.exports=w,w.blockSize=512,w.outSize=256,w.hmacStrength=192,w.padLength=64,w.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=a(y(n[r-2]),n[r-7],d(n[r-15]),n[r-16]);var o=this.h[0],i=this.h[1],m=this.h[2],g=this.h[3],w=this.h[4],v=this.h[5],b=this.h[6],_=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var C=u(_,h(w),p(w,v,b),this.k[r],n[r]),S=c(l(o),f(o,i,m));_=b,b=v,v=w,w=c(g,C),g=m,m=i,i=o,o=c(C,S)}this.h[0]=c(this.h[0],o),this.h[1]=c(this.h[1],i),this.h[2]=c(this.h[2],m),this.h[3]=c(this.h[3],g),this.h[4]=c(this.h[4],w),this.h[5]=c(this.h[5],v),this.h[6]=c(this.h[6],b),this.h[7]=c(this.h[7],_)},w.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(t,e,n){"use strict";var r=n(212).rotr32;function o(t,e,n){return t&e^~t&n}function i(t,e,n){return t&e^t&n^e&n}function s(t,e,n){return t^e^n}e.ft_1=function(t,e,n,r){return 0===t?o(e,n,r):1===t||3===t?s(e,n,r):2===t?i(e,n,r):void 0},e.ch32=o,e.maj32=i,e.p32=s,e.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22)},e.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25)},e.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},212:function(t,e,n){"use strict";var r=n(9561),o=n(1285);function i(t,e){return 55296==(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function s(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function c(t){return 1===t.length?"0"+t:t}function a(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=o,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),o=0;o<t.length;o+=2)n.push(parseInt(t[o]+t[o+1],16))}else for(var r=0,o=0;o<t.length;o++){var s=t.charCodeAt(o);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):i(t,o)?(s=65536+((1023&s)<<10)+(1023&t.charCodeAt(++o)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(o=0;o<t.length;o++)n[o]=0|t[o];return n},e.toHex=function(t){for(var e="",n=0;n<t.length;n++)e+=c(t[n].toString(16));return e},e.htonl=s,e.toHex32=function(t,e){for(var n="",r=0;r<t.length;r++){var o=t[r];"little"===e&&(o=s(o)),n+=a(o.toString(16))}return n},e.zero2=c,e.zero8=a,e.join32=function(t,e,n,o){var i=n-e;r(i%4==0);for(var s=new Array(i/4),c=0,a=e;c<s.length;c++,a+=4){var u;u="big"===o?t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3]:t[a+3]<<24|t[a+2]<<16|t[a+1]<<8|t[a],s[c]=u>>>0}return s},e.split32=function(t,e){for(var n=new Array(4*t.length),r=0,o=0;r<t.length;r++,o+=4){var i=t[r];"big"===e?(n[o]=i>>>24,n[o+1]=i>>>16&255,n[o+2]=i>>>8&255,n[o+3]=255&i):(n[o+3]=i>>>24,n[o+2]=i>>>16&255,n[o+1]=i>>>8&255,n[o]=255&i)}return n},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,n){return t+e+n>>>0},e.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},e.sum32_5=function(t,e,n,r,o){return t+e+n+r+o>>>0},e.sum64=function(t,e,n,r){var o=t[e],i=r+t[e+1]>>>0,s=(i<r?1:0)+n+o;t[e]=s>>>0,t[e+1]=i},e.sum64_hi=function(t,e,n,r){return(e+r>>>0<e?1:0)+t+n>>>0},e.sum64_lo=function(t,e,n,r){return e+r>>>0},e.sum64_4_hi=function(t,e,n,r,o,i,s,c){var a=0,u=e;return a+=(u=u+r>>>0)<e?1:0,a+=(u=u+i>>>0)<i?1:0,t+n+o+s+(a+=(u=u+c>>>0)<c?1:0)>>>0},e.sum64_4_lo=function(t,e,n,r,o,i,s,c){return e+r+i+c>>>0},e.sum64_5_hi=function(t,e,n,r,o,i,s,c,a,u){var p=0,f=e;return p+=(f=f+r>>>0)<e?1:0,p+=(f=f+i>>>0)<i?1:0,p+=(f=f+c>>>0)<c?1:0,t+n+o+s+a+(p+=(f=f+u>>>0)<u?1:0)>>>0},e.sum64_5_lo=function(t,e,n,r,o,i,s,c,a,u){return e+r+i+c+u>>>0},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},e.shr64_hi=function(t,e,n){return t>>>n},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},1285:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},2779:function(){},9561:function(t){function e(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=e,e.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)}},1378:function(t){var e=1e3,n=60*e,r=60*n,o=24*r,i=7*o,s=365.25*o;function c(t,e,n,r){var o=e>=1.5*n;return Math.round(t/n)+" "+r+(o?"s":"")}t.exports=function(t,a){a=a||{};var u=typeof t;if("string"===u&&t.length>0)return function(t){if((t=String(t)).length>100)return;var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!c)return;var a=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*s;case"weeks":case"week":case"w":return a*i;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(t);if("number"===u&&isFinite(t))return a.long?function(t){var i=Math.abs(t);if(i>=o)return c(t,i,o,"day");if(i>=r)return c(t,i,r,"hour");if(i>=n)return c(t,i,n,"minute");if(i>=e)return c(t,i,e,"second");return t+" ms"}(t):function(t){var i=Math.abs(t);if(i>=o)return Math.round(t/o)+"d";if(i>=r)return Math.round(t/r)+"h";if(i>=n)return Math.round(t/n)+"m";if(i>=e)return Math.round(t/e)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},9500:function(t,e,n){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,s=r&&Map.prototype.forEach,c="function"==typeof Set&&Set.prototype,a=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=c&&a&&"function"==typeof a.get?a.get:null,p=c&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,l="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,y=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,w="function"==typeof BigInt?BigInt.prototype.valueOf:null,v=Object.getOwnPropertySymbols,b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,_="function"==typeof Symbol&&"object"==typeof Symbol.iterator,C=Object.prototype.propertyIsEnumerable,S=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null),E=n(3260).custom,P=E&&O(E)?E:null,j="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function A(t,e,n){var r="double"===(n.quoteStyle||e)?'"':"'";return r+t+r}function x(t){return String(t).replace(/"/g,"&quot;")}function q(t){return!("[object Array]"!==Z(t)||j&&"object"==typeof t&&j in t)}function O(t){if(_)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!b)return!1;try{return b.call(t),!0}catch(e){}return!1}t.exports=function t(e,n,r,o){var c=n||{};if(k(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(k(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=!k(c,"customInspect")||c.customInspect;if("boolean"!=typeof a)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(k(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return N(e,c);if("number"==typeof e)return 0===e?1/0/e>0?"0":"-0":String(e);if("bigint"==typeof e)return String(e)+"n";var y=void 0===c.depth?5:c.depth;if(void 0===r&&(r=0),r>=y&&y>0&&"object"==typeof e)return q(e)?"[Array]":"[Object]";var v=function(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;n=Array(t.indent+1).join(" ")}return{base:n,prev:Array(e+1).join(n)}}(c,r);if(void 0===o)o=[];else if(L(o,e)>=0)return"[Circular]";function C(e,n,i){if(n&&(o=o.slice()).push(n),i){var s={depth:c.depth};return k(c,"quoteStyle")&&(s.quoteStyle=c.quoteStyle),t(e,s,r+1,o)}return t(e,c,r+1,o)}if("function"==typeof e){var E=function(t){if(t.name)return t.name;var e=g.call(m.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),F=U(e,C);return"[Function"+(E?": "+E:" (anonymous)")+"]"+(F.length>0?" { "+F.join(", ")+" }":"")}if(O(e)){var R=_?String(e).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):b.call(e);return"object"!=typeof e||_?R:I(R)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var D="<"+String(e.nodeName).toLowerCase(),W=e.attributes||[],B=0;B<W.length;B++)D+=" "+W[B].name+"="+A(x(W[B].value),"double",c);return D+=">",e.childNodes&&e.childNodes.length&&(D+="..."),D+="</"+String(e.nodeName).toLowerCase()+">"}if(q(e)){if(0===e.length)return"[]";var V=U(e,C);return v&&!function(t){for(var e=0;e<t.length;e++)if(L(t[e],"\n")>=0)return!1;return!0}(V)?"["+T(V,v)+"]":"[ "+V.join(", ")+" ]"}if(function(t){return!("[object Error]"!==Z(t)||j&&"object"==typeof t&&j in t)}(e)){var z=U(e,C);return 0===z.length?"["+String(e)+"]":"{ ["+String(e)+"] "+z.join(", ")+" }"}if("object"==typeof e&&a){if(P&&"function"==typeof e[P])return e[P]();if("function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{u.call(t)}catch(D){return!0}return t instanceof Map}catch(e){}return!1}(e)){var G=[];return s.call(e,(function(t,n){G.push(C(n,e,!0)+" => "+C(t,e))})),M("Map",i.call(e),G,v)}if(function(t){if(!u||!t||"object"!=typeof t)return!1;try{u.call(t);try{i.call(t)}catch(e){return!0}return t instanceof Set}catch(n){}return!1}(e)){var H=[];return p.call(e,(function(t){H.push(C(t,e))})),M("Set",u.call(e),H,v)}if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{l.call(t,l)}catch(D){return!0}return t instanceof WeakMap}catch(e){}return!1}(e))return $("WeakMap");if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t,l);try{f.call(t,f)}catch(D){return!0}return t instanceof WeakSet}catch(e){}return!1}(e))return $("WeakSet");if(function(t){if(!h||!t||"object"!=typeof t)return!1;try{return h.call(t),!0}catch(e){}return!1}(e))return $("WeakRef");if(function(t){return!("[object Number]"!==Z(t)||j&&"object"==typeof t&&j in t)}(e))return I(C(Number(e)));if(function(t){if(!t||"object"!=typeof t||!w)return!1;try{return w.call(t),!0}catch(e){}return!1}(e))return I(C(w.call(e)));if(function(t){return!("[object Boolean]"!==Z(t)||j&&"object"==typeof t&&j in t)}(e))return I(d.call(e));if(function(t){return!("[object String]"!==Z(t)||j&&"object"==typeof t&&j in t)}(e))return I(C(String(e)));if(!function(t){return!("[object Date]"!==Z(t)||j&&"object"==typeof t&&j in t)}(e)&&!function(t){return!("[object RegExp]"!==Z(t)||j&&"object"==typeof t&&j in t)}(e)){var J=U(e,C),Q=S?S(e)===Object.prototype:e instanceof Object||e.constructor===Object,K=e instanceof Object?"":"null prototype",X=!Q&&j&&Object(e)===e&&j in e?Z(e).slice(8,-1):K?"Object":"",Y=(Q||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(X||K?"["+[].concat(X||[],K||[]).join(": ")+"] ":"");return 0===J.length?Y+"{}":v?Y+"{"+T(J,v)+"}":Y+"{ "+J.join(", ")+" }"}return String(e)};var F=Object.prototype.hasOwnProperty||function(t){return t in this};function k(t,e){return F.call(t,e)}function Z(t){return y.call(t)}function L(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}function N(t,e){if(t.length>e.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return N(t.slice(0,e.maxStringLength),e)+r}return A(t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,R),"single",e)}function R(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+e.toString(16).toUpperCase()}function I(t){return"Object("+t+")"}function $(t){return t+" { ? }"}function M(t,e,n,r){return t+" ("+e+") {"+(r?T(n,r):n.join(", "))+"}"}function T(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+t.join(","+n)+"\n"+e.prev}function U(t,e){var n=q(t),r=[];if(n){r.length=t.length;for(var o=0;o<t.length;o++)r[o]=k(t,o)?e(t[o],t):""}var i,s="function"==typeof v?v(t):[];if(_){i={};for(var c=0;c<s.length;c++)i["$"+s[c]]=s[c]}for(var a in t)k(t,a)&&(n&&String(Number(a))===a&&a<t.length||_&&i["$"+a]instanceof Symbol||(/[^\w$]/.test(a)?r.push(e(a,t)+": "+e(t[a],t)):r.push(a+": "+e(t[a],t))));if("function"==typeof v)for(var u=0;u<s.length;u++)C.call(t,s[u])&&r.push("["+e(s[u])+"]: "+e(t[s[u]],t));return r}},8650:function(t){var e,n=window.ProgressEvent,r=!!n;try{e=new n("loaded"),r="loaded"===e.type,e=null}catch(o){r=!1}t.exports=r?n:"function"==typeof document.createEvent?function(t,e){var n=document.createEvent("Event");return n.initEvent(t,!1,!1),e?(n.lengthComputable=Boolean(e.lengthComputable),n.loaded=Number(e.loaded)||0,n.total=Number(e.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}:function(t,e){var n=document.createEventObject();return n.type=t,e?(n.lengthComputable=Boolean(e.lengthComputable),n.loaded=Number(e.loaded)||0,n.total=Number(e.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}},5527:function(t){"use strict";var e=String.prototype.replace,n=/%20/g,r="RFC1738",o="RFC3986";t.exports={default:o,formatters:{RFC1738:function(t){return e.call(t,n,"+")},RFC3986:function(t){return String(t)}},RFC1738:r,RFC3986:o}},9126:function(t,e,n){"use strict";var r=n(6845),o=n(9166),i=n(5527);t.exports={formats:i,parse:o,stringify:r}},9166:function(t,e,n){"use strict";var r=n(2493),o=Object.prototype.hasOwnProperty,i=Array.isArray,s={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},a=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},u=function(t,e,n,r){if(t){var i=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/g,c=n.depth>0&&/(\[[^[\]]*])/.exec(i),u=c?i.slice(0,c.index):i,p=[];if(u){if(!n.plainObjects&&o.call(Object.prototype,u)&&!n.allowPrototypes)return;p.push(u)}for(var f=0;n.depth>0&&null!==(c=s.exec(i))&&f<n.depth;){if(f+=1,!n.plainObjects&&o.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;p.push(c[1])}return c&&p.push("["+i.slice(c.index)+"]"),function(t,e,n,r){for(var o=r?e:a(e,n),i=t.length-1;i>=0;--i){var s,c=t[i];if("[]"===c&&n.parseArrays)s=[].concat(o);else{s=n.plainObjects?Object.create(null):{};var u="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,p=parseInt(u,10);n.parseArrays||""!==u?!isNaN(p)&&c!==u&&String(p)===u&&p>=0&&n.parseArrays&&p<=n.arrayLimit?(s=[])[p]=o:s[u]=o:s={0:o}}o=s}return o}(p,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return s;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?s.charset:t.charset;return{allowDots:void 0===t.allowDots?s.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:s.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:s.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:s.comma,decoder:"function"==typeof t.decoder?t.decoder:s.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:s.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:s.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:s.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:s.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var p="string"==typeof t?function(t,e){var n,u={},p=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,f=e.parameterLimit===1/0?void 0:e.parameterLimit,l=p.split(e.delimiter,f),h=-1,d=e.charset;if(e.charsetSentinel)for(n=0;n<l.length;++n)0===l[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[n]?d="utf-8":"utf8=%26%2310003%3B"===l[n]&&(d="iso-8859-1"),h=n,n=l.length);for(n=0;n<l.length;++n)if(n!==h){var y,m,g=l[n],w=g.indexOf("]="),v=-1===w?g.indexOf("="):w+1;-1===v?(y=e.decoder(g,s.decoder,d,"key"),m=e.strictNullHandling?null:""):(y=e.decoder(g.slice(0,v),s.decoder,d,"key"),m=r.maybeMap(a(g.slice(v+1),e),(function(t){return e.decoder(t,s.decoder,d,"value")}))),m&&e.interpretNumericEntities&&"iso-8859-1"===d&&(m=c(m)),g.indexOf("[]=")>-1&&(m=i(m)?[m]:m),o.call(u,y)?u[y]=r.combine(u[y],m):u[y]=m}return u}(t,n):t,f=n.plainObjects?Object.create(null):{},l=Object.keys(p),h=0;h<l.length;++h){var d=l[h],y=u(d,p[d],n,"string"==typeof t);f=r.merge(f,y,n)}return!0===n.allowSparse?f:r.compact(f)}},6845:function(t,e,n){"use strict";var r=n(4294),o=n(2493),i=n(5527),s=Object.prototype.hasOwnProperty,c={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},a=Array.isArray,u=Array.prototype.push,p=function(t,e){u.apply(t,a(e)?e:[e])},f=Date.prototype.toISOString,l=i.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:l,formatter:i.formatters[l],indices:!1,serializeDate:function(t){return f.call(t)},skipNulls:!1,strictNullHandling:!1},d=function t(e,n,i,s,c,u,f,l,d,y,m,g,w,v,b){var _,C=e;if(b.has(e))throw new RangeError("Cyclic object value");if("function"==typeof f?C=f(n,C):C instanceof Date?C=y(C):"comma"===i&&a(C)&&(C=o.maybeMap(C,(function(t){return t instanceof Date?y(t):t}))),null===C){if(s)return u&&!w?u(n,h.encoder,v,"key",m):n;C=""}if("string"==typeof(_=C)||"number"==typeof _||"boolean"==typeof _||"symbol"==typeof _||"bigint"==typeof _||o.isBuffer(C))return u?[g(w?n:u(n,h.encoder,v,"key",m))+"="+g(u(C,h.encoder,v,"value",m))]:[g(n)+"="+g(String(C))];var S,E=[];if(void 0===C)return E;if("comma"===i&&a(C))S=[{value:C.length>0?C.join(",")||null:void 0}];else if(a(f))S=f;else{var P=Object.keys(C);S=l?P.sort(l):P}for(var j=0;j<S.length;++j){var A=S[j],x="object"==typeof A&&void 0!==A.value?A.value:C[A];if(!c||null!==x){var q=a(C)?"function"==typeof i?i(n,A):n:n+(d?"."+A:"["+A+"]");b.set(e,!0);var O=r();p(E,t(x,q,i,s,c,u,f,l,d,y,m,g,w,v,O))}}return E};t.exports=function(t,e){var n,o=t,u=function(t){if(!t)return h;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||h.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==t.format){if(!s.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=i.formatters[n],o=h.filter;return("function"==typeof t.filter||a(t.filter))&&(o=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===t.allowDots?h.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:h.charsetSentinel,delimiter:void 0===t.delimiter?h.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:h.encode,encoder:"function"==typeof t.encoder?t.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:h.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:h.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:h.strictNullHandling}}(e);"function"==typeof u.filter?o=(0,u.filter)("",o):a(u.filter)&&(n=u.filter);var f,l=[];if("object"!=typeof o||null===o)return"";f=e&&e.arrayFormat in c?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var y=c[f];n||(n=Object.keys(o)),u.sort&&n.sort(u.sort);for(var m=r(),g=0;g<n.length;++g){var w=n[g];u.skipNulls&&null===o[w]||p(l,d(o[w],w,y,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,m))}var v=l.join(u.delimiter),b=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),v.length>0?b+v:""}},2493:function(t,e,n){"use strict";var r=n(5527),o=Object.prototype.hasOwnProperty,i=Array.isArray,s=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),c=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:c,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var o=e[r],s=o.obj[o.prop],c=Object.keys(s),a=0;a<c.length;++a){var u=c[a],p=s[u];"object"==typeof p&&null!==p&&-1===n.indexOf(p)&&(e.push({obj:s,prop:u}),n.push(p))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(o){return r}},encode:function(t,e,n,o,i){if(0===t.length)return t;var c=t;if("symbol"==typeof t?c=Symbol.prototype.toString.call(t):"string"!=typeof t&&(c=String(t)),"iso-8859-1"===n)return escape(c).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var a="",u=0;u<c.length;++u){var p=c.charCodeAt(u);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===r.RFC1738&&(40===p||41===p)?a+=c.charAt(u):p<128?a+=s[p]:p<2048?a+=s[192|p>>6]+s[128|63&p]:p<55296||p>=57344?a+=s[224|p>>12]+s[128|p>>6&63]+s[128|63&p]:(u+=1,p=65536+((1023&p)<<10|1023&c.charCodeAt(u)),a+=s[240|p>>18]+s[128|p>>12&63]+s[128|p>>6&63]+s[128|63&p])}return a},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)},merge:function t(e,n,r){if(!n)return e;if("object"!=typeof n){if(i(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var s=e;return i(e)&&!i(n)&&(s=c(e,r)),i(e)&&i(n)?(n.forEach((function(n,i){if(o.call(e,i)){var s=e[i];s&&"object"==typeof s&&n&&"object"==typeof n?e[i]=t(s,n,r):e.push(n)}else e[i]=n})),e):Object.keys(n).reduce((function(e,i){var s=n[i];return o.call(e,i)?e[i]=t(e[i],s,r):e[i]=s,e}),s)}}},4294:function(t,e,n){"use strict";var r=n(7286),o=n(2680),i=n(9500),s=r("%TypeError%"),c=r("%WeakMap%",!0),a=r("%Map%",!0),u=o("WeakMap.prototype.get",!0),p=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),l=o("Map.prototype.get",!0),h=o("Map.prototype.set",!0),d=o("Map.prototype.has",!0),y=function(t,e){for(var n,r=t;null!==(n=r.next);r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n};t.exports=function(){var t,e,n,r={assert:function(t){if(!r.has(t))throw new s("Side channel does not contain "+i(t))},get:function(r){if(c&&r&&("object"==typeof r||"function"==typeof r)){if(t)return u(t,r)}else if(a){if(e)return l(e,r)}else if(n)return function(t,e){var n=y(t,e);return n&&n.value}(n,r)},has:function(r){if(c&&r&&("object"==typeof r||"function"==typeof r)){if(t)return f(t,r)}else if(a){if(e)return d(e,r)}else if(n)return function(t,e){return!!y(t,e)}(n,r);return!1},set:function(r,o){c&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new c),p(t,r,o)):a?(e||(e=new a),h(e,r,o)):(n||(n={key:{},next:null}),function(t,e,n){var r=y(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}}(n,r,o))}};return r}},9239:function(t,e,n){"object"==typeof window&&window.whatsNewAssetsUrl&&(n.p=window.whatsNewAssetsUrl)},8814:function(t,e,n){"use strict";var r=n(9818);const o={whatsNew:!1};(0,r.registerStore)("automattic/whats-new",{reducer:function(t=o,e){return"TOGGLE_FEATURE"===e.type?{whatsNew:!t.whatsNew}:t},actions:{toggleWhatsNew:()=>({type:"TOGGLE_FEATURE"})},selectors:{isWhatsNewActive:t=>t.whatsNew}})},5840:function(t,e,n){"use strict";var r=n(9307),o=(n(9239),n(6115)),i=n(3585),s=n(5609),c=n(5736),a=n(8817),u=n(9196);const __=c.__;function p(){const[t,e]=(0,u.useState)(!1);return(0,r.useEffect)((()=>{t&&(0,o.jN)("calypso_block_editor_whats_new_open")}),[t]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.Fill,{name:"ToolsMoreMenuGroup"},(0,r.createElement)(s.MenuItem,{onClick:()=>e(!0)},__("What's new","full-site-editing"))),t&&(0,r.createElement)(i.Z,{onClose:()=>e(!1)}))}(0,a.registerPlugin)("whats-new",{render:()=>(0,r.createElement)(p,null)})},6115:function(t,e,n){"use strict";n.d(e,{jN:function(){return r.jN}});n(1694),n(6209),n(9377);var r=n(9792);n(3722)},9377:function(t,e,n){"use strict";let r=null;"undefined"!=typeof window&&window.addEventListener("popstate",(function(){r=null}))},9792:function(t,e,n){"use strict";n.d(e,{jN:function(){return l}});var r=n(2699),o=n(4898),i=(n(3421),n(2819)),s=(n(9377),n(6209),n(9358));n(1694);const c=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];let a,u=Promise.resolve();function p(t){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(t))}"undefined"!=typeof document&&(u=(0,o.ve)("//stats.wp.com/w.js?63"));const f=new r.EventEmitter;function l(t,e){if(e=e||{},(0,s.Z)('Record event "%s" called with props %o',t,e),t.startsWith("calypso_")||(0,i.includes)(c,t)){if(a){const t=a(e);e={...e,...t}}e=(0,i.omitBy)(e,(t=>void 0===t)),(0,s.Z)('Recording event "%s" with actual props %o',t,e),p(["recordEvent",t,e]),f.emit("record-event",t,e)}else(0,s.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(t,e,n){"use strict";n(9792)},6209:function(t,e,n){"use strict";n(4)},9358:function(t,e,n){"use strict";var r=n(8049),o=n.n(r);e.Z=o()("calypso:analytics")},1694:function(t,e,n){"use strict";n(9358)},4:function(t,e,n){"use strict";n(8032)},849:function(t,e,n){"use strict";n.d(e,{bU:function(){return p}});var r=n(7896),o=n(9307),i=n(4333),s=n(5736),c=n(9196);const a=(0,c.createContext)(null);function u(){var t,e;return function(t=""){if(!t)return"";const e=t.toLowerCase();return(["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"].includes(e)?e.replace("_","-"):e.replace(/([-_].*)$/i,""))||"en"}(s.getLocaleData?null===(t=s.getLocaleData())||void 0===t||null===(e=t[""])||void 0===e?void 0:e.language:"")}function p(){const t=(0,c.useContext)(a),e=!!t,[n,r]=(0,c.useState)(u());return(0,c.useEffect)((()=>{if(!e)return r(u()),s.subscribe((()=>{r(u())}))}),[e]),t||n||"en"}(0,i.createHigherOrderComponent)((t=>e=>{const n=p();return(0,o.createElement)(t,(0,r.Z)({locale:n},e))}),"withLocale")},3340:function(t,e,n){"use strict";n.d(e,{hg:function(){return c},lZ:function(){return a},_W:function(){return p},Yt:function(){return f}});var r=n(8049);const o=n.n(r)()("lib/load-script/callback-handler"),i=new Map;function s(){return i}function c(t){return s().has(t)}function a(t,e){const n=s();c(t)?(o(`Adding a callback for an existing script from "${t}"`),n.get(t).add(e)):(o(`Adding a callback for a new script from "${t}"`),n.set(t,new Set([e])))}function u(t,e=null){const n=s(),r=n.get(t);if(r){o(`Executing callbacks for "${t}"`+(null===e?" with success":` with error "${e}"`)),r.forEach((t=>{"function"==typeof t&&t(e)})),n.delete(t)}}function p(){const t=this.getAttribute("src");o(`Handling successful request for "${t}"`),u(t),this.onload=null}function f(){const t=this.getAttribute("src");o(`Handling failed request for "${t}"`),u(t,new Error(`Failed to load script "${t}"`)),this.onerror=null}},5606:function(t,e,n){"use strict";n.d(e,{C:function(){return c},k:function(){return a}});var r=n(8049),o=n.n(r),i=n(3340);const s=o()("lib/load-script/dom-operations");function c(t){s(`Creating script element for "${t}"`);const e=document.createElement("script");return e.src=t,e.type="text/javascript",e.async=!0,e.onload=i._W,e.onerror=i.Yt,e}function a(t){s("Attaching element to head"),document.head.appendChild(t)}},4898:function(t,e,n){"use strict";n.d(e,{ve:function(){return c}});var r=n(8049),o=n.n(r),i=n(3340),s=n(5606);o()("package/load-script");function c(t,e){if(!(0,i.hg)(t)&&(0,s.k)((0,s.C)(t)),"function"!=typeof e)return new Promise(((e,n)=>{(0,i.lZ)(t,(t=>{null===t?e():n(t)}))}));(0,i.lZ)(t,e)}},3585:function(t,e,n){"use strict";var r=n(9307),o=n(849),i=n(5609),s=n(6656),c=n(9196),a=n(1202),u=n(8552),p=n(869);n(2779);e.Z=({onClose:t})=>{const[e,n]=(0,c.useState)(null),__=(0,s.useI18n)().__,f=(0,o.bU)();return(0,c.useEffect)((()=>{const t=(0,a.Z)();t.request=u.ZP,t.req.get({path:`/whats-new/list?_locale=${f}`,apiNamespace:"wpcom/v2"}).then((t=>{n(t)}))}),[f]),e?(0,r.createElement)(i.Guide,{className:"whats-new-guide__main",contentLabel:__("What's New at WordPress.com","full-site-editing"),finishButtonText:__("Close","full-site-editing"),onFinish:t},e.map(((t,n)=>(0,r.createElement)(p.Z,{pageNumber:n+1,isLastPage:n===e.length-1,description:t.description,heading:t.heading,imageSrc:t.imageSrc,link:t.link})))):null}},869:function(t,e,n){"use strict";var r=n(9307),o=n(6115),i=n(5609),s=n(6656),c=n(9196);e.Z=function({description:t,heading:e,imageSrc:n,isLastPage:a,link:u,pageNumber:p}){const __=(0,s.useI18n)().__;return(0,c.useEffect)((()=>{(0,o.jN)("wpcom_whats_new_slide_view",{slide_number:p,is_last_slide:a})}),[a,p]),(0,r.createElement)(i.GuidePage,{className:"whats-new-page__container"},(0,r.createElement)("div",{className:"whats-new-page__text"},e&&(0,r.createElement)("h1",{className:"whats-new-page__heading"},e),(0,r.createElement)("div",{className:"whats-new-page__description"},t&&(0,r.createElement)("p",null,t),u&&(0,r.createElement)(i.Button,{className:"whats-new-page__link",href:u,isTertiary:!0,isLink:!0,target:"_blank"},__("Learn more","full-site-editing")))),(0,r.createElement)("div",{className:"whats-new-page__visual"},n&&(0,r.createElement)("img",{src:n,alt:t,"aria-hidden":"true",className:"whats-new-page__image"})))}},8552:function(t,e,n){"use strict";var r=n(8049),o=n.n(r),i=n(8650),s=n.n(i),c=n(8767),a=n(2884),u=n.n(a);const p=o()("wpcom-proxy-request"),f="https://public-api.wordpress.com",l=window.location.protocol+"//"+window.location.host,h=(()=>{let t=!1;try{window.postMessage({toString:function(){t=!0}},"*")}catch(e){}return t})(),d=(()=>{try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(t){return!1}})();let y,m=null,g=!1;const w={},v=!!window.ProgressEvent&&!!window.FormData;p('using "origin": %o',l);const b=(t,e)=>{const n=Object.assign({},t);p("request(%o)",n),m||P();const r=(0,c.Z)();n.callback=r,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=v,n.method=String(n.method||"GET").toUpperCase(),p("params object: %o",n);const o=new window.XMLHttpRequest;if(o.params=n,w[r]=o,"function"==typeof e){let t=!1;const n=n=>{if(t)return;t=!0;const r=n.response||o.response;p("body: ",r),p("headers: ",n.headers),e(null,r,n.headers)},r=n=>{if(t)return;t=!0;const r=n.error||n.err||n;p("error: ",r),p("headers: ",n.headers),e(r,null,n.headers)};o.addEventListener("load",n),o.addEventListener("abort",r),o.addEventListener("error",r)}return"function"==typeof n.onStreamRecord&&delete n.onStreamRecord,g?C(n):(p("buffering API request since proxying <iframe> is not yet loaded"),y.push(n)),o},_=(t,e)=>"function"==typeof e?b(t,e):new Promise(((e,n)=>{b(t,((t,r)=>{t?n(t):e(r)}))}));function C(t){p("sending API request to proxy <iframe> %o",t),t.formData&&function(t){if(!window.chrome||!d)return;for(let e=0;e<t.length;e++){const n=E(t[e][1]);n&&(t[e][1]=new window.File([n],n.name,{type:n.type}))}}(t.formData),m.contentWindow.postMessage(h?JSON.stringify(t):t,f)}function S(t){return t&&"[object File]"===Object.prototype.toString.call(t)}function E(t){return S(t)?t:"object"==typeof t&&S(t.fileContents)?t.fileContents:null}function P(){p("install()"),m&&(p("uninstall()"),window.removeEventListener("message",j),document.body.removeChild(m),g=!1,m=null),y=[],window.addEventListener("message",j),m=document.createElement("iframe"),m.src=f+"/wp-admin/rest-proxy/?v=2.0#"+l,m.style.display="none",document.body.appendChild(m)}function j(t){if(p("onmessage"),t.origin!==f)return void p("ignoring message... %o !== %o",t.origin,f);if(t.source!==m.contentWindow)return void p("ignoring message... iframe elements do not match");let{data:e}=t;if(!e)return p("no `data`, bailing");if("ready"===e)return void function(){if(p('proxy <iframe> "load" event'),g=!0,y){for(let t=0;t<y.length;t++)C(y[t]);y=null}}();if(h&&"string"==typeof e&&(e=JSON.parse(e)),e.upload||e.download)return function(t){p('got "progress" event: %o',t);const e=w[t.callbackId];if(e){const n=new(s())("progress",t);(t.upload?e.upload:e).dispatchEvent(n)}}(e);if(!e.length)return p("`e.data` doesn't appear to be an Array, bailing...");const n=e[e.length-1];if(!(n in w))return p("bailing, no matching request with callback: %o",n);const r=w[n],{params:o}=r,i=e[0];let c=e[1];const a=e[2];if(207===c||delete w[n],o.metaAPI?c="metaAPIupdated"===i?200:500:p("got %o status code for URL: %o",c,o.path),"object"==typeof a&&(a.status=c,l=a["Content-Type"],/^application[/]x-ndjson($|;)/.test(l))){A(r,new Error("stream mode processing is not yet implemented for wpcom-proxy-request"),a)}else{var l;if(c&&2===Math.floor(c/100))!function(t,e,n){const r=new(s())("load");r.data=r.body=r.response=e,r.headers=n,t.dispatchEvent(r)}(r,i,a);else{A(r,u()(o,c,i),a)}}}function A(t,e,n){const r=new(s())("error");r.error=r.err=e,r.headers=n,t.dispatchEvent(r)}e.ZP=_},1202:function(t,e,n){"use strict";n.d(e,{Z:function(){return g}});var r=n(8049),o=n.n(r),i=n(9728),s=n(7114),c=n(35),a=n(8068),u=n(2836),p=n(6870),f=n(2579),l=n(4308),h=n(3818),d=n(781),y=n(3918);const m=o()("wpcom");function g(t,e){if(!(this instanceof g))return new g(t,e);"function"==typeof t&&(e=t,t=null),t&&(m("Token defined: %s…",t.substring(0,6)),this.token=t);this.request=e||((t,e)=>{m("No request handler. Failing."),e(new Error("No request handler provided"))}),this.req=new d.Z(this),this.pinghub=new h.Z(this),this.apiVersion="1.1"}g.prototype.marketing=function(){return new a.Z(this)},g.prototype.me=function(){return new u.Z(this)},g.prototype.domains=function(){return new c.Z(this)},g.prototype.domain=function(t){return new s.Z(t,this)},g.prototype.site=function(t){return new f.Z(t,this)},g.prototype.users=function(){return new l.Z(this)},g.prototype.plans=function(){return new p.Z(this)},g.prototype.batch=function(){return new i.Z(this)},g.prototype.freshlyPressed=function(t,e){return this.req.get("/freshly-pressed",t,e)},g.prototype.sendRequest=function(t,e,n,r){const o="WARN! Don use `sendRequest() anymore. Use `this.req` method.";return console&&console.warn?console.warn(o):console.log(o),y.Z.call(this,t,e,n,r)},g.Batch=i.Z,g.Domain=s.Z,g.Domains=c.Z,g.Marketing=a.Z,g.Me=u.Z,g.Pinghub=h.Z,g.Plans=p.Z,g.Request=d.Z,g.Site=f.Z,g.Users=l.Z,Promise.prototype.timeout||(Promise.prototype.timeout=function(t=3e4){let e;const n=new Promise(((n,r)=>{e=setTimeout((()=>{r(new Error("Action timed out while waiting for response."))}),t)})),r=()=>(clearTimeout(e),this);return Promise.race([this.then(r).catch(r),n])})},9728:function(t,e){"use strict";class n{constructor(t){if(!(this instanceof n))return new n(t);this.wpcom=t,this.urls=[]}add(t){return this.urls.push(t),this}run(t={},e){return"function"==typeof t&&(e=t,t={}),t.urls=this.urls,this.wpcom.req.get("/batch",t,e)}}e.Z=n},6398:function(t,e){"use strict";class n{constructor(t,e){if(!(this instanceof n))return new n(t,e);this._domain=t,this._subpath="/domains/"+this._domain+"/dns",this.wpcom=e}add(t,e,n){return"function"==typeof e&&(n=e,e={}),this.wpcom.req.post(this._subpath+"/add",e,t,n)}delete(t,e,n){return this.wpcom.req.post(this._subpath+"/delete",e,t,n)}}e.Z=n},4449:function(t,e){"use strict";class n{constructor(t,e,r){if(!(this instanceof n))return new n(t,e,r);t&&(this._email=t),this._domain=e,this._subpath="/domains/"+this._domain+"/email/",this.wpcom=r}forward(t,e,n){const r={destination:t};return this.wpcom.req.post(this._subpath+this._email,e,r,n)}add(t,e,n,r){"function"==typeof n&&(r=n,n={});const o={mailbox:t,destination:e};return this.wpcom.req.post(this._subpath+"new",n,o,r)}delete(t,e,n){return this.wpcom.req.del(this._subpath+t+"/delete",e,n)}}e.Z=n},7114:function(t,e,n){"use strict";var r=n(6666),o=n(6398),i=n(4449);const s="/domains/";class c{constructor(t,e){if((0,r.Z)(this,"checkAuthCode",(function(t,e){return this.wpcom.req.get(`${s+encodeURIComponent(this._id)}/inbound-transfer-check-auth-code`,{auth_code:t},e)})),(0,r.Z)(this,"isDomainAvailable",(function(t,e,n){return this.wpcom.req.get(`${s+encodeURIComponent(this._id)}/is-available`,{blog_id:t,apiVersion:"1.3",is_cart_pre_check:e},n)})),!(this instanceof c))return new c(t,e);this._id=t,this.wpcom=e}status(t,e){return this.wpcom.req.get(s+this._id+"/status",t,e)}isAvailable(t,e){return this.wpcom.req.get(s+this._id+"/is-available",t,e)}isMappable(t,e){return this.wpcom.req.get(s+this._id+"/is-mappable",t,e)}canRedirect(t,e,n){const r=s+t+"/"+this._id+"/can-redirect";return this.wpcom.req.get(r,e,n)}emailForwards(t,e){return this.wpcom.req.get(s+this._id+"/email",t,e)}nameserversList(t,e){return this.wpcom.req.get(s+this._id+"/nameservers",t,e)}updateNameservers(t,e,n){const r={nameservers:t};return this.wpcom.req.post(s+this._id+"/nameservers",e,r,n)}dnsList(t,e){return this.wpcom.req.get(s+this._id+"/dns",t,e)}googleAppsList(t,e){return this.wpcom.req.get(s+this._id+"/google-apps",t,e)}resendICANN(t,e){return this.wpcom.req.post(s+this._id+"/resend-icann",t,e)}email(t){return new i.Z(t,this._id,this.wpcom)}dns(){return new o.Z(this._id,this.wpcom)}mappingSetupInfo(t,e,n){return this.wpcom.req.get(s+this._id+"/mapping-setup-info/"+t,e,n)}mappingStatus(t,e){return this.wpcom.req.get(s+this._id+"/mapping-status",t,e)}updateConnectionModeAndGetMappingStatus(t,e,n){const r={mode:t};return this.wpcom.req.post(s+this._id+"/mapping-status",e,r,n)}}e.Z=c},35:function(t,e){"use strict";const n="/domains/";class r{constructor(t){if(!(this instanceof r))return new r(t);this.wpcom=t}suggestions(t,e){return"string"==typeof t&&(t={query:t}),this.wpcom.req.get(n+"suggestions",t,e)}suggestionsExamples(t,e){return this.wpcom.req.get(n+"suggestions/examples",t,e)}supportedCountries(t,e){return this.wpcom.req.get(n+"supported-countries",t,e)}supportedStates(t,e,r){const o=n+"supported-states/"+t;return this.wpcom.req.get(o,e,r)}}e.Z=r},8068:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(5005);class o{constructor(t){if(!(this instanceof o))return new o(t);this.wpcom=t}survey(t,e){return new r.Z(t,e,this.wpcom)}}},5005:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});class r{constructor(t,e,n){if(!t)throw new TypeError("`id` survey is not correctly defined");if(!(this instanceof r))return new r(t,e,n);"object"==typeof e?this.wpcom=e:(this._siteId=e,this.wpcom=n),this._id=t,this._responses={}}setSiteId(t){return this._siteId=t,this}addResponse(t,e){return this._responses=Object.assign({},this._responses,{[t]:e}),this}addResponses(t){return this._responses=Object.assign({},this._responses,t),this}submit(t={},e={},n){return e.survey_id=this._id,e.site_id=e.site_id||this._siteId,e.survey_responses=e.survey_responses||this._responses,this.wpcom.req.post("/marketing/survey",t,e,n)}}},2921:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});const r="/me/connected-applications/";class o{constructor(t,e){if(!(this instanceof o))return new o(t,e);this._id=t,this.wpcom=e}get(t,e){return this.wpcom.req.get(r+this._id,t,e)}delete(t,e){return this.wpcom.req.del(r+this._id+"/delete",t,e)}}},2836:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(2921),o=n(2769),i=n(2695),s=n(7699),c=n(9814);function a(t){if(!(this instanceof a))return new a(t);this.wpcom=t}a.prototype.get=function(t,e){return this.wpcom.req.get("/me",t,e)},a.prototype.billingHistory=function(t,e){return this.wpcom.req.get("/me/billing-history",t,e)},a.prototype.postsList=function(t,e){return this.wpcom.req.get("/me/posts",t,e)},a.prototype.sites=function(t,e){return this.wpcom.req.get("/me/sites",t,e)},a.prototype.likes=function(t,e){return this.wpcom.req.get("/me/likes",t,e)},a.prototype.connectedApps=function(t,e){return this.wpcom.req.get("/me/connected-applications",t,e)},a.prototype.keyringConnections=function(t,e){return this.wpcom.req.get("/me/connections",t,e)},a.prototype.publicizeConnections=function(t,e){return this.wpcom.req.get("/me/publicize-connections",t,e)},a.prototype.settings=function(){return new s.Z(this.wpcom)},a.prototype.connectedApp=function(t){return new r.Z(t,this.wpcom)},a.prototype.publicizeConnection=function(t){return new i.Z(t,this.wpcom)},a.prototype.twoStep=function(){return new c.Z(this.wpcom)},a.prototype.keyringConnection=function(t){return new o.Z(t,this.wpcom)}},2769:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});const r="/me/connections/";class o{constructor(t,e){if(!(this instanceof o))return new o(t,e);this._id=t,this.wpcom=e}get(t,e){return this.wpcom.req.get({path:r+this._id,apiNamespace:"wpcom/v2"},t,e)}delete(t,e){return this.wpcom.req.get({path:r+this._id,apiNamespace:"wpcom/v2",method:"DELETE"},t,e)}}},2695:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});const r="/me/publicize-connections/";class o{constructor(t,e){if(!(this instanceof o))return new o(t,e);this._id=t,this.wpcom=e}get(t,e){return this.wpcom.req.get(r+this._id,t,e)}add(t,e,n){return this.wpcom.req.post(r+"new",t,e,n)}update(t,e,n){return this.wpcom.req.put(r+this._id,t,e,n)}delete(t,e){return this.wpcom.req.del(r+this._id+"/delete",t,e)}}},7699:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(142),o=n(9283);function i(t){if(!(this instanceof i))return new i(t);this.wpcom=t}i.prototype.get=function(t,e){return this.wpcom.req.get("/me/settings",t,e)},i.prototype.update=function(t,e,n){return this.wpcom.req.put("/me/settings/",t,e,n)},i.prototype.profileLinks=function(){return new o.Z(this.wpcom)},i.prototype.password=function(){return new r.Z(this.wpcom)}},142:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});class r{constructor(t){if(!(this instanceof r))return new r(t);this.wpcom=t}validate(t,e,n){return this.wpcom.req.post("/me/settings/password/validate",e,{password:t},n)}}},9283:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});const r="/me/settings/profile-links";function o(t){if(!(this instanceof o))return new o(t);this.wpcom=t}o.prototype.get=function(t,e){return this.wpcom.req.get(r,t,e)},o.prototype.mine=o.prototype.get,o.prototype.add=function(t,e,n){"function"==typeof e&&(n=e,e={}),t instanceof Array||(t=[t]),e.apiVersion="1.2";return this.wpcom.req.post("/me/settings/profile-links/new",e,{links:t},n)},o.prototype.del=function(t,e,n){const o=r+"/"+t+"/delete";return this.wpcom.req.del(o,e,n)},o.prototype.delete=o.prototype.del},9814:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(4086);class o{constructor(t){if(!(this instanceof o))return new o(t);this.wpcom=t}get(t,e){return this.wpcom.req.get("/me/two-step/",t,e)}sms(){return new r.Z(this.wpcom)}}},4086:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});class r{constructor(t){if(!(this instanceof r))return new r(t);this.wpcom=t}send(t,e){return this.wpcom.req.post("/me/two-step/sms/new",t,e)}}},6870:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});const r="/plans";class o{constructor(t){if(!(this instanceof o))return new o(t);this.wpcom=t}list(t,e){return this.wpcom.req.get(r,t,e)}features(t,e){return this.wpcom.req.get("/plans/features",t,e)}}},209:function(t,e){"use strict";e.Z=[{name:"categoriesList",subpath:"categories"},{name:"commentsList",subpath:"comments"},{name:"domainsList",subpath:"domains"},{name:"embedsList",subpath:"embeds"},{name:"followsList",subpath:"follows"},{name:"mediaList",subpath:"media"},{name:"pageTemplates",subpath:"page-templates"},{name:"pluginsList",subpath:"plugins"},{name:"postsList",subpath:"posts"},{name:"postTypesList",subpath:"post-types"},{name:"shortcodesList",subpath:"shortcodes"},{name:"stats",subpath:"stats"},{name:"statsClicks",subpath:"stats/clicks"},{name:"statsCommentFollowers",subpath:"stats/comment-followers"},{name:"statsComments",subpath:"stats/comments"},{name:"statsCountryViews",subpath:"stats/country-views"},{name:"statsFollowers",subpath:"stats/followers"},{name:"statsInsights",subpath:"stats/insights"},{name:"statsPublicize",subpath:"stats/publicize"},{name:"statsReferrers",subpath:"stats/referrers"},{name:"statsSearchTerms",subpath:"stats/search-terms"},{name:"statsStreak",subpath:"stats/streak"},{name:"statsSummary",subpath:"stats/summary"},{name:"statsTags",subpath:"stats/tags"},{name:"statsTopAuthors",subpath:"stats/top-authors"},{name:"statsTopPosts",subpath:"stats/top-posts"},{name:"statsVideoPlays",subpath:"stats/video-plays"},{name:"statsVisits",subpath:"stats/visits"},{name:"tagsList",subpath:"tags"},{name:"usersList",subpath:"users"},{name:"wpcomPluginsList",subpath:"wpcom-plugins"}]},8729:function(t,e){"use strict";e.Z=[{name:"likesList",subpath:"likes"},{name:"subscribersList",subpath:"subscribers"}]},3388:function(t,e,n){"use strict";function r(t,e,n){if(!e)throw new Error("`site id` is not correctly defined");if(!(this instanceof r))return new r(t,e,n);this.wpcom=n,this._sid=e,this._slug=t}n.d(e,{Z:function(){return r}}),r.prototype.slug=function(t){this._slug=t},r.prototype.get=function(t,e){const n="/sites/"+this._sid+"/categories/slug:"+this._slug;return this.wpcom.req.get(n,t,e)},r.prototype.add=function(t,e,n){const r="/sites/"+this._sid+"/categories/new";return this.wpcom.req.post(r,t,e,n)},r.prototype.update=function(t,e,n){const r="/sites/"+this._sid+"/categories/slug:"+this._slug;return this.wpcom.req.put(r,t,e,n)},r.prototype.delete=r.prototype.del=function(t,e){const n="/sites/"+this._sid+"/categories/slug:"+this._slug+"/delete";return this.wpcom.req.del(n,t,e)}},1832:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(7369);function o(t,e,n,r){if(!n)throw new Error("`site id` is not correctly defined");if(!(this instanceof o))return new o(t,e,n,r);this.wpcom=r,this._cid=t,this._pid=e,this._sid=n}o.prototype.get=function(t,e){const n="/sites/"+this._sid+"/comments/"+this._cid;return this.wpcom.req.get(n,t,e)},o.prototype.replies=function(t,e){const n="/sites/"+this._sid+"/posts/"+this._pid+"/replies/";return this.wpcom.req.get(n,t,e)},o.prototype.add=function(t,e,n){void 0===n&&(void 0===e?(e=t,t={}):"function"==typeof e&&(n=e,e=t,t={})),e="string"==typeof e?{content:e}:e;const r="/sites/"+this._sid+"/posts/"+this._pid+"/replies/new";return this.wpcom.req.post(r,t,e,n)},o.prototype.update=function(t,e,n){"function"==typeof e&&(n=e,e=t,t={}),e="string"==typeof e?{content:e}:e;const r="/sites/"+this._sid+"/comments/"+this._cid;return this.wpcom.req.put(r,t,e,n)},o.prototype.reply=function(t,e,n){"function"==typeof e&&(n=e,e=t,t={}),e="string"==typeof e?{content:e}:e;const r="/sites/"+this._sid+"/comments/"+this._cid+"/replies/new";return this.wpcom.req.post(r,t,e,n)},o.prototype.del=o.prototype.delete=function(t,e){const n="/sites/"+this._sid+"/comments/"+this._cid+"/delete";return this.wpcom.req.del(n,t,e)},o.prototype.like=function(){return(0,r.Z)(this._cid,this._sid,this.wpcom)},o.prototype.likesList=function(t,e){const n="/sites/"+this._sid+"/comments/"+this._cid+"/likes";return this.wpcom.req.get(n,t,e)}},7369:function(t,e,n){"use strict";function r(t,e,n){if(!e)throw new Error("`site id` is not correctly defined");if(!t)throw new Error("`comment id` is not correctly defined");if(!(this instanceof r))return new r(t,e,n);this.wpcom=n,this._cid=t,this._sid=e}n.d(e,{Z:function(){return r}}),r.prototype.mine=r.prototype.state=function(t,e){const n="/sites/"+this._sid+"/comments/"+this._cid+"/likes/mine";return this.wpcom.req.get(n,t,e)},r.prototype.add=function(t,e){const n="/sites/"+this._sid+"/comments/"+this._cid+"/likes/new";return this.wpcom.req.post(n,t,e)},r.prototype.del=r.prototype.delete=function(t,e){const n="/sites/"+this._sid+"/comments/"+this._cid+"/likes/mine/delete";return this.wpcom.req.del(n,t,e)}},2096:function(t,e){"use strict";class n{constructor(t,e){if(!t)throw new Error("`site id` is not correctly defined");if(!(this instanceof n))return new n(t,e);this.wpcom=e,this._sid=t,this.path=`/sites/${this._sid}/vouchers`}list(t={},e){return t.apiNamespace="wpcom/v2",this.wpcom.req.get(this.path,t,e)}get(t,e={},n){return e.apiNamespace="wpcom/v2",this.wpcom.req.get(`${this.path}/${t}`,e,n)}assign(t,e={},n){return e.apiNamespace="wpcom/v2",this.wpcom.req.post(`${this.path}/${t}/assign`,e,{},n)}}e.Z=n},7569:function(t,e){"use strict";class n{constructor(t,e){if(!(this instanceof n))return new n(t,e);this._sid=t,this.path=`/sites/${this._sid}/domains`,this.wpcom=e}getPrimary(t,e){return this.wpcom.req.get(`${this.path}/primary`,t,e)}setPrimary(t,e){return this.wpcom.req.put(`${this.path}/primary`,{},{domain:t},e)}getRedirect(t,e){return this.wpcom.req.get(`${this.path}/redirect`,t,e)}setRedirect(t,e){return"string"==typeof t&&(t={location:t}),this.wpcom.req.put(`${this.path}/redirect`,{},t,e)}}e.Z=n},8447:function(t,e,n){"use strict";function r(t,e){if(!t)throw new Error("`site id` is not correctly defined");if(!(this instanceof r))return new r(t,e);this.wpcom=e,this._sid=t}n.d(e,{Z:function(){return r}}),r.prototype.mine=r.prototype.state=function(t,e){const n="/sites/"+this._sid+"/follows/mine";return this.wpcom.req.get(n,t,e)},r.prototype.follow=r.prototype.add=function(t,e){const n="/sites/"+this._sid+"/follows/new";return this.wpcom.req.put(n,t,null,e)},r.prototype.unfollow=r.prototype.del=function(t,e){const n="/sites/"+this._sid+"/follows/mine/delete";return this.wpcom.req.del(n,t,null,e)}},2579:function(t,e,n){"use strict";var r=n(8049),o=n.n(r),i=n(209),s=n(3388),c=n(1832),a=n(2096),u=n(7569),p=n(8447),f=n(8837),l=n(361),h=n(3164),d=n(7187),y=n(150),m=n(5489),g=n(1986),w=n(1753),v=n(4866),b=n(9426);const _=o()("wpcom:site");class C{constructor(t,e){if(!(this instanceof C))return new C(t,e);this.wpcom=e,_("set %o site id",t),this._id=encodeURIComponent(t),this.path=`/sites/${this._id}`}get(t,e){return this.wpcom.req.get(this.path,t,e)}post(t){return new h.Z(t,this._id,this.wpcom)}addPost(t,e){return new h.Z(null,this._id,this.wpcom).add(t,e)}deletePost(t,e){return new h.Z(t,this._id,this.wpcom).delete(e)}media(t){return new f.Z(t,this._id,this.wpcom)}addMediaFiles(t,e,n){return new f.Z(null,this._id,this.wpcom).addFiles(t,e,n)}addMediaUrls(t,e,n){return new f.Z(null,this._id,this.wpcom).addUrls(t,e,n)}deleteMedia(t,e){return new f.Z(t,this._id,this.wpcom).del(e)}comment(t){return new c.Z(t,null,this._id,this.wpcom)}follow(){return new p.Z(this._id,this.wpcom)}plugin(t){return new l.Z(t,this._id,this.wpcom)}wpcomPlugin(t){return new v.Z(t,this._id,this.wpcom)}category(t){return new s.Z(t,this._id,this.wpcom)}tag(t){return new m.Z(t,this._id,this.wpcom)}taxonomy(t){return new g.Z(t,this._id,this.wpcom)}creditVouchers(){return new a.Z(this._id,this.wpcom)}postType(t){return new d.Z(t,this._id,this.wpcom)}settings(){return new y.Z(this._id,this.wpcom)}domain(){return new u.Z(this._id,this.wpcom)}postCounts(t="post",e,n){return"function"==typeof e&&(n=e,e={}),this.wpcom.req.get(`${this.path}/post-counts/${t}`,e,n)}renderShortcode(t,e,n){if("string"!=typeof t)throw new TypeError("expected a url String");return"function"==typeof e&&(n=e,e={}),(e=e||{}).shortcode=t,this.wpcom.req.get(`${this.path}/shortcodes/render`,e,n)}renderEmbed(t,e,n){if("string"!=typeof t)throw new TypeError("expected an embed String");return"function"==typeof e&&(n=e,e={}),(e=e||{}).embed_url=t,this.wpcom.req.get(`${this.path}/embeds/render`,e,n)}statsReferrersSpamNew(t,e){const n=`${this.path}/stats/referrers/spam/new`;return this.wpcom.req.post(n,{domain:t},null,e)}statsReferrersSpamDelete(t,e){const n=`${this.path}/stats/referrers/spam/delete`;return this.wpcom.req.post(n,{domain:t},null,e)}statsVideo(t,e,n){const r=`${this.path}/stats/video/${t}`;return"function"==typeof e&&(n=e,e={}),this.wpcom.req.get(r,e,n)}statsPostViews(t,e,n){const r=`${this.path}/stats/post/${t}`;return"function"==typeof e&&(n=e,e={}),this.wpcom.req.get(r,e,n)}wordAds(){return new w.Z(this._id,this.wpcom)}addDomainMapping(t,e,n,r){return this.wpcom.req.post(`${this.path}/add-domain-mapping`,n,{domain:t,...e},r)}addVipDomainMapping(t,e,n){return this.wpcom.req.post(`${this.path}/vip-domain-mapping`,e,{domain:t},n)}}(0,b.Z)(C,i.Z,((t,e)=>`/sites/${e._id}/${t.subpath}`)),e.Z=C},8837:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(8049),o=n.n(r),i=n(6426);const s=o()("wpcom:media");function c(t){const e=[];let n,r,o,c;for(t=Array.isArray(t)?t:[t],n=0;n<t.length;n++){r=t[n],"string"==typeof r&&(r=(0,i.U)(r));const a=!!r._readableState,u="undefined"!=typeof File&&r instanceof File;if(s("isStream: %s",a),s("isFile: %s",u),!u&&!a){for(o in r)s("add %o => %o",o,r[o]),"file"!==o&&(c="attrs["+n+"]["+o+"]",e.push([c,r[o]]));r=r.file,"string"==typeof r&&(r=(0,i.U)(r))}e.push(["media[]",r])}return e}function a(t,e,n){if(!(this instanceof a))return new a(t,e,n);this.wpcom=n,this._sid=e,this._id=t,this._id||s("WARN: media `id` is not defined")}a.prototype.get=function(t={},e){t.apiVersion=t.apiVersion||"1.2";const n="/sites/"+this._sid+"/media/"+this._id;return this.wpcom.req.get(n,t,e)},a.prototype.update=function(t,e,n){const r={path:"/sites/"+this._sid+"/media/"+this._id};return this.wpcom.req.put(r,t,e,n)},a.prototype.edit=function(t,e,n){"function"!=typeof e&&e||(n=e,e=t,t={});const r={path:"/sites/"+this._sid+"/media/"+this._id+"/edit"};if(e&&e.media){r.formData=[["media",e.media]],delete e.media;for(const t in e)r.formData.push([`attrs[${t}]`,e[t]]);e=null}return this.wpcom.req.put(r,t,e,n)},a.prototype.addFiles=function(t,e,n){void 0===n&&(void 0===e?(e=t,t={}):"function"==typeof e&&(n=e,e=t,t={}));const r={path:"/sites/"+this._sid+"/media/new",formData:c(e)};return this.wpcom.req.post(r,t,null,n)},a.prototype.addUrls=function(t,e,n){void 0===n&&(void 0===e?(e=t,t={}):"function"==typeof e&&(n=e,e=t,t={}));const r="/sites/"+this._sid+"/media/new",o={media_urls:[]};let i,s,c,a;for(e=Array.isArray(e)?e:[e],i=0;i<e.length;i++){if(s=e[i],"string"==typeof s)c=s;else{for(a in o.attrs||(o.attrs=[]),o.attrs[i]={},s)"url"!==a&&(o.attrs[i][a]=s[a]);c=s.url}o.media_urls.push(c)}return this.wpcom.req.post(r,t,o,n)},a.prototype.delete=a.prototype.del=function(t,e){const n="/sites/"+this._sid+"/media/"+this._id+"/delete";return this.wpcom.req.del(n,t,e)}},361:function(t,e){"use strict";class n{constructor(t,e,r){if(!(this instanceof n))return new n(t,e,r);if(!t)throw new Error("`slug` is not correctly defined");this._slug=encodeURIComponent(t),this._sid=e,this.wpcom=r;const o=`/sites/${this._sid}/plugins`;this.pluginPath=`${o}/${this._slug}`}get(t,e){return this.wpcom.req.get(this.pluginPath,t,e)}update(t,e,n){return this.wpcom.req.put(this.pluginPath,t,e,n)}updateVersion(t,e){return this.wpcom.req.put(`${this.pluginPath}/update`,t,e)}install(t,e){return this.wpcom.req.put(`${this.pluginPath}/install`,t,e)}delete(t,e){return this.wpcom.req.put(`${this.pluginPath}/delete`,t,e)}activate(t,e){return this.update(t,{active:!0},e)}deactivate(t,e){return this.update(t,{active:!1},e)}enableAutoupdate(t,e){return this.update(t,{autoupdate:!0},e)}disableAutoupdate(t,e){return this.update(t,{autoupdate:!1},e)}}e.Z=n},7187:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});class r{constructor(t,e,n){if(!e)throw new TypeError("`siteId` is not correctly defined");if(!t)throw new TypeError("`postType` is not correctly defined");if(!(this instanceof r))return new r(t,e,n);this.wpcom=n,this._siteId=encodeURIComponent(e),this._postType=encodeURIComponent(t),this._rootPath=`/sites/${this._siteId}/post-types/${this._postType}`}taxonomiesList(t,e){const n=`${this._rootPath}/taxonomies`;return this.wpcom.req.get(n,t,e)}}},3164:function(t,e,n){"use strict";var r=n(8049),o=n.n(r),i=n(8729),s=n(1832),c=n(9932),a=n(3185),u=n(2250),p=n(9426);const f=o()("wpcom:post");class l{constructor(t,e,n){if(!(this instanceof l))return new l(t,e,n);this.wpcom=n,this._sid=e,this.path=`/sites/${this._sid}/posts`,"object"!=typeof(t=t||{})?this._id=t:(this._id=t.id,this._slug=t.slug)}id(t){this._id=t}slug(t){this._slug=t}getPostPath(){return`${this.path}/${this._id}`}get(t,e){return!this._id&&this._slug?this.getBySlug(t,e):this.wpcom.req.get(this.getPostPath(),t,e)}getBySlug(t,e){return this.wpcom.req.get(`${this.path}/slug:${this._slug}`,t,e)}add(t,e,n){return void 0===n&&(void 0===e?(e=t,t={}):"function"==typeof e&&(n=e,e=t,t={})),this.wpcom.req.post(`${this.path}/new`,t,e).then((t=>{if(this._id=t.ID,f("Set post _id: %s",this._id),this._slug=t.slug,f("Set post _slug: %s",this._slug),"function"!=typeof n)return Promise.resolve(t);n(null,t)})).catch((t=>{if("function"!=typeof n)return Promise.reject(t);n(t)}))}update(t,e,n){return this.wpcom.req.put(this.getPostPath(),t,e,n)}delete(t,e){const n=`${this.getPostPath()}/delete`;return this.wpcom.req.del(n,t,e)}del(t,e){return this.delete(t,e)}restore(t,e){return this.wpcom.req.put(`${this.getPostPath()}/restore`,t,null,e)}related(t,e){return this.wpcom.req.put(`${this.getPostPath()}/related`,t,null,e)}comment(t){return new s.Z(t,this._id,this._sid,this.wpcom)}comments(t,e){return new s.Z(null,this._id,this._sid,this.wpcom).replies(t,e)}like(){return new c.Z(this._id,this._sid,this.wpcom)}reblog(){return new a.Z(this._id,this._sid,this.wpcom)}subscriber(){return new u.Z(this._id,this._sid,this.wpcom)}}(0,p.Z)(l,i.Z,((t,e)=>`/sites/${e._sid}/posts/${e._id}/${t.subpath}`)),e.Z=l},9932:function(t,e,n){"use strict";function r(t,e,n){if(!e)throw new Error("`site id` is not correctly defined");if(!t)throw new Error("`post id` is not correctly defined");if(!(this instanceof r))return new r(t,e,n);this.wpcom=n,this._pid=t,this._sid=e}n.d(e,{Z:function(){return r}}),r.prototype.mine=r.prototype.state=function(t,e){const n="/sites/"+this._sid+"/posts/"+this._pid+"/likes/mine";return this.wpcom.req.get(n,t,e)},r.prototype.add=function(t,e){const n="/sites/"+this._sid+"/posts/"+this._pid+"/likes/new";return this.wpcom.req.put(n,t,null,e)},r.prototype.del=r.prototype.delete=function(t,e){const n="/sites/"+this._sid+"/posts/"+this._pid+"/likes/mine/delete";return this.wpcom.req.del(n,t,e)}},3185:function(t,e,n){"use strict";function r(t,e,n){if(!e)throw new Error("`site id` is not correctly defined");if(!t)throw new Error("`post id` is not correctly defined");if(!(this instanceof r))return new r(t,e,n);this.wpcom=n,this._pid=t,this._sid=e}n.d(e,{Z:function(){return r}}),r.prototype.mine=r.prototype.state=function(t,e){const n="/sites/"+this._sid+"/posts/"+this._pid+"/reblogs/mine";return this.wpcom.req.get(n,t,e)},r.prototype.add=function(t,e,n){if("function"==typeof e&&(n=e,e=t,t={}),e&&!e.destination_site_id)return n(new Error("destination_site_id is not defined"));const r="/sites/"+this._sid+"/posts/"+this._pid+"/reblogs/new";return this.wpcom.req.put(r,t,e,n)},r.prototype.to=function(t,e,n){return void 0===n&&(void 0===e?e=null:"function"==typeof e&&(n=e,e=null)),this.add({note:e,destination_site_id:t},n)}},2250:function(t,e){"use strict";class n{constructor(t,e,r){if(!e)throw new Error("`side id` is not correctly defined");if(!t)throw new Error("`post id` is not correctly defined");if(!(this instanceof n))return new n(t,e,r);this.wpcom=r,this._id=t,this._sid=e,this.path=`/sites/${this._sid}/posts/${this._id}/subscribers`}mine(t,e){return this.wpcom.req.get(`${this.path}/mine`,t,e)}add(t,e){return this.wpcom.req.put(`${this.path}/new`,t,null,e)}del(t,e){return this.wpcom.req.del(`${this.path}/mine/delete`,t,e)}}n.prototype.state=n.prototype.mine,n.prototype.delete=n.prototype.del,e.Z=n},150:function(t,e){"use strict";class n{constructor(t,e){if(!t)throw new Error("`site id` is not correctly defined");if(!(this instanceof n))return new n(t,e);this.wpcom=e,this._sid=t,this.path=`/sites/${this._sid}/settings`}get(t,e){return this.wpcom.req.get(this.path,t,e)}getOption(t,e=(()=>{})){const n={fields:"settings"};return new Promise(((r,o)=>{this.wpcom.req.get(this.path,n,((n,i)=>{if(n)return e(n),o(n);if(!i)return e(),r();const s=i.settings;return s&&void 0!==s[t]?(e(null,s[t]),r(s[t])):(e(null,i),r(i))}))}))}update(t,e,n){return this.wpcom.req.put(this.path,t,e,n)}setOption(t,e,n){return this.wpcom.req.put(this.path,{},{[t]:e},n)}}e.Z=n},5489:function(t,e,n){"use strict";function r(t,e,n){if(!e)throw new Error("`site id` is not correctly defined");if(!(this instanceof r))return new r(t,e,n);this.wpcom=n,this._sid=e,this._slug=t}n.d(e,{Z:function(){return r}}),r.prototype.slug=function(t){this._slug=t},r.prototype.get=function(t,e){const n="/sites/"+this._sid+"/tags/slug:"+this._slug;return this.wpcom.req.get(n,t,e)},r.prototype.add=function(t,e,n){const r="/sites/"+this._sid+"/tags/new";return this.wpcom.req.post(r,t,e,n)},r.prototype.update=function(t,e,n){const r="/sites/"+this._sid+"/tags/slug:"+this._slug;return this.wpcom.req.put(r,t,e,n)},r.prototype.delete=r.prototype.del=function(t,e){const n="/sites/"+this._sid+"/tags/slug:"+this._slug+"/delete";return this.wpcom.req.del(n,t,e)}},1986:function(t,e,n){"use strict";var r=n(4046);class o{constructor(t,e,n){if(!e)throw new TypeError("`siteId` is not correctly defined");if(!t)throw new TypeError("`taxonomy` is not correctly defined");if(!(this instanceof o))return new o(t,e,n);this.wpcom=n,this._siteId=encodeURIComponent(e),this._taxonomy=encodeURIComponent(t),this._rootPath=`/sites/${this._siteId}/taxonomies/${this._taxonomy}`}termsList(t,e){const n=`${this._rootPath}/terms`;return this.wpcom.req.get(n,t,e)}term(t){return new r.Z(t,this._taxonomy,this._siteId,this.wpcom)}}e.Z=o},4046:function(t,e){"use strict";class n{constructor(t,e,r,o){if(!r)throw new TypeError("`siteId` is not correctly defined");if(!e)throw new TypeError("`taxonomy` is not correctly defined");if(!(this instanceof n))return new n(t,e,r,o);this.wpcom=o,this._siteId=encodeURIComponent(r),this._taxonomy=encodeURIComponent(e),this._term=encodeURIComponent(t),this._taxonomyPath=`/sites/${this._siteId}/taxonomies/${this._taxonomy}/terms`}get(t,e){if(!this._term)throw new Error("`term` is not correctly defined");"function"==typeof t&&(e=t,t={});const n=`${this._taxonomyPath}/slug:${this._term}`;return this.wpcom.req.get(n,t,e)}add(t,e){if(!t||!t.name)throw new Error("`params.name` is not correctly defined");const n=`${this._taxonomyPath}/new`;return this.wpcom.req.post(n,t,e)}delete(t){if(!this._term)throw new Error("`term` is not correctly defined");const e=`${this._taxonomyPath}/slug:${this._term}/delete`;return this.wpcom.req.del(e,t)}update(t,e){if(!this._term)throw new Error("`term` is not correctly defined");const n=`${this._taxonomyPath}/slug:${this._term}`;return this.wpcom.req.put(n,t,e)}}e.Z=n},3243:function(t,e,n){"use strict";function r(t,e){if(!(this instanceof r))return new r(t,e);this._sid=t,this.wpcom=e}n.d(e,{Z:function(){return r}}),r.prototype.get=function(t,e){return this.wpcom.req.get("/sites/"+this._sid+"/wordads/earnings",t,e)}},1753:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(3243),o=n(4549),i=n(1731);function s(t,e){if(!(this instanceof s))return new s(t,e);this._sid=t,this.wpcom=e}s.prototype.settings=function(){return new o.Z(this._sid,this.wpcom)},s.prototype.earnings=function(){return new r.Z(this._sid,this.wpcom)},s.prototype.tos=function(){return new i.Z(this._sid,this.wpcom)}},4549:function(t,e,n){"use strict";function r(t,e){if(!(this instanceof r))return new r(t,e);this._sid=t,this.wpcom=e}n.d(e,{Z:function(){return r}}),r.prototype.get=function(t,e){return this.wpcom.req.get("/sites/"+this._sid+"/wordads/settings",t,e)},r.prototype.update=function(t,e,n){const r="/sites/"+this._sid+"/wordads/settings";return this.wpcom.req.post(r,t,e,n)}},1731:function(t,e,n){"use strict";function r(t,e){if(!(this instanceof r))return new r(t,e);this._sid=t,this.wpcom=e}n.d(e,{Z:function(){return r}}),r.prototype.get=function(t,e){return this.wpcom.req.get("/sites/"+this._sid+"/wordads/tos",t,e)},r.prototype.update=function(t,e,n){const r="/sites/"+this._sid+"/wordads/tos";return this.wpcom.req.post(r,t,e,n)},r.prototype.sign=function(t,e){const n="/sites/"+this._sid+"/wordads/tos";return this.wpcom.req.post(n,t,{tos:"signed"},e)}},4866:function(t,e){"use strict";class n{constructor(t,e,r){if(!(this instanceof n))return new n(t,e,r);if(!t)throw new Error("`slug` is not correctly defined");this._slug=encodeURIComponent(t),this._sid=e,this.wpcom=r;const o=`/sites/${this._sid}/wpcom-plugins`;this.pluginPath=`${o}/${this._slug}`}update(t,e,n){return this.wpcom.req.put(this.pluginPath,t,e,n)}activate(t,e){return this.update(t,{active:!0},e)}deactivate(t,e){return this.update(t,{active:!1},e)}}e.Z=n},4308:function(t,e,n){"use strict";function r(t){if(!(this instanceof r))return new r(t);this.wpcom=t}n.d(e,{Z:function(){return r}}),r.prototype.suggest=function(t,e){return this.wpcom.req.get("/users/suggest",t,e)}},6426:function(t,e,n){"use strict";function r(){throw new Error("Cannot call fs functions within the browser")}n.d(e,{U:function(){return r}})},3818:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(8049);const o=n.n(r)()("wpcom:pinghub");function i(t){if(!(this instanceof i))return new i(t);this.wpcom=t,this.conns={}}i.prototype.connect=function(t,e){o("connect",t,e);const n=this,r={action:"connect",path:"/pinghub"+t},i=this.conns[t]=this.wpcom.req.get(r,(function(){}));i.onload=function(n){o("onload",t,n),e(null,n)},i.onerror=i.onabort=i.onclose=function(r){o("onerror",t,r),n.remove(t),e(r,null)}},i.prototype.disconnect=function(t){o("disconnect",t);const e={action:"disconnect",path:"/pinghub"+t};this.wpcom.req.get(e,(function(){}))},i.prototype.remove=function(t){o("remove",t),delete this.conns[t]}},781:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(3918);function o(t){this.wpcom=t}o.prototype.get=function(t,e,n){return"function"==typeof e&&(n=e,e={}),r.Z.call(this.wpcom,t,e,null,n)},o.prototype.post=o.prototype.put=function(t,e,n,o){return void 0===o&&(void 0===n?(n=e,e={}):"function"==typeof n&&(o=n,n=e,e={})),(t="string"==typeof t?{path:t}:t).method=t.method||"post",r.Z.call(this.wpcom,t,e,n,o)},o.prototype.del=function(t,e,n){return"function"==typeof e&&(n=e,e={}),this.post(t,e,null,n)}},9426:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(8049);const o=n.n(r)()("wpcom:runtime"),i=(t,e)=>function(n,r){const o=e(t,this);return this.wpcom.req.get(o,n,r)};function s(t,e,n){e.forEach((e=>{o("Adding %o",(e="object"==typeof e?e:{name:e}).name),t.prototype[e.name]=i(e,n)}))}},3918:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(8049),o=n.n(r),i=n(9126),s=n.n(i);const c=o()("wpcom:send-request"),a=o()("wpcom:send-request:res");function u(t,e,n,r){return c("sendRequest(%o )",(t="string"==typeof t?{path:t}:t).path),t.method=(t.method||"get").toUpperCase(),"function"==typeof e&&(r=e,e={}),"function"==typeof n&&(r=n,n=null),(e=e||{}).apiVersion?(t.apiVersion=e.apiVersion,c("apiVersion: %o",t.apiVersion),delete e.apiVersion):t.apiVersion=this.apiVersion,e.apiNamespace&&(t.apiNamespace=e.apiNamespace,c("apiNamespace: %o",t.apiNamespace),delete e.apiNamespace),e.proxyOrigin&&(t.proxyOrigin=e.proxyOrigin,c("proxyOrigin: %o",t.proxyOrigin),delete e.proxyOrigin),e=s().stringify(e,{arrayFormat:"brackets"}),t.query=e,n&&(t.body=n),c("params: %o",t),"function"==typeof r?this.request(t,(function(t,e,n){a(e),r(t,e,n)})):new Promise(((e,n)=>{this.request(t,((t,r)=>{a(r),t?n(t):e(r)}))}))}},8049:function(t,e,n){e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(r++,"%c"===t&&(o=r))})),e.splice(o,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(n){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(n){}!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG);return t},e.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=n(2632)(e);const{formatters:r}=t.exports;r.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2632:function(t,e,n){t.exports=function(t){function e(t){let n,o,i,s=null;function c(...t){if(!c.enabled)return;const r=c,o=Number(new Date),i=o-(n||o);r.diff=i,r.prev=n,r.curr=o,n=o,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let s=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((n,o)=>{if("%%"===n)return"%";s++;const i=e.formatters[o];if("function"==typeof i){const e=t[s];n=i.call(r,e),t.splice(s,1),s--}return n})),e.formatArgs.call(r,t);(r.log||e.log).apply(r,t)}return c.namespace=t,c.useColors=e.useColors(),c.color=e.selectColor(t),c.extend=r,c.destroy=e.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(o!==e.namespaces&&(o=e.namespaces,i=e.enabled(t)),i),set:t=>{s=t}}),"function"==typeof e.init&&e.init(c),c}function r(t,n){const r=e(this.namespace+(void 0===n?":":n)+t);return r.log=this.log,r}function o(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},e.disable=function(){const t=[...e.names.map(o),...e.skips.map(o).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let n;e.save(t),e.namespaces=t,e.names=[],e.skips=[];const r=("string"==typeof t?t:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(t=r[n].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;let n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=n(1378),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((n=>{e[n]=t[n]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return e.colors[Math.abs(n)%e.colors.length]},e.enable(e.load()),e}},3830:function(t,e,n){"use strict";var r=n(956);t.exports=function(){var t=r.apply(r,arguments);return t.charAt(0).toUpperCase()+t.slice(1)}},956:function(t){"use strict";t.exports=function(){var t=[].map.call(arguments,(function(t){return t.trim()})).filter((function(t){return t.length})).join("-");return t.length?1!==t.length&&/[_.\- ]+/.test(t)?t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(t,e){return e.toUpperCase()})):t[0]===t[0].toLowerCase()&&t.slice(1)!==t.slice(1).toLowerCase()?t:t.toLowerCase():""}},2686:function(t,e){"use strict";e.Z=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},5302:function(t,e,n){"use strict";var r;n.d(e,{Z:function(){return i}});var o=new Uint8Array(16);function i(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}},708:function(t,e,n){"use strict";for(var r=n(6525),o=[],i=0;i<256;++i)o.push((i+256).toString(16).substr(1));e.Z=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(o[t[e+0]]+o[t[e+1]]+o[t[e+2]]+o[t[e+3]]+"-"+o[t[e+4]]+o[t[e+5]]+"-"+o[t[e+6]]+o[t[e+7]]+"-"+o[t[e+8]]+o[t[e+9]]+"-"+o[t[e+10]]+o[t[e+11]]+o[t[e+12]]+o[t[e+13]]+o[t[e+14]]+o[t[e+15]]).toLowerCase();if(!(0,r.Z)(n))throw TypeError("Stringified UUID is invalid");return n}},8767:function(t,e,n){"use strict";var r=n(5302),o=n(708);e.Z=function(t,e,n){var i=(t=t||{}).random||(t.rng||r.Z)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){n=n||0;for(var s=0;s<16;++s)e[n+s]=i[s];return e}return(0,o.Z)(i)}},6525:function(t,e,n){"use strict";var r=n(2686);e.Z=function(t){return"string"==typeof t&&r.Z.test(t)}},2884:function(t,e,n){var r=n(3830),o=n(7260);function i(t,e){if(e)if("number"==typeof e)s(t,e);else{e.status_code&&s(t,e.status_code),e.error&&(t.name=a(e.error)),e.error_description&&(t.message=e.error_description);var n=e.errors;if(n)i(t,n.length?n[0]:n);for(var r in e)t[r]=e[r];t.status&&(e.method||e.path)&&c(t)}}function s(t,e){t.name=a(o[e]),t.status=t.statusCode=e,c(t)}function c(t){var e=t.status,n=t.method,r=t.path,o=e+" status code",i=n||r;i&&(o+=' for "'),n&&(o+=n),i&&(o+=" "),r&&(o+=r),i&&(o+='"'),t.message=o}function a(t){return r(String(t).replace(/error$/i,""),"error")}t.exports=function t(){for(var e=new Error,n=0;n<arguments.length;n++)i(e,arguments[n]);"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(e,t);return e}},7260:function(t){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},9196:function(t){"use strict";t.exports=window.React},2819:function(t){"use strict";t.exports=window.lodash},5609:function(t){"use strict";t.exports=window.wp.components},4333:function(t){"use strict";t.exports=window.wp.compose},9818:function(t){"use strict";t.exports=window.wp.data},9307:function(t){"use strict";t.exports=window.wp.element},5736:function(t){"use strict";t.exports=window.wp.i18n},8817:function(t){"use strict";t.exports=window.wp.plugins},6656:function(t){"use strict";t.exports=window.wp.reactI18n},3260:function(){},6666:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{Z:function(){return r}})},7896:function(t,e,n){"use strict";function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}n.d(e,{Z:function(){return r}})}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t;n.g.importScripts&&(t=n.g.location+"");var e=n.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");r.length&&(t=r[r.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=t}();var r={};!function(){"use strict";n.r(r);n(5840),n(8814)}(),window.EditingToolkit=r}();
1
+ !function(){var t={2680:function(t,e,n){"use strict";var r=n(7286),o=n(9429),i=o(r("String.prototype.indexOf"));t.exports=function(t,e){var n=r(t,!!e);return"function"==typeof n&&i(t,".prototype.")>-1?o(n):n}},9429:function(t,e,n){"use strict";var r=n(4090),o=n(7286),i=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(s,i),a=o("%Object.getOwnPropertyDescriptor%",!0),u=o("%Object.defineProperty%",!0),p=o("%Math.max%");if(u)try{u({},"a",{value:1})}catch(l){u=null}t.exports=function(t){var e=c(r,s,arguments);if(a&&u){var n=a(e,"length");n.configurable&&u(e,"length",{value:1+p(0,t.length-(arguments.length-1))})}return e};var f=function(){return c(r,i,arguments)};u?u(t.exports,"apply",{value:f}):t.exports.apply=f},3421:function(t,e){"use strict";var n=decodeURIComponent,r=encodeURIComponent,o=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(t,e){try{return e(t)}catch(n){return t}}},2699:function(t){"use strict";var e,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function i(){i.init.call(this)}t.exports=i,t.exports.once=function(t,e){return new Promise((function(n,r){function o(){void 0!==i&&t.removeListener("error",i),n([].slice.call(arguments))}var i;"error"!==e&&(i=function(n){t.removeListener(e,o),r(n)},t.once("error",i)),t.once(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function c(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function a(t){return void 0===t._maxListeners?i.defaultMaxListeners:t._maxListeners}function u(t,e,n,r){var o,i,s,u;if(c(n),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),i=t._events),s=i[e]),void 0===s)s=i[e]=n,++t._eventsCount;else if("function"==typeof s?s=i[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=a(t))>0&&s.length>o&&!s.warned){s.warned=!0;var p=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");p.name="MaxListenersExceededWarning",p.emitter=t,p.type=e,p.count=s.length,u=p,console&&console.warn&&console.warn(u)}return t}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},o=p.bind(r);return o.listener=n,r.wrapFn=o,o}function l(t,e,n){var r=t._events;if(void 0===r)return[];var o=r[e];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(o):d(o,o.length)}function h(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function d(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},i.prototype.getMaxListeners=function(){return a(this)},i.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var o="error"===t,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var c=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw c.context=s,c}var a=i[t];if(void 0===a)return!1;if("function"==typeof a)r(a,this,e);else{var u=a.length,p=d(a,u);for(n=0;n<u;++n)r(p[n],this,e)}return!0},i.prototype.addListener=function(t,e){return u(this,t,e,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(t,e){return u(this,t,e,!0)},i.prototype.once=function(t,e){return c(e),this.on(t,f(this,t,e)),this},i.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,f(this,t,e)),this},i.prototype.removeListener=function(t,e){var n,r,o,i,s;if(c(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===e||n[i].listener===e){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,o),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,s||e)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},i.prototype.listeners=function(t){return l(this,t,!0)},i.prototype.rawListeners=function(t){return l(this,t,!1)},i.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):h.call(t,e)},i.prototype.listenerCount=h,i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},7795:function(t){"use strict";var e="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,r=Object.prototype.toString,o="[object Function]";t.exports=function(t){var i=this;if("function"!=typeof i||r.call(i)!==o)throw new TypeError(e+i);for(var s,c=n.call(arguments,1),a=function(){if(this instanceof s){var e=i.apply(this,c.concat(n.call(arguments)));return Object(e)===e?e:this}return i.apply(t,c.concat(n.call(arguments)))},u=Math.max(0,i.length-c.length),p=[],f=0;f<u;f++)p.push("$"+f);if(s=Function("binder","return function ("+p.join(",")+"){ return binder.apply(this,arguments); }")(a),i.prototype){var l=function(){};l.prototype=i.prototype,s.prototype=new l,l.prototype=null}return s}},4090:function(t,e,n){"use strict";var r=n(7795);t.exports=Function.prototype.bind||r},7286:function(t,e,n){"use strict";var r,o=SyntaxError,i=Function,s=TypeError,c=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(e){}},a=Object.getOwnPropertyDescriptor;if(a)try{a({},"")}catch(x){a=null}var u=function(){throw new s},p=a?function(){try{return u}catch(t){try{return a(arguments,"callee").get}catch(e){return u}}}():u,f=n(2636)(),l=Object.getPrototypeOf||function(t){return t.__proto__},h={},d="undefined"==typeof Uint8Array?r:l(Uint8Array),y={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f?l([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?l(l([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?l((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?l((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?l(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":p,"%TypedArray%":d,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},m=function t(e){var n;if("%AsyncFunction%"===e)n=c("async function () {}");else if("%GeneratorFunction%"===e)n=c("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=c("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&(n=l(o.prototype))}return y[e]=n,n},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=n(4090),v=n(3198),b=w.call(Function.call,Array.prototype.concat),_=w.call(Function.apply,Array.prototype.splice),C=w.call(Function.call,String.prototype.replace),S=w.call(Function.call,String.prototype.slice),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,j=function(t){var e=S(t,0,1),n=S(t,-1);if("%"===e&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return C(t,E,(function(t,e,n,o){r[r.length]=n?C(o,P,"$1"):e||t})),r},A=function(t,e){var n,r=t;if(v(g,r)&&(r="%"+(n=g[r])[0]+"%"),v(y,r)){var i=y[r];if(i===h&&(i=m(r)),void 0===i&&!e)throw new s("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new s('"allowMissing" argument must be a boolean');var n=j(t),r=n.length>0?n[0]:"",i=A("%"+r+"%",e),c=i.name,u=i.value,p=!1,f=i.alias;f&&(r=f[0],_(n,b([0,1],f)));for(var l=1,h=!0;l<n.length;l+=1){var d=n[l],m=S(d,0,1),g=S(d,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==d&&h||(p=!0),v(y,c="%"+(r+="."+d)+"%"))u=y[c];else if(null!=u){if(!(d in u)){if(!e)throw new s("base intrinsic for "+t+" exists, but the property is not available.");return}if(a&&l+1>=n.length){var w=a(u,d);u=(h=!!w)&&"get"in w&&!("originalValue"in w.get)?w.get:u[d]}else h=v(u,d),u=u[d];h&&!p&&(y[c]=u)}}return u}},2636:function(t,e,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(6679);t.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},6679:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},3198:function(t,e,n){"use strict";var r=n(4090);t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},4495:function(t,e,n){"use strict";var r=n(212),o=n(9561);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=i,i.prototype.update=function(t,e){if(t=r.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-n,this.endian);for(var o=0;o<t.length;o+=this._delta32)this._update(t,o,o+this._delta32)}return this},i.prototype.digest=function(t){return this.update(this._pad()),o(null===this.pending),this._digest(t)},i.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,r=new Array(n+this.padLength);r[0]=128;for(var o=1;o<n;o++)r[o]=0;if(t<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)r[o++]=0;r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=t>>>24&255,r[o++]=t>>>16&255,r[o++]=t>>>8&255,r[o++]=255&t}else for(r[o++]=255&t,r[o++]=t>>>8&255,r[o++]=t>>>16&255,r[o++]=t>>>24&255,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,i=8;i<this.padLength;i++)r[o++]=0;return r}},8032:function(t,e,n){"use strict";var r=n(212),o=n(4495),i=n(713),s=n(9561),c=r.sum32,a=r.sum32_4,u=r.sum32_5,p=i.ch32,f=i.maj32,l=i.s0_256,h=i.s1_256,d=i.g0_256,y=i.g1_256,m=o.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function w(){if(!(this instanceof w))return new w;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}r.inherits(w,m),t.exports=w,w.blockSize=512,w.outSize=256,w.hmacStrength=192,w.padLength=64,w.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=a(y(n[r-2]),n[r-7],d(n[r-15]),n[r-16]);var o=this.h[0],i=this.h[1],m=this.h[2],g=this.h[3],w=this.h[4],v=this.h[5],b=this.h[6],_=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var C=u(_,h(w),p(w,v,b),this.k[r],n[r]),S=c(l(o),f(o,i,m));_=b,b=v,v=w,w=c(g,C),g=m,m=i,i=o,o=c(C,S)}this.h[0]=c(this.h[0],o),this.h[1]=c(this.h[1],i),this.h[2]=c(this.h[2],m),this.h[3]=c(this.h[3],g),this.h[4]=c(this.h[4],w),this.h[5]=c(this.h[5],v),this.h[6]=c(this.h[6],b),this.h[7]=c(this.h[7],_)},w.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(t,e,n){"use strict";var r=n(212).rotr32;function o(t,e,n){return t&e^~t&n}function i(t,e,n){return t&e^t&n^e&n}function s(t,e,n){return t^e^n}e.ft_1=function(t,e,n,r){return 0===t?o(e,n,r):1===t||3===t?s(e,n,r):2===t?i(e,n,r):void 0},e.ch32=o,e.maj32=i,e.p32=s,e.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22)},e.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25)},e.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},212:function(t,e,n){"use strict";var r=n(9561),o=n(1285);function i(t,e){return 55296==(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function s(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function c(t){return 1===t.length?"0"+t:t}function a(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=o,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),o=0;o<t.length;o+=2)n.push(parseInt(t[o]+t[o+1],16))}else for(var r=0,o=0;o<t.length;o++){var s=t.charCodeAt(o);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):i(t,o)?(s=65536+((1023&s)<<10)+(1023&t.charCodeAt(++o)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(o=0;o<t.length;o++)n[o]=0|t[o];return n},e.toHex=function(t){for(var e="",n=0;n<t.length;n++)e+=c(t[n].toString(16));return e},e.htonl=s,e.toHex32=function(t,e){for(var n="",r=0;r<t.length;r++){var o=t[r];"little"===e&&(o=s(o)),n+=a(o.toString(16))}return n},e.zero2=c,e.zero8=a,e.join32=function(t,e,n,o){var i=n-e;r(i%4==0);for(var s=new Array(i/4),c=0,a=e;c<s.length;c++,a+=4){var u;u="big"===o?t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3]:t[a+3]<<24|t[a+2]<<16|t[a+1]<<8|t[a],s[c]=u>>>0}return s},e.split32=function(t,e){for(var n=new Array(4*t.length),r=0,o=0;r<t.length;r++,o+=4){var i=t[r];"big"===e?(n[o]=i>>>24,n[o+1]=i>>>16&255,n[o+2]=i>>>8&255,n[o+3]=255&i):(n[o+3]=i>>>24,n[o+2]=i>>>16&255,n[o+1]=i>>>8&255,n[o]=255&i)}return n},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,n){return t+e+n>>>0},e.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},e.sum32_5=function(t,e,n,r,o){return t+e+n+r+o>>>0},e.sum64=function(t,e,n,r){var o=t[e],i=r+t[e+1]>>>0,s=(i<r?1:0)+n+o;t[e]=s>>>0,t[e+1]=i},e.sum64_hi=function(t,e,n,r){return(e+r>>>0<e?1:0)+t+n>>>0},e.sum64_lo=function(t,e,n,r){return e+r>>>0},e.sum64_4_hi=function(t,e,n,r,o,i,s,c){var a=0,u=e;return a+=(u=u+r>>>0)<e?1:0,a+=(u=u+i>>>0)<i?1:0,t+n+o+s+(a+=(u=u+c>>>0)<c?1:0)>>>0},e.sum64_4_lo=function(t,e,n,r,o,i,s,c){return e+r+i+c>>>0},e.sum64_5_hi=function(t,e,n,r,o,i,s,c,a,u){var p=0,f=e;return p+=(f=f+r>>>0)<e?1:0,p+=(f=f+i>>>0)<i?1:0,p+=(f=f+c>>>0)<c?1:0,t+n+o+s+a+(p+=(f=f+u>>>0)<u?1:0)>>>0},e.sum64_5_lo=function(t,e,n,r,o,i,s,c,a,u){return e+r+i+c+u>>>0},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},e.shr64_hi=function(t,e,n){return t>>>n},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},1285:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},2779:function(){},9561:function(t){function e(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=e,e.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)}},1378:function(t){var e=1e3,n=60*e,r=60*n,o=24*r,i=7*o,s=365.25*o;function c(t,e,n,r){var o=e>=1.5*n;return Math.round(t/n)+" "+r+(o?"s":"")}t.exports=function(t,a){a=a||{};var u=typeof t;if("string"===u&&t.length>0)return function(t){if((t=String(t)).length>100)return;var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!c)return;var a=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*s;case"weeks":case"week":case"w":return a*i;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(t);if("number"===u&&isFinite(t))return a.long?function(t){var i=Math.abs(t);if(i>=o)return c(t,i,o,"day");if(i>=r)return c(t,i,r,"hour");if(i>=n)return c(t,i,n,"minute");if(i>=e)return c(t,i,e,"second");return t+" ms"}(t):function(t){var i=Math.abs(t);if(i>=o)return Math.round(t/o)+"d";if(i>=r)return Math.round(t/r)+"h";if(i>=n)return Math.round(t/n)+"m";if(i>=e)return Math.round(t/e)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},9500:function(t,e,n){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,s=r&&Map.prototype.forEach,c="function"==typeof Set&&Set.prototype,a=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=c&&a&&"function"==typeof a.get?a.get:null,p=c&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,l="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,y=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,w="function"==typeof BigInt?BigInt.prototype.valueOf:null,v=Object.getOwnPropertySymbols,b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,_="function"==typeof Symbol&&"object"==typeof Symbol.iterator,C=Object.prototype.propertyIsEnumerable,S=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null),E=n(3260).custom,P=E&&O(E)?E:null,j="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function A(t,e,n){var r="double"===(n.quoteStyle||e)?'"':"'";return r+t+r}function x(t){return String(t).replace(/"/g,"&quot;")}function q(t){return!("[object Array]"!==Z(t)||j&&"object"==typeof t&&j in t)}function O(t){if(_)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!b)return!1;try{return b.call(t),!0}catch(e){}return!1}t.exports=function t(e,n,r,o){var c=n||{};if(k(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(k(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=!k(c,"customInspect")||c.customInspect;if("boolean"!=typeof a&&"symbol"!==a)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(k(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return N(e,c);if("number"==typeof e)return 0===e?1/0/e>0?"0":"-0":String(e);if("bigint"==typeof e)return String(e)+"n";var y=void 0===c.depth?5:c.depth;if(void 0===r&&(r=0),r>=y&&y>0&&"object"==typeof e)return q(e)?"[Array]":"[Object]";var v=function(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;n=Array(t.indent+1).join(" ")}return{base:n,prev:Array(e+1).join(n)}}(c,r);if(void 0===o)o=[];else if(L(o,e)>=0)return"[Circular]";function C(e,n,i){if(n&&(o=o.slice()).push(n),i){var s={depth:c.depth};return k(c,"quoteStyle")&&(s.quoteStyle=c.quoteStyle),t(e,s,r+1,o)}return t(e,c,r+1,o)}if("function"==typeof e){var E=function(t){if(t.name)return t.name;var e=g.call(m.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),F=U(e,C);return"[Function"+(E?": "+E:" (anonymous)")+"]"+(F.length>0?" { "+F.join(", ")+" }":"")}if(O(e)){var R=_?String(e).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):b.call(e);return"object"!=typeof e||_?R:I(R)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var D="<"+String(e.nodeName).toLowerCase(),W=e.attributes||[],B=0;B<W.length;B++)D+=" "+W[B].name+"="+A(x(W[B].value),"double",c);return D+=">",e.childNodes&&e.childNodes.length&&(D+="..."),D+="</"+String(e.nodeName).toLowerCase()+">"}if(q(e)){if(0===e.length)return"[]";var V=U(e,C);return v&&!function(t){for(var e=0;e<t.length;e++)if(L(t[e],"\n")>=0)return!1;return!0}(V)?"["+T(V,v)+"]":"[ "+V.join(", ")+" ]"}if(function(t){return!("[object Error]"!==Z(t)||j&&"object"==typeof t&&j in t)}(e)){var z=U(e,C);return 0===z.length?"["+String(e)+"]":"{ ["+String(e)+"] "+z.join(", ")+" }"}if("object"==typeof e&&a){if(P&&"function"==typeof e[P])return e[P]();if("symbol"!==a&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{u.call(t)}catch(D){return!0}return t instanceof Map}catch(e){}return!1}(e)){var G=[];return s.call(e,(function(t,n){G.push(C(n,e,!0)+" => "+C(t,e))})),M("Map",i.call(e),G,v)}if(function(t){if(!u||!t||"object"!=typeof t)return!1;try{u.call(t);try{i.call(t)}catch(e){return!0}return t instanceof Set}catch(n){}return!1}(e)){var H=[];return p.call(e,(function(t){H.push(C(t,e))})),M("Set",u.call(e),H,v)}if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{l.call(t,l)}catch(D){return!0}return t instanceof WeakMap}catch(e){}return!1}(e))return $("WeakMap");if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t,l);try{f.call(t,f)}catch(D){return!0}return t instanceof WeakSet}catch(e){}return!1}(e))return $("WeakSet");if(function(t){if(!h||!t||"object"!=typeof t)return!1;try{return h.call(t),!0}catch(e){}return!1}(e))return $("WeakRef");if(function(t){return!("[object Number]"!==Z(t)||j&&"object"==typeof t&&j in t)}(e))return I(C(Number(e)));if(function(t){if(!t||"object"!=typeof t||!w)return!1;try{return w.call(t),!0}catch(e){}return!1}(e))return I(C(w.call(e)));if(function(t){return!("[object Boolean]"!==Z(t)||j&&"object"==typeof t&&j in t)}(e))return I(d.call(e));if(function(t){return!("[object String]"!==Z(t)||j&&"object"==typeof t&&j in t)}(e))return I(C(String(e)));if(!function(t){return!("[object Date]"!==Z(t)||j&&"object"==typeof t&&j in t)}(e)&&!function(t){return!("[object RegExp]"!==Z(t)||j&&"object"==typeof t&&j in t)}(e)){var J=U(e,C),Q=S?S(e)===Object.prototype:e instanceof Object||e.constructor===Object,K=e instanceof Object?"":"null prototype",X=!Q&&j&&Object(e)===e&&j in e?Z(e).slice(8,-1):K?"Object":"",Y=(Q||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(X||K?"["+[].concat(X||[],K||[]).join(": ")+"] ":"");return 0===J.length?Y+"{}":v?Y+"{"+T(J,v)+"}":Y+"{ "+J.join(", ")+" }"}return String(e)};var F=Object.prototype.hasOwnProperty||function(t){return t in this};function k(t,e){return F.call(t,e)}function Z(t){return y.call(t)}function L(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}function N(t,e){if(t.length>e.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return N(t.slice(0,e.maxStringLength),e)+r}return A(t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,R),"single",e)}function R(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+e.toString(16).toUpperCase()}function I(t){return"Object("+t+")"}function $(t){return t+" { ? }"}function M(t,e,n,r){return t+" ("+e+") {"+(r?T(n,r):n.join(", "))+"}"}function T(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+t.join(","+n)+"\n"+e.prev}function U(t,e){var n=q(t),r=[];if(n){r.length=t.length;for(var o=0;o<t.length;o++)r[o]=k(t,o)?e(t[o],t):""}var i,s="function"==typeof v?v(t):[];if(_){i={};for(var c=0;c<s.length;c++)i["$"+s[c]]=s[c]}for(var a in t)k(t,a)&&(n&&String(Number(a))===a&&a<t.length||_&&i["$"+a]instanceof Symbol||(/[^\w$]/.test(a)?r.push(e(a,t)+": "+e(t[a],t)):r.push(a+": "+e(t[a],t))));if("function"==typeof v)for(var u=0;u<s.length;u++)C.call(t,s[u])&&r.push("["+e(s[u])+"]: "+e(t[s[u]],t));return r}},8650:function(t){var e,n=window.ProgressEvent,r=!!n;try{e=new n("loaded"),r="loaded"===e.type,e=null}catch(o){r=!1}t.exports=r?n:"function"==typeof document.createEvent?function(t,e){var n=document.createEvent("Event");return n.initEvent(t,!1,!1),e?(n.lengthComputable=Boolean(e.lengthComputable),n.loaded=Number(e.loaded)||0,n.total=Number(e.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}:function(t,e){var n=document.createEventObject();return n.type=t,e?(n.lengthComputable=Boolean(e.lengthComputable),n.loaded=Number(e.loaded)||0,n.total=Number(e.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}},5527:function(t){"use strict";var e=String.prototype.replace,n=/%20/g,r="RFC1738",o="RFC3986";t.exports={default:o,formatters:{RFC1738:function(t){return e.call(t,n,"+")},RFC3986:function(t){return String(t)}},RFC1738:r,RFC3986:o}},9126:function(t,e,n){"use strict";var r=n(6845),o=n(9166),i=n(5527);t.exports={formats:i,parse:o,stringify:r}},9166:function(t,e,n){"use strict";var r=n(2493),o=Object.prototype.hasOwnProperty,i=Array.isArray,s={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},a=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},u=function(t,e,n,r){if(t){var i=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/g,c=n.depth>0&&/(\[[^[\]]*])/.exec(i),u=c?i.slice(0,c.index):i,p=[];if(u){if(!n.plainObjects&&o.call(Object.prototype,u)&&!n.allowPrototypes)return;p.push(u)}for(var f=0;n.depth>0&&null!==(c=s.exec(i))&&f<n.depth;){if(f+=1,!n.plainObjects&&o.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;p.push(c[1])}return c&&p.push("["+i.slice(c.index)+"]"),function(t,e,n,r){for(var o=r?e:a(e,n),i=t.length-1;i>=0;--i){var s,c=t[i];if("[]"===c&&n.parseArrays)s=[].concat(o);else{s=n.plainObjects?Object.create(null):{};var u="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,p=parseInt(u,10);n.parseArrays||""!==u?!isNaN(p)&&c!==u&&String(p)===u&&p>=0&&n.parseArrays&&p<=n.arrayLimit?(s=[])[p]=o:s[u]=o:s={0:o}}o=s}return o}(p,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return s;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?s.charset:t.charset;return{allowDots:void 0===t.allowDots?s.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:s.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:s.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:s.comma,decoder:"function"==typeof t.decoder?t.decoder:s.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:s.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:s.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:s.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:s.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var p="string"==typeof t?function(t,e){var n,u={},p=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,f=e.parameterLimit===1/0?void 0:e.parameterLimit,l=p.split(e.delimiter,f),h=-1,d=e.charset;if(e.charsetSentinel)for(n=0;n<l.length;++n)0===l[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[n]?d="utf-8":"utf8=%26%2310003%3B"===l[n]&&(d="iso-8859-1"),h=n,n=l.length);for(n=0;n<l.length;++n)if(n!==h){var y,m,g=l[n],w=g.indexOf("]="),v=-1===w?g.indexOf("="):w+1;-1===v?(y=e.decoder(g,s.decoder,d,"key"),m=e.strictNullHandling?null:""):(y=e.decoder(g.slice(0,v),s.decoder,d,"key"),m=r.maybeMap(a(g.slice(v+1),e),(function(t){return e.decoder(t,s.decoder,d,"value")}))),m&&e.interpretNumericEntities&&"iso-8859-1"===d&&(m=c(m)),g.indexOf("[]=")>-1&&(m=i(m)?[m]:m),o.call(u,y)?u[y]=r.combine(u[y],m):u[y]=m}return u}(t,n):t,f=n.plainObjects?Object.create(null):{},l=Object.keys(p),h=0;h<l.length;++h){var d=l[h],y=u(d,p[d],n,"string"==typeof t);f=r.merge(f,y,n)}return!0===n.allowSparse?f:r.compact(f)}},6845:function(t,e,n){"use strict";var r=n(4294),o=n(2493),i=n(5527),s=Object.prototype.hasOwnProperty,c={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},a=Array.isArray,u=Array.prototype.push,p=function(t,e){u.apply(t,a(e)?e:[e])},f=Date.prototype.toISOString,l=i.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:l,formatter:i.formatters[l],indices:!1,serializeDate:function(t){return f.call(t)},skipNulls:!1,strictNullHandling:!1},d=function t(e,n,i,s,c,u,f,l,d,y,m,g,w,v,b){var _,C=e;if(b.has(e))throw new RangeError("Cyclic object value");if("function"==typeof f?C=f(n,C):C instanceof Date?C=y(C):"comma"===i&&a(C)&&(C=o.maybeMap(C,(function(t){return t instanceof Date?y(t):t}))),null===C){if(s)return u&&!w?u(n,h.encoder,v,"key",m):n;C=""}if("string"==typeof(_=C)||"number"==typeof _||"boolean"==typeof _||"symbol"==typeof _||"bigint"==typeof _||o.isBuffer(C))return u?[g(w?n:u(n,h.encoder,v,"key",m))+"="+g(u(C,h.encoder,v,"value",m))]:[g(n)+"="+g(String(C))];var S,E=[];if(void 0===C)return E;if("comma"===i&&a(C))S=[{value:C.length>0?C.join(",")||null:void 0}];else if(a(f))S=f;else{var P=Object.keys(C);S=l?P.sort(l):P}for(var j=0;j<S.length;++j){var A=S[j],x="object"==typeof A&&void 0!==A.value?A.value:C[A];if(!c||null!==x){var q=a(C)?"function"==typeof i?i(n,A):n:n+(d?"."+A:"["+A+"]");b.set(e,!0);var O=r();p(E,t(x,q,i,s,c,u,f,l,d,y,m,g,w,v,O))}}return E};t.exports=function(t,e){var n,o=t,u=function(t){if(!t)return h;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||h.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==t.format){if(!s.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=i.formatters[n],o=h.filter;return("function"==typeof t.filter||a(t.filter))&&(o=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===t.allowDots?h.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:h.charsetSentinel,delimiter:void 0===t.delimiter?h.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:h.encode,encoder:"function"==typeof t.encoder?t.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:h.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:h.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:h.strictNullHandling}}(e);"function"==typeof u.filter?o=(0,u.filter)("",o):a(u.filter)&&(n=u.filter);var f,l=[];if("object"!=typeof o||null===o)return"";f=e&&e.arrayFormat in c?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var y=c[f];n||(n=Object.keys(o)),u.sort&&n.sort(u.sort);for(var m=r(),g=0;g<n.length;++g){var w=n[g];u.skipNulls&&null===o[w]||p(l,d(o[w],w,y,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,m))}var v=l.join(u.delimiter),b=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),v.length>0?b+v:""}},2493:function(t,e,n){"use strict";var r=n(5527),o=Object.prototype.hasOwnProperty,i=Array.isArray,s=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),c=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:c,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var o=e[r],s=o.obj[o.prop],c=Object.keys(s),a=0;a<c.length;++a){var u=c[a],p=s[u];"object"==typeof p&&null!==p&&-1===n.indexOf(p)&&(e.push({obj:s,prop:u}),n.push(p))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(o){return r}},encode:function(t,e,n,o,i){if(0===t.length)return t;var c=t;if("symbol"==typeof t?c=Symbol.prototype.toString.call(t):"string"!=typeof t&&(c=String(t)),"iso-8859-1"===n)return escape(c).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var a="",u=0;u<c.length;++u){var p=c.charCodeAt(u);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===r.RFC1738&&(40===p||41===p)?a+=c.charAt(u):p<128?a+=s[p]:p<2048?a+=s[192|p>>6]+s[128|63&p]:p<55296||p>=57344?a+=s[224|p>>12]+s[128|p>>6&63]+s[128|63&p]:(u+=1,p=65536+((1023&p)<<10|1023&c.charCodeAt(u)),a+=s[240|p>>18]+s[128|p>>12&63]+s[128|p>>6&63]+s[128|63&p])}return a},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)},merge:function t(e,n,r){if(!n)return e;if("object"!=typeof n){if(i(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var s=e;return i(e)&&!i(n)&&(s=c(e,r)),i(e)&&i(n)?(n.forEach((function(n,i){if(o.call(e,i)){var s=e[i];s&&"object"==typeof s&&n&&"object"==typeof n?e[i]=t(s,n,r):e.push(n)}else e[i]=n})),e):Object.keys(n).reduce((function(e,i){var s=n[i];return o.call(e,i)?e[i]=t(e[i],s,r):e[i]=s,e}),s)}}},4294:function(t,e,n){"use strict";var r=n(7286),o=n(2680),i=n(9500),s=r("%TypeError%"),c=r("%WeakMap%",!0),a=r("%Map%",!0),u=o("WeakMap.prototype.get",!0),p=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),l=o("Map.prototype.get",!0),h=o("Map.prototype.set",!0),d=o("Map.prototype.has",!0),y=function(t,e){for(var n,r=t;null!==(n=r.next);r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n};t.exports=function(){var t,e,n,r={assert:function(t){if(!r.has(t))throw new s("Side channel does not contain "+i(t))},get:function(r){if(c&&r&&("object"==typeof r||"function"==typeof r)){if(t)return u(t,r)}else if(a){if(e)return l(e,r)}else if(n)return function(t,e){var n=y(t,e);return n&&n.value}(n,r)},has:function(r){if(c&&r&&("object"==typeof r||"function"==typeof r)){if(t)return f(t,r)}else if(a){if(e)return d(e,r)}else if(n)return function(t,e){return!!y(t,e)}(n,r);return!1},set:function(r,o){c&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new c),p(t,r,o)):a?(e||(e=new a),h(e,r,o)):(n||(n={key:{},next:null}),function(t,e,n){var r=y(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}}(n,r,o))}};return r}},9239:function(t,e,n){"object"==typeof window&&window.whatsNewAssetsUrl&&(n.p=window.whatsNewAssetsUrl)},8814:function(t,e,n){"use strict";var r=n(9818);const o={whatsNew:!1};(0,r.registerStore)("automattic/whats-new",{reducer:function(t=o,e){return"TOGGLE_FEATURE"===e.type?{whatsNew:!t.whatsNew}:t},actions:{toggleWhatsNew:()=>({type:"TOGGLE_FEATURE"})},selectors:{isWhatsNewActive:t=>t.whatsNew}})},5840:function(t,e,n){"use strict";var r=n(9307),o=(n(9239),n(6115)),i=n(3585),s=n(5609),c=n(5736),a=n(8817),u=n(9196);const __=c.__;function p(){const[t,e]=(0,u.useState)(!1);return(0,r.useEffect)((()=>{t&&(0,o.jN)("calypso_block_editor_whats_new_open")}),[t]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.Fill,{name:"ToolsMoreMenuGroup"},(0,r.createElement)(s.MenuItem,{onClick:()=>e(!0)},__("What's new","full-site-editing"))),t&&(0,r.createElement)(i.Z,{onClose:()=>e(!1)}))}(0,a.registerPlugin)("whats-new",{render:()=>(0,r.createElement)(p,null)})},6115:function(t,e,n){"use strict";n.d(e,{jN:function(){return r.jN}});n(1694),n(6209),n(9377);var r=n(9792);n(3722)},9377:function(t,e,n){"use strict";let r=null;"undefined"!=typeof window&&window.addEventListener("popstate",(function(){r=null}))},9792:function(t,e,n){"use strict";n.d(e,{jN:function(){return l}});var r=n(2699),o=n(4898),i=(n(3421),n(2819)),s=(n(9377),n(6209),n(9358));n(1694);const c=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];let a,u=Promise.resolve();function p(t){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(t))}"undefined"!=typeof document&&(u=(0,o.ve)("//stats.wp.com/w.js?63"));const f=new r.EventEmitter;function l(t,e){if(e=e||{},(0,s.Z)('Record event "%s" called with props %o',t,e),t.startsWith("calypso_")||(0,i.includes)(c,t)){if(a){const t=a(e);e={...e,...t}}e=(0,i.omitBy)(e,(t=>void 0===t)),(0,s.Z)('Recording event "%s" with actual props %o',t,e),p(["recordEvent",t,e]),f.emit("record-event",t,e)}else(0,s.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(t,e,n){"use strict";n(9792)},6209:function(t,e,n){"use strict";n(4)},9358:function(t,e,n){"use strict";var r=n(8049),o=n.n(r);e.Z=o()("calypso:analytics")},1694:function(t,e,n){"use strict";n(9358)},4:function(t,e,n){"use strict";n(8032)},849:function(t,e,n){"use strict";n.d(e,{bU:function(){return p}});var r=n(7896),o=n(9307),i=n(4333),s=n(5736),c=n(9196);const a=(0,c.createContext)(null);function u(){var t,e;return function(t=""){if(!t)return"";const e=t.toLowerCase();return(["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"].includes(e)?e.replace("_","-"):e.replace(/([-_].*)$/i,""))||"en"}(s.getLocaleData?null===(t=s.getLocaleData())||void 0===t||null===(e=t[""])||void 0===e?void 0:e.language:"")}function p(){const t=(0,c.useContext)(a),e=!!t,[n,r]=(0,c.useState)(u());return(0,c.useEffect)((()=>{if(!e)return r(u()),s.subscribe((()=>{r(u())}))}),[e]),t||n||"en"}(0,i.createHigherOrderComponent)((t=>e=>{const n=p();return(0,o.createElement)(t,(0,r.Z)({locale:n},e))}),"withLocale")},3340:function(t,e,n){"use strict";n.d(e,{hg:function(){return c},lZ:function(){return a},_W:function(){return p},Yt:function(){return f}});var r=n(8049);const o=n.n(r)()("lib/load-script/callback-handler"),i=new Map;function s(){return i}function c(t){return s().has(t)}function a(t,e){const n=s();c(t)?(o(`Adding a callback for an existing script from "${t}"`),n.get(t).add(e)):(o(`Adding a callback for a new script from "${t}"`),n.set(t,new Set([e])))}function u(t,e=null){const n=s(),r=n.get(t);if(r){o(`Executing callbacks for "${t}"`+(null===e?" with success":` with error "${e}"`)),r.forEach((t=>{"function"==typeof t&&t(e)})),n.delete(t)}}function p(){const t=this.getAttribute("src");o(`Handling successful request for "${t}"`),u(t),this.onload=null}function f(){const t=this.getAttribute("src");o(`Handling failed request for "${t}"`),u(t,new Error(`Failed to load script "${t}"`)),this.onerror=null}},5606:function(t,e,n){"use strict";n.d(e,{C:function(){return c},k:function(){return a}});var r=n(8049),o=n.n(r),i=n(3340);const s=o()("lib/load-script/dom-operations");function c(t){s(`Creating script element for "${t}"`);const e=document.createElement("script");return e.src=t,e.type="text/javascript",e.async=!0,e.onload=i._W,e.onerror=i.Yt,e}function a(t){s("Attaching element to head"),document.head.appendChild(t)}},4898:function(t,e,n){"use strict";n.d(e,{ve:function(){return c}});var r=n(8049),o=n.n(r),i=n(3340),s=n(5606);o()("package/load-script");function c(t,e){if(!(0,i.hg)(t)&&(0,s.k)((0,s.C)(t)),"function"!=typeof e)return new Promise(((e,n)=>{(0,i.lZ)(t,(t=>{null===t?e():n(t)}))}));(0,i.lZ)(t,e)}},3585:function(t,e,n){"use strict";var r=n(9307),o=n(849),i=n(5609),s=n(6656),c=n(9196),a=n(1202),u=n(8552),p=n(869);n(2779);e.Z=({onClose:t})=>{const[e,n]=(0,c.useState)(null),__=(0,s.useI18n)().__,f=(0,o.bU)();return(0,c.useEffect)((()=>{const t=(0,a.Z)();t.request=u.ZP,t.req.get({path:`/whats-new/list?_locale=${f}`,apiNamespace:"wpcom/v2"}).then((t=>{n(t)}))}),[f]),e?(0,r.createElement)(i.Guide,{className:"whats-new-guide__main",contentLabel:__("What's New at WordPress.com","full-site-editing"),finishButtonText:__("Close","full-site-editing"),onFinish:t},e.map(((t,n)=>(0,r.createElement)(p.Z,{pageNumber:n+1,isLastPage:n===e.length-1,description:t.description,heading:t.heading,imageSrc:t.imageSrc,link:t.link})))):null}},869:function(t,e,n){"use strict";var r=n(9307),o=n(6115),i=n(5609),s=n(6656),c=n(9196);e.Z=function({description:t,heading:e,imageSrc:n,isLastPage:a,link:u,pageNumber:p}){const __=(0,s.useI18n)().__;return(0,c.useEffect)((()=>{(0,o.jN)("wpcom_whats_new_slide_view",{slide_number:p,is_last_slide:a})}),[a,p]),(0,r.createElement)(i.GuidePage,{className:"whats-new-page__container"},(0,r.createElement)("div",{className:"whats-new-page__text"},e&&(0,r.createElement)("h1",{className:"whats-new-page__heading"},e),(0,r.createElement)("div",{className:"whats-new-page__description"},t&&(0,r.createElement)("p",null,t),u&&(0,r.createElement)(i.Button,{className:"whats-new-page__link",href:u,isTertiary:!0,isLink:!0,target:"_blank"},__("Learn more","full-site-editing")))),(0,r.createElement)("div",{className:"whats-new-page__visual"},n&&(0,r.createElement)("img",{src:n,alt:t,"aria-hidden":"true",className:"whats-new-page__image"})))}},8552:function(t,e,n){"use strict";var r=n(8049),o=n.n(r),i=n(8650),s=n.n(i),c=n(8767),a=n(2884),u=n.n(a);const p=o()("wpcom-proxy-request"),f="https://public-api.wordpress.com",l=window.location.protocol+"//"+window.location.host,h=(()=>{let t=!1;try{window.postMessage({toString:function(){t=!0}},"*")}catch(e){}return t})(),d=(()=>{try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(t){return!1}})();let y,m=null,g=!1;const w={},v=!!window.ProgressEvent&&!!window.FormData;p('using "origin": %o',l);const b=(t,e)=>{const n=Object.assign({},t);p("request(%o)",n),m||P();const r=(0,c.Z)();n.callback=r,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=v,n.method=String(n.method||"GET").toUpperCase(),p("params object: %o",n);const o=new window.XMLHttpRequest;if(o.params=n,w[r]=o,"function"==typeof e){let t=!1;const n=n=>{if(t)return;t=!0;const r=n.response||o.response;p("body: ",r),p("headers: ",n.headers),e(null,r,n.headers)},r=n=>{if(t)return;t=!0;const r=n.error||n.err||n;p("error: ",r),p("headers: ",n.headers),e(r,null,n.headers)};o.addEventListener("load",n),o.addEventListener("abort",r),o.addEventListener("error",r)}return"function"==typeof n.onStreamRecord&&delete n.onStreamRecord,g?C(n):(p("buffering API request since proxying <iframe> is not yet loaded"),y.push(n)),o},_=(t,e)=>"function"==typeof e?b(t,e):new Promise(((e,n)=>{b(t,((t,r)=>{t?n(t):e(r)}))}));function C(t){p("sending API request to proxy <iframe> %o",t),t.formData&&function(t){if(!window.chrome||!d)return;for(let e=0;e<t.length;e++){const n=E(t[e][1]);n&&(t[e][1]=new window.File([n],n.name,{type:n.type}))}}(t.formData),m.contentWindow.postMessage(h?JSON.stringify(t):t,f)}function S(t){return t&&"[object File]"===Object.prototype.toString.call(t)}function E(t){return S(t)?t:"object"==typeof t&&S(t.fileContents)?t.fileContents:null}function P(){p("install()"),m&&(p("uninstall()"),window.removeEventListener("message",j),document.body.removeChild(m),g=!1,m=null),y=[],window.addEventListener("message",j),m=document.createElement("iframe"),m.src=f+"/wp-admin/rest-proxy/?v=2.0#"+l,m.style.display="none",document.body.appendChild(m)}function j(t){if(p("onmessage"),t.origin!==f)return void p("ignoring message... %o !== %o",t.origin,f);if(t.source!==m.contentWindow)return void p("ignoring message... iframe elements do not match");let{data:e}=t;if(!e)return p("no `data`, bailing");if("ready"===e)return void function(){if(p('proxy <iframe> "load" event'),g=!0,y){for(let t=0;t<y.length;t++)C(y[t]);y=null}}();if(h&&"string"==typeof e&&(e=JSON.parse(e)),e.upload||e.download)return function(t){p('got "progress" event: %o',t);const e=w[t.callbackId];if(e){const n=new(s())("progress",t);(t.upload?e.upload:e).dispatchEvent(n)}}(e);if(!e.length)return p("`e.data` doesn't appear to be an Array, bailing...");const n=e[e.length-1];if(!(n in w))return p("bailing, no matching request with callback: %o",n);const r=w[n],{params:o}=r,i=e[0];let c=e[1];const a=e[2];if(207===c||delete w[n],o.metaAPI?c="metaAPIupdated"===i?200:500:p("got %o status code for URL: %o",c,o.path),"object"==typeof a&&(a.status=c,l=a["Content-Type"],/^application[/]x-ndjson($|;)/.test(l))){A(r,new Error("stream mode processing is not yet implemented for wpcom-proxy-request"),a)}else{var l;if(c&&2===Math.floor(c/100))!function(t,e,n){const r=new(s())("load");r.data=r.body=r.response=e,r.headers=n,t.dispatchEvent(r)}(r,i,a);else{A(r,u()(o,c,i),a)}}}function A(t,e,n){const r=new(s())("error");r.error=r.err=e,r.headers=n,t.dispatchEvent(r)}e.ZP=_},1202:function(t,e,n){"use strict";n.d(e,{Z:function(){return g}});var r=n(8049),o=n.n(r),i=n(9728),s=n(7114),c=n(35),a=n(8068),u=n(2836),p=n(6870),f=n(2579),l=n(4308),h=n(3818),d=n(781),y=n(3918);const m=o()("wpcom");function g(t,e){if(!(this instanceof g))return new g(t,e);"function"==typeof t&&(e=t,t=null),t&&(m("Token defined: %s…",t.substring(0,6)),this.token=t);this.request=e||((t,e)=>{m("No request handler. Failing."),e(new Error("No request handler provided"))}),this.req=new d.Z(this),this.pinghub=new h.Z(this),this.apiVersion="1.1"}g.prototype.marketing=function(){return new a.Z(this)},g.prototype.me=function(){return new u.Z(this)},g.prototype.domains=function(){return new c.Z(this)},g.prototype.domain=function(t){return new s.Z(t,this)},g.prototype.site=function(t){return new f.Z(t,this)},g.prototype.users=function(){return new l.Z(this)},g.prototype.plans=function(){return new p.Z(this)},g.prototype.batch=function(){return new i.Z(this)},g.prototype.freshlyPressed=function(t,e){return this.req.get("/freshly-pressed",t,e)},g.prototype.sendRequest=function(t,e,n,r){const o="WARN! Don use `sendRequest() anymore. Use `this.req` method.";return console&&console.warn?console.warn(o):console.log(o),y.Z.call(this,t,e,n,r)},g.Batch=i.Z,g.Domain=s.Z,g.Domains=c.Z,g.Marketing=a.Z,g.Me=u.Z,g.Pinghub=h.Z,g.Plans=p.Z,g.Request=d.Z,g.Site=f.Z,g.Users=l.Z,Promise.prototype.timeout||(Promise.prototype.timeout=function(t=3e4){let e;const n=new Promise(((n,r)=>{e=setTimeout((()=>{r(new Error("Action timed out while waiting for response."))}),t)})),r=()=>(clearTimeout(e),this);return Promise.race([this.then(r).catch(r),n])})},9728:function(t,e){"use strict";class n{constructor(t){if(!(this instanceof n))return new n(t);this.wpcom=t,this.urls=[]}add(t){return this.urls.push(t),this}run(t={},e){return"function"==typeof t&&(e=t,t={}),t.urls=this.urls,this.wpcom.req.get("/batch",t,e)}}e.Z=n},6398:function(t,e){"use strict";class n{constructor(t,e){if(!(this instanceof n))return new n(t,e);this._domain=t,this._subpath="/domains/"+this._domain+"/dns",this.wpcom=e}add(t,e,n){return"function"==typeof e&&(n=e,e={}),this.wpcom.req.post(this._subpath+"/add",e,t,n)}delete(t,e,n){return this.wpcom.req.post(this._subpath+"/delete",e,t,n)}}e.Z=n},4449:function(t,e){"use strict";class n{constructor(t,e,r){if(!(this instanceof n))return new n(t,e,r);t&&(this._email=t),this._domain=e,this._subpath="/domains/"+this._domain+"/email/",this.wpcom=r}forward(t,e,n){const r={destination:t};return this.wpcom.req.post(this._subpath+this._email,e,r,n)}add(t,e,n,r){"function"==typeof n&&(r=n,n={});const o={mailbox:t,destination:e};return this.wpcom.req.post(this._subpath+"new",n,o,r)}delete(t,e,n){return this.wpcom.req.del(this._subpath+t+"/delete",e,n)}}e.Z=n},7114:function(t,e,n){"use strict";var r=n(6666),o=n(6398),i=n(4449);const s="/domains/";class c{constructor(t,e){if((0,r.Z)(this,"checkAuthCode",(function(t,e){return this.wpcom.req.get(`${s+encodeURIComponent(this._id)}/inbound-transfer-check-auth-code`,{auth_code:t},e)})),(0,r.Z)(this,"isDomainAvailable",(function(t,e,n){return this.wpcom.req.get(`${s+encodeURIComponent(this._id)}/is-available`,{blog_id:t,apiVersion:"1.3",is_cart_pre_check:e},n)})),!(this instanceof c))return new c(t,e);this._id=t,this.wpcom=e}status(t,e){return this.wpcom.req.get(s+this._id+"/status",t,e)}isAvailable(t,e){return this.wpcom.req.get(s+this._id+"/is-available",t,e)}isMappable(t,e){return this.wpcom.req.get(s+this._id+"/is-mappable",t,e)}canRedirect(t,e,n){const r=s+t+"/"+this._id+"/can-redirect";return this.wpcom.req.get(r,e,n)}emailForwards(t,e){return this.wpcom.req.get(s+this._id+"/email",t,e)}nameserversList(t,e){return this.wpcom.req.get(s+this._id+"/nameservers",t,e)}updateNameservers(t,e,n){const r={nameservers:t};return this.wpcom.req.post(s+this._id+"/nameservers",e,r,n)}dnsList(t,e){return this.wpcom.req.get(s+this._id+"/dns",t,e)}googleAppsList(t,e){return this.wpcom.req.get(s+this._id+"/google-apps",t,e)}resendICANN(t,e){return this.wpcom.req.post(s+this._id+"/resend-icann",t,e)}email(t){return new i.Z(t,this._id,this.wpcom)}dns(){return new o.Z(this._id,this.wpcom)}mappingSetupInfo(t,e,n){return this.wpcom.req.get(s+this._id+"/mapping-setup-info/"+t,e,n)}mappingStatus(t,e){return this.wpcom.req.get(s+this._id+"/mapping-status",t,e)}updateConnectionModeAndGetMappingStatus(t,e,n){const r={mode:t};return this.wpcom.req.post(s+this._id+"/mapping-status",e,r,n)}}e.Z=c},35:function(t,e){"use strict";const n="/domains/";class r{constructor(t){if(!(this instanceof r))return new r(t);this.wpcom=t}suggestions(t,e){return"string"==typeof t&&(t={query:t}),this.wpcom.req.get(n+"suggestions",t,e)}suggestionsExamples(t,e){return this.wpcom.req.get(n+"suggestions/examples",t,e)}supportedCountries(t,e){return this.wpcom.req.get(n+"supported-countries",t,e)}supportedStates(t,e,r){const o=n+"supported-states/"+t;return this.wpcom.req.get(o,e,r)}}e.Z=r},8068:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(5005);class o{constructor(t){if(!(this instanceof o))return new o(t);this.wpcom=t}survey(t,e){return new r.Z(t,e,this.wpcom)}}},5005:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});class r{constructor(t,e,n){if(!t)throw new TypeError("`id` survey is not correctly defined");if(!(this instanceof r))return new r(t,e,n);"object"==typeof e?this.wpcom=e:(this._siteId=e,this.wpcom=n),this._id=t,this._responses={}}setSiteId(t){return this._siteId=t,this}addResponse(t,e){return this._responses=Object.assign({},this._responses,{[t]:e}),this}addResponses(t){return this._responses=Object.assign({},this._responses,t),this}submit(t={},e={},n){return e.survey_id=this._id,e.site_id=e.site_id||this._siteId,e.survey_responses=e.survey_responses||this._responses,this.wpcom.req.post("/marketing/survey",t,e,n)}}},2921:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});const r="/me/connected-applications/";class o{constructor(t,e){if(!(this instanceof o))return new o(t,e);this._id=t,this.wpcom=e}get(t,e){return this.wpcom.req.get(r+this._id,t,e)}delete(t,e){return this.wpcom.req.del(r+this._id+"/delete",t,e)}}},2836:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(2921),o=n(2769),i=n(2695),s=n(7699),c=n(9814);function a(t){if(!(this instanceof a))return new a(t);this.wpcom=t}a.prototype.get=function(t,e){return this.wpcom.req.get("/me",t,e)},a.prototype.billingHistory=function(t,e){return this.wpcom.req.get("/me/billing-history",t,e)},a.prototype.postsList=function(t,e){return this.wpcom.req.get("/me/posts",t,e)},a.prototype.sites=function(t,e){return this.wpcom.req.get("/me/sites",t,e)},a.prototype.likes=function(t,e){return this.wpcom.req.get("/me/likes",t,e)},a.prototype.connectedApps=function(t,e){return this.wpcom.req.get("/me/connected-applications",t,e)},a.prototype.keyringConnections=function(t,e){return this.wpcom.req.get("/me/connections",t,e)},a.prototype.publicizeConnections=function(t,e){return this.wpcom.req.get("/me/publicize-connections",t,e)},a.prototype.settings=function(){return new s.Z(this.wpcom)},a.prototype.connectedApp=function(t){return new r.Z(t,this.wpcom)},a.prototype.publicizeConnection=function(t){return new i.Z(t,this.wpcom)},a.prototype.twoStep=function(){return new c.Z(this.wpcom)},a.prototype.keyringConnection=function(t){return new o.Z(t,this.wpcom)}},2769:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});const r="/me/connections/";class o{constructor(t,e){if(!(this instanceof o))return new o(t,e);this._id=t,this.wpcom=e}get(t,e){return this.wpcom.req.get({path:r+this._id,apiNamespace:"wpcom/v2"},t,e)}delete(t,e){return this.wpcom.req.get({path:r+this._id,apiNamespace:"wpcom/v2",method:"DELETE"},t,e)}}},2695:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});const r="/me/publicize-connections/";class o{constructor(t,e){if(!(this instanceof o))return new o(t,e);this._id=t,this.wpcom=e}get(t,e){return this.wpcom.req.get(r+this._id,t,e)}add(t,e,n){return this.wpcom.req.post(r+"new",t,e,n)}update(t,e,n){return this.wpcom.req.put(r+this._id,t,e,n)}delete(t,e){return this.wpcom.req.del(r+this._id+"/delete",t,e)}}},7699:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(142),o=n(9283);function i(t){if(!(this instanceof i))return new i(t);this.wpcom=t}i.prototype.get=function(t,e){return this.wpcom.req.get("/me/settings",t,e)},i.prototype.update=function(t,e,n){return this.wpcom.req.put("/me/settings/",t,e,n)},i.prototype.profileLinks=function(){return new o.Z(this.wpcom)},i.prototype.password=function(){return new r.Z(this.wpcom)}},142:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});class r{constructor(t){if(!(this instanceof r))return new r(t);this.wpcom=t}validate(t,e,n){return this.wpcom.req.post("/me/settings/password/validate",e,{password:t},n)}}},9283:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});const r="/me/settings/profile-links";function o(t){if(!(this instanceof o))return new o(t);this.wpcom=t}o.prototype.get=function(t,e){return this.wpcom.req.get(r,t,e)},o.prototype.mine=o.prototype.get,o.prototype.add=function(t,e,n){"function"==typeof e&&(n=e,e={}),t instanceof Array||(t=[t]),e.apiVersion="1.2";return this.wpcom.req.post("/me/settings/profile-links/new",e,{links:t},n)},o.prototype.del=function(t,e,n){const o=r+"/"+t+"/delete";return this.wpcom.req.del(o,e,n)},o.prototype.delete=o.prototype.del},9814:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(4086);class o{constructor(t){if(!(this instanceof o))return new o(t);this.wpcom=t}get(t,e){return this.wpcom.req.get("/me/two-step/",t,e)}sms(){return new r.Z(this.wpcom)}}},4086:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});class r{constructor(t){if(!(this instanceof r))return new r(t);this.wpcom=t}send(t,e){return this.wpcom.req.post("/me/two-step/sms/new",t,e)}}},6870:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});const r="/plans";class o{constructor(t){if(!(this instanceof o))return new o(t);this.wpcom=t}list(t,e){return this.wpcom.req.get(r,t,e)}features(t,e){return this.wpcom.req.get("/plans/features",t,e)}}},209:function(t,e){"use strict";e.Z=[{name:"categoriesList",subpath:"categories"},{name:"commentsList",subpath:"comments"},{name:"domainsList",subpath:"domains"},{name:"embedsList",subpath:"embeds"},{name:"followsList",subpath:"follows"},{name:"mediaList",subpath:"media"},{name:"pageTemplates",subpath:"page-templates"},{name:"pluginsList",subpath:"plugins"},{name:"postsList",subpath:"posts"},{name:"postTypesList",subpath:"post-types"},{name:"shortcodesList",subpath:"shortcodes"},{name:"stats",subpath:"stats"},{name:"statsClicks",subpath:"stats/clicks"},{name:"statsCommentFollowers",subpath:"stats/comment-followers"},{name:"statsComments",subpath:"stats/comments"},{name:"statsCountryViews",subpath:"stats/country-views"},{name:"statsFollowers",subpath:"stats/followers"},{name:"statsInsights",subpath:"stats/insights"},{name:"statsPublicize",subpath:"stats/publicize"},{name:"statsReferrers",subpath:"stats/referrers"},{name:"statsSearchTerms",subpath:"stats/search-terms"},{name:"statsStreak",subpath:"stats/streak"},{name:"statsSummary",subpath:"stats/summary"},{name:"statsTags",subpath:"stats/tags"},{name:"statsTopAuthors",subpath:"stats/top-authors"},{name:"statsTopPosts",subpath:"stats/top-posts"},{name:"statsVideoPlays",subpath:"stats/video-plays"},{name:"statsVisits",subpath:"stats/visits"},{name:"tagsList",subpath:"tags"},{name:"usersList",subpath:"users"},{name:"wpcomPluginsList",subpath:"wpcom-plugins"}]},8729:function(t,e){"use strict";e.Z=[{name:"likesList",subpath:"likes"},{name:"subscribersList",subpath:"subscribers"}]},3388:function(t,e,n){"use strict";function r(t,e,n){if(!e)throw new Error("`site id` is not correctly defined");if(!(this instanceof r))return new r(t,e,n);this.wpcom=n,this._sid=e,this._slug=t}n.d(e,{Z:function(){return r}}),r.prototype.slug=function(t){this._slug=t},r.prototype.get=function(t,e){const n="/sites/"+this._sid+"/categories/slug:"+this._slug;return this.wpcom.req.get(n,t,e)},r.prototype.add=function(t,e,n){const r="/sites/"+this._sid+"/categories/new";return this.wpcom.req.post(r,t,e,n)},r.prototype.update=function(t,e,n){const r="/sites/"+this._sid+"/categories/slug:"+this._slug;return this.wpcom.req.put(r,t,e,n)},r.prototype.delete=r.prototype.del=function(t,e){const n="/sites/"+this._sid+"/categories/slug:"+this._slug+"/delete";return this.wpcom.req.del(n,t,e)}},1832:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(7369);function o(t,e,n,r){if(!n)throw new Error("`site id` is not correctly defined");if(!(this instanceof o))return new o(t,e,n,r);this.wpcom=r,this._cid=t,this._pid=e,this._sid=n}o.prototype.get=function(t,e){const n="/sites/"+this._sid+"/comments/"+this._cid;return this.wpcom.req.get(n,t,e)},o.prototype.replies=function(t,e){const n="/sites/"+this._sid+"/posts/"+this._pid+"/replies/";return this.wpcom.req.get(n,t,e)},o.prototype.add=function(t,e,n){void 0===n&&(void 0===e?(e=t,t={}):"function"==typeof e&&(n=e,e=t,t={})),e="string"==typeof e?{content:e}:e;const r="/sites/"+this._sid+"/posts/"+this._pid+"/replies/new";return this.wpcom.req.post(r,t,e,n)},o.prototype.update=function(t,e,n){"function"==typeof e&&(n=e,e=t,t={}),e="string"==typeof e?{content:e}:e;const r="/sites/"+this._sid+"/comments/"+this._cid;return this.wpcom.req.put(r,t,e,n)},o.prototype.reply=function(t,e,n){"function"==typeof e&&(n=e,e=t,t={}),e="string"==typeof e?{content:e}:e;const r="/sites/"+this._sid+"/comments/"+this._cid+"/replies/new";return this.wpcom.req.post(r,t,e,n)},o.prototype.del=o.prototype.delete=function(t,e){const n="/sites/"+this._sid+"/comments/"+this._cid+"/delete";return this.wpcom.req.del(n,t,e)},o.prototype.like=function(){return(0,r.Z)(this._cid,this._sid,this.wpcom)},o.prototype.likesList=function(t,e){const n="/sites/"+this._sid+"/comments/"+this._cid+"/likes";return this.wpcom.req.get(n,t,e)}},7369:function(t,e,n){"use strict";function r(t,e,n){if(!e)throw new Error("`site id` is not correctly defined");if(!t)throw new Error("`comment id` is not correctly defined");if(!(this instanceof r))return new r(t,e,n);this.wpcom=n,this._cid=t,this._sid=e}n.d(e,{Z:function(){return r}}),r.prototype.mine=r.prototype.state=function(t,e){const n="/sites/"+this._sid+"/comments/"+this._cid+"/likes/mine";return this.wpcom.req.get(n,t,e)},r.prototype.add=function(t,e){const n="/sites/"+this._sid+"/comments/"+this._cid+"/likes/new";return this.wpcom.req.post(n,t,e)},r.prototype.del=r.prototype.delete=function(t,e){const n="/sites/"+this._sid+"/comments/"+this._cid+"/likes/mine/delete";return this.wpcom.req.del(n,t,e)}},2096:function(t,e){"use strict";class n{constructor(t,e){if(!t)throw new Error("`site id` is not correctly defined");if(!(this instanceof n))return new n(t,e);this.wpcom=e,this._sid=t,this.path=`/sites/${this._sid}/vouchers`}list(t={},e){return t.apiNamespace="wpcom/v2",this.wpcom.req.get(this.path,t,e)}get(t,e={},n){return e.apiNamespace="wpcom/v2",this.wpcom.req.get(`${this.path}/${t}`,e,n)}assign(t,e={},n){return e.apiNamespace="wpcom/v2",this.wpcom.req.post(`${this.path}/${t}/assign`,e,{},n)}}e.Z=n},7569:function(t,e){"use strict";class n{constructor(t,e){if(!(this instanceof n))return new n(t,e);this._sid=t,this.path=`/sites/${this._sid}/domains`,this.wpcom=e}getPrimary(t,e){return this.wpcom.req.get(`${this.path}/primary`,t,e)}setPrimary(t,e){return this.wpcom.req.put(`${this.path}/primary`,{},{domain:t},e)}getRedirect(t,e){return this.wpcom.req.get(`${this.path}/redirect`,t,e)}setRedirect(t,e){return"string"==typeof t&&(t={location:t}),this.wpcom.req.put(`${this.path}/redirect`,{},t,e)}}e.Z=n},8447:function(t,e,n){"use strict";function r(t,e){if(!t)throw new Error("`site id` is not correctly defined");if(!(this instanceof r))return new r(t,e);this.wpcom=e,this._sid=t}n.d(e,{Z:function(){return r}}),r.prototype.mine=r.prototype.state=function(t,e){const n="/sites/"+this._sid+"/follows/mine";return this.wpcom.req.get(n,t,e)},r.prototype.follow=r.prototype.add=function(t,e){const n="/sites/"+this._sid+"/follows/new";return this.wpcom.req.put(n,t,null,e)},r.prototype.unfollow=r.prototype.del=function(t,e){const n="/sites/"+this._sid+"/follows/mine/delete";return this.wpcom.req.del(n,t,null,e)}},2579:function(t,e,n){"use strict";var r=n(8049),o=n.n(r),i=n(209),s=n(3388),c=n(1832),a=n(2096),u=n(7569),p=n(8447),f=n(8837),l=n(361),h=n(3164),d=n(7187),y=n(150),m=n(5489),g=n(1986),w=n(1753),v=n(4866),b=n(9426);const _=o()("wpcom:site");class C{constructor(t,e){if(!(this instanceof C))return new C(t,e);this.wpcom=e,_("set %o site id",t),this._id=encodeURIComponent(t),this.path=`/sites/${this._id}`}get(t,e){return this.wpcom.req.get(this.path,t,e)}post(t){return new h.Z(t,this._id,this.wpcom)}addPost(t,e){return new h.Z(null,this._id,this.wpcom).add(t,e)}deletePost(t,e){return new h.Z(t,this._id,this.wpcom).delete(e)}media(t){return new f.Z(t,this._id,this.wpcom)}addMediaFiles(t,e,n){return new f.Z(null,this._id,this.wpcom).addFiles(t,e,n)}addMediaUrls(t,e,n){return new f.Z(null,this._id,this.wpcom).addUrls(t,e,n)}deleteMedia(t,e){return new f.Z(t,this._id,this.wpcom).del(e)}comment(t){return new c.Z(t,null,this._id,this.wpcom)}follow(){return new p.Z(this._id,this.wpcom)}plugin(t){return new l.Z(t,this._id,this.wpcom)}wpcomPlugin(t){return new v.Z(t,this._id,this.wpcom)}category(t){return new s.Z(t,this._id,this.wpcom)}tag(t){return new m.Z(t,this._id,this.wpcom)}taxonomy(t){return new g.Z(t,this._id,this.wpcom)}creditVouchers(){return new a.Z(this._id,this.wpcom)}postType(t){return new d.Z(t,this._id,this.wpcom)}settings(){return new y.Z(this._id,this.wpcom)}domain(){return new u.Z(this._id,this.wpcom)}postCounts(t="post",e,n){return"function"==typeof e&&(n=e,e={}),this.wpcom.req.get(`${this.path}/post-counts/${t}`,e,n)}renderShortcode(t,e,n){if("string"!=typeof t)throw new TypeError("expected a url String");return"function"==typeof e&&(n=e,e={}),(e=e||{}).shortcode=t,this.wpcom.req.get(`${this.path}/shortcodes/render`,e,n)}renderEmbed(t,e,n){if("string"!=typeof t)throw new TypeError("expected an embed String");return"function"==typeof e&&(n=e,e={}),(e=e||{}).embed_url=t,this.wpcom.req.get(`${this.path}/embeds/render`,e,n)}statsReferrersSpamNew(t,e){const n=`${this.path}/stats/referrers/spam/new`;return this.wpcom.req.post(n,{domain:t},null,e)}statsReferrersSpamDelete(t,e){const n=`${this.path}/stats/referrers/spam/delete`;return this.wpcom.req.post(n,{domain:t},null,e)}statsVideo(t,e,n){const r=`${this.path}/stats/video/${t}`;return"function"==typeof e&&(n=e,e={}),this.wpcom.req.get(r,e,n)}statsPostViews(t,e,n){const r=`${this.path}/stats/post/${t}`;return"function"==typeof e&&(n=e,e={}),this.wpcom.req.get(r,e,n)}wordAds(){return new w.Z(this._id,this.wpcom)}addDomainMapping(t,e,n,r){return this.wpcom.req.post(`${this.path}/add-domain-mapping`,n,{domain:t,...e},r)}addVipDomainMapping(t,e,n){return this.wpcom.req.post(`${this.path}/vip-domain-mapping`,e,{domain:t},n)}}(0,b.Z)(C,i.Z,((t,e)=>`/sites/${e._id}/${t.subpath}`)),e.Z=C},8837:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(8049),o=n.n(r),i=n(6426);const s=o()("wpcom:media");function c(t){const e=[];let n,r,o,c;for(t=Array.isArray(t)?t:[t],n=0;n<t.length;n++){r=t[n],"string"==typeof r&&(r=(0,i.U)(r));const a=!!r._readableState,u="undefined"!=typeof File&&r instanceof File;if(s("isStream: %s",a),s("isFile: %s",u),!u&&!a){for(o in r)s("add %o => %o",o,r[o]),"file"!==o&&(c="attrs["+n+"]["+o+"]",e.push([c,r[o]]));r=r.file,"string"==typeof r&&(r=(0,i.U)(r))}e.push(["media[]",r])}return e}function a(t,e,n){if(!(this instanceof a))return new a(t,e,n);this.wpcom=n,this._sid=e,this._id=t,this._id||s("WARN: media `id` is not defined")}a.prototype.get=function(t={},e){t.apiVersion=t.apiVersion||"1.2";const n="/sites/"+this._sid+"/media/"+this._id;return this.wpcom.req.get(n,t,e)},a.prototype.update=function(t,e,n){const r={path:"/sites/"+this._sid+"/media/"+this._id};return this.wpcom.req.put(r,t,e,n)},a.prototype.edit=function(t,e,n){"function"!=typeof e&&e||(n=e,e=t,t={});const r={path:"/sites/"+this._sid+"/media/"+this._id+"/edit"};if(e&&e.media){r.formData=[["media",e.media]],delete e.media;for(const t in e)r.formData.push([`attrs[${t}]`,e[t]]);e=null}return this.wpcom.req.put(r,t,e,n)},a.prototype.addFiles=function(t,e,n){void 0===n&&(void 0===e?(e=t,t={}):"function"==typeof e&&(n=e,e=t,t={}));const r={path:"/sites/"+this._sid+"/media/new",formData:c(e)};return this.wpcom.req.post(r,t,null,n)},a.prototype.addUrls=function(t,e,n){void 0===n&&(void 0===e?(e=t,t={}):"function"==typeof e&&(n=e,e=t,t={}));const r="/sites/"+this._sid+"/media/new",o={media_urls:[]};let i,s,c,a;for(e=Array.isArray(e)?e:[e],i=0;i<e.length;i++){if(s=e[i],"string"==typeof s)c=s;else{for(a in o.attrs||(o.attrs=[]),o.attrs[i]={},s)"url"!==a&&(o.attrs[i][a]=s[a]);c=s.url}o.media_urls.push(c)}return this.wpcom.req.post(r,t,o,n)},a.prototype.delete=a.prototype.del=function(t,e){const n="/sites/"+this._sid+"/media/"+this._id+"/delete";return this.wpcom.req.del(n,t,e)}},361:function(t,e){"use strict";class n{constructor(t,e,r){if(!(this instanceof n))return new n(t,e,r);if(!t)throw new Error("`slug` is not correctly defined");this._slug=encodeURIComponent(t),this._sid=e,this.wpcom=r;const o=`/sites/${this._sid}/plugins`;this.pluginPath=`${o}/${this._slug}`}get(t,e){return this.wpcom.req.get(this.pluginPath,t,e)}update(t,e,n){return this.wpcom.req.put(this.pluginPath,t,e,n)}updateVersion(t,e){return this.wpcom.req.put(`${this.pluginPath}/update`,t,e)}install(t,e){return this.wpcom.req.put(`${this.pluginPath}/install`,t,e)}delete(t,e){return this.wpcom.req.put(`${this.pluginPath}/delete`,t,e)}activate(t,e){return this.update(t,{active:!0},e)}deactivate(t,e){return this.update(t,{active:!1},e)}enableAutoupdate(t,e){return this.update(t,{autoupdate:!0},e)}disableAutoupdate(t,e){return this.update(t,{autoupdate:!1},e)}}e.Z=n},7187:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});class r{constructor(t,e,n){if(!e)throw new TypeError("`siteId` is not correctly defined");if(!t)throw new TypeError("`postType` is not correctly defined");if(!(this instanceof r))return new r(t,e,n);this.wpcom=n,this._siteId=encodeURIComponent(e),this._postType=encodeURIComponent(t),this._rootPath=`/sites/${this._siteId}/post-types/${this._postType}`}taxonomiesList(t,e){const n=`${this._rootPath}/taxonomies`;return this.wpcom.req.get(n,t,e)}}},3164:function(t,e,n){"use strict";var r=n(8049),o=n.n(r),i=n(8729),s=n(1832),c=n(9932),a=n(3185),u=n(2250),p=n(9426);const f=o()("wpcom:post");class l{constructor(t,e,n){if(!(this instanceof l))return new l(t,e,n);this.wpcom=n,this._sid=e,this.path=`/sites/${this._sid}/posts`,"object"!=typeof(t=t||{})?this._id=t:(this._id=t.id,this._slug=t.slug)}id(t){this._id=t}slug(t){this._slug=t}getPostPath(){return`${this.path}/${this._id}`}get(t,e){return!this._id&&this._slug?this.getBySlug(t,e):this.wpcom.req.get(this.getPostPath(),t,e)}getBySlug(t,e){return this.wpcom.req.get(`${this.path}/slug:${this._slug}`,t,e)}add(t,e,n){return void 0===n&&(void 0===e?(e=t,t={}):"function"==typeof e&&(n=e,e=t,t={})),this.wpcom.req.post(`${this.path}/new`,t,e).then((t=>{if(this._id=t.ID,f("Set post _id: %s",this._id),this._slug=t.slug,f("Set post _slug: %s",this._slug),"function"!=typeof n)return Promise.resolve(t);n(null,t)})).catch((t=>{if("function"!=typeof n)return Promise.reject(t);n(t)}))}update(t,e,n){return this.wpcom.req.put(this.getPostPath(),t,e,n)}delete(t,e){const n=`${this.getPostPath()}/delete`;return this.wpcom.req.del(n,t,e)}del(t,e){return this.delete(t,e)}restore(t,e){return this.wpcom.req.put(`${this.getPostPath()}/restore`,t,null,e)}related(t,e){return this.wpcom.req.put(`${this.getPostPath()}/related`,t,null,e)}comment(t){return new s.Z(t,this._id,this._sid,this.wpcom)}comments(t,e){return new s.Z(null,this._id,this._sid,this.wpcom).replies(t,e)}like(){return new c.Z(this._id,this._sid,this.wpcom)}reblog(){return new a.Z(this._id,this._sid,this.wpcom)}subscriber(){return new u.Z(this._id,this._sid,this.wpcom)}}(0,p.Z)(l,i.Z,((t,e)=>`/sites/${e._sid}/posts/${e._id}/${t.subpath}`)),e.Z=l},9932:function(t,e,n){"use strict";function r(t,e,n){if(!e)throw new Error("`site id` is not correctly defined");if(!t)throw new Error("`post id` is not correctly defined");if(!(this instanceof r))return new r(t,e,n);this.wpcom=n,this._pid=t,this._sid=e}n.d(e,{Z:function(){return r}}),r.prototype.mine=r.prototype.state=function(t,e){const n="/sites/"+this._sid+"/posts/"+this._pid+"/likes/mine";return this.wpcom.req.get(n,t,e)},r.prototype.add=function(t,e){const n="/sites/"+this._sid+"/posts/"+this._pid+"/likes/new";return this.wpcom.req.put(n,t,null,e)},r.prototype.del=r.prototype.delete=function(t,e){const n="/sites/"+this._sid+"/posts/"+this._pid+"/likes/mine/delete";return this.wpcom.req.del(n,t,e)}},3185:function(t,e,n){"use strict";function r(t,e,n){if(!e)throw new Error("`site id` is not correctly defined");if(!t)throw new Error("`post id` is not correctly defined");if(!(this instanceof r))return new r(t,e,n);this.wpcom=n,this._pid=t,this._sid=e}n.d(e,{Z:function(){return r}}),r.prototype.mine=r.prototype.state=function(t,e){const n="/sites/"+this._sid+"/posts/"+this._pid+"/reblogs/mine";return this.wpcom.req.get(n,t,e)},r.prototype.add=function(t,e,n){if("function"==typeof e&&(n=e,e=t,t={}),e&&!e.destination_site_id)return n(new Error("destination_site_id is not defined"));const r="/sites/"+this._sid+"/posts/"+this._pid+"/reblogs/new";return this.wpcom.req.put(r,t,e,n)},r.prototype.to=function(t,e,n){return void 0===n&&(void 0===e?e=null:"function"==typeof e&&(n=e,e=null)),this.add({note:e,destination_site_id:t},n)}},2250:function(t,e){"use strict";class n{constructor(t,e,r){if(!e)throw new Error("`side id` is not correctly defined");if(!t)throw new Error("`post id` is not correctly defined");if(!(this instanceof n))return new n(t,e,r);this.wpcom=r,this._id=t,this._sid=e,this.path=`/sites/${this._sid}/posts/${this._id}/subscribers`}mine(t,e){return this.wpcom.req.get(`${this.path}/mine`,t,e)}add(t,e){return this.wpcom.req.put(`${this.path}/new`,t,null,e)}del(t,e){return this.wpcom.req.del(`${this.path}/mine/delete`,t,e)}}n.prototype.state=n.prototype.mine,n.prototype.delete=n.prototype.del,e.Z=n},150:function(t,e){"use strict";class n{constructor(t,e){if(!t)throw new Error("`site id` is not correctly defined");if(!(this instanceof n))return new n(t,e);this.wpcom=e,this._sid=t,this.path=`/sites/${this._sid}/settings`}get(t,e){return this.wpcom.req.get(this.path,t,e)}getOption(t,e=(()=>{})){const n={fields:"settings"};return new Promise(((r,o)=>{this.wpcom.req.get(this.path,n,((n,i)=>{if(n)return e(n),o(n);if(!i)return e(),r();const s=i.settings;return s&&void 0!==s[t]?(e(null,s[t]),r(s[t])):(e(null,i),r(i))}))}))}update(t,e,n){return this.wpcom.req.put(this.path,t,e,n)}setOption(t,e,n){return this.wpcom.req.put(this.path,{},{[t]:e},n)}}e.Z=n},5489:function(t,e,n){"use strict";function r(t,e,n){if(!e)throw new Error("`site id` is not correctly defined");if(!(this instanceof r))return new r(t,e,n);this.wpcom=n,this._sid=e,this._slug=t}n.d(e,{Z:function(){return r}}),r.prototype.slug=function(t){this._slug=t},r.prototype.get=function(t,e){const n="/sites/"+this._sid+"/tags/slug:"+this._slug;return this.wpcom.req.get(n,t,e)},r.prototype.add=function(t,e,n){const r="/sites/"+this._sid+"/tags/new";return this.wpcom.req.post(r,t,e,n)},r.prototype.update=function(t,e,n){const r="/sites/"+this._sid+"/tags/slug:"+this._slug;return this.wpcom.req.put(r,t,e,n)},r.prototype.delete=r.prototype.del=function(t,e){const n="/sites/"+this._sid+"/tags/slug:"+this._slug+"/delete";return this.wpcom.req.del(n,t,e)}},1986:function(t,e,n){"use strict";var r=n(4046);class o{constructor(t,e,n){if(!e)throw new TypeError("`siteId` is not correctly defined");if(!t)throw new TypeError("`taxonomy` is not correctly defined");if(!(this instanceof o))return new o(t,e,n);this.wpcom=n,this._siteId=encodeURIComponent(e),this._taxonomy=encodeURIComponent(t),this._rootPath=`/sites/${this._siteId}/taxonomies/${this._taxonomy}`}termsList(t,e){const n=`${this._rootPath}/terms`;return this.wpcom.req.get(n,t,e)}term(t){return new r.Z(t,this._taxonomy,this._siteId,this.wpcom)}}e.Z=o},4046:function(t,e){"use strict";class n{constructor(t,e,r,o){if(!r)throw new TypeError("`siteId` is not correctly defined");if(!e)throw new TypeError("`taxonomy` is not correctly defined");if(!(this instanceof n))return new n(t,e,r,o);this.wpcom=o,this._siteId=encodeURIComponent(r),this._taxonomy=encodeURIComponent(e),this._term=encodeURIComponent(t),this._taxonomyPath=`/sites/${this._siteId}/taxonomies/${this._taxonomy}/terms`}get(t,e){if(!this._term)throw new Error("`term` is not correctly defined");"function"==typeof t&&(e=t,t={});const n=`${this._taxonomyPath}/slug:${this._term}`;return this.wpcom.req.get(n,t,e)}add(t,e){if(!t||!t.name)throw new Error("`params.name` is not correctly defined");const n=`${this._taxonomyPath}/new`;return this.wpcom.req.post(n,t,e)}delete(t){if(!this._term)throw new Error("`term` is not correctly defined");const e=`${this._taxonomyPath}/slug:${this._term}/delete`;return this.wpcom.req.del(e,t)}update(t,e){if(!this._term)throw new Error("`term` is not correctly defined");const n=`${this._taxonomyPath}/slug:${this._term}`;return this.wpcom.req.put(n,t,e)}}e.Z=n},3243:function(t,e,n){"use strict";function r(t,e){if(!(this instanceof r))return new r(t,e);this._sid=t,this.wpcom=e}n.d(e,{Z:function(){return r}}),r.prototype.get=function(t,e){return this.wpcom.req.get("/sites/"+this._sid+"/wordads/earnings",t,e)}},1753:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(3243),o=n(4549),i=n(1731);function s(t,e){if(!(this instanceof s))return new s(t,e);this._sid=t,this.wpcom=e}s.prototype.settings=function(){return new o.Z(this._sid,this.wpcom)},s.prototype.earnings=function(){return new r.Z(this._sid,this.wpcom)},s.prototype.tos=function(){return new i.Z(this._sid,this.wpcom)}},4549:function(t,e,n){"use strict";function r(t,e){if(!(this instanceof r))return new r(t,e);this._sid=t,this.wpcom=e}n.d(e,{Z:function(){return r}}),r.prototype.get=function(t,e){return this.wpcom.req.get("/sites/"+this._sid+"/wordads/settings",t,e)},r.prototype.update=function(t,e,n){const r="/sites/"+this._sid+"/wordads/settings";return this.wpcom.req.post(r,t,e,n)}},1731:function(t,e,n){"use strict";function r(t,e){if(!(this instanceof r))return new r(t,e);this._sid=t,this.wpcom=e}n.d(e,{Z:function(){return r}}),r.prototype.get=function(t,e){return this.wpcom.req.get("/sites/"+this._sid+"/wordads/tos",t,e)},r.prototype.update=function(t,e,n){const r="/sites/"+this._sid+"/wordads/tos";return this.wpcom.req.post(r,t,e,n)},r.prototype.sign=function(t,e){const n="/sites/"+this._sid+"/wordads/tos";return this.wpcom.req.post(n,t,{tos:"signed"},e)}},4866:function(t,e){"use strict";class n{constructor(t,e,r){if(!(this instanceof n))return new n(t,e,r);if(!t)throw new Error("`slug` is not correctly defined");this._slug=encodeURIComponent(t),this._sid=e,this.wpcom=r;const o=`/sites/${this._sid}/wpcom-plugins`;this.pluginPath=`${o}/${this._slug}`}update(t,e,n){return this.wpcom.req.put(this.pluginPath,t,e,n)}activate(t,e){return this.update(t,{active:!0},e)}deactivate(t,e){return this.update(t,{active:!1},e)}}e.Z=n},4308:function(t,e,n){"use strict";function r(t){if(!(this instanceof r))return new r(t);this.wpcom=t}n.d(e,{Z:function(){return r}}),r.prototype.suggest=function(t,e){return this.wpcom.req.get("/users/suggest",t,e)}},6426:function(t,e,n){"use strict";function r(){throw new Error("Cannot call fs functions within the browser")}n.d(e,{U:function(){return r}})},3818:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(8049);const o=n.n(r)()("wpcom:pinghub");function i(t){if(!(this instanceof i))return new i(t);this.wpcom=t,this.conns={}}i.prototype.connect=function(t,e){o("connect",t,e);const n=this,r={action:"connect",path:"/pinghub"+t},i=this.conns[t]=this.wpcom.req.get(r,(function(){}));i.onload=function(n){o("onload",t,n),e(null,n)},i.onerror=i.onabort=i.onclose=function(r){o("onerror",t,r),n.remove(t),e(r,null)}},i.prototype.disconnect=function(t){o("disconnect",t);const e={action:"disconnect",path:"/pinghub"+t};this.wpcom.req.get(e,(function(){}))},i.prototype.remove=function(t){o("remove",t),delete this.conns[t]}},781:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(3918);function o(t){this.wpcom=t}o.prototype.get=function(t,e,n){return"function"==typeof e&&(n=e,e={}),r.Z.call(this.wpcom,t,e,null,n)},o.prototype.post=o.prototype.put=function(t,e,n,o){return void 0===o&&(void 0===n?(n=e,e={}):"function"==typeof n&&(o=n,n=e,e={})),(t="string"==typeof t?{path:t}:t).method=t.method||"post",r.Z.call(this.wpcom,t,e,n,o)},o.prototype.del=function(t,e,n){return"function"==typeof e&&(n=e,e={}),this.post(t,e,null,n)}},9426:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(8049);const o=n.n(r)()("wpcom:runtime"),i=(t,e)=>function(n,r){const o=e(t,this);return this.wpcom.req.get(o,n,r)};function s(t,e,n){e.forEach((e=>{o("Adding %o",(e="object"==typeof e?e:{name:e}).name),t.prototype[e.name]=i(e,n)}))}},3918:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(8049),o=n.n(r),i=n(9126),s=n.n(i);const c=o()("wpcom:send-request"),a=o()("wpcom:send-request:res");function u(t,e,n,r){return c("sendRequest(%o )",(t="string"==typeof t?{path:t}:t).path),t.method=(t.method||"get").toUpperCase(),"function"==typeof e&&(r=e,e={}),"function"==typeof n&&(r=n,n=null),(e=e||{}).apiVersion?(t.apiVersion=e.apiVersion,c("apiVersion: %o",t.apiVersion),delete e.apiVersion):t.apiVersion=this.apiVersion,e.apiNamespace&&(t.apiNamespace=e.apiNamespace,c("apiNamespace: %o",t.apiNamespace),delete e.apiNamespace),e.proxyOrigin&&(t.proxyOrigin=e.proxyOrigin,c("proxyOrigin: %o",t.proxyOrigin),delete e.proxyOrigin),e=s().stringify(e,{arrayFormat:"brackets"}),t.query=e,n&&(t.body=n),c("params: %o",t),"function"==typeof r?this.request(t,(function(t,e,n){a(e),r(t,e,n)})):new Promise(((e,n)=>{this.request(t,((t,r)=>{a(r),t?n(t):e(r)}))}))}},8049:function(t,e,n){e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(r++,"%c"===t&&(o=r))})),e.splice(o,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(n){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(n){}!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG);return t},e.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=n(2632)(e);const{formatters:r}=t.exports;r.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2632:function(t,e,n){t.exports=function(t){function e(t){let n,o,i,s=null;function c(...t){if(!c.enabled)return;const r=c,o=Number(new Date),i=o-(n||o);r.diff=i,r.prev=n,r.curr=o,n=o,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let s=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((n,o)=>{if("%%"===n)return"%";s++;const i=e.formatters[o];if("function"==typeof i){const e=t[s];n=i.call(r,e),t.splice(s,1),s--}return n})),e.formatArgs.call(r,t);(r.log||e.log).apply(r,t)}return c.namespace=t,c.useColors=e.useColors(),c.color=e.selectColor(t),c.extend=r,c.destroy=e.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(o!==e.namespaces&&(o=e.namespaces,i=e.enabled(t)),i),set:t=>{s=t}}),"function"==typeof e.init&&e.init(c),c}function r(t,n){const r=e(this.namespace+(void 0===n?":":n)+t);return r.log=this.log,r}function o(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},e.disable=function(){const t=[...e.names.map(o),...e.skips.map(o).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let n;e.save(t),e.namespaces=t,e.names=[],e.skips=[];const r=("string"==typeof t?t:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(t=r[n].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;let n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=n(1378),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((n=>{e[n]=t[n]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return e.colors[Math.abs(n)%e.colors.length]},e.enable(e.load()),e}},3830:function(t,e,n){"use strict";var r=n(956);t.exports=function(){var t=r.apply(r,arguments);return t.charAt(0).toUpperCase()+t.slice(1)}},956:function(t){"use strict";t.exports=function(){var t=[].map.call(arguments,(function(t){return t.trim()})).filter((function(t){return t.length})).join("-");return t.length?1!==t.length&&/[_.\- ]+/.test(t)?t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(t,e){return e.toUpperCase()})):t[0]===t[0].toLowerCase()&&t.slice(1)!==t.slice(1).toLowerCase()?t:t.toLowerCase():""}},2686:function(t,e){"use strict";e.Z=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},5302:function(t,e,n){"use strict";var r;n.d(e,{Z:function(){return i}});var o=new Uint8Array(16);function i(){if(!r&&!(r="undefined"