Jetpack by WordPress.com - Version 8.2.1

Version Description

  • Release date: February 17, 2020

Bug fixes

  • Block Editor: avoid errors when uploading additional media to the Slideshow, Tiled Gallery, and Video blocks.
  • Synchronization: address issues that would cause delayed synchronization of your posts to WordPress.com.
Download this release

Release Info

Developer jeherve
Plugin Icon 128x128 Jetpack by WordPress.com
Version 8.2.1
Comparing to
See all releases

Code changes from version 8.2.0.1 to 8.2.1

_inc/blocks/business-hours/view.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-polyfill'), 'version' => '0d14ad6b301f3e8426450a8d271e95a6');
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => 'b22763bb1a1ec93f76008778235311ca');
_inc/blocks/business-hours/view.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=273)}({126:function(e,t,n){},273:function(e,t,n){n(42),e.exports=n(274)},274:function(e,t,n){"use strict";n.r(t);n(126)},35:function(e,t,n){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(n.p=window.Jetpack_Block_Assets_Base_Url)},42:function(e,t,n){"use strict";n.r(t);n(35)}}));
1
+ !function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=273)}({126:function(e,t,n){},273:function(e,t,n){n(42),e.exports=n(274)},274:function(e,t,n){"use strict";n.r(t);n(126)},36:function(e,t,n){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(n.p=window.Jetpack_Block_Assets_Base_Url)},42:function(e,t,n){"use strict";n.r(t);n(36)}}));
_inc/blocks/calendly/view.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-polyfill'), 'version' => '431a4e499923e72cac130ab7a19c8c7a');
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => '31483c7a7cd6794e8753fc0709171ca5');
_inc/blocks/calendly/view.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=275)}({275:function(e,t,n){n(42),e.exports=n(276)},276:function(e,t,n){"use strict";n.r(t);n(277)},277:function(e,t,n){},35:function(e,t,n){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(n.p=window.Jetpack_Block_Assets_Base_Url)},42:function(e,t,n){"use strict";n.r(t);n(35)}}));
1
+ !function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=275)}({275:function(e,t,n){n(42),e.exports=n(276)},276:function(e,t,n){"use strict";n.r(t);n(277)},277:function(e,t,n){},36:function(e,t,n){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(n.p=window.Jetpack_Block_Assets_Base_Url)},42:function(e,t,n){"use strict";n.r(t);n(36)}}));
_inc/blocks/contact-info/view.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-polyfill'), 'version' => 'd8d3351c70cf69a48659085184ca470e');
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => '2b138cc36124a83ac2f6b21b4b0b2dd7');
_inc/blocks/contact-info/view.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=278)}({129:function(e,t,n){},278:function(e,t,n){n(42),e.exports=n(279)},279:function(e,t,n){"use strict";n.r(t);n(129)},35:function(e,t,n){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(n.p=window.Jetpack_Block_Assets_Base_Url)},42:function(e,t,n){"use strict";n.r(t);n(35)}}));
1
+ !function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=278)}({129:function(e,t,n){},278:function(e,t,n){n(42),e.exports=n(279)},279:function(e,t,n){"use strict";n.r(t);n(129)},36:function(e,t,n){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(n.p=window.Jetpack_Block_Assets_Base_Url)},42:function(e,t,n){"use strict";n.r(t);n(36)}}));
_inc/blocks/editor-beta.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-token-list', 'wp-url'), 'version' => '6cb8f6cd8e869398718010f46c3a6904');
1
+ <?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-token-list', 'wp-url'), 'version' => 'af202345ce4c02273a9706fe204e7d13');
_inc/blocks/editor-beta.js CHANGED
@@ -1,2 +1,2 @@
1
  /*! For license information please see editor-beta.js.LICENSE */
2
- !function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){function t(t){for(var n,r,i=t[0],o=t[1],c=0,s=[];c<i.length;c++)r=i[c],Object.prototype.hasOwnProperty.call(a,r)&&a[r]&&s.push(a[r][0]),a[r]=0;for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n]);for(l&&l(t);s.length;)s.shift()()}var n={},r={4:0},a={4:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[];r[e]?t.push(r[e]):0!==r[e]&&{16:1,17:1}[e]&&t.push(r[e]=new Promise((function(t,n){for(var a="rtl"===document.dir?({16:"vendors~map/mapbox-gl",17:"vendors~swiper"}[e]||e)+"."+{16:"04e03ac043566852ef07",17:"23fd414831f3de8536b3"}[e]+".rtl.css":({16:"vendors~map/mapbox-gl",17:"vendors~swiper"}[e]||e)+"."+{16:"04e03ac043566852ef07",17:"23fd414831f3de8536b3"}[e]+".css",o=i.p+a,c=document.getElementsByTagName("link"),s=0;s<c.length;s++){var l=(p=c[s]).getAttribute("data-href")||p.getAttribute("href");if("stylesheet"===p.rel&&(l===a||l===o))return t()}var u=document.getElementsByTagName("style");for(s=0;s<u.length;s++){var p;if((l=(p=u[s]).getAttribute("data-href"))===a||l===o)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.setAttribute("data-webpack",!0),d.onload=t,d.onerror=function(t){var a=t&&t.target&&t.target.src||o,i=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=a,delete r[e],d.parentNode.removeChild(d),n(i)},d.href=o,document.getElementsByTagName("head")[0].appendChild(d)})).then((function(){r[e]=0})));var n=a[e];if(0!==n)if(n)t.push(n[2]);else{var o=new Promise((function(t,r){n=a[e]=[t,r]}));t.push(n[2]=o);var c,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=function(e){return i.p+""+({16:"vendors~map/mapbox-gl",17:"vendors~swiper"}[e]||e)+"."+{16:"04e03ac043566852ef07",17:"23fd414831f3de8536b3"}[e]+".js"}(e);var l=new Error;c=function(t){s.onerror=s.onload=null,clearTimeout(u);var n=a[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+r+": "+i+")",l.name="ChunkLoadError",l.type=r,l.request=i,n[1](l)}a[e]=void 0}};var u=setTimeout((function(){c({type:"timeout",target:s})}),12e4);s.onerror=s.onload=c,document.head.appendChild(s)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var o=window.webpackJsonp=window.webpackJsonp||[],c=o.push.bind(o);o.push=t,o=o.slice();for(var s=0;s<o.length;s++)t(o[s]);var l=c;return i(i.s=271)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){var r=n(127),a=n(4);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?a(e):t}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var r=n(128);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var o=a.apply(null,r);o&&e.push(o)}else if("object"===i)for(var c in r)n.call(r,c)&&r[c]&&e.push(c)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t,n){var r=n(3);function a(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(n,!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t,n){"use strict";var r=n(15),a=n.n(r),i=n(55),o=n(16),c=n(94),s=n(40),l=n(29),u=n.n(l),p=n(0),d=n(14),h=(n(143),function(e){return Object(d.createHigherOrderComponent)((function(t){return function(n){return Object(p.createElement)(t,u()({},n,{className:n.name===e?"has-warning is-interactive":""}))}}),"withHasWarningIsInteractiveClassNames")}),m=n(56),f=n.n(m),b=n(1),g=n(30),v=n(5),j=n(13),y=n(50),_=n(57),k=n(34),O=n(24),w={setPlans:function(e){return{type:"SET_PLANS",plans:e}},fetchFromAPI:function(e){return{type:"FETCH_FROM_API",url:e}}};Object(j.registerStore)("wordpress-com/plans",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLANS":return t.plans}return e},actions:w,selectors:{getPlan:function(e,t){return e.find((function(e){return e.product_slug===t}))}},controls:{FETCH_FROM_API:function(e){var t=e.url;return fetch(t).then((function(e){return e.json()}))}},resolvers:{getPlan:regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"https://public-api.wordpress.com/rest/v1.5/plans",e.next=3,w.fetchFromAPI("https://public-api.wordpress.com/rest/v1.5/plans");case 3:return t=e.sent,e.abrupt("return",w.setPlans(t));case 5:case"end":return e.stop()}}),e)}))}});n(145);var E=Object(d.compose)([Object(j.withSelect)((function(e,t){var n=t.plan,r=e("wordpress-com/plans").getPlan(n),a=Object(v.startsWith)(n,"jetpack_")?n.substr("jetpack_".length):Object(v.get)(r,["path_slug"]),i=e("core/editor").getCurrentPostId(),o=e("core/editor").getCurrentPostType(),c=["page","post"].includes(o)?"":"edit",s=Object(O.b)()?Object(g.addQueryArgs)("/"+Object(v.compact)([c,o,Object(k.a)(),i]).join("/"),{plan_upgraded:1}):Object(g.addQueryArgs)(window.location.protocol+"//".concat(Object(k.a)().replace("::","/"),"/wp-admin/post.php"),{action:"edit",post:i,plan_upgraded:1}),l=a&&Object(g.addQueryArgs)("https://wordpress.com/checkout/".concat(Object(k.a)(),"/").concat(a),{redirect_to:s});return{trackEvent:function(e){y.a.tracks.recordEvent("jetpack_editor_block_upgrade_click",{plan:r,block:e})},planName:Object(v.get)(r,["product_name"]),upgradeUrl:l}}))])((function(e){var t=e.planName,n=e.trackEvent,r=e.upgradeUrl;return Object(p.createElement)(_.a,{buttonLabel:Object(b.__)("Upgrade","jetpack"),icon:Object(p.createElement)(f.a,{className:"jetpack-upgrade-nudge__icon",size:18,"aria-hidden":"true",role:"img",focusable:"false"}),href:r,onClick:n,title:t?Object(b.sprintf)(Object(b.__)("Upgrade to %(planName)s to use this block on your site.","jetpack"),{planName:t}):Object(b.__)("Upgrade to a paid plan to use this block on your site.","jetpack"),subtitle:Object(b.__)("You can try it out before upgrading, but only you will see it. It will be hidden from your visitors until you upgrade.","jetpack")})})),C=function(e){var t=e.requiredPlan;return Object(d.createHigherOrderComponent)((function(e){return function(n){return Object(p.createElement)(p.Fragment,null,Object(p.createElement)(E,{plan:t,blockName:n.name}),Object(p.createElement)(e,n))}}),"wrapPaidBlock")};n.d(t,"a",(function(){return A}));var x=c.beta||[];function S(e,t){return"missing_plan"===e&&t.required_plan}function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object(s.a)(e),c=r.available,l=r.details,u=r.unavailableReason,p=S(u,l);if(!c&&!p)return!1;var d=Object(o.registerBlockType)("jetpack/".concat(e),a()({},t,{title:x.includes(e)?"".concat(t.title," (beta)"):t.title,edit:p?C({requiredPlan:p})(t.edit):t.edit,example:p?void 0:t.example}));return p&&Object(i.addFilter)("editor.BlockListBlock","jetpack/".concat(e,"-with-has-warning-is-interactive-class-names"),h("jetpack/".concat(e))),n.forEach((function(e){return Object(o.registerBlockType)("jetpack/".concat(e.name),e.settings)})),d}},function(e,t,n){var r=n(65),a=n(66),i=n(67);e.exports=function(e,t){return r(e)||a(e,t)||i()}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function a(e,t){return r.call(e,t)}function i(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function o(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,s=new RegExp(c.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),l=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,u=n(81);var p=/[&<>"]/,d=/[&<>"]/g,h={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function m(e){return h[e]}var f=/[.?*+^$[\]\\(){}|-]/g;var b=n(68);t.lib={},t.lib.mdurl=n(82),t.lib.ucmicro=n(168),t.assign=function(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=a,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(c,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(s,(function(e,t,n){return t||function(e,t){var n=0;return a(u,t)?u[t]:35===t.charCodeAt(0)&&l.test(t)&&i(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?o(n):e}(e,n)}))},t.isValidEntityCode=i,t.fromCodePoint=o,t.escapeHtml=function(e){return p.test(e)?e.replace(d,m):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return b.test(e)},t.escapeRE=function(e){return e.replace(f,"\\$&")},t.normalizeReference=function(e){return e.trim().replace(/\s+/g," ").toUpperCase()}},function(e,t,n){"use strict";var r=n(0),a=n(2);t.a=function(e){return Object(r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),e)}},function(e,t,n){var r=n(123),a=n(124),i=n(125);e.exports=function(e){return r(e)||a(e)||i()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"h",(function(){return i})),n.d(t,"i",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return p}));var r=["image"],a=4,i=20,o=2e3,c="circle",s="columns",l="rectangular",u="square",p=[{isDefault:!0,name:l},{name:c},{name:u},{name:s}]},function(e,t){!function(){e.exports=this.wp.apiFetch}()},function(e,t,n){"use strict";function r(){return"object"==typeof window&&"string"==typeof window._currentSiteType?window._currentSiteType:null}function a(){return"simple"===r()}function i(){return"atomic"===r()}n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i}))},function(e,t){!function(){e.exports=this.wp.blob}()},function(e,t){!function(){e.exports=this.wp.keycodes}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),a=n(1),i={name:"map",prefix:"jetpack",title:Object(a.__)("Map","jetpack"),icon:Object(r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",focusable:"false"},Object(r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)("path",{d:"M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM10 5.47l4 1.4v11.66l-4-1.4V5.47zm-5 .99l3-1.01v11.7l-3 1.16V6.46zm14 11.08l-3 1.01V6.86l3-1.16v11.84z"})),category:"jetpack",keywords:[Object(a._x)("map","block search term","jetpack"),Object(a._x)("location","block search term","jetpack"),Object(a._x)("navigation","block search term","jetpack")],description:Object(a.__)("Add an interactive map showing one or more locations.","jetpack"),attributes:{align:{type:"string"},points:{type:"array",default:[]},mapStyle:{type:"string",default:"default"},mapDetails:{type:"boolean",default:!0},zoom:{type:"integer",default:13},mapCenter:{type:"object",default:{longitude:-122.41941550000001,latitude:37.7749295}},markerColor:{type:"string",default:"red"},preview:{type:"boolean",default:!1}},supports:{html:!1},mapStyleOptions:[{value:"default",label:Object(a.__)("Basic","jetpack")},{value:"black_and_white",label:Object(a.__)("Black and white","jetpack")},{value:"satellite",label:Object(a.__)("Satellite","jetpack")},{value:"terrain",label:Object(a.__)("Terrain","jetpack")}],validAlignments:["center","wide","full"],markerIcon:Object(r.createElement)("svg",{width:"14",height:"20",viewBox:"0 0 14 20",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("g",{id:"Page-1",fill:"none",fillRule:"evenodd"},Object(r.createElement)("g",{id:"outline-add_location-24px",transform:"translate(-5 -2)"},Object(r.createElement)("polygon",{id:"Shape",points:"0 0 24 0 24 24 0 24"}),Object(r.createElement)("path",{d:"M12,2 C8.14,2 5,5.14 5,9 C5,14.25 12,22 12,22 C12,22 19,14.25 19,9 C19,5.14 15.86,2 12,2 Z M7,9 C7,6.24 9.24,4 12,4 C14.76,4 17,6.24 17,9 C17,11.88 14.12,16.19 12,18.88 C9.92,16.21 7,11.85 7,9 Z M13,6 L11,6 L11,8 L9,8 L9,10 L11,10 L11,12 L13,12 L13,10 L15,10 L15,8 L13,8 L13,6 Z",id:"Shape",fill:"#000",fillRule:"nonzero"})))),example:{attributes:{preview:!0}}}},function(e,t,n){"use strict";var r=n(136),a=n(138);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=j,t.resolve=function(e,t){return j(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?j(e,!1,!0).resolveObject(t):t},t.format=function(e){a.isString(e)&&(e=j(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var o=/^([a-z0-9.+-]+:)/i,c=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),p=["%","/","?",";","#"].concat(u),d=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=n(139);function j(e,t,n){if(e&&a.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),c=-1!==i&&i<e.indexOf("#")?"?":"#",l=e.split(c);l[0]=l[0].replace(/\\/g,"/");var j=e=l.join(c);if(j=j.trim(),!n&&1===e.split("#").length){var y=s.exec(j);if(y)return this.path=j,this.href=j,this.pathname=y[1],y[2]?(this.search=y[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var _=o.exec(j);if(_){var k=(_=_[0]).toLowerCase();this.protocol=k,j=j.substr(_.length)}if(n||_||j.match(/^\/\/[^@\/]+@[^@\/]+/)){var O="//"===j.substr(0,2);!O||_&&b[_]||(j=j.substr(2),this.slashes=!0)}if(!b[_]&&(O||_&&!g[_])){for(var w,E,C=-1,x=0;x<d.length;x++){-1!==(S=j.indexOf(d[x]))&&(-1===C||S<C)&&(C=S)}-1!==(E=-1===C?j.lastIndexOf("@"):j.lastIndexOf("@",C))&&(w=j.slice(0,E),j=j.slice(E+1),this.auth=decodeURIComponent(w)),C=-1;for(x=0;x<p.length;x++){var S;-1!==(S=j.indexOf(p[x]))&&(-1===C||S<C)&&(C=S)}-1===C&&(C=j.length),this.host=j.slice(0,C),j=j.slice(C),this.parseHost(),this.hostname=this.hostname||"";var A="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!A)for(var F=this.hostname.split(/\./),P=(x=0,F.length);x<P;x++){var T=F[x];if(T&&!T.match(h)){for(var N="",M=0,R=T.length;M<R;M++)T.charCodeAt(M)>127?N+="x":N+=T[M];if(!N.match(h)){var D=F.slice(0,x),z=F.slice(x+1),I=T.match(m);I&&(D.push(I[1]),z.unshift(I[2])),z.length&&(j="/"+z.join(".")+j),this.hostname=D.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=r.toASCII(this.hostname));var L=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+L,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==j[0]&&(j="/"+j))}if(!f[k])for(x=0,P=u.length;x<P;x++){var q=u[x];if(-1!==j.indexOf(q)){var U=encodeURIComponent(q);U===q&&(U=escape(q)),j=j.split(q).join(U)}}var V=j.indexOf("#");-1!==V&&(this.hash=j.substr(V),j=j.slice(0,V));var H=j.indexOf("?");if(-1!==H?(this.search=j.substr(H),this.query=j.substr(H+1),t&&(this.query=v.parse(this.query)),j=j.slice(0,H)):t&&(this.search="",this.query={}),j&&(this.pathname=j),g[k]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){L=this.pathname||"";var G=this.search||"";this.path=L+G}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&a.isObject(this.query)&&Object.keys(this.query).length&&(o=v.stringify(this.query));var c=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),c&&"?"!==c.charAt(0)&&(c="?"+c),t+i+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(c=c.replace("#","%23"))+r},i.prototype.resolve=function(e){return this.resolveObject(j(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(a.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),o=0;o<r.length;o++){var c=r[o];n[c]=this[c]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),l=0;l<s.length;l++){var u=s[l];"protocol"!==u&&(n[u]=e[u])}return g[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!g[e.protocol]){for(var p=Object.keys(e),d=0;d<p.length;d++){var h=p[d];n[h]=e[h]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||b[e.protocol])n.pathname=e.pathname;else{for(var m=(e.pathname||"").split("/");m.length&&!(e.host=m.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==m[0]&&m.unshift(""),m.length<2&&m.unshift(""),n.pathname=m.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var f=n.pathname||"",v=n.search||"";n.path=f+v}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var j=n.pathname&&"/"===n.pathname.charAt(0),y=e.host||e.pathname&&"/"===e.pathname.charAt(0),_=y||j||n.host&&e.pathname,k=_,O=n.pathname&&n.pathname.split("/")||[],w=(m=e.pathname&&e.pathname.split("/")||[],n.protocol&&!g[n.protocol]);if(w&&(n.hostname="",n.port=null,n.host&&(""===O[0]?O[0]=n.host:O.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===m[0]?m[0]=e.host:m.unshift(e.host)),e.host=null),_=_&&(""===m[0]||""===O[0])),y)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,O=m;else if(m.length)O||(O=[]),O.pop(),O=O.concat(m),n.search=e.search,n.query=e.query;else if(!a.isNullOrUndefined(e.search)){if(w)n.hostname=n.host=O.shift(),(A=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=A.shift(),n.host=n.hostname=A.shift());return n.search=e.search,n.query=e.query,a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!O.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=O.slice(-1)[0],C=(n.host||e.host||O.length>1)&&("."===E||".."===E)||""===E,x=0,S=O.length;S>=0;S--)"."===(E=O[S])?O.splice(S,1):".."===E?(O.splice(S,1),x++):x&&(O.splice(S,1),x--);if(!_&&!k)for(;x--;x)O.unshift("..");!_||""===O[0]||O[0]&&"/"===O[0].charAt(0)||O.unshift(""),C&&"/"!==O.join("/").substr(-1)&&O.push("");var A,F=""===O[0]||O[0]&&"/"===O[0].charAt(0);w&&(n.hostname=n.host=F?"":O.length?O.shift():"",(A=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=A.shift(),n.host=n.hostname=A.shift()));return(_=_||n.host&&O.length)&&!F&&O.unshift(""),O.length?n.pathname=O.join("/"):(n.pathname=null,n.path=null),a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=c.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){!function(){e.exports=this.wp.url}()},function(e,t,n){"use strict";var r=n(3),a=n.n(r),i=n(7),o=n.n(i),c=n(11),s=n.n(c),l=n(8),u=n.n(l),p=n(9),d=n.n(p),h=n(10),m=n.n(h),f=n(0),b=n(1),g=n(12),v=n.n(g),j=n(14),y=n(2),_=n(6),k=n(5),O=window.getComputedStyle,w=Object(y.withFallbackStyles)((function(e,t){var n,r,a,i,o=t.textButtonColor,c=t.backgroundButtonColor,s=c&&c.color,l=o&&o.color;return!l&&e&&(n=e.querySelector('[contenteditable="true"]')),r=e.querySelector(".wp-block-button__link")?e.querySelector(".wp-block-button__link"):e,e&&(a=O(r).backgroundColor),n&&(i=O(n).color),{fallbackBackgroundColor:s||a,fallbackTextColor:l||i}})),E=function(e){function t(){return o()(this,t),u()(this,d()(t).apply(this,arguments))}return m()(t,e),s()(t,[{key:"componentDidUpdate",value:function(e){if(!Object(k.isEqual)(this.props.textButtonColor,e.textButtonColor)||!Object(k.isEqual)(this.props.backgroundButtonColor,e.backgroundButtonColor)){var t=this.getButtonClasses();this.props.setAttributes({submitButtonClasses:t})}}},{key:"getButtonClasses",value:function(){var e,t=this.props,n=t.textButtonColor,r=t.backgroundButtonColor,i=Object(k.get)(n,"class"),o=Object(k.get)(r,"class");return v()("wp-block-button__link",(e={"has-text-color":n},a()(e,i,i),a()(e,"has-background",r),a()(e,o,o),e))}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.fallbackBackgroundColor,r=e.fallbackTextColor,a=e.setAttributes,i=e.setBackgroundButtonColor,o=e.setTextButtonColor,c=t.customBackgroundButtonColor||n,s=t.customTextButtonColor||r,l={border:"none",backgroundColor:c,color:s},u=this.getButtonClasses();return Object(f.createElement)(f.Fragment,null,Object(f.createElement)("div",{className:"wp-block-button jetpack-submit-button"},Object(f.createElement)(_.RichText,{placeholder:Object(b.__)("Add text…","jetpack"),value:t.submitButtonText,onChange:function(e){return a({submitButtonText:e})},className:u,style:l,keepPlaceholderOnFocus:!0,allowedFormats:[]})),Object(f.createElement)(_.InspectorControls,null,Object(f.createElement)(_.PanelColorSettings,{title:Object(b.__)("Button Color Settings","jetpack"),colorSettings:[{value:c,onChange:function(e){i(e),a({customBackgroundButtonColor:e})},label:Object(b.__)("Background Color","jetpack")},{value:s,onChange:function(e){o(e),a({customTextButtonColor:e})},label:Object(b.__)("Text Color","jetpack")}]}),Object(f.createElement)(_.ContrastChecker,{textColor:s,backgroundColor:c})))}}]),t}(f.Component);t.a=Object(j.compose)([Object(_.withColors)("backgroundButtonColor",{textButtonColor:"color"}),w])(E)},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"e",(function(){return c}));var r="after-visits",a="before-visits",i=3,o="jp-visit-counter",c=15552e3},function(e,t){!function(){e.exports=this.React}()},function(e,t,n){"use strict";function r(){return window&&window.Jetpack_Editor_Initial_State&&window.Jetpack_Editor_Initial_State.siteFragment?window.Jetpack_Editor_Initial_State.siteFragment:null}n.d(t,"a",(function(){return r}))},function(e,t,n){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(n.p=window.Jetpack_Block_Assets_Base_Url)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(47),a=n(40);function i(e,t){var n=Object(a.a)(e),i=n.available;n.unavailableReason;return!!i&&Object(r.registerPlugin)("jetpack-".concat(e),t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return c}));var r=n(74),a=n(5),i="wp-block-jetpack-slideshow_autoplay-paused";function o(e){c(e),s(e),e.el.querySelector(".wp-block-jetpack-slideshow_button-pause").addEventListener("click",(function(){e.el&&(e.el.classList.contains(i)?(e.el.classList.remove(i),e.autoplay.start(),this.setAttribute("aria-label","Pause Slideshow")):(e.el.classList.add(i),e.autoplay.stop(),this.setAttribute("aria-label","Play Slideshow")))}))}function c(e){if(e&&e.el){var t=e.el.querySelector('.swiper-slide[data-swiper-slide-index="0"] img');if(t){var n=t.clientWidth/t.clientHeight,r=Math.max(Math.min(n,16/9),1),a="undefined"!=typeof window?.8*window.innerHeight:600,i=Math.min(e.width/r,a),o="".concat(Math.floor(i),"px"),c="".concat(Math.floor(i/2),"px");e.el.classList.add("wp-swiper-initialized"),e.wrapperEl.style.height=o,e.el.querySelector(".wp-block-jetpack-slideshow_button-prev").style.top=c,e.el.querySelector(".wp-block-jetpack-slideshow_button-next").style.top=c}}}function s(e){Object(a.forEach)(e.slides,(function(t,n){t.setAttribute("aria-hidden",n===e.activeIndex?"false":"true"),n===e.activeIndex?t.setAttribute("tabindex","-1"):t.removeAttribute("tabindex")})),function(e){var t=e.slides[e.activeIndex];if(t){var n=t.getElementsByTagName("FIGCAPTION")[0],a=t.getElementsByTagName("IMG")[0];e.a11y.liveRegion&&(e.a11y.liveRegion[0].innerHTML=n?n.innerHTML:Object(r.escapeHTML)(a.alt))}}(e)}function l(e){Object(a.forEach)(e.pagination.bullets,(function(t){t.addEventListener("click",(function(){var t=e.slides[e.realIndex];setTimeout((function(){t.focus()}),500)}))}))}},function(e,t,n){"use strict";var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var a=r[n];e.call(t,a[1],a[0])}},t}())}(),a="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i="undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var c=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,l=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,a=0;function i(){n&&(n=!1,e()),r&&s()}function c(){o(i)}function s(){var e=Date.now();if(n){if(e-a<2)return;r=!0}else n=!0,r=!1,setTimeout(c,t);a=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){a&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){a&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;c.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var a=r[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},d=v(0,0,0,0);function h(e){return parseFloat(e)||0}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+h(e["border-"+n+"-width"])}),0)}function f(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r=p(e).getComputedStyle(e),a=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var a=r[n],i=e["padding-"+a];t[a]=h(i)}return t}(r),i=a.left+a.right,o=a.top+a.bottom,c=h(r.width),s=h(r.height);if("border-box"===r.boxSizing&&(Math.round(c+i)!==t&&(c-=m(r,"left","right")+i),Math.round(s+o)!==n&&(s-=m(r,"top","bottom")+o)),!function(e){return e===p(e).document.documentElement}(e)){var l=Math.round(c+i)-t,u=Math.round(s+o)-n;1!==Math.abs(l)&&(c-=l),1!==Math.abs(u)&&(s-=u)}return v(a.left,a.top,c,s)}var b="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"==typeof e.getBBox};function g(e){return a?b(e)?function(e){var t=e.getBBox();return v(0,0,t.width,t.height)}(e):f(e):d}function v(e,t,n,r){return{x:e,y:t,width:n,height:r}}var j=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=v(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=g(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),y=function(e,t){var n,r,a,i,o,c,s,l=(r=(n=t).x,a=n.y,i=n.width,o=n.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(c.prototype),u(s,{x:r,y:a,width:i,height:o,top:a,right:r+i,bottom:o+a,left:r}),s);u(this,{target:e,contentRect:l})},_=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new j(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new y(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),k="undefined"!=typeof WeakMap?new WeakMap:new r,O=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=l.getInstance(),r=new _(t,n,this);k.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){O.prototype[e]=function(){var t;return(t=k.get(this))[e].apply(t,arguments)}}));var w=void 0!==i.ResizeObserver?i.ResizeObserver:O;t.a=w},function(e,t){!function(){e.exports=this.wp.editor}()},function(e,t,n){"use strict";var r=n(15),a=n.n(r),i=n(5);function o(e){var t=Object(i.get)("object"==typeof window?window:null,["Jetpack_Editor_Initial_State"],null),n=Object(i.get)(t,["available_blocks",e,"available"],!1),r=Object(i.get)(t,["available_blocks",e,"unavailable_reason"],"unknown"),o=Object(i.get)(t,["available_blocks",e,"details"],[]);return a()({available:n},!n&&{details:o,unavailableReason:r})}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var r=n(29),a=n.n(r),i=n(46),o=n.n(i),c=n(0),s=n(12),l=n.n(s),u=n(96),p=n.n(u);n(151);t.a=function(e){var t=e.children,n=void 0===t?null:t,r=e.isError,i=void 0!==r&&r,s=o()(e,["children","isError"]),u=l()("help-message",{"help-message-is-error":i});return n&&Object(c.createElement)("div",a()({className:u},s),i&&Object(c.createElement)(p.a,{size:"24","aria-hidden":"true",role:"img",focusable:"false"}),Object(c.createElement)("span",null,n))}},,function(e,t,n){"use strict";var r=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;t.validate=function(e){if(!e)return!1;if(e.length>254)return!1;if(!r.test(e))return!1;var t=e.split("@");return!(t[0].length>64)&&!t[1].split(".").some((function(e){return e.length>63}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),a=n(2),i=n(52),o=n(47),c=(n(155),n(53)),s=Object(a.createSlotFill)("JetpackPluginSidebar"),l=s.Fill,u=s.Slot;Object(o.registerPlugin)("jetpack-sidebar",{render:function(){return Object(r.createElement)(u,null,(function(e){return e.length?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(i.PluginSidebarMoreMenuItem,{target:"jetpack",icon:Object(r.createElement)(c.a,null)},"Jetpack"),Object(r.createElement)(i.PluginSidebar,{name:"jetpack",title:"Jetpack",icon:Object(r.createElement)(c.a,null)},e)):null}))}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var 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 a(e){return r[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},function(e,t,n){var r=n(150);e.exports=function(e,t){if(null==e)return{};var n,a,i=r(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t){!function(){e.exports=this.wp.plugins}()},function(e,t,n){"use strict";var r=n(0),a=n(2);t.a=function(e){var t=e.label,n=e.onClick;return Object(r.createElement)(a.IconButton,{className:"components-toolbar__control",label:t,icon:"edit",onClick:n})}},function(e,t,n){"use strict";var r=n(54),a=n.n(r),i=n(102),o=n.n(i),c=n(103),s=n.n(c),l=n(63),u=n.n(l),p=n(104),d=n.n(p),h=n(77),m=n.n(h),f=n(105),b=n.n(f),g=n(72);function v(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var a=isFinite(+e)?+e:0,i=isFinite(+t)?Math.abs(t):0,o=void 0===r?",":r,c=void 0===n?".":n,s="";return(s=(i?function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(a,i):""+Math.round(a)).split("."))[0].length>3&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,o)),(s[1]||"").length<i&&(s[1]=s[1]||"",s[1]+=new Array(i-s[1].length+1).join("0")),s.join(c)}var j=o()("i18n-calypso"),y=[function(e){return e}],_={};function k(){x.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function O(e){return Array.prototype.slice.call(e)}function w(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&k("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",O(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&k("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",O(e));for(var n={},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 E(e,t){var n="gettext";t.context&&(n="p"+n),"string"==typeof t.original&&"string"==typeof t.plural&&(n="n"+n);var r=function(e,t){switch(e){case"gettext":return[t.original];case"ngettext":return[t.original,t.plural,t.count];case"npgettext":return[t.context,t.original,t.plural,t.count];case"pgettext":return[t.context,t.original]}return[]}(n,t);return e[n].apply(e,r)}function C(e,t){for(var n=y.length-1;n>=0;n--){var r=y[n](Object.assign({},t));if(e.state.locale[r.original])return E(e.state.jed,r)}return null}function x(){if(!(this instanceof x))return new x;this.defaultLocaleSlug="en",this.state={numberFormatSettings:{},jed:void 0,locale:void 0,localeSlug:void 0,translations:d()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new g.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}x.throwErrors=!1,x.prototype.moment=m.a,x.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},x.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},x.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},x.prototype.numberFormat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",a=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return v(e,n,r,a)},x.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},x.prototype.setLocale=function(e){if(e&&e[""]&&e[""]["key-hash"]){var t=e[""]["key-hash"],n=function(e,t){var n=!1===t?"":String(t);if(void 0!==_[n+e])return _[n+e];var r=b()().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)y.push(r(!1));else{var a=t.substr(5).indexOf("-");if(a<0){var i=Number(t.substr(5));y.push(r(i))}else for(var o=Number(t.substr(5,a)),c=Number(t.substr(6+a)),s=o;s<=c;s++)y.push(r(s))}}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}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.jed=new u.a({locale_data:{messages:this.state.locale}}),m.a.locale(this.state.localeSlug),this.state.numberFormatSettings.decimal_point=E(this.state.jed,w(["number_format_decimals"])),this.state.numberFormatSettings.thousands_sep=E(this.state.jed,w(["number_format_thousands_sep"])),"number_format_decimals"===this.state.numberFormatSettings.decimal_point&&(this.state.numberFormatSettings.decimal_point="."),"number_format_thousands_sep"===this.state.numberFormatSettings.thousands_sep&&(this.state.numberFormatSettings.thousands_sep=","),this.state.translations.clear(),this.stateObserver.emit("change")},x.prototype.getLocale=function(){return this.state.locale},x.prototype.getLocaleSlug=function(){return this.state.localeSlug},x.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.jed.options.locale_data.messages[t]=e[t]);this.state.translations.clear(),this.stateObserver.emit("change")},x.prototype.hasTranslation=function(){return!!C(this,w(arguments))},x.prototype.translate=function(){var e,t=w(arguments),n=!t.components;if(n){try{e=JSON.stringify(t)}catch(c){n=!1}if(e){var r=this.state.translations.get(e);if(r)return r}}var a=C(this,t);if(a||(a=E(this.state.jed,t)),t.args){var i=Array.isArray(t.args)?t.args.slice(0):[t.args];i.unshift(a);try{a=u.a.sprintf.apply(u.a,i)}catch(l){if(!window||!window.console)return;var o=this.throwErrors?"error":"warn";"string"!=typeof l?window.console[o](l):window.console[o]("i18n sprintf error:",i)}}return t.components&&(a=s()({mixedString:a,components:t.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(e){a=e(a,t)})),n&&this.state.translations.set(e,a),a},x.prototype.reRenderTranslations=function(){j("Re-rendering all translations due to external request"),this.state.translations.clear(),this.stateObserver.emit("change")},x.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},x.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};var S,A,F=x,P=n(7),T=n.n(P),N=n(11),M=n.n(N),R=n(8),D=n.n(R),z=n(9),I=n.n(z),L=n(4),B=n.n(L),q=n(10),U=n.n(q),V=n(3),H=n.n(V),G=n(33),$=n.n(G),W=n(18),K=n.n(W),Z=new F,J=(Z.moment,Z.numberFormat.bind(Z)),Y=(Z.translate.bind(Z),Z.configure.bind(Z),Z.setLocale.bind(Z),Z.getLocale.bind(Z),Z.getLocaleSlug.bind(Z),Z.addTranslations.bind(Z),Z.reRenderTranslations.bind(Z),Z.registerComponentUpdateHook.bind(Z),Z.registerTranslateHook.bind(Z),Z.state,Z.stateObserver,Z.on.bind(Z),Z.off.bind(Z),Z.emit.bind(Z),A={moment:(S=Z).moment,numberFormat:S.numberFormat.bind(S),translate:S.translate.bind(S)},function(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}}(Z),n(45));function Q(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object(Y.a)(t);if(!r||isNaN(e))return null;var i=a()({},r,n),o=i.decimal,c=i.grouping,s=i.precision,l=i.symbol,u=e<0?"-":"",p=J(Math.abs(e),{decimals:s,thousandsSep:c,decPoint:o});return"".concat(u).concat(l).concat(p)}n.d(t,"a",(function(){return Q}))},function(e,t,n){"use strict";var r=n(93),a=n.n(r),i=n(5),o={i18n_default_locale_slug:"en",mc_analytics_enabled:!0,google_analytics_enabled:!1,google_analytics_key:null};var c,s,l=function(e){if(e in o)return o[e];throw new Error("config key `"+e+"` does not exist")},u=a()("dops:analytics");window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;var p={initialize:function(e,t,n){p.setUser(e,t),p.setSuperProps(n),p.identifyUser()},setUser:function(e,t){s={ID:e,username:t}},setSuperProps:function(e){c=e},mc:{bumpStat:function(e,t){var n=function(e,t){var n="";if("object"==typeof e){for(var r in e)n+="&x_"+encodeURIComponent(r)+"="+encodeURIComponent(e[r]);u("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),u('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);l("mc_analytics_enabled")&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){var n=function(e,t){var n="";if("object"==typeof e){for(var r in e)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(e[r]);u("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),u('Built stat "%s" in group "%s"',t,e);return n}(e,t);l("mc_analytics_enabled")&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){p.tracks.recordPageView(e),p.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,r,a,i,o){p.ga.recordPurchase(e,t,n,r,a,i,o)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(c&&(u("- Super Props: %o",c),t=Object(i.assign)(t,c)),u('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):u('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){var t="object"==typeof e?e:{target:e};p.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){p.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){u("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){var e={};p.ga.initialized||(s&&(e={userId:"u-"+s.ID}),window.ga("create",l("google_analytics_key"),"auto",e),p.ga.initialized=!0)},recordPageView:function(e,t){p.ga.initialize(),u("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),l("google_analytics_enabled")&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,n,r){p.ga.initialize();var a="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(a+=" [Option Label: "+n+"]"),void 0!==r&&(a+=" [Option Value: "+r+"]"),u(a),l("google_analytics_enabled")&&window.ga("send","event",e,t,n,r)},recordPurchase:function(e,t,n,r,a,i,o){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:r,currency:o}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:a,quantity:i}),window.ga("ecommerce:send")}},identifyUser:function(){s&&window._tkq.push(["identifyUser",s.ID,s.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}};t.a=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(5),a=function(e,t){return Object(r.reduce)(t,(function(t,n,r){var a=e[r],i=a.type,o=a.validator,c=a.validValues,s=a.default;return t[r]="boolean"===i?!!n:o?o(n)?n:s:c?c.includes(n)?n:s:n,t}),{})}},function(e,t){!function(){e.exports=this.wp.editPost}()},function(e,t,n){"use strict";var r=n(0),a=n(2),i=n(12),o=n.n(i);t.a=function(e){var t=e.size,n=void 0===t?24:t,i=e.className;return Object(r.createElement)(a.SVG,{className:o()("jetpack-logo",i),width:n,height:n,viewBox:"0 0 32 32"},Object(r.createElement)(a.Path,{className:"jetpack-logo__icon-circle",fill:"#00be28",d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z"}),Object(r.createElement)(a.Polygon,{className:"jetpack-logo__icon-triangle",fill:"#fff",points:"15,19 7,19 15,3 "}),Object(r.createElement)(a.Polygon,{className:"jetpack-logo__icon-triangle",fill:"#fff",points:"17,29 17,13 25,13 "}))}},function(e,t,n){var r=n(3);e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){r(e,t,n[t])}))}return e}},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.size,a=void 0===n?24:n,i=e.onClick,c=(e.icon,e.className),s=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","onClick","icon","className"]),l=["gridicon","gridicons-star",c,(t=a,!(0!=t%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",r({className:l,height:a,width:a,onClick:i},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"})))};var a,i=n(33),o=(a=i)&&a.__esModule?a:{default:a};e.exports=t.default},function(e,t,n){"use strict";var r=n(0),a=n(2),i=n(14),o=n(13),c=n(6);n(144);t.a=Object(i.compose)([Object(o.withDispatch)((function(e,t){var n=t.blockName,r=t.href,a=t.onClick;return{autosaveAndRedirect:function(t){return regeneratorRuntime.async((function(i){for(;;)switch(i.prev=i.next){case 0:return t.preventDefault(),a(n),i.next=4,regeneratorRuntime.awrap(e("core/editor").autosave());case 4:window.top.location.href=r;case 5:case"end":return i.stop()}}))}}}))])((function(e){var t=e.autosaveAndRedirect,n=e.buttonLabel,i=e.href,o=e.icon,s=e.subtitle,l=e.title;return Object(r.createElement)(c.Warning,{actions:i&&[Object(r.createElement)(a.Button,{href:i,onClick:t,target:"_top",isDefault:!0},n)],className:"jetpack-block-nudge"},Object(r.createElement)("span",{className:"jetpack-block-nudge__info"},o,Object(r.createElement)("span",{className:"jetpack-block-nudge__text-container"},Object(r.createElement)("span",{className:"jetpack-block-nudge__title"},l),Object(r.createElement)("span",{className:"jetpack-block-nudge__message"},s))))}))},function(e,t){!function(){e.exports=this.wp.date}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(15),a=n.n(r),i=n(0),o=n(12),c=n.n(o),s=n(5),l=n(16),u=n(6),p=n(13),d=n(26),h=function(e){var t=e.attributes,n=e.styleOption,r=e.viewportWidth,o=e.blockName,c=Object(l.getBlockType)(o);return Object(i.createElement)("div",{className:"block-editor-block-styles__item-preview"},Object(i.createElement)(u.BlockPreview,{viewportWidth:r,blocks:c.example?Object(l.getBlockFromExample)(o,{attributes:a()({},c.example.attributes,{style:n.value}),innerBlocks:c.example.innerBlocks}):Object(l.createBlock)(c,t)}))},m=i.memo?Object(i.memo)(h,(function(e,t){return Object(s.isEqual)(e,t)})):h;function f(e){var t,n=e.attributes,r=e.clientId,o=e.styleOptions,s=e.onSelectStyle,l=e.activeStyle,u=e.viewportWidth;return p.useSelect&&(t=Object(p.useSelect)((function(e){return(0,e("core/block-editor").getBlock)(r)}))),Object(i.createElement)("div",{className:"block-editor-block-styles"},o.map((function(e){var r=a()({},n,{style:e.value});return Object(i.createElement)("div",{key:e.value,className:c()("block-editor-block-styles__item",{"is-active":e.value===l}),onClick:function(){s({style:e.value})},onKeyDown:function(t){d.ENTER!==t.keyCode&&d.SPACE!==t.keyCode||(t.preventDefault(),s({style:e.value}))},role:"button",tabIndex:"0","aria-label":e.label},p.useSelect&&t&&Object(i.createElement)(m,{blockName:t.name,styleOption:e,attributes:r,viewportWidth:u}),Object(i.createElement)("div",{className:"block-editor-block-styles__item-label"},e.label))})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),a=n(1),i=n(2),o=n(47),c=n(44),s=Object(i.createSlotFill)("JetpackLikesAndSharingPanel"),l=s.Fill,u=s.Slot;Object(o.registerPlugin)("jetpack-likes-and-sharing-panel",{render:function(){return Object(r.createElement)(u,null,(function(e){return e.length?Object(r.createElement)(c.a,null,Object(r.createElement)(i.PanelBody,{title:Object(a.__)("Likes and Sharing","jetpack")},e)):null}))}})},function(e,t,n){"use strict";var r=n(233);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=a.default.parse(e,!0,!0),r="https:"===n.protocol;delete n.protocol,delete n.auth,delete n.port;var l={slashes:!0,protocol:"https:",query:{}};if(f=n.host,/^i[0-2]\.wp\.com$/.test(f))l.pathname=n.pathname,l.hostname=n.hostname;else{if(n.search)return null;var u=a.default.format(n);l.pathname=0===u.indexOf("//")?u.substring(1):u,l.hostname=(p=l.pathname,d=(0,i.default)(p),h=(0,o.default)(d),m="i"+Math.floor(3*h()),c('determined server "%s" to use with "%s"',m,p),m+".wp.com"),r&&(l.query.ssl=1)}var p,d,h,m;var f;if(t)for(var b in t)"host"!==b&&"hostname"!==b?"secure"!==b||t[b]?l.query[s[b]||b]=t[b]:l.protocol="http:":l.hostname=t[b];var g=a.default.format(l);return c("generated Photon URL: %s",g),g};var a=r(n(28)),i=r(n(234)),o=r(n(235)),c=(0,r(n(236)).default)("photon"),s={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return s}));var r=n(18),a=n.n(r),i=n(22);function o(e,t){var n=(t-e.reduce((function(e,t){return e+t}),0))/e.length;return e.map((function(e){return e+n}))}function c(e,t){!function(e,t,n){var r=a()(t,2),c=r[0],s=r[1],h=1/c*(n-i.b*(e.childElementCount-1)-s);!function(e,t){var n=t.rawHeight,r=t.rowWidth,a=l(e),c=a.map((function(e){return(n-i.b*(e.childElementCount-1))*p(e)[0]})),s=o(c,r);a.forEach((function(e,t){var r=c[t],a=s[t];!function(e,t){var n=t.colHeight,r=t.width,a=t.rawWidth,i=o(u(e).map((function(e){return a/d(e)})),n);Array.from(e.children).forEach((function(e,t){var n=i[t];e.setAttribute("style","height:".concat(n,"px;width:").concat(r,"px;"))}))}(e,{colHeight:n-i.b*(e.childElementCount-1),width:a,rawWidth:r})}))}(e,{rawHeight:h,rowWidth:n-i.b*(e.childElementCount-1)})}(e,function(e){return l(e).map(p).reduce((function(e,t){var n=a()(e,2),r=n[0],i=n[1],o=a()(t,2);return[r+o[0],i+o[1]]}),[0,0])}(e),t)}function s(e){return Array.from(e.querySelectorAll(".tiled-gallery__row"))}function l(e){return Array.from(e.querySelectorAll(".tiled-gallery__col"))}function u(e){return Array.from(e.querySelectorAll(".tiled-gallery__item > img, .tiled-gallery__item > a > img"))}function p(e){var t=u(e),n=t.length,r=1/t.map(d).reduce((function(e,t){return e+1/t}),0);return[r,r*n||1]}function d(e){var t=parseInt(e.dataset.width,10),n=parseInt(e.dataset.height,10);return t&&!Number.isNaN(t)&&n&&!Number.isNaN(n)?t/n:1}},function(e,t,n){!function(n,r){var a=Array.prototype,i=Object.prototype,o=a.slice,c=i.hasOwnProperty,s=a.forEach,l={},u={forEach:function(e,t,n){var r,a,i;if(null!==e)if(s&&e.forEach===s)e.forEach(t,n);else if(e.length===+e.length){for(r=0,a=e.length;r<a;r++)if(r in e&&t.call(n,e[r],r,e)===l)return}else for(i in e)if(c.call(e,i)&&t.call(n,e[i],i,e)===l)return},extend:function(e){return this.forEach(o.call(arguments,1),(function(t){for(var n in t)e[n]=t[n]})),e}},p=function(e){if(this.defaults={locale_data:{messages:{"":{domain:"messages",lang:"en",plural_forms:"nplurals=2; plural=(n != 1);"}}},domain:"messages",debug:!1},this.options=u.extend({},this.defaults,e),this.textdomain(this.options.domain),e.domain&&!this.options.locale_data[this.options.domain])throw new Error("Text domain set to non-existent domain: `"+e.domain+"`")};function d(e){return p.PF.compile(e||"nplurals=2; plural=(n != 1);")}function h(e,t){this._key=e,this._i18n=t}p.context_delimiter=String.fromCharCode(4),u.extend(h.prototype,{onDomain:function(e){return this._domain=e,this},withContext:function(e){return this._context=e,this},ifPlural:function(e,t){return this._val=e,this._pkey=t,this},fetch:function(e){return"[object Array]"!={}.toString.call(e)&&(e=[].slice.call(arguments,0)),(e&&e.length?p.sprintf:function(e){return e})(this._i18n.dcnpgettext(this._domain,this._context,this._key,this._pkey,this._val),e)}}),u.extend(p.prototype,{translate:function(e){return new h(e,this)},textdomain:function(e){if(!e)return this._textdomain;this._textdomain=e},gettext:function(e){return this.dcnpgettext.call(this,void 0,void 0,e)},dgettext:function(e,t){return this.dcnpgettext.call(this,e,void 0,t)},dcgettext:function(e,t){return this.dcnpgettext.call(this,e,void 0,t)},ngettext:function(e,t,n){return this.dcnpgettext.call(this,void 0,void 0,e,t,n)},dngettext:function(e,t,n,r){return this.dcnpgettext.call(this,e,void 0,t,n,r)},dcngettext:function(e,t,n,r){return this.dcnpgettext.call(this,e,void 0,t,n,r)},pgettext:function(e,t){return this.dcnpgettext.call(this,void 0,e,t)},dpgettext:function(e,t,n){return this.dcnpgettext.call(this,e,t,n)},dcpgettext:function(e,t,n){return this.dcnpgettext.call(this,e,t,n)},npgettext:function(e,t,n,r){return this.dcnpgettext.call(this,void 0,e,t,n,r)},dnpgettext:function(e,t,n,r,a){return this.dcnpgettext.call(this,e,t,n,r,a)},dcnpgettext:function(e,t,n,r,a){var i;if(r=r||n,e=e||this._textdomain,!this.options)return(i=new p).dcnpgettext.call(i,void 0,void 0,n,r,a);if(!this.options.locale_data)throw new Error("No locale data provided.");if(!this.options.locale_data[e])throw new Error("Domain `"+e+"` was not found.");if(!this.options.locale_data[e][""])throw new Error("No locale meta information provided.");if(!n)throw new Error("No translation key found.");var o,c,s,l=t?t+p.context_delimiter+n:n,u=this.options.locale_data,h=u[e],m=(u.messages||this.defaults.locale_data.messages)[""],f=h[""].plural_forms||h[""]["Plural-Forms"]||h[""]["plural-forms"]||m.plural_forms||m["Plural-Forms"]||m["plural-forms"];if(void 0===a)s=0;else{if("number"!=typeof a&&(a=parseInt(a,10),isNaN(a)))throw new Error("The number that was passed in is not a number.");s=d(f)(a)}if(!h)throw new Error("No domain named `"+e+"` could be found.");return!(o=h[l])||s>o.length?(this.options.missing_key_callback&&this.options.missing_key_callback(l,e),c=[n,r],!0===this.options.debug&&console.log(c[d(f)(a)]),c[d()(a)]):(c=o[s])||(c=[n,r])[d()(a)]}});var m,f,b=function(){function e(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function t(e,t){for(var n=[];t>0;n[--t]=e);return n.join("")}var n=function(){return n.cache.hasOwnProperty(arguments[0])||(n.cache[arguments[0]]=n.parse(arguments[0])),n.format.call(null,n.cache[arguments[0]],arguments)};return n.format=function(n,r){var a,i,o,c,s,l,u,p=1,d=n.length,h="",m=[];for(i=0;i<d;i++)if("string"===(h=e(n[i])))m.push(n[i]);else if("array"===h){if((c=n[i])[2])for(a=r[p],o=0;o<c[2].length;o++){if(!a.hasOwnProperty(c[2][o]))throw b('[sprintf] property "%s" does not exist',c[2][o]);a=a[c[2][o]]}else a=c[1]?r[c[1]]:r[p++];if(/[^s]/.test(c[8])&&"number"!=e(a))throw b("[sprintf] expecting number but found %s",e(a));switch(null==a&&(a=""),c[8]){case"b":a=a.toString(2);break;case"c":a=String.fromCharCode(a);break;case"d":a=parseInt(a,10);break;case"e":a=c[7]?a.toExponential(c[7]):a.toExponential();break;case"f":a=c[7]?parseFloat(a).toFixed(c[7]):parseFloat(a);break;case"o":a=a.toString(8);break;case"s":a=(a=String(a))&&c[7]?a.substring(0,c[7]):a;break;case"u":a=Math.abs(a);break;case"x":a=a.toString(16);break;case"X":a=a.toString(16).toUpperCase()}a=/[def]/.test(c[8])&&c[3]&&a>=0?"+"+a:a,l=c[4]?"0"==c[4]?"0":c[4].charAt(1):" ",u=c[6]-String(a).length,s=c[6]?t(l,u):"",m.push(c[5]?a+s:s+a)}return m.join("")},n.cache={},n.parse=function(e){for(var t=e,n=[],r=[],a=0;t;){if(null!==(n=/^[^\x25]+/.exec(t)))r.push(n[0]);else if(null!==(n=/^\x25{2}/.exec(t)))r.push("%");else{if(null===(n=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(t)))throw"[sprintf] huh?";if(n[2]){a|=1;var i=[],o=n[2],c=[];if(null===(c=/^([a-z_][a-z_\d]*)/i.exec(o)))throw"[sprintf] huh?";for(i.push(c[1]);""!==(o=o.substring(c[0].length));)if(null!==(c=/^\.([a-z_][a-z_\d]*)/i.exec(o)))i.push(c[1]);else{if(null===(c=/^\[(\d+)\]/.exec(o)))throw"[sprintf] huh?";i.push(c[1])}n[2]=i}else a|=2;if(3===a)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";r.push(n)}t=t.substring(n[0].length)}return r},n}(),g=function(e,t){return t.unshift(e),b.apply(null,t)};p.parse_plural=function(e,t){return e=e.replace(/n/g,t),p.parse_expression(e)},p.sprintf=function(e,t){return"[object Array]"=={}.toString.call(t)?g(e,[].slice.call(t)):b.apply(this,[].slice.call(arguments))},p.prototype.sprintf=function(){return p.sprintf.apply(this,arguments)},(p.PF={}).parse=function(e){var t=p.PF.extractPluralExpr(e);return p.PF.parser.parse.call(p.PF.parser,t)},p.PF.compile=function(e){var t=p.PF.parse(e);return function(e){return!0===(n=p.PF.interpreter(t)(e))?1:n||0;var n}},p.PF.interpreter=function(e){return function(t){switch(e.type){case"GROUP":return p.PF.interpreter(e.expr)(t);case"TERNARY":return p.PF.interpreter(e.expr)(t)?p.PF.interpreter(e.truthy)(t):p.PF.interpreter(e.falsey)(t);case"OR":return p.PF.interpreter(e.left)(t)||p.PF.interpreter(e.right)(t);case"AND":return p.PF.interpreter(e.left)(t)&&p.PF.interpreter(e.right)(t);case"LT":return p.PF.interpreter(e.left)(t)<p.PF.interpreter(e.right)(t);case"GT":return p.PF.interpreter(e.left)(t)>p.PF.interpreter(e.right)(t);case"LTE":return p.PF.interpreter(e.left)(t)<=p.PF.interpreter(e.right)(t);case"GTE":return p.PF.interpreter(e.left)(t)>=p.PF.interpreter(e.right)(t);case"EQ":return p.PF.interpreter(e.left)(t)==p.PF.interpreter(e.right)(t);case"NEQ":return p.PF.interpreter(e.left)(t)!=p.PF.interpreter(e.right)(t);case"MOD":return p.PF.interpreter(e.left)(t)%p.PF.interpreter(e.right)(t);case"VAR":return t;case"NUM":return e.val;default:throw new Error("Invalid Token found.")}}},p.PF.extractPluralExpr=function(e){e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),/;\s*$/.test(e)||(e=e.concat(";"));var t,n=/nplurals\=(\d+);/,r=e.match(n);if(!(r.length>1))throw new Error("nplurals not found in plural_forms string: "+e);if(r[1],!((t=(e=e.replace(n,"")).match(/plural\=(.*);/))&&t.length>1))throw new Error("`plural` expression not found: "+e);return t[1]},p.PF.parser=(m={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,"?":6,":":7,"||":8,"&&":9,"<":10,"<=":11,">":12,">=":13,"!=":14,"==":15,"%":16,"(":17,")":18,n:19,NUMBER:20,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",6:"?",7:":",8:"||",9:"&&",10:"<",11:"<=",12:">",13:">=",14:"!=",15:"==",16:"%",17:"(",18:")",19:"n",20:"NUMBER"},productions_:[0,[3,2],[4,5],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,1],[4,1]],performAction:function(e,t,n,r,a,i,o){var c=i.length-1;switch(a){case 1:return{type:"GROUP",expr:i[c-1]};case 2:this.$={type:"TERNARY",expr:i[c-4],truthy:i[c-2],falsey:i[c]};break;case 3:this.$={type:"OR",left:i[c-2],right:i[c]};break;case 4:this.$={type:"AND",left:i[c-2],right:i[c]};break;case 5:this.$={type:"LT",left:i[c-2],right:i[c]};break;case 6:this.$={type:"LTE",left:i[c-2],right:i[c]};break;case 7:this.$={type:"GT",left:i[c-2],right:i[c]};break;case 8:this.$={type:"GTE",left:i[c-2],right:i[c]};break;case 9:this.$={type:"NEQ",left:i[c-2],right:i[c]};break;case 10:this.$={type:"EQ",left:i[c-2],right:i[c]};break;case 11:this.$={type:"MOD",left:i[c-2],right:i[c]};break;case 12:this.$={type:"GROUP",expr:i[c-1]};break;case 13:this.$={type:"VAR"};break;case 14:this.$={type:"NUM",val:Number(e)}}},table:[{3:1,4:2,17:[1,3],19:[1,4],20:[1,5]},{1:[3]},{5:[1,6],6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{4:17,17:[1,3],19:[1,4],20:[1,5]},{5:[2,13],6:[2,13],7:[2,13],8:[2,13],9:[2,13],10:[2,13],11:[2,13],12:[2,13],13:[2,13],14:[2,13],15:[2,13],16:[2,13],18:[2,13]},{5:[2,14],6:[2,14],7:[2,14],8:[2,14],9:[2,14],10:[2,14],11:[2,14],12:[2,14],13:[2,14],14:[2,14],15:[2,14],16:[2,14],18:[2,14]},{1:[2,1]},{4:18,17:[1,3],19:[1,4],20:[1,5]},{4:19,17:[1,3],19:[1,4],20:[1,5]},{4:20,17:[1,3],19:[1,4],20:[1,5]},{4:21,17:[1,3],19:[1,4],20:[1,5]},{4:22,17:[1,3],19:[1,4],20:[1,5]},{4:23,17:[1,3],19:[1,4],20:[1,5]},{4:24,17:[1,3],19:[1,4],20:[1,5]},{4:25,17:[1,3],19:[1,4],20:[1,5]},{4:26,17:[1,3],19:[1,4],20:[1,5]},{4:27,17:[1,3],19:[1,4],20:[1,5]},{6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[1,28]},{6:[1,7],7:[1,29],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{5:[2,3],6:[2,3],7:[2,3],8:[2,3],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,3]},{5:[2,4],6:[2,4],7:[2,4],8:[2,4],9:[2,4],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,4]},{5:[2,5],6:[2,5],7:[2,5],8:[2,5],9:[2,5],10:[2,5],11:[2,5],12:[2,5],13:[2,5],14:[2,5],15:[2,5],16:[1,16],18:[2,5]},{5:[2,6],6:[2,6],7:[2,6],8:[2,6],9:[2,6],10:[2,6],11:[2,6],12:[2,6],13:[2,6],14:[2,6],15:[2,6],16:[1,16],18:[2,6]},{5:[2,7],6:[2,7],7:[2,7],8:[2,7],9:[2,7],10:[2,7],11:[2,7],12:[2,7],13:[2,7],14:[2,7],15:[2,7],16:[1,16],18:[2,7]},{5:[2,8],6:[2,8],7:[2,8],8:[2,8],9:[2,8],10:[2,8],11:[2,8],12:[2,8],13:[2,8],14:[2,8],15:[2,8],16:[1,16],18:[2,8]},{5:[2,9],6:[2,9],7:[2,9],8:[2,9],9:[2,9],10:[2,9],11:[2,9],12:[2,9],13:[2,9],14:[2,9],15:[2,9],16:[1,16],18:[2,9]},{5:[2,10],6:[2,10],7:[2,10],8:[2,10],9:[2,10],10:[2,10],11:[2,10],12:[2,10],13:[2,10],14:[2,10],15:[2,10],16:[1,16],18:[2,10]},{5:[2,11],6:[2,11],7:[2,11],8:[2,11],9:[2,11],10:[2,11],11:[2,11],12:[2,11],13:[2,11],14:[2,11],15:[2,11],16:[2,11],18:[2,11]},{5:[2,12],6:[2,12],7:[2,12],8:[2,12],9:[2,12],10:[2,12],11:[2,12],12:[2,12],13:[2,12],14:[2,12],15:[2,12],16:[2,12],18:[2,12]},{4:30,17:[1,3],19:[1,4],20:[1,5]},{5:[2,2],6:[1,7],7:[2,2],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,2]}],defaultActions:{6:[2,1]},parseError:function(e,t){throw new Error(e)},parse:function(e){var t=this,n=[0],r=[null],a=[],i=this.table,o="",c=0,s=0,l=0;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var u=this.lexer.yylloc;function p(){var e;return"number"!=typeof(e=t.lexer.lex()||1)&&(e=t.symbols_[e]||e),e}a.push(u),"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var d,h,m,f,b,g,v,j,y,_,k={};;){if(m=n[n.length-1],this.defaultActions[m]?f=this.defaultActions[m]:(null==d&&(d=p()),f=i[m]&&i[m][d]),void 0===f||!f.length||!f[0]){if(!l){for(g in y=[],i[m])this.terminals_[g]&&g>2&&y.push("'"+this.terminals_[g]+"'");var O="";O=this.lexer.showPosition?"Parse error on line "+(c+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+y.join(", ")+", got '"+this.terminals_[d]+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==d?"end of input":"'"+(this.terminals_[d]||d)+"'"),this.parseError(O,{text:this.lexer.match,token:this.terminals_[d]||d,line:this.lexer.yylineno,loc:u,expected:y})}if(3==l){if(1==d)throw new Error(O||"Parsing halted.");s=this.lexer.yyleng,o=this.lexer.yytext,c=this.lexer.yylineno,u=this.lexer.yylloc,d=p()}for(;!(2..toString()in i[m]);){if(0==m)throw new Error(O||"Parsing halted.");_=1,n.length=n.length-2*_,r.length=r.length-_,a.length=a.length-_,m=n[n.length-1]}h=d,d=2,f=i[m=n[n.length-1]]&&i[m][2],l=3}if(f[0]instanceof Array&&f.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+d);switch(f[0]){case 1:n.push(d),r.push(this.lexer.yytext),a.push(this.lexer.yylloc),n.push(f[1]),d=null,h?(d=h,h=null):(s=this.lexer.yyleng,o=this.lexer.yytext,c=this.lexer.yylineno,u=this.lexer.yylloc,l>0&&l--);break;case 2:if(v=this.productions_[f[1]][1],k.$=r[r.length-v],k._$={first_line:a[a.length-(v||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(v||1)].first_column,last_column:a[a.length-1].last_column},void 0!==(b=this.performAction.call(k,o,s,c,this.yy,f[1],r,a)))return b;v&&(n=n.slice(0,-1*v*2),r=r.slice(0,-1*v),a=a.slice(0,-1*v)),n.push(this.productions_[f[1]][0]),r.push(k.$),a.push(k._$),j=i[n[n.length-2]][n[n.length-1]],n.push(j);break;case 3:return!0}}return!0}},f=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parseError)throw new Error(e);this.yy.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.match+=e,this.matched+=e,e.match(/\n/)&&this.yylineno++,this._input=this._input.slice(1),e},unput:function(e){return this._input=e+this._input,this},more:function(){return this._more=!0,this},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;var e,t;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;r<n.length;r++)if(e=this._input.match(this.rules[n[r]]))return(t=e[0].match(/\n.*/g))&&(this.yylineno+=t.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:t?t[t.length-1].length-1:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],this.performAction.call(this,this.yy,this,n[r],this.conditionStack[this.conditionStack.length-1])||void 0;if(""===this._input)return this.EOF;this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)},performAction:function(e,t,n,r){switch(n){case 0:break;case 1:return 20;case 2:return 19;case 3:return 8;case 4:return 9;case 5:return 6;case 6:return 7;case 7:return 11;case 8:return 13;case 9:return 10;case 10:return 12;case 11:return 14;case 12:return 15;case 13:return 16;case 14:return 17;case 15:return 18;case 16:return 5;case 17:return"INVALID"}},rules:[/^\s+/,/^[0-9]+(\.[0-9]+)?\b/,/^n\b/,/^\|\|/,/^&&/,/^\?/,/^:/,/^<=/,/^>=/,/^</,/^>/,/^!=/,/^==/,/^%/,/^\(/,/^\)/,/^$/,/^./],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}}};return e}(),m.lexer=f,m),e.exports&&(t=e.exports=p),t.Jed=p}()},function(e,t){var n=1e3,r=6e4,a=36e5,i=24*a;function o(e,t,n,r){var a=t>=1.5*n;return Math.round(e/n)+" "+r+(a?"s":"")}e.exports=function(e,t){t=t||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var o=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"weeks":case"week":case"w":return 6048e5*o;case"days":case"day":case"d":return o*i;case"hours":case"hour":case"hrs":case"hr":case"h":return o*a;case"minutes":case"minute":case"mins":case"min":case"m":return o*r;case"seconds":case"second":case"secs":case"sec":case"s":return o*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}(e);if("number"===c&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return o(e,t,i,"day");if(t>=a)return o(e,t,a,"hour");if(t>=r)return o(e,t,r,"minute");if(t>=n)return o(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=a)return Math.round(e/a)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(s){a=!0,i=s}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return n}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(e,t,n){"use strict";function r(){this.__rules__=[],this.__cache__=null}r.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},r.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},r.prototype.at=function(e,t,n){var r=this.__find__(e),a=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=a.alt||[],this.__cache__=null},r.prototype.before=function(e,t,n,r){var a=this.__find__(e),i=r||{};if(-1===a)throw new Error("Parser rule not found: "+e);this.__rules__.splice(a,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},r.prototype.after=function(e,t,n,r){var a=this.__find__(e),i=r||{};if(-1===a)throw new Error("Parser rule not found: "+e);this.__rules__.splice(a+1,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},r.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},r.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},r.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},r.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},r.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},e.exports=r},function(e,t,n){"use strict";function r(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}r.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return-1},r.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},r.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},r.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},r.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=r},function(e,t,n){"use strict";var r=n(92),a=n(91);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function c(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=a,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),a=0;a<e.length;a+=2)n.push(parseInt(e[a]+e[a+1],16))}else for(var r=0,a=0;a<e.length;a++){var o=e.charCodeAt(a);o<128?n[r++]=o:o<2048?(n[r++]=o>>6|192,n[r++]=63&o|128):i(e,a)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++a)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(a=0;a<e.length;a++)n[a]=0|e[a];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=c(e[n].toString(16));return t},t.htonl=o,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var a=e[r];"little"===t&&(a=o(a)),n+=s(a.toString(16))}return n},t.zero2=c,t.zero8=s,t.join32=function(e,t,n,a){var i=n-t;r(i%4==0);for(var o=new Array(i/4),c=0,s=t;c<o.length;c++,s+=4){var l;l="big"===a?e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]:e[s+3]<<24|e[s+2]<<16|e[s+1]<<8|e[s],o[c]=l>>>0}return o},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,a=0;r<e.length;r++,a+=4){var i=e[r];"big"===t?(n[a]=i>>>24,n[a+1]=i>>>16&255,n[a+2]=i>>>8&255,n[a+3]=255&i):(n[a+3]=i>>>24,n[a+2]=i>>>16&255,n[a+1]=i>>>8&255,n[a]=255&i)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,a){return e+t+n+r+a>>>0},t.sum64=function(e,t,n,r){var a=e[t],i=r+e[t+1]>>>0,o=(i<r?1:0)+n+a;e[t]=o>>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,a,i,o,c){var s=0,l=t;return s+=(l=l+r>>>0)<t?1:0,s+=(l=l+i>>>0)<i?1:0,e+n+a+o+(s+=(l=l+c>>>0)<c?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,a,i,o,c){return t+r+i+c>>>0},t.sum64_5_hi=function(e,t,n,r,a,i,o,c,s,l){var u=0,p=t;return u+=(p=p+r>>>0)<t?1:0,u+=(p=p+i>>>0)<i?1:0,u+=(p=p+c>>>0)<c?1:0,e+n+a+o+s+(u+=(p=p+l>>>0)<l?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,a,i,o,c,s,l){return t+r+i+c+l>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t,n){"use strict";var r,a="object"==typeof Reflect?Reflect:null,i=a&&"function"==typeof a.apply?a.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function c(){c.init.call(this)}e.exports=c,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var s=10;function l(e){return void 0===e._maxListeners?c.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var a,i,o,c;if("function"!=typeof n)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n);if(void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),o=i[t]),void 0===o)o=i[t]=n,++e._eventsCount;else if("function"==typeof o?o=i[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(a=l(e))>0&&o.length>a&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,c=s,console&&console.warn&&console.warn(c)}return e}function p(){for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,i(this.listener,this.target,e))}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},a=p.bind(r);return a.listener=n,r.wrapFn=a,a}function h(e,t,n){var r=e._events;if(void 0===r)return[];var a=r[t];return void 0===a?[]:"function"==typeof a?n?[a.listener||a]:[a]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(a):f(a,a.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function f(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),c.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},c.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},c.prototype.getMaxListeners=function(){return l(this)},c.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,a=this._events;if(void 0!==a)r=r&&void 0===a.error;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var c=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw c.context=o,c}var s=a[e];if(void 0===s)return!1;if("function"==typeof s)i(s,this,t);else{var l=s.length,u=f(s,l);for(n=0;n<l;++n)i(u[n],this,t)}return!0},c.prototype.addListener=function(e,t){return u(this,e,t,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(e,t){return u(this,e,t,!0)},c.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.on(e,d(this,e,t)),this},c.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.prependListener(e,d(this,e,t)),this},c.prototype.removeListener=function(e,t){var n,r,a,i,o;if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);if(void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(a=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){o=n[i].listener,a=i;break}if(a<0)return this;0===a?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,a),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(e){var t,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[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var a,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(a=i[r])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},c.prototype.listeners=function(e){return h(this,e,!0)},c.prototype.rawListeners=function(e){return h(this,e,!1)},c.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},c.prototype.listenerCount=m,c.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(18),a=n.n(r),i=n(5);n(135);function o(){var e,t,r,o,c,s,l,u=arguments;return regeneratorRuntime.async((function(p){for(;;)switch(p.prev=p.next){case 0:return e=u.length>0&&void 0!==u[0]?u[0]:".swiper-container",t=u.length>1&&void 0!==u[1]?u[1]:{},r=u.length>2&&void 0!==u[2]?u[2]:{},o={effect:"slide",grabCursor:!0,init:!0,initialSlide:0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{bulletElement:"button",clickable:!0,el:".swiper-pagination",type:"bullets"},preventClicksPropagation:!1,releaseFormElements:!1,setWrapperSize:!0,touchStartPreventDefault:!1,on:Object(i.mapValues)(r,(function(e){return function(){e(this)}}))},p.next=6,regeneratorRuntime.awrap(Promise.all([n.e(17).then(n.t.bind(null,266,7)),n.e(17).then(n.t.bind(null,267,7))]));case 6:return c=p.sent,s=a()(c,1),l=s[0].default,p.abrupt("return",new l(e,Object(i.merge)({},o,t)));case 10:case"end":return p.stop()}}))}},function(e,t){!function(){e.exports=this.wp.escapeHtml}()},,function(e,t,n){"use strict";var r=n(18),a=n.n(r),i=n(7),o=n.n(i),c=n(11),s=n.n(c),l=n(8),u=n.n(l),p=n(9),d=n.n(p),h=n(4),m=n.n(h),f=n(10),b=n.n(f),g=n(3),v=n.n(g),j=n(0),y=n(1),_=n(5),k=n(2),O=(n(131),function(e){function t(){var e,n;o()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=u()(this,(e=d()(t)).call.apply(e,[this].concat(a))),v()(m()(n),"handleClick",(function(){(0,n.props.onClick)(m()(n))})),v()(m()(n),"getPoint",(function(){var e=n.props.point;return[e.coordinates.longitude,e.coordinates.latitude]})),n}return b()(t,e),s()(t,[{key:"componentDidMount",value:function(){this.renderMarker()}},{key:"componentWillUnmount",value:function(){this.marker&&this.marker.remove()}},{key:"componentDidUpdate",value:function(){this.renderMarker()}},{key:"renderMarker",value:function(){var e=this.props,t=e.map,n=e.point,r=e.mapboxgl,a=e.markerColor,i=this.handleClick,o=[n.coordinates.longitude,n.coordinates.latitude],c=this.marker?this.marker.getElement():document.createElement("div");this.marker?this.marker.setLngLat(o):(c.className="wp-block-jetpack-map-marker",this.marker=new r.Marker(c).setLngLat(o).setOffset([0,-19]).addTo(t),this.marker.getElement().addEventListener("click",i)),c.innerHTML='<?xml version="1.0" encoding="UTF-8"?><svg version="1.1" viewBox="0 0 32 38" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g fill-rule="evenodd"><path id="d" d="m16 38s16-11.308 16-22-7.1634-16-16-16-16 5.3076-16 16 16 22 16 22z" fill="'+a+'" mask="url(#c)"/></g></svg>'}},{key:"render",value:function(){return null}}]),t}(j.Component));O.defaultProps={point:{},map:null,markerColor:"#000000",mapboxgl:null,onClick:function(){}};var w=O,E=function(e){function t(){var e,n;o()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=u()(this,(e=d()(t)).call.apply(e,[this].concat(a))),v()(m()(n),"closeClick",(function(){n.props.unsetActiveMarker()})),n}return b()(t,e),s()(t,[{key:"componentDidMount",value:function(){var e=this.props.mapboxgl;this.el=document.createElement("DIV"),this.infowindow=new e.Popup({closeButton:!0,closeOnClick:!1,offset:{left:[0,0],top:[0,5],right:[0,0],bottom:[0,-40]}}),this.infowindow.setDOMContent(this.el),this.infowindow.on("close",this.closeClick)}},{key:"componentDidUpdate",value:function(e){this.props.activeMarker!==e.activeMarker&&(this.props.activeMarker?this.openWindow():this.closeWindow())}},{key:"render",value:function(){return this.el?Object(j.createPortal)(this.props.children,this.el):null}},{key:"openWindow",value:function(){var e=this.props,t=e.map,n=e.activeMarker;this.infowindow.setLngLat(n.getPoint()).addTo(t)}},{key:"closeWindow",value:function(){this.infowindow.remove()}}]),t}(j.Component);E.defaultProps={unsetActiveMarker:function(){},activeMarker:null,map:null,mapboxgl:null};var C=E;var x=function(e){function t(){var e;return o()(this,t),e=u()(this,d()(t).apply(this,arguments)),v()(m()(e),"onMarkerClick",(function(t){var n=e.props.onMarkerClick;e.setState({activeMarker:t}),n()})),v()(m()(e),"onMapClick",(function(){e.setState({activeMarker:null})})),v()(m()(e),"clearCurrentMarker",(function(){e.setState({activeMarker:null})})),v()(m()(e),"updateActiveMarker",(function(t){var n=e.props.points,r=e.state.activeMarker.props.index,a=n.slice(0);Object(_.assign)(a[r],t),e.props.onSetPoints(a)})),v()(m()(e),"deleteActiveMarker",(function(){var t=e.props.points,n=e.state.activeMarker.props.index,r=t.slice(0);r.splice(n,1),e.props.onSetPoints(r),e.setState({activeMarker:null})})),v()(m()(e),"sizeMap",(function(){var t=e.state.map,n=e.mapRef.current,r=n.offsetWidth,a=window.location.search.indexOf("map-block-counter")>-1?window.innerHeight:.8*window.innerHeight,i=Math.min(.75*r,a);n.style.height=i+"px",t.resize(),e.setBoundsByMarkers()})),v()(m()(e),"setBoundsByMarkers",(function(){var t=e.props,n=t.admin,r=t.onSetMapCenter,a=t.onSetZoom,i=t.points,o=t.zoom,c=e.state,s=c.map,l=c.activeMarker,u=c.mapboxgl,p=c.zoomControl,d=c.boundsSetProgrammatically;if(s&&(i.length&&n?s.dragPan.disable():s.dragPan.enable(),i.length&&!l)){var h=new u.LngLatBounds;if(i.forEach((function(e){h.extend([e.coordinates.longitude,e.coordinates.latitude])})),r(h.getCenter()),i.length>1){s.fitBounds(h,{padding:{top:40,bottom:40,left:20,right:20}}),e.setState({boundsSetProgrammatically:!0});try{s.removeControl(p)}catch(m){}}else{if(s.setCenter(h.getCenter()),d){s.setZoom(12),a(12)}else s.setZoom(parseInt(o,10));s.addControl(p),e.setState({boundsSetProgrammatically:!1})}}})),v()(m()(e),"scriptsLoaded",(function(){var t=e.props,n=t.mapCenter,r=t.points;e.setState({loaded:!0}),r.length,e.initMap(n)})),v()(m()(e),"googlePoint2Mapbox",(function(e){return e.hasOwnProperty("lat")&&e.hasOwnProperty("lng")?e:{lat:e.latitude||0,lng:e.longitude||0}})),e.state={map:null,fit_to_bounds:!1,loaded:!1,mapboxgl:null},e.mapRef=Object(j.createRef)(),e.debouncedSizeMap=Object(_.debounce)(e.sizeMap,250),e}return b()(t,e),s()(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.points,r=t.admin,a=t.children,i=t.markerColor,o=this.state,c=o.map,s=o.activeMarker,l=o.mapboxgl,u=this.onMarkerClick,p=this.deleteActiveMarker,d=this.updateActiveMarker,h=Object(_.get)(s,"props.point")||{},m=h.title,f=h.caption,b=j.Children.map(a,(function(e){if("AddPoint"===Object(_.get)(e,"props.tagName"))return e})),g=c&&l&&n.map((function(e,t){return Object(j.createElement)(w,{key:t,point:e,index:t,map:c,mapboxgl:l,markerColor:i,onClick:u})})),v=l&&Object(j.createElement)(C,{activeMarker:s,map:c,mapboxgl:l,unsetActiveMarker:function(){return e.setState({activeMarker:null})}},s&&r&&Object(j.createElement)(j.Fragment,null,Object(j.createElement)(k.TextControl,{label:Object(y.__)("Marker Title","jetpack"),value:m,onChange:function(e){return d({title:e})}}),Object(j.createElement)(k.TextareaControl,{className:"wp-block-jetpack-map__marker-caption",label:Object(y.__)("Marker Caption","jetpack"),value:f,rows:"2",tag:"textarea",onChange:function(e){return d({caption:e})}}),Object(j.createElement)(k.Button,{onClick:p,className:"wp-block-jetpack-map__delete-btn"},Object(j.createElement)(k.Dashicon,{icon:"trash",size:"15"})," ",Object(y.__)("Delete Marker","jetpack"))),s&&!r&&Object(j.createElement)(j.Fragment,null,Object(j.createElement)("h3",null,m),Object(j.createElement)("p",null,f)));return Object(j.createElement)(j.Fragment,null,Object(j.createElement)("div",{className:"wp-block-jetpack-map__gm-container",ref:this.mapRef},g),v,b)}},{key:"componentDidMount",value:function(){this.props.apiKey&&this.loadMapLibraries()}},{key:"componentWillUnmount",value:function(){this.debouncedSizeMap.cancel()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.apiKey,r=t.children,a=t.points,i=t.mapStyle,o=t.mapDetails,c=this.state.map;n&&n.length>0&&n!==e.apiKey&&this.loadMapLibraries(),r!==e.children&&!1!==r&&this.clearCurrentMarker(),a!==e.points&&this.setBoundsByMarkers(),a.length!==e.points.length&&this.clearCurrentMarker(),i===e.mapStyle&&o===e.mapDetails||c.setStyle(this.getMapStyle())}},{key:"getMapStyle",value:function(){var e=this.props;return function(e,t){return{default:{details:"mapbox://styles/automattic/cjolkhmez0qdd2ro82dwog1in",no_details:"mapbox://styles/automattic/cjolkci3905d82soef4zlmkdo"},black_and_white:{details:"mapbox://styles/automattic/cjolkixvv0ty42spgt2k4j434",no_details:"mapbox://styles/automattic/cjolkgc540tvj2spgzzoq37k4"},satellite:{details:"mapbox://styles/mapbox/satellite-streets-v10",no_details:"mapbox://styles/mapbox/satellite-v9"},terrain:{details:"mapbox://styles/automattic/cjolkf8p405fh2soet2rdt96b",no_details:"mapbox://styles/automattic/cjolke6fz12ys2rpbpvgl12ha"}}[e][t?"details":"no_details"]}(e.mapStyle,e.mapDetails)}},{key:"getMapType",value:function(){switch(this.props.mapStyle){case"satellite":return"HYBRID";case"terrain":return"TERRAIN";case"black_and_white":default:return"ROADMAP"}}},{key:"loadMapLibraries",value:function(){var e=this,t=this.props.apiKey;Promise.all([n.e(16).then(n.t.bind(null,306,7)),n.e(16).then(n.t.bind(null,307,7))]).then((function(n){var r=a()(n,1)[0].default;r.accessToken=t,e.setState({mapboxgl:r},e.scriptsLoaded)}))}},{key:"initMap",value:function(e){var t=this,n=this.state.mapboxgl,r=this.props,a=r.zoom,i=r.onMapLoaded,o=r.onError,c=r.admin,s=null;try{s=new n.Map({container:this.mapRef.current,style:this.getMapStyle(),center:this.googlePoint2Mapbox(e),zoom:parseInt(a,10),pitchWithRotate:!1,attributionControl:!1,dragRotate:!1})}catch(u){return void o("mapbox_error",u.message)}s.on("error",(function(e){o("mapbox_error",e.error.message)}));var l=new n.NavigationControl({showCompass:!1,showZoom:!0});s.on("zoomend",(function(){t.props.onSetZoom(s.getZoom())})),s.on("moveend",(function(){var e=t.props,n=e.onSetMapCenter;e.points.length<1&&n(s.getCenter())})),s.getCanvas().addEventListener("click",this.onMapClick),this.setState({map:s,zoomControl:l},(function(){t.debouncedSizeMap(),s.addControl(l),c||s.addControl(new n.FullscreenControl),t.mapRef.current.addEventListener("alignmentChanged",t.debouncedSizeMap),s.resize(),i(),t.setState({loaded:!0}),window.addEventListener("resize",t.debouncedSizeMap)}))}}]),t}(j.Component);x.defaultProps={points:[],mapStyle:"default",zoom:13,onSetZoom:function(){},onSetMapCenter:function(){},onMapLoaded:function(){},onMarkerClick:function(){},onError:function(){},markerColor:"red",apiKey:null,mapCenter:{}};t.a=x},function(e,t){!function(){e.exports=this.moment}()},function(e,t){!function(){e.exports=this.wp.notices}()},function(e,t){!function(e){var t=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),n=function(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t&&(n[Symbol.iterator]=function(){return n}),n},r=function(e){return encodeURIComponent(e).replace(/%20/g,"+")},a=function(e){return decodeURIComponent(String(e).replace(/\+/g," "))};(function(){try{var t=e.URLSearchParams;return"a=1"===new t("?a=1").toString()&&"function"==typeof t.prototype.set}catch(n){return!1}})()||function(){var a=function(e){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var t=typeof e;if("undefined"===t);else if("string"===t)""!==e&&this._fromString(e);else if(e instanceof a){var n=this;e.forEach((function(e,t){n.append(t,e)}))}else{if(null===e||"object"!==t)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(e))for(var r=0;r<e.length;r++){var i=e[r];if("[object Array]"!==Object.prototype.toString.call(i)&&2===i.length)throw new TypeError("Expected [string, any] as entry at index "+r+" of URLSearchParams's input");this.append(i[0],i[1])}else for(var o in e)e.hasOwnProperty(o)&&this.append(o,e[o])}},i=a.prototype;i.append=function(e,t){e in this._entries?this._entries[e].push(String(t)):this._entries[e]=[String(t)]},i.delete=function(e){delete this._entries[e]},i.get=function(e){return e in this._entries?this._entries[e][0]:null},i.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},i.has=function(e){return e in this._entries},i.set=function(e,t){this._entries[e]=[String(t)]},i.forEach=function(e,t){var n;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){n=this._entries[r];for(var a=0;a<n.length;a++)e.call(t,n[a],r,this)}},i.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),n(e)},i.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),n(e)},i.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),n(e)},t&&(i[Symbol.iterator]=i.entries),i.toString=function(){var e=[];return this.forEach((function(t,n){e.push(r(n)+"="+r(t))})),e.join("&")},e.URLSearchParams=a}();var i=e.URLSearchParams.prototype;"function"!=typeof i.sort&&(i.sort=function(){var e=this,t=[];this.forEach((function(n,r){t.push([r,n]),e._entries||e.delete(r)})),t.sort((function(e,t){return e[0]<t[0]?-1:e[0]>t[0]?1:0})),e._entries&&(e._entries={});for(var n=0;n<t.length;n++)this.append(t[n][0],t[n][1])}),"function"!=typeof i._fromString&&Object.defineProperty(i,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(e){if(this._entries)this._entries={};else{var t=[];this.forEach((function(e,n){t.push(n)}));for(var n=0;n<t.length;n++)this.delete(t[n])}var r,i=(e=e.replace(/^\?/,"")).split("&");for(n=0;n<i.length;n++)r=i[n].split("="),this.append(a(r[0]),r.length>1?a(r[1]):"")}})}("undefined"!=typeof window?window:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),function(e){if(function(){try{var t=new e.URL("b","http://a");return t.pathname="c%20d","http://a/c%20d"===t.href&&t.searchParams}catch(n){return!1}}()||function(){var t=e.URL,n=function(t,n){"string"!=typeof t&&(t=String(t));var r,a=document;if(n&&(void 0===e.location||n!==e.location.href)){(r=(a=document.implementation.createHTMLDocument("")).createElement("base")).href=n,a.head.appendChild(r);try{if(0!==r.href.indexOf(n))throw new Error(r.href)}catch(p){throw new Error("URL unable to set base "+n+" due to "+p)}}var i=a.createElement("a");if(i.href=t,r&&(a.body.appendChild(i),i.href=i.href),":"===i.protocol||!/:/.test(i.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:i});var o=new e.URLSearchParams(this.search),c=!0,s=!0,l=this;["append","delete","set"].forEach((function(e){var t=o[e];o[e]=function(){t.apply(o,arguments),c&&(s=!1,l.search=o.toString(),s=!0)}})),Object.defineProperty(this,"searchParams",{value:o,enumerable:!0});var u=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==u&&(u=this.search,s&&(c=!1,this.searchParams._fromString(this.search),c=!0))}})},r=n.prototype;["hash","host","hostname","port","protocol"].forEach((function(e){!function(e){Object.defineProperty(r,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})}(e)})),Object.defineProperty(r,"search",{get:function(){return this._anchorElement.search},set:function(e){this._anchorElement.search=e,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(r,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],t=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0}}),n.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)},n.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)},e.URL=n}(),void 0!==e.location&&!("origin"in e.location)){var t=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:t,enumerable:!0})}catch(n){setInterval((function(){e.location.origin=t()}),100)}}}("undefined"!=typeof window?window:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this)},function(e,t,n){},function(e,t,n){"use strict";e.exports=n(163)},function(e,t,n){"use strict";e.exports.encode=n(164),e.exports.decode=n(165),e.exports.format=n(166),e.exports.parse=n(167)},function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(e,t,n){"use strict";var r="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",a="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",i=new RegExp("^(?:"+r+"|"+a+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),o=new RegExp("^(?:"+r+"|"+a+")");e.exports.HTML_TAG_RE=i,e.exports.HTML_OPEN_CLOSE_TAG_RE=o},function(e,t,n){"use strict";e.exports.tokenize=function(e,t){var n,r,a,i,o=e.pos,c=e.src.charCodeAt(o);if(t)return!1;if(126!==c)return!1;if(a=(r=e.scanDelims(e.pos,!0)).length,i=String.fromCharCode(c),a<2)return!1;for(a%2&&(e.push("text","",0).content=i,a--),n=0;n<a;n+=2)e.push("text","",0).content=i+i,e.delimiters.push({marker:c,jump:n,token:e.tokens.length-1,level:e.level,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.postProcess=function(e){var t,n,r,a,i,o=[],c=e.delimiters,s=e.delimiters.length;for(t=0;t<s;t++)126===(r=c[t]).marker&&-1!==r.end&&(a=c[r.end],(i=e.tokens[r.token]).type="s_open",i.tag="s",i.nesting=1,i.markup="~~",i.content="",(i=e.tokens[a.token]).type="s_close",i.tag="s",i.nesting=-1,i.markup="~~",i.content="","text"===e.tokens[a.token-1].type&&"~"===e.tokens[a.token-1].content&&o.push(a.token-1));for(;o.length;){for(n=(t=o.pop())+1;n<e.tokens.length&&"s_close"===e.tokens[n].type;)n++;t!==--n&&(i=e.tokens[n],e.tokens[n]=e.tokens[t],e.tokens[t]=i)}}},function(e,t,n){"use strict";e.exports.tokenize=function(e,t){var n,r,a=e.pos,i=e.src.charCodeAt(a);if(t)return!1;if(95!==i&&42!==i)return!1;for(r=e.scanDelims(e.pos,42===i),n=0;n<r.length;n++)e.push("text","",0).content=String.fromCharCode(i),e.delimiters.push({marker:i,length:r.length,jump:n,token:e.tokens.length-1,level:e.level,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.postProcess=function(e){var t,n,r,a,i,o,c=e.delimiters;for(t=e.delimiters.length-1;t>=0;t--)95!==(n=c[t]).marker&&42!==n.marker||-1!==n.end&&(r=c[n.end],o=t>0&&c[t-1].end===n.end+1&&c[t-1].token===n.token-1&&c[n.end+1].token===r.token+1&&c[t-1].marker===n.marker,i=String.fromCharCode(n.marker),(a=e.tokens[n.token]).type=o?"strong_open":"em_open",a.tag=o?"strong":"em",a.nesting=1,a.markup=o?i+i:i,a.content="",(a=e.tokens[r.token]).type=o?"strong_close":"em_close",a.tag=o?"strong":"em",a.nesting=-1,a.markup=o?i+i:i,a.content="",o&&(e.tokens[c[t-1].token].content="",e.tokens[c[n.end+1].token].content="",t--))}},function(e,t,n){},function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){t.log=function(){var e;return"object"==typeof console&&console.log&&(e=console).log.apply(e,arguments)},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;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(a=r))})),t.splice(a,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var 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.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.exports=n(142)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},function(e){e.exports=JSON.parse('{"production":["business-hours","calendly","contact-form","contact-info","eventbrite","gif","likes","mailchimp","map","markdown","opentable","pinterest","publicize","rating-star","recurring-payments","related-posts","repeat-visitor","sharing","shortlinks","simple-payments","slideshow","subscriptions","tiled-gallery","videopress","wordads"],"beta":["amazon","seo"]}')},function(e,t,n){"use strict";var r=n(147),a=n(148);function i(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}t.extract=function(e){return e.split("?")[1]||""},t.parse=function(e,t){var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=a({arrayFormat:"none"},t)),r=Object.create(null);return"string"!=typeof e?r:(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("="),a=t.shift(),i=t.length>0?t.join("="):void 0;i=void 0===i?null:decodeURIComponent(i),n(decodeURIComponent(a),i,r)})),Object.keys(r).sort().reduce((function(e,t){var n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return t[e]})):t}(n):e[t]=n,e}),Object.create(null))):r},t.stringify=function(e,t){var n=function(e){switch(e.arrayFormat){case"index":return function(t,n,r){return null===n?[i(t,e),"[",r,"]"].join(""):[i(t,e),"[",i(r,e),"]=",i(n,e)].join("")};case"bracket":return function(t,n){return null===n?i(t,e):[i(t,e),"[]=",i(n,e)].join("")};default:return function(t,n){return null===n?i(t,e):[i(t,e),"=",i(n,e)].join("")}}}(t=a({encode:!0,strict:!0,arrayFormat:"none"},t));return e?Object.keys(e).sort().map((function(r){var a=e[r];if(void 0===a)return"";if(null===a)return i(r,t);if(Array.isArray(a)){var o=[];return a.slice().forEach((function(e){void 0!==e&&o.push(n(r,e,o.length))})),o.join("&")}return i(r,t)+"="+i(a,t)})).filter((function(e){return e.length>0})).join("&"):""}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.size,a=void 0===n?24:n,i=e.onClick,c=(e.icon,e.className),s=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","onClick","icon","className"]),l=["gridicon","gridicons-notice-outline",c,(t=a,!(0!=t%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",r({className:l,height:a,width:a,onClick:i},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})))};var a,i=n(33),o=(a=i)&&a.__esModule?a:{default:a};e.exports=t.default},function(e,t,n){e.exports=n.p+"images/eventbrite-in-page-example-e7ade5e253cebf23789d136227b66aa4.png"},function(e,t,n){e.exports=n.p+"images/eventbrite-modal-example-38b56f85505164d217370e285a7207a9.png"},function(e,t,n){e.exports=n.p+"images/map-preview-1744c8f7587de6d8857dbbe7d7cf5cb8.jpg"},function(e,t,n){"use strict";e.exports=n(162)},function(e,t,n){"use strict";e.exports=function(e){var t,n={};return function e(t,n){var r;if(Array.isArray(n))for(r=0;r<n.length;r++)e(t,n[r]);else for(r in n)t[r]=(t[r]||[]).concat(n[r])}(n,e),(t=function(e){return function(t){return function(r){var a,i,o=n[r.type],c=t(r);if(o)for(a=0;a<o.length;a++)(i=o[a](r,e))&&e.dispatch(i);return c}}}).effects=n,t}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.log=function(){var e;return"object"===("undefined"==typeof console?"undefined":r(console))&&console.log&&(e=console).log.apply(e,arguments)},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;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(a=r))})),t.splice(a,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var 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.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.exports=n(219)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=c(n(33)),i=c(n(220)),o=c(n(223));function c(e){return e&&e.__esModule?e:{default:e}}var s=void 0;function l(e,t){var n,o,c,u,p,d,h,m,f=[],b={};for(d=0;d<e.length;d++)if("string"!==(p=e[d]).type){if(!t.hasOwnProperty(p.value)||void 0===t[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(t[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+s);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){n=t[p.value],c=d;break}f.push(t[p.value])}else f.push(p.value);return n&&(u=function(e,t){var n,r,a=t[e],i=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){i++;continue}if("componentClose"===n.type){if(0===i)return r;i--}}throw new Error("Missing closing component token `"+a.value+"`")}(c,e),h=l(e.slice(c+1,u),t),o=a.default.cloneElement(n,{},h),f.push(o),u<e.length-1&&(m=l(e.slice(u+1),t),f=f.concat(m))),1===f.length?f[0]:(f.forEach((function(e,t){e&&(b["interpolation-child-"+t]=e)})),(0,i.default)(b))}t.default=function(e){var t=e.mixedString,n=e.components,a=e.throwErrors;if(s=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var i=(0,o.default)(t);try{return l(i,n)}catch(c){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+c.message+"`");return t}}},function(e,t,n){var r=n(72),a=n(91);function i(e){if(!(this instanceof i))return new i(e);"number"==typeof e&&(e={max:e}),e||(e={}),r.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}e.exports=i,a(i,r.EventEmitter),Object.defineProperty(i.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),i.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},i.prototype.remove=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},i.prototype._unlink=function(e,t,n){this.length--,0===this.length?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=n,this.cache[this.tail].prev=null):(this.cache[t].next=n,this.cache[n].prev=t)},i.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},i.prototype.set=function(e,t){var n;if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){if((n=this.cache[e]).value=t,this.maxAge&&(n.modified=Date.now()),e===this.head)return t;this._unlink(e,n.prev,n.next)}else n={value:t,modified:0,next:null,prev:null},this.maxAge&&(n.modified=Date.now()),this.cache[e]=n,this.length===this.max&&this.evict();return this.length++,n.next=null,n.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},i.prototype._checkAge=function(e,t){return!(this.maxAge&&Date.now()-t.modified>this.maxAge)||(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1)},i.prototype.get=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},i.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},function(e,t,n){"use strict";var r=n(71),a=n(224),i=n(225),o=r.rotl32,c=r.sum32,s=r.sum32_5,l=i.ft_1,u=a.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(d,u),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=o(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var a=this.h[0],i=this.h[1],u=this.h[2],d=this.h[3],h=this.h[4];for(r=0;r<n.length;r++){var m=~~(r/20),f=s(o(a,5),l(m,i,u,d),h,n[r],p[m]);h=d,d=u,u=o(i,30),i=a,a=f}this.h[0]=c(this.h[0],a),this.h[1]=c(this.h[1],i),this.h[2]=c(this.h[2],u),this.h[3]=c(this.h[3],d),this.h[4]=c(this.h[4],h)},d.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){e.exports=n.p+"images/paypal-button-1e53882e702881f8dfd958c141e65383.png"},function(e,t,n){e.exports=n.p+"images/paypal-button-2x-fe4d34770a47484f401cecbb892f8456.png"},function(e,t,n){e.exports=n.p+"images/simple-payments_example-1-f3666e40d28c564ecf04f814e9a9f236.jpg"},function(e,t,n){e.exports=n.p+"images/slideshow_example-1-4d22ce5ab8c84b87d307458fa7975fea.jpg"},function(e,t,n){e.exports=n.p+"images/slideshow_example-2-2c82eb59aaea53932f5e718e17284db7.jpg"},function(e,t,n){e.exports=n.p+"images/slideshow_example-3-75cfaba94fc18a9c4b2bc164bd070c08.jpg"},function(e,t){!function(){e.exports=this.wp.tokenList}()},function(e,t,n){e.exports=n.p+"images/tiled-gallery_example-1-e124e79c7cd0291640efe8f28aa9a6cd.jpg"},function(e,t,n){e.exports=n.p+"images/tiled-gallery_example-2-ee687d7366c359324b23a9681fb2cf92.jpg"},function(e,t,n){e.exports=n.p+"images/tiled-gallery_example-3-4d22ce5ab8c84b87d307458fa7975fea.jpg"},function(e,t,n){e.exports=n.p+"images/tiled-gallery_example-4-2c82eb59aaea53932f5e718e17284db7.jpg"},function(e,t,n){e.exports=n.p+"images/tiled-gallery_example-5-3fafa6df43363f274a371ed90dbce254.jpg"},function(e,t,n){e.exports=n.p+"images/tiled-gallery_example-6-797246061ba8a7039b660584e9dc8946.jpg"},function(e,t,n){e.exports=n.p+"images/example_300x250-212e56e8c2ac91bdcbbd742cd7591e17.png"},function(e,t,n){e.exports=n.p+"images/example_728x90-a5e5ae2b8f307e343aea049530c1742d.png"},function(e,t,n){e.exports=n.p+"images/example_320x50-a1b9b09ff673b75f41d0b32162387f89.png"},function(e,t,n){e.exports=n.p+"images/example_160x600-a12cea65e6d4ce4b6f41d8c4f3184ded.png"},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(e){return n(e)}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},r(t)}e.exports=r},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){(function(e){var r;!function(a){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof window&&window;i.global!==i&&i.window!==i&&i.self;var o,c=2147483647,s=/^xn--/,l=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,h=String.fromCharCode;function m(e){throw RangeError(p[e])}function f(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function b(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+f((e=e.replace(u,".")).split("."),t).join(".")}function g(e){for(var t,n,r=[],a=0,i=e.length;a<i;)(t=e.charCodeAt(a++))>=55296&&t<=56319&&a<i?56320==(64512&(n=e.charCodeAt(a++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),a--):r.push(t);return r}function v(e){return f(e,(function(e){var t="";return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function j(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function y(e,t,n){var r=0;for(e=n?d(e/700):e>>1,e+=d(e/t);e>455;r+=36)e=d(e/35);return d(r+36*e/(e+38))}function _(e){var t,n,r,a,i,o,s,l,u,p,h,f=[],b=e.length,g=0,j=128,_=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&m("not-basic"),f.push(e.charCodeAt(r));for(a=n>0?n+1:0;a<b;){for(i=g,o=1,s=36;a>=b&&m("invalid-input"),((l=(h=e.charCodeAt(a++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:36)>=36||l>d((c-g)/o))&&m("overflow"),g+=l*o,!(l<(u=s<=_?1:s>=_+26?26:s-_));s+=36)o>d(c/(p=36-u))&&m("overflow"),o*=p;_=y(g-i,t=f.length+1,0==i),d(g/t)>c-j&&m("overflow"),j+=d(g/t),g%=t,f.splice(g++,0,j)}return v(f)}function k(e){var t,n,r,a,i,o,s,l,u,p,f,b,v,_,k,O=[];for(b=(e=g(e)).length,t=128,n=0,i=72,o=0;o<b;++o)(f=e[o])<128&&O.push(h(f));for(r=a=O.length,a&&O.push("-");r<b;){for(s=c,o=0;o<b;++o)(f=e[o])>=t&&f<s&&(s=f);for(s-t>d((c-n)/(v=r+1))&&m("overflow"),n+=(s-t)*v,t=s,o=0;o<b;++o)if((f=e[o])<t&&++n>c&&m("overflow"),f==t){for(l=n,u=36;!(l<(p=u<=i?1:u>=i+26?26:u-i));u+=36)k=l-p,_=36-p,O.push(h(j(p+k%_,0))),l=d(k/_);O.push(h(j(l,0))),i=y(n,v,r==a),n=0,++r}++n,++t}return O.join("")}o={version:"1.3.2",ucs2:{decode:g,encode:v},decode:_,encode:k,toASCII:function(e){return b(e,(function(e){return l.test(e)?"xn--"+k(e):e}))},toUnicode:function(e){return b(e,(function(e){return s.test(e)?_(e.slice(4).toLowerCase()):e}))}},void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()}).call(this,n(137)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";t.decode=t.parse=n(140),t.encode=t.stringify=n(141)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,a){t=t||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var o=/\+/g;e=e.split(t);var c=1e3;a&&"number"==typeof a.maxKeys&&(c=a.maxKeys);var s=e.length;c>0&&s>c&&(s=c);for(var l=0;l<s;++l){var u,p,d,h,m=e[l].replace(o,"%20"),f=m.indexOf(n);f>=0?(u=m.substr(0,f),p=m.substr(f+1)):(u=m,p=""),d=decodeURIComponent(u),h=decodeURIComponent(p),r(i,d)?Array.isArray(i[d])?i[d].push(h):i[d]=[i[d],h]:i[d]=h}return i}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,a){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(a){var i=encodeURIComponent(r(a))+n;return Array.isArray(e[a])?e[a].map((function(e){return i+encodeURIComponent(r(e))})).join(t):i+encodeURIComponent(r(e[a]))})).join(t):a?encodeURIComponent(r(a))+n+encodeURIComponent(r(e)):""}},function(e,t,n){var r=n(21);e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return a.colors[Math.abs(t)%a.colors.length]}function a(e){var n;function r(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if(r.enabled){var o=r,c=Number(new Date),s=c-(n||c);o.diff=s,o.prev=n,o.curr=c,n=c,t[0]=a.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var l=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;l++;var r=a.formatters[n];if("function"==typeof r){var i=t[l];e=r.call(o,i),t.splice(l,1),l--}return e})),a.formatArgs.call(o,t);var u=o.log||a.log;u.apply(o,t)}}return r.namespace=e,r.enabled=a.enabled(e),r.useColors=a.useColors(),r.color=t(e),r.destroy=i,r.extend=o,"function"==typeof a.init&&a.init(r),a.instances.push(r),r}function i(){var e=a.instances.indexOf(this);return-1!==e&&(a.instances.splice(e,1),!0)}function o(e,t){var n=a(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function c(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return a.debug=a,a.default=a,a.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},a.disable=function(){var e=[].concat(r(a.names.map(c)),r(a.skips.map(c).map((function(e){return"-"+e})))).join(",");return a.enable(""),e},a.enable=function(e){var t;a.save(e),a.names=[],a.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length;for(t=0;t<r;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?a.skips.push(new RegExp("^"+e.substr(1)+"$")):a.names.push(new RegExp("^"+e+"$")));for(t=0;t<a.instances.length;t++){var i=a.instances[t];i.enabled=a.enabled(i.namespace)}},a.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=a.skips.length;t<n;t++)if(a.skips[t].test(e))return!1;for(t=0,n=a.names.length;t<n;t++)if(a.names[t].test(e))return!0;return!1},a.humanize=n(64),Object.keys(e).forEach((function(t){a[t]=e[t]})),a.instances=[],a.names=[],a.skips=[],a.formatters={},a.selectColor=t,a.enable(a.load()),a}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=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(a){return!1}}()?Object.assign:function(e,t){for(var n,c,s=o(e),l=1;l<arguments.length;l++){for(var u in n=Object(arguments[l]))a.call(n,u)&&(s[u]=n[u]);if(r){c=r(n);for(var p=0;p<c.length;p++)i.call(n,c[p])&&(s[c[p]]=n[c[p]])}}return s}},function(e,t,n){},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var r=n(19),a=n(170),i=n(174),o=n(175),c=n(183),s=n(197),l=n(210),u=n(82),p=n(212),d={default:n(213),zero:n(214),commonmark:n(215)},h=/^(vbscript|javascript|file|data):/,m=/^data:image\/(gif|png|jpeg|webp);/;function f(e){var t=e.trim().toLowerCase();return!h.test(t)||!!m.test(t)}var b=["http:","https:","mailto:"];function g(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||b.indexOf(t.protocol)>=0))try{t.hostname=p.toASCII(t.hostname)}catch(n){}return u.encode(u.format(t))}function v(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||b.indexOf(t.protocol)>=0))try{t.hostname=p.toUnicode(t.hostname)}catch(n){}return u.decode(u.format(t))}function j(e,t){if(!(this instanceof j))return new j(e,t);t||r.isString(e)||(t=e||{},e="default"),this.inline=new s,this.block=new c,this.core=new o,this.renderer=new i,this.linkify=new l,this.validateLink=f,this.normalizeLink=g,this.normalizeLinkText=v,this.utils=r,this.helpers=r.assign({},a),this.options={},this.configure(e),t&&this.set(t)}j.prototype.set=function(e){return r.assign(this.options,e),this},j.prototype.configure=function(e){var t,n=this;if(r.isString(e)&&!(e=d[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},j.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},j.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},j.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},j.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},j.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},j.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},j.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=j},function(e){e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')},function(e,t,n){"use strict";var r={};function a(e,t,n){var i,o,c,s,l,u="";for("string"!=typeof t&&(n=t,t=a.defaultChars),void 0===n&&(n=!0),l=function(e){var t,n,a=r[e];if(a)return a;for(a=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?a.push(n):a.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)a[e.charCodeAt(t)]=e[t];return a}(t),i=0,o=e.length;i<o;i++)if(c=e.charCodeAt(i),n&&37===c&&i+2<o&&/^[0-9a-f]{2}$/i.test(e.slice(i+1,i+3)))u+=e.slice(i,i+3),i+=2;else if(c<128)u+=l[c];else if(c>=55296&&c<=57343){if(c>=55296&&c<=56319&&i+1<o&&(s=e.charCodeAt(i+1))>=56320&&s<=57343){u+=encodeURIComponent(e[i]+e[i+1]),i++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[i]);return u}a.defaultChars=";/?:@&=+$,-_.!~*'()#",a.componentChars="-_.!~*'()",e.exports=a},function(e,t,n){"use strict";var r={};function a(e,t){var n;return"string"!=typeof t&&(t=a.defaultChars),n=function(e){var t,n,a=r[e];if(a)return a;for(a=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),a.push(n);for(t=0;t<e.length;t++)a[n=e.charCodeAt(t)]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return a}(t),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,r,a,i,o,c,s,l="";for(t=0,r=e.length;t<r;t+=3)(a=parseInt(e.slice(t+1,t+3),16))<128?l+=n[a]:192==(224&a)&&t+3<r&&128==(192&(i=parseInt(e.slice(t+4,t+6),16)))?(l+=(s=a<<6&1984|63&i)<128?"��":String.fromCharCode(s),t+=3):224==(240&a)&&t+6<r&&(i=parseInt(e.slice(t+4,t+6),16),o=parseInt(e.slice(t+7,t+9),16),128==(192&i)&&128==(192&o))?(l+=(s=a<<12&61440|i<<6&4032|63&o)<2048||s>=55296&&s<=57343?"���":String.fromCharCode(s),t+=6):240==(248&a)&&t+9<r&&(i=parseInt(e.slice(t+4,t+6),16),o=parseInt(e.slice(t+7,t+9),16),c=parseInt(e.slice(t+10,t+12),16),128==(192&i)&&128==(192&o)&&128==(192&c))?((s=a<<18&1835008|i<<12&258048|o<<6&4032|63&c)<65536||s>1114111?l+="����":(s-=65536,l+=String.fromCharCode(55296+(s>>10),56320+(1023&s))),t+=9):l+="�";return l}))}a.defaultChars=";/?:@&=+$,#",a.componentChars="",e.exports=a},function(e,t,n){"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}},function(e,t,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var a=/^([a-z0-9.+-]+:)/i,i=/:[0-9]*$/,o=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),s=["'"].concat(c),l=["%","/","?",";","#"].concat(s),u=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};r.prototype.parse=function(e,t){var n,r,i,c,s,f=e;if(f=f.trim(),!t&&1===e.split("#").length){var b=o.exec(f);if(b)return this.pathname=b[1],b[2]&&(this.search=b[2]),this}var g=a.exec(f);if(g&&(i=(g=g[0]).toLowerCase(),this.protocol=g,f=f.substr(g.length)),(t||g||f.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(s="//"===f.substr(0,2))||g&&h[g]||(f=f.substr(2),this.slashes=!0)),!h[g]&&(s||g&&!m[g])){var v,j,y=-1;for(n=0;n<u.length;n++)-1!==(c=f.indexOf(u[n]))&&(-1===y||c<y)&&(y=c);for(-1!==(j=-1===y?f.lastIndexOf("@"):f.lastIndexOf("@",y))&&(v=f.slice(0,j),f=f.slice(j+1),this.auth=v),y=-1,n=0;n<l.length;n++)-1!==(c=f.indexOf(l[n]))&&(-1===y||c<y)&&(y=c);-1===y&&(y=f.length),":"===f[y-1]&&y--;var _=f.slice(0,y);f=f.slice(y),this.parseHost(_),this.hostname=this.hostname||"";var k="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!k){var O=this.hostname.split(/\./);for(n=0,r=O.length;n<r;n++){var w=O[n];if(w&&!w.match(p)){for(var E="",C=0,x=w.length;C<x;C++)w.charCodeAt(C)>127?E+="x":E+=w[C];if(!E.match(p)){var S=O.slice(0,n),A=O.slice(n+1),F=w.match(d);F&&(S.push(F[1]),A.unshift(F[2])),A.length&&(f=A.join(".")+f),this.hostname=S.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var P=f.indexOf("#");-1!==P&&(this.hash=f.substr(P),f=f.slice(0,P));var T=f.indexOf("?");return-1!==T&&(this.search=f.substr(T),f=f.slice(0,T)),f&&(this.pathname=f),m[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},r.prototype.parseHost=function(e){var t=i.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,t){if(e&&e instanceof r)return e;var n=new r;return n.parse(e,t),n}},function(e,t,n){"use strict";t.Any=n(83),t.Cc=n(84),t.Cf=n(169),t.P=n(68),t.Z=n(85)},function(e,t){e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},function(e,t,n){"use strict";t.parseLinkLabel=n(171),t.parseLinkDestination=n(172),t.parseLinkTitle=n(173)},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,a,i,o,c=-1,s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(93===(i=e.src.charCodeAt(e.pos))&&0===--r){a=!0;break}if(o=e.pos,e.md.inline.skipToken(e),91===i)if(o===e.pos-1)r++;else if(n)return e.pos=l,-1}return a&&(c=e.pos),e.pos=l,c}},function(e,t,n){"use strict";var r=n(19).isSpace,a=n(19).unescapeAll;e.exports=function(e,t,n){var i,o,c=t,s={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n;){if(10===(i=e.charCodeAt(t))||r(i))return s;if(62===i)return s.pos=t+1,s.str=a(e.slice(c+1,t)),s.ok=!0,s;92===i&&t+1<n?t+=2:t++}return s}for(o=0;t<n&&32!==(i=e.charCodeAt(t))&&!(i<32||127===i);)if(92===i&&t+1<n)t+=2;else{if(40===i&&o++,41===i){if(0===o)break;o--}t++}return c===t?s:0!==o?s:(s.str=a(e.slice(c,t)),s.lines=0,s.pos=t,s.ok=!0,s)}},function(e,t,n){"use strict";var r=n(19).unescapeAll;e.exports=function(e,t,n){var a,i,o=0,c=t,s={ok:!1,pos:0,lines:0,str:""};if(t>=n)return s;if(34!==(i=e.charCodeAt(t))&&39!==i&&40!==i)return s;for(t++,40===i&&(i=41);t<n;){if((a=e.charCodeAt(t))===i)return s.pos=t+1,s.lines=o,s.str=r(e.slice(c+1,t)),s.ok=!0,s;10===a?o++:92===a&&t+1<n&&(t++,10===e.charCodeAt(t)&&o++),t++}return s}},function(e,t,n){"use strict";var r=n(19).assign,a=n(19).unescapeAll,i=n(19).escapeHtml,o={};function c(){this.rules=r({},o)}o.code_inline=function(e,t,n,r,a){var o=e[t];return"<code"+a.renderAttrs(o)+">"+i(e[t].content)+"</code>"},o.code_block=function(e,t,n,r,a){var o=e[t];return"<pre"+a.renderAttrs(o)+"><code>"+i(e[t].content)+"</code></pre>\n"},o.fence=function(e,t,n,r,o){var c,s,l,u,p=e[t],d=p.info?a(p.info).trim():"",h="";return d&&(h=d.split(/\s+/g)[0]),0===(c=n.highlight&&n.highlight(p.content,h)||i(p.content)).indexOf("<pre")?c+"\n":d?(s=p.attrIndex("class"),l=p.attrs?p.attrs.slice():[],s<0?l.push(["class",n.langPrefix+h]):l[s][1]+=" "+n.langPrefix+h,u={attrs:l},"<pre><code"+o.renderAttrs(u)+">"+c+"</code></pre>\n"):"<pre><code"+o.renderAttrs(p)+">"+c+"</code></pre>\n"},o.image=function(e,t,n,r,a){var i=e[t];return i.attrs[i.attrIndex("alt")][1]=a.renderInlineAsText(i.children,n,r),a.renderToken(e,t,n)},o.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},o.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},o.text=function(e,t){return i(e[t].content)},o.html_block=function(e,t){return e[t].content},o.html_inline=function(e,t){return e[t].content},c.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+i(e.attrs[t][0])+'="'+i(e.attrs[t][1])+'"';return r},c.prototype.renderToken=function(e,t,n){var r,a="",i=!1,o=e[t];return o.hidden?"":(o.block&&-1!==o.nesting&&t&&e[t-1].hidden&&(a+="\n"),a+=(-1===o.nesting?"</":"<")+o.tag,a+=this.renderAttrs(o),0===o.nesting&&n.xhtmlOut&&(a+=" /"),o.block&&(i=!0,1===o.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden?i=!1:-1===r.nesting&&r.tag===o.tag&&(i=!1))),a+=i?">\n":">")},c.prototype.renderInline=function(e,t,n){for(var r,a="",i=this.rules,o=0,c=e.length;o<c;o++)void 0!==i[r=e[o].type]?a+=i[r](e,o,t,n,this):a+=this.renderToken(e,o,t);return a},c.prototype.renderInlineAsText=function(e,t,n){for(var r="",a=0,i=e.length;a<i;a++)"text"===e[a].type?r+=e[a].content:"image"===e[a].type&&(r+=this.renderInlineAsText(e[a].children,t,n));return r},c.prototype.render=function(e,t,n){var r,a,i,o="",c=this.rules;for(r=0,a=e.length;r<a;r++)"inline"===(i=e[r].type)?o+=this.renderInline(e[r].children,t,n):void 0!==c[i]?o+=c[e[r].type](e,r,t,n,this):o+=this.renderToken(e,r,t,n);return o},e.exports=c},function(e,t,n){"use strict";var r=n(69),a=[["normalize",n(176)],["block",n(177)],["inline",n(178)],["linkify",n(179)],["replacements",n(180)],["smartquotes",n(181)]];function i(){this.ruler=new r;for(var e=0;e<a.length;e++)this.ruler.push(a[e][0],a[e][1])}i.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},i.prototype.State=n(182),e.exports=i},function(e,t,n){"use strict";var r=/\r[\n\u0085]?|[\u2424\u2028\u0085]/g,a=/\u0000/g;e.exports=function(e){var t;t=(t=e.src.replace(r,"\n")).replace(a,"�"),e.src=t}},function(e,t,n){"use strict";e.exports=function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}},function(e,t,n){"use strict";e.exports=function(e){var t,n,r,a=e.tokens;for(n=0,r=a.length;n<r;n++)"inline"===(t=a[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}},function(e,t,n){"use strict";var r=n(19).arrayReplaceAt;function a(e){return/^<\/a\s*>/i.test(e)}e.exports=function(e){var t,n,i,o,c,s,l,u,p,d,h,m,f,b,g,v,j,y,_=e.tokens;if(e.md.options.linkify)for(n=0,i=_.length;n<i;n++)if("inline"===_[n].type&&e.md.linkify.pretest(_[n].content))for(f=0,t=(o=_[n].children).length-1;t>=0;t--)if("link_close"!==(s=o[t]).type){if("html_inline"===s.type&&(y=s.content,/^<a[>\s]/i.test(y)&&f>0&&f--,a(s.content)&&f++),!(f>0)&&"text"===s.type&&e.md.linkify.test(s.content)){for(p=s.content,j=e.md.linkify.match(p),l=[],m=s.level,h=0,u=0;u<j.length;u++)b=j[u].url,g=e.md.normalizeLink(b),e.md.validateLink(g)&&(v=j[u].text,v=j[u].schema?"mailto:"!==j[u].schema||/^mailto:/i.test(v)?e.md.normalizeLinkText(v):e.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+v).replace(/^http:\/\//,""),(d=j[u].index)>h&&((c=new e.Token("text","",0)).content=p.slice(h,d),c.level=m,l.push(c)),(c=new e.Token("link_open","a",1)).attrs=[["href",g]],c.level=m++,c.markup="linkify",c.info="auto",l.push(c),(c=new e.Token("text","",0)).content=v,c.level=m,l.push(c),(c=new e.Token("link_close","a",-1)).level=--m,c.markup="linkify",c.info="auto",l.push(c),h=j[u].lastIndex);h<p.length&&((c=new e.Token("text","",0)).content=p.slice(h),c.level=m,l.push(c)),_[n].children=o=r(o,t,l)}}else for(t--;o[t].level!==s.level&&"link_open"!==o[t].type;)t--}},function(e,t,n){"use strict";var r=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,a=/\((c|tm|r|p)\)/i,i=/\((c|tm|r|p)\)/gi,o={c:"©",r:"®",p:"§",tm:"™"};function c(e,t){return o[t.toLowerCase()]}function s(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||(n.content=n.content.replace(i,c)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function l(e){var t,n,a=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||a||r.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),"link_open"===n.type&&"auto"===n.info&&a--,"link_close"===n.type&&"auto"===n.info&&a++}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(a.test(e.tokens[t].content)&&s(e.tokens[t].children),r.test(e.tokens[t].content)&&l(e.tokens[t].children))}},function(e,t,n){"use strict";var r=n(19).isWhiteSpace,a=n(19).isPunctChar,i=n(19).isMdAsciiPunct,o=/['"]/,c=/['"]/g;function s(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function l(e,t){var n,o,l,u,p,d,h,m,f,b,g,v,j,y,_,k,O,w,E,C,x;for(E=[],n=0;n<e.length;n++){for(o=e[n],h=e[n].level,O=E.length-1;O>=0&&!(E[O].level<=h);O--);if(E.length=O+1,"text"===o.type){p=0,d=(l=o.content).length;e:for(;p<d&&(c.lastIndex=p,u=c.exec(l));){if(_=k=!0,p=u.index+1,w="'"===u[0],f=32,u.index-1>=0)f=l.charCodeAt(u.index-1);else for(O=n-1;O>=0&&("softbreak"!==e[O].type&&"hardbreak"!==e[O].type);O--)if("text"===e[O].type){f=e[O].content.charCodeAt(e[O].content.length-1);break}if(b=32,p<d)b=l.charCodeAt(p);else for(O=n+1;O<e.length&&("softbreak"!==e[O].type&&"hardbreak"!==e[O].type);O++)if("text"===e[O].type){b=e[O].content.charCodeAt(0);break}if(g=i(f)||a(String.fromCharCode(f)),v=i(b)||a(String.fromCharCode(b)),j=r(f),(y=r(b))?_=!1:v&&(j||g||(_=!1)),j?k=!1:g&&(y||v||(k=!1)),34===b&&'"'===u[0]&&f>=48&&f<=57&&(k=_=!1),_&&k&&(_=!1,k=v),_||k){if(k)for(O=E.length-1;O>=0&&(m=E[O],!(E[O].level<h));O--)if(m.single===w&&E[O].level===h){m=E[O],w?(C=t.md.options.quotes[2],x=t.md.options.quotes[3]):(C=t.md.options.quotes[0],x=t.md.options.quotes[1]),o.content=s(o.content,u.index,x),e[m.token].content=s(e[m.token].content,m.pos,C),p+=x.length-1,m.token===n&&(p+=C.length-1),d=(l=o.content).length,E.length=O;continue e}_?E.push({token:n,pos:u.index,single:w,level:h}):k&&w&&(o.content=s(o.content,u.index,"’"))}else w&&(o.content=s(o.content,u.index,"’"))}}}}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&o.test(e.tokens[t].content)&&l(e.tokens[t].children,e)}},function(e,t,n){"use strict";var r=n(70);function a(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}a.prototype.Token=r,e.exports=a},function(e,t,n){"use strict";var r=n(69),a=[["table",n(184),["paragraph","reference"]],["code",n(185)],["fence",n(186),["paragraph","reference","blockquote","list"]],["blockquote",n(187),["paragraph","reference","blockquote","list"]],["hr",n(188),["paragraph","reference","blockquote","list"]],["list",n(189),["paragraph","reference","blockquote"]],["reference",n(190)],["heading",n(191),["paragraph","reference","blockquote"]],["lheading",n(192)],["html_block",n(193),["paragraph","reference","blockquote"]],["paragraph",n(195)]];function i(){this.ruler=new r;for(var e=0;e<a.length;e++)this.ruler.push(a[e][0],a[e][1],{alt:(a[e][2]||[]).slice()})}i.prototype.tokenize=function(e,t,n){for(var r,a=this.ruler.getRules(""),i=a.length,o=t,c=!1,s=e.md.options.maxNesting;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n))&&!(e.sCount[o]<e.blkIndent);){if(e.level>=s){e.line=n;break}for(r=0;r<i&&!a[r](e,o,n,!1);r++);e.tight=!c,e.isEmpty(e.line-1)&&(c=!0),(o=e.line)<n&&e.isEmpty(o)&&(c=!0,o++,e.line=o)}},i.prototype.parse=function(e,t,n,r){var a;e&&(a=new this.State(e,t,n,r),this.tokenize(a,a.line,a.lineMax))},i.prototype.State=n(196),e.exports=i},function(e,t,n){"use strict";var r=n(19).isSpace;function a(e,t){var n=e.bMarks[t]+e.blkIndent,r=e.eMarks[t];return e.src.substr(n,r-n)}function i(e){var t,n=[],r=0,a=e.length,i=0,o=0,c=!1,s=0;for(t=e.charCodeAt(r);r<a;)96===t?c?(c=!1,s=r):i%2==0&&(c=!0,s=r):124!==t||i%2!=0||c||(n.push(e.substring(o,r)),o=r+1),92===t?i++:i=0,++r===a&&c&&(c=!1,r=s+1),t=e.charCodeAt(r);return n.push(e.substring(o)),n}e.exports=function(e,t,n,o){var c,s,l,u,p,d,h,m,f,b,g,v;if(t+2>n)return!1;if(p=t+1,e.sCount[p]<e.blkIndent)return!1;if(e.sCount[p]-e.blkIndent>=4)return!1;if((l=e.bMarks[p]+e.tShift[p])>=e.eMarks[p])return!1;if(124!==(c=e.src.charCodeAt(l++))&&45!==c&&58!==c)return!1;for(;l<e.eMarks[p];){if(124!==(c=e.src.charCodeAt(l))&&45!==c&&58!==c&&!r(c))return!1;l++}for(d=(s=a(e,t+1)).split("|"),f=[],u=0;u<d.length;u++){if(!(b=d[u].trim())){if(0===u||u===d.length-1)continue;return!1}if(!/^:?-+:?$/.test(b))return!1;58===b.charCodeAt(b.length-1)?f.push(58===b.charCodeAt(0)?"center":"right"):58===b.charCodeAt(0)?f.push("left"):f.push("")}if(-1===(s=a(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((h=(d=i(s.replace(/^\||\|$/g,""))).length)>f.length)return!1;if(o)return!0;for((m=e.push("table_open","table",1)).map=g=[t,0],(m=e.push("thead_open","thead",1)).map=[t,t+1],(m=e.push("tr_open","tr",1)).map=[t,t+1],u=0;u<d.length;u++)(m=e.push("th_open","th",1)).map=[t,t+1],f[u]&&(m.attrs=[["style","text-align:"+f[u]]]),(m=e.push("inline","",0)).content=d[u].trim(),m.map=[t,t+1],m.children=[],m=e.push("th_close","th",-1);for(m=e.push("tr_close","tr",-1),m=e.push("thead_close","thead",-1),(m=e.push("tbody_open","tbody",1)).map=v=[t+2,0],p=t+2;p<n&&!(e.sCount[p]<e.blkIndent)&&-1!==(s=a(e,p).trim()).indexOf("|")&&!(e.sCount[p]-e.blkIndent>=4);p++){for(d=i(s.replace(/^\||\|$/g,"")),m=e.push("tr_open","tr",1),u=0;u<h;u++)m=e.push("td_open","td",1),f[u]&&(m.attrs=[["style","text-align:"+f[u]]]),(m=e.push("inline","",0)).content=d[u]?d[u].trim():"",m.children=[],m=e.push("td_close","td",-1);m=e.push("tr_close","tr",-1)}return m=e.push("tbody_close","tbody",-1),m=e.push("table_close","table",-1),g[1]=v[1]=p,e.line=p,!0}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,a,i;if(e.sCount[t]-e.blkIndent<4)return!1;for(a=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;a=++r}return e.line=a,(i=e.push("code_block","code",0)).content=e.getLines(t,a,4+e.blkIndent,!0),i.map=[t,e.line],!0}},function(e,t,n){"use strict";e.exports=function(e,t,n,r){var a,i,o,c,s,l,u,p=!1,d=e.bMarks[t]+e.tShift[t],h=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(d+3>h)return!1;if(126!==(a=e.src.charCodeAt(d))&&96!==a)return!1;if(s=d,(i=(d=e.skipChars(d,a))-s)<3)return!1;if(u=e.src.slice(s,d),(o=e.src.slice(d,h)).indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;for(c=t;!(++c>=n)&&!((d=s=e.bMarks[c]+e.tShift[c])<(h=e.eMarks[c])&&e.sCount[c]<e.blkIndent);)if(e.src.charCodeAt(d)===a&&!(e.sCount[c]-e.blkIndent>=4||(d=e.skipChars(d,a))-s<i||(d=e.skipSpaces(d))<h)){p=!0;break}return i=e.sCount[t],e.line=c+(p?1:0),(l=e.push("fence","code",0)).info=o,l.content=e.getLines(t+1,c,i,!0),l.markup=u,l.map=[t,e.line],!0}},function(e,t,n){"use strict";var r=n(19).isSpace;e.exports=function(e,t,n,a){var i,o,c,s,l,u,p,d,h,m,f,b,g,v,j,y,_,k,O,w,E=e.lineMax,C=e.bMarks[t]+e.tShift[t],x=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(C++))return!1;if(a)return!0;for(s=h=e.sCount[t]+C-(e.bMarks[t]+e.tShift[t]),32===e.src.charCodeAt(C)?(C++,s++,h++,i=!1,y=!0):9===e.src.charCodeAt(C)?(y=!0,(e.bsCount[t]+h)%4==3?(C++,s++,h++,i=!1):i=!0):y=!1,m=[e.bMarks[t]],e.bMarks[t]=C;C<x&&(o=e.src.charCodeAt(C),r(o));)9===o?h+=4-(h+e.bsCount[t]+(i?1:0))%4:h++,C++;for(f=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(y?1:0),u=C>=x,v=[e.sCount[t]],e.sCount[t]=h-s,j=[e.tShift[t]],e.tShift[t]=C-e.bMarks[t],k=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",w=!1,d=t+1;d<n&&(e.sCount[d]<e.blkIndent&&(w=!0),!((C=e.bMarks[d]+e.tShift[d])>=(x=e.eMarks[d])));d++)if(62!==e.src.charCodeAt(C++)||w){if(u)break;for(_=!1,c=0,l=k.length;c<l;c++)if(k[c](e,d,n,!0)){_=!0;break}if(_){e.lineMax=d,0!==e.blkIndent&&(m.push(e.bMarks[d]),f.push(e.bsCount[d]),j.push(e.tShift[d]),v.push(e.sCount[d]),e.sCount[d]-=e.blkIndent);break}m.push(e.bMarks[d]),f.push(e.bsCount[d]),j.push(e.tShift[d]),v.push(e.sCount[d]),e.sCount[d]=-1}else{for(s=h=e.sCount[d]+C-(e.bMarks[d]+e.tShift[d]),32===e.src.charCodeAt(C)?(C++,s++,h++,i=!1,y=!0):9===e.src.charCodeAt(C)?(y=!0,(e.bsCount[d]+h)%4==3?(C++,s++,h++,i=!1):i=!0):y=!1,m.push(e.bMarks[d]),e.bMarks[d]=C;C<x&&(o=e.src.charCodeAt(C),r(o));)9===o?h+=4-(h+e.bsCount[d]+(i?1:0))%4:h++,C++;u=C>=x,f.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(y?1:0),v.push(e.sCount[d]),e.sCount[d]=h-s,j.push(e.tShift[d]),e.tShift[d]=C-e.bMarks[d]}for(b=e.blkIndent,e.blkIndent=0,(O=e.push("blockquote_open","blockquote",1)).markup=">",O.map=p=[t,0],e.md.block.tokenize(e,t,d),(O=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=E,e.parentType=g,p[1]=e.line,c=0;c<j.length;c++)e.bMarks[c+t]=m[c],e.tShift[c+t]=j[c],e.sCount[c+t]=v[c],e.bsCount[c+t]=f[c];return e.blkIndent=b,!0}},function(e,t,n){"use strict";var r=n(19).isSpace;e.exports=function(e,t,n,a){var i,o,c,s,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(i=e.src.charCodeAt(l++))&&45!==i&&95!==i)return!1;for(o=1;l<u;){if((c=e.src.charCodeAt(l++))!==i&&!r(c))return!1;c===i&&o++}return!(o<3)&&(!!a||(e.line=t+1,(s=e.push("hr","hr",0)).map=[t,e.line],s.markup=Array(o+1).join(String.fromCharCode(i)),!0))}},function(e,t,n){"use strict";var r=n(19).isSpace;function a(e,t){var n,a,i,o;return a=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],42!==(n=e.src.charCodeAt(a++))&&45!==n&&43!==n?-1:a<i&&(o=e.src.charCodeAt(a),!r(o))?-1:a}function i(e,t){var n,a=e.bMarks[t]+e.tShift[t],i=a,o=e.eMarks[t];if(i+1>=o)return-1;if((n=e.src.charCodeAt(i++))<48||n>57)return-1;for(;;){if(i>=o)return-1;if(!((n=e.src.charCodeAt(i++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(i-a>=10)return-1}return i<o&&(n=e.src.charCodeAt(i),!r(n))?-1:i}e.exports=function(e,t,n,r){var o,c,s,l,u,p,d,h,m,f,b,g,v,j,y,_,k,O,w,E,C,x,S,A,F,P,T,N,M=!1,R=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(r&&"paragraph"===e.parentType&&e.tShift[t]>=e.blkIndent&&(M=!0),(S=i(e,t))>=0){if(d=!0,F=e.bMarks[t]+e.tShift[t],v=Number(e.src.substr(F,S-F-1)),M&&1!==v)return!1}else{if(!((S=a(e,t))>=0))return!1;d=!1}if(M&&e.skipSpaces(S)>=e.eMarks[t])return!1;if(g=e.src.charCodeAt(S-1),r)return!0;for(b=e.tokens.length,d?(N=e.push("ordered_list_open","ol",1),1!==v&&(N.attrs=[["start",v]])):N=e.push("bullet_list_open","ul",1),N.map=f=[t,0],N.markup=String.fromCharCode(g),y=t,A=!1,T=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";y<n;){for(x=S,j=e.eMarks[y],p=_=e.sCount[y]+S-(e.bMarks[t]+e.tShift[t]);x<j;){if(9===(o=e.src.charCodeAt(x)))_+=4-(_+e.bsCount[y])%4;else{if(32!==o)break;_++}x++}if((u=(c=x)>=j?1:_-p)>4&&(u=1),l=p+u,(N=e.push("list_item_open","li",1)).markup=String.fromCharCode(g),N.map=h=[t,0],k=e.blkIndent,C=e.tight,E=e.tShift[t],O=e.sCount[t],e.blkIndent=l,e.tight=!0,e.tShift[t]=c-e.bMarks[t],e.sCount[t]=_,c>=j&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!A||(R=!1),A=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=k,e.tShift[t]=E,e.sCount[t]=O,e.tight=C,(N=e.push("list_item_close","li",-1)).markup=String.fromCharCode(g),y=t=e.line,h[1]=y,c=e.bMarks[t],y>=n)break;if(e.sCount[y]<e.blkIndent)break;for(P=!1,s=0,m=T.length;s<m;s++)if(T[s](e,y,n,!0)){P=!0;break}if(P)break;if(d){if((S=i(e,y))<0)break}else if((S=a(e,y))<0)break;if(g!==e.src.charCodeAt(S-1))break}return(N=d?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(g),f[1]=y,e.line=y,e.parentType=w,R&&function(e,t){var n,r,a=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===a&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,b),!0}},function(e,t,n){"use strict";var r=n(19).normalizeReference,a=n(19).isSpace;e.exports=function(e,t,n,i){var o,c,s,l,u,p,d,h,m,f,b,g,v,j,y,_,k=0,O=e.bMarks[t]+e.tShift[t],w=e.eMarks[t],E=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(O))return!1;for(;++O<w;)if(93===e.src.charCodeAt(O)&&92!==e.src.charCodeAt(O-1)){if(O+1===w)return!1;if(58!==e.src.charCodeAt(O+1))return!1;break}for(l=e.lineMax,y=e.md.block.ruler.getRules("reference"),f=e.parentType,e.parentType="reference";E<l&&!e.isEmpty(E);E++)if(!(e.sCount[E]-e.blkIndent>3||e.sCount[E]<0)){for(j=!1,p=0,d=y.length;p<d;p++)if(y[p](e,E,l,!0)){j=!0;break}if(j)break}for(w=(v=e.getLines(t,E,e.blkIndent,!1).trim()).length,O=1;O<w;O++){if(91===(o=v.charCodeAt(O)))return!1;if(93===o){m=O;break}10===o?k++:92===o&&++O<w&&10===v.charCodeAt(O)&&k++}if(m<0||58!==v.charCodeAt(m+1))return!1;for(O=m+2;O<w;O++)if(10===(o=v.charCodeAt(O)))k++;else if(!a(o))break;if(!(b=e.md.helpers.parseLinkDestination(v,O,w)).ok)return!1;if(u=e.md.normalizeLink(b.str),!e.md.validateLink(u))return!1;for(c=O=b.pos,s=k+=b.lines,g=O;O<w;O++)if(10===(o=v.charCodeAt(O)))k++;else if(!a(o))break;for(b=e.md.helpers.parseLinkTitle(v,O,w),O<w&&g!==O&&b.ok?(_=b.str,O=b.pos,k+=b.lines):(_="",O=c,k=s);O<w&&(o=v.charCodeAt(O),a(o));)O++;if(O<w&&10!==v.charCodeAt(O)&&_)for(_="",O=c,k=s;O<w&&(o=v.charCodeAt(O),a(o));)O++;return!(O<w&&10!==v.charCodeAt(O))&&(!!(h=r(v.slice(1,m)))&&(!!i||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[h]&&(e.env.references[h]={title:_,href:u}),e.parentType=f,e.line=t+k+1,!0)))}},function(e,t,n){"use strict";var r=n(19).isSpace;e.exports=function(e,t,n,a){var i,o,c,s,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(i=e.src.charCodeAt(l))||l>=u)return!1;for(o=1,i=e.src.charCodeAt(++l);35===i&&l<u&&o<=6;)o++,i=e.src.charCodeAt(++l);return!(o>6||l<u&&!r(i))&&(!!a||(u=e.skipSpacesBack(u,l),(c=e.skipCharsBack(u,35,l))>l&&r(e.src.charCodeAt(c-1))&&(u=c),e.line=t+1,(s=e.push("heading_open","h"+String(o),1)).markup="########".slice(0,o),s.map=[t,e.line],(s=e.push("inline","",0)).content=e.src.slice(l,u).trim(),s.map=[t,e.line],s.children=[],(s=e.push("heading_close","h"+String(o),-1)).markup="########".slice(0,o),!0))}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,a,i,o,c,s,l,u,p,d,h=t+1,m=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(d=e.parentType,e.parentType="paragraph";h<n&&!e.isEmpty(h);h++)if(!(e.sCount[h]-e.blkIndent>3)){if(e.sCount[h]>=e.blkIndent&&(s=e.bMarks[h]+e.tShift[h])<(l=e.eMarks[h])&&(45===(p=e.src.charCodeAt(s))||61===p)&&(s=e.skipChars(s,p),(s=e.skipSpaces(s))>=l)){u=61===p?1:2;break}if(!(e.sCount[h]<0)){for(a=!1,i=0,o=m.length;i<o;i++)if(m[i](e,h,n,!0)){a=!0;break}if(a)break}}return!!u&&(r=e.getLines(t,h,e.blkIndent,!1).trim(),e.line=h+1,(c=e.push("heading_open","h"+String(u),1)).markup=String.fromCharCode(p),c.map=[t,e.line],(c=e.push("inline","",0)).content=r,c.map=[t,e.line-1],c.children=[],(c=e.push("heading_close","h"+String(u),-1)).markup=String.fromCharCode(p),e.parentType=d,!0)}},function(e,t,n){"use strict";var r=n(194),a=n(86).HTML_OPEN_CLOSE_TAG_RE,i=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+r.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(a.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var a,o,c,s,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(l))return!1;for(s=e.src.slice(l,u),a=0;a<i.length&&!i[a][0].test(s);a++);if(a===i.length)return!1;if(r)return i[a][2];if(o=t+1,!i[a][1].test(s))for(;o<n&&!(e.sCount[o]<e.blkIndent);o++)if(l=e.bMarks[o]+e.tShift[o],u=e.eMarks[o],s=e.src.slice(l,u),i[a][1].test(s)){0!==s.length&&o++;break}return e.line=o,(c=e.push("html_block","",0)).map=[t,o],c.content=e.getLines(t,o,e.blkIndent,!0),!0}},function(e,t,n){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,a,i,o,c,s=t+1,l=e.md.block.ruler.getRules("paragraph"),u=e.lineMax;for(c=e.parentType,e.parentType="paragraph";s<u&&!e.isEmpty(s);s++)if(!(e.sCount[s]-e.blkIndent>3||e.sCount[s]<0)){for(r=!1,a=0,i=l.length;a<i;a++)if(l[a](e,s,u,!0)){r=!0;break}if(r)break}return n=e.getLines(t,s,e.blkIndent,!1).trim(),e.line=s,(o=e.push("paragraph_open","p",1)).map=[t,e.line],(o=e.push("inline","",0)).content=n,o.map=[t,e.line],o.children=[],o=e.push("paragraph_close","p",-1),e.parentType=c,!0}},function(e,t,n){"use strict";var r=n(70),a=n(19).isSpace;function i(e,t,n,r){var i,o,c,s,l,u,p,d;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.parentType="root",this.level=0,this.result="",d=!1,c=s=u=p=0,l=(o=this.src).length;s<l;s++){if(i=o.charCodeAt(s),!d){if(a(i)){u++,9===i?p+=4-p%4:p++;continue}d=!0}10!==i&&s!==l-1||(10!==i&&s++,this.bMarks.push(c),this.eMarks.push(s),this.tShift.push(u),this.sCount.push(p),this.bsCount.push(0),d=!1,u=0,p=0,c=s+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}i.prototype.push=function(e,t,n){var a=new r(e,t,n);return a.block=!0,n<0&&this.level--,a.level=this.level,n>0&&this.level++,this.tokens.push(a),a},i.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},i.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},i.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),a(t));e++);return e},i.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!a(this.src.charCodeAt(--e)))return e+1;return e},i.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},i.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},i.prototype.getLines=function(e,t,n,r){var i,o,c,s,l,u,p,d=e;if(e>=t)return"";for(u=new Array(t-e),i=0;d<t;d++,i++){for(o=0,p=s=this.bMarks[d],l=d+1<t||r?this.eMarks[d]+1:this.eMarks[d];s<l&&o<n;){if(c=this.src.charCodeAt(s),a(c))9===c?o+=4-(o+this.bsCount[d])%4:o++;else{if(!(s-p<this.tShift[d]))break;o++}s++}u[i]=o>n?new Array(o-n+1).join(" ")+this.src.slice(s,l):this.src.slice(s,l)}return u.join("")},i.prototype.Token=r,e.exports=i},function(e,t,n){"use strict";var r=n(69),a=[["text",n(198)],["newline",n(199)],["escape",n(200)],["backticks",n(201)],["strikethrough",n(87).tokenize],["emphasis",n(88).tokenize],["link",n(202)],["image",n(203)],["autolink",n(204)],["html_inline",n(205)],["entity",n(206)]],i=[["balance_pairs",n(207)],["strikethrough",n(87).postProcess],["emphasis",n(88).postProcess],["text_collapse",n(208)]];function o(){var e;for(this.ruler=new r,e=0;e<a.length;e++)this.ruler.push(a[e][0],a[e][1]);for(this.ruler2=new r,e=0;e<i.length;e++)this.ruler2.push(i[e][0],i[e][1])}o.prototype.skipToken=function(e){var t,n,r=e.pos,a=this.ruler.getRules(""),i=a.length,o=e.md.options.maxNesting,c=e.cache;if(void 0===c[r]){if(e.level<o)for(n=0;n<i&&(e.level++,t=a[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,c[r]=e.pos}else e.pos=c[r]},o.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),a=r.length,i=e.posMax,o=e.md.options.maxNesting;e.pos<i;){if(e.level<o)for(n=0;n<a&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=i)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},o.prototype.parse=function(e,t,n,r){var a,i,o,c=new this.State(e,t,n,r);for(this.tokenize(c),o=(i=this.ruler2.getRules("")).length,a=0;a<o;a++)i[a](c)},o.prototype.State=n(209),e.exports=o},function(e,t,n){"use strict";function r(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}e.exports=function(e,t){for(var n=e.pos;n<e.posMax&&!r(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}},function(e,t,n){"use strict";var r=n(19).isSpace;e.exports=function(e,t){var n,a,i=e.pos;if(10!==e.src.charCodeAt(i))return!1;for(n=e.pending.length-1,a=e.posMax,t||(n>=0&&32===e.pending.charCodeAt(n)?n>=1&&32===e.pending.charCodeAt(n-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),i++;i<a&&r(e.src.charCodeAt(i));)i++;return e.pos=i,!0}},function(e,t,n){"use strict";for(var r=n(19).isSpace,a=[],i=0;i<256;i++)a.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){a[e.charCodeAt(0)]=1})),e.exports=function(e,t){var n,i=e.pos,o=e.posMax;if(92!==e.src.charCodeAt(i))return!1;if(++i<o){if((n=e.src.charCodeAt(i))<256&&0!==a[n])return t||(e.pending+=e.src[i]),e.pos+=2,!0;if(10===n){for(t||e.push("hardbreak","br",0),i++;i<o&&(n=e.src.charCodeAt(i),r(n));)i++;return e.pos=i,!0}}return t||(e.pending+="\\"),e.pos++,!0}},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,a,i,o,c,s=e.pos;if(96!==e.src.charCodeAt(s))return!1;for(n=s,s++,r=e.posMax;s<r&&96===e.src.charCodeAt(s);)s++;for(a=e.src.slice(n,s),i=o=s;-1!==(i=e.src.indexOf("`",o));){for(o=i+1;o<r&&96===e.src.charCodeAt(o);)o++;if(o-i===a.length)return t||((c=e.push("code_inline","code",0)).markup=a,c.content=e.src.slice(s,i).replace(/[ \n]+/g," ").trim()),e.pos=o,!0}return t||(e.pending+=a),e.pos+=a.length,!0}},function(e,t,n){"use strict";var r=n(19).normalizeReference,a=n(19).isSpace;e.exports=function(e,t){var n,i,o,c,s,l,u,p,d,h="",m=e.pos,f=e.posMax,b=e.pos,g=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(s=e.pos+1,(c=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((l=c+1)<f&&40===e.src.charCodeAt(l)){for(g=!1,l++;l<f&&(i=e.src.charCodeAt(l),a(i)||10===i);l++);if(l>=f)return!1;for(b=l,(u=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok&&(h=e.md.normalizeLink(u.str),e.md.validateLink(h)?l=u.pos:h=""),b=l;l<f&&(i=e.src.charCodeAt(l),a(i)||10===i);l++);if(u=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<f&&b!==l&&u.ok)for(d=u.str,l=u.pos;l<f&&(i=e.src.charCodeAt(l),a(i)||10===i);l++);else d="";(l>=f||41!==e.src.charCodeAt(l))&&(g=!0),l++}if(g){if(void 0===e.env.references)return!1;if(l<f&&91===e.src.charCodeAt(l)?(b=l+1,(l=e.md.helpers.parseLinkLabel(e,l))>=0?o=e.src.slice(b,l++):l=c+1):l=c+1,o||(o=e.src.slice(s,c)),!(p=e.env.references[r(o)]))return e.pos=m,!1;h=p.href,d=p.title}return t||(e.pos=s,e.posMax=c,e.push("link_open","a",1).attrs=n=[["href",h]],d&&n.push(["title",d]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=l,e.posMax=f,!0}},function(e,t,n){"use strict";var r=n(19).normalizeReference,a=n(19).isSpace;e.exports=function(e,t){var n,i,o,c,s,l,u,p,d,h,m,f,b,g="",v=e.pos,j=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(l=e.pos+2,(s=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((u=s+1)<j&&40===e.src.charCodeAt(u)){for(u++;u<j&&(i=e.src.charCodeAt(u),a(i)||10===i);u++);if(u>=j)return!1;for(b=u,(d=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok&&(g=e.md.normalizeLink(d.str),e.md.validateLink(g)?u=d.pos:g=""),b=u;u<j&&(i=e.src.charCodeAt(u),a(i)||10===i);u++);if(d=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<j&&b!==u&&d.ok)for(h=d.str,u=d.pos;u<j&&(i=e.src.charCodeAt(u),a(i)||10===i);u++);else h="";if(u>=j||41!==e.src.charCodeAt(u))return e.pos=v,!1;u++}else{if(void 0===e.env.references)return!1;if(u<j&&91===e.src.charCodeAt(u)?(b=u+1,(u=e.md.helpers.parseLinkLabel(e,u))>=0?c=e.src.slice(b,u++):u=s+1):u=s+1,c||(c=e.src.slice(l,s)),!(p=e.env.references[r(c)]))return e.pos=v,!1;g=p.href,h=p.title}return t||(o=e.src.slice(l,s),e.md.inline.parse(o,e.md,e.env,f=[]),(m=e.push("image","img",0)).attrs=n=[["src",g],["alt",""]],m.children=f,m.content=o,h&&n.push(["title",h])),e.pos=u,e.posMax=j,!0}},function(e,t,n){"use strict";var r=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,a=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;e.exports=function(e,t){var n,i,o,c,s,l,u=e.pos;return 60===e.src.charCodeAt(u)&&(!((n=e.src.slice(u)).indexOf(">")<0)&&(a.test(n)?(c=(i=n.match(a))[0].slice(1,-1),s=e.md.normalizeLink(c),!!e.md.validateLink(s)&&(t||((l=e.push("link_open","a",1)).attrs=[["href",s]],l.markup="autolink",l.info="auto",(l=e.push("text","",0)).content=e.md.normalizeLinkText(c),(l=e.push("link_close","a",-1)).markup="autolink",l.info="auto"),e.pos+=i[0].length,!0)):!!r.test(n)&&(c=(o=n.match(r))[0].slice(1,-1),s=e.md.normalizeLink("mailto:"+c),!!e.md.validateLink(s)&&(t||((l=e.push("link_open","a",1)).attrs=[["href",s]],l.markup="autolink",l.info="auto",(l=e.push("text","",0)).content=e.md.normalizeLinkText(c),(l=e.push("link_close","a",-1)).markup="autolink",l.info="auto"),e.pos+=o[0].length,!0))))}},function(e,t,n){"use strict";var r=n(86).HTML_TAG_RE;e.exports=function(e,t){var n,a,i,o=e.pos;return!!e.md.options.html&&(i=e.posMax,!(60!==e.src.charCodeAt(o)||o+2>=i)&&(!(33!==(n=e.src.charCodeAt(o+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n))&&(!!(a=e.src.slice(o).match(r))&&(t||(e.push("html_inline","",0).content=e.src.slice(o,o+a[0].length)),e.pos+=a[0].length,!0))))}},function(e,t,n){"use strict";var r=n(81),a=n(19).has,i=n(19).isValidEntityCode,o=n(19).fromCodePoint,c=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,s=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,l,u=e.pos,p=e.posMax;if(38!==e.src.charCodeAt(u))return!1;if(u+1<p)if(35===e.src.charCodeAt(u+1)){if(l=e.src.slice(u).match(c))return t||(n="x"===l[1][0].toLowerCase()?parseInt(l[1].slice(1),16):parseInt(l[1],10),e.pending+=i(n)?o(n):o(65533)),e.pos+=l[0].length,!0}else if((l=e.src.slice(u).match(s))&&a(r,l[1]))return t||(e.pending+=r[l[1]]),e.pos+=l[0].length,!0;return t||(e.pending+="&"),e.pos++,!0}},function(e,t,n){"use strict";e.exports=function(e){var t,n,r,a,i=e.delimiters,o=e.delimiters.length;for(t=0;t<o;t++)if((r=i[t]).close)for(n=t-r.jump-1;n>=0;){if((a=i[n]).open&&a.marker===r.marker&&a.end<0&&a.level===r.level)if(!((a.close||r.open)&&void 0!==a.length&&void 0!==r.length&&(a.length+r.length)%3==0)){r.jump=t-n,r.open=!1,a.end=t,a.jump=0;break}n-=a.jump+1}}},function(e,t,n){"use strict";e.exports=function(e){var t,n,r=0,a=e.tokens,i=e.tokens.length;for(t=n=0;t<i;t++)r+=a[t].nesting,a[t].level=r,"text"===a[t].type&&t+1<i&&"text"===a[t+1].type?a[t+1].content=a[t].content+a[t+1].content:(t!==n&&(a[n]=a[t]),n++);t!==n&&(a.length=n)}},function(e,t,n){"use strict";var r=n(70),a=n(19).isWhiteSpace,i=n(19).isPunctChar,o=n(19).isMdAsciiPunct;function c(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[]}c.prototype.pushPending=function(){var e=new r("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},c.prototype.push=function(e,t,n){this.pending&&this.pushPending();var a=new r(e,t,n);return n<0&&this.level--,a.level=this.level,n>0&&this.level++,this.pendingLevel=this.level,this.tokens.push(a),a},c.prototype.scanDelims=function(e,t){var n,r,c,s,l,u,p,d,h,m=e,f=!0,b=!0,g=this.posMax,v=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;m<g&&this.src.charCodeAt(m)===v;)m++;return c=m-e,r=m<g?this.src.charCodeAt(m):32,p=o(n)||i(String.fromCharCode(n)),h=o(r)||i(String.fromCharCode(r)),u=a(n),(d=a(r))?f=!1:h&&(u||p||(f=!1)),u?b=!1:p&&(d||h||(b=!1)),t?(s=f,l=b):(s=f&&(!b||p),l=b&&(!f||h)),{can_open:s,can_close:l,length:c}},c.prototype.Token=r,e.exports=c},function(e,t,n){"use strict";function r(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function a(e){return Object.prototype.toString.call(e)}function i(e){return"[object Function]"===a(e)}function o(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var c={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var s={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]?0:t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},l="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function u(e){var t=e.re=n(211)(e.__opts__),r=e.__tlds__.slice();function c(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(c(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(c(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(c(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(c(t.tpl_host_fuzzy_test),"i");var s=[];function l(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===a(n))return!function(e){return"[object RegExp]"===a(e)}(n.validate)?i(n.validate)?r.validate=n.validate:l(t,n):r.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(i(n.normalize)?r.normalize=n.normalize:n.normalize?l(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===a(e)}(n)?l(t,n):s.push(t)}})),s.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var u=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(o).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+u+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+u+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function p(e,t){var n=e.__index__,r=e.__last_index__,a=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=a,this.text=a,this.url=a}function d(e,t){var n=new p(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function h(e,t){if(!(this instanceof h))return new h(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||c.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},c,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},s,e),this.__compiled__={},this.__tlds__=l,this.__tlds_replaced__=!1,this.re={},u(this)}h.prototype.add=function(e,t){return this.__schemas__[e]=t,u(this),this},h.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},h.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,a,i,o,c,s;if(this.re.schema_test.test(e))for((c=this.re.schema_search).lastIndex=0;null!==(t=c.exec(e));)if(a=this.testSchemaAt(e,t[2],c.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+a;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(s=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||s<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(i=r.index+r[1].length,o=r.index+r[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&o>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=o)),this.__index__>=0},h.prototype.pretest=function(e){return this.re.pretest.test(e)},h.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},h.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(d(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(d(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},h.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),u(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,u(this),this)},h.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},h.prototype.onCompile=function(){},e.exports=h},function(e,t,n){"use strict";e.exports=function(e){var t={};t.src_Any=n(83).source,t.src_Cc=n(84).source,t.src_Z=n(85).source,t.src_P=n(68).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},function(e,t,n){"use strict";n.r(t),n.d(t,"ucs2decode",(function(){return m})),n.d(t,"ucs2encode",(function(){return f})),n.d(t,"decode",(function(){return v})),n.d(t,"encode",(function(){return j})),n.d(t,"toASCII",(function(){return _})),n.d(t,"toUnicode",(function(){return y}));var r=n(21),a=n.n(r),i=2147483647,o=/^xn--/,c=/[^\0-\x7E]/,s=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},u=Math.floor,p=String.fromCharCode;function d(e){throw new RangeError(l[e])}function h(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);var a=function(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}((e=e.replace(s,".")).split("."),t).join(".");return r+a}function m(e){for(var t=[],n=0,r=e.length;n<r;){var a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&a)<<10)+(1023&i)+65536):(t.push(a),n--)}else t.push(a)}return t}var f=function(e){return String.fromCodePoint.apply(String,a()(e))},b=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},g=function(e,t,n){var r=0;for(e=n?u(e/700):e>>1,e+=u(e/t);e>455;r+=36)e=u(e/35);return u(r+36*e/(e+38))},v=function(e){var t,n=[],r=e.length,a=0,o=128,c=72,s=e.lastIndexOf("-");s<0&&(s=0);for(var l=0;l<s;++l)e.charCodeAt(l)>=128&&d("not-basic"),n.push(e.charCodeAt(l));for(var p=s>0?s+1:0;p<r;){for(var h=a,m=1,f=36;;f+=36){p>=r&&d("invalid-input");var b=(t=e.charCodeAt(p++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:36;(b>=36||b>u((i-a)/m))&&d("overflow"),a+=b*m;var v=f<=c?1:f>=c+26?26:f-c;if(b<v)break;var j=36-v;m>u(i/j)&&d("overflow"),m*=j}var y=n.length+1;c=g(a-h,y,0==h),u(a/y)>i-o&&d("overflow"),o+=u(a/y),a%=y,n.splice(a++,0,o)}return String.fromCodePoint.apply(String,n)},j=function(e){var t=[],n=(e=m(e)).length,r=128,a=0,o=72,c=!0,s=!1,l=void 0;try{for(var h,f=e[Symbol.iterator]();!(c=(h=f.next()).done);c=!0){var v=h.value;v<128&&t.push(p(v))}}catch(B){s=!0,l=B}finally{try{c||null==f.return||f.return()}finally{if(s)throw l}}var j=t.length,y=j;for(j&&t.push("-");y<n;){var _=i,k=!0,O=!1,w=void 0;try{for(var E,C=e[Symbol.iterator]();!(k=(E=C.next()).done);k=!0){var x=E.value;x>=r&&x<_&&(_=x)}}catch(B){O=!0,w=B}finally{try{k||null==C.return||C.return()}finally{if(O)throw w}}var S=y+1;_-r>u((i-a)/S)&&d("overflow"),a+=(_-r)*S,r=_;var A=!0,F=!1,P=void 0;try{for(var T,N=e[Symbol.iterator]();!(A=(T=N.next()).done);A=!0){var M=T.value;if(M<r&&++a>i&&d("overflow"),M==r){for(var R=a,D=36;;D+=36){var z=D<=o?1:D>=o+26?26:D-o;if(R<z)break;var I=R-z,L=36-z;t.push(p(b(z+I%L,0))),R=u(I/L)}t.push(p(b(R,0))),o=g(a,S,y==j),a=0,++y}}}catch(B){F=!0,P=B}finally{try{A||null==N.return||N.return()}finally{if(F)throw P}}++a,++r}return t.join("")},y=function(e){return h(e,(function(e){return o.test(e)?v(e.slice(4).toLowerCase()):e}))},_=function(e){return h(e,(function(e){return c.test(e)?"xn--"+j(e):e}))},k={version:"2.1.0",ucs2:{decode:m,encode:f},decode:v,encode:j,toASCII:_,toUnicode:y};t.default=k},function(e,t,n){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},function(e,t,n){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}},function(e,t,n){"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return r.colors[Math.abs(t)%r.colors.length]}function r(e){var n;function o(){if(o.enabled){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var i=o,c=Number(new Date),s=c-(n||c);i.diff=s,i.prev=n,i.curr=c,n=c,t[0]=r.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var l=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;l++;var a=r.formatters[n];if("function"==typeof a){var o=t[l];e=a.call(i,o),t.splice(l,1),l--}return e})),r.formatArgs.call(i,t);var u=i.log||r.log;u.apply(i,t)}}return o.namespace=e,o.enabled=r.enabled(e),o.useColors=r.useColors(),o.color=t(e),o.destroy=a,o.extend=i,"function"==typeof r.init&&r.init(o),r.instances.push(o),o}function a(){var e=r.instances.indexOf(this);return-1!==e&&(r.instances.splice(e,1),!0)}function i(e,t){return r(this.namespace+(void 0===t?":":t)+e)}return r.debug=r,r.default=r,r.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},r.disable=function(){r.enable("")},r.enable=function(e){var t;r.save(e),r.names=[],r.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),a=n.length;for(t=0;t<a;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")));for(t=0;t<r.instances.length;t++){var i=r.instances[t];i.enabled=r.enabled(i.namespace)}},r.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=n(64),Object.keys(e).forEach((function(t){r[t]=e[t]})),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r}},function(e,t,n){"use strict";var r=n(33),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(90),o=n(221),c=n(222),s="function"==typeof Symbol&&Symbol.iterator;function l(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 u(e,t,n,r){var i,c=typeof e;if("undefined"!==c&&"boolean"!==c||(e=null),null===e||"string"===c||"number"===c||"object"===c&&e.$$typeof===a)return n(r,e,""===t?"."+l(e,0):t),1;var p=0,d=""===t?".":t+":";if(Array.isArray(e))for(var h=0;h<e.length;h++)p+=u(i=e[h],d+l(i,h),n,r);else{var m=function(e){var t=e&&(s&&e[s]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(m){0;for(var f,b=m.call(e),g=0;!(f=b.next()).done;)p+=u(i=f.value,d+l(i,g++),n,r)}else if("object"===c){0;var v=""+e;o(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===v?"object with keys {"+Object.keys(e).join(", ")+"}":v,"")}}return p}var p=/\/+/g;function d(e){return(""+e).replace(p,"$&/")}var h,m,f=b,b=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)},g=function(e){o(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.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 j(e,t,n){var a,o,c=e.result,s=e.keyPrefix,l=e.func,u=e.context,p=l.call(u,t,e.count++);Array.isArray(p)?y(p,c,n,i.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(a=p,o=s+(!p.key||t&&t.key===p.key?"":d(p.key)+"/")+n,p=r.cloneElement(a,{key:o},void 0!==a.props?a.props.children:void 0)),c.push(p))}function y(e,t,n,r,a){var i="";null!=n&&(i=d(n)+"/");var o=v.getPooled(t,i,r,a);!function(e,t,n){null==e||u(e,"",t,n)}(e,j,o),v.release(o)}v.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h=function(e,t,n,r){if(this.instancePool.length){var a=this.instancePool.pop();return this.call(a,e,t,n,r),a}return new this(e,t,n,r)},(m=v).instancePool=[],m.getPooled=h||f,m.poolSize||(m.poolSize=10),m.release=g;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return c(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return c(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;o(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)y(e[n],t,n,i.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,i,o,c){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,a,i,o,c],u=0;(s=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,n){"use strict";var r=n(90);e.exports=r},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},function(e,t,n){"use strict";var r=n(71),a=n(92);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}t.BlockHash=i,i.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var a=0;a<e.length;a+=this._delta32)this._update(e,a,a+this._delta32)}return this},i.prototype.digest=function(e){return this.update(this._pad()),a(null===this.pending),this._digest(e)},i.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var a=1;a<n;a++)r[a]=0;if(e<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)r[a++]=0;r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=e>>>24&255,r[a++]=e>>>16&255,r[a++]=e>>>8&255,r[a++]=255&e}else for(r[a++]=255&e,r[a++]=e>>>8&255,r[a++]=e>>>16&255,r[a++]=e>>>24&255,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,i=8;i<this.padLength;i++)r[a++]=0;return r}},function(e,t,n){"use strict";var r=n(71).rotr32;function a(e,t,n){return e&t^~e&n}function i(e,t,n){return e&t^e&n^t&n}function o(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?a(t,n,r):1===e||3===e?o(t,n,r):2===e?i(t,n,r):void 0},t.ch32=a,t.maj32=i,t.p32=o,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t){!function(){"use strict";var t=[];function n(e){var t,n,r,a,i=-1;for(t=0,r=e.length;t<r;t+=1){for(a=255&(i^e[t]),n=0;n<8;n+=1)1==(1&a)?a=a>>>1^3988292384:a>>>=1;i=i>>>8^a}return-1^i}function r(e,n){var a,i,o;if(void 0!==r.crc&&n&&e||(r.crc=-1,e)){for(a=r.crc,i=0,o=e.length;i<o;i+=1)a=a>>>8^t[255&(a^e[i])];return r.crc=a,-1^a}}!function(){var e,n,r;for(n=0;n<256;n+=1){for(e=n,r=0;r<8;r+=1)1&e?e=3988292384^e>>>1:e>>>=1;t[n]=e>>>0}}(),e.exports=function(e,t){var a;e="string"==typeof e?(a=e,Array.prototype.map.call(a,(function(e){return e.charCodeAt(0)}))):e;return((t?n(e):r(e))>>>0).toString(16)},e.exports.direct=n,e.exports.table=r}()},function(e,t,n){"use strict";var r=[],a=window,i=Math.pow(256,6),o=Math.pow(2,52),c=2*o,s=Math.random;function l(e){var t,n=e.length,r=this,a=0,i=r.i=r.j=0,o=r.S=[];for(n||(e=[n++]);a<256;)o[a]=a++;for(a=0;a<256;a++)o[a]=o[i=255&i+e[a%n]+(t=o[a])],o[i]=t;(r.g=function(e){for(var t,n=0,a=r.i,i=r.j,o=r.S;e--;)t=o[a=255&a+1],n=256*n+o[255&(o[a]=o[i=255&i+t])+(o[i]=t)];return r.i=a,r.j=i,n})(256)}function u(e,t){var n,r=[],a=(typeof e)[0];if(t&&"o"==a)for(n in e)try{r.push(u(e[n],t-1))}catch(i){}return r.length?r:"s"==a?e:e+"\0"}function p(e,t){for(var n,r=e+"",a=0;a<r.length;)t[255&a]=255&(n^=19*t[255&a])+r.charCodeAt(a++);return h(t)}function d(e){try{return a.crypto.getRandomValues(e=new Uint8Array(256)),h(e)}catch(t){return[+new Date,a,a.navigator&&a.navigator.plugins,a.screen,h(r)]}}function h(e){return String.fromCharCode.apply(0,e)}e.exports=function(t,n){if(n&&!0===n.global)return n.global=!1,Math.random=e.exports(t,n),n.global=!0,Math.random;var a=n&&n.entropy||!1,s=[],m=(p(u(a?[t,h(r)]:0 in arguments?t:d(),3),s),new l(s));return p(h(m.S),r),function(){for(var e=m.g(6),t=i,n=0;e<o;)e=256*(e+n),t*=256,n=m.g(1);for(;e>=c;)e/=2,t/=2,n>>>=1;return(e+n)/t}},e.exports.resetGlobal=function(){Math.random=s},p(Math.random(),r)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.log=function(){var e;return"object"===("undefined"==typeof console?"undefined":r(console))&&console.log&&(e=console).log.apply(e,arguments)},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;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(a=r))})),t.splice(a,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var 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.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.exports=n(237)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},function(e,t,n){"use strict";e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return r.colors[Math.abs(t)%r.colors.length]}function r(e){var n;function o(){if(o.enabled){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var i=o,c=Number(new Date),s=c-(n||c);i.diff=s,i.prev=n,i.curr=c,n=c,t[0]=r.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var l=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;l++;var a=r.formatters[n];if("function"==typeof a){var o=t[l];e=a.call(i,o),t.splice(l,1),l--}return e})),r.formatArgs.call(i,t);var u=i.log||r.log;u.apply(i,t)}}return o.namespace=e,o.enabled=r.enabled(e),o.useColors=r.useColors(),o.color=t(e),o.destroy=a,o.extend=i,"function"==typeof r.init&&r.init(o),r.instances.push(o),o}function a(){var e=r.instances.indexOf(this);return-1!==e&&(r.instances.splice(e,1),!0)}function i(e,t){return r(this.namespace+(void 0===t?":":t)+e)}return r.debug=r,r.default=r,r.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},r.disable=function(){r.enable("")},r.enable=function(e){var t;r.save(e),r.names=[],r.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),a=n.length;for(t=0;t<a;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")));for(t=0;t<r.instances.length;t++){var i=r.instances[t];i.enabled=r.enabled(i.namespace)}},r.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=n(64),Object.keys(e).forEach((function(t){r[t]=e[t]})),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"save",(function(){return Nt})),n.d(r,"attributes",(function(){return Rt})),n.d(r,"support",(function(){return Dt}));var a=n(17),i=n(15),o=n.n(i),c=n(3),s=n.n(c),l=n(0),u=n(1),p=n(16),d=n(5),h=n(2),m=n(21),f=n.n(m),b=n(7),g=n.n(b),v=n(11),j=n.n(v),y=n(8),_=n.n(y),k=n(9),O=n.n(k),w=n(4),E=n.n(w),C=n(10),x=n.n(C),S=n(6),A=[{icon:Object(l.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(h.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(l.createElement)(h.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),title:Object(u._x)("Original","image style","jetpack"),value:void 0},{icon:Object(l.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(h.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(l.createElement)(h.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 10h2V5h-4v2h2v8zm7-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),title:Object(u._x)("Black and White","image style","jetpack"),value:"black-and-white"},{icon:Object(l.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(h.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(l.createElement)(h.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-4-4h-4v-2h2c1.1 0 2-.89 2-2V7c0-1.11-.9-2-2-2h-4v2h4v2h-2c-1.1 0-2 .89-2 2v4h6v-2z"})),title:Object(u._x)("Sepia","image style","jetpack"),value:"sepia"},{icon:Object(l.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(h.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(l.createElement)(h.Path,{d:"M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-1.5c0-.83-.67-1.5-1.5-1.5.83 0 1.5-.67 1.5-1.5V7c0-1.11-.9-2-2-2h-4v2h4v2h-2v2h2v2h-4v2h4c1.1 0 2-.89 2-2z"})),title:"1977",value:"1977"},{icon:Object(l.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(h.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(l.createElement)(h.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),title:Object(u._x)("Clarendon","image style","jetpack"),value:"clarendon"},{icon:Object(l.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(h.Path,{fill:"none",d:"M0 0h24v24H0z"}),Object(l.createElement)(h.Path,{d:"M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-2c0-1.11-.9-2-2-2h-2V7h4V5h-6v6h4v2h-4v2h4c1.1 0 2-.89 2-2z"})),title:Object(u._x)("Gingham","image style","jetpack"),value:"gingham"}],F=Object(u.__)("Pick an image filter","jetpack");function P(e){var t=e.value,n=e.onChange;return Object(l.createElement)(h.Dropdown,{position:"bottom right",className:"editor-block-switcher",contentClassName:"editor-block-switcher__popover",renderToggle:function(e){var t=e.onToggle,n=e.isOpen;return Object(l.createElement)(h.Toolbar,{controls:[{onClick:t,extraProps:{"aria-haspopup":"true","aria-expanded":n},title:F,tooltip:F,icon:Object(l.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(h.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(l.createElement)(h.Path,{d:"M19 10v9H4.98V5h9V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-9h-2zm-2.94-2.06L17 10l.94-2.06L20 7l-2.06-.94L17 4l-.94 2.06L14 7zM12 8l-1.25 2.75L8 12l2.75 1.25L12 16l1.25-2.75L16 12l-2.75-1.25z"}))}]})},renderContent:function(e){var r=e.onClose;return Object(l.createElement)(h.NavigableMenu,{className:"tiled-gallery__filter-picker-menu"},A.map((function(e){var a,i=e.icon,o=e.title,c=e.value;return Object(l.createElement)(h.MenuItem,{className:t===c?"is-active":void 0,icon:i,isSelected:t===c,key:c||"original",onClick:(a=c,function(){n(t===a?void 0:a),r()}),role:"menuitemcheckbox"},o)})))}})}var T=n(12),N=n.n(T),M=n(26),R=n(25),D=n(13),z=function(e){function t(){var e,n;g()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=_()(this,(e=O()(t)).call.apply(e,[this].concat(a))),s()(E()(n),"img",Object(l.createRef)()),s()(E()(n),"onImageClick",(function(){n.props.isSelected||n.props.onSelect()})),s()(E()(n),"onImageKeyDown",(function(e){n.img.current===document.activeElement&&n.props.isSelected&&[M.BACKSPACE,M.DELETE].includes(e.keyCode)&&n.props.onRemove()})),n}return x()(t,e),j()(t,[{key:"componentDidUpdate",value:function(){var e=this.props,t=e.alt,n=e.height,r=e.image,a=e.link,i=e.url,o=e.width;if(r){var c={};!t&&r.alt_text&&(c.alt=r.alt_text),!n&&r.media_details&&r.media_details.height&&(c.height=+r.media_details.height),!a&&r.link&&(c.link=r.link),!i&&r.source_url&&(c.url=r.source_url),!o&&r.media_details&&r.media_details.width&&(c.width=+r.media_details.width),Object.keys(c).length&&this.props.setAttributes(c)}}},{key:"render",value:function(){var e,t=this.props,n=t["aria-label"],r=t.alt,a=t.height,i=t.id,o=t.imageFilter,c=t.isSelected,p=t.link,d=t.linkTo,m=t.onRemove,f=t.origUrl,b=t.srcSet,g=t.url,v=t.width;switch(d){case"media":e=g;break;case"attachment":e=p}var j=Object(R.isBlobURL)(f),y=Object(l.createElement)(l.Fragment,null,Object(l.createElement)("img",{alt:r,"aria-label":n,"data-height":a,"data-id":i,"data-link":p,"data-url":f,"data-width":v,onClick:this.onImageClick,onKeyDown:this.onImageKeyDown,ref:this.img,src:j?void 0:g,srcSet:j?void 0:b,tabIndex:"0",style:j?{backgroundImage:"url(".concat(f,")")}:void 0}),j&&Object(l.createElement)(h.Spinner,null));return Object(l.createElement)("figure",{className:N()("tiled-gallery__item",s()({"is-selected":c,"is-transient":j},"filter__".concat(o),!!o))},c&&Object(l.createElement)("div",{className:"tiled-gallery__item__inline-menu"},Object(l.createElement)(h.IconButton,{icon:"no-alt",onClick:m,className:"tiled-gallery__item__remove",label:Object(u.__)("Remove Image","jetpack")})),e?Object(l.createElement)("a",null,y):y)}}]),t}(l.Component),I=Object(D.withSelect)((function(e,t){var n=e("core").getMedia,r=t.id;return{image:r?n(r):null}}))(z);function L(e){var t,n=e.alt,r=e.imageFilter,a=e.height,i=e.id,o=e.link,c=e.linkTo,u=e.origUrl,p=e.url,d=e.width;if(Object(R.isBlobURL)(u))return null;switch(c){case"media":t=p;break;case"attachment":t=o}var h=Object(l.createElement)("img",{alt:n,"data-height":a,"data-id":i,"data-link":o,"data-url":u,"data-width":d,src:p});return Object(l.createElement)("figure",{className:N()("tiled-gallery__item",s()({},"filter__".concat(r),!!r))},t?Object(l.createElement)("a",{href:t},h):h)}var B=n(38);function q(e){var t=e.children;return Object(l.createElement)("div",{className:"tiled-gallery__col"},t)}function U(e){var t=e.children,n=e.galleryRef;return Object(l.createElement)("div",{className:"tiled-gallery__gallery",ref:n},t)}function V(e){var t=e.children,n=e.className;return Object(l.createElement)("div",{className:N()("tiled-gallery__row",n)},t)}var H=n(62);function G(e){var t=e.height,n=e.width;return t&&n?n/t:1}var $=de([2,1,2],5),W=he([me,me,fe,me,me]),K=he([me,me,me,fe,me,me,me]),Z=de([3,1,3],5),J=he([fe,me,me,fe]),Y=de([1,2,1],5),Q=he([fe,me,me,me]),X=de([1,3],3),ee=he([me,me,me,fe]),te=de([3,1],3),ne=he([ge(1.6),Object(d.overEvery)(be(.9),ge(2)),Object(d.overEvery)(be(.9),ge(2))]),re=de([1,2],3),ae=de([1,1,1,1,1],1),ie=de([1,1,1,1],1),oe=de([1,1,1],3),ce=he([Object(d.overEvery)(be(.9),ge(2)),Object(d.overEvery)(be(.9),ge(2)),ge(1.6)]),se=de([2,1],3),le=he([function(e){return e>=2}]);function ue(e,t,n){var r=Object(d.sum)(Object(d.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&oe(e)&&(r<2.5||r<5&&t.length>=3&&t[0]===t[2]||n)}function pe(e,t){var n=Object(d.sum)(Object(d.take)(t,4));return ie(e)&&n<3.5&&t.length>5||n<7&&4===t.length}function de(e,t){return function(n){return!Object(d.some)(Object(d.takeRight)(n,t),(function(t){return Object(d.isEqual)(t,e)}))}}function he(e){return function(t){return t.length>=e.length&&Object(d.every)(Object(d.zipWith)(e,t.slice(0,e.length),(function(e,t){return e(t)})))}}function me(e){return e>=1&&e<2}function fe(e){return e<1}function be(e){return function(t){return t>=e}}function ge(e){return function(t){return t<e}}var ve=function(e){function t(){var e,n;g()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=_()(this,(e=O()(t)).call.apply(e,[this].concat(a))),s()(E()(n),"gallery",Object(l.createRef)()),s()(E()(n),"pendingRaf",null),s()(E()(n),"ro",null),s()(E()(n),"handleGalleryResize",(function(e){n.pendingRaf&&(cancelAnimationFrame(n.pendingRaf),n.pendingRaf=null),n.pendingRaf=requestAnimationFrame((function(){var t=!0,n=!1,r=void 0;try{for(var a,i=function(){var e=a.value,t=e.contentRect,n=e.target,r=t.width;Object(H.a)(n).forEach((function(e){return Object(H.b)(e,r)}))},o=e[Symbol.iterator]();!(t=(a=o.next()).done);t=!0)i()}catch(c){n=!0,r=c}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}}))})),n}return x()(t,e),j()(t,[{key:"componentDidMount",value:function(){this.observeResize()}},{key:"componentWillUnmount",value:function(){this.unobserveResize()}},{key:"componentDidUpdate",value:function(e){e.images!==this.props.images||e.align!==this.props.align?this.triggerResize():"columns"===this.props.layoutStyle&&e.columns!==this.props.columns&&this.triggerResize()}},{key:"triggerResize",value:function(){this.gallery.current&&this.handleGalleryResize([{target:this.gallery.current,contentRect:{width:this.gallery.current.clientWidth}}])}},{key:"observeResize",value:function(){this.triggerResize(),this.ro=new B.a(this.handleGalleryResize),this.gallery.current&&this.ro.observe(this.gallery.current)}},{key:"unobserveResize",value:function(){this.ro&&(this.ro.disconnect(),this.ro=null),this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null)}},{key:"render",value:function(){var e=this.props,t=e.align,n=e.columns,r=e.images,a=e.layoutStyle,i=e.renderedImages,o=function(e){return Object(d.map)(e,G)}(r),c="columns"===a?function(e,t){if(e.length<=t)return[Array(e.length).fill(1)];for(var n=Object(d.sum)(e)/t,r=[],a=e,i=0,o=function(e){var t=Object(d.takeWhile)(a,(function(t){var r=i<=(e+1)*n;return r&&(i+=t),r})).length;r.push(t),a=Object(d.drop)(a,t)},c=0;c<t-1;c++)o(c);return r.push(a.length),[r]}(o,n):function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isWide,r=function e(t,r){if(!r.length)return t;var a;a=r.length>15&&W(r)&&$(t)?[2,1,2]:r.length>15&&K(r)&&Z(t)?[3,1,3]:5!==r.length&&J(r)&&Y(t)?[1,2,1]:Q(r)&&X(t)?[1,3]:ee(r)&&te(t)?[3,1]:ne(r)&&re(t)?[1,2]:n&&(5===r.length||10!==r.length&&r.length>6)&&ae(t)&&Object(d.sum)(Object(d.take)(r,5))<5?[1,1,1,1,1]:pe(t,r)?[1,1,1,1]:ue(t,r,n)?[1,1,1]:ce(r)&&se(t)?[2,1]:le(r)?[1]:r.length>3?[1,1]:Array(r.length).fill(1);var i=t.concat([a]),o=Object(d.sum)(a);return e(i,r.slice(o))};return r([],e)}(o,{isWide:["full","wide"].includes(t)}),s=0;return Object(l.createElement)(U,{galleryRef:this.gallery},c.map((function(e,t){return Object(l.createElement)(V,{key:t},e.map((function(e,t){var n=i.slice(s,s+e);return s+=e,Object(l.createElement)(q,{key:t},n)})))})))}}]),t}(l.Component),je=n(22);function ye(e){var t=e.columns,n=e.renderedImages,r=Math.min(je.h,t),a=n.length%r;return Object(l.createElement)(U,null,[].concat(f()(a?[Object(d.take)(n,a)]:[]),f()(Object(d.chunk)(Object(d.drop)(n,a),r))).map((function(e,t){return Object(l.createElement)(V,{key:t,className:"columns-".concat(e.length)},e.map((function(e,t){return Object(l.createElement)(q,{key:t},e)})))})))}var _e=n(46),ke=n.n(_e),Oe=n(61),we=n.n(Oe),Ee=n(28);function Ce(e){return["circle","square"].includes(e)}function xe(){if("undefined"!=typeof jetpack_plan&&"vip"===jetpack_plan.data)return!0}function Se(e){var t=Object(Ee.parse)(e).host;return/\.files\.wordpress\.com$/.test(t)}function Ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},r=Object(Ee.parse)(e),a=(r.auth,r.hash,r.port,r.query,r.search,ke()(r,["auth","hash","port","query","search"]));return a.query=Object.keys(t).reduce((function(e,r){return Object.assign(e,s()({},n.hasOwnProperty(r)?n[r]:r,t[r]))}),{}),Object(Ee.format)(a)}var Fe=function(e){function t(){return g()(this,t),_()(this,O()(t).apply(this,arguments))}return x()(t,e),j()(t,[{key:"renderImage",value:function(e,t){var n=this.props,r=n.imageFilter,a=n.images,i=n.isSave,o=n.linkTo,c=n.layoutStyle,s=n.onRemoveImage,p=n.onSelectImage,h=n.selectedImage,m=n.setImageAttributes,f=Object(u.sprintf)(Object(u.__)("image %1$d of %2$d in gallery","jetpack"),t+1,a.length),b=i?L:I,g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e.height||!e.url||!e.width)return{};if(Object(R.isBlobURL)(e.url)||/^https?:\/\/localhost/.test(e.url)||/^https?:\/\/.*\.local\//.test(e.url))return{src:e.url};var n,r=e.url.split("?",1)[0],a=e.height,i=e.width,o=t.layoutStyle,c=Se(r)||!0===xe()?Ae:we.a;if(Ce(o)&&i&&a){var s=Math.min(je.i,i,a);n=c(r,{resize:"".concat(s,",").concat(s)})}else n=c(r);var l,u=300,p=600;if(Ce(o)){var h=Math.min(p,i,a),m=Math.min(je.i,i,a);l=Object(d.range)(h,m,u).map((function(e){var t=c(r,{resize:"".concat(e,",").concat(e),strip:"info"});return t?"".concat(t," ").concat(e,"w"):null})).filter(Boolean).join(",")}else{var f=Math.min(p,i),b=Math.min(je.i,i);l=Object(d.range)(f,b,u).map((function(e){var t=c(r,{strip:"info",width:e});return t?"".concat(t," ").concat(e,"w"):null})).filter(Boolean).join(",")}return Object.assign({src:n},l&&{srcSet:l})}(e,{layoutStyle:c}),v=g.src,j=g.srcSet;return Object(l.createElement)(b,{alt:e.alt,"aria-label":f,height:e.height,id:e.id,imageFilter:r,isSelected:h===t,key:t,link:e.link,linkTo:o,onRemove:i?void 0:s(t),onSelect:i?void 0:p(t),origUrl:e.url,setAttributes:i?void 0:m(t),srcSet:j,url:v,width:e.width})}},{key:"render",value:function(){var e=this.props,t=e.align,n=e.children,r=e.className,a=e.columns,i=e.images,o=e.layoutStyle,c=Ce(o)?ye:ve,s=this.props.images.map(this.renderImage,this);return Object(l.createElement)("div",{className:r},Object(l.createElement)(c,{align:t,columns:a,images:i,layoutStyle:o,renderedImages:s}),n)}}]),t}(l.Component),Pe=n(112),Te=n.n(Pe);function Ne(e,t){var n=function(e,t){var n=!0,r=!1,a=void 0;try{for(var i,o=new Te.a(t).values()[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var c=i.value;if(-1!==c.indexOf("is-style-")){var s=c.substring(9),l=Object(d.find)(e,{name:s});if(l)return l}}}catch(u){r=!0,a=u}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return Object(d.find)(e,"isDefault")}(e,t);return n?n.name:null}var Me=n(48),Re=[{value:"attachment",label:Object(u.__)("Attachment Page","jetpack")},{value:"media",label:Object(u.__)("Media File","jetpack")},{value:"none",label:Object(u.__)("None","jetpack")}];function De(e){return Math.min(3,e.images.length)}var ze=function(e){var t=Object(d.pick)(e,[["alt"],["id"],["link"]]);return t.url=Object(d.get)(e,["sizes","large","url"])||Object(d.get)(e,["media_details","sizes","large","source_url"])||e.url,t},Ie=function(e){function t(){var e,n;g()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=_()(this,(e=O()(t)).call.apply(e,[this].concat(a))),s()(E()(n),"state",{selectedImage:null}),s()(E()(n),"addFiles",(function(e){var t=n.props.attributes.images||[],r=n.props.noticeOperations;Object(S.mediaUpload)({allowedTypes:je.a,filesList:e,onFileChange:function(e){var r=e.map((function(e){return ze(e)}));n.setAttributes({images:t.concat(r)})},onError:r.createErrorNotice})})),s()(E()(n),"onRemoveImage",(function(e){return function(){var t=Object(d.filter)(n.props.attributes.images,(function(t,n){return e!==n})),r=n.props.attributes.columns;n.setState({selectedImage:null}),n.setAttributes({images:t,columns:r?Math.min(t.length,r):r})}})),s()(E()(n),"onSelectImage",(function(e){return function(){n.state.selectedImage!==e&&n.setState({selectedImage:e})}})),s()(E()(n),"onSelectImages",(function(e){var t=n.props.attributes.columns;n.setAttributes({columns:t?Math.min(e.length,t):t,images:e.map((function(e){return ze(e)}))})})),s()(E()(n),"setColumnsNumber",(function(e){return n.setAttributes({columns:e})})),s()(E()(n),"setImageAttributes",(function(e){return function(t){var r=n.props.attributes.images;r[e]&&n.setAttributes({images:[].concat(f()(r.slice(0,e)),[o()({},r[e],{},t)],f()(r.slice(e+1)))})}})),s()(E()(n),"setLinkTo",(function(e){return n.setAttributes({linkTo:e})})),s()(E()(n),"uploadFromFiles",(function(e){return n.addFiles(e.target.files)})),n}return x()(t,e),j()(t,[{key:"setAttributes",value:function(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e=o()({},e,{ids:e.images.map((function(e){var t=e.id;return parseInt(t,10)}))})),this.props.setAttributes(e)}},{key:"render",value:function(){var e=this,t=this.state.selectedImage,n=this.props,r=n.attributes,a=n.isSelected,i=n.className,o=n.noticeOperations,c=n.noticeUI,s=n.setAttributes,p=r.align,d=r.columns,m=void 0===d?De(r):d,f=r.imageFilter,b=r.images,g=r.linkTo,v=Object(l.createElement)(h.DropZone,{onFilesDrop:this.addFiles}),j=Object(l.createElement)(S.BlockControls,null,!!b.length&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(h.Toolbar,null,Object(l.createElement)(S.MediaUpload,{onSelect:this.onSelectImages,allowedTypes:je.a,multiple:!0,gallery:!0,value:b.map((function(e){return e.id})),render:function(e){var t=e.open;return Object(l.createElement)(Me.a,{label:Object(u.__)("Edit Gallery","jetpack"),onClick:t})}})),Object(l.createElement)(P,{value:f,onChange:function(t){s({imageFilter:t}),e.setState({selectedImage:null})}})));if(0===b.length)return Object(l.createElement)(l.Fragment,null,j,Object(l.createElement)(S.MediaPlaceholder,{icon:Object(l.createElement)(S.BlockIcon,{icon:en}),className:i,labels:{title:Object(u.__)("Tiled Gallery","jetpack"),name:Object(u.__)("images","jetpack")},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:je.a,multiple:!0,notices:c,onError:o.createErrorNotice}));var y=Ne(je.g,r.className);return Object(l.createElement)(l.Fragment,null,j,Object(l.createElement)(S.InspectorControls,null,Object(l.createElement)(h.PanelBody,{title:Object(u.__)("Tiled Gallery settings","jetpack")},["columns","circle","square"].includes(y)&&b.length>1&&Object(l.createElement)(h.RangeControl,{label:Object(u.__)("Columns","jetpack"),value:m,onChange:this.setColumnsNumber,min:1,max:Math.min(je.h,b.length)}),Object(l.createElement)(h.SelectControl,{label:Object(u.__)("Link To","jetpack"),value:g,onChange:this.setLinkTo,options:Re}))),c,Object(l.createElement)(Fe,{align:p,className:i,columns:m,imageFilter:f,images:b,layoutStyle:y,linkTo:g,onRemoveImage:this.onRemoveImage,onSelectImage:this.onSelectImage,selectedImage:a?t:null,setImageAttributes:this.setImageAttributes},v,a&&Object(l.createElement)("div",{className:"tiled-gallery__add-item"},Object(l.createElement)(h.FormFileUpload,{multiple:!0,isLarge:!0,className:"tiled-gallery__add-item-button",onChange:this.uploadFromFiles,accept:"image/*",icon:"insert"},Object(u.__)("Upload an image","jetpack")))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isSelected||null===t.selectedImage?null:{selectedImage:null}}}]),t}(l.Component),Le=Object(h.withNotices)(Ie);var Be=n(24);n(238);function qe(e){var t,n=e["aria-label"],r=e.alt,a=e.height,i=e.id,o=e.link,c=e.linkTo,s=e.origUrl,u=e.url,p=e.width;if(Object(R.isBlobURL)(s))return null;switch(c){case"media":t=u;break;case"attachment":t=o}var d=Object(l.createElement)("img",{alt:r,"aria-label":n,"data-height":a,"data-id":i,"data-link":o,"data-url":s,"data-width":p,src:u});return Object(l.createElement)("figure",{className:"tiled-gallery__item"},t?Object(l.createElement)("a",{href:t},d):d)}function Ue(e){var t=e.children;return Object(l.createElement)("div",{className:"tiled-gallery__col"},t)}function Ve(e){var t=e.children,n=e.galleryRef;return Object(l.createElement)("div",{className:"tiled-gallery__gallery",ref:n},t)}function He(e){var t=e.children,n=e.className;return Object(l.createElement)("div",{className:N()("tiled-gallery__row",n)},t)}var Ge=n(18),$e=n.n(Ge),We=[{isDefault:!0,name:"rectangular"},{name:"circle"},{name:"square"},{name:"columns"}];function Ke(e,t){var n=(t-e.reduce((function(e,t){return e+t}),0))/e.length;return e.map((function(e){return e+n}))}function Ze(e,t){!function(e,t,n){var r=$e()(t,2),a=r[0],i=r[1],o=1/a*(n-4*(e.childElementCount-1)-i);!function(e,t){var n=t.rawHeight,r=t.rowWidth,a=Ye(e),i=a.map((function(e){return(n-4*(e.childElementCount-1))*Xe(e)[0]})),o=Ke(i,r);a.forEach((function(e,t){var r=i[t],a=o[t];!function(e,t){var n=t.colHeight,r=t.width,a=t.rawWidth,i=Ke(Qe(e).map((function(e){return a/et(e)})),n);Array.from(e.children).forEach((function(e,t){var n=i[t];e.setAttribute("style","height:".concat(n,"px;width:").concat(r,"px;"))}))}(e,{colHeight:n-4*(e.childElementCount-1),width:a,rawWidth:r})}))}(e,{rawHeight:o,rowWidth:n-4*(e.childElementCount-1)})}(e,function(e){return Ye(e).map(Xe).reduce((function(e,t){var n=$e()(e,2),r=n[0],a=n[1],i=$e()(t,2);return[r+i[0],a+i[1]]}),[0,0])}(e),t)}function Je(e){return Array.from(e.querySelectorAll(".tiled-gallery__row"))}function Ye(e){return Array.from(e.querySelectorAll(".tiled-gallery__col"))}function Qe(e){return Array.from(e.querySelectorAll(".tiled-gallery__item > img, .tiled-gallery__item > a > img"))}function Xe(e){var t=Qe(e),n=t.length,r=1/t.map(et).reduce((function(e,t){return e+1/t}),0);return[r,r*n||1]}function et(e){var t=parseInt(e.dataset.width,10),n=parseInt(e.dataset.height,10);return t&&!Number.isNaN(t)&&n&&!Number.isNaN(n)?t/n:1}function tt(e){var t=e.height,n=e.width;return t&&n?n/t:1}var nt=kt([2,1,2],5),rt=Ot([wt,wt,Et,wt,wt]),at=Ot([wt,wt,wt,Et,wt,wt,wt]),it=kt([3,1,3],5),ot=Ot([Et,wt,wt,Et]),ct=kt([1,2,1],5),st=Ot([Et,wt,wt,wt]),lt=kt([1,3],3),ut=Ot([wt,wt,wt,Et]),pt=kt([3,1],3),dt=Ot([xt(1.6),Object(d.overEvery)(Ct(.9),xt(2)),Object(d.overEvery)(Ct(.9),xt(2))]),ht=kt([1,2],3),mt=kt([1,1,1,1,1],1),ft=kt([1,1,1,1],1),bt=kt([1,1,1],3),gt=Ot([Object(d.overEvery)(Ct(.9),xt(2)),Object(d.overEvery)(Ct(.9),xt(2)),xt(1.6)]),vt=kt([2,1],3),jt=Ot([function(e){return e>=2}]);function yt(e,t,n){var r=Object(d.sum)(Object(d.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&bt(e)&&(r<2.5||r<5&&t.length>=3&&t[0]===t[2]||n)}function _t(e,t){var n=Object(d.sum)(Object(d.take)(t,4));return ft(e)&&n<3.5&&t.length>5||n<7&&4===t.length}function kt(e,t){return function(n){return!Object(d.some)(Object(d.takeRight)(n,t),(function(t){return Object(d.isEqual)(t,e)}))}}function Ot(e){return function(t){return t.length>=e.length&&Object(d.every)(Object(d.zipWith)(e,t.slice(0,e.length),(function(e,t){return e(t)})))}}function wt(e){return e>=1&&e<2}function Et(e){return e<1}function Ct(e){return function(t){return t>=e}}function xt(e){return function(t){return t<e}}var St=function(e){function t(){var e,n;g()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=_()(this,(e=O()(t)).call.apply(e,[this].concat(a))),s()(E()(n),"gallery",Object(l.createRef)()),s()(E()(n),"pendingRaf",null),s()(E()(n),"ro",null),s()(E()(n),"handleGalleryResize",(function(e){n.pendingRaf&&(cancelAnimationFrame(n.pendingRaf),n.pendingRaf=null),n.pendingRaf=requestAnimationFrame((function(){var t=!0,n=!1,r=void 0;try{for(var a,i=function(){var e=a.value,t=e.contentRect,n=e.target,r=t.width;Je(n).forEach((function(e){return Ze(e,r)}))},o=e[Symbol.iterator]();!(t=(a=o.next()).done);t=!0)i()}catch(c){n=!0,r=c}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}}))})),n}return x()(t,e),j()(t,[{key:"componentDidMount",value:function(){this.observeResize()}},{key:"componentWillUnmount",value:function(){this.unobserveResize()}},{key:"componentDidUpdate",value:function(e){e.images!==this.props.images||e.align!==this.props.align?this.triggerResize():"columns"===this.props.layoutStyle&&e.columns!==this.props.columns&&this.triggerResize()}},{key:"triggerResize",value:function(){this.gallery.current&&this.handleGalleryResize([{target:this.gallery.current,contentRect:{width:this.gallery.current.clientWidth}}])}},{key:"observeResize",value:function(){this.triggerResize(),this.ro=new B.a(this.handleGalleryResize),this.gallery.current&&this.ro.observe(this.gallery.current)}},{key:"unobserveResize",value:function(){this.ro&&(this.ro.disconnect(),this.ro=null),this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null)}},{key:"render",value:function(){var e=this.props,t=e.align,n=e.columns,r=e.images,a=e.layoutStyle,i=e.renderedImages,o=function(e){return Object(d.map)(e,tt)}(r),c="columns"===a?function(e,t){if(e.length<=t)return[Array(e.length).fill(1)];for(var n=Object(d.sum)(e)/t,r=[],a=e,i=0,o=function(e){var t=Object(d.takeWhile)(a,(function(t){var r=i<=(e+1)*n;return r&&(i+=t),r})).length;r.push(t),a=Object(d.drop)(a,t)},c=0;c<t-1;c++)o(c);return r.push(a.length),[r]}(o,n):function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isWide,r=function e(t,r){if(!r.length)return t;var a;a=r.length>15&&rt(r)&&nt(t)?[2,1,2]:r.length>15&&at(r)&&it(t)?[3,1,3]:5!==r.length&&ot(r)&&ct(t)?[1,2,1]:st(r)&&lt(t)?[1,3]:ut(r)&&pt(t)?[3,1]:dt(r)&&ht(t)?[1,2]:n&&(5===r.length||10!==r.length&&r.length>6)&&mt(t)&&Object(d.sum)(Object(d.take)(r,5))<5?[1,1,1,1,1]:_t(t,r)?[1,1,1,1]:yt(t,r,n)?[1,1,1]:gt(r)&&vt(t)?[2,1]:jt(r)?[1]:r.length>3?[1,1]:Array(r.length).fill(1);var i=t.concat([a]),o=Object(d.sum)(a);return e(i,r.slice(o))};return r([],e)}(o,{isWide:["full","wide"].includes(t)}),s=0;return Object(l.createElement)(Ve,{galleryRef:this.gallery},c.map((function(e,t){return Object(l.createElement)(He,{key:t},e.map((function(e,t){var n=i.slice(s,s+e);return s+=e,Object(l.createElement)(Ue,{key:t},n)})))})))}}]),t}(l.Component);function At(e){var t=e.columns,n=e.renderedImages,r=Math.min(20,t),a=n.length%r;return Object(l.createElement)(Ve,null,[].concat(f()(a?[Object(d.take)(n,a)]:[]),f()(Object(d.chunk)(Object(d.drop)(n,a),r))).map((function(e,t){return Object(l.createElement)(He,{key:t,className:"columns-".concat(e.length)},e.map((function(e,t){return Object(l.createElement)(Ue,{key:t},e)})))})))}var Ft=function(e){function t(){return g()(this,t),_()(this,O()(t).apply(this,arguments))}return x()(t,e),j()(t,[{key:"photonize",value:function(e){var t=e.height,n=e.width,r=e.url;if(r){if(Object(R.isBlobURL)(r)||/^https?:\/\/localhost/.test(r))return r;var a=r.split("?",1)[0],i=function(e){var t=Object(Ee.parse)(e).host;return/\.files\.wordpress\.com$/.test(t)}(r)?Tt:we.a;if(Pt(this.props.layoutStyle)&&n&&t){var o=Math.min(2e3,n,t);return i(a,{resize:"".concat(o,",").concat(o)})}return i(a)}}},{key:"renderImage",value:function(e,t){var n=this.props,r=n.images,a=n.linkTo,i=n.selectedImage,o=Object(u.sprintf)(Object(u.__)("image %1$d of %2$d in gallery","jetpack"),t+1,r.length);return Object(l.createElement)(qe,{alt:e.alt,"aria-label":o,height:e.height,id:e.id,origUrl:e.url,isSelected:i===t,key:t,link:e.link,linkTo:a,url:this.photonize(e),width:e.width})}},{key:"render",value:function(){var e=this.props,t=e.align,n=e.children,r=e.className,a=e.columns,i=e.images,o=e.layoutStyle,c=Pt(o)?At:St,s=this.props.images.map(this.renderImage,this);return Object(l.createElement)("div",{className:r},Object(l.createElement)(c,{align:t,columns:a,images:i,layoutStyle:o,renderedImages:s}),n)}}]),t}(l.Component);function Pt(e){return["circle","square"].includes(e)}function Tt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},r=Object(Ee.parse)(e),a=(r.auth,r.hash,r.port,r.query,r.search,ke()(r,["auth","hash","port","query","search"]));return a.query=Object.keys(t).reduce((function(e,r){return Object.assign(e,s()({},n.hasOwnProperty(r)?n[r]:r,t[r]))}),{}),Object(Ee.format)(a)}function Nt(e){var t=e.attributes,n=t.images;if(!n.length)return null;var r=t.align,a=t.className,i=t.columns,o=void 0===i?function(e){return Math.min(3,e.images.length)}(t):i,c=t.linkTo;return Object(l.createElement)(Ft,{align:r,className:a,columns:o,images:n,layoutStyle:Ne(We,a),linkTo:c})}var Mt,Rt={align:{default:"center",type:"string"},className:{default:"is-style-".concat("rectangular"),type:"string"},columns:{type:"number"},ids:{default:[],type:"array"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},caption:{selector:"figcaption",source:"html",type:"string"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},linkTo:{default:"none",type:"string"}},Dt={align:["center","wide","full"],customClassName:!1,html:!1},zt=n(113),It=n.n(zt),Lt=n(114),Bt=n.n(Lt),qt=n(115),Ut=n.n(qt),Vt=n(116),Ht=n.n(Vt),Gt=n(117),$t=n.n(Gt),Wt=n(118),Kt=n.n(Wt),Zt=(Mt={},s()(Mt,je.e,Object(u._x)("Tiled mosaic","Tiled gallery layout","jetpack")),s()(Mt,je.c,Object(u._x)("Circles","Tiled gallery layout","jetpack")),s()(Mt,je.d,Object(u._x)("Tiled columns","Tiled gallery layout","jetpack")),s()(Mt,je.f,Object(u._x)("Square tiles","Tiled gallery layout","jetpack")),Mt),Jt=je.g.map((function(e){return o()({},e,{label:Zt[e.name]})}));function Yt(e){return Object(d.filter)(e,(function(e){var t=e.id,n=e.url;return t&&n}))}var Qt={align:{default:"center",type:"string"},className:{default:"is-style-".concat(je.e),type:"string"},columns:{type:"number"},ids:{default:[],type:"array"},imageFilter:{type:"string"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},linkTo:{default:"none",type:"string"}},Xt={align:"center",className:"is-style-rectangular",images:[{alt:"",link:"",url:It.a,width:160,height:95},{alt:"",link:"",url:Bt.a,width:160,height:107},{alt:"",link:"",url:Ut.a,width:304,height:203},{alt:"",link:"",url:Ht.a,width:312,height:207},{alt:"",link:"",url:$t.a,width:152,height:101},{alt:"",link:"",url:Kt.a,width:152,height:105}],linkTo:"none"},en=Object(l.createElement)(h.SVG,{viewBox:"0 0 24 24",width:24,height:24},Object(l.createElement)(h.Path,{fill:"currentColor",d:"M19 5v2h-4V5h4M9 5v6H5V5h4m10 8v6h-4v-6h4M9 17v2H5v-2h4M21 3h-8v6h8V3zM11 3H3v10h8V3zm10 8h-8v10h8V11zm-10 4H3v6h8v-6z"})),tn={attributes:Qt,category:"jetpack",description:Object(u.__)("Display multiple images in an elegantly organized tiled layout.","jetpack")+(Object(Be.b)()?"":" "+Object(u.__)("Serves images using Jetpack's fast global network of servers.","jetpack")),icon:en,keywords:[Object(u._x)("images","block search term","jetpack"),Object(u._x)("photos","block search term","jetpack"),Object(u._x)("pictures","block search term","jetpack")],styles:Jt,supports:{align:["center","wide","full"],customClassName:!1,html:!1},title:Object(u.__)("Tiled Gallery","jetpack"),transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],isMatch:function(e){return Yt(e).length>0},transform:function(e){var t=Yt(e);return Object(p.createBlock)("jetpack/".concat("tiled-gallery"),{images:t.map((function(e){return{id:e.id,url:e.url,alt:e.alt}})),ids:t.map((function(e){return e.id}))})}},{type:"block",blocks:["core/gallery","jetpack/slideshow"],transform:function(e){var t=Yt(e.images);return t.length>0?Object(p.createBlock)("jetpack/".concat("tiled-gallery"),{images:t.map((function(e){return{id:e.id,url:e.url,alt:e.alt}})),ids:t.map((function(e){return e.id}))}):Object(p.createBlock)("jetpack/".concat("tiled-gallery"))}}],to:[{type:"block",blocks:["core/gallery"],transform:function(e){var t=e.images,n=e.ids,r=e.columns,a=e.linkTo;return Object(p.createBlock)("core/gallery",{images:t,ids:n,columns:r,imageCrop:!0,linkTo:a})}},{type:"block",blocks:["core/image"],transform:function(e){var t=e.align,n=e.images;return n.length>0?n.map((function(e){var n=e.id,r=e.url,a=e.alt;return Object(p.createBlock)("core/image",{align:t,id:n,url:r,alt:a})})):Object(p.createBlock)("core/image")}}]},edit:Le,save:function(e){var t=e.attributes,n=t.imageFilter,r=t.images;if(!r.length)return null;var a=t.align,i=t.className,o=t.columns,c=void 0===o?De(t):o,s=t.linkTo;return Object(l.createElement)(Fe,{align:a,className:i,columns:c,imageFilter:n,images:r,isSave:!0,layoutStyle:Ne(je.g,i),linkTo:s})},deprecated:[r],example:{attributes:Xt}};Object(a.a)("tiled-gallery",tn)},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"setConnectionTestResults",(function(){return p})),n.d(r,"refreshConnectionTestResults",(function(){return d})),n.d(r,"fetchFromAPI",(function(){return h}));var a={};n.r(a),n.d(a,"getFailedConnections",(function(){return m})),n.d(a,"getMustReauthConnections",(function(){return f}));var i=n(0),o=n(1),c=n(2),s=n(52),l=n(39),u=(n(216),n(13));function p(e){return{type:"SET_CONNECTION_TEST_RESULTS",results:e}}function d(){return{type:"REFRESH_CONNECTION_TEST_RESULTS"}}function h(e){return{type:"FETCH_FROM_API",path:e}}function m(e){return e.filter((function(e){return!1===e.test_success}))}function f(e){return e.filter((function(e){return"must_reauth"===e.test_success})).map((function(e){return e.service_name}))}var b=n(21),g=n.n(b),v=n(101),j=n.n(v),y=n(5),_=n(23),k=n.n(_);var O={REFRESH_CONNECTION_TEST_RESULTS:function(e,t){var n,r;return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.dispatch,e.prev=1,e.next=4,regeneratorRuntime.awrap(k()({path:"/wpcom/v2/publicize/connection-test-results"}));case 4:return r=e.sent,e.abrupt("return",n(p(r)));case 8:e.prev=8,e.t0=e.catch(1);case 10:case"end":return e.stop()}}),null,null,[[1,8]])}};var w,E,C,x,S,A={FETCH_FROM_API:function(e){var t=e.path;return k()({path:t})}},F=Object(u.registerStore)("jetpack/publicize",{actions:r,controls:A,reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_CONNECTION_TEST_RESULTS":return t.results;case"REFRESH_CONNECTION_TEST_RESULTS":return[]}return e},selectors:a});w=F,C=[j()(O)],x=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},S={getState:w.getState,dispatch:function(){return x.apply(void 0,arguments)}},E=C.map((function(e){return e(S)})),x=y.flowRight.apply(void 0,g()(E))(w.dispatch),w.dispatch=x;var P=n(44),T=n(14),N=n(7),M=n.n(N),R=n(11),D=n.n(R),z=n(8),I=n.n(z),L=n(9),B=n.n(L),q=n(4),U=n.n(q),V=n(10),H=n.n(V),G=n(3),$=n.n(G),W=function(e){function t(){var e,n;M()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=I()(this,(e=B()(t)).call.apply(e,[this].concat(a))),$()(U()(n),"refreshConnectionClick",(function(e){var t=e.target,r=t.href,a=t.title;e.preventDefault();var i=window.open(r,a,""),o=window.setInterval((function(){!1!==i.closed&&(window.clearInterval(o),n.props.refreshConnections())}),500)})),n}return H()(t,e),D()(t,[{key:"componentDidMount",value:function(){this.props.refreshConnections()}},{key:"renderRefreshableConnections",value:function(){var e=this,t=this.props.failedConnections.filter((function(e){return e.can_refresh}));return t.length?Object(i.createElement)(c.Notice,{className:"jetpack-publicize-notice",isDismissible:!1,status:"error"},Object(i.createElement)("p",null,Object(o.__)("Before you hit Publish, please refresh the following connection(s) to make sure we can Publicize your post:","jetpack")),t.map((function(t){return Object(i.createElement)(c.Button,{href:t.refresh_url,isSmall:!0,key:t.id,onClick:e.refreshConnectionClick,title:t.refresh_text},t.refresh_text)}))):null}},{key:"renderNonRefreshableConnections",value:function(){var e=this.props.failedConnections.filter((function(e){return!e.can_refresh}));return e.length?e.map((function(e){return Object(i.createElement)(c.Notice,{className:"jetpack-publicize-notice",isDismissible:!1,status:"error"},Object(i.createElement)("p",null,e.test_message))})):null}},{key:"render",value:function(){return Object(i.createElement)(i.Fragment,null,this.renderRefreshableConnections(),this.renderNonRefreshableConnections())}}]),t}(i.Component),K=Object(T.compose)([Object(u.withSelect)((function(e){return{failedConnections:e("jetpack/publicize").getFailedConnections()}})),Object(u.withDispatch)((function(e){return{refreshConnections:e("jetpack/publicize").refreshConnectionTestResults}}))])(W),Z=n(15),J=n.n(Z),Y=n(12),Q=n.n(Y),X=n(29),ee=n.n(X),te=Object(i.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(c.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(i.createElement)(c.G,null,Object(i.createElement)(c.Path,{d:"M20.007 3H3.993C3.445 3 3 3.445 3 3.993v16.013c0 .55.445.994.993.994h8.62v-6.97H10.27V11.31h2.346V9.31c0-2.325 1.42-3.59 3.494-3.59.993 0 1.847.073 2.096.106v2.43h-1.438c-1.128 0-1.346.537-1.346 1.324v1.734h2.69l-.35 2.717h-2.34V21h4.587c.548 0 .993-.445.993-.993V3.993c0-.548-.445-.993-.993-.993z"}))),ne=Object(i.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(c.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(i.createElement)(c.G,null,Object(i.createElement)(c.Path,{d:"M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z"}))),re=Object(i.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(c.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(i.createElement)(c.G,null,Object(i.createElement)(c.Path,{d:"M19.7 3H4.3C3.582 3 3 3.582 3 4.3v15.4c0 .718.582 1.3 1.3 1.3h15.4c.718 0 1.3-.582 1.3-1.3V4.3c0-.718-.582-1.3-1.3-1.3zM8.34 18.338H5.666v-8.59H8.34v8.59zM7.003 8.574c-.857 0-1.55-.694-1.55-1.548 0-.855.692-1.548 1.55-1.548.854 0 1.547.694 1.547 1.548 0 .855-.692 1.548-1.546 1.548zm11.335 9.764h-2.67V14.16c0-.995-.017-2.277-1.387-2.277-1.39 0-1.6 1.086-1.6 2.206v4.248h-2.668v-8.59h2.56v1.174h.036c.357-.675 1.228-1.387 2.527-1.387 2.703 0 3.203 1.78 3.203 4.092v4.71z"}))),ae=Object(i.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(c.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(i.createElement)(c.G,null,Object(i.createElement)(c.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-5.57 14.265c-2.445.042-3.37-1.742-3.37-2.998V10.6H8.922V9.15c1.703-.615 2.113-2.15 2.21-3.026.006-.06.053-.084.08-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.13 1.08 1.107.3-.008.698-.094.907-.194l.54 1.6c-.205.297-1.12.642-1.946.657z"}))),ie=function(e){var t=e.serviceName,n={className:"jetpack-publicize-gutenberg-social-icon is-".concat(t),size:24};switch(t){case"facebook":return Object(i.createElement)(c.Icon,ee()({icon:te},n));case"twitter":return Object(i.createElement)(c.Icon,ee()({icon:ne},n));case"linkedin":return Object(i.createElement)(c.Icon,ee()({icon:re},n));case"tumblr":return Object(i.createElement)(c.Icon,ee()({icon:ae},n))}return null},oe=n(34),ce=function(e){function t(){var e,n;M()(this,t);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return n=I()(this,(e=B()(t)).call.apply(e,[this].concat(a))),$()(U()(n),"maybeDisplayLinkedInNotice",(function(){return n.connectionNeedsReauth()&&Object(i.createElement)(c.Notice,{className:"jetpack-publicize-notice",isDismissible:!1,status:"error"},Object(i.createElement)("p",null,Object(o.__)("Your LinkedIn connection needs to be reauthenticated to continue working – head to Sharing to take care of it.","jetpack")),Object(i.createElement)(c.ExternalLink,{href:"https://wordpress.com/marketing/connections/".concat(Object(oe.a)())},Object(o.__)("Go to Sharing settings","jetpack")))})),$()(U()(n),"connectionNeedsReauth",(function(){return Object(y.includes)(n.props.mustReauthConnections,n.props.name)})),$()(U()(n),"onConnectionChange",(function(){var e=n.props.id;n.props.toggleConnection(e)})),n}return H()(t,e),D()(t,[{key:"connectionIsFailing",value:function(){var e=this.props,t=e.failedConnections,n=e.name;return t.some((function(e){return e.service_name===n}))}},{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.enabled,r=e.id,a=e.label,o=e.name,s="connection-"+o+"-"+r,l=o.replace("_","-"),u=Object(i.createElement)(c.FormToggle,{id:s,className:"jetpack-publicize-connection-toggle",checked:n,onChange:this.onConnectionChange});return(t||this.connectionIsFailing()||this.connectionNeedsReauth())&&(u=Object(i.createElement)(c.Disabled,null,u)),Object(i.createElement)("li",null,this.maybeDisplayLinkedInNotice(),Object(i.createElement)("div",{className:"publicize-jetpack-connection-container"},Object(i.createElement)("label",{htmlFor:s,className:"jetpack-publicize-connection-label"},Object(i.createElement)(ie,{serviceName:l}),Object(i.createElement)("span",{className:"jetpack-publicize-connection-label-copy"},a)),u))}}]),t}(i.Component),se=Object(u.withSelect)((function(e){return{failedConnections:e("jetpack/publicize").getFailedConnections(),mustReauthConnections:e("jetpack/publicize").getMustReauthConnections()}}))(ce),le=function(e){function t(){var e,n;M()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=I()(this,(e=B()(t)).call.apply(e,[this].concat(a))),$()(U()(n),"settingsClick",(function(e){var t=n.getButtonLink(),r=n.props.refreshCallback;e.preventDefault();var a=window.open(t,"",""),i=window.setInterval((function(){!1!==a.closed&&(window.clearInterval(i),r())}),500)})),n}return H()(t,e),D()(t,[{key:"getButtonLink",value:function(){var e=Object(oe.a)();return e?"https://wordpress.com/marketing/connections/".concat(e):"options-general.php?page=sharing&publicize_popup=true"}},{key:"render",value:function(){var e=Q()("jetpack-publicize-add-connection-container",this.props.className);return Object(i.createElement)("div",{className:e},Object(i.createElement)(c.ExternalLink,{onClick:this.settingsClick},Object(o.__)("Connect an account","jetpack")))}}]),t}(i.Component),ue=function(e){function t(){var e,n;M()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=I()(this,(e=B()(t)).call.apply(e,[this].concat(a))),$()(U()(n),"state",{hasEditedShareMessage:!1}),$()(U()(n),"fieldId",Object(y.uniqueId)("jetpack-publicize-message-field-")),$()(U()(n),"onMessageChange",(function(e){var t=n.props.messageChange;n.setState({hasEditedShareMessage:!0}),t(e)})),n}return H()(t,e),D()(t,[{key:"isDisabled",value:function(){return this.props.connections.every((function(e){return!e.toggleable}))}},{key:"getShareMessage",value:function(){var e=this.props,t=e.shareMessage,n=e.defaultShareMessage;return this.state.hasEditedShareMessage||""!==t?t:n}},{key:"render",value:function(){var e=this.props,t=e.connections,n=e.toggleConnection,r=e.refreshCallback,a=this.getShareMessage(),c=256-a.length,s=Q()("jetpack-publicize-character-count",{"wpas-twitter-length-limit":c<=0});return Object(i.createElement)("div",{id:"publicize-form"},Object(i.createElement)("ul",{className:"jetpack-publicize__connections-list"},t.map((function(e){var t=e.display_name,r=e.enabled,a=e.id,o=e.service_name,c=e.toggleable;return Object(i.createElement)(se,{disabled:!c,enabled:r,key:a,id:a,label:t,name:o,toggleConnection:n})}))),Object(i.createElement)(le,{refreshCallback:r}),t.some((function(e){return e.enabled}))&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("label",{className:"jetpack-publicize-message-note",htmlFor:this.fieldId},Object(o.__)("Customize your message","jetpack")),Object(i.createElement)("div",{className:"jetpack-publicize-message-box"},Object(i.createElement)("textarea",{id:this.fieldId,value:a,onChange:this.onMessageChange,disabled:this.isDisabled(),maxLength:256,placeholder:Object(o.__)("Write a message for your audience here. If you leave this blank, we'll use the post title as the message.","jetpack"),rows:4}),Object(i.createElement)("div",{className:s},Object(o.sprintf)(Object(o._n)("%d character remaining","%d characters remaining",c,"jetpack"),c)))))}}]),t}(i.Component),pe=Object(T.compose)([Object(u.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute("meta"),n=e("core/editor").getEditedPostAttribute("title"),r=Object(y.get)(t,["jetpack_publicize_message"],"");return{connections:e("core/editor").getEditedPostAttribute("jetpack_publicize_connections"),defaultShareMessage:n.substr(0,256),shareMessage:r.substr(0,256)}})),Object(u.withDispatch)((function(e,t){var n=t.connections;return{toggleConnection:function(t){var r=n.map((function(e){return J()({},e,{enabled:e.id===t?!e.enabled:e.enabled})}));e("core/editor").editPost({jetpack_publicize_connections:r})},messageChange:function(t){e("core/editor").editPost({meta:{jetpack_publicize_message:t.target.value}})}}}))])(ue),de=Object(T.compose)([Object(u.withSelect)((function(e){return{connections:e("core/editor").getEditedPostAttribute("jetpack_publicize_connections")}})),Object(u.withDispatch)((function(e){return{refreshConnections:e("core/editor").refreshPost}}))])((function(e){var t=e.connections,n=e.refreshConnections;return Object(i.createElement)(i.Fragment,null,t&&t.some((function(e){return e.enabled}))&&Object(i.createElement)(K,null),Object(i.createElement)("div",null,Object(o.__)("Connect and select the accounts where you'd like to share your post.","jetpack")),t&&t.length>0&&Object(i.createElement)(pe,{refreshCallback:n}),t&&0===t.length&&Object(i.createElement)(le,{className:"jetpack-publicize-add-connection-wrapper",refreshCallback:n}))})),he={render:function(){return Object(i.createElement)(l.PostTypeSupportCheck,{supportKeys:"publicize"},Object(i.createElement)(P.a,null,Object(i.createElement)(c.PanelBody,{title:Object(o.__)("Share this post","jetpack")},Object(i.createElement)(de,null))),Object(i.createElement)(s.PluginPrePublishPanel,{initialOpen:!0,id:"publicize-title",title:Object(i.createElement)("span",{id:"publicize-defaults",key:"publicize-title-span"},Object(o.__)("Share this post","jetpack"))},Object(i.createElement)(de,null)))}},me=n(36);Object(me.a)("publicize",he)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(6),c=n(2),s=n(12),l=n.n(s),u=["jetpack/markdown","jetpack/address","jetpack/email","jetpack/phone","jetpack/map","jetpack/business-hours","core/paragraph","core/image","core/heading","core/gallery","core/list","core/quote","core/shortcode","core/audio","core/code","core/cover","core/html","core/separator","core/spacer","core/subhead","core/video"],p=[["jetpack/email"],["jetpack/phone"],["jetpack/address"]],d=function(e){var t=e.isSelected;return Object(a.createElement)("div",{className:l()({"jetpack-contact-info-block":!0,"is-selected":t})},Object(a.createElement)(o.InnerBlocks,{allowedBlocks:u,templateLock:!1,template:p}))},h=n(20),m=(n(152),n(129),n(7)),f=n.n(m),b=n(11),g=n.n(b),v=n(8),j=n.n(v),y=n(9),_=n.n(y),k=n(4),O=n.n(k),w=n(10),E=n.n(w),C=function(e){var t=e.attributes,n=t.address,r=t.addressLine2,i=t.addressLine3,o=t.city,c=t.region,s=t.postal,l=t.country;return Object(a.createElement)(a.Fragment,null,n&&Object(a.createElement)("div",{className:"jetpack-address__address jetpack-address__address1"},n),r&&Object(a.createElement)("div",{className:"jetpack-address__address jetpack-address__address2"},r),i&&Object(a.createElement)("div",{className:"jetpack-address__address jetpack-address__address3"},i),o&&!(c||s)&&Object(a.createElement)("div",{className:"jetpack-address__city"},o),o&&(c||s)&&Object(a.createElement)("div",null,[Object(a.createElement)("span",{className:"jetpack-address__city"},o),", ",Object(a.createElement)("span",{className:"jetpack-address__region"},c)," ",Object(a.createElement)("span",{className:"jetpack-address__postal"},s)]),!o&&(c||s)&&Object(a.createElement)("div",null,[Object(a.createElement)("span",{className:"jetpack-address__region"},c)," ",Object(a.createElement)("span",{className:"jetpack-address__postal"},s)]),l&&Object(a.createElement)("div",{className:"jetpack-address__country"},l))},x=function(e){var t=e.attributes,n=t.address,r=t.addressLine2,a=t.addressLine3,i=t.city,o=t.region,c=t.postal,s=t.country,l=n?"".concat(n,","):"",u=r?"".concat(r,","):"",p=a?"".concat(a,","):"",d=i?"+".concat(i,","):"",h=o?"+".concat(o,","):"";h=c?"".concat(h,"+").concat(c):h;var m=s?"+".concat(s):"";return"https://www.google.com/maps/search/".concat(l).concat(u).concat(p).concat(d).concat(h).concat(m).replace(" ","+")},S=function(e){return[(t=e.attributes).address,t.addressLine2,t.addressLine3,t.city,t.region,t.postal,t.country].some((function(e){return""!==e}))&&Object(a.createElement)("div",{className:e.className},e.attributes.linkToGoogleMaps&&Object(a.createElement)("a",{href:x(e),target:"_blank",rel:"noopener noreferrer",title:Object(i.__)("Open address in Google Maps","jetpack")},Object(a.createElement)(C,e)),!e.attributes.linkToGoogleMaps&&Object(a.createElement)(C,e));var t},A=function(e){function t(){var e,n;f()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return(n=j()(this,(e=_()(t)).call.apply(e,[this].concat(a)))).preventEnterKey=n.preventEnterKey.bind(O()(n)),n}return E()(t,e),g()(t,[{key:"preventEnterKey",value:function(e){"Enter"!==e.key||e.preventDefault()}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.address,r=t.addressLine2,s=t.addressLine3,u=t.city,p=t.region,d=t.postal,h=t.country,m=t.linkToGoogleMaps,f=e.isSelected,b=e.setAttributes,g=[n,r,s,u,p,d,h].some((function(e){return""!==e})),v=l()({"jetpack-address-block":!0,"is-selected":f}),j=Object(a.createElement)(c.ToggleControl,{label:Object(i.__)("Link address to Google Maps","jetpack"),checked:m,onChange:function(e){return b({linkToGoogleMaps:e})}});return Object(a.createElement)("div",{className:v},!f&&g&&S(this.props),(f||!g)&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)(o.PlainText,{value:n,placeholder:Object(i.__)("Street Address","jetpack"),"aria-label":Object(i.__)("Street Address","jetpack"),onChange:function(e){return b({address:e})},onKeyDown:this.preventEnterKey}),Object(a.createElement)(o.PlainText,{value:r,placeholder:Object(i.__)("Address Line 2","jetpack"),"aria-label":Object(i.__)("Address Line 2","jetpack"),onChange:function(e){return b({addressLine2:e})},onKeyDown:this.preventEnterKey}),Object(a.createElement)(o.PlainText,{value:s,placeholder:Object(i.__)("Address Line 3","jetpack"),"aria-label":Object(i.__)("Address Line 3","jetpack"),onChange:function(e){return b({addressLine3:e})},onKeyDown:this.preventEnterKey}),Object(a.createElement)(o.PlainText,{value:u,placeholder:Object(i.__)("City","jetpack"),"aria-label":Object(i.__)("City","jetpack"),onChange:function(e){return b({city:e})},onKeyDown:this.preventEnterKey}),Object(a.createElement)(o.PlainText,{value:p,placeholder:Object(i.__)("State/Province/Region","jetpack"),"aria-label":Object(i.__)("State/Province/Region","jetpack"),onChange:function(e){return b({region:e})},onKeyDown:this.preventEnterKey}),Object(a.createElement)(o.PlainText,{value:d,placeholder:Object(i.__)("Postal/Zip Code","jetpack"),"aria-label":Object(i.__)("Postal/Zip Code","jetpack"),onChange:function(e){return b({postal:e})},onKeyDown:this.preventEnterKey}),Object(a.createElement)(o.PlainText,{value:h,placeholder:Object(i.__)("Country","jetpack"),"aria-label":Object(i.__)("Country","jetpack"),onChange:function(e){return b({country:e})},onKeyDown:this.preventEnterKey}),j))}}]),t}(a.Component),F={title:Object(i.__)("Address","jetpack"),description:Object(i.__)("Lets you add a physical address with Schema markup.","jetpack"),keywords:[Object(i._x)("location","block search term","jetpack"),Object(i._x)("direction","block search term","jetpack"),Object(i._x)("place","block search term","jetpack")],icon:Object(h.a)(Object(a.createElement)(a.Fragment,null,Object(a.createElement)(c.Path,{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zM7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.88-2.88 7.19-5 9.88C9.92 16.21 7 11.85 7 9z"}),Object(a.createElement)(c.Circle,{cx:"12",cy:"9",r:"2.5"}))),category:"jetpack",attributes:{address:{type:"string",default:""},addressLine2:{type:"string",default:""},addressLine3:{type:"string",default:""},city:{type:"string",default:""},region:{type:"string",default:""},postal:{type:"string",default:""},country:{type:"string",default:""},linkToGoogleMaps:{type:"boolean",default:!1}},parent:["jetpack/contact-info"],edit:A,save:S},P=n(43),T=n.n(P),N=function(e){var t=e.attributes.email,n=e.className;return t&&Object(a.createElement)("div",{className:n},t.split(/(\s+)/).map((function(e,t){var n=e.replace(/([.,/#!$%^&*;:{}=\-_`~()\][])+$/g,"");return e.indexOf("@")&&T.a.validate(n)?e===n?Object(a.createElement)("a",{href:"mailto:".concat(e),key:t},e):Object(a.createElement)(a.Fragment,{key:t},Object(a.createElement)("a",{href:"mailto:".concat(e),key:t},n),Object(a.createElement)(a.Fragment,null,e.slice(-(e.length-n.length)))):Object(a.createElement)(a.Fragment,{key:t},e)})))},M=function(e,t,n,r,i){var c=t.isSelected,s=t.attributes[e];return Object(a.createElement)("div",{className:"jetpack-".concat(e,c?"-block is-selected":"-block")},!c&&""!==s&&r(t),(c||""===s)&&Object(a.createElement)(o.PlainText,{value:s,placeholder:n,"aria-label":n,onChange:i}))},R=function(e){var t=e.setAttributes;return M("email",e,Object(i.__)("Email","jetpack"),N,(function(e){return t({email:e})}))},D={title:Object(i.__)("Email Address","jetpack"),description:Object(i.__)("Lets you add an email address with an automatically generated click-to-email link.","jetpack"),keywords:["e-mail","email",Object(i._x)("message","block search term","jetpack")],icon:Object(h.a)(Object(a.createElement)(c.Path,{d:"M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"})),category:"jetpack",attributes:{email:{type:"string",default:""}},edit:R,save:N,parent:["jetpack/contact-info"]};var z=function(e){var t=e.attributes.phone,n=e.className;return t&&Object(a.createElement)("div",{className:n},function(e){var t=e.match(/\d+\.\d+|\d+\b|\d+(?=\w)/g);if(!t)return e;var n=e.indexOf(t[0]),r=n?e.substring(n-1):e,i=n?e.substring(0,n):"",o=r.replace(/\D/g,"");return/[0-9/+/(]/.test(r[0])?(i=i.slice(0,-1),"+"===r[0]&&(o="+"+o)):r=r.substring(1),[i.trim()?Object(a.createElement)("span",{key:"phonePrefix",className:"phone-prefix"},i):null,Object(a.createElement)("a",{key:"phoneNumber",href:"tel:".concat(o)},r)]}(t))},I=function(e){var t=e.setAttributes;return M("phone",e,Object(i.__)("Phone number","jetpack"),z,(function(e){return t({phone:e})}))},L={title:Object(i.__)("Phone Number","jetpack"),description:Object(i.__)("Lets you add a phone number with an automatically generated click-to-call link.","jetpack"),keywords:[Object(i._x)("mobile","block search term","jetpack"),Object(i._x)("telephone","block search term","jetpack"),Object(i._x)("cell","block search term","jetpack")],icon:Object(h.a)(Object(a.createElement)(c.Path,{d:"M6.54 5c.06.89.21 1.76.45 2.59l-1.2 1.2c-.41-1.2-.67-2.47-.76-3.79h1.51m9.86 12.02c.85.24 1.72.39 2.6.45v1.49c-1.32-.09-2.59-.35-3.8-.75l1.2-1.19M7.5 3H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.49c0-.55-.45-1-1-1-1.24 0-2.45-.2-3.57-.57-.1-.04-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.45-5.15-3.76-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1z"})),category:"jetpack",attributes:{phone:{type:"string",default:""}},parent:["jetpack/contact-info"],edit:I,save:z},B={title:Object(i.__)("Contact Info","jetpack"),description:Object(i.__)("Lets you add an email address, phone number, and physical address with improved markup for better SEO results.","jetpack"),keywords:[Object(i._x)("email","block search term","jetpack"),Object(i._x)("phone","block search term","jetpack"),Object(i._x)("address","block search term","jetpack")],icon:Object(h.a)(Object(a.createElement)(c.Path,{d:"M19 5v14H5V5h14m0-2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 9c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3zm0-4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm6 10H6v-1.53c0-2.5 3.97-3.58 6-3.58s6 1.08 6 3.58V18zm-9.69-2h7.38c-.69-.56-2.38-1.12-3.69-1.12s-3.01.56-3.69 1.12z"})),category:"jetpack",supports:{align:["wide","full"],html:!1},attributes:{},edit:d,save:function(e){var t=e.className;return Object(a.createElement)("div",{className:t},Object(a.createElement)(o.InnerBlocks.Content,null))},example:{attributes:{},innerBlocks:[{name:"jetpack/email",attributes:{email:"hello@yourjetpack.blog"}},{name:"jetpack/phone",attributes:{phone:"123-456-7890"}},{name:"jetpack/address",attributes:{address:"987 Photon Drive",city:"Speedyville",region:"CA",postal:"12345",country:"USA"}}]}},q=[{name:"address",settings:F},{name:"email",settings:D},{name:"phone",settings:L}];Object(r.a)("contact-info",B,q)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(27),i=n(7),o=n.n(i),c=n(11),s=n.n(c),l=n(8),u=n.n(l),p=n(9),d=n.n(p),h=n(4),m=n.n(h),f=n(10),b=n.n(f),g=n(3),v=n.n(g),j=n(0),y=n(23),_=n.n(y),k=n(1),O=n(2),w=n(6),E=(n(157),n(21)),C=n.n(E),x=n(12),S=n.n(x),A=n(5),F=n(26),P=n(14);function T(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=[],r=0;r<e.length;r++){var a=e[r],i=a.keywords,o=void 0===i?[]:i;if("string"==typeof a.label&&(o=[].concat(C()(o),[a.label])),n.push(a),n.length===t)break}return n}var N=function(e){function t(){var e;return o()(this,t),e=u()(this,d()(t).apply(this,arguments)),v()(m()(e),"select",(function(t){(e.props.completer.getOptionCompletion||{})(t),e.reset()})),v()(m()(e),"reset",(function(){e.setState(e.constructor.getInitialState())})),v()(m()(e),"onChange",(function(t){var n=e.props.completer,r=e.state.options;if(t){n&&(n.isDebounced?e.debouncedLoadOptions(n,t):e.loadOptions(n,t));var a=n?T(r):[];n&&e.setState({selectedIndex:0,filteredOptions:a,query:t})}else e.reset()})),v()(m()(e),"onKeyDown",(function(t){var n=e.state,r=n.isOpen,a=n.selectedIndex,i=n.filteredOptions;if(r){var o;switch(t.keyCode){case F.UP:o=(0===a?i.length:a)-1,e.setState({selectedIndex:o});break;case F.DOWN:o=(a+1)%i.length,e.setState({selectedIndex:o});break;case F.ENTER:e.select(i[a]);break;case F.LEFT:case F.RIGHT:case F.ESCAPE:return void e.reset();default:return}t.preventDefault(),t.stopPropagation()}})),e.debouncedLoadOptions=Object(A.debounce)(e.loadOptions,250),e.state=e.constructor.getInitialState(),e}return b()(t,e),s()(t,null,[{key:"getInitialState",value:function(){return{selectedIndex:0,query:void 0,filteredOptions:[],isOpen:!1}}}]),s()(t,[{key:"componentWillUnmount",value:function(){this.debouncedLoadOptions.cancel()}},{key:"handleFocusOutside",value:function(){this.reset()}},{key:"loadOptions",value:function(e,t){var n=this,r=e.options,a=this.activePromise=Promise.resolve("function"==typeof r?r(t):r).then((function(t){var r;if(a===n.activePromise){var i=t.map((function(t,n){return{key:"".concat(n),value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[]}})),o=T(i),c=o.length===n.state.filteredOptions.length?n.state.selectedIndex:0;n.setState((r={},v()(r,"options",i),v()(r,"filteredOptions",o),v()(r,"selectedIndex",c),v()(r,"isOpen",o.length>0),r)),n.announce(o)}}))}},{key:"announce",value:function(e){var t=this.props.debouncedSpeak;t&&(e.length?t(Object(k.sprintf)(Object(k._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length,"jetpack","jetpack"),e.length),"assertive"):t(Object(k.__)("No results.","jetpack"),"assertive"))}},{key:"render",value:function(){var e=this,t=this.onChange,n=this.onKeyDown,r=this.props,a=r.children,i=r.instanceId,o=r.completer,c=this.state,s=c.selectedIndex,l=c.filteredOptions,u=(l[s]||{}).key,p=void 0===u?"":u,d=o.className,h=l.length>0,m=h?"components-autocomplete-listbox-".concat(i):null,f=h?"components-autocomplete-item-".concat(i,"-").concat(p):null;return Object(j.createElement)("div",{className:"components-autocomplete"},a({isExpanded:h,listBoxId:m,activeId:f,onChange:t,onKeyDown:n}),h&&Object(j.createElement)(O.Popover,{focusOnMount:!1,onClose:this.reset,position:"top center",className:"components-autocomplete__popover",noArrow:!0},Object(j.createElement)("div",{id:m,role:"listbox",className:"components-autocomplete__results"},Object(A.map)(l,(function(t,n){return Object(j.createElement)(O.Button,{key:t.key,id:"components-autocomplete-item-".concat(i,"-").concat(t.key),role:"option","aria-selected":n===s,disabled:t.isDisabled,className:S()("components-autocomplete__result",d,{"is-selected":n===s}),onClick:function(){return e.select(t)}},t.label)})))))}}]),t}(j.Component),M=Object(P.compose)([O.withSpokenMessages,P.withInstanceId,O.withFocusOutside])(N),R=Object(k.__)("Add a marker…","jetpack"),D=function(e){function t(){var e;return o()(this,t),e=u()(this,d()(t).apply(this,arguments)),v()(m()(e),"getOptionCompletion",(function(t){var n=t.value,r={placeTitle:n.text,title:n.text,caption:n.place_name,id:n.id,coordinates:{longitude:n.geometry.coordinates[0],latitude:n.geometry.coordinates[1]}};return e.props.onAddPoint(r),n.text})),v()(m()(e),"search",(function(t){var n=e.props,r=n.apiKey,a=n.onError,i="https://api.mapbox.com/geocoding/v5/mapbox.places/"+encodeURI(t)+".json?access_token="+r;return new Promise((function(e,t){var n=new XMLHttpRequest;n.open("GET",i),n.onload=function(){if(200===n.status){var r=JSON.parse(n.responseText);e(r.features)}else{var i=JSON.parse(n.responseText);a(i.statusText,i.responseJSON.message),t(new Error("Mapbox Places Error"))}},n.send()}))})),v()(m()(e),"onReset",(function(){e.textRef.current.value=null})),e.textRef=Object(j.createRef)(),e.containerRef=Object(j.createRef)(),e.state={isEmpty:!0},e.autocompleter={name:"placeSearch",options:e.search,isDebounced:!0,getOptionLabel:function(e){return Object(j.createElement)("span",null,e.place_name)},getOptionKeywords:function(e){return[e.place_name]},getOptionCompletion:e.getOptionCompletion},e}return b()(t,e),s()(t,[{key:"componentDidMount",value:function(){var e=this;setTimeout((function(){e.containerRef.current.querySelector("input").focus()}),50)}},{key:"render",value:function(){var e=this,t=this.props.label;return Object(j.createElement)("div",{ref:this.containerRef},Object(j.createElement)(O.BaseControl,{label:t,className:"components-location-search"},Object(j.createElement)(M,{completer:this.autocompleter,onReset:this.onReset},(function(t){var n=t.isExpanded,r=t.listBoxId,a=t.activeId,i=t.onChange,o=t.onKeyDown;return Object(j.createElement)(O.TextControl,{placeholder:R,ref:e.textRef,onChange:i,"aria-expanded":n,"aria-owns":r,"aria-activedescendant":a,onKeyDown:o})}))))}}]),t}(j.Component);D.defaultProps={onError:function(){}};var z=D,I=function(e){function t(){return o()(this,t),u()(this,d()(t).apply(this,arguments))}return b()(t,e),s()(t,[{key:"render",value:function(){var e=this.props,t=e.onClose,n=e.onAddPoint,r=e.onError,a=e.apiKey;return Object(j.createElement)(O.Button,{className:"component__add-point"},Object(k.__)("Add marker","jetpack"),Object(j.createElement)(O.Popover,{className:"component__add-point__popover"},Object(j.createElement)(O.Button,{className:"component__add-point__close",onClick:t},Object(j.createElement)(O.Dashicon,{icon:"no"})),Object(j.createElement)(z,{onAddPoint:n,label:Object(k.__)("Add a location","jetpack"),apiKey:a,onError:r})))}}]),t}(j.Component);I.defaultProps={onAddPoint:function(){},onClose:function(){},onError:function(){}};var L=I,B=(n(158),function(e){function t(){var e;return o()(this,t),e=u()(this,d()(t).apply(this,arguments)),v()(m()(e),"onDeletePoint",(function(t){var n=parseInt(t.target.getAttribute("data-id")),r=e.props,a=r.points,i=r.onChange,o=a.slice(0);o.splice(n,1),i(o)})),e.state={selectedCell:null},e}return b()(t,e),s()(t,[{key:"setMarkerField",value:function(e,t,n){var r=this.props,a=r.points,i=r.onChange,o=a.slice(0);o[n][e]=t,i(o)}},{key:"render",value:function(){var e=this,t=this.props.points.map((function(t,n){return Object(j.createElement)(O.PanelBody,{title:t.placeTitle,key:t.id,initialOpen:!1},Object(j.createElement)(O.TextControl,{label:"Marker Title",value:t.title,onChange:function(t){return e.setMarkerField("title",t,n)}}),Object(j.createElement)(O.TextareaControl,{label:"Marker Caption",value:t.caption,rows:"3",onChange:function(t){return e.setMarkerField("caption",t,n)}}),Object(j.createElement)(O.Button,{"data-id":n,onClick:e.onDeletePoint,className:"component__locations__delete-btn"},Object(j.createElement)(O.Dashicon,{icon:"trash",size:"15"})," Delete Marker"))}));return Object(j.createElement)("div",{className:"component__locations"},Object(j.createElement)(O.Panel,{className:"component__locations__panel"},t))}}]),t}(j.Component));B.defaultProps={points:Object.freeze([]),onChange:function(){}};var q=B,U=n(76),V=(n(159),function(e){function t(){return o()(this,t),u()(this,d()(t).apply(this,arguments))}return b()(t,e),s()(t,[{key:"render",value:function(){var e=this.props,t=e.options,n=e.value,r=e.onChange,a=e.label,i=t.map((function(e,t){var a=S()("component__map-theme-picker__button","is-theme-"+e.value,e.value===n?"is-selected":"");return Object(j.createElement)(O.Button,{className:a,title:e.label,key:t,onClick:function(){return r(e.value)}},e.label)}));return Object(j.createElement)("div",{className:"component__map-theme-picker components-base-control"},Object(j.createElement)("label",{className:"components-base-control__label"},a),Object(j.createElement)(O.ButtonGroup,null,i))}}]),t}(j.Component));V.defaultProps={label:"",options:[],value:null,onChange:function(){}};var H=V,G=n(99),$=n.n(G),W=function(e){function t(){var e;return o()(this,t),e=u()(this,d()(t).apply(this,arguments)),v()(m()(e),"addPoint",(function(t){var n=e.props,r=n.attributes,a=n.setAttributes,i=r.points,o=i.slice(0),c=!1;i.map((function(e){e.id===t.id&&(c=!0)})),c||(o.push(t),a({points:o}),e.setState({addPointVisibility:!1}))})),v()(m()(e),"updateAlignment",(function(t){e.props.setAttributes({align:t}),setTimeout(e.mapRef.current.sizeMap,0)})),v()(m()(e),"updateAPIKeyControl",(function(t){e.setState({apiKeyControl:t.target.value})})),v()(m()(e),"updateAPIKey",(function(){var t=e.props.noticeOperations,n=e.state.apiKeyControl;t.removeAllNotices(),n&&e.apiCall(n,"POST")})),v()(m()(e),"removeAPIKey",(function(){e.apiCall(null,"DELETE")})),v()(m()(e),"onError",(function(t,n){var r=e.props.noticeOperations;r.removeAllNotices(),r.createErrorNotice(n)})),e.state={addPointVisibility:!1,apiState:0},e.mapRef=Object(j.createRef)(),e}return b()(t,e),s()(t,[{key:"apiCall",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",r=this.props.noticeOperations,a="/wpcom/v2/service-api-keys/mapbox",i=t?{path:a,method:n,data:{service_api_key:t}}:{path:a,method:n};this.setState({apiRequestOutstanding:!0},(function(){_()(i).then((function(t){var n=t.service_api_key,a=t.service_api_key_source;r.removeAllNotices();var i=n?2:1,o="wpcom"===a?"":n;e.setState({apiState:i,apiKey:n,apiKeyControl:o,apiKeySource:a,apiRequestOutstanding:!1})}),(function(t){var n=t.message;e.onError(null,n),e.setState({apiState:1,apiRequestOutstanding:!1})}))}))}},{key:"componentDidMount",value:function(){this.apiCall()}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.setAttributes,i=t.attributes,o=t.noticeUI,c=t.notices,s=t.isSelected,l=i.mapStyle,u=i.mapDetails,p=i.points,d=i.zoom,h=i.mapCenter,m=i.markerColor,f=i.align,b=i.preview,g=this.state,v=g.addPointVisibility,y=g.apiKey,_=g.apiKeyControl,E=g.apiKeySource,C=g.apiState,x=g.apiRequestOutstanding,S=Object(j.createElement)(j.Fragment,null,Object(j.createElement)(w.BlockControls,null,Object(j.createElement)(w.BlockAlignmentToolbar,{value:f,onChange:this.updateAlignment,controls:["center","wide","full"]}),Object(j.createElement)(O.Toolbar,null,Object(j.createElement)(O.IconButton,{icon:a.a.markerIcon,label:"Add a marker",onClick:function(){return e.setState({addPointVisibility:!0})}}))),Object(j.createElement)(w.InspectorControls,null,Object(j.createElement)(O.PanelBody,{title:Object(k.__)("Map Theme","jetpack")},Object(j.createElement)(H,{value:l,onChange:function(e){return r({mapStyle:e})},options:a.a.mapStyleOptions}),Object(j.createElement)(O.ToggleControl,{label:Object(k.__)("Show street names","jetpack"),checked:u,onChange:function(e){return r({mapDetails:e})}})),Object(j.createElement)(w.PanelColorSettings,{title:Object(k.__)("Colors","jetpack"),initialOpen:!0,colorSettings:[{value:m,onChange:function(e){return r({markerColor:e})},label:"Marker Color"}]}),p.length?Object(j.createElement)(O.PanelBody,{title:Object(k.__)("Markers","jetpack"),initialOpen:!1},Object(j.createElement)(q,{points:p,onChange:function(e){r({points:e})}})):null,"wpcom"!==E&&Object(j.createElement)(O.PanelBody,{title:Object(k.__)("Mapbox Access Token","jetpack"),initialOpen:!1},Object(j.createElement)(O.TextControl,{label:Object(k.__)("Mapbox Access Token","jetpack"),value:_,onChange:function(t){return e.setState({apiKeyControl:t})}}),Object(j.createElement)(O.ButtonGroup,null,Object(j.createElement)(O.Button,{type:"button",onClick:this.updateAPIKey,isDefault:!0},Object(k.__)("Update Token","jetpack")),Object(j.createElement)(O.Button,{type:"button",onClick:this.removeAPIKey,isDefault:!0},Object(k.__)("Remove Token","jetpack")))))),A=Object(j.createElement)(O.Placeholder,{icon:a.a.icon},Object(j.createElement)(O.Spinner,null)),F=Object(j.createElement)(j.Fragment,null,Object(k.__)("To use the map block, you need an Access Token.","jetpack"),Object(j.createElement)("br",null),Object(j.createElement)(O.ExternalLink,{href:"https://www.mapbox.com"},Object(k.__)("Create an account or log in to Mapbox.","jetpack")),Object(j.createElement)("br",null),Object(k.__)("Locate and copy the default access token. Then, paste it into the field below.","jetpack")),P=Object(j.createElement)(O.Placeholder,{icon:a.a.icon,label:Object(k.__)("Map","jetpack"),notices:c,instructions:F},Object(j.createElement)(j.Fragment,null,Object(j.createElement)("form",null,Object(j.createElement)("input",{type:"text",className:"components-placeholder__input",disabled:x,placeholder:Object(k.__)("Paste Token Here","jetpack"),value:_,onChange:this.updateAPIKeyControl}),Object(j.createElement)(O.Button,{isLarge:!0,isSecondary:!0,disabled:x||!_||_.length<1,onClick:this.updateAPIKey},Object(k.__)("Set Token","jetpack"))))),T=Object(j.createElement)(j.Fragment,null,S,Object(j.createElement)("div",{className:n},Object(j.createElement)(U.a,{ref:this.mapRef,mapStyle:l,mapDetails:u,points:p,zoom:d,mapCenter:h,markerColor:m,onSetZoom:function(e){r({zoom:e})},admin:!0,apiKey:y,onSetPoints:function(e){return r({points:e})},onSetMapCenter:function(e){return r({mapCenter:e})},onMapLoaded:function(){return e.setState({addPointVisibility:!0})},onMarkerClick:function(){return e.setState({addPointVisibility:!1})},onError:this.onError},s&&v&&Object(j.createElement)(L,{onAddPoint:this.addPoint,onClose:function(){return e.setState({addPointVisibility:!1})},apiKey:y,onError:this.onError,tagName:"AddPoint"})))),N=Object(j.createElement)("div",null,Object(j.createElement)("img",{alt:Object(k.__)("Map Preview","jetpack"),src:$.a}));return Object(j.createElement)(j.Fragment,null,o,b&&N,!b&&0===C&&A,!b&&1===C&&P,!b&&2===C&&T)}}]),t}(j.Component),K=Object(O.withNotices)(W),Z=function(e){function t(){return o()(this,t),u()(this,d()(t).apply(this,arguments))}return b()(t,e),s()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.align,n=e.mapStyle,r=e.mapDetails,a=e.points,i=e.zoom,o=e.mapCenter,c=e.markerColor,s=a.map((function(e,t){var n=e.coordinates,r=n.longitude,a="https://www.google.com/maps/search/?api=1&query="+n.latitude+","+r;return Object(j.createElement)("li",{key:t},Object(j.createElement)("a",{href:a},e.title))})),l=t?"align".concat(t):null;return Object(j.createElement)("div",{className:l,"data-map-style":n,"data-map-details":r,"data-points":JSON.stringify(a),"data-zoom":i,"data-map-center":JSON.stringify(o),"data-marker-color":c},a.length>0&&Object(j.createElement)("ul",null,s))}}]),t}(j.Component),J=(n(132),n(160),a.a.name),Y={title:a.a.title,icon:a.a.icon,category:a.a.category,keywords:a.a.keywords,description:a.a.description,attributes:a.a.attributes,supports:a.a.supports,getEditWrapperProps:function(e){var t=e.align;if(-1!==a.a.validAlignments.indexOf(t))return{"data-align":t}},edit:K,save:Z,example:a.a.example};Object(r.a)(J,Y)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(15),i=n.n(a),o=n(0),c=n(1),s=n(16),l=n(2),u=n(6),p=(n(149),n(7)),d=n.n(p),h=n(11),m=n.n(h),f=n(8),b=n.n(f),g=n(9),v=n.n(g),j=n(4),y=n.n(j),_=n(10),k=n.n(_),O=n(12),w=n.n(O),E=n(43),C=n.n(E),x=n(14),S=n(41),A=n(20),F=n(31),P=["jetpack/markdown","core/paragraph","core/image","core/heading","core/gallery","core/list","core/quote","core/shortcode","core/audio","core/code","core/cover","core/file","core/html","core/separator","core/spacer","core/subhead","core/table","core/verse","core/video"],T=function(e){function t(){var e,n;d()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];(n=b()(this,(e=v()(t)).call.apply(e,[this].concat(a)))).onChangeSubject=n.onChangeSubject.bind(y()(n)),n.onBlurTo=n.onBlurTo.bind(y()(n)),n.onChangeTo=n.onChangeTo.bind(y()(n)),n.onChangeSubmit=n.onChangeSubmit.bind(y()(n)),n.onFormSettingsSet=n.onFormSettingsSet.bind(y()(n)),n.getToValidationError=n.getToValidationError.bind(y()(n)),n.renderToAndSubjectFields=n.renderToAndSubjectFields.bind(y()(n)),n.preventEnterSubmittion=n.preventEnterSubmittion.bind(y()(n)),n.hasEmailError=n.hasEmailError.bind(y()(n));var o=a[0].attributes.to?a[0].attributes.to:"",c=o.split(",").map(n.getToValidationError).filter(Boolean);return n.state={toError:c&&c.length?c:null},n}return k()(t,e),m()(t,[{key:"getEmailHelpMessage",value:function(){return Object(c.__)("You can enter multiple email addresses separated by commas.","jetpack")}},{key:"onChangeSubject",value:function(e){this.props.setAttributes({subject:e})}},{key:"getToValidationError",value:function(e){return 0!==(e=e.trim()).length&&(!C.a.validate(e)&&{email:e})}},{key:"onBlurTo",value:function(e){var t=e.target.value.split(",").map(this.getToValidationError).filter(Boolean);t&&t.length&&this.setState({toError:t})}},{key:"onChangeTo",value:function(e){if(0===e.trim().length)return this.setState({toError:null}),void this.props.setAttributes({to:e});this.setState({toError:null}),this.props.setAttributes({to:e})}},{key:"onChangeSubmit",value:function(e){this.props.setAttributes({submitButtonText:e})}},{key:"onFormSettingsSet",value:function(e){e.preventDefault(),this.state.toError||this.props.setAttributes({hasFormSettingsSet:"yes"})}},{key:"getfieldEmailError",value:function(e){if(e){if(1===e.length)return e[0]&&e[0].email?Object(c.sprintf)(Object(c.__)("%s is not a valid email address.","jetpack"),e[0].email):e[0];if(2===e.length)return Object(c.sprintf)(Object(c.__)("%s and %s are not a valid email address.","jetpack"),e[0].email,e[1].email);var t=e.map((function(e){return e.email}));return Object(c.sprintf)(Object(c.__)("%s are not a valid email address.","jetpack"),t.join(", "))}return null}},{key:"preventEnterSubmittion",value:function(e){"Enter"===e.key&&(e.preventDefault(),e.stopPropagation())}},{key:"renderToAndSubjectFields",value:function(){var e=this.state.toError,t=this.props,n=t.instanceId,r=t.attributes,a=r.subject,i=r.to;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(l.TextControl,{"aria-describedby":"contact-form-".concat(n,"-email-").concat(this.hasEmailError()?"error":"help"),label:Object(c.__)("Email address","jetpack"),placeholder:Object(c.__)("name@example.com","jetpack"),onKeyDown:this.preventEnterSubmittion,value:i,onBlur:this.onBlurTo,onChange:this.onChangeTo}),Object(o.createElement)(S.a,{isError:!0,id:"contact-form-".concat(n,"-email-error")},this.getfieldEmailError(e)),Object(o.createElement)(S.a,{id:"contact-form-".concat(n,"-email-help")},this.getEmailHelpMessage()),Object(o.createElement)(l.TextControl,{label:Object(c.__)("Email subject line","jetpack"),value:a,placeholder:Object(c.__)("Let's work together","jetpack"),onChange:this.onChangeSubject}))}},{key:"renderConfirmationMessageFields",value:function(){var e=this,t=this.props.instanceId,n=this.props.attributes,r=n.customThankyou,a=n.customThankyouMessage,i=n.customThankyouRedirect;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(l.SelectControl,{label:Object(c.__)("On Submission","jetpack"),value:r,options:[{label:Object(c.__)("Show a summary of submitted fields","jetpack"),value:""},{label:Object(c.__)("Show a custom text message","jetpack"),value:"message"},{label:Object(c.__)("Redirect to another webpage","jetpack"),value:"redirect"}],onChange:function(t){return e.props.setAttributes({customThankyou:t})}}),"message"===r&&Object(o.createElement)(l.TextareaControl,{label:Object(c.__)("Message Text","jetpack"),value:a,placeholder:Object(c.__)("Thank you for your submission!","jetpack"),onChange:function(t){return e.props.setAttributes({customThankyouMessage:t})}}),"redirect"===r&&Object(o.createElement)(l.BaseControl,{label:Object(c.__)("Redirect Address","jetpack"),id:"contact-form-".concat(t,"-thankyou-url")},Object(o.createElement)(u.URLInput,{id:"contact-form-".concat(t,"-thankyou-url"),value:i,className:"jetpack-contact-form__thankyou-redirect-url",onChange:function(t){return e.props.setAttributes({customThankyouRedirect:t})}})))}},{key:"hasEmailError",value:function(){var e=this.state.toError;return e&&e.length>0}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.attributes.hasFormSettingsSet,r=w()(t,"jetpack-contact-form",{"has-intro":!n});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(u.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(c.__)("Email Feedback Settings","jetpack")},this.renderToAndSubjectFields()),Object(o.createElement)(l.PanelBody,{title:Object(c.__)("Confirmation Message","jetpack")},this.renderConfirmationMessageFields())),Object(o.createElement)("div",{className:r},!n&&Object(o.createElement)(l.Placeholder,{label:Object(c.__)("Form","jetpack"),icon:Object(A.a)(Object(o.createElement)(l.Path,{d:"M13 7.5h5v2h-5zm0 7h5v2h-5zM19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM11 6H6v5h5V6zm-1 4H7V7h3v3zm1 3H6v5h5v-5zm-1 4H7v-3h3v3z"})),instructions:Object(c.__)("You’ll receive an email notification each time someone fills out the form. Where should it go, and what should the subject line be?","jetpack")},Object(o.createElement)("form",{onSubmit:this.onFormSettingsSet},this.renderToAndSubjectFields(),Object(o.createElement)("div",{class:"components-placeholder__instructions"},Object(c.__)("(If you leave these blank, notifications will go to the author with the post or page title as the subject line.)","jetpack")),Object(o.createElement)("div",{className:"jetpack-contact-form__create"},Object(o.createElement)(l.Button,{isDefault:!0,type:"submit",disabled:this.hasEmailError()},Object(c.__)("Add form","jetpack"))))),n&&Object(o.createElement)(u.InnerBlocks,{allowedBlocks:P,templateLock:!1,template:[["jetpack/field-name",{required:!0}],["jetpack/field-email",{required:!0}],["jetpack/field-url",{}],["jetpack/field-textarea",{}]]}),n&&Object(o.createElement)(F.a,this.props)))}}]),t}(o.Component),N=Object(x.compose)([x.withInstanceId])(T),M=function(e){var t=e.setAttributes,n=e.label,r=e.resetFocus,a=e.isSelected,i=e.required;return Object(o.createElement)("div",{className:"jetpack-field-label"},Object(o.createElement)(u.PlainText,{value:n,className:"jetpack-field-label__input",onChange:function(e){r&&r(),t({label:e})},placeholder:Object(c.__)("Write label…","jetpack")}),a&&Object(o.createElement)(l.ToggleControl,{label:Object(c.__)("Required","jetpack"),className:"jetpack-field-label__required",checked:i,onChange:function(e){return t({required:e})}}),!a&&i&&Object(o.createElement)("span",{className:"required"},Object(c.__)("(required)","jetpack")))};var R=function(e){var t=e.isSelected,n=e.type,r=e.required,a=e.label,i=e.setAttributes,s=e.defaultValue,p=e.placeholder,d=e.id;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:w()("jetpack-field",{"is-selected":t})},Object(o.createElement)(l.TextControl,{type:n,label:Object(o.createElement)(M,{required:r,label:a,setAttributes:i,isSelected:t}),placeholder:p,value:p,onChange:function(e){return i({placeholder:e})},title:Object(c.__)("Set the placeholder text","jetpack")})),Object(o.createElement)(u.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(c.__)("Field Settings","jetpack")},Object(o.createElement)(l.TextControl,{label:Object(c.__)("Default Value","jetpack"),value:s,onChange:function(e){return i({defaultValue:e})}}),Object(o.createElement)(l.TextControl,{label:Object(c.__)("ID","jetpack"),value:d,onChange:function(e){return i({id:e})}}))))};var D=function(e){var t=e.required,n=e.label,r=e.setAttributes,a=e.isSelected,i=e.defaultValue,s=e.placeholder,p=e.id;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"jetpack-field"},Object(o.createElement)(l.TextareaControl,{label:Object(o.createElement)(M,{required:t,label:n,setAttributes:r,isSelected:a}),placeholder:s,value:s,onChange:function(e){return r({placeholder:e})},title:Object(c.__)("Set the placeholder text","jetpack")})),Object(o.createElement)(u.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(c.__)("Field Settings","jetpack")},Object(o.createElement)(l.TextControl,{label:Object(c.__)("Default Value","jetpack"),value:i,onChange:function(e){return r({defaultValue:e})}}),Object(o.createElement)(l.TextControl,{label:Object(c.__)("ID","jetpack"),value:p,onChange:function(e){return r({id:e})}}))))},z=Object(x.withInstanceId)((function(e){var t=e.instanceId,n=e.required,r=e.label,a=e.setAttributes,i=e.isSelected,s=e.defaultValue,p=e.id;return Object(o.createElement)(l.BaseControl,{id:"jetpack-field-checkbox-".concat(t),className:"jetpack-field jetpack-field-checkbox",label:Object(o.createElement)(o.Fragment,null,Object(o.createElement)("input",{className:"jetpack-field-checkbox__checkbox",type:"checkbox",disabled:!0,checked:s}),Object(o.createElement)(M,{required:n,label:r,setAttributes:a,isSelected:i}),Object(o.createElement)(u.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(c.__)("Field Settings","jetpack")},Object(o.createElement)(l.ToggleControl,{label:Object(c.__)("Default Checked State","jetpack"),checked:s,onChange:function(e){return a({defaultValue:e})}}),Object(o.createElement)(l.TextControl,{label:Object(c.__)("ID","jetpack"),value:p,onChange:function(e){return a({id:e})}}))))})})),I=function(e){function t(){var e,n;d()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return(n=b()(this,(e=v()(t)).call.apply(e,[this].concat(a)))).onChangeOption=n.onChangeOption.bind(y()(n)),n.onKeyPress=n.onKeyPress.bind(y()(n)),n.onDeleteOption=n.onDeleteOption.bind(y()(n)),n.textInput=Object(o.createRef)(),n}return k()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.props.isInFocus&&this.textInput.current.focus()}},{key:"componentDidUpdate",value:function(){this.props.isInFocus&&this.textInput.current.focus()}},{key:"onChangeOption",value:function(e){this.props.onChangeOption(this.props.index,e.target.value)}},{key:"onKeyPress",value:function(e){return"Enter"===e.key?(this.props.onAddOption(this.props.index),void e.preventDefault()):"Backspace"===e.key&&""===e.target.value?(this.props.onChangeOption(this.props.index),void e.preventDefault()):void 0}},{key:"onDeleteOption",value:function(){this.props.onChangeOption(this.props.index)}},{key:"render",value:function(){var e=this.props,t=e.isSelected,n=e.option,r=e.type;return Object(o.createElement)("li",{className:"jetpack-option"},r&&"select"!==r&&Object(o.createElement)("input",{className:"jetpack-option__type",type:r,disabled:!0}),Object(o.createElement)("input",{type:"text",className:"jetpack-option__input",value:n,placeholder:Object(c.__)("Write option…","jetpack"),onChange:this.onChangeOption,onKeyDown:this.onKeyPress,ref:this.textInput}),t&&Object(o.createElement)(l.IconButton,{className:"jetpack-option__remove",icon:"trash",label:Object(c.__)("Remove option","jetpack"),onClick:this.onDeleteOption}))}}]),t}(o.Component),L=function(e){function t(){var e,n;d()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return(n=b()(this,(e=v()(t)).call.apply(e,[this].concat(a)))).onChangeOption=n.onChangeOption.bind(y()(n)),n.addNewOption=n.addNewOption.bind(y()(n)),n.state={inFocus:null},n}return k()(t,e),m()(t,[{key:"onChangeOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.props.options.slice(0);null===t?(n.splice(e,1),e>0&&this.setState({inFocus:e-1})):(n.splice(e,1,t),this.setState({inFocus:e})),this.props.setAttributes({options:n})}},{key:"addNewOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.props.options.slice(0),n=0;"object"==typeof e?(t.push(""),n=t.length-1):(t.splice(e+1,0,""),n=e+1),this.setState({inFocus:n}),this.props.setAttributes({options:t})}},{key:"render",value:function(){var e=this,t=this.props,n=t.type,r=t.instanceId,a=t.required,i=t.label,s=t.setAttributes,p=t.isSelected,d=t.id,h=this.props.options,m=this.state.inFocus;return h.length||(h=[""],m=0),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(l.BaseControl,{id:"jetpack-field-multiple-".concat(r),className:"jetpack-field jetpack-field-multiple",label:Object(o.createElement)(M,{required:a,label:i,setAttributes:s,isSelected:p,resetFocus:function(){return e.setState({inFocus:null})}})},Object(o.createElement)("ol",{className:"jetpack-field-multiple__list",id:"jetpack-field-multiple-".concat(r)},h.map((function(t,r){return Object(o.createElement)(I,{type:n,key:r,option:t,index:r,onChangeOption:e.onChangeOption,onAddOption:e.addNewOption,isInFocus:r===m&&p,isSelected:p})}))),p&&Object(o.createElement)(l.IconButton,{className:"jetpack-field-multiple__add-option",icon:"insert",label:Object(c.__)("Insert option","jetpack"),onClick:this.addNewOption},Object(c.__)("Add option","jetpack"))),Object(o.createElement)(u.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(c.__)("Field Settings","jetpack")},Object(o.createElement)(l.TextControl,{label:Object(c.__)("ID","jetpack"),value:d,onChange:function(e){return s({id:e})}}))))}}]),t}(o.Component),B=Object(x.withInstanceId)(L),q={title:Object(c.__)("Form","jetpack"),description:Object(c.__)("A simple way to get feedback from folks visiting your site.","jetpack"),icon:Object(A.a)(Object(o.createElement)(l.Path,{d:"M13 7.5h5v2h-5zm0 7h5v2h-5zM19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM11 6H6v5h5V6zm-1 4H7V7h3v3zm1 3H6v5h5v-5zm-1 4H7v-3h3v3z"})),keywords:[Object(c._x)("email","block search term","jetpack"),Object(c._x)("feedback","block search term","jetpack"),Object(c._x)("contact form","block search term","jetpack")],category:"jetpack",supports:{html:!1},attributes:{subject:{type:"string",default:""},to:{type:"string",default:""},submitButtonText:{type:"string",default:Object(c.__)("Submit","jetpack")},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},submitButtonClasses:{type:"string"},hasFormSettingsSet:{type:"string",default:null},customThankyou:{type:"string",default:""},customThankyouMessage:{type:"string",default:""},customThankyouRedirect:{type:"string",default:""},has_form_settings_set:{type:"string",default:null},submit_button_text:{type:"string",default:Object(c.__)("Submit","jetpack")}},edit:N,save:function(){return Object(o.createElement)(u.InnerBlocks.Content,null)},example:{attributes:{hasFormSettingsSet:!0,submitButtonText:Object(c.__)("Submit","jetpack")},innerBlocks:[{name:"jetpack/field-name",attributes:{label:Object(c.__)("Name","jetpack"),required:!0}},{name:"jetpack/field-email",attributes:{label:Object(c.__)("Email","jetpack"),required:!0}},{name:"jetpack/field-url",attributes:{label:Object(c.__)("Website","jetpack")}},{name:"jetpack/field-textarea",attributes:{label:Object(c.__)("Message","jetpack")}}]},deprecated:[{attributes:{subject:{type:"string",default:""},to:{type:"string",default:""},submit_button_text:{type:"string",default:Object(c.__)("Submit","jetpack")},has_form_settings_set:{type:"string",default:null}},migrate:function(e){return{submitButtonText:e.submit_button_text,hasFormSettingsSet:e.has_form_settings_set,to:e.to,subject:e.subject}},isEligible:function(e){return!!(e.has_form_settings_set||e.submit_button_text&&"Submit"!==e.submit_button_text)},save:function(){return Object(o.createElement)(u.InnerBlocks.Content,null)}}]},U={category:"jetpack",parent:["jetpack/contact-form"],supports:{reusable:!1,html:!1},attributes:{label:{type:"string",default:null},required:{type:"boolean",default:!1},options:{type:"array",default:[]},defaultValue:{type:"string",default:""},placeholder:{type:"string",default:""},id:{type:"string",default:""}},transforms:{to:[{type:"block",blocks:["jetpack/field-text"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-text",e)}},{type:"block",blocks:["jetpack/field-name"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-name",e)}},{type:"block",blocks:["jetpack/field-email"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-email",e)}},{type:"block",blocks:["jetpack/field-url"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-url",e)}},{type:"block",blocks:["jetpack/field-date"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-date",e)}},{type:"block",blocks:["jetpack/field-telephone"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-telephone",e)}},{type:"block",blocks:["jetpack/field-textarea"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-textarea",e)}},{type:"block",blocks:["jetpack/field-checkbox-multiple"],isMatch:function(e){return 1<=e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-checkbox-multiple",e)}},{type:"block",blocks:["jetpack/field-radio"],isMatch:function(e){return 1<=e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-radio",e)}},{type:"block",blocks:["jetpack/field-select"],isMatch:function(e){return 1<=e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-select",e)}}]},save:function(){return null}},V=function(e){var t=e.attributes,n=e.name;return null===t.label?Object(s.getBlockType)(n).title:t.label},H=function(e){return function(t){return Object(o.createElement)(R,{type:e,label:V(t),required:t.attributes.required,setAttributes:t.setAttributes,isSelected:t.isSelected,defaultValue:t.attributes.defaultValue,placeholder:t.attributes.placeholder,id:t.attributes.id})}},G=function(e){return function(t){return Object(o.createElement)(B,{label:V(t),required:t.attributes.required,options:t.attributes.options,setAttributes:t.setAttributes,type:e,isSelected:t.isSelected,id:t.attributes.id})}},$=[{name:"field-text",settings:i()({},U,{title:Object(c.__)("Text","jetpack"),description:Object(c.__)("When you need just a small amount of text, add a text input.","jetpack"),icon:Object(A.a)(Object(o.createElement)(l.Path,{d:"M4 9h16v2H4V9zm0 4h10v2H4v-2z"})),edit:H("text")})},{name:"field-name",settings:i()({},U,{title:Object(c.__)("Name","jetpack"),description:Object(c.__)("Introductions are important. Add an input for folks to add their name.","jetpack"),icon:Object(A.a)(Object(o.createElement)(l.Path,{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"})),edit:H("text")})},{name:"field-email",settings:i()({},U,{title:Object(c.__)("Email","jetpack"),keywords:[Object(c.__)("e-mail","jetpack"),Object(c.__)("mail","jetpack"),"email"],description:Object(c.__)("Want to reply to folks? Add an email address input.","jetpack"),icon:Object(A.a)(Object(o.createElement)(l.Path,{d:"M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"})),edit:H("email")})},{name:"field-url",settings:i()({},U,{title:Object(c.__)("Website","jetpack"),keywords:["url",Object(c.__)("internet page","jetpack"),"link"],description:Object(c.__)("Add an address input for a website.","jetpack"),icon:Object(A.a)(Object(o.createElement)(l.Path,{d:"M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"})),edit:H("url")})},{name:"field-date",settings:i()({},U,{title:Object(c.__)("Date Picker","jetpack"),keywords:[Object(c.__)("Calendar","jetpack"),Object(c.__)("day month year","block search term","jetpack")],description:Object(c.__)("The best way to set a date. Add a date picker.","jetpack"),icon:Object(A.a)(Object(o.createElement)(l.Path,{d:"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V9h14v10zm0-12H5V5h14v2zM7 11h5v5H7z"})),edit:H("text")})},{name:"field-telephone",settings:i()({},U,{title:Object(c.__)("Telephone","jetpack"),keywords:[Object(c.__)("Phone","jetpack"),Object(c.__)("Cellular phone","jetpack"),Object(c.__)("Mobile","jetpack")],description:Object(c.__)("Add a phone number input.","jetpack"),icon:Object(A.a)(Object(o.createElement)(l.Path,{d:"M6.54 5c.06.89.21 1.76.45 2.59l-1.2 1.2c-.41-1.2-.67-2.47-.76-3.79h1.51m9.86 12.02c.85.24 1.72.39 2.6.45v1.49c-1.32-.09-2.59-.35-3.8-.75l1.2-1.19M7.5 3H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.49c0-.55-.45-1-1-1-1.24 0-2.45-.2-3.57-.57-.1-.04-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.45-5.15-3.76-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1z"})),edit:H("tel")})},{name:"field-textarea",settings:i()({},U,{title:Object(c.__)("Message","jetpack"),keywords:[Object(c.__)("Textarea","jetpack"),"textarea",Object(c.__)("Multiline text","jetpack")],description:Object(c.__)("Let folks speak their mind. This text box is great for longer responses.","jetpack"),icon:Object(A.a)(Object(o.createElement)(l.Path,{d:"M21 11.01L3 11v2h18zM3 16h12v2H3zM21 6H3v2.01L21 8z"})),edit:function(e){return Object(o.createElement)(D,{label:V(e),required:e.attributes.required,setAttributes:e.setAttributes,isSelected:e.isSelected,defaultValue:e.attributes.defaultValue,placeholder:e.attributes.placeholder,id:e.attributes.id})}})},{name:"field-checkbox",settings:i()({},U,{title:Object(c.__)("Checkbox","jetpack"),keywords:[Object(c.__)("Confirm","jetpack"),Object(c.__)("Accept","jetpack")],description:Object(c.__)("Add a single checkbox.","jetpack"),icon:Object(A.a)(Object(o.createElement)(l.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM17.99 9l-1.41-1.42-6.59 6.59-2.58-2.57-1.42 1.41 4 3.99z"})),edit:function(e){return Object(o.createElement)(z,{label:e.attributes.label,required:e.attributes.required,setAttributes:e.setAttributes,isSelected:e.isSelected,defaultValue:e.attributes.defaultValue,id:e.attributes.id})},attributes:i()({},U.attributes,{label:{type:"string",default:""}})})},{name:"field-checkbox-multiple",settings:i()({},U,{title:Object(c.__)("Checkbox Group","jetpack"),keywords:[Object(c.__)("Choose Multiple","jetpack"),Object(c.__)("Option","jetpack")],description:Object(c.__)("People love options. Add several checkbox items.","jetpack"),icon:Object(A.a)(Object(o.createElement)(l.Path,{d:"M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"})),edit:G("checkbox"),attributes:i()({},U.attributes,{label:{type:"string",default:"Choose several"}})})},{name:"field-radio",settings:i()({},U,{title:Object(c.__)("Radio","jetpack"),keywords:[Object(c.__)("Choose","jetpack"),Object(c.__)("Select","jetpack"),Object(c.__)("Option","jetpack")],description:Object(c.__)("Inspired by radios, only one radio item can be selected at a time. Add several radio button items.","jetpack"),icon:Object(A.a)(Object(o.createElement)(o.Fragment,null,Object(o.createElement)(l.Path,{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),Object(o.createElement)(l.Circle,{cx:"12",cy:"12",r:"5"}))),edit:G("radio"),attributes:i()({},U.attributes,{label:{type:"string",default:"Choose one"}})})},{name:"field-select",settings:i()({},U,{title:Object(c.__)("Select","jetpack"),keywords:[Object(c.__)("Choose","jetpack"),Object(c.__)("Dropdown","jetpack"),Object(c.__)("Option","jetpack")],description:Object(c.__)("Compact, but powerful. Add a select box with several items.","jetpack"),icon:Object(A.a)(Object(o.createElement)(l.Path,{d:"M3 17h18v2H3zm16-5v1H5v-1h14m2-2H3v5h18v-5zM3 6h18v2H3z"})),edit:G("select"),attributes:i()({},U.attributes,{label:{type:"string",default:"Select one"}})})}];Object(r.a)("contact-form",q,$)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(2),c=["USD","EUR","AUD","BRL","CAD","CZK","DKK","HKD","HUF","ILS","JPY","MYR","MXN","TWD","NZD","NOK","PHP","PLN","GBP","RUB","SGD","SEK","CHF","THB"],s=n(24),l=n(7),u=n.n(l),p=n(11),d=n.n(p),h=n(8),m=n.n(h),f=n(9),b=n.n(f),g=n(4),v=n.n(g),j=n(10),y=n.n(j),_=n(3),k=n.n(_),O=n(12),w=n.n(O),E=n(43),C=n.n(E),x=n(14),S=n(13),A=n(5),F=n(45),P=n(41),T=(n(230),n(106)),N=n.n(T),M=n(107),R=n.n(M),D=function(e){var t=e.title,n=void 0===t?"":t,r=e.content,o=void 0===r?"":r,c=e.formattedPrice,s=void 0===c?"":c,l=e.multiple,u=void 0!==l&&l,p=e.featuredMediaUrl,d=void 0===p?null:p,h=e.featuredMediaTitle,m=void 0===h?null:h;return Object(a.createElement)("div",{className:"jetpack-simple-payments-wrapper"},Object(a.createElement)("div",{className:"jetpack-simple-payments-product"},d&&Object(a.createElement)("div",{className:"jetpack-simple-payments-product-image"},Object(a.createElement)("figure",{className:"jetpack-simple-payments-image"},Object(a.createElement)("img",{src:d,alt:m}))),Object(a.createElement)("div",{className:"jetpack-simple-payments-details"},n&&Object(a.createElement)("div",{className:"jetpack-simple-payments-title"},Object(a.createElement)("p",null,n)),o&&Object(a.createElement)("div",{className:"jetpack-simple-payments-description"},Object(a.createElement)("p",null,o)),s&&Object(a.createElement)("div",{className:"jetpack-simple-payments-price"},Object(a.createElement)("p",null,s)),Object(a.createElement)("div",{className:"jetpack-simple-payments-purchase-box"},u&&Object(a.createElement)("div",{className:"jetpack-simple-payments-items"},Object(a.createElement)("input",{className:"jetpack-simple-payments-items-number",readOnly:!0,type:"number",value:"1"})),Object(a.createElement)("div",{className:"jetpack-simple-payments-button"},Object(a.createElement)("img",{alt:Object(i.__)("Pay with PayPal","jetpack"),src:N.a,srcSet:"".concat(R.a," 2x")}))))))},z=n(6),I=n(48),L=function(e){return function(t){return e({featuredMediaId:Object(A.get)(t,"id",0),featuredMediaUrl:Object(A.get)(t,"url",null),featuredMediaTitle:Object(A.get)(t,"title",null)})}},B=function(e){var t=e.featuredMediaId,n=e.featuredMediaUrl,r=e.featuredMediaTitle,c=e.setAttributes;return t?Object(a.createElement)("div",null,Object(a.createElement)(a.Fragment,null,Object(a.createElement)(z.BlockControls,null,Object(a.createElement)(o.Toolbar,null,Object(a.createElement)(z.MediaUpload,{onSelect:L(c),allowedTypes:["image"],value:t,render:function(e){var t=e.open;return Object(a.createElement)(I.a,{label:Object(i.__)("Edit Image","jetpack"),onClick:t})}}),Object(a.createElement)(o.ToolbarButton,{icon:"trash",title:Object(i.__)("Remove Image","jetpack"),onClick:function(){return c({featuredMediaId:null,featuredMediaUrl:null,featuredMediaTitle:null})}}))),Object(a.createElement)("figure",null,Object(a.createElement)("img",{src:n,alt:r})))):Object(a.createElement)(z.MediaPlaceholder,{icon:"format-image",labels:{title:Object(i.__)("Product Image","jetpack")},accept:"image/*",allowedTypes:["image"],onSelect:L(c)})},q=function(e){var t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},U=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Object(F.a)(t),a=r.precision,i=r.symbol,o=e.toFixed(a);return n?"".concat(o," ").concat(Object(A.trimEnd)(i,".")):o},V=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=m()(this,(e=b()(t)).call.apply(e,[this].concat(a))),k()(v()(n),"state",{fieldEmailError:null,fieldPriceError:null,fieldTitleError:null,isSavingProduct:!1}),k()(v()(n),"shouldInjectPaymentAttributes",!!n.props.attributes.productId),k()(v()(n),"validateAttributes",(function(){var e=n.validatePrice(),t=n.validateTitle(),r=n.validateEmail(),a=n.validateCurrency();return e&&t&&r&&a})),k()(v()(n),"validateCurrency",(function(){var e=n.props.attributes.currency;return c.includes(e)})),k()(v()(n),"validatePrice",(function(){var e=n.props.attributes,t=e.currency,r=e.price,a=Object(F.a)(t).precision;return r&&0!==parseFloat(r)?Number.isNaN(parseFloat(r))?(n.setState({fieldPriceError:Object(i.__)("Invalid price","jetpack")}),!1):parseFloat(r)<0?(n.setState({fieldPriceError:Object(i.__)("Your price is negative — enter a positive number so people can pay the right amount.","jetpack")}),!1):q(r)>a?0===a?(n.setState({fieldPriceError:Object(i.__)("We know every penny counts, but prices in this currency can’t contain decimal values.","jetpack")}),!1):(n.setState({fieldPriceError:Object(i.sprintf)(Object(i._n)("The price cannot have more than %d decimal place.","The price cannot have more than %d decimal places.",a,"jetpack"),a)}),!1):(n.state.fieldPriceError&&n.setState({fieldPriceError:null}),!0):(n.setState({fieldPriceError:Object(i.__)("If you’re selling something, you need a price tag. Add yours here.","jetpack")}),!1)})),k()(v()(n),"validateEmail",(function(){var e=n.props.attributes.email;return e?C.a.validate(e)?(n.state.fieldEmailError&&n.setState({fieldEmailError:null}),!0):(n.setState({fieldEmailError:Object(i.sprintf)(Object(i.__)("%s is not a valid email address.","jetpack"),e)}),!1):(n.setState({fieldEmailError:Object(i.__)("We want to make sure payments reach you, so please add an email address.","jetpack")}),!1)})),k()(v()(n),"validateTitle",(function(){return n.props.attributes.title?(n.state.fieldTitleError&&n.setState({fieldTitleError:null}),!0):(n.setState({fieldTitleError:Object(i.__)("Please add a brief title so that people know what they’re paying for.","jetpack")}),!1)})),k()(v()(n),"handleEmailChange",(function(e){n.props.setAttributes({email:e}),n.setState({fieldEmailError:null})})),k()(v()(n),"handleFeaturedMediaSelect",(function(e){n.props.setAttributes({featuredMediaId:Object(A.get)(e,"id",0)})})),k()(v()(n),"handleContentChange",(function(e){n.props.setAttributes({content:e})})),k()(v()(n),"handlePriceChange",(function(e){e=parseFloat(e),isNaN(e)?n.props.setAttributes({price:void 0}):n.props.setAttributes({price:e}),n.setState({fieldPriceError:null})})),k()(v()(n),"handleCurrencyChange",(function(e){n.props.setAttributes({currency:e})})),k()(v()(n),"handleMultipleChange",(function(e){n.props.setAttributes({multiple:!!e})})),k()(v()(n),"handleTitleChange",(function(e){n.props.setAttributes({title:e}),n.setState({fieldTitleError:null})})),k()(v()(n),"getCurrencyList",c.map((function(e){var t=Object(F.a)(e).symbol;return{value:e,label:t===e?e:"".concat(e," ").concat(Object(A.trimEnd)(t,"."))}}))),n}return y()(t,e),d()(t,[{key:"componentDidMount",value:function(){this.injectPaymentAttributes();var e=this.props,t=e.attributes,n=e.hasPublishAction;!t.productId&&n&&this.saveProduct()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.hasPublishAction,r=t.isSelected;Object(A.isEqual)(e.simplePayment,this.props.simplePayment)||this.injectPaymentAttributes(),!e.isSaving&&this.props.isSaving&&n&&this.validateAttributes()?this.saveProduct():e.isSelected&&!r&&this.validateAttributes()}},{key:"injectPaymentAttributes",value:function(){var e=this.props.simplePayment;if(this.shouldInjectPaymentAttributes&&!Object(A.isEmpty)(e)){var t=this.props,n=t.attributes,r=t.setAttributes,a=n.content,i=n.currency,o=n.email,c=n.featuredMediaId,s=n.multiple,l=n.price,u=n.title;r({content:Object(A.get)(e,["content","raw"],a),currency:Object(A.get)(e,["meta","spay_currency"],i),email:Object(A.get)(e,["meta","spay_email"],o),featuredMediaId:Object(A.get)(e,["featured_media"],c),multiple:Boolean(Object(A.get)(e,["meta","spay_multiple"],Boolean(s))),price:Object(A.get)(e,["meta","spay_price"],l||void 0),title:Object(A.get)(e,["title","raw"],u)}),this.shouldInjectPaymentAttributes=!this.shouldInjectPaymentAttributes}}},{key:"toApi",value:function(){var e=this.props.attributes,t=e.content,n=e.currency,r=e.email,a=e.featuredMediaId,i=e.multiple,o=e.price,c=e.productId;return{id:c,content:t,featured_media:a,meta:{spay_currency:n,spay_email:r,spay_multiple:i,spay_price:o},status:c?"publish":"draft",title:e.title}}},{key:"saveProduct",value:function(){var e=this;if(!this.state.isSavingProduct){var t=this.props,n=t.attributes,r=t.setAttributes,a=n.email,o=Object(S.dispatch)("core").saveEntityRecord;this.setState({isSavingProduct:!0},(function(){o("postType","jp_pay_product",e.toApi()).then((function(e){return e&&r({productId:e.id}),e})).catch((function(t){if(t&&t.data){var n=t.data.key;e.setState({fieldEmailError:"spay_email"===n?Object(i.sprintf)(Object(i.__)("%s is not a valid email address.","jetpack"),a):null,fieldPriceError:"spay_price"===n?Object(i.__)("Invalid price.","jetpack"):null})}})).finally((function(){e.setState({isSavingProduct:!1})}))}))}}},{key:"render",value:function(){var e=this.state,t=e.fieldEmailError,n=e.fieldPriceError,r=e.fieldTitleError,c=this.props,s=c.attributes,l=c.featuredMedia,u=c.instanceId,p=c.isSelected,d=c.setAttributes,h=c.simplePayment,m=s.content,f=s.currency,b=s.email,g=s.featuredMediaId,v=s.featuredMediaUrl,j=s.featuredMediaTitle,y=s.multiple,_=s.price,k=s.productId,O=s.title,E=v||l&&l.source_url,C=j||l&&l.alt_text,x=k&&Object(A.isEmpty)(h);if(!p&&x)return Object(a.createElement)("div",{className:"simple-payments__loading"},Object(a.createElement)(D,{"aria-busy":"true",content:"█████",formattedPrice:"█████",title:"█████"}));if(!p&&b&&_&&O&&!t&&!n&&!r)return Object(a.createElement)(D,{"aria-busy":"false",content:m,featuredMediaUrl:E,featuredMediaTitle:C,formattedPrice:U(_,f),multiple:y,title:O});var S=x?o.Disabled:"div";return Object(a.createElement)(S,{className:"wp-block-jetpack-simple-payments"},Object(a.createElement)(B,{featuredMediaId:g,featuredMediaUrl:E,featuredMediaTitle:C,setAttributes:d}),Object(a.createElement)("div",null,Object(a.createElement)(o.TextControl,{"aria-describedby":"".concat(u,"-title-error"),className:w()("simple-payments__field","simple-payments__field-title",{"simple-payments__field-has-error":r}),label:Object(i.__)("Item name","jetpack"),onChange:this.handleTitleChange,placeholder:Object(i.__)("Item name","jetpack"),required:!0,type:"text",value:O}),Object(a.createElement)(P.a,{id:"".concat(u,"-title-error"),isError:!0},r),Object(a.createElement)(o.TextareaControl,{className:"simple-payments__field simple-payments__field-content",label:Object(i.__)("Describe your item in a few words","jetpack"),onChange:this.handleContentChange,placeholder:Object(i.__)("Describe your item in a few words","jetpack"),value:m}),Object(a.createElement)("div",{className:"simple-payments__price-container"},Object(a.createElement)(o.SelectControl,{className:"simple-payments__field simple-payments__field-currency",label:Object(i.__)("Currency","jetpack"),onChange:this.handleCurrencyChange,options:this.getCurrencyList,value:f}),Object(a.createElement)(o.TextControl,{"aria-describedby":"".concat(u,"-price-error"),className:w()("simple-payments__field","simple-payments__field-price",{"simple-payments__field-has-error":n}),label:Object(i.__)("Price","jetpack"),onChange:this.handlePriceChange,placeholder:U(0,f,!1),required:!0,step:"1",type:"number",value:_||""}),Object(a.createElement)(P.a,{id:"".concat(u,"-price-error"),isError:!0},n)),Object(a.createElement)("div",{className:"simple-payments__field-multiple"},Object(a.createElement)(o.ToggleControl,{checked:Boolean(y),label:Object(i.__)("Allow people to buy more than one item at a time","jetpack"),onChange:this.handleMultipleChange})),Object(a.createElement)(o.TextControl,{"aria-describedby":"".concat(u,"-email-").concat(t?"error":"help"),className:w()("simple-payments__field","simple-payments__field-email",{"simple-payments__field-has-error":t}),label:Object(i.__)("Email","jetpack"),onChange:this.handleEmailChange,placeholder:Object(i.__)("Email","jetpack"),required:!0,type:"email",value:b}),Object(a.createElement)(P.a,{id:"".concat(u,"-email-error"),isError:!0},t),Object(a.createElement)(P.a,{id:"".concat(u,"-email-help")},Object(i.__)("Enter the email address associated with your PayPal account. Don’t have an account?","jetpack")+" ",Object(a.createElement)(o.ExternalLink,{href:"https://www.paypal.com/"},Object(i.__)("Create one on PayPal","jetpack")))))}}]),t}(a.Component),H=Object(S.withSelect)((function(e,t){var n=e("core"),r=n.getEntityRecord,a=n.getMedia,i=e("core/editor"),o=i.isSavingPost,c=i.getCurrentPost,s=t.attributes,l=s.productId,u=s.featuredMediaId,p=l?Object(A.pick)(r("postType","jp_pay_product",l),[["content"],["meta","spay_currency"],["meta","spay_email"],["meta","spay_multiple"],["meta","spay_price"],["title","raw"],["featured_media"]]):void 0;return{hasPublishAction:!!Object(A.get)(c(),["_links","wp:action-publish"]),isSaving:!!o(),simplePayment:p,featuredMedia:u?a(u):null}})),G=Object(x.compose)(H,x.withInstanceId)(V);var $=n(108),W=n.n($),K=(n(231),Object(s.b)()||Object(s.a)()?"https://support.wordpress.com/simple-payments/":"https://jetpack.com/support/jetpack-blocks/simple-payments-block/"),Z={title:Object(i.__)("Simple Payments button","jetpack"),description:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("p",null,Object(i.__)("Lets you add credit and debit card payment buttons with minimal setup.","jetpack")),Object(a.createElement)("p",null,Object(i.__)("Good for collecting donations or payments for products and services.","jetpack")),Object(a.createElement)(o.ExternalLink,{href:K},Object(i.__)("Support reference","jetpack"))),icon:Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(o.Path,{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"})),category:"jetpack",keywords:[Object(i._x)("shop","block search term","jetpack"),Object(i._x)("sell","block search term","jetpack"),"PayPal"],attributes:{currency:{type:"string",default:"USD"},content:{type:"string",default:""},email:{type:"string",default:""},featuredMediaId:{type:"number",default:0},featuredMediaUrl:{type:"string",default:null},featuredMediaTitle:{type:"string",default:null},multiple:{type:"boolean",default:!1},price:{type:"number"},productId:{type:"number"},title:{type:"string",default:""}},transforms:{from:[{type:"shortcode",tag:"simple-payment",attributes:{productId:{type:"number",shortcode:function(e){var t=e.named.id;if(t){var n=parseInt(t,10);return n||void 0}}}}}]},edit:G,save:function(e){var t=e.attributes.productId;return t?Object(a.createElement)(a.RawHTML,null,'[simple-payment id="'.concat(t,'"]')):null},example:{attributes:{price:25,title:Object(i.__)("Jetpack t-shirt","jetpack"),content:Object(i.__)("Take flight in ultimate comfort with ths stylish t-shirt featuring the Jetpack logo.","jetpack"),email:"jetpack@jetpack.com",featuredMediaUrl:W.a}},supports:{className:!1,customClassName:!1,html:!1,reusable:!1}};Object(r.a)("simple-payments",Z)},function(e,t,n){"use strict";n.r(t);var r=n(21),a=n.n(r),i=n(18),o=n.n(i),c=n(15),s=n.n(c),l=n(25),u=n(16),p=n(6),d=n(55),h=n(5),m=n(7),f=n.n(m),b=n(11),g=n.n(b),v=n(8),j=n.n(v),y=n(9),_=n.n(y),k=n(4),O=n.n(k),w=n(10),E=n.n(w),C=n(3),x=n.n(C),S=n(0),A=n(23),F=n.n(A),P=n(2),T=n(14),N=n(13),M=n(1),R=n(12),D=n.n(R),z=function(e){var t=e.text;return Object(S.createElement)("div",{className:"wp-block-embed is-loading"},Object(S.createElement)(P.Spinner,null),Object(S.createElement)("p",null,t))},I=n(30),L=function(e,t){var n=t.autoplay,r=t.controls,a=t.loop,i=t.muted,o=t.poster,c=t.preload;if(!e)return null;var l=s()({},n&&{autoPlay:!0},{},!r&&{controls:!1},{},a&&{loop:!0},{},i&&{muted:!0,persistVolume:!1},{},o&&{posterUrl:o},{},"none"!==c&&{preloadContent:c});return Object(I.addQueryArgs)("https://videopress.com/v/".concat(e),l)},B=["image"],q=Object(T.createHigherOrderComponent)(Object(T.compose)([Object(N.withSelect)((function(e,t){var n=t.attributes,r=n.autoplay,a=n.controls,i=n.guid,o=n.loop,c=n.muted,s=n.poster,u=n.preload,p=n.src,d=e("core"),h=d.getEmbedPreview,m=d.isRequestingEmbedPreview,f=L(i,{autoplay:r,controls:a,loop:o,muted:c,poster:s,preload:u}),b=!!f&&h(f);return{isFetchingPreview:!!f&&m(f),isUploading:Object(l.isBlobURL)(p),preview:b,url:f}})),Object(N.withDispatch)((function(e){return{invalidateCachedEmbedPreview:function(t){e("core/data").invalidateResolution("core","getEmbedPreview",[t])}}})),T.withInstanceId,function(e){return function(t){function n(){var e;return f()(this,n),e=j()(this,_()(n).apply(this,arguments)),x()(O()(e),"fallbackToCore",(function(){e.props.setAttributes({guid:void 0}),e.setState({fallback:!0})})),x()(O()(e),"setGuid",(function(){var t,n,r,a,i,o,c;return regeneratorRuntime.async((function(s){for(;;)switch(s.prev=s.next){case 0:if(t=e.props,n=t.attributes,r=t.setAttributes,a=n.id){s.next=5;break}return r({guid:void 0}),s.abrupt("return");case 5:return s.prev=5,e.setState({isFetchingMedia:!0}),s.next=9,regeneratorRuntime.awrap(F()({path:"/wp/v2/media/".concat(a)}));case 9:if(i=s.sent,e.setState({isFetchingMedia:!1}),o=e.props.attributes.id,a===o){s.next=14;break}return s.abrupt("return");case 14:e.setState({media:i}),(c=Object(h.get)(i,"jetpack_videopress_guid"))?r({guid:c}):e.fallbackToCore(),s.next=23;break;case 19:s.prev=19,s.t0=s.catch(5),e.setState({isFetchingMedia:!1}),e.fallbackToCore();case 23:case"end":return s.stop()}}),null,null,[[5,19]])})),x()(O()(e),"switchToEditing",(function(){e.props.setAttributes({id:void 0,guid:void 0,src:void 0})})),x()(O()(e),"onSelectPoster",(function(t){(0,e.props.setAttributes)({poster:t.url})})),x()(O()(e),"onRemovePoster",(function(){(0,e.props.setAttributes)({poster:""}),e.posterImageButton.current.focus()})),x()(O()(e),"toggleAttribute",(function(t){return function(n){e.props.setAttributes(x()({},t,n))}})),x()(O()(e),"getAutoplayHelp",(function(e){return e?Object(M.__)("Note: Autoplaying videos may cause usability issues for some visitors.","jetpack"):null})),e.state={media:null,isFetchingMedia:!1,fallback:!1},e.posterImageButton=Object(S.createRef)(),e}return E()(n,t),g()(n,[{key:"componentDidMount",value:function(){this.props.attributes.guid||this.setGuid()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.attributes,r=t.invalidateCachedEmbedPreview,a=t.url;n.id!==e.attributes.id&&this.setGuid(),a&&a!==e.url&&r(a)}},{key:"render",value:function(){var t=this,n=this.props,r=n.attributes,a=n.className,i=n.instanceId,o=n.isFetchingPreview,c=n.isSelected,s=n.isUploading,l=n.preview,u=n.setAttributes,d=this.state,h=d.fallback,m=d.isFetchingMedia,f=r.autoplay,b=r.caption,g=r.controls,v=r.loop,j=r.muted,y=r.poster,_=r.preload,k="video-block__poster-image-description-".concat(i),O=Object(S.createElement)(S.Fragment,null,Object(S.createElement)(p.BlockControls,null,Object(S.createElement)(P.Toolbar,null,Object(S.createElement)(P.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(M.__)("Edit video","jetpack"),onClick:this.switchToEditing,icon:"edit"}))),Object(S.createElement)(p.InspectorControls,null,Object(S.createElement)(P.PanelBody,{title:Object(M.__)("Video Settings","jetpack")},Object(S.createElement)(P.ToggleControl,{label:Object(M.__)("Autoplay","jetpack"),onChange:this.toggleAttribute("autoplay"),checked:f,help:this.getAutoplayHelp}),Object(S.createElement)(P.ToggleControl,{label:Object(M.__)("Loop","jetpack"),onChange:this.toggleAttribute("loop"),checked:v}),Object(S.createElement)(P.ToggleControl,{label:Object(M.__)("Muted","jetpack"),onChange:this.toggleAttribute("muted"),checked:j}),Object(S.createElement)(P.ToggleControl,{label:Object(M.__)("Playback Controls","jetpack"),onChange:this.toggleAttribute("controls"),checked:g}),Object(S.createElement)(P.SelectControl,{label:Object(M.__)("Preload","jetpack"),value:_,onChange:function(e){return u({preload:e})},options:[{value:"auto",label:Object(M._x)("Auto","VideoPress preload setting","jetpack")},{value:"metadata",label:Object(M._x)("Metadata","VideoPress preload setting","jetpack")},{value:"none",label:Object(M._x)("None","VideoPress preload setting","jetpack")}]}),Object(S.createElement)(p.MediaUploadCheck,null,Object(S.createElement)(P.BaseControl,{className:"editor-video-poster-control",label:Object(M.__)("Poster Image","jetpack")},Object(S.createElement)(p.MediaUpload,{title:Object(M.__)("Select Poster Image","jetpack"),onSelect:this.onSelectPoster,allowedTypes:B,render:function(e){var n=e.open;return Object(S.createElement)(P.Button,{isDefault:!0,onClick:n,ref:t.posterImageButton,"aria-describedby":k},y?Object(M.__)("Replace image","jetpack"):Object(M.__)("Select Poster Image","jetpack"))}}),Object(S.createElement)("p",{id:k,hidden:!0},y?Object(M.sprintf)(Object(M.__)("The current poster image url is %s","jetpack"),y):Object(M.__)("There is no poster image currently selected","jetpack")),!!y&&Object(S.createElement)(P.Button,{onClick:this.onRemovePoster,isLink:!0,isDestructive:!0},Object(M.__)("Remove Poster Image")))))));if(s)return Object(S.createElement)(S.Fragment,null,O,Object(S.createElement)(z,{text:Object(M.__)("Uploading…","jetpack")}));if(m||o)return Object(S.createElement)(S.Fragment,null,O,Object(S.createElement)(z,{text:Object(M.__)("Generating preview…","jetpack")}));if(h||!l)return Object(S.createElement)(e,this.props);var w=l.html,E=l.scripts;return Object(S.createElement)(S.Fragment,null,O,Object(S.createElement)("figure",{className:D()(a,"wp-block-embed","is-type-video")},Object(S.createElement)(P.Disabled,null,Object(S.createElement)("div",{className:"wp-block-embed__wrapper"},Object(S.createElement)(P.SandBox,{html:w,scripts:E}))),(!p.RichText.isEmpty(b)||c)&&Object(S.createElement)(p.RichText,{tagName:"figcaption",placeholder:Object(M.__)("Write caption…","jetpack"),value:b,onChange:function(e){return u({caption:e})},inlineToolbar:!0})))}}]),n}(S.Component)}]),"withVideoPressEdit"),U=Object(T.createHigherOrderComponent)((function(e){return function(t){var n=t.attributes,r=(n=void 0===n?{}:n).autoplay,a=n.caption,i=n.controls,o=n.guid,c=n.loop,s=n.muted,l=n.poster,u=n.preload;if(!o)return e(t);var d=L(o,{autoplay:r,controls:i,loop:c,muted:s,poster:l,preload:u});return Object(S.createElement)("figure",{className:"wp-block-embed is-type-video is-provider-videopress"},Object(S.createElement)("div",{className:"wp-block-embed__wrapper"},"\n".concat(d,"\n")),!p.RichText.isEmpty(a)&&Object(S.createElement)(p.RichText.Content,{tagName:"figcaption",value:a}))}}),"withVideoPressSave"),V=n(40);var H={attributes:{autoplay:{type:"boolean"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",default:!0},guid:{type:"string"},id:{type:"number"},loop:{type:"boolean"},muted:{type:"boolean"},poster:{type:"string"},preload:{type:"string",default:"metadata"},src:{type:"string"}},support:{reusable:!1},save:function(e){var t=e.attributes,n=t.caption,r=t.guid;if(!r)return null;var a="https://videopress.com/v/".concat(r);return Object(S.createElement)("figure",{className:"wp-block-embed is-type-video is-provider-videopress"},Object(S.createElement)("div",{className:"wp-block-embed__wrapper"},"\n".concat(a,"\n")),!p.RichText.isEmpty(n)&&Object(S.createElement)(p.RichText.Content,{tagName:"figcaption",value:n}))},isDeprecation:!0};Object(d.addFilter)("blocks.registerBlockType","jetpack/videopress",(function(e,t){if("core/video"!==t||e.isDeprecation)return e;var n=e.attributes,r=e.deprecated,i=e.edit,c=e.save,d=e.supports,m=e.transforms,f=Object(V.a)("videopress"),b=f.available,g=f.unavailableReason;return b||["missing_plan","missing_module"].includes(g)?s()({},e,{attributes:{autoplay:{type:"boolean"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",default:!0},guid:{type:"string"},id:{type:"number"},loop:{type:"boolean"},muted:{type:"boolean"},playsInline:{type:"boolean"},poster:{type:"string"},preload:{type:"string",default:"metadata"},src:{type:"string"}},transforms:s()({},m,{from:[{type:"files",isMatch:function(e){return Object(h.every)(e,(function(e){return 0===e.type.indexOf("video/")}))},priority:9,transform:function(e,t){var n=[];return e.forEach((function(e){var r=Object(u.createBlock)("core/video",{src:Object(l.createBlobURL)(e)});Object(p.mediaUpload)({filesList:[e],onFileChange:function(e){var n=o()(e,1)[0],a=n.id,i=n.url;t(r.clientId,{id:a,src:i})},allowedTypes:["video"]}),n.push(r)})),n}}]}),supports:s()({},d,{reusable:!1}),edit:q(i),save:U(c),deprecated:[].concat(a()(r||[]),[{attributes:n,isEligible:function(e){return!e.guid},save:c,supports:d,isDeprecation:!0},H])}):e}))},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(2),c=n(15),s=n.n(c),l=n(21),u=n.n(l),p=n(7),d=n.n(p),h=n(11),m=n.n(h),f=n(8),b=n.n(f),g=n(9),v=n.n(g),j=n(4),y=n.n(j),_=n(10),k=n.n(_),O=n(3),w=n.n(O),E=n(14),C=n(5),x=n(25),S=n(13),A=n(6),F=n(48),P=function(e){var t=e.allowedMediaTypes,n=e.attributes,r=n.autoplay,c=n.delay,s=n.effect,l=n.images,u=n.sizeSlug,p=e.imageSizeOptions,d=e.onChangeImageSize,h=e.onSelectImages,m=e.setAttributes,f="undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,b=[{label:Object(i._x)("Slide","Slideshow transition effect","jetpack"),value:"slide"},{label:Object(i._x)("Fade","Slideshow transition effect","jetpack"),value:"fade"}];return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(A.InspectorControls,null,Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Autoplay","jetpack")},Object(a.createElement)(o.ToggleControl,{label:Object(i.__)("Autoplay","jetpack"),help:Object(i.__)("Autoplay between slides","jetpack"),checked:r,onChange:function(e){m({autoplay:e})}}),r&&Object(a.createElement)(o.RangeControl,{label:Object(i.__)("Delay between transitions (in seconds)","jetpack"),value:c,onChange:function(e){m({delay:e})},min:1,max:5}),r&&f&&Object(a.createElement)("span",null,Object(i.__)("The Reduce Motion accessibility option is selected, therefore autoplay will be disabled in this browser.","jetpack"))),Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Effects","jetpack")},Object(a.createElement)(o.SelectControl,{label:Object(i.__)("Transition effect","jetpack"),value:s,onChange:function(e){m({effect:e})},options:b})),!Object(C.isEmpty)(l)&&!Object(C.isEmpty)(p)&&Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Image Settings","jetpack")},Object(a.createElement)(o.SelectControl,{label:Object(i.__)("Image Size","jetpack"),value:u,options:p,onChange:d}))),Object(a.createElement)(A.BlockControls,null,!!l.length&&Object(a.createElement)(o.Toolbar,null,Object(a.createElement)(A.MediaUpload,{onSelect:h,allowedTypes:t,multiple:!0,gallery:!0,value:l.map((function(e){return e.id})),render:function(e){var t=e.open;return Object(a.createElement)(F.a,{label:Object(i.__)("Edit Slideshow","jetpack"),onClick:t})}}))))},T=n(12),N=n.n(T),M=n(38),R=n(73),D=n(37),z=function(e){function t(e){var n;return d()(this,t),n=b()(this,v()(t).call(this,e)),w()(y()(n),"pendingRequestAnimationFrame",null),w()(y()(n),"resizeObserver",null),w()(y()(n),"initializeResizeObserver",(function(e){n.clearResizeObserver(),n.resizeObserver=new M.a((function(){n.clearPendingRequestAnimationFrame(),n.pendingRequestAnimationFrame=requestAnimationFrame((function(){Object(D.d)(e),e.update()}))})),n.resizeObserver.observe(e.el)})),w()(y()(n),"clearPendingRequestAnimationFrame",(function(){n.pendingRequestAnimationFrame&&(cancelAnimationFrame(n.pendingRequestAnimationFrame),n.pendingRequestAnimationFrame=null)})),w()(y()(n),"clearResizeObserver",(function(){n.resizeObserver&&(n.resizeObserver.disconnect(),n.resizeObserver=null)})),w()(y()(n),"prefersReducedMotion",(function(){return"undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches})),w()(y()(n),"buildSwiper",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return(Object(R.a)(n.slideshowRef.current,{autoplay:!(!n.props.autoplay||n.prefersReducedMotion())&&{delay:1e3*n.props.delay,disableOnInteraction:!1},effect:n.props.effect,loop:!0,initialSlide:e,navigation:{nextEl:n.btnNextRef.current,prevEl:n.btnPrevRef.current},pagination:{clickable:!0,el:n.paginationRef.current,type:"bullets"}},{init:D.b,imagesReady:D.d,paginationRender:D.c,transitionEnd:D.a}))})),n.slideshowRef=Object(a.createRef)(),n.btnNextRef=Object(a.createRef)(),n.btnPrevRef=Object(a.createRef)(),n.paginationRef=Object(a.createRef)(),n}return k()(t,e),m()(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.onError;this.buildSwiper().then((function(t){e.swiperInstance=t,e.initializeResizeObserver(t)})).catch((function(){t(Object(i.__)("The Swiper library could not be loaded.","jetpack"))}))}},{key:"componentWillUnmount",value:function(){this.clearResizeObserver(),this.clearPendingRequestAnimationFrame()}},{key:"componentDidUpdate",value:function(e){var t,n=this,r=this.props,a=r.align,o=r.autoplay,c=r.delay,s=r.effect,l=r.images,u=r.onError;(a===e.align&&Object(C.isEqual)(l,e.images)||this.swiperInstance&&this.swiperInstance.update(),s!==e.effect||o!==e.autoplay||c!==e.delay||l!==e.images)&&(t=this.swiperIndex?l.length===e.images.length?this.swiperInstance.realIndex:e.images.length:0,this.swiperInstance&&this.swiperInstance.destroy(!0,!0),this.buildSwiper(t).then((function(e){n.swiperInstance=e,n.initializeResizeObserver(e)})).catch((function(){u(Object(i.__)("The Swiper library could not be loaded.","jetpack"))})))}},{key:"render",value:function(){var e=this.props,t=e.autoplay,n=e.className,r=e.delay,i=e.effect,c=e.images;return Object(a.createElement)("div",{className:n,"data-autoplay":t||null,"data-delay":t?r:null,"data-effect":i},Object(a.createElement)("div",{className:"wp-block-jetpack-slideshow_container swiper-container",ref:this.slideshowRef},Object(a.createElement)("ul",{className:"wp-block-jetpack-slideshow_swiper-wrapper swiper-wrapper"},c.map((function(e){var t=e.alt,n=e.caption,r=e.id,i=e.url;return Object(a.createElement)("li",{className:N()("wp-block-jetpack-slideshow_slide","swiper-slide",Object(x.isBlobURL)(i)&&"is-transient"),key:r},Object(a.createElement)("figure",null,Object(a.createElement)("img",{alt:t,className:"wp-block-jetpack-slideshow_image wp-image-".concat(r),"data-id":r,src:i}),Object(x.isBlobURL)(i)&&Object(a.createElement)(o.Spinner,null),n&&Object(a.createElement)(A.RichText.Content,{className:"wp-block-jetpack-slideshow_caption gallery-caption",tagName:"figcaption",value:n})))}))),Object(a.createElement)("a",{className:"wp-block-jetpack-slideshow_button-prev swiper-button-prev swiper-button-white",ref:this.btnPrevRef,role:"button"}),Object(a.createElement)("a",{className:"wp-block-jetpack-slideshow_button-next swiper-button-next swiper-button-white",ref:this.btnNextRef,role:"button"}),Object(a.createElement)("a",{"aria-label":"Pause Slideshow",className:"wp-block-jetpack-slideshow_button-pause",role:"button"}),Object(a.createElement)("div",{className:"wp-block-jetpack-slideshow_pagination swiper-pagination swiper-pagination-white",ref:this.paginationRef})))}}]),t}(a.Component);w()(z,"defaultProps",{effect:"slide"});var I=z,L=(n(232),["image"]),B=function(e,t){var n=Object(C.pick)(e,["alt","id","link","caption"]);return n.url=Object(C.get)(e,["sizes",t,"url"])||Object(C.get)(e,["media_details","sizes",t,"source_url"])||e.url,n},q=function(e){function t(){var e;return d()(this,t),e=b()(this,v()(t).apply(this,arguments)),w()(y()(e),"onSelectImages",(function(t){var n=e.props.attributes.sizeSlug,r=t.map((function(e){return B(e,n)}));e.setAttributes({images:r})})),w()(y()(e),"onRemoveImage",(function(t){return function(){var n=Object(C.filter)(e.props.attributes.images,(function(e,n){return t!==n}));e.setState({selectedImage:null}),e.setAttributes({images:n})}})),w()(y()(e),"addFiles",(function(t){var n=e.props.attributes.images||[],r=e.props.attributes.sizeSlug,a=e.props,i=a.lockPostSaving,o=a.unlockPostSaving,c=a.noticeOperations;i("slideshowBlockLock"),Object(A.mediaUpload)({allowedTypes:L,filesList:t,onFileChange:function(t){var a=t.map((function(e){return B(e,r)}));e.setAttributes({images:[].concat(u()(n),u()(a))}),a.every((function(e){return Object(x.isBlobURL)(e.url)}))||o("slideshowBlockLock")},onError:c.createErrorNotice})})),w()(y()(e),"uploadFromFiles",(function(t){return e.addFiles(t.target.files)})),w()(y()(e),"updateImagesSize",(function(t){var n=e.props.attributes.images,r=e.props.resizedImages,a=n.map((function(e){var n=r.find((function(t){var n=t.id;return parseInt(n,10)===parseInt(e.id,10)})),a=Object(C.get)(n,["sizes",t,"source_url"]);return s()({},e,{},a&&{url:a})}));e.setAttributes({images:a,sizeSlug:t})})),e.state={selectedImage:null},e}return k()(t,e),m()(t,[{key:"componentDidMount",value:function(){var e=this.props.attributes,t=e.ids;e.sizeSlug||this.setAttributes({sizeSlug:t.length?"full":"large"})}},{key:"setAttributes",value:function(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e=s()({},e,{ids:e.images.map((function(e){var t=e.id;return parseInt(t,10)}))})),this.props.setAttributes(e)}},{key:"getImageSizeOptions",value:function(){var e=this.props.imageSizes;return Object(C.map)(e,(function(e){var t=e.name;return{value:e.slug,label:t}}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.className,c=t.isSelected,s=t.noticeOperations,l=t.noticeUI,u=n.align,p=n.autoplay,d=n.delay,h=n.effect,m=n.images,f=this.getImageSizeOptions(),b=Object(a.createElement)(P,{allowedMediaTypes:L,attributes:n,imageSizeOptions:f,onChangeImageSize:this.updateImagesSize,onSelectImages:this.onSelectImages,setAttributes:function(t){return e.setAttributes(t)}});return 0===m.length?Object(a.createElement)(a.Fragment,null,b,Object(a.createElement)(A.MediaPlaceholder,{icon:Object(a.createElement)(A.BlockIcon,{icon:Q}),className:r,labels:{title:Object(i.__)("Slideshow","jetpack"),instructions:Object(i.__)("Drag images, upload new ones or select files from your library.","jetpack")},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:L,multiple:!0,notices:l,onError:s.createErrorNotice})):Object(a.createElement)(a.Fragment,null,b,l,Object(a.createElement)(I,{align:u,autoplay:p,className:r,delay:d,effect:h,images:m,onError:s.createErrorNotice}),Object(a.createElement)(o.DropZone,{onFilesDrop:this.addFiles}),c&&Object(a.createElement)("div",{className:"wp-block-jetpack-slideshow__add-item"},Object(a.createElement)(o.FormFileUpload,{multiple:!0,isLarge:!0,className:"wp-block-jetpack-slideshow__add-item-button",onChange:this.uploadFromFiles,accept:"image/*",icon:"insert"},Object(i.__)("Upload an image","jetpack"))))}}]),t}(a.Component),U=Object(E.compose)(Object(S.withSelect)((function(e,t){return{imageSizes:e("core/editor").getEditorSettings().imageSizes,resizedImages:t.attributes.ids.reduce((function(t,n){var r=e("core").getMedia(n),a=Object(C.get)(r,["media_details","sizes"]);return[].concat(u()(t),[{id:n,sizes:a}])}),[])}})),Object(S.withDispatch)((function(e){var t=e("core/editor");return{lockPostSaving:t.lockPostSaving,unlockPostSaving:t.unlockPostSaving}})),o.withNotices)(q),V=n(16);function H(e){return Object(C.filter)(e,(function(e){var t=e.id,n=e.url;return t&&n}))}var G={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],isMatch:function(e){return H(e).length>0},transform:function(e){var t=H(e);return Object(V.createBlock)("jetpack/slideshow",{images:t.map((function(e){return{alt:e.alt,caption:e.caption,id:e.id,url:e.url}})),ids:t.map((function(e){return e.id}))})}},{type:"block",blocks:["core/gallery","jetpack/tiled-gallery"],transform:function(e){var t=H(e.images);return t.length>0?Object(V.createBlock)("jetpack/slideshow",{images:t.map((function(e){return{alt:e.alt,caption:e.caption,id:e.id,url:e.url}})),ids:t.map((function(e){return e.id}))}):Object(V.createBlock)("jetpack/slideshow")}}],to:[{type:"block",blocks:["core/gallery"],transform:function(e){var t=e.images,n=e.ids;return Object(V.createBlock)("core/gallery",{images:t,ids:n})}},{type:"block",blocks:["core/image"],transform:function(e){var t=e.images;return t.length>0?t.map((function(e){var t=e.id,n=e.url,r=e.alt,a=e.caption;return Object(V.createBlock)("core/image",{id:t,url:n,alt:r,caption:a})})):Object(V.createBlock)("core/image")}}]},$=n(109),W=n.n($),K=n(110),Z=n.n(K),J=n(111),Y=n.n(J),Q=Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(a.createElement)(o.Path,{d:"M0 0h24v24H0z",fill:"none"}),Object(a.createElement)(o.Path,{d:"M10 8v8l5-4-5-4zm9-5H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"})),X={align:"center",autoplay:!0,ids:[22,23],images:[{alt:"",caption:"",id:22,url:W.a},{alt:"",caption:"",id:23,url:Z.a},{alt:"",caption:"",id:23,url:Y.a}],effect:"slide"},ee={title:Object(i.__)("Slideshow","jetpack"),category:"jetpack",keywords:[Object(i._x)("image","block search term","jetpack"),Object(i._x)("gallery","block search term","jetpack"),Object(i._x)("slider","block search term","jetpack")],description:Object(i.__)("Add an interactive slideshow.","jetpack"),attributes:{align:{default:"center",type:"string"},autoplay:{type:"boolean",default:!1},delay:{type:"number",default:3},ids:{default:[],type:"array"},images:{type:"array",default:[],source:"query",selector:".swiper-slide",query:{alt:{source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},id:{source:"attribute",selector:"img",attribute:"data-id"},url:{source:"attribute",selector:"img",attribute:"src"}}},effect:{type:"string",default:"slide"},sizeSlug:{type:"string"}},supports:{align:["center","wide","full"],html:!1},icon:Q,edit:U,save:function(e){var t=e.attributes,n=t.align,r=t.autoplay,i=t.delay,o=t.effect,c=t.images,s=e.className;return Object(a.createElement)(I,{align:n,autoplay:r,className:s,delay:i,effect:o,images:c})},transforms:G,example:{attributes:X}};Object(r.a)("slideshow",ee)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(13),c=n(5),s=function(e){return e.map((function(e){return e.value}))},l=[{value:"en-US",label:"English"},{value:"fr-CA",label:"Français"},{value:"de-DE",label:"Deutsch"},{value:"es-MX",label:"Español"},{value:"ja-JP",label:"日本語"},{value:"nl-NL",label:"Nederlands"},{value:"it-IT",label:"Italiano"}],u=s(l),p=function(e){return Object(c.compact)([{value:"standard",label:Object(i.__)("Standard (224 x 301 pixels)","jetpack")},{value:"tall",label:Object(i.__)("Tall (288 x 490 pixels)","jetpack")},{value:"wide",label:Object(i.__)("Wide (840 x 150 pixels)","jetpack")},(!e||1===e.length)&&{value:"button",label:Object(i.__)("Button (210 x 113 pixels)","jetpack")}])},d=function(e){return s(p(e))},h=Object(o.select)("core/block-editor").getSettings().siteLocale,m=!Object(c.isEmpty)(h)&&u.includes(h)?h:"en-US",f={rid:{default:[],type:"array"},style:{default:"standard",type:"string",validValues:d()},iframe:{default:!0,type:"boolean"},domain:{default:"com",type:"string"},lang:{default:m,type:"string",validValues:u},newtab:{default:!1,type:"boolean"}},b=n(3),g=n.n(b),v=n(18),j=n.n(v),y=(n(79),n(12)),_=n.n(y),k=n(6),O=n(2),w=(n(89),Object(a.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 16",fill:"none",height:"16",width:"22"},Object(a.createElement)(O.Path,{fill:"#555d66",d:"m1.997 5.982c-.39457-.00039-.7804.11622-1.108699.33511-.328295.21888-.584312.5302-.735674.89459-.15136174.36439-.1912714.76548-.1146819 1.15254.0765899.38707.2662379.74274.5449639 1.02202.278726.27929.634011.46965 1.020921.54702.38692.07732.78809.03826 1.15278-.11238.36469-.15063.67652-.40602.89606-.73387.21954-.32786.33693-.71345.33733-1.10803v-.002c.001-1.1-.89-1.994-1.992-1.995zm12.006 3.988c-.3946.0004-.7805-.11625-1.1088-.33517-.3283-.21893-.5843-.53031-.7357-.89476-.1513-.36444-.1912-.76558-.1145-1.15268s.2664-.74276.5453-1.022c.2788-.27925.6342-.46953 1.0211-.54679.387-.07725.7882-.038 1.1529.11278.3647.15079.6764.40634.8959.73432.2194.32799.3366.71369.3368 1.1083v.003c.0003.52814-.2092 1.03477-.5824 1.4085s-.8795.58397-1.4076.5845zm0-9.96999843c-1.5777-.0009886-3.1203.46588743-4.43262 1.34158843-1.31236.8757-2.33558 2.1209-2.94025 3.57813-.60467 1.45722-.76365 3.06103-.45683 4.60861.30683 1.54757 1.06567 2.96947 2.18058 4.08577 1.1149 1.1163 2.53582 1.8769 4.08302 2.1856 1.5472.3088 3.1512.1518 4.6091-.451 1.458-.6028 2.7045-1.6245 3.5819-2.9358.8773-1.3112 1.3461-2.8532 1.3471-4.4309v-.005c.0008-2.11466-.8384-4.14304-2.3331-5.63899-1.4946-1.495952-3.5222-2.3369478-5.6369-2.33800843z"}))),E=n(24),C=n(29),x=n.n(C);var S=/<script type=\'text\/javascript\' src=\'\/\/www.opentable\.(\w{2,3}\.)?\w+\/widget\/reservation\/loader\?[^']+\'><\/script>/;function A(e){var t=Object(a.useState)(""),n=j()(t,2),r=n[0],o=n[1],s=function(e,t){var n=Object(a.useState)([]),r=j()(n,2),i=r[0],o=r[1],s=Object(a.useCallback)(Object(c.throttle)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";fetch("https://www.opentable.com/widget/reservation/restaurant-search?pageSize="+t+"&query="+encodeURIComponent(e)).then((function(e){return e.json()})).then((function(e){return o(Object(c.unionBy)(i,e.items,"rid"))}))}),500),[i]);return Object(a.useEffect)((function(){Object(c.isEmpty)(e)||e.startsWith("<script")||s(e)}),[e]),i}(r,20),l=Object(a.useState)(e.rids||[]),u=j()(l,2),p=u[0],d=u[1],h=/^(\d+)$|\(\#(\d+)\)$/,m=s.filter((function(e){return p.indexOf(e.rid.toString())})).map((function(e){return e.name+" (#".concat(e.rid,")")})),f=Object(a.createElement)(O.FormTokenField,x()({value:p,suggestions:m,onInputChange:o,maxSuggestions:20,label:Object(i._n)("Restaurant","Restaurants",p.length,"jetpack")},e,{onChange:function(t){var n=t.map((function(e){var t=h.exec(e);return t[1]||t[2]}));d(n),e.onChange&&e.onChange(n)}}));return Object(a.createElement)("div",{className:"wp-block-jetpack-opentable-restaurant-picker"},e.onSubmit?Object(a.createElement)("form",{onSubmit:function(t){t.preventDefault(),e.onSubmit(Object(c.isEmpty)(p)&&S.test(r)?r:p)}},f,Object(a.createElement)(O.Button,{isSecondary:!0,isLarge:!0,type:"submit"},Object(i.__)("Embed","jetpack"))):f)}var F=n(59),P=n(51);n(133);var T={title:Object(i.__)("OpenTable","jetpack"),description:Object(i.__)("Allow visitors to book a reservation with OpenTable","jetpack"),icon:w,category:"jetpack",keywords:[Object(i.__)("opentable","jetpack"),Object(i.__)("reservation","jetpack"),Object(i.__)("restaurant","jetpack")],supports:{align:!0,html:!1},edit:function(e){var t,n=e.attributes,r=e.setAttributes,o=e.className,s=e.clientId,h=Object(P.a)(f,n);Object(c.isEqual)(h,n)||r(h);var m,b,v,y,C,x=n.align,S=n.rid,T=n.style,N=n.iframe,M=n.domain,R=n.lang,D=n.newtab,z=Object(a.useState)(),I=j()(z,2),L=I[0],B=I[1],q=function(){return B(Object(a.createElement)(a.Fragment,null,Object(a.createElement)("strong",null,Object(i.__)("We ran into an issue","jetpack")),Object(a.createElement)("br",null),Object(i.__)("Please ensure this embed matches the one from your OpenTable account","jetpack")))},U=p(S),V=d(S),H=function(e){return S.length>1?["multi","button"!==e?e:"standard"]:["button"===e?"button":"standard","button"===e?"standard":e]},G=Object(a.createElement)(k.BlockControls,null,!Object(c.isEmpty)(S)&&Object(a.createElement)(O.Toolbar,{popoverProps:{className:"is-opentable"},isCollapsed:!0,icon:"admin-appearance",label:Object(i.__)("Style","jetpack"),controls:U.map((function(e){return{title:e.label,isActive:e.value===T,onClick:function(){return t=e.value,r({style:t}),"wide"===T&&"wide"===x&&r({align:""}),void("wide"===t&&r({align:"wide"}));var t}}}))})),$=function(e){Array.isArray(e)?r({rid:e,style:e.length>1&&"button"===T?"standard":T}):function(e){if(e){var t=e.match(/< *script[^>]*src *= *["']?([^"']*)/i);if(t&&t[1]){var n="";if((n=0===t[1].indexOf("http")?new URL(t[1]):new URL("http:"+t[1])).search){var a=new URLSearchParams(n.search),i=a.get("theme");"button"===a.get("type")&&(i=a.get("type"));var o={rid:a.getAll("rid"),iframe:Boolean(a.get("iframe")),domain:a.get("domain"),lang:a.get("lang"),newtab:Boolean(a.get("newtab")),style:i},c=Object(P.a)(f,o);r(c)}else q()}else q()}else q()}(e)},W=Object(E.b)()||Object(E.a)()?"https://en.support.wordpress.com/wordpress-editor/blocks/opentable-block/":"https://jetpack.com/support/jetpack-blocks/opentable-block/",K=Object(a.createElement)(O.Placeholder,{label:Object(i.__)("OpenTable Reservation","jetpack"),icon:Object(a.createElement)(k.BlockIcon,{icon:w}),instructions:Object(i.__)("Enter your restaurant name, or paste an OpenTable Reservation Widget embed code.","jetpack"),notices:L&&Object(a.createElement)(O.Notice,{status:"error",isDismissible:!1},L)},Object(a.createElement)(A,{rids:S,onSubmit:$}),Object(a.createElement)("div",{className:"".concat(o,"-placeholder-links")},Object(a.createElement)(O.ExternalLink,{href:"https://restaurant.opentable.com/get-started/"},Object(i.__)("Sign up for OpenTable","jetpack")),Object(a.createElement)(O.ExternalLink,{href:W},Object(i.__)("Learn more","jetpack")))),Z=_()(o,(t={},g()(t,"".concat(o,"-theme-").concat(T),!Object(c.isEmpty)(S)&&V.includes(T)),g()(t,"is-multi","multi"===H(T)[0]),t));return Object(a.createElement)("div",{className:Z},!Object(c.isEmpty)(S)&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)(a.Fragment,null,Object(a.createElement)(k.InspectorAdvancedControls,null,Object(a.createElement)(O.ToggleControl,{label:Object(i.__)("Load the widget in an iFrame (Recommended)","jetpack"),checked:N,onChange:function(){return r({iframe:!N})},className:"is-opentable"})),Object(a.createElement)(k.InspectorControls,null,Object(a.createElement)(O.PanelBody,{title:Object(i.__)("Styles","jetpack")},Object(a.createElement)(F.a,{clientId:s,styleOptions:U,onSelectStyle:r,activeStyle:T,attributes:n,viewportWidth:150})),Object(a.createElement)(O.PanelBody,{title:Object(i.__)("Settings","jetpack")},Object(a.createElement)(A,{rids:S,onChange:$}),Object(a.createElement)(O.SelectControl,{label:Object(i.__)("Language","jetpack"),value:R,onChange:function(e){return r({lang:e})},options:l}),Object(a.createElement)(O.ToggleControl,{label:Object(i.__)("Open in a new window","jetpack"),checked:D,onChange:function(){return r({newtab:!D})}})))),G),Object(c.isEmpty)(S)?K:(b=H(m||T),v=j()(b,2),y=v[0],C=v[1],Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{className:"".concat(o,"-overlay")}),Object(a.createElement)("iframe",{title:Object(i.sprintf)(Object(i.__)("Open Table Preview %s","jetpack"),s),scrolling:"no",src:"https://www.opentable.com/widget/reservation/canvas?rid=".concat(Object(c.join)(S,"%2C"),"&type=").concat(y,"&theme=").concat(C,"&overlay=false&domain=").concat(M,"&lang=").concat(R&&u.includes(R)?R:"en-US","&newtab=").concat(D,"&disablega=true")}))))},save:function(e){var t=e.attributes.rid;return Object(a.createElement)(a.Fragment,null,t.map((function(e){return Object(a.createElement)("a",{href:"https://www.opentable.com/restref/client/?rid=".concat(e)},"https://www.opentable.com/restref/client/?rid=".concat(e))})))},attributes:f,example:{attributes:{rid:["1"],style:"standard",iframe:!0,domain:"com",lang:"en-US",newtab:!1}}};Object(r.a)("opentable",T)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(2),c=n(16),s=n(7),l=n.n(s),u=n(11),p=n.n(u),d=n(8),h=n.n(d),m=n(9),f=n.n(m),b=n(4),g=n.n(b),v=n(10),j=n.n(v),y=n(3),_=n.n(y),k=n(12),O=n.n(k),w=n(6),E=n(13),C=n(39),x=n(23),S=n.n(x),A=n(26);function F(e){if(!e)return null;var t=e.match(/(\d+)\/?(?:\?[^\/]*)?\s*$/);return t&&t[1]?parseInt(t[1],10):null}var P=n(24),T=n(14),N=window.getComputedStyle,M=Object(o.withFallbackStyles)((function(e,t){var n=t.textColor,r=t.backgroundColor,a=r&&r.color,i=n&&n.color,o=!i&&e?e.querySelector('[contenteditable="true"]'):null;return{fallbackBackgroundColor:a||!e?void 0:N(e).backgroundColor,fallbackTextColor:i||!o?void 0:N(o).color}}));function R(e){var t=e.borderRadius,n=void 0===t?"":t,r=e.setAttributes,c=Object(a.useCallback)((function(e){r({borderRadius:e})}),[r]);return Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Border Settings","jetpack")},Object(a.createElement)(o.RangeControl,{value:n,label:Object(i.__)("Border Radius","jetpack"),min:0,max:50,initialPosition:5,allowReset:!0,onChange:c}))}var D=function(e){function t(){var e;return l()(this,t),(e=h()(this,f()(t).apply(this,arguments))).nodeRef=null,e.bindRef=e.bindRef.bind(g()(e)),e}return j()(t,e),p()(t,[{key:"bindRef",value:function(e){e&&(this.nodeRef=e)}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=t.backgroundColor,o=t.textColor,c=t.setBackgroundColor,s=t.setTextColor,l=t.fallbackBackgroundColor,u=t.fallbackTextColor,p=t.setAttributes,d=t.className,h=n.borderRadius,m=n.placeholder,f=n.text,b=n.title;return Object(a.createElement)("div",{className:O()(d,"wp-block-button is-modal-button"),title:b,ref:this.bindRef},Object(a.createElement)(w.RichText,{placeholder:m||Object(i.__)("Add text…","jetpack"),value:f,keepPlaceholderOnFocus:!0,onChange:function(e){return p({text:e})},withoutInteractiveFormatting:!0,className:O()("wp-block-button__link",(e={"has-background":r.color},_()(e,r.class,r.class),_()(e,"has-text-color",o.color),_()(e,o.class,o.class),_()(e,"no-border-radius",0===h),e)),style:{backgroundColor:r.color,color:o.color,borderRadius:h?h+"px":void 0}}),Object(a.createElement)(w.InspectorControls,null,Object(a.createElement)(w.PanelColorSettings,{title:Object(i.__)("Color Settings","jetpack"),colorSettings:[{value:r.color,onChange:c,label:Object(i.__)("Background Color","jetpack")},{value:o.color,onChange:s,label:Object(i.__)("Text Color","jetpack")}]},Object(a.createElement)(w.ContrastChecker,{isLargeText:!1,textColor:o.color,backgroundColor:r.color,fallbackBackgroundColor:l,fallbackTextColor:u})),Object(a.createElement)(R,{borderRadius:h,setAttributes:p})))}}]),t}(a.Component),z=Object(T.compose)([Object(w.withColors)("backgroundColor",{textColor:"color"}),M])(D),I=n(97),L=n.n(I),B=n(98),q=n.n(B),U=(n(153),[{name:"fill",label:Object(i.__)("Fill","jetpack"),isDefault:!0},{name:"outline",label:Object(i.__)("Outline","jetpack")}]),V=function(e){function t(){var e,n;l()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=h()(this,(e=f()(t)).call.apply(e,[this].concat(a))),_()(g()(n),"state",{editedUrl:n.props.attributes.url||"",editingUrl:!1,resolvingUrl:n.props.attributes.url&&!n.props.attributes.eventId,resolvedStatusCode:null}),_()(g()(n),"resolveUrl",(function(){var e=n.props.attributes.url;n.setState({resolvedStatusCode:null}),n.fetchRequest=S()({path:"/wpcom/v2/resolve-redirect/".concat(e)}),n.fetchRequest.then((function(t){n.fetchRequest=null;var r=t.url||e,a=t.status?parseInt(t.status,10):null;n.props.setAttributes({eventId:F(r),url:r}),n.setState({resolvingUrl:!1,resolvedStatusCode:a,editedUrl:r})}),(function(e){"abort"!==e.statusText&&(n.fetchRequest=null,n.setState({resolvingUrl:!1,editingUrl:!0}))}))})),_()(g()(n),"setUrl",(function(e){e&&e.preventDefault();var t=n.state.editedUrl;t&&(n.props.setAttributes({eventId:F(t),url:t}),n.setState({editingUrl:!1,resolvingUrl:!0}))})),_()(g()(n),"cannotEmbed",(function(){var e=n.props.attributes.url,t=n.state.resolvedStatusCode;return e&&!G.test(e)||t&&t>=400})),_()(g()(n),"setEmbedType",(function(e){(0,n.props.setAttributes)({useModal:"modal"===e})})),n}return j()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.state.resolvingUrl&&this.resolveUrl()}},{key:"componentDidUpdate",value:function(e,t){!t.resolvingUrl&&this.state.resolvingUrl&&this.resolveUrl()}},{key:"renderLoading",value:function(){return Object(a.createElement)("div",{className:"wp-block-embed is-loading"},Object(a.createElement)(o.Spinner,null),Object(a.createElement)("p",null,Object(i.__)("Embedding…","jetpack")))}},{key:"renderInspectorControls",value:function(){var e=this.props.attributes.useModal,t=[{value:"inline",isActive:!e,label:Object(i.__)("In-page Embed","jetpack"),preview:Object(a.createElement)("div",{className:"block-editor-block-preview__container"},Object(a.createElement)("img",{src:L.a,alt:Object(i.__)("In page Eventbrite checkout example","jetpack")}))},{value:"modal",isActive:e,label:Object(i.__)(" Button & Modal","jetpack"),preview:Object(a.createElement)("div",{className:"block-editor-block-preview__container"},Object(a.createElement)("img",{src:q.a,alt:Object(i.__)("Modal Eventbrite checkout example","jetpack")}))}];return Object(a.createElement)(C.InspectorControls,null,Object(a.createElement)(o.PanelBody,{className:"jetpack-eventbrite-block__embed-type-controls",title:Object(i._x)("Embed Type","option for how the embed displays on a page, e.g. inline or as a modal","jetpack")},Object(a.createElement)("div",{className:"block-editor-block-styles"},t.map(this.renderEmbedTypeItem.bind(this)))))}},{key:"renderEmbedTypeItem",value:function(e){var t=this,n=e.label,r=e.isActive,i=e.value,o=e.preview;return Object(a.createElement)("div",{key:i,className:O()("block-editor-block-styles__item",{"is-active":r}),onClick:function(){return t.setEmbedType(i)},onKeyDown:function(e){A.ENTER!==e.keyCode&&A.SPACE!==e.keyCode||e.preventDefault()},role:"button",tabIndex:"0","aria-label":n},Object(a.createElement)("div",{className:"block-editor-block-styles__item-preview"},o),Object(a.createElement)("div",{className:"block-editor-block-styles__item-label"},n))}},{key:"renderBlockControls",value:function(){var e=this;return Object(a.createElement)(w.BlockControls,null,Object(a.createElement)(o.Toolbar,null,Object(a.createElement)(o.IconButton,{className:"components-toolbar__control",label:Object(i.__)("Edit URL","jetpack"),icon:"edit",onClick:function(){return e.setState({editingUrl:!0})}})))}},{key:"renderEditEmbed",value:function(){var e=this,t=this.props.className,n=this.state.editedUrl,r=Object(P.b)()||Object(P.a)()?"http://support.wordpress.com/wordpress-editor/blocks/eventbrite-block/":"https://jetpack.com/support/jetpack-blocks/eventbrite-block/";return Object(a.createElement)("div",{className:t},Object(a.createElement)(o.Placeholder,{label:Object(i.__)("Eventbrite Checkout","jetpack"),instructions:Object(i.__)("Paste a link to an Eventbrite event to embed ticket checkout.","jetpack"),icon:Object(a.createElement)(w.BlockIcon,{icon:K})},Object(a.createElement)("form",{onSubmit:this.setUrl},Object(a.createElement)("input",{type:"url",value:n,className:"components-placeholder__input","aria-label":Object(i.__)("Eventbrite URL","jetpack"),placeholder:Object(i.__)("Enter an event URL to embed here…","jetpack"),onChange:function(t){return e.setState({editedUrl:t.target.value})}}),Object(a.createElement)(o.Button,{isLarge:!0,isDefault:!0,isSecondary:!0,type:"submit"},Object(i._x)("Embed","submit button label","jetpack")),this.cannotEmbed()&&Object(a.createElement)("p",{className:"components-placeholder__error"},Object(i.__)("Sorry, this content could not be embedded.","jetpack"),Object(a.createElement)("br",null),Object(a.createElement)(o.Button,{isLarge:!0,onClick:function(){return t=n,r=e.props.onReplace,i=Object(a.createElement)("a",{href:t},t),void r(Object(c.createBlock)("core/paragraph",{content:Object(a.renderToString)(i)}));var t,r,i}},Object(i._x)("Convert block to link","button label","jetpack")))),Object(a.createElement)("div",{className:"components-placeholder__learn-more"},Object(a.createElement)(o.ExternalLink,{href:r},Object(i.__)("Learn more about Eventbrite embeds","jetpack")))))}},{key:"renderInlinePreview",value:function(){var e=this.props.className,t=this.props.attributes.eventId;if(t){var n="eventbrite-widget-".concat(t),r="\n\t\t\t<script src=\"https://www.eventbrite.com/static/widgets/eb_widgets.js\"><\/script>\n\t\t\t<style>\n\t\t\t\t/* Prevent scrollbar on the embed preview */\n\t\t\t\tbody {\n\t\t\t\t\toverflow: hidden;\n\t\t\t\t}\n\t\t\t\t/* Eventbrite embeds have a CSS height transition on loading, which causes <Sandbox>\n\t\t\t\tto not recognise the resizing. We need to disable that transition. */\n\t\t\t\t* {\n\t\t\t\t\ttransition: none !important;\n\t\t\t\t}\n\t\t\t</style>\n\t\t\t<script>\n\t\t\t\twindow.EBWidgets.createWidget({\n\t\t\t\t\twidgetType: 'checkout',\n\t\t\t\t\teventId: ".concat(t,",\n\t\t\t\t\tiframeContainerId: '").concat(n,"',\n\t\t\t\t});\n\t\t\t<\/script>\n\t\t\t<div id=\"").concat(n,'"></div>\n\t\t');return Object(a.createElement)("div",{className:e},Object(a.createElement)(o.SandBox,{html:r}),Object(a.createElement)("div",{className:"block-library-embed__interactive-overlay"}))}}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=t.addModalButtonStyles,i=t.removeModalButtonStyles,o=n.url,c=n.useModal,s=this.state,l=s.editingUrl;return s.resolvingUrl?(i(),e=this.renderLoading()):l||!o||this.cannotEmbed()?(i(),e=this.renderEditEmbed()):(c?r():i(),e=Object(a.createElement)(a.Fragment,null,this.renderBlockControls(),c?Object(a.createElement)(z,this.props):this.renderInlinePreview())),Object(a.createElement)(a.Fragment,null,this.renderInspectorControls(),e)}}]),t}(a.Component),H=Object(E.withDispatch)((function(e,t,n){var r=t.name,a=(0,(0,n.select)("core/blocks").getBlockStyles)(r);return{addModalButtonStyles:function(){a.length<1&&e("core/blocks").addBlockStyles(r,U)},removeModalButtonStyles:function(){a.length>0&&e("core/blocks").removeBlockStyles(r,U.map((function(e){return e.name})))}}}))(V);var G=/^\s*https?:\/\/(?:www\.)?(?:eventbrite\.[a-z.]+)\/e\/[^\/]*?(\d+)\/?(?:\?[^\/]*)?\s*$/i,$=/^\s*https?:\/\/(?:.+\.)?(?:eventbrite\.[a-z.]+)\/?(?:\?[^\/]*)?\s*$/i,W=Object(i.__)("Eventbrite Checkout","jetpack"),K={src:Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(o.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(a.createElement)(o.G,{id:"eventbrite-icon"},Object(a.createElement)(o.Path,{d:"M18.041,3.931L5.959,3C4.325,3,3,4.325,3,5.959v12.083C3,19.675,4.325,21,5.959,21l12.083-0.931C19.699,19.983,21,18.744,21,17.11V6.89C21,5.256,19.741,4.027,18.041,3.931zM16.933,8.17c-0.082,0.215-0.192,0.432-0.378,0.551c-0.188,0.122-0.489,0.132-0.799,0.132c-1.521,0-3.062-0.048-4.607-0.048c-0.152,0.708-0.304,1.416-0.451,2.128c0.932-0.004,1.873,0.005,2.81,0.005c0.726,0,1.462-0.069,1.586,0.525c0.04,0.189-0.001,0.426-0.052,0.615c-0.105,0.38-0.258,0.676-0.625,0.783c-0.185,0.054-0.408,0.058-0.646,0.058c-1.145,0-2.345,0.017-3.493,0.02c-0.169,0.772-0.328,1.553-0.489,2.333c1.57-0.005,3.067-0.041,4.633-0.058c0.627-0.007,1.085,0.194,1.009,0.85c-0.031,0.262-0.098,0.497-0.211,0.725c-0.102,0.208-0.248,0.376-0.488,0.452c-0.237,0.075-0.541,0.064-0.862,0.078c-0.304,0.014-0.614,0.008-0.924,0.016c-0.309,0.009-0.619,0.022-0.919,0.022c-1.253,0-2.429,0.08-3.683,0.073c-0.603-0.004-1.014-0.249-1.124-0.757c-0.059-0.273-0.018-0.58,0.036-0.841c0.541-2.592,1.083-5.176,1.629-7.763c0.056-0.265,0.114-0.511,0.225-0.714C9.279,7.051,9.534,6.834,9.9,6.735c0.368-0.099,0.883-0.047,1.344-0.047c0.305,0,0.612,0.008,0.914,0.016c0.925,0.026,1.817,0.03,2.747,0.053c0.304,0.007,0.615,0.016,0.915,0.016c0.621,0,1.17,0.073,1.245,0.614C17.104,7.675,17.014,7.954,16.933,8.17z"}))),foreground:"#555d66"},Z={title:W,description:Object(i.__)("Embed Eventbrite event details and ticket checkout.","jetpack"),icon:K,category:"jetpack",keywords:[Object(i.__)("events","jetpack"),Object(i.__)("tickets","jetpack")],supports:{html:!1},attributes:{url:{type:"string"},eventId:{type:"number"},useModal:{type:"boolean"},text:{type:"string",default:Object(i._x)("Register","verb: e.g. register for an event.","jetpack")},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},borderRadius:{type:"number"}},edit:H,save:function(e){var t=e.attributes,n=t.eventId,r=t.useModal,i=t.url;if(n)return r?function(e){var t,n=e.backgroundColor,r=e.borderRadius,i=e.customBackgroundColor,o=e.customTextColor,c=e.eventId,s=e.text,l=e.textColor,u=e.url,p=Object(w.getColorClassName)("color",l),d=Object(w.getColorClassName)("background-color",n),h=O()("wp-block-button__link",(t={"has-text-color":l||o},_()(t,p,p),_()(t,"has-background",n||i),_()(t,d,d),_()(t,"no-border-radius",0===r),t)),m={backgroundColor:d?void 0:i,color:p?void 0:o,borderRadius:r?r+"px":void 0};return Object(a.createElement)("div",{className:"wp-block-button"},Object(a.createElement)(w.RichText.Content,{className:h,href:u,id:"eventbrite-widget-".concat(c),rel:"noopener noreferrer",role:"button",style:m,tagName:"a",target:"_blank",value:s}))}(t):i&&Object(a.createElement)("a",{className:"eventbrite__direct-link",href:i},i)},transforms:{from:[{type:"raw",isMatch:function(e){return"P"===e.nodeName&&(G.test(e.textContent)||$.test(e.textContent))},transform:function(e){return Object(c.createBlock)("jetpack/eventbrite",{url:e.textContent.trim()})}}]},example:{attributes:{url:"https://www.eventbrite.com/e/test-event-tickets-123456789",eventId:123456789,useModal:!0}}};Object(r.a)("eventbrite",Z)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(16),c=/^#?[A-Fa-f0-9]{6}$/,s=function(e){return c.test(e)},l={backgroundColor:{type:"string",default:"ffffff",validator:s},submitButtonText:{type:"string",default:Object(i.__)("Schedule time with me","jetpack")},submitButtonTextColor:{type:"string"},submitButtonBackgroundColor:{type:"string"},submitButtonClasses:{type:"string"},hideEventTypeDetails:{type:"boolean",default:!1},primaryColor:{type:"string",default:"00A2FF",validator:s},textColor:{type:"string",default:"4D5055",validator:s},style:{type:"string",default:"inline",validValues:["inline","link"]},url:{type:"string",validator:function(e){return!e||e.startsWith("https://calendly.com/")}},backgroundButtonColor:{type:"string"},textButtonColor:{type:"string"},customBackgroundButtonColor:{type:"string",validator:s},customTextButtonColor:{type:"string",validator:s}},u=n(18),p=n.n(u),d=(n(79),n(5)),h=n(95),m=n.n(h),f=n(6),b=n(2),g=(n(80),Object(a.createElement)(b.SVG,{height:"24",viewBox:"0 0 23 24",width:"23",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(b.G,{fill:"none",fillRule:"evenodd"},Object(a.createElement)(b.Rect,{height:"20.956522",rx:"3",stroke:"#656a74",strokeWidth:"2",width:"20.956522",x:"1",y:"2.043478"}),Object(a.createElement)(b.Rect,{fill:"#656a74",height:"4.869565",rx:"1",width:"2",x:"6.565217"}),Object(a.createElement)(b.Rect,{fill:"#656a74",height:"4.869565",rx:"1",width:"2",x:"14.652174"}),Object(a.createElement)(b.Path,{d:"m14.6086957 10.0869565c-.6956522-.57971012-1.6231885-.8695652-2.7826087-.8695652-1.7391305 0-3.47826091 1.5652174-3.47826091 3.6521739s1.73913041 3.6521739 3.47826091 3.6521739c1.1594202 0 2.0869565-.3478261 2.7826087-1.0434782",stroke:"#656a74"})))),v=n(51),j=n(31),y=/(^|\/\/)(calendly\.com[^"']*)/i,_=function(e){if(e){var t=function(e){var t=e.match(y);if(t)return"https://"+t[2]}(e);if(t){var n=function(e){var t={},n=new URL(e);if(t.url=n.origin+n.pathname,!n.search)return t;var r=new URLSearchParams(n.search),a=r.get("background_color"),i=r.get("primary_color"),o=r.get("text_color"),c=/^[A-Za-z0-9]{6}$/;return r.get("hide_event_type_details")&&(t.hideEventTypeDetails=r.get("hide_event_type_details")),a&&a.match(c)&&(t.backgroundColor=a),i&&i.match(c)&&(t.primaryColor=i),o&&o.match(c)&&(t.textColor=o),t}(t),r=function(e){return e.indexOf("data-url")>0?"inline":e.indexOf("initPopupWidget")>0||e.indexOf("initBadgeWidget")>0?"link":void 0}(e);r&&(n.style=r);var a=function(e){var t=e.match(/false;"\>([^<]+)\<\//);return t?t[1]:(t=e.match(/text: '([^']*?)'/))?t[1]:void 0}(e);a&&(n.submitButtonText=a);var i=function(e){var t=e.match(/textColor: '([^']*?)'/);if(t)return t[1]}(e);i&&(n.customTextButtonColor=i);var o=function(e){var t=e.match(/color: '([^']*?)'/);if(t)return t[1]}(e);return o&&(n.customBackgroundButtonColor=o),n}}},k=n(59);var O={title:Object(i.__)("Calendly","jetpack"),description:Object(i.__)("Embed a calendar for customers to schedule appointments","jetpack"),icon:g,category:"jetpack",keywords:[Object(i.__)("calendar","jetpack"),Object(i.__)("schedule","jetpack"),Object(i.__)("appointments","jetpack")],supports:{align:!0,alignWide:!1,html:!1},edit:function(e){var t=e.attributes,n=e.className,r=e.clientId,o=e.setAttributes,c=Object(v.a)(l,t);Object(d.isEqual)(c,t)||o(c);var s,u,h=c.backgroundColor,y=c.submitButtonText,O=c.hideEventTypeDetails,w=c.primaryColor,E=c.textColor,C=c.style,x=c.url,S=Object(a.useState)(""),A=p()(S,2),F=A[0],P=A[1],T=Object(a.useState)(),N=p()(T,2),M=N[0],R=N[1],D=function(){return R(Object(a.createElement)(a.Fragment,null,Object(i.__)("Your calendar couldn't be embedded. Please double check your URL or code.","jetpack")))},z=function(e){if(e){e.preventDefault();var t=_(F);if(t){var n=Object(v.a)(l,t);o(n)}else D()}else D()},I=Object(a.createElement)(a.Fragment,null,Object(a.createElement)("form",{onSubmit:z},Object(a.createElement)("input",{type:"text",id:"embedCode",onChange:function(e){return P(e.target.value)},placeholder:Object(i.__)("Calendly web address or embed code…","jetpack"),value:F,className:"components-placeholder__input"}),Object(a.createElement)("div",null,Object(a.createElement)(b.Button,{isSecondary:!0,isLarge:!0,type:"submit"},Object(i._x)("Embed","button label","jetpack")))),Object(a.createElement)("div",{className:"".concat(n,"-learn-more")},Object(a.createElement)(b.ExternalLink,{href:"https://help.calendly.com/hc/en-us/articles/223147027-Embed-options-overview"},Object(i.__)("Need help finding your embed code?","jetpack")))),L=Object(a.createElement)(b.Placeholder,{label:Object(i.__)("Calendly","jetpack"),instructions:Object(i.__)("Enter your Calendly web address or embed code below.","jetpack"),icon:Object(a.createElement)(f.BlockIcon,{icon:g}),notices:M&&Object(a.createElement)(b.Notice,{status:"error",isDismissible:!1},M)},I),B=Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{className:"".concat(n,"-overlay")}),Object(a.createElement)("iframe",{src:(s=m.a.stringify({embed_domain:"wordpress.com",embed_type:"Inline",hide_event_type_details:O?1:0,background_color:h,primary_color:w,text_color:E}),"".concat(x,"?").concat(s)),width:"100%",height:"100%",frameBorder:"0","data-origwidth":"100%","data-origheight":"100%",style:{minWidth:"320px",height:"630px",width:"100%"},title:"Calendly"})),q=Object(a.createElement)(j.a,{submitButtonText:y,attributes:t,setAttributes:o}),U=Object(a.createElement)(a.Fragment,null,Object(a.createElement)("a",{style:{alignSelf:"flex-start",border:"none"},className:"wp-block-button__link"},y)),V=[{value:"inline",label:Object(i.__)("Inline","jetpack")},{value:"link",label:Object(i.__)("Link","jetpack")}],H=Object(a.createElement)(f.BlockControls,null,x&&Object(a.createElement)(b.Toolbar,{isCollapsed:!0,icon:"admin-appearance",label:Object(i.__)("Style","jetpack"),controls:V.map((function(e){return{title:e.label,isActive:e.value===C,onClick:function(){return o({style:e.value})}}})),popoverProps:{className:"is-calendly"}})),G=Object(a.createElement)(f.InspectorControls,null,x&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)(b.PanelBody,{title:Object(i.__)("Styles","jetpack")},Object(a.createElement)(k.a,{clientId:r,styleOptions:V,onSelectStyle:o,activeStyle:C,attributes:t,viewportWidth:500}))),Object(a.createElement)(b.PanelBody,{title:Object(i.__)("Calendar Settings","jetpack"),initialOpen:!1},Object(a.createElement)("form",{onSubmit:z,className:"".concat(n,"-embed-form-sidebar")},Object(a.createElement)("input",{type:"text",id:"embedCode",onChange:function(e){return P(e.target.value)},placeholder:Object(i.__)("Calendly web address or embed code…","jetpack"),value:F,className:"components-placeholder__input"}),Object(a.createElement)("div",null,Object(a.createElement)(b.Button,{isSecondary:!0,isLarge:!0,type:"submit"},Object(i._x)("Embed","button label","jetpack")))),Object(a.createElement)(b.ToggleControl,{label:Object(i.__)("Hide Event Type Details","jetpack"),checked:O,onChange:function(){return o({hideEventTypeDetails:!O})}})),x&&Object(a.createElement)(b.Notice,{className:"".concat(n,"-color-notice"),isDismissible:!1},Object(a.createElement)(b.ExternalLink,{href:"https://help.calendly.com/hc/en-us/community/posts/360033166114-Embed-Widget-Color-Customization-Available-Now-"},Object(i.__)("Follow these instructions to change the colors in this block.","jetpack"))));return Object(a.createElement)("div",{className:n},G,H,x?"inline"===C?B:u?U:q:L)},save:function(e){var t=e.attributes.url;return Object(a.createElement)("a",{href:t},t)},attributes:l,example:{attributes:{submitButtonText:Object(i.__)("Schedule time with me","jetpack"),hideEventTypeDetails:!1,style:"inline",url:"https://calendly.com/wordpresscom/jetpack-block-example"}},transforms:{from:[{type:"raw",isMatch:function(e){return"P"===e.nodeName&&y.test(e.textContent)},transform:function(e){var t=_(e.textContent);return Object(o.createBlock)("jetpack/calendly",t)}}]}};Object(r.a)("calendly",O)},function(e,t,n){"use strict";n.r(t);var r,a=n(17),i=n(1),o=n(0),c=n(5),s=n(6),l=n(2),u=n(26),p=function(e){var t,n=e.id,r=e.setRating,a=e.children;return Object(o.createElement)("span",{className:"jetpack-ratings-button",tabIndex:0,role:"button",onKeyDown:(t=n,function(e){return e.keyCode===u.ENTER?r(t):null}),onClick:function(e){return function(){return r(e)}}(n)},a)},d=(n(217),n(134),{title:Object(i.__)("Star Rating","jetpack"),description:Object(i.__)("Rate movies, books, songs, recipes — anything you can put a number on.","jetpack"),icon:function(){return Object(o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(o.createElement)(l.Path,{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}))},keywords:[Object(i._x)("star","block search term","jetpack"),Object(i._x)("rating","block search term","jetpack"),Object(i._x)("review","block search term","jetpack")],category:"jetpack",example:{},styles:[{name:"filled",label:Object(i._x)("Filled","block style","jetpack"),isDefault:!0},{name:"outlined",label:Object(i._x)("Outlined","block style","jetpack")}],attributes:{rating:{type:"number",default:1},maxRating:{type:"number",default:5},color:{type:"string"},align:{type:"string",default:"left"}},edit:function(e){return function(t){var n=t.className,r=t.setAttributes,a=t.attributes,u=a.align,d=a.color,h=a.rating,m=a.maxRating,f=function(e){e===h&&Math.ceil(h)===h&&(e-=.5),r({rating:e})};return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(s.BlockControls,null,Object(o.createElement)(s.AlignmentToolbar,{value:u,onChange:function(e){return r({align:e})}})),Object(o.createElement)("div",{className:n,style:{textAlign:u}},Object(c.range)(1,m+1).map((function(t){return Object(o.createElement)(p,{key:t,id:t,setRating:f},Object(o.createElement)("span",null,Object(o.createElement)(e,{className:h>=t-.5?null:"is-rating-unfilled",color:d})),Object(o.createElement)("span",null,Object(o.createElement)(e,{className:h>=t?null:"is-rating-unfilled",color:d})))}))),Object(o.createElement)(s.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(i.__)("Settings","jetpack")},Object(o.createElement)(l.RangeControl,{label:Object(i.__)("Highest rating","jetpack"),value:m,onChange:function(e){return r({maxRating:e})},min:2,max:10}),Object(o.createElement)(s.PanelColorSettings,{title:Object(i.__)("Color Settings","jetpack"),initialOpen:!0,colorSettings:[{value:d,onChange:function(e){return r({color:e})},label:Object(i.__)("Color","jetpack")}]}))))}}((function(e){var t=function(e){return e&&e.color?e.color:"currentColor"}(e),n=function(e){return e&&e.className?e.className:""}(e);return Object(o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",color:t},Object(o.createElement)(l.Path,{className:n,fill:t,stroke:t,d:"M12,17.3l6.2,3.7l-1.6-7L22,9.2l-7.2-0.6L12,2L9.2,8.6L2,9.2L7.5,14l-1.6,7L12,17.3z"}))})),save:(r="★",function(e){var t=e.className,n=e.attributes,a=n.align,i=n.rating,s=n.color;return Object(o.createElement)("figure",{className:t,style:{textAlign:a}},Object(c.range)(1,i+1).map((function(e){return Object(o.createElement)("span",{key:e,style:{color:s}},r)})))})});Object(a.a)("rating-star",d)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(2),c=(n(161),n(24)),s=n(7),l=n.n(s),u=n(11),p=n.n(u),d=n(8),h=n.n(d),m=n(9),f=n.n(m),b=n(4),g=n.n(b),v=n(10),j=n.n(v),y=n(3),_=n.n(y),k=n(6),O=n(14),w=n(13),E=n(100),C=new(n.n(E).a),x=function(e){"A"===e.target.nodeName&&(window.confirm(Object(i.__)("Are you sure you wish to leave this page?","jetpack"))||e.preventDefault())},S=function(e){var t=e.className,n=e.source,r=void 0===n?"":n;return Object(a.createElement)(a.RawHTML,{className:t,onClick:x},r.length?C.render(r):"")},A=function(e){function t(){var e,n;l()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=h()(this,(e=f()(t)).call.apply(e,[this].concat(a))),_()(g()(n),"input",null),_()(g()(n),"state",{activePanel:"editor"}),_()(g()(n),"bindInput",(function(e){n.input=e})),_()(g()(n),"updateSource",(function(e){return n.props.setAttributes({source:e})})),_()(g()(n),"handleKeyDown",(function(e){var t=n.props,r=t.attributes,a=t.removeBlock,i=r.source;8===e.keyCode&&""===i&&(a(),e.preventDefault())})),_()(g()(n),"toggleMode",(function(e){return function(){return n.setState({activePanel:e})}})),n}return j()(t,e),p()(t,[{key:"componentDidUpdate",value:function(e){e.isSelected&&!this.props.isSelected&&"preview"===this.state.activePanel&&this.toggleMode("editor")(),!e.isSelected&&this.props.isSelected&&"editor"===this.state.activePanel&&this.input&&this.input.focus()}},{key:"isEmpty",value:function(){var e=this.props.attributes.source;return!e||""===e.trim()}},{key:"renderToolbarButton",value:function(e,t){var n=this.state.activePanel;return Object(a.createElement)("button",{className:"components-tab-button ".concat(n===e?"is-active":""),onClick:this.toggleMode(e)},Object(a.createElement)("span",null,t))}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.className,r=e.isSelected,o=t.source,c=this.state.activePanel;return!r&&this.isEmpty()?Object(a.createElement)("p",{className:"".concat(n,"__placeholder")},Object(i.__)("Write your _Markdown_ **here**…","jetpack")):Object(a.createElement)("div",{className:n},Object(a.createElement)(k.BlockControls,null,Object(a.createElement)("div",{className:"components-toolbar"},this.renderToolbarButton("editor",Object(i.__)("Markdown","jetpack")),this.renderToolbarButton("preview",Object(i.__)("Preview","jetpack")))),"preview"!==c&&r?Object(a.createElement)(k.PlainText,{className:"".concat(n,"__editor"),onChange:this.updateSource,onKeyDown:this.handleKeyDown,"aria-label":Object(i.__)("Markdown","jetpack"),innerRef:this.bindInput,value:o}):Object(a.createElement)(S,{className:"".concat(n,"__preview"),source:o}))}}]),t}(a.Component),F=Object(O.compose)([Object(w.withSelect)((function(e){return{currentBlockId:e("core/block-editor").getSelectedBlockClientId()}})),Object(w.withDispatch)((function(e,t){var n=t.currentBlockId;return{removeBlock:function(){return e("core/block-editor").removeBlocks(n)}}}))])(A),P=Object(i.__)("Try Markdown","jetpack"),T=Object(i.__)("Markdown is a text formatting syntax that is converted into HTML. You can _emphasize_ text or **make it strong** with just a few characters.","jetpack"),N=Object(c.b)()||Object(c.a)()?"https://en.support.wordpress.com/markdown-quick-reference/":"https://jetpack.com/support/jetpack-blocks/markdown-block/",M={title:Object(i.__)("Markdown","jetpack"),description:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("p",null,Object(i.__)("Use regular characters and punctuation to style text, links, and lists.","jetpack")),Object(a.createElement)(o.ExternalLink,{href:N},Object(i.__)("Support reference","jetpack"))),icon:Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 208 128"},Object(a.createElement)(o.Rect,{width:"198",height:"118",x:"5",y:"5",ry:"10",stroke:"currentColor",strokeWidth:"10",fill:"none"}),Object(a.createElement)(o.Path,{d:"M30 98v-68h20l20 25 20-25h20v68h-20v-39l-20 25-20-25v39zM155 98l-30-33h20v-35h20v35h20z"})),category:"jetpack",keywords:[Object(i._x)("formatting","block search term","jetpack"),Object(i._x)("syntax","block search term","jetpack"),Object(i._x)("markup","block search term","jetpack")],attributes:{source:{type:"string"}},supports:{html:!1},edit:F,save:function(e){var t=e.attributes,n=e.className;return Object(a.createElement)(S,{className:n,source:t.source})},example:{attributes:{source:"## ## ".concat(P,"\n\n").concat(T)}}};Object(r.a)("markdown",M)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(2),c=n(7),s=n.n(c),l=n(11),u=n.n(l),p=n(8),d=n.n(p),h=n(9),m=n.n(h),f=n(4),b=n.n(f),g=n(10),v=n.n(g),j=n(3),y=n.n(j),_=n(6),k=[{height:250,icon:Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(a.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(o.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-7-2h2V7h-4v2h2z"})),name:Object(i.__)("Rectangle 300x250","jetpack"),tag:"mrec",width:300,editorPadding:30},{height:90,icon:Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(a.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(o.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-4-4h-4v-2h2c1.1 0 2-.89 2-2V9c0-1.11-.9-2-2-2H9v2h4v2h-2c-1.1 0-2 .89-2 2v4h6v-2z"})),name:Object(i.__)("Leaderboard 728x90","jetpack"),tag:"leaderboard",width:728,editorPadding:60},{height:50,icon:Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(a.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(o.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-4-4v-1.5c0-.83-.67-1.5-1.5-1.5.83 0 1.5-.67 1.5-1.5V9c0-1.11-.9-2-2-2H9v2h4v2h-2v2h2v2H9v2h4c1.1 0 2-.89 2-2z"})),name:Object(i.__)("Mobile Leaderboard 320x50","jetpack"),tag:"mobile_leaderboard",width:320,editorPadding:100},{height:600,icon:Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(a.createElement)(o.Path,{fill:"none",d:"M.04 0h24v24h-24V0z"}),Object(a.createElement)(o.Path,{d:"M19.04 3h-14c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16h-14V5h14v14zm-6-2h2V7h-2v4h-2V7h-2v6h4z"})),name:Object(i.__)("Wide Skyscraper 160x600","jetpack"),tag:"wideskyscraper",width:160,editorPadding:30}],O=Object(i.__)("Pick an ad format","jetpack");function w(e){var t=e.value,n=e.onChange;return Object(a.createElement)(o.Dropdown,{position:"bottom right",renderToggle:function(e){var t=e.onToggle,n=e.isOpen;return Object(a.createElement)(o.Toolbar,{controls:[{icon:Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(o.Path,{d:"M1 9h2V7H1v2zm0 4h2v-2H1v2zm0-8h2V3c-1.1 0-2 .9-2 2zm8 16h2v-2H9v2zm-8-4h2v-2H1v2zm2 4v-2H1c0 1.1.9 2 2 2zM21 3h-8v6h10V5c0-1.1-.9-2-2-2zm0 14h2v-2h-2v2zM9 5h2V3H9v2zM5 21h2v-2H5v2zM5 5h2V3H5v2zm16 16c1.1 0 2-.9 2-2h-2v2zm0-8h2v-2h-2v2zm-8 8h2v-2h-2v2zm4 0h2v-2h-2v2z"})),title:O,onClick:t,extraProps:{"aria-expanded":n},className:"wp-block-jetpack-wordads__format-picker-icon"}]})},renderContent:function(e){var r=e.onClose;return Object(a.createElement)(o.NavigableMenu,{className:"wp-block-jetpack-wordads__format-picker"},k.map((function(e){var i=e.tag,c=e.name,s=e.icon;return Object(a.createElement)(o.MenuItem,{className:i===t?"is-active":void 0,icon:s,isSelected:i===t,key:i,onClick:function(){n(i),r()},role:"menuitemcheckbox"},c)})))}})}n(239);var E=n(119),C=n.n(E),x=n(120),S=n.n(x),A=n(121),F=n.n(A),P=n(122),T=n.n(P),N=function(e){function t(){var e,n;s()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=d()(this,(e=m()(t)).call.apply(e,[this].concat(a))),y()(b()(n),"handleHideMobileChange",(function(e){n.props.setAttributes({hideMobile:!!e})})),n}return v()(t,e),u()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.isSelected,c=t.format,s=t.hideMobile,l=k.filter((function(e){return e.tag===c}))[0],u=Object(a.createElement)(o.ToggleControl,{className:"jetpack-wordads__mobile-visibility",checked:Boolean(s),label:Object(i.__)("Hide ad on mobile views","jetpack"),onChange:this.handleHideMobileChange});return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(_.BlockControls,null,Object(a.createElement)(w,{value:c,onChange:function(e){return n({format:e})}})),Object(a.createElement)("div",{className:"wp-block-jetpack-wordads jetpack-wordads-".concat(c)},Object(a.createElement)("div",{className:"jetpack-wordads__ad",style:{width:l.width,height:l.height,backgroundImage:"url( ".concat(function(e){switch(e){case"leaderboard":return S.a;case"mobile_leaderboard":return F.a;case"wideskyscraper":return T.a;default:return C.a}}(c)," )"),backgroundSize:"cover"}}),r&&u))}}]),t}(a.Component),M=Object(i.__)("Ad","jetpack"),R=Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(a.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(o.Path,{fill:"currentColor",d:"M12,8H4A2,2 0 0,0 2,10V14A2,2 0 0,0 4,16H5V20A1,1 0 0,0 6,21H8A1,1 0 0,0 9,20V16H12L17,20V4L12,8M15,15.6L13,14H4V10H13L15,8.4V15.6M21.5,12C21.5,13.71 20.54,15.26 19,16V8C20.53,8.75 21.5,10.3 21.5,12Z"})),D={title:M,description:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("p",null,Object(i.__)("Earn income by adding high quality ads to your post","jetpack")),Object(a.createElement)(o.ExternalLink,{href:"https://wordads.co/"},Object(i.__)("Learn all about WordAds","jetpack"))),icon:R,attributes:{align:{type:"string",default:"center"},format:{type:"string",default:"mrec"},hideMobile:{type:"boolean",default:!1}},example:{attributes:{}},category:"jetpack",keywords:[Object(i.__)("ads","jetpack"),"WordAds",Object(i.__)("Advertisement","jetpack")],supports:{align:["left","center","right"],alignWide:!1,className:!1,customClassName:!1,html:!1,reusable:!1},edit:N,save:function(){return null}};Object(r.a)("wordads",D)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(2),c=(n(146),n(126),n(29)),s=n.n(c),l=n(7),u=n.n(l),p=n(11),d=n.n(p),h=n(8),m=n.n(h),f=n(9),b=n.n(f),g=n(4),v=n.n(g),j=n(10),y=n.n(j),_=n(3),k=n.n(_),O=n(23),w=n.n(O),E=n(12),C=n.n(E),x=n(58),S=n(6),A=n(15),F=n.n(A),P=n(5),T=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,c=new Array(r),s=0;s<r;s++)c[s]=arguments[s];return n=m()(this,(e=b()(t)).call.apply(e,[this].concat(c))),k()(v()(n),"renderInterval",(function(e,t){var r=n.props.day,c=e.opening,s=e.closing;return Object(a.createElement)(a.Fragment,{key:t},Object(a.createElement)("div",{className:"business-hours__row"},Object(a.createElement)("div",{className:C()(r.name,"business-hours__day")},0===t&&n.renderDayToggle()),Object(a.createElement)("div",{className:C()(r.name,"business-hours__hours")},Object(a.createElement)(o.TextControl,{type:"time",label:Object(i.__)("Opening","jetpack"),value:c,className:"business-hours__open",placeholder:"09:00",onChange:function(e){n.setHour(e,"opening",t)}}),Object(a.createElement)(o.TextControl,{type:"time",label:Object(i.__)("Closing","jetpack"),value:s,className:"business-hours__close",placeholder:"17:00",onChange:function(e){n.setHour(e,"closing",t)}})),Object(a.createElement)("div",{className:"business-hours__remove"},r.hours.length>1&&Object(a.createElement)(o.IconButton,{isSmall:!0,isLink:!0,icon:"trash",onClick:function(){n.removeInterval(t)}}))),t===r.hours.length-1&&Object(a.createElement)("div",{className:"business-hours__row business-hours-row__add"},Object(a.createElement)("div",{className:C()(r.name,"business-hours__day")}," "),Object(a.createElement)("div",{className:C()(r.name,"business-hours__hours")},Object(a.createElement)(o.IconButton,{isLink:!0,label:Object(i.__)("Add Hours","jetpack"),onClick:n.addInterval},Object(i.__)("Add Hours","jetpack"))),Object(a.createElement)("div",{className:"business-hours__remove"}," ")))})),k()(v()(n),"setHour",(function(e,t,r){var a=n.props,i=a.day,o=a.attributes;(0,a.setAttributes)({days:o.days.map((function(n){return n.name===i.name?F()({},n,{hours:n.hours.map((function(n,a){return a===r?F()({},n,k()({},t,e)):n}))}):n}))})})),k()(v()(n),"toggleClosed",(function(e){var t=n.props,r=t.day,a=t.attributes;(0,t.setAttributes)({days:a.days.map((function(t){if(t.name===r.name){var n=e?[{opening:"09:00",closing:"17:00"}]:[];return F()({},t,{hours:n})}return t}))})})),k()(v()(n),"addInterval",(function(){var e=n.props,t=e.day,r=e.attributes,a=e.setAttributes,i=r.days;t.hours.push({opening:"",closing:""}),a({days:i.map((function(e){return e.name===t.name?F()({},e,{hours:t.hours}):e}))})})),k()(v()(n),"removeInterval",(function(e){var t=n.props,r=t.day,a=t.attributes;(0,t.setAttributes)({days:a.days.map((function(t){return r.name===t.name?F()({},t,{hours:t.hours.filter((function(t,n){return e!==n}))}):t}))})})),n}return y()(t,e),d()(t,[{key:"isClosed",value:function(){var e=this.props.day;return Object(P.isEmpty)(e.hours)}},{key:"renderDayToggle",value:function(){var e=this.props,t=e.day,n=e.localization;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("span",{className:"business-hours__day-name"},n.days[t.name]),Object(a.createElement)(o.ToggleControl,{label:this.isClosed()?Object(i.__)("Closed","jetpack"):Object(i.__)("Open","jetpack"),checked:!this.isClosed(),onChange:this.toggleClosed}))}},{key:"renderClosed",value:function(){var e=this.props.day;return Object(a.createElement)("div",{className:"business-hours__row business-hours-row__closed"},Object(a.createElement)("div",{className:C()(e.name,"business-hours__day")},this.renderDayToggle()),Object(a.createElement)("div",{className:C()(e.name,"closed","business-hours__hours")}," "),Object(a.createElement)("div",{className:"business-hours__remove"}," "))}},{key:"render",value:function(){var e=this.props.day;return this.isClosed()?this.renderClosed():e.hours.map(this.renderInterval)}}]),t}(a.Component),N=n(18),M=n.n(N),R=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,o=new Array(r),c=0;c<r;c++)o[c]=arguments[c];return n=m()(this,(e=b()(t)).call.apply(e,[this].concat(o))),k()(v()(n),"renderInterval",(function(e,t){var r=n.props.day.hours;return Object(a.createElement)("span",{key:t},Object(i.sprintf)("%s - %s",n.formatTime(e.opening),n.formatTime(e.closing)),r.length>1+t&&Object(a.createElement)("span",null,", "))})),n}return y()(t,e),d()(t,[{key:"formatTime",value:function(e){var t=this.props.timeFormat,n=e.split(":"),r=M()(n,2),a=r[0],i=r[1],o=new Date;return!(!a||!i)&&(o.setHours(a),o.setMinutes(i),Object(x.date)(t,o))}},{key:"render",value:function(){var e=this,t=this.props,n=t.day,r=t.localization,o=n.hours.filter((function(t){return e.formatTime(t.opening)&&e.formatTime(t.closing)}));return Object(a.createElement)("div",{className:"jetpack-business-hours__item"},Object(a.createElement)("dt",{className:n.name},r.days[n.name]),Object(a.createElement)("dd",null,Object(P.isEmpty)(o)?Object(i._x)("Closed","business is closed on a full day","jetpack"):o.map(this.renderInterval),Object(a.createElement)("br",null)))}}]),t}(a.Component),D={days:{Sun:Object(i.__)("Sunday","jetpack"),Mon:Object(i.__)("Monday","jetpack"),Tue:Object(i.__)("Tuesday","jetpack"),Wed:Object(i.__)("Wednesday","jetpack"),Thu:Object(i.__)("Thursday","jetpack"),Fri:Object(i.__)("Friday","jetpack"),Sat:Object(i.__)("Saturday","jetpack")},startOfWeek:0},z=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=m()(this,(e=b()(t)).call.apply(e,[this].concat(a))),k()(v()(n),"state",{localization:D,hasFetched:!1}),n}return y()(t,e),d()(t,[{key:"componentDidMount",value:function(){this.apiFetch()}},{key:"apiFetch",value:function(){var e=this;this.setState({data:D},(function(){w()({path:"/wpcom/v2/business-hours/localized-week"}).then((function(t){e.setState({localization:t,hasFetched:!0})}),(function(){e.setState({localization:D,hasFetched:!0})}))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.className,c=t.isSelected,l=n.days,u=this.state,p=u.localization,d=u.hasFetched,h=p.startOfWeek,m=l.concat(l.slice(0,h)).slice(h);if(!d)return Object(a.createElement)(o.Placeholder,{icon:Object(a.createElement)(S.BlockIcon,{icon:B}),label:Object(i.__)("Loading business hours","jetpack")});if(!c){var f=Object(x.__experimentalGetSettings)().formats.time;return Object(a.createElement)("dl",{className:C()(r,"jetpack-business-hours")},m.map((function(e,t){return Object(a.createElement)(R,{key:t,day:e,localization:p,timeFormat:f})})))}return Object(a.createElement)("div",{className:C()(r,"is-edit")},m.map((function(t,n){return Object(a.createElement)(T,s()({key:n,day:t,localization:p},e.props))})))}}]),t}(a.Component),I=n(20),L=[{name:"Sun",hours:[]},{name:"Mon",hours:[{opening:"09:00",closing:"17:00"}]},{name:"Tue",hours:[{opening:"09:00",closing:"17:00"}]},{name:"Wed",hours:[{opening:"09:00",closing:"17:00"}]},{name:"Thu",hours:[{opening:"09:00",closing:"17:00"}]},{name:"Fri",hours:[{opening:"09:00",closing:"17:00"}]},{name:"Sat",hours:[]}],B=Object(I.a)(Object(a.createElement)(o.Path,{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"})),q={title:Object(i.__)("Business Hours","jetpack"),description:Object(i.__)("Display opening hours for your business.","jetpack"),icon:B,category:"jetpack",supports:{html:!0},keywords:[Object(i._x)("opening hours","block search term","jetpack"),Object(i._x)("closing time","block search term","jetpack"),Object(i._x)("schedule","block search term","jetpack")],attributes:{days:{type:"array",default:L}},edit:function(e){return Object(a.createElement)(z,e)},save:function(){return null},example:{attributes:{days:L}}};Object(r.a)("business-hours",q)},function(e,t,n){"use strict";n.r(t);n(35);var r=n(21),a=n.n(r),i=n(0),o=n(16),c=n(53);Object(o.setCategories)([].concat(a()(Object(o.getCategories)().filter((function(e){return"jetpack"!==e.slug}))),[{slug:"jetpack",title:"Jetpack",icon:Object(i.createElement)(c.a,null)}]));var s,l,u,p,d=n(15),h=n.n(d),m=n(23),f=n.n(m),b=n(13),g=n(1),v=(n(78),n(28)),j=n(34),y=n(24);function _(){var e=Object(j.a)();return void 0!==typeof window&&window.location&&e?Object(y.b)()||Object(y.a)()?"https://wordpress.com/plans/my-plan/".concat(e):"".concat(window.location.protocol,"//").concat(e.replace("::","/"),"/wp-admin/admin.php?page=jetpack#/my-plan"):null}if(regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===typeof window||!window.location){e.next=16;break}if(!Object(v.parse)(window.location.href,!0).query.plan_upgraded){e.next=16;break}if(s=null,e.prev=4,!Object(y.b)()){e.next=7;break}return e.abrupt("break",16);case 7:return e.next=9,regeneratorRuntime.awrap(f()({path:"/jetpack/v4/site"}));case 9:l=e.sent,u=JSON.parse(l.data),s=u.plan.product_name;case 12:return e.prev=12,p=_(),Object(b.dispatch)("core/notices").createNotice("success",s?Object(g.sprintf)(Object(g.__)("Congratulations! Your site is now on the %s plan.","jetpack"),s):Object(g.__)("Congratulations! Your site is now on a paid plan.","jetpack"),h()({isDismissible:!0},p&&{actions:[{url:_(),label:Object(g.__)("View my plan","jetpack")}]})),e.finish(12);case 16:case"end":return e.stop()}}),null,null,[[4,,12,16]]),void 0!==typeof window&&window.location){var k=Object(v.parse)(window.location.href,!0).query;k.stripe_connect_success?Object(b.dispatch)("core/notices").createNotice("success",Object(g.__)("Congrats! Your site is now connected to Stripe. You can start making money by adding your first subscription!","jetpack")):k.stripe_connect_cancelled&&Object(b.dispatch)("core/notices").createNotice("error",Object(g.__)("You cancelled connecting your site to Stripe.","jetpack"))}var O=n(50);if("object"==typeof window&&"object"==typeof window.Jetpack_Editor_Initial_State&&"object"==typeof window.Jetpack_Editor_Initial_State.tracksUserData&&void 0!==window.Jetpack_Editor_Initial_State.wpcomBlogId){var w=window.Jetpack_Editor_Initial_State.tracksUserData,E=w.userid,C=w.username;O.a.initialize(E,C,{blog_id:window.Jetpack_Editor_Initial_State.wpcomBlogId})}},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(2),c=n(16),s=n(7),l=n.n(s),u=n(11),p=n.n(u),d=n(8),h=n.n(d),m=n(9),f=n.n(m),b=n(4),g=n.n(b),v=n(10),j=n.n(v),y=n(3),_=n.n(y),k=n(5),O=n(6),w=n(23),E=n.n(w),C=n(30);function x(e){if(!F.test(e))return"";var t=Object(C.getPath)(e);return t?t.startsWith("pin/")?"embedPin":t.match(/^([^/]+)\/?$/)?"embedUser":t.match(/^([^/]+)\/([^/]+)\/?$/)?"embedBoard":"":""}var S=/^\s*https?:\/\/pin\.it\//i,A=function(e){function t(){var e;return l()(this,t),e=h()(this,f()(t).apply(this,arguments)),_()(g()(e),"resolveRedirect",(function(){var t=e.props.attributes.url;e.fetchRequest=E()({path:"/wpcom/v2/resolve-redirect/".concat(t)}),e.fetchRequest.then((function(t){e.fetchRequest=null,e.props.setAttributes({url:t.url}),e.setState({resolvingRedirect:!1,editedUrl:t.url})}),(function(t){"abort"!==t.statusText&&(e.fetchRequest=null,e.setState({resolvingRedirect:!1,editingUrl:!0}))}))})),_()(g()(e),"hideOverlay",(function(){e.setState({interactive:!0})})),_()(g()(e),"setUrl",(function(t){t&&t.preventDefault();var n=e.state.editedUrl;e.props.setAttributes({url:n}),e.setState({editingUrl:!1}),S.test(n)&&e.setState({resolvingRedirect:!0})})),e.state={editedUrl:e.props.attributes.url||"",editingUrl:!1,resolvingRedirect:S.test(e.props.attributes.url),interactive:!1},e}return j()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.state.resolvingRedirect&&this.resolveRedirect()}},{key:"componentDidUpdate",value:function(e,t){!t.resolvingRedirect&&this.state.resolvingRedirect&&this.resolveRedirect()}},{key:"componentWillUnmount",value:function(){Object(k.invoke)(this.fetchRequest,["abort"])}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.className,s=n.url,l=this.state,u=l.editedUrl,p=l.interactive,d=l.editingUrl;if(l.resolvingRedirect)return Object(a.createElement)("div",{className:"wp-block-embed is-loading"},Object(a.createElement)(o.Spinner,null),Object(a.createElement)("p",null,Object(i.__)("Embedding…")));var h=x(s),m="<a data-pin-do='".concat(h,"' href='").concat(s,"'></a>"),f=s&&!h,b=Object(a.createElement)(O.BlockControls,null,Object(a.createElement)(o.Toolbar,null,Object(a.createElement)(o.IconButton,{className:"components-toolbar__control",label:Object(i.__)("Edit URL","jetpack"),icon:"edit",onClick:function(){return e.setState({editingUrl:!0})}})));return d||!s||f?Object(a.createElement)("div",{className:r},b,Object(a.createElement)(o.Placeholder,{label:Object(i.__)("Pinterest","jetpack"),icon:Object(a.createElement)(O.BlockIcon,{icon:T})},Object(a.createElement)("form",{onSubmit:this.setUrl},Object(a.createElement)("input",{type:"url",value:u,className:"components-placeholder__input","aria-label":Object(i.__)("Pinterest URL","jetpack"),placeholder:Object(i.__)("Enter URL to embed here…","jetpack"),onChange:function(t){return e.setState({editedUrl:t.target.value})}}),Object(a.createElement)(o.Button,{isLarge:!0,isSecondary:!0,type:"submit"},Object(i._x)("Embed","button label","jetpack")),f&&Object(a.createElement)("p",{className:"components-placeholder__error"},Object(i.__)("Sorry, this content could not be embedded.","jetpack"),Object(a.createElement)("br",null),Object(a.createElement)(o.Button,{isLarge:!0,onClick:function(){return function(e,t){var n=Object(a.createElement)("a",{href:e},e);t(Object(c.createBlock)("core/paragraph",{content:Object(a.renderToString)(n)}))}(u,e.props.onReplace)}},Object(i._x)("Convert block to link","button label","jetpack")))))):Object(a.createElement)("div",{className:r},b,Object(a.createElement)("div",null,Object(a.createElement)(o.SandBox,{html:m,scripts:["https://assets.pinterest.com/js/pinit.js"],onFocus:this.hideOverlay}),!p&&Object(a.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(a.Component),F=/^\s*https?:\/\/(?:www\.)?(?:[a-z]{2}\.)?(?:pinterest\.[a-z.]+|pin\.it)\/([^/]+)(\/[^/]+)?/i,P=Object(i.__)("Pinterest","jetpack"),T=Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(o.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(a.createElement)(o.G,null,Object(a.createElement)(o.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,4.236,2.636,7.855,6.356,9.312c-0.087-0.791-0.166-2.005,0.035-2.869c0.182-0.78,1.173-4.971,1.173-4.971s-0.299-0.599-0.299-1.484c0-1.39,0.806-2.429,1.809-2.429c0.853,0,1.265,0.641,1.265,1.409c0,0.858-0.546,2.141-0.828,3.329c-0.236,0.996,0.499,1.807,1.481,1.807c1.777,0,3.144-1.874,3.144-4.579c0-2.394-1.72-4.068-4.177-4.068c-2.845,0-4.515,2.134-4.515,4.34c0,0.859,0.331,1.781,0.744,2.282c0.082,0.099,0.094,0.186,0.069,0.287C8.18,14.682,8.011,15.361,7.978,15.5c-0.044,0.183-0.145,0.222-0.334,0.134c-1.249-0.581-2.03-2.407-2.03-3.874c0-3.154,2.292-6.051,6.607-6.051c3.469,0,6.165,2.472,6.165,5.775c0,3.446-2.173,6.22-5.189,6.22c-1.013,0-1.966-0.526-2.292-1.148c0,0-0.501,1.909-0.623,2.377c-0.226,0.869-0.835,1.957-1.243,2.622C9.975,21.844,10.969,22,12,22c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2z"}))),N={title:P,description:Object(i.__)("Embed a Pinterest pin, board, or user.","jetpack"),icon:T,category:"jetpack",supports:{align:!1,html:!1},attributes:{url:{type:"string"}},edit:A,save:function(e){var t=e.attributes,n=e.className,r=t.url;return x(r)?Object(a.createElement)("div",{className:n},Object(a.createElement)("a",{"data-pin-do":x(r),href:r})):null},transforms:{from:[{type:"raw",isMatch:function(e){return"P"===e.nodeName&&F.test(e.textContent)},transform:function(e){return Object(c.createBlock)("jetpack/pinterest",{url:e.textContent.trim()})}}]},example:{attributes:{url:"https://pinterest.com/anapinskywalker/"}}};Object(r.a)("pinterest",N)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(2),c=n(20),s=n(7),l=n.n(s),u=n(11),p=n.n(u),d=n(8),h=n.n(d),m=n(9),f=n.n(m),b=n(4),g=n.n(b),v=n(10),j=n.n(v),y=n(3),_=n.n(y),k=n(6),O=n(13),w=n(12),E=n.n(w),C=n(32),x=[{value:C.b,label:Object(i.__)("Show after threshold","jetpack")},{value:C.c,label:Object(i.__)("Show before threshold","jetpack")}],S=function(e){function t(){var e,n;l()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=h()(this,(e=f()(t)).call.apply(e,[this].concat(a))),_()(g()(n),"state",{isThresholdValid:!0}),_()(g()(n),"setCriteria",(function(e){return n.props.setAttributes({criteria:e})})),_()(g()(n),"setThreshold",(function(e){if(/^\d+$/.test(e)&&+e>0)return n.props.setAttributes({threshold:+e}),void n.setState({isThresholdValid:!0});n.setState({isThresholdValid:!1})})),n}return j()(t,e),p()(t,[{key:"getNoticeLabel",value:function(){return this.props.attributes.criteria===C.b?Object(i.sprintf)(Object(i._n)("This block will only appear to people who have visited this page more than once.","This block will only appear to people who have visited this page more than %d times.",+this.props.attributes.threshold,"jetpack"),this.props.attributes.threshold):Object(i.sprintf)(Object(i._n)("This block will only appear to people who are visiting this page for the first time.","This block will only appear to people who have visited this page at most %d times.",+this.props.attributes.threshold,"jetpack"),this.props.attributes.threshold)}},{key:"render",value:function(){return Object(a.createElement)("div",{className:E()(this.props.className,{"wp-block-jetpack-repeat-visitor--is-unselected":!this.props.isSelected})},Object(a.createElement)(o.Placeholder,{icon:F,label:Object(i.__)("Repeat Visitor","jetpack"),className:"wp-block-jetpack-repeat-visitor-placeholder"},Object(a.createElement)(o.TextControl,{className:"wp-block-jetpack-repeat-visitor-threshold",defaultValue:this.props.attributes.threshold,help:this.state.isThresholdValid?"":Object(i.__)("Please enter a valid number.","jetpack"),label:Object(i.__)("Visit count threshold","jetpack"),min:"1",onChange:this.setThreshold,pattern:"[0-9]",type:"number"}),Object(a.createElement)(o.RadioControl,{label:Object(i.__)("Visibility","jetpack"),selected:this.props.attributes.criteria,options:x,onChange:this.setCriteria})),Object(a.createElement)(o.Notice,{status:"info",isDismissible:!1},this.getNoticeLabel()),Object(a.createElement)(k.InnerBlocks,null))}}]),t}(a.Component),A=Object(O.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.isBlockSelected,a=n.hasSelectedInnerBlock;return{isSelected:r(t.clientId)||a(t.clientId)}}))(S),F=(n(228),Object(c.a)(Object(a.createElement)(o.Path,{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}))),P={attributes:{criteria:{type:"string",default:C.b},threshold:{type:"number",default:C.d}},category:"jetpack",description:Object(i.__)("Control block visibility based on how often a visitor has viewed the page.","jetpack"),icon:F,keywords:[Object(i._x)("return","block search term","jetpack"),Object(i._x)("visitors","block search term","jetpack"),Object(i._x)("visibility","block search term","jetpack")],supports:{html:!1},title:Object(i.__)("Repeat Visitor","jetpack"),edit:A,save:function(e){var t=e.className;return Object(a.createElement)("div",{className:t},Object(a.createElement)(k.InnerBlocks.Content,null))},example:{attributes:{criteria:C.b,threshold:C.d},innerBlocks:[{name:"core/paragraph",attributes:{content:Object(i.__)("This block will only appear to a visitor who visited the page three or more times.","jetpack")}}]}};Object(r.a)("repeat-visitor",P)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(2),c=n(21),s=n.n(c),l=n(7),u=n.n(l),p=n(8),d=n.n(p),h=n(9),m=n.n(h),f=n(4),b=n.n(f),g=n(10),v=n.n(g),j=n(3),y=n.n(j),_=n(23),k=n.n(_),O=n(12),w=n.n(O),E=n(31),C=n(6),x=n(11),S=n.n(x),A=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,i=new Array(r),c=0;c<r;c++)i[c]=arguments[c];return n=d()(this,(e=m()(t)).call.apply(e,[this].concat(i))),y()(b()(n),"state",{interest_categories:[]}),y()(b()(n),"retrieveGroups",(function(){k()({method:"GET",path:"/wpcom/v2/mailchimp/groups"}).then((function(e){var t=e.interest_categories;n.setState({interest_categories:t})}))})),y()(b()(n),"render",(function(){var e=n.state.interest_categories,t=n.props,r=t.interests,i=t.onChange;return Object(a.createElement)(a.Fragment,null,e&&(e||[]).map((function(e){return e.interests.map((function(e){return Object(a.createElement)(o.CheckboxControl,{label:e.name,value:e.id,checked:r.includes(e.id),onChange:function(t){return i(e.id,t)},key:e.id})}))})))})),n}return v()(t,e),S()(t,[{key:"componentDidMount",value:function(){this.retrieveGroups()}}]),t}(a.Component),F=A;A.defaultProps={interests:[],onChange:function(){return null}};var P=function(e){function t(){var e;return u()(this,t),e=d()(this,m()(t).apply(this,arguments)),y()(b()(e),"componentDidMount",(function(){e.apiCall()})),y()(b()(e),"onError",(function(t){var n=e.props.noticeOperations;n.removeAllNotices(),n.createErrorNotice(t)})),y()(b()(e),"apiCall",(function(){var t={path:"/wpcom/v2/mailchimp",method:"GET"};k()(t).then((function(t){var n=t.connect_url,r="connected"===t.code?1:2;e.setState({connected:r,connectURL:n})}),(function(t){e.setState({connected:2,connectURL:null}),e.onError(t.message)}))})),y()(b()(e),"auditionNotification",(function(t){e.setState({audition:t}),e.timeout&&clearTimeout(e.timeout),e.timeout=setTimeout(e.clearAudition,3e3)})),y()(b()(e),"clearAudition",(function(){e.setState({audition:null})})),y()(b()(e),"updateProcessingText",(function(t){(0,e.props.setAttributes)({processingLabel:t}),e.auditionNotification("processing")})),y()(b()(e),"updateSuccessText",(function(t){(0,e.props.setAttributes)({successLabel:t}),e.auditionNotification("success")})),y()(b()(e),"updateErrorText",(function(t){(0,e.props.setAttributes)({errorLabel:t}),e.auditionNotification("error")})),y()(b()(e),"updateEmailPlaceholder",(function(t){(0,e.props.setAttributes)({emailPlaceholder:t}),e.clearAudition()})),y()(b()(e),"labelForAuditionType",(function(t){var n=e.props.attributes,r=n.processingLabel,a=n.successLabel,i=n.errorLabel;return"processing"===t?r:"success"===t?a:"error"===t?i:null})),y()(b()(e),"roleForAuditionType",(function(e){return"error"===e?"alert":"status"})),y()(b()(e),"render",(function(){var t=e.props,n=t.attributes,r=t.className,c=t.notices,l=t.noticeUI,u=t.setAttributes,p=e.state,d=p.audition,h=p.connected,m=p.connectURL,f=n.emailPlaceholder,b=n.consentText,g=n.interests,v=n.processingLabel,j=n.successLabel,_=n.errorLabel,k=n.preview,O=n.signupFieldTag,x=n.signupFieldValue,S="wp-block-jetpack-mailchimp_",A=Object(a.createElement)(o.Placeholder,{icon:N,notices:c},Object(a.createElement)(o.Spinner,null)),P=Object(a.createElement)(o.Placeholder,{className:"wp-block-jetpack-mailchimp",icon:N,label:Object(i.__)("Mailchimp","jetpack"),notices:c,instructions:Object(i.__)("You need to connect your Mailchimp account and choose a list in order to start collecting Email subscribers.","jetpack")},Object(a.createElement)("div",null,Object(a.createElement)(o.Button,{isDefault:!0,isLarge:!0,href:m,target:"_blank"},Object(i.__)("Set up Mailchimp form","jetpack"))),Object(a.createElement)(o.Button,{isLink:!0,onClick:e.apiCall},Object(i.__)("Re-check Connection","jetpack"))),T=Object(a.createElement)(C.InspectorControls,null,Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Text Elements","jetpack")},Object(a.createElement)(o.TextControl,{label:Object(i.__)("Email Placeholder","jetpack"),value:f,onChange:e.updateEmailPlaceholder})),Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Notifications","jetpack")},Object(a.createElement)(o.TextControl,{label:Object(i.__)("Processing text","jetpack"),value:v,onChange:e.updateProcessingText}),Object(a.createElement)(o.TextControl,{label:Object(i.__)("Success text","jetpack"),value:j,onChange:e.updateSuccessText}),Object(a.createElement)(o.TextControl,{label:Object(i.__)("Error text","jetpack"),value:_,onChange:e.updateErrorText})),Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Mailchimp Groups","jetpack")},Object(a.createElement)(F,{interests:g,onChange:function(e,t){var n=s()(new Set([].concat(s()(g),[e]))).filter((function(n){return!(n===e&&!t)&&n}));u({interests:n})}}),Object(a.createElement)(o.ExternalLink,{href:"https://mailchimp.com/help/send-groups-audience/"},Object(i.__)("Learn about groups","jetpack"))),Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Signup Location Tracking","jetpack")},Object(a.createElement)(o.TextControl,{label:Object(i.__)("Signup Field Tag","jetpack"),placeholder:Object(i.__)("SIGNUP"),value:O,onChange:function(e){return u({signupFieldTag:e})}}),Object(a.createElement)(o.TextControl,{label:Object(i.__)("Signup Field Value","jetpack"),placeholder:Object(i.__)("website"),value:x,onChange:function(e){return u({signupFieldValue:e})}}),Object(a.createElement)(o.ExternalLink,{href:"https://mailchimp.com/help/determine-webpage-signup-location/"},Object(i.__)("Learn about signup location tracking","jetpack"))),Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Mailchimp Connection","jetpack")},Object(a.createElement)(o.ExternalLink,{href:m},Object(i.__)("Manage Connection","jetpack")))),M=w()(r,y()({},"".concat(S,"notication-audition"),d)),R=Object(a.createElement)("div",{className:M},Object(a.createElement)(o.TextControl,{"aria-label":f,className:"wp-block-jetpack-mailchimp_text-input",disabled:!0,onChange:function(){return!1},placeholder:f,title:Object(i.__)("You can edit the email placeholder in the sidebar.","jetpack"),type:"email"}),Object(a.createElement)(E.a,e.props),Object(a.createElement)(C.RichText,{tagName:"p",placeholder:Object(i.__)("Write consent text","jetpack"),value:b,onChange:function(e){return u({consentText:e})},inlineToolbar:!0}),d&&Object(a.createElement)("div",{className:"".concat(S,"notification ").concat(S).concat(d),role:e.roleForAuditionType(d)},e.labelForAuditionType(d))),D=R;return Object(a.createElement)(a.Fragment,null,l,k&&D,!k&&0===h&&A,!k&&2===h&&P,!k&&1===h&&T,!k&&1===h&&R)})),e.state={audition:null,connected:0,connectURL:null},e.timeout=null,e}return v()(t,e),t}(a.Component),T=Object(o.withNotices)(P),N=(n(156),Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(a.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(o.Path,{d:"M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"}))),M={title:Object(i.__)("Mailchimp","jetpack"),icon:N,description:Object(i.__)("A form enabling readers to join a Mailchimp list.","jetpack"),category:"jetpack",keywords:[Object(i._x)("email","block search term","jetpack"),Object(i._x)("subscription","block search term","jetpack"),Object(i._x)("newsletter","block search term","jetpack")],attributes:{emailPlaceholder:{type:"string",default:Object(i.__)("Enter your email","jetpack")},submitButtonText:{type:"string",default:Object(i.__)("Join my email list","jetpack")},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},consentText:{type:"string",default:Object(i.__)("By clicking submit, you agree to share your email address with the site owner and Mailchimp to receive marketing, updates, and other emails from the site owner. Use the unsubscribe link in those emails to opt out at any time.","jetpack")},interests:{type:"array",default:[]},processingLabel:{type:"string",default:Object(i.__)("Processing…","jetpack")},signupFieldTag:{type:"string"},signupFieldValue:{type:"string"},successLabel:{type:"string",default:Object(i.__)("Success! You're on the list.","jetpack")},errorLabel:{type:"string",default:Object(i.__)("Whoops! There was an error and we couldn't process your subscription. Please reload the page and try again.","jetpack")},preview:{type:"boolean",default:!1}},edit:T,save:function(){return null},example:{attributes:{preview:!0}}};Object(r.a)("mailchimp",M)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(2),o=n(1),c=n(7),s=n.n(c),l=n(11),u=n.n(l),p=n(8),d=n.n(p),h=n(9),m=n.n(h),f=n(4),b=n.n(f),g=n(10),v=n.n(g),j=n(3),y=n.n(j),_=n(12),k=n.n(_),O=n(31),w=n(23),E=n.n(w),C=n(5),x=n(45),S=n(49),A=n(30),F=n(14),P=n(13),T=n(6),N=n(40),M=n(56),R=n.n(M),D=n(50),z=n(57),I=(n(218),function(e){var t=e.stripeConnectUrl;return Object(a.createElement)(z.a,{buttonLabel:Object(o.__)("Connect","jetpack"),icon:Object(a.createElement)(R.a,{className:"jetpack-stripe-nudge__icon",size:18,"aria-hidden":"true",role:"img",focusable:"false"}),href:t,onClick:function(e){D.a.tracks.recordEvent("jetpack_editor_block_stripe_connect_click",{block:e})},title:Object(o.__)("Connect to Stripe to use this block on your site","jetpack"),subtitle:Object(o.__)("This block will be hidden from your visitors until you connect to Stripe.","jetpack")})}),L=function(e){function t(){var e;s()(this,t),e=d()(this,m()(t).apply(this,arguments)),y()(b()(e),"componentDidMount",(function(){e.apiCall()})),y()(b()(e),"onError",(function(t){var n=e.props.noticeOperations;n.removeAllNotices(),n.createErrorNotice(t)})),y()(b()(e),"apiCall",(function(){var t={path:"/wpcom/v2/memberships/status",method:"GET"};E()(t).then((function(t){if(t.errors&&Object.values(t.errors)&&Object.values(t.errors)[0][0])return e.setState({connected:null,connectURL:2}),void e.onError(Object.values(t.errors)[0][0]);var n=t.connect_url,r=t.products,a=t.should_upgrade_to_access_memberships,i=t.upgrade_url,o=t.site_slug,c=t.connected_account_id?1:2;e.setState({connected:c,connectURL:n,products:r,shouldUpgrade:a,upgradeURL:i,siteSlug:o})}),(function(t){e.setState({connected:2,connectURL:null}),e.onError(t.message)}))})),y()(b()(e),"getCurrencyList",V.map((function(e){var t=Object(x.a)(e).symbol;return{value:e,label:t===e?e:"".concat(e," ").concat(Object(C.trimEnd)(t,"."))}}))),y()(b()(e),"handleCurrencyChange",(function(t){return e.setState({editedProductCurrency:t})})),y()(b()(e),"handleRenewIntervalChange",(function(t){return e.setState({editedProductRenewInterval:t})})),y()(b()(e),"handlePriceChange",(function(t){t=parseFloat(t),e.setState({editedProductPrice:t,editedProductPriceValid:!isNaN(t)&&t>=5})})),y()(b()(e),"handleTitleChange",(function(t){return e.setState({editedProductTitle:t,editedProductTitleValid:t.length>0})})),y()(b()(e),"saveProduct",(function(){if(e.state.editedProductTitle&&0!==e.state.editedProductTitle.length)if(!e.state.editedProductPrice||isNaN(e.state.editedProductPrice)||e.state.editedProductPrice<5)e.setState({editedProductPriceValid:!1});else{e.setState({addingMembershipAmount:2});var t={path:"/wpcom/v2/memberships/product",method:"POST",data:{currency:e.state.editedProductCurrency,price:e.state.editedProductPrice,title:e.state.editedProductTitle,interval:e.state.editedProductRenewInterval}};E()(t).then((function(t){e.setState({addingMembershipAmount:0,products:e.state.products.concat([{id:t.id,title:t.title,interval:t.interval,price:t.price,currency:t.currency}])}),e.setMembershipAmount(t.id)}),(function(t){e.setState({addingMembershipAmount:1}),e.onError(t.message)}))}else e.setState({editedProductTitleValid:!1})})),y()(b()(e),"renderAmount",(function(e){var t=Object(S.a)(parseFloat(e.price),e.currency);return"1 month"===e.interval?Object(o.sprintf)(Object(o.__)("%s / month","jetpack"),t):"1 year"===e.interval?Object(o.sprintf)(Object(o.__)("%s / year","jetpack"),t):"one-time"===e.interval?t:Object(o.sprintf)(Object(o.__)("%s / %s","jetpack"),t,e.interval)})),y()(b()(e),"renderAddMembershipAmount",(function(t){return 0!==e.state.addingMembershipAmount||t?2!==e.state.addingMembershipAmount?Object(a.createElement)("div",null,Object(a.createElement)("div",{className:"membership-button__price-container"},Object(a.createElement)(i.SelectControl,{className:"membership-button__field membership-button__field-currency",label:Object(o.__)("Currency","jetpack"),onChange:e.handleCurrencyChange,options:e.getCurrencyList,value:e.state.editedProductCurrency}),Object(a.createElement)(i.TextControl,{label:Object(o.__)("Price","jetpack"),className:k()({"membership-membership-button__field":!0,"membership-button__field-price":!0,"membership-button__field-error":!e.state.editedProductPriceValid}),onChange:e.handlePriceChange,placeholder:Object(S.a)(0,e.state.editedProductCurrency),required:!0,min:"5.00",step:"1",type:"number",value:e.state.editedProductPrice||""})),Object(a.createElement)(i.TextControl,{className:k()({"membership-button__field":!0,"membership-button__field-error":!e.state.editedProductTitleValid}),label:Object(o.__)("Describe your subscription in a few words","jetpack"),onChange:e.handleTitleChange,placeholder:Object(o.__)("Subscription description","jetpack"),value:e.state.editedProductTitle}),Object(a.createElement)(i.SelectControl,{label:Object(o.__)("Renew interval","jetpack"),onChange:e.handleRenewIntervalChange,options:[{label:Object(o.__)("Monthly","jetpack"),value:"1 month"},{label:Object(o.__)("Yearly","jetpack"),value:"1 year"}],value:e.state.editedProductRenewInterval}),Object(a.createElement)("div",null,Object(a.createElement)(i.Button,{isPrimary:!0,isLarge:!0,className:"membership-button__field-button membership-button__add-amount",onClick:e.saveProduct},Object(o.__)("Add this plan","jetpack")),Object(a.createElement)(i.Button,{isLarge:!0,className:"membership-button__field-button",onClick:function(){return e.setState({addingMembershipAmount:0})}},Object(o.__)("Cancel","jetpack")))):void 0:Object(a.createElement)(i.Button,{isPrimary:!0,isLarge:!0,onClick:function(){return e.setState({addingMembershipAmount:1})}},Object(o.__)("Add a plan","jetpack"))})),y()(b()(e),"getFormattedPriceByProductId",(function(t){var n=e.state.products.filter((function(e){return parseInt(e.id)===parseInt(t)})).pop();return Object(S.a)(parseFloat(n.price),n.currency)})),y()(b()(e),"setMembershipAmount",(function(t){return e.props.setAttributes({planId:t,submitButtonText:e.getFormattedPriceByProductId(t)+Object(o.__)(" Contribution","jetpack")})})),y()(b()(e),"renderMembershipAmounts",(function(){return Object(a.createElement)("div",null,e.state.products.map((function(t){return Object(a.createElement)(i.Button,{className:"membership-button__field-button",isLarge:!0,key:t.id,onClick:function(){return e.setMembershipAmount(t.id)}},e.renderAmount(t))})))})),y()(b()(e),"renderDisclaimer",(function(){return Object(a.createElement)("div",{className:"membership-button__disclaimer"},Object(a.createElement)(i.ExternalLink,{href:"https://en.support.wordpress.com/recurring-payments-button/#related-fees"},Object(o.__)("Read more about Recurring Payments and related fees.","jetpack")))})),y()(b()(e),"render",(function(){var t=e.props,n=t.attributes,r=t.className,c=t.notices,s=e.state,l=s.connected,u=s.products,p=n.align,d=e.getConnectUrl(),h=Object(a.createElement)(T.InspectorControls,null,Object(a.createElement)(i.PanelBody,{title:Object(o.__)("Product","jetpack")},Object(a.createElement)(i.SelectControl,{label:Object(o.__)("Payment plan","jetpack"),value:e.props.attributes.planId,onChange:e.setMembershipAmount,options:e.state.products.map((function(t){return{label:e.renderAmount(t),value:t.id,key:t.id}}))})),Object(a.createElement)(i.PanelBody,{title:Object(o.__)("Management","jetpack")},Object(a.createElement)(i.ExternalLink,{href:"https://wordpress.com/earn/payments/".concat(e.state.siteSlug)},Object(o.__)("See your earnings, subscriber list, and products.","jetpack")))),m=k()(r,["wp-block-button__link","components-button","is-primary","is-button","align".concat(p)]),f=Object(a.createElement)(O.a,{className:m,submitButtonText:e.props.attributes.submitButtonText,attributes:e.props.attributes,setAttributes:e.props.setAttributes});return Object(a.createElement)(a.Fragment,null,e.props.noticeUI,!e.hasUpgradeNudge&&!e.state.shouldUpgrade&&2===l&&Object(a.createElement)(I,{blockName:"recurring-payments",stripeConnectUrl:d}),!e.hasUpgradeNudge&&e.state.shouldUpgrade&&Object(a.createElement)("div",{className:"wp-block-jetpack-recurring-payments"},Object(a.createElement)(i.Placeholder,{icon:Object(a.createElement)(T.BlockIcon,{icon:q}),label:Object(o.__)("Recurring Payments","jetpack"),notices:c,instructions:Object(o.__)("You'll need to upgrade your plan to use the Recurring Payments button.","jetpack")},Object(a.createElement)(i.Button,{isSecondary:!0,isLarge:!0,href:e.state.upgradeURL,target:"_blank"},Object(o.__)("Upgrade Your Plan","jetpack")),e.renderDisclaimer())),(0===l||2===e.state.addingMembershipAmount)&&!e.props.attributes.planId&&Object(a.createElement)(i.Placeholder,{icon:Object(a.createElement)(T.BlockIcon,{icon:q}),notices:c},Object(a.createElement)(i.Spinner,null)),!e.state.shouldUpgrade&&!e.props.attributes.planId&&1===l&&0===u.length&&Object(a.createElement)("div",{className:"wp-block-jetpack-recurring-payments"},Object(a.createElement)(i.Placeholder,{icon:Object(a.createElement)(T.BlockIcon,{icon:q}),label:Object(o.__)("Recurring Payments","jetpack"),notices:c},Object(a.createElement)("div",{className:"components-placeholder__instructions"},Object(a.createElement)("p",null,Object(o.__)("To use this block, first add at least one payment plan.","jetpack")),e.renderAddMembershipAmount(!0),e.renderDisclaimer()))),!e.state.shouldUpgrade&&!e.props.attributes.planId&&2!==e.state.addingMembershipAmount&&1===l&&u.length>0&&Object(a.createElement)("div",{className:"wp-block-jetpack-recurring-payments"},Object(a.createElement)(i.Placeholder,{icon:Object(a.createElement)(T.BlockIcon,{icon:q}),label:Object(o.__)("Recurring Payments","jetpack"),notices:c},Object(a.createElement)("div",{className:"components-placeholder__instructions"},Object(a.createElement)("p",null,Object(o.__)("To use this block, select a previously created payment plan.","jetpack")),e.renderMembershipAmounts(),Object(a.createElement)("p",null,Object(o.__)("Or a new one.","jetpack")),e.renderAddMembershipAmount(!1),e.renderDisclaimer()))),e.state.products&&h,((e.hasUpgradeNudge||!e.state.shouldUpgrade)&&0!==l||e.props.attributes.planId)&&f,e.hasUpgradeNudge&&2===l&&Object(a.createElement)("div",{className:"wp-block-jetpack-recurring-payments disclaimer-only"},e.renderDisclaimer()))})),e.state={connected:0,connectURL:null,addingMembershipAmount:0,shouldUpgrade:!1,upgradeURL:"",products:[],siteSlug:"",editedProductCurrency:"USD",editedProductPrice:5,editedProductPriceValid:!0,editedProductTitle:"",editedProductTitleValid:!0,editedProductRenewInterval:"1 month"},e.timeout=null;var n=Object(N.a)("recurring-payments");return e.hasUpgradeNudge=!n.available&&"missing_plan"===n.unavailableReason,e}return v()(t,e),u()(t,[{key:"getConnectUrl",value:function(){var e,t=this.props.postId,n=this.state.connectURL;if(!Object(A.isURL)(n))return null;if(!t)return n;try{var r=Object(A.getQueryArg)(n,"state");e=JSON.parse(atob(r))}catch(a){return n}return e.from_editor_post_id=t,Object(A.addQueryArgs)(n,{state:btoa(JSON.stringify(e))})}}]),t}(a.Component),B=Object(F.compose)([Object(P.withSelect)((function(e){return{postId:e("core/editor").getCurrentPostId()}})),i.withNotices])(L),q=(n(226),Object(a.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},Object(a.createElement)(i.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(a.createElement)(i.G,null,Object(a.createElement)(i.Path,{d:"M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 2v2H4V6h16zM4 18v-6h16v6H4zm2-4h7v2H6v-2zm9 0h3v2h-3v-2z"})))),U={title:Object(o.__)("Recurring Payments button","jetpack"),icon:q,description:Object(o.__)("Button allowing you to sell subscription products.","jetpack"),category:"jetpack",keywords:[Object(o._x)("sell","block search term","jetpack"),Object(o._x)("subscription","block search term","jetpack"),"stripe"],attributes:{planId:{type:"integer"},submitButtonText:{type:"string"},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},align:{type:"string"}},edit:B,save:function(){return null},supports:{html:!1,align:!0}},V=["USD","AUD","BRL","CAD","CHF","DKK","EUR","GBP","HKD","JPY","MXN","NOK","NZD","SEK","SGD"];Object(r.a)("recurring-payments",U)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(5),c=n(2),s=n(7),l=n.n(s),u=n(11),p=n.n(u),d=n(8),h=n.n(d),m=n(9),f=n.n(m),b=n(4),g=n.n(b),v=n(10),j=n.n(v),y=n(3),_=n.n(y),k=n(23),O=n.n(k),w=n(31),E=function(e){function t(){var e,n;l()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=h()(this,(e=f()(t)).call.apply(e,[this].concat(a))),_()(g()(n),"state",{subscriberCountString:""}),n}return j()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.get_subscriber_count()}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.className,r=e.isSelected,o=e.setAttributes,s=t.subscribePlaceholder,l=t.showSubscribersTotal;return r?Object(a.createElement)("div",{className:n,role:"form"},Object(a.createElement)(c.ToggleControl,{label:Object(i.__)("Show total subscribers","jetpack"),checked:l,onChange:function(){o({showSubscribersTotal:!l})}}),Object(a.createElement)(c.TextControl,{placeholder:s,disabled:!0,onChange:function(){}}),Object(a.createElement)(w.a,this.props)):Object(a.createElement)("div",{className:n,role:"form"},l&&Object(a.createElement)("p",{role:"heading"},this.state.subscriberCountString),Object(a.createElement)(c.TextControl,{placeholder:s}),Object(a.createElement)(w.a,this.props))}},{key:"get_subscriber_count",value:function(){var e=this;O()({path:"/wpcom/v2/subscribers/count"}).then((function(t){t.hasOwnProperty("count")?e.setState({subscriberCountString:Object(i.sprintf)(Object(i._n)("Join %s other subscriber","Join %s other subscribers",t.count,"jetpack"),t.count)}):e.setState({subscriberCountString:Object(i.__)("Subscriber count unavailable","jetpack")})}))}},{key:"onChangeSubmit",value:function(e){this.props.setAttributes({submitButtonText:e})}}]),t}(a.Component);var C=n(20),x={title:Object(i.__)("Subscription Form","jetpack"),description:Object(a.createElement)("p",null,Object(i.__)("A form enabling readers to get notifications when new posts are published from this site.","jetpack")),icon:Object(C.a)(Object(a.createElement)(c.Path,{d:"M23 16v2h-3v3h-2v-3h-3v-2h3v-3h2v3h3zM20 2v9h-4v3h-3v4H4c-1.1 0-2-.9-2-2V2h18zM8 13v-1H4v1h4zm3-3H4v1h7v-1zm0-2H4v1h7V8zm7-4H4v2h14V4z"})),category:"jetpack",keywords:[Object(i._x)("subscribe","block search term","jetpack"),Object(i._x)("join","block search term","jetpack"),Object(i._x)("follow","block search term","jetpack")],attributes:{subscribePlaceholder:{type:"string",default:Object(i.__)("Email Address","jetpack")},subscribeButton:{type:"string",default:Object(i.__)("Subscribe","jetpack")},showSubscribersTotal:{type:"boolean",default:!1},submitButtonText:{type:"string",default:Object(i.__)("Subscribe","jetpack")},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},submitButtonClasses:{type:"string"}},edit:E,save:function(e){var t=e.attributes,n=t.showSubscribersTotal,r=t.submitButtonClasses,i=t.customBackgroundButtonColor,o=t.customTextButtonColor,c=t.submitButtonText;return Object(a.createElement)(a.RawHTML,null,'[jetpack_subscription_form show_only_email_and_button="true" custom_background_button_color="'.concat(i,'" custom_text_button_color="').concat(o,'" submit_button_text="').concat(c,'" submit_button_classes="').concat(r,'" show_subscribers_total="').concat(n,'" ]'))},example:{attributes:{}},deprecated:[{attributes:{subscribeButton:{type:"string",default:Object(i.__)("Subscribe","jetpack")},showSubscribersTotal:{type:"boolean",default:!1}},migrate:function(e){return{subscribeButton:"",submitButtonText:e.subscribeButton,showSubscribersTotal:e.showSubscribersTotal,customBackgroundButtonColor:"",customTextButtonColor:"",submitButtonClasses:""}},isEligible:function(e){return!!Object(o.isEmpty)(e.subscribeButton)},save:function(e){var t=e.attributes;return Object(a.createElement)(a.RawHTML,null,'[jetpack_subscription_form show_subscribers_total="'.concat(t.showSubscribersTotal,'" show_only_email_and_button="true"]'))}}]};Object(r.a)("subscriptions",x)},function(e,t,n){"use strict";n.r(t);var r=n(0),a=n(1),i=n(2),o=n(14),c=n(39),s=n(13),l=n(60),u=Object(s.withSelect)((function(e){return{areLikesEnabled:(0,e("core/editor").getEditedPostAttribute)("jetpack_likes_enabled")}})),p=Object(s.withDispatch)((function(e){return{editPost:e("core/editor").editPost}})),d={render:Object(o.compose)([u,p])((function(e){var t=e.areLikesEnabled,n=e.editPost;return Object(r.createElement)(c.PostTypeSupportCheck,{supportKeys:"jetpack-post-likes"},Object(r.createElement)(l.a,null,Object(r.createElement)(i.CheckboxControl,{label:Object(a.__)("Show likes.","jetpack"),checked:t,onChange:function(e){n({jetpack_likes_enabled:e})}})))}))},h=n(36);Object(h.a)("likes",d)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(2),c=n(7),s=n.n(c),l=n(11),u=n.n(l),p=n(8),d=n.n(p),h=n(9),m=n.n(h),f=n(10),b=n.n(f),g=n(6),v=n(5),j=n(13),y=n(14);function _(e){return Object(a.createElement)("div",{className:"jp-related-posts-i2__post",id:e.id,"aria-labelledby":e.id+"-heading"},Object(a.createElement)("strong",{id:e.id+"-heading",className:"jp-related-posts-i2__post-link"},Object(i.__)("Preview unavailable: you haven't published enough posts with similar content.","jetpack")),e.displayThumbnails&&Object(a.createElement)("figure",{className:"jp-related-posts-i2__post-image-placeholder","aria-label":Object(i.__)("Placeholder image","jetpack")},Object(a.createElement)(o.SVG,{className:"jp-related-posts-i2__post-image-placeholder-square",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 350 200"},Object(a.createElement)("title",null,Object(i.__)("Grey square","jetpack")),Object(a.createElement)(o.Path,{d:"M0 0h350v200H0z",fill:"#8B8B96","fill-opacity":".1"})),Object(a.createElement)(o.SVG,{className:"jp-related-posts-i2__post-image-placeholder-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(a.createElement)("title",null,Object(i.__)("Icon for image","jetpack")),Object(a.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(o.Path,{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"}))),e.displayDate&&Object(a.createElement)("div",{className:"jp-related-posts-i2__post-date has-small-font-size"},Object(i.__)("August 3, 2018","jetpack")),e.displayContext&&Object(a.createElement)("div",{className:"jp-related-posts-i2__post-context has-small-font-size"},Object(i.__)("In “Uncategorized”","jetpack")))}function k(e){return Object(a.createElement)("div",{className:"jp-related-posts-i2__post",id:e.id,"aria-labelledby":e.id+"-heading"},Object(a.createElement)("a",{className:"jp-related-posts-i2__post-link",id:e.id+"-heading",href:e.post.url,rel:"nofollow noopener noreferrer",target:"_blank"},e.post.title),e.displayThumbnails&&e.post.img&&e.post.img.src&&Object(a.createElement)("a",{className:"jp-related-posts-i2__post-img-link",href:e.post.url},Object(a.createElement)("img",{className:"jp-related-posts-i2__post-img",src:e.post.img.src,alt:e.post.title,rel:"nofollow noopener noreferrer",target:"_blank"})),e.displayDate&&Object(a.createElement)("div",{className:"jp-related-posts-i2__post-date has-small-font-size"},e.post.date),e.displayContext&&Object(a.createElement)("div",{className:"jp-related-posts-i2__post-context has-small-font-size"},e.post.context))}function O(e){var t=0,n=e.posts.length>3;switch(e.posts.length){case 2:case 4:case 5:t=2;break;default:t=3}return Object(a.createElement)("div",null,Object(a.createElement)("div",{className:"jp-related-posts-i2__row","data-post-count":e.posts.slice(0,t).length},e.posts.slice(0,t)),n&&Object(a.createElement)("div",{className:"jp-related-posts-i2__row","data-post-count":e.posts.slice(t).length},e.posts.slice(t)))}var w=function(e){function t(){return s()(this,t),d()(this,m()(t).apply(this,arguments))}return b()(t,e),u()(t,[{key:"render",value:function(){for(var e=this.props,t=e.attributes,n=e.className,r=e.posts,c=e.setAttributes,s=e.instanceId,l=t.displayContext,u=t.displayDate,p=t.displayThumbnails,d=t.postLayout,h=t.postsToShow,m=[{icon:"grid-view",title:Object(i.__)("Grid View","jetpack"),onClick:function(){return c({postLayout:"grid"})},isActive:"grid"===d},{icon:"list-view",title:Object(i.__)("List View","jetpack"),onClick:function(){return c({postLayout:"list"})},isActive:"list"===d}],f=[],b=0;b<h;b++)r[b]?f.push(Object(a.createElement)(k,{id:"related-posts-".concat(s,"-post-").concat(b),key:"jp-relatedposts-i2-"+b,post:r[b],displayThumbnails:p,displayDate:u,displayContext:l})):f.push(Object(a.createElement)(_,{id:"related-posts-".concat(s,"-post-").concat(b),key:"related-post-placeholder-"+b,displayThumbnails:p,displayDate:u,displayContext:l}));return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(g.InspectorControls,null,Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Related Posts Settings","jetpack")},Object(a.createElement)(o.ToggleControl,{label:Object(i.__)("Display thumbnails","jetpack"),checked:p,onChange:function(e){return c({displayThumbnails:e})}}),Object(a.createElement)(o.ToggleControl,{label:Object(i.__)("Display date","jetpack"),checked:u,onChange:function(e){return c({displayDate:e})}}),Object(a.createElement)(o.ToggleControl,{label:Object(i.__)("Display context (category or tag)","jetpack"),checked:l,onChange:function(e){return c({displayContext:e})}}),Object(a.createElement)(o.RangeControl,{label:Object(i.__)("Number of posts","jetpack"),value:h,onChange:function(e){return c({postsToShow:Math.min(e,6)})},min:1,max:6}))),Object(a.createElement)(g.BlockControls,null,Object(a.createElement)(o.Toolbar,{controls:m})),Object(a.createElement)("div",{className:n,id:"related-posts-".concat(s)},Object(a.createElement)("div",{className:"jp-relatedposts-i2","data-layout":d},Object(a.createElement)(O,{posts:f}))))}}]),t}(a.Component),E=Object(y.compose)(y.withInstanceId,Object(j.withSelect)((function(e){var t=e("core/editor").getCurrentPost;return{posts:Object(v.get)(t(),"jetpack-related-posts",[])}})))(w),C=(n(227),{title:Object(i.__)("Related Posts","jetpack"),icon:Object(a.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(o.G,{stroke:"currentColor",strokeWidth:"2",strokeLinecap:"square"},Object(a.createElement)(o.Path,{d:"M4,4 L4,19 M4,4 L19,4 M4,9 L19,9 M4,14 L19,14 M4,19 L19,19 M9,4 L9,19 M19,4 L19,19"}))),category:"jetpack",keywords:[Object(i._x)("Similar content","block search term","jetpack"),Object(i._x)("Linked","block search term","jetpack"),Object(i._x)("Connected","block search term","jetpack")],attributes:{postLayout:{type:"string",default:"grid"},displayDate:{type:"boolean",default:!0},displayThumbnails:{type:"boolean",default:!1},displayContext:{type:"boolean",default:!1},postsToShow:{type:"number",default:3}},supports:{html:!1,multiple:!1,reusable:!1},transforms:{from:[{type:"shortcode",tag:"jetpack-related-posts"}]},edit:E,save:function(){return null},example:{attributes:{postLayout:"grid",displayDate:!0,displayThumbnails:!0,displayContext:!1,postsToShow:2}}});Object(r.a)("related-posts",C)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(2),c=n(7),s=n.n(c),l=n(11),u=n.n(l),p=n(8),d=n.n(p),h=n(9),m=n.n(h),f=n(4),b=n.n(f),g=n(10),v=n.n(g),j=n(3),y=n.n(j),_=n(12),k=n.n(_),O=n(6),w="t1PkR1Vq0mzHueIFBvZSZErgFs9NBmYW",E=Object(i.__)("Search for a term or paste a Giphy URL","jetpack"),C=function(e){function t(){var e,n;s()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=d()(this,(e=m()(t)).call.apply(e,[this].concat(i))),y()(b()(n),"textControlRef",Object(a.createRef)()),y()(b()(n),"state",{captionFocus:!1,results:null}),y()(b()(n),"onFormSubmit",(function(e){e.preventDefault(),n.onSubmit()})),y()(b()(n),"onSubmit",(function(){var e=n.props.attributes.searchText;n.parseSearch(e)})),y()(b()(n),"parseSearch",(function(e){var t=null;-1!==e.indexOf("//giphy.com/gifs")&&(t=n.splitAndLast(n.splitAndLast(e,"/"),"-")),-1!==e.indexOf("//i.giphy.com")&&(t=n.splitAndLast(e,"/").replace(".gif",""));var r=e.match(/http[s]?:\/\/media.giphy.com\/media\/([A-Za-z0-9\-.]+)\/giphy.gif/);return r&&(t=r[1]),t?n.fetch(n.urlForId(t)):n.fetch(n.urlForSearch(e))})),y()(b()(n),"urlForSearch",(function(e){return"https://api.giphy.com/v1/gifs/search?q=".concat(encodeURIComponent(e),"&api_key=").concat(encodeURIComponent(w),"&limit=10")})),y()(b()(n),"urlForId",(function(e){return"https://api.giphy.com/v1/gifs/".concat(encodeURIComponent(e),"?api_key=").concat(encodeURIComponent(w))})),y()(b()(n),"splitAndLast",(function(e,t){var n=e.split(t);return n[n.length-1]})),y()(b()(n),"fetch",(function(e){var t=new XMLHttpRequest;t.open("GET",e),t.onload=function(){if(200===t.status){var e=JSON.parse(t.responseText),r=void 0!==e.data.images?[e.data]:e.data,a=r[0];if(!a.images)return;n.setState({results:r},(function(){n.selectGiphy(a)}))}},t.send()})),y()(b()(n),"selectGiphy",(function(e){var t=n.props.setAttributes,r=Math.floor(e.images.original.height/e.images.original.width*100),a="".concat(r,"%");t({giphyUrl:e.embed_url,paddingTop:a})})),y()(b()(n),"setFocus",(function(){n.textControlRef.current.querySelector("input").focus(),n.setState({captionFocus:!1})})),y()(b()(n),"hasSearchText",(function(){var e=n.props.attributes.searchText;return e&&e.length>0})),y()(b()(n),"thumbnailClicked",(function(e){n.selectGiphy(e)})),n}return v()(t,e),u()(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.className,c=t.isSelected,s=t.setAttributes,l=n.align,u=n.caption,p=n.giphyUrl,d=n.searchText,h=n.paddingTop,m=this.state,f=m.captionFocus,b=m.results,g={paddingTop:h},v=k()(r,"align".concat(l)),j=Object(a.createElement)("form",{className:"wp-block-jetpack-gif_input-container",onSubmit:this.onFormSubmit,ref:this.textControlRef},Object(a.createElement)(o.TextControl,{className:"wp-block-jetpack-gif_input",label:E,placeholder:E,onChange:function(e){return s({searchText:e})},value:d}),Object(a.createElement)(o.Button,{isDefault:!0,onClick:this.onSubmit},Object(i.__)("Search","jetpack")));return Object(a.createElement)("div",{className:v},Object(a.createElement)(O.InspectorControls,null,Object(a.createElement)(o.PanelBody,{className:"components-panel__body-gif-branding"},Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 202 22"},Object(a.createElement)(o.Path,{d:"M4.6 5.9H0v10h1.6v-3.1h3c4.8 0 4.8-6.9 0-6.9zm0 5.4h-3v-4h3c2.6.1 2.6 4 0 4zM51.2 12.3c2-.3 2.7-1.7 2.7-3.1 0-1.7-1.2-3.3-3.5-3.3h-4.6v10h1.6v-3.4h2.1l3 3.4h1.9l-.2-.3-3-3.3zM47.4 11V7.4h3c1.3 0 1.9.9 1.9 1.8s-.6 1.8-1.9 1.8h-3zM30.6 13.6L28 5.9h-1.1l-2.5 7.7-2.6-7.7H20l3.7 10H25l1.4-3.5L27.5 9l1.1 3.4 1.3 3.5h1.4l3.5-10h-1.7z"}),Object(a.createElement)(o.Path,{d:"M14.4 5.7c-3 0-5.1 2.2-5.1 5.2 0 2.6 1.6 5.1 5.1 5.1 3.5 0 5.1-2.5 5.1-5.2-.1-2.6-1.7-5.1-5.1-5.1zm-.1 8.9c-2.5 0-3.5-1.9-3.5-3.7 0-2.2 1.2-3.8 3.5-3.8 2.4 0 3.5 2 3.5 3.8.1 2-1 3.7-3.5 3.7zM57.7 11.6h5.5v-1.5h-5.5V7.4h5.7V5.9h-7.3v10h7.3v-1.6h-5.7zM38 14.3v-2.7h5.5v-1.5H38V7.4h5.7V5.9h-7.3v10h7.3v-1.6zM93 10.3l-2.7-4.4h-1.9V6l3.8 5.8v4.1h1.6v-4.1l4-5.8v-.1h-2zM69.3 5.9h-3.8v10h3.8c3.5 0 5.1-2.5 5-5.1-.1-2.5-1.6-4.9-5-4.9zm0 8.4h-2.2V7.4h2.2c2.3 0 3.4 1.7 3.4 3.4s-1 3.5-3.4 3.5zM86.3 10.7c.9-.4 1.4-1.1 1.4-2 0-2-1.5-2.8-3.4-2.8h-4.6v10h4.6c2 0 3.7-.7 3.7-2.8 0-.8-.5-2-1.7-2.4zm-5-3.4h3c1.2 0 1.8.7 1.8 1.4 0 .8-.6 1.3-1.8 1.3h-3V7.3zm3 7.1h-3v-2.9h3c.9 0 2.1.5 2.1 1.6 0 1-1.2 1.3-2.1 1.3zM113.9 13.3h5.3V16c-1.2.9-2.9 1.1-4 1.1-4.2 0-5.6-3.3-5.6-6 0-4.1 2.2-6.1 5.6-6.1 1.4 0 3.2.4 4.8 1.8l3.4-3.4C120.7.6 118.1 0 115.2 0c-7.8 0-11.4 5.6-11.4 11s3.1 10.9 11.4 10.9c4 0 7.6-1.4 8.9-4.1V8.6h-10.2v4.7zM171.9 8.5h-7.4V.6h-5.9v20.8h5.9v-7.8h7.4v7.8h5.9V.6h-5.9zM195.1.6l-4.5 7.1-4.3-7.1h-6.6v.2l7.9 12.3v8.3h5.9v-8.3L201.8.9V.6zM127.4.6h5.9v20.8h-5.9zM147.6.6h-10.1v20.8h5.9v-5.6h4.2c5.6-.1 8.3-3.4 8.3-7.6.1-4.1-2.7-7.6-8.3-7.6zm0 10.2h-4.2V5.6h4.2c1.6 0 2.5 1.2 2.5 2.6 0 1.4-.9 2.6-2.5 2.6z"})))),p?Object(a.createElement)("figure",null,c&&j,c&&b&&b.length>1&&Object(a.createElement)("div",{className:"wp-block-jetpack-gif_thumbnails-container"},b.map((function(t){var n={backgroundImage:"url(".concat(t.images.downsized_still.url,")")};return Object(a.createElement)("button",{className:"wp-block-jetpack-gif_thumbnail-container",key:t.id,onClick:function(){e.thumbnailClicked(t)},style:n})}))),Object(a.createElement)("div",{className:"wp-block-jetpack-gif-wrapper",style:g},Object(a.createElement)("div",{className:"wp-block-jetpack-gif_cover",onClick:this.setFocus,onKeyDown:this.setFocus,role:"button",tabIndex:"0"}),Object(a.createElement)("iframe",{src:p,title:d})),(!O.RichText.isEmpty(u)||c)&&!!p&&Object(a.createElement)(O.RichText,{className:"wp-block-jetpack-gif-caption gallery-caption",inlineToolbar:!0,isSelected:f,unstableOnFocus:function(){e.setState({captionFocus:!0})},onChange:function(e){return s({caption:e})},placeholder:Object(i.__)("Write caption…","jetpack"),tagName:"figcaption",value:u})):Object(a.createElement)(o.Placeholder,{className:"wp-block-jetpack-gif_placeholder",icon:S,label:x},j))}}]),t}(a.Component),x=(n(130),n(154),Object(i.__)("GIF","jetpack")),S=Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(a.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(o.Path,{d:"M18 13v7H4V6h5.02c.05-.71.22-1.38.48-2H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-5l-2-2zm-1.5 5h-11l2.75-3.53 1.96 2.36 2.75-3.54L16.5 18zm2.8-9.11c.44-.7.7-1.51.7-2.39C20 4.01 17.99 2 15.5 2S11 4.01 11 6.5s2.01 4.5 4.49 4.5c.88 0 1.7-.26 2.39-.7L21 13.42 22.42 12 19.3 8.89zM15.5 9C14.12 9 13 7.88 13 6.5S14.12 4 15.5 4 18 5.12 18 6.5 16.88 9 15.5 9z"})),A={title:x,icon:S,category:"jetpack",keywords:[Object(i._x)("animated","block search term","jetpack"),Object(i._x)("giphy","block search term","jetpack"),Object(i._x)("image","block search term","jetpack")],description:Object(i.__)("Search for and insert an animated image.","jetpack"),attributes:{align:{type:"string",default:"center"},caption:{type:"string"},giphyUrl:{type:"string"},searchText:{type:"string"},paddingTop:{type:"string",default:"56.2%"}},supports:{html:!1,align:!0},edit:C,save:function(){return null},example:{attributes:{align:"center",giphyUrl:"https://giphy.com/embed/fxKWgoOG9hzPPkE1oc",paddingTop:"100%",searchText:"WordPress"}}};Object(r.a)("gif",A)},function(e,t,n){"use strict";n.r(t);var r=n(0),a=n(1),i=n(2),o=n(14),c=n(39),s=n(13),l=n(60),u=Object(s.withSelect)((function(e){return{isSharingEnabled:(0,e("core/editor").getEditedPostAttribute)("jetpack_sharing_enabled")}})),p=Object(s.withDispatch)((function(e){return{editPost:e("core/editor").editPost}})),d={render:Object(o.compose)([u,p])((function(e){var t=e.isSharingEnabled,n=e.editPost;return Object(r.createElement)(c.PostTypeSupportCheck,{supportKeys:"jetpack-sharing-buttons"},Object(r.createElement)(l.a,null,Object(r.createElement)(i.CheckboxControl,{label:Object(a.__)("Show sharing buttons.","jetpack"),checked:t,onChange:function(e){n({jetpack_sharing_enabled:e})}})))}))},h=n(36);Object(h.a)("sharing",d)},function(e,t,n){"use strict";n.r(t);var r=n(7),a=n.n(r),i=n(11),o=n.n(i),c=n(8),s=n.n(c),l=n(9),u=n.n(l),p=n(10),d=n.n(p),h=n(0),m=n(1),f=n(5),b=n(2),g=n(13),v=n(4),j=n.n(v),y=n(3),_=n.n(y),k=(n(229),function(e){function t(){var e,n;a()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=s()(this,(e=u()(t)).call.apply(e,[this].concat(i))),_()(j()(n),"state",{hasCopied:!1}),_()(j()(n),"onCopy",(function(){return n.setState({hasCopied:!0})})),_()(j()(n),"onFinishCopy",(function(){return n.setState({hasCopied:!1})})),_()(j()(n),"onFocus",(function(e){return e.target.select()})),n}return d()(t,e),o()(t,[{key:"render",value:function(){var e=this.props.link,t=this.state.hasCopied;return e?Object(h.createElement)("div",{className:"jetpack-clipboard-input"},Object(h.createElement)(b.TextControl,{readOnly:!0,onFocus:this.onFocus,value:e}),Object(h.createElement)(b.ClipboardButton,{isDefault:!0,onCopy:this.onCopy,onFinishCopy:this.onFinishCopy,text:e},t?Object(m.__)("Copied!","jetpack"):Object(m._x)("Copy","verb","jetpack"))):null}}]),t}(h.Component)),O=n(44),w={render:function(){return Object(h.createElement)(C,null)}},E=function(e){function t(){return a()(this,t),s()(this,u()(t).apply(this,arguments))}return d()(t,e),o()(t,[{key:"render",value:function(){var e=this.props.shortlink;return e?Object(h.createElement)(O.a,null,Object(h.createElement)(b.PanelBody,{title:Object(m.__)("Shortlink","jetpack"),className:"jetpack-shortlinks__panel"},Object(h.createElement)(k,{link:e}))):null}}]),t}(h.Component),C=Object(g.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{shortlink:Object(f.get)(t,"jetpack_shortlink","")}}))(E),x=n(36);Object(x.a)("shortlinks",w)},,,,,function(e,t,n){},function(e,t,n){n(255),n(254),n(250),n(244),n(242),n(249),n(263),n(261),n(258),n(243),n(252),n(248),n(256),n(241),n(251),n(259),n(262),n(257),n(264),n(265),n(245),n(247),n(260),n(240),n(246),n(253),n(303),e.exports=n(304)},function(e,t,n){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(2),c=n(20),s=n(7),l=n.n(s),u=n(11),p=n.n(u),d=n(8),h=n.n(d),m=n(9),f=n.n(m),b=n(10),g=n.n(b),v=(n(270),function(e){function t(){return l()(this,t),h()(this,f()(t).apply(this,arguments))}return g()(t,e),p()(t,[{key:"render",value:function(){return Object(a.createElement)("p",null,Object(i.__)("Coming soon","jetpack"))}}]),t}(a.Component)),j={title:Object(i.__)("Amazon","jetpack"),description:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("p",null,Object(i.__)("Amazon","jetpack")),Object(a.createElement)(o.ExternalLink,{href:"#"},Object(i.__)("Learn more about Amazon","jetpack"))),icon:Object(c.a)(Object(a.createElement)(o.Path,{d:"M9 15h2V9H9v6zm1-10c-.5 0-1 .5-1 1s.5 1 1 1 1-.5 1-1-.5-1-1-1zm0-4c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7z"})),category:"jetpack",keywords:[],supports:{align:!1,alignWide:!0,anchor:!1,customClassName:!0,className:!0,html:!1,multiple:!0,reusable:!0},edit:v,save:function(){return null},example:{attributes:{}}};Object(r.a)("amazon",j)},function(e,t,n){"use strict";n.r(t);var r=n(0),a=n(1),i=n(2),o=n(52),c=(n(272),n(44)),s=n(7),l=n.n(s),u=n(11),p=n.n(u),d=n(8),h=n.n(d),m=n(9),f=n.n(m),b=n(4),g=n.n(b),v=n(10),j=n.n(v),y=n(3),_=n.n(y),k=n(14),O=n(5),w=n(13),E=function(e){function t(){var e,n;l()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=h()(this,(e=f()(t)).call.apply(e,[this].concat(a))),_()(g()(n),"onMessageChange",(function(e){n.props.updateSeoDescription(e.target.value)})),n}return j()(t,e),p()(t,[{key:"render",value:function(){var e=this.props.seoDescription;return Object(r.createElement)("div",{className:"jetpack-seo-message-box"},Object(r.createElement)("textarea",{value:e,onChange:this.onMessageChange,placeholder:Object(a.__)("Write a description…","jetpack"),rows:4}),Object(r.createElement)("div",{className:"jetpack-seo-character-count"},Object(a.sprintf)(Object(a._n)("%d character","%d characters",e.length,"jetpack"),e.length)))}}]),t}(r.Component),C=Object(k.compose)([Object(w.withSelect)((function(e){return{seoDescription:Object(O.get)(e("core/editor").getEditedPostAttribute("meta"),["advanced_seo_description"],"")}})),Object(w.withDispatch)((function(e){return{updateSeoDescription:function(t){e("core/editor").editPost({meta:{advanced_seo_description:t}})}}}))])(E),x={render:function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(c.a,null,Object(r.createElement)(i.PanelBody,{title:Object(a.__)("SEO Description","jetpack")},Object(r.createElement)(C,null))),Object(r.createElement)(o.PluginPrePublishPanel,{initialOpen:!0,id:"seo-title",title:Object(r.createElement)("span",{id:"seo-defaults",key:"seo-title-span"},Object(a.__)("SEO Description","jetpack"))},Object(r.createElement)(C,null)))}},S=n(36);Object(S.a)("seo",x)}]));
1
  /*! For license information please see editor-beta.js.LICENSE */
2
+ !function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){function t(t){for(var n,r,i=t[0],o=t[1],c=0,s=[];c<i.length;c++)r=i[c],Object.prototype.hasOwnProperty.call(a,r)&&a[r]&&s.push(a[r][0]),a[r]=0;for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n]);for(l&&l(t);s.length;)s.shift()()}var n={},r={4:0},a={4:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[];r[e]?t.push(r[e]):0!==r[e]&&{16:1,17:1}[e]&&t.push(r[e]=new Promise((function(t,n){for(var a="rtl"===document.dir?({16:"vendors~map/mapbox-gl",17:"vendors~swiper"}[e]||e)+"."+{16:"04e03ac043566852ef07",17:"23fd414831f3de8536b3"}[e]+".rtl.css":({16:"vendors~map/mapbox-gl",17:"vendors~swiper"}[e]||e)+"."+{16:"04e03ac043566852ef07",17:"23fd414831f3de8536b3"}[e]+".css",o=i.p+a,c=document.getElementsByTagName("link"),s=0;s<c.length;s++){var l=(p=c[s]).getAttribute("data-href")||p.getAttribute("href");if("stylesheet"===p.rel&&(l===a||l===o))return t()}var u=document.getElementsByTagName("style");for(s=0;s<u.length;s++){var p;if((l=(p=u[s]).getAttribute("data-href"))===a||l===o)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.setAttribute("data-webpack",!0),d.onload=t,d.onerror=function(t){var a=t&&t.target&&t.target.src||o,i=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=a,delete r[e],d.parentNode.removeChild(d),n(i)},d.href=o,document.getElementsByTagName("head")[0].appendChild(d)})).then((function(){r[e]=0})));var n=a[e];if(0!==n)if(n)t.push(n[2]);else{var o=new Promise((function(t,r){n=a[e]=[t,r]}));t.push(n[2]=o);var c,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=function(e){return i.p+""+({16:"vendors~map/mapbox-gl",17:"vendors~swiper"}[e]||e)+"."+{16:"04e03ac043566852ef07",17:"23fd414831f3de8536b3"}[e]+".js"}(e);var l=new Error;c=function(t){s.onerror=s.onload=null,clearTimeout(u);var n=a[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+r+": "+i+")",l.name="ChunkLoadError",l.type=r,l.request=i,n[1](l)}a[e]=void 0}};var u=setTimeout((function(){c({type:"timeout",target:s})}),12e4);s.onerror=s.onload=c,document.head.appendChild(s)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var o=window.webpackJsonp=window.webpackJsonp||[],c=o.push.bind(o);o.push=t,o=o.slice();for(var s=0;s<o.length;s++)t(o[s]);var l=c;return i(i.s=271)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){var r=n(127),a=n(4);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?a(e):t}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var r=n(128);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var o=a.apply(null,r);o&&e.push(o)}else if("object"===i)for(var c in r)n.call(r,c)&&r[c]&&e.push(c)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t,n){var r=n(3);function a(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(n,!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t,n){"use strict";var r=n(15),a=n.n(r),i=n(55),o=n(16),c=n(94),s=n(40),l=n(30),u=n.n(l),p=n(0),d=n(14),h=(n(143),function(e){return Object(d.createHigherOrderComponent)((function(t){return function(n){return Object(p.createElement)(t,u()({},n,{className:n.name===e?"has-warning is-interactive":""}))}}),"withHasWarningIsInteractiveClassNames")}),m=n(56),f=n.n(m),b=n(1),g=n(31),v=n(5),j=n(13),y=n(50),_=n(57),k=n(35),O=n(24),w={setPlans:function(e){return{type:"SET_PLANS",plans:e}},fetchFromAPI:function(e){return{type:"FETCH_FROM_API",url:e}}};Object(j.registerStore)("wordpress-com/plans",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLANS":return t.plans}return e},actions:w,selectors:{getPlan:function(e,t){return e.find((function(e){return e.product_slug===t}))}},controls:{FETCH_FROM_API:function(e){var t=e.url;return fetch(t).then((function(e){return e.json()}))}},resolvers:{getPlan:regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"https://public-api.wordpress.com/rest/v1.5/plans",e.next=3,w.fetchFromAPI("https://public-api.wordpress.com/rest/v1.5/plans");case 3:return t=e.sent,e.abrupt("return",w.setPlans(t));case 5:case"end":return e.stop()}}),e)}))}});n(145);var E=Object(d.compose)([Object(j.withSelect)((function(e,t){var n=t.plan,r=e("wordpress-com/plans").getPlan(n),a=Object(v.startsWith)(n,"jetpack_")?n.substr("jetpack_".length):Object(v.get)(r,["path_slug"]),i=e("core/editor").getCurrentPostId(),o=e("core/editor").getCurrentPostType(),c=["page","post"].includes(o)?"":"edit",s=Object(O.b)()?Object(g.addQueryArgs)("/"+Object(v.compact)([c,o,Object(k.a)(),i]).join("/"),{plan_upgraded:1}):Object(g.addQueryArgs)(window.location.protocol+"//".concat(Object(k.a)().replace("::","/"),"/wp-admin/post.php"),{action:"edit",post:i,plan_upgraded:1}),l=a&&Object(g.addQueryArgs)("https://wordpress.com/checkout/".concat(Object(k.a)(),"/").concat(a),{redirect_to:s});return{trackEvent:function(e){y.a.tracks.recordEvent("jetpack_editor_block_upgrade_click",{plan:r,block:e})},planName:Object(v.get)(r,["product_name"]),upgradeUrl:l}}))])((function(e){var t=e.planName,n=e.trackEvent,r=e.upgradeUrl;return Object(p.createElement)(_.a,{buttonLabel:Object(b.__)("Upgrade","jetpack"),icon:Object(p.createElement)(f.a,{className:"jetpack-upgrade-nudge__icon",size:18,"aria-hidden":"true",role:"img",focusable:"false"}),href:r,onClick:n,title:t?Object(b.sprintf)(Object(b.__)("Upgrade to %(planName)s to use this block on your site.","jetpack"),{planName:t}):Object(b.__)("Upgrade to a paid plan to use this block on your site.","jetpack"),subtitle:Object(b.__)("You can try it out before upgrading, but only you will see it. It will be hidden from your visitors until you upgrade.","jetpack")})})),C=function(e){var t=e.requiredPlan;return Object(d.createHigherOrderComponent)((function(e){return function(n){return Object(p.createElement)(p.Fragment,null,Object(p.createElement)(E,{plan:t,blockName:n.name}),Object(p.createElement)(e,n))}}),"wrapPaidBlock")};n.d(t,"a",(function(){return A}));var x=c.beta||[];function S(e,t){return"missing_plan"===e&&t.required_plan}function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object(s.a)(e),c=r.available,l=r.details,u=r.unavailableReason,p=S(u,l);if(!c&&!p)return!1;var d=Object(o.registerBlockType)("jetpack/".concat(e),a()({},t,{title:x.includes(e)?"".concat(t.title," (beta)"):t.title,edit:p?C({requiredPlan:p})(t.edit):t.edit,example:p?void 0:t.example}));return p&&Object(i.addFilter)("editor.BlockListBlock","jetpack/".concat(e,"-with-has-warning-is-interactive-class-names"),h("jetpack/".concat(e))),n.forEach((function(e){return Object(o.registerBlockType)("jetpack/".concat(e.name),e.settings)})),d}},function(e,t,n){var r=n(65),a=n(66),i=n(67);e.exports=function(e,t){return r(e)||a(e,t)||i()}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function a(e,t){return r.call(e,t)}function i(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function o(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,s=new RegExp(c.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),l=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,u=n(81);var p=/[&<>"]/,d=/[&<>"]/g,h={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function m(e){return h[e]}var f=/[.?*+^$[\]\\(){}|-]/g;var b=n(68);t.lib={},t.lib.mdurl=n(82),t.lib.ucmicro=n(168),t.assign=function(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=a,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(c,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(s,(function(e,t,n){return t||function(e,t){var n=0;return a(u,t)?u[t]:35===t.charCodeAt(0)&&l.test(t)&&i(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?o(n):e}(e,n)}))},t.isValidEntityCode=i,t.fromCodePoint=o,t.escapeHtml=function(e){return p.test(e)?e.replace(d,m):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return b.test(e)},t.escapeRE=function(e){return e.replace(f,"\\$&")},t.normalizeReference=function(e){return e.trim().replace(/\s+/g," ").toUpperCase()}},function(e,t,n){"use strict";var r=n(0),a=n(2);t.a=function(e){return Object(r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),e)}},function(e,t,n){var r=n(123),a=n(124),i=n(125);e.exports=function(e){return r(e)||a(e)||i()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"h",(function(){return i})),n.d(t,"i",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return p}));var r=["image"],a=4,i=20,o=2e3,c="circle",s="columns",l="rectangular",u="square",p=[{isDefault:!0,name:l},{name:c},{name:u},{name:s}]},function(e,t){!function(){e.exports=this.wp.apiFetch}()},function(e,t,n){"use strict";function r(){return"object"==typeof window&&"string"==typeof window._currentSiteType?window._currentSiteType:null}function a(){return"simple"===r()}function i(){return"atomic"===r()}n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i}))},function(e,t){!function(){e.exports=this.wp.blob}()},function(e,t){!function(){e.exports=this.wp.keycodes}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),a=n(1),i={name:"map",prefix:"jetpack",title:Object(a.__)("Map","jetpack"),icon:Object(r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",focusable:"false"},Object(r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)("path",{d:"M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM10 5.47l4 1.4v11.66l-4-1.4V5.47zm-5 .99l3-1.01v11.7l-3 1.16V6.46zm14 11.08l-3 1.01V6.86l3-1.16v11.84z"})),category:"jetpack",keywords:[Object(a._x)("map","block search term","jetpack"),Object(a._x)("location","block search term","jetpack"),Object(a._x)("navigation","block search term","jetpack")],description:Object(a.__)("Add an interactive map showing one or more locations.","jetpack"),attributes:{align:{type:"string"},points:{type:"array",default:[]},mapStyle:{type:"string",default:"default"},mapDetails:{type:"boolean",default:!0},zoom:{type:"integer",default:13},mapCenter:{type:"object",default:{longitude:-122.41941550000001,latitude:37.7749295}},markerColor:{type:"string",default:"red"},preview:{type:"boolean",default:!1}},supports:{html:!1},mapStyleOptions:[{value:"default",label:Object(a.__)("Basic","jetpack")},{value:"black_and_white",label:Object(a.__)("Black and white","jetpack")},{value:"satellite",label:Object(a.__)("Satellite","jetpack")},{value:"terrain",label:Object(a.__)("Terrain","jetpack")}],validAlignments:["center","wide","full"],markerIcon:Object(r.createElement)("svg",{width:"14",height:"20",viewBox:"0 0 14 20",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("g",{id:"Page-1",fill:"none",fillRule:"evenodd"},Object(r.createElement)("g",{id:"outline-add_location-24px",transform:"translate(-5 -2)"},Object(r.createElement)("polygon",{id:"Shape",points:"0 0 24 0 24 24 0 24"}),Object(r.createElement)("path",{d:"M12,2 C8.14,2 5,5.14 5,9 C5,14.25 12,22 12,22 C12,22 19,14.25 19,9 C19,5.14 15.86,2 12,2 Z M7,9 C7,6.24 9.24,4 12,4 C14.76,4 17,6.24 17,9 C17,11.88 14.12,16.19 12,18.88 C9.92,16.21 7,11.85 7,9 Z M13,6 L11,6 L11,8 L9,8 L9,10 L11,10 L11,12 L13,12 L13,10 L15,10 L15,8 L13,8 L13,6 Z",id:"Shape",fill:"#000",fillRule:"nonzero"})))),example:{attributes:{preview:!0}}}},function(e,t){!function(){e.exports=this.wp.editor}()},function(e,t,n){"use strict";var r=n(136),a=n(138);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=j,t.resolve=function(e,t){return j(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?j(e,!1,!0).resolveObject(t):t},t.format=function(e){a.isString(e)&&(e=j(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var o=/^([a-z0-9.+-]+:)/i,c=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),p=["%","/","?",";","#"].concat(u),d=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=n(139);function j(e,t,n){if(e&&a.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),c=-1!==i&&i<e.indexOf("#")?"?":"#",l=e.split(c);l[0]=l[0].replace(/\\/g,"/");var j=e=l.join(c);if(j=j.trim(),!n&&1===e.split("#").length){var y=s.exec(j);if(y)return this.path=j,this.href=j,this.pathname=y[1],y[2]?(this.search=y[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var _=o.exec(j);if(_){var k=(_=_[0]).toLowerCase();this.protocol=k,j=j.substr(_.length)}if(n||_||j.match(/^\/\/[^@\/]+@[^@\/]+/)){var O="//"===j.substr(0,2);!O||_&&b[_]||(j=j.substr(2),this.slashes=!0)}if(!b[_]&&(O||_&&!g[_])){for(var w,E,C=-1,x=0;x<d.length;x++){-1!==(S=j.indexOf(d[x]))&&(-1===C||S<C)&&(C=S)}-1!==(E=-1===C?j.lastIndexOf("@"):j.lastIndexOf("@",C))&&(w=j.slice(0,E),j=j.slice(E+1),this.auth=decodeURIComponent(w)),C=-1;for(x=0;x<p.length;x++){var S;-1!==(S=j.indexOf(p[x]))&&(-1===C||S<C)&&(C=S)}-1===C&&(C=j.length),this.host=j.slice(0,C),j=j.slice(C),this.parseHost(),this.hostname=this.hostname||"";var A="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!A)for(var F=this.hostname.split(/\./),P=(x=0,F.length);x<P;x++){var T=F[x];if(T&&!T.match(h)){for(var N="",M=0,R=T.length;M<R;M++)T.charCodeAt(M)>127?N+="x":N+=T[M];if(!N.match(h)){var D=F.slice(0,x),z=F.slice(x+1),I=T.match(m);I&&(D.push(I[1]),z.unshift(I[2])),z.length&&(j="/"+z.join(".")+j),this.hostname=D.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=r.toASCII(this.hostname));var L=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+L,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==j[0]&&(j="/"+j))}if(!f[k])for(x=0,P=u.length;x<P;x++){var q=u[x];if(-1!==j.indexOf(q)){var U=encodeURIComponent(q);U===q&&(U=escape(q)),j=j.split(q).join(U)}}var V=j.indexOf("#");-1!==V&&(this.hash=j.substr(V),j=j.slice(0,V));var H=j.indexOf("?");if(-1!==H?(this.search=j.substr(H),this.query=j.substr(H+1),t&&(this.query=v.parse(this.query)),j=j.slice(0,H)):t&&(this.search="",this.query={}),j&&(this.pathname=j),g[k]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){L=this.pathname||"";var G=this.search||"";this.path=L+G}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&a.isObject(this.query)&&Object.keys(this.query).length&&(o=v.stringify(this.query));var c=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),c&&"?"!==c.charAt(0)&&(c="?"+c),t+i+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(c=c.replace("#","%23"))+r},i.prototype.resolve=function(e){return this.resolveObject(j(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(a.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),o=0;o<r.length;o++){var c=r[o];n[c]=this[c]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),l=0;l<s.length;l++){var u=s[l];"protocol"!==u&&(n[u]=e[u])}return g[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!g[e.protocol]){for(var p=Object.keys(e),d=0;d<p.length;d++){var h=p[d];n[h]=e[h]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||b[e.protocol])n.pathname=e.pathname;else{for(var m=(e.pathname||"").split("/");m.length&&!(e.host=m.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==m[0]&&m.unshift(""),m.length<2&&m.unshift(""),n.pathname=m.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var f=n.pathname||"",v=n.search||"";n.path=f+v}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var j=n.pathname&&"/"===n.pathname.charAt(0),y=e.host||e.pathname&&"/"===e.pathname.charAt(0),_=y||j||n.host&&e.pathname,k=_,O=n.pathname&&n.pathname.split("/")||[],w=(m=e.pathname&&e.pathname.split("/")||[],n.protocol&&!g[n.protocol]);if(w&&(n.hostname="",n.port=null,n.host&&(""===O[0]?O[0]=n.host:O.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===m[0]?m[0]=e.host:m.unshift(e.host)),e.host=null),_=_&&(""===m[0]||""===O[0])),y)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,O=m;else if(m.length)O||(O=[]),O.pop(),O=O.concat(m),n.search=e.search,n.query=e.query;else if(!a.isNullOrUndefined(e.search)){if(w)n.hostname=n.host=O.shift(),(A=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=A.shift(),n.host=n.hostname=A.shift());return n.search=e.search,n.query=e.query,a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!O.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=O.slice(-1)[0],C=(n.host||e.host||O.length>1)&&("."===E||".."===E)||""===E,x=0,S=O.length;S>=0;S--)"."===(E=O[S])?O.splice(S,1):".."===E?(O.splice(S,1),x++):x&&(O.splice(S,1),x--);if(!_&&!k)for(;x--;x)O.unshift("..");!_||""===O[0]||O[0]&&"/"===O[0].charAt(0)||O.unshift(""),C&&"/"!==O.join("/").substr(-1)&&O.push("");var A,F=""===O[0]||O[0]&&"/"===O[0].charAt(0);w&&(n.hostname=n.host=F?"":O.length?O.shift():"",(A=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=A.shift(),n.host=n.hostname=A.shift()));return(_=_||n.host&&O.length)&&!F&&O.unshift(""),O.length?n.pathname=O.join("/"):(n.pathname=null,n.path=null),a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=c.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){!function(){e.exports=this.wp.url}()},function(e,t,n){"use strict";var r=n(3),a=n.n(r),i=n(7),o=n.n(i),c=n(11),s=n.n(c),l=n(8),u=n.n(l),p=n(9),d=n.n(p),h=n(10),m=n.n(h),f=n(0),b=n(1),g=n(12),v=n.n(g),j=n(14),y=n(2),_=n(6),k=n(5),O=window.getComputedStyle,w=Object(y.withFallbackStyles)((function(e,t){var n,r,a,i,o=t.textButtonColor,c=t.backgroundButtonColor,s=c&&c.color,l=o&&o.color;return!l&&e&&(n=e.querySelector('[contenteditable="true"]')),r=e.querySelector(".wp-block-button__link")?e.querySelector(".wp-block-button__link"):e,e&&(a=O(r).backgroundColor),n&&(i=O(n).color),{fallbackBackgroundColor:s||a,fallbackTextColor:l||i}})),E=function(e){function t(){return o()(this,t),u()(this,d()(t).apply(this,arguments))}return m()(t,e),s()(t,[{key:"componentDidUpdate",value:function(e){if(!Object(k.isEqual)(this.props.textButtonColor,e.textButtonColor)||!Object(k.isEqual)(this.props.backgroundButtonColor,e.backgroundButtonColor)){var t=this.getButtonClasses();this.props.setAttributes({submitButtonClasses:t})}}},{key:"getButtonClasses",value:function(){var e,t=this.props,n=t.textButtonColor,r=t.backgroundButtonColor,i=Object(k.get)(n,"class"),o=Object(k.get)(r,"class");return v()("wp-block-button__link",(e={"has-text-color":n},a()(e,i,i),a()(e,"has-background",r),a()(e,o,o),e))}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.fallbackBackgroundColor,r=e.fallbackTextColor,a=e.setAttributes,i=e.setBackgroundButtonColor,o=e.setTextButtonColor,c=t.customBackgroundButtonColor||n,s=t.customTextButtonColor||r,l={border:"none",backgroundColor:c,color:s},u=this.getButtonClasses();return Object(f.createElement)(f.Fragment,null,Object(f.createElement)("div",{className:"wp-block-button jetpack-submit-button"},Object(f.createElement)(_.RichText,{placeholder:Object(b.__)("Add text…","jetpack"),value:t.submitButtonText,onChange:function(e){return a({submitButtonText:e})},className:u,style:l,keepPlaceholderOnFocus:!0,allowedFormats:[]})),Object(f.createElement)(_.InspectorControls,null,Object(f.createElement)(_.PanelColorSettings,{title:Object(b.__)("Button Color Settings","jetpack"),colorSettings:[{value:c,onChange:function(e){i(e),a({customBackgroundButtonColor:e})},label:Object(b.__)("Background Color","jetpack")},{value:s,onChange:function(e){o(e),a({customTextButtonColor:e})},label:Object(b.__)("Text Color","jetpack")}]}),Object(f.createElement)(_.ContrastChecker,{textColor:s,backgroundColor:c})))}}]),t}(f.Component);t.a=Object(j.compose)([Object(_.withColors)("backgroundButtonColor",{textButtonColor:"color"}),w])(E)},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"e",(function(){return c}));var r="after-visits",a="before-visits",i=3,o="jp-visit-counter",c=15552e3},function(e,t){!function(){e.exports=this.React}()},function(e,t,n){"use strict";function r(){return window&&window.Jetpack_Editor_Initial_State&&window.Jetpack_Editor_Initial_State.siteFragment?window.Jetpack_Editor_Initial_State.siteFragment:null}n.d(t,"a",(function(){return r}))},function(e,t,n){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(n.p=window.Jetpack_Block_Assets_Base_Url)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(47),a=n(40);function i(e,t){var n=Object(a.a)(e),i=n.available;n.unavailableReason;return!!i&&Object(r.registerPlugin)("jetpack-".concat(e),t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return c}));var r=n(74),a=n(5),i="wp-block-jetpack-slideshow_autoplay-paused";function o(e){c(e),s(e),e.el.querySelector(".wp-block-jetpack-slideshow_button-pause").addEventListener("click",(function(){e.el&&(e.el.classList.contains(i)?(e.el.classList.remove(i),e.autoplay.start(),this.setAttribute("aria-label","Pause Slideshow")):(e.el.classList.add(i),e.autoplay.stop(),this.setAttribute("aria-label","Play Slideshow")))}))}function c(e){if(e&&e.el){var t=e.el.querySelector('.swiper-slide[data-swiper-slide-index="0"] img');if(t){var n=t.clientWidth/t.clientHeight,r=Math.max(Math.min(n,16/9),1),a="undefined"!=typeof window?.8*window.innerHeight:600,i=Math.min(e.width/r,a),o="".concat(Math.floor(i),"px"),c="".concat(Math.floor(i/2),"px");e.el.classList.add("wp-swiper-initialized"),e.wrapperEl.style.height=o,e.el.querySelector(".wp-block-jetpack-slideshow_button-prev").style.top=c,e.el.querySelector(".wp-block-jetpack-slideshow_button-next").style.top=c}}}function s(e){Object(a.forEach)(e.slides,(function(t,n){t.setAttribute("aria-hidden",n===e.activeIndex?"false":"true"),n===e.activeIndex?t.setAttribute("tabindex","-1"):t.removeAttribute("tabindex")})),function(e){var t=e.slides[e.activeIndex];if(t){var n=t.getElementsByTagName("FIGCAPTION")[0],a=t.getElementsByTagName("IMG")[0];e.a11y.liveRegion&&(e.a11y.liveRegion[0].innerHTML=n?n.innerHTML:Object(r.escapeHTML)(a.alt))}}(e)}function l(e){Object(a.forEach)(e.pagination.bullets,(function(t){t.addEventListener("click",(function(){var t=e.slides[e.realIndex];setTimeout((function(){t.focus()}),500)}))}))}},function(e,t,n){"use strict";var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var a=r[n];e.call(t,a[1],a[0])}},t}())}(),a="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i="undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var c=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,l=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,a=0;function i(){n&&(n=!1,e()),r&&s()}function c(){o(i)}function s(){var e=Date.now();if(n){if(e-a<2)return;r=!0}else n=!0,r=!1,setTimeout(c,t);a=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){a&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){a&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;c.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var a=r[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},d=v(0,0,0,0);function h(e){return parseFloat(e)||0}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+h(e["border-"+n+"-width"])}),0)}function f(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r=p(e).getComputedStyle(e),a=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var a=r[n],i=e["padding-"+a];t[a]=h(i)}return t}(r),i=a.left+a.right,o=a.top+a.bottom,c=h(r.width),s=h(r.height);if("border-box"===r.boxSizing&&(Math.round(c+i)!==t&&(c-=m(r,"left","right")+i),Math.round(s+o)!==n&&(s-=m(r,"top","bottom")+o)),!function(e){return e===p(e).document.documentElement}(e)){var l=Math.round(c+i)-t,u=Math.round(s+o)-n;1!==Math.abs(l)&&(c-=l),1!==Math.abs(u)&&(s-=u)}return v(a.left,a.top,c,s)}var b="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"==typeof e.getBBox};function g(e){return a?b(e)?function(e){var t=e.getBBox();return v(0,0,t.width,t.height)}(e):f(e):d}function v(e,t,n,r){return{x:e,y:t,width:n,height:r}}var j=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=v(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=g(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),y=function(e,t){var n,r,a,i,o,c,s,l=(r=(n=t).x,a=n.y,i=n.width,o=n.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(c.prototype),u(s,{x:r,y:a,width:i,height:o,top:a,right:r+i,bottom:o+a,left:r}),s);u(this,{target:e,contentRect:l})},_=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new j(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new y(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),k="undefined"!=typeof WeakMap?new WeakMap:new r,O=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=l.getInstance(),r=new _(t,n,this);k.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){O.prototype[e]=function(){var t;return(t=k.get(this))[e].apply(t,arguments)}}));var w=void 0!==i.ResizeObserver?i.ResizeObserver:O;t.a=w},function(e,t,n){"use strict";var r=n(15),a=n.n(r),i=n(5);function o(e){var t=Object(i.get)("object"==typeof window?window:null,["Jetpack_Editor_Initial_State"],null),n=Object(i.get)(t,["available_blocks",e,"available"],!1),r=Object(i.get)(t,["available_blocks",e,"unavailable_reason"],"unknown"),o=Object(i.get)(t,["available_blocks",e,"details"],[]);return a()({available:n},!n&&{details:o,unavailableReason:r})}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var r=n(30),a=n.n(r),i=n(46),o=n.n(i),c=n(0),s=n(12),l=n.n(s),u=n(96),p=n.n(u);n(151);t.a=function(e){var t=e.children,n=void 0===t?null:t,r=e.isError,i=void 0!==r&&r,s=o()(e,["children","isError"]),u=l()("help-message",{"help-message-is-error":i});return n&&Object(c.createElement)("div",a()({className:u},s),i&&Object(c.createElement)(p.a,{size:"24","aria-hidden":"true",role:"img",focusable:"false"}),Object(c.createElement)("span",null,n))}},,function(e,t,n){"use strict";var r=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;t.validate=function(e){if(!e)return!1;if(e.length>254)return!1;if(!r.test(e))return!1;var t=e.split("@");return!(t[0].length>64)&&!t[1].split(".").some((function(e){return e.length>63}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),a=n(2),i=n(52),o=n(47),c=(n(155),n(53)),s=Object(a.createSlotFill)("JetpackPluginSidebar"),l=s.Fill,u=s.Slot;Object(o.registerPlugin)("jetpack-sidebar",{render:function(){return Object(r.createElement)(u,null,(function(e){return e.length?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(i.PluginSidebarMoreMenuItem,{target:"jetpack",icon:Object(r.createElement)(c.a,null)},"Jetpack"),Object(r.createElement)(i.PluginSidebar,{name:"jetpack",title:"Jetpack",icon:Object(r.createElement)(c.a,null)},e)):null}))}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var 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 a(e){return r[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},function(e,t,n){var r=n(150);e.exports=function(e,t){if(null==e)return{};var n,a,i=r(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t){!function(){e.exports=this.wp.plugins}()},function(e,t,n){"use strict";var r=n(0),a=n(2);t.a=function(e){var t=e.label,n=e.onClick;return Object(r.createElement)(a.IconButton,{className:"components-toolbar__control",label:t,icon:"edit",onClick:n})}},function(e,t,n){"use strict";var r=n(54),a=n.n(r),i=n(102),o=n.n(i),c=n(103),s=n.n(c),l=n(63),u=n.n(l),p=n(104),d=n.n(p),h=n(77),m=n.n(h),f=n(105),b=n.n(f),g=n(72);function v(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var a=isFinite(+e)?+e:0,i=isFinite(+t)?Math.abs(t):0,o=void 0===r?",":r,c=void 0===n?".":n,s="";return(s=(i?function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(a,i):""+Math.round(a)).split("."))[0].length>3&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,o)),(s[1]||"").length<i&&(s[1]=s[1]||"",s[1]+=new Array(i-s[1].length+1).join("0")),s.join(c)}var j=o()("i18n-calypso"),y=[function(e){return e}],_={};function k(){x.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function O(e){return Array.prototype.slice.call(e)}function w(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&k("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",O(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&k("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",O(e));for(var n={},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 E(e,t){var n="gettext";t.context&&(n="p"+n),"string"==typeof t.original&&"string"==typeof t.plural&&(n="n"+n);var r=function(e,t){switch(e){case"gettext":return[t.original];case"ngettext":return[t.original,t.plural,t.count];case"npgettext":return[t.context,t.original,t.plural,t.count];case"pgettext":return[t.context,t.original]}return[]}(n,t);return e[n].apply(e,r)}function C(e,t){for(var n=y.length-1;n>=0;n--){var r=y[n](Object.assign({},t));if(e.state.locale[r.original])return E(e.state.jed,r)}return null}function x(){if(!(this instanceof x))return new x;this.defaultLocaleSlug="en",this.state={numberFormatSettings:{},jed:void 0,locale:void 0,localeSlug:void 0,translations:d()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new g.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}x.throwErrors=!1,x.prototype.moment=m.a,x.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},x.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},x.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},x.prototype.numberFormat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",a=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return v(e,n,r,a)},x.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},x.prototype.setLocale=function(e){if(e&&e[""]&&e[""]["key-hash"]){var t=e[""]["key-hash"],n=function(e,t){var n=!1===t?"":String(t);if(void 0!==_[n+e])return _[n+e];var r=b()().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)y.push(r(!1));else{var a=t.substr(5).indexOf("-");if(a<0){var i=Number(t.substr(5));y.push(r(i))}else for(var o=Number(t.substr(5,a)),c=Number(t.substr(6+a)),s=o;s<=c;s++)y.push(r(s))}}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}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.jed=new u.a({locale_data:{messages:this.state.locale}}),m.a.locale(this.state.localeSlug),this.state.numberFormatSettings.decimal_point=E(this.state.jed,w(["number_format_decimals"])),this.state.numberFormatSettings.thousands_sep=E(this.state.jed,w(["number_format_thousands_sep"])),"number_format_decimals"===this.state.numberFormatSettings.decimal_point&&(this.state.numberFormatSettings.decimal_point="."),"number_format_thousands_sep"===this.state.numberFormatSettings.thousands_sep&&(this.state.numberFormatSettings.thousands_sep=","),this.state.translations.clear(),this.stateObserver.emit("change")},x.prototype.getLocale=function(){return this.state.locale},x.prototype.getLocaleSlug=function(){return this.state.localeSlug},x.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.jed.options.locale_data.messages[t]=e[t]);this.state.translations.clear(),this.stateObserver.emit("change")},x.prototype.hasTranslation=function(){return!!C(this,w(arguments))},x.prototype.translate=function(){var e,t=w(arguments),n=!t.components;if(n){try{e=JSON.stringify(t)}catch(c){n=!1}if(e){var r=this.state.translations.get(e);if(r)return r}}var a=C(this,t);if(a||(a=E(this.state.jed,t)),t.args){var i=Array.isArray(t.args)?t.args.slice(0):[t.args];i.unshift(a);try{a=u.a.sprintf.apply(u.a,i)}catch(l){if(!window||!window.console)return;var o=this.throwErrors?"error":"warn";"string"!=typeof l?window.console[o](l):window.console[o]("i18n sprintf error:",i)}}return t.components&&(a=s()({mixedString:a,components:t.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(e){a=e(a,t)})),n&&this.state.translations.set(e,a),a},x.prototype.reRenderTranslations=function(){j("Re-rendering all translations due to external request"),this.state.translations.clear(),this.stateObserver.emit("change")},x.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},x.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};var S,A,F=x,P=n(7),T=n.n(P),N=n(11),M=n.n(N),R=n(8),D=n.n(R),z=n(9),I=n.n(z),L=n(4),B=n.n(L),q=n(10),U=n.n(q),V=n(3),H=n.n(V),G=n(34),$=n.n(G),W=n(18),K=n.n(W),Z=new F,J=(Z.moment,Z.numberFormat.bind(Z)),Y=(Z.translate.bind(Z),Z.configure.bind(Z),Z.setLocale.bind(Z),Z.getLocale.bind(Z),Z.getLocaleSlug.bind(Z),Z.addTranslations.bind(Z),Z.reRenderTranslations.bind(Z),Z.registerComponentUpdateHook.bind(Z),Z.registerTranslateHook.bind(Z),Z.state,Z.stateObserver,Z.on.bind(Z),Z.off.bind(Z),Z.emit.bind(Z),A={moment:(S=Z).moment,numberFormat:S.numberFormat.bind(S),translate:S.translate.bind(S)},function(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}}(Z),n(45));function Q(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object(Y.a)(t);if(!r||isNaN(e))return null;var i=a()({},r,n),o=i.decimal,c=i.grouping,s=i.precision,l=i.symbol,u=e<0?"-":"",p=J(Math.abs(e),{decimals:s,thousandsSep:c,decPoint:o});return"".concat(u).concat(l).concat(p)}n.d(t,"a",(function(){return Q}))},function(e,t,n){"use strict";var r=n(93),a=n.n(r),i=n(5),o={i18n_default_locale_slug:"en",mc_analytics_enabled:!0,google_analytics_enabled:!1,google_analytics_key:null};var c,s,l=function(e){if(e in o)return o[e];throw new Error("config key `"+e+"` does not exist")},u=a()("dops:analytics");window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;var p={initialize:function(e,t,n){p.setUser(e,t),p.setSuperProps(n),p.identifyUser()},setUser:function(e,t){s={ID:e,username:t}},setSuperProps:function(e){c=e},mc:{bumpStat:function(e,t){var n=function(e,t){var n="";if("object"==typeof e){for(var r in e)n+="&x_"+encodeURIComponent(r)+"="+encodeURIComponent(e[r]);u("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),u('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);l("mc_analytics_enabled")&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){var n=function(e,t){var n="";if("object"==typeof e){for(var r in e)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(e[r]);u("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),u('Built stat "%s" in group "%s"',t,e);return n}(e,t);l("mc_analytics_enabled")&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){p.tracks.recordPageView(e),p.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,r,a,i,o){p.ga.recordPurchase(e,t,n,r,a,i,o)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(c&&(u("- Super Props: %o",c),t=Object(i.assign)(t,c)),u('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):u('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){var t="object"==typeof e?e:{target:e};p.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){p.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){u("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){var e={};p.ga.initialized||(s&&(e={userId:"u-"+s.ID}),window.ga("create",l("google_analytics_key"),"auto",e),p.ga.initialized=!0)},recordPageView:function(e,t){p.ga.initialize(),u("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),l("google_analytics_enabled")&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,n,r){p.ga.initialize();var a="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(a+=" [Option Label: "+n+"]"),void 0!==r&&(a+=" [Option Value: "+r+"]"),u(a),l("google_analytics_enabled")&&window.ga("send","event",e,t,n,r)},recordPurchase:function(e,t,n,r,a,i,o){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:r,currency:o}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:a,quantity:i}),window.ga("ecommerce:send")}},identifyUser:function(){s&&window._tkq.push(["identifyUser",s.ID,s.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}};t.a=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(5),a=function(e,t){return Object(r.reduce)(t,(function(t,n,r){var a=e[r],i=a.type,o=a.validator,c=a.validValues,s=a.default;return t[r]="boolean"===i?!!n:o?o(n)?n:s:c?c.includes(n)?n:s:n,t}),{})}},function(e,t){!function(){e.exports=this.wp.editPost}()},function(e,t,n){"use strict";var r=n(0),a=n(2),i=n(12),o=n.n(i);t.a=function(e){var t=e.size,n=void 0===t?24:t,i=e.className;return Object(r.createElement)(a.SVG,{className:o()("jetpack-logo",i),width:n,height:n,viewBox:"0 0 32 32"},Object(r.createElement)(a.Path,{className:"jetpack-logo__icon-circle",fill:"#00be28",d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z"}),Object(r.createElement)(a.Polygon,{className:"jetpack-logo__icon-triangle",fill:"#fff",points:"15,19 7,19 15,3 "}),Object(r.createElement)(a.Polygon,{className:"jetpack-logo__icon-triangle",fill:"#fff",points:"17,29 17,13 25,13 "}))}},function(e,t,n){var r=n(3);e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){r(e,t,n[t])}))}return e}},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.size,a=void 0===n?24:n,i=e.onClick,c=(e.icon,e.className),s=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","onClick","icon","className"]),l=["gridicon","gridicons-star",c,(t=a,!(0!=t%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",r({className:l,height:a,width:a,onClick:i},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"})))};var a,i=n(34),o=(a=i)&&a.__esModule?a:{default:a};e.exports=t.default},function(e,t,n){"use strict";var r=n(0),a=n(2),i=n(14),o=n(13),c=n(6);n(144);t.a=Object(i.compose)([Object(o.withDispatch)((function(e,t){var n=t.blockName,r=t.href,a=t.onClick;return{autosaveAndRedirect:function(t){return regeneratorRuntime.async((function(i){for(;;)switch(i.prev=i.next){case 0:return t.preventDefault(),a(n),i.next=4,regeneratorRuntime.awrap(e("core/editor").autosave());case 4:window.top.location.href=r;case 5:case"end":return i.stop()}}))}}}))])((function(e){var t=e.autosaveAndRedirect,n=e.buttonLabel,i=e.href,o=e.icon,s=e.subtitle,l=e.title;return Object(r.createElement)(c.Warning,{actions:i&&[Object(r.createElement)(a.Button,{href:i,onClick:t,target:"_top",isDefault:!0},n)],className:"jetpack-block-nudge"},Object(r.createElement)("span",{className:"jetpack-block-nudge__info"},o,Object(r.createElement)("span",{className:"jetpack-block-nudge__text-container"},Object(r.createElement)("span",{className:"jetpack-block-nudge__title"},l),Object(r.createElement)("span",{className:"jetpack-block-nudge__message"},s))))}))},function(e,t){!function(){e.exports=this.wp.date}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(15),a=n.n(r),i=n(0),o=n(12),c=n.n(o),s=n(5),l=n(16),u=n(6),p=n(13),d=n(26),h=function(e){var t=e.attributes,n=e.styleOption,r=e.viewportWidth,o=e.blockName,c=Object(l.getBlockType)(o);return Object(i.createElement)("div",{className:"block-editor-block-styles__item-preview"},Object(i.createElement)(u.BlockPreview,{viewportWidth:r,blocks:c.example?Object(l.getBlockFromExample)(o,{attributes:a()({},c.example.attributes,{style:n.value}),innerBlocks:c.example.innerBlocks}):Object(l.createBlock)(c,t)}))},m=i.memo?Object(i.memo)(h,(function(e,t){return Object(s.isEqual)(e,t)})):h;function f(e){var t,n=e.attributes,r=e.clientId,o=e.styleOptions,s=e.onSelectStyle,l=e.activeStyle,u=e.viewportWidth;return p.useSelect&&(t=Object(p.useSelect)((function(e){return(0,e("core/block-editor").getBlock)(r)}))),Object(i.createElement)("div",{className:"block-editor-block-styles"},o.map((function(e){var r=a()({},n,{style:e.value});return Object(i.createElement)("div",{key:e.value,className:c()("block-editor-block-styles__item",{"is-active":e.value===l}),onClick:function(){s({style:e.value})},onKeyDown:function(t){d.ENTER!==t.keyCode&&d.SPACE!==t.keyCode||(t.preventDefault(),s({style:e.value}))},role:"button",tabIndex:"0","aria-label":e.label},p.useSelect&&t&&Object(i.createElement)(m,{blockName:t.name,styleOption:e,attributes:r,viewportWidth:u}),Object(i.createElement)("div",{className:"block-editor-block-styles__item-label"},e.label))})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),a=n(1),i=n(2),o=n(47),c=n(44),s=Object(i.createSlotFill)("JetpackLikesAndSharingPanel"),l=s.Fill,u=s.Slot;Object(o.registerPlugin)("jetpack-likes-and-sharing-panel",{render:function(){return Object(r.createElement)(u,null,(function(e){return e.length?Object(r.createElement)(c.a,null,Object(r.createElement)(i.PanelBody,{title:Object(a.__)("Likes and Sharing","jetpack")},e)):null}))}})},function(e,t,n){"use strict";var r=n(233);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=a.default.parse(e,!0,!0),r="https:"===n.protocol;delete n.protocol,delete n.auth,delete n.port;var l={slashes:!0,protocol:"https:",query:{}};if(f=n.host,/^i[0-2]\.wp\.com$/.test(f))l.pathname=n.pathname,l.hostname=n.hostname;else{if(n.search)return null;var u=a.default.format(n);l.pathname=0===u.indexOf("//")?u.substring(1):u,l.hostname=(p=l.pathname,d=(0,i.default)(p),h=(0,o.default)(d),m="i"+Math.floor(3*h()),c('determined server "%s" to use with "%s"',m,p),m+".wp.com"),r&&(l.query.ssl=1)}var p,d,h,m;var f;if(t)for(var b in t)"host"!==b&&"hostname"!==b?"secure"!==b||t[b]?l.query[s[b]||b]=t[b]:l.protocol="http:":l.hostname=t[b];var g=a.default.format(l);return c("generated Photon URL: %s",g),g};var a=r(n(29)),i=r(n(234)),o=r(n(235)),c=(0,r(n(236)).default)("photon"),s={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return s}));var r=n(18),a=n.n(r),i=n(22);function o(e,t){var n=(t-e.reduce((function(e,t){return e+t}),0))/e.length;return e.map((function(e){return e+n}))}function c(e,t){!function(e,t,n){var r=a()(t,2),c=r[0],s=r[1],h=1/c*(n-i.b*(e.childElementCount-1)-s);!function(e,t){var n=t.rawHeight,r=t.rowWidth,a=l(e),c=a.map((function(e){return(n-i.b*(e.childElementCount-1))*p(e)[0]})),s=o(c,r);a.forEach((function(e,t){var r=c[t],a=s[t];!function(e,t){var n=t.colHeight,r=t.width,a=t.rawWidth,i=o(u(e).map((function(e){return a/d(e)})),n);Array.from(e.children).forEach((function(e,t){var n=i[t];e.setAttribute("style","height:".concat(n,"px;width:").concat(r,"px;"))}))}(e,{colHeight:n-i.b*(e.childElementCount-1),width:a,rawWidth:r})}))}(e,{rawHeight:h,rowWidth:n-i.b*(e.childElementCount-1)})}(e,function(e){return l(e).map(p).reduce((function(e,t){var n=a()(e,2),r=n[0],i=n[1],o=a()(t,2);return[r+o[0],i+o[1]]}),[0,0])}(e),t)}function s(e){return Array.from(e.querySelectorAll(".tiled-gallery__row"))}function l(e){return Array.from(e.querySelectorAll(".tiled-gallery__col"))}function u(e){return Array.from(e.querySelectorAll(".tiled-gallery__item > img, .tiled-gallery__item > a > img"))}function p(e){var t=u(e),n=t.length,r=1/t.map(d).reduce((function(e,t){return e+1/t}),0);return[r,r*n||1]}function d(e){var t=parseInt(e.dataset.width,10),n=parseInt(e.dataset.height,10);return t&&!Number.isNaN(t)&&n&&!Number.isNaN(n)?t/n:1}},function(e,t,n){!function(n,r){var a=Array.prototype,i=Object.prototype,o=a.slice,c=i.hasOwnProperty,s=a.forEach,l={},u={forEach:function(e,t,n){var r,a,i;if(null!==e)if(s&&e.forEach===s)e.forEach(t,n);else if(e.length===+e.length){for(r=0,a=e.length;r<a;r++)if(r in e&&t.call(n,e[r],r,e)===l)return}else for(i in e)if(c.call(e,i)&&t.call(n,e[i],i,e)===l)return},extend:function(e){return this.forEach(o.call(arguments,1),(function(t){for(var n in t)e[n]=t[n]})),e}},p=function(e){if(this.defaults={locale_data:{messages:{"":{domain:"messages",lang:"en",plural_forms:"nplurals=2; plural=(n != 1);"}}},domain:"messages",debug:!1},this.options=u.extend({},this.defaults,e),this.textdomain(this.options.domain),e.domain&&!this.options.locale_data[this.options.domain])throw new Error("Text domain set to non-existent domain: `"+e.domain+"`")};function d(e){return p.PF.compile(e||"nplurals=2; plural=(n != 1);")}function h(e,t){this._key=e,this._i18n=t}p.context_delimiter=String.fromCharCode(4),u.extend(h.prototype,{onDomain:function(e){return this._domain=e,this},withContext:function(e){return this._context=e,this},ifPlural:function(e,t){return this._val=e,this._pkey=t,this},fetch:function(e){return"[object Array]"!={}.toString.call(e)&&(e=[].slice.call(arguments,0)),(e&&e.length?p.sprintf:function(e){return e})(this._i18n.dcnpgettext(this._domain,this._context,this._key,this._pkey,this._val),e)}}),u.extend(p.prototype,{translate:function(e){return new h(e,this)},textdomain:function(e){if(!e)return this._textdomain;this._textdomain=e},gettext:function(e){return this.dcnpgettext.call(this,void 0,void 0,e)},dgettext:function(e,t){return this.dcnpgettext.call(this,e,void 0,t)},dcgettext:function(e,t){return this.dcnpgettext.call(this,e,void 0,t)},ngettext:function(e,t,n){return this.dcnpgettext.call(this,void 0,void 0,e,t,n)},dngettext:function(e,t,n,r){return this.dcnpgettext.call(this,e,void 0,t,n,r)},dcngettext:function(e,t,n,r){return this.dcnpgettext.call(this,e,void 0,t,n,r)},pgettext:function(e,t){return this.dcnpgettext.call(this,void 0,e,t)},dpgettext:function(e,t,n){return this.dcnpgettext.call(this,e,t,n)},dcpgettext:function(e,t,n){return this.dcnpgettext.call(this,e,t,n)},npgettext:function(e,t,n,r){return this.dcnpgettext.call(this,void 0,e,t,n,r)},dnpgettext:function(e,t,n,r,a){return this.dcnpgettext.call(this,e,t,n,r,a)},dcnpgettext:function(e,t,n,r,a){var i;if(r=r||n,e=e||this._textdomain,!this.options)return(i=new p).dcnpgettext.call(i,void 0,void 0,n,r,a);if(!this.options.locale_data)throw new Error("No locale data provided.");if(!this.options.locale_data[e])throw new Error("Domain `"+e+"` was not found.");if(!this.options.locale_data[e][""])throw new Error("No locale meta information provided.");if(!n)throw new Error("No translation key found.");var o,c,s,l=t?t+p.context_delimiter+n:n,u=this.options.locale_data,h=u[e],m=(u.messages||this.defaults.locale_data.messages)[""],f=h[""].plural_forms||h[""]["Plural-Forms"]||h[""]["plural-forms"]||m.plural_forms||m["Plural-Forms"]||m["plural-forms"];if(void 0===a)s=0;else{if("number"!=typeof a&&(a=parseInt(a,10),isNaN(a)))throw new Error("The number that was passed in is not a number.");s=d(f)(a)}if(!h)throw new Error("No domain named `"+e+"` could be found.");return!(o=h[l])||s>o.length?(this.options.missing_key_callback&&this.options.missing_key_callback(l,e),c=[n,r],!0===this.options.debug&&console.log(c[d(f)(a)]),c[d()(a)]):(c=o[s])||(c=[n,r])[d()(a)]}});var m,f,b=function(){function e(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function t(e,t){for(var n=[];t>0;n[--t]=e);return n.join("")}var n=function(){return n.cache.hasOwnProperty(arguments[0])||(n.cache[arguments[0]]=n.parse(arguments[0])),n.format.call(null,n.cache[arguments[0]],arguments)};return n.format=function(n,r){var a,i,o,c,s,l,u,p=1,d=n.length,h="",m=[];for(i=0;i<d;i++)if("string"===(h=e(n[i])))m.push(n[i]);else if("array"===h){if((c=n[i])[2])for(a=r[p],o=0;o<c[2].length;o++){if(!a.hasOwnProperty(c[2][o]))throw b('[sprintf] property "%s" does not exist',c[2][o]);a=a[c[2][o]]}else a=c[1]?r[c[1]]:r[p++];if(/[^s]/.test(c[8])&&"number"!=e(a))throw b("[sprintf] expecting number but found %s",e(a));switch(null==a&&(a=""),c[8]){case"b":a=a.toString(2);break;case"c":a=String.fromCharCode(a);break;case"d":a=parseInt(a,10);break;case"e":a=c[7]?a.toExponential(c[7]):a.toExponential();break;case"f":a=c[7]?parseFloat(a).toFixed(c[7]):parseFloat(a);break;case"o":a=a.toString(8);break;case"s":a=(a=String(a))&&c[7]?a.substring(0,c[7]):a;break;case"u":a=Math.abs(a);break;case"x":a=a.toString(16);break;case"X":a=a.toString(16).toUpperCase()}a=/[def]/.test(c[8])&&c[3]&&a>=0?"+"+a:a,l=c[4]?"0"==c[4]?"0":c[4].charAt(1):" ",u=c[6]-String(a).length,s=c[6]?t(l,u):"",m.push(c[5]?a+s:s+a)}return m.join("")},n.cache={},n.parse=function(e){for(var t=e,n=[],r=[],a=0;t;){if(null!==(n=/^[^\x25]+/.exec(t)))r.push(n[0]);else if(null!==(n=/^\x25{2}/.exec(t)))r.push("%");else{if(null===(n=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(t)))throw"[sprintf] huh?";if(n[2]){a|=1;var i=[],o=n[2],c=[];if(null===(c=/^([a-z_][a-z_\d]*)/i.exec(o)))throw"[sprintf] huh?";for(i.push(c[1]);""!==(o=o.substring(c[0].length));)if(null!==(c=/^\.([a-z_][a-z_\d]*)/i.exec(o)))i.push(c[1]);else{if(null===(c=/^\[(\d+)\]/.exec(o)))throw"[sprintf] huh?";i.push(c[1])}n[2]=i}else a|=2;if(3===a)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";r.push(n)}t=t.substring(n[0].length)}return r},n}(),g=function(e,t){return t.unshift(e),b.apply(null,t)};p.parse_plural=function(e,t){return e=e.replace(/n/g,t),p.parse_expression(e)},p.sprintf=function(e,t){return"[object Array]"=={}.toString.call(t)?g(e,[].slice.call(t)):b.apply(this,[].slice.call(arguments))},p.prototype.sprintf=function(){return p.sprintf.apply(this,arguments)},(p.PF={}).parse=function(e){var t=p.PF.extractPluralExpr(e);return p.PF.parser.parse.call(p.PF.parser,t)},p.PF.compile=function(e){var t=p.PF.parse(e);return function(e){return!0===(n=p.PF.interpreter(t)(e))?1:n||0;var n}},p.PF.interpreter=function(e){return function(t){switch(e.type){case"GROUP":return p.PF.interpreter(e.expr)(t);case"TERNARY":return p.PF.interpreter(e.expr)(t)?p.PF.interpreter(e.truthy)(t):p.PF.interpreter(e.falsey)(t);case"OR":return p.PF.interpreter(e.left)(t)||p.PF.interpreter(e.right)(t);case"AND":return p.PF.interpreter(e.left)(t)&&p.PF.interpreter(e.right)(t);case"LT":return p.PF.interpreter(e.left)(t)<p.PF.interpreter(e.right)(t);case"GT":return p.PF.interpreter(e.left)(t)>p.PF.interpreter(e.right)(t);case"LTE":return p.PF.interpreter(e.left)(t)<=p.PF.interpreter(e.right)(t);case"GTE":return p.PF.interpreter(e.left)(t)>=p.PF.interpreter(e.right)(t);case"EQ":return p.PF.interpreter(e.left)(t)==p.PF.interpreter(e.right)(t);case"NEQ":return p.PF.interpreter(e.left)(t)!=p.PF.interpreter(e.right)(t);case"MOD":return p.PF.interpreter(e.left)(t)%p.PF.interpreter(e.right)(t);case"VAR":return t;case"NUM":return e.val;default:throw new Error("Invalid Token found.")}}},p.PF.extractPluralExpr=function(e){e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),/;\s*$/.test(e)||(e=e.concat(";"));var t,n=/nplurals\=(\d+);/,r=e.match(n);if(!(r.length>1))throw new Error("nplurals not found in plural_forms string: "+e);if(r[1],!((t=(e=e.replace(n,"")).match(/plural\=(.*);/))&&t.length>1))throw new Error("`plural` expression not found: "+e);return t[1]},p.PF.parser=(m={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,"?":6,":":7,"||":8,"&&":9,"<":10,"<=":11,">":12,">=":13,"!=":14,"==":15,"%":16,"(":17,")":18,n:19,NUMBER:20,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",6:"?",7:":",8:"||",9:"&&",10:"<",11:"<=",12:">",13:">=",14:"!=",15:"==",16:"%",17:"(",18:")",19:"n",20:"NUMBER"},productions_:[0,[3,2],[4,5],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,1],[4,1]],performAction:function(e,t,n,r,a,i,o){var c=i.length-1;switch(a){case 1:return{type:"GROUP",expr:i[c-1]};case 2:this.$={type:"TERNARY",expr:i[c-4],truthy:i[c-2],falsey:i[c]};break;case 3:this.$={type:"OR",left:i[c-2],right:i[c]};break;case 4:this.$={type:"AND",left:i[c-2],right:i[c]};break;case 5:this.$={type:"LT",left:i[c-2],right:i[c]};break;case 6:this.$={type:"LTE",left:i[c-2],right:i[c]};break;case 7:this.$={type:"GT",left:i[c-2],right:i[c]};break;case 8:this.$={type:"GTE",left:i[c-2],right:i[c]};break;case 9:this.$={type:"NEQ",left:i[c-2],right:i[c]};break;case 10:this.$={type:"EQ",left:i[c-2],right:i[c]};break;case 11:this.$={type:"MOD",left:i[c-2],right:i[c]};break;case 12:this.$={type:"GROUP",expr:i[c-1]};break;case 13:this.$={type:"VAR"};break;case 14:this.$={type:"NUM",val:Number(e)}}},table:[{3:1,4:2,17:[1,3],19:[1,4],20:[1,5]},{1:[3]},{5:[1,6],6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{4:17,17:[1,3],19:[1,4],20:[1,5]},{5:[2,13],6:[2,13],7:[2,13],8:[2,13],9:[2,13],10:[2,13],11:[2,13],12:[2,13],13:[2,13],14:[2,13],15:[2,13],16:[2,13],18:[2,13]},{5:[2,14],6:[2,14],7:[2,14],8:[2,14],9:[2,14],10:[2,14],11:[2,14],12:[2,14],13:[2,14],14:[2,14],15:[2,14],16:[2,14],18:[2,14]},{1:[2,1]},{4:18,17:[1,3],19:[1,4],20:[1,5]},{4:19,17:[1,3],19:[1,4],20:[1,5]},{4:20,17:[1,3],19:[1,4],20:[1,5]},{4:21,17:[1,3],19:[1,4],20:[1,5]},{4:22,17:[1,3],19:[1,4],20:[1,5]},{4:23,17:[1,3],19:[1,4],20:[1,5]},{4:24,17:[1,3],19:[1,4],20:[1,5]},{4:25,17:[1,3],19:[1,4],20:[1,5]},{4:26,17:[1,3],19:[1,4],20:[1,5]},{4:27,17:[1,3],19:[1,4],20:[1,5]},{6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[1,28]},{6:[1,7],7:[1,29],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{5:[2,3],6:[2,3],7:[2,3],8:[2,3],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,3]},{5:[2,4],6:[2,4],7:[2,4],8:[2,4],9:[2,4],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,4]},{5:[2,5],6:[2,5],7:[2,5],8:[2,5],9:[2,5],10:[2,5],11:[2,5],12:[2,5],13:[2,5],14:[2,5],15:[2,5],16:[1,16],18:[2,5]},{5:[2,6],6:[2,6],7:[2,6],8:[2,6],9:[2,6],10:[2,6],11:[2,6],12:[2,6],13:[2,6],14:[2,6],15:[2,6],16:[1,16],18:[2,6]},{5:[2,7],6:[2,7],7:[2,7],8:[2,7],9:[2,7],10:[2,7],11:[2,7],12:[2,7],13:[2,7],14:[2,7],15:[2,7],16:[1,16],18:[2,7]},{5:[2,8],6:[2,8],7:[2,8],8:[2,8],9:[2,8],10:[2,8],11:[2,8],12:[2,8],13:[2,8],14:[2,8],15:[2,8],16:[1,16],18:[2,8]},{5:[2,9],6:[2,9],7:[2,9],8:[2,9],9:[2,9],10:[2,9],11:[2,9],12:[2,9],13:[2,9],14:[2,9],15:[2,9],16:[1,16],18:[2,9]},{5:[2,10],6:[2,10],7:[2,10],8:[2,10],9:[2,10],10:[2,10],11:[2,10],12:[2,10],13:[2,10],14:[2,10],15:[2,10],16:[1,16],18:[2,10]},{5:[2,11],6:[2,11],7:[2,11],8:[2,11],9:[2,11],10:[2,11],11:[2,11],12:[2,11],13:[2,11],14:[2,11],15:[2,11],16:[2,11],18:[2,11]},{5:[2,12],6:[2,12],7:[2,12],8:[2,12],9:[2,12],10:[2,12],11:[2,12],12:[2,12],13:[2,12],14:[2,12],15:[2,12],16:[2,12],18:[2,12]},{4:30,17:[1,3],19:[1,4],20:[1,5]},{5:[2,2],6:[1,7],7:[2,2],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,2]}],defaultActions:{6:[2,1]},parseError:function(e,t){throw new Error(e)},parse:function(e){var t=this,n=[0],r=[null],a=[],i=this.table,o="",c=0,s=0,l=0;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var u=this.lexer.yylloc;function p(){var e;return"number"!=typeof(e=t.lexer.lex()||1)&&(e=t.symbols_[e]||e),e}a.push(u),"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var d,h,m,f,b,g,v,j,y,_,k={};;){if(m=n[n.length-1],this.defaultActions[m]?f=this.defaultActions[m]:(null==d&&(d=p()),f=i[m]&&i[m][d]),void 0===f||!f.length||!f[0]){if(!l){for(g in y=[],i[m])this.terminals_[g]&&g>2&&y.push("'"+this.terminals_[g]+"'");var O="";O=this.lexer.showPosition?"Parse error on line "+(c+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+y.join(", ")+", got '"+this.terminals_[d]+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==d?"end of input":"'"+(this.terminals_[d]||d)+"'"),this.parseError(O,{text:this.lexer.match,token:this.terminals_[d]||d,line:this.lexer.yylineno,loc:u,expected:y})}if(3==l){if(1==d)throw new Error(O||"Parsing halted.");s=this.lexer.yyleng,o=this.lexer.yytext,c=this.lexer.yylineno,u=this.lexer.yylloc,d=p()}for(;!(2..toString()in i[m]);){if(0==m)throw new Error(O||"Parsing halted.");_=1,n.length=n.length-2*_,r.length=r.length-_,a.length=a.length-_,m=n[n.length-1]}h=d,d=2,f=i[m=n[n.length-1]]&&i[m][2],l=3}if(f[0]instanceof Array&&f.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+d);switch(f[0]){case 1:n.push(d),r.push(this.lexer.yytext),a.push(this.lexer.yylloc),n.push(f[1]),d=null,h?(d=h,h=null):(s=this.lexer.yyleng,o=this.lexer.yytext,c=this.lexer.yylineno,u=this.lexer.yylloc,l>0&&l--);break;case 2:if(v=this.productions_[f[1]][1],k.$=r[r.length-v],k._$={first_line:a[a.length-(v||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(v||1)].first_column,last_column:a[a.length-1].last_column},void 0!==(b=this.performAction.call(k,o,s,c,this.yy,f[1],r,a)))return b;v&&(n=n.slice(0,-1*v*2),r=r.slice(0,-1*v),a=a.slice(0,-1*v)),n.push(this.productions_[f[1]][0]),r.push(k.$),a.push(k._$),j=i[n[n.length-2]][n[n.length-1]],n.push(j);break;case 3:return!0}}return!0}},f=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parseError)throw new Error(e);this.yy.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.match+=e,this.matched+=e,e.match(/\n/)&&this.yylineno++,this._input=this._input.slice(1),e},unput:function(e){return this._input=e+this._input,this},more:function(){return this._more=!0,this},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;var e,t;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;r<n.length;r++)if(e=this._input.match(this.rules[n[r]]))return(t=e[0].match(/\n.*/g))&&(this.yylineno+=t.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:t?t[t.length-1].length-1:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],this.performAction.call(this,this.yy,this,n[r],this.conditionStack[this.conditionStack.length-1])||void 0;if(""===this._input)return this.EOF;this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)},performAction:function(e,t,n,r){switch(n){case 0:break;case 1:return 20;case 2:return 19;case 3:return 8;case 4:return 9;case 5:return 6;case 6:return 7;case 7:return 11;case 8:return 13;case 9:return 10;case 10:return 12;case 11:return 14;case 12:return 15;case 13:return 16;case 14:return 17;case 15:return 18;case 16:return 5;case 17:return"INVALID"}},rules:[/^\s+/,/^[0-9]+(\.[0-9]+)?\b/,/^n\b/,/^\|\|/,/^&&/,/^\?/,/^:/,/^<=/,/^>=/,/^</,/^>/,/^!=/,/^==/,/^%/,/^\(/,/^\)/,/^$/,/^./],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}}};return e}(),m.lexer=f,m),e.exports&&(t=e.exports=p),t.Jed=p}()},function(e,t){var n=1e3,r=6e4,a=36e5,i=24*a;function o(e,t,n,r){var a=t>=1.5*n;return Math.round(e/n)+" "+r+(a?"s":"")}e.exports=function(e,t){t=t||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var o=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"weeks":case"week":case"w":return 6048e5*o;case"days":case"day":case"d":return o*i;case"hours":case"hour":case"hrs":case"hr":case"h":return o*a;case"minutes":case"minute":case"mins":case"min":case"m":return o*r;case"seconds":case"second":case"secs":case"sec":case"s":return o*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}(e);if("number"===c&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return o(e,t,i,"day");if(t>=a)return o(e,t,a,"hour");if(t>=r)return o(e,t,r,"minute");if(t>=n)return o(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=a)return Math.round(e/a)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(s){a=!0,i=s}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return n}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(e,t,n){"use strict";function r(){this.__rules__=[],this.__cache__=null}r.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},r.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},r.prototype.at=function(e,t,n){var r=this.__find__(e),a=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=a.alt||[],this.__cache__=null},r.prototype.before=function(e,t,n,r){var a=this.__find__(e),i=r||{};if(-1===a)throw new Error("Parser rule not found: "+e);this.__rules__.splice(a,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},r.prototype.after=function(e,t,n,r){var a=this.__find__(e),i=r||{};if(-1===a)throw new Error("Parser rule not found: "+e);this.__rules__.splice(a+1,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},r.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},r.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},r.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},r.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},r.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},e.exports=r},function(e,t,n){"use strict";function r(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}r.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return-1},r.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},r.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},r.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},r.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=r},function(e,t,n){"use strict";var r=n(92),a=n(91);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function c(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=a,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),a=0;a<e.length;a+=2)n.push(parseInt(e[a]+e[a+1],16))}else for(var r=0,a=0;a<e.length;a++){var o=e.charCodeAt(a);o<128?n[r++]=o:o<2048?(n[r++]=o>>6|192,n[r++]=63&o|128):i(e,a)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++a)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(a=0;a<e.length;a++)n[a]=0|e[a];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=c(e[n].toString(16));return t},t.htonl=o,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var a=e[r];"little"===t&&(a=o(a)),n+=s(a.toString(16))}return n},t.zero2=c,t.zero8=s,t.join32=function(e,t,n,a){var i=n-t;r(i%4==0);for(var o=new Array(i/4),c=0,s=t;c<o.length;c++,s+=4){var l;l="big"===a?e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]:e[s+3]<<24|e[s+2]<<16|e[s+1]<<8|e[s],o[c]=l>>>0}return o},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,a=0;r<e.length;r++,a+=4){var i=e[r];"big"===t?(n[a]=i>>>24,n[a+1]=i>>>16&255,n[a+2]=i>>>8&255,n[a+3]=255&i):(n[a+3]=i>>>24,n[a+2]=i>>>16&255,n[a+1]=i>>>8&255,n[a]=255&i)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,a){return e+t+n+r+a>>>0},t.sum64=function(e,t,n,r){var a=e[t],i=r+e[t+1]>>>0,o=(i<r?1:0)+n+a;e[t]=o>>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,a,i,o,c){var s=0,l=t;return s+=(l=l+r>>>0)<t?1:0,s+=(l=l+i>>>0)<i?1:0,e+n+a+o+(s+=(l=l+c>>>0)<c?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,a,i,o,c){return t+r+i+c>>>0},t.sum64_5_hi=function(e,t,n,r,a,i,o,c,s,l){var u=0,p=t;return u+=(p=p+r>>>0)<t?1:0,u+=(p=p+i>>>0)<i?1:0,u+=(p=p+c>>>0)<c?1:0,e+n+a+o+s+(u+=(p=p+l>>>0)<l?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,a,i,o,c,s,l){return t+r+i+c+l>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t,n){"use strict";var r,a="object"==typeof Reflect?Reflect:null,i=a&&"function"==typeof a.apply?a.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function c(){c.init.call(this)}e.exports=c,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var s=10;function l(e){return void 0===e._maxListeners?c.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var a,i,o,c;if("function"!=typeof n)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n);if(void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),o=i[t]),void 0===o)o=i[t]=n,++e._eventsCount;else if("function"==typeof o?o=i[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(a=l(e))>0&&o.length>a&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,c=s,console&&console.warn&&console.warn(c)}return e}function p(){for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,i(this.listener,this.target,e))}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},a=p.bind(r);return a.listener=n,r.wrapFn=a,a}function h(e,t,n){var r=e._events;if(void 0===r)return[];var a=r[t];return void 0===a?[]:"function"==typeof a?n?[a.listener||a]:[a]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(a):f(a,a.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function f(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),c.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},c.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},c.prototype.getMaxListeners=function(){return l(this)},c.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,a=this._events;if(void 0!==a)r=r&&void 0===a.error;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var c=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw c.context=o,c}var s=a[e];if(void 0===s)return!1;if("function"==typeof s)i(s,this,t);else{var l=s.length,u=f(s,l);for(n=0;n<l;++n)i(u[n],this,t)}return!0},c.prototype.addListener=function(e,t){return u(this,e,t,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(e,t){return u(this,e,t,!0)},c.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.on(e,d(this,e,t)),this},c.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.prependListener(e,d(this,e,t)),this},c.prototype.removeListener=function(e,t){var n,r,a,i,o;if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);if(void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(a=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){o=n[i].listener,a=i;break}if(a<0)return this;0===a?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,a),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(e){var t,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[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var a,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(a=i[r])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},c.prototype.listeners=function(e){return h(this,e,!0)},c.prototype.rawListeners=function(e){return h(this,e,!1)},c.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},c.prototype.listenerCount=m,c.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(18),a=n.n(r),i=n(5);n(135);function o(){var e,t,r,o,c,s,l,u=arguments;return regeneratorRuntime.async((function(p){for(;;)switch(p.prev=p.next){case 0:return e=u.length>0&&void 0!==u[0]?u[0]:".swiper-container",t=u.length>1&&void 0!==u[1]?u[1]:{},r=u.length>2&&void 0!==u[2]?u[2]:{},o={effect:"slide",grabCursor:!0,init:!0,initialSlide:0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{bulletElement:"button",clickable:!0,el:".swiper-pagination",type:"bullets"},preventClicksPropagation:!1,releaseFormElements:!1,setWrapperSize:!0,touchStartPreventDefault:!1,on:Object(i.mapValues)(r,(function(e){return function(){e(this)}}))},p.next=6,regeneratorRuntime.awrap(Promise.all([n.e(17).then(n.t.bind(null,266,7)),n.e(17).then(n.t.bind(null,267,7))]));case 6:return c=p.sent,s=a()(c,1),l=s[0].default,p.abrupt("return",new l(e,Object(i.merge)({},o,t)));case 10:case"end":return p.stop()}}))}},function(e,t){!function(){e.exports=this.wp.escapeHtml}()},,function(e,t,n){"use strict";var r=n(18),a=n.n(r),i=n(7),o=n.n(i),c=n(11),s=n.n(c),l=n(8),u=n.n(l),p=n(9),d=n.n(p),h=n(4),m=n.n(h),f=n(10),b=n.n(f),g=n(3),v=n.n(g),j=n(0),y=n(1),_=n(5),k=n(2),O=(n(131),function(e){function t(){var e,n;o()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=u()(this,(e=d()(t)).call.apply(e,[this].concat(a))),v()(m()(n),"handleClick",(function(){(0,n.props.onClick)(m()(n))})),v()(m()(n),"getPoint",(function(){var e=n.props.point;return[e.coordinates.longitude,e.coordinates.latitude]})),n}return b()(t,e),s()(t,[{key:"componentDidMount",value:function(){this.renderMarker()}},{key:"componentWillUnmount",value:function(){this.marker&&this.marker.remove()}},{key:"componentDidUpdate",value:function(){this.renderMarker()}},{key:"renderMarker",value:function(){var e=this.props,t=e.map,n=e.point,r=e.mapboxgl,a=e.markerColor,i=this.handleClick,o=[n.coordinates.longitude,n.coordinates.latitude],c=this.marker?this.marker.getElement():document.createElement("div");this.marker?this.marker.setLngLat(o):(c.className="wp-block-jetpack-map-marker",this.marker=new r.Marker(c).setLngLat(o).setOffset([0,-19]).addTo(t),this.marker.getElement().addEventListener("click",i)),c.innerHTML='<?xml version="1.0" encoding="UTF-8"?><svg version="1.1" viewBox="0 0 32 38" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g fill-rule="evenodd"><path id="d" d="m16 38s16-11.308 16-22-7.1634-16-16-16-16 5.3076-16 16 16 22 16 22z" fill="'+a+'" mask="url(#c)"/></g></svg>'}},{key:"render",value:function(){return null}}]),t}(j.Component));O.defaultProps={point:{},map:null,markerColor:"#000000",mapboxgl:null,onClick:function(){}};var w=O,E=function(e){function t(){var e,n;o()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=u()(this,(e=d()(t)).call.apply(e,[this].concat(a))),v()(m()(n),"closeClick",(function(){n.props.unsetActiveMarker()})),n}return b()(t,e),s()(t,[{key:"componentDidMount",value:function(){var e=this.props.mapboxgl;this.el=document.createElement("DIV"),this.infowindow=new e.Popup({closeButton:!0,closeOnClick:!1,offset:{left:[0,0],top:[0,5],right:[0,0],bottom:[0,-40]}}),this.infowindow.setDOMContent(this.el),this.infowindow.on("close",this.closeClick)}},{key:"componentDidUpdate",value:function(e){this.props.activeMarker!==e.activeMarker&&(this.props.activeMarker?this.openWindow():this.closeWindow())}},{key:"render",value:function(){return this.el?Object(j.createPortal)(this.props.children,this.el):null}},{key:"openWindow",value:function(){var e=this.props,t=e.map,n=e.activeMarker;this.infowindow.setLngLat(n.getPoint()).addTo(t)}},{key:"closeWindow",value:function(){this.infowindow.remove()}}]),t}(j.Component);E.defaultProps={unsetActiveMarker:function(){},activeMarker:null,map:null,mapboxgl:null};var C=E;var x=function(e){function t(){var e;return o()(this,t),e=u()(this,d()(t).apply(this,arguments)),v()(m()(e),"onMarkerClick",(function(t){var n=e.props.onMarkerClick;e.setState({activeMarker:t}),n()})),v()(m()(e),"onMapClick",(function(){e.setState({activeMarker:null})})),v()(m()(e),"clearCurrentMarker",(function(){e.setState({activeMarker:null})})),v()(m()(e),"updateActiveMarker",(function(t){var n=e.props.points,r=e.state.activeMarker.props.index,a=n.slice(0);Object(_.assign)(a[r],t),e.props.onSetPoints(a)})),v()(m()(e),"deleteActiveMarker",(function(){var t=e.props.points,n=e.state.activeMarker.props.index,r=t.slice(0);r.splice(n,1),e.props.onSetPoints(r),e.setState({activeMarker:null})})),v()(m()(e),"sizeMap",(function(){var t=e.state.map,n=e.mapRef.current,r=n.offsetWidth,a=window.location.search.indexOf("map-block-counter")>-1?window.innerHeight:.8*window.innerHeight,i=Math.min(.75*r,a);n.style.height=i+"px",t.resize(),e.setBoundsByMarkers()})),v()(m()(e),"setBoundsByMarkers",(function(){var t=e.props,n=t.admin,r=t.onSetMapCenter,a=t.onSetZoom,i=t.points,o=t.zoom,c=e.state,s=c.map,l=c.activeMarker,u=c.mapboxgl,p=c.zoomControl,d=c.boundsSetProgrammatically;if(s&&(i.length&&n?s.dragPan.disable():s.dragPan.enable(),i.length&&!l)){var h=new u.LngLatBounds;if(i.forEach((function(e){h.extend([e.coordinates.longitude,e.coordinates.latitude])})),r(h.getCenter()),i.length>1){s.fitBounds(h,{padding:{top:40,bottom:40,left:20,right:20}}),e.setState({boundsSetProgrammatically:!0});try{s.removeControl(p)}catch(m){}}else{if(s.setCenter(h.getCenter()),d){s.setZoom(12),a(12)}else s.setZoom(parseInt(o,10));s.addControl(p),e.setState({boundsSetProgrammatically:!1})}}})),v()(m()(e),"scriptsLoaded",(function(){var t=e.props,n=t.mapCenter,r=t.points;e.setState({loaded:!0}),r.length,e.initMap(n)})),v()(m()(e),"googlePoint2Mapbox",(function(e){return e.hasOwnProperty("lat")&&e.hasOwnProperty("lng")?e:{lat:e.latitude||0,lng:e.longitude||0}})),e.state={map:null,fit_to_bounds:!1,loaded:!1,mapboxgl:null},e.mapRef=Object(j.createRef)(),e.debouncedSizeMap=Object(_.debounce)(e.sizeMap,250),e}return b()(t,e),s()(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.points,r=t.admin,a=t.children,i=t.markerColor,o=this.state,c=o.map,s=o.activeMarker,l=o.mapboxgl,u=this.onMarkerClick,p=this.deleteActiveMarker,d=this.updateActiveMarker,h=Object(_.get)(s,"props.point")||{},m=h.title,f=h.caption,b=j.Children.map(a,(function(e){if("AddPoint"===Object(_.get)(e,"props.tagName"))return e})),g=c&&l&&n.map((function(e,t){return Object(j.createElement)(w,{key:t,point:e,index:t,map:c,mapboxgl:l,markerColor:i,onClick:u})})),v=l&&Object(j.createElement)(C,{activeMarker:s,map:c,mapboxgl:l,unsetActiveMarker:function(){return e.setState({activeMarker:null})}},s&&r&&Object(j.createElement)(j.Fragment,null,Object(j.createElement)(k.TextControl,{label:Object(y.__)("Marker Title","jetpack"),value:m,onChange:function(e){return d({title:e})}}),Object(j.createElement)(k.TextareaControl,{className:"wp-block-jetpack-map__marker-caption",label:Object(y.__)("Marker Caption","jetpack"),value:f,rows:"2",tag:"textarea",onChange:function(e){return d({caption:e})}}),Object(j.createElement)(k.Button,{onClick:p,className:"wp-block-jetpack-map__delete-btn"},Object(j.createElement)(k.Dashicon,{icon:"trash",size:"15"})," ",Object(y.__)("Delete Marker","jetpack"))),s&&!r&&Object(j.createElement)(j.Fragment,null,Object(j.createElement)("h3",null,m),Object(j.createElement)("p",null,f)));return Object(j.createElement)(j.Fragment,null,Object(j.createElement)("div",{className:"wp-block-jetpack-map__gm-container",ref:this.mapRef},g),v,b)}},{key:"componentDidMount",value:function(){this.props.apiKey&&this.loadMapLibraries()}},{key:"componentWillUnmount",value:function(){this.debouncedSizeMap.cancel()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.apiKey,r=t.children,a=t.points,i=t.mapStyle,o=t.mapDetails,c=this.state.map;n&&n.length>0&&n!==e.apiKey&&this.loadMapLibraries(),r!==e.children&&!1!==r&&this.clearCurrentMarker(),a!==e.points&&this.setBoundsByMarkers(),a.length!==e.points.length&&this.clearCurrentMarker(),i===e.mapStyle&&o===e.mapDetails||c.setStyle(this.getMapStyle())}},{key:"getMapStyle",value:function(){var e=this.props;return function(e,t){return{default:{details:"mapbox://styles/automattic/cjolkhmez0qdd2ro82dwog1in",no_details:"mapbox://styles/automattic/cjolkci3905d82soef4zlmkdo"},black_and_white:{details:"mapbox://styles/automattic/cjolkixvv0ty42spgt2k4j434",no_details:"mapbox://styles/automattic/cjolkgc540tvj2spgzzoq37k4"},satellite:{details:"mapbox://styles/mapbox/satellite-streets-v10",no_details:"mapbox://styles/mapbox/satellite-v9"},terrain:{details:"mapbox://styles/automattic/cjolkf8p405fh2soet2rdt96b",no_details:"mapbox://styles/automattic/cjolke6fz12ys2rpbpvgl12ha"}}[e][t?"details":"no_details"]}(e.mapStyle,e.mapDetails)}},{key:"getMapType",value:function(){switch(this.props.mapStyle){case"satellite":return"HYBRID";case"terrain":return"TERRAIN";case"black_and_white":default:return"ROADMAP"}}},{key:"loadMapLibraries",value:function(){var e=this,t=this.props.apiKey;Promise.all([n.e(16).then(n.t.bind(null,306,7)),n.e(16).then(n.t.bind(null,307,7))]).then((function(n){var r=a()(n,1)[0].default;r.accessToken=t,e.setState({mapboxgl:r},e.scriptsLoaded)}))}},{key:"initMap",value:function(e){var t=this,n=this.state.mapboxgl,r=this.props,a=r.zoom,i=r.onMapLoaded,o=r.onError,c=r.admin,s=null;try{s=new n.Map({container:this.mapRef.current,style:this.getMapStyle(),center:this.googlePoint2Mapbox(e),zoom:parseInt(a,10),pitchWithRotate:!1,attributionControl:!1,dragRotate:!1})}catch(u){return void o("mapbox_error",u.message)}s.on("error",(function(e){o("mapbox_error",e.error.message)}));var l=new n.NavigationControl({showCompass:!1,showZoom:!0});s.on("zoomend",(function(){t.props.onSetZoom(s.getZoom())})),s.on("moveend",(function(){var e=t.props,n=e.onSetMapCenter;e.points.length<1&&n(s.getCenter())})),s.getCanvas().addEventListener("click",this.onMapClick),this.setState({map:s,zoomControl:l},(function(){t.debouncedSizeMap(),s.addControl(l),c||s.addControl(new n.FullscreenControl),t.mapRef.current.addEventListener("alignmentChanged",t.debouncedSizeMap),s.resize(),i(),t.setState({loaded:!0}),window.addEventListener("resize",t.debouncedSizeMap)}))}}]),t}(j.Component);x.defaultProps={points:[],mapStyle:"default",zoom:13,onSetZoom:function(){},onSetMapCenter:function(){},onMapLoaded:function(){},onMarkerClick:function(){},onError:function(){},markerColor:"red",apiKey:null,mapCenter:{}};t.a=x},function(e,t){!function(){e.exports=this.moment}()},function(e,t){!function(){e.exports=this.wp.notices}()},function(e,t){!function(e){var t=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),n=function(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t&&(n[Symbol.iterator]=function(){return n}),n},r=function(e){return encodeURIComponent(e).replace(/%20/g,"+")},a=function(e){return decodeURIComponent(String(e).replace(/\+/g," "))};(function(){try{var t=e.URLSearchParams;return"a=1"===new t("?a=1").toString()&&"function"==typeof t.prototype.set}catch(n){return!1}})()||function(){var a=function(e){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var t=typeof e;if("undefined"===t);else if("string"===t)""!==e&&this._fromString(e);else if(e instanceof a){var n=this;e.forEach((function(e,t){n.append(t,e)}))}else{if(null===e||"object"!==t)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(e))for(var r=0;r<e.length;r++){var i=e[r];if("[object Array]"!==Object.prototype.toString.call(i)&&2===i.length)throw new TypeError("Expected [string, any] as entry at index "+r+" of URLSearchParams's input");this.append(i[0],i[1])}else for(var o in e)e.hasOwnProperty(o)&&this.append(o,e[o])}},i=a.prototype;i.append=function(e,t){e in this._entries?this._entries[e].push(String(t)):this._entries[e]=[String(t)]},i.delete=function(e){delete this._entries[e]},i.get=function(e){return e in this._entries?this._entries[e][0]:null},i.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},i.has=function(e){return e in this._entries},i.set=function(e,t){this._entries[e]=[String(t)]},i.forEach=function(e,t){var n;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){n=this._entries[r];for(var a=0;a<n.length;a++)e.call(t,n[a],r,this)}},i.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),n(e)},i.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),n(e)},i.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),n(e)},t&&(i[Symbol.iterator]=i.entries),i.toString=function(){var e=[];return this.forEach((function(t,n){e.push(r(n)+"="+r(t))})),e.join("&")},e.URLSearchParams=a}();var i=e.URLSearchParams.prototype;"function"!=typeof i.sort&&(i.sort=function(){var e=this,t=[];this.forEach((function(n,r){t.push([r,n]),e._entries||e.delete(r)})),t.sort((function(e,t){return e[0]<t[0]?-1:e[0]>t[0]?1:0})),e._entries&&(e._entries={});for(var n=0;n<t.length;n++)this.append(t[n][0],t[n][1])}),"function"!=typeof i._fromString&&Object.defineProperty(i,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(e){if(this._entries)this._entries={};else{var t=[];this.forEach((function(e,n){t.push(n)}));for(var n=0;n<t.length;n++)this.delete(t[n])}var r,i=(e=e.replace(/^\?/,"")).split("&");for(n=0;n<i.length;n++)r=i[n].split("="),this.append(a(r[0]),r.length>1?a(r[1]):"")}})}("undefined"!=typeof window?window:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),function(e){if(function(){try{var t=new e.URL("b","http://a");return t.pathname="c%20d","http://a/c%20d"===t.href&&t.searchParams}catch(n){return!1}}()||function(){var t=e.URL,n=function(t,n){"string"!=typeof t&&(t=String(t));var r,a=document;if(n&&(void 0===e.location||n!==e.location.href)){(r=(a=document.implementation.createHTMLDocument("")).createElement("base")).href=n,a.head.appendChild(r);try{if(0!==r.href.indexOf(n))throw new Error(r.href)}catch(p){throw new Error("URL unable to set base "+n+" due to "+p)}}var i=a.createElement("a");if(i.href=t,r&&(a.body.appendChild(i),i.href=i.href),":"===i.protocol||!/:/.test(i.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:i});var o=new e.URLSearchParams(this.search),c=!0,s=!0,l=this;["append","delete","set"].forEach((function(e){var t=o[e];o[e]=function(){t.apply(o,arguments),c&&(s=!1,l.search=o.toString(),s=!0)}})),Object.defineProperty(this,"searchParams",{value:o,enumerable:!0});var u=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==u&&(u=this.search,s&&(c=!1,this.searchParams._fromString(this.search),c=!0))}})},r=n.prototype;["hash","host","hostname","port","protocol"].forEach((function(e){!function(e){Object.defineProperty(r,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})}(e)})),Object.defineProperty(r,"search",{get:function(){return this._anchorElement.search},set:function(e){this._anchorElement.search=e,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(r,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],t=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0}}),n.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)},n.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)},e.URL=n}(),void 0!==e.location&&!("origin"in e.location)){var t=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:t,enumerable:!0})}catch(n){setInterval((function(){e.location.origin=t()}),100)}}}("undefined"!=typeof window?window:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this)},function(e,t,n){},function(e,t,n){"use strict";e.exports=n(163)},function(e,t,n){"use strict";e.exports.encode=n(164),e.exports.decode=n(165),e.exports.format=n(166),e.exports.parse=n(167)},function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(e,t,n){"use strict";var r="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",a="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",i=new RegExp("^(?:"+r+"|"+a+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),o=new RegExp("^(?:"+r+"|"+a+")");e.exports.HTML_TAG_RE=i,e.exports.HTML_OPEN_CLOSE_TAG_RE=o},function(e,t,n){"use strict";e.exports.tokenize=function(e,t){var n,r,a,i,o=e.pos,c=e.src.charCodeAt(o);if(t)return!1;if(126!==c)return!1;if(a=(r=e.scanDelims(e.pos,!0)).length,i=String.fromCharCode(c),a<2)return!1;for(a%2&&(e.push("text","",0).content=i,a--),n=0;n<a;n+=2)e.push("text","",0).content=i+i,e.delimiters.push({marker:c,jump:n,token:e.tokens.length-1,level:e.level,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.postProcess=function(e){var t,n,r,a,i,o=[],c=e.delimiters,s=e.delimiters.length;for(t=0;t<s;t++)126===(r=c[t]).marker&&-1!==r.end&&(a=c[r.end],(i=e.tokens[r.token]).type="s_open",i.tag="s",i.nesting=1,i.markup="~~",i.content="",(i=e.tokens[a.token]).type="s_close",i.tag="s",i.nesting=-1,i.markup="~~",i.content="","text"===e.tokens[a.token-1].type&&"~"===e.tokens[a.token-1].content&&o.push(a.token-1));for(;o.length;){for(n=(t=o.pop())+1;n<e.tokens.length&&"s_close"===e.tokens[n].type;)n++;t!==--n&&(i=e.tokens[n],e.tokens[n]=e.tokens[t],e.tokens[t]=i)}}},function(e,t,n){"use strict";e.exports.tokenize=function(e,t){var n,r,a=e.pos,i=e.src.charCodeAt(a);if(t)return!1;if(95!==i&&42!==i)return!1;for(r=e.scanDelims(e.pos,42===i),n=0;n<r.length;n++)e.push("text","",0).content=String.fromCharCode(i),e.delimiters.push({marker:i,length:r.length,jump:n,token:e.tokens.length-1,level:e.level,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.postProcess=function(e){var t,n,r,a,i,o,c=e.delimiters;for(t=e.delimiters.length-1;t>=0;t--)95!==(n=c[t]).marker&&42!==n.marker||-1!==n.end&&(r=c[n.end],o=t>0&&c[t-1].end===n.end+1&&c[t-1].token===n.token-1&&c[n.end+1].token===r.token+1&&c[t-1].marker===n.marker,i=String.fromCharCode(n.marker),(a=e.tokens[n.token]).type=o?"strong_open":"em_open",a.tag=o?"strong":"em",a.nesting=1,a.markup=o?i+i:i,a.content="",(a=e.tokens[r.token]).type=o?"strong_close":"em_close",a.tag=o?"strong":"em",a.nesting=-1,a.markup=o?i+i:i,a.content="",o&&(e.tokens[c[t-1].token].content="",e.tokens[c[n.end+1].token].content="",t--))}},function(e,t,n){},function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){t.log=function(){var e;return"object"==typeof console&&console.log&&(e=console).log.apply(e,arguments)},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;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(a=r))})),t.splice(a,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var 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.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.exports=n(142)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},function(e){e.exports=JSON.parse('{"production":["business-hours","calendly","contact-form","contact-info","eventbrite","gif","likes","mailchimp","map","markdown","opentable","pinterest","publicize","rating-star","recurring-payments","related-posts","repeat-visitor","sharing","shortlinks","simple-payments","slideshow","subscriptions","tiled-gallery","videopress","wordads"],"beta":["amazon","seo"]}')},function(e,t,n){"use strict";var r=n(147),a=n(148);function i(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}t.extract=function(e){return e.split("?")[1]||""},t.parse=function(e,t){var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=a({arrayFormat:"none"},t)),r=Object.create(null);return"string"!=typeof e?r:(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("="),a=t.shift(),i=t.length>0?t.join("="):void 0;i=void 0===i?null:decodeURIComponent(i),n(decodeURIComponent(a),i,r)})),Object.keys(r).sort().reduce((function(e,t){var n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return t[e]})):t}(n):e[t]=n,e}),Object.create(null))):r},t.stringify=function(e,t){var n=function(e){switch(e.arrayFormat){case"index":return function(t,n,r){return null===n?[i(t,e),"[",r,"]"].join(""):[i(t,e),"[",i(r,e),"]=",i(n,e)].join("")};case"bracket":return function(t,n){return null===n?i(t,e):[i(t,e),"[]=",i(n,e)].join("")};default:return function(t,n){return null===n?i(t,e):[i(t,e),"=",i(n,e)].join("")}}}(t=a({encode:!0,strict:!0,arrayFormat:"none"},t));return e?Object.keys(e).sort().map((function(r){var a=e[r];if(void 0===a)return"";if(null===a)return i(r,t);if(Array.isArray(a)){var o=[];return a.slice().forEach((function(e){void 0!==e&&o.push(n(r,e,o.length))})),o.join("&")}return i(r,t)+"="+i(a,t)})).filter((function(e){return e.length>0})).join("&"):""}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.size,a=void 0===n?24:n,i=e.onClick,c=(e.icon,e.className),s=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","onClick","icon","className"]),l=["gridicon","gridicons-notice-outline",c,(t=a,!(0!=t%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",r({className:l,height:a,width:a,onClick:i},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})))};var a,i=n(34),o=(a=i)&&a.__esModule?a:{default:a};e.exports=t.default},function(e,t,n){e.exports=n.p+"images/eventbrite-in-page-example-e7ade5e253cebf23789d136227b66aa4.png"},function(e,t,n){e.exports=n.p+"images/eventbrite-modal-example-38b56f85505164d217370e285a7207a9.png"},function(e,t,n){e.exports=n.p+"images/map-preview-1744c8f7587de6d8857dbbe7d7cf5cb8.jpg"},function(e,t,n){"use strict";e.exports=n(162)},function(e,t,n){"use strict";e.exports=function(e){var t,n={};return function e(t,n){var r;if(Array.isArray(n))for(r=0;r<n.length;r++)e(t,n[r]);else for(r in n)t[r]=(t[r]||[]).concat(n[r])}(n,e),(t=function(e){return function(t){return function(r){var a,i,o=n[r.type],c=t(r);if(o)for(a=0;a<o.length;a++)(i=o[a](r,e))&&e.dispatch(i);return c}}}).effects=n,t}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.log=function(){var e;return"object"===("undefined"==typeof console?"undefined":r(console))&&console.log&&(e=console).log.apply(e,arguments)},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;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(a=r))})),t.splice(a,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var 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.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.exports=n(219)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=c(n(34)),i=c(n(220)),o=c(n(223));function c(e){return e&&e.__esModule?e:{default:e}}var s=void 0;function l(e,t){var n,o,c,u,p,d,h,m,f=[],b={};for(d=0;d<e.length;d++)if("string"!==(p=e[d]).type){if(!t.hasOwnProperty(p.value)||void 0===t[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(t[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+s);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){n=t[p.value],c=d;break}f.push(t[p.value])}else f.push(p.value);return n&&(u=function(e,t){var n,r,a=t[e],i=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){i++;continue}if("componentClose"===n.type){if(0===i)return r;i--}}throw new Error("Missing closing component token `"+a.value+"`")}(c,e),h=l(e.slice(c+1,u),t),o=a.default.cloneElement(n,{},h),f.push(o),u<e.length-1&&(m=l(e.slice(u+1),t),f=f.concat(m))),1===f.length?f[0]:(f.forEach((function(e,t){e&&(b["interpolation-child-"+t]=e)})),(0,i.default)(b))}t.default=function(e){var t=e.mixedString,n=e.components,a=e.throwErrors;if(s=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var i=(0,o.default)(t);try{return l(i,n)}catch(c){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+c.message+"`");return t}}},function(e,t,n){var r=n(72),a=n(91);function i(e){if(!(this instanceof i))return new i(e);"number"==typeof e&&(e={max:e}),e||(e={}),r.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}e.exports=i,a(i,r.EventEmitter),Object.defineProperty(i.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),i.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},i.prototype.remove=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},i.prototype._unlink=function(e,t,n){this.length--,0===this.length?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=n,this.cache[this.tail].prev=null):(this.cache[t].next=n,this.cache[n].prev=t)},i.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},i.prototype.set=function(e,t){var n;if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){if((n=this.cache[e]).value=t,this.maxAge&&(n.modified=Date.now()),e===this.head)return t;this._unlink(e,n.prev,n.next)}else n={value:t,modified:0,next:null,prev:null},this.maxAge&&(n.modified=Date.now()),this.cache[e]=n,this.length===this.max&&this.evict();return this.length++,n.next=null,n.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},i.prototype._checkAge=function(e,t){return!(this.maxAge&&Date.now()-t.modified>this.maxAge)||(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1)},i.prototype.get=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},i.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},function(e,t,n){"use strict";var r=n(71),a=n(224),i=n(225),o=r.rotl32,c=r.sum32,s=r.sum32_5,l=i.ft_1,u=a.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(d,u),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=o(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var a=this.h[0],i=this.h[1],u=this.h[2],d=this.h[3],h=this.h[4];for(r=0;r<n.length;r++){var m=~~(r/20),f=s(o(a,5),l(m,i,u,d),h,n[r],p[m]);h=d,d=u,u=o(i,30),i=a,a=f}this.h[0]=c(this.h[0],a),this.h[1]=c(this.h[1],i),this.h[2]=c(this.h[2],u),this.h[3]=c(this.h[3],d),this.h[4]=c(this.h[4],h)},d.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){e.exports=n.p+"images/paypal-button-1e53882e702881f8dfd958c141e65383.png"},function(e,t,n){e.exports=n.p+"images/paypal-button-2x-fe4d34770a47484f401cecbb892f8456.png"},function(e,t,n){e.exports=n.p+"images/simple-payments_example-1-f3666e40d28c564ecf04f814e9a9f236.jpg"},function(e,t,n){e.exports=n.p+"images/slideshow_example-1-4d22ce5ab8c84b87d307458fa7975fea.jpg"},function(e,t,n){e.exports=n.p+"images/slideshow_example-2-2c82eb59aaea53932f5e718e17284db7.jpg"},function(e,t,n){e.exports=n.p+"images/slideshow_example-3-75cfaba94fc18a9c4b2bc164bd070c08.jpg"},function(e,t){!function(){e.exports=this.wp.tokenList}()},function(e,t,n){e.exports=n.p+"images/tiled-gallery_example-1-e124e79c7cd0291640efe8f28aa9a6cd.jpg"},function(e,t,n){e.exports=n.p+"images/tiled-gallery_example-2-ee687d7366c359324b23a9681fb2cf92.jpg"},function(e,t,n){e.exports=n.p+"images/tiled-gallery_example-3-4d22ce5ab8c84b87d307458fa7975fea.jpg"},function(e,t,n){e.exports=n.p+"images/tiled-gallery_example-4-2c82eb59aaea53932f5e718e17284db7.jpg"},function(e,t,n){e.exports=n.p+"images/tiled-gallery_example-5-3fafa6df43363f274a371ed90dbce254.jpg"},function(e,t,n){e.exports=n.p+"images/tiled-gallery_example-6-797246061ba8a7039b660584e9dc8946.jpg"},function(e,t,n){e.exports=n.p+"images/example_300x250-212e56e8c2ac91bdcbbd742cd7591e17.png"},function(e,t,n){e.exports=n.p+"images/example_728x90-a5e5ae2b8f307e343aea049530c1742d.png"},function(e,t,n){e.exports=n.p+"images/example_320x50-a1b9b09ff673b75f41d0b32162387f89.png"},function(e,t,n){e.exports=n.p+"images/example_160x600-a12cea65e6d4ce4b6f41d8c4f3184ded.png"},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(e){return n(e)}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},r(t)}e.exports=r},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){(function(e){var r;!function(a){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof window&&window;i.global!==i&&i.window!==i&&i.self;var o,c=2147483647,s=/^xn--/,l=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,h=String.fromCharCode;function m(e){throw RangeError(p[e])}function f(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function b(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+f((e=e.replace(u,".")).split("."),t).join(".")}function g(e){for(var t,n,r=[],a=0,i=e.length;a<i;)(t=e.charCodeAt(a++))>=55296&&t<=56319&&a<i?56320==(64512&(n=e.charCodeAt(a++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),a--):r.push(t);return r}function v(e){return f(e,(function(e){var t="";return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function j(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function y(e,t,n){var r=0;for(e=n?d(e/700):e>>1,e+=d(e/t);e>455;r+=36)e=d(e/35);return d(r+36*e/(e+38))}function _(e){var t,n,r,a,i,o,s,l,u,p,h,f=[],b=e.length,g=0,j=128,_=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&m("not-basic"),f.push(e.charCodeAt(r));for(a=n>0?n+1:0;a<b;){for(i=g,o=1,s=36;a>=b&&m("invalid-input"),((l=(h=e.charCodeAt(a++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:36)>=36||l>d((c-g)/o))&&m("overflow"),g+=l*o,!(l<(u=s<=_?1:s>=_+26?26:s-_));s+=36)o>d(c/(p=36-u))&&m("overflow"),o*=p;_=y(g-i,t=f.length+1,0==i),d(g/t)>c-j&&m("overflow"),j+=d(g/t),g%=t,f.splice(g++,0,j)}return v(f)}function k(e){var t,n,r,a,i,o,s,l,u,p,f,b,v,_,k,O=[];for(b=(e=g(e)).length,t=128,n=0,i=72,o=0;o<b;++o)(f=e[o])<128&&O.push(h(f));for(r=a=O.length,a&&O.push("-");r<b;){for(s=c,o=0;o<b;++o)(f=e[o])>=t&&f<s&&(s=f);for(s-t>d((c-n)/(v=r+1))&&m("overflow"),n+=(s-t)*v,t=s,o=0;o<b;++o)if((f=e[o])<t&&++n>c&&m("overflow"),f==t){for(l=n,u=36;!(l<(p=u<=i?1:u>=i+26?26:u-i));u+=36)k=l-p,_=36-p,O.push(h(j(p+k%_,0))),l=d(k/_);O.push(h(j(l,0))),i=y(n,v,r==a),n=0,++r}++n,++t}return O.join("")}o={version:"1.3.2",ucs2:{decode:g,encode:v},decode:_,encode:k,toASCII:function(e){return b(e,(function(e){return l.test(e)?"xn--"+k(e):e}))},toUnicode:function(e){return b(e,(function(e){return s.test(e)?_(e.slice(4).toLowerCase()):e}))}},void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()}).call(this,n(137)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";t.decode=t.parse=n(140),t.encode=t.stringify=n(141)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,a){t=t||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var o=/\+/g;e=e.split(t);var c=1e3;a&&"number"==typeof a.maxKeys&&(c=a.maxKeys);var s=e.length;c>0&&s>c&&(s=c);for(var l=0;l<s;++l){var u,p,d,h,m=e[l].replace(o,"%20"),f=m.indexOf(n);f>=0?(u=m.substr(0,f),p=m.substr(f+1)):(u=m,p=""),d=decodeURIComponent(u),h=decodeURIComponent(p),r(i,d)?Array.isArray(i[d])?i[d].push(h):i[d]=[i[d],h]:i[d]=h}return i}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,a){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(a){var i=encodeURIComponent(r(a))+n;return Array.isArray(e[a])?e[a].map((function(e){return i+encodeURIComponent(r(e))})).join(t):i+encodeURIComponent(r(e[a]))})).join(t):a?encodeURIComponent(r(a))+n+encodeURIComponent(r(e)):""}},function(e,t,n){var r=n(21);e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return a.colors[Math.abs(t)%a.colors.length]}function a(e){var n;function r(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if(r.enabled){var o=r,c=Number(new Date),s=c-(n||c);o.diff=s,o.prev=n,o.curr=c,n=c,t[0]=a.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var l=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;l++;var r=a.formatters[n];if("function"==typeof r){var i=t[l];e=r.call(o,i),t.splice(l,1),l--}return e})),a.formatArgs.call(o,t);var u=o.log||a.log;u.apply(o,t)}}return r.namespace=e,r.enabled=a.enabled(e),r.useColors=a.useColors(),r.color=t(e),r.destroy=i,r.extend=o,"function"==typeof a.init&&a.init(r),a.instances.push(r),r}function i(){var e=a.instances.indexOf(this);return-1!==e&&(a.instances.splice(e,1),!0)}function o(e,t){var n=a(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function c(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return a.debug=a,a.default=a,a.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},a.disable=function(){var e=[].concat(r(a.names.map(c)),r(a.skips.map(c).map((function(e){return"-"+e})))).join(",");return a.enable(""),e},a.enable=function(e){var t;a.save(e),a.names=[],a.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length;for(t=0;t<r;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?a.skips.push(new RegExp("^"+e.substr(1)+"$")):a.names.push(new RegExp("^"+e+"$")));for(t=0;t<a.instances.length;t++){var i=a.instances[t];i.enabled=a.enabled(i.namespace)}},a.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=a.skips.length;t<n;t++)if(a.skips[t].test(e))return!1;for(t=0,n=a.names.length;t<n;t++)if(a.names[t].test(e))return!0;return!1},a.humanize=n(64),Object.keys(e).forEach((function(t){a[t]=e[t]})),a.instances=[],a.names=[],a.skips=[],a.formatters={},a.selectColor=t,a.enable(a.load()),a}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=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(a){return!1}}()?Object.assign:function(e,t){for(var n,c,s=o(e),l=1;l<arguments.length;l++){for(var u in n=Object(arguments[l]))a.call(n,u)&&(s[u]=n[u]);if(r){c=r(n);for(var p=0;p<c.length;p++)i.call(n,c[p])&&(s[c[p]]=n[c[p]])}}return s}},function(e,t,n){},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var r=n(19),a=n(170),i=n(174),o=n(175),c=n(183),s=n(197),l=n(210),u=n(82),p=n(212),d={default:n(213),zero:n(214),commonmark:n(215)},h=/^(vbscript|javascript|file|data):/,m=/^data:image\/(gif|png|jpeg|webp);/;function f(e){var t=e.trim().toLowerCase();return!h.test(t)||!!m.test(t)}var b=["http:","https:","mailto:"];function g(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||b.indexOf(t.protocol)>=0))try{t.hostname=p.toASCII(t.hostname)}catch(n){}return u.encode(u.format(t))}function v(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||b.indexOf(t.protocol)>=0))try{t.hostname=p.toUnicode(t.hostname)}catch(n){}return u.decode(u.format(t))}function j(e,t){if(!(this instanceof j))return new j(e,t);t||r.isString(e)||(t=e||{},e="default"),this.inline=new s,this.block=new c,this.core=new o,this.renderer=new i,this.linkify=new l,this.validateLink=f,this.normalizeLink=g,this.normalizeLinkText=v,this.utils=r,this.helpers=r.assign({},a),this.options={},this.configure(e),t&&this.set(t)}j.prototype.set=function(e){return r.assign(this.options,e),this},j.prototype.configure=function(e){var t,n=this;if(r.isString(e)&&!(e=d[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},j.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},j.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},j.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},j.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},j.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},j.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},j.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=j},function(e){e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')},function(e,t,n){"use strict";var r={};function a(e,t,n){var i,o,c,s,l,u="";for("string"!=typeof t&&(n=t,t=a.defaultChars),void 0===n&&(n=!0),l=function(e){var t,n,a=r[e];if(a)return a;for(a=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?a.push(n):a.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)a[e.charCodeAt(t)]=e[t];return a}(t),i=0,o=e.length;i<o;i++)if(c=e.charCodeAt(i),n&&37===c&&i+2<o&&/^[0-9a-f]{2}$/i.test(e.slice(i+1,i+3)))u+=e.slice(i,i+3),i+=2;else if(c<128)u+=l[c];else if(c>=55296&&c<=57343){if(c>=55296&&c<=56319&&i+1<o&&(s=e.charCodeAt(i+1))>=56320&&s<=57343){u+=encodeURIComponent(e[i]+e[i+1]),i++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[i]);return u}a.defaultChars=";/?:@&=+$,-_.!~*'()#",a.componentChars="-_.!~*'()",e.exports=a},function(e,t,n){"use strict";var r={};function a(e,t){var n;return"string"!=typeof t&&(t=a.defaultChars),n=function(e){var t,n,a=r[e];if(a)return a;for(a=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),a.push(n);for(t=0;t<e.length;t++)a[n=e.charCodeAt(t)]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return a}(t),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,r,a,i,o,c,s,l="";for(t=0,r=e.length;t<r;t+=3)(a=parseInt(e.slice(t+1,t+3),16))<128?l+=n[a]:192==(224&a)&&t+3<r&&128==(192&(i=parseInt(e.slice(t+4,t+6),16)))?(l+=(s=a<<6&1984|63&i)<128?"��":String.fromCharCode(s),t+=3):224==(240&a)&&t+6<r&&(i=parseInt(e.slice(t+4,t+6),16),o=parseInt(e.slice(t+7,t+9),16),128==(192&i)&&128==(192&o))?(l+=(s=a<<12&61440|i<<6&4032|63&o)<2048||s>=55296&&s<=57343?"���":String.fromCharCode(s),t+=6):240==(248&a)&&t+9<r&&(i=parseInt(e.slice(t+4,t+6),16),o=parseInt(e.slice(t+7,t+9),16),c=parseInt(e.slice(t+10,t+12),16),128==(192&i)&&128==(192&o)&&128==(192&c))?((s=a<<18&1835008|i<<12&258048|o<<6&4032|63&c)<65536||s>1114111?l+="����":(s-=65536,l+=String.fromCharCode(55296+(s>>10),56320+(1023&s))),t+=9):l+="�";return l}))}a.defaultChars=";/?:@&=+$,#",a.componentChars="",e.exports=a},function(e,t,n){"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}},function(e,t,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var a=/^([a-z0-9.+-]+:)/i,i=/:[0-9]*$/,o=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),s=["'"].concat(c),l=["%","/","?",";","#"].concat(s),u=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};r.prototype.parse=function(e,t){var n,r,i,c,s,f=e;if(f=f.trim(),!t&&1===e.split("#").length){var b=o.exec(f);if(b)return this.pathname=b[1],b[2]&&(this.search=b[2]),this}var g=a.exec(f);if(g&&(i=(g=g[0]).toLowerCase(),this.protocol=g,f=f.substr(g.length)),(t||g||f.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(s="//"===f.substr(0,2))||g&&h[g]||(f=f.substr(2),this.slashes=!0)),!h[g]&&(s||g&&!m[g])){var v,j,y=-1;for(n=0;n<u.length;n++)-1!==(c=f.indexOf(u[n]))&&(-1===y||c<y)&&(y=c);for(-1!==(j=-1===y?f.lastIndexOf("@"):f.lastIndexOf("@",y))&&(v=f.slice(0,j),f=f.slice(j+1),this.auth=v),y=-1,n=0;n<l.length;n++)-1!==(c=f.indexOf(l[n]))&&(-1===y||c<y)&&(y=c);-1===y&&(y=f.length),":"===f[y-1]&&y--;var _=f.slice(0,y);f=f.slice(y),this.parseHost(_),this.hostname=this.hostname||"";var k="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!k){var O=this.hostname.split(/\./);for(n=0,r=O.length;n<r;n++){var w=O[n];if(w&&!w.match(p)){for(var E="",C=0,x=w.length;C<x;C++)w.charCodeAt(C)>127?E+="x":E+=w[C];if(!E.match(p)){var S=O.slice(0,n),A=O.slice(n+1),F=w.match(d);F&&(S.push(F[1]),A.unshift(F[2])),A.length&&(f=A.join(".")+f),this.hostname=S.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var P=f.indexOf("#");-1!==P&&(this.hash=f.substr(P),f=f.slice(0,P));var T=f.indexOf("?");return-1!==T&&(this.search=f.substr(T),f=f.slice(0,T)),f&&(this.pathname=f),m[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},r.prototype.parseHost=function(e){var t=i.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,t){if(e&&e instanceof r)return e;var n=new r;return n.parse(e,t),n}},function(e,t,n){"use strict";t.Any=n(83),t.Cc=n(84),t.Cf=n(169),t.P=n(68),t.Z=n(85)},function(e,t){e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},function(e,t,n){"use strict";t.parseLinkLabel=n(171),t.parseLinkDestination=n(172),t.parseLinkTitle=n(173)},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,a,i,o,c=-1,s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(93===(i=e.src.charCodeAt(e.pos))&&0===--r){a=!0;break}if(o=e.pos,e.md.inline.skipToken(e),91===i)if(o===e.pos-1)r++;else if(n)return e.pos=l,-1}return a&&(c=e.pos),e.pos=l,c}},function(e,t,n){"use strict";var r=n(19).isSpace,a=n(19).unescapeAll;e.exports=function(e,t,n){var i,o,c=t,s={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n;){if(10===(i=e.charCodeAt(t))||r(i))return s;if(62===i)return s.pos=t+1,s.str=a(e.slice(c+1,t)),s.ok=!0,s;92===i&&t+1<n?t+=2:t++}return s}for(o=0;t<n&&32!==(i=e.charCodeAt(t))&&!(i<32||127===i);)if(92===i&&t+1<n)t+=2;else{if(40===i&&o++,41===i){if(0===o)break;o--}t++}return c===t?s:0!==o?s:(s.str=a(e.slice(c,t)),s.lines=0,s.pos=t,s.ok=!0,s)}},function(e,t,n){"use strict";var r=n(19).unescapeAll;e.exports=function(e,t,n){var a,i,o=0,c=t,s={ok:!1,pos:0,lines:0,str:""};if(t>=n)return s;if(34!==(i=e.charCodeAt(t))&&39!==i&&40!==i)return s;for(t++,40===i&&(i=41);t<n;){if((a=e.charCodeAt(t))===i)return s.pos=t+1,s.lines=o,s.str=r(e.slice(c+1,t)),s.ok=!0,s;10===a?o++:92===a&&t+1<n&&(t++,10===e.charCodeAt(t)&&o++),t++}return s}},function(e,t,n){"use strict";var r=n(19).assign,a=n(19).unescapeAll,i=n(19).escapeHtml,o={};function c(){this.rules=r({},o)}o.code_inline=function(e,t,n,r,a){var o=e[t];return"<code"+a.renderAttrs(o)+">"+i(e[t].content)+"</code>"},o.code_block=function(e,t,n,r,a){var o=e[t];return"<pre"+a.renderAttrs(o)+"><code>"+i(e[t].content)+"</code></pre>\n"},o.fence=function(e,t,n,r,o){var c,s,l,u,p=e[t],d=p.info?a(p.info).trim():"",h="";return d&&(h=d.split(/\s+/g)[0]),0===(c=n.highlight&&n.highlight(p.content,h)||i(p.content)).indexOf("<pre")?c+"\n":d?(s=p.attrIndex("class"),l=p.attrs?p.attrs.slice():[],s<0?l.push(["class",n.langPrefix+h]):l[s][1]+=" "+n.langPrefix+h,u={attrs:l},"<pre><code"+o.renderAttrs(u)+">"+c+"</code></pre>\n"):"<pre><code"+o.renderAttrs(p)+">"+c+"</code></pre>\n"},o.image=function(e,t,n,r,a){var i=e[t];return i.attrs[i.attrIndex("alt")][1]=a.renderInlineAsText(i.children,n,r),a.renderToken(e,t,n)},o.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},o.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},o.text=function(e,t){return i(e[t].content)},o.html_block=function(e,t){return e[t].content},o.html_inline=function(e,t){return e[t].content},c.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+i(e.attrs[t][0])+'="'+i(e.attrs[t][1])+'"';return r},c.prototype.renderToken=function(e,t,n){var r,a="",i=!1,o=e[t];return o.hidden?"":(o.block&&-1!==o.nesting&&t&&e[t-1].hidden&&(a+="\n"),a+=(-1===o.nesting?"</":"<")+o.tag,a+=this.renderAttrs(o),0===o.nesting&&n.xhtmlOut&&(a+=" /"),o.block&&(i=!0,1===o.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden?i=!1:-1===r.nesting&&r.tag===o.tag&&(i=!1))),a+=i?">\n":">")},c.prototype.renderInline=function(e,t,n){for(var r,a="",i=this.rules,o=0,c=e.length;o<c;o++)void 0!==i[r=e[o].type]?a+=i[r](e,o,t,n,this):a+=this.renderToken(e,o,t);return a},c.prototype.renderInlineAsText=function(e,t,n){for(var r="",a=0,i=e.length;a<i;a++)"text"===e[a].type?r+=e[a].content:"image"===e[a].type&&(r+=this.renderInlineAsText(e[a].children,t,n));return r},c.prototype.render=function(e,t,n){var r,a,i,o="",c=this.rules;for(r=0,a=e.length;r<a;r++)"inline"===(i=e[r].type)?o+=this.renderInline(e[r].children,t,n):void 0!==c[i]?o+=c[e[r].type](e,r,t,n,this):o+=this.renderToken(e,r,t,n);return o},e.exports=c},function(e,t,n){"use strict";var r=n(69),a=[["normalize",n(176)],["block",n(177)],["inline",n(178)],["linkify",n(179)],["replacements",n(180)],["smartquotes",n(181)]];function i(){this.ruler=new r;for(var e=0;e<a.length;e++)this.ruler.push(a[e][0],a[e][1])}i.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},i.prototype.State=n(182),e.exports=i},function(e,t,n){"use strict";var r=/\r[\n\u0085]?|[\u2424\u2028\u0085]/g,a=/\u0000/g;e.exports=function(e){var t;t=(t=e.src.replace(r,"\n")).replace(a,"�"),e.src=t}},function(e,t,n){"use strict";e.exports=function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}},function(e,t,n){"use strict";e.exports=function(e){var t,n,r,a=e.tokens;for(n=0,r=a.length;n<r;n++)"inline"===(t=a[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}},function(e,t,n){"use strict";var r=n(19).arrayReplaceAt;function a(e){return/^<\/a\s*>/i.test(e)}e.exports=function(e){var t,n,i,o,c,s,l,u,p,d,h,m,f,b,g,v,j,y,_=e.tokens;if(e.md.options.linkify)for(n=0,i=_.length;n<i;n++)if("inline"===_[n].type&&e.md.linkify.pretest(_[n].content))for(f=0,t=(o=_[n].children).length-1;t>=0;t--)if("link_close"!==(s=o[t]).type){if("html_inline"===s.type&&(y=s.content,/^<a[>\s]/i.test(y)&&f>0&&f--,a(s.content)&&f++),!(f>0)&&"text"===s.type&&e.md.linkify.test(s.content)){for(p=s.content,j=e.md.linkify.match(p),l=[],m=s.level,h=0,u=0;u<j.length;u++)b=j[u].url,g=e.md.normalizeLink(b),e.md.validateLink(g)&&(v=j[u].text,v=j[u].schema?"mailto:"!==j[u].schema||/^mailto:/i.test(v)?e.md.normalizeLinkText(v):e.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+v).replace(/^http:\/\//,""),(d=j[u].index)>h&&((c=new e.Token("text","",0)).content=p.slice(h,d),c.level=m,l.push(c)),(c=new e.Token("link_open","a",1)).attrs=[["href",g]],c.level=m++,c.markup="linkify",c.info="auto",l.push(c),(c=new e.Token("text","",0)).content=v,c.level=m,l.push(c),(c=new e.Token("link_close","a",-1)).level=--m,c.markup="linkify",c.info="auto",l.push(c),h=j[u].lastIndex);h<p.length&&((c=new e.Token("text","",0)).content=p.slice(h),c.level=m,l.push(c)),_[n].children=o=r(o,t,l)}}else for(t--;o[t].level!==s.level&&"link_open"!==o[t].type;)t--}},function(e,t,n){"use strict";var r=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,a=/\((c|tm|r|p)\)/i,i=/\((c|tm|r|p)\)/gi,o={c:"©",r:"®",p:"§",tm:"™"};function c(e,t){return o[t.toLowerCase()]}function s(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||(n.content=n.content.replace(i,c)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function l(e){var t,n,a=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||a||r.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),"link_open"===n.type&&"auto"===n.info&&a--,"link_close"===n.type&&"auto"===n.info&&a++}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(a.test(e.tokens[t].content)&&s(e.tokens[t].children),r.test(e.tokens[t].content)&&l(e.tokens[t].children))}},function(e,t,n){"use strict";var r=n(19).isWhiteSpace,a=n(19).isPunctChar,i=n(19).isMdAsciiPunct,o=/['"]/,c=/['"]/g;function s(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function l(e,t){var n,o,l,u,p,d,h,m,f,b,g,v,j,y,_,k,O,w,E,C,x;for(E=[],n=0;n<e.length;n++){for(o=e[n],h=e[n].level,O=E.length-1;O>=0&&!(E[O].level<=h);O--);if(E.length=O+1,"text"===o.type){p=0,d=(l=o.content).length;e:for(;p<d&&(c.lastIndex=p,u=c.exec(l));){if(_=k=!0,p=u.index+1,w="'"===u[0],f=32,u.index-1>=0)f=l.charCodeAt(u.index-1);else for(O=n-1;O>=0&&("softbreak"!==e[O].type&&"hardbreak"!==e[O].type);O--)if("text"===e[O].type){f=e[O].content.charCodeAt(e[O].content.length-1);break}if(b=32,p<d)b=l.charCodeAt(p);else for(O=n+1;O<e.length&&("softbreak"!==e[O].type&&"hardbreak"!==e[O].type);O++)if("text"===e[O].type){b=e[O].content.charCodeAt(0);break}if(g=i(f)||a(String.fromCharCode(f)),v=i(b)||a(String.fromCharCode(b)),j=r(f),(y=r(b))?_=!1:v&&(j||g||(_=!1)),j?k=!1:g&&(y||v||(k=!1)),34===b&&'"'===u[0]&&f>=48&&f<=57&&(k=_=!1),_&&k&&(_=!1,k=v),_||k){if(k)for(O=E.length-1;O>=0&&(m=E[O],!(E[O].level<h));O--)if(m.single===w&&E[O].level===h){m=E[O],w?(C=t.md.options.quotes[2],x=t.md.options.quotes[3]):(C=t.md.options.quotes[0],x=t.md.options.quotes[1]),o.content=s(o.content,u.index,x),e[m.token].content=s(e[m.token].content,m.pos,C),p+=x.length-1,m.token===n&&(p+=C.length-1),d=(l=o.content).length,E.length=O;continue e}_?E.push({token:n,pos:u.index,single:w,level:h}):k&&w&&(o.content=s(o.content,u.index,"’"))}else w&&(o.content=s(o.content,u.index,"’"))}}}}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&o.test(e.tokens[t].content)&&l(e.tokens[t].children,e)}},function(e,t,n){"use strict";var r=n(70);function a(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}a.prototype.Token=r,e.exports=a},function(e,t,n){"use strict";var r=n(69),a=[["table",n(184),["paragraph","reference"]],["code",n(185)],["fence",n(186),["paragraph","reference","blockquote","list"]],["blockquote",n(187),["paragraph","reference","blockquote","list"]],["hr",n(188),["paragraph","reference","blockquote","list"]],["list",n(189),["paragraph","reference","blockquote"]],["reference",n(190)],["heading",n(191),["paragraph","reference","blockquote"]],["lheading",n(192)],["html_block",n(193),["paragraph","reference","blockquote"]],["paragraph",n(195)]];function i(){this.ruler=new r;for(var e=0;e<a.length;e++)this.ruler.push(a[e][0],a[e][1],{alt:(a[e][2]||[]).slice()})}i.prototype.tokenize=function(e,t,n){for(var r,a=this.ruler.getRules(""),i=a.length,o=t,c=!1,s=e.md.options.maxNesting;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n))&&!(e.sCount[o]<e.blkIndent);){if(e.level>=s){e.line=n;break}for(r=0;r<i&&!a[r](e,o,n,!1);r++);e.tight=!c,e.isEmpty(e.line-1)&&(c=!0),(o=e.line)<n&&e.isEmpty(o)&&(c=!0,o++,e.line=o)}},i.prototype.parse=function(e,t,n,r){var a;e&&(a=new this.State(e,t,n,r),this.tokenize(a,a.line,a.lineMax))},i.prototype.State=n(196),e.exports=i},function(e,t,n){"use strict";var r=n(19).isSpace;function a(e,t){var n=e.bMarks[t]+e.blkIndent,r=e.eMarks[t];return e.src.substr(n,r-n)}function i(e){var t,n=[],r=0,a=e.length,i=0,o=0,c=!1,s=0;for(t=e.charCodeAt(r);r<a;)96===t?c?(c=!1,s=r):i%2==0&&(c=!0,s=r):124!==t||i%2!=0||c||(n.push(e.substring(o,r)),o=r+1),92===t?i++:i=0,++r===a&&c&&(c=!1,r=s+1),t=e.charCodeAt(r);return n.push(e.substring(o)),n}e.exports=function(e,t,n,o){var c,s,l,u,p,d,h,m,f,b,g,v;if(t+2>n)return!1;if(p=t+1,e.sCount[p]<e.blkIndent)return!1;if(e.sCount[p]-e.blkIndent>=4)return!1;if((l=e.bMarks[p]+e.tShift[p])>=e.eMarks[p])return!1;if(124!==(c=e.src.charCodeAt(l++))&&45!==c&&58!==c)return!1;for(;l<e.eMarks[p];){if(124!==(c=e.src.charCodeAt(l))&&45!==c&&58!==c&&!r(c))return!1;l++}for(d=(s=a(e,t+1)).split("|"),f=[],u=0;u<d.length;u++){if(!(b=d[u].trim())){if(0===u||u===d.length-1)continue;return!1}if(!/^:?-+:?$/.test(b))return!1;58===b.charCodeAt(b.length-1)?f.push(58===b.charCodeAt(0)?"center":"right"):58===b.charCodeAt(0)?f.push("left"):f.push("")}if(-1===(s=a(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((h=(d=i(s.replace(/^\||\|$/g,""))).length)>f.length)return!1;if(o)return!0;for((m=e.push("table_open","table",1)).map=g=[t,0],(m=e.push("thead_open","thead",1)).map=[t,t+1],(m=e.push("tr_open","tr",1)).map=[t,t+1],u=0;u<d.length;u++)(m=e.push("th_open","th",1)).map=[t,t+1],f[u]&&(m.attrs=[["style","text-align:"+f[u]]]),(m=e.push("inline","",0)).content=d[u].trim(),m.map=[t,t+1],m.children=[],m=e.push("th_close","th",-1);for(m=e.push("tr_close","tr",-1),m=e.push("thead_close","thead",-1),(m=e.push("tbody_open","tbody",1)).map=v=[t+2,0],p=t+2;p<n&&!(e.sCount[p]<e.blkIndent)&&-1!==(s=a(e,p).trim()).indexOf("|")&&!(e.sCount[p]-e.blkIndent>=4);p++){for(d=i(s.replace(/^\||\|$/g,"")),m=e.push("tr_open","tr",1),u=0;u<h;u++)m=e.push("td_open","td",1),f[u]&&(m.attrs=[["style","text-align:"+f[u]]]),(m=e.push("inline","",0)).content=d[u]?d[u].trim():"",m.children=[],m=e.push("td_close","td",-1);m=e.push("tr_close","tr",-1)}return m=e.push("tbody_close","tbody",-1),m=e.push("table_close","table",-1),g[1]=v[1]=p,e.line=p,!0}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,a,i;if(e.sCount[t]-e.blkIndent<4)return!1;for(a=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;a=++r}return e.line=a,(i=e.push("code_block","code",0)).content=e.getLines(t,a,4+e.blkIndent,!0),i.map=[t,e.line],!0}},function(e,t,n){"use strict";e.exports=function(e,t,n,r){var a,i,o,c,s,l,u,p=!1,d=e.bMarks[t]+e.tShift[t],h=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(d+3>h)return!1;if(126!==(a=e.src.charCodeAt(d))&&96!==a)return!1;if(s=d,(i=(d=e.skipChars(d,a))-s)<3)return!1;if(u=e.src.slice(s,d),(o=e.src.slice(d,h)).indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;for(c=t;!(++c>=n)&&!((d=s=e.bMarks[c]+e.tShift[c])<(h=e.eMarks[c])&&e.sCount[c]<e.blkIndent);)if(e.src.charCodeAt(d)===a&&!(e.sCount[c]-e.blkIndent>=4||(d=e.skipChars(d,a))-s<i||(d=e.skipSpaces(d))<h)){p=!0;break}return i=e.sCount[t],e.line=c+(p?1:0),(l=e.push("fence","code",0)).info=o,l.content=e.getLines(t+1,c,i,!0),l.markup=u,l.map=[t,e.line],!0}},function(e,t,n){"use strict";var r=n(19).isSpace;e.exports=function(e,t,n,a){var i,o,c,s,l,u,p,d,h,m,f,b,g,v,j,y,_,k,O,w,E=e.lineMax,C=e.bMarks[t]+e.tShift[t],x=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(C++))return!1;if(a)return!0;for(s=h=e.sCount[t]+C-(e.bMarks[t]+e.tShift[t]),32===e.src.charCodeAt(C)?(C++,s++,h++,i=!1,y=!0):9===e.src.charCodeAt(C)?(y=!0,(e.bsCount[t]+h)%4==3?(C++,s++,h++,i=!1):i=!0):y=!1,m=[e.bMarks[t]],e.bMarks[t]=C;C<x&&(o=e.src.charCodeAt(C),r(o));)9===o?h+=4-(h+e.bsCount[t]+(i?1:0))%4:h++,C++;for(f=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(y?1:0),u=C>=x,v=[e.sCount[t]],e.sCount[t]=h-s,j=[e.tShift[t]],e.tShift[t]=C-e.bMarks[t],k=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",w=!1,d=t+1;d<n&&(e.sCount[d]<e.blkIndent&&(w=!0),!((C=e.bMarks[d]+e.tShift[d])>=(x=e.eMarks[d])));d++)if(62!==e.src.charCodeAt(C++)||w){if(u)break;for(_=!1,c=0,l=k.length;c<l;c++)if(k[c](e,d,n,!0)){_=!0;break}if(_){e.lineMax=d,0!==e.blkIndent&&(m.push(e.bMarks[d]),f.push(e.bsCount[d]),j.push(e.tShift[d]),v.push(e.sCount[d]),e.sCount[d]-=e.blkIndent);break}m.push(e.bMarks[d]),f.push(e.bsCount[d]),j.push(e.tShift[d]),v.push(e.sCount[d]),e.sCount[d]=-1}else{for(s=h=e.sCount[d]+C-(e.bMarks[d]+e.tShift[d]),32===e.src.charCodeAt(C)?(C++,s++,h++,i=!1,y=!0):9===e.src.charCodeAt(C)?(y=!0,(e.bsCount[d]+h)%4==3?(C++,s++,h++,i=!1):i=!0):y=!1,m.push(e.bMarks[d]),e.bMarks[d]=C;C<x&&(o=e.src.charCodeAt(C),r(o));)9===o?h+=4-(h+e.bsCount[d]+(i?1:0))%4:h++,C++;u=C>=x,f.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(y?1:0),v.push(e.sCount[d]),e.sCount[d]=h-s,j.push(e.tShift[d]),e.tShift[d]=C-e.bMarks[d]}for(b=e.blkIndent,e.blkIndent=0,(O=e.push("blockquote_open","blockquote",1)).markup=">",O.map=p=[t,0],e.md.block.tokenize(e,t,d),(O=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=E,e.parentType=g,p[1]=e.line,c=0;c<j.length;c++)e.bMarks[c+t]=m[c],e.tShift[c+t]=j[c],e.sCount[c+t]=v[c],e.bsCount[c+t]=f[c];return e.blkIndent=b,!0}},function(e,t,n){"use strict";var r=n(19).isSpace;e.exports=function(e,t,n,a){var i,o,c,s,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(i=e.src.charCodeAt(l++))&&45!==i&&95!==i)return!1;for(o=1;l<u;){if((c=e.src.charCodeAt(l++))!==i&&!r(c))return!1;c===i&&o++}return!(o<3)&&(!!a||(e.line=t+1,(s=e.push("hr","hr",0)).map=[t,e.line],s.markup=Array(o+1).join(String.fromCharCode(i)),!0))}},function(e,t,n){"use strict";var r=n(19).isSpace;function a(e,t){var n,a,i,o;return a=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],42!==(n=e.src.charCodeAt(a++))&&45!==n&&43!==n?-1:a<i&&(o=e.src.charCodeAt(a),!r(o))?-1:a}function i(e,t){var n,a=e.bMarks[t]+e.tShift[t],i=a,o=e.eMarks[t];if(i+1>=o)return-1;if((n=e.src.charCodeAt(i++))<48||n>57)return-1;for(;;){if(i>=o)return-1;if(!((n=e.src.charCodeAt(i++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(i-a>=10)return-1}return i<o&&(n=e.src.charCodeAt(i),!r(n))?-1:i}e.exports=function(e,t,n,r){var o,c,s,l,u,p,d,h,m,f,b,g,v,j,y,_,k,O,w,E,C,x,S,A,F,P,T,N,M=!1,R=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(r&&"paragraph"===e.parentType&&e.tShift[t]>=e.blkIndent&&(M=!0),(S=i(e,t))>=0){if(d=!0,F=e.bMarks[t]+e.tShift[t],v=Number(e.src.substr(F,S-F-1)),M&&1!==v)return!1}else{if(!((S=a(e,t))>=0))return!1;d=!1}if(M&&e.skipSpaces(S)>=e.eMarks[t])return!1;if(g=e.src.charCodeAt(S-1),r)return!0;for(b=e.tokens.length,d?(N=e.push("ordered_list_open","ol",1),1!==v&&(N.attrs=[["start",v]])):N=e.push("bullet_list_open","ul",1),N.map=f=[t,0],N.markup=String.fromCharCode(g),y=t,A=!1,T=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";y<n;){for(x=S,j=e.eMarks[y],p=_=e.sCount[y]+S-(e.bMarks[t]+e.tShift[t]);x<j;){if(9===(o=e.src.charCodeAt(x)))_+=4-(_+e.bsCount[y])%4;else{if(32!==o)break;_++}x++}if((u=(c=x)>=j?1:_-p)>4&&(u=1),l=p+u,(N=e.push("list_item_open","li",1)).markup=String.fromCharCode(g),N.map=h=[t,0],k=e.blkIndent,C=e.tight,E=e.tShift[t],O=e.sCount[t],e.blkIndent=l,e.tight=!0,e.tShift[t]=c-e.bMarks[t],e.sCount[t]=_,c>=j&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!A||(R=!1),A=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=k,e.tShift[t]=E,e.sCount[t]=O,e.tight=C,(N=e.push("list_item_close","li",-1)).markup=String.fromCharCode(g),y=t=e.line,h[1]=y,c=e.bMarks[t],y>=n)break;if(e.sCount[y]<e.blkIndent)break;for(P=!1,s=0,m=T.length;s<m;s++)if(T[s](e,y,n,!0)){P=!0;break}if(P)break;if(d){if((S=i(e,y))<0)break}else if((S=a(e,y))<0)break;if(g!==e.src.charCodeAt(S-1))break}return(N=d?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(g),f[1]=y,e.line=y,e.parentType=w,R&&function(e,t){var n,r,a=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===a&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,b),!0}},function(e,t,n){"use strict";var r=n(19).normalizeReference,a=n(19).isSpace;e.exports=function(e,t,n,i){var o,c,s,l,u,p,d,h,m,f,b,g,v,j,y,_,k=0,O=e.bMarks[t]+e.tShift[t],w=e.eMarks[t],E=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(O))return!1;for(;++O<w;)if(93===e.src.charCodeAt(O)&&92!==e.src.charCodeAt(O-1)){if(O+1===w)return!1;if(58!==e.src.charCodeAt(O+1))return!1;break}for(l=e.lineMax,y=e.md.block.ruler.getRules("reference"),f=e.parentType,e.parentType="reference";E<l&&!e.isEmpty(E);E++)if(!(e.sCount[E]-e.blkIndent>3||e.sCount[E]<0)){for(j=!1,p=0,d=y.length;p<d;p++)if(y[p](e,E,l,!0)){j=!0;break}if(j)break}for(w=(v=e.getLines(t,E,e.blkIndent,!1).trim()).length,O=1;O<w;O++){if(91===(o=v.charCodeAt(O)))return!1;if(93===o){m=O;break}10===o?k++:92===o&&++O<w&&10===v.charCodeAt(O)&&k++}if(m<0||58!==v.charCodeAt(m+1))return!1;for(O=m+2;O<w;O++)if(10===(o=v.charCodeAt(O)))k++;else if(!a(o))break;if(!(b=e.md.helpers.parseLinkDestination(v,O,w)).ok)return!1;if(u=e.md.normalizeLink(b.str),!e.md.validateLink(u))return!1;for(c=O=b.pos,s=k+=b.lines,g=O;O<w;O++)if(10===(o=v.charCodeAt(O)))k++;else if(!a(o))break;for(b=e.md.helpers.parseLinkTitle(v,O,w),O<w&&g!==O&&b.ok?(_=b.str,O=b.pos,k+=b.lines):(_="",O=c,k=s);O<w&&(o=v.charCodeAt(O),a(o));)O++;if(O<w&&10!==v.charCodeAt(O)&&_)for(_="",O=c,k=s;O<w&&(o=v.charCodeAt(O),a(o));)O++;return!(O<w&&10!==v.charCodeAt(O))&&(!!(h=r(v.slice(1,m)))&&(!!i||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[h]&&(e.env.references[h]={title:_,href:u}),e.parentType=f,e.line=t+k+1,!0)))}},function(e,t,n){"use strict";var r=n(19).isSpace;e.exports=function(e,t,n,a){var i,o,c,s,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(i=e.src.charCodeAt(l))||l>=u)return!1;for(o=1,i=e.src.charCodeAt(++l);35===i&&l<u&&o<=6;)o++,i=e.src.charCodeAt(++l);return!(o>6||l<u&&!r(i))&&(!!a||(u=e.skipSpacesBack(u,l),(c=e.skipCharsBack(u,35,l))>l&&r(e.src.charCodeAt(c-1))&&(u=c),e.line=t+1,(s=e.push("heading_open","h"+String(o),1)).markup="########".slice(0,o),s.map=[t,e.line],(s=e.push("inline","",0)).content=e.src.slice(l,u).trim(),s.map=[t,e.line],s.children=[],(s=e.push("heading_close","h"+String(o),-1)).markup="########".slice(0,o),!0))}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,a,i,o,c,s,l,u,p,d,h=t+1,m=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(d=e.parentType,e.parentType="paragraph";h<n&&!e.isEmpty(h);h++)if(!(e.sCount[h]-e.blkIndent>3)){if(e.sCount[h]>=e.blkIndent&&(s=e.bMarks[h]+e.tShift[h])<(l=e.eMarks[h])&&(45===(p=e.src.charCodeAt(s))||61===p)&&(s=e.skipChars(s,p),(s=e.skipSpaces(s))>=l)){u=61===p?1:2;break}if(!(e.sCount[h]<0)){for(a=!1,i=0,o=m.length;i<o;i++)if(m[i](e,h,n,!0)){a=!0;break}if(a)break}}return!!u&&(r=e.getLines(t,h,e.blkIndent,!1).trim(),e.line=h+1,(c=e.push("heading_open","h"+String(u),1)).markup=String.fromCharCode(p),c.map=[t,e.line],(c=e.push("inline","",0)).content=r,c.map=[t,e.line-1],c.children=[],(c=e.push("heading_close","h"+String(u),-1)).markup=String.fromCharCode(p),e.parentType=d,!0)}},function(e,t,n){"use strict";var r=n(194),a=n(86).HTML_OPEN_CLOSE_TAG_RE,i=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+r.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(a.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var a,o,c,s,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(l))return!1;for(s=e.src.slice(l,u),a=0;a<i.length&&!i[a][0].test(s);a++);if(a===i.length)return!1;if(r)return i[a][2];if(o=t+1,!i[a][1].test(s))for(;o<n&&!(e.sCount[o]<e.blkIndent);o++)if(l=e.bMarks[o]+e.tShift[o],u=e.eMarks[o],s=e.src.slice(l,u),i[a][1].test(s)){0!==s.length&&o++;break}return e.line=o,(c=e.push("html_block","",0)).map=[t,o],c.content=e.getLines(t,o,e.blkIndent,!0),!0}},function(e,t,n){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,a,i,o,c,s=t+1,l=e.md.block.ruler.getRules("paragraph"),u=e.lineMax;for(c=e.parentType,e.parentType="paragraph";s<u&&!e.isEmpty(s);s++)if(!(e.sCount[s]-e.blkIndent>3||e.sCount[s]<0)){for(r=!1,a=0,i=l.length;a<i;a++)if(l[a](e,s,u,!0)){r=!0;break}if(r)break}return n=e.getLines(t,s,e.blkIndent,!1).trim(),e.line=s,(o=e.push("paragraph_open","p",1)).map=[t,e.line],(o=e.push("inline","",0)).content=n,o.map=[t,e.line],o.children=[],o=e.push("paragraph_close","p",-1),e.parentType=c,!0}},function(e,t,n){"use strict";var r=n(70),a=n(19).isSpace;function i(e,t,n,r){var i,o,c,s,l,u,p,d;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.parentType="root",this.level=0,this.result="",d=!1,c=s=u=p=0,l=(o=this.src).length;s<l;s++){if(i=o.charCodeAt(s),!d){if(a(i)){u++,9===i?p+=4-p%4:p++;continue}d=!0}10!==i&&s!==l-1||(10!==i&&s++,this.bMarks.push(c),this.eMarks.push(s),this.tShift.push(u),this.sCount.push(p),this.bsCount.push(0),d=!1,u=0,p=0,c=s+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}i.prototype.push=function(e,t,n){var a=new r(e,t,n);return a.block=!0,n<0&&this.level--,a.level=this.level,n>0&&this.level++,this.tokens.push(a),a},i.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},i.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},i.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),a(t));e++);return e},i.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!a(this.src.charCodeAt(--e)))return e+1;return e},i.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},i.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},i.prototype.getLines=function(e,t,n,r){var i,o,c,s,l,u,p,d=e;if(e>=t)return"";for(u=new Array(t-e),i=0;d<t;d++,i++){for(o=0,p=s=this.bMarks[d],l=d+1<t||r?this.eMarks[d]+1:this.eMarks[d];s<l&&o<n;){if(c=this.src.charCodeAt(s),a(c))9===c?o+=4-(o+this.bsCount[d])%4:o++;else{if(!(s-p<this.tShift[d]))break;o++}s++}u[i]=o>n?new Array(o-n+1).join(" ")+this.src.slice(s,l):this.src.slice(s,l)}return u.join("")},i.prototype.Token=r,e.exports=i},function(e,t,n){"use strict";var r=n(69),a=[["text",n(198)],["newline",n(199)],["escape",n(200)],["backticks",n(201)],["strikethrough",n(87).tokenize],["emphasis",n(88).tokenize],["link",n(202)],["image",n(203)],["autolink",n(204)],["html_inline",n(205)],["entity",n(206)]],i=[["balance_pairs",n(207)],["strikethrough",n(87).postProcess],["emphasis",n(88).postProcess],["text_collapse",n(208)]];function o(){var e;for(this.ruler=new r,e=0;e<a.length;e++)this.ruler.push(a[e][0],a[e][1]);for(this.ruler2=new r,e=0;e<i.length;e++)this.ruler2.push(i[e][0],i[e][1])}o.prototype.skipToken=function(e){var t,n,r=e.pos,a=this.ruler.getRules(""),i=a.length,o=e.md.options.maxNesting,c=e.cache;if(void 0===c[r]){if(e.level<o)for(n=0;n<i&&(e.level++,t=a[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,c[r]=e.pos}else e.pos=c[r]},o.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),a=r.length,i=e.posMax,o=e.md.options.maxNesting;e.pos<i;){if(e.level<o)for(n=0;n<a&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=i)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},o.prototype.parse=function(e,t,n,r){var a,i,o,c=new this.State(e,t,n,r);for(this.tokenize(c),o=(i=this.ruler2.getRules("")).length,a=0;a<o;a++)i[a](c)},o.prototype.State=n(209),e.exports=o},function(e,t,n){"use strict";function r(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}e.exports=function(e,t){for(var n=e.pos;n<e.posMax&&!r(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}},function(e,t,n){"use strict";var r=n(19).isSpace;e.exports=function(e,t){var n,a,i=e.pos;if(10!==e.src.charCodeAt(i))return!1;for(n=e.pending.length-1,a=e.posMax,t||(n>=0&&32===e.pending.charCodeAt(n)?n>=1&&32===e.pending.charCodeAt(n-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),i++;i<a&&r(e.src.charCodeAt(i));)i++;return e.pos=i,!0}},function(e,t,n){"use strict";for(var r=n(19).isSpace,a=[],i=0;i<256;i++)a.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){a[e.charCodeAt(0)]=1})),e.exports=function(e,t){var n,i=e.pos,o=e.posMax;if(92!==e.src.charCodeAt(i))return!1;if(++i<o){if((n=e.src.charCodeAt(i))<256&&0!==a[n])return t||(e.pending+=e.src[i]),e.pos+=2,!0;if(10===n){for(t||e.push("hardbreak","br",0),i++;i<o&&(n=e.src.charCodeAt(i),r(n));)i++;return e.pos=i,!0}}return t||(e.pending+="\\"),e.pos++,!0}},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,a,i,o,c,s=e.pos;if(96!==e.src.charCodeAt(s))return!1;for(n=s,s++,r=e.posMax;s<r&&96===e.src.charCodeAt(s);)s++;for(a=e.src.slice(n,s),i=o=s;-1!==(i=e.src.indexOf("`",o));){for(o=i+1;o<r&&96===e.src.charCodeAt(o);)o++;if(o-i===a.length)return t||((c=e.push("code_inline","code",0)).markup=a,c.content=e.src.slice(s,i).replace(/[ \n]+/g," ").trim()),e.pos=o,!0}return t||(e.pending+=a),e.pos+=a.length,!0}},function(e,t,n){"use strict";var r=n(19).normalizeReference,a=n(19).isSpace;e.exports=function(e,t){var n,i,o,c,s,l,u,p,d,h="",m=e.pos,f=e.posMax,b=e.pos,g=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(s=e.pos+1,(c=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((l=c+1)<f&&40===e.src.charCodeAt(l)){for(g=!1,l++;l<f&&(i=e.src.charCodeAt(l),a(i)||10===i);l++);if(l>=f)return!1;for(b=l,(u=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok&&(h=e.md.normalizeLink(u.str),e.md.validateLink(h)?l=u.pos:h=""),b=l;l<f&&(i=e.src.charCodeAt(l),a(i)||10===i);l++);if(u=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<f&&b!==l&&u.ok)for(d=u.str,l=u.pos;l<f&&(i=e.src.charCodeAt(l),a(i)||10===i);l++);else d="";(l>=f||41!==e.src.charCodeAt(l))&&(g=!0),l++}if(g){if(void 0===e.env.references)return!1;if(l<f&&91===e.src.charCodeAt(l)?(b=l+1,(l=e.md.helpers.parseLinkLabel(e,l))>=0?o=e.src.slice(b,l++):l=c+1):l=c+1,o||(o=e.src.slice(s,c)),!(p=e.env.references[r(o)]))return e.pos=m,!1;h=p.href,d=p.title}return t||(e.pos=s,e.posMax=c,e.push("link_open","a",1).attrs=n=[["href",h]],d&&n.push(["title",d]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=l,e.posMax=f,!0}},function(e,t,n){"use strict";var r=n(19).normalizeReference,a=n(19).isSpace;e.exports=function(e,t){var n,i,o,c,s,l,u,p,d,h,m,f,b,g="",v=e.pos,j=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(l=e.pos+2,(s=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((u=s+1)<j&&40===e.src.charCodeAt(u)){for(u++;u<j&&(i=e.src.charCodeAt(u),a(i)||10===i);u++);if(u>=j)return!1;for(b=u,(d=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok&&(g=e.md.normalizeLink(d.str),e.md.validateLink(g)?u=d.pos:g=""),b=u;u<j&&(i=e.src.charCodeAt(u),a(i)||10===i);u++);if(d=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<j&&b!==u&&d.ok)for(h=d.str,u=d.pos;u<j&&(i=e.src.charCodeAt(u),a(i)||10===i);u++);else h="";if(u>=j||41!==e.src.charCodeAt(u))return e.pos=v,!1;u++}else{if(void 0===e.env.references)return!1;if(u<j&&91===e.src.charCodeAt(u)?(b=u+1,(u=e.md.helpers.parseLinkLabel(e,u))>=0?c=e.src.slice(b,u++):u=s+1):u=s+1,c||(c=e.src.slice(l,s)),!(p=e.env.references[r(c)]))return e.pos=v,!1;g=p.href,h=p.title}return t||(o=e.src.slice(l,s),e.md.inline.parse(o,e.md,e.env,f=[]),(m=e.push("image","img",0)).attrs=n=[["src",g],["alt",""]],m.children=f,m.content=o,h&&n.push(["title",h])),e.pos=u,e.posMax=j,!0}},function(e,t,n){"use strict";var r=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,a=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;e.exports=function(e,t){var n,i,o,c,s,l,u=e.pos;return 60===e.src.charCodeAt(u)&&(!((n=e.src.slice(u)).indexOf(">")<0)&&(a.test(n)?(c=(i=n.match(a))[0].slice(1,-1),s=e.md.normalizeLink(c),!!e.md.validateLink(s)&&(t||((l=e.push("link_open","a",1)).attrs=[["href",s]],l.markup="autolink",l.info="auto",(l=e.push("text","",0)).content=e.md.normalizeLinkText(c),(l=e.push("link_close","a",-1)).markup="autolink",l.info="auto"),e.pos+=i[0].length,!0)):!!r.test(n)&&(c=(o=n.match(r))[0].slice(1,-1),s=e.md.normalizeLink("mailto:"+c),!!e.md.validateLink(s)&&(t||((l=e.push("link_open","a",1)).attrs=[["href",s]],l.markup="autolink",l.info="auto",(l=e.push("text","",0)).content=e.md.normalizeLinkText(c),(l=e.push("link_close","a",-1)).markup="autolink",l.info="auto"),e.pos+=o[0].length,!0))))}},function(e,t,n){"use strict";var r=n(86).HTML_TAG_RE;e.exports=function(e,t){var n,a,i,o=e.pos;return!!e.md.options.html&&(i=e.posMax,!(60!==e.src.charCodeAt(o)||o+2>=i)&&(!(33!==(n=e.src.charCodeAt(o+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n))&&(!!(a=e.src.slice(o).match(r))&&(t||(e.push("html_inline","",0).content=e.src.slice(o,o+a[0].length)),e.pos+=a[0].length,!0))))}},function(e,t,n){"use strict";var r=n(81),a=n(19).has,i=n(19).isValidEntityCode,o=n(19).fromCodePoint,c=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,s=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,l,u=e.pos,p=e.posMax;if(38!==e.src.charCodeAt(u))return!1;if(u+1<p)if(35===e.src.charCodeAt(u+1)){if(l=e.src.slice(u).match(c))return t||(n="x"===l[1][0].toLowerCase()?parseInt(l[1].slice(1),16):parseInt(l[1],10),e.pending+=i(n)?o(n):o(65533)),e.pos+=l[0].length,!0}else if((l=e.src.slice(u).match(s))&&a(r,l[1]))return t||(e.pending+=r[l[1]]),e.pos+=l[0].length,!0;return t||(e.pending+="&"),e.pos++,!0}},function(e,t,n){"use strict";e.exports=function(e){var t,n,r,a,i=e.delimiters,o=e.delimiters.length;for(t=0;t<o;t++)if((r=i[t]).close)for(n=t-r.jump-1;n>=0;){if((a=i[n]).open&&a.marker===r.marker&&a.end<0&&a.level===r.level)if(!((a.close||r.open)&&void 0!==a.length&&void 0!==r.length&&(a.length+r.length)%3==0)){r.jump=t-n,r.open=!1,a.end=t,a.jump=0;break}n-=a.jump+1}}},function(e,t,n){"use strict";e.exports=function(e){var t,n,r=0,a=e.tokens,i=e.tokens.length;for(t=n=0;t<i;t++)r+=a[t].nesting,a[t].level=r,"text"===a[t].type&&t+1<i&&"text"===a[t+1].type?a[t+1].content=a[t].content+a[t+1].content:(t!==n&&(a[n]=a[t]),n++);t!==n&&(a.length=n)}},function(e,t,n){"use strict";var r=n(70),a=n(19).isWhiteSpace,i=n(19).isPunctChar,o=n(19).isMdAsciiPunct;function c(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[]}c.prototype.pushPending=function(){var e=new r("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},c.prototype.push=function(e,t,n){this.pending&&this.pushPending();var a=new r(e,t,n);return n<0&&this.level--,a.level=this.level,n>0&&this.level++,this.pendingLevel=this.level,this.tokens.push(a),a},c.prototype.scanDelims=function(e,t){var n,r,c,s,l,u,p,d,h,m=e,f=!0,b=!0,g=this.posMax,v=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;m<g&&this.src.charCodeAt(m)===v;)m++;return c=m-e,r=m<g?this.src.charCodeAt(m):32,p=o(n)||i(String.fromCharCode(n)),h=o(r)||i(String.fromCharCode(r)),u=a(n),(d=a(r))?f=!1:h&&(u||p||(f=!1)),u?b=!1:p&&(d||h||(b=!1)),t?(s=f,l=b):(s=f&&(!b||p),l=b&&(!f||h)),{can_open:s,can_close:l,length:c}},c.prototype.Token=r,e.exports=c},function(e,t,n){"use strict";function r(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function a(e){return Object.prototype.toString.call(e)}function i(e){return"[object Function]"===a(e)}function o(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var c={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var s={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]?0:t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},l="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function u(e){var t=e.re=n(211)(e.__opts__),r=e.__tlds__.slice();function c(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(c(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(c(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(c(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(c(t.tpl_host_fuzzy_test),"i");var s=[];function l(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===a(n))return!function(e){return"[object RegExp]"===a(e)}(n.validate)?i(n.validate)?r.validate=n.validate:l(t,n):r.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(i(n.normalize)?r.normalize=n.normalize:n.normalize?l(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===a(e)}(n)?l(t,n):s.push(t)}})),s.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var u=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(o).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+u+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+u+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function p(e,t){var n=e.__index__,r=e.__last_index__,a=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=a,this.text=a,this.url=a}function d(e,t){var n=new p(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function h(e,t){if(!(this instanceof h))return new h(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||c.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},c,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},s,e),this.__compiled__={},this.__tlds__=l,this.__tlds_replaced__=!1,this.re={},u(this)}h.prototype.add=function(e,t){return this.__schemas__[e]=t,u(this),this},h.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},h.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,a,i,o,c,s;if(this.re.schema_test.test(e))for((c=this.re.schema_search).lastIndex=0;null!==(t=c.exec(e));)if(a=this.testSchemaAt(e,t[2],c.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+a;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(s=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||s<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(i=r.index+r[1].length,o=r.index+r[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&o>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=o)),this.__index__>=0},h.prototype.pretest=function(e){return this.re.pretest.test(e)},h.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},h.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(d(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(d(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},h.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),u(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,u(this),this)},h.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},h.prototype.onCompile=function(){},e.exports=h},function(e,t,n){"use strict";e.exports=function(e){var t={};t.src_Any=n(83).source,t.src_Cc=n(84).source,t.src_Z=n(85).source,t.src_P=n(68).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},function(e,t,n){"use strict";n.r(t),n.d(t,"ucs2decode",(function(){return m})),n.d(t,"ucs2encode",(function(){return f})),n.d(t,"decode",(function(){return v})),n.d(t,"encode",(function(){return j})),n.d(t,"toASCII",(function(){return _})),n.d(t,"toUnicode",(function(){return y}));var r=n(21),a=n.n(r),i=2147483647,o=/^xn--/,c=/[^\0-\x7E]/,s=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},u=Math.floor,p=String.fromCharCode;function d(e){throw new RangeError(l[e])}function h(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);var a=function(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}((e=e.replace(s,".")).split("."),t).join(".");return r+a}function m(e){for(var t=[],n=0,r=e.length;n<r;){var a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&a)<<10)+(1023&i)+65536):(t.push(a),n--)}else t.push(a)}return t}var f=function(e){return String.fromCodePoint.apply(String,a()(e))},b=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},g=function(e,t,n){var r=0;for(e=n?u(e/700):e>>1,e+=u(e/t);e>455;r+=36)e=u(e/35);return u(r+36*e/(e+38))},v=function(e){var t,n=[],r=e.length,a=0,o=128,c=72,s=e.lastIndexOf("-");s<0&&(s=0);for(var l=0;l<s;++l)e.charCodeAt(l)>=128&&d("not-basic"),n.push(e.charCodeAt(l));for(var p=s>0?s+1:0;p<r;){for(var h=a,m=1,f=36;;f+=36){p>=r&&d("invalid-input");var b=(t=e.charCodeAt(p++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:36;(b>=36||b>u((i-a)/m))&&d("overflow"),a+=b*m;var v=f<=c?1:f>=c+26?26:f-c;if(b<v)break;var j=36-v;m>u(i/j)&&d("overflow"),m*=j}var y=n.length+1;c=g(a-h,y,0==h),u(a/y)>i-o&&d("overflow"),o+=u(a/y),a%=y,n.splice(a++,0,o)}return String.fromCodePoint.apply(String,n)},j=function(e){var t=[],n=(e=m(e)).length,r=128,a=0,o=72,c=!0,s=!1,l=void 0;try{for(var h,f=e[Symbol.iterator]();!(c=(h=f.next()).done);c=!0){var v=h.value;v<128&&t.push(p(v))}}catch(B){s=!0,l=B}finally{try{c||null==f.return||f.return()}finally{if(s)throw l}}var j=t.length,y=j;for(j&&t.push("-");y<n;){var _=i,k=!0,O=!1,w=void 0;try{for(var E,C=e[Symbol.iterator]();!(k=(E=C.next()).done);k=!0){var x=E.value;x>=r&&x<_&&(_=x)}}catch(B){O=!0,w=B}finally{try{k||null==C.return||C.return()}finally{if(O)throw w}}var S=y+1;_-r>u((i-a)/S)&&d("overflow"),a+=(_-r)*S,r=_;var A=!0,F=!1,P=void 0;try{for(var T,N=e[Symbol.iterator]();!(A=(T=N.next()).done);A=!0){var M=T.value;if(M<r&&++a>i&&d("overflow"),M==r){for(var R=a,D=36;;D+=36){var z=D<=o?1:D>=o+26?26:D-o;if(R<z)break;var I=R-z,L=36-z;t.push(p(b(z+I%L,0))),R=u(I/L)}t.push(p(b(R,0))),o=g(a,S,y==j),a=0,++y}}}catch(B){F=!0,P=B}finally{try{A||null==N.return||N.return()}finally{if(F)throw P}}++a,++r}return t.join("")},y=function(e){return h(e,(function(e){return o.test(e)?v(e.slice(4).toLowerCase()):e}))},_=function(e){return h(e,(function(e){return c.test(e)?"xn--"+j(e):e}))},k={version:"2.1.0",ucs2:{decode:m,encode:f},decode:v,encode:j,toASCII:_,toUnicode:y};t.default=k},function(e,t,n){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},function(e,t,n){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}},function(e,t,n){"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return r.colors[Math.abs(t)%r.colors.length]}function r(e){var n;function o(){if(o.enabled){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var i=o,c=Number(new Date),s=c-(n||c);i.diff=s,i.prev=n,i.curr=c,n=c,t[0]=r.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var l=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;l++;var a=r.formatters[n];if("function"==typeof a){var o=t[l];e=a.call(i,o),t.splice(l,1),l--}return e})),r.formatArgs.call(i,t);var u=i.log||r.log;u.apply(i,t)}}return o.namespace=e,o.enabled=r.enabled(e),o.useColors=r.useColors(),o.color=t(e),o.destroy=a,o.extend=i,"function"==typeof r.init&&r.init(o),r.instances.push(o),o}function a(){var e=r.instances.indexOf(this);return-1!==e&&(r.instances.splice(e,1),!0)}function i(e,t){return r(this.namespace+(void 0===t?":":t)+e)}return r.debug=r,r.default=r,r.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},r.disable=function(){r.enable("")},r.enable=function(e){var t;r.save(e),r.names=[],r.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),a=n.length;for(t=0;t<a;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")));for(t=0;t<r.instances.length;t++){var i=r.instances[t];i.enabled=r.enabled(i.namespace)}},r.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=n(64),Object.keys(e).forEach((function(t){r[t]=e[t]})),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r}},function(e,t,n){"use strict";var r=n(34),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(90),o=n(221),c=n(222),s="function"==typeof Symbol&&Symbol.iterator;function l(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 u(e,t,n,r){var i,c=typeof e;if("undefined"!==c&&"boolean"!==c||(e=null),null===e||"string"===c||"number"===c||"object"===c&&e.$$typeof===a)return n(r,e,""===t?"."+l(e,0):t),1;var p=0,d=""===t?".":t+":";if(Array.isArray(e))for(var h=0;h<e.length;h++)p+=u(i=e[h],d+l(i,h),n,r);else{var m=function(e){var t=e&&(s&&e[s]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(m){0;for(var f,b=m.call(e),g=0;!(f=b.next()).done;)p+=u(i=f.value,d+l(i,g++),n,r)}else if("object"===c){0;var v=""+e;o(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===v?"object with keys {"+Object.keys(e).join(", ")+"}":v,"")}}return p}var p=/\/+/g;function d(e){return(""+e).replace(p,"$&/")}var h,m,f=b,b=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)},g=function(e){o(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.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 j(e,t,n){var a,o,c=e.result,s=e.keyPrefix,l=e.func,u=e.context,p=l.call(u,t,e.count++);Array.isArray(p)?y(p,c,n,i.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(a=p,o=s+(!p.key||t&&t.key===p.key?"":d(p.key)+"/")+n,p=r.cloneElement(a,{key:o},void 0!==a.props?a.props.children:void 0)),c.push(p))}function y(e,t,n,r,a){var i="";null!=n&&(i=d(n)+"/");var o=v.getPooled(t,i,r,a);!function(e,t,n){null==e||u(e,"",t,n)}(e,j,o),v.release(o)}v.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h=function(e,t,n,r){if(this.instancePool.length){var a=this.instancePool.pop();return this.call(a,e,t,n,r),a}return new this(e,t,n,r)},(m=v).instancePool=[],m.getPooled=h||f,m.poolSize||(m.poolSize=10),m.release=g;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return c(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return c(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;o(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)y(e[n],t,n,i.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,i,o,c){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,a,i,o,c],u=0;(s=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,n){"use strict";var r=n(90);e.exports=r},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},function(e,t,n){"use strict";var r=n(71),a=n(92);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}t.BlockHash=i,i.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var a=0;a<e.length;a+=this._delta32)this._update(e,a,a+this._delta32)}return this},i.prototype.digest=function(e){return this.update(this._pad()),a(null===this.pending),this._digest(e)},i.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var a=1;a<n;a++)r[a]=0;if(e<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)r[a++]=0;r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=e>>>24&255,r[a++]=e>>>16&255,r[a++]=e>>>8&255,r[a++]=255&e}else for(r[a++]=255&e,r[a++]=e>>>8&255,r[a++]=e>>>16&255,r[a++]=e>>>24&255,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,i=8;i<this.padLength;i++)r[a++]=0;return r}},function(e,t,n){"use strict";var r=n(71).rotr32;function a(e,t,n){return e&t^~e&n}function i(e,t,n){return e&t^e&n^t&n}function o(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?a(t,n,r):1===e||3===e?o(t,n,r):2===e?i(t,n,r):void 0},t.ch32=a,t.maj32=i,t.p32=o,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t){!function(){"use strict";var t=[];function n(e){var t,n,r,a,i=-1;for(t=0,r=e.length;t<r;t+=1){for(a=255&(i^e[t]),n=0;n<8;n+=1)1==(1&a)?a=a>>>1^3988292384:a>>>=1;i=i>>>8^a}return-1^i}function r(e,n){var a,i,o;if(void 0!==r.crc&&n&&e||(r.crc=-1,e)){for(a=r.crc,i=0,o=e.length;i<o;i+=1)a=a>>>8^t[255&(a^e[i])];return r.crc=a,-1^a}}!function(){var e,n,r;for(n=0;n<256;n+=1){for(e=n,r=0;r<8;r+=1)1&e?e=3988292384^e>>>1:e>>>=1;t[n]=e>>>0}}(),e.exports=function(e,t){var a;e="string"==typeof e?(a=e,Array.prototype.map.call(a,(function(e){return e.charCodeAt(0)}))):e;return((t?n(e):r(e))>>>0).toString(16)},e.exports.direct=n,e.exports.table=r}()},function(e,t,n){"use strict";var r=[],a=window,i=Math.pow(256,6),o=Math.pow(2,52),c=2*o,s=Math.random;function l(e){var t,n=e.length,r=this,a=0,i=r.i=r.j=0,o=r.S=[];for(n||(e=[n++]);a<256;)o[a]=a++;for(a=0;a<256;a++)o[a]=o[i=255&i+e[a%n]+(t=o[a])],o[i]=t;(r.g=function(e){for(var t,n=0,a=r.i,i=r.j,o=r.S;e--;)t=o[a=255&a+1],n=256*n+o[255&(o[a]=o[i=255&i+t])+(o[i]=t)];return r.i=a,r.j=i,n})(256)}function u(e,t){var n,r=[],a=(typeof e)[0];if(t&&"o"==a)for(n in e)try{r.push(u(e[n],t-1))}catch(i){}return r.length?r:"s"==a?e:e+"\0"}function p(e,t){for(var n,r=e+"",a=0;a<r.length;)t[255&a]=255&(n^=19*t[255&a])+r.charCodeAt(a++);return h(t)}function d(e){try{return a.crypto.getRandomValues(e=new Uint8Array(256)),h(e)}catch(t){return[+new Date,a,a.navigator&&a.navigator.plugins,a.screen,h(r)]}}function h(e){return String.fromCharCode.apply(0,e)}e.exports=function(t,n){if(n&&!0===n.global)return n.global=!1,Math.random=e.exports(t,n),n.global=!0,Math.random;var a=n&&n.entropy||!1,s=[],m=(p(u(a?[t,h(r)]:0 in arguments?t:d(),3),s),new l(s));return p(h(m.S),r),function(){for(var e=m.g(6),t=i,n=0;e<o;)e=256*(e+n),t*=256,n=m.g(1);for(;e>=c;)e/=2,t/=2,n>>>=1;return(e+n)/t}},e.exports.resetGlobal=function(){Math.random=s},p(Math.random(),r)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.log=function(){var e;return"object"===("undefined"==typeof console?"undefined":r(console))&&console.log&&(e=console).log.apply(e,arguments)},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;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(a=r))})),t.splice(a,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var 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.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.exports=n(237)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},function(e,t,n){"use strict";e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return r.colors[Math.abs(t)%r.colors.length]}function r(e){var n;function o(){if(o.enabled){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var i=o,c=Number(new Date),s=c-(n||c);i.diff=s,i.prev=n,i.curr=c,n=c,t[0]=r.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var l=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;l++;var a=r.formatters[n];if("function"==typeof a){var o=t[l];e=a.call(i,o),t.splice(l,1),l--}return e})),r.formatArgs.call(i,t);var u=i.log||r.log;u.apply(i,t)}}return o.namespace=e,o.enabled=r.enabled(e),o.useColors=r.useColors(),o.color=t(e),o.destroy=a,o.extend=i,"function"==typeof r.init&&r.init(o),r.instances.push(o),o}function a(){var e=r.instances.indexOf(this);return-1!==e&&(r.instances.splice(e,1),!0)}function i(e,t){return r(this.namespace+(void 0===t?":":t)+e)}return r.debug=r,r.default=r,r.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},r.disable=function(){r.enable("")},r.enable=function(e){var t;r.save(e),r.names=[],r.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),a=n.length;for(t=0;t<a;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")));for(t=0;t<r.instances.length;t++){var i=r.instances[t];i.enabled=r.enabled(i.namespace)}},r.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=n(64),Object.keys(e).forEach((function(t){r[t]=e[t]})),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"save",(function(){return Mt})),n.d(r,"attributes",(function(){return Dt})),n.d(r,"support",(function(){return zt}));var a=n(17),i=n(15),o=n.n(i),c=n(3),s=n.n(c),l=n(0),u=n(1),p=n(16),d=n(5),h=n(2),m=n(21),f=n.n(m),b=n(7),g=n.n(b),v=n(11),j=n.n(v),y=n(8),_=n.n(y),k=n(9),O=n.n(k),w=n(4),E=n.n(w),C=n(10),x=n.n(C),S=n(6),A=n(28),F=[{icon:Object(l.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(h.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(l.createElement)(h.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),title:Object(u._x)("Original","image style","jetpack"),value:void 0},{icon:Object(l.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(h.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(l.createElement)(h.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 10h2V5h-4v2h2v8zm7-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),title:Object(u._x)("Black and White","image style","jetpack"),value:"black-and-white"},{icon:Object(l.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(h.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(l.createElement)(h.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-4-4h-4v-2h2c1.1 0 2-.89 2-2V7c0-1.11-.9-2-2-2h-4v2h4v2h-2c-1.1 0-2 .89-2 2v4h6v-2z"})),title:Object(u._x)("Sepia","image style","jetpack"),value:"sepia"},{icon:Object(l.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(h.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(l.createElement)(h.Path,{d:"M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-1.5c0-.83-.67-1.5-1.5-1.5.83 0 1.5-.67 1.5-1.5V7c0-1.11-.9-2-2-2h-4v2h4v2h-2v2h2v2h-4v2h4c1.1 0 2-.89 2-2z"})),title:"1977",value:"1977"},{icon:Object(l.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(h.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(l.createElement)(h.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),title:Object(u._x)("Clarendon","image style","jetpack"),value:"clarendon"},{icon:Object(l.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(h.Path,{fill:"none",d:"M0 0h24v24H0z"}),Object(l.createElement)(h.Path,{d:"M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-2c0-1.11-.9-2-2-2h-2V7h4V5h-6v6h4v2h-4v2h4c1.1 0 2-.89 2-2z"})),title:Object(u._x)("Gingham","image style","jetpack"),value:"gingham"}],P=Object(u.__)("Pick an image filter","jetpack");function T(e){var t=e.value,n=e.onChange;return Object(l.createElement)(h.Dropdown,{position:"bottom right",className:"editor-block-switcher",contentClassName:"editor-block-switcher__popover",renderToggle:function(e){var t=e.onToggle,n=e.isOpen;return Object(l.createElement)(h.Toolbar,{controls:[{onClick:t,extraProps:{"aria-haspopup":"true","aria-expanded":n},title:P,tooltip:P,icon:Object(l.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(h.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(l.createElement)(h.Path,{d:"M19 10v9H4.98V5h9V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-9h-2zm-2.94-2.06L17 10l.94-2.06L20 7l-2.06-.94L17 4l-.94 2.06L14 7zM12 8l-1.25 2.75L8 12l2.75 1.25L12 16l1.25-2.75L16 12l-2.75-1.25z"}))}]})},renderContent:function(e){var r=e.onClose;return Object(l.createElement)(h.NavigableMenu,{className:"tiled-gallery__filter-picker-menu"},F.map((function(e){var a,i=e.icon,o=e.title,c=e.value;return Object(l.createElement)(h.MenuItem,{className:t===c?"is-active":void 0,icon:i,isSelected:t===c,key:c||"original",onClick:(a=c,function(){n(t===a?void 0:a),r()}),role:"menuitemcheckbox"},o)})))}})}var N=n(12),M=n.n(N),R=n(26),D=n(25),z=n(13),I=function(e){function t(){var e,n;g()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=_()(this,(e=O()(t)).call.apply(e,[this].concat(a))),s()(E()(n),"img",Object(l.createRef)()),s()(E()(n),"onImageClick",(function(){n.props.isSelected||n.props.onSelect()})),s()(E()(n),"onImageKeyDown",(function(e){n.img.current===document.activeElement&&n.props.isSelected&&[R.BACKSPACE,R.DELETE].includes(e.keyCode)&&n.props.onRemove()})),n}return x()(t,e),j()(t,[{key:"componentDidUpdate",value:function(){var e=this.props,t=e.alt,n=e.height,r=e.image,a=e.link,i=e.url,o=e.width;if(r){var c={};!t&&r.alt_text&&(c.alt=r.alt_text),!n&&r.media_details&&r.media_details.height&&(c.height=+r.media_details.height),!a&&r.link&&(c.link=r.link),!i&&r.source_url&&(c.url=r.source_url),!o&&r.media_details&&r.media_details.width&&(c.width=+r.media_details.width),Object.keys(c).length&&this.props.setAttributes(c)}}},{key:"render",value:function(){var e,t=this.props,n=t["aria-label"],r=t.alt,a=t.height,i=t.id,o=t.imageFilter,c=t.isSelected,p=t.link,d=t.linkTo,m=t.onRemove,f=t.origUrl,b=t.srcSet,g=t.url,v=t.width;switch(d){case"media":e=g;break;case"attachment":e=p}var j=Object(D.isBlobURL)(f),y=Object(l.createElement)(l.Fragment,null,Object(l.createElement)("img",{alt:r,"aria-label":n,"data-height":a,"data-id":i,"data-link":p,"data-url":f,"data-width":v,onClick:this.onImageClick,onKeyDown:this.onImageKeyDown,ref:this.img,src:j?void 0:g,srcSet:j?void 0:b,tabIndex:"0",style:j?{backgroundImage:"url(".concat(f,")")}:void 0}),j&&Object(l.createElement)(h.Spinner,null));return Object(l.createElement)("figure",{className:M()("tiled-gallery__item",s()({"is-selected":c,"is-transient":j},"filter__".concat(o),!!o))},c&&Object(l.createElement)("div",{className:"tiled-gallery__item__inline-menu"},Object(l.createElement)(h.IconButton,{icon:"no-alt",onClick:m,className:"tiled-gallery__item__remove",label:Object(u.__)("Remove Image","jetpack")})),e?Object(l.createElement)("a",null,y):y)}}]),t}(l.Component),L=Object(z.withSelect)((function(e,t){var n=e("core").getMedia,r=t.id;return{image:r?n(r):null}}))(I);function B(e){var t,n=e.alt,r=e.imageFilter,a=e.height,i=e.id,o=e.link,c=e.linkTo,u=e.origUrl,p=e.url,d=e.width;if(Object(D.isBlobURL)(u))return null;switch(c){case"media":t=p;break;case"attachment":t=o}var h=Object(l.createElement)("img",{alt:n,"data-height":a,"data-id":i,"data-link":o,"data-url":u,"data-width":d,src:p});return Object(l.createElement)("figure",{className:M()("tiled-gallery__item",s()({},"filter__".concat(r),!!r))},t?Object(l.createElement)("a",{href:t},h):h)}var q=n(39);function U(e){var t=e.children;return Object(l.createElement)("div",{className:"tiled-gallery__col"},t)}function V(e){var t=e.children,n=e.galleryRef;return Object(l.createElement)("div",{className:"tiled-gallery__gallery",ref:n},t)}function H(e){var t=e.children,n=e.className;return Object(l.createElement)("div",{className:M()("tiled-gallery__row",n)},t)}var G=n(62);function $(e){var t=e.height,n=e.width;return t&&n?n/t:1}var W=he([2,1,2],5),K=me([fe,fe,be,fe,fe]),Z=me([fe,fe,fe,be,fe,fe,fe]),J=he([3,1,3],5),Y=me([be,fe,fe,be]),Q=he([1,2,1],5),X=me([be,fe,fe,fe]),ee=he([1,3],3),te=me([fe,fe,fe,be]),ne=he([3,1],3),re=me([ve(1.6),Object(d.overEvery)(ge(.9),ve(2)),Object(d.overEvery)(ge(.9),ve(2))]),ae=he([1,2],3),ie=he([1,1,1,1,1],1),oe=he([1,1,1,1],1),ce=he([1,1,1],3),se=me([Object(d.overEvery)(ge(.9),ve(2)),Object(d.overEvery)(ge(.9),ve(2)),ve(1.6)]),le=he([2,1],3),ue=me([function(e){return e>=2}]);function pe(e,t,n){var r=Object(d.sum)(Object(d.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&ce(e)&&(r<2.5||r<5&&t.length>=3&&t[0]===t[2]||n)}function de(e,t){var n=Object(d.sum)(Object(d.take)(t,4));return oe(e)&&n<3.5&&t.length>5||n<7&&4===t.length}function he(e,t){return function(n){return!Object(d.some)(Object(d.takeRight)(n,t),(function(t){return Object(d.isEqual)(t,e)}))}}function me(e){return function(t){return t.length>=e.length&&Object(d.every)(Object(d.zipWith)(e,t.slice(0,e.length),(function(e,t){return e(t)})))}}function fe(e){return e>=1&&e<2}function be(e){return e<1}function ge(e){return function(t){return t>=e}}function ve(e){return function(t){return t<e}}var je=function(e){function t(){var e,n;g()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=_()(this,(e=O()(t)).call.apply(e,[this].concat(a))),s()(E()(n),"gallery",Object(l.createRef)()),s()(E()(n),"pendingRaf",null),s()(E()(n),"ro",null),s()(E()(n),"handleGalleryResize",(function(e){n.pendingRaf&&(cancelAnimationFrame(n.pendingRaf),n.pendingRaf=null),n.pendingRaf=requestAnimationFrame((function(){var t=!0,n=!1,r=void 0;try{for(var a,i=function(){var e=a.value,t=e.contentRect,n=e.target,r=t.width;Object(G.a)(n).forEach((function(e){return Object(G.b)(e,r)}))},o=e[Symbol.iterator]();!(t=(a=o.next()).done);t=!0)i()}catch(c){n=!0,r=c}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}}))})),n}return x()(t,e),j()(t,[{key:"componentDidMount",value:function(){this.observeResize()}},{key:"componentWillUnmount",value:function(){this.unobserveResize()}},{key:"componentDidUpdate",value:function(e){e.images!==this.props.images||e.align!==this.props.align?this.triggerResize():"columns"===this.props.layoutStyle&&e.columns!==this.props.columns&&this.triggerResize()}},{key:"triggerResize",value:function(){this.gallery.current&&this.handleGalleryResize([{target:this.gallery.current,contentRect:{width:this.gallery.current.clientWidth}}])}},{key:"observeResize",value:function(){this.triggerResize(),this.ro=new q.a(this.handleGalleryResize),this.gallery.current&&this.ro.observe(this.gallery.current)}},{key:"unobserveResize",value:function(){this.ro&&(this.ro.disconnect(),this.ro=null),this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null)}},{key:"render",value:function(){var e=this.props,t=e.align,n=e.columns,r=e.images,a=e.layoutStyle,i=e.renderedImages,o=function(e){return Object(d.map)(e,$)}(r),c="columns"===a?function(e,t){if(e.length<=t)return[Array(e.length).fill(1)];for(var n=Object(d.sum)(e)/t,r=[],a=e,i=0,o=function(e){var t=Object(d.takeWhile)(a,(function(t){var r=i<=(e+1)*n;return r&&(i+=t),r})).length;r.push(t),a=Object(d.drop)(a,t)},c=0;c<t-1;c++)o(c);return r.push(a.length),[r]}(o,n):function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isWide,r=function e(t,r){if(!r.length)return t;var a;a=r.length>15&&K(r)&&W(t)?[2,1,2]:r.length>15&&Z(r)&&J(t)?[3,1,3]:5!==r.length&&Y(r)&&Q(t)?[1,2,1]:X(r)&&ee(t)?[1,3]:te(r)&&ne(t)?[3,1]:re(r)&&ae(t)?[1,2]:n&&(5===r.length||10!==r.length&&r.length>6)&&ie(t)&&Object(d.sum)(Object(d.take)(r,5))<5?[1,1,1,1,1]:de(t,r)?[1,1,1,1]:pe(t,r,n)?[1,1,1]:se(r)&&le(t)?[2,1]:ue(r)?[1]:r.length>3?[1,1]:Array(r.length).fill(1);var i=t.concat([a]),o=Object(d.sum)(a);return e(i,r.slice(o))};return r([],e)}(o,{isWide:["full","wide"].includes(t)}),s=0;return Object(l.createElement)(V,{galleryRef:this.gallery},c.map((function(e,t){return Object(l.createElement)(H,{key:t},e.map((function(e,t){var n=i.slice(s,s+e);return s+=e,Object(l.createElement)(U,{key:t},n)})))})))}}]),t}(l.Component),ye=n(22);function _e(e){var t=e.columns,n=e.renderedImages,r=Math.min(ye.h,t),a=n.length%r;return Object(l.createElement)(V,null,[].concat(f()(a?[Object(d.take)(n,a)]:[]),f()(Object(d.chunk)(Object(d.drop)(n,a),r))).map((function(e,t){return Object(l.createElement)(H,{key:t,className:"columns-".concat(e.length)},e.map((function(e,t){return Object(l.createElement)(U,{key:t},e)})))})))}var ke=n(46),Oe=n.n(ke),we=n(61),Ee=n.n(we),Ce=n(29);function xe(e){return["circle","square"].includes(e)}function Se(){if("undefined"!=typeof jetpack_plan&&"vip"===jetpack_plan.data)return!0}function Ae(e){var t=Object(Ce.parse)(e).host;return/\.files\.wordpress\.com$/.test(t)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},r=Object(Ce.parse)(e),a=(r.auth,r.hash,r.port,r.query,r.search,Oe()(r,["auth","hash","port","query","search"]));return a.query=Object.keys(t).reduce((function(e,r){return Object.assign(e,s()({},n.hasOwnProperty(r)?n[r]:r,t[r]))}),{}),Object(Ce.format)(a)}var Pe=function(e){function t(){return g()(this,t),_()(this,O()(t).apply(this,arguments))}return x()(t,e),j()(t,[{key:"renderImage",value:function(e,t){var n=this.props,r=n.imageFilter,a=n.images,i=n.isSave,o=n.linkTo,c=n.layoutStyle,s=n.onRemoveImage,p=n.onSelectImage,h=n.selectedImage,m=n.setImageAttributes,f=Object(u.sprintf)(Object(u.__)("image %1$d of %2$d in gallery","jetpack"),t+1,a.length),b=i?B:L,g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e.height||!e.url||!e.width)return{};if(Object(D.isBlobURL)(e.url)||/^https?:\/\/localhost/.test(e.url)||/^https?:\/\/.*\.local\//.test(e.url))return{src:e.url};var n,r=e.url.split("?",1)[0],a=e.height,i=e.width,o=t.layoutStyle,c=Ae(r)||!0===Se()?Fe:Ee.a;if(xe(o)&&i&&a){var s=Math.min(ye.i,i,a);n=c(r,{resize:"".concat(s,",").concat(s)})}else n=c(r);var l,u=300,p=600;if(xe(o)){var h=Math.min(p,i,a),m=Math.min(ye.i,i,a);l=Object(d.range)(h,m,u).map((function(e){var t=c(r,{resize:"".concat(e,",").concat(e),strip:"info"});return t?"".concat(t," ").concat(e,"w"):null})).filter(Boolean).join(",")}else{var f=Math.min(p,i),b=Math.min(ye.i,i);l=Object(d.range)(f,b,u).map((function(e){var t=c(r,{strip:"info",width:e});return t?"".concat(t," ").concat(e,"w"):null})).filter(Boolean).join(",")}return Object.assign({src:n},l&&{srcSet:l})}(e,{layoutStyle:c}),v=g.src,j=g.srcSet;return Object(l.createElement)(b,{alt:e.alt,"aria-label":f,height:e.height,id:e.id,imageFilter:r,isSelected:h===t,key:t,link:e.link,linkTo:o,onRemove:i?void 0:s(t),onSelect:i?void 0:p(t),origUrl:e.url,setAttributes:i?void 0:m(t),srcSet:j,url:v,width:e.width})}},{key:"render",value:function(){var e=this.props,t=e.align,n=e.children,r=e.className,a=e.columns,i=e.images,o=e.layoutStyle,c=xe(o)?_e:je,s=this.props.images.map(this.renderImage,this);return Object(l.createElement)("div",{className:r},Object(l.createElement)(c,{align:t,columns:a,images:i,layoutStyle:o,renderedImages:s}),n)}}]),t}(l.Component),Te=n(112),Ne=n.n(Te);function Me(e,t){var n=function(e,t){var n=!0,r=!1,a=void 0;try{for(var i,o=new Ne.a(t).values()[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var c=i.value;if(-1!==c.indexOf("is-style-")){var s=c.substring(9),l=Object(d.find)(e,{name:s});if(l)return l}}}catch(u){r=!0,a=u}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return Object(d.find)(e,"isDefault")}(e,t);return n?n.name:null}var Re=n(48),De=[{value:"attachment",label:Object(u.__)("Attachment Page","jetpack")},{value:"media",label:Object(u.__)("Media File","jetpack")},{value:"none",label:Object(u.__)("None","jetpack")}];function ze(e){return Math.min(3,e.images.length)}var Ie=function(e){var t=Object(d.pick)(e,[["alt"],["id"],["link"]]);return t.url=Object(d.get)(e,["sizes","large","url"])||Object(d.get)(e,["media_details","sizes","large","source_url"])||e.url,t},Le=function(e){function t(){var e,n;g()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=_()(this,(e=O()(t)).call.apply(e,[this].concat(a))),s()(E()(n),"state",{selectedImage:null}),s()(E()(n),"addFiles",(function(e){var t=n.props.attributes.images||[],r=n.props.noticeOperations;Object(A.mediaUpload)({allowedTypes:ye.a,filesList:e,onFileChange:function(e){var r=e.map((function(e){return Ie(e)}));n.setAttributes({images:t.concat(r)})},onError:r.createErrorNotice})})),s()(E()(n),"onRemoveImage",(function(e){return function(){var t=Object(d.filter)(n.props.attributes.images,(function(t,n){return e!==n})),r=n.props.attributes.columns;n.setState({selectedImage:null}),n.setAttributes({images:t,columns:r?Math.min(t.length,r):r})}})),s()(E()(n),"onSelectImage",(function(e){return function(){n.state.selectedImage!==e&&n.setState({selectedImage:e})}})),s()(E()(n),"onSelectImages",(function(e){var t=n.props.attributes.columns;n.setAttributes({columns:t?Math.min(e.length,t):t,images:e.map((function(e){return Ie(e)}))})})),s()(E()(n),"setColumnsNumber",(function(e){return n.setAttributes({columns:e})})),s()(E()(n),"setImageAttributes",(function(e){return function(t){var r=n.props.attributes.images;r[e]&&n.setAttributes({images:[].concat(f()(r.slice(0,e)),[o()({},r[e],{},t)],f()(r.slice(e+1)))})}})),s()(E()(n),"setLinkTo",(function(e){return n.setAttributes({linkTo:e})})),s()(E()(n),"uploadFromFiles",(function(e){return n.addFiles(e.target.files)})),n}return x()(t,e),j()(t,[{key:"setAttributes",value:function(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e=o()({},e,{ids:e.images.map((function(e){var t=e.id;return parseInt(t,10)}))})),this.props.setAttributes(e)}},{key:"render",value:function(){var e=this,t=this.state.selectedImage,n=this.props,r=n.attributes,a=n.isSelected,i=n.className,o=n.noticeOperations,c=n.noticeUI,s=n.setAttributes,p=r.align,d=r.columns,m=void 0===d?ze(r):d,f=r.imageFilter,b=r.images,g=r.linkTo,v=Object(l.createElement)(h.DropZone,{onFilesDrop:this.addFiles}),j=Object(l.createElement)(S.BlockControls,null,!!b.length&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(h.Toolbar,null,Object(l.createElement)(S.MediaUpload,{onSelect:this.onSelectImages,allowedTypes:ye.a,multiple:!0,gallery:!0,value:b.map((function(e){return e.id})),render:function(e){var t=e.open;return Object(l.createElement)(Re.a,{label:Object(u.__)("Edit Gallery","jetpack"),onClick:t})}})),Object(l.createElement)(T,{value:f,onChange:function(t){s({imageFilter:t}),e.setState({selectedImage:null})}})));if(0===b.length)return Object(l.createElement)(l.Fragment,null,j,Object(l.createElement)(S.MediaPlaceholder,{icon:Object(l.createElement)(S.BlockIcon,{icon:tn}),className:i,labels:{title:Object(u.__)("Tiled Gallery","jetpack"),name:Object(u.__)("images","jetpack")},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:ye.a,multiple:!0,notices:c,onError:o.createErrorNotice}));var y=Me(ye.g,r.className);return Object(l.createElement)(l.Fragment,null,j,Object(l.createElement)(S.InspectorControls,null,Object(l.createElement)(h.PanelBody,{title:Object(u.__)("Tiled Gallery settings","jetpack")},["columns","circle","square"].includes(y)&&b.length>1&&Object(l.createElement)(h.RangeControl,{label:Object(u.__)("Columns","jetpack"),value:m,onChange:this.setColumnsNumber,min:1,max:Math.min(ye.h,b.length)}),Object(l.createElement)(h.SelectControl,{label:Object(u.__)("Link To","jetpack"),value:g,onChange:this.setLinkTo,options:De}))),c,Object(l.createElement)(Pe,{align:p,className:i,columns:m,imageFilter:f,images:b,layoutStyle:y,linkTo:g,onRemoveImage:this.onRemoveImage,onSelectImage:this.onSelectImage,selectedImage:a?t:null,setImageAttributes:this.setImageAttributes},v,a&&Object(l.createElement)("div",{className:"tiled-gallery__add-item"},Object(l.createElement)(h.FormFileUpload,{multiple:!0,isLarge:!0,className:"tiled-gallery__add-item-button",onChange:this.uploadFromFiles,accept:"image/*",icon:"insert"},Object(u.__)("Upload an image","jetpack")))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isSelected||null===t.selectedImage?null:{selectedImage:null}}}]),t}(l.Component),Be=Object(h.withNotices)(Le);var qe=n(24);n(238);function Ue(e){var t,n=e["aria-label"],r=e.alt,a=e.height,i=e.id,o=e.link,c=e.linkTo,s=e.origUrl,u=e.url,p=e.width;if(Object(D.isBlobURL)(s))return null;switch(c){case"media":t=u;break;case"attachment":t=o}var d=Object(l.createElement)("img",{alt:r,"aria-label":n,"data-height":a,"data-id":i,"data-link":o,"data-url":s,"data-width":p,src:u});return Object(l.createElement)("figure",{className:"tiled-gallery__item"},t?Object(l.createElement)("a",{href:t},d):d)}function Ve(e){var t=e.children;return Object(l.createElement)("div",{className:"tiled-gallery__col"},t)}function He(e){var t=e.children,n=e.galleryRef;return Object(l.createElement)("div",{className:"tiled-gallery__gallery",ref:n},t)}function Ge(e){var t=e.children,n=e.className;return Object(l.createElement)("div",{className:M()("tiled-gallery__row",n)},t)}var $e=n(18),We=n.n($e),Ke=[{isDefault:!0,name:"rectangular"},{name:"circle"},{name:"square"},{name:"columns"}];function Ze(e,t){var n=(t-e.reduce((function(e,t){return e+t}),0))/e.length;return e.map((function(e){return e+n}))}function Je(e,t){!function(e,t,n){var r=We()(t,2),a=r[0],i=r[1],o=1/a*(n-4*(e.childElementCount-1)-i);!function(e,t){var n=t.rawHeight,r=t.rowWidth,a=Qe(e),i=a.map((function(e){return(n-4*(e.childElementCount-1))*et(e)[0]})),o=Ze(i,r);a.forEach((function(e,t){var r=i[t],a=o[t];!function(e,t){var n=t.colHeight,r=t.width,a=t.rawWidth,i=Ze(Xe(e).map((function(e){return a/tt(e)})),n);Array.from(e.children).forEach((function(e,t){var n=i[t];e.setAttribute("style","height:".concat(n,"px;width:").concat(r,"px;"))}))}(e,{colHeight:n-4*(e.childElementCount-1),width:a,rawWidth:r})}))}(e,{rawHeight:o,rowWidth:n-4*(e.childElementCount-1)})}(e,function(e){return Qe(e).map(et).reduce((function(e,t){var n=We()(e,2),r=n[0],a=n[1],i=We()(t,2);return[r+i[0],a+i[1]]}),[0,0])}(e),t)}function Ye(e){return Array.from(e.querySelectorAll(".tiled-gallery__row"))}function Qe(e){return Array.from(e.querySelectorAll(".tiled-gallery__col"))}function Xe(e){return Array.from(e.querySelectorAll(".tiled-gallery__item > img, .tiled-gallery__item > a > img"))}function et(e){var t=Xe(e),n=t.length,r=1/t.map(tt).reduce((function(e,t){return e+1/t}),0);return[r,r*n||1]}function tt(e){var t=parseInt(e.dataset.width,10),n=parseInt(e.dataset.height,10);return t&&!Number.isNaN(t)&&n&&!Number.isNaN(n)?t/n:1}function nt(e){var t=e.height,n=e.width;return t&&n?n/t:1}var rt=Ot([2,1,2],5),at=wt([Et,Et,Ct,Et,Et]),it=wt([Et,Et,Et,Ct,Et,Et,Et]),ot=Ot([3,1,3],5),ct=wt([Ct,Et,Et,Ct]),st=Ot([1,2,1],5),lt=wt([Ct,Et,Et,Et]),ut=Ot([1,3],3),pt=wt([Et,Et,Et,Ct]),dt=Ot([3,1],3),ht=wt([St(1.6),Object(d.overEvery)(xt(.9),St(2)),Object(d.overEvery)(xt(.9),St(2))]),mt=Ot([1,2],3),ft=Ot([1,1,1,1,1],1),bt=Ot([1,1,1,1],1),gt=Ot([1,1,1],3),vt=wt([Object(d.overEvery)(xt(.9),St(2)),Object(d.overEvery)(xt(.9),St(2)),St(1.6)]),jt=Ot([2,1],3),yt=wt([function(e){return e>=2}]);function _t(e,t,n){var r=Object(d.sum)(Object(d.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&gt(e)&&(r<2.5||r<5&&t.length>=3&&t[0]===t[2]||n)}function kt(e,t){var n=Object(d.sum)(Object(d.take)(t,4));return bt(e)&&n<3.5&&t.length>5||n<7&&4===t.length}function Ot(e,t){return function(n){return!Object(d.some)(Object(d.takeRight)(n,t),(function(t){return Object(d.isEqual)(t,e)}))}}function wt(e){return function(t){return t.length>=e.length&&Object(d.every)(Object(d.zipWith)(e,t.slice(0,e.length),(function(e,t){return e(t)})))}}function Et(e){return e>=1&&e<2}function Ct(e){return e<1}function xt(e){return function(t){return t>=e}}function St(e){return function(t){return t<e}}var At=function(e){function t(){var e,n;g()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=_()(this,(e=O()(t)).call.apply(e,[this].concat(a))),s()(E()(n),"gallery",Object(l.createRef)()),s()(E()(n),"pendingRaf",null),s()(E()(n),"ro",null),s()(E()(n),"handleGalleryResize",(function(e){n.pendingRaf&&(cancelAnimationFrame(n.pendingRaf),n.pendingRaf=null),n.pendingRaf=requestAnimationFrame((function(){var t=!0,n=!1,r=void 0;try{for(var a,i=function(){var e=a.value,t=e.contentRect,n=e.target,r=t.width;Ye(n).forEach((function(e){return Je(e,r)}))},o=e[Symbol.iterator]();!(t=(a=o.next()).done);t=!0)i()}catch(c){n=!0,r=c}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}}))})),n}return x()(t,e),j()(t,[{key:"componentDidMount",value:function(){this.observeResize()}},{key:"componentWillUnmount",value:function(){this.unobserveResize()}},{key:"componentDidUpdate",value:function(e){e.images!==this.props.images||e.align!==this.props.align?this.triggerResize():"columns"===this.props.layoutStyle&&e.columns!==this.props.columns&&this.triggerResize()}},{key:"triggerResize",value:function(){this.gallery.current&&this.handleGalleryResize([{target:this.gallery.current,contentRect:{width:this.gallery.current.clientWidth}}])}},{key:"observeResize",value:function(){this.triggerResize(),this.ro=new q.a(this.handleGalleryResize),this.gallery.current&&this.ro.observe(this.gallery.current)}},{key:"unobserveResize",value:function(){this.ro&&(this.ro.disconnect(),this.ro=null),this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null)}},{key:"render",value:function(){var e=this.props,t=e.align,n=e.columns,r=e.images,a=e.layoutStyle,i=e.renderedImages,o=function(e){return Object(d.map)(e,nt)}(r),c="columns"===a?function(e,t){if(e.length<=t)return[Array(e.length).fill(1)];for(var n=Object(d.sum)(e)/t,r=[],a=e,i=0,o=function(e){var t=Object(d.takeWhile)(a,(function(t){var r=i<=(e+1)*n;return r&&(i+=t),r})).length;r.push(t),a=Object(d.drop)(a,t)},c=0;c<t-1;c++)o(c);return r.push(a.length),[r]}(o,n):function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isWide,r=function e(t,r){if(!r.length)return t;var a;a=r.length>15&&at(r)&&rt(t)?[2,1,2]:r.length>15&&it(r)&&ot(t)?[3,1,3]:5!==r.length&&ct(r)&&st(t)?[1,2,1]:lt(r)&&ut(t)?[1,3]:pt(r)&&dt(t)?[3,1]:ht(r)&&mt(t)?[1,2]:n&&(5===r.length||10!==r.length&&r.length>6)&&ft(t)&&Object(d.sum)(Object(d.take)(r,5))<5?[1,1,1,1,1]:kt(t,r)?[1,1,1,1]:_t(t,r,n)?[1,1,1]:vt(r)&&jt(t)?[2,1]:yt(r)?[1]:r.length>3?[1,1]:Array(r.length).fill(1);var i=t.concat([a]),o=Object(d.sum)(a);return e(i,r.slice(o))};return r([],e)}(o,{isWide:["full","wide"].includes(t)}),s=0;return Object(l.createElement)(He,{galleryRef:this.gallery},c.map((function(e,t){return Object(l.createElement)(Ge,{key:t},e.map((function(e,t){var n=i.slice(s,s+e);return s+=e,Object(l.createElement)(Ve,{key:t},n)})))})))}}]),t}(l.Component);function Ft(e){var t=e.columns,n=e.renderedImages,r=Math.min(20,t),a=n.length%r;return Object(l.createElement)(He,null,[].concat(f()(a?[Object(d.take)(n,a)]:[]),f()(Object(d.chunk)(Object(d.drop)(n,a),r))).map((function(e,t){return Object(l.createElement)(Ge,{key:t,className:"columns-".concat(e.length)},e.map((function(e,t){return Object(l.createElement)(Ve,{key:t},e)})))})))}var Pt=function(e){function t(){return g()(this,t),_()(this,O()(t).apply(this,arguments))}return x()(t,e),j()(t,[{key:"photonize",value:function(e){var t=e.height,n=e.width,r=e.url;if(r){if(Object(D.isBlobURL)(r)||/^https?:\/\/localhost/.test(r))return r;var a=r.split("?",1)[0],i=function(e){var t=Object(Ce.parse)(e).host;return/\.files\.wordpress\.com$/.test(t)}(r)?Nt:Ee.a;if(Tt(this.props.layoutStyle)&&n&&t){var o=Math.min(2e3,n,t);return i(a,{resize:"".concat(o,",").concat(o)})}return i(a)}}},{key:"renderImage",value:function(e,t){var n=this.props,r=n.images,a=n.linkTo,i=n.selectedImage,o=Object(u.sprintf)(Object(u.__)("image %1$d of %2$d in gallery","jetpack"),t+1,r.length);return Object(l.createElement)(Ue,{alt:e.alt,"aria-label":o,height:e.height,id:e.id,origUrl:e.url,isSelected:i===t,key:t,link:e.link,linkTo:a,url:this.photonize(e),width:e.width})}},{key:"render",value:function(){var e=this.props,t=e.align,n=e.children,r=e.className,a=e.columns,i=e.images,o=e.layoutStyle,c=Tt(o)?Ft:At,s=this.props.images.map(this.renderImage,this);return Object(l.createElement)("div",{className:r},Object(l.createElement)(c,{align:t,columns:a,images:i,layoutStyle:o,renderedImages:s}),n)}}]),t}(l.Component);function Tt(e){return["circle","square"].includes(e)}function Nt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},r=Object(Ce.parse)(e),a=(r.auth,r.hash,r.port,r.query,r.search,Oe()(r,["auth","hash","port","query","search"]));return a.query=Object.keys(t).reduce((function(e,r){return Object.assign(e,s()({},n.hasOwnProperty(r)?n[r]:r,t[r]))}),{}),Object(Ce.format)(a)}function Mt(e){var t=e.attributes,n=t.images;if(!n.length)return null;var r=t.align,a=t.className,i=t.columns,o=void 0===i?function(e){return Math.min(3,e.images.length)}(t):i,c=t.linkTo;return Object(l.createElement)(Pt,{align:r,className:a,columns:o,images:n,layoutStyle:Me(Ke,a),linkTo:c})}var Rt,Dt={align:{default:"center",type:"string"},className:{default:"is-style-".concat("rectangular"),type:"string"},columns:{type:"number"},ids:{default:[],type:"array"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},caption:{selector:"figcaption",source:"html",type:"string"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},linkTo:{default:"none",type:"string"}},zt={align:["center","wide","full"],customClassName:!1,html:!1},It=n(113),Lt=n.n(It),Bt=n(114),qt=n.n(Bt),Ut=n(115),Vt=n.n(Ut),Ht=n(116),Gt=n.n(Ht),$t=n(117),Wt=n.n($t),Kt=n(118),Zt=n.n(Kt),Jt=(Rt={},s()(Rt,ye.e,Object(u._x)("Tiled mosaic","Tiled gallery layout","jetpack")),s()(Rt,ye.c,Object(u._x)("Circles","Tiled gallery layout","jetpack")),s()(Rt,ye.d,Object(u._x)("Tiled columns","Tiled gallery layout","jetpack")),s()(Rt,ye.f,Object(u._x)("Square tiles","Tiled gallery layout","jetpack")),Rt),Yt=ye.g.map((function(e){return o()({},e,{label:Jt[e.name]})}));function Qt(e){return Object(d.filter)(e,(function(e){var t=e.id,n=e.url;return t&&n}))}var Xt={align:{default:"center",type:"string"},className:{default:"is-style-".concat(ye.e),type:"string"},columns:{type:"number"},ids:{default:[],type:"array"},imageFilter:{type:"string"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},linkTo:{default:"none",type:"string"}},en={align:"center",className:"is-style-rectangular",images:[{alt:"",link:"",url:Lt.a,width:160,height:95},{alt:"",link:"",url:qt.a,width:160,height:107},{alt:"",link:"",url:Vt.a,width:304,height:203},{alt:"",link:"",url:Gt.a,width:312,height:207},{alt:"",link:"",url:Wt.a,width:152,height:101},{alt:"",link:"",url:Zt.a,width:152,height:105}],linkTo:"none"},tn=Object(l.createElement)(h.SVG,{viewBox:"0 0 24 24",width:24,height:24},Object(l.createElement)(h.Path,{fill:"currentColor",d:"M19 5v2h-4V5h4M9 5v6H5V5h4m10 8v6h-4v-6h4M9 17v2H5v-2h4M21 3h-8v6h8V3zM11 3H3v10h8V3zm10 8h-8v10h8V11zm-10 4H3v6h8v-6z"})),nn={attributes:Xt,category:"jetpack",description:Object(u.__)("Display multiple images in an elegantly organized tiled layout.","jetpack")+(Object(qe.b)()?"":" "+Object(u.__)("Serves images using Jetpack's fast global network of servers.","jetpack")),icon:tn,keywords:[Object(u._x)("images","block search term","jetpack"),Object(u._x)("photos","block search term","jetpack"),Object(u._x)("pictures","block search term","jetpack")],styles:Yt,supports:{align:["center","wide","full"],customClassName:!1,html:!1},title:Object(u.__)("Tiled Gallery","jetpack"),transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],isMatch:function(e){return Qt(e).length>0},transform:function(e){var t=Qt(e);return Object(p.createBlock)("jetpack/".concat("tiled-gallery"),{images:t.map((function(e){return{id:e.id,url:e.url,alt:e.alt}})),ids:t.map((function(e){return e.id}))})}},{type:"block",blocks:["core/gallery","jetpack/slideshow"],transform:function(e){var t=Qt(e.images);return t.length>0?Object(p.createBlock)("jetpack/".concat("tiled-gallery"),{images:t.map((function(e){return{id:e.id,url:e.url,alt:e.alt}})),ids:t.map((function(e){return e.id}))}):Object(p.createBlock)("jetpack/".concat("tiled-gallery"))}}],to:[{type:"block",blocks:["core/gallery"],transform:function(e){var t=e.images,n=e.ids,r=e.columns,a=e.linkTo;return Object(p.createBlock)("core/gallery",{images:t,ids:n,columns:r,imageCrop:!0,linkTo:a})}},{type:"block",blocks:["core/image"],transform:function(e){var t=e.align,n=e.images;return n.length>0?n.map((function(e){var n=e.id,r=e.url,a=e.alt;return Object(p.createBlock)("core/image",{align:t,id:n,url:r,alt:a})})):Object(p.createBlock)("core/image")}}]},edit:Be,save:function(e){var t=e.attributes,n=t.imageFilter,r=t.images;if(!r.length)return null;var a=t.align,i=t.className,o=t.columns,c=void 0===o?ze(t):o,s=t.linkTo;return Object(l.createElement)(Pe,{align:a,className:i,columns:c,imageFilter:n,images:r,isSave:!0,layoutStyle:Me(ye.g,i),linkTo:s})},deprecated:[r],example:{attributes:en}};Object(a.a)("tiled-gallery",nn)},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"setConnectionTestResults",(function(){return p})),n.d(r,"refreshConnectionTestResults",(function(){return d})),n.d(r,"fetchFromAPI",(function(){return h}));var a={};n.r(a),n.d(a,"getFailedConnections",(function(){return m})),n.d(a,"getMustReauthConnections",(function(){return f}));var i=n(0),o=n(1),c=n(2),s=n(52),l=n(28),u=(n(216),n(13));function p(e){return{type:"SET_CONNECTION_TEST_RESULTS",results:e}}function d(){return{type:"REFRESH_CONNECTION_TEST_RESULTS"}}function h(e){return{type:"FETCH_FROM_API",path:e}}function m(e){return e.filter((function(e){return!1===e.test_success}))}function f(e){return e.filter((function(e){return"must_reauth"===e.test_success})).map((function(e){return e.service_name}))}var b=n(21),g=n.n(b),v=n(101),j=n.n(v),y=n(5),_=n(23),k=n.n(_);var O={REFRESH_CONNECTION_TEST_RESULTS:function(e,t){var n,r;return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.dispatch,e.prev=1,e.next=4,regeneratorRuntime.awrap(k()({path:"/wpcom/v2/publicize/connection-test-results"}));case 4:return r=e.sent,e.abrupt("return",n(p(r)));case 8:e.prev=8,e.t0=e.catch(1);case 10:case"end":return e.stop()}}),null,null,[[1,8]])}};var w,E,C,x,S,A={FETCH_FROM_API:function(e){var t=e.path;return k()({path:t})}},F=Object(u.registerStore)("jetpack/publicize",{actions:r,controls:A,reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_CONNECTION_TEST_RESULTS":return t.results;case"REFRESH_CONNECTION_TEST_RESULTS":return[]}return e},selectors:a});w=F,C=[j()(O)],x=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},S={getState:w.getState,dispatch:function(){return x.apply(void 0,arguments)}},E=C.map((function(e){return e(S)})),x=y.flowRight.apply(void 0,g()(E))(w.dispatch),w.dispatch=x;var P=n(44),T=n(14),N=n(7),M=n.n(N),R=n(11),D=n.n(R),z=n(8),I=n.n(z),L=n(9),B=n.n(L),q=n(4),U=n.n(q),V=n(10),H=n.n(V),G=n(3),$=n.n(G),W=function(e){function t(){var e,n;M()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=I()(this,(e=B()(t)).call.apply(e,[this].concat(a))),$()(U()(n),"refreshConnectionClick",(function(e){var t=e.target,r=t.href,a=t.title;e.preventDefault();var i=window.open(r,a,""),o=window.setInterval((function(){!1!==i.closed&&(window.clearInterval(o),n.props.refreshConnections())}),500)})),n}return H()(t,e),D()(t,[{key:"componentDidMount",value:function(){this.props.refreshConnections()}},{key:"renderRefreshableConnections",value:function(){var e=this,t=this.props.failedConnections.filter((function(e){return e.can_refresh}));return t.length?Object(i.createElement)(c.Notice,{className:"jetpack-publicize-notice",isDismissible:!1,status:"error"},Object(i.createElement)("p",null,Object(o.__)("Before you hit Publish, please refresh the following connection(s) to make sure we can Publicize your post:","jetpack")),t.map((function(t){return Object(i.createElement)(c.Button,{href:t.refresh_url,isSmall:!0,key:t.id,onClick:e.refreshConnectionClick,title:t.refresh_text},t.refresh_text)}))):null}},{key:"renderNonRefreshableConnections",value:function(){var e=this.props.failedConnections.filter((function(e){return!e.can_refresh}));return e.length?e.map((function(e){return Object(i.createElement)(c.Notice,{className:"jetpack-publicize-notice",isDismissible:!1,status:"error"},Object(i.createElement)("p",null,e.test_message))})):null}},{key:"render",value:function(){return Object(i.createElement)(i.Fragment,null,this.renderRefreshableConnections(),this.renderNonRefreshableConnections())}}]),t}(i.Component),K=Object(T.compose)([Object(u.withSelect)((function(e){return{failedConnections:e("jetpack/publicize").getFailedConnections()}})),Object(u.withDispatch)((function(e){return{refreshConnections:e("jetpack/publicize").refreshConnectionTestResults}}))])(W),Z=n(15),J=n.n(Z),Y=n(12),Q=n.n(Y),X=n(30),ee=n.n(X),te=Object(i.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(c.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(i.createElement)(c.G,null,Object(i.createElement)(c.Path,{d:"M20.007 3H3.993C3.445 3 3 3.445 3 3.993v16.013c0 .55.445.994.993.994h8.62v-6.97H10.27V11.31h2.346V9.31c0-2.325 1.42-3.59 3.494-3.59.993 0 1.847.073 2.096.106v2.43h-1.438c-1.128 0-1.346.537-1.346 1.324v1.734h2.69l-.35 2.717h-2.34V21h4.587c.548 0 .993-.445.993-.993V3.993c0-.548-.445-.993-.993-.993z"}))),ne=Object(i.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(c.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(i.createElement)(c.G,null,Object(i.createElement)(c.Path,{d:"M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z"}))),re=Object(i.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(c.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(i.createElement)(c.G,null,Object(i.createElement)(c.Path,{d:"M19.7 3H4.3C3.582 3 3 3.582 3 4.3v15.4c0 .718.582 1.3 1.3 1.3h15.4c.718 0 1.3-.582 1.3-1.3V4.3c0-.718-.582-1.3-1.3-1.3zM8.34 18.338H5.666v-8.59H8.34v8.59zM7.003 8.574c-.857 0-1.55-.694-1.55-1.548 0-.855.692-1.548 1.55-1.548.854 0 1.547.694 1.547 1.548 0 .855-.692 1.548-1.546 1.548zm11.335 9.764h-2.67V14.16c0-.995-.017-2.277-1.387-2.277-1.39 0-1.6 1.086-1.6 2.206v4.248h-2.668v-8.59h2.56v1.174h.036c.357-.675 1.228-1.387 2.527-1.387 2.703 0 3.203 1.78 3.203 4.092v4.71z"}))),ae=Object(i.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(c.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(i.createElement)(c.G,null,Object(i.createElement)(c.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-5.57 14.265c-2.445.042-3.37-1.742-3.37-2.998V10.6H8.922V9.15c1.703-.615 2.113-2.15 2.21-3.026.006-.06.053-.084.08-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.13 1.08 1.107.3-.008.698-.094.907-.194l.54 1.6c-.205.297-1.12.642-1.946.657z"}))),ie=function(e){var t=e.serviceName,n={className:"jetpack-publicize-gutenberg-social-icon is-".concat(t),size:24};switch(t){case"facebook":return Object(i.createElement)(c.Icon,ee()({icon:te},n));case"twitter":return Object(i.createElement)(c.Icon,ee()({icon:ne},n));case"linkedin":return Object(i.createElement)(c.Icon,ee()({icon:re},n));case"tumblr":return Object(i.createElement)(c.Icon,ee()({icon:ae},n))}return null},oe=n(35),ce=function(e){function t(){var e,n;M()(this,t);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return n=I()(this,(e=B()(t)).call.apply(e,[this].concat(a))),$()(U()(n),"maybeDisplayLinkedInNotice",(function(){return n.connectionNeedsReauth()&&Object(i.createElement)(c.Notice,{className:"jetpack-publicize-notice",isDismissible:!1,status:"error"},Object(i.createElement)("p",null,Object(o.__)("Your LinkedIn connection needs to be reauthenticated to continue working – head to Sharing to take care of it.","jetpack")),Object(i.createElement)(c.ExternalLink,{href:"https://wordpress.com/marketing/connections/".concat(Object(oe.a)())},Object(o.__)("Go to Sharing settings","jetpack")))})),$()(U()(n),"connectionNeedsReauth",(function(){return Object(y.includes)(n.props.mustReauthConnections,n.props.name)})),$()(U()(n),"onConnectionChange",(function(){var e=n.props.id;n.props.toggleConnection(e)})),n}return H()(t,e),D()(t,[{key:"connectionIsFailing",value:function(){var e=this.props,t=e.failedConnections,n=e.name;return t.some((function(e){return e.service_name===n}))}},{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.enabled,r=e.id,a=e.label,o=e.name,s="connection-"+o+"-"+r,l=o.replace("_","-"),u=Object(i.createElement)(c.FormToggle,{id:s,className:"jetpack-publicize-connection-toggle",checked:n,onChange:this.onConnectionChange});return(t||this.connectionIsFailing()||this.connectionNeedsReauth())&&(u=Object(i.createElement)(c.Disabled,null,u)),Object(i.createElement)("li",null,this.maybeDisplayLinkedInNotice(),Object(i.createElement)("div",{className:"publicize-jetpack-connection-container"},Object(i.createElement)("label",{htmlFor:s,className:"jetpack-publicize-connection-label"},Object(i.createElement)(ie,{serviceName:l}),Object(i.createElement)("span",{className:"jetpack-publicize-connection-label-copy"},a)),u))}}]),t}(i.Component),se=Object(u.withSelect)((function(e){return{failedConnections:e("jetpack/publicize").getFailedConnections(),mustReauthConnections:e("jetpack/publicize").getMustReauthConnections()}}))(ce),le=function(e){function t(){var e,n;M()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=I()(this,(e=B()(t)).call.apply(e,[this].concat(a))),$()(U()(n),"settingsClick",(function(e){var t=n.getButtonLink(),r=n.props.refreshCallback;e.preventDefault();var a=window.open(t,"",""),i=window.setInterval((function(){!1!==a.closed&&(window.clearInterval(i),r())}),500)})),n}return H()(t,e),D()(t,[{key:"getButtonLink",value:function(){var e=Object(oe.a)();return e?"https://wordpress.com/marketing/connections/".concat(e):"options-general.php?page=sharing&publicize_popup=true"}},{key:"render",value:function(){var e=Q()("jetpack-publicize-add-connection-container",this.props.className);return Object(i.createElement)("div",{className:e},Object(i.createElement)(c.ExternalLink,{onClick:this.settingsClick},Object(o.__)("Connect an account","jetpack")))}}]),t}(i.Component),ue=function(e){function t(){var e,n;M()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=I()(this,(e=B()(t)).call.apply(e,[this].concat(a))),$()(U()(n),"state",{hasEditedShareMessage:!1}),$()(U()(n),"fieldId",Object(y.uniqueId)("jetpack-publicize-message-field-")),$()(U()(n),"onMessageChange",(function(e){var t=n.props.messageChange;n.setState({hasEditedShareMessage:!0}),t(e)})),n}return H()(t,e),D()(t,[{key:"isDisabled",value:function(){return this.props.connections.every((function(e){return!e.toggleable}))}},{key:"getShareMessage",value:function(){var e=this.props,t=e.shareMessage,n=e.defaultShareMessage;return this.state.hasEditedShareMessage||""!==t?t:n}},{key:"render",value:function(){var e=this.props,t=e.connections,n=e.toggleConnection,r=e.refreshCallback,a=this.getShareMessage(),c=256-a.length,s=Q()("jetpack-publicize-character-count",{"wpas-twitter-length-limit":c<=0});return Object(i.createElement)("div",{id:"publicize-form"},Object(i.createElement)("ul",{className:"jetpack-publicize__connections-list"},t.map((function(e){var t=e.display_name,r=e.enabled,a=e.id,o=e.service_name,c=e.toggleable;return Object(i.createElement)(se,{disabled:!c,enabled:r,key:a,id:a,label:t,name:o,toggleConnection:n})}))),Object(i.createElement)(le,{refreshCallback:r}),t.some((function(e){return e.enabled}))&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("label",{className:"jetpack-publicize-message-note",htmlFor:this.fieldId},Object(o.__)("Customize your message","jetpack")),Object(i.createElement)("div",{className:"jetpack-publicize-message-box"},Object(i.createElement)("textarea",{id:this.fieldId,value:a,onChange:this.onMessageChange,disabled:this.isDisabled(),maxLength:256,placeholder:Object(o.__)("Write a message for your audience here. If you leave this blank, we'll use the post title as the message.","jetpack"),rows:4}),Object(i.createElement)("div",{className:s},Object(o.sprintf)(Object(o._n)("%d character remaining","%d characters remaining",c,"jetpack"),c)))))}}]),t}(i.Component),pe=Object(T.compose)([Object(u.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute("meta"),n=e("core/editor").getEditedPostAttribute("title"),r=Object(y.get)(t,["jetpack_publicize_message"],"");return{connections:e("core/editor").getEditedPostAttribute("jetpack_publicize_connections"),defaultShareMessage:n.substr(0,256),shareMessage:r.substr(0,256)}})),Object(u.withDispatch)((function(e,t){var n=t.connections;return{toggleConnection:function(t){var r=n.map((function(e){return J()({},e,{enabled:e.id===t?!e.enabled:e.enabled})}));e("core/editor").editPost({jetpack_publicize_connections:r})},messageChange:function(t){e("core/editor").editPost({meta:{jetpack_publicize_message:t.target.value}})}}}))])(ue),de=Object(T.compose)([Object(u.withSelect)((function(e){return{connections:e("core/editor").getEditedPostAttribute("jetpack_publicize_connections")}})),Object(u.withDispatch)((function(e){return{refreshConnections:e("core/editor").refreshPost}}))])((function(e){var t=e.connections,n=e.refreshConnections;return Object(i.createElement)(i.Fragment,null,t&&t.some((function(e){return e.enabled}))&&Object(i.createElement)(K,null),Object(i.createElement)("div",null,Object(o.__)("Connect and select the accounts where you'd like to share your post.","jetpack")),t&&t.length>0&&Object(i.createElement)(pe,{refreshCallback:n}),t&&0===t.length&&Object(i.createElement)(le,{className:"jetpack-publicize-add-connection-wrapper",refreshCallback:n}))})),he={render:function(){return Object(i.createElement)(l.PostTypeSupportCheck,{supportKeys:"publicize"},Object(i.createElement)(P.a,null,Object(i.createElement)(c.PanelBody,{title:Object(o.__)("Share this post","jetpack")},Object(i.createElement)(de,null))),Object(i.createElement)(s.PluginPrePublishPanel,{initialOpen:!0,id:"publicize-title",title:Object(i.createElement)("span",{id:"publicize-defaults",key:"publicize-title-span"},Object(o.__)("Share this post","jetpack"))},Object(i.createElement)(de,null)))}},me=n(37);Object(me.a)("publicize",he)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(6),c=n(2),s=n(12),l=n.n(s),u=["jetpack/markdown","jetpack/address","jetpack/email","jetpack/phone","jetpack/map","jetpack/business-hours","core/paragraph","core/image","core/heading","core/gallery","core/list","core/quote","core/shortcode","core/audio","core/code","core/cover","core/html","core/separator","core/spacer","core/subhead","core/video"],p=[["jetpack/email"],["jetpack/phone"],["jetpack/address"]],d=function(e){var t=e.isSelected;return Object(a.createElement)("div",{className:l()({"jetpack-contact-info-block":!0,"is-selected":t})},Object(a.createElement)(o.InnerBlocks,{allowedBlocks:u,templateLock:!1,template:p}))},h=n(20),m=(n(152),n(129),n(7)),f=n.n(m),b=n(11),g=n.n(b),v=n(8),j=n.n(v),y=n(9),_=n.n(y),k=n(4),O=n.n(k),w=n(10),E=n.n(w),C=function(e){var t=e.attributes,n=t.address,r=t.addressLine2,i=t.addressLine3,o=t.city,c=t.region,s=t.postal,l=t.country;return Object(a.createElement)(a.Fragment,null,n&&Object(a.createElement)("div",{className:"jetpack-address__address jetpack-address__address1"},n),r&&Object(a.createElement)("div",{className:"jetpack-address__address jetpack-address__address2"},r),i&&Object(a.createElement)("div",{className:"jetpack-address__address jetpack-address__address3"},i),o&&!(c||s)&&Object(a.createElement)("div",{className:"jetpack-address__city"},o),o&&(c||s)&&Object(a.createElement)("div",null,[Object(a.createElement)("span",{className:"jetpack-address__city"},o),", ",Object(a.createElement)("span",{className:"jetpack-address__region"},c)," ",Object(a.createElement)("span",{className:"jetpack-address__postal"},s)]),!o&&(c||s)&&Object(a.createElement)("div",null,[Object(a.createElement)("span",{className:"jetpack-address__region"},c)," ",Object(a.createElement)("span",{className:"jetpack-address__postal"},s)]),l&&Object(a.createElement)("div",{className:"jetpack-address__country"},l))},x=function(e){var t=e.attributes,n=t.address,r=t.addressLine2,a=t.addressLine3,i=t.city,o=t.region,c=t.postal,s=t.country,l=n?"".concat(n,","):"",u=r?"".concat(r,","):"",p=a?"".concat(a,","):"",d=i?"+".concat(i,","):"",h=o?"+".concat(o,","):"";h=c?"".concat(h,"+").concat(c):h;var m=s?"+".concat(s):"";return"https://www.google.com/maps/search/".concat(l).concat(u).concat(p).concat(d).concat(h).concat(m).replace(" ","+")},S=function(e){return[(t=e.attributes).address,t.addressLine2,t.addressLine3,t.city,t.region,t.postal,t.country].some((function(e){return""!==e}))&&Object(a.createElement)("div",{className:e.className},e.attributes.linkToGoogleMaps&&Object(a.createElement)("a",{href:x(e),target:"_blank",rel:"noopener noreferrer",title:Object(i.__)("Open address in Google Maps","jetpack")},Object(a.createElement)(C,e)),!e.attributes.linkToGoogleMaps&&Object(a.createElement)(C,e));var t},A=function(e){function t(){var e,n;f()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return(n=j()(this,(e=_()(t)).call.apply(e,[this].concat(a)))).preventEnterKey=n.preventEnterKey.bind(O()(n)),n}return E()(t,e),g()(t,[{key:"preventEnterKey",value:function(e){"Enter"!==e.key||e.preventDefault()}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.address,r=t.addressLine2,s=t.addressLine3,u=t.city,p=t.region,d=t.postal,h=t.country,m=t.linkToGoogleMaps,f=e.isSelected,b=e.setAttributes,g=[n,r,s,u,p,d,h].some((function(e){return""!==e})),v=l()({"jetpack-address-block":!0,"is-selected":f}),j=Object(a.createElement)(c.ToggleControl,{label:Object(i.__)("Link address to Google Maps","jetpack"),checked:m,onChange:function(e){return b({linkToGoogleMaps:e})}});return Object(a.createElement)("div",{className:v},!f&&g&&S(this.props),(f||!g)&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)(o.PlainText,{value:n,placeholder:Object(i.__)("Street Address","jetpack"),"aria-label":Object(i.__)("Street Address","jetpack"),onChange:function(e){return b({address:e})},onKeyDown:this.preventEnterKey}),Object(a.createElement)(o.PlainText,{value:r,placeholder:Object(i.__)("Address Line 2","jetpack"),"aria-label":Object(i.__)("Address Line 2","jetpack"),onChange:function(e){return b({addressLine2:e})},onKeyDown:this.preventEnterKey}),Object(a.createElement)(o.PlainText,{value:s,placeholder:Object(i.__)("Address Line 3","jetpack"),"aria-label":Object(i.__)("Address Line 3","jetpack"),onChange:function(e){return b({addressLine3:e})},onKeyDown:this.preventEnterKey}),Object(a.createElement)(o.PlainText,{value:u,placeholder:Object(i.__)("City","jetpack"),"aria-label":Object(i.__)("City","jetpack"),onChange:function(e){return b({city:e})},onKeyDown:this.preventEnterKey}),Object(a.createElement)(o.PlainText,{value:p,placeholder:Object(i.__)("State/Province/Region","jetpack"),"aria-label":Object(i.__)("State/Province/Region","jetpack"),onChange:function(e){return b({region:e})},onKeyDown:this.preventEnterKey}),Object(a.createElement)(o.PlainText,{value:d,placeholder:Object(i.__)("Postal/Zip Code","jetpack"),"aria-label":Object(i.__)("Postal/Zip Code","jetpack"),onChange:function(e){return b({postal:e})},onKeyDown:this.preventEnterKey}),Object(a.createElement)(o.PlainText,{value:h,placeholder:Object(i.__)("Country","jetpack"),"aria-label":Object(i.__)("Country","jetpack"),onChange:function(e){return b({country:e})},onKeyDown:this.preventEnterKey}),j))}}]),t}(a.Component),F={title:Object(i.__)("Address","jetpack"),description:Object(i.__)("Lets you add a physical address with Schema markup.","jetpack"),keywords:[Object(i._x)("location","block search term","jetpack"),Object(i._x)("direction","block search term","jetpack"),Object(i._x)("place","block search term","jetpack")],icon:Object(h.a)(Object(a.createElement)(a.Fragment,null,Object(a.createElement)(c.Path,{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zM7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.88-2.88 7.19-5 9.88C9.92 16.21 7 11.85 7 9z"}),Object(a.createElement)(c.Circle,{cx:"12",cy:"9",r:"2.5"}))),category:"jetpack",attributes:{address:{type:"string",default:""},addressLine2:{type:"string",default:""},addressLine3:{type:"string",default:""},city:{type:"string",default:""},region:{type:"string",default:""},postal:{type:"string",default:""},country:{type:"string",default:""},linkToGoogleMaps:{type:"boolean",default:!1}},parent:["jetpack/contact-info"],edit:A,save:S},P=n(43),T=n.n(P),N=function(e){var t=e.attributes.email,n=e.className;return t&&Object(a.createElement)("div",{className:n},t.split(/(\s+)/).map((function(e,t){var n=e.replace(/([.,/#!$%^&*;:{}=\-_`~()\][])+$/g,"");return e.indexOf("@")&&T.a.validate(n)?e===n?Object(a.createElement)("a",{href:"mailto:".concat(e),key:t},e):Object(a.createElement)(a.Fragment,{key:t},Object(a.createElement)("a",{href:"mailto:".concat(e),key:t},n),Object(a.createElement)(a.Fragment,null,e.slice(-(e.length-n.length)))):Object(a.createElement)(a.Fragment,{key:t},e)})))},M=function(e,t,n,r,i){var c=t.isSelected,s=t.attributes[e];return Object(a.createElement)("div",{className:"jetpack-".concat(e,c?"-block is-selected":"-block")},!c&&""!==s&&r(t),(c||""===s)&&Object(a.createElement)(o.PlainText,{value:s,placeholder:n,"aria-label":n,onChange:i}))},R=function(e){var t=e.setAttributes;return M("email",e,Object(i.__)("Email","jetpack"),N,(function(e){return t({email:e})}))},D={title:Object(i.__)("Email Address","jetpack"),description:Object(i.__)("Lets you add an email address with an automatically generated click-to-email link.","jetpack"),keywords:["e-mail","email",Object(i._x)("message","block search term","jetpack")],icon:Object(h.a)(Object(a.createElement)(c.Path,{d:"M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"})),category:"jetpack",attributes:{email:{type:"string",default:""}},edit:R,save:N,parent:["jetpack/contact-info"]};var z=function(e){var t=e.attributes.phone,n=e.className;return t&&Object(a.createElement)("div",{className:n},function(e){var t=e.match(/\d+\.\d+|\d+\b|\d+(?=\w)/g);if(!t)return e;var n=e.indexOf(t[0]),r=n?e.substring(n-1):e,i=n?e.substring(0,n):"",o=r.replace(/\D/g,"");return/[0-9/+/(]/.test(r[0])?(i=i.slice(0,-1),"+"===r[0]&&(o="+"+o)):r=r.substring(1),[i.trim()?Object(a.createElement)("span",{key:"phonePrefix",className:"phone-prefix"},i):null,Object(a.createElement)("a",{key:"phoneNumber",href:"tel:".concat(o)},r)]}(t))},I=function(e){var t=e.setAttributes;return M("phone",e,Object(i.__)("Phone number","jetpack"),z,(function(e){return t({phone:e})}))},L={title:Object(i.__)("Phone Number","jetpack"),description:Object(i.__)("Lets you add a phone number with an automatically generated click-to-call link.","jetpack"),keywords:[Object(i._x)("mobile","block search term","jetpack"),Object(i._x)("telephone","block search term","jetpack"),Object(i._x)("cell","block search term","jetpack")],icon:Object(h.a)(Object(a.createElement)(c.Path,{d:"M6.54 5c.06.89.21 1.76.45 2.59l-1.2 1.2c-.41-1.2-.67-2.47-.76-3.79h1.51m9.86 12.02c.85.24 1.72.39 2.6.45v1.49c-1.32-.09-2.59-.35-3.8-.75l1.2-1.19M7.5 3H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.49c0-.55-.45-1-1-1-1.24 0-2.45-.2-3.57-.57-.1-.04-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.45-5.15-3.76-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1z"})),category:"jetpack",attributes:{phone:{type:"string",default:""}},parent:["jetpack/contact-info"],edit:I,save:z},B={title:Object(i.__)("Contact Info","jetpack"),description:Object(i.__)("Lets you add an email address, phone number, and physical address with improved markup for better SEO results.","jetpack"),keywords:[Object(i._x)("email","block search term","jetpack"),Object(i._x)("phone","block search term","jetpack"),Object(i._x)("address","block search term","jetpack")],icon:Object(h.a)(Object(a.createElement)(c.Path,{d:"M19 5v14H5V5h14m0-2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 9c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3zm0-4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm6 10H6v-1.53c0-2.5 3.97-3.58 6-3.58s6 1.08 6 3.58V18zm-9.69-2h7.38c-.69-.56-2.38-1.12-3.69-1.12s-3.01.56-3.69 1.12z"})),category:"jetpack",supports:{align:["wide","full"],html:!1},attributes:{},edit:d,save:function(e){var t=e.className;return Object(a.createElement)("div",{className:t},Object(a.createElement)(o.InnerBlocks.Content,null))},example:{attributes:{},innerBlocks:[{name:"jetpack/email",attributes:{email:"hello@yourjetpack.blog"}},{name:"jetpack/phone",attributes:{phone:"123-456-7890"}},{name:"jetpack/address",attributes:{address:"987 Photon Drive",city:"Speedyville",region:"CA",postal:"12345",country:"USA"}}]}},q=[{name:"address",settings:F},{name:"email",settings:D},{name:"phone",settings:L}];Object(r.a)("contact-info",B,q)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(27),i=n(7),o=n.n(i),c=n(11),s=n.n(c),l=n(8),u=n.n(l),p=n(9),d=n.n(p),h=n(4),m=n.n(h),f=n(10),b=n.n(f),g=n(3),v=n.n(g),j=n(0),y=n(23),_=n.n(y),k=n(1),O=n(2),w=n(6),E=(n(157),n(21)),C=n.n(E),x=n(12),S=n.n(x),A=n(5),F=n(26),P=n(14);function T(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=[],r=0;r<e.length;r++){var a=e[r],i=a.keywords,o=void 0===i?[]:i;if("string"==typeof a.label&&(o=[].concat(C()(o),[a.label])),n.push(a),n.length===t)break}return n}var N=function(e){function t(){var e;return o()(this,t),e=u()(this,d()(t).apply(this,arguments)),v()(m()(e),"select",(function(t){(e.props.completer.getOptionCompletion||{})(t),e.reset()})),v()(m()(e),"reset",(function(){e.setState(e.constructor.getInitialState())})),v()(m()(e),"onChange",(function(t){var n=e.props.completer,r=e.state.options;if(t){n&&(n.isDebounced?e.debouncedLoadOptions(n,t):e.loadOptions(n,t));var a=n?T(r):[];n&&e.setState({selectedIndex:0,filteredOptions:a,query:t})}else e.reset()})),v()(m()(e),"onKeyDown",(function(t){var n=e.state,r=n.isOpen,a=n.selectedIndex,i=n.filteredOptions;if(r){var o;switch(t.keyCode){case F.UP:o=(0===a?i.length:a)-1,e.setState({selectedIndex:o});break;case F.DOWN:o=(a+1)%i.length,e.setState({selectedIndex:o});break;case F.ENTER:e.select(i[a]);break;case F.LEFT:case F.RIGHT:case F.ESCAPE:return void e.reset();default:return}t.preventDefault(),t.stopPropagation()}})),e.debouncedLoadOptions=Object(A.debounce)(e.loadOptions,250),e.state=e.constructor.getInitialState(),e}return b()(t,e),s()(t,null,[{key:"getInitialState",value:function(){return{selectedIndex:0,query:void 0,filteredOptions:[],isOpen:!1}}}]),s()(t,[{key:"componentWillUnmount",value:function(){this.debouncedLoadOptions.cancel()}},{key:"handleFocusOutside",value:function(){this.reset()}},{key:"loadOptions",value:function(e,t){var n=this,r=e.options,a=this.activePromise=Promise.resolve("function"==typeof r?r(t):r).then((function(t){var r;if(a===n.activePromise){var i=t.map((function(t,n){return{key:"".concat(n),value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[]}})),o=T(i),c=o.length===n.state.filteredOptions.length?n.state.selectedIndex:0;n.setState((r={},v()(r,"options",i),v()(r,"filteredOptions",o),v()(r,"selectedIndex",c),v()(r,"isOpen",o.length>0),r)),n.announce(o)}}))}},{key:"announce",value:function(e){var t=this.props.debouncedSpeak;t&&(e.length?t(Object(k.sprintf)(Object(k._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length,"jetpack","jetpack"),e.length),"assertive"):t(Object(k.__)("No results.","jetpack"),"assertive"))}},{key:"render",value:function(){var e=this,t=this.onChange,n=this.onKeyDown,r=this.props,a=r.children,i=r.instanceId,o=r.completer,c=this.state,s=c.selectedIndex,l=c.filteredOptions,u=(l[s]||{}).key,p=void 0===u?"":u,d=o.className,h=l.length>0,m=h?"components-autocomplete-listbox-".concat(i):null,f=h?"components-autocomplete-item-".concat(i,"-").concat(p):null;return Object(j.createElement)("div",{className:"components-autocomplete"},a({isExpanded:h,listBoxId:m,activeId:f,onChange:t,onKeyDown:n}),h&&Object(j.createElement)(O.Popover,{focusOnMount:!1,onClose:this.reset,position:"top center",className:"components-autocomplete__popover",noArrow:!0},Object(j.createElement)("div",{id:m,role:"listbox",className:"components-autocomplete__results"},Object(A.map)(l,(function(t,n){return Object(j.createElement)(O.Button,{key:t.key,id:"components-autocomplete-item-".concat(i,"-").concat(t.key),role:"option","aria-selected":n===s,disabled:t.isDisabled,className:S()("components-autocomplete__result",d,{"is-selected":n===s}),onClick:function(){return e.select(t)}},t.label)})))))}}]),t}(j.Component),M=Object(P.compose)([O.withSpokenMessages,P.withInstanceId,O.withFocusOutside])(N),R=Object(k.__)("Add a marker…","jetpack"),D=function(e){function t(){var e;return o()(this,t),e=u()(this,d()(t).apply(this,arguments)),v()(m()(e),"getOptionCompletion",(function(t){var n=t.value,r={placeTitle:n.text,title:n.text,caption:n.place_name,id:n.id,coordinates:{longitude:n.geometry.coordinates[0],latitude:n.geometry.coordinates[1]}};return e.props.onAddPoint(r),n.text})),v()(m()(e),"search",(function(t){var n=e.props,r=n.apiKey,a=n.onError,i="https://api.mapbox.com/geocoding/v5/mapbox.places/"+encodeURI(t)+".json?access_token="+r;return new Promise((function(e,t){var n=new XMLHttpRequest;n.open("GET",i),n.onload=function(){if(200===n.status){var r=JSON.parse(n.responseText);e(r.features)}else{var i=JSON.parse(n.responseText);a(i.statusText,i.responseJSON.message),t(new Error("Mapbox Places Error"))}},n.send()}))})),v()(m()(e),"onReset",(function(){e.textRef.current.value=null})),e.textRef=Object(j.createRef)(),e.containerRef=Object(j.createRef)(),e.state={isEmpty:!0},e.autocompleter={name:"placeSearch",options:e.search,isDebounced:!0,getOptionLabel:function(e){return Object(j.createElement)("span",null,e.place_name)},getOptionKeywords:function(e){return[e.place_name]},getOptionCompletion:e.getOptionCompletion},e}return b()(t,e),s()(t,[{key:"componentDidMount",value:function(){var e=this;setTimeout((function(){e.containerRef.current.querySelector("input").focus()}),50)}},{key:"render",value:function(){var e=this,t=this.props.label;return Object(j.createElement)("div",{ref:this.containerRef},Object(j.createElement)(O.BaseControl,{label:t,className:"components-location-search"},Object(j.createElement)(M,{completer:this.autocompleter,onReset:this.onReset},(function(t){var n=t.isExpanded,r=t.listBoxId,a=t.activeId,i=t.onChange,o=t.onKeyDown;return Object(j.createElement)(O.TextControl,{placeholder:R,ref:e.textRef,onChange:i,"aria-expanded":n,"aria-owns":r,"aria-activedescendant":a,onKeyDown:o})}))))}}]),t}(j.Component);D.defaultProps={onError:function(){}};var z=D,I=function(e){function t(){return o()(this,t),u()(this,d()(t).apply(this,arguments))}return b()(t,e),s()(t,[{key:"render",value:function(){var e=this.props,t=e.onClose,n=e.onAddPoint,r=e.onError,a=e.apiKey;return Object(j.createElement)(O.Button,{className:"component__add-point"},Object(k.__)("Add marker","jetpack"),Object(j.createElement)(O.Popover,{className:"component__add-point__popover"},Object(j.createElement)(O.Button,{className:"component__add-point__close",onClick:t},Object(j.createElement)(O.Dashicon,{icon:"no"})),Object(j.createElement)(z,{onAddPoint:n,label:Object(k.__)("Add a location","jetpack"),apiKey:a,onError:r})))}}]),t}(j.Component);I.defaultProps={onAddPoint:function(){},onClose:function(){},onError:function(){}};var L=I,B=(n(158),function(e){function t(){var e;return o()(this,t),e=u()(this,d()(t).apply(this,arguments)),v()(m()(e),"onDeletePoint",(function(t){var n=parseInt(t.target.getAttribute("data-id")),r=e.props,a=r.points,i=r.onChange,o=a.slice(0);o.splice(n,1),i(o)})),e.state={selectedCell:null},e}return b()(t,e),s()(t,[{key:"setMarkerField",value:function(e,t,n){var r=this.props,a=r.points,i=r.onChange,o=a.slice(0);o[n][e]=t,i(o)}},{key:"render",value:function(){var e=this,t=this.props.points.map((function(t,n){return Object(j.createElement)(O.PanelBody,{title:t.placeTitle,key:t.id,initialOpen:!1},Object(j.createElement)(O.TextControl,{label:"Marker Title",value:t.title,onChange:function(t){return e.setMarkerField("title",t,n)}}),Object(j.createElement)(O.TextareaControl,{label:"Marker Caption",value:t.caption,rows:"3",onChange:function(t){return e.setMarkerField("caption",t,n)}}),Object(j.createElement)(O.Button,{"data-id":n,onClick:e.onDeletePoint,className:"component__locations__delete-btn"},Object(j.createElement)(O.Dashicon,{icon:"trash",size:"15"})," Delete Marker"))}));return Object(j.createElement)("div",{className:"component__locations"},Object(j.createElement)(O.Panel,{className:"component__locations__panel"},t))}}]),t}(j.Component));B.defaultProps={points:Object.freeze([]),onChange:function(){}};var q=B,U=n(76),V=(n(159),function(e){function t(){return o()(this,t),u()(this,d()(t).apply(this,arguments))}return b()(t,e),s()(t,[{key:"render",value:function(){var e=this.props,t=e.options,n=e.value,r=e.onChange,a=e.label,i=t.map((function(e,t){var a=S()("component__map-theme-picker__button","is-theme-"+e.value,e.value===n?"is-selected":"");return Object(j.createElement)(O.Button,{className:a,title:e.label,key:t,onClick:function(){return r(e.value)}},e.label)}));return Object(j.createElement)("div",{className:"component__map-theme-picker components-base-control"},Object(j.createElement)("label",{className:"components-base-control__label"},a),Object(j.createElement)(O.ButtonGroup,null,i))}}]),t}(j.Component));V.defaultProps={label:"",options:[],value:null,onChange:function(){}};var H=V,G=n(99),$=n.n(G),W=function(e){function t(){var e;return o()(this,t),e=u()(this,d()(t).apply(this,arguments)),v()(m()(e),"addPoint",(function(t){var n=e.props,r=n.attributes,a=n.setAttributes,i=r.points,o=i.slice(0),c=!1;i.map((function(e){e.id===t.id&&(c=!0)})),c||(o.push(t),a({points:o}),e.setState({addPointVisibility:!1}))})),v()(m()(e),"updateAlignment",(function(t){e.props.setAttributes({align:t}),setTimeout(e.mapRef.current.sizeMap,0)})),v()(m()(e),"updateAPIKeyControl",(function(t){e.setState({apiKeyControl:t.target.value})})),v()(m()(e),"updateAPIKey",(function(){var t=e.props.noticeOperations,n=e.state.apiKeyControl;t.removeAllNotices(),n&&e.apiCall(n,"POST")})),v()(m()(e),"removeAPIKey",(function(){e.apiCall(null,"DELETE")})),v()(m()(e),"onError",(function(t,n){var r=e.props.noticeOperations;r.removeAllNotices(),r.createErrorNotice(n)})),e.state={addPointVisibility:!1,apiState:0},e.mapRef=Object(j.createRef)(),e}return b()(t,e),s()(t,[{key:"apiCall",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",r=this.props.noticeOperations,a="/wpcom/v2/service-api-keys/mapbox",i=t?{path:a,method:n,data:{service_api_key:t}}:{path:a,method:n};this.setState({apiRequestOutstanding:!0},(function(){_()(i).then((function(t){var n=t.service_api_key,a=t.service_api_key_source;r.removeAllNotices();var i=n?2:1,o="wpcom"===a?"":n;e.setState({apiState:i,apiKey:n,apiKeyControl:o,apiKeySource:a,apiRequestOutstanding:!1})}),(function(t){var n=t.message;e.onError(null,n),e.setState({apiState:1,apiRequestOutstanding:!1})}))}))}},{key:"componentDidMount",value:function(){this.apiCall()}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.setAttributes,i=t.attributes,o=t.noticeUI,c=t.notices,s=t.isSelected,l=i.mapStyle,u=i.mapDetails,p=i.points,d=i.zoom,h=i.mapCenter,m=i.markerColor,f=i.align,b=i.preview,g=this.state,v=g.addPointVisibility,y=g.apiKey,_=g.apiKeyControl,E=g.apiKeySource,C=g.apiState,x=g.apiRequestOutstanding,S=Object(j.createElement)(j.Fragment,null,Object(j.createElement)(w.BlockControls,null,Object(j.createElement)(w.BlockAlignmentToolbar,{value:f,onChange:this.updateAlignment,controls:["center","wide","full"]}),Object(j.createElement)(O.Toolbar,null,Object(j.createElement)(O.IconButton,{icon:a.a.markerIcon,label:"Add a marker",onClick:function(){return e.setState({addPointVisibility:!0})}}))),Object(j.createElement)(w.InspectorControls,null,Object(j.createElement)(O.PanelBody,{title:Object(k.__)("Map Theme","jetpack")},Object(j.createElement)(H,{value:l,onChange:function(e){return r({mapStyle:e})},options:a.a.mapStyleOptions}),Object(j.createElement)(O.ToggleControl,{label:Object(k.__)("Show street names","jetpack"),checked:u,onChange:function(e){return r({mapDetails:e})}})),Object(j.createElement)(w.PanelColorSettings,{title:Object(k.__)("Colors","jetpack"),initialOpen:!0,colorSettings:[{value:m,onChange:function(e){return r({markerColor:e})},label:"Marker Color"}]}),p.length?Object(j.createElement)(O.PanelBody,{title:Object(k.__)("Markers","jetpack"),initialOpen:!1},Object(j.createElement)(q,{points:p,onChange:function(e){r({points:e})}})):null,"wpcom"!==E&&Object(j.createElement)(O.PanelBody,{title:Object(k.__)("Mapbox Access Token","jetpack"),initialOpen:!1},Object(j.createElement)(O.TextControl,{label:Object(k.__)("Mapbox Access Token","jetpack"),value:_,onChange:function(t){return e.setState({apiKeyControl:t})}}),Object(j.createElement)(O.ButtonGroup,null,Object(j.createElement)(O.Button,{type:"button",onClick:this.updateAPIKey,isDefault:!0},Object(k.__)("Update Token","jetpack")),Object(j.createElement)(O.Button,{type:"button",onClick:this.removeAPIKey,isDefault:!0},Object(k.__)("Remove Token","jetpack")))))),A=Object(j.createElement)(O.Placeholder,{icon:a.a.icon},Object(j.createElement)(O.Spinner,null)),F=Object(j.createElement)(j.Fragment,null,Object(k.__)("To use the map block, you need an Access Token.","jetpack"),Object(j.createElement)("br",null),Object(j.createElement)(O.ExternalLink,{href:"https://www.mapbox.com"},Object(k.__)("Create an account or log in to Mapbox.","jetpack")),Object(j.createElement)("br",null),Object(k.__)("Locate and copy the default access token. Then, paste it into the field below.","jetpack")),P=Object(j.createElement)(O.Placeholder,{icon:a.a.icon,label:Object(k.__)("Map","jetpack"),notices:c,instructions:F},Object(j.createElement)(j.Fragment,null,Object(j.createElement)("form",null,Object(j.createElement)("input",{type:"text",className:"components-placeholder__input",disabled:x,placeholder:Object(k.__)("Paste Token Here","jetpack"),value:_,onChange:this.updateAPIKeyControl}),Object(j.createElement)(O.Button,{isLarge:!0,isSecondary:!0,disabled:x||!_||_.length<1,onClick:this.updateAPIKey},Object(k.__)("Set Token","jetpack"))))),T=Object(j.createElement)(j.Fragment,null,S,Object(j.createElement)("div",{className:n},Object(j.createElement)(U.a,{ref:this.mapRef,mapStyle:l,mapDetails:u,points:p,zoom:d,mapCenter:h,markerColor:m,onSetZoom:function(e){r({zoom:e})},admin:!0,apiKey:y,onSetPoints:function(e){return r({points:e})},onSetMapCenter:function(e){return r({mapCenter:e})},onMapLoaded:function(){return e.setState({addPointVisibility:!0})},onMarkerClick:function(){return e.setState({addPointVisibility:!1})},onError:this.onError},s&&v&&Object(j.createElement)(L,{onAddPoint:this.addPoint,onClose:function(){return e.setState({addPointVisibility:!1})},apiKey:y,onError:this.onError,tagName:"AddPoint"})))),N=Object(j.createElement)("div",null,Object(j.createElement)("img",{alt:Object(k.__)("Map Preview","jetpack"),src:$.a}));return Object(j.createElement)(j.Fragment,null,o,b&&N,!b&&0===C&&A,!b&&1===C&&P,!b&&2===C&&T)}}]),t}(j.Component),K=Object(O.withNotices)(W),Z=function(e){function t(){return o()(this,t),u()(this,d()(t).apply(this,arguments))}return b()(t,e),s()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.align,n=e.mapStyle,r=e.mapDetails,a=e.points,i=e.zoom,o=e.mapCenter,c=e.markerColor,s=a.map((function(e,t){var n=e.coordinates,r=n.longitude,a="https://www.google.com/maps/search/?api=1&query="+n.latitude+","+r;return Object(j.createElement)("li",{key:t},Object(j.createElement)("a",{href:a},e.title))})),l=t?"align".concat(t):null;return Object(j.createElement)("div",{className:l,"data-map-style":n,"data-map-details":r,"data-points":JSON.stringify(a),"data-zoom":i,"data-map-center":JSON.stringify(o),"data-marker-color":c},a.length>0&&Object(j.createElement)("ul",null,s))}}]),t}(j.Component),J=(n(132),n(160),a.a.name),Y={title:a.a.title,icon:a.a.icon,category:a.a.category,keywords:a.a.keywords,description:a.a.description,attributes:a.a.attributes,supports:a.a.supports,getEditWrapperProps:function(e){var t=e.align;if(-1!==a.a.validAlignments.indexOf(t))return{"data-align":t}},edit:K,save:Z,example:a.a.example};Object(r.a)(J,Y)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(15),i=n.n(a),o=n(0),c=n(1),s=n(16),l=n(2),u=n(6),p=(n(149),n(7)),d=n.n(p),h=n(11),m=n.n(h),f=n(8),b=n.n(f),g=n(9),v=n.n(g),j=n(4),y=n.n(j),_=n(10),k=n.n(_),O=n(12),w=n.n(O),E=n(43),C=n.n(E),x=n(14),S=n(41),A=n(20),F=n(32),P=["jetpack/markdown","core/paragraph","core/image","core/heading","core/gallery","core/list","core/quote","core/shortcode","core/audio","core/code","core/cover","core/file","core/html","core/separator","core/spacer","core/subhead","core/table","core/verse","core/video"],T=function(e){function t(){var e,n;d()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];(n=b()(this,(e=v()(t)).call.apply(e,[this].concat(a)))).onChangeSubject=n.onChangeSubject.bind(y()(n)),n.onBlurTo=n.onBlurTo.bind(y()(n)),n.onChangeTo=n.onChangeTo.bind(y()(n)),n.onChangeSubmit=n.onChangeSubmit.bind(y()(n)),n.onFormSettingsSet=n.onFormSettingsSet.bind(y()(n)),n.getToValidationError=n.getToValidationError.bind(y()(n)),n.renderToAndSubjectFields=n.renderToAndSubjectFields.bind(y()(n)),n.preventEnterSubmittion=n.preventEnterSubmittion.bind(y()(n)),n.hasEmailError=n.hasEmailError.bind(y()(n));var o=a[0].attributes.to?a[0].attributes.to:"",c=o.split(",").map(n.getToValidationError).filter(Boolean);return n.state={toError:c&&c.length?c:null},n}return k()(t,e),m()(t,[{key:"getEmailHelpMessage",value:function(){return Object(c.__)("You can enter multiple email addresses separated by commas.","jetpack")}},{key:"onChangeSubject",value:function(e){this.props.setAttributes({subject:e})}},{key:"getToValidationError",value:function(e){return 0!==(e=e.trim()).length&&(!C.a.validate(e)&&{email:e})}},{key:"onBlurTo",value:function(e){var t=e.target.value.split(",").map(this.getToValidationError).filter(Boolean);t&&t.length&&this.setState({toError:t})}},{key:"onChangeTo",value:function(e){if(0===e.trim().length)return this.setState({toError:null}),void this.props.setAttributes({to:e});this.setState({toError:null}),this.props.setAttributes({to:e})}},{key:"onChangeSubmit",value:function(e){this.props.setAttributes({submitButtonText:e})}},{key:"onFormSettingsSet",value:function(e){e.preventDefault(),this.state.toError||this.props.setAttributes({hasFormSettingsSet:"yes"})}},{key:"getfieldEmailError",value:function(e){if(e){if(1===e.length)return e[0]&&e[0].email?Object(c.sprintf)(Object(c.__)("%s is not a valid email address.","jetpack"),e[0].email):e[0];if(2===e.length)return Object(c.sprintf)(Object(c.__)("%s and %s are not a valid email address.","jetpack"),e[0].email,e[1].email);var t=e.map((function(e){return e.email}));return Object(c.sprintf)(Object(c.__)("%s are not a valid email address.","jetpack"),t.join(", "))}return null}},{key:"preventEnterSubmittion",value:function(e){"Enter"===e.key&&(e.preventDefault(),e.stopPropagation())}},{key:"renderToAndSubjectFields",value:function(){var e=this.state.toError,t=this.props,n=t.instanceId,r=t.attributes,a=r.subject,i=r.to;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(l.TextControl,{"aria-describedby":"contact-form-".concat(n,"-email-").concat(this.hasEmailError()?"error":"help"),label:Object(c.__)("Email address","jetpack"),placeholder:Object(c.__)("name@example.com","jetpack"),onKeyDown:this.preventEnterSubmittion,value:i,onBlur:this.onBlurTo,onChange:this.onChangeTo}),Object(o.createElement)(S.a,{isError:!0,id:"contact-form-".concat(n,"-email-error")},this.getfieldEmailError(e)),Object(o.createElement)(S.a,{id:"contact-form-".concat(n,"-email-help")},this.getEmailHelpMessage()),Object(o.createElement)(l.TextControl,{label:Object(c.__)("Email subject line","jetpack"),value:a,placeholder:Object(c.__)("Let's work together","jetpack"),onChange:this.onChangeSubject}))}},{key:"renderConfirmationMessageFields",value:function(){var e=this,t=this.props.instanceId,n=this.props.attributes,r=n.customThankyou,a=n.customThankyouMessage,i=n.customThankyouRedirect;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(l.SelectControl,{label:Object(c.__)("On Submission","jetpack"),value:r,options:[{label:Object(c.__)("Show a summary of submitted fields","jetpack"),value:""},{label:Object(c.__)("Show a custom text message","jetpack"),value:"message"},{label:Object(c.__)("Redirect to another webpage","jetpack"),value:"redirect"}],onChange:function(t){return e.props.setAttributes({customThankyou:t})}}),"message"===r&&Object(o.createElement)(l.TextareaControl,{label:Object(c.__)("Message Text","jetpack"),value:a,placeholder:Object(c.__)("Thank you for your submission!","jetpack"),onChange:function(t){return e.props.setAttributes({customThankyouMessage:t})}}),"redirect"===r&&Object(o.createElement)(l.BaseControl,{label:Object(c.__)("Redirect Address","jetpack"),id:"contact-form-".concat(t,"-thankyou-url")},Object(o.createElement)(u.URLInput,{id:"contact-form-".concat(t,"-thankyou-url"),value:i,className:"jetpack-contact-form__thankyou-redirect-url",onChange:function(t){return e.props.setAttributes({customThankyouRedirect:t})}})))}},{key:"hasEmailError",value:function(){var e=this.state.toError;return e&&e.length>0}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.attributes.hasFormSettingsSet,r=w()(t,"jetpack-contact-form",{"has-intro":!n});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(u.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(c.__)("Email Feedback Settings","jetpack")},this.renderToAndSubjectFields()),Object(o.createElement)(l.PanelBody,{title:Object(c.__)("Confirmation Message","jetpack")},this.renderConfirmationMessageFields())),Object(o.createElement)("div",{className:r},!n&&Object(o.createElement)(l.Placeholder,{label:Object(c.__)("Form","jetpack"),icon:Object(A.a)(Object(o.createElement)(l.Path,{d:"M13 7.5h5v2h-5zm0 7h5v2h-5zM19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM11 6H6v5h5V6zm-1 4H7V7h3v3zm1 3H6v5h5v-5zm-1 4H7v-3h3v3z"})),instructions:Object(c.__)("You’ll receive an email notification each time someone fills out the form. Where should it go, and what should the subject line be?","jetpack")},Object(o.createElement)("form",{onSubmit:this.onFormSettingsSet},this.renderToAndSubjectFields(),Object(o.createElement)("div",{class:"components-placeholder__instructions"},Object(c.__)("(If you leave these blank, notifications will go to the author with the post or page title as the subject line.)","jetpack")),Object(o.createElement)("div",{className:"jetpack-contact-form__create"},Object(o.createElement)(l.Button,{isDefault:!0,type:"submit",disabled:this.hasEmailError()},Object(c.__)("Add form","jetpack"))))),n&&Object(o.createElement)(u.InnerBlocks,{allowedBlocks:P,templateLock:!1,template:[["jetpack/field-name",{required:!0}],["jetpack/field-email",{required:!0}],["jetpack/field-url",{}],["jetpack/field-textarea",{}]]}),n&&Object(o.createElement)(F.a,this.props)))}}]),t}(o.Component),N=Object(x.compose)([x.withInstanceId])(T),M=function(e){var t=e.setAttributes,n=e.label,r=e.resetFocus,a=e.isSelected,i=e.required;return Object(o.createElement)("div",{className:"jetpack-field-label"},Object(o.createElement)(u.PlainText,{value:n,className:"jetpack-field-label__input",onChange:function(e){r&&r(),t({label:e})},placeholder:Object(c.__)("Write label…","jetpack")}),a&&Object(o.createElement)(l.ToggleControl,{label:Object(c.__)("Required","jetpack"),className:"jetpack-field-label__required",checked:i,onChange:function(e){return t({required:e})}}),!a&&i&&Object(o.createElement)("span",{className:"required"},Object(c.__)("(required)","jetpack")))};var R=function(e){var t=e.isSelected,n=e.type,r=e.required,a=e.label,i=e.setAttributes,s=e.defaultValue,p=e.placeholder,d=e.id;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:w()("jetpack-field",{"is-selected":t})},Object(o.createElement)(l.TextControl,{type:n,label:Object(o.createElement)(M,{required:r,label:a,setAttributes:i,isSelected:t}),placeholder:p,value:p,onChange:function(e){return i({placeholder:e})},title:Object(c.__)("Set the placeholder text","jetpack")})),Object(o.createElement)(u.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(c.__)("Field Settings","jetpack")},Object(o.createElement)(l.TextControl,{label:Object(c.__)("Default Value","jetpack"),value:s,onChange:function(e){return i({defaultValue:e})}}),Object(o.createElement)(l.TextControl,{label:Object(c.__)("ID","jetpack"),value:d,onChange:function(e){return i({id:e})}}))))};var D=function(e){var t=e.required,n=e.label,r=e.setAttributes,a=e.isSelected,i=e.defaultValue,s=e.placeholder,p=e.id;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"jetpack-field"},Object(o.createElement)(l.TextareaControl,{label:Object(o.createElement)(M,{required:t,label:n,setAttributes:r,isSelected:a}),placeholder:s,value:s,onChange:function(e){return r({placeholder:e})},title:Object(c.__)("Set the placeholder text","jetpack")})),Object(o.createElement)(u.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(c.__)("Field Settings","jetpack")},Object(o.createElement)(l.TextControl,{label:Object(c.__)("Default Value","jetpack"),value:i,onChange:function(e){return r({defaultValue:e})}}),Object(o.createElement)(l.TextControl,{label:Object(c.__)("ID","jetpack"),value:p,onChange:function(e){return r({id:e})}}))))},z=Object(x.withInstanceId)((function(e){var t=e.instanceId,n=e.required,r=e.label,a=e.setAttributes,i=e.isSelected,s=e.defaultValue,p=e.id;return Object(o.createElement)(l.BaseControl,{id:"jetpack-field-checkbox-".concat(t),className:"jetpack-field jetpack-field-checkbox",label:Object(o.createElement)(o.Fragment,null,Object(o.createElement)("input",{className:"jetpack-field-checkbox__checkbox",type:"checkbox",disabled:!0,checked:s}),Object(o.createElement)(M,{required:n,label:r,setAttributes:a,isSelected:i}),Object(o.createElement)(u.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(c.__)("Field Settings","jetpack")},Object(o.createElement)(l.ToggleControl,{label:Object(c.__)("Default Checked State","jetpack"),checked:s,onChange:function(e){return a({defaultValue:e})}}),Object(o.createElement)(l.TextControl,{label:Object(c.__)("ID","jetpack"),value:p,onChange:function(e){return a({id:e})}}))))})})),I=function(e){function t(){var e,n;d()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return(n=b()(this,(e=v()(t)).call.apply(e,[this].concat(a)))).onChangeOption=n.onChangeOption.bind(y()(n)),n.onKeyPress=n.onKeyPress.bind(y()(n)),n.onDeleteOption=n.onDeleteOption.bind(y()(n)),n.textInput=Object(o.createRef)(),n}return k()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.props.isInFocus&&this.textInput.current.focus()}},{key:"componentDidUpdate",value:function(){this.props.isInFocus&&this.textInput.current.focus()}},{key:"onChangeOption",value:function(e){this.props.onChangeOption(this.props.index,e.target.value)}},{key:"onKeyPress",value:function(e){return"Enter"===e.key?(this.props.onAddOption(this.props.index),void e.preventDefault()):"Backspace"===e.key&&""===e.target.value?(this.props.onChangeOption(this.props.index),void e.preventDefault()):void 0}},{key:"onDeleteOption",value:function(){this.props.onChangeOption(this.props.index)}},{key:"render",value:function(){var e=this.props,t=e.isSelected,n=e.option,r=e.type;return Object(o.createElement)("li",{className:"jetpack-option"},r&&"select"!==r&&Object(o.createElement)("input",{className:"jetpack-option__type",type:r,disabled:!0}),Object(o.createElement)("input",{type:"text",className:"jetpack-option__input",value:n,placeholder:Object(c.__)("Write option…","jetpack"),onChange:this.onChangeOption,onKeyDown:this.onKeyPress,ref:this.textInput}),t&&Object(o.createElement)(l.IconButton,{className:"jetpack-option__remove",icon:"trash",label:Object(c.__)("Remove option","jetpack"),onClick:this.onDeleteOption}))}}]),t}(o.Component),L=function(e){function t(){var e,n;d()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return(n=b()(this,(e=v()(t)).call.apply(e,[this].concat(a)))).onChangeOption=n.onChangeOption.bind(y()(n)),n.addNewOption=n.addNewOption.bind(y()(n)),n.state={inFocus:null},n}return k()(t,e),m()(t,[{key:"onChangeOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.props.options.slice(0);null===t?(n.splice(e,1),e>0&&this.setState({inFocus:e-1})):(n.splice(e,1,t),this.setState({inFocus:e})),this.props.setAttributes({options:n})}},{key:"addNewOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.props.options.slice(0),n=0;"object"==typeof e?(t.push(""),n=t.length-1):(t.splice(e+1,0,""),n=e+1),this.setState({inFocus:n}),this.props.setAttributes({options:t})}},{key:"render",value:function(){var e=this,t=this.props,n=t.type,r=t.instanceId,a=t.required,i=t.label,s=t.setAttributes,p=t.isSelected,d=t.id,h=this.props.options,m=this.state.inFocus;return h.length||(h=[""],m=0),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(l.BaseControl,{id:"jetpack-field-multiple-".concat(r),className:"jetpack-field jetpack-field-multiple",label:Object(o.createElement)(M,{required:a,label:i,setAttributes:s,isSelected:p,resetFocus:function(){return e.setState({inFocus:null})}})},Object(o.createElement)("ol",{className:"jetpack-field-multiple__list",id:"jetpack-field-multiple-".concat(r)},h.map((function(t,r){return Object(o.createElement)(I,{type:n,key:r,option:t,index:r,onChangeOption:e.onChangeOption,onAddOption:e.addNewOption,isInFocus:r===m&&p,isSelected:p})}))),p&&Object(o.createElement)(l.IconButton,{className:"jetpack-field-multiple__add-option",icon:"insert",label:Object(c.__)("Insert option","jetpack"),onClick:this.addNewOption},Object(c.__)("Add option","jetpack"))),Object(o.createElement)(u.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(c.__)("Field Settings","jetpack")},Object(o.createElement)(l.TextControl,{label:Object(c.__)("ID","jetpack"),value:d,onChange:function(e){return s({id:e})}}))))}}]),t}(o.Component),B=Object(x.withInstanceId)(L),q={title:Object(c.__)("Form","jetpack"),description:Object(c.__)("A simple way to get feedback from folks visiting your site.","jetpack"),icon:Object(A.a)(Object(o.createElement)(l.Path,{d:"M13 7.5h5v2h-5zm0 7h5v2h-5zM19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM11 6H6v5h5V6zm-1 4H7V7h3v3zm1 3H6v5h5v-5zm-1 4H7v-3h3v3z"})),keywords:[Object(c._x)("email","block search term","jetpack"),Object(c._x)("feedback","block search term","jetpack"),Object(c._x)("contact form","block search term","jetpack")],category:"jetpack",supports:{html:!1},attributes:{subject:{type:"string",default:""},to:{type:"string",default:""},submitButtonText:{type:"string",default:Object(c.__)("Submit","jetpack")},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},submitButtonClasses:{type:"string"},hasFormSettingsSet:{type:"string",default:null},customThankyou:{type:"string",default:""},customThankyouMessage:{type:"string",default:""},customThankyouRedirect:{type:"string",default:""},has_form_settings_set:{type:"string",default:null},submit_button_text:{type:"string",default:Object(c.__)("Submit","jetpack")}},edit:N,save:function(){return Object(o.createElement)(u.InnerBlocks.Content,null)},example:{attributes:{hasFormSettingsSet:!0,submitButtonText:Object(c.__)("Submit","jetpack")},innerBlocks:[{name:"jetpack/field-name",attributes:{label:Object(c.__)("Name","jetpack"),required:!0}},{name:"jetpack/field-email",attributes:{label:Object(c.__)("Email","jetpack"),required:!0}},{name:"jetpack/field-url",attributes:{label:Object(c.__)("Website","jetpack")}},{name:"jetpack/field-textarea",attributes:{label:Object(c.__)("Message","jetpack")}}]},deprecated:[{attributes:{subject:{type:"string",default:""},to:{type:"string",default:""},submit_button_text:{type:"string",default:Object(c.__)("Submit","jetpack")},has_form_settings_set:{type:"string",default:null}},migrate:function(e){return{submitButtonText:e.submit_button_text,hasFormSettingsSet:e.has_form_settings_set,to:e.to,subject:e.subject}},isEligible:function(e){return!!(e.has_form_settings_set||e.submit_button_text&&"Submit"!==e.submit_button_text)},save:function(){return Object(o.createElement)(u.InnerBlocks.Content,null)}}]},U={category:"jetpack",parent:["jetpack/contact-form"],supports:{reusable:!1,html:!1},attributes:{label:{type:"string",default:null},required:{type:"boolean",default:!1},options:{type:"array",default:[]},defaultValue:{type:"string",default:""},placeholder:{type:"string",default:""},id:{type:"string",default:""}},transforms:{to:[{type:"block",blocks:["jetpack/field-text"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-text",e)}},{type:"block",blocks:["jetpack/field-name"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-name",e)}},{type:"block",blocks:["jetpack/field-email"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-email",e)}},{type:"block",blocks:["jetpack/field-url"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-url",e)}},{type:"block",blocks:["jetpack/field-date"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-date",e)}},{type:"block",blocks:["jetpack/field-telephone"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-telephone",e)}},{type:"block",blocks:["jetpack/field-textarea"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-textarea",e)}},{type:"block",blocks:["jetpack/field-checkbox-multiple"],isMatch:function(e){return 1<=e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-checkbox-multiple",e)}},{type:"block",blocks:["jetpack/field-radio"],isMatch:function(e){return 1<=e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-radio",e)}},{type:"block",blocks:["jetpack/field-select"],isMatch:function(e){return 1<=e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-select",e)}}]},save:function(){return null}},V=function(e){var t=e.attributes,n=e.name;return null===t.label?Object(s.getBlockType)(n).title:t.label},H=function(e){return function(t){return Object(o.createElement)(R,{type:e,label:V(t),required:t.attributes.required,setAttributes:t.setAttributes,isSelected:t.isSelected,defaultValue:t.attributes.defaultValue,placeholder:t.attributes.placeholder,id:t.attributes.id})}},G=function(e){return function(t){return Object(o.createElement)(B,{label:V(t),required:t.attributes.required,options:t.attributes.options,setAttributes:t.setAttributes,type:e,isSelected:t.isSelected,id:t.attributes.id})}},$=[{name:"field-text",settings:i()({},U,{title:Object(c.__)("Text","jetpack"),description:Object(c.__)("When you need just a small amount of text, add a text input.","jetpack"),icon:Object(A.a)(Object(o.createElement)(l.Path,{d:"M4 9h16v2H4V9zm0 4h10v2H4v-2z"})),edit:H("text")})},{name:"field-name",settings:i()({},U,{title:Object(c.__)("Name","jetpack"),description:Object(c.__)("Introductions are important. Add an input for folks to add their name.","jetpack"),icon:Object(A.a)(Object(o.createElement)(l.Path,{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"})),edit:H("text")})},{name:"field-email",settings:i()({},U,{title:Object(c.__)("Email","jetpack"),keywords:[Object(c.__)("e-mail","jetpack"),Object(c.__)("mail","jetpack"),"email"],description:Object(c.__)("Want to reply to folks? Add an email address input.","jetpack"),icon:Object(A.a)(Object(o.createElement)(l.Path,{d:"M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"})),edit:H("email")})},{name:"field-url",settings:i()({},U,{title:Object(c.__)("Website","jetpack"),keywords:["url",Object(c.__)("internet page","jetpack"),"link"],description:Object(c.__)("Add an address input for a website.","jetpack"),icon:Object(A.a)(Object(o.createElement)(l.Path,{d:"M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"})),edit:H("url")})},{name:"field-date",settings:i()({},U,{title:Object(c.__)("Date Picker","jetpack"),keywords:[Object(c.__)("Calendar","jetpack"),Object(c.__)("day month year","block search term","jetpack")],description:Object(c.__)("The best way to set a date. Add a date picker.","jetpack"),icon:Object(A.a)(Object(o.createElement)(l.Path,{d:"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V9h14v10zm0-12H5V5h14v2zM7 11h5v5H7z"})),edit:H("text")})},{name:"field-telephone",settings:i()({},U,{title:Object(c.__)("Telephone","jetpack"),keywords:[Object(c.__)("Phone","jetpack"),Object(c.__)("Cellular phone","jetpack"),Object(c.__)("Mobile","jetpack")],description:Object(c.__)("Add a phone number input.","jetpack"),icon:Object(A.a)(Object(o.createElement)(l.Path,{d:"M6.54 5c.06.89.21 1.76.45 2.59l-1.2 1.2c-.41-1.2-.67-2.47-.76-3.79h1.51m9.86 12.02c.85.24 1.72.39 2.6.45v1.49c-1.32-.09-2.59-.35-3.8-.75l1.2-1.19M7.5 3H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.49c0-.55-.45-1-1-1-1.24 0-2.45-.2-3.57-.57-.1-.04-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.45-5.15-3.76-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1z"})),edit:H("tel")})},{name:"field-textarea",settings:i()({},U,{title:Object(c.__)("Message","jetpack"),keywords:[Object(c.__)("Textarea","jetpack"),"textarea",Object(c.__)("Multiline text","jetpack")],description:Object(c.__)("Let folks speak their mind. This text box is great for longer responses.","jetpack"),icon:Object(A.a)(Object(o.createElement)(l.Path,{d:"M21 11.01L3 11v2h18zM3 16h12v2H3zM21 6H3v2.01L21 8z"})),edit:function(e){return Object(o.createElement)(D,{label:V(e),required:e.attributes.required,setAttributes:e.setAttributes,isSelected:e.isSelected,defaultValue:e.attributes.defaultValue,placeholder:e.attributes.placeholder,id:e.attributes.id})}})},{name:"field-checkbox",settings:i()({},U,{title:Object(c.__)("Checkbox","jetpack"),keywords:[Object(c.__)("Confirm","jetpack"),Object(c.__)("Accept","jetpack")],description:Object(c.__)("Add a single checkbox.","jetpack"),icon:Object(A.a)(Object(o.createElement)(l.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM17.99 9l-1.41-1.42-6.59 6.59-2.58-2.57-1.42 1.41 4 3.99z"})),edit:function(e){return Object(o.createElement)(z,{label:e.attributes.label,required:e.attributes.required,setAttributes:e.setAttributes,isSelected:e.isSelected,defaultValue:e.attributes.defaultValue,id:e.attributes.id})},attributes:i()({},U.attributes,{label:{type:"string",default:""}})})},{name:"field-checkbox-multiple",settings:i()({},U,{title:Object(c.__)("Checkbox Group","jetpack"),keywords:[Object(c.__)("Choose Multiple","jetpack"),Object(c.__)("Option","jetpack")],description:Object(c.__)("People love options. Add several checkbox items.","jetpack"),icon:Object(A.a)(Object(o.createElement)(l.Path,{d:"M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"})),edit:G("checkbox"),attributes:i()({},U.attributes,{label:{type:"string",default:"Choose several"}})})},{name:"field-radio",settings:i()({},U,{title:Object(c.__)("Radio","jetpack"),keywords:[Object(c.__)("Choose","jetpack"),Object(c.__)("Select","jetpack"),Object(c.__)("Option","jetpack")],description:Object(c.__)("Inspired by radios, only one radio item can be selected at a time. Add several radio button items.","jetpack"),icon:Object(A.a)(Object(o.createElement)(o.Fragment,null,Object(o.createElement)(l.Path,{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),Object(o.createElement)(l.Circle,{cx:"12",cy:"12",r:"5"}))),edit:G("radio"),attributes:i()({},U.attributes,{label:{type:"string",default:"Choose one"}})})},{name:"field-select",settings:i()({},U,{title:Object(c.__)("Select","jetpack"),keywords:[Object(c.__)("Choose","jetpack"),Object(c.__)("Dropdown","jetpack"),Object(c.__)("Option","jetpack")],description:Object(c.__)("Compact, but powerful. Add a select box with several items.","jetpack"),icon:Object(A.a)(Object(o.createElement)(l.Path,{d:"M3 17h18v2H3zm16-5v1H5v-1h14m2-2H3v5h18v-5zM3 6h18v2H3z"})),edit:G("select"),attributes:i()({},U.attributes,{label:{type:"string",default:"Select one"}})})}];Object(r.a)("contact-form",q,$)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(2),c=["USD","EUR","AUD","BRL","CAD","CZK","DKK","HKD","HUF","ILS","JPY","MYR","MXN","TWD","NZD","NOK","PHP","PLN","GBP","RUB","SGD","SEK","CHF","THB"],s=n(24),l=n(7),u=n.n(l),p=n(11),d=n.n(p),h=n(8),m=n.n(h),f=n(9),b=n.n(f),g=n(4),v=n.n(g),j=n(10),y=n.n(j),_=n(3),k=n.n(_),O=n(12),w=n.n(O),E=n(43),C=n.n(E),x=n(14),S=n(13),A=n(5),F=n(45),P=n(41),T=(n(230),n(106)),N=n.n(T),M=n(107),R=n.n(M),D=function(e){var t=e.title,n=void 0===t?"":t,r=e.content,o=void 0===r?"":r,c=e.formattedPrice,s=void 0===c?"":c,l=e.multiple,u=void 0!==l&&l,p=e.featuredMediaUrl,d=void 0===p?null:p,h=e.featuredMediaTitle,m=void 0===h?null:h;return Object(a.createElement)("div",{className:"jetpack-simple-payments-wrapper"},Object(a.createElement)("div",{className:"jetpack-simple-payments-product"},d&&Object(a.createElement)("div",{className:"jetpack-simple-payments-product-image"},Object(a.createElement)("figure",{className:"jetpack-simple-payments-image"},Object(a.createElement)("img",{src:d,alt:m}))),Object(a.createElement)("div",{className:"jetpack-simple-payments-details"},n&&Object(a.createElement)("div",{className:"jetpack-simple-payments-title"},Object(a.createElement)("p",null,n)),o&&Object(a.createElement)("div",{className:"jetpack-simple-payments-description"},Object(a.createElement)("p",null,o)),s&&Object(a.createElement)("div",{className:"jetpack-simple-payments-price"},Object(a.createElement)("p",null,s)),Object(a.createElement)("div",{className:"jetpack-simple-payments-purchase-box"},u&&Object(a.createElement)("div",{className:"jetpack-simple-payments-items"},Object(a.createElement)("input",{className:"jetpack-simple-payments-items-number",readOnly:!0,type:"number",value:"1"})),Object(a.createElement)("div",{className:"jetpack-simple-payments-button"},Object(a.createElement)("img",{alt:Object(i.__)("Pay with PayPal","jetpack"),src:N.a,srcSet:"".concat(R.a," 2x")}))))))},z=n(6),I=n(48),L=function(e){return function(t){return e({featuredMediaId:Object(A.get)(t,"id",0),featuredMediaUrl:Object(A.get)(t,"url",null),featuredMediaTitle:Object(A.get)(t,"title",null)})}},B=function(e){var t=e.featuredMediaId,n=e.featuredMediaUrl,r=e.featuredMediaTitle,c=e.setAttributes;return t?Object(a.createElement)("div",null,Object(a.createElement)(a.Fragment,null,Object(a.createElement)(z.BlockControls,null,Object(a.createElement)(o.Toolbar,null,Object(a.createElement)(z.MediaUpload,{onSelect:L(c),allowedTypes:["image"],value:t,render:function(e){var t=e.open;return Object(a.createElement)(I.a,{label:Object(i.__)("Edit Image","jetpack"),onClick:t})}}),Object(a.createElement)(o.ToolbarButton,{icon:"trash",title:Object(i.__)("Remove Image","jetpack"),onClick:function(){return c({featuredMediaId:null,featuredMediaUrl:null,featuredMediaTitle:null})}}))),Object(a.createElement)("figure",null,Object(a.createElement)("img",{src:n,alt:r})))):Object(a.createElement)(z.MediaPlaceholder,{icon:"format-image",labels:{title:Object(i.__)("Product Image","jetpack")},accept:"image/*",allowedTypes:["image"],onSelect:L(c)})},q=function(e){var t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},U=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Object(F.a)(t),a=r.precision,i=r.symbol,o=e.toFixed(a);return n?"".concat(o," ").concat(Object(A.trimEnd)(i,".")):o},V=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=m()(this,(e=b()(t)).call.apply(e,[this].concat(a))),k()(v()(n),"state",{fieldEmailError:null,fieldPriceError:null,fieldTitleError:null,isSavingProduct:!1}),k()(v()(n),"shouldInjectPaymentAttributes",!!n.props.attributes.productId),k()(v()(n),"validateAttributes",(function(){var e=n.validatePrice(),t=n.validateTitle(),r=n.validateEmail(),a=n.validateCurrency();return e&&t&&r&&a})),k()(v()(n),"validateCurrency",(function(){var e=n.props.attributes.currency;return c.includes(e)})),k()(v()(n),"validatePrice",(function(){var e=n.props.attributes,t=e.currency,r=e.price,a=Object(F.a)(t).precision;return r&&0!==parseFloat(r)?Number.isNaN(parseFloat(r))?(n.setState({fieldPriceError:Object(i.__)("Invalid price","jetpack")}),!1):parseFloat(r)<0?(n.setState({fieldPriceError:Object(i.__)("Your price is negative — enter a positive number so people can pay the right amount.","jetpack")}),!1):q(r)>a?0===a?(n.setState({fieldPriceError:Object(i.__)("We know every penny counts, but prices in this currency can’t contain decimal values.","jetpack")}),!1):(n.setState({fieldPriceError:Object(i.sprintf)(Object(i._n)("The price cannot have more than %d decimal place.","The price cannot have more than %d decimal places.",a,"jetpack"),a)}),!1):(n.state.fieldPriceError&&n.setState({fieldPriceError:null}),!0):(n.setState({fieldPriceError:Object(i.__)("If you’re selling something, you need a price tag. Add yours here.","jetpack")}),!1)})),k()(v()(n),"validateEmail",(function(){var e=n.props.attributes.email;return e?C.a.validate(e)?(n.state.fieldEmailError&&n.setState({fieldEmailError:null}),!0):(n.setState({fieldEmailError:Object(i.sprintf)(Object(i.__)("%s is not a valid email address.","jetpack"),e)}),!1):(n.setState({fieldEmailError:Object(i.__)("We want to make sure payments reach you, so please add an email address.","jetpack")}),!1)})),k()(v()(n),"validateTitle",(function(){return n.props.attributes.title?(n.state.fieldTitleError&&n.setState({fieldTitleError:null}),!0):(n.setState({fieldTitleError:Object(i.__)("Please add a brief title so that people know what they’re paying for.","jetpack")}),!1)})),k()(v()(n),"handleEmailChange",(function(e){n.props.setAttributes({email:e}),n.setState({fieldEmailError:null})})),k()(v()(n),"handleFeaturedMediaSelect",(function(e){n.props.setAttributes({featuredMediaId:Object(A.get)(e,"id",0)})})),k()(v()(n),"handleContentChange",(function(e){n.props.setAttributes({content:e})})),k()(v()(n),"handlePriceChange",(function(e){e=parseFloat(e),isNaN(e)?n.props.setAttributes({price:void 0}):n.props.setAttributes({price:e}),n.setState({fieldPriceError:null})})),k()(v()(n),"handleCurrencyChange",(function(e){n.props.setAttributes({currency:e})})),k()(v()(n),"handleMultipleChange",(function(e){n.props.setAttributes({multiple:!!e})})),k()(v()(n),"handleTitleChange",(function(e){n.props.setAttributes({title:e}),n.setState({fieldTitleError:null})})),k()(v()(n),"getCurrencyList",c.map((function(e){var t=Object(F.a)(e).symbol;return{value:e,label:t===e?e:"".concat(e," ").concat(Object(A.trimEnd)(t,"."))}}))),n}return y()(t,e),d()(t,[{key:"componentDidMount",value:function(){this.injectPaymentAttributes();var e=this.props,t=e.attributes,n=e.hasPublishAction;!t.productId&&n&&this.saveProduct()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.hasPublishAction,r=t.isSelected;Object(A.isEqual)(e.simplePayment,this.props.simplePayment)||this.injectPaymentAttributes(),!e.isSaving&&this.props.isSaving&&n&&this.validateAttributes()?this.saveProduct():e.isSelected&&!r&&this.validateAttributes()}},{key:"injectPaymentAttributes",value:function(){var e=this.props.simplePayment;if(this.shouldInjectPaymentAttributes&&!Object(A.isEmpty)(e)){var t=this.props,n=t.attributes,r=t.setAttributes,a=n.content,i=n.currency,o=n.email,c=n.featuredMediaId,s=n.multiple,l=n.price,u=n.title;r({content:Object(A.get)(e,["content","raw"],a),currency:Object(A.get)(e,["meta","spay_currency"],i),email:Object(A.get)(e,["meta","spay_email"],o),featuredMediaId:Object(A.get)(e,["featured_media"],c),multiple:Boolean(Object(A.get)(e,["meta","spay_multiple"],Boolean(s))),price:Object(A.get)(e,["meta","spay_price"],l||void 0),title:Object(A.get)(e,["title","raw"],u)}),this.shouldInjectPaymentAttributes=!this.shouldInjectPaymentAttributes}}},{key:"toApi",value:function(){var e=this.props.attributes,t=e.content,n=e.currency,r=e.email,a=e.featuredMediaId,i=e.multiple,o=e.price,c=e.productId;return{id:c,content:t,featured_media:a,meta:{spay_currency:n,spay_email:r,spay_multiple:i,spay_price:o},status:c?"publish":"draft",title:e.title}}},{key:"saveProduct",value:function(){var e=this;if(!this.state.isSavingProduct){var t=this.props,n=t.attributes,r=t.setAttributes,a=n.email,o=Object(S.dispatch)("core").saveEntityRecord;this.setState({isSavingProduct:!0},(function(){o("postType","jp_pay_product",e.toApi()).then((function(e){return e&&r({productId:e.id}),e})).catch((function(t){if(t&&t.data){var n=t.data.key;e.setState({fieldEmailError:"spay_email"===n?Object(i.sprintf)(Object(i.__)("%s is not a valid email address.","jetpack"),a):null,fieldPriceError:"spay_price"===n?Object(i.__)("Invalid price.","jetpack"):null})}})).finally((function(){e.setState({isSavingProduct:!1})}))}))}}},{key:"render",value:function(){var e=this.state,t=e.fieldEmailError,n=e.fieldPriceError,r=e.fieldTitleError,c=this.props,s=c.attributes,l=c.featuredMedia,u=c.instanceId,p=c.isSelected,d=c.setAttributes,h=c.simplePayment,m=s.content,f=s.currency,b=s.email,g=s.featuredMediaId,v=s.featuredMediaUrl,j=s.featuredMediaTitle,y=s.multiple,_=s.price,k=s.productId,O=s.title,E=v||l&&l.source_url,C=j||l&&l.alt_text,x=k&&Object(A.isEmpty)(h);if(!p&&x)return Object(a.createElement)("div",{className:"simple-payments__loading"},Object(a.createElement)(D,{"aria-busy":"true",content:"█████",formattedPrice:"█████",title:"█████"}));if(!p&&b&&_&&O&&!t&&!n&&!r)return Object(a.createElement)(D,{"aria-busy":"false",content:m,featuredMediaUrl:E,featuredMediaTitle:C,formattedPrice:U(_,f),multiple:y,title:O});var S=x?o.Disabled:"div";return Object(a.createElement)(S,{className:"wp-block-jetpack-simple-payments"},Object(a.createElement)(B,{featuredMediaId:g,featuredMediaUrl:E,featuredMediaTitle:C,setAttributes:d}),Object(a.createElement)("div",null,Object(a.createElement)(o.TextControl,{"aria-describedby":"".concat(u,"-title-error"),className:w()("simple-payments__field","simple-payments__field-title",{"simple-payments__field-has-error":r}),label:Object(i.__)("Item name","jetpack"),onChange:this.handleTitleChange,placeholder:Object(i.__)("Item name","jetpack"),required:!0,type:"text",value:O}),Object(a.createElement)(P.a,{id:"".concat(u,"-title-error"),isError:!0},r),Object(a.createElement)(o.TextareaControl,{className:"simple-payments__field simple-payments__field-content",label:Object(i.__)("Describe your item in a few words","jetpack"),onChange:this.handleContentChange,placeholder:Object(i.__)("Describe your item in a few words","jetpack"),value:m}),Object(a.createElement)("div",{className:"simple-payments__price-container"},Object(a.createElement)(o.SelectControl,{className:"simple-payments__field simple-payments__field-currency",label:Object(i.__)("Currency","jetpack"),onChange:this.handleCurrencyChange,options:this.getCurrencyList,value:f}),Object(a.createElement)(o.TextControl,{"aria-describedby":"".concat(u,"-price-error"),className:w()("simple-payments__field","simple-payments__field-price",{"simple-payments__field-has-error":n}),label:Object(i.__)("Price","jetpack"),onChange:this.handlePriceChange,placeholder:U(0,f,!1),required:!0,step:"1",type:"number",value:_||""}),Object(a.createElement)(P.a,{id:"".concat(u,"-price-error"),isError:!0},n)),Object(a.createElement)("div",{className:"simple-payments__field-multiple"},Object(a.createElement)(o.ToggleControl,{checked:Boolean(y),label:Object(i.__)("Allow people to buy more than one item at a time","jetpack"),onChange:this.handleMultipleChange})),Object(a.createElement)(o.TextControl,{"aria-describedby":"".concat(u,"-email-").concat(t?"error":"help"),className:w()("simple-payments__field","simple-payments__field-email",{"simple-payments__field-has-error":t}),label:Object(i.__)("Email","jetpack"),onChange:this.handleEmailChange,placeholder:Object(i.__)("Email","jetpack"),required:!0,type:"email",value:b}),Object(a.createElement)(P.a,{id:"".concat(u,"-email-error"),isError:!0},t),Object(a.createElement)(P.a,{id:"".concat(u,"-email-help")},Object(i.__)("Enter the email address associated with your PayPal account. Don’t have an account?","jetpack")+" ",Object(a.createElement)(o.ExternalLink,{href:"https://www.paypal.com/"},Object(i.__)("Create one on PayPal","jetpack")))))}}]),t}(a.Component),H=Object(S.withSelect)((function(e,t){var n=e("core"),r=n.getEntityRecord,a=n.getMedia,i=e("core/editor"),o=i.isSavingPost,c=i.getCurrentPost,s=t.attributes,l=s.productId,u=s.featuredMediaId,p=l?Object(A.pick)(r("postType","jp_pay_product",l),[["content"],["meta","spay_currency"],["meta","spay_email"],["meta","spay_multiple"],["meta","spay_price"],["title","raw"],["featured_media"]]):void 0;return{hasPublishAction:!!Object(A.get)(c(),["_links","wp:action-publish"]),isSaving:!!o(),simplePayment:p,featuredMedia:u?a(u):null}})),G=Object(x.compose)(H,x.withInstanceId)(V);var $=n(108),W=n.n($),K=(n(231),Object(s.b)()||Object(s.a)()?"https://support.wordpress.com/simple-payments/":"https://jetpack.com/support/jetpack-blocks/simple-payments-block/"),Z={title:Object(i.__)("Simple Payments button","jetpack"),description:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("p",null,Object(i.__)("Lets you add credit and debit card payment buttons with minimal setup.","jetpack")),Object(a.createElement)("p",null,Object(i.__)("Good for collecting donations or payments for products and services.","jetpack")),Object(a.createElement)(o.ExternalLink,{href:K},Object(i.__)("Support reference","jetpack"))),icon:Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(o.Path,{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"})),category:"jetpack",keywords:[Object(i._x)("shop","block search term","jetpack"),Object(i._x)("sell","block search term","jetpack"),"PayPal"],attributes:{currency:{type:"string",default:"USD"},content:{type:"string",default:""},email:{type:"string",default:""},featuredMediaId:{type:"number",default:0},featuredMediaUrl:{type:"string",default:null},featuredMediaTitle:{type:"string",default:null},multiple:{type:"boolean",default:!1},price:{type:"number"},productId:{type:"number"},title:{type:"string",default:""}},transforms:{from:[{type:"shortcode",tag:"simple-payment",attributes:{productId:{type:"number",shortcode:function(e){var t=e.named.id;if(t){var n=parseInt(t,10);return n||void 0}}}}}]},edit:G,save:function(e){var t=e.attributes.productId;return t?Object(a.createElement)(a.RawHTML,null,'[simple-payment id="'.concat(t,'"]')):null},example:{attributes:{price:25,title:Object(i.__)("Jetpack t-shirt","jetpack"),content:Object(i.__)("Take flight in ultimate comfort with ths stylish t-shirt featuring the Jetpack logo.","jetpack"),email:"jetpack@jetpack.com",featuredMediaUrl:W.a}},supports:{className:!1,customClassName:!1,html:!1,reusable:!1}};Object(r.a)("simple-payments",Z)},function(e,t,n){"use strict";n.r(t);var r=n(21),a=n.n(r),i=n(18),o=n.n(i),c=n(15),s=n.n(c),l=n(25),u=n(16),p=n(28),d=n(55),h=n(5),m=n(7),f=n.n(m),b=n(11),g=n.n(b),v=n(8),j=n.n(v),y=n(9),_=n.n(y),k=n(4),O=n.n(k),w=n(10),E=n.n(w),C=n(3),x=n.n(C),S=n(0),A=n(23),F=n.n(A),P=n(2),T=n(14),N=n(13),M=n(6),R=n(1),D=n(12),z=n.n(D),I=function(e){var t=e.text;return Object(S.createElement)("div",{className:"wp-block-embed is-loading"},Object(S.createElement)(P.Spinner,null),Object(S.createElement)("p",null,t))},L=n(31),B=function(e,t){var n=t.autoplay,r=t.controls,a=t.loop,i=t.muted,o=t.poster,c=t.preload;if(!e)return null;var l=s()({},n&&{autoPlay:!0},{},!r&&{controls:!1},{},a&&{loop:!0},{},i&&{muted:!0,persistVolume:!1},{},o&&{posterUrl:o},{},"none"!==c&&{preloadContent:c});return Object(L.addQueryArgs)("https://videopress.com/v/".concat(e),l)},q=["image"],U=Object(T.createHigherOrderComponent)(Object(T.compose)([Object(N.withSelect)((function(e,t){var n=t.attributes,r=n.autoplay,a=n.controls,i=n.guid,o=n.loop,c=n.muted,s=n.poster,u=n.preload,p=n.src,d=e("core"),h=d.getEmbedPreview,m=d.isRequestingEmbedPreview,f=B(i,{autoplay:r,controls:a,loop:o,muted:c,poster:s,preload:u}),b=!!f&&h(f);return{isFetchingPreview:!!f&&m(f),isUploading:Object(l.isBlobURL)(p),preview:b,url:f}})),Object(N.withDispatch)((function(e){return{invalidateCachedEmbedPreview:function(t){e("core/data").invalidateResolution("core","getEmbedPreview",[t])}}})),T.withInstanceId,function(e){return function(t){function n(){var e;return f()(this,n),e=j()(this,_()(n).apply(this,arguments)),x()(O()(e),"fallbackToCore",(function(){e.props.setAttributes({guid:void 0}),e.setState({fallback:!0})})),x()(O()(e),"setGuid",(function(){var t,n,r,a,i,o,c;return regeneratorRuntime.async((function(s){for(;;)switch(s.prev=s.next){case 0:if(t=e.props,n=t.attributes,r=t.setAttributes,a=n.id){s.next=5;break}return r({guid:void 0}),s.abrupt("return");case 5:return s.prev=5,e.setState({isFetchingMedia:!0}),s.next=9,regeneratorRuntime.awrap(F()({path:"/wp/v2/media/".concat(a)}));case 9:if(i=s.sent,e.setState({isFetchingMedia:!1}),o=e.props.attributes.id,a===o){s.next=14;break}return s.abrupt("return");case 14:e.setState({media:i}),(c=Object(h.get)(i,"jetpack_videopress_guid"))?r({guid:c}):e.fallbackToCore(),s.next=23;break;case 19:s.prev=19,s.t0=s.catch(5),e.setState({isFetchingMedia:!1}),e.fallbackToCore();case 23:case"end":return s.stop()}}),null,null,[[5,19]])})),x()(O()(e),"switchToEditing",(function(){e.props.setAttributes({id:void 0,guid:void 0,src:void 0})})),x()(O()(e),"onSelectPoster",(function(t){(0,e.props.setAttributes)({poster:t.url})})),x()(O()(e),"onRemovePoster",(function(){(0,e.props.setAttributes)({poster:""}),e.posterImageButton.current.focus()})),x()(O()(e),"toggleAttribute",(function(t){return function(n){e.props.setAttributes(x()({},t,n))}})),x()(O()(e),"getAutoplayHelp",(function(e){return e?Object(R.__)("Note: Autoplaying videos may cause usability issues for some visitors.","jetpack"):null})),e.state={media:null,isFetchingMedia:!1,fallback:!1},e.posterImageButton=Object(S.createRef)(),e}return E()(n,t),g()(n,[{key:"componentDidMount",value:function(){this.props.attributes.guid||this.setGuid()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.attributes,r=t.invalidateCachedEmbedPreview,a=t.url;n.id!==e.attributes.id&&this.setGuid(),a&&a!==e.url&&r(a)}},{key:"render",value:function(){var t=this,n=this.props,r=n.attributes,a=n.className,i=n.instanceId,o=n.isFetchingPreview,c=n.isSelected,s=n.isUploading,l=n.preview,u=n.setAttributes,p=this.state,d=p.fallback,h=p.isFetchingMedia,m=r.autoplay,f=r.caption,b=r.controls,g=r.loop,v=r.muted,j=r.poster,y=r.preload,_="video-block__poster-image-description-".concat(i),k=Object(S.createElement)(S.Fragment,null,Object(S.createElement)(M.BlockControls,null,Object(S.createElement)(P.Toolbar,null,Object(S.createElement)(P.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(R.__)("Edit video","jetpack"),onClick:this.switchToEditing,icon:"edit"}))),Object(S.createElement)(M.InspectorControls,null,Object(S.createElement)(P.PanelBody,{title:Object(R.__)("Video Settings","jetpack")},Object(S.createElement)(P.ToggleControl,{label:Object(R.__)("Autoplay","jetpack"),onChange:this.toggleAttribute("autoplay"),checked:m,help:this.getAutoplayHelp}),Object(S.createElement)(P.ToggleControl,{label:Object(R.__)("Loop","jetpack"),onChange:this.toggleAttribute("loop"),checked:g}),Object(S.createElement)(P.ToggleControl,{label:Object(R.__)("Muted","jetpack"),onChange:this.toggleAttribute("muted"),checked:v}),Object(S.createElement)(P.ToggleControl,{label:Object(R.__)("Playback Controls","jetpack"),onChange:this.toggleAttribute("controls"),checked:b}),Object(S.createElement)(P.SelectControl,{label:Object(R.__)("Preload","jetpack"),value:y,onChange:function(e){return u({preload:e})},options:[{value:"auto",label:Object(R._x)("Auto","VideoPress preload setting","jetpack")},{value:"metadata",label:Object(R._x)("Metadata","VideoPress preload setting","jetpack")},{value:"none",label:Object(R._x)("None","VideoPress preload setting","jetpack")}]}),Object(S.createElement)(M.MediaUploadCheck,null,Object(S.createElement)(P.BaseControl,{className:"editor-video-poster-control",label:Object(R.__)("Poster Image","jetpack")},Object(S.createElement)(M.MediaUpload,{title:Object(R.__)("Select Poster Image","jetpack"),onSelect:this.onSelectPoster,allowedTypes:q,render:function(e){var n=e.open;return Object(S.createElement)(P.Button,{isDefault:!0,onClick:n,ref:t.posterImageButton,"aria-describedby":_},j?Object(R.__)("Replace image","jetpack"):Object(R.__)("Select Poster Image","jetpack"))}}),Object(S.createElement)("p",{id:_,hidden:!0},j?Object(R.sprintf)(Object(R.__)("The current poster image url is %s","jetpack"),j):Object(R.__)("There is no poster image currently selected","jetpack")),!!j&&Object(S.createElement)(P.Button,{onClick:this.onRemovePoster,isLink:!0,isDestructive:!0},Object(R.__)("Remove Poster Image")))))));if(s)return Object(S.createElement)(S.Fragment,null,k,Object(S.createElement)(I,{text:Object(R.__)("Uploading…","jetpack")}));if(h||o)return Object(S.createElement)(S.Fragment,null,k,Object(S.createElement)(I,{text:Object(R.__)("Generating preview…","jetpack")}));if(d||!l)return Object(S.createElement)(e,this.props);var O=l.html,w=l.scripts;return Object(S.createElement)(S.Fragment,null,k,Object(S.createElement)("figure",{className:z()(a,"wp-block-embed","is-type-video")},Object(S.createElement)(P.Disabled,null,Object(S.createElement)("div",{className:"wp-block-embed__wrapper"},Object(S.createElement)(P.SandBox,{html:O,scripts:w}))),(!M.RichText.isEmpty(f)||c)&&Object(S.createElement)(M.RichText,{tagName:"figcaption",placeholder:Object(R.__)("Write caption…","jetpack"),value:f,onChange:function(e){return u({caption:e})},inlineToolbar:!0})))}}]),n}(S.Component)}]),"withVideoPressEdit"),V=Object(T.createHigherOrderComponent)((function(e){return function(t){var n=t.attributes,r=(n=void 0===n?{}:n).autoplay,a=n.caption,i=n.controls,o=n.guid,c=n.loop,s=n.muted,l=n.poster,u=n.preload;if(!o)return e(t);var p=B(o,{autoplay:r,controls:i,loop:c,muted:s,poster:l,preload:u});return Object(S.createElement)("figure",{className:"wp-block-embed is-type-video is-provider-videopress"},Object(S.createElement)("div",{className:"wp-block-embed__wrapper"},"\n".concat(p,"\n")),!M.RichText.isEmpty(a)&&Object(S.createElement)(M.RichText.Content,{tagName:"figcaption",value:a}))}}),"withVideoPressSave"),H=n(40);var G={attributes:{autoplay:{type:"boolean"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",default:!0},guid:{type:"string"},id:{type:"number"},loop:{type:"boolean"},muted:{type:"boolean"},poster:{type:"string"},preload:{type:"string",default:"metadata"},src:{type:"string"}},support:{reusable:!1},save:function(e){var t=e.attributes,n=t.caption,r=t.guid;if(!r)return null;var a="https://videopress.com/v/".concat(r);return Object(S.createElement)("figure",{className:"wp-block-embed is-type-video is-provider-videopress"},Object(S.createElement)("div",{className:"wp-block-embed__wrapper"},"\n".concat(a,"\n")),!M.RichText.isEmpty(n)&&Object(S.createElement)(M.RichText.Content,{tagName:"figcaption",value:n}))},isDeprecation:!0};Object(d.addFilter)("blocks.registerBlockType","jetpack/videopress",(function(e,t){if("core/video"!==t||e.isDeprecation)return e;var n=e.attributes,r=e.deprecated,i=e.edit,c=e.save,d=e.supports,m=e.transforms,f=Object(H.a)("videopress"),b=f.available,g=f.unavailableReason;return b||["missing_plan","missing_module"].includes(g)?s()({},e,{attributes:{autoplay:{type:"boolean"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",default:!0},guid:{type:"string"},id:{type:"number"},loop:{type:"boolean"},muted:{type:"boolean"},playsInline:{type:"boolean"},poster:{type:"string"},preload:{type:"string",default:"metadata"},src:{type:"string"}},transforms:s()({},m,{from:[{type:"files",isMatch:function(e){return Object(h.every)(e,(function(e){return 0===e.type.indexOf("video/")}))},priority:9,transform:function(e,t){var n=[];return e.forEach((function(e){var r=Object(u.createBlock)("core/video",{src:Object(l.createBlobURL)(e)});Object(p.mediaUpload)({filesList:[e],onFileChange:function(e){var n=o()(e,1)[0],a=n.id,i=n.url;t(r.clientId,{id:a,src:i})},allowedTypes:["video"]}),n.push(r)})),n}}]}),supports:s()({},d,{reusable:!1}),edit:U(i),save:V(c),deprecated:[].concat(a()(r||[]),[{attributes:n,isEligible:function(e){return!e.guid},save:c,supports:d,isDeprecation:!0},G])}):e}))},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(2),c=n(15),s=n.n(c),l=n(21),u=n.n(l),p=n(7),d=n.n(p),h=n(11),m=n.n(h),f=n(8),b=n.n(f),g=n(9),v=n.n(g),j=n(4),y=n.n(j),_=n(10),k=n.n(_),O=n(3),w=n.n(O),E=n(14),C=n(5),x=n(25),S=n(13),A=n(6),F=n(28),P=n(48),T=function(e){var t=e.allowedMediaTypes,n=e.attributes,r=n.autoplay,c=n.delay,s=n.effect,l=n.images,u=n.sizeSlug,p=e.imageSizeOptions,d=e.onChangeImageSize,h=e.onSelectImages,m=e.setAttributes,f="undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,b=[{label:Object(i._x)("Slide","Slideshow transition effect","jetpack"),value:"slide"},{label:Object(i._x)("Fade","Slideshow transition effect","jetpack"),value:"fade"}];return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(A.InspectorControls,null,Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Autoplay","jetpack")},Object(a.createElement)(o.ToggleControl,{label:Object(i.__)("Autoplay","jetpack"),help:Object(i.__)("Autoplay between slides","jetpack"),checked:r,onChange:function(e){m({autoplay:e})}}),r&&Object(a.createElement)(o.RangeControl,{label:Object(i.__)("Delay between transitions (in seconds)","jetpack"),value:c,onChange:function(e){m({delay:e})},min:1,max:5}),r&&f&&Object(a.createElement)("span",null,Object(i.__)("The Reduce Motion accessibility option is selected, therefore autoplay will be disabled in this browser.","jetpack"))),Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Effects","jetpack")},Object(a.createElement)(o.SelectControl,{label:Object(i.__)("Transition effect","jetpack"),value:s,onChange:function(e){m({effect:e})},options:b})),!Object(C.isEmpty)(l)&&!Object(C.isEmpty)(p)&&Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Image Settings","jetpack")},Object(a.createElement)(o.SelectControl,{label:Object(i.__)("Image Size","jetpack"),value:u,options:p,onChange:d}))),Object(a.createElement)(A.BlockControls,null,!!l.length&&Object(a.createElement)(o.Toolbar,null,Object(a.createElement)(A.MediaUpload,{onSelect:h,allowedTypes:t,multiple:!0,gallery:!0,value:l.map((function(e){return e.id})),render:function(e){var t=e.open;return Object(a.createElement)(P.a,{label:Object(i.__)("Edit Slideshow","jetpack"),onClick:t})}}))))},N=n(12),M=n.n(N),R=n(39),D=n(73),z=n(38),I=function(e){function t(e){var n;return d()(this,t),n=b()(this,v()(t).call(this,e)),w()(y()(n),"pendingRequestAnimationFrame",null),w()(y()(n),"resizeObserver",null),w()(y()(n),"initializeResizeObserver",(function(e){n.clearResizeObserver(),n.resizeObserver=new R.a((function(){n.clearPendingRequestAnimationFrame(),n.pendingRequestAnimationFrame=requestAnimationFrame((function(){Object(z.d)(e),e.update()}))})),n.resizeObserver.observe(e.el)})),w()(y()(n),"clearPendingRequestAnimationFrame",(function(){n.pendingRequestAnimationFrame&&(cancelAnimationFrame(n.pendingRequestAnimationFrame),n.pendingRequestAnimationFrame=null)})),w()(y()(n),"clearResizeObserver",(function(){n.resizeObserver&&(n.resizeObserver.disconnect(),n.resizeObserver=null)})),w()(y()(n),"prefersReducedMotion",(function(){return"undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches})),w()(y()(n),"buildSwiper",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return(Object(D.a)(n.slideshowRef.current,{autoplay:!(!n.props.autoplay||n.prefersReducedMotion())&&{delay:1e3*n.props.delay,disableOnInteraction:!1},effect:n.props.effect,loop:!0,initialSlide:e,navigation:{nextEl:n.btnNextRef.current,prevEl:n.btnPrevRef.current},pagination:{clickable:!0,el:n.paginationRef.current,type:"bullets"}},{init:z.b,imagesReady:z.d,paginationRender:z.c,transitionEnd:z.a}))})),n.slideshowRef=Object(a.createRef)(),n.btnNextRef=Object(a.createRef)(),n.btnPrevRef=Object(a.createRef)(),n.paginationRef=Object(a.createRef)(),n}return k()(t,e),m()(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.onError;this.buildSwiper().then((function(t){e.swiperInstance=t,e.initializeResizeObserver(t)})).catch((function(){t(Object(i.__)("The Swiper library could not be loaded.","jetpack"))}))}},{key:"componentWillUnmount",value:function(){this.clearResizeObserver(),this.clearPendingRequestAnimationFrame()}},{key:"componentDidUpdate",value:function(e){var t,n=this,r=this.props,a=r.align,o=r.autoplay,c=r.delay,s=r.effect,l=r.images,u=r.onError;(a===e.align&&Object(C.isEqual)(l,e.images)||this.swiperInstance&&this.swiperInstance.update(),s!==e.effect||o!==e.autoplay||c!==e.delay||l!==e.images)&&(t=this.swiperIndex?l.length===e.images.length?this.swiperInstance.realIndex:e.images.length:0,this.swiperInstance&&this.swiperInstance.destroy(!0,!0),this.buildSwiper(t).then((function(e){n.swiperInstance=e,n.initializeResizeObserver(e)})).catch((function(){u(Object(i.__)("The Swiper library could not be loaded.","jetpack"))})))}},{key:"render",value:function(){var e=this.props,t=e.autoplay,n=e.className,r=e.delay,i=e.effect,c=e.images;return Object(a.createElement)("div",{className:n,"data-autoplay":t||null,"data-delay":t?r:null,"data-effect":i},Object(a.createElement)("div",{className:"wp-block-jetpack-slideshow_container swiper-container",ref:this.slideshowRef},Object(a.createElement)("ul",{className:"wp-block-jetpack-slideshow_swiper-wrapper swiper-wrapper"},c.map((function(e){var t=e.alt,n=e.caption,r=e.id,i=e.url;return Object(a.createElement)("li",{className:M()("wp-block-jetpack-slideshow_slide","swiper-slide",Object(x.isBlobURL)(i)&&"is-transient"),key:r},Object(a.createElement)("figure",null,Object(a.createElement)("img",{alt:t,className:"wp-block-jetpack-slideshow_image wp-image-".concat(r),"data-id":r,src:i}),Object(x.isBlobURL)(i)&&Object(a.createElement)(o.Spinner,null),n&&Object(a.createElement)(A.RichText.Content,{className:"wp-block-jetpack-slideshow_caption gallery-caption",tagName:"figcaption",value:n})))}))),Object(a.createElement)("a",{className:"wp-block-jetpack-slideshow_button-prev swiper-button-prev swiper-button-white",ref:this.btnPrevRef,role:"button"}),Object(a.createElement)("a",{className:"wp-block-jetpack-slideshow_button-next swiper-button-next swiper-button-white",ref:this.btnNextRef,role:"button"}),Object(a.createElement)("a",{"aria-label":"Pause Slideshow",className:"wp-block-jetpack-slideshow_button-pause",role:"button"}),Object(a.createElement)("div",{className:"wp-block-jetpack-slideshow_pagination swiper-pagination swiper-pagination-white",ref:this.paginationRef})))}}]),t}(a.Component);w()(I,"defaultProps",{effect:"slide"});var L=I,B=(n(232),["image"]),q=function(e,t){var n=Object(C.pick)(e,["alt","id","link","caption"]);return n.url=Object(C.get)(e,["sizes",t,"url"])||Object(C.get)(e,["media_details","sizes",t,"source_url"])||e.url,n},U=function(e){function t(){var e;return d()(this,t),e=b()(this,v()(t).apply(this,arguments)),w()(y()(e),"onSelectImages",(function(t){var n=e.props.attributes.sizeSlug,r=t.map((function(e){return q(e,n)}));e.setAttributes({images:r})})),w()(y()(e),"onRemoveImage",(function(t){return function(){var n=Object(C.filter)(e.props.attributes.images,(function(e,n){return t!==n}));e.setState({selectedImage:null}),e.setAttributes({images:n})}})),w()(y()(e),"addFiles",(function(t){var n=e.props.attributes.images||[],r=e.props.attributes.sizeSlug,a=e.props,i=a.lockPostSaving,o=a.unlockPostSaving,c=a.noticeOperations;i("slideshowBlockLock"),Object(F.mediaUpload)({allowedTypes:B,filesList:t,onFileChange:function(t){var a=t.map((function(e){return q(e,r)}));e.setAttributes({images:[].concat(u()(n),u()(a))}),a.every((function(e){return Object(x.isBlobURL)(e.url)}))||o("slideshowBlockLock")},onError:c.createErrorNotice})})),w()(y()(e),"uploadFromFiles",(function(t){return e.addFiles(t.target.files)})),w()(y()(e),"updateImagesSize",(function(t){var n=e.props.attributes.images,r=e.props.resizedImages,a=n.map((function(e){var n=r.find((function(t){var n=t.id;return parseInt(n,10)===parseInt(e.id,10)})),a=Object(C.get)(n,["sizes",t,"source_url"]);return s()({},e,{},a&&{url:a})}));e.setAttributes({images:a,sizeSlug:t})})),e.state={selectedImage:null},e}return k()(t,e),m()(t,[{key:"componentDidMount",value:function(){var e=this.props.attributes,t=e.ids;e.sizeSlug||this.setAttributes({sizeSlug:t.length?"full":"large"})}},{key:"setAttributes",value:function(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e=s()({},e,{ids:e.images.map((function(e){var t=e.id;return parseInt(t,10)}))})),this.props.setAttributes(e)}},{key:"getImageSizeOptions",value:function(){var e=this.props.imageSizes;return Object(C.map)(e,(function(e){var t=e.name;return{value:e.slug,label:t}}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.className,c=t.isSelected,s=t.noticeOperations,l=t.noticeUI,u=n.align,p=n.autoplay,d=n.delay,h=n.effect,m=n.images,f=this.getImageSizeOptions(),b=Object(a.createElement)(T,{allowedMediaTypes:B,attributes:n,imageSizeOptions:f,onChangeImageSize:this.updateImagesSize,onSelectImages:this.onSelectImages,setAttributes:function(t){return e.setAttributes(t)}});return 0===m.length?Object(a.createElement)(a.Fragment,null,b,Object(a.createElement)(A.MediaPlaceholder,{icon:Object(a.createElement)(A.BlockIcon,{icon:X}),className:r,labels:{title:Object(i.__)("Slideshow","jetpack"),instructions:Object(i.__)("Drag images, upload new ones or select files from your library.","jetpack")},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:B,multiple:!0,notices:l,onError:s.createErrorNotice})):Object(a.createElement)(a.Fragment,null,b,l,Object(a.createElement)(L,{align:u,autoplay:p,className:r,delay:d,effect:h,images:m,onError:s.createErrorNotice}),Object(a.createElement)(o.DropZone,{onFilesDrop:this.addFiles}),c&&Object(a.createElement)("div",{className:"wp-block-jetpack-slideshow__add-item"},Object(a.createElement)(o.FormFileUpload,{multiple:!0,isLarge:!0,className:"wp-block-jetpack-slideshow__add-item-button",onChange:this.uploadFromFiles,accept:"image/*",icon:"insert"},Object(i.__)("Upload an image","jetpack"))))}}]),t}(a.Component),V=Object(E.compose)(Object(S.withSelect)((function(e,t){return{imageSizes:e("core/editor").getEditorSettings().imageSizes,resizedImages:t.attributes.ids.reduce((function(t,n){var r=e("core").getMedia(n),a=Object(C.get)(r,["media_details","sizes"]);return[].concat(u()(t),[{id:n,sizes:a}])}),[])}})),Object(S.withDispatch)((function(e){var t=e("core/editor");return{lockPostSaving:t.lockPostSaving,unlockPostSaving:t.unlockPostSaving}})),o.withNotices)(U),H=n(16);function G(e){return Object(C.filter)(e,(function(e){var t=e.id,n=e.url;return t&&n}))}var $={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],isMatch:function(e){return G(e).length>0},transform:function(e){var t=G(e);return Object(H.createBlock)("jetpack/slideshow",{images:t.map((function(e){return{alt:e.alt,caption:e.caption,id:e.id,url:e.url}})),ids:t.map((function(e){return e.id}))})}},{type:"block",blocks:["core/gallery","jetpack/tiled-gallery"],transform:function(e){var t=G(e.images);return t.length>0?Object(H.createBlock)("jetpack/slideshow",{images:t.map((function(e){return{alt:e.alt,caption:e.caption,id:e.id,url:e.url}})),ids:t.map((function(e){return e.id}))}):Object(H.createBlock)("jetpack/slideshow")}}],to:[{type:"block",blocks:["core/gallery"],transform:function(e){var t=e.images,n=e.ids;return Object(H.createBlock)("core/gallery",{images:t,ids:n})}},{type:"block",blocks:["core/image"],transform:function(e){var t=e.images;return t.length>0?t.map((function(e){var t=e.id,n=e.url,r=e.alt,a=e.caption;return Object(H.createBlock)("core/image",{id:t,url:n,alt:r,caption:a})})):Object(H.createBlock)("core/image")}}]},W=n(109),K=n.n(W),Z=n(110),J=n.n(Z),Y=n(111),Q=n.n(Y),X=Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(a.createElement)(o.Path,{d:"M0 0h24v24H0z",fill:"none"}),Object(a.createElement)(o.Path,{d:"M10 8v8l5-4-5-4zm9-5H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"})),ee={align:"center",autoplay:!0,ids:[22,23],images:[{alt:"",caption:"",id:22,url:K.a},{alt:"",caption:"",id:23,url:J.a},{alt:"",caption:"",id:23,url:Q.a}],effect:"slide"},te={title:Object(i.__)("Slideshow","jetpack"),category:"jetpack",keywords:[Object(i._x)("image","block search term","jetpack"),Object(i._x)("gallery","block search term","jetpack"),Object(i._x)("slider","block search term","jetpack")],description:Object(i.__)("Add an interactive slideshow.","jetpack"),attributes:{align:{default:"center",type:"string"},autoplay:{type:"boolean",default:!1},delay:{type:"number",default:3},ids:{default:[],type:"array"},images:{type:"array",default:[],source:"query",selector:".swiper-slide",query:{alt:{source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},id:{source:"attribute",selector:"img",attribute:"data-id"},url:{source:"attribute",selector:"img",attribute:"src"}}},effect:{type:"string",default:"slide"},sizeSlug:{type:"string"}},supports:{align:["center","wide","full"],html:!1},icon:X,edit:V,save:function(e){var t=e.attributes,n=t.align,r=t.autoplay,i=t.delay,o=t.effect,c=t.images,s=e.className;return Object(a.createElement)(L,{align:n,autoplay:r,className:s,delay:i,effect:o,images:c})},transforms:$,example:{attributes:ee}};Object(r.a)("slideshow",te)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(13),c=n(5),s=function(e){return e.map((function(e){return e.value}))},l=[{value:"en-US",label:"English"},{value:"fr-CA",label:"Français"},{value:"de-DE",label:"Deutsch"},{value:"es-MX",label:"Español"},{value:"ja-JP",label:"日本語"},{value:"nl-NL",label:"Nederlands"},{value:"it-IT",label:"Italiano"}],u=s(l),p=function(e){return Object(c.compact)([{value:"standard",label:Object(i.__)("Standard (224 x 301 pixels)","jetpack")},{value:"tall",label:Object(i.__)("Tall (288 x 490 pixels)","jetpack")},{value:"wide",label:Object(i.__)("Wide (840 x 150 pixels)","jetpack")},(!e||1===e.length)&&{value:"button",label:Object(i.__)("Button (210 x 113 pixels)","jetpack")}])},d=function(e){return s(p(e))},h=Object(o.select)("core/block-editor").getSettings().siteLocale,m=!Object(c.isEmpty)(h)&&u.includes(h)?h:"en-US",f={rid:{default:[],type:"array"},style:{default:"standard",type:"string",validValues:d()},iframe:{default:!0,type:"boolean"},domain:{default:"com",type:"string"},lang:{default:m,type:"string",validValues:u},newtab:{default:!1,type:"boolean"}},b=n(3),g=n.n(b),v=n(18),j=n.n(v),y=(n(79),n(12)),_=n.n(y),k=n(6),O=n(2),w=(n(89),Object(a.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 16",fill:"none",height:"16",width:"22"},Object(a.createElement)(O.Path,{fill:"#555d66",d:"m1.997 5.982c-.39457-.00039-.7804.11622-1.108699.33511-.328295.21888-.584312.5302-.735674.89459-.15136174.36439-.1912714.76548-.1146819 1.15254.0765899.38707.2662379.74274.5449639 1.02202.278726.27929.634011.46965 1.020921.54702.38692.07732.78809.03826 1.15278-.11238.36469-.15063.67652-.40602.89606-.73387.21954-.32786.33693-.71345.33733-1.10803v-.002c.001-1.1-.89-1.994-1.992-1.995zm12.006 3.988c-.3946.0004-.7805-.11625-1.1088-.33517-.3283-.21893-.5843-.53031-.7357-.89476-.1513-.36444-.1912-.76558-.1145-1.15268s.2664-.74276.5453-1.022c.2788-.27925.6342-.46953 1.0211-.54679.387-.07725.7882-.038 1.1529.11278.3647.15079.6764.40634.8959.73432.2194.32799.3366.71369.3368 1.1083v.003c.0003.52814-.2092 1.03477-.5824 1.4085s-.8795.58397-1.4076.5845zm0-9.96999843c-1.5777-.0009886-3.1203.46588743-4.43262 1.34158843-1.31236.8757-2.33558 2.1209-2.94025 3.57813-.60467 1.45722-.76365 3.06103-.45683 4.60861.30683 1.54757 1.06567 2.96947 2.18058 4.08577 1.1149 1.1163 2.53582 1.8769 4.08302 2.1856 1.5472.3088 3.1512.1518 4.6091-.451 1.458-.6028 2.7045-1.6245 3.5819-2.9358.8773-1.3112 1.3461-2.8532 1.3471-4.4309v-.005c.0008-2.11466-.8384-4.14304-2.3331-5.63899-1.4946-1.495952-3.5222-2.3369478-5.6369-2.33800843z"}))),E=n(24),C=n(30),x=n.n(C);var S=/<script type=\'text\/javascript\' src=\'\/\/www.opentable\.(\w{2,3}\.)?\w+\/widget\/reservation\/loader\?[^']+\'><\/script>/;function A(e){var t=Object(a.useState)(""),n=j()(t,2),r=n[0],o=n[1],s=function(e,t){var n=Object(a.useState)([]),r=j()(n,2),i=r[0],o=r[1],s=Object(a.useCallback)(Object(c.throttle)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";fetch("https://www.opentable.com/widget/reservation/restaurant-search?pageSize="+t+"&query="+encodeURIComponent(e)).then((function(e){return e.json()})).then((function(e){return o(Object(c.unionBy)(i,e.items,"rid"))}))}),500),[i]);return Object(a.useEffect)((function(){Object(c.isEmpty)(e)||e.startsWith("<script")||s(e)}),[e]),i}(r,20),l=Object(a.useState)(e.rids||[]),u=j()(l,2),p=u[0],d=u[1],h=/^(\d+)$|\(\#(\d+)\)$/,m=s.filter((function(e){return p.indexOf(e.rid.toString())})).map((function(e){return e.name+" (#".concat(e.rid,")")})),f=Object(a.createElement)(O.FormTokenField,x()({value:p,suggestions:m,onInputChange:o,maxSuggestions:20,label:Object(i._n)("Restaurant","Restaurants",p.length,"jetpack")},e,{onChange:function(t){var n=t.map((function(e){var t=h.exec(e);return t[1]||t[2]}));d(n),e.onChange&&e.onChange(n)}}));return Object(a.createElement)("div",{className:"wp-block-jetpack-opentable-restaurant-picker"},e.onSubmit?Object(a.createElement)("form",{onSubmit:function(t){t.preventDefault(),e.onSubmit(Object(c.isEmpty)(p)&&S.test(r)?r:p)}},f,Object(a.createElement)(O.Button,{isSecondary:!0,isLarge:!0,type:"submit"},Object(i.__)("Embed","jetpack"))):f)}var F=n(59),P=n(51);n(133);var T={title:Object(i.__)("OpenTable","jetpack"),description:Object(i.__)("Allow visitors to book a reservation with OpenTable","jetpack"),icon:w,category:"jetpack",keywords:[Object(i.__)("opentable","jetpack"),Object(i.__)("reservation","jetpack"),Object(i.__)("restaurant","jetpack")],supports:{align:!0,html:!1},edit:function(e){var t,n=e.attributes,r=e.setAttributes,o=e.className,s=e.clientId,h=Object(P.a)(f,n);Object(c.isEqual)(h,n)||r(h);var m,b,v,y,C,x=n.align,S=n.rid,T=n.style,N=n.iframe,M=n.domain,R=n.lang,D=n.newtab,z=Object(a.useState)(),I=j()(z,2),L=I[0],B=I[1],q=function(){return B(Object(a.createElement)(a.Fragment,null,Object(a.createElement)("strong",null,Object(i.__)("We ran into an issue","jetpack")),Object(a.createElement)("br",null),Object(i.__)("Please ensure this embed matches the one from your OpenTable account","jetpack")))},U=p(S),V=d(S),H=function(e){return S.length>1?["multi","button"!==e?e:"standard"]:["button"===e?"button":"standard","button"===e?"standard":e]},G=Object(a.createElement)(k.BlockControls,null,!Object(c.isEmpty)(S)&&Object(a.createElement)(O.Toolbar,{popoverProps:{className:"is-opentable"},isCollapsed:!0,icon:"admin-appearance",label:Object(i.__)("Style","jetpack"),controls:U.map((function(e){return{title:e.label,isActive:e.value===T,onClick:function(){return t=e.value,r({style:t}),"wide"===T&&"wide"===x&&r({align:""}),void("wide"===t&&r({align:"wide"}));var t}}}))})),$=function(e){Array.isArray(e)?r({rid:e,style:e.length>1&&"button"===T?"standard":T}):function(e){if(e){var t=e.match(/< *script[^>]*src *= *["']?([^"']*)/i);if(t&&t[1]){var n="";if((n=0===t[1].indexOf("http")?new URL(t[1]):new URL("http:"+t[1])).search){var a=new URLSearchParams(n.search),i=a.get("theme");"button"===a.get("type")&&(i=a.get("type"));var o={rid:a.getAll("rid"),iframe:Boolean(a.get("iframe")),domain:a.get("domain"),lang:a.get("lang"),newtab:Boolean(a.get("newtab")),style:i},c=Object(P.a)(f,o);r(c)}else q()}else q()}else q()}(e)},W=Object(E.b)()||Object(E.a)()?"https://en.support.wordpress.com/wordpress-editor/blocks/opentable-block/":"https://jetpack.com/support/jetpack-blocks/opentable-block/",K=Object(a.createElement)(O.Placeholder,{label:Object(i.__)("OpenTable Reservation","jetpack"),icon:Object(a.createElement)(k.BlockIcon,{icon:w}),instructions:Object(i.__)("Enter your restaurant name, or paste an OpenTable Reservation Widget embed code.","jetpack"),notices:L&&Object(a.createElement)(O.Notice,{status:"error",isDismissible:!1},L)},Object(a.createElement)(A,{rids:S,onSubmit:$}),Object(a.createElement)("div",{className:"".concat(o,"-placeholder-links")},Object(a.createElement)(O.ExternalLink,{href:"https://restaurant.opentable.com/get-started/"},Object(i.__)("Sign up for OpenTable","jetpack")),Object(a.createElement)(O.ExternalLink,{href:W},Object(i.__)("Learn more","jetpack")))),Z=_()(o,(t={},g()(t,"".concat(o,"-theme-").concat(T),!Object(c.isEmpty)(S)&&V.includes(T)),g()(t,"is-multi","multi"===H(T)[0]),t));return Object(a.createElement)("div",{className:Z},!Object(c.isEmpty)(S)&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)(a.Fragment,null,Object(a.createElement)(k.InspectorAdvancedControls,null,Object(a.createElement)(O.ToggleControl,{label:Object(i.__)("Load the widget in an iFrame (Recommended)","jetpack"),checked:N,onChange:function(){return r({iframe:!N})},className:"is-opentable"})),Object(a.createElement)(k.InspectorControls,null,Object(a.createElement)(O.PanelBody,{title:Object(i.__)("Styles","jetpack")},Object(a.createElement)(F.a,{clientId:s,styleOptions:U,onSelectStyle:r,activeStyle:T,attributes:n,viewportWidth:150})),Object(a.createElement)(O.PanelBody,{title:Object(i.__)("Settings","jetpack")},Object(a.createElement)(A,{rids:S,onChange:$}),Object(a.createElement)(O.SelectControl,{label:Object(i.__)("Language","jetpack"),value:R,onChange:function(e){return r({lang:e})},options:l}),Object(a.createElement)(O.ToggleControl,{label:Object(i.__)("Open in a new window","jetpack"),checked:D,onChange:function(){return r({newtab:!D})}})))),G),Object(c.isEmpty)(S)?K:(b=H(m||T),v=j()(b,2),y=v[0],C=v[1],Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{className:"".concat(o,"-overlay")}),Object(a.createElement)("iframe",{title:Object(i.sprintf)(Object(i.__)("Open Table Preview %s","jetpack"),s),scrolling:"no",src:"https://www.opentable.com/widget/reservation/canvas?rid=".concat(Object(c.join)(S,"%2C"),"&type=").concat(y,"&theme=").concat(C,"&overlay=false&domain=").concat(M,"&lang=").concat(R&&u.includes(R)?R:"en-US","&newtab=").concat(D,"&disablega=true")}))))},save:function(e){var t=e.attributes.rid;return Object(a.createElement)(a.Fragment,null,t.map((function(e){return Object(a.createElement)("a",{href:"https://www.opentable.com/restref/client/?rid=".concat(e)},"https://www.opentable.com/restref/client/?rid=".concat(e))})))},attributes:f,example:{attributes:{rid:["1"],style:"standard",iframe:!0,domain:"com",lang:"en-US",newtab:!1}}};Object(r.a)("opentable",T)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(2),c=n(16),s=n(7),l=n.n(s),u=n(11),p=n.n(u),d=n(8),h=n.n(d),m=n(9),f=n.n(m),b=n(4),g=n.n(b),v=n(10),j=n.n(v),y=n(3),_=n.n(y),k=n(12),O=n.n(k),w=n(6),E=n(13),C=n(28),x=n(23),S=n.n(x),A=n(26);function F(e){if(!e)return null;var t=e.match(/(\d+)\/?(?:\?[^\/]*)?\s*$/);return t&&t[1]?parseInt(t[1],10):null}var P=n(24),T=n(14),N=window.getComputedStyle,M=Object(o.withFallbackStyles)((function(e,t){var n=t.textColor,r=t.backgroundColor,a=r&&r.color,i=n&&n.color,o=!i&&e?e.querySelector('[contenteditable="true"]'):null;return{fallbackBackgroundColor:a||!e?void 0:N(e).backgroundColor,fallbackTextColor:i||!o?void 0:N(o).color}}));function R(e){var t=e.borderRadius,n=void 0===t?"":t,r=e.setAttributes,c=Object(a.useCallback)((function(e){r({borderRadius:e})}),[r]);return Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Border Settings","jetpack")},Object(a.createElement)(o.RangeControl,{value:n,label:Object(i.__)("Border Radius","jetpack"),min:0,max:50,initialPosition:5,allowReset:!0,onChange:c}))}var D=function(e){function t(){var e;return l()(this,t),(e=h()(this,f()(t).apply(this,arguments))).nodeRef=null,e.bindRef=e.bindRef.bind(g()(e)),e}return j()(t,e),p()(t,[{key:"bindRef",value:function(e){e&&(this.nodeRef=e)}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=t.backgroundColor,o=t.textColor,c=t.setBackgroundColor,s=t.setTextColor,l=t.fallbackBackgroundColor,u=t.fallbackTextColor,p=t.setAttributes,d=t.className,h=n.borderRadius,m=n.placeholder,f=n.text,b=n.title;return Object(a.createElement)("div",{className:O()(d,"wp-block-button is-modal-button"),title:b,ref:this.bindRef},Object(a.createElement)(w.RichText,{placeholder:m||Object(i.__)("Add text…","jetpack"),value:f,keepPlaceholderOnFocus:!0,onChange:function(e){return p({text:e})},withoutInteractiveFormatting:!0,className:O()("wp-block-button__link",(e={"has-background":r.color},_()(e,r.class,r.class),_()(e,"has-text-color",o.color),_()(e,o.class,o.class),_()(e,"no-border-radius",0===h),e)),style:{backgroundColor:r.color,color:o.color,borderRadius:h?h+"px":void 0}}),Object(a.createElement)(w.InspectorControls,null,Object(a.createElement)(w.PanelColorSettings,{title:Object(i.__)("Color Settings","jetpack"),colorSettings:[{value:r.color,onChange:c,label:Object(i.__)("Background Color","jetpack")},{value:o.color,onChange:s,label:Object(i.__)("Text Color","jetpack")}]},Object(a.createElement)(w.ContrastChecker,{isLargeText:!1,textColor:o.color,backgroundColor:r.color,fallbackBackgroundColor:l,fallbackTextColor:u})),Object(a.createElement)(R,{borderRadius:h,setAttributes:p})))}}]),t}(a.Component),z=Object(T.compose)([Object(w.withColors)("backgroundColor",{textColor:"color"}),M])(D),I=n(97),L=n.n(I),B=n(98),q=n.n(B),U=(n(153),[{name:"fill",label:Object(i.__)("Fill","jetpack"),isDefault:!0},{name:"outline",label:Object(i.__)("Outline","jetpack")}]),V=function(e){function t(){var e,n;l()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=h()(this,(e=f()(t)).call.apply(e,[this].concat(a))),_()(g()(n),"state",{editedUrl:n.props.attributes.url||"",editingUrl:!1,resolvingUrl:n.props.attributes.url&&!n.props.attributes.eventId,resolvedStatusCode:null}),_()(g()(n),"resolveUrl",(function(){var e=n.props.attributes.url;n.setState({resolvedStatusCode:null}),n.fetchRequest=S()({path:"/wpcom/v2/resolve-redirect/".concat(e)}),n.fetchRequest.then((function(t){n.fetchRequest=null;var r=t.url||e,a=t.status?parseInt(t.status,10):null;n.props.setAttributes({eventId:F(r),url:r}),n.setState({resolvingUrl:!1,resolvedStatusCode:a,editedUrl:r})}),(function(e){"abort"!==e.statusText&&(n.fetchRequest=null,n.setState({resolvingUrl:!1,editingUrl:!0}))}))})),_()(g()(n),"setUrl",(function(e){e&&e.preventDefault();var t=n.state.editedUrl;t&&(n.props.setAttributes({eventId:F(t),url:t}),n.setState({editingUrl:!1,resolvingUrl:!0}))})),_()(g()(n),"cannotEmbed",(function(){var e=n.props.attributes.url,t=n.state.resolvedStatusCode;return e&&!G.test(e)||t&&t>=400})),_()(g()(n),"setEmbedType",(function(e){(0,n.props.setAttributes)({useModal:"modal"===e})})),n}return j()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.state.resolvingUrl&&this.resolveUrl()}},{key:"componentDidUpdate",value:function(e,t){!t.resolvingUrl&&this.state.resolvingUrl&&this.resolveUrl()}},{key:"renderLoading",value:function(){return Object(a.createElement)("div",{className:"wp-block-embed is-loading"},Object(a.createElement)(o.Spinner,null),Object(a.createElement)("p",null,Object(i.__)("Embedding…","jetpack")))}},{key:"renderInspectorControls",value:function(){var e=this.props.attributes.useModal,t=[{value:"inline",isActive:!e,label:Object(i.__)("In-page Embed","jetpack"),preview:Object(a.createElement)("div",{className:"block-editor-block-preview__container"},Object(a.createElement)("img",{src:L.a,alt:Object(i.__)("In page Eventbrite checkout example","jetpack")}))},{value:"modal",isActive:e,label:Object(i.__)(" Button & Modal","jetpack"),preview:Object(a.createElement)("div",{className:"block-editor-block-preview__container"},Object(a.createElement)("img",{src:q.a,alt:Object(i.__)("Modal Eventbrite checkout example","jetpack")}))}];return Object(a.createElement)(C.InspectorControls,null,Object(a.createElement)(o.PanelBody,{className:"jetpack-eventbrite-block__embed-type-controls",title:Object(i._x)("Embed Type","option for how the embed displays on a page, e.g. inline or as a modal","jetpack")},Object(a.createElement)("div",{className:"block-editor-block-styles"},t.map(this.renderEmbedTypeItem.bind(this)))))}},{key:"renderEmbedTypeItem",value:function(e){var t=this,n=e.label,r=e.isActive,i=e.value,o=e.preview;return Object(a.createElement)("div",{key:i,className:O()("block-editor-block-styles__item",{"is-active":r}),onClick:function(){return t.setEmbedType(i)},onKeyDown:function(e){A.ENTER!==e.keyCode&&A.SPACE!==e.keyCode||e.preventDefault()},role:"button",tabIndex:"0","aria-label":n},Object(a.createElement)("div",{className:"block-editor-block-styles__item-preview"},o),Object(a.createElement)("div",{className:"block-editor-block-styles__item-label"},n))}},{key:"renderBlockControls",value:function(){var e=this;return Object(a.createElement)(w.BlockControls,null,Object(a.createElement)(o.Toolbar,null,Object(a.createElement)(o.IconButton,{className:"components-toolbar__control",label:Object(i.__)("Edit URL","jetpack"),icon:"edit",onClick:function(){return e.setState({editingUrl:!0})}})))}},{key:"renderEditEmbed",value:function(){var e=this,t=this.props.className,n=this.state.editedUrl,r=Object(P.b)()||Object(P.a)()?"http://support.wordpress.com/wordpress-editor/blocks/eventbrite-block/":"https://jetpack.com/support/jetpack-blocks/eventbrite-block/";return Object(a.createElement)("div",{className:t},Object(a.createElement)(o.Placeholder,{label:Object(i.__)("Eventbrite Checkout","jetpack"),instructions:Object(i.__)("Paste a link to an Eventbrite event to embed ticket checkout.","jetpack"),icon:Object(a.createElement)(w.BlockIcon,{icon:K})},Object(a.createElement)("form",{onSubmit:this.setUrl},Object(a.createElement)("input",{type:"url",value:n,className:"components-placeholder__input","aria-label":Object(i.__)("Eventbrite URL","jetpack"),placeholder:Object(i.__)("Enter an event URL to embed here…","jetpack"),onChange:function(t){return e.setState({editedUrl:t.target.value})}}),Object(a.createElement)(o.Button,{isLarge:!0,isDefault:!0,isSecondary:!0,type:"submit"},Object(i._x)("Embed","submit button label","jetpack")),this.cannotEmbed()&&Object(a.createElement)("p",{className:"components-placeholder__error"},Object(i.__)("Sorry, this content could not be embedded.","jetpack"),Object(a.createElement)("br",null),Object(a.createElement)(o.Button,{isLarge:!0,onClick:function(){return t=n,r=e.props.onReplace,i=Object(a.createElement)("a",{href:t},t),void r(Object(c.createBlock)("core/paragraph",{content:Object(a.renderToString)(i)}));var t,r,i}},Object(i._x)("Convert block to link","button label","jetpack")))),Object(a.createElement)("div",{className:"components-placeholder__learn-more"},Object(a.createElement)(o.ExternalLink,{href:r},Object(i.__)("Learn more about Eventbrite embeds","jetpack")))))}},{key:"renderInlinePreview",value:function(){var e=this.props.className,t=this.props.attributes.eventId;if(t){var n="eventbrite-widget-".concat(t),r="\n\t\t\t<script src=\"https://www.eventbrite.com/static/widgets/eb_widgets.js\"><\/script>\n\t\t\t<style>\n\t\t\t\t/* Prevent scrollbar on the embed preview */\n\t\t\t\tbody {\n\t\t\t\t\toverflow: hidden;\n\t\t\t\t}\n\t\t\t\t/* Eventbrite embeds have a CSS height transition on loading, which causes <Sandbox>\n\t\t\t\tto not recognise the resizing. We need to disable that transition. */\n\t\t\t\t* {\n\t\t\t\t\ttransition: none !important;\n\t\t\t\t}\n\t\t\t</style>\n\t\t\t<script>\n\t\t\t\twindow.EBWidgets.createWidget({\n\t\t\t\t\twidgetType: 'checkout',\n\t\t\t\t\teventId: ".concat(t,",\n\t\t\t\t\tiframeContainerId: '").concat(n,"',\n\t\t\t\t});\n\t\t\t<\/script>\n\t\t\t<div id=\"").concat(n,'"></div>\n\t\t');return Object(a.createElement)("div",{className:e},Object(a.createElement)(o.SandBox,{html:r}),Object(a.createElement)("div",{className:"block-library-embed__interactive-overlay"}))}}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=t.addModalButtonStyles,i=t.removeModalButtonStyles,o=n.url,c=n.useModal,s=this.state,l=s.editingUrl;return s.resolvingUrl?(i(),e=this.renderLoading()):l||!o||this.cannotEmbed()?(i(),e=this.renderEditEmbed()):(c?r():i(),e=Object(a.createElement)(a.Fragment,null,this.renderBlockControls(),c?Object(a.createElement)(z,this.props):this.renderInlinePreview())),Object(a.createElement)(a.Fragment,null,this.renderInspectorControls(),e)}}]),t}(a.Component),H=Object(E.withDispatch)((function(e,t,n){var r=t.name,a=(0,(0,n.select)("core/blocks").getBlockStyles)(r);return{addModalButtonStyles:function(){a.length<1&&e("core/blocks").addBlockStyles(r,U)},removeModalButtonStyles:function(){a.length>0&&e("core/blocks").removeBlockStyles(r,U.map((function(e){return e.name})))}}}))(V);var G=/^\s*https?:\/\/(?:www\.)?(?:eventbrite\.[a-z.]+)\/e\/[^\/]*?(\d+)\/?(?:\?[^\/]*)?\s*$/i,$=/^\s*https?:\/\/(?:.+\.)?(?:eventbrite\.[a-z.]+)\/?(?:\?[^\/]*)?\s*$/i,W=Object(i.__)("Eventbrite Checkout","jetpack"),K={src:Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(o.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(a.createElement)(o.G,{id:"eventbrite-icon"},Object(a.createElement)(o.Path,{d:"M18.041,3.931L5.959,3C4.325,3,3,4.325,3,5.959v12.083C3,19.675,4.325,21,5.959,21l12.083-0.931C19.699,19.983,21,18.744,21,17.11V6.89C21,5.256,19.741,4.027,18.041,3.931zM16.933,8.17c-0.082,0.215-0.192,0.432-0.378,0.551c-0.188,0.122-0.489,0.132-0.799,0.132c-1.521,0-3.062-0.048-4.607-0.048c-0.152,0.708-0.304,1.416-0.451,2.128c0.932-0.004,1.873,0.005,2.81,0.005c0.726,0,1.462-0.069,1.586,0.525c0.04,0.189-0.001,0.426-0.052,0.615c-0.105,0.38-0.258,0.676-0.625,0.783c-0.185,0.054-0.408,0.058-0.646,0.058c-1.145,0-2.345,0.017-3.493,0.02c-0.169,0.772-0.328,1.553-0.489,2.333c1.57-0.005,3.067-0.041,4.633-0.058c0.627-0.007,1.085,0.194,1.009,0.85c-0.031,0.262-0.098,0.497-0.211,0.725c-0.102,0.208-0.248,0.376-0.488,0.452c-0.237,0.075-0.541,0.064-0.862,0.078c-0.304,0.014-0.614,0.008-0.924,0.016c-0.309,0.009-0.619,0.022-0.919,0.022c-1.253,0-2.429,0.08-3.683,0.073c-0.603-0.004-1.014-0.249-1.124-0.757c-0.059-0.273-0.018-0.58,0.036-0.841c0.541-2.592,1.083-5.176,1.629-7.763c0.056-0.265,0.114-0.511,0.225-0.714C9.279,7.051,9.534,6.834,9.9,6.735c0.368-0.099,0.883-0.047,1.344-0.047c0.305,0,0.612,0.008,0.914,0.016c0.925,0.026,1.817,0.03,2.747,0.053c0.304,0.007,0.615,0.016,0.915,0.016c0.621,0,1.17,0.073,1.245,0.614C17.104,7.675,17.014,7.954,16.933,8.17z"}))),foreground:"#555d66"},Z={title:W,description:Object(i.__)("Embed Eventbrite event details and ticket checkout.","jetpack"),icon:K,category:"jetpack",keywords:[Object(i.__)("events","jetpack"),Object(i.__)("tickets","jetpack")],supports:{html:!1},attributes:{url:{type:"string"},eventId:{type:"number"},useModal:{type:"boolean"},text:{type:"string",default:Object(i._x)("Register","verb: e.g. register for an event.","jetpack")},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},borderRadius:{type:"number"}},edit:H,save:function(e){var t=e.attributes,n=t.eventId,r=t.useModal,i=t.url;if(n)return r?function(e){var t,n=e.backgroundColor,r=e.borderRadius,i=e.customBackgroundColor,o=e.customTextColor,c=e.eventId,s=e.text,l=e.textColor,u=e.url,p=Object(w.getColorClassName)("color",l),d=Object(w.getColorClassName)("background-color",n),h=O()("wp-block-button__link",(t={"has-text-color":l||o},_()(t,p,p),_()(t,"has-background",n||i),_()(t,d,d),_()(t,"no-border-radius",0===r),t)),m={backgroundColor:d?void 0:i,color:p?void 0:o,borderRadius:r?r+"px":void 0};return Object(a.createElement)("div",{className:"wp-block-button"},Object(a.createElement)(w.RichText.Content,{className:h,href:u,id:"eventbrite-widget-".concat(c),rel:"noopener noreferrer",role:"button",style:m,tagName:"a",target:"_blank",value:s}))}(t):i&&Object(a.createElement)("a",{className:"eventbrite__direct-link",href:i},i)},transforms:{from:[{type:"raw",isMatch:function(e){return"P"===e.nodeName&&(G.test(e.textContent)||$.test(e.textContent))},transform:function(e){return Object(c.createBlock)("jetpack/eventbrite",{url:e.textContent.trim()})}}]},example:{attributes:{url:"https://www.eventbrite.com/e/test-event-tickets-123456789",eventId:123456789,useModal:!0}}};Object(r.a)("eventbrite",Z)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(16),c=/^#?[A-Fa-f0-9]{6}$/,s=function(e){return c.test(e)},l={backgroundColor:{type:"string",default:"ffffff",validator:s},submitButtonText:{type:"string",default:Object(i.__)("Schedule time with me","jetpack")},submitButtonTextColor:{type:"string"},submitButtonBackgroundColor:{type:"string"},submitButtonClasses:{type:"string"},hideEventTypeDetails:{type:"boolean",default:!1},primaryColor:{type:"string",default:"00A2FF",validator:s},textColor:{type:"string",default:"4D5055",validator:s},style:{type:"string",default:"inline",validValues:["inline","link"]},url:{type:"string",validator:function(e){return!e||e.startsWith("https://calendly.com/")}},backgroundButtonColor:{type:"string"},textButtonColor:{type:"string"},customBackgroundButtonColor:{type:"string",validator:s},customTextButtonColor:{type:"string",validator:s}},u=n(18),p=n.n(u),d=(n(79),n(5)),h=n(95),m=n.n(h),f=n(6),b=n(2),g=(n(80),Object(a.createElement)(b.SVG,{height:"24",viewBox:"0 0 23 24",width:"23",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(b.G,{fill:"none",fillRule:"evenodd"},Object(a.createElement)(b.Rect,{height:"20.956522",rx:"3",stroke:"#656a74",strokeWidth:"2",width:"20.956522",x:"1",y:"2.043478"}),Object(a.createElement)(b.Rect,{fill:"#656a74",height:"4.869565",rx:"1",width:"2",x:"6.565217"}),Object(a.createElement)(b.Rect,{fill:"#656a74",height:"4.869565",rx:"1",width:"2",x:"14.652174"}),Object(a.createElement)(b.Path,{d:"m14.6086957 10.0869565c-.6956522-.57971012-1.6231885-.8695652-2.7826087-.8695652-1.7391305 0-3.47826091 1.5652174-3.47826091 3.6521739s1.73913041 3.6521739 3.47826091 3.6521739c1.1594202 0 2.0869565-.3478261 2.7826087-1.0434782",stroke:"#656a74"})))),v=n(51),j=n(32),y=/(^|\/\/)(calendly\.com[^"']*)/i,_=function(e){if(e){var t=function(e){var t=e.match(y);if(t)return"https://"+t[2]}(e);if(t){var n=function(e){var t={},n=new URL(e);if(t.url=n.origin+n.pathname,!n.search)return t;var r=new URLSearchParams(n.search),a=r.get("background_color"),i=r.get("primary_color"),o=r.get("text_color"),c=/^[A-Za-z0-9]{6}$/;return r.get("hide_event_type_details")&&(t.hideEventTypeDetails=r.get("hide_event_type_details")),a&&a.match(c)&&(t.backgroundColor=a),i&&i.match(c)&&(t.primaryColor=i),o&&o.match(c)&&(t.textColor=o),t}(t),r=function(e){return e.indexOf("data-url")>0?"inline":e.indexOf("initPopupWidget")>0||e.indexOf("initBadgeWidget")>0?"link":void 0}(e);r&&(n.style=r);var a=function(e){var t=e.match(/false;"\>([^<]+)\<\//);return t?t[1]:(t=e.match(/text: '([^']*?)'/))?t[1]:void 0}(e);a&&(n.submitButtonText=a);var i=function(e){var t=e.match(/textColor: '([^']*?)'/);if(t)return t[1]}(e);i&&(n.customTextButtonColor=i);var o=function(e){var t=e.match(/color: '([^']*?)'/);if(t)return t[1]}(e);return o&&(n.customBackgroundButtonColor=o),n}}},k=n(59);var O={title:Object(i.__)("Calendly","jetpack"),description:Object(i.__)("Embed a calendar for customers to schedule appointments","jetpack"),icon:g,category:"jetpack",keywords:[Object(i.__)("calendar","jetpack"),Object(i.__)("schedule","jetpack"),Object(i.__)("appointments","jetpack")],supports:{align:!0,alignWide:!1,html:!1},edit:function(e){var t=e.attributes,n=e.className,r=e.clientId,o=e.setAttributes,c=Object(v.a)(l,t);Object(d.isEqual)(c,t)||o(c);var s,u,h=c.backgroundColor,y=c.submitButtonText,O=c.hideEventTypeDetails,w=c.primaryColor,E=c.textColor,C=c.style,x=c.url,S=Object(a.useState)(""),A=p()(S,2),F=A[0],P=A[1],T=Object(a.useState)(),N=p()(T,2),M=N[0],R=N[1],D=function(){return R(Object(a.createElement)(a.Fragment,null,Object(i.__)("Your calendar couldn't be embedded. Please double check your URL or code.","jetpack")))},z=function(e){if(e){e.preventDefault();var t=_(F);if(t){var n=Object(v.a)(l,t);o(n)}else D()}else D()},I=Object(a.createElement)(a.Fragment,null,Object(a.createElement)("form",{onSubmit:z},Object(a.createElement)("input",{type:"text",id:"embedCode",onChange:function(e){return P(e.target.value)},placeholder:Object(i.__)("Calendly web address or embed code…","jetpack"),value:F,className:"components-placeholder__input"}),Object(a.createElement)("div",null,Object(a.createElement)(b.Button,{isSecondary:!0,isLarge:!0,type:"submit"},Object(i._x)("Embed","button label","jetpack")))),Object(a.createElement)("div",{className:"".concat(n,"-learn-more")},Object(a.createElement)(b.ExternalLink,{href:"https://help.calendly.com/hc/en-us/articles/223147027-Embed-options-overview"},Object(i.__)("Need help finding your embed code?","jetpack")))),L=Object(a.createElement)(b.Placeholder,{label:Object(i.__)("Calendly","jetpack"),instructions:Object(i.__)("Enter your Calendly web address or embed code below.","jetpack"),icon:Object(a.createElement)(f.BlockIcon,{icon:g}),notices:M&&Object(a.createElement)(b.Notice,{status:"error",isDismissible:!1},M)},I),B=Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{className:"".concat(n,"-overlay")}),Object(a.createElement)("iframe",{src:(s=m.a.stringify({embed_domain:"wordpress.com",embed_type:"Inline",hide_event_type_details:O?1:0,background_color:h,primary_color:w,text_color:E}),"".concat(x,"?").concat(s)),width:"100%",height:"100%",frameBorder:"0","data-origwidth":"100%","data-origheight":"100%",style:{minWidth:"320px",height:"630px",width:"100%"},title:"Calendly"})),q=Object(a.createElement)(j.a,{submitButtonText:y,attributes:t,setAttributes:o}),U=Object(a.createElement)(a.Fragment,null,Object(a.createElement)("a",{style:{alignSelf:"flex-start",border:"none"},className:"wp-block-button__link"},y)),V=[{value:"inline",label:Object(i.__)("Inline","jetpack")},{value:"link",label:Object(i.__)("Link","jetpack")}],H=Object(a.createElement)(f.BlockControls,null,x&&Object(a.createElement)(b.Toolbar,{isCollapsed:!0,icon:"admin-appearance",label:Object(i.__)("Style","jetpack"),controls:V.map((function(e){return{title:e.label,isActive:e.value===C,onClick:function(){return o({style:e.value})}}})),popoverProps:{className:"is-calendly"}})),G=Object(a.createElement)(f.InspectorControls,null,x&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)(b.PanelBody,{title:Object(i.__)("Styles","jetpack")},Object(a.createElement)(k.a,{clientId:r,styleOptions:V,onSelectStyle:o,activeStyle:C,attributes:t,viewportWidth:500}))),Object(a.createElement)(b.PanelBody,{title:Object(i.__)("Calendar Settings","jetpack"),initialOpen:!1},Object(a.createElement)("form",{onSubmit:z,className:"".concat(n,"-embed-form-sidebar")},Object(a.createElement)("input",{type:"text",id:"embedCode",onChange:function(e){return P(e.target.value)},placeholder:Object(i.__)("Calendly web address or embed code…","jetpack"),value:F,className:"components-placeholder__input"}),Object(a.createElement)("div",null,Object(a.createElement)(b.Button,{isSecondary:!0,isLarge:!0,type:"submit"},Object(i._x)("Embed","button label","jetpack")))),Object(a.createElement)(b.ToggleControl,{label:Object(i.__)("Hide Event Type Details","jetpack"),checked:O,onChange:function(){return o({hideEventTypeDetails:!O})}})),x&&Object(a.createElement)(b.Notice,{className:"".concat(n,"-color-notice"),isDismissible:!1},Object(a.createElement)(b.ExternalLink,{href:"https://help.calendly.com/hc/en-us/community/posts/360033166114-Embed-Widget-Color-Customization-Available-Now-"},Object(i.__)("Follow these instructions to change the colors in this block.","jetpack"))));return Object(a.createElement)("div",{className:n},G,H,x?"inline"===C?B:u?U:q:L)},save:function(e){var t=e.attributes.url;return Object(a.createElement)("a",{href:t},t)},attributes:l,example:{attributes:{submitButtonText:Object(i.__)("Schedule time with me","jetpack"),hideEventTypeDetails:!1,style:"inline",url:"https://calendly.com/wordpresscom/jetpack-block-example"}},transforms:{from:[{type:"raw",isMatch:function(e){return"P"===e.nodeName&&y.test(e.textContent)},transform:function(e){var t=_(e.textContent);return Object(o.createBlock)("jetpack/calendly",t)}}]}};Object(r.a)("calendly",O)},function(e,t,n){"use strict";n.r(t);var r,a=n(17),i=n(1),o=n(0),c=n(5),s=n(6),l=n(2),u=n(26),p=function(e){var t,n=e.id,r=e.setRating,a=e.children;return Object(o.createElement)("span",{className:"jetpack-ratings-button",tabIndex:0,role:"button",onKeyDown:(t=n,function(e){return e.keyCode===u.ENTER?r(t):null}),onClick:function(e){return function(){return r(e)}}(n)},a)},d=(n(217),n(134),{title:Object(i.__)("Star Rating","jetpack"),description:Object(i.__)("Rate movies, books, songs, recipes — anything you can put a number on.","jetpack"),icon:function(){return Object(o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(o.createElement)(l.Path,{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}))},keywords:[Object(i._x)("star","block search term","jetpack"),Object(i._x)("rating","block search term","jetpack"),Object(i._x)("review","block search term","jetpack")],category:"jetpack",example:{},styles:[{name:"filled",label:Object(i._x)("Filled","block style","jetpack"),isDefault:!0},{name:"outlined",label:Object(i._x)("Outlined","block style","jetpack")}],attributes:{rating:{type:"number",default:1},maxRating:{type:"number",default:5},color:{type:"string"},align:{type:"string",default:"left"}},edit:function(e){return function(t){var n=t.className,r=t.setAttributes,a=t.attributes,u=a.align,d=a.color,h=a.rating,m=a.maxRating,f=function(e){e===h&&Math.ceil(h)===h&&(e-=.5),r({rating:e})};return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(s.BlockControls,null,Object(o.createElement)(s.AlignmentToolbar,{value:u,onChange:function(e){return r({align:e})}})),Object(o.createElement)("div",{className:n,style:{textAlign:u}},Object(c.range)(1,m+1).map((function(t){return Object(o.createElement)(p,{key:t,id:t,setRating:f},Object(o.createElement)("span",null,Object(o.createElement)(e,{className:h>=t-.5?null:"is-rating-unfilled",color:d})),Object(o.createElement)("span",null,Object(o.createElement)(e,{className:h>=t?null:"is-rating-unfilled",color:d})))}))),Object(o.createElement)(s.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(i.__)("Settings","jetpack")},Object(o.createElement)(l.RangeControl,{label:Object(i.__)("Highest rating","jetpack"),value:m,onChange:function(e){return r({maxRating:e})},min:2,max:10}),Object(o.createElement)(s.PanelColorSettings,{title:Object(i.__)("Color Settings","jetpack"),initialOpen:!0,colorSettings:[{value:d,onChange:function(e){return r({color:e})},label:Object(i.__)("Color","jetpack")}]}))))}}((function(e){var t=function(e){return e&&e.color?e.color:"currentColor"}(e),n=function(e){return e&&e.className?e.className:""}(e);return Object(o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",color:t},Object(o.createElement)(l.Path,{className:n,fill:t,stroke:t,d:"M12,17.3l6.2,3.7l-1.6-7L22,9.2l-7.2-0.6L12,2L9.2,8.6L2,9.2L7.5,14l-1.6,7L12,17.3z"}))})),save:(r="★",function(e){var t=e.className,n=e.attributes,a=n.align,i=n.rating,s=n.color;return Object(o.createElement)("figure",{className:t,style:{textAlign:a}},Object(c.range)(1,i+1).map((function(e){return Object(o.createElement)("span",{key:e,style:{color:s}},r)})))})});Object(a.a)("rating-star",d)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(2),c=(n(161),n(24)),s=n(7),l=n.n(s),u=n(11),p=n.n(u),d=n(8),h=n.n(d),m=n(9),f=n.n(m),b=n(4),g=n.n(b),v=n(10),j=n.n(v),y=n(3),_=n.n(y),k=n(6),O=n(14),w=n(13),E=n(100),C=new(n.n(E).a),x=function(e){"A"===e.target.nodeName&&(window.confirm(Object(i.__)("Are you sure you wish to leave this page?","jetpack"))||e.preventDefault())},S=function(e){var t=e.className,n=e.source,r=void 0===n?"":n;return Object(a.createElement)(a.RawHTML,{className:t,onClick:x},r.length?C.render(r):"")},A=function(e){function t(){var e,n;l()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=h()(this,(e=f()(t)).call.apply(e,[this].concat(a))),_()(g()(n),"input",null),_()(g()(n),"state",{activePanel:"editor"}),_()(g()(n),"bindInput",(function(e){n.input=e})),_()(g()(n),"updateSource",(function(e){return n.props.setAttributes({source:e})})),_()(g()(n),"handleKeyDown",(function(e){var t=n.props,r=t.attributes,a=t.removeBlock,i=r.source;8===e.keyCode&&""===i&&(a(),e.preventDefault())})),_()(g()(n),"toggleMode",(function(e){return function(){return n.setState({activePanel:e})}})),n}return j()(t,e),p()(t,[{key:"componentDidUpdate",value:function(e){e.isSelected&&!this.props.isSelected&&"preview"===this.state.activePanel&&this.toggleMode("editor")(),!e.isSelected&&this.props.isSelected&&"editor"===this.state.activePanel&&this.input&&this.input.focus()}},{key:"isEmpty",value:function(){var e=this.props.attributes.source;return!e||""===e.trim()}},{key:"renderToolbarButton",value:function(e,t){var n=this.state.activePanel;return Object(a.createElement)("button",{className:"components-tab-button ".concat(n===e?"is-active":""),onClick:this.toggleMode(e)},Object(a.createElement)("span",null,t))}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.className,r=e.isSelected,o=t.source,c=this.state.activePanel;return!r&&this.isEmpty()?Object(a.createElement)("p",{className:"".concat(n,"__placeholder")},Object(i.__)("Write your _Markdown_ **here**…","jetpack")):Object(a.createElement)("div",{className:n},Object(a.createElement)(k.BlockControls,null,Object(a.createElement)("div",{className:"components-toolbar"},this.renderToolbarButton("editor",Object(i.__)("Markdown","jetpack")),this.renderToolbarButton("preview",Object(i.__)("Preview","jetpack")))),"preview"!==c&&r?Object(a.createElement)(k.PlainText,{className:"".concat(n,"__editor"),onChange:this.updateSource,onKeyDown:this.handleKeyDown,"aria-label":Object(i.__)("Markdown","jetpack"),innerRef:this.bindInput,value:o}):Object(a.createElement)(S,{className:"".concat(n,"__preview"),source:o}))}}]),t}(a.Component),F=Object(O.compose)([Object(w.withSelect)((function(e){return{currentBlockId:e("core/block-editor").getSelectedBlockClientId()}})),Object(w.withDispatch)((function(e,t){var n=t.currentBlockId;return{removeBlock:function(){return e("core/block-editor").removeBlocks(n)}}}))])(A),P=Object(i.__)("Try Markdown","jetpack"),T=Object(i.__)("Markdown is a text formatting syntax that is converted into HTML. You can _emphasize_ text or **make it strong** with just a few characters.","jetpack"),N=Object(c.b)()||Object(c.a)()?"https://en.support.wordpress.com/markdown-quick-reference/":"https://jetpack.com/support/jetpack-blocks/markdown-block/",M={title:Object(i.__)("Markdown","jetpack"),description:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("p",null,Object(i.__)("Use regular characters and punctuation to style text, links, and lists.","jetpack")),Object(a.createElement)(o.ExternalLink,{href:N},Object(i.__)("Support reference","jetpack"))),icon:Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 208 128"},Object(a.createElement)(o.Rect,{width:"198",height:"118",x:"5",y:"5",ry:"10",stroke:"currentColor",strokeWidth:"10",fill:"none"}),Object(a.createElement)(o.Path,{d:"M30 98v-68h20l20 25 20-25h20v68h-20v-39l-20 25-20-25v39zM155 98l-30-33h20v-35h20v35h20z"})),category:"jetpack",keywords:[Object(i._x)("formatting","block search term","jetpack"),Object(i._x)("syntax","block search term","jetpack"),Object(i._x)("markup","block search term","jetpack")],attributes:{source:{type:"string"}},supports:{html:!1},edit:F,save:function(e){var t=e.attributes,n=e.className;return Object(a.createElement)(S,{className:n,source:t.source})},example:{attributes:{source:"## ## ".concat(P,"\n\n").concat(T)}}};Object(r.a)("markdown",M)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(2),c=n(7),s=n.n(c),l=n(11),u=n.n(l),p=n(8),d=n.n(p),h=n(9),m=n.n(h),f=n(4),b=n.n(f),g=n(10),v=n.n(g),j=n(3),y=n.n(j),_=n(6),k=[{height:250,icon:Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(a.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(o.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-7-2h2V7h-4v2h2z"})),name:Object(i.__)("Rectangle 300x250","jetpack"),tag:"mrec",width:300,editorPadding:30},{height:90,icon:Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(a.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(o.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-4-4h-4v-2h2c1.1 0 2-.89 2-2V9c0-1.11-.9-2-2-2H9v2h4v2h-2c-1.1 0-2 .89-2 2v4h6v-2z"})),name:Object(i.__)("Leaderboard 728x90","jetpack"),tag:"leaderboard",width:728,editorPadding:60},{height:50,icon:Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(a.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(o.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-4-4v-1.5c0-.83-.67-1.5-1.5-1.5.83 0 1.5-.67 1.5-1.5V9c0-1.11-.9-2-2-2H9v2h4v2h-2v2h2v2H9v2h4c1.1 0 2-.89 2-2z"})),name:Object(i.__)("Mobile Leaderboard 320x50","jetpack"),tag:"mobile_leaderboard",width:320,editorPadding:100},{height:600,icon:Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(a.createElement)(o.Path,{fill:"none",d:"M.04 0h24v24h-24V0z"}),Object(a.createElement)(o.Path,{d:"M19.04 3h-14c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16h-14V5h14v14zm-6-2h2V7h-2v4h-2V7h-2v6h4z"})),name:Object(i.__)("Wide Skyscraper 160x600","jetpack"),tag:"wideskyscraper",width:160,editorPadding:30}],O=Object(i.__)("Pick an ad format","jetpack");function w(e){var t=e.value,n=e.onChange;return Object(a.createElement)(o.Dropdown,{position:"bottom right",renderToggle:function(e){var t=e.onToggle,n=e.isOpen;return Object(a.createElement)(o.Toolbar,{controls:[{icon:Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(o.Path,{d:"M1 9h2V7H1v2zm0 4h2v-2H1v2zm0-8h2V3c-1.1 0-2 .9-2 2zm8 16h2v-2H9v2zm-8-4h2v-2H1v2zm2 4v-2H1c0 1.1.9 2 2 2zM21 3h-8v6h10V5c0-1.1-.9-2-2-2zm0 14h2v-2h-2v2zM9 5h2V3H9v2zM5 21h2v-2H5v2zM5 5h2V3H5v2zm16 16c1.1 0 2-.9 2-2h-2v2zm0-8h2v-2h-2v2zm-8 8h2v-2h-2v2zm4 0h2v-2h-2v2z"})),title:O,onClick:t,extraProps:{"aria-expanded":n},className:"wp-block-jetpack-wordads__format-picker-icon"}]})},renderContent:function(e){var r=e.onClose;return Object(a.createElement)(o.NavigableMenu,{className:"wp-block-jetpack-wordads__format-picker"},k.map((function(e){var i=e.tag,c=e.name,s=e.icon;return Object(a.createElement)(o.MenuItem,{className:i===t?"is-active":void 0,icon:s,isSelected:i===t,key:i,onClick:function(){n(i),r()},role:"menuitemcheckbox"},c)})))}})}n(239);var E=n(119),C=n.n(E),x=n(120),S=n.n(x),A=n(121),F=n.n(A),P=n(122),T=n.n(P),N=function(e){function t(){var e,n;s()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=d()(this,(e=m()(t)).call.apply(e,[this].concat(a))),y()(b()(n),"handleHideMobileChange",(function(e){n.props.setAttributes({hideMobile:!!e})})),n}return v()(t,e),u()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.isSelected,c=t.format,s=t.hideMobile,l=k.filter((function(e){return e.tag===c}))[0],u=Object(a.createElement)(o.ToggleControl,{className:"jetpack-wordads__mobile-visibility",checked:Boolean(s),label:Object(i.__)("Hide ad on mobile views","jetpack"),onChange:this.handleHideMobileChange});return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(_.BlockControls,null,Object(a.createElement)(w,{value:c,onChange:function(e){return n({format:e})}})),Object(a.createElement)("div",{className:"wp-block-jetpack-wordads jetpack-wordads-".concat(c)},Object(a.createElement)("div",{className:"jetpack-wordads__ad",style:{width:l.width,height:l.height,backgroundImage:"url( ".concat(function(e){switch(e){case"leaderboard":return S.a;case"mobile_leaderboard":return F.a;case"wideskyscraper":return T.a;default:return C.a}}(c)," )"),backgroundSize:"cover"}}),r&&u))}}]),t}(a.Component),M=Object(i.__)("Ad","jetpack"),R=Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(a.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(o.Path,{fill:"currentColor",d:"M12,8H4A2,2 0 0,0 2,10V14A2,2 0 0,0 4,16H5V20A1,1 0 0,0 6,21H8A1,1 0 0,0 9,20V16H12L17,20V4L12,8M15,15.6L13,14H4V10H13L15,8.4V15.6M21.5,12C21.5,13.71 20.54,15.26 19,16V8C20.53,8.75 21.5,10.3 21.5,12Z"})),D={title:M,description:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("p",null,Object(i.__)("Earn income by adding high quality ads to your post","jetpack")),Object(a.createElement)(o.ExternalLink,{href:"https://wordads.co/"},Object(i.__)("Learn all about WordAds","jetpack"))),icon:R,attributes:{align:{type:"string",default:"center"},format:{type:"string",default:"mrec"},hideMobile:{type:"boolean",default:!1}},example:{attributes:{}},category:"jetpack",keywords:[Object(i.__)("ads","jetpack"),"WordAds",Object(i.__)("Advertisement","jetpack")],supports:{align:["left","center","right"],alignWide:!1,className:!1,customClassName:!1,html:!1,reusable:!1},edit:N,save:function(){return null}};Object(r.a)("wordads",D)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(2),c=(n(146),n(126),n(30)),s=n.n(c),l=n(7),u=n.n(l),p=n(11),d=n.n(p),h=n(8),m=n.n(h),f=n(9),b=n.n(f),g=n(4),v=n.n(g),j=n(10),y=n.n(j),_=n(3),k=n.n(_),O=n(23),w=n.n(O),E=n(12),C=n.n(E),x=n(58),S=n(6),A=n(15),F=n.n(A),P=n(5),T=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,c=new Array(r),s=0;s<r;s++)c[s]=arguments[s];return n=m()(this,(e=b()(t)).call.apply(e,[this].concat(c))),k()(v()(n),"renderInterval",(function(e,t){var r=n.props.day,c=e.opening,s=e.closing;return Object(a.createElement)(a.Fragment,{key:t},Object(a.createElement)("div",{className:"business-hours__row"},Object(a.createElement)("div",{className:C()(r.name,"business-hours__day")},0===t&&n.renderDayToggle()),Object(a.createElement)("div",{className:C()(r.name,"business-hours__hours")},Object(a.createElement)(o.TextControl,{type:"time",label:Object(i.__)("Opening","jetpack"),value:c,className:"business-hours__open",placeholder:"09:00",onChange:function(e){n.setHour(e,"opening",t)}}),Object(a.createElement)(o.TextControl,{type:"time",label:Object(i.__)("Closing","jetpack"),value:s,className:"business-hours__close",placeholder:"17:00",onChange:function(e){n.setHour(e,"closing",t)}})),Object(a.createElement)("div",{className:"business-hours__remove"},r.hours.length>1&&Object(a.createElement)(o.IconButton,{isSmall:!0,isLink:!0,icon:"trash",onClick:function(){n.removeInterval(t)}}))),t===r.hours.length-1&&Object(a.createElement)("div",{className:"business-hours__row business-hours-row__add"},Object(a.createElement)("div",{className:C()(r.name,"business-hours__day")}," "),Object(a.createElement)("div",{className:C()(r.name,"business-hours__hours")},Object(a.createElement)(o.IconButton,{isLink:!0,label:Object(i.__)("Add Hours","jetpack"),onClick:n.addInterval},Object(i.__)("Add Hours","jetpack"))),Object(a.createElement)("div",{className:"business-hours__remove"}," ")))})),k()(v()(n),"setHour",(function(e,t,r){var a=n.props,i=a.day,o=a.attributes;(0,a.setAttributes)({days:o.days.map((function(n){return n.name===i.name?F()({},n,{hours:n.hours.map((function(n,a){return a===r?F()({},n,k()({},t,e)):n}))}):n}))})})),k()(v()(n),"toggleClosed",(function(e){var t=n.props,r=t.day,a=t.attributes;(0,t.setAttributes)({days:a.days.map((function(t){if(t.name===r.name){var n=e?[{opening:"09:00",closing:"17:00"}]:[];return F()({},t,{hours:n})}return t}))})})),k()(v()(n),"addInterval",(function(){var e=n.props,t=e.day,r=e.attributes,a=e.setAttributes,i=r.days;t.hours.push({opening:"",closing:""}),a({days:i.map((function(e){return e.name===t.name?F()({},e,{hours:t.hours}):e}))})})),k()(v()(n),"removeInterval",(function(e){var t=n.props,r=t.day,a=t.attributes;(0,t.setAttributes)({days:a.days.map((function(t){return r.name===t.name?F()({},t,{hours:t.hours.filter((function(t,n){return e!==n}))}):t}))})})),n}return y()(t,e),d()(t,[{key:"isClosed",value:function(){var e=this.props.day;return Object(P.isEmpty)(e.hours)}},{key:"renderDayToggle",value:function(){var e=this.props,t=e.day,n=e.localization;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("span",{className:"business-hours__day-name"},n.days[t.name]),Object(a.createElement)(o.ToggleControl,{label:this.isClosed()?Object(i.__)("Closed","jetpack"):Object(i.__)("Open","jetpack"),checked:!this.isClosed(),onChange:this.toggleClosed}))}},{key:"renderClosed",value:function(){var e=this.props.day;return Object(a.createElement)("div",{className:"business-hours__row business-hours-row__closed"},Object(a.createElement)("div",{className:C()(e.name,"business-hours__day")},this.renderDayToggle()),Object(a.createElement)("div",{className:C()(e.name,"closed","business-hours__hours")}," "),Object(a.createElement)("div",{className:"business-hours__remove"}," "))}},{key:"render",value:function(){var e=this.props.day;return this.isClosed()?this.renderClosed():e.hours.map(this.renderInterval)}}]),t}(a.Component),N=n(18),M=n.n(N),R=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,o=new Array(r),c=0;c<r;c++)o[c]=arguments[c];return n=m()(this,(e=b()(t)).call.apply(e,[this].concat(o))),k()(v()(n),"renderInterval",(function(e,t){var r=n.props.day.hours;return Object(a.createElement)("span",{key:t},Object(i.sprintf)("%s - %s",n.formatTime(e.opening),n.formatTime(e.closing)),r.length>1+t&&Object(a.createElement)("span",null,", "))})),n}return y()(t,e),d()(t,[{key:"formatTime",value:function(e){var t=this.props.timeFormat,n=e.split(":"),r=M()(n,2),a=r[0],i=r[1],o=new Date;return!(!a||!i)&&(o.setHours(a),o.setMinutes(i),Object(x.date)(t,o))}},{key:"render",value:function(){var e=this,t=this.props,n=t.day,r=t.localization,o=n.hours.filter((function(t){return e.formatTime(t.opening)&&e.formatTime(t.closing)}));return Object(a.createElement)("div",{className:"jetpack-business-hours__item"},Object(a.createElement)("dt",{className:n.name},r.days[n.name]),Object(a.createElement)("dd",null,Object(P.isEmpty)(o)?Object(i._x)("Closed","business is closed on a full day","jetpack"):o.map(this.renderInterval),Object(a.createElement)("br",null)))}}]),t}(a.Component),D={days:{Sun:Object(i.__)("Sunday","jetpack"),Mon:Object(i.__)("Monday","jetpack"),Tue:Object(i.__)("Tuesday","jetpack"),Wed:Object(i.__)("Wednesday","jetpack"),Thu:Object(i.__)("Thursday","jetpack"),Fri:Object(i.__)("Friday","jetpack"),Sat:Object(i.__)("Saturday","jetpack")},startOfWeek:0},z=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=m()(this,(e=b()(t)).call.apply(e,[this].concat(a))),k()(v()(n),"state",{localization:D,hasFetched:!1}),n}return y()(t,e),d()(t,[{key:"componentDidMount",value:function(){this.apiFetch()}},{key:"apiFetch",value:function(){var e=this;this.setState({data:D},(function(){w()({path:"/wpcom/v2/business-hours/localized-week"}).then((function(t){e.setState({localization:t,hasFetched:!0})}),(function(){e.setState({localization:D,hasFetched:!0})}))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.className,c=t.isSelected,l=n.days,u=this.state,p=u.localization,d=u.hasFetched,h=p.startOfWeek,m=l.concat(l.slice(0,h)).slice(h);if(!d)return Object(a.createElement)(o.Placeholder,{icon:Object(a.createElement)(S.BlockIcon,{icon:B}),label:Object(i.__)("Loading business hours","jetpack")});if(!c){var f=Object(x.__experimentalGetSettings)().formats.time;return Object(a.createElement)("dl",{className:C()(r,"jetpack-business-hours")},m.map((function(e,t){return Object(a.createElement)(R,{key:t,day:e,localization:p,timeFormat:f})})))}return Object(a.createElement)("div",{className:C()(r,"is-edit")},m.map((function(t,n){return Object(a.createElement)(T,s()({key:n,day:t,localization:p},e.props))})))}}]),t}(a.Component),I=n(20),L=[{name:"Sun",hours:[]},{name:"Mon",hours:[{opening:"09:00",closing:"17:00"}]},{name:"Tue",hours:[{opening:"09:00",closing:"17:00"}]},{name:"Wed",hours:[{opening:"09:00",closing:"17:00"}]},{name:"Thu",hours:[{opening:"09:00",closing:"17:00"}]},{name:"Fri",hours:[{opening:"09:00",closing:"17:00"}]},{name:"Sat",hours:[]}],B=Object(I.a)(Object(a.createElement)(o.Path,{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"})),q={title:Object(i.__)("Business Hours","jetpack"),description:Object(i.__)("Display opening hours for your business.","jetpack"),icon:B,category:"jetpack",supports:{html:!0},keywords:[Object(i._x)("opening hours","block search term","jetpack"),Object(i._x)("closing time","block search term","jetpack"),Object(i._x)("schedule","block search term","jetpack")],attributes:{days:{type:"array",default:L}},edit:function(e){return Object(a.createElement)(z,e)},save:function(){return null},example:{attributes:{days:L}}};Object(r.a)("business-hours",q)},function(e,t,n){"use strict";n.r(t);n(36);var r=n(21),a=n.n(r),i=n(0),o=n(16),c=n(53);Object(o.setCategories)([].concat(a()(Object(o.getCategories)().filter((function(e){return"jetpack"!==e.slug}))),[{slug:"jetpack",title:"Jetpack",icon:Object(i.createElement)(c.a,null)}]));var s,l,u,p,d=n(15),h=n.n(d),m=n(23),f=n.n(m),b=n(13),g=n(1),v=(n(78),n(29)),j=n(35),y=n(24);function _(){var e=Object(j.a)();return void 0!==typeof window&&window.location&&e?Object(y.b)()||Object(y.a)()?"https://wordpress.com/plans/my-plan/".concat(e):"".concat(window.location.protocol,"//").concat(e.replace("::","/"),"/wp-admin/admin.php?page=jetpack#/my-plan"):null}if(regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===typeof window||!window.location){e.next=16;break}if(!Object(v.parse)(window.location.href,!0).query.plan_upgraded){e.next=16;break}if(s=null,e.prev=4,!Object(y.b)()){e.next=7;break}return e.abrupt("break",16);case 7:return e.next=9,regeneratorRuntime.awrap(f()({path:"/jetpack/v4/site"}));case 9:l=e.sent,u=JSON.parse(l.data),s=u.plan.product_name;case 12:return e.prev=12,p=_(),Object(b.dispatch)("core/notices").createNotice("success",s?Object(g.sprintf)(Object(g.__)("Congratulations! Your site is now on the %s plan.","jetpack"),s):Object(g.__)("Congratulations! Your site is now on a paid plan.","jetpack"),h()({isDismissible:!0},p&&{actions:[{url:_(),label:Object(g.__)("View my plan","jetpack")}]})),e.finish(12);case 16:case"end":return e.stop()}}),null,null,[[4,,12,16]]),void 0!==typeof window&&window.location){var k=Object(v.parse)(window.location.href,!0).query;k.stripe_connect_success?Object(b.dispatch)("core/notices").createNotice("success",Object(g.__)("Congrats! Your site is now connected to Stripe. You can start making money by adding your first subscription!","jetpack")):k.stripe_connect_cancelled&&Object(b.dispatch)("core/notices").createNotice("error",Object(g.__)("You cancelled connecting your site to Stripe.","jetpack"))}var O=n(50);if("object"==typeof window&&"object"==typeof window.Jetpack_Editor_Initial_State&&"object"==typeof window.Jetpack_Editor_Initial_State.tracksUserData&&void 0!==window.Jetpack_Editor_Initial_State.wpcomBlogId){var w=window.Jetpack_Editor_Initial_State.tracksUserData,E=w.userid,C=w.username;O.a.initialize(E,C,{blog_id:window.Jetpack_Editor_Initial_State.wpcomBlogId})}},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(2),c=n(16),s=n(7),l=n.n(s),u=n(11),p=n.n(u),d=n(8),h=n.n(d),m=n(9),f=n.n(m),b=n(4),g=n.n(b),v=n(10),j=n.n(v),y=n(3),_=n.n(y),k=n(5),O=n(6),w=n(23),E=n.n(w),C=n(31);function x(e){if(!F.test(e))return"";var t=Object(C.getPath)(e);return t?t.startsWith("pin/")?"embedPin":t.match(/^([^/]+)\/?$/)?"embedUser":t.match(/^([^/]+)\/([^/]+)\/?$/)?"embedBoard":"":""}var S=/^\s*https?:\/\/pin\.it\//i,A=function(e){function t(){var e;return l()(this,t),e=h()(this,f()(t).apply(this,arguments)),_()(g()(e),"resolveRedirect",(function(){var t=e.props.attributes.url;e.fetchRequest=E()({path:"/wpcom/v2/resolve-redirect/".concat(t)}),e.fetchRequest.then((function(t){e.fetchRequest=null,e.props.setAttributes({url:t.url}),e.setState({resolvingRedirect:!1,editedUrl:t.url})}),(function(t){"abort"!==t.statusText&&(e.fetchRequest=null,e.setState({resolvingRedirect:!1,editingUrl:!0}))}))})),_()(g()(e),"hideOverlay",(function(){e.setState({interactive:!0})})),_()(g()(e),"setUrl",(function(t){t&&t.preventDefault();var n=e.state.editedUrl;e.props.setAttributes({url:n}),e.setState({editingUrl:!1}),S.test(n)&&e.setState({resolvingRedirect:!0})})),e.state={editedUrl:e.props.attributes.url||"",editingUrl:!1,resolvingRedirect:S.test(e.props.attributes.url),interactive:!1},e}return j()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.state.resolvingRedirect&&this.resolveRedirect()}},{key:"componentDidUpdate",value:function(e,t){!t.resolvingRedirect&&this.state.resolvingRedirect&&this.resolveRedirect()}},{key:"componentWillUnmount",value:function(){Object(k.invoke)(this.fetchRequest,["abort"])}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.className,s=n.url,l=this.state,u=l.editedUrl,p=l.interactive,d=l.editingUrl;if(l.resolvingRedirect)return Object(a.createElement)("div",{className:"wp-block-embed is-loading"},Object(a.createElement)(o.Spinner,null),Object(a.createElement)("p",null,Object(i.__)("Embedding…")));var h=x(s),m="<a data-pin-do='".concat(h,"' href='").concat(s,"'></a>"),f=s&&!h,b=Object(a.createElement)(O.BlockControls,null,Object(a.createElement)(o.Toolbar,null,Object(a.createElement)(o.IconButton,{className:"components-toolbar__control",label:Object(i.__)("Edit URL","jetpack"),icon:"edit",onClick:function(){return e.setState({editingUrl:!0})}})));return d||!s||f?Object(a.createElement)("div",{className:r},b,Object(a.createElement)(o.Placeholder,{label:Object(i.__)("Pinterest","jetpack"),icon:Object(a.createElement)(O.BlockIcon,{icon:T})},Object(a.createElement)("form",{onSubmit:this.setUrl},Object(a.createElement)("input",{type:"url",value:u,className:"components-placeholder__input","aria-label":Object(i.__)("Pinterest URL","jetpack"),placeholder:Object(i.__)("Enter URL to embed here…","jetpack"),onChange:function(t){return e.setState({editedUrl:t.target.value})}}),Object(a.createElement)(o.Button,{isLarge:!0,isSecondary:!0,type:"submit"},Object(i._x)("Embed","button label","jetpack")),f&&Object(a.createElement)("p",{className:"components-placeholder__error"},Object(i.__)("Sorry, this content could not be embedded.","jetpack"),Object(a.createElement)("br",null),Object(a.createElement)(o.Button,{isLarge:!0,onClick:function(){return function(e,t){var n=Object(a.createElement)("a",{href:e},e);t(Object(c.createBlock)("core/paragraph",{content:Object(a.renderToString)(n)}))}(u,e.props.onReplace)}},Object(i._x)("Convert block to link","button label","jetpack")))))):Object(a.createElement)("div",{className:r},b,Object(a.createElement)("div",null,Object(a.createElement)(o.SandBox,{html:m,scripts:["https://assets.pinterest.com/js/pinit.js"],onFocus:this.hideOverlay}),!p&&Object(a.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(a.Component),F=/^\s*https?:\/\/(?:www\.)?(?:[a-z]{2}\.)?(?:pinterest\.[a-z.]+|pin\.it)\/([^/]+)(\/[^/]+)?/i,P=Object(i.__)("Pinterest","jetpack"),T=Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(o.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(a.createElement)(o.G,null,Object(a.createElement)(o.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,4.236,2.636,7.855,6.356,9.312c-0.087-0.791-0.166-2.005,0.035-2.869c0.182-0.78,1.173-4.971,1.173-4.971s-0.299-0.599-0.299-1.484c0-1.39,0.806-2.429,1.809-2.429c0.853,0,1.265,0.641,1.265,1.409c0,0.858-0.546,2.141-0.828,3.329c-0.236,0.996,0.499,1.807,1.481,1.807c1.777,0,3.144-1.874,3.144-4.579c0-2.394-1.72-4.068-4.177-4.068c-2.845,0-4.515,2.134-4.515,4.34c0,0.859,0.331,1.781,0.744,2.282c0.082,0.099,0.094,0.186,0.069,0.287C8.18,14.682,8.011,15.361,7.978,15.5c-0.044,0.183-0.145,0.222-0.334,0.134c-1.249-0.581-2.03-2.407-2.03-3.874c0-3.154,2.292-6.051,6.607-6.051c3.469,0,6.165,2.472,6.165,5.775c0,3.446-2.173,6.22-5.189,6.22c-1.013,0-1.966-0.526-2.292-1.148c0,0-0.501,1.909-0.623,2.377c-0.226,0.869-0.835,1.957-1.243,2.622C9.975,21.844,10.969,22,12,22c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2z"}))),N={title:P,description:Object(i.__)("Embed a Pinterest pin, board, or user.","jetpack"),icon:T,category:"jetpack",supports:{align:!1,html:!1},attributes:{url:{type:"string"}},edit:A,save:function(e){var t=e.attributes,n=e.className,r=t.url;return x(r)?Object(a.createElement)("div",{className:n},Object(a.createElement)("a",{"data-pin-do":x(r),href:r})):null},transforms:{from:[{type:"raw",isMatch:function(e){return"P"===e.nodeName&&F.test(e.textContent)},transform:function(e){return Object(c.createBlock)("jetpack/pinterest",{url:e.textContent.trim()})}}]},example:{attributes:{url:"https://pinterest.com/anapinskywalker/"}}};Object(r.a)("pinterest",N)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(2),c=n(20),s=n(7),l=n.n(s),u=n(11),p=n.n(u),d=n(8),h=n.n(d),m=n(9),f=n.n(m),b=n(4),g=n.n(b),v=n(10),j=n.n(v),y=n(3),_=n.n(y),k=n(6),O=n(13),w=n(12),E=n.n(w),C=n(33),x=[{value:C.b,label:Object(i.__)("Show after threshold","jetpack")},{value:C.c,label:Object(i.__)("Show before threshold","jetpack")}],S=function(e){function t(){var e,n;l()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=h()(this,(e=f()(t)).call.apply(e,[this].concat(a))),_()(g()(n),"state",{isThresholdValid:!0}),_()(g()(n),"setCriteria",(function(e){return n.props.setAttributes({criteria:e})})),_()(g()(n),"setThreshold",(function(e){if(/^\d+$/.test(e)&&+e>0)return n.props.setAttributes({threshold:+e}),void n.setState({isThresholdValid:!0});n.setState({isThresholdValid:!1})})),n}return j()(t,e),p()(t,[{key:"getNoticeLabel",value:function(){return this.props.attributes.criteria===C.b?Object(i.sprintf)(Object(i._n)("This block will only appear to people who have visited this page more than once.","This block will only appear to people who have visited this page more than %d times.",+this.props.attributes.threshold,"jetpack"),this.props.attributes.threshold):Object(i.sprintf)(Object(i._n)("This block will only appear to people who are visiting this page for the first time.","This block will only appear to people who have visited this page at most %d times.",+this.props.attributes.threshold,"jetpack"),this.props.attributes.threshold)}},{key:"render",value:function(){return Object(a.createElement)("div",{className:E()(this.props.className,{"wp-block-jetpack-repeat-visitor--is-unselected":!this.props.isSelected})},Object(a.createElement)(o.Placeholder,{icon:F,label:Object(i.__)("Repeat Visitor","jetpack"),className:"wp-block-jetpack-repeat-visitor-placeholder"},Object(a.createElement)(o.TextControl,{className:"wp-block-jetpack-repeat-visitor-threshold",defaultValue:this.props.attributes.threshold,help:this.state.isThresholdValid?"":Object(i.__)("Please enter a valid number.","jetpack"),label:Object(i.__)("Visit count threshold","jetpack"),min:"1",onChange:this.setThreshold,pattern:"[0-9]",type:"number"}),Object(a.createElement)(o.RadioControl,{label:Object(i.__)("Visibility","jetpack"),selected:this.props.attributes.criteria,options:x,onChange:this.setCriteria})),Object(a.createElement)(o.Notice,{status:"info",isDismissible:!1},this.getNoticeLabel()),Object(a.createElement)(k.InnerBlocks,null))}}]),t}(a.Component),A=Object(O.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.isBlockSelected,a=n.hasSelectedInnerBlock;return{isSelected:r(t.clientId)||a(t.clientId)}}))(S),F=(n(228),Object(c.a)(Object(a.createElement)(o.Path,{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}))),P={attributes:{criteria:{type:"string",default:C.b},threshold:{type:"number",default:C.d}},category:"jetpack",description:Object(i.__)("Control block visibility based on how often a visitor has viewed the page.","jetpack"),icon:F,keywords:[Object(i._x)("return","block search term","jetpack"),Object(i._x)("visitors","block search term","jetpack"),Object(i._x)("visibility","block search term","jetpack")],supports:{html:!1},title:Object(i.__)("Repeat Visitor","jetpack"),edit:A,save:function(e){var t=e.className;return Object(a.createElement)("div",{className:t},Object(a.createElement)(k.InnerBlocks.Content,null))},example:{attributes:{criteria:C.b,threshold:C.d},innerBlocks:[{name:"core/paragraph",attributes:{content:Object(i.__)("This block will only appear to a visitor who visited the page three or more times.","jetpack")}}]}};Object(r.a)("repeat-visitor",P)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(2),c=n(21),s=n.n(c),l=n(7),u=n.n(l),p=n(8),d=n.n(p),h=n(9),m=n.n(h),f=n(4),b=n.n(f),g=n(10),v=n.n(g),j=n(3),y=n.n(j),_=n(23),k=n.n(_),O=n(12),w=n.n(O),E=n(32),C=n(6),x=n(11),S=n.n(x),A=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,i=new Array(r),c=0;c<r;c++)i[c]=arguments[c];return n=d()(this,(e=m()(t)).call.apply(e,[this].concat(i))),y()(b()(n),"state",{interest_categories:[]}),y()(b()(n),"retrieveGroups",(function(){k()({method:"GET",path:"/wpcom/v2/mailchimp/groups"}).then((function(e){var t=e.interest_categories;n.setState({interest_categories:t})}))})),y()(b()(n),"render",(function(){var e=n.state.interest_categories,t=n.props,r=t.interests,i=t.onChange;return Object(a.createElement)(a.Fragment,null,e&&(e||[]).map((function(e){return e.interests.map((function(e){return Object(a.createElement)(o.CheckboxControl,{label:e.name,value:e.id,checked:r.includes(e.id),onChange:function(t){return i(e.id,t)},key:e.id})}))})))})),n}return v()(t,e),S()(t,[{key:"componentDidMount",value:function(){this.retrieveGroups()}}]),t}(a.Component),F=A;A.defaultProps={interests:[],onChange:function(){return null}};var P=function(e){function t(){var e;return u()(this,t),e=d()(this,m()(t).apply(this,arguments)),y()(b()(e),"componentDidMount",(function(){e.apiCall()})),y()(b()(e),"onError",(function(t){var n=e.props.noticeOperations;n.removeAllNotices(),n.createErrorNotice(t)})),y()(b()(e),"apiCall",(function(){var t={path:"/wpcom/v2/mailchimp",method:"GET"};k()(t).then((function(t){var n=t.connect_url,r="connected"===t.code?1:2;e.setState({connected:r,connectURL:n})}),(function(t){e.setState({connected:2,connectURL:null}),e.onError(t.message)}))})),y()(b()(e),"auditionNotification",(function(t){e.setState({audition:t}),e.timeout&&clearTimeout(e.timeout),e.timeout=setTimeout(e.clearAudition,3e3)})),y()(b()(e),"clearAudition",(function(){e.setState({audition:null})})),y()(b()(e),"updateProcessingText",(function(t){(0,e.props.setAttributes)({processingLabel:t}),e.auditionNotification("processing")})),y()(b()(e),"updateSuccessText",(function(t){(0,e.props.setAttributes)({successLabel:t}),e.auditionNotification("success")})),y()(b()(e),"updateErrorText",(function(t){(0,e.props.setAttributes)({errorLabel:t}),e.auditionNotification("error")})),y()(b()(e),"updateEmailPlaceholder",(function(t){(0,e.props.setAttributes)({emailPlaceholder:t}),e.clearAudition()})),y()(b()(e),"labelForAuditionType",(function(t){var n=e.props.attributes,r=n.processingLabel,a=n.successLabel,i=n.errorLabel;return"processing"===t?r:"success"===t?a:"error"===t?i:null})),y()(b()(e),"roleForAuditionType",(function(e){return"error"===e?"alert":"status"})),y()(b()(e),"render",(function(){var t=e.props,n=t.attributes,r=t.className,c=t.notices,l=t.noticeUI,u=t.setAttributes,p=e.state,d=p.audition,h=p.connected,m=p.connectURL,f=n.emailPlaceholder,b=n.consentText,g=n.interests,v=n.processingLabel,j=n.successLabel,_=n.errorLabel,k=n.preview,O=n.signupFieldTag,x=n.signupFieldValue,S="wp-block-jetpack-mailchimp_",A=Object(a.createElement)(o.Placeholder,{icon:N,notices:c},Object(a.createElement)(o.Spinner,null)),P=Object(a.createElement)(o.Placeholder,{className:"wp-block-jetpack-mailchimp",icon:N,label:Object(i.__)("Mailchimp","jetpack"),notices:c,instructions:Object(i.__)("You need to connect your Mailchimp account and choose a list in order to start collecting Email subscribers.","jetpack")},Object(a.createElement)("div",null,Object(a.createElement)(o.Button,{isDefault:!0,isLarge:!0,href:m,target:"_blank"},Object(i.__)("Set up Mailchimp form","jetpack"))),Object(a.createElement)(o.Button,{isLink:!0,onClick:e.apiCall},Object(i.__)("Re-check Connection","jetpack"))),T=Object(a.createElement)(C.InspectorControls,null,Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Text Elements","jetpack")},Object(a.createElement)(o.TextControl,{label:Object(i.__)("Email Placeholder","jetpack"),value:f,onChange:e.updateEmailPlaceholder})),Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Notifications","jetpack")},Object(a.createElement)(o.TextControl,{label:Object(i.__)("Processing text","jetpack"),value:v,onChange:e.updateProcessingText}),Object(a.createElement)(o.TextControl,{label:Object(i.__)("Success text","jetpack"),value:j,onChange:e.updateSuccessText}),Object(a.createElement)(o.TextControl,{label:Object(i.__)("Error text","jetpack"),value:_,onChange:e.updateErrorText})),Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Mailchimp Groups","jetpack")},Object(a.createElement)(F,{interests:g,onChange:function(e,t){var n=s()(new Set([].concat(s()(g),[e]))).filter((function(n){return!(n===e&&!t)&&n}));u({interests:n})}}),Object(a.createElement)(o.ExternalLink,{href:"https://mailchimp.com/help/send-groups-audience/"},Object(i.__)("Learn about groups","jetpack"))),Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Signup Location Tracking","jetpack")},Object(a.createElement)(o.TextControl,{label:Object(i.__)("Signup Field Tag","jetpack"),placeholder:Object(i.__)("SIGNUP"),value:O,onChange:function(e){return u({signupFieldTag:e})}}),Object(a.createElement)(o.TextControl,{label:Object(i.__)("Signup Field Value","jetpack"),placeholder:Object(i.__)("website"),value:x,onChange:function(e){return u({signupFieldValue:e})}}),Object(a.createElement)(o.ExternalLink,{href:"https://mailchimp.com/help/determine-webpage-signup-location/"},Object(i.__)("Learn about signup location tracking","jetpack"))),Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Mailchimp Connection","jetpack")},Object(a.createElement)(o.ExternalLink,{href:m},Object(i.__)("Manage Connection","jetpack")))),M=w()(r,y()({},"".concat(S,"notication-audition"),d)),R=Object(a.createElement)("div",{className:M},Object(a.createElement)(o.TextControl,{"aria-label":f,className:"wp-block-jetpack-mailchimp_text-input",disabled:!0,onChange:function(){return!1},placeholder:f,title:Object(i.__)("You can edit the email placeholder in the sidebar.","jetpack"),type:"email"}),Object(a.createElement)(E.a,e.props),Object(a.createElement)(C.RichText,{tagName:"p",placeholder:Object(i.__)("Write consent text","jetpack"),value:b,onChange:function(e){return u({consentText:e})},inlineToolbar:!0}),d&&Object(a.createElement)("div",{className:"".concat(S,"notification ").concat(S).concat(d),role:e.roleForAuditionType(d)},e.labelForAuditionType(d))),D=R;return Object(a.createElement)(a.Fragment,null,l,k&&D,!k&&0===h&&A,!k&&2===h&&P,!k&&1===h&&T,!k&&1===h&&R)})),e.state={audition:null,connected:0,connectURL:null},e.timeout=null,e}return v()(t,e),t}(a.Component),T=Object(o.withNotices)(P),N=(n(156),Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(a.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(o.Path,{d:"M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"}))),M={title:Object(i.__)("Mailchimp","jetpack"),icon:N,description:Object(i.__)("A form enabling readers to join a Mailchimp list.","jetpack"),category:"jetpack",keywords:[Object(i._x)("email","block search term","jetpack"),Object(i._x)("subscription","block search term","jetpack"),Object(i._x)("newsletter","block search term","jetpack")],attributes:{emailPlaceholder:{type:"string",default:Object(i.__)("Enter your email","jetpack")},submitButtonText:{type:"string",default:Object(i.__)("Join my email list","jetpack")},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},consentText:{type:"string",default:Object(i.__)("By clicking submit, you agree to share your email address with the site owner and Mailchimp to receive marketing, updates, and other emails from the site owner. Use the unsubscribe link in those emails to opt out at any time.","jetpack")},interests:{type:"array",default:[]},processingLabel:{type:"string",default:Object(i.__)("Processing…","jetpack")},signupFieldTag:{type:"string"},signupFieldValue:{type:"string"},successLabel:{type:"string",default:Object(i.__)("Success! You're on the list.","jetpack")},errorLabel:{type:"string",default:Object(i.__)("Whoops! There was an error and we couldn't process your subscription. Please reload the page and try again.","jetpack")},preview:{type:"boolean",default:!1}},edit:T,save:function(){return null},example:{attributes:{preview:!0}}};Object(r.a)("mailchimp",M)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(2),o=n(1),c=n(7),s=n.n(c),l=n(11),u=n.n(l),p=n(8),d=n.n(p),h=n(9),m=n.n(h),f=n(4),b=n.n(f),g=n(10),v=n.n(g),j=n(3),y=n.n(j),_=n(12),k=n.n(_),O=n(32),w=n(23),E=n.n(w),C=n(5),x=n(45),S=n(49),A=n(31),F=n(14),P=n(13),T=n(6),N=n(40),M=n(56),R=n.n(M),D=n(50),z=n(57),I=(n(218),function(e){var t=e.stripeConnectUrl;return Object(a.createElement)(z.a,{buttonLabel:Object(o.__)("Connect","jetpack"),icon:Object(a.createElement)(R.a,{className:"jetpack-stripe-nudge__icon",size:18,"aria-hidden":"true",role:"img",focusable:"false"}),href:t,onClick:function(e){D.a.tracks.recordEvent("jetpack_editor_block_stripe_connect_click",{block:e})},title:Object(o.__)("Connect to Stripe to use this block on your site","jetpack"),subtitle:Object(o.__)("This block will be hidden from your visitors until you connect to Stripe.","jetpack")})}),L=function(e){function t(){var e;s()(this,t),e=d()(this,m()(t).apply(this,arguments)),y()(b()(e),"componentDidMount",(function(){e.apiCall()})),y()(b()(e),"onError",(function(t){var n=e.props.noticeOperations;n.removeAllNotices(),n.createErrorNotice(t)})),y()(b()(e),"apiCall",(function(){var t={path:"/wpcom/v2/memberships/status",method:"GET"};E()(t).then((function(t){if(t.errors&&Object.values(t.errors)&&Object.values(t.errors)[0][0])return e.setState({connected:null,connectURL:2}),void e.onError(Object.values(t.errors)[0][0]);var n=t.connect_url,r=t.products,a=t.should_upgrade_to_access_memberships,i=t.upgrade_url,o=t.site_slug,c=t.connected_account_id?1:2;e.setState({connected:c,connectURL:n,products:r,shouldUpgrade:a,upgradeURL:i,siteSlug:o})}),(function(t){e.setState({connected:2,connectURL:null}),e.onError(t.message)}))})),y()(b()(e),"getCurrencyList",V.map((function(e){var t=Object(x.a)(e).symbol;return{value:e,label:t===e?e:"".concat(e," ").concat(Object(C.trimEnd)(t,"."))}}))),y()(b()(e),"handleCurrencyChange",(function(t){return e.setState({editedProductCurrency:t})})),y()(b()(e),"handleRenewIntervalChange",(function(t){return e.setState({editedProductRenewInterval:t})})),y()(b()(e),"handlePriceChange",(function(t){t=parseFloat(t),e.setState({editedProductPrice:t,editedProductPriceValid:!isNaN(t)&&t>=5})})),y()(b()(e),"handleTitleChange",(function(t){return e.setState({editedProductTitle:t,editedProductTitleValid:t.length>0})})),y()(b()(e),"saveProduct",(function(){if(e.state.editedProductTitle&&0!==e.state.editedProductTitle.length)if(!e.state.editedProductPrice||isNaN(e.state.editedProductPrice)||e.state.editedProductPrice<5)e.setState({editedProductPriceValid:!1});else{e.setState({addingMembershipAmount:2});var t={path:"/wpcom/v2/memberships/product",method:"POST",data:{currency:e.state.editedProductCurrency,price:e.state.editedProductPrice,title:e.state.editedProductTitle,interval:e.state.editedProductRenewInterval}};E()(t).then((function(t){e.setState({addingMembershipAmount:0,products:e.state.products.concat([{id:t.id,title:t.title,interval:t.interval,price:t.price,currency:t.currency}])}),e.setMembershipAmount(t.id)}),(function(t){e.setState({addingMembershipAmount:1}),e.onError(t.message)}))}else e.setState({editedProductTitleValid:!1})})),y()(b()(e),"renderAmount",(function(e){var t=Object(S.a)(parseFloat(e.price),e.currency);return"1 month"===e.interval?Object(o.sprintf)(Object(o.__)("%s / month","jetpack"),t):"1 year"===e.interval?Object(o.sprintf)(Object(o.__)("%s / year","jetpack"),t):"one-time"===e.interval?t:Object(o.sprintf)(Object(o.__)("%s / %s","jetpack"),t,e.interval)})),y()(b()(e),"renderAddMembershipAmount",(function(t){return 0!==e.state.addingMembershipAmount||t?2!==e.state.addingMembershipAmount?Object(a.createElement)("div",null,Object(a.createElement)("div",{className:"membership-button__price-container"},Object(a.createElement)(i.SelectControl,{className:"membership-button__field membership-button__field-currency",label:Object(o.__)("Currency","jetpack"),onChange:e.handleCurrencyChange,options:e.getCurrencyList,value:e.state.editedProductCurrency}),Object(a.createElement)(i.TextControl,{label:Object(o.__)("Price","jetpack"),className:k()({"membership-membership-button__field":!0,"membership-button__field-price":!0,"membership-button__field-error":!e.state.editedProductPriceValid}),onChange:e.handlePriceChange,placeholder:Object(S.a)(0,e.state.editedProductCurrency),required:!0,min:"5.00",step:"1",type:"number",value:e.state.editedProductPrice||""})),Object(a.createElement)(i.TextControl,{className:k()({"membership-button__field":!0,"membership-button__field-error":!e.state.editedProductTitleValid}),label:Object(o.__)("Describe your subscription in a few words","jetpack"),onChange:e.handleTitleChange,placeholder:Object(o.__)("Subscription description","jetpack"),value:e.state.editedProductTitle}),Object(a.createElement)(i.SelectControl,{label:Object(o.__)("Renew interval","jetpack"),onChange:e.handleRenewIntervalChange,options:[{label:Object(o.__)("Monthly","jetpack"),value:"1 month"},{label:Object(o.__)("Yearly","jetpack"),value:"1 year"}],value:e.state.editedProductRenewInterval}),Object(a.createElement)("div",null,Object(a.createElement)(i.Button,{isPrimary:!0,isLarge:!0,className:"membership-button__field-button membership-button__add-amount",onClick:e.saveProduct},Object(o.__)("Add this plan","jetpack")),Object(a.createElement)(i.Button,{isLarge:!0,className:"membership-button__field-button",onClick:function(){return e.setState({addingMembershipAmount:0})}},Object(o.__)("Cancel","jetpack")))):void 0:Object(a.createElement)(i.Button,{isPrimary:!0,isLarge:!0,onClick:function(){return e.setState({addingMembershipAmount:1})}},Object(o.__)("Add a plan","jetpack"))})),y()(b()(e),"getFormattedPriceByProductId",(function(t){var n=e.state.products.filter((function(e){return parseInt(e.id)===parseInt(t)})).pop();return Object(S.a)(parseFloat(n.price),n.currency)})),y()(b()(e),"setMembershipAmount",(function(t){return e.props.setAttributes({planId:t,submitButtonText:e.getFormattedPriceByProductId(t)+Object(o.__)(" Contribution","jetpack")})})),y()(b()(e),"renderMembershipAmounts",(function(){return Object(a.createElement)("div",null,e.state.products.map((function(t){return Object(a.createElement)(i.Button,{className:"membership-button__field-button",isLarge:!0,key:t.id,onClick:function(){return e.setMembershipAmount(t.id)}},e.renderAmount(t))})))})),y()(b()(e),"renderDisclaimer",(function(){return Object(a.createElement)("div",{className:"membership-button__disclaimer"},Object(a.createElement)(i.ExternalLink,{href:"https://en.support.wordpress.com/recurring-payments-button/#related-fees"},Object(o.__)("Read more about Recurring Payments and related fees.","jetpack")))})),y()(b()(e),"render",(function(){var t=e.props,n=t.attributes,r=t.className,c=t.notices,s=e.state,l=s.connected,u=s.products,p=n.align,d=e.getConnectUrl(),h=Object(a.createElement)(T.InspectorControls,null,Object(a.createElement)(i.PanelBody,{title:Object(o.__)("Product","jetpack")},Object(a.createElement)(i.SelectControl,{label:Object(o.__)("Payment plan","jetpack"),value:e.props.attributes.planId,onChange:e.setMembershipAmount,options:e.state.products.map((function(t){return{label:e.renderAmount(t),value:t.id,key:t.id}}))})),Object(a.createElement)(i.PanelBody,{title:Object(o.__)("Management","jetpack")},Object(a.createElement)(i.ExternalLink,{href:"https://wordpress.com/earn/payments/".concat(e.state.siteSlug)},Object(o.__)("See your earnings, subscriber list, and products.","jetpack")))),m=k()(r,["wp-block-button__link","components-button","is-primary","is-button","align".concat(p)]),f=Object(a.createElement)(O.a,{className:m,submitButtonText:e.props.attributes.submitButtonText,attributes:e.props.attributes,setAttributes:e.props.setAttributes});return Object(a.createElement)(a.Fragment,null,e.props.noticeUI,!e.hasUpgradeNudge&&!e.state.shouldUpgrade&&2===l&&Object(a.createElement)(I,{blockName:"recurring-payments",stripeConnectUrl:d}),!e.hasUpgradeNudge&&e.state.shouldUpgrade&&Object(a.createElement)("div",{className:"wp-block-jetpack-recurring-payments"},Object(a.createElement)(i.Placeholder,{icon:Object(a.createElement)(T.BlockIcon,{icon:q}),label:Object(o.__)("Recurring Payments","jetpack"),notices:c,instructions:Object(o.__)("You'll need to upgrade your plan to use the Recurring Payments button.","jetpack")},Object(a.createElement)(i.Button,{isSecondary:!0,isLarge:!0,href:e.state.upgradeURL,target:"_blank"},Object(o.__)("Upgrade Your Plan","jetpack")),e.renderDisclaimer())),(0===l||2===e.state.addingMembershipAmount)&&!e.props.attributes.planId&&Object(a.createElement)(i.Placeholder,{icon:Object(a.createElement)(T.BlockIcon,{icon:q}),notices:c},Object(a.createElement)(i.Spinner,null)),!e.state.shouldUpgrade&&!e.props.attributes.planId&&1===l&&0===u.length&&Object(a.createElement)("div",{className:"wp-block-jetpack-recurring-payments"},Object(a.createElement)(i.Placeholder,{icon:Object(a.createElement)(T.BlockIcon,{icon:q}),label:Object(o.__)("Recurring Payments","jetpack"),notices:c},Object(a.createElement)("div",{className:"components-placeholder__instructions"},Object(a.createElement)("p",null,Object(o.__)("To use this block, first add at least one payment plan.","jetpack")),e.renderAddMembershipAmount(!0),e.renderDisclaimer()))),!e.state.shouldUpgrade&&!e.props.attributes.planId&&2!==e.state.addingMembershipAmount&&1===l&&u.length>0&&Object(a.createElement)("div",{className:"wp-block-jetpack-recurring-payments"},Object(a.createElement)(i.Placeholder,{icon:Object(a.createElement)(T.BlockIcon,{icon:q}),label:Object(o.__)("Recurring Payments","jetpack"),notices:c},Object(a.createElement)("div",{className:"components-placeholder__instructions"},Object(a.createElement)("p",null,Object(o.__)("To use this block, select a previously created payment plan.","jetpack")),e.renderMembershipAmounts(),Object(a.createElement)("p",null,Object(o.__)("Or a new one.","jetpack")),e.renderAddMembershipAmount(!1),e.renderDisclaimer()))),e.state.products&&h,((e.hasUpgradeNudge||!e.state.shouldUpgrade)&&0!==l||e.props.attributes.planId)&&f,e.hasUpgradeNudge&&2===l&&Object(a.createElement)("div",{className:"wp-block-jetpack-recurring-payments disclaimer-only"},e.renderDisclaimer()))})),e.state={connected:0,connectURL:null,addingMembershipAmount:0,shouldUpgrade:!1,upgradeURL:"",products:[],siteSlug:"",editedProductCurrency:"USD",editedProductPrice:5,editedProductPriceValid:!0,editedProductTitle:"",editedProductTitleValid:!0,editedProductRenewInterval:"1 month"},e.timeout=null;var n=Object(N.a)("recurring-payments");return e.hasUpgradeNudge=!n.available&&"missing_plan"===n.unavailableReason,e}return v()(t,e),u()(t,[{key:"getConnectUrl",value:function(){var e,t=this.props.postId,n=this.state.connectURL;if(!Object(A.isURL)(n))return null;if(!t)return n;try{var r=Object(A.getQueryArg)(n,"state");e=JSON.parse(atob(r))}catch(a){return n}return e.from_editor_post_id=t,Object(A.addQueryArgs)(n,{state:btoa(JSON.stringify(e))})}}]),t}(a.Component),B=Object(F.compose)([Object(P.withSelect)((function(e){return{postId:e("core/editor").getCurrentPostId()}})),i.withNotices])(L),q=(n(226),Object(a.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},Object(a.createElement)(i.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(a.createElement)(i.G,null,Object(a.createElement)(i.Path,{d:"M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 2v2H4V6h16zM4 18v-6h16v6H4zm2-4h7v2H6v-2zm9 0h3v2h-3v-2z"})))),U={title:Object(o.__)("Recurring Payments button","jetpack"),icon:q,description:Object(o.__)("Button allowing you to sell subscription products.","jetpack"),category:"jetpack",keywords:[Object(o._x)("sell","block search term","jetpack"),Object(o._x)("subscription","block search term","jetpack"),"stripe"],attributes:{planId:{type:"integer"},submitButtonText:{type:"string"},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},align:{type:"string"}},edit:B,save:function(){return null},supports:{html:!1,align:!0}},V=["USD","AUD","BRL","CAD","CHF","DKK","EUR","GBP","HKD","JPY","MXN","NOK","NZD","SEK","SGD"];Object(r.a)("recurring-payments",U)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(5),c=n(2),s=n(7),l=n.n(s),u=n(11),p=n.n(u),d=n(8),h=n.n(d),m=n(9),f=n.n(m),b=n(4),g=n.n(b),v=n(10),j=n.n(v),y=n(3),_=n.n(y),k=n(23),O=n.n(k),w=n(32),E=function(e){function t(){var e,n;l()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=h()(this,(e=f()(t)).call.apply(e,[this].concat(a))),_()(g()(n),"state",{subscriberCountString:""}),n}return j()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.get_subscriber_count()}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.className,r=e.isSelected,o=e.setAttributes,s=t.subscribePlaceholder,l=t.showSubscribersTotal;return r?Object(a.createElement)("div",{className:n,role:"form"},Object(a.createElement)(c.ToggleControl,{label:Object(i.__)("Show total subscribers","jetpack"),checked:l,onChange:function(){o({showSubscribersTotal:!l})}}),Object(a.createElement)(c.TextControl,{placeholder:s,disabled:!0,onChange:function(){}}),Object(a.createElement)(w.a,this.props)):Object(a.createElement)("div",{className:n,role:"form"},l&&Object(a.createElement)("p",{role:"heading"},this.state.subscriberCountString),Object(a.createElement)(c.TextControl,{placeholder:s}),Object(a.createElement)(w.a,this.props))}},{key:"get_subscriber_count",value:function(){var e=this;O()({path:"/wpcom/v2/subscribers/count"}).then((function(t){t.hasOwnProperty("count")?e.setState({subscriberCountString:Object(i.sprintf)(Object(i._n)("Join %s other subscriber","Join %s other subscribers",t.count,"jetpack"),t.count)}):e.setState({subscriberCountString:Object(i.__)("Subscriber count unavailable","jetpack")})}))}},{key:"onChangeSubmit",value:function(e){this.props.setAttributes({submitButtonText:e})}}]),t}(a.Component);var C=n(20),x={title:Object(i.__)("Subscription Form","jetpack"),description:Object(a.createElement)("p",null,Object(i.__)("A form enabling readers to get notifications when new posts are published from this site.","jetpack")),icon:Object(C.a)(Object(a.createElement)(c.Path,{d:"M23 16v2h-3v3h-2v-3h-3v-2h3v-3h2v3h3zM20 2v9h-4v3h-3v4H4c-1.1 0-2-.9-2-2V2h18zM8 13v-1H4v1h4zm3-3H4v1h7v-1zm0-2H4v1h7V8zm7-4H4v2h14V4z"})),category:"jetpack",keywords:[Object(i._x)("subscribe","block search term","jetpack"),Object(i._x)("join","block search term","jetpack"),Object(i._x)("follow","block search term","jetpack")],attributes:{subscribePlaceholder:{type:"string",default:Object(i.__)("Email Address","jetpack")},subscribeButton:{type:"string",default:Object(i.__)("Subscribe","jetpack")},showSubscribersTotal:{type:"boolean",default:!1},submitButtonText:{type:"string",default:Object(i.__)("Subscribe","jetpack")},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},submitButtonClasses:{type:"string"}},edit:E,save:function(e){var t=e.attributes,n=t.showSubscribersTotal,r=t.submitButtonClasses,i=t.customBackgroundButtonColor,o=t.customTextButtonColor,c=t.submitButtonText;return Object(a.createElement)(a.RawHTML,null,'[jetpack_subscription_form show_only_email_and_button="true" custom_background_button_color="'.concat(i,'" custom_text_button_color="').concat(o,'" submit_button_text="').concat(c,'" submit_button_classes="').concat(r,'" show_subscribers_total="').concat(n,'" ]'))},example:{attributes:{}},deprecated:[{attributes:{subscribeButton:{type:"string",default:Object(i.__)("Subscribe","jetpack")},showSubscribersTotal:{type:"boolean",default:!1}},migrate:function(e){return{subscribeButton:"",submitButtonText:e.subscribeButton,showSubscribersTotal:e.showSubscribersTotal,customBackgroundButtonColor:"",customTextButtonColor:"",submitButtonClasses:""}},isEligible:function(e){return!!Object(o.isEmpty)(e.subscribeButton)},save:function(e){var t=e.attributes;return Object(a.createElement)(a.RawHTML,null,'[jetpack_subscription_form show_subscribers_total="'.concat(t.showSubscribersTotal,'" show_only_email_and_button="true"]'))}}]};Object(r.a)("subscriptions",x)},function(e,t,n){"use strict";n.r(t);var r=n(0),a=n(1),i=n(2),o=n(14),c=n(28),s=n(13),l=n(60),u=Object(s.withSelect)((function(e){return{areLikesEnabled:(0,e("core/editor").getEditedPostAttribute)("jetpack_likes_enabled")}})),p=Object(s.withDispatch)((function(e){return{editPost:e("core/editor").editPost}})),d={render:Object(o.compose)([u,p])((function(e){var t=e.areLikesEnabled,n=e.editPost;return Object(r.createElement)(c.PostTypeSupportCheck,{supportKeys:"jetpack-post-likes"},Object(r.createElement)(l.a,null,Object(r.createElement)(i.CheckboxControl,{label:Object(a.__)("Show likes.","jetpack"),checked:t,onChange:function(e){n({jetpack_likes_enabled:e})}})))}))},h=n(37);Object(h.a)("likes",d)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(2),c=n(7),s=n.n(c),l=n(11),u=n.n(l),p=n(8),d=n.n(p),h=n(9),m=n.n(h),f=n(10),b=n.n(f),g=n(6),v=n(5),j=n(13),y=n(14);function _(e){return Object(a.createElement)("div",{className:"jp-related-posts-i2__post",id:e.id,"aria-labelledby":e.id+"-heading"},Object(a.createElement)("strong",{id:e.id+"-heading",className:"jp-related-posts-i2__post-link"},Object(i.__)("Preview unavailable: you haven't published enough posts with similar content.","jetpack")),e.displayThumbnails&&Object(a.createElement)("figure",{className:"jp-related-posts-i2__post-image-placeholder","aria-label":Object(i.__)("Placeholder image","jetpack")},Object(a.createElement)(o.SVG,{className:"jp-related-posts-i2__post-image-placeholder-square",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 350 200"},Object(a.createElement)("title",null,Object(i.__)("Grey square","jetpack")),Object(a.createElement)(o.Path,{d:"M0 0h350v200H0z",fill:"#8B8B96","fill-opacity":".1"})),Object(a.createElement)(o.SVG,{className:"jp-related-posts-i2__post-image-placeholder-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(a.createElement)("title",null,Object(i.__)("Icon for image","jetpack")),Object(a.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(o.Path,{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"}))),e.displayDate&&Object(a.createElement)("div",{className:"jp-related-posts-i2__post-date has-small-font-size"},Object(i.__)("August 3, 2018","jetpack")),e.displayContext&&Object(a.createElement)("div",{className:"jp-related-posts-i2__post-context has-small-font-size"},Object(i.__)("In “Uncategorized”","jetpack")))}function k(e){return Object(a.createElement)("div",{className:"jp-related-posts-i2__post",id:e.id,"aria-labelledby":e.id+"-heading"},Object(a.createElement)("a",{className:"jp-related-posts-i2__post-link",id:e.id+"-heading",href:e.post.url,rel:"nofollow noopener noreferrer",target:"_blank"},e.post.title),e.displayThumbnails&&e.post.img&&e.post.img.src&&Object(a.createElement)("a",{className:"jp-related-posts-i2__post-img-link",href:e.post.url},Object(a.createElement)("img",{className:"jp-related-posts-i2__post-img",src:e.post.img.src,alt:e.post.title,rel:"nofollow noopener noreferrer",target:"_blank"})),e.displayDate&&Object(a.createElement)("div",{className:"jp-related-posts-i2__post-date has-small-font-size"},e.post.date),e.displayContext&&Object(a.createElement)("div",{className:"jp-related-posts-i2__post-context has-small-font-size"},e.post.context))}function O(e){var t=0,n=e.posts.length>3;switch(e.posts.length){case 2:case 4:case 5:t=2;break;default:t=3}return Object(a.createElement)("div",null,Object(a.createElement)("div",{className:"jp-related-posts-i2__row","data-post-count":e.posts.slice(0,t).length},e.posts.slice(0,t)),n&&Object(a.createElement)("div",{className:"jp-related-posts-i2__row","data-post-count":e.posts.slice(t).length},e.posts.slice(t)))}var w=function(e){function t(){return s()(this,t),d()(this,m()(t).apply(this,arguments))}return b()(t,e),u()(t,[{key:"render",value:function(){for(var e=this.props,t=e.attributes,n=e.className,r=e.posts,c=e.setAttributes,s=e.instanceId,l=t.displayContext,u=t.displayDate,p=t.displayThumbnails,d=t.postLayout,h=t.postsToShow,m=[{icon:"grid-view",title:Object(i.__)("Grid View","jetpack"),onClick:function(){return c({postLayout:"grid"})},isActive:"grid"===d},{icon:"list-view",title:Object(i.__)("List View","jetpack"),onClick:function(){return c({postLayout:"list"})},isActive:"list"===d}],f=[],b=0;b<h;b++)r[b]?f.push(Object(a.createElement)(k,{id:"related-posts-".concat(s,"-post-").concat(b),key:"jp-relatedposts-i2-"+b,post:r[b],displayThumbnails:p,displayDate:u,displayContext:l})):f.push(Object(a.createElement)(_,{id:"related-posts-".concat(s,"-post-").concat(b),key:"related-post-placeholder-"+b,displayThumbnails:p,displayDate:u,displayContext:l}));return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(g.InspectorControls,null,Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Related Posts Settings","jetpack")},Object(a.createElement)(o.ToggleControl,{label:Object(i.__)("Display thumbnails","jetpack"),checked:p,onChange:function(e){return c({displayThumbnails:e})}}),Object(a.createElement)(o.ToggleControl,{label:Object(i.__)("Display date","jetpack"),checked:u,onChange:function(e){return c({displayDate:e})}}),Object(a.createElement)(o.ToggleControl,{label:Object(i.__)("Display context (category or tag)","jetpack"),checked:l,onChange:function(e){return c({displayContext:e})}}),Object(a.createElement)(o.RangeControl,{label:Object(i.__)("Number of posts","jetpack"),value:h,onChange:function(e){return c({postsToShow:Math.min(e,6)})},min:1,max:6}))),Object(a.createElement)(g.BlockControls,null,Object(a.createElement)(o.Toolbar,{controls:m})),Object(a.createElement)("div",{className:n,id:"related-posts-".concat(s)},Object(a.createElement)("div",{className:"jp-relatedposts-i2","data-layout":d},Object(a.createElement)(O,{posts:f}))))}}]),t}(a.Component),E=Object(y.compose)(y.withInstanceId,Object(j.withSelect)((function(e){var t=e("core/editor").getCurrentPost;return{posts:Object(v.get)(t(),"jetpack-related-posts",[])}})))(w),C=(n(227),{title:Object(i.__)("Related Posts","jetpack"),icon:Object(a.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(o.G,{stroke:"currentColor",strokeWidth:"2",strokeLinecap:"square"},Object(a.createElement)(o.Path,{d:"M4,4 L4,19 M4,4 L19,4 M4,9 L19,9 M4,14 L19,14 M4,19 L19,19 M9,4 L9,19 M19,4 L19,19"}))),category:"jetpack",keywords:[Object(i._x)("Similar content","block search term","jetpack"),Object(i._x)("Linked","block search term","jetpack"),Object(i._x)("Connected","block search term","jetpack")],attributes:{postLayout:{type:"string",default:"grid"},displayDate:{type:"boolean",default:!0},displayThumbnails:{type:"boolean",default:!1},displayContext:{type:"boolean",default:!1},postsToShow:{type:"number",default:3}},supports:{html:!1,multiple:!1,reusable:!1},transforms:{from:[{type:"shortcode",tag:"jetpack-related-posts"}]},edit:E,save:function(){return null},example:{attributes:{postLayout:"grid",displayDate:!0,displayThumbnails:!0,displayContext:!1,postsToShow:2}}});Object(r.a)("related-posts",C)},function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(2),c=n(7),s=n.n(c),l=n(11),u=n.n(l),p=n(8),d=n.n(p),h=n(9),m=n.n(h),f=n(4),b=n.n(f),g=n(10),v=n.n(g),j=n(3),y=n.n(j),_=n(12),k=n.n(_),O=n(6),w="t1PkR1Vq0mzHueIFBvZSZErgFs9NBmYW",E=Object(i.__)("Search for a term or paste a Giphy URL","jetpack"),C=function(e){function t(){var e,n;s()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=d()(this,(e=m()(t)).call.apply(e,[this].concat(i))),y()(b()(n),"textControlRef",Object(a.createRef)()),y()(b()(n),"state",{captionFocus:!1,results:null}),y()(b()(n),"onFormSubmit",(function(e){e.preventDefault(),n.onSubmit()})),y()(b()(n),"onSubmit",(function(){var e=n.props.attributes.searchText;n.parseSearch(e)})),y()(b()(n),"parseSearch",(function(e){var t=null;-1!==e.indexOf("//giphy.com/gifs")&&(t=n.splitAndLast(n.splitAndLast(e,"/"),"-")),-1!==e.indexOf("//i.giphy.com")&&(t=n.splitAndLast(e,"/").replace(".gif",""));var r=e.match(/http[s]?:\/\/media.giphy.com\/media\/([A-Za-z0-9\-.]+)\/giphy.gif/);return r&&(t=r[1]),t?n.fetch(n.urlForId(t)):n.fetch(n.urlForSearch(e))})),y()(b()(n),"urlForSearch",(function(e){return"https://api.giphy.com/v1/gifs/search?q=".concat(encodeURIComponent(e),"&api_key=").concat(encodeURIComponent(w),"&limit=10")})),y()(b()(n),"urlForId",(function(e){return"https://api.giphy.com/v1/gifs/".concat(encodeURIComponent(e),"?api_key=").concat(encodeURIComponent(w))})),y()(b()(n),"splitAndLast",(function(e,t){var n=e.split(t);return n[n.length-1]})),y()(b()(n),"fetch",(function(e){var t=new XMLHttpRequest;t.open("GET",e),t.onload=function(){if(200===t.status){var e=JSON.parse(t.responseText),r=void 0!==e.data.images?[e.data]:e.data,a=r[0];if(!a.images)return;n.setState({results:r},(function(){n.selectGiphy(a)}))}},t.send()})),y()(b()(n),"selectGiphy",(function(e){var t=n.props.setAttributes,r=Math.floor(e.images.original.height/e.images.original.width*100),a="".concat(r,"%");t({giphyUrl:e.embed_url,paddingTop:a})})),y()(b()(n),"setFocus",(function(){n.textControlRef.current.querySelector("input").focus(),n.setState({captionFocus:!1})})),y()(b()(n),"hasSearchText",(function(){var e=n.props.attributes.searchText;return e&&e.length>0})),y()(b()(n),"thumbnailClicked",(function(e){n.selectGiphy(e)})),n}return v()(t,e),u()(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.className,c=t.isSelected,s=t.setAttributes,l=n.align,u=n.caption,p=n.giphyUrl,d=n.searchText,h=n.paddingTop,m=this.state,f=m.captionFocus,b=m.results,g={paddingTop:h},v=k()(r,"align".concat(l)),j=Object(a.createElement)("form",{className:"wp-block-jetpack-gif_input-container",onSubmit:this.onFormSubmit,ref:this.textControlRef},Object(a.createElement)(o.TextControl,{className:"wp-block-jetpack-gif_input",label:E,placeholder:E,onChange:function(e){return s({searchText:e})},value:d}),Object(a.createElement)(o.Button,{isDefault:!0,onClick:this.onSubmit},Object(i.__)("Search","jetpack")));return Object(a.createElement)("div",{className:v},Object(a.createElement)(O.InspectorControls,null,Object(a.createElement)(o.PanelBody,{className:"components-panel__body-gif-branding"},Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 202 22"},Object(a.createElement)(o.Path,{d:"M4.6 5.9H0v10h1.6v-3.1h3c4.8 0 4.8-6.9 0-6.9zm0 5.4h-3v-4h3c2.6.1 2.6 4 0 4zM51.2 12.3c2-.3 2.7-1.7 2.7-3.1 0-1.7-1.2-3.3-3.5-3.3h-4.6v10h1.6v-3.4h2.1l3 3.4h1.9l-.2-.3-3-3.3zM47.4 11V7.4h3c1.3 0 1.9.9 1.9 1.8s-.6 1.8-1.9 1.8h-3zM30.6 13.6L28 5.9h-1.1l-2.5 7.7-2.6-7.7H20l3.7 10H25l1.4-3.5L27.5 9l1.1 3.4 1.3 3.5h1.4l3.5-10h-1.7z"}),Object(a.createElement)(o.Path,{d:"M14.4 5.7c-3 0-5.1 2.2-5.1 5.2 0 2.6 1.6 5.1 5.1 5.1 3.5 0 5.1-2.5 5.1-5.2-.1-2.6-1.7-5.1-5.1-5.1zm-.1 8.9c-2.5 0-3.5-1.9-3.5-3.7 0-2.2 1.2-3.8 3.5-3.8 2.4 0 3.5 2 3.5 3.8.1 2-1 3.7-3.5 3.7zM57.7 11.6h5.5v-1.5h-5.5V7.4h5.7V5.9h-7.3v10h7.3v-1.6h-5.7zM38 14.3v-2.7h5.5v-1.5H38V7.4h5.7V5.9h-7.3v10h7.3v-1.6zM93 10.3l-2.7-4.4h-1.9V6l3.8 5.8v4.1h1.6v-4.1l4-5.8v-.1h-2zM69.3 5.9h-3.8v10h3.8c3.5 0 5.1-2.5 5-5.1-.1-2.5-1.6-4.9-5-4.9zm0 8.4h-2.2V7.4h2.2c2.3 0 3.4 1.7 3.4 3.4s-1 3.5-3.4 3.5zM86.3 10.7c.9-.4 1.4-1.1 1.4-2 0-2-1.5-2.8-3.4-2.8h-4.6v10h4.6c2 0 3.7-.7 3.7-2.8 0-.8-.5-2-1.7-2.4zm-5-3.4h3c1.2 0 1.8.7 1.8 1.4 0 .8-.6 1.3-1.8 1.3h-3V7.3zm3 7.1h-3v-2.9h3c.9 0 2.1.5 2.1 1.6 0 1-1.2 1.3-2.1 1.3zM113.9 13.3h5.3V16c-1.2.9-2.9 1.1-4 1.1-4.2 0-5.6-3.3-5.6-6 0-4.1 2.2-6.1 5.6-6.1 1.4 0 3.2.4 4.8 1.8l3.4-3.4C120.7.6 118.1 0 115.2 0c-7.8 0-11.4 5.6-11.4 11s3.1 10.9 11.4 10.9c4 0 7.6-1.4 8.9-4.1V8.6h-10.2v4.7zM171.9 8.5h-7.4V.6h-5.9v20.8h5.9v-7.8h7.4v7.8h5.9V.6h-5.9zM195.1.6l-4.5 7.1-4.3-7.1h-6.6v.2l7.9 12.3v8.3h5.9v-8.3L201.8.9V.6zM127.4.6h5.9v20.8h-5.9zM147.6.6h-10.1v20.8h5.9v-5.6h4.2c5.6-.1 8.3-3.4 8.3-7.6.1-4.1-2.7-7.6-8.3-7.6zm0 10.2h-4.2V5.6h4.2c1.6 0 2.5 1.2 2.5 2.6 0 1.4-.9 2.6-2.5 2.6z"})))),p?Object(a.createElement)("figure",null,c&&j,c&&b&&b.length>1&&Object(a.createElement)("div",{className:"wp-block-jetpack-gif_thumbnails-container"},b.map((function(t){var n={backgroundImage:"url(".concat(t.images.downsized_still.url,")")};return Object(a.createElement)("button",{className:"wp-block-jetpack-gif_thumbnail-container",key:t.id,onClick:function(){e.thumbnailClicked(t)},style:n})}))),Object(a.createElement)("div",{className:"wp-block-jetpack-gif-wrapper",style:g},Object(a.createElement)("div",{className:"wp-block-jetpack-gif_cover",onClick:this.setFocus,onKeyDown:this.setFocus,role:"button",tabIndex:"0"}),Object(a.createElement)("iframe",{src:p,title:d})),(!O.RichText.isEmpty(u)||c)&&!!p&&Object(a.createElement)(O.RichText,{className:"wp-block-jetpack-gif-caption gallery-caption",inlineToolbar:!0,isSelected:f,unstableOnFocus:function(){e.setState({captionFocus:!0})},onChange:function(e){return s({caption:e})},placeholder:Object(i.__)("Write caption…","jetpack"),tagName:"figcaption",value:u})):Object(a.createElement)(o.Placeholder,{className:"wp-block-jetpack-gif_placeholder",icon:S,label:x},j))}}]),t}(a.Component),x=(n(130),n(154),Object(i.__)("GIF","jetpack")),S=Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(a.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(o.Path,{d:"M18 13v7H4V6h5.02c.05-.71.22-1.38.48-2H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-5l-2-2zm-1.5 5h-11l2.75-3.53 1.96 2.36 2.75-3.54L16.5 18zm2.8-9.11c.44-.7.7-1.51.7-2.39C20 4.01 17.99 2 15.5 2S11 4.01 11 6.5s2.01 4.5 4.49 4.5c.88 0 1.7-.26 2.39-.7L21 13.42 22.42 12 19.3 8.89zM15.5 9C14.12 9 13 7.88 13 6.5S14.12 4 15.5 4 18 5.12 18 6.5 16.88 9 15.5 9z"})),A={title:x,icon:S,category:"jetpack",keywords:[Object(i._x)("animated","block search term","jetpack"),Object(i._x)("giphy","block search term","jetpack"),Object(i._x)("image","block search term","jetpack")],description:Object(i.__)("Search for and insert an animated image.","jetpack"),attributes:{align:{type:"string",default:"center"},caption:{type:"string"},giphyUrl:{type:"string"},searchText:{type:"string"},paddingTop:{type:"string",default:"56.2%"}},supports:{html:!1,align:!0},edit:C,save:function(){return null},example:{attributes:{align:"center",giphyUrl:"https://giphy.com/embed/fxKWgoOG9hzPPkE1oc",paddingTop:"100%",searchText:"WordPress"}}};Object(r.a)("gif",A)},function(e,t,n){"use strict";n.r(t);var r=n(0),a=n(1),i=n(2),o=n(14),c=n(28),s=n(13),l=n(60),u=Object(s.withSelect)((function(e){return{isSharingEnabled:(0,e("core/editor").getEditedPostAttribute)("jetpack_sharing_enabled")}})),p=Object(s.withDispatch)((function(e){return{editPost:e("core/editor").editPost}})),d={render:Object(o.compose)([u,p])((function(e){var t=e.isSharingEnabled,n=e.editPost;return Object(r.createElement)(c.PostTypeSupportCheck,{supportKeys:"jetpack-sharing-buttons"},Object(r.createElement)(l.a,null,Object(r.createElement)(i.CheckboxControl,{label:Object(a.__)("Show sharing buttons.","jetpack"),checked:t,onChange:function(e){n({jetpack_sharing_enabled:e})}})))}))},h=n(37);Object(h.a)("sharing",d)},function(e,t,n){"use strict";n.r(t);var r=n(7),a=n.n(r),i=n(11),o=n.n(i),c=n(8),s=n.n(c),l=n(9),u=n.n(l),p=n(10),d=n.n(p),h=n(0),m=n(1),f=n(5),b=n(2),g=n(13),v=n(4),j=n.n(v),y=n(3),_=n.n(y),k=(n(229),function(e){function t(){var e,n;a()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=s()(this,(e=u()(t)).call.apply(e,[this].concat(i))),_()(j()(n),"state",{hasCopied:!1}),_()(j()(n),"onCopy",(function(){return n.setState({hasCopied:!0})})),_()(j()(n),"onFinishCopy",(function(){return n.setState({hasCopied:!1})})),_()(j()(n),"onFocus",(function(e){return e.target.select()})),n}return d()(t,e),o()(t,[{key:"render",value:function(){var e=this.props.link,t=this.state.hasCopied;return e?Object(h.createElement)("div",{className:"jetpack-clipboard-input"},Object(h.createElement)(b.TextControl,{readOnly:!0,onFocus:this.onFocus,value:e}),Object(h.createElement)(b.ClipboardButton,{isDefault:!0,onCopy:this.onCopy,onFinishCopy:this.onFinishCopy,text:e},t?Object(m.__)("Copied!","jetpack"):Object(m._x)("Copy","verb","jetpack"))):null}}]),t}(h.Component)),O=n(44),w={render:function(){return Object(h.createElement)(C,null)}},E=function(e){function t(){return a()(this,t),s()(this,u()(t).apply(this,arguments))}return d()(t,e),o()(t,[{key:"render",value:function(){var e=this.props.shortlink;return e?Object(h.createElement)(O.a,null,Object(h.createElement)(b.PanelBody,{title:Object(m.__)("Shortlink","jetpack"),className:"jetpack-shortlinks__panel"},Object(h.createElement)(k,{link:e}))):null}}]),t}(h.Component),C=Object(g.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{shortlink:Object(f.get)(t,"jetpack_shortlink","")}}))(E),x=n(37);Object(x.a)("shortlinks",w)},,,,,function(e,t,n){},function(e,t,n){n(255),n(254),n(250),n(244),n(242),n(249),n(263),n(261),n(258),n(243),n(252),n(248),n(256),n(241),n(251),n(259),n(262),n(257),n(264),n(265),n(245),n(247),n(260),n(240),n(246),n(253),n(303),e.exports=n(304)},function(e,t,n){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(17),a=n(0),i=n(1),o=n(2),c=n(20),s=n(7),l=n.n(s),u=n(11),p=n.n(u),d=n(8),h=n.n(d),m=n(9),f=n.n(m),b=n(10),g=n.n(b),v=(n(270),function(e){function t(){return l()(this,t),h()(this,f()(t).apply(this,arguments))}return g()(t,e),p()(t,[{key:"render",value:function(){return Object(a.createElement)("p",null,Object(i.__)("Coming soon","jetpack"))}}]),t}(a.Component)),j={title:Object(i.__)("Amazon","jetpack"),description:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("p",null,Object(i.__)("Amazon","jetpack")),Object(a.createElement)(o.ExternalLink,{href:"#"},Object(i.__)("Learn more about Amazon","jetpack"))),icon:Object(c.a)(Object(a.createElement)(o.Path,{d:"M9 15h2V9H9v6zm1-10c-.5 0-1 .5-1 1s.5 1 1 1 1-.5 1-1-.5-1-1-1zm0-4c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7z"})),category:"jetpack",keywords:[],supports:{align:!1,alignWide:!0,anchor:!1,customClassName:!0,className:!0,html:!1,multiple:!0,reusable:!0},edit:v,save:function(){return null},example:{attributes:{}}};Object(r.a)("amazon",j)},function(e,t,n){"use strict";n.r(t);var r=n(0),a=n(1),i=n(2),o=n(52),c=(n(272),n(44)),s=n(7),l=n.n(s),u=n(11),p=n.n(u),d=n(8),h=n.n(d),m=n(9),f=n.n(m),b=n(4),g=n.n(b),v=n(10),j=n.n(v),y=n(3),_=n.n(y),k=n(14),O=n(5),w=n(13),E=function(e){function t(){var e,n;l()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=h()(this,(e=f()(t)).call.apply(e,[this].concat(a))),_()(g()(n),"onMessageChange",(function(e){n.props.updateSeoDescription(e.target.value)})),n}return j()(t,e),p()(t,[{key:"render",value:function(){var e=this.props.seoDescription;return Object(r.createElement)("div",{className:"jetpack-seo-message-box"},Object(r.createElement)("textarea",{value:e,onChange:this.onMessageChange,placeholder:Object(a.__)("Write a description…","jetpack"),rows:4}),Object(r.createElement)("div",{className:"jetpack-seo-character-count"},Object(a.sprintf)(Object(a._n)("%d character","%d characters",e.length,"jetpack"),e.length)))}}]),t}(r.Component),C=Object(k.compose)([Object(w.withSelect)((function(e){return{seoDescription:Object(O.get)(e("core/editor").getEditedPostAttribute("meta"),["advanced_seo_description"],"")}})),Object(w.withDispatch)((function(e){return{updateSeoDescription:function(t){e("core/editor").editPost({meta:{advanced_seo_description:t}})}}}))])(E),x={render:function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(c.a,null,Object(r.createElement)(i.PanelBody,{title:Object(a.__)("SEO Description","jetpack")},Object(r.createElement)(C,null))),Object(r.createElement)(o.PluginPrePublishPanel,{initialOpen:!0,id:"seo-title",title:Object(r.createElement)("span",{id:"seo-defaults",key:"seo-title-span"},Object(a.__)("SEO Description","jetpack"))},Object(r.createElement)(C,null)))}},S=n(37);Object(S.a)("seo",x)}]));
_inc/blocks/editor-experimental.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-token-list', 'wp-url'), 'version' => '28879a34bb6973778c85fb767cef9d33');
1
+ <?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-token-list', 'wp-url'), 'version' => '3a61b3002bb5a87b70bf81c5340b6456');
_inc/blocks/editor-experimental.js CHANGED
@@ -1,2 +1,2 @@
1
  /*! For license information please see editor-experimental.js.LICENSE */
2
- !function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){function t(t){for(var n,r,i=t[0],o=t[1],c=0,s=[];c<i.length;c++)r=i[c],Object.prototype.hasOwnProperty.call(a,r)&&a[r]&&s.push(a[r][0]),a[r]=0;for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n]);for(l&&l(t);s.length;)s.shift()()}var n={},r={5:0,3:0},a={5:0,3:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[];r[e]?t.push(r[e]):0!==r[e]&&{16:1,17:1}[e]&&t.push(r[e]=new Promise((function(t,n){for(var a="rtl"===document.dir?({16:"vendors~map/mapbox-gl",17:"vendors~swiper"}[e]||e)+"."+{16:"04e03ac043566852ef07",17:"23fd414831f3de8536b3"}[e]+".rtl.css":({16:"vendors~map/mapbox-gl",17:"vendors~swiper"}[e]||e)+"."+{16:"04e03ac043566852ef07",17:"23fd414831f3de8536b3"}[e]+".css",o=i.p+a,c=document.getElementsByTagName("link"),s=0;s<c.length;s++){var l=(p=c[s]).getAttribute("data-href")||p.getAttribute("href");if("stylesheet"===p.rel&&(l===a||l===o))return t()}var u=document.getElementsByTagName("style");for(s=0;s<u.length;s++){var p;if((l=(p=u[s]).getAttribute("data-href"))===a||l===o)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.setAttribute("data-webpack",!0),d.onload=t,d.onerror=function(t){var a=t&&t.target&&t.target.src||o,i=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=a,delete r[e],d.parentNode.removeChild(d),n(i)},d.href=o,document.getElementsByTagName("head")[0].appendChild(d)})).then((function(){r[e]=0})));var n=a[e];if(0!==n)if(n)t.push(n[2]);else{var o=new Promise((function(t,r){n=a[e]=[t,r]}));t.push(n[2]=o);var c,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=function(e){return i.p+""+({16:"vendors~map/mapbox-gl",17:"vendors~swiper"}[e]||e)+"."+{16:"04e03ac043566852ef07",17:"23fd414831f3de8536b3"}[e]+".js"}(e);var l=new Error;c=function(t){s.onerror=s.onload=null,clearTimeout(u);var n=a[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+r+": "+i+")",l.name="ChunkLoadError",l.type=r,l.request=i,n[1](l)}a[e]=void 0}};var u=setTimeout((function(){c({type:"timeout",target:s})}),12e4);s.onerror=s.onload=c,document.head.appendChild(s)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var o=window.webpackJsonp=window.webpackJsonp||[],c=o.push.bind(o);o.push=t,o=o.slice();for(var s=0;s<o.length;s++)t(o[s]);var l=c;return i(i.s=268)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){var r=n(127),a=n(4);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?a(e):t}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var r=n(128);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var o=a.apply(null,r);o&&e.push(o)}else if("object"===i)for(var c in r)n.call(r,c)&&r[c]&&e.push(c)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t,n){var r=n(3);function a(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(n,!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t,n){"use strict";var r=n(15),a=n.n(r),i=n(55),o=n(16),c=n(94),s=n(40),l=n(29),u=n.n(l),p=n(0),d=n(14),h=(n(143),function(e){return Object(d.createHigherOrderComponent)((function(t){return function(n){return Object(p.createElement)(t,u()({},n,{className:n.name===e?"has-warning is-interactive":""}))}}),"withHasWarningIsInteractiveClassNames")}),m=n(56),f=n.n(m),b=n(1),g=n(30),v=n(5),j=n(13),y=n(50),_=n(57),k=n(34),O=n(24),w={setPlans:function(e){return{type:"SET_PLANS",plans:e}},fetchFromAPI:function(e){return{type:"FETCH_FROM_API",url:e}}};Object(j.registerStore)("wordpress-com/plans",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLANS":return t.plans}return e},actions:w,selectors:{getPlan:function(e,t){return e.find((function(e){return e.product_slug===t}))}},controls:{FETCH_FROM_API:function(e){var t=e.url;return fetch(t).then((function(e){return e.json()}))}},resolvers:{getPlan:regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"https://public-api.wordpress.com/rest/v1.5/plans",e.next=3,w.fetchFromAPI("https://public-api.wordpress.com/rest/v1.5/plans");case 3:return t=e.sent,e.abrupt("return",w.setPlans(t));case 5:case"end":return e.stop()}}),e)}))}});n(145);var E=Object(d.compose)([Object(j.withSelect)((function(e,t){var n=t.plan,r=e("wordpress-com/plans").getPlan(n),a=Object(v.startsWith)(n,"jetpack_")?n.substr("jetpack_".length):Object(v.get)(r,["path_slug"]),i=e("core/editor").getCurrentPostId(),o=e("core/editor").getCurrentPostType(),c=["page","post"].includes(o)?"":"edit",s=Object(O.b)()?Object(g.addQueryArgs)("/"+Object(v.compact)([c,o,Object(k.a)(),i]).join("/"),{plan_upgraded:1}):Object(g.addQueryArgs)(window.location.protocol+"//".concat(Object(k.a)().replace("::","/"),"/wp-admin/post.php"),{action:"edit",post:i,plan_upgraded:1}),l=a&&Object(g.addQueryArgs)("https://wordpress.com/checkout/".concat(Object(k.a)(),"/").concat(a),{redirect_to:s});return{trackEvent:function(e){y.a.tracks.recordEvent("jetpack_editor_block_upgrade_click",{plan:r,block:e})},planName:Object(v.get)(r,["product_name"]),upgradeUrl:l}}))])((function(e){var t=e.planName,n=e.trackEvent,r=e.upgradeUrl;return Object(p.createElement)(_.a,{buttonLabel:Object(b.__)("Upgrade","jetpack"),icon:Object(p.createElement)(f.a,{className:"jetpack-upgrade-nudge__icon",size:18,"aria-hidden":"true",role:"img",focusable:"false"}),href:r,onClick:n,title:t?Object(b.sprintf)(Object(b.__)("Upgrade to %(planName)s to use this block on your site.","jetpack"),{planName:t}):Object(b.__)("Upgrade to a paid plan to use this block on your site.","jetpack"),subtitle:Object(b.__)("You can try it out before upgrading, but only you will see it. It will be hidden from your visitors until you upgrade.","jetpack")})})),C=function(e){var t=e.requiredPlan;return Object(d.createHigherOrderComponent)((function(e){return function(n){return Object(p.createElement)(p.Fragment,null,Object(p.createElement)(E,{plan:t,blockName:n.name}),Object(p.createElement)(e,n))}}),"wrapPaidBlock")};n.d(t,"a",(function(){return A}));var x=c.beta||[];function S(e,t){return"missing_plan"===e&&t.required_plan}function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object(s.a)(e),c=r.available,l=r.details,u=r.unavailableReason,p=S(u,l);if(!c&&!p)return!1;var d=Object(o.registerBlockType)("jetpack/".concat(e),a()({},t,{title:x.includes(e)?"".concat(t.title," (beta)"):t.title,edit:p?C({requiredPlan:p})(t.edit):t.edit,example:p?void 0:t.example}));return p&&Object(i.addFilter)("editor.BlockListBlock","jetpack/".concat(e,"-with-has-warning-is-interactive-class-names"),h("jetpack/".concat(e))),n.forEach((function(e){return Object(o.registerBlockType)("jetpack/".concat(e.name),e.settings)})),d}},function(e,t,n){var r=n(65),a=n(66),i=n(67);e.exports=function(e,t){return r(e)||a(e,t)||i()}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function a(e,t){return r.call(e,t)}function i(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function o(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,s=new RegExp(c.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),l=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,u=n(81);var p=/[&<>"]/,d=/[&<>"]/g,h={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function m(e){return h[e]}var f=/[.?*+^$[\]\\(){}|-]/g;var b=n(68);t.lib={},t.lib.mdurl=n(82),t.lib.ucmicro=n(168),t.assign=function(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=a,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(c,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(s,(function(e,t,n){return t||function(e,t){var n=0;return a(u,t)?u[t]:35===t.charCodeAt(0)&&l.test(t)&&i(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?o(n):e}(e,n)}))},t.isValidEntityCode=i,t.fromCodePoint=o,t.escapeHtml=function(e){return p.test(e)?e.replace(d,m):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return b.test(e)},t.escapeRE=function(e){return e.replace(f,"\\$&")},t.normalizeReference=function(e){return e.trim().replace(/\s+/g," ").toUpperCase()}},function(e,t,n){"use strict";var r=n(0),a=n(2);t.a=function(e){return Object(r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),e)}},function(e,t,n){var r=n(123),a=n(124),i=n(125);e.exports=function(e){return r(e)||a(e)||i()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"h",(function(){return i})),n.d(t,"i",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return p}));var r=["image"],a=4,i=20,o=2e3,c="circle",s="columns",l="rectangular",u="square",p=[{isDefault:!0,name:l},{name:c},{name:u},{name:s}]},function(e,t){!function(){e.exports=this.wp.apiFetch}()},function(e,t,n){"use strict";function r(){return"object"==typeof window&&"string"==typeof window._currentSiteType?window._currentSiteType:null}function a(){return"simple"===r()}function i(){return"atomic"===r()}n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i}))},function(e,t){!function(){e.exports=this.wp.blob}()},function(e,t){!function(){e.exports=this.wp.keycodes}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),a=n(1),i={name:"map",prefix:"jetpack",title:Object(a.__)("Map","jetpack"),icon:Object(r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",focusable:"false"},Object(r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)("path",{d:"M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM10 5.47l4 1.4v11.66l-4-1.4V5.47zm-5 .99l3-1.01v11.7l-3 1.16V6.46zm14 11.08l-3 1.01V6.86l3-1.16v11.84z"})),category:"jetpack",keywords:[Object(a._x)("map","block search term","jetpack"),Object(a._x)("location","block search term","jetpack"),Object(a._x)("navigation","block search term","jetpack")],description:Object(a.__)("Add an interactive map showing one or more locations.","jetpack"),attributes:{align:{type:"string"},points:{type:"array",default:[]},mapStyle:{type:"string",default:"default"},mapDetails:{type:"boolean",default:!0},zoom:{type:"integer",default:13},mapCenter:{type:"object",default:{longitude:-122.41941550000001,latitude:37.7749295}},markerColor:{type:"string",default:"red"},preview:{type:"boolean",default:!1}},supports:{html:!1},mapStyleOptions:[{value:"default",label:Object(a.__)("Basic","jetpack")},{value:"black_and_white",label:Object(a.__)("Black and white","jetpack")},{value:"satellite",label:Object(a.__)("Satellite","jetpack")},{value:"terrain",label:Object(a.__)("Terrain","jetpack")}],validAlignments:["center","wide","full"],markerIcon:Object(r.createElement)("svg",{width:"14",height:"20",viewBox:"0 0 14 20",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("g",{id:"Page-1",fill:"none",fillRule:"evenodd"},Object(r.createElement)("g",{id:"outline-add_location-24px",transform:"translate(-5 -2)"},Object(r.createElement)("polygon",{id:"Shape",points:"0 0 24 0 24 24 0 24"}),Object(r.createElement)("path",{d:"M12,2 C8.14,2 5,5.14 5,9 C5,14.25 12,22 12,22 C12,22 19,14.25 19,9 C19,5.14 15.86,2 12,2 Z M7,9 C7,6.24 9.24,4 12,4 C14.76,4 17,6.24 17,9 C17,11.88 14.12,16.19 12,18.88 C9.92,16.21 7,11.85 7,9 Z M13,6 L11,6 L11,8 L9,8 L9,10 L11,10 L11,12 L13,12 L13,10 L15,10 L15,8 L13,8 L13,6 Z",id:"Shape",fill:"#000",fillRule:"nonzero"})))),example:{attributes:{preview:!0}}}},function(e,t,n){"use strict";var r=n(136),a=n(138);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=j,t.resolve=function(e,t){return j(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?j(e,!1,!0).resolveObject(t):t},t.format=function(e){a.isString(e)&&(e=j(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var o=/^([a-z0-9.+-]+:)/i,c=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),p=["%","/","?",";","#"].concat(u),d=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=n(139);function j(e,t,n){if(e&&a.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),c=-1!==i&&i<e.indexOf("#")?"?":"#",l=e.split(c);l[0]=l[0].replace(/\\/g,"/");var j=e=l.join(c);if(j=j.trim(),!n&&1===e.split("#").length){var y=s.exec(j);if(y)return this.path=j,this.href=j,this.pathname=y[1],y[2]?(this.search=y[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var _=o.exec(j);if(_){var k=(_=_[0]).toLowerCase();this.protocol=k,j=j.substr(_.length)}if(n||_||j.match(/^\/\/[^@\/]+@[^@\/]+/)){var O="//"===j.substr(0,2);!O||_&&b[_]||(j=j.substr(2),this.slashes=!0)}if(!b[_]&&(O||_&&!g[_])){for(var w,E,C=-1,x=0;x<d.length;x++){-1!==(S=j.indexOf(d[x]))&&(-1===C||S<C)&&(C=S)}-1!==(E=-1===C?j.lastIndexOf("@"):j.lastIndexOf("@",C))&&(w=j.slice(0,E),j=j.slice(E+1),this.auth=decodeURIComponent(w)),C=-1;for(x=0;x<p.length;x++){var S;-1!==(S=j.indexOf(p[x]))&&(-1===C||S<C)&&(C=S)}-1===C&&(C=j.length),this.host=j.slice(0,C),j=j.slice(C),this.parseHost(),this.hostname=this.hostname||"";var A="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!A)for(var F=this.hostname.split(/\./),P=(x=0,F.length);x<P;x++){var T=F[x];if(T&&!T.match(h)){for(var M="",N=0,R=T.length;N<R;N++)T.charCodeAt(N)>127?M+="x":M+=T[N];if(!M.match(h)){var D=F.slice(0,x),z=F.slice(x+1),I=T.match(m);I&&(D.push(I[1]),z.unshift(I[2])),z.length&&(j="/"+z.join(".")+j),this.hostname=D.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=r.toASCII(this.hostname));var L=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+L,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==j[0]&&(j="/"+j))}if(!f[k])for(x=0,P=u.length;x<P;x++){var q=u[x];if(-1!==j.indexOf(q)){var U=encodeURIComponent(q);U===q&&(U=escape(q)),j=j.split(q).join(U)}}var V=j.indexOf("#");-1!==V&&(this.hash=j.substr(V),j=j.slice(0,V));var H=j.indexOf("?");if(-1!==H?(this.search=j.substr(H),this.query=j.substr(H+1),t&&(this.query=v.parse(this.query)),j=j.slice(0,H)):t&&(this.search="",this.query={}),j&&(this.pathname=j),g[k]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){L=this.pathname||"";var G=this.search||"";this.path=L+G}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&a.isObject(this.query)&&Object.keys(this.query).length&&(o=v.stringify(this.query));var c=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),c&&"?"!==c.charAt(0)&&(c="?"+c),t+i+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(c=c.replace("#","%23"))+r},i.prototype.resolve=function(e){return this.resolveObject(j(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(a.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),o=0;o<r.length;o++){var c=r[o];n[c]=this[c]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),l=0;l<s.length;l++){var u=s[l];"protocol"!==u&&(n[u]=e[u])}return g[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!g[e.protocol]){for(var p=Object.keys(e),d=0;d<p.length;d++){var h=p[d];n[h]=e[h]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||b[e.protocol])n.pathname=e.pathname;else{for(var m=(e.pathname||"").split("/");m.length&&!(e.host=m.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==m[0]&&m.unshift(""),m.length<2&&m.unshift(""),n.pathname=m.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var f=n.pathname||"",v=n.search||"";n.path=f+v}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var j=n.pathname&&"/"===n.pathname.charAt(0),y=e.host||e.pathname&&"/"===e.pathname.charAt(0),_=y||j||n.host&&e.pathname,k=_,O=n.pathname&&n.pathname.split("/")||[],w=(m=e.pathname&&e.pathname.split("/")||[],n.protocol&&!g[n.protocol]);if(w&&(n.hostname="",n.port=null,n.host&&(""===O[0]?O[0]=n.host:O.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===m[0]?m[0]=e.host:m.unshift(e.host)),e.host=null),_=_&&(""===m[0]||""===O[0])),y)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,O=m;else if(m.length)O||(O=[]),O.pop(),O=O.concat(m),n.search=e.search,n.query=e.query;else if(!a.isNullOrUndefined(e.search)){if(w)n.hostname=n.host=O.shift(),(A=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=A.shift(),n.host=n.hostname=A.shift());return n.search=e.search,n.query=e.query,a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!O.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=O.slice(-1)[0],C=(n.host||e.host||O.length>1)&&("."===E||".."===E)||""===E,x=0,S=O.length;S>=0;S--)"."===(E=O[S])?O.splice(S,1):".."===E?(O.splice(S,1),x++):x&&(O.splice(S,1),x--);if(!_&&!k)for(;x--;x)O.unshift("..");!_||""===O[0]||O[0]&&"/"===O[0].charAt(0)||O.unshift(""),C&&"/"!==O.join("/").substr(-1)&&O.push("");var A,F=""===O[0]||O[0]&&"/"===O[0].charAt(0);w&&(n.hostname=n.host=F?"":O.length?O.shift():"",(A=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=A.shift(),n.host=n.hostname=A.shift()));return(_=_||n.host&&O.length)&&!F&&O.unshift(""),O.length?n.pathname=O.join("/"):(n.pathname=null,n.path=null),a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=c.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){!function(){e.exports=this.wp.url}()},function(e,t,n){"use strict";var r=n(3),a=n.n(r),i=n(7),o=n.n(i),c=n(11),s=n.n(c),l=n(8),u=n.n(l),p=n(9),d=n.n(p),h=n(10),m=n.n(h),f=n(0),b=n(1),g=n(12),v=n.n(g),j=n(14),y=n(2),_=n(6),k=n(5),O=window.getComputedStyle,w=Object(y.withFallbackStyles)((function(e,t){var n,r,a,i,o=t.textButtonColor,c=t.backgroundButtonColor,s=c&&c.color,l=o&&o.color;return!l&&e&&(n=e.querySelector('[contenteditable="true"]')),r=e.querySelector(".wp-block-button__link")?e.querySelector(".wp-block-button__link"):e,e&&(a=O(r).backgroundColor),n&&(i=O(n).color),{fallbackBackgroundColor:s||a,fallbackTextColor:l||i}})),E=function(e){function t(){return o()(this,t),u()(this,d()(t).apply(this,arguments))}return m()(t,e),s()(t,[{key:"componentDidUpdate",value:function(e){if(!Object(k.isEqual)(this.props.textButtonColor,e.textButtonColor)||!Object(k.isEqual)(this.props.backgroundButtonColor,e.backgroundButtonColor)){var t=this.getButtonClasses();this.props.setAttributes({submitButtonClasses:t})}}},{key:"getButtonClasses",value:function(){var e,t=this.props,n=t.textButtonColor,r=t.backgroundButtonColor,i=Object(k.get)(n,"class"),o=Object(k.get)(r,"class");return v()("wp-block-button__link",(e={"has-text-color":n},a()(e,i,i),a()(e,"has-background",r),a()(e,o,o),e))}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.fallbackBackgroundColor,r=e.fallbackTextColor,a=e.setAttributes,i=e.setBackgroundButtonColor,o=e.setTextButtonColor,c=t.customBackgroundButtonColor||n,s=t.customTextButtonColor||r,l={border:"none",backgroundColor:c,color:s},u=this.getButtonClasses();return Object(f.createElement)(f.Fragment,null,Object(f.createElement)("div",{className:"wp-block-button jetpack-submit-button"},Object(f.createElement)(_.RichText,{placeholder:Object(b.__)("Add text…","jetpack"),value:t.submitButtonText,onChange:function(e){return a({submitButtonText:e})},className:u,style:l,keepPlaceholderOnFocus:!0,allowedFormats:[]})),Object(f.createElement)(_.InspectorControls,null,Object(f.createElement)(_.PanelColorSettings,{title:Object(b.__)("Button Color Settings","jetpack"),colorSettings:[{value:c,onChange:function(e){i(e),a({customBackgroundButtonColor:e})},label:Object(b.__)("Background Color","jetpack")},{value:s,onChange:function(e){o(e),a({customTextButtonColor:e})},label:Object(b.__)("Text Color","jetpack")}]}),Object(f.createElement)(_.ContrastChecker,{textColor:s,backgroundColor:c})))}}]),t}(f.Component);t.a=Object(j.compose)([Object(_.withColors)("backgroundButtonColor",{textButtonColor:"color"}),w])(E)},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"e",(function(){return c}));var r="after-visits",a="before-visits",i=3,o="jp-visit-counter",c=15552e3},function(e,t){!function(){e.exports=this.React}()},function(e,t,n){"use strict";function r(){return window&&window.Jetpack_Editor_Initial_State&&window.Jetpack_Editor_Initial_State.siteFragment?window.Jetpack_Editor_Initial_State.siteFragment:null}n.d(t,"a",(function(){return r}))},function(e,t,n){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(n.p=window.Jetpack_Block_Assets_Base_Url)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(47),a=n(40);function i(e,t){var n=Object(a.a)(e),i=n.available;n.unavailableReason;return!!i&&Object(r.registerPlugin)("jetpack-".concat(e),t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return c}));var r=n(74),a=n(5),i="wp-block-jetpack-slideshow_autoplay-paused";function o(e){c(e),s(e),e.el.querySelector(".wp-block-jetpack-slideshow_button-pause").addEventListener("click",(function(){e.el&&(e.el.classList.contains(i)?(e.el.classList.remove(i),e.autoplay.start(),this.setAttribute("aria-label","Pause Slideshow")):(e.el.classList.add(i),e.autoplay.stop(),this.setAttribute("aria-label","Play Slideshow")))}))}function c(e){if(e&&e.el){var t=e.el.querySelector('.swiper-slide[data-swiper-slide-index="0"] img');if(t){var n=t.clientWidth/t.clientHeight,r=Math.max(Math.min(n,16/9),1),a="undefined"!=typeof window?.8*window.innerHeight:600,i=Math.min(e.width/r,a),o="".concat(Math.floor(i),"px"),c="".concat(Math.floor(i/2),"px");e.el.classList.add("wp-swiper-initialized"),e.wrapperEl.style.height=o,e.el.querySelector(".wp-block-jetpack-slideshow_button-prev").style.top=c,e.el.querySelector(".wp-block-jetpack-slideshow_button-next").style.top=c}}}function s(e){Object(a.forEach)(e.slides,(function(t,n){t.setAttribute("aria-hidden",n===e.activeIndex?"false":"true"),n===e.activeIndex?t.setAttribute("tabindex","-1"):t.removeAttribute("tabindex")})),function(e){var t=e.slides[e.activeIndex];if(t){var n=t.getElementsByTagName("FIGCAPTION")[0],a=t.getElementsByTagName("IMG")[0];e.a11y.liveRegion&&(e.a11y.liveRegion[0].innerHTML=n?n.innerHTML:Object(r.escapeHTML)(a.alt))}}(e)}function l(e){Object(a.forEach)(e.pagination.bullets,(function(t){t.addEventListener("click",(function(){var t=e.slides[e.realIndex];setTimeout((function(){t.focus()}),500)}))}))}},function(e,t,n){"use strict";var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var a=r[n];e.call(t,a[1],a[0])}},t}())}(),a="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i="undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var c=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,l=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,a=0;function i(){n&&(n=!1,e()),r&&s()}function c(){o(i)}function s(){var e=Date.now();if(n){if(e-a<2)return;r=!0}else n=!0,r=!1,setTimeout(c,t);a=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){a&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){a&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;c.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var a=r[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},d=v(0,0,0,0);function h(e){return parseFloat(e)||0}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+h(e["border-"+n+"-width"])}),0)}function f(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r=p(e).getComputedStyle(e),a=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var a=r[n],i=e["padding-"+a];t[a]=h(i)}return t}(r),i=a.left+a.right,o=a.top+a.bottom,c=h(r.width),s=h(r.height);if("border-box"===r.boxSizing&&(Math.round(c+i)!==t&&(c-=m(r,"left","right")+i),Math.round(s+o)!==n&&(s-=m(r,"top","bottom")+o)),!function(e){return e===p(e).document.documentElement}(e)){var l=Math.round(c+i)-t,u=Math.round(s+o)-n;1!==Math.abs(l)&&(c-=l),1!==Math.abs(u)&&(s-=u)}return v(a.left,a.top,c,s)}var b="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"==typeof e.getBBox};function g(e){return a?b(e)?function(e){var t=e.getBBox();return v(0,0,t.width,t.height)}(e):f(e):d}function v(e,t,n,r){return{x:e,y:t,width:n,height:r}}var j=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=v(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=g(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),y=function(e,t){var n,r,a,i,o,c,s,l=(r=(n=t).x,a=n.y,i=n.width,o=n.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(c.prototype),u(s,{x:r,y:a,width:i,height:o,top:a,right:r+i,bottom:o+a,left:r}),s);u(this,{target:e,contentRect:l})},_=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new j(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new y(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),k="undefined"!=typeof WeakMap?new WeakMap:new r,O=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=l.getInstance(),r=new _(t,n,this);k.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){O.prototype[e]=function(){var t;return(t=k.get(this))[e].apply(t,arguments)}}));var w=void 0!==i.ResizeObserver?i.ResizeObserver:O;t.a=w},function(e,t){!function(){e.exports=this.wp.editor}()},function(e,t,n){"use strict";var r=n(15),a=n.n(r),i=n(5);function o(e){var t=Object(i.get)("object"==typeof window?window:null,["Jetpack_Editor_Initial_State"],null),n=Object(i.get)(t,["available_blocks",e,"available"],!1),r=Object(i.get)(t,["available_blocks",e,"unavailable_reason"],"unknown"),o=Object(i.get)(t,["available_blocks",e,"details"],[]);return a()({available:n},!n&&{details:o,unavailableReason:r})}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var r=n(29),a=n.n(r),i=n(46),o=n.n(i),c=n(0),s=n(12),l=n.n(s),u=n(96),p=n.n(u);n(151);t.a=function(e){var t=e.children,n=void 0===t?null:t,r=e.isError,i=void 0!==r&&r,s=o()(e,["children","isError"]),u=l()("help-message",{"help-message-is-error":i});return n&&Object(c.createElement)("div",a()({className:u},s),i&&Object(c.createElement)(p.a,{size:"24","aria-hidden":"true",role:"img",focusable:"false"}),Object(c.createElement)("span",null,n))}},,function(e,t,n){"use strict";var r=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;t.validate=function(e){if(!e)return!1;if(e.length>254)return!1;if(!r.test(e))return!1;var t=e.split("@");return!(t[0].length>64)&&!t[1].split(".").some((function(e){return e.length>63}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),a=n(2),i=n(52),o=n(47),c=(n(155),n(53)),s=Object(a.createSlotFill)("JetpackPluginSidebar"),l=s.Fill,u=s.Slot;Object(o.registerPlugin)("jetpack-sidebar",{render:function(){return Object(r.createElement)(u,null,(function(e){return e.length?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(i.PluginSidebarMoreMenuItem,{target:"jetpack",icon:Object(r.createElement)(c.a,null)},"Jetpack"),Object(r.createElement)(i.PluginSidebar,{name:"jetpack",title:"Jetpack",icon:Object(r.createElement)(c.a,null)},e)):null}))}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var 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 a(e){return r[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},function(e,t,n){var r=n(150);e.exports=function(e,t){if(null==e)return{};var n,a,i=r(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t){!function(){e.exports=this.wp.plugins}()},function(e,t,n){"use strict";var r=n(0),a=n(2);t.a=function(e){var t=e.label,n=e.onClick;return Object(r.createElement)(a.IconButton,{className:"components-toolbar__control",label:t,icon:"edit",onClick:n})}},function(e,t,n){"use strict";var r=n(54),a=n.n(r),i=n(102),o=n.n(i),c=n(103),s=n.n(c),l=n(63),u=n.n(l),p=n(104),d=n.n(p),h=n(77),m=n.n(h),f=n(105),b=n.n(f),g=n(72);function v(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var a=isFinite(+e)?+e:0,i=isFinite(+t)?Math.abs(t):0,o=void 0===r?",":r,c=void 0===n?".":n,s="";return(s=(i?function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(a,i):""+Math.round(a)).split("."))[0].length>3&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,o)),(s[1]||"").length<i&&(s[1]=s[1]||"",s[1]+=new Array(i-s[1].length+1).join("0")),s.join(c)}var j=o()("i18n-calypso"),y=[function(e){return e}],_={};function k(){x.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function O(e){return Array.prototype.slice.call(e)}function w(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&k("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",O(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&k("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",O(e));for(var n={},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 E(e,t){var n="gettext";t.context&&(n="p"+n),"string"==typeof t.original&&"string"==typeof t.plural&&(n="n"+n);var r=function(e,t){switch(e){case"gettext":return[t.original];case"ngettext":return[t.original,t.plural,t.count];case"npgettext":return[t.context,t.original,t.plural,t.count];case"pgettext":return[t.context,t.original]}return[]}(n,t);return e[n].apply(e,r)}function C(e,t){for(var n=y.length-1;n>=0;n--){var r=y[n](Object.assign({},t));if(e.state.locale[r.original])return E(e.state.jed,r)}return null}function x(){if(!(this instanceof x))return new x;this.defaultLocaleSlug="en",this.state={numberFormatSettings:{},jed:void 0,locale:void 0,localeSlug:void 0,translations:d()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new g.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}x.throwErrors=!1,x.prototype.moment=m.a,x.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},x.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},x.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},x.prototype.numberFormat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",a=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return v(e,n,r,a)},x.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},x.prototype.setLocale=function(e){if(e&&e[""]&&e[""]["key-hash"]){var t=e[""]["key-hash"],n=function(e,t){var n=!1===t?"":String(t);if(void 0!==_[n+e])return _[n+e];var r=b()().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)y.push(r(!1));else{var a=t.substr(5).indexOf("-");if(a<0){var i=Number(t.substr(5));y.push(r(i))}else for(var o=Number(t.substr(5,a)),c=Number(t.substr(6+a)),s=o;s<=c;s++)y.push(r(s))}}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}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.jed=new u.a({locale_data:{messages:this.state.locale}}),m.a.locale(this.state.localeSlug),this.state.numberFormatSettings.decimal_point=E(this.state.jed,w(["number_format_decimals"])),this.state.numberFormatSettings.thousands_sep=E(this.state.jed,w(["number_format_thousands_sep"])),"number_format_decimals"===this.state.numberFormatSettings.decimal_point&&(this.state.numberFormatSettings.decimal_point="."),"number_format_thousands_sep"===this.state.numberFormatSettings.thousands_sep&&(this.state.numberFormatSettings.thousands_sep=","),this.state.translations.clear(),this.stateObserver.emit("change")},x.prototype.getLocale=function(){return this.state.locale},x.prototype.getLocaleSlug=function(){return this.state.localeSlug},x.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.jed.options.locale_data.messages[t]=e[t]);this.state.translations.clear(),this.stateObserver.emit("change")},x.prototype.hasTranslation=function(){return!!C(this,w(arguments))},x.prototype.translate=function(){var e,t=w(arguments),n=!t.components;if(n){try{e=JSON.stringify(t)}catch(c){n=!1}if(e){var r=this.state.translations.get(e);if(r)return r}}var a=C(this,t);if(a||(a=E(this.state.jed,t)),t.args){var i=Array.isArray(t.args)?t.args.slice(0):[t.args];i.unshift(a);try{a=u.a.sprintf.apply(u.a,i)}catch(l){if(!window||!window.console)return;var o=this.throwErrors?"error":"warn";"string"!=typeof l?window.console[o](l):window.console[o]("i18n sprintf error:",i)}}return t.components&&(a=s()({mixedString:a,components:t.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(e){a=e(a,t)})),n&&this.state.translations.set(e,a),a},x.prototype.reRenderTranslations=function(){j("Re-rendering all translations due to external request"),this.state.translations.clear(),this.stateObserver.emit("change")},x.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},x.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};var S,A,F=x,P=n(7),T=n.n(P),M=n(11),N=n.n(M),R=n(8),D=n.n(R),z=n(9),I=n.n(z),L=n(4),B=n.n(L),q=n(10),U=n.n(q),V=n(3),H=n.n(V),G=n(33),$=n.n(G),W=n(18),K=n.n(W),Z=new F,J=(Z.moment,Z.numberFormat.bind(Z)),Y=(Z.translate.bind(Z),Z.configure.bind(Z),Z.setLocale.bind(Z),Z.getLocale.bind(Z),Z.getLocaleSlug.bind(Z),Z.addTranslations.bind(Z),Z.reRenderTranslations.bind(Z),Z.registerComponentUpdateHook.bind(Z),Z.registerTranslateHook.bind(Z),Z.state,Z.stateObserver,Z.on.bind(Z),Z.off.bind(Z),Z.emit.bind(Z),A={moment:(S=Z).moment,numberFormat:S.numberFormat.bind(S),translate:S.translate.bind(S)},function(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}}(Z),n(45));function Q(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object(Y.a)(t);if(!r||isNaN(e))return null;var i=a()({},r,n),o=i.decimal,c=i.grouping,s=i.precision,l=i.symbol,u=e<0?"-":"",p=J(Math.abs(e),{decimals:s,thousandsSep:c,decPoint:o});return"".concat(u).concat(l).concat(p)}n.d(t,"a",(function(){return Q}))},function(e,t,n){"use strict";var r=n(93),a=n.n(r),i=n(5),o={i18n_default_locale_slug:"en",mc_analytics_enabled:!0,google_analytics_enabled:!1,google_analytics_key:null};var c,s,l=function(e){if(e in o)return o[e];throw new Error("config key `"+e+"` does not exist")},u=a()("dops:analytics");window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;var p={initialize:function(e,t,n){p.setUser(e,t),p.setSuperProps(n),p.identifyUser()},setUser:function(e,t){s={ID:e,username:t}},setSuperProps:function(e){c=e},mc:{bumpStat:function(e,t){var n=function(e,t){var n="";if("object"==typeof e){for(var r in e)n+="&x_"+encodeURIComponent(r)+"="+encodeURIComponent(e[r]);u("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),u('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);l("mc_analytics_enabled")&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){var n=function(e,t){var n="";if("object"==typeof e){for(var r in e)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(e[r]);u("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),u('Built stat "%s" in group "%s"',t,e);return n}(e,t);l("mc_analytics_enabled")&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){p.tracks.recordPageView(e),p.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,r,a,i,o){p.ga.recordPurchase(e,t,n,r,a,i,o)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(c&&(u("- Super Props: %o",c),t=Object(i.assign)(t,c)),u('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):u('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){var t="object"==typeof e?e:{target:e};p.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){p.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){u("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){var e={};p.ga.initialized||(s&&(e={userId:"u-"+s.ID}),window.ga("create",l("google_analytics_key"),"auto",e),p.ga.initialized=!0)},recordPageView:function(e,t){p.ga.initialize(),u("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),l("google_analytics_enabled")&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,n,r){p.ga.initialize();var a="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(a+=" [Option Label: "+n+"]"),void 0!==r&&(a+=" [Option Value: "+r+"]"),u(a),l("google_analytics_enabled")&&window.ga("send","event",e,t,n,r)},recordPurchase:function(e,t,n,r,a,i,o){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:r,currency:o}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:a,quantity:i}),window.ga("ecommerce:send")}},identifyUser:function(){s&&window._tkq.push(["identifyUser",s.ID,s.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}};t.a=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(5),a=function(e,t){return Object(r.reduce)(t,(function(t,n,r){var a=e[r],i=a.type,o=a.validator,c=a.validValues,s=a.default;return t[r]="boolean"===i?!!n:o?o(n)?n:s:c?c.includes(n)?n:s:n,t}),{})}},function(e,t){!function(){e.exports=this.wp.editPost}()},function(e,t,n){"use strict";var r=n(0),a=n(2),i=n(12),o=n.n(i);t.a=function(e){var t=e.size,n=void 0===t?24:t,i=e.className;return Object(r.createElement)(a.SVG,{className:o()("jetpack-logo",i),width:n,height:n,viewBox:"0 0 32 32"},Object(r.createElement)(a.Path,{className:"jetpack-logo__icon-circle",fill:"#00be28",d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z"}),Object(r.createElement)(a.Polygon,{className:"jetpack-logo__icon-triangle",fill:"#fff",points:"15,19 7,19 15,3 "}),Object(r.createElement)(a.Polygon,{className:"jetpack-logo__icon-triangle",fill:"#fff",points:"17,29 17,13 25,13 "}))}},function(e,t,n){var r=n(3);e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){r(e,t,n[t])}))}return e}},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.size,a=void 0===n?24:n,i=e.onClick,c=(e.icon,e.className),s=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","onClick","icon","className"]),l=["gridicon","gridicons-star",c,(t=a,!(0!=t%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",r({className:l,height:a,width:a,onClick:i},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"})))};var a,i=n(33),o=(a=i)&&a.__esModule?a:{default:a};e.exports=t.default},function(e,t,n){"use strict";var r=n(0),a=n(2),i=n(14),o=n(13),c=n(6);n(144);t.a=Object(i.compose)([Object(o.withDispatch)((function(e,t){var n=t.blockName,r=t.href,a=t.onClick;return{autosaveAndRedirect:function(t){return regeneratorRuntime.async((function(i){for(;;)switch(i.prev=i.next){case 0:return t.preventDefault(),a(n),i.next=4,regeneratorRuntime.awrap(e("core/editor").autosave());case 4:window.top.location.href=r;case 5:case"end":return i.stop()}}))}}}))])((function(e){var t=e.autosaveAndRedirect,n=e.buttonLabel,i=e.href,o=e.icon,s=e.subtitle,l=e.title;return Object(r.createElement)(c.Warning,{actions:i&&[Object(r.createElement)(a.Button,{href:i,onClick:t,target:"_top",isDefault:!0},n)],className:"jetpack-block-nudge"},Object(r.createElement)("span",{className:"jetpack-block-nudge__info"},o,Object(r.createElement)("span",{className:"jetpack-block-nudge__text-container"},Object(r.createElement)("span",{className:"jetpack-block-nudge__title"},l),Object(r.createElement)("span",{className:"jetpack-block-nudge__message"},s))))}))},function(e,t){!function(){e.exports=this.wp.date}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(15),a=n.n(r),i=n(0),o=n(12),c=n.n(o),s=n(5),l=n(16),u=n(6),p=n(13),d=n(26),h=function(e){var t=e.attributes,n=e.styleOption,r=e.viewportWidth,o=e.blockName,c=Object(l.getBlockType)(o);return Object(i.createElement)("div",{className:"block-editor-block-styles__item-preview"},Object(i.createElement)(u.BlockPreview,{viewportWidth:r,blocks:c.example?Object(l.getBlockFromExample)(o,{attributes:a()({},c.example.attributes,{style:n.value}),innerBlocks:c.example.innerBlocks}):Object(l.createBlock)(c,t)}))},m=i.memo?Object(i.memo)(h,(function(e,t){return Object(s.isEqual)(e,t)})):h;function f(e){var t,n=e.attributes,r=e.clientId,o=e.styleOptions,s=e.onSelectStyle,l=e.activeStyle,u=e.viewportWidth;return p.useSelect&&(t=Object(p.useSelect)((function(e){return(0,e("core/block-editor").getBlock)(r)}))),Object(i.createElement)("div",{className:"block-editor-block-styles"},o.map((function(e){var r=a()({},n,{style:e.value});return Object(i.createElement)("div",{key:e.value,className:c()("block-editor-block-styles__item",{"is-active":e.value===l}),onClick:function(){s({style:e.value})},onKeyDown:function(t){d.ENTER!==t.keyCode&&d.SPACE!==t.keyCode||(t.preventDefault(),s({style:e.value}))},role:"button",tabIndex:"0","aria-label":e.label},p.useSelect&&t&&Object(i.createElement)(m,{blockName:t.name,styleOption:e,attributes:r,viewportWidth:u}),Object(i.createElement)("div",{className:"block-editor-block-styles__item-label"},e.label))})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),a=n(1),i=n(2),o=n(47),c=n(44),s=Object(i.createSlotFill)("JetpackLikesAndSharingPanel"),l=s.Fill,u=s.Slot;Object(o.registerPlugin)("jetpack-likes-and-sharing-panel",{render:function(){return Object(r.createElement)(u,null,(function(e){return e.length?Object(r.createElement)(c.a,null,Object(r.createElement)(i.PanelBody,{title:Object(a.__)("Likes and Sharing","jetpack")},e)):null}))}})},function(e,t,n){"use strict";var r=n(233);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=a.default.parse(e,!0,!0),r="https:"===n.protocol;delete n.protocol,delete n.auth,delete n.port;var l={slashes:!0,protocol:"https:",query:{}};if(f=n.host,/^i[0-2]\.wp\.com$/.test(f))l.pathname=n.pathname,l.hostname=n.hostname;else{if(n.search)return null;var u=a.default.format(n);l.pathname=0===u.indexOf("//")?u.substring(1):u,l.hostname=(p=l.pathname,d=(0,i.default)(p),h=(0,o.default)(d),m="i"+Math.floor(3*h()),c('determined server "%s" to use with "%s"',m,p),m+".wp.com"),r&&(l.query.ssl=1)}var p,d,h,m;var f;if(t)for(var b in t)"host"!==b&&"hostname"!==b?"secure"!==b||t[b]?l.query[s[b]||b]=t[b]:l.protocol="http:":l.hostname=t[b];var g=a.default.format(l);return c("generated Photon URL: %s",g),g};var a=r(n(28)),i=r(n(234)),o=r(n(235)),c=(0,r(n(236)).default)("photon"),s={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return s}));var r=n(18),a=n.n(r),i=n(22);function o(e,t){var n=(t-e.reduce((function(e,t){return e+t}),0))/e.length;return e.map((function(e){return e+n}))}function c(e,t){!function(e,t,n){var r=a()(t,2),c=r[0],s=r[1],h=1/c*(n-i.b*(e.childElementCount-1)-s);!function(e,t){var n=t.rawHeight,r=t.rowWidth,a=l(e),c=a.map((function(e){return(n-i.b*(e.childElementCount-1))*p(e)[0]})),s=o(c,r);a.forEach((function(e,t){var r=c[t],a=s[t];!function(e,t){var n=t.colHeight,r=t.width,a=t.rawWidth,i=o(u(e).map((function(e){return a/d(e)})),n);Array.from(e.children).forEach((function(e,t){var n=i[t];e.setAttribute("style","height:".concat(n,"px;width:").concat(r,"px;"))}))}(e,{colHeight:n-i.b*(e.childElementCount-1),width:a,rawWidth:r})}))}(e,{rawHeight:h,rowWidth:n-i.b*(e.childElementCount-1)})}(e,function(e){return l(e).map(p).reduce((function(e,t){var n=a()(e,2),r=n[0],i=n[1],o=a()(t,2);return[r+o[0],i+o[1]]}),[0,0])}(e),t)}function s(e){return Array.from(e.querySelectorAll(".tiled-gallery__row"))}function l(e){return Array.from(e.querySelectorAll(".tiled-gallery__col"))}function u(e){return Array.from(e.querySelectorAll(".tiled-gallery__item > img, .tiled-gallery__item > a > img"))}function p(e){var t=u(e),n=t.length,r=1/t.map(d).reduce((function(e,t){return e+1/t}),0);return[r,r*n||1]}function d(e){var t=parseInt(e.dataset.width,10),n=parseInt(e.dataset.height,10);return t&&!Number.isNaN(t)&&n&&!Number.isNaN(n)?t/n:1}},function(e,t,n){!function(n,r){var a=Array.prototype,i=Object.prototype,o=a.slice,c=i.hasOwnProperty,s=a.forEach,l={},u={forEach:function(e,t,n){var r,a,i;if(null!==e)if(s&&e.forEach===s)e.forEach(t,n);else if(e.length===+e.length){for(r=0,a=e.length;r<a;r++)if(r in e&&t.call(n,e[r],r,e)===l)return}else for(i in e)if(c.call(e,i)&&t.call(n,e[i],i,e)===l)return},extend:function(e){return this.forEach(o.call(arguments,1),(function(t){for(var n in t)e[n]=t[n]})),e}},p=function(e){if(this.defaults={locale_data:{messages:{"":{domain:"messages",lang:"en",plural_forms:"nplurals=2; plural=(n != 1);"}}},domain:"messages",debug:!1},this.options=u.extend({},this.defaults,e),this.textdomain(this.options.domain),e.domain&&!this.options.locale_data[this.options.domain])throw new Error("Text domain set to non-existent domain: `"+e.domain+"`")};function d(e){return p.PF.compile(e||"nplurals=2; plural=(n != 1);")}function h(e,t){this._key=e,this._i18n=t}p.context_delimiter=String.fromCharCode(4),u.extend(h.prototype,{onDomain:function(e){return this._domain=e,this},withContext:function(e){return this._context=e,this},ifPlural:function(e,t){return this._val=e,this._pkey=t,this},fetch:function(e){return"[object Array]"!={}.toString.call(e)&&(e=[].slice.call(arguments,0)),(e&&e.length?p.sprintf:function(e){return e})(this._i18n.dcnpgettext(this._domain,this._context,this._key,this._pkey,this._val),e)}}),u.extend(p.prototype,{translate:function(e){return new h(e,this)},textdomain:function(e){if(!e)return this._textdomain;this._textdomain=e},gettext:function(e){return this.dcnpgettext.call(this,void 0,void 0,e)},dgettext:function(e,t){return this.dcnpgettext.call(this,e,void 0,t)},dcgettext:function(e,t){return this.dcnpgettext.call(this,e,void 0,t)},ngettext:function(e,t,n){return this.dcnpgettext.call(this,void 0,void 0,e,t,n)},dngettext:function(e,t,n,r){return this.dcnpgettext.call(this,e,void 0,t,n,r)},dcngettext:function(e,t,n,r){return this.dcnpgettext.call(this,e,void 0,t,n,r)},pgettext:function(e,t){return this.dcnpgettext.call(this,void 0,e,t)},dpgettext:function(e,t,n){return this.dcnpgettext.call(this,e,t,n)},dcpgettext:function(e,t,n){return this.dcnpgettext.call(this,e,t,n)},npgettext:function(e,t,n,r){return this.dcnpgettext.call(this,void 0,e,t,n,r)},dnpgettext:function(e,t,n,r,a){return this.dcnpgettext.call(this,e,t,n,r,a)},dcnpgettext:function(e,t,n,r,a){var i;if(r=r||n,e=e||this._textdomain,!this.options)return(i=new p).dcnpgettext.call(i,void 0,void 0,n,r,a);if(!this.options.locale_data)throw new Error("No locale data provided.");if(!this.options.locale_data[e])throw new Error("Domain `"+e+"` was not found.");if(!this.options.locale_data[e][""])throw new Error("No locale meta information provided.");if(!n)throw new Error("No translation key found.");var o,c,s,l=t?t+p.context_delimiter+n:n,u=this.options.locale_data,h=u[e],m=(u.messages||this.defaults.locale_data.messages)[""],f=h[""].plural_forms||h[""]["Plural-Forms"]||h[""]["plural-forms"]||m.plural_forms||m["Plural-Forms"]||m["plural-forms"];if(void 0===a)s=0;else{if("number"!=typeof a&&(a=parseInt(a,10),isNaN(a)))throw new Error("The number that was passed in is not a number.");s=d(f)(a)}if(!h)throw new Error("No domain named `"+e+"` could be found.");return!(o=h[l])||s>o.length?(this.options.missing_key_callback&&this.options.missing_key_callback(l,e),c=[n,r],!0===this.options.debug&&console.log(c[d(f)(a)]),c[d()(a)]):(c=o[s])||(c=[n,r])[d()(a)]}});var m,f,b=function(){function e(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function t(e,t){for(var n=[];t>0;n[--t]=e);return n.join("")}var n=function(){return n.cache.hasOwnProperty(arguments[0])||(n.cache[arguments[0]]=n.parse(arguments[0])),n.format.call(null,n.cache[arguments[0]],arguments)};return n.format=function(n,r){var a,i,o,c,s,l,u,p=1,d=n.length,h="",m=[];for(i=0;i<d;i++)if("string"===(h=e(n[i])))m.push(n[i]);else if("array"===h){if((c=n[i])[2])for(a=r[p],o=0;o<c[2].length;o++){if(!a.hasOwnProperty(c[2][o]))throw b('[sprintf] property "%s" does not exist',c[2][o]);a=a[c[2][o]]}else a=c[1]?r[c[1]]:r[p++];if(/[^s]/.test(c[8])&&"number"!=e(a))throw b("[sprintf] expecting number but found %s",e(a));switch(null==a&&(a=""),c[8]){case"b":a=a.toString(2);break;case"c":a=String.fromCharCode(a);break;case"d":a=parseInt(a,10);break;case"e":a=c[7]?a.toExponential(c[7]):a.toExponential();break;case"f":a=c[7]?parseFloat(a).toFixed(c[7]):parseFloat(a);break;case"o":a=a.toString(8);break;case"s":a=(a=String(a))&&c[7]?a.substring(0,c[7]):a;break;case"u":a=Math.abs(a);break;case"x":a=a.toString(16);break;case"X":a=a.toString(16).toUpperCase()}a=/[def]/.test(c[8])&&c[3]&&a>=0?"+"+a:a,l=c[4]?"0"==c[4]?"0":c[4].charAt(1):" ",u=c[6]-String(a).length,s=c[6]?t(l,u):"",m.push(c[5]?a+s:s+a)}return m.join("")},n.cache={},n.parse=function(e){for(var t=e,n=[],r=[],a=0;t;){if(null!==(n=/^[^\x25]+/.exec(t)))r.push(n[0]);else if(null!==(n=/^\x25{2}/.exec(t)))r.push("%");else{if(null===(n=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(t)))throw"[sprintf] huh?";if(n[2]){a|=1;var i=[],o=n[2],c=[];if(null===(c=/^([a-z_][a-z_\d]*)/i.exec(o)))throw"[sprintf] huh?";for(i.push(c[1]);""!==(o=o.substring(c[0].length));)if(null!==(c=/^\.([a-z_][a-z_\d]*)/i.exec(o)))i.push(c[1]);else{if(null===(c=/^\[(\d+)\]/.exec(o)))throw"[sprintf] huh?";i.push(c[1])}n[2]=i}else a|=2;if(3===a)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";r.push(n)}t=t.substring(n[0].length)}return r},n}(),g=function(e,t){return t.unshift(e),b.apply(null,t)};p.parse_plural=function(e,t){return e=e.replace(/n/g,t),p.parse_expression(e)},p.sprintf=function(e,t){return"[object Array]"=={}.toString.call(t)?g(e,[].slice.call(t)):b.apply(this,[].slice.call(arguments))},p.prototype.sprintf=function(){return p.sprintf.apply(this,arguments)},(p.PF={}).parse=function(e){var t=p.PF.extractPluralExpr(e);return p.PF.parser.parse.call(p.PF.parser,t)},p.PF.compile=function(e){var t=p.PF.parse(e);return function(e){return!0===(n=p.PF.interpreter(t)(e))?1:n||0;var n}},p.PF.interpreter=function(e){return function(t){switch(e.type){case"GROUP":return p.PF.interpreter(e.expr)(t);case"TERNARY":return p.PF.interpreter(e.expr)(t)?p.PF.interpreter(e.truthy)(t):p.PF.interpreter(e.falsey)(t);case"OR":return p.PF.interpreter(e.left)(t)||p.PF.interpreter(e.right)(t);case"AND":return p.PF.interpreter(e.left)(t)&&p.PF.interpreter(e.right)(t);case"LT":return p.PF.interpreter(e.left)(t)<p.PF.interpreter(e.right)(t);case"GT":return p.PF.interpreter(e.left)(t)>p.PF.interpreter(e.right)(t);case"LTE":return p.PF.interpreter(e.left)(t)<=p.PF.interpreter(e.right)(t);case"GTE":return p.PF.interpreter(e.left)(t)>=p.PF.interpreter(e.right)(t);case"EQ":return p.PF.interpreter(e.left)(t)==p.PF.interpreter(e.right)(t);case"NEQ":return p.PF.interpreter(e.left)(t)!=p.PF.interpreter(e.right)(t);case"MOD":return p.PF.interpreter(e.left)(t)%p.PF.interpreter(e.right)(t);case"VAR":return t;case"NUM":return e.val;default:throw new Error("Invalid Token found.")}}},p.PF.extractPluralExpr=function(e){e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),/;\s*$/.test(e)||(e=e.concat(";"));var t,n=/nplurals\=(\d+);/,r=e.match(n);if(!(r.length>1))throw new Error("nplurals not found in plural_forms string: "+e);if(r[1],!((t=(e=e.replace(n,"")).match(/plural\=(.*);/))&&t.length>1))throw new Error("`plural` expression not found: "+e);return t[1]},p.PF.parser=(m={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,"?":6,":":7,"||":8,"&&":9,"<":10,"<=":11,">":12,">=":13,"!=":14,"==":15,"%":16,"(":17,")":18,n:19,NUMBER:20,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",6:"?",7:":",8:"||",9:"&&",10:"<",11:"<=",12:">",13:">=",14:"!=",15:"==",16:"%",17:"(",18:")",19:"n",20:"NUMBER"},productions_:[0,[3,2],[4,5],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,1],[4,1]],performAction:function(e,t,n,r,a,i,o){var c=i.length-1;switch(a){case 1:return{type:"GROUP",expr:i[c-1]};case 2:this.$={type:"TERNARY",expr:i[c-4],truthy:i[c-2],falsey:i[c]};break;case 3:this.$={type:"OR",left:i[c-2],right:i[c]};break;case 4:this.$={type:"AND",left:i[c-2],right:i[c]};break;case 5:this.$={type:"LT",left:i[c-2],right:i[c]};break;case 6:this.$={type:"LTE",left:i[c-2],right:i[c]};break;case 7:this.$={type:"GT",left:i[c-2],right:i[c]};break;case 8:this.$={type:"GTE",left:i[c-2],right:i[c]};break;case 9:this.$={type:"NEQ",left:i[c-2],right:i[c]};break;case 10:this.$={type:"EQ",left:i[c-2],right:i[c]};break;case 11:this.$={type:"MOD",left:i[c-2],right:i[c]};break;case 12:this.$={type:"GROUP",expr:i[c-1]};break;case 13:this.$={type:"VAR"};break;case 14:this.$={type:"NUM",val:Number(e)}}},table:[{3:1,4:2,17:[1,3],19:[1,4],20:[1,5]},{1:[3]},{5:[1,6],6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{4:17,17:[1,3],19:[1,4],20:[1,5]},{5:[2,13],6:[2,13],7:[2,13],8:[2,13],9:[2,13],10:[2,13],11:[2,13],12:[2,13],13:[2,13],14:[2,13],15:[2,13],16:[2,13],18:[2,13]},{5:[2,14],6:[2,14],7:[2,14],8:[2,14],9:[2,14],10:[2,14],11:[2,14],12:[2,14],13:[2,14],14:[2,14],15:[2,14],16:[2,14],18:[2,14]},{1:[2,1]},{4:18,17:[1,3],19:[1,4],20:[1,5]},{4:19,17:[1,3],19:[1,4],20:[1,5]},{4:20,17:[1,3],19:[1,4],20:[1,5]},{4:21,17:[1,3],19:[1,4],20:[1,5]},{4:22,17:[1,3],19:[1,4],20:[1,5]},{4:23,17:[1,3],19:[1,4],20:[1,5]},{4:24,17:[1,3],19:[1,4],20:[1,5]},{4:25,17:[1,3],19:[1,4],20:[1,5]},{4:26,17:[1,3],19:[1,4],20:[1,5]},{4:27,17:[1,3],19:[1,4],20:[1,5]},{6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[1,28]},{6:[1,7],7:[1,29],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{5:[2,3],6:[2,3],7:[2,3],8:[2,3],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,3]},{5:[2,4],6:[2,4],7:[2,4],8:[2,4],9:[2,4],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,4]},{5:[2,5],6:[2,5],7:[2,5],8:[2,5],9:[2,5],10:[2,5],11:[2,5],12:[2,5],13:[2,5],14:[2,5],15:[2,5],16:[1,16],18:[2,5]},{5:[2,6],6:[2,6],7:[2,6],8:[2,6],9:[2,6],10:[2,6],11:[2,6],12:[2,6],13:[2,6],14:[2,6],15:[2,6],16:[1,16],18:[2,6]},{5:[2,7],6:[2,7],7:[2,7],8:[2,7],9:[2,7],10:[2,7],11:[2,7],12:[2,7],13:[2,7],14:[2,7],15:[2,7],16:[1,16],18:[2,7]},{5:[2,8],6:[2,8],7:[2,8],8:[2,8],9:[2,8],10:[2,8],11:[2,8],12:[2,8],13:[2,8],14:[2,8],15:[2,8],16:[1,16],18:[2,8]},{5:[2,9],6:[2,9],7:[2,9],8:[2,9],9:[2,9],10:[2,9],11:[2,9],12:[2,9],13:[2,9],14:[2,9],15:[2,9],16:[1,16],18:[2,9]},{5:[2,10],6:[2,10],7:[2,10],8:[2,10],9:[2,10],10:[2,10],11:[2,10],12:[2,10],13:[2,10],14:[2,10],15:[2,10],16:[1,16],18:[2,10]},{5:[2,11],6:[2,11],7:[2,11],8:[2,11],9:[2,11],10:[2,11],11:[2,11],12:[2,11],13:[2,11],14:[2,11],15:[2,11],16:[2,11],18:[2,11]},{5:[2,12],6:[2,12],7:[2,12],8:[2,12],9:[2,12],10:[2,12],11:[2,12],12:[2,12],13:[2,12],14:[2,12],15:[2,12],16:[2,12],18:[2,12]},{4:30,17:[1,3],19:[1,4],20:[1,5]},{5:[2,2],6:[1,7],7:[2,2],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,2]}],defaultActions:{6:[2,1]},parseError:function(e,t){throw new Error(e)},parse:function(e){var t=this,n=[0],r=[null],a=[],i=this.table,o="",c=0,s=0,l=0;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var u=this.lexer.yylloc;function p(){var e;return"number"!=typeof(e=t.lexer.lex()||1)&&(e=t.symbols_[e]||e),e}a.push(u),"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var d,h,m,f,b,g,v,j,y,_,k={};;){if(m=n[n.length-1],this.defaultActions[m]?f=this.defaultActions[m]:(null==d&&(d=p()),f=i[m]&&i[m][d]),void 0===f||!f.length||!f[0]){if(!l){for(g in y=[],i[m])this.terminals_[g]&&g>2&&y.push("'"+this.terminals_[g]+"'");var O="";O=this.lexer.showPosition?"Parse error on line "+(c+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+y.join(", ")+", got '"+this.terminals_[d]+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==d?"end of input":"'"+(this.terminals_[d]||d)+"'"),this.parseError(O,{text:this.lexer.match,token:this.terminals_[d]||d,line:this.lexer.yylineno,loc:u,expected:y})}if(3==l){if(1==d)throw new Error(O||"Parsing halted.");s=this.lexer.yyleng,o=this.lexer.yytext,c=this.lexer.yylineno,u=this.lexer.yylloc,d=p()}for(;!(2..toString()in i[m]);){if(0==m)throw new Error(O||"Parsing halted.");_=1,n.length=n.length-2*_,r.length=r.length-_,a.length=a.length-_,m=n[n.length-1]}h=d,d=2,f=i[m=n[n.length-1]]&&i[m][2],l=3}if(f[0]instanceof Array&&f.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+d);switch(f[0]){case 1:n.push(d),r.push(this.lexer.yytext),a.push(this.lexer.yylloc),n.push(f[1]),d=null,h?(d=h,h=null):(s=this.lexer.yyleng,o=this.lexer.yytext,c=this.lexer.yylineno,u=this.lexer.yylloc,l>0&&l--);break;case 2:if(v=this.productions_[f[1]][1],k.$=r[r.length-v],k._$={first_line:a[a.length-(v||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(v||1)].first_column,last_column:a[a.length-1].last_column},void 0!==(b=this.performAction.call(k,o,s,c,this.yy,f[1],r,a)))return b;v&&(n=n.slice(0,-1*v*2),r=r.slice(0,-1*v),a=a.slice(0,-1*v)),n.push(this.productions_[f[1]][0]),r.push(k.$),a.push(k._$),j=i[n[n.length-2]][n[n.length-1]],n.push(j);break;case 3:return!0}}return!0}},f=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parseError)throw new Error(e);this.yy.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.match+=e,this.matched+=e,e.match(/\n/)&&this.yylineno++,this._input=this._input.slice(1),e},unput:function(e){return this._input=e+this._input,this},more:function(){return this._more=!0,this},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;var e,t;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;r<n.length;r++)if(e=this._input.match(this.rules[n[r]]))return(t=e[0].match(/\n.*/g))&&(this.yylineno+=t.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:t?t[t.length-1].length-1:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],this.performAction.call(this,this.yy,this,n[r],this.conditionStack[this.conditionStack.length-1])||void 0;if(""===this._input)return this.EOF;this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)},performAction:function(e,t,n,r){switch(n){case 0:break;case 1:return 20;case 2:return 19;case 3:return 8;case 4:return 9;case 5:return 6;case 6:return 7;case 7:return 11;case 8:return 13;case 9:return 10;case 10:return 12;case 11:return 14;case 12:return 15;case 13:return 16;case 14:return 17;case 15:return 18;case 16:return 5;case 17:return"INVALID"}},rules:[/^\s+/,/^[0-9]+(\.[0-9]+)?\b/,/^n\b/,/^\|\|/,/^&&/,/^\?/,/^:/,/^<=/,/^>=/,/^</,/^>/,/^!=/,/^==/,/^%/,/^\(/,/^\)/,/^$/,/^./],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}}};return e}(),m.lexer=f,m),e.exports&&(t=e.exports=p),t.Jed=p}()},function(e,t){var n=1e3,r=6e4,a=36e5,i=24*a;function o(e,t,n,r){var a=t>=1.5*n;return Math.round(e/n)+" "+r+(a?"s":"")}e.exports=function(e,t){t=t||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var o=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"weeks":case"week":case"w":return 6048e5*o;case"days":case"day":case"d":return o*i;case"hours":case"hour":case"hrs":case"hr":case"h":return o*a;case"minutes":case"minute":case"mins":case"min":case"m":return o*r;case"seconds":case"second":case"secs":case"sec":case"s":return o*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}(e);if("number"===c&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return o(e,t,i,"day");if(t>=a)return o(e,t,a,"hour");if(t>=r)return o(e,t,r,"minute");if(t>=n)return o(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=a)return Math.round(e/a)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(s){a=!0,i=s}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return n}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(e,t,n){"use strict";function r(){this.__rules__=[],this.__cache__=null}r.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},r.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},r.prototype.at=function(e,t,n){var r=this.__find__(e),a=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=a.alt||[],this.__cache__=null},r.prototype.before=function(e,t,n,r){var a=this.__find__(e),i=r||{};if(-1===a)throw new Error("Parser rule not found: "+e);this.__rules__.splice(a,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},r.prototype.after=function(e,t,n,r){var a=this.__find__(e),i=r||{};if(-1===a)throw new Error("Parser rule not found: "+e);this.__rules__.splice(a+1,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},r.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},r.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},r.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},r.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},r.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},e.exports=r},function(e,t,n){"use strict";function r(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}r.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return-1},r.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},r.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},r.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},r.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=r},function(e,t,n){"use strict";var r=n(92),a=n(91);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function c(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=a,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),a=0;a<e.length;a+=2)n.push(parseInt(e[a]+e[a+1],16))}else for(var r=0,a=0;a<e.length;a++){var o=e.charCodeAt(a);o<128?n[r++]=o:o<2048?(n[r++]=o>>6|192,n[r++]=63&o|128):i(e,a)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++a)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(a=0;a<e.length;a++)n[a]=0|e[a];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=c(e[n].toString(16));return t},t.htonl=o,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var a=e[r];"little"===t&&(a=o(a)),n+=s(a.toString(16))}return n},t.zero2=c,t.zero8=s,t.join32=function(e,t,n,a){var i=n-t;r(i%4==0);for(var o=new Array(i/4),c=0,s=t;c<o.length;c++,s+=4){var l;l="big"===a?e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]:e[s+3]<<24|e[s+2]<<16|e[s+1]<<8|e[s],o[c]=l>>>0}return o},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,a=0;r<e.length;r++,a+=4){var i=e[r];"big"===t?(n[a]=i>>>24,n[a+1]=i>>>16&255,n[a+2]=i>>>8&255,n[a+3]=255&i):(n[a+3]=i>>>24,n[a+2]=i>>>16&255,n[a+1]=i>>>8&255,n[a]=255&i)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,a){return e+t+n+r+a>>>0},t.sum64=function(e,t,n,r){var a=e[t],i=r+e[t+1]>>>0,o=(i<r?1:0)+n+a;e[t]=o>>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,a,i,o,c){var s=0,l=t;return s+=(l=l+r>>>0)<t?1:0,s+=(l=l+i>>>0)<i?1:0,e+n+a+o+(s+=(l=l+c>>>0)<c?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,a,i,o,c){return t+r+i+c>>>0},t.sum64_5_hi=function(e,t,n,r,a,i,o,c,s,l){var u=0,p=t;return u+=(p=p+r>>>0)<t?1:0,u+=(p=p+i>>>0)<i?1:0,u+=(p=p+c>>>0)<c?1:0,e+n+a+o+s+(u+=(p=p+l>>>0)<l?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,a,i,o,c,s,l){return t+r+i+c+l>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t,n){"use strict";var r,a="object"==typeof Reflect?Reflect:null,i=a&&"function"==typeof a.apply?a.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function c(){c.init.call(this)}e.exports=c,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var s=10;function l(e){return void 0===e._maxListeners?c.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var a,i,o,c;if("function"!=typeof n)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n);if(void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),o=i[t]),void 0===o)o=i[t]=n,++e._eventsCount;else if("function"==typeof o?o=i[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(a=l(e))>0&&o.length>a&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,c=s,console&&console.warn&&console.warn(c)}return e}function p(){for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,i(this.listener,this.target,e))}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},a=p.bind(r);return a.listener=n,r.wrapFn=a,a}function h(e,t,n){var r=e._events;if(void 0===r)return[];var a=r[t];return void 0===a?[]:"function"==typeof a?n?[a.listener||a]:[a]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(a):f(a,a.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function f(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),c.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},c.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},c.prototype.getMaxListeners=function(){return l(this)},c.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,a=this._events;if(void 0!==a)r=r&&void 0===a.error;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var c=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw c.context=o,c}var s=a[e];if(void 0===s)return!1;if("function"==typeof s)i(s,this,t);else{var l=s.length,u=f(s,l);for(n=0;n<l;++n)i(u[n],this,t)}return!0},c.prototype.addListener=function(e,t){return u(this,e,t,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(e,t){return u(this,e,t,!0)},c.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.on(e,d(this,e,t)),this},c.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.prependListener(e,d(this,e,t)),this},c.prototype.removeListener=function(e,t){var n,r,a,i,o;if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);if(void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(a=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){o=n[i].listener,a=i;break}if(a<0)return this;0===a?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,a),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(e){var t,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[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var a,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(a=i[r])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},c.prototype.listeners=function(e){return h(this,e,!0)},c.prototype.rawListeners=function(e){return h(this,e,!1)},c.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},c.prototype.listenerCount=m,c.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(18),a=n.n(r),i=n(5);n(135);function o(){var e,t,r,o,c,s,l,u=arguments;return regeneratorRuntime.async((function(p){for(;;)switch(p.prev=p.next){case 0:return e=u.length>0&&void 0!==u[0]?u[0]:".swiper-container",t=u.length>1&&void 0!==u[1]?u[1]:{},r=u.length>2&&void 0!==u[2]?u[2]:{},o={effect:"slide",grabCursor:!0,init:!0,initialSlide:0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{bulletElement:"button",clickable:!0,el:".swiper-pagination",type:"bullets"},preventClicksPropagation:!1,releaseFormElements:!1,setWrapperSize:!0,touchStartPreventDefault:!1,on:Object(i.mapValues)(r,(function(e){return function(){e(this)}}))},p.next=6,regeneratorRuntime.awrap(Promise.all([n.e(17).then(n.t.bind(null,266,7)),n.e(17).then(n.t.bind(null,267,7))]));case 6:return c=p.sent,s=a()(c,1),l=s[0].default,p.abrupt("return",new l(e,Object(i.merge)({},o,t)));case 10:case"end":return p.stop()}}))}},function(e,t){!function(){e.exports=this.wp.escapeHtml}()},,function(e,t,n){"use strict";var r=n(18),a=n.n(r),i=n(7),o=n.n(i),c=n(11),s=n.n(c),l=n(8),u=n.n(l),p=n(9),d=n.n(p),h=n(4),m=n.n(h),f=n(10),b=n.n(f),g=n(3),v=n.n(g),j=n(0),y=n(1),_=n(5),k=n(2),O=(n(131),function(e){function t(){var e,n;o()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=u()(this,(e=d()(t)).call.apply(e,[this].concat(a))),v()(m()(n),"handleClick",(function(){(0,n.props.onClick)(m()(n))})),v()(m()(n),"getPoint",(function(){var e=n.props.point;return[e.coordinates.longitude,e.coordinates.latitude]})),n}return b()(t,e),s()(t,[{key:"componentDidMount",value:function(){this.renderMarker()}},{key:"componentWillUnmount",value:function(){this.marker&&this.marker.remove()}},{key:"componentDidUpdate",value:function(){this.renderMarker()}},{key:"renderMarker",value:function(){var e=this.props,t=e.map,n=e.point,r=e.mapboxgl,a=e.markerColor,i=this.handleClick,o=[n.coordinates.longitude,n.coordinates.latitude],c=this.marker?this.marker.getElement():document.createElement("div");this.marker?this.marker.setLngLat(o):(c.className="wp-block-jetpack-map-marker",this.marker=new r.Marker(c).setLngLat(o).setOffset([0,-19]).addTo(t),this.marker.getElement().addEventListener("click",i)),c.innerHTML='<?xml version="1.0" encoding="UTF-8"?><svg version="1.1" viewBox="0 0 32 38" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g fill-rule="evenodd"><path id="d" d="m16 38s16-11.308 16-22-7.1634-16-16-16-16 5.3076-16 16 16 22 16 22z" fill="'+a+'" mask="url(#c)"/></g></svg>'}},{key:"render",value:function(){return null}}]),t}(j.Component));O.defaultProps={point:{},map:null,markerColor:"#000000",mapboxgl:null,onClick:function(){}};var w=O,E=function(e){function t(){var e,n;o()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=u()(this,(e=d()(t)).call.apply(e,[this].concat(a))),v()(m()(n),"closeClick",(function(){n.props.unsetActiveMarker()})),n}return b()(t,e),s()(t,[{key:"componentDidMount",value:function(){var e=this.props.mapboxgl;this.el=document.createElement("DIV"),this.infowindow=new e.Popup({closeButton:!0,closeOnClick:!1,offset:{left:[0,0],top:[0,5],right:[0,0],bottom:[0,-40]}}),this.infowindow.setDOMContent(this.el),this.infowindow.on("close",this.closeClick)}},{key:"componentDidUpdate",value:function(e){this.props.activeMarker!==e.activeMarker&&(this.props.activeMarker?this.openWindow():this.closeWindow())}},{key:"render",value:function(){return this.el?Object(j.createPortal)(this.props.children,this.el):null}},{key:"openWindow",value:function(){var e=this.props,t=e.map,n=e.activeMarker;this.infowindow.setLngLat(n.getPoint()).addTo(t)}},{key:"closeWindow",value:function(){this.infowindow.remove()}}]),t}(j.Component);E.defaultProps={unsetActiveMarker:function(){},activeMarker:null,map:null,mapboxgl:null};var C=E;var x=function(e){function t(){var e;return o()(this,t),e=u()(this,d()(t).apply(this,arguments)),v()(m()(e),"onMarkerClick",(function(t){var n=e.props.onMarkerClick;e.setState({activeMarker:t}),n()})),v()(m()(e),"onMapClick",(function(){e.setState({activeMarker:null})})),v()(m()(e),"clearCurrentMarker",(function(){e.setState({activeMarker:null})})),v()(m()(e),"updateActiveMarker",(function(t){var n=e.props.points,r=e.state.activeMarker.props.index,a=n.slice(0);Object(_.assign)(a[r],t),e.props.onSetPoints(a)})),v()(m()(e),"deleteActiveMarker",(function(){var t=e.props.points,n=e.state.activeMarker.props.index,r=t.slice(0);r.splice(n,1),e.props.onSetPoints(r),e.setState({activeMarker:null})})),v()(m()(e),"sizeMap",(function(){var t=e.state.map,n=e.mapRef.current,r=n.offsetWidth,a=window.location.search.indexOf("map-block-counter")>-1?window.innerHeight:.8*window.innerHeight,i=Math.min(.75*r,a);n.style.height=i+"px",t.resize(),e.setBoundsByMarkers()})),v()(m()(e),"setBoundsByMarkers",(function(){var t=e.props,n=t.admin,r=t.onSetMapCenter,a=t.onSetZoom,i=t.points,o=t.zoom,c=e.state,s=c.map,l=c.activeMarker,u=c.mapboxgl,p=c.zoomControl,d=c.boundsSetProgrammatically;if(s&&(i.length&&n?s.dragPan.disable():s.dragPan.enable(),i.length&&!l)){var h=new u.LngLatBounds;if(i.forEach((function(e){h.extend([e.coordinates.longitude,e.coordinates.latitude])})),r(h.getCenter()),i.length>1){s.fitBounds(h,{padding:{top:40,bottom:40,left:20,right:20}}),e.setState({boundsSetProgrammatically:!0});try{s.removeControl(p)}catch(m){}}else{if(s.setCenter(h.getCenter()),d){s.setZoom(12),a(12)}else s.setZoom(parseInt(o,10));s.addControl(p),e.setState({boundsSetProgrammatically:!1})}}})),v()(m()(e),"scriptsLoaded",(function(){var t=e.props,n=t.mapCenter,r=t.points;e.setState({loaded:!0}),r.length,e.initMap(n)})),v()(m()(e),"googlePoint2Mapbox",(function(e){return e.hasOwnProperty("lat")&&e.hasOwnProperty("lng")?e:{lat:e.latitude||0,lng:e.longitude||0}})),e.state={map:null,fit_to_bounds:!1,loaded:!1,mapboxgl:null},e.mapRef=Object(j.createRef)(),e.debouncedSizeMap=Object(_.debounce)(e.sizeMap,250),e}return b()(t,e),s()(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.points,r=t.admin,a=t.children,i=t.markerColor,o=this.state,c=o.map,s=o.activeMarker,l=o.mapboxgl,u=this.onMarkerClick,p=this.deleteActiveMarker,d=this.updateActiveMarker,h=Object(_.get)(s,"props.point")||{},m=h.title,f=h.caption,b=j.Children.map(a,(function(e){if("AddPoint"===Object(_.get)(e,"props.tagName"))return e})),g=c&&l&&n.map((function(e,t){return Object(j.createElement)(w,{key:t,point:e,index:t,map:c,mapboxgl:l,markerColor:i,onClick:u})})),v=l&&Object(j.createElement)(C,{activeMarker:s,map:c,mapboxgl:l,unsetActiveMarker:function(){return e.setState({activeMarker:null})}},s&&r&&Object(j.createElement)(j.Fragment,null,Object(j.createElement)(k.TextControl,{label:Object(y.__)("Marker Title","jetpack"),value:m,onChange:function(e){return d({title:e})}}),Object(j.createElement)(k.TextareaControl,{className:"wp-block-jetpack-map__marker-caption",label:Object(y.__)("Marker Caption","jetpack"),value:f,rows:"2",tag:"textarea",onChange:function(e){return d({caption:e})}}),Object(j.createElement)(k.Button,{onClick:p,className:"wp-block-jetpack-map__delete-btn"},Object(j.createElement)(k.Dashicon,{icon:"trash",size:"15"})," ",Object(y.__)("Delete Marker","jetpack"))),s&&!r&&Object(j.createElement)(j.Fragment,null,Object(j.createElement)("h3",null,m),Object(j.createElement)("p",null,f)));return Object(j.createElement)(j.Fragment,null,Object(j.createElement)("div",{className:"wp-block-jetpack-map__gm-container",ref:this.mapRef},g),v,b)}},{key:"componentDidMount",value:function(){this.props.apiKey&&this.loadMapLibraries()}},{key:"componentWillUnmount",value:function(){this.debouncedSizeMap.cancel()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.apiKey,r=t.children,a=t.points,i=t.mapStyle,o=t.mapDetails,c=this.state.map;n&&n.length>0&&n!==e.apiKey&&this.loadMapLibraries(),r!==e.children&&!1!==r&&this.clearCurrentMarker(),a!==e.points&&this.setBoundsByMarkers(),a.length!==e.points.length&&this.clearCurrentMarker(),i===e.mapStyle&&o===e.mapDetails||c.setStyle(this.getMapStyle())}},{key:"getMapStyle",value:function(){var e=this.props;return function(e,t){return{default:{details:"mapbox://styles/automattic/cjolkhmez0qdd2ro82dwog1in",no_details:"mapbox://styles/automattic/cjolkci3905d82soef4zlmkdo"},black_and_white:{details:"mapbox://styles/automattic/cjolkixvv0ty42spgt2k4j434",no_details:"mapbox://styles/automattic/cjolkgc540tvj2spgzzoq37k4"},satellite:{details:"mapbox://styles/mapbox/satellite-streets-v10",no_details:"mapbox://styles/mapbox/satellite-v9"},terrain:{details:"mapbox://styles/automattic/cjolkf8p405fh2soet2rdt96b",no_details:"mapbox://styles/automattic/cjolke6fz12ys2rpbpvgl12ha"}}[e][t?"details":"no_details"]}(e.mapStyle,e.mapDetails)}},{key:"getMapType",value:function(){switch(this.props.mapStyle){case"satellite":return"HYBRID";case"terrain":return"TERRAIN";case"black_and_white":default:return"ROADMAP"}}},{key:"loadMapLibraries",value:function(){var e=this,t=this.props.apiKey;Promise.all([n.e(16).then(n.t.bind(null,306,7)),n.e(16).then(n.t.bind(null,307,7))]).then((function(n){var r=a()(n,1)[0].default;r.accessToken=t,e.setState({mapboxgl:r},e.scriptsLoaded)}))}},{key:"initMap",value:function(e){var t=this,n=this.state.mapboxgl,r=this.props,a=r.zoom,i=r.onMapLoaded,o=r.onError,c=r.admin,s=null;try{s=new n.Map({container:this.mapRef.current,style:this.getMapStyle(),center:this.googlePoint2Mapbox(e),zoom:parseInt(a,10),pitchWithRotate:!1,attributionControl:!1,dragRotate:!1})}catch(u){return void o("mapbox_error",u.message)}s.on("error",(function(e){o("mapbox_error",e.error.message)}));var l=new n.NavigationControl({showCompass:!1,showZoom:!0});s.on("zoomend",(function(){t.props.onSetZoom(s.getZoom())})),s.on("moveend",(function(){var e=t.props,n=e.onSetMapCenter;e.points.length<1&&n(s.getCenter())})),s.getCanvas().addEventListener("click",this.onMapClick),this.setState({map:s,zoomControl:l},(function(){t.debouncedSizeMap(),s.addControl(l),c||s.addControl(new n.FullscreenControl),t.mapRef.current.addEventListener("alignmentChanged",t.debouncedSizeMap),s.resize(),i(),t.setState({loaded:!0}),window.addEventListener("resize",t.debouncedSizeMap)}))}}]),t}(j.Component);x.defaultProps={points:[],mapStyle:"default",zoom:13,onSetZoom:function(){},onSetMapCenter:function(){},onMapLoaded:function(){},onMarkerClick:function(){},onError:function(){},markerColor:"red",apiKey:null,mapCenter:{}};t.a=x},function(e,t){!function(){e.exports=this.moment}()},function(e,t){!function(){e.exports=this.wp.notices}()},function(e,t){!function(e){var t=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),n=function(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t&&(n[Symbol.iterator]=function(){return n}),n},r=function(e){return encodeURIComponent(e).replace(/%20/g,"+")},a=function(e){return decodeURIComponent(String(e).replace(/\+/g," "))};(function(){try{var t=e.URLSearchParams;return"a=1"===new t("?a=1").toString()&&"function"==typeof t.prototype.set}catch(n){return!1}})()||function(){var a=function(e){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var t=typeof e;if("undefined"===t);else if("string"===t)""!==e&&this._fromString(e);else if(e instanceof a){var n=this;e.forEach((function(e,t){n.append(t,e)}))}else{if(null===e||"object"!==t)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(e))for(var r=0;r<e.length;r++){var i=e[r];if("[object Array]"!==Object.prototype.toString.call(i)&&2===i.length)throw new TypeError("Expected [string, any] as entry at index "+r+" of URLSearchParams's input");this.append(i[0],i[1])}else for(var o in e)e.hasOwnProperty(o)&&this.append(o,e[o])}},i=a.prototype;i.append=function(e,t){e in this._entries?this._entries[e].push(String(t)):this._entries[e]=[String(t)]},i.delete=function(e){delete this._entries[e]},i.get=function(e){return e in this._entries?this._entries[e][0]:null},i.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},i.has=function(e){return e in this._entries},i.set=function(e,t){this._entries[e]=[String(t)]},i.forEach=function(e,t){var n;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){n=this._entries[r];for(var a=0;a<n.length;a++)e.call(t,n[a],r,this)}},i.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),n(e)},i.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),n(e)},i.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),n(e)},t&&(i[Symbol.iterator]=i.entries),i.toString=function(){var e=[];return this.forEach((function(t,n){e.push(r(n)+"="+r(t))})),e.join("&")},e.URLSearchParams=a}();var i=e.URLSearchParams.prototype;"function"!=typeof i.sort&&(i.sort=function(){var e=this,t=[];this.forEach((function(n,r){t.push([r,n]),e._entries||e.delete(r)})),t.sort((function(e,t){return e[0]<t[0]?-1:e[0]>t[0]?1:0})),e._entries&&(e._entries={});for(var n=0;n<t.length;n++)this.append(t[n][0],t[n][1])}),"function"!=typeof i._fromString&&Object.defineProperty(i,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(e){if(this._entries)this._entries={};else{var t=[];this.forEach((function(e,n){t.push(n)}));for(var n=0;n<t.length;n++)this.delete(t[n])}var r,i=(e=e.replace(/^\?/,"")).split("&");for(n=0;n<i.length;n++)r=i[n].split("="),this.append(a(r[0]),r.length>1?a(r[1]):"")}})}("undefined"!=typeof window?window:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),function(e){if(function(){try{var t=new e.URL("b","http://a");return t.pathname="c%20d","http://a/c%20d"===t.href&&t.searchParams}catch(n){return!1}}()||function(){var t=e.URL,n=function(t,n){"string"!=typeof t&&(t=String(t));var r,a=document;if(n&&(void 0===e.location||n!==e.location.href)){(r=(a=document.implementation.createHTMLDocument("")).createElement("base")).href=n,a.head.appendChild(r);try{if(0!==r.href.indexOf(n))throw new Error(r.href)}catch(p){throw new Error("URL unable to set base "+n+" due to "+p)}}var i=a.createElement("a");if(i.href=t,r&&(a.body.appendChild(i),i.href=i.href),":"===i.protocol||!/:/.test(i.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:i});var o=new e.URLSearchParams(this.search),c=!0,s=!0,l=this;["append","delete","set"].forEach((function(e){var t=o[e];o[e]=function(){t.apply(o,arguments),c&&(s=!1,l.search=o.toString(),s=!0)}})),Object.defineProperty(this,"searchParams",{value:o,enumerable:!0});var u=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==u&&(u=this.search,s&&(c=!1,this.searchParams._fromString(this.search),c=!0))}})},r=n.prototype;["hash","host","hostname","port","protocol"].forEach((function(e){!function(e){Object.defineProperty(r,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})}(e)})),Object.defineProperty(r,"search",{get:function(){return this._anchorElement.search},set:function(e){this._anchorElement.search=e,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(r,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],t=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0}}),n.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)},n.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)},e.URL=n}(),void 0!==e.location&&!("origin"in e.location)){var t=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:t,enumerable:!0})}catch(n){setInterval((function(){e.location.origin=t()}),100)}}}("undefined"!=typeof window?window:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this)},function(e,t,n){},function(e,t,n){"use strict";e.exports=n(163)},function(e,t,n){"use strict";e.exports.encode=n(164),e.exports.decode=n(165),e.exports.format=n(166),e.exports.parse=n(167)},function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(e,t,n){"use strict";var r="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",a="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",i=new RegExp("^(?:"+r+"|"+a+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),o=new RegExp("^(?:"+r+"|"+a+")");e.exports.HTML_TAG_RE=i,e.exports.HTML_OPEN_CLOSE_TAG_RE=o},function(e,t,n){"use strict";e.exports.tokenize=function(e,t){var n,r,a,i,o=e.pos,c=e.src.charCodeAt(o);if(t)r
1
  /*! For license information please see editor-experimental.js.LICENSE */