Plugin Directory

Changeset 2464442

Timestamp:
01/28/2021 05:16:59 PM (4 years ago)
Author:
yansern
Message:

Update Full Site Editing to 2.15

Location:
full-site-editing/trunk
Files:
18 added
6 deleted
46 edited

Legend:

Unmodified
Added
Removed
  • full-site-editing/trunk/block-inserter-modifications/dist/contextual-tips.asset.php

    r2460738 r2464442  
    1 <?php return array('dependencies' => array('lodash', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill'), 'version' => 'd3a13308345cfcf69b806924f5a9713c');
     1<?php return array('dependencies' => array('lodash', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill'), 'version' => '');
  • full-site-editing/trunk/block-inserter-modifications/dist/contextual-tips.js

    r2460738 r2464442  
    1 !function(e,t){for(var n in t)e[n]=t[n];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={270:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},180:function(e){e.exports=function(e){if(Array.isArray(e))return e}},981:function(e){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],_n=!0,r=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(_n=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(c){r=!0,i=c}finally{try{_n||null==s.return||s.return()}finally{if(r)throw i}}return n}}},365:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},68:function(e,t,n){var r=n(180),i=n(981),o=n(487),s=n(365);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||s()}},487:function(e,t,n){var r=n(270);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},308:function(e,t,n){"use strict";n.r(t);var r=n(68),i=n.n(r),o=window.wp.element,s=window.lodash,c=window.wp.blockEditor,u=window.wp.plugins,l=window.wp.components,a=window.wp.data,d=window.wp.compose,p=window.wp.i18n,f=!(!window||!window._currentSiteType||"simple"!==window._currentSiteType),m=function(){try{return window.self!==window.top}catch(e){return!0}}();function h(e){var t=e.section,n=e.children,r=e.subsection,i=window.location.hostname,s=(0,a.select)("core/editor"),c=s.getCurrentPostId(),u=s.getCurrentPostType(),l=m&&!f?"&"+encodeURIComponent("return=https://wordpress.com/".concat(u,"/").concat(i,"/").concat(c)):"",d="autofocus[section]=".concat(r),p="#";switch(t){case"themes":p=m?"https://wordpress.com/themes/".concat(i):"./themes.php";break;case"plugins":p=m||f?"https://wordpress.com/plugins/".concat(i):"./plugin-install.php";break;case"customizer":p=m&&f?"https://wordpress.com/customize/".concat(i,"?").concat(d):"./customize.php?".concat(d).concat(l)}return(0,o.createElement)("a",{href:p,target:"_blank",rel:"noreferrer noopener"},n)}function g(e,t,n){return void 0!==o.createInterpolateElement?(0,o.createInterpolateElement)(e,t):n}var w=[{context:"theme",keywords:["theme",(0,p.__)("theme","full-site-editing")],description:g((0,p.__)("You can visit the <a>theme directory</a> to select a different design for your site.","full-site-editing"),{a:(0,o.createElement)(h,{section:"themes"})},(0,p.__)("You can visit the theme directory to select a different design for your site.","full-site-editing")),permission:"settings"},{context:"css",keywords:["css",(0,p.__)("css","full-site-editing"),"style",(0,p.__)("style","full-site-editing")],description:g((0,p.__)("You can visit the the <a>Customizer</a> to edit the CSS on your site.","full-site-editing"),{a:(0,o.createElement)(h,{section:"customizer",subsection:"custom_css"})},(0,p.__)("You can visit the the Customizer to edit the CSS on your site.","full-site-editing")),permission:"settings"},{context:"plugin",keywords:["plugin",(0,p.__)("plugin","full-site-editing")],description:g((0,p.__)("You can visit the <a>plugin directory</a> to get started with installing new plugins.","full-site-editing"),{a:(0,o.createElement)(h,{section:"plugins"})},(0,p.__)("You can visit the plugin directory to get started with installing new plugins.","full-site-editing")),permission:"settings"},{context:"header",keywords:["header",(0,p.__)("header","full-site-editing")],description:g((0,p.__)("You can visit the the <a>Customizer</a> to edit your logo and site title.","full-site-editing"),{a:(0,o.createElement)(h,{section:"customizer",subsection:"title_tagline"})},(0,p.__)("You can visit the the Customizer to edit your logo and site title.","full-site-editing")),permission:"settings"},{context:"color",keywords:["color",(0,p.__)("color","full-site-editing")],description:g((0,p.__)("You can visit the the <a>Customizer</a> to edit the colors on your site.","full-site-editing"),{a:(0,o.createElement)(h,{section:"customizer",subsection:"colors"})},(0,p.__)("You can visit the the Customizer to edit the colors on your site.","full-site-editing")),permission:"settings"}];var y=(0,d.compose)((0,a.withSelect)((function(e){return{canUserCreate:function(t){return e("core").canUser("create",t)}}})))((function(e){var t=e.searchTerm,n=e.random,r=void 0!==n&&n,i=e.canUserCreate;if(!t)return null;if(!w.length)return null;var c=(0,s.deburr)((0,s.lowerCase)(t)).replace(/^\//,""),u=(0,s.filter)(w,(function(e){var t=e.keywords,n=e.permission;return i(n)&&(0,s.filter)((0,s.uniq)(t),(function(e){return(0,s.includes)(c,e)})).length}));if(!u.length)return null;var a=r?Math.floor(Math.random()*u.length):0;return(0,o.createElement)("div",{className:"contextual-tip"},(0,o.createElement)(l.Tip,null,(0,s.get)(u,[a,"description"])))})),_=function(){var e=(0,o.useState)(""),t=i()(e,2),n=t[0],r=t[1],u=(0,s.debounce)(r,400);return(0,o.createElement)(c.__experimentalInserterMenuExtension,null,(function(e){var t=e.filterValue;return e.hasItems||!t?null:(n!==t&&u(t),(0,o.createElement)(y,{searchTerm:t}))}))};void 0!==c.__experimentalInserterMenuExtension&&(0,u.registerPlugin)("block-inserter-contextual-tips",{render:function(){return(0,o.createElement)(_,null)}})}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(308)}());
     1!function()}());
  • full-site-editing/trunk/block-patterns/dist/block-patterns.asset.php

    r2460738 r2464442  
    1 <?php return array('dependencies' => array('react', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill'), 'version' => 'e98cda5b5cba110ecd94836b68883a06');
     1<?php return array('dependencies' => array('react', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill'), 'version' => '');
  • full-site-editing/trunk/block-patterns/dist/block-patterns.js

    r2460738 r2464442  
    1 !function(e,t){for(var r in t)e[r]=t[r];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={260:function(e){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},417:function(e,t,r){var n=r(260);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}e.exports=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}},138:function(e,t,r){"use strict";r.r(t);var n,o,i=r(417),c=r.n(i),u=window.wp.element,l=(window.React,window.wp.data),a=window.wp.i18n,f=window.wp.plugins,p=function(e){var t=e.title;return(0,u.createElement)("div",null,(0,u.createElement)("div",{className:"pattern-title-container"}),(0,u.createElement)("span",{className:"premium-pattern-title"}," ",t," "))},s=function(){var e=(0,l.useSelect)((function(e){return e("core/block-editor").getSettings()})).__experimentalBlockPatterns,t=(0,l.useDispatch)("core/block-editor").updateSettings;if(e){var r=!1,n=[];e.forEach((function(e){var t=c()({},e);if(t.isPremium&&"string"==typeof t.title){var o=t.title,i=(0,u.createElement)(p,{title:o});Object.isExtensible(i)&&(t.title=i,t.title.toString=function(){return(0,a.sprintf)((0,a.__)("%s (Premium)","full-site-editing"),o)},r=!0)}n.push(t)})),r&&t({__experimentalBlockPatterns:n})}return null};n="a8c-wpcom-premium-block-patterns",o={render:function(){return(0,u.createElement)(s,null)}},(0,f.registerPlugin)(n,o)}},t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}return r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(138)}());
     1!function(e,t){for(var r in t)e[r]=t[r];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={260:function(e){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},417:function(e,t,r){var n=r(260);function )}());
  • full-site-editing/trunk/common/dist/common.asset.php

    r2460738 r2464442  
    1 <?php return array('dependencies' => array('wp-polyfill'), 'version' => '7af347057bfe124bb6a9f0cd5abbd131');
     1<?php return array('dependencies' => array('wp-polyfill'), 'version' => '');
  • full-site-editing/trunk/common/dist/common.js

    r2460738 r2464442  
    1 !function(e,r){for(var t in r)e[t]=r[t];r.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){"use strict";var e={4578:function(e,r,t){t.r(r)}},r={};function t(o){if(r[o])return r[o].exports;var n=r[o]={exports:{}};return e[o](n,n.exports,t),n.exports}return t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t(4578)}());
     1!function(e,)}());
  • full-site-editing/trunk/common/dist/data-stores.asset.php

    r2463991 r2464442  
    1 <?php return array('dependencies' => array('react', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-polyfill'), 'version' => '7beb7693134ac5f9ff145cc72b68059c');
     1<?php return array('dependencies' => array('react', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-polyfill'), 'version' => '');
  • full-site-editing/trunk/common/dist/data-stores.js

    r2463991 r2464442  
    1 !function(e,t){for(var n in t)e[n]=t[n];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={5270:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},4180:function(e){e.exports=function(e){if(Array.isArray(e))return e}},1232:function(e,t,n){var r=n(5270);e.exports=function(e){if(Array.isArray(e))return r(e)}},8111:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},2954:function(e){function t(e,t,n,r,i,o,s){try{var a=e[o](s),u=a.value}catch(c){return void n(c)}a.done?t(u):Promise.resolve(u).then(r,i)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(i,o){var s=e.apply(n,r);function a(e){t(s,i,o,a,u,"next",e)}function u(e){t(s,i,o,a,u,"throw",e)}a(void 0)}))}}},85:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},5198:function(e){function t(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,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}},4564:function(e,t,n){var r=n(2588),i=n(1549),o=n(6983);e.exports=function(e){var t=i();return function(){var n,i=r(e);if(t){var s=r(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return o(this,n)}}},1260:function(e){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}},8527:function(e){function t(){return e.exports=t=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},t.apply(this,arguments)}e.exports=t},2588:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(n)}e.exports=t},270:function(e,t,n){var r=n(742);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)}},1549:function(e){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},1557:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},981:function(e){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],_n=!0,r=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(_n=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(a){r=!0,i=a}finally{try{_n||null==s.return||s.return()}finally{if(r)throw i}}return n}}},7365:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},1359:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},417:function(e,t,n){var r=n(1260);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},2220:function(e,t,n){var r=n(8834);e.exports=function(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},8834:function(e){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}},6983:function(e,t,n){var r=n(8921),i=n(8111);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t}},742:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(n,r)}e.exports=t},1068:function(e,t,n){var r=n(4180),i=n(981),o=n(6487),s=n(7365);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||s()}},5182:function(e,t,n){var r=n(1232),i=n(1557),o=n(6487),s=n(1359);e.exports=function(e){return r(e)||i(e)||o(e)||s()}},4209:function(e,t,n){var r=n(8921);e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},4582:function(e,t,n){var r=n(8921),i=n(4209);e.exports=function(e){var t=i(e,"string");return"symbol"===r(t)?t:String(t)}},8921:function(e){function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t},6487:function(e,t,n){var r=n(5270);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},2699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(){void 0!==o&&e.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==t&&(o=function(n){e.removeListener(t,i),r(n)},e.once("error",o)),e.once(t,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o,s,c;if(a(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=u(e))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,c=l,console&&console.warn&&console.warn(c)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]: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}(i):g(i,i.length)}function d(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 g(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.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},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(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},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else{var c=u.length,l=g(u,c);for(n=0;n<c;++n)r(l[n],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,p(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,p(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(a(t),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(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.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 i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);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},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},5695:function(e){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n,r="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(n=t.cmp,function(e){return function(t,r){var i={key:t,value:e[t]},o={key:r,value:e[r]};return n(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var n,s;if(Array.isArray(t)){for(s="[",n=0;n<t.length;n++)n&&(s+=","),s+=e(t[n])||"null";return s+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var a=o.push(t)-1,u=Object.keys(t).sort(i&&i(t));for(s="",n=0;n<u.length;n++){var c=u[n],l=e(t[c]);l&&(s&&(s+=","),s+=JSON.stringify(c)+":"+l)}return o.splice(a,1),"{"+s+"}"}}(e)}},7201:function(e){"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},4983:function(e){"use strict";e.exports=function(e,t,n,r,i,o,s,a){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,s,a],l=0;(u=new Error(t.replace(/%s/g,(function(){return c[l++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},6590:function(e,t,n){"use strict";var r=n(7201);e.exports=r},4495:function(e,t,n){"use strict";var r=n(212),i=n(9561);function o(){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=o,o.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 i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.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 i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},5079:function(e,t,n){"use strict";var r=n(212),i=n(4495),o=n(713),s=r.rotl32,a=r.sum32,u=r.sum32_5,c=o.ft_1,l=i.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(f,l),e.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.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]=s(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],l=this.h[2],f=this.h[3],d=this.h[4];for(r=0;r<n.length;r++){var g=~~(r/20),m=u(s(i,5),c(g,o,l,f),d,n[r],p[g]);d=f,f=l,l=s(o,30),o=i,i=m}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],l),this.h[3]=a(this.h[3],f),this.h[4]=a(this.h[4],d)},f.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(e,t,n){"use strict";var r=n(212).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?s(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=s,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}},212:function(e,t,n){"use strict";var r=n(9561),i=n(1285);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function u(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=i,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),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):o(e,i)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=s(i)),n+=u(i.toString(16))}return n},t.zero2=a,t.zero8=u,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var s=new Array(o/4),a=0,u=t;a<s.length;a++,u+=4){var c;c="big"===i?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],s[a]=c>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}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,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,s=(o<r?1:0)+n+i;e[t]=s>>>0,e[t+1]=o},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,i,o,s,a){var u=0,c=t;return u+=(c=c+r>>>0)<t?1:0,u+=(c=c+o>>>0)<o?1:0,e+n+i+s+(u+=(c=c+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,s,a){return t+r+o+a>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,s,a,u,c){var l=0,p=t;return l+=(p=p+r>>>0)<t?1:0,l+=(p=p+o>>>0)<o?1:0,l+=(p=p+a>>>0)<a?1:0,e+n+i+s+u+(l+=(p=p+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,s,a,u,c){return t+r+o+a+c>>>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}},1285:function(e){"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}}},7010:function(e,t,n){"use strict";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},i=a(n(3804)),o=a(n(3631)),s=a(n(2586));function a(e){return e&&e.__esModule?e:{default:e}}var u=void 0;function c(e,t){var n,s,a,l,p,f,d,g,m=[],h={};for(f=0;f<e.length;f++)if("string"!==(p=e[f]).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> "+u);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){n=t[p.value],a=f;break}m.push(t[p.value])}else m.push(p.value);return n&&(l=function(e,t){var n,r,i=t[e],o=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===i.value){if("componentOpen"===n.type){o++;continue}if("componentClose"===n.type){if(0===o)return r;o--}}throw new Error("Missing closing component token `"+i.value+"`")}(a,e),d=c(e.slice(a+1,l),t),s=i.default.cloneElement(n,{},d),m.push(s),l<e.length-1&&(g=c(e.slice(l+1),t),m=m.concat(g))),1===m.length?m[0]:(m.forEach((function(e,t){e&&(h["interpolation-child-"+t]=e)})),(0,o.default)(h))}t.Z=function(e){var t=e.mixedString,n=e.components,i=e.throwErrors;if(u=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var o=(0,s.default)(t);try{return c(o,n)}catch(a){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+a.message+"`");return t}}},2586:function(e){"use strict";function t(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(t)}},7839:function(e,t,n){var r=n(2699),i=n(1285);function o(e){if(!(this instanceof o))return new o(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=o,i(o,r.EventEmitter),Object.defineProperty(o.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),o.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},o.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}},o.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)},o.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},o.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},o.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)},o.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}},o.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},9561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},1378:function(e){var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i,s=365.25*i;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,u){u=u||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^(-?(?:\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(!a)return;var u=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*s;case"weeks":case"week":case"w":return u*o;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*r;case"minutes":case"minute":case"mins":case"min":case"m":return u*n;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===c&&isFinite(e))return u.long?function(e){var o=Math.abs(e);if(o>=i)return a(e,o,i,"day");if(o>=r)return a(e,o,r,"hour");if(o>=n)return a(e,o,n,"minute");if(o>=t)return a(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},7320:function(e){"use strict";
     1!function(e,t){for(var n in t)e[n]=t[n];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={5270:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},4180:function(e){e.exports=function(e){if(Array.isArray(e))return e}},1232:function(e,t,n){var r=n(5270);e.exports=function(e){if(Array.isArray(e))return r(e)}},8111:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},2954:function(e){function t(e,t,n,r,i,o,(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},7320:function(e){"use strict";
    22/*
    33object-assign
    44(c) Sindre Sorhus
    55@license MIT
    6 */var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,o){for(var s,a,u=i(e),c=1;c<arguments.length;c++){for(var l in s=Object(arguments[c]))n.call(s,l)&&(u[l]=s[l]);if(t){a=t(s);for(var p=0;p<a.length;p++)r.call(s,a[p])&&(u[a[p]]=s[a[p]])}}return u}},8650:function(e){var t,n=window.ProgressEvent,r=!!n;try{t=new n("loaded"),r="loaded"===t.type,t=null}catch(i){r=!1}e.exports=r?n:"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("Event");return n.initEvent(e,!1,!1),t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}},5527:function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g,o=n(2493),s={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=o.assign({default:s.RFC3986,formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return String(e)}}},s)},9126:function(e,t,n){"use strict";var r=n(6845),i=n(9166),o=n(5527);e.exports={formats:o,parse:i,stringify:r}},9166:function(e,t,n){"use strict";var r=n(2493),i=Object.prototype.hasOwnProperty,o=Array.isArray,s={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,a=n.depth>0&&/(\[[^[\]]*])/.exec(o),c=a?o.slice(0,a.index):o,l=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;l.push(c)}for(var p=0;n.depth>0&&null!==(a=s.exec(o))&&p<n.depth;){if(p+=1,!n.plainObjects&&i.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(a[1])}return a&&l.push("["+o.slice(a.index)+"]"),function(e,t,n,r){for(var i=r?t:u(t,n),o=e.length-1;o>=0;--o){var s,a=e[o];if("[]"===a&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,l=parseInt(c,10);n.parseArrays||""!==c?!isNaN(l)&&a!==c&&String(l)===c&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(s=[])[l]=i:s[c]=i:s={0:i}}i=s}return i}(l,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return s;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?s.charset:e.charset;return{allowDots:void 0===e.allowDots?s.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var n,c={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,f=l.split(t.delimiter,p),d=-1,g=t.charset;if(t.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?g="utf-8":"utf8=%26%2310003%3B"===f[n]&&(g="iso-8859-1"),d=n,n=f.length);for(n=0;n<f.length;++n)if(n!==d){var m,h,y=f[n],v=y.indexOf("]="),b=-1===v?y.indexOf("="):v+1;-1===b?(m=t.decoder(y,s.decoder,g,"key"),h=t.strictNullHandling?null:""):(m=t.decoder(y.slice(0,b),s.decoder,g,"key"),h=r.maybeMap(u(y.slice(b+1),t),(function(e){return t.decoder(e,s.decoder,g,"value")}))),h&&t.interpretNumericEntities&&"iso-8859-1"===g&&(h=a(h)),y.indexOf("[]=")>-1&&(h=o(h)?[h]:h),i.call(c,m)?c[m]=r.combine(c[m],h):c[m]=h}return c}(e,n):e,p=n.plainObjects?Object.create(null):{},f=Object.keys(l),d=0;d<f.length;++d){var g=f[d],m=c(g,l[g],n,"string"==typeof e);p=r.merge(p,m,n)}return r.compact(p)}},6845:function(e,t,n){"use strict";var r=n(2493),i=n(5527),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,p=i.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:p,formatter:i.formatters[p],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},d=function e(t,n,i,o,s,u,l,p,d,g,m,h,y){var v,b=t;if("function"==typeof l?b=l(n,b):b instanceof Date?b=g(b):"comma"===i&&a(b)&&(b=r.maybeMap(b,(function(e){return e instanceof Date?g(e):e})).join(",")),null===b){if(o)return u&&!h?u(n,f.encoder,y,"key"):n;b=""}if("string"==typeof(v=b)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(b))return u?[m(h?n:u(n,f.encoder,y,"key"))+"="+m(u(b,f.encoder,y,"value"))]:[m(n)+"="+m(String(b))];var S,E=[];if(void 0===b)return E;if(a(l))S=l;else{var _=Object.keys(b);S=p?_.sort(p):_}for(var w=0;w<S.length;++w){var C=S[w],O=b[C];if(!s||null!==O){var P=a(b)?"function"==typeof i?i(n,C):n:n+(d?"."+C:"["+C+"]");c(E,e(O,P,i,o,s,u,l,p,d,g,m,h,y))}}return E};e.exports=function(e,t){var n,r=e,u=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],s=f.filter;return("function"==typeof e.filter||a(e.filter))&&(s=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:s,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof u.filter?r=(0,u.filter)("",r):a(u.filter)&&(n=u.filter);var l,p=[];if("object"!=typeof r||null===r)return"";l=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var g=s[l];n||(n=Object.keys(r)),u.sort&&n.sort(u.sort);for(var m=0;m<n.length;++m){var h=n[m];u.skipNulls&&null===r[h]||c(p,d(r[h],h,g,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.formatter,u.encodeValuesOnly,u.charset))}var y=p.join(u.delimiter),v=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),y.length>0?v+y:""}},2493:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Array.isArray,r=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),i=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:i,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],i=0;i<t.length;++i)for(var o=t[i],s=o.obj[o.prop],a=Object.keys(s),u=0;u<a.length;++u){var c=a[u],l=s[c];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(t.push({obj:s,prop:c}),r.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(n(r)){for(var i=[],o=0;o<r.length;++o)void 0!==r[o]&&i.push(r[o]);t.obj[t.prop]=i}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(e,t,n){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===n)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",s=0;s<i.length;++s){var a=i.charCodeAt(s);45===a||46===a||95===a||126===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?o+=i.charAt(s):a<128?o+=r[a]:a<2048?o+=r[192|a>>6]+r[128|63&a]:a<55296||a>=57344?o+=r[224|a>>12]+r[128|a>>6&63]+r[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&i.charCodeAt(s)),o+=r[240|a>>18]+r[128|a>>12&63]+r[128|a>>6&63]+r[128|63&a])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(n(e)){for(var r=[],i=0;i<e.length;i+=1)r.push(t(e[i]));return r}return t(e)},merge:function e(r,o,s){if(!o)return r;if("object"!=typeof o){if(n(r))r.push(o);else{if(!r||"object"!=typeof r)return[r,o];(s&&(s.plainObjects||s.allowPrototypes)||!t.call(Object.prototype,o))&&(r[o]=!0)}return r}if(!r||"object"!=typeof r)return[r].concat(o);var a=r;return n(r)&&!n(o)&&(a=i(r,s)),n(r)&&n(o)?(o.forEach((function(n,i){if(t.call(r,i)){var o=r[i];o&&"object"==typeof o&&n&&"object"==typeof n?r[i]=e(o,n,s):r.push(n)}else r[i]=n})),r):Object.keys(o).reduce((function(n,r){var i=o[r];return t.call(n,r)?n[r]=e(n[r],i,s):n[r]=i,n}),a)}}},3631:function(e,t,n){"use strict";var r=n(3804),i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=n(7201),s=n(4983),a=n(6590),u="function"==typeof Symbol&&Symbol.iterator;function c(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 l(e,t,n,r){var o,a=typeof e;if("undefined"!==a&&"boolean"!==a||(e=null),null===e||"string"===a||"number"===a||"object"===a&&e.$$typeof===i)return n(r,e,""===t?"."+c(e,0):t),1;var p=0,f=""===t?".":t+":";if(Array.isArray(e))for(var d=0;d<e.length;d++)p+=l(o=e[d],f+c(o,d),n,r);else{var g=function(e){var t=e&&(u&&e[u]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(g){0;for(var m,h=g.call(e),y=0;!(m=h.next()).done;)p+=l(o=m.value,f+c(o,y++),n,r)}else if("object"===a){0;var v=""+e;s(!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 f(e){return(""+e).replace(p,"$&/")}var d,g,m=h,h=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},y=function(e){var t=this;s(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function v(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function b(e,t,n){var i,s,a=e.result,u=e.keyPrefix,c=e.func,l=e.context,p=c.call(l,t,e.count++);Array.isArray(p)?S(p,a,n,o.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(i=p,s=u+(!p.key||t&&t.key===p.key?"":f(p.key)+"/")+n,p=r.cloneElement(i,{key:s},void 0!==i.props?i.props.children:void 0)),a.push(p))}function S(e,t,n,r,i){var o="";null!=n&&(o=f(n)+"/");var s=v.getPooled(t,o,r,i);!function(e,t,n){null==e||l(e,"",t,n)}(e,b,s),v.release(s)}v.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){var i=this;if(i.instancePool.length){var o=i.instancePool.pop();return i.call(o,e,t,n,r),o}return new i(e,t,n,r)},(g=v).instancePool=[],g.getPooled=d||m,g.poolSize||(g.poolSize=10),g.release=y;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return a(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return a(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;s(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)S(e[n],t,n,o.thatReturnsArgument);return t}},1467:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,{fetchDomainSuggestions:function(){return R},receiveCategories:function(){return T},receiveDomainAvailability:function(){return x},receiveDomainSuggestionsError:function(){return F},receiveDomainSuggestionsSuccess:function(){return A}});var i={};n.r(i),n.d(i,{__internalGetDomainSuggestions:function(){return bt},getCategories:function(){return vt},isAvailable:function(){return yt}});var o={};n.r(o),n.d(o,{resetPlan:function(){return kt},setFeatures:function(){return Lt},setFeaturesByType:function(){return Nt},setPlanProducts:function(){return Mt},setPlans:function(){return jt}});var s={};n.r(s),n.d(s,{getDefaultFreePlan:function(){return zt},getDefaultPaidPlan:function(){return Kt},getFeatures:function(){return Bt},getFeaturesByType:function(){return Ht},getPlanByPath:function(){return Yt},getPlanByPeriodAgnosticSlug:function(){return Wt},getPlanByProductId:function(){return $t},getPlanProduct:function(){return Qt},getPlanProductById:function(){return Gt},getPlansProducts:function(){return Zt},getPrices:function(){return Jt},getSupportedPlans:function(){return qt},isPlanEcommerce:function(){return Xt},isPlanFree:function(){return en},isPlanProductFree:function(){return tn}});var a={};n.r(a),n.d(a,{getSupportedPlans:function(){return fn}});var u={};n.r(u),n.d(u,{getSite:function(){return Tn},getSiteDomains:function(){return Rn}});var c={};n.r(c),n.d(c,{getNewSite:function(){return Fn},getNewSiteError:function(){return Dn},getPrimarySiteDomain:function(){return Hn},getSite:function(){return Mn},getSiteDomains:function(){return Bn},getSiteSubdomain:function(){return $n},getSiteTitle:function(){return kn},getState:function(){return An},isFetchingSite:function(){return Ln},isFetchingSiteDetails:function(){return Nn},isNewSite:function(){return jn},isSiteLaunched:function(){return Un},isSiteLaunching:function(){return Vn}});var l={};n.r(l),n.d(l,{closeFocusedLaunch:function(){return pr},closeSidebar:function(){return cr},confirmDomainSelection:function(){return rr},disablePersistentSuccessView:function(){return br},enableExperimental:function(){return fr},enablePersistentSuccessView:function(){return vr},hideModalTitle:function(){return yr},openFocusedLaunch:function(){return lr},openSidebar:function(){return ur},setDomain:function(){return tr},setDomainSearch:function(){return ir},setModalDismissible:function(){return gr},setPlanProductId:function(){return or},setSidebarFullscreen:function(){return Yn},setSiteTitle:function(){return er},setStep:function(){return Xn},showModalTitle:function(){return hr},showSiteTitleStep:function(){return dr},unsetDomain:function(){return nr},unsetModalDismissible:function(){return mr},unsetPlanProductId:function(){return sr},unsetSidebarFullscreen:function(){return Qn},updatePlan:function(){return ar}});var p={};n.r(p),n.d(p,{getCurrentStep:function(){return Lr},getFirstIncompleteStep:function(){return Fr},getLaunchSequence:function(){return Sr},getLaunchStep:function(){return Er},getPaidPlanProductId:function(){return Ir},getSelectedDomain:function(){return Cr},getSelectedPlan:function(){return Pr},getSelectedPlanProductId:function(){return Or},getSiteTitle:function(){return Dr},getState:function(){return _r},hasPaidDomain:function(){return wr},hasSelectedDomain:function(){return Tr},isFlowCompleted:function(){return xr},isFlowStarted:function(){return Ar},isStepCompleted:function(){return Rr}});var f={};n.r(f),n.d(f,{getAllFeatures:function(){return Kr},getRecommendedPlanSlug:function(){return zr}});var d,g=window.wp.data,m="automattic/domains/suggestions";!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(d||(d={}));var h,y,v,b,S=n(1260),E=n.n(S),_=n(417),w=n.n(_),C=n(5695),O=n.n(C)(),P={state:d.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},I=(0,g.combineReducers)({categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_CATEGORIES"===t.type?t.categories:e},domainSuggestions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:P,t=arguments.length>1?arguments[1]:void 0;return"FETCH_DOMAIN_SUGGESTIONS"===t.type?w()(w()({},e),{},{state:d.Pending,errorMessage:null,pendingSince:t.timeStamp}):"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?w()(w()({},e),{},{state:d.Success,data:w()(w()({},e.data),{},E()({},O(t.queryObject),t.suggestions)),errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}):"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?w()(w()({},e),{},{state:d.Failure,errorMessage:t.errorMessage,lastUpdated:t.timeStamp,pendingSince:void 0}):e},availability:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_DOMAIN_AVAILABILITY"===t.type?w()(w()({},e),{},E()({},t.domainName,t.availability)):e}}),T=function(e){return{type:"RECEIVE_CATEGORIES",categories:e}},R=function(){return{type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}},x=function(e,t){return{type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}},A=function(e,t){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}},F=function(e){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()}},D=n(9126),L=n(5182),N=n.n(L),j=n(8049),M=n.n(j),k=n(7010);h={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},y=["(","?"],v={")":["("],":":["?","?:"]},b=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var U={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function V(e){var t=function(e){for(var t,n,r,i,o=[],s=[];t=e.match(b);){for(n=t[0],(r=e.substr(0,t.index).trim())&&o.push(r);i=s.pop();){if(v[n]){if(v[n][0]===i){n=v[n][1]||n;break}}else if(y.indexOf(i)>=0||h[i]<h[n]){s.push(i);break}o.push(i)}v[n]||s.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&o.push(e),o.concat(s.reverse())}(e);return function(e){return function(e,t){var n,r,i,o,s,a,u=[];for(n=0;n<e.length;n++){if(s=e[n],o=U[s]){for(r=o.length,i=Array(r);r--;)i[r]=u.pop();try{a=o.apply(null,i)}catch(c){return c}}else a=t.hasOwnProperty(s)?t[s]:+s;u.push(a)}return u[0]}(t,e)}}var B={contextDelimiter:"",onMissingKey:null};function H(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},B)this.options[n]=void 0!==t&&n in t?t[n]:B[n]}H.prototype.getPluralForm=function(e,t){var n,r,i,o=this.pluralForms[e];return o||("function"!=typeof(i=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),i=function(e){var t=V(e);return function(e){return+t({n:e})}}(r)),o=this.pluralForms[e]=i),o(t)},H.prototype.dcnpgettext=function(e,t,n,r,i){var o,s,a;return o=void 0===i?0:this.getPluralForm(e,i),s=n,t&&(s=t+this.options.contextDelimiter+n),(a=this.data[e][s])&&a[o]?a[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)};var $=n(7839),G=n.n($),W=n(5079),K=n.n(W),z=n(2699),q=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function Z(e,t){var n;if(!Array.isArray(t))for(t=new Array(arguments.length-1),n=1;n<arguments.length;n++)t[n-1]=arguments[n];return n=1,e.replace(q,(function(){var e,r,i,o,s;return e=arguments[3],r=arguments[5],"%"===(o=arguments[9])?"%":("*"===(i=arguments[7])&&(i=t[n-1],n++),void 0!==r?t[0]&&"object"==typeof t[0]&&t[0].hasOwnProperty(r)&&(s=t[0][r]):(void 0===e&&(e=n),n++,s=t[e-1]),"f"===o?s=parseFloat(s)||0:"d"===o&&(s=parseInt(s)||0),void 0!==i&&("f"===o?s=s.toFixed(i):"s"===o&&(s=s.substr(0,i))),null!=s?s:"")}))}function J(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+e)?+e:0,o=isFinite(+t)?Math.abs(t):0,s=void 0===r?",":r,a=void 0===n?".":n,u="";return(u=(o?
     6*/var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,o){for(var =(o?
    77/*
    88 * Exposes number format capability
     
    1212 * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
    1313 */
    14 function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,o):""+Math.round(i)).split("."))[0].length>3&&(u[0]=u[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,s)),(u[1]||"").length<o&&(u[1]=u[1]||"",u[1]+=new Array(o-u[1].length+1).join("0")),u.join(a)}var Y=M()("i18n-calypso"),Q="number_format_decimals",X="number_format_thousands_sep",ee="messages",te=[function(e){return e}],ne={};function re(){ue.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function ie(e){return Array.prototype.slice.call(e)}function oe(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&re("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",ie(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&re("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",ie(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 se(e,t){return e.dcnpgettext(ee,t.context,t.original,t.plural,t.count)}function ae(e,t){for(var n=te.length-1;n>=0;n--){var r=te[n](Object.assign({},t)),i=r.context?r.context+""+r.original:r.original;if(e.state.locale[i])return se(e.state.tannin,r)}return null}function ue(){if(!(this instanceof ue))return new ue;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:G()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new z.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}ue.throwErrors=!1,ue.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},ue.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},ue.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},ue.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||".",i=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return J(e,n,r,i)},ue.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},ue.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var i=e[""]["key-hash"],o=function(e,t){var n=!1===t?"":String(t);if(void 0!==ne[n+e])return ne[n+e];var r=K()().update(e).digest("hex");return ne[n+e]=t?r.substr(0,t):r},s=function(e){return function(t){return t.context?(t.original=o(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=o(t.original,e),t}};if("sha1"===i.substr(0,4))if(4===i.length)te.push(s(!1));else{var a=i.substr(5).indexOf("-");if(a<0){var u=Number(i.substr(5));te.push(s(u))}else for(var c=Number(i.substr(5,a)),l=Number(i.substr(6+a)),p=c;p<=l;p++)te.push(s(p))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new H(E()({},ee,this.state.locale)),this.state.numberFormatSettings.decimal_point=se(this.state.tannin,oe([Q])),this.state.numberFormatSettings.thousands_sep=se(this.state.tannin,oe([X])),this.state.numberFormatSettings.decimal_point===Q&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===X&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},ue.prototype.getLocale=function(){return this.state.locale},ue.prototype.getLocaleSlug=function(){return this.state.localeSlug},ue.prototype.getLocaleVariant=function(){return this.state.localeVariant},ue.prototype.isRtl=function(){return"rtl"===this.state.textDirection},ue.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},ue.prototype.hasTranslation=function(){return!!ae(this,oe(arguments))},ue.prototype.translate=function(){var e=oe(arguments),t=ae(this,e);if(t||(t=se(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=Z.apply(void 0,N()(n))}catch(i){if(!window||!window.console)return;var r=this.throwErrors?"error":"warn";"string"!=typeof i?window.console[r](i):window.console[r]("i18n sprintf error:",n)}}return e.components&&(t=(0,k.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},ue.prototype.reRenderTranslations=function(){Y("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},ue.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},ue.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};var ce=ue,le=n(85),pe=n.n(le),fe=n(5198),de=n.n(fe),ge=n(8111),me=n.n(ge),he=n(270),ye=n.n(he),ve=n(4564),be=n.n(ve),Se=window.wp.element,Ee=n(3804),_e=n.n(Ee);var we=n(1068),Ce=n.n(we);var Oe=n(8527),Pe=n.n(Oe),Ie=n(6718),Te=window.wp.compose;var Re=new ce,xe=Re.numberFormat.bind(Re),Ae=Re.translate.bind(Re),Fe=(Re.configure.bind(Re),Re.setLocale.bind(Re),Re.getLocale.bind(Re),Re.getLocaleSlug.bind(Re),Re.getLocaleVariant.bind(Re),Re.isRtl.bind(Re),Re.addTranslations.bind(Re),Re.reRenderTranslations.bind(Re),Re.registerComponentUpdateHook.bind(Re),Re.registerTranslateHook.bind(Re),Re.state,Re.stateObserver,Re.on.bind(Re),Re.off.bind(Re),Re.emit.bind(Re),function(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)}}(Re),function(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}}(Re),function(e){var t={getCurrentValue:function(){return e.isRtl()},subscribe:function(t){return e.on("change",t),function(){return e.off("change",t)}}};function n(){return(0,Ie.useSubscription)(t)}var r=(0,Te.createHigherOrderComponent)((function(e){return(0,Ee.forwardRef)((function(t,r){var i=n();return(0,Se.createElement)(e,Pe()({},t,{isRtl:i,ref:r}))}))}),"WithRTL");return{useRtl:n,withRtl:r}}(Re)),De=(Fe.useRtl,Fe.withRtl,n(2954)),Le=n.n(De),Ne="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),je=new Uint8Array(16);function Me(){if(!Ne)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ne(je)}for(var ke=[],Ue=0;Ue<256;++Ue)ke[Ue]=(Ue+256).toString(16).substr(1);var Ve=function(e,t){var n=t||0,r=ke;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")};var Be,He=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||Me)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var o=0;o<16;++o)t[r+o]=i[o];return t||Ve(i)},$e=n(2884),Ge=n.n($e),We=n(8650),Ke=n.n(We),ze=M()("wpcom-proxy-request"),qe="https://public-api.wordpress.com",Ze=window.location.protocol+"//"+window.location.host,Je=function(){var e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e}(),Ye=function(){try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}}(),Qe=null,Xe=!1,et={},tt=!!window.ProgressEvent&&!!window.FormData;ze('using "origin": %o',Ze);var nt=function(e,t){var n=Object.assign({},e);ze("request(%o)",n),Qe||at();var r=He();n.callback=r,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=tt,n.method=String(n.method||"GET").toUpperCase(),ze("params object: %o",n);var i=new window.XMLHttpRequest;if(i.params=n,et[r]=i,"function"==typeof t){var o=!1,s=function(e){if(!o){o=!0;var n=e.error||e.err||e;ze("error: ",n),ze("headers: ",e.headers),t(n,null,e.headers)}};i.addEventListener("load",(function(e){if(!o){o=!0;var n=e.response||i.response;ze("body: ",n),ze("headers: ",e.headers),t(null,n,e.headers)}})),i.addEventListener("abort",s),i.addEventListener("error",s)}return"function"==typeof n.onStreamRecord&&delete n.onStreamRecord,Xe?it(n):(ze("buffering API request since proxying <iframe> is not yet loaded"),Be.push(n)),i},rt=function(e,t){return"function"==typeof t?nt(e,t):new Promise((function(t,n){nt(e,(function(e,r){e?n(e):t(r)}))}))};function it(e){ze("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!Ye)return;for(var t=0;t<e.length;t++){var n=st(e[t][1]);n&&(e[t][1]=new window.File([n],n.name,{type:n.type}))}}(e.formData),Qe.contentWindow.postMessage(Je?JSON.stringify(e):e,qe)}function ot(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function st(e){return ot(e)?e:"object"==typeof e&&ot(e.fileContents)?e.fileContents:null}function at(){ze("install()"),Qe&&(ze("uninstall()"),window.removeEventListener("message",ut),document.body.removeChild(Qe),Xe=!1,Qe=null),Be=[],window.addEventListener("message",ut),(Qe=document.createElement("iframe")).src=qe+"/wp-admin/rest-proxy/?v=2.0#"+Ze,Qe.style.display="none",document.body.appendChild(Qe)}function ut(e){if(ze("onmessage"),e.origin===qe)if(e.source===Qe.contentWindow){var t=e.data;if(!t)return ze("no `data`, bailing");if("ready"!==t){if(Je&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){ze('got "progress" event: %o',e);var t=et[e.callbackId];if(t){var n=new(Ke())("progress",e);(e.upload?t.upload:t).dispatchEvent(n)}}(t);if(!t.length)return ze("`e.data` doesn't appear to be an Array, bailing...");var n=t[t.length-1];if(!(n in et))return ze("bailing, no matching request with callback: %o",n);var r,i=et[n],o=i.params,s=t[0],a=t[1],u=t[2];if(207===a||delete et[n],o.metaAPI?a="metaAPIupdated"===s?200:500:ze("got %o status code for URL: %o",a,o.path),"object"==typeof u)if(u.status=a,r=u["Content-Type"],/^application[/]x-ndjson($|;)/.test(r))return void ct(i,new Error("stream mode processing is not yet implemented for wpcom-proxy-request"),u);if(a&&2===Math.floor(a/100))!function(e,t,n){var r=new(Ke())("load");r.data=r.body=r.response=t,r.headers=n,e.dispatchEvent(r)}(i,s,u);else ct(i,Ge()(o,a,s),u)}else!function(){if(ze('proxy <iframe> "load" event'),Xe=!0,Be){for(var e=0;e<Be.length;e++)it(Be[e]);Be=null}}()}else ze("ignoring message... iframe elements do not match");else ze("ignoring message... %o !== %o",e.origin,qe)}function ct(e,t,n){var r=new(Ke())("error");r.error=r.err=t,r.headers=n,e.dispatchEvent(r)}var lt,pt=rt,ft=function(e){return{type:"WPCOM_REQUEST",request:e}},dt=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},gt={WPCOM_REQUEST:function(e){var t=e.request;return pt(t)},FETCH_AND_PARSE:(lt=Le()(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.resource,r=t.options,e.next=3,window.fetch(n,r);case 3:return i=e.sent,e.t0=i.ok,e.next=7,i.json();case 7:return e.t1=e.sent,e.abrupt("return",{ok:e.t0,body:e.t1});case 9:case"end":return e.stop()}}),e)}))),function(_x){return lt.apply(this,arguments)}),RELOAD_PROXY:function(){at()},REQUEST_ALL_BLOGS_ACCESS:function(){return rt({metaAPI:{accessAllUsersBlogs:!0}})},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}},mt=regeneratorRuntime.mark(vt),ht=regeneratorRuntime.mark(bt),yt=regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="https://public-api.wordpress.com/rest/v1.3/domains/".concat(encodeURIComponent(t),"/is-available?is_cart_pre_check=true"),e.prev=1,e.next=4,dt(n);case 4:return r=e.sent,i=r.body,e.abrupt("return",x(t,i));case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",x(t,{domain_name:t,mappable:"unknown",status:"unknown",supports_privacy:!1}));case 12:case"end":return e.stop()}}),e,null,[[1,9]])}));function vt(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,dt("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");case 2:return e=t.sent,t.abrupt("return",T(e.body));case 4:case"end":return t.stop()}}),mt)}function bt(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.query){n.next=2;break}return n.abrupt("return",F("Empty query"));case 2:return n.next=4,R();case 4:return n.prev=4,n.next=7,ft({apiVersion:"1.1",path:"/domains/suggestions",query:(0,D.stringify)(e)});case 7:t=n.sent,n.next=13;break;case 10:return n.prev=10,n.t0=n.catch(4),n.abrupt("return",F(n.t0.message||Ae("Error while fetching server response")));case 13:if(t&&""!==t){n.next=15;break}return n.abrupt("return",F(Ae("Invalid response from the server")));case 15:return n.abrupt("return",A(e,t));case 16:case"end":return n.stop()}}),ht,null,[[4,10]])}var St,Et=function(e){function t(t,n){return w()(w()({include_wordpressdotcom:n.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:e},n),{},{query:t.trim().toLocaleLowerCase()})}return{getCategories:function(e){return[].concat(N()(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1}))),N()(e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)}))))},getDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return(0,g.select)(m).__internalGetDomainSuggestions(i)},getDomainState:function(e){return e.domainSuggestions.state},getDomainErrorMessage:function(e){return e.domainSuggestions.errorMessage},getDomainSuggestionVendor:function(){return e},isLoadingDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return(0,g.select)("core/data").isResolving(m,"__internalGetDomainSuggestions",[i])},__internalGetDomainSuggestions:function(e,t){return e.domainSuggestions.data[O(t)]},isAvailable:function(e,t){return e.availability[t]},getDomainAvailabilities:function(e){return e.availability}}},_t=!1;St={vendor:"variation2_front"}.vendor,_t||(_t=!0,(0,g.registerStore)(m,{actions:r,controls:gt,reducer:I,resolvers:i,selectors:Et(St)}));var wt="Free",Ct="Personal",Ot="Premium",Pt="Business",It="Ecommerce",Tt="automattic/onboard/plans",Rt=["personal-bundle","value_bundle","business-bundle","ecommerce-bundle"],xt=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],At=[wt,Ct,Ot,Pt,It],Ft=["free_plan"].concat(Rt,xt),Dt=(0,g.combineReducers)({features: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_FEATURES":return t.features;default:return e}},featuresByType: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_FEATURES_BY_TYPE":return t.featuresByType;default:return e}},planProducts: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_PLAN_PRODUCTS":return t.products;default:return e}},plans: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;default:return e}}}),Lt=function(e){return{type:"SET_FEATURES",features:e}},Nt=function(e){return{type:"SET_FEATURES_BY_TYPE",featuresByType:e}},jt=function(e){return{type:"SET_PLANS",plans:e}},Mt=function(e){return{type:"SET_PLAN_PRODUCTS",products:e}},kt=function(){return{type:"RESET_PLAN"}},Ut=window.wp.deprecated,Vt=n.n(Ut),Bt=function(e){return e.features},Ht=function(e){return e.featuresByType},$t=function(e,t){if(t)return(0,g.select)(Tt).getSupportedPlans().find((function(e){return e.productIds.indexOf(t)>-1}))},Gt=function(e,t){if(t)return(0,g.select)(Tt).getPlansProducts().find((function(e){return e.productId===t}))},Wt=function(e,t){if(t)return(0,g.select)(Tt).getSupportedPlans().find((function(e){return e.periodAgnosticSlug===t}))},Kt=function(e,t){return(0,g.select)(Tt).getSupportedPlans(t).find((function(e){return"Premium"===e.periodAgnosticSlug}))},zt=function(e,t){return(0,g.select)(Tt).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===wt}))},qt=function(e,t){return e.plans},Zt=function(e,t){return e.planProducts},Jt=function(e,t){return Vt()("getPrices",{alternative:"getPlanProduct().price"}),(0,g.select)(Tt).getPlansProducts().reduce((function(e,t){return e[t.storeSlug]=t.price,e}),{})},Yt=function(e,t){if(t){var n=(0,g.select)(Tt).getPlansProducts().find((function(e){return e.pathSlug===t}));if(n)return(0,g.select)(Tt).getSupportedPlans().find((function(e){return e.periodAgnosticSlug===(null==n?void 0:n.periodAgnosticSlug)}))}},Qt=function(e,t,n){if(t&&n){var r=(0,g.select)(Tt).getPlansProducts();return t===wt?r.find((function(e){return e.periodAgnosticSlug===t})):r.find((function(e){return e.billingPeriod===n&&e.periodAgnosticSlug===t}))}},Xt=function(e,t){return t===It},en=function(e,t){return t===wt},tn=function(e,t){return 1===t},nn={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 rn(e){return nn[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}function on(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=rn(t);if(!r||isNaN(e))return null;var i=w()(w()({},r),n),o=i.decimal,s=i.grouping,a=i.precision,u=i.symbol,c=e<0?"-":"",l=xe(Math.abs(e),{decimals:a,thousandsSep:s,decPoint:o});return n.stripZeros&&(l=sn(l,o)),"".concat(c).concat(u).concat(l)}function sn(e,t){var n=new RegExp("\\".concat(t,"0+$"));return e.replace(n,"")}var an=regeneratorRuntime.mark(fn);function un(e){return on(12*e.raw_price,e.currency_code,{stripZeros:!0})}function cn(e){return on(e.raw_price,e.currency_code,{stripZeros:!0})}function ln(e){return e.reduce((function(e,t){var n;return e[t.id]={id:t.id,name:t.name,description:t.description,type:null!==(n=t.type)&&void 0!==n?n:"checkbox"},e}),{})}function pn(e,t){var n=Ft.reduce((function(n,r){var i=e.find((function(e){return e.product_slug===r}));if(!i)return n;var o,s=t.find((function(e){return e.productIds.indexOf(i.product_id)>-1}));return n.push({productId:i.product_id,billingPeriod:31===i.bill_period?"MONTHLY":"ANNUALLY",periodAgnosticSlug:s.periodAgnosticSlug,storeSlug:i.product_slug,rawPrice:i.raw_price,pathSlug:i.path_slug,price:31===(null==i?void 0:i.bill_period)||0===i.raw_price?cn(i):(o=i,on(o.raw_price/12,o.currency_code,{stripZeros:!0})),annualPrice:31===(null==i?void 0:i.bill_period)?un(i):cn(i)}),n}),[]);return function(e){for(var t=function(t){var n=e.find((function(e){return e.storeSlug===Rt[t]})),r=e.find((function(e){return e.storeSlug===xt[t]}));if(n&&r){var i=12*r.rawPrice,o=n.rawPrice,s=Math.round(100*(1-o/i));n.annualDiscount=s,r.annualDiscount=s}},n=0;n<Rt.length;n++)t(n)}(n),n}function fn(){var e,t,n,r,i,o,s,a=arguments;return regeneratorRuntime.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return e=a.length>0&&void 0!==a[0]?a[0]:"en",u.next=3,ft({path:"/plans",query:(0,D.stringify)({locale:e}),apiVersion:"1.5"});case 3:return t=u.sent,u.next=6,dt("https://public-api.wordpress.com/wpcom/v2/plans/details?locale=".concat(encodeURIComponent(e)),{mode:"cors",credentials:"omit"});case 6:return n=u.sent,r=n.body,i=r.plans.map((function(e){return{description:e.tagline,features:e.highlighted_features,storage:e.storage,title:e.short_name,featuresSlugs:e.features.reduce((function(e,t){return e[t]=!0,e}),{}),isFree:e.nonlocalized_short_name===wt,isPopular:e.nonlocalized_short_name===Ot,periodAgnosticSlug:e.nonlocalized_short_name,productIds:e.products.map((function(e){return e.plan_id}))}})),o=pn(t,i),s=ln(r.features),u.next=13,jt(i);case 13:return u.next=15,Mt(o);case 15:return u.next=17,Lt(s);case 17:return u.next=19,Nt(r.features_by_type);case 19:case"end":return u.stop()}}),an)}var dn=!1;dn||(dn=!0,(0,g.registerStore)(Tt,{resolvers:a,actions:o,controls:gt,reducer:Dt,selectors:s}));var gn,mn,hn,yn="automattic/site",vn=n(2220),bn=n.n(vn),Sn=n(4582),En=n.n(Sn);!function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(gn||(gn={})),function(e){e.INTERNAL="internal"}(mn||(mn={})),function(e){e.UNINITIALIZED="unintialized",e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.FAILURE="failure"}(hn||(hn={}));var wn=(0,g.combineReducers)({data:function(e,t){return"RECEIVE_NEW_SITE"===t.type?t.response.blog_details:"RECEIVE_NEW_SITE_FAILED"!==t.type&&"RESET_SITE_STORE"!==t.type?e:void 0},error:function(e,t){switch(t.type){case"FETCH_NEW_SITE":case"RECEIVE_NEW_SITE":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return;case"RECEIVE_NEW_SITE_FAILED":return{error:t.error.error,status:t.error.status,statusCode:t.error.statusCode,name:t.error.name,message:t.error.message}}return e},isFetching:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_NEW_SITE":return!0;case"RECEIVE_NEW_SITE":case"RECEIVE_NEW_SITE_FAILED":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return!1}return e}}),Cn=(0,g.combineReducers)({isFetchingSiteDetails:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_SITE":return!0;case"RECEIVE_SITE":case"RECEIVE_SITE_FAILED":return!1}return e},newSite:wn,sites:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("RECEIVE_SITE"===t.type)return w()(w()({},e),{},E()({},t.siteId,t.response));if("RECEIVE_SITE_FAILED"===t.type){var n=t.siteId,r=(e[n],bn()(e,[n].map(En())));return w()({},r)}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?w()(w()({},e),{},E()({},t.siteId,w()(w()({},e[t.siteId]),{},{name:t.title}))):e},launchStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"LAUNCH_SITE_START"===t.type?w()(w()({},e),{},E()({},t.siteId,{status:hn.IN_PROGRESS,errorCode:void 0})):"LAUNCH_SITE_SUCCESS"===t.type?w()(w()({},e),{},E()({},t.siteId,{status:hn.SUCCESS,errorCode:void 0})):"LAUNCH_SITE_FAILURE"===t.type?w()(w()({},e),{},E()({},t.siteId,{status:hn.FAILURE,errorCode:t.error})):e},sitesDomains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_SITE_DOMAINS"===t.type?w()(w()({},e),{},E()({},t.siteId,t.domains)):e}});function On(e){var t=regeneratorRuntime.mark(c),n=regeneratorRuntime.mark(g),r=regeneratorRuntime.mark(m),i=regeneratorRuntime.mark(h),o=regeneratorRuntime.mark(y),s=function(){return{type:"FETCH_NEW_SITE"}},a=function(e){return{type:"RECEIVE_NEW_SITE",response:e}},u=function(e){return{type:"RECEIVE_NEW_SITE_FAILED",error:e}};function c(n){var r,i,o,s,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:"FETCH_NEW_SITE"};case 2:return t.prev=2,r=n.authToken,i=bn()(n,["authToken"]),o={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},s=w()(w()(w()({},o),i),{},{validate:!1}),t.next=8,ft({path:"/sites/new",apiVersion:"1.1",method:"post",body:s,token:r});case 8:return c=t.sent,t.next=11,a(c);case 11:return t.abrupt("return",!0);case 14:return t.prev=14,t.t0=t.catch(2),t.next=18,u(t.t0);case 18:return t.abrupt("return",!1);case 19:case"end":return t.stop()}}),t,null,[[2,14]])}var l=function(e,t){return{type:"RECEIVE_SITE_TITLE",siteId:e,title:t}},p=function(e){return{type:"LAUNCH_SITE_START",siteId:e}},f=function(e){return{type:"LAUNCH_SITE_SUCCESS",siteId:e}},d=function(e,t){return{type:"LAUNCH_SITE_FAILURE",siteId:e,error:t}};function g(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p(e);case 2:return t.prev=2,t.next=5,ft({path:"/sites/".concat(e,"/launch"),apiVersion:"1.1",method:"post"});case 5:return t.next=7,f(e);case 7:t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(2),t.next=13,d(e,mn.INTERNAL);case 13:case"end":return t.stop()}}),n,null,[[2,9]])}function m(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ft({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"});case 2:return t=n.sent,n.abrupt("return",t);case 4:case"end":return n.stop()}}),r)}function h(e,t){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,ft({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t});case 2:return n=r.sent,r.abrupt("return",n);case 4:case"end":return r.stop()}}),i)}function y(e,t){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,ft({path:"/sites/".concat(encodeURIComponent(e),"/settings"),apiVersion:"1.4",body:{blogname:t},method:"POST"});case 3:return n.next=5,l(e,t);case 5:n.next=9;break;case 7:n.prev=7,n.t0=n.catch(0);case 9:case"end":return n.stop()}}),o,null,[[0,7]])}return{receiveSiteDomains:function(e,t){return{type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}},saveSiteTitle:y,receiveSiteTitle:l,fetchNewSite:s,fetchSite:function(){return{type:"FETCH_SITE"}},receiveNewSite:a,receiveNewSiteFailed:u,resetNewSiteFailed:function(){return{type:"RESET_RECEIVE_NEW_SITE_FAILED"}},createSite:c,receiveSite:function(e,t){return{type:"RECEIVE_SITE",siteId:e,response:t}},receiveSiteFailed:function(e,t){return{type:"RECEIVE_SITE_FAILED",siteId:e,response:t}},reset:function(){return{type:"RESET_SITE_STORE"}},launchSite:g,launchSiteStart:p,launchSiteSuccess:f,launchSiteFailure:d,getCart:m,setCart:h}}var Pn=regeneratorRuntime.mark(Tn),In=regeneratorRuntime.mark(Rn);function Tn(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,g.dispatch)(yn).fetchSite();case 2:return n.prev=2,n.next=5,ft({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});case 5:return t=n.sent,n.next=8,(0,g.dispatch)(yn).receiveSite(e,t);case 8:n.next=14;break;case 10:return n.prev=10,n.t0=n.catch(2),n.next=14,(0,g.dispatch)(yn).receiveSiteFailed(e,void 0);case 14:case"end":return n.stop()}}),Pn,null,[[2,10]])}function Rn(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,ft({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});case 3:return t=n.sent,n.next=6,(0,g.dispatch)(yn).receiveSiteDomains(e,null==t?void 0:t.domains);case 6:n.next=10;break;case 8:n.prev=8,n.t0=n.catch(0);case 10:case"end":return n.stop()}}),In,null,[[0,8]])}var xn,An=function(e){return e},Fn=function(e){return e.newSite.data},Dn=function(e){return e.newSite.error},Ln=function(e){return e.newSite.isFetching},Nn=function(e){return e.isFetchingSiteDetails},jn=function(e){return!!e.newSite.data},Mn=function(e,t){return e.sites[t]},kn=function(e,t){var n;return null===(n=(0,g.select)(yn).getSite(t))||void 0===n?void 0:n.name},Un=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===hn.SUCCESS},Vn=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===hn.IN_PROGRESS},Bn=function(e,t){return e.sitesDomains[t]},Hn=function(e,t){var n;return null===(n=(0,g.select)(yn).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.primary_domain}))},$n=function(e,t){var n;return null===(n=(0,g.select)(yn).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.is_subdomain}))},Gn=!1;xn={client_id:"",client_secret:""},Gn||(Gn=!0,(0,g.registerStore)(yn,{actions:On(xn),controls:gt,reducer:Cn,resolvers:u,selectors:c}));var Wn=window.wp.dataControls,Kn="automattic/launch",zn="automattic/onboard/plans",qn={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},Zn=[qn.Name,qn.Domain,qn.Plan,qn.Final],Jn=(0,g.combineReducers)({step:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qn.Name,t=arguments.length>1?arguments[1]:void 0;return"SET_STEP"===t.type?t.step:e},siteTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;return"SET_SITE_TITLE"===t.type?t.title:e},domain:function(e,t){return"SET_DOMAIN"===t.type?t.domain:"UNSET_DOMAIN"!==t.type?e:void 0},confirmedDomainSelection:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"CONFIRM_DOMAIN_SELECTION"===t.type||e},domainSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return"SET_DOMAIN_SEARCH"===t.type?t.domainSearch:e},planProductId:function(e,t){return"SET_PLAN_PRODUCT_ID"===t.type?t.planProductId:"UNSET_PLAN_PRODUCT_ID"!==t.type?e:void 0},isSidebarOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_SIDEBAR"===t.type||"CLOSE_SIDEBAR"!==t.type&&e},isSidebarFullscreen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_SIDEBAR_FULLSCREEN"===t.type||"UNSET_SIDEBAR_FULLSCREEN"!==t.type&&e},isExperimental:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_EXPERIMENTAL"===t.type||e},isFocusedLaunchOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_FOCUSED_LAUNCH"===t.type||"CLOSE_FOCUSED_LAUNCH"!==t.type&&e},isSiteTitleStepVisible:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_SITE_TITLE_STEP"===t.type||e},isModalDismissible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_MODAL_DISMISSIBLE"===t.type||"UNSET_MODAL_DISMISSIBLE"!==t.type&&e},isModalTitleVisible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_MODAL_TITLE"===t.type||"HIDE_MODAL_TITLE"!==t.type&&e},shouldDisplaySuccessView:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_SUCCESS_VIEW"===t.type||"DISABLE_SUCCESS_VIEW"!==t.type&&e}}),Yn=function(){return{type:"SET_SIDEBAR_FULLSCREEN"}},Qn=function(){return{type:"UNSET_SIDEBAR_FULLSCREEN"}},Xn=function(e){return{type:"SET_STEP",step:e}},er=function(e){return{type:"SET_SITE_TITLE",title:e}},tr=function(e){return{type:"SET_DOMAIN",domain:e}},nr=function(){return{type:"UNSET_DOMAIN"}},rr=function(){return{type:"CONFIRM_DOMAIN_SELECTION"}},ir=function(e){return{type:"SET_DOMAIN_SEARCH",domainSearch:e}},or=function(e){return{type:"SET_PLAN_PRODUCT_ID",planProductId:e}},sr=function(){return{type:"UNSET_PLAN_PRODUCT_ID"}};function ar(e){return or(e)}var ur=function(){return{type:"OPEN_SIDEBAR"}},cr=function(){return{type:"CLOSE_SIDEBAR"}},lr=function(){return{type:"OPEN_FOCUSED_LAUNCH"}},pr=function(){return{type:"CLOSE_FOCUSED_LAUNCH"}},fr=function(){return{type:"ENABLE_EXPERIMENTAL"}},dr=function(){return{type:"SHOW_SITE_TITLE_STEP"}},gr=function(){return{type:"SET_MODAL_DISMISSIBLE"}},mr=function(){return{type:"UNSET_MODAL_DISMISSIBLE"}},hr=function(){return{type:"SHOW_MODAL_TITLE"}},yr=function(){return{type:"HIDE_MODAL_TITLE"}},vr=function(){return{type:"ENABLE_SUCCESS_VIEW"}},br=function(){return{type:"DISABLE_SUCCESS_VIEW"}},Sr=function(){return Zn},Er=function(){return qn},_r=function(e){return e},wr=function(e){return!!e.domain&&!e.domain.is_free},Cr=function(e){return e.domain},Or=function(e){return e.planProductId},Pr=function(e){return(0,g.select)(zn).getPlanByProductId(e.planProductId)},Ir=function(e){var t=e.planProductId,n=(0,g.select)(zn).isPlanProductFree(t);return t&&!n?e.planProductId:void 0},Tr=function(e){return!!Cr(e)||e.confirmedDomainSelection},Rr=function(e,t){if(t===qn.Plan)return!!Or(e);if(t===qn.Name){var n=(0,g.select)("core").getEntityRecord("root","site",void 0);return!(null==n||!n.title)}return t===qn.Domain&&(0,g.select)(Kn).hasSelectedDomain()},xr=function(e){return Zn.slice(0,Zn.length-1).every((function(t){return Rr(e,t)}))},Ar=function(e){return Zn.some((function(t){return Rr(e,t)}))},Fr=function(e){return Zn.find((function(t){return!Rr(e,t)}))},Dr=function(e){return null==e?void 0:e.siteTitle},Lr=function(e){return e.step};var Nr,jr,Mr,kr,Ur,Vr,Br=(jr=Nr="WP_LAUNCH",Mr=Nr+"_TS",kr={},Ur={getItem:function(e){return kr.hasOwnProperty(e)?kr[e]:null},setItem:function(e,t){kr[e]=String(t)},removeItem:function(e){delete kr[e]}},Vr=function(){try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}}()?window.localStorage:Ur,{storageKey:jr,storage:{getItem:function(e){var t=Vr.getItem(Mr);return t&&function(e){var t=Number(e);return Boolean(t)&&t+6048e5>Date.now()}(t)&&!new URLSearchParams(window.location.search).has("fresh")?Vr.getItem(e):(Vr.removeItem(jr),Vr.removeItem(Mr),null)},setItem:function(e,t){Vr.setItem(Mr,JSON.stringify(Date.now())),Vr.setItem(e,t)}}});(0,g.use)(g.plugins.persistence,Br);var Hr=!1;Hr||(Hr=!0,(0,g.registerStore)(Kn,{actions:l,controls:Wn.controls,reducer:Jn,selectors:p,persist:["domain","domainSearch","planProductId","confirmedDomainSelection","isExperimental","isSiteTitleStepVisible","shouldDisplaySuccessView"]}));var $r="automattic/wpcom-features",Gr={domain:{id:"domain",minSupportedPlan:Ct},store:{id:"store",minSupportedPlan:"Ecommerce"},seo:{id:"seo",minSupportedPlan:Pt},plugins:{id:"plugins",minSupportedPlan:Pt},"ad-free":{id:"ad-free",minSupportedPlan:Ct},"image-storage":{id:"image-storage",minSupportedPlan:Ot},"video-storage":{id:"video-storage",minSupportedPlan:Ot},support:{id:"support",minSupportedPlan:Pt}},Wr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gr;return e},Kr=function(e){return e},zr=function(e,t){var n=Kr(e);if(t.length)return t.reduce((function(e,t){var r=n[t].minSupportedPlan;return At.indexOf(r)>At.indexOf(e)?r:e}),n[t[0]].minSupportedPlan)},qr=!1;qr||(qr=!0,(0,g.registerStore)($r,{controls:Wn.controls,reducer:Wr,selectors:f}))},8049:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){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"],t.log=console.debug||console.log||function(){},e.exports=n(2632)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,n){var r=n(5182);e.exports=function(e){function t(e){var n;function r(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];if(r.enabled){var s=r,a=Number(new Date),u=a-(n||a);s.diff=u,s.prev=n,s.curr=a,n=a,i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var c=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;c++;var r=t.formatters[n];if("function"==typeof r){var o=i[c];e=r.call(s,o),i.splice(c,1),c--}return e})),t.formatArgs.call(s,i);var l=s.log||t.log;l.apply(s,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=t.selectColor(e),r.destroy=i,r.extend=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function o(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(s)),r(t.skips.map(s).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1378),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.instances=[],t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},3830:function(e,t,n){"use strict";var r=n(956);e.exports=function(){var e=r.apply(r,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},956:function(e){"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},8186:function(e,t,n){"use strict";var r=n(7320),i=n(3804);t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,o=i.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=o[0];var s=o[1];return o=e.value,e.getCurrentValue===t&&e.subscribe===n||(o=t(),s({getCurrentValue:t,subscribe:n,value:o})),i.useDebugValue(o),i.useEffect((function(){function e(){if(!i){var e=t();s((function(i){return i.getCurrentValue!==t||i.subscribe!==n||i.value===e?i:r({},i,{value:e})}))}}var i=!1,o=n(e);return e(),function(){i=!0,o()}}),[t,n]),o}},6718:function(e,t,n){"use strict";e.exports=n(8186)},2884:function(e,t,n){var r=n(3830),i=n(7260);function o(e,t){if(t)if("number"==typeof t)s(e,t);else{t.status_code&&s(e,t.status_code),t.error&&(e.name=u(t.error)),t.error_description&&(e.message=t.error_description);var n=t.errors;if(n)o(e,n.length?n[0]:n);for(var r in t)e[r]=t[r];e.status&&(t.method||t.path)&&a(e)}}function s(e,t){e.name=u(i[t]),e.status=e.statusCode=t,a(e)}function a(e){var t=e.status,n=e.method,r=e.path,i=t+" status code",o=n||r;o&&(i+=' for "'),n&&(i+=n),o&&(i+=" "),r&&(i+=r),o&&(i+='"'),e.message=i}function u(e){return r(String(e).replace(/error$/i,""),"error")}e.exports=function e(){for(var t=new Error,n=0;n<arguments.length;n++)o(t,arguments[n]);"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(t,e);return t}},7260:function(e){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},3804:function(e){"use strict";e.exports=window.React}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(1467)}());
     14function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,o):""+Math.round(i)).split("."))[0].length>3&&()}());
  • full-site-editing/trunk/common/dist/hide-plugin-buttons-mobile.asset.php

    r2463991 r2464442  
    1 <?php return array('dependencies' => array('wp-polyfill'), 'version' => '771e2df257f56646945907801c4b6142');
     1<?php return array('dependencies' => array('wp-polyfill'), 'version' => '');
  • full-site-editing/trunk/common/dist/hide-plugin-buttons-mobile.js

    r2463991 r2464442  
    1 !function(e,r){for(var t in r)e[t]=r[t];r.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){"use strict";var e={2345:function(e,r,t){t.r(r)}},r={};function t(o){if(r[o])return r[o].exports;var n=r[o]={exports:{}};return e[o](n,n.exports,t),n.exports}return t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t(2345)}());
     1!function(e,)}());
  • full-site-editing/trunk/dotcom-fse/dist/dotcom-fse.asset.php

    r2460738 r2464442  
    1 <?php return array('dependencies' => array('lodash', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-server-side-render', 'wp-url'), 'version' => '5e424bd4dd4de2cb12f572085ca31810');
     1<?php return array('dependencies' => array('lodash', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-server-side-render', 'wp-url'), 'version' => '');
  • full-site-editing/trunk/dotcom-fse/dist/dotcom-fse.js

    r2460738 r2464442  
    1 !function(e,t){for(var n in t)e[n]=t[n];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={965:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}},180:function(e){e.exports=function(e){if(Array.isArray(e))return e}},232:function(e,t,n){var o=n(965);e.exports=function(e){if(Array.isArray(e))return o(e)}},111:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},85:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},198:function(e){function t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}e.exports=function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}},564:function(e,t,n){var o=n(588),r=n(549),i=n(983);e.exports=function(e){var t=r();return function(){var n,r=o(e);if(t){var l=o(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return i(this,n)}}},260:function(e){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}},527:function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},t.apply(this,arguments)}e.exports=t},588:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(n)}e.exports=t},270:function(e,t,n){var o=n(742);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&&o(e,t)}},549:function(e){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},557:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},981:function(e){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],_n=!0,o=!1,r=void 0;try{for(var i,l=e[Symbol.iterator]();!(_n=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);_n=!0);}catch(a){o=!0,r=a}finally{try{_n||null==l.return||l.return()}finally{if(o)throw r}}return n}}},365:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},359:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},417:function(e,t,n){var o=n(260);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},983:function(e,t,n){var o=n(921),r=n(111);e.exports=function(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?r(e):t}},742:function(e){function t(n,o){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(n,o)}e.exports=t},68:function(e,t,n){var o=n(180),r=n(981),i=n(487),l=n(365);e.exports=function(e,t){return o(e)||r(e,t)||i(e,t)||l()}},182:function(e,t,n){var o=n(232),r=n(557),i=n(487),l=n(359);e.exports=function(e){return o(e)||r(e)||i(e)||l()}},921:function(e){function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t},487:function(e,t,n){var o=n(965);e.exports=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}},779:function(e,t){var n;
     1!function(){var n;
    22/*!
    33  Copyright (c) 2017 Jed Watson.
    44  Licensed under the MIT License (MIT), see
    55  http://jedwatson.github.io/classnames
    6 */!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)&&n.length){var l=r.apply(null,n);l&&e.push(l)}else if("object"===i)for(var a in n)o.call(n,a)&&n[a]&&e.push(a)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},535:function(e,t,n){"use strict";n.r(t);var o=window.wp.element,r=window.wp.blocks,i=window.wp.i18n,l=n(527),a=n.n(l),s=window.wp.serverSideRender,c=n.n(s),u=window.wp.compose,d=window.wp.blockEditor,p=window.wp.components,f=window.wp.data,m=(0,u.compose)([(0,d.withColors)("backgroundColor",{textColor:"color"}),(0,d.withFontSizes)("fontSize"),(0,f.withSelect)((function(e){return{isPublished:e("core/editor").isCurrentPostPublished()}}))])((function(e){var t=e.attributes,n=e.backgroundColor,r=e.fontSize,l=e.setAttributes,s=e.setBackgroundColor,u=e.setFontSize,f=e.setTextColor,m=e.textColor,g=e.isPublished,v=t.customFontSize,b=t.textAlign,y=v||r.size;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(d.BlockControls,null,(0,o.createElement)(d.AlignmentToolbar,{value:b,onChange:function(e){l({textAlign:e})}})),(0,o.createElement)(d.InspectorControls,null,(0,o.createElement)(p.PanelBody,{className:"blocks-font-size",title:(0,i.__)("Text Settings","full-site-editing")},(0,o.createElement)(d.FontSizePicker,{onChange:u,value:y})),(0,o.createElement)(d.PanelColorSettings,{title:(0,i.__)("Color Settings","full-site-editing"),initialOpen:!1,colorSettings:[{value:n.color,onChange:s,label:(0,i.__)("Background Color","full-site-editing")},{value:m.color,onChange:f,label:(0,i.__)("Text Color","full-site-editing")}]},(0,o.createElement)(d.ContrastChecker,a()({textColor:m.color,backgroundColor:n.color},{fontSize:y})))),(0,o.createElement)(c(),{isPublished:g,block:"a8c/navigation-menu",attributes:t}))}));function g(){for(var e=(0,r.getCategories)(),t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];for(var i=function(){var t=a[l];if(e.some((function(e){return e.slug===t})))return{v:t}},l=0,a=n;l<a.length;l++){var s=i();if("object"==typeof s)return s.v}throw new Error("Could not find a category from the provided list: ".concat(n.join(",")))}var v=(0,o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,o.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),(0,o.createElement)("path",{d:"M12 7.27l4.28 10.43-3.47-1.53-.81-.36-.81.36-3.47 1.53L12 7.27M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71L12 2z"}));(0,r.registerBlockType)("a8c/navigation-menu",{title:(0,i.__)("Navigation Menu","full-site-editing"),description:(0,i.__)("Visual placeholder for site-wide navigation and menus.","full-site-editing"),icon:v,category:g("design","layout"),supports:{align:["wide","full","right","left"],html:!1,reusable:!1},edit:m,save:function(){return null}});var b=window.wp.hooks,y=n(260),h=n.n(y),w=n(85),_=n.n(w),S=n(198),E=n.n(S),k=n(270),C=n.n(k),x=n(564),P=n.n(x),T=n(779),O=n.n(T),B=window.wp.editor,I=function(e){C()(n,e);var t=P()(n);function n(){return _()(this,n),t.apply(this,arguments)}return E()(n,[{key:"toggleEditing",value:function(){var e=this.props,t=e.isEditing;(0,e.setState)({isEditing:!t})}},{key:"onSelectPost",value:function(e){var t=e.id,n=e.type;this.props.setState({isEditing:!1,selectedPostId:t,selectedPostType:n})}},{key:"render",value:function(){var e=this.props.attributes.align;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:O()("post-content-block",h()({},"align".concat(e),e))},(0,o.createElement)(B.PostTitle,null),(0,o.createElement)(d.InnerBlocks,{templateLock:!1})))}}]),n}(o.Component),N=(0,u.compose)([(0,u.withState)({isEditing:!1,selectedPostId:void 0,selectedPostType:void 0}),(0,f.withSelect)((function(e,t){var n=t.selectedPostId,o=t.selectedPostType;return{selectedPost:(0,e("core").getEntityRecord)("postType",o,n)}}))])(I);(0,r.registerBlockType)("a8c/post-content",{title:(0,i.__)("Content","full-site-editing"),description:(0,i.__)("The page content.","full-site-editing"),icon:"layout",category:g("design","layout"),supports:{align:["full"],anchor:!1,customClassName:!1,html:!1,inserter:!1,multiple:!1,reusable:!1},attributes:{align:{type:"string",default:"full"}},edit:N,save:function(){return(0,o.createElement)(d.InnerBlocks.Content,null)}});var A=(0,u.createHigherOrderComponent)((function(e){return function(t){return"a8c/post-content"!==t.name?(0,o.createElement)(e,t):(0,o.createElement)(e,a()({},t,{className:"post-content__block"}))}}),"addContentSlotClassname");(0,b.addFilter)("editor.BlockListBlock","full-site-editing/blocks/post-content",A,9);var j=n(417),z=n.n(j),D=n(68),F=n.n(D),L=window.wp.apiFetch,R=n.n(L),M=window.wp.htmlEntities;function V(e){var t=(0,o.useRef)();return(0,o.useEffect)((function(){t.current=e}),[e]),t.current}function U(e,t,n,r,l,a){var s=(0,o.useState)({option:t,previousOption:"",loaded:!1,error:!1}),c=F()(s,2),u=c[0],d=c[1],p=V(r),f=V(l);function m(){d(z()(z()({},u),{},{option:u.previousOption,isSaving:!1}))}return(0,o.useEffect)((function(){u.loaded||u.error?function(){var t=u.option,o=u.previousOption,a=!o&&!t||t&&o&&t.trim()===o.trim(),s=!t||0===t.trim().length;!r&&p&&s&&m();if(!l||a)return;!f&&l&&function(t){d(z()(z()({},u),{},{isSaving:!0})),R()({path:"/wp/v2/settings",method:"POST",data:h()({},e,t)}).then((function(){return function(e){d(z()(z()({},u),{},{previousOption:e,isDirty:!1,isSaving:!1}))}(t)})).catch((function(){n((0,i.sprintf)((0,i.__)("Unable to save site %s","full-site-editing"),e)),m()}))}(t)}():R()({path:"/wp/v2/settings"}).then((function(t){return d(z()(z()({},u),{},{option:(0,M.decodeEntities)(t[e]),previousOption:(0,M.decodeEntities)(t[e]),loaded:!0,error:!1}))})).catch((function(){n((0,i.sprintf)((0,i.__)("Unable to load site %s","full-site-editing"),e)),d(z()(z()({},u),{},{option:(0,i.sprintf)((0,i.__)("Error loading site %s","full-site-editing"),e),error:!0}))}))})),{siteOptions:u,handleChange:function(e){a({updated:Date.now()}),d(z()(z()({},u),{},{option:e}))}}}var H=function(e){return(0,u.createHigherOrderComponent)((function(t){return(0,u.pure)((function(n){var r=(0,f.useSelect)((function(e){var t=e("core/editor"),n=t.isSavingPost,o=t.isPublishingPost,r=t.isAutosavingPost,i=t.isCurrentPostPublished;return(n()&&i()||o())&&!r()})),i=(0,f.useDispatch)((function(e){return e("core/notices").createErrorNotice})),l=n.isSelected,s=n.setAttributes,c=Object.keys(e).reduce((function(t,n){var o=e[n],a=U(o.optionName,o.defaultValue,i,l,r,s),c=a.siteOptions,u=a.handleChange;return t[n]={value:c.option,updateValue:u,loaded:c.loaded},t}),{});return(0,o.createElement)(t,a()({},n,c))}))}),"withSiteOptions")},q=fullSiteEditing.footerCreditOptions,W=function(e){var t=e.choice,n=q.find((function(e){return e.value===t}));if(!n)return null;var r=n.renderType,i=n.renderProps,l=n.label,a=z()({label:l},i);return"icon"===r?(0,o.createElement)(p.Icon,a):(0,o.createElement)("span",null," ",a.label," ")},G=fullSiteEditing,Q=G.footerCreditOptions,Y=G.defaultCreditOption;var $=(0,u.compose)([H({siteTitleOption:{optionName:"title",defaultValue:(0,i.__)("Site title loading…","full-site-editing")},footerCreditOption:{optionName:"footer_credit",defaultValue:(0,i.__)("Footer credit loading…","full-site-editing")}})])((function(e){var t=e.attributes.textAlign,n=void 0===t?"center":t,r=e.isSelected,i=e.setAttributes,l=e.footerCreditOption,a=l.value,s=l.updateValue,c=e.siteTitleOption.value,u=a||Y;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(d.BlockControls,null,(0,o.createElement)(d.AlignmentToolbar,{value:n,onChange:function(e){i({textAlign:e})}})),(0,o.createElement)("div",{className:O()("site-info","site-credit__block",h()({},"has-text-align-".concat(n),n))},(0,o.createElement)("span",{className:"site-name"},c),(0,o.createElement)("span",{className:"comma"},","),(0,o.createElement)("span",{className:"site-credit__selection"},r?(0,o.createElement)(p.SelectControl,{onChange:s,value:u,options:Q}):(0,o.createElement)(W,{choice:u}))))}));(0,r.registerBlockType)("a8c/site-credit",{title:(0,i.__)("WordPress.com Credit","full-site-editing"),description:(0,i.__)("This block tells the world that you're using WordPress.com.","full-site-editing"),icon:"wordpress-alt",category:g("design","layout"),supports:{align:["wide","full"],html:!1,multiple:!1,reusable:!1,removal:!1},attributes:{align:{type:"string",default:"wide"},textAlign:{type:"string",default:"center"}},edit:$,save:function(){return null}});var J=window.lodash;var K=(0,u.compose)([(0,d.withColors)("backgroundColor",{textColor:"color"}),(0,d.withFontSizes)("fontSize"),(0,f.withSelect)((function(e,t){var n=t.clientId,o=e("core/block-editor"),r=o.getBlockIndex,i=o.getBlockRootClientId,l=o.getTemplateLock,a=i(n);return{blockIndex:r(n,a),isLocked:!!l(a),rootClientId:a}})),(0,f.withDispatch)((function(e,t){var n=t.blockIndex,o=t.rootClientId;return{insertDefaultBlock:function(){return e("core/block-editor").insertDefaultBlock({},o,n+1)}}})),H({siteDescription:{optionName:"description",defaultValue:(0,i.__)("Site description loading…","full-site-editing")}})])((function(e){var t,n=e.attributes,r=e.backgroundColor,l=e.className,s=e.fontSize,c=e.insertDefaultBlock,u=e.setAttributes,f=e.setBackgroundColor,m=e.setFontSize,g=e.setTextColor,v=e.siteDescription,b=e.textColor,y=n.customFontSize,w=n.textAlign,_=y||s.size,S=v.value,E=v.updateValue;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(d.BlockControls,null,(0,o.createElement)(d.AlignmentToolbar,{value:w,onChange:function(e){u({textAlign:e})}})),(0,o.createElement)(d.InspectorControls,null,(0,o.createElement)(p.PanelBody,{className:"blocks-font-size",title:(0,i.__)("Text Settings","full-site-editing")},(0,o.createElement)(d.FontSizePicker,{onChange:m,value:_})),(0,o.createElement)(d.PanelColorSettings,{title:(0,i.__)("Color Settings","full-site-editing"),initialOpen:!1,colorSettings:[{value:r.color,onChange:f,label:(0,i.__)("Background Color","full-site-editing")},{value:b.color,onChange:g,label:(0,i.__)("Text Color","full-site-editing")}]},(0,o.createElement)(d.ContrastChecker,a()({textColor:b.color,backgroundColor:r.color},{fontSize:_})))),(0,o.createElement)(d.RichText,{allowedFormats:[],"aria-label":(0,i.__)("Site Description","full-site-editing"),className:O()("site-description",l,(t={"has-text-color":b.color,"has-background":r.color},h()(t,"has-text-align-".concat(w),w),h()(t,r.class,r.class),h()(t,b.class,b.class),h()(t,s.class,!y&&s.class),t)),identifier:"content",onChange:E,onReplace:c,onSplit:J.noop,placeholder:(0,i.__)("Add a Site Description","full-site-editing"),style:{backgroundColor:r.color,color:b.color,fontSize:_?_+"px":void 0},tagName:"p",value:S}))}));(0,r.registerBlockType)("a8c/site-description",{title:(0,i.__)("Site Description","full-site-editing"),description:(0,i.__)("Site description, also known as the tagline.","full-site-editing"),icon:(0,o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},(0,o.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"}),(0,o.createElement)("path",{d:"M4 9h16v2H4V9zm0 4h10v2H4v-2z"})),category:g("design","layout"),supports:{align:["wide","full"],html:!1,multiple:!1,reusable:!1},attributes:{align:{type:"string",default:"wide"},textAlign:{type:"string",default:"center"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},fontSize:{type:"string",default:"small"},customFontSize:{type:"number"}},edit:K,save:function(){return null}});var X=(0,u.compose)([(0,d.withColors)({textColor:"color"}),(0,d.withFontSizes)("fontSize"),(0,f.withSelect)((function(e,t){var n=t.clientId,o=e("core/block-editor"),r=o.getBlockIndex,i=o.getBlockRootClientId,l=o.getTemplateLock,a=i(n);return{blockIndex:r(n,a),isLocked:!!l(a),rootClientId:a}})),(0,f.withDispatch)((function(e,t){var n=t.blockIndex,o=t.rootClientId;return{insertDefaultBlock:function(){return e("core/block-editor").insertDefaultBlock({},o,n+1)}}})),H({siteTitle:{optionName:"title",defaultValue:(0,i.__)("Site title loading…","full-site-editing")}})])((function(e){var t,n=e.attributes,r=e.className,l=e.fontSize,a=e.insertDefaultBlock,s=e.setAttributes,c=e.setFontSize,u=e.setTextColor,f=e.siteTitle,m=e.textColor,g=n.customFontSize,v=n.textAlign,b=g||l.size,y=f.value,w=f.updateValue;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(d.BlockControls,null,(0,o.createElement)(d.AlignmentToolbar,{value:v,onChange:function(e){s({textAlign:e})}})),(0,o.createElement)(d.InspectorControls,null,(0,o.createElement)(p.PanelBody,{className:"blocks-font-size",title:(0,i.__)("Text Settings","full-site-editing")},(0,o.createElement)(d.FontSizePicker,{onChange:c,value:b})),(0,o.createElement)(d.PanelColorSettings,{title:(0,i.__)("Color Settings","full-site-editing"),initialOpen:!1,colorSettings:[{value:m.color,onChange:u,label:(0,i.__)("Text Color","full-site-editing")}]})),(0,o.createElement)(d.RichText,{allowedFormats:[],"aria-label":(0,i.__)("Site Title","full-site-editing"),className:O()("site-title",r,(t={"has-text-color":m.color},h()(t,"has-text-align-".concat(v),v),h()(t,m.class,m.class),h()(t,l.class,!g&&l.class),t)),identifier:"content",onChange:w,onReplace:a,onSplit:J.noop,placeholder:(0,i.__)("Add a Site Title","full-site-editing"),style:{color:m.color,fontSize:b?b+"px":void 0},tagName:"h1",value:y}))}));(0,r.registerBlockType)("a8c/site-title",{title:(0,i.__)("Site Title","full-site-editing"),description:(0,i.__)("Your site title.","full-site-editing"),icon:"layout",category:g("design","layout"),supports:{align:["wide","full"],html:!1,multiple:!1,reusable:!1},attributes:{align:{type:"string",default:"wide"},textAlign:{type:"string",default:"center"},textColor:{type:"string"},customTextColor:{type:"string"},fontSize:{type:"string",default:"normal"},customFontSize:{type:"number"}},edit:X,save:function(){return null}});var Z=window.wp.url,ee=(0,u.compose)((0,u.withState)({templateClientId:null}),(0,f.withSelect)((function(e,t){var n=t.attributes,o=t.templateClientId,r=e("core").getEntityRecord,i=e("core/editor"),l=i.getCurrentPostId,a=i.isEditedPostDirty,s=e("core/block-editor"),c=s.getBlock,u=s.getSelectedBlock,d=e("core/edit-post").isEditorSidebarOpened,p=n.templateId,f=l(),m=p&&r("postType","wp_template_part",p),g=(0,Z.addQueryArgs)(fullSiteEditing.editTemplateBaseUrl,{post:p,fse_parent_post:f}),v=u();return{currentPostId:f,editTemplateUrl:g,template:m,templateBlock:c(o),templateTitle:(0,J.get)(m,["title","rendered"],""),isDirty:a(),isEditorSidebarOpened:!!d(),isAnyTemplateBlockSelected:v&&"a8c/template"===v.name}})),(0,f.withDispatch)((function(e,t){var n=e("core/block-editor").receiveBlocks,o=e("core/edit-post").openGeneralSidebar,i=t.template,l=t.templateClientId,a=t.setState;return{savePost:e("core/editor").savePost,receiveTemplateBlocks:function(){if(i&&!l){var e=(0,r.parse)((0,J.get)(i,["content","raw"],"")),t=(0,r.createBlock)("core/group",{},e);n([t]),a({templateClientId:t.clientId})}},openGeneralSidebar:o}})))((function(e){var t,n=e.attributes,r=e.editTemplateUrl,l=e.receiveTemplateBlocks,a=e.template,s=e.templateBlock,c=e.templateTitle,u=e.isDirty,f=e.savePost,m=e.isEditorSidebarOpened,g=e.openGeneralSidebar,v=e.isAnyTemplateBlockSelected;if(!a)return(0,o.createElement)(p.Placeholder,{className:"template-block__placeholder"},(0,o.createElement)(p.Spinner,null));var b=(0,o.createRef)(),y=(0,o.useState)(!1),w=F()(y,2),_=w[0],S=w[1];(0,o.useEffect)((function(){_&&!u&&b.current.click(),l()})),(0,o.useEffect)((function(){var e=document.querySelector(".edit-post-sidebar__panel-tabs ul li:last-child");if(m&&e){if(v)return g("edit-post/document"),void e.classList.add("hidden");e.classList.remove("hidden")}}),[v,m,g]);var E=n.align,k=n.className,C=function(e){e.stopPropagation(),S(!0),u&&(e.preventDefault(),f())};return(0,o.createElement)("div",{className:O()("template-block",(t={},h()(t,"align".concat(E),E),h()(t,"is-navigating-to-template",_),t))},s&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(p.Disabled,null,(0,o.createElement)("div",{className:k},(0,o.createElement)(d.BlockEdit,{attributes:s.attributes,block:s,clientId:s.clientId,isSelected:!1,name:s.name,setAttributes:J.noop}))),(0,o.createElement)(p.Placeholder,{className:"template-block__overlay",onClick:C},_&&(0,o.createElement)("div",{className:"template-block__loading"},(0,o.createElement)(p.Spinner,null)," ",(0,i.sprintf)((0,i.__)("Loading editor for: %s","full-site-editing"),c)),(0,o.createElement)(p.Button,{className:_?"hidden":null,href:r,onClick:C,isDefault:!0,isLarge:!0,ref:b},(0,i.sprintf)((0,i.__)("Edit %s","full-site-editing"),c)))))})),te=(0,u.createHigherOrderComponent)((function(e){return function(t){return"fse-site-logo"!==t.attributes.className?(0,o.createElement)(e,t):(0,o.createElement)(e,a()({},t,{className:"template__site-logo"}))}}),"addFSESiteLogoClassname");(0,b.addFilter)("editor.BlockListBlock","full-site-editing/blocks/template",te),"wp_template_part"!==fullSiteEditing.editorPostType&&(0,r.registerBlockType)("a8c/template",{title:(0,i.__)("Template Part","full-site-editing"),__experimentalDisplayName:"label",description:(0,i.__)("Display a Template Part.","full-site-editing"),icon:"layout",category:g("design","layout"),attributes:{templateId:{type:"number"},className:{type:"string"},label:{type:"string"}},supports:{anchor:!1,customClassName:!1,html:!1,inserter:!1,reusable:!1},edit:ee,save:function(){return null},getEditWrapperProps:function(){return{"data-align":"full"}}});var ne=(0,u.createHigherOrderComponent)((function(e){return function(t){return"a8c/template"!==t.name?(0,o.createElement)(e,t):(0,o.createElement)(e,a()({},t,{className:"template__block-container"}))}}),"addFSETemplateClassname");(0,b.addFilter)("editor.BlockListBlock","full-site-editing/blocks/template",ne,9);var oe=window.wp.domReady,re=n.n(oe),ie=window.ReactDOM,le=n.n(ie);function ae(e){var t=e.defaultLabel,n=e.defaultUrl,r=(0,o.useState)(t),i=F()(r,2),l=i[0],a=i[1],s=(0,o.useState)(n),c=F()(s,2),u=c[0],d=c[1];return window.wp.hooks.addAction("updateCloseButtonOverrides","a8c-fse",(function(e){a(e.label),d(e.closeUrl)})),(0,o.createElement)("a",{href:u,"aria-label":l},(0,o.createElement)(p.Button,{className:"components-button components-icon-button"},(0,o.createElement)(p.Dashicon,{icon:"arrow-left-alt2"}),(0,o.createElement)("div",{className:"close-button-override__label"},l)))}re()((function(){var e=fullSiteEditing.editorPostType;if("wp_template_part"===e||"page"===e||"post"===e)var t=setInterval((function(){var n=document.querySelector(".edit-post-header__toolbar");if(n){clearInterval(t);var r=document.createElement("div");r.className="components-toolbar edit-post-fullscreen-mode-close__toolbar edit-post-fullscreen-mode-close__toolbar__override",n.prepend(r);var l=fullSiteEditing,a=l.closeButtonLabel,s=l.closeButtonUrl,c=window.calypsoifyGutenberg;c&&c.closeUrl&&(s=c.closeUrl),c&&c.closeButtonLabel&&(a=c.closeButtonLabel);var u=s||"edit.php?post_type=".concat(e),d=a||"Back";"page"!==e||a?"post"!==e||a?"wp_template_part"!==e||a||(d=(0,i.__)("Template Parts","full-site-editing")):d=(0,i.__)("Posts","full-site-editing"):d=(0,i.__)("Pages","full-site-editing"),le().render((0,o.createElement)(ae,{defaultLabel:d,defaultUrl:u}),r)}}))}));var se=n(182),ce=n.n(se),ue=window.wp.plugins,de=(0,f.withSelect)((function(e){var t=e("core").getEntityRecord,n=e("core/editor").getEditedPostAttribute;return{templateClasses:(0,J.map)(n("template_part_types"),(function(e){var n=(0,J.get)(t("taxonomy","wp_template_part_type",e),"name","");return n.endsWith("-header")?"fse-header":n.endsWith("-footer")?"fse-footer":void 0}))}}))((function(e){var t=e.templateClasses,n=setInterval((function(){var e=document.querySelector(".block-editor__typewriter > div");e&&(clearInterval(n),e.className=O().apply(void 0,["a8c-template-editor fse-template-part"].concat(ce()(t))))}));return null}));"wp_template_part"===fullSiteEditing.editorPostType&&(0,ue.registerPlugin)("fse-editor-template-classes",{render:de}),re()((function(){"wp_template_part"===fullSiteEditing.editorPostType&&(0,f.dispatch)("core/notices").createNotice("info",(0,i.__)("Updates to this template will affect all pages on your site.","full-site-editing"),{isDismissible:!1})}));var pe=(0,u.compose)((0,f.withSelect)((function(e){var t=e("core/editor").getEditorSettings,n=e("core/block-editor").getBlocks,o=e("core/edit-post").getEditorMode,r=n().find((function(e){return"a8c/post-content"===e.name}));return{rootClientId:r?r.clientId:"",showInserter:"visual"===o()&&t().richEditingEnabled}})))((function(e){var t=e.rootClientId,n=e.showInserter;return(0,o.createElement)(d.Inserter,{rootClientId:t,disabled:!n,position:"bottom right",toggleProps:{isPrimary:!0}})})),fe="fse-post-content-block-inserter";function me(){if(!document.getElementById(fe)){var e=document.querySelector(".edit-post-header-toolbar");if(e){var t=document.createElement("div");t.className="fse-post-content-block-inserter",t.id=fe,e.insertBefore(t,e.firstChild),(0,o.render)((0,o.createElement)(pe,null),t)}}}re()((function(){if("page"===fullSiteEditing.editorPostType)var e=setInterval((function(){document.querySelector(".edit-post-header-toolbar")&&(clearInterval(e),me(),document.getElementById("wpbody")&&void 0!==window.MutationObserver&&new window.MutationObserver(me).observe(document.getElementById("wpbody"),{subtree:!0,childList:!0}))}))}));var ge=(0,f.subscribe)((function(){if("page"!==fullSiteEditing.editorPostType)return ge();!1===(0,f.select)("core/block-editor").isValidTemplate()&&(0,f.dispatch)("core/block-editor").setTemplateValidity(!0)})),ve=["logo","brand","emblem","hallmark"];(0,b.addFilter)("blocks.registerBlockType","full-site-editing/editor/image-block-keywords",(function(e,t){return"core/image"!==t?e:e=(0,J.assign)({},e,{keywords:e.keywords.concat(ve)})})),(0,f.use)((function(e){return{dispatch:function(t){var n=z()({},e.dispatch(t)),o=fullSiteEditing.editorPostType;return"core/editor"===t&&n.trashPost&&"wp_template_part"===o&&(n.trashPost=function(){}),n}}})),(0,f.use)((function(e){return{dispatch:function(t){var n=z()({},e.dispatch(t)),o=fullSiteEditing.editorPostType;if("core/editor"===t&&n.editPost&&"wp_template_part"===o){var r=n.editPost;n.editPost=function(e){"draft"!==e.status&&r(e)}}return n}}}));var be=(0,f.subscribe)((function(){var e=(0,f.dispatch)("core/edit-post").removeEditorPanel;return"page"===fullSiteEditing.editorPostType&&e("featured-image"),"wp_template_part"===fullSiteEditing.editorPostType&&e("post-status"),be()}))}},t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(535)}());
     6*/!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var )}());
  • full-site-editing/trunk/editor-site-launch/index.php

    r2430573 r2464442  
    1313
    1414/**
     15
     16
     17
     18
     19
     20
     21
     22
     23
     24
     25
     26
     27
     28
     29
     30
     31
     32
     33
     34
     35
     36
     37
     38
     39
     40
     41
     42
     43
     44
     45
     46
     47
     48
     49
     50
     51
     52
     53
     54
     55
     56
     57
     58
     59
     60
     61
     62
     63
     64
     65
     66
     67
     68
     69
     70
     71
     72
     73
     74
     75
     76
     77
     78
     79
     80
     81
     82
     83
     84
     85
     86
     87
     88
     89
     90
     91
     92
     93
     94
     95
     96
     97
     98
     99
     100
     101
     102
     103
     104
     105
     106
     107
     108
     109
     110
     111
     112
     113
     114
     115
     116
     117
     118
     119
    15120 * Enqueue assets
    16121 */
     
    21126    }
    22127
    23     $asset_file          = include plugin_dir_path( __FILE__ ) . 'dist/editor-site-launch.asset.php';
    24     $script_dependencies = isset( $asset_file['dependencies'] ) ? $asset_file['dependencies'] : array();
    25     $script_version      = isset( $asset_file['version'] ) ? $asset_file['version'] : filemtime( plugin_dir_path( __FILE__ ) . 'dist/editor-site-launch.js' );
    26     $style_version       = isset( $asset_file['version'] ) ? $asset_file['version'] : filemtime( plugin_dir_path( __FILE__ ) . 'dist/editor-site-launch.css' );
     128    // Get site launch options.
     129    $site_launch_options = apply_filters( 'a8c_enable_editor_site_launch', false );
    27130
    28     wp_enqueue_script(
    29         'a8c-fse-editor-site-launch-script',
    30         plugins_url( 'dist/editor-site-launch.js', __FILE__ ),
    31         $script_dependencies,
    32         $script_version,
    33         true
    34     );
     131    // If no site launch options, skip.
     132    // This could mean site is already launched or editing toolkit plugin is running on non-wpcom sites.
     133    if ( false === $site_launch_options ) {
     134        return;
     135    }
    35136
    36     wp_set_script_translations( 'a8c-fse-editor-site-launch-script', 'full-site-editing' );
    37 
    38     wp_localize_script(
    39         'a8c-fse-editor-site-launch-script',
    40         'wpcomEditorSiteLaunch',
    41         array(
    42             'locale' => determine_locale(),
    43         )
    44     );
    45 
    46     $style_file = is_rtl()
    47         ? 'editor-site-launch.rtl.css'
    48         : 'editor-site-launch.css';
    49 
    50     wp_enqueue_style(
    51         'a8c-fse-editor-site-launch-style',
    52         plugins_url( 'dist/' . $style_file, __FILE__ ),
    53         array(),
    54         $style_version
    55     );
     137    enqueue_launch_button_script_and_style( $site_launch_options );
     138    enqueue_launch_flow_script_and_style( $site_launch_options );
    56139}
    57140add_action( 'enqueue_block_editor_assets', __NAMESPACE__ . '\enqueue_script_and_style' );
  • full-site-editing/trunk/editor-site-launch/src/constants.ts

    r2428669 r2464442  
    11export const FLOW_ID = 'gutenboarding';
    2 
     2export const GUTENBOARDING_LAUNCH_FLOW = 'gutenboarding-launch';
     3export const FOCUSED_LAUNCH_FLOW = 'focused-launch';
     4export const SITE_LAUNCH_FLOW = 'launch-site';
    35declare global {
    46    interface Window {
    57        wpcomEditorSiteLaunch?: {
     8
     9
     10
     11
     12
    613            locale?: string;
    714        };
    815        _currentSiteId: number;
     16
     17
     18
    919    }
    1020}
  • full-site-editing/trunk/editor-site-launch/src/launch-steps/final-step/index.tsx

    r2463392 r2464442  
    7272                <p>
    7373                    { __( 'Custom domain', 'full-site-editing' ) }: { domain.domain_name }
     74
     75
     76
     77
     78
     79
     80
     81
     82
     83
     84
     85
    7486                </p>
    7587            ) : (
     
    115127                    <p className="nux-launch__summary-item__plan-name">WordPress.com { plan.title }</p>
    116128                    { __( 'Plan subscription', 'full-site-editing' ) }: { planProduct.price }{ ' ' }
    117                     { __( 'per month, billed yearly', 'full-site-editing' ) }
     129                    { planProduct.billingPeriod === 'ANNUALLY'
     130                        ? __( 'billed annually', 'full-site-editing' )
     131                        : __( 'per month, billed monthly', 'full-site-editing' ) }
    118132                </>
    119133            ) : (
     
    168182                                    </h3>
    169183                                    <ul className="nux-launch__feature-item-group">
    170                                         { plan?.features.map( ( feature, i ) => (
    171                                             <li key={ i } className="nux-launch__feature-item">
    172                                                 { TickIcon } { feature }
    173                                             </li>
    174                                         ) ) }
     184                                        { plan?.features
     185                                            // Some features are only available for the
     186                                            // annually-billed version of a plan
     187                                            .filter(
     188                                                ( feature ) =>
     189                                                    planProduct?.billingPeriod === 'ANNUALLY' ||
     190                                                    ! feature.requiresAnnuallyBilledPlan
     191                                            )
     192                                            .map( ( feature, i ) => (
     193                                                <li key={ i } className="nux-launch__feature-item">
     194                                                    { TickIcon } { feature.name }
     195                                                </li>
     196                                            ) ) }
    175197                                    </ul>
    176198                                    <p>
  • full-site-editing/trunk/editor-site-launch/src/launch-steps/final-step/styles.scss

    r2460738 r2464442  
    3535        margin-right: 6px;
    3636        margin-top: 2px;
     37
    3738    }
    3839
     
    8687        }
    8788    }
     89
     90
     91
    8892}
  • full-site-editing/trunk/editor-site-launch/src/utils.ts

    r2455168 r2464442  
    44import { doAction, hasAction } from '@wordpress/hooks';
    55import { addQueryArgs } from '@wordpress/url';
     6
    67
    78interface CalypsoifyWindow extends Window {
    89    currentSiteId?: number;
    910    calypsoifyGutenberg?: {
     11
    1012        isSiteUnlaunched?: boolean;
    1113        currentCalypsoUrl?: string;
    12         isFocusedLaunchFlow?: boolean;
    1314        [ key: string ]: unknown;
    1415    };
     
    1617declare const window: CalypsoifyWindow;
    1718
    18 export const redirectParentWindow = ( url: string ) => {
     19export const redirectParentWindow = ( url: string ) => {
    1920    window.top.location.href = url;
    2021};
    2122
    22 export const redirectToWpcomPath = ( url: string ) => {
     23export const redirectToWpcomPath = ( url: string ) => {
    2324    const origin = 'https://wordpress.com';
    2425    const path = url.startsWith( '/' ) ? url : `/${ url }`;
     
    3637export const openCheckout = ( siteSlug: string, isEcommerce = false ): void => {
    3738    const HOOK_OPEN_CHECKOUT_MODAL = 'a8c.wpcom-block-editor.openCheckoutModal';
    38     const isFocusedLaunchFlow = window?.calypsoifyGutenberg?.isFocusedLaunchFlow;
     39    const isFocusedLaunchFlow = window?.;
    3940
    4041    // only in focused launch, open checkout modal assuming the cart is already updated
  • full-site-editing/trunk/event-countdown-block/dist/event-countdown-block.asset.php

    r2460738 r2464442  
    1 <?php return array('dependencies' => array('wp-blocks', 'wp-components', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '40bb4b686cf218cdf52454aa4a082675');
     1<?php return array('dependencies' => array('wp-blocks', 'wp-components', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '');
  • full-site-editing/trunk/event-countdown-block/dist/event-countdown-block.js

    r2460738 r2464442  
    1 !function(e,t){for(var n in t)e[n]=t[n];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={260:function(e){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}},417:function(e,t,n){var r=n(260);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},988:function(e,t,n){"use strict";n.r(t);var r=n(417),i=n.n(r),o=window.wp.blocks,l=window.wp.i18n,a=window.wp.element,u=window.wp.components,c=function(){return(0,a.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,a.createElement)(u.Path,{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}))},s=window.wp.date,d=function(e){var t=e.attributes,n=e.setAttributes,r=e.className,i=(0,s.__experimentalGetSettings)(),o=(0,l.__)("Choose Date","full-site-editing");return t.eventDate&&(o=(0,s.dateI18n)(i.formats.datetimeAbbreviated,t.eventDate)),(0,a.createElement)(u.Placeholder,{label:(0,l.__)("Event Countdown","full-site-editing"),instructions:(0,l.__)("Count down to an event. Set a title and pick a time and date.","full-site-editing"),icon:(0,a.createElement)(c,null),className:r},(0,a.createElement)("div",null,(0,a.createElement)("strong",null,(0,l.__)("Title:","full-site-editing")),(0,a.createElement)("br",null),(0,a.createElement)("input",{type:"text",value:t.eventTitle,onChange:function(e){return n({eventTitle:e.target.value})},placeholder:(0,l.__)("Event Title","full-site-editing"),className:"event-countdown__event-title","aria-label":(0,l.__)("Event Title","full-site-editing")})),(0,a.createElement)("div",null,(0,a.createElement)("strong",null,(0,l.__)("Date:","full-site-editing")),(0,a.createElement)("br",null),(0,a.createElement)(u.Dropdown,{position:"bottom left",renderToggle:function(e){var t=e.onToggle,n=e.isOpen;return(0,a.createElement)(u.Button,{className:"button",onClick:t,"aria-expanded":n,"aria-live":"polite"},o)},renderContent:function(){return(0,a.createElement)(u.DateTimePicker,{key:"event-countdown-picker",onChange:function(e){return n({eventDate:e})},currentDate:t.eventDate})}})))},v=function(e){var t=e.attributes,n=e.className,r="&nbsp;",i="&nbsp;",o="&nbsp;",u="&nbsp;";if(e.isEditView){r=i=o=u=0;var c=new Date(t.eventDate).getTime()-Date.now();if(c>0){var s=Math.round(c/1e3);s-=24*(r=Math.floor(s/86400))*60*60,s-=60*(i=Math.floor(s/3600))*60,u=s-=60*(o=Math.floor(s/60))}}return(0,a.createElement)("div",{className:n},(0,a.createElement)("div",{className:"event-countdown__date"},t.eventDate),(0,a.createElement)("div",{className:"event-countdown__counter"},(0,a.createElement)("p",null,(0,a.createElement)("strong",{className:"event-countdown__day"},r)," ",(0,l._x)("days","Countdown days remaining","full-site-editing")),(0,a.createElement)("p",null,(0,a.createElement)("span",null,(0,a.createElement)("strong",{className:"event-countdown__hour"},i)," ",(0,l._x)("hours","Countdown hours remaining","full-site-editing")),(0,a.createElement)("span",null,(0,a.createElement)("strong",{className:"event-countdown__minute"},o)," ",(0,l._x)("minutes","Countdown minutes remaining","full-site-editing")),(0,a.createElement)("span",null,(0,a.createElement)("strong",{className:"event-countdown__second"},u)," ",(0,l._x)("seconds","Countdown seconds remaining","full-site-editing"))),(0,a.createElement)("p",null,(0,l.__)("until","full-site-editing"))),(0,a.createElement)("div",{className:"event-countdown__event-title"},(0,a.createElement)("p",null,t.eventTitle)))};(0,o.registerBlockType)("jetpack/event-countdown",{title:(0,l.__)("Event Countdown","full-site-editing"),description:(0,l.__)("Count down to your favorite next thing, and celebrate with fireworks when the time is right!","full-site-editing"),icon:c,category:"widgets",supports:{align:["wide","full"]},example:{attributes:{eventDate:"2024-04-08T11:38:32",eventTitle:"Total Solar Eclipse"}},attributes:{eventTitle:{type:"string",source:"text",selector:".event-countdown__event-title"},eventDate:{type:"string"}},edit:function(e){return e.isSelected?d(e):v(i()(i()({},e),{},{isEditView:!0}))},save:v})}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(988)}());
     1!function(e,t){for(var n in t)e[n]=t[n];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={260:function(e){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}},417:function(e,t,n){var r=n(260);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},)}());
  • full-site-editing/trunk/full-site-editing-plugin.php

    r2463991 r2464442  
    33 * Plugin Name: WordPress.com Editing Toolkit
    44 * Description: Enhances your page creation workflow within the Block Editor.
    5  * Version: 2.14
     5 * Version: 2.1
    66 * Author: Automattic
    77 * Author URI: https://automattic.com/wordpress-plugins/
     
    3636 * @var string
    3737 */
    38 define( 'PLUGIN_VERSION', '2.14' );
     38define( 'PLUGIN_VERSION', '2.1' );
    3939
    4040// Always include these helper files for dotcom FSE.
     
    142142
    143143/**
    144  * Sigh: load_editor_site_launch
     144 * aunch
    145145 */
    146146function load_editor_site_launch() {
     
    148148}
    149149add_action( 'plugins_loaded', __NAMESPACE__ . '\load_editor_site_launch' );
    150 
    151 /**
    152  * Sigh: load_editor_gutenboarding_launch
    153  */
    154 function load_editor_gutenboarding_launch() {
    155     require_once __DIR__ . '/editor-gutenboarding-launch/index.php';
    156 }
    157 add_action( 'plugins_loaded', __NAMESPACE__ . '\load_editor_gutenboarding_launch' );
    158150
    159151/**
  • full-site-editing/trunk/global-styles/dist/global-styles.asset.php

    r2460738 r2464442  
    1 <?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-polyfill'), 'version' => '07bae70eb13a5355b7da35bc24d7e4d9');
     1<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-polyfill'), 'version' => '9');
  • full-site-editing/trunk/global-styles/dist/global-styles.js

    r2460738 r2464442  
    1 !function(e,t){for(var n in t)e[n]=t[n];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={260:function(e){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}},417:function(e,t,n){var r=n(260);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},779:function(e,t){var n;
     1!function(e,t){for(var n in t)e[n]=t[n];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={260:function(e){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,n){var r=n(260);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},779:function(e,t){var n;
    22/*!
    33  Copyright (c) 2017 Jed Watson.
    44  Licensed under the MIT License (MIT), see
    55  http://jedwatson.github.io/classnames
    6 */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)&&n.length){var i=o.apply(null,n);i&&e.push(i)}else if("object"===a)for(var l in n)r.call(n,l)&&n[l]&&e.push(l)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},709:function(e,t,n){"use strict";n.r(t);var r,o,a,i,l=window.wp.plugins,s=window.wp.data,u=window.wp.compose,c=n(417),p=n.n(c),f=window.wp.apiFetch,d=n.n(f),g={},m=!1,O={publishOptions:regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{type:"IO_PUBLISH_OPTIONS",options:t};case 2:return e.abrupt("return",{type:"PUBLISH_OPTIONS",options:t});case 3:case"end":return e.stop()}}),e)})),updateOptions:function(e){return{type:"UPDATE_OPTIONS",options:e}},fetchOptions:function(){return{type:"IO_FETCH_OPTIONS"}},resetLocalChanges:function(){return{type:"RESET_OPTIONS",options:g}}},h=window.wp.domReady,_=n.n(h),b=window.lodash,y=n(260),v=n.n(y),E=window.wp.element,w=window.wp.editPost,P=window.wp.components,S=window.wp.i18n,T=window.wp.keycodes,N=n(779),B=n.n(N),C=function(e){var t=e.unsupportedFeature;return(0,E.createElement)("p",null,(0,S.sprintf)((0,S.__)("Your active theme doesn't support %s.","full-site-editing"),t))},H=function(e){var t=e.fontPairings,n=e.fontBase,r=e.fontHeadings,o=e.update;return(0,E.createElement)(E.Fragment,null,(0,E.createElement)("h3",null,(0,S.__)("Font Pairings","full-site-editing")),t&&r&&n?(0,E.createElement)("div",{className:"style-preview__font-options"},(0,E.createElement)("div",{className:"style-preview__font-options-desktop"},t.map((function(e){var t=e.label,a=e.headings,i=e.base,l=a===r&&i===n;return(0,E.createElement)(P.Button,{className:B()("style-preview__font-option",{"is-selected":l}),onClick:function(){return o({headings:a,base:i})},onKeyDown:function(e){return e.keyCode===T.ENTER?o({headings:a,base:i}):null},key:t},(0,E.createElement)("span",{className:"style-preview__font-option-contents"},(0,E.createElement)("span",{style:{fontFamily:a,fontWeight:700}},a)," / ",(0,E.createElement)("span",{style:{fontFamily:i}},i)))})))):(0,E.createElement)(C,{unsupportedFeature:(0,S.__)("font pairings","full-site-editing")}))},I=function(e){var t=e.fontBase,n=e.fontBaseDefault,r=e.fontHeadings,o=e.fontHeadingsDefault,a=e.fontBaseOptions,i=e.fontHeadingsOptions,l=e.updateBaseFont,s=e.updateHeadingsFont;return a&&i?(0,E.createElement)(E.Fragment,null,(0,E.createElement)(P.SelectControl,{label:(0,S.__)("Heading Font","full-site-editing"),value:r,options:i,onChange:function(e){return s(e)},style:{fontFamily:"unset"!==r?r:o}}),(0,E.createElement)(P.SelectControl,{label:(0,S.__)("Base Font","full-site-editing"),value:t,options:a,onChange:function(e){return l(e)},style:{fontFamily:"unset"!==t?t:n}}),(0,E.createElement)("hr",null)):(0,E.createElement)(C,{unsupportedFeature:(0,S.__)("custom font selection","full-site-editing")})},j=function(){return(0,E.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,E.createElement)(P.Path,{d:"M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-4.05 16.5l-1.14-3H9.17l-1.12 3H5.96l5.11-13h1.86l5.11 13h-2.09z"}))},F="font_base",L="font_headings",A="ANY_PROPERTY",D=function(e){if("object"==typeof e){var t=e.label,n=e.value,r=e.prop;return{label:t,value:n,prop:void 0===r?A:r}}return{label:e,value:e,prop:A}},x=function(e){return null!==e.value&&null!==e.label},k=function(e,t){return e?e.map(D).filter(x).filter(function(e){return function(t){return t.prop===A||t.prop===e}}(t)):[]},R=function(e){var t=e.hasLocalChanges,n=e.resetAction,r=e.publishAction,o=e.className,a=void 0===o?null:o;return(0,E.createElement)("div",{className:a},(0,E.createElement)(P.Button,{disabled:!t,isDefault:!0,onClick:n},(0,S.__)("Reset","full-site-editing")),(0,E.createElement)(P.Button,{className:"global-styles-sidebar__publish-button",disabled:!t,isPrimary:!0,onClick:r},(0,S.__)("Publish","full-site-editing")))},M=JETPACK_GLOBAL_STYLES_EDITOR_CONSTANTS,U=M.PLUGIN_NAME,Y=M.STORE_NAME,G=M.REST_PATH;r=Y,o=G,(0,s.registerStore)(r,{reducer:function(e,t){switch(t.type){case"UPDATE_OPTIONS":case"RESET_OPTIONS":case"PUBLISH_OPTIONS":return p()(p()({},e),t.options)}return e},actions:O,selectors:{getOption:function(e,t){return e?e[t]:void 0},hasLocalChanges:function(e){return!!e&&Object.keys(g).some((function(t){return g[t]!==e[t]}))}},resolvers:{getOption:regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!m){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,m=!0,e.next=6,O.fetchOptions();case 6:n=e.sent,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),n={};case 12:return g=n,e.abrupt("return",{type:"UPDATE_OPTIONS",options:n});case 14:case"end":return e.stop()}}),e,null,[[2,9]])}))},controls:{IO_FETCH_OPTIONS:function(){return d()({path:o})},IO_PUBLISH_OPTIONS:function(e){var t=e.options;return g=t,d()({path:o,method:"POST",data:p()({},t)})}}}),a=[F,L],i=(0,s.select)(Y).getOption,_()((function(){var e={},t={},n={};a.forEach((function(e){n[e]="--".concat(e.replace("_","-"))}));var r=null;(0,s.subscribe)((function(){var o=(0,s.select)("core/editor").__unstableIsEditorReady;if(!(o&&!1===o()||(r||(r=document.createElement("style"),document.body.appendChild(r)),a.forEach((function(t){e[t]=i(t)})),(0,b.isEmpty)(e)||(0,b.isEqual)(e,t)))){t=p()({},e);var l="";Object.keys(e).forEach((function(t){l+="".concat(n[t],":").concat(e[t],";")})),r.textContent=".edit-post-visual-editor.editor-styles-wrapper{".concat(l,"}")}}))})),(0,l.registerPlugin)(U,{render:(0,u.compose)((0,s.withSelect)((function(e){return{siteName:e(Y).getOption("blogname"),fontHeadings:e(Y).getOption(L),fontHeadingsDefault:e(Y).getOption("font_headings_default"),fontBase:e(Y).getOption(F),fontBaseDefault:e(Y).getOption("font_base_default"),fontPairings:e(Y).getOption("font_pairings"),fontOptions:e(Y).getOption("font_options"),hasLocalChanges:e(Y).hasLocalChanges()}})),(0,s.withDispatch)((function(e){return{updateOptions:e(Y).updateOptions,publishOptions:e(Y).publishOptions,resetLocalChanges:e(Y).resetLocalChanges}})))((function(e){var t=e.fontHeadings,n=e.fontHeadingsDefault,r=e.fontBase,o=e.fontBaseDefault,a=e.fontPairings,i=e.fontOptions,l=e.siteName,s=e.publishOptions,u=e.updateOptions,c=e.hasLocalChanges,p=e.resetLocalChanges,f=function(){var e;return s((e={},v()(e,F,r),v()(e,L,t),e))};return(0,E.createElement)(E.Fragment,null,(0,E.createElement)(w.PluginSidebarMoreMenuItem,{icon:(0,E.createElement)(j,null),target:"global-styles"},(0,S.__)("Global Styles","full-site-editing")),(0,E.createElement)(w.PluginSidebar,{icon:(0,E.createElement)(j,null),name:"global-styles",title:(0,S.__)("Global Styles","full-site-editing"),className:"global-styles-sidebar"},(0,E.createElement)(P.PanelBody,null,(0,E.createElement)("p",null,(0,S.sprintf)((0,S.__)("You are customizing %s.","full-site-editing"),l)),(0,E.createElement)("p",null,(0,S.__)("Any change you make here will apply to the entire website.","full-site-editing")),c?(0,E.createElement)("div",null,(0,E.createElement)("p",null,(0,E.createElement)("em",null,(0,S.__)("You have unsaved changes.","full-site-editing"))),(0,E.createElement)(R,{hasLocalChanges:c,publishAction:f,resetAction:p})):null),(0,E.createElement)(P.PanelBody,{title:(0,S.__)("Font Selection","full-site-editing")},(0,E.createElement)(I,{fontBase:r,fontBaseDefault:o,fontHeadings:t,fontHeadingsDefault:n,fontBaseOptions:k(i,F),fontHeadingsOptions:k(i,L),updateBaseFont:function(e){return u(v()({},F,e))},updateHeadingsFont:function(e){return u(v()({},L,e))}}),(0,E.createElement)(H,{fontHeadings:t,fontBase:r,fontPairings:a,update:function(e){var t,n=e.headings,r=e.base;return u((t={},v()(t,L,n),v()(t,F,r),t))}})),(0,E.createElement)(P.PanelBody,null,c?(0,E.createElement)("p",null,(0,E.createElement)("em",null,(0,S.__)("You have unsaved changes.","full-site-editing"))):null,(0,E.createElement)(R,{hasLocalChanges:c,publishAction:f,resetAction:p,className:"global-styles-sidebar__panel-action-buttons"}))))}))})}},t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(709)}());
     6*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var )}());
  • full-site-editing/trunk/jetpack-timeline/dist/jetpack-timeline.asset.php

    r2460738 r2464442  
    1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '6341783e67ebfd3ea9f9dfb92c897f2f');
     1<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '');
  • full-site-editing/trunk/jetpack-timeline/dist/jetpack-timeline.js

    r2460738 r2464442  
    1 !function(e,t){for(var n in t)e[n]=t[n];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={527:function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},t.apply(this,arguments)}e.exports=t},779:function(e,t){var n;
     1!function(e,t){for(var n in t)e[n]=t[n];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={527:function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},t.apply(this,arguments)}e.exports=t},779:function(e,t){var n;
    22/*!
    33  Copyright (c) 2017 Jed Watson.
    44  Licensed under the MIT License (MIT), see
    55  http://jedwatson.github.io/classnames
    6 */!function(){"use strict";var i={}.hasOwnProperty;function l(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)&&n.length){var a=l.apply(null,n);a&&e.push(a)}else if("object"===r)for(var o in n)i.call(n,o)&&n[o]&&e.push(o)}}return e.join(" ")}e.exports?(l.default=l,e.exports=l):void 0===(n=function(){return l}.apply(t,[]))||(e.exports=n)}()},602:function(e,t,n){"use strict";n.r(t);var i=n(527),l=n.n(i),r=window.wp.element,a=window.wp.blockEditor,o=window.wp.blocks,c=window.wp.components,s=window.wp.data,u=window.wp.i18n,m=n(779),g=n.n(m),d=function(){return(0,r.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(c.Path,{d:"M15 13v1.2h-2.2V6h-1.6v2.2H9V7H4v4h5V9.8h2.2V18h1.6v-2.2H15V17h5v-4z"}))},p=function(e){var t=e.onClick;return(0,r.createElement)("button",{className:"block-editor-inserter__toggle timeline-item-appender components-button",type:"button",style:{zIndex:99999},onClick:t},(0,r.createElement)("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",focusable:"false"},(0,r.createElement)("path",{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}))," ",(0,u.__)("Add entry","full-site-editing"))};var f=window.wp.primitives,v=(0,r.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(f.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),b=(0,r.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(f.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"}));function h(e){var t=e.alignment,n=e.clientId,i=e.toggleAlignment;return!1===(0,s.useSelect)((function(e){var t,i=e("core/block-editor").getBlockParents(n),l=e("core/block-editor").getBlock(i[0]);return null==l||null===(t=l.attributes)||void 0===t?void 0:t.isAlternating}))?null:(0,r.createElement)(a.BlockControls,null,(0,r.createElement)(c.ToolbarGroup,null,(0,r.createElement)(c.ToolbarButton,{onClick:function(){return i("left")},isActive:"left"===t,icon:v,title:(0,u.__)("Left","full-site-editing")}),(0,r.createElement)(c.ToolbarButton,{onClick:function(){return i("right")},isActive:"right"===t,icon:b,title:(0,u.__)("Right","full-site-editing")})))}(0,o.registerBlockType)("jetpack/timeline",{title:(0,u.__)("Timeline","full-site-editing"),description:(0,u.__)("Create a timeline of events.","full-site-editing"),icon:d,category:"widgets",example:{innerBlocks:[{name:"jetpack/timeline-item",innerBlocks:[{name:"core/heading",attributes:{content:(0,u.__)("Spring","full-site-editing")}}]},{name:"jetpack/timeline-item",innerBlocks:[{name:"core/heading",attributes:{content:(0,u.__)("Summer","full-site-editing")}}]},{name:"jetpack/timeline-item",innerBlocks:[{name:"core/heading",attributes:{content:(0,u.__)("Fall","full-site-editing")}}]},{name:"jetpack/timeline-item",innerBlocks:[{name:"core/heading",attributes:{content:(0,u.__)("Winter","full-site-editing")}}]}]},attributes:{isAlternating:{type:"attribute",selector:"ul",attribute:"data-is-alternating"}},edit:function(e){var t=e.clientId,n=e.attributes,i=e.setAttributes,l=n.isAlternating,m=function(){var e=(0,o.createBlock)("jetpack/timeline-item");(0,s.dispatch)("core/block-editor").insertBlock(e,void 0,t)},d=g()("wp-block-jetpack-timeline",{"is-alternating":l});return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(c.PanelBody,{title:(0,u.__)("Timeline settings","full-site-editing")},(0,r.createElement)(c.ToggleControl,{label:(0,u.__)("Alternate items","full-site-editing"),onChange:function(){return i({isAlternating:!l})},checked:l}))),(0,r.createElement)("ul",{className:d},(0,r.createElement)(a.InnerBlocks,{allowedBlocks:["jetpack/timeline-item"],template:[["jetpack/timeline-item"]],renderAppender:function(){return(0,r.createElement)(p,{onClick:m})}})))},save:function(e){var t=e.attributes.isAlternating,n=g()("wp-block-jetpack-timeline",{"is-alternating":t}),i="boolean"==typeof t?{"data-is-alternating":t}:null;return(0,r.createElement)("ul",l()({className:n},i),(0,r.createElement)(a.InnerBlocks.Content,null))}}),(0,o.registerBlockType)("jetpack/timeline-item",{title:(0,u.__)("Timeline Entry","full-site-editing"),description:(0,u.__)("An entry on the timeline","full-site-editing"),icon:d,category:"widgets",parent:["jetpack/timeline"],edit:function(e){var t=e.attributes,n=e.clientId,i=e.setAttributes,l={backgroundColor:t.background},o={borderColor:t.background},c=g()("wp-block-jetpack-timeline-item",{"is-left":"left"===t.alignment,"is-right":"right"===t.alignment});return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(h,{alignment:t.alignment,clientId:n,toggleAlignment:function(e){var n=e===t.alignment?"auto":e;i({alignment:n})}}),(0,r.createElement)("li",{style:l,className:c},(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(a.PanelColorSettings,{title:(0,u.__)("Color Settings","full-site-editing"),colorSettings:[{value:t.background,onChange:function(e){return i({background:e})},label:(0,u.__)("Background Color","full-site-editing")}]})),(0,r.createElement)("div",{className:"timeline-item"},(0,r.createElement)("div",{className:"timeline-item__bubble",style:o}),(0,r.createElement)("div",{className:"timeline-item__dot",style:l}),(0,r.createElement)(a.InnerBlocks,{template:[["core/paragraph"]]}))))},save:function(e){var t=e.attributes,n=g()({"is-left":"left"===t.alignment,"is-right":"right"===t.alignment}),i={backgroundColor:t.background},l={borderColor:t.background};return(0,r.createElement)("li",{style:i,className:n},(0,r.createElement)("div",{className:"timeline-item"},(0,r.createElement)("div",{className:"timeline-item__bubble",style:l}),(0,r.createElement)("div",{className:"timeline-item__dot",style:i}),(0,r.createElement)(a.InnerBlocks.Content,null)))},attributes:{alignment:{type:"string",default:"auto"},background:{type:"string",default:"#eeeeee"}}})}},t={};function n(i){if(t[i])return t[i].exports;var l=t[i]={exports:{}};return e[i](l,l.exports,n),l.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(602)}());
     6*/!function(){"use strict";var i={}.hasOwnProperty;function )}());
  • full-site-editing/trunk/newspack-blocks/dist/blog-posts-block-editor.asset.php

    r2460738 r2464442  
    1 <?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'f1ceeb4783dc14d5a020b7f8f068b545');
     1<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '');
  • full-site-editing/trunk/newspack-blocks/dist/blog-posts-block-editor.js

    r2460738 r2464442  
    1 !function(e,t){for(var n in t)e[n]=t[n];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={965:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},232:function(e,t,n){var r=n(965);e.exports=function(e){if(Array.isArray(e))return r(e)}},111:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},85:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},198:function(e){function t(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,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}},564:function(e,t,n){var r=n(588),o=n(549),i=n(983);e.exports=function(e){var t=o();return function(){var n,o=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return i(this,n)}}},260:function(e){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}},527:function(e){function t(){return e.exports=t=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},t.apply(this,arguments)}e.exports=t},588:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(n)}e.exports=t},270:function(e,t,n){var r=n(742);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)}},549:function(e){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},557:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},359:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},417:function(e,t,n){var r=n(260);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},983:function(e,t,n){var r=n(921),o=n(111);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},742:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(n,r)}e.exports=t},182:function(e,t,n){var r=n(232),o=n(557),i=n(487),a=n(359);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},921:function(e){function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t},487:function(e,t,n){var r=n(965);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},779:function(e,t){var n;
     1!function(e,t){for(var n in t)e[n]=t[n];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={779:function(e,t){var n;
    22/*!
    33  Copyright (c) 2017 Jed Watson.
    44  Licensed under the MIT License (MIT), see
    55  http://jedwatson.github.io/classnames
    6 */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)&&n.length){var a=o.apply(null,n);a&&e.push(a)}else if("object"===i)for(var c in n)r.call(n,c)&&n[c]&&e.push(c)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},288:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}}),e=n.hmd(e);var r=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window||"undefined"!=typeof window?window:e)},963:function(e,t,n){"use strict";n.r(t);var r=n(417),o=n.n(r),i=window.wp.blocks,a=window.wp.i18n,c=window.wp.hooks,s=window.wp.element,u=window.wp.components,l=n(85),f=n.n(l),p=n(198),d=n.n(p),h=n(111),g=n.n(h),m=n(270),v=n.n(m),y=n(564),w=n.n(y),b=n(260),_=n.n(b),E=n(527),k=n.n(E),S=window.wp.apiFetch,x=n.n(S),C=window.wp.url,P=window.wp.htmlEntities,O=n(182),A=n.n(O),T=window.lodash,I=function(e){v()(n,e);var t=w()(n);function n(e){var r;return f()(this,n),r=t.call(this,e),_()(g()(r),"isFetchingInfoOnLoad",(function(){var e=r.props,t=e.tokens,n=e.fetchSavedInfo;return Boolean(t.length&&n)})),r.state={suggestions:[],validValues:{},loading:r.isFetchingInfoOnLoad()},r.debouncedUpdateSuggestions=(0,T.debounce)(r.updateSuggestions,500),r}return d()(n,[{key:"componentDidMount",value:function(){var e=this;if(this.isFetchingInfoOnLoad()){var t=this.props,n=t.tokens;(0,t.fetchSavedInfo)(n).then((function(t){var n=e.state.validValues;t.forEach((function(e){n[e.value]=e.label})),e.setState({validValues:n,loading:!1})}))}}},{key:"componentWillUnmount",value:function(){delete this.suggestionsRequest,this.debouncedUpdateSuggestions.cancel()}},{key:"getLabelsForValues",value:function(e){var t=this.state.validValues;return e.reduce((function(e,n){return t[n]?[].concat(A()(e),[t[n]]):e}),[])}},{key:"getValuesForLabels",value:function(e){var t=this.state.validValues;return e.map((function(e){return Object.keys(t).find((function(n){return t[n]===e}))}))}},{key:"updateSuggestions",value:function(e){var t=this,n=this.props.fetchSuggestions;n&&this.setState({loading:!0},(function(){var r=n(e);r.then((function(e){if(t.suggestionsRequest===r){var n=t.state.validValues,o=[];e.forEach((function(e){o.push(e.label),n[e.value]=e.label})),t.setState({suggestions:o,validValues:n,loading:!1})}})).catch((function(){t.suggestionsRequest===r&&t.setState({loading:!1})})),t.suggestionsRequest=r}))}},{key:"handleOnChange",value:function(e){(0,this.props.onChange)(this.getValuesForLabels(e))}},{key:"getTokens",value:function(){var e=this.props.tokens;return this.getLabelsForValues(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.help,r=t.label,o=void 0===r?"":r,i=this.state,a=i.suggestions,c=i.loading;return(0,s.createElement)("div",{className:"autocomplete-tokenfield"},(0,s.createElement)(u.FormTokenField,{value:this.getTokens(),suggestions:a,onChange:function(t){return e.handleOnChange(t)},onInputChange:function(t){return e.debouncedUpdateSuggestions(t)},label:o}),c&&(0,s.createElement)(u.Spinner,null),n&&(0,s.createElement)("p",{className:"autocomplete-tokenfield__help"},n))}}]),n}(s.Component),j=function(e){v()(n,e);var t=w()(n);function n(){var e;f()(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),_()(g()(e),"state",{showAdvancedFilters:!1}),_()(g()(e),"fetchPostSuggestions",(function(e){var t=window&&window.newspack_blocks_data&&window.newspack_blocks_data._experimental?"/newspack-blocks/v1/specific-posts":"/wp/v2/search";return x()({path:(0,C.addQueryArgs)(t,{search:e,per_page:20,_fields:"id,title",type:"post"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,P.decodeEntities)(e.title)||(0,a.__)("(no title)","full-site-editing")}}))}))})),_()(g()(e),"fetchSavedPosts",(function(e){return x()({path:(0,C.addQueryArgs)("/wp/v2/posts",{per_page:100,include:e.join(","),_fields:"id,title"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,P.decodeEntities)(e.title.rendered)||(0,a.__)("(no title)","full-site-editing")}}))}))})),_()(g()(e),"fetchAuthorSuggestions",(function(e){return x()({path:(0,C.addQueryArgs)("/wp/v2/users",{search:e,per_page:20,_fields:"id,name"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,P.decodeEntities)(e.name)||(0,a.__)("(no name)","full-site-editing")}}))}))})),_()(g()(e),"fetchSavedAuthors",(function(e){return x()({path:(0,C.addQueryArgs)("/wp/v2/users",{per_page:100,include:e.join(","),_fields:"id,name"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,P.decodeEntities)(e.name)||(0,a.__)("(no name)","full-site-editing")}}))}))})),_()(g()(e),"fetchCategorySuggestions",(function(e){return x()({path:(0,C.addQueryArgs)("/wp/v2/categories",{search:e,per_page:20,_fields:"id,name",orderby:"count",order:"desc"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,P.decodeEntities)(e.name)||(0,a.__)("(no title)","full-site-editing")}}))}))})),_()(g()(e),"fetchSavedCategories",(function(e){return x()({path:(0,C.addQueryArgs)("/wp/v2/categories",{per_page:100,_fields:"id,name",include:e.join(",")})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,P.decodeEntities)(e.name)||(0,a.__)("(no title)","full-site-editing")}}))}))})),_()(g()(e),"fetchTagSuggestions",(function(e){return x()({path:(0,C.addQueryArgs)("/wp/v2/tags",{search:e,per_page:20,_fields:"id,name",orderby:"count",order:"desc"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,P.decodeEntities)(e.name)||(0,a.__)("(no title)","full-site-editing")}}))}))})),_()(g()(e),"fetchSavedTags",(function(e){return x()({path:(0,C.addQueryArgs)("/wp/v2/tags",{per_page:100,_fields:"id,name",include:e.join(",")})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,P.decodeEntities)(e.name)||(0,a.__)("(no title)","full-site-editing")}}))}))})),_()(g()(e),"render",(function(){var t=e.props,n=t.specificMode,r=t.onSpecificModeChange,o=t.specificPosts,i=t.onSpecificPostsChange,c=t.authors,l=t.onAuthorsChange,f=t.categories,p=t.onCategoriesChange,d=t.tags,h=t.onTagsChange,g=t.tagExclusions,m=t.onTagExclusionsChange,v=t.enableSpecific,y=e.state.showAdvancedFilters;return[v&&(0,s.createElement)(u.ToggleControl,{key:"specificMode",checked:n,onChange:r,label:(0,a.__)("Choose Specific Posts","full-site-editing")}),n&&(0,s.createElement)(I,{key:"posts",tokens:o||[],onChange:i,fetchSuggestions:e.fetchPostSuggestions,fetchSavedInfo:e.fetchSavedPosts,label:(0,a.__)("Posts","full-site-editing"),help:(0,a.__)("Begin typing post title, click autocomplete result to select.","full-site-editing")}),!n&&(0,s.createElement)(u.QueryControls,k()({key:"queryControls"},e.props)),!n&&l&&(0,s.createElement)(I,{key:"authors",tokens:c||[],onChange:l,fetchSuggestions:e.fetchAuthorSuggestions,fetchSavedInfo:e.fetchSavedAuthors,label:(0,a.__)("Authors","full-site-editing")}),!n&&p&&(0,s.createElement)(I,{key:"categories",tokens:f||[],onChange:p,fetchSuggestions:e.fetchCategorySuggestions,fetchSavedInfo:e.fetchSavedCategories,label:(0,a.__)("Categories","full-site-editing")}),!n&&h&&(0,s.createElement)(I,{key:"tags",tokens:d||[],onChange:h,fetchSuggestions:e.fetchTagSuggestions,fetchSavedInfo:e.fetchSavedTags,label:(0,a.__)("Tags","full-site-editing")}),!n&&m&&(0,s.createElement)("p",{key:"toggle-advanced-filters"},(0,s.createElement)(u.Button,{isLink:!0,onClick:function(){return e.setState({showAdvancedFilters:!y})}},y?(0,a.__)("Hide Advanced Filters","full-site-editing"):(0,a.__)("Show Advanced Filters","full-site-editing"))),!n&&m&&y&&(0,s.createElement)(I,{key:"tag-exclusion",tokens:g||[],onChange:m,fetchSuggestions:e.fetchTagSuggestions,fetchSavedInfo:e.fetchSavedTags,label:(0,a.__)("Excluded Tags","full-site-editing")})]})),e}return n}(s.Component);j.defaultProps={enableSpecific:!0,specificPosts:[],authors:[],categories:[],tags:[],tagExclusions:[]};var R=j,N=n(288),L=function(){return Math.random().toString(36).substring(7).split("").join(".")},B={INIT:"@@redux/INIT"+L(),REPLACE:"@@redux/REPLACE"+L(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+L()}};function M(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(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}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(n,!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function U(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var z=function(e){return"@@redux-saga/"+e},V=z("CANCEL_PROMISE"),q=z("CHANNEL_END"),Q=z("IO"),G=z("MATCH"),K=z("MULTICAST"),W=z("SAGA_ACTION"),Y=z("SELF_CANCELLATION"),J=z("TASK"),X=z("TASK_CANCEL"),Z=z("TERMINATE"),$=z("LOCATION"),ee=function(e){return null==e},te=function(e){return null!=e},ne=function(e){return"function"==typeof e},re=function(e){return"string"==typeof e},oe=Array.isArray,ie=function(e){return e&&ne(e.then)},ae=function(e){return e&&ne(e.next)&&ne(e.throw)},ce=function e(t){return t&&(re(t)||le(t)||ne(t)||oe(t)&&t.every(e))},se=function(e){return e&&ne(e.take)&&ne(e.close)},ue=function(e){return ne(e)&&e.hasOwnProperty("toString")},le=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype};function fe(){return(fe=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}).apply(this,arguments)}var pe=function(e,t){var n;void 0===t&&(t=!0);var r=new Promise((function(r){n=setTimeout(r,e,t)}));return r[V]=function(){clearTimeout(n)},r},de=function(e){return function(){return e}}(!0),he=function(){};var ge=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var me=function(e,t){fe(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function ve(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}var ye=function(e){throw e},we=function(e){return{value:e,done:!0}};function be(e,t,n){void 0===t&&(t=ye),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:we,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function _e(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var Ee=function(e){return Array.apply(null,new Array(e))},ke=function(e){return function(t){return e(Object.defineProperty(t,W,{value:!0}))}},Se=function(e){return e===Z},xe=function(e){return e===X},Ce=function(e){return Se(e)||xe(e)};function Pe(e,t){var n=Object.keys(e),r=n.length;var o,i=0,a=oe(e)?Ee(r):{},c={};return n.forEach((function(e){var n=function(n,c){o||(c||Ce(n)?(t.cancel(),t(n,c)):(a[e]=n,++i===r&&(o=!0,t(a))))};n.cancel=he,c[e]=n})),t.cancel=function(){o||(o=!0,n.forEach((function(e){return c[e].cancel()})))},c}function Oe(e){return{name:e.name||"anonymous",location:Ae(e)}}function Ae(e){return e[$]}function Te(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,i=0,a=function(t){n[o]=t,o=(o+1)%e,r++},c=function(){if(0!=r){var t=n[i];return n[i]=null,r--,i=(i+1)%e,t}},s=function(){for(var e=[];r;)e.push(c());return e};return{isEmpty:function(){return 0==r},put:function(c){var u;if(r<e)a(c);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=c,i=o=(o+1)%e;break;case 4:u=2*e,n=s(),r=n.length,o=n.length,i=0,n.length=u,e=u,a(c)}},take:c,flush:s}}var Ie=function(e){return Te(e,4)},je="TAKE",Re="PUT",Ne="CALL",Le="FORK",Be="CANCEL",Me=function(e,t){var n;return(n={})[Q]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function De(e,t){return void 0===e&&(e="*"),ce(e)?Me(je,{pattern:e}):se(n=e)&&n[K]&&te(t)&&ce(t)?Me(je,{channel:e,pattern:t}):se(e)?Me(je,{channel:e}):void 0;var n}function He(e,t){return ee(t)&&(t=e,e=void 0),Me(Re,{channel:e,action:t})}function Fe(e,t){var n,r=null;return ne(e)?n=e:(oe(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&re(n)&&ne(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function Ue(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Me(Ne,Fe(e,n))}function ze(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Me(Le,Fe(e,n))}function Ve(e){return void 0===e&&(e=Y),Me(Be,e)}var qe=Ue.bind(null,pe),Qe=function(e){return{done:!0,value:e}},Ge={};function Ke(e){return se(e)?"channel":ue(e)?String(e):ne(e)?e.name:String(e)}function We(e,t,n){var r,o,i,a=t;function c(t,n){if(a===Ge)return Qe(t);if(n&&!o)throw a=Ge,n;r&&r(t);var c=n?e[o](n):e[a]();return a=c.nextState,i=c.effect,r=c.stateUpdater,o=c.errorState,a===Ge?Qe(t):i}return be(c,(function(e){return c(null,e)}),n)}function Ye(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,a,c={done:!1,value:De(e)},s=function(e){return{done:!1,value:ze.apply(void 0,[t].concat(r,[e]))}},u=function(e){return{done:!1,value:Ve(e)}},l=function(e){return i=e},f=function(e){return a=e};return We({q1:function(){return{nextState:"q2",effect:c,stateUpdater:f}},q2:function(){return i?{nextState:"q3",effect:u(i)}:{nextState:"q1",effect:s(a),stateUpdater:l}},q3:function(){return{nextState:"q1",effect:s(a),stateUpdater:l}}},"q1","takeLatest("+Ke(e)+", "+t.name+")")}function Je(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return ze.apply(void 0,[Ye,e,t].concat(r))}function Xe(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}var Ze=Xe,$e=[],et=0;function tt(e){try{ot(),e()}finally{it()}}function nt(e){$e.push(e),et||(ot(),at())}function rt(e){try{return ot(),e()}finally{at()}}function ot(){et++}function it(){et--}function at(){var e;for(it();!et&&void 0!==(e=$e.shift());)tt(e)}var ct=function(e){return function(t){return e.some((function(e){return pt(e)(t)}))}},st=function(e){return function(t){return e(t)}},ut=function(e){return function(t){return t.type===String(e)}},lt=function(e){return function(t){return t.type===e}},ft=function(){return de};function pt(e){var t="*"===e?ft:re(e)?ut:oe(e)?ct:ue(e)?ut:ne(e)?st:le(e)?lt:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var dt={type:q},ht=function(e){return e&&e.type===q};function gt(e){void 0===e&&(e=Ie());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(dt):e.isEmpty()?(n.push(r),r.cancel=function(){ve(n,r)}):r(e.take())},put:function(r){if(!t){if(0===n.length)return e.put(r);n.shift()(r)}},flush:function(n){t&&e.isEmpty()?n(dt):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var r=0,o=e.length;r<o;r++){(0,e[r])(dt)}}}}}function mt(){var e,t,n,r,o,i,a=(t=!1,r=n=[],o=function(){r===n&&(r=n.slice())},i=function(){t=!0;var e=n=r;r=[],e.forEach((function(e){e(dt)}))},(e={})[K]=!0,e.put=function(e){if(!t)if(ht(e))i();else for(var o=n=r,a=0,c=o.length;a<c;a++){var s=o[a];s[G](e)&&(s.cancel(),s(e))}},e.take=function(e,n){var i,a;void 0===n&&(n=ft),t?e(dt):(e[G]=n,o(),r.push(e),e.cancel=(i=function(){o(),ve(r,e)},a=!1,function(){a||(a=!0,i())}))},e.close=i,e),c=a.put;return a.put=function(e){e[W]?c(e):nt((function(){c(e)}))},a}function vt(e,t){var n=e[V];ne(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var yt,wt=0,bt=function(){return++wt};function _t(e){e.isRunning()&&e.cancel()}var Et=((yt={}).TAKE=function(e,t,n){var r=t.channel,o=void 0===r?e.channel:r,i=t.pattern,a=t.maybe,c=function(e){e instanceof Error?n(e,!0):!ht(e)||a?n(e):n(Z)};try{o.take(c,te(i)?pt(i):null)}catch(s){return void n(s,!0)}n.cancel=c.cancel},yt.PUT=function(e,t,n){var r=t.channel,o=t.action,i=t.resolve;nt((function(){var t;try{t=(r?r.put:e.dispatch)(o)}catch(a){return void n(a,!0)}i&&ie(t)?vt(t,n):n(t)}))},yt.ALL=function(e,t,n,r){var o=r.digestEffect,i=wt,a=Object.keys(t);if(0!==a.length){var c=Pe(t,n);a.forEach((function(e){o(t[e],i,c[e],e)}))}else n(oe(t)?[]:{})},yt.RACE=function(e,t,n,r){var o=r.digestEffect,i=wt,a=Object.keys(t),c=oe(t)?Ee(a.length):{},s={},u=!1;a.forEach((function(e){var t=function(t,r){u||(r||Ce(t)?(n.cancel(),n(t,r)):(n.cancel(),u=!0,c[e]=t,n(c)))};t.cancel=he,s[e]=t})),n.cancel=function(){u||(u=!0,a.forEach((function(e){return s[e].cancel()})))},a.forEach((function(e){u||o(t[e],i,s[e],e)}))},yt.CALL=function(e,t,n,r){var o=t.context,i=t.fn,a=t.args,c=r.task;try{var s=i.apply(o,a);if(ie(s))return void vt(s,n);if(ae(s))return void jt(e,s,c.context,wt,Oe(i),!1,n);n(s)}catch(u){n(u,!0)}},yt.CPS=function(e,t,n){var r=t.context,o=t.fn,i=t.args;try{var a=function(e,t){ee(e)?n(t):n(e,!0)};o.apply(r,i.concat(a)),a.cancel&&(n.cancel=a.cancel)}catch(c){n(c,!0)}},yt.FORK=function(e,t,n,r){var o=t.context,i=t.fn,a=t.args,c=t.detached,s=r.task,u=function(e){var t=e.context,n=e.fn,r=e.args;try{var o=n.apply(t,r);if(ae(o))return o;var i=!1;return be((function(e){return i?{value:e,done:!0}:(i=!0,{value:o,done:!ie(o)})}))}catch(a){return be((function(){throw a}))}}({context:o,fn:i,args:a}),l=function(e,t){return e.isSagaIterator?{name:e.meta.name}:Oe(t)}(u,i);rt((function(){var t=jt(e,u,s.context,wt,l,c,void 0);c?n(t):t.isRunning()?(s.queue.addTask(t),n(t)):t.isAborted()?s.queue.abort(t.error()):n(t)}))},yt.JOIN=function(e,t,n,r){var o=r.task,i=function(e,t){if(e.isRunning()){var n={task:o,cb:t};t.cancel=function(){e.isRunning()&&ve(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(oe(t)){if(0===t.length)return void n([]);var a=Pe(t,n);t.forEach((function(e,t){i(e,a[t])}))}else i(t,n)},yt.CANCEL=function(e,t,n,r){var o=r.task;t===Y?_t(o):oe(t)?t.forEach(_t):_t(t),n()},yt.SELECT=function(e,t,n){var r=t.selector,o=t.args;try{n(r.apply(void 0,[e.getState()].concat(o)))}catch(i){n(i,!0)}},yt.ACTION_CHANNEL=function(e,t,n){var r=t.pattern,o=gt(t.buffer),i=pt(r),a=function t(n){ht(n)||e.channel.take(t,i),o.put(n)},c=o.close;o.close=function(){a.cancel(),c()},e.channel.take(a,i),n(o)},yt.CANCELLED=function(e,t,n,r){n(r.task.isCancelled())},yt.FLUSH=function(e,t,n){t.flush(n)},yt.GET_CONTEXT=function(e,t,n,r){n(r.task.context[t])},yt.SET_CONTEXT=function(e,t,n,r){var o=r.task;me(o.context,t),n()},yt);function kt(e,t){return e+"?"+t}function St(e){var t=e.name,n=e.location;return n?t+"  "+kt(n.fileName,n.lineNumber):t}function xt(e){var t,n,r,o=(t=function(e){return e.cancelledTasks},n=e,(r=[]).concat.apply(r,n.map(t)));return o.length?["Tasks cancelled due to error:"].concat(o).join("\n"):""}var Ct=null,Pt=[],Ot=function(e){e.crashedEffect=Ct,Pt.push(e)},At=function(){Ct=null,Pt.length=0},Tt=function(){var e=Pt[0],t=Pt.slice(1),n=e.crashedEffect?function(e){var t=Ae(e);return t?t.code+"  "+kt(t.fileName,t.lineNumber):""}(e.crashedEffect):null;return["The above error occurred in task "+St(e.meta)+(n?" \n when executing effect "+n:"")].concat(t.map((function(e){return"    created by "+St(e.meta)})),[xt(Pt)]).join("\n")};function It(e,t,n,r,o,i,a){var c;void 0===a&&(a=he);var s,u,l=0,f=null,p=[],d=Object.create(n),h=function(e,t,n){var r,o=[],i=!1;function a(e){t(),s(),n(e,!0)}function c(t){o.push(t),t.cont=function(c,s){i||(ve(o,t),t.cont=he,s?a(c):(t===e&&(r=c),o.length||(i=!0,n(r))))}}function s(){i||(i=!0,o.forEach((function(e){e.cont=he,e.cancel()})),o=[])}return c(e),{addTask:c,cancelAll:s,abort:a,getTasks:function(){return o}}}(t,(function(){p.push.apply(p,h.getTasks().map((function(e){return e.meta.name})))}),g);function g(t,n){if(n){if(l=2,Ot({meta:o,cancelledTasks:p}),m.isRoot){var r=Tt();At(),e.onError(t,{sagaStack:r})}u=t,f&&f.reject(t)}else t===X?l=1:1!==l&&(l=3),s=t,f&&f.resolve(t);m.cont(t,n),m.joiners.forEach((function(e){e.cb(t,n)})),m.joiners=null}var m=((c={})[J]=!0,c.id=r,c.meta=o,c.isRoot=i,c.context=d,c.joiners=[],c.queue=h,c.cancel=function(){0===l&&(l=1,h.cancelAll(),g(X,!1))},c.cont=a,c.end=g,c.setContext=function(e){me(d,e)},c.toPromise=function(){return f||(f=Ze(),2===l?f.reject(u):0!==l&&f.resolve(s)),f.promise},c.isRunning=function(){return 0===l},c.isCancelled=function(){return 1===l||0===l&&1===t.status},c.isAborted=function(){return 2===l},c.result=function(){return s},c.error=function(){return u},c);return m}function jt(e,t,n,r,o,i,a){var c=e.finalizeRunEffect((function(t,n,r){if(ie(t))vt(t,r);else if(ae(t))jt(e,t,u.context,n,o,!1,r);else if(t&&t[Q]){(0,Et[t.type])(e,t.payload,r,l)}else r(t)}));f.cancel=he;var s={meta:o,cancel:function(){0===s.status&&(s.status=1,f(X))},status:0},u=It(e,s,n,r,o,i,a),l={task:u,digestEffect:p};return a&&(a.cancel=u.cancel),f(),u;function f(e,n){try{var o;n?(o=t.throw(e),At()):xe(e)?(s.status=1,f.cancel(),o=ne(t.return)?t.return(X):{done:!0,value:X}):o=Se(e)?ne(t.return)?t.return():{done:!0}:t.next(e),o.done?(1!==s.status&&(s.status=3),s.cont(o.value)):p(o.value,r,f)}catch(i){if(1===s.status)throw i;s.status=2,s.cont(i,!0)}}function p(t,n,r,o){void 0===o&&(o="");var i,a=bt();function s(n,o){i||(i=!0,r.cancel=he,e.sagaMonitor&&(o?e.sagaMonitor.effectRejected(a,n):e.sagaMonitor.effectResolved(a,n)),o&&function(e){Ct=e}(t),r(n,o))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:a,parentEffectId:n,label:o,effect:t}),s.cancel=he,r.cancel=function(){i||(i=!0,s.cancel(),s.cancel=he,e.sagaMonitor&&e.sagaMonitor.effectCancelled(a))},c(t,a,s)}}function Rt(e,t){var n=e.channel,r=void 0===n?mt():n,o=e.dispatch,i=e.getState,a=e.context,c=void 0===a?{}:a,s=e.sagaMonitor,u=e.effectMiddlewares,l=e.onError,f=void 0===l?_e:l;for(var p=arguments.length,d=new Array(p>2?p-2:0),h=2;h<p;h++)d[h-2]=arguments[h];var g=t.apply(void 0,d);var m,v=bt();if(s&&(s.rootSagaStarted=s.rootSagaStarted||he,s.effectTriggered=s.effectTriggered||he,s.effectResolved=s.effectResolved||he,s.effectRejected=s.effectRejected||he,s.effectCancelled=s.effectCancelled||he,s.actionDispatched=s.actionDispatched||he,s.rootSagaStarted({effectId:v,saga:t,args:d})),u){var y=U.apply(void 0,u);m=function(e){return function(t,n,r){return y((function(t){return e(t,n,r)}))(t)}}}else m=ge;var w={channel:r,dispatch:ke(o),getState:i,sagaMonitor:s,onError:f,finalizeRunEffect:m};return rt((function(){var e=jt(w,g,c,v,Oe(t),!0,void 0);return s&&s.effectResolved(v,e),e}))}var Nt=function(e){var t,n=void 0===e?{}:e,r=n.context,o=void 0===r?{}:r,i=n.channel,a=void 0===i?mt():i,c=n.sagaMonitor,s=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(n,["context","channel","sagaMonitor"]);function u(e){var n=e.getState,r=e.dispatch;return t=Rt.bind(null,fe({},s,{context:o,channel:a,dispatch:r,getState:n,sagaMonitor:c})),function(e){return function(t){c&&c.actionDispatched&&c.actionDispatched(t);var n=e(t);return a.put(t),n}}}return u.run=function(){return t.apply(void 0,arguments)},u.setContext=function(e){me(o,e)},u},Lt=window.wp.data,Bt=JSON.parse('{"u2":"homepage-articles","W3":"newspack","Y4":{"className":{"type":"string","default":""},"showExcerpt":{"type":"boolean","default":true},"excerptLength":{"type":"number","default":55},"showDate":{"type":"boolean","default":true},"showImage":{"type":"boolean","default":true},"showCaption":{"type":"boolean","default":false},"imageShape":{"type":"string","default":"landscape"},"minHeight":{"type":"integer","default":0},"moreButton":{"type":"boolean","default":false},"moreButtonText":{"type":"string","default":""},"showAuthor":{"type":"boolean","default":true},"showAvatar":{"type":"boolean","default":true},"showCategory":{"type":"boolean","default":false},"postLayout":{"type":"string","default":"list"},"columns":{"type":"integer","default":3},"postsToShow":{"type":"integer","default":3},"mediaPosition":{"type":"string","default":"top"},"authors":{"type":"array","default":[],"items":{"type":"integer"}},"categories":{"type":"array","default":[],"items":{"type":"integer"}},"tags":{"type":"array","default":[],"items":{"type":"integer"}},"tagExclusions":{"type":"array","default":[],"items":{"type":"integer"}},"specificPosts":{"type":"array","default":[],"items":{"type":"integer"}},"typeScale":{"type":"integer","default":4},"imageScale":{"type":"integer","default":3},"mobileStack":{"type":"boolean","default":false},"sectionHeader":{"type":"string","default":""},"specificMode":{"type":"boolean","default":false},"textColor":{"type":"string","default":""},"customTextColor":{"type":"string","default":""},"singleMode":{"type":"boolean","default":false},"showSubtitle":{"type":"boolean","default":false}}}'),Mt=function(){return"object"==typeof window&&window.wpcomGutenberg&&-1===Number(window.wpcomGutenberg.blogPublic)},Dt=["postsToShow","authors","categories","tags","specificPosts","specificMode","tagExclusions"],Ht=function(e){var t=(0,T.pick)(e,Dt),n=t.postsToShow,r=t.authors,o=t.categories,i=t.tags,a=t.specificPosts,c=t.specificMode,s=t.tagExclusions,u=Ft(a),l=c&&u&&u.length,f=(0,T.pickBy)(l?{include:u,orderby:"include",per_page:a.length}:{per_page:n,categories:o,author:r,tags:i,tags_exclude:s},(function(e){return!(0,T.isUndefined)(e)}));return f.suppress_password_protected_posts=!0,f},Ft=function(e){return e.map((function(e){return parseInt(e)})).filter((function(e){return e>0}))},Ut=function e(t,n){return t.flatMap((function(t){var r=[];if(t.name===n){var o=Ht(t.attributes);r.push({postsQuery:o,clientId:t.clientId})}return r.concat(e(t.innerBlocks,n))}))},zt=function e(t){return t.flatMap((function(t){var n=[];return n.push(t.clientId),n.concat(e(t.innerBlocks))}))},Vt=regeneratorRuntime.mark(en),qt=Bt.u2,Qt="newspack-blocks/".concat(qt),Gt={postsByBlock:{},errorsByBlock:{}},Kt={reflow:function(){Jt.dispatch({type:"REFLOW"})}},Wt={getPosts:function(e){var t=e.clientId;return Jt.getState().postsByBlock[t]},getError:function(e){var t=e.clientId;return Jt.getState().errorsByBlock[t]},isUIDisabled:function(){return Jt.getState().isUIDisabled}},Yt=Nt(),Jt=function e(t,n,r){var o;if("function"==typeof n&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof n&&void 0===r&&(r=n,n=void 0),void 0!==r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(e)(t,n)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var i=t,a=n,c=[],s=c,u=!1;function l(){s===c&&(s=c.slice())}function f(){if(u)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function p(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(u)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return l(),s.push(e),function(){if(t){if(u)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,l();var n=s.indexOf(e);s.splice(n,1),c=null}}}function d(e){if(!M(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(u)throw new Error("Reducers may not dispatch actions.");try{u=!0,a=i(a,e)}finally{u=!1}for(var t=c=s,n=0;n<t.length;n++){(0,t[n])()}return e}function h(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");i=e,d({type:B.REPLACE})}function g(){var e,t=p;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(f())}return n(),{unsubscribe:t(n)}}})[N.Z]=function(){return this},e}return d({type:B.INIT}),(o={dispatch:d,subscribe:p,getState:f,replaceReducer:h})[N.Z]=g,o}((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gt,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DISABLE_UI":return(0,T.set)(e,"isUIDisabled",!0);case"ENABLE_UI":return(0,T.set)(e,"isUIDisabled",!1);case"UPDATE_BLOCK_POSTS":return(0,T.set)(e,["postsByBlock",t.clientId],t.posts);case"UPDATE_BLOCK_ERROR":return(0,T.set)(e,["errorsByBlock",t.clientId],t.error)}return e}),function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return F({},n,{dispatch:r=U.apply(void 0,i)(n.dispatch)})}}}(Yt)),Xt=o()({getSelectors:function(){return Wt},getActions:function(){return Kt}},Jt),Zt={},$t=JSON.stringify;function en(e){var t,n,r,i;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t=$t(e.postsQuery),void 0!==(n=Zt[t])){a.next=8;break}return r=(0,C.addQueryArgs)("/wp/v2/posts",o()(o()({},e.postsQuery),{},{context:"edit"})),a.next=6,Ue(x(),{path:r});case 6:n=a.sent,Zt[t]=n;case 8:return i=n.map((function(e){return e.id})),a.next=11,He({type:"UPDATE_BLOCK_POSTS",clientId:e.clientId,posts:n});case 11:return a.abrupt("return",i);case 12:case"end":return a.stop()}}),Vt)}var tn,nn=function(e){return e.map((function(e){return(0,s.createElement)("span",{className:"avatar author-avatar",key:e.id},(0,s.createElement)("a",{className:"url fn n",href:e.author_link},(0,s.createElement)(s.RawHTML,null,e.avatar)))}))},rn=function(e){return(0,s.createElement)("span",{className:"byline"},(0,a._x)("by","post author","full-site-editing")," ",e.reduce((function(t,n,r){return[].concat(A()(t),[(0,s.createElement)("span",{className:"author vcard",key:n.id},(0,s.createElement)("a",{className:"url fn n",href:n.author_link},n.display_name)),r<e.length-2&&", ",e.length>1&&r===e.length-2&&(0,a._x)(" and ","post author","full-site-editing")])}),[]))},on=function(e){return(0,s.createElement)("span",{className:"sponsor-logos"},e.map((function(e){return(0,s.createElement)(s.Fragment,{key:e.id},e.src&&(0,s.createElement)("a",{href:e.sponsor_url},(0,s.createElement)("img",{src:e.src,width:e.img_width,height:e.img_height,alt:e.sponsor_name})))})))},an=function(e){return(0,s.createElement)("span",{className:"byline sponsor-byline"},e[0].byline_prefix," ",e.reduce((function(t,n,r){return[].concat(A()(t),[(0,s.createElement)("span",{className:"author",key:n.id},(0,s.createElement)("a",{href:n.author_link},n.sponsor_name)),r<e.length-2&&", ",e.length>1&&r===e.length-2&&(0,a._x)(" and ","post author","full-site-editing")])}),[]))},cn=n(779),sn=n.n(cn),un=window.wp.date,ln=window.wp.blockEditor,fn=window.wp.compose;"object"==typeof window&&window.newspackIsPostSubtitleSupported&&window.newspackIsPostSubtitleSupported.post_subtitle&&(tn=!0);var pn=(0,s.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,s.createElement)(u.Path,{d:"M0 0h24v24H0z",fill:"none"}),(0,s.createElement)(u.Path,{d:"M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H5V7h14v10z"})),dn=(0,s.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,s.createElement)(u.Path,{d:"M0 0h24v24H0z",fill:"none"}),(0,s.createElement)(u.Path,{d:"M17 3H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7V5h10v14z"})),hn=(0,s.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,s.createElement)(u.Path,{d:"M0 0h24v24H0z",fill:"none"}),(0,s.createElement)(u.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H6V6h12v12z"})),gn=(0,s.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,s.createElement)(u.Path,{d:"M0 0h24v24H0z",fill:"none"}),(0,s.createElement)(u.Path,{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2zm2 10H3v4c0 1.1.9 2 2 2h4v-2H5v-4zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2z"})),mn=(0,s.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,s.createElement)(u.Path,{d:"M0 0h24v24H0z",fill:"none"}),(0,s.createElement)(u.Path,{d:"M4 4h7V2H4c-1.1 0-2 .9-2 2v7h2V4zm6 9l-4 5h12l-3-4-2.03 2.71L10 13zm7-4.5c0-.83-.67-1.5-1.5-1.5S14 7.67 14 8.5s.67 1.5 1.5 1.5S17 9.33 17 8.5zM20 2h-7v2h7v7h2V4c0-1.1-.9-2-2-2zm0 18h-7v2h7c1.1 0 2-.9 2-2v-7h-2v7zM4 13H2v7c0 1.1.9 2 2 2h7v-2H4v-7z"})),vn=function(e){v()(n,e);var t=w()(n);function n(){var e;f()(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),_()(g()(e),"renderPost",(function(t){var n,r,o,i,a,c=e.props,u=c.attributes,l=c.isUIDisabled,f=u.showImage,p=u.imageShape,d=u.mediaPosition,h=u.minHeight,g=u.showCaption,m=u.showExcerpt,v=u.showSubtitle,y=u.showAuthor,w=u.showAvatar,b=u.showDate,_=u.showCategory,E=u.sectionHeader,k={minHeight:"behind"===d&&f&&t.newspack_featured_image_src&&h+"vh",paddingTop:"behind"===d&&f&&t.newspack_featured_image_src&&h/5+"vh"},S=sn()({"post-has-image":t.newspack_featured_image_src,"homepage-posts-block__post--disabled":l},t.newspack_article_classes),x=e.titleForPost(t),C=(0,un.__experimentalGetSettings)().formats.date;return(0,s.createElement)("article",{className:S,key:t.id,style:k},f&&t.newspack_featured_image_src&&(0,s.createElement)("figure",{className:"post-thumbnail",key:"thumbnail"},(0,s.createElement)("a",{href:"#"},"landscape"===p&&(0,s.createElement)("img",{src:t.newspack_featured_image_src.landscape,alt:""}),"portrait"===p&&(0,s.createElement)("img",{src:t.newspack_featured_image_src.portrait,alt:""}),"square"===p&&(0,s.createElement)("img",{src:t.newspack_featured_image_src.square,alt:""}),"uncropped"===p&&(0,s.createElement)("img",{src:t.newspack_featured_image_src.uncropped,alt:""})),g&&""!==t.newspack_featured_image_caption&&(0,s.createElement)("figcaption",null,t.newspack_featured_image_caption)),(0,s.createElement)("div",{className:"entry-wrapper"},t.newspack_post_sponsors&&(0,s.createElement)("span",{className:"cat-links sponsor-label"},(0,s.createElement)("span",{className:"flag"},t.newspack_post_sponsors[0].flag)),_&&t.newspack_category_info.length&&!t.newspack_post_sponsors&&(0,s.createElement)("div",{className:"cat-links"},(0,s.createElement)("a",{href:"#"},(0,P.decodeEntities)(t.newspack_category_info))),ln.RichText.isEmpty(E)?(0,s.createElement)("h2",{className:"entry-title",key:"title"},"aside"===t.newspack_post_format?x:(0,s.createElement)("a",{href:"#"},x)):(0,s.createElement)("h3",{className:"entry-title",key:"title"},"aside"===t.newspack_post_format?x:(0,s.createElement)("a",{href:"#"},x)),tn&&v&&(0,s.createElement)(s.RawHTML,{key:"subtitle",className:"newspack-post-subtitle newspack-post-subtitle--in-homepage-block"},t.meta.newspack_post_subtitle||""),m&&(0,s.createElement)(s.RawHTML,{key:"excerpt",className:"excerpt-contain"},"aside"===t.newspack_post_format?t.content.rendered:(n=t,r=u.excerptLength,o=n.excerpt.rendered,i=n.content.rendered.replace(/(<([^>]+)>)/gi,""),a=r<i.trim().split(" ").length?"".concat(i.split(" ",r).join(" ")," […]"):i,n.newspack_has_custom_excerpt?o:"<p>"+a.trim()+"</p>")),(0,s.createElement)("div",{className:"entry-meta"},t.newspack_post_sponsors&&on(t.newspack_post_sponsors),t.newspack_post_sponsors&&an(t.newspack_post_sponsors),y&&w&&!t.newspack_post_sponsors&&nn(t.newspack_author_info),y&&!t.newspack_post_sponsors&&rn(t.newspack_author_info),b&&(0,s.createElement)("time",{className:"entry-date published",key:"pub-date"},(0,un.dateI18n)(C,t.date_gmt)))))})),_()(g()(e),"titleForPost",(function(e){return e.title?"string"==typeof e.title?(0,P.decodeEntities)(e.title.trim()):"object"==typeof e.title&&e.title.rendered?(0,P.decodeEntities)(e.title.rendered.trim()):void 0:""})),_()(g()(e),"renderInspectorControls",(function(){var t=e.props,n=t.attributes,r=t.setAttributes,o=t.textColor,i=t.setTextColor,c=n.authors,l=n.specificPosts,f=n.postsToShow,p=n.categories,d=n.columns,h=n.showImage,g=n.showCaption,m=n.imageScale,v=n.mobileStack,y=n.minHeight,w=n.moreButton,b=n.showExcerpt,_=n.excerptLength,E=n.showSubtitle,k=n.typeScale,S=n.showDate,x=n.showAuthor,C=n.showAvatar,P=n.showCategory,O=n.postLayout,A=n.mediaPosition,T=n.specificMode,I=n.tags,j=n.tagExclusions,N=[{value:1,label:(0,a.__)("Small","full-site-editing"),shortName:(0,a.__)("S","full-site-editing")},{value:2,label:(0,a.__)("Medium","full-site-editing"),shortName:(0,a.__)("M","full-site-editing")},{value:3,label:(0,a.__)("Large","full-site-editing"),shortName:(0,a.__)("L","full-site-editing")},{value:4,label:(0,a.__)("Extra Large","full-site-editing"),shortName:(0,a.__)("XL","full-site-editing")}];return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(u.PanelBody,{title:(0,a.__)("Display Settings","full-site-editing"),initialOpen:!0},(0,s.createElement)(R,{numberOfItems:f,onNumberOfItemsChange:function(e){return r({postsToShow:e||1})},specificMode:T,onSpecificModeChange:function(e){return r({specificMode:e})},specificPosts:l,onSpecificPostsChange:function(e){return r({specificPosts:e})},authors:c,onAuthorsChange:function(e){return r({authors:e})},categories:p,onCategoriesChange:function(e){return r({categories:e})},tags:I,onTagsChange:function(e){r({tags:e})},tagExclusions:j,onTagExclusionsChange:function(e){return r({tagExclusions:e})}}),"grid"===O&&(0,s.createElement)(u.RangeControl,{label:(0,a.__)("Columns","full-site-editing"),value:d,onChange:function(e){return r({columns:e})},min:2,max:6,required:!0}),!T&&Mt()?(0,s.createElement)("i",null,(0,a.__)('This blog is private, therefore the "Load more posts" feature is not active.',"full-site-editing")):(0,s.createElement)(u.ToggleControl,{label:(0,a.__)('Show "Load more posts" Button',"full-site-editing"),checked:w,onChange:function(){return r({moreButton:!w})}})),(0,s.createElement)(u.PanelBody,{title:(0,a.__)("Featured Image Settings","full-site-editing")},(0,s.createElement)(u.PanelRow,null,(0,s.createElement)(u.ToggleControl,{label:(0,a.__)("Show Featured Image","full-site-editing"),checked:h,onChange:function(){return r({showImage:!h})}})),h&&(0,s.createElement)(u.PanelRow,null,(0,s.createElement)(u.ToggleControl,{label:(0,a.__)("Show Featured Image Caption","full-site-editing"),checked:g,onChange:function(){return r({showCaption:!g})}})),h&&"top"!==A&&"behind"!==A&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(u.PanelRow,null,(0,s.createElement)(u.ToggleControl,{label:(0,a.__)("Stack on mobile","full-site-editing"),checked:v,onChange:function(){return r({mobileStack:!v})}})),(0,s.createElement)(u.BaseControl,{label:(0,a.__)("Featured Image Size","full-site-editing"),id:"newspackfeatured-image-size"},(0,s.createElement)(u.PanelRow,null,(0,s.createElement)(u.ButtonGroup,{id:"newspackfeatured-image-size","aria-label":(0,a.__)("Featured Image Size","full-site-editing")},N.map((function(e){var t=m===e.value;return(0,s.createElement)(u.Button,{isLarge:!0,isPrimary:t,"aria-pressed":t,"aria-label":e.label,key:e.value,onClick:function(){return r({imageScale:e.value})}},e.shortName)})))))),h&&"behind"===A&&(0,s.createElement)(u.RangeControl,{label:(0,a.__)("Minimum height","full-site-editing"),help:(0,a.__)("Sets a minimum height for the block, using a percentage of the screen's current height.","full-site-editing"),value:y,onChange:function(e){return r({minHeight:e})},min:0,max:100,required:!0})),(0,s.createElement)(u.PanelBody,{title:(0,a.__)("Post Control Settings","full-site-editing")},tn&&(0,s.createElement)(u.PanelRow,null,(0,s.createElement)(u.ToggleControl,{label:(0,a.__)("Show Subtitle","full-site-editing"),checked:E,onChange:function(){return r({showSubtitle:!E})}})),(0,s.createElement)(u.PanelRow,null,(0,s.createElement)(u.ToggleControl,{label:(0,a.__)("Show Excerpt","full-site-editing"),checked:b,onChange:function(){return r({showExcerpt:!b})}})),b&&(0,s.createElement)(u.RangeControl,{label:(0,a.__)("Max number of words in excerpt","full-site-editing"),value:_,onChange:function(e){return r({excerptLength:e})},min:10,max:100}),(0,s.createElement)(u.RangeControl,{className:"type-scale-slider",label:(0,a.__)("Type Scale","full-site-editing"),value:k,onChange:function(e){return r({typeScale:e})},min:1,max:10,beforeIcon:"editor-textcolor",afterIcon:"editor-textcolor",required:!0})),(0,s.createElement)(ln.PanelColorSettings,{title:(0,a.__)("Color Settings","full-site-editing"),initialOpen:!0,colorSettings:[{value:o.color,onChange:i,label:(0,a.__)("Text Color","full-site-editing")}]}),(0,s.createElement)(u.PanelBody,{title:(0,a.__)("Post Meta Settings","full-site-editing")},(0,s.createElement)(u.PanelRow,null,(0,s.createElement)(u.ToggleControl,{label:(0,a.__)("Show Date","full-site-editing"),checked:S,onChange:function(){return r({showDate:!S})}})),(0,s.createElement)(u.PanelRow,null,(0,s.createElement)(u.ToggleControl,{label:(0,a.__)("Show Category","full-site-editing"),checked:P,onChange:function(){return r({showCategory:!P})}})),(0,s.createElement)(u.PanelRow,null,(0,s.createElement)(u.ToggleControl,{label:(0,a.__)("Show Author","full-site-editing"),checked:x,onChange:function(){return r({showAuthor:!x})}})),x&&(0,s.createElement)(u.PanelRow,null,(0,s.createElement)(u.ToggleControl,{label:(0,a.__)("Show Author Avatar","full-site-editing"),checked:C,onChange:function(){return r({showAvatar:!C})}}))))})),e}return d()(n,[{key:"componentDidMount",value:function(){this.props.triggerReflow()}},{key:"componentDidUpdate",value:function(e){(function(e,t){return!(0,T.isEqual)((0,T.pick)(e.attributes,Dt),(0,T.pick)(t.attributes,Dt))||!(0,T.isEqual)(e.topBlocksClientIdsInOrder,t.topBlocksClientIdsInOrder)})(e,this.props)&&this.props.triggerReflow()}},{key:"componentWillUnmount",value:function(){this.props.triggerReflow()}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,o=n.className,i=n.setAttributes,c=n.isSelected,l=n.latestPosts,f=n.textColor,p=n.error,d=r.showImage,h=r.imageShape,g=r.postLayout,m=r.mediaPosition,v=r.moreButton,y=r.moreButtonText,w=r.columns,b=r.typeScale,E=r.imageScale,k=r.mobileStack,S=r.sectionHeader,x=r.showCaption,C=r.showCategory,P=r.specificMode,O=sn()(o,(e={"is-grid":"grid"===g,"show-image":d},_()(e,"columns-".concat(w),"grid"===g),_()(e,"ts-".concat(b),"5"!==b),_()(e,"image-align".concat(m),d),_()(e,"is-".concat(E),"1"!==E&&d),_()(e,"mobile-stack",k),_()(e,"is-".concat(h),d),_()(e,"has-text-color",""!==f.color),_()(e,"show-caption",x),_()(e,"show-category",C),_()(e,"wpnbha",!0),e)),A=[{icon:"list-view",title:(0,a.__)("List View","full-site-editing"),onClick:function(){return i({postLayout:"list"})},isActive:"list"===g},{icon:"grid-view",title:(0,a.__)("Grid View","full-site-editing"),onClick:function(){return i({postLayout:"grid"})},isActive:"grid"===g}],T=[{icon:"align-none",title:(0,a.__)("Show media on top","full-site-editing"),isActive:"top"===m,onClick:function(){return i({mediaPosition:"top"})}},{icon:"align-pull-left",title:(0,a.__)("Show media on left","full-site-editing"),isActive:"left"===m,onClick:function(){return i({mediaPosition:"left"})}},{icon:"align-pull-right",title:(0,a.__)("Show media on right","full-site-editing"),isActive:"right"===m,onClick:function(){return i({mediaPosition:"right"})}},{icon:mn,title:(0,a.__)("Show media behind","full-site-editing"),isActive:"behind"===m,onClick:function(){return i({mediaPosition:"behind"})}}],I=[{icon:pn,title:(0,a.__)("Landscape Image Shape","full-site-editing"),isActive:"landscape"===h,onClick:function(){return i({imageShape:"landscape"})}},{icon:dn,title:(0,a.__)("portrait Image Shape","full-site-editing"),isActive:"portrait"===h,onClick:function(){return i({imageShape:"portrait"})}},{icon:hn,title:(0,a.__)("Square Image Shape","full-site-editing"),isActive:"square"===h,onClick:function(){return i({imageShape:"square"})}},{icon:gn,title:(0,a.__)("Uncropped","full-site-editing"),isActive:"uncropped"===h,onClick:function(){return i({imageShape:"uncropped"})}}];return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:O,style:{color:f.color}},(0,s.createElement)("div",null,l&&(!ln.RichText.isEmpty(S)||c)&&(0,s.createElement)(ln.RichText,{onChange:function(e){return i({sectionHeader:e})},placeholder:(0,a.__)("Write header…","full-site-editing"),value:S,tagName:"h2",className:"article-section-title"}),l&&!l.length&&(0,s.createElement)(u.Placeholder,null,(0,a.__)("Sorry, no posts were found.","full-site-editing")),!l&&!p&&(0,s.createElement)(u.Placeholder,{icon:(0,s.createElement)(u.Spinner,null),className:"component-placeholder__align-center"}),!l&&p&&(0,s.createElement)(u.Placeholder,{className:"component-placeholder__align-center homepage-posts-block--error"},p),l&&l.map((function(e){return t.renderPost(e)})))),!P&&l&&v&&!Mt()&&(0,s.createElement)("div",{className:"editor-styles-wrapper wpnbha__wp-block-button__wrapper"},(0,s.createElement)("div",{className:"wp-block-button"},(0,s.createElement)(ln.RichText,{placeholder:(0,a.__)("Load more posts","full-site-editing"),value:y,onChange:function(e){return i({moreButtonText:e})},className:"wp-block-button__link",keepPlaceholderOnFocus:!0,allowedFormats:[]}))),(0,s.createElement)(ln.BlockControls,null,(0,s.createElement)(u.Toolbar,{controls:A}),d&&(0,s.createElement)(u.Toolbar,{controls:T}),d&&(0,s.createElement)(u.Toolbar,{controls:I})),(0,s.createElement)(ln.InspectorControls,null,this.renderInspectorControls()))}}]),n}(s.Component),yn=(0,fn.compose)([(0,ln.withColors)({textColor:"color"}),(0,Lt.withSelect)((function(e,t){var n=t.clientId,r=t.attributes,o=e("core/editor"),i=o.getEditorBlocks,a=o.getBlocks,c=zt(i()).indexOf(n)>=0,s=e(Qt),u=s.getPosts,l=s.getError,f={isEditorBlock:c,isUIDisabled:(0,s.isUIDisabled)(),error:l({clientId:n}),topBlocksClientIdsInOrder:a().map((function(e){return e.clientId}))};return f.latestPosts=c?u({clientId:n}):e("core").getEntityRecords("postType","post",Ht(r)),f})),(0,Lt.withDispatch)((function(e,t){return{triggerReflow:t.isEditorBlock?e(Qt).reflow:function(){}}}))])(vn),wn=(Bt.u2,Bt.Y4),bn=Bt.W3,En={title:(0,a.__)("Homepage Posts","full-site-editing"),icon:(0,s.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,s.createElement)(u.Path,{d:"M0 0h24v24H0z",fill:"none"}),(0,s.createElement)(u.Path,{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H8V4h12v12zM10 9h8v2h-8zm0 3h4v2h-4zm0-6h8v2h-8z",fill:"#36f"})),attributes:wn,category:bn,keywords:[(0,a.__)("posts","full-site-editing"),(0,a.__)("articles","full-site-editing"),(0,a.__)("latest","full-site-editing")],description:(0,a.__)("A block for displaying homepage posts.","full-site-editing"),styles:[{name:"default",label:(0,a._x)("Default","block style","full-site-editing"),isDefault:!0},{name:"borders",label:(0,a._x)("Borders","block style","full-site-editing")}],supports:{html:!1,align:["wide","full"],default:""},edit:yn,save:function(){return null},transforms:{from:[{type:"block",blocks:["core/latest-posts"],transform:function(e){var t=e.displayPostContent,n=e.displayPostDate,r=e.postLayout,o=e.columns,a=e.postsToShow,s=e.categories;return(0,i.createBlock)((0,c.applyFilters)("blocks.transforms_from_name","newspack-blocks/homepage-articles"),{showExcerpt:t,showDate:n,postLayout:r,columns:o,postsToShow:a,showAuthor:!1,categories:s?[s]:[]})}}],to:[{type:"block",blocks:["core/latest-posts"],transform:function(e){var t=e.showExcerpt,n=e.showDate,r=e.postLayout,o=e.columns,a=e.postsToShow,c=e.categories;return(0,i.createBlock)("core/latest-posts",{displayPostContent:t,displayPostDate:n,postLayout:r,columns:o,postsToShow:a,categories:c[0]||""})}}]}},kn="a8c/blog-posts";(0,c.addFilter)("blocks.transforms_from_name","set-transformed-block-name",(function(e){return"newspack-blocks/homepage-articles"!==e?e:kn})),(0,i.registerBlockType)(kn,o()(o()({},En),{},{title:(0,a.__)("Blog Posts","full-site-editing"),category:"widgets"})),function(e){(0,Lt.registerGenericStore)(Qt,Xt),Yt.run(function(e){var t=regeneratorRuntime.mark(n);function n(){var n,r,o,i,a,c,s,u,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,qe(300);case 2:return n=(0,Lt.select)("core/block-editor"),r=n.getBlocks,o=(0,Lt.select)("core/editor"),i=o.getCurrentPostId,t.next=6,He({type:"DISABLE_UI"});case 6:a=Ut(r(),e),c=a.reduce((function(e,t){var n=t.postsQuery;return n.include&&(e=[].concat(A()(e),A()(n.include))),e}),[]),s=Ft([].concat(A()(c),[i()]));case 9:if(!a.length){t.next=26;break}return(u=a.shift()).postsQuery.exclude=s,l=[],t.prev=13,t.next=16,Ue(en,u);case 16:l=t.sent,t.next=23;break;case 19:return t.prev=19,t.t0=t.catch(13),t.next=23,He({type:"UPDATE_BLOCK_ERROR",clientId:u.clientId,error:t.t0.message});case 23:s=[].concat(A()(s),A()(l)),t.next=9;break;case 26:return t.next=28,He({type:"ENABLE_UI"});case 28:case"end":return t.stop()}}),t,null,[[13,19]])}return regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Je("REFLOW",n);case 2:case"end":return e.stop()}}),e)}))}(e))}(kn)}},t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r](o,o.exports,n),o.loaded=!0,o.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(963)}());
     6*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)&&n.length){var a=o.apply(null,n);a&&e.push(a)}else if("object"===i)for(var c in n)r.call(n,c)&&n[c]&&e.push(c)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},)}());
  • full-site-editing/trunk/newspack-blocks/dist/blog-posts-block-view.asset.php

    r2460738 r2464442  
    1 <?php return array('dependencies' => array('wp-polyfill'), 'version' => '40cf32c3fc0b266dcf6b77e662cf4004');
     1<?php return array('dependencies' => array('wp-polyfill'), 'version' => '');
  • full-site-editing/trunk/newspack-blocks/dist/blog-posts-block-view.js

    r2460738 r2464442  
    1 !function(t,e){for(var r in e)t[r]=e[r];e.__esModule&&Object.defineProperty(t,"__esModule",{value:!0})}(window,function(){var t={270:function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}},232:function(t,e,r){var n=r(270);t.exports=function(t){if(Array.isArray(t))return n(t)}},557:function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}},359:function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},182:function(t,e,r){var n=r(232),o=r(557),i=r(487),a=r(359);t.exports=function(t){return n(t)||o(t)||i(t)||a()}},487:function(t,e,r){var n=r(270);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}},176:function(t,e,r){"use strict";r.r(e);var n=r(182),o=r.n(n);function i(t,e){var r=new XMLHttpRequest;r.onreadystatechange=function(){if(4===r.readyState){if(r.status>=200&&r.status<300){var n=JSON.parse(r.responseText);return t.onSuccess(n)}return e?i(t,e-1):t.onError()}},r.open("GET",t.url),r.send()}function a(t,e){return Object.prototype.hasOwnProperty.call(t,e)}Array.prototype.forEach.call(document.querySelectorAll(".wp-block-newspack-blocks-homepage-articles.has-more-button"),(function(t){var e=t.querySelector("[data-next]");if(!e)return;var r=t.querySelector("[data-posts]"),n=!1,s=!1;e.addEventListener("click",(function(){if(n||s)return!1;var u,c;function l(){n=!1,t.classList.remove("is-loading"),t.classList.add("is-error")}n=!0,t.classList.remove("is-error"),t.classList.add("is-loading"),i({url:e.getAttribute("data-next")+"&exclude_ids="+(u=document.querySelectorAll(".wp-block-newspack-blocks-homepage-articles [data-post-id]"),c=Array.from(u).map((function(t){return t.getAttribute("data-post-id")})),c.push(document.querySelector(".wp-block-newspack-blocks-homepage-articles > div[data-current-post-id]").getAttribute("data-current-post-id")),o()(new Set(c))).join(","),onSuccess:function(o){if(!function(t){var e=!1;t&&a(t,"items")&&Array.isArray(t.items)&&a(t,"next")&&"string"==typeof t.next&&(e=!0,!t.items.length||a(t.items[0],"html")&&"string"==typeof t.items[0].html||(e=!1));return e}(o))return l();if(o.items.length){var i=o.items.map((function(t){return t.html})).join("");r.insertAdjacentHTML("beforeend",i)}o.next&&e.setAttribute("data-next",o.next);o.items.length&&o.next||(s=!0,t.classList.remove("has-more-button"));n=!1,t.classList.remove("is-loading")},onError:l},3)}))}))}},e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}return r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r(176)}());
     1!function(t,e){for(var r in e)t[r]=e[r];e.__esModule&&Object.defineProperty(t,"__esModule",{value:!0})}(window,function(){var t={270:function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}},232:function(t,e,r){var n=r(270);t.exports=function(t){if(Array.isArray(t))return n(t)}},557:function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}},359:function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},182:function(t,e,r){var n=r(232),o=r(557),i=r(487),a=r(359);t.exports=function(t){return n(t)||o(t)||i(t)||a()}},487:function(t,e,r){var n=r(270);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}},)}());
  • full-site-editing/trunk/newspack-blocks/dist/carousel-block-editor.asset.php

    r2460738 r2464442  
    1 <?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '9a2961c1df433fa0fb632132aa9f1de1');
     1<?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '');
  • full-site-editing/trunk/newspack-blocks/dist/carousel-block-editor.js

    r2460738 r2464442  
    1 !function(e,t){for(var a in t)e[a]=t[a];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={965:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=new Array(t);a<t;a++)i[a]=e[a];return i}},232:function(e,t,a){var i=a(965);e.exports=function(e){if(Array.isArray(e))return i(e)}},111:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},85:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},198:function(e){function t(e,t){for(var a=0;a<t.length;a++){var i=t[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}e.exports=function(e,a,i){return a&&t(e.prototype,a),i&&t(e,i),e}},564:function(e,t,a){var i=a(588),n=a(549),s=a(983);e.exports=function(e){var t=n();return function(){var a,n=i(e);if(t){var r=i(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return s(this,a)}}},260:function(e){e.exports=function(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}},527:function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},t.apply(this,arguments)}e.exports=t},588:function(e){function t(a){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(a)}e.exports=t},270:function(e,t,a){var i=a(742);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&&i(e,t)}},549:function(e){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},557:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},359:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},417:function(e,t,a){var i=a(260);function n(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}e.exports=function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?n(Object(a),!0).forEach((function(t){i(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}},983:function(e,t,a){var i=a(921),n=a(111);e.exports=function(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?n(e):t}},742:function(e){function t(a,i){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(a,i)}e.exports=t},182:function(e,t,a){var i=a(232),n=a(557),s=a(487),r=a(359);e.exports=function(e){return i(e)||n(e)||s(e)||r()}},921:function(e){function t(a){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(a)}e.exports=t},487:function(e,t,a){var i=a(965);e.exports=function(e,t){if(e){if("string"==typeof e)return i(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?i(e,t):void 0}}},779:function(e,t){var a;
     1!function(e,t){for(var a in t)e[a]=t[a];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={965:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=new Array(t);a<t;a++)i[a]=e[a];return i}},232:function(e,t,a){var i=a(965);e.exports=function(e){if(Array.isArray(e))return i(e)}},111:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},85:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},198:function(e){function t(e,t){for(var a=0;a<t.length;a++){var i=t[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}e.exports=function(e,a,i){return a&&t(e.prototype,a),i&&t(e,i),e}},:function(e,t,a){var i=a(588),n=a(549),s=a(983);e.exports=function(e){var t=n();return function(){var a,n=i(e);if(t){var r=i(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return s(this,a)}}},260:function(e){e.exports=function(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}},527:function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},t.apply(this,arguments)}e.exports=t},588:function(e){function t(a){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(a)}e.exports=t},270:function(e,t,a){var i=a(742);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&&i(e,t)}},549:function(e){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},557:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},359:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},417:function(e,t,a){var i=a(260);function n(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}e.exports=function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?n(Object(a),!0).forEach((function(t){i(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}},983:function(e,t,a){var i=a(921),n=a(111);e.exports=function(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?n(e):t}},742:function(e){function t(a,i){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(a,i)}e.exports=t},182:function(e,t,a){var i=a(232),n=a(557),s=a(487),r=a(359);e.exports=function(e){return i(e)||n(e)||s(e)||r()}},921:function(e){function t(a){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(a)}e.exports=t},487:function(e,t,a){var i=a(965);e.exports=function(e,t){if(e){if("string"==typeof e)return i(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?i(e,t):void 0}}},779:function(e,t){var a;
    22/*!
    33  Copyright (c) 2017 Jed Watson.
    44  Licensed under the MIT License (MIT), see
    55  http://jedwatson.github.io/classnames
    6 */!function(){"use strict";var i={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var s=typeof a;if("string"===s||"number"===s)e.push(a);else if(Array.isArray(a)&&a.length){var r=n.apply(null,a);r&&e.push(r)}else if("object"===s)for(var o in a)i.call(a,o)&&a[o]&&e.push(o)}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(a=function(){return n}.apply(t,[]))||(e.exports=a)}()},543:function(e,t,a){"use strict";a.r(t);var i=a(417),n=a.n(i),s=window.wp.blocks,r=window.wp.hooks,o=window.wp.element,l=window.wp.components,d=window.wp.i18n,c=a(85),u=a.n(c),p=a(198),h=a.n(p),f=a(270),v=a.n(f),m=a(564),g=a.n(m),b=window.lodash,w=a(779),y=a.n(w),x=window.wp.date,E=window.wp.editor,S=window.wp.data,T=window.wp.compose,C=window.wp.htmlEntities,k=a(527),M=a.n(k),P=a(111),z=a.n(P),I=a(260),$=a.n(I),L=window.wp.apiFetch,O=a.n(L),A=window.wp.url,D=a(182),_=a.n(D),N=function(e){v()(a,e);var t=g()(a);function a(e){var i;return u()(this,a),i=t.call(this,e),$()(z()(i),"isFetchingInfoOnLoad",(function(){var e=i.props,t=e.tokens,a=e.fetchSavedInfo;return Boolean(t.length&&a)})),i.state={suggestions:[],validValues:{},loading:i.isFetchingInfoOnLoad()},i.debouncedUpdateSuggestions=(0,b.debounce)(i.updateSuggestions,500),i}return h()(a,[{key:"componentDidMount",value:function(){var e=this;if(this.isFetchingInfoOnLoad()){var t=this.props,a=t.tokens;(0,t.fetchSavedInfo)(a).then((function(t){var a=e.state.validValues;t.forEach((function(e){a[e.value]=e.label})),e.setState({validValues:a,loading:!1})}))}}},{key:"componentWillUnmount",value:function(){delete this.suggestionsRequest,this.debouncedUpdateSuggestions.cancel()}},{key:"getLabelsForValues",value:function(e){var t=this.state.validValues;return e.reduce((function(e,a){return t[a]?[].concat(_()(e),[t[a]]):e}),[])}},{key:"getValuesForLabels",value:function(e){var t=this.state.validValues;return e.map((function(e){return Object.keys(t).find((function(a){return t[a]===e}))}))}},{key:"updateSuggestions",value:function(e){var t=this,a=this.props.fetchSuggestions;a&&this.setState({loading:!0},(function(){var i=a(e);i.then((function(e){if(t.suggestionsRequest===i){var a=t.state.validValues,n=[];e.forEach((function(e){n.push(e.label),a[e.value]=e.label})),t.setState({suggestions:n,validValues:a,loading:!1})}})).catch((function(){t.suggestionsRequest===i&&t.setState({loading:!1})})),t.suggestionsRequest=i}))}},{key:"handleOnChange",value:function(e){(0,this.props.onChange)(this.getValuesForLabels(e))}},{key:"getTokens",value:function(){var e=this.props.tokens;return this.getLabelsForValues(e)}},{key:"render",value:function(){var e=this,t=this.props,a=t.help,i=t.label,n=void 0===i?"":i,s=this.state,r=s.suggestions,d=s.loading;return(0,o.createElement)("div",{className:"autocomplete-tokenfield"},(0,o.createElement)(l.FormTokenField,{value:this.getTokens(),suggestions:r,onChange:function(t){return e.handleOnChange(t)},onInputChange:function(t){return e.debouncedUpdateSuggestions(t)},label:n}),d&&(0,o.createElement)(l.Spinner,null),a&&(0,o.createElement)("p",{className:"autocomplete-tokenfield__help"},a))}}]),a}(o.Component),H=function(e){v()(a,e);var t=g()(a);function a(){var e;u()(this,a);for(var i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];return e=t.call.apply(t,[this].concat(n)),$()(z()(e),"state",{showAdvancedFilters:!1}),$()(z()(e),"fetchPostSuggestions",(function(e){var t=window&&window.newspack_blocks_data&&window.newspack_blocks_data._experimental?"/newspack-blocks/v1/specific-posts":"/wp/v2/search";return O()({path:(0,A.addQueryArgs)(t,{search:e,per_page:20,_fields:"id,title",type:"post"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,C.decodeEntities)(e.title)||(0,d.__)("(no title)","full-site-editing")}}))}))})),$()(z()(e),"fetchSavedPosts",(function(e){return O()({path:(0,A.addQueryArgs)("/wp/v2/posts",{per_page:100,include:e.join(","),_fields:"id,title"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,C.decodeEntities)(e.title.rendered)||(0,d.__)("(no title)","full-site-editing")}}))}))})),$()(z()(e),"fetchAuthorSuggestions",(function(e){return O()({path:(0,A.addQueryArgs)("/wp/v2/users",{search:e,per_page:20,_fields:"id,name"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,C.decodeEntities)(e.name)||(0,d.__)("(no name)","full-site-editing")}}))}))})),$()(z()(e),"fetchSavedAuthors",(function(e){return O()({path:(0,A.addQueryArgs)("/wp/v2/users",{per_page:100,include:e.join(","),_fields:"id,name"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,C.decodeEntities)(e.name)||(0,d.__)("(no name)","full-site-editing")}}))}))})),$()(z()(e),"fetchCategorySuggestions",(function(e){return O()({path:(0,A.addQueryArgs)("/wp/v2/categories",{search:e,per_page:20,_fields:"id,name",orderby:"count",order:"desc"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,C.decodeEntities)(e.name)||(0,d.__)("(no title)","full-site-editing")}}))}))})),$()(z()(e),"fetchSavedCategories",(function(e){return O()({path:(0,A.addQueryArgs)("/wp/v2/categories",{per_page:100,_fields:"id,name",include:e.join(",")})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,C.decodeEntities)(e.name)||(0,d.__)("(no title)","full-site-editing")}}))}))})),$()(z()(e),"fetchTagSuggestions",(function(e){return O()({path:(0,A.addQueryArgs)("/wp/v2/tags",{search:e,per_page:20,_fields:"id,name",orderby:"count",order:"desc"})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,C.decodeEntities)(e.name)||(0,d.__)("(no title)","full-site-editing")}}))}))})),$()(z()(e),"fetchSavedTags",(function(e){return O()({path:(0,A.addQueryArgs)("/wp/v2/tags",{per_page:100,_fields:"id,name",include:e.join(",")})}).then((function(e){return e.map((function(e){return{value:e.id,label:(0,C.decodeEntities)(e.name)||(0,d.__)("(no title)","full-site-editing")}}))}))})),$()(z()(e),"render",(function(){var t=e.props,a=t.specificMode,i=t.onSpecificModeChange,n=t.specificPosts,s=t.onSpecificPostsChange,r=t.authors,c=t.onAuthorsChange,u=t.categories,p=t.onCategoriesChange,h=t.tags,f=t.onTagsChange,v=t.tagExclusions,m=t.onTagExclusionsChange,g=t.enableSpecific,b=e.state.showAdvancedFilters;return[g&&(0,o.createElement)(l.ToggleControl,{key:"specificMode",checked:a,onChange:i,label:(0,d.__)("Choose Specific Posts","full-site-editing")}),a&&(0,o.createElement)(N,{key:"posts",tokens:n||[],onChange:s,fetchSuggestions:e.fetchPostSuggestions,fetchSavedInfo:e.fetchSavedPosts,label:(0,d.__)("Posts","full-site-editing"),help:(0,d.__)("Begin typing post title, click autocomplete result to select.","full-site-editing")}),!a&&(0,o.createElement)(l.QueryControls,M()({key:"queryControls"},e.props)),!a&&c&&(0,o.createElement)(N,{key:"authors",tokens:r||[],onChange:c,fetchSuggestions:e.fetchAuthorSuggestions,fetchSavedInfo:e.fetchSavedAuthors,label:(0,d.__)("Authors","full-site-editing")}),!a&&p&&(0,o.createElement)(N,{key:"categories",tokens:u||[],onChange:p,fetchSuggestions:e.fetchCategorySuggestions,fetchSavedInfo:e.fetchSavedCategories,label:(0,d.__)("Categories","full-site-editing")}),!a&&f&&(0,o.createElement)(N,{key:"tags",tokens:h||[],onChange:f,fetchSuggestions:e.fetchTagSuggestions,fetchSavedInfo:e.fetchSavedTags,label:(0,d.__)("Tags","full-site-editing")}),!a&&m&&(0,o.createElement)("p",{key:"toggle-advanced-filters"},(0,o.createElement)(l.Button,{isLink:!0,onClick:function(){return e.setState({showAdvancedFilters:!b})}},b?(0,d.__)("Hide Advanced Filters","full-site-editing"):(0,d.__)("Show Advanced Filters","full-site-editing"))),!a&&m&&b&&(0,o.createElement)(N,{key:"tag-exclusion",tokens:v||[],onChange:m,fetchSuggestions:e.fetchTagSuggestions,fetchSavedInfo:e.fetchSavedTags,label:(0,d.__)("Excluded Tags","full-site-editing")})]})),e}return a}(o.Component);H.defaultProps={enableSpecific:!0,specificPosts:[],authors:[],categories:[],tags:[],tagExclusions:[]};var B=H,V=window.wp.a11y,G=window.wp.escapeHtml,R=a(983),X=a.n(R),Y=a(588),F=a.n(Y),j="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,q="undefined"==typeof window?{document:j,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window,W=function e(t){u()(this,e);for(var a=0;a<t.length;a+=1)this[a]=t[a];return this.length=t.length,this};function U(e,t){var a=[],i=0;if(e&&!t&&e instanceof W)return e;if(e)if("string"==typeof e){var n,s,r=e.trim();if(r.indexOf("<")>=0&&r.indexOf(">")>=0){var o="div";for(0===r.indexOf("<li")&&(o="ul"),0===r.indexOf("<tr")&&(o="tbody"),0!==r.indexOf("<td")&&0!==r.indexOf("<th")||(o="tr"),0===r.indexOf("<tbody")&&(o="table"),0===r.indexOf("<option")&&(o="select"),(s=j.createElement(o)).innerHTML=r,i=0;i<s.childNodes.length;i+=1)a.push(s.childNodes[i])}else for(n=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||j).querySelectorAll(e.trim()):[j.getElementById(e.trim().split("#")[1])],i=0;i<n.length;i+=1)n[i]&&a.push(n[i])}else if(e.nodeType||e===q||e===j)a.push(e);else if(e.length>0&&e[0].nodeType)for(i=0;i<e.length;i+=1)a.push(e[i]);return new W(a)}function K(e){for(var t=[],a=0;a<e.length;a+=1)-1===t.indexOf(e[a])&&t.push(e[a]);return t}U.fn=W.prototype,U.Class=W,U.Dom7=W;"resize scroll".split(" ");function Q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,i=F()(e);if(t){var n=F()(this).constructor;a=Reflect.construct(i,arguments,n)}else a=i.apply(this,arguments);return X()(this,a)}}var Z={addClass:function(e){if(void 0===e)return this;for(var t=e.split(" "),a=0;a<t.length;a+=1)for(var i=0;i<this.length;i+=1)void 0!==this[i]&&void 0!==this[i].classList&&this[i].classList.add(t[a]);return this},removeClass:function(e){for(var t=e.split(" "),a=0;a<t.length;a+=1)for(var i=0;i<this.length;i+=1)void 0!==this[i]&&void 0!==this[i].classList&&this[i].classList.remove(t[a]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){for(var t=e.split(" "),a=0;a<t.length;a+=1)for(var i=0;i<this.length;i+=1)void 0!==this[i]&&void 0!==this[i].classList&&this[i].classList.toggle(t[a]);return this},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var a=0;a<this.length;a+=1)if(2===arguments.length)this[a].setAttribute(e,t);else for(var i in e)this[a][i]=e[i],this[a].setAttribute(i,e[i]);return this},removeAttr:function(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},data:function(e,t){var a;if(void 0!==t){for(var i=0;i<this.length;i+=1)(a=this[i]).dom7ElementDataStorage||(a.dom7ElementDataStorage={}),a.dom7ElementDataStorage[e]=t;return this}if(a=this[0]){if(a.dom7ElementDataStorage&&e in a.dom7ElementDataStorage)return a.dom7ElementDataStorage[e];var n=a.getAttribute("data-".concat(e));return n||void 0}},transform:function(e){for(var t=0;t<this.length;t+=1){var a=this[t].style;a.webkitTransform=e,a.transform=e}return this},transition:function(e){"string"!=typeof e&&(e="".concat(e,"ms"));for(var t=0;t<this.length;t+=1){var a=this[t].style;a.webkitTransitionDuration=e,a.transitionDuration=e}return this},on:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var i=t[0],n=t[1],s=t[2],r=t[3];function o(e){var t=e.target;if(t){var a=e.target.dom7EventData||[];if(a.indexOf(e)<0&&a.unshift(e),U(t).is(n))s.apply(t,a);else for(var i=U(t).parents(),r=0;r<i.length;r+=1)U(i[r]).is(n)&&s.apply(i[r],a)}}function l(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),s.apply(this,t)}"function"==typeof t[1]&&(i=t[0],s=t[1],r=t[2],n=void 0),r||(r=!1);for(var d,c=i.split(" "),u=0;u<this.length;u+=1){var p=this[u];if(n)for(d=0;d<c.length;d+=1){var h=c[d];p.dom7LiveListeners||(p.dom7LiveListeners={}),p.dom7LiveListeners[h]||(p.dom7LiveListeners[h]=[]),p.dom7LiveListeners[h].push({listener:s,proxyListener:o}),p.addEventListener(h,o,r)}else for(d=0;d<c.length;d+=1){var f=c[d];p.dom7Listeners||(p.dom7Listeners={}),p.dom7Listeners[f]||(p.dom7Listeners[f]=[]),p.dom7Listeners[f].push({listener:s,proxyListener:l}),p.addEventListener(f,l,r)}}return this},off:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var i=t[0],n=t[1],s=t[2],r=t[3];"function"==typeof t[1]&&(i=t[0],s=t[1],r=t[2],n=void 0),r||(r=!1);for(var o=i.split(" "),l=0;l<o.length;l+=1)for(var d=o[l],c=0;c<this.length;c+=1){var u=this[c],p=void 0;if(!n&&u.dom7Listeners?p=u.dom7Listeners[d]:n&&u.dom7LiveListeners&&(p=u.dom7LiveListeners[d]),p&&p.length)for(var h=p.length-1;h>=0;h-=1){var f=p[h];s&&f.listener===s||s&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===s?(u.removeEventListener(d,f.proxyListener,r),p.splice(h,1)):s||(u.removeEventListener(d,f.proxyListener,r),p.splice(h,1))}}return this},trigger:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];for(var i=t[0].split(" "),n=t[1],s=0;s<i.length;s+=1)for(var r=i[s],o=0;o<this.length;o+=1){var l=this[o],d=void 0;try{d=new q.CustomEvent(r,{detail:n,bubbles:!0,cancelable:!0})}catch(c){(d=j.createEvent("Event")).initEvent(r,!0,!0),d.detail=n}l.dom7EventData=t.filter((function(e,t){return t>0})),l.dispatchEvent(d),l.dom7EventData=[],delete l.dom7EventData}return this},transitionEnd:function(e){var t,a=["webkitTransitionEnd","transitionend"],i=this;function n(s){if(s.target===this)for(e.call(this,s),t=0;t<a.length;t+=1)i.off(a[t],n)}if(e)for(t=0;t<a.length;t+=1)i.on(a[t],n);return this},outerWidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),a=j.body,i=e.clientTop||a.clientTop||0,n=e.clientLeft||a.clientLeft||0,s=e===q?q.scrollY:e.scrollTop,r=e===q?q.scrollX:e.scrollLeft;return{top:t.top+s-i,left:t.left+r-n}}return null},css:function(e,t){var a;if(1===arguments.length){if("string"!=typeof e){for(a=0;a<this.length;a+=1)for(var i in e)this[a].style[i]=e[i];return this}if(this[0])return q.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(a=0;a<this.length;a+=1)this[a].style[e]=t;return this}return this},each:function(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],t,this[t]))return this;return this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){var t,a,i=this[0];if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=U(e),a=0;a<t.length;a+=1)if(t[a]===i)return!0;return!1}if(e===j)return i===j;if(e===q)return i===q;if(e.nodeType||e instanceof W){for(t=e.nodeType?[e]:e,a=0;a<t.length;a+=1)if(t[a]===i)return!0;return!1}return!1},index:function(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;var t,a=this.length;return new W(e>a-1?[]:e<0?(t=a+e)<0?[]:[this[t]]:[this[e]])},append:function(){for(var e,t=0;t<arguments.length;t+=1){e=t<0||arguments.length<=t?void 0:arguments[t];for(var a=0;a<this.length;a+=1)if("string"==typeof e){var i=j.createElement("div");for(i.innerHTML=e;i.firstChild;)this[a].appendChild(i.firstChild)}else if(e instanceof W)for(var n=0;n<e.length;n+=1)this[a].appendChild(e[n]);else this[a].appendChild(e)}return this},prepend:function(e){var t,a;for(t=0;t<this.length;t+=1)if("string"==typeof e){var i=j.createElement("div");for(i.innerHTML=e,a=i.childNodes.length-1;a>=0;a-=1)this[t].insertBefore(i.childNodes[a],this[t].childNodes[0])}else if(e instanceof W)for(a=0;a<e.length;a+=1)this[t].insertBefore(e[a],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this},next:function(e){return this.length>0?e?this[0].nextElementSibling&&U(this[0].nextElementSibling).is(e)?new W([this[0].nextElementSibling]):new W([]):this[0].nextElementSibling?new W([this[0].nextElementSibling]):new W([]):new W([])},nextAll:function(e){var t=[],a=this[0];if(!a)return new W([]);for(;a.nextElementSibling;){var i=a.nextElementSibling;e?U(i).is(e)&&t.push(i):t.push(i),a=i}return new W(t)},prev:function(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&U(t.previousElementSibling).is(e)?new W([t.previousElementSibling]):new W([]):t.previousElementSibling?new W([t.previousElementSibling]):new W([])}return new W([])},prevAll:function(e){var t=[],a=this[0];if(!a)return new W([]);for(;a.previousElementSibling;){var i=a.previousElementSibling;e?U(i).is(e)&&t.push(i):t.push(i),a=i}return new W(t)},parent:function(e){for(var t=[],a=0;a<this.length;a+=1)null!==this[a].parentNode&&(e?U(this[a].parentNode).is(e)&&t.push(this[a].parentNode):t.push(this[a].parentNode));return U(K(t))},parents:function(e){for(var t=[],a=0;a<this.length;a+=1)for(var i=this[a].parentNode;i;)e?U(i).is(e)&&t.push(i):t.push(i),i=i.parentNode;return U(K(t))},closest:function(e){var t=this;return void 0===e?new W([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){for(var t=[],a=0;a<this.length;a+=1)for(var i=this[a].querySelectorAll(e),n=0;n<i.length;n+=1)t.push(i[n]);return new W(t)},children:function(e){for(var t=[],a=0;a<this.length;a+=1)for(var i=this[a].childNodes,n=0;n<i.length;n+=1)e?1===i[n].nodeType&&U(i[n]).is(e)&&t.push(i[n]):1===i[n].nodeType&&t.push(i[n]);return new W(K(t))},remove:function(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},add:function(){for(var e,t,a=this,i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];for(e=0;e<n.length;e+=1){var r=U(n[e]);for(t=0;t<r.length;t+=1)a[a.length]=r[t],a.length+=1}return a},styles:function(){return this[0]?q.getComputedStyle(this[0],null):{}}};Object.keys(Z).forEach((function(e){U.fn[e]=U.fn[e]||Z[e]}));var J,ee,te,ae={deleteProps:function(e){var t=e;Object.keys(t).forEach((function(e){try{t[e]=null}catch(a){}try{delete t[e]}catch(a){}}))},nextTick:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e){var t,a,i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",s=q.getComputedStyle(e,null);return q.WebKitCSSMatrix?((a=s.transform||s.webkitTransform).split(",").length>6&&(a=a.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),i=new q.WebKitCSSMatrix("none"===a?"":a)):t=(i=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===n&&(a=q.WebKitCSSMatrix?i.m41:16===t.length?parseFloat(t[12]):parseFloat(t[4])),"y"===n&&(a=q.WebKitCSSMatrix?i.m42:16===t.length?parseFloat(t[13]):parseFloat(t[5])),a||0},parseUrlQuery:function(e){var t,a,i,n,s={},r=e||q.location.href;if("string"==typeof r&&r.length)for(n=(a=(r=r.indexOf("?")>-1?r.replace(/\S*\?/,""):"").split("&").filter((function(e){return""!==e}))).length,t=0;t<n;t+=1)i=a[t].replace(/#\S+/g,"").split("="),s[decodeURIComponent(i[0])]=void 0===i[1]?void 0:decodeURIComponent(i[1])||"";return s},isObject:function(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object},extend:function(){for(var e=Object(arguments.length<=0?void 0:arguments[0]),t=1;t<arguments.length;t+=1){var a=t<0||arguments.length<=t?void 0:arguments[t];if(null!=a)for(var i=Object.keys(Object(a)),n=0,s=i.length;n<s;n+=1){var r=i[n],o=Object.getOwnPropertyDescriptor(a,r);void 0!==o&&o.enumerable&&(ae.isObject(e[r])&&ae.isObject(a[r])?ae.extend(e[r],a[r]):!ae.isObject(e[r])&&ae.isObject(a[r])?(e[r]={},ae.extend(e[r],a[r])):e[r]=a[r])}}return e}},ie=(ee=j.createElement("div"),{touch:q.Modernizr&&!0===q.Modernizr.touch||!!(q.navigator.maxTouchPoints>0||"ontouchstart"in q||q.DocumentTouch&&j instanceof q.DocumentTouch),pointerEvents:!!(q.navigator.pointerEnabled||q.PointerEvent||"maxTouchPoints"in q.navigator&&q.navigator.maxTouchPoints>0),prefixedPointerEvents:!!q.navigator.msPointerEnabled,transition:(J=ee.style,"transition"in J||"webkitTransition"in J||"MozTransition"in J),transforms3d:q.Modernizr&&!0===q.Modernizr.csstransforms3d||function(){var e=ee.style;return"webkitPerspective"in e||"MozPerspective"in e||"OPerspective"in e||"MsPerspective"in e||"perspective"in e}(),flexbox:function(){for(var e=ee.style,t="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),a=0;a<t.length;a+=1)if(t[a]in e)return!0;return!1}(),observer:"MutationObserver"in q||"WebkitMutationObserver"in q,passiveListener:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});q.addEventListener("testPassiveListener",null,t)}catch(a){}return e}(),gestures:"ongesturestart"in q}),ne={isIE:!!q.navigator.userAgent.match(/Trident/g)||!!q.navigator.userAgent.match(/MSIE/g),isEdge:!!q.navigator.userAgent.match(/Edge/g),isSafari:(te=q.navigator.userAgent.toLowerCase(),te.indexOf("safari")>=0&&te.indexOf("chrome")<0&&te.indexOf("android")<0),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(q.navigator.userAgent)},se=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u()(this,e);var a=this;a.params=t,a.eventsListeners={},a.params&&a.params.on&&Object.keys(a.params.on).forEach((function(e){a.on(e,a.params.on[e])}))}return h()(e,[{key:"on",value:function(e,t,a){var i=this;if("function"!=typeof t)return i;var n=a?"unshift":"push";return e.split(" ").forEach((function(e){i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][n](t)})),i}},{key:"once",value:function(e,t,a){var i=this;if("function"!=typeof t)return i;function n(){for(var a=arguments.length,s=new Array(a),r=0;r<a;r++)s[r]=arguments[r];t.apply(i,s),i.off(e,n),n.f7proxy&&delete n.f7proxy}return n.f7proxy=t,i.on(e,n,a)}},{key:"off",value:function(e,t){var a=this;return a.eventsListeners?(e.split(" ").forEach((function(e){void 0===t?a.eventsListeners[e]=[]:a.eventsListeners[e]&&a.eventsListeners[e].length&&a.eventsListeners[e].forEach((function(i,n){(i===t||i.f7proxy&&i.f7proxy===t)&&a.eventsListeners[e].splice(n,1)}))})),a):a}},{key:"emit",value:function(){var e,t,a,i=this;if(!i.eventsListeners)return i;for(var n=arguments.length,s=new Array(n),r=0;r<n;r++)s[r]=arguments[r];"string"==typeof s[0]||Array.isArray(s[0])?(e=s[0],t=s.slice(1,s.length),a=i):(e=s[0].events,t=s[0].data,a=s[0].context||i);var o=Array.isArray(e)?e:e.split(" ");return o.forEach((function(e){if(i.eventsListeners&&i.eventsListeners[e]){var n=[];i.eventsListeners[e].forEach((function(e){n.push(e)})),n.forEach((function(e){e.apply(a,t)}))}})),i}},{key:"useModulesParams",value:function(e){var t=this;t.modules&&Object.keys(t.modules).forEach((function(a){var i=t.modules[a];i.params&&ae.extend(e,i.params)}))}},{key:"useModules",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this;t.modules&&Object.keys(t.modules).forEach((function(a){var i=t.modules[a],n=e[a]||{};i.instance&&Object.keys(i.instance).forEach((function(e){var a=i.instance[e];t[e]="function"==typeof a?a.bind(t):a})),i.on&&t.on&&Object.keys(i.on).forEach((function(e){t.on(e,i.on[e])})),i.create&&i.create.bind(t)(n)}))}}],[{key:"installModule",value:function(e){var t=this;t.prototype.modules||(t.prototype.modules={});var a=e.name||"".concat(Object.keys(t.prototype.modules).length,"_").concat(ae.now());if(t.prototype.modules[a]=e,e.proto&&Object.keys(e.proto).forEach((function(a){t.prototype[a]=e.proto[a]})),e.static&&Object.keys(e.static).forEach((function(a){t[a]=e.static[a]})),e.install){for(var i=arguments.length,n=new Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];e.install.apply(t,n)}return t}},{key:"use",value:function(e){var t=this;if(Array.isArray(e))return e.forEach((function(e){return t.installModule(e)})),t;for(var a=arguments.length,i=new Array(a>1?a-1:0),n=1;n<a;n++)i[n-1]=arguments[n];return t.installModule.apply(t,[e].concat(i))}},{key:"components",set:function(e){this.use&&this.use(e)}}]),e}();var re={updateSize:function(){var e,t,a=this,i=a.$el;e=void 0!==a.params.width?a.params.width:i[0].clientWidth,t=void 0!==a.params.height?a.params.height:i[0].clientHeight,0===e&&a.isHorizontal()||0===t&&a.isVertical()||(e=e-parseInt(i.css("padding-left"),10)-parseInt(i.css("padding-right"),10),t=t-parseInt(i.css("padding-top"),10)-parseInt(i.css("padding-bottom"),10),ae.extend(a,{width:e,height:t,size:a.isHorizontal()?e:t}))},updateSlides:function(){var e=this,t=e.params,a=e.$wrapperEl,i=e.size,n=e.rtlTranslate,s=e.wrongRTL,r=e.virtual&&t.virtual.enabled,o=r?e.virtual.slides.length:e.slides.length,l=a.children(".".concat(e.params.slideClass)),d=r?e.virtual.slides.length:l.length,c=[],u=[],p=[],h=t.slidesOffsetBefore;"function"==typeof h&&(h=t.slidesOffsetBefore.call(e));var f=t.slidesOffsetAfter;"function"==typeof f&&(f=t.slidesOffsetAfter.call(e));var v=e.snapGrid.length,m=e.snapGrid.length,g=t.spaceBetween,b=-h,w=0,y=0;if(void 0!==i){var x,E;"string"==typeof g&&g.indexOf("%")>=0&&(g=parseFloat(g.replace("%",""))/100*i),e.virtualSize=-g,n?l.css({marginLeft:"",marginTop:""}):l.css({marginRight:"",marginBottom:""}),t.slidesPerColumn>1&&(x=Math.floor(d/t.slidesPerColumn)===d/e.params.slidesPerColumn?d:Math.ceil(d/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(x=Math.max(x,t.slidesPerView*t.slidesPerColumn)));for(var S,T=t.slidesPerColumn,C=x/T,k=Math.floor(d/t.slidesPerColumn),M=0;M<d;M+=1){E=0;var P=l.eq(M);if(t.slidesPerColumn>1){var z=void 0,I=void 0,$=void 0;if("column"===t.slidesPerColumnFill||"row"===t.slidesPerColumnFill&&t.slidesPerGroup>1){if("column"===t.slidesPerColumnFill)$=M-(I=Math.floor(M/T))*T,(I>k||I===k&&$===T-1)&&($+=1)>=T&&($=0,I+=1);else{var L=Math.floor(M/t.slidesPerGroup);I=M-($=Math.floor(M/t.slidesPerView)-L*t.slidesPerColumn)*t.slidesPerView-L*t.slidesPerView}z=I+$*x/T,P.css({"-webkit-box-ordinal-group":z,"-moz-box-ordinal-group":z,"-ms-flex-order":z,"-webkit-order":z,order:z})}else I=M-($=Math.floor(M/C))*C;P.css("margin-".concat(e.isHorizontal()?"top":"left"),0!==$&&t.spaceBetween&&"".concat(t.spaceBetween,"px")).attr("data-swiper-column",I).attr("data-swiper-row",$)}if("none"!==P.css("display")){if("auto"===t.slidesPerView){var O=q.getComputedStyle(P[0],null),A=P[0].style.transform,D=P[0].style.webkitTransform;if(A&&(P[0].style.transform="none"),D&&(P[0].style.webkitTransform="none"),t.roundLengths)E=e.isHorizontal()?P.outerWidth(!0):P.outerHeight(!0);else if(e.isHorizontal()){var _=parseFloat(O.getPropertyValue("width")),N=parseFloat(O.getPropertyValue("padding-left")),H=parseFloat(O.getPropertyValue("padding-right")),B=parseFloat(O.getPropertyValue("margin-left")),V=parseFloat(O.getPropertyValue("margin-right")),G=O.getPropertyValue("box-sizing");E=G&&"border-box"===G&&!ne.isIE?_+B+V:_+N+H+B+V}else{var R=parseFloat(O.getPropertyValue("height")),X=parseFloat(O.getPropertyValue("padding-top")),Y=parseFloat(O.getPropertyValue("padding-bottom")),F=parseFloat(O.getPropertyValue("margin-top")),j=parseFloat(O.getPropertyValue("margin-bottom")),W=O.getPropertyValue("box-sizing");E=W&&"border-box"===W&&!ne.isIE?R+F+j:R+X+Y+F+j}A&&(P[0].style.transform=A),D&&(P[0].style.webkitTransform=D),t.roundLengths&&(E=Math.floor(E))}else E=(i-(t.slidesPerView-1)*g)/t.slidesPerView,t.roundLengths&&(E=Math.floor(E)),l[M]&&(e.isHorizontal()?l[M].style.width="".concat(E,"px"):l[M].style.height="".concat(E,"px"));l[M]&&(l[M].swiperSlideSize=E),p.push(E),t.centeredSlides?(b=b+E/2+w/2+g,0===w&&0!==M&&(b=b-i/2-g),0===M&&(b=b-i/2-g),Math.abs(b)<.001&&(b=0),t.roundLengths&&(b=Math.floor(b)),y%t.slidesPerGroup==0&&c.push(b),u.push(b)):(t.roundLengths&&(b=Math.floor(b)),y%t.slidesPerGroup==0&&c.push(b),u.push(b),b=b+E+g),e.virtualSize+=E+g,w=E,y+=1}}if(e.virtualSize=Math.max(e.virtualSize,i)+f,n&&s&&("slide"===t.effect||"coverflow"===t.effect)&&a.css({width:"".concat(e.virtualSize+t.spaceBetween,"px")}),ie.flexbox&&!t.setWrapperSize||(e.isHorizontal()?a.css({width:"".concat(e.virtualSize+t.spaceBetween,"px")}):a.css({height:"".concat(e.virtualSize+t.spaceBetween,"px")})),t.slidesPerColumn>1&&(e.virtualSize=(E+t.spaceBetween)*x,e.virtualSize=Math.ceil(e.virtualSize/t.slidesPerColumn)-t.spaceBetween,e.isHorizontal()?a.css({width:"".concat(e.virtualSize+t.spaceBetween,"px")}):a.css({height:"".concat(e.virtualSize+t.spaceBetween,"px")}),t.centeredSlides)){S=[];for(var U=0;U<c.length;U+=1){var K=c[U];t.roundLengths&&(K=Math.floor(K)),c[U]<e.virtualSize+c[0]&&S.push(K)}c=S}if(!t.centeredSlides){S=[];for(var Q=0;Q<c.length;Q+=1){var Z=c[Q];t.roundLengths&&(Z=Math.floor(Z)),c[Q]<=e.virtualSize-i&&S.push(Z)}c=S,Math.floor(e.virtualSize-i)-Math.floor(c[c.length-1])>1&&c.push(e.virtualSize-i)}if(0===c.length&&(c=[0]),0!==t.spaceBetween&&(e.isHorizontal()?n?l.css({marginLeft:"".concat(g,"px")}):l.css({marginRight:"".concat(g,"px")}):l.css({marginBottom:"".concat(g,"px")})),t.centerInsufficientSlides){var J=0;if(p.forEach((function(e){J+=e+(t.spaceBetween?t.spaceBetween:0)})),(J-=t.spaceBetween)<i){var ee=(i-J)/2;c.forEach((function(e,t){c[t]=e-ee})),u.forEach((function(e,t){u[t]=e+ee}))}}ae.extend(e,{slides:l,snapGrid:c,slidesGrid:u,slidesSizesGrid:p}),d!==o&&e.emit("slidesLengthChange"),c.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),u.length!==m&&e.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&e.updateSlidesOffset()}},updateAutoHeight:function(e){var t,a=this,i=[],n=0;if("number"==typeof e?a.setTransition(e):!0===e&&a.setTransition(a.params.speed),"auto"!==a.params.slidesPerView&&a.params.slidesPerView>1)for(t=0;t<Math.ceil(a.params.slidesPerView);t+=1){var s=a.activeIndex+t;if(s>a.slides.length)break;i.push(a.slides.eq(s)[0])}else i.push(a.slides.eq(a.activeIndex)[0]);for(t=0;t<i.length;t+=1)if(void 0!==i[t]){var r=i[t].offsetHeight;n=r>n?r:n}n&&a.$wrapperEl.css("height","".concat(n,"px"))},updateSlidesOffset:function(){for(var e=this.slides,t=0;t<e.length;t+=1)e[t].swiperSlideOffset=this.isHorizontal()?e[t].offsetLeft:e[t].offsetTop},updateSlidesProgress:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this&&this.translate||0,t=this,a=t.params,i=t.slides,n=t.rtlTranslate;if(0!==i.length){void 0===i[0].swiperSlideOffset&&t.updateSlidesOffset();var s=-e;n&&(s=e),i.removeClass(a.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(var r=0;r<i.length;r+=1){var o=i[r],l=(s+(a.centeredSlides?t.minTranslate():0)-o.swiperSlideOffset)/(o.swiperSlideSize+a.spaceBetween);if(a.watchSlidesVisibility){var d=-(s-o.swiperSlideOffset),c=d+t.slidesSizesGrid[r],u=d>=0&&d<t.size-1||c>1&&c<=t.size||d<=0&&c>=t.size;u&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(r),i.eq(r).addClass(a.slideVisibleClass))}o.progress=n?-l:l}t.visibleSlides=U(t.visibleSlides)}},updateProgress:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this&&this.translate||0,t=this,a=t.params,i=t.maxTranslate()-t.minTranslate(),n=t.progress,s=t.isBeginning,r=t.isEnd,o=s,l=r;0===i?(n=0,s=!0,r=!0):(s=(n=(e-t.minTranslate())/i)<=0,r=n>=1),ae.extend(t,{progress:n,isBeginning:s,isEnd:r}),(a.watchSlidesProgress||a.watchSlidesVisibility)&&t.updateSlidesProgress(e),s&&!o&&t.emit("reachBeginning toEdge"),r&&!l&&t.emit("reachEnd toEdge"),(o&&!s||l&&!r)&&t.emit("fromEdge"),t.emit("progress",n)},updateSlidesClasses:function(){var e,t=this,a=t.slides,i=t.params,n=t.$wrapperEl,s=t.activeIndex,r=t.realIndex,o=t.virtual&&i.virtual.enabled;a.removeClass("".concat(i.slideActiveClass," ").concat(i.slideNextClass," ").concat(i.slidePrevClass," ").concat(i.slideDuplicateActiveClass," ").concat(i.slideDuplicateNextClass," ").concat(i.slideDuplicatePrevClass)),(e=o?t.$wrapperEl.find(".".concat(i.slideClass,'[data-swiper-slide-index="').concat(s,'"]')):a.eq(s)).addClass(i.slideActiveClass),i.loop&&(e.hasClass(i.slideDuplicateClass)?n.children(".".concat(i.slideClass,":not(.").concat(i.slideDuplicateClass,')[data-swiper-slide-index="').concat(r,'"]')).addClass(i.slideDuplicateActiveClass):n.children(".".concat(i.slideClass,".").concat(i.slideDuplicateClass,'[data-swiper-slide-index="').concat(r,'"]')).addClass(i.slideDuplicateActiveClass));var l=e.nextAll(".".concat(i.slideClass)).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=a.eq(0)).addClass(i.slideNextClass);var d=e.prevAll(".".concat(i.slideClass)).eq(0).addClass(i.slidePrevClass);i.loop&&0===d.length&&(d=a.eq(-1)).addClass(i.slidePrevClass),i.loop&&(l.hasClass(i.slideDuplicateClass)?n.children(".".concat(i.slideClass,":not(.").concat(i.slideDuplicateClass,')[data-swiper-slide-index="').concat(l.attr("data-swiper-slide-index"),'"]')).addClass(i.slideDuplicateNextClass):n.children(".".concat(i.slideClass,".").concat(i.slideDuplicateClass,'[data-swiper-slide-index="').concat(l.attr("data-swiper-slide-index"),'"]')).addClass(i.slideDuplicateNextClass),d.hasClass(i.slideDuplicateClass)?n.children(".".concat(i.slideClass,":not(.").concat(i.slideDuplicateClass,')[data-swiper-slide-index="').concat(d.attr("data-swiper-slide-index"),'"]')).addClass(i.slideDuplicatePrevClass):n.children(".".concat(i.slideClass,".").concat(i.slideDuplicateClass,'[data-swiper-slide-index="').concat(d.attr("data-swiper-slide-index"),'"]')).addClass(i.slideDuplicatePrevClass))},updateActiveIndex:function(e){var t,a=this,i=a.rtlTranslate?a.translate:-a.translate,n=a.slidesGrid,s=a.snapGrid,r=a.params,o=a.activeIndex,l=a.realIndex,d=a.snapIndex,c=e;if(void 0===c){for(var u=0;u<n.length;u+=1)void 0!==n[u+1]?i>=n[u]&&i<n[u+1]-(n[u+1]-n[u])/2?c=u:i>=n[u]&&i<n[u+1]&&(c=u+1):i>=n[u]&&(c=u);r.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if((t=s.indexOf(i)>=0?s.indexOf(i):Math.floor(c/r.slidesPerGroup))>=s.length&&(t=s.length-1),c!==o){var p=parseInt(a.slides.eq(c).attr("data-swiper-slide-index")||c,10);ae.extend(a,{snapIndex:t,realIndex:p,previousIndex:o,activeIndex:c}),a.emit("activeIndexChange"),a.emit("snapIndexChange"),l!==p&&a.emit("realIndexChange"),(a.initialized||a.runCallbacksOnInit)&&a.emit("slideChange")}else t!==d&&(a.snapIndex=t,a.emit("snapIndexChange"))},updateClickedSlide:function(e){var t=this,a=t.params,i=U(e.target).closest(".".concat(a.slideClass))[0],n=!1;if(i)for(var s=0;s<t.slides.length;s+=1)t.slides[s]===i&&(n=!0);if(!i||!n)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=i,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(U(i).attr("data-swiper-slide-index"),10):t.clickedIndex=U(i).index(),a.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}};var oe={getTranslate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.isHorizontal()?"x":"y",t=this,a=t.params,i=t.rtlTranslate,n=t.translate,s=t.$wrapperEl;if(a.virtualTranslate)return i?-n:n;var r=ae.getTranslate(s[0],e);return i&&(r=-r),r||0},setTranslate:function(e,t){var a=this,i=a.rtlTranslate,n=a.params,s=a.$wrapperEl,r=a.progress,o=0,l=0;a.isHorizontal()?o=i?-e:e:l=e,n.roundLengths&&(o=Math.floor(o),l=Math.floor(l)),n.virtualTranslate||(ie.transforms3d?s.transform("translate3d(".concat(o,"px, ").concat(l,"px, ").concat(0,"px)")):s.transform("translate(".concat(o,"px, ").concat(l,"px)"))),a.previousTranslate=a.translate,a.translate=a.isHorizontal()?o:l;var d=a.maxTranslate()-a.minTranslate();(0===d?0:(e-a.minTranslate())/d)!==r&&a.updateProgress(e),a.emit("setTranslate",a.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]}};var le={setTransition:function(e,t){this.$wrapperEl.transition(e),this.emit("setTransition",e,t)},transitionStart:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0,a=this,i=a.activeIndex,n=a.params,s=a.previousIndex;n.autoHeight&&a.updateAutoHeight();var r=t;if(r||(r=i>s?"next":i<s?"prev":"reset"),a.emit("transitionStart"),e&&i!==s){if("reset"===r)return void a.emit("slideResetTransitionStart");a.emit("slideChangeTransitionStart"),"next"===r?a.emit("slideNextTransitionStart"):a.emit("slidePrevTransitionStart")}},transitionEnd:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0,a=this,i=a.activeIndex,n=a.previousIndex;a.animating=!1,a.setTransition(0);var s=t;if(s||(s=i>n?"next":i<n?"prev":"reset"),a.emit("transitionEnd"),e&&i!==n){if("reset"===s)return void a.emit("slideResetTransitionEnd");a.emit("slideChangeTransitionEnd"),"next"===s?a.emit("slideNextTransitionEnd"):a.emit("slidePrevTransitionEnd")}}};var de={slideTo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0,n=this,s=e;s<0&&(s=0);var r=n.params,o=n.snapGrid,l=n.slidesGrid,d=n.previousIndex,c=n.activeIndex,u=n.rtlTranslate;if(n.animating&&r.preventInteractionOnTransition)return!1;var p=Math.floor(s/r.slidesPerGroup);p>=o.length&&(p=o.length-1),(c||r.initialSlide||0)===(d||0)&&a&&n.emit("beforeSlideChangeStart");var h,f=-o[p];if(n.updateProgress(f),r.normalizeSlideIndex)for(var v=0;v<l.length;v+=1)-Math.floor(100*f)>=Math.floor(100*l[v])&&(s=v);if(n.initialized&&s!==c){if(!n.allowSlideNext&&f<n.translate&&f<n.minTranslate())return!1;if(!n.allowSlidePrev&&f>n.translate&&f>n.maxTranslate()&&(c||0)!==s)return!1}return h=s>c?"next":s<c?"prev":"reset",u&&-f===n.translate||!u&&f===n.translate?(n.updateActiveIndex(s),r.autoHeight&&n.updateAutoHeight(),n.updateSlidesClasses(),"slide"!==r.effect&&n.setTranslate(f),"reset"!==h&&(n.transitionStart(a,h),n.transitionEnd(a,h)),!1):(0!==t&&ie.transition?(n.setTransition(t),n.setTranslate(f),n.updateActiveIndex(s),n.updateSlidesClasses(),n.emit("beforeTransitionStart",t,i),n.transitionStart(a,h),n.animating||(n.animating=!0,n.onSlideToWrapperTransitionEnd||(n.onSlideToWrapperTransitionEnd=function(e){n&&!n.destroyed&&e.target===this&&(n.$wrapperEl[0].removeEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.$wrapperEl[0].removeEventListener("webkitTransitionEnd",n.onSlideToWrapperTransitionEnd),n.onSlideToWrapperTransitionEnd=null,delete n.onSlideToWrapperTransitionEnd,n.transitionEnd(a,h))}),n.$wrapperEl[0].addEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.$wrapperEl[0].addEventListener("webkitTransitionEnd",n.onSlideToWrapperTransitionEnd))):(n.setTransition(0),n.setTranslate(f),n.updateActiveIndex(s),n.updateSlidesClasses(),n.emit("beforeTransitionStart",t,i),n.transitionStart(a,h),n.transitionEnd(a,h)),!0)},slideToLoop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0,n=this,s=e;return n.params.loop&&(s+=n.loopedSlides),n.slideTo(s,t,a,i)},slideNext:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2?arguments[2]:void 0,i=this,n=i.params,s=i.animating;return n.loop?!s&&(i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft,i.slideTo(i.activeIndex+n.slidesPerGroup,e,t,a)):i.slideTo(i.activeIndex+n.slidesPerGroup,e,t,a)},slidePrev:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2?arguments[2]:void 0,i=this,n=i.params,s=i.animating,r=i.snapGrid,o=i.slidesGrid,l=i.rtlTranslate;if(n.loop){if(s)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}var d=l?i.translate:-i.translate;function c(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var u,p=c(d),h=r.map((function(e){return c(e)})),f=(o.map((function(e){return c(e)})),r[h.indexOf(p)],r[h.indexOf(p)-1]);return void 0!==f&&(u=o.indexOf(f))<0&&(u=i.activeIndex-1),i.slideTo(u,e,t,a)},slideReset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2?arguments[2]:void 0,i=this;return i.slideTo(i.activeIndex,e,t,a)},slideToClosest:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2?arguments[2]:void 0,i=this,n=i.activeIndex,s=Math.floor(n/i.params.slidesPerGroup);if(s<i.snapGrid.length-1){var r=i.rtlTranslate?i.translate:-i.translate,o=i.snapGrid[s],l=i.snapGrid[s+1];r-o>(l-o)/2&&(n=i.params.slidesPerGroup)}return i.slideTo(n,e,t,a)},slideToClickedSlide:function(){var e,t=this,a=t.params,i=t.$wrapperEl,n="auto"===a.slidesPerView?t.slidesPerViewDynamic():a.slidesPerView,s=t.clickedIndex;if(a.loop){if(t.animating)return;e=parseInt(U(t.clickedSlide).attr("data-swiper-slide-index"),10),a.centeredSlides?s<t.loopedSlides-n/2||s>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),s=i.children(".".concat(a.slideClass,'[data-swiper-slide-index="').concat(e,'"]:not(.').concat(a.slideDuplicateClass,")")).eq(0).index(),ae.nextTick((function(){t.slideTo(s)}))):t.slideTo(s):s>t.slides.length-n?(t.loopFix(),s=i.children(".".concat(a.slideClass,'[data-swiper-slide-index="').concat(e,'"]:not(.').concat(a.slideDuplicateClass,")")).eq(0).index(),ae.nextTick((function(){t.slideTo(s)}))):t.slideTo(s)}else t.slideTo(s)}};var ce={loopCreate:function(){var e=this,t=e.params,a=e.$wrapperEl;a.children(".".concat(t.slideClass,".").concat(t.slideDuplicateClass)).remove();var i=a.children(".".concat(t.slideClass));if(t.loopFillGroupWithBlank){var n=t.slidesPerGroup-i.length%t.slidesPerGroup;if(n!==t.slidesPerGroup){for(var s=0;s<n;s+=1){var r=U(j.createElement("div")).addClass("".concat(t.slideClass," ").concat(t.slideBlankClass));a.append(r)}i=a.children(".".concat(t.slideClass))}}"auto"!==t.slidesPerView||t.loopedSlides||(t.loopedSlides=i.length),e.loopedSlides=parseInt(t.loopedSlides||t.slidesPerView,10),e.loopedSlides+=t.loopAdditionalSlides,e.loopedSlides>i.length&&(e.loopedSlides=i.length);var o=[],l=[];i.each((function(t,a){var n=U(a);t<e.loopedSlides&&l.push(a),t<i.length&&t>=i.length-e.loopedSlides&&o.push(a),n.attr("data-swiper-slide-index",t)}));for(var d=0;d<l.length;d+=1)a.append(U(l[d].cloneNode(!0)).addClass(t.slideDuplicateClass));for(var c=o.length-1;c>=0;c-=1)a.prepend(U(o[c].cloneNode(!0)).addClass(t.slideDuplicateClass))},loopFix:function(){var e,t=this,a=t.params,i=t.activeIndex,n=t.slides,s=t.loopedSlides,r=t.allowSlidePrev,o=t.allowSlideNext,l=t.snapGrid,d=t.rtlTranslate;t.allowSlidePrev=!0,t.allowSlideNext=!0;var c=-l[i]-t.getTranslate();if(i<s)e=n.length-3*s+i,e+=s,t.slideTo(e,0,!1,!0)&&0!==c&&t.setTranslate((d?-t.translate:t.translate)-c);else if("auto"===a.slidesPerView&&i>=2*s||i>=n.length-s){e=-n.length+i+s,e+=s,t.slideTo(e,0,!1,!0)&&0!==c&&t.setTranslate((d?-t.translate:t.translate)-c)}t.allowSlidePrev=r,t.allowSlideNext=o},loopDestroy:function(){var e=this,t=e.$wrapperEl,a=e.params,i=e.slides;t.children(".".concat(a.slideClass,".").concat(a.slideDuplicateClass,",.").concat(a.slideClass,".").concat(a.slideBlankClass)).remove(),i.removeAttr("data-swiper-slide-index")}};var ue={setGrabCursor:function(e){var t=this;if(!(ie.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked)){var a=t.el;a.style.cursor="move",a.style.cursor=e?"-webkit-grabbing":"-webkit-grab",a.style.cursor=e?"-moz-grabbin":"-moz-grab",a.style.cursor=e?"grabbing":"grab"}},unsetGrabCursor:function(){var e=this;ie.touch||e.params.watchOverflow&&e.isLocked||(e.el.style.cursor="")}};var pe={appendSlide:function(e){var t=this,a=t.$wrapperEl,i=t.params;if(i.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(var n=0;n<e.length;n+=1)e[n]&&a.append(e[n]);else a.append(e);i.loop&&t.loopCreate(),i.observer&&ie.observer||t.update()},prependSlide:function(e){var t=this,a=t.params,i=t.$wrapperEl,n=t.activeIndex;a.loop&&t.loopDestroy();var s=n+1;if("object"==typeof e&&"length"in e){for(var r=0;r<e.length;r+=1)e[r]&&i.prepend(e[r]);s=n+e.length}else i.prepend(e);a.loop&&t.loopCreate(),a.observer&&ie.observer||t.update(),t.slideTo(s,0,!1)},addSlide:function(e,t){var a=this,i=a.$wrapperEl,n=a.params,s=a.activeIndex;n.loop&&(s-=a.loopedSlides,a.loopDestroy(),a.slides=i.children(".".concat(n.slideClass)));var r=a.slides.length;if(e<=0)a.prependSlide(t);else if(e>=r)a.appendSlide(t);else{for(var o=s>e?s+1:s,l=[],d=r-1;d>=e;d-=1){var c=a.slides.eq(d);c.remove(),l.unshift(c)}if("object"==typeof t&&"length"in t){for(var u=0;u<t.length;u+=1)t[u]&&i.append(t[u]);o=s>e?s+t.length:s}else i.append(t);for(var p=0;p<l.length;p+=1)i.append(l[p]);n.loop&&a.loopCreate(),n.observer&&ie.observer||a.update(),n.loop?a.slideTo(o+a.loopedSlides,0,!1):a.slideTo(o,0,!1)}},removeSlide:function(e){var t=this,a=t.params,i=t.$wrapperEl,n=t.activeIndex;a.loop&&(n-=t.loopedSlides,t.loopDestroy(),t.slides=i.children(".".concat(a.slideClass)));var s,r=n;if("object"==typeof e&&"length"in e){for(var o=0;o<e.length;o+=1)s=e[o],t.slides[s]&&t.slides.eq(s).remove(),s<r&&(r-=1);r=Math.max(r,0)}else s=e,t.slides[s]&&t.slides.eq(s).remove(),s<r&&(r-=1),r=Math.max(r,0);a.loop&&t.loopCreate(),a.observer&&ie.observer||t.update(),a.loop?t.slideTo(r+t.loopedSlides,0,!1):t.slideTo(r,0,!1)},removeAllSlides:function(){for(var e=[],t=0;t<this.slides.length;t+=1)e.push(t);this.removeSlide(e)}},he=function(){var e=q.navigator.userAgent,t={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:q.cordova||q.phonegap,phonegap:q.cordova||q.phonegap},a=e.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),i=e.match(/(Android);?[\s\/]+([\d.]+)?/),n=e.match(/(iPad).*OS\s([\d_]+)/),s=e.match(/(iPod)(.*OS\s([\d_]+))?/),r=!n&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(a&&(t.os="windows",t.osVersion=a[2],t.windows=!0),i&&!a&&(t.os="android",t.osVersion=i[2],t.android=!0,t.androidChrome=e.toLowerCase().indexOf("chrome")>=0),(n||r||s)&&(t.os="ios",t.ios=!0),r&&!s&&(t.osVersion=r[2].replace(/_/g,"."),t.iphone=!0),n&&(t.osVersion=n[2].replace(/_/g,"."),t.ipad=!0),s&&(t.osVersion=s[3]?s[3].replace(/_/g,"."):null,t.iphone=!0),t.ios&&t.osVersion&&e.indexOf("Version/")>=0&&"10"===t.osVersion.split(".")[0]&&(t.osVersion=e.toLowerCase().split("version/")[1].split(" ")[0]),t.desktop=!(t.os||t.android||t.webView),t.webView=(r||n||s)&&e.match(/.*AppleWebKit(?!.*Safari)/i),t.os&&"ios"===t.os){var o=t.osVersion.split("."),l=j.querySelector('meta[name="viewport"]');t.minimalUi=!t.webView&&(s||r)&&(1*o[0]==7?1*o[1]>=1:1*o[0]>7)&&l&&l.getAttribute("content").indexOf("minimal-ui")>=0}return t.pixelRatio=q.devicePixelRatio||1,t}();function fe(e){var t=this,a=t.touchEventsData,i=t.params,n=t.touches;if(!t.animating||!i.preventInteractionOnTransition){var s=e;if(s.originalEvent&&(s=s.originalEvent),a.isTouchEvent="touchstart"===s.type,(a.isTouchEvent||!("which"in s)||3!==s.which)&&!(!a.isTouchEvent&&"button"in s&&s.button>0||a.isTouched&&a.isMoved))if(i.noSwiping&&U(s.target).closest(i.noSwipingSelector?i.noSwipingSelector:".".concat(i.noSwipingClass))[0])t.allowClick=!0;else if(!i.swipeHandler||U(s).closest(i.swipeHandler)[0]){n.currentX="touchstart"===s.type?s.targetTouches[0].pageX:s.pageX,n.currentY="touchstart"===s.type?s.targetTouches[0].pageY:s.pageY;var r=n.currentX,o=n.currentY,l=i.edgeSwipeDetection||i.iOSEdgeSwipeDetection,d=i.edgeSwipeThreshold||i.iOSEdgeSwipeThreshold;if(!l||!(r<=d||r>=q.screen.width-d)){if(ae.extend(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),n.startX=r,n.startY=o,a.touchStartTime=ae.now(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,i.threshold>0&&(a.allowThresholdMove=!1),"touchstart"!==s.type){var c=!0;U(s.target).is(a.formElements)&&(c=!1),j.activeElement&&U(j.activeElement).is(a.formElements)&&j.activeElement!==s.target&&j.activeElement.blur();var u=c&&t.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||u)&&s.preventDefault()}t.emit("touchStart",s)}}}}function ve(e){var t=this,a=t.touchEventsData,i=t.params,n=t.touches,s=t.rtlTranslate,r=e;if(r.originalEvent&&(r=r.originalEvent),a.isTouched){if(!a.isTouchEvent||"mousemove"!==r.type){var o="touchmove"===r.type?r.targetTouches[0].pageX:r.pageX,l="touchmove"===r.type?r.targetTouches[0].pageY:r.pageY;if(r.preventedByNestedSwiper)return n.startX=o,void(n.startY=l);if(!t.allowTouchMove)return t.allowClick=!1,void(a.isTouched&&(ae.extend(n,{startX:o,startY:l,currentX:o,currentY:l}),a.touchStartTime=ae.now()));if(a.isTouchEvent&&i.touchReleaseOnEdges&&!i.loop)if(t.isVertical()){if(l<n.startY&&t.translate<=t.maxTranslate()||l>n.startY&&t.translate>=t.minTranslate())return a.isTouched=!1,void(a.isMoved=!1)}else if(o<n.startX&&t.translate<=t.maxTranslate()||o>n.startX&&t.translate>=t.minTranslate())return;if(a.isTouchEvent&&j.activeElement&&r.target===j.activeElement&&U(r.target).is(a.formElements))return a.isMoved=!0,void(t.allowClick=!1);if(a.allowTouchCallbacks&&t.emit("touchMove",r),!(r.targetTouches&&r.targetTouches.length>1)){n.currentX=o,n.currentY=l;var d=n.currentX-n.startX,c=n.currentY-n.startY;if(!(t.params.threshold&&Math.sqrt(Math.pow(d,2)+Math.pow(c,2))<t.params.threshold)){var u;if(void 0===a.isScrolling)t.isHorizontal()&&n.currentY===n.startY||t.isVertical()&&n.currentX===n.startX?a.isScrolling=!1:d*d+c*c>=25&&(u=180*Math.atan2(Math.abs(c),Math.abs(d))/Math.PI,a.isScrolling=t.isHorizontal()?u>i.touchAngle:90-u>i.touchAngle);if(a.isScrolling&&t.emit("touchMoveOpposite",r),void 0===a.startMoving&&(n.currentX===n.startX&&n.currentY===n.startY||(a.startMoving=!0)),a.isScrolling)a.isTouched=!1;else if(a.startMoving){t.allowClick=!1,r.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&r.stopPropagation(),a.isMoved||(i.loop&&t.loopFix(),a.startTranslate=t.getTranslate(),t.setTransition(0),t.animating&&t.$wrapperEl.trigger("webkitTransitionEnd transitionend"),a.allowMomentumBounce=!1,!i.grabCursor||!0!==t.allowSlideNext&&!0!==t.allowSlidePrev||t.setGrabCursor(!0),t.emit("sliderFirstMove",r)),t.emit("sliderMove",r),a.isMoved=!0;var p=t.isHorizontal()?d:c;n.diff=p,p*=i.touchRatio,s&&(p=-p),t.swipeDirection=p>0?"prev":"next",a.currentTranslate=p+a.startTranslate;var h=!0,f=i.resistanceRatio;if(i.touchReleaseOnEdges&&(f=0),p>0&&a.currentTranslate>t.minTranslate()?(h=!1,i.resistance&&(a.currentTranslate=t.minTranslate()-1+Math.pow(-t.minTranslate()+a.startTranslate+p,f))):p<0&&a.currentTranslate<t.maxTranslate()&&(h=!1,i.resistance&&(a.currentTranslate=t.maxTranslate()+1-Math.pow(t.maxTranslate()-a.startTranslate-p,f))),h&&(r.preventedByNestedSwiper=!0),!t.allowSlideNext&&"next"===t.swipeDirection&&a.currentTranslate<a.startTranslate&&(a.currentTranslate=a.startTranslate),!t.allowSlidePrev&&"prev"===t.swipeDirection&&a.currentTranslate>a.startTranslate&&(a.currentTranslate=a.startTranslate),i.threshold>0){if(!(Math.abs(p)>i.threshold||a.allowThresholdMove))return void(a.currentTranslate=a.startTranslate);if(!a.allowThresholdMove)return a.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,a.currentTranslate=a.startTranslate,void(n.diff=t.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY)}i.followFinger&&((i.freeMode||i.watchSlidesProgress||i.watchSlidesVisibility)&&(t.updateActiveIndex(),t.updateSlidesClasses()),i.freeMode&&(0===a.velocities.length&&a.velocities.push({position:n[t.isHorizontal()?"startX":"startY"],time:a.touchStartTime}),a.velocities.push({position:n[t.isHorizontal()?"currentX":"currentY"],time:ae.now()})),t.updateProgress(a.currentTranslate),t.setTranslate(a.currentTranslate))}}}}}else a.startMoving&&a.isScrolling&&t.emit("touchMoveOpposite",r)}function me(e){var t=this,a=t.touchEventsData,i=t.params,n=t.touches,s=t.rtlTranslate,r=t.$wrapperEl,o=t.slidesGrid,l=t.snapGrid,d=e;if(d.originalEvent&&(d=d.originalEvent),a.allowTouchCallbacks&&t.emit("touchEnd",d),a.allowTouchCallbacks=!1,!a.isTouched)return a.isMoved&&i.grabCursor&&t.setGrabCursor(!1),a.isMoved=!1,void(a.startMoving=!1);i.grabCursor&&a.isMoved&&a.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var c,u=ae.now(),p=u-a.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(d),t.emit("tap",d),p<300&&u-a.lastClickTime>300&&(a.clickTimeout&&clearTimeout(a.clickTimeout),a.clickTimeout=ae.nextTick((function(){t&&!t.destroyed&&t.emit("click",d)}),300)),p<300&&u-a.lastClickTime<300&&(a.clickTimeout&&clearTimeout(a.clickTimeout),t.emit("doubleTap",d))),a.lastClickTime=ae.now(),ae.nextTick((function(){t.destroyed||(t.allowClick=!0)})),!a.isTouched||!a.isMoved||!t.swipeDirection||0===n.diff||a.currentTranslate===a.startTranslate)return a.isTouched=!1,a.isMoved=!1,void(a.startMoving=!1);if(a.isTouched=!1,a.isMoved=!1,a.startMoving=!1,c=i.followFinger?s?t.translate:-t.translate:-a.currentTranslate,i.freeMode){if(c<-t.minTranslate())return void t.slideTo(t.activeIndex);if(c>-t.maxTranslate())return void(t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1));if(i.freeModeMomentum){if(a.velocities.length>1){var h=a.velocities.pop(),f=a.velocities.pop(),v=h.position-f.position,m=h.time-f.time;t.velocity=v/m,t.velocity/=2,Math.abs(t.velocity)<i.freeModeMinimumVelocity&&(t.velocity=0),(m>150||ae.now()-h.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=i.freeModeMomentumVelocityRatio,a.velocities.length=0;var g=1e3*i.freeModeMomentumRatio,b=t.velocity*g,w=t.translate+b;s&&(w=-w);var y,x,E=!1,S=20*Math.abs(t.velocity)*i.freeModeMomentumBounceRatio;if(w<t.maxTranslate())i.freeModeMomentumBounce?(w+t.maxTranslate()<-S&&(w=t.maxTranslate()-S),y=t.maxTranslate(),E=!0,a.allowMomentumBounce=!0):w=t.maxTranslate(),i.loop&&i.centeredSlides&&(x=!0);else if(w>t.minTranslate())i.freeModeMomentumBounce?(w-t.minTranslate()>S&&(w=t.minTranslate()+S),y=t.minTranslate(),E=!0,a.allowMomentumBounce=!0):w=t.minTranslate(),i.loop&&i.centeredSlides&&(x=!0);else if(i.freeModeSticky){for(var T,C=0;C<l.length;C+=1)if(l[C]>-w){T=C;break}w=-(w=Math.abs(l[T]-w)<Math.abs(l[T-1]-w)||"next"===t.swipeDirection?l[T]:l[T-1])}if(x&&t.once("transitionEnd",(function(){t.loopFix()})),0!==t.velocity)g=s?Math.abs((-w-t.translate)/t.velocity):Math.abs((w-t.translate)/t.velocity);else if(i.freeModeSticky)return void t.slideToClosest();i.freeModeMomentumBounce&&E?(t.updateProgress(y),t.setTransition(g),t.setTranslate(w),t.transitionStart(!0,t.swipeDirection),t.animating=!0,r.transitionEnd((function(){t&&!t.destroyed&&a.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(i.speed),t.setTranslate(y),r.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))}))):t.velocity?(t.updateProgress(w),t.setTransition(g),t.setTranslate(w),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,r.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(w),t.updateActiveIndex(),t.updateSlidesClasses()}else if(i.freeModeSticky)return void t.slideToClosest();(!i.freeModeMomentum||p>=i.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var k=0,M=t.slidesSizesGrid[0],P=0;P<o.length;P+=i.slidesPerGroup)void 0!==o[P+i.slidesPerGroup]?c>=o[P]&&c<o[P+i.slidesPerGroup]&&(k=P,M=o[P+i.slidesPerGroup]-o[P]):c>=o[P]&&(k=P,M=o[o.length-1]-o[o.length-2]);var z=(c-o[k])/M;if(p>i.longSwipesMs){if(!i.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(z>=i.longSwipesRatio?t.slideTo(k+i.slidesPerGroup):t.slideTo(k)),"prev"===t.swipeDirection&&(z>1-i.longSwipesRatio?t.slideTo(k+i.slidesPerGroup):t.slideTo(k))}else{if(!i.shortSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&t.slideTo(k+i.slidesPerGroup),"prev"===t.swipeDirection&&t.slideTo(k)}}}function ge(){var e=this,t=e.params,a=e.el;if(!a||0!==a.offsetWidth){t.breakpoints&&e.setBreakpoint();var i=e.allowSlideNext,n=e.allowSlidePrev,s=e.snapGrid;if(e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),t.freeMode){var r=Math.min(Math.max(e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(r),e.updateActiveIndex(),e.updateSlidesClasses(),t.autoHeight&&e.updateAutoHeight()}else e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=n,e.allowSlideNext=i,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}}function be(e){var t=this;t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}var we={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},ye={update:re,translate:oe,transition:le,slide:de,loop:ce,grabCursor:ue,manipulation:pe,events:{attachEvents:function(){var e=this,t=e.params,a=e.touchEvents,i=e.el,n=e.wrapperEl;e.onTouchStart=fe.bind(e),e.onTouchMove=ve.bind(e),e.onTouchEnd=me.bind(e),e.onClick=be.bind(e);var s="container"===t.touchEventsTarget?i:n,r=!!t.nested;if(ie.touch||!ie.pointerEvents&&!ie.prefixedPointerEvents){if(ie.touch){var o=!("touchstart"!==a.start||!ie.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};s.addEventListener(a.start,e.onTouchStart,o),s.addEventListener(a.move,e.onTouchMove,ie.passiveListener?{passive:!1,capture:r}:r),s.addEventListener(a.end,e.onTouchEnd,o)}(t.simulateTouch&&!he.ios&&!he.android||t.simulateTouch&&!ie.touch&&he.ios)&&(s.addEventListener("mousedown",e.onTouchStart,!1),j.addEventListener("mousemove",e.onTouchMove,r),j.addEventListener("mouseup",e.onTouchEnd,!1))}else s.addEventListener(a.start,e.onTouchStart,!1),j.addEventListener(a.move,e.onTouchMove,r),j.addEventListener(a.end,e.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&s.addEventListener("click",e.onClick,!0),e.on(he.ios||he.android?"resize orientationchange observerUpdate":"resize observerUpdate",ge,!0)},detachEvents:function(){var e=this,t=e.params,a=e.touchEvents,i=e.el,n=e.wrapperEl,s="container"===t.touchEventsTarget?i:n,r=!!t.nested;if(ie.touch||!ie.pointerEvents&&!ie.prefixedPointerEvents){if(ie.touch){var o=!("onTouchStart"!==a.start||!ie.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};s.removeEventListener(a.start,e.onTouchStart,o),s.removeEventListener(a.move,e.onTouchMove,r),s.removeEventListener(a.end,e.onTouchEnd,o)}(t.simulateTouch&&!he.ios&&!he.android||t.simulateTouch&&!ie.touch&&he.ios)&&(s.removeEventListener("mousedown",e.onTouchStart,!1),j.removeEventListener("mousemove",e.onTouchMove,r),j.removeEventListener("mouseup",e.onTouchEnd,!1))}else s.removeEventListener(a.start,e.onTouchStart,!1),j.removeEventListener(a.move,e.onTouchMove,r),j.removeEventListener(a.end,e.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&s.removeEventListener("click",e.onClick,!0),e.off(he.ios||he.android?"resize orientationchange observerUpdate":"resize observerUpdate",ge)}},breakpoints:{setBreakpoint:function(){var e=this,t=e.activeIndex,a=e.initialized,i=e.loopedSlides,n=void 0===i?0:i,s=e.params,r=s.breakpoints;if(r&&(!r||0!==Object.keys(r).length)){var o=e.getBreakpoint(r);if(o&&e.currentBreakpoint!==o){var l=o in r?r[o]:void 0;l&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach((function(e){var t=l[e];void 0!==t&&(l[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")}));var d=l||e.originalParams,c=d.direction&&d.direction!==s.direction,u=s.loop&&(d.slidesPerView!==s.slidesPerView||c);c&&a&&e.changeDirection(),ae.extend(e.params,d),ae.extend(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),e.currentBreakpoint=o,u&&a&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-n+e.loopedSlides,0,!1)),e.emit("breakpoint",d)}}},getBreakpoint:function(e){if(e){var t=!1,a=[];Object.keys(e).forEach((function(e){a.push(e)})),a.sort((function(e,t){return parseInt(e,10)-parseInt(t,10)}));for(var i=0;i<a.length;i+=1){var n=a[i];this.params.breakpointsInverse?n<=q.innerWidth&&(t=n):n>=q.innerWidth&&!t&&(t=n)}return t||"max"}}},checkOverflow:{checkOverflow:function(){var e=this,t=e.isLocked;e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),t&&t!==e.isLocked&&(e.isEnd=!1,e.navigation.update())}},classes:{addClasses:function(){var e=this,t=e.classNames,a=e.params,i=e.rtl,n=e.$el,s=[];s.push("initialized"),s.push(a.direction),a.freeMode&&s.push("free-mode"),ie.flexbox||s.push("no-flexbox"),a.autoHeight&&s.push("autoheight"),i&&s.push("rtl"),a.slidesPerColumn>1&&s.push("multirow"),he.android&&s.push("android"),he.ios&&s.push("ios"),(ne.isIE||ne.isEdge)&&(ie.pointerEvents||ie.prefixedPointerEvents)&&s.push("wp8-".concat(a.direction)),s.forEach((function(e){t.push(a.containerModifierClass+e)})),n.addClass(t.join(" "))},removeClasses:function(){var e=this.$el,t=this.classNames;e.removeClass(t.join(" "))}},images:{loadImage:function(e,t,a,i,n,s){var r;function o(){s&&s()}e.complete&&n?o():t?((r=new q.Image).onload=o,r.onerror=o,i&&(r.sizes=i),a&&(r.srcset=a),t&&(r.src=t)):o()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var a=0;a<e.imagesToLoad.length;a+=1){var i=e.imagesToLoad[a];e.loadImage(i,i.currentSrc||i.getAttribute("src"),i.srcset||i.getAttribute("srcset"),i.sizes||i.getAttribute("sizes"),!0,t)}}}},xe={},Ee=function(e){v()(a,e);var t=Q(a);function a(){var e,i,n;u()(this,a);for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];1===r.length&&r[0].constructor&&r[0].constructor===Object?n=r[0]:(i=r[0],n=r[1]),n||(n={}),n=ae.extend({},n),i&&!n.el&&(n.el=i),e=t.call(this,n),Object.keys(ye).forEach((function(e){Object.keys(ye[e]).forEach((function(t){a.prototype[t]||(a.prototype[t]=ye[e][t])}))}));var l=z()(e);void 0===l.modules&&(l.modules={}),Object.keys(l.modules).forEach((function(e){var t=l.modules[e];if(t.params){var a=Object.keys(t.params)[0],i=t.params[a];if("object"!=typeof i||null===i)return;if(!(a in n)||!("enabled"in i))return;!0===n[a]&&(n[a]={enabled:!0}),"object"!=typeof n[a]||"enabled"in n[a]||(n[a].enabled=!0),n[a]||(n[a]={enabled:!1})}}));var d=ae.extend({},we);l.useModulesParams(d),l.params=ae.extend({},d,xe,n),l.originalParams=ae.extend({},l.params),l.passedParams=ae.extend({},n),l.$=U;var c=U(l.params.el);if(!(i=c[0]))return X()(e,void 0);if(c.length>1){var p=[];return c.each((function(e,t){var i=ae.extend({},n,{el:t});p.push(new a(i))})),X()(e,p)}i.swiper=l,c.data("swiper",l);var h,f,v=c.children(".".concat(l.params.wrapperClass));return ae.extend(l,{$el:c,el:i,$wrapperEl:v,wrapperEl:v[0],classNames:[],slides:U(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===l.params.direction},isVertical:function(){return"vertical"===l.params.direction},rtl:"rtl"===i.dir.toLowerCase()||"rtl"===c.css("direction"),rtlTranslate:"horizontal"===l.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===c.css("direction")),wrongRTL:"-webkit-box"===v.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEvents:(h=["touchstart","touchmove","touchend"],f=["mousedown","mousemove","mouseup"],ie.pointerEvents?f=["pointerdown","pointermove","pointerup"]:ie.prefixedPointerEvents&&(f=["MSPointerDown","MSPointerMove","MSPointerUp"]),l.touchEventsTouch={start:h[0],move:h[1],end:h[2]},l.touchEventsDesktop={start:f[0],move:f[1],end:f[2]},ie.touch||!l.params.simulateTouch?l.touchEventsTouch:l.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video",lastClickTime:ae.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.useModules(),l.params.init&&l.init(),X()(e,l)}return h()(a,[{key:"slidesPerViewDynamic",value:function(){var e=this,t=e.params,a=e.slides,i=e.slidesGrid,n=e.size,s=e.activeIndex,r=1;if(t.centeredSlides){for(var o,l=a[s].swiperSlideSize,d=s+1;d<a.length;d+=1)a[d]&&!o&&(r+=1,(l+=a[d].swiperSlideSize)>n&&(o=!0));for(var c=s-1;c>=0;c-=1)a[c]&&!o&&(r+=1,(l+=a[c].swiperSlideSize)>n&&(o=!0))}else for(var u=s+1;u<a.length;u+=1)i[u]-i[s]<n&&(r+=1);return r}},{key:"update",value:function(){var e=this;if(e&&!e.destroyed){var t=e.snapGrid,a=e.params;a.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(i(),e.params.autoHeight&&e.updateAutoHeight()):(("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||i(),a.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function i(){var t=e.rtlTranslate?-1*e.translate:e.translate,a=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(a),e.updateActiveIndex(),e.updateSlidesClasses()}}},{key:"changeDirection",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=this,i=a.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(a.$el.removeClass("".concat(a.params.containerModifierClass).concat(i," wp8-").concat(i)).addClass("".concat(a.params.containerModifierClass).concat(e)),(ne.isIE||ne.isEdge)&&(ie.pointerEvents||ie.prefixedPointerEvents)&&a.$el.addClass("".concat(a.params.containerModifierClass,"wp8-").concat(e)),a.params.direction=e,a.slides.each((function(t,a){"vertical"===e?a.style.width="":a.style.height=""})),a.emit("changeDirection"),t&&a.update()),a}},{key:"init",value:function(){var e=this;e.initialized||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit),e.attachEvents(),e.initialized=!0,e.emit("init"))}},{key:"destroy",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=this,i=a.params,n=a.$el,s=a.$wrapperEl,r=a.slides;return void 0===a.params||a.destroyed||(a.emit("beforeDestroy"),a.initialized=!1,a.detachEvents(),i.loop&&a.loopDestroy(),t&&(a.removeClasses(),n.removeAttr("style"),s.removeAttr("style"),r&&r.length&&r.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),a.emit("destroy"),Object.keys(a.eventsListeners).forEach((function(e){a.off(e)})),!1!==e&&(a.$el[0].swiper=null,a.$el.data("swiper",null),ae.deleteProps(a)),a.destroyed=!0),null}}],[{key:"extendDefaults",value:function(e){ae.extend(xe,e)}},{key:"extendedDefaults",get:function(){return xe}},{key:"defaults",get:function(){return we}},{key:"Class",get:function(){return se}},{key:"$",get:function(){return U}}]),a}(se),Se={name:"device",proto:{device:he},static:{device:he}},Te={name:"support",proto:{support:ie},static:{support:ie}},Ce={name:"browser",proto:{browser:ne},static:{browser:ne}},ke={name:"resize",create:function(){var e=this;ae.extend(e,{resize:{resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(){q.addEventListener("resize",this.resize.resizeHandler),q.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy:function(){q.removeEventListener("resize",this.resize.resizeHandler),q.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}},Me={func:q.MutationObserver||q.WebkitMutationObserver,attach:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=this,i=Me.func,n=new i((function(e){if(1!==e.length){var t=function(){a.emit("observerUpdate",e[0])};q.requestAnimationFrame?q.requestAnimationFrame(t):q.setTimeout(t,0)}else a.emit("observerUpdate",e[0])}));n.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),a.observer.observers.push(n)},init:function(){var e=this;if(ie.observer&&e.params.observer){if(e.params.observeParents)for(var t=e.$el.parents(),a=0;a<t.length;a+=1)e.observer.attach(t[a]);e.observer.attach(e.$el[0],{childList:e.params.observeSlideChildren}),e.observer.attach(e.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach((function(e){e.disconnect()})),this.observer.observers=[]}},Pe={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){var e=this;ae.extend(e,{observer:{init:Me.init.bind(e),attach:Me.attach.bind(e),destroy:Me.destroy.bind(e),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},ze={update:function(e){var t=this,a=t.params,i=a.slidesPerView,n=a.slidesPerGroup,s=a.centeredSlides,r=t.params.virtual,o=r.addSlidesBefore,l=r.addSlidesAfter,d=t.virtual,c=d.from,u=d.to,p=d.slides,h=d.slidesGrid,f=d.renderSlide,v=d.offset;t.updateActiveIndex();var m,g,b,w=t.activeIndex||0;m=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",s?(g=Math.floor(i/2)+n+o,b=Math.floor(i/2)+n+l):(g=i+(n-1)+o,b=n+l);var y=Math.max((w||0)-b,0),x=Math.min((w||0)+g,p.length-1),E=(t.slidesGrid[y]||0)-(t.slidesGrid[0]||0);function S(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(ae.extend(t.virtual,{from:y,to:x,offset:E,slidesGrid:t.slidesGrid}),c===y&&u===x&&!e)return t.slidesGrid!==h&&E!==v&&t.slides.css(m,"".concat(E,"px")),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:E,from:y,to:x,slides:function(){for(var e=[],t=y;t<=x;t+=1)e.push(p[t]);return e}()}),void S();var T=[],C=[];if(e)t.$wrapperEl.find(".".concat(t.params.slideClass)).remove();else for(var k=c;k<=u;k+=1)(k<y||k>x)&&t.$wrapperEl.find(".".concat(t.params.slideClass,'[data-swiper-slide-index="').concat(k,'"]')).remove();for(var M=0;M<p.length;M+=1)M>=y&&M<=x&&(void 0===u||e?C.push(M):(M>u&&C.push(M),M<c&&T.push(M)));C.forEach((function(e){t.$wrapperEl.append(f(p[e],e))})),T.sort((function(e,t){return t-e})).forEach((function(e){t.$wrapperEl.prepend(f(p[e],e))})),t.$wrapperEl.children(".swiper-slide").css(m,"".concat(E,"px")),S()},renderSlide:function(e,t){var a=this,i=a.params.virtual;if(i.cache&&a.virtual.cache[t])return a.virtual.cache[t];var n=i.renderSlide?U(i.renderSlide.call(a,e,t)):U('<div class="'.concat(a.params.slideClass,'" data-swiper-slide-index="').concat(t,'">').concat(e,"</div>"));return n.attr("data-swiper-slide-index")||n.attr("data-swiper-slide-index",t),i.cache&&(a.virtual.cache[t]=n),n},appendSlide:function(e){var t=this;if("object"==typeof e&&"length"in e)for(var a=0;a<e.length;a+=1)e[a]&&t.virtual.slides.push(e[a]);else t.virtual.slides.push(e);t.virtual.update(!0)},prependSlide:function(e){var t=this,a=t.activeIndex,i=a+1,n=1;if(Array.isArray(e)){for(var s=0;s<e.length;s+=1)e[s]&&t.virtual.slides.unshift(e[s]);i=a+e.length,n=e.length}else t.virtual.slides.unshift(e);if(t.params.virtual.cache){var r=t.virtual.cache,o={};Object.keys(r).forEach((function(e){o[parseInt(e,10)+n]=r[e]})),t.virtual.cache=o}t.virtual.update(!0),t.slideTo(i,0)},removeSlide:function(e){var t=this;if(null!=e){var a=t.activeIndex;if(Array.isArray(e))for(var i=e.length-1;i>=0;i-=1)t.virtual.slides.splice(e[i],1),t.params.virtual.cache&&delete t.virtual.cache[e[i]],e[i]<a&&(a-=1),a=Math.max(a,0);else t.virtual.slides.splice(e,1),t.params.virtual.cache&&delete t.virtual.cache[e],e<a&&(a-=1),a=Math.max(a,0);t.virtual.update(!0),t.slideTo(a,0)}},removeAllSlides:function(){var e=this;e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),e.virtual.update(!0),e.slideTo(0,0)}},Ie={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){var e=this;ae.extend(e,{virtual:{update:ze.update.bind(e),appendSlide:ze.appendSlide.bind(e),prependSlide:ze.prependSlide.bind(e),removeSlide:ze.removeSlide.bind(e),removeAllSlides:ze.removeAllSlides.bind(e),renderSlide:ze.renderSlide.bind(e),slides:e.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){var e=this;if(e.params.virtual.enabled){e.classNames.push("".concat(e.params.containerModifierClass,"virtual"));var t={watchSlidesProgress:!0};ae.extend(e.params,t),ae.extend(e.originalParams,t),e.params.initialSlide||e.virtual.update()}},setTranslate:function(){this.params.virtual.enabled&&this.virtual.update()}}},$e={handle:function(e){var t=this,a=t.rtlTranslate,i=e;i.originalEvent&&(i=i.originalEvent);var n=i.keyCode||i.charCode;if(!t.allowSlideNext&&(t.isHorizontal()&&39===n||t.isVertical()&&40===n||34===n))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&37===n||t.isVertical()&&38===n||33===n))return!1;if(!(i.shiftKey||i.altKey||i.ctrlKey||i.metaKey||j.activeElement&&j.activeElement.nodeName&&("input"===j.activeElement.nodeName.toLowerCase()||"textarea"===j.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(33===n||34===n||37===n||39===n||38===n||40===n)){var s=!1;if(t.$el.parents(".".concat(t.params.slideClass)).length>0&&0===t.$el.parents(".".concat(t.params.slideActiveClass)).length)return;var r=q.innerWidth,o=q.innerHeight,l=t.$el.offset();a&&(l.left-=t.$el[0].scrollLeft);for(var d=[[l.left,l.top],[l.left+t.width,l.top],[l.left,l.top+t.height],[l.left+t.width,l.top+t.height]],c=0;c<d.length;c+=1){var u=d[c];u[0]>=0&&u[0]<=r&&u[1]>=0&&u[1]<=o&&(s=!0)}if(!s)return}t.isHorizontal()?(33!==n&&34!==n&&37!==n&&39!==n||(i.preventDefault?i.preventDefault():i.returnValue=!1),(34!==n&&39!==n||a)&&(33!==n&&37!==n||!a)||t.slideNext(),(33!==n&&37!==n||a)&&(34!==n&&39!==n||!a)||t.slidePrev()):(33!==n&&34!==n&&38!==n&&40!==n||(i.preventDefault?i.preventDefault():i.returnValue=!1),34!==n&&40!==n||t.slideNext(),33!==n&&38!==n||t.slidePrev()),t.emit("keyPress",n)}},enable:function(){var e=this;e.keyboard.enabled||(U(j).on("keydown",e.keyboard.handle),e.keyboard.enabled=!0)},disable:function(){var e=this;e.keyboard.enabled&&(U(j).off("keydown",e.keyboard.handle),e.keyboard.enabled=!1)}},Le={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){var e=this;ae.extend(e,{keyboard:{enabled:!1,enable:$e.enable.bind(e),disable:$e.disable.bind(e),handle:$e.handle.bind(e)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}};var Oe={lastScrollTime:ae.now(),event:q.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){var e="onwheel",t=e in j;if(!t){var a=j.createElement("div");a.setAttribute(e,"return;"),t="function"==typeof a.onwheel}return!t&&j.implementation&&j.implementation.hasFeature&&!0!==j.implementation.hasFeature("","")&&(t=j.implementation.hasFeature("Events.wheel","3.0")),t}()?"wheel":"mousewheel",normalize:function(e){var t=0,a=0,i=0,n=0;return"detail"in e&&(a=e.detail),"wheelDelta"in e&&(a=-e.wheelDelta/120),"wheelDeltaY"in e&&(a=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=a,a=0),i=10*t,n=10*a,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||n)&&e.deltaMode&&(1===e.deltaMode?(i*=40,n*=40):(i*=800,n*=800)),i&&!t&&(t=i<1?-1:1),n&&!a&&(a=n<1?-1:1),{spinX:t,spinY:a,pixelX:i,pixelY:n}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(e){var t=e,a=this,i=a.params.mousewheel;if(!a.mouseEntered&&!i.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);var n=0,s=a.rtlTranslate?-1:1,r=Oe.normalize(t);if(i.forceToAxis)if(a.isHorizontal()){if(!(Math.abs(r.pixelX)>Math.abs(r.pixelY)))return!0;n=r.pixelX*s}else{if(!(Math.abs(r.pixelY)>Math.abs(r.pixelX)))return!0;n=r.pixelY}else n=Math.abs(r.pixelX)>Math.abs(r.pixelY)?-r.pixelX*s:-r.pixelY;if(0===n)return!0;if(i.invert&&(n=-n),a.params.freeMode){a.params.loop&&a.loopFix();var o=a.getTranslate()+n*i.sensitivity,l=a.isBeginning,d=a.isEnd;if(o>=a.minTranslate()&&(o=a.minTranslate()),o<=a.maxTranslate()&&(o=a.maxTranslate()),a.setTransition(0),a.setTranslate(o),a.updateProgress(),a.updateActiveIndex(),a.updateSlidesClasses(),(!l&&a.isBeginning||!d&&a.isEnd)&&a.updateSlidesClasses(),a.params.freeModeSticky&&(clearTimeout(a.mousewheel.timeout),a.mousewheel.timeout=ae.nextTick((function(){a.slideToClosest()}),300)),a.emit("scroll",t),a.params.autoplay&&a.params.autoplayDisableOnInteraction&&a.autoplay.stop(),o===a.minTranslate()||o===a.maxTranslate())return!0}else{if(ae.now()-a.mousewheel.lastScrollTime>60)if(n<0)if(a.isEnd&&!a.params.loop||a.animating){if(i.releaseOnEdges)return!0}else a.slideNext(),a.emit("scroll",t);else if(a.isBeginning&&!a.params.loop||a.animating){if(i.releaseOnEdges)return!0}else a.slidePrev(),a.emit("scroll",t);a.mousewheel.lastScrollTime=(new q.Date).getTime()}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},enable:function(){var e=this;if(!Oe.event)return!1;if(e.mousewheel.enabled)return!1;var t=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(t=U(e.params.mousewheel.eventsTarged)),t.on("mouseenter",e.mousewheel.handleMouseEnter),t.on("mouseleave",e.mousewheel.handleMouseLeave),t.on(Oe.event,e.mousewheel.handle),e.mousewheel.enabled=!0,!0},disable:function(){var e=this;if(!Oe.event)return!1;if(!e.mousewheel.enabled)return!1;var t=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(t=U(e.params.mousewheel.eventsTarged)),t.off(Oe.event,e.mousewheel.handle),e.mousewheel.enabled=!1,!0}},Ae={update:function(){var e=this,t=e.params.navigation;if(!e.params.loop){var a=e.navigation,i=a.$nextEl,n=a.$prevEl;n&&n.length>0&&(e.isBeginning?n.addClass(t.disabledClass):n.removeClass(t.disabledClass),n[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass)),i&&i.length>0&&(e.isEnd?i.addClass(t.disabledClass):i.removeClass(t.disabledClass),i[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(e){var t=this;e.preventDefault(),t.isBeginning&&!t.params.loop||t.slidePrev()},onNextClick:function(e){var t=this;e.preventDefault(),t.isEnd&&!t.params.loop||t.slideNext()},init:function(){var e,t,a=this,i=a.params.navigation;(i.nextEl||i.prevEl)&&(i.nextEl&&(e=U(i.nextEl),a.params.uniqueNavElements&&"string"==typeof i.nextEl&&e.length>1&&1===a.$el.find(i.nextEl).length&&(e=a.$el.find(i.nextEl))),i.prevEl&&(t=U(i.prevEl),a.params.uniqueNavElements&&"string"==typeof i.prevEl&&t.length>1&&1===a.$el.find(i.prevEl).length&&(t=a.$el.find(i.prevEl))),e&&e.length>0&&e.on("click",a.navigation.onNextClick),t&&t.length>0&&t.on("click",a.navigation.onPrevClick),ae.extend(a.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}))},destroy:function(){var e=this,t=e.navigation,a=t.$nextEl,i=t.$prevEl;a&&a.length&&(a.off("click",e.navigation.onNextClick),a.removeClass(e.params.navigation.disabledClass)),i&&i.length&&(i.off("click",e.navigation.onPrevClick),i.removeClass(e.params.navigation.disabledClass))}},De={update:function(){var e=this,t=e.rtl,a=e.params.pagination;if(a.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var i,n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,s=e.pagination.$el,r=e.params.loop?Math.ceil((n-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?((i=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup))>n-1-2*e.loopedSlides&&(i-=n-2*e.loopedSlides),i>r-1&&(i-=r),i<0&&"bullets"!==e.params.paginationType&&(i=r+i)):i=void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===a.type&&e.pagination.bullets&&e.pagination.bullets.length>0){var o,l,d,c=e.pagination.bullets;if(a.dynamicBullets&&(e.pagination.bulletSize=c.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),s.css(e.isHorizontal()?"width":"height","".concat(e.pagination.bulletSize*(a.dynamicMainBullets+4),"px")),a.dynamicMainBullets>1&&void 0!==e.previousIndex&&(e.pagination.dynamicBulletIndex+=i-e.previousIndex,e.pagination.dynamicBulletIndex>a.dynamicMainBullets-1?e.pagination.dynamicBulletIndex=a.dynamicMainBullets-1:e.pagination.dynamicBulletIndex<0&&(e.pagination.dynamicBulletIndex=0)),o=i-e.pagination.dynamicBulletIndex,d=((l=o+(Math.min(c.length,a.dynamicMainBullets)-1))+o)/2),c.removeClass("".concat(a.bulletActiveClass," ").concat(a.bulletActiveClass,"-next ").concat(a.bulletActiveClass,"-next-next ").concat(a.bulletActiveClass,"-prev ").concat(a.bulletActiveClass,"-prev-prev ").concat(a.bulletActiveClass,"-main")),s.length>1)c.each((function(e,t){var n=U(t),s=n.index();s===i&&n.addClass(a.bulletActiveClass),a.dynamicBullets&&(s>=o&&s<=l&&n.addClass("".concat(a.bulletActiveClass,"-main")),s===o&&n.prev().addClass("".concat(a.bulletActiveClass,"-prev")).prev().addClass("".concat(a.bulletActiveClass,"-prev-prev")),s===l&&n.next().addClass("".concat(a.bulletActiveClass,"-next")).next().addClass("".concat(a.bulletActiveClass,"-next-next")))}));else if(c.eq(i).addClass(a.bulletActiveClass),a.dynamicBullets){for(var u=c.eq(o),p=c.eq(l),h=o;h<=l;h+=1)c.eq(h).addClass("".concat(a.bulletActiveClass,"-main"));u.prev().addClass("".concat(a.bulletActiveClass,"-prev")).prev().addClass("".concat(a.bulletActiveClass,"-prev-prev")),p.next().addClass("".concat(a.bulletActiveClass,"-next")).next().addClass("".concat(a.bulletActiveClass,"-next-next"))}if(a.dynamicBullets){var f=Math.min(c.length,a.dynamicMainBullets+4),v=(e.pagination.bulletSize*f-e.pagination.bulletSize)/2-d*e.pagination.bulletSize,m=t?"right":"left";c.css(e.isHorizontal()?m:"top","".concat(v,"px"))}}if("fraction"===a.type&&(s.find(".".concat(a.currentClass)).text(a.formatFractionCurrent(i+1)),s.find(".".concat(a.totalClass)).text(a.formatFractionTotal(r))),"progressbar"===a.type){var g;g=a.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";var b=(i+1)/r,w=1,y=1;"horizontal"===g?w=b:y=b,s.find(".".concat(a.progressbarFillClass)).transform("translate3d(0,0,0) scaleX(".concat(w,") scaleY(").concat(y,")")).transition(e.params.speed)}"custom"===a.type&&a.renderCustom?(s.html(a.renderCustom(e,i+1,r)),e.emit("paginationRender",e,s[0])):e.emit("paginationUpdate",e,s[0]),s[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](a.lockClass)}},render:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var a=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,i=e.pagination.$el,n="";if("bullets"===t.type){for(var s=e.params.loop?Math.ceil((a-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length,r=0;r<s;r+=1)t.renderBullet?n+=t.renderBullet.call(e,r,t.bulletClass):n+="<".concat(t.bulletElement,' class="').concat(t.bulletClass,'"></').concat(t.bulletElement,">");i.html(n),e.pagination.bullets=i.find(".".concat(t.bulletClass))}"fraction"===t.type&&(n=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):'<span class="'.concat(t.currentClass,'"></span>')+" / "+'<span class="'.concat(t.totalClass,'"></span>'),i.html(n)),"progressbar"===t.type&&(n=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):'<span class="'.concat(t.progressbarFillClass,'"></span>'),i.html(n)),"custom"!==t.type&&e.emit("paginationRender",e.pagination.$el[0])}},init:function(){var e=this,t=e.params.pagination;if(t.el){var a=U(t.el);0!==a.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&a.length>1&&1===e.$el.find(t.el).length&&(a=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&a.addClass(t.clickableClass),a.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(a.addClass("".concat(t.modifierClass).concat(t.type,"-dynamic")),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&a.addClass(t.progressbarOppositeClass),t.clickable&&a.on("click",".".concat(t.bulletClass),(function(t){t.preventDefault();var a=U(this).index()*e.params.slidesPerGroup;e.params.loop&&(a+=e.loopedSlides),e.slideTo(a)})),ae.extend(e.pagination,{$el:a,el:a[0]}))}},destroy:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var a=e.pagination.$el;a.removeClass(t.hiddenClass),a.removeClass(t.modifierClass+t.type),e.pagination.bullets&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&a.off("click",".".concat(t.bulletClass))}}},_e={setTranslate:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,a=e.rtlTranslate,i=e.progress,n=t.dragSize,s=t.trackSize,r=t.$dragEl,o=t.$el,l=e.params.scrollbar,d=n,c=(s-n)*i;a?(c=-c)>0?(d=n-c,c=0):-c+n>s&&(d=s+c):c<0?(d=n+c,c=0):c+n>s&&(d=s-c),e.isHorizontal()?(ie.transforms3d?r.transform("translate3d(".concat(c,"px, 0, 0)")):r.transform("translateX(".concat(c,"px)")),r[0].style.width="".concat(d,"px")):(ie.transforms3d?r.transform("translate3d(0px, ".concat(c,"px, 0)")):r.transform("translateY(".concat(c,"px)")),r[0].style.height="".concat(d,"px")),l.hide&&(clearTimeout(e.scrollbar.timeout),o[0].style.opacity=1,e.scrollbar.timeout=setTimeout((function(){o[0].style.opacity=0,o.transition(400)}),1e3))}},setTransition:function(e){var t=this;t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragEl.transition(e)},updateSize:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,a=t.$dragEl,i=t.$el;a[0].style.width="",a[0].style.height="";var n,s=e.isHorizontal()?i[0].offsetWidth:i[0].offsetHeight,r=e.size/e.virtualSize,o=r*(s/e.size);n="auto"===e.params.scrollbar.dragSize?s*r:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?a[0].style.width="".concat(n,"px"):a[0].style.height="".concat(n,"px"),i[0].style.display=r>=1?"none":"",e.params.scrollbar.hide&&(i[0].style.opacity=0),ae.extend(t,{trackSize:s,divider:r,moveDivider:o,dragSize:n}),t.$el[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](e.params.scrollbar.lockClass)}},getPointerPosition:function(e){return this.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY},setDragPosition:function(e){var t,a=this,i=a.scrollbar,n=a.rtlTranslate,s=i.$el,r=i.dragSize,o=i.trackSize,l=i.dragStartPos;t=(i.getPointerPosition(e)-s.offset()[a.isHorizontal()?"left":"top"]-(null!==l?l:r/2))/(o-r),t=Math.max(Math.min(t,1),0),n&&(t=1-t);var d=a.minTranslate()+(a.maxTranslate()-a.minTranslate())*t;a.updateProgress(d),a.setTranslate(d),a.updateActiveIndex(),a.updateSlidesClasses()},onDragStart:function(e){var t=this,a=t.params.scrollbar,i=t.scrollbar,n=t.$wrapperEl,s=i.$el,r=i.$dragEl;t.scrollbar.isTouched=!0,t.scrollbar.dragStartPos=e.target===r[0]||e.target===r?i.getPointerPosition(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),n.transition(100),r.transition(100),i.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),s.transition(0),a.hide&&s.css("opacity",1),t.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this,a=t.scrollbar,i=t.$wrapperEl,n=a.$el,s=a.$dragEl;t.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,a.setDragPosition(e),i.transition(0),n.transition(0),s.transition(0),t.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this,a=t.params.scrollbar,i=t.scrollbar.$el;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,a.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=ae.nextTick((function(){i.css("opacity",0),i.transition(400)}),1e3)),t.emit("scrollbarDragEnd",e),a.snapOnRelease&&t.slideToClosest())},enableDraggable:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,a=e.touchEventsTouch,i=e.touchEventsDesktop,n=e.params,s=t.$el[0],r=!(!ie.passiveListener||!n.passiveListeners)&&{passive:!1,capture:!1},o=!(!ie.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};ie.touch?(s.addEventListener(a.start,e.scrollbar.onDragStart,r),s.addEventListener(a.move,e.scrollbar.onDragMove,r),s.addEventListener(a.end,e.scrollbar.onDragEnd,o)):(s.addEventListener(i.start,e.scrollbar.onDragStart,r),j.addEventListener(i.move,e.scrollbar.onDragMove,r),j.addEventListener(i.end,e.scrollbar.onDragEnd,o))}},disableDraggable:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,a=e.touchEventsTouch,i=e.touchEventsDesktop,n=e.params,s=t.$el[0],r=!(!ie.passiveListener||!n.passiveListeners)&&{passive:!1,capture:!1},o=!(!ie.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};ie.touch?(s.removeEventListener(a.start,e.scrollbar.onDragStart,r),s.removeEventListener(a.move,e.scrollbar.onDragMove,r),s.removeEventListener(a.end,e.scrollbar.onDragEnd,o)):(s.removeEventListener(i.start,e.scrollbar.onDragStart,r),j.removeEventListener(i.move,e.scrollbar.onDragMove,r),j.removeEventListener(i.end,e.scrollbar.onDragEnd,o))}},init:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,a=e.$el,i=e.params.scrollbar,n=U(i.el);e.params.uniqueNavElements&&"string"==typeof i.el&&n.length>1&&1===a.find(i.el).length&&(n=a.find(i.el));var s=n.find(".".concat(e.params.scrollbar.dragClass));0===s.length&&(s=U('<div class="'.concat(e.params.scrollbar.dragClass,'"></div>')),n.append(s)),ae.extend(t,{$el:n,el:n[0],$dragEl:s,dragEl:s[0]}),i.draggable&&t.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},Ne={setTransform:function(e,t){var a=this.rtl,i=U(e),n=a?-1:1,s=i.attr("data-swiper-parallax")||"0",r=i.attr("data-swiper-parallax-x"),o=i.attr("data-swiper-parallax-y"),l=i.attr("data-swiper-parallax-scale"),d=i.attr("data-swiper-parallax-opacity");if(r||o?(r=r||"0",o=o||"0"):this.isHorizontal()?(r=s,o="0"):(o=s,r="0"),r=r.indexOf("%")>=0?"".concat(parseInt(r,10)*t*n,"%"):"".concat(r*t*n,"px"),o=o.indexOf("%")>=0?"".concat(parseInt(o,10)*t,"%"):"".concat(o*t,"px"),null!=d){var c=d-(d-1)*(1-Math.abs(t));i[0].style.opacity=c}if(null==l)i.transform("translate3d(".concat(r,", ").concat(o,", 0px)"));else{var u=l-(l-1)*(1-Math.abs(t));i.transform("translate3d(".concat(r,", ").concat(o,", 0px) scale(").concat(u,")"))}},setTranslate:function(){var e=this,t=e.$el,a=e.slides,i=e.progress,n=e.snapGrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,a){e.parallax.setTransform(a,i)})),a.each((function(t,a){var s=a.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(s+=Math.ceil(t/2)-i*(n.length-1)),s=Math.min(Math.max(s,-1),1),U(a).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,a){e.parallax.setTransform(a,s)}))}))},setTransition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=this,a=t.$el;a.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,a){var i=U(a),n=parseInt(i.attr("data-swiper-parallax-duration"),10)||e;0===e&&(n=0),i.transition(n)}))}},He={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,a=e.targetTouches[0].pageY,i=e.targetTouches[1].pageX,n=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(i-t,2)+Math.pow(n-a,2))},onGestureStart:function(e){var t=this,a=t.params.zoom,i=t.zoom,n=i.gesture;if(i.fakeGestureTouched=!1,i.fakeGestureMoved=!1,!ie.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;i.fakeGestureTouched=!0,n.scaleStart=He.getDistanceBetweenTouches(e)}n.$slideEl&&n.$slideEl.length||(n.$slideEl=U(e.target).closest(".swiper-slide"),0===n.$slideEl.length&&(n.$slideEl=t.slides.eq(t.activeIndex)),n.$imageEl=n.$slideEl.find("img, svg, canvas"),n.$imageWrapEl=n.$imageEl.parent(".".concat(a.containerClass)),n.maxRatio=n.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,0!==n.$imageWrapEl.length)?(n.$imageEl.transition(0),t.zoom.isScaling=!0):n.$imageEl=void 0},onGestureChange:function(e){var t=this.params.zoom,a=this.zoom,i=a.gesture;if(!ie.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;a.fakeGestureMoved=!0,i.scaleMove=He.getDistanceBetweenTouches(e)}i.$imageEl&&0!==i.$imageEl.length&&(a.scale=ie.gestures?e.scale*a.currentScale:i.scaleMove/i.scaleStart*a.currentScale,a.scale>i.maxRatio&&(a.scale=i.maxRatio-1+Math.pow(a.scale-i.maxRatio+1,.5)),a.scale<t.minRatio&&(a.scale=t.minRatio+1-Math.pow(t.minRatio-a.scale+1,.5)),i.$imageEl.transform("translate3d(0,0,0) scale(".concat(a.scale,")")))},onGestureEnd:function(e){var t=this,a=t.params.zoom,i=t.zoom,n=i.gesture;if(!ie.gestures){if(!i.fakeGestureTouched||!i.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!he.android)return;i.fakeGestureTouched=!1,i.fakeGestureMoved=!1}n.$imageEl&&0!==n.$imageEl.length&&(i.scale=Math.max(Math.min(i.scale,n.maxRatio),a.minRatio),n.$imageEl.transition(t.params.speed).transform("translate3d(0,0,0) scale(".concat(i.scale,")")),i.currentScale=i.scale,i.isScaling=!1,1===i.scale&&(n.$slideEl=void 0))},onTouchStart:function(e){var t=this.zoom,a=t.gesture,i=t.image;a.$imageEl&&0!==a.$imageEl.length&&(i.isTouched||(he.android&&e.preventDefault(),i.isTouched=!0,i.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,i.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove:function(e){var t=this,a=t.zoom,i=a.gesture,n=a.image,s=a.velocity;if(i.$imageEl&&0!==i.$imageEl.length&&(t.allowClick=!1,n.isTouched&&i.$slideEl)){n.isMoved||(n.width=i.$imageEl[0].offsetWidth,n.height=i.$imageEl[0].offsetHeight,n.startX=ae.getTranslate(i.$imageWrapEl[0],"x")||0,n.startY=ae.getTranslate(i.$imageWrapEl[0],"y")||0,i.slideWidth=i.$slideEl[0].offsetWidth,i.slideHeight=i.$slideEl[0].offsetHeight,i.$imageWrapEl.transition(0),t.rtl&&(n.startX=-n.startX,n.startY=-n.startY));var r=n.width*a.scale,o=n.height*a.scale;if(!(r<i.slideWidth&&o<i.slideHeight)){if(n.minX=Math.min(i.slideWidth/2-r/2,0),n.maxX=-n.minX,n.minY=Math.min(i.slideHeight/2-o/2,0),n.maxY=-n.minY,n.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,n.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!n.isMoved&&!a.isScaling){if(t.isHorizontal()&&(Math.floor(n.minX)===Math.floor(n.startX)&&n.touchesCurrent.x<n.touchesStart.x||Math.floor(n.maxX)===Math.floor(n.startX)&&n.touchesCurrent.x>n.touchesStart.x))return void(n.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(n.minY)===Math.floor(n.startY)&&n.touchesCurrent.y<n.touchesStart.y||Math.floor(n.maxY)===Math.floor(n.startY)&&n.touchesCurrent.y>n.touchesStart.y))return void(n.isTouched=!1)}e.preventDefault(),e.stopPropagation(),n.isMoved=!0,n.currentX=n.touchesCurrent.x-n.touchesStart.x+n.startX,n.currentY=n.touchesCurrent.y-n.touchesStart.y+n.startY,n.currentX<n.minX&&(n.currentX=n.minX+1-Math.pow(n.minX-n.currentX+1,.8)),n.currentX>n.maxX&&(n.currentX=n.maxX-1+Math.pow(n.currentX-n.maxX+1,.8)),n.currentY<n.minY&&(n.currentY=n.minY+1-Math.pow(n.minY-n.currentY+1,.8)),n.currentY>n.maxY&&(n.currentY=n.maxY-1+Math.pow(n.currentY-n.maxY+1,.8)),s.prevPositionX||(s.prevPositionX=n.touchesCurrent.x),s.prevPositionY||(s.prevPositionY=n.touchesCurrent.y),s.prevTime||(s.prevTime=Date.now()),s.x=(n.touchesCurrent.x-s.prevPositionX)/(Date.now()-s.prevTime)/2,s.y=(n.touchesCurrent.y-s.prevPositionY)/(Date.now()-s.prevTime)/2,Math.abs(n.touchesCurrent.x-s.prevPositionX)<2&&(s.x=0),Math.abs(n.touchesCurrent.y-s.prevPositionY)<2&&(s.y=0),s.prevPositionX=n.touchesCurrent.x,s.prevPositionY=n.touchesCurrent.y,s.prevTime=Date.now(),i.$imageWrapEl.transform("translate3d(".concat(n.currentX,"px, ").concat(n.currentY,"px,0)"))}}},onTouchEnd:function(){var e=this.zoom,t=e.gesture,a=e.image,i=e.velocity;if(t.$imageEl&&0!==t.$imageEl.length){if(!a.isTouched||!a.isMoved)return a.isTouched=!1,void(a.isMoved=!1);a.isTouched=!1,a.isMoved=!1;var n=300,s=300,r=i.x*n,o=a.currentX+r,l=i.y*s,d=a.currentY+l;0!==i.x&&(n=Math.abs((o-a.currentX)/i.x)),0!==i.y&&(s=Math.abs((d-a.currentY)/i.y));var c=Math.max(n,s);a.currentX=o,a.currentY=d;var u=a.width*e.scale,p=a.height*e.scale;a.minX=Math.min(t.slideWidth/2-u/2,0),a.maxX=-a.minX,a.minY=Math.min(t.slideHeight/2-p/2,0),a.maxY=-a.minY,a.currentX=Math.max(Math.min(a.currentX,a.maxX),a.minX),a.currentY=Math.max(Math.min(a.currentY,a.maxY),a.minY),t.$imageWrapEl.transition(c).transform("translate3d(".concat(a.currentX,"px, ").concat(a.currentY,"px,0)"))}},onTransitionEnd:function(){var e=this,t=e.zoom,a=t.gesture;a.$slideEl&&e.previousIndex!==e.activeIndex&&(a.$imageEl.transform("translate3d(0,0,0) scale(1)"),a.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,a.$slideEl=void 0,a.$imageEl=void 0,a.$imageWrapEl=void 0)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,a,i,n,s,r,o,l,d,c,u,p,h,f,v,m,g=this,b=g.zoom,w=g.params.zoom,y=b.gesture,x=b.image;(y.$slideEl||(y.$slideEl=g.clickedSlide?U(g.clickedSlide):g.slides.eq(g.activeIndex),y.$imageEl=y.$slideEl.find("img, svg, canvas"),y.$imageWrapEl=y.$imageEl.parent(".".concat(w.containerClass))),y.$imageEl&&0!==y.$imageEl.length)&&(y.$slideEl.addClass("".concat(w.zoomedSlideClass)),void 0===x.touchesStart.x&&e?(t="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,a="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(t=x.touchesStart.x,a=x.touchesStart.y),b.scale=y.$imageWrapEl.attr("data-swiper-zoom")||w.maxRatio,b.currentScale=y.$imageWrapEl.attr("data-swiper-zoom")||w.maxRatio,e?(v=y.$slideEl[0].offsetWidth,m=y.$slideEl[0].offsetHeight,i=y.$slideEl.offset().left+v/2-t,n=y.$slideEl.offset().top+m/2-a,o=y.$imageEl[0].offsetWidth,l=y.$imageEl[0].offsetHeight,d=o*b.scale,c=l*b.scale,h=-(u=Math.min(v/2-d/2,0)),f=-(p=Math.min(m/2-c/2,0)),(s=i*b.scale)<u&&(s=u),s>h&&(s=h),(r=n*b.scale)<p&&(r=p),r>f&&(r=f)):(s=0,r=0),y.$imageWrapEl.transition(300).transform("translate3d(".concat(s,"px, ").concat(r,"px,0)")),y.$imageEl.transition(300).transform("translate3d(0,0,0) scale(".concat(b.scale,")")))},out:function(){var e=this,t=e.zoom,a=e.params.zoom,i=t.gesture;i.$slideEl||(i.$slideEl=e.clickedSlide?U(e.clickedSlide):e.slides.eq(e.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent(".".concat(a.containerClass))),i.$imageEl&&0!==i.$imageEl.length&&(t.scale=1,t.currentScale=1,i.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),i.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),i.$slideEl.removeClass("".concat(a.zoomedSlideClass)),i.$slideEl=void 0)},enable:function(){var e=this,t=e.zoom;if(!t.enabled){t.enabled=!0;var a=!("touchstart"!==e.touchEvents.start||!ie.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};ie.gestures?(e.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,a),e.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,a),e.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,a)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.on(e.touchEvents.start,".swiper-slide",t.onGestureStart,a),e.$wrapperEl.on(e.touchEvents.move,".swiper-slide",t.onGestureChange,a),e.$wrapperEl.on(e.touchEvents.end,".swiper-slide",t.onGestureEnd,a)),e.$wrapperEl.on(e.touchEvents.move,".".concat(e.params.zoom.containerClass),t.onTouchMove)}},disable:function(){var e=this,t=e.zoom;if(t.enabled){e.zoom.enabled=!1;var a=!("touchstart"!==e.touchEvents.start||!ie.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};ie.gestures?(e.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,a),e.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,a),e.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,a)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.off(e.touchEvents.start,".swiper-slide",t.onGestureStart,a),e.$wrapperEl.off(e.touchEvents.move,".swiper-slide",t.onGestureChange,a),e.$wrapperEl.off(e.touchEvents.end,".swiper-slide",t.onGestureEnd,a)),e.$wrapperEl.off(e.touchEvents.move,".".concat(e.params.zoom.containerClass),t.onTouchMove)}}},Be={loadInSlide:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=this,i=a.params.lazy;if(void 0!==e&&0!==a.slides.length){var n=a.virtual&&a.params.virtual.enabled,s=n?a.$wrapperEl.children(".".concat(a.params.slideClass,'[data-swiper-slide-index="').concat(e,'"]')):a.slides.eq(e),r=s.find(".".concat(i.elementClass,":not(.").concat(i.loadedClass,"):not(.").concat(i.loadingClass,")"));!s.hasClass(i.elementClass)||s.hasClass(i.loadedClass)||s.hasClass(i.loadingClass)||(r=r.add(s[0])),0!==r.length&&r.each((function(e,n){var r=U(n);r.addClass(i.loadingClass);var o=r.attr("data-background"),l=r.attr("data-src"),d=r.attr("data-srcset"),c=r.attr("data-sizes");a.loadImage(r[0],l||o,d,c,!1,(function(){if(null!=a&&a&&(!a||a.params)&&!a.destroyed){if(o?(r.css("background-image",'url("'.concat(o,'")')),r.removeAttr("data-background")):(d&&(r.attr("srcset",d),r.removeAttr("data-srcset")),c&&(r.attr("sizes",c),r.removeAttr("data-sizes")),l&&(r.attr("src",l),r.removeAttr("data-src"))),r.addClass(i.loadedClass).removeClass(i.loadingClass),s.find(".".concat(i.preloaderClass)).remove(),a.params.loop&&t){var e=s.attr("data-swiper-slide-index");if(s.hasClass(a.params.slideDuplicateClass)){var n=a.$wrapperEl.children('[data-swiper-slide-index="'.concat(e,'"]:not(.').concat(a.params.slideDuplicateClass,")"));a.lazy.loadInSlide(n.index(),!1)}else{var u=a.$wrapperEl.children(".".concat(a.params.slideDuplicateClass,'[data-swiper-slide-index="').concat(e,'"]'));a.lazy.loadInSlide(u.index(),!1)}}a.emit("lazyImageReady",s[0],r[0])}})),a.emit("lazyImageLoad",s[0],r[0])}))}},load:function(){var e=this,t=e.$wrapperEl,a=e.params,i=e.slides,n=e.activeIndex,s=e.virtual&&a.virtual.enabled,r=a.lazy,o=a.slidesPerView;function l(e){if(s){if(t.children(".".concat(a.slideClass,'[data-swiper-slide-index="').concat(e,'"]')).length)return!0}else if(i[e])return!0;return!1}function d(e){return s?U(e).attr("data-swiper-slide-index"):U(e).index()}if("auto"===o&&(o=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children(".".concat(a.slideVisibleClass)).each((function(t,a){var i=s?U(a).attr("data-swiper-slide-index"):U(a).index();e.lazy.loadInSlide(i)}));else if(o>1)for(var c=n;c<n+o;c+=1)l(c)&&e.lazy.loadInSlide(c);else e.lazy.loadInSlide(n);if(r.loadPrevNext)if(o>1||r.loadPrevNextAmount&&r.loadPrevNextAmount>1){for(var u=r.loadPrevNextAmount,p=o,h=Math.min(n+p+Math.max(u,p),i.length),f=Math.max(n-Math.max(p,u),0),v=n+o;v<h;v+=1)l(v)&&e.lazy.loadInSlide(v);for(var m=f;m<n;m+=1)l(m)&&e.lazy.loadInSlide(m)}else{var g=t.children(".".concat(a.slideNextClass));g.length>0&&e.lazy.loadInSlide(d(g));var b=t.children(".".concat(a.slidePrevClass));b.length>0&&e.lazy.loadInSlide(d(b))}}},Ve={LinearSpline:function(e,t){var a,i,n,s,r,o=function(e,t){for(i=-1,a=e.length;a-i>1;)e[n=a+i>>1]<=t?i=n:a=n;return a};return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(r=o(this.x,e),s=r-1,(e-this.x[s])*(this.y[r]-this.y[s])/(this.x[r]-this.x[s])+this.y[s]):0},this},getInterpolateFunction:function(e){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new Ve.LinearSpline(t.slidesGrid,e.slidesGrid):new Ve.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate:function(e,t){var a,i,n=this,s=n.controller.control;function r(e){var t=n.rtlTranslate?-n.translate:n.translate;"slide"===n.params.controller.by&&(n.controller.getInterpolateFunction(e),i=-n.controller.spline.interpolate(-t)),i&&"container"!==n.params.controller.by||(a=(e.maxTranslate()-e.minTranslate())/(n.maxTranslate()-n.minTranslate()),i=(t-n.minTranslate())*a+e.minTranslate()),n.params.controller.inverse&&(i=e.maxTranslate()-i),e.updateProgress(i),e.setTranslate(i,n),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(s))for(var o=0;o<s.length;o+=1)s[o]!==t&&s[o]instanceof Ee&&r(s[o]);else s instanceof Ee&&t!==s&&r(s)},setTransition:function(e,t){var a,i=this,n=i.controller.control;function s(t){t.setTransition(e,i),0!==e&&(t.transitionStart(),t.params.autoHeight&&ae.nextTick((function(){t.updateAutoHeight()})),t.$wrapperEl.transitionEnd((function(){n&&(t.params.loop&&"slide"===i.params.controller.by&&t.loopFix(),t.transitionEnd())})))}if(Array.isArray(n))for(a=0;a<n.length;a+=1)n[a]!==t&&n[a]instanceof Ee&&s(n[a]);else n instanceof Ee&&t!==n&&s(n)}},Ge={makeElFocusable:function(e){return e.attr("tabIndex","0"),e},addElRole:function(e,t){return e.attr("role",t),e},addElLabel:function(e,t){return e.attr("aria-label",t),e},disableEl:function(e){return e.attr("aria-disabled",!0),e},enableEl:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){var t=this,a=t.params.a11y;if(13===e.keyCode){var i=U(e.target);t.navigation&&t.navigation.$nextEl&&i.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?t.a11y.notify(a.lastSlideMessage):t.a11y.notify(a.nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&i.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?t.a11y.notify(a.firstSlideMessage):t.a11y.notify(a.prevSlideMessage)),t.pagination&&i.is(".".concat(t.params.pagination.bulletClass))&&i[0].click()}},notify:function(e){var t=this.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},updateNavigation:function(){var e=this;if(!e.params.loop){var t=e.navigation,a=t.$nextEl,i=t.$prevEl;i&&i.length>0&&(e.isBeginning?e.a11y.disableEl(i):e.a11y.enableEl(i)),a&&a.length>0&&(e.isEnd?e.a11y.disableEl(a):e.a11y.enableEl(a))}},updatePagination:function(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((function(a,i){var n=U(i);e.a11y.makeElFocusable(n),e.a11y.addElRole(n,"button"),e.a11y.addElLabel(n,t.paginationBulletMessage.replace(/{{index}}/,n.index()+1))}))},init:function(){var e=this;e.$el.append(e.a11y.liveRegion);var t,a,i=e.params.a11y;e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(a=e.navigation.$prevEl),t&&(e.a11y.makeElFocusable(t),e.a11y.addElRole(t,"button"),e.a11y.addElLabel(t,i.nextSlideMessage),t.on("keydown",e.a11y.onEnterKey)),a&&(e.a11y.makeElFocusable(a),e.a11y.addElRole(a,"button"),e.a11y.addElLabel(a,i.prevSlideMessage),a.on("keydown",e.a11y.onEnterKey)),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.on("keydown",".".concat(e.params.pagination.bulletClass),e.a11y.onEnterKey)},destroy:function(){var e,t,a=this;a.a11y.liveRegion&&a.a11y.liveRegion.length>0&&a.a11y.liveRegion.remove(),a.navigation&&a.navigation.$nextEl&&(e=a.navigation.$nextEl),a.navigation&&a.navigation.$prevEl&&(t=a.navigation.$prevEl),e&&e.off("keydown",a.a11y.onEnterKey),t&&t.off("keydown",a.a11y.onEnterKey),a.pagination&&a.params.pagination.clickable&&a.pagination.bullets&&a.pagination.bullets.length&&a.pagination.$el.off("keydown",".".concat(a.params.pagination.bulletClass),a.a11y.onEnterKey)}},Re={init:function(){var e=this;if(e.params.history){if(!q.history||!q.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);var t=e.history;t.initialized=!0,t.paths=Re.getPathValues(),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,e.params.runCallbacksOnInit),e.params.history.replaceState||q.addEventListener("popstate",e.history.setHistoryPopState))}},destroy:function(){this.params.history.replaceState||q.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){var e=this;e.history.paths=Re.getPathValues(),e.history.scrollToSlide(e.params.speed,e.history.paths.value,!1)},getPathValues:function(){var e=q.location.pathname.slice(1).split("/").filter((function(e){return""!==e})),t=e.length;return{key:e[t-2],value:e[t-1]}},setHistory:function(e,t){var a=this;if(a.history.initialized&&a.params.history.enabled){var i=a.slides.eq(t),n=Re.slugify(i.attr("data-history"));q.location.pathname.includes(e)||(n="".concat(e,"/").concat(n));var s=q.history.state;s&&s.value===n||(a.params.history.replaceState?q.history.replaceState({value:n},null,n):q.history.pushState({value:n},null,n))}},slugify:function(e){return e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,a){var i=this;if(t)for(var n=0,s=i.slides.length;n<s;n+=1){var r=i.slides.eq(n);if(Re.slugify(r.attr("data-history"))===t&&!r.hasClass(i.params.slideDuplicateClass)){var o=r.index();i.slideTo(o,e,a)}}else i.slideTo(0,e,a)}},Xe={onHashCange:function(){var e=this,t=j.location.hash.replace("#","");if(t!==e.slides.eq(e.activeIndex).attr("data-hash")){var a=e.$wrapperEl.children(".".concat(e.params.slideClass,'[data-hash="').concat(t,'"]')).index();if(void 0===a)return;e.slideTo(a)}},setHash:function(){var e=this;if(e.hashNavigation.initialized&&e.params.hashNavigation.enabled)if(e.params.hashNavigation.replaceState&&q.history&&q.history.replaceState)q.history.replaceState(null,null,"#".concat(e.slides.eq(e.activeIndex).attr("data-hash"))||0);else{var t=e.slides.eq(e.activeIndex),a=t.attr("data-hash")||t.attr("data-history");j.location.hash=a||""}},init:function(){var e=this;if(!(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)){e.hashNavigation.initialized=!0;var t=j.location.hash.replace("#","");if(t)for(var a=0,i=e.slides.length;a<i;a+=1){var n=e.slides.eq(a);if((n.attr("data-hash")||n.attr("data-history"))===t&&!n.hasClass(e.params.slideDuplicateClass)){var s=n.index();e.slideTo(s,0,e.params.runCallbacksOnInit,!0)}}e.params.hashNavigation.watchState&&U(q).on("hashchange",e.hashNavigation.onHashCange)}},destroy:function(){this.params.hashNavigation.watchState&&U(q).off("hashchange",this.hashNavigation.onHashCange)}},Ye={run:function(){var e=this,t=e.slides.eq(e.activeIndex),a=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(a=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=ae.nextTick((function(){e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay"))}),a)},start:function(){var e=this;return void 0===e.autoplay.timeout&&(!e.autoplay.running&&(e.autoplay.running=!0,e.emit("autoplayStart"),e.autoplay.run(),!0))},stop:function(){var e=this;return!!e.autoplay.running&&(void 0!==e.autoplay.timeout&&(e.autoplay.timeout&&(clearTimeout(e.autoplay.timeout),e.autoplay.timeout=void 0),e.autoplay.running=!1,e.emit("autoplayStop"),!0))},pause:function(e){var t=this;t.autoplay.running&&(t.autoplay.paused||(t.autoplay.timeout&&clearTimeout(t.autoplay.timeout),t.autoplay.paused=!0,0!==e&&t.params.autoplay.waitForTransition?(t.$wrapperEl[0].addEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].addEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd)):(t.autoplay.paused=!1,t.autoplay.run())))}},Fe={setTranslate:function(){for(var e=this,t=e.slides,a=0;a<t.length;a+=1){var i=e.slides.eq(a),n=-i[0].swiperSlideOffset;e.params.virtualTranslate||(n-=e.translate);var s=0;e.isHorizontal()||(s=n,n=0);var r=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(i[0].progress),0):1+Math.min(Math.max(i[0].progress,-1),0);i.css({opacity:r}).transform("translate3d(".concat(n,"px, ").concat(s,"px, 0px)"))}},setTransition:function(e){var t=this,a=t.slides,i=t.$wrapperEl;if(a.transition(e),t.params.virtualTranslate&&0!==e){var n=!1;a.transitionEnd((function(){if(!n&&t&&!t.destroyed){n=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],a=0;a<e.length;a+=1)i.trigger(e[a])}}))}}},je={setTranslate:function(){var e,t=this,a=t.$el,i=t.$wrapperEl,n=t.slides,s=t.width,r=t.height,o=t.rtlTranslate,l=t.size,d=t.params.cubeEffect,c=t.isHorizontal(),u=t.virtual&&t.params.virtual.enabled,p=0;d.shadow&&(c?(0===(e=i.find(".swiper-cube-shadow")).length&&(e=U('<div class="swiper-cube-shadow"></div>'),i.append(e)),e.css({height:"".concat(s,"px")})):0===(e=a.find(".swiper-cube-shadow")).length&&(e=U('<div class="swiper-cube-shadow"></div>'),a.append(e)));for(var h=0;h<n.length;h+=1){var f=n.eq(h),v=h;u&&(v=parseInt(f.attr("data-swiper-slide-index"),10));var m=90*v,g=Math.floor(m/360);o&&(m=-m,g=Math.floor(-m/360));var b=Math.max(Math.min(f[0].progress,1),-1),w=0,y=0,x=0;v%4==0?(w=4*-g*l,x=0):(v-1)%4==0?(w=0,x=4*-g*l):(v-2)%4==0?(w=l+4*g*l,x=l):(v-3)%4==0&&(w=-l,x=3*l+4*l*g),o&&(w=-w),c||(y=w,w=0);var E="rotateX(".concat(c?0:-m,"deg) rotateY(").concat(c?m:0,"deg) translate3d(").concat(w,"px, ").concat(y,"px, ").concat(x,"px)");if(b<=1&&b>-1&&(p=90*v+90*b,o&&(p=90*-v-90*b)),f.transform(E),d.slideShadows){var S=c?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),T=c?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===S.length&&(S=U('<div class="swiper-slide-shadow-'.concat(c?"left":"top",'"></div>')),f.append(S)),0===T.length&&(T=U('<div class="swiper-slide-shadow-'.concat(c?"right":"bottom",'"></div>')),f.append(T)),S.length&&(S[0].style.opacity=Math.max(-b,0)),T.length&&(T[0].style.opacity=Math.max(b,0))}}if(i.css({"-webkit-transform-origin":"50% 50% -".concat(l/2,"px"),"-moz-transform-origin":"50% 50% -".concat(l/2,"px"),"-ms-transform-origin":"50% 50% -".concat(l/2,"px"),"transform-origin":"50% 50% -".concat(l/2,"px")}),d.shadow)if(c)e.transform("translate3d(0px, ".concat(s/2+d.shadowOffset,"px, ").concat(-s/2,"px) rotateX(90deg) rotateZ(0deg) scale(").concat(d.shadowScale,")"));else{var C=Math.abs(p)-90*Math.floor(Math.abs(p)/90),k=1.5-(Math.sin(2*C*Math.PI/360)/2+Math.cos(2*C*Math.PI/360)/2),M=d.shadowScale,P=d.shadowScale/k,z=d.shadowOffset;e.transform("scale3d(".concat(M,", 1, ").concat(P,") translate3d(0px, ").concat(r/2+z,"px, ").concat(-r/2/P,"px) rotateX(-90deg)"))}var I=ne.isSafari||ne.isUiWebView?-l/2:0;i.transform("translate3d(0px,0,".concat(I,"px) rotateX(").concat(t.isHorizontal()?0:p,"deg) rotateY(").concat(t.isHorizontal()?-p:0,"deg)"))},setTransition:function(e){var t=this,a=t.$el;t.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cubeEffect.shadow&&!t.isHorizontal()&&a.find(".swiper-cube-shadow").transition(e)}},qe={setTranslate:function(){for(var e=this,t=e.slides,a=e.rtlTranslate,i=0;i<t.length;i+=1){var n=t.eq(i),s=n[0].progress;e.params.flipEffect.limitRotation&&(s=Math.max(Math.min(n[0].progress,1),-1));var r=-180*s,o=0,l=-n[0].swiperSlideOffset,d=0;if(e.isHorizontal()?a&&(r=-r):(d=l,l=0,o=-r,r=0),n[0].style.zIndex=-Math.abs(Math.round(s))+t.length,e.params.flipEffect.slideShadows){var c=e.isHorizontal()?n.find(".swiper-slide-shadow-left"):n.find(".swiper-slide-shadow-top"),u=e.isHorizontal()?n.find(".swiper-slide-shadow-right"):n.find(".swiper-slide-shadow-bottom");0===c.length&&(c=U('<div class="swiper-slide-shadow-'.concat(e.isHorizontal()?"left":"top",'"></div>')),n.append(c)),0===u.length&&(u=U('<div class="swiper-slide-shadow-'.concat(e.isHorizontal()?"right":"bottom",'"></div>')),n.append(u)),c.length&&(c[0].style.opacity=Math.max(-s,0)),u.length&&(u[0].style.opacity=Math.max(s,0))}n.transform("translate3d(".concat(l,"px, ").concat(d,"px, 0px) rotateX(").concat(o,"deg) rotateY(").concat(r,"deg)"))}},setTransition:function(e){var t=this,a=t.slides,i=t.activeIndex,n=t.$wrapperEl;if(a.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){var s=!1;a.eq(i).transitionEnd((function(){if(!s&&t&&!t.destroyed){s=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],a=0;a<e.length;a+=1)n.trigger(e[a])}}))}}},We={setTranslate:function(){for(var e=this,t=e.width,a=e.height,i=e.slides,n=e.$wrapperEl,s=e.slidesSizesGrid,r=e.params.coverflowEffect,o=e.isHorizontal(),l=e.translate,d=o?t/2-l:a/2-l,c=o?r.rotate:-r.rotate,u=r.depth,p=0,h=i.length;p<h;p+=1){var f=i.eq(p),v=s[p],m=(d-f[0].swiperSlideOffset-v/2)/v*r.modifier,g=o?c*m:0,b=o?0:c*m,w=-u*Math.abs(m),y=o?0:r.stretch*m,x=o?r.stretch*m:0;Math.abs(x)<.001&&(x=0),Math.abs(y)<.001&&(y=0),Math.abs(w)<.001&&(w=0),Math.abs(g)<.001&&(g=0),Math.abs(b)<.001&&(b=0);var E="translate3d(".concat(x,"px,").concat(y,"px,").concat(w,"px)  rotateX(").concat(b,"deg) rotateY(").concat(g,"deg)");if(f.transform(E),f[0].style.zIndex=1-Math.abs(Math.round(m)),r.slideShadows){var S=o?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),T=o?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===S.length&&(S=U('<div class="swiper-slide-shadow-'.concat(o?"left":"top",'"></div>')),f.append(S)),0===T.length&&(T=U('<div class="swiper-slide-shadow-'.concat(o?"right":"bottom",'"></div>')),f.append(T)),S.length&&(S[0].style.opacity=m>0?m:0),T.length&&(T[0].style.opacity=-m>0?-m:0)}}(ie.pointerEvents||ie.prefixedPointerEvents)&&(n[0].style.perspectiveOrigin="".concat(d,"px 50%"))},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},Ue={init:function(){var e=this,t=e.params.thumbs,a=e.constructor;t.swiper instanceof a?(e.thumbs.swiper=t.swiper,ae.extend(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),ae.extend(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):ae.isObject(t.swiper)&&(e.thumbs.swiper=new a(ae.extend({},t.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),e.thumbs.swiperCreated=!0),e.thumbs.swiper.$el.addClass(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",e.thumbs.onThumbClick)},onThumbClick:function(){var e=this,t=e.thumbs.swiper;if(t){var a=t.clickedIndex,i=t.clickedSlide;if(!(i&&U(i).hasClass(e.params.thumbs.slideThumbActiveClass)||null==a)){var n;if(n=t.params.loop?parseInt(U(t.clickedSlide).attr("data-swiper-slide-index"),10):a,e.params.loop){var s=e.activeIndex;e.slides.eq(s).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,s=e.activeIndex);var r=e.slides.eq(s).prevAll('[data-swiper-slide-index="'.concat(n,'"]')).eq(0).index(),o=e.slides.eq(s).nextAll('[data-swiper-slide-index="'.concat(n,'"]')).eq(0).index();n=void 0===r?o:void 0===o?r:o-s<s-r?o:r}e.slideTo(n)}}},update:function(e){var t=this,a=t.thumbs.swiper;if(a){var i="auto"===a.params.slidesPerView?a.slidesPerViewDynamic():a.params.slidesPerView;if(t.realIndex!==a.realIndex){var n,s=a.activeIndex;if(a.params.loop){a.slides.eq(s).hasClass(a.params.slideDuplicateClass)&&(a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft,s=a.activeIndex);var r=a.slides.eq(s).prevAll('[data-swiper-slide-index="'.concat(t.realIndex,'"]')).eq(0).index(),o=a.slides.eq(s).nextAll('[data-swiper-slide-index="'.concat(t.realIndex,'"]')).eq(0).index();n=void 0===r?o:void 0===o?r:o-s==s-r?s:o-s<s-r?o:r}else n=t.realIndex;a.visibleSlidesIndexes&&a.visibleSlidesIndexes.indexOf(n)<0&&(a.params.centeredSlides?n=n>s?n-Math.floor(i/2)+1:n+Math.floor(i/2)-1:n>s&&(n=n-i+1),a.slideTo(n,e?0:void 0))}var l=1,d=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(l=t.params.slidesPerView),a.slides.removeClass(d),a.params.loop||a.params.virtual)for(var c=0;c<l;c+=1)a.$wrapperEl.children('[data-swiper-slide-index="'.concat(t.realIndex+c,'"]')).addClass(d);else for(var u=0;u<l;u+=1)a.slides.eq(t.realIndex+u).addClass(d)}}},Ke=[Se,Te,Ce,ke,Pe,Ie,Le,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){var e=this;ae.extend(e,{mousewheel:{enabled:!1,enable:Oe.enable.bind(e),disable:Oe.disable.bind(e),handle:Oe.handle.bind(e),handleMouseEnter:Oe.handleMouseEnter.bind(e),handleMouseLeave:Oe.handleMouseLeave.bind(e),lastScrollTime:ae.now()}})},on:{init:function(){this.params.mousewheel.enabled&&this.mousewheel.enable()},destroy:function(){this.mousewheel.enabled&&this.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){var e=this;ae.extend(e,{navigation:{init:Ae.init.bind(e),update:Ae.update.bind(e),destroy:Ae.destroy.bind(e),onNextClick:Ae.onNextClick.bind(e),onPrevClick:Ae.onPrevClick.bind(e)}})},on:{init:function(){this.navigation.init(),this.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(e){var t,a=this,i=a.navigation,n=i.$nextEl,s=i.$prevEl;!a.params.navigation.hideOnClick||U(e.target).is(s)||U(e.target).is(n)||(n?t=n.hasClass(a.params.navigation.hiddenClass):s&&(t=s.hasClass(a.params.navigation.hiddenClass)),!0===t?a.emit("navigationShow",a):a.emit("navigationHide",a),n&&n.toggleClass(a.params.navigation.hiddenClass),s&&s.toggleClass(a.params.navigation.hiddenClass))}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){var e=this;ae.extend(e,{pagination:{init:De.init.bind(e),render:De.render.bind(e),update:De.update.bind(e),destroy:De.destroy.bind(e),dynamicBulletIndex:0}})},on:{init:function(){var e=this;e.pagination.init(),e.pagination.render(),e.pagination.update()},activeIndexChange:function(){var e=this;(e.params.loop||void 0===e.snapIndex)&&e.pagination.update()},snapIndexChange:function(){this.params.loop||this.pagination.update()},slidesLengthChange:function(){var e=this;e.params.loop&&(e.pagination.render(),e.pagination.update())},snapGridLengthChange:function(){var e=this;e.params.loop||(e.pagination.render(),e.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(e){var t=this;t.params.pagination.el&&t.params.pagination.hideOnClick&&t.pagination.$el.length>0&&!U(e.target).hasClass(t.params.pagination.bulletClass)&&(!0===t.pagination.$el.hasClass(t.params.pagination.hiddenClass)?t.emit("paginationShow",t):t.emit("paginationHide",t),t.pagination.$el.toggleClass(t.params.pagination.hiddenClass))}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){var e=this;ae.extend(e,{scrollbar:{init:_e.init.bind(e),destroy:_e.destroy.bind(e),updateSize:_e.updateSize.bind(e),setTranslate:_e.setTranslate.bind(e),setTransition:_e.setTransition.bind(e),enableDraggable:_e.enableDraggable.bind(e),disableDraggable:_e.disableDraggable.bind(e),setDragPosition:_e.setDragPosition.bind(e),getPointerPosition:_e.getPointerPosition.bind(e),onDragStart:_e.onDragStart.bind(e),onDragMove:_e.onDragMove.bind(e),onDragEnd:_e.onDragEnd.bind(e),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){var e=this;e.scrollbar.init(),e.scrollbar.updateSize(),e.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(e){this.scrollbar.setTransition(e)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){var e=this;ae.extend(e,{parallax:{setTransform:Ne.setTransform.bind(e),setTranslate:Ne.setTranslate.bind(e),setTransition:Ne.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},init:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition:function(e){this.params.parallax.enabled&&this.parallax.setTransition(e)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var e=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach((function(a){t[a]=He[a].bind(e)})),ae.extend(e,{zoom:t});var a=1;Object.defineProperty(e.zoom,"scale",{get:function(){return a},set:function(t){if(a!==t){var i=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,n=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",t,i,n)}a=t}})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(e){this.zoom.enabled&&this.zoom.onTouchStart(e)},touchEnd:function(e){this.zoom.enabled&&this.zoom.onTouchEnd(e)},doubleTap:function(e){var t=this;t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&t.zoom.toggle(e)},transitionEnd:function(){var e=this;e.zoom.enabled&&e.params.zoom.enabled&&e.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){var e=this;ae.extend(e,{lazy:{initialImageLoaded:!1,load:Be.load.bind(e),loadInSlide:Be.loadInSlide.bind(e)}})},on:{beforeInit:function(){var e=this;e.params.lazy.enabled&&e.params.preloadImages&&(e.params.preloadImages=!1)},init:function(){var e=this;e.params.lazy.enabled&&!e.params.loop&&0===e.params.initialSlide&&e.lazy.load()},scroll:function(){var e=this;e.params.freeMode&&!e.params.freeModeSticky&&e.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbarDragMove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionStart:function(){var e=this;e.params.lazy.enabled&&(e.params.lazy.loadOnTransitionStart||!e.params.lazy.loadOnTransitionStart&&!e.lazy.initialImageLoaded)&&e.lazy.load()},transitionEnd:function(){var e=this;e.params.lazy.enabled&&!e.params.lazy.loadOnTransitionStart&&e.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){var e=this;ae.extend(e,{controller:{control:e.params.controller.control,getInterpolateFunction:Ve.getInterpolateFunction.bind(e),setTranslate:Ve.setTranslate.bind(e),setTransition:Ve.setTransition.bind(e)}})},on:{update:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},resize:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},observerUpdate:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},setTranslate:function(e,t){this.controller.control&&this.controller.setTranslate(e,t)},setTransition:function(e,t){this.controller.control&&this.controller.setTransition(e,t)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var e=this;ae.extend(e,{a11y:{liveRegion:U('<span class="'.concat(e.params.a11y.notificationClass,'" aria-live="assertive" aria-atomic="true"></span>'))}}),Object.keys(Ge).forEach((function(t){e.a11y[t]=Ge[t].bind(e)}))},on:{init:function(){var e=this;e.params.a11y.enabled&&(e.a11y.init(),e.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){var e=this;ae.extend(e,{history:{init:Re.init.bind(e),setHistory:Re.setHistory.bind(e),setHistoryPopState:Re.setHistoryPopState.bind(e),scrollToSlide:Re.scrollToSlide.bind(e),destroy:Re.destroy.bind(e)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionEnd:function(){var e=this;e.history.initialized&&e.history.setHistory(e.params.history.key,e.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var e=this;ae.extend(e,{hashNavigation:{initialized:!1,init:Xe.init.bind(e),destroy:Xe.destroy.bind(e),setHash:Xe.setHash.bind(e),onHashCange:Xe.onHashCange.bind(e)}})},on:{init:function(){this.params.hashNavigation.enabled&&this.hashNavigation.init()},destroy:function(){this.params.hashNavigation.enabled&&this.hashNavigation.destroy()},transitionEnd:function(){this.hashNavigation.initialized&&this.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;ae.extend(e,{autoplay:{running:!1,paused:!1,run:Ye.run.bind(e),start:Ye.start.bind(e),stop:Ye.stop.bind(e),pause:Ye.pause.bind(e),onTransitionEnd:function(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&this.autoplay.start()},beforeTransitionStart:function(e,t){var a=this;a.autoplay.running&&(t||!a.params.autoplay.disableOnInteraction?a.autoplay.pause(e):a.autoplay.stop())},sliderFirstMove:function(){var e=this;e.autoplay.running&&(e.params.autoplay.disableOnInteraction?e.autoplay.stop():e.autoplay.pause())},destroy:function(){this.autoplay.running&&this.autoplay.stop()}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){var e=this;ae.extend(e,{fadeEffect:{setTranslate:Fe.setTranslate.bind(e),setTransition:Fe.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("fade"===e.params.effect){e.classNames.push("".concat(e.params.containerModifierClass,"fade"));var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};ae.extend(e.params,t),ae.extend(e.originalParams,t)}},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(e){"fade"===this.params.effect&&this.fadeEffect.setTransition(e)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){var e=this;ae.extend(e,{cubeEffect:{setTranslate:je.setTranslate.bind(e),setTransition:je.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("cube"===e.params.effect){e.classNames.push("".concat(e.params.containerModifierClass,"cube")),e.classNames.push("".concat(e.params.containerModifierClass,"3d"));var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};ae.extend(e.params,t),ae.extend(e.originalParams,t)}},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(e){"cube"===this.params.effect&&this.cubeEffect.setTransition(e)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){var e=this;ae.extend(e,{flipEffect:{setTranslate:qe.setTranslate.bind(e),setTransition:qe.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("flip"===e.params.effect){e.classNames.push("".concat(e.params.containerModifierClass,"flip")),e.classNames.push("".concat(e.params.containerModifierClass,"3d"));var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};ae.extend(e.params,t),ae.extend(e.originalParams,t)}},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(e){"flip"===this.params.effect&&this.flipEffect.setTransition(e)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){var e=this;ae.extend(e,{coverflowEffect:{setTranslate:We.setTranslate.bind(e),setTransition:We.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;"coverflow"===e.params.effect&&(e.classNames.push("".concat(e.params.containerModifierClass,"coverflow")),e.classNames.push("".concat(e.params.containerModifierClass,"3d")),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(e){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(e)}}},{name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){var e=this;ae.extend(e,{thumbs:{swiper:null,init:Ue.init.bind(e),update:Ue.update.bind(e),onThumbClick:Ue.onThumbClick.bind(e)}})},on:{beforeInit:function(){var e=this,t=e.params.thumbs;t&&t.swiper&&(e.thumbs.init(),e.thumbs.update(!0))},slideChange:function(){this.thumbs.swiper&&this.thumbs.update()},update:function(){this.thumbs.swiper&&this.thumbs.update()},resize:function(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate:function(){this.thumbs.swiper&&this.thumbs.update()},setTransition:function(e){var t=this.thumbs.swiper;t&&t.setTransition(e)},beforeDestroy:function(){var e=this.thumbs.swiper;e&&this.thumbs.swiperCreated&&e&&e.destroy()}}}];void 0===Ee.use&&(Ee.use=Ee.Class.use,Ee.installModule=Ee.Class.installModule),Ee.use(Ke);var Qe=Ee,Ze="wp-block-newspack-blocks-carousel__autoplay-playing";function Je(e,t){Array.prototype.forEach.call(e,t)}function et(e){e.setAttribute("aria-hidden","false"),Je(e.querySelectorAll("a"),(function(e){return e.removeAttribute("tabindex")}))}function tt(e){e.setAttribute("aria-hidden","true"),Je(e.querySelectorAll("a"),(function(e){return e.setAttribute("tabindex","-1")}))}var at=function(e){v()(a,e);var t=g()(a);function a(e){var i;return u()(this,a),(i=t.call(this,e)).btnPlayRef=(0,o.createRef)(),i.btnPauseRef=(0,o.createRef)(),i.btnNextRef=(0,o.createRef)(),i.btnPrevRef=(0,o.createRef)(),i.carouselRef=(0,o.createRef)(),i.paginationRef=(0,o.createRef)(),i}return h()(a,[{key:"componentDidMount",value:function(){this.initializeSwiper(0)}},{key:"componentDidUpdate",value:function(e){var t=this.props,a=t.attributes,i=t.latestPosts;if(e.latestPosts!==i||e.latestPosts&&i&&e.latestPosts.length!==i.length||!(0,b.isEqual)(e.attributes,a)){var n=0;this.swiperInstance&&(i&&this.swiperInstance.realIndex<i.length&&(n=this.swiperInstance.realIndex),this.swiperInstance.destroy(!0,!0)),this.initializeSwiper(n)}}},{key:"initializeSwiper",value:function(e){var t=this.props.latestPosts;if(t&&t.length){var a=this.props.attributes,i=a.autoplay,n=a.delay;this.swiperInstance=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=new Qe(e.container,{a11y:!1,autoplay:!!t.autoplay&&{delay:t.delay,disableOnInteraction:!1},effect:"slide",grabCursor:!0,init:!1,initialSlide:t.initialSlide||0,loop:!0,navigation:{nextEl:e.next,prevEl:e.prev},pagination:{bulletElement:"button",clickable:!0,el:e.pagination,type:"bullets",renderBullet:function(e,t){return'<button class="'.concat(t,'"><span>').concat((0,d.sprintf)((0,d.__)("Slide %s","full-site-editing"),e+1),"</span></button>")}},preventClicksPropagation:!1,releaseFormElements:!1,setWrapperSize:!0,touchStartPreventDefault:!1,on:{init:function(){Je(this.wrapperEl.querySelectorAll(".swiper-slide"),(function(e){return tt(e)})),et(this.slides[this.activeIndex])},slideChange:function(){var e=this.slides[this.activeIndex];if(tt(this.slides[this.previousIndex]),et(e),!this.autoplay.running){var t=e.querySelector("img"),a=!!t&&t.alt,i=(0,d.sprintf)((0,d.__)("Slide %s of %s","full-site-editing"),this.realIndex+1,this.pagination.bullets.length);(0,V.speak)((0,G.escapeHTML)("".concat(e.innerText,",\n\t\t\t\t\t\t\t").concat(a?(0,d.sprintf)((0,d.__)("Image: %s, ","full-site-editing"),a):"","\n\t\t\t\t\t\t\t").concat(i)),"assertive")}}}});if(t.autoplay){function i(){a.autoplay.stop(),e.play.focus()}function n(){a.autoplay.start(),e.pause.focus()}a.on("init",(function(){e.play.addEventListener("click",n),e.pause.addEventListener("click",i)})),a.on("autoplayStart",(function(){e.block.classList.add(Ze),(0,V.speak)((0,d.__)("Playing","full-site-editing"),"assertive")})),a.on("autoplayStop",(function(){e.block.classList.remove(Ze),(0,V.speak)((0,d.__)("Paused","full-site-editing"),"assertive")})),a.on("beforeDestroy",(function(){e.play.removeEventListener("click",n),e.pause.removeEventListener("click",i)}))}return a.init(),a}({block:this.carouselRef.current,container:this.carouselRef.current,next:this.btnNextRef.current,prev:this.btnPrevRef.current,play:this.btnPlayRef.current,pause:this.btnPauseRef.current,pagination:this.paginationRef.current},{autoplay:i,delay:1e3*n,initialSlide:e})}}},{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.className,i=e.setAttributes,n=e.latestPosts,s=t.authors,r=t.autoplay,c=t.categories,u=t.delay,p=t.postsToShow,h=t.showCategory,f=t.showDate,v=t.showAuthor,m=t.showAvatar,g=t.tags,b=y()(a,"wp-block-newspack-blocks-carousel","swiper-container",r&&"wp-block-newspack-blocks-carousel__autoplay-playing"),w=(0,x.__experimentalGetSettings)().formats.date;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:b,ref:this.carouselRef},n&&!n.length&&(0,o.createElement)(l.Placeholder,null,(0,d.__)("Sorry, no posts were found.","full-site-editing")),!n&&(0,o.createElement)(l.Placeholder,{icon:(0,o.createElement)(l.Spinner,null),className:"component-placeholder__align-center"}),n&&(0,o.createElement)(o.Fragment,null,r&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("button",{className:"amp-carousel-button-pause amp-carousel-button",ref:this.btnPauseRef}),(0,o.createElement)("button",{className:"amp-carousel-button-play amp-carousel-button",ref:this.btnPlayRef})),(0,o.createElement)("div",{className:"swiper-wrapper"},n.map((function(e){return e.newspack_featured_image_src&&(0,o.createElement)("article",{className:"post-has-image swiper-slide",key:e.id},(0,o.createElement)("figure",{className:"post-thumbnail"},e.newspack_featured_image_src&&(0,o.createElement)("a",{href:"#",rel:"bookmark"},(0,o.createElement)("img",{src:e.newspack_featured_image_src.large,alt:""}))),(0,o.createElement)("div",{className:"entry-wrapper"},e.newspack_post_sponsors&&(0,o.createElement)("span",{className:"cat-links sponsor-label"},(0,o.createElement)("span",{className:"flag"},e.newspack_post_sponsors[0].flag)),h&&e.newspack_category_info.length&&!e.newspack_post_sponsors&&(0,o.createElement)("div",{className:"cat-links"},(0,o.createElement)("a",{href:"#"},(0,C.decodeEntities)(e.newspack_category_info))),(0,o.createElement)("h3",{className:"entry-title"},(0,o.createElement)("a",{href:"#"},(0,C.decodeEntities)(e.title.rendered.trim()))),(0,o.createElement)("div",{className:"entry-meta"},e.newspack_post_sponsors&&(t=e.newspack_post_sponsors,(0,o.createElement)("span",{className:"sponsor-logos"},t.map((function(e){return(0,o.createElement)(o.Fragment,{key:e.id},e.src&&(0,o.createElement)("a",{href:e.sponsor_url},(0,o.createElement)("img",{src:e.src,width:e.img_width,height:e.img_height,alt:e.sponsor_name})))})))),e.newspack_post_sponsors&&function(e){return(0,o.createElement)("span",{className:"byline sponsor-byline"},e[0].byline_prefix," ",e.reduce((function(t,a,i){return[].concat(_()(t),[(0,o.createElement)("span",{className:"author",key:a.id},(0,o.createElement)("a",{href:a.author_link},a.sponsor_name)),i<e.length-2&&", ",e.length>1&&i===e.length-2&&(0,d._x)(" and ","post author","full-site-editing")])}),[]))}(e.newspack_post_sponsors),v&&m&&!e.newspack_post_sponsors&&e.newspack_author_info.map((function(e){return(0,o.createElement)("span",{className:"avatar author-avatar",key:e.id},(0,o.createElement)("a",{className:"url fn n",href:e.author_link},(0,o.createElement)(o.RawHTML,null,e.avatar)))})),v&&!e.newspack_post_sponsors&&function(e){return(0,o.createElement)("span",{className:"byline"},(0,d._x)("by","post author","full-site-editing")," ",e.reduce((function(t,a,i){return[].concat(_()(t),[(0,o.createElement)("span",{className:"author vcard",key:a.id},(0,o.createElement)("a",{className:"url fn n",href:a.author_link},a.display_name)),i<e.length-2&&", ",e.length>1&&i===e.length-2&&(0,d._x)(" and ","post author","full-site-editing")])}),[]))}(e.newspack_author_info),f&&(0,o.createElement)("time",{className:"entry-date published",key:"pub-date"},(0,x.dateI18n)(w,e.date_gmt)))));var t}))),(0,o.createElement)("button",{className:"amp-carousel-button amp-carousel-button-prev swiper-button-prev",ref:this.btnPrevRef}),(0,o.createElement)("button",{className:"amp-carousel-button amp-carousel-button-next swiper-button-next",ref:this.btnNextRef}),(0,o.createElement)("div",{className:"swiper-pagination-bullets amp-pagination",ref:this.paginationRef}))),(0,o.createElement)(E.InspectorControls,null,(0,o.createElement)(l.PanelBody,{title:(0,d.__)("Display Settings","full-site-editing"),initialOpen:!0},p&&(0,o.createElement)(B,{enableSpecific:!1,numberOfItems:p,onNumberOfItemsChange:function(e){return i({postsToShow:e||1})},authors:s,onAuthorsChange:function(e){return i({authors:e})},categories:c,onCategoriesChange:function(e){return i({categories:e})},tags:g,onTagsChange:function(e){return i({tags:e})}})),(0,o.createElement)(l.PanelBody,{title:(0,d.__)("Slideshow Settings","full-site-editing"),initialOpen:!0},(0,o.createElement)(l.ToggleControl,{label:(0,d.__)("Autoplay","full-site-editing"),help:(0,d.__)("Autoplay between slides","full-site-editing"),checked:r,onChange:function(e){i({autoplay:e})}}),r&&(0,o.createElement)(l.RangeControl,{label:(0,d.__)("Delay between transitions (in seconds)","full-site-editing"),value:u,onChange:function(e){i({delay:e})},min:1,max:20})),(0,o.createElement)(l.PanelBody,{title:(0,d.__)("Article Meta Settings","full-site-editing")},(0,o.createElement)(l.PanelRow,null,(0,o.createElement)(l.ToggleControl,{label:(0,d.__)("Show Date","full-site-editing"),checked:f,onChange:function(){return i({showDate:!f})}})),(0,o.createElement)(l.PanelRow,null,(0,o.createElement)(l.ToggleControl,{label:(0,d.__)("Show Category","full-site-editing"),checked:h,onChange:function(){return i({showCategory:!h})}})),(0,o.createElement)(l.PanelRow,null,(0,o.createElement)(l.ToggleControl,{label:(0,d.__)("Show Author","full-site-editing"),checked:v,onChange:function(){return i({showAuthor:!v})}})),v&&(0,o.createElement)(l.PanelRow,null,(0,o.createElement)(l.ToggleControl,{label:(0,d.__)("Show Author Avatar","full-site-editing"),checked:m,onChange:function(){return i({showAvatar:!m})}})))))}}]),a}(o.Component),it=(0,T.compose)([(0,S.withSelect)((function(e,t){var a=t.attributes,i=a.postsToShow,n=a.authors,s=a.categories,r=a.tags;return{latestPosts:(0,e("core").getEntityRecords)("postType","post",(0,b.pickBy)({per_page:i,categories:s,author:n,tags:r,meta_key:"_thumbnail_id",meta_value_num:0,meta_compare:">"},(function(e){return!(0,b.isUndefined)(e)})))}}))])(at),nt={title:(0,d.__)("Post Carousel","full-site-editing"),icon:(0,o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,o.createElement)(l.Path,{d:"M0 0h24v24H0z",fill:"none"}),(0,o.createElement)(l.Path,{d:"M2 6h4v11H2zm5 13h10V4H7v15zM9 6h6v11H9V6zm9 0h4v11h-4z",fill:"#36f"})),category:"newspack",keywords:[(0,d.__)("posts","full-site-editing"),(0,d.__)("slideshow","full-site-editing"),(0,d.__)("carousel","full-site-editing")],description:(0,d.__)("A carousel of posts.","full-site-editing"),attributes:{className:{type:"string"},autoplay:{type:"boolean",default:!1},delay:{type:"number",default:5},postsToShow:{type:"integer",default:3},authors:{type:"array"},categories:{type:"array"},tags:{type:"array"},showDate:{type:"boolean",default:!0},showAuthor:{type:"boolean",default:!0},showAvatar:{type:"boolean",default:!0},showCategory:{type:"boolean",default:!1}},supports:{html:!1,align:["center","wide","full"]},edit:it,save:function(){return null}},st="a8c/posts-carousel";(0,r.addFilter)("blocks.transforms_from_name","set-transformed-block-name",(function(e){return"newspack-blocks/carousel"!==e?e:st})),(0,s.registerBlockType)(st,n()(n()({},nt),{},{category:"widgets"}))}},t={};function a(i){if(t[i])return t[i].exports;var n=t[i]={exports:{}};return e[i](n,n.exports,a),n.exports}return a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a(543)}());
     6*/!function(){"use strict";var i={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var s=typeof a;if("string"===s||"number"===s)e.push(a);else if(Array.isArray(a)&&a.length){var r=n.apply(null,a);r&&e.push(r)}else if("object"===s)for(var o in a)i.call(a,o)&&a[o]&&e.push(o)}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(a=function(){return n}.apply(t,[]))||(e.exports=a)}()},)}());
  • full-site-editing/trunk/newspack-blocks/dist/carousel-block-view.asset.php

    r2460738 r2464442  
    1 <?php return array('dependencies' => array('wp-a11y', 'wp-dom-ready', 'wp-escape-html', 'wp-i18n', 'wp-polyfill'), 'version' => '321e8852245df469106e5d630088cbb8');
     1<?php return array('dependencies' => array('wp-a11y', 'wp-dom-ready', 'wp-escape-html', 'wp-i18n', 'wp-polyfill'), 'version' => '');
  • full-site-editing/trunk/newspack-blocks/dist/carousel-block-view.js

    r2460738 r2464442  
    1 !function(e,t){for(var a in t)e[a]=t[a];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={111:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},85:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},198:function(e){function t(e,t){for(var a=0;a<t.length;a++){var i=t[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}e.exports=function(e,a,i){return a&&t(e.prototype,a),i&&t(e,i),e}},588:function(e){function t(a){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(a)}e.exports=t},270:function(e,t,a){var i=a(742);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&&i(e,t)}},983:function(e,t,a){var i=a(921),s=a(111);e.exports=function(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?s(e):t}},742:function(e){function t(a,i){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(a,i)}e.exports=t},921:function(e){function t(a){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(a)}e.exports=t},913:function(e,t,a){"use strict";a.r(t);var i=window.wp.domReady,s=a.n(i),n=window.wp.a11y,r=window.wp.escapeHtml,o=window.wp.i18n,l=a(111),d=a.n(l),c=a(270),p=a.n(c),u=a(983),h=a.n(u),v=a(588),f=a.n(v),m=a(85),g=a.n(m),b=a(198),w=a.n(b),y="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,x="undefined"==typeof window?{document:y,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window,T=function e(t){g()(this,e);for(var a=0;a<t.length;a+=1)this[a]=t[a];return this.length=t.length,this};function E(e,t){var a=[],i=0;if(e&&!t&&e instanceof T)return e;if(e)if("string"==typeof e){var s,n,r=e.trim();if(r.indexOf("<")>=0&&r.indexOf(">")>=0){var o="div";for(0===r.indexOf("<li")&&(o="ul"),0===r.indexOf("<tr")&&(o="tbody"),0!==r.indexOf("<td")&&0!==r.indexOf("<th")||(o="tr"),0===r.indexOf("<tbody")&&(o="table"),0===r.indexOf("<option")&&(o="select"),(n=y.createElement(o)).innerHTML=r,i=0;i<n.childNodes.length;i+=1)a.push(n.childNodes[i])}else for(s=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||y).querySelectorAll(e.trim()):[y.getElementById(e.trim().split("#")[1])],i=0;i<s.length;i+=1)s[i]&&a.push(s[i])}else if(e.nodeType||e===x||e===y)a.push(e);else if(e.length>0&&e[0].nodeType)for(i=0;i<e.length;i+=1)a.push(e[i]);return new T(a)}function S(e){for(var t=[],a=0;a<e.length;a+=1)-1===t.indexOf(e[a])&&t.push(e[a]);return t}E.fn=T.prototype,E.Class=T,E.Dom7=T;"resize scroll".split(" ");function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,i=f()(e);if(t){var s=f()(this).constructor;a=Reflect.construct(i,arguments,s)}else a=i.apply(this,arguments);return h()(this,a)}}var M={addClass:function(e){if(void 0===e)return this;for(var t=e.split(" "),a=0;a<t.length;a+=1)for(var i=0;i<this.length;i+=1)void 0!==this[i]&&void 0!==this[i].classList&&this[i].classList.add(t[a]);return this},removeClass:function(e){for(var t=e.split(" "),a=0;a<t.length;a+=1)for(var i=0;i<this.length;i+=1)void 0!==this[i]&&void 0!==this[i].classList&&this[i].classList.remove(t[a]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){for(var t=e.split(" "),a=0;a<t.length;a+=1)for(var i=0;i<this.length;i+=1)void 0!==this[i]&&void 0!==this[i].classList&&this[i].classList.toggle(t[a]);return this},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var a=0;a<this.length;a+=1)if(2===arguments.length)this[a].setAttribute(e,t);else for(var i in e)this[a][i]=e[i],this[a].setAttribute(i,e[i]);return this},removeAttr:function(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},data:function(e,t){var a;if(void 0!==t){for(var i=0;i<this.length;i+=1)(a=this[i]).dom7ElementDataStorage||(a.dom7ElementDataStorage={}),a.dom7ElementDataStorage[e]=t;return this}if(a=this[0]){if(a.dom7ElementDataStorage&&e in a.dom7ElementDataStorage)return a.dom7ElementDataStorage[e];var s=a.getAttribute("data-".concat(e));return s||void 0}},transform:function(e){for(var t=0;t<this.length;t+=1){var a=this[t].style;a.webkitTransform=e,a.transform=e}return this},transition:function(e){"string"!=typeof e&&(e="".concat(e,"ms"));for(var t=0;t<this.length;t+=1){var a=this[t].style;a.webkitTransitionDuration=e,a.transitionDuration=e}return this},on:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var i=t[0],s=t[1],n=t[2],r=t[3];function o(e){var t=e.target;if(t){var a=e.target.dom7EventData||[];if(a.indexOf(e)<0&&a.unshift(e),E(t).is(s))n.apply(t,a);else for(var i=E(t).parents(),r=0;r<i.length;r+=1)E(i[r]).is(s)&&n.apply(i[r],a)}}function l(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),n.apply(this,t)}"function"==typeof t[1]&&(i=t[0],n=t[1],r=t[2],s=void 0),r||(r=!1);for(var d,c=i.split(" "),p=0;p<this.length;p+=1){var u=this[p];if(s)for(d=0;d<c.length;d+=1){var h=c[d];u.dom7LiveListeners||(u.dom7LiveListeners={}),u.dom7LiveListeners[h]||(u.dom7LiveListeners[h]=[]),u.dom7LiveListeners[h].push({listener:n,proxyListener:o}),u.addEventListener(h,o,r)}else for(d=0;d<c.length;d+=1){var v=c[d];u.dom7Listeners||(u.dom7Listeners={}),u.dom7Listeners[v]||(u.dom7Listeners[v]=[]),u.dom7Listeners[v].push({listener:n,proxyListener:l}),u.addEventListener(v,l,r)}}return this},off:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var i=t[0],s=t[1],n=t[2],r=t[3];"function"==typeof t[1]&&(i=t[0],n=t[1],r=t[2],s=void 0),r||(r=!1);for(var o=i.split(" "),l=0;l<o.length;l+=1)for(var d=o[l],c=0;c<this.length;c+=1){var p=this[c],u=void 0;if(!s&&p.dom7Listeners?u=p.dom7Listeners[d]:s&&p.dom7LiveListeners&&(u=p.dom7LiveListeners[d]),u&&u.length)for(var h=u.length-1;h>=0;h-=1){var v=u[h];n&&v.listener===n||n&&v.listener&&v.listener.dom7proxy&&v.listener.dom7proxy===n?(p.removeEventListener(d,v.proxyListener,r),u.splice(h,1)):n||(p.removeEventListener(d,v.proxyListener,r),u.splice(h,1))}}return this},trigger:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];for(var i=t[0].split(" "),s=t[1],n=0;n<i.length;n+=1)for(var r=i[n],o=0;o<this.length;o+=1){var l=this[o],d=void 0;try{d=new x.CustomEvent(r,{detail:s,bubbles:!0,cancelable:!0})}catch(c){(d=y.createEvent("Event")).initEvent(r,!0,!0),d.detail=s}l.dom7EventData=t.filter((function(e,t){return t>0})),l.dispatchEvent(d),l.dom7EventData=[],delete l.dom7EventData}return this},transitionEnd:function(e){var t,a=["webkitTransitionEnd","transitionend"],i=this;function s(n){if(n.target===this)for(e.call(this,n),t=0;t<a.length;t+=1)i.off(a[t],s)}if(e)for(t=0;t<a.length;t+=1)i.on(a[t],s);return this},outerWidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),a=y.body,i=e.clientTop||a.clientTop||0,s=e.clientLeft||a.clientLeft||0,n=e===x?x.scrollY:e.scrollTop,r=e===x?x.scrollX:e.scrollLeft;return{top:t.top+n-i,left:t.left+r-s}}return null},css:function(e,t){var a;if(1===arguments.length){if("string"!=typeof e){for(a=0;a<this.length;a+=1)for(var i in e)this[a].style[i]=e[i];return this}if(this[0])return x.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(a=0;a<this.length;a+=1)this[a].style[e]=t;return this}return this},each:function(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],t,this[t]))return this;return this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){var t,a,i=this[0];if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=E(e),a=0;a<t.length;a+=1)if(t[a]===i)return!0;return!1}if(e===y)return i===y;if(e===x)return i===x;if(e.nodeType||e instanceof T){for(t=e.nodeType?[e]:e,a=0;a<t.length;a+=1)if(t[a]===i)return!0;return!1}return!1},index:function(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;var t,a=this.length;return new T(e>a-1?[]:e<0?(t=a+e)<0?[]:[this[t]]:[this[e]])},append:function(){for(var e,t=0;t<arguments.length;t+=1){e=t<0||arguments.length<=t?void 0:arguments[t];for(var a=0;a<this.length;a+=1)if("string"==typeof e){var i=y.createElement("div");for(i.innerHTML=e;i.firstChild;)this[a].appendChild(i.firstChild)}else if(e instanceof T)for(var s=0;s<e.length;s+=1)this[a].appendChild(e[s]);else this[a].appendChild(e)}return this},prepend:function(e){var t,a;for(t=0;t<this.length;t+=1)if("string"==typeof e){var i=y.createElement("div");for(i.innerHTML=e,a=i.childNodes.length-1;a>=0;a-=1)this[t].insertBefore(i.childNodes[a],this[t].childNodes[0])}else if(e instanceof T)for(a=0;a<e.length;a+=1)this[t].insertBefore(e[a],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this},next:function(e){return this.length>0?e?this[0].nextElementSibling&&E(this[0].nextElementSibling).is(e)?new T([this[0].nextElementSibling]):new T([]):this[0].nextElementSibling?new T([this[0].nextElementSibling]):new T([]):new T([])},nextAll:function(e){var t=[],a=this[0];if(!a)return new T([]);for(;a.nextElementSibling;){var i=a.nextElementSibling;e?E(i).is(e)&&t.push(i):t.push(i),a=i}return new T(t)},prev:function(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&E(t.previousElementSibling).is(e)?new T([t.previousElementSibling]):new T([]):t.previousElementSibling?new T([t.previousElementSibling]):new T([])}return new T([])},prevAll:function(e){var t=[],a=this[0];if(!a)return new T([]);for(;a.previousElementSibling;){var i=a.previousElementSibling;e?E(i).is(e)&&t.push(i):t.push(i),a=i}return new T(t)},parent:function(e){for(var t=[],a=0;a<this.length;a+=1)null!==this[a].parentNode&&(e?E(this[a].parentNode).is(e)&&t.push(this[a].parentNode):t.push(this[a].parentNode));return E(S(t))},parents:function(e){for(var t=[],a=0;a<this.length;a+=1)for(var i=this[a].parentNode;i;)e?E(i).is(e)&&t.push(i):t.push(i),i=i.parentNode;return E(S(t))},closest:function(e){var t=this;return void 0===e?new T([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){for(var t=[],a=0;a<this.length;a+=1)for(var i=this[a].querySelectorAll(e),s=0;s<i.length;s+=1)t.push(i[s]);return new T(t)},children:function(e){for(var t=[],a=0;a<this.length;a+=1)for(var i=this[a].childNodes,s=0;s<i.length;s+=1)e?1===i[s].nodeType&&E(i[s]).is(e)&&t.push(i[s]):1===i[s].nodeType&&t.push(i[s]);return new T(S(t))},remove:function(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},add:function(){for(var e,t,a=this,i=arguments.length,s=new Array(i),n=0;n<i;n++)s[n]=arguments[n];for(e=0;e<s.length;e+=1){var r=E(s[e]);for(t=0;t<r.length;t+=1)a[a.length]=r[t],a.length+=1}return a},styles:function(){return this[0]?x.getComputedStyle(this[0],null):{}}};Object.keys(M).forEach((function(e){E.fn[e]=E.fn[e]||M[e]}));var k,P,z,$={deleteProps:function(e){var t=e;Object.keys(t).forEach((function(e){try{t[e]=null}catch(a){}try{delete t[e]}catch(a){}}))},nextTick:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e){var t,a,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",n=x.getComputedStyle(e,null);return x.WebKitCSSMatrix?((a=n.transform||n.webkitTransform).split(",").length>6&&(a=a.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),i=new x.WebKitCSSMatrix("none"===a?"":a)):t=(i=n.MozTransform||n.OTransform||n.MsTransform||n.msTransform||n.transform||n.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===s&&(a=x.WebKitCSSMatrix?i.m41:16===t.length?parseFloat(t[12]):parseFloat(t[4])),"y"===s&&(a=x.WebKitCSSMatrix?i.m42:16===t.length?parseFloat(t[13]):parseFloat(t[5])),a||0},parseUrlQuery:function(e){var t,a,i,s,n={},r=e||x.location.href;if("string"==typeof r&&r.length)for(s=(a=(r=r.indexOf("?")>-1?r.replace(/\S*\?/,""):"").split("&").filter((function(e){return""!==e}))).length,t=0;t<s;t+=1)i=a[t].replace(/#\S+/g,"").split("="),n[decodeURIComponent(i[0])]=void 0===i[1]?void 0:decodeURIComponent(i[1])||"";return n},isObject:function(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object},extend:function(){for(var e=Object(arguments.length<=0?void 0:arguments[0]),t=1;t<arguments.length;t+=1){var a=t<0||arguments.length<=t?void 0:arguments[t];if(null!=a)for(var i=Object.keys(Object(a)),s=0,n=i.length;s<n;s+=1){var r=i[s],o=Object.getOwnPropertyDescriptor(a,r);void 0!==o&&o.enumerable&&($.isObject(e[r])&&$.isObject(a[r])?$.extend(e[r],a[r]):!$.isObject(e[r])&&$.isObject(a[r])?(e[r]={},$.extend(e[r],a[r])):e[r]=a[r])}}return e}},I=(P=y.createElement("div"),{touch:x.Modernizr&&!0===x.Modernizr.touch||!!(x.navigator.maxTouchPoints>0||"ontouchstart"in x||x.DocumentTouch&&y instanceof x.DocumentTouch),pointerEvents:!!(x.navigator.pointerEnabled||x.PointerEvent||"maxTouchPoints"in x.navigator&&x.navigator.maxTouchPoints>0),prefixedPointerEvents:!!x.navigator.msPointerEnabled,transition:(k=P.style,"transition"in k||"webkitTransition"in k||"MozTransition"in k),transforms3d:x.Modernizr&&!0===x.Modernizr.csstransforms3d||function(){var e=P.style;return"webkitPerspective"in e||"MozPerspective"in e||"OPerspective"in e||"MsPerspective"in e||"perspective"in e}(),flexbox:function(){for(var e=P.style,t="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),a=0;a<t.length;a+=1)if(t[a]in e)return!0;return!1}(),observer:"MutationObserver"in x||"WebkitMutationObserver"in x,passiveListener:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});x.addEventListener("testPassiveListener",null,t)}catch(a){}return e}(),gestures:"ongesturestart"in x}),L={isIE:!!x.navigator.userAgent.match(/Trident/g)||!!x.navigator.userAgent.match(/MSIE/g),isEdge:!!x.navigator.userAgent.match(/Edge/g),isSafari:(z=x.navigator.userAgent.toLowerCase(),z.indexOf("safari")>=0&&z.indexOf("chrome")<0&&z.indexOf("android")<0),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(x.navigator.userAgent)},D=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};g()(this,e);var a=this;a.params=t,a.eventsListeners={},a.params&&a.params.on&&Object.keys(a.params.on).forEach((function(e){a.on(e,a.params.on[e])}))}return w()(e,[{key:"on",value:function(e,t,a){var i=this;if("function"!=typeof t)return i;var s=a?"unshift":"push";return e.split(" ").forEach((function(e){i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][s](t)})),i}},{key:"once",value:function(e,t,a){var i=this;if("function"!=typeof t)return i;function s(){for(var a=arguments.length,n=new Array(a),r=0;r<a;r++)n[r]=arguments[r];t.apply(i,n),i.off(e,s),s.f7proxy&&delete s.f7proxy}return s.f7proxy=t,i.on(e,s,a)}},{key:"off",value:function(e,t){var a=this;return a.eventsListeners?(e.split(" ").forEach((function(e){void 0===t?a.eventsListeners[e]=[]:a.eventsListeners[e]&&a.eventsListeners[e].length&&a.eventsListeners[e].forEach((function(i,s){(i===t||i.f7proxy&&i.f7proxy===t)&&a.eventsListeners[e].splice(s,1)}))})),a):a}},{key:"emit",value:function(){var e,t,a,i=this;if(!i.eventsListeners)return i;for(var s=arguments.length,n=new Array(s),r=0;r<s;r++)n[r]=arguments[r];"string"==typeof n[0]||Array.isArray(n[0])?(e=n[0],t=n.slice(1,n.length),a=i):(e=n[0].events,t=n[0].data,a=n[0].context||i);var o=Array.isArray(e)?e:e.split(" ");return o.forEach((function(e){if(i.eventsListeners&&i.eventsListeners[e]){var s=[];i.eventsListeners[e].forEach((function(e){s.push(e)})),s.forEach((function(e){e.apply(a,t)}))}})),i}},{key:"useModulesParams",value:function(e){var t=this;t.modules&&Object.keys(t.modules).forEach((function(a){var i=t.modules[a];i.params&&$.extend(e,i.params)}))}},{key:"useModules",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this;t.modules&&Object.keys(t.modules).forEach((function(a){var i=t.modules[a],s=e[a]||{};i.instance&&Object.keys(i.instance).forEach((function(e){var a=i.instance[e];t[e]="function"==typeof a?a.bind(t):a})),i.on&&t.on&&Object.keys(i.on).forEach((function(e){t.on(e,i.on[e])})),i.create&&i.create.bind(t)(s)}))}}],[{key:"installModule",value:function(e){var t=this;t.prototype.modules||(t.prototype.modules={});var a=e.name||"".concat(Object.keys(t.prototype.modules).length,"_").concat($.now());if(t.prototype.modules[a]=e,e.proto&&Object.keys(e.proto).forEach((function(a){t.prototype[a]=e.proto[a]})),e.static&&Object.keys(e.static).forEach((function(a){t[a]=e.static[a]})),e.install){for(var i=arguments.length,s=new Array(i>1?i-1:0),n=1;n<i;n++)s[n-1]=arguments[n];e.install.apply(t,s)}return t}},{key:"use",value:function(e){var t=this;if(Array.isArray(e))return e.forEach((function(e){return t.installModule(e)})),t;for(var a=arguments.length,i=new Array(a>1?a-1:0),s=1;s<a;s++)i[s-1]=arguments[s];return t.installModule.apply(t,[e].concat(i))}},{key:"components",set:function(e){this.use&&this.use(e)}}]),e}();var O={updateSize:function(){var e,t,a=this,i=a.$el;e=void 0!==a.params.width?a.params.width:i[0].clientWidth,t=void 0!==a.params.height?a.params.height:i[0].clientHeight,0===e&&a.isHorizontal()||0===t&&a.isVertical()||(e=e-parseInt(i.css("padding-left"),10)-parseInt(i.css("padding-right"),10),t=t-parseInt(i.css("padding-top"),10)-parseInt(i.css("padding-bottom"),10),$.extend(a,{width:e,height:t,size:a.isHorizontal()?e:t}))},updateSlides:function(){var e=this,t=e.params,a=e.$wrapperEl,i=e.size,s=e.rtlTranslate,n=e.wrongRTL,r=e.virtual&&t.virtual.enabled,o=r?e.virtual.slides.length:e.slides.length,l=a.children(".".concat(e.params.slideClass)),d=r?e.virtual.slides.length:l.length,c=[],p=[],u=[],h=t.slidesOffsetBefore;"function"==typeof h&&(h=t.slidesOffsetBefore.call(e));var v=t.slidesOffsetAfter;"function"==typeof v&&(v=t.slidesOffsetAfter.call(e));var f=e.snapGrid.length,m=e.snapGrid.length,g=t.spaceBetween,b=-h,w=0,y=0;if(void 0!==i){var T,E;"string"==typeof g&&g.indexOf("%")>=0&&(g=parseFloat(g.replace("%",""))/100*i),e.virtualSize=-g,s?l.css({marginLeft:"",marginTop:""}):l.css({marginRight:"",marginBottom:""}),t.slidesPerColumn>1&&(T=Math.floor(d/t.slidesPerColumn)===d/e.params.slidesPerColumn?d:Math.ceil(d/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(T=Math.max(T,t.slidesPerView*t.slidesPerColumn)));for(var S,C=t.slidesPerColumn,M=T/C,k=Math.floor(d/t.slidesPerColumn),P=0;P<d;P+=1){E=0;var z=l.eq(P);if(t.slidesPerColumn>1){var D=void 0,O=void 0,A=void 0;if("column"===t.slidesPerColumnFill||"row"===t.slidesPerColumnFill&&t.slidesPerGroup>1){if("column"===t.slidesPerColumnFill)A=P-(O=Math.floor(P/C))*C,(O>k||O===k&&A===C-1)&&(A+=1)>=C&&(A=0,O+=1);else{var H=Math.floor(P/t.slidesPerGroup);O=P-(A=Math.floor(P/t.slidesPerView)-H*t.slidesPerColumn)*t.slidesPerView-H*t.slidesPerView}D=O+A*T/C,z.css({"-webkit-box-ordinal-group":D,"-moz-box-ordinal-group":D,"-ms-flex-order":D,"-webkit-order":D,order:D})}else O=P-(A=Math.floor(P/M))*M;z.css("margin-".concat(e.isHorizontal()?"top":"left"),0!==A&&t.spaceBetween&&"".concat(t.spaceBetween,"px")).attr("data-swiper-column",O).attr("data-swiper-row",A)}if("none"!==z.css("display")){if("auto"===t.slidesPerView){var G=x.getComputedStyle(z[0],null),N=z[0].style.transform,B=z[0].style.webkitTransform;if(N&&(z[0].style.transform="none"),B&&(z[0].style.webkitTransform="none"),t.roundLengths)E=e.isHorizontal()?z.outerWidth(!0):z.outerHeight(!0);else if(e.isHorizontal()){var X=parseFloat(G.getPropertyValue("width")),V=parseFloat(G.getPropertyValue("padding-left")),Y=parseFloat(G.getPropertyValue("padding-right")),F=parseFloat(G.getPropertyValue("margin-left")),q=parseFloat(G.getPropertyValue("margin-right")),R=G.getPropertyValue("box-sizing");E=R&&"border-box"===R&&!L.isIE?X+F+q:X+V+Y+F+q}else{var W=parseFloat(G.getPropertyValue("height")),j=parseFloat(G.getPropertyValue("padding-top")),_=parseFloat(G.getPropertyValue("padding-bottom")),U=parseFloat(G.getPropertyValue("margin-top")),K=parseFloat(G.getPropertyValue("margin-bottom")),Z=G.getPropertyValue("box-sizing");E=Z&&"border-box"===Z&&!L.isIE?W+U+K:W+j+_+U+K}N&&(z[0].style.transform=N),B&&(z[0].style.webkitTransform=B),t.roundLengths&&(E=Math.floor(E))}else E=(i-(t.slidesPerView-1)*g)/t.slidesPerView,t.roundLengths&&(E=Math.floor(E)),l[P]&&(e.isHorizontal()?l[P].style.width="".concat(E,"px"):l[P].style.height="".concat(E,"px"));l[P]&&(l[P].swiperSlideSize=E),u.push(E),t.centeredSlides?(b=b+E/2+w/2+g,0===w&&0!==P&&(b=b-i/2-g),0===P&&(b=b-i/2-g),Math.abs(b)<.001&&(b=0),t.roundLengths&&(b=Math.floor(b)),y%t.slidesPerGroup==0&&c.push(b),p.push(b)):(t.roundLengths&&(b=Math.floor(b)),y%t.slidesPerGroup==0&&c.push(b),p.push(b),b=b+E+g),e.virtualSize+=E+g,w=E,y+=1}}if(e.virtualSize=Math.max(e.virtualSize,i)+v,s&&n&&("slide"===t.effect||"coverflow"===t.effect)&&a.css({width:"".concat(e.virtualSize+t.spaceBetween,"px")}),I.flexbox&&!t.setWrapperSize||(e.isHorizontal()?a.css({width:"".concat(e.virtualSize+t.spaceBetween,"px")}):a.css({height:"".concat(e.virtualSize+t.spaceBetween,"px")})),t.slidesPerColumn>1&&(e.virtualSize=(E+t.spaceBetween)*T,e.virtualSize=Math.ceil(e.virtualSize/t.slidesPerColumn)-t.spaceBetween,e.isHorizontal()?a.css({width:"".concat(e.virtualSize+t.spaceBetween,"px")}):a.css({height:"".concat(e.virtualSize+t.spaceBetween,"px")}),t.centeredSlides)){S=[];for(var Q=0;Q<c.length;Q+=1){var J=c[Q];t.roundLengths&&(J=Math.floor(J)),c[Q]<e.virtualSize+c[0]&&S.push(J)}c=S}if(!t.centeredSlides){S=[];for(var ee=0;ee<c.length;ee+=1){var te=c[ee];t.roundLengths&&(te=Math.floor(te)),c[ee]<=e.virtualSize-i&&S.push(te)}c=S,Math.floor(e.virtualSize-i)-Math.floor(c[c.length-1])>1&&c.push(e.virtualSize-i)}if(0===c.length&&(c=[0]),0!==t.spaceBetween&&(e.isHorizontal()?s?l.css({marginLeft:"".concat(g,"px")}):l.css({marginRight:"".concat(g,"px")}):l.css({marginBottom:"".concat(g,"px")})),t.centerInsufficientSlides){var ae=0;if(u.forEach((function(e){ae+=e+(t.spaceBetween?t.spaceBetween:0)})),(ae-=t.spaceBetween)<i){var ie=(i-ae)/2;c.forEach((function(e,t){c[t]=e-ie})),p.forEach((function(e,t){p[t]=e+ie}))}}$.extend(e,{slides:l,snapGrid:c,slidesGrid:p,slidesSizesGrid:u}),d!==o&&e.emit("slidesLengthChange"),c.length!==f&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==m&&e.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&e.updateSlidesOffset()}},updateAutoHeight:function(e){var t,a=this,i=[],s=0;if("number"==typeof e?a.setTransition(e):!0===e&&a.setTransition(a.params.speed),"auto"!==a.params.slidesPerView&&a.params.slidesPerView>1)for(t=0;t<Math.ceil(a.params.slidesPerView);t+=1){var n=a.activeIndex+t;if(n>a.slides.length)break;i.push(a.slides.eq(n)[0])}else i.push(a.slides.eq(a.activeIndex)[0]);for(t=0;t<i.length;t+=1)if(void 0!==i[t]){var r=i[t].offsetHeight;s=r>s?r:s}s&&a.$wrapperEl.css("height","".concat(s,"px"))},updateSlidesOffset:function(){for(var e=this.slides,t=0;t<e.length;t+=1)e[t].swiperSlideOffset=this.isHorizontal()?e[t].offsetLeft:e[t].offsetTop},updateSlidesProgress:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this&&this.translate||0,t=this,a=t.params,i=t.slides,s=t.rtlTranslate;if(0!==i.length){void 0===i[0].swiperSlideOffset&&t.updateSlidesOffset();var n=-e;s&&(n=e),i.removeClass(a.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(var r=0;r<i.length;r+=1){var o=i[r],l=(n+(a.centeredSlides?t.minTranslate():0)-o.swiperSlideOffset)/(o.swiperSlideSize+a.spaceBetween);if(a.watchSlidesVisibility){var d=-(n-o.swiperSlideOffset),c=d+t.slidesSizesGrid[r],p=d>=0&&d<t.size-1||c>1&&c<=t.size||d<=0&&c>=t.size;p&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(r),i.eq(r).addClass(a.slideVisibleClass))}o.progress=s?-l:l}t.visibleSlides=E(t.visibleSlides)}},updateProgress:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this&&this.translate||0,t=this,a=t.params,i=t.maxTranslate()-t.minTranslate(),s=t.progress,n=t.isBeginning,r=t.isEnd,o=n,l=r;0===i?(s=0,n=!0,r=!0):(n=(s=(e-t.minTranslate())/i)<=0,r=s>=1),$.extend(t,{progress:s,isBeginning:n,isEnd:r}),(a.watchSlidesProgress||a.watchSlidesVisibility)&&t.updateSlidesProgress(e),n&&!o&&t.emit("reachBeginning toEdge"),r&&!l&&t.emit("reachEnd toEdge"),(o&&!n||l&&!r)&&t.emit("fromEdge"),t.emit("progress",s)},updateSlidesClasses:function(){var e,t=this,a=t.slides,i=t.params,s=t.$wrapperEl,n=t.activeIndex,r=t.realIndex,o=t.virtual&&i.virtual.enabled;a.removeClass("".concat(i.slideActiveClass," ").concat(i.slideNextClass," ").concat(i.slidePrevClass," ").concat(i.slideDuplicateActiveClass," ").concat(i.slideDuplicateNextClass," ").concat(i.slideDuplicatePrevClass)),(e=o?t.$wrapperEl.find(".".concat(i.slideClass,'[data-swiper-slide-index="').concat(n,'"]')):a.eq(n)).addClass(i.slideActiveClass),i.loop&&(e.hasClass(i.slideDuplicateClass)?s.children(".".concat(i.slideClass,":not(.").concat(i.slideDuplicateClass,')[data-swiper-slide-index="').concat(r,'"]')).addClass(i.slideDuplicateActiveClass):s.children(".".concat(i.slideClass,".").concat(i.slideDuplicateClass,'[data-swiper-slide-index="').concat(r,'"]')).addClass(i.slideDuplicateActiveClass));var l=e.nextAll(".".concat(i.slideClass)).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=a.eq(0)).addClass(i.slideNextClass);var d=e.prevAll(".".concat(i.slideClass)).eq(0).addClass(i.slidePrevClass);i.loop&&0===d.length&&(d=a.eq(-1)).addClass(i.slidePrevClass),i.loop&&(l.hasClass(i.slideDuplicateClass)?s.children(".".concat(i.slideClass,":not(.").concat(i.slideDuplicateClass,')[data-swiper-slide-index="').concat(l.attr("data-swiper-slide-index"),'"]')).addClass(i.slideDuplicateNextClass):s.children(".".concat(i.slideClass,".").concat(i.slideDuplicateClass,'[data-swiper-slide-index="').concat(l.attr("data-swiper-slide-index"),'"]')).addClass(i.slideDuplicateNextClass),d.hasClass(i.slideDuplicateClass)?s.children(".".concat(i.slideClass,":not(.").concat(i.slideDuplicateClass,')[data-swiper-slide-index="').concat(d.attr("data-swiper-slide-index"),'"]')).addClass(i.slideDuplicatePrevClass):s.children(".".concat(i.slideClass,".").concat(i.slideDuplicateClass,'[data-swiper-slide-index="').concat(d.attr("data-swiper-slide-index"),'"]')).addClass(i.slideDuplicatePrevClass))},updateActiveIndex:function(e){var t,a=this,i=a.rtlTranslate?a.translate:-a.translate,s=a.slidesGrid,n=a.snapGrid,r=a.params,o=a.activeIndex,l=a.realIndex,d=a.snapIndex,c=e;if(void 0===c){for(var p=0;p<s.length;p+=1)void 0!==s[p+1]?i>=s[p]&&i<s[p+1]-(s[p+1]-s[p])/2?c=p:i>=s[p]&&i<s[p+1]&&(c=p+1):i>=s[p]&&(c=p);r.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if((t=n.indexOf(i)>=0?n.indexOf(i):Math.floor(c/r.slidesPerGroup))>=n.length&&(t=n.length-1),c!==o){var u=parseInt(a.slides.eq(c).attr("data-swiper-slide-index")||c,10);$.extend(a,{snapIndex:t,realIndex:u,previousIndex:o,activeIndex:c}),a.emit("activeIndexChange"),a.emit("snapIndexChange"),l!==u&&a.emit("realIndexChange"),(a.initialized||a.runCallbacksOnInit)&&a.emit("slideChange")}else t!==d&&(a.snapIndex=t,a.emit("snapIndexChange"))},updateClickedSlide:function(e){var t=this,a=t.params,i=E(e.target).closest(".".concat(a.slideClass))[0],s=!1;if(i)for(var n=0;n<t.slides.length;n+=1)t.slides[n]===i&&(s=!0);if(!i||!s)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=i,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(E(i).attr("data-swiper-slide-index"),10):t.clickedIndex=E(i).index(),a.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}};var A={getTranslate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.isHorizontal()?"x":"y",t=this,a=t.params,i=t.rtlTranslate,s=t.translate,n=t.$wrapperEl;if(a.virtualTranslate)return i?-s:s;var r=$.getTranslate(n[0],e);return i&&(r=-r),r||0},setTranslate:function(e,t){var a=this,i=a.rtlTranslate,s=a.params,n=a.$wrapperEl,r=a.progress,o=0,l=0;a.isHorizontal()?o=i?-e:e:l=e,s.roundLengths&&(o=Math.floor(o),l=Math.floor(l)),s.virtualTranslate||(I.transforms3d?n.transform("translate3d(".concat(o,"px, ").concat(l,"px, ").concat(0,"px)")):n.transform("translate(".concat(o,"px, ").concat(l,"px)"))),a.previousTranslate=a.translate,a.translate=a.isHorizontal()?o:l;var d=a.maxTranslate()-a.minTranslate();(0===d?0:(e-a.minTranslate())/d)!==r&&a.updateProgress(e),a.emit("setTranslate",a.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]}};var H={setTransition:function(e,t){this.$wrapperEl.transition(e),this.emit("setTransition",e,t)},transitionStart:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0,a=this,i=a.activeIndex,s=a.params,n=a.previousIndex;s.autoHeight&&a.updateAutoHeight();var r=t;if(r||(r=i>n?"next":i<n?"prev":"reset"),a.emit("transitionStart"),e&&i!==n){if("reset"===r)return void a.emit("slideResetTransitionStart");a.emit("slideChangeTransitionStart"),"next"===r?a.emit("slideNextTransitionStart"):a.emit("slidePrevTransitionStart")}},transitionEnd:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0,a=this,i=a.activeIndex,s=a.previousIndex;a.animating=!1,a.setTransition(0);var n=t;if(n||(n=i>s?"next":i<s?"prev":"reset"),a.emit("transitionEnd"),e&&i!==s){if("reset"===n)return void a.emit("slideResetTransitionEnd");a.emit("slideChangeTransitionEnd"),"next"===n?a.emit("slideNextTransitionEnd"):a.emit("slidePrevTransitionEnd")}}};var G={slideTo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0,s=this,n=e;n<0&&(n=0);var r=s.params,o=s.snapGrid,l=s.slidesGrid,d=s.previousIndex,c=s.activeIndex,p=s.rtlTranslate;if(s.animating&&r.preventInteractionOnTransition)return!1;var u=Math.floor(n/r.slidesPerGroup);u>=o.length&&(u=o.length-1),(c||r.initialSlide||0)===(d||0)&&a&&s.emit("beforeSlideChangeStart");var h,v=-o[u];if(s.updateProgress(v),r.normalizeSlideIndex)for(var f=0;f<l.length;f+=1)-Math.floor(100*v)>=Math.floor(100*l[f])&&(n=f);if(s.initialized&&n!==c){if(!s.allowSlideNext&&v<s.translate&&v<s.minTranslate())return!1;if(!s.allowSlidePrev&&v>s.translate&&v>s.maxTranslate()&&(c||0)!==n)return!1}return h=n>c?"next":n<c?"prev":"reset",p&&-v===s.translate||!p&&v===s.translate?(s.updateActiveIndex(n),r.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),"slide"!==r.effect&&s.setTranslate(v),"reset"!==h&&(s.transitionStart(a,h),s.transitionEnd(a,h)),!1):(0!==t&&I.transition?(s.setTransition(t),s.setTranslate(v),s.updateActiveIndex(n),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,i),s.transitionStart(a,h),s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(e){s&&!s.destroyed&&e.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(a,h))}),s.$wrapperEl[0].addEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd))):(s.setTransition(0),s.setTranslate(v),s.updateActiveIndex(n),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,i),s.transitionStart(a,h),s.transitionEnd(a,h)),!0)},slideToLoop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0,s=this,n=e;return s.params.loop&&(n+=s.loopedSlides),s.slideTo(n,t,a,i)},slideNext:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2?arguments[2]:void 0,i=this,s=i.params,n=i.animating;return s.loop?!n&&(i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft,i.slideTo(i.activeIndex+s.slidesPerGroup,e,t,a)):i.slideTo(i.activeIndex+s.slidesPerGroup,e,t,a)},slidePrev:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2?arguments[2]:void 0,i=this,s=i.params,n=i.animating,r=i.snapGrid,o=i.slidesGrid,l=i.rtlTranslate;if(s.loop){if(n)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}var d=l?i.translate:-i.translate;function c(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var p,u=c(d),h=r.map((function(e){return c(e)})),v=(o.map((function(e){return c(e)})),r[h.indexOf(u)],r[h.indexOf(u)-1]);return void 0!==v&&(p=o.indexOf(v))<0&&(p=i.activeIndex-1),i.slideTo(p,e,t,a)},slideReset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2?arguments[2]:void 0,i=this;return i.slideTo(i.activeIndex,e,t,a)},slideToClosest:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2?arguments[2]:void 0,i=this,s=i.activeIndex,n=Math.floor(s/i.params.slidesPerGroup);if(n<i.snapGrid.length-1){var r=i.rtlTranslate?i.translate:-i.translate,o=i.snapGrid[n],l=i.snapGrid[n+1];r-o>(l-o)/2&&(s=i.params.slidesPerGroup)}return i.slideTo(s,e,t,a)},slideToClickedSlide:function(){var e,t=this,a=t.params,i=t.$wrapperEl,s="auto"===a.slidesPerView?t.slidesPerViewDynamic():a.slidesPerView,n=t.clickedIndex;if(a.loop){if(t.animating)return;e=parseInt(E(t.clickedSlide).attr("data-swiper-slide-index"),10),a.centeredSlides?n<t.loopedSlides-s/2||n>t.slides.length-t.loopedSlides+s/2?(t.loopFix(),n=i.children(".".concat(a.slideClass,'[data-swiper-slide-index="').concat(e,'"]:not(.').concat(a.slideDuplicateClass,")")).eq(0).index(),$.nextTick((function(){t.slideTo(n)}))):t.slideTo(n):n>t.slides.length-s?(t.loopFix(),n=i.children(".".concat(a.slideClass,'[data-swiper-slide-index="').concat(e,'"]:not(.').concat(a.slideDuplicateClass,")")).eq(0).index(),$.nextTick((function(){t.slideTo(n)}))):t.slideTo(n)}else t.slideTo(n)}};var N={loopCreate:function(){var e=this,t=e.params,a=e.$wrapperEl;a.children(".".concat(t.slideClass,".").concat(t.slideDuplicateClass)).remove();var i=a.children(".".concat(t.slideClass));if(t.loopFillGroupWithBlank){var s=t.slidesPerGroup-i.length%t.slidesPerGroup;if(s!==t.slidesPerGroup){for(var n=0;n<s;n+=1){var r=E(y.createElement("div")).addClass("".concat(t.slideClass," ").concat(t.slideBlankClass));a.append(r)}i=a.children(".".concat(t.slideClass))}}"auto"!==t.slidesPerView||t.loopedSlides||(t.loopedSlides=i.length),e.loopedSlides=parseInt(t.loopedSlides||t.slidesPerView,10),e.loopedSlides+=t.loopAdditionalSlides,e.loopedSlides>i.length&&(e.loopedSlides=i.length);var o=[],l=[];i.each((function(t,a){var s=E(a);t<e.loopedSlides&&l.push(a),t<i.length&&t>=i.length-e.loopedSlides&&o.push(a),s.attr("data-swiper-slide-index",t)}));for(var d=0;d<l.length;d+=1)a.append(E(l[d].cloneNode(!0)).addClass(t.slideDuplicateClass));for(var c=o.length-1;c>=0;c-=1)a.prepend(E(o[c].cloneNode(!0)).addClass(t.slideDuplicateClass))},loopFix:function(){var e,t=this,a=t.params,i=t.activeIndex,s=t.slides,n=t.loopedSlides,r=t.allowSlidePrev,o=t.allowSlideNext,l=t.snapGrid,d=t.rtlTranslate;t.allowSlidePrev=!0,t.allowSlideNext=!0;var c=-l[i]-t.getTranslate();if(i<n)e=s.length-3*n+i,e+=n,t.slideTo(e,0,!1,!0)&&0!==c&&t.setTranslate((d?-t.translate:t.translate)-c);else if("auto"===a.slidesPerView&&i>=2*n||i>=s.length-n){e=-s.length+i+n,e+=n,t.slideTo(e,0,!1,!0)&&0!==c&&t.setTranslate((d?-t.translate:t.translate)-c)}t.allowSlidePrev=r,t.allowSlideNext=o},loopDestroy:function(){var e=this,t=e.$wrapperEl,a=e.params,i=e.slides;t.children(".".concat(a.slideClass,".").concat(a.slideDuplicateClass,",.").concat(a.slideClass,".").concat(a.slideBlankClass)).remove(),i.removeAttr("data-swiper-slide-index")}};var B={setGrabCursor:function(e){var t=this;if(!(I.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked)){var a=t.el;a.style.cursor="move",a.style.cursor=e?"-webkit-grabbing":"-webkit-grab",a.style.cursor=e?"-moz-grabbin":"-moz-grab",a.style.cursor=e?"grabbing":"grab"}},unsetGrabCursor:function(){var e=this;I.touch||e.params.watchOverflow&&e.isLocked||(e.el.style.cursor="")}};var X={appendSlide:function(e){var t=this,a=t.$wrapperEl,i=t.params;if(i.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(var s=0;s<e.length;s+=1)e[s]&&a.append(e[s]);else a.append(e);i.loop&&t.loopCreate(),i.observer&&I.observer||t.update()},prependSlide:function(e){var t=this,a=t.params,i=t.$wrapperEl,s=t.activeIndex;a.loop&&t.loopDestroy();var n=s+1;if("object"==typeof e&&"length"in e){for(var r=0;r<e.length;r+=1)e[r]&&i.prepend(e[r]);n=s+e.length}else i.prepend(e);a.loop&&t.loopCreate(),a.observer&&I.observer||t.update(),t.slideTo(n,0,!1)},addSlide:function(e,t){var a=this,i=a.$wrapperEl,s=a.params,n=a.activeIndex;s.loop&&(n-=a.loopedSlides,a.loopDestroy(),a.slides=i.children(".".concat(s.slideClass)));var r=a.slides.length;if(e<=0)a.prependSlide(t);else if(e>=r)a.appendSlide(t);else{for(var o=n>e?n+1:n,l=[],d=r-1;d>=e;d-=1){var c=a.slides.eq(d);c.remove(),l.unshift(c)}if("object"==typeof t&&"length"in t){for(var p=0;p<t.length;p+=1)t[p]&&i.append(t[p]);o=n>e?n+t.length:n}else i.append(t);for(var u=0;u<l.length;u+=1)i.append(l[u]);s.loop&&a.loopCreate(),s.observer&&I.observer||a.update(),s.loop?a.slideTo(o+a.loopedSlides,0,!1):a.slideTo(o,0,!1)}},removeSlide:function(e){var t=this,a=t.params,i=t.$wrapperEl,s=t.activeIndex;a.loop&&(s-=t.loopedSlides,t.loopDestroy(),t.slides=i.children(".".concat(a.slideClass)));var n,r=s;if("object"==typeof e&&"length"in e){for(var o=0;o<e.length;o+=1)n=e[o],t.slides[n]&&t.slides.eq(n).remove(),n<r&&(r-=1);r=Math.max(r,0)}else n=e,t.slides[n]&&t.slides.eq(n).remove(),n<r&&(r-=1),r=Math.max(r,0);a.loop&&t.loopCreate(),a.observer&&I.observer||t.update(),a.loop?t.slideTo(r+t.loopedSlides,0,!1):t.slideTo(r,0,!1)},removeAllSlides:function(){for(var e=[],t=0;t<this.slides.length;t+=1)e.push(t);this.removeSlide(e)}},V=function(){var e=x.navigator.userAgent,t={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:x.cordova||x.phonegap,phonegap:x.cordova||x.phonegap},a=e.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),i=e.match(/(Android);?[\s\/]+([\d.]+)?/),s=e.match(/(iPad).*OS\s([\d_]+)/),n=e.match(/(iPod)(.*OS\s([\d_]+))?/),r=!s&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(a&&(t.os="windows",t.osVersion=a[2],t.windows=!0),i&&!a&&(t.os="android",t.osVersion=i[2],t.android=!0,t.androidChrome=e.toLowerCase().indexOf("chrome")>=0),(s||r||n)&&(t.os="ios",t.ios=!0),r&&!n&&(t.osVersion=r[2].replace(/_/g,"."),t.iphone=!0),s&&(t.osVersion=s[2].replace(/_/g,"."),t.ipad=!0),n&&(t.osVersion=n[3]?n[3].replace(/_/g,"."):null,t.iphone=!0),t.ios&&t.osVersion&&e.indexOf("Version/")>=0&&"10"===t.osVersion.split(".")[0]&&(t.osVersion=e.toLowerCase().split("version/")[1].split(" ")[0]),t.desktop=!(t.os||t.android||t.webView),t.webView=(r||s||n)&&e.match(/.*AppleWebKit(?!.*Safari)/i),t.os&&"ios"===t.os){var o=t.osVersion.split("."),l=y.querySelector('meta[name="viewport"]');t.minimalUi=!t.webView&&(n||r)&&(1*o[0]==7?1*o[1]>=1:1*o[0]>7)&&l&&l.getAttribute("content").indexOf("minimal-ui")>=0}return t.pixelRatio=x.devicePixelRatio||1,t}();function Y(e){var t=this,a=t.touchEventsData,i=t.params,s=t.touches;if(!t.animating||!i.preventInteractionOnTransition){var n=e;if(n.originalEvent&&(n=n.originalEvent),a.isTouchEvent="touchstart"===n.type,(a.isTouchEvent||!("which"in n)||3!==n.which)&&!(!a.isTouchEvent&&"button"in n&&n.button>0||a.isTouched&&a.isMoved))if(i.noSwiping&&E(n.target).closest(i.noSwipingSelector?i.noSwipingSelector:".".concat(i.noSwipingClass))[0])t.allowClick=!0;else if(!i.swipeHandler||E(n).closest(i.swipeHandler)[0]){s.currentX="touchstart"===n.type?n.targetTouches[0].pageX:n.pageX,s.currentY="touchstart"===n.type?n.targetTouches[0].pageY:n.pageY;var r=s.currentX,o=s.currentY,l=i.edgeSwipeDetection||i.iOSEdgeSwipeDetection,d=i.edgeSwipeThreshold||i.iOSEdgeSwipeThreshold;if(!l||!(r<=d||r>=x.screen.width-d)){if($.extend(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=r,s.startY=o,a.touchStartTime=$.now(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,i.threshold>0&&(a.allowThresholdMove=!1),"touchstart"!==n.type){var c=!0;E(n.target).is(a.formElements)&&(c=!1),y.activeElement&&E(y.activeElement).is(a.formElements)&&y.activeElement!==n.target&&y.activeElement.blur();var p=c&&t.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||p)&&n.preventDefault()}t.emit("touchStart",n)}}}}function F(e){var t=this,a=t.touchEventsData,i=t.params,s=t.touches,n=t.rtlTranslate,r=e;if(r.originalEvent&&(r=r.originalEvent),a.isTouched){if(!a.isTouchEvent||"mousemove"!==r.type){var o="touchmove"===r.type?r.targetTouches[0].pageX:r.pageX,l="touchmove"===r.type?r.targetTouches[0].pageY:r.pageY;if(r.preventedByNestedSwiper)return s.startX=o,void(s.startY=l);if(!t.allowTouchMove)return t.allowClick=!1,void(a.isTouched&&($.extend(s,{startX:o,startY:l,currentX:o,currentY:l}),a.touchStartTime=$.now()));if(a.isTouchEvent&&i.touchReleaseOnEdges&&!i.loop)if(t.isVertical()){if(l<s.startY&&t.translate<=t.maxTranslate()||l>s.startY&&t.translate>=t.minTranslate())return a.isTouched=!1,void(a.isMoved=!1)}else if(o<s.startX&&t.translate<=t.maxTranslate()||o>s.startX&&t.translate>=t.minTranslate())return;if(a.isTouchEvent&&y.activeElement&&r.target===y.activeElement&&E(r.target).is(a.formElements))return a.isMoved=!0,void(t.allowClick=!1);if(a.allowTouchCallbacks&&t.emit("touchMove",r),!(r.targetTouches&&r.targetTouches.length>1)){s.currentX=o,s.currentY=l;var d=s.currentX-s.startX,c=s.currentY-s.startY;if(!(t.params.threshold&&Math.sqrt(Math.pow(d,2)+Math.pow(c,2))<t.params.threshold)){var p;if(void 0===a.isScrolling)t.isHorizontal()&&s.currentY===s.startY||t.isVertical()&&s.currentX===s.startX?a.isScrolling=!1:d*d+c*c>=25&&(p=180*Math.atan2(Math.abs(c),Math.abs(d))/Math.PI,a.isScrolling=t.isHorizontal()?p>i.touchAngle:90-p>i.touchAngle);if(a.isScrolling&&t.emit("touchMoveOpposite",r),void 0===a.startMoving&&(s.currentX===s.startX&&s.currentY===s.startY||(a.startMoving=!0)),a.isScrolling)a.isTouched=!1;else if(a.startMoving){t.allowClick=!1,r.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&r.stopPropagation(),a.isMoved||(i.loop&&t.loopFix(),a.startTranslate=t.getTranslate(),t.setTransition(0),t.animating&&t.$wrapperEl.trigger("webkitTransitionEnd transitionend"),a.allowMomentumBounce=!1,!i.grabCursor||!0!==t.allowSlideNext&&!0!==t.allowSlidePrev||t.setGrabCursor(!0),t.emit("sliderFirstMove",r)),t.emit("sliderMove",r),a.isMoved=!0;var u=t.isHorizontal()?d:c;s.diff=u,u*=i.touchRatio,n&&(u=-u),t.swipeDirection=u>0?"prev":"next",a.currentTranslate=u+a.startTranslate;var h=!0,v=i.resistanceRatio;if(i.touchReleaseOnEdges&&(v=0),u>0&&a.currentTranslate>t.minTranslate()?(h=!1,i.resistance&&(a.currentTranslate=t.minTranslate()-1+Math.pow(-t.minTranslate()+a.startTranslate+u,v))):u<0&&a.currentTranslate<t.maxTranslate()&&(h=!1,i.resistance&&(a.currentTranslate=t.maxTranslate()+1-Math.pow(t.maxTranslate()-a.startTranslate-u,v))),h&&(r.preventedByNestedSwiper=!0),!t.allowSlideNext&&"next"===t.swipeDirection&&a.currentTranslate<a.startTranslate&&(a.currentTranslate=a.startTranslate),!t.allowSlidePrev&&"prev"===t.swipeDirection&&a.currentTranslate>a.startTranslate&&(a.currentTranslate=a.startTranslate),i.threshold>0){if(!(Math.abs(u)>i.threshold||a.allowThresholdMove))return void(a.currentTranslate=a.startTranslate);if(!a.allowThresholdMove)return a.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,a.currentTranslate=a.startTranslate,void(s.diff=t.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY)}i.followFinger&&((i.freeMode||i.watchSlidesProgress||i.watchSlidesVisibility)&&(t.updateActiveIndex(),t.updateSlidesClasses()),i.freeMode&&(0===a.velocities.length&&a.velocities.push({position:s[t.isHorizontal()?"startX":"startY"],time:a.touchStartTime}),a.velocities.push({position:s[t.isHorizontal()?"currentX":"currentY"],time:$.now()})),t.updateProgress(a.currentTranslate),t.setTranslate(a.currentTranslate))}}}}}else a.startMoving&&a.isScrolling&&t.emit("touchMoveOpposite",r)}function q(e){var t=this,a=t.touchEventsData,i=t.params,s=t.touches,n=t.rtlTranslate,r=t.$wrapperEl,o=t.slidesGrid,l=t.snapGrid,d=e;if(d.originalEvent&&(d=d.originalEvent),a.allowTouchCallbacks&&t.emit("touchEnd",d),a.allowTouchCallbacks=!1,!a.isTouched)return a.isMoved&&i.grabCursor&&t.setGrabCursor(!1),a.isMoved=!1,void(a.startMoving=!1);i.grabCursor&&a.isMoved&&a.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var c,p=$.now(),u=p-a.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(d),t.emit("tap",d),u<300&&p-a.lastClickTime>300&&(a.clickTimeout&&clearTimeout(a.clickTimeout),a.clickTimeout=$.nextTick((function(){t&&!t.destroyed&&t.emit("click",d)}),300)),u<300&&p-a.lastClickTime<300&&(a.clickTimeout&&clearTimeout(a.clickTimeout),t.emit("doubleTap",d))),a.lastClickTime=$.now(),$.nextTick((function(){t.destroyed||(t.allowClick=!0)})),!a.isTouched||!a.isMoved||!t.swipeDirection||0===s.diff||a.currentTranslate===a.startTranslate)return a.isTouched=!1,a.isMoved=!1,void(a.startMoving=!1);if(a.isTouched=!1,a.isMoved=!1,a.startMoving=!1,c=i.followFinger?n?t.translate:-t.translate:-a.currentTranslate,i.freeMode){if(c<-t.minTranslate())return void t.slideTo(t.activeIndex);if(c>-t.maxTranslate())return void(t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1));if(i.freeModeMomentum){if(a.velocities.length>1){var h=a.velocities.pop(),v=a.velocities.pop(),f=h.position-v.position,m=h.time-v.time;t.velocity=f/m,t.velocity/=2,Math.abs(t.velocity)<i.freeModeMinimumVelocity&&(t.velocity=0),(m>150||$.now()-h.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=i.freeModeMomentumVelocityRatio,a.velocities.length=0;var g=1e3*i.freeModeMomentumRatio,b=t.velocity*g,w=t.translate+b;n&&(w=-w);var y,x,T=!1,E=20*Math.abs(t.velocity)*i.freeModeMomentumBounceRatio;if(w<t.maxTranslate())i.freeModeMomentumBounce?(w+t.maxTranslate()<-E&&(w=t.maxTranslate()-E),y=t.maxTranslate(),T=!0,a.allowMomentumBounce=!0):w=t.maxTranslate(),i.loop&&i.centeredSlides&&(x=!0);else if(w>t.minTranslate())i.freeModeMomentumBounce?(w-t.minTranslate()>E&&(w=t.minTranslate()+E),y=t.minTranslate(),T=!0,a.allowMomentumBounce=!0):w=t.minTranslate(),i.loop&&i.centeredSlides&&(x=!0);else if(i.freeModeSticky){for(var S,C=0;C<l.length;C+=1)if(l[C]>-w){S=C;break}w=-(w=Math.abs(l[S]-w)<Math.abs(l[S-1]-w)||"next"===t.swipeDirection?l[S]:l[S-1])}if(x&&t.once("transitionEnd",(function(){t.loopFix()})),0!==t.velocity)g=n?Math.abs((-w-t.translate)/t.velocity):Math.abs((w-t.translate)/t.velocity);else if(i.freeModeSticky)return void t.slideToClosest();i.freeModeMomentumBounce&&T?(t.updateProgress(y),t.setTransition(g),t.setTranslate(w),t.transitionStart(!0,t.swipeDirection),t.animating=!0,r.transitionEnd((function(){t&&!t.destroyed&&a.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(i.speed),t.setTranslate(y),r.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))}))):t.velocity?(t.updateProgress(w),t.setTransition(g),t.setTranslate(w),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,r.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(w),t.updateActiveIndex(),t.updateSlidesClasses()}else if(i.freeModeSticky)return void t.slideToClosest();(!i.freeModeMomentum||u>=i.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var M=0,k=t.slidesSizesGrid[0],P=0;P<o.length;P+=i.slidesPerGroup)void 0!==o[P+i.slidesPerGroup]?c>=o[P]&&c<o[P+i.slidesPerGroup]&&(M=P,k=o[P+i.slidesPerGroup]-o[P]):c>=o[P]&&(M=P,k=o[o.length-1]-o[o.length-2]);var z=(c-o[M])/k;if(u>i.longSwipesMs){if(!i.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(z>=i.longSwipesRatio?t.slideTo(M+i.slidesPerGroup):t.slideTo(M)),"prev"===t.swipeDirection&&(z>1-i.longSwipesRatio?t.slideTo(M+i.slidesPerGroup):t.slideTo(M))}else{if(!i.shortSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&t.slideTo(M+i.slidesPerGroup),"prev"===t.swipeDirection&&t.slideTo(M)}}}function R(){var e=this,t=e.params,a=e.el;if(!a||0!==a.offsetWidth){t.breakpoints&&e.setBreakpoint();var i=e.allowSlideNext,s=e.allowSlidePrev,n=e.snapGrid;if(e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),t.freeMode){var r=Math.min(Math.max(e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(r),e.updateActiveIndex(),e.updateSlidesClasses(),t.autoHeight&&e.updateAutoHeight()}else e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=s,e.allowSlideNext=i,e.params.watchOverflow&&n!==e.snapGrid&&e.checkOverflow()}}function W(e){var t=this;t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}var j={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},_={update:O,translate:A,transition:H,slide:G,loop:N,grabCursor:B,manipulation:X,events:{attachEvents:function(){var e=this,t=e.params,a=e.touchEvents,i=e.el,s=e.wrapperEl;e.onTouchStart=Y.bind(e),e.onTouchMove=F.bind(e),e.onTouchEnd=q.bind(e),e.onClick=W.bind(e);var n="container"===t.touchEventsTarget?i:s,r=!!t.nested;if(I.touch||!I.pointerEvents&&!I.prefixedPointerEvents){if(I.touch){var o=!("touchstart"!==a.start||!I.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};n.addEventListener(a.start,e.onTouchStart,o),n.addEventListener(a.move,e.onTouchMove,I.passiveListener?{passive:!1,capture:r}:r),n.addEventListener(a.end,e.onTouchEnd,o)}(t.simulateTouch&&!V.ios&&!V.android||t.simulateTouch&&!I.touch&&V.ios)&&(n.addEventListener("mousedown",e.onTouchStart,!1),y.addEventListener("mousemove",e.onTouchMove,r),y.addEventListener("mouseup",e.onTouchEnd,!1))}else n.addEventListener(a.start,e.onTouchStart,!1),y.addEventListener(a.move,e.onTouchMove,r),y.addEventListener(a.end,e.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&n.addEventListener("click",e.onClick,!0),e.on(V.ios||V.android?"resize orientationchange observerUpdate":"resize observerUpdate",R,!0)},detachEvents:function(){var e=this,t=e.params,a=e.touchEvents,i=e.el,s=e.wrapperEl,n="container"===t.touchEventsTarget?i:s,r=!!t.nested;if(I.touch||!I.pointerEvents&&!I.prefixedPointerEvents){if(I.touch){var o=!("onTouchStart"!==a.start||!I.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};n.removeEventListener(a.start,e.onTouchStart,o),n.removeEventListener(a.move,e.onTouchMove,r),n.removeEventListener(a.end,e.onTouchEnd,o)}(t.simulateTouch&&!V.ios&&!V.android||t.simulateTouch&&!I.touch&&V.ios)&&(n.removeEventListener("mousedown",e.onTouchStart,!1),y.removeEventListener("mousemove",e.onTouchMove,r),y.removeEventListener("mouseup",e.onTouchEnd,!1))}else n.removeEventListener(a.start,e.onTouchStart,!1),y.removeEventListener(a.move,e.onTouchMove,r),y.removeEventListener(a.end,e.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&n.removeEventListener("click",e.onClick,!0),e.off(V.ios||V.android?"resize orientationchange observerUpdate":"resize observerUpdate",R)}},breakpoints:{setBreakpoint:function(){var e=this,t=e.activeIndex,a=e.initialized,i=e.loopedSlides,s=void 0===i?0:i,n=e.params,r=n.breakpoints;if(r&&(!r||0!==Object.keys(r).length)){var o=e.getBreakpoint(r);if(o&&e.currentBreakpoint!==o){var l=o in r?r[o]:void 0;l&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach((function(e){var t=l[e];void 0!==t&&(l[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")}));var d=l||e.originalParams,c=d.direction&&d.direction!==n.direction,p=n.loop&&(d.slidesPerView!==n.slidesPerView||c);c&&a&&e.changeDirection(),$.extend(e.params,d),$.extend(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),e.currentBreakpoint=o,p&&a&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-s+e.loopedSlides,0,!1)),e.emit("breakpoint",d)}}},getBreakpoint:function(e){if(e){var t=!1,a=[];Object.keys(e).forEach((function(e){a.push(e)})),a.sort((function(e,t){return parseInt(e,10)-parseInt(t,10)}));for(var i=0;i<a.length;i+=1){var s=a[i];this.params.breakpointsInverse?s<=x.innerWidth&&(t=s):s>=x.innerWidth&&!t&&(t=s)}return t||"max"}}},checkOverflow:{checkOverflow:function(){var e=this,t=e.isLocked;e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),t&&t!==e.isLocked&&(e.isEnd=!1,e.navigation.update())}},classes:{addClasses:function(){var e=this,t=e.classNames,a=e.params,i=e.rtl,s=e.$el,n=[];n.push("initialized"),n.push(a.direction),a.freeMode&&n.push("free-mode"),I.flexbox||n.push("no-flexbox"),a.autoHeight&&n.push("autoheight"),i&&n.push("rtl"),a.slidesPerColumn>1&&n.push("multirow"),V.android&&n.push("android"),V.ios&&n.push("ios"),(L.isIE||L.isEdge)&&(I.pointerEvents||I.prefixedPointerEvents)&&n.push("wp8-".concat(a.direction)),n.forEach((function(e){t.push(a.containerModifierClass+e)})),s.addClass(t.join(" "))},removeClasses:function(){var e=this.$el,t=this.classNames;e.removeClass(t.join(" "))}},images:{loadImage:function(e,t,a,i,s,n){var r;function o(){n&&n()}e.complete&&s?o():t?((r=new x.Image).onload=o,r.onerror=o,i&&(r.sizes=i),a&&(r.srcset=a),t&&(r.src=t)):o()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var a=0;a<e.imagesToLoad.length;a+=1){var i=e.imagesToLoad[a];e.loadImage(i,i.currentSrc||i.getAttribute("src"),i.srcset||i.getAttribute("srcset"),i.sizes||i.getAttribute("sizes"),!0,t)}}}},U={},K=function(e){p()(a,e);var t=C(a);function a(){var e,i,s;g()(this,a);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];1===r.length&&r[0].constructor&&r[0].constructor===Object?s=r[0]:(i=r[0],s=r[1]),s||(s={}),s=$.extend({},s),i&&!s.el&&(s.el=i),e=t.call(this,s),Object.keys(_).forEach((function(e){Object.keys(_[e]).forEach((function(t){a.prototype[t]||(a.prototype[t]=_[e][t])}))}));var l=d()(e);void 0===l.modules&&(l.modules={}),Object.keys(l.modules).forEach((function(e){var t=l.modules[e];if(t.params){var a=Object.keys(t.params)[0],i=t.params[a];if("object"!=typeof i||null===i)return;if(!(a in s)||!("enabled"in i))return;!0===s[a]&&(s[a]={enabled:!0}),"object"!=typeof s[a]||"enabled"in s[a]||(s[a].enabled=!0),s[a]||(s[a]={enabled:!1})}}));var c=$.extend({},j);l.useModulesParams(c),l.params=$.extend({},c,U,s),l.originalParams=$.extend({},l.params),l.passedParams=$.extend({},s),l.$=E;var p=E(l.params.el);if(!(i=p[0]))return h()(e,void 0);if(p.length>1){var u=[];return p.each((function(e,t){var i=$.extend({},s,{el:t});u.push(new a(i))})),h()(e,u)}i.swiper=l,p.data("swiper",l);var v,f,m=p.children(".".concat(l.params.wrapperClass));return $.extend(l,{$el:p,el:i,$wrapperEl:m,wrapperEl:m[0],classNames:[],slides:E(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===l.params.direction},isVertical:function(){return"vertical"===l.params.direction},rtl:"rtl"===i.dir.toLowerCase()||"rtl"===p.css("direction"),rtlTranslate:"horizontal"===l.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===p.css("direction")),wrongRTL:"-webkit-box"===m.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEvents:(v=["touchstart","touchmove","touchend"],f=["mousedown","mousemove","mouseup"],I.pointerEvents?f=["pointerdown","pointermove","pointerup"]:I.prefixedPointerEvents&&(f=["MSPointerDown","MSPointerMove","MSPointerUp"]),l.touchEventsTouch={start:v[0],move:v[1],end:v[2]},l.touchEventsDesktop={start:f[0],move:f[1],end:f[2]},I.touch||!l.params.simulateTouch?l.touchEventsTouch:l.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video",lastClickTime:$.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.useModules(),l.params.init&&l.init(),h()(e,l)}return w()(a,[{key:"slidesPerViewDynamic",value:function(){var e=this,t=e.params,a=e.slides,i=e.slidesGrid,s=e.size,n=e.activeIndex,r=1;if(t.centeredSlides){for(var o,l=a[n].swiperSlideSize,d=n+1;d<a.length;d+=1)a[d]&&!o&&(r+=1,(l+=a[d].swiperSlideSize)>s&&(o=!0));for(var c=n-1;c>=0;c-=1)a[c]&&!o&&(r+=1,(l+=a[c].swiperSlideSize)>s&&(o=!0))}else for(var p=n+1;p<a.length;p+=1)i[p]-i[n]<s&&(r+=1);return r}},{key:"update",value:function(){var e=this;if(e&&!e.destroyed){var t=e.snapGrid,a=e.params;a.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(i(),e.params.autoHeight&&e.updateAutoHeight()):(("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||i(),a.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function i(){var t=e.rtlTranslate?-1*e.translate:e.translate,a=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(a),e.updateActiveIndex(),e.updateSlidesClasses()}}},{key:"changeDirection",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=this,i=a.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(a.$el.removeClass("".concat(a.params.containerModifierClass).concat(i," wp8-").concat(i)).addClass("".concat(a.params.containerModifierClass).concat(e)),(L.isIE||L.isEdge)&&(I.pointerEvents||I.prefixedPointerEvents)&&a.$el.addClass("".concat(a.params.containerModifierClass,"wp8-").concat(e)),a.params.direction=e,a.slides.each((function(t,a){"vertical"===e?a.style.width="":a.style.height=""})),a.emit("changeDirection"),t&&a.update()),a}},{key:"init",value:function(){var e=this;e.initialized||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit),e.attachEvents(),e.initialized=!0,e.emit("init"))}},{key:"destroy",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=this,i=a.params,s=a.$el,n=a.$wrapperEl,r=a.slides;return void 0===a.params||a.destroyed||(a.emit("beforeDestroy"),a.initialized=!1,a.detachEvents(),i.loop&&a.loopDestroy(),t&&(a.removeClasses(),s.removeAttr("style"),n.removeAttr("style"),r&&r.length&&r.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),a.emit("destroy"),Object.keys(a.eventsListeners).forEach((function(e){a.off(e)})),!1!==e&&(a.$el[0].swiper=null,a.$el.data("swiper",null),$.deleteProps(a)),a.destroyed=!0),null}}],[{key:"extendDefaults",value:function(e){$.extend(U,e)}},{key:"extendedDefaults",get:function(){return U}},{key:"defaults",get:function(){return j}},{key:"Class",get:function(){return D}},{key:"$",get:function(){return E}}]),a}(D),Z={name:"device",proto:{device:V},static:{device:V}},Q={name:"support",proto:{support:I},static:{support:I}},J={name:"browser",proto:{browser:L},static:{browser:L}},ee={name:"resize",create:function(){var e=this;$.extend(e,{resize:{resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(){x.addEventListener("resize",this.resize.resizeHandler),x.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy:function(){x.removeEventListener("resize",this.resize.resizeHandler),x.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}},te={func:x.MutationObserver||x.WebkitMutationObserver,attach:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=this,i=te.func,s=new i((function(e){if(1!==e.length){var t=function(){a.emit("observerUpdate",e[0])};x.requestAnimationFrame?x.requestAnimationFrame(t):x.setTimeout(t,0)}else a.emit("observerUpdate",e[0])}));s.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),a.observer.observers.push(s)},init:function(){var e=this;if(I.observer&&e.params.observer){if(e.params.observeParents)for(var t=e.$el.parents(),a=0;a<t.length;a+=1)e.observer.attach(t[a]);e.observer.attach(e.$el[0],{childList:e.params.observeSlideChildren}),e.observer.attach(e.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach((function(e){e.disconnect()})),this.observer.observers=[]}},ae={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){var e=this;$.extend(e,{observer:{init:te.init.bind(e),attach:te.attach.bind(e),destroy:te.destroy.bind(e),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},ie={update:function(e){var t=this,a=t.params,i=a.slidesPerView,s=a.slidesPerGroup,n=a.centeredSlides,r=t.params.virtual,o=r.addSlidesBefore,l=r.addSlidesAfter,d=t.virtual,c=d.from,p=d.to,u=d.slides,h=d.slidesGrid,v=d.renderSlide,f=d.offset;t.updateActiveIndex();var m,g,b,w=t.activeIndex||0;m=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",n?(g=Math.floor(i/2)+s+o,b=Math.floor(i/2)+s+l):(g=i+(s-1)+o,b=s+l);var y=Math.max((w||0)-b,0),x=Math.min((w||0)+g,u.length-1),T=(t.slidesGrid[y]||0)-(t.slidesGrid[0]||0);function E(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if($.extend(t.virtual,{from:y,to:x,offset:T,slidesGrid:t.slidesGrid}),c===y&&p===x&&!e)return t.slidesGrid!==h&&T!==f&&t.slides.css(m,"".concat(T,"px")),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:T,from:y,to:x,slides:function(){for(var e=[],t=y;t<=x;t+=1)e.push(u[t]);return e}()}),void E();var S=[],C=[];if(e)t.$wrapperEl.find(".".concat(t.params.slideClass)).remove();else for(var M=c;M<=p;M+=1)(M<y||M>x)&&t.$wrapperEl.find(".".concat(t.params.slideClass,'[data-swiper-slide-index="').concat(M,'"]')).remove();for(var k=0;k<u.length;k+=1)k>=y&&k<=x&&(void 0===p||e?C.push(k):(k>p&&C.push(k),k<c&&S.push(k)));C.forEach((function(e){t.$wrapperEl.append(v(u[e],e))})),S.sort((function(e,t){return t-e})).forEach((function(e){t.$wrapperEl.prepend(v(u[e],e))})),t.$wrapperEl.children(".swiper-slide").css(m,"".concat(T,"px")),E()},renderSlide:function(e,t){var a=this,i=a.params.virtual;if(i.cache&&a.virtual.cache[t])return a.virtual.cache[t];var s=i.renderSlide?E(i.renderSlide.call(a,e,t)):E('<div class="'.concat(a.params.slideClass,'" data-swiper-slide-index="').concat(t,'">').concat(e,"</div>"));return s.attr("data-swiper-slide-index")||s.attr("data-swiper-slide-index",t),i.cache&&(a.virtual.cache[t]=s),s},appendSlide:function(e){var t=this;if("object"==typeof e&&"length"in e)for(var a=0;a<e.length;a+=1)e[a]&&t.virtual.slides.push(e[a]);else t.virtual.slides.push(e);t.virtual.update(!0)},prependSlide:function(e){var t=this,a=t.activeIndex,i=a+1,s=1;if(Array.isArray(e)){for(var n=0;n<e.length;n+=1)e[n]&&t.virtual.slides.unshift(e[n]);i=a+e.length,s=e.length}else t.virtual.slides.unshift(e);if(t.params.virtual.cache){var r=t.virtual.cache,o={};Object.keys(r).forEach((function(e){o[parseInt(e,10)+s]=r[e]})),t.virtual.cache=o}t.virtual.update(!0),t.slideTo(i,0)},removeSlide:function(e){var t=this;if(null!=e){var a=t.activeIndex;if(Array.isArray(e))for(var i=e.length-1;i>=0;i-=1)t.virtual.slides.splice(e[i],1),t.params.virtual.cache&&delete t.virtual.cache[e[i]],e[i]<a&&(a-=1),a=Math.max(a,0);else t.virtual.slides.splice(e,1),t.params.virtual.cache&&delete t.virtual.cache[e],e<a&&(a-=1),a=Math.max(a,0);t.virtual.update(!0),t.slideTo(a,0)}},removeAllSlides:function(){var e=this;e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),e.virtual.update(!0),e.slideTo(0,0)}},se={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){var e=this;$.extend(e,{virtual:{update:ie.update.bind(e),appendSlide:ie.appendSlide.bind(e),prependSlide:ie.prependSlide.bind(e),removeSlide:ie.removeSlide.bind(e),removeAllSlides:ie.removeAllSlides.bind(e),renderSlide:ie.renderSlide.bind(e),slides:e.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){var e=this;if(e.params.virtual.enabled){e.classNames.push("".concat(e.params.containerModifierClass,"virtual"));var t={watchSlidesProgress:!0};$.extend(e.params,t),$.extend(e.originalParams,t),e.params.initialSlide||e.virtual.update()}},setTranslate:function(){this.params.virtual.enabled&&this.virtual.update()}}},ne={handle:function(e){var t=this,a=t.rtlTranslate,i=e;i.originalEvent&&(i=i.originalEvent);var s=i.keyCode||i.charCode;if(!t.allowSlideNext&&(t.isHorizontal()&&39===s||t.isVertical()&&40===s||34===s))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&37===s||t.isVertical()&&38===s||33===s))return!1;if(!(i.shiftKey||i.altKey||i.ctrlKey||i.metaKey||y.activeElement&&y.activeElement.nodeName&&("input"===y.activeElement.nodeName.toLowerCase()||"textarea"===y.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(33===s||34===s||37===s||39===s||38===s||40===s)){var n=!1;if(t.$el.parents(".".concat(t.params.slideClass)).length>0&&0===t.$el.parents(".".concat(t.params.slideActiveClass)).length)return;var r=x.innerWidth,o=x.innerHeight,l=t.$el.offset();a&&(l.left-=t.$el[0].scrollLeft);for(var d=[[l.left,l.top],[l.left+t.width,l.top],[l.left,l.top+t.height],[l.left+t.width,l.top+t.height]],c=0;c<d.length;c+=1){var p=d[c];p[0]>=0&&p[0]<=r&&p[1]>=0&&p[1]<=o&&(n=!0)}if(!n)return}t.isHorizontal()?(33!==s&&34!==s&&37!==s&&39!==s||(i.preventDefault?i.preventDefault():i.returnValue=!1),(34!==s&&39!==s||a)&&(33!==s&&37!==s||!a)||t.slideNext(),(33!==s&&37!==s||a)&&(34!==s&&39!==s||!a)||t.slidePrev()):(33!==s&&34!==s&&38!==s&&40!==s||(i.preventDefault?i.preventDefault():i.returnValue=!1),34!==s&&40!==s||t.slideNext(),33!==s&&38!==s||t.slidePrev()),t.emit("keyPress",s)}},enable:function(){var e=this;e.keyboard.enabled||(E(y).on("keydown",e.keyboard.handle),e.keyboard.enabled=!0)},disable:function(){var e=this;e.keyboard.enabled&&(E(y).off("keydown",e.keyboard.handle),e.keyboard.enabled=!1)}},re={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){var e=this;$.extend(e,{keyboard:{enabled:!1,enable:ne.enable.bind(e),disable:ne.disable.bind(e),handle:ne.handle.bind(e)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}};var oe={lastScrollTime:$.now(),event:x.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){var e="onwheel",t=e in y;if(!t){var a=y.createElement("div");a.setAttribute(e,"return;"),t="function"==typeof a.onwheel}return!t&&y.implementation&&y.implementation.hasFeature&&!0!==y.implementation.hasFeature("","")&&(t=y.implementation.hasFeature("Events.wheel","3.0")),t}()?"wheel":"mousewheel",normalize:function(e){var t=0,a=0,i=0,s=0;return"detail"in e&&(a=e.detail),"wheelDelta"in e&&(a=-e.wheelDelta/120),"wheelDeltaY"in e&&(a=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=a,a=0),i=10*t,s=10*a,"deltaY"in e&&(s=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||s)&&e.deltaMode&&(1===e.deltaMode?(i*=40,s*=40):(i*=800,s*=800)),i&&!t&&(t=i<1?-1:1),s&&!a&&(a=s<1?-1:1),{spinX:t,spinY:a,pixelX:i,pixelY:s}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(e){var t=e,a=this,i=a.params.mousewheel;if(!a.mouseEntered&&!i.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);var s=0,n=a.rtlTranslate?-1:1,r=oe.normalize(t);if(i.forceToAxis)if(a.isHorizontal()){if(!(Math.abs(r.pixelX)>Math.abs(r.pixelY)))return!0;s=r.pixelX*n}else{if(!(Math.abs(r.pixelY)>Math.abs(r.pixelX)))return!0;s=r.pixelY}else s=Math.abs(r.pixelX)>Math.abs(r.pixelY)?-r.pixelX*n:-r.pixelY;if(0===s)return!0;if(i.invert&&(s=-s),a.params.freeMode){a.params.loop&&a.loopFix();var o=a.getTranslate()+s*i.sensitivity,l=a.isBeginning,d=a.isEnd;if(o>=a.minTranslate()&&(o=a.minTranslate()),o<=a.maxTranslate()&&(o=a.maxTranslate()),a.setTransition(0),a.setTranslate(o),a.updateProgress(),a.updateActiveIndex(),a.updateSlidesClasses(),(!l&&a.isBeginning||!d&&a.isEnd)&&a.updateSlidesClasses(),a.params.freeModeSticky&&(clearTimeout(a.mousewheel.timeout),a.mousewheel.timeout=$.nextTick((function(){a.slideToClosest()}),300)),a.emit("scroll",t),a.params.autoplay&&a.params.autoplayDisableOnInteraction&&a.autoplay.stop(),o===a.minTranslate()||o===a.maxTranslate())return!0}else{if($.now()-a.mousewheel.lastScrollTime>60)if(s<0)if(a.isEnd&&!a.params.loop||a.animating){if(i.releaseOnEdges)return!0}else a.slideNext(),a.emit("scroll",t);else if(a.isBeginning&&!a.params.loop||a.animating){if(i.releaseOnEdges)return!0}else a.slidePrev(),a.emit("scroll",t);a.mousewheel.lastScrollTime=(new x.Date).getTime()}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},enable:function(){var e=this;if(!oe.event)return!1;if(e.mousewheel.enabled)return!1;var t=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(t=E(e.params.mousewheel.eventsTarged)),t.on("mouseenter",e.mousewheel.handleMouseEnter),t.on("mouseleave",e.mousewheel.handleMouseLeave),t.on(oe.event,e.mousewheel.handle),e.mousewheel.enabled=!0,!0},disable:function(){var e=this;if(!oe.event)return!1;if(!e.mousewheel.enabled)return!1;var t=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(t=E(e.params.mousewheel.eventsTarged)),t.off(oe.event,e.mousewheel.handle),e.mousewheel.enabled=!1,!0}},le={update:function(){var e=this,t=e.params.navigation;if(!e.params.loop){var a=e.navigation,i=a.$nextEl,s=a.$prevEl;s&&s.length>0&&(e.isBeginning?s.addClass(t.disabledClass):s.removeClass(t.disabledClass),s[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass)),i&&i.length>0&&(e.isEnd?i.addClass(t.disabledClass):i.removeClass(t.disabledClass),i[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(e){var t=this;e.preventDefault(),t.isBeginning&&!t.params.loop||t.slidePrev()},onNextClick:function(e){var t=this;e.preventDefault(),t.isEnd&&!t.params.loop||t.slideNext()},init:function(){var e,t,a=this,i=a.params.navigation;(i.nextEl||i.prevEl)&&(i.nextEl&&(e=E(i.nextEl),a.params.uniqueNavElements&&"string"==typeof i.nextEl&&e.length>1&&1===a.$el.find(i.nextEl).length&&(e=a.$el.find(i.nextEl))),i.prevEl&&(t=E(i.prevEl),a.params.uniqueNavElements&&"string"==typeof i.prevEl&&t.length>1&&1===a.$el.find(i.prevEl).length&&(t=a.$el.find(i.prevEl))),e&&e.length>0&&e.on("click",a.navigation.onNextClick),t&&t.length>0&&t.on("click",a.navigation.onPrevClick),$.extend(a.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}))},destroy:function(){var e=this,t=e.navigation,a=t.$nextEl,i=t.$prevEl;a&&a.length&&(a.off("click",e.navigation.onNextClick),a.removeClass(e.params.navigation.disabledClass)),i&&i.length&&(i.off("click",e.navigation.onPrevClick),i.removeClass(e.params.navigation.disabledClass))}},de={update:function(){var e=this,t=e.rtl,a=e.params.pagination;if(a.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var i,s=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,n=e.pagination.$el,r=e.params.loop?Math.ceil((s-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?((i=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup))>s-1-2*e.loopedSlides&&(i-=s-2*e.loopedSlides),i>r-1&&(i-=r),i<0&&"bullets"!==e.params.paginationType&&(i=r+i)):i=void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===a.type&&e.pagination.bullets&&e.pagination.bullets.length>0){var o,l,d,c=e.pagination.bullets;if(a.dynamicBullets&&(e.pagination.bulletSize=c.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),n.css(e.isHorizontal()?"width":"height","".concat(e.pagination.bulletSize*(a.dynamicMainBullets+4),"px")),a.dynamicMainBullets>1&&void 0!==e.previousIndex&&(e.pagination.dynamicBulletIndex+=i-e.previousIndex,e.pagination.dynamicBulletIndex>a.dynamicMainBullets-1?e.pagination.dynamicBulletIndex=a.dynamicMainBullets-1:e.pagination.dynamicBulletIndex<0&&(e.pagination.dynamicBulletIndex=0)),o=i-e.pagination.dynamicBulletIndex,d=((l=o+(Math.min(c.length,a.dynamicMainBullets)-1))+o)/2),c.removeClass("".concat(a.bulletActiveClass," ").concat(a.bulletActiveClass,"-next ").concat(a.bulletActiveClass,"-next-next ").concat(a.bulletActiveClass,"-prev ").concat(a.bulletActiveClass,"-prev-prev ").concat(a.bulletActiveClass,"-main")),n.length>1)c.each((function(e,t){var s=E(t),n=s.index();n===i&&s.addClass(a.bulletActiveClass),a.dynamicBullets&&(n>=o&&n<=l&&s.addClass("".concat(a.bulletActiveClass,"-main")),n===o&&s.prev().addClass("".concat(a.bulletActiveClass,"-prev")).prev().addClass("".concat(a.bulletActiveClass,"-prev-prev")),n===l&&s.next().addClass("".concat(a.bulletActiveClass,"-next")).next().addClass("".concat(a.bulletActiveClass,"-next-next")))}));else if(c.eq(i).addClass(a.bulletActiveClass),a.dynamicBullets){for(var p=c.eq(o),u=c.eq(l),h=o;h<=l;h+=1)c.eq(h).addClass("".concat(a.bulletActiveClass,"-main"));p.prev().addClass("".concat(a.bulletActiveClass,"-prev")).prev().addClass("".concat(a.bulletActiveClass,"-prev-prev")),u.next().addClass("".concat(a.bulletActiveClass,"-next")).next().addClass("".concat(a.bulletActiveClass,"-next-next"))}if(a.dynamicBullets){var v=Math.min(c.length,a.dynamicMainBullets+4),f=(e.pagination.bulletSize*v-e.pagination.bulletSize)/2-d*e.pagination.bulletSize,m=t?"right":"left";c.css(e.isHorizontal()?m:"top","".concat(f,"px"))}}if("fraction"===a.type&&(n.find(".".concat(a.currentClass)).text(a.formatFractionCurrent(i+1)),n.find(".".concat(a.totalClass)).text(a.formatFractionTotal(r))),"progressbar"===a.type){var g;g=a.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";var b=(i+1)/r,w=1,y=1;"horizontal"===g?w=b:y=b,n.find(".".concat(a.progressbarFillClass)).transform("translate3d(0,0,0) scaleX(".concat(w,") scaleY(").concat(y,")")).transition(e.params.speed)}"custom"===a.type&&a.renderCustom?(n.html(a.renderCustom(e,i+1,r)),e.emit("paginationRender",e,n[0])):e.emit("paginationUpdate",e,n[0]),n[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](a.lockClass)}},render:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var a=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,i=e.pagination.$el,s="";if("bullets"===t.type){for(var n=e.params.loop?Math.ceil((a-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length,r=0;r<n;r+=1)t.renderBullet?s+=t.renderBullet.call(e,r,t.bulletClass):s+="<".concat(t.bulletElement,' class="').concat(t.bulletClass,'"></').concat(t.bulletElement,">");i.html(s),e.pagination.bullets=i.find(".".concat(t.bulletClass))}"fraction"===t.type&&(s=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):'<span class="'.concat(t.currentClass,'"></span>')+" / "+'<span class="'.concat(t.totalClass,'"></span>'),i.html(s)),"progressbar"===t.type&&(s=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):'<span class="'.concat(t.progressbarFillClass,'"></span>'),i.html(s)),"custom"!==t.type&&e.emit("paginationRender",e.pagination.$el[0])}},init:function(){var e=this,t=e.params.pagination;if(t.el){var a=E(t.el);0!==a.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&a.length>1&&1===e.$el.find(t.el).length&&(a=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&a.addClass(t.clickableClass),a.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(a.addClass("".concat(t.modifierClass).concat(t.type,"-dynamic")),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&a.addClass(t.progressbarOppositeClass),t.clickable&&a.on("click",".".concat(t.bulletClass),(function(t){t.preventDefault();var a=E(this).index()*e.params.slidesPerGroup;e.params.loop&&(a+=e.loopedSlides),e.slideTo(a)})),$.extend(e.pagination,{$el:a,el:a[0]}))}},destroy:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var a=e.pagination.$el;a.removeClass(t.hiddenClass),a.removeClass(t.modifierClass+t.type),e.pagination.bullets&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&a.off("click",".".concat(t.bulletClass))}}},ce={setTranslate:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,a=e.rtlTranslate,i=e.progress,s=t.dragSize,n=t.trackSize,r=t.$dragEl,o=t.$el,l=e.params.scrollbar,d=s,c=(n-s)*i;a?(c=-c)>0?(d=s-c,c=0):-c+s>n&&(d=n+c):c<0?(d=s+c,c=0):c+s>n&&(d=n-c),e.isHorizontal()?(I.transforms3d?r.transform("translate3d(".concat(c,"px, 0, 0)")):r.transform("translateX(".concat(c,"px)")),r[0].style.width="".concat(d,"px")):(I.transforms3d?r.transform("translate3d(0px, ".concat(c,"px, 0)")):r.transform("translateY(".concat(c,"px)")),r[0].style.height="".concat(d,"px")),l.hide&&(clearTimeout(e.scrollbar.timeout),o[0].style.opacity=1,e.scrollbar.timeout=setTimeout((function(){o[0].style.opacity=0,o.transition(400)}),1e3))}},setTransition:function(e){var t=this;t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragEl.transition(e)},updateSize:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,a=t.$dragEl,i=t.$el;a[0].style.width="",a[0].style.height="";var s,n=e.isHorizontal()?i[0].offsetWidth:i[0].offsetHeight,r=e.size/e.virtualSize,o=r*(n/e.size);s="auto"===e.params.scrollbar.dragSize?n*r:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?a[0].style.width="".concat(s,"px"):a[0].style.height="".concat(s,"px"),i[0].style.display=r>=1?"none":"",e.params.scrollbar.hide&&(i[0].style.opacity=0),$.extend(t,{trackSize:n,divider:r,moveDivider:o,dragSize:s}),t.$el[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](e.params.scrollbar.lockClass)}},getPointerPosition:function(e){return this.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY},setDragPosition:function(e){var t,a=this,i=a.scrollbar,s=a.rtlTranslate,n=i.$el,r=i.dragSize,o=i.trackSize,l=i.dragStartPos;t=(i.getPointerPosition(e)-n.offset()[a.isHorizontal()?"left":"top"]-(null!==l?l:r/2))/(o-r),t=Math.max(Math.min(t,1),0),s&&(t=1-t);var d=a.minTranslate()+(a.maxTranslate()-a.minTranslate())*t;a.updateProgress(d),a.setTranslate(d),a.updateActiveIndex(),a.updateSlidesClasses()},onDragStart:function(e){var t=this,a=t.params.scrollbar,i=t.scrollbar,s=t.$wrapperEl,n=i.$el,r=i.$dragEl;t.scrollbar.isTouched=!0,t.scrollbar.dragStartPos=e.target===r[0]||e.target===r?i.getPointerPosition(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),s.transition(100),r.transition(100),i.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),n.transition(0),a.hide&&n.css("opacity",1),t.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this,a=t.scrollbar,i=t.$wrapperEl,s=a.$el,n=a.$dragEl;t.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,a.setDragPosition(e),i.transition(0),s.transition(0),n.transition(0),t.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this,a=t.params.scrollbar,i=t.scrollbar.$el;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,a.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=$.nextTick((function(){i.css("opacity",0),i.transition(400)}),1e3)),t.emit("scrollbarDragEnd",e),a.snapOnRelease&&t.slideToClosest())},enableDraggable:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,a=e.touchEventsTouch,i=e.touchEventsDesktop,s=e.params,n=t.$el[0],r=!(!I.passiveListener||!s.passiveListeners)&&{passive:!1,capture:!1},o=!(!I.passiveListener||!s.passiveListeners)&&{passive:!0,capture:!1};I.touch?(n.addEventListener(a.start,e.scrollbar.onDragStart,r),n.addEventListener(a.move,e.scrollbar.onDragMove,r),n.addEventListener(a.end,e.scrollbar.onDragEnd,o)):(n.addEventListener(i.start,e.scrollbar.onDragStart,r),y.addEventListener(i.move,e.scrollbar.onDragMove,r),y.addEventListener(i.end,e.scrollbar.onDragEnd,o))}},disableDraggable:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,a=e.touchEventsTouch,i=e.touchEventsDesktop,s=e.params,n=t.$el[0],r=!(!I.passiveListener||!s.passiveListeners)&&{passive:!1,capture:!1},o=!(!I.passiveListener||!s.passiveListeners)&&{passive:!0,capture:!1};I.touch?(n.removeEventListener(a.start,e.scrollbar.onDragStart,r),n.removeEventListener(a.move,e.scrollbar.onDragMove,r),n.removeEventListener(a.end,e.scrollbar.onDragEnd,o)):(n.removeEventListener(i.start,e.scrollbar.onDragStart,r),y.removeEventListener(i.move,e.scrollbar.onDragMove,r),y.removeEventListener(i.end,e.scrollbar.onDragEnd,o))}},init:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,a=e.$el,i=e.params.scrollbar,s=E(i.el);e.params.uniqueNavElements&&"string"==typeof i.el&&s.length>1&&1===a.find(i.el).length&&(s=a.find(i.el));var n=s.find(".".concat(e.params.scrollbar.dragClass));0===n.length&&(n=E('<div class="'.concat(e.params.scrollbar.dragClass,'"></div>')),s.append(n)),$.extend(t,{$el:s,el:s[0],$dragEl:n,dragEl:n[0]}),i.draggable&&t.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},pe={setTransform:function(e,t){var a=this.rtl,i=E(e),s=a?-1:1,n=i.attr("data-swiper-parallax")||"0",r=i.attr("data-swiper-parallax-x"),o=i.attr("data-swiper-parallax-y"),l=i.attr("data-swiper-parallax-scale"),d=i.attr("data-swiper-parallax-opacity");if(r||o?(r=r||"0",o=o||"0"):this.isHorizontal()?(r=n,o="0"):(o=n,r="0"),r=r.indexOf("%")>=0?"".concat(parseInt(r,10)*t*s,"%"):"".concat(r*t*s,"px"),o=o.indexOf("%")>=0?"".concat(parseInt(o,10)*t,"%"):"".concat(o*t,"px"),null!=d){var c=d-(d-1)*(1-Math.abs(t));i[0].style.opacity=c}if(null==l)i.transform("translate3d(".concat(r,", ").concat(o,", 0px)"));else{var p=l-(l-1)*(1-Math.abs(t));i.transform("translate3d(".concat(r,", ").concat(o,", 0px) scale(").concat(p,")"))}},setTranslate:function(){var e=this,t=e.$el,a=e.slides,i=e.progress,s=e.snapGrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,a){e.parallax.setTransform(a,i)})),a.each((function(t,a){var n=a.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(n+=Math.ceil(t/2)-i*(s.length-1)),n=Math.min(Math.max(n,-1),1),E(a).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,a){e.parallax.setTransform(a,n)}))}))},setTransition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=this,a=t.$el;a.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,a){var i=E(a),s=parseInt(i.attr("data-swiper-parallax-duration"),10)||e;0===e&&(s=0),i.transition(s)}))}},ue={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,a=e.targetTouches[0].pageY,i=e.targetTouches[1].pageX,s=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(i-t,2)+Math.pow(s-a,2))},onGestureStart:function(e){var t=this,a=t.params.zoom,i=t.zoom,s=i.gesture;if(i.fakeGestureTouched=!1,i.fakeGestureMoved=!1,!I.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;i.fakeGestureTouched=!0,s.scaleStart=ue.getDistanceBetweenTouches(e)}s.$slideEl&&s.$slideEl.length||(s.$slideEl=E(e.target).closest(".swiper-slide"),0===s.$slideEl.length&&(s.$slideEl=t.slides.eq(t.activeIndex)),s.$imageEl=s.$slideEl.find("img, svg, canvas"),s.$imageWrapEl=s.$imageEl.parent(".".concat(a.containerClass)),s.maxRatio=s.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,0!==s.$imageWrapEl.length)?(s.$imageEl.transition(0),t.zoom.isScaling=!0):s.$imageEl=void 0},onGestureChange:function(e){var t=this.params.zoom,a=this.zoom,i=a.gesture;if(!I.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;a.fakeGestureMoved=!0,i.scaleMove=ue.getDistanceBetweenTouches(e)}i.$imageEl&&0!==i.$imageEl.length&&(a.scale=I.gestures?e.scale*a.currentScale:i.scaleMove/i.scaleStart*a.currentScale,a.scale>i.maxRatio&&(a.scale=i.maxRatio-1+Math.pow(a.scale-i.maxRatio+1,.5)),a.scale<t.minRatio&&(a.scale=t.minRatio+1-Math.pow(t.minRatio-a.scale+1,.5)),i.$imageEl.transform("translate3d(0,0,0) scale(".concat(a.scale,")")))},onGestureEnd:function(e){var t=this,a=t.params.zoom,i=t.zoom,s=i.gesture;if(!I.gestures){if(!i.fakeGestureTouched||!i.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!V.android)return;i.fakeGestureTouched=!1,i.fakeGestureMoved=!1}s.$imageEl&&0!==s.$imageEl.length&&(i.scale=Math.max(Math.min(i.scale,s.maxRatio),a.minRatio),s.$imageEl.transition(t.params.speed).transform("translate3d(0,0,0) scale(".concat(i.scale,")")),i.currentScale=i.scale,i.isScaling=!1,1===i.scale&&(s.$slideEl=void 0))},onTouchStart:function(e){var t=this.zoom,a=t.gesture,i=t.image;a.$imageEl&&0!==a.$imageEl.length&&(i.isTouched||(V.android&&e.preventDefault(),i.isTouched=!0,i.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,i.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove:function(e){var t=this,a=t.zoom,i=a.gesture,s=a.image,n=a.velocity;if(i.$imageEl&&0!==i.$imageEl.length&&(t.allowClick=!1,s.isTouched&&i.$slideEl)){s.isMoved||(s.width=i.$imageEl[0].offsetWidth,s.height=i.$imageEl[0].offsetHeight,s.startX=$.getTranslate(i.$imageWrapEl[0],"x")||0,s.startY=$.getTranslate(i.$imageWrapEl[0],"y")||0,i.slideWidth=i.$slideEl[0].offsetWidth,i.slideHeight=i.$slideEl[0].offsetHeight,i.$imageWrapEl.transition(0),t.rtl&&(s.startX=-s.startX,s.startY=-s.startY));var r=s.width*a.scale,o=s.height*a.scale;if(!(r<i.slideWidth&&o<i.slideHeight)){if(s.minX=Math.min(i.slideWidth/2-r/2,0),s.maxX=-s.minX,s.minY=Math.min(i.slideHeight/2-o/2,0),s.maxY=-s.minY,s.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,s.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!s.isMoved&&!a.isScaling){if(t.isHorizontal()&&(Math.floor(s.minX)===Math.floor(s.startX)&&s.touchesCurrent.x<s.touchesStart.x||Math.floor(s.maxX)===Math.floor(s.startX)&&s.touchesCurrent.x>s.touchesStart.x))return void(s.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(s.minY)===Math.floor(s.startY)&&s.touchesCurrent.y<s.touchesStart.y||Math.floor(s.maxY)===Math.floor(s.startY)&&s.touchesCurrent.y>s.touchesStart.y))return void(s.isTouched=!1)}e.preventDefault(),e.stopPropagation(),s.isMoved=!0,s.currentX=s.touchesCurrent.x-s.touchesStart.x+s.startX,s.currentY=s.touchesCurrent.y-s.touchesStart.y+s.startY,s.currentX<s.minX&&(s.currentX=s.minX+1-Math.pow(s.minX-s.currentX+1,.8)),s.currentX>s.maxX&&(s.currentX=s.maxX-1+Math.pow(s.currentX-s.maxX+1,.8)),s.currentY<s.minY&&(s.currentY=s.minY+1-Math.pow(s.minY-s.currentY+1,.8)),s.currentY>s.maxY&&(s.currentY=s.maxY-1+Math.pow(s.currentY-s.maxY+1,.8)),n.prevPositionX||(n.prevPositionX=s.touchesCurrent.x),n.prevPositionY||(n.prevPositionY=s.touchesCurrent.y),n.prevTime||(n.prevTime=Date.now()),n.x=(s.touchesCurrent.x-n.prevPositionX)/(Date.now()-n.prevTime)/2,n.y=(s.touchesCurrent.y-n.prevPositionY)/(Date.now()-n.prevTime)/2,Math.abs(s.touchesCurrent.x-n.prevPositionX)<2&&(n.x=0),Math.abs(s.touchesCurrent.y-n.prevPositionY)<2&&(n.y=0),n.prevPositionX=s.touchesCurrent.x,n.prevPositionY=s.touchesCurrent.y,n.prevTime=Date.now(),i.$imageWrapEl.transform("translate3d(".concat(s.currentX,"px, ").concat(s.currentY,"px,0)"))}}},onTouchEnd:function(){var e=this.zoom,t=e.gesture,a=e.image,i=e.velocity;if(t.$imageEl&&0!==t.$imageEl.length){if(!a.isTouched||!a.isMoved)return a.isTouched=!1,void(a.isMoved=!1);a.isTouched=!1,a.isMoved=!1;var s=300,n=300,r=i.x*s,o=a.currentX+r,l=i.y*n,d=a.currentY+l;0!==i.x&&(s=Math.abs((o-a.currentX)/i.x)),0!==i.y&&(n=Math.abs((d-a.currentY)/i.y));var c=Math.max(s,n);a.currentX=o,a.currentY=d;var p=a.width*e.scale,u=a.height*e.scale;a.minX=Math.min(t.slideWidth/2-p/2,0),a.maxX=-a.minX,a.minY=Math.min(t.slideHeight/2-u/2,0),a.maxY=-a.minY,a.currentX=Math.max(Math.min(a.currentX,a.maxX),a.minX),a.currentY=Math.max(Math.min(a.currentY,a.maxY),a.minY),t.$imageWrapEl.transition(c).transform("translate3d(".concat(a.currentX,"px, ").concat(a.currentY,"px,0)"))}},onTransitionEnd:function(){var e=this,t=e.zoom,a=t.gesture;a.$slideEl&&e.previousIndex!==e.activeIndex&&(a.$imageEl.transform("translate3d(0,0,0) scale(1)"),a.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,a.$slideEl=void 0,a.$imageEl=void 0,a.$imageWrapEl=void 0)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,a,i,s,n,r,o,l,d,c,p,u,h,v,f,m,g=this,b=g.zoom,w=g.params.zoom,y=b.gesture,x=b.image;(y.$slideEl||(y.$slideEl=g.clickedSlide?E(g.clickedSlide):g.slides.eq(g.activeIndex),y.$imageEl=y.$slideEl.find("img, svg, canvas"),y.$imageWrapEl=y.$imageEl.parent(".".concat(w.containerClass))),y.$imageEl&&0!==y.$imageEl.length)&&(y.$slideEl.addClass("".concat(w.zoomedSlideClass)),void 0===x.touchesStart.x&&e?(t="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,a="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(t=x.touchesStart.x,a=x.touchesStart.y),b.scale=y.$imageWrapEl.attr("data-swiper-zoom")||w.maxRatio,b.currentScale=y.$imageWrapEl.attr("data-swiper-zoom")||w.maxRatio,e?(f=y.$slideEl[0].offsetWidth,m=y.$slideEl[0].offsetHeight,i=y.$slideEl.offset().left+f/2-t,s=y.$slideEl.offset().top+m/2-a,o=y.$imageEl[0].offsetWidth,l=y.$imageEl[0].offsetHeight,d=o*b.scale,c=l*b.scale,h=-(p=Math.min(f/2-d/2,0)),v=-(u=Math.min(m/2-c/2,0)),(n=i*b.scale)<p&&(n=p),n>h&&(n=h),(r=s*b.scale)<u&&(r=u),r>v&&(r=v)):(n=0,r=0),y.$imageWrapEl.transition(300).transform("translate3d(".concat(n,"px, ").concat(r,"px,0)")),y.$imageEl.transition(300).transform("translate3d(0,0,0) scale(".concat(b.scale,")")))},out:function(){var e=this,t=e.zoom,a=e.params.zoom,i=t.gesture;i.$slideEl||(i.$slideEl=e.clickedSlide?E(e.clickedSlide):e.slides.eq(e.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent(".".concat(a.containerClass))),i.$imageEl&&0!==i.$imageEl.length&&(t.scale=1,t.currentScale=1,i.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),i.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),i.$slideEl.removeClass("".concat(a.zoomedSlideClass)),i.$slideEl=void 0)},enable:function(){var e=this,t=e.zoom;if(!t.enabled){t.enabled=!0;var a=!("touchstart"!==e.touchEvents.start||!I.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};I.gestures?(e.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,a),e.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,a),e.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,a)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.on(e.touchEvents.start,".swiper-slide",t.onGestureStart,a),e.$wrapperEl.on(e.touchEvents.move,".swiper-slide",t.onGestureChange,a),e.$wrapperEl.on(e.touchEvents.end,".swiper-slide",t.onGestureEnd,a)),e.$wrapperEl.on(e.touchEvents.move,".".concat(e.params.zoom.containerClass),t.onTouchMove)}},disable:function(){var e=this,t=e.zoom;if(t.enabled){e.zoom.enabled=!1;var a=!("touchstart"!==e.touchEvents.start||!I.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};I.gestures?(e.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,a),e.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,a),e.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,a)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.off(e.touchEvents.start,".swiper-slide",t.onGestureStart,a),e.$wrapperEl.off(e.touchEvents.move,".swiper-slide",t.onGestureChange,a),e.$wrapperEl.off(e.touchEvents.end,".swiper-slide",t.onGestureEnd,a)),e.$wrapperEl.off(e.touchEvents.move,".".concat(e.params.zoom.containerClass),t.onTouchMove)}}},he={loadInSlide:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=this,i=a.params.lazy;if(void 0!==e&&0!==a.slides.length){var s=a.virtual&&a.params.virtual.enabled,n=s?a.$wrapperEl.children(".".concat(a.params.slideClass,'[data-swiper-slide-index="').concat(e,'"]')):a.slides.eq(e),r=n.find(".".concat(i.elementClass,":not(.").concat(i.loadedClass,"):not(.").concat(i.loadingClass,")"));!n.hasClass(i.elementClass)||n.hasClass(i.loadedClass)||n.hasClass(i.loadingClass)||(r=r.add(n[0])),0!==r.length&&r.each((function(e,s){var r=E(s);r.addClass(i.loadingClass);var o=r.attr("data-background"),l=r.attr("data-src"),d=r.attr("data-srcset"),c=r.attr("data-sizes");a.loadImage(r[0],l||o,d,c,!1,(function(){if(null!=a&&a&&(!a||a.params)&&!a.destroyed){if(o?(r.css("background-image",'url("'.concat(o,'")')),r.removeAttr("data-background")):(d&&(r.attr("srcset",d),r.removeAttr("data-srcset")),c&&(r.attr("sizes",c),r.removeAttr("data-sizes")),l&&(r.attr("src",l),r.removeAttr("data-src"))),r.addClass(i.loadedClass).removeClass(i.loadingClass),n.find(".".concat(i.preloaderClass)).remove(),a.params.loop&&t){var e=n.attr("data-swiper-slide-index");if(n.hasClass(a.params.slideDuplicateClass)){var s=a.$wrapperEl.children('[data-swiper-slide-index="'.concat(e,'"]:not(.').concat(a.params.slideDuplicateClass,")"));a.lazy.loadInSlide(s.index(),!1)}else{var p=a.$wrapperEl.children(".".concat(a.params.slideDuplicateClass,'[data-swiper-slide-index="').concat(e,'"]'));a.lazy.loadInSlide(p.index(),!1)}}a.emit("lazyImageReady",n[0],r[0])}})),a.emit("lazyImageLoad",n[0],r[0])}))}},load:function(){var e=this,t=e.$wrapperEl,a=e.params,i=e.slides,s=e.activeIndex,n=e.virtual&&a.virtual.enabled,r=a.lazy,o=a.slidesPerView;function l(e){if(n){if(t.children(".".concat(a.slideClass,'[data-swiper-slide-index="').concat(e,'"]')).length)return!0}else if(i[e])return!0;return!1}function d(e){return n?E(e).attr("data-swiper-slide-index"):E(e).index()}if("auto"===o&&(o=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children(".".concat(a.slideVisibleClass)).each((function(t,a){var i=n?E(a).attr("data-swiper-slide-index"):E(a).index();e.lazy.loadInSlide(i)}));else if(o>1)for(var c=s;c<s+o;c+=1)l(c)&&e.lazy.loadInSlide(c);else e.lazy.loadInSlide(s);if(r.loadPrevNext)if(o>1||r.loadPrevNextAmount&&r.loadPrevNextAmount>1){for(var p=r.loadPrevNextAmount,u=o,h=Math.min(s+u+Math.max(p,u),i.length),v=Math.max(s-Math.max(u,p),0),f=s+o;f<h;f+=1)l(f)&&e.lazy.loadInSlide(f);for(var m=v;m<s;m+=1)l(m)&&e.lazy.loadInSlide(m)}else{var g=t.children(".".concat(a.slideNextClass));g.length>0&&e.lazy.loadInSlide(d(g));var b=t.children(".".concat(a.slidePrevClass));b.length>0&&e.lazy.loadInSlide(d(b))}}},ve={LinearSpline:function(e,t){var a,i,s,n,r,o=function(e,t){for(i=-1,a=e.length;a-i>1;)e[s=a+i>>1]<=t?i=s:a=s;return a};return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(r=o(this.x,e),n=r-1,(e-this.x[n])*(this.y[r]-this.y[n])/(this.x[r]-this.x[n])+this.y[n]):0},this},getInterpolateFunction:function(e){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new ve.LinearSpline(t.slidesGrid,e.slidesGrid):new ve.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate:function(e,t){var a,i,s=this,n=s.controller.control;function r(e){var t=s.rtlTranslate?-s.translate:s.translate;"slide"===s.params.controller.by&&(s.controller.getInterpolateFunction(e),i=-s.controller.spline.interpolate(-t)),i&&"container"!==s.params.controller.by||(a=(e.maxTranslate()-e.minTranslate())/(s.maxTranslate()-s.minTranslate()),i=(t-s.minTranslate())*a+e.minTranslate()),s.params.controller.inverse&&(i=e.maxTranslate()-i),e.updateProgress(i),e.setTranslate(i,s),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(n))for(var o=0;o<n.length;o+=1)n[o]!==t&&n[o]instanceof K&&r(n[o]);else n instanceof K&&t!==n&&r(n)},setTransition:function(e,t){var a,i=this,s=i.controller.control;function n(t){t.setTransition(e,i),0!==e&&(t.transitionStart(),t.params.autoHeight&&$.nextTick((function(){t.updateAutoHeight()})),t.$wrapperEl.transitionEnd((function(){s&&(t.params.loop&&"slide"===i.params.controller.by&&t.loopFix(),t.transitionEnd())})))}if(Array.isArray(s))for(a=0;a<s.length;a+=1)s[a]!==t&&s[a]instanceof K&&n(s[a]);else s instanceof K&&t!==s&&n(s)}},fe={makeElFocusable:function(e){return e.attr("tabIndex","0"),e},addElRole:function(e,t){return e.attr("role",t),e},addElLabel:function(e,t){return e.attr("aria-label",t),e},disableEl:function(e){return e.attr("aria-disabled",!0),e},enableEl:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){var t=this,a=t.params.a11y;if(13===e.keyCode){var i=E(e.target);t.navigation&&t.navigation.$nextEl&&i.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?t.a11y.notify(a.lastSlideMessage):t.a11y.notify(a.nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&i.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?t.a11y.notify(a.firstSlideMessage):t.a11y.notify(a.prevSlideMessage)),t.pagination&&i.is(".".concat(t.params.pagination.bulletClass))&&i[0].click()}},notify:function(e){var t=this.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},updateNavigation:function(){var e=this;if(!e.params.loop){var t=e.navigation,a=t.$nextEl,i=t.$prevEl;i&&i.length>0&&(e.isBeginning?e.a11y.disableEl(i):e.a11y.enableEl(i)),a&&a.length>0&&(e.isEnd?e.a11y.disableEl(a):e.a11y.enableEl(a))}},updatePagination:function(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((function(a,i){var s=E(i);e.a11y.makeElFocusable(s),e.a11y.addElRole(s,"button"),e.a11y.addElLabel(s,t.paginationBulletMessage.replace(/{{index}}/,s.index()+1))}))},init:function(){var e=this;e.$el.append(e.a11y.liveRegion);var t,a,i=e.params.a11y;e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(a=e.navigation.$prevEl),t&&(e.a11y.makeElFocusable(t),e.a11y.addElRole(t,"button"),e.a11y.addElLabel(t,i.nextSlideMessage),t.on("keydown",e.a11y.onEnterKey)),a&&(e.a11y.makeElFocusable(a),e.a11y.addElRole(a,"button"),e.a11y.addElLabel(a,i.prevSlideMessage),a.on("keydown",e.a11y.onEnterKey)),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.on("keydown",".".concat(e.params.pagination.bulletClass),e.a11y.onEnterKey)},destroy:function(){var e,t,a=this;a.a11y.liveRegion&&a.a11y.liveRegion.length>0&&a.a11y.liveRegion.remove(),a.navigation&&a.navigation.$nextEl&&(e=a.navigation.$nextEl),a.navigation&&a.navigation.$prevEl&&(t=a.navigation.$prevEl),e&&e.off("keydown",a.a11y.onEnterKey),t&&t.off("keydown",a.a11y.onEnterKey),a.pagination&&a.params.pagination.clickable&&a.pagination.bullets&&a.pagination.bullets.length&&a.pagination.$el.off("keydown",".".concat(a.params.pagination.bulletClass),a.a11y.onEnterKey)}},me={init:function(){var e=this;if(e.params.history){if(!x.history||!x.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);var t=e.history;t.initialized=!0,t.paths=me.getPathValues(),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,e.params.runCallbacksOnInit),e.params.history.replaceState||x.addEventListener("popstate",e.history.setHistoryPopState))}},destroy:function(){this.params.history.replaceState||x.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){var e=this;e.history.paths=me.getPathValues(),e.history.scrollToSlide(e.params.speed,e.history.paths.value,!1)},getPathValues:function(){var e=x.location.pathname.slice(1).split("/").filter((function(e){return""!==e})),t=e.length;return{key:e[t-2],value:e[t-1]}},setHistory:function(e,t){var a=this;if(a.history.initialized&&a.params.history.enabled){var i=a.slides.eq(t),s=me.slugify(i.attr("data-history"));x.location.pathname.includes(e)||(s="".concat(e,"/").concat(s));var n=x.history.state;n&&n.value===s||(a.params.history.replaceState?x.history.replaceState({value:s},null,s):x.history.pushState({value:s},null,s))}},slugify:function(e){return e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,a){var i=this;if(t)for(var s=0,n=i.slides.length;s<n;s+=1){var r=i.slides.eq(s);if(me.slugify(r.attr("data-history"))===t&&!r.hasClass(i.params.slideDuplicateClass)){var o=r.index();i.slideTo(o,e,a)}}else i.slideTo(0,e,a)}},ge={onHashCange:function(){var e=this,t=y.location.hash.replace("#","");if(t!==e.slides.eq(e.activeIndex).attr("data-hash")){var a=e.$wrapperEl.children(".".concat(e.params.slideClass,'[data-hash="').concat(t,'"]')).index();if(void 0===a)return;e.slideTo(a)}},setHash:function(){var e=this;if(e.hashNavigation.initialized&&e.params.hashNavigation.enabled)if(e.params.hashNavigation.replaceState&&x.history&&x.history.replaceState)x.history.replaceState(null,null,"#".concat(e.slides.eq(e.activeIndex).attr("data-hash"))||0);else{var t=e.slides.eq(e.activeIndex),a=t.attr("data-hash")||t.attr("data-history");y.location.hash=a||""}},init:function(){var e=this;if(!(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)){e.hashNavigation.initialized=!0;var t=y.location.hash.replace("#","");if(t)for(var a=0,i=e.slides.length;a<i;a+=1){var s=e.slides.eq(a);if((s.attr("data-hash")||s.attr("data-history"))===t&&!s.hasClass(e.params.slideDuplicateClass)){var n=s.index();e.slideTo(n,0,e.params.runCallbacksOnInit,!0)}}e.params.hashNavigation.watchState&&E(x).on("hashchange",e.hashNavigation.onHashCange)}},destroy:function(){this.params.hashNavigation.watchState&&E(x).off("hashchange",this.hashNavigation.onHashCange)}},be={run:function(){var e=this,t=e.slides.eq(e.activeIndex),a=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(a=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=$.nextTick((function(){e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay"))}),a)},start:function(){var e=this;return void 0===e.autoplay.timeout&&(!e.autoplay.running&&(e.autoplay.running=!0,e.emit("autoplayStart"),e.autoplay.run(),!0))},stop:function(){var e=this;return!!e.autoplay.running&&(void 0!==e.autoplay.timeout&&(e.autoplay.timeout&&(clearTimeout(e.autoplay.timeout),e.autoplay.timeout=void 0),e.autoplay.running=!1,e.emit("autoplayStop"),!0))},pause:function(e){var t=this;t.autoplay.running&&(t.autoplay.paused||(t.autoplay.timeout&&clearTimeout(t.autoplay.timeout),t.autoplay.paused=!0,0!==e&&t.params.autoplay.waitForTransition?(t.$wrapperEl[0].addEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].addEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd)):(t.autoplay.paused=!1,t.autoplay.run())))}},we={setTranslate:function(){for(var e=this,t=e.slides,a=0;a<t.length;a+=1){var i=e.slides.eq(a),s=-i[0].swiperSlideOffset;e.params.virtualTranslate||(s-=e.translate);var n=0;e.isHorizontal()||(n=s,s=0);var r=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(i[0].progress),0):1+Math.min(Math.max(i[0].progress,-1),0);i.css({opacity:r}).transform("translate3d(".concat(s,"px, ").concat(n,"px, 0px)"))}},setTransition:function(e){var t=this,a=t.slides,i=t.$wrapperEl;if(a.transition(e),t.params.virtualTranslate&&0!==e){var s=!1;a.transitionEnd((function(){if(!s&&t&&!t.destroyed){s=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],a=0;a<e.length;a+=1)i.trigger(e[a])}}))}}},ye={setTranslate:function(){var e,t=this,a=t.$el,i=t.$wrapperEl,s=t.slides,n=t.width,r=t.height,o=t.rtlTranslate,l=t.size,d=t.params.cubeEffect,c=t.isHorizontal(),p=t.virtual&&t.params.virtual.enabled,u=0;d.shadow&&(c?(0===(e=i.find(".swiper-cube-shadow")).length&&(e=E('<div class="swiper-cube-shadow"></div>'),i.append(e)),e.css({height:"".concat(n,"px")})):0===(e=a.find(".swiper-cube-shadow")).length&&(e=E('<div class="swiper-cube-shadow"></div>'),a.append(e)));for(var h=0;h<s.length;h+=1){var v=s.eq(h),f=h;p&&(f=parseInt(v.attr("data-swiper-slide-index"),10));var m=90*f,g=Math.floor(m/360);o&&(m=-m,g=Math.floor(-m/360));var b=Math.max(Math.min(v[0].progress,1),-1),w=0,y=0,x=0;f%4==0?(w=4*-g*l,x=0):(f-1)%4==0?(w=0,x=4*-g*l):(f-2)%4==0?(w=l+4*g*l,x=l):(f-3)%4==0&&(w=-l,x=3*l+4*l*g),o&&(w=-w),c||(y=w,w=0);var T="rotateX(".concat(c?0:-m,"deg) rotateY(").concat(c?m:0,"deg) translate3d(").concat(w,"px, ").concat(y,"px, ").concat(x,"px)");if(b<=1&&b>-1&&(u=90*f+90*b,o&&(u=90*-f-90*b)),v.transform(T),d.slideShadows){var S=c?v.find(".swiper-slide-shadow-left"):v.find(".swiper-slide-shadow-top"),C=c?v.find(".swiper-slide-shadow-right"):v.find(".swiper-slide-shadow-bottom");0===S.length&&(S=E('<div class="swiper-slide-shadow-'.concat(c?"left":"top",'"></div>')),v.append(S)),0===C.length&&(C=E('<div class="swiper-slide-shadow-'.concat(c?"right":"bottom",'"></div>')),v.append(C)),S.length&&(S[0].style.opacity=Math.max(-b,0)),C.length&&(C[0].style.opacity=Math.max(b,0))}}if(i.css({"-webkit-transform-origin":"50% 50% -".concat(l/2,"px"),"-moz-transform-origin":"50% 50% -".concat(l/2,"px"),"-ms-transform-origin":"50% 50% -".concat(l/2,"px"),"transform-origin":"50% 50% -".concat(l/2,"px")}),d.shadow)if(c)e.transform("translate3d(0px, ".concat(n/2+d.shadowOffset,"px, ").concat(-n/2,"px) rotateX(90deg) rotateZ(0deg) scale(").concat(d.shadowScale,")"));else{var M=Math.abs(u)-90*Math.floor(Math.abs(u)/90),k=1.5-(Math.sin(2*M*Math.PI/360)/2+Math.cos(2*M*Math.PI/360)/2),P=d.shadowScale,z=d.shadowScale/k,$=d.shadowOffset;e.transform("scale3d(".concat(P,", 1, ").concat(z,") translate3d(0px, ").concat(r/2+$,"px, ").concat(-r/2/z,"px) rotateX(-90deg)"))}var I=L.isSafari||L.isUiWebView?-l/2:0;i.transform("translate3d(0px,0,".concat(I,"px) rotateX(").concat(t.isHorizontal()?0:u,"deg) rotateY(").concat(t.isHorizontal()?-u:0,"deg)"))},setTransition:function(e){var t=this,a=t.$el;t.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cubeEffect.shadow&&!t.isHorizontal()&&a.find(".swiper-cube-shadow").transition(e)}},xe={setTranslate:function(){for(var e=this,t=e.slides,a=e.rtlTranslate,i=0;i<t.length;i+=1){var s=t.eq(i),n=s[0].progress;e.params.flipEffect.limitRotation&&(n=Math.max(Math.min(s[0].progress,1),-1));var r=-180*n,o=0,l=-s[0].swiperSlideOffset,d=0;if(e.isHorizontal()?a&&(r=-r):(d=l,l=0,o=-r,r=0),s[0].style.zIndex=-Math.abs(Math.round(n))+t.length,e.params.flipEffect.slideShadows){var c=e.isHorizontal()?s.find(".swiper-slide-shadow-left"):s.find(".swiper-slide-shadow-top"),p=e.isHorizontal()?s.find(".swiper-slide-shadow-right"):s.find(".swiper-slide-shadow-bottom");0===c.length&&(c=E('<div class="swiper-slide-shadow-'.concat(e.isHorizontal()?"left":"top",'"></div>')),s.append(c)),0===p.length&&(p=E('<div class="swiper-slide-shadow-'.concat(e.isHorizontal()?"right":"bottom",'"></div>')),s.append(p)),c.length&&(c[0].style.opacity=Math.max(-n,0)),p.length&&(p[0].style.opacity=Math.max(n,0))}s.transform("translate3d(".concat(l,"px, ").concat(d,"px, 0px) rotateX(").concat(o,"deg) rotateY(").concat(r,"deg)"))}},setTransition:function(e){var t=this,a=t.slides,i=t.activeIndex,s=t.$wrapperEl;if(a.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){var n=!1;a.eq(i).transitionEnd((function(){if(!n&&t&&!t.destroyed){n=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],a=0;a<e.length;a+=1)s.trigger(e[a])}}))}}},Te={setTranslate:function(){for(var e=this,t=e.width,a=e.height,i=e.slides,s=e.$wrapperEl,n=e.slidesSizesGrid,r=e.params.coverflowEffect,o=e.isHorizontal(),l=e.translate,d=o?t/2-l:a/2-l,c=o?r.rotate:-r.rotate,p=r.depth,u=0,h=i.length;u<h;u+=1){var v=i.eq(u),f=n[u],m=(d-v[0].swiperSlideOffset-f/2)/f*r.modifier,g=o?c*m:0,b=o?0:c*m,w=-p*Math.abs(m),y=o?0:r.stretch*m,x=o?r.stretch*m:0;Math.abs(x)<.001&&(x=0),Math.abs(y)<.001&&(y=0),Math.abs(w)<.001&&(w=0),Math.abs(g)<.001&&(g=0),Math.abs(b)<.001&&(b=0);var T="translate3d(".concat(x,"px,").concat(y,"px,").concat(w,"px)  rotateX(").concat(b,"deg) rotateY(").concat(g,"deg)");if(v.transform(T),v[0].style.zIndex=1-Math.abs(Math.round(m)),r.slideShadows){var S=o?v.find(".swiper-slide-shadow-left"):v.find(".swiper-slide-shadow-top"),C=o?v.find(".swiper-slide-shadow-right"):v.find(".swiper-slide-shadow-bottom");0===S.length&&(S=E('<div class="swiper-slide-shadow-'.concat(o?"left":"top",'"></div>')),v.append(S)),0===C.length&&(C=E('<div class="swiper-slide-shadow-'.concat(o?"right":"bottom",'"></div>')),v.append(C)),S.length&&(S[0].style.opacity=m>0?m:0),C.length&&(C[0].style.opacity=-m>0?-m:0)}}(I.pointerEvents||I.prefixedPointerEvents)&&(s[0].style.perspectiveOrigin="".concat(d,"px 50%"))},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},Ee={init:function(){var e=this,t=e.params.thumbs,a=e.constructor;t.swiper instanceof a?(e.thumbs.swiper=t.swiper,$.extend(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),$.extend(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):$.isObject(t.swiper)&&(e.thumbs.swiper=new a($.extend({},t.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),e.thumbs.swiperCreated=!0),e.thumbs.swiper.$el.addClass(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",e.thumbs.onThumbClick)},onThumbClick:function(){var e=this,t=e.thumbs.swiper;if(t){var a=t.clickedIndex,i=t.clickedSlide;if(!(i&&E(i).hasClass(e.params.thumbs.slideThumbActiveClass)||null==a)){var s;if(s=t.params.loop?parseInt(E(t.clickedSlide).attr("data-swiper-slide-index"),10):a,e.params.loop){var n=e.activeIndex;e.slides.eq(n).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,n=e.activeIndex);var r=e.slides.eq(n).prevAll('[data-swiper-slide-index="'.concat(s,'"]')).eq(0).index(),o=e.slides.eq(n).nextAll('[data-swiper-slide-index="'.concat(s,'"]')).eq(0).index();s=void 0===r?o:void 0===o?r:o-n<n-r?o:r}e.slideTo(s)}}},update:function(e){var t=this,a=t.thumbs.swiper;if(a){var i="auto"===a.params.slidesPerView?a.slidesPerViewDynamic():a.params.slidesPerView;if(t.realIndex!==a.realIndex){var s,n=a.activeIndex;if(a.params.loop){a.slides.eq(n).hasClass(a.params.slideDuplicateClass)&&(a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft,n=a.activeIndex);var r=a.slides.eq(n).prevAll('[data-swiper-slide-index="'.concat(t.realIndex,'"]')).eq(0).index(),o=a.slides.eq(n).nextAll('[data-swiper-slide-index="'.concat(t.realIndex,'"]')).eq(0).index();s=void 0===r?o:void 0===o?r:o-n==n-r?n:o-n<n-r?o:r}else s=t.realIndex;a.visibleSlidesIndexes&&a.visibleSlidesIndexes.indexOf(s)<0&&(a.params.centeredSlides?s=s>n?s-Math.floor(i/2)+1:s+Math.floor(i/2)-1:s>n&&(s=s-i+1),a.slideTo(s,e?0:void 0))}var l=1,d=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(l=t.params.slidesPerView),a.slides.removeClass(d),a.params.loop||a.params.virtual)for(var c=0;c<l;c+=1)a.$wrapperEl.children('[data-swiper-slide-index="'.concat(t.realIndex+c,'"]')).addClass(d);else for(var p=0;p<l;p+=1)a.slides.eq(t.realIndex+p).addClass(d)}}},Se=[Z,Q,J,ee,ae,se,re,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){var e=this;$.extend(e,{mousewheel:{enabled:!1,enable:oe.enable.bind(e),disable:oe.disable.bind(e),handle:oe.handle.bind(e),handleMouseEnter:oe.handleMouseEnter.bind(e),handleMouseLeave:oe.handleMouseLeave.bind(e),lastScrollTime:$.now()}})},on:{init:function(){this.params.mousewheel.enabled&&this.mousewheel.enable()},destroy:function(){this.mousewheel.enabled&&this.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){var e=this;$.extend(e,{navigation:{init:le.init.bind(e),update:le.update.bind(e),destroy:le.destroy.bind(e),onNextClick:le.onNextClick.bind(e),onPrevClick:le.onPrevClick.bind(e)}})},on:{init:function(){this.navigation.init(),this.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(e){var t,a=this,i=a.navigation,s=i.$nextEl,n=i.$prevEl;!a.params.navigation.hideOnClick||E(e.target).is(n)||E(e.target).is(s)||(s?t=s.hasClass(a.params.navigation.hiddenClass):n&&(t=n.hasClass(a.params.navigation.hiddenClass)),!0===t?a.emit("navigationShow",a):a.emit("navigationHide",a),s&&s.toggleClass(a.params.navigation.hiddenClass),n&&n.toggleClass(a.params.navigation.hiddenClass))}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){var e=this;$.extend(e,{pagination:{init:de.init.bind(e),render:de.render.bind(e),update:de.update.bind(e),destroy:de.destroy.bind(e),dynamicBulletIndex:0}})},on:{init:function(){var e=this;e.pagination.init(),e.pagination.render(),e.pagination.update()},activeIndexChange:function(){var e=this;(e.params.loop||void 0===e.snapIndex)&&e.pagination.update()},snapIndexChange:function(){this.params.loop||this.pagination.update()},slidesLengthChange:function(){var e=this;e.params.loop&&(e.pagination.render(),e.pagination.update())},snapGridLengthChange:function(){var e=this;e.params.loop||(e.pagination.render(),e.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(e){var t=this;t.params.pagination.el&&t.params.pagination.hideOnClick&&t.pagination.$el.length>0&&!E(e.target).hasClass(t.params.pagination.bulletClass)&&(!0===t.pagination.$el.hasClass(t.params.pagination.hiddenClass)?t.emit("paginationShow",t):t.emit("paginationHide",t),t.pagination.$el.toggleClass(t.params.pagination.hiddenClass))}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){var e=this;$.extend(e,{scrollbar:{init:ce.init.bind(e),destroy:ce.destroy.bind(e),updateSize:ce.updateSize.bind(e),setTranslate:ce.setTranslate.bind(e),setTransition:ce.setTransition.bind(e),enableDraggable:ce.enableDraggable.bind(e),disableDraggable:ce.disableDraggable.bind(e),setDragPosition:ce.setDragPosition.bind(e),getPointerPosition:ce.getPointerPosition.bind(e),onDragStart:ce.onDragStart.bind(e),onDragMove:ce.onDragMove.bind(e),onDragEnd:ce.onDragEnd.bind(e),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){var e=this;e.scrollbar.init(),e.scrollbar.updateSize(),e.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(e){this.scrollbar.setTransition(e)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){var e=this;$.extend(e,{parallax:{setTransform:pe.setTransform.bind(e),setTranslate:pe.setTranslate.bind(e),setTransition:pe.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},init:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition:function(e){this.params.parallax.enabled&&this.parallax.setTransition(e)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var e=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach((function(a){t[a]=ue[a].bind(e)})),$.extend(e,{zoom:t});var a=1;Object.defineProperty(e.zoom,"scale",{get:function(){return a},set:function(t){if(a!==t){var i=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,s=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",t,i,s)}a=t}})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(e){this.zoom.enabled&&this.zoom.onTouchStart(e)},touchEnd:function(e){this.zoom.enabled&&this.zoom.onTouchEnd(e)},doubleTap:function(e){var t=this;t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&t.zoom.toggle(e)},transitionEnd:function(){var e=this;e.zoom.enabled&&e.params.zoom.enabled&&e.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){var e=this;$.extend(e,{lazy:{initialImageLoaded:!1,load:he.load.bind(e),loadInSlide:he.loadInSlide.bind(e)}})},on:{beforeInit:function(){var e=this;e.params.lazy.enabled&&e.params.preloadImages&&(e.params.preloadImages=!1)},init:function(){var e=this;e.params.lazy.enabled&&!e.params.loop&&0===e.params.initialSlide&&e.lazy.load()},scroll:function(){var e=this;e.params.freeMode&&!e.params.freeModeSticky&&e.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbarDragMove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionStart:function(){var e=this;e.params.lazy.enabled&&(e.params.lazy.loadOnTransitionStart||!e.params.lazy.loadOnTransitionStart&&!e.lazy.initialImageLoaded)&&e.lazy.load()},transitionEnd:function(){var e=this;e.params.lazy.enabled&&!e.params.lazy.loadOnTransitionStart&&e.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){var e=this;$.extend(e,{controller:{control:e.params.controller.control,getInterpolateFunction:ve.getInterpolateFunction.bind(e),setTranslate:ve.setTranslate.bind(e),setTransition:ve.setTransition.bind(e)}})},on:{update:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},resize:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},observerUpdate:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},setTranslate:function(e,t){this.controller.control&&this.controller.setTranslate(e,t)},setTransition:function(e,t){this.controller.control&&this.controller.setTransition(e,t)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var e=this;$.extend(e,{a11y:{liveRegion:E('<span class="'.concat(e.params.a11y.notificationClass,'" aria-live="assertive" aria-atomic="true"></span>'))}}),Object.keys(fe).forEach((function(t){e.a11y[t]=fe[t].bind(e)}))},on:{init:function(){var e=this;e.params.a11y.enabled&&(e.a11y.init(),e.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){var e=this;$.extend(e,{history:{init:me.init.bind(e),setHistory:me.setHistory.bind(e),setHistoryPopState:me.setHistoryPopState.bind(e),scrollToSlide:me.scrollToSlide.bind(e),destroy:me.destroy.bind(e)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionEnd:function(){var e=this;e.history.initialized&&e.history.setHistory(e.params.history.key,e.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var e=this;$.extend(e,{hashNavigation:{initialized:!1,init:ge.init.bind(e),destroy:ge.destroy.bind(e),setHash:ge.setHash.bind(e),onHashCange:ge.onHashCange.bind(e)}})},on:{init:function(){this.params.hashNavigation.enabled&&this.hashNavigation.init()},destroy:function(){this.params.hashNavigation.enabled&&this.hashNavigation.destroy()},transitionEnd:function(){this.hashNavigation.initialized&&this.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;$.extend(e,{autoplay:{running:!1,paused:!1,run:be.run.bind(e),start:be.start.bind(e),stop:be.stop.bind(e),pause:be.pause.bind(e),onTransitionEnd:function(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&this.autoplay.start()},beforeTransitionStart:function(e,t){var a=this;a.autoplay.running&&(t||!a.params.autoplay.disableOnInteraction?a.autoplay.pause(e):a.autoplay.stop())},sliderFirstMove:function(){var e=this;e.autoplay.running&&(e.params.autoplay.disableOnInteraction?e.autoplay.stop():e.autoplay.pause())},destroy:function(){this.autoplay.running&&this.autoplay.stop()}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){var e=this;$.extend(e,{fadeEffect:{setTranslate:we.setTranslate.bind(e),setTransition:we.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("fade"===e.params.effect){e.classNames.push("".concat(e.params.containerModifierClass,"fade"));var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};$.extend(e.params,t),$.extend(e.originalParams,t)}},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(e){"fade"===this.params.effect&&this.fadeEffect.setTransition(e)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){var e=this;$.extend(e,{cubeEffect:{setTranslate:ye.setTranslate.bind(e),setTransition:ye.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("cube"===e.params.effect){e.classNames.push("".concat(e.params.containerModifierClass,"cube")),e.classNames.push("".concat(e.params.containerModifierClass,"3d"));var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};$.extend(e.params,t),$.extend(e.originalParams,t)}},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(e){"cube"===this.params.effect&&this.cubeEffect.setTransition(e)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){var e=this;$.extend(e,{flipEffect:{setTranslate:xe.setTranslate.bind(e),setTransition:xe.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("flip"===e.params.effect){e.classNames.push("".concat(e.params.containerModifierClass,"flip")),e.classNames.push("".concat(e.params.containerModifierClass,"3d"));var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};$.extend(e.params,t),$.extend(e.originalParams,t)}},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(e){"flip"===this.params.effect&&this.flipEffect.setTransition(e)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){var e=this;$.extend(e,{coverflowEffect:{setTranslate:Te.setTranslate.bind(e),setTransition:Te.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;"coverflow"===e.params.effect&&(e.classNames.push("".concat(e.params.containerModifierClass,"coverflow")),e.classNames.push("".concat(e.params.containerModifierClass,"3d")),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(e){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(e)}}},{name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){var e=this;$.extend(e,{thumbs:{swiper:null,init:Ee.init.bind(e),update:Ee.update.bind(e),onThumbClick:Ee.onThumbClick.bind(e)}})},on:{beforeInit:function(){var e=this,t=e.params.thumbs;t&&t.swiper&&(e.thumbs.init(),e.thumbs.update(!0))},slideChange:function(){this.thumbs.swiper&&this.thumbs.update()},update:function(){this.thumbs.swiper&&this.thumbs.update()},resize:function(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate:function(){this.thumbs.swiper&&this.thumbs.update()},setTransition:function(e){var t=this.thumbs.swiper;t&&t.setTransition(e)},beforeDestroy:function(){var e=this.thumbs.swiper;e&&this.thumbs.swiperCreated&&e&&e.destroy()}}}];void 0===K.use&&(K.use=K.Class.use,K.installModule=K.Class.installModule),K.use(Se);var Ce=K,Me="wp-block-newspack-blocks-carousel__autoplay-playing";function ke(e,t){Array.prototype.forEach.call(e,t)}function Pe(e){e.setAttribute("aria-hidden","false"),ke(e.querySelectorAll("a"),(function(e){return e.removeAttribute("tabindex")}))}function ze(e){e.setAttribute("aria-hidden","true"),ke(e.querySelectorAll("a"),(function(e){return e.setAttribute("tabindex","-1")}))}"undefined"!=typeof window&&s()((function(){Array.from(document.querySelectorAll(".wp-block-newspack-blocks-carousel")).forEach((function(e){!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=new Ce(e.container,{a11y:!1,autoplay:!!t.autoplay&&{delay:t.delay,disableOnInteraction:!1},effect:"slide",grabCursor:!0,init:!1,initialSlide:t.initialSlide||0,loop:!0,navigation:{nextEl:e.next,prevEl:e.prev},pagination:{bulletElement:"button",clickable:!0,el:e.pagination,type:"bullets",renderBullet:function(e,t){return'<button class="'.concat(t,'"><span>').concat((0,o.sprintf)((0,o.__)("Slide %s","full-site-editing"),e+1),"</span></button>")}},preventClicksPropagation:!1,releaseFormElements:!1,setWrapperSize:!0,touchStartPreventDefault:!1,on:{init:function(){ke(this.wrapperEl.querySelectorAll(".swiper-slide"),(function(e){return ze(e)})),Pe(this.slides[this.activeIndex])},slideChange:function(){var e=this.slides[this.activeIndex];if(ze(this.slides[this.previousIndex]),Pe(e),!this.autoplay.running){var t=e.querySelector("img"),a=!!t&&t.alt,i=(0,o.sprintf)((0,o.__)("Slide %s of %s","full-site-editing"),this.realIndex+1,this.pagination.bullets.length);(0,n.speak)((0,r.escapeHTML)("".concat(e.innerText,",\n\t\t\t\t\t\t\t").concat(a?(0,o.sprintf)((0,o.__)("Image: %s, ","full-site-editing"),a):"","\n\t\t\t\t\t\t\t").concat(i)),"assertive")}}}});if(t.autoplay){function i(){a.autoplay.stop(),e.play.focus()}function s(){a.autoplay.start(),e.pause.focus()}a.on("init",(function(){e.play.addEventListener("click",s),e.pause.addEventListener("click",i)})),a.on("autoplayStart",(function(){e.block.classList.add(Me),(0,n.speak)((0,o.__)("Playing","full-site-editing"),"assertive")})),a.on("autoplayStop",(function(){e.block.classList.remove(Me),(0,n.speak)((0,o.__)("Paused","full-site-editing"),"assertive")})),a.on("beforeDestroy",(function(){e.play.removeEventListener("click",s),e.pause.removeEventListener("click",i)}))}a.init()}({block:e,container:e.querySelector(".swiper-container"),prev:e.querySelector(".swiper-button-prev"),next:e.querySelector(".swiper-button-next"),pagination:e.querySelector(".swiper-pagination-bullets"),pause:e.querySelector(".swiper-button-pause"),play:e.querySelector(".swiper-button-play")},{autoplay:!!parseInt(e.dataset.autoplay),delay:1e3*parseInt(e.dataset.autoplay_delay)})}))}))}},t={};function a(i){if(t[i])return t[i].exports;var s=t[i]={exports:{}};return e[i](s,s.exports,a),s.exports}return a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a(913)}());
     1!function(e,t){for(var a in t)e[a]=t[a];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={111:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},85:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},198:function(e){function t(e,t){for(var a=0;a<t.length;a++){var i=t[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}e.exports=function(e,a,i){return a&&t(e.prototype,a),i&&t(e,i),e}},588:function(e){function t(a){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(a)}e.exports=t},270:function(e,t,a){var i=a(742);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&&i(e,t)}},983:function(e,t,a){var i=a(921),)}());
  • full-site-editing/trunk/posts-list-block/dist/posts-list-block.asset.php

    r2460738 r2464442  
    1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '0a6503ababb060e62bf0bae3742eacba');
     1<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '');
  • full-site-editing/trunk/posts-list-block/dist/posts-list-block.js

    r2460738 r2464442  
    1 !function(e,t){for(var o in t)e[o]=t[o];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){"use strict";var e={287:function(e,t,o){o.r(t);var n=window.wp.element,l=window.wp.blocks,r=window.wp.i18n,s=window.wp.components,i=window.wp.blockEditor,a=window.wp.data,c=JSON.parse('{"u2":"a8c/posts-list","Y4":{"postsPerPage":{"type":"number","default":10}}}'),u=["a8c/blog-posts","newspack-blocks/homepage-articles"],p=function(e){return function(t){var o=t.postsPerPage;return(0,l.createBlock)(e,{postsToShow:o,showAvatar:!1,displayPostDate:!0,displayPostContent:!0})}},d={to:u.map((function(e){return{type:"block",blocks:[e],transform:p(e)}}))},m=(0,n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,n.createElement)("path",{opacity:".87",fill:"none",d:"M0 0h24v24H0V0z"}),(0,n.createElement)("path",{d:"M3 5v14h17V5H3zm4 2v2H5V7h2zm-2 6v-2h2v2H5zm0 2h2v2H5v-2zm13 2H9v-2h9v2zm0-4H9v-2h9v2zm0-4H9V7h9v2z"}));(0,l.registerBlockType)(c.u2,{title:(0,r.__)("Blog Posts Listing","full-site-editing"),description:(0,r.__)("Displays your latest Blog Posts.","full-site-editing"),icon:m,category:"layout",supports:{html:!1,multiple:!1,reusable:!1,inserter:!1},attributes:c.Y4,edit:function(e){var t=e.attributes,o=e.setAttributes,c=e.clientId,p=e.isSelected,d=(0,a.select)("core/block-editor").getBlock(c),g=(0,l.getPossibleBlockTransformations)([d]).find((function(e){return e&&(t=e.name,u.indexOf(t)>-1);var t})),f=!!g;return(0,n.createElement)(n.Fragment,null,f&&(0,n.createElement)(s.Notice,{actions:[{label:(0,r.__)("Update Block","full-site-editing"),onClick:function(){(0,a.dispatch)("core/block-editor").replaceBlocks(d.clientId,(0,l.switchToBlockType)(d,g.name))}}],className:"posts-list__notice",isDismissible:!1},(0,r.__)("An improved version of this block is available. Update for a better, more natural way to manage your blog post listings. There may be small visual changes.","full-site-editing")),(0,n.createElement)(s.Placeholder,{icon:m,label:(0,r.__)("Your recent blog posts will be displayed here.","full-site-editing")},p?(0,n.createElement)(s.RangeControl,{label:(0,r.__)("Number of posts to show","full-site-editing"),value:t.postsPerPage,onChange:function(e){return o({postsPerPage:e})},min:1,max:50}):null),(0,n.createElement)(i.InspectorControls,null,(0,n.createElement)(s.PanelBody,null,(0,n.createElement)(s.RangeControl,{label:(0,r.__)("Number of posts","full-site-editing"),value:t.postsPerPage,onChange:function(e){return o({postsPerPage:e})},min:1,max:50}))))},save:function(){return null},transforms:d})}},t={};function o(n){if(t[n])return t[n].exports;var l=t[n]={exports:{}};return e[n](l,l.exports,o),l.exports}return o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o(287)}());
     1!function(e,t){for(var 7)}());
  • full-site-editing/trunk/premium-content/dist/premium-content.asset.php

    r2463392 r2464442  
    1 <?php return array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '1c032e4170e148965e718086fc49c0e1');
     1<?php return array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '');
  • full-site-editing/trunk/premium-content/dist/premium-content.js

    r2463392 r2464442  
    1 !function(e,t){for(var n in t)e[n]=t[n];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={270:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},180:function(e){e.exports=function(e){if(Array.isArray(e))return e}},232:function(e,t,n){var r=n(270);e.exports=function(e){if(Array.isArray(e))return r(e)}},111:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},954:function(e){function t(e,t,n,r,i,o,s){try{var l=e[o](s),c=l.value}catch(a){return void n(a)}l.done?t(c):Promise.resolve(c).then(r,i)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(i,o){var s=e.apply(n,r);function l(e){t(s,i,o,l,c,"next",e)}function c(e){t(s,i,o,l,c,"throw",e)}l(void 0)}))}}},85:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},198:function(e){function t(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,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}},564:function(e,t,n){var r=n(588),i=n(549),o=n(830);e.exports=function(e){var t=i();return function(){var n,i=r(e);if(t){var s=r(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return o(this,n)}}},260:function(e){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}},527:function(e){function t(){return e.exports=t=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},t.apply(this,arguments)}e.exports=t},588:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(n)}e.exports=t},684:function(e,t,n){var r=n(742);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)}},549:function(e){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},557:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},981:function(e){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],_n=!0,r=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(_n=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(l){r=!0,i=l}finally{try{_n||null==s.return||s.return()}finally{if(r)throw i}}return n}}},365:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},359:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},417:function(e,t,n){var r=n(260);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},830:function(e,t,n){var r=n(921),i=n(111);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t}},742:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(n,r)}e.exports=t},68:function(e,t,n){var r=n(180),i=n(981),o=n(487),s=n(365);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||s()}},182:function(e,t,n){var r=n(232),i=n(557),o=n(487),s=n(359);e.exports=function(e){return r(e)||i(e)||o(e)||s()}},921:function(e){function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t},487:function(e,t,n){var r=n(270);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},779:function(e,t){var n;
     1!function(e,t){for(var n in t)e[n]=t[n];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={779:function(e,t){var n;
    22/*!
    33  Copyright (c) 2017 Jed Watson.
    44  Licensed under the MIT License (MIT), see
    55  http://jedwatson.github.io/classnames
    6 */!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var s=i.apply(null,n);s&&e.push(s)}else if("object"===o)for(var l in n)r.call(n,l)&&n[l]&&e.push(l)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(){void 0!==o&&e.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==t&&(o=function(n){e.removeListener(t,i),r(n)},e.once("error",o)),e.once(t,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function a(e,t,n,r){var i,o,s,a;if(l(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=c(e))>0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,a=u,console&&console.warn&&console.warn(a)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=u.bind(r);return i.listener=n,r.wrapFn=i,i}function m(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]: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}(i):f(i,i.length)}function d(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(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.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},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(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},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var l=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw l.context=s,l}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var a=c.length,u=f(c,a);for(n=0;n<a;++n)r(u[n],this,t)}return!0},o.prototype.addListener=function(e,t){return a(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return a(this,e,t,!0)},o.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(l(t),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(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.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 i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);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},o.prototype.listeners=function(e){return m(this,e,!0)},o.prototype.rawListeners=function(e){return m(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},201:function(e){"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},983:function(e){"use strict";e.exports=function(e,t,n,r,i,o,s,l){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=[n,r,i,o,s,l],u=0;(c=new Error(t.replace(/%s/g,(function(){return a[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},590:function(e,t,n){"use strict";var r=n(201);e.exports=r},495:function(e,t,n){"use strict";var r=n(212),i=n(561);function o(){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=o,o.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 i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.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 i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},79:function(e,t,n){"use strict";var r=n(212),i=n(495),o=n(713),s=r.rotl32,l=r.sum32,c=r.sum32_5,a=o.ft_1,u=i.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function m(){if(!(this instanceof m))return new m;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(m,u),e.exports=m,m.blockSize=512,m.outSize=160,m.hmacStrength=80,m.padLength=64,m.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]=s(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],u=this.h[2],m=this.h[3],d=this.h[4];for(r=0;r<n.length;r++){var f=~~(r/20),g=c(s(i,5),a(f,o,u,m),d,n[r],p[f]);d=m,m=u,u=s(o,30),o=i,i=g}this.h[0]=l(this.h[0],i),this.h[1]=l(this.h[1],o),this.h[2]=l(this.h[2],u),this.h[3]=l(this.h[3],m),this.h[4]=l(this.h[4],d)},m.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(e,t,n){"use strict";var r=n(212).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?s(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=s,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}},212:function(e,t,n){"use strict";var r=n(561),i=n(285);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function l(e){return 1===e.length?"0"+e:e}function c(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=i,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),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):o(e,i)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=l(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=s(i)),n+=c(i.toString(16))}return n},t.zero2=l,t.zero8=c,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var s=new Array(o/4),l=0,c=t;l<s.length;l++,c+=4){var a;a="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],s[l]=a>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}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,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,s=(o<r?1:0)+n+i;e[t]=s>>>0,e[t+1]=o},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,i,o,s,l){var c=0,a=t;return c+=(a=a+r>>>0)<t?1:0,c+=(a=a+o>>>0)<o?1:0,e+n+i+s+(c+=(a=a+l>>>0)<l?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,s,l){return t+r+o+l>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,s,l,c,a){var u=0,p=t;return u+=(p=p+r>>>0)<t?1:0,u+=(p=p+o>>>0)<o?1:0,u+=(p=p+l>>>0)<l?1:0,e+n+i+s+c+(u+=(p=p+a>>>0)<a?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,s,l,c,a){return t+r+o+l+a>>>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}},285:function(e){"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}}},10:function(e,t,n){"use strict";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},i=l(n(804)),o=l(n(631)),s=l(n(586));function l(e){return e&&e.__esModule?e:{default:e}}var c=void 0;function a(e,t){var n,s,l,u,p,m,d,f,g=[],h={};for(m=0;m<e.length;m++)if("string"!==(p=e[m]).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> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){n=t[p.value],l=m;break}g.push(t[p.value])}else g.push(p.value);return n&&(u=function(e,t){var n,r,i=t[e],o=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===i.value){if("componentOpen"===n.type){o++;continue}if("componentClose"===n.type){if(0===o)return r;o--}}throw new Error("Missing closing component token `"+i.value+"`")}(l,e),d=a(e.slice(l+1,u),t),s=i.default.cloneElement(n,{},d),g.push(s),u<e.length-1&&(f=a(e.slice(u+1),t),g=g.concat(f))),1===g.length?g[0]:(g.forEach((function(e,t){e&&(h["interpolation-child-"+t]=e)})),(0,o.default)(h))}t.Z=function(e){var t=e.mixedString,n=e.components,i=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var o=(0,s.default)(t);try{return a(o,n)}catch(l){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+l.message+"`");return t}}},586:function(e){"use strict";function t(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(t)}},839:function(e,t,n){var r=n(699),i=n(285);function o(e){if(!(this instanceof o))return new o(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=o,i(o,r.EventEmitter),Object.defineProperty(o.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),o.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},o.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}},o.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)},o.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},o.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},o.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)},o.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}},o.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},378:function(e){var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i,s=365.25*i;function l(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,c){c=c||{};var a=typeof e;if("string"===a&&e.length>0)return function(e){if((e=String(e)).length>100)return;var l=/^(-?(?:\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(!l)return;var c=parseFloat(l[1]);switch((l[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===a&&isFinite(e))return c.long?function(e){var o=Math.abs(e);if(o>=i)return l(e,o,i,"day");if(o>=r)return l(e,o,r,"hour");if(o>=n)return l(e,o,n,"minute");if(o>=t)return l(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},320:function(e){"use strict";
     6*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var s=i.apply(null,n);s&&e.push(s)}else if("object"===o)for(var 320:function(e){"use strict";
    77/*
    88object-assign
    99(c) Sindre Sorhus
    1010@license MIT
    11 */var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,o){for(var s,l,c=i(e),a=1;a<arguments.length;a++){for(var u in s=Object(arguments[a]))n.call(s,u)&&(c[u]=s[u]);if(t){l=t(s);for(var p=0;p<l.length;p++)r.call(s,l[p])&&(c[l[p]]=s[l[p]])}}return c}},631:function(e,t,n){"use strict";var r=n(804),i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=n(201),s=n(983),l=n(590),c="function"==typeof Symbol&&Symbol.iterator;function a(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 o,l=typeof e;if("undefined"!==l&&"boolean"!==l||(e=null),null===e||"string"===l||"number"===l||"object"===l&&e.$$typeof===i)return n(r,e,""===t?"."+a(e,0):t),1;var p=0,m=""===t?".":t+":";if(Array.isArray(e))for(var d=0;d<e.length;d++)p+=u(o=e[d],m+a(o,d),n,r);else{var f=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(f){0;for(var g,h=f.call(e),b=0;!(g=h.next()).done;)p+=u(o=g.value,m+a(o,b++),n,r)}else if("object"===l){0;var v=""+e;s(!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 m(e){return(""+e).replace(p,"$&/")}var d,f,g=h,h=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},b=function(e){var t=this;s(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function v(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var i,s,l=e.result,c=e.keyPrefix,a=e.func,u=e.context,p=a.call(u,t,e.count++);Array.isArray(p)?w(p,l,n,o.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(i=p,s=c+(!p.key||t&&t.key===p.key?"":m(p.key)+"/")+n,p=r.cloneElement(i,{key:s},void 0!==i.props?i.props.children:void 0)),l.push(p))}function w(e,t,n,r,i){var o="";null!=n&&(o=m(n)+"/");var s=v.getPooled(t,o,r,i);!function(e,t,n){null==e||u(e,"",t,n)}(e,y,s),v.release(s)}v.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){var i=this;if(i.instancePool.length){var o=i.instancePool.pop();return i.call(o,e,t,n,r),o}return new i(e,t,n,r)},(f=v).instancePool=[],f.getPooled=d||g,f.poolSize||(f.poolSize=10),f.release=b;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return l(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return l(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;s(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)w(e[n],t,n,o.thatReturnsArgument);return t}},829:function(e,t,n){"use strict";n.r(t),n.d(t,{registerPremiumContentBlocks:function(){return It}});var r={};n.r(r),n.d(r,{CURRENCY_OPTIONS:function(){return Ye},SUPPORTED_CURRENCIES:function(){return Je},category:function(){return ze},isPriceValid:function(){return Xe},minimumTransactionAmountForCurrency:function(){return qe},name:function(){return He},settings:function(){return Ze}});var i={};n.r(i),n.d(i,{category:function(){return nt},name:function(){return tt},settings:function(){return rt}});var o={};n.r(o),n.d(o,{category:function(){return ct},name:function(){return lt},settings:function(){return at}});var s={};n.r(s),n.d(s,{category:function(){return bt},name:function(){return ht},settings:function(){return vt}});var l={};n.r(l),n.d(l,{category:function(){return Ft},name:function(){return Ot},settings:function(){return Bt}});var c=n(954),a=n.n(c),u=n(417),p=n.n(u),m=window.lodash,d=window.wp.apiFetch,f=n.n(d),g=window.wp.blocks,h=window.wp.blockEditor,b=window.wp.i18n,v={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 y(e){return v[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}var w,C,_,k,x=window.wp.data,S=n(527),E=n.n(S),P=n(68),O=n.n(P),F=window.wp.element,B=window.wp.components,N=window.wp.compose,A=window.wp.url,R=n(182),j=n.n(R),L=n(260),T=n.n(L),I=n(49),D=n.n(I),M=n(10);w={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},C=["(","?"],_={")":["("],":":["?","?:"]},k=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var $={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function V(e){var t=function(e){for(var t,n,r,i,o=[],s=[];t=e.match(k);){for(n=t[0],(r=e.substr(0,t.index).trim())&&o.push(r);i=s.pop();){if(_[n]){if(_[n][0]===i){n=_[n][1]||n;break}}else if(C.indexOf(i)>=0||w[i]<w[n]){s.push(i);break}o.push(i)}_[n]||s.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&o.push(e),o.concat(s.reverse())}(e);return function(e){return function(e,t){var n,r,i,o,s,l,c=[];for(n=0;n<e.length;n++){if(s=e[n],o=$[s]){for(r=o.length,i=Array(r);r--;)i[r]=c.pop();try{l=o.apply(null,i)}catch(a){return a}}else l=t.hasOwnProperty(s)?t[s]:+s;c.push(l)}return c[0]}(t,e)}}var G={contextDelimiter:"",onMissingKey:null};function K(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},G)this.options[n]=void 0!==t&&n in t?t[n]:G[n]}K.prototype.getPluralForm=function(e,t){var n,r,i,o=this.pluralForms[e];return o||("function"!=typeof(i=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),i=function(e){var t=V(e);return function(e){return+t({n:e})}}(r)),o=this.pluralForms[e]=i),o(t)},K.prototype.dcnpgettext=function(e,t,n,r,i){var o,s,l;return o=void 0===i?0:this.getPluralForm(e,i),s=n,t&&(s=t+this.options.contextDelimiter+n),(l=this.data[e][s])&&l[o]?l[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)};var U=n(839),H=n.n(U),z=n(79),W=n.n(z),Z=n(699),J=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function Y(e,t){var n;if(!Array.isArray(t))for(t=new Array(arguments.length-1),n=1;n<arguments.length;n++)t[n-1]=arguments[n];return n=1,e.replace(J,(function(){var e,r,i,o,s;return e=arguments[3],r=arguments[5],"%"===(o=arguments[9])?"%":("*"===(i=arguments[7])&&(i=t[n-1],n++),void 0!==r?t[0]&&"object"==typeof t[0]&&t[0].hasOwnProperty(r)&&(s=t[0][r]):(void 0===e&&(e=n),n++,s=t[e-1]),"f"===o?s=parseFloat(s)||0:"d"===o&&(s=parseInt(s)||0),void 0!==i&&("f"===o?s=s.toFixed(i):"s"===o&&(s=s.substr(0,i))),null!=s?s:"")}))}function q(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+e)?+e:0,o=isFinite(+t)?Math.abs(t):0,s=void 0===r?",":r,l=void 0===n?".":n,c="";return(c=(o?
     11*/var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,o){for(var s,=(o?
    1212/*
    1313 * Exposes number format capability
     
    1717 * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
    1818 */
    19 function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,o):""+Math.round(i)).split("."))[0].length>3&&(c[0]=c[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,s)),(c[1]||"").length<o&&(c[1]=c[1]||"",c[1]+=new Array(o-c[1].length+1).join("0")),c.join(l)}var X=D()("i18n-calypso"),Q="number_format_decimals",ee="number_format_thousands_sep",te="messages",ne=[function(e){return e}],re={};function ie(){ae.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function oe(e){return Array.prototype.slice.call(e)}function se(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&ie("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",oe(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&ie("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",oe(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 le(e,t){return e.dcnpgettext(te,t.context,t.original,t.plural,t.count)}function ce(e,t){for(var n=ne.length-1;n>=0;n--){var r=ne[n](Object.assign({},t)),i=r.context?r.context+""+r.original:r.original;if(e.state.locale[i])return le(e.state.tannin,r)}return null}function ae(){if(!(this instanceof ae))return new ae;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:H()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new Z.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}ae.throwErrors=!1,ae.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},ae.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},ae.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},ae.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||".",i=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return q(e,n,r,i)},ae.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},ae.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var i=e[""]["key-hash"],o=function(e,t){var n=!1===t?"":String(t);if(void 0!==re[n+e])return re[n+e];var r=W()().update(e).digest("hex");return re[n+e]=t?r.substr(0,t):r},s=function(e){return function(t){return t.context?(t.original=o(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=o(t.original,e),t}};if("sha1"===i.substr(0,4))if(4===i.length)ne.push(s(!1));else{var l=i.substr(5).indexOf("-");if(l<0){var c=Number(i.substr(5));ne.push(s(c))}else for(var a=Number(i.substr(5,l)),u=Number(i.substr(6+l)),p=a;p<=u;p++)ne.push(s(p))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new K(T()({},te,this.state.locale)),this.state.numberFormatSettings.decimal_point=le(this.state.tannin,se([Q])),this.state.numberFormatSettings.thousands_sep=le(this.state.tannin,se([ee])),this.state.numberFormatSettings.decimal_point===Q&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===ee&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},ae.prototype.getLocale=function(){return this.state.locale},ae.prototype.getLocaleSlug=function(){return this.state.localeSlug},ae.prototype.getLocaleVariant=function(){return this.state.localeVariant},ae.prototype.isRtl=function(){return"rtl"===this.state.textDirection},ae.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},ae.prototype.hasTranslation=function(){return!!ce(this,se(arguments))},ae.prototype.translate=function(){var e=se(arguments),t=ce(this,e);if(t||(t=le(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=Y.apply(void 0,j()(n))}catch(i){if(!window||!window.console)return;var r=this.throwErrors?"error":"warn";"string"!=typeof i?window.console[r](i):window.console[r]("i18n sprintf error:",n)}}return e.components&&(t=(0,M.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},ae.prototype.reRenderTranslations=function(){X("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},ae.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},ae.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};var ue=ae,pe=n(85),me=n.n(pe),de=n(198),fe=n.n(de),ge=n(111),he=n.n(ge),be=n(684),ve=n.n(be),ye=n(564),we=n.n(ye),Ce=n(804),_e=n.n(Ce);var ke=n(718);var xe=new ue,Se=xe.numberFormat.bind(xe),Ee=(xe.translate.bind(xe),xe.configure.bind(xe),xe.setLocale.bind(xe),xe.getLocale.bind(xe),xe.getLocaleSlug.bind(xe),xe.getLocaleVariant.bind(xe),xe.isRtl.bind(xe),xe.addTranslations.bind(xe),xe.reRenderTranslations.bind(xe),xe.registerComponentUpdateHook.bind(xe),xe.registerTranslateHook.bind(xe),xe.state,xe.stateObserver,xe.on.bind(xe),xe.off.bind(xe),xe.emit.bind(xe),function(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)}}(xe),function(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}}(xe),function(e){var t={getCurrentValue:function(){return e.isRtl()},subscribe:function(t){return e.on("change",t),function(){return e.off("change",t)}}};function n(){return(0,ke.useSubscription)(t)}var r=(0,N.createHigherOrderComponent)((function(e){return(0,Ce.forwardRef)((function(t,r){var i=n();return(0,F.createElement)(e,E()({},t,{isRtl:i,ref:r}))}))}),"WithRTL");return{useRtl:n,withRtl:r}}(xe));Ee.useRtl,Ee.withRtl;function Pe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=y(t);if(!r||isNaN(e))return null;var i=p()(p()({},r),n),o=i.decimal,s=i.grouping,l=i.precision,c=i.symbol,a=e<0?"-":"",u=Se(Math.abs(e),{decimals:l,thousandsSep:s,decPoint:o});return n.stripZeros&&(u=Oe(u,o)),"".concat(a).concat(c).concat(u)}function Oe(e,t){var n=new RegExp("\\".concat(t,"0+$"));return e.replace(n,"")}function Fe(){return(0,F.createElement)("div",{className:"premium-content-wrapper"},(0,F.createElement)(h.InnerBlocks,{allowedBlocks:["premium-content/subscriber-view","premium-content/logged-out-view"],templateLock:"all",template:[["premium-content/subscriber-view"],["premium-content/logged-out-view"]],__experimentalCaptureToolbars:!0,templateInsertUpdatesSelection:!1}))}function Be(e){var t=e.className,n=e.plan,r=e.selectedPlan,i=e.onSelected,o=e.onClose,s=e.getPlanDescription,l=r&&n.id===r.id,c=(l?["is-selected"]:[]).concat([t]).join(" "),a=l?"yes":void 0,u=null;return n&&(u=" "+s(n)),(0,F.createElement)(B.MenuItem,{onClick:function(e){e.preventDefault(),i(n),o()},className:c,key:n.id,value:n.id,selected:l,icon:a},n.title," : ",u)}function Ne(e){var t=e.plans,n=e.selectedPlan,r=e.onSelected;return(0,F.createElement)(B.MenuGroup,null,t.map((function(t){return(0,F.createElement)(Be,E()({},e,{key:t.id,selectedPlan:n,onSelected:r,plan:t}))})))}function Ae(e){return(0,F.createElement)(B.MenuGroup,null,(0,F.createElement)(B.MenuItem,{onClick:function(t){t.preventDefault(),(0,x.select)("core/edit-post").isEditorSidebarOpened()||(0,x.dispatch)("core/edit-post").openGeneralSidebar("edit-post/block");var n=document.getElementById("new-plan-name");null!==n&&n.focus(),e.onClose()}},(0,b.__)("Add a new subscription","full-site-editing")))}function Re(e){var t=e.selectedPlanId,n=e.onSelected,r=e.plans,i=e.getPlanDescription,o=r.find((function(e){return e.id===t})),s=null;return o&&(s=" "+i(o)),(0,F.createElement)(h.BlockControls,null,(0,F.createElement)(B.Toolbar,null,(0,F.createElement)(B.DropdownMenu,{icon:(0,F.createElement)(F.Fragment,null,(0,F.createElement)(B.Dashicon,{icon:"update"})," ",s&&(0,F.createElement)(F.Fragment,null,s)),label:(0,b.__)("Select a plan","full-site-editing"),className:"premium-content-toolbar-button"},(function(t){var r=t.onClose;return(0,F.createElement)(F.Fragment,null,(0,F.createElement)(Ne,E()({},e,{onSelected:n,onClose:r,selectedPlan:o})),(0,F.createElement)(Ae,E()({},e,{onClose:r})))}))))}function je(e){var t=(0,F.useState)(0),n=O()(t,2),r=n[0],i=n[1],o=e.attributes,s=e.setAttributes,l=e.className,c=e.savePlan,a=(e.currencies,e.siteSlug);return(0,F.createElement)(h.InspectorControls,null,a&&(0,F.createElement)(B.ExternalLink,{href:"https://wordpress.com/earn/payments/".concat(a),className:"wp-block-premium-content-container---link-to-earn"},(0,b.__)("Manage your subscriptions.","full-site-editing")),(0,F.createElement)(B.PanelBody,{title:"Add a new subscription",initialOpen:!0,className:"".concat(l,"---settings-add_plan")},1===r&&(0,F.createElement)(B.Placeholder,{icon:"lock",label:(0,b.__)("Premium Content","full-site-editing"),instructions:(0,b.__)("Saving plan…","full-site-editing")},(0,F.createElement)(B.Spinner,null)),0===r&&(0,F.createElement)("div",null,(0,F.createElement)(B.PanelRow,{className:"plan-name"},(0,F.createElement)(B.TextControl,{id:"new-plan-name",label:"Name",value:o.newPlanName,onChange:function(e){return s({newPlanName:e})}})),(0,F.createElement)(B.PanelRow,{className:"plan-price"},(0,F.createElement)(B.SelectControl,{label:"Currency",onChange:function(e){return s({newPlanCurrency:e})},value:o.newPlanCurrency,options:Ye}),(0,F.createElement)(B.TextControl,{label:"Price",value:o.newPlanPrice,onChange:function(e){return s({newPlanPrice:parseFloat(e)})},type:"number"})),(0,F.createElement)(B.PanelRow,{className:"plan-interval"},(0,F.createElement)(B.SelectControl,{label:"Interval",onChange:function(e){return s({newPlanInterval:e})},value:o.newPlanInterval,options:[{label:"Month",value:"1 month"},{label:"Year",value:"1 year"}]})),(0,F.createElement)(B.PanelRow,null,(0,F.createElement)(B.Button,{isSecondary:!0,isLarge:!0,onClick:function(t){t.preventDefault(),i(1),c(e.attributes,(function(e){i(0),e&&(s({newPlanPrice:5}),s({newPlanName:""}))}))}},(0,b.__)("Add subscription","full-site-editing"))))))}var Le={selectedTab:{id:"",className:"",label:(0,F.createElement)(F.Fragment,null)},stripeNudge:null},Te=(0,F.createContext)(Le),Ie=(0,F.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,F.createElement)(B.Path,{d:"M0 0h24v24H0z",fill:"none"}),(0,F.createElement)(B.Path,{d:"M7 2v11h3v9l7-12h-4l4-8z",fill:"currentColor"})),De=[{id:"premium",label:(0,F.createElement)("span",null,(0,b.__)("Subscriber View","full-site-editing")),className:"wp-premium-content-subscriber-view"},{id:"wall",label:(0,F.createElement)("span",null,(0,b.__)("Non-subscriber View","full-site-editing")),className:"wp-premium-content-logged-out-view"}],Me=[];function $e(e){var t=(0,F.useState)(De[1]),n=O()(t,2),r=n[0],i=n[1],o=(0,F.useState)(!1),s=O()(o,2),l=s[0],c=s[1],a=(0,F.useState)(Me),u=O()(a,2),p=u[0],m=u[1],d=(0,F.useState)(null),g=O()(d,2),v=g[0],y=g[1],w=(0,F.useState)(0),C=O()(w,2),_=C[0],k=C[1],x=(0,F.useState)(!1),S=O()(x,2),P=S[0],N=S[1],R=(0,F.useState)(""),j=O()(R,2),L=j[0],T=j[1],I=e.attributes.isPreview;function D(t,n){if(!t.newPlanName||0===t.newPlanName.length)return Ve(e,(0,b.__)("Plan requires a name","full-site-editing")),void n(!1);var r=parseFloat(t.newPlanPrice),i=qe(t.newPlanCurrency),o=(0,b.sprintf)((0,b.__)("Minimum allowed price is %s.","full-site-editing"),Pe(i,t.newPlanCurrency));if(r<i)return Ve(e,o),void n(!1);if(!Xe(t.newPlanCurrency,r))return Ve(e,(0,b.__)("Plan requires a valid price","full-site-editing")),void n(!1);var s={path:"/wpcom/v2/memberships/product",method:"POST",data:{currency:t.newPlanCurrency,price:t.newPlanPrice,title:t.newPlanName,interval:t.newPlanInterval}};f()(s).then((function(t){var r={id:t.id,title:t.title,interval:t.interval,price:t.price,currency:t.currency};m(p.concat([r])),M(r),function(e,t){e.createSuccessNotice(t,{type:"snackbar"})}(e,(0,b.__)("Successfully created plan","full-site-editing")),n&&n(!0)}),(function(){Ve(e,(0,b.__)("There was an error when adding the plan.","full-site-editing")),n&&n(!1)}))}function M(t){e.setAttributes({selectedPlanId:t.id})}var $=(0,F.useRef)(null);!function(e,t){function n(n){e.current&&n.target&&n.target instanceof Node&&!e.current.contains(n.target)?t(!1):t(!0)}(0,F.useEffect)((function(){return document.addEventListener("mousedown",n),function(){document.removeEventListener("mousedown",n)}}))}($,c);var V=e.isSelected,G=e.className;if((0,F.useEffect)((function(){if(!I){var t=(0,A.getQueryArg)(window.location.href,"origin"),n={path:(0,A.addQueryArgs)("/wpcom/v2/memberships/status",{source:"https://wordpress.com"===t?"gutenberg-wpcom":"gutenberg"}),method:"GET"};f()(n).then((function(t){if(t||"object"==typeof t){if(t.errors&&Object.values(t.errors)&&Object.values(t.errors)[0][0])return k(2),void Ve(e,Object.values(t.errors)[0][0]);y(t.connect_url),N(t.should_upgrade_to_access_memberships),T(t.site_slug),t.products&&0===t.products.length&&!t.should_upgrade_to_access_memberships&&t.connected_account_id?D({newPlanCurrency:"USD",newPlanPrice:5,newPlanName:(0,b.__)("Monthly Subscription","full-site-editing"),newPlanInterval:"1 month"},(function(){k(t.connected_account_id?1:2)})):(t.products&&t.products.length>0&&(m(t.products),e.attributes.selectedPlanId||M(t.products[0])),k(t.connected_account_id?1:2))}}),(function(t){y(null),k(2),Ve(e,t.message)})),setTimeout((function(){return e.selectBlock()}),1e3)}}),[]),0===_&&!I)return(0,F.createElement)("div",{className:G,ref:$},(0,F.createElement)(B.Placeholder,{icon:"lock",label:(0,b.__)("Premium Content","full-site-editing"),instructions:(0,b.__)("Loading data…","full-site-editing")},(0,F.createElement)(B.Spinner,null)));return(0,F.createElement)(F.Fragment,null,(0,F.createElement)(h.BlockControls,null,!(P||1===_||!v)&&(0,F.createElement)(B.ToolbarGroup,null,(0,F.createElement)(B.ToolbarButton,{icon:Ie,onClick:function(t){e.autosaveAndRedirect(t,function(e,t){var n,r=e.postId;if(!(0,A.isURL)(t))return null;if(!r)return t;try{var i=(0,A.getQueryArg)(t,"state");"string"==typeof i&&(n=JSON.parse(window.atob(i)))}catch(o){return t}return n.from_editor_post_id=r,(0,A.addQueryArgs)(t,{state:window.btoa(JSON.stringify(n))})}(e,v))},className:"connect-stripe components-tab-button"},(0,b.__)("Connect Stripe","full-site-editing"))),(0,F.createElement)(B.ToolbarGroup,null,(0,F.createElement)(B.ToolbarButton,{onClick:function(){i(De[1])},className:"components-tab-button",isPressed:"wp-premium-content-logged-out-view"===r.className},(0,F.createElement)("span",null,(0,b.__)("Visitor View","full-site-editing"))),(0,F.createElement)(B.ToolbarButton,{onClick:function(){i(De[0])},className:"components-tab-button",isPressed:"wp-premium-content-logged-out-view"!==r.className},(0,F.createElement)("span",null,(0,b.__)("Subscriber View","full-site-editing"))))),(0,F.createElement)("div",{className:G,ref:$},(V||l)&&1===_&&(0,F.createElement)(Re,E()({},e,{plans:p,selectedPlanId:e.attributes.selectedPlanId,onSelected:M,getPlanDescription:function(e){var t=Pe(parseFloat(e.price),e.currency);return"1 month"===e.interval?(0,b.sprintf)((0,b.__)("%s / month","full-site-editing"),t):"1 year"===e.interval?(0,b.sprintf)((0,b.__)("%s / year","full-site-editing"),t):"one-time"===e.interval?t:(0,b.sprintf)((0,b.__)("%1$s / %2$s","full-site-editing"),t,e.interval)}})),(V||l)&&1===_&&(0,F.createElement)(je,E()({},e,{savePlan:D,siteSlug:L})),(0,F.createElement)(Te.Provider,{value:{selectedTab:r}},(0,F.createElement)(Fe,null))))}function Ve(e,t){e.createErrorNotice(t,{type:"snackbar"})}var Ge=(0,N.compose)([(0,x.withSelect)((function(e){return{postId:(0,e("core/editor").getCurrentPostId)()}})),(0,x.withDispatch)((function(e,t){var n,r=e("core/block-editor"),i=e("core/notices");return{selectBlock:function(){r.selectBlock(t.clientId)},autosaveAndRedirect:(n=a()(regeneratorRuntime.mark((function t(n,r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.preventDefault(),t.next=3,e("core/editor").savePost();case 3:window.top.location.href=r;case 4:case"end":return t.stop()}}),t)}))),function(_x,e){return n.apply(this,arguments)}),createErrorNotice:i.createErrorNotice,createSuccessNotice:i.createSuccessNotice}}))])((function(e){return(0,F.createElement)(B.Disabled.Consumer,null,(function(t){var n;return(0,F.createElement)($e,E()({},e,{attributes:p()(p()({},e.attributes),{},{isPreview:t||(null===(n=e.attributes)||void 0===n?void 0:n.isPreview)})}))}))}));function Ke(){for(var e=(0,g.getCategories)(),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=function(){var t=s[o];if(e.some((function(e){return e.slug===t})))return{v:t}},o=0,s=n;o<s.length;o++){var l=i();if("object"==typeof l)return l.v}throw new Error("Could not find a category from the provided list: ".concat(n.join(",")))}var Ue=(0,F.createElement)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,F.createElement)("path",{d:"M12.7439 14.4271L8.64053 13.165L8.51431 13.8718L8.09208 20.7415C8.06165 21.2365 8.61087 21.5526 9.02363 21.2776L12.7439 18.799L16.7475 21.304C17.1687 21.5676 17.7094 21.2343 17.6631 20.7396L17.0212 13.8718L17.0212 13.165L12.7439 14.4271Z",fill:"black"}),(0,F.createElement)("circle",{cx:"12.7439",cy:"8.69796",r:"5.94466",stroke:"black",strokeWidth:"1.5",fill:"none"}),(0,F.createElement)("path",{d:"M9.71023 8.12461L11.9543 10.3687L15.7776 6.54533",stroke:"black",strokeWidth:"1.5",fill:"none"})),He="premium-content/container",ze=Ke("earn","common"),We=function e(t){return 0===t.name.indexOf("premium-content/")||t.innerBlocks.some(e)},Ze={name:He,attributes:{newPlanName:{type:"string",default:"Monthly Subscription"},newPlanCurrency:{type:"string",default:"USD"},newPlanPrice:{type:"number",default:5},newPlanInterval:{type:"string",default:"1 month"},selectedPlanId:{type:"number",default:0},isPreview:{type:"boolean",default:!1}},title:(0,b.__)("Premium Content","full-site-editing"),description:(0,b.__)("Restrict access to your content for paying subscribers.","full-site-editing"),category:ze,icon:Ue,example:{attributes:{isPreview:!0}},supports:{html:!1},transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:function(e){if(!e.some(We)&&(t=e[0],!(0,(n=(0,x.select)("core/block-editor")).getBlocksByClientId)((0,n.getBlockParents)(t.clientId)).find((function(e){return 0===e.name.indexOf("premium-content/")})))){var t,n,r=e.map((function(e){return(0,g.createBlock)(e.name,e.attributes,e.innerBlocks)}));return(0,g.createBlock)("premium-content/container",{},[(0,g.createBlock)("premium-content/subscriber-view",{},r),(0,g.createBlock)("premium-content/logged-out-view")])}}}]},keywords:["premium-content",(0,b.__)("premium","full-site-editing"),(0,b.__)("paywall","full-site-editing")],edit:Ge,save:function(){return(0,F.createElement)("div",{className:"wp-block-premium-content-container"},(0,F.createElement)(h.InnerBlocks.Content,null))},providesContext:{"premium-content/planId":"selectedPlanId","premium-content/isPreview":"isPreview"}},Je={USD:.5,AUD:.5,BRL:.5,CAD:.5,CHF:.5,DKK:2.5,EUR:.5,GBP:.3,HKD:4,INR:.5,JPY:50,MXN:10,NOK:3,NZD:.5,PLN:2,SEK:3,SGD:.5},Ye=Object.keys(Je).map((function(e){var t=y(e).symbol;return{value:e,label:t===e?e:"".concat(e," ").concat(t.replace(/\.+$/,""))}}));function qe(e){return Je[e]}function Xe(e,t){return!isNaN(t)&&t>=qe(e)}var Qe=(0,N.compose)([(0,x.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.getSelectedBlockClientId;return{parentClientId:(0,n.getBlockHierarchyRootClientId)(r()),hasInnerBlocks:!!e("core/block-editor").getBlocksByClientId(t.clientId)[0].innerBlocks.length}}))])((function(e){var t=e.hasInnerBlocks,n=e.parentClientId,r=e.isSelected,i=(0,x.useDispatch)("core/block-editor").selectBlock;return(0,F.useEffect)((function(){r&&i(n)}),[i,r,n]),(0,F.createElement)(Te.Consumer,null,(function(e){var n=e.selectedTab,r=e.stripeNudge;return(0,F.createElement)("div",{hidden:"wall"===n.id,className:n.className},r,(0,F.createElement)(h.InnerBlocks,{renderAppender:!t&&h.InnerBlocks.ButtonBlockAppender,templateLock:!1,templateInsertUpdatesSelection:!1,template:[["core/heading",{content:(0,b.__)("Subscriber Content","full-site-editing"),level:3}],["core/paragraph",{content:(0,b.__)("Add content here that will only be visible to your subscribers.","full-site-editing")}]]}))}))}));var et=[{attributes:{},supports:{inserter:!1,html:!1},save:function(){return(0,F.createElement)("div",{className:"wp-block-premium-content-subscriber-view"})}}],tt="premium-content/subscriber-view",nt=Ke("design","common"),rt={name:tt,category:nt,attributes:{},title:(0,b.__)("Subscriber View","full-site-editing"),description:(0,b.__)("Subscriber View.","full-site-editing"),parent:["premium-content/container"],supports:{inserter:!1,html:!1},edit:Qe,icon:Ue,save:function(){return(0,F.createElement)("div",{className:"wp-block-premium-content-subscriber-view entry-content"},(0,F.createElement)(h.InnerBlocks.Content,null))},deprecated:et};var it=(0,N.compose)((0,x.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId;return{parentClientId:(0,t.getBlockHierarchyRootClientId)(n())}})))((function(e){var t=e.parentClientId,n=e.isSelected,r=(0,x.useDispatch)("core/block-editor").selectBlock;return(0,F.useEffect)((function(){n&&r(t)}),[r,n,t]),(0,F.createElement)(Te.Consumer,null,(function(e){var t=e.selectedTab,n=e.stripeNudge;return(0,F.createElement)("div",{hidden:"premium"===t.id,className:t.className},n,(0,F.createElement)(h.InnerBlocks,{templateLock:!1,templateInsertUpdatesSelection:!1,template:[["core/heading",{content:(0,b.__)("Subscribe to get access","full-site-editing"),level:3}],["core/paragraph",{content:(0,b.__)("Read more of this content when you subscribe today.","full-site-editing")}],["premium-content/buttons"]]}))}))}));var ot=[{attributes:{subscribeButtonText:{type:"string",default:"Subscribe"},loginButtonText:{type:"string",default:"Log In"},buttonClasses:{type:"string",default:""},backgroundButtonColor:{type:"string",default:""},textButtonColor:{type:"string",default:""},customBackgroundButtonColor:{type:"string",default:""},customTextButtonColor:{type:"string",default:""}},isEligible:function(e){return!!e.buttonClasses},migrate:function(e,t){if(Array.isArray(t))for(var n=0;n<t.length;n++)if(t[n].name&&"premium-content/buttons"===t[n].name)return[e,j()(t)];var r=(0,g.createBlock)("premium-content/buttons",{},[(0,g.createBlock)("jetpack/recurring-payments",{submitButtonText:e.subscribeButtonText,backgroundButtonColor:e.backgroundButtonColor,textButtonColor:e.textButtonColor,customBackgroundButtonColor:e.customBackgroundButtonColor,customTextButtonColor:e.customTextButtonColor}),(0,g.createBlock)("premium-content/login-button",{text:e.loginButtonText,backgroundColor:e.backgroundButtonColor,textColor:e.textButtonColor,style:{color:{background:e.customBackgroundButtonColor,text:e.customTextButtonColor}}})]);return[e,[].concat(j()(t),[r])]},save:function(){return(0,F.createElement)("div",{className:"wp-block-premium-content-logged-out-view"},(0,F.createElement)(h.InnerBlocks.Content,null))}},{attributes:{},supports:{inserter:!1,html:!1},save:function(){return(0,F.createElement)("div",{className:"wp-block-premium-content-logged-out-view"})}}],st=window.wp.richText,lt="premium-content/logged-out-view",ct=Ke("design","common"),at={name:lt,category:ct,title:(0,b.__)("Logged Out View","full-site-editing"),description:(0,b.__)("Logged Out View.","full-site-editing"),parent:["premium-content/container"],supports:{inserter:!1,html:!1},edit:it,save:function(){return(0,F.createElement)("div",{className:"wp-block-premium-content-logged-out-view entry-content"},(0,F.createElement)(h.InnerBlocks.Content,null))},icon:Ue,deprecated:ot},ut=(0,x.subscribe)((function(){var e=(0,x.select)("core/rich-text").getFormatType("core/link");if(e){ut(),(0,st.unregisterFormatType)("core/link");var t=(0,N.compose)((0,x.withSelect)((function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}})),(0,N.ifCondition)((function(e){return e.selectedBlock&&e.selectedBlock.name!==lt})))(e.edit);(0,st.registerFormatType)("core/link",p()(p()({},e),{},{edit:t}))}})),pt=window.wp.primitives,mt=(0,F.createElement)(pt.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,F.createElement)(pt.Path,{d:"M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 13h8v-1.5H8V13z"})),dt=window.wp.hooks,ft=["core/button","jetpack/recurring-payments","premium-content/login-button"];var gt=(0,N.compose)([(0,x.withSelect)((function(e,t){return{subscribeButton:e("core/block-editor").getBlock(t.clientId).innerBlocks.find((function(e){return"jetpack/recurring-payments"===e.name}))}})),(0,x.withDispatch)((function(e,t){return{setSubscribeButtonPlan:function(n){e("core/block-editor").updateBlockAttributes(t.subscribeButton.clientId,{planId:n})}}}))])((function(e){var t=e.context,n=e.subscribeButton,r=e.setSubscribeButtonPlan,i=t?t["premium-content/planId"]:null,o=!!t&&t["premium-content/isPreview"],s=[["core/button",{element:"a",uniqueId:"recurring-payments-id",text:(0,b.__)("Subscribe","full-site-editing")}],["premium-content/login-button"]],l=[["jetpack/recurring-payments",{planId:i},[["jetpack/button",{element:"a",uniqueId:"recurring-payments-id",text:(0,b.__)("Subscribe","full-site-editing")}]]],["premium-content/login-button"]];return(0,F.useEffect)((function(){i&&n&&n.attributes.planId!==i&&r(i)}),[i,n,r]),(0,F.useEffect)((function(){n&&(0,dt.addFilter)("jetpack.RecurringPayments.showControls","full-site-editing/premium-content-hide-recurring-payments-controls",(function(e,t){return t!==n.clientId&&e}))}),[n]),(0,F.createElement)(h.__experimentalBlock.div,{className:"wp-block-buttons"},(0,F.createElement)(h.InnerBlocks,{allowedBlocks:ft,template:o?s:l,templateInsertUpdatesSelection:!1,__experimentalLayout:{type:"default",alignments:[]},__experimentalMoverDirection:"horizontal"}))}));var ht="premium-content/buttons",bt=Ke("design","common"),vt={name:ht,category:bt,title:(0,b.__)("Premium Content buttons","full-site-editing"),description:(0,b.__)("Prompt Premium Content visitors to take action with a group of button-style links.","full-site-editing"),icon:mt,supports:{align:!0,alignWide:!1,lightBlockWrapper:!0},attributes:{isPremiumContentChild:{type:"bool",default:!0}},providesContext:{isPremiumContentChild:"isPremiumContentChild"},keywords:[(0,b.__)("link","full-site-editing")],edit:gt,save:function(){return(0,F.createElement)("div",{className:"wp-block-buttons"},(0,F.createElement)(h.InnerBlocks.Content,null))},usesContext:["premium-content/planId","premium-content/isPreview"]},yt=n(779),wt=n.n(yt),Ct="web"===F.Platform.OS;var _t=function e(t){if(!(0,m.isObject)(t))return t;var n=(0,m.pickBy)((0,m.mapValues)(t,e),m.identity);return(0,m.isEqual)(n,{})?void 0:n};function kt(e){var t=e.settings,n=e.clientId,r=e.enableContrastChecking,i=void 0===r||r,o=window,s=o.getComputedStyle,l=o.Node,c=(0,F.useState)(),a=O()(c,2),u=a[0],p=a[1],m=(0,F.useState)(),d=O()(m,2),f=d[0],g=d[1],v=Ct?(0,b.__)("Color settings","full-site-editing"):(0,b.__)("Color Settings","full-site-editing");return(0,F.useEffect)((function(){if(!Ct||i){var e=function(e){return document.getElementById("block-"+e)}(n);if(e){g(s(e).color);for(var t=e,r=s(t).backgroundColor;"rgba(0, 0, 0, 0)"===r&&t.parentNode&&t.parentNode.nodeType===l.ELEMENT_NODE;)t=t.parentNode,r=s(t).backgroundColor;p(r)}}})),(0,F.createElement)(h.InspectorControls,null,(0,F.createElement)(h.__experimentalPanelColorGradientSettings,{title:v,initialOpen:!1,settings:t},Ct&&i&&(0,F.createElement)(h.ContrastChecker,{backgroundColor:u,textColor:f})))}var xt=function(e){var t,n,r,i=e.attributes,o=(0,x.useSelect)((function(e){return e("core/block-editor").getSettings()}),[]),s=o.colors,l=o.gradients,c=(0,F.useRef)(i);(0,F.useEffect)((function(){c.current=i}),[i]);var a,u,m=i.style,d=i.textColor,f=i.backgroundColor,g=i.gradient;a=g?(0,h.getGradientValueBySlug)(l,g):null==m||null===(u=m.color)||void 0===u?void 0:u.gradient;var v=function(t){return function(n){var r,i,o=(0,h.getColorObjectByColorValue)(s,n),l=t+"Color",a=p()(p()({},c.current.style),{},{color:p()(p()({},null===(r=c.current)||void 0===r||null===(i=r.style)||void 0===i?void 0:i.color),{},T()({},t,null!=o&&o.slug?void 0:n))}),u=null!=o&&o.slug?o.slug:void 0,m=T()({style:_t(a)},l,u);e.setAttributes(m),c.current=p()(p()({},c.current),m)}};return(0,F.createElement)(kt,{enableContrastChecking:!(g||null!=m&&null!==(t=m.color)&&void 0!==t&&t.gradient),clientId:e.clientId,settings:[{label:(0,b.__)("Text Color","full-site-editing"),onColorChange:v("text"),colorValue:(0,h.getColorObjectByAttributeValues)(s,d,null==m||null===(n=m.color)||void 0===n?void 0:n.text).color},{label:(0,b.__)("Background Color","full-site-editing"),onColorChange:v("background"),colorValue:(0,h.getColorObjectByAttributeValues)(s,f,null==m||null===(r=m.color)||void 0===r?void 0:r.background).color,gradientValue:a,onGradientChange:function(t){var n,r=(0,h.getGradientSlugByValue)(l,t);if(r){var i,o,s,a=p()(p()({},null===(i=c.current)||void 0===i?void 0:i.style),{},{color:p()(p()({},null===(o=c.current)||void 0===o||null===(s=o.style)||void 0===s?void 0:s.color),{},{gradient:void 0})});n={style:_t(a),gradient:r}}else{var u,m,d,f=p()(p()({},null===(u=c.current)||void 0===u?void 0:u.style),{},{color:p()(p()({},null===(m=c.current)||void 0===m||null===(d=m.style)||void 0===d?void 0:d.color),{},{gradient:t})});n={style:_t(f),gradient:void 0}}e.setAttributes(n),c.current=p()(p()({},c.current),n)}}]})};function St(e){var t,n,r,i,o,s,l,c,a,u,p,m=e.backgroundColor,d=e.textColor,f=e.gradient,g=e.style,b=(0,h.getColorClassName)("background-color",m),v=(0,h.__experimentalGetGradientClass)(f),y=(0,h.getColorClassName)("color",d),w=wt()(y,v,(o={},T()(o,b,!(null!=g&&null!==(t=g.color)&&void 0!==t&&t.gradient||!b)),T()(o,"has-text-color",d||(null==g||null===(n=g.color)||void 0===n?void 0:n.text)),T()(o,"has-background",m||(null==g||null===(r=g.color)||void 0===r?void 0:r.background)||f||(null==g||null===(i=g.color)||void 0===i?void 0:i.gradient)),o));return{className:w||void 0,style:null!=g&&null!==(s=g.color)&&void 0!==s&&s.background||null!=g&&null!==(l=g.color)&&void 0!==l&&l.text||null!=g&&null!==(c=g.color)&&void 0!==c&&c.gradient?{background:null!=g&&null!==(a=g.color)&&void 0!==a&&a.gradient?g.color.gradient:void 0,backgroundColor:null!=g&&null!==(u=g.color)&&void 0!==u&&u.background?g.color.background:void 0,color:null!=g&&null!==(p=g.color)&&void 0!==p&&p.text?g.color.text:void 0}:{}}}function Et(e){var t=e.borderRadius,n=void 0===t?"":t,r=e.setAttributes,i=(0,F.useCallback)((function(e){r({borderRadius:e})}),[r]);return(0,F.createElement)(B.PanelBody,{title:(0,b.__)("Border settings","full-site-editing")},(0,F.createElement)(B.RangeControl,{value:n,label:(0,b.__)("Border radius","full-site-editing"),min:0,max:50,initialPosition:5,allowReset:!0,onChange:i}))}var Pt=function(e){var t=e.attributes,n=e.setAttributes,r=e.className,i=t.borderRadius,o=t.text,s=St(t);return(0,F.createElement)(F.Fragment,null,(0,F.createElement)(h.__experimentalBlock.div,{className:"wp-block-button"},(0,F.createElement)(h.RichText,{placeholder:(0,b.__)("Add text…","full-site-editing"),value:o,onChange:function(e){return n({text:e})},withoutInteractiveFormatting:!0,className:wt()(r,"wp-block-button__link",s.className,{"no-border-radius":0===i}),style:p()({borderRadius:i?i+"px":void 0},s.style)})),(0,F.createElement)(h.InspectorControls,null,(0,F.createElement)(xt,e),(0,F.createElement)(Et,{borderRadius:i,setAttributes:n})))};var Ot="premium-content/login-button",Ft=Ke("design","common"),Bt={name:Ot,title:(0,b.__)("Premium Content login button","full-site-editing"),description:(0,b.__)("Prompt subscriber visitors to log in with a button-style link (only visible for logged out users).","full-site-editing"),attributes:{text:{type:"string",source:"html",selector:"a",default:(0,b.__)("Log in","full-site-editing")},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},icon:mt,keywords:[(0,b.__)("link","full-site-editing")],supports:{align:!0,alignWide:!1,html:!1,lightBlockWrapper:!0},styles:[{name:"fill",label:(0,b.__)("Fill","full-site-editing"),isDefault:!0},{name:"outline",label:(0,b.__)("Outline","full-site-editing")}],edit:Pt,save:function(e){var t=e.attributes,n=t.borderRadius,r=t.text,i=St(t),o=wt()("wp-block-button__link",i.className,{"no-border-radius":0===n}),s=p()({borderRadius:n?n+"px":void 0},i.style);return(0,F.createElement)("div",{className:"wp-block-button"},(0,F.createElement)(h.RichText.Content,{tagName:"a",className:o,style:s,value:r}))}},Nt=!!h.__experimentalBlock,At=function(e){if(e){var t=e.name,n=e.category,r=e.settings;(0,g.registerBlockType)(t,p()({category:n},r))}},Rt=function(e,t){var n=(0,g.getBlockType)(e);if(n){(0,g.unregisterBlockType)(e);var r=(0,m.mergeWith)({},n,t,(function(e,t){if(Array.isArray(e))return e.concat(t)}));(0,g.registerBlockType)(e,r)}},jt=function(){var e=a()(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",f()({path:"/wpcom/v2/memberships/status"}));case 4:return e.prev=4,e.t0=e.catch(0),e.abrupt("return",null);case 7:case"end":return e.stop()}}),e,null,[[0,4]])})));return function(){return e.apply(this,arguments)}}(),Lt=function(e){!e.should_upgrade_to_access_memberships&&e.connected_account_id||(Rt(ht,{supports:{inserter:!1}}),Rt(Ot,{supports:{inserter:!1}}))},Tt=function(){var e=a()(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jt();case 2:t=e.sent,Lt(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),It=function(){[r,o,i,s,l].forEach(At)};Nt&&(It(),Tt())},49:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){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"],t.log=console.debug||console.log||function(){},e.exports=n(632)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},632:function(e,t,n){var r=n(182);e.exports=function(e){function t(e){var n;function r(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];if(r.enabled){var s=r,l=Number(new Date),c=l-(n||l);s.diff=c,s.prev=n,s.curr=l,n=l,i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var a=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;a++;var r=t.formatters[n];if("function"==typeof r){var o=i[a];e=r.call(s,o),i.splice(a,1),a--}return e})),t.formatArgs.call(s,i);var u=s.log||t.log;u.apply(s,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=t.selectColor(e),r.destroy=i,r.extend=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function o(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(s)),r(t.skips.map(s).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(378),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.instances=[],t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},186:function(e,t,n){"use strict";var r=n(320),i=n(804);t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,o=i.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=o[0];var s=o[1];return o=e.value,e.getCurrentValue===t&&e.subscribe===n||(o=t(),s({getCurrentValue:t,subscribe:n,value:o})),i.useDebugValue(o),i.useEffect((function(){function e(){if(!i){var e=t();s((function(i){return i.getCurrentValue!==t||i.subscribe!==n||i.value===e?i:r({},i,{value:e})}))}}var i=!1,o=n(e);return e(),function(){i=!0,o()}}),[t,n]),o}},718:function(e,t,n){"use strict";e.exports=n(186)},804:function(e){"use strict";e.exports=window.React}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(829)}());
     19function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,o):""+Math.round(i)).split("."))[0].length>3&&(9)}());
  • full-site-editing/trunk/readme.txt

    r2463991 r2464442  
    44Requires at least: 5.5
    55Tested up to: 5.6
    6 Stable tag: 2.14
     6Stable tag: 2.1
    77Requires PHP: 5.6.20
    88License: GPLv2 or later
     
    4040
    4141== Changelog ==
     42
     43
     44
     45
     46
    4247
    4348= 2.14 =
  • full-site-editing/trunk/starter-page-templates/dist/starter-page-templates.asset.php

    r2460738 r2464442  
    1 <?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-url'), 'version' => '57135bae28c1060f4098ffcb44804671');
     1<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-url'), 'version' => '1');
  • full-site-editing/trunk/starter-page-templates/dist/starter-page-templates.js

    r2460738 r2464442  
    1 !function(e,t){for(var r in t)e[r]=t[r];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={270:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},180:function(e){e.exports=function(e){if(Array.isArray(e))return e}},232:function(e,t,r){var n=r(270);e.exports=function(e){if(Array.isArray(e))return n(e)}},111:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},954:function(e){function t(e,t,r,n,o,i,a){try{var l=e[i](a),s=l.value}catch(c){return void r(c)}l.done?t(s):Promise.resolve(s).then(n,o)}e.exports=function(e){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=e.apply(r,n);function l(e){t(a,o,i,l,s,"next",e)}function s(e){t(a,o,i,l,s,"throw",e)}l(void 0)}))}}},85:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},198:function(e){function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}e.exports=function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}},41:function(e,t,r){var n=r(487);e.exports=function(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=n(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return l=e.done,e},e:function(e){s=!0,a=e},f:function(){try{l||null==r.return||r.return()}finally{if(s)throw a}}}}},564:function(e,t,r){var n=r(588),o=r(549),i=r(983);e.exports=function(e){var t=o();return function(){var r,o=n(e);if(t){var a=n(this).constructor;r=Reflect.construct(o,arguments,a)}else r=o.apply(this,arguments);return i(this,r)}}},260:function(e){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},527:function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}e.exports=t},588:function(e){function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(r)}e.exports=t},684:function(e,t,r){var n=r(742);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&&n(e,t)}},549:function(e){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},557:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},981:function(e){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],_n=!0,n=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(_n=(i=a.next()).done)&&(r.push(i.value),!t||r.length!==t);_n=!0);}catch(l){n=!0,o=l}finally{try{_n||null==a.return||a.return()}finally{if(n)throw o}}return r}}},365:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},359:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},417:function(e,t,r){var n=r(260);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}e.exports=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}},220:function(e,t,r){var n=r(834);e.exports=function(e,t){if(null==e)return{};var r,o,i=n(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}},834:function(e){e.exports=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}},983:function(e,t,r){var n=r(921),o=r(111);e.exports=function(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?o(e):t}},742:function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(r,n)}e.exports=t},68:function(e,t,r){var n=r(180),o=r(981),i=r(487),a=r(365);e.exports=function(e,t){return n(e)||o(e,t)||i(e,t)||a()}},182:function(e,t,r){var n=r(232),o=r(557),i=r(487),a=r(359);e.exports=function(e){return n(e)||o(e)||i(e)||a()}},921:function(e){function t(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(r)}e.exports=t},487:function(e,t,r){var n=r(270);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}},779:function(e,t){var r;
     1!function(e,t){for(var ;
    22/*!
    33  Copyright (c) 2017 Jed Watson.
    44  Licensed under the MIT License (MIT), see
    55  http://jedwatson.github.io/classnames
    6 */!function(){"use strict";var n={}.hasOwnProperty;function o(){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 a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var l in r)n.call(r,l)&&r[l]&&e.push(l)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},911:function(e,t,r){"use strict";r.r(t);var n=r(527),o=r.n(n),i=window.wp.element,a=window.wp.plugins,l=window.wp.data,s=r(417),c=r.n(s),u=r(41),p=r.n(u),m=r(85),d=r.n(m),f=r(198),v=r.n(f),g=r(111),y=r.n(g),h=r(684),b=r.n(h),w=r(564),_=r.n(w),k=r(260),T=r.n(k),S=window.lodash,E=r(779),O=r.n(E),P=(window.wp.nux,window.wp.i18n),x=window.wp.compose,B=window.wp.components,j=window.wp.blocks,I=window.wp.hooks,C=function(e){var t=e.id,r=e.value,n=e.onSelect,o=e.title,a=e.description,l=e.theme,s=e.locale,c=e.templatePostID,u=void 0===c?null:c,p=e.isSelected;if((0,S.isNil)(t)||(0,S.isNil)(o)||(0,S.isNil)(r))return null;var m="".concat("https://public-api.wordpress.com/rest/v1/template/demo/").concat(encodeURIComponent(l),"/").concat(encodeURIComponent("dotcompatterns.wordpress.com"),"/?post_id=").concat(encodeURIComponent(u),"&language=").concat(encodeURIComponent(s)),d="blank"===r?null:"https://s0.wordpress.com/mshots/v1/"+encodeURIComponent(m)+"?vpw=1024&vph=1024&w=500&h=500",f="blank"===r?null:(0,i.createElement)("img",{className:"template-selector-item__media",src:d,alt:o,onLoad:function(e){var t=e.target;-1===t.src.indexOf("reload=1")&&setTimeout((function(){t.src=t.src+"&reload=1"}),1e4)}});return(0,i.createElement)("button",{type:"button",className:O()("template-selector-item__label",{"is-selected":p}),value:r,onClick:function(){n(r)},"aria-label":a},(0,i.createElement)("span",{className:"template-selector-item__preview-wrap"},f))},N={Address:(0,P._x)("123 Main St","default address","full-site-editing"),Phone:(0,P._x)("555-555-5555","default phone number","full-site-editing"),CompanyName:(0,P._x)("Your Company Name","default company name","full-site-editing"),Vertical:(0,P._x)("Business","default vertical name","full-site-editing")},D={CompanyName:"title",Address:"address",Phone:"phone",Vertical:"vertical"},A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e?e.replace(/{{(\w+)}}/g,(function(e,r){var n=N[r];return t[D[r]]||n||r})):""},F=(0,x.compose)(i.memo,x.withInstanceId)((function(e){var t=e.label,r=e.legendLabel,n=e.className,o=e.help,a=e.instanceId,l=e.templates,s=void 0===l?[]:l,c=e.blocksByTemplates,u=void 0===c?{}:c,p=e.theme,m=void 0===p?"maywood":p,d=e.locale,f=void 0===d?"en":d,v=e.onTemplateSelect,g=void 0===v?S.noop:v,y=e.siteInformation,h=void 0===y?{}:y,b=e.selectedTemplate;if((0,S.isEmpty)(s)||!(0,S.isArray)(s))return null;var w="template-selector-control-".concat(a);return(0,i.createElement)(B.BaseControl,{label:t,id:w,help:o,className:O()(n,"template-selector-control")},(0,i.createElement)("ul",{className:"template-selector-control__options","data-testid":"template-selector-control-options","aria-label":r},(0,S.map)(s,(function(e){var t=e.ID,n=e.name,a=e.title,l=e.description;return(0,i.createElement)("li",{key:"".concat(t,"-").concat(n,"-").concat(r),className:"template-selector-control__template"},(0,i.createElement)(C,{id:w,value:n,title:A(a,h),description:l,help:o,onSelect:g,templatePostID:t,theme:m,locale:f,blocks:u.hasOwnProperty(n)?u[n]:[],isSelected:n===b}))}))))})),L=r(68),G=r.n(L),M=window.wp.blockEditor,R=window.wp.editor;function U(e){var t=e.blocks,r=e.settings,n=e.hidePageTitle,o=e.recomputeBlockListKey;return(0,i.createElement)(M.BlockEditorProvider,{value:t,settings:r},(0,i.createElement)(B.Disabled,{key:o},!n&&(0,i.createElement)("div",{className:"block-iframe-preview__template-title edit-post-visual-editor__post-title-wrapper"},(0,i.createElement)(R.PostTitle,null)),(0,i.createElement)(M.BlockList,null)))}var W=(0,x.compose)(x.withSafeTimeout,(0,l.withSelect)((function(e){var t=e("core/block-editor");return{settings:t?t.getSettings():{}}})))((function(e){var t,r,n=e.className,o=void 0===n?"block-iframe-preview":n,a=e.bodyClassName,l=void 0===a?"block-iframe-preview-body":a,s=e.viewportWidth,c=e.blocks,u=e.settings,p=e.setTimeout,m=void 0===p?S.noop:p,d=e.title,f=(0,i.useRef)(),v=(0,i.useRef)(),g=(0,i.useState)({transform:"scale( 1 )"}),y=G()(g,2),h=y[0],b=y[1],w=(0,i.useMemo)((function(){return(0,S.castArray)(c)}),[c]),_=(0,i.useReducer)((function(e){return e+1}),0),k=G()(_,2),T=k[0],E=k[1];(0,i.useLayoutEffect)(E,[c]);var x=(0,i.useCallback)((function(){var e=(0,S.get)(f,["current","parentNode"]);if(e){var t=s||f.current.offsetWidth,r=e.offsetWidth/s,n=e.offsetHeight/r;b({width:t,height:n,transform:"scale( ".concat(r," )")})}}),[s]);return(0,i.useEffect)((function(){if(d){var e=(0,S.get)(v,["current","contentDocument","body"]);if(e){var t=e.querySelector(".editor-post-title .editor-post-title__input");t&&(t.value=d)}}}),[T]),(0,i.useEffect)((function(){m((function(){var e,t,r,n;e=window.document,t=v.current.contentDocument,r=["link","style"],n={head:document.createDocumentFragment(),body:document.createDocumentFragment()},(0,S.each)(Object.keys(n),(function(t){return(0,S.each)((0,S.filter)(e[t].children,(function(e){var t=e.localName;return r.includes(t)})),(function(e){n[t].appendChild(e.cloneNode(!0))}))})),t.head.appendChild(n.head),t.body.appendChild(n.body),v.current.contentDocument.body.classList.add(l,"editor-styles-wrapper","block-editor__container"),v.current.contentDocument.head.innerHTML+="<style>.editor-post-title .editor-post-title__input { height: auto !important; }</style>",v.current.contentDocument.head.innerHTML+="<style>a, button, .wp-block-button, .wp-block-button__link { pointer-events: none; cursor: default; }</style>",x()}),0)}),[m,l,x]),(0,i.useEffect)((function(){var e=(0,S.get)(v,["current","contentDocument","body"]);e&&(e.scrollTop=0)}),[T]),(0,i.useEffect)((function(){var e=(0,S.debounce)(x,300);return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[x]),(0,i.useEffect)((function(){return window.jQuery&&window.jQuery(window.document).on("wp-collapse-menu",x),function(){window.jQuery&&window.jQuery(window.document).off("wp-collapse-menu",x)}}),[x]),(0,i.createElement)("div",{ref:f},(0,i.createElement)("iframe",{ref:v,title:(0,P.__)("Preview","full-site-editing"),className:O()("editor-styles-wrapper",o),style:h,tabIndex:-1},(null===(t=v.current)||void 0===t||null===(r=t.contentDocument)||void 0===r?void 0:r.body)&&(0,i.createPortal)((0,i.createElement)("div",{className:"block-editor"},(0,i.createElement)("div",{className:"edit-post-visual-editor"},(0,i.createElement)("div",{className:"editor-styles-wrapper"},(0,i.createElement)("div",{className:"editor-writing-flow"},(0,i.createElement)(U,{blocks:w,settings:u,hidePageTitle:!d,recomputeBlockListKey:T}))))),v.current.contentDocument.body)))})),q=function(e){var t=e.blocks,r=void 0===t?[]:t,n=e.viewportWidth,o=e.title,a=!r.length;return(0,i.createElement)("div",{className:"template-selector-preview ".concat(a?"not-selected":"")},a&&(0,i.createElement)("div",{className:"editor-styles-wrapper"},(0,i.createElement)("div",{className:"template-selector-preview__empty-state"},(0,P.__)("Select a layout to preview.","full-site-editing"))),(0,i.createElement)(W,{blocks:r,viewportWidth:n,title:o}))};window._tkq=window._tkq||[];var V=null,z=function(){V&&window._tkq.push(["recordEvent","a8c_full_site_editing_template_selector_dismiss",{blog_id:V.blogid}])},Q=function(e){V&&window._tkq.push(["recordEvent","a8c_full_site_editing_template_selector_template_selected",{blog_id:V.blogid,template:e}])},H=r(954),K=r.n(H),Y=r(182),$=r.n(Y),J=window.wp.apiFetch,X=r.n(J),Z=window.wp.url,ee=function(e,t,r){var n=e[t=(0,Z.removeQueryArgs)(t,"w","s")]||{url:t,usages:[]};return c()(c()({},e),{},T()({},t,c()(c()({},n),{},{usages:[].concat($()(n.usages),$()(r))})))},te=function e(t,r){switch(t.blocksByClientId[r.clientId]=r,r.name){case"core/cover":case"core/image":var n=r.attributes.url;n&&(t.assets=ee(t.assets,n,[{prop:"url",path:[r.clientId,"attributes","url"]},{prop:"id",path:[r.clientId,"attributes","id"]}]));case"core/media-text":var o=r.attributes.mediaUrl;o&&"image"===r.attributes.mediaType&&(t.assets=ee(t.assets,o,[{prop:"url",path:[r.clientId,"attributes","mediaUrl"]},{prop:"id",path:[r.clientId,"attributes","mediaId"]}]));case"core/gallery":(0,S.forEach)(r.attributes.images,(function(e,n){t.assets=ee(t.assets,e.url,[{prop:"url",path:[r.clientId,"attributes","images",n,"url"]},{prop:"url",path:[r.clientId,"attributes","images",n,"link"]},{prop:"id",path:[r.clientId,"attributes","images",n,"id"]},{prop:"id",path:[r.clientId,"attributes","ids",n]}])}))}return(0,S.isEmpty)(r.innerBlocks)?t:(0,S.reduce)(r.innerBlocks,e,t)},re=function(){var e=K()(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,X()({method:"POST",path:"/fse/v1/sideload/image/batch",data:{resources:(0,S.map)(t)}}).then((function(e){return(0,S.reduce)(t,(function(t,r){var n=e.shift(),o=n.id,i=n.source_url;return c()(c()({},t),{},T()({},r.url,{id:o,url:i}))}),{})}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(_x){return e.apply(this,arguments)}}(),ne=function(e,t){return(0,S.forEach)(e.assets,(function(r){var n=t[r.url];n&&(0,S.forEach)(r.usages,(function(t){(0,S.set)(e.blocksByClientId,t.path,n[t.prop])}))})),e.blocks},oe=function(){var e=K()(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(0,S.reduce)(t,te,{assets:{},blocksByClientId:{},blocks:t}),!(0,S.isEmpty)(r.assets)){e.next=3;break}return e.abrupt("return",t);case 3:return e.abrupt("return",re(r.assets).then((function(e){return ne(r,e)})));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();var ie=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S.identity;return t.map((function(t){return(t=r((0,j.cloneBlock)(t))).innerBlocks&&t.innerBlocks.length&&(t.innerBlocks=e(t.innerBlocks,r)),t}))};var ae=function e(t){return!!t.find((function(t){return"core/missing"===t.name||!(!t.innerBlocks||!t.innerBlocks.length)&&e(t.innerBlocks)}))},le="isInsertingPageTemplate",se="automattic/full-site-editing/inserting-template",ce=function(e){b()(r,e);var t=_()(r);function r(){var e;d()(this,r);for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),T()(y()(e),"state",{isLoading:!1,previewedTemplate:null,error:null}),T()(y()(e),"getTitlesByTemplateSlugs",(0,S.memoize)((function(e){return(0,S.mapValues)((0,S.keyBy)(e,"name"),"title")}))),T()(y()(e),"getBlocksByTemplateSlugs",(0,S.memoize)((function(t){var r=(0,S.reduce)(t,(function(t,r){var n=r.name,o=r.html;return t[n]=o?(0,j.parse)(A(o,e.props.siteInformation)):[],t}),{});return e.filterTemplatesWithMissingBlocks(r)}))),T()(y()(e),"getBlocksForPreview",(0,S.memoize)((function(t){var r=e.getBlocksByTemplateSlug(t);return ie(r,(function(e){return"jetpack/contact-form"===e.name&&void 0!==e.attributes.hasFormSettingsSet&&(e.attributes.hasFormSettingsSet=!0),e}))}))),T()(y()(e),"getBlocksForSelection",(function(t){var r=e.getBlocksByTemplateSlug(t);return ie(r,(function(e){return"core/button"===e.name&&void 0!==e.attributes.url&&(e.attributes.url="#"),e}))})),T()(y()(e),"setTemplate",(function(t){if(Q(t),e.props.saveTemplateChoice(t),"current"!==t){if("blank"===t)return e.props.insertTemplate("",[]),void e.props.setOpenState(!1);var r=(0,S.find)(e.props.templates,{name:t,category:"home"}),n=e.getBlocksForSelection(t),o=r?null:e.getTitleByTemplateSlug(t);n&&n.length?(e.setState({error:null,isLoading:!0}),e.maybePrefetchAssets(n).then((function(t){e.setState({isLoading:!1}),e.props.isOpen&&(e.props.insertTemplate(o,t),e.props.setOpenState(!1))})).catch((function(t){e.setState({isLoading:!1,error:t})}))):e.props.setOpenState(!1)}else e.props.setOpenState(!1)})),T()(y()(e),"maybePrefetchAssets",(function(t){return e.props.shouldPrefetchAssets?oe(t):Promise.resolve(t)})),T()(y()(e),"handleConfirmation",(function(t){"string"!=typeof t&&(t=e.state.previewedTemplate),e.setTemplate(t)})),T()(y()(e),"previewTemplate",(function(t){e.setState({previewedTemplate:t}),window.matchMedia("(min-width: 660px)").matches||e.handleConfirmation(t)})),T()(y()(e),"closeModal",(function(e){if(e.target.matches("button.template-selector-item__label"))return!1;z();var t=(0,S.get)(window,["calypsoifyGutenberg","closeUrl"]);window.top.location=t||"edit.php?post_type=page"})),T()(y()(e),"getTemplateGroups",(function(){if(!e.props.templates.length)return null;var t,r={},n=p()(e.props.templates);try{for(n.s();!(t=n.n()).done;){var o=t.value;for(var i in o.categories)i in r||(r[i]=o.categories[i])}}catch(a){n.e(a)}finally{n.f()}return e.sortGroupsNames(r)})),T()(y()(e),"sortGroupsNames",(function(e){return Object.keys(e).sort().reduce((function(t,r){return t[r]=e[r],t}),{})})),T()(y()(e),"getTemplatesForGroup",(function(t){if(!e.props.templates.length)return null;if("blank"===t)return[{name:"blank",title:"Blank",html:""}];if("current"===t&&""!==e.props._starter_page_template){var r,n=p()(e.props.templates);try{for(n.s();!(r=n.n()).done;){var o=r.value;if(e.props._starter_page_template===o.name)return[o]}}catch(u){n.e(u)}finally{n.f()}}var i,a=[],l=p()(e.props.templates);try{for(l.s();!(i=l.n()).done;){var s=i.value;for(var c in s.categories)c===t&&a.push(s)}}catch(u){l.e(u)}finally{l.f()}return a})),T()(y()(e),"renderTemplateGroups",(function(){var t=e.getTemplateGroups(),r=e.props.isFrontPage?(0,S.omit)(t,"home-page"):t;if(!r)return null;var n="blank"!==e.props._starter_page_template?e.renderTemplateGroup("current",(0,P.__)("Current","full-site-editing")):null,o=e.renderTemplateGroup("blank",(0,P.__)("Blank","full-site-editing")),a=e.props.isFrontPage?e.renderTemplateGroup("home-page",(0,P.__)("Home Page","full-site-editing")):null,l=[];for(var s in r)l.push(e.renderTemplateGroup(s,r[s].title));return(0,i.createElement)(i.Fragment,null,n,o,a,l)})),T()(y()(e),"renderTemplateGroup",(function(t,r){var n=e.getTemplatesForGroup(t);return n.length?e.renderTemplatesList(n,t,r):null})),T()(y()(e),"renderTemplatesList",(function(t,r,n){var o,a;if(!t.length)return null;var l,s="current"===(null===(o=t[0])||void 0===o?void 0:o.name),c=s?{current:e.props.currentBlocks}:e.getBlocksByTemplateSlugs(e.props.templates),u=Object.keys(c),p=(l=u,t.filter((function(e){return l.includes(e.name)})));return p.length&&(!s||null!==(a=c.current)&&void 0!==a&&a.length)?(0,i.createElement)("fieldset",{className:"page-template-modal__list"},(0,i.createElement)("legend",{className:"page-template-modal__form-title"},n),(0,i.createElement)(F,{label:(0,P.__)("Layout","full-site-editing"),legendLabel:n,templates:p,blocksByTemplates:c,onTemplateSelect:e.previewTemplate,theme:e.props.theme,locale:e.props.locale,siteInformation:e.props.siteInformation,selectedTemplate:e.state.previewedTemplate})):null})),e}return v()(r,[{key:"filterTemplatesWithMissingBlocks",value:function(e){return(0,S.reduce)(e,(function(e,t,r){return ae(t)&&t.length||(e[r]=t),e}),{})}},{key:"componentDidMount",value:function(){this.props.isOpen&&this.trackCurrentView()}},{key:"componentDidUpdate",value:function(e){!e.isOpen&&this.props.isOpen&&this.trackCurrentView(),(this.props.isWelcomeGuideActive||this.props.areTipsEnabled)&&this.props.hideWelcomeGuide()}},{key:"trackCurrentView",value:function(){var e;e="add-page",V&&window._tkq.push(["recordEvent","a8c_full_site_editing_template_selector_view",{blog_id:V.blogid,source:e}])}},{key:"getBlocksByTemplateSlug",value:function(e){return"current"===e?this.props.currentBlocks:(0,S.get)(this.getBlocksByTemplateSlugs(this.props.templates),[e],[])}},{key:"getTitleByTemplateSlug",value:function(e){return(0,S.get)(this.getTitlesByTemplateSlugs(this.props.templates),[e],"")}},{key:"render",value:function(){var e=this.state,t=e.previewedTemplate,r=e.isLoading,n=this.props,o=n.hidePageTitle,a=n.isOpen,l=n.currentBlocks;if(!a)return null;var s=this.getBlocksForPreview.cache.get("current");return s&&l&&s.length!==l.length&&this.getBlocksForPreview.cache.delete("current"),(0,i.createElement)(B.Modal,{title:(0,P.__)("Select Page Layout","full-site-editing"),className:"page-template-modal",overlayClassName:"page-template-modal-screen-overlay",shouldCloseOnClickOutside:!1,isDismissable:!1,isDismissible:!1},(0,i.createElement)(B.IconButton,{className:"page-template-modal__close-button components-icon-button",onClick:this.closeModal,icon:"arrow-left-alt2",label:(0,P.__)("Go back","full-site-editing")}),(0,i.createElement)("div",{className:"page-template-modal__inner"},r?(0,i.createElement)("div",{className:"page-template-modal__loading"},(0,i.createElement)(B.Spinner,null),(0,P.__)("Adding layout…","full-site-editing")):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("form",{className:"page-template-modal__form"},this.renderTemplateGroups()),(0,i.createElement)(q,{blocks:this.getBlocksForPreview(t),viewportWidth:1200,title:o||"current"!==t?this.getTitleByTemplateSlug(t):this.props.currentPostTitle}))),(0,i.createElement)("div",{className:O()("page-template-modal__buttons",{"is-visually-hidden":(0,S.isEmpty)(t)||r})},(0,i.createElement)(B.Button,{isPrimary:!0,disabled:(0,S.isEmpty)(t)||r,onClick:this.handleConfirmation},(0,P.sprintf)((0,P.__)("Use %s layout","full-site-editing"),this.getTitleByTemplateSlug(t)))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return t.previewedTemplate||(0,S.isEmpty)(e.templates)?null:{previewedTemplate:r.getDefaultSelectedTemplate(e)}}}]),r}(i.Component);T()(ce,"getDefaultSelectedTemplate",(function(e){var t=(0,S.get)(e.templates,[0,"name"]),r=e._starter_page_template;return e.isFrontPage||r?"current":t}));var ue=(0,x.compose)((0,l.withSelect)((function(e){var t=function(){return e("core/editor").getEditedPostAttribute("meta")},r=t()._starter_page_template,n=e("automattic/starter-page-layouts").isOpen,o=e("core/editor").getBlocks();return{isOpen:n(),getMeta:t,_starter_page_template:r,currentBlocks:o,currentPostTitle:e("core/editor").getCurrentPost().title,postContentBlock:o.find((function(e){return"a8c/post-content"===e.name})),isWelcomeGuideActive:e("core/edit-post").isFeatureActive("welcomeGuide"),areTipsEnabled:!!e("core/nux")&&e("core/nux").areTipsEnabled()}})),(0,l.withDispatch)((function(e,t){var r=e("core/editor");return{setOpenState:e("automattic/starter-page-layouts").setOpenState,saveTemplateChoice:function(e){var n=t.getMeta();r.editPost({meta:c()(c()({},n),{},{_starter_page_template:e})})},insertTemplate:function(n,o){(0,I.addFilter)(le,se,S.stubTrue),n&&r.editPost({title:n});var i=t.postContentBlock;e("core/block-editor").replaceInnerBlocks(i?i.clientId:"",o,!1),(0,I.removeFilter)(le,se)},hideWelcomeGuide:function(){t.isWelcomeGuideActive?e("core/edit-post").toggleFeature("welcomeGuide"):t.areTipsEnabled&&e("core/nux").disableTips()}}})))(ce),pe=r(220),me=r.n(pe);(0,l.registerStore)("automattic/starter-page-layouts",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"CLOSED",t=arguments.length>1?arguments[1]:void 0,r=t.type,n=me()(t,["type"]);return"SET_IS_OPEN"===r?n.openState:e},actions:{setOpenState:function(e){return{type:"SET_IS_OPEN",openState:e||"CLOSED"}}},selectors:{isOpen:function(e){return"CLOSED"!==e}}});var de,fe=window.starterPageTemplatesConfig,ve=fe.templates,ge=void 0===ve?[]:ve,ye=fe.vertical,he=fe.segment,be=fe.tracksUserData,we=fe.screenAction,_e=fe.theme,ke=fe.isFrontPage,Te=fe.locale,Se=fe.hideFrontPageTitle;be&&(V=de=be,window._tkq.push(["identifyUser",de.userid,de.username]));var Ee={segment:he,templates:ge,theme:_e,vertical:ye,isFrontPage:ke,locale:Te,hidePageTitle:Boolean(ke&&Se)};"add"===we&&(0,l.dispatch)("automattic/starter-page-layouts").setOpenState("OPEN_FROM_ADD_PAGE"),(0,a.registerPlugin)("page-templates",{render:function(){return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(ue,o()({},Ee,{shouldPrefetchAssets:!1})))}})}},t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}return r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(911)}());
     6*/!function(){"use strict";var )}());
  • full-site-editing/trunk/wpcom-block-editor-nav-sidebar/dist/wpcom-block-editor-nav-sidebar.asset.php

    r2463392 r2464442  
    1 <?php return array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '162e134893ba55ed046083caeb3bcba6');
     1<?php return array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '');
  • full-site-editing/trunk/wpcom-block-editor-nav-sidebar/dist/wpcom-block-editor-nav-sidebar.js

    r2463392 r2464442  
    1 !function(e,t){for(var n in t)e[n]=t[n];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={270:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},180:function(e){e.exports=function(e){if(Array.isArray(e))return e}},232:function(e,t,n){var r=n(270);e.exports=function(e){if(Array.isArray(e))return r(e)}},260:function(e){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}},527:function(e){function t(){return e.exports=t=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},t.apply(this,arguments)}e.exports=t},557:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},981:function(e){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],_n=!0,r=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(_n=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(a){r=!0,i=a}finally{try{_n||null==s.return||s.return()}finally{if(r)throw i}}return n}}},365:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},359:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},417:function(e,t,n){var r=n(260);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},220:function(e,t,n){var r=n(834);e.exports=function(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},834:function(e){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}},68:function(e,t,n){var r=n(180),i=n(981),o=n(487),s=n(365);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||s()}},182:function(e,t,n){var r=n(232),i=n(557),o=n(487),s=n(359);e.exports=function(e){return r(e)||i(e)||o(e)||s()}},487:function(e,t,n){var r=n(270);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},779:function(e,t){var n;
     1!function(e,t){for(var n in t)e[n]=t[n];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={779:function(e,t){var n;
    22/*!
    33  Copyright (c) 2017 Jed Watson.
    44  Licensed under the MIT License (MIT), see
    55  http://jedwatson.github.io/classnames
    6 */!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var s=i.apply(null,n);s&&e.push(s)}else if("object"===o)for(var a in n)r.call(n,a)&&n[a]&&e.push(a)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},421:function(e,t){"use strict";var n=decodeURIComponent,r=encodeURIComponent,i=/; */,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(n){return e}}},699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(){void 0!==o&&e.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==t&&(o=function(n){e.removeListener(t,i),r(n)},e.once("error",o)),e.once(t,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var i,o,s,u;if(a(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=c(e))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]: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}(i):h(i,i.length)}function p(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 h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.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},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(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},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var u=c.length,l=h(c,u);for(n=0;n<u;++n)r(l[n],this,t)}return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(a(t),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(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.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 i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);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},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},495:function(e,t,n){"use strict";var r=n(212),i=n(561);function o(){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=o,o.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 i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.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 i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},32:function(e,t,n){"use strict";var r=n(212),i=n(495),o=n(713),s=n(561),a=r.sum32,c=r.sum32_4,u=r.sum32_5,l=o.ch32,d=o.maj32,f=o.s0_256,p=o.s1_256,h=o.g0_256,v=o.g1_256,m=i.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}r.inherits(b,m),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.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]=c(v(n[r-2]),n[r-7],h(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],m=this.h[2],g=this.h[3],b=this.h[4],y=this.h[5],_=this.h[6],w=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var C=u(w,p(b),l(b,y,_),this.k[r],n[r]),E=a(f(i),d(i,o,m));w=_,_=y,y=b,b=a(g,C),g=m,m=o,o=i,i=a(C,E)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],m),this.h[3]=a(this.h[3],g),this.h[4]=a(this.h[4],b),this.h[5]=a(this.h[5],y),this.h[6]=a(this.h[6],_),this.h[7]=a(this.h[7],w)},b.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(e,t,n){"use strict";var r=n(212).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?s(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=s,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}},212:function(e,t,n){"use strict";var r=n(561),i=n(285);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function c(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=i,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),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):o(e,i)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=s(i)),n+=c(i.toString(16))}return n},t.zero2=a,t.zero8=c,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var s=new Array(o/4),a=0,c=t;a<s.length;a++,c+=4){var u;u="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],s[a]=u>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}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,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,s=(o<r?1:0)+n+i;e[t]=s>>>0,e[t+1]=o},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,i,o,s,a){var c=0,u=t;return c+=(u=u+r>>>0)<t?1:0,c+=(u=u+o>>>0)<o?1:0,e+n+i+s+(c+=(u=u+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,s,a){return t+r+o+a>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,s,a,c,u){var l=0,d=t;return l+=(d=d+r>>>0)<t?1:0,l+=(d=d+o>>>0)<o?1:0,l+=(d=d+a>>>0)<a?1:0,e+n+i+s+c+(l+=(d=d+u>>>0)<u?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,s,a,c,u){return t+r+o+a+u>>>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}},285:function(e){"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}}},561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},378:function(e){var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i,s=365.25*i;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,c){c=c||{};var u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^(-?(?:\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(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===u&&isFinite(e))return c.long?function(e){var o=Math.abs(e);if(o>=i)return a(e,o,i,"day");if(o>=r)return a(e,o,r,"hour");if(o>=n)return a(e,o,n,"minute");if(o>=t)return a(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},620:function(e,t,n){"use strict";n.r(t);var r=n(68),i=n.n(r),o=window.wp.element,s=window.wp.data,a=window.wp.editPost,c=window.wp.plugins,u=n(260),l=n.n(u),d=n(417),f=n.n(d),p=n(182),h=n.n(p),v=n(527),m=n.n(v),g=n(220),b=n.n(g),y=window.wp.htmlEntities,_=n(49),w=n.n(_),C=w()("calypso:analytics");n(32);"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}));var E=window.lodash,k=(n(421),n(699)),F=w()("lib/load-script/callback-handler"),S=new Map;function x(){return S}function O(e){return x().has(e)}function L(e,t){var n=x();O(e)?(F('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(F('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=x(),r=n.get(e);if(r){var i='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));F(i),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function j(){var e=this.getAttribute("src");F('Handling successful request for "'.concat(e,'"')),A(e),this.onload=null}function P(){var e=this.getAttribute("src");F('Handling failed request for "'.concat(e,'"')),A(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}var N=w()("lib/load-script/dom-operations");w()("package/load-script");function T(e,t){var n;if(!O(e)&&(n=function(e){N('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=j,t.onerror=P,t}(e),N("Attaching element to head"),document.head.appendChild(n)),"function"!=typeof t)return new Promise((function(t,n){L(e,(function(e){null===e?t():n(e)}))}));L(e,t)}var M,B=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];Promise.resolve();function R(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&T("//stats.wp.com/w2.js?1");var I=new k.EventEmitter;function z(e,t){if(C('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||(0,E.includes)(B,e)){if(M){var n=M(t);t=f()(f()({},t),n)}t=(0,E.omitBy)(t,E.isUndefined),C('Recording event "%s" with actual props %o',e,t),R(["recordEvent",e,t]),I.emit("record-event",e,t)}else C('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}var D,U=window.wp.components,W=window.wp.primitives,G=(0,o.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,o.createElement)(W.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})),H=(0,o.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(W.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),$=window.wp.i18n,q=window.wp.hooks,V=window.wp.url,J=n(779),K=n.n(J),Q=window.wp.keycodes,Z=window.wp.compose,X="automattic/block-editor-nav-sidebar",Y=((null===(D=window.wpcomBlockEditorNavSidebar)||void 0===D?void 0:D.postIdsToExclude)||[]).map((function(e){return parseInt(e,10)})).filter((function(e){return!isNaN(e)})),ee=(0,o.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(W.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"})),te=function(e){var t=e.children,n=b()(e,["children"]);return(0,o.createElement)(U.Button,n,t)};function ne(e){var t=e.postType,n=(0,E.get)(t,["labels","add_new_item"],(0,$.__)("Create","full-site-editing")),r=(0,q.applyFilters)("a8c.WpcomBlockEditorNavSidebar.createPostLabel",n,t.slug),i=(0,V.addQueryArgs)("post-new.php",{post_type:t.slug}),s=(0,q.applyFilters)("a8c.WpcomBlockEditorNavSidebar.createPostUrl",i,t.slug);return(0,o.createElement)(te,{target:(0,q.applyFilters)("a8c.WpcomBlockEditorNavSidebar.linkTarget",void 0),isPrimary:!0,className:"wpcom-block-editor-nav-sidebar-create-page",href:s,icon:ee,onClick:function(){z("calypso_editor_sidebar_item_add",{post_type:t.slug})}},r)}var re=(0,o.forwardRef)((function(e,t){var n,r,i,s=e.item,a=e.postType,c=e.selected,u=e.statusLabel,l=K()("wpcom-block-editor-nav-item",{"is-selected":c}),d=K()("wpcom-block-editor-nav-item__title",{"is-untitled":!(null!==(n=s.title)&&void 0!==n&&n.raw)}),f=(0,V.addQueryArgs)("post.php",{post:s.id,action:"edit"}),p=(0,q.applyFilters)("a8c.WpcomBlockEditorNavSidebar.editPostUrl",f,s.id,a.slug);return(0,o.createElement)("li",{ref:t},(0,o.createElement)(U.Button,{className:l,href:p,onClick:function(){z("calypso_editor_sidebar_item_edit",{post_type:a.slug})},target:(0,q.applyFilters)("a8c.WpcomBlockEditorNavSidebar.linkTarget",void 0)},(0,o.createElement)("div",{className:d,title:null===(r=s.title)||void 0===r?void 0:r.raw},(null===(i=s.title)||void 0===i?void 0:i.raw)||(0,$._x)("Untitled","post title for posts with no title","full-site-editing")),u&&(0,o.createElement)("div",{className:"wpcom-block-editor-nav-item__label"},u)))})),ie=(0,o.forwardRef)((function(e,t){var n=e.children,r=b()(e,["children"]);return(0,o.createElement)(U.Button,m()({ref:t},r),n)}));var oe=(0,Z.compose)([U.withConstrainedTabbing])((function(){var e,t,n,r=(0,s.useDispatch)(X),a=r.toggleSidebar,c=r.setSidebarClosing,u=(0,s.useSelect)((function(e){var t,n=e("core"),r=n.getPostType,i=n.getSite;return[e(X).isSidebarOpened(),e(X).isSidebarClosing(),r(e("core/editor").getCurrentPostType()),e("core/editor").getCurrentPostId(),null===(t=i())||void 0===t?void 0:t.title]})),d=i()(u,5),p=d[0],v=d[1],m=d[2],g=d[3],b=d[4],_=(0,s.useSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId,o=t.getCurrentPostType,s=t.getEditedPostAttribute,a=e("core").getEntityRecords("root","status");if(!a)return[];var c=a.filter((function(e){return e.show_in_list})).map((function(e){return e.slug})).join(","),u=r(),l=o(),d=e("core").getEntityRecords("postType",l,{_fields:"id,status,title",exclude:[u].concat(h()(Y)),orderby:"modified",per_page:10,status:c})||[],f={id:u,status:n()?"draft":s("status"),title:{raw:s("title"),rendered:""}},p=(0,E.partition)(d,{status:"draft"}),v=i()(p,2);return{current:[f],drafts:v[0],recent:v[1]}})),w=_.current,C=_.drafts,k=_.recent,F=(0,s.useSelect)((function(e){return(e("core").getEntityRecords("root","status")||[]).reduce((function(e,t){var n=t.name,r=t.slug;return"publish"===r?e:f()(f()({},e),{},l()({},r,n))}),{})})),S=(0,o.useRef)(p);(0,o.useLayoutEffect)((function(){!p&&S.current&&c(!0),S.current=p}),[p,S,c]);var x=(0,o.useRef)(null);if((0,o.useEffect)((function(){p||v||!x.current||(x.current.focus(),x.current=null)}),[p,v,x]),!m)return null;if(!p&&!v)return null;var O=(0,V.addQueryArgs)("edit.php",{post_type:m.slug}),L=(0,q.applyFilters)("a8c.WpcomBlockEditorNavSidebar.closeUrl",O),A=(0,E.get)(m,["labels","all_items"],(0,$.__)("Back","full-site-editing")),j=(0,q.applyFilters)("a8c.WpcomBlockEditorNavSidebar.closeLabel",A),P=(0,E.get)(m,["labels","name"]),N=(0,q.applyFilters)("a8c.WpcomBlockEditorNavSidebar.listHeading",P,m.slug),T="page"===m.slug?(0,$.__)("Contains links to your dashboard or to edit other pages on your site. Press the Escape key to close.","full-site-editing"):(0,$.__)("Contains links to your dashboard or to edit other posts on your site. Press the Escape key to close.","full-site-editing"),M=function(){p&&!v&&(z("calypso_editor_sidebar_dismiss"),a())};return(0,o.createElement)(U.IsolatedEventContainer,{className:K()("wpcom-block-editor-nav-sidebar-nav-sidebar__click-guard",{"is-fading-out":v}),onAnimationEnd:function(e){"wpcom-block-editor-nav-sidebar-nav-sidebar__fade"===e.animationName&&v&&c(!1)},onClick:function(e){e.currentTarget===e.target&&M()},onKeyDown:function(e){e.keyCode===Q.ESCAPE&&(e.stopPropagation(),M())}},(0,o.createElement)("div",{"aria-label":(0,$.__)("Block editor sidebar","full-site-editing"),"aria-description":T,className:K()("wpcom-block-editor-nav-sidebar-nav-sidebar__container",{"is-sliding-left":v}),role:"dialog",tabIndex:-1},(0,o.createElement)("div",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__header"},(0,o.createElement)(ie,{label:(0,$.__)("Close block editor sidebar","full-site-editing"),showTooltip:!0,ref:function(e){e&&(x.current=document.activeElement,e.focus())},className:K()("edit-post-fullscreen-mode-close","wpcom-block-editor-nav-sidebar-nav-sidebar__dismiss-sidebar-button"),icon:G,iconSize:36,onClick:M}),(0,o.createElement)("div",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__site-title"},(0,o.createElement)("h2",null,(0,y.decodeEntities)(b)))),(0,o.createElement)(ie,{"aria-description":(0,$.__)("Returns to the dashboard","full-site-editing"),href:L,className:"wpcom-block-editor-nav-sidebar-nav-sidebar__home-button",icon:H,onClick:function(e){(0,q.hasAction)("a8c.wpcom-block-editor.closeEditor")&&(e.preventDefault(),z("calypso_editor_sidebar_editor_close"),(0,q.doAction)("a8c.wpcom-block-editor.closeEditor"))}},j),(0,o.createElement)("h2",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__list-heading"},N),(0,o.createElement)("h3",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__list-subheading"},(0,$.__)("Currently editing","full-site-editing")),!(0,E.isEmpty)(w)&&(0,o.createElement)("ul",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__page-list"},(0,o.createElement)(re,{key:null===(e=w[0])||void 0===e?void 0:e.id,item:w[0],postType:m,selected:(null===(t=w[0])||void 0===t?void 0:t.id)===g,statusLabel:F[null===(n=w[0])||void 0===n?void 0:n.status]})),(0,o.createElement)("div",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__post-scroll-area"},!(0,E.isEmpty)(k)&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("h3",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__list-subheading"},(0,$.__)("Recently edited","full-site-editing")),(0,o.createElement)("ul",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__page-list"},k.map((function(e){return(0,o.createElement)(re,{key:e.id,item:e,postType:m,selected:e.id===g,statusLabel:F[e.status]})})))),!(0,E.isEmpty)(C)&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("h3",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__list-subheading"},(0,$.__)("Drafts","full-site-editing")),(0,o.createElement)("ul",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__page-list"},C.map((function(e){return(0,o.createElement)(re,{key:e.id,item:e,postType:m,selected:e.id===g})}))))),(0,o.createElement)("div",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__bottom-buttons"},(0,o.createElement)(ne,{postType:m}))))}));var se=function(e){var t=e.children,n=b()(e,["children"]);return(0,o.createElement)(U.Button,n,t)};function ae(){var e=(0,s.useDispatch)(X).toggleSidebar,t=(0,s.useSelect)((function(e){return e(X).isSidebarOpened()})),n=(0,s.useSelect)((function(e){return e(X).isSidebarClosing()}));return(0,o.createElement)(se,{label:(0,$.__)("Block editor sidebar","full-site-editing"),showTooltip:!0,className:K()("edit-post-fullscreen-mode-close","wpcom-block-editor-nav-sidebar-toggle-sidebar-button__button",{"is-hidden":t||n}),icon:G,iconSize:36,onClick:function(){z("calypso_editor_sidebar_open"),e()},"aria-haspopup":"dialog","aria-expanded":t})}var ce,ue;void 0!==a.__experimentalMainDashboardButton&&(ce="a8c-full-site-editing-nav-sidebar",ue={render:function(){var e=(0,s.useDispatch)("core").addEntities;(0,o.useEffect)((function(){e([{baseURL:"/wp/v2/statuses",key:"slug",kind:"root",name:"status",plural:"statuses"}])}),[]);var t=(0,o.useState)((function(){return document.createElement("div")})),n=i()(t,1)[0];(0,o.useEffect)((function(){return document.body.appendChild(n),function(){document.body.removeChild(n)}}));var r=(0,s.useSelect)((function(e){return!!e("core/edit-site")})),c=(0,s.useSelect)((function(e){return e("core/edit-post").isFeatureActive("fullscreenMode")}));return r||!c?null:(0,o.createElement)(a.__experimentalMainDashboardButton,null,(0,o.createElement)(ae,null),(0,o.createPortal)((0,o.createElement)(oe,null),n))}},(0,c.registerPlugin)(ce,ue));var le={toggleSidebar:function(){return{type:"TOGGLE_SIDEBAR"}},setSidebarClosing:function(e){return{type:"SET_SIDEBAR_CLOSING",isClosing:e}}},de=(0,s.combineReducers)({opened:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_SIDEBAR":return!e;default:return e}},closing: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_SIDEBAR_CLOSING":return t.isClosing;default:return e}}});(0,s.registerStore)(X,{actions:le,reducer:de,selectors:{isSidebarOpened:function(e){return e.opened},isSidebarClosing:function(e){return e.closing}}})},49:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){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"],t.log=console.debug||console.log||function(){},e.exports=n(632)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},632:function(e,t,n){var r=n(182);e.exports=function(e){function t(e){var n;function r(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];if(r.enabled){var s=r,a=Number(new Date),c=a-(n||a);s.diff=c,s.prev=n,s.curr=a,n=a,i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var u=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;u++;var r=t.formatters[n];if("function"==typeof r){var o=i[u];e=r.call(s,o),i.splice(u,1),u--}return e})),t.formatArgs.call(s,i);var l=s.log||t.log;l.apply(s,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=t.selectColor(e),r.destroy=i,r.extend=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function o(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(s)),r(t.skips.map(s).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(378),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.instances=[],t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(620)}());
     6*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var s=i.apply(null,n);s&&e.push(s)}else if("object"===o)for(var a in n)r.call(n,a)&&n[a]&&e.push(a)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},)}());
  • full-site-editing/trunk/wpcom-block-editor-nux/dist/wpcom-block-editor-nux.asset.php

    r2463392 r2464442  
    1 <?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-url'), 'version' => '2a2e8d2520f646369c6c1b126af017ed');
     1<?php return array('dependencies' => array('');
  • full-site-editing/trunk/wpcom-block-editor-nux/dist/wpcom-block-editor-nux.js

    r2463392 r2464442  
    1 !function(e,t){for(var n in t)e[n]=t[n];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={270:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},180:function(e){e.exports=function(e){if(Array.isArray(e))return e}},232:function(e,t,n){var r=n(270);e.exports=function(e){if(Array.isArray(e))return r(e)}},954:function(e){function t(e,t,n,r,i,o,s){try{var a=e[o](s),u=a.value}catch(c){return void n(c)}a.done?t(u):Promise.resolve(u).then(r,i)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(i,o){var s=e.apply(n,r);function a(e){t(s,i,o,a,u,"next",e)}function u(e){t(s,i,o,a,u,"throw",e)}a(void 0)}))}}},260:function(e){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}},527:function(e){function t(){return e.exports=t=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},t.apply(this,arguments)}e.exports=t},557:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},981:function(e){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],_n=!0,r=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(_n=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(a){r=!0,i=a}finally{try{_n||null==s.return||s.return()}finally{if(r)throw i}}return n}}},365:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},359:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},417:function(e,t,n){var r=n(260);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},68:function(e,t,n){var r=n(180),i=n(981),o=n(487),s=n(365);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||s()}},182:function(e,t,n){var r=n(232),i=n(557),o=n(487),s=n(359);e.exports=function(e){return r(e)||i(e)||o(e)||s()}},487:function(e,t,n){var r=n(270);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},421:function(e,t){"use strict";var n=decodeURIComponent,r=encodeURIComponent,i=/; */,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(n){return e}}},699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(){void 0!==o&&e.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==t&&(o=function(n){e.removeListener(t,i),r(n)},e.once("error",o)),e.once(t,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o,s,c;if(a(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=u(e))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,c=l,console&&console.warn&&console.warn(c)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function d(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]: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}(i):h(i,i.length)}function p(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 h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.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},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(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},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else{var c=u.length,l=h(u,c);for(n=0;n<c;++n)r(l[n],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,f(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(a(t),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(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.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 i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);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},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},495:function(e,t,n){"use strict";var r=n(212),i=n(561);function o(){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=o,o.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 i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.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 i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},32:function(e,t,n){"use strict";var r=n(212),i=n(495),o=n(713),s=n(561),a=r.sum32,u=r.sum32_4,c=r.sum32_5,l=o.ch32,f=o.maj32,d=o.s0_256,p=o.s1_256,h=o.g0_256,g=o.g1_256,v=i.BlockHash,m=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}r.inherits(y,v),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.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]=u(g(n[r-2]),n[r-7],h(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],v=this.h[2],m=this.h[3],y=this.h[4],w=this.h[5],_=this.h[6],b=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var C=c(b,p(y),l(y,w,_),this.k[r],n[r]),x=a(d(i),f(i,o,v));b=_,_=w,w=y,y=a(m,C),m=v,v=o,o=i,i=a(C,x)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],v),this.h[3]=a(this.h[3],m),this.h[4]=a(this.h[4],y),this.h[5]=a(this.h[5],w),this.h[6]=a(this.h[6],_),this.h[7]=a(this.h[7],b)},y.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(e,t,n){"use strict";var r=n(212).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?s(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=s,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}},212:function(e,t,n){"use strict";var r=n(561),i=n(285);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function u(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=i,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),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):o(e,i)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=s(i)),n+=u(i.toString(16))}return n},t.zero2=a,t.zero8=u,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var s=new Array(o/4),a=0,u=t;a<s.length;a++,u+=4){var c;c="big"===i?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],s[a]=c>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}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,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,s=(o<r?1:0)+n+i;e[t]=s>>>0,e[t+1]=o},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,i,o,s,a){var u=0,c=t;return u+=(c=c+r>>>0)<t?1:0,u+=(c=c+o>>>0)<o?1:0,e+n+i+s+(u+=(c=c+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,s,a){return t+r+o+a>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,s,a,u,c){var l=0,f=t;return l+=(f=f+r>>>0)<t?1:0,l+=(f=f+o>>>0)<o?1:0,l+=(f=f+a>>>0)<a?1:0,e+n+i+s+u+(l+=(f=f+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,s,a,u,c){return t+r+o+a+c>>>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}},285:function(e){"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}}},561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},378:function(e){var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i,s=365.25*i;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,u){u=u||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^(-?(?:\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(!a)return;var u=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*s;case"weeks":case"week":case"w":return u*o;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*r;case"minutes":case"minute":case"mins":case"min":case"m":return u*n;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===c&&isFinite(e))return u.long?function(e){var o=Math.abs(e);if(o>=i)return a(e,o,i,"day");if(o>=r)return a(e,o,r,"hour");if(o>=n)return a(e,o,n,"minute");if(o>=t)return a(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},877:function(e,t,n){"use strict";n.r(t);var r=window.wp.apiFetch,i=n.n(r),o=window.wp.data,s=(0,o.combineReducers)({isNuxEnabled:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_BLOCK_EDITOR_NUX_SET_STATUS":return t.isNuxEnabled;default:return e}},isGuideManuallyOpened:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_BLOCK_EDITOR_SET_GUIDE_OPEN":return t.isGuideManuallyOpened;default:return e}}}),a={setWpcomNuxStatus:function(e){var t=e.isNuxEnabled;return e.bypassApi||i()({path:"/wpcom/v2/block-editor/nux",method:"POST",data:{isNuxEnabled:t}}),{type:"WPCOM_BLOCK_EDITOR_NUX_SET_STATUS",isNuxEnabled:t}},setGuideOpenStatus:function(e){return{type:"WPCOM_BLOCK_EDITOR_SET_GUIDE_OPEN",isGuideManuallyOpened:e.isGuideManuallyOpened}}};(0,o.registerStore)("automattic/nux",{reducer:s,actions:a,selectors:{isGuideManuallyOpened:function(e){return e.isGuideManuallyOpened},isWpcomNuxEnabled:function(e){return e.isNuxEnabled}},persist:!0});window.wp.nux;var u=(0,o.subscribe)((function(){var e;(0,o.dispatch)("core/nux").disableTips(),null!==(e=(0,o.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&(0,o.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),u()}));(0,o.subscribe)((function(){var e;(0,o.select)("core/nux").areTipsEnabled()&&((0,o.dispatch)("core/nux").disableTips(),(0,o.dispatch)("automattic/nux").setWpcomNuxStatus({isNuxEnabled:!0})),null!==(e=(0,o.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&((0,o.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),(0,o.dispatch)("automattic/nux").setWpcomNuxStatus({isNuxEnabled:!0}),(0,o.dispatch)("automattic/nux").setGuideOpenStatus({isGuideManuallyOpened:!0}))}));var c=n(527),l=n.n(c),f=n(954),d=n.n(f),p=window.wp.element,h=(n(945),window.wp.components),g=window.wp.i18n,v=window.wp.plugins,m=n(49),y=n.n(m),w=y()("calypso:analytics");n(32);"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}));n(68);var _=n(417),b=n.n(_),C=(n(182),window.lodash),x=(n(421),n(699)),O=y()("lib/load-script/callback-handler"),E=new Map;function F(){return E}function S(e){return F().has(e)}function k(e,t){var n=F();S(e)?(O('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(O('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=F(),r=n.get(e);if(r){var i='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));O(i),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function L(){var e=this.getAttribute("src");O('Handling successful request for "'.concat(e,'"')),A(e),this.onload=null}function j(){var e=this.getAttribute("src");O('Handling failed request for "'.concat(e,'"')),A(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}var P=y()("lib/load-script/dom-operations");y()("package/load-script");function N(e,t){var n;if(!S(e)&&(n=function(e){P('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=L,t.onerror=j,t}(e),P("Attaching element to head"),document.head.appendChild(n)),"function"!=typeof t)return new Promise((function(t,n){k(e,(function(e){null===e?t():n(e)}))}));k(e,t)}var M,T=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];Promise.resolve();function G(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&N("//stats.wp.com/w2.js?1");var I=new x.EventEmitter;function R(e,t){if(w('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||(0,C.includes)(T,e)){if(M){var n=M(t);t=b()(b()({},t),n)}t=(0,C.omitBy)(t,C.isUndefined),w('Recording event "%s" with actual props %o',e,t),G(["recordEvent",e,t]),I.emit("record-event",e,t)}else w('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}var B=window.wp.url,W=n(807),U=n.n(W),z=n(316),D=n.n(z),$=n(826),H=n.n($),q=n(288),K=n.n(q),J=n(131),X=n.n(J),Z=n(895),Q=n.n(Z);function V(){var e,t=(0,o.useSelect)((function(e){return{isWpcomNuxEnabled:e("automattic/nux").isWpcomNuxEnabled(),isSPTOpen:e("automattic/starter-page-layouts")&&e("automattic/starter-page-layouts").isOpen(),site:e("automattic/site").getSite(window._currentSiteId),isGuideManuallyOpened:e("automattic/nux").isGuideManuallyOpened()}})),n=t.isWpcomNuxEnabled,r=t.isSPTOpen,s=t.site,a=t.isGuideManuallyOpened,u=(0,o.useDispatch)("core/edit-post").closeGeneralSidebar,c=(0,o.useDispatch)("automattic/nux"),f=c.setWpcomNuxStatus,v=c.setGuideOpenStatus;if((0,p.useEffect)((function(){void 0===n&&function(){var e=d()(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i()({path:"/wpcom/v2/block-editor/nux"});case 2:t=e.sent,f({isNuxEnabled:t.is_nux_enabled,bypassApi:!0});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()()}),[n,f]),(0,p.useEffect)((function(){n&&u()}),[u,n]),(0,p.useEffect)((function(){var e;n&&!r&&R("calypso_editor_wpcom_nux_open",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding,is_manually_opened:a})}),[n,r,a]),!n||r)return null;var m=!(null==s||null===(e=s.options)||void 0===e||!e.anchor_podcast),y=(0,B.getQueryArg)(window.location.href,"anchor_episode"),w=function(e){if(e)return[{heading:(0,g.__)("Create your first episode","full-site-editing"),description:(0,g.__)("Let’s get your first episode set up and ready to share. It’ll remain private until you’re ready to launch.","full-site-editing"),imgSrc:H(),alignBottom:!0},{heading:(0,g.__)("Add a text transcription","full-site-editing"),description:(0,g.__)("Add more accessible content to your episode. Edit the placeholder content on your page to add a transcript of your episode audio.","full-site-editing"),imgSrc:K(),alignBottom:!0},{heading:(0,g.__)("Preview your page as you go","full-site-editing"),description:(0,g.__)("This is a post page with your episode content. Click “Preview” to see your site the way your visitors will.","full-site-editing"),imgSrc:X(),alignBottom:!0}];return[{heading:(0,g.__)("Welcome to your website","full-site-editing"),description:(0,g.__)("Edit your homepage, add the pages you need, and change your site’s look and feel.","full-site-editing"),imgSrc:D(),alignBottom:!0},{heading:(0,g.__)("Add or edit your content","full-site-editing"),description:(0,g.__)("Edit the placeholder content we’ve started you off with, or click the plus sign to add more content.","full-site-editing"),imgSrc:U()},{heading:(0,g.__)("Preview your site as you go","full-site-editing"),description:(0,g.__)("As you edit your site content, click “Preview” to see your site the way your visitors will.","full-site-editing"),imgSrc:X(),alignBottom:!0},{heading:(0,g.__)("Hidden until you’re ready","full-site-editing"),description:(0,g.__)("Your site will remain hidden until launched. Click “Launch” in the toolbar to share it with the world.","full-site-editing"),imgSrc:Q(),alignBottom:!0}]}(m&&y);return(0,p.createElement)(h.Guide,{className:"wpcom-block-editor-nux",contentLabel:(0,g.__)("Welcome to your website","full-site-editing"),finishButtonText:(0,g.__)("Get started","full-site-editing"),onFinish:function(){var e;R("calypso_editor_wpcom_nux_dismiss",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding}),f({isNuxEnabled:!1}),v({isGuideManuallyOpened:!1})}},w.map((function(e,t){return(0,p.createElement)(Y,l()({key:e.heading,pageNumber:t+1,isLastPage:t===w.length-1},e))})))}function Y(e){var t=e.pageNumber,n=e.isLastPage,r=e.alignBottom,i=void 0!==r&&r,o=e.heading,s=e.description,a=e.imgSrc;return(0,p.useEffect)((function(){var e;R("calypso_editor_wpcom_nux_slide_view",{slide_number:t,is_last_slide:n,is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding})}),[]),(0,p.createElement)(h.GuidePage,{className:"wpcom-block-editor-nux__page"},(0,p.createElement)("div",{className:"wpcom-block-editor-nux__text"},(0,p.createElement)("h1",{className:"wpcom-block-editor-nux__heading"},o),(0,p.createElement)("div",{className:"wpcom-block-editor-nux__description"},s)),(0,p.createElement)("div",{className:"wpcom-block-editor-nux__visual"},(0,p.createElement)("img",{key:a,src:a,alt:"","aria-hidden":"true",className:"wpcom-block-editor-nux__image"+(i?" align-bottom":"")})))}h.Guide&&h.GuidePage&&(0,v.registerPlugin)("wpcom-block-editor-nux",{render:function(){return(0,p.createElement)(V,null)}})},945:function(e,t,n){"object"==typeof window&&window.wpcomBlockEditorNuxAssetsUrl&&(n.p=window.wpcomBlockEditorNuxAssetsUrl)},49:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){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"],t.log=console.debug||console.log||function(){},e.exports=n(632)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},632:function(e,t,n){var r=n(182);e.exports=function(e){function t(e){var n;function r(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];if(r.enabled){var s=r,a=Number(new Date),u=a-(n||a);s.diff=u,s.prev=n,s.curr=a,n=a,i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var c=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;c++;var r=t.formatters[n];if("function"==typeof r){var o=i[c];e=r.call(s,o),i.splice(c,1),c--}return e})),t.formatArgs.call(s,i);var l=s.log||t.log;l.apply(s,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=t.selectColor(e),r.destroy=i,r.extend=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function o(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(s)),r(t.skips.map(s).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(378),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.instances=[],t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},807:function(e,t,n){e.exports=n.p+"images/block-picker-53b676a08dd25f523d4adb0157a40b4c.svg"},826:function(e,t,n){e.exports=n.p+"images/editor-podcast-bc4ffa5867c3bd4651d339f37e691571.svg"},316:function(e,t,n){e.exports=n.p+"images/editor-1a0c404dcc59d4a340edb4649127f4c9.svg"},131:function(e,t,n){e.exports=n.p+"images/preview-a2ab6dbfd49f58a76c13c9dab8b09e0e.svg"},895:function(e,t,n){e.exports=n.p+"images/private-598e2a26fcb0c685d165d750fdf02364.svg"},288:function(e,t,n){e.exports=n.p+"images/transcription-8186cc772deeb35d3526399ddafe144c.svg"}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e}(),n(877)}());
     1!function(e,t){for(var n in t)e[n]=t[n];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={)}());
  • full-site-editing/trunk/wpcom-block-editor-nux/src/store.js

    r2458000 r2464442  
    22 * External dependencies
    33 */
     4
    45import apiFetch from '@wordpress/api-fetch';
    56import { combineReducers, registerStore } from '@wordpress/data';
  • full-site-editing/trunk/wpcom-block-editor-welcome-tour/dist/wpcom-block-editor-welcome-tour.asset.php

    r2463392 r2464442  
    1 <?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '59939a0fed910e5a10b8b666611a603f');
     1<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '');
  • full-site-editing/trunk/wpcom-block-editor-welcome-tour/dist/wpcom-block-editor-welcome-tour.js

    r2463392 r2464442  
    1 !function(e,t){for(var n in t)e[n]=t[n];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={270:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},180:function(e){e.exports=function(e){if(Array.isArray(e))return e}},232:function(e,t,n){var r=n(270);e.exports=function(e){if(Array.isArray(e))return r(e)}},954:function(e){function t(e,t,n,r,i,o,s){try{var a=e[o](s),u=a.value}catch(c){return void n(c)}a.done?t(u):Promise.resolve(u).then(r,i)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(i,o){var s=e.apply(n,r);function a(e){t(s,i,o,a,u,"next",e)}function u(e){t(s,i,o,a,u,"throw",e)}a(void 0)}))}}},260:function(e){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}},557:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},981:function(e){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],_n=!0,r=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(_n=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(a){r=!0,i=a}finally{try{_n||null==s.return||s.return()}finally{if(r)throw i}}return n}}},365:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},359:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},417:function(e,t,n){var r=n(260);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},68:function(e,t,n){var r=n(180),i=n(981),o=n(487),s=n(365);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||s()}},182:function(e,t,n){var r=n(232),i=n(557),o=n(487),s=n(359);e.exports=function(e){return r(e)||i(e)||o(e)||s()}},487:function(e,t,n){var r=n(270);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},779:function(e,t){var n;
     1!function(e,t){for(var n in t)e[n]=t[n];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={779:function(e,t){var n;
    22/*!
    33  Copyright (c) 2017 Jed Watson.
    44  Licensed under the MIT License (MIT), see
    55  http://jedwatson.github.io/classnames
    6 */!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var s=i.apply(null,n);s&&e.push(s)}else if("object"===o)for(var a in n)r.call(n,a)&&n[a]&&e.push(a)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},421:function(e,t){"use strict";var n=decodeURIComponent,r=encodeURIComponent,i=/; */,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(n){return e}}},699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(){void 0!==o&&e.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==t&&(o=function(n){e.removeListener(t,i),r(n)},e.once("error",o)),e.once(t,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o,s,c;if(a(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=u(e))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,c=l,console&&console.warn&&console.warn(c)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]: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}(i):h(i,i.length)}function p(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 h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.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},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(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},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else{var c=u.length,l=h(u,c);for(n=0;n<c;++n)r(l[n],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(a(t),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(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.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 i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);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},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},495:function(e,t,n){"use strict";var r=n(212),i=n(561);function o(){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=o,o.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 i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.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 i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},32:function(e,t,n){"use strict";var r=n(212),i=n(495),o=n(713),s=n(561),a=r.sum32,u=r.sum32_4,c=r.sum32_5,l=o.ch32,d=o.maj32,f=o.s0_256,p=o.s1_256,h=o.g0_256,m=o.g1_256,g=i.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function w(){if(!(this instanceof w))return new w;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(w,g),e.exports=w,w.blockSize=512,w.outSize=256,w.hmacStrength=192,w.padLength=64,w.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]=u(m(n[r-2]),n[r-7],h(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],g=this.h[2],v=this.h[3],w=this.h[4],y=this.h[5],_=this.h[6],b=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var C=c(b,p(w),l(w,y,_),this.k[r],n[r]),E=a(f(i),d(i,o,g));b=_,_=y,y=w,w=a(v,C),v=g,g=o,o=i,i=a(C,E)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],g),this.h[3]=a(this.h[3],v),this.h[4]=a(this.h[4],w),this.h[5]=a(this.h[5],y),this.h[6]=a(this.h[6],_),this.h[7]=a(this.h[7],b)},w.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(e,t,n){"use strict";var r=n(212).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?s(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=s,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}},212:function(e,t,n){"use strict";var r=n(561),i=n(285);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function u(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=i,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),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):o(e,i)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=s(i)),n+=u(i.toString(16))}return n},t.zero2=a,t.zero8=u,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var s=new Array(o/4),a=0,u=t;a<s.length;a++,u+=4){var c;c="big"===i?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],s[a]=c>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}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,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,s=(o<r?1:0)+n+i;e[t]=s>>>0,e[t+1]=o},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,i,o,s,a){var u=0,c=t;return u+=(c=c+r>>>0)<t?1:0,u+=(c=c+o>>>0)<o?1:0,e+n+i+s+(u+=(c=c+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,s,a){return t+r+o+a>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,s,a,u,c){var l=0,d=t;return l+=(d=d+r>>>0)<t?1:0,l+=(d=d+o>>>0)<o?1:0,l+=(d=d+a>>>0)<a?1:0,e+n+i+s+u+(l+=(d=d+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,s,a,u,c){return t+r+o+a+c>>>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}},285:function(e){"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}}},561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},378:function(e){var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i,s=365.25*i;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,u){u=u||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^(-?(?:\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(!a)return;var u=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*s;case"weeks":case"week":case"w":return u*o;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*r;case"minutes":case"minute":case"mins":case"min":case"m":return u*n;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===c&&isFinite(e))return u.long?function(e){var o=Math.abs(e);if(o>=i)return a(e,o,i,"day");if(o>=r)return a(e,o,r,"hour");if(o>=n)return a(e,o,n,"minute");if(o>=t)return a(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},297:function(e,t,n){"use strict";n.r(t);var r=window.wp.apiFetch,i=n.n(r),o=window.wp.data,s=(0,o.combineReducers)({isNuxEnabled:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_BLOCK_EDITOR_NUX_SET_STATUS":return t.isNuxEnabled;default:return e}},isTourManuallyOpened:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_BLOCK_EDITOR_SET_TOUR_OPEN":return t.isTourManuallyOpened;default:return e}},tourRating:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_BLOCK_EDITOR_SET_TOUR_RATING":return t.tourRating;default:return e}}}),a={setWpcomNuxStatus:function(e){var t=e.isNuxEnabled;return e.bypassApi||i()({path:"/wpcom/v2/block-editor/nux",method:"POST",data:{isNuxEnabled:t}}),{type:"WPCOM_BLOCK_EDITOR_NUX_SET_STATUS",isNuxEnabled:t}},setTourRating:function(e){return{type:"WPCOM_BLOCK_EDITOR_SET_TOUR_RATING",tourRating:e}},setTourOpenStatus:function(e){return{type:"WPCOM_BLOCK_EDITOR_SET_TOUR_OPEN",isTourManuallyOpened:e.isTourManuallyOpened}}};(0,o.registerStore)("automattic/nux",{reducer:s,actions:a,selectors:{isTourManuallyOpened:function(e){return e.isTourManuallyOpened},isWpcomNuxEnabled:function(e){return e.isNuxEnabled},tourRating:function(e){return e.tourRating}},persist:!0});window.wp.nux;var u=(0,o.subscribe)((function(){var e;(0,o.dispatch)("core/nux").disableTips(),null!==(e=(0,o.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&(0,o.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),u()}));(0,o.subscribe)((function(){var e;(0,o.select)("core/nux").areTipsEnabled()&&((0,o.dispatch)("core/nux").disableTips(),(0,o.dispatch)("automattic/nux").setWpcomNuxStatus({isNuxEnabled:!0})),null!==(e=(0,o.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&((0,o.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),(0,o.dispatch)("automattic/nux").setWpcomNuxStatus({isNuxEnabled:!0}),(0,o.dispatch)("automattic/nux").setTourOpenStatus({isTourManuallyOpened:!0}))}));var c=n(68),l=n.n(c),d=n(954),f=n.n(d),p=window.wp.element,h=(n(116),window.lodash),m=window.wp.i18n,g=window.wp.primitives,v=window.wp.components;function w(e){var t=e.currentPage,n=e.numberOfPages,r=e.setCurrentPage;return(0,p.createElement)("ul",{className:"components-guide__page-control","aria-label":(0,m.__)("Guide controls","full-site-editing")},(0,h.times)(n,(function(e){return(0,p.createElement)("li",{key:e,"aria-current":e===t?"step":void 0},(0,p.createElement)(v.Button,{key:e,icon:(0,p.createElement)(y,{isSelected:e===t}),"aria-label":(0,m.sprintf)((0,m.__)("Page %1$d of %2$d","full-site-editing"),e+1,n),onClick:function(){return r(e)}}))})))}var y=function(e){var t=e.isSelected;return(0,p.createElement)(g.SVG,{width:"6",height:"6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,p.createElement)(g.Circle,{cx:"3",cy:"3",r:"3",fill:t?"#32373C":"#E1E3E6"}))},_=(0,p.createElement)(g.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,p.createElement)(g.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.514 9.988l-3.476.016c.627-.626 1.225-1.22 1.82-1.811l.03-.03v-.001c.977-.971 1.944-1.933 3.015-3.004l-1.06-1.06c-1.07 1.069-2.037 2.03-3.013 3.001l-.03.03-1.818 1.809.03-3.449-1.5-.013-.045 5.28-.007.76.76-.004 5.301-.024-.007-1.5zM5.486 14.012l3.477-.016-1.82 1.811-.03.03c-.977.972-1.945 1.934-3.015 3.005l1.06 1.06c1.07-1.068 2.035-2.03 3.012-3V16.9l.03-.03 1.818-1.809-.03 3.449 1.5.013.046-5.28.006-.76-.76.004-5.3.024.006 1.5z",fill:"#fff"})),b=(0,p.createElement)(g.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/SVG"},(0,p.createElement)(g.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M13.131 4.023a.667.667 0 011.227.416l-.436 4.99h3.88c.954 0 1.64.916 1.37 1.831l-1.753 5.963a.286.286 0 01-.274.206H9.429V9.84l3.702-5.818zM7.714 10v7.428h-2V10h2zm5.98-8c-.814 0-1.572.416-2.01 1.103L8.388 8.286H4v10.857h13.145a2 2 0 001.919-1.436l1.753-5.963a3.143 3.143 0 00-3.015-4.03h-2.01l.274-3.125A2.381 2.381 0 0013.694 2z",fill:"#000"})),C=(0,p.createElement)(g.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,p.createElement)(g.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M13.131 19.12a.667.667 0 001.227-.417l-.436-4.989h3.88c.954 0 1.64-.916 1.37-1.831L17.42 5.919a.286.286 0 00-.274-.205H9.429v7.588l3.702 5.818zm-5.417-5.977V5.714h-2v7.429h2zm5.98 8a2.381 2.381 0 01-2.01-1.103l-3.297-5.183H4V4h13.145a2 2 0 011.919 1.436l1.753 5.963a3.143 3.143 0 01-3.015 4.03h-2.01l.274 3.125a2.381 2.381 0 01-2.372 2.589z",fill:"#000"})),E=n(779),x=n.n(E),O=(0,p.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,p.createElement)(g.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),S=n(49),F=n.n(S),k=F()("calypso:analytics");n(32);"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}));var j=n(417),P=n.n(j),T=(n(182),n(421),n(699)),M=F()("lib/load-script/callback-handler"),A=new Map;function L(){return A}function N(e){return L().has(e)}function z(e,t){var n=L();N(e)?(M('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(M('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=L(),r=n.get(e);if(r){var i='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));M(i),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function I(){var e=this.getAttribute("src");M('Handling successful request for "'.concat(e,'"')),R(e),this.onload=null}function D(){var e=this.getAttribute("src");M('Handling failed request for "'.concat(e,'"')),R(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}var G=F()("lib/load-script/dom-operations");F()("package/load-script");function W(e,t){var n;if(!N(e)&&(n=function(e){G('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=I,t.onerror=D,t}(e),G("Attaching element to head"),document.head.appendChild(n)),"function"!=typeof t)return new Promise((function(t,n){z(e,(function(e){null===e?t():n(e)}))}));z(e,t)}var B,U=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];Promise.resolve();function V(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&W("//stats.wp.com/w2.js?1");var $=new T.EventEmitter;function H(e,t){if(k('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||(0,h.includes)(U,e)){if(B){var n=B(t);t=P()(P()({},t),n)}t=(0,h.omitBy)(t,h.isUndefined),k('Recording event "%s" with actual props %o',e,t),V(["recordEvent",e,t]),$.emit("record-event",e,t)}else k('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}function J(e){var t=e.cardIndex,n=e.lastCardIndex,r=e.onDismiss,i=e.setCurrentCardIndex;return(0,p.createElement)(p.Fragment,null,(0,p.createElement)(w,{currentPage:t,numberOfPages:n+1,setCurrentPage:i}),(0,p.createElement)("div",null,0===t?(0,p.createElement)(v.Button,{isTertiary:!0,onClick:function(){return r("no-thanks-btn")}},(0,m.__)("Skip","full-site-editing")):(0,p.createElement)(v.Button,{isTertiary:!0,onClick:function(){return i(t-1)}},(0,m.__)("Back","full-site-editing")),(0,p.createElement)(v.Button,{className:"welcome-tour-card__next-btn",isPrimary:!0,onClick:function(){return i(t+1)}},0===t?(0,m.__)("Start Tour","full-site-editing"):(0,m.__)("Next","full-site-editing"))))}function K(e){var t=e.onMinimize,n=e.onDismiss,r=e.slideNumber;return(0,p.createElement)("div",{className:"welcome-tour-card__overlay-controls"},(0,p.createElement)(v.Flex,null,(0,p.createElement)(v.Button,{"aria-label":(0,m.__)("Minimize Tour","full-site-editing"),isPrimary:!0,className:"welcome-tour-card__minimize-icon",icon:_,iconSize:24,onClick:function(){var e;t(!0),H("calypso_editor_wpcom_tour_minimize",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding,slide_number:r})}}),(0,p.createElement)(v.Button,{"aria-label":(0,m.__)("Close Tour","full-site-editing"),isPrimary:!0,icon:O,iconSize:24,onClick:function(){return n("close-btn")}})))}function q(){var e=!1,t=(0,o.useSelect)((function(e){return e("automattic/nux").tourRating()})),n=(0,o.useDispatch)("automattic/nux").setTourRating;!e&&t&&(e=!0);var r=function(t){var r;e||(e=!0,n(t?"thumbs-up":"thumbs-down"),H("calypso_editor_wpcom_tour_rate",{thumbs_up:t,is_gutenboarding:null===(r=window.calypsoifyGutenberg)||void 0===r?void 0:r.isGutenboarding}))};return(0,p.createElement)(p.Fragment,null,(0,p.createElement)("p",{className:"welcome-tour__end-text"},"Did you find this guide helpful?"),(0,p.createElement)("div",null,(0,p.createElement)(v.Button,{"aria-label":(0,m.__)("Rate thumbs up","full-site-editing"),className:x()("welcome-tour__end-icon",{active:"thumbs-up"===t}),disabled:e,icon:b,onClick:function(){return r(!0)},iconSize:24}),(0,p.createElement)(v.Button,{"aria-label":(0,m.__)("Rate thumbs down","full-site-editing"),className:x()("welcome-tour__end-icon",{active:"thumbs-down"===t}),disabled:e,icon:C,onClick:function(){return r(!1)},iconSize:24})))}var X=function(e){var t,n=e.cardContent,r=e.cardIndex,i=e.justMaximized,o=e.lastCardIndex,s=e.onMinimize,a=e.onDismiss,u=e.setJustMaximized,c=e.setCurrentCardIndex,l=n.description,d=n.heading,f=n.imgSrc,h=r===o;return t=function(){var e;i?u(!1):H("calypso_editor_wpcom_tour_slide_view",{slide_number:r+1,is_last_slide:h,slide_heading:d,is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding})},(0,p.useEffect)(t,[]),(0,p.createElement)(v.Card,{className:"welcome-tour-card",isElevated:!0},(0,p.createElement)(K,{setJustMaximized:u,onDismiss:a,onMinimize:s,slideNumber:r+1}),(0,p.createElement)(v.CardMedia,null,(0,p.createElement)("img",{alt:(0,m.__)("Editor Welcome Tour","full-site-editing"),src:f})),(0,p.createElement)(v.CardBody,null,(0,p.createElement)("h2",{className:"welcome-tour-card__heading"},d),(0,p.createElement)("p",{className:"welcome-tour-card__description"},l,h?(0,p.createElement)(v.Button,{className:"welcome-tour-card__description",isTertiary:!0,onClick:function(){return c(0)}},"Restart tour"):null)),(0,p.createElement)(v.CardFooter,null,h?(0,p.createElement)(q,null):(0,p.createElement)(J,{cardIndex:r,lastCardIndex:o,onDismiss:a,setCurrentCardIndex:c})))};var Z=function(){return[{heading:(0,m.__)("Welcome to WordPress!","full-site-editing"),description:(0,m.__)("Continue on with this short tour to learn the fundamentals of the WordPress editor.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-welcome.png",animation:null},{heading:(0,m.__)("Everything is a block","full-site-editing"),description:(0,m.__)("In the WordPress Editor, paragraphs, images, and videos are all blocks.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-all-blocks.gif",animation:null},{heading:(0,m.__)("Adding a new block","full-site-editing"),description:(0,m.__)("Click + to open the inserter. Then click the block you want to add.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-add-block.gif",animation:"block-inserter"},{heading:(0,m.__)("Click a block to change it","full-site-editing"),description:(0,m.__)("Use the toolbar to change the appearance of a selected block. Try making it bold.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-make-bold.gif",animation:null},{heading:(0,m.__)("More Options","full-site-editing"),description:(0,m.__)("Click the settings icon to see even more options.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-more-options.gif",animation:null},{heading:(0,m.__)("Undo any mistake","full-site-editing"),description:(0,m.__)("Click the Undo button if you've made a mistake.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-undo.gif",animation:"undo-button"},{heading:(0,m.__)("Drag & drop","full-site-editing"),description:(0,m.__)("To move blocks around, click and drag the handle.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-move-block.gif",animation:"undo-button"},{heading:(0,m.__)("Congratulations!","full-site-editing"),description:(0,m.__)("You’ve now learned the basics. Remember, your site is always private until you decide to launch.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-finish.png",animation:"block-inserter"}]},Y=(0,p.createElement)(g.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,p.createElement)(g.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M14.086 5.412l3.476-.015c-.627.625-1.225 1.22-1.82 1.81l-.03.031c-.977.971-1.944 1.934-3.015 3.004l1.06 1.061c1.07-1.07 2.036-2.03 3.013-3.002l.03-.03 1.817-1.808-.03 3.448 1.5.013.046-5.28.007-.759-.76.003-5.301.024.007 1.5zM9.914 18.587l-3.476.016c.627-.625 1.225-1.22 1.82-1.81l.03-.031c.977-.971 1.944-1.934 3.015-3.004l-1.06-1.061c-1.07 1.069-2.036 2.03-3.012 3.001l-.001.001-.03.03-1.817 1.808.03-3.448-1.5-.013-.046 5.279-.007.76.76-.003 5.301-.024-.007-1.5z",fill:"#50575E"}));function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ee(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ne=function(e){var t=e.icon,n=e.size,r=void 0===n?24:n,i=ee(e,["icon","size"]);return(0,p.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){Q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},i))};function re(){var e=(0,p.useRef)(document.createElement("div")).current,t=(0,o.useSelect)((function(e){return{isWpcomNuxEnabled:e("automattic/nux").isWpcomNuxEnabled(),isSPTOpen:e("automattic/starter-page-layouts")&&e("automattic/starter-page-layouts").isOpen(),isTourManuallyOpened:e("automattic/nux").isTourManuallyOpened()}})),n=t.isWpcomNuxEnabled,r=t.isSPTOpen,s=t.isTourManuallyOpened,a=(0,o.useDispatch)("core/edit-post").closeGeneralSidebar,u=(0,o.useDispatch)("automattic/nux").setWpcomNuxStatus;return(new window.Image).src=Z()[0].imgSrc,(0,p.useEffect)((function(){void 0===n&&function(){var e=f()(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i()({path:"/wpcom/v2/block-editor/nux"});case 2:t=e.sent,u({isNuxEnabled:t.is_nux_enabled,bypassApi:!0});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()()}),[n,u]),(0,p.useEffect)((function(){n&&a()}),[a,n]),(0,p.useEffect)((function(){var t;if(n||r)return e.classList.add("wpcom-editor-welcome-tour-portal-parent"),document.body.appendChild(e),H("calypso_editor_wpcom_tour_open",{is_gutenboarding:null===(t=window.calypsoifyGutenberg)||void 0===t?void 0:t.isGutenboarding,is_manually_opened:s}),function(){document.body.removeChild(e)}}),[r,s,n,e]),!n||r?null:(0,p.createElement)("div",null,(0,p.createPortal)((0,p.createElement)(ie,null),e))}function ie(){var e=Z(),t=(0,p.useState)(!1),n=l()(t,2),r=n[0],i=n[1],s=(0,p.useState)(0),a=l()(s,2),u=a[0],c=a[1],d=(0,p.useState)(!1),f=l()(d,2),h=f[0],m=f[1],g=(0,o.useDispatch)("automattic/nux"),v=g.setWpcomNuxStatus,w=g.setTourOpenStatus;return e.forEach((function(e){return(new window.Image).src=e.imgSrc})),(0,p.createElement)("div",{className:"wpcom-editor-welcome-tour-frame"},r?(0,p.createElement)(oe,{onMaximize:i,setJustMaximized:m,slideNumber:u+1}):(0,p.createElement)(X,{cardContent:e[u],cardIndex:u,justMaximized:h,key:u,lastCardIndex:e.length-1,onDismiss:function(e){var t;H("calypso_editor_wpcom_tour_dismiss",{is_gutenboarding:null===(t=window.calypsoifyGutenberg)||void 0===t?void 0:t.isGutenboarding,slide_number:u+1,action:e}),v({isNuxEnabled:!1}),w({isTourManuallyOpened:!1})},onMinimize:i,setJustMaximized:m,setCurrentCardIndex:c}))}function oe(e){var t=e.onMaximize,n=e.setJustMaximized,r=e.slideNumber;return(0,p.createElement)(v.Button,{onClick:function(){var e;t(!1),n(!0),H("calypso_editor_wpcom_tour_maximize",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding,slide_number:r})},className:"wpcom-editor-welcome-tour__resume-btn"},(0,p.createElement)(v.Flex,{gap:13},(0,p.createElement)("p",null,(0,m.__)("Click to resume tutorial","full-site-editing")),(0,p.createElement)(ne,{icon:Y,size:24})))}(0,window.wp.plugins.registerPlugin)("wpcom-block-editor-welcome-tour",{render:function(){return(0,p.createElement)(re,null)}})},116:function(e,t,n){"object"==typeof window&&window.wpcomBlockEditorWelcomeTourAssetsUrl&&(n.p=window.wpcomBlockEditorWelcomeTourAssetsUrl)},49:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){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"],t.log=console.debug||console.log||function(){},e.exports=n(632)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},632:function(e,t,n){var r=n(182);e.exports=function(e){function t(e){var n;function r(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];if(r.enabled){var s=r,a=Number(new Date),u=a-(n||a);s.diff=u,s.prev=n,s.curr=a,n=a,i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var c=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;c++;var r=t.formatters[n];if("function"==typeof r){var o=i[c];e=r.call(s,o),i.splice(c,1),c--}return e})),t.formatArgs.call(s,i);var l=s.log||t.log;l.apply(s,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=t.selectColor(e),r.destroy=i,r.extend=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function o(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(s)),r(t.skips.map(s).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(378),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.instances=[],t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e}(),n(297)}());
     6*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var s=i.apply(null,n);s&&e.push(s)}else if("object"===o)for(var )}());
Note: See TracChangeset for help on using the changeset viewer.