Version Description
- Feature: Condition shortcode for Template Editor
- Feature: Search list of recipes to import when importing from MV Create or Tasty Recipes
- Improvement: Support video metadata when using youtube-nocookie.com in embed code
- Improvement: Setting to split instructions on punctuation when importing from text
- Fix: Prevent rating caching issues
- Fix: Yoast Video SEO compatibility
- Fix: Flatsome theme UX Builder breaking
- Fix: Don't change ID when importing from JSON in the edit modal
- Fix: Same author for every recipe image setting
- Fix: Don't use wprm- prefix in the slug when saving as a public post type
- Fix: Action filter on the Analytics manage page
- Fix: Check for keywords in SEO checker
- Fix: Searching and displaying special characters in ingredient suggestions
- Fix: SEO Checker not updating after the first rating
- Fix: Prevent Elementor deprecated notice
- Fix: Russian translation errors in PHP 8.0
- Fix: Broken HTML in Pin button
Download this release
Release Info
Developer | BrechtVds |
Plugin | WP Recipe Maker |
Version | 8.2.0 |
Comparing to | |
See all releases |
Code changes from version 8.1.0 to 8.2.0
- assets/js/admin-modal/fields/FieldRichText/Toolbar/ToolbarSuggest.js +2 -1
- assets/js/admin-modal/recipe/index.js +3 -0
- assets/js/admin-modal/recipe/text-import/index.js +8 -2
- assets/js/admin-template/main/preview-template/index.js +3 -0
- assets/js/admin/import/before_import.js +11 -0
- assets/js/print/index.js +1 -1
- dist/admin-faq.js +1 -1
- dist/admin-modal.js +1 -1
- dist/admin-template.js +0 -1
assets/js/admin-modal/fields/FieldRichText/Toolbar/ToolbarSuggest.js
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import React, { Component, Fragment } from 'react';
|
|
|
2 |
|
3 |
import Api from 'Shared/Api';
|
4 |
import Loader from 'Shared/Loader';
|
@@ -86,7 +87,7 @@ export default class ToolbarSuggest extends Component {
|
|
86 |
} }
|
87 |
key={ index }
|
88 |
>
|
89 |
-
<span className="wprm-admin-modal-toolbar-suggestion-text">{ suggestion.name } ({ suggestion.count})</span>
|
90 |
</span>
|
91 |
))
|
92 |
}
|
1 |
import React, { Component, Fragment } from 'react';
|
2 |
+
import he from 'he';
|
3 |
|
4 |
import Api from 'Shared/Api';
|
5 |
import Loader from 'Shared/Loader';
|
87 |
} }
|
88 |
key={ index }
|
89 |
>
|
90 |
+
<span className="wprm-admin-modal-toolbar-suggestion-text">{ he.decode( suggestion.name ) } ({ suggestion.count})</span>
|
91 |
</span>
|
92 |
))
|
93 |
}
|
assets/js/admin-modal/recipe/index.js
CHANGED
@@ -110,6 +110,9 @@ export default class Recipe extends Component {
|
|
110 |
}
|
111 |
|
112 |
onImportJSON(fields) {
|
|
|
|
|
|
|
113 |
this.setState((prevState) => ({
|
114 |
recipe: {
|
115 |
...prevState.recipe,
|
110 |
}
|
111 |
|
112 |
onImportJSON(fields) {
|
113 |
+
// Ignore ID.
|
114 |
+
delete fields.id;
|
115 |
+
|
116 |
this.setState((prevState) => ({
|
117 |
recipe: {
|
118 |
...prevState.recipe,
|
assets/js/admin-modal/recipe/text-import/index.js
CHANGED
@@ -59,7 +59,7 @@ export default class TextImport extends Component {
|
|
59 |
selection = selection ? selection : false;
|
60 |
|
61 |
if ( 'equipment' === field || 'ingredients' === field || 'instructions' === field ) {
|
62 |
-
selection = this.getSeperateFields( selection );
|
63 |
}
|
64 |
|
65 |
if ( selection !== this.state[ field ] ) {
|
@@ -69,11 +69,17 @@ export default class TextImport extends Component {
|
|
69 |
}
|
70 |
}
|
71 |
|
72 |
-
getSeperateFields( content ) {
|
73 |
if ( false === content ) {
|
74 |
return false;
|
75 |
}
|
76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
let fields = [];
|
78 |
let lines = content.split(/[\r\n]+/);
|
79 |
|
59 |
selection = selection ? selection : false;
|
60 |
|
61 |
if ( 'equipment' === field || 'ingredients' === field || 'instructions' === field ) {
|
62 |
+
selection = this.getSeperateFields( selection, field );
|
63 |
}
|
64 |
|
65 |
if ( selection !== this.state[ field ] ) {
|
69 |
}
|
70 |
}
|
71 |
|
72 |
+
getSeperateFields( content, field ) {
|
73 |
if ( false === content ) {
|
74 |
return false;
|
75 |
}
|
76 |
|
77 |
+
// Splitting on punctuation as well?
|
78 |
+
if ( 'instructions' === field && 'punctuation' === wprm_admin_modal.settings.import_instructions_split ) {
|
79 |
+
content = content.replace(/([!\.\?]+)/gm, '$1\n');
|
80 |
+
}
|
81 |
+
|
82 |
+
// Split into seperate lines.
|
83 |
let fields = [];
|
84 |
let lines = content.split(/[\r\n]+/);
|
85 |
|
assets/js/admin-template/main/preview-template/index.js
CHANGED
@@ -98,6 +98,9 @@ export default class PreviewTemplate extends Component {
|
|
98 |
parseHtml(html) {
|
99 |
let htmlToParse = html;
|
100 |
|
|
|
|
|
|
|
101 |
// Find shortcodes in HTML.
|
102 |
let shortcodes = [];
|
103 |
const regex = /\[([^\s\]]*)\s*([^\]]*?)\]/gmi;
|
98 |
parseHtml(html) {
|
99 |
let htmlToParse = html;
|
100 |
|
101 |
+
// Remove closing wprm-condition shortcode from preview.
|
102 |
+
htmlToParse = htmlToParse.replace( /\[\/wprm\-condition\]/g, '' );
|
103 |
+
|
104 |
// Find shortcodes in HTML.
|
105 |
let shortcodes = [];
|
106 |
const regex = /\[([^\s\]]*)\s*([^\]]*?)\]/gmi;
|
assets/js/admin/import/before_import.js
CHANGED
@@ -1,6 +1,17 @@
|
|
1 |
let import_last_checked = false;
|
2 |
|
3 |
jQuery(document).ready(function($) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
// Quick select functionality.
|
5 |
jQuery('.wprm-import-recipes-select-all').on('click', function(e) {
|
6 |
e.preventDefault();
|
1 |
let import_last_checked = false;
|
2 |
|
3 |
jQuery(document).ready(function($) {
|
4 |
+
// Search recipes functionality.
|
5 |
+
jQuery('#wprm-import-recipes-search').on('click', function(e) {
|
6 |
+
e.preventDefault();
|
7 |
+
const search = prompt( 'What do you want to search for?' );
|
8 |
+
|
9 |
+
if ( search ) {
|
10 |
+
const url = e.target.href;
|
11 |
+
window.location = url + '&s=' + encodeURIComponent( search );
|
12 |
+
}
|
13 |
+
});
|
14 |
+
|
15 |
// Quick select functionality.
|
16 |
jQuery('.wprm-import-recipes-select-all').on('click', function(e) {
|
17 |
e.preventDefault();
|
assets/js/print/index.js
CHANGED
@@ -83,7 +83,7 @@ window.WPRMPrint = {
|
|
83 |
} else if ( 'wprm-print-toggle-collection-servings' === toggle.id ) {
|
84 |
elems = document.querySelectorAll( '.wprmprc-collection-item-servings' );
|
85 |
} else if ( 'wprm-print-toggle-collection-nutrition' === toggle.id ) {
|
86 |
-
elems = document.querySelectorAll( '.wprmprc-collection-column-nutrition' );
|
87 |
} else if ( 'wprm-print-toggle-shopping-list-collection' === toggle.id ) {
|
88 |
elems = document.querySelectorAll( '.wprmprc-shopping-list-collection' );
|
89 |
} else if ( 'wprm-print-toggle-shopping-list' === toggle.id ) {
|
83 |
} else if ( 'wprm-print-toggle-collection-servings' === toggle.id ) {
|
84 |
elems = document.querySelectorAll( '.wprmprc-collection-item-servings' );
|
85 |
} else if ( 'wprm-print-toggle-collection-nutrition' === toggle.id ) {
|
86 |
+
elems = document.querySelectorAll( '.wprmprc-collection-column-nutrition, .wprmprc-collection-item-nutrition' );
|
87 |
} else if ( 'wprm-print-toggle-shopping-list-collection' === toggle.id ) {
|
88 |
elems = document.querySelectorAll( '.wprmprc-shopping-list-collection' );
|
89 |
} else if ( 'wprm-print-toggle-shopping-list' === toggle.id ) {
|
dist/admin-faq.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
var WPRecipeMaker;(WPRecipeMaker=void 0===WPRecipeMaker?{}:WPRecipeMaker)["wp-recipe-maker/dist/admin-faq"]=(self.webpackChunkWPRecipeMaker_name_=self.webpackChunkWPRecipeMaker_name_||[]).push([[437],{98453:function(e,t,n){"use strict";n.r(t);var r=n(73961),o=n(89526),i=(n(35054),n(37932)),a=e=>o.createElement("div",{className:"wprm-admin-onboarding-step-welcome"},o.createElement("p",null,"Welcome to WP Recipe Maker!"),o.createElement("p",null,"These onboarding steps will get you up and running in no time by ",o.createElement("strong",null,"choosing the correct options for your situation")," and showing you how to get the most out of this plugin."),o.createElement("div",{className:"wprm-admin-onboarding-step-welcome-buttons"},o.createElement("button",{className:"button button-primary",onClick:()=>{e.jumpToStep(1)}},"Start the onboarding!"),o.createElement("a",{href:wprm_admin.manage_url+"&skip_onboarding=1"},"or click here to skip")));function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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)}}function s(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(){return(p=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)}function d(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}function f(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&&m(e,t)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t){if(null==e)return{};var n,r,o=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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?g(e):t}function y(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 n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function x(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e)||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.")}()}function w(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}var E=function e(t){var n=this,r=t.expanded,o=void 0===r?[]:r,i=t.allowMultipleExpanded,a=void 0!==i&&i,u=t.allowZeroExpanded,s=void 0!==u&&u;l(this,e),c(this,"expanded",void 0),c(this,"allowMultipleExpanded",void 0),c(this,"allowZeroExpanded",void 0),c(this,"toggleExpanded",(function(e){return n.isItemDisabled(e)?n:n.isItemExpanded(e)?n.augment({expanded:n.expanded.filter((function(t){return t!==e}))}):n.augment({expanded:n.allowMultipleExpanded?[].concat(x(n.expanded),[e]):[e]})})),c(this,"isItemDisabled",(function(e){var t=n.isItemExpanded(e),r=1===n.expanded.length;return Boolean(t&&!n.allowZeroExpanded&&r)})),c(this,"isItemExpanded",(function(e){return-1!==n.expanded.indexOf(e)})),c(this,"getPanelAttributes",(function(e,t){var r=null!=t?t:n.isItemExpanded(e);return{role:n.allowMultipleExpanded?void 0:"region","aria-hidden":n.allowMultipleExpanded?!r:void 0,"aria-labelledby":n.getButtonId(e),id:n.getPanelId(e),hidden:!r||void 0}})),c(this,"getHeadingAttributes",(function(){return{role:"heading"}})),c(this,"getButtonAttributes",(function(e,t){var r=null!=t?t:n.isItemExpanded(e),o=n.isItemDisabled(e);return{id:n.getButtonId(e),"aria-disabled":o,"aria-expanded":r,"aria-controls":n.getPanelId(e),role:"button",tabIndex:0}})),c(this,"getPanelId",(function(e){return"accordion__panel-".concat(e)})),c(this,"getButtonId",(function(e){return"accordion__heading-".concat(e)})),c(this,"augment",(function(t){return new e(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({expanded:n.expanded,allowMultipleExpanded:n.allowMultipleExpanded,allowZeroExpanded:n.allowZeroExpanded},t))})),this.expanded=o,this.allowMultipleExpanded=a,this.allowZeroExpanded=s},I=(0,o.createContext)(null),S=function(e){f(n,e);var t=y(n);function n(){var e;l(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return c(g(e=t.call.apply(t,[this].concat(o))),"state",new E({expanded:e.props.preExpanded,allowMultipleExpanded:e.props.allowMultipleExpanded,allowZeroExpanded:e.props.allowZeroExpanded})),c(g(e),"toggleExpanded",(function(t){e.setState((function(e){return e.toggleExpanded(t)}),(function(){e.props.onChange&&e.props.onChange(e.state.expanded)}))})),c(g(e),"isItemDisabled",(function(t){return e.state.isItemDisabled(t)})),c(g(e),"isItemExpanded",(function(t){return e.state.isItemExpanded(t)})),c(g(e),"getPanelAttributes",(function(t,n){return e.state.getPanelAttributes(t,n)})),c(g(e),"getHeadingAttributes",(function(){return e.state.getHeadingAttributes()})),c(g(e),"getButtonAttributes",(function(t,n){return e.state.getButtonAttributes(t,n)})),e}return s(n,[{key:"render",value:function(){var e=this.state,t=e.allowZeroExpanded,n=e.allowMultipleExpanded;return(0,o.createElement)(I.Provider,{value:{allowMultipleExpanded:n,allowZeroExpanded:t,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),n}(o.PureComponent);c(S,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var M,C=function(e){f(n,e);var t=y(n);function n(){var e;l(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return c(g(e=t.call.apply(t,[this].concat(o))),"renderChildren",(function(t){return t?e.props.children(t):null})),e}return s(n,[{key:"render",value:function(){return(0,o.createElement)(I.Consumer,null,this.renderChildren)}}]),n}(o.PureComponent),k=function(e){var t=e.className,n=void 0===t?"accordion":t,r=e.allowMultipleExpanded,i=e.allowZeroExpanded,a=e.onChange,l=e.preExpanded,u=v(e,["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"]);return(0,o.createElement)(S,{preExpanded:l,allowMultipleExpanded:r,allowZeroExpanded:i,onChange:a},(0,o.createElement)("div",p({"data-accordion-component":"Accordion",className:n},u)))};!function(e){e.Accordion="Accordion",e.AccordionItem="AccordionItem",e.AccordionItemButton="AccordionItemButton",e.AccordionItemHeading="AccordionItemHeading",e.AccordionItemPanel="AccordionItemPanel"}(M||(M={}));var j=M,O=0;function P(){var e=O;return O+=1,"raa-".concat(e)}var T=/[\u0009\u000a\u000c\u000d\u0020]/g;function L(e){return""!==e&&!T.test(e)||(console.error('uuid must be a valid HTML5 id but was given "'.concat(e,'", ASCII whitespaces are forbidden')),!1)}var D=(0,o.createContext)(null),N=function(e){f(n,e);var t=y(n);function n(){var e;l(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return c(g(e=t.call.apply(t,[this].concat(i))),"toggleExpanded",(function(){e.props.accordionContext.toggleExpanded(e.props.uuid)})),c(g(e),"renderChildren",(function(t){var n=e.props,r=n.uuid,i=n.dangerouslySetExpanded,a=null!=i?i:t.isItemExpanded(r),l=t.isItemDisabled(r),u=t.getPanelAttributes(r,i),s=t.getHeadingAttributes(r),c=t.getButtonAttributes(r,i);return(0,o.createElement)(D.Provider,{value:{uuid:r,expanded:a,disabled:l,toggleExpanded:e.toggleExpanded,panelAttributes:u,headingAttributes:s,buttonAttributes:c}},e.props.children)})),e}return s(n,[{key:"render",value:function(){return(0,o.createElement)(C,null,this.renderChildren)}}]),n}(o.Component),A=function(e){return(0,o.createElement)(C,null,(function(t){return(0,o.createElement)(N,p({},e,{accordionContext:t}))}))},_=function(e){f(n,e);var t=y(n);function n(){var e;l(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return c(g(e=t.call.apply(t,[this].concat(o))),"renderChildren",(function(t){return t?e.props.children(t):null})),e}return s(n,[{key:"render",value:function(){return(0,o.createElement)(D.Consumer,null,this.renderChildren)}}]),n}(o.PureComponent),B=function(e){f(n,e);var t=y(n);function n(){var e;l(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return c(g(e=t.call.apply(t,[this].concat(i))),"instanceUuid",P()),c(g(e),"renderChildren",(function(t){var n=e.props,r=(n.uuid,n.className),i=n.activeClassName,a=(n.dangerouslySetExpanded,v(n,["uuid","className","activeClassName","dangerouslySetExpanded"])),l=t.expanded&&i?i:r;return(0,o.createElement)("div",p({"data-accordion-component":"AccordionItem",className:l},a))})),e}return s(n,[{key:"render",value:function(){var e=this.props,t=e.uuid,n=void 0===t?this.instanceUuid:t,r=e.dangerouslySetExpanded,i=v(e,["uuid","dangerouslySetExpanded"]);return L(n),i.id&&L(i.id),(0,o.createElement)(A,{uuid:n,dangerouslySetExpanded:r},(0,o.createElement)(_,null,this.renderChildren))}}]),n}(o.Component);function H(e){return e&&(e.matches('[data-accordion-component="Accordion"]')?e:H(e.parentElement))}function R(e){var t=H(e);return t&&Array.from(t.querySelectorAll('[data-accordion-component="AccordionItemButton"]'))}c(B,"defaultProps",{className:"accordion__item"}),c(B,"displayName",j.AccordionItem);var F="40",Z="35",z="13",W="36",G="37",U="39",V="32",Y="38",J=function(e){var t=e.toggleExpanded,n=e.className,r=void 0===n?"accordion__button":n,i=v(e,["toggleExpanded","className"]);return i.id&&L(i.id),(0,o.createElement)("div",p({className:r},i,{role:"button",tabIndex:0,onClick:t,onKeyDown:function(e){var n,r,o=e.which.toString();if(o!==z&&o!==V||(e.preventDefault(),t()),e.target instanceof HTMLElement)switch(o){case W:e.preventDefault(),n=e.target,(r=(R(n)||[])[0])&&r.focus();break;case Z:e.preventDefault(),function(e){var t=R(e)||[],n=t[t.length-1];n&&n.focus()}(e.target);break;case G:case Y:e.preventDefault(),function(e){var t=R(e)||[],n=t.indexOf(e);if(-1!==n){var r=t[n-1];r&&r.focus()}}(e.target);break;case U:case F:e.preventDefault(),function(e){var t=R(e)||[],n=t.indexOf(e);if(-1!==n){var r=t[n+1];r&&r.focus()}}(e.target)}},"data-accordion-component":"AccordionItemButton"}))},Q=function(e){return(0,o.createElement)(_,null,(function(t){var n=t.toggleExpanded,r=t.buttonAttributes;return(0,o.createElement)(J,p({toggleExpanded:n},e,r))}))},X=function(e){f(n,e);var t=y(n);function n(){var e;l(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return c(g(e=t.call.apply(t,[this].concat(o))),"ref",void 0),c(g(e),"setRef",(function(t){e.ref=t})),e}return s(n,[{key:"componentDidUpdate",value:function(){n.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){n.VALIDATE(this.ref)}},{key:"render",value:function(){return(0,o.createElement)("div",p({"data-accordion-component":"AccordionItemHeading"},this.props,{ref:this.setRef}))}}],[{key:"VALIDATE",value:function(e){if(void 0===e)throw new Error("ref is undefined");if(1!==e.childElementCount||!e.firstElementChild||"AccordionItemButton"!==e.firstElementChild.getAttribute("data-accordion-component"))throw new Error("AccordionItemButton may contain only one child element, which must be an instance of AccordionItemButton.\n\nFrom the WAI-ARIA spec (https://www.w3.org/TR/wai-aria-practices-1.1/#accordion):\n\n“The button element is the only element inside the heading element. That is, if there are other visually persistent elements, they are not included inside the heading element.”\n\n")}}]),n}(o.PureComponent);c(X,"defaultProps",{className:"accordion__heading","aria-level":3});var q=function(e){return(0,o.createElement)(_,null,(function(t){var n=t.headingAttributes;return e.id&&L(e.id),(0,o.createElement)(X,p({},e,n))}))};q.displayName=j.AccordionItemHeading;var $=function(e){var t=e.className,n=void 0===t?"accordion__panel":t,r=e.id,i=v(e,["className","id"]),a=function(e){var t=e.panelAttributes;return r&&L(r),(0,o.createElement)("div",p({"data-accordion-component":"AccordionItemPanel",className:n},i,t))};return(0,o.createElement)(_,null,a)},K=e=>o.createElement("div",{className:"wprm-admin-onboarding-accordion-container"},e.hasOwnProperty("title")&&o.createElement("h2",null,e.title),o.createElement(k,{className:"wprm-admin-onboarding-accordion",allowZeroExpanded:!0},e.items.map(((e,t)=>o.createElement(B,{key:t},o.createElement(q,null,o.createElement(Q,null,e.header)),o.createElement($,null,e.content)))))),ee=wprm_admin.wprm_url+"assets/images/faq/creating/",te=e=>o.createElement(K,{items:[{header:"Gutenberg Block Editor (WordPress default)",content:o.createElement(o.Fragment,null,o.createElement("p",null,"This is the default editor for WordPress and the one we recommend. To add a recipe you ",o.createElement("strong",null,"add a WPRM Recipe block")," to the post content."),o.createElement("img",{src:ee+"gutenberg-block.png"}),o.createElement("p",null,"After adding a WPRM Recipe block you can click a button to ",o.createElement("strong",null,"create a new recipe or insert an existing one"),'. The "Create new from Existing Recipe" button can be used to duplicate an existing recipe to start your new recipe from.'),o.createElement("img",{src:ee+"gutenberg-block-buttons.png"}),o.createElement("p",null,"Clicking on a button will open up the recipe modal for you to fill in."))},{header:"Classic Editor",content:o.createElement(o.Fragment,null,o.createElement("p",null,"You won't get a nice preview of the recipe, but we still fully support the Classic Editor. To add a recipe, ",o.createElement("strong",null,"click on the WP Recipe Maker button or icon")," in the visual editor."),o.createElement("img",{src:ee+"classic-editor-buttons.png"}),o.createElement("p",null,"After clicking a modal will show up with all things that WP Recipe Maker can insert for you."),o.createElement("img",{src:ee+"classic-editor-modal.png"}),o.createElement("p",null,"Click the button to ",o.createElement("strong",null,"create a new recipe or insert an existing one"),'. The "Create new from Existing Recipe" button can be used to duplicate an existing recipe to start your new recipe from.'))},{header:"Elementor Page Builder",content:o.createElement(o.Fragment,null,o.createElement("p",null,"We integrate with the Elementor Page Builder so you can simply ",o.createElement("strong",null,"add a WPRM Recipe widget to your post"),"."),o.createElement("img",{src:ee+"elementor-widget.png"}),o.createElement("p",null,'When you click on "Create or edit Recipe" it will take you to the ',o.createElement("strong",null,"WP Recipe Maker Manage page explained below"),", as recipes can't be created or edited in the Elementor interface."),o.createElement("p",null,"Once you've create a recipe you can just ",o.createElement("strong",null,"search for its name")," to insert it."),o.createElement("img",{src:ee+"elementor-select-recipe.png"}))},{header:"Other Page Builder",content:o.createElement(o.Fragment,null,o.createElement("p",null,"If you're using a page builder that we don't integrate with you can still use WP Recipe Maker. You'll ",o.createElement("strong",null,"create a recipe on the WP Recipe Maker Manage page explained below"),"."),o.createElement("p",null,"After creating a recipe you ",o.createElement("strong",null,"type the recipe shortcode")," where you want the recipe to appear."),o.createElement("img",{src:ee+"page-builder.png"}))},{header:"WordPress.com Editor",content:o.createElement(o.Fragment,null,o.createElement("p",null,"If your interface ",o.createElement("strong",null,"looks like the classic editor but doesn't have the WP Recipe Maker button")," you might be using the WordPress.com interface."),o.createElement("img",{src:ee+"wordpress-com-interface.png"}),o.createElement("p",null,"One option you have is to ",o.createElement("strong",null,'type the recipe shortcode as shown under "Other Page Builder"')," above."),o.createElement("p",null,"Or you could revert to the ",o.createElement("strong",null,"classic WP Admin interface")," through the menu link."),o.createElement("img",{src:ee+"wordpress-com-admin-link.png"}),o.createElement("p",null,"Once in the classic interface you can follow the ",o.createElement("strong",null,"Classic Editor")," instructions above."))}]}),ne=wprm_admin.wprm_url+"assets/images/faq/creating/",re=e=>o.createElement("div",{className:"wprm-admin-onboarding-step-creating"},o.createElement("p",null,"An important thing about WP Recipe Maker is that ",o.createElement("strong",null,"recipes do not exist on their own"),". You create a recipe and then ",o.createElement("strong",null,"add it to a regular post")," on your website."),o.createElement("p",null,"The way to add a recipe to a post depends on the editor you're using."),o.createElement("h2",null,"What editor are you using?"),o.createElement("p",null,"Click on the editor you use on your website to get instructions on how to add a recipe."),o.createElement(te,null),o.createElement("h2",null,"Using the WP Recipe Maker Manage page"),o.createElement("p",null,"Whatever editor you're using, an easy way to ",o.createElement("strong",null,"create, edit, and manage")," your recipes is through the ",o.createElement("em",null,"WP Recipe Maker > Manage")," page that will be available after going through these onboarding steps."),o.createElement("p",null,"On the Manage page you will find an ",o.createElement("strong",null,"overview of all the recipes on your website"),"."),o.createElement("img",{src:ne+"manage-overview.png"}),o.createElement("p",null,"There is a LOT to explore on the manage page, but for now just focus on the ",o.createElement("strong",null,'blue "Create Recipe" button')," in the top right. Simply clicking this will create a new recipe for you."),o.createElement("p",null,"It's worth repeating that ",o.createElement("strong",null,"this new recipe won't get displayed anywhere automatically"),". It has to be added to a post using one of the methods shown above. This will then become ",o.createElement("strong",null,"the parent post for the recipe"),", the place on your website where the recipe is displayed."),o.createElement("p",null,"Now that you know how to create recipes it's time to have a look at them!")),oe=n(720),ie=n(99237);class ae extends o.Component{constructor(e){super(e);var t=!1;wprm_admin_template.templates.hasOwnProperty("chic")&&(t=wprm_admin_template.templates.chic),this.state={template:t}}render(){var e=[];return Object.values(wprm_admin_template.templates).forEach((t=>{"recipe"===t.type&&"excerpt"!==t.slug&&"compact-howto"!==t.slug&&e.push(t)})),o.createElement("div",{className:"wprm-admin-onboarding-step-template"},o.createElement("p",null,"WP Recipe Maker includes a ",o.createElement("strong",null,"full Template Editor to customize the entire look and feel of your recipes")," to match your needs. It can be accessed through the ",o.createElement("em",null,"WP Recipe Maker > Settings")," page."),o.createElement("p",null,"For now let's just start by choosing one of our default templates. You'll have time to dive into the customization rabbit hole later!"),o.createElement("h2",null,"Select a template for your recipes"),o.createElement("div",{className:"wprm-admin-onboarding-step-template-select"},e.map(((e,t)=>{var n="wprm-manage-templates-template";return n+=!1!==this.state.template&&this.state.template.slug===e.slug?" wprm-manage-templates-template-selected":"",n+=e.premium&&!wprm_admin.addons.premium?" wprm-manage-templates-template-premium":"",o.createElement("div",{key:t,className:n,onClick:()=>{this.setState({template:e})}},e.name)}))),o.createElement("div",{className:"wprm-admin-onboarding-step-template-preview"},!1!==this.state.template&&o.createElement(o.Fragment,null,this.state.template.premium&&!wprm_admin.addons.premium&&o.createElement("p",{style:{color:"darkred",textAlign:"center"}},"You need ",o.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium")," to use this template."),o.createElement(oe.Z,{template:this.state.template,mode:"onboarding",onChangeMode:()=>{},onChangeHTML:()=>{}}))),o.createElement("div",{className:"footer-buttons"},o.createElement("button",{type:"button",className:"button",id:"prev-button",onClick:()=>{this.props.jumpToStep(1)}},"Previous"),o.createElement("button",{type:"button",className:"button button-primary",id:"next-button",onClick:()=>{this.state.template?this.state.template.premium&&!wprm_admin.addons.premium?alert("This template is only available in WP Recipe Maker Premium."):(ie.Z.settings.save({recipe_template_mode:"modern",default_recipe_template_modern:this.state.template.slug}),this.props.jumpToStep(3)):alert("Please select a template above.")}},"Use the above Template")))}}class le extends o.Component{constructor(e){super(e);var t=!1;wprm_admin_template.templates.hasOwnProperty("snippet-basic-buttons")&&(t=wprm_admin_template.templates["snippet-basic-buttons"]),this.state={template:t}}render(){var e=[];return Object.values(wprm_admin_template.templates).forEach((t=>{"snippet"===t.type&&e.push(t)})),o.createElement("div",{className:"wprm-admin-onboarding-step-snippet"},o.createElement("p",null,"Most people have content before the actual recipe. Often, there are some paragrahs with additional information or backstory. Maybe a few ads in between? You want people to read this, but if they are in a hurry you could ",o.createElement("strong",null,"give your visitors the option to jump directly to the recipe as well"),"!"),o.createElement("p",null,'That\'s where the Recipe Snippets feature comes in. These snippets usually contain a "Jump to Recipe" and "Print Recipe" button but can include any field you want, really. Have a look at the ',o.createElement("em",null,"Snippet Summary")," template below, for example."),o.createElement("p",null,"These snippets are ",o.createElement("strong",null,"fully customizable in the Template Editor")," as well. So you can change colors, text and add more information afterwards."),o.createElement("h2",null,"Select a snippet template"),o.createElement("div",{className:"wprm-admin-onboarding-step-template-select"},e.map(((e,t)=>{var n="wprm-manage-templates-template";return n+=!1!==this.state.template&&this.state.template.slug===e.slug?" wprm-manage-templates-template-selected":"",n+=e.premium&&!wprm_admin.addons.premium?" wprm-manage-templates-template-premium":"",o.createElement("div",{key:t,className:n,onClick:()=>{this.setState({template:e})}},e.name)}))),o.createElement("div",{className:"wprm-admin-onboarding-step-template-preview"},!1!==this.state.template&&o.createElement(o.Fragment,null,this.state.template.premium&&!wprm_admin.addons.premium&&o.createElement("p",{style:{color:"darkred",textAlign:"center"}},"You need ",o.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium")," to use this template."),o.createElement(oe.Z,{template:this.state.template,mode:"onboarding",onChangeMode:()=>{},onChangeHTML:()=>{}}),o.createElement("p",null,"This would be the start of your regular post content, so the snippet appears right at the top of your post."))),o.createElement("div",{className:"footer-buttons"},o.createElement("button",{type:"button",className:"button",id:"prev-button",onClick:()=>{this.props.jumpToStep(2)}},"Previous"),o.createElement("button",{type:"button",className:"button button-primary",id:"skip-button",onClick:()=>{this.props.jumpToStep(4)}},"Do not enable snippets right now"),o.createElement("button",{type:"button",className:"button button-primary",id:"next-button",onClick:()=>{this.state.template?this.state.template.premium&&!wprm_admin.addons.premium?alert("This template is only available in WP Recipe Maker Premium."):(ie.Z.settings.save({recipe_snippets_automatically_add_modern:!0,recipe_snippets_template:this.state.template.slug}),this.props.jumpToStep(4)):alert("Please select a template above.")}},"Use the above Snippet Template")))}}var ue=e=>o.createElement(K,{items:[{header:"Earn affiliate income with ingredient and equipment links",content:o.createElement(o.Fragment,null,!wprm_admin.addons.premium&&o.createElement("p",{style:{color:"darkred"}},"This feature is available in ",o.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium"),"."),o.createElement("p",null,"Ingredient and equipment links are perfect for affiliate marketing: you set the link once and it will automatically get displayed whenever you use that ingredient/equipment in a recipe."),o.createElement("p",null,"For equipment you even have the ability to add an image to increase the changes of having visitors click on the link."),o.createElement("ul",null,o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/29-ingredient-links",target:"_blank"},"Learn about ingredient links")),o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/193-equipment-links",target:"_blank"},"Learn about equipment links")),o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/203-equipment-images",target:"_blank"},"Adding equipment images"))))},{header:"Calculating and adding nutrition facts to your recipes",content:o.createElement(o.Fragment,null,!wprm_admin.addons.pro&&o.createElement("p",{style:{color:"darkred"}},"This feature is available in ",o.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium - Pro Bundle"),"."),o.createElement("p",null,"Provide your visitors with the complete recipe details by including a full nutrition label. With the Pro Bundle we can even ",o.createElement("strong",null,"help calculated these nutrition facts for you"),"."),o.createElement("p",null,"You have full control over the values that get displayed and can even ",o.createElement("strong",null,"create your own custom and calculated nutrients"),". This can be used for fields like Net Carbs, for example."),o.createElement("ul",null,o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/22-nutrition-label",target:"_blank"},"Nutrition Label")),o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/21-nutrition-facts-calculation",target:"_blank"},"Calculating Nutrition Facts")),o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/199-custom-and-calculated-nutrients",target:"_blank"},"Custom and Calculated Nutrients"))))},{header:"Reach an international audience with US and Metric units",content:o.createElement(o.Fragment,null,!wprm_admin.addons.pro&&o.createElement("p",{style:{color:"darkred"}},"This feature is available in ",o.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium - Pro Bundle"),"."),o.createElement("p",null,"Some of your readers might have a hard time making your recipes because they simply don't use the units you write them in. Not everyone is familiar with cups or grams, for example."),o.createElement("p",null,"Our unit conversion allows you to ",o.createElement("strong",null,"offer both unit system")," to your visitors and have them switch back and forth. To get these values we integrate with an API that helps calculate them for you!"),o.createElement("ul",null,o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/18-unit-conversion",target:"_blank"},"Setting up the Unit Conversion feature"))))},{header:"Set up Meal Planning with the recipe collections feature",content:o.createElement(o.Fragment,null,!wprm_admin.addons.elite&&o.createElement("p",{style:{color:"darkred"}},"This feature is available in ",o.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium - Elite Bundle"),"."),o.createElement("p",null,"Recipe Collections allow your visitors to ",o.createElement("strong",null,"save the recipes on your website in their own collections and then generate a shopping list")," for them. Can be used for collecting favorites, meal planning and much more!"),o.createElement("p",null,"As the site owner you can also ",o.createElement("strong",null,"create your own saved collections to present to your users"),". This can include as many recipes (and individual ingredients) as you want and you can even total the nutrition facts for those recipes."),o.createElement("ul",null,o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/148-recipe-collections",target:"_blank"},"Learn more about Recipe Collections")),o.createElement("li",null,o.createElement("a",{href:"https://demo.wprecipemaker.com/saved-recipe-collection/",target:"_blank"},"See a Saved Recipe Collection in action"))))}]}),se=e=>o.createElement(o.Fragment,null,o.createElement("p",null,"We built an email course full of ",o.createElement("strong",null,"tips and tricks")," to help you get the most out of WP Recipe Maker."),o.createElement("p",null,"During the course you'll get introduced to a ",o.createElement("strong",null,"private Facebook group")," full of WP Recipe Maker Food Bloggers to learn from and we'll even ",o.createElement("strong",null,"help promote your recipes on social media")," for free."),o.createElement("form",{action:"https://www.getdrip.com/forms/917801565/submissions",method:"post",className:"wprm-drip-form","data-drip-embedded-form":"917801565",target:"_blank"},o.createElement("div",null,o.createElement("div",null,o.createElement("label",{htmlFor:"drip-email"},"Email Address"),o.createElement("br",null),o.createElement("input",{type:"email",id:"drip-email",name:"fields[email]",defaultValue:wprm_faq.user.email}),o.createElement("input",{type:"hidden",id:"drip-customer-website",name:"fields[customer_website]",value:wprm_faq.user.website})),o.createElement("div",null,o.createElement("input",{type:"hidden",name:"fields[eu_consent]",id:"drip-eu-consent-denied",value:"denied"}),o.createElement("input",{type:"checkbox",name:"fields[eu_consent]",id:"drip-eu-consent",value:"granted"}),o.createElement("label",{htmlFor:"drip-eu-consent"},"I understand and agree to the ",o.createElement("a",{href:"https://www.iubenda.com/privacy-policy/82708778"},"privacy policy"))),o.createElement("div",null,o.createElement("input",{type:"hidden",name:"fields[eu_consent_message]",value:"I understand and agree to the privacy policy (https://www.iubenda.com/privacy-policy/82708778)"}))),o.createElement("div",null,o.createElement("input",{type:"submit",name:"submit",value:"Help me get the most out of WP Recipe Maker!",className:"button button-primary","data-drip-attribute":"sign-up-button"})))),ce=wprm_admin.wprm_url+"assets/images/faq/getting-started/",pe=e=>o.createElement(K,{items:[{header:"Using WPRM in a different language (or multilingual site)",content:o.createElement(o.Fragment,null,o.createElement("p",null,"We follow WordPress standards to make sure all text in WP Recipe Maker can be translated to fit your needs. Learn more here:"),o.createElement("ul",null,o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/128-translating-text-in-the-plugin",target:"_blank"},"Translating any text in WP Recipe Maker")),o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/132-how-to-use-this-for-a-multilingual-blog",target:"_blank"},"Using WPRM on a multilingual website"))))},{header:"Importing recipes from another plugin",content:o.createElement(o.Fragment,null,o.createElement("p",null,"Already have recipes on your website that were created in a different plugin? There's a good chance we can import them for you! If there are recipes we can import, you will find them on the ",o.createElement("em",null,"WP Recipe Maker > Import Recipes"),"."),o.createElement("ul",null,o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/69-importing-recipes-from-other-plugins",target:"_blank"},"All the plugins we can import from")),o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/86-custom-recipe-importer",target:"_blank"},"Develop your own recipe importer"))))},{header:"Adding recipes from Word, Google Docs, ...",content:o.createElement(o.Fragment,null,o.createElement("p",null,"If you already have your recipes in another document, filling in all the individual fields can be a bit tedious. Use our ",o.createElement("strong",null,"import recipe from text feature")," to paste in that recipe entirely and speed up the process."),o.createElement("p",null,"The field to paste in the recipe can be found after scrolling up all the way in the recipe modal:"),o.createElement("img",{src:ce+"import-from-text.png"}),o.createElement("p",null,"This will open up a new modal where you can follow the steps to import."),o.createElement("ul",null,o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/70-import-recipe-from-text",target:"_blank"},"Learn more about the import recipe from text feature"))))},{header:"Recipe metadata and SEO",content:o.createElement(o.Fragment,null,o.createElement("p",null,"An important reason for using a recipe plugin is to have it ",o.createElement("strong",null,"automatically add the recipe metadata that Google wants to see"),"."),o.createElement("p",null,"But WP Recipe Maker can only add that metadata if you actually fill in all the fields. To find out if you've done that, have a look at the SEO column on the ",o.createElement("em",null,"WP Recipe Maker > Manage")," page and make sure you ",o.createElement("strong",null,"get a green light there"),"."),o.createElement("ul",null,o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/51-recipe-metadata-for-seo",target:"_blank"},"Learn more about Recipe Metadata for SEO")),o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/74-recipe-metadata-checker",target:"_blank"},"Using the Recipe Metadata Checker"))))},{header:"Using the Template Editor",content:o.createElement(o.Fragment,null,o.createElement("p",null,"Everyone is unique so we want you to be able to ",o.createElement("strong",null,"completely change the recipe template to your liking"),". Not everyone will have the budget for a completely custom-coded template though, so that's what we built the Template Editor for!"),o.createElement("p",null,"With a little bit of a learning curve everyone should be able to add or remove specific parts of the recipe box, change labels and colors or add custom text. The Template Editor can be accessed through the ",o.createElement("em",null,"WP Recipe Maker > Settings")," page."),o.createElement("ul",null,o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/118-template-editor-101",target:"_blank"},"Go through the Template Editor 101 documentation first")),o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/category/25-template-editor-faq",target:"_blank"},"Learn more in these Template Editor FAQs"))))},{header:"WPRM for recipe roundup posts",content:o.createElement(o.Fragment,null,o.createElement("p",null,'WP Recipe Maker can also be used for recipe roundup posts (think "Easy Valentine\'s Day Menu" or "10 Scary Halloween Recipes"), ',o.createElement("strong",null,"linking to both recipes on your own website and others"),"."),o.createElement("p",null,"A good reason for using WPRM for these kind of posts is that we'll automatically include the ",o.createElement("strong",null,"ItemList metadata that Google needs to display your recipes in a Carousel"),". That should definitely get you some extra visits!"),o.createElement("ul",null,o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/182-itemlist-metadata-for-recipe-roundup-posts",target:"_blank"},"Learn about using recipe roundup feature"))))}]}),de=e=>o.createElement("div",{id:"wprm-admin-faq-container"},o.createElement("h1",null,"Get the most out of WP Recipe Maker"),o.createElement(se,null),o.createElement("h1",null,"Explainer Videos"),o.createElement("p",null,"Are you a visual learner? Make sure to check out the ",o.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/videos/",target:"_blank"},"WP Recipe Maker Explainer Videos"),' we have on several topics. "Introduction to WP Recipe Maker" is a good one to start with:'),o.createElement("iframe",{width:"640",height:"433",src:"https://www.loom.com/embed/9f268e92cc064be9a45580a46fc84084",frameborder:"0",webkitallowfullscreen:!0,mozallowfullscreen:!0,allowfullscreen:!0}),o.createElement("h1",null,"Documentation & Support"),o.createElement("p",null,"We've listed some frequently asked questions below. If you need more help we recommend checking out the ",o.createElement("a",{href:"https://help.bootstrapped.ventures/collection/1-wp-recipe-maker",target:"_blank"},"WP Recipe Maker Knowledge Base")," and the ",o.createElement("a",{href:"https://demo.wprecipemaker.com",target:"_blank"},"WPRM Demo Site")," that shows all features in action."),o.createElement("p",null,"If you have any other questions or suggestions at all, ",o.createElement("strong",null,"contact us using the blue question mark in the bottom right")," of this page or by emailing ",o.createElement("a",{href:"mailto:support@bootstrapped.ventures"},"support@bootstrapped.ventures")," directly. We answer all tickets within 24 hours, and usually a lot faster."),o.createElement("h1",null,"Frequently Asked Questions"),o.createElement("p",null,"Just click on the different sections to learn more!"),o.createElement("h2",null,"Getting started with WP Recipe Maker"),o.createElement(pe,null),o.createElement("h2",null,"Adding recipes in different editors"),o.createElement(te,null),o.createElement("h2",null,"Advanced WPRM Usage"),o.createElement(ue,null),o.createElement("p",null,"Need more? Go to the ",o.createElement("a",{href:"https://help.bootstrapped.ventures/collection/1-wp-recipe-maker",target:"_blank"},"WP Recipe Maker Knowledge Base"),".")),fe=e=>o.createElement("div",{className:"wprm-admin-onboarding-step-next"},o.createElement("p",null,"You made it to the end of the onboarding! There is a lot left to explore, but we recommend just starting by creating a recipe now. And don't forget to ",o.createElement("strong",null,"sign up for the email course")," below to get the most out of this plugin. You won't regret it!"),o.createElement("p",null,"No need to worry about leaving this page either. The information below will be available on the ",o.createElement("em",null,"WP Recipe Maker > FAQ & Support")," page at any time."),o.createElement(de,null),o.createElement("div",{className:"footer-buttons"},o.createElement("a",{href:wprm_admin.manage_url+"&skip_onboarding=1",className:"button button-primary"},"Continue to the Manage page"))),he=[{name:"Welcome",component:o.createElement(a,null)},{name:"Creating Recipes",component:o.createElement(re,null)},{name:"Template",component:o.createElement(ae,null)},{name:"Snippets",component:o.createElement(le,null)},{name:"Next Steps",component:o.createElement(fe,null)}];class me extends o.Component{render(){return wprm_faq.onboarded?o.createElement(de,null):o.createElement(o.Fragment,null,o.createElement("h1",null,"WP Recipe Maker"),o.createElement("div",{id:"wprm-admin-onboarding-steps"},o.createElement(i.Z,{steps:he,stepsNavigation:!1,prevBtnOnLastStep:!1,backButtonCls:"button",nextButtonCls:"button button-primary",onStepChange:e=>{e===he.length-1&&fetch(wprm_admin.ajax_url,{method:"POST",credentials:"same-origin",body:"action=wprm_finished_onboarding&security="+wprm_admin.nonce,headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}})}})))}}var ve=document.getElementById("wprm-admin-faq");ve&&r.render(o.createElement(me,null),ve)},5308:function(e,t,n){"use strict";n(87191);var r=n(52082),o={selectImage(e){this.select("image",e)},selectVideo(e){this.select("video",e)},select(e,t){var n={title:(0,r.S)("Select Media"),button:{text:(0,r.S)("Select")},multiple:!1};"video"===e?(n.frame="video",n.state="video-details"):n.library={type:"image"};var o=wp.media(n);o.on("select",(function(){var e=o.state().get("selection").first().toJSON();t(e)})),o.on("update",(function(){var e=o.state().media.attachment;e&&t(e)})),o.open()}};t.Z=o},57573:function(e,t,n){"use strict";n(54883),n(72975),n(33290),n(19985),n(22321),n(68995);t.Z={parseCSS(e){var t=e.style.css;for(var n of Object.values(e.style.properties)){var r="";Object.entries(n).forEach((e=>{var[t,n]=e;["id","name","default","value","options"].includes(t)||(r=" ".concat(t,"=").concat(n))}));var o="".concat(n.value,"; /*wprm_").concat(n.id).concat(r,"*/");t=t.replace(new RegExp("%wprm_".concat(n.id,"%s*;"),"g"),o)}return t},getShortcodeName(e){var t=e.replace("wprm-","");return t=(t=t.replace(/-/g," ")).toLowerCase().replace(/\b[a-z]/g,(function(e){return e.toUpperCase()}))},getFullShortcode(e){var t="["+e.id;for(var n in e.attributes)if(e.attributes.hasOwnProperty(n)){var r=e.attributes[n];t+=" "+n+'="'+(r=(r=r.replace(/"/gm,""")).replace(/\]/gm,"]"))+'"'}return t+="]"},dependencyMet(e,t){var n=!0;if(t&&e.hasOwnProperty("dependency")){var r=e.dependency;Array.isArray(r)||(r=[r]);var o=e.hasOwnProperty("dependency_compare")?e.dependency_compare:"AND",i=!0;for(var a of r)if(t.hasOwnProperty(a.id)){var l=!1,u=t[a.id].value,s=a.hasOwnProperty("type")?a.type:"match";"inverse"==s?u!=a.value&&(l=!0):"includes"==s?u.includes(a.value)&&(l=!0):u==a.value&&(l=!0),"OR"===o?(i&&(n=!1,i=!1),n=n||l):n=n&&l}}return n}}},720:function(e,t,n){"use strict";n.d(t,{Z:function(){return O}});n(31807),n(54883),n(55281),n(75668),n(22321),n(68995);var r=n(89526),o=n(14264),i=n.n(o),a=n(57573),l=n(34133),u=(n(29897),n(98373)),s=n.n(u),c=n(99237),p=n(73961),d=e=>p.createPortal(e.children,document.getElementById("wprm-block-properties")),f=n(1703);function h(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}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class g extends r.Component{constructor(e){super(e),this.state={fullShortcode:"",html:"",loading:!1,blockMode:"edit"}}componentDidMount(){this.checkShortcodeChange()}componentDidUpdate(e){this.checkShortcodeChange(),e.recipeId!==this.props.recipeId&&this.updatePreview(),e.editingBlock!==this.props.editingBlock&&this.onChangeBlockMode("edit")}checkShortcodeChange(){var e=a.Z.getFullShortcode(this.props.shortcode);e!==this.state.fullShortcode&&this.setState({fullShortcode:e},this.updatePreview)}updatePreview(){this.setState({loading:!0}),c.Z.template.previewShortcode(this.props.shortcode.uid,this.state.fullShortcode,this.props.recipeId).then((e=>{this.setState({html:e.hasOwnProperty(this.props.shortcode.uid)?e[this.props.shortcode.uid]:"",loading:!1})}))}getBlockProperties(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.shortcode,t={},n=!!wprm_admin_template.shortcodes.hasOwnProperty(e.id)&&wprm_admin_template.shortcodes[e.id];return n&&Object.entries(n).forEach((n=>{var[r,o]=n;if(o.type){var i=o.name?o.name:r.replace(/_/g," ").toLowerCase().replace(/\b[a-z]/g,(function(e){return e.toUpperCase()})),a=e.attributes.hasOwnProperty(r)?e.attributes[r]:o.default;a=(a=a.replace(/"/gm,'"')).replace(/]/gm,"]"),t[r]=m(m({},o),{},{id:r,name:i,value:a})}})),t}onChangeBlockMode(e){e!==this.state.blockMode&&this.setState({blockMode:e})}onCopyPasteStyle(e,t){var n=this.getBlockProperties(this.props.shortcodes[e]),r=this.getBlockProperties(this.props.shortcodes[t]),o={};Object.entries(r).forEach((e=>{var[t,r]=e;n.hasOwnProperty(t)&&n[t].value!==r.value&&"icon"!==t&&"text"!==t&&"label"!==t&&"header"!==t&&n[t].type===r.type&&("dropdown"!==r.type||r.options.hasOwnProperty(n[t].value))&&(o[t]=n[t].value)})),Object.keys(o).length&&this.props.onBlockPropertiesChange(t,o)}render(){var e=this.getBlockProperties();return r.createElement(r.Fragment,null,this.state.loading?r.createElement(l.Z,null):r.createElement(r.Fragment,null,i()(this.state.html.trim(),{replace:function(e){if(!e.parent&&this.props.shortcode.uid===this.props.hoveringBlock)return e.attribs||(e.attribs={}),e.attribs.class=e.attribs.class?e.attribs.class+" wprm-template-block-hovering":"wprm-template-block-hovering",s()(e)}.bind(this)})),this.props.shortcode.uid===this.props.editingBlock?r.createElement(d,null,"edit"===this.state.blockMode&&r.createElement(r.Fragment,null,r.createElement("div",{className:"wprm-template-menu-block-details"},r.createElement("a",{href:"#",onClick:e=>(e.preventDefault(),this.props.onChangeEditingBlock(!1))},"Blocks")," > ",this.props.shortcode.name),r.createElement("div",{className:"wprm-template-menu-block-quick-edit"},r.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),this.onChangeBlockMode("copy")}},"Copy styles to...")," | ",r.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),this.onChangeBlockMode("paste")}},"Paste styles from...")),Object.values(e).map(((t,n)=>r.createElement(f.Z,{properties:e,property:t,onPropertyChange:(e,t)=>this.props.onBlockPropertyChange(this.props.shortcode.uid,e,t),key:n}))),!Object.keys(e).length&&r.createElement("p",null,"There are no adjustable properties for this block.")),("copy"===this.state.blockMode||"paste"===this.state.blockMode)&&r.createElement(r.Fragment,null,r.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),this.onChangeBlockMode("edit")}},"Stop"),r.createElement("p",null,"copy"===this.state.blockMode?"Copy styles to:":"Paste styles from:"),this.props.shortcodes.map(((e,t)=>e.uid===this.props.shortcode.uid?r.createElement("div",{key:t,className:"wprm-template-menu-block wprm-template-menu-block-self"},"copy"===this.state.blockMode?"Copying from":"Pasting to"," ",e.name):r.createElement("div",{key:t,className:e.uid===this.props.hoveringBlock?"wprm-template-menu-block wprm-template-menu-block-hover":"wprm-template-menu-block",onClick:()=>{var t="copy"===this.state.blockMode?this.props.shortcode.uid:e.uid,n="copy"===this.state.blockMode?e.uid:this.props.shortcode.uid;this.onCopyPasteStyle(t,n)},onMouseEnter:()=>this.props.onChangeHoveringBlock(e.uid),onMouseLeave:()=>this.props.onChangeHoveringBlock(!1)},e.name))))):null)}}var b=e=>p.createPortal(e.children,document.getElementById("wprm-add-blocks")),y=e=>p.createPortal(e.children,document.getElementById("wprm-remove-blocks")),x=(n(35054),n(45624));class w extends r.Component{getOptions(e){return e?c.Z.template.searchRecipes(e).then((e=>e.data.recipes_with_id)):Promise.resolve({options:[]})}render(){return r.createElement(x.ZP,{className:"wprm-main-container-preview-recipe",placeholder:"Select or search a recipe to preview",value:this.props.recipe,onChange:this.props.onRecipeChange,getOptionValue:e=>{var{id:t}=e;return t},getOptionLabel:e=>{var{text:t}=e;return t},defaultOptions:wprm_admin.latest_recipes,loadOptions:this.getOptions.bind(this),noOptionsMessage:()=>"Create a recipe on the Manage page",clearable:!1})}}function E(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}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var M=["wprm-spacer","wprm-text","wprm-link","wprm-image","wprm-call-to-action","wprm-icon","wprm-prevent-sleep"],C=[],k=Object.keys(wprm_admin_template.shortcodes).sort();for(var j of k)M.includes(j)||C.push(j);class O extends r.Component{constructor(e){super(e);var t=wprm_admin_template.preview_recipe;"demo"!==t&&0!==t.id||(t={id:"demo",text:"Use WPRM Demo Recipe"}),this.state={recipe:t,width:600,html:"",htmlMap:"",parsedHtml:"",shortcodes:[],editingBlock:!1,addingBlock:!1,hoveringBlock:!1,hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}componentDidMount(){this.checkHtmlChange()}componentDidUpdate(e){"blocks"===this.props.mode&&this.props.mode!==e.mode?this.onChangeEditingBlock(!1):this.checkHtmlChange()}checkHtmlChange(){this.props.template.html!==this.state.html&&this.changeHtml()}changeHtml(){var e=this.parseHtml(this.props.template.html);this.setState({html:this.props.template.html,htmlMap:e.htmlMap,parsedHtml:e.html,shortcodes:e.shortcodes,hasError:!1})}parseHtml(e){for(var t,n=e,o=[],u=/\[([^\s\]]*)\s*([^\]]*?)\]/gim;null!==(t=u.exec(e));){var s={},c=t[2].match(/(\w+=\"[^\"]*?\"|\w+=\'[^\']*?\'|\w+=\w*)/gim);if(c)for(var p=0;p<c.length;p++){var d=c[p],f=d.substring(0,d.indexOf("=")),h=d.substring(d.indexOf("=")+1);'"'!==h[0]&&"'"!==h[0]||(h=h.substr(1,h.length-2)),s[f]=h}var m=t[1],v=a.Z.getShortcodeName(m),b=o.length;n=n.replace(t[0],'<wprm-replace-shortcode-with-block uid="'+b+'"></wprm-replace-shortcode-with-block>'),o.push({uid:b,id:m,name:v,attributes:s})}var y=r.createElement(l.Z,null);try{y=i()(n,{replace:function(e){if("wprm-replace-shortcode-with-block"==e.name){var t=!!this.state.recipe&&this.state.recipe.id;return r.createElement(g,{recipeId:t,shortcode:o[e.attribs.uid],shortcodes:o,onBlockPropertyChange:this.onBlockPropertyChange.bind(this),onBlockPropertiesChange:this.onBlockPropertiesChange.bind(this),editingBlock:this.state.editingBlock,onChangeEditingBlock:this.onChangeEditingBlock.bind(this),hoveringBlock:this.state.hoveringBlock,onChangeHoveringBlock:this.onChangeHoveringBlock.bind(this)})}}.bind(this)})}catch(x){}return{htmlMap:n,html:y,shortcodes:o}}unparseHtml(){var e=this.state.htmlMap;for(var t of this.state.shortcodes){var n=a.Z.getFullShortcode(t);e=e.replace('<wprm-replace-shortcode-with-block uid="'+t.uid+'"></wprm-replace-shortcode-with-block>',n)}return e}onBlockPropertyChange(e,t,n){var r={};r[t]=n,this.onBlockPropertiesChange(e,r)}onBlockPropertiesChange(e,t){var n=this.state;n.shortcodes[e].attributes=I(I({},n.shortcodes[e].attributes),t),this.setState(n,(()=>{var e=this.unparseHtml();this.props.onChangeHTML(e)}))}onChangeEditingBlock(e){e!==this.state.editingBlock&&this.setState({editingBlock:e,hoveringBlock:!1},this.changeHtml)}onChangeHoveringBlock(e){e!==this.state.hoveringBlock&&this.setState({hoveringBlock:e},this.changeHtml)}onChangeAddingBlock(e){e!==this.state.addingBlock&&this.setState({addingBlock:e})}onAddBlockAfter(e){var t=this.state.htmlMap,n="["+this.state.addingBlock+"]",r='<wprm-replace-shortcode-with-block uid="'+e+'"></wprm-replace-shortcode-with-block>';(t=t.replace(r,r+"\n"+n))!==this.state.htmlMap&&this.setState({addingBlock:!1,hoveringBlock:!1,htmlMap:t},(()=>{var t=this.unparseHtml();this.props.onChangeHTML(t),this.props.onChangeMode("blocks"),this.setState({addingBlock:!1,hoveringBlock:!1},(()=>{this.onChangeEditingBlock(e+1)}))}))}onRemoveBlock(e){var t=this.state.htmlMap;(t=t.replace('<wprm-replace-shortcode-with-block uid="'+e+'"></wprm-replace-shortcode-with-block>',""))!==this.state.htmlMap&&this.setState({htmlMap:t},(()=>{var e=this.unparseHtml();this.props.onChangeHTML(e)}))}render(){var e=this.state.hasError?r.createElement(l.Z,null):this.state.parsedHtml;return"onboarding"===this.props.mode?r.createElement(r.Fragment,null,r.createElement("style",null,a.Z.parseCSS(this.props.template)),"recipe"===this.props.template.type&&r.createElement("div",{className:"wprm-recipe wprm-recipe-template-".concat(this.props.template.slug)},e),"snippet"===this.props.template.type&&r.createElement("div",{className:"wprm-recipe wprm-recipe-snippet wprm-recipe-template-".concat(this.props.template.slug)},e)):r.createElement(r.Fragment,null,r.createElement("div",{className:"wprm-main-container"},r.createElement("h2",{className:"wprm-main-container-name"},"Preview at ",r.createElement("input",{type:"number",min:"1",value:this.state.width,onChange:e=>{this.setState({width:e.target.value})}}),"px"),r.createElement("div",{className:"wprm-main-container-preview"},r.createElement(w,{recipe:this.state.recipe,onRecipeChange:e=>{e!==this.state.recipe&&this.setState({recipe:e,html:""})}}),this.state.recipe&&this.state.recipe.id?r.createElement("div",{className:"wprm-main-container-preview-content",style:{width:"".concat(this.state.width,"px")}},r.createElement("style",null,a.Z.parseCSS(this.props.template)),"recipe"===this.props.template.type&&r.createElement(r.Fragment,null,r.createElement("p",null,"This is an example paragraph that could be appearing before the recipe box, just to give some context to this preview. After this paragraph the recipe box will appear."),r.createElement("div",{className:"wprm-recipe wprm-recipe-template-".concat(this.props.template.slug)},e),r.createElement("p",null,"This is a paragraph appearing after the recipe box.")),"snippet"===this.props.template.type&&r.createElement(r.Fragment,null,r.createElement("p",null," "),r.createElement("div",{className:"wprm-recipe wprm-recipe-snippet wprm-recipe-template-".concat(this.props.template.slug)},e),r.createElement("p",null,"This would be the start of your post content, as the recipe snippets should automatically appear above. We'll be adding some example content below to give you a realistic preview."),r.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit. In eleifend vitae nisl et pharetra. Sed euismod nisi convallis arcu lobortis commodo. Mauris nec arcu blandit, ultrices nisi sit amet, scelerisque tortor. Mauris vitae odio sed nisl posuere feugiat eu sit amet nunc. Vivamus varius rutrum tortor, ut viverra mi. Pellentesque sed justo eget lectus eleifend consectetur. Curabitur hendrerit purus velit, ut auctor orci fringilla sed. Phasellus commodo luctus nulla, et rutrum risus lobortis in. Aenean ullamcorper, magna congue viverra consequat, libero elit blandit magna, in ultricies quam risus et magna. Aenean viverra lorem leo, eget laoreet quam suscipit viverra. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Quisque sodales dolor mauris. Ut sed tempus erat. Nulla metus diam, luctus ac erat bibendum, placerat maximus nisi. Nullam hendrerit eleifend lobortis."),r.createElement("p",null,"Proin tempus hendrerit orci, tincidunt bibendum justo tincidunt vel. Morbi porttitor finibus magna non imperdiet. Fusce sollicitudin ex auctor interdum ultricies. Proin efficitur eleifend lacus, dapibus eleifend nibh tempus at. Pellentesque feugiat imperdiet turpis, sed consequat diam tincidunt a. Mauris mollis justo nec tellus aliquam, efficitur scelerisque nunc semper. Morbi rhoncus ultricies congue. Sed semper aliquet interdum."),r.createElement("p",null,"Nam ultricies, tellus nec vulputate varius, ligula ipsum viverra libero, lacinia ultrices sapien erat id mi. Duis vel dignissim lectus. Aliquam vehicula finibus tortor, cursus fringilla leo sodales ut. Vestibulum nec erat pretium, finibus odio et, porta lorem. Nunc in mi lobortis, aliquet sem sollicitudin, accumsan mi. Nam pretium nibh nunc, vel varius ex sagittis at. Vestibulum ac turpis vitae dui congue iaculis et non massa. Duis sed gravida nunc. Vivamus blandit dapibus orci, eu maximus velit faucibus eu."),r.createElement("div",{id:"wprm-recipe-container-".concat(this.state.recipe.id),className:"wprm-preview-snippet-recipe-box"},r.createElement("p",null,"This is an example recipe box."),r.createElement("p",{id:"wprm-recipe-video-container-".concat(this.state.recipe.id)},"It includes an example video.")),r.createElement("p",null,"Some more random content could be appearing after the recipe box. Morbi dignissim euismod vestibulum. Interdum et malesuada fames ac ante ipsum primis in faucibus. Vestibulum eu faucibus lectus. Donec sit amet mattis erat, at vulputate elit. Morbi ullamcorper, justo nec porttitor porta, dui lectus euismod est, convallis tempor lorem elit nec leo. Praesent hendrerit auctor risus sed mollis. Integer suscipit arcu at risus efficitur, et interdum arcu fringilla. Aliquam mollis accumsan blandit. Nam vestibulum urna id velit scelerisque, eu commodo urna imperdiet. Mauris sed risus libero. Integer lacinia nec lectus in posuere. Sed feugiat dolor eros, ac scelerisque tellus hendrerit sit amet. Sed nisl lacus, condimentum id orci eu, malesuada mattis sem. Quisque ipsum velit, viverra et magna a, laoreet porta lorem. Praesent porttitor lorem quis quam lobortis, lacinia tincidunt odio sodales.")),"roundup"===this.props.template.type&&r.createElement(r.Fragment,null,r.createElement("h2",null,"Our first recipe"),r.createElement("p",null,"This is the first example recipe in this recipe roundup. We can have as much information and images as we want here and then end with the roundup template for this particular recipe."),r.createElement("div",{className:"wprm-recipe wprm-recipe-roundup-item wprm-recipe-template-".concat(this.props.template.slug)},e),r.createElement("h2",null,"Our second recipe"),r.createElement("p",null,"A roundup would have multiple recipes, so here is another one with some more demo text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. In eleifend vitae nisl et pharetra. Sed euismod nisi convallis arcu lobortis commodo."),r.createElement("p",null,"..."))):r.createElement("p",{style:{color:"darkred",textAlign:"center"}},"You have to select a recipe to preview the template. Use the dropdown above or set a default recipe to use for the preview on the settings page."))),!1===this.state.editingBlock||this.state.shortcodes.length<=this.state.editingBlock?r.createElement(d,null,this.state.shortcodes.map(((e,t)=>r.createElement("div",{key:t,className:e.uid===this.state.hoveringBlock?"wprm-template-menu-block wprm-template-menu-block-hover":"wprm-template-menu-block",onClick:()=>this.onChangeEditingBlock(e.uid),onMouseEnter:()=>this.onChangeHoveringBlock(e.uid),onMouseLeave:()=>this.onChangeHoveringBlock(!1)},e.name))),!this.state.shortcodes.length&&r.createElement("p",null,"There are no adjustable blocks.")):null,r.createElement(b,null,this.state.addingBlock?r.createElement(r.Fragment,null,r.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),this.onChangeAddingBlock(!1)}},"Cancel"),r.createElement("p",null,'Add "',a.Z.getShortcodeName(this.state.addingBlock),'" after:'),this.state.shortcodes.map(((e,t)=>r.createElement("div",{key:t,className:e.uid===this.state.hoveringBlock?"wprm-template-menu-block wprm-template-menu-block-hover":"wprm-template-menu-block",onClick:()=>this.onAddBlockAfter(e.uid),onMouseEnter:()=>this.onChangeHoveringBlock(e.uid),onMouseLeave:()=>this.onChangeHoveringBlock(!1)},e.name))),!this.state.shortcodes.length&&r.createElement("p",null,"There are no blocks in the Template.")):r.createElement(r.Fragment,null,r.createElement("p",null,"Select block to add:"),r.createElement("div",{className:"wprm-template-menu-add-block-group"},"General Blocks"),M.map(((e,t)=>r.createElement("div",{key:t,className:"wprm-template-menu-block",onClick:()=>this.onChangeAddingBlock(e)},a.Z.getShortcodeName(e)))),r.createElement("div",{className:"wprm-template-menu-add-block-group"},"Recipe Blocks"),C.map(((e,t)=>r.createElement("div",{key:t,className:"wprm-template-menu-block",onClick:()=>this.onChangeAddingBlock(e)},a.Z.getShortcodeName(e)))))),r.createElement(y,null,this.state.shortcodes.map(((e,t)=>r.createElement("div",{key:t,className:e.uid===this.state.hoveringBlock?"wprm-template-menu-block wprm-template-menu-block-hover":"wprm-template-menu-block",onClick:()=>{confirm('Are you sure you want to delete the "'+e.name+'" block?')&&this.onRemoveBlock(e.uid)},onMouseEnter:()=>this.onChangeHoveringBlock(e.uid),onMouseLeave:()=>this.onChangeHoveringBlock(!1)},e.name))),!this.state.shortcodes.length&&r.createElement("p",null,"There are no blocks to remove.")))}}},1703:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(89526),o=n(76044),i=n(57573),a=n(29790),l=n(8612);class u extends r.Component{constructor(e){super(e),this.state={displayColorPicker:!1}}handleClick(){this.setState({displayColorPicker:!this.state.displayColorPicker})}handleClose(){this.setState({displayColorPicker:!1})}handleChange(e){this.props.onValueChange(e.hex)}render(){var e=(0,a.default)({default:{color:{width:"36px",height:"14px",borderRadius:"2px",background:"".concat(this.props.value)},swatch:{padding:"5px",background:"#fff",borderRadius:"1px",boxShadow:"0 0 0 1px rgba(0,0,0,.1)",display:"inline-block",cursor:"pointer"},popover:{position:"absolute",zIndex:"2",right:"0",bottom:"30px"},cover:{position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}}});return r.createElement("div",{className:"wprm-template-property-input"},r.createElement("div",{style:e.swatch,onClick:this.handleClick.bind(this)},r.createElement("div",{style:e.color})),this.state.displayColorPicker?r.createElement("div",{style:e.popover},r.createElement("div",{style:e.cover,onClick:this.handleClose.bind(this)}),r.createElement(l.xS,{color:this.props.value,onChange:this.handleChange.bind(this),disableAlpha:!0})):null)}}var s=n(844),c=e=>{var t=[];for(var n in e.property.options)t.push({value:n,label:e.property.options[n]});return r.createElement(s.ZP,{className:"wprm-template-property-input",menuPlacement:"top",value:t.filter((t=>{var{value:n}=t;return n===e.value})),onChange:t=>e.onValueChange(t.value),options:t,clearable:!1})};n(19985);function p(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}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=e=>{var t=[{label:"General",options:[{value:"custom",label:"Set custom font"},{value:"inherit",label:"Inherit from parent"},{value:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif',label:"System Font"}]},{label:"Default Serif Fonts",options:[{value:"Georgia, serif",label:"Georgia"},{value:'"Palatino Linotype", "Book Antiqua", Palatino, serif',label:"Palatino"},{value:'"Times New Roman", Times, serif',label:"Times New Roman"}]},{label:"Default Sans-Serif Fonts",options:[{value:"Arial, Helvetica, sans-serif",label:"Arial"},{value:'"Arial Black", Gadget, sans-serif',label:"Arial Black"},{value:'"Comic Sans MS", cursive, sans-serif',label:"Comic Sans MS"},{value:"Helvetica, sans-serif",label:"Helvetica"},{value:"Impact, Charcoal, sans-serif",label:"Impact"},{value:'"Lucida Sans Unicode", "Lucida Grande", sans-serif',label:"Lucida"},{value:"Tahoma, Geneva, sans-serif",label:"Tahoma"},{value:'"Trebuchet MS", Helvetica, sans-serif',label:"Trebuchet MS"},{value:"Verdana, Geneva, sans-serif",label:"Verdana"}]},{label:"Default Monospace Fonts",options:[{value:'"Courier New", Courier, monospace',label:"Courier New"},{value:'"Lucida Console", Monaco, monospace',label:"Lucida Console"}]}],n=t.reduce(((e,t)=>e.concat(t.options)),[]),o=n.map((e=>e.value)),i=!e.value||!o.includes(e.value),a=i?"custom":e.value,l={option:(e,t)=>{var{data:n,isDisabled:r,isFocused:o,isSelected:i}=t,a="custom"===n.value?"inherit":n.value;return d(d({},e),{},{fontFamily:a})}};return r.createElement(r.Fragment,null,r.createElement(s.ZP,{className:"wprm-template-property-input",menuPlacement:"top",value:n.filter((e=>{var{value:t}=e;return t===a})),onChange:t=>{var n="custom"===t.value?"":t.value;return e.onValueChange(n)},options:t,styles:l,clearable:!1}),i&&r.createElement("input",{className:"wprm-template-property-input",type:"text",value:e.value,onChange:t=>e.onValueChange(t.target.value)}))},m=(n(55281),n(49092));class v extends r.Component{constructor(e){super(e),this.state={selectingIcon:!1}}render(){var e=wprm_admin_template.icons.hasOwnProperty(this.props.value)?wprm_admin_template.icons[this.props.value].url:this.props.value;return r.createElement(r.Fragment,null,this.state.selectingIcon?r.createElement("div",{className:"wprm-template-property-icon-select-container"},r.createElement("a",{href:"#",onClick:e=>(e.preventDefault(),this.setState({selectingIcon:!1}),this.props.onValueChange(""))},"Clear icon")," | ",r.createElement("a",{href:"#",onClick:e=>{e.preventDefault();var t=prompt("Set a custom URL for the icon");if(t)return this.setState({selectingIcon:!1}),this.props.onValueChange(t)}},"Set custom URL")," | Select:",r.createElement("div",{className:"wprm-template-property-icon-select-container-icons"},Object.keys(wprm_admin_template.icons).sort().map(((e,t)=>{var n=wprm_admin_template.icons[e];return r.createElement("span",{href:"#",onClick:()=>{if(this.setState({selectingIcon:!1}),n.id!==this.props.value)return this.props.onValueChange(n.id)},key:t},r.createElement(m.Z,{src:n.url,className:n.id===this.props.value?"wprm-template-property-icon-select wprm-template-property-icon-selected":"wprm-template-property-icon-select"}))})))):r.createElement("span",{className:"wprm-template-property-icon-selected-container"},e&&r.createElement(m.Z,{src:e,className:"wprm-template-property-icon-select"}),r.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),this.setState({selectingIcon:!0})}},e?"Change...":"Select...")))}}var g=n(5308),b=e=>{var t=0<parseInt(e.value);return r.createElement("a",{href:"#",onClick:t=>{t.preventDefault(),g.Z.selectImage((t=>{e.onValueChange(""+t.id)}))}},t?"Change...":"Select...")},y=(n(31807),n(54883),n(68995),Array.isArray(wprm_admin_template.thumbnail_sizes)?wprm_admin_template.thumbnail_sizes:Object.values(wprm_admin_template.thumbnail_sizes));class x extends r.Component{constructor(e){super(e),this.state={width:"",height:""}}componentDidMount(){this.checkSize()}componentDidUpdate(){this.checkSize()}checkSize(){var e=this.props.value;if(""!==e){var t=e.indexOf("x"),n=t>0?parseInt(e.substr(0,t)):0,r=t>0?parseInt(e.substr(t+1)):0;r=0<r?r:"",(n=0<n?n:"")===this.state.width&&r===this.state.height||this.setState({width:n,height:r})}}changeSize(e,t){if("width"===e||"height"===e){var n=this.state;n[e]=parseInt(t),this.setState(n,(()=>{(0<this.state.width||0<this.state.height)&&this.props.onValueChange("".concat(this.state.width,"x").concat(this.state.height))}))}}render(){var e=[];for(var t of y)e.push({value:t,label:t});return r.createElement(r.Fragment,null,r.createElement("label",null,"Select existing thumbnail size:"),r.createElement(s.ZP,{className:"wprm-template-property-input",menuPlacement:"top",value:y.includes(this.props.value)?e.filter((e=>{var{value:t}=e;return t===this.props.value})):"",onChange:e=>e?this.props.onValueChange(e.value):this.props.onValueChange(""),options:e,clearable:!0}),r.createElement("label",null,"...or set a specific width and height:"),r.createElement("div",{className:"wprm-template-property-input-width-height"},r.createElement("input",{className:"wprm-template-property-input",type:"number",value:this.state.width,onChange:e=>this.changeSize("width",e.target.value)})," x ",r.createElement("input",{className:"wprm-template-property-input",type:"number",value:this.state.height,onChange:e=>this.changeSize("height",e.target.value)})))}}var w=e=>{var t={};return e.property.hasOwnProperty("color")&&(t.color=e.property.color),r.createElement("div",{className:"wprm-template-property-info",style:t},e.property.text)},E=(n(22321),e=>{var t=e.property.hasOwnProperty("suffix")?e.property.suffix:"",n=t?e.value.replace(t,""):e.value;return r.createElement(r.Fragment,null,r.createElement("input",{className:"wprm-template-property-input",type:"number",value:n,onChange:n=>{var r="".concat(n.target.value).concat(t);return e.onValueChange(r)}}),t&&r.createElement("span",{className:"wprm-template-property-number-suffix"}," ",t))});n(75668);class I extends r.Component{constructor(e){super(e),this.state={number:"",unit:""}}changeNumber(e){e!==this.state.number&&this.props.onValueChange("".concat(e).concat(this.state.unit))}changeUnit(e){e!==this.state.unit&&this.props.onValueChange("".concat(this.state.number).concat(e))}componentDidMount(){this.checkNumber()}componentDidUpdate(){this.checkNumber()}checkNumber(){var e=this.props.value.match(/([+-]?\d*\.?\d*)\s*([^;]*)/),t=e?e[1]:"",n=e?e[2]:"";t===this.state.number&&n===this.state.unit||this.setState({number:t,unit:n})}render(){var e=["px","em"];return this.state.unit&&!e.includes(this.state.unit)&&e.push(this.state.unit),r.createElement(r.Fragment,null,r.createElement("input",{className:"wprm-template-property-input",type:"number",step:"px"===this.state.unit?"1":"0.1",value:this.state.number,onChange:e=>this.changeNumber(e.target.value)}),e.map(((e,t)=>r.createElement("span",{className:e===this.state.unit?"wprm-template-property-value-size-unit wprm-template-property-value-size-unit-selected":"wprm-template-property-value-size-unit",onClick:()=>this.changeUnit(e),key:t},e))))}}var S=e=>r.createElement("input",{className:"wprm-template-property-input",type:"text",value:e.value,onChange:t=>e.onValueChange(t.target.value)}),M=n(67127),C={color:u,align:c,border:c,dropdown:c,float:c,font:h,font_size:I,icon:v,image:b,image_size:x,info:w,percentage:E,number:E,size:I,text:S,toggle:e=>r.createElement(M.Z,{className:"wprm-template-property-input",checked:"1"===e.value,onChange:t=>{var n=t.target.checked?"1":"0";return e.onValueChange(n)}})},k=e=>{var t=!!C.hasOwnProperty(e.property.type)&&C[e.property.type];if(!t)return null;if(!i.Z.dependencyMet(e.property,e.properties))return null;var n=null;return e.property.hasOwnProperty("help")&&(n=r.createElement(o.Z,{type:"question",title:e.property.help,className:"wprm-admin-icon-help"})),r.createElement("div",{className:"wprm-template-property"},"info"===e.property.type?r.createElement(t,{property:e.property}):r.createElement(r.Fragment,null,r.createElement("div",{className:"wprm-template-property-label"},e.property.name," ",n),r.createElement("div",{className:"wprm-template-property-value wprm-template-property-value-".concat(e.property.type)},r.createElement(t,{property:e.property,value:e.property.value,onValueChange:t=>{e.onPropertyChange(e.property.id,t)}}))))}},99237:function(e,t,n){"use strict";n.d(t,{Z:function(){return z}});var r=n(46087),o=wprm_admin.endpoints.analytics,i={delete:e=>r.Z.call("".concat(o,"/").concat(e),"DELETE")};function a(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}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=wprm_admin.endpoints.custom_taxonomies,s={save(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t),o=e?"PUT":"POST";return r.Z.call(u,o,n)}},c=wprm_admin.endpoints.dashboard,p={getAnalytics:()=>r.Z.call("".concat(c,"/analytics"))},d=wprm_admin.endpoints.notices,f={dismissNotice(e){var t={id:e};return r.Z.call(d,"DELETE",t)}},h=wprm_admin.endpoints.modal,m={parseIngredients(e){var t={ingredients:e};return r.Z.call("".concat(h,"/ingredient/parse"),"POST",t)}},v=(n(35054),wprm_admin.endpoints.manage),g=wprm_admin.endpoints.rating,b=wprm_admin.endpoints.taxonomy,y=!1,x=!1,w={getData(e){return y?(x=e,new Promise((e=>e(!1)))):this.getDataDebounced(e)},getDataDebounced(e){return y=!0,r.Z.call("".concat(v,"/").concat(e.route),"POST",e).then((e=>{if(x){var t=x;return x=!1,this.getDataDebounced(t)}return y=!1,e}))},deleteUserRatings:e=>r.Z.call("".concat(g,"/recipe/").concat(e),"DELETE"),getTerm:(e,t)=>r.Z.call("".concat(b).concat(e,"/").concat(t)),createTerm(e,t){var n={name:t};return r.Z.call("".concat(b).concat(e),"POST",n)},deleteTerm:(e,t)=>r.Z.call("".concat(b).concat(e,"/").concat(t,"?force=true"),"DELETE"),renameTerm(e,t,n){var o={name:n};return r.Z.call("".concat(b).concat(e,"/").concat(t),"POST",o)},changeTermSlug(e,t,n){var o={slug:n};return r.Z.call("".concat(b).concat(e,"/").concat(t),"POST",o)},renameTermLabel(e,t,n){var o={type:e,id:t,label:n};return r.Z.call("".concat(v,"/taxonomy/label"),"POST",o)},mergeTerm(e,t,n){var o={type:e,oldId:t,newId:n};return r.Z.call("".concat(v,"/taxonomy/merge"),"POST",o)},updateTaxonomyMeta(e,t,n){var o={};return o[e]=n,r.Z.call("".concat(b).concat(e,"/").concat(t),"POST",o)},bulkEdit(e,t,n,o){var i={type:t,ids:n,action:o};return r.Z.call("".concat(v,"/").concat(e,"/bulk"),"POST",i)}},E=wprm_admin.endpoints.modal,I=!1,S=!1,M=!1,C={getSuggestions(e){return I?(M=e,new Promise((e=>e(!1)))):this.getSuggestionsDebounced(e)},getSuggestionsDebounced(e){I=!0;var t=Date.now();return!1!==S&&500>t-S?new Promise((n=>{setTimeout((()=>{n(this.getSuggestionsDebounced(e))}),t-S)})):(S=t,r.Z.call("".concat(E,"/suggest"),"POST",e).then((e=>{if(M){var t=M;return M=!1,this.getSuggestionsDebounced(t)}return I=!1,e})))}},k=wprm_admin.endpoints.rating,j={update(e){var t={rating:e};return r.Z.call("".concat(k),"POST",t)},updateComment(e,t){var n={rating:t};return r.Z.call("".concat(k,"/comment/").concat(e),"POST",n)},delete:e=>r.Z.call("".concat(k,"/").concat(e),"DELETE")},O=wprm_admin.endpoints.recipe,P=wprm_admin.endpoints.manage,T={get:e=>r.Z.call("".concat(O,"/").concat(e,"?t=").concat(Date.now())),save(e){var t={recipe:e},n=O,o="POST",i=!!e.id&&parseInt(e.id);return i&&(n+="/".concat(i),o="PUT"),r.Z.call(n,o,t)},updateStatus(e,t){var n={status:t};return r.Z.call("".concat(O,"/").concat(e),"PUT",n)},delete(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n="".concat(O,"/").concat(e);return t&&(n+="?force=true"),r.Z.call(n,"DELETE")},deleteRevision:e=>r.Z.call("".concat(P,"/revision/").concat(e),"DELETE")},L=wprm_admin.endpoints.setting,D={save(e){var t={settings:e};return r.Z.call(L,"POST",t)}},N=wprm_admin.endpoints.template,A=[],_={},B=null,H={previewShortcode(e,t,n){return _[e]=t,clearTimeout(B),B=setTimeout((()=>{this.previewShortcodes(n)}),500),new Promise((e=>A.push(e)))},previewShortcodes(e){var t=A,n=_;A=[],_={};var r={recipeId:e,shortcodes:n};fetch("".concat(N,"/preview"),{method:"POST",headers:{"X-WP-Nonce":wprm_admin.api_nonce,Accept:"application/json","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(r)}).then((e=>e.json().then((n=>{var r=e.ok?n.preview:{};t.forEach((e=>e(r)))}))))},searchRecipes:e=>fetch(wprm_admin.ajax_url,{method:"POST",credentials:"same-origin",body:"action=wprm_search_recipes&security="+wprm_admin.nonce+"&search="+encodeURIComponent(e),headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}}).then((e=>e.json())),save(e){var t={template:e};return r.Z.call(N,"POST",t)},delete(e){var t={slug:e};return r.Z.call(N,"DELETE",t)}},R=wprm_admin.endpoints.utilities,F={saveImage(e){var t={url:e};return r.Z.call("".concat(R,"/save_image"),"POST",t)},giveFeedback(e){var t={feedback:e};return r.Z.call("".concat(R,"/feedback"),"POST",t)}},{hooks:Z}=WPRecipeMaker["wp-recipe-maker/dist/shared"],z=Z.applyFilters("api",{analytics:i,customTaxonomy:s,dashboard:p,general:f,import:m,manage:w,modal:C,rating:j,recipe:T,settings:D,template:H,utilities:F})},46087:function(e,t,n){"use strict";n(31807),n(35054),n(22321);function r(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(s){return void n(s)}l.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function l(e){r(a,o,i,l,u,"next",e)}function u(e){r(a,o,i,l,u,"throw",e)}l(void 0)}))}}function i(){return(i=o((function*(e,t,n){console.log(e,t),console.log(n);var r="",o=parseInt(n.status),i=!1;300<=o&&o<=399?i="A redirection is breaking the API endpoint. Are any redirections set up in the .htaccess file or using a plugin?":401===o||403===o?i="Something is blocking access. Are you or your webhost using a firewall like Cloudflare WAF or Sucuri? Try whitelisting your own IP address or this specific action.":404===o?i="The rest API endpoint could not be found. Are your permalinks set up correctly?":500<=o&&o<=599&&(i="The server is throwing an error. It could be hitting a memory or execution limit. Check with your webhost what the exact error is in the logs."),i&&(r+="".concat(i,"\r\n\r\n")),r+="Press OK to contact support@bootstrapped.ventures for support (opens an email popup).";var a="".concat(n.url," ").concat(n.redirected?"(redirected)":"","- ").concat(n.status," - ").concat(n.statusText);r+="\r\n\r\n".concat(a);var l=!0;try{yield n.text().then((e=>{console.log(e),-1!==e.indexOf("rest_cookie_invalid_nonce")?(alert("You got logged out or your session expired. Please try logging out of WordPress and back in again."),l=!1):r+="\r\n\r\n".concat(e)}))}catch(s){console.log(s),r+="\r\n\r\n".concat(s)}if(l&&confirm(r)){var u="I received the error message below at ".concat(window.location.href,"\r\n\r\n").concat(r);window.open("mailto:".concat(encodeURIComponent("support@bootstrapped.ventures"),"?subject=").concat(encodeURIComponent("WP Recipe Maker Error Message"),"&body=").concat(encodeURIComponent(u)))}}))).apply(this,arguments)}t.Z={call(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=wprm_admin.api_nonce;"object"==typeof window.wpApiSettings&&window.wpApiSettings.nonce&&(r=window.wpApiSettings.nonce);var o={method:t,headers:{"X-WP-Nonce":r,Accept:"application/json","Content-Type":"application/json","Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:0},credentials:"same-origin"};"PUT"!==t&&"DELETE"!==t||(o.method="POST",o.headers["X-HTTP-Method-Override"]=t),n&&(o.body=JSON.stringify(n));var a=0;return e=e.replace(/\?/g,(function(e){return 2<=++a?"&":e})),fetch(e,o).then((function(t){return t.ok?t.json():(function(e,t,n){i.apply(this,arguments)}(e,o,t),!1)}))}}},76044:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(89526),o=n(49092),i=n(95075),a={adjustable:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PGxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjEyLjUiIHkxPSIxMi41IiB4Mj0iMTUuNSIgeTI9IjEyLjUiPjwvbGluZT4gPGxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjAuNSIgeTE9IjMuNSIgeDI9IjMuNSIgeTI9IjMuNSI+PC9saW5lPiA8bGluZSBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB4MT0iOS41IiB5MT0iMy41IiB4Mj0iMTUuNSIgeTI9IjMuNSI+PC9saW5lPiA8cmVjdCBkYXRhLWNvbG9yPSJjb2xvci0yIiB4PSIzLjUiIHk9IjAuNSIgZmlsbD0ibm9uZSIgc3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Y29sb3I9ImNvbG9yLTIiLz4gPGNpcmNsZSBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgY3g9IjguNSIgY3k9IjExLjUiIHI9IjIiIGRhdGEtY29sb3I9ImNvbG9yLTIiLz4gPGxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSIyLjUiIHkxPSIxMS41IiB4Mj0iNi41IiB5Mj0iMTEuNSIgZGF0YS1jb2xvcj0iY29sb3ItMiIvPiA8bGluZSBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjEyLjUiIHkxPSIxMS41IiB4Mj0iMTMuNSIgeTI9IjExLjUiIGRhdGEtY29sb3I9ImNvbG9yLTIiLz4gPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTE0LjUsMTUuNWgtMTMgYy0wLjU1MiwwLTEtMC40NDgtMS0xdi0xM2MwLTAuNTUyLDAuNDQ4LTEsMS0xaDEzYzAuNTUyLDAsMSwwLjQ0OCwxLDF2MTNDMTUuNSwxNS4wNTIsMTUuMDUyLDE1LjUsMTQuNSwxNS41eiIvPjwvZz48L3N2Zz4="},l=e=>{var t=!!a.hasOwnProperty(e.type)&&a[e.type];if(!t)return null;var n=e.title,l=e.className?"wprm-admin-icon ".concat(e.className):"wprm-admin-icon",u=!!e.hasOwnProperty("hidden")&&e.hidden;return u&&(n="",l+=" wprm-admin-icon-hidden"),r.createElement(i.Z,{content:n},r.createElement("span",{className:l,onClick:u?()=>{}:e.onClick},r.createElement(o.Z,{src:t})))}},34133:function(e,t,n){"use strict";var r=n(89526);t.Z=e=>r.createElement("div",{className:"wprm-admin-loader"})},95075:function(e,t,n){"use strict";var r=n(89526),o=n(20877);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}function a(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){l(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}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.Z=e=>{if(!e.content)return e.children;var t=e.hasOwnProperty("style")?e.style:{};return r.createElement(o.Tooltip,{html:r.createElement("div",{dangerouslySetInnerHTML:{__html:e.content}}),popperOptions:{modifiers:{addZIndex:{enabled:!0,order:810,fn:e=>a(a({},e),{},{styles:a(a({},e.styles),{},{zIndex:1e5})})},preventOverflow:{boundariesElement:"window"}}},style:t},e.children)}},52082:function(e,t,n){"use strict";function r(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}function o(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){i(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}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{S:function(){return l}});var a={};function l(e){return a.hasOwnProperty(e)?a[e]:e}window.hasOwnProperty("wprm_public")&&wprm_public.hasOwnProperty("translations")&&(a=o(o({},a),wprm_public.translations)),window.hasOwnProperty("wprm_admin")&&wprm_admin.hasOwnProperty("translations")&&(a=o(o({},a),wprm_admin.translations))},71236:function(e,t,n){"use strict";var r=n(59833),o=n(24697),i="/*|*/";function a(e){e&&l.current.insert(e+"}")}var l={current:null},u=function(e,t,n,r,o,u,s,c,p,d){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return l.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===c)return t+i;break;case 3:switch(c){case 102:case 112:return l.current.insert(n[0]+t),"";default:return t+(0===d?i:"")}case-2:t.split("/*|*/}").forEach(a)}};t.Z=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var i=new o.Z(t);var a,s={};a=e.container||document.head;var c,p=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(p,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){s[e]=!0})),e.parentNode!==a&&a.appendChild(e)})),i.use(e.stylisPlugins)(u),c=function(e,t,n,r){var o=t.name;l.current=n,i(e,t.styles),r&&(d.inserted[o]=!0)};var d={key:n,sheet:new r.m({key:n,container:a,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:s,registered:{},insert:c};return d}},12821:function(e,t,n){"use strict";n.d(t,{nq:function(){return p},tZ:function(){return g},F4:function(){return b},ms:function(){return w}});var r=n(89526),o=n(71236),i=n(56002),a=n(26794),l=n(59833),u=n(72144);var s=(0,r.createContext)((0,o.Z)()),c=(0,r.createContext)({}),p=s.Provider,d=function(e){return(0,r.forwardRef)((function(t,n){return(0,r.createElement)(s.Consumer,null,(function(r){return e(t,r,n)}))}))},f="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",h=Object.prototype.hasOwnProperty,m=function(e,t,n,o){var l=t[f],u=[],s="",c=null===n?t.css:t.css(n);"string"==typeof c&&void 0!==e.registered[c]&&(c=e.registered[c]),u.push(c),void 0!==t.className&&(s=(0,i.f)(e.registered,u,t.className));var p=(0,a.O)(u);(0,i.M)(e,p,"string"==typeof l);s+=e.key+"-"+p.name;var d={};for(var m in t)h.call(t,m)&&"css"!==m&&m!==f&&(d[m]=t[m]);return d.ref=o,d.className=s,(0,r.createElement)(l,d)},v=d((function(e,t,n){return"function"==typeof e.css?(0,r.createElement)(c.Consumer,null,(function(r){return m(t,e,r,n)})):m(t,e,null,n)}));var g=function(e,t){var n=arguments;if(null==t||null==t.css)return r.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=v;var a={};for(var l in t)h.call(t,l)&&(a[l]=t[l]);a[f]=e,i[1]=a;for(var u=2;u<o;u++)i[u]=n[u];return r.createElement.apply(null,i)},b=(r.Component,function(){var e=u.Z.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}),y=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var l in a="",i)i[l]&&l&&(a&&(a+=" "),a+=l);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function x(e,t,n){var r=[],o=(0,i.f)(e,r,n);return r.length<2?n:o+t(r)}var w=d((function(e,t){return(0,r.createElement)(c.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=(0,a.O)(n,t.registered);return(0,i.M)(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return x(t.registered,r,y(n))},theme:n},l=e.children(o);return!0,l}))}))},72144:function(e,t,n){"use strict";var r=n(26794);t.Z=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.O)(t)}},95862:function(e,t){"use strict";t.Z=function(e){for(var t,n=e.length,r=n^n,o=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)}},93059:function(e,t){"use strict";t.Z=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},26794:function(e,t,n){"use strict";n.d(t,{O:function(){return f}});var r=n(95862),o=n(8560),i=n(93059),a=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=(0,i.Z)((function(e){return e.replace(a,"-$&").toLowerCase()})),s=function(e,t){if(null==t||"boolean"==typeof t)return"";switch(e){case"animation":case"animationName":"string"==typeof t&&(t=t.replace(l,(function(e,t,n){return p={name:t,styles:n,next:p},t})))}return 1!==o.Z[e]&&45!==e.charCodeAt(1)&&"number"==typeof t&&0!==t?t+"px":t};function c(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)p={name:o.name,styles:o.styles,next:p},o=o.next;return n.styles}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=c(e,t,n[o],!1);else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":r+=u(i)+":"+s(i,a)+";";else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]])r+=i+"{"+c(e,t,a,!1)+"}";else for(var l=0;l<a.length;l++)r+=u(i)+":"+s(i,a[l])+";"}return r}(e,t,n);case"function":if(void 0!==e){var i=p,a=n(e);return p=i,c(e,t,a,r)}default:if(null==t)return n;var l=t[n];return void 0===l||r?n:l}}var p,d=/label:\s*([^\s;\n{]+)\s*;/g;var f=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,i="";p=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,i+=c(n,t,a,!1)):i+=a[0];for(var l=1;l<e.length;l++)i+=c(n,t,e[l],46===i.charCodeAt(i.length-1)),o&&(i+=a[l]);d.lastIndex=0;for(var u,s="";null!==(u=d.exec(i));)s+="-"+u[1];return{name:(0,r.Z)(i)+s,styles:i,next:p}}},59833:function(e,t,n){"use strict";n.d(t,{m:function(){return r}});var r=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var i=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,i?0:o.cssRules.length)}catch(a){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}()},24697:function(e,t){"use strict";t.Z=function(e){function t(e,r,u,s,d){for(var f,h,m,v,x,E=0,I=0,S=0,M=0,C=0,L=0,N=m=f=0,_=0,B=0,H=0,R=0,F=u.length,Z=F-1,z="",W="",G="",U="";_<F;){if(h=u.charCodeAt(_),_===Z&&0!==I+M+S+E&&(0!==I&&(h=47===I?10:47),M=S=E=0,F++,Z++),0===I+M+S+E){if(_===Z&&(0<B&&(z=z.replace(p,"")),0<z.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:z+=u.charAt(_)}h=59}switch(h){case 123:for(f=(z=z.trim()).charCodeAt(0),m=1,R=++_;_<F;){switch(h=u.charCodeAt(_)){case 123:m++;break;case 125:m--;break;case 47:switch(h=u.charCodeAt(_+1)){case 42:case 47:e:{for(N=_+1;N<Z;++N)switch(u.charCodeAt(N)){case 47:if(42===h&&42===u.charCodeAt(N-1)&&_+2!==N){_=N+1;break e}break;case 10:if(47===h){_=N+1;break e}}_=N}}break;case 91:h++;case 40:h++;case 34:case 39:for(;_++<Z&&u.charCodeAt(_)!==h;);}if(0===m)break;_++}switch(m=u.substring(R,_),0===f&&(f=(z=z.replace(c,"").trim()).charCodeAt(0)),f){case 64:switch(0<B&&(z=z.replace(p,"")),h=z.charCodeAt(1)){case 100:case 109:case 115:case 45:B=r;break;default:B=T}if(R=(m=t(r,B,m,h,d+1)).length,0<D&&(x=l(3,m,B=n(T,z,H),r,j,k,R,h,d,s),z=B.join(""),void 0!==x&&0===(R=(m=x.trim()).length)&&(h=0,m="")),0<R)switch(h){case 115:z=z.replace(w,a);case 100:case 109:case 45:m=z+"{"+m+"}";break;case 107:m=(z=z.replace(g,"$1 $2"))+"{"+m+"}",m=1===P||2===P&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=z+m,112===s&&(W+=m,m="")}else m="";break;default:m=t(r,n(r,z,H),m,s,d+1)}G+=m,m=H=B=N=f=0,z="",h=u.charCodeAt(++_);break;case 125:case 59:if(1<(R=(z=(0<B?z.replace(p,""):z).trim()).length))switch(0===N&&(f=z.charCodeAt(0),45===f||96<f&&123>f)&&(R=(z=z.replace(" ",":")).length),0<D&&void 0!==(x=l(1,z,r,e,j,k,W.length,s,d,s))&&0===(R=(z=x.trim()).length)&&(z="\0\0"),f=z.charCodeAt(0),h=z.charCodeAt(1),f){case 0:break;case 64:if(105===h||99===h){U+=z+u.charAt(_);break}default:58!==z.charCodeAt(R-1)&&(W+=o(z,f,h,z.charCodeAt(2)))}H=B=N=f=0,z="",h=u.charCodeAt(++_)}}switch(h){case 13:case 10:47===I?I=0:0===1+f&&107!==s&&0<z.length&&(B=1,z+="\0"),0<D*A&&l(0,z,r,e,j,k,W.length,s,d,s),k=1,j++;break;case 59:case 125:if(0===I+M+S+E){k++;break}default:switch(k++,v=u.charAt(_),h){case 9:case 32:if(0===M+E+I)switch(C){case 44:case 58:case 9:case 32:v="";break;default:32!==h&&(v=" ")}break;case 0:v="\\0";break;case 12:v="\\f";break;case 11:v="\\v";break;case 38:0===M+I+E&&(B=H=1,v="\f"+v);break;case 108:if(0===M+I+E+O&&0<N)switch(_-N){case 2:112===C&&58===u.charCodeAt(_-3)&&(O=C);case 8:111===L&&(O=L)}break;case 58:0===M+I+E&&(N=_);break;case 44:0===I+S+M+E&&(B=1,v+="\r");break;case 34:case 39:0===I&&(M=M===h?0:0===M?h:M);break;case 91:0===M+I+S&&E++;break;case 93:0===M+I+S&&E--;break;case 41:0===M+I+E&&S--;break;case 40:if(0===M+I+E){if(0===f)switch(2*C+3*L){case 533:break;default:f=1}S++}break;case 64:0===I+S+M+E+N+m&&(m=1);break;case 42:case 47:if(!(0<M+E+S))switch(I){case 0:switch(2*h+3*u.charCodeAt(_+1)){case 235:I=47;break;case 220:R=_,I=42}break;case 42:47===h&&42===C&&R+2!==_&&(33===u.charCodeAt(R+2)&&(W+=u.substring(R,_+1)),v="",I=0)}}0===I&&(z+=v)}L=C,C=h,_++}if(0<(R=W.length)){if(B=r,0<D&&(void 0!==(x=l(2,W,B,e,j,k,R,s,d,s))&&0===(W=x).length))return U+W+G;if(W=B.join(",")+"{"+W+"}",0!=P*O){switch(2!==P||i(W,2)||(O=0),O){case 111:W=W.replace(y,":-moz-$1")+W;break;case 112:W=W.replace(b,"::-webkit-input-$1")+W.replace(b,"::-moz-$1")+W.replace(b,":-ms-input-$1")+W}O=0}}return U+W+G}function n(e,t,n){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var l=0;for(e=0===a?"":e[0]+" ";l<i;++l)t[l]=r(e,t[l],n).trim();break;default:var u=l=0;for(t=[];l<i;++l)for(var s=0;s<a;++s)t[u++]=r(e[s]+" ",o[l],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(v,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",l=2*t+3*n+4*r;if(944===l){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===P||2===P&&i(u,1)?"-webkit-"+u+u:u}if(0===P||2===P&&!i(a,1))return a;switch(l){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(C,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return f.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(x,"tb");break;case 232:u=a.replace(x,"tb-rl");break;case 220:u=a.replace(x,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,l=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<l?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(I,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(I,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===M.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),N(2!==t?r:r.replace(S,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(E," or ($1)").substring(4):"("+t+")"}function l(e,t,n,r,o,i,a,l,u,c){for(var p,d=0,f=t;d<D;++d)switch(p=L[d].call(s,e,f,n,r,o,i,a,l,u,c)){case void 0:case!1:case!0:case null:break;default:f=p}if(f!==t)return f}function u(e){return void 0!==(e=e.prefix)&&(N=null,e?"function"!=typeof e?P=1:(P=2,N=e):P=0),u}function s(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<D){var o=l(-1,n,r,r,j,k,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(T,r,n,0,0);return 0<D&&(void 0!==(o=l(-2,i,r,r,j,k,i.length,0,0,0))&&(i=o)),"",O=0,k=j=1,i}var c=/^\0+/g,p=/[\0\r\f]/g,d=/: */g,f=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,I=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,M=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,k=1,j=1,O=0,P=1,T=[],L=[],D=0,N=null,A=0;return s.use=function e(t){switch(t){case void 0:case null:D=L.length=0;break;default:if("function"==typeof t)L[D++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else A=0|!!t}return e},s.set=u,void 0!==e&&u(e),s}},8560:function(e,t){"use strict";t.Z={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},56002:function(e,t,n){"use strict";n.d(t,{f:function(){return r},M:function(){return o}});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(void 0!==o)}}},21112:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=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},i=n(89526),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,i=void 0===r?24:r,l=e.height,u=void 0===l?24:l,s=e.style,c=void 0===s?{}:s,p=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:u},c)},p),a.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},47327:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=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},i=n(89526),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,i=void 0===r?24:r,l=e.height,u=void 0===l?24:l,s=e.style,c=void 0===s?{}:s,p=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:u},c)},p),a.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},17449:function(e,t,n){"use strict";var r=n(99850),o=[],i=[],a=r.makeRequestCallFromTimer((function(){if(i.length)throw i.shift()}));function l(e){var t;(t=o.length?o.pop():new u).task=e,r(t)}function u(){this.task=null}e.exports=l,u.prototype.call=function(){try{this.task.call()}catch(e){l.onerror?l.onerror(e):(i.push(e),a())}finally{this.task=null,o[o.length]=this}}},99850:function(e,t,n){"use strict";function r(e){i.length||(o(),!0),i[i.length]=e}e.exports=r;var o,i=[],a=0;function l(){for(;a<i.length;){var e=a;if(a+=1,i[e].call(),a>1024){for(var t=0,n=i.length-a;t<n;t++)i[t]=i[t+a];i.length-=a,a=0}}i.length=0,a=0,!1}var u,s,c,p=void 0!==n.g?n.g:self,d=p.MutationObserver||p.WebKitMutationObserver;function f(e){return function(){var t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}"function"==typeof d?(u=1,s=new d(l),c=document.createTextNode(""),s.observe(c,{characterData:!0}),o=function(){u=-u,c.data=u}):o=f(l),r.requestFlush=o,r.makeRequestCallFromTimer=f},64403:function(e,t){var n;
|
2 |
/*!
|
3 |
Copyright (c) 2017 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
1 |
+
var WPRecipeMaker;(WPRecipeMaker=void 0===WPRecipeMaker?{}:WPRecipeMaker)["wp-recipe-maker/dist/admin-faq"]=(self.webpackChunkWPRecipeMaker_name_=self.webpackChunkWPRecipeMaker_name_||[]).push([[437],{98453:function(e,t,n){"use strict";n.r(t);var r=n(73961),o=n(89526),i=(n(35054),n(37932)),a=e=>o.createElement("div",{className:"wprm-admin-onboarding-step-welcome"},o.createElement("p",null,"Welcome to WP Recipe Maker!"),o.createElement("p",null,"These onboarding steps will get you up and running in no time by ",o.createElement("strong",null,"choosing the correct options for your situation")," and showing you how to get the most out of this plugin."),o.createElement("div",{className:"wprm-admin-onboarding-step-welcome-buttons"},o.createElement("button",{className:"button button-primary",onClick:()=>{e.jumpToStep(1)}},"Start the onboarding!"),o.createElement("a",{href:wprm_admin.manage_url+"&skip_onboarding=1"},"or click here to skip")));function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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)}}function s(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(){return(p=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)}function d(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}function f(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&&m(e,t)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t){if(null==e)return{};var n,r,o=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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?g(e):t}function y(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 n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function x(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e)||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.")}()}function w(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}var E=function e(t){var n=this,r=t.expanded,o=void 0===r?[]:r,i=t.allowMultipleExpanded,a=void 0!==i&&i,u=t.allowZeroExpanded,s=void 0!==u&&u;l(this,e),c(this,"expanded",void 0),c(this,"allowMultipleExpanded",void 0),c(this,"allowZeroExpanded",void 0),c(this,"toggleExpanded",(function(e){return n.isItemDisabled(e)?n:n.isItemExpanded(e)?n.augment({expanded:n.expanded.filter((function(t){return t!==e}))}):n.augment({expanded:n.allowMultipleExpanded?[].concat(x(n.expanded),[e]):[e]})})),c(this,"isItemDisabled",(function(e){var t=n.isItemExpanded(e),r=1===n.expanded.length;return Boolean(t&&!n.allowZeroExpanded&&r)})),c(this,"isItemExpanded",(function(e){return-1!==n.expanded.indexOf(e)})),c(this,"getPanelAttributes",(function(e,t){var r=null!=t?t:n.isItemExpanded(e);return{role:n.allowMultipleExpanded?void 0:"region","aria-hidden":n.allowMultipleExpanded?!r:void 0,"aria-labelledby":n.getButtonId(e),id:n.getPanelId(e),hidden:!r||void 0}})),c(this,"getHeadingAttributes",(function(){return{role:"heading"}})),c(this,"getButtonAttributes",(function(e,t){var r=null!=t?t:n.isItemExpanded(e),o=n.isItemDisabled(e);return{id:n.getButtonId(e),"aria-disabled":o,"aria-expanded":r,"aria-controls":n.getPanelId(e),role:"button",tabIndex:0}})),c(this,"getPanelId",(function(e){return"accordion__panel-".concat(e)})),c(this,"getButtonId",(function(e){return"accordion__heading-".concat(e)})),c(this,"augment",(function(t){return new e(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({expanded:n.expanded,allowMultipleExpanded:n.allowMultipleExpanded,allowZeroExpanded:n.allowZeroExpanded},t))})),this.expanded=o,this.allowMultipleExpanded=a,this.allowZeroExpanded=s},I=(0,o.createContext)(null),S=function(e){f(n,e);var t=y(n);function n(){var e;l(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return c(g(e=t.call.apply(t,[this].concat(o))),"state",new E({expanded:e.props.preExpanded,allowMultipleExpanded:e.props.allowMultipleExpanded,allowZeroExpanded:e.props.allowZeroExpanded})),c(g(e),"toggleExpanded",(function(t){e.setState((function(e){return e.toggleExpanded(t)}),(function(){e.props.onChange&&e.props.onChange(e.state.expanded)}))})),c(g(e),"isItemDisabled",(function(t){return e.state.isItemDisabled(t)})),c(g(e),"isItemExpanded",(function(t){return e.state.isItemExpanded(t)})),c(g(e),"getPanelAttributes",(function(t,n){return e.state.getPanelAttributes(t,n)})),c(g(e),"getHeadingAttributes",(function(){return e.state.getHeadingAttributes()})),c(g(e),"getButtonAttributes",(function(t,n){return e.state.getButtonAttributes(t,n)})),e}return s(n,[{key:"render",value:function(){var e=this.state,t=e.allowZeroExpanded,n=e.allowMultipleExpanded;return(0,o.createElement)(I.Provider,{value:{allowMultipleExpanded:n,allowZeroExpanded:t,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),n}(o.PureComponent);c(S,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var M,C=function(e){f(n,e);var t=y(n);function n(){var e;l(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return c(g(e=t.call.apply(t,[this].concat(o))),"renderChildren",(function(t){return t?e.props.children(t):null})),e}return s(n,[{key:"render",value:function(){return(0,o.createElement)(I.Consumer,null,this.renderChildren)}}]),n}(o.PureComponent),k=function(e){var t=e.className,n=void 0===t?"accordion":t,r=e.allowMultipleExpanded,i=e.allowZeroExpanded,a=e.onChange,l=e.preExpanded,u=v(e,["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"]);return(0,o.createElement)(S,{preExpanded:l,allowMultipleExpanded:r,allowZeroExpanded:i,onChange:a},(0,o.createElement)("div",p({"data-accordion-component":"Accordion",className:n},u)))};!function(e){e.Accordion="Accordion",e.AccordionItem="AccordionItem",e.AccordionItemButton="AccordionItemButton",e.AccordionItemHeading="AccordionItemHeading",e.AccordionItemPanel="AccordionItemPanel"}(M||(M={}));var j=M,O=0;function P(){var e=O;return O+=1,"raa-".concat(e)}var T=/[\u0009\u000a\u000c\u000d\u0020]/g;function L(e){return""!==e&&!T.test(e)||(console.error('uuid must be a valid HTML5 id but was given "'.concat(e,'", ASCII whitespaces are forbidden')),!1)}var D=(0,o.createContext)(null),N=function(e){f(n,e);var t=y(n);function n(){var e;l(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return c(g(e=t.call.apply(t,[this].concat(i))),"toggleExpanded",(function(){e.props.accordionContext.toggleExpanded(e.props.uuid)})),c(g(e),"renderChildren",(function(t){var n=e.props,r=n.uuid,i=n.dangerouslySetExpanded,a=null!=i?i:t.isItemExpanded(r),l=t.isItemDisabled(r),u=t.getPanelAttributes(r,i),s=t.getHeadingAttributes(r),c=t.getButtonAttributes(r,i);return(0,o.createElement)(D.Provider,{value:{uuid:r,expanded:a,disabled:l,toggleExpanded:e.toggleExpanded,panelAttributes:u,headingAttributes:s,buttonAttributes:c}},e.props.children)})),e}return s(n,[{key:"render",value:function(){return(0,o.createElement)(C,null,this.renderChildren)}}]),n}(o.Component),A=function(e){return(0,o.createElement)(C,null,(function(t){return(0,o.createElement)(N,p({},e,{accordionContext:t}))}))},_=function(e){f(n,e);var t=y(n);function n(){var e;l(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return c(g(e=t.call.apply(t,[this].concat(o))),"renderChildren",(function(t){return t?e.props.children(t):null})),e}return s(n,[{key:"render",value:function(){return(0,o.createElement)(D.Consumer,null,this.renderChildren)}}]),n}(o.PureComponent),B=function(e){f(n,e);var t=y(n);function n(){var e;l(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return c(g(e=t.call.apply(t,[this].concat(i))),"instanceUuid",P()),c(g(e),"renderChildren",(function(t){var n=e.props,r=(n.uuid,n.className),i=n.activeClassName,a=(n.dangerouslySetExpanded,v(n,["uuid","className","activeClassName","dangerouslySetExpanded"])),l=t.expanded&&i?i:r;return(0,o.createElement)("div",p({"data-accordion-component":"AccordionItem",className:l},a))})),e}return s(n,[{key:"render",value:function(){var e=this.props,t=e.uuid,n=void 0===t?this.instanceUuid:t,r=e.dangerouslySetExpanded,i=v(e,["uuid","dangerouslySetExpanded"]);return L(n),i.id&&L(i.id),(0,o.createElement)(A,{uuid:n,dangerouslySetExpanded:r},(0,o.createElement)(_,null,this.renderChildren))}}]),n}(o.Component);function H(e){return e&&(e.matches('[data-accordion-component="Accordion"]')?e:H(e.parentElement))}function R(e){var t=H(e);return t&&Array.from(t.querySelectorAll('[data-accordion-component="AccordionItemButton"]'))}c(B,"defaultProps",{className:"accordion__item"}),c(B,"displayName",j.AccordionItem);var F="40",Z="35",z="13",W="36",G="37",U="39",V="32",Y="38",J=function(e){var t=e.toggleExpanded,n=e.className,r=void 0===n?"accordion__button":n,i=v(e,["toggleExpanded","className"]);return i.id&&L(i.id),(0,o.createElement)("div",p({className:r},i,{role:"button",tabIndex:0,onClick:t,onKeyDown:function(e){var n,r,o=e.which.toString();if(o!==z&&o!==V||(e.preventDefault(),t()),e.target instanceof HTMLElement)switch(o){case W:e.preventDefault(),n=e.target,(r=(R(n)||[])[0])&&r.focus();break;case Z:e.preventDefault(),function(e){var t=R(e)||[],n=t[t.length-1];n&&n.focus()}(e.target);break;case G:case Y:e.preventDefault(),function(e){var t=R(e)||[],n=t.indexOf(e);if(-1!==n){var r=t[n-1];r&&r.focus()}}(e.target);break;case U:case F:e.preventDefault(),function(e){var t=R(e)||[],n=t.indexOf(e);if(-1!==n){var r=t[n+1];r&&r.focus()}}(e.target)}},"data-accordion-component":"AccordionItemButton"}))},Q=function(e){return(0,o.createElement)(_,null,(function(t){var n=t.toggleExpanded,r=t.buttonAttributes;return(0,o.createElement)(J,p({toggleExpanded:n},e,r))}))},X=function(e){f(n,e);var t=y(n);function n(){var e;l(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return c(g(e=t.call.apply(t,[this].concat(o))),"ref",void 0),c(g(e),"setRef",(function(t){e.ref=t})),e}return s(n,[{key:"componentDidUpdate",value:function(){n.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){n.VALIDATE(this.ref)}},{key:"render",value:function(){return(0,o.createElement)("div",p({"data-accordion-component":"AccordionItemHeading"},this.props,{ref:this.setRef}))}}],[{key:"VALIDATE",value:function(e){if(void 0===e)throw new Error("ref is undefined");if(1!==e.childElementCount||!e.firstElementChild||"AccordionItemButton"!==e.firstElementChild.getAttribute("data-accordion-component"))throw new Error("AccordionItemButton may contain only one child element, which must be an instance of AccordionItemButton.\n\nFrom the WAI-ARIA spec (https://www.w3.org/TR/wai-aria-practices-1.1/#accordion):\n\n“The button element is the only element inside the heading element. That is, if there are other visually persistent elements, they are not included inside the heading element.”\n\n")}}]),n}(o.PureComponent);c(X,"defaultProps",{className:"accordion__heading","aria-level":3});var q=function(e){return(0,o.createElement)(_,null,(function(t){var n=t.headingAttributes;return e.id&&L(e.id),(0,o.createElement)(X,p({},e,n))}))};q.displayName=j.AccordionItemHeading;var $=function(e){var t=e.className,n=void 0===t?"accordion__panel":t,r=e.id,i=v(e,["className","id"]),a=function(e){var t=e.panelAttributes;return r&&L(r),(0,o.createElement)("div",p({"data-accordion-component":"AccordionItemPanel",className:n},i,t))};return(0,o.createElement)(_,null,a)},K=e=>o.createElement("div",{className:"wprm-admin-onboarding-accordion-container"},e.hasOwnProperty("title")&&o.createElement("h2",null,e.title),o.createElement(k,{className:"wprm-admin-onboarding-accordion",allowZeroExpanded:!0},e.items.map(((e,t)=>o.createElement(B,{key:t},o.createElement(q,null,o.createElement(Q,null,e.header)),o.createElement($,null,e.content)))))),ee=wprm_admin.wprm_url+"assets/images/faq/creating/",te=e=>o.createElement(K,{items:[{header:"Gutenberg Block Editor (WordPress default)",content:o.createElement(o.Fragment,null,o.createElement("p",null,"This is the default editor for WordPress and the one we recommend. To add a recipe you ",o.createElement("strong",null,"add a WPRM Recipe block")," to the post content."),o.createElement("img",{src:ee+"gutenberg-block.png"}),o.createElement("p",null,"After adding a WPRM Recipe block you can click a button to ",o.createElement("strong",null,"create a new recipe or insert an existing one"),'. The "Create new from Existing Recipe" button can be used to duplicate an existing recipe to start your new recipe from.'),o.createElement("img",{src:ee+"gutenberg-block-buttons.png"}),o.createElement("p",null,"Clicking on a button will open up the recipe modal for you to fill in."))},{header:"Classic Editor",content:o.createElement(o.Fragment,null,o.createElement("p",null,"You won't get a nice preview of the recipe, but we still fully support the Classic Editor. To add a recipe, ",o.createElement("strong",null,"click on the WP Recipe Maker button or icon")," in the visual editor."),o.createElement("img",{src:ee+"classic-editor-buttons.png"}),o.createElement("p",null,"After clicking a modal will show up with all things that WP Recipe Maker can insert for you."),o.createElement("img",{src:ee+"classic-editor-modal.png"}),o.createElement("p",null,"Click the button to ",o.createElement("strong",null,"create a new recipe or insert an existing one"),'. The "Create new from Existing Recipe" button can be used to duplicate an existing recipe to start your new recipe from.'))},{header:"Elementor Page Builder",content:o.createElement(o.Fragment,null,o.createElement("p",null,"We integrate with the Elementor Page Builder so you can simply ",o.createElement("strong",null,"add a WPRM Recipe widget to your post"),"."),o.createElement("img",{src:ee+"elementor-widget.png"}),o.createElement("p",null,'When you click on "Create or edit Recipe" it will take you to the ',o.createElement("strong",null,"WP Recipe Maker Manage page explained below"),", as recipes can't be created or edited in the Elementor interface."),o.createElement("p",null,"Once you've create a recipe you can just ",o.createElement("strong",null,"search for its name")," to insert it."),o.createElement("img",{src:ee+"elementor-select-recipe.png"}))},{header:"Other Page Builder",content:o.createElement(o.Fragment,null,o.createElement("p",null,"If you're using a page builder that we don't integrate with you can still use WP Recipe Maker. You'll ",o.createElement("strong",null,"create a recipe on the WP Recipe Maker Manage page explained below"),"."),o.createElement("p",null,"After creating a recipe you ",o.createElement("strong",null,"type the recipe shortcode")," where you want the recipe to appear."),o.createElement("img",{src:ee+"page-builder.png"}))},{header:"WordPress.com Editor",content:o.createElement(o.Fragment,null,o.createElement("p",null,"If your interface ",o.createElement("strong",null,"looks like the classic editor but doesn't have the WP Recipe Maker button")," you might be using the WordPress.com interface."),o.createElement("img",{src:ee+"wordpress-com-interface.png"}),o.createElement("p",null,"One option you have is to ",o.createElement("strong",null,'type the recipe shortcode as shown under "Other Page Builder"')," above."),o.createElement("p",null,"Or you could revert to the ",o.createElement("strong",null,"classic WP Admin interface")," through the menu link."),o.createElement("img",{src:ee+"wordpress-com-admin-link.png"}),o.createElement("p",null,"Once in the classic interface you can follow the ",o.createElement("strong",null,"Classic Editor")," instructions above."))}]}),ne=wprm_admin.wprm_url+"assets/images/faq/creating/",re=e=>o.createElement("div",{className:"wprm-admin-onboarding-step-creating"},o.createElement("p",null,"An important thing about WP Recipe Maker is that ",o.createElement("strong",null,"recipes do not exist on their own"),". You create a recipe and then ",o.createElement("strong",null,"add it to a regular post")," on your website."),o.createElement("p",null,"The way to add a recipe to a post depends on the editor you're using."),o.createElement("h2",null,"What editor are you using?"),o.createElement("p",null,"Click on the editor you use on your website to get instructions on how to add a recipe."),o.createElement(te,null),o.createElement("h2",null,"Using the WP Recipe Maker Manage page"),o.createElement("p",null,"Whatever editor you're using, an easy way to ",o.createElement("strong",null,"create, edit, and manage")," your recipes is through the ",o.createElement("em",null,"WP Recipe Maker > Manage")," page that will be available after going through these onboarding steps."),o.createElement("p",null,"On the Manage page you will find an ",o.createElement("strong",null,"overview of all the recipes on your website"),"."),o.createElement("img",{src:ne+"manage-overview.png"}),o.createElement("p",null,"There is a LOT to explore on the manage page, but for now just focus on the ",o.createElement("strong",null,'blue "Create Recipe" button')," in the top right. Simply clicking this will create a new recipe for you."),o.createElement("p",null,"It's worth repeating that ",o.createElement("strong",null,"this new recipe won't get displayed anywhere automatically"),". It has to be added to a post using one of the methods shown above. This will then become ",o.createElement("strong",null,"the parent post for the recipe"),", the place on your website where the recipe is displayed."),o.createElement("p",null,"Now that you know how to create recipes it's time to have a look at them!")),oe=n(720),ie=n(99237);class ae extends o.Component{constructor(e){super(e);var t=!1;wprm_admin_template.templates.hasOwnProperty("chic")&&(t=wprm_admin_template.templates.chic),this.state={template:t}}render(){var e=[];return Object.values(wprm_admin_template.templates).forEach((t=>{"recipe"===t.type&&"excerpt"!==t.slug&&"compact-howto"!==t.slug&&e.push(t)})),o.createElement("div",{className:"wprm-admin-onboarding-step-template"},o.createElement("p",null,"WP Recipe Maker includes a ",o.createElement("strong",null,"full Template Editor to customize the entire look and feel of your recipes")," to match your needs. It can be accessed through the ",o.createElement("em",null,"WP Recipe Maker > Settings")," page."),o.createElement("p",null,"For now let's just start by choosing one of our default templates. You'll have time to dive into the customization rabbit hole later!"),o.createElement("h2",null,"Select a template for your recipes"),o.createElement("div",{className:"wprm-admin-onboarding-step-template-select"},e.map(((e,t)=>{var n="wprm-manage-templates-template";return n+=!1!==this.state.template&&this.state.template.slug===e.slug?" wprm-manage-templates-template-selected":"",n+=e.premium&&!wprm_admin.addons.premium?" wprm-manage-templates-template-premium":"",o.createElement("div",{key:t,className:n,onClick:()=>{this.setState({template:e})}},e.name)}))),o.createElement("div",{className:"wprm-admin-onboarding-step-template-preview"},!1!==this.state.template&&o.createElement(o.Fragment,null,this.state.template.premium&&!wprm_admin.addons.premium&&o.createElement("p",{style:{color:"darkred",textAlign:"center"}},"You need ",o.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium")," to use this template."),o.createElement(oe.Z,{template:this.state.template,mode:"onboarding",onChangeMode:()=>{},onChangeHTML:()=>{}}))),o.createElement("div",{className:"footer-buttons"},o.createElement("button",{type:"button",className:"button",id:"prev-button",onClick:()=>{this.props.jumpToStep(1)}},"Previous"),o.createElement("button",{type:"button",className:"button button-primary",id:"next-button",onClick:()=>{this.state.template?this.state.template.premium&&!wprm_admin.addons.premium?alert("This template is only available in WP Recipe Maker Premium."):(ie.Z.settings.save({recipe_template_mode:"modern",default_recipe_template_modern:this.state.template.slug}),this.props.jumpToStep(3)):alert("Please select a template above.")}},"Use the above Template")))}}class le extends o.Component{constructor(e){super(e);var t=!1;wprm_admin_template.templates.hasOwnProperty("snippet-basic-buttons")&&(t=wprm_admin_template.templates["snippet-basic-buttons"]),this.state={template:t}}render(){var e=[];return Object.values(wprm_admin_template.templates).forEach((t=>{"snippet"===t.type&&e.push(t)})),o.createElement("div",{className:"wprm-admin-onboarding-step-snippet"},o.createElement("p",null,"Most people have content before the actual recipe. Often, there are some paragrahs with additional information or backstory. Maybe a few ads in between? You want people to read this, but if they are in a hurry you could ",o.createElement("strong",null,"give your visitors the option to jump directly to the recipe as well"),"!"),o.createElement("p",null,'That\'s where the Recipe Snippets feature comes in. These snippets usually contain a "Jump to Recipe" and "Print Recipe" button but can include any field you want, really. Have a look at the ',o.createElement("em",null,"Snippet Summary")," template below, for example."),o.createElement("p",null,"These snippets are ",o.createElement("strong",null,"fully customizable in the Template Editor")," as well. So you can change colors, text and add more information afterwards."),o.createElement("h2",null,"Select a snippet template"),o.createElement("div",{className:"wprm-admin-onboarding-step-template-select"},e.map(((e,t)=>{var n="wprm-manage-templates-template";return n+=!1!==this.state.template&&this.state.template.slug===e.slug?" wprm-manage-templates-template-selected":"",n+=e.premium&&!wprm_admin.addons.premium?" wprm-manage-templates-template-premium":"",o.createElement("div",{key:t,className:n,onClick:()=>{this.setState({template:e})}},e.name)}))),o.createElement("div",{className:"wprm-admin-onboarding-step-template-preview"},!1!==this.state.template&&o.createElement(o.Fragment,null,this.state.template.premium&&!wprm_admin.addons.premium&&o.createElement("p",{style:{color:"darkred",textAlign:"center"}},"You need ",o.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium")," to use this template."),o.createElement(oe.Z,{template:this.state.template,mode:"onboarding",onChangeMode:()=>{},onChangeHTML:()=>{}}),o.createElement("p",null,"This would be the start of your regular post content, so the snippet appears right at the top of your post."))),o.createElement("div",{className:"footer-buttons"},o.createElement("button",{type:"button",className:"button",id:"prev-button",onClick:()=>{this.props.jumpToStep(2)}},"Previous"),o.createElement("button",{type:"button",className:"button button-primary",id:"skip-button",onClick:()=>{this.props.jumpToStep(4)}},"Do not enable snippets right now"),o.createElement("button",{type:"button",className:"button button-primary",id:"next-button",onClick:()=>{this.state.template?this.state.template.premium&&!wprm_admin.addons.premium?alert("This template is only available in WP Recipe Maker Premium."):(ie.Z.settings.save({recipe_snippets_automatically_add_modern:!0,recipe_snippets_template:this.state.template.slug}),this.props.jumpToStep(4)):alert("Please select a template above.")}},"Use the above Snippet Template")))}}var ue=e=>o.createElement(K,{items:[{header:"Earn affiliate income with ingredient and equipment links",content:o.createElement(o.Fragment,null,!wprm_admin.addons.premium&&o.createElement("p",{style:{color:"darkred"}},"This feature is available in ",o.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium"),"."),o.createElement("p",null,"Ingredient and equipment links are perfect for affiliate marketing: you set the link once and it will automatically get displayed whenever you use that ingredient/equipment in a recipe."),o.createElement("p",null,"For equipment you even have the ability to add an image to increase the changes of having visitors click on the link."),o.createElement("ul",null,o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/29-ingredient-links",target:"_blank"},"Learn about ingredient links")),o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/193-equipment-links",target:"_blank"},"Learn about equipment links")),o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/203-equipment-images",target:"_blank"},"Adding equipment images"))))},{header:"Calculating and adding nutrition facts to your recipes",content:o.createElement(o.Fragment,null,!wprm_admin.addons.pro&&o.createElement("p",{style:{color:"darkred"}},"This feature is available in ",o.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium - Pro Bundle"),"."),o.createElement("p",null,"Provide your visitors with the complete recipe details by including a full nutrition label. With the Pro Bundle we can even ",o.createElement("strong",null,"help calculated these nutrition facts for you"),"."),o.createElement("p",null,"You have full control over the values that get displayed and can even ",o.createElement("strong",null,"create your own custom and calculated nutrients"),". This can be used for fields like Net Carbs, for example."),o.createElement("ul",null,o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/22-nutrition-label",target:"_blank"},"Nutrition Label")),o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/21-nutrition-facts-calculation",target:"_blank"},"Calculating Nutrition Facts")),o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/199-custom-and-calculated-nutrients",target:"_blank"},"Custom and Calculated Nutrients"))))},{header:"Reach an international audience with US and Metric units",content:o.createElement(o.Fragment,null,!wprm_admin.addons.pro&&o.createElement("p",{style:{color:"darkred"}},"This feature is available in ",o.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium - Pro Bundle"),"."),o.createElement("p",null,"Some of your readers might have a hard time making your recipes because they simply don't use the units you write them in. Not everyone is familiar with cups or grams, for example."),o.createElement("p",null,"Our unit conversion allows you to ",o.createElement("strong",null,"offer both unit system")," to your visitors and have them switch back and forth. To get these values we integrate with an API that helps calculate them for you!"),o.createElement("ul",null,o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/18-unit-conversion",target:"_blank"},"Setting up the Unit Conversion feature"))))},{header:"Set up Meal Planning with the recipe collections feature",content:o.createElement(o.Fragment,null,!wprm_admin.addons.elite&&o.createElement("p",{style:{color:"darkred"}},"This feature is available in ",o.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium - Elite Bundle"),"."),o.createElement("p",null,"Recipe Collections allow your visitors to ",o.createElement("strong",null,"save the recipes on your website in their own collections and then generate a shopping list")," for them. Can be used for collecting favorites, meal planning and much more!"),o.createElement("p",null,"As the site owner you can also ",o.createElement("strong",null,"create your own saved collections to present to your users"),". This can include as many recipes (and individual ingredients) as you want and you can even total the nutrition facts for those recipes."),o.createElement("ul",null,o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/148-recipe-collections",target:"_blank"},"Learn more about Recipe Collections")),o.createElement("li",null,o.createElement("a",{href:"https://demo.wprecipemaker.com/saved-recipe-collection/",target:"_blank"},"See a Saved Recipe Collection in action"))))}]}),se=e=>o.createElement(o.Fragment,null,o.createElement("p",null,"We built an email course full of ",o.createElement("strong",null,"tips and tricks")," to help you get the most out of WP Recipe Maker."),o.createElement("p",null,"During the course you'll get introduced to a ",o.createElement("strong",null,"private Facebook group")," full of WP Recipe Maker Food Bloggers to learn from and we'll even ",o.createElement("strong",null,"help promote your recipes on social media")," for free."),o.createElement("form",{action:"https://www.getdrip.com/forms/917801565/submissions",method:"post",className:"wprm-drip-form","data-drip-embedded-form":"917801565",target:"_blank"},o.createElement("div",null,o.createElement("div",null,o.createElement("label",{htmlFor:"drip-email"},"Email Address"),o.createElement("br",null),o.createElement("input",{type:"email",id:"drip-email",name:"fields[email]",defaultValue:wprm_faq.user.email}),o.createElement("input",{type:"hidden",id:"drip-customer-website",name:"fields[customer_website]",value:wprm_faq.user.website})),o.createElement("div",null,o.createElement("input",{type:"hidden",name:"fields[eu_consent]",id:"drip-eu-consent-denied",value:"denied"}),o.createElement("input",{type:"checkbox",name:"fields[eu_consent]",id:"drip-eu-consent",value:"granted"}),o.createElement("label",{htmlFor:"drip-eu-consent"},"I understand and agree to the ",o.createElement("a",{href:"https://www.iubenda.com/privacy-policy/82708778"},"privacy policy"))),o.createElement("div",null,o.createElement("input",{type:"hidden",name:"fields[eu_consent_message]",value:"I understand and agree to the privacy policy (https://www.iubenda.com/privacy-policy/82708778)"}))),o.createElement("div",null,o.createElement("input",{type:"submit",name:"submit",value:"Help me get the most out of WP Recipe Maker!",className:"button button-primary","data-drip-attribute":"sign-up-button"})))),ce=wprm_admin.wprm_url+"assets/images/faq/getting-started/",pe=e=>o.createElement(K,{items:[{header:"Using WPRM in a different language (or multilingual site)",content:o.createElement(o.Fragment,null,o.createElement("p",null,"We follow WordPress standards to make sure all text in WP Recipe Maker can be translated to fit your needs. Learn more here:"),o.createElement("ul",null,o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/128-translating-text-in-the-plugin",target:"_blank"},"Translating any text in WP Recipe Maker")),o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/132-how-to-use-this-for-a-multilingual-blog",target:"_blank"},"Using WPRM on a multilingual website"))))},{header:"Importing recipes from another plugin",content:o.createElement(o.Fragment,null,o.createElement("p",null,"Already have recipes on your website that were created in a different plugin? There's a good chance we can import them for you! If there are recipes we can import, you will find them on the ",o.createElement("em",null,"WP Recipe Maker > Import Recipes"),"."),o.createElement("ul",null,o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/69-importing-recipes-from-other-plugins",target:"_blank"},"All the plugins we can import from")),o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/86-custom-recipe-importer",target:"_blank"},"Develop your own recipe importer"))))},{header:"Adding recipes from Word, Google Docs, ...",content:o.createElement(o.Fragment,null,o.createElement("p",null,"If you already have your recipes in another document, filling in all the individual fields can be a bit tedious. Use our ",o.createElement("strong",null,"import recipe from text feature")," to paste in that recipe entirely and speed up the process."),o.createElement("p",null,"The field to paste in the recipe can be found after scrolling up all the way in the recipe modal:"),o.createElement("img",{src:ce+"import-from-text.png"}),o.createElement("p",null,"This will open up a new modal where you can follow the steps to import."),o.createElement("ul",null,o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/70-import-recipe-from-text",target:"_blank"},"Learn more about the import recipe from text feature"))))},{header:"Recipe metadata and SEO",content:o.createElement(o.Fragment,null,o.createElement("p",null,"An important reason for using a recipe plugin is to have it ",o.createElement("strong",null,"automatically add the recipe metadata that Google wants to see"),"."),o.createElement("p",null,"But WP Recipe Maker can only add that metadata if you actually fill in all the fields. To find out if you've done that, have a look at the SEO column on the ",o.createElement("em",null,"WP Recipe Maker > Manage")," page and make sure you ",o.createElement("strong",null,"get a green light there"),"."),o.createElement("ul",null,o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/51-recipe-metadata-for-seo",target:"_blank"},"Learn more about Recipe Metadata for SEO")),o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/74-recipe-metadata-checker",target:"_blank"},"Using the Recipe Metadata Checker"))))},{header:"Using the Template Editor",content:o.createElement(o.Fragment,null,o.createElement("p",null,"Everyone is unique so we want you to be able to ",o.createElement("strong",null,"completely change the recipe template to your liking"),". Not everyone will have the budget for a completely custom-coded template though, so that's what we built the Template Editor for!"),o.createElement("p",null,"With a little bit of a learning curve everyone should be able to add or remove specific parts of the recipe box, change labels and colors or add custom text. The Template Editor can be accessed through the ",o.createElement("em",null,"WP Recipe Maker > Settings")," page."),o.createElement("ul",null,o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/118-template-editor-101",target:"_blank"},"Go through the Template Editor 101 documentation first")),o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/category/25-template-editor-faq",target:"_blank"},"Learn more in these Template Editor FAQs"))))},{header:"WPRM for recipe roundup posts",content:o.createElement(o.Fragment,null,o.createElement("p",null,'WP Recipe Maker can also be used for recipe roundup posts (think "Easy Valentine\'s Day Menu" or "10 Scary Halloween Recipes"), ',o.createElement("strong",null,"linking to both recipes on your own website and others"),"."),o.createElement("p",null,"A good reason for using WPRM for these kind of posts is that we'll automatically include the ",o.createElement("strong",null,"ItemList metadata that Google needs to display your recipes in a Carousel"),". That should definitely get you some extra visits!"),o.createElement("ul",null,o.createElement("li",null,o.createElement("a",{href:"https://help.bootstrapped.ventures/article/182-itemlist-metadata-for-recipe-roundup-posts",target:"_blank"},"Learn about using recipe roundup feature"))))}]}),de=e=>o.createElement("div",{id:"wprm-admin-faq-container"},o.createElement("h1",null,"Get the most out of WP Recipe Maker"),o.createElement(se,null),o.createElement("h1",null,"Explainer Videos"),o.createElement("p",null,"Are you a visual learner? Make sure to check out the ",o.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/videos/",target:"_blank"},"WP Recipe Maker Explainer Videos"),' we have on several topics. "Introduction to WP Recipe Maker" is a good one to start with:'),o.createElement("iframe",{width:"640",height:"433",src:"https://www.loom.com/embed/9f268e92cc064be9a45580a46fc84084",frameborder:"0",webkitallowfullscreen:!0,mozallowfullscreen:!0,allowfullscreen:!0}),o.createElement("h1",null,"Documentation & Support"),o.createElement("p",null,"We've listed some frequently asked questions below. If you need more help we recommend checking out the ",o.createElement("a",{href:"https://help.bootstrapped.ventures/collection/1-wp-recipe-maker",target:"_blank"},"WP Recipe Maker Knowledge Base")," and the ",o.createElement("a",{href:"https://demo.wprecipemaker.com",target:"_blank"},"WPRM Demo Site")," that shows all features in action."),o.createElement("p",null,"If you have any other questions or suggestions at all, ",o.createElement("strong",null,"contact us using the blue question mark in the bottom right")," of this page or by emailing ",o.createElement("a",{href:"mailto:support@bootstrapped.ventures"},"support@bootstrapped.ventures")," directly. We answer all tickets within 24 hours, and usually a lot faster."),o.createElement("h1",null,"Frequently Asked Questions"),o.createElement("p",null,"Just click on the different sections to learn more!"),o.createElement("h2",null,"Getting started with WP Recipe Maker"),o.createElement(pe,null),o.createElement("h2",null,"Adding recipes in different editors"),o.createElement(te,null),o.createElement("h2",null,"Advanced WPRM Usage"),o.createElement(ue,null),o.createElement("p",null,"Need more? Go to the ",o.createElement("a",{href:"https://help.bootstrapped.ventures/collection/1-wp-recipe-maker",target:"_blank"},"WP Recipe Maker Knowledge Base"),".")),fe=e=>o.createElement("div",{className:"wprm-admin-onboarding-step-next"},o.createElement("p",null,"You made it to the end of the onboarding! There is a lot left to explore, but we recommend just starting by creating a recipe now. And don't forget to ",o.createElement("strong",null,"sign up for the email course")," below to get the most out of this plugin. You won't regret it!"),o.createElement("p",null,"No need to worry about leaving this page either. The information below will be available on the ",o.createElement("em",null,"WP Recipe Maker > FAQ & Support")," page at any time."),o.createElement(de,null),o.createElement("div",{className:"footer-buttons"},o.createElement("a",{href:wprm_admin.manage_url+"&skip_onboarding=1",className:"button button-primary"},"Continue to the Manage page"))),he=[{name:"Welcome",component:o.createElement(a,null)},{name:"Creating Recipes",component:o.createElement(re,null)},{name:"Template",component:o.createElement(ae,null)},{name:"Snippets",component:o.createElement(le,null)},{name:"Next Steps",component:o.createElement(fe,null)}];class me extends o.Component{render(){return wprm_faq.onboarded?o.createElement(de,null):o.createElement(o.Fragment,null,o.createElement("h1",null,"WP Recipe Maker"),o.createElement("div",{id:"wprm-admin-onboarding-steps"},o.createElement(i.Z,{steps:he,stepsNavigation:!1,prevBtnOnLastStep:!1,backButtonCls:"button",nextButtonCls:"button button-primary",onStepChange:e=>{e===he.length-1&&fetch(wprm_admin.ajax_url,{method:"POST",credentials:"same-origin",body:"action=wprm_finished_onboarding&security="+wprm_admin.nonce,headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}})}})))}}var ve=document.getElementById("wprm-admin-faq");ve&&r.render(o.createElement(me,null),ve)},5308:function(e,t,n){"use strict";n(87191);var r=n(52082),o={selectImage(e){this.select("image",e)},selectVideo(e){this.select("video",e)},select(e,t){var n={title:(0,r.S)("Select Media"),button:{text:(0,r.S)("Select")},multiple:!1};"video"===e?(n.frame="video",n.state="video-details"):n.library={type:"image"};var o=wp.media(n);o.on("select",(function(){var e=o.state().get("selection").first().toJSON();t(e)})),o.on("update",(function(){var e=o.state().media.attachment;e&&t(e)})),o.open()}};t.Z=o},57573:function(e,t,n){"use strict";n(54883),n(72975),n(33290),n(19985),n(22321),n(68995);t.Z={parseCSS(e){var t=e.style.css;for(var n of Object.values(e.style.properties)){var r="";Object.entries(n).forEach((e=>{var[t,n]=e;["id","name","default","value","options"].includes(t)||(r=" ".concat(t,"=").concat(n))}));var o="".concat(n.value,"; /*wprm_").concat(n.id).concat(r,"*/");t=t.replace(new RegExp("%wprm_".concat(n.id,"%s*;"),"g"),o)}return t},getShortcodeName(e){var t=e.replace("wprm-","");return t=(t=t.replace(/-/g," ")).toLowerCase().replace(/\b[a-z]/g,(function(e){return e.toUpperCase()}))},getFullShortcode(e){var t="["+e.id;for(var n in e.attributes)if(e.attributes.hasOwnProperty(n)){var r=e.attributes[n];t+=" "+n+'="'+(r=(r=r.replace(/"/gm,""")).replace(/\]/gm,"]"))+'"'}return t+="]"},dependencyMet(e,t){var n=!0;if(t&&e.hasOwnProperty("dependency")){var r=e.dependency;Array.isArray(r)||(r=[r]);var o=e.hasOwnProperty("dependency_compare")?e.dependency_compare:"AND",i=!0;for(var a of r)if(t.hasOwnProperty(a.id)){var l=!1,u=t[a.id].value,s=a.hasOwnProperty("type")?a.type:"match";"inverse"==s?u!=a.value&&(l=!0):"includes"==s?u.includes(a.value)&&(l=!0):u==a.value&&(l=!0),"OR"===o?(i&&(n=!1,i=!1),n=n||l):n=n&&l}}return n}}},720:function(e,t,n){"use strict";n.d(t,{Z:function(){return O}});n(31807),n(54883),n(55281),n(75668),n(22321),n(68995);var r=n(89526),o=n(14264),i=n.n(o),a=n(57573),l=n(34133),u=(n(29897),n(98373)),s=n.n(u),c=n(99237),p=n(73961),d=e=>p.createPortal(e.children,document.getElementById("wprm-block-properties")),f=n(1703);function h(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}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class g extends r.Component{constructor(e){super(e),this.state={fullShortcode:"",html:"",loading:!1,blockMode:"edit"}}componentDidMount(){this.checkShortcodeChange()}componentDidUpdate(e){this.checkShortcodeChange(),e.recipeId!==this.props.recipeId&&this.updatePreview(),e.editingBlock!==this.props.editingBlock&&this.onChangeBlockMode("edit")}checkShortcodeChange(){var e=a.Z.getFullShortcode(this.props.shortcode);e!==this.state.fullShortcode&&this.setState({fullShortcode:e},this.updatePreview)}updatePreview(){this.setState({loading:!0}),c.Z.template.previewShortcode(this.props.shortcode.uid,this.state.fullShortcode,this.props.recipeId).then((e=>{this.setState({html:e.hasOwnProperty(this.props.shortcode.uid)?e[this.props.shortcode.uid]:"",loading:!1})}))}getBlockProperties(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.shortcode,t={},n=!!wprm_admin_template.shortcodes.hasOwnProperty(e.id)&&wprm_admin_template.shortcodes[e.id];return n&&Object.entries(n).forEach((n=>{var[r,o]=n;if(o.type){var i=o.name?o.name:r.replace(/_/g," ").toLowerCase().replace(/\b[a-z]/g,(function(e){return e.toUpperCase()})),a=e.attributes.hasOwnProperty(r)?e.attributes[r]:o.default;a=(a=a.replace(/"/gm,'"')).replace(/]/gm,"]"),t[r]=m(m({},o),{},{id:r,name:i,value:a})}})),t}onChangeBlockMode(e){e!==this.state.blockMode&&this.setState({blockMode:e})}onCopyPasteStyle(e,t){var n=this.getBlockProperties(this.props.shortcodes[e]),r=this.getBlockProperties(this.props.shortcodes[t]),o={};Object.entries(r).forEach((e=>{var[t,r]=e;n.hasOwnProperty(t)&&n[t].value!==r.value&&"icon"!==t&&"text"!==t&&"label"!==t&&"header"!==t&&n[t].type===r.type&&("dropdown"!==r.type||r.options.hasOwnProperty(n[t].value))&&(o[t]=n[t].value)})),Object.keys(o).length&&this.props.onBlockPropertiesChange(t,o)}render(){var e=this.getBlockProperties();return r.createElement(r.Fragment,null,this.state.loading?r.createElement(l.Z,null):r.createElement(r.Fragment,null,i()(this.state.html.trim(),{replace:function(e){if(!e.parent&&this.props.shortcode.uid===this.props.hoveringBlock)return e.attribs||(e.attribs={}),e.attribs.class=e.attribs.class?e.attribs.class+" wprm-template-block-hovering":"wprm-template-block-hovering",s()(e)}.bind(this)})),this.props.shortcode.uid===this.props.editingBlock?r.createElement(d,null,"edit"===this.state.blockMode&&r.createElement(r.Fragment,null,r.createElement("div",{className:"wprm-template-menu-block-details"},r.createElement("a",{href:"#",onClick:e=>(e.preventDefault(),this.props.onChangeEditingBlock(!1))},"Blocks")," > ",this.props.shortcode.name),r.createElement("div",{className:"wprm-template-menu-block-quick-edit"},r.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),this.onChangeBlockMode("copy")}},"Copy styles to...")," | ",r.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),this.onChangeBlockMode("paste")}},"Paste styles from...")),Object.values(e).map(((t,n)=>r.createElement(f.Z,{properties:e,property:t,onPropertyChange:(e,t)=>this.props.onBlockPropertyChange(this.props.shortcode.uid,e,t),key:n}))),!Object.keys(e).length&&r.createElement("p",null,"There are no adjustable properties for this block.")),("copy"===this.state.blockMode||"paste"===this.state.blockMode)&&r.createElement(r.Fragment,null,r.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),this.onChangeBlockMode("edit")}},"Stop"),r.createElement("p",null,"copy"===this.state.blockMode?"Copy styles to:":"Paste styles from:"),this.props.shortcodes.map(((e,t)=>e.uid===this.props.shortcode.uid?r.createElement("div",{key:t,className:"wprm-template-menu-block wprm-template-menu-block-self"},"copy"===this.state.blockMode?"Copying from":"Pasting to"," ",e.name):r.createElement("div",{key:t,className:e.uid===this.props.hoveringBlock?"wprm-template-menu-block wprm-template-menu-block-hover":"wprm-template-menu-block",onClick:()=>{var t="copy"===this.state.blockMode?this.props.shortcode.uid:e.uid,n="copy"===this.state.blockMode?e.uid:this.props.shortcode.uid;this.onCopyPasteStyle(t,n)},onMouseEnter:()=>this.props.onChangeHoveringBlock(e.uid),onMouseLeave:()=>this.props.onChangeHoveringBlock(!1)},e.name))))):null)}}var b=e=>p.createPortal(e.children,document.getElementById("wprm-add-blocks")),y=e=>p.createPortal(e.children,document.getElementById("wprm-remove-blocks")),x=(n(35054),n(45624));class w extends r.Component{getOptions(e){return e?c.Z.template.searchRecipes(e).then((e=>e.data.recipes_with_id)):Promise.resolve({options:[]})}render(){return r.createElement(x.ZP,{className:"wprm-main-container-preview-recipe",placeholder:"Select or search a recipe to preview",value:this.props.recipe,onChange:this.props.onRecipeChange,getOptionValue:e=>{var{id:t}=e;return t},getOptionLabel:e=>{var{text:t}=e;return t},defaultOptions:wprm_admin.latest_recipes,loadOptions:this.getOptions.bind(this),noOptionsMessage:()=>"Create a recipe on the Manage page",clearable:!1})}}function E(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}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var M=["wprm-spacer","wprm-text","wprm-link","wprm-image","wprm-call-to-action","wprm-icon","wprm-prevent-sleep"],C=[],k=Object.keys(wprm_admin_template.shortcodes).sort();for(var j of k)M.includes(j)||C.push(j);class O extends r.Component{constructor(e){super(e);var t=wprm_admin_template.preview_recipe;"demo"!==t&&0!==t.id||(t={id:"demo",text:"Use WPRM Demo Recipe"}),this.state={recipe:t,width:600,html:"",htmlMap:"",parsedHtml:"",shortcodes:[],editingBlock:!1,addingBlock:!1,hoveringBlock:!1,hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}componentDidMount(){this.checkHtmlChange()}componentDidUpdate(e){"blocks"===this.props.mode&&this.props.mode!==e.mode?this.onChangeEditingBlock(!1):this.checkHtmlChange()}checkHtmlChange(){this.props.template.html!==this.state.html&&this.changeHtml()}changeHtml(){var e=this.parseHtml(this.props.template.html);this.setState({html:this.props.template.html,htmlMap:e.htmlMap,parsedHtml:e.html,shortcodes:e.shortcodes,hasError:!1})}parseHtml(e){var t=e;t=t.replace(/\[\/wprm\-condition\]/g,"");for(var n,o=[],u=/\[([^\s\]]*)\s*([^\]]*?)\]/gim;null!==(n=u.exec(e));){var s={},c=n[2].match(/(\w+=\"[^\"]*?\"|\w+=\'[^\']*?\'|\w+=\w*)/gim);if(c)for(var p=0;p<c.length;p++){var d=c[p],f=d.substring(0,d.indexOf("=")),h=d.substring(d.indexOf("=")+1);'"'!==h[0]&&"'"!==h[0]||(h=h.substr(1,h.length-2)),s[f]=h}var m=n[1],v=a.Z.getShortcodeName(m),b=o.length;t=t.replace(n[0],'<wprm-replace-shortcode-with-block uid="'+b+'"></wprm-replace-shortcode-with-block>'),o.push({uid:b,id:m,name:v,attributes:s})}var y=r.createElement(l.Z,null);try{y=i()(t,{replace:function(e){if("wprm-replace-shortcode-with-block"==e.name){var t=!!this.state.recipe&&this.state.recipe.id;return r.createElement(g,{recipeId:t,shortcode:o[e.attribs.uid],shortcodes:o,onBlockPropertyChange:this.onBlockPropertyChange.bind(this),onBlockPropertiesChange:this.onBlockPropertiesChange.bind(this),editingBlock:this.state.editingBlock,onChangeEditingBlock:this.onChangeEditingBlock.bind(this),hoveringBlock:this.state.hoveringBlock,onChangeHoveringBlock:this.onChangeHoveringBlock.bind(this)})}}.bind(this)})}catch(x){}return{htmlMap:t,html:y,shortcodes:o}}unparseHtml(){var e=this.state.htmlMap;for(var t of this.state.shortcodes){var n=a.Z.getFullShortcode(t);e=e.replace('<wprm-replace-shortcode-with-block uid="'+t.uid+'"></wprm-replace-shortcode-with-block>',n)}return e}onBlockPropertyChange(e,t,n){var r={};r[t]=n,this.onBlockPropertiesChange(e,r)}onBlockPropertiesChange(e,t){var n=this.state;n.shortcodes[e].attributes=I(I({},n.shortcodes[e].attributes),t),this.setState(n,(()=>{var e=this.unparseHtml();this.props.onChangeHTML(e)}))}onChangeEditingBlock(e){e!==this.state.editingBlock&&this.setState({editingBlock:e,hoveringBlock:!1},this.changeHtml)}onChangeHoveringBlock(e){e!==this.state.hoveringBlock&&this.setState({hoveringBlock:e},this.changeHtml)}onChangeAddingBlock(e){e!==this.state.addingBlock&&this.setState({addingBlock:e})}onAddBlockAfter(e){var t=this.state.htmlMap,n="["+this.state.addingBlock+"]",r='<wprm-replace-shortcode-with-block uid="'+e+'"></wprm-replace-shortcode-with-block>';(t=t.replace(r,r+"\n"+n))!==this.state.htmlMap&&this.setState({addingBlock:!1,hoveringBlock:!1,htmlMap:t},(()=>{var t=this.unparseHtml();this.props.onChangeHTML(t),this.props.onChangeMode("blocks"),this.setState({addingBlock:!1,hoveringBlock:!1},(()=>{this.onChangeEditingBlock(e+1)}))}))}onRemoveBlock(e){var t=this.state.htmlMap;(t=t.replace('<wprm-replace-shortcode-with-block uid="'+e+'"></wprm-replace-shortcode-with-block>',""))!==this.state.htmlMap&&this.setState({htmlMap:t},(()=>{var e=this.unparseHtml();this.props.onChangeHTML(e)}))}render(){var e=this.state.hasError?r.createElement(l.Z,null):this.state.parsedHtml;return"onboarding"===this.props.mode?r.createElement(r.Fragment,null,r.createElement("style",null,a.Z.parseCSS(this.props.template)),"recipe"===this.props.template.type&&r.createElement("div",{className:"wprm-recipe wprm-recipe-template-".concat(this.props.template.slug)},e),"snippet"===this.props.template.type&&r.createElement("div",{className:"wprm-recipe wprm-recipe-snippet wprm-recipe-template-".concat(this.props.template.slug)},e)):r.createElement(r.Fragment,null,r.createElement("div",{className:"wprm-main-container"},r.createElement("h2",{className:"wprm-main-container-name"},"Preview at ",r.createElement("input",{type:"number",min:"1",value:this.state.width,onChange:e=>{this.setState({width:e.target.value})}}),"px"),r.createElement("div",{className:"wprm-main-container-preview"},r.createElement(w,{recipe:this.state.recipe,onRecipeChange:e=>{e!==this.state.recipe&&this.setState({recipe:e,html:""})}}),this.state.recipe&&this.state.recipe.id?r.createElement("div",{className:"wprm-main-container-preview-content",style:{width:"".concat(this.state.width,"px")}},r.createElement("style",null,a.Z.parseCSS(this.props.template)),"recipe"===this.props.template.type&&r.createElement(r.Fragment,null,r.createElement("p",null,"This is an example paragraph that could be appearing before the recipe box, just to give some context to this preview. After this paragraph the recipe box will appear."),r.createElement("div",{className:"wprm-recipe wprm-recipe-template-".concat(this.props.template.slug)},e),r.createElement("p",null,"This is a paragraph appearing after the recipe box.")),"snippet"===this.props.template.type&&r.createElement(r.Fragment,null,r.createElement("p",null," "),r.createElement("div",{className:"wprm-recipe wprm-recipe-snippet wprm-recipe-template-".concat(this.props.template.slug)},e),r.createElement("p",null,"This would be the start of your post content, as the recipe snippets should automatically appear above. We'll be adding some example content below to give you a realistic preview."),r.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit. In eleifend vitae nisl et pharetra. Sed euismod nisi convallis arcu lobortis commodo. Mauris nec arcu blandit, ultrices nisi sit amet, scelerisque tortor. Mauris vitae odio sed nisl posuere feugiat eu sit amet nunc. Vivamus varius rutrum tortor, ut viverra mi. Pellentesque sed justo eget lectus eleifend consectetur. Curabitur hendrerit purus velit, ut auctor orci fringilla sed. Phasellus commodo luctus nulla, et rutrum risus lobortis in. Aenean ullamcorper, magna congue viverra consequat, libero elit blandit magna, in ultricies quam risus et magna. Aenean viverra lorem leo, eget laoreet quam suscipit viverra. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Quisque sodales dolor mauris. Ut sed tempus erat. Nulla metus diam, luctus ac erat bibendum, placerat maximus nisi. Nullam hendrerit eleifend lobortis."),r.createElement("p",null,"Proin tempus hendrerit orci, tincidunt bibendum justo tincidunt vel. Morbi porttitor finibus magna non imperdiet. Fusce sollicitudin ex auctor interdum ultricies. Proin efficitur eleifend lacus, dapibus eleifend nibh tempus at. Pellentesque feugiat imperdiet turpis, sed consequat diam tincidunt a. Mauris mollis justo nec tellus aliquam, efficitur scelerisque nunc semper. Morbi rhoncus ultricies congue. Sed semper aliquet interdum."),r.createElement("p",null,"Nam ultricies, tellus nec vulputate varius, ligula ipsum viverra libero, lacinia ultrices sapien erat id mi. Duis vel dignissim lectus. Aliquam vehicula finibus tortor, cursus fringilla leo sodales ut. Vestibulum nec erat pretium, finibus odio et, porta lorem. Nunc in mi lobortis, aliquet sem sollicitudin, accumsan mi. Nam pretium nibh nunc, vel varius ex sagittis at. Vestibulum ac turpis vitae dui congue iaculis et non massa. Duis sed gravida nunc. Vivamus blandit dapibus orci, eu maximus velit faucibus eu."),r.createElement("div",{id:"wprm-recipe-container-".concat(this.state.recipe.id),className:"wprm-preview-snippet-recipe-box"},r.createElement("p",null,"This is an example recipe box."),r.createElement("p",{id:"wprm-recipe-video-container-".concat(this.state.recipe.id)},"It includes an example video.")),r.createElement("p",null,"Some more random content could be appearing after the recipe box. Morbi dignissim euismod vestibulum. Interdum et malesuada fames ac ante ipsum primis in faucibus. Vestibulum eu faucibus lectus. Donec sit amet mattis erat, at vulputate elit. Morbi ullamcorper, justo nec porttitor porta, dui lectus euismod est, convallis tempor lorem elit nec leo. Praesent hendrerit auctor risus sed mollis. Integer suscipit arcu at risus efficitur, et interdum arcu fringilla. Aliquam mollis accumsan blandit. Nam vestibulum urna id velit scelerisque, eu commodo urna imperdiet. Mauris sed risus libero. Integer lacinia nec lectus in posuere. Sed feugiat dolor eros, ac scelerisque tellus hendrerit sit amet. Sed nisl lacus, condimentum id orci eu, malesuada mattis sem. Quisque ipsum velit, viverra et magna a, laoreet porta lorem. Praesent porttitor lorem quis quam lobortis, lacinia tincidunt odio sodales.")),"roundup"===this.props.template.type&&r.createElement(r.Fragment,null,r.createElement("h2",null,"Our first recipe"),r.createElement("p",null,"This is the first example recipe in this recipe roundup. We can have as much information and images as we want here and then end with the roundup template for this particular recipe."),r.createElement("div",{className:"wprm-recipe wprm-recipe-roundup-item wprm-recipe-template-".concat(this.props.template.slug)},e),r.createElement("h2",null,"Our second recipe"),r.createElement("p",null,"A roundup would have multiple recipes, so here is another one with some more demo text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. In eleifend vitae nisl et pharetra. Sed euismod nisi convallis arcu lobortis commodo."),r.createElement("p",null,"..."))):r.createElement("p",{style:{color:"darkred",textAlign:"center"}},"You have to select a recipe to preview the template. Use the dropdown above or set a default recipe to use for the preview on the settings page."))),!1===this.state.editingBlock||this.state.shortcodes.length<=this.state.editingBlock?r.createElement(d,null,this.state.shortcodes.map(((e,t)=>r.createElement("div",{key:t,className:e.uid===this.state.hoveringBlock?"wprm-template-menu-block wprm-template-menu-block-hover":"wprm-template-menu-block",onClick:()=>this.onChangeEditingBlock(e.uid),onMouseEnter:()=>this.onChangeHoveringBlock(e.uid),onMouseLeave:()=>this.onChangeHoveringBlock(!1)},e.name))),!this.state.shortcodes.length&&r.createElement("p",null,"There are no adjustable blocks.")):null,r.createElement(b,null,this.state.addingBlock?r.createElement(r.Fragment,null,r.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),this.onChangeAddingBlock(!1)}},"Cancel"),r.createElement("p",null,'Add "',a.Z.getShortcodeName(this.state.addingBlock),'" after:'),this.state.shortcodes.map(((e,t)=>r.createElement("div",{key:t,className:e.uid===this.state.hoveringBlock?"wprm-template-menu-block wprm-template-menu-block-hover":"wprm-template-menu-block",onClick:()=>this.onAddBlockAfter(e.uid),onMouseEnter:()=>this.onChangeHoveringBlock(e.uid),onMouseLeave:()=>this.onChangeHoveringBlock(!1)},e.name))),!this.state.shortcodes.length&&r.createElement("p",null,"There are no blocks in the Template.")):r.createElement(r.Fragment,null,r.createElement("p",null,"Select block to add:"),r.createElement("div",{className:"wprm-template-menu-add-block-group"},"General Blocks"),M.map(((e,t)=>r.createElement("div",{key:t,className:"wprm-template-menu-block",onClick:()=>this.onChangeAddingBlock(e)},a.Z.getShortcodeName(e)))),r.createElement("div",{className:"wprm-template-menu-add-block-group"},"Recipe Blocks"),C.map(((e,t)=>r.createElement("div",{key:t,className:"wprm-template-menu-block",onClick:()=>this.onChangeAddingBlock(e)},a.Z.getShortcodeName(e)))))),r.createElement(y,null,this.state.shortcodes.map(((e,t)=>r.createElement("div",{key:t,className:e.uid===this.state.hoveringBlock?"wprm-template-menu-block wprm-template-menu-block-hover":"wprm-template-menu-block",onClick:()=>{confirm('Are you sure you want to delete the "'+e.name+'" block?')&&this.onRemoveBlock(e.uid)},onMouseEnter:()=>this.onChangeHoveringBlock(e.uid),onMouseLeave:()=>this.onChangeHoveringBlock(!1)},e.name))),!this.state.shortcodes.length&&r.createElement("p",null,"There are no blocks to remove.")))}}},1703:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(89526),o=n(76044),i=n(57573),a=n(29790),l=n(8612);class u extends r.Component{constructor(e){super(e),this.state={displayColorPicker:!1}}handleClick(){this.setState({displayColorPicker:!this.state.displayColorPicker})}handleClose(){this.setState({displayColorPicker:!1})}handleChange(e){this.props.onValueChange(e.hex)}render(){var e=(0,a.default)({default:{color:{width:"36px",height:"14px",borderRadius:"2px",background:"".concat(this.props.value)},swatch:{padding:"5px",background:"#fff",borderRadius:"1px",boxShadow:"0 0 0 1px rgba(0,0,0,.1)",display:"inline-block",cursor:"pointer"},popover:{position:"absolute",zIndex:"2",right:"0",bottom:"30px"},cover:{position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}}});return r.createElement("div",{className:"wprm-template-property-input"},r.createElement("div",{style:e.swatch,onClick:this.handleClick.bind(this)},r.createElement("div",{style:e.color})),this.state.displayColorPicker?r.createElement("div",{style:e.popover},r.createElement("div",{style:e.cover,onClick:this.handleClose.bind(this)}),r.createElement(l.xS,{color:this.props.value,onChange:this.handleChange.bind(this),disableAlpha:!0})):null)}}var s=n(844),c=e=>{var t=[];for(var n in e.property.options)t.push({value:n,label:e.property.options[n]});return r.createElement(s.ZP,{className:"wprm-template-property-input",menuPlacement:"top",value:t.filter((t=>{var{value:n}=t;return n===e.value})),onChange:t=>e.onValueChange(t.value),options:t,clearable:!1})};n(19985);function p(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}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=e=>{var t=[{label:"General",options:[{value:"custom",label:"Set custom font"},{value:"inherit",label:"Inherit from parent"},{value:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif',label:"System Font"}]},{label:"Default Serif Fonts",options:[{value:"Georgia, serif",label:"Georgia"},{value:'"Palatino Linotype", "Book Antiqua", Palatino, serif',label:"Palatino"},{value:'"Times New Roman", Times, serif',label:"Times New Roman"}]},{label:"Default Sans-Serif Fonts",options:[{value:"Arial, Helvetica, sans-serif",label:"Arial"},{value:'"Arial Black", Gadget, sans-serif',label:"Arial Black"},{value:'"Comic Sans MS", cursive, sans-serif',label:"Comic Sans MS"},{value:"Helvetica, sans-serif",label:"Helvetica"},{value:"Impact, Charcoal, sans-serif",label:"Impact"},{value:'"Lucida Sans Unicode", "Lucida Grande", sans-serif',label:"Lucida"},{value:"Tahoma, Geneva, sans-serif",label:"Tahoma"},{value:'"Trebuchet MS", Helvetica, sans-serif',label:"Trebuchet MS"},{value:"Verdana, Geneva, sans-serif",label:"Verdana"}]},{label:"Default Monospace Fonts",options:[{value:'"Courier New", Courier, monospace',label:"Courier New"},{value:'"Lucida Console", Monaco, monospace',label:"Lucida Console"}]}],n=t.reduce(((e,t)=>e.concat(t.options)),[]),o=n.map((e=>e.value)),i=!e.value||!o.includes(e.value),a=i?"custom":e.value,l={option:(e,t)=>{var{data:n,isDisabled:r,isFocused:o,isSelected:i}=t,a="custom"===n.value?"inherit":n.value;return d(d({},e),{},{fontFamily:a})}};return r.createElement(r.Fragment,null,r.createElement(s.ZP,{className:"wprm-template-property-input",menuPlacement:"top",value:n.filter((e=>{var{value:t}=e;return t===a})),onChange:t=>{var n="custom"===t.value?"":t.value;return e.onValueChange(n)},options:t,styles:l,clearable:!1}),i&&r.createElement("input",{className:"wprm-template-property-input",type:"text",value:e.value,onChange:t=>e.onValueChange(t.target.value)}))},m=(n(55281),n(49092));class v extends r.Component{constructor(e){super(e),this.state={selectingIcon:!1}}render(){var e=wprm_admin_template.icons.hasOwnProperty(this.props.value)?wprm_admin_template.icons[this.props.value].url:this.props.value;return r.createElement(r.Fragment,null,this.state.selectingIcon?r.createElement("div",{className:"wprm-template-property-icon-select-container"},r.createElement("a",{href:"#",onClick:e=>(e.preventDefault(),this.setState({selectingIcon:!1}),this.props.onValueChange(""))},"Clear icon")," | ",r.createElement("a",{href:"#",onClick:e=>{e.preventDefault();var t=prompt("Set a custom URL for the icon");if(t)return this.setState({selectingIcon:!1}),this.props.onValueChange(t)}},"Set custom URL")," | Select:",r.createElement("div",{className:"wprm-template-property-icon-select-container-icons"},Object.keys(wprm_admin_template.icons).sort().map(((e,t)=>{var n=wprm_admin_template.icons[e];return r.createElement("span",{href:"#",onClick:()=>{if(this.setState({selectingIcon:!1}),n.id!==this.props.value)return this.props.onValueChange(n.id)},key:t},r.createElement(m.Z,{src:n.url,className:n.id===this.props.value?"wprm-template-property-icon-select wprm-template-property-icon-selected":"wprm-template-property-icon-select"}))})))):r.createElement("span",{className:"wprm-template-property-icon-selected-container"},e&&r.createElement(m.Z,{src:e,className:"wprm-template-property-icon-select"}),r.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),this.setState({selectingIcon:!0})}},e?"Change...":"Select...")))}}var g=n(5308),b=e=>{var t=0<parseInt(e.value);return r.createElement("a",{href:"#",onClick:t=>{t.preventDefault(),g.Z.selectImage((t=>{e.onValueChange(""+t.id)}))}},t?"Change...":"Select...")},y=(n(31807),n(54883),n(68995),Array.isArray(wprm_admin_template.thumbnail_sizes)?wprm_admin_template.thumbnail_sizes:Object.values(wprm_admin_template.thumbnail_sizes));class x extends r.Component{constructor(e){super(e),this.state={width:"",height:""}}componentDidMount(){this.checkSize()}componentDidUpdate(){this.checkSize()}checkSize(){var e=this.props.value;if(""!==e){var t=e.indexOf("x"),n=t>0?parseInt(e.substr(0,t)):0,r=t>0?parseInt(e.substr(t+1)):0;r=0<r?r:"",(n=0<n?n:"")===this.state.width&&r===this.state.height||this.setState({width:n,height:r})}}changeSize(e,t){if("width"===e||"height"===e){var n=this.state;n[e]=parseInt(t),this.setState(n,(()=>{(0<this.state.width||0<this.state.height)&&this.props.onValueChange("".concat(this.state.width,"x").concat(this.state.height))}))}}render(){var e=[];for(var t of y)e.push({value:t,label:t});return r.createElement(r.Fragment,null,r.createElement("label",null,"Select existing thumbnail size:"),r.createElement(s.ZP,{className:"wprm-template-property-input",menuPlacement:"top",value:y.includes(this.props.value)?e.filter((e=>{var{value:t}=e;return t===this.props.value})):"",onChange:e=>e?this.props.onValueChange(e.value):this.props.onValueChange(""),options:e,clearable:!0}),r.createElement("label",null,"...or set a specific width and height:"),r.createElement("div",{className:"wprm-template-property-input-width-height"},r.createElement("input",{className:"wprm-template-property-input",type:"number",value:this.state.width,onChange:e=>this.changeSize("width",e.target.value)})," x ",r.createElement("input",{className:"wprm-template-property-input",type:"number",value:this.state.height,onChange:e=>this.changeSize("height",e.target.value)})))}}var w=e=>{var t={};return e.property.hasOwnProperty("color")&&(t.color=e.property.color),r.createElement("div",{className:"wprm-template-property-info",style:t},e.property.text)},E=(n(22321),e=>{var t=e.property.hasOwnProperty("suffix")?e.property.suffix:"",n=t?e.value.replace(t,""):e.value;return r.createElement(r.Fragment,null,r.createElement("input",{className:"wprm-template-property-input",type:"number",value:n,onChange:n=>{var r="".concat(n.target.value).concat(t);return e.onValueChange(r)}}),t&&r.createElement("span",{className:"wprm-template-property-number-suffix"}," ",t))});n(75668);class I extends r.Component{constructor(e){super(e),this.state={number:"",unit:""}}changeNumber(e){e!==this.state.number&&this.props.onValueChange("".concat(e).concat(this.state.unit))}changeUnit(e){e!==this.state.unit&&this.props.onValueChange("".concat(this.state.number).concat(e))}componentDidMount(){this.checkNumber()}componentDidUpdate(){this.checkNumber()}checkNumber(){var e=this.props.value.match(/([+-]?\d*\.?\d*)\s*([^;]*)/),t=e?e[1]:"",n=e?e[2]:"";t===this.state.number&&n===this.state.unit||this.setState({number:t,unit:n})}render(){var e=["px","em"];return this.state.unit&&!e.includes(this.state.unit)&&e.push(this.state.unit),r.createElement(r.Fragment,null,r.createElement("input",{className:"wprm-template-property-input",type:"number",step:"px"===this.state.unit?"1":"0.1",value:this.state.number,onChange:e=>this.changeNumber(e.target.value)}),e.map(((e,t)=>r.createElement("span",{className:e===this.state.unit?"wprm-template-property-value-size-unit wprm-template-property-value-size-unit-selected":"wprm-template-property-value-size-unit",onClick:()=>this.changeUnit(e),key:t},e))))}}var S=e=>r.createElement("input",{className:"wprm-template-property-input",type:"text",value:e.value,onChange:t=>e.onValueChange(t.target.value)}),M=n(67127),C={color:u,align:c,border:c,dropdown:c,float:c,font:h,font_size:I,icon:v,image:b,image_size:x,info:w,percentage:E,number:E,size:I,text:S,toggle:e=>r.createElement(M.Z,{className:"wprm-template-property-input",checked:"1"===e.value,onChange:t=>{var n=t.target.checked?"1":"0";return e.onValueChange(n)}})},k=e=>{var t=!!C.hasOwnProperty(e.property.type)&&C[e.property.type];if(!t)return null;if(!i.Z.dependencyMet(e.property,e.properties))return null;var n=null;return e.property.hasOwnProperty("help")&&(n=r.createElement(o.Z,{type:"question",title:e.property.help,className:"wprm-admin-icon-help"})),r.createElement("div",{className:"wprm-template-property"},"info"===e.property.type?r.createElement(t,{property:e.property}):r.createElement(r.Fragment,null,r.createElement("div",{className:"wprm-template-property-label"},e.property.name," ",n),r.createElement("div",{className:"wprm-template-property-value wprm-template-property-value-".concat(e.property.type)},r.createElement(t,{property:e.property,value:e.property.value,onValueChange:t=>{e.onPropertyChange(e.property.id,t)}}))))}},99237:function(e,t,n){"use strict";n.d(t,{Z:function(){return z}});var r=n(46087),o=wprm_admin.endpoints.analytics,i={delete:e=>r.Z.call("".concat(o,"/").concat(e),"DELETE")};function a(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}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=wprm_admin.endpoints.custom_taxonomies,s={save(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t),o=e?"PUT":"POST";return r.Z.call(u,o,n)}},c=wprm_admin.endpoints.dashboard,p={getAnalytics:()=>r.Z.call("".concat(c,"/analytics"))},d=wprm_admin.endpoints.notices,f={dismissNotice(e){var t={id:e};return r.Z.call(d,"DELETE",t)}},h=wprm_admin.endpoints.modal,m={parseIngredients(e){var t={ingredients:e};return r.Z.call("".concat(h,"/ingredient/parse"),"POST",t)}},v=(n(35054),wprm_admin.endpoints.manage),g=wprm_admin.endpoints.rating,b=wprm_admin.endpoints.taxonomy,y=!1,x=!1,w={getData(e){return y?(x=e,new Promise((e=>e(!1)))):this.getDataDebounced(e)},getDataDebounced(e){return y=!0,r.Z.call("".concat(v,"/").concat(e.route),"POST",e).then((e=>{if(x){var t=x;return x=!1,this.getDataDebounced(t)}return y=!1,e}))},deleteUserRatings:e=>r.Z.call("".concat(g,"/recipe/").concat(e),"DELETE"),getTerm:(e,t)=>r.Z.call("".concat(b).concat(e,"/").concat(t)),createTerm(e,t){var n={name:t};return r.Z.call("".concat(b).concat(e),"POST",n)},deleteTerm:(e,t)=>r.Z.call("".concat(b).concat(e,"/").concat(t,"?force=true"),"DELETE"),renameTerm(e,t,n){var o={name:n};return r.Z.call("".concat(b).concat(e,"/").concat(t),"POST",o)},changeTermSlug(e,t,n){var o={slug:n};return r.Z.call("".concat(b).concat(e,"/").concat(t),"POST",o)},renameTermLabel(e,t,n){var o={type:e,id:t,label:n};return r.Z.call("".concat(v,"/taxonomy/label"),"POST",o)},mergeTerm(e,t,n){var o={type:e,oldId:t,newId:n};return r.Z.call("".concat(v,"/taxonomy/merge"),"POST",o)},updateTaxonomyMeta(e,t,n){var o={};return o[e]=n,r.Z.call("".concat(b).concat(e,"/").concat(t),"POST",o)},bulkEdit(e,t,n,o){var i={type:t,ids:n,action:o};return r.Z.call("".concat(v,"/").concat(e,"/bulk"),"POST",i)}},E=wprm_admin.endpoints.modal,I=!1,S=!1,M=!1,C={getSuggestions(e){return I?(M=e,new Promise((e=>e(!1)))):this.getSuggestionsDebounced(e)},getSuggestionsDebounced(e){I=!0;var t=Date.now();return!1!==S&&500>t-S?new Promise((n=>{setTimeout((()=>{n(this.getSuggestionsDebounced(e))}),t-S)})):(S=t,r.Z.call("".concat(E,"/suggest"),"POST",e).then((e=>{if(M){var t=M;return M=!1,this.getSuggestionsDebounced(t)}return I=!1,e})))}},k=wprm_admin.endpoints.rating,j={update(e){var t={rating:e};return r.Z.call("".concat(k),"POST",t)},updateComment(e,t){var n={rating:t};return r.Z.call("".concat(k,"/comment/").concat(e),"POST",n)},delete:e=>r.Z.call("".concat(k,"/").concat(e),"DELETE")},O=wprm_admin.endpoints.recipe,P=wprm_admin.endpoints.manage,T={get:e=>r.Z.call("".concat(O,"/").concat(e,"?t=").concat(Date.now())),save(e){var t={recipe:e},n=O,o="POST",i=!!e.id&&parseInt(e.id);return i&&(n+="/".concat(i),o="PUT"),r.Z.call(n,o,t)},updateStatus(e,t){var n={status:t};return r.Z.call("".concat(O,"/").concat(e),"PUT",n)},delete(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n="".concat(O,"/").concat(e);return t&&(n+="?force=true"),r.Z.call(n,"DELETE")},deleteRevision:e=>r.Z.call("".concat(P,"/revision/").concat(e),"DELETE")},L=wprm_admin.endpoints.setting,D={save(e){var t={settings:e};return r.Z.call(L,"POST",t)}},N=wprm_admin.endpoints.template,A=[],_={},B=null,H={previewShortcode(e,t,n){return _[e]=t,clearTimeout(B),B=setTimeout((()=>{this.previewShortcodes(n)}),500),new Promise((e=>A.push(e)))},previewShortcodes(e){var t=A,n=_;A=[],_={};var r={recipeId:e,shortcodes:n};fetch("".concat(N,"/preview"),{method:"POST",headers:{"X-WP-Nonce":wprm_admin.api_nonce,Accept:"application/json","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(r)}).then((e=>e.json().then((n=>{var r=e.ok?n.preview:{};t.forEach((e=>e(r)))}))))},searchRecipes:e=>fetch(wprm_admin.ajax_url,{method:"POST",credentials:"same-origin",body:"action=wprm_search_recipes&security="+wprm_admin.nonce+"&search="+encodeURIComponent(e),headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}}).then((e=>e.json())),save(e){var t={template:e};return r.Z.call(N,"POST",t)},delete(e){var t={slug:e};return r.Z.call(N,"DELETE",t)}},R=wprm_admin.endpoints.utilities,F={saveImage(e){var t={url:e};return r.Z.call("".concat(R,"/save_image"),"POST",t)},giveFeedback(e){var t={feedback:e};return r.Z.call("".concat(R,"/feedback"),"POST",t)}},{hooks:Z}=WPRecipeMaker["wp-recipe-maker/dist/shared"],z=Z.applyFilters("api",{analytics:i,customTaxonomy:s,dashboard:p,general:f,import:m,manage:w,modal:C,rating:j,recipe:T,settings:D,template:H,utilities:F})},46087:function(e,t,n){"use strict";n(31807),n(35054),n(22321);function r(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(s){return void n(s)}l.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function l(e){r(a,o,i,l,u,"next",e)}function u(e){r(a,o,i,l,u,"throw",e)}l(void 0)}))}}function i(){return(i=o((function*(e,t,n){console.log(e,t),console.log(n);var r="",o=parseInt(n.status),i=!1;300<=o&&o<=399?i="A redirection is breaking the API endpoint. Are any redirections set up in the .htaccess file or using a plugin?":401===o||403===o?i="Something is blocking access. Are you or your webhost using a firewall like Cloudflare WAF or Sucuri? Try whitelisting your own IP address or this specific action.":404===o?i="The rest API endpoint could not be found. Are your permalinks set up correctly?":500<=o&&o<=599&&(i="The server is throwing an error. It could be hitting a memory or execution limit. Check with your webhost what the exact error is in the logs."),i&&(r+="".concat(i,"\r\n\r\n")),r+="Press OK to contact support@bootstrapped.ventures for support (opens an email popup).";var a="".concat(n.url," ").concat(n.redirected?"(redirected)":"","- ").concat(n.status," - ").concat(n.statusText);r+="\r\n\r\n".concat(a);var l=!0;try{yield n.text().then((e=>{console.log(e),-1!==e.indexOf("rest_cookie_invalid_nonce")?(alert("You got logged out or your session expired. Please try logging out of WordPress and back in again."),l=!1):r+="\r\n\r\n".concat(e)}))}catch(s){console.log(s),r+="\r\n\r\n".concat(s)}if(l&&confirm(r)){var u="I received the error message below at ".concat(window.location.href,"\r\n\r\n").concat(r);window.open("mailto:".concat(encodeURIComponent("support@bootstrapped.ventures"),"?subject=").concat(encodeURIComponent("WP Recipe Maker Error Message"),"&body=").concat(encodeURIComponent(u)))}}))).apply(this,arguments)}t.Z={call(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=wprm_admin.api_nonce;"object"==typeof window.wpApiSettings&&window.wpApiSettings.nonce&&(r=window.wpApiSettings.nonce);var o={method:t,headers:{"X-WP-Nonce":r,Accept:"application/json","Content-Type":"application/json","Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:0},credentials:"same-origin"};"PUT"!==t&&"DELETE"!==t||(o.method="POST",o.headers["X-HTTP-Method-Override"]=t),n&&(o.body=JSON.stringify(n));var a=0;return e=e.replace(/\?/g,(function(e){return 2<=++a?"&":e})),fetch(e,o).then((function(t){return t.ok?t.json():(function(e,t,n){i.apply(this,arguments)}(e,o,t),!1)}))}}},76044:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(89526),o=n(49092),i=n(95075),a={adjustable:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2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BzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSIyLjUiIHkxPSIxMS41IiB4Mj0iNi41IiB5Mj0iMTEuNSIgZGF0YS1jb2xvcj0iY29sb3ItMiIvPiA8bGluZSBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjEyLjUiIHkxPSIxMS41IiB4Mj0iMTMuNSIgeTI9IjExLjUiIGRhdGEtY29sb3I9ImNvbG9yLTIiLz4gPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTE0LjUsMTUuNWgtMTMgYy0wLjU1MiwwLTEtMC40NDgtMS0xdi0xM2MwLTAuNTUyLDAuNDQ4LTEsMS0xaDEzYzAuNTUyLDAsMSwwLjQ0OCwxLDF2MTNDMTUuNSwxNS4wNTIsMTUuMDUyLDE1LjUsMTQuNSwxNS41eiIvPjwvZz48L3N2Zz4="},l=e=>{var t=!!a.hasOwnProperty(e.type)&&a[e.type];if(!t)return null;var n=e.title,l=e.className?"wprm-admin-icon ".concat(e.className):"wprm-admin-icon",u=!!e.hasOwnProperty("hidden")&&e.hidden;return u&&(n="",l+=" wprm-admin-icon-hidden"),r.createElement(i.Z,{content:n},r.createElement("span",{className:l,onClick:u?()=>{}:e.onClick},r.createElement(o.Z,{src:t})))}},34133:function(e,t,n){"use strict";var r=n(89526);t.Z=e=>r.createElement("div",{className:"wprm-admin-loader"})},95075:function(e,t,n){"use strict";var r=n(89526),o=n(20877);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}function a(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){l(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}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.Z=e=>{if(!e.content)return e.children;var t=e.hasOwnProperty("style")?e.style:{};return r.createElement(o.Tooltip,{html:r.createElement("div",{dangerouslySetInnerHTML:{__html:e.content}}),popperOptions:{modifiers:{addZIndex:{enabled:!0,order:810,fn:e=>a(a({},e),{},{styles:a(a({},e.styles),{},{zIndex:1e5})})},preventOverflow:{boundariesElement:"window"}}},style:t},e.children)}},52082:function(e,t,n){"use strict";function r(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}function o(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){i(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}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{S:function(){return l}});var a={};function l(e){return a.hasOwnProperty(e)?a[e]:e}window.hasOwnProperty("wprm_public")&&wprm_public.hasOwnProperty("translations")&&(a=o(o({},a),wprm_public.translations)),window.hasOwnProperty("wprm_admin")&&wprm_admin.hasOwnProperty("translations")&&(a=o(o({},a),wprm_admin.translations))},71236:function(e,t,n){"use strict";var r=n(59833),o=n(24697),i="/*|*/";function a(e){e&&l.current.insert(e+"}")}var l={current:null},u=function(e,t,n,r,o,u,s,c,p,d){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return l.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===c)return t+i;break;case 3:switch(c){case 102:case 112:return l.current.insert(n[0]+t),"";default:return t+(0===d?i:"")}case-2:t.split("/*|*/}").forEach(a)}};t.Z=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var i=new o.Z(t);var a,s={};a=e.container||document.head;var c,p=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(p,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){s[e]=!0})),e.parentNode!==a&&a.appendChild(e)})),i.use(e.stylisPlugins)(u),c=function(e,t,n,r){var o=t.name;l.current=n,i(e,t.styles),r&&(d.inserted[o]=!0)};var d={key:n,sheet:new r.m({key:n,container:a,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:s,registered:{},insert:c};return d}},12821:function(e,t,n){"use strict";n.d(t,{nq:function(){return p},tZ:function(){return g},F4:function(){return b},ms:function(){return w}});var r=n(89526),o=n(71236),i=n(56002),a=n(26794),l=n(59833),u=n(72144);var s=(0,r.createContext)((0,o.Z)()),c=(0,r.createContext)({}),p=s.Provider,d=function(e){return(0,r.forwardRef)((function(t,n){return(0,r.createElement)(s.Consumer,null,(function(r){return e(t,r,n)}))}))},f="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",h=Object.prototype.hasOwnProperty,m=function(e,t,n,o){var l=t[f],u=[],s="",c=null===n?t.css:t.css(n);"string"==typeof c&&void 0!==e.registered[c]&&(c=e.registered[c]),u.push(c),void 0!==t.className&&(s=(0,i.f)(e.registered,u,t.className));var p=(0,a.O)(u);(0,i.M)(e,p,"string"==typeof l);s+=e.key+"-"+p.name;var d={};for(var m in t)h.call(t,m)&&"css"!==m&&m!==f&&(d[m]=t[m]);return d.ref=o,d.className=s,(0,r.createElement)(l,d)},v=d((function(e,t,n){return"function"==typeof e.css?(0,r.createElement)(c.Consumer,null,(function(r){return m(t,e,r,n)})):m(t,e,null,n)}));var g=function(e,t){var n=arguments;if(null==t||null==t.css)return r.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=v;var a={};for(var l in t)h.call(t,l)&&(a[l]=t[l]);a[f]=e,i[1]=a;for(var u=2;u<o;u++)i[u]=n[u];return r.createElement.apply(null,i)},b=(r.Component,function(){var e=u.Z.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}),y=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var l in a="",i)i[l]&&l&&(a&&(a+=" "),a+=l);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function x(e,t,n){var r=[],o=(0,i.f)(e,r,n);return r.length<2?n:o+t(r)}var w=d((function(e,t){return(0,r.createElement)(c.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=(0,a.O)(n,t.registered);return(0,i.M)(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return x(t.registered,r,y(n))},theme:n},l=e.children(o);return!0,l}))}))},72144:function(e,t,n){"use strict";var r=n(26794);t.Z=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.O)(t)}},95862:function(e,t){"use strict";t.Z=function(e){for(var t,n=e.length,r=n^n,o=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)}},93059:function(e,t){"use strict";t.Z=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},26794:function(e,t,n){"use strict";n.d(t,{O:function(){return f}});var r=n(95862),o=n(8560),i=n(93059),a=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=(0,i.Z)((function(e){return e.replace(a,"-$&").toLowerCase()})),s=function(e,t){if(null==t||"boolean"==typeof t)return"";switch(e){case"animation":case"animationName":"string"==typeof t&&(t=t.replace(l,(function(e,t,n){return p={name:t,styles:n,next:p},t})))}return 1!==o.Z[e]&&45!==e.charCodeAt(1)&&"number"==typeof t&&0!==t?t+"px":t};function c(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)p={name:o.name,styles:o.styles,next:p},o=o.next;return n.styles}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=c(e,t,n[o],!1);else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":r+=u(i)+":"+s(i,a)+";";else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]])r+=i+"{"+c(e,t,a,!1)+"}";else for(var l=0;l<a.length;l++)r+=u(i)+":"+s(i,a[l])+";"}return r}(e,t,n);case"function":if(void 0!==e){var i=p,a=n(e);return p=i,c(e,t,a,r)}default:if(null==t)return n;var l=t[n];return void 0===l||r?n:l}}var p,d=/label:\s*([^\s;\n{]+)\s*;/g;var f=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,i="";p=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,i+=c(n,t,a,!1)):i+=a[0];for(var l=1;l<e.length;l++)i+=c(n,t,e[l],46===i.charCodeAt(i.length-1)),o&&(i+=a[l]);d.lastIndex=0;for(var u,s="";null!==(u=d.exec(i));)s+="-"+u[1];return{name:(0,r.Z)(i)+s,styles:i,next:p}}},59833:function(e,t,n){"use strict";n.d(t,{m:function(){return r}});var r=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var i=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,i?0:o.cssRules.length)}catch(a){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}()},24697:function(e,t){"use strict";t.Z=function(e){function t(e,r,u,s,d){for(var f,h,m,v,x,E=0,I=0,S=0,M=0,C=0,L=0,N=m=f=0,_=0,B=0,H=0,R=0,F=u.length,Z=F-1,z="",W="",G="",U="";_<F;){if(h=u.charCodeAt(_),_===Z&&0!==I+M+S+E&&(0!==I&&(h=47===I?10:47),M=S=E=0,F++,Z++),0===I+M+S+E){if(_===Z&&(0<B&&(z=z.replace(p,"")),0<z.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:z+=u.charAt(_)}h=59}switch(h){case 123:for(f=(z=z.trim()).charCodeAt(0),m=1,R=++_;_<F;){switch(h=u.charCodeAt(_)){case 123:m++;break;case 125:m--;break;case 47:switch(h=u.charCodeAt(_+1)){case 42:case 47:e:{for(N=_+1;N<Z;++N)switch(u.charCodeAt(N)){case 47:if(42===h&&42===u.charCodeAt(N-1)&&_+2!==N){_=N+1;break e}break;case 10:if(47===h){_=N+1;break e}}_=N}}break;case 91:h++;case 40:h++;case 34:case 39:for(;_++<Z&&u.charCodeAt(_)!==h;);}if(0===m)break;_++}switch(m=u.substring(R,_),0===f&&(f=(z=z.replace(c,"").trim()).charCodeAt(0)),f){case 64:switch(0<B&&(z=z.replace(p,"")),h=z.charCodeAt(1)){case 100:case 109:case 115:case 45:B=r;break;default:B=T}if(R=(m=t(r,B,m,h,d+1)).length,0<D&&(x=l(3,m,B=n(T,z,H),r,j,k,R,h,d,s),z=B.join(""),void 0!==x&&0===(R=(m=x.trim()).length)&&(h=0,m="")),0<R)switch(h){case 115:z=z.replace(w,a);case 100:case 109:case 45:m=z+"{"+m+"}";break;case 107:m=(z=z.replace(g,"$1 $2"))+"{"+m+"}",m=1===P||2===P&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=z+m,112===s&&(W+=m,m="")}else m="";break;default:m=t(r,n(r,z,H),m,s,d+1)}G+=m,m=H=B=N=f=0,z="",h=u.charCodeAt(++_);break;case 125:case 59:if(1<(R=(z=(0<B?z.replace(p,""):z).trim()).length))switch(0===N&&(f=z.charCodeAt(0),45===f||96<f&&123>f)&&(R=(z=z.replace(" ",":")).length),0<D&&void 0!==(x=l(1,z,r,e,j,k,W.length,s,d,s))&&0===(R=(z=x.trim()).length)&&(z="\0\0"),f=z.charCodeAt(0),h=z.charCodeAt(1),f){case 0:break;case 64:if(105===h||99===h){U+=z+u.charAt(_);break}default:58!==z.charCodeAt(R-1)&&(W+=o(z,f,h,z.charCodeAt(2)))}H=B=N=f=0,z="",h=u.charCodeAt(++_)}}switch(h){case 13:case 10:47===I?I=0:0===1+f&&107!==s&&0<z.length&&(B=1,z+="\0"),0<D*A&&l(0,z,r,e,j,k,W.length,s,d,s),k=1,j++;break;case 59:case 125:if(0===I+M+S+E){k++;break}default:switch(k++,v=u.charAt(_),h){case 9:case 32:if(0===M+E+I)switch(C){case 44:case 58:case 9:case 32:v="";break;default:32!==h&&(v=" ")}break;case 0:v="\\0";break;case 12:v="\\f";break;case 11:v="\\v";break;case 38:0===M+I+E&&(B=H=1,v="\f"+v);break;case 108:if(0===M+I+E+O&&0<N)switch(_-N){case 2:112===C&&58===u.charCodeAt(_-3)&&(O=C);case 8:111===L&&(O=L)}break;case 58:0===M+I+E&&(N=_);break;case 44:0===I+S+M+E&&(B=1,v+="\r");break;case 34:case 39:0===I&&(M=M===h?0:0===M?h:M);break;case 91:0===M+I+S&&E++;break;case 93:0===M+I+S&&E--;break;case 41:0===M+I+E&&S--;break;case 40:if(0===M+I+E){if(0===f)switch(2*C+3*L){case 533:break;default:f=1}S++}break;case 64:0===I+S+M+E+N+m&&(m=1);break;case 42:case 47:if(!(0<M+E+S))switch(I){case 0:switch(2*h+3*u.charCodeAt(_+1)){case 235:I=47;break;case 220:R=_,I=42}break;case 42:47===h&&42===C&&R+2!==_&&(33===u.charCodeAt(R+2)&&(W+=u.substring(R,_+1)),v="",I=0)}}0===I&&(z+=v)}L=C,C=h,_++}if(0<(R=W.length)){if(B=r,0<D&&(void 0!==(x=l(2,W,B,e,j,k,R,s,d,s))&&0===(W=x).length))return U+W+G;if(W=B.join(",")+"{"+W+"}",0!=P*O){switch(2!==P||i(W,2)||(O=0),O){case 111:W=W.replace(y,":-moz-$1")+W;break;case 112:W=W.replace(b,"::-webkit-input-$1")+W.replace(b,"::-moz-$1")+W.replace(b,":-ms-input-$1")+W}O=0}}return U+W+G}function n(e,t,n){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var l=0;for(e=0===a?"":e[0]+" ";l<i;++l)t[l]=r(e,t[l],n).trim();break;default:var u=l=0;for(t=[];l<i;++l)for(var s=0;s<a;++s)t[u++]=r(e[s]+" ",o[l],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(v,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",l=2*t+3*n+4*r;if(944===l){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===P||2===P&&i(u,1)?"-webkit-"+u+u:u}if(0===P||2===P&&!i(a,1))return a;switch(l){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(C,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return f.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(x,"tb");break;case 232:u=a.replace(x,"tb-rl");break;case 220:u=a.replace(x,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,l=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<l?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(I,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(I,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===M.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),N(2!==t?r:r.replace(S,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(E," or ($1)").substring(4):"("+t+")"}function l(e,t,n,r,o,i,a,l,u,c){for(var p,d=0,f=t;d<D;++d)switch(p=L[d].call(s,e,f,n,r,o,i,a,l,u,c)){case void 0:case!1:case!0:case null:break;default:f=p}if(f!==t)return f}function u(e){return void 0!==(e=e.prefix)&&(N=null,e?"function"!=typeof e?P=1:(P=2,N=e):P=0),u}function s(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<D){var o=l(-1,n,r,r,j,k,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(T,r,n,0,0);return 0<D&&(void 0!==(o=l(-2,i,r,r,j,k,i.length,0,0,0))&&(i=o)),"",O=0,k=j=1,i}var c=/^\0+/g,p=/[\0\r\f]/g,d=/: */g,f=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,I=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,M=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,k=1,j=1,O=0,P=1,T=[],L=[],D=0,N=null,A=0;return s.use=function e(t){switch(t){case void 0:case null:D=L.length=0;break;default:if("function"==typeof t)L[D++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else A=0|!!t}return e},s.set=u,void 0!==e&&u(e),s}},8560:function(e,t){"use strict";t.Z={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},56002:function(e,t,n){"use strict";n.d(t,{f:function(){return r},M:function(){return o}});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(void 0!==o)}}},21112:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=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},i=n(89526),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,i=void 0===r?24:r,l=e.height,u=void 0===l?24:l,s=e.style,c=void 0===s?{}:s,p=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:u},c)},p),a.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},47327:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=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},i=n(89526),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,i=void 0===r?24:r,l=e.height,u=void 0===l?24:l,s=e.style,c=void 0===s?{}:s,p=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:u},c)},p),a.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},17449:function(e,t,n){"use strict";var r=n(99850),o=[],i=[],a=r.makeRequestCallFromTimer((function(){if(i.length)throw i.shift()}));function l(e){var t;(t=o.length?o.pop():new u).task=e,r(t)}function u(){this.task=null}e.exports=l,u.prototype.call=function(){try{this.task.call()}catch(e){l.onerror?l.onerror(e):(i.push(e),a())}finally{this.task=null,o[o.length]=this}}},99850:function(e,t,n){"use strict";function r(e){i.length||(o(),!0),i[i.length]=e}e.exports=r;var o,i=[],a=0;function l(){for(;a<i.length;){var e=a;if(a+=1,i[e].call(),a>1024){for(var t=0,n=i.length-a;t<n;t++)i[t]=i[t+a];i.length-=a,a=0}}i.length=0,a=0,!1}var u,s,c,p=void 0!==n.g?n.g:self,d=p.MutationObserver||p.WebKitMutationObserver;function f(e){return function(){var t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}"function"==typeof d?(u=1,s=new d(l),c=document.createTextNode(""),s.observe(c,{characterData:!0}),o=function(){u=-u,c.data=u}):o=f(l),r.requestFlush=o,r.makeRequestCallFromTimer=f},64403:function(e,t){var n;
|
2 |
/*!
|
3 |
Copyright (c) 2017 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
dist/admin-modal.js
CHANGED
@@ -5,7 +5,7 @@ var WPRecipeMaker;(WPRecipeMaker=void 0===WPRecipeMaker?{}:WPRecipeMaker)["wp-re
|
|
5 |
* Copyright (c) 2014-2017, Jon Schlinkert.
|
6 |
* Released under the MIT License.
|
7 |
*/
|
8 |
-
function Oe(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ae(e){var t,r;return!1!==Oe(e)&&(void 0===(t=e.constructor)||!1!==Oe(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}function Me(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Be(e){return!!e&&!!e[vt]}function Pe(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===bt}(e)||Array.isArray(e)||!!e[gt]||!!e.constructor[gt]||Re(e)||_e(e))}function Ne(e,t,r){void 0===r&&(r=!1),0===ke(e)?(r?Object.keys:yt)(e).forEach((function(n){r&&"symbol"==typeof n||t(n,e[n],e)})):e.forEach((function(r,n){return t(n,r,e)}))}function ke(e){var t=e[vt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Re(e)?2:_e(e)?3:0}function Fe(e,t){return 2===ke(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Te(e,t){return 2===ke(e)?e.get(t):e[t]}function je(e,t,r){var n=ke(e);2===n?e.set(t,r):3===n?(e.delete(t),e.add(r)):e[t]=r}function Le(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Re(e){return pt&&e instanceof Map}function _e(e){return ft&&e instanceof Set}function Ze(e){return e.o||e.t}function He(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=wt(e);delete t[vt];for(var r=yt(t),n=0;n<r.length;n++){var i=r[n],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function We(e,t){return void 0===t&&(t=!1),Ge(e)||Be(e)||!Pe(e)||(ke(e)>1&&(e.set=e.add=e.clear=e.delete=Ue),Object.freeze(e),t&&Ne(e,(function(e,t){return We(t,!0)}),!0)),e}function Ue(){Me(2)}function Ge(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function qe(e){var t=Et[e];return t||Me(18,e),t}function ze(){return ct}function Ve(e,t){t&&(qe("Patches"),e.u=[],e.s=[],e.v=t)}function Je(e){Ye(e),e.p.forEach(Xe),e.p=null}function Ye(e){e===ct&&(ct=e.l)}function Qe(e){return ct={p:[],l:ct,h:e,m:!0,_:0}}function Xe(e){var t=e[vt];0===t.i||1===t.i?t.j():t.O=!0}function Ke(e,t){t._=t.p.length;var r=t.p[0],n=void 0!==e&&e!==r;return t.h.g||qe("ES5").S(t,e,n),n?(r[vt].P&&(Je(t),Me(4)),Pe(e)&&(e=$e(t,e),t.l||tt(t,e)),t.u&&qe("Patches").M(r[vt],e,t.u,t.s)):e=$e(t,r,[]),Je(t),t.u&&t.v(t.u,t.s),e!==ht?e:void 0}function $e(e,t,r){if(Ge(t))return t;var n=t[vt];if(!n)return Ne(t,(function(i,o){return et(e,n,t,i,o,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return tt(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=4===n.i||5===n.i?n.o=He(n.k):n.o;Ne(3===n.i?new Set(i):i,(function(t,o){return et(e,n,i,t,o,r)})),tt(e,i,!1),r&&e.u&&qe("Patches").R(n,r,e.u,e.s)}return n.o}function et(e,t,r,n,i,o){if(Be(i)){var a=$e(e,i,o&&t&&3!==t.i&&!Fe(t.D,n)?o.concat(n):void 0);if(je(r,n,a),!Be(a))return;e.m=!1}if(Pe(i)&&!Ge(i)){if(!e.h.F&&e._<1)return;$e(e,i),t&&t.A.l||tt(e,i)}}function tt(e,t,r){void 0===r&&(r=!1),e.h.F&&e.m&&We(t,r)}function rt(e,t){var r=e[vt];return(r?Ze(r):e)[t]}function nt(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function it(e){e.P||(e.P=!0,e.l&&it(e.l))}function ot(e){e.o||(e.o=He(e.t))}function at(e,t,r){var n=Re(t)?qe("MapSet").N(t,r):_e(t)?qe("MapSet").T(t,r):e.g?function(e,t){var r=Array.isArray(e),n={i:r?1:0,A:t?t.A:ze(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=n,o=Dt;r&&(i=[n],o=Ct);var a=Proxy.revocable(i,o),s=a.revoke,u=a.proxy;return n.k=u,n.j=s,u}(t,r):qe("ES5").J(t,r);return(r?r.A:ze()).p.push(n),n}function st(e){return Be(e)||Me(22,e),function e(t){if(!Pe(t))return t;var r,n=t[vt],i=ke(t);if(n){if(!n.P&&(n.i<4||!qe("ES5").K(n)))return n.t;n.I=!0,r=ut(t,i),n.I=!1}else r=ut(t,i);return Ne(r,(function(t,i){n&&Te(n.t,t)===i||je(r,t,e(i))})),3===i?new Set(r):r}(e)}function ut(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return He(e)}var lt,ct,dt="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),pt="undefined"!=typeof Map,ft="undefined"!=typeof Set,mt="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ht=dt?Symbol.for("immer-nothing"):((lt={})["immer-nothing"]=!0,lt),gt=dt?Symbol.for("immer-draftable"):"__$immer_draftable",vt=dt?Symbol.for("immer-state"):"__$immer_state",bt=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),yt="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,wt=Object.getOwnPropertyDescriptors||function(e){var t={};return yt(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},Et={},Dt={get:function(e,t){if(t===vt)return e;var r=Ze(e);if(!Fe(r,t))return function(e,t,r){var n,i=nt(t,r);return i?"value"in i?i.value:null===(n=i.get)||void 0===n?void 0:n.call(e.k):void 0}(e,r,t);var n=r[t];return e.I||!Pe(n)?n:n===rt(e.t,t)?(ot(e),e.o[t]=at(e.A.h,n,e)):n},has:function(e,t){return t in Ze(e)},ownKeys:function(e){return Reflect.ownKeys(Ze(e))},set:function(e,t,r){var n=nt(Ze(e),t);if(null==n?void 0:n.set)return n.set.call(e.k,r),!0;if(!e.P){var i=rt(Ze(e),t),o=null==i?void 0:i[vt];if(o&&o.t===r)return e.o[t]=r,e.D[t]=!1,!0;if(Le(r,i)&&(void 0!==r||Fe(e.t,t)))return!0;ot(e),it(e)}return e.o[t]===r&&"number"!=typeof r&&(void 0!==r||t in e.o)||(e.o[t]=r,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==rt(e.t,t)||t in e.t?(e.D[t]=!1,ot(e),it(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Ze(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty:function(){Me(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Me(12)}},Ct={};Ne(Dt,(function(e,t){Ct[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Ct.deleteProperty=function(e,t){return Dt.deleteProperty.call(this,e[0],t)},Ct.set=function(e,t,r){return Dt.set.call(this,e[0],t,r,e[0])};var St=new(function(){function e(e){var t=this;this.g=mt,this.F=!0,this.produce=function(e,r,n){if("function"==typeof e&&"function"!=typeof r){var i=r;r=e;var o=t;return function(e){var t=this;void 0===e&&(e=i);for(var n=arguments.length,a=Array(n>1?n-1:0),s=1;s<n;s++)a[s-1]=arguments[s];return o.produce(e,(function(e){var n;return(n=r).call.apply(n,[t,e].concat(a))}))}}var a;if("function"!=typeof r&&Me(6),void 0!==n&&"function"!=typeof n&&Me(7),Pe(e)){var s=Qe(t),u=at(t,e,void 0),l=!0;try{a=r(u),l=!1}finally{l?Je(s):Ye(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return Ve(s,n),Ke(e,s)}),(function(e){throw Je(s),e})):(Ve(s,n),Ke(a,s))}if(!e||"object"!=typeof e){if((a=r(e))===ht)return;return void 0===a&&(a=e),t.F&&We(a,!0),a}Me(21,e)},this.produceWithPatches=function(e,r){return"function"==typeof e?function(r){for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return t.produceWithPatches(r,(function(t){return e.apply(void 0,[t].concat(i))}))}:[t.produce(e,r,(function(e,t){n=e,i=t})),n,i];var n,i},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){Pe(e)||Me(8),Be(e)&&(e=st(e));var t=Qe(this),r=at(this,e,void 0);return r[vt].C=!0,Ye(t),r},t.finishDraft=function(e,t){var r=(e&&e[vt]).A;return Ve(r,t),Ke(void 0,r)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!mt&&Me(20),this.g=e},t.applyPatches=function(e,t){var r;for(r=t.length-1;r>=0;r--){var n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}var i=qe("Patches").$;return Be(e)?i(e,t):this.produce(e,(function(e){return i(e,t.slice(r+1))}))},e}()),It=St.produce,xt=(St.produceWithPatches.bind(St),St.setAutoFreeze.bind(St),St.setUseProxies.bind(St),St.applyPatches.bind(St),St.createDraft.bind(St)),Ot=St.finishDraft.bind(St);function At(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Mt=new WeakMap,Bt=new WeakMap,Pt=new WeakMap,Nt=new WeakMap,kt=new WeakMap,Ft=new WeakMap;function Tt(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}function jt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(r),!0).forEach((function(t){At(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Lt=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var r of wr.pathRefs(e))Br.transform(r,t);for(var n of wr.pointRefs(e))Fr.transform(n,t);for(var i of wr.rangeRefs(e))Rr.transform(i,t);var o=new Set,a=[],s=e=>{if(e){var t=e.join(",");o.has(t)||(o.add(t),a.push(e))}},u=Mt.get(e)||[],l=Rt(t);for(var c of u){s(Mr.transform(c,t))}for(var d of l)s(d);Mt.set(e,a),un.transform(e,t),e.operations.push(t),wr.normalize(e),"set_selection"===t.type&&(e.marks=null),Bt.get(e)||(Bt.set(e,!0),Promise.resolve().then((()=>{Bt.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,r)=>{var{selection:n}=e;if(n)if(Lr.isExpanded(n))un.setNodes(e,{[t]:r},{match:Gr.isText,split:!0});else{var i=jt(jt({},wr.marks(e)||{}),{},{[t]:r});e.marks=i,Bt.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:r}=e;r&&Lr.isCollapsed(r)&&un.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:r}=e;r&&Lr.isCollapsed(r)&&un.delete(e,{unit:t})},deleteFragment:t=>{var{selection:r}=e;r&&Lr.isExpanded(r)&&un.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?Ir.fragment(e,t):[]},insertBreak:()=>{un.splitNodes(e,{always:!0})},insertFragment:t=>{un.insertFragment(e,t)},insertNode:t=>{un.insertNodes(e,t)},insertText:t=>{var{selection:r,marks:n}=e;if(r){if(n){var i=jt({text:t},n);un.insertNodes(e,i)}else un.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[r,n]=t;if(!Gr.isText(r))if(mr.isElement(r)&&0===r.children.length){un.insertNodes(e,{text:""},{at:n.concat(0),voids:!0})}else for(var i=!wr.isEditor(r)&&(mr.isElement(r)&&(e.isInline(r)||0===r.children.length||Gr.isText(r.children[0])||e.isInline(r.children[0]))),o=0,a=0;a<r.children.length;a++,o++){var s=Ir.get(e,n);if(!Gr.isText(s)){var u=r.children[a],l=s.children[o-1],c=a===r.children.length-1;if((Gr.isText(u)||mr.isElement(u)&&e.isInline(u))!==i)un.removeNodes(e,{at:n.concat(o),voids:!0}),o--;else if(mr.isElement(u)){if(e.isInline(u))if(null!=l&&Gr.isText(l)){if(c){un.insertNodes(e,{text:""},{at:n.concat(o+1),voids:!0}),o++}}else{un.insertNodes(e,{text:""},{at:n.concat(o),voids:!0}),o++}}else null!=l&&Gr.isText(l)&&(Gr.equals(u,l,{loose:!0})?(un.mergeNodes(e,{at:n.concat(o),voids:!0}),o--):""===l.text?(un.removeNodes(e,{at:n.concat(o-1),voids:!0}),o--):""===u.text&&(un.removeNodes(e,{at:n.concat(o),voids:!0}),o--))}}},removeMark:t=>{var{selection:r}=e;if(r)if(Lr.isExpanded(r))un.unsetNodes(e,t,{match:Gr.isText,split:!0});else{var n=jt({},wr.marks(e)||{});delete n[t],e.marks=n,Bt.get(e)||e.onChange()}}};return e},Rt=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return Mr.levels(t);case"insert_node":var{node:r,path:n}=e;return[...Mr.levels(n),...Gr.isText(r)?[]:Array.from(Ir.nodes(r),(e=>{var[,t]=e;return n.concat(t)}))];case"merge_node":var{path:i}=e;return[...Mr.ancestors(i),Mr.previous(i)];case"move_node":var{path:o,newPath:a}=e;if(Mr.equals(o,a))return[];var s=[],u=[];for(var l of Mr.ancestors(o)){var c=Mr.transform(l,e);s.push(c)}for(var d of Mr.ancestors(a)){var p=Mr.transform(d,e);u.push(p)}var f=u[u.length-1],m=a[a.length-1],h=f.concat(m);return[...s,...u,h];case"remove_node":var{path:g}=e;return[...Mr.ancestors(g)];case"split_node":var{path:v}=e;return[...Mr.levels(v),Mr.next(v)];default:return[]}};function _t(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var Zt,Ht=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!t,n=t?Vt(e):e,i=Zt.None,o=Zt.None,a=0,s=null;for(var u of n){var l=u.codePointAt(0);if(!l)break;var c=or(u,l);if([i,o]=r?[o,c]:[c,i],ar(i,Zt.ZWJ)&&ar(o,Zt.ExtPict)&&!cr(r?e.substring(0,a):e.substring(0,e.length-a)))break;if(ar(i,Zt.RI)&&ar(o,Zt.RI)&&!(s=null!==s?!s:!!r||pr(e.substring(0,e.length-a))))break;if(i!==Zt.None&&o!==Zt.None&&ur(i,o))break;a+=u.length}return a||1},Wt=/\s/,Ut=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,Gt=/['\u2018\u2019]/,qt=(e,t,r)=>{if(r){var n=e.length-t;return[e.slice(n,e.length),e.slice(0,n)]}return[e.slice(0,t),e.slice(t)]},zt=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Wt.test(t))return!1;if(Gt.test(t)){var i=Ht(r,n),[o,a]=qt(r,i,n);if(e(o,a,n))return!0}return!Ut.test(t)},Vt=function*(e){for(var t=e.length-1,r=0;r<e.length;r++){var n=e.charAt(t-r);if(Yt(n.charCodeAt(0))){var i=e.charAt(t-r-1);if(Jt(i.charCodeAt(0))){yield i+n,r++;continue}}yield n}},Jt=e=>e>=55296&&e<=56319,Yt=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(Zt||(Zt={}));var Qt=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uD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\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Kt=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,$t=/^[\u1100-\u115F\uA960-\uA97C]$/,er=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,tr=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,rr=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,nr=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,ir=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,or=(e,t)=>{var r=Zt.Any;return-1!==e.search(Qt)&&(r|=Zt.Extend),8205===t&&(r|=Zt.ZWJ),t>=127462&&t<=127487&&(r|=Zt.RI),-1!==e.search(Xt)&&(r|=Zt.Prepend),-1!==e.search(Kt)&&(r|=Zt.SpacingMark),-1!==e.search($t)&&(r|=Zt.L),-1!==e.search(er)&&(r|=Zt.V),-1!==e.search(tr)&&(r|=Zt.T),-1!==e.search(rr)&&(r|=Zt.LV),-1!==e.search(nr)&&(r|=Zt.LVT),-1!==e.search(ir)&&(r|=Zt.ExtPict),r};function ar(e,t){return 0!=(e&t)}var sr=[[Zt.L,Zt.L|Zt.V|Zt.LV|Zt.LVT],[Zt.LV|Zt.V,Zt.V|Zt.T],[Zt.LVT|Zt.T,Zt.T],[Zt.Any,Zt.Extend|Zt.ZWJ],[Zt.Any,Zt.SpacingMark],[Zt.Prepend,Zt.Any],[Zt.ZWJ,Zt.ExtPict],[Zt.RI,Zt.RI]];function ur(e,t){return-1===sr.findIndex((r=>ar(e,r[0])&&ar(t,r[1])))}var lr=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEE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\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,cr=e=>-1!==e.search(lr),dr=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,pr=e=>{var t=e.match(dr);return null!==t&&t[0].length/2%2==1},fr=e=>Ae(e)&&Ir.isNodeList(e.children)&&!wr.isEditor(e),mr={isAncestor:e=>Ae(e)&&Ir.isNodeList(e.children),isElement:fr,isElementList:e=>Array.isArray(e)&&e.every((e=>mr.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return fr(e)&&e[r]===t},matches(e,t){for(var r in t)if("children"!==r&&e[r]!==t[r])return!1;return!0}},hr=["text"],gr=["text"];function vr(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}function br(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vr(Object(r),!0).forEach((function(t){At(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var yr=new WeakMap,wr={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:r=!1,mode:n="lowest",at:i=e.selection,match:o}=t;if(i){var a=wr.path(e,i),s="lowest"===n;for(var[u,l]of wr.levels(e,{at:a,voids:r,match:o,reverse:s}))if(!Gr.isText(u)&&!Mr.equals(a,l))return[u,l]}},addMark(e,t,r){e.addMark(t,r)},after(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:wr.point(e,t,{edge:"end"}),focus:wr.end(e,[])},{distance:o=1}=n,a=0;for(var s of wr.positions(e,br(br({},n),{},{at:i}))){if(a>o)break;0!==a&&(r=s),a++}return r},before(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:wr.start(e,[]),focus:wr.point(e,t,{edge:"start"})},{distance:o=1}=n,a=0;for(var s of wr.positions(e,br(br({},n),{},{at:i,reverse:!0}))){if(a>o)break;0!==a&&(r=s),a++}return r},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:r="character"}=t;e.deleteBackward(r)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:r="character"}=t;e.deleteForward(r)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:r="forward"}=t;e.deleteFragment(r)},edges:(e,t)=>[wr.start(e,t),wr.end(e,t)],end:(e,t)=>wr.point(e,t,{edge:"end"}),first(e,t){var r=wr.path(e,t,{edge:"start"});return wr.node(e,r)},fragment(e,t){var r=wr.range(e,t);return Ir.fragment(e,r)},hasBlocks:(e,t)=>t.children.some((t=>wr.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>Gr.isText(t)||wr.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>Gr.isText(e))),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>mr.isElement(t)&&!e.isInline(t),isEditor(e){if(!Ae(e))return!1;var t=yr.get(e);if(void 0!==t)return t;var r="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&(null===e.marks||Ae(e.marks))&&(null===e.selection||Lr.isRange(e.selection))&&Ir.isNodeList(e.children)&&Ar.isOperationList(e.operations);return yr.set(e,r),r},isEnd(e,t,r){var n=wr.end(e,r);return kr.equals(t,n)},isEdge:(e,t,r)=>wr.isStart(e,t,r)||wr.isEnd(e,t,r),isEmpty(e,t){var{children:r}=t,[n]=r;return 0===r.length||1===r.length&&Gr.isText(n)&&""===n.text&&!e.isVoid(t)},isInline:(e,t)=>mr.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Pt.get(e);return void 0===t||t},isStart(e,t,r){if(0!==t.offset)return!1;var n=wr.start(e,r);return kr.equals(t,n)},isVoid:(e,t)=>mr.isElement(t)&&e.isVoid(t),last(e,t){var r=wr.path(e,t,{edge:"end"});return wr.node(e,r)},leaf(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=wr.path(e,t,r);return[Ir.leaf(e,n),n]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:r=e.selection,reverse:n=!1,voids:i=!1}=t,{match:o}=t;if(null==o&&(o=()=>!0),r){var a=[],s=wr.path(e,r);for(var[u,l]of Ir.levels(e,s))if(o(u,l)&&(a.push([u,l]),!i&&wr.isVoid(e,u)))break;n&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:r}=e;if(!r)return null;if(t)return t;if(Lr.isExpanded(r)){var[n]=wr.nodes(e,{match:Gr.isText});if(n){var[i]=n;return _t(i,hr)}return{}}var{anchor:o}=r,{path:a}=o,[s]=wr.leaf(e,a);if(0===o.offset){var u=wr.previous(e,{at:a,match:Gr.isText}),l=wr.above(e,{match:t=>wr.isBlock(e,t)});if(u&&l){var[c,d]=u,[,p]=l;Mr.isAncestor(p,d)&&(s=c)}}return _t(s,gr)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:r="lowest",voids:n=!1}=t,{match:i,at:o=e.selection}=t;if(o){var a=wr.after(e,o,{voids:n});if(a){var[,s]=wr.last(e,[]),u=[a.path,s];if(Mr.isPath(o)&&0===o.length)throw new Error("Cannot get the next node from the root node!");if(null==i)if(Mr.isPath(o)){var[l]=wr.parent(e,o);i=e=>l.children.includes(e)}else i=()=>!0;var[c]=wr.nodes(e,{at:u,match:i,mode:r,voids:n});return c}}},node(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=wr.path(e,t,r);return[Ir.get(e,n),n]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:r=e.selection,mode:n="all",universal:i=!1,reverse:o=!1,voids:a=!1}=t,{match:s}=t;if(s||(s=()=>!0),r){var u,l;if(Er.isSpan(r))u=r[0],l=r[1];else{var c=wr.path(e,r,{edge:"start"}),d=wr.path(e,r,{edge:"end"});u=o?d:c,l=o?c:d}var p,f=Ir.nodes(e,{reverse:o,from:u,to:l,pass:t=>{var[r]=t;return!a&&wr.isVoid(e,r)}}),m=[];for(var[h,g]of f){var v=p&&0===Mr.compare(g,p[1]);if("highest"!==n||!v)if(s(h,g))if("lowest"===n&&v)p=[h,g];else{var b="lowest"===n?p:[h,g];b&&(i?m.push(b):yield b),p=[h,g]}else if(i&&!v&&Gr.isText(h))return}"lowest"===n&&p&&(i?m.push(p):yield p),i&&(yield*m)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:r=!1}=t,n=e=>Mt.get(e)||[];if(wr.isNormalizing(e)){if(r){var i=Array.from(Ir.nodes(e),(e=>{var[,t]=e;return t}));Mt.set(e,i)}0!==n(e).length&&wr.withoutNormalizing(e,(()=>{for(var t of n(e))if(Ir.has(e,t)){var r=wr.node(e,t),[i,o]=r;mr.isElement(i)&&0===i.children.length&&e.normalizeNode(r)}for(var a=42*n(e).length,s=0;0!==n(e).length;){if(s>a)throw new Error("\n Could not completely normalize the editor after ".concat(a," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var u=n(e).pop();if(Ir.has(e,u)){var l=wr.node(e,u);e.normalizeNode(l)}s++}}))}},parent(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=wr.path(e,t,r),i=Mr.parent(n);return wr.node(e,i)},path(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:n,edge:i}=r;if(Mr.isPath(t))if("start"===i){var[,o]=Ir.first(e,t);t=o}else if("end"===i){var[,a]=Ir.last(e,t);t=a}return Lr.isRange(t)&&(t="start"===i?Lr.start(t):"end"===i?Lr.end(t):Mr.common(t.anchor.path,t.focus.path)),kr.isPoint(t)&&(t=t.path),null!=n&&(t=t.slice(0,n)),t},hasPath:(e,t)=>Ir.has(e,t),pathRef(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:n="forward"}=r,i={current:t,affinity:n,unref(){var{current:t}=i;return wr.pathRefs(e).delete(i),i.current=null,t}};return wr.pathRefs(e).add(i),i},pathRefs(e){var t=Nt.get(e);return t||(t=new Set,Nt.set(e,t)),t},point(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:n="start"}=r;if(Mr.isPath(t)){var i;if("end"===n){var[,o]=Ir.last(e,t);i=o}else{var[,a]=Ir.first(e,t);i=a}var s=Ir.get(e,i);if(!Gr.isText(s))throw new Error("Cannot get the ".concat(n," point in the node at path [").concat(t,"] because it has no ").concat(n," text node."));return{path:i,offset:"end"===n?s.text.length:0}}if(Lr.isRange(t)){var[u,l]=Lr.edges(t);return"start"===n?u:l}return t},pointRef(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:n="forward"}=r,i={current:t,affinity:n,unref(){var{current:t}=i;return wr.pointRefs(e).delete(i),i.current=null,t}};return wr.pointRefs(e).add(i),i},pointRefs(e){var t=kt.get(e);return t||(t=new Set,kt.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:r=e.selection,unit:n="offset",reverse:i=!1,voids:o=!1}=t;if(r){var a=wr.range(e,r),[s,u]=Lr.edges(a),l=i?u:s,c=!1,d="",p=0,f=0,m=0;for(var[h,g]of wr.nodes(e,{at:r,reverse:i,voids:o})){if(mr.isElement(h)){if(!o&&e.isVoid(h)){yield wr.start(e,g);continue}if(e.isInline(h))continue;if(wr.hasInlines(e,h)){var v=Mr.isAncestor(g,u.path)?u:wr.end(e,g),b=Mr.isAncestor(g,s.path)?s:wr.start(e,g);d=wr.string(e,{anchor:b,focus:v},{voids:o}),c=!0}}if(Gr.isText(h)){var y=Mr.equals(g,l.path);for(y?(f=i?l.offset:h.text.length-l.offset,m=l.offset):(f=h.text.length,m=i?f:0),(y||c||"offset"===n)&&(yield{path:g,offset:m},c=!1);;){if(0===p){if(""===d)break;p=w(d,n,i),d=qt(d,p,i)[1]}if(m=i?m-p:m+p,(f-=p)<0){p=-f;break}p=0,yield{path:g,offset:m}}}}}function w(e,t,r){return"character"===t?Ht(e,r):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=0,n=!1;e.length>0;){var i=Ht(e,t),[o,a]=qt(e,i,t);if(zt(o,a,t))n=!0,r+=i;else{if(n)break;r+=i}e=a}return r}(e,r):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:r="lowest",voids:n=!1}=t,{match:i,at:o=e.selection}=t;if(o){var a=wr.before(e,o,{voids:n});if(a){var[,s]=wr.first(e,[]),u=[a.path,s];if(Mr.isPath(o)&&0===o.length)throw new Error("Cannot get the previous node from the root node!");if(null==i)if(Mr.isPath(o)){var[l]=wr.parent(e,o);i=e=>l.children.includes(e)}else i=()=>!0;var[c]=wr.nodes(e,{reverse:!0,at:u,match:i,mode:r,voids:n});return c}}},range:(e,t,r)=>Lr.isRange(t)&&!r?t:{anchor:wr.start(e,t),focus:wr.end(e,r||t)},rangeRef(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:n="forward"}=r,i={current:t,affinity:n,unref(){var{current:t}=i;return wr.rangeRefs(e).delete(i),i.current=null,t}};return wr.rangeRefs(e).add(i),i},rangeRefs(e){var t=Ft.get(e);return t||(t=new Set,Ft.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Pt.set(e,t)},start:(e,t)=>wr.point(e,t,{edge:"start"}),string(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:n=!1}=r,i=wr.range(e,t),[o,a]=Lr.edges(i),s="";for(var[u,l]of wr.nodes(e,{at:i,match:Gr.isText,voids:n})){var c=u.text;Mr.equals(l,a.path)&&(c=c.slice(0,a.offset)),Mr.equals(l,o.path)&&(c=c.slice(o.offset)),s+=c}return s},unhangRange(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:n=!1}=r,[i,o]=Lr.edges(t);if(0!==i.offset||0!==o.offset||Lr.isCollapsed(t))return t;var a=wr.above(e,{at:o,match:t=>wr.isBlock(e,t)}),s=a?a[1]:[],u={anchor:wr.start(e,[]),focus:o},l=!0;for(var[c,d]of wr.nodes(e,{at:u,match:Gr.isText,reverse:!0,voids:n}))if(l)l=!1;else if(""!==c.text||Mr.isBefore(d,s)){o={path:d,offset:c.text.length};break}return{anchor:i,focus:o}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return wr.above(e,br(br({},t),{},{match:t=>wr.isVoid(e,t)}))},withoutNormalizing(e,t){var r=wr.isNormalizing(e);wr.setNormalizing(e,!1);try{t()}finally{wr.setNormalizing(e,r)}wr.normalize(e)}},Er={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(Mr.isPath)},Dr=["children"],Cr=["text"],Sr=new WeakMap,Ir={ancestor(e,t){var r=Ir.get(e,t);if(Gr.isText(r))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(r));return r},*ancestors(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var n of Mr.ancestors(t,r)){var i=[Ir.ancestor(e,n),n];yield i}},child(e,t){if(Gr.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var r=e.children[t];if(null==r)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return r},*children(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:n=!1}=r,i=Ir.ancestor(e,t),{children:o}=i,a=n?o.length-1:0;n?a>=0:a<o.length;){var s=Ir.child(i,a),u=t.concat(a);yield[s,u],a=n?a-1:a+1}},common(e,t,r){var n=Mr.common(t,r);return[Ir.get(e,n),n]},descendant(e,t){var r=Ir.get(e,t);if(wr.isEditor(r))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(r));return r},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[r,n]of Ir.nodes(e,t))0!==n.length&&(yield[r,n])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[r,n]of Ir.nodes(e,t))mr.isElement(r)&&(yield[r,n])},extractProps:e=>mr.isAncestor(e)?_t(e,Dr):_t(e,Cr),first(e,t){for(var r=t.slice(),n=Ir.get(e,r);n&&!Gr.isText(n)&&0!==n.children.length;)n=n.children[0],r.push(0);return[n,r]},fragment(e,t){if(Gr.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));return It({children:e.children},(e=>{var[r,n]=Lr.edges(t),i=Ir.nodes(e,{reverse:!0,pass:e=>{var[,r]=e;return!Lr.includes(t,r)}});for(var[,o]of i){if(!Lr.includes(t,o)){var a=Ir.parent(e,o),s=o[o.length-1];a.children.splice(s,1)}if(Mr.equals(o,n.path)){var u=Ir.leaf(e,o);u.text=u.text.slice(0,n.offset)}if(Mr.equals(o,r.path)){var l=Ir.leaf(e,o);l.text=l.text.slice(r.offset)}}wr.isEditor(e)&&(e.selection=null)})).children},get(e,t){for(var r=e,n=0;n<t.length;n++){var i=t[n];if(Gr.isText(r)||!r.children[i])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));r=r.children[i]}return r},has(e,t){for(var r=e,n=0;n<t.length;n++){var i=t[n];if(Gr.isText(r)||!r.children[i])return!1;r=r.children[i]}return!0},isNode:e=>Gr.isText(e)||mr.isElement(e)||wr.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Sr.get(e);if(void 0!==t)return t;var r=e.every((e=>Ir.isNode(e)));return Sr.set(e,r),r},last(e,t){for(var r=t.slice(),n=Ir.get(e,r);n&&!Gr.isText(n)&&0!==n.children.length;){var i=n.children.length-1;n=n.children[i],r.push(i)}return[n,r]},leaf(e,t){var r=Ir.get(e,t);if(!Gr.isText(r))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(r));return r},*levels(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var n of Mr.levels(t,r)){var i=Ir.get(e,n);yield[i,n]}},matches:(e,t)=>mr.isElement(e)&&mr.isElementProps(t)&&mr.matches(e,t)||Gr.isText(e)&&Gr.isTextProps(t)&&Gr.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:r,reverse:n=!1}=t,{from:i=[],to:o}=t,a=new Set,s=[],u=e;!o||!(n?Mr.isBefore(s,o):Mr.isAfter(s,o));)if(a.has(u)||(yield[u,s]),a.has(u)||Gr.isText(u)||0===u.children.length||null!=r&&!1!==r([u,s])){if(0===s.length)break;if(!n){var l=Mr.next(s);if(Ir.has(e,l)){s=l,u=Ir.get(e,s);continue}}if(n&&0!==s[s.length-1])s=Mr.previous(s),u=Ir.get(e,s);else s=Mr.parent(s),u=Ir.get(e,s),a.add(u)}else{a.add(u);var c=n?u.children.length-1:0;Mr.isAncestor(s,i)&&(c=i[s.length]),s=s.concat(c),u=Ir.get(e,s)}},parent(e,t){var r=Mr.parent(t),n=Ir.get(e,r);if(Gr.isText(n))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return n},string:e=>Gr.isText(e)?e.text:e.children.map(Ir.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[r,n]of Ir.nodes(e,t))Gr.isText(r)&&(yield[r,n])}};function xr(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}function Or(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xr(Object(r),!0).forEach((function(t){At(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ar={isNodeOperation:e=>Ar.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Ae(e))return!1;switch(e.type){case"insert_node":return Mr.isPath(e.path)&&Ir.isNode(e.node);case"insert_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Mr.isPath(e.path);case"merge_node":return"number"==typeof e.position&&Mr.isPath(e.path)&&Ae(e.properties);case"move_node":return Mr.isPath(e.path)&&Mr.isPath(e.newPath);case"remove_node":return Mr.isPath(e.path)&&Ir.isNode(e.node);case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Mr.isPath(e.path);case"set_node":return Mr.isPath(e.path)&&Ae(e.properties)&&Ae(e.newProperties);case"set_selection":return null===e.properties&&Lr.isRange(e.newProperties)||null===e.newProperties&&Lr.isRange(e.properties)||Ae(e.properties)&&Ae(e.newProperties);case"split_node":return Mr.isPath(e.path)&&"number"==typeof e.position&&Ae(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>Ar.isOperation(e))),isSelectionOperation:e=>Ar.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Ar.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Or(Or({},e),{},{type:"remove_node"});case"insert_text":return Or(Or({},e),{},{type:"remove_text"});case"merge_node":return Or(Or({},e),{},{type:"split_node",path:Mr.previous(e.path)});case"move_node":var{newPath:t,path:r}=e;if(Mr.equals(t,r))return e;if(Mr.isSibling(r,t))return Or(Or({},e),{},{path:t,newPath:r});var n=Mr.transform(r,e),i=Mr.transform(Mr.next(r),e);return Or(Or({},e),{},{path:n,newPath:i});case"remove_node":return Or(Or({},e),{},{type:"insert_node"});case"remove_text":return Or(Or({},e),{},{type:"insert_text"});case"set_node":var{properties:o,newProperties:a}=e;return Or(Or({},e),{},{properties:a,newProperties:o});case"set_selection":var{properties:s,newProperties:u}=e;return Or(Or({},e),{},null==s?{properties:u,newProperties:null}:null==u?{properties:null,newProperties:s}:{properties:u,newProperties:s});case"split_node":return Or(Or({},e),{},{type:"merge_node",path:Mr.next(e.path)})}}},Mr={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:r=!1}=t,n=Mr.levels(e,t);return n=r?n.slice(1):n.slice(0,-1)},common(e,t){for(var r=[],n=0;n<e.length&&n<t.length;n++){var i=e[n];if(i!==t[n])break;r.push(i)}return r},compare(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return 0},endsAfter(e,t){var r=e.length-1,n=e.slice(0,r),i=t.slice(0,r),o=e[r],a=t[r];return Mr.equals(n,i)&&o>a},endsAt(e,t){var r=e.length,n=e.slice(0,r),i=t.slice(0,r);return Mr.equals(n,i)},endsBefore(e,t){var r=e.length-1,n=e.slice(0,r),i=t.slice(0,r),o=e[r],a=t[r];return Mr.equals(n,i)&&o<a},equals:(e,t)=>e.length===t.length&&e.every(((e,r)=>e===t[r])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===Mr.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===Mr.compare(e,t),isBefore:(e,t)=>-1===Mr.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===Mr.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===Mr.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===Mr.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===Mr.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var r=e.slice(0,-1),n=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&Mr.equals(r,n)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:r=!1}=t,n=[],i=0;i<=e.length;i++)n.push(e.slice(0,i));return r&&n.reverse(),n},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!Mr.isAncestor(t,e)&&!Mr.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return It(e,(n=>{var{affinity:i="forward"}=r;if(e&&0!==(null==e?void 0:e.length)){if(null===n)return null;switch(t.type){case"insert_node":var{path:o}=t;(Mr.equals(o,n)||Mr.endsBefore(o,n)||Mr.isAncestor(o,n))&&(n[o.length-1]+=1);break;case"remove_node":var{path:a}=t;if(Mr.equals(a,n)||Mr.isAncestor(a,n))return null;Mr.endsBefore(a,n)&&(n[a.length-1]-=1);break;case"merge_node":var{path:s,position:u}=t;Mr.equals(s,n)||Mr.endsBefore(s,n)?n[s.length-1]-=1:Mr.isAncestor(s,n)&&(n[s.length-1]-=1,n[s.length]+=u);break;case"split_node":var{path:l,position:c}=t;if(Mr.equals(l,n)){if("forward"===i)n[n.length-1]+=1;else if("backward"!==i)return null}else Mr.endsBefore(l,n)?n[l.length-1]+=1:Mr.isAncestor(l,n)&&e[l.length]>=c&&(n[l.length-1]+=1,n[l.length]-=c);break;case"move_node":var{path:d,newPath:p}=t;if(Mr.equals(d,p))return;if(Mr.isAncestor(d,n)||Mr.equals(d,n)){var f=p.slice();return Mr.endsBefore(d,p)&&d.length<p.length&&(f[d.length-1]-=1),f.concat(n.slice(d.length))}Mr.isSibling(d,p)&&(Mr.isAncestor(p,n)||Mr.equals(p,n))?Mr.endsBefore(d,n)?n[d.length-1]-=1:n[d.length-1]+=1:Mr.endsBefore(p,n)||Mr.equals(p,n)||Mr.isAncestor(p,n)?(Mr.endsBefore(d,n)&&(n[d.length-1]-=1),n[p.length-1]+=1):Mr.endsBefore(d,n)&&(Mr.equals(p,n)&&(n[p.length-1]+=1),n[d.length-1]-=1)}}}))}},Br={transform(e,t){var{current:r,affinity:n}=e;if(null!=r){var i=Mr.transform(r,t,{affinity:n});e.current=i,null==i&&e.unref()}}};function Pr(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}function Nr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pr(Object(r),!0).forEach((function(t){At(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var kr={compare(e,t){var r=Mr.compare(e.path,t.path);return 0===r?e.offset<t.offset?-1:e.offset>t.offset?1:0:r},isAfter:(e,t)=>1===kr.compare(e,t),isBefore:(e,t)=>-1===kr.compare(e,t),equals:(e,t)=>e.offset===t.offset&&Mr.equals(e.path,t.path),isPoint:e=>Ae(e)&&"number"==typeof e.offset&&Mr.isPath(e.path),transform(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return It(e,(e=>{if(null===e)return null;var{affinity:n="forward"}=r,{path:i,offset:o}=e;switch(t.type){case"insert_node":case"move_node":e.path=Mr.transform(i,t,r);break;case"insert_text":Mr.equals(t.path,i)&&t.offset<=o&&(e.offset+=t.text.length);break;case"merge_node":Mr.equals(t.path,i)&&(e.offset+=t.position),e.path=Mr.transform(i,t,r);break;case"remove_text":Mr.equals(t.path,i)&&t.offset<=o&&(e.offset-=Math.min(o-t.offset,t.text.length));break;case"remove_node":if(Mr.equals(t.path,i)||Mr.isAncestor(t.path,i))return null;e.path=Mr.transform(i,t,r);break;case"split_node":if(Mr.equals(t.path,i)){if(t.position===o&&null==n)return null;(t.position<o||t.position===o&&"forward"===n)&&(e.offset-=t.position,e.path=Mr.transform(i,t,Nr(Nr({},r),{},{affinity:"forward"})))}else e.path=Mr.transform(i,t,r)}}))}},Fr={transform(e,t){var{current:r,affinity:n}=e;if(null!=r){var i=kr.transform(r,t,{affinity:n});e.current=i,null==i&&e.unref()}}},Tr=["anchor","focus"];function jr(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}var Lr={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:r=!1}=t,{anchor:n,focus:i}=e;return Lr.isBackward(e)===r?[n,i]:[i,n]},end(e){var[,t]=Lr.edges(e);return t},equals:(e,t)=>kr.equals(e.anchor,t.anchor)&&kr.equals(e.focus,t.focus),includes(e,t){if(Lr.isRange(t)){if(Lr.includes(e,t.anchor)||Lr.includes(e,t.focus))return!0;var[r,n]=Lr.edges(e),[i,o]=Lr.edges(t);return kr.isBefore(r,i)&&kr.isAfter(n,o)}var[a,s]=Lr.edges(e),u=!1,l=!1;return kr.isPoint(t)?(u=kr.compare(t,a)>=0,l=kr.compare(t,s)<=0):(u=Mr.compare(t,a.path)>=0,l=Mr.compare(t,s.path)<=0),u&&l},intersection(e,t){var r=_t(e,Tr),[n,i]=Lr.edges(e),[o,a]=Lr.edges(t),s=kr.isBefore(n,o)?o:n,u=kr.isBefore(i,a)?i:a;return kr.isBefore(u,s)?null:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jr(Object(r),!0).forEach((function(t){At(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({anchor:s,focus:u},r)},isBackward(e){var{anchor:t,focus:r}=e;return kr.isAfter(t,r)},isCollapsed(e){var{anchor:t,focus:r}=e;return kr.equals(t,r)},isExpanded:e=>!Lr.isCollapsed(e),isForward:e=>!Lr.isBackward(e),isRange:e=>Ae(e)&&kr.isPoint(e.anchor)&&kr.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Lr.edges(e);return t},transform(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return It(e,(e=>{if(null===e)return null;var n,i,{affinity:o="inward"}=r;if("inward"===o){var a=Lr.isCollapsed(e);Lr.isForward(e)?(n="forward",i=a?n:"backward"):(n="backward",i=a?n:"forward")}else"outward"===o?Lr.isForward(e)?(n="backward",i="forward"):(n="forward",i="backward"):(n=o,i=o);var s=kr.transform(e.anchor,t,{affinity:n}),u=kr.transform(e.focus,t,{affinity:i});if(!s||!u)return null;e.anchor=s,e.focus=u}))}},Rr={transform(e,t){var{current:r,affinity:n}=e;if(null!=r){var i=Lr.transform(r,t,{affinity:n});e.current=i,null==i&&e.unref()}}},_r=(e,t)=>{for(var r in e){var n=e[r],i=t[r];if(Ae(n)&&Ae(i)){if(!_r(n,i))return!1}else if(Array.isArray(n)&&Array.isArray(i)){if(n.length!==i.length)return!1;for(var o=0;o<n.length;o++)if(n[o]!==i[o])return!1}else if(n!==i)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},Zr=["text"],Hr=["anchor","focus"];function Wr(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}function Ur(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wr(Object(r),!0).forEach((function(t){At(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Gr={equals(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:n=!1}=r;function i(e){return _t(e,Zr)}return _r(n?i(e):e,n?i(t):t)},isText:e=>Ae(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>Gr.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var r in t)if("text"!==r&&(!e.hasOwnProperty(r)||e[r]!==t[r]))return!1;return!0},decorations(e,t){var r=[Ur({},e)];for(var n of t){var i=_t(n,Hr),[o,a]=Lr.edges(n),s=[],u=0;for(var l of r){var{length:c}=l.text,d=u;if(u+=c,o.offset<=d&&a.offset>=u)Object.assign(l,i),s.push(l);else if(o.offset!==a.offset&&(o.offset===u||a.offset===d)||o.offset>u||a.offset<d||a.offset===d&&0!==d)s.push(l);else{var p=l,f=void 0,m=void 0;if(a.offset<u){var h=a.offset-d;m=Ur(Ur({},p),{},{text:p.text.slice(h)}),p=Ur(Ur({},p),{},{text:p.text.slice(0,h)})}if(o.offset>d){var g=o.offset-d;f=Ur(Ur({},p),{},{text:p.text.slice(0,g)}),p=Ur(Ur({},p),{},{text:p.text.slice(g)})}Object.assign(p,i),f&&s.push(f),s.push(p),m&&s.push(m)}}r=s}return r}};function qr(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}function zr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(r),!0).forEach((function(t){At(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Vr=["text"],Jr=["children"];function Yr(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}function Qr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yr(Object(r),!0).forEach((function(t){At(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Xr={insertNodes(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};wr.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:i=!1,mode:o="lowest"}=r,{at:a,match:s,select:u}=r;if(Ir.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?wr.end(e,[]):[0],u=!0),null==u&&(u=!1),Lr.isRange(a))if(n||(a=wr.unhangRange(e,a)),Lr.isCollapsed(a))a=a.anchor;else{var[,c]=Lr.edges(a),d=wr.pointRef(e,c);un.delete(e,{at:a}),a=d.unref()}if(kr.isPoint(a)){null==s&&(s=Gr.isText(l)?e=>Gr.isText(e):e.isInline(l)?t=>Gr.isText(t)||wr.isInline(e,t):t=>wr.isBlock(e,t));var[p]=wr.nodes(e,{at:a.path,match:s,mode:o,voids:i});if(!p)return;var[,f]=p,m=wr.pathRef(e,f),h=wr.isEnd(e,a,f);un.splitNodes(e,{at:a,match:s,mode:o,voids:i});var g=m.unref();a=h?Mr.next(g):g}var v=Mr.parent(a),b=a[a.length-1];if(i||!wr.void(e,{at:v})){for(var y of t){var w=v.concat(b);b++,e.apply({type:"insert_node",path:w,node:y}),a=Mr.next(a)}if(a=Mr.previous(a),u){var E=wr.end(e,a);E&&un.select(e,E)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};wr.withoutNormalizing(e,(()=>{var{at:r=e.selection,mode:n="lowest",voids:i=!1}=t,{match:o}=t;if(null==o&&(o=Mr.isPath(r)?en(e,r):t=>wr.isBlock(e,t)),r){var a=wr.nodes(e,{at:r,match:o,mode:n,voids:i}),s=Array.from(a,(t=>{var[,r]=t;return wr.pathRef(e,r)}));for(var u of s){var l=u.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=wr.node(e,Mr.parent(l)),[d,p]=c,f=l[l.length-1],{length:m}=d.children;if(1===m){var h=Mr.next(p);un.moveNodes(e,{at:l,to:h,voids:i}),un.removeNodes(e,{at:p,voids:i})}else if(0===f)un.moveNodes(e,{at:l,to:p,voids:i});else if(f===m-1){var g=Mr.next(p);un.moveNodes(e,{at:l,to:g,voids:i})}else{var v=Mr.next(l),b=Mr.next(p);un.splitNodes(e,{at:v,voids:i}),un.moveNodes(e,{at:l,to:b,voids:i})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};wr.withoutNormalizing(e,(()=>{var{match:r,at:n=e.selection}=t,{hanging:i=!1,voids:o=!1,mode:a="lowest"}=t;if(n){if(null==r)if(Mr.isPath(n)){var[s]=wr.parent(e,n);r=e=>s.children.includes(e)}else r=t=>wr.isBlock(e,t);if(!i&&Lr.isRange(n)&&(n=wr.unhangRange(e,n)),Lr.isRange(n))if(Lr.isCollapsed(n))n=n.anchor;else{var[,u]=Lr.edges(n),l=wr.pointRef(e,u);un.delete(e,{at:n}),n=l.unref(),null==t.at&&un.select(e,n)}var[c]=wr.nodes(e,{at:n,match:r,voids:o,mode:a}),d=wr.previous(e,{at:n,match:r,voids:o,mode:a});if(c&&d){var[p,f]=c,[m,h]=d;if(0!==f.length&&0!==h.length){var g,v,b=Mr.next(h),y=Mr.common(f,h),w=Mr.isSibling(f,h),E=Array.from(wr.levels(e,{at:f}),(e=>{var[t]=e;return t})).slice(y.length).slice(0,-1),D=wr.above(e,{at:f,mode:"highest",match:t=>E.includes(t)&&Kr(e,t)}),C=D&&wr.pathRef(e,D[1]);if(Gr.isText(p)&&Gr.isText(m)){var S=_t(p,Vr);v=m.text.length,g=S}else{if(!mr.isElement(p)||!mr.isElement(m))throw new Error("Cannot merge the node at path [".concat(f,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(p)," ").concat(JSON.stringify(m)));S=_t(p,Jr);v=m.children.length,g=S}w||un.moveNodes(e,{at:f,to:b,voids:o}),C&&un.removeNodes(e,{at:C.current,voids:o}),mr.isElement(m)&&wr.isEmpty(e,m)||Gr.isText(m)&&""===m.text&&0!==h[h.length-1]?un.removeNodes(e,{at:h,voids:o}):e.apply({type:"merge_node",path:b,position:v,properties:g}),C&&C.unref()}}}}))},moveNodes(e,t){wr.withoutNormalizing(e,(()=>{var{to:r,at:n=e.selection,mode:i="lowest",voids:o=!1}=t,{match:a}=t;if(n){null==a&&(a=Mr.isPath(n)?en(e,n):t=>wr.isBlock(e,t));var s=wr.pathRef(e,r),u=wr.nodes(e,{at:n,match:a,mode:i,voids:o}),l=Array.from(u,(t=>{var[,r]=t;return wr.pathRef(e,r)}));for(var c of l){var d=c.unref(),p=s.current;0!==d.length&&e.apply({type:"move_node",path:d,newPath:p}),s.current&&Mr.isSibling(p,d)&&Mr.isAfter(p,d)&&(s.current=Mr.next(s.current))}s.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};wr.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:n=!1,mode:i="lowest"}=t,{at:o=e.selection,match:a}=t;if(o){null==a&&(a=Mr.isPath(o)?en(e,o):t=>wr.isBlock(e,t)),!r&&Lr.isRange(o)&&(o=wr.unhangRange(e,o));var s=wr.nodes(e,{at:o,match:a,mode:i,voids:n}),u=Array.from(s,(t=>{var[,r]=t;return wr.pathRef(e,r)}));for(var l of u){var c=l.unref();if(c){var[d]=wr.node(e,c);e.apply({type:"remove_node",path:c,node:d})}}}}))},setNodes(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};wr.withoutNormalizing(e,(()=>{var{match:n,at:i=e.selection}=r,{hanging:o=!1,mode:a="lowest",split:s=!1,voids:u=!1}=r;if(i){if(null==n&&(n=Mr.isPath(i)?en(e,i):t=>wr.isBlock(e,t)),!o&&Lr.isRange(i)&&(i=wr.unhangRange(e,i)),s&&Lr.isRange(i)){if(Lr.isCollapsed(i)&&wr.leaf(e,i.anchor)[0].text.length>0)return;var l=wr.rangeRef(e,i,{affinity:"inward"}),[c,d]=Lr.edges(i),p="lowest"===a?"lowest":"highest",f=wr.isEnd(e,d,d.path);un.splitNodes(e,{at:d,match:n,mode:p,voids:u,always:!f});var m=wr.isStart(e,c,c.path);un.splitNodes(e,{at:c,match:n,mode:p,voids:u,always:!m}),i=l.unref(),null==r.at&&un.select(e,i)}for(var[h,g]of wr.nodes(e,{at:i,match:n,mode:a,voids:u})){var v={},b={};if(0!==g.length){var y=!1;for(var w in t)"children"!==w&&"text"!==w&&t[w]!==h[w]&&(y=!0,h.hasOwnProperty(w)&&(v[w]=h[w]),null!=t[w]&&(b[w]=t[w]));y&&e.apply({type:"set_node",path:g,properties:v,newProperties:b})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};wr.withoutNormalizing(e,(()=>{var{mode:r="lowest",voids:n=!1}=t,{match:i,at:o=e.selection,height:a=0,always:s=!1}=t;if(null==i&&(i=t=>wr.isBlock(e,t)),Lr.isRange(o)&&(o=$r(e,o)),Mr.isPath(o)){var u=o,l=wr.point(e,u),[c]=wr.parent(e,u);i=e=>e===c,a=l.path.length-u.length+1,o=l,s=!0}if(o){var d=wr.pointRef(e,o,{affinity:"backward"}),[p]=wr.nodes(e,{at:o,match:i,mode:r,voids:n});if(p){var f=wr.void(e,{at:o,mode:"highest"});if(!n&&f){var[m,h]=f;if(mr.isElement(m)&&e.isInline(m)){var g=wr.after(e,h);if(!g){var v=Mr.next(h);un.insertNodes(e,{text:""},{at:v,voids:n}),g=wr.point(e,v)}o=g,s=!0}a=o.path.length-h.length+1,s=!0}var b=wr.pointRef(e,o),y=o.path.length-a,[,w]=p,E=o.path.slice(0,y),D=0===a?o.offset:o.path[y]+0;for(var[C,S]of wr.levels(e,{at:E,reverse:!0,voids:n})){var I=!1;if(S.length<w.length||0===S.length||!n&&wr.isVoid(e,C))break;var x=d.current,O=wr.isEnd(e,x,S);if(s||!d||!wr.isEdge(e,x,S)){I=!0;var A=Ir.extractProps(C);e.apply({type:"split_node",path:S,position:D,properties:A})}D=S[S.length-1]+(I||O?1:0)}if(null==t.at){var M=b.current||wr.end(e,[]);un.select(e,M)}d.unref(),b.unref()}}}))},unsetNodes(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var n={};for(var i of t)n[i]=null;un.setNodes(e,n,r)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};wr.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:n=!1,voids:i=!1}=t,{at:o=e.selection,match:a}=t;if(o){null==a&&(a=Mr.isPath(o)?en(e,o):t=>wr.isBlock(e,t)),Mr.isPath(o)&&(o=wr.range(e,o));var s=Lr.isRange(o)?wr.rangeRef(e,o):null,u=wr.nodes(e,{at:o,match:a,mode:r,voids:i}),l=Array.from(u,(t=>{var[,r]=t;return wr.pathRef(e,r)})).reverse(),c=function(t){var r=t.unref(),[o]=wr.node(e,r),a=wr.range(e,r);n&&s&&(a=Lr.intersection(s.current,a)),un.liftNodes(e,{at:a,match:e=>mr.isAncestor(o)&&o.children.includes(e),voids:i})};for(var d of l)c(d);s&&s.unref()}}))},wrapNodes(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};wr.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:i=!1,voids:o=!1}=r,{match:a,at:s=e.selection}=r;if(s){if(null==a&&(a=Mr.isPath(s)?en(e,s):e.isInline(t)?t=>wr.isInline(e,t)||Gr.isText(t):t=>wr.isBlock(e,t)),i&&Lr.isRange(s)){var[u,l]=Lr.edges(s),c=wr.rangeRef(e,s,{affinity:"inward"});un.splitNodes(e,{at:l,match:a,voids:o}),un.splitNodes(e,{at:u,match:a,voids:o}),s=c.unref(),null==r.at&&un.select(e,s)}var d=Array.from(wr.nodes(e,{at:s,match:e.isInline(t)?t=>wr.isBlock(e,t):e=>wr.isEditor(e),mode:"lowest",voids:o}));for(var[,p]of d){var f=Lr.isRange(s)?Lr.intersection(s,wr.range(e,p)):s;if(f){var m=Array.from(wr.nodes(e,{at:f,match:a,mode:n,voids:o}));if(m.length>0)if("continue"===function(){var[r]=m,n=m[m.length-1],[,i]=r,[,a]=n;if(0===i.length&&0===a.length)return"continue";var s=Mr.equals(i,a)?Mr.parent(i):Mr.common(i,a),u=wr.range(e,i,a),l=wr.node(e,s),[c]=l,d=s.length+1,p=Mr.next(a.slice(0,d)),f=Qr(Qr({},t),{},{children:[]});un.insertNodes(e,f,{at:p,voids:o}),un.moveNodes(e,{at:u,match:e=>mr.isAncestor(c)&&c.children.includes(e),to:p.concat(0),voids:o})}())continue}}}}))}},Kr=(e,t)=>{if(mr.isElement(t)){var r=t;return!!wr.isVoid(e,t)||1===r.children.length&&Kr(e,r.children[0])}return!wr.isEditor(t)},$r=(e,t)=>{if(Lr.isCollapsed(t))return t.anchor;var[,r]=Lr.edges(t),n=wr.pointRef(e,r);return un.delete(e,{at:t}),n.unref()},en=(e,t)=>{var[r]=wr.node(e,t);return e=>e===r};function tn(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}function rn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(r),!0).forEach((function(t){At(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var nn={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:r="anchor"}=t,{selection:n}=e;if(n)if("anchor"===r)un.select(e,n.anchor);else if("focus"===r)un.select(e,n.focus);else if("start"===r){var[i]=Lr.edges(n);un.select(e,i)}else if("end"===r){var[,o]=Lr.edges(n);un.select(e,o)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:r}=e,{distance:n=1,unit:i="character",reverse:o=!1}=t,{edge:a=null}=t;if(r){"start"===a&&(a=Lr.isBackward(r)?"focus":"anchor"),"end"===a&&(a=Lr.isBackward(r)?"anchor":"focus");var{anchor:s,focus:u}=r,l={distance:n,unit:i},c={};if(null==a||"anchor"===a){var d=o?wr.before(e,s,l):wr.after(e,s,l);d&&(c.anchor=d)}if(null==a||"focus"===a){var p=o?wr.before(e,u,l):wr.after(e,u,l);p&&(c.focus=p)}un.setSelection(e,c)}},select(e,t){var{selection:r}=e;if(t=wr.range(e,t),r)un.setSelection(e,t);else{if(!Lr.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:r,newProperties:t})}},setPoint(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:n}=e,{edge:i="both"}=r;if(n){"start"===i&&(i=Lr.isBackward(n)?"focus":"anchor"),"end"===i&&(i=Lr.isBackward(n)?"anchor":"focus");var{anchor:o,focus:a}=n,s="anchor"===i?o:a;un.setSelection(e,{["anchor"===i?"anchor":"focus"]:rn(rn({},s),t)})}},setSelection(e,t){var{selection:r}=e,n={},i={};if(r){for(var o in t)("anchor"===o&&null!=t.anchor&&!kr.equals(t.anchor,r.anchor)||"focus"===o&&null!=t.focus&&!kr.equals(t.focus,r.focus)||"anchor"!==o&&"focus"!==o&&t[o]!==r[o])&&(n[o]=r[o],i[o]=t[o]);Object.keys(n).length>0&&e.apply({type:"set_selection",properties:n,newProperties:i})}}},on={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};wr.withoutNormalizing(e,(()=>{var{reverse:r=!1,unit:n="character",distance:i=1,voids:o=!1}=t,{at:a=e.selection,hanging:s=!1}=t;if(a){if(Lr.isRange(a)&&Lr.isCollapsed(a)&&(a=a.anchor),kr.isPoint(a)){var u=wr.void(e,{at:a,mode:"highest"});if(!o&&u){var[,l]=u;a=l}else{var c={unit:n,distance:i};a={anchor:a,focus:r?wr.before(e,a,c)||wr.start(e,[]):wr.after(e,a,c)||wr.end(e,[])},s=!0}}if(Mr.isPath(a))un.removeNodes(e,{at:a,voids:o});else if(!Lr.isCollapsed(a)){if(!s){var[,d]=Lr.edges(a),p=wr.end(e,[]);kr.equals(d,p)||(a=wr.unhangRange(e,a,{voids:o}))}var[f,m]=Lr.edges(a),h=wr.above(e,{match:t=>wr.isBlock(e,t),at:f,voids:o}),g=wr.above(e,{match:t=>wr.isBlock(e,t),at:m,voids:o}),v=h&&g&&!Mr.equals(h[1],g[1]),b=Mr.equals(f.path,m.path),y=o?null:wr.void(e,{at:f,mode:"highest"}),w=o?null:wr.void(e,{at:m,mode:"highest"});if(y){var E=wr.before(e,f);E&&h&&Mr.isAncestor(h[1],E.path)&&(f=E)}if(w){var D=wr.after(e,m);D&&g&&Mr.isAncestor(g[1],D.path)&&(m=D)}var C,S=[];for(var I of wr.nodes(e,{at:a,voids:o})){var[x,O]=I;C&&0===Mr.compare(O,C)||(!o&&wr.isVoid(e,x)||!Mr.isCommon(O,f.path)&&!Mr.isCommon(O,m.path))&&(S.push(I),C=O)}var A=Array.from(S,(t=>{var[,r]=t;return wr.pathRef(e,r)})),M=wr.pointRef(e,f),B=wr.pointRef(e,m);if(!b&&!y){var P=M.current,[N]=wr.leaf(e,P),{path:k}=P,{offset:F}=f,T=N.text.slice(F);T.length>0&&e.apply({type:"remove_text",path:k,offset:F,text:T})}for(var j of A){var L=j.unref();un.removeNodes(e,{at:L,voids:o})}if(!w){var R=B.current,[_]=wr.leaf(e,R),{path:Z}=R,H=b?f.offset:0,W=_.text.slice(H,m.offset);W.length>0&&e.apply({type:"remove_text",path:Z,offset:H,text:W})}!b&&v&&B.current&&M.current&&un.mergeNodes(e,{at:B.current,hanging:!0,voids:o});var U=r?M.unref()||B.unref():B.unref()||M.unref();null==t.at&&U&&un.select(e,U)}}}))},insertFragment(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};wr.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:i=!1}=r,{at:o=e.selection}=r;if(t.length&&o){if(Lr.isRange(o))if(n||(o=wr.unhangRange(e,o)),Lr.isCollapsed(o))o=o.anchor;else{var[,a]=Lr.edges(o);if(!i&&wr.void(e,{at:a}))return;var s=wr.pointRef(e,a);un.delete(e,{at:o}),o=s.unref()}else Mr.isPath(o)&&(o=wr.start(e,o));if(i||!wr.void(e,{at:o})){var u=wr.above(e,{at:o,match:t=>wr.isInline(e,t),mode:"highest",voids:i});if(u){var[,l]=u;if(wr.isEnd(e,o,l))o=wr.after(e,l);else if(wr.isStart(e,o,l)){o=wr.before(e,l)}}var c=wr.above(e,{match:t=>wr.isBlock(e,t),at:o,voids:i}),[,d]=c,p=wr.isStart(e,o,d),f=wr.isEnd(e,o,d),m=p&&f,h=!p||p&&f,g=!f,[,v]=Ir.first({children:t},[]),[,b]=Ir.last({children:t},[]),y=[],w=t=>{var[r,n]=t;return!(0===n.length)&&(!!m||!(h&&Mr.isAncestor(n,v)&&mr.isElement(r)&&!e.isVoid(r)&&!e.isInline(r))&&!(g&&Mr.isAncestor(n,b)&&mr.isElement(r)&&!e.isVoid(r)&&!e.isInline(r)))};for(var E of Ir.nodes({children:t},{pass:w}))w(E)&&y.push(E);var D=[],C=[],S=[],I=!0,x=!1;for(var[O]of y)mr.isElement(O)&&!e.isInline(O)?(I=!1,x=!0,C.push(O)):I?D.push(O):S.push(O);var[A]=wr.nodes(e,{at:o,match:t=>Gr.isText(t)||wr.isInline(e,t),mode:"highest",voids:i}),[,M]=A,B=wr.isStart(e,o,M),P=wr.isEnd(e,o,M),N=wr.pathRef(e,f?Mr.next(d):d),k=wr.pathRef(e,P?Mr.next(M):M),F=wr.pathRef(e,d);un.splitNodes(e,{at:o,match:t=>x?wr.isBlock(e,t):Gr.isText(t)||wr.isInline(e,t),mode:x?"lowest":"highest",voids:i});var T=wr.pathRef(e,!B||B&&P?Mr.next(M):M);if(un.insertNodes(e,D,{at:T.current,match:t=>Gr.isText(t)||wr.isInline(e,t),mode:"highest",voids:i}),m&&C.length&&un.delete(e,{at:F.unref(),voids:i}),un.insertNodes(e,C,{at:N.current,match:t=>wr.isBlock(e,t),mode:"lowest",voids:i}),un.insertNodes(e,S,{at:k.current,match:t=>Gr.isText(t)||wr.isInline(e,t),mode:"highest",voids:i}),!r.at){var j;j=S.length>0?Mr.previous(k.current):C.length>0?Mr.previous(N.current):Mr.previous(T.current);var L=wr.end(e,j);un.select(e,L)}T.unref(),N.unref(),k.unref()}}}))},insertText(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};wr.withoutNormalizing(e,(()=>{var{voids:n=!1}=r,{at:i=e.selection}=r;if(i){if(Mr.isPath(i)&&(i=wr.range(e,i)),Lr.isRange(i))if(Lr.isCollapsed(i))i=i.anchor;else{var o=Lr.end(i);if(!n&&wr.void(e,{at:o}))return;var a=wr.pointRef(e,o);un.delete(e,{at:i,voids:n}),i=a.unref(),un.setSelection(e,{anchor:i,focus:i})}if(n||!wr.void(e,{at:i})){var{path:s,offset:u}=i;t.length>0&&e.apply({type:"insert_text",path:s,offset:u,text:t})}}}))}};function an(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}function sn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?an(Object(r),!0).forEach((function(t){At(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):an(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var un=sn(sn(sn(sn({},{transform(e,t){e.children=xt(e.children);var r=e.selection&&xt(e.selection);try{r=((e,t,r)=>{switch(r.type){case"insert_node":var{path:n,node:i}=r,o=Ir.parent(e,n),a=n[n.length-1];if(a>o.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(n,"] because the destination is past the end of the node."));if(o.children.splice(a,0,i),t)for(var[s,u]of Lr.points(t))t[u]=kr.transform(s,r);break;case"insert_text":var{path:l,offset:c,text:d}=r;if(0===d.length)break;var p=Ir.leaf(e,l),f=p.text.slice(0,c),m=p.text.slice(c);if(p.text=f+d+m,t)for(var[h,g]of Lr.points(t))t[g]=kr.transform(h,r);break;case"merge_node":var{path:v}=r,b=Ir.get(e,v),y=Mr.previous(v),w=Ir.get(e,y),E=Ir.parent(e,v),D=v[v.length-1];if(Gr.isText(b)&&Gr.isText(w))w.text+=b.text;else{if(Gr.isText(b)||Gr.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(v,"] to nodes of different interfaces: ").concat(b," ").concat(w));w.children.push(...b.children)}if(E.children.splice(D,1),t)for(var[C,S]of Lr.points(t))t[S]=kr.transform(C,r);break;case"move_node":var{path:I,newPath:x}=r;if(Mr.isAncestor(I,x))throw new Error("Cannot move a path [".concat(I,"] to new path [").concat(x,"] because the destination is inside itself."));var O=Ir.get(e,I),A=Ir.parent(e,I),M=I[I.length-1];A.children.splice(M,1);var B=Mr.transform(I,r),P=Ir.get(e,Mr.parent(B)),N=B[B.length-1];if(P.children.splice(N,0,O),t)for(var[k,F]of Lr.points(t))t[F]=kr.transform(k,r);break;case"remove_node":var{path:T}=r,j=T[T.length-1];if(Ir.parent(e,T).children.splice(j,1),t)for(var[L,R]of Lr.points(t)){var _=kr.transform(L,r);if(null!=t&&null!=_)t[R]=_;else{var Z=void 0,H=void 0;for(var[W,U]of Ir.texts(e)){if(-1!==Mr.compare(U,T)){H=[W,U];break}Z=[W,U]}var G=!1;Z&&H&&(G=Mr.equals(H[1],T)?!Mr.hasPrevious(H[1]):Mr.common(Z[1],T).length<Mr.common(H[1],T).length),Z&&!G?(L.path=Z[1],L.offset=Z[0].text.length):H?(L.path=H[1],L.offset=0):t=null}}break;case"remove_text":var{path:q,offset:z,text:V}=r;if(0===V.length)break;var J=Ir.leaf(e,q),Y=J.text.slice(0,z),Q=J.text.slice(z+V.length);if(J.text=Y+Q,t)for(var[X,K]of Lr.points(t))t[K]=kr.transform(X,r);break;case"set_node":var{path:$,properties:ee,newProperties:te}=r;if(0===$.length)throw new Error("Cannot set properties on the root node!");var re=Ir.get(e,$);for(var ne in te){if("children"===ne||"text"===ne)throw new Error('Cannot set the "'.concat(ne,'" property of nodes!'));var ie=te[ne];null==ie?delete re[ne]:re[ne]=ie}for(var oe in ee)te.hasOwnProperty(oe)||delete re[oe];break;case"set_selection":var{newProperties:ae}=r;if(null==ae)t=ae;else{if(null==t){if(!Lr.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=zr({},ae)}for(var se in ae){var ue=ae[se];if(null==ue){if("anchor"===se||"focus"===se)throw new Error('Cannot remove the "'.concat(se,'" selection property'));delete t[se]}else t[se]=ue}}break;case"split_node":var{path:le,position:ce,properties:de}=r;if(0===le.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(le,"] because the root node cannot be split."));var pe,fe=Ir.get(e,le),me=Ir.parent(e,le),he=le[le.length-1];if(Gr.isText(fe)){var ge=fe.text.slice(0,ce),ve=fe.text.slice(ce);fe.text=ge,pe=zr(zr({},de),{},{text:ve})}else{var be=fe.children.slice(0,ce),ye=fe.children.slice(ce);fe.children=be,pe=zr(zr({},de),{},{children:ye})}if(me.children.splice(he+1,0,pe),t)for(var[we,Ee]of Lr.points(t))t[Ee]=kr.transform(we,r)}return t})(e,r,t)}finally{e.children=Ot(e.children),e.selection=r?Be(r)?Ot(r):r:null}}}),Xr),nn),on),ln=r(19141),cn=r.n(ln),dn=r(76897),pn=r.n(dn),fn=r(38172),mn=r.n(fn);function hn(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function gn(e,t){return(!t||"hidden"!==e)&&("visible"!==e&&"clip"!==e)}function vn(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return gn(r.overflowY,t)||gn(r.overflowX,t)||function(e){var t=function(e){return e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView.frameElement:null}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function bn(e,t,r,n,i,o,a,s){return o<e&&a>t||o>e&&a<t?0:o<=e&&s<=r||a>=t&&s>=r?o-e-n:a>t&&s<r||o<e&&s>r?a-t+i:0}var yn=function(e,t){var r=t.scrollMode,n=t.block,i=t.inline,o=t.boundary,a=t.skipOverflowHiddenElements,s="function"==typeof o?o:function(e){return e!==o};if(!hn(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,l=[],c=e;hn(c)&&s(c);){if((c=c.parentNode)===u){l.push(c);break}c===document.body&&vn(c)&&!vn(document.documentElement)||vn(c,a)&&l.push(c)}for(var d=window.visualViewport?visualViewport.width:innerWidth,p=window.visualViewport?visualViewport.height:innerHeight,f=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,h=e.getBoundingClientRect(),g=h.height,v=h.width,b=h.top,y=h.right,w=h.bottom,E=h.left,D="start"===n||"nearest"===n?b:"end"===n?w:b+g/2,C="center"===i?E+v/2:"end"===i?y:E,S=[],I=0;I<l.length;I++){var x=l[I],O=x.getBoundingClientRect(),A=O.height,M=O.width,B=O.top,P=O.right,N=O.bottom,k=O.left;if("if-needed"===r&&b>=0&&E>=0&&w<=p&&y<=d&&b>=B&&w<=N&&E>=k&&y<=P)return S;var F=getComputedStyle(x),T=parseInt(F.borderLeftWidth,10),j=parseInt(F.borderTopWidth,10),L=parseInt(F.borderRightWidth,10),R=parseInt(F.borderBottomWidth,10),_=0,Z=0,H="offsetWidth"in x?x.offsetWidth-x.clientWidth-T-L:0,W="offsetHeight"in x?x.offsetHeight-x.clientHeight-j-R:0;if(u===x)_="start"===n?D:"end"===n?D-p:"nearest"===n?bn(m,m+p,p,j,R,m+D,m+D+g,g):D-p/2,Z="start"===i?C:"center"===i?C-d/2:"end"===i?C-d:bn(f,f+d,d,T,L,f+C,f+C+v,v),_=Math.max(0,_+m),Z=Math.max(0,Z+f);else{_="start"===n?D-B-j:"end"===n?D-N+R+W:"nearest"===n?bn(B,N,A,j,R+W,D,D+g,g):D-(B+A/2)+W/2,Z="start"===i?C-k-T:"center"===i?C-(k+M/2)+H/2:"end"===i?C-P+L+H:bn(k,P,M,T,L+H,C,C+v,v);var U=x.scrollLeft,G=x.scrollTop;D+=G-(_=Math.max(0,Math.min(G+_,x.scrollHeight-A+W))),C+=U-(Z=Math.max(0,Math.min(U+Z,x.scrollWidth-M+H)))}S.push({el:x,top:_,left:Z})}return S};function wn(e){return e===Object(e)&&0!==Object.keys(e).length}var En=function(e,t){var r=!e.ownerDocument.documentElement.contains(e);if(wn(t)&&"function"==typeof t.behavior)return t.behavior(r?[]:yn(e,t));if(!r){var n=function(e){return!1===e?{block:"end",inline:"nearest"}:wn(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var r="scrollBehavior"in document.body.style;e.forEach((function(e){var n=e.el,i=e.top,o=e.left;n.scroll&&r?n.scroll({top:i,left:o,behavior:t}):(n.scrollTop=i,n.scrollLeft=o)}))}(yn(e,n),n.behavior)}},Dn=r(45350);function Cn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sn(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var In=e=>{var{isLast:t,leaf:r,parent:n,text:o}=e,a=fi(),s=Qi.findPath(a,o),u=Mr.parent(s);return a.isVoid(n)?i.createElement(On,{length:Ir.string(n).length}):""!==r.text||n.children[n.children.length-1]!==o||a.isInline(n)||""!==wr.string(a,u)?""===r.text?i.createElement(On,null):t&&"\n"===r.text.slice(-1)?i.createElement(xn,{isTrailing:!0,text:r.text}):i.createElement(xn,{text:r.text}):i.createElement(On,{isLineBreak:!0})},xn=e=>{var{text:t,isTrailing:r=!1}=e,n=(0,i.useRef)(null),o=(0,i.useRef)(0);return n.current&&n.current.textContent!==t&&(o.current+=1),i.createElement("span",{"data-slate-string":!0,ref:n,key:o.current},t,r?"\n":null)},On=e=>{var{length:t=0,isLineBreak:r=!1}=e;return i.createElement("span",{"data-slate-zero-width":r?"n":"z","data-slate-length":t},"\ufeff",r?i.createElement("br",null):null)},An=new WeakMap,Mn=new WeakMap,Bn=new WeakMap,Pn=new WeakMap,Nn=new WeakMap,kn=new WeakMap,Fn=new WeakMap,Tn=new WeakMap,jn=new WeakMap,Ln=new WeakMap,Rn=new WeakMap,_n=new WeakMap,Zn=Symbol("placeholder"),Hn=e=>{var{leaf:t,isLast:r,text:n,parent:o,renderPlaceholder:a,renderLeaf:s=(e=>i.createElement(Un,Object.assign({},e)))}=e,u=(0,i.useRef)(null);(0,i.useEffect)((()=>{var e=null==u?void 0:u.current,t=document.querySelector('[data-slate-editor="true"]');if(e&&t)return t.style.minHeight="".concat(e.clientHeight,"px"),()=>{t.style.minHeight="auto"}}),[u,t]);var l=i.createElement(In,{isLast:r,leaf:t,parent:o,text:n});if(t[Zn]){var c={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none"},contentEditable:!1,ref:u}};l=i.createElement(i.Fragment,null,a(c),l)}return s({attributes:{"data-slate-leaf":!0},children:l,leaf:t,text:n})},Wn=i.memo(Hn,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&Gr.equals(t.leaf,e.leaf)&&t.leaf[Zn]===e.leaf[Zn])),Un=e=>{var{attributes:t,children:r}=e;return i.createElement("span",Object.assign({},t),r)},Gn="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,qn="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),zn="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),Vn="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Jn="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),Yn="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])/i.test(navigator.userAgent),Qn="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),Xn="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])/i.test(navigator.userAgent),Kn="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])).*/i.test(navigator.userAgent),$n="undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent),ei=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),ti=!Xn&&!Yn&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,ri=ei?i.useLayoutEffect:i.useEffect,ni=["anchor","focus"],ii=["anchor","focus"],oi=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every((r=>t.hasOwnProperty(r)&&e[r]===t[r])),ai=(e,t)=>{if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++){var n=e[r],i=t[r],o=Sn(n,ni),a=Sn(i,ii);if(!Lr.equals(n,i)||n[Zn]!==i[Zn]||!oi(o,a))return!1}return!0},si=e=>{for(var{decorations:t,isLast:r,parent:n,renderPlaceholder:o,renderLeaf:a,text:s}=e,u=fi(),l=(0,i.useRef)(null),c=Gr.decorations(s,t),d=Qi.findKey(u,s),p=[],f=0;f<c.length;f++){var m=c[f];p.push(i.createElement(Wn,{isLast:r&&f===c.length-1,key:"".concat(d.id,"-").concat(f),renderPlaceholder:o,leaf:m,text:s,parent:n,renderLeaf:a}))}return ri((()=>{var e=Tn.get(u);l.current?(null==e||e.set(d,l.current),kn.set(s,l.current),Nn.set(l.current,s)):(null==e||e.delete(d),kn.delete(s))})),i.createElement("span",{"data-slate-node":"text",ref:l},p)},ui=i.memo(si,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.text===e.text&&ai(t.decorations,e.decorations))),li=e=>{var{decorations:t,element:r,renderElement:n=(e=>i.createElement(di,Object.assign({},e))),renderPlaceholder:o,renderLeaf:a,selection:s}=e,u=(0,i.useRef)(null),l=fi(),c=Ci(),d=l.isInline(r),p=Qi.findKey(l,r),f=gi({decorations:t,node:r,renderElement:n,renderPlaceholder:o,renderLeaf:a,selection:s}),m={"data-slate-node":"element",ref:u};if(d&&(m["data-slate-inline"]=!0),!d&&wr.hasInlines(l,r)){var h=Ir.string(r),g=cn()(h);"rtl"===g&&(m.dir=g)}if(wr.isVoid(l,r)){m["data-slate-void"]=!0,!c&&d&&(m.contentEditable=!1);var v=d?"span":"div",[[b]]=Ir.texts(r);f=c?null:i.createElement(v,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},i.createElement(ui,{renderPlaceholder:o,decorations:[],isLast:!1,parent:r,text:b})),An.set(b,0),Mn.set(b,r)}return ri((()=>{var e=Tn.get(l);u.current?(null==e||e.set(p,u.current),kn.set(r,u.current),Nn.set(u.current,r)):(null==e||e.delete(p),kn.delete(r))})),n({attributes:m,children:f,element:r})},ci=i.memo(li,((e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&ai(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&Lr.equals(e.selection,t.selection)))),di=e=>{var{attributes:t,children:r,element:n}=e,o=fi().isInline(n)?"span":"div";return i.createElement(o,Object.assign({},t,{style:{position:"relative"}}),r)},pi=(0,i.createContext)(null),fi=()=>{var e=(0,i.useContext)(pi);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},mi=(0,i.createContext)((()=>[])),hi=(0,i.createContext)(!1),gi=e=>{for(var{decorations:t,node:r,renderElement:n,renderPlaceholder:o,renderLeaf:a,selection:s}=e,u=(0,i.useContext)(mi),l=fi(),c=Qi.findPath(l,r),d=[],p=mr.isElement(r)&&!l.isInline(r)&&wr.hasInlines(l,r),f=0;f<r.children.length;f++){var m=c.concat(f),h=r.children[f],g=Qi.findKey(l,h),v=wr.range(l,m),b=s&&Lr.intersection(v,s),y=u([h,m]);for(var w of t){var E=Lr.intersection(w,v);E&&y.push(E)}mr.isElement(h)?d.push(i.createElement(hi.Provider,{key:"provider-".concat(g.id),value:!!b},i.createElement(ci,{decorations:y,element:h,key:g.id,renderElement:n,renderPlaceholder:o,renderLeaf:a,selection:b}))):d.push(i.createElement(ui,{decorations:y,key:g.id,isLast:p&&f===r.children.length-1,parent:r,renderPlaceholder:o,renderLeaf:a,text:h})),An.set(h,f),Mn.set(h,r)}return d},vi={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z"},bi={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},yi={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},wi=e=>{var t=vi[e],r=bi[e],n=yi[e],i=t&&(0,Dn.TB)(t),o=r&&(0,Dn.TB)(r),a=n&&(0,Dn.TB)(n);return e=>!(!i||!i(e))||(!!(qn&&o&&o(e))||!(qn||!a||!a(e)))},Ei={isBold:wi("bold"),isCompose:wi("compose"),isMoveBackward:wi("moveBackward"),isMoveForward:wi("moveForward"),isDeleteBackward:wi("deleteBackward"),isDeleteForward:wi("deleteForward"),isDeleteLineBackward:wi("deleteLineBackward"),isDeleteLineForward:wi("deleteLineForward"),isDeleteWordBackward:wi("deleteWordBackward"),isDeleteWordForward:wi("deleteWordForward"),isExtendBackward:wi("extendBackward"),isExtendForward:wi("extendForward"),isExtendLineBackward:wi("extendLineBackward"),isExtendLineForward:wi("extendLineForward"),isItalic:wi("italic"),isMoveLineBackward:wi("moveLineBackward"),isMoveLineForward:wi("moveLineForward"),isMoveWordBackward:wi("moveWordBackward"),isMoveWordForward:wi("moveWordForward"),isRedo:wi("redo"),isSplitBlock:wi("splitBlock"),isTransposeCharacter:wi("transposeCharacter"),isUndo:wi("undo")},Di=(0,i.createContext)(!1),Ci=()=>(0,i.useContext)(Di),Si=(0,i.createContext)(null),Ii=()=>{var e=(0,i.useContext)(Si);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var[t]=e;return t},xi=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,Oi=e=>Ai(e)&&1===e.nodeType,Ai=e=>{var t=xi(e);return!!t&&e instanceof t.Node},Mi=e=>{var t=e&&e.anchorNode&&xi(e.anchorNode);return!!t&&e instanceof t.Selection},Bi=e=>Ai(e)&&3===e.nodeType,Pi=(e,t,r)=>{for(var n,{childNodes:i}=e,o=i[t],a=t,s=!1,u=!1;(Ai(n=o)&&8===n.nodeType||Oi(o)&&0===o.childNodes.length||Oi(o)&&"false"===o.getAttribute("contenteditable"))&&(!s||!u);)a>=i.length?(s=!0,a=t-1,r="backward"):a<0?(u=!0,a=t+1,r="forward"):(o=i[a],t=a,a+="forward"===r?1:-1);return[o,t]},Ni=(e,t,r)=>{var[n]=Pi(e,t,r);return n},ki=e=>{var t="";if(Bi(e)&&e.nodeValue)return e.nodeValue;if(Oi(e)){for(var r of Array.from(e.childNodes))t+=ki(r);var n=getComputedStyle(e).getPropertyValue("display");"block"!==n&&"list"!==n&&"BR"!==e.tagName||(t+="\n")}return t},Fi=/data-slate-fragment="(.+?)"/m,Ti=e=>{var t=e.getData("text/html"),[,r]=t.match(Fi)||[];return r},ji=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as"];function Li(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}function Ri(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Li(Object(r),!0).forEach((function(t){Cn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Li(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var _i=e=>i.createElement(i.Fragment,null,gi(e)),Zi=e=>{var{attributes:t,children:r}=e;return i.createElement("span",Object.assign({},t),r)},Hi=()=>[],Wi=(e,t)=>{if(!e.selection||e.selection&&Lr.isCollapsed(e.selection)){var r=t.startContainer.parentElement;r.getBoundingClientRect=t.getBoundingClientRect.bind(t),En(r,{scrollMode:"if-needed"}),delete r.getBoundingClientRect}},Ui=(e,t)=>Ai(t)&&Qi.hasDOMNode(e,t),Gi=(e,t)=>Ai(t)&&Qi.hasDOMNode(e,t,{editable:!0}),qi=(e,t)=>{var r=Ui(e,t)&&Qi.toSlateNode(e,t);return wr.isVoid(e,r)},zi=(e,t)=>{if(!t)return!1;var r=t(e);return null!=r?r:e.isDefaultPrevented()||e.isPropagationStopped()},Vi=(e,t)=>{if(!t)return!1;var r=t(e);return null!=r?r:e.defaultPrevented},Ji=0;class Yi{constructor(){this.id="".concat(Ji++)}}var Qi={getWindow(e){var t=Bn.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey(e,t){var r=Fn.get(t);return r||(r=new Yi,Fn.set(t,r)),r},findPath(e,t){for(var r=[],n=t;;){var i=Mn.get(n);if(null==i){if(wr.isEditor(n))return r;break}var o=An.get(n);if(null==o)break;r.unshift(o),n=i}throw new Error("Unable to find the path for Slate node: ".concat(JSON.stringify(t)))},findDocumentOrShadowRoot(e){var t=Qi.toDOMNode(e,e),r=t.getRootNode();return(r instanceof Document||r instanceof ShadowRoot)&&null!=r.getSelection?r:t.ownerDocument},isFocused:e=>!!Ln.get(e),isReadOnly:e=>!!jn.get(e),blur(e){var t=Qi.toDOMNode(e,e),r=Qi.findDocumentOrShadowRoot(e);Ln.set(e,!1),r.activeElement===t&&t.blur()},focus(e){var t=Qi.toDOMNode(e,e),r=Qi.findDocumentOrShadowRoot(e);Ln.set(e,!0),r.activeElement!==t&&t.focus({preventScroll:!0})},deselect(e){Qi.toDOMNode(e,e);var{selection:t}=e,r=Qi.findDocumentOrShadowRoot(e).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),t&&un.deselect(e)},hasDOMNode(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{editable:i=!1}=n,o=Qi.toDOMNode(e,e);try{r=Oi(t)?t:t.parentElement}catch(a){if(!a.message.includes('Permission denied to access property "nodeType"'))throw a}return!!r&&!(r.closest("[data-slate-editor]")!==o||i&&!r.isContentEditable&&("boolean"!=typeof r.isContentEditable||r.closest('[contenteditable="false"]')!==o)&&!r.getAttribute("data-slate-zero-width"))},insertData(e,t){e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),setFragmentData(e,t){e.setFragmentData(t)},toDOMNode(e,t){var r=Tn.get(e),n=wr.isEditor(t)?Pn.get(e):null==r?void 0:r.get(Qi.findKey(e,t));if(!n)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(JSON.stringify(t)));return n},toDOMPoint(e,t){var r,[n]=wr.node(e,t.path),i=Qi.toDOMNode(e,n);wr.void(e,{at:t})&&(t={path:t.path,offset:0});var o=Array.from(i.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),a=0;for(var s of o){var u=s.childNodes[0];if(null!=u&&null!=u.textContent){var{length:l}=u.textContent,c=s.getAttribute("data-slate-length"),d=a+(null==c?l:parseInt(c,10));if(t.offset<=d){r=[u,Math.min(l,Math.max(0,t.offset-a))];break}a=d}}if(!r)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(JSON.stringify(t)));return r},toDOMRange(e,t){var{anchor:r,focus:n}=t,i=Lr.isBackward(t),o=Qi.toDOMPoint(e,r),a=Lr.isCollapsed(t)?o:Qi.toDOMPoint(e,n),s=Qi.getWindow(e).document.createRange(),[u,l]=i?a:o,[c,d]=i?o:a,p=!!(Oi(u)?u:u.parentElement).getAttribute("data-slate-zero-width"),f=!!(Oi(c)?c:c.parentElement).getAttribute("data-slate-zero-width");return s.setStart(u,p?1:l),s.setEnd(c,f?1:d),s},toSlateNode(e,t){var r=Oi(t)?t:t.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var n=r?Nn.get(r):null;if(!n)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(r));return n},findEventRange(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:r,clientY:n,target:i}=t;if(null==r||null==n)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var o,a=Qi.toSlateNode(e,t.target),s=Qi.findPath(e,a);if(wr.isVoid(e,a)){var u=i.getBoundingClientRect(),l=e.isInline(a)?r-u.left<u.left+u.width-r:n-u.top<u.top+u.height-n,c=wr.point(e,s,{edge:l?"start":"end"}),d=l?wr.before(e,c):wr.after(e,c);if(d)return wr.range(e,d)}var{document:p}=Qi.getWindow(e);if(p.caretRangeFromPoint)o=p.caretRangeFromPoint(r,n);else{var f=p.caretPositionFromPoint(r,n);f&&((o=p.createRange()).setStart(f.offsetNode,f.offset),o.setEnd(f.offsetNode,f.offset))}if(!o)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));return Qi.toSlateRange(e,o,{exactMatch:!1,suppressThrow:!1})},toSlatePoint(e,t,r){var{exactMatch:n,suppressThrow:i}=r,[o,a]=n?t:(e=>{var[t,r]=e;if(Oi(t)&&t.childNodes.length){var n=r===t.childNodes.length,i=n?r-1:r;for([t,i]=Pi(t,i,n?"backward":"forward"),n=i<r;Oi(t)&&t.childNodes.length;){var o=n?t.childNodes.length-1:0;t=Ni(t,o,n?"backward":"forward")}r=n&&null!=t.textContent?t.textContent.length:0}return[t,r]})(t),s=o.parentNode,u=null,l=0;if(s){var c,d=s.closest('[data-slate-void="true"]'),p=s.closest("[data-slate-leaf]"),f=null;if(p){u=p.closest('[data-slate-node="text"]');var m=Qi.getWindow(e).document.createRange();m.setStart(u,0),m.setEnd(o,a);var h=m.cloneContents();[...Array.prototype.slice.call(h.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(h.querySelectorAll("[contenteditable=false]"))].forEach((e=>{e.parentNode.removeChild(e)})),l=h.textContent.length,f=u}else d&&((p=d.querySelector("[data-slate-leaf]"))?(u=p.closest('[data-slate-node="text"]'),l=(f=p).textContent.length,f.querySelectorAll("[data-slate-zero-width]").forEach((e=>{l-=e.textContent.length}))):l=1);f&&l===f.textContent.length&&(s.hasAttribute("data-slate-zero-width")||Vn&&null!==(c=f.textContent)&&void 0!==c&&c.endsWith("\n\n"))&&l--}if(!u){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var g=Qi.toSlateNode(e,u);return{path:Qi.findPath(e,g),offset:l}},toSlateRange(e,t,r){var n,i,o,a,s,{exactMatch:u,suppressThrow:l}=r;if((Mi(t)?t.anchorNode:t.startContainer)&&(Mi(t)?(n=t.anchorNode,i=t.anchorOffset,o=t.focusNode,a=t.focusOffset,s=Qn&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(n=t.startContainer,i=t.startOffset,o=t.endContainer,a=t.endOffset,s=t.collapsed)),null==n||null==o||null==i||null==a)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));var c=Qi.toSlatePoint(e,[n,i],{exactMatch:u,suppressThrow:l});if(!c)return null;var d=s?c:Qi.toSlatePoint(e,[o,a],{exactMatch:u,suppressThrow:l});if(!d)return null;var p={anchor:c,focus:d};return Lr.isExpanded(p)&&Lr.isForward(p)&&Oi(o)&&wr.void(e,{at:p.focus,mode:"highest"})&&(p=wr.unhangRange(e,p,{voids:!0})),p},hasRange(e,t){var{anchor:r,focus:n}=t;return wr.hasPath(e,r.path)&&wr.hasPath(e,n.path)}};function Xi(e,t){if(e===t)return null;var r=function(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++)if(e.charAt(n)!==t.charAt(n))return n;return e.length!==t.length?r:null}(e,t);if(null===r)return null;var n=function(e,t,r){for(var n=e.length,i=t.length,o=Math.min(n,i,r),a=0;a<o;a++)if(e.charAt(n-a-1)!==t.charAt(i-a-1))return a;return e.length!==t.length?o:null}(e,t,Math.min(e.length-r,t.length-r));return null===n?null:{start:r,end:n}}function Ki(e,t){return e.slice(t.start,e.length-t.end)}function $i(e,t){var r=Qi.toSlateNode(e,t);if(Gr.isText(r)){var n=r.text,i=t.textContent;if(i.endsWith("\n")&&(i=i.slice(0,i.length-1)),i!==n){var o=function(e,t){if(void 0===e||void 0===t)return null;var r=Xi(e,t);if(null==r)return null;var n=Ki(t,r),i=Ki(e,r);return{start:r.start,end:e.length-r.end,insertText:n,removeText:i}}(n,i);if(null!==o)return{text:o,path:Qi.findPath(e,r)}}}}function eo(e){try{var t=_n.get(e);t&&t()}catch(r){console.error(r)}}function to(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}class ro{constructor(e){this.editor=e,this.flush=e=>{try{this.reconcileMutations(e)}catch(t){console.error(t),eo(this.editor)}},this.reconcileMutations=e=>{var t=function(e,t){var r=[],n=[],i=[],o=[];return t.forEach((t=>{switch(t.type){case"childList":t.addedNodes.length&&t.addedNodes.forEach((e=>{r.push(e)})),t.removedNodes.forEach((e=>{n.push(e)}));break;case"characterData":o.push(t);var{parentNode:a}=t.target;if(!a)return;var s=$i(e,a);if(!s)return;if(i.some((e=>{var{path:t}=e;return Mr.equals(t,s.path)})))return;i.push(s)}})),{addedNodes:r,removedNodes:n,insertedText:i,characterDataMutations:o}}(this.editor,e),{insertedText:r,removedNodes:n}=t;if(((e,t)=>{var{selection:r}=e,{removedNodes:n}=t;return!!r&&Lr.isExpanded(r)&&n.length>0})(this.editor,t)){var i=function(e){return e.reduce(((e,t)=>{var{text:r}=t;return"".concat(e).concat(r.insertText)}),"")}(r);this.replaceExpandedSelection(i)}else((e,t)=>{var{addedNodes:r}=t,{selection:n}=e,i=n?Ir.parent(e,n.anchor.path):null,o=i?Qi.toDOMNode(e,i):null;return!!o&&r.some((e=>e instanceof HTMLElement&&e.tagName===(null==o?void 0:o.tagName)))})(this.editor,t)?this.insertBreak():((e,t)=>{var{addedNodes:r,characterDataMutations:n,removedNodes:i}=t;return i.length>0&&0===r.length&&n.length>0})(this.editor,t)?this.removeLeafNodes(n):((e,t)=>{var{removedNodes:r}=t;return r.length>0})(this.editor,t)?this.deleteBackward():((e,t)=>{var{insertedText:r}=t;return r.length>0})(this.editor,t)&&this.insertText(r)},this.insertText=e=>{var{selection:t,marks:r}=this.editor;e.forEach((e=>{var n=e.text.insertText,i=function(e,t,r){var{path:n,text:i}=r,o={anchor:{path:n,offset:i.start},focus:{path:n,offset:i.end}};if(!t||!Lr.isCollapsed(t))return o;var{insertText:a,removeText:s}=i;if((1===a.length||1===s.length)&&Mr.equals(t.anchor.path,n)){var[u]=Array.from(wr.nodes(e,{at:t,match:Gr.isText}));if(u){var[l]=u,{anchor:c}=t,d=l.text[c.offset-1],p=l.text[c.offset];if(1===a.length&&a===p)return t;if(1===s.length&&s===d)return{anchor:{path:n,offset:c.offset-1},focus:{path:n,offset:c.offset}}}}return o}(this.editor,t,e);if(r){var o=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?to(Object(r),!0).forEach((function(t){Cn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):to(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({text:n},r);un.insertNodes(this.editor,o,{match:Gr.isText,at:i,select:!0}),this.editor.marks=null}else un.insertText(this.editor,n,{at:i})}))},this.insertBreak=()=>{var{selection:e}=this.editor;wr.insertBreak(this.editor),eo(this.editor),e&&setTimeout((()=>{this.editor.selection&&Lr.equals(e,this.editor.selection)&&un.move(this.editor)}),100)},this.replaceExpandedSelection=e=>{wr.deleteFragment(this.editor),e.length&&wr.insertText(this.editor,e),eo(this.editor)},this.deleteBackward=()=>{wr.deleteBackward(this.editor),Qi.focus(this.editor),eo(this.editor)},this.removeLeafNodes=e=>{for(var t of e){var r=Qi.toSlateNode(this.editor,t);if(r){var n=Qi.findPath(this.editor,r);un.delete(this.editor,{at:n}),eo(this.editor)}}},this.editor=e}}var no={childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0};function io(e){var t=fi(),[r]=(0,i.useState)((()=>new ro(t))),{receivedUserInput:n,onUserInput:o}=function(){var e=fi(),t=(0,i.useRef)(!1),r=(0,i.useRef)(null),n=(0,i.useCallback)((()=>{if(!1===t.current){var n=Qi.getWindow(e);t.current=!0,r.current&&n.cancelAnimationFrame(r.current),r.current=n.requestAnimationFrame((()=>{t.current=!1,r.current=null}))}}),[]);return(0,i.useEffect)((()=>{t.current&&(t.current=!1)})),{receivedUserInput:t,onUserInput:n}}(),a=(0,i.useRef)(null),s=(0,i.useRef)(!1);return function(e,t,r){var[n]=(0,i.useState)((()=>new MutationObserver(t)));ri((()=>{n.disconnect()})),(0,i.useEffect)((()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return n.observe(e.current,r),n.disconnect.bind(n)}))}(e,(0,i.useCallback)((e=>{n.current&&(s.current=!0,r.flush(e),a.current&&clearTimeout(a.current),a.current=setTimeout((()=>{s.current=!1,a.current=null}),250))}),[]),no),{isReconciling:s,onUserInput:o}}var oo=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","style","as"];function ao(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}function so(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ao(Object(r),!0).forEach((function(t){Cn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ao(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var uo=(0,i.createContext)(!1),lo=["editor","children","onChange","value"],co=e=>{var{editor:t,children:r,onChange:n,value:o}=e,a=Sn(e,lo),[s,u]=i.useState((()=>{if(!Ir.isNodeList(o))throw new Error("[Slate] value is invalid! Expected a list of elements"+"but got: ".concat(JSON.stringify(o)));if(!wr.isEditor(t))throw new Error("[Slate] editor is invalid! you passed:"+"".concat(JSON.stringify(t)));return t.children=o,Object.assign(t,a),[t]})),l=(0,i.useCallback)((()=>{n(t.children),u([t])}),[n]);Rn.set(t,l),(0,i.useEffect)((()=>()=>{Rn.set(t,(()=>{}))}),[]);var[c,d]=(0,i.useState)(Qi.isFocused(t));return(0,i.useEffect)((()=>{d(Qi.isFocused(t))})),ri((()=>{var e=()=>d(Qi.isFocused(t));return document.addEventListener("focus",e,!0),()=>document.removeEventListener("focus",e,!0)}),[]),ri((()=>{var e=()=>d(Qi.isFocused(t));return document.addEventListener("blur",e,!0),()=>document.removeEventListener("blur",e,!0)}),[]),i.createElement(Si.Provider,{value:s},i.createElement(pi.Provider,{value:t},i.createElement(uo.Provider,{value:c},r)))},po=(e,t)=>{var r=(t.top+t.bottom)/2;return e.top<=r&&e.bottom>=r},fo=(e,t,r)=>{var n=Qi.toDOMRange(e,t).getBoundingClientRect(),i=Qi.toDOMRange(e,r).getBoundingClientRect();return po(n,i)&&po(i,n)},mo=e=>{var t=e,{apply:r,onChange:i,deleteBackward:o}=t;return Tn.set(t,new WeakMap),t.deleteBackward=r=>{if("line"!==r)return o(r);if(e.selection&&Lr.isCollapsed(e.selection)){var n=wr.above(e,{match:t=>wr.isBlock(e,t),at:e.selection});if(n){var[,i]=n,a=wr.range(e,i,e.selection.anchor),s=((e,t)=>{var r=wr.range(e,Lr.end(t)),n=Array.from(wr.positions(e,{at:t})),i=0,o=n.length,a=Math.floor(o/2);if(fo(e,wr.range(e,n[i]),r))return wr.range(e,n[i],r);if(n.length<2)return wr.range(e,n[n.length-1],r);for(;a!==n.length&&a!==i;)fo(e,wr.range(e,n[a]),r)?o=a:i=a,a=Math.floor((i+o)/2);return wr.range(e,n[o],r)})(t,a);Lr.isCollapsed(s)||un.delete(e,{at:s})}}},t.apply=e=>{var n=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":for(var[i,o]of wr.levels(t,{at:e.path})){var a=Qi.findKey(t,i);n.push([o,a])}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":for(var[s,u]of wr.levels(t,{at:Mr.parent(e.path)})){var l=Qi.findKey(t,s);n.push([u,l])}break;case"move_node":for(var[c,d]of wr.levels(t,{at:Mr.common(Mr.parent(e.path),Mr.parent(e.newPath))})){var p=Qi.findKey(t,c);n.push([d,p])}}for(var[f,m]of(r(e),n)){var[h]=wr.node(t,f);Fn.set(h,m)}},t.setFragmentData=e=>{var{selection:r}=t;if(r){var[n,i]=Lr.edges(r),o=wr.void(t,{at:n.path}),a=wr.void(t,{at:i.path});if(!Lr.isCollapsed(r)||o){var s=Qi.toDOMRange(t,r),u=s.cloneContents(),l=u.childNodes[0];if(u.childNodes.forEach((e=>{e.textContent&&""!==e.textContent.trim()&&(l=e)})),a){var[c]=a,d=s.cloneRange(),p=Qi.toDOMNode(t,c);d.setEndAfter(p),u=d.cloneContents()}if(o&&(l=u.querySelector("[data-slate-spacer]")),Array.from(u.querySelectorAll("[data-slate-zero-width]")).forEach((e=>{var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),Bi(l)){var f=l.ownerDocument.createElement("span");f.style.whiteSpace="pre",f.appendChild(l),u.appendChild(f),l=f}var m=t.getFragment(),h=JSON.stringify(m),g=window.btoa(encodeURIComponent(h));l.setAttribute("data-slate-fragment",g),e.setData("application/x-slate-fragment",g);var v=u.ownerDocument.createElement("div");return v.appendChild(u),v.setAttribute("hidden","true"),u.ownerDocument.body.appendChild(v),e.setData("text/html",v.innerHTML),e.setData("text/plain",ki(v)),u.ownerDocument.body.removeChild(v),e}}},t.insertData=e=>{t.insertFragmentData(e)||t.insertTextData(e)},t.insertFragmentData=e=>{var r=e.getData("application/x-slate-fragment")||Ti(e);if(r){var n=decodeURIComponent(window.atob(r)),i=JSON.parse(n);return t.insertFragment(i),!0}return!1},t.insertTextData=e=>{var r=e.getData("text/plain");if(r){var n=r.split(/\r\n|\r|\n/),i=!1;for(var o of n)i&&un.splitNodes(t,{always:!0}),t.insertText(o),i=!0;return!0}return!1},t.onChange=()=>{n.unstable_batchedUpdates((()=>{var e=Rn.get(t);e&&e(),i()}))},t},ho=zn?e=>{var{autoFocus:t,decorate:r=Hi,onDOMBeforeInput:n,placeholder:o,readOnly:a=!1,renderElement:s,renderLeaf:u,renderPlaceholder:l=(e=>i.createElement(Zi,Object.assign({},e))),style:c={},as:d="div"}=e,p=Sn(e,oo),f=Ii(),m=(0,i.useRef)(null),h=io(m);jn.set(f,a);var g=(0,i.useMemo)((()=>({isUpdatingSelection:!1,latestElement:null})),[]),[v,b]=(0,i.useState)(0),y=(0,i.useCallback)((()=>{b((e=>e+1))}),[v]);ri((()=>{var e;m.current&&(e=xi(m.current))?(Bn.set(f,e),Pn.set(f,m.current),kn.set(f,m.current),Nn.set(m.current,f),_n.set(f,y)):(kn.delete(f),_n.delete(f));try{var{selection:t}=f,r=Qi.findDocumentOrShadowRoot(f).getSelection();if(!r||!Qi.isFocused(f))return;var n="None"!==r.type;if(!t&&!n)return;var i=Pn.get(f),o=!1;if(i.contains(r.anchorNode)&&i.contains(r.focusNode)&&(o=!0),n&&o&&t){var a=Qi.toSlateRange(f,r,{exactMatch:!0,suppressThrow:!0});if(a&&Lr.equals(a,t))return}if(t&&!Qi.hasRange(f,t))return void(f.selection=Qi.toSlateRange(f,r,{exactMatch:!1,suppressThrow:!1}));var s=Qi.toDOMNode(f,f);g.isUpdatingSelection=!0;var u=t&&Qi.toDOMRange(f,t);if(u){Lr.isBackward(t)?r.setBaseAndExtent(u.endContainer,u.endOffset,u.startContainer,u.startOffset):r.setBaseAndExtent(u.startContainer,u.startOffset,u.endContainer,u.endOffset);var l=u.startContainer.parentElement;l.getBoundingClientRect=u.getBoundingClientRect.bind(u),En(l,{scrollMode:"if-needed",boundary:s}),delete l.getBoundingClientRect}else r.removeAllRanges();setTimeout((()=>{g.isUpdatingSelection=!1}))}catch(c){g.isUpdatingSelection=!1}})),(0,i.useEffect)((()=>{m.current&&t&&m.current.focus()}),[t]);var w=(0,i.useCallback)((e=>{a||!Gi(f,e.target)||Vi(e,n)||h.onUserInput()}),[a,n]);ri((()=>{var e=m.current;return null==e||e.addEventListener("beforeinput",w),()=>null==e?void 0:e.removeEventListener("beforeinput",w)}),[v,n]);var E=(0,i.useCallback)(mn()((()=>{try{if(!g.isUpdatingSelection&&!h.isReconciling.current){var e=Qi.findDocumentOrShadowRoot(f),{activeElement:t}=e,r=Qi.toDOMNode(f,f),n=e.getSelection();if(t===r?(g.latestElement=t,Ln.set(f,!0)):Ln.delete(f),!n)return un.deselect(f);var{anchorNode:i,focusNode:o}=n,a=Gi(f,i)||qi(f,i),s=Gi(f,o)||qi(f,o);if(a&&s){var u=Qi.toSlateRange(f,n,{exactMatch:!1,suppressThrow:!1});un.select(f,u)}else un.deselect(f)}}catch(l){}}),100),[a]);ri((()=>{var e=Qi.getWindow(f);return e.document.addEventListener("selectionchange",E),()=>{e.document.removeEventListener("selectionchange",E)}}));var D=r([f,[]]);if(o&&1===f.children.length&&1===Array.from(Ir.texts(f)).length&&""===Ir.string(f)){var C=wr.start(f,[]);D.push({[Zn]:!0,placeholder:o,anchor:C,focus:C})}return i.createElement(Di.Provider,{value:a},i.createElement(mi.Provider,{value:r},i.createElement(d,Object.assign({key:v,role:a?void 0:"textbox"},p,{spellCheck:p.spellCheck,autoCorrect:p.autoCorrect,autoCapitalize:p.autoCapitalize,"data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a||void 0,suppressContentEditableWarning:!0,ref:m,style:so({position:"relative",outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},c),onCopy:(0,i.useCallback)((e=>{Gi(f,e.target)&&!zi(e,p.onCopy)&&(e.preventDefault(),Qi.setFragmentData(f,e.clipboardData))}),[p.onCopy]),onCut:(0,i.useCallback)((e=>{if(!a&&Gi(f,e.target)&&!zi(e,p.onCut)){e.preventDefault(),Qi.setFragmentData(f,e.clipboardData);var{selection:t}=f;if(t)if(Lr.isExpanded(t))wr.deleteFragment(f);else{var r=Ir.parent(f,t.anchor.path);wr.isVoid(f,r)&&un.delete(f)}}}),[a,p.onCut]),onFocus:(0,i.useCallback)((e=>{if(!a&&!g.isUpdatingSelection&&Gi(f,e.target)&&!zi(e,p.onFocus)){var t=Qi.findDocumentOrShadowRoot(f);g.latestElement=t.activeElement,Ln.set(f,!0)}}),[a,p.onFocus]),onBlur:(0,i.useCallback)((e=>{if(!a&&!g.isUpdatingSelection&&Gi(f,e.target)&&!zi(e,p.onBlur)){var t=Qi.findDocumentOrShadowRoot(f);if(g.latestElement!==t.activeElement){var{relatedTarget:r}=e;if(!(r===Qi.toDOMNode(f,f)||Oi(r)&&r.hasAttribute("data-slate-spacer"))){if(null!=r&&Ai(r)&&Qi.hasDOMNode(f,r)){var n=Qi.toSlateNode(f,r);if(mr.isElement(n)&&!f.isVoid(n))return}Ln.delete(f)}}}}),[a,p.onBlur]),onPaste:(0,i.useCallback)((e=>{e.clipboardData=(e=>{if(!e.getData("application/x-slate-fragment")){var t=Ti(e);if(t){var r=new DataTransfer;return e.types.forEach((t=>{r.setData(t,e.getData(t))})),r.setData("application/x-slate-fragment",t),r}}return e})(e.clipboardData),!Gi(f,e.target)||zi(e,p.onPaste)||a||(e.preventDefault(),Qi.insertData(f,e.clipboardData))}),[a,p.onPaste])}),gi({decorations:D,node:f,renderElement:s,renderPlaceholder:l,renderLeaf:u,selection:f.selection}))))}:e=>{var{autoFocus:t,decorate:r=Hi,onDOMBeforeInput:n,placeholder:o,readOnly:a=!1,renderElement:s,renderLeaf:u,renderPlaceholder:l=(e=>i.createElement(Zi,Object.assign({},e))),scrollSelectionIntoView:c=Wi,style:d={},as:p="div"}=e,f=Sn(e,ji),m=Ii(),[h,g]=(0,i.useState)(!1),v=(0,i.useRef)(null),b=(0,i.useRef)([]);jn.set(m,a);var y=(0,i.useMemo)((()=>({isComposing:!1,hasInsertPrefixInCompositon:!1,isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null})),[]);ri((()=>{var e;v.current&&(e=xi(v.current))?(Bn.set(m,e),Pn.set(m,v.current),kn.set(m,v.current),Nn.set(v.current,m)):kn.delete(m);var{selection:t}=m,r=Qi.findDocumentOrShadowRoot(m).getSelection();if(!y.isComposing&&r&&Qi.isFocused(m)){var n="None"!==r.type;if(t||n){var i=Pn.get(m),o=!1;if(i.contains(r.anchorNode)&&i.contains(r.focusNode)&&(o=!0),n&&o&&t){var a=Qi.toSlateRange(m,r,{exactMatch:!0,suppressThrow:!0});if(a&&Lr.equals(a,t))return}if(!t||Qi.hasRange(m,t)){y.isUpdatingSelection=!0;var s=t&&Qi.toDOMRange(m,t);s?(Lr.isBackward(t)?r.setBaseAndExtent(s.endContainer,s.endOffset,s.startContainer,s.startOffset):r.setBaseAndExtent(s.startContainer,s.startOffset,s.endContainer,s.endOffset),c(m,s)):r.removeAllRanges(),setTimeout((()=>{s&&Vn&&Qi.toDOMNode(m,m).focus();y.isUpdatingSelection=!1}))}else m.selection=Qi.toSlateRange(m,r,{exactMatch:!1,suppressThrow:!1})}}})),(0,i.useEffect)((()=>{v.current&&t&&v.current.focus()}),[t]);var w=(0,i.useCallback)(mn()((()=>{if(!y.isComposing&&!y.isUpdatingSelection&&!y.isDraggingInternally){var e=Qi.findDocumentOrShadowRoot(m),{activeElement:t}=e,r=Qi.toDOMNode(m,m),n=e.getSelection();if(t===r?(y.latestElement=t,Ln.set(m,!0)):Ln.delete(m),!n)return un.deselect(m);var{anchorNode:i,focusNode:o}=n,a=Gi(m,i)||qi(m,i),s=Gi(m,o)||qi(m,o);if(a&&s){var u=Qi.toSlateRange(m,n,{exactMatch:!1,suppressThrow:!1});un.select(m,u)}}}),100),[a]),E=(0,i.useMemo)((()=>pn()(w,0)),[w]),D=(0,i.useCallback)((e=>{if(!a&&Gi(m,e.target)&&!Vi(e,n)){E.flush();var{selection:t}=m,{inputType:r}=e,i=e.dataTransfer||e.data||void 0;if("insertCompositionText"===r||"deleteCompositionText"===r)return;var o=!1;if("insertText"===r&&t&&Lr.isCollapsed(t)&&e.data&&1===e.data.length&&/[a-z ]/i.test(e.data)&&0!==t.anchor.offset){o=!0,m.marks&&(o=!1);var{anchor:s}=t,u=wr.above(m,{at:s,match:e=>wr.isInline(m,e),mode:"highest"});if(u){var[,l]=u;wr.isEnd(m,t.anchor,l)&&(o=!1)}}if(o||e.preventDefault(),!r.startsWith("delete")||r.startsWith("deleteBy")){var[c]=e.getTargetRanges();if(c){var d=Qi.toSlateRange(m,c,{exactMatch:!1,suppressThrow:!1});t&&Lr.equals(t,d)||un.select(m,d)}}if(t&&Lr.isExpanded(t)&&r.startsWith("delete")){var p=r.endsWith("Backward")?"backward":"forward";return void wr.deleteFragment(m,{direction:p})}switch(r){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":wr.deleteFragment(m);break;case"deleteContent":case"deleteContentForward":wr.deleteForward(m);break;case"deleteContentBackward":wr.deleteBackward(m);break;case"deleteEntireSoftLine":wr.deleteBackward(m,{unit:"line"}),wr.deleteForward(m,{unit:"line"});break;case"deleteHardLineBackward":wr.deleteBackward(m,{unit:"block"});break;case"deleteSoftLineBackward":wr.deleteBackward(m,{unit:"line"});break;case"deleteHardLineForward":wr.deleteForward(m,{unit:"block"});break;case"deleteSoftLineForward":wr.deleteForward(m,{unit:"line"});break;case"deleteWordBackward":wr.deleteBackward(m,{unit:"word"});break;case"deleteWordForward":wr.deleteForward(m,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":wr.insertBreak(m);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":"insertFromComposition"===r&&(y.isComposing&&g(!1),y.isComposing=!1),"DataTransfer"===(null==i?void 0:i.constructor.name)?Qi.insertData(m,i):"string"==typeof i&&(o?b.current.push((()=>wr.insertText(m,i))):wr.insertText(m,i))}}}),[a,n]);ri((()=>(v.current&&ti&&v.current.addEventListener("beforeinput",D),()=>{v.current&&ti&&v.current.removeEventListener("beforeinput",D)})),[D]),ri((()=>{var e=Qi.getWindow(m);return e.document.addEventListener("selectionchange",E),()=>{e.document.removeEventListener("selectionchange",E)}}),[E]);var C=r([m,[]]);if(o&&1===m.children.length&&1===Array.from(Ir.texts(m)).length&&""===Ir.string(m)&&!h){var S=wr.start(m,[]);C.push({[Zn]:!0,placeholder:o,anchor:S,focus:S})}return i.createElement(Di.Provider,{value:a},i.createElement(mi.Provider,{value:r},i.createElement(p,Object.assign({role:a?void 0:"textbox"},f,{spellCheck:!(!ti&&ei)&&f.spellCheck,autoCorrect:ti||!ei?f.autoCorrect:"false",autoCapitalize:ti||!ei?f.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a,zindex:-1,suppressContentEditableWarning:!0,ref:v,style:Ri({position:"relative",outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},d),onBeforeInput:(0,i.useCallback)((e=>{if(!ti&&!a&&!zi(e,f.onBeforeInput)&&Gi(m,e.target)&&(e.preventDefault(),!y.isComposing)){var t=e.data;wr.insertText(m,t)}}),[a]),onInput:(0,i.useCallback)((e=>{for(var t of b.current)t();b.current=[]}),[]),onBlur:(0,i.useCallback)((e=>{if(!a&&!y.isUpdatingSelection&&Gi(m,e.target)&&!zi(e,f.onBlur)){var t=Qi.findDocumentOrShadowRoot(m);if(y.latestElement!==t.activeElement){var{relatedTarget:r}=e;if(!(r===Qi.toDOMNode(m,m)||Oi(r)&&r.hasAttribute("data-slate-spacer"))){if(null!=r&&Ai(r)&&Qi.hasDOMNode(m,r)){var n=Qi.toSlateNode(m,r);if(mr.isElement(n)&&!m.isVoid(n))return}if(Jn){var i=t.getSelection();null==i||i.removeAllRanges()}Ln.delete(m)}}}}),[a,f.onBlur]),onClick:(0,i.useCallback)((e=>{if(!a&&Ui(m,e.target)&&!zi(e,f.onClick)&&Ai(e.target)){var t=Qi.toSlateNode(m,e.target),r=Qi.findPath(m,t);if(wr.hasPath(m,r))if(Ir.get(m,r)===t){var n=wr.start(m,r),i=wr.end(m,r),o=wr.void(m,{at:n}),s=wr.void(m,{at:i});if(o&&s&&Mr.equals(o[1],s[1])){var u=wr.range(m,n);un.select(m,u)}}}}),[a,f.onClick]),onCompositionEnd:(0,i.useCallback)((e=>{if(Gi(m,e.target)&&!zi(e,f.onCompositionEnd)&&(y.isComposing&&g(!1),y.isComposing=!1,Jn||Kn||Gn||$n||!e.data||wr.insertText(m,e.data),m.selection&&Lr.isCollapsed(m.selection))){var t=m.selection.anchor.path,r=Ir.leaf(m,t);y.hasInsertPrefixInCompositon&&(y.hasInsertPrefixInCompositon=!1,wr.withoutNormalizing(m,(()=>{var e=r.text.replace(/^\uFEFF/,"");un.delete(m,{distance:r.text.length,reverse:!0}),un.insertText(m,e)})))}}),[f.onCompositionEnd]),onCompositionUpdate:(0,i.useCallback)((e=>{Gi(m,e.target)&&!zi(e,f.onCompositionUpdate)&&(!y.isComposing&&g(!0),y.isComposing=!0)}),[f.onCompositionUpdate]),onCompositionStart:(0,i.useCallback)((e=>{if(Gi(m,e.target)&&!zi(e,f.onCompositionStart)){var{selection:t,marks:r}=m;if(t){if(Lr.isExpanded(t))return void wr.deleteFragment(m);var n=wr.above(m,{match:e=>wr.isInline(m,e),mode:"highest"});if(n){var[,i]=n;if(wr.isEnd(m,t.anchor,i)){var o=wr.after(m,i);un.setSelection(m,{anchor:o,focus:o})}}r&&(y.hasInsertPrefixInCompositon=!0,un.insertNodes(m,Ri({text:"\ufeff"},r),{select:!0}))}}}),[f.onCompositionStart]),onCopy:(0,i.useCallback)((e=>{Gi(m,e.target)&&!zi(e,f.onCopy)&&(e.preventDefault(),Qi.setFragmentData(m,e.clipboardData))}),[f.onCopy]),onCut:(0,i.useCallback)((e=>{if(!a&&Gi(m,e.target)&&!zi(e,f.onCut)){e.preventDefault(),Qi.setFragmentData(m,e.clipboardData);var{selection:t}=m;if(t)if(Lr.isExpanded(t))wr.deleteFragment(m);else{var r=Ir.parent(m,t.anchor.path);wr.isVoid(m,r)&&un.delete(m)}}}),[a,f.onCut]),onDragOver:(0,i.useCallback)((e=>{if(Ui(m,e.target)&&!zi(e,f.onDragOver)){var t=Qi.toSlateNode(m,e.target);wr.isVoid(m,t)&&e.preventDefault()}}),[f.onDragOver]),onDragStart:(0,i.useCallback)((e=>{if(!a&&Ui(m,e.target)&&!zi(e,f.onDragStart)){var t=Qi.toSlateNode(m,e.target),r=Qi.findPath(m,t);if(wr.isVoid(m,t)||wr.void(m,{at:r,voids:!0})){var n=wr.range(m,r);un.select(m,n)}y.isDraggingInternally=!0,Qi.setFragmentData(m,e.dataTransfer)}}),[f.onDragStart]),onDrop:(0,i.useCallback)((e=>{if(!a&&Ui(m,e.target)&&!zi(e,f.onDrop)){e.preventDefault();var t=m.selection,r=Qi.findEventRange(m,e),n=e.dataTransfer;un.select(m,r),y.isDraggingInternally&&(!t||Lr.equals(t,r)||wr.void(m,{at:r,voids:!0})||un.delete(m,{at:t}),y.isDraggingInternally=!1),Qi.insertData(m,n),Qi.isFocused(m)||Qi.focus(m)}}),[a,f.onDrop]),onDragEnd:(0,i.useCallback)((e=>{!a&&y.isDraggingInternally&&Ui(m,e.target)&&!zi(e,f.onDragEnd)&&(y.isDraggingInternally=!1)}),[a,f.onDragEnd]),onFocus:(0,i.useCallback)((e=>{if(!a&&!y.isUpdatingSelection&&Gi(m,e.target)&&!zi(e,f.onFocus)){var t=Qi.toDOMNode(m,m),r=Qi.findDocumentOrShadowRoot(m);if(y.latestElement=r.activeElement,Vn&&e.target!==t)return void t.focus();Ln.set(m,!0)}}),[a,f.onFocus]),onKeyDown:(0,i.useCallback)((e=>{if(!a&&!y.isComposing&&Gi(m,e.target)&&!zi(e,f.onKeyDown)){var{nativeEvent:t}=e,{selection:r}=m,n=m.children[null!==r?r.focus.path[0]:0],i="rtl"===cn()(Ir.string(n));if(Ei.isRedo(t)){e.preventDefault();var o=m;return void("function"==typeof o.redo&&o.redo())}if(Ei.isUndo(t)){e.preventDefault();var s=m;return void("function"==typeof s.undo&&s.undo())}if(Ei.isMoveLineBackward(t))return e.preventDefault(),void un.move(m,{unit:"line",reverse:!0});if(Ei.isMoveLineForward(t))return e.preventDefault(),void un.move(m,{unit:"line"});if(Ei.isExtendLineBackward(t))return e.preventDefault(),void un.move(m,{unit:"line",edge:"focus",reverse:!0});if(Ei.isExtendLineForward(t))return e.preventDefault(),void un.move(m,{unit:"line",edge:"focus"});if(Ei.isMoveBackward(t))return e.preventDefault(),void(r&&Lr.isCollapsed(r)?un.move(m,{reverse:!i}):un.collapse(m,{edge:"start"}));if(Ei.isMoveForward(t))return e.preventDefault(),void(r&&Lr.isCollapsed(r)?un.move(m,{reverse:i}):un.collapse(m,{edge:"end"}));if(Ei.isMoveWordBackward(t))return e.preventDefault(),r&&Lr.isExpanded(r)&&un.collapse(m,{edge:"focus"}),void un.move(m,{unit:"word",reverse:!i});if(Ei.isMoveWordForward(t))return e.preventDefault(),r&&Lr.isExpanded(r)&&un.collapse(m,{edge:"focus"}),void un.move(m,{unit:"word",reverse:i});if(ti){if((Qn||Jn)&&r&&(Ei.isDeleteBackward(t)||Ei.isDeleteForward(t))&&Lr.isCollapsed(r)){var u=Ir.parent(m,r.anchor.path);if(mr.isElement(u)&&wr.isVoid(m,u)&&wr.isInline(m,u))return e.preventDefault(),void wr.deleteBackward(m,{unit:"block"})}}else{if(Ei.isBold(t)||Ei.isItalic(t)||Ei.isTransposeCharacter(t))return void e.preventDefault();if(Ei.isSplitBlock(t))return e.preventDefault(),void wr.insertBreak(m);if(Ei.isDeleteBackward(t))return e.preventDefault(),void(r&&Lr.isExpanded(r)?wr.deleteFragment(m,{direction:"backward"}):wr.deleteBackward(m));if(Ei.isDeleteForward(t))return e.preventDefault(),void(r&&Lr.isExpanded(r)?wr.deleteFragment(m,{direction:"forward"}):wr.deleteForward(m));if(Ei.isDeleteLineBackward(t))return e.preventDefault(),void(r&&Lr.isExpanded(r)?wr.deleteFragment(m,{direction:"backward"}):wr.deleteBackward(m,{unit:"line"}));if(Ei.isDeleteLineForward(t))return e.preventDefault(),void(r&&Lr.isExpanded(r)?wr.deleteFragment(m,{direction:"forward"}):wr.deleteForward(m,{unit:"line"}));if(Ei.isDeleteWordBackward(t))return e.preventDefault(),void(r&&Lr.isExpanded(r)?wr.deleteFragment(m,{direction:"backward"}):wr.deleteBackward(m,{unit:"word"}));if(Ei.isDeleteWordForward(t))return e.preventDefault(),void(r&&Lr.isExpanded(r)?wr.deleteFragment(m,{direction:"forward"}):wr.deleteForward(m,{unit:"word"}))}}}),[a,f.onKeyDown]),onPaste:(0,i.useCallback)((e=>{a||!Gi(m,e.target)||zi(e,f.onPaste)||ti&&!(e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length)(e.nativeEvent)||(e.preventDefault(),Qi.insertData(m,e.clipboardData))}),[a,f.onPaste])}),i.createElement(_i,{decorations:C,node:m,renderElement:s,renderPlaceholder:l,renderLeaf:u,selection:m.selection}))))},go={isHistory:e=>Ae(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||Ar.isOperationList(e.redos[0]))&&(0===e.undos.length||Ar.isOperationList(e.undos[0]))},vo=(new WeakMap,new WeakMap),bo=new WeakMap,yo={isHistoryEditor:e=>go.isHistory(e.history)&&wr.isEditor(e),isMerging:e=>bo.get(e),isSaving:e=>vo.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var r=yo.isMerging(e);bo.set(e,!1),t(),bo.set(e,r)},withoutSaving(e,t){var r=yo.isSaving(e);vo.set(e,!1),t(),vo.set(e,r)}},wo=(e,t)=>"set_selection"===e.type||(!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!Mr.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!Mr.equals(e.path,t.path))),Eo=(e,t)=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties,Do=(e,t)=>!(!t||"set_selection"!==e.type||"set_selection"!==t.type),Co=e=>"set_selection"!==e.type;r(19985);function So(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Io=new WeakMap,xo=new WeakMap;class Oo{}class Ao extends Oo{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();var{offset:t,path:r}=e;this.offset=t,this.path=r}}class Mo extends Oo{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();var{offset:t,path:r}=e;this.offset=t,this.path=r}}var Bo=e=>xo.get(e);function Po(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}function No(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Po(Object(r),!0).forEach((function(t){So(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Po(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ko=new WeakSet,Fo=e=>{var t=[],r=e=>{if(null!=e){var n=t[t.length-1];if("string"==typeof e){var i={text:e};ko.add(i),e=i}if(Gr.isText(e)){var o=e;Gr.isText(n)&&ko.has(n)&&ko.has(o)&&Gr.equals(n,o,{loose:!0})?n.text+=o.text:t.push(o)}else if(mr.isElement(e))t.push(e);else{if(!(e instanceof Oo))throw new Error("Unexpected hyperscript child object: ".concat(e));var a=t[t.length-1];Gr.isText(a)||(r(""),a=t[t.length-1]),e instanceof Ao?((e,t)=>{var r=e.text.length;Io.set(e,[r,t])})(a,e):e instanceof Mo&&((e,t)=>{var r=e.text.length;xo.set(e,[r,t])})(a,e)}}};for(var n of e.flat(1/0))r(n);return t};function To(e,t,r){return No(No({},t),{},{children:Fo(r)})}function jo(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}function Lo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jo(Object(r),!0).forEach((function(t){So(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ro,_o={anchor:function(e,t,r){return new Ao(t)},cursor:function(e,t,r){return[new Ao(t),new Mo(t)]},editor:(Ro=Lt,(e,t,r)=>{var n,i=[];for(var o of r)Lr.isRange(o)?n=o:i.push(o);var a,s=Fo(i),u={},l=Ro();for(var[c,d]of(Object.assign(l,t),l.children=s,Ir.texts(l))){var p=(a=c,Io.get(a)),f=Bo(c);if(null!=p){var[m]=p;u.anchor={path:d,offset:m}}if(null!=f){var[h]=f;u.focus={path:d,offset:h}}}if(u.anchor&&!u.focus)throw new Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<anchor />`. For collapsed selections, use `<cursor />` instead.");if(!u.anchor&&u.focus)throw new Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<focus />`. For collapsed selections, use `<cursor />` instead.");return null!=n?l.selection=n:Lr.isRange(u)&&(l.selection=u),l}),element:To,focus:function(e,t,r){return new Mo(t)},fragment:function(e,t,r){return Fo(r)},selection:function(e,t,r){var n=r.find((e=>e instanceof Ao)),i=r.find((e=>e instanceof Mo));if(!n||null==n.offset||null==n.path)throw new Error("The <selection> hyperscript tag must have an <anchor> tag as a child with `path` and `offset` attributes defined.");if(!i||null==i.offset||null==i.path)throw new Error("The <selection> hyperscript tag must have a <focus> tag as a child with `path` and `offset` attributes defined.");return No({anchor:{offset:n.offset,path:n.path},focus:{offset:i.offset,path:i.path}},t)},text:function(e,t,r){var n=Fo(r);if(n.length>1)throw new Error("The <text> hyperscript tag must only contain a single node's worth of children.");var[i]=n;if(null==i&&(i={text:""}),!Gr.isText(i))throw new Error("\n The <text> hyperscript tag can only contain text content as children.");return ko.delete(i),Object.assign(i,t),i}},Zo=e=>function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];var a=e[t];if(!a)throw new Error("No hyperscript creator found for tag: <".concat(t,">"));null==r&&(r={}),Ae(r)||(i=[r].concat(i),r={});var s=a(t,r,i=i.filter((e=>Boolean(e))).flat());return s},Ho=e=>{var t={},r=function(r){var n=e[r];if("object"!=typeof n)throw new Error("Properties specified for a hyperscript shorthand should be an object, but for the custom element <".concat(r,"> tag you passed: ").concat(n));t[r]=(e,t,r)=>To(0,Lo(Lo({},n),t),r)};for(var n in e)r(n);return t},Wo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{elements:t={}}=e,r=Ho(t),n=Lo(Lo(Lo({},_o),r),e.creators),i=Zo(n);return i}(),Uo=r(43613),Go=r.n(Uo),qo={A:e=>({type:"link",url:e.getAttribute("href"),newTab:"_blank"===e.getAttribute("target"),noFollow:!(!e.getAttribute("rel")||!e.getAttribute("rel").includes("nofollow")),sponsored:!(!e.getAttribute("rel")||!e.getAttribute("rel").includes("sponsored"))}),P:()=>({type:"paragraph"}),"WPRM-CODE":e=>({type:"code"})},zo={EM:()=>({italic:!0}),I:()=>({italic:!0}),STRONG:()=>({bold:!0}),B:()=>({bold:!0}),U:()=>({underline:!0}),SUB:()=>({subscript:!0}),SUP:()=>({superscript:!0})},Vo=function e(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(3===t.nodeType)return t.textContent.replace(/\r?\n|\r/g,"");if(1!==t.nodeType)return null;if("BR"===t.nodeName)return"";var{nodeName:n}=t,i=t;"PRE"===n&&t.childNodes[0]&&"CODE"===t.childNodes[0].nodeName&&(i=t.childNodes[0]);var o=Array.from(i.childNodes).map((t=>e(t,r))).reduce(((e,t)=>e.concat(t)),[]);if("BODY"===t.nodeName)return Wo("fragment",{},o);if(r&&"P"===n)return o;if(qo[n]){var a=qo[n](t);"A"===n&&t.hasAttribute("data-eafl-id")&&(a={type:"affiliate-link",url:t.getAttribute("href"),id:parseInt(t.getAttribute("data-eafl-id"))});var s=Wo("element",a,o);return"WPRM-CODE"===n&&(s.children=[{text:t.innerHTML}]),0===s.children.length&&(s.children=[{text:""}]),s}if(zo[n]){var u=zo[n](t);return(o=o.map((e=>"string"==typeof e||Gr.isText(e)?e:e.hasOwnProperty("type")&&"link"===e.type&&(console.log("Information Lost",e),e.hasOwnProperty("children")&&1===e.children.length&&e.children[0].hasOwnProperty("text"))?e.children[0].text:""))).map((e=>Wo("text",u,e)))}return o},Jo=e=>{if(Gr.isText(e)){var t=Go()(e.text);return e.bold&&(t="<strong>".concat(t,"</strong>")),e.italic&&(t="<em>".concat(t,"</em>")),e.underline&&(t="<u>".concat(t,"</u>")),e.subscript&&(t="<sub>".concat(t,"</sub>")),e.superscript&&(t="<sup>".concat(t,"</sup>")),t}var r=e.children.map((e=>Jo(e))).join("");switch(e.type){case"paragraph":return"<p>".concat(r,"</p>");case"link":var n=[];return e.noFollow&&n.push("nofollow"),e.sponsored&&n.push("sponsored"),'<a href="'.concat(Go()(e.url),'"').concat(e.newTab?' target="_blank"':"").concat(n.length>0?' rel="'.concat(n.join(" "),'"'):"",">").concat(r,"</a>");case"affiliate-link":return'<a href="'.concat(Go()(e.url),'" data-eafl-id="').concat(Go()(e.id),'" class="eafl-link">').concat(r,"</a>");case"code":return"<wprm-code>".concat(r,"</wprm-code>");default:return r}},Yo=r(76044),Qo=e=>{var t=document.getElementById("wprm-admin-modal-toolbar-container");return t?n.createPortal(i.createElement("div",{className:"wprm-admin-modal-toolbar",onMouseDown:e=>{e.preventDefault()}},e.children),t):null},Xo=(r(33290),()=>{if(!window.hasOwnProperty("EAFL_Modal"))return null;var e=Ii(),[t]=wr.nodes(e,{match:e=>"affiliate-link"===e.type}),r=!!t;return i.createElement(i.Fragment,null,i.createElement("span",{className:"wprm-admin-modal-toolbar-button".concat(r?" wprm-admin-modal-toolbar-button-active":""),onMouseDown:n=>{n.preventDefault();var{selection:i}=e,o=i&&Lr.isCollapsed(i),a="";if(o||(window.getSelection?a=window.getSelection().toString():document.selection&&"Control"!=document.selection.type&&(a=document.selection.createRange().text)),r){var s=t[0];EAFL_Modal.open("edit",{linkId:s.id,saveCallback:r=>{s.url!==r.url&&((e,t,r,n)=>{var i=t[0],o=t[1],a={[r]:i[r]},s={[r]:n};e.apply({type:"set_node",path:o,properties:a,newProperties:s})})(e,t,"url",r.url)}})}else EAFL_Modal.open("insert",{insertCallback:(t,r)=>{r||(r="affiliate link");var n={type:"affiliate-link",children:o?[{text:r}]:[],url:t.url,id:t.id};o?un.insertNodes(e,n):(un.select(e,i),un.wrapNodes(e,n,{split:!0}),un.collapse(e,{edge:"end"}))},selectedText:a})}},i.createElement(Yo.Z,{type:"eafl-link",title:r?(0,u.S)("Edit Affiliate Link"):(0,u.S)("Add Affiliate Link")})),r&&i.createElement("span",{className:"wprm-admin-modal-toolbar-button wprm-admin-modal-toolbar-button-active",onMouseDown:t=>{t.preventDefault(),un.unwrapNodes(e,{match:e=>"affiliate-link"===e.type})}},i.createElement(Yo.Z,{type:"eafl-unlink",title:(0,u.S)("Remove Affiliate Link")})))}),Ko=e=>{var t=Ii(),r=((e,t)=>{var[r]=wr.nodes(e,{match:e=>e.type===t});return!!r})(t,e.type);return i.createElement(i.Fragment,null,r?i.createElement("span",{className:"wprm-admin-modal-toolbar-button wprm-admin-modal-toolbar-button-active",onMouseDown:r=>{r.preventDefault(),un.unwrapNodes(t,{match:t=>t.type===e.type})}},e.IconRemove()):i.createElement("span",{className:"wprm-admin-modal-toolbar-button",onMouseDown:r=>{r.preventDefault();var{selection:n}=t,i=n&&Lr.isCollapsed(n),o=!0;if("link"===e.type&&(o=window.prompt((0,u.S)("Enter the URL of the link:"))),"code"===e.type&&i&&(o=window.prompt((0,u.S)("HTML or Shortcode:"))),o){var a={type:e.type,children:i?[{text:""}]:[]};switch(e.type){case"link":a.url=o,i&&(a.children=[{text:o}]);break;case"code":i&&(a.children=[{text:o}]);break;default:i&&(a.children=[{text:e.type}])}i?un.insertNodes(t,a):(un.wrapNodes(t,a,{split:!0}),un.collapse(t,{edge:"end"}))}}},e.IconAdd()))},$o=e=>{var t=Ii();return i.createElement("span",{className:"wprm-admin-modal-toolbar-button",onMouseDown:r=>{r.preventDefault(),wr.insertText(t,e.character)}},i.createElement(c.Z,{content:e.title},i.createElement("span",{className:"wprm-admin-modal-toolbar-button-character"},e.character)))},ea=e=>{var t=Ii(),r=e.isMarkActive(t,e.type);return i.createElement("span",{className:"wprm-admin-modal-toolbar-button".concat(r?" wprm-admin-modal-toolbar-button-active":""),onMouseDown:r=>{r.preventDefault(),e.toggleMark(t,e.type)}},i.createElement(Yo.Z,{type:e.type,title:e.title}))};function ta(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}function ra(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ta(Object(r),!0).forEach((function(t){na(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ta(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function na(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ia=e=>{var t=Ii();return i.createElement("span",{className:"wprm-admin-modal-toolbar-button",onMouseDown:r=>{r.preventDefault();var n=e.hasOwnProperty("before")?e.before:"",i=e.hasOwnProperty("after")?e.after:"",{selection:o}=t;if(o&&Lr.isCollapsed(o))t.insertText("".concat(n).concat(i)),un.move(t,{distance:i.length,reverse:!0});else{var[a,s]=Lr.edges(o);JSON.stringify(a.path)===JSON.stringify(s.path)&&(s=ra(ra({},s),{},{offset:s.offset+n.length})),un.insertText(t,n,{at:a}),un.insertText(t,i,{at:s}),un.collapse(t,{edge:"end"})}}},e.Icon())},oa=e=>i.createElement("span",{className:"wprm-admin-modal-toolbar-spacer"}),aa=()=>{var e=Ii(),[t]=wr.nodes(e,{match:e=>"affiliate-link"===e.type});if(!t)return null;var r=t[0];return i.createElement("div",{className:"wprm-admin-modal-toolbar-link"},i.createElement(Yo.Z,{type:"eafl-link"}),i.createElement("span",null,"#",r.id),i.createElement(oa,null),i.createElement(Yo.Z,{type:"link"}),i.createElement("span",null,r.url))},sa=(e,t)=>{var r=t[0],n=window.prompt((0,u.S)("Enter the URL of the link:"),r.url);n?la(e,t,"url",n):""===n&&un.unwrapNodes(e,{match:e=>"link"===e.type})},ua=(e,t,r)=>{var n=t[0],i=!!n.hasOwnProperty(r)&&n[r];la(e,t,r,!i)},la=(e,t,r,n)=>{var i=t[0],o=t[1],a={[r]:i[r]},s={[r]:n};e.apply({type:"set_node",path:o,properties:a,newProperties:s})},ca=e=>{var t=Ii(),[r]=wr.nodes(t,{match:e=>"link"===e.type});if(!r)return null;var n=r[0];return i.createElement("div",{className:"wprm-admin-modal-toolbar-link"},i.createElement(Yo.Z,{type:"link",onClick:()=>sa(t,r)}),i.createElement("span",{className:"wprm-admin-modal-toolbar-link-value",onMouseDown:()=>sa(t,r)},n.url),i.createElement(oa,null),i.createElement(Yo.Z,{type:n.newTab?"checkbox-checked":"checkbox-empty",onClick:()=>ua(t,r,"newTab")}),i.createElement("span",{className:"wprm-admin-modal-toolbar-link-value",onMouseDown:()=>ua(t,r,"newTab")},(0,u.S)("Open in new tab")),i.createElement(oa,null),i.createElement(Yo.Z,{type:n.noFollow?"checkbox-checked":"checkbox-empty",onClick:()=>ua(t,r,"noFollow")}),i.createElement("span",{className:"wprm-admin-modal-toolbar-link-value",onMouseDown:()=>ua(t,r,"noFollow")},(0,u.S)("Use nofollow")),i.createElement(oa,null),i.createElement(Yo.Z,{type:n.sponsored?"checkbox-checked":"checkbox-empty",onClick:()=>ua(t,r,"sponsored")}),i.createElement("span",{className:"wprm-admin-modal-toolbar-link-value",onMouseDown:()=>ua(t,r,"sponsored")},(0,u.S)("Use sponsored")))};r(23528);class da extends i.Component{constructor(e){super(e),window.wprm_admin_modal_suggestions=window.wprm_admin_modal_suggestions||{},window.wprm_admin_modal_suggestions.hasOwnProperty(e.type)||(window.wprm_admin_modal_suggestions[e.type]={}),this.state={search:"",suggestions:[],loading:!1}}componentDidMount(){this.updateSuggestions(this.props.value)}componentDidUpdate(){this.props.value!==this.state.search&&this.updateSuggestions(this.props.value)}updateSuggestions(e){window.wprm_admin_modal_suggestions[this.props.type].hasOwnProperty(e)?this.setState({suggestions:window.wprm_admin_modal_suggestions[this.props.type][e],search:e}):(this.setState({loading:!0,search:e}),l.Z.modal.getSuggestions({type:this.props.type,search:e}).then((t=>{t&&(window.wprm_admin_modal_suggestions[this.props.type][e]=t.suggestions,this.setState({suggestions:t.suggestions,loading:!1}))})))}render(){return i.createElement("div",{className:"wprm-admin-modal-toolbar-suggest"},this.state.loading||0!==this.state.suggestions.length?i.createElement(i.Fragment,null,i.createElement("strong",null,(0,u.S)("Suggestions:")),this.state.loading?i.createElement(me.Z,null):i.createElement(i.Fragment,null,this.state.suggestions.map(((e,t)=>i.createElement("span",{className:"wprm-admin-modal-toolbar-suggestion",onMouseDown:t=>{t.preventDefault(),this.props.onSelect(e.name)},key:t},i.createElement("span",{className:"wprm-admin-modal-toolbar-suggestion-text"},e.name," (",e.count,")")))))):i.createElement("strong",null,(0,u.S)("No suggestions found.")))}}function pa(){return(pa=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}).apply(this,arguments)}var fa=e=>{var t,r="";if("ingredient"!==e.type&&"equipment"!==e.type||(t=Ii(),r=Jo(t)),!(0,i.useContext)(uo))return null;var n={visibility:"hidden"},o=!1,a=!1;if("none"===e.type)return null;switch(e.type){case"no-styling":o=!0;break;case"no-link":a=!0;break;case"equipment":case"ingredient":a=!0}return i.createElement(Qo,null,i.createElement(aa,null),i.createElement(ca,null),("ingredient"===e.type||"equipment"===e.type)&&i.createElement(da,{value:r,onSelect:e=>{un.deselect(t),un.select(t,{path:[0,0],offset:0}),un.move(t,{unit:"line",edge:"end"}),un.delete(t),wr.insertText(t,e)},type:e.type}),i.createElement("div",{className:"wprm-admin-modal-toolbar-buttons"},i.createElement("span",{style:o?n:null},i.createElement(ea,pa({},e,{type:"bold",title:(0,u.S)("Bold")})),i.createElement(ea,pa({},e,{type:"italic",title:(0,u.S)("Italic")})),i.createElement(ea,pa({},e,{type:"underline",title:(0,u.S)("Underline")})),i.createElement(oa,null),i.createElement(ea,pa({},e,{type:"subscript",title:(0,u.S)("Subscript")})),i.createElement(ea,pa({},e,{type:"superscript",title:(0,u.S)("Superscript")}))),i.createElement(oa,null),i.createElement("span",{style:a?n:null},i.createElement(Ko,{type:"link",IconAdd:()=>i.createElement(Yo.Z,{type:"link",title:(0,u.S)("Add Link")}),IconRemove:()=>i.createElement(Yo.Z,{type:"unlink",title:(0,u.S)("Remove Link")})}),i.createElement(Xo,null)),i.createElement(oa,null),i.createElement(Ko,{type:"code",IconAdd:()=>i.createElement(Yo.Z,{type:"code",title:(0,u.S)("Add HTML or Shortcode")}),IconRemove:()=>i.createElement(Yo.Z,{type:"code",title:(0,u.S)("Remove HTML or Shortcode")})}),"roundup"!==e.type&&i.createElement(i.Fragment,null,i.createElement(ia,{before:"[adjustable]",after:"[/adjustable]",Icon:()=>i.createElement(Yo.Z,{type:"adjustable",title:(0,u.S)("Add Adjustable Shortcode")})}),i.createElement(ia,{before:"[timer minutes=0]",after:"[/timer]",Icon:()=>i.createElement(Yo.Z,{type:"clock",title:(0,u.S)("Add Timer Shortcode")})}),i.createElement(oa,null),i.createElement($o,{character:"½"}),i.createElement($o,{character:"⅓"}),i.createElement($o,{character:"⅔"}),i.createElement($o,{character:"¼"}),i.createElement($o,{character:"¾"}),i.createElement($o,{character:"⅕"}),i.createElement($o,{character:"⅖"}),i.createElement($o,{character:"⅗"}),i.createElement($o,{character:"⅘"}),i.createElement($o,{character:"⅙"}),i.createElement($o,{character:"⅚"}),i.createElement($o,{character:"⅐"}),i.createElement($o,{character:"⅛"}),i.createElement($o,{character:"⅜"}),i.createElement($o,{character:"⅝"}),i.createElement($o,{character:"⅞"}),i.createElement(oa,null),i.createElement($o,{character:"°"}),i.createElement($o,{character:"Ø"}))))};function ma(){return(ma=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}).apply(this,arguments)}var ha=e=>{var{attributes:t,children:r,element:n}=e;switch(n.type){case"link":var o=[];return n.noFollow&&o.push("nofollow"),n.sponsored&&o.push("sponsored"),i.createElement("a",ma({href:n.url,target:n.newTab?"_blank":null,rel:o.length>0?o.join(" "):null},t),r);case"affiliate-link":return i.createElement("a",ma({href:n.url,"data-eafl-id":n.id,className:"eafl-link"},t),r);case"code":return i.createElement("wprm-code",null,r);default:return i.createElement("p",t,r)}},ga=e=>{var{attributes:t,children:r,leaf:n}=e;return n.bold&&(r=i.createElement("strong",null,r)),n.italic&&(r=i.createElement("em",null,r)),n.underline&&(r=i.createElement("u",null,r)),n.subscript&&(r=i.createElement("sub",null,r)),n.superscript&&(r=i.createElement("sup",null,r)),i.createElement("span",t,r)},va={"mod+b":"bold","mod+i":"italic","mod+u":"underline"},ba=["link","affiliate-link","code"],ya=e=>{var{isInline:t}=e;return e.isInline=e=>!!ba.includes(e.type)||t(e),e},wa=(e,t)=>{var{insertData:r}=e;return e.insertData=n=>{var i=n.getData("text/html");if(i){var o=(new DOMParser).parseFromString(i,"text/html"),a=Vo(o.body,t.singleLine);un.insertFragment(e,a)}else r(n)},e},Ea=e=>{for(var t=(new DOMParser).parseFromString(e,"text/html"),r=Vo(t.body),n=0;n<r.length;n++){var i=r[n];i.hasOwnProperty("text")&&(r[n]={type:"paragraph",children:[i]})}return r},Da=(e,t)=>{Ca(e,t)?wr.removeMark(e,t):wr.addMark(e,t,!0)},Ca=(e,t)=>{var r=wr.marks(e);return!!r&&!0===r[t]},Sa=e=>{if(Ie())return e.singleLine?i.createElement("div",{className:"wprm-admin-modal-field-richtext-legacy"},i.createElement(g.Z,e)):i.createElement("div",{className:"wprm-admin-modal-field-richtext-legacy"},i.createElement(ie.Z,e));var t=(0,i.useMemo)((()=>wa(ya((e=>{var t=e,{apply:r}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:r}=e;if(r.length>0){var n=r[r.length-1];yo.withoutSaving(t,(()=>{wr.withoutNormalizing(t,(()=>{for(var e of n)t.apply(e)}))})),e.redos.pop(),e.undos.push(n)}},t.undo=()=>{var{history:e}=t,{undos:r}=e;if(r.length>0){var n=r[r.length-1];yo.withoutSaving(t,(()=>{wr.withoutNormalizing(t,(()=>{var e=n.map(Ar.inverse).reverse();for(var r of e)t.apply(r)}))})),e.redos.push(n),e.undos.pop()}},t.apply=e=>{var{operations:n,history:i}=t,{undos:o}=i,a=o[o.length-1],s=a&&a[a.length-1],u=Do(e,s),l=yo.isSaving(t),c=yo.isMerging(t);if(null==l&&(l=Eo(e)),l){if(null==c&&(c=null!=a&&(0!==n.length||wo(e,s)||u)),a&&c)u&&a.pop(),a.push(e);else{var d=[e];o.push(d)}for(;o.length>100;)o.shift();Co(e)&&(i.redos=[])}r(e)},t})(mo(Lt()))),e)),[]),r=e.value;e.value&&e.singleLine&&(r=(r=(r=""+e.value).replace("<p>","")).replace("</p>",""),r="<p>".concat(r,"</p>"));var n,o=[{type:"paragraph",children:[{text:""}]}];try{n=e.value?Ea(r):o}catch(u){alert("Error loading one of the rich text fields. Some information may be lost. Please check the summary, equipment, ingredients and instructions before saving. Make sure your browser is updated to the latest version if you keep getting this message."),console.log("Text Value",r),console.log("FieldRichText Error",u),n=o}var[a,s]=(0,i.useState)(n);return i.createElement(co,{spellCheck:!0,editor:t,value:a,onChange:r=>{s(r);var n=Jo(t);e.singleLine&&(n=n.replace(/^<p>(.*)<\/p>$/gm,"$1")),e.onChange(n)}},i.createElement(fa,{type:e.toolbar?e.toolbar:"all",isMarkActive:Ca,toggleMark:Da}),i.createElement(ho,{className:"wprm-admin-modal-field-richtext".concat(e.className?" ".concat(e.className):"").concat(e.singleLine?" wprm-admin-modal-field-richtext-singleline":""),placeholder:e.placeholder,renderElement:(0,i.useCallback)((e=>i.createElement(ha,e)),[]),renderLeaf:(0,i.useCallback)((e=>i.createElement(ga,e)),[]),onFocus:()=>{"Firefox"===Se().getParser(window.navigator.userAgent).parsedResult.browser.name&&""!==e.value&&"<p></p>"!==e.value||(un.deselect(t),un.select(t,{anchor:wr.start(t,[]),focus:wr.end(t,[])}),un.collapse(t,{edge:"end"}))},onKeyDown:r=>{if(e.singleLine&&(0,Dn.ZP)("enter",r))r.preventDefault();else{for(var n in va){if((0,Dn.ZP)(n,r))r.preventDefault(),Da(t,va[n])}e.onKeyDown&&e.onKeyDown(r)}},tabIndex:0}))};class Ia extends i.Component{constructor(e){super(e),this.state={errors:0}}componentDidCatch(e,t){this.setState({errors:this.state.errors+1})}render(){return i.createElement(Sa,this.props)}}function xa(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}function Oa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xa(Object(r),!0).forEach((function(t){Aa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Aa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ma=e=>{var t=Oa({shape:"round",unit:"inch",diameter:0,width:0,length:0,height:0},e.servings);return i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings"},i.createElement(xe,{name:"advanced-servings",value:e.enabled,onChange:t=>{e.onChangeEnabled(t)}}),e.enabled&&i.createElement(i.Fragment,null,!wprm_admin.addons.premium&&i.createElement("p",null,(0,u.S)("This feature is only available in")," ",i.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium"),". ",(0,u.S)("You can already fill in the values, but the adjustable changer will not show up yet.")),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details"},i.createElement(M.Z,{options:[{value:"round",label:(0,u.S)("Round")},{value:"rectangle",label:(0,u.S)("Rectangle")}],value:t.shape,onChange:r=>{e.onChangeServings(Oa(Oa({},t),{},{shape:r}))},width:147}),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details-text"},(0,u.S)("measured in")),i.createElement(M.Z,{options:[{value:"inch",label:(0,u.S)("inch")},{value:"cm",label:(0,u.S)("cm")}],value:t.unit,onChange:r=>{e.onChangeServings(Oa(Oa({},t),{},{unit:r}))},width:100})),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details"},"round"===t.shape?i.createElement(i.Fragment,null,i.createElement(g.Z,{placeholder:"6",type:"number",min:"0",step:"any",value:0!=t.diameter?t.diameter:"",onChange:r=>{e.onChangeServings(Oa(Oa({},t),{},{diameter:r}))}}),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details-text"},t.unit," ",(0,u.S)("diameter"))):i.createElement(i.Fragment,null,i.createElement(g.Z,{placeholder:"6",type:"number",min:"0",step:"any",value:0!=t.width?t.width:"",onChange:r=>{e.onChangeServings(Oa(Oa({},t),{},{width:r}))}}),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details-text"},"x"),i.createElement(g.Z,{placeholder:"6",type:"number",min:"0",step:"any",value:0!=t.length?t.length:"",onChange:r=>{e.onChangeServings(Oa(Oa({},t),{},{length:r}))}}),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details-text"},t.unit," ",(0,u.S)("area")))),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details"},i.createElement(g.Z,{placeholder:"",type:"number",min:"0",step:"any",value:0!=t.height?t.height:"",onChange:r=>{e.onChangeServings(Oa(Oa({},t),{},{height:r}))}}),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details-text"},t.unit," ",(0,u.S)("height")," (",(0,u.S)("optional"),")"))))},Ba=e=>{var t=wprm_admin_modal.options.author.find((t=>t.value===e.author.display));return i.createElement(i.Fragment,null,Ie()&&i.createElement(A.Z,{id:"warning",label:(0,u.S)("Warning!")},i.createElement("p",null,"Looks like you're using an older browser like ",i.createElement("strong",null,"Legacy Microsoft Edge")," or ",i.createElement("strong",null,"Internet Explorer")," which does not support all of our advanced features."),i.createElement("p",null,"We highly recommend using ",i.createElement("a",{href:"https://www.google.com/chrome/",target:"_blank"},"Google Chrome"),", ",i.createElement("a",{href:"https://www.mozilla.org/en-US/firefox/new/",target:"_blank"},"Firefox"),", ",i.createElement("a",{href:"https://support.apple.com/downloads/safari",target:"_blank"},"Safari")," or ",i.createElement("a",{href:"https://www.microsoft.com/en-us/edge",target:"_blank"},"Microsoft Edge"),".")),i.createElement(A.Z,{id:"type",label:(0,u.S)("Recipe Type"),help:(0,u.S)("Make sure to pick the right recipe type to ensure we include the correct metadata.")},i.createElement(v.Z,{id:"type",options:[{value:"food",label:(0,u.S)("Food Recipe")},{value:"howto",label:(0,u.S)("How-to Instructions")},{value:"other",label:(0,u.S)("Other (no metadata)")}],value:e.type,onChange:t=>{e.onRecipeChange({type:t})}})),i.createElement(A.Z,{id:"name",label:(0,u.S)("Name")},i.createElement(g.Z,{name:"recipe-name",placeholder:(0,u.S)("Recipe Name"),value:e.name,onChange:t=>{e.onRecipeChange({name:t})}})),i.createElement(A.Z,{id:"summary",label:"howto"===e.type?(0,u.S)("Description"):(0,u.S)("Summary")},i.createElement(Ia,{placeholder:(0,u.S)("Short description of this recipe..."),value:e.summary,onChange:t=>{e.onRecipeChange({summary:t})}})),t&&"same"===t.actual?null:i.createElement(A.Z,{id:"author",label:(0,u.S)("Author")},i.createElement(M.Z,{options:wprm_admin_modal.options.author.filter((e=>"same"!==e.actual)),value:e.author.display,onChange:t=>{e.onRecipeChange({author_display:t})},width:300})),t&&"custom"===t.actual&&i.createElement(i.Fragment,null,i.createElement(A.Z,{id:"author-name",label:(0,u.S)("Name")},i.createElement(g.Z,{name:"author-name",placeholder:(0,u.S)("Author Name"),value:e.author.name,onChange:t=>{e.onRecipeChange({author_name:t})}})),i.createElement(A.Z,{id:"author-link",label:(0,u.S)("Link")},i.createElement(g.Z,{name:"author-link",placeholder:"https://bootstrapped.ventures",type:"url",value:e.author.link,onChange:t=>{e.onRecipeChange({author_link:t})}}))),i.createElement(A.Z,{id:"servings",label:"howto"===e.type?(0,u.S)("Yield"):(0,u.S)("Servings")},i.createElement(g.Z,{placeholder:"4",type:"number",min:"0",step:"any",value:0!=e.servings.amount?e.servings.amount:"",onChange:t=>{e.onRecipeChange({servings:t})}}),i.createElement(g.Z,{name:"servings-unit",placeholder:"howto"===e.type?(0,u.S)("candles"):(0,u.S)("people"),value:e.servings.unit,onChange:t=>{e.onRecipeChange({servings_unit:t})}})),i.createElement(A.Z,{id:"advanced-servings",label:(0,u.S)("Advanced Servings"),help:(0,u.S)("Enable to have an advanced servings calculator, useful for different baking forms")},i.createElement(Ma,{enabled:e.servings_advanced_enabled,onChangeEnabled:t=>{e.onRecipeChange({servings_advanced_enabled:t})},servings:e.servings_advanced,onChangeServings:t=>{e.onRecipeChange({servings_advanced:t})}})),i.createElement(A.Z,{id:"cost",label:(0,u.S)("Estimated Cost"),help:"howto"===e.type?(0,u.S)("The estimated cost of the materials consumed when performing instructions. Used in the metadata."):null},i.createElement(g.Z,{name:"cost",placeholder:"$5",value:e.cost,onChange:t=>{e.onRecipeChange({cost:t})}})),wprm_admin_modal.integrations.my_emissions_checkbox&&i.createElement(A.Z,{id:"my-emissions",label:(0,u.S)("My Emissions Label")},i.createElement(xe,{name:"my-emissions",value:e.my_emissions,onChange:t=>{e.onRecipeChange({my_emissions:t})}})))},Pa=e=>{var t=parseInt(e.value.time),r=0,n=0,o=0;return t>0&&(r=Math.floor(t/24/60),n=Math.floor(t/60%24),o=Math.floor(t%60)),i.createElement("div",{className:"wprm-admin-modal-field-time"},i.createElement("div",{className:"wprm-admin-modal-field-time-parts"},i.createElement("input",{type:"number",value:0<r?""+r:"",onChange:t=>{var r=parseInt(t.target.value);r=isNaN(r)?0:r;var i=1440*Math.max(0,r)+60*n+o;e.onChange(i)}})," ",(0,u.S)("days"),i.createElement("input",{type:"number",value:0<n?""+n:"",onChange:t=>{var n=parseInt(t.target.value);n=isNaN(n)?0:n;var i=1440*r+60*Math.max(0,n)+o;e.onChange(i)}})," ",(0,u.S)("hours"),i.createElement("input",{type:"number",value:0<o?""+o:e.value.zero?"0":"",onChange:t=>{var i=parseInt(t.target.value);i=isNaN(i)?0:i;var o=1440*r+60*n+Math.max(0,i);e.onChange(o)}})," ",(0,u.S)("minutes")),0===t&&e.hasOwnProperty("onChangeZero")&&i.createElement("div",{className:"wprm-admin-modal-field-time-none"},i.createElement("input",{id:"wprm-admin-modal-field-time-none-".concat(e.id),type:"checkbox",checked:e.value.zero,onChange:t=>{e.onChangeZero(t.target.checked)}})," ",i.createElement("label",{htmlFor:"wprm-admin-modal-field-time-none-".concat(e.id)},(0,u.S)('Show "0" in template'))))},Na=e=>{var t=Math.max(0,parseInt(e.prep.time))+Math.max(0,parseInt(e.cook.time))+Math.max(0,parseInt(e.custom.time));return i.createElement(i.Fragment,null,i.createElement(A.Z,{id:"prep-time",label:(0,u.S)("Prep Time")},i.createElement(Pa,{id:"prep",value:e.prep,onChange:t=>{e.onRecipeChange({prep_time:t})},onChangeZero:t=>{e.onRecipeChange({prep_time_zero:t})}})),i.createElement(A.Z,{id:"cook-time",label:"howto"===e.type?(0,u.S)("Active Time"):(0,u.S)("Cook Time")},i.createElement(Pa,{id:"cook",value:e.cook,onChange:t=>{e.onRecipeChange({cook_time:t})},onChangeZero:t=>{e.onRecipeChange({cook_time_zero:t})}})),i.createElement(A.Z,{id:"custom-time-label",label:(0,u.S)("Custom Time Label"),help:(0,u.S)("Optional extra time field that you can label yourself. Examples: Resting Time, Baking Time")},i.createElement(g.Z,{name:"custom-time-label",placeholder:(0,u.S)("Resting Time"),value:e.customLabel,onChange:t=>{e.onRecipeChange({custom_time_label:t})}})),i.createElement(A.Z,{id:"custom-time",label:(0,u.S)("Custom Time")},i.createElement(Pa,{id:"custom",value:e.custom,onChange:t=>{e.onRecipeChange({custom_time:t})},onChangeZero:t=>{e.onRecipeChange({custom_time_zero:t})}})),i.createElement(A.Z,{id:"total-time",label:(0,u.S)("Total Time")},i.createElement(Pa,{id:"total",value:e.total,onChange:t=>{e.onRecipeChange({total_time:t})}}),t!==parseInt(e.total.time)&&i.createElement("div",null,i.createElement("a",{href:"#",onClick:r=>{r.preventDefault(),e.onRecipeChange({total_time:t})}},(0,u.S)("Recalculate Total Time")))))};function ka(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}function Fa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Ta extends i.Component{shouldComponentUpdate(e){return JSON.stringify(this.props.tags)!==JSON.stringify(e.tags)}render(){var e=Object.keys(wprm_admin_modal.categories);return i.createElement(i.Fragment,null,e.map(((e,t)=>{var r=wprm_admin_modal.categories[e],n=this.props.tags.hasOwnProperty(e)?this.props.tags[e]:[];return i.createElement(A.Z,{id:e,label:r.label,help:r.hasOwnProperty("help")?r.help:null,key:t},i.createElement(J,{id:e,value:n,onChange:t=>{var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ka(Object(r),!0).forEach((function(t){Fa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ka(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},this.props.tags);r[e]=t,this.props.onRecipeChange({tags:r})},creatable:r.creatable,width:"450px"}))})))}}var ja=e=>e.modes?i.createElement("div",{className:"wprm-admin-modal-field-edit-mode-container"},Object.keys(e.modes).map(((t,r)=>{var n=e.modes[t],o=null;return n.hasOwnProperty("help")&&(o=i.createElement(Yo.Z,{type:"question",title:n.help,className:"wprm-admin-icon-help"})),i.createElement("a",{href:"#",className:"wprm-admin-modal-field-edit-mode".concat(t===e.mode?" wprm-admin-modal-field-edit-mode-selected":""),onClick:r=>{r.preventDefault(),e.onModeChange(t)},key:r},n.label,o)}))):null,La=(r(45550),r(34916));function Ra(){return(Ra=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}).apply(this,arguments)}var _a=(0,Dn.TB)("tab"),Za=e=>i.createElement("div",Ra({className:"wprm-admin-modal-field-ingredient-handle"},e.dragHandleProps,{tabIndex:"-1"}),i.createElement(Yo.Z,{type:"drag"}));class Ha extends i.Component{shouldComponentUpdate(e){return JSON.stringify(this.props)!==JSON.stringify(e)}render(){return i.createElement(La._l,{draggableId:"ingredient-".concat(this.props.uid),index:this.props.index},((e,t)=>"group"===this.props.type?((e,t)=>i.createElement("div",Ra({className:"wprm-admin-modal-field-ingredient-group",ref:t.innerRef},t.draggableProps),Za(t),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-group-name-container"},i.createElement(Ia,{singleLine:!0,className:"wprm-admin-modal-field-ingredient-group-name",toolbar:"no-styling",value:e.name,placeholder:"howto"===e.recipeType?(0,u.S)("Material Group Header"):(0,u.S)("Ingredient Group Header"),onChange:t=>e.onChangeName(t),onKeyDown:t=>{_a(t)&&e.onTab(t)}})),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-after-container"},i.createElement("div",{className:"wprm-admin-modal-field-ingredient-after-container-icons"},i.createElement(Yo.Z,{type:"trash",onClick:e.onDelete}),i.createElement(Yo.Z,{type:"plus",title:(0,u.S)("Insert After"),onClick:e.onAdd})))))(this.props,e):((e,t)=>{var r=e.amount,n=e.unit;return i.createElement("div",Ra({className:"wprm-admin-modal-field-ingredient",ref:t.innerRef},t.draggableProps),Za(t),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-text-container"},i.createElement(Ia,{singleLine:!0,toolbar:wprm_admin.addons.premium?"all":"no-link",className:"wprm-admin-modal-field-ingredient-amount",value:r,placeholder:"1",onChange:t=>{e.onChangeIngredient({amount:t})}}),i.createElement(Ia,{singleLine:!0,toolbar:wprm_admin.addons.premium?"all":"no-link",value:n,placeholder:"howto"===e.recipeType?(0,u.S)("piece"):(0,u.S)("tbsp"),onChange:t=>{e.onChangeIngredient({unit:t})}}),i.createElement(Ia,{singleLine:!0,toolbar:"ingredient",value:e.name,placeholder:"howto"===e.recipeType?(0,u.S)("paper"):(0,u.S)("olive oil"),onChange:t=>{e.onChangeIngredient({name:t,globalLink:!1})}}),i.createElement(Ia,{singleLine:!0,toolbar:wprm_admin.addons.premium?"all":"no-link",value:e.notes,placeholder:"howto"===e.recipeType?(0,u.S)("any color"):(0,u.S)("extra virgin"),onChange:t=>e.onChangeIngredient({notes:t}),onKeyDown:t=>{_a(t)&&e.onTab(t)}})),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-after-container"},i.createElement("div",{className:"wprm-admin-modal-field-ingredient-after-container-icons"},i.createElement(Yo.Z,{type:"trash",onClick:e.onDelete}),i.createElement(Yo.Z,{type:"plus",title:(0,u.S)("Insert After"),onClick:e.onAdd}))))})(this.props,e)))}}function Wa(){return(Wa=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}).apply(this,arguments)}function Ua(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}function Ga(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ua(Object(r),!0).forEach((function(t){qa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ua(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function qa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class za extends i.Component{constructor(e){super(e),this.container=i.createRef(),this.lastAddedIndex=0}shouldComponentUpdate(e,t){return this.props.type!==e.type||JSON.stringify(this.props.ingredients)!==JSON.stringify(e.ingredients)}componentDidUpdate(e){if(this.props.ingredients.length>e.ingredients.length){var t=this.container.current.querySelectorAll(".wprm-admin-modal-field-ingredient-group-name, .wprm-admin-modal-field-ingredient-amount");t.length&&t[this.lastAddedIndex]&&t[this.lastAddedIndex].focus()}}onDragEnd(e){if(e.destination){var t=JSON.parse(JSON.stringify(this.props.ingredients)),r=e.source.index,n=e.destination.index,i=t.splice(r,1)[0];t.splice(n,0,i),this.props.onRecipeChange({ingredients_flat:t})}}addField(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=JSON.parse(JSON.stringify(this.props.ingredients));t="group"===e?{type:"group",name:""}:{type:"ingredient",amount:"",unit:"",name:"",notes:""};var i=Math.max.apply(Math,n.map((function(e){return e.uid})));i=i<0?-1:i,t.uid=i+1,!1===r?(n.push(t),this.lastAddedIndex=n.length-1):(n.splice(r+1,0,t),this.lastAddedIndex=r+1),this.props.onRecipeChange({ingredients_flat:n})}render(){return i.createElement("div",{className:"wprm-admin-modal-field-ingredient-edit-container",ref:this.container},i.createElement(La.Z5,{onDragEnd:this.onDragEnd.bind(this)},i.createElement(La.bK,{droppableId:"wprm-ingredients"},((e,t)=>i.createElement("div",Wa({className:"".concat(t.isDraggingOver?" wprm-admin-modal-field-ingredient-container-draggingover":""),ref:e.innerRef},e.droppableProps),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-header-container"},i.createElement("div",{className:"wprm-admin-modal-field-ingredient-header"},(0,u.S)("Amount")),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-header"},(0,u.S)("Unit")),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-header"},(0,u.S)("Name")," ",i.createElement("span",{className:"wprm-admin-modal-field-ingredient-header-required"},"(",(0,u.S)("required"),")")),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-header"},(0,u.S)("Notes"))),this.props.ingredients.map(((e,t)=>i.createElement(Ha,Wa({},e,{recipeType:this.props.type,index:t,key:"ingredient-".concat(e.uid),onTab:e=>{t===this.props.ingredients.length-1&&(e.preventDefault(),setTimeout((()=>{this.addField("ingredient")})))},onChangeName:e=>{var r=JSON.parse(JSON.stringify(this.props.ingredients));r[t].name=e,this.props.onRecipeChange({ingredients_flat:r})},onChangeIngredient:e=>{var r=JSON.parse(JSON.stringify(this.props.ingredients));r[t]=Ga(Ga({},r[t]),e),this.props.onRecipeChange({ingredients_flat:r})},onDelete:()=>{var e=JSON.parse(JSON.stringify(this.props.ingredients)),r=JSON.parse(JSON.stringify(this.props.instructions)),n=e.splice(t,1);n[0]&&n[0].hasOwnProperty("uid")&&function(){var e=n[0].uid;for(var t of r)t.hasOwnProperty("ingredients")&&(t.ingredients=t.ingredients.filter((t=>t!==e)))}(),this.props.onRecipeChange({ingredients_flat:e,instructions_flat:r})},onAdd:()=>{this.addField("ingredient",t)}})))),e.placeholder)))),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-actions"},i.createElement("button",{className:"button",onClick:e=>{e.preventDefault(),this.addField("ingredient")}},"howto"===this.props.type?(0,u.S)("Add Material"):(0,u.S)("Add Ingredient")),i.createElement("button",{className:"button",onClick:e=>{e.preventDefault(),this.addField("group")}},"howto"===this.props.type?(0,u.S)("Add Material Group"):(0,u.S)("Add Ingredient Group")),i.createElement("p",null,(0,u.S)("Tip: use the TAB key to move from field to field and easily add ingredients."))))}}var Va=r(5831),Ja=(r(29897),r(38328)),Ya=r.n(Ja),Qa=e=>{var{ingredient:t,isConverting:r,method:n}=e,o=t.converted?t.converted:{2:{amount:"",unit:""}},a=(e=>{var t=[{label:(0,u.S)("Convert"),options:[{value:"none",label:(0,u.S)("Keep Unit")},{value:"automatic",label:(0,u.S)("Automatically")}]}],r=[];wprm_admin_modal.unit_conversion.systems[e].weight.map((e=>{r.push({value:e,label:wprm_admin_modal.unit_conversion.units.data[e].label})})),0<r.length&&t.push({label:(0,u.S)("Weight Units"),options:r});var n=[];return wprm_admin_modal.unit_conversion.systems[e].volume.map((e=>{n.push({value:e,label:wprm_admin_modal.unit_conversion.units.data[e].label})})),0<n.length&&t.push({label:(0,u.S)("Volume Units"),options:n}),t})(e.convertedUnitSystem),s="".concat(t.amount," ").concat(t.unit).trim();return s="".concat(s," ").concat(t.name).trim(),t.notes&&(s+=" (".concat(t.notes,")")),i.createElement("tr",null,i.createElement("td",null,i.createElement(M.Z,{isDisabled:r,options:a,placeholder:(0,u.S)("Convert..."),value:n,onChange:t=>{e.onMethodChange(t)},width:150})),i.createElement("td",{style:"failed"===n?{color:"darkred"}:null},r?i.createElement(me.Z,null):i.createElement("div",{className:"wprm-admin-modal-field-ingredient-unit-conversion-fields"},i.createElement(Ia,{singleLine:!0,value:""+o[2].amount,onChange:t=>{var r=o;r[2].amount=t,e.onConvertedChange(r)}}),i.createElement(Ia,{singleLine:!0,value:""+o[2].unit,onChange:t=>{var r=o;r[2].unit=t,e.onConvertedChange(r)}}))),i.createElement("td",null,Ya()(s)))};class Xa extends i.Component{constructor(e){super(e),this.state={isConverting:{},methods:{}},this.convert=this.convert.bind(this),this.convertAll=this.convertAll.bind(this)}convertAll(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",r=[],n=0;n<this.props.ingredients.length;n++){"ingredient"===this.props.ingredients[n].type&&r.push(n)}r&&this.convert(r,e,t)}convert(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default",n=this.state.isConverting,i=this.state.methods;if("none"===t){var o=JSON.parse(JSON.stringify(this.props.ingredients));for(var a of e){var s=this.props.ingredients[a];s.hasOwnProperty("converted")||(o[a].converted={2:{}}),o[a].converted[2].amount=s.amount,o[a].converted[2].unit=s.unit,n[a]=!1,i[a]=t}this.props.onIngredientsChange(o)}else{var u={};for(var c of e){var d=this.props.ingredients[c];u[c]={index:c,amount:(0,Va.L)(d.amount),unit:d.unit,name:d.name},"automatic"!==t&&(u[c].units_to=[t]),n[c]=!0,i[c]=t}l.Z.unitConversion.get(u,r).then((e=>{if(e&&e.conversions){var r=JSON.parse(JSON.stringify(this.props.ingredients)),n=this.state.isConverting,i=this.state.methods;for(var o in e.conversions){var a=this.props.ingredients[parseInt(o)],s=e.conversions[o];a.hasOwnProperty("converted")||(r[o].converted={2:{}}),"failed"===s.type?(r[o].converted[2].amount=a.amount,r[o].converted[2].unit=a.unit,i[o]=s.type):(r[o].converted[2].amount=(0,Va.o)(s.amount,wprmp_admin.settings.unit_conversion_round_to_decimals,!0),r[o].converted[2].unit=s.alias,i[o]="none"===s.type?"none":t),n[o]=!1}this.props.onIngredientsChange(r),this.setState({isConverting:n,methods:i})}}))}this.setState({isConverting:n,methods:i})}render(){if(!wprm_admin.addons.pro)return i.createElement("p",null,(0,u.S)("This feature is only available in")," ",i.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Pro Bundle"),".");if(!wprm_admin_modal.unit_conversion)return i.createElement("p",null,(0,u.S)("You need to set up this feature on the WP Recipe Maker > Settings > Unit Conversion page first."));if(!this.props.ingredients.filter((e=>"ingredient"===e.type&&e.name)).length)return i.createElement("p",null,(0,u.S)("No ingredients set for this recipe."));var e="default"===this.props.system?wprm_admin_modal.unit_conversion.default_system:this.props.system;1!==(e=parseInt(e))&&2!==e&&(e=1);var t=2===e?1:2;return i.createElement("div",{className:"wprm-admin-modal-field-ingredient-unit-conversion-container"},i.createElement("div",{className:"wprm-admin-modal-field-ingredient-unit-conversion-system"},i.createElement("label",null,(0,u.S)("Original Unit System for this recipe"),":"),i.createElement(M.Z,{options:[{value:"default",label:"".concat((0,u.S)("Use Default")," (").concat(wprm_admin_modal.unit_conversion.systems[parseInt(wprm_admin_modal.unit_conversion.default_system)].label,")")},{value:"1",label:"".concat((0,u.S)("First Unit System")," (").concat(wprm_admin_modal.unit_conversion.systems[1].label,")")},{value:"2",label:"".concat((0,u.S)("Second Unit System")," (").concat(wprm_admin_modal.unit_conversion.systems[2].label,")")}],value:this.props.system,onChange:e=>{this.props.onSystemChange(e)},width:255})),i.createElement("table",{className:"wprm-admin-modal-field-ingredient-unit-conversion"},i.createElement("thead",null,i.createElement("tr",null,i.createElement("th",null,(0,u.S)("Conversion")),i.createElement("th",null,(0,u.S)("Converted")," (",wprm_admin_modal.unit_conversion.systems[t].label,")"),i.createElement("th",null,(0,u.S)("Original")," (",wprm_admin_modal.unit_conversion.systems[e].label,")"))),i.createElement("tbody",null,this.props.ingredients.map(((e,r)=>"group"!==e.type&&e.name?i.createElement(Qa,{ingredient:e,isConverting:this.state.isConverting[r],method:this.state.methods[r],onMethodChange:e=>{this.state.isConverting[r]||this.convert([r],e,t)},onConvertedChange:e=>{var t=JSON.parse(JSON.stringify(this.props.ingredients));t[r].converted=e,this.props.onIngredientsChange(t)},convertedUnitSystem:t,key:r}):null)))),i.createElement("button",{className:"button button-primary",onClick:e=>{e.preventDefault(),this.convertAll("automatic",t)}},(0,u.S)("Convert All Automatically")))}}var{hooks:Ka}=WPRecipeMaker["wp-recipe-maker/dist/shared"];class $a extends i.Component{constructor(e){super(e),this.state={mode:"edit"}}shouldComponentUpdate(e,t){return this.state.mode!==t.mode||this.props.type!==e.type||this.props.linkType!==e.linkType||this.props.system!==e.system||JSON.stringify(this.props.ingredients)!==JSON.stringify(e.ingredients)}render(){var e={edit:{label:"howto"===this.props.type?(0,u.S)("Edit Materials"):(0,u.S)("Edit Ingredients"),block:za},"ingredient-links":{label:"howto"===this.props.type?(0,u.S)("Material Links"):(0,u.S)("Ingredient Links"),block:()=>i.createElement("p",null,(0,u.S)("This feature is only available in")," ",i.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium"),".")},"unit-conversion":{label:(0,u.S)("Unit Conversion"),block:()=>i.createElement("p",null,(0,u.S)("This feature is only available in")," ",i.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Pro Bundle"),".")}};wprm_admin.addons.pro&&(e["unit-conversion"].block=Xa);var t=Ka.applyFilters("modalRecipeIngredients",e),r=!!t.hasOwnProperty(this.state.mode)&&t[this.state.mode].block;if(!r)return null;var n=null;switch(this.state.mode){case"unit-conversion":n=i.createElement(r,{ingredients:this.props.ingredients,onIngredientsChange:e=>{this.props.onRecipeChange({ingredients_flat:e})},system:this.props.system,onSystemChange:e=>{this.props.onRecipeChange({unit_system:e})}});break;case"ingredient-links":n=i.createElement(r,{ingredients:this.props.ingredients,onIngredientsChange:e=>{this.props.onRecipeChange({ingredients_flat:e})},type:this.props.linkType,onTypeChange:e=>{this.props.onRecipeChange({ingredient_links_type:e})},onModeChange:this.props.onModeChange});break;case"preview":n=i.createElement(r,{ingredients:this.props.ingredients});break;default:n=i.createElement(r,{type:this.props.type,ingredients:this.props.ingredients,instructions:this.props.instructions,onRecipeChange:this.props.onRecipeChange})}return i.createElement("div",{className:"wprm-admin-modal-field-ingredient-container"},i.createElement(ja,{modes:e,mode:this.state.mode,onModeChange:e=>{this.setState({mode:e})}}),n)}}function es(){return(es=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}).apply(this,arguments)}var ts=(0,Dn.TB)("tab");class rs extends i.Component{shouldComponentUpdate(e){return JSON.stringify(this.props)!==JSON.stringify(e)}render(){var e=this.props.amount?this.props.amount:"",t=this.props.notes?this.props.notes:"";return i.createElement(La._l,{draggableId:"equipment-".concat(this.props.uid),index:this.props.index},((r,n)=>i.createElement("div",es({className:"wprm-admin-modal-field-equipment",ref:r.innerRef},r.draggableProps),(e=>i.createElement("div",es({className:"wprm-admin-modal-field-equipment-handle"},e.dragHandleProps,{tabIndex:"-1"}),i.createElement(Yo.Z,{type:"drag"})))(r),i.createElement("div",{className:"wprm-admin-modal-field-equipment-text-container"},i.createElement(Ia,{singleLine:!0,toolbar:wprm_admin.addons.premium?"all":"no-link",className:"wprm-admin-modal-field-equipment-amount",value:e,placeholder:"1",onChange:e=>this.props.onChangeEquipment({amount:e})}),i.createElement(Ia,{singleLine:!0,toolbar:"equipment",value:this.props.name,placeholder:"howto"===this.props.recipeType?(0,u.S)("Pair of scissors"):(0,u.S)("Pressure cooker"),onChange:e=>this.props.onChangeEquipment({name:e})}),i.createElement(Ia,{singleLine:!0,toolbar:wprm_admin.addons.premium?"all":"no-link",value:t,placeholder:(0,u.S)("optional"),onChange:e=>this.props.onChangeEquipment({notes:e}),onKeyDown:e=>{ts(e)&&this.props.onTab(e)}})),i.createElement("div",{className:"wprm-admin-modal-field-equipment-after-container"},i.createElement("div",{className:"wprm-admin-modal-field-equipment-after-container-icons"},i.createElement(Yo.Z,{type:"trash",onClick:this.props.onDelete}),i.createElement(Yo.Z,{type:"plus",title:(0,u.S)("Insert After"),onClick:this.props.onAdd}))))))}}function ns(){return(ns=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}).apply(this,arguments)}function is(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}function os(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?is(Object(r),!0).forEach((function(t){as(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):is(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function as(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class ss extends i.Component{constructor(e){super(e),this.container=i.createRef(),this.lastAddedIndex=0}shouldComponentUpdate(e){return this.props.type!==e.type||JSON.stringify(this.props.equipment)!==JSON.stringify(e.equipment)}componentDidUpdate(e){if(this.props.equipment.length>e.equipment.length){var t=this.container.current.querySelectorAll(".wprm-admin-modal-field-equipment-amount");t.length&&t[this.lastAddedIndex]&&t[this.lastAddedIndex].focus()}}onDragEnd(e){if(e.destination){var t=JSON.parse(JSON.stringify(this.props.equipment)),r=e.source.index,n=e.destination.index,i=t.splice(r,1)[0];t.splice(n,0,i),this.props.onRecipeChange({equipment:t})}}addField(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=JSON.parse(JSON.stringify(this.props.equipment)),r={name:""},n=Math.max.apply(Math,t.map((function(e){return e.uid})));n=n<0?-1:n,r.uid=n+1,!1===e?(t.push(r),this.lastAddedIndex=t.length-1):(t.splice(e+1,0,r),this.lastAddedIndex=e+1),this.props.onRecipeChange({equipment:t})}render(){return i.createElement("div",{className:"wprm-admin-modal-field-equipment-edit-container",ref:this.container},i.createElement(La.Z5,{onDragEnd:this.onDragEnd.bind(this)},i.createElement(La.bK,{droppableId:"wprm-equipment"},((e,t)=>i.createElement("div",ns({className:"".concat(t.isDraggingOver?" wprm-admin-modal-field-equipment-container-draggingover":""),ref:e.innerRef},e.droppableProps),i.createElement("div",{className:"wprm-admin-modal-field-equipment-header-container"},i.createElement("div",{className:"wprm-admin-modal-field-equipment-header"},(0,u.S)("Amount")),i.createElement("div",{className:"wprm-admin-modal-field-equipment-header"},(0,u.S)("Name")," ",i.createElement("span",{className:"wprm-admin-modal-field-equipment-header-required"},"(",(0,u.S)("required"),")")),i.createElement("div",{className:"wprm-admin-modal-field-equipment-header"},(0,u.S)("Notes"))),this.props.equipment.map(((e,t)=>i.createElement(rs,ns({},e,{recipeType:this.props.type,index:t,key:"equipment-".concat(e.uid),onTab:e=>{t===this.props.equipment.length-1&&(e.preventDefault(),setTimeout((()=>{this.addField()})))},onAdd:()=>{this.addField(t)},onChangeEquipment:e=>{var r=JSON.parse(JSON.stringify(this.props.equipment));r[t]=os(os({},r[t]),e),this.props.onRecipeChange({equipment:r})},onDelete:()=>{var e=JSON.parse(JSON.stringify(this.props.equipment));e.splice(t,1),this.props.onRecipeChange({equipment:e})}})))),e.placeholder)))),i.createElement("div",{className:"wprm-admin-modal-field-equipment-actions"},i.createElement("button",{className:"button",onClick:e=>{e.preventDefault(),this.addField()}},(0,u.S)("Add Equipment")),i.createElement("p",null,(0,u.S)("Tip: use the TAB key to move from field to field and easily add equipment."))))}}var{hooks:us}=WPRecipeMaker["wp-recipe-maker/dist/shared"];class ls extends i.Component{constructor(e){super(e),this.state={mode:"edit"}}shouldComponentUpdate(e,t){return this.state.mode!==t.mode||this.props.type!==e.type||JSON.stringify(this.props.equipment)!==JSON.stringify(e.equipment)}render(){var e={edit:{label:(0,u.S)("Edit Equipment"),block:ss},"equipment-affiliate":{label:(0,u.S)("Equipment Affiliate Fields"),block:()=>i.createElement("p",null,(0,u.S)("This feature is only available in")," ",i.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium"),".")}},t=us.applyFilters("modalRecipeEquipment",e),r=!!t.hasOwnProperty(this.state.mode)&&t[this.state.mode].block;if(!r)return null;var n=null;return this.state.mode,n=i.createElement(r,{type:this.props.type,equipment:this.props.equipment,instructions:this.props.instructions,onRecipeChange:this.props.onRecipeChange,onModeChange:this.props.onModeChange}),i.createElement("div",{className:"wprm-admin-modal-field-equipment-container"},i.createElement(ja,{modes:e,mode:this.state.mode,onModeChange:e=>{this.setState({mode:e})}}),n)}}var cs={getIngredientString(e){var t="",r=[];return e.amount&&r.push(e.amount),e.unit&&r.push(e.unit),e.name&&r.push(e.name),e.notes&&r.push(e.notes),r.length&&(t=r.join(" ").replace(/(<([^>]+)>)/gi,"").trim()),t}};function ds(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}function ps(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ds(Object(r),!0).forEach((function(t){fs(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ds(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function fs(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ms=e=>{var{video:t}=e,r=e.image>0;return i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-media"},i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-media-icons"},i.createElement(Yo.Z,{type:"photo",title:r?(0,u.S)("Remove Image"):(0,u.S)("Add Instruction Image"),onClick:()=>{r?e.onChangeImage(0,""):ve.Z.selectImage((t=>{e.onChangeImage(t.id,t.url)}))},hidden:"none"!==t.type&&"part"!==t.type}),i.createElement("div",{className:"wprm-icon-spacer"}),i.createElement(Yo.Z,{type:"movie",title:"upload"===t.type?(0,u.S)("Remove Video"):(0,u.S)("Upload Instruction Video"),onClick:()=>{"upload"===t.type?e.onChangeVideo(ps(ps({},t),{},{type:"none",id:0,thumb:""})):ve.Z.selectVideo((r=>{e.onChangeVideo(ps(ps({},t),{},{type:"upload",id:r.attributes.id,thumb:r.attributes.thumb.src}))}))},hidden:r||"none"!==t.type&&"upload"!==t.type}),i.createElement(Yo.Z,{type:"code",title:"embed"===t.type?(0,u.S)("Remove Video"):(0,u.S)("Embed Instruction Video"),onClick:()=>{"embed"===t.type?e.onChangeVideo(ps(ps({},t),{},{type:"none",embed:""})):e.onChangeVideo(ps(ps({},t),{},{type:"embed"}))},hidden:r||"none"!==t.type&&"embed"!==t.type}),i.createElement(Yo.Z,{type:"videoplayer",title:"part"===t.type?(0,u.S)("Remove Video Part"):(0,u.S)("Instruction is part of the main video"),onClick:()=>{e.onChangeVideo(ps(ps({},t),{},{type:"part"===t.type?"none":"part",start:"",end:"",name:""}))},hidden:!e.allowVideo||"none"!==t.type&&"part"!==t.type})),(r||"upload"===t.type||"embed"===t.type)&&i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-media-preview"},r?i.createElement("div",{className:"wprm-admin-modal-field-image-preview"},i.createElement("img",{src:e.image_url,onClick:()=>{ve.Z.selectImage((t=>{e.onChangeImage(t.id,t.url)}))}})):i.createElement(i.Fragment,null,"upload"===t.type&&i.createElement("div",{className:"wprm-admin-modal-field-video-preview"},i.createElement("img",{src:t.thumb,onClick:()=>{ve.Z.selectVideo((r=>{e.onChangeVideo(ps(ps({},t),{},{id:r.attributes.id,thumb:r.attributes.thumb.src}))}))}})),"embed"===t.type&&i.createElement(ie.Z,{value:t.embed,onChange:r=>{e.onChangeVideo(ps(ps({},t),{},{embed:r}))},placeholder:(0,u.S)("Instruction video URL or embed code")}))))};function hs(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}function gs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hs(Object(r),!0).forEach((function(t){vs(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vs(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var bs=e=>{var t=e.hasOwnProperty("ingredients")?e.ingredients:[],r=[],n=[];for(var o of e.allIngredients)if("ingredient"===o.type){var a=cs.getIngredientString(o);if(a){var s={value:o.uid,label:P().decode(a)};r.push(s),t.includes(o.uid)&&n.push(s)}}return i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-ingredient"},i.createElement(N.ZP,{isMulti:!0,options:r,value:n,placeholder:(0,u.S)("Select ingredients..."),onChange:t=>{var r=[];if(t)for(var n of t)r.push(n.value);e.onChangeIngredients(r)},styles:{placeholder:e=>gs(gs({},e),{},{color:"#444",opacity:"0.333"}),control:e=>gs(gs({},e),{},{backgroundColor:"white"}),container:e=>gs(gs({},e),{},{width:"100%",maxWidth:"100%"})}}))},ys=(r(31807),r(67838),e=>{var t=!!e.hasOwnProperty("disabled")&&e.disabled;return i.createElement("input",{type:"text",disabled:t,name:e.name,value:e.value,placeholder:"0:00",onChange:t=>{(e=>{var[t,r]=e.split(":");if(!/^\d*:?\d{0,2}$/.test(e))return!1;var n,i=Number(t),o=Number(r);if(n=i,!(Number.isInteger(n)&&n>=0&&(e=>Number.isInteger(e)&&e>=0||Number.isNaN(e))(o)))return!1;if(o<10&&Number(r[0])>5)return!1;var a=-1!==e.indexOf(":")?e.split(":"):[e];return!(a[0]&&a[0].length&&parseInt(a[0],10)<0||a[1]&&a[1].length&&(parseInt(a[1],10)<0||parseInt(a[1],10)>59))})(t.target.value)&&e.onChange(t.target.value)}})});function ws(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}function Es(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ws(Object(r),!0).forEach((function(t){Ds(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ws(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ds(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cs(){return(Cs=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}).apply(this,arguments)}var Ss=(0,Dn.TB)("tab"),Is=e=>i.createElement("div",Cs({className:"wprm-admin-modal-field-instruction-handle"},e.dragHandleProps,{tabIndex:"-1"}),i.createElement(Yo.Z,{type:"drag"}));class xs extends i.Component{shouldComponentUpdate(e){return JSON.stringify(this.props)!==JSON.stringify(e)}render(){return i.createElement(La._l,{draggableId:"instruction-".concat(this.props.uid),index:this.props.index},((e,t)=>"group"===this.props.type?((e,t)=>i.createElement("div",Cs({className:"wprm-admin-modal-field-instruction-group",ref:t.innerRef},t.draggableProps),i.createElement("div",{className:"wprm-admin-modal-field-instruction-main-container"},Is(t),i.createElement("div",{className:"wprm-admin-modal-field-instruction-group-name-container"},i.createElement(Ia,{singleLine:!0,toolbar:"no-styling",value:e.name,placeholder:(0,u.S)("Instruction Group Header"),onChange:t=>e.onChangeName(t),onKeyDown:t=>{Ss(t)&&e.onTab(t)}}))),i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container"},i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-icons"},i.createElement(Yo.Z,{type:"trash",onClick:e.onDelete}),i.createElement(Yo.Z,{type:"plus",title:(0,u.S)("Insert After"),onClick:e.onAdd})))))(this.props,e):((e,t)=>{var r={type:"none",embed:"",id:"",thumb:"",start:"",end:"",name:""};return e.video&&"none"===(r=Es(Es({},r),e.video)).type&&(r.start||r.end)&&(r.type="part"),i.createElement("div",Cs({className:"wprm-admin-modal-field-instruction",ref:t.innerRef},t.draggableProps),i.createElement("div",{className:"wprm-admin-modal-field-instruction-main-container"},Is(t),i.createElement("div",{className:"wprm-admin-modal-field-instruction-text-container"},i.createElement("div",{className:"wprm-admin-modal-field-instruction-text-name-container"},i.createElement(Ia,{className:"wprm-admin-modal-field-instruction-text",value:e.text,placeholder:(0,u.S)("This is one step of the instructions."),onChange:t=>e.onChangeText(t),onKeyDown:t=>{Ss(t)&&e.onTab(t)}})),e.allowVideo&&"part"===r.type&&"media"===e.editMode&&i.createElement("div",{className:"wprm-admin-modal-field-instruction-video-container"},i.createElement(ys,{value:r.start,onChange:t=>{e.onChangeVideo(Es(Es({},r),{},{start:t}))}}),i.createElement(ys,{value:r.end,onChange:t=>{e.onChangeVideo(Es(Es({},r),{},{end:t}))}}),r.start&&r.end?i.createElement(g.Z,{placeholder:(0,u.S)("Name for this video part"),value:r.name,onChange:t=>{e.onChangeVideo(Es(Es({},r),{},{name:t}))}}):i.createElement(Yo.Z,{type:"movie",title:(0,u.S)("Add video start and end time (in seconds or minutes:seconds format) if this instruction step is part of the recipe video.")})))),i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container"},i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-icons"},i.createElement(Yo.Z,{type:"trash",onClick:e.onDelete}),i.createElement(Yo.Z,{type:"plus",title:(0,u.S)("Insert After"),onClick:e.onAdd})),"summary"===e.editMode&&i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-summary"},i.createElement(Ia,{singleLine:!0,className:"wprm-admin-modal-field-instruction-name",toolbar:"none",value:e.hasOwnProperty("name")?e.name:"",placeholder:(0,u.S)("Step Summary"),onChange:t=>e.onChangeName(t)})),"media"===e.editMode&&i.createElement(ms,Cs({},e,{video:r})),"ingredients"===e.editMode&&i.createElement(bs,e)))})(this.props,e)))}}function Os(){return(Os=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}).apply(this,arguments)}class As extends i.Component{constructor(e){super(e);var t="media",r=localStorage.getItem("wprm-modal-edit-mode");r&&(t=r),this.state={editMode:t},this.container=i.createRef(),this.lastAddedIndex=0}shouldComponentUpdate(e,t){return this.state.editMode!==t.editMode||this.props.type!==e.type||this.props.allowVideo!==e.allowVideo||JSON.stringify(this.props.instructions)!==JSON.stringify(e.instructions)||JSON.stringify(this.props.ingredients)!==JSON.stringify(e.ingredients)}componentDidUpdate(e){if(this.props.instructions.length>e.instructions.length){var t=this.container.current.querySelectorAll(".wprm-admin-modal-field-richtext:not(.wprm-admin-modal-field-instruction-name)");t.length&&t[this.lastAddedIndex]&&t[this.lastAddedIndex].focus()}}onDragEnd(e){if(e.destination){var t=JSON.parse(JSON.stringify(this.props.instructions)),r=e.source.index,n=e.destination.index,i=t.splice(r,1)[0];t.splice(n,0,i),this.props.onRecipeChange({instructions_flat:t})}}addField(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=JSON.parse(JSON.stringify(this.props.instructions));t="group"===e?{type:"group",name:""}:{type:"instruction",name:"",text:"",image:0,image_url:"",ingredients:[]};var i=Math.max.apply(Math,n.map((function(e){return e.uid})));i=i<0?-1:i,t.uid=i+1,!1===r?(n.push(t),this.lastAddedIndex=n.length-1):(n.splice(r+1,0,t),this.lastAddedIndex=r+1),this.props.onRecipeChange({instructions_flat:n})}render(){var e={media:{label:(0,u.S)("Instruction Media")}};"ignore"!==wprm_admin.settings.metadata_instruction_name&&"other"!==this.props.type&&(e.summary={label:(0,u.S)("Metadata"),help:(0,u.S)('For guided recipes, Google wants a short (usually 1 word) summary for each instruction step. This will be the "name" in the HowToStep metadata. This is not shown in the recipe template.')}),e.ingredients={label:(0,u.S)("Associated Ingredients")};var t=this.props.ingredients.filter((e=>"ingredient"===e.type&&""!==e.name)),r=[];for(var n of this.props.instructions)n.hasOwnProperty("ingredients")&&(r=r.concat(n.ingredients));var o=[];for(var a of this.props.ingredients)if("ingredient"===a.type&&!r.includes(a.uid)){var s=cs.getIngredientString(a);s&&o.push(s)}return i.createElement(i.Fragment,null,i.createElement(ja,{modes:e,mode:this.state.editMode,onModeChange:e=>{localStorage.setItem("wprm-modal-edit-mode",e),this.setState({editMode:e})}}),i.createElement("div",{className:"wprm-admin-modal-field-instruction-container",ref:this.container},i.createElement(La.Z5,{onDragEnd:this.onDragEnd.bind(this)},i.createElement(La.bK,{droppableId:"wprm-instructions"},((e,r)=>i.createElement("div",Os({className:"".concat(r.isDraggingOver?" wprm-admin-modal-field-instruction-container-draggingover":""),ref:e.innerRef},e.droppableProps),this.props.instructions.map(((e,r)=>i.createElement(xs,Os({},e,{index:r,key:"instruction-".concat(e.uid),onTab:e=>{r===this.props.instructions.length-1&&(e.preventDefault(),setTimeout((()=>{this.addField("instruction")})))},editMode:this.state.editMode,onChangeName:e=>{var t=JSON.parse(JSON.stringify(this.props.instructions));t[r].name=e,this.props.onRecipeChange({instructions_flat:t})},onChangeText:e=>{var t=JSON.parse(JSON.stringify(this.props.instructions));t[r].text=e,this.props.onRecipeChange({instructions_flat:t})},onChangeImage:(e,t)=>{var n=JSON.parse(JSON.stringify(this.props.instructions));n[r].image=e,n[r].image_url=t,this.props.onRecipeChange({instructions_flat:n})},onDelete:()=>{var e=JSON.parse(JSON.stringify(this.props.instructions));e.splice(r,1),this.props.onRecipeChange({instructions_flat:e})},onAdd:()=>{this.addField("instruction",r)},allowVideo:this.props.allowVideo,onChangeVideo:e=>{var t=JSON.parse(JSON.stringify(this.props.instructions));t[r].video=e,this.props.onRecipeChange({instructions_flat:t})},allIngredients:t,onChangeIngredients:e=>{var t=JSON.parse(JSON.stringify(this.props.instructions));t[r].ingredients=e,this.props.onRecipeChange({instructions_flat:t})}})))),e.placeholder)))),"ingredients"===this.state.editMode&&i.createElement("div",{className:"wprm-admin-modal-field-instruction-unused-ingredients"},0===t.length?i.createElement("div",{className:"wprm-admin-modal-field-instruction-unused-ingredients-info"},(0,u.S)("This recipe doesn't have any ingredients.")):i.createElement(i.Fragment,null,0===o.length?i.createElement("div",{className:"wprm-admin-modal-field-instruction-unused-ingredients-info"},(0,u.S)("All ingredients are associated with a step!")):i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-field-instruction-unused-ingredients-info"},(0,u.S)("Unused ingredients:")),o.map(((e,t)=>i.createElement("div",{className:"wprm-admin-modal-field-instruction-unused-ingredients-ingredient",key:t},P().decode(e))))))),i.createElement("div",{className:"wprm-admin-modal-field-instruction-actions"},i.createElement("button",{className:"button",onClick:e=>{e.preventDefault(),this.addField("instruction")}},(0,u.S)("Add Instruction")),i.createElement("button",{className:"button",onClick:e=>{e.preventDefault(),this.addField("group")}},(0,u.S)("Add Instruction Group")),i.createElement("p",null,(0,u.S)("Tip: use the TAB key to move from field to field and easily add instructions.")))))}}function Ms(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}function Bs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ms(Object(r),!0).forEach((function(t){Ps(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ms(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ps(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ns=-1!==Object.values(wprm_admin_modal.nutrition).findIndex((e=>"calculated"===e.type));class ks extends i.Component{constructor(e){super(e),this.state={calculating:!1}}shouldComponentUpdate(e,t){return this.state.calculing!==t.calculating||JSON.stringify(this.props.servings)!==JSON.stringify(e.servings)||JSON.stringify(this.props.nutrition)!==JSON.stringify(e.nutrition)}componentDidMount(){this.calculateNutrients()}componentDidUpdate(e){JSON.stringify(this.props.nutrition)!==JSON.stringify(e.nutrition)&&this.calculateNutrients()}calculateNutrients(){Ns&&wprm_admin.addons.pro&&this.setState({calculating:!0},(()=>{l.Z.nutrition.getCalculated(this.props.nutrition).then((e=>{e&&Object.keys(e.calculated).length>0&&this.props.onRecipeChange({nutrition:Bs(Bs({},this.props.nutrition),e.calculated)}),this.setState({calculating:!1})}))}))}render(){var e=this.props,t=e.nutrition.hasOwnProperty("serving_size")&&e.nutrition.serving_size?e.nutrition.serving_size:"",r=e.nutrition.hasOwnProperty("serving_unit")&&e.nutrition.serving_unit?e.nutrition.serving_unit:"";return i.createElement(i.Fragment,null,i.createElement("p",null,(0,u.S)("These should be the nutrition facts for 1 serving of your recipe."),i.createElement("br",null),e.servings.amount?i.createElement(i.Fragment,null,(0,u.S)("Total servings for this recipe:")," ","".concat(e.servings.amount," ").concat(e.servings.unit)):i.createElement(i.Fragment,null,(0,u.S)('You don\'t have the servings field set for your recipe under "General".'))),i.createElement("div",{className:"wprm-admin-modal-field-nutrition-container"},wprm_admin.addons.premium?i.createElement(A.Z,{id:"nutrition_serving_size",label:(0,u.S)("Serving Size"),help:(0,u.S)("The weight of 1 serving. Does not affect the calculation.")},i.createElement(g.Z,{type:"number",value:t,onChange:t=>{var r=Bs(Bs({},e.nutrition),{},{serving_size:t});e.onRecipeChange({nutrition:r})}}),i.createElement(g.Z,{name:"serving-unit",placeholder:wprm_admin.settings.nutrition_default_serving_unit,value:r,onChange:t=>{var r=Bs(Bs({},e.nutrition),{},{serving_unit:t});e.onRecipeChange({nutrition:r})}})):null,Object.keys(wprm_admin_modal.nutrition).map(((t,r)=>{var n=wprm_admin_modal.nutrition[t],o=e.nutrition.hasOwnProperty(t)?e.nutrition[t]:"";return"serving_size"===t?null:"calories"===t||wprm_admin.addons.premium?i.createElement(A.Z,{id:"nutrition_".concat(t),label:n.label,key:r},"calculated"===n.type&&this.state.calculating?i.createElement(me.Z,null):i.createElement(i.Fragment,null,i.createElement(g.Z,{type:"number",value:o,onChange:r=>{var n=Bs(Bs({},e.nutrition),{},{[t]:r});e.onRecipeChange({nutrition:n})},disabled:"calculated"===n.type}),i.createElement("span",{className:"wprm-admin-modal-field-nutrition-unit"},n.unit))):null}))),wprm_admin.addons.premium?null:i.createElement("p",null,(0,u.S)("More nutrients are available in")," ",i.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium"),"."),i.createElement(d,{isPrimary:!0,required:"pro",onClick:()=>{e.onModeChange("nutrition-calculation")}},(0,u.S)("Calculate Nutrition Facts")))}}var Fs=wprm_admin_modal.custom_fields&&wprm_admin_modal.custom_fields.fields?Object.values(wprm_admin_modal.custom_fields.fields):[],Ts=e=>i.createElement(i.Fragment,null,Fs.map(((t,r)=>{var n=!!e.fields.hasOwnProperty(t.key)&&e.fields[t.key];switch(t.type){case"text":case"link":case"email":var o="link"===t.type?"url":t.type;return i.createElement(A.Z,{label:t.name,key:r},i.createElement(g.Z,{type:o,name:"recipe-custom-".concat(t.key),value:n||"",onChange:r=>{e.onFieldChange(t.key,r)}}));case"textarea":return i.createElement(A.Z,{label:t.name,key:r},i.createElement(Ia,{value:n||"",onChange:r=>{e.onFieldChange(t.key,r)}}));case"image":return i.createElement(A.Z,{label:t.name,key:r},i.createElement(be,{id:n?n.id:0,url:n?n.url:"",onChange:(r,n)=>{e.onFieldChange(t.key,{id:r,url:n})}}))}})));class js extends i.Component{constructor(e){super(e);var t=parseInt(wprm_admin_modal.editor_uid);wprm_admin_modal.editor_uid=t+1,this.state={editorHtml:!1,addedListeners:!1,editorId:"wprm-admin-modal-notes-editor-".concat(t)},this.initEditor=this.initEditor.bind(this),this.initTinyMCE=this.initTinyMCE.bind(this)}componentDidMount(){var e=document.getElementById("wprm-admin-modal-notes-placeholder").innerHTML;e=e.replace(/wprm-admin-modal-notes-editor/g,this.state.editorId),this.setState({editorHtml:e})}componentDidUpdate(e,t){this.state.editorHtml&&!t.editorHtml&&this.initEditor()}initEditor(){void 0!==window.tinymce?this.initTinyMCE():this.initTextarea()}initTextarea(){var e=document.getElementById(this.state.editorId);if(void 0!==window.quicktags)try{window.quicktags({id:this.state.editorId})}catch(t){}e&&(e.value=this.props.value,["input","blur"].forEach((t=>{e.addEventListener(t,(()=>{this.props.onChange(e.value)}))})))}initTinyMCE(){document.getElementById("wp-".concat(this.state.editorId,"-editor-container")).outerHTML='<textarea id="'.concat(this.state.editorId,'"></textarea>');var e=tinymce.$("#wp-".concat(this.state.editorId,"-wrap"));e.removeClass("tmce-active").addClass("html-active"),this.initTextarea(),e.removeClass("html-active").addClass("tmce-active");var t={};void 0!==window.tinyMCEPreInit&&tinyMCEPreInit.hasOwnProperty("mceInit")&&tinyMCEPreInit.mceInit.hasOwnProperty("wprm-admin-modal-notes-editor")&&(t=tinyMCEPreInit.mceInit["wprm-admin-modal-notes-editor"]),t.hasOwnProperty("body_class")&&(t.body_class=t.body_class.replace(/wprm-admin-modal-notes-editor/g,this.state.editorId)),t.selector="#".concat(this.state.editorId),window.tinymce.init(t);var r=window.tinymce.get(this.state.editorId);r&&r.on("change",(()=>{this.props.onChange(r.getContent())}))}componentWillUnmount(){void 0!==window.tinyMCE&&window.tinyMCE.remove("#".concat(this.state.editorId))}render(){return this.state.editorHtml?i.createElement("div",{id:"wprm-admin-modal-field-tinymce-container",dangerouslySetInnerHTML:{__html:this.state.editorHtml}}):i.createElement(me.Z,null)}}var Ls=e=>i.createElement(A.Z,{label:(0,u.S)("Recipe Notes")},i.createElement(js,{id:"recipe-notes",value:e.notes,onChange:t=>{e.onRecipeChange({notes:t})}})),Rs=e=>{var t=e.recipe.video_id>0,r=!t&&(-1==e.recipe.video_id||e.recipe.video_embed),n=t||r,o=[{id:"import",name:(0,u.S)("Import"),elem:i.createElement(ge,{onModeChange:e.onModeChange,onImportJSON:e.onImportJSON})},{id:"media",name:(0,u.S)("Media"),elem:i.createElement(Ee,{image:{id:e.recipe.image_id,url:e.recipe.image_url},pinImage:{id:e.recipe.pin_image_id,url:e.recipe.pin_image_url,repin:e.recipe.pin_image_repin_id},video:{id:e.recipe.video_id,thumb:e.recipe.video_thumb_url,embed:e.recipe.video_embed},onRecipeChange:e.onRecipeChange})}];return"public"!==wprm_admin.settings.post_type_structure&&"manual"!==wprm_admin.settings.recipe_use_author||o.push({id:"postType",name:(0,u.S)("Post Type"),elem:i.createElement(De,{slug:e.recipe.slug,post_status:e.recipe.post_status,post_author:e.recipe.post_author,language:e.recipe.language,onRecipeChange:e.onRecipeChange})}),o.push({id:"general",name:(0,u.S)("General"),elem:i.createElement(Ba,{type:e.recipe.type,name:e.recipe.name,summary:e.recipe.summary,author:{display:e.recipe.author_display,name:e.recipe.author_name,link:e.recipe.author_link},servings:{amount:e.recipe.servings,unit:e.recipe.servings_unit},servings_advanced_enabled:e.recipe.servings_advanced_enabled,servings_advanced:e.recipe.servings_advanced,cost:e.recipe.cost,my_emissions:e.recipe.my_emissions,onRecipeChange:e.onRecipeChange})}),o.push({id:"times",name:(0,u.S)("Times"),elem:i.createElement(Na,{type:e.recipe.type,prep:{time:e.recipe.prep_time,zero:e.recipe.prep_time_zero},cook:{time:e.recipe.cook_time,zero:e.recipe.cook_time_zero},custom:{time:e.recipe.custom_time,zero:e.recipe.custom_time_zero},customLabel:e.recipe.custom_time_label,total:{time:e.recipe.total_time,zero:!1},onRecipeChange:e.onRecipeChange})}),o.push({id:"categories",name:(0,u.S)("Categories"),elem:i.createElement(Ta,{tags:e.recipe.tags,onRecipeChange:e.onRecipeChange})}),o.push({id:"equipment",name:(0,u.S)("Equipment"),elem:i.createElement(ls,{type:e.recipe.type,equipment:e.recipe.equipment,onRecipeChange:e.onRecipeChange,onModeChange:e.onModeChange})}),o.push({id:"ingredients",name:"howto"===e.recipe.type?(0,u.S)("Materials"):(0,u.S)("Ingredients"),elem:i.createElement($a,{type:e.recipe.type,ingredients:e.recipe.ingredients_flat,instructions:e.recipe.instructions_flat,linkType:e.recipe.ingredient_links_type,system:e.recipe.unit_system,onRecipeChange:e.onRecipeChange,onModeChange:e.onModeChange})}),o.push({id:"instructions",name:(0,u.S)("Instructions"),elem:i.createElement(As,{type:e.recipe.type,ingredients:e.recipe.ingredients_flat,instructions:e.recipe.instructions_flat,onRecipeChange:e.onRecipeChange,allowVideo:n&&"other"!==e.recipe.type})}),"howto"!==e.recipe.type&&o.push({id:"nutrition",name:(0,u.S)("Nutrition"),elem:i.createElement(ks,{nutrition:e.recipe.nutrition,servings:{amount:e.recipe.servings,unit:e.recipe.servings_unit},onRecipeChange:e.onRecipeChange,onModeChange:e.onModeChange})}),wprm_admin_modal.custom_fields&&wprm_admin_modal.custom_fields.fields&&0<Object.keys(wprm_admin_modal.custom_fields.fields).length&&o.push({id:"custom-fields",name:(0,u.S)("Custom Fields"),elem:i.createElement(Ts,{fields:e.recipe.custom_fields,onFieldChange:(t,r)=>{var n=Object.assign({},JSON.parse(JSON.stringify(e.recipe.custom_fields)));n[t]=r,e.onRecipeChange({custom_fields:n})}})}),o.push({id:"notes",name:(0,u.S)("Notes"),elem:i.createElement(Ls,{notes:e.recipe.notes,onRecipeChange:e.onRecipeChange})}),i.createElement(i.Fragment,null,i.createElement(p.Z,{onCloseModal:e.onCloseModal},e.loadingRecipe?(0,u.S)("Loading Recipe..."):i.createElement(i.Fragment,null,e.recipe.id?"".concat((0,u.S)("Editing Recipe")," #").concat(e.recipe.id).concat(e.recipe.name?" - ".concat(e.recipe.name):""):"".concat((0,u.S)("Creating new Recipe")).concat(e.recipe.name?" - ".concat(e.recipe.name):""))),i.createElement("div",{className:"wprm-admin-modal-recipe-quicklinks"},o.map(((e,t)=>i.createElement(de.rU,{to:"wprm-admin-modal-fields-group-".concat(e.id),containerId:"wprm-admin-modal-recipe-content",className:"wprm-admin-modal-recipe-quicklink",activeClass:"active",spy:!0,offset:-10,smooth:!0,duration:400,key:t},e.name)))),i.createElement(de.W_,{className:"wprm-admin-modal-content",id:"wprm-admin-modal-recipe-content"},e.loadingRecipe?i.createElement(me.Z,null):i.createElement("form",{className:"wprm-admin-modal-recipe-fields"},o.map(((t,r)=>i.createElement(he,{header:t.name,id:t.id,key:100*e.forceRerender+r},t.elem))))),i.createElement("div",{id:"wprm-admin-modal-toolbar-container"}),"waiting"===e.saveResult?i.createElement(f.Z,{savingChanges:!1},i.createElement(fe(),{text:JSON.stringify(e.recipe),onCopy:(e,t)=>{t?alert((0,u.S)('The recipe has been copied and can be used in the "Import from JSON" feature.')):alert((0,u.S)("Something went wrong. Please contact support."))}},i.createElement("a",{href:"#",onClick:e=>{e.preventDefault()}},(0,u.S)("This is taking a long time. Maybe something went wrong?")," ",(0,u.S)("Click to copy the recipe to your clipboard.")))," ",i.createElement(me.Z,null)):i.createElement(f.Z,{savingChanges:e.savingChanges},"failed"===e.saveResult&&i.createElement(fe(),{text:JSON.stringify(e.recipe),onCopy:(e,t)=>{t?alert((0,u.S)('The recipe has been copied and can be used in the "Import from JSON" feature.')):alert((0,u.S)("Something went wrong. Please contact support."))}},i.createElement("a",{href:"#",onClick:e=>{e.preventDefault()}},(0,u.S)("Something went wrong during saving.")," ",(0,u.S)("Click to copy the recipe to your clipboard."))),"ok"===e.saveResult?i.createElement("span",null,(0,u.S)("Saved successfully")):null,i.createElement("button",{className:"button button-primary",onClick:()=>{e.saveRecipe(!1)},disabled:!e.changesMade},(0,u.S)("Save")),i.createElement("button",{className:"button button-primary",onClick:()=>{e.changesMade?e.saveRecipe(!0):e.onCloseModal()}},e.changesMade?(0,u.S)("Save & Close"):(0,u.S)("Close"))))},_s=e=>i.createElement("div",{className:"wprm-admin-modal-field-text-import-groups"},i.createElement("p",null,(0,u.S)("All of these will be imported. Use the checkbox to indicate group headers.")," "),e.value.map(((t,r)=>i.createElement("div",{className:"wprm-admin-modal-field-text-import-groups-field",key:r},i.createElement("input",{type:"checkbox",checked:t.group,onChange:t=>{var n=JSON.parse(JSON.stringify(e.value));n[r].group=t.target.checked,e.onChange(n)}}),i.createElement("input",{type:"text",value:t.text,style:t.group?{fontWeight:"bold"}:null,onChange:t=>{var n=JSON.parse(JSON.stringify(e.value));n[r].text=t.target.value,e.onChange(n)}})))));function Zs(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}function Hs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zs(Object(r),!0).forEach((function(t){Ws(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ws(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Us extends i.Component{constructor(e){super(e),this.textInput=i.createRef();var t="";e.text&&(t=this.cleanUpText(e.text)),this.state={text:t,name:!1,summary:!1,equipment:!1,ingredients:!1,instructions:!1,notes:!1,isParsing:!1},this.cleanUpText=this.cleanUpText.bind(this),this.setSelection=this.setSelection.bind(this),this.useValues=this.useValues.bind(this)}componentDidMount(){this.textInput.current.focus()}cleanUpText(e){return e=e.replace(/(<([^>]+)>)/gi,""),e=P().decode(e)}setSelection(e){var t=this.textInput.current,r=t.value.substring(t.selectionStart,t.selectionEnd);if(r=r||!1,"equipment"!==e&&"ingredients"!==e&&"instructions"!==e||(r=this.getSeperateFields(r)),r!==this.state[e]){var n={};n[e]=r,this.setState(n)}}getSeperateFields(e){if(!1===e)return!1;var t=[],r=e.split(/[\r\n]+/);for(var n of r)(n=(n=n.trim()).replace(/^(\d+\)\s+|\d+\.\s+|[a-z]+\)\s+|•\s+|[A-Z]+\.\s+|[IVX]+\.\s+)/,""))&&t.push({group:!1,text:n});return!!t.length&&t}useValues(){var e={};if(!1!==this.state.name&&(e.name=this.state.name),!1!==this.state.summary&&(e.summary=this.state.summary),!1!==this.state.notes&&(e.notes=this.state.notes),!1!==this.state.equipment){var t=[];this.state.equipment.map(((e,r)=>{t.push({uid:r,name:e.text})})),e.equipment=t}if(!1!==this.state.instructions){var r=[];this.state.instructions.map(((e,t)=>{e.group?r.push({uid:t,type:"group",name:e.text}):r.push({uid:t,type:"instruction",text:e.text,image:0,image_url:""})})),e.instructions_flat=r}var n=[],i={};!1!==this.state.ingredients&&(this.state.ingredients.map(((e,t)=>{e.group?n.push({uid:t,type:"group",name:e.text}):(n.push({uid:t,type:"ingredient",amount:"",unit:"",name:"",notes:""}),i[t]=e.text)})),e.ingredients_flat=n),0<Object.keys(i).length?this.setState({isParsing:!0},(()=>{l.Z.import.parseIngredients(i).then((t=>{if(t){for(var r in t.parsed){var n=t.parsed[r];e.ingredients_flat[r]=Hs(Hs({},e.ingredients_flat[r]),n)}this.props.onImportValues(e)}else this.setState({isParsing:!1})}))})):this.props.onImportValues(e)}render(){var e=!1!==this.state.name||!1!==this.state.summary||!1!==this.state.equipment||!1!==this.state.ingredients||!1!==this.state.instructions||!1!==this.state.notes;return i.createElement(i.Fragment,null,i.createElement(p.Z,{onCloseModal:this.props.onCloseModal},this.props.recipe.name?"".concat(this.props.recipe.name," - ").concat((0,u.S)("Import from Text")):"".concat((0,u.S)("Recipe")," - ").concat((0,u.S)("Import from Text"))),i.createElement("div",{className:"wprm-admin-modal-field-text-import-container"},i.createElement("h2",null,(0,u.S)("1. Highlight text and click the corresponding button")),i.createElement("div",{className:"wprm-admin-modal-field-text-import-selection"},i.createElement("div",{className:"wprm-admin-modal-field-text-import-buttons"},i.createElement("button",{className:!1!==this.state.name?"button wprm-selection-made":"button",onClick:()=>this.setSelection("name")},(0,u.S)("Name")),i.createElement("button",{className:!1!==this.state.summary?"button wprm-selection-made":"button",onClick:()=>this.setSelection("summary")},(0,u.S)("Summary")),i.createElement("button",{className:!1!==this.state.equipment?"button wprm-selection-made":"button",onClick:()=>this.setSelection("equipment")},(0,u.S)("Equipment")),i.createElement("button",{className:!1!==this.state.ingredients?"button wprm-selection-made":"button",onClick:()=>this.setSelection("ingredients")},(0,u.S)("Ingredients")),i.createElement("button",{className:!1!==this.state.instructions?"button wprm-selection-made":"button",onClick:()=>this.setSelection("instructions")},(0,u.S)("Instructions")),i.createElement("button",{className:!1!==this.state.notes?"button wprm-selection-made":"button",onClick:()=>this.setSelection("notes")},(0,u.S)("Notes"))),i.createElement("textarea",{ref:this.textInput,value:this.state.text,placeholder:(0,u.S)("Paste or type recipe"),onChange:e=>{this.setState({text:this.cleanUpText(e.target.value)})}})),i.createElement("h2",null,(0,u.S)("2. Fine-tune selections")),i.createElement("div",{className:"wprm-admin-modal-field-text-import-finetune"},e?i.createElement(i.Fragment,null,!1!==this.state.name&&i.createElement(A.Z,{label:(0,u.S)("Name")},i.createElement(g.Z,{name:"recipe-name",value:this.state.name,onChange:e=>{this.setState({name:e})}})),!1!==this.state.summary&&i.createElement(A.Z,{label:(0,u.S)("Summary")},i.createElement(ie.Z,{value:this.state.summary,onChange:e=>{this.setState({summary:e})}})),!1!==this.state.equipment&&i.createElement(A.Z,{label:(0,u.S)("Equipment")},this.state.equipment.map(((e,t)=>i.createElement("div",{className:"wprm-admin-modal-field-text-import-equipment-field",key:t},i.createElement(g.Z,{value:e.text,onChange:e=>{var r=JSON.parse(JSON.stringify(this.state.equipment));r[t].text=e,this.setState({equipment:r})}}))))),!1!==this.state.ingredients&&i.createElement(A.Z,{label:(0,u.S)("Ingredients"),help:(0,u.S)("Use the checkboxes to indicate group headers (like Frosting and Cake)")},i.createElement(_s,{value:this.state.ingredients,onChange:e=>{this.setState({ingredients:e})}})),!1!==this.state.instructions&&i.createElement(A.Z,{label:(0,u.S)("Instructions"),help:(0,u.S)("Use the checkboxes to indicate group headers (like Frosting and Cake)")},i.createElement(_s,{value:this.state.instructions,onChange:e=>{this.setState({instructions:e})}})),!1!==this.state.notes&&i.createElement(A.Z,{label:(0,u.S)("Notes")},i.createElement(ie.Z,{value:this.state.notes,onChange:e=>{this.setState({notes:e})}}))):i.createElement("p",null,(0,u.S)("Make a selection using the buttons above first.")))),i.createElement(f.Z,{savingChanges:this.state.isParsing},i.createElement("button",{className:"button",onClick:this.props.onCancel},(0,u.S)("Cancel")),i.createElement("button",{className:"button button-primary",onClick:this.useValues,disabled:!e},(0,u.S)("Use these Values"))))}}function Gs(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}function qs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gs(Object(r),!0).forEach((function(t){zs(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function zs(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var{hooks:Vs}=WPRecipeMaker["wp-recipe-maker/dist/shared"],Js={"text-import":Us,recipe:Rs};class Ys extends i.Component{constructor(e){super(e);var t=JSON.parse(JSON.stringify(wprm_admin_modal.recipe)),r=!1;e.args.hasOwnProperty("recipe")?t=JSON.parse(JSON.stringify(e.args.recipe)):e.args.hasOwnProperty("recipeId")&&(r=!0,l.Z.recipe.get(e.args.recipeId).then((t=>{if(t){var r=JSON.parse(JSON.stringify(t.recipe));e.args.cloneRecipe&&delete r.id,this.setState({recipe:r,originalRecipe:e.args.cloneRecipe||e.args.restoreRevision?{}:JSON.parse(JSON.stringify(r)),loadingRecipe:!1,mode:"recipe"}),this.scrollToGroup()}else this.setState({loadingRecipe:!1})}))),this.state={recipe:t,originalRecipe:e.args.cloneRecipe||e.args.restoreRevision?{}:JSON.parse(JSON.stringify(t)),savingChanges:!1,saveResult:!1,loadingRecipe:r,forceRerender:0,mode:"recipe"},this.scrollToGroup=this.scrollToGroup.bind(this),this.onModeChange=this.onModeChange.bind(this),this.onRecipeChange=this.onRecipeChange.bind(this),this.onImportJSON=this.onImportJSON.bind(this),this.saveRecipe=this.saveRecipe.bind(this),this.allowCloseModal=this.allowCloseModal.bind(this),this.changesMade=this.changesMade.bind(this)}componentDidMount(){"recipe"!==this.state.mode||this.state.loadingRecipe||this.scrollToGroup()}onModeChange(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={mode:e};"text-import"===e&&(r.textImportText=t),this.setState(r,(()=>{"recipe"===e&&(t=t||"media",this.scrollToGroup(t))}))}scrollToGroup(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"media";de.OK.scrollTo("wprm-admin-modal-fields-group-".concat(e),{containerId:"wprm-admin-modal-recipe-content",offset:-10})}onRecipeChange(e){this.setState((t=>({recipe:qs(qs({},t.recipe),e)})))}onImportJSON(e){this.setState((t=>({recipe:qs(qs({},t.recipe),e),forceRerender:t.forceRerender+1})))}saveRecipe(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.state.savingChanges){var t=setTimeout((()=>{this.setState({saveResult:"waiting"})}),5e3);this.setState({savingChanges:!0,saveResult:!1},(()=>{l.Z.recipe.save(this.state.recipe).then((r=>{if(clearTimeout(t),r&&r.recipe){var n=JSON.parse(JSON.stringify(r.recipe));this.setState((e=>({recipe:n,originalRecipe:JSON.parse(JSON.stringify(n)),savingChanges:!1,saveResult:"ok",forceRerender:e.forceRerender+1})),(()=>{"function"==typeof this.props.args.saveCallback&&this.props.args.saveCallback(n),e&&this.props.maybeCloseModal(),setTimeout((()=>{"ok"===this.state.saveResult&&this.setState({saveResult:!1})}),3e3)}))}else this.setState({savingChanges:!1,saveResult:"failed"})}))}))}}allowCloseModal(){switch(this.state.mode){case"nutrition-calculation":return confirm((0,u.S)("Are you sure you want to stop calculating the nutrition facts?"))&&this.onModeChange("recipe","nutrition"),!1;case"equipment-affiliate":return this.onModeChange("recipe","equipment"),!1;case"ingredient-links":return this.onModeChange("recipe","ingredients"),!1;case"text-import":return this.onModeChange("recipe"),!1}return!this.state.savingChanges&&(!this.changesMade()||confirm((0,u.S)("Are you sure you want to close without saving changes?")))}changesMade(){return void 0!==window.lodash?!window.lodash.isEqual(this.state.recipe,this.state.originalRecipe):JSON.stringify(this.state.recipe)!==JSON.stringify(this.state.originalRecipe)}render(){var e=Vs.applyFilters("modalRecipe",Js),t=!!e.hasOwnProperty(this.state.mode)&&e[this.state.mode];if(!t)return null;switch(this.state.mode){case"nutrition-calculation":return i.createElement(t,{onCloseModal:this.props.maybeCloseModal,name:this.state.recipe.name,servings:this.state.recipe.servings,ingredients:this.state.recipe.ingredients_flat,onCancel:()=>{this.onModeChange("recipe","nutrition")},onNutritionChange:e=>{var t={};Object.keys(wprm_admin_modal.nutrition).map(((r,n)=>{e.hasOwnProperty(r)?t[r]=e[r]:t[r]=!1})),t.serving_size=!(!this.state.recipe.hasOwnProperty("nutrition")||!this.state.recipe.nutrition.hasOwnProperty("serving_size"))&&this.state.recipe.nutrition.serving_size,t.serving_unit=!(!this.state.recipe.hasOwnProperty("nutrition")||!this.state.recipe.nutrition.hasOwnProperty("serving_unit"))&&this.state.recipe.nutrition.serving_unit,this.onRecipeChange({nutrition:t}),this.onModeChange("recipe","nutrition")}});case"equipment-affiliate":return i.createElement(t,{onCloseModal:this.props.maybeCloseModal,onCancel:()=>{this.onModeChange("recipe","equipment")},equipment:this.state.recipe.equipment,onEquipmentChange:e=>{this.onRecipeChange({equipment:e}),this.onModeChange("recipe","equipment")}});case"ingredient-links":return i.createElement(t,{onCloseModal:this.props.maybeCloseModal,onCancel:()=>{this.onModeChange("recipe","ingredients")},ingredients:this.state.recipe.ingredients_flat,onIngredientsChange:e=>{this.onRecipeChange({ingredients_flat:e}),this.onModeChange("recipe","ingredients")}});case"text-import":return i.createElement(t,{onCloseModal:this.props.maybeCloseModal,onCancel:()=>{this.onModeChange("recipe")},text:this.state.textImportText,recipe:this.state.recipe,onImportValues:e=>{this.onRecipeChange(e),this.onModeChange("recipe")}});default:return i.createElement(t,{onCloseModal:this.props.maybeCloseModal,changesMade:this.changesMade(),savingChanges:this.state.savingChanges,saveResult:this.state.saveResult,loadingRecipe:this.state.loadingRecipe,recipe:this.state.recipe,onRecipeChange:this.onRecipeChange,onImportJSON:this.onImportJSON,saveRecipe:this.saveRecipe,forceRerender:this.state.forceRerender,onModeChange:this.onModeChange})}}}r(86632),r(35054),r(72975);var Qs=r(96463);class Xs extends i.Component{constructor(e){super(e);var t="internal",r=!1,n="",i=!1,o=!0,a="",s="",l="",c={id:0,url:""},d=!1;if(e.args.fields&&e.args.fields.roundup){var p=e.args.fields.roundup;p.id?(t="internal",r={id:p.id,text:"".concat((0,u.S)("Recipe")," #").concat(p.id)},a=p.name,s=p.summary.replaceAll("%0A","\n"),l=p.button):p.link&&(t="external",n=p.link,i=!!p.nofollow,o=!!p.newtab,a=p.name,s=p.summary.replaceAll("%0A","\n"),l=p.button,c.id=p.image,c.url=p.image_url,s&&"<p>"!==s.substr(0,3)&&(d=!0))}this.state={type:t,recipe:r,link:n,nofollow:i,newtab:o,name:a,summary:s,image:c,button:l,loading:!1,saving:!1,fallbackToTextarea:d},this.loadDetailsFromURL=this.loadDetailsFromURL.bind(this),this.saveImage=this.saveImage.bind(this)}selectionsMade(){return"external"===this.state.type?""!==this.state.link:!1!==this.state.recipe}loadDetailsFromURL(){var e=this.state.link;new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)&&this.setState({loading:!0},(()=>{fetch("https://api.microlink.io?url="+encodeURIComponent(e)).then((e=>e.json())).then((e=>{var t={loading:!1};"success"===e.status&&(e.data.title&&(t.name=e.data.title),e.data.description&&(t.summary=e.data.description),e.data.image&&e.data.image.url&&(t.image={id:-1,url:e.data.image.url})),this.setState(t)})).catch((e=>{console.log("Fetch Error",e);this.setState({loading:!1})}))}))}saveImage(){var e=this.state.image.url;e&&this.setState({saving:!0},(()=>{l.Z.utilities.saveImage(e).then((e=>{var t={saving:!1};e&&e.id&&(t.image=e),this.setState(t)}))}))}render(){return i.createElement(i.Fragment,null,i.createElement(p.Z,{onCloseModal:this.props.maybeCloseModal},(0,u.S)("Select Roundup Recipe")),i.createElement("div",{className:"wprm-admin-modal-roundup-container wprm-admin-modal-roundup-container-".concat(this.state.type)},i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Type")),i.createElement(v.Z,{id:"type",options:[{value:"internal",label:(0,u.S)("Use one of your own recipes")},{value:"external",label:(0,u.S)("Use external recipe from a different website")}],value:this.state.type,onChange:e=>{this.setState({type:e})}}),"internal"===this.state.type?i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Recipe")),i.createElement(Qs.Z,{options:[],value:this.state.recipe,onValueChange:e=>{this.setState({recipe:e})}})):i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Link")),i.createElement(g.Z,{name:"roundup-link",placeholder:"https://demo.wprecipemaker.com/amazing-vegetable-pizza/",type:"url",value:this.state.link,onChange:e=>{this.setState({link:e})},disabled:this.state.loading}),this.state.loading?i.createElement(me.Z,null):i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-roundup-field-load-details-container",style:this.state.link?{}:{visibility:"hidden"}},i.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),this.loadDetailsFromURL()}},(0,u.S)("Try to load details from URL"))),i.createElement("div",{className:"wprm-admin-modal-roundup-field-nofollow-container"},i.createElement("input",{id:"wprm-admin-modal-roundup-field-nofollow",type:"checkbox",checked:this.state.nofollow,onChange:e=>{this.setState({nofollow:e.target.checked})}})," ",i.createElement("label",{htmlFor:"wprm-admin-modal-roundup-field-nofollow"},(0,u.S)('Add rel="nofollow" to link'))),i.createElement("div",{className:"wprm-admin-modal-roundup-field-new-tab-container"},i.createElement("input",{id:"wprm-admin-modal-roundup-field-new-tab",type:"checkbox",checked:this.state.newtab,onChange:e=>{this.setState({newtab:e.target.checked})}})," ",i.createElement("label",{htmlFor:"wprm-admin-modal-roundup-field-new-tab"},(0,u.S)("Open link in new tab"))),i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Image")),this.state.saving?i.createElement(me.Z,null):i.createElement(i.Fragment,null,-1===this.state.image.id&&""!==this.state.image.url?i.createElement("div",{className:"wprm-admin-modal-field-image"},i.createElement("p",null,(0,u.S)("External image. Recommended:")," ",i.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),this.saveImage()}},(0,u.S)("Save image locally"))),i.createElement("div",{className:"wprm-admin-modal-field-image-preview"},i.createElement("img",{src:this.state.image.url}),i.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),this.setState({image:{id:0,url:""}})}},(0,u.S)("Remove Image")))):i.createElement(be,{id:this.state.image.id,url:this.state.image.url,onChange:(e,t)=>{this.setState({image:{id:e,url:t}})}})))),"internal"===this.state.type&&i.createElement("p",{className:"wprm-admin-modal-roundup-override"},(0,u.S)("Optionally fill in these fields to use instead of the recipe values:")),!this.state.loading&&i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Name")),i.createElement(g.Z,{name:"recipe-name",placeholder:(0,u.S)("Recipe Name"),value:this.state.name,onChange:e=>{this.setState({name:e})}}),i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Summary")),this.state.fallbackToTextarea?i.createElement(ie.Z,{placeholder:(0,u.S)("Short description of this recipe..."),value:this.state.summary,onChange:e=>{this.setState({summary:e})}}):i.createElement(Ia,{toolbar:"roundup",placeholder:(0,u.S)("Short description of this recipe..."),value:this.state.summary,onChange:e=>{e=(e=(e=e.replaceAll("<p></p>","")).replaceAll("<p><br></p>","")).replaceAll("<p><br/></p>",""),this.setState({summary:e})}}),i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Custom Button Text")),i.createElement(g.Z,{placeholder:(0,u.S)("Leave blank to use default from template"),value:this.state.button,onChange:e=>{this.setState({button:e})}}))),i.createElement("div",{id:"wprm-admin-modal-toolbar-container"}),i.createElement(f.Z,{savingChanges:this.state.loading||this.state.saving},i.createElement("button",{className:"button button-primary",onClick:()=>{"function"==typeof this.props.args.insertCallback&&this.props.args.insertCallback(this.state),this.props.maybeCloseModal()},disabled:!this.selectionsMade()},(0,u.S)("Use"))))}}var Ks={id:0,text:(0,u.S)("First recipe on page")};class $s extends i.Component{constructor(e){super(e);var t=!1;e.args.fields.recipe.showFirst&&(t=Ks),this.state={recipe:t}}selectionsMade(){return!1!==this.state.recipe}render(){return i.createElement(i.Fragment,null,i.createElement(p.Z,{onCloseModal:this.props.maybeCloseModal},this.props.args.title?this.props.args.title:"WP Recipe Maker"),i.createElement("div",{className:"wprm-admin-modal-select-container"},this.props.args.fields.recipe?i.createElement(Qs.Z,{options:this.props.args.fields.recipe.showFirst?[Ks]:[],value:this.state.recipe,onValueChange:e=>{this.setState({recipe:e})}}):null),i.createElement(f.Z,{savingChanges:!1},i.createElement("button",{className:"button button-primary",onClick:()=>{"function"==typeof this.props.args.nextStepCallback?this.props.args.nextStepCallback(this.state):("function"==typeof this.props.args.insertCallback&&this.props.args.insertCallback(this.state),this.props.maybeCloseModal())},disabled:!this.selectionsMade()},this.props.args.button?this.props.args.button:(0,u.S)("Select"))))}}function eu(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}function tu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eu(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ru(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class nu extends i.Component{constructor(e){super(e);var t={key:"",singular_name:"",name:"",slug:"",archive:!1},r=!1;e.args.hasOwnProperty("taxonomy")&&(r=!0,t=JSON.parse(JSON.stringify(e.args.taxonomy))),this.state={editing:r,taxonomy:t,originalTaxonomy:JSON.parse(JSON.stringify(t)),savingChanges:!1},this.changesMade=this.changesMade.bind(this),this.saveChanges=this.saveChanges.bind(this)}sanitizeSlug(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=(e=e.trim()).toLowerCase();var r="àáäâèéëêìíïîòóöôùúüûñçěščřžýúůďťň·/,:;",n="aaaaeeeeiiiioooouuuuncescrzyuudtn_____";t&&(r+="-",n+="_");for(var i=0,o=r.length;i<o;i++)e=e.replace(new RegExp(r.charAt(i),"g"),n.charAt(i));return e=e.replace(".","-").replace(/[^a-z0-9\s_\-]/g,"").replace(/\s+/g,"_").replace(/_+/g,"_")}saveChanges(){this.state.taxonomy.key.trim()&&this.state.taxonomy.singular_name.trim()&&this.state.taxonomy.name.trim()&&this.state.taxonomy.slug.trim()?this.setState({savingChanges:!0},(()=>{l.Z.customTaxonomy.save(this.state.editing,this.state.taxonomy).then((e=>{e?this.setState({originalTaxonomy:JSON.parse(JSON.stringify(this.state.taxonomy)),savingChanges:!1},(()=>{"function"==typeof this.props.args.saveCallback&&this.props.args.saveCallback(this.state.taxonomy),this.props.maybeCloseModal()})):(this.state.editing||!1!==e||alert((0,u.S)("Something went wrong. Make sure this key does not exist yet.")),this.setState({savingChanges:!1}))}))})):alert((0,u.S)("All fields are required."))}allowCloseModal(){return!this.state.savingChanges&&(!this.changesMade()||confirm((0,u.S)("Are you sure you want to close without saving changes?")))}changesMade(){return JSON.stringify(this.state.taxonomy)!==JSON.stringify(this.state.originalTaxonomy)}render(){return i.createElement(i.Fragment,null,i.createElement(p.Z,{onCloseModal:this.props.maybeCloseModal},this.state.editing?"".concat((0,u.S)("Editing Custom Taxonomy")).concat(this.state.taxonomy.key?" - wprm_".concat(this.state.taxonomy.key):""):"".concat((0,u.S)("Creating new Custom Taxonomy")).concat(this.state.taxonomy.key?" - wprm_".concat(this.state.taxonomy.key):"")),i.createElement("div",{className:"wprm-admin-modal-taxonomy-container"},i.createElement(A.Z,{id:"key",label:(0,u.S)("Key")},i.createElement(g.Z,{placeholder:(0,u.S)("course"),value:"wprm_".concat(this.state.taxonomy.key),onChange:e=>{var t=e.substr(5);t=this.sanitizeSlug(t,!0),this.setState({taxonomy:tu(tu({},this.state.taxonomy),{},{key:t})})},disabled:this.state.editing})),i.createElement(A.Z,{id:"singular_name",label:(0,u.S)("Singular Name")},i.createElement(g.Z,{placeholder:(0,u.S)("Course"),value:this.state.taxonomy.singular_name,onChange:e=>{this.setState({taxonomy:tu(tu({},this.state.taxonomy),{},{singular_name:e})})}})),i.createElement(A.Z,{id:"name",label:(0,u.S)("Plural Name")},i.createElement(g.Z,{placeholder:(0,u.S)("Courses"),value:this.state.taxonomy.name,onChange:e=>{this.setState({taxonomy:tu(tu({},this.state.taxonomy),{},{name:e})})}})),i.createElement(A.Z,{id:"archive",label:(0,u.S)("Has Archive Pages")},i.createElement(xe,{value:this.state.taxonomy.archive,onChange:e=>{this.setState({taxonomy:tu(tu({},this.state.taxonomy),{},{archive:e})})}})),i.createElement(A.Z,{id:"slug",label:(0,u.S)("Slug")},i.createElement(g.Z,{placeholder:(0,u.S)("course"),value:this.state.taxonomy.slug,onChange:e=>{var t=this.sanitizeSlug(e);this.setState({taxonomy:tu(tu({},this.state.taxonomy),{},{slug:t})})}}))),i.createElement(f.Z,{savingChanges:this.state.savingChanges},i.createElement("button",{className:"button button-primary",onClick:this.saveChanges,disabled:!this.changesMade()},(0,u.S)("Save"))))}}var iu=r(40481);document.getElementById("wprm-admin-modal")&&a().setAppElement("#wprm-admin-modal");var{hooks:ou}=WPRecipeMaker["wp-recipe-maker/dist/shared"],au={"bulk-edit":ne,"input-fields":oe,menu:ce,recipe:Ys,roundup:Xs,select:$s,taxonomy:nu};class su extends i.Component{constructor(){super(),this.state={modalIsOpen:!1,mode:"",args:{}},this.content=i.createRef(),this.close=this.close.bind(this),this.closeIfAllowed=this.closeIfAllowed.bind(this)}open(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&this.state.modalIsOpen||this.setState({modalIsOpen:!0,mode:e,args:t},(()=>{window.onbeforeunload=()=>(0,u.S)("Are you sure you want to leave this page?")}))}close(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.setState({modalIsOpen:!1},(()=>{window.onbeforeunload=null,"function"==typeof e&&e()}))}closeIfAllowed(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(!this.content.current||!this.content.current.hasOwnProperty("allowCloseModal"))&&this.content.current.allowCloseModal;t&&!t()||this.close(e)}addTextToEditor(e,t){if("undefined"==typeof tinyMCE||!tinyMCE.get(t)||tinyMCE.get(t).isHidden()){var r=iu("textarea#"+t).val();iu("textarea#"+t).val(r+e)}else tinyMCE.get(t).focus(!0),tinyMCE.activeEditor.selection.collapse(!1),tinyMCE.activeEditor.execCommand("mceInsertContent",!1,e)}refreshEditor(e){"undefined"!=typeof tinyMCE&&tinyMCE.get(e)&&!tinyMCE.get(e).isHidden()&&(tinyMCE.get(e).focus(!0),tinyMCE.activeEditor.setContent(tinyMCE.activeEditor.getContent()))}render(){var e=ou.applyFilters("modal",au),t=!!e.hasOwnProperty(this.state.mode)&&e[this.state.mode];return t?i.createElement(a(),{isOpen:this.state.modalIsOpen,onRequestClose:this.closeIfAllowed,overlayClassName:"wprm-admin-modal-overlay",className:"wprm-admin-modal wprm-admin-modal-".concat(this.state.mode)},i.createElement(s.Z,{module:"Modal"},i.createElement(t,{ref:this.content,mode:this.state.mode,args:this.state.args,maybeCloseModal:this.closeIfAllowed}))):null}}var uu=document.getElementById("wprm-admin-modal");uu&&n.render(i.createElement(su,{ref:e=>{window.WPRM_Modal=e}}),uu)},43636:function(e,t,r){"use strict";var n=r(89526),i=r(76044);t.Z=e=>{var t="wprm-admin-modal-field-container";e.id&&(t+=" wprm-admin-modal-field-container-".concat(e.id));var r=null;return e.help&&(r=n.createElement(i.Z,{type:"question",title:e.help,className:"wprm-admin-icon-help"})),n.createElement("div",{className:t},e.label?n.createElement(n.Fragment,null,n.createElement("div",{className:"wprm-admin-modal-field-label"},e.label,r),n.createElement("div",{className:"wprm-admin-modal-field"},e.children)):e.children)}},69347:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});r(33130);var n=r(89526),i=r(844);function o(){return(o=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}).apply(this,arguments)}function a(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}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class l extends n.Component{shouldComponentUpdate(e){return JSON.stringify(this.props.options)!==JSON.stringify(e.options)||this.props.value!==e.value||this.props.isDisabled!==e.isDisabled}render(){var e=!1;this.props.options&&(e=this.props.options.reduce(((e,t)=>(t.hasOwnProperty("options")?e=e.concat(t.options):e.push(t),e)),[]).find((e=>e.value===this.props.value)));var t=this.props.custom?this.props.custom:{};return n.createElement(i.ZP,o({isDisabled:this.props.isDisabled,options:this.props.options,value:e,placeholder:this.props.placeholder,onChange:e=>{this.props.onChange(e.value)},styles:{control:e=>s(s({},e),{},{backgroundColor:"white"}),container:e=>s(s({},e),{},{width:"100%",maxWidth:this.props.width?this.props.width:"100%"})}},t))}}},24207:function(e,t,r){"use strict";var n=r(89526);t.Z=e=>n.createElement(n.Fragment,null,e.options.map((t=>n.createElement("div",{className:"wprm-admin-modal-field-radio-option",key:t.value},n.createElement("input",{type:"radio",value:t.value,name:"wprm-admin-radio-".concat(e.id),id:"wprm-admin-radio-".concat(e.id,"-").concat(t.value),checked:e.value==t.value,onChange:t=>{e.onChange(t.target.value)}}),n.createElement("label",{htmlFor:"wprm-admin-radio-".concat(e.id,"-").concat(t.value)},t.label)))))},59905:function(e,t,r){"use strict";var n=r(89526);t.Z=e=>{var t=!!e.hasOwnProperty("disabled")&&e.disabled,r=e.hasOwnProperty("type")?e.type:"text";return n.createElement("input",{type:r,min:e.hasOwnProperty("min")?e.min:null,max:e.hasOwnProperty("max")?e.max:null,step:e.hasOwnProperty("step")?e.step:null,disabled:t,name:e.name,value:e.value,placeholder:e.placeholder,onChange:t=>{e.onChange(t.target.value)},onKeyDown:t=>{"number"===e.type&&"-"===t.key&&t.preventDefault(),e.onKeyDown&&e.onKeyDown(t)}})}},59612:function(e,t,r){"use strict";var n=r(89526);t.Z=e=>n.createElement("textarea",{value:e.value,placeholder:e.placeholder,onChange:t=>{e.onChange(t.target.value)}})},86605:function(e,t,r){"use strict";var n=r(89526),i=r(34133);t.Z=e=>n.createElement("div",{className:"wprm-admin-modal-footer"},e.savingChanges?n.createElement(i.Z,null):n.createElement(n.Fragment,null,e.children))},96005:function(e,t,r){"use strict";var n=r(89526),i=r(52082),o=r(76044);t.Z=e=>n.createElement("div",{className:"wprm-admin-modal-header"},n.createElement("h2",null,e.children),n.createElement("div",{className:"wprm-admin-modal-close",onClick:e.onCloseModal},n.createElement(o.Z,{type:"close",title:(0,i.S)("Close")})))},5308:function(e,t,r){"use strict";r(87191);var n=r(52082),i={selectImage(e){this.select("image",e)},selectVideo(e){this.select("video",e)},select(e,t){var r={title:(0,n.S)("Select Media"),button:{text:(0,n.S)("Select")},multiple:!1};"video"===e?(r.frame="video",r.state="video-details"):r.library={type:"image"};var i=wp.media(r);i.on("select",(function(){var e=i.state().get("selection").first().toJSON();t(e)})),i.on("update",(function(){var e=i.state().media.attachment;e&&t(e)})),i.open()}};t.Z=i},96463:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});r(35054);var n=r(89526),i=r(45624),o=r(52082);class a extends n.Component{getOptions(e){return e?fetch(wprm_admin.ajax_url,{method:"POST",credentials:"same-origin",body:"action=wprm_search_recipes&security="+wprm_admin.nonce+"&search="+encodeURIComponent(e),headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}}).then((e=>e.json())).then((e=>e.data.recipes_with_id)):Promise.resolve({options:[]})}render(){return n.createElement(i.ZP,{placeholder:(0,o.S)("Select or search a recipe"),value:this.props.value,onChange:this.props.onValueChange,getOptionValue:e=>{var{id:t}=e;return t},getOptionLabel:e=>{var{text:t}=e;return t},defaultOptions:this.props.options.concat(wprm_admin.latest_recipes),loadOptions:this.getOptions.bind(this),noOptionsMessage:()=>(0,o.S)("No recipes found"),clearable:!1})}}},99237:function(e,t,r){"use strict";r.d(t,{Z:function(){return W}});var n=r(46087),i=wprm_admin.endpoints.analytics,o={delete:e=>n.Z.call("".concat(i,"/").concat(e),"DELETE")};function a(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}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=wprm_admin.endpoints.custom_taxonomies,l={save(e,t){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t),i=e?"PUT":"POST";return n.Z.call(u,i,r)}},c=wprm_admin.endpoints.dashboard,d={getAnalytics:()=>n.Z.call("".concat(c,"/analytics"))},p=wprm_admin.endpoints.notices,f={dismissNotice(e){var t={id:e};return n.Z.call(p,"DELETE",t)}},m=wprm_admin.endpoints.modal,h={parseIngredients(e){var t={ingredients:e};return n.Z.call("".concat(m,"/ingredient/parse"),"POST",t)}},g=(r(35054),wprm_admin.endpoints.manage),v=wprm_admin.endpoints.rating,b=wprm_admin.endpoints.taxonomy,y=!1,w=!1,E={getData(e){return y?(w=e,new Promise((e=>e(!1)))):this.getDataDebounced(e)},getDataDebounced(e){return y=!0,n.Z.call("".concat(g,"/").concat(e.route),"POST",e).then((e=>{if(w){var t=w;return w=!1,this.getDataDebounced(t)}return y=!1,e}))},deleteUserRatings:e=>n.Z.call("".concat(v,"/recipe/").concat(e),"DELETE"),getTerm:(e,t)=>n.Z.call("".concat(b).concat(e,"/").concat(t)),createTerm(e,t){var r={name:t};return n.Z.call("".concat(b).concat(e),"POST",r)},deleteTerm:(e,t)=>n.Z.call("".concat(b).concat(e,"/").concat(t,"?force=true"),"DELETE"),renameTerm(e,t,r){var i={name:r};return n.Z.call("".concat(b).concat(e,"/").concat(t),"POST",i)},changeTermSlug(e,t,r){var i={slug:r};return n.Z.call("".concat(b).concat(e,"/").concat(t),"POST",i)},renameTermLabel(e,t,r){var i={type:e,id:t,label:r};return n.Z.call("".concat(g,"/taxonomy/label"),"POST",i)},mergeTerm(e,t,r){var i={type:e,oldId:t,newId:r};return n.Z.call("".concat(g,"/taxonomy/merge"),"POST",i)},updateTaxonomyMeta(e,t,r){var i={};return i[e]=r,n.Z.call("".concat(b).concat(e,"/").concat(t),"POST",i)},bulkEdit(e,t,r,i){var o={type:t,ids:r,action:i};return n.Z.call("".concat(g,"/").concat(e,"/bulk"),"POST",o)}},D=wprm_admin.endpoints.modal,C=!1,S=!1,I=!1,x={getSuggestions(e){return C?(I=e,new Promise((e=>e(!1)))):this.getSuggestionsDebounced(e)},getSuggestionsDebounced(e){C=!0;var t=Date.now();return!1!==S&&500>t-S?new Promise((r=>{setTimeout((()=>{r(this.getSuggestionsDebounced(e))}),t-S)})):(S=t,n.Z.call("".concat(D,"/suggest"),"POST",e).then((e=>{if(I){var t=I;return I=!1,this.getSuggestionsDebounced(t)}return C=!1,e})))}},O=wprm_admin.endpoints.rating,A={update(e){var t={rating:e};return n.Z.call("".concat(O),"POST",t)},updateComment(e,t){var r={rating:t};return n.Z.call("".concat(O,"/comment/").concat(e),"POST",r)},delete:e=>n.Z.call("".concat(O,"/").concat(e),"DELETE")},M=wprm_admin.endpoints.recipe,B=wprm_admin.endpoints.manage,P={get:e=>n.Z.call("".concat(M,"/").concat(e,"?t=").concat(Date.now())),save(e){var t={recipe:e},r=M,i="POST",o=!!e.id&&parseInt(e.id);return o&&(r+="/".concat(o),i="PUT"),n.Z.call(r,i,t)},updateStatus(e,t){var r={status:t};return n.Z.call("".concat(M,"/").concat(e),"PUT",r)},delete(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r="".concat(M,"/").concat(e);return t&&(r+="?force=true"),n.Z.call(r,"DELETE")},deleteRevision:e=>n.Z.call("".concat(B,"/revision/").concat(e),"DELETE")},N=wprm_admin.endpoints.setting,k={save(e){var t={settings:e};return n.Z.call(N,"POST",t)}},F=wprm_admin.endpoints.template,T=[],j={},L=null,R={previewShortcode(e,t,r){return j[e]=t,clearTimeout(L),L=setTimeout((()=>{this.previewShortcodes(r)}),500),new Promise((e=>T.push(e)))},previewShortcodes(e){var t=T,r=j;T=[],j={};var n={recipeId:e,shortcodes:r};fetch("".concat(F,"/preview"),{method:"POST",headers:{"X-WP-Nonce":wprm_admin.api_nonce,Accept:"application/json","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(n)}).then((e=>e.json().then((r=>{var n=e.ok?r.preview:{};t.forEach((e=>e(n)))}))))},searchRecipes:e=>fetch(wprm_admin.ajax_url,{method:"POST",credentials:"same-origin",body:"action=wprm_search_recipes&security="+wprm_admin.nonce+"&search="+encodeURIComponent(e),headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}}).then((e=>e.json())),save(e){var t={template:e};return n.Z.call(F,"POST",t)},delete(e){var t={slug:e};return n.Z.call(F,"DELETE",t)}},_=wprm_admin.endpoints.utilities,Z={saveImage(e){var t={url:e};return n.Z.call("".concat(_,"/save_image"),"POST",t)},giveFeedback(e){var t={feedback:e};return n.Z.call("".concat(_,"/feedback"),"POST",t)}},{hooks:H}=WPRecipeMaker["wp-recipe-maker/dist/shared"],W=H.applyFilters("api",{analytics:o,customTaxonomy:l,dashboard:d,general:f,import:h,manage:E,modal:x,rating:A,recipe:P,settings:k,template:R,utilities:Z})},46087:function(e,t,r){"use strict";r(31807),r(35054),r(22321);function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(l){return void r(l)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}function o(){return(o=i((function*(e,t,r){console.log(e,t),console.log(r);var n="",i=parseInt(r.status),o=!1;300<=i&&i<=399?o="A redirection is breaking the API endpoint. Are any redirections set up in the .htaccess file or using a plugin?":401===i||403===i?o="Something is blocking access. Are you or your webhost using a firewall like Cloudflare WAF or Sucuri? Try whitelisting your own IP address or this specific action.":404===i?o="The rest API endpoint could not be found. Are your permalinks set up correctly?":500<=i&&i<=599&&(o="The server is throwing an error. It could be hitting a memory or execution limit. Check with your webhost what the exact error is in the logs."),o&&(n+="".concat(o,"\r\n\r\n")),n+="Press OK to contact support@bootstrapped.ventures for support (opens an email popup).";var a="".concat(r.url," ").concat(r.redirected?"(redirected)":"","- ").concat(r.status," - ").concat(r.statusText);n+="\r\n\r\n".concat(a);var s=!0;try{yield r.text().then((e=>{console.log(e),-1!==e.indexOf("rest_cookie_invalid_nonce")?(alert("You got logged out or your session expired. Please try logging out of WordPress and back in again."),s=!1):n+="\r\n\r\n".concat(e)}))}catch(l){console.log(l),n+="\r\n\r\n".concat(l)}if(s&&confirm(n)){var u="I received the error message below at ".concat(window.location.href,"\r\n\r\n").concat(n);window.open("mailto:".concat(encodeURIComponent("support@bootstrapped.ventures"),"?subject=").concat(encodeURIComponent("WP Recipe Maker Error Message"),"&body=").concat(encodeURIComponent(u)))}}))).apply(this,arguments)}t.Z={call(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=wprm_admin.api_nonce;"object"==typeof window.wpApiSettings&&window.wpApiSettings.nonce&&(n=window.wpApiSettings.nonce);var i={method:t,headers:{"X-WP-Nonce":n,Accept:"application/json","Content-Type":"application/json","Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:0},credentials:"same-origin"};"PUT"!==t&&"DELETE"!==t||(i.method="POST",i.headers["X-HTTP-Method-Override"]=t),r&&(i.body=JSON.stringify(r));var a=0;return e=e.replace(/\?/g,(function(e){return 2<=++a?"&":e})),fetch(e,i).then((function(t){return t.ok?t.json():(function(e,t,r){o.apply(this,arguments)}(e,i,t),!1)}))}}},48618:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});r(33290);var n=r(89526);class i extends n.Component{constructor(e){super(e),this.state={hasError:!1,error:!1,info:!1}}componentDidCatch(e,t){this.setState({hasError:!0,error:e,info:t})}render(){return n.createElement(n.Fragment,null,this.state.hasError?n.createElement("div",{className:"wprm-error-boundary"},n.createElement("p",null,n.createElement("strong",null,"Something went wrong"),n.createElement("br",null),"Please contact ",n.createElement("a",{href:"mailto:support@bootstrapped.ventures"},"support@bootstrapped.ventures")," and send along the following information:"),n.createElement("pre",null,this.props.module?"Module: ".concat(this.props.module,"\n"):null,this.state.error?"Error: ".concat(this.state.error.toString(),"\n"):null,this.state.info?"Stack: ".concat(this.state.info.componentStack):null)):this.props.children)}}},76044:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(89526),i=r(49092),o=r(95075),a={adjustable:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGV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JvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSIyLjUiIHkxPSIxMS41IiB4Mj0iNi41IiB5Mj0iMTEuNSIgZGF0YS1jb2xvcj0iY29sb3ItMiIvPiA8bGluZSBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjEyLjUiIHkxPSIxMS41IiB4Mj0iMTMuNSIgeTI9IjExLjUiIGRhdGEtY29sb3I9ImNvbG9yLTIiLz4gPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTE0LjUsMTUuNWgtMTMgYy0wLjU1MiwwLTEtMC40NDgtMS0xdi0xM2MwLTAuNTUyLDAuNDQ4LTEsMS0xaDEzYzAuNTUyLDAsMSwwLjQ0OCwxLDF2MTNDMTUuNSwxNS4wNTIsMTUuMDUyLDE1LjUsMTQuNSwxNS41eiIvPjwvZz48L3N2Zz4="},s=e=>{var t=!!a.hasOwnProperty(e.type)&&a[e.type];if(!t)return null;var r=e.title,s=e.className?"wprm-admin-icon ".concat(e.className):"wprm-admin-icon",u=!!e.hasOwnProperty("hidden")&&e.hidden;return u&&(r="",s+=" wprm-admin-icon-hidden"),n.createElement(o.Z,{content:r},n.createElement("span",{className:s,onClick:u?()=>{}:e.onClick},n.createElement(i.Z,{src:t})))}},34133:function(e,t,r){"use strict";var n=r(89526);t.Z=e=>n.createElement("div",{className:"wprm-admin-loader"})},95075:function(e,t,r){"use strict";var n=r(89526),i=r(20877);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}function a(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){s(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}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.Z=e=>{if(!e.content)return e.children;var t=e.hasOwnProperty("style")?e.style:{};return n.createElement(i.Tooltip,{html:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.content}}),popperOptions:{modifiers:{addZIndex:{enabled:!0,order:810,fn:e=>a(a({},e),{},{styles:a(a({},e.styles),{},{zIndex:1e5})})},preventOverflow:{boundariesElement:"window"}}},style:t},e.children)}},52082:function(e,t,r){"use strict";function n(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}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{S:function(){return s}});var a={};function s(e){return a.hasOwnProperty(e)?a[e]:e}window.hasOwnProperty("wprm_public")&&wprm_public.hasOwnProperty("translations")&&(a=i(i({},a),wprm_public.translations)),window.hasOwnProperty("wprm_admin")&&wprm_admin.hasOwnProperty("translations")&&(a=i(i({},a),wprm_admin.translations))},61416:function(e,t,r){"use strict";function n(){return(n=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}).apply(this,arguments)}r.d(t,{Z:function(){return n}})},93661:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}r.d(t,{Z:function(){return n}})},71236:function(e,t,r){"use strict";var n=r(59833),i=r(24697),o="/*|*/";function a(e){e&&s.current.insert(e+"}")}var s={current:null},u=function(e,t,r,n,i,u,l,c,d,p){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return s.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===c)return t+o;break;case 3:switch(c){case 102:case 112:return s.current.insert(r[0]+t),"";default:return t+(0===p?o:"")}case-2:t.split("/*|*/}").forEach(a)}};t.Z=function(e){void 0===e&&(e={});var t,r=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var o=new i.Z(t);var a,l={};a=e.container||document.head;var c,d=document.querySelectorAll("style[data-emotion-"+r+"]");Array.prototype.forEach.call(d,(function(e){e.getAttribute("data-emotion-"+r).split(" ").forEach((function(e){l[e]=!0})),e.parentNode!==a&&a.appendChild(e)})),o.use(e.stylisPlugins)(u),c=function(e,t,r,n){var i=t.name;s.current=r,o(e,t.styles),n&&(p.inserted[i]=!0)};var p={key:r,sheet:new n.m({key:r,container:a,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:l,registered:{},insert:c};return p}},12821:function(e,t,r){"use strict";r.d(t,{nq:function(){return d},tZ:function(){return v},F4:function(){return b},ms:function(){return E}});var n=r(89526),i=r(71236),o=r(56002),a=r(26794),s=r(59833),u=r(72144);var l=(0,n.createContext)((0,i.Z)()),c=(0,n.createContext)({}),d=l.Provider,p=function(e){return(0,n.forwardRef)((function(t,r){return(0,n.createElement)(l.Consumer,null,(function(n){return e(t,n,r)}))}))},f="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",m=Object.prototype.hasOwnProperty,h=function(e,t,r,i){var s=t[f],u=[],l="",c=null===r?t.css:t.css(r);"string"==typeof c&&void 0!==e.registered[c]&&(c=e.registered[c]),u.push(c),void 0!==t.className&&(l=(0,o.f)(e.registered,u,t.className));var d=(0,a.O)(u);(0,o.M)(e,d,"string"==typeof s);l+=e.key+"-"+d.name;var p={};for(var h in t)m.call(t,h)&&"css"!==h&&h!==f&&(p[h]=t[h]);return p.ref=i,p.className=l,(0,n.createElement)(s,p)},g=p((function(e,t,r){return"function"==typeof e.css?(0,n.createElement)(c.Consumer,null,(function(n){return h(t,e,n,r)})):h(t,e,null,r)}));var v=function(e,t){var r=arguments;if(null==t||null==t.css)return n.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=g;var a={};for(var s in t)m.call(t,s)&&(a[s]=t[s]);a[f]=e,o[1]=a;for(var u=2;u<i;u++)o[u]=r[u];return n.createElement.apply(null,o)},b=(n.Component,function(){var e=u.Z.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}),y=function e(t){for(var r=t.length,n=0,i="";n<r;n++){var o=t[n];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};function w(e,t,r){var n=[],i=(0,o.f)(e,n,r);return n.length<2?r:i+t(n)}var E=p((function(e,t){return(0,n.createElement)(c.Consumer,null,(function(r){var n=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=(0,a.O)(r,t.registered);return(0,o.M)(t,i,!1),t.key+"-"+i.name},i={css:n,cx:function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return w(t.registered,n,y(r))},theme:r},s=e.children(i);return!0,s}))}))},72144:function(e,t,r){"use strict";var n=r(26794);t.Z=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.O)(t)}},95862:function(e,t){"use strict";t.Z=function(e){for(var t,r=e.length,n=r^r,i=0;r>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),r-=4,++i;switch(r){case 3:n^=(255&e.charCodeAt(i+2))<<16;case 2:n^=(255&e.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(i)))+((1540483477*(n>>>16)&65535)<<16)}return n=1540483477*(65535&(n^=n>>>13))+((1540483477*(n>>>16)&65535)<<16),((n^=n>>>15)>>>0).toString(36)}},93059:function(e,t){"use strict";t.Z=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}},26794:function(e,t,r){"use strict";r.d(t,{O:function(){return f}});var n=r(95862),i=r(8560),o=r(93059),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=(0,o.Z)((function(e){return e.replace(a,"-$&").toLowerCase()})),l=function(e,t){if(null==t||"boolean"==typeof t)return"";switch(e){case"animation":case"animationName":"string"==typeof t&&(t=t.replace(s,(function(e,t,r){return d={name:t,styles:r,next:d},t})))}return 1!==i.Z[e]&&45!==e.charCodeAt(1)&&"number"==typeof t&&0!==t?t+"px":t};function c(e,t,r,n){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return d={name:r.name,styles:r.styles,next:d},r.name;if(void 0!==r.styles){var i=r.next;if(void 0!==i)for(;void 0!==i;)d={name:i.name,styles:i.styles,next:d},i=i.next;return r.styles}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=c(e,t,r[i],!1);else for(var o in r){var a=r[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?n+=o+"{"+t[a]+"}":n+=u(o)+":"+l(o,a)+";";else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]])n+=o+"{"+c(e,t,a,!1)+"}";else for(var s=0;s<a.length;s++)n+=u(o)+":"+l(o,a[s])+";"}return n}(e,t,r);case"function":if(void 0!==e){var o=d,a=r(e);return d=o,c(e,t,a,n)}default:if(null==t)return r;var s=t[r];return void 0===s||n?r:s}}var d,p=/label:\s*([^\s;\n{]+)\s*;/g;var f=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i=!0,o="";d=void 0;var a=e[0];null==a||void 0===a.raw?(i=!1,o+=c(r,t,a,!1)):o+=a[0];for(var s=1;s<e.length;s++)o+=c(r,t,e[s],46===o.charCodeAt(o.length-1)),i&&(o+=a[s]);p.lastIndex=0;for(var u,l="";null!==(u=p.exec(o));)l+="-"+u[1];return{name:(0,n.Z)(o)+l,styles:o,next:d}}},59833:function(e,t,r){"use strict";r.d(t,{m:function(){return n}});var n=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,r=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(r,t),this.tags.push(r)}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{var o=105===e.charCodeAt(1)&&64===e.charCodeAt(0);i.insertRule(e,o?0:i.cssRules.length)}catch(a){0}}else n.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}()},24697:function(e,t){"use strict";t.Z=function(e){function t(e,n,u,l,p){for(var f,m,h,g,w,D=0,C=0,S=0,I=0,x=0,N=0,F=h=f=0,j=0,L=0,R=0,_=0,Z=u.length,H=Z-1,W="",U="",G="",q="";j<Z;){if(m=u.charCodeAt(j),j===H&&0!==C+I+S+D&&(0!==C&&(m=47===C?10:47),I=S=D=0,Z++,H++),0===C+I+S+D){if(j===H&&(0<L&&(W=W.replace(d,"")),0<W.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:W+=u.charAt(j)}m=59}switch(m){case 123:for(f=(W=W.trim()).charCodeAt(0),h=1,_=++j;j<Z;){switch(m=u.charCodeAt(j)){case 123:h++;break;case 125:h--;break;case 47:switch(m=u.charCodeAt(j+1)){case 42:case 47:e:{for(F=j+1;F<H;++F)switch(u.charCodeAt(F)){case 47:if(42===m&&42===u.charCodeAt(F-1)&&j+2!==F){j=F+1;break e}break;case 10:if(47===m){j=F+1;break e}}j=F}}break;case 91:m++;case 40:m++;case 34:case 39:for(;j++<H&&u.charCodeAt(j)!==m;);}if(0===h)break;j++}switch(h=u.substring(_,j),0===f&&(f=(W=W.replace(c,"").trim()).charCodeAt(0)),f){case 64:switch(0<L&&(W=W.replace(d,"")),m=W.charCodeAt(1)){case 100:case 109:case 115:case 45:L=n;break;default:L=P}if(_=(h=t(n,L,h,m,p+1)).length,0<k&&(w=s(3,h,L=r(P,W,R),n,A,O,_,m,p,l),W=L.join(""),void 0!==w&&0===(_=(h=w.trim()).length)&&(m=0,h="")),0<_)switch(m){case 115:W=W.replace(E,a);case 100:case 109:case 45:h=W+"{"+h+"}";break;case 107:h=(W=W.replace(v,"$1 $2"))+"{"+h+"}",h=1===B||2===B&&o("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=W+h,112===l&&(U+=h,h="")}else h="";break;default:h=t(n,r(n,W,R),h,l,p+1)}G+=h,h=R=L=F=f=0,W="",m=u.charCodeAt(++j);break;case 125:case 59:if(1<(_=(W=(0<L?W.replace(d,""):W).trim()).length))switch(0===F&&(f=W.charCodeAt(0),45===f||96<f&&123>f)&&(_=(W=W.replace(" ",":")).length),0<k&&void 0!==(w=s(1,W,n,e,A,O,U.length,l,p,l))&&0===(_=(W=w.trim()).length)&&(W="\0\0"),f=W.charCodeAt(0),m=W.charCodeAt(1),f){case 0:break;case 64:if(105===m||99===m){q+=W+u.charAt(j);break}default:58!==W.charCodeAt(_-1)&&(U+=i(W,f,m,W.charCodeAt(2)))}R=L=F=f=0,W="",m=u.charCodeAt(++j)}}switch(m){case 13:case 10:47===C?C=0:0===1+f&&107!==l&&0<W.length&&(L=1,W+="\0"),0<k*T&&s(0,W,n,e,A,O,U.length,l,p,l),O=1,A++;break;case 59:case 125:if(0===C+I+S+D){O++;break}default:switch(O++,g=u.charAt(j),m){case 9:case 32:if(0===I+D+C)switch(x){case 44:case 58:case 9:case 32:g="";break;default:32!==m&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===I+C+D&&(L=R=1,g="\f"+g);break;case 108:if(0===I+C+D+M&&0<F)switch(j-F){case 2:112===x&&58===u.charCodeAt(j-3)&&(M=x);case 8:111===N&&(M=N)}break;case 58:0===I+C+D&&(F=j);break;case 44:0===C+S+I+D&&(L=1,g+="\r");break;case 34:case 39:0===C&&(I=I===m?0:0===I?m:I);break;case 91:0===I+C+S&&D++;break;case 93:0===I+C+S&&D--;break;case 41:0===I+C+D&&S--;break;case 40:if(0===I+C+D){if(0===f)switch(2*x+3*N){case 533:break;default:f=1}S++}break;case 64:0===C+S+I+D+F+h&&(h=1);break;case 42:case 47:if(!(0<I+D+S))switch(C){case 0:switch(2*m+3*u.charCodeAt(j+1)){case 235:C=47;break;case 220:_=j,C=42}break;case 42:47===m&&42===x&&_+2!==j&&(33===u.charCodeAt(_+2)&&(U+=u.substring(_,j+1)),g="",C=0)}}0===C&&(W+=g)}N=x,x=m,j++}if(0<(_=U.length)){if(L=n,0<k&&(void 0!==(w=s(2,U,L,e,A,O,_,l,p,l))&&0===(U=w).length))return q+U+G;if(U=L.join(",")+"{"+U+"}",0!=B*M){switch(2!==B||o(U,2)||(M=0),M){case 111:U=U.replace(y,":-moz-$1")+U;break;case 112:U=U.replace(b,"::-webkit-input-$1")+U.replace(b,"::-moz-$1")+U.replace(b,":-ms-input-$1")+U}M=0}}return q+U+G}function r(e,t,r){var i=t.trim().split(h);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=n(e,t[s],r).trim();break;default:var u=s=0;for(t=[];s<o;++s)for(var l=0;l<a;++l)t[u++]=n(e[l]+" ",i[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===B||2===B&&o(u,1)?"-webkit-"+u+u:u}if(0===B||2===B&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(x,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(w,"tb");break;case 232:u=a.replace(w,"tb-rl");break;case 220:u=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(C,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(C,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===I.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+a}return a}function o(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),F(2!==t?n:n.replace(S,"$1"),r,t)}function a(e,t){var r=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(D," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,i,o,a,s,u,c){for(var d,p=0,f=t;p<k;++p)switch(d=N[p].call(l,e,f,r,n,i,o,a,s,u,c)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function u(e){return void 0!==(e=e.prefix)&&(F=null,e?"function"!=typeof e?B=1:(B=2,F=e):B=0),u}function l(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<k){var i=s(-1,r,n,n,A,O,0,0,0,0);void 0!==i&&"string"==typeof i&&(r=i)}var o=t(P,n,r,0,0);return 0<k&&(void 0!==(i=s(-2,o,n,n,A,O,o.length,0,0,0))&&(o=i)),"",M=0,O=A=1,o}var c=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,m=/([,: ])(transform)/g,h=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,E=/\(\s*(.*)\s*\)/g,D=/([\s\S]*?);/g,C=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,I=/stretch|:\s*\w+\-(?:conte|avail)/,x=/([^-])(image-set\()/,O=1,A=1,M=0,B=1,P=[],N=[],k=0,F=null,T=0;return l.use=function e(t){switch(t){case void 0:case null:k=N.length=0;break;default:if("function"==typeof t)N[k++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else T=0|!!t}return e},l.set=u,void 0!==e&&u(e),l}},8560:function(e,t){"use strict";t.Z={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},56002:function(e,t,r){"use strict";r.d(t,{f:function(){return n},M:function(){return i}});function n(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]):n+=r+" "})),n}var i=function(e,t,r){var n=e.key+"-"+t.name;if(!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles),void 0===e.inserted[t.name]){var i=t;do{e.insert("."+n,i,e.sheet,!0);i=i.next}while(void 0!==i)}}},38974:function(e){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=r(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(r),a=Math.max(i,o),s=0,u=e.map([t,r],(function(t){var r=a-e.getVersionPrecision(t),n=t+new Array(r+1).join(".0");return e.map(n.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(n&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(u[0][a]>u[1][a])return 1;if(u[0][a]===u[1][a]){if(a===s)return 0;a-=1}else if(u[0][a]<u[1][a])return-1}},e.map=function(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)n.push(t(e[r]));return n},e.find=function(e,t){var r,n;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,n=e.length;r<n;r+=1){var i=e[r];if(t(i,r))return i}},e.assign=function(e){for(var t,r,n=e,i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(Object.assign)return Object.assign.apply(Object,[e].concat(o));var s=function(){var e=o[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){n[t]=e[t]}))};for(t=0,r=o.length;t<r;t+=1)s();return e},e.getBrowserAlias=function(e){return n.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return n.BROWSER_MAP[e]||""},e}();t.default=i,e.exports=t.default},18:function(e,t,r){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(91))&&n.__esModule?n:{default:n},o=r(18);function a(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)}}var s=function(){function e(){}var t,r,n;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new i.default(e,t)},e.parse=function(e){return new i.default(e).getResult()},t=e,n=[{key:"BROWSER_MAP",get:function(){return o.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return o.ENGINE_MAP}},{key:"OS_MAP",get:function(){return o.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return o.PLATFORMS_MAP}}],(r=null)&&a(t.prototype,r),n&&a(t,n),e}();t.default=s,e.exports=t.default},91:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=u(r(92)),i=u(r(93)),o=u(r(94)),a=u(r(95)),s=u(r(17));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=s.default.find(n.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=s.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=s.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=s.default.find(a.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return s.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,r={},n=0,i={},o=0;if(Object.keys(e).forEach((function(t){var a=e[t];"string"==typeof a?(i[t]=a,o+=1):"object"==typeof a&&(r[t]=a,n+=1)})),n>0){var a=Object.keys(r),u=s.default.find(a,(function(e){return t.isOS(e)}));if(u){var l=this.satisfies(r[u]);if(void 0!==l)return l}var c=s.default.find(a,(function(e){return t.isPlatform(e)}));if(c){var d=this.satisfies(r[c]);if(void 0!==d)return d}}if(o>0){var p=Object.keys(i),f=s.default.find(p,(function(e){return t.isBrowser(e,!0)}));if(void 0!==f)return this.compareVersion(i[f])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(n);return t&&i&&(n=i.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(s.default.compareVersions(i,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=l,e.exports=t.default},92:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},r=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=i.default.getMacOSVersionName(t),n={name:o.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=i.default.getAndroidVersionName(t),n={name:o.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:o.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},r=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},r=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},r=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},r=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=a,e.exports=t.default}})},77447:function(e,t,r){"use strict";var n=r(12817);e.exports=function(e,t){var r,i,o,a,s,u,l=!1;t||(t={}),r=t.debug||!1;try{if(o=n(),a=document.createRange(),s=document.getSelection(),(u=document.createElement("span")).textContent=e,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){r.stopPropagation(),t.format&&(r.preventDefault(),r.clipboardData.clearData(),r.clipboardData.setData(t.format,e))})),document.body.appendChild(u),a.selectNodeContents(u),s.addRange(a),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(c){r&&console.error("unable to copy using execCommand: ",c),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),l=!0}catch(c){r&&console.error("unable to copy using clipboardData: ",c),r&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(a):s.removeAllRanges()),u&&document.body.removeChild(u),o()}return l}},22020:function(e,t,r){r(59789),r(68502);var n=r(13145);e.exports=n("Array","flat")},9968:function(e,t,r){var n=r(22020);e.exports=n},28641:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},75017:function(e,t,r){var n=r(52786);e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},6677:function(e,t,r){var n=r(52280),i=r(51569),o=r(86385),a=n("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},13350:function(e,t,r){"use strict";var n=r(91140).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},9519:function(e){e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},83875:function(e,t,r){var n=r(52786);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},37190:function(e,t,r){var n=r(29580),i=r(35108),o=r(32565),a=function(e){return function(t,r,a){var s,u=n(t),l=i(u.length),c=o(a,l);if(e&&r!=r){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===r)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},82091:function(e,t,r){var n=r(79044),i=r(52280),o=r(11197),a=i("species");e.exports=function(e){return o>=51||!n((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},54324:function(e,t,r){"use strict";var n=r(79044);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){throw 1},1)}))}},5673:function(e,t,r){var n=r(7493),i=r(79044),o=r(40454),a=Object.defineProperty,s={},u=function(e){throw e};e.exports=function(e,t){if(o(s,e))return s[e];t||(t={});var r=[][e],l=!!o(t,"ACCESSORS")&&t.ACCESSORS,c=o(t,0)?t[0]:u,d=o(t,1)?t[1]:void 0;return s[e]=!!r&&!i((function(){if(l&&!n)return!0;var e={length:-1};l?a(e,1,{enumerable:!0,get:u}):e[1]=1,r.call(e,c,d)}))}},80150:function(e,t,r){var n=r(52786),i=r(71982),o=r(52280)("species");e.exports=function(e,t){var r;return i(e)&&("function"!=typeof(r=e.constructor)||r!==Array&&!i(r.prototype)?n(r)&&null===(r=r[o])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===t?0:t)}},9637:function(e,t,r){var n=r(83875);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(a){var o=e.return;throw void 0!==o&&n(o.call(e)),a}}},8662:function(e,t,r){var n=r(52280)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(s){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},e(o)}catch(s){}return r}},79159:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},36994:function(e,t,r){var n=r(57301),i=r(79159),o=r(52280)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=Object(e),o))?r:a?i(t):"Object"==(n=i(t))&&"function"==typeof t.callee?"Arguments":n}},73870:function(e,t,r){var n=r(40454),i=r(31561),o=r(66012),a=r(86385);e.exports=function(e,t){for(var r=i(t),s=a.f,u=o.f,l=0;l<r.length;l++){var c=r[l];n(e,c)||s(e,c,u(t,c))}}},15454:function(e,t,r){var n=r(52280)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(i){}}return!1}},25115:function(e,t,r){var n=r(79044);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},6181:function(e,t,r){"use strict";var n=r(97022).IteratorPrototype,i=r(51569),o=r(69199),a=r(60878),s=r(44818),u=function(){return this};e.exports=function(e,t,r){var l=t+" Iterator";return e.prototype=i(n,{next:o(1,r)}),a(e,l,!1,!0),s[l]=u,e}},45899:function(e,t,r){var n=r(7493),i=r(86385),o=r(69199);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},69199:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},35039:function(e,t,r){"use strict";var n=r(21893),i=r(86385),o=r(69199);e.exports=function(e,t,r){var a=n(t);a in e?i.f(e,a,o(0,r)):e[a]=r}},61495:function(e,t,r){"use strict";var n=r(19882),i=r(6181),o=r(12654),a=r(22412),s=r(60878),u=r(45899),l=r(35974),c=r(52280),d=r(21178),p=r(44818),f=r(97022),m=f.IteratorPrototype,h=f.BUGGY_SAFARI_ITERATORS,g=c("iterator"),v="keys",b="values",y="entries",w=function(){return this};e.exports=function(e,t,r,c,f,E,D){i(r,t,c);var C,S,I,x=function(e){if(e===f&&P)return P;if(!h&&e in M)return M[e];switch(e){case v:case b:case y:return function(){return new r(this,e)}}return function(){return new r(this)}},O=t+" Iterator",A=!1,M=e.prototype,B=M[g]||M["@@iterator"]||f&&M[f],P=!h&&B||x(f),N="Array"==t&&M.entries||B;if(N&&(C=o(N.call(new e)),m!==Object.prototype&&C.next&&(d||o(C)===m||(a?a(C,m):"function"!=typeof C[g]&&u(C,g,w)),s(C,O,!0,!0),d&&(p[O]=w))),f==b&&B&&B.name!==b&&(A=!0,P=function(){return B.call(this)}),d&&!D||M[g]===P||u(M,g,P),p[t]=P,f)if(S={values:x(b),keys:E?P:x(v),entries:x(y)},D)for(I in S)(h||A||!(I in M))&&l(M,I,S[I]);else n({target:t,proto:!0,forced:h||A},S);return S}},7493:function(e,t,r){var n=r(79044);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},92750:function(e,t,r){var n=r(98363),i=r(52786),o=n.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},12848:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},53121:function(e,t,r){var n=r(82647);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},82647:function(e,t,r){var n=r(22773);e.exports=n("navigator","userAgent")||""},11197:function(e,t,r){var n,i,o=r(98363),a=r(82647),s=o.process,u=s&&s.versions,l=u&&u.v8;l?i=(n=l.split("."))[0]+n[1]:a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=n[1]),e.exports=i&&+i},13145:function(e,t,r){var n=r(98363),i=r(98166),o=Function.call;e.exports=function(e,t,r){return i(o,n[e].prototype[t],r)}},48869:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},19882:function(e,t,r){var n=r(98363),i=r(66012).f,o=r(45899),a=r(35974),s=r(51621),u=r(73870),l=r(86291);e.exports=function(e,t){var r,c,d,p,f,m=e.target,h=e.global,g=e.stat;if(r=h?n:g?n[m]||s(m,{}):(n[m]||{}).prototype)for(c in t){if(p=t[c],d=e.noTargetGet?(f=i(r,c))&&f.value:r[c],!l(h?c:m+(g?".":"#")+c,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;u(p,d)}(e.sham||d&&d.sham)&&o(p,"sham",!0),a(r,c,p,e)}}},79044:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},81492:function(e,t,r){"use strict";r(39275);var n=r(35974),i=r(79044),o=r(52280),a=r(99749),s=r(45899),u=o("species"),l=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),c="$0"==="a".replace(/./,"$0"),d=o("replace"),p=!!/./[d]&&""===/./[d]("a","$0"),f=!i((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));e.exports=function(e,t,r,d){var m=o(e),h=!i((function(){var t={};return t[m]=function(){return 7},7!=""[e](t)})),g=h&&!i((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[m]=/./[m]),r.exec=function(){return t=!0,null},r[m](""),!t}));if(!h||!g||"replace"===e&&(!l||!c||p)||"split"===e&&!f){var v=/./[m],b=r(m,""[e],(function(e,t,r,n,i){return t.exec===a?h&&!i?{done:!0,value:v.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}),{REPLACE_KEEPS_$0:c,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),y=b[0],w=b[1];n(String.prototype,e,y),n(RegExp.prototype,m,2==t?function(e,t){return w.call(e,this,t)}:function(e){return w.call(e,this)})}d&&s(RegExp.prototype[m],"sham",!0)}},92613:function(e,t,r){"use strict";var n=r(71982),i=r(35108),o=r(98166),a=function(e,t,r,s,u,l,c,d){for(var p,f=u,m=0,h=!!c&&o(c,d,3);m<s;){if(m in r){if(p=h?h(r[m],m,t):r[m],l>0&&n(p))f=a(e,t,p,i(p.length),f,l-1)-1;else{if(f>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[f]=p}f++}m++}return f};e.exports=a},98166:function(e,t,r){var n=r(28641);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},22773:function(e,t,r){var n=r(67290),i=r(98363),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(i[e]):n[e]&&n[e][t]||i[e]&&i[e][t]}},77193:function(e,t,r){var n=r(36994),i=r(44818),o=r(52280)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[n(e)]}},98363:function(e,t,r){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||Function("return this")()},40454:function(e){var t={}.hasOwnProperty;e.exports=function(e,r){return t.call(e,r)}},47505:function(e){e.exports={}},46271:function(e,t,r){var n=r(98363);e.exports=function(e,t){var r=n.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))}},47055:function(e,t,r){var n=r(22773);e.exports=n("document","documentElement")},67548:function(e,t,r){var n=r(7493),i=r(79044),o=r(92750);e.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},78609:function(e,t,r){var n=r(79044),i=r(79159),o="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},59250:function(e,t,r){var n=r(52786),i=r(22412);e.exports=function(e,t,r){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==r&&n(a=o.prototype)&&a!==r.prototype&&i(e,a),e}},56429:function(e,t,r){var n=r(49415),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return i.call(e)}),e.exports=n.inspectSource},20821:function(e,t,r){var n,i,o,a=r(36830),s=r(98363),u=r(52786),l=r(45899),c=r(40454),d=r(50466),p=r(47505),f=s.WeakMap;if(a){var m=new f,h=m.get,g=m.has,v=m.set;n=function(e,t){return v.call(m,e,t),t},i=function(e){return h.call(m,e)||{}},o=function(e){return g.call(m,e)}}else{var b=d("state");p[b]=!0,n=function(e,t){return l(e,b,t),t},i=function(e){return c(e,b)?e[b]:{}},o=function(e){return c(e,b)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!u(t)||(r=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},68089:function(e,t,r){var n=r(52280),i=r(44818),o=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},71982:function(e,t,r){var n=r(79159);e.exports=Array.isArray||function(e){return"Array"==n(e)}},86291:function(e,t,r){var n=r(79044),i=/#|\.prototype\./,o=function(e,t){var r=s[a(e)];return r==l||r!=u&&("function"==typeof t?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},52786:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},21178:function(e){e.exports=!1},42622:function(e,t,r){var n=r(52786),i=r(79159),o=r(52280)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},5166:function(e,t,r){var n=r(83875),i=r(68089),o=r(35108),a=r(98166),s=r(77193),u=r(9637),l=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,r,c,d){var p,f,m,h,g,v,b,y=a(t,r,c?2:1);if(d)p=e;else{if("function"!=typeof(f=s(e)))throw TypeError("Target is not iterable");if(i(f)){for(m=0,h=o(e.length);h>m;m++)if((g=c?y(n(b=e[m])[0],b[1]):y(e[m]))&&g instanceof l)return g;return new l(!1)}p=f.call(e)}for(v=p.next;!(b=v.call(p)).done;)if("object"==typeof(g=u(p,y,b.value,c))&&g&&g instanceof l)return g;return new l(!1)}).stop=function(e){return new l(!0,e)}},97022:function(e,t,r){"use strict";var n,i,o,a=r(12654),s=r(45899),u=r(40454),l=r(52280),c=r(21178),d=l("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(i=a(a(o)))!==Object.prototype&&(n=i):p=!0),null==n&&(n={}),c||u(n,d)||s(n,d,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},44818:function(e){e.exports={}},71800:function(e,t,r){var n,i,o,a,s,u,l,c,d=r(98363),p=r(66012).f,f=r(79159),m=r(84643).set,h=r(53121),g=d.MutationObserver||d.WebKitMutationObserver,v=d.process,b=d.Promise,y="process"==f(v),w=p(d,"queueMicrotask"),E=w&&w.value;E||(n=function(){var e,t;for(y&&(e=v.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(r){throw i?a():o=void 0,r}}o=void 0,e&&e.enter()},y?a=function(){v.nextTick(n)}:g&&!h?(s=!0,u=document.createTextNode(""),new g(n).observe(u,{characterData:!0}),a=function(){u.data=s=!s}):b&&b.resolve?(l=b.resolve(void 0),c=l.then,a=function(){c.call(l,n)}):a=function(){m.call(d,n)}),e.exports=E||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},58369:function(e,t,r){var n=r(98363);e.exports=n.Promise},3850:function(e,t,r){var n=r(79044);e.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},36830:function(e,t,r){var n=r(98363),i=r(56429),o=n.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},29269:function(e,t,r){"use strict";var n=r(28641),i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},21049:function(e,t,r){var n=r(42622);e.exports=function(e){if(n(e))throw TypeError("The method doesn't accept regular expressions");return e}},45856:function(e,t,r){"use strict";var n=r(7493),i=r(79044),o=r(60667),a=r(89612),s=r(81513),u=r(30744),l=r(78609),c=Object.assign,d=Object.defineProperty;e.exports=!c||i((function(){if(n&&1!==c({b:1},c(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),i="abcdefghijklmnopqrst";return e[r]=7,i.split("").forEach((function(e){t[e]=e})),7!=c({},e)[r]||o(c({},t)).join("")!=i}))?function(e,t){for(var r=u(e),i=arguments.length,c=1,d=a.f,p=s.f;i>c;)for(var f,m=l(arguments[c++]),h=d?o(m).concat(d(m)):o(m),g=h.length,v=0;g>v;)f=h[v++],n&&!p.call(m,f)||(r[f]=m[f]);return r}:c},51569:function(e,t,r){var n,i=r(83875),o=r(17840),a=r(48869),s=r(47505),u=r(47055),l=r(92750),c=r(50466),d=c("IE_PROTO"),p=function(){},f=function(e){return"<script>"+e+"</"+"script>"},m=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(i){}var e,t;m=n?function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t}(n):((t=l("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F);for(var r=a.length;r--;)delete m.prototype[a[r]];return m()};s[d]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(p.prototype=i(e),r=new p,p.prototype=null,r[d]=e):r=m(),void 0===t?r:o(r,t)}},17840:function(e,t,r){var n=r(7493),i=r(86385),o=r(83875),a=r(60667);e.exports=n?Object.defineProperties:function(e,t){o(e);for(var r,n=a(t),s=n.length,u=0;s>u;)i.f(e,r=n[u++],t[r]);return e}},86385:function(e,t,r){var n=r(7493),i=r(67548),o=r(83875),a=r(21893),s=Object.defineProperty;t.f=n?s:function(e,t,r){if(o(e),t=a(t,!0),o(r),i)try{return s(e,t,r)}catch(n){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},66012:function(e,t,r){var n=r(7493),i=r(81513),o=r(69199),a=r(29580),s=r(21893),u=r(40454),l=r(67548),c=Object.getOwnPropertyDescriptor;t.f=n?c:function(e,t){if(e=a(e),t=s(t,!0),l)try{return c(e,t)}catch(r){}if(u(e,t))return o(!i.f.call(e,t),e[t])}},87994:function(e,t,r){var n=r(18794),i=r(48869).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},89612:function(e,t){t.f=Object.getOwnPropertySymbols},12654:function(e,t,r){var n=r(40454),i=r(30744),o=r(50466),a=r(25115),s=o("IE_PROTO"),u=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),n(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},18794:function(e,t,r){var n=r(40454),i=r(29580),o=r(37190).indexOf,a=r(47505);e.exports=function(e,t){var r,s=i(e),u=0,l=[];for(r in s)!n(a,r)&&n(s,r)&&l.push(r);for(;t.length>u;)n(s,r=t[u++])&&(~o(l,r)||l.push(r));return l}},60667:function(e,t,r){var n=r(18794),i=r(48869);e.exports=Object.keys||function(e){return n(e,i)}},81513:function(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);t.f=i?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},22412:function(e,t,r){var n=r(83875),i=r(75017);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(o){}return function(r,o){return n(r),i(o),t?e.call(r,o):r.__proto__=o,r}}():void 0)},31561:function(e,t,r){var n=r(22773),i=r(87994),o=r(89612),a=r(83875);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?t.concat(r(e)):t}},67290:function(e,t,r){var n=r(98363);e.exports=n},74443:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},11621:function(e,t,r){var n=r(83875),i=r(52786),o=r(29269);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},7592:function(e,t,r){var n=r(35974);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},35974:function(e,t,r){var n=r(98363),i=r(45899),o=r(40454),a=r(51621),s=r(56429),u=r(20821),l=u.get,c=u.enforce,d=String(String).split("String");(e.exports=function(e,t,r,s){var u=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof r&&("string"!=typeof t||o(r,"name")||i(r,"name",t),c(r).source=d.join("string"==typeof t?t:"")),e!==n?(u?!p&&e[t]&&(l=!0):delete e[t],l?e[t]=r:i(e,t,r)):l?e[t]=r:a(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||s(this)}))},94088:function(e,t,r){var n=r(79159),i=r(99749);e.exports=function(e,t){var r=e.exec;if("function"==typeof r){var o=r.call(e,t);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},99749:function(e,t,r){"use strict";var n,i,o=r(58083),a=r(97047),s=RegExp.prototype.exec,u=String.prototype.replace,l=s,c=(n=/a/,i=/b*/g,s.call(n,"a"),s.call(i,"a"),0!==n.lastIndex||0!==i.lastIndex),d=a.UNSUPPORTED_Y||a.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(c||p||d)&&(l=function(e){var t,r,n,i,a=this,l=d&&a.sticky,f=o.call(a),m=a.source,h=0,g=e;return l&&(-1===(f=f.replace("y","")).indexOf("g")&&(f+="g"),g=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(m="(?: "+m+")",g=" "+g,h++),r=new RegExp("^(?:"+m+")",f)),p&&(r=new RegExp("^"+m+"$(?!\\s)",f)),c&&(t=a.lastIndex),n=s.call(l?r:a,g),l?n?(n.input=n.input.slice(h),n[0]=n[0].slice(h),n.index=a.lastIndex,a.lastIndex+=n[0].length):a.lastIndex=0:c&&n&&(a.lastIndex=a.global?n.index+n[0].length:t),p&&n&&n.length>1&&u.call(n[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)})),n}),e.exports=l},58083:function(e,t,r){"use strict";var n=r(83875);e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},97047:function(e,t,r){"use strict";var n=r(79044);function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=n((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=n((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},96411:function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},10420:function(e){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},51621:function(e,t,r){var n=r(98363),i=r(45899);e.exports=function(e,t){try{i(n,e,t)}catch(r){n[e]=t}return t}},57323:function(e,t,r){"use strict";var n=r(22773),i=r(86385),o=r(52280),a=r(7493),s=o("species");e.exports=function(e){var t=n(e),r=i.f;a&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},60878:function(e,t,r){var n=r(86385).f,i=r(40454),o=r(52280)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},50466:function(e,t,r){var n=r(53580),i=r(34524),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},49415:function(e,t,r){var n=r(98363),i=r(51621),o="__core-js_shared__",a=n[o]||i(o,{});e.exports=a},53580:function(e,t,r){var n=r(21178),i=r(49415);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},7270:function(e,t,r){var n=r(83875),i=r(28641),o=r(52280)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||null==(r=n(a)[o])?t:i(r)}},91140:function(e,t,r){var n=r(98330),i=r(96411),o=function(e){return function(t,r){var o,a,s=String(i(t)),u=n(r),l=s.length;return u<0||u>=l?e?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},26031:function(e,t,r){"use strict";var n=r(98330),i=r(96411);e.exports="".repeat||function(e){var t=String(i(this)),r="",o=n(e);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(r+=t);return r}},68487:function(e,t,r){var n=r(79044),i=r(2569);e.exports=function(e){return n((function(){return!!i[e]()||"
"!="
"[e]()||i[e].name!==e}))}},10287:function(e,t,r){var n=r(96411),i="["+r(2569)+"]",o=RegExp("^"+i+i+"*"),a=RegExp(i+i+"*$"),s=function(e){return function(t){var r=String(n(t));return 1&e&&(r=r.replace(o,"")),2&e&&(r=r.replace(a,"")),r}};e.exports={start:s(1),end:s(2),trim:s(3)}},84643:function(e,t,r){var n,i,o,a=r(98363),s=r(79044),u=r(79159),l=r(98166),c=r(47055),d=r(92750),p=r(53121),f=a.location,m=a.setImmediate,h=a.clearImmediate,g=a.process,v=a.MessageChannel,b=a.Dispatch,y=0,w={},E="onreadystatechange",D=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},C=function(e){return function(){D(e)}},S=function(e){D(e.data)},I=function(e){a.postMessage(e+"",f.protocol+"//"+f.host)};m&&h||(m=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return w[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},n(y),y},h=function(e){delete w[e]},"process"==u(g)?n=function(e){g.nextTick(C(e))}:b&&b.now?n=function(e){b.now(C(e))}:v&&!p?(o=(i=new v).port2,i.port1.onmessage=S,n=l(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(I)||"file:"===f.protocol?n=E in d("script")?function(e){c.appendChild(d("script")).onreadystatechange=function(){c.removeChild(this),D(e)}}:function(e){setTimeout(C(e),0)}:(n=I,a.addEventListener("message",S,!1))),e.exports={set:m,clear:h}},41655:function(e,t,r){var n=r(79159);e.exports=function(e){if("number"!=typeof e&&"Number"!=n(e))throw TypeError("Incorrect invocation");return+e}},32565:function(e,t,r){var n=r(98330),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},29580:function(e,t,r){var n=r(78609),i=r(96411);e.exports=function(e){return n(i(e))}},98330:function(e){var t=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}},35108:function(e,t,r){var n=r(98330),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},30744:function(e,t,r){var n=r(96411);e.exports=function(e){return Object(n(e))}},21893:function(e,t,r){var n=r(52786);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},57301:function(e,t,r){var n={};n[r(52280)("toStringTag")]="z",e.exports="[object z]"===String(n)},34524:function(e){var t=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+r).toString(36)}},189:function(e,t,r){var n=r(3850);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},52280:function(e,t,r){var n=r(98363),i=r(53580),o=r(40454),a=r(34524),s=r(3850),u=r(189),l=i("wks"),c=n.Symbol,d=u?c:c&&c.withoutSetter||a;e.exports=function(e){return o(l,e)||(s&&o(c,e)?l[e]=c[e]:l[e]=d("Symbol."+e)),l[e]}},2569:function(e){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},59789:function(e,t,r){"use strict";var n=r(19882),i=r(92613),o=r(30744),a=r(35108),s=r(98330),u=r(80150);n({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=o(this),r=a(t.length),n=u(t,0);return n.length=i(n,t,t,r,0,void 0===e?1:s(e)),n}})},31807:function(e,t,r){"use strict";var n=r(19882),i=r(37190).indexOf,o=r(54324),a=r(5673),s=[].indexOf,u=!!s&&1/[1].indexOf(1,-0)<0,l=o("indexOf"),c=a("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:u||!l||!c},{indexOf:function(e){return u?s.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})},54883:function(e,t,r){"use strict";var n=r(29580),i=r(6677),o=r(44818),a=r(20821),s=r(61495),u="Array Iterator",l=a.set,c=a.getterFor(u);e.exports=s(Array,"Array",(function(e,t){l(this,{type:u,target:n(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},45550:function(e,t,r){"use strict";var n=r(19882),i=r(32565),o=r(98330),a=r(35108),s=r(30744),u=r(80150),l=r(35039),c=r(82091),d=r(5673),p=c("splice"),f=d("splice",{ACCESSORS:!0,0:0,1:2}),m=Math.max,h=Math.min,g=9007199254740991,v="Maximum allowed length exceeded";n({target:"Array",proto:!0,forced:!p||!f},{splice:function(e,t){var r,n,c,d,p,f,b=s(this),y=a(b.length),w=i(e,y),E=arguments.length;if(0===E?r=n=0:1===E?(r=0,n=y-w):(r=E-2,n=h(m(o(t),0),y-w)),y+r-n>g)throw TypeError(v);for(c=u(b,n),d=0;d<n;d++)(p=w+d)in b&&l(c,d,b[p]);if(c.length=n,r<n){for(d=w;d<y-n;d++)f=d+r,(p=d+n)in b?b[f]=b[p]:delete b[f];for(d=y;d>y-n+r;d--)delete b[d-1]}else if(r>n)for(d=y-n;d>w;d--)f=d+r-1,(p=d+n-1)in b?b[f]=b[p]:delete b[f];for(d=0;d<r;d++)b[d+w]=arguments[d+2];return b.length=y-n+r,c}})},68502:function(e,t,r){r(6677)("flat")},12798:function(e,t,r){"use strict";var n=r(19882),i=r(98330),o=r(41655),a=r(26031),s=r(79044),u=1..toFixed,l=Math.floor,c=function(e,t,r){return 0===t?r:t%2==1?c(e,t-1,r*e):c(e*e,t/2,r)};n({target:"Number",proto:!0,forced:u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){u.call({})}))},{toFixed:function(e){var t,r,n,s,u=o(this),d=i(e),p=[0,0,0,0,0,0],f="",m="0",h=function(e,t){for(var r=-1,n=t;++r<6;)n+=e*p[r],p[r]=n%1e7,n=l(n/1e7)},g=function(e){for(var t=6,r=0;--t>=0;)r+=p[t],p[t]=l(r/e),r=r%e*1e7},v=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==p[e]){var r=String(p[e]);t=""===t?r:t+a.call("0",7-r.length)+r}return t};if(d<0||d>20)throw RangeError("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(f="-",u=-u),u>1e-21)if(r=(t=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t}(u*c(2,69,1))-69)<0?u*c(2,-t,1):u/c(2,t,1),r*=4503599627370496,(t=52-t)>0){for(h(0,r),n=d;n>=7;)h(1e7,0),n-=7;for(h(c(10,n,1),0),n=t-1;n>=23;)g(1<<23),n-=23;g(1<<n),h(1,1),g(2),m=v()}else h(0,r),h(1<<-t,0),m=v()+a.call("0",d);return m=d>0?f+((s=m.length)<=d?"0."+a.call("0",d-s)+m:m.slice(0,s-d)+"."+m.slice(s-d)):f+m}})},33130:function(e,t,r){var n=r(19882),i=r(45856);n({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},35054:function(e,t,r){"use strict";var n,i,o,a,s=r(19882),u=r(21178),l=r(98363),c=r(22773),d=r(58369),p=r(35974),f=r(7592),m=r(60878),h=r(57323),g=r(52786),v=r(28641),b=r(9519),y=r(79159),w=r(56429),E=r(5166),D=r(8662),C=r(7270),S=r(84643).set,I=r(71800),x=r(11621),O=r(46271),A=r(29269),M=r(74443),B=r(20821),P=r(86291),N=r(52280),k=r(11197),F=N("species"),T="Promise",j=B.get,L=B.set,R=B.getterFor(T),_=d,Z=l.TypeError,H=l.document,W=l.process,U=c("fetch"),G=A.f,q=G,z="process"==y(W),V=!!(H&&H.createEvent&&l.dispatchEvent),J="unhandledrejection",Y=P(T,(function(){if(!(w(_)!==String(_))){if(66===k)return!0;if(!z&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!_.prototype.finally)return!0;if(k>=51&&/native code/.test(_))return!1;var e=_.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[F]=t,!(e.then((function(){}))instanceof t)})),Q=Y||!D((function(e){_.all(e).catch((function(){}))})),X=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},K=function(e,t,r){if(!t.notified){t.notified=!0;var n=t.reactions;I((function(){for(var i=t.value,o=1==t.state,a=0;n.length>a;){var s,u,l,c=n[a++],d=o?c.ok:c.fail,p=c.resolve,f=c.reject,m=c.domain;try{d?(o||(2===t.rejection&&re(e,t),t.rejection=1),!0===d?s=i:(m&&m.enter(),s=d(i),m&&(m.exit(),l=!0)),s===c.promise?f(Z("Promise-chain cycle")):(u=X(s))?u.call(s,p,f):p(s)):f(i)}catch(h){m&&!l&&m.exit(),f(h)}}t.reactions=[],t.notified=!1,r&&!t.rejection&&ee(e,t)}))}},$=function(e,t,r){var n,i;V?((n=H.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),l.dispatchEvent(n)):n={promise:t,reason:r},(i=l["on"+e])?i(n):e===J&&O("Unhandled promise rejection",r)},ee=function(e,t){S.call(l,(function(){var r,n=t.value;if(te(t)&&(r=M((function(){z?W.emit("unhandledRejection",n,e):$(J,e,n)})),t.rejection=z||te(t)?2:1,r.error))throw r.value}))},te=function(e){return 1!==e.rejection&&!e.parent},re=function(e,t){S.call(l,(function(){z?W.emit("rejectionHandled",e):$("rejectionhandled",e,t.value)}))},ne=function(e,t,r,n){return function(i){e(t,r,i,n)}},ie=function(e,t,r,n){t.done||(t.done=!0,n&&(t=n),t.value=r,t.state=2,K(e,t,!0))},oe=function(e,t,r,n){if(!t.done){t.done=!0,n&&(t=n);try{if(e===r)throw Z("Promise can't be resolved itself");var i=X(r);i?I((function(){var n={done:!1};try{i.call(r,ne(oe,e,n,t),ne(ie,e,n,t))}catch(o){ie(e,n,o,t)}})):(t.value=r,t.state=1,K(e,t,!1))}catch(o){ie(e,{done:!1},o,t)}}};Y&&(_=function(e){b(this,_,T),v(e),n.call(this);var t=j(this);try{e(ne(oe,this,t),ne(ie,this,t))}catch(r){ie(this,t,r)}},(n=function(e){L(this,{type:T,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=f(_.prototype,{then:function(e,t){var r=R(this),n=G(C(this,_));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=z?W.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&K(this,r,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new n,t=j(e);this.promise=e,this.resolve=ne(oe,e,t),this.reject=ne(ie,e,t)},A.f=G=function(e){return e===_||e===o?new i(e):q(e)},u||"function"!=typeof d||(a=d.prototype.then,p(d.prototype,"then",(function(e,t){var r=this;return new _((function(e,t){a.call(r,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof U&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return x(_,U.apply(l,arguments))}}))),s({global:!0,wrap:!0,forced:Y},{Promise:_}),m(_,T,!1,!0),h(T),o=c(T),s({target:T,stat:!0,forced:Y},{reject:function(e){var t=G(this);return t.reject.call(void 0,e),t.promise}}),s({target:T,stat:!0,forced:u||Y},{resolve:function(e){return x(u&&this===o?_:this,e)}}),s({target:T,stat:!0,forced:Q},{all:function(e){var t=this,r=G(t),n=r.resolve,i=r.reject,o=M((function(){var r=v(t.resolve),o=[],a=0,s=1;E(e,(function(e){var u=a++,l=!1;o.push(void 0),s++,r.call(t,e).then((function(e){l||(l=!0,o[u]=e,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise},race:function(e){var t=this,r=G(t),n=r.reject,i=M((function(){var i=v(t.resolve);E(e,(function(e){i.call(t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}})},72975:function(e,t,r){var n=r(7493),i=r(98363),o=r(86291),a=r(59250),s=r(86385).f,u=r(87994).f,l=r(42622),c=r(58083),d=r(97047),p=r(35974),f=r(79044),m=r(20821).set,h=r(57323),g=r(52280)("match"),v=i.RegExp,b=v.prototype,y=/a/g,w=/a/g,E=new v(y)!==y,D=d.UNSUPPORTED_Y;if(n&&o("RegExp",!E||D||f((function(){return w[g]=!1,v(y)!=y||v(w)==w||"/a/i"!=v(y,"i")})))){for(var C=function(e,t){var r,n=this instanceof C,i=l(e),o=void 0===t;if(!n&&i&&e.constructor===C&&o)return e;E?i&&!o&&(e=e.source):e instanceof C&&(o&&(t=c.call(e)),e=e.source),D&&(r=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var s=a(E?new v(e,t):v(e,t),n?this:b,C);return D&&r&&m(s,{sticky:r}),s},S=function(e){e in C||s(C,e,{configurable:!0,get:function(){return v[e]},set:function(t){v[e]=t}})},I=u(v),x=0;I.length>x;)S(I[x++]);b.constructor=C,C.prototype=b,p(i,"RegExp",C)}h("RegExp")},39275:function(e,t,r){"use strict";var n=r(19882),i=r(99749);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},33290:function(e,t,r){"use strict";var n=r(35974),i=r(83875),o=r(79044),a=r(58083),s="toString",u=RegExp.prototype,l=u.toString,c=o((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),d=l.name!=s;(c||d)&&n(RegExp.prototype,s,(function(){var e=i(this),t=String(e.source),r=e.flags;return"/"+t+"/"+String(void 0===r&&e instanceof RegExp&&!("flags"in u)?a.call(e):r)}),{unsafe:!0})},19985:function(e,t,r){"use strict";var n=r(19882),i=r(21049),o=r(96411);n({target:"String",proto:!0,forced:!r(15454)("includes")},{includes:function(e){return!!~String(o(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},22321:function(e,t,r){"use strict";var n=r(81492),i=r(83875),o=r(30744),a=r(35108),s=r(98330),u=r(96411),l=r(13350),c=r(94088),d=Math.max,p=Math.min,f=Math.floor,m=/\$([$&'`]|\d\d?|<[^>]*>)/g,h=/\$([$&'`]|\d\d?)/g;n("replace",2,(function(e,t,r,n){var g=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,v=n.REPLACE_KEEPS_$0,b=g?"$":"$0";return[function(r,n){var i=u(this),o=null==r?void 0:r[e];return void 0!==o?o.call(r,i,n):t.call(String(i),r,n)},function(e,n){if(!g&&v||"string"==typeof n&&-1===n.indexOf(b)){var o=r(t,e,this,n);if(o.done)return o.value}var u=i(e),f=String(this),m="function"==typeof n;m||(n=String(n));var h=u.global;if(h){var w=u.unicode;u.lastIndex=0}for(var E=[];;){var D=c(u,f);if(null===D)break;if(E.push(D),!h)break;""===String(D[0])&&(u.lastIndex=l(f,a(u.lastIndex),w))}for(var C,S="",I=0,x=0;x<E.length;x++){D=E[x];for(var O=String(D[0]),A=d(p(s(D.index),f.length),0),M=[],B=1;B<D.length;B++)M.push(void 0===(C=D[B])?C:String(C));var P=D.groups;if(m){var N=[O].concat(M,A,f);void 0!==P&&N.push(P);var k=String(n.apply(void 0,N))}else k=y(O,f,A,M,P,n);A>=I&&(S+=f.slice(I,A)+k,I=A+O.length)}return S+f.slice(I)}];function y(e,r,n,i,a,s){var u=n+e.length,l=i.length,c=h;return void 0!==a&&(a=o(a),c=m),t.call(s,c,(function(t,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return r.slice(0,n);case"'":return r.slice(u);case"<":s=a[o.slice(1,-1)];break;default:var c=+o;if(0===c)return t;if(c>l){var d=f(c/10);return 0===d?t:d<=l?void 0===i[d-1]?o.charAt(1):i[d-1]+o.charAt(1):t}s=i[c-1]}return void 0===s?"":s}))}}))},23528:function(e,t,r){"use strict";var n=r(81492),i=r(83875),o=r(96411),a=r(10420),s=r(94088);n("search",1,(function(e,t,r){return[function(t){var r=o(this),n=null==t?void 0:t[e];return void 0!==n?n.call(t,r):new RegExp(t)[e](String(r))},function(e){var n=r(t,e,this);if(n.done)return n.value;var o=i(e),u=String(this),l=o.lastIndex;a(l,0)||(o.lastIndex=0);var c=s(o,u);return a(o.lastIndex,l)||(o.lastIndex=l),null===c?-1:c.index}]}))},67838:function(e,t,r){"use strict";var n=r(81492),i=r(42622),o=r(83875),a=r(96411),s=r(7270),u=r(13350),l=r(35108),c=r(94088),d=r(99749),p=r(79044),f=[].push,m=Math.min,h=4294967295,g=!p((function(){return!RegExp(h,"y")}));n("split",2,(function(e,t,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var n=String(a(this)),o=void 0===r?h:r>>>0;if(0===o)return[];if(void 0===e)return[n];if(!i(e))return t.call(n,e,o);for(var s,u,l,c=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,g=new RegExp(e.source,p+"g");(s=d.call(g,n))&&!((u=g.lastIndex)>m&&(c.push(n.slice(m,s.index)),s.length>1&&s.index<n.length&&f.apply(c,s.slice(1)),l=s[0].length,m=u,c.length>=o));)g.lastIndex===s.index&&g.lastIndex++;return m===n.length?!l&&g.test("")||c.push(""):c.push(n.slice(m)),c.length>o?c.slice(0,o):c}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:t.call(this,e,r)}:t,[function(t,r){var i=a(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,i,r):n.call(String(i),t,r)},function(e,i){var a=r(n,e,this,i,n!==t);if(a.done)return a.value;var d=o(e),p=String(this),f=s(d,RegExp),v=d.unicode,b=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(g?"y":"g"),y=new f(g?d:"^(?:"+d.source+")",b),w=void 0===i?h:i>>>0;if(0===w)return[];if(0===p.length)return null===c(y,p)?[p]:[];for(var E=0,D=0,C=[];D<p.length;){y.lastIndex=g?D:0;var S,I=c(y,g?p:p.slice(D));if(null===I||(S=m(l(y.lastIndex+(g?0:D)),p.length))===E)D=u(p,D,v);else{if(C.push(p.slice(E,D)),C.length===w)return C;for(var x=1;x<=I.length-1;x++)if(C.push(I[x]),C.length===w)return C;D=E=S}}return C.push(p.slice(E)),C}]}),!g)},29897:function(e,t,r){"use strict";var n=r(19882),i=r(10287).trim;n({target:"String",proto:!0,forced:r(68487)("trim")},{trim:function(){return i(this)}})},86632:function(e,t,r){"use strict";var n=r(19882),i=r(7493),o=r(98363),a=r(40454),s=r(52786),u=r(86385).f,l=r(73870),c=o.Symbol;if(i&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var d={},p=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof p?new c(e):void 0===e?c():c(e);return""===e&&(d[t]=!0),t};l(p,c);var f=p.prototype=c.prototype;f.constructor=p;var m=f.toString,h="Symbol(test)"==String(c("test")),g=/^Symbol\((.*)\)[^)]+$/;u(f,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=m.call(e);if(a(d,e))return"";var r=h?t.slice(7,-1):t.replace(g,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:p})}},68995:function(e,t,r){var n=r(98363),i=r(12848),o=r(54883),a=r(45899),s=r(52280),u=s("iterator"),l=s("toStringTag"),c=o.values;for(var d in i){var p=n[d],f=p&&p.prototype;if(f){if(f[u]!==c)try{a(f,u,c)}catch(h){f[u]=c}if(f[l]||a(f,l,d),i[d])for(var m in o)if(f[m]!==o[m])try{a(f,m,o[m])}catch(h){f[m]=o[m]}}}},87191:function(e,t,r){"use strict";r(19882)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},97759:function(e,t,r){"use strict";r.d(t,{Oq:function(){return p},dO:function(){return u},jn:function(){return o},iz:function(){return f},Dz:function(){return i},cv:function(){return c},oc:function(){return d}});var n=r(27222),i=function(e){var t=e.top,r=e.right,n=e.bottom,i=e.left;return{top:t,right:r,bottom:n,left:i,width:r-i,height:n-t,x:i,y:t,center:{x:(r+i)/2,y:(n+t)/2}}},o=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},a=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},s={top:0,right:0,bottom:0,left:0},u=function(e){var t=e.borderBox,r=e.margin,n=void 0===r?s:r,u=e.border,l=void 0===u?s:u,c=e.padding,d=void 0===c?s:c,p=i(o(t,n)),f=i(a(t,l)),m=i(a(f,d));return{marginBox:p,borderBox:i(t),paddingBox:f,contentBox:m,margin:n,border:l,padding:d}},l=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var r=Number(t);return isNaN(r)&&(0,n.Z)(!1),r},c=function(e,t){var r,n,i=e.borderBox,o=e.border,a=e.margin,s=e.padding,l=(n=t,{top:(r=i).top+n.y,left:r.left+n.x,bottom:r.bottom+n.y,right:r.right+n.x});return u({borderBox:l,border:o,margin:a,padding:s})},d=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),c(e,t)},p=function(e,t){var r={top:l(t.marginTop),right:l(t.marginRight),bottom:l(t.marginBottom),left:l(t.marginLeft)},n={top:l(t.paddingTop),right:l(t.paddingRight),bottom:l(t.paddingBottom),left:l(t.paddingLeft)},i={top:l(t.borderTopWidth),right:l(t.borderRightWidth),bottom:l(t.borderBottomWidth),left:l(t.borderLeftWidth)};return u({borderBox:e,margin:r,padding:n,border:i})},f=function(e){var t=e.getBoundingClientRect(),r=window.getComputedStyle(e);return p(t,r)}},27222:function(e,t){"use strict";var r="Invariant failed";t.Z=function(e,t){if(!e)throw new Error(r)}},19141:function(e){"use strict";e.exports=function(e){if(e=String(e||""),n.test(e))return"rtl";if(i.test(e))return"ltr";return"neutral"};var t="֑-߿יִ-﷽ﹰ-ﻼ",r="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",n=new RegExp("^[^"+r+"]*["+t+"]"),i=new RegExp("^[^"+t+"]*["+r+"]")},43613:function(e){"use strict";
|
9 |
/*!
|
10 |
* escape-html
|
11 |
* Copyright(c) 2012-2013 TJ Holowaychuk
|
5 |
* Copyright (c) 2014-2017, Jon Schlinkert.
|
6 |
* Released under the MIT License.
|
7 |
*/
|
8 |
+
function Oe(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ae(e){var t,r;return!1!==Oe(e)&&(void 0===(t=e.constructor)||!1!==Oe(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}function Me(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Be(e){return!!e&&!!e[vt]}function Pe(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===bt}(e)||Array.isArray(e)||!!e[gt]||!!e.constructor[gt]||Re(e)||_e(e))}function Ne(e,t,r){void 0===r&&(r=!1),0===ke(e)?(r?Object.keys:yt)(e).forEach((function(n){r&&"symbol"==typeof n||t(n,e[n],e)})):e.forEach((function(r,n){return t(n,r,e)}))}function ke(e){var t=e[vt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Re(e)?2:_e(e)?3:0}function Fe(e,t){return 2===ke(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Te(e,t){return 2===ke(e)?e.get(t):e[t]}function je(e,t,r){var n=ke(e);2===n?e.set(t,r):3===n?(e.delete(t),e.add(r)):e[t]=r}function Le(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Re(e){return pt&&e instanceof Map}function _e(e){return ft&&e instanceof Set}function Ze(e){return e.o||e.t}function He(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=wt(e);delete t[vt];for(var r=yt(t),n=0;n<r.length;n++){var i=r[n],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function We(e,t){return void 0===t&&(t=!1),Ge(e)||Be(e)||!Pe(e)||(ke(e)>1&&(e.set=e.add=e.clear=e.delete=Ue),Object.freeze(e),t&&Ne(e,(function(e,t){return We(t,!0)}),!0)),e}function Ue(){Me(2)}function Ge(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function qe(e){var t=Et[e];return t||Me(18,e),t}function ze(){return ct}function Ve(e,t){t&&(qe("Patches"),e.u=[],e.s=[],e.v=t)}function Je(e){Ye(e),e.p.forEach(Xe),e.p=null}function Ye(e){e===ct&&(ct=e.l)}function Qe(e){return ct={p:[],l:ct,h:e,m:!0,_:0}}function Xe(e){var t=e[vt];0===t.i||1===t.i?t.j():t.O=!0}function Ke(e,t){t._=t.p.length;var r=t.p[0],n=void 0!==e&&e!==r;return t.h.g||qe("ES5").S(t,e,n),n?(r[vt].P&&(Je(t),Me(4)),Pe(e)&&(e=$e(t,e),t.l||tt(t,e)),t.u&&qe("Patches").M(r[vt],e,t.u,t.s)):e=$e(t,r,[]),Je(t),t.u&&t.v(t.u,t.s),e!==ht?e:void 0}function $e(e,t,r){if(Ge(t))return t;var n=t[vt];if(!n)return Ne(t,(function(i,o){return et(e,n,t,i,o,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return tt(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=4===n.i||5===n.i?n.o=He(n.k):n.o;Ne(3===n.i?new Set(i):i,(function(t,o){return et(e,n,i,t,o,r)})),tt(e,i,!1),r&&e.u&&qe("Patches").R(n,r,e.u,e.s)}return n.o}function et(e,t,r,n,i,o){if(Be(i)){var a=$e(e,i,o&&t&&3!==t.i&&!Fe(t.D,n)?o.concat(n):void 0);if(je(r,n,a),!Be(a))return;e.m=!1}if(Pe(i)&&!Ge(i)){if(!e.h.F&&e._<1)return;$e(e,i),t&&t.A.l||tt(e,i)}}function tt(e,t,r){void 0===r&&(r=!1),e.h.F&&e.m&&We(t,r)}function rt(e,t){var r=e[vt];return(r?Ze(r):e)[t]}function nt(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function it(e){e.P||(e.P=!0,e.l&&it(e.l))}function ot(e){e.o||(e.o=He(e.t))}function at(e,t,r){var n=Re(t)?qe("MapSet").N(t,r):_e(t)?qe("MapSet").T(t,r):e.g?function(e,t){var r=Array.isArray(e),n={i:r?1:0,A:t?t.A:ze(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=n,o=Dt;r&&(i=[n],o=Ct);var a=Proxy.revocable(i,o),s=a.revoke,u=a.proxy;return n.k=u,n.j=s,u}(t,r):qe("ES5").J(t,r);return(r?r.A:ze()).p.push(n),n}function st(e){return Be(e)||Me(22,e),function e(t){if(!Pe(t))return t;var r,n=t[vt],i=ke(t);if(n){if(!n.P&&(n.i<4||!qe("ES5").K(n)))return n.t;n.I=!0,r=ut(t,i),n.I=!1}else r=ut(t,i);return Ne(r,(function(t,i){n&&Te(n.t,t)===i||je(r,t,e(i))})),3===i?new Set(r):r}(e)}function ut(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return He(e)}var lt,ct,dt="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),pt="undefined"!=typeof Map,ft="undefined"!=typeof Set,mt="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ht=dt?Symbol.for("immer-nothing"):((lt={})["immer-nothing"]=!0,lt),gt=dt?Symbol.for("immer-draftable"):"__$immer_draftable",vt=dt?Symbol.for("immer-state"):"__$immer_state",bt=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),yt="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,wt=Object.getOwnPropertyDescriptors||function(e){var t={};return yt(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},Et={},Dt={get:function(e,t){if(t===vt)return e;var r=Ze(e);if(!Fe(r,t))return function(e,t,r){var n,i=nt(t,r);return i?"value"in i?i.value:null===(n=i.get)||void 0===n?void 0:n.call(e.k):void 0}(e,r,t);var n=r[t];return e.I||!Pe(n)?n:n===rt(e.t,t)?(ot(e),e.o[t]=at(e.A.h,n,e)):n},has:function(e,t){return t in Ze(e)},ownKeys:function(e){return Reflect.ownKeys(Ze(e))},set:function(e,t,r){var n=nt(Ze(e),t);if(null==n?void 0:n.set)return n.set.call(e.k,r),!0;if(!e.P){var i=rt(Ze(e),t),o=null==i?void 0:i[vt];if(o&&o.t===r)return e.o[t]=r,e.D[t]=!1,!0;if(Le(r,i)&&(void 0!==r||Fe(e.t,t)))return!0;ot(e),it(e)}return e.o[t]===r&&"number"!=typeof r&&(void 0!==r||t in e.o)||(e.o[t]=r,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==rt(e.t,t)||t in e.t?(e.D[t]=!1,ot(e),it(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Ze(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty:function(){Me(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Me(12)}},Ct={};Ne(Dt,(function(e,t){Ct[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Ct.deleteProperty=function(e,t){return Dt.deleteProperty.call(this,e[0],t)},Ct.set=function(e,t,r){return Dt.set.call(this,e[0],t,r,e[0])};var St=new(function(){function e(e){var t=this;this.g=mt,this.F=!0,this.produce=function(e,r,n){if("function"==typeof e&&"function"!=typeof r){var i=r;r=e;var o=t;return function(e){var t=this;void 0===e&&(e=i);for(var n=arguments.length,a=Array(n>1?n-1:0),s=1;s<n;s++)a[s-1]=arguments[s];return o.produce(e,(function(e){var n;return(n=r).call.apply(n,[t,e].concat(a))}))}}var a;if("function"!=typeof r&&Me(6),void 0!==n&&"function"!=typeof n&&Me(7),Pe(e)){var s=Qe(t),u=at(t,e,void 0),l=!0;try{a=r(u),l=!1}finally{l?Je(s):Ye(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return Ve(s,n),Ke(e,s)}),(function(e){throw Je(s),e})):(Ve(s,n),Ke(a,s))}if(!e||"object"!=typeof e){if((a=r(e))===ht)return;return void 0===a&&(a=e),t.F&&We(a,!0),a}Me(21,e)},this.produceWithPatches=function(e,r){return"function"==typeof e?function(r){for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return t.produceWithPatches(r,(function(t){return e.apply(void 0,[t].concat(i))}))}:[t.produce(e,r,(function(e,t){n=e,i=t})),n,i];var n,i},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){Pe(e)||Me(8),Be(e)&&(e=st(e));var t=Qe(this),r=at(this,e,void 0);return r[vt].C=!0,Ye(t),r},t.finishDraft=function(e,t){var r=(e&&e[vt]).A;return Ve(r,t),Ke(void 0,r)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!mt&&Me(20),this.g=e},t.applyPatches=function(e,t){var r;for(r=t.length-1;r>=0;r--){var n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}var i=qe("Patches").$;return Be(e)?i(e,t):this.produce(e,(function(e){return i(e,t.slice(r+1))}))},e}()),It=St.produce,xt=(St.produceWithPatches.bind(St),St.setAutoFreeze.bind(St),St.setUseProxies.bind(St),St.applyPatches.bind(St),St.createDraft.bind(St)),Ot=St.finishDraft.bind(St);function At(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Mt=new WeakMap,Bt=new WeakMap,Pt=new WeakMap,Nt=new WeakMap,kt=new WeakMap,Ft=new WeakMap,Tt=new WeakMap;function jt(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}function Lt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(r),!0).forEach((function(t){At(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Rt=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var r of Er.pathRefs(e))Pr.transform(r,t);for(var n of Er.pointRefs(e))Tr.transform(n,t);for(var i of Er.rangeRefs(e))_r.transform(i,t);var o,a,s=Mt.get(e)||[],u=Bt.get(e)||new Set,l=e=>{if(e){var t=e.join(",");a.has(t)||(a.add(t),o.push(e))}};if(Br.operationCanTransformPath(t))for(var c of(o=[],a=new Set,s)){l(Br.transform(c,t))}else o=s,a=u;var d=_t(t);for(var p of d)l(p);Mt.set(e,o),Bt.set(e,a),ln.transform(e,t),e.operations.push(t),Er.normalize(e),"set_selection"===t.type&&(e.marks=null),Pt.get(e)||(Pt.set(e,!0),Promise.resolve().then((()=>{Pt.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,r)=>{var{selection:n}=e;if(n)if(Rr.isExpanded(n))ln.setNodes(e,{[t]:r},{match:qr.isText,split:!0});else{var i=Lt(Lt({},Er.marks(e)||{}),{},{[t]:r});e.marks=i,Pt.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:r}=e;r&&Rr.isCollapsed(r)&&ln.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:r}=e;r&&Rr.isCollapsed(r)&&ln.delete(e,{unit:t})},deleteFragment:t=>{var{selection:r}=e;r&&Rr.isExpanded(r)&&ln.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?xr.fragment(e,t):[]},insertBreak:()=>{ln.splitNodes(e,{always:!0})},insertSoftBreak:()=>{ln.splitNodes(e,{always:!0})},insertFragment:t=>{ln.insertFragment(e,t)},insertNode:t=>{ln.insertNodes(e,t)},insertText:t=>{var{selection:r,marks:n}=e;if(r){if(n){var i=Lt({text:t},n);ln.insertNodes(e,i)}else ln.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[r,n]=t;if(!qr.isText(r))if(hr.isElement(r)&&0===r.children.length){ln.insertNodes(e,{text:""},{at:n.concat(0),voids:!0})}else for(var i=!Er.isEditor(r)&&(hr.isElement(r)&&(e.isInline(r)||0===r.children.length||qr.isText(r.children[0])||e.isInline(r.children[0]))),o=0,a=0;a<r.children.length;a++,o++){var s=xr.get(e,n);if(!qr.isText(s)){var u=r.children[a],l=s.children[o-1],c=a===r.children.length-1;if((qr.isText(u)||hr.isElement(u)&&e.isInline(u))!==i)ln.removeNodes(e,{at:n.concat(o),voids:!0}),o--;else if(hr.isElement(u)){if(e.isInline(u))if(null!=l&&qr.isText(l)){if(c){ln.insertNodes(e,{text:""},{at:n.concat(o+1),voids:!0}),o++}}else{ln.insertNodes(e,{text:""},{at:n.concat(o),voids:!0}),o++}}else null!=l&&qr.isText(l)&&(qr.equals(u,l,{loose:!0})?(ln.mergeNodes(e,{at:n.concat(o),voids:!0}),o--):""===l.text?(ln.removeNodes(e,{at:n.concat(o-1),voids:!0}),o--):""===u.text&&(ln.removeNodes(e,{at:n.concat(o),voids:!0}),o--))}}},removeMark:t=>{var{selection:r}=e;if(r)if(Rr.isExpanded(r))ln.unsetNodes(e,t,{match:qr.isText,split:!0});else{var n=Lt({},Er.marks(e)||{});delete n[t],e.marks=n,Pt.get(e)||e.onChange()}}};return e},_t=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return Br.levels(t);case"insert_node":var{node:r,path:n}=e;return[...Br.levels(n),...qr.isText(r)?[]:Array.from(xr.nodes(r),(e=>{var[,t]=e;return n.concat(t)}))];case"merge_node":var{path:i}=e;return[...Br.ancestors(i),Br.previous(i)];case"move_node":var{path:o,newPath:a}=e;if(Br.equals(o,a))return[];var s=[],u=[];for(var l of Br.ancestors(o)){var c=Br.transform(l,e);s.push(c)}for(var d of Br.ancestors(a)){var p=Br.transform(d,e);u.push(p)}var f=u[u.length-1],m=a[a.length-1],h=f.concat(m);return[...s,...u,h];case"remove_node":var{path:g}=e;return[...Br.ancestors(g)];case"split_node":var{path:v}=e;return[...Br.levels(v),Br.next(v)];default:return[]}};function Zt(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var Ht,Wt=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!t,n=t?Jt(e):e,i=Ht.None,o=Ht.None,a=0,s=null;for(var u of n){var l=u.codePointAt(0);if(!l)break;var c=ar(u,l);if([i,o]=r?[o,c]:[c,i],sr(i,Ht.ZWJ)&&sr(o,Ht.ExtPict)&&!dr(r?e.substring(0,a):e.substring(0,e.length-a)))break;if(sr(i,Ht.RI)&&sr(o,Ht.RI)&&!(s=null!==s?!s:!!r||fr(e.substring(0,e.length-a))))break;if(i!==Ht.None&&o!==Ht.None&&lr(i,o))break;a+=u.length}return a||1},Ut=/\s/,Gt=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,qt=/['\u2018\u2019]/,zt=(e,t,r)=>{if(r){var n=e.length-t;return[e.slice(n,e.length),e.slice(0,n)]}return[e.slice(0,t),e.slice(t)]},Vt=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Ut.test(t))return!1;if(qt.test(t)){var i=Wt(r,n),[o,a]=zt(r,i,n);if(e(o,a,n))return!0}return!Gt.test(t)},Jt=function*(e){for(var t=e.length-1,r=0;r<e.length;r++){var n=e.charAt(t-r);if(Qt(n.charCodeAt(0))){var i=e.charAt(t-r-1);if(Yt(i.charCodeAt(0))){yield i+n,r++;continue}}yield n}},Yt=e=>e>=55296&&e<=56319,Qt=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(Ht||(Ht={}));var Xt=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,Kt=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,$t=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,er=/^[\u1100-\u115F\uA960-\uA97C]$/,tr=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,rr=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,nr=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,ir=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,or=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,ar=(e,t)=>{var r=Ht.Any;return-1!==e.search(Xt)&&(r|=Ht.Extend),8205===t&&(r|=Ht.ZWJ),t>=127462&&t<=127487&&(r|=Ht.RI),-1!==e.search(Kt)&&(r|=Ht.Prepend),-1!==e.search($t)&&(r|=Ht.SpacingMark),-1!==e.search(er)&&(r|=Ht.L),-1!==e.search(tr)&&(r|=Ht.V),-1!==e.search(rr)&&(r|=Ht.T),-1!==e.search(nr)&&(r|=Ht.LV),-1!==e.search(ir)&&(r|=Ht.LVT),-1!==e.search(or)&&(r|=Ht.ExtPict),r};function sr(e,t){return 0!=(e&t)}var ur=[[Ht.L,Ht.L|Ht.V|Ht.LV|Ht.LVT],[Ht.LV|Ht.V,Ht.V|Ht.T],[Ht.LVT|Ht.T,Ht.T],[Ht.Any,Ht.Extend|Ht.ZWJ],[Ht.Any,Ht.SpacingMark],[Ht.Prepend,Ht.Any],[Ht.ZWJ,Ht.ExtPict],[Ht.RI,Ht.RI]];function lr(e,t){return-1===ur.findIndex((r=>sr(e,r[0])&&sr(t,r[1])))}var cr=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,dr=e=>-1!==e.search(cr),pr=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,fr=e=>{var t=e.match(pr);return null!==t&&t[0].length/2%2==1},mr=e=>Ae(e)&&xr.isNodeList(e.children)&&!Er.isEditor(e),hr={isAncestor:e=>Ae(e)&&xr.isNodeList(e.children),isElement:mr,isElementList:e=>Array.isArray(e)&&e.every((e=>hr.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return mr(e)&&e[r]===t},matches(e,t){for(var r in t)if("children"!==r&&e[r]!==t[r])return!1;return!0}},gr=["text"],vr=["text"];function br(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}function yr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?br(Object(r),!0).forEach((function(t){At(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):br(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var wr=new WeakMap,Er={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:r=!1,mode:n="lowest",at:i=e.selection,match:o}=t;if(i){var a=Er.path(e,i),s="lowest"===n;for(var[u,l]of Er.levels(e,{at:a,voids:r,match:o,reverse:s}))if(!qr.isText(u)&&!Br.equals(a,l))return[u,l]}},addMark(e,t,r){e.addMark(t,r)},after(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:Er.point(e,t,{edge:"end"}),focus:Er.end(e,[])},{distance:o=1}=n,a=0;for(var s of Er.positions(e,yr(yr({},n),{},{at:i}))){if(a>o)break;0!==a&&(r=s),a++}return r},before(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:Er.start(e,[]),focus:Er.point(e,t,{edge:"start"})},{distance:o=1}=n,a=0;for(var s of Er.positions(e,yr(yr({},n),{},{at:i,reverse:!0}))){if(a>o)break;0!==a&&(r=s),a++}return r},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:r="character"}=t;e.deleteBackward(r)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:r="character"}=t;e.deleteForward(r)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:r="forward"}=t;e.deleteFragment(r)},edges:(e,t)=>[Er.start(e,t),Er.end(e,t)],end:(e,t)=>Er.point(e,t,{edge:"end"}),first(e,t){var r=Er.path(e,t,{edge:"start"});return Er.node(e,r)},fragment(e,t){var r=Er.range(e,t);return xr.fragment(e,r)},hasBlocks:(e,t)=>t.children.some((t=>Er.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>qr.isText(t)||Er.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>qr.isText(e))),insertBreak(e){e.insertBreak()},insertSoftBreak(e){e.insertSoftBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>hr.isElement(t)&&!e.isInline(t),isEditor(e){if(!Ae(e))return!1;var t=wr.get(e);if(void 0!==t)return t;var r="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertSoftBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&(null===e.marks||Ae(e.marks))&&(null===e.selection||Rr.isRange(e.selection))&&xr.isNodeList(e.children)&&Mr.isOperationList(e.operations);return wr.set(e,r),r},isEnd(e,t,r){var n=Er.end(e,r);return Fr.equals(t,n)},isEdge:(e,t,r)=>Er.isStart(e,t,r)||Er.isEnd(e,t,r),isEmpty(e,t){var{children:r}=t,[n]=r;return 0===r.length||1===r.length&&qr.isText(n)&&""===n.text&&!e.isVoid(t)},isInline:(e,t)=>hr.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Nt.get(e);return void 0===t||t},isStart(e,t,r){if(0!==t.offset)return!1;var n=Er.start(e,r);return Fr.equals(t,n)},isVoid:(e,t)=>hr.isElement(t)&&e.isVoid(t),last(e,t){var r=Er.path(e,t,{edge:"end"});return Er.node(e,r)},leaf(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Er.path(e,t,r);return[xr.leaf(e,n),n]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:r=e.selection,reverse:n=!1,voids:i=!1}=t,{match:o}=t;if(null==o&&(o=()=>!0),r){var a=[],s=Er.path(e,r);for(var[u,l]of xr.levels(e,s))if(o(u,l)&&(a.push([u,l]),!i&&Er.isVoid(e,u)))break;n&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:r}=e;if(!r)return null;if(t)return t;if(Rr.isExpanded(r)){var[n]=Er.nodes(e,{match:qr.isText});if(n){var[i]=n;return Zt(i,gr)}return{}}var{anchor:o}=r,{path:a}=o,[s]=Er.leaf(e,a);if(0===o.offset){var u=Er.previous(e,{at:a,match:qr.isText}),l=Er.above(e,{match:t=>Er.isBlock(e,t)});if(u&&l){var[c,d]=u,[,p]=l;Br.isAncestor(p,d)&&(s=c)}}return Zt(s,vr)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:r="lowest",voids:n=!1}=t,{match:i,at:o=e.selection}=t;if(o){var a=Er.after(e,o,{voids:n});if(a){var[,s]=Er.last(e,[]),u=[a.path,s];if(Br.isPath(o)&&0===o.length)throw new Error("Cannot get the next node from the root node!");if(null==i)if(Br.isPath(o)){var[l]=Er.parent(e,o);i=e=>l.children.includes(e)}else i=()=>!0;var[c]=Er.nodes(e,{at:u,match:i,mode:r,voids:n});return c}}},node(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Er.path(e,t,r);return[xr.get(e,n),n]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:r=e.selection,mode:n="all",universal:i=!1,reverse:o=!1,voids:a=!1}=t,{match:s}=t;if(s||(s=()=>!0),r){var u,l;if(Dr.isSpan(r))u=r[0],l=r[1];else{var c=Er.path(e,r,{edge:"start"}),d=Er.path(e,r,{edge:"end"});u=o?d:c,l=o?c:d}var p,f=xr.nodes(e,{reverse:o,from:u,to:l,pass:t=>{var[r]=t;return!a&&Er.isVoid(e,r)}}),m=[];for(var[h,g]of f){var v=p&&0===Br.compare(g,p[1]);if("highest"!==n||!v)if(s(h,g))if("lowest"===n&&v)p=[h,g];else{var b="lowest"===n?p:[h,g];b&&(i?m.push(b):yield b),p=[h,g]}else if(i&&!v&&qr.isText(h))return}"lowest"===n&&p&&(i?m.push(p):yield p),i&&(yield*m)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:r=!1}=t,n=e=>Mt.get(e)||[],i=e=>{var t=n(e).pop(),r=t.join(",");return(e=>Bt.get(e)||new Set)(e).delete(r),t};if(Er.isNormalizing(e)){if(r){var o=Array.from(xr.nodes(e),(e=>{var[,t]=e;return t})),a=new Set(o.map((e=>e.join(","))));Mt.set(e,o),Bt.set(e,a)}0!==n(e).length&&Er.withoutNormalizing(e,(()=>{for(var t of n(e))if(xr.has(e,t)){var r=Er.node(e,t),[o,a]=r;hr.isElement(o)&&0===o.children.length&&e.normalizeNode(r)}for(var s=42*n(e).length,u=0;0!==n(e).length;){if(u>s)throw new Error("\n Could not completely normalize the editor after ".concat(s," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var l=i(e);if(xr.has(e,l)){var c=Er.node(e,l);e.normalizeNode(c)}u++}}))}},parent(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Er.path(e,t,r),i=Br.parent(n);return Er.node(e,i)},path(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:n,edge:i}=r;if(Br.isPath(t))if("start"===i){var[,o]=xr.first(e,t);t=o}else if("end"===i){var[,a]=xr.last(e,t);t=a}return Rr.isRange(t)&&(t="start"===i?Rr.start(t):"end"===i?Rr.end(t):Br.common(t.anchor.path,t.focus.path)),Fr.isPoint(t)&&(t=t.path),null!=n&&(t=t.slice(0,n)),t},hasPath:(e,t)=>xr.has(e,t),pathRef(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:n="forward"}=r,i={current:t,affinity:n,unref(){var{current:t}=i;return Er.pathRefs(e).delete(i),i.current=null,t}};return Er.pathRefs(e).add(i),i},pathRefs(e){var t=kt.get(e);return t||(t=new Set,kt.set(e,t)),t},point(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:n="start"}=r;if(Br.isPath(t)){var i;if("end"===n){var[,o]=xr.last(e,t);i=o}else{var[,a]=xr.first(e,t);i=a}var s=xr.get(e,i);if(!qr.isText(s))throw new Error("Cannot get the ".concat(n," point in the node at path [").concat(t,"] because it has no ").concat(n," text node."));return{path:i,offset:"end"===n?s.text.length:0}}if(Rr.isRange(t)){var[u,l]=Rr.edges(t);return"start"===n?u:l}return t},pointRef(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:n="forward"}=r,i={current:t,affinity:n,unref(){var{current:t}=i;return Er.pointRefs(e).delete(i),i.current=null,t}};return Er.pointRefs(e).add(i),i},pointRefs(e){var t=Ft.get(e);return t||(t=new Set,Ft.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:r=e.selection,unit:n="offset",reverse:i=!1,voids:o=!1}=t;if(r){var a=Er.range(e,r),[s,u]=Rr.edges(a),l=i?u:s,c=!1,d="",p=0,f=0,m=0;for(var[h,g]of Er.nodes(e,{at:r,reverse:i,voids:o})){if(hr.isElement(h)){if(!o&&e.isVoid(h)){yield Er.start(e,g);continue}if(e.isInline(h))continue;if(Er.hasInlines(e,h)){var v=Br.isAncestor(g,u.path)?u:Er.end(e,g),b=Br.isAncestor(g,s.path)?s:Er.start(e,g);d=Er.string(e,{anchor:b,focus:v},{voids:o}),c=!0}}if(qr.isText(h)){var y=Br.equals(g,l.path);for(y?(f=i?l.offset:h.text.length-l.offset,m=l.offset):(f=h.text.length,m=i?f:0),(y||c||"offset"===n)&&(yield{path:g,offset:m},c=!1);;){if(0===p){if(""===d)break;p=w(d,n,i),d=zt(d,p,i)[1]}if(m=i?m-p:m+p,(f-=p)<0){p=-f;break}p=0,yield{path:g,offset:m}}}}}function w(e,t,r){return"character"===t?Wt(e,r):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=0,n=!1;e.length>0;){var i=Wt(e,t),[o,a]=zt(e,i,t);if(Vt(o,a,t))n=!0,r+=i;else{if(n)break;r+=i}e=a}return r}(e,r):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:r="lowest",voids:n=!1}=t,{match:i,at:o=e.selection}=t;if(o){var a=Er.before(e,o,{voids:n});if(a){var[,s]=Er.first(e,[]),u=[a.path,s];if(Br.isPath(o)&&0===o.length)throw new Error("Cannot get the previous node from the root node!");if(null==i)if(Br.isPath(o)){var[l]=Er.parent(e,o);i=e=>l.children.includes(e)}else i=()=>!0;var[c]=Er.nodes(e,{reverse:!0,at:u,match:i,mode:r,voids:n});return c}}},range:(e,t,r)=>Rr.isRange(t)&&!r?t:{anchor:Er.start(e,t),focus:Er.end(e,r||t)},rangeRef(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:n="forward"}=r,i={current:t,affinity:n,unref(){var{current:t}=i;return Er.rangeRefs(e).delete(i),i.current=null,t}};return Er.rangeRefs(e).add(i),i},rangeRefs(e){var t=Tt.get(e);return t||(t=new Set,Tt.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Nt.set(e,t)},start:(e,t)=>Er.point(e,t,{edge:"start"}),string(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:n=!1}=r,i=Er.range(e,t),[o,a]=Rr.edges(i),s="";for(var[u,l]of Er.nodes(e,{at:i,match:qr.isText,voids:n})){var c=u.text;Br.equals(l,a.path)&&(c=c.slice(0,a.offset)),Br.equals(l,o.path)&&(c=c.slice(o.offset)),s+=c}return s},unhangRange(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:n=!1}=r,[i,o]=Rr.edges(t);if(0!==i.offset||0!==o.offset||Rr.isCollapsed(t))return t;var a=Er.above(e,{at:o,match:t=>Er.isBlock(e,t)}),s=a?a[1]:[],u={anchor:Er.start(e,i),focus:o},l=!0;for(var[c,d]of Er.nodes(e,{at:u,match:qr.isText,reverse:!0,voids:n}))if(l)l=!1;else if(""!==c.text||Br.isBefore(d,s)){o={path:d,offset:c.text.length};break}return{anchor:i,focus:o}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Er.above(e,yr(yr({},t),{},{match:t=>Er.isVoid(e,t)}))},withoutNormalizing(e,t){var r=Er.isNormalizing(e);Er.setNormalizing(e,!1);try{t()}finally{Er.setNormalizing(e,r)}Er.normalize(e)}},Dr={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(Br.isPath)},Cr=["children"],Sr=["text"],Ir=new WeakMap,xr={ancestor(e,t){var r=xr.get(e,t);if(qr.isText(r))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(r));return r},*ancestors(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var n of Br.ancestors(t,r)){var i=[xr.ancestor(e,n),n];yield i}},child(e,t){if(qr.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var r=e.children[t];if(null==r)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return r},*children(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:n=!1}=r,i=xr.ancestor(e,t),{children:o}=i,a=n?o.length-1:0;n?a>=0:a<o.length;){var s=xr.child(i,a),u=t.concat(a);yield[s,u],a=n?a-1:a+1}},common(e,t,r){var n=Br.common(t,r);return[xr.get(e,n),n]},descendant(e,t){var r=xr.get(e,t);if(Er.isEditor(r))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(r));return r},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[r,n]of xr.nodes(e,t))0!==n.length&&(yield[r,n])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[r,n]of xr.nodes(e,t))hr.isElement(r)&&(yield[r,n])},extractProps:e=>hr.isAncestor(e)?Zt(e,Cr):Zt(e,Sr),first(e,t){for(var r=t.slice(),n=xr.get(e,r);n&&!qr.isText(n)&&0!==n.children.length;)n=n.children[0],r.push(0);return[n,r]},fragment(e,t){if(qr.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));return It({children:e.children},(e=>{var[r,n]=Rr.edges(t),i=xr.nodes(e,{reverse:!0,pass:e=>{var[,r]=e;return!Rr.includes(t,r)}});for(var[,o]of i){if(!Rr.includes(t,o)){var a=xr.parent(e,o),s=o[o.length-1];a.children.splice(s,1)}if(Br.equals(o,n.path)){var u=xr.leaf(e,o);u.text=u.text.slice(0,n.offset)}if(Br.equals(o,r.path)){var l=xr.leaf(e,o);l.text=l.text.slice(r.offset)}}Er.isEditor(e)&&(e.selection=null)})).children},get(e,t){for(var r=e,n=0;n<t.length;n++){var i=t[n];if(qr.isText(r)||!r.children[i])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));r=r.children[i]}return r},has(e,t){for(var r=e,n=0;n<t.length;n++){var i=t[n];if(qr.isText(r)||!r.children[i])return!1;r=r.children[i]}return!0},isNode:e=>qr.isText(e)||hr.isElement(e)||Er.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Ir.get(e);if(void 0!==t)return t;var r=e.every((e=>xr.isNode(e)));return Ir.set(e,r),r},last(e,t){for(var r=t.slice(),n=xr.get(e,r);n&&!qr.isText(n)&&0!==n.children.length;){var i=n.children.length-1;n=n.children[i],r.push(i)}return[n,r]},leaf(e,t){var r=xr.get(e,t);if(!qr.isText(r))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(r));return r},*levels(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var n of Br.levels(t,r)){var i=xr.get(e,n);yield[i,n]}},matches:(e,t)=>hr.isElement(e)&&hr.isElementProps(t)&&hr.matches(e,t)||qr.isText(e)&&qr.isTextProps(t)&&qr.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:r,reverse:n=!1}=t,{from:i=[],to:o}=t,a=new Set,s=[],u=e;!o||!(n?Br.isBefore(s,o):Br.isAfter(s,o));)if(a.has(u)||(yield[u,s]),a.has(u)||qr.isText(u)||0===u.children.length||null!=r&&!1!==r([u,s])){if(0===s.length)break;if(!n){var l=Br.next(s);if(xr.has(e,l)){s=l,u=xr.get(e,s);continue}}if(n&&0!==s[s.length-1])s=Br.previous(s),u=xr.get(e,s);else s=Br.parent(s),u=xr.get(e,s),a.add(u)}else{a.add(u);var c=n?u.children.length-1:0;Br.isAncestor(s,i)&&(c=i[s.length]),s=s.concat(c),u=xr.get(e,s)}},parent(e,t){var r=Br.parent(t),n=xr.get(e,r);if(qr.isText(n))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return n},string:e=>qr.isText(e)?e.text:e.children.map(xr.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[r,n]of xr.nodes(e,t))qr.isText(r)&&(yield[r,n])}};function Or(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}function Ar(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Or(Object(r),!0).forEach((function(t){At(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Or(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Mr={isNodeOperation:e=>Mr.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Ae(e))return!1;switch(e.type){case"insert_node":return Br.isPath(e.path)&&xr.isNode(e.node);case"insert_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Br.isPath(e.path);case"merge_node":return"number"==typeof e.position&&Br.isPath(e.path)&&Ae(e.properties);case"move_node":return Br.isPath(e.path)&&Br.isPath(e.newPath);case"remove_node":return Br.isPath(e.path)&&xr.isNode(e.node);case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Br.isPath(e.path);case"set_node":return Br.isPath(e.path)&&Ae(e.properties)&&Ae(e.newProperties);case"set_selection":return null===e.properties&&Rr.isRange(e.newProperties)||null===e.newProperties&&Rr.isRange(e.properties)||Ae(e.properties)&&Ae(e.newProperties);case"split_node":return Br.isPath(e.path)&&"number"==typeof e.position&&Ae(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>Mr.isOperation(e))),isSelectionOperation:e=>Mr.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Mr.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Ar(Ar({},e),{},{type:"remove_node"});case"insert_text":return Ar(Ar({},e),{},{type:"remove_text"});case"merge_node":return Ar(Ar({},e),{},{type:"split_node",path:Br.previous(e.path)});case"move_node":var{newPath:t,path:r}=e;if(Br.equals(t,r))return e;if(Br.isSibling(r,t))return Ar(Ar({},e),{},{path:t,newPath:r});var n=Br.transform(r,e),i=Br.transform(Br.next(r),e);return Ar(Ar({},e),{},{path:n,newPath:i});case"remove_node":return Ar(Ar({},e),{},{type:"insert_node"});case"remove_text":return Ar(Ar({},e),{},{type:"insert_text"});case"set_node":var{properties:o,newProperties:a}=e;return Ar(Ar({},e),{},{properties:a,newProperties:o});case"set_selection":var{properties:s,newProperties:u}=e;return Ar(Ar({},e),{},null==s?{properties:u,newProperties:null}:null==u?{properties:null,newProperties:s}:{properties:u,newProperties:s});case"split_node":return Ar(Ar({},e),{},{type:"merge_node",path:Br.next(e.path)})}}},Br={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:r=!1}=t,n=Br.levels(e,t);return n=r?n.slice(1):n.slice(0,-1)},common(e,t){for(var r=[],n=0;n<e.length&&n<t.length;n++){var i=e[n];if(i!==t[n])break;r.push(i)}return r},compare(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return 0},endsAfter(e,t){var r=e.length-1,n=e.slice(0,r),i=t.slice(0,r),o=e[r],a=t[r];return Br.equals(n,i)&&o>a},endsAt(e,t){var r=e.length,n=e.slice(0,r),i=t.slice(0,r);return Br.equals(n,i)},endsBefore(e,t){var r=e.length-1,n=e.slice(0,r),i=t.slice(0,r),o=e[r],a=t[r];return Br.equals(n,i)&&o<a},equals:(e,t)=>e.length===t.length&&e.every(((e,r)=>e===t[r])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===Br.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===Br.compare(e,t),isBefore:(e,t)=>-1===Br.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===Br.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===Br.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===Br.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===Br.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var r=e.slice(0,-1),n=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&Br.equals(r,n)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:r=!1}=t,n=[],i=0;i<=e.length;i++)n.push(e.slice(0,i));return r&&n.reverse(),n},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!Br.isAncestor(t,e)&&!Br.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return It(e,(n=>{var{affinity:i="forward"}=r;if(e&&0!==(null==e?void 0:e.length)){if(null===n)return null;switch(t.type){case"insert_node":var{path:o}=t;(Br.equals(o,n)||Br.endsBefore(o,n)||Br.isAncestor(o,n))&&(n[o.length-1]+=1);break;case"remove_node":var{path:a}=t;if(Br.equals(a,n)||Br.isAncestor(a,n))return null;Br.endsBefore(a,n)&&(n[a.length-1]-=1);break;case"merge_node":var{path:s,position:u}=t;Br.equals(s,n)||Br.endsBefore(s,n)?n[s.length-1]-=1:Br.isAncestor(s,n)&&(n[s.length-1]-=1,n[s.length]+=u);break;case"split_node":var{path:l,position:c}=t;if(Br.equals(l,n)){if("forward"===i)n[n.length-1]+=1;else if("backward"!==i)return null}else Br.endsBefore(l,n)?n[l.length-1]+=1:Br.isAncestor(l,n)&&e[l.length]>=c&&(n[l.length-1]+=1,n[l.length]-=c);break;case"move_node":var{path:d,newPath:p}=t;if(Br.equals(d,p))return;if(Br.isAncestor(d,n)||Br.equals(d,n)){var f=p.slice();return Br.endsBefore(d,p)&&d.length<p.length&&(f[d.length-1]-=1),f.concat(n.slice(d.length))}Br.isSibling(d,p)&&(Br.isAncestor(p,n)||Br.equals(p,n))?Br.endsBefore(d,n)?n[d.length-1]-=1:n[d.length-1]+=1:Br.endsBefore(p,n)||Br.equals(p,n)||Br.isAncestor(p,n)?(Br.endsBefore(d,n)&&(n[d.length-1]-=1),n[p.length-1]+=1):Br.endsBefore(d,n)&&(Br.equals(p,n)&&(n[p.length-1]+=1),n[d.length-1]-=1)}}}))}},Pr={transform(e,t){var{current:r,affinity:n}=e;if(null!=r){var i=Br.transform(r,t,{affinity:n});e.current=i,null==i&&e.unref()}}};function Nr(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}function kr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Nr(Object(r),!0).forEach((function(t){At(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Fr={compare(e,t){var r=Br.compare(e.path,t.path);return 0===r?e.offset<t.offset?-1:e.offset>t.offset?1:0:r},isAfter:(e,t)=>1===Fr.compare(e,t),isBefore:(e,t)=>-1===Fr.compare(e,t),equals:(e,t)=>e.offset===t.offset&&Br.equals(e.path,t.path),isPoint:e=>Ae(e)&&"number"==typeof e.offset&&Br.isPath(e.path),transform(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return It(e,(e=>{if(null===e)return null;var{affinity:n="forward"}=r,{path:i,offset:o}=e;switch(t.type){case"insert_node":case"move_node":e.path=Br.transform(i,t,r);break;case"insert_text":Br.equals(t.path,i)&&(t.offset<o||t.offset===o&&"forward"===n)&&(e.offset+=t.text.length);break;case"merge_node":Br.equals(t.path,i)&&(e.offset+=t.position),e.path=Br.transform(i,t,r);break;case"remove_text":Br.equals(t.path,i)&&t.offset<=o&&(e.offset-=Math.min(o-t.offset,t.text.length));break;case"remove_node":if(Br.equals(t.path,i)||Br.isAncestor(t.path,i))return null;e.path=Br.transform(i,t,r);break;case"split_node":if(Br.equals(t.path,i)){if(t.position===o&&null==n)return null;(t.position<o||t.position===o&&"forward"===n)&&(e.offset-=t.position,e.path=Br.transform(i,t,kr(kr({},r),{},{affinity:"forward"})))}else e.path=Br.transform(i,t,r)}}))}},Tr={transform(e,t){var{current:r,affinity:n}=e;if(null!=r){var i=Fr.transform(r,t,{affinity:n});e.current=i,null==i&&e.unref()}}},jr=["anchor","focus"];function Lr(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}var Rr={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:r=!1}=t,{anchor:n,focus:i}=e;return Rr.isBackward(e)===r?[n,i]:[i,n]},end(e){var[,t]=Rr.edges(e);return t},equals:(e,t)=>Fr.equals(e.anchor,t.anchor)&&Fr.equals(e.focus,t.focus),includes(e,t){if(Rr.isRange(t)){if(Rr.includes(e,t.anchor)||Rr.includes(e,t.focus))return!0;var[r,n]=Rr.edges(e),[i,o]=Rr.edges(t);return Fr.isBefore(r,i)&&Fr.isAfter(n,o)}var[a,s]=Rr.edges(e),u=!1,l=!1;return Fr.isPoint(t)?(u=Fr.compare(t,a)>=0,l=Fr.compare(t,s)<=0):(u=Br.compare(t,a.path)>=0,l=Br.compare(t,s.path)<=0),u&&l},intersection(e,t){var r=Zt(e,jr),[n,i]=Rr.edges(e),[o,a]=Rr.edges(t),s=Fr.isBefore(n,o)?o:n,u=Fr.isBefore(i,a)?i:a;return Fr.isBefore(u,s)?null:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lr(Object(r),!0).forEach((function(t){At(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({anchor:s,focus:u},r)},isBackward(e){var{anchor:t,focus:r}=e;return Fr.isAfter(t,r)},isCollapsed(e){var{anchor:t,focus:r}=e;return Fr.equals(t,r)},isExpanded:e=>!Rr.isCollapsed(e),isForward:e=>!Rr.isBackward(e),isRange:e=>Ae(e)&&Fr.isPoint(e.anchor)&&Fr.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Rr.edges(e);return t},transform(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return It(e,(e=>{if(null===e)return null;var n,i,{affinity:o="inward"}=r;if("inward"===o){var a=Rr.isCollapsed(e);Rr.isForward(e)?(n="forward",i=a?n:"backward"):(n="backward",i=a?n:"forward")}else"outward"===o?Rr.isForward(e)?(n="backward",i="forward"):(n="forward",i="backward"):(n=o,i=o);var s=Fr.transform(e.anchor,t,{affinity:n}),u=Fr.transform(e.focus,t,{affinity:i});if(!s||!u)return null;e.anchor=s,e.focus=u}))}},_r={transform(e,t){var{current:r,affinity:n}=e;if(null!=r){var i=Rr.transform(r,t,{affinity:n});e.current=i,null==i&&e.unref()}}},Zr=(e,t)=>{for(var r in e){var n=e[r],i=t[r];if(Ae(n)&&Ae(i)){if(!Zr(n,i))return!1}else if(Array.isArray(n)&&Array.isArray(i)){if(n.length!==i.length)return!1;for(var o=0;o<n.length;o++)if(n[o]!==i[o])return!1}else if(n!==i)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},Hr=["text"],Wr=["anchor","focus"];function Ur(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}function Gr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ur(Object(r),!0).forEach((function(t){At(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ur(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var qr={equals(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:n=!1}=r;function i(e){return Zt(e,Hr)}return Zr(n?i(e):e,n?i(t):t)},isText:e=>Ae(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>qr.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var r in t)if("text"!==r&&(!e.hasOwnProperty(r)||e[r]!==t[r]))return!1;return!0},decorations(e,t){var r=[Gr({},e)];for(var n of t){var i=Zt(n,Wr),[o,a]=Rr.edges(n),s=[],u=0;for(var l of r){var{length:c}=l.text,d=u;if(u+=c,o.offset<=d&&a.offset>=u)Object.assign(l,i),s.push(l);else if(o.offset!==a.offset&&(o.offset===u||a.offset===d)||o.offset>u||a.offset<d||a.offset===d&&0!==d)s.push(l);else{var p=l,f=void 0,m=void 0;if(a.offset<u){var h=a.offset-d;m=Gr(Gr({},p),{},{text:p.text.slice(h)}),p=Gr(Gr({},p),{},{text:p.text.slice(0,h)})}if(o.offset>d){var g=o.offset-d;f=Gr(Gr({},p),{},{text:p.text.slice(0,g)}),p=Gr(Gr({},p),{},{text:p.text.slice(g)})}Object.assign(p,i),f&&s.push(f),s.push(p),m&&s.push(m)}}r=s}return r}};function zr(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}function Vr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zr(Object(r),!0).forEach((function(t){At(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Jr=["text"],Yr=["children"];function Qr(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}function Xr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qr(Object(r),!0).forEach((function(t){At(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Kr={insertNodes(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Er.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:i=!1,mode:o="lowest"}=r,{at:a,match:s,select:u}=r;if(xr.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?Er.end(e,[]):[0],u=!0),null==u&&(u=!1),Rr.isRange(a))if(n||(a=Er.unhangRange(e,a)),Rr.isCollapsed(a))a=a.anchor;else{var[,c]=Rr.edges(a),d=Er.pointRef(e,c);ln.delete(e,{at:a}),a=d.unref()}if(Fr.isPoint(a)){null==s&&(s=qr.isText(l)?e=>qr.isText(e):e.isInline(l)?t=>qr.isText(t)||Er.isInline(e,t):t=>Er.isBlock(e,t));var[p]=Er.nodes(e,{at:a.path,match:s,mode:o,voids:i});if(!p)return;var[,f]=p,m=Er.pathRef(e,f),h=Er.isEnd(e,a,f);ln.splitNodes(e,{at:a,match:s,mode:o,voids:i});var g=m.unref();a=h?Br.next(g):g}var v=Br.parent(a),b=a[a.length-1];if(i||!Er.void(e,{at:v})){for(var y of t){var w=v.concat(b);b++,e.apply({type:"insert_node",path:w,node:y}),a=Br.next(a)}if(a=Br.previous(a),u){var E=Er.end(e,a);E&&ln.select(e,E)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Er.withoutNormalizing(e,(()=>{var{at:r=e.selection,mode:n="lowest",voids:i=!1}=t,{match:o}=t;if(null==o&&(o=Br.isPath(r)?tn(e,r):t=>Er.isBlock(e,t)),r){var a=Er.nodes(e,{at:r,match:o,mode:n,voids:i}),s=Array.from(a,(t=>{var[,r]=t;return Er.pathRef(e,r)}));for(var u of s){var l=u.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=Er.node(e,Br.parent(l)),[d,p]=c,f=l[l.length-1],{length:m}=d.children;if(1===m){var h=Br.next(p);ln.moveNodes(e,{at:l,to:h,voids:i}),ln.removeNodes(e,{at:p,voids:i})}else if(0===f)ln.moveNodes(e,{at:l,to:p,voids:i});else if(f===m-1){var g=Br.next(p);ln.moveNodes(e,{at:l,to:g,voids:i})}else{var v=Br.next(l),b=Br.next(p);ln.splitNodes(e,{at:v,voids:i}),ln.moveNodes(e,{at:l,to:b,voids:i})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Er.withoutNormalizing(e,(()=>{var{match:r,at:n=e.selection}=t,{hanging:i=!1,voids:o=!1,mode:a="lowest"}=t;if(n){if(null==r)if(Br.isPath(n)){var[s]=Er.parent(e,n);r=e=>s.children.includes(e)}else r=t=>Er.isBlock(e,t);if(!i&&Rr.isRange(n)&&(n=Er.unhangRange(e,n)),Rr.isRange(n))if(Rr.isCollapsed(n))n=n.anchor;else{var[,u]=Rr.edges(n),l=Er.pointRef(e,u);ln.delete(e,{at:n}),n=l.unref(),null==t.at&&ln.select(e,n)}var[c]=Er.nodes(e,{at:n,match:r,voids:o,mode:a}),d=Er.previous(e,{at:n,match:r,voids:o,mode:a});if(c&&d){var[p,f]=c,[m,h]=d;if(0!==f.length&&0!==h.length){var g,v,b=Br.next(h),y=Br.common(f,h),w=Br.isSibling(f,h),E=Array.from(Er.levels(e,{at:f}),(e=>{var[t]=e;return t})).slice(y.length).slice(0,-1),D=Er.above(e,{at:f,mode:"highest",match:t=>E.includes(t)&&$r(e,t)}),C=D&&Er.pathRef(e,D[1]);if(qr.isText(p)&&qr.isText(m)){var S=Zt(p,Jr);v=m.text.length,g=S}else{if(!hr.isElement(p)||!hr.isElement(m))throw new Error("Cannot merge the node at path [".concat(f,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(p)," ").concat(JSON.stringify(m)));S=Zt(p,Yr);v=m.children.length,g=S}w||ln.moveNodes(e,{at:f,to:b,voids:o}),C&&ln.removeNodes(e,{at:C.current,voids:o}),hr.isElement(m)&&Er.isEmpty(e,m)||qr.isText(m)&&""===m.text&&0!==h[h.length-1]?ln.removeNodes(e,{at:h,voids:o}):e.apply({type:"merge_node",path:b,position:v,properties:g}),C&&C.unref()}}}}))},moveNodes(e,t){Er.withoutNormalizing(e,(()=>{var{to:r,at:n=e.selection,mode:i="lowest",voids:o=!1}=t,{match:a}=t;if(n){null==a&&(a=Br.isPath(n)?tn(e,n):t=>Er.isBlock(e,t));var s=Er.pathRef(e,r),u=Er.nodes(e,{at:n,match:a,mode:i,voids:o}),l=Array.from(u,(t=>{var[,r]=t;return Er.pathRef(e,r)}));for(var c of l){var d=c.unref(),p=s.current;0!==d.length&&e.apply({type:"move_node",path:d,newPath:p}),s.current&&Br.isSibling(p,d)&&Br.isAfter(p,d)&&(s.current=Br.next(s.current))}s.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Er.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:n=!1,mode:i="lowest"}=t,{at:o=e.selection,match:a}=t;if(o){null==a&&(a=Br.isPath(o)?tn(e,o):t=>Er.isBlock(e,t)),!r&&Rr.isRange(o)&&(o=Er.unhangRange(e,o));var s=Er.nodes(e,{at:o,match:a,mode:i,voids:n}),u=Array.from(s,(t=>{var[,r]=t;return Er.pathRef(e,r)}));for(var l of u){var c=l.unref();if(c){var[d]=Er.node(e,c);e.apply({type:"remove_node",path:c,node:d})}}}}))},setNodes(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Er.withoutNormalizing(e,(()=>{var{match:n,at:i=e.selection,compare:o,merge:a}=r,{hanging:s=!1,mode:u="lowest",split:l=!1,voids:c=!1}=r;if(i){if(null==n&&(n=Br.isPath(i)?tn(e,i):t=>Er.isBlock(e,t)),!s&&Rr.isRange(i)&&(i=Er.unhangRange(e,i)),l&&Rr.isRange(i)){if(Rr.isCollapsed(i)&&Er.leaf(e,i.anchor)[0].text.length>0)return;var d=Er.rangeRef(e,i,{affinity:"inward"}),[p,f]=Rr.edges(i),m="lowest"===u?"lowest":"highest",h=Er.isEnd(e,f,f.path);ln.splitNodes(e,{at:f,match:n,mode:m,voids:c,always:!h});var g=Er.isStart(e,p,p.path);ln.splitNodes(e,{at:p,match:n,mode:m,voids:c,always:!g}),i=d.unref(),null==r.at&&ln.select(e,i)}for(var[v,b]of(o||(o=(e,t)=>e!==t),Er.nodes(e,{at:i,match:n,mode:u,voids:c}))){var y={},w={};if(0!==b.length){var E=!1;for(var D in t)"children"!==D&&"text"!==D&&o(t[D],v[D])&&(E=!0,v.hasOwnProperty(D)&&(y[D]=v[D]),a?null!=t[D]&&(w[D]=a(v[D],t[D])):null!=t[D]&&(w[D]=t[D]));E&&e.apply({type:"set_node",path:b,properties:y,newProperties:w})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Er.withoutNormalizing(e,(()=>{var{mode:r="lowest",voids:n=!1}=t,{match:i,at:o=e.selection,height:a=0,always:s=!1}=t;if(null==i&&(i=t=>Er.isBlock(e,t)),Rr.isRange(o)&&(o=en(e,o)),Br.isPath(o)){var u=o,l=Er.point(e,u),[c]=Er.parent(e,u);i=e=>e===c,a=l.path.length-u.length+1,o=l,s=!0}if(o){var d=Er.pointRef(e,o,{affinity:"backward"}),[p]=Er.nodes(e,{at:o,match:i,mode:r,voids:n});if(p){var f=Er.void(e,{at:o,mode:"highest"});if(!n&&f){var[m,h]=f;if(hr.isElement(m)&&e.isInline(m)){var g=Er.after(e,h);if(!g){var v=Br.next(h);ln.insertNodes(e,{text:""},{at:v,voids:n}),g=Er.point(e,v)}o=g,s=!0}a=o.path.length-h.length+1,s=!0}var b=Er.pointRef(e,o),y=o.path.length-a,[,w]=p,E=o.path.slice(0,y),D=0===a?o.offset:o.path[y]+0;for(var[C,S]of Er.levels(e,{at:E,reverse:!0,voids:n})){var I=!1;if(S.length<w.length||0===S.length||!n&&Er.isVoid(e,C))break;var x=d.current,O=Er.isEnd(e,x,S);if(s||!d||!Er.isEdge(e,x,S)){I=!0;var A=xr.extractProps(C);e.apply({type:"split_node",path:S,position:D,properties:A})}D=S[S.length-1]+(I||O?1:0)}if(null==t.at){var M=b.current||Er.end(e,[]);ln.select(e,M)}d.unref(),b.unref()}}}))},unsetNodes(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var n={};for(var i of t)n[i]=null;ln.setNodes(e,n,r)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Er.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:n=!1,voids:i=!1}=t,{at:o=e.selection,match:a}=t;if(o){null==a&&(a=Br.isPath(o)?tn(e,o):t=>Er.isBlock(e,t)),Br.isPath(o)&&(o=Er.range(e,o));var s=Rr.isRange(o)?Er.rangeRef(e,o):null,u=Er.nodes(e,{at:o,match:a,mode:r,voids:i}),l=Array.from(u,(t=>{var[,r]=t;return Er.pathRef(e,r)})).reverse(),c=function(t){var r=t.unref(),[o]=Er.node(e,r),a=Er.range(e,r);n&&s&&(a=Rr.intersection(s.current,a)),ln.liftNodes(e,{at:a,match:e=>hr.isAncestor(o)&&o.children.includes(e),voids:i})};for(var d of l)c(d);s&&s.unref()}}))},wrapNodes(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Er.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:i=!1,voids:o=!1}=r,{match:a,at:s=e.selection}=r;if(s){if(null==a&&(a=Br.isPath(s)?tn(e,s):e.isInline(t)?t=>Er.isInline(e,t)||qr.isText(t):t=>Er.isBlock(e,t)),i&&Rr.isRange(s)){var[u,l]=Rr.edges(s),c=Er.rangeRef(e,s,{affinity:"inward"});ln.splitNodes(e,{at:l,match:a,voids:o}),ln.splitNodes(e,{at:u,match:a,voids:o}),s=c.unref(),null==r.at&&ln.select(e,s)}var d=Array.from(Er.nodes(e,{at:s,match:e.isInline(t)?t=>Er.isBlock(e,t):e=>Er.isEditor(e),mode:"lowest",voids:o}));for(var[,p]of d){var f=Rr.isRange(s)?Rr.intersection(s,Er.range(e,p)):s;if(f){var m=Array.from(Er.nodes(e,{at:f,match:a,mode:n,voids:o}));if(m.length>0)if("continue"===function(){var[r]=m,n=m[m.length-1],[,i]=r,[,a]=n;if(0===i.length&&0===a.length)return"continue";var s=Br.equals(i,a)?Br.parent(i):Br.common(i,a),u=Er.range(e,i,a),l=Er.node(e,s),[c]=l,d=s.length+1,p=Br.next(a.slice(0,d)),f=Xr(Xr({},t),{},{children:[]});ln.insertNodes(e,f,{at:p,voids:o}),ln.moveNodes(e,{at:u,match:e=>hr.isAncestor(c)&&c.children.includes(e),to:p.concat(0),voids:o})}())continue}}}}))}},$r=(e,t)=>{if(hr.isElement(t)){var r=t;return!!Er.isVoid(e,t)||1===r.children.length&&$r(e,r.children[0])}return!Er.isEditor(t)},en=(e,t)=>{if(Rr.isCollapsed(t))return t.anchor;var[,r]=Rr.edges(t),n=Er.pointRef(e,r);return ln.delete(e,{at:t}),n.unref()},tn=(e,t)=>{var[r]=Er.node(e,t);return e=>e===r};function rn(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}function nn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(r),!0).forEach((function(t){At(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var on={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:r="anchor"}=t,{selection:n}=e;if(n)if("anchor"===r)ln.select(e,n.anchor);else if("focus"===r)ln.select(e,n.focus);else if("start"===r){var[i]=Rr.edges(n);ln.select(e,i)}else if("end"===r){var[,o]=Rr.edges(n);ln.select(e,o)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:r}=e,{distance:n=1,unit:i="character",reverse:o=!1}=t,{edge:a=null}=t;if(r){"start"===a&&(a=Rr.isBackward(r)?"focus":"anchor"),"end"===a&&(a=Rr.isBackward(r)?"anchor":"focus");var{anchor:s,focus:u}=r,l={distance:n,unit:i},c={};if(null==a||"anchor"===a){var d=o?Er.before(e,s,l):Er.after(e,s,l);d&&(c.anchor=d)}if(null==a||"focus"===a){var p=o?Er.before(e,u,l):Er.after(e,u,l);p&&(c.focus=p)}ln.setSelection(e,c)}},select(e,t){var{selection:r}=e;if(t=Er.range(e,t),r)ln.setSelection(e,t);else{if(!Rr.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:r,newProperties:t})}},setPoint(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:n}=e,{edge:i="both"}=r;if(n){"start"===i&&(i=Rr.isBackward(n)?"focus":"anchor"),"end"===i&&(i=Rr.isBackward(n)?"anchor":"focus");var{anchor:o,focus:a}=n,s="anchor"===i?o:a;ln.setSelection(e,{["anchor"===i?"anchor":"focus"]:nn(nn({},s),t)})}},setSelection(e,t){var{selection:r}=e,n={},i={};if(r){for(var o in t)("anchor"===o&&null!=t.anchor&&!Fr.equals(t.anchor,r.anchor)||"focus"===o&&null!=t.focus&&!Fr.equals(t.focus,r.focus)||"anchor"!==o&&"focus"!==o&&t[o]!==r[o])&&(n[o]=r[o],i[o]=t[o]);Object.keys(n).length>0&&e.apply({type:"set_selection",properties:n,newProperties:i})}}},an={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Er.withoutNormalizing(e,(()=>{var{reverse:r=!1,unit:n="character",distance:i=1,voids:o=!1}=t,{at:a=e.selection,hanging:s=!1}=t;if(a){if(Rr.isRange(a)&&Rr.isCollapsed(a)&&(a=a.anchor),Fr.isPoint(a)){var u=Er.void(e,{at:a,mode:"highest"});if(!o&&u){var[,l]=u;a=l}else{var c={unit:n,distance:i};a={anchor:a,focus:r?Er.before(e,a,c)||Er.start(e,[]):Er.after(e,a,c)||Er.end(e,[])},s=!0}}if(Br.isPath(a))ln.removeNodes(e,{at:a,voids:o});else if(!Rr.isCollapsed(a)){if(!s){var[,d]=Rr.edges(a),p=Er.end(e,[]);Fr.equals(d,p)||(a=Er.unhangRange(e,a,{voids:o}))}var[f,m]=Rr.edges(a),h=Er.above(e,{match:t=>Er.isBlock(e,t),at:f,voids:o}),g=Er.above(e,{match:t=>Er.isBlock(e,t),at:m,voids:o}),v=h&&g&&!Br.equals(h[1],g[1]),b=Br.equals(f.path,m.path),y=o?null:Er.void(e,{at:f,mode:"highest"}),w=o?null:Er.void(e,{at:m,mode:"highest"});if(y){var E=Er.before(e,f);E&&h&&Br.isAncestor(h[1],E.path)&&(f=E)}if(w){var D=Er.after(e,m);D&&g&&Br.isAncestor(g[1],D.path)&&(m=D)}var C,S=[];for(var I of Er.nodes(e,{at:a,voids:o})){var[x,O]=I;C&&0===Br.compare(O,C)||(!o&&Er.isVoid(e,x)||!Br.isCommon(O,f.path)&&!Br.isCommon(O,m.path))&&(S.push(I),C=O)}var A=Array.from(S,(t=>{var[,r]=t;return Er.pathRef(e,r)})),M=Er.pointRef(e,f),B=Er.pointRef(e,m);if(!b&&!y){var P=M.current,[N]=Er.leaf(e,P),{path:k}=P,{offset:F}=f,T=N.text.slice(F);T.length>0&&e.apply({type:"remove_text",path:k,offset:F,text:T})}for(var j of A){var L=j.unref();ln.removeNodes(e,{at:L,voids:o})}if(!w){var R=B.current,[_]=Er.leaf(e,R),{path:Z}=R,H=b?f.offset:0,W=_.text.slice(H,m.offset);W.length>0&&e.apply({type:"remove_text",path:Z,offset:H,text:W})}!b&&v&&B.current&&M.current&&ln.mergeNodes(e,{at:B.current,hanging:!0,voids:o});var U=r?M.unref()||B.unref():B.unref()||M.unref();null==t.at&&U&&ln.select(e,U)}}}))},insertFragment(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Er.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:i=!1}=r,{at:o=e.selection}=r;if(t.length&&o){if(Rr.isRange(o))if(n||(o=Er.unhangRange(e,o)),Rr.isCollapsed(o))o=o.anchor;else{var[,a]=Rr.edges(o);if(!i&&Er.void(e,{at:a}))return;var s=Er.pointRef(e,a);ln.delete(e,{at:o}),o=s.unref()}else Br.isPath(o)&&(o=Er.start(e,o));if(i||!Er.void(e,{at:o})){var u=Er.above(e,{at:o,match:t=>Er.isInline(e,t),mode:"highest",voids:i});if(u){var[,l]=u;if(Er.isEnd(e,o,l))o=Er.after(e,l);else if(Er.isStart(e,o,l)){o=Er.before(e,l)}}var c=Er.above(e,{match:t=>Er.isBlock(e,t),at:o,voids:i}),[,d]=c,p=Er.isStart(e,o,d),f=Er.isEnd(e,o,d),m=p&&f,h=!p||p&&f,g=!f,[,v]=xr.first({children:t},[]),[,b]=xr.last({children:t},[]),y=[],w=t=>{var[r,n]=t;return!(0===n.length)&&(!!m||!(h&&Br.isAncestor(n,v)&&hr.isElement(r)&&!e.isVoid(r)&&!e.isInline(r))&&!(g&&Br.isAncestor(n,b)&&hr.isElement(r)&&!e.isVoid(r)&&!e.isInline(r)))};for(var E of xr.nodes({children:t},{pass:w}))w(E)&&y.push(E);var D=[],C=[],S=[],I=!0,x=!1;for(var[O]of y)hr.isElement(O)&&!e.isInline(O)?(I=!1,x=!0,C.push(O)):I?D.push(O):S.push(O);var[A]=Er.nodes(e,{at:o,match:t=>qr.isText(t)||Er.isInline(e,t),mode:"highest",voids:i}),[,M]=A,B=Er.isStart(e,o,M),P=Er.isEnd(e,o,M),N=Er.pathRef(e,f?Br.next(d):d),k=Er.pathRef(e,P?Br.next(M):M),F=Er.pathRef(e,d);ln.splitNodes(e,{at:o,match:t=>x?Er.isBlock(e,t):qr.isText(t)||Er.isInline(e,t),mode:x?"lowest":"highest",voids:i});var T=Er.pathRef(e,!B||B&&P?Br.next(M):M);if(ln.insertNodes(e,D,{at:T.current,match:t=>qr.isText(t)||Er.isInline(e,t),mode:"highest",voids:i}),m&&C.length&&ln.delete(e,{at:F.unref(),voids:i}),ln.insertNodes(e,C,{at:N.current,match:t=>Er.isBlock(e,t),mode:"lowest",voids:i}),ln.insertNodes(e,S,{at:k.current,match:t=>qr.isText(t)||Er.isInline(e,t),mode:"highest",voids:i}),!r.at){var j;j=S.length>0?Br.previous(k.current):C.length>0?Br.previous(N.current):Br.previous(T.current);var L=Er.end(e,j);ln.select(e,L)}T.unref(),N.unref(),k.unref()}}}))},insertText(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Er.withoutNormalizing(e,(()=>{var{voids:n=!1}=r,{at:i=e.selection}=r;if(i){if(Br.isPath(i)&&(i=Er.range(e,i)),Rr.isRange(i))if(Rr.isCollapsed(i))i=i.anchor;else{var o=Rr.end(i);if(!n&&Er.void(e,{at:o}))return;var a=Er.pointRef(e,o);ln.delete(e,{at:i,voids:n}),i=a.unref(),ln.setSelection(e,{anchor:i,focus:i})}if(n||!Er.void(e,{at:i})){var{path:s,offset:u}=i;t.length>0&&e.apply({type:"insert_text",path:s,offset:u,text:t})}}}))}};function sn(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}function un(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sn(Object(r),!0).forEach((function(t){At(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ln=un(un(un(un({},{transform(e,t){e.children=xt(e.children);var r=e.selection&&xt(e.selection);try{r=((e,t,r)=>{switch(r.type){case"insert_node":var{path:n,node:i}=r,o=xr.parent(e,n),a=n[n.length-1];if(a>o.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(n,"] because the destination is past the end of the node."));if(o.children.splice(a,0,i),t)for(var[s,u]of Rr.points(t))t[u]=Fr.transform(s,r);break;case"insert_text":var{path:l,offset:c,text:d}=r;if(0===d.length)break;var p=xr.leaf(e,l),f=p.text.slice(0,c),m=p.text.slice(c);if(p.text=f+d+m,t)for(var[h,g]of Rr.points(t))t[g]=Fr.transform(h,r);break;case"merge_node":var{path:v}=r,b=xr.get(e,v),y=Br.previous(v),w=xr.get(e,y),E=xr.parent(e,v),D=v[v.length-1];if(qr.isText(b)&&qr.isText(w))w.text+=b.text;else{if(qr.isText(b)||qr.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(v,"] to nodes of different interfaces: ").concat(b," ").concat(w));w.children.push(...b.children)}if(E.children.splice(D,1),t)for(var[C,S]of Rr.points(t))t[S]=Fr.transform(C,r);break;case"move_node":var{path:I,newPath:x}=r;if(Br.isAncestor(I,x))throw new Error("Cannot move a path [".concat(I,"] to new path [").concat(x,"] because the destination is inside itself."));var O=xr.get(e,I),A=xr.parent(e,I),M=I[I.length-1];A.children.splice(M,1);var B=Br.transform(I,r),P=xr.get(e,Br.parent(B)),N=B[B.length-1];if(P.children.splice(N,0,O),t)for(var[k,F]of Rr.points(t))t[F]=Fr.transform(k,r);break;case"remove_node":var{path:T}=r,j=T[T.length-1];if(xr.parent(e,T).children.splice(j,1),t)for(var[L,R]of Rr.points(t)){var _=Fr.transform(L,r);if(null!=t&&null!=_)t[R]=_;else{var Z=void 0,H=void 0;for(var[W,U]of xr.texts(e)){if(-1!==Br.compare(U,T)){H=[W,U];break}Z=[W,U]}var G=!1;Z&&H&&(G=Br.equals(H[1],T)?!Br.hasPrevious(H[1]):Br.common(Z[1],T).length<Br.common(H[1],T).length),Z&&!G?(L.path=Z[1],L.offset=Z[0].text.length):H?(L.path=H[1],L.offset=0):t=null}}break;case"remove_text":var{path:q,offset:z,text:V}=r;if(0===V.length)break;var J=xr.leaf(e,q),Y=J.text.slice(0,z),Q=J.text.slice(z+V.length);if(J.text=Y+Q,t)for(var[X,K]of Rr.points(t))t[K]=Fr.transform(X,r);break;case"set_node":var{path:$,properties:ee,newProperties:te}=r;if(0===$.length)throw new Error("Cannot set properties on the root node!");var re=xr.get(e,$);for(var ne in te){if("children"===ne||"text"===ne)throw new Error('Cannot set the "'.concat(ne,'" property of nodes!'));var ie=te[ne];null==ie?delete re[ne]:re[ne]=ie}for(var oe in ee)te.hasOwnProperty(oe)||delete re[oe];break;case"set_selection":var{newProperties:ae}=r;if(null==ae)t=ae;else{if(null==t){if(!Rr.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=Vr({},ae)}for(var se in ae){var ue=ae[se];if(null==ue){if("anchor"===se||"focus"===se)throw new Error('Cannot remove the "'.concat(se,'" selection property'));delete t[se]}else t[se]=ue}}break;case"split_node":var{path:le,position:ce,properties:de}=r;if(0===le.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(le,"] because the root node cannot be split."));var pe,fe=xr.get(e,le),me=xr.parent(e,le),he=le[le.length-1];if(qr.isText(fe)){var ge=fe.text.slice(0,ce),ve=fe.text.slice(ce);fe.text=ge,pe=Vr(Vr({},de),{},{text:ve})}else{var be=fe.children.slice(0,ce),ye=fe.children.slice(ce);fe.children=be,pe=Vr(Vr({},de),{},{children:ye})}if(me.children.splice(he+1,0,pe),t)for(var[we,Ee]of Rr.points(t))t[Ee]=Fr.transform(we,r)}return t})(e,r,t)}finally{e.children=Ot(e.children),e.selection=r?Be(r)?Ot(r):r:null}}}),Kr),on),an),cn=r(19141),dn=r.n(cn),pn=r(76897),fn=r.n(pn),mn=r(38172),hn=r.n(mn);function gn(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function vn(e,t){return(!t||"hidden"!==e)&&("visible"!==e&&"clip"!==e)}function bn(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return vn(r.overflowY,t)||vn(r.overflowX,t)||function(e){var t=function(e){return e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView.frameElement:null}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function yn(e,t,r,n,i,o,a,s){return o<e&&a>t||o>e&&a<t?0:o<=e&&s<=r||a>=t&&s>=r?o-e-n:a>t&&s<r||o<e&&s>r?a-t+i:0}var wn=function(e,t){var r=t.scrollMode,n=t.block,i=t.inline,o=t.boundary,a=t.skipOverflowHiddenElements,s="function"==typeof o?o:function(e){return e!==o};if(!gn(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,l=[],c=e;gn(c)&&s(c);){if((c=c.parentNode)===u){l.push(c);break}c===document.body&&bn(c)&&!bn(document.documentElement)||bn(c,a)&&l.push(c)}for(var d=window.visualViewport?visualViewport.width:innerWidth,p=window.visualViewport?visualViewport.height:innerHeight,f=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,h=e.getBoundingClientRect(),g=h.height,v=h.width,b=h.top,y=h.right,w=h.bottom,E=h.left,D="start"===n||"nearest"===n?b:"end"===n?w:b+g/2,C="center"===i?E+v/2:"end"===i?y:E,S=[],I=0;I<l.length;I++){var x=l[I],O=x.getBoundingClientRect(),A=O.height,M=O.width,B=O.top,P=O.right,N=O.bottom,k=O.left;if("if-needed"===r&&b>=0&&E>=0&&w<=p&&y<=d&&b>=B&&w<=N&&E>=k&&y<=P)return S;var F=getComputedStyle(x),T=parseInt(F.borderLeftWidth,10),j=parseInt(F.borderTopWidth,10),L=parseInt(F.borderRightWidth,10),R=parseInt(F.borderBottomWidth,10),_=0,Z=0,H="offsetWidth"in x?x.offsetWidth-x.clientWidth-T-L:0,W="offsetHeight"in x?x.offsetHeight-x.clientHeight-j-R:0;if(u===x)_="start"===n?D:"end"===n?D-p:"nearest"===n?yn(m,m+p,p,j,R,m+D,m+D+g,g):D-p/2,Z="start"===i?C:"center"===i?C-d/2:"end"===i?C-d:yn(f,f+d,d,T,L,f+C,f+C+v,v),_=Math.max(0,_+m),Z=Math.max(0,Z+f);else{_="start"===n?D-B-j:"end"===n?D-N+R+W:"nearest"===n?yn(B,N,A,j,R+W,D,D+g,g):D-(B+A/2)+W/2,Z="start"===i?C-k-T:"center"===i?C-(k+M/2)+H/2:"end"===i?C-P+L+H:yn(k,P,M,T,L+H,C,C+v,v);var U=x.scrollLeft,G=x.scrollTop;D+=G-(_=Math.max(0,Math.min(G+_,x.scrollHeight-A+W))),C+=U-(Z=Math.max(0,Math.min(U+Z,x.scrollWidth-M+H)))}S.push({el:x,top:_,left:Z})}return S};function En(e){return e===Object(e)&&0!==Object.keys(e).length}var Dn=function(e,t){var r=!e.ownerDocument.documentElement.contains(e);if(En(t)&&"function"==typeof t.behavior)return t.behavior(r?[]:wn(e,t));if(!r){var n=function(e){return!1===e?{block:"end",inline:"nearest"}:En(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var r="scrollBehavior"in document.body.style;e.forEach((function(e){var n=e.el,i=e.top,o=e.left;n.scroll&&r?n.scroll({top:i,left:o,behavior:t}):(n.scrollTop=i,n.scrollLeft=o)}))}(wn(e,n),n.behavior)}},Cn=r(45350);function Sn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function In(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var xn=parseInt(i.version.split(".")[0],10)>=17,On="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,An="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),Mn="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),Bn="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Pn="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),Nn="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(\.)/i.test(navigator.userAgent),kn="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),Fn="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(\.)/i.test(navigator.userAgent),Tn="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])).*/i.test(navigator.userAgent),jn="undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent),Ln="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),Rn="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent),_n=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Zn=!Fn&&!Nn&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,Hn=_n?i.useLayoutEffect:i.useEffect,Wn=e=>{var{isLast:t,leaf:r,parent:n,text:o}=e,a=Di(),s=lo.findPath(a,o),u=Br.parent(s);return a.isVoid(n)?i.createElement(Gn,{length:xr.string(n).length}):""!==r.text||n.children[n.children.length-1]!==o||a.isInline(n)||""!==Er.string(a,u)?""===r.text?i.createElement(Gn,null):t&&"\n"===r.text.slice(-1)?i.createElement(Un,{isTrailing:!0,text:r.text}):i.createElement(Un,{text:r.text}):i.createElement(Gn,{isLineBreak:!0})},Un=e=>{var{text:t,isTrailing:r=!1}=e,n=(0,i.useRef)(null),o=()=>"".concat(null!=t?t:"").concat(r?"\n":"");return Hn((()=>{var e=o();n.current&&n.current.textContent!==e&&(n.current.textContent=e)})),n.current?i.createElement("span",{"data-slate-string":!0,ref:n}):i.createElement("span",{"data-slate-string":!0,ref:n},o())},Gn=e=>{var{length:t=0,isLineBreak:r=!1}=e;return i.createElement("span",{"data-slate-zero-width":r?"n":"z","data-slate-length":t},"\ufeff",r?i.createElement("br",null):null)},qn=new WeakMap,zn=new WeakMap,Vn=new WeakMap,Jn=new WeakMap,Yn=new WeakMap,Qn=new WeakMap,Xn=new WeakMap,Kn=new WeakMap,$n=new WeakMap,ei=new WeakMap,ti=new WeakMap,ri=new WeakMap,ni=new WeakMap,ii=new WeakMap,oi=new WeakMap,ai=new WeakMap,si=Symbol("placeholder"),ui=e=>{var{leaf:t,isLast:r,text:n,parent:o,renderPlaceholder:a,renderLeaf:s=(e=>i.createElement(ci,Object.assign({},e)))}=e,u=(0,i.useRef)(null);(0,i.useEffect)((()=>{var e=null==u?void 0:u.current,t=document.querySelector('[data-slate-editor="true"]');if(e&&t)return t.style.minHeight="".concat(e.clientHeight,"px"),()=>{t.style.minHeight="auto"}}),[u,t]);var l=i.createElement(Wn,{isLast:r,leaf:t,parent:o,text:n});if(t[si]){var c={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none"},contentEditable:!1,ref:u}};l=i.createElement(i.Fragment,null,a(c),l)}return s({attributes:{"data-slate-leaf":!0},children:l,leaf:t,text:n})},li=i.memo(ui,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&qr.equals(t.leaf,e.leaf)&&t.leaf[si]===e.leaf[si])),ci=e=>{var{attributes:t,children:r}=e;return i.createElement("span",Object.assign({},t),r)},di=["anchor","focus"],pi=["anchor","focus"],fi=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every((r=>t.hasOwnProperty(r)&&e[r]===t[r])),mi=(e,t)=>{if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++){var n=e[r],i=t[r],o=In(n,di),a=In(i,pi);if(!Rr.equals(n,i)||n[si]!==i[si]||!fi(o,a))return!1}return!0};function hi(e){var t=(0,i.useRef)(0),r=(0,i.useRef)(null),[,n]=(0,i.useState)(0);return(0,i.useEffect)((()=>(ai.set(e,(()=>{r.current||(r.current=requestAnimationFrame((()=>{n((e=>e+1)),r.current=null})),t.current++)})),()=>{ai.delete(e)})),[e]),r.current&&(cancelAnimationFrame(r.current),r.current=null),t.current}var gi=e=>{for(var{decorations:t,isLast:r,parent:n,renderPlaceholder:o,renderLeaf:a,text:s}=e,u=Di(),l=(0,i.useRef)(null),c=qr.decorations(s,t),d=lo.findKey(u,s),p=[],f=0;f<c.length;f++){var m=c[f];p.push(i.createElement(li,{isLast:r&&f===c.length-1,key:"".concat(d.id,"-").concat(f),renderPlaceholder:o,leaf:m,text:s,parent:n,renderLeaf:a}))}Hn((()=>{var e=Kn.get(u);l.current?(null==e||e.set(d,l.current),Qn.set(s,l.current),Yn.set(l.current,s)):(null==e||e.delete(d),Qn.delete(s))}));var h=Mn?hi(s):void 0;return i.createElement("span",{"data-slate-node":"text",ref:l,key:h},p)},vi=i.memo(gi,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.text===e.text&&mi(t.decorations,e.decorations))),bi=e=>{var{decorations:t,element:r,renderElement:n=(e=>i.createElement(wi,Object.assign({},e))),renderPlaceholder:o,renderLeaf:a,selection:s}=e,u=(0,i.useRef)(null),l=Di(),c=Pi(),d=l.isInline(r),p=lo.findKey(l,r),f=Si({decorations:t,node:r,renderElement:n,renderPlaceholder:o,renderLeaf:a,selection:s}),m={"data-slate-node":"element",ref:u};if(d&&(m["data-slate-inline"]=!0),!d&&Er.hasInlines(l,r)){var h=xr.string(r),g=dn()(h);"rtl"===g&&(m.dir=g)}if(Er.isVoid(l,r)){m["data-slate-void"]=!0,!c&&d&&(m.contentEditable=!1);var v=d?"span":"div",[[b]]=xr.texts(r);f=i.createElement(v,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},i.createElement(vi,{renderPlaceholder:o,decorations:[],isLast:!1,parent:r,text:b})),qn.set(b,0),zn.set(b,r)}Hn((()=>{var e=Kn.get(l);u.current?(null==e||e.set(p,u.current),Qn.set(r,u.current),Yn.set(u.current,r)):(null==e||e.delete(p),Qn.delete(r))}));var y=n({attributes:m,children:f,element:r});if(Mn){var w=hi(r);return i.createElement(i.Fragment,{key:w},y)}return y},yi=i.memo(bi,((e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&mi(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&Rr.equals(e.selection,t.selection)))),wi=e=>{var{attributes:t,children:r,element:n}=e,o=Di().isInline(n)?"span":"div";return i.createElement(o,Object.assign({},t,{style:{position:"relative"}}),r)},Ei=(0,i.createContext)(null),Di=()=>{var e=(0,i.useContext)(Ei);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},Ci=(0,i.createContext)(!1),Si=e=>{for(var{decorations:t,node:r,renderElement:n,renderPlaceholder:o,renderLeaf:a,selection:s}=e,u=Di(),l=lo.findPath(u,r),c=[],d=hr.isElement(r)&&!u.isInline(r)&&Er.hasInlines(u,r),p=function(e){var p=l.concat(e),f=r.children[e],m=lo.findKey(u,f),h=Er.range(u,p),g=s&&Rr.intersection(h,s),v=t.reduce(((e,t)=>{var r=Rr.intersection(t,h);return r&&e.push(r),e}),[]);hr.isElement(f)?c.push(i.createElement(Ci.Provider,{key:"provider-".concat(m.id),value:!!g},i.createElement(yi,{decorations:v,element:f,key:m.id,renderElement:n,renderPlaceholder:o,renderLeaf:a,selection:g}))):c.push(i.createElement(vi,{decorations:v,key:m.id,isLast:d&&e===r.children.length-1,parent:r,renderPlaceholder:o,renderLeaf:a,text:f})),qn.set(f,e),zn.set(f,r)},f=0;f<r.children.length;f++)p(f);return c},Ii={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},xi={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},Oi={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Ai=e=>{var t=Ii[e],r=xi[e],n=Oi[e],i=t&&(0,Cn.TB)(t),o=r&&(0,Cn.TB)(r),a=n&&(0,Cn.TB)(n);return e=>!(!i||!i(e))||(!!(An&&o&&o(e))||!(An||!a||!a(e)))},Mi={isBold:Ai("bold"),isCompose:Ai("compose"),isMoveBackward:Ai("moveBackward"),isMoveForward:Ai("moveForward"),isDeleteBackward:Ai("deleteBackward"),isDeleteForward:Ai("deleteForward"),isDeleteLineBackward:Ai("deleteLineBackward"),isDeleteLineForward:Ai("deleteLineForward"),isDeleteWordBackward:Ai("deleteWordBackward"),isDeleteWordForward:Ai("deleteWordForward"),isExtendBackward:Ai("extendBackward"),isExtendForward:Ai("extendForward"),isExtendLineBackward:Ai("extendLineBackward"),isExtendLineForward:Ai("extendLineForward"),isItalic:Ai("italic"),isMoveLineBackward:Ai("moveLineBackward"),isMoveLineForward:Ai("moveLineForward"),isMoveWordBackward:Ai("moveWordBackward"),isMoveWordForward:Ai("moveWordForward"),isRedo:Ai("redo"),isSoftBreak:Ai("insertSoftBreak"),isSplitBlock:Ai("splitBlock"),isTransposeCharacter:Ai("transposeCharacter"),isUndo:Ai("undo")},Bi=(0,i.createContext)(!1),Pi=()=>(0,i.useContext)(Bi),Ni=(0,i.createContext)(null),ki=()=>{var e=(0,i.useContext)(Ni);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var[t]=e;return t},Fi=(0,i.createContext)((()=>[])),Ti=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,ji=e=>Li(e)&&1===e.nodeType,Li=e=>{var t=Ti(e);return!!t&&e instanceof t.Node},Ri=e=>{var t=e&&e.anchorNode&&Ti(e.anchorNode);return!!t&&e instanceof t.Selection},_i=e=>Li(e)&&3===e.nodeType,Zi=(e,t,r)=>{for(var n,{childNodes:i}=e,o=i[t],a=t,s=!1,u=!1;(Li(n=o)&&8===n.nodeType||ji(o)&&0===o.childNodes.length||ji(o)&&"false"===o.getAttribute("contenteditable"))&&(!s||!u);)a>=i.length?(s=!0,a=t-1,r="backward"):a<0?(u=!0,a=t+1,r="forward"):(o=i[a],t=a,a+="forward"===r?1:-1);return[o,t]},Hi=(e,t,r)=>{var[n]=Zi(e,t,r);return n},Wi=e=>{var t="";if(_i(e)&&e.nodeValue)return e.nodeValue;if(ji(e)){for(var r of Array.from(e.childNodes))t+=Wi(r);var n=getComputedStyle(e).getPropertyValue("display");"block"!==n&&"list"!==n&&"BR"!==e.tagName||(t+="\n")}return t},Ui=/data-slate-fragment="(.+?)"/m,Gi=e=>{var t=e.getData("text/html"),[,r]=t.match(Ui)||[];return r},qi=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as"];function zi(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}function Vi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zi(Object(r),!0).forEach((function(t){Sn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ji=e=>i.createElement(i.Fragment,null,Si(e)),Yi=e=>{var{attributes:t,children:r}=e;return i.createElement("span",Object.assign({},t),r)},Qi=()=>[],Xi=(e,t)=>{if(!e.selection||e.selection&&Rr.isCollapsed(e.selection)){var r=t.startContainer.parentElement;r.getBoundingClientRect=t.getBoundingClientRect.bind(t),Dn(r,{scrollMode:"if-needed"}),delete r.getBoundingClientRect}},Ki=(e,t)=>Li(t)&&lo.hasDOMNode(e,t),$i=(e,t)=>Li(t)&&lo.hasDOMNode(e,t,{editable:!0}),eo=(e,t)=>{if($n.get(e))return!1;var r=Ki(e,t)&&lo.toSlateNode(e,t);return Er.isVoid(e,r)},to=(e,t)=>{if(!t)return!1;var r=t(e);return null!=r?r:e.isDefaultPrevented()||e.isPropagationStopped()},ro=(e,t)=>{if(!t)return!1;var r=t(e);return null!=r?r:e.defaultPrevented};function no(e,t){if(e===t)return null;var r=function(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++)if(e.charAt(n)!==t.charAt(n))return n;return e.length!==t.length?r:null}(e,t);if(null===r)return null;var n=function(e,t,r){for(var n=e.length,i=t.length,o=Math.min(n,i,r),a=0;a<o;a++)if(e.charAt(n-a-1)!==t.charAt(i-a-1))return a;return e.length!==t.length?o:null}(e,t,Math.min(e.length-r,t.length-r));return null===n?null:{start:r,end:n}}function io(e,t){return e.slice(t.start,e.length-t.end)}function oo(e,t){var r=lo.toSlateNode(e,t);if(qr.isText(r)){var n=r.text,i=t.textContent;if(i.endsWith("\n")&&(i=i.slice(0,i.length-1)),i!==n){var o=function(e,t){if(void 0===e||void 0===t)return null;var r=no(e,t);if(null==r)return null;var n=io(t,r),i=io(e,r);return{start:r.start,end:e.length-r.end,insertText:n,removeText:i}}(n,i);if(null!==o)return{text:o,path:lo.findPath(e,r)}}}}function ao(e,t,r){var{path:n,text:i}=r,o={anchor:{path:n,offset:i.start},focus:{path:n,offset:i.end}};if(!t||!Rr.isCollapsed(t))return o;var{insertText:a,removeText:s}=i;if((1===a.length||1===s.length)&&Br.equals(t.anchor.path,n)){var[u]=Array.from(Er.nodes(e,{at:t,match:qr.isText}));if(u){var[l]=u,{anchor:c}=t,d=l.text[c.offset-1],p=l.text[c.offset];if(1===a.length&&a===p)return t;if(1===s.length&&s===d)return{anchor:{path:n,offset:c.offset-1},focus:{path:n,offset:c.offset}}}}return o}var so=0;class uo{constructor(){this.id="".concat(so++)}}var lo={getWindow(e){var t=Vn.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey(e,t){var r=Xn.get(t);return r||(r=new uo,Xn.set(t,r)),r},findPath(e,t){for(var r=[],n=t;;){var i=zn.get(n);if(null==i){if(Er.isEditor(n))return r;break}var o=qn.get(n);if(null==o)break;r.unshift(o),n=i}throw new Error("Unable to find the path for Slate node: ".concat(JSON.stringify(t)))},findDocumentOrShadowRoot(e){var t=lo.toDOMNode(e,e),r=t.getRootNode();return(r instanceof Document||r instanceof ShadowRoot)&&null!=r.getSelection?r:t.ownerDocument},isFocused:e=>!!ei.get(e),isReadOnly:e=>!!$n.get(e),blur(e){var t=lo.toDOMNode(e,e),r=lo.findDocumentOrShadowRoot(e);ei.set(e,!1),r.activeElement===t&&t.blur()},focus(e){var t=lo.toDOMNode(e,e),r=lo.findDocumentOrShadowRoot(e);ei.set(e,!0),r.activeElement!==t&&t.focus({preventScroll:!0})},deselect(e){lo.toDOMNode(e,e);var{selection:t}=e,r=lo.findDocumentOrShadowRoot(e).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),t&&ln.deselect(e)},hasDOMNode(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{editable:i=!1}=n,o=lo.toDOMNode(e,e);try{r=ji(t)?t:t.parentElement}catch(a){if(!a.message.includes('Permission denied to access property "nodeType"'))throw a}return!!r&&!(r.closest("[data-slate-editor]")!==o||i&&!r.isContentEditable&&("boolean"!=typeof r.isContentEditable||r.closest('[contenteditable="false"]')!==o)&&!r.getAttribute("data-slate-zero-width"))},insertData(e,t){e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),setFragmentData(e,t,r){e.setFragmentData(t,r)},toDOMNode(e,t){var r=Kn.get(e),n=Er.isEditor(t)?Jn.get(e):null==r?void 0:r.get(lo.findKey(e,t));if(!n)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(JSON.stringify(t)));return n},toDOMPoint(e,t){var r,[n]=Er.node(e,t.path),i=lo.toDOMNode(e,n);Er.void(e,{at:t})&&(t={path:t.path,offset:0});var o=Array.from(i.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),a=0;for(var s of o){var u=s.childNodes[0];if(null!=u&&null!=u.textContent){var{length:l}=u.textContent,c=s.getAttribute("data-slate-length"),d=a+(null==c?l:parseInt(c,10));if(t.offset<=d){r=[u,Math.min(l,Math.max(0,t.offset-a))];break}a=d}}if(!r)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(JSON.stringify(t)));return r},toDOMRange(e,t){var{anchor:r,focus:n}=t,i=Rr.isBackward(t),o=lo.toDOMPoint(e,r),a=Rr.isCollapsed(t)?o:lo.toDOMPoint(e,n),s=lo.getWindow(e).document.createRange(),[u,l]=i?a:o,[c,d]=i?o:a,p=!!(ji(u)?u:u.parentElement).getAttribute("data-slate-zero-width"),f=!!(ji(c)?c:c.parentElement).getAttribute("data-slate-zero-width");return s.setStart(u,p?1:l),s.setEnd(c,f?1:d),s},toSlateNode(e,t){var r=ji(t)?t:t.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var n=r?Yn.get(r):null;if(!n)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(r));return n},findEventRange(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:r,clientY:n,target:i}=t;if(null==r||null==n)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var o,a=lo.toSlateNode(e,t.target),s=lo.findPath(e,a);if(Er.isVoid(e,a)){var u=i.getBoundingClientRect(),l=e.isInline(a)?r-u.left<u.left+u.width-r:n-u.top<u.top+u.height-n,c=Er.point(e,s,{edge:l?"start":"end"}),d=l?Er.before(e,c):Er.after(e,c);if(d)return Er.range(e,d)}var{document:p}=lo.getWindow(e);if(p.caretRangeFromPoint)o=p.caretRangeFromPoint(r,n);else{var f=p.caretPositionFromPoint(r,n);f&&((o=p.createRange()).setStart(f.offsetNode,f.offset),o.setEnd(f.offsetNode,f.offset))}if(!o)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));return lo.toSlateRange(e,o,{exactMatch:!1,suppressThrow:!1})},toSlatePoint(e,t,r){var{exactMatch:n,suppressThrow:i}=r,[o,a]=n?t:(e=>{var[t,r]=e;if(ji(t)&&t.childNodes.length){var n=r===t.childNodes.length,i=n?r-1:r;for([t,i]=Zi(t,i,n?"backward":"forward"),n=i<r;ji(t)&&t.childNodes.length;){var o=n?t.childNodes.length-1:0;t=Hi(t,o,n?"backward":"forward")}r=n&&null!=t.textContent?t.textContent.length:0}return[t,r]})(t),s=o.parentNode,u=null,l=0;if(s){var c,d=lo.toDOMNode(e,e),p=s.closest('[data-slate-void="true"]'),f=p&&d.contains(p)?p:null,m=s.closest("[data-slate-leaf]"),h=null;if(m){if(u=m.closest('[data-slate-node="text"]')){var g=lo.getWindow(e).document.createRange();g.setStart(u,0),g.setEnd(o,a);var v=g.cloneContents();[...Array.prototype.slice.call(v.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(v.querySelectorAll("[contenteditable=false]"))].forEach((e=>{e.parentNode.removeChild(e)})),l=v.textContent.length,h=u}}else f&&((m=f.querySelector("[data-slate-leaf]"))?(u=m.closest('[data-slate-node="text"]'),l=(h=m).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach((e=>{l-=e.textContent.length}))):l=1);h&&l===h.textContent.length&&(s.hasAttribute("data-slate-zero-width")||Bn&&null!==(c=h.textContent)&&void 0!==c&&c.endsWith("\n\n"))&&l--}if(!u){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var b=lo.toSlateNode(e,u);return{path:lo.findPath(e,b),offset:l}},toSlateRange(e,t,r){var n,i,o,a,s,{exactMatch:u,suppressThrow:l}=r;if((Ri(t)?t.anchorNode:t.startContainer)&&(Ri(t)?(n=t.anchorNode,i=t.anchorOffset,o=t.focusNode,a=t.focusOffset,s=kn&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(n=t.startContainer,i=t.startOffset,o=t.endContainer,a=t.endOffset,s=t.collapsed)),null==n||null==o||null==i||null==a)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));var c=lo.toSlatePoint(e,[n,i],{exactMatch:u,suppressThrow:l});if(!c)return null;var d=s?c:lo.toSlatePoint(e,[o,a],{exactMatch:u,suppressThrow:l});if(!d)return null;var p={anchor:c,focus:d};return Rr.isExpanded(p)&&Rr.isForward(p)&&ji(o)&&Er.void(e,{at:p.focus,mode:"highest"})&&(p=Er.unhangRange(e,p,{voids:!0})),p},hasRange(e,t){var{anchor:r,focus:n}=t;return Er.hasPath(e,r.path)&&Er.hasPath(e,n.path)}};class co{constructor(e,t){this.editor=e,this.restoreDOM=t,this.flush=e=>{try{this.reconcileMutations(e)}catch(t){console.error(t),this.restoreDOM()}},this.reconcileMutations=e=>{var t=function(e,t){var r=[],n=[],i=[],o=[];return t.forEach((t=>{switch(t.type){case"childList":t.addedNodes.length&&t.addedNodes.forEach((e=>{r.push(e)})),t.removedNodes.forEach((e=>{n.push(e)}));break;case"characterData":o.push(t);var{parentNode:a}=t.target;if(!a)return;var s=oo(e,a);if(!s)return;if(i.some((e=>{var{path:t}=e;return Br.equals(t,s.path)})))return;i.push(s)}})),{addedNodes:r,removedNodes:n,insertedText:i,characterDataMutations:o}}(this.editor,e),{insertedText:r,removedNodes:n}=t;if(((e,t)=>{var{selection:r}=e,{removedNodes:n}=t;return!!r&&Rr.isExpanded(r)&&n.length>0})(this.editor,t)){var i=function(e){return e.reduce(((e,t)=>{var{text:r}=t;return"".concat(e).concat(r.insertText)}),"")}(r);this.replaceExpandedSelection(i)}else((e,t)=>{var{addedNodes:r}=t,{selection:n}=e,i=n?xr.parent(e,n.anchor.path):null,o=i?lo.toDOMNode(e,i):null;return!!o&&r.some((e=>e instanceof HTMLElement&&e.tagName===(null==o?void 0:o.tagName)))})(this.editor,t)?this.insertBreak():((e,t)=>{var{addedNodes:r,characterDataMutations:n,removedNodes:i}=t;return i.length>0&&0===r.length&&n.length>0})(this.editor,t)?this.removeLeafNodes(n):((e,t)=>{var{removedNodes:r}=t;return r.length>0})(this.editor,t)?this.deleteBackward():((e,t)=>{var{insertedText:r}=t;return r.length>0})(this.editor,t)&&this.insertText(r)},this.insertText=e=>{var{selection:t}=this.editor;if(ti.get(this.editor)||ri.get(this.editor))return ii.set(this.editor,e),void ri.set(this.editor,!1);e.forEach((e=>{var r=e.text.insertText,n=ao(this.editor,t,e);ln.setSelection(this.editor,n),Er.insertText(this.editor,r)}))},this.insertBreak=()=>{var{selection:e}=this.editor;Er.insertBreak(this.editor),this.restoreDOM(),e&&setTimeout((()=>{this.editor.selection&&Rr.equals(e,this.editor.selection)&&ln.move(this.editor)}),100)},this.replaceExpandedSelection=e=>{Er.deleteFragment(this.editor),e.length&&Er.insertText(this.editor,e),this.restoreDOM()},this.deleteBackward=()=>{Er.deleteBackward(this.editor),lo.focus(this.editor),this.restoreDOM()},this.removeLeafNodes=e=>{for(var t of e){var r=lo.toSlateNode(this.editor,t);if(r){var n=lo.findPath(this.editor,r);ln.delete(this.editor,{at:n}),this.restoreDOM()}}},this.editor=e,this.restoreDOM=t}}function po(e,t,r){var[n]=(0,i.useState)((()=>new MutationObserver(t)));Hn((()=>{n.disconnect()})),(0,i.useEffect)((()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return n.observe(e.current,r),n.disconnect.bind(n)}))}var fo={childList:!0,characterData:!0,subtree:!0};function mo(e){var t,r=ji(e)?e:e.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var n=r&&Yn.get(r);return n||(null!==(t=r)&&void 0!==t&&t.parentElement?mo(r.parentElement):null)}function ho(e,t){var r=Di(),n=(0,i.useRef)(new Set);return po(e,(0,i.useCallback)((e=>{t.current&&e.forEach((e=>{var{target:t}=e,r=mo(t);if(r)return n.current.add(r)}))}),[]),fo),n.current.clear(),(0,i.useCallback)((()=>{var e=Array.from(n.current.values());e.filter((t=>!e.some((e=>Br.isParent(lo.findPath(r,e),lo.findPath(r,t)))))).forEach((e=>{var t;null===(t=ai.get(e))||void 0===t||t()})),n.current.clear()}),[])}var go={childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0};function vo(e){var t=Di(),{receivedUserInput:r,onUserInput:n}=function(){var e=Di(),t=(0,i.useRef)(!1),r=(0,i.useRef)(null),n=(0,i.useCallback)((()=>{if(!1===t.current){var n=lo.getWindow(e);t.current=!0,r.current&&n.cancelAnimationFrame(r.current),r.current=n.requestAnimationFrame((()=>{t.current=!1,r.current=null}))}}),[]);return(0,i.useEffect)((()=>{t.current&&(t.current=!1)})),{receivedUserInput:t,onUserInput:n}}(),o=ho(e,r),a=(0,i.useMemo)((()=>new co(t,o)),[o,t]),s=(0,i.useRef)(null),u=(0,i.useRef)(!1);return po(e,(0,i.useCallback)((e=>{r.current&&(u.current=!0,a.flush(e),s.current&&clearTimeout(s.current),s.current=setTimeout((()=>{u.current=!1,s.current=null}),250))}),[]),go),{isReconciling:u,onUserInput:n}}var bo=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","style","as"];function yo(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}function wo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yo(Object(r),!0).forEach((function(t){Sn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Eo=(0,i.createContext)(!1);var Do=(0,i.createContext)({});var Co=["editor","children","onChange","value"],So=e=>{var{editor:t,children:r,onChange:n,value:o}=e,a=In(e,Co),s=(0,i.useRef)(!1),[u,l]=i.useState((()=>{if(!xr.isNodeList(o))throw new Error("[Slate] value is invalid! Expected a list of elements"+"but got: ".concat(JSON.stringify(o)));if(!Er.isEditor(t))throw new Error("[Slate] editor is invalid! you passed:"+"".concat(JSON.stringify(t)));return t.children=o,Object.assign(t,a),[t]})),{selectorContext:c,onChange:d}=function(e){var t=(0,i.useRef)([]).current,r=(0,i.useRef)({editor:e}).current,n=(0,i.useCallback)((e=>{r.editor=e,t.forEach((t=>t(e)))}),[]);return{selectorContext:(0,i.useMemo)((()=>({getSlate:()=>r.editor,addEventListener:e=>(t.push(e),()=>{t.splice(t.indexOf(e),1)})})),[t,r]),onChange:n}}(t),p=(0,i.useCallback)((()=>{n&&n(t.children),l([t]),d(t)}),[n]);oi.set(t,p),(0,i.useEffect)((()=>()=>{oi.set(t,(()=>{})),s.current=!0}),[]);var[f,m]=(0,i.useState)(lo.isFocused(t));return(0,i.useEffect)((()=>{m(lo.isFocused(t))})),Hn((()=>{var e=()=>m(lo.isFocused(t));return xn?(document.addEventListener("focusin",e),document.addEventListener("focusout",e),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",e)}):(document.addEventListener("focus",e,!0),document.addEventListener("blur",e,!0),()=>{document.removeEventListener("focus",e,!0),document.removeEventListener("blur",e,!0)})}),[]),i.createElement(Do.Provider,{value:c},i.createElement(Ni.Provider,{value:u},i.createElement(Ei.Provider,{value:t},i.createElement(Eo.Provider,{value:f},r))))},Io=(e,t)=>{var r=(t.top+t.bottom)/2;return e.top<=r&&e.bottom>=r},xo=(e,t,r)=>{var n=lo.toDOMRange(e,t).getBoundingClientRect(),i=lo.toDOMRange(e,r).getBoundingClientRect();return Io(n,i)&&Io(i,n)},Oo=e=>{var t=e,{apply:r,onChange:i,deleteBackward:o}=t;return Kn.set(t,new WeakMap),t.deleteBackward=r=>{if("line"!==r)return o(r);if(e.selection&&Rr.isCollapsed(e.selection)){var n=Er.above(e,{match:t=>Er.isBlock(e,t),at:e.selection});if(n){var[,i]=n,a=Er.range(e,i,e.selection.anchor),s=((e,t)=>{var r=Er.range(e,Rr.end(t)),n=Array.from(Er.positions(e,{at:t})),i=0,o=n.length,a=Math.floor(o/2);if(xo(e,Er.range(e,n[i]),r))return Er.range(e,n[i],r);if(n.length<2)return Er.range(e,n[n.length-1],r);for(;a!==n.length&&a!==i;)xo(e,Er.range(e,n[a]),r)?o=a:i=a,a=Math.floor((i+o)/2);return Er.range(e,n[o],r)})(t,a);Rr.isCollapsed(s)||ln.delete(e,{at:s})}}},t.apply=n=>{var i=[];switch(n.type){case"insert_text":case"remove_text":case"set_node":case"split_node":i.push(...Ao(t,n.path));break;case"set_selection":var o;null===(o=ni.get(e))||void 0===o||o.unref(),ni.delete(e);break;case"insert_node":case"remove_node":i.push(...Ao(t,Br.parent(n.path)));break;case"merge_node":var a=Br.previous(n.path);i.push(...Ao(t,a));break;case"move_node":var s=Br.common(Br.parent(n.path),Br.parent(n.newPath));i.push(...Ao(t,s))}for(var[u,l]of(r(n),i)){var[c]=Er.node(t,u);Xn.set(c,l)}},t.setFragmentData=e=>{var{selection:r}=t;if(r){var[n,i]=Rr.edges(r),o=Er.void(t,{at:n.path}),a=Er.void(t,{at:i.path});if(!Rr.isCollapsed(r)||o){var s=lo.toDOMRange(t,r),u=s.cloneContents(),l=u.childNodes[0];if(u.childNodes.forEach((e=>{e.textContent&&""!==e.textContent.trim()&&(l=e)})),a){var[c]=a,d=s.cloneRange(),p=lo.toDOMNode(t,c);d.setEndAfter(p),u=d.cloneContents()}if(o&&(l=u.querySelector("[data-slate-spacer]")),Array.from(u.querySelectorAll("[data-slate-zero-width]")).forEach((e=>{var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),_i(l)){var f=l.ownerDocument.createElement("span");f.style.whiteSpace="pre",f.appendChild(l),u.appendChild(f),l=f}var m=t.getFragment(),h=JSON.stringify(m),g=window.btoa(encodeURIComponent(h));l.setAttribute("data-slate-fragment",g),e.setData("application/x-slate-fragment",g);var v=u.ownerDocument.createElement("div");return v.appendChild(u),v.setAttribute("hidden","true"),u.ownerDocument.body.appendChild(v),e.setData("text/html",v.innerHTML),e.setData("text/plain",Wi(v)),u.ownerDocument.body.removeChild(v),e}}},t.insertData=e=>{t.insertFragmentData(e)||t.insertTextData(e)},t.insertFragmentData=e=>{var r=e.getData("application/x-slate-fragment")||Gi(e);if(r){var n=decodeURIComponent(window.atob(r)),i=JSON.parse(n);return t.insertFragment(i),!0}return!1},t.insertTextData=e=>{var r=e.getData("text/plain");if(r){var n=r.split(/\r\n|\r|\n/),i=!1;for(var o of n)i&&ln.splitNodes(t,{always:!0}),t.insertText(o),i=!0;return!0}return!1},t.onChange=()=>{n.unstable_batchedUpdates((()=>{var e=oi.get(t);e&&e(),i()}))},t},Ao=(e,t)=>{var r=[];for(var[n,i]of Er.levels(e,{at:t})){var o=lo.findKey(e,n);r.push([i,o])}return r},Mo=Mn?e=>{var{autoFocus:t,decorate:r=Qi,onDOMBeforeInput:n,placeholder:o,readOnly:a=!1,renderElement:s,renderLeaf:u,renderPlaceholder:l=(e=>i.createElement(Yi,Object.assign({},e))),style:c={},as:d="div"}=e,p=In(e,bo),f=ki(),[m,h]=(0,i.useState)(!1),g=(0,i.useRef)(null),v=vo(g);$n.set(f,a);var b=(0,i.useMemo)((()=>({isComposing:!1,isUpdatingSelection:!1,latestElement:null})),[]),y=hi(f);Hn((()=>{var e;g.current&&(e=Ti(g.current))?(Vn.set(f,e),Jn.set(f,g.current),Qn.set(f,g.current),Yn.set(g.current,f)):Qn.delete(f);try{var{selection:t}=f,r=lo.findDocumentOrShadowRoot(f).getSelection();if(b.isComposing||!r||!lo.isFocused(f))return;var n="None"!==r.type;if(!t&&!n)return;var i=Jn.get(f),o=!1;if(i.contains(r.anchorNode)&&i.contains(r.focusNode)&&(o=!0),n&&o&&t){var a=lo.toSlateRange(f,r,{exactMatch:!0,suppressThrow:!0});if(a&&Rr.equals(a,t))return}if(t&&!lo.hasRange(f,t))return void(f.selection=lo.toSlateRange(f,r,{exactMatch:!1,suppressThrow:!1}));var s=lo.toDOMNode(f,f);b.isUpdatingSelection=!0;var u=t&&lo.toDOMRange(f,t);if(u){Rr.isBackward(t)?r.setBaseAndExtent(u.endContainer,u.endOffset,u.startContainer,u.startOffset):r.setBaseAndExtent(u.startContainer,u.startOffset,u.endContainer,u.endOffset);var l=u.startContainer.parentElement;l.getBoundingClientRect=u.getBoundingClientRect.bind(u),Dn(l,{scrollMode:"if-needed",boundary:s}),delete l.getBoundingClientRect}else r.removeAllRanges();setTimeout((()=>{b.isUpdatingSelection=!1}))}catch(c){b.isUpdatingSelection=!1}})),(0,i.useEffect)((()=>{g.current&&t&&g.current.focus()}),[t]);var w=(0,i.useCallback)(hn()((()=>{try{if(!b.isComposing&&!b.isUpdatingSelection&&!v.isReconciling.current){var e=lo.findDocumentOrShadowRoot(f),{activeElement:t}=e,r=lo.toDOMNode(f,f),n=e.getSelection();if(t===r?(b.latestElement=t,ei.set(f,!0)):ei.delete(f),!n)return ln.deselect(f);var{anchorNode:i,focusNode:o}=n,a=$i(f,i)||eo(f,i),s=$i(f,o)||eo(f,o);if(a&&s){var u=lo.toSlateRange(f,n,{exactMatch:!1,suppressThrow:!1});ln.select(f,u)}else ln.deselect(f)}}catch(l){}}),100),[a]),E=(0,i.useMemo)((()=>fn()(w,0)),[w]),D=(0,i.useCallback)((e=>{a||!$i(f,e.target)||ro(e,n)||(E.flush(),v.onUserInput())}),[a,n]);Hn((()=>{var e=g.current;return null==e||e.addEventListener("beforeinput",D),()=>null==e?void 0:e.removeEventListener("beforeinput",D)}),[y,n]),Hn((()=>{var e=lo.getWindow(f);return e.document.addEventListener("selectionchange",E),()=>{e.document.removeEventListener("selectionchange",E)}}),[E]);var C=r([f,[]]);if(o&&1===f.children.length&&1===Array.from(xr.texts(f)).length&&""===xr.string(f)&&!m){var S=Er.start(f,[]);C.push({[si]:!0,placeholder:o,anchor:S,focus:S})}return i.createElement(Bi.Provider,{value:a},i.createElement(Fi.Provider,{value:r},i.createElement(d,Object.assign({key:y,role:a?void 0:"textbox"},p,{spellCheck:p.spellCheck,autoCorrect:p.autoCorrect,autoCapitalize:p.autoCapitalize,"data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a||void 0,suppressContentEditableWarning:!0,ref:g,style:wo({position:"relative",outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},c),onCopy:(0,i.useCallback)((e=>{$i(f,e.target)&&!to(e,p.onCopy)&&(e.preventDefault(),lo.setFragmentData(f,e.clipboardData,"copy"))}),[p.onCopy]),onCut:(0,i.useCallback)((e=>{if(!a&&$i(f,e.target)&&!to(e,p.onCut)){e.preventDefault(),lo.setFragmentData(f,e.clipboardData,"cut");var{selection:t}=f;if(t)if(Rr.isExpanded(t))Er.deleteFragment(f);else{var r=xr.parent(f,t.anchor.path);Er.isVoid(f,r)&&ln.delete(f)}}}),[a,p.onCut]),onFocus:(0,i.useCallback)((e=>{if(!a&&!b.isUpdatingSelection&&$i(f,e.target)&&!to(e,p.onFocus)){var t=lo.findDocumentOrShadowRoot(f);b.latestElement=t.activeElement,ei.set(f,!0)}}),[a,p.onFocus]),onBlur:(0,i.useCallback)((e=>{if(!a&&!b.isUpdatingSelection&&$i(f,e.target)&&!to(e,p.onBlur)){var t=lo.findDocumentOrShadowRoot(f);if(b.latestElement!==t.activeElement){var{relatedTarget:r}=e;if(!(r===lo.toDOMNode(f,f)||ji(r)&&r.hasAttribute("data-slate-spacer"))){if(null!=r&&Li(r)&&lo.hasDOMNode(f,r)){var n=lo.toSlateNode(f,r);if(hr.isElement(n)&&!f.isVoid(n))return}ei.delete(f)}}}}),[a,p.onBlur]),onClick:(0,i.useCallback)((e=>{if(!a&&Ki(f,e.target)&&!to(e,p.onClick)&&Li(e.target)){var t=lo.toSlateNode(f,e.target),r=lo.findPath(f,t);if(Er.hasPath(f,r))if(xr.get(f,r)===t){var n=Er.start(f,r),i=Er.end(f,r),o=Er.void(f,{at:n}),s=Er.void(f,{at:i});if(o&&s&&Br.equals(o[1],s[1])){var u=Er.range(f,n);ln.select(f,u)}}}}),[a,p.onClick]),onCompositionEnd:(0,i.useCallback)((e=>{$i(f,e.target)&&!to(e,p.onCompositionEnd)&&(E.flush(),setTimeout((()=>{b.isComposing&&h(!1),b.isComposing=!1,ti.set(f,!1),ri.set(f,!0);var e=ii.get(f)||[];if(e.length){ii.set(f,[]);var{selection:t}=f;e.forEach((e=>{var r=e.text.insertText,n=ao(f,t,e);ln.setSelection(f,n),Er.insertText(f,r)}))}}),20))}),[p.onCompositionEnd]),onCompositionUpdate:(0,i.useCallback)((e=>{$i(f,e.target)&&!to(e,p.onCompositionUpdate)&&(!b.isComposing&&h(!0),b.isComposing=!0,ti.set(f,!0))}),[p.onCompositionUpdate]),onCompositionStart:(0,i.useCallback)((e=>{$i(f,e.target)&&!to(e,p.onCompositionStart)&&(!b.isComposing&&h(!0),b.isComposing=!0,ti.set(f,!0))}),[p.onCompositionStart]),onPaste:(0,i.useCallback)((e=>{e.clipboardData=(e=>{if(!e.getData("application/x-slate-fragment")){var t=Gi(e);if(t){var r=new DataTransfer;return e.types.forEach((t=>{r.setData(t,e.getData(t))})),r.setData("application/x-slate-fragment",t),r}}return e})(e.clipboardData),!$i(f,e.target)||to(e,p.onPaste)||a||(e.preventDefault(),lo.insertData(f,e.clipboardData))}),[a,p.onPaste])}),Si({decorations:C,node:f,renderElement:s,renderPlaceholder:l,renderLeaf:u,selection:f.selection}))))}:e=>{var{autoFocus:t,decorate:r=Qi,onDOMBeforeInput:n,placeholder:o,readOnly:a=!1,renderElement:s,renderLeaf:u,renderPlaceholder:l=(e=>i.createElement(Yi,Object.assign({},e))),scrollSelectionIntoView:c=Xi,style:d={},as:p="div"}=e,f=In(e,qi),m=ki(),[h,g]=(0,i.useState)(!1),v=(0,i.useRef)(null),b=(0,i.useRef)([]);$n.set(m,a);var y=(0,i.useMemo)((()=>({isComposing:!1,hasInsertPrefixInCompositon:!1,isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null})),[]);Hn((()=>{var e;v.current&&(e=Ti(v.current))?(Vn.set(m,e),Jn.set(m,v.current),Qn.set(m,v.current),Yn.set(v.current,m)):Qn.delete(m);var{selection:t}=m,r=lo.findDocumentOrShadowRoot(m).getSelection();if(!y.isComposing&&r&&lo.isFocused(m)){var n="None"!==r.type;if(t||n){var i=Jn.get(m),o=!1;if(i.contains(r.anchorNode)&&i.contains(r.focusNode)&&(o=!0),n&&o&&t){var a=lo.toSlateRange(m,r,{exactMatch:!0,suppressThrow:!0});if(a&&Rr.equals(a,t))return}if(!t||lo.hasRange(m,t)){y.isUpdatingSelection=!0;var s=t&&lo.toDOMRange(m,t);s?(Rr.isBackward(t)?r.setBaseAndExtent(s.endContainer,s.endOffset,s.startContainer,s.startOffset):r.setBaseAndExtent(s.startContainer,s.startOffset,s.endContainer,s.endOffset),c(m,s)):r.removeAllRanges(),setTimeout((()=>{s&&Bn&&lo.toDOMNode(m,m).focus();y.isUpdatingSelection=!1}))}else m.selection=lo.toSlateRange(m,r,{exactMatch:!1,suppressThrow:!1})}}})),(0,i.useEffect)((()=>{v.current&&t&&v.current.focus()}),[t]);var w=(0,i.useCallback)(hn()((()=>{if(!y.isComposing&&!y.isUpdatingSelection&&!y.isDraggingInternally){var e=lo.findDocumentOrShadowRoot(m),{activeElement:t}=e,r=lo.toDOMNode(m,m),n=e.getSelection();if(t===r?(y.latestElement=t,ei.set(m,!0)):ei.delete(m),!n)return ln.deselect(m);var{anchorNode:i,focusNode:o}=n,a=$i(m,i)||eo(m,i),s=$i(m,o)||eo(m,o);if(a&&s){var u=lo.toSlateRange(m,n,{exactMatch:!1,suppressThrow:!1});ln.select(m,u)}}}),100),[a]),E=(0,i.useMemo)((()=>fn()(w,0)),[w]),D=(0,i.useCallback)((e=>{if(!a&&$i(m,e.target)&&!ro(e,n)){var t;E.flush(),w.flush();var{selection:r}=m,{inputType:i}=e,o=e.dataTransfer||e.data||void 0;if("insertCompositionText"===i||"deleteCompositionText"===i)return;var s=!1;if("insertText"===i&&r&&Rr.isCollapsed(r)&&e.data&&1===e.data.length&&/[a-z ]/i.test(e.data)&&0!==r.anchor.offset){s=!0,m.marks&&(s=!1);var{anchor:u}=r,l=Er.above(m,{at:u,match:e=>Er.isInline(m,e),mode:"highest"});if(l){var[,c]=l;Er.isEnd(m,r.anchor,c)&&(s=!1)}}if(s||e.preventDefault(),!i.startsWith("delete")||i.startsWith("deleteBy")){var[d]=e.getTargetRanges();if(d){var p=lo.toSlateRange(m,d,{exactMatch:!1,suppressThrow:!1});if(!r||!Rr.equals(r,p)){var f=m.selection&&Er.rangeRef(m,m.selection);ln.select(m,p),f&&ni.set(m,f)}}}if(r&&Rr.isExpanded(r)&&i.startsWith("delete")){var h=i.endsWith("Backward")?"backward":"forward";return void Er.deleteFragment(m,{direction:h})}switch(i){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Er.deleteFragment(m);break;case"deleteContent":case"deleteContentForward":Er.deleteForward(m);break;case"deleteContentBackward":Er.deleteBackward(m);break;case"deleteEntireSoftLine":Er.deleteBackward(m,{unit:"line"}),Er.deleteForward(m,{unit:"line"});break;case"deleteHardLineBackward":Er.deleteBackward(m,{unit:"block"});break;case"deleteSoftLineBackward":Er.deleteBackward(m,{unit:"line"});break;case"deleteHardLineForward":Er.deleteForward(m,{unit:"block"});break;case"deleteSoftLineForward":Er.deleteForward(m,{unit:"line"});break;case"deleteWordBackward":Er.deleteBackward(m,{unit:"word"});break;case"deleteWordForward":Er.deleteForward(m,{unit:"word"});break;case"insertLineBreak":Er.insertSoftBreak(m);break;case"insertParagraph":Er.insertBreak(m);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":var{selection:v}=m;v&&Rr.isExpanded(v)&&Er.deleteFragment(m),"insertFromComposition"===i&&(y.isComposing&&g(!1),y.isComposing=!1),"DataTransfer"===(null==o?void 0:o.constructor.name)?lo.insertData(m,o):"string"==typeof o&&(s?b.current.push((()=>Er.insertText(m,o))):Er.insertText(m,o))}var D=null===(t=ni.get(m))||void 0===t?void 0:t.unref();ni.delete(m),!D||m.selection&&Rr.equals(m.selection,D)||ln.select(m,D)}}),[a,n]);Hn((()=>(v.current&&Zn&&v.current.addEventListener("beforeinput",D),()=>{v.current&&Zn&&v.current.removeEventListener("beforeinput",D)})),[D]),Hn((()=>{var e=lo.getWindow(m);return e.document.addEventListener("selectionchange",E),()=>{e.document.removeEventListener("selectionchange",E)}}),[E]);var C=[...xr.nodes(m)].flatMap((e=>{var[t,n]=e;return r([t,n])}));if(o&&1===m.children.length&&1===Array.from(xr.texts(m)).length&&""===xr.string(m)&&!h){var S=Er.start(m,[]);C.push({[si]:!0,placeholder:o,anchor:S,focus:S})}return i.createElement(Bi.Provider,{value:a},i.createElement(Fi.Provider,{value:r},i.createElement(p,Object.assign({role:a?void 0:"textbox"},f,{spellCheck:!(!Zn&&_n)&&f.spellCheck,autoCorrect:Zn||!_n?f.autoCorrect:"false",autoCapitalize:Zn||!_n?f.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a,zindex:-1,suppressContentEditableWarning:!0,ref:v,style:Vi({position:"relative",outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},d),onBeforeInput:(0,i.useCallback)((e=>{if(!Zn&&!a&&!to(e,f.onBeforeInput)&&$i(m,e.target)&&(e.preventDefault(),!y.isComposing)){var t=e.data;Er.insertText(m,t)}}),[a]),onInput:(0,i.useCallback)((e=>{for(var t of b.current)t();b.current=[]}),[]),onBlur:(0,i.useCallback)((e=>{if(!a&&!y.isUpdatingSelection&&$i(m,e.target)&&!to(e,f.onBlur)){var t=lo.findDocumentOrShadowRoot(m);if(y.latestElement!==t.activeElement){var{relatedTarget:r}=e;if(!(r===lo.toDOMNode(m,m)||ji(r)&&r.hasAttribute("data-slate-spacer"))){if(null!=r&&Li(r)&&lo.hasDOMNode(m,r)){var n=lo.toSlateNode(m,r);if(hr.isElement(n)&&!m.isVoid(n))return}if(Pn){var i=t.getSelection();null==i||i.removeAllRanges()}ei.delete(m)}}}}),[a,f.onBlur]),onClick:(0,i.useCallback)((e=>{if(Ki(m,e.target)&&!to(e,f.onClick)&&Li(e.target)){var t=lo.toSlateNode(m,e.target),r=lo.findPath(m,t);if(3===e.detail){var n=Er.start(m,[r[0]]),i=Er.end(m,[r[0]]),o=Er.range(m,n,i);return void ln.select(m,o)}if(a)return;if(Er.hasPath(m,r))if(xr.get(m,r)===t){var s=Er.start(m,r),u=Er.end(m,r),l=Er.void(m,{at:s}),c=Er.void(m,{at:u});if(l&&c&&Br.equals(l[1],c[1])){var d=Er.range(m,s);ln.select(m,d)}}}}),[a,f.onClick]),onCompositionEnd:(0,i.useCallback)((e=>{if($i(m,e.target)&&!to(e,f.onCompositionEnd)&&(y.isComposing&&g(!1),y.isComposing=!1,Pn||Tn||On||jn||Rn||Ln||!e.data||Er.insertText(m,e.data),m.selection&&Rr.isCollapsed(m.selection))){var t=m.selection.anchor.path,r=xr.leaf(m,t);y.hasInsertPrefixInCompositon&&(y.hasInsertPrefixInCompositon=!1,Er.withoutNormalizing(m,(()=>{var e=r.text.replace(/^\uFEFF/,"");ln.delete(m,{distance:r.text.length,reverse:!0}),Er.insertText(m,e)})))}}),[f.onCompositionEnd]),onCompositionUpdate:(0,i.useCallback)((e=>{$i(m,e.target)&&!to(e,f.onCompositionUpdate)&&(!y.isComposing&&g(!0),y.isComposing=!0)}),[f.onCompositionUpdate]),onCompositionStart:(0,i.useCallback)((e=>{if($i(m,e.target)&&!to(e,f.onCompositionStart)){var{selection:t,marks:r}=m;if(t){if(Rr.isExpanded(t))return void Er.deleteFragment(m);var n=Er.above(m,{match:e=>Er.isInline(m,e),mode:"highest"});if(n){var[,i]=n;if(Er.isEnd(m,t.anchor,i)){var o=Er.after(m,i);ln.setSelection(m,{anchor:o,focus:o})}}r&&(y.hasInsertPrefixInCompositon=!0,ln.insertNodes(m,Vi({text:"\ufeff"},r),{select:!0}))}}}),[f.onCompositionStart]),onCopy:(0,i.useCallback)((e=>{$i(m,e.target)&&!to(e,f.onCopy)&&(e.preventDefault(),lo.setFragmentData(m,e.clipboardData,"copy"))}),[f.onCopy]),onCut:(0,i.useCallback)((e=>{if(!a&&$i(m,e.target)&&!to(e,f.onCut)){e.preventDefault(),lo.setFragmentData(m,e.clipboardData,"cut");var{selection:t}=m;if(t)if(Rr.isExpanded(t))Er.deleteFragment(m);else{var r=xr.parent(m,t.anchor.path);Er.isVoid(m,r)&&ln.delete(m)}}}),[a,f.onCut]),onDragOver:(0,i.useCallback)((e=>{if(Ki(m,e.target)&&!to(e,f.onDragOver)){var t=lo.toSlateNode(m,e.target);Er.isVoid(m,t)&&e.preventDefault()}}),[f.onDragOver]),onDragStart:(0,i.useCallback)((e=>{if(!a&&Ki(m,e.target)&&!to(e,f.onDragStart)){var t=lo.toSlateNode(m,e.target),r=lo.findPath(m,t);if(Er.isVoid(m,t)||Er.void(m,{at:r,voids:!0})){var n=Er.range(m,r);ln.select(m,n)}y.isDraggingInternally=!0,lo.setFragmentData(m,e.dataTransfer,"drag")}}),[a,f.onDragStart]),onDrop:(0,i.useCallback)((e=>{if(!a&&Ki(m,e.target)&&!to(e,f.onDrop)){e.preventDefault();var t=m.selection,r=lo.findEventRange(m,e),n=e.dataTransfer;ln.select(m,r),y.isDraggingInternally&&(!t||Rr.equals(t,r)||Er.void(m,{at:r,voids:!0})||ln.delete(m,{at:t})),lo.insertData(m,n),lo.isFocused(m)||lo.focus(m)}y.isDraggingInternally=!1}),[a,f.onDrop]),onDragEnd:(0,i.useCallback)((e=>{!a&&y.isDraggingInternally&&f.onDragEnd&&Ki(m,e.target)&&f.onDragEnd(e),y.isDraggingInternally=!1}),[a,f.onDragEnd]),onFocus:(0,i.useCallback)((e=>{if(!a&&!y.isUpdatingSelection&&$i(m,e.target)&&!to(e,f.onFocus)){var t=lo.toDOMNode(m,m),r=lo.findDocumentOrShadowRoot(m);if(y.latestElement=r.activeElement,Bn&&e.target!==t)return void t.focus();ei.set(m,!0)}}),[a,f.onFocus]),onKeyDown:(0,i.useCallback)((e=>{if(!a&&$i(m,e.target)&&!to(e,f.onKeyDown)&&!y.isComposing){var{nativeEvent:t}=e,{selection:r}=m,n=m.children[null!==r?r.focus.path[0]:0],i="rtl"===dn()(xr.string(n));if(Mi.isRedo(t)){e.preventDefault();var o=m;return void("function"==typeof o.redo&&o.redo())}if(Mi.isUndo(t)){e.preventDefault();var s=m;return void("function"==typeof s.undo&&s.undo())}if(Mi.isMoveLineBackward(t))return e.preventDefault(),void ln.move(m,{unit:"line",reverse:!0});if(Mi.isMoveLineForward(t))return e.preventDefault(),void ln.move(m,{unit:"line"});if(Mi.isExtendLineBackward(t))return e.preventDefault(),void ln.move(m,{unit:"line",edge:"focus",reverse:!0});if(Mi.isExtendLineForward(t))return e.preventDefault(),void ln.move(m,{unit:"line",edge:"focus"});if(Mi.isMoveBackward(t))return e.preventDefault(),void(r&&Rr.isCollapsed(r)?ln.move(m,{reverse:!i}):ln.collapse(m,{edge:"start"}));if(Mi.isMoveForward(t))return e.preventDefault(),void(r&&Rr.isCollapsed(r)?ln.move(m,{reverse:i}):ln.collapse(m,{edge:"end"}));if(Mi.isMoveWordBackward(t))return e.preventDefault(),r&&Rr.isExpanded(r)&&ln.collapse(m,{edge:"focus"}),void ln.move(m,{unit:"word",reverse:!i});if(Mi.isMoveWordForward(t))return e.preventDefault(),r&&Rr.isExpanded(r)&&ln.collapse(m,{edge:"focus"}),void ln.move(m,{unit:"word",reverse:i});if(Zn){if((kn||Pn)&&r&&(Mi.isDeleteBackward(t)||Mi.isDeleteForward(t))&&Rr.isCollapsed(r)){var u=xr.parent(m,r.anchor.path);if(hr.isElement(u)&&Er.isVoid(m,u)&&Er.isInline(m,u))return e.preventDefault(),void Er.deleteBackward(m,{unit:"block"})}}else{if(Mi.isBold(t)||Mi.isItalic(t)||Mi.isTransposeCharacter(t))return void e.preventDefault();if(Mi.isSoftBreak(t))return e.preventDefault(),void Er.insertSoftBreak(m);if(Mi.isSplitBlock(t))return e.preventDefault(),void Er.insertBreak(m);if(Mi.isDeleteBackward(t))return e.preventDefault(),void(r&&Rr.isExpanded(r)?Er.deleteFragment(m,{direction:"backward"}):Er.deleteBackward(m));if(Mi.isDeleteForward(t))return e.preventDefault(),void(r&&Rr.isExpanded(r)?Er.deleteFragment(m,{direction:"forward"}):Er.deleteForward(m));if(Mi.isDeleteLineBackward(t))return e.preventDefault(),void(r&&Rr.isExpanded(r)?Er.deleteFragment(m,{direction:"backward"}):Er.deleteBackward(m,{unit:"line"}));if(Mi.isDeleteLineForward(t))return e.preventDefault(),void(r&&Rr.isExpanded(r)?Er.deleteFragment(m,{direction:"forward"}):Er.deleteForward(m,{unit:"line"}));if(Mi.isDeleteWordBackward(t))return e.preventDefault(),void(r&&Rr.isExpanded(r)?Er.deleteFragment(m,{direction:"backward"}):Er.deleteBackward(m,{unit:"word"}));if(Mi.isDeleteWordForward(t))return e.preventDefault(),void(r&&Rr.isExpanded(r)?Er.deleteFragment(m,{direction:"forward"}):Er.deleteForward(m,{unit:"word"}))}}}),[a,f.onKeyDown]),onPaste:(0,i.useCallback)((e=>{a||!$i(m,e.target)||to(e,f.onPaste)||Zn&&!(e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length)(e.nativeEvent)||(e.preventDefault(),lo.insertData(m,e.clipboardData))}),[a,f.onPaste])}),i.createElement(Ji,{decorations:C,node:m,renderElement:s,renderPlaceholder:l,renderLeaf:u,selection:m.selection}))))},Bo={isHistory:e=>Ae(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||Mr.isOperationList(e.redos[0]))&&(0===e.undos.length||Mr.isOperationList(e.undos[0]))},Po=(new WeakMap,new WeakMap),No=new WeakMap,ko={isHistoryEditor:e=>Bo.isHistory(e.history)&&Er.isEditor(e),isMerging:e=>No.get(e),isSaving:e=>Po.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var r=ko.isMerging(e);No.set(e,!1),t(),No.set(e,r)},withoutSaving(e,t){var r=ko.isSaving(e);Po.set(e,!1),t(),Po.set(e,r)}},Fo=(e,t)=>"set_selection"===e.type||(!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!Br.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!Br.equals(e.path,t.path))),To=(e,t)=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties,jo=(e,t)=>!(!t||"set_selection"!==e.type||"set_selection"!==t.type),Lo=e=>"set_selection"!==e.type;r(19985);function Ro(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _o=new WeakMap,Zo=new WeakMap;class Ho{}class Wo extends Ho{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();var{offset:t,path:r}=e;this.offset=t,this.path=r}}class Uo extends Ho{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();var{offset:t,path:r}=e;this.offset=t,this.path=r}}var Go=e=>Zo.get(e);function qo(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}function zo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qo(Object(r),!0).forEach((function(t){Ro(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Vo=new WeakSet,Jo=e=>{var t=[],r=e=>{if(null!=e){var n=t[t.length-1];if("string"==typeof e){var i={text:e};Vo.add(i),e=i}if(qr.isText(e)){var o=e;qr.isText(n)&&Vo.has(n)&&Vo.has(o)&&qr.equals(n,o,{loose:!0})?n.text+=o.text:t.push(o)}else if(hr.isElement(e))t.push(e);else{if(!(e instanceof Ho))throw new Error("Unexpected hyperscript child object: ".concat(e));var a=t[t.length-1];qr.isText(a)||(r(""),a=t[t.length-1]),e instanceof Wo?((e,t)=>{var r=e.text.length;_o.set(e,[r,t])})(a,e):e instanceof Uo&&((e,t)=>{var r=e.text.length;Zo.set(e,[r,t])})(a,e)}}};for(var n of e.flat(1/0))r(n);return t};function Yo(e,t,r){return zo(zo({},t),{},{children:Jo(r)})}function Qo(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}function Xo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qo(Object(r),!0).forEach((function(t){Ro(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ko,$o={anchor:function(e,t,r){return new Wo(t)},cursor:function(e,t,r){return[new Wo(t),new Uo(t)]},editor:(Ko=Rt,(e,t,r)=>{var n,i=[];for(var o of r)Rr.isRange(o)?n=o:i.push(o);var a,s=Jo(i),u={},l=Ko();for(var[c,d]of(Object.assign(l,t),l.children=s,xr.texts(l))){var p=(a=c,_o.get(a)),f=Go(c);if(null!=p){var[m]=p;u.anchor={path:d,offset:m}}if(null!=f){var[h]=f;u.focus={path:d,offset:h}}}if(u.anchor&&!u.focus)throw new Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<anchor />`. For collapsed selections, use `<cursor />` instead.");if(!u.anchor&&u.focus)throw new Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<focus />`. For collapsed selections, use `<cursor />` instead.");return null!=n?l.selection=n:Rr.isRange(u)&&(l.selection=u),l}),element:Yo,focus:function(e,t,r){return new Uo(t)},fragment:function(e,t,r){return Jo(r)},selection:function(e,t,r){var n=r.find((e=>e instanceof Wo)),i=r.find((e=>e instanceof Uo));if(!n||null==n.offset||null==n.path)throw new Error("The <selection> hyperscript tag must have an <anchor> tag as a child with `path` and `offset` attributes defined.");if(!i||null==i.offset||null==i.path)throw new Error("The <selection> hyperscript tag must have a <focus> tag as a child with `path` and `offset` attributes defined.");return zo({anchor:{offset:n.offset,path:n.path},focus:{offset:i.offset,path:i.path}},t)},text:function(e,t,r){var n=Jo(r);if(n.length>1)throw new Error("The <text> hyperscript tag must only contain a single node's worth of children.");var[i]=n;if(null==i&&(i={text:""}),!qr.isText(i))throw new Error("\n The <text> hyperscript tag can only contain text content as children.");return Vo.delete(i),Object.assign(i,t),i}},ea=e=>function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];var a=e[t];if(!a)throw new Error("No hyperscript creator found for tag: <".concat(t,">"));null==r&&(r={}),Ae(r)||(i=[r].concat(i),r={});var s=a(t,r,i=i.filter((e=>Boolean(e))).flat());return s},ta=e=>{var t={},r=function(r){var n=e[r];if("object"!=typeof n)throw new Error("Properties specified for a hyperscript shorthand should be an object, but for the custom element <".concat(r,"> tag you passed: ").concat(n));t[r]=(e,t,r)=>Yo(0,Xo(Xo({},n),t),r)};for(var n in e)r(n);return t},ra=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{elements:t={}}=e,r=ta(t),n=Xo(Xo(Xo({},$o),r),e.creators),i=ea(n);return i}(),na=r(43613),ia=r.n(na),oa={A:e=>({type:"link",url:e.getAttribute("href"),newTab:"_blank"===e.getAttribute("target"),noFollow:!(!e.getAttribute("rel")||!e.getAttribute("rel").includes("nofollow")),sponsored:!(!e.getAttribute("rel")||!e.getAttribute("rel").includes("sponsored"))}),P:()=>({type:"paragraph"}),"WPRM-CODE":e=>({type:"code"})},aa={EM:()=>({italic:!0}),I:()=>({italic:!0}),STRONG:()=>({bold:!0}),B:()=>({bold:!0}),U:()=>({underline:!0}),SUB:()=>({subscript:!0}),SUP:()=>({superscript:!0})},sa=function e(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(3===t.nodeType)return t.textContent.replace(/\r?\n|\r/g,"");if(1!==t.nodeType)return null;if("BR"===t.nodeName)return"";var{nodeName:n}=t,i=t;"PRE"===n&&t.childNodes[0]&&"CODE"===t.childNodes[0].nodeName&&(i=t.childNodes[0]);var o=Array.from(i.childNodes).map((t=>e(t,r))).reduce(((e,t)=>e.concat(t)),[]);if("BODY"===t.nodeName)return ra("fragment",{},o);if(r&&"P"===n)return o;if(oa[n]){var a=oa[n](t);"A"===n&&t.hasAttribute("data-eafl-id")&&(a={type:"affiliate-link",url:t.getAttribute("href"),id:parseInt(t.getAttribute("data-eafl-id"))});var s=ra("element",a,o);return"WPRM-CODE"===n&&(s.children=[{text:t.innerHTML}]),0===s.children.length&&(s.children=[{text:""}]),s}if(aa[n]){var u=aa[n](t);return(o=o.map((e=>"string"==typeof e||qr.isText(e)?e:e.hasOwnProperty("type")&&"link"===e.type&&(console.log("Information Lost",e),e.hasOwnProperty("children")&&1===e.children.length&&e.children[0].hasOwnProperty("text"))?e.children[0].text:""))).map((e=>ra("text",u,e)))}return o},ua=e=>{if(qr.isText(e)){var t=ia()(e.text);return e.bold&&(t="<strong>".concat(t,"</strong>")),e.italic&&(t="<em>".concat(t,"</em>")),e.underline&&(t="<u>".concat(t,"</u>")),e.subscript&&(t="<sub>".concat(t,"</sub>")),e.superscript&&(t="<sup>".concat(t,"</sup>")),t}var r=e.children.map((e=>ua(e))).join("");switch(e.type){case"paragraph":return"<p>".concat(r,"</p>");case"link":var n=[];return e.noFollow&&n.push("nofollow"),e.sponsored&&n.push("sponsored"),'<a href="'.concat(ia()(e.url),'"').concat(e.newTab?' target="_blank"':"").concat(n.length>0?' rel="'.concat(n.join(" "),'"'):"",">").concat(r,"</a>");case"affiliate-link":return'<a href="'.concat(ia()(e.url),'" data-eafl-id="').concat(ia()(e.id),'" class="eafl-link">').concat(r,"</a>");case"code":return"<wprm-code>".concat(r,"</wprm-code>");default:return r}},la=r(76044),ca=e=>{var t=document.getElementById("wprm-admin-modal-toolbar-container");return t?n.createPortal(i.createElement("div",{className:"wprm-admin-modal-toolbar",onMouseDown:e=>{e.preventDefault()}},e.children),t):null},da=(r(33290),()=>{if(!window.hasOwnProperty("EAFL_Modal"))return null;var e=ki(),[t]=Er.nodes(e,{match:e=>"affiliate-link"===e.type}),r=!!t;return i.createElement(i.Fragment,null,i.createElement("span",{className:"wprm-admin-modal-toolbar-button".concat(r?" wprm-admin-modal-toolbar-button-active":""),onMouseDown:n=>{n.preventDefault();var{selection:i}=e,o=i&&Rr.isCollapsed(i),a="";if(o||(window.getSelection?a=window.getSelection().toString():document.selection&&"Control"!=document.selection.type&&(a=document.selection.createRange().text)),r){var s=t[0];EAFL_Modal.open("edit",{linkId:s.id,saveCallback:r=>{s.url!==r.url&&((e,t,r,n)=>{var i=t[0],o=t[1],a={[r]:i[r]},s={[r]:n};e.apply({type:"set_node",path:o,properties:a,newProperties:s})})(e,t,"url",r.url)}})}else EAFL_Modal.open("insert",{insertCallback:(t,r)=>{r||(r="affiliate link");var n={type:"affiliate-link",children:o?[{text:r}]:[],url:t.url,id:t.id};o?ln.insertNodes(e,n):(ln.select(e,i),ln.wrapNodes(e,n,{split:!0}),ln.collapse(e,{edge:"end"}))},selectedText:a})}},i.createElement(la.Z,{type:"eafl-link",title:r?(0,u.S)("Edit Affiliate Link"):(0,u.S)("Add Affiliate Link")})),r&&i.createElement("span",{className:"wprm-admin-modal-toolbar-button wprm-admin-modal-toolbar-button-active",onMouseDown:t=>{t.preventDefault(),ln.unwrapNodes(e,{match:e=>"affiliate-link"===e.type})}},i.createElement(la.Z,{type:"eafl-unlink",title:(0,u.S)("Remove Affiliate Link")})))}),pa=e=>{var t=ki(),r=((e,t)=>{var[r]=Er.nodes(e,{match:e=>e.type===t});return!!r})(t,e.type);return i.createElement(i.Fragment,null,r?i.createElement("span",{className:"wprm-admin-modal-toolbar-button wprm-admin-modal-toolbar-button-active",onMouseDown:r=>{r.preventDefault(),ln.unwrapNodes(t,{match:t=>t.type===e.type})}},e.IconRemove()):i.createElement("span",{className:"wprm-admin-modal-toolbar-button",onMouseDown:r=>{r.preventDefault();var{selection:n}=t,i=n&&Rr.isCollapsed(n),o=!0;if("link"===e.type&&(o=window.prompt((0,u.S)("Enter the URL of the link:"))),"code"===e.type&&i&&(o=window.prompt((0,u.S)("HTML or Shortcode:"))),o){var a={type:e.type,children:i?[{text:""}]:[]};switch(e.type){case"link":a.url=o,i&&(a.children=[{text:o}]);break;case"code":i&&(a.children=[{text:o}]);break;default:i&&(a.children=[{text:e.type}])}i?ln.insertNodes(t,a):(ln.wrapNodes(t,a,{split:!0}),ln.collapse(t,{edge:"end"}))}}},e.IconAdd()))},fa=e=>{var t=ki();return i.createElement("span",{className:"wprm-admin-modal-toolbar-button",onMouseDown:r=>{r.preventDefault(),Er.insertText(t,e.character)}},i.createElement(c.Z,{content:e.title},i.createElement("span",{className:"wprm-admin-modal-toolbar-button-character"},e.character)))},ma=e=>{var t=ki(),r=e.isMarkActive(t,e.type);return i.createElement("span",{className:"wprm-admin-modal-toolbar-button".concat(r?" wprm-admin-modal-toolbar-button-active":""),onMouseDown:r=>{r.preventDefault(),e.toggleMark(t,e.type)}},i.createElement(la.Z,{type:e.type,title:e.title}))};function ha(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}function ga(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ha(Object(r),!0).forEach((function(t){va(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ha(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function va(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ba=e=>{var t=ki();return i.createElement("span",{className:"wprm-admin-modal-toolbar-button",onMouseDown:r=>{r.preventDefault();var n=e.hasOwnProperty("before")?e.before:"",i=e.hasOwnProperty("after")?e.after:"",{selection:o}=t;if(o&&Rr.isCollapsed(o))t.insertText("".concat(n).concat(i)),ln.move(t,{distance:i.length,reverse:!0});else{var[a,s]=Rr.edges(o);JSON.stringify(a.path)===JSON.stringify(s.path)&&(s=ga(ga({},s),{},{offset:s.offset+n.length})),ln.insertText(t,n,{at:a}),ln.insertText(t,i,{at:s}),ln.collapse(t,{edge:"end"})}}},e.Icon())},ya=e=>i.createElement("span",{className:"wprm-admin-modal-toolbar-spacer"}),wa=()=>{var e=ki(),[t]=Er.nodes(e,{match:e=>"affiliate-link"===e.type});if(!t)return null;var r=t[0];return i.createElement("div",{className:"wprm-admin-modal-toolbar-link"},i.createElement(la.Z,{type:"eafl-link"}),i.createElement("span",null,"#",r.id),i.createElement(ya,null),i.createElement(la.Z,{type:"link"}),i.createElement("span",null,r.url))},Ea=(e,t)=>{var r=t[0],n=window.prompt((0,u.S)("Enter the URL of the link:"),r.url);n?Ca(e,t,"url",n):""===n&&ln.unwrapNodes(e,{match:e=>"link"===e.type})},Da=(e,t,r)=>{var n=t[0],i=!!n.hasOwnProperty(r)&&n[r];Ca(e,t,r,!i)},Ca=(e,t,r,n)=>{var i=t[0],o=t[1],a={[r]:i[r]},s={[r]:n};e.apply({type:"set_node",path:o,properties:a,newProperties:s})},Sa=e=>{var t=ki(),[r]=Er.nodes(t,{match:e=>"link"===e.type});if(!r)return null;var n=r[0];return i.createElement("div",{className:"wprm-admin-modal-toolbar-link"},i.createElement(la.Z,{type:"link",onClick:()=>Ea(t,r)}),i.createElement("span",{className:"wprm-admin-modal-toolbar-link-value",onMouseDown:()=>Ea(t,r)},n.url),i.createElement(ya,null),i.createElement(la.Z,{type:n.newTab?"checkbox-checked":"checkbox-empty",onClick:()=>Da(t,r,"newTab")}),i.createElement("span",{className:"wprm-admin-modal-toolbar-link-value",onMouseDown:()=>Da(t,r,"newTab")},(0,u.S)("Open in new tab")),i.createElement(ya,null),i.createElement(la.Z,{type:n.noFollow?"checkbox-checked":"checkbox-empty",onClick:()=>Da(t,r,"noFollow")}),i.createElement("span",{className:"wprm-admin-modal-toolbar-link-value",onMouseDown:()=>Da(t,r,"noFollow")},(0,u.S)("Use nofollow")),i.createElement(ya,null),i.createElement(la.Z,{type:n.sponsored?"checkbox-checked":"checkbox-empty",onClick:()=>Da(t,r,"sponsored")}),i.createElement("span",{className:"wprm-admin-modal-toolbar-link-value",onMouseDown:()=>Da(t,r,"sponsored")},(0,u.S)("Use sponsored")))};r(23528);class Ia extends i.Component{constructor(e){super(e),window.wprm_admin_modal_suggestions=window.wprm_admin_modal_suggestions||{},window.wprm_admin_modal_suggestions.hasOwnProperty(e.type)||(window.wprm_admin_modal_suggestions[e.type]={}),this.state={search:"",suggestions:[],loading:!1}}componentDidMount(){this.updateSuggestions(this.props.value)}componentDidUpdate(){this.props.value!==this.state.search&&this.updateSuggestions(this.props.value)}updateSuggestions(e){window.wprm_admin_modal_suggestions[this.props.type].hasOwnProperty(e)?this.setState({suggestions:window.wprm_admin_modal_suggestions[this.props.type][e],search:e}):(this.setState({loading:!0,search:e}),l.Z.modal.getSuggestions({type:this.props.type,search:e}).then((t=>{t&&(window.wprm_admin_modal_suggestions[this.props.type][e]=t.suggestions,this.setState({suggestions:t.suggestions,loading:!1}))})))}render(){return i.createElement("div",{className:"wprm-admin-modal-toolbar-suggest"},this.state.loading||0!==this.state.suggestions.length?i.createElement(i.Fragment,null,i.createElement("strong",null,(0,u.S)("Suggestions:")),this.state.loading?i.createElement(me.Z,null):i.createElement(i.Fragment,null,this.state.suggestions.map(((e,t)=>i.createElement("span",{className:"wprm-admin-modal-toolbar-suggestion",onMouseDown:t=>{t.preventDefault(),this.props.onSelect(e.name)},key:t},i.createElement("span",{className:"wprm-admin-modal-toolbar-suggestion-text"},P().decode(e.name)," (",e.count,")")))))):i.createElement("strong",null,(0,u.S)("No suggestions found.")))}}function xa(){return(xa=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}).apply(this,arguments)}var Oa=e=>{var t,r="";if("ingredient"!==e.type&&"equipment"!==e.type||(t=ki(),r=ua(t)),!(0,i.useContext)(Eo))return null;var n={visibility:"hidden"},o=!1,a=!1;if("none"===e.type)return null;switch(e.type){case"no-styling":o=!0;break;case"no-link":a=!0;break;case"equipment":case"ingredient":a=!0}return i.createElement(ca,null,i.createElement(wa,null),i.createElement(Sa,null),("ingredient"===e.type||"equipment"===e.type)&&i.createElement(Ia,{value:r,onSelect:e=>{ln.deselect(t),ln.select(t,{path:[0,0],offset:0}),ln.move(t,{unit:"line",edge:"end"}),ln.delete(t),Er.insertText(t,e)},type:e.type}),i.createElement("div",{className:"wprm-admin-modal-toolbar-buttons"},i.createElement("span",{style:o?n:null},i.createElement(ma,xa({},e,{type:"bold",title:(0,u.S)("Bold")})),i.createElement(ma,xa({},e,{type:"italic",title:(0,u.S)("Italic")})),i.createElement(ma,xa({},e,{type:"underline",title:(0,u.S)("Underline")})),i.createElement(ya,null),i.createElement(ma,xa({},e,{type:"subscript",title:(0,u.S)("Subscript")})),i.createElement(ma,xa({},e,{type:"superscript",title:(0,u.S)("Superscript")}))),i.createElement(ya,null),i.createElement("span",{style:a?n:null},i.createElement(pa,{type:"link",IconAdd:()=>i.createElement(la.Z,{type:"link",title:(0,u.S)("Add Link")}),IconRemove:()=>i.createElement(la.Z,{type:"unlink",title:(0,u.S)("Remove Link")})}),i.createElement(da,null)),i.createElement(ya,null),i.createElement(pa,{type:"code",IconAdd:()=>i.createElement(la.Z,{type:"code",title:(0,u.S)("Add HTML or Shortcode")}),IconRemove:()=>i.createElement(la.Z,{type:"code",title:(0,u.S)("Remove HTML or Shortcode")})}),"roundup"!==e.type&&i.createElement(i.Fragment,null,i.createElement(ba,{before:"[adjustable]",after:"[/adjustable]",Icon:()=>i.createElement(la.Z,{type:"adjustable",title:(0,u.S)("Add Adjustable Shortcode")})}),i.createElement(ba,{before:"[timer minutes=0]",after:"[/timer]",Icon:()=>i.createElement(la.Z,{type:"clock",title:(0,u.S)("Add Timer Shortcode")})}),i.createElement(ya,null),i.createElement(fa,{character:"½"}),i.createElement(fa,{character:"⅓"}),i.createElement(fa,{character:"⅔"}),i.createElement(fa,{character:"¼"}),i.createElement(fa,{character:"¾"}),i.createElement(fa,{character:"⅕"}),i.createElement(fa,{character:"⅖"}),i.createElement(fa,{character:"⅗"}),i.createElement(fa,{character:"⅘"}),i.createElement(fa,{character:"⅙"}),i.createElement(fa,{character:"⅚"}),i.createElement(fa,{character:"⅐"}),i.createElement(fa,{character:"⅛"}),i.createElement(fa,{character:"⅜"}),i.createElement(fa,{character:"⅝"}),i.createElement(fa,{character:"⅞"}),i.createElement(ya,null),i.createElement(fa,{character:"°"}),i.createElement(fa,{character:"Ø"}))))};function Aa(){return(Aa=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}).apply(this,arguments)}var Ma=e=>{var{attributes:t,children:r,element:n}=e;switch(n.type){case"link":var o=[];return n.noFollow&&o.push("nofollow"),n.sponsored&&o.push("sponsored"),i.createElement("a",Aa({href:n.url,target:n.newTab?"_blank":null,rel:o.length>0?o.join(" "):null},t),r);case"affiliate-link":return i.createElement("a",Aa({href:n.url,"data-eafl-id":n.id,className:"eafl-link"},t),r);case"code":return i.createElement("wprm-code",null,r);default:return i.createElement("p",t,r)}},Ba=e=>{var{attributes:t,children:r,leaf:n}=e;return n.bold&&(r=i.createElement("strong",null,r)),n.italic&&(r=i.createElement("em",null,r)),n.underline&&(r=i.createElement("u",null,r)),n.subscript&&(r=i.createElement("sub",null,r)),n.superscript&&(r=i.createElement("sup",null,r)),i.createElement("span",t,r)},Pa={"mod+b":"bold","mod+i":"italic","mod+u":"underline"},Na=["link","affiliate-link","code"],ka=e=>{var{isInline:t}=e;return e.isInline=e=>!!Na.includes(e.type)||t(e),e},Fa=(e,t)=>{var{insertData:r}=e;return e.insertData=n=>{var i=n.getData("text/html");if(i){var o=(new DOMParser).parseFromString(i,"text/html"),a=sa(o.body,t.singleLine);ln.insertFragment(e,a)}else r(n)},e},Ta=e=>{for(var t=(new DOMParser).parseFromString(e,"text/html"),r=sa(t.body),n=0;n<r.length;n++){var i=r[n];i.hasOwnProperty("text")&&(r[n]={type:"paragraph",children:[i]})}return r},ja=(e,t)=>{La(e,t)?Er.removeMark(e,t):Er.addMark(e,t,!0)},La=(e,t)=>{var r=Er.marks(e);return!!r&&!0===r[t]},Ra=e=>{if(Ie())return e.singleLine?i.createElement("div",{className:"wprm-admin-modal-field-richtext-legacy"},i.createElement(g.Z,e)):i.createElement("div",{className:"wprm-admin-modal-field-richtext-legacy"},i.createElement(ie.Z,e));var t=(0,i.useMemo)((()=>Fa(ka((e=>{var t=e,{apply:r}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:r}=e;if(r.length>0){var n=r[r.length-1];ko.withoutSaving(t,(()=>{Er.withoutNormalizing(t,(()=>{for(var e of n)t.apply(e)}))})),e.redos.pop(),e.undos.push(n)}},t.undo=()=>{var{history:e}=t,{undos:r}=e;if(r.length>0){var n=r[r.length-1];ko.withoutSaving(t,(()=>{Er.withoutNormalizing(t,(()=>{var e=n.map(Mr.inverse).reverse();for(var r of e)t.apply(r)}))})),e.redos.push(n),e.undos.pop()}},t.apply=e=>{var{operations:n,history:i}=t,{undos:o}=i,a=o[o.length-1],s=a&&a[a.length-1],u=jo(e,s),l=ko.isSaving(t),c=ko.isMerging(t);if(null==l&&(l=To(e)),l){if(null==c&&(c=null!=a&&(0!==n.length||Fo(e,s)||u)),a&&c)u&&a.pop(),a.push(e);else{var d=[e];o.push(d)}for(;o.length>100;)o.shift();Lo(e)&&(i.redos=[])}r(e)},t})(Oo(Rt()))),e)),[]),r=e.value;e.value&&e.singleLine&&(r=(r=(r=""+e.value).replace("<p>","")).replace("</p>",""),r="<p>".concat(r,"</p>"));var n,o=[{type:"paragraph",children:[{text:""}]}];try{n=e.value?Ta(r):o}catch(u){alert("Error loading one of the rich text fields. Some information may be lost. Please check the summary, equipment, ingredients and instructions before saving. Make sure your browser is updated to the latest version if you keep getting this message."),console.log("Text Value",r),console.log("FieldRichText Error",u),n=o}var[a,s]=(0,i.useState)(n);return i.createElement(So,{spellCheck:!0,editor:t,value:a,onChange:r=>{s(r);var n=ua(t);e.singleLine&&(n=n.replace(/^<p>(.*)<\/p>$/gm,"$1")),e.onChange(n)}},i.createElement(Oa,{type:e.toolbar?e.toolbar:"all",isMarkActive:La,toggleMark:ja}),i.createElement(Mo,{className:"wprm-admin-modal-field-richtext".concat(e.className?" ".concat(e.className):"").concat(e.singleLine?" wprm-admin-modal-field-richtext-singleline":""),placeholder:e.placeholder,renderElement:(0,i.useCallback)((e=>i.createElement(Ma,e)),[]),renderLeaf:(0,i.useCallback)((e=>i.createElement(Ba,e)),[]),onFocus:()=>{"Firefox"===Se().getParser(window.navigator.userAgent).parsedResult.browser.name&&""!==e.value&&"<p></p>"!==e.value||(ln.deselect(t),ln.select(t,{anchor:Er.start(t,[]),focus:Er.end(t,[])}),ln.collapse(t,{edge:"end"}))},onKeyDown:r=>{if(e.singleLine&&(0,Cn.ZP)("enter",r))r.preventDefault();else{for(var n in Pa){if((0,Cn.ZP)(n,r))r.preventDefault(),ja(t,Pa[n])}e.onKeyDown&&e.onKeyDown(r)}},tabIndex:0}))};class _a extends i.Component{constructor(e){super(e),this.state={errors:0}}componentDidCatch(e,t){this.setState({errors:this.state.errors+1})}render(){return i.createElement(Ra,this.props)}}function Za(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}function Ha(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Za(Object(r),!0).forEach((function(t){Wa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Za(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Wa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ua=e=>{var t=Ha({shape:"round",unit:"inch",diameter:0,width:0,length:0,height:0},e.servings);return i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings"},i.createElement(xe,{name:"advanced-servings",value:e.enabled,onChange:t=>{e.onChangeEnabled(t)}}),e.enabled&&i.createElement(i.Fragment,null,!wprm_admin.addons.premium&&i.createElement("p",null,(0,u.S)("This feature is only available in")," ",i.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium"),". ",(0,u.S)("You can already fill in the values, but the adjustable changer will not show up yet.")),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details"},i.createElement(M.Z,{options:[{value:"round",label:(0,u.S)("Round")},{value:"rectangle",label:(0,u.S)("Rectangle")}],value:t.shape,onChange:r=>{e.onChangeServings(Ha(Ha({},t),{},{shape:r}))},width:147}),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details-text"},(0,u.S)("measured in")),i.createElement(M.Z,{options:[{value:"inch",label:(0,u.S)("inch")},{value:"cm",label:(0,u.S)("cm")}],value:t.unit,onChange:r=>{e.onChangeServings(Ha(Ha({},t),{},{unit:r}))},width:100})),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details"},"round"===t.shape?i.createElement(i.Fragment,null,i.createElement(g.Z,{placeholder:"6",type:"number",min:"0",step:"any",value:0!=t.diameter?t.diameter:"",onChange:r=>{e.onChangeServings(Ha(Ha({},t),{},{diameter:r}))}}),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details-text"},t.unit," ",(0,u.S)("diameter"))):i.createElement(i.Fragment,null,i.createElement(g.Z,{placeholder:"6",type:"number",min:"0",step:"any",value:0!=t.width?t.width:"",onChange:r=>{e.onChangeServings(Ha(Ha({},t),{},{width:r}))}}),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details-text"},"x"),i.createElement(g.Z,{placeholder:"6",type:"number",min:"0",step:"any",value:0!=t.length?t.length:"",onChange:r=>{e.onChangeServings(Ha(Ha({},t),{},{length:r}))}}),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details-text"},t.unit," ",(0,u.S)("area")))),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details"},i.createElement(g.Z,{placeholder:"",type:"number",min:"0",step:"any",value:0!=t.height?t.height:"",onChange:r=>{e.onChangeServings(Ha(Ha({},t),{},{height:r}))}}),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details-text"},t.unit," ",(0,u.S)("height")," (",(0,u.S)("optional"),")"))))},Ga=e=>{var t=wprm_admin_modal.options.author.find((t=>t.value===e.author.display));return i.createElement(i.Fragment,null,Ie()&&i.createElement(A.Z,{id:"warning",label:(0,u.S)("Warning!")},i.createElement("p",null,"Looks like you're using an older browser like ",i.createElement("strong",null,"Legacy Microsoft Edge")," or ",i.createElement("strong",null,"Internet Explorer")," which does not support all of our advanced features."),i.createElement("p",null,"We highly recommend using ",i.createElement("a",{href:"https://www.google.com/chrome/",target:"_blank"},"Google Chrome"),", ",i.createElement("a",{href:"https://www.mozilla.org/en-US/firefox/new/",target:"_blank"},"Firefox"),", ",i.createElement("a",{href:"https://support.apple.com/downloads/safari",target:"_blank"},"Safari")," or ",i.createElement("a",{href:"https://www.microsoft.com/en-us/edge",target:"_blank"},"Microsoft Edge"),".")),i.createElement(A.Z,{id:"type",label:(0,u.S)("Recipe Type"),help:(0,u.S)("Make sure to pick the right recipe type to ensure we include the correct metadata.")},i.createElement(v.Z,{id:"type",options:[{value:"food",label:(0,u.S)("Food Recipe")},{value:"howto",label:(0,u.S)("How-to Instructions")},{value:"other",label:(0,u.S)("Other (no metadata)")}],value:e.type,onChange:t=>{e.onRecipeChange({type:t})}})),i.createElement(A.Z,{id:"name",label:(0,u.S)("Name")},i.createElement(g.Z,{name:"recipe-name",placeholder:(0,u.S)("Recipe Name"),value:e.name,onChange:t=>{e.onRecipeChange({name:t})}})),i.createElement(A.Z,{id:"summary",label:"howto"===e.type?(0,u.S)("Description"):(0,u.S)("Summary")},i.createElement(_a,{placeholder:(0,u.S)("Short description of this recipe..."),value:e.summary,onChange:t=>{e.onRecipeChange({summary:t})}})),t&&"same"===t.actual?null:i.createElement(A.Z,{id:"author",label:(0,u.S)("Author")},i.createElement(M.Z,{options:wprm_admin_modal.options.author.filter((e=>"same"!==e.actual)),value:e.author.display,onChange:t=>{e.onRecipeChange({author_display:t})},width:300})),t&&"custom"===t.actual&&i.createElement(i.Fragment,null,i.createElement(A.Z,{id:"author-name",label:(0,u.S)("Name")},i.createElement(g.Z,{name:"author-name",placeholder:(0,u.S)("Author Name"),value:e.author.name,onChange:t=>{e.onRecipeChange({author_name:t})}})),i.createElement(A.Z,{id:"author-link",label:(0,u.S)("Link")},i.createElement(g.Z,{name:"author-link",placeholder:"https://bootstrapped.ventures",type:"url",value:e.author.link,onChange:t=>{e.onRecipeChange({author_link:t})}}))),i.createElement(A.Z,{id:"servings",label:"howto"===e.type?(0,u.S)("Yield"):(0,u.S)("Servings")},i.createElement(g.Z,{placeholder:"4",type:"number",min:"0",step:"any",value:0!=e.servings.amount?e.servings.amount:"",onChange:t=>{e.onRecipeChange({servings:t})}}),i.createElement(g.Z,{name:"servings-unit",placeholder:"howto"===e.type?(0,u.S)("candles"):(0,u.S)("people"),value:e.servings.unit,onChange:t=>{e.onRecipeChange({servings_unit:t})}})),i.createElement(A.Z,{id:"advanced-servings",label:(0,u.S)("Advanced Servings"),help:(0,u.S)("Enable to have an advanced servings calculator, useful for different baking forms")},i.createElement(Ua,{enabled:e.servings_advanced_enabled,onChangeEnabled:t=>{e.onRecipeChange({servings_advanced_enabled:t})},servings:e.servings_advanced,onChangeServings:t=>{e.onRecipeChange({servings_advanced:t})}})),i.createElement(A.Z,{id:"cost",label:(0,u.S)("Estimated Cost"),help:"howto"===e.type?(0,u.S)("The estimated cost of the materials consumed when performing instructions. Used in the metadata."):null},i.createElement(g.Z,{name:"cost",placeholder:"$5",value:e.cost,onChange:t=>{e.onRecipeChange({cost:t})}})),wprm_admin_modal.integrations.my_emissions_checkbox&&i.createElement(A.Z,{id:"my-emissions",label:(0,u.S)("My Emissions Label")},i.createElement(xe,{name:"my-emissions",value:e.my_emissions,onChange:t=>{e.onRecipeChange({my_emissions:t})}})))},qa=e=>{var t=parseInt(e.value.time),r=0,n=0,o=0;return t>0&&(r=Math.floor(t/24/60),n=Math.floor(t/60%24),o=Math.floor(t%60)),i.createElement("div",{className:"wprm-admin-modal-field-time"},i.createElement("div",{className:"wprm-admin-modal-field-time-parts"},i.createElement("input",{type:"number",value:0<r?""+r:"",onChange:t=>{var r=parseInt(t.target.value);r=isNaN(r)?0:r;var i=1440*Math.max(0,r)+60*n+o;e.onChange(i)}})," ",(0,u.S)("days"),i.createElement("input",{type:"number",value:0<n?""+n:"",onChange:t=>{var n=parseInt(t.target.value);n=isNaN(n)?0:n;var i=1440*r+60*Math.max(0,n)+o;e.onChange(i)}})," ",(0,u.S)("hours"),i.createElement("input",{type:"number",value:0<o?""+o:e.value.zero?"0":"",onChange:t=>{var i=parseInt(t.target.value);i=isNaN(i)?0:i;var o=1440*r+60*n+Math.max(0,i);e.onChange(o)}})," ",(0,u.S)("minutes")),0===t&&e.hasOwnProperty("onChangeZero")&&i.createElement("div",{className:"wprm-admin-modal-field-time-none"},i.createElement("input",{id:"wprm-admin-modal-field-time-none-".concat(e.id),type:"checkbox",checked:e.value.zero,onChange:t=>{e.onChangeZero(t.target.checked)}})," ",i.createElement("label",{htmlFor:"wprm-admin-modal-field-time-none-".concat(e.id)},(0,u.S)('Show "0" in template'))))},za=e=>{var t=Math.max(0,parseInt(e.prep.time))+Math.max(0,parseInt(e.cook.time))+Math.max(0,parseInt(e.custom.time));return i.createElement(i.Fragment,null,i.createElement(A.Z,{id:"prep-time",label:(0,u.S)("Prep Time")},i.createElement(qa,{id:"prep",value:e.prep,onChange:t=>{e.onRecipeChange({prep_time:t})},onChangeZero:t=>{e.onRecipeChange({prep_time_zero:t})}})),i.createElement(A.Z,{id:"cook-time",label:"howto"===e.type?(0,u.S)("Active Time"):(0,u.S)("Cook Time")},i.createElement(qa,{id:"cook",value:e.cook,onChange:t=>{e.onRecipeChange({cook_time:t})},onChangeZero:t=>{e.onRecipeChange({cook_time_zero:t})}})),i.createElement(A.Z,{id:"custom-time-label",label:(0,u.S)("Custom Time Label"),help:(0,u.S)("Optional extra time field that you can label yourself. Examples: Resting Time, Baking Time")},i.createElement(g.Z,{name:"custom-time-label",placeholder:(0,u.S)("Resting Time"),value:e.customLabel,onChange:t=>{e.onRecipeChange({custom_time_label:t})}})),i.createElement(A.Z,{id:"custom-time",label:(0,u.S)("Custom Time")},i.createElement(qa,{id:"custom",value:e.custom,onChange:t=>{e.onRecipeChange({custom_time:t})},onChangeZero:t=>{e.onRecipeChange({custom_time_zero:t})}})),i.createElement(A.Z,{id:"total-time",label:(0,u.S)("Total Time")},i.createElement(qa,{id:"total",value:e.total,onChange:t=>{e.onRecipeChange({total_time:t})}}),t!==parseInt(e.total.time)&&i.createElement("div",null,i.createElement("a",{href:"#",onClick:r=>{r.preventDefault(),e.onRecipeChange({total_time:t})}},(0,u.S)("Recalculate Total Time")))))};function Va(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}function Ja(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Ya extends i.Component{shouldComponentUpdate(e){return JSON.stringify(this.props.tags)!==JSON.stringify(e.tags)}render(){var e=Object.keys(wprm_admin_modal.categories);return i.createElement(i.Fragment,null,e.map(((e,t)=>{var r=wprm_admin_modal.categories[e],n=this.props.tags.hasOwnProperty(e)?this.props.tags[e]:[];return i.createElement(A.Z,{id:e,label:r.label,help:r.hasOwnProperty("help")?r.help:null,key:t},i.createElement(J,{id:e,value:n,onChange:t=>{var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Va(Object(r),!0).forEach((function(t){Ja(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Va(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},this.props.tags);r[e]=t,this.props.onRecipeChange({tags:r})},creatable:r.creatable,width:"450px"}))})))}}var Qa=e=>e.modes?i.createElement("div",{className:"wprm-admin-modal-field-edit-mode-container"},Object.keys(e.modes).map(((t,r)=>{var n=e.modes[t],o=null;return n.hasOwnProperty("help")&&(o=i.createElement(la.Z,{type:"question",title:n.help,className:"wprm-admin-icon-help"})),i.createElement("a",{href:"#",className:"wprm-admin-modal-field-edit-mode".concat(t===e.mode?" wprm-admin-modal-field-edit-mode-selected":""),onClick:r=>{r.preventDefault(),e.onModeChange(t)},key:r},n.label,o)}))):null,Xa=(r(45550),r(34916));function Ka(){return(Ka=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}).apply(this,arguments)}var $a=(0,Cn.TB)("tab"),es=e=>i.createElement("div",Ka({className:"wprm-admin-modal-field-ingredient-handle"},e.dragHandleProps,{tabIndex:"-1"}),i.createElement(la.Z,{type:"drag"}));class ts extends i.Component{shouldComponentUpdate(e){return JSON.stringify(this.props)!==JSON.stringify(e)}render(){return i.createElement(Xa._l,{draggableId:"ingredient-".concat(this.props.uid),index:this.props.index},((e,t)=>"group"===this.props.type?((e,t)=>i.createElement("div",Ka({className:"wprm-admin-modal-field-ingredient-group",ref:t.innerRef},t.draggableProps),es(t),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-group-name-container"},i.createElement(_a,{singleLine:!0,className:"wprm-admin-modal-field-ingredient-group-name",toolbar:"no-styling",value:e.name,placeholder:"howto"===e.recipeType?(0,u.S)("Material Group Header"):(0,u.S)("Ingredient Group Header"),onChange:t=>e.onChangeName(t),onKeyDown:t=>{$a(t)&&e.onTab(t)}})),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-after-container"},i.createElement("div",{className:"wprm-admin-modal-field-ingredient-after-container-icons"},i.createElement(la.Z,{type:"trash",onClick:e.onDelete}),i.createElement(la.Z,{type:"plus",title:(0,u.S)("Insert After"),onClick:e.onAdd})))))(this.props,e):((e,t)=>{var r=e.amount,n=e.unit;return i.createElement("div",Ka({className:"wprm-admin-modal-field-ingredient",ref:t.innerRef},t.draggableProps),es(t),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-text-container"},i.createElement(_a,{singleLine:!0,toolbar:wprm_admin.addons.premium?"all":"no-link",className:"wprm-admin-modal-field-ingredient-amount",value:r,placeholder:"1",onChange:t=>{e.onChangeIngredient({amount:t})}}),i.createElement(_a,{singleLine:!0,toolbar:wprm_admin.addons.premium?"all":"no-link",value:n,placeholder:"howto"===e.recipeType?(0,u.S)("piece"):(0,u.S)("tbsp"),onChange:t=>{e.onChangeIngredient({unit:t})}}),i.createElement(_a,{singleLine:!0,toolbar:"ingredient",value:e.name,placeholder:"howto"===e.recipeType?(0,u.S)("paper"):(0,u.S)("olive oil"),onChange:t=>{e.onChangeIngredient({name:t,globalLink:!1})}}),i.createElement(_a,{singleLine:!0,toolbar:wprm_admin.addons.premium?"all":"no-link",value:e.notes,placeholder:"howto"===e.recipeType?(0,u.S)("any color"):(0,u.S)("extra virgin"),onChange:t=>e.onChangeIngredient({notes:t}),onKeyDown:t=>{$a(t)&&e.onTab(t)}})),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-after-container"},i.createElement("div",{className:"wprm-admin-modal-field-ingredient-after-container-icons"},i.createElement(la.Z,{type:"trash",onClick:e.onDelete}),i.createElement(la.Z,{type:"plus",title:(0,u.S)("Insert After"),onClick:e.onAdd}))))})(this.props,e)))}}function rs(){return(rs=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}).apply(this,arguments)}function ns(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}function is(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ns(Object(r),!0).forEach((function(t){os(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ns(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function os(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class as extends i.Component{constructor(e){super(e),this.container=i.createRef(),this.lastAddedIndex=0}shouldComponentUpdate(e,t){return this.props.type!==e.type||JSON.stringify(this.props.ingredients)!==JSON.stringify(e.ingredients)}componentDidUpdate(e){if(this.props.ingredients.length>e.ingredients.length){var t=this.container.current.querySelectorAll(".wprm-admin-modal-field-ingredient-group-name, .wprm-admin-modal-field-ingredient-amount");t.length&&t[this.lastAddedIndex]&&t[this.lastAddedIndex].focus()}}onDragEnd(e){if(e.destination){var t=JSON.parse(JSON.stringify(this.props.ingredients)),r=e.source.index,n=e.destination.index,i=t.splice(r,1)[0];t.splice(n,0,i),this.props.onRecipeChange({ingredients_flat:t})}}addField(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=JSON.parse(JSON.stringify(this.props.ingredients));t="group"===e?{type:"group",name:""}:{type:"ingredient",amount:"",unit:"",name:"",notes:""};var i=Math.max.apply(Math,n.map((function(e){return e.uid})));i=i<0?-1:i,t.uid=i+1,!1===r?(n.push(t),this.lastAddedIndex=n.length-1):(n.splice(r+1,0,t),this.lastAddedIndex=r+1),this.props.onRecipeChange({ingredients_flat:n})}render(){return i.createElement("div",{className:"wprm-admin-modal-field-ingredient-edit-container",ref:this.container},i.createElement(Xa.Z5,{onDragEnd:this.onDragEnd.bind(this)},i.createElement(Xa.bK,{droppableId:"wprm-ingredients"},((e,t)=>i.createElement("div",rs({className:"".concat(t.isDraggingOver?" wprm-admin-modal-field-ingredient-container-draggingover":""),ref:e.innerRef},e.droppableProps),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-header-container"},i.createElement("div",{className:"wprm-admin-modal-field-ingredient-header"},(0,u.S)("Amount")),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-header"},(0,u.S)("Unit")),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-header"},(0,u.S)("Name")," ",i.createElement("span",{className:"wprm-admin-modal-field-ingredient-header-required"},"(",(0,u.S)("required"),")")),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-header"},(0,u.S)("Notes"))),this.props.ingredients.map(((e,t)=>i.createElement(ts,rs({},e,{recipeType:this.props.type,index:t,key:"ingredient-".concat(e.uid),onTab:e=>{t===this.props.ingredients.length-1&&(e.preventDefault(),setTimeout((()=>{this.addField("ingredient")})))},onChangeName:e=>{var r=JSON.parse(JSON.stringify(this.props.ingredients));r[t].name=e,this.props.onRecipeChange({ingredients_flat:r})},onChangeIngredient:e=>{var r=JSON.parse(JSON.stringify(this.props.ingredients));r[t]=is(is({},r[t]),e),this.props.onRecipeChange({ingredients_flat:r})},onDelete:()=>{var e=JSON.parse(JSON.stringify(this.props.ingredients)),r=JSON.parse(JSON.stringify(this.props.instructions)),n=e.splice(t,1);n[0]&&n[0].hasOwnProperty("uid")&&function(){var e=n[0].uid;for(var t of r)t.hasOwnProperty("ingredients")&&(t.ingredients=t.ingredients.filter((t=>t!==e)))}(),this.props.onRecipeChange({ingredients_flat:e,instructions_flat:r})},onAdd:()=>{this.addField("ingredient",t)}})))),e.placeholder)))),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-actions"},i.createElement("button",{className:"button",onClick:e=>{e.preventDefault(),this.addField("ingredient")}},"howto"===this.props.type?(0,u.S)("Add Material"):(0,u.S)("Add Ingredient")),i.createElement("button",{className:"button",onClick:e=>{e.preventDefault(),this.addField("group")}},"howto"===this.props.type?(0,u.S)("Add Material Group"):(0,u.S)("Add Ingredient Group")),i.createElement("p",null,(0,u.S)("Tip: use the TAB key to move from field to field and easily add ingredients."))))}}var ss=r(5831),us=(r(29897),r(38328)),ls=r.n(us),cs=e=>{var{ingredient:t,isConverting:r,method:n}=e,o=t.converted?t.converted:{2:{amount:"",unit:""}},a=(e=>{var t=[{label:(0,u.S)("Convert"),options:[{value:"none",label:(0,u.S)("Keep Unit")},{value:"automatic",label:(0,u.S)("Automatically")}]}],r=[];wprm_admin_modal.unit_conversion.systems[e].weight.map((e=>{r.push({value:e,label:wprm_admin_modal.unit_conversion.units.data[e].label})})),0<r.length&&t.push({label:(0,u.S)("Weight Units"),options:r});var n=[];return wprm_admin_modal.unit_conversion.systems[e].volume.map((e=>{n.push({value:e,label:wprm_admin_modal.unit_conversion.units.data[e].label})})),0<n.length&&t.push({label:(0,u.S)("Volume Units"),options:n}),t})(e.convertedUnitSystem),s="".concat(t.amount," ").concat(t.unit).trim();return s="".concat(s," ").concat(t.name).trim(),t.notes&&(s+=" (".concat(t.notes,")")),i.createElement("tr",null,i.createElement("td",null,i.createElement(M.Z,{isDisabled:r,options:a,placeholder:(0,u.S)("Convert..."),value:n,onChange:t=>{e.onMethodChange(t)},width:150})),i.createElement("td",{style:"failed"===n?{color:"darkred"}:null},r?i.createElement(me.Z,null):i.createElement("div",{className:"wprm-admin-modal-field-ingredient-unit-conversion-fields"},i.createElement(_a,{singleLine:!0,value:""+o[2].amount,onChange:t=>{var r=o;r[2].amount=t,e.onConvertedChange(r)}}),i.createElement(_a,{singleLine:!0,value:""+o[2].unit,onChange:t=>{var r=o;r[2].unit=t,e.onConvertedChange(r)}}))),i.createElement("td",null,ls()(s)))};class ds extends i.Component{constructor(e){super(e),this.state={isConverting:{},methods:{}},this.convert=this.convert.bind(this),this.convertAll=this.convertAll.bind(this)}convertAll(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",r=[],n=0;n<this.props.ingredients.length;n++){"ingredient"===this.props.ingredients[n].type&&r.push(n)}r&&this.convert(r,e,t)}convert(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default",n=this.state.isConverting,i=this.state.methods;if("none"===t){var o=JSON.parse(JSON.stringify(this.props.ingredients));for(var a of e){var s=this.props.ingredients[a];s.hasOwnProperty("converted")||(o[a].converted={2:{}}),o[a].converted[2].amount=s.amount,o[a].converted[2].unit=s.unit,n[a]=!1,i[a]=t}this.props.onIngredientsChange(o)}else{var u={};for(var c of e){var d=this.props.ingredients[c];u[c]={index:c,amount:(0,ss.L)(d.amount),unit:d.unit,name:d.name},"automatic"!==t&&(u[c].units_to=[t]),n[c]=!0,i[c]=t}l.Z.unitConversion.get(u,r).then((e=>{if(e&&e.conversions){var r=JSON.parse(JSON.stringify(this.props.ingredients)),n=this.state.isConverting,i=this.state.methods;for(var o in e.conversions){var a=this.props.ingredients[parseInt(o)],s=e.conversions[o];a.hasOwnProperty("converted")||(r[o].converted={2:{}}),"failed"===s.type?(r[o].converted[2].amount=a.amount,r[o].converted[2].unit=a.unit,i[o]=s.type):(r[o].converted[2].amount=(0,ss.o)(s.amount,wprmp_admin.settings.unit_conversion_round_to_decimals,!0),r[o].converted[2].unit=s.alias,i[o]="none"===s.type?"none":t),n[o]=!1}this.props.onIngredientsChange(r),this.setState({isConverting:n,methods:i})}}))}this.setState({isConverting:n,methods:i})}render(){if(!wprm_admin.addons.pro)return i.createElement("p",null,(0,u.S)("This feature is only available in")," ",i.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Pro Bundle"),".");if(!wprm_admin_modal.unit_conversion)return i.createElement("p",null,(0,u.S)("You need to set up this feature on the WP Recipe Maker > Settings > Unit Conversion page first."));if(!this.props.ingredients.filter((e=>"ingredient"===e.type&&e.name)).length)return i.createElement("p",null,(0,u.S)("No ingredients set for this recipe."));var e="default"===this.props.system?wprm_admin_modal.unit_conversion.default_system:this.props.system;1!==(e=parseInt(e))&&2!==e&&(e=1);var t=2===e?1:2;return i.createElement("div",{className:"wprm-admin-modal-field-ingredient-unit-conversion-container"},i.createElement("div",{className:"wprm-admin-modal-field-ingredient-unit-conversion-system"},i.createElement("label",null,(0,u.S)("Original Unit System for this recipe"),":"),i.createElement(M.Z,{options:[{value:"default",label:"".concat((0,u.S)("Use Default")," (").concat(wprm_admin_modal.unit_conversion.systems[parseInt(wprm_admin_modal.unit_conversion.default_system)].label,")")},{value:"1",label:"".concat((0,u.S)("First Unit System")," (").concat(wprm_admin_modal.unit_conversion.systems[1].label,")")},{value:"2",label:"".concat((0,u.S)("Second Unit System")," (").concat(wprm_admin_modal.unit_conversion.systems[2].label,")")}],value:this.props.system,onChange:e=>{this.props.onSystemChange(e)},width:255})),i.createElement("table",{className:"wprm-admin-modal-field-ingredient-unit-conversion"},i.createElement("thead",null,i.createElement("tr",null,i.createElement("th",null,(0,u.S)("Conversion")),i.createElement("th",null,(0,u.S)("Converted")," (",wprm_admin_modal.unit_conversion.systems[t].label,")"),i.createElement("th",null,(0,u.S)("Original")," (",wprm_admin_modal.unit_conversion.systems[e].label,")"))),i.createElement("tbody",null,this.props.ingredients.map(((e,r)=>"group"!==e.type&&e.name?i.createElement(cs,{ingredient:e,isConverting:this.state.isConverting[r],method:this.state.methods[r],onMethodChange:e=>{this.state.isConverting[r]||this.convert([r],e,t)},onConvertedChange:e=>{var t=JSON.parse(JSON.stringify(this.props.ingredients));t[r].converted=e,this.props.onIngredientsChange(t)},convertedUnitSystem:t,key:r}):null)))),i.createElement("button",{className:"button button-primary",onClick:e=>{e.preventDefault(),this.convertAll("automatic",t)}},(0,u.S)("Convert All Automatically")))}}var{hooks:ps}=WPRecipeMaker["wp-recipe-maker/dist/shared"];class fs extends i.Component{constructor(e){super(e),this.state={mode:"edit"}}shouldComponentUpdate(e,t){return this.state.mode!==t.mode||this.props.type!==e.type||this.props.linkType!==e.linkType||this.props.system!==e.system||JSON.stringify(this.props.ingredients)!==JSON.stringify(e.ingredients)}render(){var e={edit:{label:"howto"===this.props.type?(0,u.S)("Edit Materials"):(0,u.S)("Edit Ingredients"),block:as},"ingredient-links":{label:"howto"===this.props.type?(0,u.S)("Material Links"):(0,u.S)("Ingredient Links"),block:()=>i.createElement("p",null,(0,u.S)("This feature is only available in")," ",i.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium"),".")},"unit-conversion":{label:(0,u.S)("Unit Conversion"),block:()=>i.createElement("p",null,(0,u.S)("This feature is only available in")," ",i.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Pro Bundle"),".")}};wprm_admin.addons.pro&&(e["unit-conversion"].block=ds);var t=ps.applyFilters("modalRecipeIngredients",e),r=!!t.hasOwnProperty(this.state.mode)&&t[this.state.mode].block;if(!r)return null;var n=null;switch(this.state.mode){case"unit-conversion":n=i.createElement(r,{ingredients:this.props.ingredients,onIngredientsChange:e=>{this.props.onRecipeChange({ingredients_flat:e})},system:this.props.system,onSystemChange:e=>{this.props.onRecipeChange({unit_system:e})}});break;case"ingredient-links":n=i.createElement(r,{ingredients:this.props.ingredients,onIngredientsChange:e=>{this.props.onRecipeChange({ingredients_flat:e})},type:this.props.linkType,onTypeChange:e=>{this.props.onRecipeChange({ingredient_links_type:e})},onModeChange:this.props.onModeChange});break;case"preview":n=i.createElement(r,{ingredients:this.props.ingredients});break;default:n=i.createElement(r,{type:this.props.type,ingredients:this.props.ingredients,instructions:this.props.instructions,onRecipeChange:this.props.onRecipeChange})}return i.createElement("div",{className:"wprm-admin-modal-field-ingredient-container"},i.createElement(Qa,{modes:e,mode:this.state.mode,onModeChange:e=>{this.setState({mode:e})}}),n)}}function ms(){return(ms=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}).apply(this,arguments)}var hs=(0,Cn.TB)("tab");class gs extends i.Component{shouldComponentUpdate(e){return JSON.stringify(this.props)!==JSON.stringify(e)}render(){var e=this.props.amount?this.props.amount:"",t=this.props.notes?this.props.notes:"";return i.createElement(Xa._l,{draggableId:"equipment-".concat(this.props.uid),index:this.props.index},((r,n)=>i.createElement("div",ms({className:"wprm-admin-modal-field-equipment",ref:r.innerRef},r.draggableProps),(e=>i.createElement("div",ms({className:"wprm-admin-modal-field-equipment-handle"},e.dragHandleProps,{tabIndex:"-1"}),i.createElement(la.Z,{type:"drag"})))(r),i.createElement("div",{className:"wprm-admin-modal-field-equipment-text-container"},i.createElement(_a,{singleLine:!0,toolbar:wprm_admin.addons.premium?"all":"no-link",className:"wprm-admin-modal-field-equipment-amount",value:e,placeholder:"1",onChange:e=>this.props.onChangeEquipment({amount:e})}),i.createElement(_a,{singleLine:!0,toolbar:"equipment",value:this.props.name,placeholder:"howto"===this.props.recipeType?(0,u.S)("Pair of scissors"):(0,u.S)("Pressure cooker"),onChange:e=>this.props.onChangeEquipment({name:e})}),i.createElement(_a,{singleLine:!0,toolbar:wprm_admin.addons.premium?"all":"no-link",value:t,placeholder:(0,u.S)("optional"),onChange:e=>this.props.onChangeEquipment({notes:e}),onKeyDown:e=>{hs(e)&&this.props.onTab(e)}})),i.createElement("div",{className:"wprm-admin-modal-field-equipment-after-container"},i.createElement("div",{className:"wprm-admin-modal-field-equipment-after-container-icons"},i.createElement(la.Z,{type:"trash",onClick:this.props.onDelete}),i.createElement(la.Z,{type:"plus",title:(0,u.S)("Insert After"),onClick:this.props.onAdd}))))))}}function vs(){return(vs=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}).apply(this,arguments)}function bs(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}function ys(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bs(Object(r),!0).forEach((function(t){ws(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ws(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Es extends i.Component{constructor(e){super(e),this.container=i.createRef(),this.lastAddedIndex=0}shouldComponentUpdate(e){return this.props.type!==e.type||JSON.stringify(this.props.equipment)!==JSON.stringify(e.equipment)}componentDidUpdate(e){if(this.props.equipment.length>e.equipment.length){var t=this.container.current.querySelectorAll(".wprm-admin-modal-field-equipment-amount");t.length&&t[this.lastAddedIndex]&&t[this.lastAddedIndex].focus()}}onDragEnd(e){if(e.destination){var t=JSON.parse(JSON.stringify(this.props.equipment)),r=e.source.index,n=e.destination.index,i=t.splice(r,1)[0];t.splice(n,0,i),this.props.onRecipeChange({equipment:t})}}addField(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=JSON.parse(JSON.stringify(this.props.equipment)),r={name:""},n=Math.max.apply(Math,t.map((function(e){return e.uid})));n=n<0?-1:n,r.uid=n+1,!1===e?(t.push(r),this.lastAddedIndex=t.length-1):(t.splice(e+1,0,r),this.lastAddedIndex=e+1),this.props.onRecipeChange({equipment:t})}render(){return i.createElement("div",{className:"wprm-admin-modal-field-equipment-edit-container",ref:this.container},i.createElement(Xa.Z5,{onDragEnd:this.onDragEnd.bind(this)},i.createElement(Xa.bK,{droppableId:"wprm-equipment"},((e,t)=>i.createElement("div",vs({className:"".concat(t.isDraggingOver?" wprm-admin-modal-field-equipment-container-draggingover":""),ref:e.innerRef},e.droppableProps),i.createElement("div",{className:"wprm-admin-modal-field-equipment-header-container"},i.createElement("div",{className:"wprm-admin-modal-field-equipment-header"},(0,u.S)("Amount")),i.createElement("div",{className:"wprm-admin-modal-field-equipment-header"},(0,u.S)("Name")," ",i.createElement("span",{className:"wprm-admin-modal-field-equipment-header-required"},"(",(0,u.S)("required"),")")),i.createElement("div",{className:"wprm-admin-modal-field-equipment-header"},(0,u.S)("Notes"))),this.props.equipment.map(((e,t)=>i.createElement(gs,vs({},e,{recipeType:this.props.type,index:t,key:"equipment-".concat(e.uid),onTab:e=>{t===this.props.equipment.length-1&&(e.preventDefault(),setTimeout((()=>{this.addField()})))},onAdd:()=>{this.addField(t)},onChangeEquipment:e=>{var r=JSON.parse(JSON.stringify(this.props.equipment));r[t]=ys(ys({},r[t]),e),this.props.onRecipeChange({equipment:r})},onDelete:()=>{var e=JSON.parse(JSON.stringify(this.props.equipment));e.splice(t,1),this.props.onRecipeChange({equipment:e})}})))),e.placeholder)))),i.createElement("div",{className:"wprm-admin-modal-field-equipment-actions"},i.createElement("button",{className:"button",onClick:e=>{e.preventDefault(),this.addField()}},(0,u.S)("Add Equipment")),i.createElement("p",null,(0,u.S)("Tip: use the TAB key to move from field to field and easily add equipment."))))}}var{hooks:Ds}=WPRecipeMaker["wp-recipe-maker/dist/shared"];class Cs extends i.Component{constructor(e){super(e),this.state={mode:"edit"}}shouldComponentUpdate(e,t){return this.state.mode!==t.mode||this.props.type!==e.type||JSON.stringify(this.props.equipment)!==JSON.stringify(e.equipment)}render(){var e={edit:{label:(0,u.S)("Edit Equipment"),block:Es},"equipment-affiliate":{label:(0,u.S)("Equipment Affiliate Fields"),block:()=>i.createElement("p",null,(0,u.S)("This feature is only available in")," ",i.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium"),".")}},t=Ds.applyFilters("modalRecipeEquipment",e),r=!!t.hasOwnProperty(this.state.mode)&&t[this.state.mode].block;if(!r)return null;var n=null;return this.state.mode,n=i.createElement(r,{type:this.props.type,equipment:this.props.equipment,instructions:this.props.instructions,onRecipeChange:this.props.onRecipeChange,onModeChange:this.props.onModeChange}),i.createElement("div",{className:"wprm-admin-modal-field-equipment-container"},i.createElement(Qa,{modes:e,mode:this.state.mode,onModeChange:e=>{this.setState({mode:e})}}),n)}}var Ss={getIngredientString(e){var t="",r=[];return e.amount&&r.push(e.amount),e.unit&&r.push(e.unit),e.name&&r.push(e.name),e.notes&&r.push(e.notes),r.length&&(t=r.join(" ").replace(/(<([^>]+)>)/gi,"").trim()),t}};function Is(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}function xs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Is(Object(r),!0).forEach((function(t){Os(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Is(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Os(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var As=e=>{var{video:t}=e,r=e.image>0;return i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-media"},i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-media-icons"},i.createElement(la.Z,{type:"photo",title:r?(0,u.S)("Remove Image"):(0,u.S)("Add Instruction Image"),onClick:()=>{r?e.onChangeImage(0,""):ve.Z.selectImage((t=>{e.onChangeImage(t.id,t.url)}))},hidden:"none"!==t.type&&"part"!==t.type}),i.createElement("div",{className:"wprm-icon-spacer"}),i.createElement(la.Z,{type:"movie",title:"upload"===t.type?(0,u.S)("Remove Video"):(0,u.S)("Upload Instruction Video"),onClick:()=>{"upload"===t.type?e.onChangeVideo(xs(xs({},t),{},{type:"none",id:0,thumb:""})):ve.Z.selectVideo((r=>{e.onChangeVideo(xs(xs({},t),{},{type:"upload",id:r.attributes.id,thumb:r.attributes.thumb.src}))}))},hidden:r||"none"!==t.type&&"upload"!==t.type}),i.createElement(la.Z,{type:"code",title:"embed"===t.type?(0,u.S)("Remove Video"):(0,u.S)("Embed Instruction Video"),onClick:()=>{"embed"===t.type?e.onChangeVideo(xs(xs({},t),{},{type:"none",embed:""})):e.onChangeVideo(xs(xs({},t),{},{type:"embed"}))},hidden:r||"none"!==t.type&&"embed"!==t.type}),i.createElement(la.Z,{type:"videoplayer",title:"part"===t.type?(0,u.S)("Remove Video Part"):(0,u.S)("Instruction is part of the main video"),onClick:()=>{e.onChangeVideo(xs(xs({},t),{},{type:"part"===t.type?"none":"part",start:"",end:"",name:""}))},hidden:!e.allowVideo||"none"!==t.type&&"part"!==t.type})),(r||"upload"===t.type||"embed"===t.type)&&i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-media-preview"},r?i.createElement("div",{className:"wprm-admin-modal-field-image-preview"},i.createElement("img",{src:e.image_url,onClick:()=>{ve.Z.selectImage((t=>{e.onChangeImage(t.id,t.url)}))}})):i.createElement(i.Fragment,null,"upload"===t.type&&i.createElement("div",{className:"wprm-admin-modal-field-video-preview"},i.createElement("img",{src:t.thumb,onClick:()=>{ve.Z.selectVideo((r=>{e.onChangeVideo(xs(xs({},t),{},{id:r.attributes.id,thumb:r.attributes.thumb.src}))}))}})),"embed"===t.type&&i.createElement(ie.Z,{value:t.embed,onChange:r=>{e.onChangeVideo(xs(xs({},t),{},{embed:r}))},placeholder:(0,u.S)("Instruction video URL or embed code")}))))};function Ms(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}function Bs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ms(Object(r),!0).forEach((function(t){Ps(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ms(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ps(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ns=e=>{var t=e.hasOwnProperty("ingredients")?e.ingredients:[],r=[],n=[];for(var o of e.allIngredients)if("ingredient"===o.type){var a=Ss.getIngredientString(o);if(a){var s={value:o.uid,label:P().decode(a)};r.push(s),t.includes(o.uid)&&n.push(s)}}return i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-ingredient"},i.createElement(N.ZP,{isMulti:!0,options:r,value:n,placeholder:(0,u.S)("Select ingredients..."),onChange:t=>{var r=[];if(t)for(var n of t)r.push(n.value);e.onChangeIngredients(r)},styles:{placeholder:e=>Bs(Bs({},e),{},{color:"#444",opacity:"0.333"}),control:e=>Bs(Bs({},e),{},{backgroundColor:"white"}),container:e=>Bs(Bs({},e),{},{width:"100%",maxWidth:"100%"})}}))},ks=(r(31807),r(67838),e=>{var t=!!e.hasOwnProperty("disabled")&&e.disabled;return i.createElement("input",{type:"text",disabled:t,name:e.name,value:e.value,placeholder:"0:00",onChange:t=>{(e=>{var[t,r]=e.split(":");if(!/^\d*:?\d{0,2}$/.test(e))return!1;var n,i=Number(t),o=Number(r);if(n=i,!(Number.isInteger(n)&&n>=0&&(e=>Number.isInteger(e)&&e>=0||Number.isNaN(e))(o)))return!1;if(o<10&&Number(r[0])>5)return!1;var a=-1!==e.indexOf(":")?e.split(":"):[e];return!(a[0]&&a[0].length&&parseInt(a[0],10)<0||a[1]&&a[1].length&&(parseInt(a[1],10)<0||parseInt(a[1],10)>59))})(t.target.value)&&e.onChange(t.target.value)}})});function Fs(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}function Ts(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fs(Object(r),!0).forEach((function(t){js(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function js(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ls(){return(Ls=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}).apply(this,arguments)}var Rs=(0,Cn.TB)("tab"),_s=e=>i.createElement("div",Ls({className:"wprm-admin-modal-field-instruction-handle"},e.dragHandleProps,{tabIndex:"-1"}),i.createElement(la.Z,{type:"drag"}));class Zs extends i.Component{shouldComponentUpdate(e){return JSON.stringify(this.props)!==JSON.stringify(e)}render(){return i.createElement(Xa._l,{draggableId:"instruction-".concat(this.props.uid),index:this.props.index},((e,t)=>"group"===this.props.type?((e,t)=>i.createElement("div",Ls({className:"wprm-admin-modal-field-instruction-group",ref:t.innerRef},t.draggableProps),i.createElement("div",{className:"wprm-admin-modal-field-instruction-main-container"},_s(t),i.createElement("div",{className:"wprm-admin-modal-field-instruction-group-name-container"},i.createElement(_a,{singleLine:!0,toolbar:"no-styling",value:e.name,placeholder:(0,u.S)("Instruction Group Header"),onChange:t=>e.onChangeName(t),onKeyDown:t=>{Rs(t)&&e.onTab(t)}}))),i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container"},i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-icons"},i.createElement(la.Z,{type:"trash",onClick:e.onDelete}),i.createElement(la.Z,{type:"plus",title:(0,u.S)("Insert After"),onClick:e.onAdd})))))(this.props,e):((e,t)=>{var r={type:"none",embed:"",id:"",thumb:"",start:"",end:"",name:""};return e.video&&"none"===(r=Ts(Ts({},r),e.video)).type&&(r.start||r.end)&&(r.type="part"),i.createElement("div",Ls({className:"wprm-admin-modal-field-instruction",ref:t.innerRef},t.draggableProps),i.createElement("div",{className:"wprm-admin-modal-field-instruction-main-container"},_s(t),i.createElement("div",{className:"wprm-admin-modal-field-instruction-text-container"},i.createElement("div",{className:"wprm-admin-modal-field-instruction-text-name-container"},i.createElement(_a,{className:"wprm-admin-modal-field-instruction-text",value:e.text,placeholder:(0,u.S)("This is one step of the instructions."),onChange:t=>e.onChangeText(t),onKeyDown:t=>{Rs(t)&&e.onTab(t)}})),e.allowVideo&&"part"===r.type&&"media"===e.editMode&&i.createElement("div",{className:"wprm-admin-modal-field-instruction-video-container"},i.createElement(ks,{value:r.start,onChange:t=>{e.onChangeVideo(Ts(Ts({},r),{},{start:t}))}}),i.createElement(ks,{value:r.end,onChange:t=>{e.onChangeVideo(Ts(Ts({},r),{},{end:t}))}}),r.start&&r.end?i.createElement(g.Z,{placeholder:(0,u.S)("Name for this video part"),value:r.name,onChange:t=>{e.onChangeVideo(Ts(Ts({},r),{},{name:t}))}}):i.createElement(la.Z,{type:"movie",title:(0,u.S)("Add video start and end time (in seconds or minutes:seconds format) if this instruction step is part of the recipe video.")})))),i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container"},i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-icons"},i.createElement(la.Z,{type:"trash",onClick:e.onDelete}),i.createElement(la.Z,{type:"plus",title:(0,u.S)("Insert After"),onClick:e.onAdd})),"summary"===e.editMode&&i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-summary"},i.createElement(_a,{singleLine:!0,className:"wprm-admin-modal-field-instruction-name",toolbar:"none",value:e.hasOwnProperty("name")?e.name:"",placeholder:(0,u.S)("Step Summary"),onChange:t=>e.onChangeName(t)})),"media"===e.editMode&&i.createElement(As,Ls({},e,{video:r})),"ingredients"===e.editMode&&i.createElement(Ns,e)))})(this.props,e)))}}function Hs(){return(Hs=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}).apply(this,arguments)}class Ws extends i.Component{constructor(e){super(e);var t="media",r=localStorage.getItem("wprm-modal-edit-mode");r&&(t=r),this.state={editMode:t},this.container=i.createRef(),this.lastAddedIndex=0}shouldComponentUpdate(e,t){return this.state.editMode!==t.editMode||this.props.type!==e.type||this.props.allowVideo!==e.allowVideo||JSON.stringify(this.props.instructions)!==JSON.stringify(e.instructions)||JSON.stringify(this.props.ingredients)!==JSON.stringify(e.ingredients)}componentDidUpdate(e){if(this.props.instructions.length>e.instructions.length){var t=this.container.current.querySelectorAll(".wprm-admin-modal-field-richtext:not(.wprm-admin-modal-field-instruction-name)");t.length&&t[this.lastAddedIndex]&&t[this.lastAddedIndex].focus()}}onDragEnd(e){if(e.destination){var t=JSON.parse(JSON.stringify(this.props.instructions)),r=e.source.index,n=e.destination.index,i=t.splice(r,1)[0];t.splice(n,0,i),this.props.onRecipeChange({instructions_flat:t})}}addField(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=JSON.parse(JSON.stringify(this.props.instructions));t="group"===e?{type:"group",name:""}:{type:"instruction",name:"",text:"",image:0,image_url:"",ingredients:[]};var i=Math.max.apply(Math,n.map((function(e){return e.uid})));i=i<0?-1:i,t.uid=i+1,!1===r?(n.push(t),this.lastAddedIndex=n.length-1):(n.splice(r+1,0,t),this.lastAddedIndex=r+1),this.props.onRecipeChange({instructions_flat:n})}render(){var e={media:{label:(0,u.S)("Instruction Media")}};"ignore"!==wprm_admin.settings.metadata_instruction_name&&"other"!==this.props.type&&(e.summary={label:(0,u.S)("Metadata"),help:(0,u.S)('For guided recipes, Google wants a short (usually 1 word) summary for each instruction step. This will be the "name" in the HowToStep metadata. This is not shown in the recipe template.')}),e.ingredients={label:(0,u.S)("Associated Ingredients")};var t=this.props.ingredients.filter((e=>"ingredient"===e.type&&""!==e.name)),r=[];for(var n of this.props.instructions)n.hasOwnProperty("ingredients")&&(r=r.concat(n.ingredients));var o=[];for(var a of this.props.ingredients)if("ingredient"===a.type&&!r.includes(a.uid)){var s=Ss.getIngredientString(a);s&&o.push(s)}return i.createElement(i.Fragment,null,i.createElement(Qa,{modes:e,mode:this.state.editMode,onModeChange:e=>{localStorage.setItem("wprm-modal-edit-mode",e),this.setState({editMode:e})}}),i.createElement("div",{className:"wprm-admin-modal-field-instruction-container",ref:this.container},i.createElement(Xa.Z5,{onDragEnd:this.onDragEnd.bind(this)},i.createElement(Xa.bK,{droppableId:"wprm-instructions"},((e,r)=>i.createElement("div",Hs({className:"".concat(r.isDraggingOver?" wprm-admin-modal-field-instruction-container-draggingover":""),ref:e.innerRef},e.droppableProps),this.props.instructions.map(((e,r)=>i.createElement(Zs,Hs({},e,{index:r,key:"instruction-".concat(e.uid),onTab:e=>{r===this.props.instructions.length-1&&(e.preventDefault(),setTimeout((()=>{this.addField("instruction")})))},editMode:this.state.editMode,onChangeName:e=>{var t=JSON.parse(JSON.stringify(this.props.instructions));t[r].name=e,this.props.onRecipeChange({instructions_flat:t})},onChangeText:e=>{var t=JSON.parse(JSON.stringify(this.props.instructions));t[r].text=e,this.props.onRecipeChange({instructions_flat:t})},onChangeImage:(e,t)=>{var n=JSON.parse(JSON.stringify(this.props.instructions));n[r].image=e,n[r].image_url=t,this.props.onRecipeChange({instructions_flat:n})},onDelete:()=>{var e=JSON.parse(JSON.stringify(this.props.instructions));e.splice(r,1),this.props.onRecipeChange({instructions_flat:e})},onAdd:()=>{this.addField("instruction",r)},allowVideo:this.props.allowVideo,onChangeVideo:e=>{var t=JSON.parse(JSON.stringify(this.props.instructions));t[r].video=e,this.props.onRecipeChange({instructions_flat:t})},allIngredients:t,onChangeIngredients:e=>{var t=JSON.parse(JSON.stringify(this.props.instructions));t[r].ingredients=e,this.props.onRecipeChange({instructions_flat:t})}})))),e.placeholder)))),"ingredients"===this.state.editMode&&i.createElement("div",{className:"wprm-admin-modal-field-instruction-unused-ingredients"},0===t.length?i.createElement("div",{className:"wprm-admin-modal-field-instruction-unused-ingredients-info"},(0,u.S)("This recipe doesn't have any ingredients.")):i.createElement(i.Fragment,null,0===o.length?i.createElement("div",{className:"wprm-admin-modal-field-instruction-unused-ingredients-info"},(0,u.S)("All ingredients are associated with a step!")):i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-field-instruction-unused-ingredients-info"},(0,u.S)("Unused ingredients:")),o.map(((e,t)=>i.createElement("div",{className:"wprm-admin-modal-field-instruction-unused-ingredients-ingredient",key:t},P().decode(e))))))),i.createElement("div",{className:"wprm-admin-modal-field-instruction-actions"},i.createElement("button",{className:"button",onClick:e=>{e.preventDefault(),this.addField("instruction")}},(0,u.S)("Add Instruction")),i.createElement("button",{className:"button",onClick:e=>{e.preventDefault(),this.addField("group")}},(0,u.S)("Add Instruction Group")),i.createElement("p",null,(0,u.S)("Tip: use the TAB key to move from field to field and easily add instructions.")))))}}function Us(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}function Gs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Us(Object(r),!0).forEach((function(t){qs(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Us(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function qs(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var zs=-1!==Object.values(wprm_admin_modal.nutrition).findIndex((e=>"calculated"===e.type));class Vs extends i.Component{constructor(e){super(e),this.state={calculating:!1}}shouldComponentUpdate(e,t){return this.state.calculing!==t.calculating||JSON.stringify(this.props.servings)!==JSON.stringify(e.servings)||JSON.stringify(this.props.nutrition)!==JSON.stringify(e.nutrition)}componentDidMount(){this.calculateNutrients()}componentDidUpdate(e){JSON.stringify(this.props.nutrition)!==JSON.stringify(e.nutrition)&&this.calculateNutrients()}calculateNutrients(){zs&&wprm_admin.addons.pro&&this.setState({calculating:!0},(()=>{l.Z.nutrition.getCalculated(this.props.nutrition).then((e=>{e&&Object.keys(e.calculated).length>0&&this.props.onRecipeChange({nutrition:Gs(Gs({},this.props.nutrition),e.calculated)}),this.setState({calculating:!1})}))}))}render(){var e=this.props,t=e.nutrition.hasOwnProperty("serving_size")&&e.nutrition.serving_size?e.nutrition.serving_size:"",r=e.nutrition.hasOwnProperty("serving_unit")&&e.nutrition.serving_unit?e.nutrition.serving_unit:"";return i.createElement(i.Fragment,null,i.createElement("p",null,(0,u.S)("These should be the nutrition facts for 1 serving of your recipe."),i.createElement("br",null),e.servings.amount?i.createElement(i.Fragment,null,(0,u.S)("Total servings for this recipe:")," ","".concat(e.servings.amount," ").concat(e.servings.unit)):i.createElement(i.Fragment,null,(0,u.S)('You don\'t have the servings field set for your recipe under "General".'))),i.createElement("div",{className:"wprm-admin-modal-field-nutrition-container"},wprm_admin.addons.premium?i.createElement(A.Z,{id:"nutrition_serving_size",label:(0,u.S)("Serving Size"),help:(0,u.S)("The weight of 1 serving. Does not affect the calculation.")},i.createElement(g.Z,{type:"number",value:t,onChange:t=>{var r=Gs(Gs({},e.nutrition),{},{serving_size:t});e.onRecipeChange({nutrition:r})}}),i.createElement(g.Z,{name:"serving-unit",placeholder:wprm_admin.settings.nutrition_default_serving_unit,value:r,onChange:t=>{var r=Gs(Gs({},e.nutrition),{},{serving_unit:t});e.onRecipeChange({nutrition:r})}})):null,Object.keys(wprm_admin_modal.nutrition).map(((t,r)=>{var n=wprm_admin_modal.nutrition[t],o=e.nutrition.hasOwnProperty(t)?e.nutrition[t]:"";return"serving_size"===t?null:"calories"===t||wprm_admin.addons.premium?i.createElement(A.Z,{id:"nutrition_".concat(t),label:n.label,key:r},"calculated"===n.type&&this.state.calculating?i.createElement(me.Z,null):i.createElement(i.Fragment,null,i.createElement(g.Z,{type:"number",value:o,onChange:r=>{var n=Gs(Gs({},e.nutrition),{},{[t]:r});e.onRecipeChange({nutrition:n})},disabled:"calculated"===n.type}),i.createElement("span",{className:"wprm-admin-modal-field-nutrition-unit"},n.unit))):null}))),wprm_admin.addons.premium?null:i.createElement("p",null,(0,u.S)("More nutrients are available in")," ",i.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium"),"."),i.createElement(d,{isPrimary:!0,required:"pro",onClick:()=>{e.onModeChange("nutrition-calculation")}},(0,u.S)("Calculate Nutrition Facts")))}}var Js=wprm_admin_modal.custom_fields&&wprm_admin_modal.custom_fields.fields?Object.values(wprm_admin_modal.custom_fields.fields):[],Ys=e=>i.createElement(i.Fragment,null,Js.map(((t,r)=>{var n=!!e.fields.hasOwnProperty(t.key)&&e.fields[t.key];switch(t.type){case"text":case"link":case"email":var o="link"===t.type?"url":t.type;return i.createElement(A.Z,{label:t.name,key:r},i.createElement(g.Z,{type:o,name:"recipe-custom-".concat(t.key),value:n||"",onChange:r=>{e.onFieldChange(t.key,r)}}));case"textarea":return i.createElement(A.Z,{label:t.name,key:r},i.createElement(_a,{value:n||"",onChange:r=>{e.onFieldChange(t.key,r)}}));case"image":return i.createElement(A.Z,{label:t.name,key:r},i.createElement(be,{id:n?n.id:0,url:n?n.url:"",onChange:(r,n)=>{e.onFieldChange(t.key,{id:r,url:n})}}))}})));class Qs extends i.Component{constructor(e){super(e);var t=parseInt(wprm_admin_modal.editor_uid);wprm_admin_modal.editor_uid=t+1,this.state={editorHtml:!1,addedListeners:!1,editorId:"wprm-admin-modal-notes-editor-".concat(t)},this.initEditor=this.initEditor.bind(this),this.initTinyMCE=this.initTinyMCE.bind(this)}componentDidMount(){var e=document.getElementById("wprm-admin-modal-notes-placeholder").innerHTML;e=e.replace(/wprm-admin-modal-notes-editor/g,this.state.editorId),this.setState({editorHtml:e})}componentDidUpdate(e,t){this.state.editorHtml&&!t.editorHtml&&this.initEditor()}initEditor(){void 0!==window.tinymce?this.initTinyMCE():this.initTextarea()}initTextarea(){var e=document.getElementById(this.state.editorId);if(void 0!==window.quicktags)try{window.quicktags({id:this.state.editorId})}catch(t){}e&&(e.value=this.props.value,["input","blur"].forEach((t=>{e.addEventListener(t,(()=>{this.props.onChange(e.value)}))})))}initTinyMCE(){document.getElementById("wp-".concat(this.state.editorId,"-editor-container")).outerHTML='<textarea id="'.concat(this.state.editorId,'"></textarea>');var e=tinymce.$("#wp-".concat(this.state.editorId,"-wrap"));e.removeClass("tmce-active").addClass("html-active"),this.initTextarea(),e.removeClass("html-active").addClass("tmce-active");var t={};void 0!==window.tinyMCEPreInit&&tinyMCEPreInit.hasOwnProperty("mceInit")&&tinyMCEPreInit.mceInit.hasOwnProperty("wprm-admin-modal-notes-editor")&&(t=tinyMCEPreInit.mceInit["wprm-admin-modal-notes-editor"]),t.hasOwnProperty("body_class")&&(t.body_class=t.body_class.replace(/wprm-admin-modal-notes-editor/g,this.state.editorId)),t.selector="#".concat(this.state.editorId),window.tinymce.init(t);var r=window.tinymce.get(this.state.editorId);r&&r.on("change",(()=>{this.props.onChange(r.getContent())}))}componentWillUnmount(){void 0!==window.tinyMCE&&window.tinyMCE.remove("#".concat(this.state.editorId))}render(){return this.state.editorHtml?i.createElement("div",{id:"wprm-admin-modal-field-tinymce-container",dangerouslySetInnerHTML:{__html:this.state.editorHtml}}):i.createElement(me.Z,null)}}var Xs=e=>i.createElement(A.Z,{label:(0,u.S)("Recipe Notes")},i.createElement(Qs,{id:"recipe-notes",value:e.notes,onChange:t=>{e.onRecipeChange({notes:t})}})),Ks=e=>{var t=e.recipe.video_id>0,r=!t&&(-1==e.recipe.video_id||e.recipe.video_embed),n=t||r,o=[{id:"import",name:(0,u.S)("Import"),elem:i.createElement(ge,{onModeChange:e.onModeChange,onImportJSON:e.onImportJSON})},{id:"media",name:(0,u.S)("Media"),elem:i.createElement(Ee,{image:{id:e.recipe.image_id,url:e.recipe.image_url},pinImage:{id:e.recipe.pin_image_id,url:e.recipe.pin_image_url,repin:e.recipe.pin_image_repin_id},video:{id:e.recipe.video_id,thumb:e.recipe.video_thumb_url,embed:e.recipe.video_embed},onRecipeChange:e.onRecipeChange})}];return"public"!==wprm_admin.settings.post_type_structure&&"manual"!==wprm_admin.settings.recipe_use_author||o.push({id:"postType",name:(0,u.S)("Post Type"),elem:i.createElement(De,{slug:e.recipe.slug,post_status:e.recipe.post_status,post_author:e.recipe.post_author,language:e.recipe.language,onRecipeChange:e.onRecipeChange})}),o.push({id:"general",name:(0,u.S)("General"),elem:i.createElement(Ga,{type:e.recipe.type,name:e.recipe.name,summary:e.recipe.summary,author:{display:e.recipe.author_display,name:e.recipe.author_name,link:e.recipe.author_link},servings:{amount:e.recipe.servings,unit:e.recipe.servings_unit},servings_advanced_enabled:e.recipe.servings_advanced_enabled,servings_advanced:e.recipe.servings_advanced,cost:e.recipe.cost,my_emissions:e.recipe.my_emissions,onRecipeChange:e.onRecipeChange})}),o.push({id:"times",name:(0,u.S)("Times"),elem:i.createElement(za,{type:e.recipe.type,prep:{time:e.recipe.prep_time,zero:e.recipe.prep_time_zero},cook:{time:e.recipe.cook_time,zero:e.recipe.cook_time_zero},custom:{time:e.recipe.custom_time,zero:e.recipe.custom_time_zero},customLabel:e.recipe.custom_time_label,total:{time:e.recipe.total_time,zero:!1},onRecipeChange:e.onRecipeChange})}),o.push({id:"categories",name:(0,u.S)("Categories"),elem:i.createElement(Ya,{tags:e.recipe.tags,onRecipeChange:e.onRecipeChange})}),o.push({id:"equipment",name:(0,u.S)("Equipment"),elem:i.createElement(Cs,{type:e.recipe.type,equipment:e.recipe.equipment,onRecipeChange:e.onRecipeChange,onModeChange:e.onModeChange})}),o.push({id:"ingredients",name:"howto"===e.recipe.type?(0,u.S)("Materials"):(0,u.S)("Ingredients"),elem:i.createElement(fs,{type:e.recipe.type,ingredients:e.recipe.ingredients_flat,instructions:e.recipe.instructions_flat,linkType:e.recipe.ingredient_links_type,system:e.recipe.unit_system,onRecipeChange:e.onRecipeChange,onModeChange:e.onModeChange})}),o.push({id:"instructions",name:(0,u.S)("Instructions"),elem:i.createElement(Ws,{type:e.recipe.type,ingredients:e.recipe.ingredients_flat,instructions:e.recipe.instructions_flat,onRecipeChange:e.onRecipeChange,allowVideo:n&&"other"!==e.recipe.type})}),"howto"!==e.recipe.type&&o.push({id:"nutrition",name:(0,u.S)("Nutrition"),elem:i.createElement(Vs,{nutrition:e.recipe.nutrition,servings:{amount:e.recipe.servings,unit:e.recipe.servings_unit},onRecipeChange:e.onRecipeChange,onModeChange:e.onModeChange})}),wprm_admin_modal.custom_fields&&wprm_admin_modal.custom_fields.fields&&0<Object.keys(wprm_admin_modal.custom_fields.fields).length&&o.push({id:"custom-fields",name:(0,u.S)("Custom Fields"),elem:i.createElement(Ys,{fields:e.recipe.custom_fields,onFieldChange:(t,r)=>{var n=Object.assign({},JSON.parse(JSON.stringify(e.recipe.custom_fields)));n[t]=r,e.onRecipeChange({custom_fields:n})}})}),o.push({id:"notes",name:(0,u.S)("Notes"),elem:i.createElement(Xs,{notes:e.recipe.notes,onRecipeChange:e.onRecipeChange})}),i.createElement(i.Fragment,null,i.createElement(p.Z,{onCloseModal:e.onCloseModal},e.loadingRecipe?(0,u.S)("Loading Recipe..."):i.createElement(i.Fragment,null,e.recipe.id?"".concat((0,u.S)("Editing Recipe")," #").concat(e.recipe.id).concat(e.recipe.name?" - ".concat(e.recipe.name):""):"".concat((0,u.S)("Creating new Recipe")).concat(e.recipe.name?" - ".concat(e.recipe.name):""))),i.createElement("div",{className:"wprm-admin-modal-recipe-quicklinks"},o.map(((e,t)=>i.createElement(de.rU,{to:"wprm-admin-modal-fields-group-".concat(e.id),containerId:"wprm-admin-modal-recipe-content",className:"wprm-admin-modal-recipe-quicklink",activeClass:"active",spy:!0,offset:-10,smooth:!0,duration:400,key:t},e.name)))),i.createElement(de.W_,{className:"wprm-admin-modal-content",id:"wprm-admin-modal-recipe-content"},e.loadingRecipe?i.createElement(me.Z,null):i.createElement("form",{className:"wprm-admin-modal-recipe-fields"},o.map(((t,r)=>i.createElement(he,{header:t.name,id:t.id,key:100*e.forceRerender+r},t.elem))))),i.createElement("div",{id:"wprm-admin-modal-toolbar-container"}),"waiting"===e.saveResult?i.createElement(f.Z,{savingChanges:!1},i.createElement(fe(),{text:JSON.stringify(e.recipe),onCopy:(e,t)=>{t?alert((0,u.S)('The recipe has been copied and can be used in the "Import from JSON" feature.')):alert((0,u.S)("Something went wrong. Please contact support."))}},i.createElement("a",{href:"#",onClick:e=>{e.preventDefault()}},(0,u.S)("This is taking a long time. Maybe something went wrong?")," ",(0,u.S)("Click to copy the recipe to your clipboard.")))," ",i.createElement(me.Z,null)):i.createElement(f.Z,{savingChanges:e.savingChanges},"failed"===e.saveResult&&i.createElement(fe(),{text:JSON.stringify(e.recipe),onCopy:(e,t)=>{t?alert((0,u.S)('The recipe has been copied and can be used in the "Import from JSON" feature.')):alert((0,u.S)("Something went wrong. Please contact support."))}},i.createElement("a",{href:"#",onClick:e=>{e.preventDefault()}},(0,u.S)("Something went wrong during saving.")," ",(0,u.S)("Click to copy the recipe to your clipboard."))),"ok"===e.saveResult?i.createElement("span",null,(0,u.S)("Saved successfully")):null,i.createElement("button",{className:"button button-primary",onClick:()=>{e.saveRecipe(!1)},disabled:!e.changesMade},(0,u.S)("Save")),i.createElement("button",{className:"button button-primary",onClick:()=>{e.changesMade?e.saveRecipe(!0):e.onCloseModal()}},e.changesMade?(0,u.S)("Save & Close"):(0,u.S)("Close"))))},$s=e=>i.createElement("div",{className:"wprm-admin-modal-field-text-import-groups"},i.createElement("p",null,(0,u.S)("All of these will be imported. Use the checkbox to indicate group headers.")," "),e.value.map(((t,r)=>i.createElement("div",{className:"wprm-admin-modal-field-text-import-groups-field",key:r},i.createElement("input",{type:"checkbox",checked:t.group,onChange:t=>{var n=JSON.parse(JSON.stringify(e.value));n[r].group=t.target.checked,e.onChange(n)}}),i.createElement("input",{type:"text",value:t.text,style:t.group?{fontWeight:"bold"}:null,onChange:t=>{var n=JSON.parse(JSON.stringify(e.value));n[r].text=t.target.value,e.onChange(n)}})))));function eu(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}function tu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eu(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ru(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class nu extends i.Component{constructor(e){super(e),this.textInput=i.createRef();var t="";e.text&&(t=this.cleanUpText(e.text)),this.state={text:t,name:!1,summary:!1,equipment:!1,ingredients:!1,instructions:!1,notes:!1,isParsing:!1},this.cleanUpText=this.cleanUpText.bind(this),this.setSelection=this.setSelection.bind(this),this.useValues=this.useValues.bind(this)}componentDidMount(){this.textInput.current.focus()}cleanUpText(e){return e=e.replace(/(<([^>]+)>)/gi,""),e=P().decode(e)}setSelection(e){var t=this.textInput.current,r=t.value.substring(t.selectionStart,t.selectionEnd);if(r=r||!1,"equipment"!==e&&"ingredients"!==e&&"instructions"!==e||(r=this.getSeperateFields(r,e)),r!==this.state[e]){var n={};n[e]=r,this.setState(n)}}getSeperateFields(e,t){if(!1===e)return!1;"instructions"===t&&"punctuation"===wprm_admin_modal.settings.import_instructions_split&&(e=e.replace(/([!\.\?]+)/gm,"$1\n"));var r=[],n=e.split(/[\r\n]+/);for(var i of n)(i=(i=i.trim()).replace(/^(\d+\)\s+|\d+\.\s+|[a-z]+\)\s+|•\s+|[A-Z]+\.\s+|[IVX]+\.\s+)/,""))&&r.push({group:!1,text:i});return!!r.length&&r}useValues(){var e={};if(!1!==this.state.name&&(e.name=this.state.name),!1!==this.state.summary&&(e.summary=this.state.summary),!1!==this.state.notes&&(e.notes=this.state.notes),!1!==this.state.equipment){var t=[];this.state.equipment.map(((e,r)=>{t.push({uid:r,name:e.text})})),e.equipment=t}if(!1!==this.state.instructions){var r=[];this.state.instructions.map(((e,t)=>{e.group?r.push({uid:t,type:"group",name:e.text}):r.push({uid:t,type:"instruction",text:e.text,image:0,image_url:""})})),e.instructions_flat=r}var n=[],i={};!1!==this.state.ingredients&&(this.state.ingredients.map(((e,t)=>{e.group?n.push({uid:t,type:"group",name:e.text}):(n.push({uid:t,type:"ingredient",amount:"",unit:"",name:"",notes:""}),i[t]=e.text)})),e.ingredients_flat=n),0<Object.keys(i).length?this.setState({isParsing:!0},(()=>{l.Z.import.parseIngredients(i).then((t=>{if(t){for(var r in t.parsed){var n=t.parsed[r];e.ingredients_flat[r]=tu(tu({},e.ingredients_flat[r]),n)}this.props.onImportValues(e)}else this.setState({isParsing:!1})}))})):this.props.onImportValues(e)}render(){var e=!1!==this.state.name||!1!==this.state.summary||!1!==this.state.equipment||!1!==this.state.ingredients||!1!==this.state.instructions||!1!==this.state.notes;return i.createElement(i.Fragment,null,i.createElement(p.Z,{onCloseModal:this.props.onCloseModal},this.props.recipe.name?"".concat(this.props.recipe.name," - ").concat((0,u.S)("Import from Text")):"".concat((0,u.S)("Recipe")," - ").concat((0,u.S)("Import from Text"))),i.createElement("div",{className:"wprm-admin-modal-field-text-import-container"},i.createElement("h2",null,(0,u.S)("1. Highlight text and click the corresponding button")),i.createElement("div",{className:"wprm-admin-modal-field-text-import-selection"},i.createElement("div",{className:"wprm-admin-modal-field-text-import-buttons"},i.createElement("button",{className:!1!==this.state.name?"button wprm-selection-made":"button",onClick:()=>this.setSelection("name")},(0,u.S)("Name")),i.createElement("button",{className:!1!==this.state.summary?"button wprm-selection-made":"button",onClick:()=>this.setSelection("summary")},(0,u.S)("Summary")),i.createElement("button",{className:!1!==this.state.equipment?"button wprm-selection-made":"button",onClick:()=>this.setSelection("equipment")},(0,u.S)("Equipment")),i.createElement("button",{className:!1!==this.state.ingredients?"button wprm-selection-made":"button",onClick:()=>this.setSelection("ingredients")},(0,u.S)("Ingredients")),i.createElement("button",{className:!1!==this.state.instructions?"button wprm-selection-made":"button",onClick:()=>this.setSelection("instructions")},(0,u.S)("Instructions")),i.createElement("button",{className:!1!==this.state.notes?"button wprm-selection-made":"button",onClick:()=>this.setSelection("notes")},(0,u.S)("Notes"))),i.createElement("textarea",{ref:this.textInput,value:this.state.text,placeholder:(0,u.S)("Paste or type recipe"),onChange:e=>{this.setState({text:this.cleanUpText(e.target.value)})}})),i.createElement("h2",null,(0,u.S)("2. Fine-tune selections")),i.createElement("div",{className:"wprm-admin-modal-field-text-import-finetune"},e?i.createElement(i.Fragment,null,!1!==this.state.name&&i.createElement(A.Z,{label:(0,u.S)("Name")},i.createElement(g.Z,{name:"recipe-name",value:this.state.name,onChange:e=>{this.setState({name:e})}})),!1!==this.state.summary&&i.createElement(A.Z,{label:(0,u.S)("Summary")},i.createElement(ie.Z,{value:this.state.summary,onChange:e=>{this.setState({summary:e})}})),!1!==this.state.equipment&&i.createElement(A.Z,{label:(0,u.S)("Equipment")},this.state.equipment.map(((e,t)=>i.createElement("div",{className:"wprm-admin-modal-field-text-import-equipment-field",key:t},i.createElement(g.Z,{value:e.text,onChange:e=>{var r=JSON.parse(JSON.stringify(this.state.equipment));r[t].text=e,this.setState({equipment:r})}}))))),!1!==this.state.ingredients&&i.createElement(A.Z,{label:(0,u.S)("Ingredients"),help:(0,u.S)("Use the checkboxes to indicate group headers (like Frosting and Cake)")},i.createElement($s,{value:this.state.ingredients,onChange:e=>{this.setState({ingredients:e})}})),!1!==this.state.instructions&&i.createElement(A.Z,{label:(0,u.S)("Instructions"),help:(0,u.S)("Use the checkboxes to indicate group headers (like Frosting and Cake)")},i.createElement($s,{value:this.state.instructions,onChange:e=>{this.setState({instructions:e})}})),!1!==this.state.notes&&i.createElement(A.Z,{label:(0,u.S)("Notes")},i.createElement(ie.Z,{value:this.state.notes,onChange:e=>{this.setState({notes:e})}}))):i.createElement("p",null,(0,u.S)("Make a selection using the buttons above first.")))),i.createElement(f.Z,{savingChanges:this.state.isParsing},i.createElement("button",{className:"button",onClick:this.props.onCancel},(0,u.S)("Cancel")),i.createElement("button",{className:"button button-primary",onClick:this.useValues,disabled:!e},(0,u.S)("Use these Values"))))}}function iu(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}function ou(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?iu(Object(r),!0).forEach((function(t){au(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function au(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var{hooks:su}=WPRecipeMaker["wp-recipe-maker/dist/shared"],uu={"text-import":nu,recipe:Ks};class lu extends i.Component{constructor(e){super(e);var t=JSON.parse(JSON.stringify(wprm_admin_modal.recipe)),r=!1;e.args.hasOwnProperty("recipe")?t=JSON.parse(JSON.stringify(e.args.recipe)):e.args.hasOwnProperty("recipeId")&&(r=!0,l.Z.recipe.get(e.args.recipeId).then((t=>{if(t){var r=JSON.parse(JSON.stringify(t.recipe));e.args.cloneRecipe&&delete r.id,this.setState({recipe:r,originalRecipe:e.args.cloneRecipe||e.args.restoreRevision?{}:JSON.parse(JSON.stringify(r)),loadingRecipe:!1,mode:"recipe"}),this.scrollToGroup()}else this.setState({loadingRecipe:!1})}))),this.state={recipe:t,originalRecipe:e.args.cloneRecipe||e.args.restoreRevision?{}:JSON.parse(JSON.stringify(t)),savingChanges:!1,saveResult:!1,loadingRecipe:r,forceRerender:0,mode:"recipe"},this.scrollToGroup=this.scrollToGroup.bind(this),this.onModeChange=this.onModeChange.bind(this),this.onRecipeChange=this.onRecipeChange.bind(this),this.onImportJSON=this.onImportJSON.bind(this),this.saveRecipe=this.saveRecipe.bind(this),this.allowCloseModal=this.allowCloseModal.bind(this),this.changesMade=this.changesMade.bind(this)}componentDidMount(){"recipe"!==this.state.mode||this.state.loadingRecipe||this.scrollToGroup()}onModeChange(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={mode:e};"text-import"===e&&(r.textImportText=t),this.setState(r,(()=>{"recipe"===e&&(t=t||"media",this.scrollToGroup(t))}))}scrollToGroup(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"media";de.OK.scrollTo("wprm-admin-modal-fields-group-".concat(e),{containerId:"wprm-admin-modal-recipe-content",offset:-10})}onRecipeChange(e){this.setState((t=>({recipe:ou(ou({},t.recipe),e)})))}onImportJSON(e){delete e.id,this.setState((t=>({recipe:ou(ou({},t.recipe),e),forceRerender:t.forceRerender+1})))}saveRecipe(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.state.savingChanges){var t=setTimeout((()=>{this.setState({saveResult:"waiting"})}),5e3);this.setState({savingChanges:!0,saveResult:!1},(()=>{l.Z.recipe.save(this.state.recipe).then((r=>{if(clearTimeout(t),r&&r.recipe){var n=JSON.parse(JSON.stringify(r.recipe));this.setState((e=>({recipe:n,originalRecipe:JSON.parse(JSON.stringify(n)),savingChanges:!1,saveResult:"ok",forceRerender:e.forceRerender+1})),(()=>{"function"==typeof this.props.args.saveCallback&&this.props.args.saveCallback(n),e&&this.props.maybeCloseModal(),setTimeout((()=>{"ok"===this.state.saveResult&&this.setState({saveResult:!1})}),3e3)}))}else this.setState({savingChanges:!1,saveResult:"failed"})}))}))}}allowCloseModal(){switch(this.state.mode){case"nutrition-calculation":return confirm((0,u.S)("Are you sure you want to stop calculating the nutrition facts?"))&&this.onModeChange("recipe","nutrition"),!1;case"equipment-affiliate":return this.onModeChange("recipe","equipment"),!1;case"ingredient-links":return this.onModeChange("recipe","ingredients"),!1;case"text-import":return this.onModeChange("recipe"),!1}return!this.state.savingChanges&&(!this.changesMade()||confirm((0,u.S)("Are you sure you want to close without saving changes?")))}changesMade(){return void 0!==window.lodash?!window.lodash.isEqual(this.state.recipe,this.state.originalRecipe):JSON.stringify(this.state.recipe)!==JSON.stringify(this.state.originalRecipe)}render(){var e=su.applyFilters("modalRecipe",uu),t=!!e.hasOwnProperty(this.state.mode)&&e[this.state.mode];if(!t)return null;switch(this.state.mode){case"nutrition-calculation":return i.createElement(t,{onCloseModal:this.props.maybeCloseModal,name:this.state.recipe.name,servings:this.state.recipe.servings,ingredients:this.state.recipe.ingredients_flat,onCancel:()=>{this.onModeChange("recipe","nutrition")},onNutritionChange:e=>{var t={};Object.keys(wprm_admin_modal.nutrition).map(((r,n)=>{e.hasOwnProperty(r)?t[r]=e[r]:t[r]=!1})),t.serving_size=!(!this.state.recipe.hasOwnProperty("nutrition")||!this.state.recipe.nutrition.hasOwnProperty("serving_size"))&&this.state.recipe.nutrition.serving_size,t.serving_unit=!(!this.state.recipe.hasOwnProperty("nutrition")||!this.state.recipe.nutrition.hasOwnProperty("serving_unit"))&&this.state.recipe.nutrition.serving_unit,this.onRecipeChange({nutrition:t}),this.onModeChange("recipe","nutrition")}});case"equipment-affiliate":return i.createElement(t,{onCloseModal:this.props.maybeCloseModal,onCancel:()=>{this.onModeChange("recipe","equipment")},equipment:this.state.recipe.equipment,onEquipmentChange:e=>{this.onRecipeChange({equipment:e}),this.onModeChange("recipe","equipment")}});case"ingredient-links":return i.createElement(t,{onCloseModal:this.props.maybeCloseModal,onCancel:()=>{this.onModeChange("recipe","ingredients")},ingredients:this.state.recipe.ingredients_flat,onIngredientsChange:e=>{this.onRecipeChange({ingredients_flat:e}),this.onModeChange("recipe","ingredients")}});case"text-import":return i.createElement(t,{onCloseModal:this.props.maybeCloseModal,onCancel:()=>{this.onModeChange("recipe")},text:this.state.textImportText,recipe:this.state.recipe,onImportValues:e=>{this.onRecipeChange(e),this.onModeChange("recipe")}});default:return i.createElement(t,{onCloseModal:this.props.maybeCloseModal,changesMade:this.changesMade(),savingChanges:this.state.savingChanges,saveResult:this.state.saveResult,loadingRecipe:this.state.loadingRecipe,recipe:this.state.recipe,onRecipeChange:this.onRecipeChange,onImportJSON:this.onImportJSON,saveRecipe:this.saveRecipe,forceRerender:this.state.forceRerender,onModeChange:this.onModeChange})}}}r(86632),r(35054),r(72975);var cu=r(96463);class du extends i.Component{constructor(e){super(e);var t="internal",r=!1,n="",i=!1,o=!0,a="",s="",l="",c={id:0,url:""},d=!1;if(e.args.fields&&e.args.fields.roundup){var p=e.args.fields.roundup;p.id?(t="internal",r={id:p.id,text:"".concat((0,u.S)("Recipe")," #").concat(p.id)},a=p.name,s=p.summary.replaceAll("%0A","\n"),l=p.button):p.link&&(t="external",n=p.link,i=!!p.nofollow,o=!!p.newtab,a=p.name,s=p.summary.replaceAll("%0A","\n"),l=p.button,c.id=p.image,c.url=p.image_url,s&&"<p>"!==s.substr(0,3)&&(d=!0))}this.state={type:t,recipe:r,link:n,nofollow:i,newtab:o,name:a,summary:s,image:c,button:l,loading:!1,saving:!1,fallbackToTextarea:d},this.loadDetailsFromURL=this.loadDetailsFromURL.bind(this),this.saveImage=this.saveImage.bind(this)}selectionsMade(){return"external"===this.state.type?""!==this.state.link:!1!==this.state.recipe}loadDetailsFromURL(){var e=this.state.link;new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)&&this.setState({loading:!0},(()=>{fetch("https://api.microlink.io?url="+encodeURIComponent(e)).then((e=>e.json())).then((e=>{var t={loading:!1};"success"===e.status&&(e.data.title&&(t.name=e.data.title),e.data.description&&(t.summary=e.data.description),e.data.image&&e.data.image.url&&(t.image={id:-1,url:e.data.image.url})),this.setState(t)})).catch((e=>{console.log("Fetch Error",e);this.setState({loading:!1})}))}))}saveImage(){var e=this.state.image.url;e&&this.setState({saving:!0},(()=>{l.Z.utilities.saveImage(e).then((e=>{var t={saving:!1};e&&e.id&&(t.image=e),this.setState(t)}))}))}render(){return i.createElement(i.Fragment,null,i.createElement(p.Z,{onCloseModal:this.props.maybeCloseModal},(0,u.S)("Select Roundup Recipe")),i.createElement("div",{className:"wprm-admin-modal-roundup-container wprm-admin-modal-roundup-container-".concat(this.state.type)},i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Type")),i.createElement(v.Z,{id:"type",options:[{value:"internal",label:(0,u.S)("Use one of your own recipes")},{value:"external",label:(0,u.S)("Use external recipe from a different website")}],value:this.state.type,onChange:e=>{this.setState({type:e})}}),"internal"===this.state.type?i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Recipe")),i.createElement(cu.Z,{options:[],value:this.state.recipe,onValueChange:e=>{this.setState({recipe:e})}})):i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Link")),i.createElement(g.Z,{name:"roundup-link",placeholder:"https://demo.wprecipemaker.com/amazing-vegetable-pizza/",type:"url",value:this.state.link,onChange:e=>{this.setState({link:e})},disabled:this.state.loading}),this.state.loading?i.createElement(me.Z,null):i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-roundup-field-load-details-container",style:this.state.link?{}:{visibility:"hidden"}},i.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),this.loadDetailsFromURL()}},(0,u.S)("Try to load details from URL"))),i.createElement("div",{className:"wprm-admin-modal-roundup-field-nofollow-container"},i.createElement("input",{id:"wprm-admin-modal-roundup-field-nofollow",type:"checkbox",checked:this.state.nofollow,onChange:e=>{this.setState({nofollow:e.target.checked})}})," ",i.createElement("label",{htmlFor:"wprm-admin-modal-roundup-field-nofollow"},(0,u.S)('Add rel="nofollow" to link'))),i.createElement("div",{className:"wprm-admin-modal-roundup-field-new-tab-container"},i.createElement("input",{id:"wprm-admin-modal-roundup-field-new-tab",type:"checkbox",checked:this.state.newtab,onChange:e=>{this.setState({newtab:e.target.checked})}})," ",i.createElement("label",{htmlFor:"wprm-admin-modal-roundup-field-new-tab"},(0,u.S)("Open link in new tab"))),i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Image")),this.state.saving?i.createElement(me.Z,null):i.createElement(i.Fragment,null,-1===this.state.image.id&&""!==this.state.image.url?i.createElement("div",{className:"wprm-admin-modal-field-image"},i.createElement("p",null,(0,u.S)("External image. Recommended:")," ",i.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),this.saveImage()}},(0,u.S)("Save image locally"))),i.createElement("div",{className:"wprm-admin-modal-field-image-preview"},i.createElement("img",{src:this.state.image.url}),i.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),this.setState({image:{id:0,url:""}})}},(0,u.S)("Remove Image")))):i.createElement(be,{id:this.state.image.id,url:this.state.image.url,onChange:(e,t)=>{this.setState({image:{id:e,url:t}})}})))),"internal"===this.state.type&&i.createElement("p",{className:"wprm-admin-modal-roundup-override"},(0,u.S)("Optionally fill in these fields to use instead of the recipe values:")),!this.state.loading&&i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Name")),i.createElement(g.Z,{name:"recipe-name",placeholder:(0,u.S)("Recipe Name"),value:this.state.name,onChange:e=>{this.setState({name:e})}}),i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Summary")),this.state.fallbackToTextarea?i.createElement(ie.Z,{placeholder:(0,u.S)("Short description of this recipe..."),value:this.state.summary,onChange:e=>{this.setState({summary:e})}}):i.createElement(_a,{toolbar:"roundup",placeholder:(0,u.S)("Short description of this recipe..."),value:this.state.summary,onChange:e=>{e=(e=(e=e.replaceAll("<p></p>","")).replaceAll("<p><br></p>","")).replaceAll("<p><br/></p>",""),this.setState({summary:e})}}),i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Custom Button Text")),i.createElement(g.Z,{placeholder:(0,u.S)("Leave blank to use default from template"),value:this.state.button,onChange:e=>{this.setState({button:e})}}))),i.createElement("div",{id:"wprm-admin-modal-toolbar-container"}),i.createElement(f.Z,{savingChanges:this.state.loading||this.state.saving},i.createElement("button",{className:"button button-primary",onClick:()=>{"function"==typeof this.props.args.insertCallback&&this.props.args.insertCallback(this.state),this.props.maybeCloseModal()},disabled:!this.selectionsMade()},(0,u.S)("Use"))))}}var pu={id:0,text:(0,u.S)("First recipe on page")};class fu extends i.Component{constructor(e){super(e);var t=!1;e.args.fields.recipe.showFirst&&(t=pu),this.state={recipe:t}}selectionsMade(){return!1!==this.state.recipe}render(){return i.createElement(i.Fragment,null,i.createElement(p.Z,{onCloseModal:this.props.maybeCloseModal},this.props.args.title?this.props.args.title:"WP Recipe Maker"),i.createElement("div",{className:"wprm-admin-modal-select-container"},this.props.args.fields.recipe?i.createElement(cu.Z,{options:this.props.args.fields.recipe.showFirst?[pu]:[],value:this.state.recipe,onValueChange:e=>{this.setState({recipe:e})}}):null),i.createElement(f.Z,{savingChanges:!1},i.createElement("button",{className:"button button-primary",onClick:()=>{"function"==typeof this.props.args.nextStepCallback?this.props.args.nextStepCallback(this.state):("function"==typeof this.props.args.insertCallback&&this.props.args.insertCallback(this.state),this.props.maybeCloseModal())},disabled:!this.selectionsMade()},this.props.args.button?this.props.args.button:(0,u.S)("Select"))))}}function mu(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}function hu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mu(Object(r),!0).forEach((function(t){gu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function gu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class vu extends i.Component{constructor(e){super(e);var t={key:"",singular_name:"",name:"",slug:"",archive:!1},r=!1;e.args.hasOwnProperty("taxonomy")&&(r=!0,t=JSON.parse(JSON.stringify(e.args.taxonomy))),this.state={editing:r,taxonomy:t,originalTaxonomy:JSON.parse(JSON.stringify(t)),savingChanges:!1},this.changesMade=this.changesMade.bind(this),this.saveChanges=this.saveChanges.bind(this)}sanitizeSlug(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=(e=e.trim()).toLowerCase();var r="àáäâèéëêìíïîòóöôùúüûñçěščřžýúůďťň·/,:;",n="aaaaeeeeiiiioooouuuuncescrzyuudtn_____";t&&(r+="-",n+="_");for(var i=0,o=r.length;i<o;i++)e=e.replace(new RegExp(r.charAt(i),"g"),n.charAt(i));return e=e.replace(".","-").replace(/[^a-z0-9\s_\-]/g,"").replace(/\s+/g,"_").replace(/_+/g,"_")}saveChanges(){this.state.taxonomy.key.trim()&&this.state.taxonomy.singular_name.trim()&&this.state.taxonomy.name.trim()&&this.state.taxonomy.slug.trim()?this.setState({savingChanges:!0},(()=>{l.Z.customTaxonomy.save(this.state.editing,this.state.taxonomy).then((e=>{e?this.setState({originalTaxonomy:JSON.parse(JSON.stringify(this.state.taxonomy)),savingChanges:!1},(()=>{"function"==typeof this.props.args.saveCallback&&this.props.args.saveCallback(this.state.taxonomy),this.props.maybeCloseModal()})):(this.state.editing||!1!==e||alert((0,u.S)("Something went wrong. Make sure this key does not exist yet.")),this.setState({savingChanges:!1}))}))})):alert((0,u.S)("All fields are required."))}allowCloseModal(){return!this.state.savingChanges&&(!this.changesMade()||confirm((0,u.S)("Are you sure you want to close without saving changes?")))}changesMade(){return JSON.stringify(this.state.taxonomy)!==JSON.stringify(this.state.originalTaxonomy)}render(){return i.createElement(i.Fragment,null,i.createElement(p.Z,{onCloseModal:this.props.maybeCloseModal},this.state.editing?"".concat((0,u.S)("Editing Custom Taxonomy")).concat(this.state.taxonomy.key?" - wprm_".concat(this.state.taxonomy.key):""):"".concat((0,u.S)("Creating new Custom Taxonomy")).concat(this.state.taxonomy.key?" - wprm_".concat(this.state.taxonomy.key):"")),i.createElement("div",{className:"wprm-admin-modal-taxonomy-container"},i.createElement(A.Z,{id:"key",label:(0,u.S)("Key")},i.createElement(g.Z,{placeholder:(0,u.S)("course"),value:"wprm_".concat(this.state.taxonomy.key),onChange:e=>{var t=e.substr(5);t=this.sanitizeSlug(t,!0),this.setState({taxonomy:hu(hu({},this.state.taxonomy),{},{key:t})})},disabled:this.state.editing})),i.createElement(A.Z,{id:"singular_name",label:(0,u.S)("Singular Name")},i.createElement(g.Z,{placeholder:(0,u.S)("Course"),value:this.state.taxonomy.singular_name,onChange:e=>{this.setState({taxonomy:hu(hu({},this.state.taxonomy),{},{singular_name:e})})}})),i.createElement(A.Z,{id:"name",label:(0,u.S)("Plural Name")},i.createElement(g.Z,{placeholder:(0,u.S)("Courses"),value:this.state.taxonomy.name,onChange:e=>{this.setState({taxonomy:hu(hu({},this.state.taxonomy),{},{name:e})})}})),i.createElement(A.Z,{id:"archive",label:(0,u.S)("Has Archive Pages")},i.createElement(xe,{value:this.state.taxonomy.archive,onChange:e=>{this.setState({taxonomy:hu(hu({},this.state.taxonomy),{},{archive:e})})}})),i.createElement(A.Z,{id:"slug",label:(0,u.S)("Slug")},i.createElement(g.Z,{placeholder:(0,u.S)("course"),value:this.state.taxonomy.slug,onChange:e=>{var t=this.sanitizeSlug(e);this.setState({taxonomy:hu(hu({},this.state.taxonomy),{},{slug:t})})}}))),i.createElement(f.Z,{savingChanges:this.state.savingChanges},i.createElement("button",{className:"button button-primary",onClick:this.saveChanges,disabled:!this.changesMade()},(0,u.S)("Save"))))}}var bu=r(40481);document.getElementById("wprm-admin-modal")&&a().setAppElement("#wprm-admin-modal");var{hooks:yu}=WPRecipeMaker["wp-recipe-maker/dist/shared"],wu={"bulk-edit":ne,"input-fields":oe,menu:ce,recipe:lu,roundup:du,select:fu,taxonomy:vu};class Eu extends i.Component{constructor(){super(),this.state={modalIsOpen:!1,mode:"",args:{}},this.content=i.createRef(),this.close=this.close.bind(this),this.closeIfAllowed=this.closeIfAllowed.bind(this)}open(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&this.state.modalIsOpen||this.setState({modalIsOpen:!0,mode:e,args:t},(()=>{window.onbeforeunload=()=>(0,u.S)("Are you sure you want to leave this page?")}))}close(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.setState({modalIsOpen:!1},(()=>{window.onbeforeunload=null,"function"==typeof e&&e()}))}closeIfAllowed(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(!this.content.current||!this.content.current.hasOwnProperty("allowCloseModal"))&&this.content.current.allowCloseModal;t&&!t()||this.close(e)}addTextToEditor(e,t){if("undefined"==typeof tinyMCE||!tinyMCE.get(t)||tinyMCE.get(t).isHidden()){var r=bu("textarea#"+t).val();bu("textarea#"+t).val(r+e)}else tinyMCE.get(t).focus(!0),tinyMCE.activeEditor.selection.collapse(!1),tinyMCE.activeEditor.execCommand("mceInsertContent",!1,e)}refreshEditor(e){"undefined"!=typeof tinyMCE&&tinyMCE.get(e)&&!tinyMCE.get(e).isHidden()&&(tinyMCE.get(e).focus(!0),tinyMCE.activeEditor.setContent(tinyMCE.activeEditor.getContent()))}render(){var e=yu.applyFilters("modal",wu),t=!!e.hasOwnProperty(this.state.mode)&&e[this.state.mode];return t?i.createElement(a(),{isOpen:this.state.modalIsOpen,onRequestClose:this.closeIfAllowed,overlayClassName:"wprm-admin-modal-overlay",className:"wprm-admin-modal wprm-admin-modal-".concat(this.state.mode)},i.createElement(s.Z,{module:"Modal"},i.createElement(t,{ref:this.content,mode:this.state.mode,args:this.state.args,maybeCloseModal:this.closeIfAllowed}))):null}}var Du=document.getElementById("wprm-admin-modal");Du&&n.render(i.createElement(Eu,{ref:e=>{window.WPRM_Modal=e}}),Du)},43636:function(e,t,r){"use strict";var n=r(89526),i=r(76044);t.Z=e=>{var t="wprm-admin-modal-field-container";e.id&&(t+=" wprm-admin-modal-field-container-".concat(e.id));var r=null;return e.help&&(r=n.createElement(i.Z,{type:"question",title:e.help,className:"wprm-admin-icon-help"})),n.createElement("div",{className:t},e.label?n.createElement(n.Fragment,null,n.createElement("div",{className:"wprm-admin-modal-field-label"},e.label,r),n.createElement("div",{className:"wprm-admin-modal-field"},e.children)):e.children)}},69347:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});r(33130);var n=r(89526),i=r(844);function o(){return(o=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}).apply(this,arguments)}function a(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}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class l extends n.Component{shouldComponentUpdate(e){return JSON.stringify(this.props.options)!==JSON.stringify(e.options)||this.props.value!==e.value||this.props.isDisabled!==e.isDisabled}render(){var e=!1;this.props.options&&(e=this.props.options.reduce(((e,t)=>(t.hasOwnProperty("options")?e=e.concat(t.options):e.push(t),e)),[]).find((e=>e.value===this.props.value)));var t=this.props.custom?this.props.custom:{};return n.createElement(i.ZP,o({isDisabled:this.props.isDisabled,options:this.props.options,value:e,placeholder:this.props.placeholder,onChange:e=>{this.props.onChange(e.value)},styles:{control:e=>s(s({},e),{},{backgroundColor:"white"}),container:e=>s(s({},e),{},{width:"100%",maxWidth:this.props.width?this.props.width:"100%"})}},t))}}},24207:function(e,t,r){"use strict";var n=r(89526);t.Z=e=>n.createElement(n.Fragment,null,e.options.map((t=>n.createElement("div",{className:"wprm-admin-modal-field-radio-option",key:t.value},n.createElement("input",{type:"radio",value:t.value,name:"wprm-admin-radio-".concat(e.id),id:"wprm-admin-radio-".concat(e.id,"-").concat(t.value),checked:e.value==t.value,onChange:t=>{e.onChange(t.target.value)}}),n.createElement("label",{htmlFor:"wprm-admin-radio-".concat(e.id,"-").concat(t.value)},t.label)))))},59905:function(e,t,r){"use strict";var n=r(89526);t.Z=e=>{var t=!!e.hasOwnProperty("disabled")&&e.disabled,r=e.hasOwnProperty("type")?e.type:"text";return n.createElement("input",{type:r,min:e.hasOwnProperty("min")?e.min:null,max:e.hasOwnProperty("max")?e.max:null,step:e.hasOwnProperty("step")?e.step:null,disabled:t,name:e.name,value:e.value,placeholder:e.placeholder,onChange:t=>{e.onChange(t.target.value)},onKeyDown:t=>{"number"===e.type&&"-"===t.key&&t.preventDefault(),e.onKeyDown&&e.onKeyDown(t)}})}},59612:function(e,t,r){"use strict";var n=r(89526);t.Z=e=>n.createElement("textarea",{value:e.value,placeholder:e.placeholder,onChange:t=>{e.onChange(t.target.value)}})},86605:function(e,t,r){"use strict";var n=r(89526),i=r(34133);t.Z=e=>n.createElement("div",{className:"wprm-admin-modal-footer"},e.savingChanges?n.createElement(i.Z,null):n.createElement(n.Fragment,null,e.children))},96005:function(e,t,r){"use strict";var n=r(89526),i=r(52082),o=r(76044);t.Z=e=>n.createElement("div",{className:"wprm-admin-modal-header"},n.createElement("h2",null,e.children),n.createElement("div",{className:"wprm-admin-modal-close",onClick:e.onCloseModal},n.createElement(o.Z,{type:"close",title:(0,i.S)("Close")})))},5308:function(e,t,r){"use strict";r(87191);var n=r(52082),i={selectImage(e){this.select("image",e)},selectVideo(e){this.select("video",e)},select(e,t){var r={title:(0,n.S)("Select Media"),button:{text:(0,n.S)("Select")},multiple:!1};"video"===e?(r.frame="video",r.state="video-details"):r.library={type:"image"};var i=wp.media(r);i.on("select",(function(){var e=i.state().get("selection").first().toJSON();t(e)})),i.on("update",(function(){var e=i.state().media.attachment;e&&t(e)})),i.open()}};t.Z=i},96463:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});r(35054);var n=r(89526),i=r(45624),o=r(52082);class a extends n.Component{getOptions(e){return e?fetch(wprm_admin.ajax_url,{method:"POST",credentials:"same-origin",body:"action=wprm_search_recipes&security="+wprm_admin.nonce+"&search="+encodeURIComponent(e),headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}}).then((e=>e.json())).then((e=>e.data.recipes_with_id)):Promise.resolve({options:[]})}render(){return n.createElement(i.ZP,{placeholder:(0,o.S)("Select or search a recipe"),value:this.props.value,onChange:this.props.onValueChange,getOptionValue:e=>{var{id:t}=e;return t},getOptionLabel:e=>{var{text:t}=e;return t},defaultOptions:this.props.options.concat(wprm_admin.latest_recipes),loadOptions:this.getOptions.bind(this),noOptionsMessage:()=>(0,o.S)("No recipes found"),clearable:!1})}}},99237:function(e,t,r){"use strict";r.d(t,{Z:function(){return W}});var n=r(46087),i=wprm_admin.endpoints.analytics,o={delete:e=>n.Z.call("".concat(i,"/").concat(e),"DELETE")};function a(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}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=wprm_admin.endpoints.custom_taxonomies,l={save(e,t){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t),i=e?"PUT":"POST";return n.Z.call(u,i,r)}},c=wprm_admin.endpoints.dashboard,d={getAnalytics:()=>n.Z.call("".concat(c,"/analytics"))},p=wprm_admin.endpoints.notices,f={dismissNotice(e){var t={id:e};return n.Z.call(p,"DELETE",t)}},m=wprm_admin.endpoints.modal,h={parseIngredients(e){var t={ingredients:e};return n.Z.call("".concat(m,"/ingredient/parse"),"POST",t)}},g=(r(35054),wprm_admin.endpoints.manage),v=wprm_admin.endpoints.rating,b=wprm_admin.endpoints.taxonomy,y=!1,w=!1,E={getData(e){return y?(w=e,new Promise((e=>e(!1)))):this.getDataDebounced(e)},getDataDebounced(e){return y=!0,n.Z.call("".concat(g,"/").concat(e.route),"POST",e).then((e=>{if(w){var t=w;return w=!1,this.getDataDebounced(t)}return y=!1,e}))},deleteUserRatings:e=>n.Z.call("".concat(v,"/recipe/").concat(e),"DELETE"),getTerm:(e,t)=>n.Z.call("".concat(b).concat(e,"/").concat(t)),createTerm(e,t){var r={name:t};return n.Z.call("".concat(b).concat(e),"POST",r)},deleteTerm:(e,t)=>n.Z.call("".concat(b).concat(e,"/").concat(t,"?force=true"),"DELETE"),renameTerm(e,t,r){var i={name:r};return n.Z.call("".concat(b).concat(e,"/").concat(t),"POST",i)},changeTermSlug(e,t,r){var i={slug:r};return n.Z.call("".concat(b).concat(e,"/").concat(t),"POST",i)},renameTermLabel(e,t,r){var i={type:e,id:t,label:r};return n.Z.call("".concat(g,"/taxonomy/label"),"POST",i)},mergeTerm(e,t,r){var i={type:e,oldId:t,newId:r};return n.Z.call("".concat(g,"/taxonomy/merge"),"POST",i)},updateTaxonomyMeta(e,t,r){var i={};return i[e]=r,n.Z.call("".concat(b).concat(e,"/").concat(t),"POST",i)},bulkEdit(e,t,r,i){var o={type:t,ids:r,action:i};return n.Z.call("".concat(g,"/").concat(e,"/bulk"),"POST",o)}},D=wprm_admin.endpoints.modal,C=!1,S=!1,I=!1,x={getSuggestions(e){return C?(I=e,new Promise((e=>e(!1)))):this.getSuggestionsDebounced(e)},getSuggestionsDebounced(e){C=!0;var t=Date.now();return!1!==S&&500>t-S?new Promise((r=>{setTimeout((()=>{r(this.getSuggestionsDebounced(e))}),t-S)})):(S=t,n.Z.call("".concat(D,"/suggest"),"POST",e).then((e=>{if(I){var t=I;return I=!1,this.getSuggestionsDebounced(t)}return C=!1,e})))}},O=wprm_admin.endpoints.rating,A={update(e){var t={rating:e};return n.Z.call("".concat(O),"POST",t)},updateComment(e,t){var r={rating:t};return n.Z.call("".concat(O,"/comment/").concat(e),"POST",r)},delete:e=>n.Z.call("".concat(O,"/").concat(e),"DELETE")},M=wprm_admin.endpoints.recipe,B=wprm_admin.endpoints.manage,P={get:e=>n.Z.call("".concat(M,"/").concat(e,"?t=").concat(Date.now())),save(e){var t={recipe:e},r=M,i="POST",o=!!e.id&&parseInt(e.id);return o&&(r+="/".concat(o),i="PUT"),n.Z.call(r,i,t)},updateStatus(e,t){var r={status:t};return n.Z.call("".concat(M,"/").concat(e),"PUT",r)},delete(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r="".concat(M,"/").concat(e);return t&&(r+="?force=true"),n.Z.call(r,"DELETE")},deleteRevision:e=>n.Z.call("".concat(B,"/revision/").concat(e),"DELETE")},N=wprm_admin.endpoints.setting,k={save(e){var t={settings:e};return n.Z.call(N,"POST",t)}},F=wprm_admin.endpoints.template,T=[],j={},L=null,R={previewShortcode(e,t,r){return j[e]=t,clearTimeout(L),L=setTimeout((()=>{this.previewShortcodes(r)}),500),new Promise((e=>T.push(e)))},previewShortcodes(e){var t=T,r=j;T=[],j={};var n={recipeId:e,shortcodes:r};fetch("".concat(F,"/preview"),{method:"POST",headers:{"X-WP-Nonce":wprm_admin.api_nonce,Accept:"application/json","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(n)}).then((e=>e.json().then((r=>{var n=e.ok?r.preview:{};t.forEach((e=>e(n)))}))))},searchRecipes:e=>fetch(wprm_admin.ajax_url,{method:"POST",credentials:"same-origin",body:"action=wprm_search_recipes&security="+wprm_admin.nonce+"&search="+encodeURIComponent(e),headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}}).then((e=>e.json())),save(e){var t={template:e};return n.Z.call(F,"POST",t)},delete(e){var t={slug:e};return n.Z.call(F,"DELETE",t)}},_=wprm_admin.endpoints.utilities,Z={saveImage(e){var t={url:e};return n.Z.call("".concat(_,"/save_image"),"POST",t)},giveFeedback(e){var t={feedback:e};return n.Z.call("".concat(_,"/feedback"),"POST",t)}},{hooks:H}=WPRecipeMaker["wp-recipe-maker/dist/shared"],W=H.applyFilters("api",{analytics:o,customTaxonomy:l,dashboard:d,general:f,import:h,manage:E,modal:x,rating:A,recipe:P,settings:k,template:R,utilities:Z})},46087:function(e,t,r){"use strict";r(31807),r(35054),r(22321);function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(l){return void r(l)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}function o(){return(o=i((function*(e,t,r){console.log(e,t),console.log(r);var n="",i=parseInt(r.status),o=!1;300<=i&&i<=399?o="A redirection is breaking the API endpoint. Are any redirections set up in the .htaccess file or using a plugin?":401===i||403===i?o="Something is blocking access. Are you or your webhost using a firewall like Cloudflare WAF or Sucuri? Try whitelisting your own IP address or this specific action.":404===i?o="The rest API endpoint could not be found. Are your permalinks set up correctly?":500<=i&&i<=599&&(o="The server is throwing an error. It could be hitting a memory or execution limit. Check with your webhost what the exact error is in the logs."),o&&(n+="".concat(o,"\r\n\r\n")),n+="Press OK to contact support@bootstrapped.ventures for support (opens an email popup).";var a="".concat(r.url," ").concat(r.redirected?"(redirected)":"","- ").concat(r.status," - ").concat(r.statusText);n+="\r\n\r\n".concat(a);var s=!0;try{yield r.text().then((e=>{console.log(e),-1!==e.indexOf("rest_cookie_invalid_nonce")?(alert("You got logged out or your session expired. Please try logging out of WordPress and back in again."),s=!1):n+="\r\n\r\n".concat(e)}))}catch(l){console.log(l),n+="\r\n\r\n".concat(l)}if(s&&confirm(n)){var u="I received the error message below at ".concat(window.location.href,"\r\n\r\n").concat(n);window.open("mailto:".concat(encodeURIComponent("support@bootstrapped.ventures"),"?subject=").concat(encodeURIComponent("WP Recipe Maker Error Message"),"&body=").concat(encodeURIComponent(u)))}}))).apply(this,arguments)}t.Z={call(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=wprm_admin.api_nonce;"object"==typeof window.wpApiSettings&&window.wpApiSettings.nonce&&(n=window.wpApiSettings.nonce);var i={method:t,headers:{"X-WP-Nonce":n,Accept:"application/json","Content-Type":"application/json","Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:0},credentials:"same-origin"};"PUT"!==t&&"DELETE"!==t||(i.method="POST",i.headers["X-HTTP-Method-Override"]=t),r&&(i.body=JSON.stringify(r));var a=0;return e=e.replace(/\?/g,(function(e){return 2<=++a?"&":e})),fetch(e,i).then((function(t){return t.ok?t.json():(function(e,t,r){o.apply(this,arguments)}(e,i,t),!1)}))}}},48618:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});r(33290);var n=r(89526);class i extends n.Component{constructor(e){super(e),this.state={hasError:!1,error:!1,info:!1}}componentDidCatch(e,t){this.setState({hasError:!0,error:e,info:t})}render(){return n.createElement(n.Fragment,null,this.state.hasError?n.createElement("div",{className:"wprm-error-boundary"},n.createElement("p",null,n.createElement("strong",null,"Something went wrong"),n.createElement("br",null),"Please contact ",n.createElement("a",{href:"mailto:support@bootstrapped.ventures"},"support@bootstrapped.ventures")," and send along the following information:"),n.createElement("pre",null,this.props.module?"Module: ".concat(this.props.module,"\n"):null,this.state.error?"Error: ".concat(this.state.error.toString(),"\n"):null,this.state.info?"Stack: ".concat(this.state.info.componentStack):null)):this.props.children)}}},76044:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(89526),i=r(49092),o=r(95075),a={adjustable:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PGxpbmUgZmlsbD0ibm9uZSIgc3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ub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjEyLjUiIHkxPSIxMS41IiB4Mj0iMTMuNSIgeTI9IjExLjUiIGRhdGEtY29sb3I9ImNvbG9yLTIiLz4gPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTE0LjUsMTUuNWgtMTMgYy0wLjU1MiwwLTEtMC40NDgtMS0xdi0xM2MwLTAuNTUyLDAuNDQ4LTEsMS0xaDEzYzAuNTUyLDAsMSwwLjQ0OCwxLDF2MTNDMTUuNSwxNS4wNTIsMTUuMDUyLDE1LjUsMTQuNSwxNS41eiIvPjwvZz48L3N2Zz4="},s=e=>{var t=!!a.hasOwnProperty(e.type)&&a[e.type];if(!t)return null;var r=e.title,s=e.className?"wprm-admin-icon ".concat(e.className):"wprm-admin-icon",u=!!e.hasOwnProperty("hidden")&&e.hidden;return u&&(r="",s+=" wprm-admin-icon-hidden"),n.createElement(o.Z,{content:r},n.createElement("span",{className:s,onClick:u?()=>{}:e.onClick},n.createElement(i.Z,{src:t})))}},34133:function(e,t,r){"use strict";var n=r(89526);t.Z=e=>n.createElement("div",{className:"wprm-admin-loader"})},95075:function(e,t,r){"use strict";var n=r(89526),i=r(20877);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}function a(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){s(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}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.Z=e=>{if(!e.content)return e.children;var t=e.hasOwnProperty("style")?e.style:{};return n.createElement(i.Tooltip,{html:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.content}}),popperOptions:{modifiers:{addZIndex:{enabled:!0,order:810,fn:e=>a(a({},e),{},{styles:a(a({},e.styles),{},{zIndex:1e5})})},preventOverflow:{boundariesElement:"window"}}},style:t},e.children)}},52082:function(e,t,r){"use strict";function n(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}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{S:function(){return s}});var a={};function s(e){return a.hasOwnProperty(e)?a[e]:e}window.hasOwnProperty("wprm_public")&&wprm_public.hasOwnProperty("translations")&&(a=i(i({},a),wprm_public.translations)),window.hasOwnProperty("wprm_admin")&&wprm_admin.hasOwnProperty("translations")&&(a=i(i({},a),wprm_admin.translations))},61416:function(e,t,r){"use strict";function n(){return(n=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}).apply(this,arguments)}r.d(t,{Z:function(){return n}})},93661:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}r.d(t,{Z:function(){return n}})},71236:function(e,t,r){"use strict";var n=r(59833),i=r(24697),o="/*|*/";function a(e){e&&s.current.insert(e+"}")}var s={current:null},u=function(e,t,r,n,i,u,l,c,d,p){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return s.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===c)return t+o;break;case 3:switch(c){case 102:case 112:return s.current.insert(r[0]+t),"";default:return t+(0===p?o:"")}case-2:t.split("/*|*/}").forEach(a)}};t.Z=function(e){void 0===e&&(e={});var t,r=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var o=new i.Z(t);var a,l={};a=e.container||document.head;var c,d=document.querySelectorAll("style[data-emotion-"+r+"]");Array.prototype.forEach.call(d,(function(e){e.getAttribute("data-emotion-"+r).split(" ").forEach((function(e){l[e]=!0})),e.parentNode!==a&&a.appendChild(e)})),o.use(e.stylisPlugins)(u),c=function(e,t,r,n){var i=t.name;s.current=r,o(e,t.styles),n&&(p.inserted[i]=!0)};var p={key:r,sheet:new n.m({key:r,container:a,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:l,registered:{},insert:c};return p}},12821:function(e,t,r){"use strict";r.d(t,{nq:function(){return d},tZ:function(){return v},F4:function(){return b},ms:function(){return E}});var n=r(89526),i=r(71236),o=r(56002),a=r(26794),s=r(59833),u=r(72144);var l=(0,n.createContext)((0,i.Z)()),c=(0,n.createContext)({}),d=l.Provider,p=function(e){return(0,n.forwardRef)((function(t,r){return(0,n.createElement)(l.Consumer,null,(function(n){return e(t,n,r)}))}))},f="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",m=Object.prototype.hasOwnProperty,h=function(e,t,r,i){var s=t[f],u=[],l="",c=null===r?t.css:t.css(r);"string"==typeof c&&void 0!==e.registered[c]&&(c=e.registered[c]),u.push(c),void 0!==t.className&&(l=(0,o.f)(e.registered,u,t.className));var d=(0,a.O)(u);(0,o.M)(e,d,"string"==typeof s);l+=e.key+"-"+d.name;var p={};for(var h in t)m.call(t,h)&&"css"!==h&&h!==f&&(p[h]=t[h]);return p.ref=i,p.className=l,(0,n.createElement)(s,p)},g=p((function(e,t,r){return"function"==typeof e.css?(0,n.createElement)(c.Consumer,null,(function(n){return h(t,e,n,r)})):h(t,e,null,r)}));var v=function(e,t){var r=arguments;if(null==t||null==t.css)return n.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=g;var a={};for(var s in t)m.call(t,s)&&(a[s]=t[s]);a[f]=e,o[1]=a;for(var u=2;u<i;u++)o[u]=r[u];return n.createElement.apply(null,o)},b=(n.Component,function(){var e=u.Z.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}),y=function e(t){for(var r=t.length,n=0,i="";n<r;n++){var o=t[n];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};function w(e,t,r){var n=[],i=(0,o.f)(e,n,r);return n.length<2?r:i+t(n)}var E=p((function(e,t){return(0,n.createElement)(c.Consumer,null,(function(r){var n=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=(0,a.O)(r,t.registered);return(0,o.M)(t,i,!1),t.key+"-"+i.name},i={css:n,cx:function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return w(t.registered,n,y(r))},theme:r},s=e.children(i);return!0,s}))}))},72144:function(e,t,r){"use strict";var n=r(26794);t.Z=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.O)(t)}},95862:function(e,t){"use strict";t.Z=function(e){for(var t,r=e.length,n=r^r,i=0;r>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),r-=4,++i;switch(r){case 3:n^=(255&e.charCodeAt(i+2))<<16;case 2:n^=(255&e.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(i)))+((1540483477*(n>>>16)&65535)<<16)}return n=1540483477*(65535&(n^=n>>>13))+((1540483477*(n>>>16)&65535)<<16),((n^=n>>>15)>>>0).toString(36)}},93059:function(e,t){"use strict";t.Z=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}},26794:function(e,t,r){"use strict";r.d(t,{O:function(){return f}});var n=r(95862),i=r(8560),o=r(93059),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=(0,o.Z)((function(e){return e.replace(a,"-$&").toLowerCase()})),l=function(e,t){if(null==t||"boolean"==typeof t)return"";switch(e){case"animation":case"animationName":"string"==typeof t&&(t=t.replace(s,(function(e,t,r){return d={name:t,styles:r,next:d},t})))}return 1!==i.Z[e]&&45!==e.charCodeAt(1)&&"number"==typeof t&&0!==t?t+"px":t};function c(e,t,r,n){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return d={name:r.name,styles:r.styles,next:d},r.name;if(void 0!==r.styles){var i=r.next;if(void 0!==i)for(;void 0!==i;)d={name:i.name,styles:i.styles,next:d},i=i.next;return r.styles}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=c(e,t,r[i],!1);else for(var o in r){var a=r[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?n+=o+"{"+t[a]+"}":n+=u(o)+":"+l(o,a)+";";else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]])n+=o+"{"+c(e,t,a,!1)+"}";else for(var s=0;s<a.length;s++)n+=u(o)+":"+l(o,a[s])+";"}return n}(e,t,r);case"function":if(void 0!==e){var o=d,a=r(e);return d=o,c(e,t,a,n)}default:if(null==t)return r;var s=t[r];return void 0===s||n?r:s}}var d,p=/label:\s*([^\s;\n{]+)\s*;/g;var f=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i=!0,o="";d=void 0;var a=e[0];null==a||void 0===a.raw?(i=!1,o+=c(r,t,a,!1)):o+=a[0];for(var s=1;s<e.length;s++)o+=c(r,t,e[s],46===o.charCodeAt(o.length-1)),i&&(o+=a[s]);p.lastIndex=0;for(var u,l="";null!==(u=p.exec(o));)l+="-"+u[1];return{name:(0,n.Z)(o)+l,styles:o,next:d}}},59833:function(e,t,r){"use strict";r.d(t,{m:function(){return n}});var n=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,r=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(r,t),this.tags.push(r)}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{var o=105===e.charCodeAt(1)&&64===e.charCodeAt(0);i.insertRule(e,o?0:i.cssRules.length)}catch(a){0}}else n.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}()},24697:function(e,t){"use strict";t.Z=function(e){function t(e,n,u,l,p){for(var f,m,h,g,w,D=0,C=0,S=0,I=0,x=0,N=0,F=h=f=0,j=0,L=0,R=0,_=0,Z=u.length,H=Z-1,W="",U="",G="",q="";j<Z;){if(m=u.charCodeAt(j),j===H&&0!==C+I+S+D&&(0!==C&&(m=47===C?10:47),I=S=D=0,Z++,H++),0===C+I+S+D){if(j===H&&(0<L&&(W=W.replace(d,"")),0<W.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:W+=u.charAt(j)}m=59}switch(m){case 123:for(f=(W=W.trim()).charCodeAt(0),h=1,_=++j;j<Z;){switch(m=u.charCodeAt(j)){case 123:h++;break;case 125:h--;break;case 47:switch(m=u.charCodeAt(j+1)){case 42:case 47:e:{for(F=j+1;F<H;++F)switch(u.charCodeAt(F)){case 47:if(42===m&&42===u.charCodeAt(F-1)&&j+2!==F){j=F+1;break e}break;case 10:if(47===m){j=F+1;break e}}j=F}}break;case 91:m++;case 40:m++;case 34:case 39:for(;j++<H&&u.charCodeAt(j)!==m;);}if(0===h)break;j++}switch(h=u.substring(_,j),0===f&&(f=(W=W.replace(c,"").trim()).charCodeAt(0)),f){case 64:switch(0<L&&(W=W.replace(d,"")),m=W.charCodeAt(1)){case 100:case 109:case 115:case 45:L=n;break;default:L=P}if(_=(h=t(n,L,h,m,p+1)).length,0<k&&(w=s(3,h,L=r(P,W,R),n,A,O,_,m,p,l),W=L.join(""),void 0!==w&&0===(_=(h=w.trim()).length)&&(m=0,h="")),0<_)switch(m){case 115:W=W.replace(E,a);case 100:case 109:case 45:h=W+"{"+h+"}";break;case 107:h=(W=W.replace(v,"$1 $2"))+"{"+h+"}",h=1===B||2===B&&o("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=W+h,112===l&&(U+=h,h="")}else h="";break;default:h=t(n,r(n,W,R),h,l,p+1)}G+=h,h=R=L=F=f=0,W="",m=u.charCodeAt(++j);break;case 125:case 59:if(1<(_=(W=(0<L?W.replace(d,""):W).trim()).length))switch(0===F&&(f=W.charCodeAt(0),45===f||96<f&&123>f)&&(_=(W=W.replace(" ",":")).length),0<k&&void 0!==(w=s(1,W,n,e,A,O,U.length,l,p,l))&&0===(_=(W=w.trim()).length)&&(W="\0\0"),f=W.charCodeAt(0),m=W.charCodeAt(1),f){case 0:break;case 64:if(105===m||99===m){q+=W+u.charAt(j);break}default:58!==W.charCodeAt(_-1)&&(U+=i(W,f,m,W.charCodeAt(2)))}R=L=F=f=0,W="",m=u.charCodeAt(++j)}}switch(m){case 13:case 10:47===C?C=0:0===1+f&&107!==l&&0<W.length&&(L=1,W+="\0"),0<k*T&&s(0,W,n,e,A,O,U.length,l,p,l),O=1,A++;break;case 59:case 125:if(0===C+I+S+D){O++;break}default:switch(O++,g=u.charAt(j),m){case 9:case 32:if(0===I+D+C)switch(x){case 44:case 58:case 9:case 32:g="";break;default:32!==m&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===I+C+D&&(L=R=1,g="\f"+g);break;case 108:if(0===I+C+D+M&&0<F)switch(j-F){case 2:112===x&&58===u.charCodeAt(j-3)&&(M=x);case 8:111===N&&(M=N)}break;case 58:0===I+C+D&&(F=j);break;case 44:0===C+S+I+D&&(L=1,g+="\r");break;case 34:case 39:0===C&&(I=I===m?0:0===I?m:I);break;case 91:0===I+C+S&&D++;break;case 93:0===I+C+S&&D--;break;case 41:0===I+C+D&&S--;break;case 40:if(0===I+C+D){if(0===f)switch(2*x+3*N){case 533:break;default:f=1}S++}break;case 64:0===C+S+I+D+F+h&&(h=1);break;case 42:case 47:if(!(0<I+D+S))switch(C){case 0:switch(2*m+3*u.charCodeAt(j+1)){case 235:C=47;break;case 220:_=j,C=42}break;case 42:47===m&&42===x&&_+2!==j&&(33===u.charCodeAt(_+2)&&(U+=u.substring(_,j+1)),g="",C=0)}}0===C&&(W+=g)}N=x,x=m,j++}if(0<(_=U.length)){if(L=n,0<k&&(void 0!==(w=s(2,U,L,e,A,O,_,l,p,l))&&0===(U=w).length))return q+U+G;if(U=L.join(",")+"{"+U+"}",0!=B*M){switch(2!==B||o(U,2)||(M=0),M){case 111:U=U.replace(y,":-moz-$1")+U;break;case 112:U=U.replace(b,"::-webkit-input-$1")+U.replace(b,"::-moz-$1")+U.replace(b,":-ms-input-$1")+U}M=0}}return q+U+G}function r(e,t,r){var i=t.trim().split(h);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=n(e,t[s],r).trim();break;default:var u=s=0;for(t=[];s<o;++s)for(var l=0;l<a;++l)t[u++]=n(e[l]+" ",i[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===B||2===B&&o(u,1)?"-webkit-"+u+u:u}if(0===B||2===B&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(x,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(w,"tb");break;case 232:u=a.replace(w,"tb-rl");break;case 220:u=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(C,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(C,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===I.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+a}return a}function o(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),F(2!==t?n:n.replace(S,"$1"),r,t)}function a(e,t){var r=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(D," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,i,o,a,s,u,c){for(var d,p=0,f=t;p<k;++p)switch(d=N[p].call(l,e,f,r,n,i,o,a,s,u,c)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function u(e){return void 0!==(e=e.prefix)&&(F=null,e?"function"!=typeof e?B=1:(B=2,F=e):B=0),u}function l(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<k){var i=s(-1,r,n,n,A,O,0,0,0,0);void 0!==i&&"string"==typeof i&&(r=i)}var o=t(P,n,r,0,0);return 0<k&&(void 0!==(i=s(-2,o,n,n,A,O,o.length,0,0,0))&&(o=i)),"",M=0,O=A=1,o}var c=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,m=/([,: ])(transform)/g,h=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,E=/\(\s*(.*)\s*\)/g,D=/([\s\S]*?);/g,C=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,I=/stretch|:\s*\w+\-(?:conte|avail)/,x=/([^-])(image-set\()/,O=1,A=1,M=0,B=1,P=[],N=[],k=0,F=null,T=0;return l.use=function e(t){switch(t){case void 0:case null:k=N.length=0;break;default:if("function"==typeof t)N[k++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else T=0|!!t}return e},l.set=u,void 0!==e&&u(e),l}},8560:function(e,t){"use strict";t.Z={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},56002:function(e,t,r){"use strict";r.d(t,{f:function(){return n},M:function(){return i}});function n(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]):n+=r+" "})),n}var i=function(e,t,r){var n=e.key+"-"+t.name;if(!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles),void 0===e.inserted[t.name]){var i=t;do{e.insert("."+n,i,e.sheet,!0);i=i.next}while(void 0!==i)}}},38974:function(e){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=r(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(r),a=Math.max(i,o),s=0,u=e.map([t,r],(function(t){var r=a-e.getVersionPrecision(t),n=t+new Array(r+1).join(".0");return e.map(n.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(n&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(u[0][a]>u[1][a])return 1;if(u[0][a]===u[1][a]){if(a===s)return 0;a-=1}else if(u[0][a]<u[1][a])return-1}},e.map=function(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)n.push(t(e[r]));return n},e.find=function(e,t){var r,n;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,n=e.length;r<n;r+=1){var i=e[r];if(t(i,r))return i}},e.assign=function(e){for(var t,r,n=e,i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(Object.assign)return Object.assign.apply(Object,[e].concat(o));var s=function(){var e=o[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){n[t]=e[t]}))};for(t=0,r=o.length;t<r;t+=1)s();return e},e.getBrowserAlias=function(e){return n.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return n.BROWSER_MAP[e]||""},e}();t.default=i,e.exports=t.default},18:function(e,t,r){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(91))&&n.__esModule?n:{default:n},o=r(18);function a(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)}}var s=function(){function e(){}var t,r,n;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new i.default(e,t)},e.parse=function(e){return new i.default(e).getResult()},t=e,n=[{key:"BROWSER_MAP",get:function(){return o.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return o.ENGINE_MAP}},{key:"OS_MAP",get:function(){return o.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return o.PLATFORMS_MAP}}],(r=null)&&a(t.prototype,r),n&&a(t,n),e}();t.default=s,e.exports=t.default},91:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=u(r(92)),i=u(r(93)),o=u(r(94)),a=u(r(95)),s=u(r(17));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=s.default.find(n.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=s.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=s.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=s.default.find(a.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return s.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,r={},n=0,i={},o=0;if(Object.keys(e).forEach((function(t){var a=e[t];"string"==typeof a?(i[t]=a,o+=1):"object"==typeof a&&(r[t]=a,n+=1)})),n>0){var a=Object.keys(r),u=s.default.find(a,(function(e){return t.isOS(e)}));if(u){var l=this.satisfies(r[u]);if(void 0!==l)return l}var c=s.default.find(a,(function(e){return t.isPlatform(e)}));if(c){var d=this.satisfies(r[c]);if(void 0!==d)return d}}if(o>0){var p=Object.keys(i),f=s.default.find(p,(function(e){return t.isBrowser(e,!0)}));if(void 0!==f)return this.compareVersion(i[f])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(n);return t&&i&&(n=i.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(s.default.compareVersions(i,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=l,e.exports=t.default},92:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},r=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=i.default.getMacOSVersionName(t),n={name:o.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=i.default.getAndroidVersionName(t),n={name:o.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:o.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},r=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},r=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},r=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},r=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=a,e.exports=t.default}})},77447:function(e,t,r){"use strict";var n=r(12817);e.exports=function(e,t){var r,i,o,a,s,u,l=!1;t||(t={}),r=t.debug||!1;try{if(o=n(),a=document.createRange(),s=document.getSelection(),(u=document.createElement("span")).textContent=e,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){r.stopPropagation(),t.format&&(r.preventDefault(),r.clipboardData.clearData(),r.clipboardData.setData(t.format,e))})),document.body.appendChild(u),a.selectNodeContents(u),s.addRange(a),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(c){r&&console.error("unable to copy using execCommand: ",c),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),l=!0}catch(c){r&&console.error("unable to copy using clipboardData: ",c),r&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(a):s.removeAllRanges()),u&&document.body.removeChild(u),o()}return l}},22020:function(e,t,r){r(59789),r(68502);var n=r(13145);e.exports=n("Array","flat")},9968:function(e,t,r){var n=r(22020);e.exports=n},28641:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},75017:function(e,t,r){var n=r(52786);e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},6677:function(e,t,r){var n=r(52280),i=r(51569),o=r(86385),a=n("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},13350:function(e,t,r){"use strict";var n=r(91140).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},9519:function(e){e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},83875:function(e,t,r){var n=r(52786);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},37190:function(e,t,r){var n=r(29580),i=r(35108),o=r(32565),a=function(e){return function(t,r,a){var s,u=n(t),l=i(u.length),c=o(a,l);if(e&&r!=r){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===r)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},82091:function(e,t,r){var n=r(79044),i=r(52280),o=r(11197),a=i("species");e.exports=function(e){return o>=51||!n((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},54324:function(e,t,r){"use strict";var n=r(79044);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){throw 1},1)}))}},5673:function(e,t,r){var n=r(7493),i=r(79044),o=r(40454),a=Object.defineProperty,s={},u=function(e){throw e};e.exports=function(e,t){if(o(s,e))return s[e];t||(t={});var r=[][e],l=!!o(t,"ACCESSORS")&&t.ACCESSORS,c=o(t,0)?t[0]:u,d=o(t,1)?t[1]:void 0;return s[e]=!!r&&!i((function(){if(l&&!n)return!0;var e={length:-1};l?a(e,1,{enumerable:!0,get:u}):e[1]=1,r.call(e,c,d)}))}},80150:function(e,t,r){var n=r(52786),i=r(71982),o=r(52280)("species");e.exports=function(e,t){var r;return i(e)&&("function"!=typeof(r=e.constructor)||r!==Array&&!i(r.prototype)?n(r)&&null===(r=r[o])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===t?0:t)}},9637:function(e,t,r){var n=r(83875);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(a){var o=e.return;throw void 0!==o&&n(o.call(e)),a}}},8662:function(e,t,r){var n=r(52280)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(s){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},e(o)}catch(s){}return r}},79159:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},36994:function(e,t,r){var n=r(57301),i=r(79159),o=r(52280)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=Object(e),o))?r:a?i(t):"Object"==(n=i(t))&&"function"==typeof t.callee?"Arguments":n}},73870:function(e,t,r){var n=r(40454),i=r(31561),o=r(66012),a=r(86385);e.exports=function(e,t){for(var r=i(t),s=a.f,u=o.f,l=0;l<r.length;l++){var c=r[l];n(e,c)||s(e,c,u(t,c))}}},15454:function(e,t,r){var n=r(52280)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(i){}}return!1}},25115:function(e,t,r){var n=r(79044);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},6181:function(e,t,r){"use strict";var n=r(97022).IteratorPrototype,i=r(51569),o=r(69199),a=r(60878),s=r(44818),u=function(){return this};e.exports=function(e,t,r){var l=t+" Iterator";return e.prototype=i(n,{next:o(1,r)}),a(e,l,!1,!0),s[l]=u,e}},45899:function(e,t,r){var n=r(7493),i=r(86385),o=r(69199);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},69199:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},35039:function(e,t,r){"use strict";var n=r(21893),i=r(86385),o=r(69199);e.exports=function(e,t,r){var a=n(t);a in e?i.f(e,a,o(0,r)):e[a]=r}},61495:function(e,t,r){"use strict";var n=r(19882),i=r(6181),o=r(12654),a=r(22412),s=r(60878),u=r(45899),l=r(35974),c=r(52280),d=r(21178),p=r(44818),f=r(97022),m=f.IteratorPrototype,h=f.BUGGY_SAFARI_ITERATORS,g=c("iterator"),v="keys",b="values",y="entries",w=function(){return this};e.exports=function(e,t,r,c,f,E,D){i(r,t,c);var C,S,I,x=function(e){if(e===f&&P)return P;if(!h&&e in M)return M[e];switch(e){case v:case b:case y:return function(){return new r(this,e)}}return function(){return new r(this)}},O=t+" Iterator",A=!1,M=e.prototype,B=M[g]||M["@@iterator"]||f&&M[f],P=!h&&B||x(f),N="Array"==t&&M.entries||B;if(N&&(C=o(N.call(new e)),m!==Object.prototype&&C.next&&(d||o(C)===m||(a?a(C,m):"function"!=typeof C[g]&&u(C,g,w)),s(C,O,!0,!0),d&&(p[O]=w))),f==b&&B&&B.name!==b&&(A=!0,P=function(){return B.call(this)}),d&&!D||M[g]===P||u(M,g,P),p[t]=P,f)if(S={values:x(b),keys:E?P:x(v),entries:x(y)},D)for(I in S)(h||A||!(I in M))&&l(M,I,S[I]);else n({target:t,proto:!0,forced:h||A},S);return S}},7493:function(e,t,r){var n=r(79044);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},92750:function(e,t,r){var n=r(98363),i=r(52786),o=n.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},12848:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},53121:function(e,t,r){var n=r(82647);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},82647:function(e,t,r){var n=r(22773);e.exports=n("navigator","userAgent")||""},11197:function(e,t,r){var n,i,o=r(98363),a=r(82647),s=o.process,u=s&&s.versions,l=u&&u.v8;l?i=(n=l.split("."))[0]+n[1]:a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=n[1]),e.exports=i&&+i},13145:function(e,t,r){var n=r(98363),i=r(98166),o=Function.call;e.exports=function(e,t,r){return i(o,n[e].prototype[t],r)}},48869:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},19882:function(e,t,r){var n=r(98363),i=r(66012).f,o=r(45899),a=r(35974),s=r(51621),u=r(73870),l=r(86291);e.exports=function(e,t){var r,c,d,p,f,m=e.target,h=e.global,g=e.stat;if(r=h?n:g?n[m]||s(m,{}):(n[m]||{}).prototype)for(c in t){if(p=t[c],d=e.noTargetGet?(f=i(r,c))&&f.value:r[c],!l(h?c:m+(g?".":"#")+c,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;u(p,d)}(e.sham||d&&d.sham)&&o(p,"sham",!0),a(r,c,p,e)}}},79044:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},81492:function(e,t,r){"use strict";r(39275);var n=r(35974),i=r(79044),o=r(52280),a=r(99749),s=r(45899),u=o("species"),l=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),c="$0"==="a".replace(/./,"$0"),d=o("replace"),p=!!/./[d]&&""===/./[d]("a","$0"),f=!i((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));e.exports=function(e,t,r,d){var m=o(e),h=!i((function(){var t={};return t[m]=function(){return 7},7!=""[e](t)})),g=h&&!i((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[m]=/./[m]),r.exec=function(){return t=!0,null},r[m](""),!t}));if(!h||!g||"replace"===e&&(!l||!c||p)||"split"===e&&!f){var v=/./[m],b=r(m,""[e],(function(e,t,r,n,i){return t.exec===a?h&&!i?{done:!0,value:v.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}),{REPLACE_KEEPS_$0:c,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),y=b[0],w=b[1];n(String.prototype,e,y),n(RegExp.prototype,m,2==t?function(e,t){return w.call(e,this,t)}:function(e){return w.call(e,this)})}d&&s(RegExp.prototype[m],"sham",!0)}},92613:function(e,t,r){"use strict";var n=r(71982),i=r(35108),o=r(98166),a=function(e,t,r,s,u,l,c,d){for(var p,f=u,m=0,h=!!c&&o(c,d,3);m<s;){if(m in r){if(p=h?h(r[m],m,t):r[m],l>0&&n(p))f=a(e,t,p,i(p.length),f,l-1)-1;else{if(f>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[f]=p}f++}m++}return f};e.exports=a},98166:function(e,t,r){var n=r(28641);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},22773:function(e,t,r){var n=r(67290),i=r(98363),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(i[e]):n[e]&&n[e][t]||i[e]&&i[e][t]}},77193:function(e,t,r){var n=r(36994),i=r(44818),o=r(52280)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[n(e)]}},98363:function(e,t,r){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||Function("return this")()},40454:function(e){var t={}.hasOwnProperty;e.exports=function(e,r){return t.call(e,r)}},47505:function(e){e.exports={}},46271:function(e,t,r){var n=r(98363);e.exports=function(e,t){var r=n.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))}},47055:function(e,t,r){var n=r(22773);e.exports=n("document","documentElement")},67548:function(e,t,r){var n=r(7493),i=r(79044),o=r(92750);e.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},78609:function(e,t,r){var n=r(79044),i=r(79159),o="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},59250:function(e,t,r){var n=r(52786),i=r(22412);e.exports=function(e,t,r){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==r&&n(a=o.prototype)&&a!==r.prototype&&i(e,a),e}},56429:function(e,t,r){var n=r(49415),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return i.call(e)}),e.exports=n.inspectSource},20821:function(e,t,r){var n,i,o,a=r(36830),s=r(98363),u=r(52786),l=r(45899),c=r(40454),d=r(50466),p=r(47505),f=s.WeakMap;if(a){var m=new f,h=m.get,g=m.has,v=m.set;n=function(e,t){return v.call(m,e,t),t},i=function(e){return h.call(m,e)||{}},o=function(e){return g.call(m,e)}}else{var b=d("state");p[b]=!0,n=function(e,t){return l(e,b,t),t},i=function(e){return c(e,b)?e[b]:{}},o=function(e){return c(e,b)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!u(t)||(r=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},68089:function(e,t,r){var n=r(52280),i=r(44818),o=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},71982:function(e,t,r){var n=r(79159);e.exports=Array.isArray||function(e){return"Array"==n(e)}},86291:function(e,t,r){var n=r(79044),i=/#|\.prototype\./,o=function(e,t){var r=s[a(e)];return r==l||r!=u&&("function"==typeof t?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},52786:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},21178:function(e){e.exports=!1},42622:function(e,t,r){var n=r(52786),i=r(79159),o=r(52280)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},5166:function(e,t,r){var n=r(83875),i=r(68089),o=r(35108),a=r(98166),s=r(77193),u=r(9637),l=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,r,c,d){var p,f,m,h,g,v,b,y=a(t,r,c?2:1);if(d)p=e;else{if("function"!=typeof(f=s(e)))throw TypeError("Target is not iterable");if(i(f)){for(m=0,h=o(e.length);h>m;m++)if((g=c?y(n(b=e[m])[0],b[1]):y(e[m]))&&g instanceof l)return g;return new l(!1)}p=f.call(e)}for(v=p.next;!(b=v.call(p)).done;)if("object"==typeof(g=u(p,y,b.value,c))&&g&&g instanceof l)return g;return new l(!1)}).stop=function(e){return new l(!0,e)}},97022:function(e,t,r){"use strict";var n,i,o,a=r(12654),s=r(45899),u=r(40454),l=r(52280),c=r(21178),d=l("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(i=a(a(o)))!==Object.prototype&&(n=i):p=!0),null==n&&(n={}),c||u(n,d)||s(n,d,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},44818:function(e){e.exports={}},71800:function(e,t,r){var n,i,o,a,s,u,l,c,d=r(98363),p=r(66012).f,f=r(79159),m=r(84643).set,h=r(53121),g=d.MutationObserver||d.WebKitMutationObserver,v=d.process,b=d.Promise,y="process"==f(v),w=p(d,"queueMicrotask"),E=w&&w.value;E||(n=function(){var e,t;for(y&&(e=v.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(r){throw i?a():o=void 0,r}}o=void 0,e&&e.enter()},y?a=function(){v.nextTick(n)}:g&&!h?(s=!0,u=document.createTextNode(""),new g(n).observe(u,{characterData:!0}),a=function(){u.data=s=!s}):b&&b.resolve?(l=b.resolve(void 0),c=l.then,a=function(){c.call(l,n)}):a=function(){m.call(d,n)}),e.exports=E||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},58369:function(e,t,r){var n=r(98363);e.exports=n.Promise},3850:function(e,t,r){var n=r(79044);e.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},36830:function(e,t,r){var n=r(98363),i=r(56429),o=n.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},29269:function(e,t,r){"use strict";var n=r(28641),i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},21049:function(e,t,r){var n=r(42622);e.exports=function(e){if(n(e))throw TypeError("The method doesn't accept regular expressions");return e}},45856:function(e,t,r){"use strict";var n=r(7493),i=r(79044),o=r(60667),a=r(89612),s=r(81513),u=r(30744),l=r(78609),c=Object.assign,d=Object.defineProperty;e.exports=!c||i((function(){if(n&&1!==c({b:1},c(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),i="abcdefghijklmnopqrst";return e[r]=7,i.split("").forEach((function(e){t[e]=e})),7!=c({},e)[r]||o(c({},t)).join("")!=i}))?function(e,t){for(var r=u(e),i=arguments.length,c=1,d=a.f,p=s.f;i>c;)for(var f,m=l(arguments[c++]),h=d?o(m).concat(d(m)):o(m),g=h.length,v=0;g>v;)f=h[v++],n&&!p.call(m,f)||(r[f]=m[f]);return r}:c},51569:function(e,t,r){var n,i=r(83875),o=r(17840),a=r(48869),s=r(47505),u=r(47055),l=r(92750),c=r(50466),d=c("IE_PROTO"),p=function(){},f=function(e){return"<script>"+e+"</"+"script>"},m=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(i){}var e,t;m=n?function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t}(n):((t=l("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F);for(var r=a.length;r--;)delete m.prototype[a[r]];return m()};s[d]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(p.prototype=i(e),r=new p,p.prototype=null,r[d]=e):r=m(),void 0===t?r:o(r,t)}},17840:function(e,t,r){var n=r(7493),i=r(86385),o=r(83875),a=r(60667);e.exports=n?Object.defineProperties:function(e,t){o(e);for(var r,n=a(t),s=n.length,u=0;s>u;)i.f(e,r=n[u++],t[r]);return e}},86385:function(e,t,r){var n=r(7493),i=r(67548),o=r(83875),a=r(21893),s=Object.defineProperty;t.f=n?s:function(e,t,r){if(o(e),t=a(t,!0),o(r),i)try{return s(e,t,r)}catch(n){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},66012:function(e,t,r){var n=r(7493),i=r(81513),o=r(69199),a=r(29580),s=r(21893),u=r(40454),l=r(67548),c=Object.getOwnPropertyDescriptor;t.f=n?c:function(e,t){if(e=a(e),t=s(t,!0),l)try{return c(e,t)}catch(r){}if(u(e,t))return o(!i.f.call(e,t),e[t])}},87994:function(e,t,r){var n=r(18794),i=r(48869).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},89612:function(e,t){t.f=Object.getOwnPropertySymbols},12654:function(e,t,r){var n=r(40454),i=r(30744),o=r(50466),a=r(25115),s=o("IE_PROTO"),u=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),n(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},18794:function(e,t,r){var n=r(40454),i=r(29580),o=r(37190).indexOf,a=r(47505);e.exports=function(e,t){var r,s=i(e),u=0,l=[];for(r in s)!n(a,r)&&n(s,r)&&l.push(r);for(;t.length>u;)n(s,r=t[u++])&&(~o(l,r)||l.push(r));return l}},60667:function(e,t,r){var n=r(18794),i=r(48869);e.exports=Object.keys||function(e){return n(e,i)}},81513:function(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);t.f=i?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},22412:function(e,t,r){var n=r(83875),i=r(75017);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(o){}return function(r,o){return n(r),i(o),t?e.call(r,o):r.__proto__=o,r}}():void 0)},31561:function(e,t,r){var n=r(22773),i=r(87994),o=r(89612),a=r(83875);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?t.concat(r(e)):t}},67290:function(e,t,r){var n=r(98363);e.exports=n},74443:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},11621:function(e,t,r){var n=r(83875),i=r(52786),o=r(29269);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},7592:function(e,t,r){var n=r(35974);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},35974:function(e,t,r){var n=r(98363),i=r(45899),o=r(40454),a=r(51621),s=r(56429),u=r(20821),l=u.get,c=u.enforce,d=String(String).split("String");(e.exports=function(e,t,r,s){var u=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof r&&("string"!=typeof t||o(r,"name")||i(r,"name",t),c(r).source=d.join("string"==typeof t?t:"")),e!==n?(u?!p&&e[t]&&(l=!0):delete e[t],l?e[t]=r:i(e,t,r)):l?e[t]=r:a(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||s(this)}))},94088:function(e,t,r){var n=r(79159),i=r(99749);e.exports=function(e,t){var r=e.exec;if("function"==typeof r){var o=r.call(e,t);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},99749:function(e,t,r){"use strict";var n,i,o=r(58083),a=r(97047),s=RegExp.prototype.exec,u=String.prototype.replace,l=s,c=(n=/a/,i=/b*/g,s.call(n,"a"),s.call(i,"a"),0!==n.lastIndex||0!==i.lastIndex),d=a.UNSUPPORTED_Y||a.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(c||p||d)&&(l=function(e){var t,r,n,i,a=this,l=d&&a.sticky,f=o.call(a),m=a.source,h=0,g=e;return l&&(-1===(f=f.replace("y","")).indexOf("g")&&(f+="g"),g=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(m="(?: "+m+")",g=" "+g,h++),r=new RegExp("^(?:"+m+")",f)),p&&(r=new RegExp("^"+m+"$(?!\\s)",f)),c&&(t=a.lastIndex),n=s.call(l?r:a,g),l?n?(n.input=n.input.slice(h),n[0]=n[0].slice(h),n.index=a.lastIndex,a.lastIndex+=n[0].length):a.lastIndex=0:c&&n&&(a.lastIndex=a.global?n.index+n[0].length:t),p&&n&&n.length>1&&u.call(n[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)})),n}),e.exports=l},58083:function(e,t,r){"use strict";var n=r(83875);e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},97047:function(e,t,r){"use strict";var n=r(79044);function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=n((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=n((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},96411:function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},10420:function(e){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},51621:function(e,t,r){var n=r(98363),i=r(45899);e.exports=function(e,t){try{i(n,e,t)}catch(r){n[e]=t}return t}},57323:function(e,t,r){"use strict";var n=r(22773),i=r(86385),o=r(52280),a=r(7493),s=o("species");e.exports=function(e){var t=n(e),r=i.f;a&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},60878:function(e,t,r){var n=r(86385).f,i=r(40454),o=r(52280)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},50466:function(e,t,r){var n=r(53580),i=r(34524),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},49415:function(e,t,r){var n=r(98363),i=r(51621),o="__core-js_shared__",a=n[o]||i(o,{});e.exports=a},53580:function(e,t,r){var n=r(21178),i=r(49415);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},7270:function(e,t,r){var n=r(83875),i=r(28641),o=r(52280)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||null==(r=n(a)[o])?t:i(r)}},91140:function(e,t,r){var n=r(98330),i=r(96411),o=function(e){return function(t,r){var o,a,s=String(i(t)),u=n(r),l=s.length;return u<0||u>=l?e?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},26031:function(e,t,r){"use strict";var n=r(98330),i=r(96411);e.exports="".repeat||function(e){var t=String(i(this)),r="",o=n(e);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(r+=t);return r}},68487:function(e,t,r){var n=r(79044),i=r(2569);e.exports=function(e){return n((function(){return!!i[e]()||"
"!="
"[e]()||i[e].name!==e}))}},10287:function(e,t,r){var n=r(96411),i="["+r(2569)+"]",o=RegExp("^"+i+i+"*"),a=RegExp(i+i+"*$"),s=function(e){return function(t){var r=String(n(t));return 1&e&&(r=r.replace(o,"")),2&e&&(r=r.replace(a,"")),r}};e.exports={start:s(1),end:s(2),trim:s(3)}},84643:function(e,t,r){var n,i,o,a=r(98363),s=r(79044),u=r(79159),l=r(98166),c=r(47055),d=r(92750),p=r(53121),f=a.location,m=a.setImmediate,h=a.clearImmediate,g=a.process,v=a.MessageChannel,b=a.Dispatch,y=0,w={},E="onreadystatechange",D=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},C=function(e){return function(){D(e)}},S=function(e){D(e.data)},I=function(e){a.postMessage(e+"",f.protocol+"//"+f.host)};m&&h||(m=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return w[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},n(y),y},h=function(e){delete w[e]},"process"==u(g)?n=function(e){g.nextTick(C(e))}:b&&b.now?n=function(e){b.now(C(e))}:v&&!p?(o=(i=new v).port2,i.port1.onmessage=S,n=l(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(I)||"file:"===f.protocol?n=E in d("script")?function(e){c.appendChild(d("script")).onreadystatechange=function(){c.removeChild(this),D(e)}}:function(e){setTimeout(C(e),0)}:(n=I,a.addEventListener("message",S,!1))),e.exports={set:m,clear:h}},41655:function(e,t,r){var n=r(79159);e.exports=function(e){if("number"!=typeof e&&"Number"!=n(e))throw TypeError("Incorrect invocation");return+e}},32565:function(e,t,r){var n=r(98330),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},29580:function(e,t,r){var n=r(78609),i=r(96411);e.exports=function(e){return n(i(e))}},98330:function(e){var t=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}},35108:function(e,t,r){var n=r(98330),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},30744:function(e,t,r){var n=r(96411);e.exports=function(e){return Object(n(e))}},21893:function(e,t,r){var n=r(52786);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},57301:function(e,t,r){var n={};n[r(52280)("toStringTag")]="z",e.exports="[object z]"===String(n)},34524:function(e){var t=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+r).toString(36)}},189:function(e,t,r){var n=r(3850);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},52280:function(e,t,r){var n=r(98363),i=r(53580),o=r(40454),a=r(34524),s=r(3850),u=r(189),l=i("wks"),c=n.Symbol,d=u?c:c&&c.withoutSetter||a;e.exports=function(e){return o(l,e)||(s&&o(c,e)?l[e]=c[e]:l[e]=d("Symbol."+e)),l[e]}},2569:function(e){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},59789:function(e,t,r){"use strict";var n=r(19882),i=r(92613),o=r(30744),a=r(35108),s=r(98330),u=r(80150);n({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=o(this),r=a(t.length),n=u(t,0);return n.length=i(n,t,t,r,0,void 0===e?1:s(e)),n}})},31807:function(e,t,r){"use strict";var n=r(19882),i=r(37190).indexOf,o=r(54324),a=r(5673),s=[].indexOf,u=!!s&&1/[1].indexOf(1,-0)<0,l=o("indexOf"),c=a("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:u||!l||!c},{indexOf:function(e){return u?s.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})},54883:function(e,t,r){"use strict";var n=r(29580),i=r(6677),o=r(44818),a=r(20821),s=r(61495),u="Array Iterator",l=a.set,c=a.getterFor(u);e.exports=s(Array,"Array",(function(e,t){l(this,{type:u,target:n(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},45550:function(e,t,r){"use strict";var n=r(19882),i=r(32565),o=r(98330),a=r(35108),s=r(30744),u=r(80150),l=r(35039),c=r(82091),d=r(5673),p=c("splice"),f=d("splice",{ACCESSORS:!0,0:0,1:2}),m=Math.max,h=Math.min,g=9007199254740991,v="Maximum allowed length exceeded";n({target:"Array",proto:!0,forced:!p||!f},{splice:function(e,t){var r,n,c,d,p,f,b=s(this),y=a(b.length),w=i(e,y),E=arguments.length;if(0===E?r=n=0:1===E?(r=0,n=y-w):(r=E-2,n=h(m(o(t),0),y-w)),y+r-n>g)throw TypeError(v);for(c=u(b,n),d=0;d<n;d++)(p=w+d)in b&&l(c,d,b[p]);if(c.length=n,r<n){for(d=w;d<y-n;d++)f=d+r,(p=d+n)in b?b[f]=b[p]:delete b[f];for(d=y;d>y-n+r;d--)delete b[d-1]}else if(r>n)for(d=y-n;d>w;d--)f=d+r-1,(p=d+n-1)in b?b[f]=b[p]:delete b[f];for(d=0;d<r;d++)b[d+w]=arguments[d+2];return b.length=y-n+r,c}})},68502:function(e,t,r){r(6677)("flat")},12798:function(e,t,r){"use strict";var n=r(19882),i=r(98330),o=r(41655),a=r(26031),s=r(79044),u=1..toFixed,l=Math.floor,c=function(e,t,r){return 0===t?r:t%2==1?c(e,t-1,r*e):c(e*e,t/2,r)};n({target:"Number",proto:!0,forced:u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){u.call({})}))},{toFixed:function(e){var t,r,n,s,u=o(this),d=i(e),p=[0,0,0,0,0,0],f="",m="0",h=function(e,t){for(var r=-1,n=t;++r<6;)n+=e*p[r],p[r]=n%1e7,n=l(n/1e7)},g=function(e){for(var t=6,r=0;--t>=0;)r+=p[t],p[t]=l(r/e),r=r%e*1e7},v=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==p[e]){var r=String(p[e]);t=""===t?r:t+a.call("0",7-r.length)+r}return t};if(d<0||d>20)throw RangeError("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(f="-",u=-u),u>1e-21)if(r=(t=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t}(u*c(2,69,1))-69)<0?u*c(2,-t,1):u/c(2,t,1),r*=4503599627370496,(t=52-t)>0){for(h(0,r),n=d;n>=7;)h(1e7,0),n-=7;for(h(c(10,n,1),0),n=t-1;n>=23;)g(1<<23),n-=23;g(1<<n),h(1,1),g(2),m=v()}else h(0,r),h(1<<-t,0),m=v()+a.call("0",d);return m=d>0?f+((s=m.length)<=d?"0."+a.call("0",d-s)+m:m.slice(0,s-d)+"."+m.slice(s-d)):f+m}})},33130:function(e,t,r){var n=r(19882),i=r(45856);n({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},35054:function(e,t,r){"use strict";var n,i,o,a,s=r(19882),u=r(21178),l=r(98363),c=r(22773),d=r(58369),p=r(35974),f=r(7592),m=r(60878),h=r(57323),g=r(52786),v=r(28641),b=r(9519),y=r(79159),w=r(56429),E=r(5166),D=r(8662),C=r(7270),S=r(84643).set,I=r(71800),x=r(11621),O=r(46271),A=r(29269),M=r(74443),B=r(20821),P=r(86291),N=r(52280),k=r(11197),F=N("species"),T="Promise",j=B.get,L=B.set,R=B.getterFor(T),_=d,Z=l.TypeError,H=l.document,W=l.process,U=c("fetch"),G=A.f,q=G,z="process"==y(W),V=!!(H&&H.createEvent&&l.dispatchEvent),J="unhandledrejection",Y=P(T,(function(){if(!(w(_)!==String(_))){if(66===k)return!0;if(!z&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!_.prototype.finally)return!0;if(k>=51&&/native code/.test(_))return!1;var e=_.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[F]=t,!(e.then((function(){}))instanceof t)})),Q=Y||!D((function(e){_.all(e).catch((function(){}))})),X=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},K=function(e,t,r){if(!t.notified){t.notified=!0;var n=t.reactions;I((function(){for(var i=t.value,o=1==t.state,a=0;n.length>a;){var s,u,l,c=n[a++],d=o?c.ok:c.fail,p=c.resolve,f=c.reject,m=c.domain;try{d?(o||(2===t.rejection&&re(e,t),t.rejection=1),!0===d?s=i:(m&&m.enter(),s=d(i),m&&(m.exit(),l=!0)),s===c.promise?f(Z("Promise-chain cycle")):(u=X(s))?u.call(s,p,f):p(s)):f(i)}catch(h){m&&!l&&m.exit(),f(h)}}t.reactions=[],t.notified=!1,r&&!t.rejection&&ee(e,t)}))}},$=function(e,t,r){var n,i;V?((n=H.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),l.dispatchEvent(n)):n={promise:t,reason:r},(i=l["on"+e])?i(n):e===J&&O("Unhandled promise rejection",r)},ee=function(e,t){S.call(l,(function(){var r,n=t.value;if(te(t)&&(r=M((function(){z?W.emit("unhandledRejection",n,e):$(J,e,n)})),t.rejection=z||te(t)?2:1,r.error))throw r.value}))},te=function(e){return 1!==e.rejection&&!e.parent},re=function(e,t){S.call(l,(function(){z?W.emit("rejectionHandled",e):$("rejectionhandled",e,t.value)}))},ne=function(e,t,r,n){return function(i){e(t,r,i,n)}},ie=function(e,t,r,n){t.done||(t.done=!0,n&&(t=n),t.value=r,t.state=2,K(e,t,!0))},oe=function(e,t,r,n){if(!t.done){t.done=!0,n&&(t=n);try{if(e===r)throw Z("Promise can't be resolved itself");var i=X(r);i?I((function(){var n={done:!1};try{i.call(r,ne(oe,e,n,t),ne(ie,e,n,t))}catch(o){ie(e,n,o,t)}})):(t.value=r,t.state=1,K(e,t,!1))}catch(o){ie(e,{done:!1},o,t)}}};Y&&(_=function(e){b(this,_,T),v(e),n.call(this);var t=j(this);try{e(ne(oe,this,t),ne(ie,this,t))}catch(r){ie(this,t,r)}},(n=function(e){L(this,{type:T,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=f(_.prototype,{then:function(e,t){var r=R(this),n=G(C(this,_));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=z?W.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&K(this,r,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new n,t=j(e);this.promise=e,this.resolve=ne(oe,e,t),this.reject=ne(ie,e,t)},A.f=G=function(e){return e===_||e===o?new i(e):q(e)},u||"function"!=typeof d||(a=d.prototype.then,p(d.prototype,"then",(function(e,t){var r=this;return new _((function(e,t){a.call(r,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof U&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return x(_,U.apply(l,arguments))}}))),s({global:!0,wrap:!0,forced:Y},{Promise:_}),m(_,T,!1,!0),h(T),o=c(T),s({target:T,stat:!0,forced:Y},{reject:function(e){var t=G(this);return t.reject.call(void 0,e),t.promise}}),s({target:T,stat:!0,forced:u||Y},{resolve:function(e){return x(u&&this===o?_:this,e)}}),s({target:T,stat:!0,forced:Q},{all:function(e){var t=this,r=G(t),n=r.resolve,i=r.reject,o=M((function(){var r=v(t.resolve),o=[],a=0,s=1;E(e,(function(e){var u=a++,l=!1;o.push(void 0),s++,r.call(t,e).then((function(e){l||(l=!0,o[u]=e,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise},race:function(e){var t=this,r=G(t),n=r.reject,i=M((function(){var i=v(t.resolve);E(e,(function(e){i.call(t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}})},72975:function(e,t,r){var n=r(7493),i=r(98363),o=r(86291),a=r(59250),s=r(86385).f,u=r(87994).f,l=r(42622),c=r(58083),d=r(97047),p=r(35974),f=r(79044),m=r(20821).set,h=r(57323),g=r(52280)("match"),v=i.RegExp,b=v.prototype,y=/a/g,w=/a/g,E=new v(y)!==y,D=d.UNSUPPORTED_Y;if(n&&o("RegExp",!E||D||f((function(){return w[g]=!1,v(y)!=y||v(w)==w||"/a/i"!=v(y,"i")})))){for(var C=function(e,t){var r,n=this instanceof C,i=l(e),o=void 0===t;if(!n&&i&&e.constructor===C&&o)return e;E?i&&!o&&(e=e.source):e instanceof C&&(o&&(t=c.call(e)),e=e.source),D&&(r=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var s=a(E?new v(e,t):v(e,t),n?this:b,C);return D&&r&&m(s,{sticky:r}),s},S=function(e){e in C||s(C,e,{configurable:!0,get:function(){return v[e]},set:function(t){v[e]=t}})},I=u(v),x=0;I.length>x;)S(I[x++]);b.constructor=C,C.prototype=b,p(i,"RegExp",C)}h("RegExp")},39275:function(e,t,r){"use strict";var n=r(19882),i=r(99749);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},33290:function(e,t,r){"use strict";var n=r(35974),i=r(83875),o=r(79044),a=r(58083),s="toString",u=RegExp.prototype,l=u.toString,c=o((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),d=l.name!=s;(c||d)&&n(RegExp.prototype,s,(function(){var e=i(this),t=String(e.source),r=e.flags;return"/"+t+"/"+String(void 0===r&&e instanceof RegExp&&!("flags"in u)?a.call(e):r)}),{unsafe:!0})},19985:function(e,t,r){"use strict";var n=r(19882),i=r(21049),o=r(96411);n({target:"String",proto:!0,forced:!r(15454)("includes")},{includes:function(e){return!!~String(o(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},22321:function(e,t,r){"use strict";var n=r(81492),i=r(83875),o=r(30744),a=r(35108),s=r(98330),u=r(96411),l=r(13350),c=r(94088),d=Math.max,p=Math.min,f=Math.floor,m=/\$([$&'`]|\d\d?|<[^>]*>)/g,h=/\$([$&'`]|\d\d?)/g;n("replace",2,(function(e,t,r,n){var g=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,v=n.REPLACE_KEEPS_$0,b=g?"$":"$0";return[function(r,n){var i=u(this),o=null==r?void 0:r[e];return void 0!==o?o.call(r,i,n):t.call(String(i),r,n)},function(e,n){if(!g&&v||"string"==typeof n&&-1===n.indexOf(b)){var o=r(t,e,this,n);if(o.done)return o.value}var u=i(e),f=String(this),m="function"==typeof n;m||(n=String(n));var h=u.global;if(h){var w=u.unicode;u.lastIndex=0}for(var E=[];;){var D=c(u,f);if(null===D)break;if(E.push(D),!h)break;""===String(D[0])&&(u.lastIndex=l(f,a(u.lastIndex),w))}for(var C,S="",I=0,x=0;x<E.length;x++){D=E[x];for(var O=String(D[0]),A=d(p(s(D.index),f.length),0),M=[],B=1;B<D.length;B++)M.push(void 0===(C=D[B])?C:String(C));var P=D.groups;if(m){var N=[O].concat(M,A,f);void 0!==P&&N.push(P);var k=String(n.apply(void 0,N))}else k=y(O,f,A,M,P,n);A>=I&&(S+=f.slice(I,A)+k,I=A+O.length)}return S+f.slice(I)}];function y(e,r,n,i,a,s){var u=n+e.length,l=i.length,c=h;return void 0!==a&&(a=o(a),c=m),t.call(s,c,(function(t,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return r.slice(0,n);case"'":return r.slice(u);case"<":s=a[o.slice(1,-1)];break;default:var c=+o;if(0===c)return t;if(c>l){var d=f(c/10);return 0===d?t:d<=l?void 0===i[d-1]?o.charAt(1):i[d-1]+o.charAt(1):t}s=i[c-1]}return void 0===s?"":s}))}}))},23528:function(e,t,r){"use strict";var n=r(81492),i=r(83875),o=r(96411),a=r(10420),s=r(94088);n("search",1,(function(e,t,r){return[function(t){var r=o(this),n=null==t?void 0:t[e];return void 0!==n?n.call(t,r):new RegExp(t)[e](String(r))},function(e){var n=r(t,e,this);if(n.done)return n.value;var o=i(e),u=String(this),l=o.lastIndex;a(l,0)||(o.lastIndex=0);var c=s(o,u);return a(o.lastIndex,l)||(o.lastIndex=l),null===c?-1:c.index}]}))},67838:function(e,t,r){"use strict";var n=r(81492),i=r(42622),o=r(83875),a=r(96411),s=r(7270),u=r(13350),l=r(35108),c=r(94088),d=r(99749),p=r(79044),f=[].push,m=Math.min,h=4294967295,g=!p((function(){return!RegExp(h,"y")}));n("split",2,(function(e,t,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var n=String(a(this)),o=void 0===r?h:r>>>0;if(0===o)return[];if(void 0===e)return[n];if(!i(e))return t.call(n,e,o);for(var s,u,l,c=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,g=new RegExp(e.source,p+"g");(s=d.call(g,n))&&!((u=g.lastIndex)>m&&(c.push(n.slice(m,s.index)),s.length>1&&s.index<n.length&&f.apply(c,s.slice(1)),l=s[0].length,m=u,c.length>=o));)g.lastIndex===s.index&&g.lastIndex++;return m===n.length?!l&&g.test("")||c.push(""):c.push(n.slice(m)),c.length>o?c.slice(0,o):c}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:t.call(this,e,r)}:t,[function(t,r){var i=a(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,i,r):n.call(String(i),t,r)},function(e,i){var a=r(n,e,this,i,n!==t);if(a.done)return a.value;var d=o(e),p=String(this),f=s(d,RegExp),v=d.unicode,b=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(g?"y":"g"),y=new f(g?d:"^(?:"+d.source+")",b),w=void 0===i?h:i>>>0;if(0===w)return[];if(0===p.length)return null===c(y,p)?[p]:[];for(var E=0,D=0,C=[];D<p.length;){y.lastIndex=g?D:0;var S,I=c(y,g?p:p.slice(D));if(null===I||(S=m(l(y.lastIndex+(g?0:D)),p.length))===E)D=u(p,D,v);else{if(C.push(p.slice(E,D)),C.length===w)return C;for(var x=1;x<=I.length-1;x++)if(C.push(I[x]),C.length===w)return C;D=E=S}}return C.push(p.slice(E)),C}]}),!g)},29897:function(e,t,r){"use strict";var n=r(19882),i=r(10287).trim;n({target:"String",proto:!0,forced:r(68487)("trim")},{trim:function(){return i(this)}})},86632:function(e,t,r){"use strict";var n=r(19882),i=r(7493),o=r(98363),a=r(40454),s=r(52786),u=r(86385).f,l=r(73870),c=o.Symbol;if(i&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var d={},p=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof p?new c(e):void 0===e?c():c(e);return""===e&&(d[t]=!0),t};l(p,c);var f=p.prototype=c.prototype;f.constructor=p;var m=f.toString,h="Symbol(test)"==String(c("test")),g=/^Symbol\((.*)\)[^)]+$/;u(f,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=m.call(e);if(a(d,e))return"";var r=h?t.slice(7,-1):t.replace(g,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:p})}},68995:function(e,t,r){var n=r(98363),i=r(12848),o=r(54883),a=r(45899),s=r(52280),u=s("iterator"),l=s("toStringTag"),c=o.values;for(var d in i){var p=n[d],f=p&&p.prototype;if(f){if(f[u]!==c)try{a(f,u,c)}catch(h){f[u]=c}if(f[l]||a(f,l,d),i[d])for(var m in o)if(f[m]!==o[m])try{a(f,m,o[m])}catch(h){f[m]=o[m]}}}},87191:function(e,t,r){"use strict";r(19882)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},97759:function(e,t,r){"use strict";r.d(t,{Oq:function(){return p},dO:function(){return u},jn:function(){return o},iz:function(){return f},Dz:function(){return i},cv:function(){return c},oc:function(){return d}});var n=r(27222),i=function(e){var t=e.top,r=e.right,n=e.bottom,i=e.left;return{top:t,right:r,bottom:n,left:i,width:r-i,height:n-t,x:i,y:t,center:{x:(r+i)/2,y:(n+t)/2}}},o=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},a=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},s={top:0,right:0,bottom:0,left:0},u=function(e){var t=e.borderBox,r=e.margin,n=void 0===r?s:r,u=e.border,l=void 0===u?s:u,c=e.padding,d=void 0===c?s:c,p=i(o(t,n)),f=i(a(t,l)),m=i(a(f,d));return{marginBox:p,borderBox:i(t),paddingBox:f,contentBox:m,margin:n,border:l,padding:d}},l=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var r=Number(t);return isNaN(r)&&(0,n.Z)(!1),r},c=function(e,t){var r,n,i=e.borderBox,o=e.border,a=e.margin,s=e.padding,l=(n=t,{top:(r=i).top+n.y,left:r.left+n.x,bottom:r.bottom+n.y,right:r.right+n.x});return u({borderBox:l,border:o,margin:a,padding:s})},d=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),c(e,t)},p=function(e,t){var r={top:l(t.marginTop),right:l(t.marginRight),bottom:l(t.marginBottom),left:l(t.marginLeft)},n={top:l(t.paddingTop),right:l(t.paddingRight),bottom:l(t.paddingBottom),left:l(t.paddingLeft)},i={top:l(t.borderTopWidth),right:l(t.borderRightWidth),bottom:l(t.borderBottomWidth),left:l(t.borderLeftWidth)};return u({borderBox:e,margin:r,padding:n,border:i})},f=function(e){var t=e.getBoundingClientRect(),r=window.getComputedStyle(e);return p(t,r)}},27222:function(e,t){"use strict";var r="Invariant failed";t.Z=function(e,t){if(!e)throw new Error(r)}},19141:function(e){"use strict";e.exports=function(e){if(e=String(e||""),n.test(e))return"rtl";if(i.test(e))return"ltr";return"neutral"};var t="֑-߿יִ-﷽ﹰ-ﻼ",r="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",n=new RegExp("^[^"+r+"]*["+t+"]"),i=new RegExp("^[^"+t+"]*["+r+"]")},43613:function(e){"use strict";
|
9 |
/*!
|
10 |
* escape-html
|
11 |
* Copyright(c) 2012-2013 TJ Holowaychuk
|
dist/admin-template.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
var WPRecipeMaker;(WPRecipeMaker=void 0===WPRecipeMaker?{}:WPRecipeMaker)["wp-recipe-maker/dist/admin-template"]=(self.webpackChunkWPRecipeMaker_name_=self.webpackChunkWPRecipeMaker_name_||[]).push([[994],{5308:function(e,t,n){"use strict";n(87191);var r=n(52082),i={selectImage(e){this.select("image",e)},selectVideo(e){this.select("video",e)},select(e,t){var n={title:(0,r.S)("Select Media"),button:{text:(0,r.S)("Select")},multiple:!1};"video"===e?(n.frame="video",n.state="video-details"):n.library={type:"image"};var i=wp.media(n);i.on("select",(function(){var e=i.state().get("selection").first().toJSON();t(e)})),i.on("update",(function(){var e=i.state().media.attachment;e&&t(e)})),i.open()}};t.Z=i},49917:function(e,t,n){"use strict";n.r(t);var r=n(73961),i=n(89526),o=n(99237),a=n(57573),l=n(49092),s={manage:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBmaWxsPSIjMTExMTExIj48cmVjdCB4PSIxLjUiIHk9IjAuNSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgd2lkdGg9IjEzIiBoZWlnaHQ9IjE1Ij48L3JlY3Q+IDxsaW5lIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSI5LjUiIHkxPSIzLjUiIHgyPSIxMS41IiB5Mj0iMy41IiBkYXRhLWNvbG9yPSJjb2xvci0yIj48L2xpbmU+IDxsaW5lIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSI5Lj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svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBmaWxsPSIjMTExMTExIj48cGF0aCBkPSJNNy41LjUsMi4wODYsNS45MTRhMiwyLDAsMCwwLDAsMi44MjhsMS41ODYsMS41ODZMLjkxNCwxMy4wODZhMS40MTQsMS40MTQsMCwwLDAsMCwyaDBhMS40MTQsMS40MTQsMCwwLDAsMiwwbDIuNzU3LTIuNzU3LDEuNTg2LDEuNTg2YTIsMiwwLDAsMCwyLjgyOCwwTDE1LjUsOC41WiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGRhdGEtY2FwPSJidXR0Ij48L3BhdGg+IDxsaW5lIHgxPSI0LjUiIHkxPSI2LjUiIHgyPSI5LjUiIHkyPSIxMS41IiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZGF0YS1jYXA9ImJ1dHQiIGRhdGEtY29sb3I9ImNvbG9yLTIiPjwvbGluZT48L2c+PC9zdmc+"},u=e=>{var t=!!s.hasOwnProperty(e.type)&&s[e.type];return t?i.createElement("span",{className:"wprm-template-icon"},i.createElement(l.Z,{src:t})):i.createElement("span",{className:"wprm-template-noicon"}," ")},c=n(34133),p=(n(54883),n(68995),n(1703)),d=e=>{var t=[],n=[],r=[];for(var o of Object.values(e.template.style.properties))switch(o.type){case"color":t.push(o);break;case"align":o.options={left:"Left",center:"Center",right:"Right"};case"font":case"font_size":n.push(o);break;case"float":o.options={left:"Left",none:"None",right:"Right"},r.push(o);break;case"border":o.options={solid:"Solid",dashed:"Dashed",dotted:"Dotted",double:"Double",groove:"Groove",ridge:"Ridge",inset:"Inset",outset:"Outset"},r.push(o);break;case"percentage":o.suffix="%",r.push(o);break;default:r.push(o)}var a=[{header:"Colors",properties:t},{header:"Text",properties:n},{header:"Other",properties:r}];return i.createElement("div",{id:"wprm-template-properties",className:"wprm-template-properties"},Object.values(e.template.style.properties).length>0?i.createElement(i.Fragment,null,a.map(((t,n)=>{if(t.properties.length>0)return i.createElement(i.Fragment,{key:n},i.createElement("div",{className:"wprm-template-properties-header"},t.header),t.properties.map(((t,n)=>i.createElement(p.Z,{property:t,onPropertyChange:e.onChangeTemplateProperty,key:n}))))}))):i.createElement("p",null,"This template does not have any adjustable properties."))};function f(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}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=e=>i.createElement("div",{id:"wprm-template-sidebar"},e.editing&&i.createElement("div",{id:"wprm-template-buttons"},i.createElement("p",null,"Editing template: ",e.template.name),e.savingTemplate?i.createElement(c.Z,null):i.createElement(i.Fragment,null,i.createElement("button",{className:"button button-primary",disabled:!e.changesMade,onClick:()=>{confirm("Are you sure you want to save your changes?")&&e.onSaveTemplate(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.template))}},e.savingTemplate?"...":"Save Changes"),i.createElement("button",{className:"button",onClick:()=>{e.changesMade&&!confirm("Are you sure you want to cancel your changes?")||e.onChangeEditing(!1)}},e.changesMade?"Cancel Changes":"Stop Editing"))),i.createElement("div",{id:"wprm-template-menu"},e.editing?i.createElement(i.Fragment,null,i.createElement("a",{className:"properties"===e.mode?"wprm-template-menu-group active":"wprm-template-menu-group",onClick:t=>{e.onChangeMode("properties")}},i.createElement(u,{type:"properties"})," Template Properties"),i.createElement("a",{className:"blocks"===e.mode?"wprm-template-menu-group active":"wprm-template-menu-group",onClick:t=>{e.onChangeMode("blocks")}},i.createElement(u,{type:"blocks"})," Edit Blocks"),i.createElement("a",{className:"add"===e.mode?"wprm-template-menu-group active":"wprm-template-menu-group",onClick:t=>{e.onChangeMode("add")}},i.createElement(u,{type:"add"})," Add Blocks"),i.createElement("a",{className:"remove"===e.mode?"wprm-template-menu-group active":"wprm-template-menu-group",onClick:t=>{e.onChangeMode("remove")}},i.createElement(u,{type:"remove"})," Remove Blocks"),i.createElement("a",{className:"html"===e.mode?"wprm-template-menu-group active":"wprm-template-menu-group",onClick:t=>{e.onChangeMode("html")}},i.createElement(u,{type:"html"})," Edit HTML"),i.createElement("a",{className:"css"===e.mode?"wprm-template-menu-group active":"wprm-template-menu-group",onClick:t=>{e.onChangeMode("css")}},i.createElement(u,{type:"css"})," Edit CSS")):i.createElement(i.Fragment,null,i.createElement("a",{className:"manage"===e.mode?"wprm-template-menu-group active":"wprm-template-menu-group",onClick:t=>{e.onChangeMode("manage")}},i.createElement(u,{type:"manage"})," Manage Templates"))),"properties"===e.mode&&e.template?i.createElement(d,{template:e.template,onChangeTemplateProperty:e.onChangeTemplateProperty}):null,i.createElement("div",{id:"wprm-add-blocks",style:{display:"add"!==e.mode?"none":"block"},className:"wprm-template-properties"}),i.createElement("div",{id:"wprm-remove-blocks",style:{display:"remove"!==e.mode?"none":"block"},className:"wprm-template-properties"}),i.createElement("div",{id:"wprm-block-properties",style:{display:"blocks"!==e.mode?"none":"block"},className:"wprm-template-properties"})),g=(n(86632),n(55565)),v=n.n(g);function b(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}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=e=>{var t="database"===e.template.location;return i.createElement("div",{className:"wprm-main-container"},i.createElement("h2",{className:"wprm-main-container-name"},"Selected Template"),i.createElement("div",{className:"wprm-manage-templates-template-fields"},i.createElement("span",null,"Slug: ",e.template.slug)," | ",i.createElement("span",null,"Name: ",e.template.name)),i.createElement("div",{className:"wprm-manage-templates-template-actions"},e.template.premium&&!wprm_admin.addons.premium?i.createElement("p",{style:{color:"darkred",fontWeight:"bold"}},"This template is only available in ",i.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium"),"."):i.createElement(i.Fragment,null,e.savingTemplate?i.createElement(c.Z,null):i.createElement(i.Fragment,null,t?i.createElement(i.Fragment,null,i.createElement("button",{className:"button button-primary",onClick:()=>e.onChangeEditing(!0)},"Edit Template"),i.createElement("button",{className:"button button-primary",onClick:()=>{var t=prompt("Choose a name for the cloned template");t&&e.onSaveTemplate(y(y({},e.template),{},{oldSlug:e.template.slug,slug:!1,name:t}))}},"Clone Template")):i.createElement("button",{className:"button button-primary",onClick:()=>{var t=prompt("Choose a name for the cloned template");t&&(e.onSaveTemplate(y(y({},e.template),{},{oldSlug:e.template.slug,slug:!1,name:t})),e.onChangeEditing(!0))}},"Clone & Edit Template"),i.createElement(v(),{text:JSON.stringify(e.template),onCopy:(e,t)=>{t?alert("The template has been copied to your clipboard."):alert("Something went wrong. Please contact support.")}},i.createElement("button",{className:"button"},"Export")),i.createElement("button",{className:"button",onClick:()=>{var t=prompt("Choose a new name for this template",e.template.name);t&&t!==e.template.name&&e.onSaveTemplate(y(y({},e.template),{},{name:t}))},disabled:!t},"Rename"),i.createElement("button",{className:"button",onClick:()=>{confirm('Are you sure you want to delete the "'+e.template.name+'" template?')&&e.onDeleteTemplate(e.template.slug)},disabled:!t},"Delete")))))};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}function S(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){C(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}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class E extends i.Component{constructor(e){super(e),this.state={type:!1}}render(){var e=this.props,t={"Our Default Templates":[],"Theme Templates":[],"Your Own Templates":[]};return!1!==this.state.type&&Object.entries(e.templates).forEach((e=>{var[n,r]=e;"file"===r.location?r.custom?this.state.type===r.type&&t["Theme Templates"].push(r):this.state.type===r.type&&t["Our Default Templates"].push(r):this.state.type===r.type&&t["Your Own Templates"].push(r)})),i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-main-container"},i.createElement("h2",{className:"wprm-main-container-name"},"Need help?"),i.createElement("p",{style:{textAlign:"center"}},"Have a look at the ",i.createElement("a",{href:"https://help.bootstrapped.ventures/article/53-template-editor",target:"_blank"},"documentation for the Template Editor"),"!")),i.createElement("div",{className:"wprm-main-container"},i.createElement("h2",{className:"wprm-main-container-name"},"Templates"),i.createElement("div",{className:"wprm-manage-templates-type-container"},[{id:"recipe",name:"Recipe Templates",description:"Used for the layout of the regular recipe box. This is what your recipes look like."},{id:"snippet",name:"Snippet Templates",description:"Used for the layout of the recipe snippets at the top of the post, like a jump to recipe button."},{id:"roundup",name:"Roundup Templates",description:"Used for the layout of the recipe roundup items that can be added to posts with lists of recipes."}].map(((t,n)=>i.createElement("div",{className:"wprm-manage-templates-type".concat(t.id===this.state.type?" wprm-manage-templates-type-selected":""),onClick:()=>{t.id!==this.state.type&&this.setState({type:t.id},(()=>{e.onChangeTemplate(!1)}))},key:n},i.createElement("div",{className:"wprm-manage-templates-type-name"},t.name),i.createElement("div",{className:"wprm-manage-templates-type-description"},t.description))))),i.createElement("div",{className:"wprm-manage-templates-type-container"},i.createElement("div",{className:"wprm-manage-templates-type".concat("import"===this.state.type?" wprm-manage-templates-type-selected":""),onClick:()=>{"import"!==this.state.type&&this.setState({type:"import"},(()=>{e.onChangeTemplate(!1)}))}},"Import template...")),"import"===this.state.type&&i.createElement("textarea",{className:"wprm-manage-templates-import",placeholder:"Paste in template to import",rows:"10",value:"",onChange:t=>{var n=t.target.value;if(n)try{var r=JSON.parse(n);this.setState({type:r.type},(()=>{e.onSaveTemplate(S(S({},r),{},{oldSlug:r.slug,slug:!1})),alert("The template has been imported.")}))}catch(t){alert("No valid template found.")}}}),Object.keys(t).map(((n,r)=>{var o=t[n];if(o.length>0)return i.createElement(i.Fragment,{key:r},i.createElement("h3",null,n),o.map(((t,n)=>{var r="wprm-manage-templates-template";return r+=e.template.slug===t.slug?" wprm-manage-templates-template-selected":"",r+=t.premium&&!wprm_admin.addons.premium?" wprm-manage-templates-template-premium":"",i.createElement("div",{key:n,className:r,onClick:()=>{var n=e.template.slug!==t.slug&&t.slug;return e.onChangeTemplate(n)}},t.name)})))}))),e.template&&e.template.type===this.state.type&&i.createElement(w,{onChangeEditing:e.onChangeEditing,template:e.template,onDeleteTemplate:e.onDeleteTemplate,onChangeTemplate:e.onChangeTemplate,savingTemplate:e.savingTemplate,onSaveTemplate:e.onSaveTemplate}))}}var M=n(35870),k=n.n(M);n(73773),n(31693);var T=e=>i.createElement("div",{className:"wprm-main-container"},i.createElement("h2",{className:"wprm-main-container-name"},"CSS"),i.createElement(k(),{className:"wprm-main-container-css",value:e.template.style.css,onChange:t=>e.onChangeValue(t),options:{lineNumbers:!0,mode:"css"}}));n(73773),n(75914);var L=e=>i.createElement("div",{className:"wprm-main-container"},i.createElement("h2",{className:"wprm-main-container-name"},"HTML"),i.createElement(k(),{className:"wprm-main-container-html",value:e.template.html,onChange:t=>e.onChangeValue(t),options:{lineNumbers:!0,mode:"xml",htmlMode:!0}})),O=e=>i.createElement(i.Fragment,null,"html"===e.mode&&i.createElement(L,{template:e.template,onChangeValue:e.onChangeHTML}),"css"===e.mode&&i.createElement(T,{template:e.template,onChangeValue:e.onChangeCSS})),P=n(720),N=e=>i.createElement("div",{id:"wprm-template-main",className:"wprm-template-main-".concat(e.mode)},"manage"===e.mode&&i.createElement(E,{templates:e.templates,template:e.template,onChangeEditing:e.onChangeEditing,onDeleteTemplate:e.onDeleteTemplate,onChangeTemplate:e.onChangeTemplate,savingTemplate:e.savingTemplate,onSaveTemplate:e.onSaveTemplate}),"manage"!==e.mode&&e.template&&i.createElement(O,{mode:e.mode,template:e.template,onChangeHTML:e.onChangeHTML,onChangeCSS:e.onChangeCSS}),e.template&&i.createElement(P.Z,{mode:e.mode,template:e.template,onChangeHTML:e.onChangeHTML,onChangeMode:e.onChangeMode}));function j(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}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class H extends i.Component{constructor(e){super(e),this.state={mode:"manage",editing:!1,templates:JSON.parse(JSON.stringify(wprm_admin_template.templates)),template:!1,savingTemplate:!1}}componentDidMount(){window.addEventListener("beforeunload",this.beforeWindowClose.bind(this))}componentWillUnmount(){window.removeEventListener("beforeunload",this.beforeWindowClose.bind(this))}beforeWindowClose(e){if(this.changesMade())return!1}changesMade(){return this.state.editing&&(this.state.template.html!==this.state.templates[this.state.template.slug].html||a.Z.parseCSS(this.state.template)!==a.Z.parseCSS(this.state.templates[this.state.template.slug]))}onChangeEditing(e){e!==this.state.editing&&(window.scrollTo(0,0),e?this.setState({editing:e,mode:"properties"}):this.setState({editing:e,mode:"manage"},(()=>{this.state.template&&this.onChangeTemplate(this.state.template.slug)})))}onChangeMode(e){e!==this.state.mode&&("html"!==e&&"html"!==this.state.mode&&"css"!==e&&"css"!==this.state.mode||window.scrollTo(0,0),this.setState({mode:e}))}onChangeTemplate(e){this.state.savingTemplate||(this.state.templates.hasOwnProperty(e)?this.setState({template:JSON.parse(JSON.stringify(this.state.templates[e]))}):this.setState({template:!1}))}onChangeTemplateProperty(e,t){if(t!==this.state.template.style.properties[e].value){var n=this.state;n.template.style.properties[e].value=t,this.setState(n)}}onChangeHTML(e){if(e!==this.state.template.html){var t=this.state;t.template.html=e,this.setState(t)}}onChangeCSS(e){if(e!==this.state.template.style.css){var t=this.state;t.template.style.css=e,this.setState(t)}}onDeleteTemplate(e){this.state.savingTemplate||(this.setState({savingTemplate:!0}),o.Z.template.delete(e).then((e=>{if(e){var t=this.state;t.savingTemplate=!1,t.template=!1,delete t.templates[e],this.setState(t)}else this.setState({savingTemplate:!1})})))}onSaveTemplate(e){if(!this.state.savingTemplate){this.setState({savingTemplate:!0});var t=D(D({},e),{},{css:a.Z.parseCSS(e)});o.Z.template.save(t).then((e=>{if(e){var t=e.slug,n=this.state;n.savingTemplate=!1,t&&(n.templates[t]=e),this.setState(n,(()=>{this.onChangeTemplate(t)}))}else this.setState({savingTemplate:!1})}))}}render(){return i.createElement("div",null,i.createElement(m,{mode:this.state.mode,editing:this.state.editing,changesMade:this.changesMade(),onChangeEditing:this.onChangeEditing.bind(this),savingTemplate:this.state.savingTemplate,onSaveTemplate:this.onSaveTemplate.bind(this),onChangeMode:this.onChangeMode.bind(this),templates:this.state.templates,template:this.state.template,onChangeTemplate:this.onChangeTemplate.bind(this),onChangeTemplateProperty:this.onChangeTemplateProperty.bind(this)}),i.createElement(N,{mode:this.state.mode,onChangeMode:this.onChangeMode.bind(this),editing:this.state.editing,onChangeEditing:this.onChangeEditing.bind(this),savingTemplate:this.state.savingTemplate,onDeleteTemplate:this.onDeleteTemplate.bind(this),onSaveTemplate:this.onSaveTemplate.bind(this),templates:this.state.templates,template:this.state.template,onChangeTemplate:this.onChangeTemplate.bind(this),onChangeHTML:this.onChangeHTML.bind(this),onChangeCSS:this.onChangeCSS.bind(this)}))}}var W,B=n(23362),z=n.n(B);window.WPRecipeMaker.jump={init:()=>{document.addEventListener("click",(function(e){for(var t=e.target;t&&t!=this;t=t.parentNode)if(t.matches(".wprm-jump-smooth-scroll")){WPRecipeMaker.jump.onClick(t,e);break}}),!1)},onClick:(e,t)=>{t.preventDefault();var n=e.getAttribute("href"),r=parseInt(e.dataset.smoothScroll);r<0&&(r=500),z()(document.querySelector(n),{verticalOffset:-100,speed:r})}},W=()=>{window.WPRecipeMaker.jump.init()},"loading"!=document.readyState?W():document.addEventListener("DOMContentLoaded",W);var _=document.getElementById("wprm-template");_&&r.render(i.createElement(H,null),_)},57573:function(e,t,n){"use strict";n(54883),n(72975),n(33290),n(19985),n(22321),n(68995);t.Z={parseCSS(e){var t=e.style.css;for(var n of Object.values(e.style.properties)){var r="";Object.entries(n).forEach((e=>{var[t,n]=e;["id","name","default","value","options"].includes(t)||(r=" ".concat(t,"=").concat(n))}));var i="".concat(n.value,"; /*wprm_").concat(n.id).concat(r,"*/");t=t.replace(new RegExp("%wprm_".concat(n.id,"%s*;"),"g"),i)}return t},getShortcodeName(e){var t=e.replace("wprm-","");return t=(t=t.replace(/-/g," ")).toLowerCase().replace(/\b[a-z]/g,(function(e){return e.toUpperCase()}))},getFullShortcode(e){var t="["+e.id;for(var n in e.attributes)if(e.attributes.hasOwnProperty(n)){var r=e.attributes[n];t+=" "+n+'="'+(r=(r=r.replace(/"/gm,""")).replace(/\]/gm,"]"))+'"'}return t+="]"},dependencyMet(e,t){var n=!0;if(t&&e.hasOwnProperty("dependency")){var r=e.dependency;Array.isArray(r)||(r=[r]);var i=e.hasOwnProperty("dependency_compare")?e.dependency_compare:"AND",o=!0;for(var a of r)if(t.hasOwnProperty(a.id)){var l=!1,s=t[a.id].value,u=a.hasOwnProperty("type")?a.type:"match";"inverse"==u?s!=a.value&&(l=!0):"includes"==u?s.includes(a.value)&&(l=!0):s==a.value&&(l=!0),"OR"===i?(o&&(n=!1,o=!1),n=n||l):n=n&&l}}return n}}},720:function(e,t,n){"use strict";n.d(t,{Z:function(){return L}});n(31807),n(54883),n(55281),n(75668),n(22321),n(68995);var r=n(89526),i=n(14264),o=n.n(i),a=n(57573),l=n(34133),s=(n(29897),n(98373)),u=n.n(s),c=n(99237),p=n(73961),d=e=>p.createPortal(e.children,document.getElementById("wprm-block-properties")),f=n(1703);function h(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}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class v extends r.Component{constructor(e){super(e),this.state={fullShortcode:"",html:"",loading:!1,blockMode:"edit"}}componentDidMount(){this.checkShortcodeChange()}componentDidUpdate(e){this.checkShortcodeChange(),e.recipeId!==this.props.recipeId&&this.updatePreview(),e.editingBlock!==this.props.editingBlock&&this.onChangeBlockMode("edit")}checkShortcodeChange(){var e=a.Z.getFullShortcode(this.props.shortcode);e!==this.state.fullShortcode&&this.setState({fullShortcode:e},this.updatePreview)}updatePreview(){this.setState({loading:!0}),c.Z.template.previewShortcode(this.props.shortcode.uid,this.state.fullShortcode,this.props.recipeId).then((e=>{this.setState({html:e.hasOwnProperty(this.props.shortcode.uid)?e[this.props.shortcode.uid]:"",loading:!1})}))}getBlockProperties(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.shortcode,t={},n=!!wprm_admin_template.shortcodes.hasOwnProperty(e.id)&&wprm_admin_template.shortcodes[e.id];return n&&Object.entries(n).forEach((n=>{var[r,i]=n;if(i.type){var o=i.name?i.name:r.replace(/_/g," ").toLowerCase().replace(/\b[a-z]/g,(function(e){return e.toUpperCase()})),a=e.attributes.hasOwnProperty(r)?e.attributes[r]:i.default;a=(a=a.replace(/"/gm,'"')).replace(/]/gm,"]"),t[r]=m(m({},i),{},{id:r,name:o,value:a})}})),t}onChangeBlockMode(e){e!==this.state.blockMode&&this.setState({blockMode:e})}onCopyPasteStyle(e,t){var n=this.getBlockProperties(this.props.shortcodes[e]),r=this.getBlockProperties(this.props.shortcodes[t]),i={};Object.entries(r).forEach((e=>{var[t,r]=e;n.hasOwnProperty(t)&&n[t].value!==r.value&&"icon"!==t&&"text"!==t&&"label"!==t&&"header"!==t&&n[t].type===r.type&&("dropdown"!==r.type||r.options.hasOwnProperty(n[t].value))&&(i[t]=n[t].value)})),Object.keys(i).length&&this.props.onBlockPropertiesChange(t,i)}render(){var e=this.getBlockProperties();return r.createElement(r.Fragment,null,this.state.loading?r.createElement(l.Z,null):r.createElement(r.Fragment,null,o()(this.state.html.trim(),{replace:function(e){if(!e.parent&&this.props.shortcode.uid===this.props.hoveringBlock)return e.attribs||(e.attribs={}),e.attribs.class=e.attribs.class?e.attribs.class+" wprm-template-block-hovering":"wprm-template-block-hovering",u()(e)}.bind(this)})),this.props.shortcode.uid===this.props.editingBlock?r.createElement(d,null,"edit"===this.state.blockMode&&r.createElement(r.Fragment,null,r.createElement("div",{className:"wprm-template-menu-block-details"},r.createElement("a",{href:"#",onClick:e=>(e.preventDefault(),this.props.onChangeEditingBlock(!1))},"Blocks")," > ",this.props.shortcode.name),r.createElement("div",{className:"wprm-template-menu-block-quick-edit"},r.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),this.onChangeBlockMode("copy")}},"Copy styles to...")," | ",r.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),this.onChangeBlockMode("paste")}},"Paste styles from...")),Object.values(e).map(((t,n)=>r.createElement(f.Z,{properties:e,property:t,onPropertyChange:(e,t)=>this.props.onBlockPropertyChange(this.props.shortcode.uid,e,t),key:n}))),!Object.keys(e).length&&r.createElement("p",null,"There are no adjustable properties for this block.")),("copy"===this.state.blockMode||"paste"===this.state.blockMode)&&r.createElement(r.Fragment,null,r.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),this.onChangeBlockMode("edit")}},"Stop"),r.createElement("p",null,"copy"===this.state.blockMode?"Copy styles to:":"Paste styles from:"),this.props.shortcodes.map(((e,t)=>e.uid===this.props.shortcode.uid?r.createElement("div",{key:t,className:"wprm-template-menu-block wprm-template-menu-block-self"},"copy"===this.state.blockMode?"Copying from":"Pasting to"," ",e.name):r.createElement("div",{key:t,className:e.uid===this.props.hoveringBlock?"wprm-template-menu-block wprm-template-menu-block-hover":"wprm-template-menu-block",onClick:()=>{var t="copy"===this.state.blockMode?this.props.shortcode.uid:e.uid,n="copy"===this.state.blockMode?e.uid:this.props.shortcode.uid;this.onCopyPasteStyle(t,n)},onMouseEnter:()=>this.props.onChangeHoveringBlock(e.uid),onMouseLeave:()=>this.props.onChangeHoveringBlock(!1)},e.name))))):null)}}var b=e=>p.createPortal(e.children,document.getElementById("wprm-add-blocks")),y=e=>p.createPortal(e.children,document.getElementById("wprm-remove-blocks")),x=(n(35054),n(45624));class w extends r.Component{getOptions(e){return e?c.Z.template.searchRecipes(e).then((e=>e.data.recipes_with_id)):Promise.resolve({options:[]})}render(){return r.createElement(x.ZP,{className:"wprm-main-container-preview-recipe",placeholder:"Select or search a recipe to preview",value:this.props.recipe,onChange:this.props.onRecipeChange,getOptionValue:e=>{var{id:t}=e;return t},getOptionLabel:e=>{var{text:t}=e;return t},defaultOptions:wprm_admin.latest_recipes,loadOptions:this.getOptions.bind(this),noOptionsMessage:()=>"Create a recipe on the Manage page",clearable:!1})}}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}function S(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){C(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}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=["wprm-spacer","wprm-text","wprm-link","wprm-image","wprm-call-to-action","wprm-icon","wprm-prevent-sleep"],M=[],k=Object.keys(wprm_admin_template.shortcodes).sort();for(var T of k)E.includes(T)||M.push(T);class L extends r.Component{constructor(e){super(e);var t=wprm_admin_template.preview_recipe;"demo"!==t&&0!==t.id||(t={id:"demo",text:"Use WPRM Demo Recipe"}),this.state={recipe:t,width:600,html:"",htmlMap:"",parsedHtml:"",shortcodes:[],editingBlock:!1,addingBlock:!1,hoveringBlock:!1,hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}componentDidMount(){this.checkHtmlChange()}componentDidUpdate(e){"blocks"===this.props.mode&&this.props.mode!==e.mode?this.onChangeEditingBlock(!1):this.checkHtmlChange()}checkHtmlChange(){this.props.template.html!==this.state.html&&this.changeHtml()}changeHtml(){var e=this.parseHtml(this.props.template.html);this.setState({html:this.props.template.html,htmlMap:e.htmlMap,parsedHtml:e.html,shortcodes:e.shortcodes,hasError:!1})}parseHtml(e){for(var t,n=e,i=[],s=/\[([^\s\]]*)\s*([^\]]*?)\]/gim;null!==(t=s.exec(e));){var u={},c=t[2].match(/(\w+=\"[^\"]*?\"|\w+=\'[^\']*?\'|\w+=\w*)/gim);if(c)for(var p=0;p<c.length;p++){var d=c[p],f=d.substring(0,d.indexOf("=")),h=d.substring(d.indexOf("=")+1);'"'!==h[0]&&"'"!==h[0]||(h=h.substr(1,h.length-2)),u[f]=h}var m=t[1],g=a.Z.getShortcodeName(m),b=i.length;n=n.replace(t[0],'<wprm-replace-shortcode-with-block uid="'+b+'"></wprm-replace-shortcode-with-block>'),i.push({uid:b,id:m,name:g,attributes:u})}var y=r.createElement(l.Z,null);try{y=o()(n,{replace:function(e){if("wprm-replace-shortcode-with-block"==e.name){var t=!!this.state.recipe&&this.state.recipe.id;return r.createElement(v,{recipeId:t,shortcode:i[e.attribs.uid],shortcodes:i,onBlockPropertyChange:this.onBlockPropertyChange.bind(this),onBlockPropertiesChange:this.onBlockPropertiesChange.bind(this),editingBlock:this.state.editingBlock,onChangeEditingBlock:this.onChangeEditingBlock.bind(this),hoveringBlock:this.state.hoveringBlock,onChangeHoveringBlock:this.onChangeHoveringBlock.bind(this)})}}.bind(this)})}catch(x){}return{htmlMap:n,html:y,shortcodes:i}}unparseHtml(){var e=this.state.htmlMap;for(var t of this.state.shortcodes){var n=a.Z.getFullShortcode(t);e=e.replace('<wprm-replace-shortcode-with-block uid="'+t.uid+'"></wprm-replace-shortcode-with-block>',n)}return e}onBlockPropertyChange(e,t,n){var r={};r[t]=n,this.onBlockPropertiesChange(e,r)}onBlockPropertiesChange(e,t){var n=this.state;n.shortcodes[e].attributes=S(S({},n.shortcodes[e].attributes),t),this.setState(n,(()=>{var e=this.unparseHtml();this.props.onChangeHTML(e)}))}onChangeEditingBlock(e){e!==this.state.editingBlock&&this.setState({editingBlock:e,hoveringBlock:!1},this.changeHtml)}onChangeHoveringBlock(e){e!==this.state.hoveringBlock&&this.setState({hoveringBlock:e},this.changeHtml)}onChangeAddingBlock(e){e!==this.state.addingBlock&&this.setState({addingBlock:e})}onAddBlockAfter(e){var t=this.state.htmlMap,n="["+this.state.addingBlock+"]",r='<wprm-replace-shortcode-with-block uid="'+e+'"></wprm-replace-shortcode-with-block>';(t=t.replace(r,r+"\n"+n))!==this.state.htmlMap&&this.setState({addingBlock:!1,hoveringBlock:!1,htmlMap:t},(()=>{var t=this.unparseHtml();this.props.onChangeHTML(t),this.props.onChangeMode("blocks"),this.setState({addingBlock:!1,hoveringBlock:!1},(()=>{this.onChangeEditingBlock(e+1)}))}))}onRemoveBlock(e){var t=this.state.htmlMap;(t=t.replace('<wprm-replace-shortcode-with-block uid="'+e+'"></wprm-replace-shortcode-with-block>',""))!==this.state.htmlMap&&this.setState({htmlMap:t},(()=>{var e=this.unparseHtml();this.props.onChangeHTML(e)}))}render(){var e=this.state.hasError?r.createElement(l.Z,null):this.state.parsedHtml;return"onboarding"===this.props.mode?r.createElement(r.Fragment,null,r.createElement("style",null,a.Z.parseCSS(this.props.template)),"recipe"===this.props.template.type&&r.createElement("div",{className:"wprm-recipe wprm-recipe-template-".concat(this.props.template.slug)},e),"snippet"===this.props.template.type&&r.createElement("div",{className:"wprm-recipe wprm-recipe-snippet wprm-recipe-template-".concat(this.props.template.slug)},e)):r.createElement(r.Fragment,null,r.createElement("div",{className:"wprm-main-container"},r.createElement("h2",{className:"wprm-main-container-name"},"Preview at ",r.createElement("input",{type:"number",min:"1",value:this.state.width,onChange:e=>{this.setState({width:e.target.value})}}),"px"),r.createElement("div",{className:"wprm-main-container-preview"},r.createElement(w,{recipe:this.state.recipe,onRecipeChange:e=>{e!==this.state.recipe&&this.setState({recipe:e,html:""})}}),this.state.recipe&&this.state.recipe.id?r.createElement("div",{className:"wprm-main-container-preview-content",style:{width:"".concat(this.state.width,"px")}},r.createElement("style",null,a.Z.parseCSS(this.props.template)),"recipe"===this.props.template.type&&r.createElement(r.Fragment,null,r.createElement("p",null,"This is an example paragraph that could be appearing before the recipe box, just to give some context to this preview. After this paragraph the recipe box will appear."),r.createElement("div",{className:"wprm-recipe wprm-recipe-template-".concat(this.props.template.slug)},e),r.createElement("p",null,"This is a paragraph appearing after the recipe box.")),"snippet"===this.props.template.type&&r.createElement(r.Fragment,null,r.createElement("p",null," "),r.createElement("div",{className:"wprm-recipe wprm-recipe-snippet wprm-recipe-template-".concat(this.props.template.slug)},e),r.createElement("p",null,"This would be the start of your post content, as the recipe snippets should automatically appear above. We'll be adding some example content below to give you a realistic preview."),r.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit. In eleifend vitae nisl et pharetra. Sed euismod nisi convallis arcu lobortis commodo. Mauris nec arcu blandit, ultrices nisi sit amet, scelerisque tortor. Mauris vitae odio sed nisl posuere feugiat eu sit amet nunc. Vivamus varius rutrum tortor, ut viverra mi. Pellentesque sed justo eget lectus eleifend consectetur. Curabitur hendrerit purus velit, ut auctor orci fringilla sed. Phasellus commodo luctus nulla, et rutrum risus lobortis in. Aenean ullamcorper, magna congue viverra consequat, libero elit blandit magna, in ultricies quam risus et magna. Aenean viverra lorem leo, eget laoreet quam suscipit viverra. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Quisque sodales dolor mauris. Ut sed tempus erat. Nulla metus diam, luctus ac erat bibendum, placerat maximus nisi. Nullam hendrerit eleifend lobortis."),r.createElement("p",null,"Proin tempus hendrerit orci, tincidunt bibendum justo tincidunt vel. Morbi porttitor finibus magna non imperdiet. Fusce sollicitudin ex auctor interdum ultricies. Proin efficitur eleifend lacus, dapibus eleifend nibh tempus at. Pellentesque feugiat imperdiet turpis, sed consequat diam tincidunt a. Mauris mollis justo nec tellus aliquam, efficitur scelerisque nunc semper. Morbi rhoncus ultricies congue. Sed semper aliquet interdum."),r.createElement("p",null,"Nam ultricies, tellus nec vulputate varius, ligula ipsum viverra libero, lacinia ultrices sapien erat id mi. Duis vel dignissim lectus. Aliquam vehicula finibus tortor, cursus fringilla leo sodales ut. Vestibulum nec erat pretium, finibus odio et, porta lorem. Nunc in mi lobortis, aliquet sem sollicitudin, accumsan mi. Nam pretium nibh nunc, vel varius ex sagittis at. Vestibulum ac turpis vitae dui congue iaculis et non massa. Duis sed gravida nunc. Vivamus blandit dapibus orci, eu maximus velit faucibus eu."),r.createElement("div",{id:"wprm-recipe-container-".concat(this.state.recipe.id),className:"wprm-preview-snippet-recipe-box"},r.createElement("p",null,"This is an example recipe box."),r.createElement("p",{id:"wprm-recipe-video-container-".concat(this.state.recipe.id)},"It includes an example video.")),r.createElement("p",null,"Some more random content could be appearing after the recipe box. Morbi dignissim euismod vestibulum. Interdum et malesuada fames ac ante ipsum primis in faucibus. Vestibulum eu faucibus lectus. Donec sit amet mattis erat, at vulputate elit. Morbi ullamcorper, justo nec porttitor porta, dui lectus euismod est, convallis tempor lorem elit nec leo. Praesent hendrerit auctor risus sed mollis. Integer suscipit arcu at risus efficitur, et interdum arcu fringilla. Aliquam mollis accumsan blandit. Nam vestibulum urna id velit scelerisque, eu commodo urna imperdiet. Mauris sed risus libero. Integer lacinia nec lectus in posuere. Sed feugiat dolor eros, ac scelerisque tellus hendrerit sit amet. Sed nisl lacus, condimentum id orci eu, malesuada mattis sem. Quisque ipsum velit, viverra et magna a, laoreet porta lorem. Praesent porttitor lorem quis quam lobortis, lacinia tincidunt odio sodales.")),"roundup"===this.props.template.type&&r.createElement(r.Fragment,null,r.createElement("h2",null,"Our first recipe"),r.createElement("p",null,"This is the first example recipe in this recipe roundup. We can have as much information and images as we want here and then end with the roundup template for this particular recipe."),r.createElement("div",{className:"wprm-recipe wprm-recipe-roundup-item wprm-recipe-template-".concat(this.props.template.slug)},e),r.createElement("h2",null,"Our second recipe"),r.createElement("p",null,"A roundup would have multiple recipes, so here is another one with some more demo text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. In eleifend vitae nisl et pharetra. Sed euismod nisi convallis arcu lobortis commodo."),r.createElement("p",null,"..."))):r.createElement("p",{style:{color:"darkred",textAlign:"center"}},"You have to select a recipe to preview the template. Use the dropdown above or set a default recipe to use for the preview on the settings page."))),!1===this.state.editingBlock||this.state.shortcodes.length<=this.state.editingBlock?r.createElement(d,null,this.state.shortcodes.map(((e,t)=>r.createElement("div",{key:t,className:e.uid===this.state.hoveringBlock?"wprm-template-menu-block wprm-template-menu-block-hover":"wprm-template-menu-block",onClick:()=>this.onChangeEditingBlock(e.uid),onMouseEnter:()=>this.onChangeHoveringBlock(e.uid),onMouseLeave:()=>this.onChangeHoveringBlock(!1)},e.name))),!this.state.shortcodes.length&&r.createElement("p",null,"There are no adjustable blocks.")):null,r.createElement(b,null,this.state.addingBlock?r.createElement(r.Fragment,null,r.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),this.onChangeAddingBlock(!1)}},"Cancel"),r.createElement("p",null,'Add "',a.Z.getShortcodeName(this.state.addingBlock),'" after:'),this.state.shortcodes.map(((e,t)=>r.createElement("div",{key:t,className:e.uid===this.state.hoveringBlock?"wprm-template-menu-block wprm-template-menu-block-hover":"wprm-template-menu-block",onClick:()=>this.onAddBlockAfter(e.uid),onMouseEnter:()=>this.onChangeHoveringBlock(e.uid),onMouseLeave:()=>this.onChangeHoveringBlock(!1)},e.name))),!this.state.shortcodes.length&&r.createElement("p",null,"There are no blocks in the Template.")):r.createElement(r.Fragment,null,r.createElement("p",null,"Select block to add:"),r.createElement("div",{className:"wprm-template-menu-add-block-group"},"General Blocks"),E.map(((e,t)=>r.createElement("div",{key:t,className:"wprm-template-menu-block",onClick:()=>this.onChangeAddingBlock(e)},a.Z.getShortcodeName(e)))),r.createElement("div",{className:"wprm-template-menu-add-block-group"},"Recipe Blocks"),M.map(((e,t)=>r.createElement("div",{key:t,className:"wprm-template-menu-block",onClick:()=>this.onChangeAddingBlock(e)},a.Z.getShortcodeName(e)))))),r.createElement(y,null,this.state.shortcodes.map(((e,t)=>r.createElement("div",{key:t,className:e.uid===this.state.hoveringBlock?"wprm-template-menu-block wprm-template-menu-block-hover":"wprm-template-menu-block",onClick:()=>{confirm('Are you sure you want to delete the "'+e.name+'" block?')&&this.onRemoveBlock(e.uid)},onMouseEnter:()=>this.onChangeHoveringBlock(e.uid),onMouseLeave:()=>this.onChangeHoveringBlock(!1)},e.name))),!this.state.shortcodes.length&&r.createElement("p",null,"There are no blocks to remove.")))}}},1703:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(89526),i=n(76044),o=n(57573),a=n(29790),l=n(8612);class s extends r.Component{constructor(e){super(e),this.state={displayColorPicker:!1}}handleClick(){this.setState({displayColorPicker:!this.state.displayColorPicker})}handleClose(){this.setState({displayColorPicker:!1})}handleChange(e){this.props.onValueChange(e.hex)}render(){var e=(0,a.default)({default:{color:{width:"36px",height:"14px",borderRadius:"2px",background:"".concat(this.props.value)},swatch:{padding:"5px",background:"#fff",borderRadius:"1px",boxShadow:"0 0 0 1px rgba(0,0,0,.1)",display:"inline-block",cursor:"pointer"},popover:{position:"absolute",zIndex:"2",right:"0",bottom:"30px"},cover:{position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}}});return r.createElement("div",{className:"wprm-template-property-input"},r.createElement("div",{style:e.swatch,onClick:this.handleClick.bind(this)},r.createElement("div",{style:e.color})),this.state.displayColorPicker?r.createElement("div",{style:e.popover},r.createElement("div",{style:e.cover,onClick:this.handleClose.bind(this)}),r.createElement(l.xS,{color:this.props.value,onChange:this.handleChange.bind(this),disableAlpha:!0})):null)}}var u=n(844),c=e=>{var t=[];for(var n in e.property.options)t.push({value:n,label:e.property.options[n]});return r.createElement(u.ZP,{className:"wprm-template-property-input",menuPlacement:"top",value:t.filter((t=>{var{value:n}=t;return n===e.value})),onChange:t=>e.onValueChange(t.value),options:t,clearable:!1})};n(19985);function p(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}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=e=>{var t=[{label:"General",options:[{value:"custom",label:"Set custom font"},{value:"inherit",label:"Inherit from parent"},{value:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif',label:"System Font"}]},{label:"Default Serif Fonts",options:[{value:"Georgia, serif",label:"Georgia"},{value:'"Palatino Linotype", "Book Antiqua", Palatino, serif',label:"Palatino"},{value:'"Times New Roman", Times, serif',label:"Times New Roman"}]},{label:"Default Sans-Serif Fonts",options:[{value:"Arial, Helvetica, sans-serif",label:"Arial"},{value:'"Arial Black", Gadget, sans-serif',label:"Arial Black"},{value:'"Comic Sans MS", cursive, sans-serif',label:"Comic Sans MS"},{value:"Helvetica, sans-serif",label:"Helvetica"},{value:"Impact, Charcoal, sans-serif",label:"Impact"},{value:'"Lucida Sans Unicode", "Lucida Grande", sans-serif',label:"Lucida"},{value:"Tahoma, Geneva, sans-serif",label:"Tahoma"},{value:'"Trebuchet MS", Helvetica, sans-serif',label:"Trebuchet MS"},{value:"Verdana, Geneva, sans-serif",label:"Verdana"}]},{label:"Default Monospace Fonts",options:[{value:'"Courier New", Courier, monospace',label:"Courier New"},{value:'"Lucida Console", Monaco, monospace',label:"Lucida Console"}]}],n=t.reduce(((e,t)=>e.concat(t.options)),[]),i=n.map((e=>e.value)),o=!e.value||!i.includes(e.value),a=o?"custom":e.value,l={option:(e,t)=>{var{data:n,isDisabled:r,isFocused:i,isSelected:o}=t,a="custom"===n.value?"inherit":n.value;return d(d({},e),{},{fontFamily:a})}};return r.createElement(r.Fragment,null,r.createElement(u.ZP,{className:"wprm-template-property-input",menuPlacement:"top",value:n.filter((e=>{var{value:t}=e;return t===a})),onChange:t=>{var n="custom"===t.value?"":t.value;return e.onValueChange(n)},options:t,styles:l,clearable:!1}),o&&r.createElement("input",{className:"wprm-template-property-input",type:"text",value:e.value,onChange:t=>e.onValueChange(t.target.value)}))},m=(n(55281),n(49092));class g extends r.Component{constructor(e){super(e),this.state={selectingIcon:!1}}render(){var e=wprm_admin_template.icons.hasOwnProperty(this.props.value)?wprm_admin_template.icons[this.props.value].url:this.props.value;return r.createElement(r.Fragment,null,this.state.selectingIcon?r.createElement("div",{className:"wprm-template-property-icon-select-container"},r.createElement("a",{href:"#",onClick:e=>(e.preventDefault(),this.setState({selectingIcon:!1}),this.props.onValueChange(""))},"Clear icon")," | ",r.createElement("a",{href:"#",onClick:e=>{e.preventDefault();var t=prompt("Set a custom URL for the icon");if(t)return this.setState({selectingIcon:!1}),this.props.onValueChange(t)}},"Set custom URL")," | Select:",r.createElement("div",{className:"wprm-template-property-icon-select-container-icons"},Object.keys(wprm_admin_template.icons).sort().map(((e,t)=>{var n=wprm_admin_template.icons[e];return r.createElement("span",{href:"#",onClick:()=>{if(this.setState({selectingIcon:!1}),n.id!==this.props.value)return this.props.onValueChange(n.id)},key:t},r.createElement(m.Z,{src:n.url,className:n.id===this.props.value?"wprm-template-property-icon-select wprm-template-property-icon-selected":"wprm-template-property-icon-select"}))})))):r.createElement("span",{className:"wprm-template-property-icon-selected-container"},e&&r.createElement(m.Z,{src:e,className:"wprm-template-property-icon-select"}),r.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),this.setState({selectingIcon:!0})}},e?"Change...":"Select...")))}}var v=n(5308),b=e=>{var t=0<parseInt(e.value);return r.createElement("a",{href:"#",onClick:t=>{t.preventDefault(),v.Z.selectImage((t=>{e.onValueChange(""+t.id)}))}},t?"Change...":"Select...")},y=(n(31807),n(54883),n(68995),Array.isArray(wprm_admin_template.thumbnail_sizes)?wprm_admin_template.thumbnail_sizes:Object.values(wprm_admin_template.thumbnail_sizes));class x extends r.Component{constructor(e){super(e),this.state={width:"",height:""}}componentDidMount(){this.checkSize()}componentDidUpdate(){this.checkSize()}checkSize(){var e=this.props.value;if(""!==e){var t=e.indexOf("x"),n=t>0?parseInt(e.substr(0,t)):0,r=t>0?parseInt(e.substr(t+1)):0;r=0<r?r:"",(n=0<n?n:"")===this.state.width&&r===this.state.height||this.setState({width:n,height:r})}}changeSize(e,t){if("width"===e||"height"===e){var n=this.state;n[e]=parseInt(t),this.setState(n,(()=>{(0<this.state.width||0<this.state.height)&&this.props.onValueChange("".concat(this.state.width,"x").concat(this.state.height))}))}}render(){var e=[];for(var t of y)e.push({value:t,label:t});return r.createElement(r.Fragment,null,r.createElement("label",null,"Select existing thumbnail size:"),r.createElement(u.ZP,{className:"wprm-template-property-input",menuPlacement:"top",value:y.includes(this.props.value)?e.filter((e=>{var{value:t}=e;return t===this.props.value})):"",onChange:e=>e?this.props.onValueChange(e.value):this.props.onValueChange(""),options:e,clearable:!0}),r.createElement("label",null,"...or set a specific width and height:"),r.createElement("div",{className:"wprm-template-property-input-width-height"},r.createElement("input",{className:"wprm-template-property-input",type:"number",value:this.state.width,onChange:e=>this.changeSize("width",e.target.value)})," x ",r.createElement("input",{className:"wprm-template-property-input",type:"number",value:this.state.height,onChange:e=>this.changeSize("height",e.target.value)})))}}var w=e=>{var t={};return e.property.hasOwnProperty("color")&&(t.color=e.property.color),r.createElement("div",{className:"wprm-template-property-info",style:t},e.property.text)},I=(n(22321),e=>{var t=e.property.hasOwnProperty("suffix")?e.property.suffix:"",n=t?e.value.replace(t,""):e.value;return r.createElement(r.Fragment,null,r.createElement("input",{className:"wprm-template-property-input",type:"number",value:n,onChange:n=>{var r="".concat(n.target.value).concat(t);return e.onValueChange(r)}}),t&&r.createElement("span",{className:"wprm-template-property-number-suffix"}," ",t))});n(75668);class S extends r.Component{constructor(e){super(e),this.state={number:"",unit:""}}changeNumber(e){e!==this.state.number&&this.props.onValueChange("".concat(e).concat(this.state.unit))}changeUnit(e){e!==this.state.unit&&this.props.onValueChange("".concat(this.state.number).concat(e))}componentDidMount(){this.checkNumber()}componentDidUpdate(){this.checkNumber()}checkNumber(){var e=this.props.value.match(/([+-]?\d*\.?\d*)\s*([^;]*)/),t=e?e[1]:"",n=e?e[2]:"";t===this.state.number&&n===this.state.unit||this.setState({number:t,unit:n})}render(){var e=["px","em"];return this.state.unit&&!e.includes(this.state.unit)&&e.push(this.state.unit),r.createElement(r.Fragment,null,r.createElement("input",{className:"wprm-template-property-input",type:"number",step:"px"===this.state.unit?"1":"0.1",value:this.state.number,onChange:e=>this.changeNumber(e.target.value)}),e.map(((e,t)=>r.createElement("span",{className:e===this.state.unit?"wprm-template-property-value-size-unit wprm-template-property-value-size-unit-selected":"wprm-template-property-value-size-unit",onClick:()=>this.changeUnit(e),key:t},e))))}}var C=e=>r.createElement("input",{className:"wprm-template-property-input",type:"text",value:e.value,onChange:t=>e.onValueChange(t.target.value)}),E=n(67127),M={color:s,align:c,border:c,dropdown:c,float:c,font:h,font_size:S,icon:g,image:b,image_size:x,info:w,percentage:I,number:I,size:S,text:C,toggle:e=>r.createElement(E.Z,{className:"wprm-template-property-input",checked:"1"===e.value,onChange:t=>{var n=t.target.checked?"1":"0";return e.onValueChange(n)}})},k=e=>{var t=!!M.hasOwnProperty(e.property.type)&&M[e.property.type];if(!t)return null;if(!o.Z.dependencyMet(e.property,e.properties))return null;var n=null;return e.property.hasOwnProperty("help")&&(n=r.createElement(i.Z,{type:"question",title:e.property.help,className:"wprm-admin-icon-help"})),r.createElement("div",{className:"wprm-template-property"},"info"===e.property.type?r.createElement(t,{property:e.property}):r.createElement(r.Fragment,null,r.createElement("div",{className:"wprm-template-property-label"},e.property.name," ",n),r.createElement("div",{className:"wprm-template-property-value wprm-template-property-value-".concat(e.property.type)},r.createElement(t,{property:e.property,value:e.property.value,onValueChange:t=>{e.onPropertyChange(e.property.id,t)}}))))}},99237:function(e,t,n){"use strict";n.d(t,{Z:function(){return F}});var r=n(46087),i=wprm_admin.endpoints.analytics,o={delete:e=>r.Z.call("".concat(i,"/").concat(e),"DELETE")};function a(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}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=wprm_admin.endpoints.custom_taxonomies,u={save(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t),i=e?"PUT":"POST";return r.Z.call(s,i,n)}},c=wprm_admin.endpoints.dashboard,p={getAnalytics:()=>r.Z.call("".concat(c,"/analytics"))},d=wprm_admin.endpoints.notices,f={dismissNotice(e){var t={id:e};return r.Z.call(d,"DELETE",t)}},h=wprm_admin.endpoints.modal,m={parseIngredients(e){var t={ingredients:e};return r.Z.call("".concat(h,"/ingredient/parse"),"POST",t)}},g=(n(35054),wprm_admin.endpoints.manage),v=wprm_admin.endpoints.rating,b=wprm_admin.endpoints.taxonomy,y=!1,x=!1,w={getData(e){return y?(x=e,new Promise((e=>e(!1)))):this.getDataDebounced(e)},getDataDebounced(e){return y=!0,r.Z.call("".concat(g,"/").concat(e.route),"POST",e).then((e=>{if(x){var t=x;return x=!1,this.getDataDebounced(t)}return y=!1,e}))},deleteUserRatings:e=>r.Z.call("".concat(v,"/recipe/").concat(e),"DELETE"),getTerm:(e,t)=>r.Z.call("".concat(b).concat(e,"/").concat(t)),createTerm(e,t){var n={name:t};return r.Z.call("".concat(b).concat(e),"POST",n)},deleteTerm:(e,t)=>r.Z.call("".concat(b).concat(e,"/").concat(t,"?force=true"),"DELETE"),renameTerm(e,t,n){var i={name:n};return r.Z.call("".concat(b).concat(e,"/").concat(t),"POST",i)},changeTermSlug(e,t,n){var i={slug:n};return r.Z.call("".concat(b).concat(e,"/").concat(t),"POST",i)},renameTermLabel(e,t,n){var i={type:e,id:t,label:n};return r.Z.call("".concat(g,"/taxonomy/label"),"POST",i)},mergeTerm(e,t,n){var i={type:e,oldId:t,newId:n};return r.Z.call("".concat(g,"/taxonomy/merge"),"POST",i)},updateTaxonomyMeta(e,t,n){var i={};return i[e]=n,r.Z.call("".concat(b).concat(e,"/").concat(t),"POST",i)},bulkEdit(e,t,n,i){var o={type:t,ids:n,action:i};return r.Z.call("".concat(g,"/").concat(e,"/bulk"),"POST",o)}},I=wprm_admin.endpoints.modal,S=!1,C=!1,E=!1,M={getSuggestions(e){return S?(E=e,new Promise((e=>e(!1)))):this.getSuggestionsDebounced(e)},getSuggestionsDebounced(e){S=!0;var t=Date.now();return!1!==C&&500>t-C?new Promise((n=>{setTimeout((()=>{n(this.getSuggestionsDebounced(e))}),t-C)})):(C=t,r.Z.call("".concat(I,"/suggest"),"POST",e).then((e=>{if(E){var t=E;return E=!1,this.getSuggestionsDebounced(t)}return S=!1,e})))}},k=wprm_admin.endpoints.rating,T={update(e){var t={rating:e};return r.Z.call("".concat(k),"POST",t)},updateComment(e,t){var n={rating:t};return r.Z.call("".concat(k,"/comment/").concat(e),"POST",n)},delete:e=>r.Z.call("".concat(k,"/").concat(e),"DELETE")},L=wprm_admin.endpoints.recipe,O=wprm_admin.endpoints.manage,P={get:e=>r.Z.call("".concat(L,"/").concat(e,"?t=").concat(Date.now())),save(e){var t={recipe:e},n=L,i="POST",o=!!e.id&&parseInt(e.id);return o&&(n+="/".concat(o),i="PUT"),r.Z.call(n,i,t)},updateStatus(e,t){var n={status:t};return r.Z.call("".concat(L,"/").concat(e),"PUT",n)},delete(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n="".concat(L,"/").concat(e);return t&&(n+="?force=true"),r.Z.call(n,"DELETE")},deleteRevision:e=>r.Z.call("".concat(O,"/revision/").concat(e),"DELETE")},N=wprm_admin.endpoints.setting,j={save(e){var t={settings:e};return r.Z.call(N,"POST",t)}},D=wprm_admin.endpoints.template,A=[],H={},W=null,B={previewShortcode(e,t,n){return H[e]=t,clearTimeout(W),W=setTimeout((()=>{this.previewShortcodes(n)}),500),new Promise((e=>A.push(e)))},previewShortcodes(e){var t=A,n=H;A=[],H={};var r={recipeId:e,shortcodes:n};fetch("".concat(D,"/preview"),{method:"POST",headers:{"X-WP-Nonce":wprm_admin.api_nonce,Accept:"application/json","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(r)}).then((e=>e.json().then((n=>{var r=e.ok?n.preview:{};t.forEach((e=>e(r)))}))))},searchRecipes:e=>fetch(wprm_admin.ajax_url,{method:"POST",credentials:"same-origin",body:"action=wprm_search_recipes&security="+wprm_admin.nonce+"&search="+encodeURIComponent(e),headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}}).then((e=>e.json())),save(e){var t={template:e};return r.Z.call(D,"POST",t)},delete(e){var t={slug:e};return r.Z.call(D,"DELETE",t)}},z=wprm_admin.endpoints.utilities,_={saveImage(e){var t={url:e};return r.Z.call("".concat(z,"/save_image"),"POST",t)},giveFeedback(e){var t={feedback:e};return r.Z.call("".concat(z,"/feedback"),"POST",t)}},{hooks:R}=WPRecipeMaker["wp-recipe-maker/dist/shared"],F=R.applyFilters("api",{analytics:o,customTaxonomy:u,dashboard:p,general:f,import:m,manage:w,modal:M,rating:T,recipe:P,settings:j,template:B,utilities:_})},46087:function(e,t,n){"use strict";n(31807),n(35054),n(22321);function r(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function l(e){r(a,i,o,l,s,"next",e)}function s(e){r(a,i,o,l,s,"throw",e)}l(void 0)}))}}function o(){return(o=i((function*(e,t,n){console.log(e,t),console.log(n);var r="",i=parseInt(n.status),o=!1;300<=i&&i<=399?o="A redirection is breaking the API endpoint. Are any redirections set up in the .htaccess file or using a plugin?":401===i||403===i?o="Something is blocking access. Are you or your webhost using a firewall like Cloudflare WAF or Sucuri? Try whitelisting your own IP address or this specific action.":404===i?o="The rest API endpoint could not be found. Are your permalinks set up correctly?":500<=i&&i<=599&&(o="The server is throwing an error. It could be hitting a memory or execution limit. Check with your webhost what the exact error is in the logs."),o&&(r+="".concat(o,"\r\n\r\n")),r+="Press OK to contact support@bootstrapped.ventures for support (opens an email popup).";var a="".concat(n.url," ").concat(n.redirected?"(redirected)":"","- ").concat(n.status," - ").concat(n.statusText);r+="\r\n\r\n".concat(a);var l=!0;try{yield n.text().then((e=>{console.log(e),-1!==e.indexOf("rest_cookie_invalid_nonce")?(alert("You got logged out or your session expired. Please try logging out of WordPress and back in again."),l=!1):r+="\r\n\r\n".concat(e)}))}catch(u){console.log(u),r+="\r\n\r\n".concat(u)}if(l&&confirm(r)){var s="I received the error message below at ".concat(window.location.href,"\r\n\r\n").concat(r);window.open("mailto:".concat(encodeURIComponent("support@bootstrapped.ventures"),"?subject=").concat(encodeURIComponent("WP Recipe Maker Error Message"),"&body=").concat(encodeURIComponent(s)))}}))).apply(this,arguments)}t.Z={call(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=wprm_admin.api_nonce;"object"==typeof window.wpApiSettings&&window.wpApiSettings.nonce&&(r=window.wpApiSettings.nonce);var i={method:t,headers:{"X-WP-Nonce":r,Accept:"application/json","Content-Type":"application/json","Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:0},credentials:"same-origin"};"PUT"!==t&&"DELETE"!==t||(i.method="POST",i.headers["X-HTTP-Method-Override"]=t),n&&(i.body=JSON.stringify(n));var a=0;return e=e.replace(/\?/g,(function(e){return 2<=++a?"&":e})),fetch(e,i).then((function(t){return t.ok?t.json():(function(e,t,n){o.apply(this,arguments)}(e,i,t),!1)}))}}},76044:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(89526),i=n(49092),o=n(95075),a={adjustable:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PGxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjEyLjUiIHkxPSIxMi41IiB4Mj0iMTUuNSIgeTI9IjEyLjUiPjwvbGluZT4gPGxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjAuNSIgeTE9IjMuNSIgeDI9IjMuNSIgeTI9IjMuNSI+PC9saW5lPiA8bGluZSBma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