geno/wp-content/plugins/elementor/assets/js/ai.min.js
2024-02-01 11:54:18 +00:00

3 lines
No EOL
442 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! elementor - v3.18.0 - 20-12-2023 */
/*! For license information please see ai.min.js.LICENSE.txt */
(()=>{var t={17927:(t,i,b)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.vocalTones=i.translateLanguages=i.textareaAutocomplete=i.textAutocomplete=i.codeHtmlAutocomplete=i.codeCssAutocomplete=void 0;var _=b(38003),C=[(0,_.__)("Craft a catchy slogan for","elementor"),(0,_.__)("Write a strong section header for","elementor"),(0,_.__)("Create a blog title for","elementor"),(0,_.__)("Suggest a 4 word headline for","elementor"),(0,_.__)("Write an attention grabbing title for","elementor")];i.textAutocomplete=C;var w=[(0,_.__)("Write a product description for","elementor"),(0,_.__)("Create a blog post for","elementor"),(0,_.__)("Craft an about us section for","elementor"),(0,_.__)("Offer a few sentences to invite visitors to","elementor"),(0,_.__)("Write microcopy for a submission form that includes","elementor")];i.textareaAutocomplete=w;var x=[(0,_.__)("GA event fired on every button element click (assume GA was loaded)","elementor"),(0,_.__)("Iframe code to embed a Spotify widget on my web page. My ID is 1234567890","elementor"),(0,_.__)("Write an embed code of Google Analytics","elementor"),(0,_.__)("Write an embed code of Facebook Pixel","elementor"),(0,_.__)("HTML code that embeds the following PDF into a webpage: link to PDF","elementor")];i.codeHtmlAutocomplete=x;var E=[(0,_.__)("On hover, animate 20% bigger, rotate 10 deg CCW","elementor"),(0,_.__)("Add a circle-shaped clip mask, semi transparent on hover","elementor"),(0,_.__)("Rainbow colored animated text gradient","elementor"),(0,_.__)("Add a 3D shadow to the text","elementor")];i.codeCssAutocomplete=E;var O=[{label:(0,_.__)("Casual","elementor")},{label:(0,_.__)("Confidence","elementor")},{label:(0,_.__)("Formal","elementor")},{label:(0,_.__)("Friendly","elementor")},{label:(0,_.__)("Inspirational","elementor")},{label:(0,_.__)("Motivational","elementor")},{label:(0,_.__)("Nostalgic","elementor")},{label:(0,_.__)("Playful","elementor")},{label:(0,_.__)("Professional","elementor")},{label:(0,_.__)("Scientific","elementor")},{label:(0,_.__)("Straightforward","elementor")},{label:(0,_.__)("Witty","elementor")}];i.vocalTones=O;var k=[{label:(0,_.__)("Arabic","elementor"),value:"ar-SA"},{label:(0,_.__)("Chinese","elementor"),value:"zh-CN"},{label:(0,_.__)("Czech","elementor"),value:"cs-CZ"},{label:(0,_.__)("Danish","elementor"),value:"da-DK"},{label:(0,_.__)("Dutch","elementor"),value:"nl-NL"},{label:(0,_.__)("English","elementor"),value:"en-US"},{label:(0,_.__)("Finnish","elementor"),value:"fi-FI"},{label:(0,_.__)("French","elementor"),value:"fr-FR"},{label:(0,_.__)("German","elementor"),value:"de-DE"},{label:(0,_.__)("Greek","elementor"),value:"el-GR"},{label:(0,_.__)("Hebrew","elementor"),value:"he-IL"},{label:(0,_.__)("Hungarian","elementor"),value:"hu-HU"},{label:(0,_.__)("Indonesian","elementor"),value:"id-ID"},{label:(0,_.__)("Italian","elementor"),value:"it-IT"},{label:(0,_.__)("Japanese","elementor"),value:"ja-JP"},{label:(0,_.__)("Korean","elementor"),value:"ko-KR"},{label:(0,_.__)("Persian","elementor"),value:"fa-IR"},{label:(0,_.__)("Polish","elementor"),value:"pl-PL"},{label:(0,_.__)("Portuguese","elementor"),value:"pt-PT"},{label:(0,_.__)("Russian","elementor"),value:"ru-RU"},{label:(0,_.__)("Spanish","elementor"),value:"es-ES"},{label:(0,_.__)("Swedish","elementor"),value:"sv-SE"},{label:(0,_.__)("Thai","elementor"),value:"th-TH"},{label:(0,_.__)("Turkish","elementor"),value:"tr-TR"},{label:(0,_.__)("Vietnamese","elementor"),value:"vi-VN"}];i.translateLanguages=k},96333:(t,i,b)=>{"use strict";var _=b(61533),C=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=C(b(87363)),x=C(b(78983)),E=C(b(42081)),O=C(b(58724)),k=C(b(71173)),P=C(b(74910)),S=C(b(74270)),I=b(38003);function _createSuper(t){var i=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function _createSuperInternal(){var b,_=(0,P.default)(t);if(i){var C=(0,P.default)(this).constructor;b=Reflect.construct(_,arguments,C)}else b=_.apply(this,arguments);return(0,k.default)(this,b)}}var T=function(t){(0,O.default)(AiBehavior,t);var i=_createSuper(AiBehavior);function AiBehavior(){return(0,x.default)(this,AiBehavior),i.apply(this,arguments)}return(0,E.default)(AiBehavior,[{key:"initialize",value:function initialize(){this.type="text",this.controlType="text",this.buttonLabel=(0,I.__)("Write with AI","elementor"),this.editButtonLabel=(0,I.__)("Edit with AI","elementor"),this.isLabelBlock=!1,this.additionalOptions={},this.context={},this.config=window.ElementorAiConfig}},{key:"ui",value:function ui(){return{aiButton:".e-ai-button"}}},{key:"events",value:function events(){return{"click @ui.aiButton":"onAiButtonClick"}}},{key:"onAiButtonClick",value:function onAiButtonClick(t){var i,b;t.stopPropagation();var C=(null===(i=elementor)||void 0===i||null===(b=i.getPreferences)||void 0===b?void 0:b.call(i,"ui_theme"))||"auto",x=elementorCommon.config.isRTL,E=document.createElement("div");document.body.append(E),window.elementorAiCurrentContext=this.getOption("context"),_.render(w.default.createElement(S.default,{type:this.getOption("type"),controlType:this.getOption("controlType"),getControlValue:this.getOption("getControlValue"),setControlValue:this.getOption("setControlValue"),additionalOptions:this.getOption("additionalOptions"),controlView:this.getOption("controlView"),onClose:function onClose(){_.unmountComponentAtNode(E),E.remove()},colorScheme:C,isRTL:x}),E)}},{key:"getAiButtonLabel",value:function getAiButtonLabel(){var t,i=null===(t=this.getOption("additionalOptions"))||void 0===t?void 0:t.defaultValue,b=this.getOption("getControlValue")(),_="media"===this.getOption("type");return!_&&i===b||_&&(null==b?void 0:b.url)===(null==i?void 0:i.url)?this.getOption("buttonLabel"):this.getOption("editButtonLabel")}},{key:"onRender",value:function onRender(){var t=!this.config.is_get_started,i=this.getAiButtonLabel(),b=jQuery("<button>",{class:"e-ai-button"});t||b.addClass("e-active"),b.html('<i class="eicon-ai"></i>'),this.getOption("isLabelBlock")&&t?b.append(" "+i):b.tipsy({gravity:"s",title:function title(){return i}});var _=this.$el.find(".elementor-control-responsive-switchers");_.length||(_=this.$el.find(".elementor-control-title")),_.after(b)}}]),AiBehavior}(Marionette.Behavior);i.default=T},46183:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.uploadImage=i.toggleFavoriteHistoryItem=i.setStatusFeedback=i.setGetStarted=i.getUserInformation=i.getTextToImageGeneration=i.getRemoteConfig=i.getLayoutPromptEnhanced=i.getImageToImageUpscale=i.getImageToImageReplaceBackground=i.getImageToImageRemoveText=i.getImageToImageRemoveBackground=i.getImageToImageOutPainting=i.getImageToImageMaskGeneration=i.getImageToImageGeneration=i.getImagePromptEnhanced=i.getHistory=i.getEditText=i.getCustomCode=i.getCustomCSS=i.getCompletionText=i.generateLayout=i.deleteHistoryItem=void 0;var C=_(b(93231));function ownKeys(t,i){var b=Object.keys(t);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(t);i&&(_=_.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),b.push.apply(b,_)}return b}var w=function request(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},b=arguments.length>2&&void 0!==arguments[2]&&arguments[2],_=arguments.length>3?arguments[3]:void 0;return Object.keys(i).length&&(i.context=window.elementorAiCurrentContext),new Promise((function(C,w){var x=elementorCommon.ajax.addRequest(t,{success:C,error:w,data:i},b);_&&x.jqXhr&&_.addEventListener("abort",x.jqXhr.abort)}))};i.getUserInformation=function getUserInformation(){return w("ai_get_user_information")};i.getRemoteConfig=function getRemoteConfig(){return w("ai_get_remote_config")};i.getCompletionText=function getCompletionText(t){return w("ai_get_completion_text",{prompt:t})};i.getEditText=function getEditText(t,i){return w("ai_get_edit_text",{input:t,instruction:i})};i.getCustomCode=function getCustomCode(t,i){return w("ai_get_custom_code",{prompt:t,language:i})};i.getCustomCSS=function getCustomCSS(t,i,b){return w("ai_get_custom_css",{prompt:t,html_markup:i,element_id:b})};i.setGetStarted=function setGetStarted(){return w("ai_set_get_started")};i.setStatusFeedback=function setStatusFeedback(t){return w("ai_set_status_feedback",{response_id:t})};i.getTextToImageGeneration=function getTextToImageGeneration(t,i){return w("ai_get_text_to_image",{prompt:t,promptSettings:i})};i.getImageToImageGeneration=function getImageToImageGeneration(t,i,b){return w("ai_get_image_to_image",{prompt:t,promptSettings:i,image:b})};i.getImageToImageMaskGeneration=function getImageToImageMaskGeneration(t,i,b,_){return w("ai_get_image_to_image_mask",{prompt:t,promptSettings:i,image:b,mask:_})};i.getImageToImageOutPainting=function getImageToImageOutPainting(t,i,b,_){return w("ai_get_image_to_image_outpainting",{prompt:t,promptSettings:i,mask:_})};i.getImageToImageUpscale=function getImageToImageUpscale(t,i,b){return w("ai_get_image_to_image_upscale",{prompt:t,promptSettings:i,image:b})};i.getImageToImageRemoveBackground=function getImageToImageRemoveBackground(t){return w("ai_get_image_to_image_remove_background",{image:t})};i.getImageToImageReplaceBackground=function getImageToImageReplaceBackground(t,i){return w("ai_get_image_to_image_replace_background",{prompt:t,image:i})};i.getImageToImageRemoveText=function getImageToImageRemoveText(t){return w("ai_get_image_to_image_remove_text",{image:t})};i.getImagePromptEnhanced=function getImagePromptEnhanced(t){return w("ai_get_image_prompt_enhancer",{prompt:t})};i.uploadImage=function uploadImage(t){return w("ai_upload_image",function _objectSpread(t){for(var i=1;i<arguments.length;i++){var b=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(b),!0).forEach((function(i){(0,C.default)(t,i,b[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(b,i))}))}return t}({},t))};i.generateLayout=function generateLayout(t,i){return w("ai_generate_layout",t,!0,i)};i.getLayoutPromptEnhanced=function getLayoutPromptEnhanced(t,i){return w("ai_get_layout_prompt_enhancer",{prompt:t,enhance_type:i})};i.getHistory=function getHistory(t,i,b){return w("ai_get_history",{type:t,page:i,limit:b})};i.deleteHistoryItem=function deleteHistoryItem(t){return w("ai_delete_history_item",{id:t})};i.toggleFavoriteHistoryItem=function toggleFavoriteHistoryItem(t){return w("ai_toggle_favorite_history_item",{id:t})}},74270:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=b(36626),x=_(b(23615)),E=_(b(88450)),O=b(8227),k=function App(t){return C.default.createElement(w.DirectionProvider,{rtl:t.isRTL},C.default.createElement(w.ThemeProvider,{colorScheme:t.colorScheme},C.default.createElement(E.default,{type:t.type,controlType:t.controlType,onClose:t.onClose,onConnect:O.onConnect,getControlValue:t.getControlValue,setControlValue:t.setControlValue,controlView:t.controlView,additionalOptions:t.additionalOptions})))};k.propTypes={colorScheme:x.default.oneOf(["auto","light","dark"]),type:x.default.string,controlType:x.default.string,onClose:x.default.func,getControlValue:x.default.func,setControlValue:x.default.func,additionalOptions:x.default.object,controlView:x.default.object,isRTL:x.default.bool};var P=k;i.default=P},78029:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=b(36626),E=b(38003),O=_(b(23615)),k=b(34029),P=(0,x.styled)((function ElementorLogo(t){return C.default.createElement(x.SvgIcon,(0,w.default)({viewBox:"0 0 32 32"},t),C.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.69648 24.8891C0.938383 22.2579 0 19.1645 0 16C0 11.7566 1.68571 7.68687 4.68629 4.68629C7.68687 1.68571 11.7566 0 16 0C19.1645 0 22.2579 0.938383 24.8891 2.69648C27.5203 4.45459 29.5711 6.95344 30.7821 9.87706C31.9931 12.8007 32.3099 16.0177 31.6926 19.1214C31.0752 22.2251 29.5514 25.0761 27.3137 27.3137C25.0761 29.5514 22.2251 31.0752 19.1214 31.6926C16.0177 32.3099 12.8007 31.9931 9.87706 30.7821C6.95344 29.5711 4.45459 27.5203 2.69648 24.8891ZM12.0006 9.33281H9.33437V22.6665H12.0006V9.33281ZM22.6657 9.33281H14.6669V11.9991H22.6657V9.33281ZM22.6657 14.6654H14.6669V17.3316H22.6657V14.6654ZM22.6657 20.0003H14.6669V22.6665H22.6657V20.0003Z"}))}))((function(t){var i=t.theme;return{width:i.spacing(3),height:i.spacing(3),"& path":{fill:i.palette.text.primary}}})),S=function DialogHeader(t){return C.default.createElement(x.AppBar,{sx:{fontWeight:"normal"},color:"transparent",position:"relative"},C.default.createElement(x.Toolbar,{variant:"dense"},C.default.createElement(P,{sx:{mr:1}}),C.default.createElement(x.Typography,{component:"span",variant:"subtitle2",sx:{fontWeight:"bold",textTransform:"uppercase"}},(0,E.__)("AI","elementor")),C.default.createElement(x.Chip,{label:(0,E.__)("Beta","elementor"),color:"default",size:"small",sx:{ml:1}}),C.default.createElement(x.Stack,{direction:"row",spacing:1,alignItems:"center",sx:{ml:"auto"}},t.children,C.default.createElement(x.IconButton,{size:"small","aria-label":"close",onClick:t.onClose,sx:{"&.MuiButtonBase-root":{mr:-1}}},C.default.createElement(k.XIcon,null)))))};S.propTypes={onClose:O.default.func.isRequired,children:O.default.oneOfType([O.default.arrayOf(O.default.node),O.default.node])};var I=S;i.default=I},4466:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=b(36626),E=b(38003),O=b(34029),k=function GenerateButton(t){return C.default.createElement(x.Button,(0,w.default)({variant:"contained",endIcon:C.default.createElement(O.AIIcon,{fontSize:"small"}),disabled:!prompt,"aria-label":(0,E.__)("search","elementor"),type:"submit",size:"small"},t))};i.default=k},71871:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=_(b(93231)),E=_(b(70966)),O=b(36626),k=_(b(23615)),P=["sx","BoxProps"];function ownKeys(t,i){var b=Object.keys(t);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(t);i&&(_=_.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),b.push.apply(b,_)}return b}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var b=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(b),!0).forEach((function(i){(0,x.default)(t,i,b[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(b,i))}))}return t}var S=function Loader(t){var i=t.sx,b=void 0===i?{}:i,_=t.BoxProps,x=void 0===_?{}:_,k=(0,E.default)(t,P);return C.default.createElement(O.Box,(0,w.default)({width:"100%",display:"flex",alignItems:"center"},x,{sx:_objectSpread({px:1.5,minHeight:function minHeight(t){return t.spacing(5)}},x.sx||{})}),C.default.createElement(O.LinearProgress,(0,w.default)({color:"secondary"},k,{sx:_objectSpread({width:"100%"},b)})))};S.propTypes={sx:k.default.object,BoxProps:k.default.object};var I=S;i.default=I},93970:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=b(36626),x=_(b(23615)),E=function PromptActionSelection(t){var i=function labelToDashCash(t){return t.toLowerCase().replace(/ /g,"-")}(t.label),b=t.wrapperStyle,_=void 0===b?{maxWidth:138}:b;return C.default.createElement(w.FormControl,{size:"small",color:"secondary",fullWidth:!0,sx:_},C.default.createElement(w.InputLabel,{id:i},t.label),C.default.createElement(w.Select,{id:i,labelId:i,label:t.label,value:t.value||"",onChange:t.onChange,disabled:t.disabled,sx:{"&.Mui-disabled .MuiSelect-nativeInput":{backgroundColor:"initial",opacity:0}}},t.options.map((function(t){var i;return C.default.createElement(w.MenuItem,{dense:!0,key:t.label,value:null!==(i=t.value)&&void 0!==i?i:t.label},t.label)}))))};E.propTypes={label:x.default.string.isRequired,options:x.default.arrayOf(x.default.shape({label:x.default.string.isRequired,value:x.default.string})).isRequired,onChange:x.default.func.isRequired,value:x.default.string,wrapperStyle:x.default.object,disabled:x.default.bool};var O=E;i.default=O},77655:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=b(36626),E=function PromptAction(t){return C.default.createElement(x.Chip,(0,w.default)({size:"large",color:"secondary",variant:"outlined"},t))};i.default=E},59441:(t,i,b)=>{"use strict";var _=b(73203),C=b(7501);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==C(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in t)if("default"!==x&&Object.prototype.hasOwnProperty.call(t,x)){var E=w?Object.getOwnPropertyDescriptor(t,x):null;E&&(E.get||E.set)?Object.defineProperty(_,x,E):_[x]=t[x]}_.default=t,b&&b.set(t,_);return _}(b(87363)),x=_(b(73119)),E=_(b(93231)),O=_(b(40131)),k=b(36626),P=_(b(23615)),S=_(b(49529)),I=_(b(78029));function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}function ownKeys(t,i){var b=Object.keys(t);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(t);i&&(_=_.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),b.push.apply(b,_)}return b}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var b=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(b),!0).forEach((function(i){(0,E.default)(t,i,b[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(b,i))}))}return t}var T=function DraggablePaper(t){var i=(0,w.useState)({x:0,y:0}),b=(0,O.default)(i,2),_=b[0],C=b[1],E=(0,w.useRef)(null),P=(0,w.useRef)(null),I=function handlePositionBoundaries(){clearTimeout(P.current),P.current=setTimeout((function(){var t,i=null===(t=E.current)||void 0===t?void 0:t.getBoundingClientRect().top;i<0&&C((function(t){return _objectSpread(_objectSpread({},t),{},{y:t.y-i})}))}),50)};return(0,w.useEffect)((function(){var t=new ResizeObserver(I);return t.observe(E.current),function(){t.disconnect()}}),[]),w.default.createElement(S.default,{position:_,onDrag:function onDrag(t,i){var b=i.x,_=i.y;return C({x:b,y:_})},handle:".MuiAppBar-root",cancel:'[class*="MuiDialogContent-root"]',bounds:"parent"},w.default.createElement(k.Paper,(0,x.default)({},t,{ref:E})))},j=function PromptDialog(t){return w.default.createElement(k.Dialog,(0,x.default)({scroll:"paper",open:!0,fullWidth:!0,hideBackdrop:!0,PaperComponent:T,disableScrollLock:!0,sx:{"& .MuiDialog-container":{alignItems:"flex-start",mt:"18vh"}},PaperProps:{sx:{m:0,maxHeight:"76vh"}}},t),t.children)};j.propTypes={onClose:P.default.func.isRequired,children:P.default.node,maxWidth:P.default.oneOf(["xs","sm","md","lg","xl",!1])},j.Header=I.default,j.Content=k.DialogContent;var M=j;i.default=M},86960:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=_(b(70966)),E=b(36626),O=b(38003),k=_(b(23615)),P=["error","onRetry","actionPosition"],S=function PromptErrorMessage(t){var i=t.error,b=t.onRetry,_=void 0===b?function(){}:b,k=t.actionPosition,S=void 0===k?"default":k,I=(0,x.default)(t,P),T={default:{text:C.default.createElement(E.AlertTitle,null,(0,O.__)("Unknown error. Please try again later.","elementor")),description:(0,O.__)("Error code:","elementor")+" "+i,buttonText:(0,O.__)("Try Again","elementor"),buttonAction:_},service_outage_internal:{text:C.default.createElement(E.AlertTitle,null,(0,O.__)("Elementor AI is temporarily unavailable","elementor")),description:(0,O.__)("Seems like we are experiencing technical difficulty. We should be up and running shortly.","elementor"),buttonText:(0,O.__)("Try Again","elementor"),buttonAction:_},invalid_connect_data:{text:C.default.createElement(E.AlertTitle,null,(0,O.__)("Reconnect your account","elementor")),description:C.default.createElement(C.default.Fragment,null,(0,O.__)("We couldn't connect to your account due to technical difficulties on our end. Reconnect your account to continue.","elementor")," ",C.default.createElement("a",{href:"https://elementor.com/help/disconnecting-reconnecting-your-elementor-account/",target:"_blank",rel:"noreferrer"},(0,O.__)("Show me how","elementor"))),buttonText:(0,O.__)("Reconnect","elementor"),buttonAction:function buttonAction(){return window.open(window.ElementorAiConfig.connect_url)}},not_connected:{text:C.default.createElement(E.AlertTitle,null,(0,O.__)("You aren't connected to Elementor AI.","elementor")),description:(0,O.__)("Elementor AI is just a few clicks away. Connect your account to instantly create texts and custom code.","elementor"),buttonText:(0,O.__)("Connect","elementor"),buttonAction:function buttonAction(){return window.open(window.ElementorAiConfig.connect_url)}},quota_reached_trail:{text:C.default.createElement(E.AlertTitle,null,(0,O.__)("It's time to upgrade.","elementor")),description:(0,O.__)("Enjoy the free trial? Upgrade now for unlimited access to built-in image, text and custom code generators.","elementor"),buttonText:(0,O.__)("Upgrade","elementor"),buttonAction:function buttonAction(){return window.open("https://go.elementor.com/ai-popup-purchase-limit-reached/","_blank")}},quota_reached_subscription:{text:C.default.createElement(E.AlertTitle,null,(0,O.__)("It's time to upgrade.","elementor")),description:(0,O.__)("Love Elementor AI? Upgrade to continue creating with built-in image, text and custom code generators.","elementor"),buttonText:(0,O.__)("Upgrade","elementor"),buttonAction:function buttonAction(){return window.open("https://go.elementor.com/ai-popup-purchase-limit-reached/","_blank")}},rate_limit_network:{text:C.default.createElement(E.AlertTitle,null,(0,O.__)("Whoa! Slow down there.","elementor")),description:(0,O.__)("We cant process that many requests so fast. Try again in 15 minutes.","elementor")},invalid_prompts:{text:C.default.createElement(E.AlertTitle,null,(0,O.__)("We were unable to generate that prompt.","elementor")),description:(0,O.__)("Seems like the prompt contains words that could generate harmful content. Write a different prompt to continue.","elementor")}},j=T[i]||T.default,M=(null==j?void 0:j.buttonText)&&C.default.createElement(E.Button,{color:"inherit",size:"small",variant:"outlined",onClick:j.buttonAction},j.buttonText);return C.default.createElement(E.Alert,(0,w.default)({severity:j.severity||"error",action:"default"===S&&M},I),j.text,j.description,"bottom"===S&&C.default.createElement(E.Box,{sx:{mt:1}},M))};S.propTypes={error:k.default.string,onRetry:k.default.func,actionPosition:k.default.oneOf(["default","bottom"])};var I=S;i.default=I},10905:(t,i,b)=>{"use strict";var _=b(73203),C=b(7501);Object.defineProperty(i,"__esModule",{value:!0}),i.useSubscribeOnPromptHistoryAction=i.usePromptHistoryAction=i.PromptHistoryActionProvider=i.PromptHistoryActionContext=i.ACTION_TYPES=void 0;var w,x,E,O,k=function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==C(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in t)if("default"!==x&&Object.prototype.hasOwnProperty.call(t,x)){var E=w?Object.getOwnPropertyDescriptor(t,x):null;E&&(E.get||E.set)?Object.defineProperty(_,x,E):_[x]=t[x]}_.default=t,b&&b.set(t,_);return _}(b(87363)),P=_(b(40131)),S=_(b(93231)),I=_(b(23615)),T=b(62219),j=b(78293);function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}function _createForOfIteratorHelper(t,i){var b="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!b){if(Array.isArray(t)||(b=function _unsupportedIterableToArray(t,i){if(!t)return;if("string"==typeof t)return _arrayLikeToArray(t,i);var b=Object.prototype.toString.call(t).slice(8,-1);"Object"===b&&t.constructor&&(b=t.constructor.name);if("Map"===b||"Set"===b)return Array.from(t);if("Arguments"===b||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return _arrayLikeToArray(t,i)}(t))||i&&t&&"number"==typeof t.length){b&&(t=b);var _=0,C=function F(){};return{s:C,n:function n(){return _>=t.length?{done:!0}:{done:!1,value:t[_++]}},e:function e(t){throw t},f:C}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var w,x=!0,E=!1;return{s:function s(){b=b.call(t)},n:function n(){var t=b.next();return x=t.done,t},e:function e(t){E=!0,w=t},f:function f(){try{x||null==b.return||b.return()}finally{if(E)throw w}}}}function _arrayLikeToArray(t,i){(null==i||i>t.length)&&(i=t.length);for(var b=0,_=new Array(i);b<i;b++)_[b]=t[b];return _}var M=(0,k.createContext)({});i.PromptHistoryActionContext=M;var A={type:"",id:"",data:null},R=Object.freeze({REUSE:"reuse",EDIT:"edit",RESTORE:"restore",REMOVE:"remove"});i.ACTION_TYPES=R;var D=(O={},(0,S.default)(O,T.HISTORY_TYPES.TEXT,(w={},(0,S.default)(w,R.REUSE,!0),(0,S.default)(w,R.EDIT,!0),(0,S.default)(w,R.REMOVE,!0),w)),(0,S.default)(O,T.HISTORY_TYPES.CODE,(x={},(0,S.default)(x,R.REUSE,!0),(0,S.default)(x,R.REMOVE,!0),x)),(0,S.default)(O,T.HISTORY_TYPES.IMAGE,(E={},(0,S.default)(E,R.RESTORE,!0),(0,S.default)(E,R.REMOVE,!0),E)),O),L=function PromptHistoryActionProvider(t){var i=t.children,b=(0,k.useState)(A),_=(0,P.default)(b,2),C=_[0],w=_[1];return k.default.createElement(M.Provider,{value:{state:C,dispatch:w}},i)};i.PromptHistoryActionProvider=L,L.propTypes={children:I.default.node};i.usePromptHistoryAction=function usePromptHistoryAction(){var t=(0,k.useContext)(M),i=t.state,b=t.dispatch,_=(0,j.usePromptHistoryContext)(),C=_.historyType,w=_.onClose,x=function closeModalAfterAction(t){return function(){t.apply(void 0,arguments),w()}};return{promptHistoryAction:i,onPromptReuse:x((function onPromptReuse(t,i){return b({type:R.REUSE,id:t,data:i})})),onResultEdit:x((function onResultEdit(t,i){return b({type:R.EDIT,id:t,data:i})})),onImagesRestore:x((function onImagesRestore(t,i){return b({type:R.RESTORE,id:t,data:i})})),getAllowedActions:function getAllowedActions(){return D[C]||{}}}};i.useSubscribeOnPromptHistoryAction=function useSubscribeOnPromptHistoryAction(t){var i=(0,k.useContext)(M).state;(0,k.useEffect)((function(){if(i.type){var b,_=_createForOfIteratorHelper(t);try{for(_.s();!(b=_.n()).done;){var C=b.value;i.type===(null==C?void 0:C.type)&&(null==C||C.handler(i))}}catch(t){_.e(t)}finally{_.f()}}}),[i])}},78293:(t,i,b)=>{"use strict";var _=b(73203),C=b(7501);Object.defineProperty(i,"__esModule",{value:!0}),i.usePromptHistoryContext=i.PromptHistoryProvider=i.PromptHistoryContext=void 0;var w=function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==C(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in t)if("default"!==x&&Object.prototype.hasOwnProperty.call(t,x)){var E=w?Object.getOwnPropertyDescriptor(t,x):null;E&&(E.get||E.set)?Object.defineProperty(_,x,E):_[x]=t[x]}_.default=t,b&&b.set(t,_);return _}(b(87363)),x=_(b(40131)),E=_(b(23615)),O=b(62219),k=b(8227);function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}var P=(0,w.createContext)({});i.PromptHistoryContext=P;var S=".e-ai-dialog-content",I=function getContainer(){return document.querySelector(S)},T=function getContainerHeight(){var t=document.querySelector(S);return null==t?void 0:t.clientHeight},j=function getContentHeight(){return document.querySelector(S).children[0].clientHeight+50},M=function setContentHeight(t){var i=document.querySelector(S);i.style.height="auto"!==t?"".concat(t,"px"):"auto"},A=function PromptHistoryProvider(t){var i=t.historyType,b=t.children,_=(0,w.useState)(!1);return w.default.createElement(P.Provider,{value:{historyType:i,showHistoryState:_}},b)};i.PromptHistoryProvider=A,A.propTypes={historyType:E.default.oneOf(Object.values(O.HISTORY_TYPES)).isRequired,children:E.default.node};i.usePromptHistoryContext=function usePromptHistoryContext(){var t=(0,w.useContext)(P),i=t.historyType,b=t.showHistoryState,_=(0,x.default)(b,2),C=_[0],E=_[1],S=(0,w.useState)(!1),A=(0,x.default)(S,2),R=A[0],D=A[1],L=(0,w.useState)(!1),B=(0,x.default)(L,2),N=B[0],W=B[1];(0,w.useEffect)((function(){if(C!==R||C!==N)return i===O.HISTORY_TYPES.IMAGE?function handleFullScreenHistoryState(){if(C)return D(!0),void setTimeout((function(){return W(!0)}),200);W(!1),setTimeout((function(){return D(!1)}),500)}():void function handleDefaultHistoryState(){if(C){var t=j();return M(t),void setTimeout((function(){if(t<(0,k.vh)(61))return M((0,k.vh)(61)),setTimeout((function(){return D(!0)}),200),void setTimeout((function(){return W(!0)}),300);D(!0),W(!0)}),20)}W(!1),setTimeout((function(){D(!1),M(j()),setTimeout((function(){return M("auto")}),300)}),500)}()}),[C]);return{historyType:i,isOpen:N,isModalOpen:R,showHistory:C,onOpen:function onOpen(){E(!0)},onClose:function onClose(){E(!1)},getContainer:I,getContainerHeight:T}}},2456:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.renderPeriods=i.groupPromptHistoryData=i.LAST_7_DAYS_KEY=i.LAST_30_DAYS_KEY=void 0;var C=_(b(87363)),w=_(b(93231)),x=_(b(9833)),E=b(38003),O=b(22809),k=_(b(27199));function _createForOfIteratorHelper(t,i){var b="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!b){if(Array.isArray(t)||(b=function _unsupportedIterableToArray(t,i){if(!t)return;if("string"==typeof t)return _arrayLikeToArray(t,i);var b=Object.prototype.toString.call(t).slice(8,-1);"Object"===b&&t.constructor&&(b=t.constructor.name);if("Map"===b||"Set"===b)return Array.from(t);if("Arguments"===b||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return _arrayLikeToArray(t,i)}(t))||i&&t&&"number"==typeof t.length){b&&(t=b);var _=0,C=function F(){};return{s:C,n:function n(){return _>=t.length?{done:!0}:{done:!1,value:t[_++]}},e:function e(t){throw t},f:C}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var w,x=!0,E=!1;return{s:function s(){b=b.call(t)},n:function n(){var t=b.next();return x=t.done,t},e:function e(t){E=!0,w=t},f:function f(){try{x||null==b.return||b.return()}finally{if(E)throw w}}}}function _arrayLikeToArray(t,i){(null==i||i>t.length)&&(i=t.length);for(var b=0,_=new Array(i);b<i;b++)_[b]=t[b];return _}var P="date",S="7-days";i.LAST_7_DAYS_KEY=S;var I="30-days";i.LAST_30_DAYS_KEY=I;var T=(0,E.__)("F","elementor"),j=function groupPromptHistoryData(t){var i,b,_=function sortPromptHistoryData(t){return(0,x.default)(t).sort((function(t,i){return new Date(i[P])-new Date(t[P])}))}(t),C=new Date,k=(i={},(0,w.default)(i,S,{label:(0,E.__)("Last 7 days","elementor"),items:[]}),(0,w.default)(i,I,{label:(0,E.__)("Last 30 days","elementor"),items:[]}),i),j=_createForOfIteratorHelper(_);try{for(j.s();!(b=j.n()).done;){var M=b.value,A=new Date(M[P]),R=(0,O.daysDiff)(A,C);if(R<=7)k[S].items.push(M);else if(R<=30)k[I].items.push(M);else{var D=A.getMonth();k[D]||(k[D]={label:(0,O.translateDate)(T,A),items:[]}),k[D].items.push(M)}}}catch(t){j.e(t)}finally{j.f()}return k};i.groupPromptHistoryData=j;i.renderPeriods=function renderPeriods(t){var i,b,_,w,x=t.items,E=t.onDelete,P=j(x),T=[];null!==(i=P[S])&&void 0!==i&&null!==(b=i.items)&&void 0!==b&&b.length&&T.push(C.default.createElement(k.default,{periodTitle:P[S].label,onHistoryItemDelete:E,historyItems:P[S].items})),null!==(_=P[I])&&void 0!==_&&null!==(w=_.items)&&void 0!==w&&w.length&&T.push(C.default.createElement(k.default,{periodTitle:P[I].label,onHistoryItemDelete:E,historyItems:P[I].items}));for(var M=O.MONTH_DECEMBER_INDEX;M>=O.MONTH_JANUARY_INDEX;M--)P[M]&&T.push(C.default.createElement(k.default,{periodTitle:P[M].label,onHistoryItemDelete:E,historyItems:P[M].items}));return T}},63693:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C,w=_(b(87363)),x=_(b(73119)),E=_(b(70966)),O=_(b(79769)),k=b(36626),P=b(38003),S=_(b(23615)),I=b(34029),T=["isActive"],j=(0,k.styled)(k.IconButton)(C||(C=(0,O.default)(["\n margin-right: ",";\n\n ","\n"])),(function(t){return t.theme.spacing(2)}),(function(t){var i=t.isActive,b=t.theme;return i&&"\n background-color: ".concat(b.palette.action.hover,";\n color: ").concat(b.palette.text.tertiary,";\n ")})),M=function PromptHistoryButton(t){var i=t.isActive,b=(0,E.default)(t,T);return w.default.createElement(j,(0,x.default)({"aria-label":(0,P.__)("Show prompt history","elementor"),type:"button",size:"small",isActive:i},b),w.default.createElement(I.HistoryIcon,null))};M.propTypes={isActive:S.default.bool.isRequired};var A=M;i.default=A},97662:(t,i,b)=>{"use strict";var _=b(73203),C=b(7501);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==C(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in t)if("default"!==x&&Object.prototype.hasOwnProperty.call(t,x)){var E=w?Object.getOwnPropertyDescriptor(t,x):null;E&&(E.get||E.set)?Object.defineProperty(_,x,E):_[x]=t[x]}_.default=t,b&&b.set(t,_);return _}(b(87363)),x=_(b(50824)),E=_(b(10029)),O=b(36626),k=b(38003),P=_(b(87984)),S=_(b(78632)),I=_(b(69447)),T=_(b(86960)),j=b(2456),M=_(b(6688)),A=_(b(43674)),R=_(b(49821)),D=b(78293),L=_(b(66390));function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}var B=["invalid_connect_data","no_subscription"],N=function PromptHistoryModal(t){var i=(0,w.useRef)((function(){})),b=(0,w.useRef)(null),_=(0,D.usePromptHistoryContext)(),C=_.historyType,N=_.onClose,W=(0,P.default)(C),H=W.items,q=W.meta,z=W.isLoading,V=W.error,G=W.fetchData,U=W.deleteItemById,Y=(0,I.default)(),Z=Y.isLoading,K=Y.error,X=Y.deleteItem,$=V||K,Q=z||Z,J=q&&(null==q?void 0:q.currentPage)===(null==q?void 0:q.totalPages),ee=(null==H?void 0:H.length)>0&&(null==q?void 0:q.allowedDays)<90&&J;(0,w.useEffect)((function(){i.current=(0,E.default)(x.default.mark((function _callee(){return x.default.wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",G({page:1,limit:10}));case 1:case"end":return t.stop()}}),_callee)}))),i.current()}),[]);var te=function(){var t=(0,E.default)(x.default.mark((function _callee4(t){return x.default.wrap((function _callee4$(b){for(;;)switch(b.prev=b.next){case 0:return i.current=(0,E.default)(x.default.mark((function _callee3(){return x.default.wrap((function _callee3$(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,X(t);case 2:return i.abrupt("return",i.sent);case 3:case"end":return i.stop()}}),_callee3)}))),b.next=3,i.current();case 3:K||U(t);case 4:case"end":return b.stop()}}),_callee4)})));return function onHistoryItemDelete(i){return t.apply(this,arguments)}}();return w.default.createElement(L.default,t,w.default.createElement(S.default,{onClose:N}),$&&!B.includes($)&&w.default.createElement(T.default,{error:$,onRetry:i.current,sx:{position:"absolute",zIndex:1,marginTop:Q?.5:"revert"}}),Q&&w.default.createElement(O.LinearProgress,{role:"progressbar","aria-label":(0,k.__)("Loading","elementor"),color:"secondary"}),w.default.createElement(O.Box,{sx:{overflowY:"scroll",height:"85%"},ref:b},$&&B.includes($)&&w.default.createElement(R.default,{variant:"full",historyType:C}),!$&&0===(null==H?void 0:H.length)&&w.default.createElement(M.default,{historyType:C}),(null==H?void 0:H.length)>0&&w.default.createElement(A.default,{loadMore:function loadNext(){Q||J||(i.current=(0,E.default)(x.default.mark((function _callee2(){return x.default.wrap((function _callee2$(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",G({page:q.currentPage+1,limit:10}));case 1:case"end":return t.stop()}}),_callee2)}))),i.current())},getScrollParent:function getScrollParent(){return b.current},useWindow:!1,isReverse:!1,threshold:30,initialLoad:!1,hasMore:!J},(0,j.renderPeriods)({items:H,onDelete:te})),ee&&w.default.createElement(R.default,{variant:"small",historyType:C})))};i.default=N},62219:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.getTranslatedPromptHistoryType=i.TRANSLATED_HISTORY_TYPES_FALLBACK=i.TRANSLATED_HISTORY_TYPES=i.HISTORY_TYPES=void 0;var C,w=_(b(93231)),x=b(38003),E=Object.freeze({ALL:"all",TEXT:"text",CODE:"code",IMAGE:"images",BLOCK:"blocks"});i.HISTORY_TYPES=E;var O=(0,x.__)("things","elementor");i.TRANSLATED_HISTORY_TYPES_FALLBACK=O;var k=Object.freeze((C={},(0,w.default)(C,E.TEXT,(0,x.__)("texts","elementor")),(0,w.default)(C,E.CODE,(0,x.__)("code","elementor")),(0,w.default)(C,E.IMAGE,(0,x.__)("images","elementor")),(0,w.default)(C,E.BLOCK,(0,x.__)("blocks","elementor")),C));i.TRANSLATED_HISTORY_TYPES=k;i.getTranslatedPromptHistoryType=function getTranslatedPromptHistoryType(t){return k[t]?k[t]:O}},76719:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(63693)),x=_(b(97662)),E=b(78293),O="prompt-history-modal",k=function PromptHistory(){var t=(0,E.usePromptHistoryContext)(),i=t.isOpen,b=t.isModalOpen,_=t.onOpen,k=t.onClose;return C.default.createElement(C.default.Fragment,null,C.default.createElement(w.default,{isActive:i,onClick:function onClick(){return i?k():_()},"aria-haspopup":"dialog","aria-controls":O}),b&&C.default.createElement(x.default,{id:O}))};i.default=k},60315:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(23615)),x=_(b(28221)),E=b(34029),O=_(b(94345)),k=C.default.createElement(E.AIIcon,{"data-testid":"e-ph-fi"}),P=Object.freeze({"enhance-image-prompt":C.default.createElement(x.default,null),"get-text":C.default.createElement(x.default,null),"edit-text":C.default.createElement(x.default,null),"custom-css":C.default.createElement(O.default,null),"custom-code":C.default.createElement(O.default,null)}),S=function PromptHistoryActionIcon(t){var i=t.action;return P[i]?P[i]:k};S.propTypes={action:w.default.string.isRequired};var I=S;i.default=I},66390:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C,w=_(b(87363)),x=_(b(73119)),E=_(b(70966)),O=_(b(79769)),k=b(36626),P=b(38003),S=_(b(23615)),I=b(78293),T=["children"],j=(0,k.styled)(k.Box)(C||(C=(0,O.default)(["\n width: 360px;\n position: relative;\n margin-top: ",";\n margin-right: ",";\n background-color: ",";\n border-radius: ",";\n height: ",";\n\n @media screen and (max-width: 456px) {\n width: 320px;\n }\n\n @media screen and (max-width: 420px) {\n width: 230px;\n }\n"])),(function(t){return t.theme.spacing(2)}),(function(t){return t.theme.spacing(2)}),(function(t){return t.theme.palette.background.paper}),(function(t){var i=t.theme;return"".concat(i.shape.borderRadius,"px")}),(function(t){var i=t.height;return"calc( ".concat(i,"px - 32px )")})),M=function ModalContainer(t){var i=t.children,b=(0,E.default)(t,T),_=(0,I.usePromptHistoryContext)(),C=_.isOpen,O=_.isModalOpen,S=_.onClose,M=_.getContainerHeight,A=_.getContainer;return w.default.createElement(k.Modal,(0,x.default)({container:A(),open:O,hideBackdrop:!0,onClose:S,sx:{position:"absolute"}},b),w.default.createElement(k.Backdrop,{open:!0,sx:{position:"absolute",justifyContent:"flex-end",alignItems:"flex-start"},"aria-hidden":!1},w.default.createElement(k.Slide,{direction:"left",in:C,timeout:500,easing:"ease-in-out"},w.default.createElement(j,{"aria-label":(0,P.__)("Prompt history modal","elementor"),height:M()},i))))};M.propTypes={isOpen:S.default.bool.isRequired,isModalOpen:S.default.bool.isRequired,onClose:S.default.func.isRequired,children:S.default.oneOfType([S.default.arrayOf(S.default.node),S.default.node])};var A=M;i.default=A},6688:(t,i,b)=>{"use strict";var _=b(38003).sprintf,C=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=C(b(87363)),x=b(36626),E=b(38003),O=C(b(23615)),k=b(62219),P=function PromptHistoryEmpty(t){var i=t.historyType;return w.default.createElement(x.Stack,{justifyContent:"center",sx:{height:"100%",textAlign:"center"},"data-testid":"e-ph-empty"},w.default.createElement(x.Typography,{variant:"h6"},(0,E.__)("Prepare to be amazed","elementor")),w.default.createElement(x.Typography,{variant:"body1"},_((0,E.__)("This is where you'll find all the %s you've generated using Elementor AI.","elementor"),(0,k.getTranslatedPromptHistoryType)(i))))};P.propTypes={historyType:O.default.oneOf(Object.values(k.HISTORY_TYPES)).isRequired};var S=P;i.default=S},78632:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=b(36626),x=b(38003),E=_(b(23615)),O=b(34029),k=(0,w.styled)(w.Box)((function(t){var i=t.theme;return{marginTop:0,padding:i.spacing(1.5),borderBottom:"1px solid ".concat(i.palette.action.focus),display:"flex",alignItems:"center",justifyContent:"space-between"}})),P=function PromptHistoryModalHeader(t){var i=t.onClose;return C.default.createElement(k,null,C.default.createElement(w.Typography,{fontWeight:"bolder",variant:"h6",sx:{userSelect:"none"}},(0,x.__)("History","elementor")),C.default.createElement(w.IconButton,{size:"small","aria-label":(0,x.__)("Hide prompt history","elementor"),onClick:i},C.default.createElement(O.XIcon,{fontSize:"small"})))};P.propTypes={onClose:E.default.func.isRequired};var S=P;i.default=S},93798:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=_(b(70966)),E=b(36626),O=_(b(23615)),k=_(b(33977)),P=["tooltipTitle"],S=function ActionButton(t){var i=t.tooltipTitle,b=(0,x.default)(t,P);return C.default.createElement(k.default,{title:i,placement:"top"},C.default.createElement(E.IconButton,(0,w.default)({type:"button",size:"small",disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0},b)))};S.propTypes={tooltipTitle:O.default.string.isRequired};var I=S;i.default=I},57951:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C,w,x=_(b(87363)),E=_(b(79769)),O=b(36626),k=_(b(23615)),P=(0,O.styled)(O.Typography)(C||(C=(0,E.default)(["\n color: ",";\n"])),(function(t){return t.theme.palette.secondary.light})),S=(0,O.styled)("img")(w||(w=(0,E.default)(["\n height: 72px;\n width: 72px;\n object-fit: cover;\n margin-right: ",";\n"])),(function(t){return t.theme.spacing(.5)})),I=function PromptHistoryItemSecondaryContent(t){var i=t.date,b=t.thumbnails;return x.default.createElement(O.Stack,{direction:"column",width:"90%"},x.default.createElement(P,{variant:"caption"},i),(null==b?void 0:b.length)>0&&x.default.createElement(O.Stack,{flexDirection:"row",mt:1},b.map((function(t){return x.default.createElement(S,{key:"thumbnail-".concat(t.seed),alt:"",src:t.image_url})}))))};I.propTypes={date:k.default.string.isRequired,thumbnails:k.default.array};var T=I;i.default=T},68383:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C,w=_(b(87363)),x=_(b(79769)),E=b(36626),O=_(b(23615)),k=_(b(33977)),P=(0,E.styled)(E.Typography)(C||(C=(0,x.default)(["\n margin-bottom: ",";\n"])),(function(t){return t.theme.spacing(.5)})),S=function PromptHistoryItemTitle(t){var i=t.prompt;return w.default.createElement(k.default,{title:i,arrow:!1,placement:"bottom-start"},w.default.createElement(P,{variant:"body2",noWrap:!0,paragraph:!0},i))};S.propTypes={prompt:O.default.string.isRequired};var I=S;i.default=I},49496:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C,w,x,E,O=_(b(87363)),k=_(b(70966)),P=_(b(79769)),S=b(36626),I=b(38003),T=_(b(23615)),j=_(b(33375)),M=b(34029),A=_(b(71688)),R=_(b(93798)),D=b(10905),L=_(b(60315)),B=_(b(28965)),N=_(b(68383)),W=_(b(57951)),H=["id","date","onHistoryItemDelete"],q=(0,S.styled)(S.ListItem)(C||(C=(0,P.default)(["\n & .e-prompt-history-item-actions {\n position: absolute;\n top: -9999px;\n }\n\n &:hover,\n &:focus-visible,\n &:focus-within {\n .MuiTypography-body2 {\n font-weight: 700;\n max-width: ",";\n }\n\n .e-prompt-history-item-actions {\n position: relative;\n top: -3px;\n }\n }\n"])),(function(t){var i=t.actionsCount;return"calc(100% - ".concat(i," * 26px)")})),z=(0,S.styled)(S.ListItemButton)(w||(w=(0,P.default)(["\n padding: ",";\n align-items: flex-start;\n cursor: inherit;\n"])),(function(t){return t.theme.spacing(.5,2)})),V=(0,S.styled)(S.ListItemIcon)(x||(x=(0,P.default)(["\n min-width: auto;\n\n & > .MuiSvgIcon-root {\n margin-right: ",";\n font-size: 1rem;\n position: relative;\n top: ",";\n }\n"])),(function(t){return t.theme.spacing(1.5)}),(function(t){return t.theme.spacing(.5)})),G=(0,S.styled)(S.Box)(E||(E=(0,P.default)(["\n & .MuiSvgIcon-root {\n font-size: 1rem;\n }\n"]))),U=function PromptHistoryItem(t){var i=t.id,b=t.date,_=t.onHistoryItemDelete,C=(0,k.default)(t,H),w=(0,D.usePromptHistoryAction)(),x=w.getAllowedActions,E=w.onPromptReuse,P=w.onResultEdit,T=w.onImagesRestore,U=C.action,Y=C.prompt,Z=C.text,K=C.images,X=C.thumbnails,$=C.imageType,Q=C.ratio,J=x();return O.default.createElement(q,{tabIndex:"0","data-testid":"e-ph-i",disableGutters:!0,disablePadding:!0,actionsCount:Object.keys(J).length},O.default.createElement(z,{component:"div",role:void 0},O.default.createElement(V,null,O.default.createElement(L.default,{action:U})),O.default.createElement(S.ListItemText,{disableTypography:!0,primary:O.default.createElement(S.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",height:"16px"},O.default.createElement(N.default,{prompt:Y}),O.default.createElement(G,{className:"e-prompt-history-item-actions"},J[D.ACTION_TYPES.REMOVE]&&O.default.createElement(R.default,{onClick:function onClick(){return _(i)},"aria-label":(0,I.__)("Remove item","elementor"),tooltipTitle:(0,I.__)("Remove","elementor")},O.default.createElement(M.TrashIcon,null)),J[D.ACTION_TYPES.REUSE]&&O.default.createElement(R.default,{onClick:function onClick(){return E(i,Y)},"aria-label":(0,I.__)("Reuse prompt","elementor"),tooltipTitle:(0,I.__)("Reuse prompt","elementor")},O.default.createElement(B.default,null)),J[D.ACTION_TYPES.RESTORE]&&O.default.createElement(R.default,{onClick:function onClick(){return T(i,{prompt:Y,images:K,imageType:$,ratio:Q})},"aria-label":(0,I.__)("Restore","elementor"),tooltipTitle:(0,I.__)("Restore","elementor")},O.default.createElement(A.default,null)),J[D.ACTION_TYPES.EDIT]&&O.default.createElement(R.default,{onClick:function onClick(){return P(i,Z)},"aria-label":(0,I.__)("Edit result","elementor"),tooltipTitle:(0,I.__)("Edit","elementor")},O.default.createElement(j.default,null)))),secondary:O.default.createElement(W.default,{date:b,thumbnails:X})})))};U.propTypes={id:T.default.string.isRequired,action:T.default.string.isRequired,prompt:T.default.string.isRequired,date:T.default.string.isRequired,onHistoryItemDelete:T.default.func.isRequired,text:T.default.string,images:T.default.array,thumbnails:T.default.array,imageType:T.default.string,ratio:T.default.string};var Y=U;i.default=Y},27199:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=_(b(70966)),E=b(36626),O=b(38003),k=_(b(23615)),P=_(b(49496)),S=b(22809),I=["id","date"],T=(0,E.styled)(E.List)((function(t){var i=t.theme;return{borderBottom:"1px solid ".concat(i.palette.action.focus)}})),j=(0,E.styled)(E.Typography)((function(t){var i=t.theme;return{padding:i.spacing(1.5,2),color:i.palette.secondary.light}})),M=(0,O.__)("F j, g:i A","elementor"),A=function PromptHistoryPeriod(t){var i=t.periodTitle,b=t.historyItems,_=t.onHistoryItemDelete;return C.default.createElement(T,{"data-testid":"e-ph-p",subheader:C.default.createElement(E.ListSubheader,{disableSticky:!0,disableGutters:!0},C.default.createElement(j,{variant:"body2",role:"heading","aria-level":"6"},i))},b.map((function(t){var i=t.id,b=t.date,E=(0,x.default)(t,I);return C.default.createElement(P.default,(0,w.default)({key:i,date:(0,S.translateDate)(M,b),onHistoryItemDelete:function onHistoryItemDelete(){return _(i)},id:i},E))})))};A.propTypes={periodTitle:k.default.string.isRequired,historyItems:k.default.array.isRequired,onHistoryItemDelete:k.default.func.isRequired};var R=A;i.default=R},49821:(t,i,b)=>{"use strict";var _=b(38003).sprintf,C=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w,x=C(b(87363)),E=C(b(93231)),O=b(36626),k=b(38003),P=C(b(23615)),S=b(34029),I=b(62219),T="full",j="small",M=(w={},(0,E.default)(w,T,(0,k.__)("Want to see your %s generation history for as far as the past 90 days?","elementor")),(0,E.default)(w,j,(0,k.__)("Want to see your %s generation history for the past 90 days?","elementor")),w),A=function PromptHistoryUpgrade(t){var i=t.variant,b=t.historyType;return x.default.createElement(O.Stack,{justifyContent:"center",sx:{height:j===i?"auto":"100%",textAlign:"center",p:2},"data-testid":"e-ph-upgrade-".concat(i)},x.default.createElement(O.Typography,{variant:"body1",sx:{marginBottom:2}},function getMessage(t,i){var b=M[t]||M[T],C=(0,I.getTranslatedPromptHistoryType)(i);return _(b,C)}(i,b)),x.default.createElement(O.Button,{variant:"contained",color:"accent",size:"small",href:"https://go.elementor.com/ai-popup-purchase-dropdown/",target:"_blank",rel:"noopener noreferrer",startIcon:x.default.createElement(S.UpgradeIcon,null),sx:{width:"50%",alignSelf:"center","&:hover":{color:"accent.contrastText"}}},(0,k.__)("Upgrade now","elementor")))};A.propTypes={variant:P.default.oneOf([T,j]).isRequired,historyType:P.default.oneOf(Object.values(I.HISTORY_TYPES)).isRequired};var R=A;i.default=R},51391:(t,i,b)=>{"use strict";var _=b(73203),C=b(7501);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==C(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in t)if("default"!==x&&Object.prototype.hasOwnProperty.call(t,x)){var E=w?Object.getOwnPropertyDescriptor(t,x):null;E&&(E.get||E.set)?Object.defineProperty(_,x,E):_[x]=t[x]}_.default=t,b&&b.set(t,_);return _}(b(87363)),x=_(b(73119)),E=b(38003),O=_(b(3491));function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}var k=(0,w.forwardRef)((function(t,i){return w.default.createElement(O.default,(0,x.default)({name:"prompt",placeholder:(0,E.__)("Describe the text and tone you want to use","elementor")+"..."},t,{ref:i}))}));i.default=k},79619:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=b(36626),x=b(38003),E=_(b(23615)),O=function PromptSuggestions(t){var i;return C.default.createElement(w.Box,null,C.default.createElement(w.Typography,{variant:"subtitle1",color:"text.secondary"},(0,x.__)("Suggested prompts","elementor")+":"),C.default.createElement(w.Stack,{direction:"column",alignItems:"flex-start",gap:1,sx:{my:1}},null===(i=t.suggestions)||void 0===i?void 0:i.map((function(i,b){var _;return C.default.createElement(w.Chip,{key:b,variant:"outlined",size:"large",color:"secondary",label:(null===(_=t.suggestionFilter)||void 0===_?void 0:_.call(t,i))||i,onClick:function onClick(){return t.onSelect(i)}})}))))};O.propTypes={suggestions:E.default.arrayOf(E.default.string),onSelect:E.default.func.isRequired,suggestionFilter:E.default.func};var k=O;i.default=k},87105:(t,i,b)=>{"use strict";var _=b(73203),C=b(7501);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==C(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in t)if("default"!==x&&Object.prototype.hasOwnProperty.call(t,x)){var E=w?Object.getOwnPropertyDescriptor(t,x):null;E&&(E.get||E.set)?Object.defineProperty(_,x,E):_[x]=t[x]}_.default=t,b&&b.set(t,_);return _}(b(87363)),x=_(b(73119)),E=b(36626),O=_(b(23615));function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}var k=(0,w.forwardRef)((function(t,i){return w.default.createElement(E.TextField,(0,x.default)({inputRef:i,multiline:!0,minRows:4,maxRows:20,color:"secondary"},t))}));k.propTypes={value:O.default.string,onChange:O.default.func,helperText:O.default.string};var P=k;i.default=P},33977:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=_(b(70966)),E=b(36626),O=_(b(23615)),k=["children"],P=function Tooltip(t){var i=t.children,b=(0,x.default)(t,k);return C.default.createElement(E.Tooltip,(0,w.default)({componentsProps:{tooltip:{sx:{'&.MuiTooltip-tooltip[class*="MuiTooltip-tooltipPlacement"]':{m:0,fontSize:"10px",fontWeight:500,lineHeight:"1.4em"},py:.5,px:1}}}},b),i)};P.propTypes={children:O.default.oneOfType([O.default.arrayOf(O.default.node),O.default.node])};var S=P;i.default=S},39453:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=_(b(70966)),E=b(36626),O=_(b(23615)),k=["children"],P=function OverlayBarText(t){var i=t.children,b=(0,x.default)(t,k);return C.default.createElement(E.Typography,(0,w.default)({variant:"caption",color:"common.white"},b),i)};P.propTypes={children:O.default.node};var S=P;i.default=S},28932:(t,i,b)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var _=b(36626),C=(0,_.styled)(_.Stack)((function(t){var i=t.theme,b=t.position,_={width:"100%",position:"absolute",left:0,padding:i.spacing(2.5)};return"top"===b?_.top=0:"bottom"===b&&(_.bottom=0),_}));i.default=C},22231:(t,i,b)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var _=b(36626),C=(0,_.styled)(_.Box)((function(t){var i=t.theme;return{width:"100%",height:"100%",position:"absolute",backgroundColor:"rgba(0,0,0,0.5)",transition:"opacity ".concat(i.transitions.duration.short,"ms ").concat(i.transitions.easing.easeInOut),opacity:0,"&:hover":{opacity:1}}}));i.default=C},86300:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=_(b(93231)),E=_(b(70966)),O=b(36626),k=_(b(23615)),P=["sx"];function ownKeys(t,i){var b=Object.keys(t);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(t);i&&(_=_.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),b.push.apply(b,_)}return b}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var b=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(b),!0).forEach((function(i){(0,x.default)(t,i,b[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(b,i))}))}return t}var S=function Panel(t){var i=t.sx,b=void 0===i?{}:i,_=(0,E.default)(t,P);return C.default.createElement(C.default.Fragment,null,C.default.createElement(O.Box,(0,w.default)({sx:_objectSpread({p:4,width:360,flexShrink:0,height:"100%",overflowY:"auto"},b)},_),_.children),C.default.createElement(O.Divider,{orientation:"vertical"}))};S.propTypes={children:k.default.node,sx:k.default.object};var I=S;i.default=I},3491:(t,i,b)=>{"use strict";var _=b(73203),C=b(7501);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==C(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in t)if("default"!==x&&Object.prototype.hasOwnProperty.call(t,x)){var E=w?Object.getOwnPropertyDescriptor(t,x):null;E&&(E.get||E.set)?Object.defineProperty(_,x,E):_[x]=t[x]}_.default=t,b&&b.set(t,_);return _}(b(87363)),x=_(b(73119)),E=b(36626),O=_(b(23615)),k=b(34029);function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}var P=(0,E.styled)(E.TextField)((function(){return{".wp-admin & .MuiInputBase-input, & .MuiInputBase-input:focus":{backgroundColor:"initial",boxShadow:"none",border:0,color:"inherit",outline:0,padding:"16.5px 14px 16.5px 0","&.MuiInputBase-inputSizeSmall":{padding:"8.5px 14px 8.5px 0"}}}})),S=(0,w.forwardRef)((function(t,i){return w.default.createElement(P,(0,x.default)({autoFocus:!0,fullWidth:!0,required:!0,size:"small",color:"secondary",InputProps:{autoComplete:"off",startAdornment:w.default.createElement(E.InputAdornment,{position:"start"},w.default.createElement(k.SearchIcon,null))},placeholder:t.placeholder,name:t.name,value:t.value,onChange:t.onChange},t,{inputRef:i}))}));S.propTypes={placeholder:O.default.string,name:O.default.string,value:O.default.string,onChange:O.default.func};var I=S;i.default=I},7124:(t,i,b)=>{"use strict";var _=b(38003).__,C=b(23615),w=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var x=w(b(87363)),E=w(b(73119)),O=w(b(93231)),k=w(b(70966)),P=b(36626),S=b(34029),I=["onClose","sx"];function ownKeys(t,i){var b=Object.keys(t);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(t);i&&(_=_.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),b.push.apply(b,_)}return b}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var b=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(b),!0).forEach((function(i){(0,O.default)(t,i,b[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(b,i))}))}return t}var T=function BannerActions(t){var i=t.onClose;return x.default.createElement(P.Stack,{direction:"row",alignItems:"center",gap:1},x.default.createElement(P.Button,{size:"small",color:"inherit",variant:"outlined",onClick:function onClick(){return window.open("https://go.elementor.com/ai-banner-free-upgrade/","_blank")}},_("Upgrade","elementor")),x.default.createElement(P.IconButton,{color:"inherit",size:"small",onClick:i},x.default.createElement(S.XIcon,null)))};T.propTypes={onClose:C.func};var j=function UpgradeBanner(t){var i=t.onClose,b=t.sx,C=void 0===b?{}:b,w=(0,k.default)(t,I);return x.default.createElement(P.Alert,(0,E.default)({icon:!1,action:x.default.createElement(T,{onClose:i})},w,{sx:_objectSpread({backgroundColor:"accent.main",color:"accent.contrastText"},C)}),_("Youre using a limited license. Get maximum access to Elementor AI.","elementor"))};j.propTypes={onClose:C.func,sx:C.object};var M=j;i.default=M},46369:(t,i,b)=>{"use strict";var _=b(73203),C=b(7501);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==C(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in t)if("default"!==x&&Object.prototype.hasOwnProperty.call(t,x)){var E=w?Object.getOwnPropertyDescriptor(t,x):null;E&&(E.get||E.set)?Object.defineProperty(_,x,E):_[x]=t[x]}_.default=t,b&&b.set(t,_);return _}(b(87363)),x=_(b(40131)),E=b(36626),O=b(38003),k=_(b(23615)),P=b(34029);function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}var S=(0,E.styled)(E.Paper)((function(t){var i=t.theme;return{position:"relative",'[data-popper-placement="top"] &':{marginBottom:i.spacing(2.5)},'[data-popper-placement="bottom"] &':{marginTop:i.spacing(2.5)},padding:i.spacing(3),boxShadow:i.shadows[4],zIndex:"9999"}})),I=(0,E.styled)(E.Box)((function(t){var i=t.theme;return{width:i.spacing(5),height:i.spacing(2.5),position:"absolute",overflow:"hidden",left:"50% !important",transform:"translateX(-50%) rotate(var(--rotate, 0deg)) !important",'[data-popper-placement="top"] &':{top:"100%"},'[data-popper-placement="bottom"] &':{"--rotate":"180deg",top:"calc(".concat(i.spacing(2.5)," * -1)")},"&::after":{backgroundColor:i.palette.background.paper,content:'""',display:"block",position:"absolute",width:i.spacing(2.5),height:i.spacing(2.5),top:0,left:"50%",transform:"translateX(-50%) translateY(-50%) rotate(45deg)",boxShadow:"1px 1px 5px 0px rgba(0, 0, 0, 0.2)",backgroundImage:"linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05))"}}})),T=[(0,O.__)("Let AI build your container layouts and content with ease and radically transform the way you create websites.","elementor"),(0,O.__)("Generate your website's text or create custom code without having to write a single line yourself.","elementor"),(0,O.__)("Effortlessly create or enhance stunning images and bring your ideas to life.","elementor"),(0,O.__)("Access 30-days of AI History with the AI Starter plan and 90-days with the Power plan.","elementor")],j=(0,E.styled)(E.Chip)((function(){return{"& .MuiChip-label":{lineHeight:1.5},"& .MuiSvgIcon-root.MuiChip-icon":{fontSize:"1.25rem"}}})),M=function UpgradeChip(t){var i=t.hasSubscription,b=void 0!==i&&i,_=t.usagePercentage,C=void 0===_?0:_,k=(0,w.useState)(!1),M=(0,x.default)(k,2),A=M[0],R=M[1],D=(0,w.useRef)(null),L=(0,w.useRef)(null),B="https://go.elementor.com/ai-popup-purchase-dropdown/";b&&(B=C>=100?"https://go.elementor.com/ai-popup-upgrade-limit-reached/":"https://go.elementor.com/ai-popup-upgrade-limit-reached-80-percent/");var N=b?(0,O.__)("Upgrade Elementor AI","elementor"):(0,O.__)("Get Elementor AI","elementor");return w.default.createElement(E.Box,{component:"span","aria-owns":A?"e-ai-upgrade-popover":void 0,"aria-haspopup":"true",onMouseEnter:function showPopover(){return R(!0)},onMouseLeave:function hidePopover(){return R(!1)},ref:D,display:"flex",alignItems:"center"},w.default.createElement(j,{color:"accent",label:(0,O.__)("Upgrade","elementor"),icon:w.default.createElement(P.AIIcon,null),size:"small"}),w.default.createElement(E.Popper,{open:A,anchorEl:D.current,sx:{zIndex:"9999",maxWidth:300},modifiers:[{name:"arrow",enabled:!0,options:{element:L.current}}]},w.default.createElement(S,null,w.default.createElement(I,{ref:L}),w.default.createElement(E.Typography,{variant:"h5",color:"text.primary"},(0,O.__)("Maximize Your Access to Elementor AI","elementor")),w.default.createElement(E.List,{sx:{mb:1}},T.map((function(t,i){return w.default.createElement(E.ListItem,{key:i,disableGutters:!0,sx:{alignItems:"flex-start"}},w.default.createElement(E.ListItemIcon,null,w.default.createElement(P.CheckedCircleIcon,null)),w.default.createElement(E.ListItemText,{sx:{m:0}},w.default.createElement(E.Typography,{variant:"body2"},t)))}))),w.default.createElement(E.Button,{variant:"contained",color:"accent",size:"small",href:B,target:"_blank",startIcon:w.default.createElement(P.AIIcon,null),sx:{"&:hover":{color:"accent.contrastText"}}},N))))},A=M;i.default=A,M.propTypes={hasSubscription:k.default.bool,usagePercentage:k.default.number}},24256:(t,i,b)=>{"use strict";var _=b(38003).__,C=b(23615),w=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var x,E,O,k,P=w(b(87363)),S=w(b(70966)),I=w(b(73119)),T=w(b(93231)),j=b(36626),M=["onClose","usagePercentage","hasSubscription"],A="subscription",R="noSubscription",D=[{threshold:95,title:(x={},(0,T.default)(x,A,_("Youve used over 95% of your Elementor AI plan.","elementor")),(0,T.default)(x,R,_("Youve used over 95% of the free trial.","elementor")),x),url:(E={},(0,T.default)(E,A,"https://go.elementor.com/ai-banner-paid-95-limit-reach/"),(0,T.default)(E,R,"https://go.elementor.com/ai-banner-free-95-limit-reach/"),E),color:"error"},{threshold:80,title:(O={},(0,T.default)(O,A,_("Youve used over 80% of your Elementor AI plan.","elementor")),(0,T.default)(O,R,_("Youve used over 80% of the free trial.","elementor")),O),url:(k={},(0,T.default)(k,A,"https://go.elementor.com/ai-banner-paid-80-limit-reach/"),(0,T.default)(k,R,"https://go.elementor.com/ai-banner-free-80-limit-reach/"),k),color:"warning"}],L=function UpgradeButton(t){return P.default.createElement(j.Button,(0,I.default)({color:"inherit"},t),_("Upgrade","elementor"))},B=function UsageLimitAlert(t){t.onClose;var i=t.usagePercentage,b=t.hasSubscription,C=(0,S.default)(t,M),w=D.find((function(t){var b=t.threshold;return i>=b}));if(!w)return null;var x=b?A:R,E=w.title,O=w.url,k=w.color;return P.default.createElement(j.Alert,(0,I.default)({severity:"warning",action:P.default.createElement(L,{onClick:function handleUpgradeClick(){return window.open(O[x],"_blank")}}),color:k},C),P.default.createElement(j.AlertTitle,null,E[x]),_("Get maximum access.","elementor"))};B.propTypes={onClose:C.func,usagePercentage:C.number,hasSubscription:C.bool};var N=B;i.default=N},86076:(t,i,b)=>{"use strict";var _=b(23615),C=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=C(b(87363)),x=C(b(7124)),E=C(b(24256)),O=C(b(66604)),k=function UsageMessages(t){var i=t.hasSubscription,b=t.usagePercentage,_=t.sx,C=(0,O.default)({usagePercentage:b,hasSubscription:i}),k=C.showBanner,P=C.markBannerAsViewed;return w.default.createElement(w.default.Fragment,null,k&&w.default.createElement(x.default,{onClose:P,sx:_}),w.default.createElement(E.default,{hasSubscription:i,usagePercentage:b,sx:_}))};k.propTypes={hasSubscription:_.bool,usagePercentage:_.number,sx:_.object};var P=k;i.default=P},30313:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=_(b(93231)),E=_(b(70966)),O=b(36626),k=_(b(23615)),P=_(b(78029)),S=["sx"];function ownKeys(t,i){var b=Object.keys(t);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(t);i&&(_=_.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),b.push.apply(b,_)}return b}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var b=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(b),!0).forEach((function(i){(0,x.default)(t,i,b[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(b,i))}))}return t}var I=function WizardDialog(t){return C.default.createElement(O.Dialog,{open:!0,onClose:t.onClose,fullWidth:!0,hideBackdrop:!0,maxWidth:"lg",PaperProps:{sx:{height:"88vh"}},sx:{zIndex:9999}},t.children)};I.propTypes={onClose:k.default.func.isRequired,children:k.default.node.isRequired};var T=function WizardDialogContent(t){var i=t.sx,b=void 0===i?{}:i,_=(0,E.default)(t,S);return C.default.createElement(O.DialogContent,(0,w.default)({},_,{sx:_objectSpread({display:"flex",flexDirection:"column",justifyContent:"center"},b)}))};T.propTypes={sx:k.default.object},I.Header=P.default,I.Content=T;var j=I;i.default=j},22809:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.translateDate=i.daysDiff=i.MONTH_JANUARY_INDEX=i.MONTH_DECEMBER_INDEX=void 0;i.MONTH_DECEMBER_INDEX=12;i.MONTH_JANUARY_INDEX=0;i.translateDate=function translateDate(t,i,b){var _;return(0,(null===(_=window.wp)||void 0===_?void 0:_.date).dateI18n)(t,i,b)};i.daysDiff=function daysDiff(t,i){var b=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()),_=Date.UTC(i.getFullYear(),i.getMonth(),i.getDate());return Math.floor((_-b)/864e5)}},8227:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.vh=void 0;i.vh=function vh(t){return t*Math.max(document.documentElement.clientHeight,window.innerHeight||0)/100}},5348:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(50824)),w=_(b(10029)),x=b(46183),E=_(b(60675)),O=function(){var t=(0,w.default)(C.default.mark((function _callee(t,i){var b,_,w;return C.default.wrap((function _callee$(C){for(;;)switch(C.prev=C.next){case 0:if(b=i.codeLanguage,_=i.htmlMarkup,w=i.elementId,"css"!==b){C.next=3;break}return C.abrupt("return",(0,x.getCustomCSS)(t,_,w));case 3:return C.abrupt("return",(0,x.getCustomCode)(t,b));case 4:case"end":return C.stop()}}),_callee)})));return function getCodeResult(i,b){return t.apply(this,arguments)}}(),k=function useCodePrompt(t){var i=t.codeLanguage,b=t.htmlMarkup,_=t.elementId,C=t.initialCredits;return(0,E.default)((function(t){return O(t,{codeLanguage:i,htmlMarkup:b,elementId:_})}),{credits:C})};i.default=k},69447:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(50824)),w=_(b(10029)),x=_(b(40131)),E=b(87363),O=b(46183),k=function useDeletePromptHistoryItem(){var t=(0,E.useState)(!1),i=(0,x.default)(t,2),b=i[0],_=i[1],k=(0,E.useState)(""),P=(0,x.default)(k,2),S=P[0],I=P[1],T=function(){var t=(0,w.default)(C.default.mark((function _callee(t){return C.default.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",new Promise((function(i,b){I(""),_(!0),(0,O.deleteHistoryItem)(t).then((function(){i(!0)})).catch((function(t){var i=(null==t?void 0:t.responseText)||t;I(i),b(i)})).finally((function(){return _(!1)}))})));case 1:case"end":return i.stop()}}),_callee)})));return function deleteItem(i){return t.apply(this,arguments)}}();return{isLoading:b,error:S,deleteItem:T}};i.default=k},66690:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(40131)),w=b(87363),x=function useImageNavigation(t){var i=(0,w.useState)(-1),b=(0,C.default)(i,2),_=b[0],x=b[1],E={reset:function reset(){return x(-1)},prev:function prev(){var i=_+1;i>=t.length&&(i=0),x(i)},next:function next(){var i=_-1;i<0&&(i=t.length-1),x(i)}};return{zoomIndex:_,setZoomIndex:x,actions:E}};i.default=x},30420:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(40131)),w=b(87363),x=function useImagesPreload(){var t=(0,w.useState)(!1),i=(0,C.default)(t,2),b=i[0],_=i[1];return{ready:b,preloadImages:function preloadImages(t){_(!1),Promise.all(t.map((function(t){return function loadImage(t){return new Promise((function(i,b){var _=new Image;_.src=t,_.onload=function(){return i(t)},_.onerror=function(t){return b(t)}}))}(t)}))).then((function(){return _(!0)})).catch((function(t){return console.log("Failed to load images",t)}))}}};i.default=x},24395:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=function useIntroduction(t){var i,b,_,x,E=window.elementor?null===(i=window.elementor.config)||void 0===i?void 0:i.user:null===(b=window.elementorAdmin)||void 0===b||null===(_=b.config)||void 0===_?void 0:_.user,O=(0,w.useState)(!(null==E||null===(x=E.introduction)||void 0===x||!x[t])),k=(0,C.default)(O,2),P=k[0],S=k[1];return{isViewed:P,markAsViewed:function markAsViewed(){return t?new Promise((function(i,b){P&&b(),S(!0),elementorCommon.ajax.addRequest("introduction_viewed",{data:{introductionKey:t},error:function error(){S(!1),b()},success:function success(){S(!0),null!=E&&E.introduction&&(E.introduction[t]=!0),i()}})})):Promise.reject()}}};var C=_(b(40131)),w=b(87363)},8817:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=b(46183),w=_(b(60675)),x=b(25455),E=new Map([["media",C.getImagePromptEnhanced],["layout",C.getLayoutPromptEnhanced]]),O=function usePromptEnhancer(t,i){var b=(0,x.useConfig)().mode,_=(0,w.default)((function(){return function getResult(t,i,b){if(!E.has(i))throw new Error("Invalid prompt type: ".concat(i));return E.get(i)(t,b)}(t,i,b)}),t),C=_.data,O=_.isLoading;return{enhance:_.send,isEnhancing:O,enhancedPrompt:null==C?void 0:C.result}};i.default=O},87984:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(50824)),w=_(b(9833)),x=_(b(10029)),E=_(b(40131)),O=_(b(93231)),k=b(87363),P=b(46183);function ownKeys(t,i){var b=Object.keys(t);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(t);i&&(_=_.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),b.push.apply(b,_)}return b}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var b=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(b),!0).forEach((function(i){(0,O.default)(t,i,b[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(b,i))}))}return t}var S=function getImageThumbnailURL(t,i){return t?"".concat(t,"/?o=").concat(btoa(i,!1)):i},I=function normalizeItems(t){var i=t.meta,b=t.items;return null==b?void 0:b.map((function(t){var b,_,C,w,x,E,O,k,P,I;return{id:null==t?void 0:t.elementorApiId,date:null==t?void 0:t.createdAt,action:null==t?void 0:t.action,prompt:null==t||null===(b=t.request)||void 0===b?void 0:b.prompt,imageType:null==t||null===(_=t.request)||void 0===_?void 0:_.image_type,ratio:null==t||null===(C=t.request)||void 0===C?void 0:C.ratio,text:null==t||null===(w=t.response)||void 0===w||null===(x=w.results)||void 0===x?void 0:x.text,images:null==t||null===(E=t.response)||void 0===E||null===(O=E.results)||void 0===O?void 0:O.images,thumbnails:null==t||null===(k=t.response)||void 0===k||null===(P=k.results)||void 0===P||null===(I=P.images)||void 0===I?void 0:I.map((function(t){return _objectSpread(_objectSpread({},t),{},{image_url:S(i.thumbnailUrl,t.image_url)})}))}}))},T=function usePromptHistory(t){var i=(0,k.useState)(!1),b=(0,E.default)(i,2),_=b[0],O=b[1],S=(0,k.useState)({}),T=(0,E.default)(S,2),j=T[0],M=T[1],A=(0,k.useState)(""),R=(0,E.default)(A,2),D=R[0],L=R[1],B=function(){var i=(0,x.default)(C.default.mark((function _callee(i){var b,_;return C.default.wrap((function _callee$(C){for(;;)switch(C.prev=C.next){case 0:return b=i.page,_=i.limit,C.abrupt("return",new Promise((function(i,C){O(!0),(0,P.getHistory)(t,b,_).then((function(t){var b=JSON.parse(JSON.stringify(j));b.meta=t.meta,b.items=[].concat((0,w.default)((null==b?void 0:b.items)||[]),(0,w.default)(I(t))),M(b),i(!0)})).catch((function(t){var i=(null==t?void 0:t.responseText)||t;L(i),C(i)})).finally((function(){return O(!1)}))})));case 2:case"end":return C.stop()}}),_callee)})));return function fetchData(t){return i.apply(this,arguments)}}();return{isLoading:_,error:D,items:j.items,meta:j.meta,fetchData:B,deleteItemById:function deleteItemById(t){var i=j.items.findIndex((function(i){return i.id===t}));if(-1===i)return!1;var b=JSON.parse(JSON.stringify(j));return b.items.splice(i,1),M(b),!0}}};i.default=T},60675:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(50824)),w=_(b(93231)),x=_(b(10029)),E=_(b(40131)),O=_(b(70966)),k=b(87363),P=b(46183),S=["text","response_id","usage","images"];function ownKeys(t,i){var b=Object.keys(t);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(t);i&&(_=_.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),b.push.apply(b,_)}return b}var I=function normalizeResponse(t){var i=t.text,b=t.response_id,_=t.usage,C=t.images,w=(0,O.default)(t,S),x=_?_.quota-_.usedQuota:0,E={result:i||C,responseId:b,credits:Math.max(x,0)};return w.base_template_id&&(E.baseTemplateId=w.base_template_id),E.type=w.template_type,E},T=function usePrompt(t,i){var b=(0,k.useState)(!1),_=(0,E.default)(b,2),O=_[0],S=_[1],T=(0,k.useState)(""),j=(0,E.default)(T,2),M=j[0],A=j[1],R=(0,k.useState)(i),D=(0,E.default)(R,2),L=D[0],B=D[1],N=function(){var i=(0,x.default)(C.default.mark((function _callee(){var i,b,_,w=arguments;return C.default.wrap((function _callee$(C){for(;;)switch(C.prev=C.next){case 0:for(i=w.length,b=new Array(i),_=0;_<i;_++)b[_]=w[_];return C.abrupt("return",new Promise((function(i,_){A(""),S(!0),t.apply(void 0,b).then((function(t){var b=I(t);B(b),i(b)})).catch((function(t){var i=(null==t?void 0:t.responseText)||t;A(i),_(i)})).finally((function(){return S(!1)}))})));case 2:case"end":return C.stop()}}),_callee)})));return function send(){return i.apply(this,arguments)}}();return{isLoading:O,error:M,data:L,setResult:function setResult(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,b=function _objectSpread(t){for(var i=1;i<arguments.length;i++){var b=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(b),!0).forEach((function(i){(0,w.default)(t,i,b[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(b,i))}))}return t}({},L);b.result=t,i&&(b.responseId=i),B(b)},reset:function reset(){B((function(t){return{credits:t.credits,result:"",responseId:""}})),A(""),S(!1)},send:N,sendUsageData:function sendUsageData(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L;return t.responseId&&(0,P.setStatusFeedback)(t.responseId)}}};i.default=T},38136:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(40131)),w=b(87363),x=function useSessionStorage(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,b=(0,w.useState)(function getSessionStorageData(){return JSON.parse(sessionStorage.getItem(t))||i}()),_=(0,C.default)(b,2),x=_[0],E=_[1];return{data:x,setStateAndSessionData:function setStateAndSessionData(i){!function setSessionStorageData(i){sessionStorage.setItem(t,JSON.stringify(i))}(i),E(i)}}};i.default=x},65441:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(50824)),w=_(b(10029)),x=b(46183),E=_(b(60675)),O=function(){var t=(0,w.default)(C.default.mark((function _callee(t,i){return C.default.wrap((function _callee$(b){for(;;)switch(b.prev=b.next){case 0:if(!i){b.next=2;break}return b.abrupt("return",(0,x.getEditText)(t,i));case 2:return b.abrupt("return",(0,x.getCompletionText)(t));case 3:case"end":return b.stop()}}),_callee)})));return function getTextResult(i,b){return t.apply(this,arguments)}}(),k=function useTextPrompt(t){return(0,E.default)(O,t)};i.default=k},66604:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.USAGE_PERCENTAGE_THRESHOLD=void 0;var C=_(b(24395));i.USAGE_PERCENTAGE_THRESHOLD=80;var w=function useUpgradeMessage(t){var i=t.usagePercentage,b=t.hasSubscription,_=(0,C.default)("e-ai-upgrade-message"),w=_.isViewed,x=!b;return{showBadge:i>=80||x&&w,showBanner:!w&&x&&i<80,markBannerAsViewed:_.markAsViewed}};i.default=w},5647:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(50824)),w=_(b(93231)),x=_(b(10029)),E=_(b(40131)),O=b(87363),k=b(46183);function ownKeys(t,i){var b=Object.keys(t);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(t);i&&(_=_.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),b.push.apply(b,_)}return b}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var b=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(b),!0).forEach((function(i){(0,w.default)(t,i,b[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(b,i))}))}return t}var P=function useUserInfo(){var t=(0,O.useState)(!1),i=(0,E.default)(t,2),b=i[0],_=i[1],w=(0,O.useState)(!1),P=(0,E.default)(w,2),S=P[0],I=P[1],T=(0,O.useState)({is_connected:!1,is_get_started:!1,connect_url:"",builder_url:"",usage:{hasAiSubscription:!1,quota:0,usedQuota:0}}),j=(0,E.default)(T,2),M=j[0],A=j[1],R=M.usage.quota-M.usage.usedQuota,D=M.usage.usedQuota/M.usage.quota*100,L=function(){var t=(0,x.default)(C.default.mark((function _callee(){var t;return C.default.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:return I(!0),i.next=3,(0,k.getUserInformation)();case 3:t=i.sent,A((function(i){return _objectSpread(_objectSpread({},i),t)})),_(!0),I(!1);case 7:case"end":return i.stop()}}),_callee)})));return function fetchData(){return t.apply(this,arguments)}}();return b||S||L(),{isLoading:S,isLoaded:b,isConnected:M.is_connected,isGetStarted:M.is_get_started,connectUrl:M.connect_url,builderUrl:M.usage.builderUrl,hasSubscription:M.usage.hasAiSubscription,credits:R<0?0:R,usagePercentage:Math.round(D),fetchData:L}};i.default=P},88371:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(73119)),w=b(36626),x=_(b(87363)),E=x.default.forwardRef((function(t,i){return x.default.createElement(w.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},t,{ref:i}),x.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.8815 2.25919C20.9203 2.25301 20.9599 2.24983 21 2.24988C21.0827 2.24978 21.1629 2.26335 21.2384 2.2887C21.367 2.33162 21.4784 2.40776 21.5642 2.5058C21.6895 2.64891 21.76 2.83868 21.749 3.03992C21.7477 3.06492 21.7452 3.08966 21.7414 3.11407C21.3311 6.09743 20.124 8.91507 18.2472 11.2703C16.5079 13.4529 14.2532 15.1635 11.6906 16.2509C11.8289 17.1168 11.7249 18.0054 11.3884 18.8177C11.0289 19.6857 10.4201 20.4275 9.63896 20.9495C8.85782 21.4714 7.93946 21.75 7 21.75H3C2.58579 21.75 2.25 21.4142 2.25 21V17C2.25 16.0605 2.52858 15.1421 3.05052 14.361C3.57246 13.5799 4.3143 12.9711 5.18225 12.6115C5.99455 12.2751 6.88314 12.1711 7.74905 12.3094C8.83643 9.74682 10.547 7.49212 12.7296 5.75287C15.0837 3.87693 17.8998 2.67012 20.8815 2.25919ZM10.0984 16.0649C10.077 16.0082 10.0629 15.9506 10.0557 15.893C9.89413 15.4471 9.63624 15.04 9.2981 14.7019C8.96001 14.3638 8.55301 14.1059 8.10721 13.9444C8.04953 13.9372 7.99178 13.9231 7.93499 13.9016C7.90509 13.8903 7.87632 13.8773 7.84877 13.8628C7.77794 13.8436 7.70633 13.8268 7.63404 13.8124C7.0036 13.687 6.35014 13.7514 5.75628 13.9974C5.16242 14.2433 4.65484 14.6599 4.29772 15.1944C3.94061 15.7288 3.75 16.3572 3.75 17V20.25H7C7.64279 20.25 8.27114 20.0594 8.8056 19.7022C9.34006 19.3451 9.75662 18.8376 10.0026 18.2437C10.2486 17.6498 10.313 16.9964 10.1876 16.3659C10.1732 16.2935 10.1563 16.2218 10.1371 16.1509C10.1226 16.1234 10.1097 16.0947 10.0984 16.0649ZM10.3588 13.6412C10.7069 13.9894 10.9969 14.3876 11.2204 14.8204C12.2258 14.3839 13.1782 13.8417 14.0621 13.2048C13.3066 11.827 12.173 10.6933 10.7952 9.93782C10.1583 10.8218 9.61603 11.7741 9.17957 12.7795C9.61238 13.0031 10.0106 13.293 10.3588 13.6412ZM11.7434 8.75107C13.1943 9.59789 14.4021 10.8057 15.2489 12.2565C15.9093 11.6727 16.5204 11.0304 17.0741 10.3355C18.5698 8.45849 19.5983 6.25889 20.0821 3.9179C17.7411 4.40165 15.5415 5.43018 13.6644 6.92595C12.9696 7.47964 12.3273 8.0907 11.7434 8.75107Z"}))}));i.default=E},82752:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(73119)),w=_(b(87363)),x=b(36626),E=w.default.forwardRef((function(t,i){return w.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},t,{ref:i}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.5303 18.2803C15.8232 17.9874 15.8232 17.5126 15.5303 17.2197L10.0607 11.75L15.5303 6.28033C15.8232 5.98744 15.8232 5.51256 15.5303 5.21967C15.2374 4.92678 14.7626 4.92678 14.4697 5.21967L8.46967 11.2197C8.17678 11.5126 8.17678 11.9874 8.46967 12.2803L14.4697 18.2803C14.7626 18.5732 15.2374 18.5732 15.5303 18.2803Z"}))}));i.default=E},49448:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(73119)),w=_(b(87363)),x=b(36626),E=w.default.forwardRef((function(t,i){return w.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},t,{ref:i}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.46967 18.2803C8.17678 17.9874 8.17678 17.5126 8.46967 17.2197L13.9393 11.75L8.46967 6.28033C8.17678 5.98744 8.17678 5.51256 8.46967 5.21967C8.76256 4.92678 9.23744 4.92678 9.53033 5.21967L15.5303 11.2197C15.8232 11.5126 15.8232 11.9874 15.5303 12.2803L9.53033 18.2803C9.23744 18.5732 8.76256 18.5732 8.46967 18.2803Z"}))}));i.default=E},94345:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(73119)),w=_(b(87363)),x=b(36626),E=w.default.forwardRef((function(t,i){return w.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},t,{ref:i}),w.default.createElement("path",{fillRule:"evenodd",d:"M7.53 7.47a.75.75 0 0 1 0 1.06L4.06 12l3.47 3.47a.75.75 0 1 1-1.06 1.06l-4-4a.75.75 0 0 1 0-1.06l4-4a.75.75 0 0 1 1.06 0ZM16.47 7.47a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 1 1-1.06-1.06L19.94 12l-3.47-3.47a.75.75 0 0 1 0-1.06ZM14.182 3.272a.75.75 0 0 1 .546.91l-4 16a.75.75 0 0 1-1.456-.364l4-16a.75.75 0 0 1 .91-.546Z",clipRule:"evenodd"}))}));i.default=E},85541:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(73119)),w=_(b(87363)),x=b(36626),E=w.default.forwardRef((function(t,i){return w.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},t,{ref:i}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 3.75C8.30964 3.75 7.75 4.30964 7.75 5V15C7.75 15.6904 8.30964 16.25 9 16.25H19C19.6904 16.25 20.25 15.6904 20.25 15V5C20.25 4.30964 19.6904 3.75 19 3.75H9ZM6.25 5C6.25 3.48122 7.48122 2.25 9 2.25H19C20.5188 2.25 21.75 3.48122 21.75 5V15C21.75 16.5188 20.5188 17.75 19 17.75H9C7.48122 17.75 6.25 16.5188 6.25 15V5Z"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 7.75C4.66848 7.75 4.35054 7.8817 4.11612 8.11612C3.8817 8.35054 3.75 8.66848 3.75 9V19C3.75 19.3315 3.8817 19.6495 4.11612 19.8839C4.35054 20.1183 4.66848 20.25 5 20.25H15C15.3315 20.25 15.6495 20.1183 15.8839 19.8839C16.1183 19.6495 16.25 19.3315 16.25 19V17C16.25 16.5858 16.5858 16.25 17 16.25C17.4142 16.25 17.75 16.5858 17.75 17V19C17.75 19.7293 17.4603 20.4288 16.9445 20.9445C16.4288 21.4603 15.7293 21.75 15 21.75H5C4.27065 21.75 3.57118 21.4603 3.05546 20.9445C2.53973 20.4288 2.25 19.7293 2.25 19V9C2.25 8.27065 2.53973 7.57118 3.05546 7.05546C3.57118 6.53973 4.27065 6.25 5 6.25H7C7.41421 6.25 7.75 6.58579 7.75 7C7.75 7.41421 7.41421 7.75 7 7.75H5Z"}))}));i.default=E},90350:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(73119)),w=_(b(87363)),x=b(36626),E=w.default.forwardRef((function(t,i){return w.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},t,{ref:i}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 16.25C4.41421 16.25 4.75 16.5858 4.75 17V19C4.75 19.3315 4.8817 19.6495 5.11612 19.8839C5.35054 20.1183 5.66848 20.25 6 20.25H18C18.3315 20.25 18.6495 20.1183 18.8839 19.8839C19.1183 19.6495 19.25 19.3315 19.25 19V17C19.25 16.5858 19.5858 16.25 20 16.25C20.4142 16.25 20.75 16.5858 20.75 17V19C20.75 19.7293 20.4603 20.4288 19.9445 20.9445C19.4288 21.4603 18.7293 21.75 18 21.75H6C5.27065 21.75 4.57118 21.4603 4.05546 20.9445C3.53973 20.4288 3.25 19.7293 3.25 19V17C3.25 16.5858 3.58579 16.25 4 16.25Z"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.46967 10.4697C6.76256 10.1768 7.23744 10.1768 7.53033 10.4697L12 14.9393L16.4697 10.4697C16.7626 10.1768 17.2374 10.1768 17.5303 10.4697C17.8232 10.7626 17.8232 11.2374 17.5303 11.5303L12.5303 16.5303C12.2374 16.8232 11.7626 16.8232 11.4697 16.5303L6.46967 11.5303C6.17678 11.2374 6.17678 10.7626 6.46967 10.4697Z"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.25C12.4142 3.25 12.75 3.58579 12.75 4V16C12.75 16.4142 12.4142 16.75 12 16.75C11.5858 16.75 11.25 16.4142 11.25 16V4C11.25 3.58579 11.5858 3.25 12 3.25Z"}))}));i.default=E},33375:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(73119)),w=_(b(87363)),x=b(36626),E=w.default.forwardRef((function(t,i){return w.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},t,{ref:i}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.9697 4.96967C14.6408 4.29858 15.5509 3.92157 16.5 3.92157C17.4491 3.92157 18.3592 4.29858 19.0303 4.96967C19.7014 5.64075 20.0784 6.55094 20.0784 7.5C20.0784 8.44905 19.7014 9.35924 19.0303 10.0303L8.53033 20.5303C8.38968 20.671 8.19891 20.75 8 20.75H4C3.58579 20.75 3.25 20.4142 3.25 20V16C3.25 15.8011 3.32902 15.6103 3.46967 15.4697L13.9697 4.96967ZM16.5 5.42157C15.9488 5.42157 15.4201 5.64055 15.0303 6.03033L4.75 16.3107V19.25H7.68934L17.9697 8.96967C18.3595 8.57989 18.5784 8.05123 18.5784 7.5C18.5784 6.94876 18.3595 6.42011 17.9697 6.03033C17.5799 5.64055 17.0512 5.42157 16.5 5.42157Z"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.9697 5.96967C13.2626 5.67677 13.7374 5.67677 14.0303 5.96967L18.0303 9.96967C18.3232 10.2626 18.3232 10.7374 18.0303 11.0303C17.7374 11.3232 17.2626 11.3232 16.9697 11.0303L12.9697 7.03033C12.6768 6.73743 12.6768 6.26256 12.9697 5.96967Z"}))}));i.default=E},46819:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(73119)),w=_(b(87363)),x=b(36626),E=w.default.forwardRef((function(t,i){return w.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},t,{ref:i}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.11612 5.11612C5.35054 4.8817 5.66848 4.75 6 4.75H18C18.3315 4.75 18.6495 4.8817 18.8839 5.11612C19.1183 5.35054 19.25 5.66848 19.25 6V18C19.25 18.3315 19.1183 18.6495 18.8839 18.8839C18.6495 19.1183 18.3315 19.25 18 19.25H11.7335C11.7444 19.1709 11.75 19.0908 11.75 19.01V14.01C11.75 13.8051 11.7141 13.604 11.6457 13.4149L16.25 8.81066V11C16.25 11.4142 16.5858 11.75 17 11.75C17.4142 11.75 17.75 11.4142 17.75 11V7C17.75 6.89831 17.7298 6.80134 17.6931 6.71291C17.6565 6.62445 17.6022 6.54158 17.5303 6.46967C17.4584 6.39776 17.3755 6.34351 17.2871 6.30691C17.1993 6.27051 17.1031 6.2503 17.0022 6.25C17.0015 6.25 17.0007 6.25 17 6.25H16.9997H13C12.5858 6.25 12.25 6.58579 12.25 7C12.25 7.41421 12.5858 7.75 13 7.75H15.1893L10.5803 12.359C10.3956 12.2941 10.1995 12.26 10 12.26H5C4.91585 12.26 4.83232 12.2661 4.75 12.278V6C4.75 5.66848 4.8817 5.35054 5.11612 5.11612ZM4.75 14.01V18C4.75 18.3315 4.8817 18.6495 5.11612 18.8839C5.35054 19.1183 5.66848 19.25 6 19.25H10.07C10.11 19.2383 10.1468 19.2168 10.1768 19.1868C10.2237 19.1399 10.25 19.0763 10.25 19.01V14.01C10.25 13.9437 10.2237 13.8801 10.1768 13.8332C10.1299 13.7863 10.0663 13.76 10 13.76H5C4.9337 13.76 4.87011 13.7863 4.82322 13.8332C4.77634 13.8801 4.75 13.9437 4.75 14.01ZM3.25 14.01V6C3.25 5.27065 3.53973 4.57118 4.05546 4.05546C4.57118 3.53973 5.27065 3.25 6 3.25H18C18.7293 3.25 19.4288 3.53973 19.9445 4.05546C20.4603 4.57118 20.75 5.27065 20.75 6V18C20.75 18.7293 20.4603 19.4288 19.9445 19.9445C19.4288 20.4603 18.7293 20.75 18 20.75H10.187C10.1251 20.7566 10.0627 20.76 10 20.76H5C4.53587 20.76 4.09075 20.5756 3.76256 20.2474C3.43438 19.9193 3.25 19.4741 3.25 19.01V18V14.01Z"}))}));i.default=E},18578:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=b(36626),E=C.default.forwardRef((function(t,i){return C.default.createElement(x.SvgIcon,(0,w.default)({viewBox:"0 0 24 24"},t,{ref:i}),C.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.30691 2.71291C2.27024 2.80134 2.25 2.89831 2.25 3V8C2.25 8.41421 2.58579 8.75 3 8.75C3.41421 8.75 3.75 8.41421 3.75 8V4.81066L10.0056 11.0663L10.0057 11.0663C10.8022 11.8631 11.2497 12.9434 11.25 14.07V14.0702V15V21C11.25 21.4142 11.5858 21.75 12 21.75C12.4142 21.75 12.75 21.4142 12.75 21V15V14.0702V14.07C12.7503 12.9434 13.1979 11.863 13.9944 11.0663L20.25 4.81066V8C20.25 8.41421 20.5858 8.75 21 8.75C21.4142 8.75 21.75 8.41421 21.75 8V3C21.75 2.98706 21.7497 2.97419 21.749 2.96141C21.7446 2.87376 21.7251 2.79009 21.6931 2.71291C21.6565 2.62445 21.6022 2.54158 21.5303 2.46967C21.4584 2.39776 21.3755 2.34351 21.2871 2.30691C21.1987 2.27024 21.1017 2.25 21 2.25H16C15.5858 2.25 15.25 2.58579 15.25 3C15.25 3.41421 15.5858 3.75 16 3.75H19.1893L12.9337 10.0057L12.9336 10.0057C12.5656 10.3739 12.2526 10.7867 12 11.2316C11.7474 10.7867 11.4344 10.3739 11.0664 10.0057L11.0663 10.0057L4.81066 3.75H8C8.41421 3.75 8.75 3.41421 8.75 3C8.75 2.58579 8.41421 2.25 8 2.25H3C2.7937 2.25 2.60686 2.33329 2.47126 2.46808C2.47073 2.46861 2.4702 2.46914 2.46967 2.46967C2.46914 2.4702 2.46861 2.47073 2.46808 2.47126C2.39696 2.5428 2.34324 2.62511 2.30691 2.71291Z"}))}));i.default=E},7882:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(73119)),w=_(b(87363)),x=b(36626),E=w.default.forwardRef((function(t,i){return w.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},t,{ref:i}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 3.25C15.5858 3.25 15.25 3.58579 15.25 4C15.25 4.41421 15.5858 4.75 16 4.75H18.1893L13.4697 9.46967C13.1768 9.76256 13.1768 10.2374 13.4697 10.5303C13.7626 10.8232 14.2374 10.8232 14.5303 10.5303L19.25 5.81066V8C19.25 8.41421 19.5858 8.75 20 8.75C20.4142 8.75 20.75 8.41421 20.75 8V4C20.75 3.80806 20.6768 3.61612 20.5303 3.46967C20.4584 3.39776 20.3755 3.34351 20.2871 3.30691C20.1987 3.27024 20.1017 3.25 20 3.25H16ZM4 15.25C4.41421 15.25 4.75 15.5858 4.75 16V18.1893L9.46967 13.4697C9.76256 13.1768 10.2374 13.1768 10.5303 13.4697C10.8232 13.7626 10.8232 14.2374 10.5303 14.5303L5.81066 19.25H8C8.41421 19.25 8.75 19.5858 8.75 20C8.75 20.4142 8.41421 20.75 8 20.75H4C3.80806 20.75 3.61612 20.6768 3.46967 20.5303C3.39776 20.4584 3.34351 20.3755 3.30691 20.2871C3.27024 20.1987 3.25 20.1017 3.25 20V16C3.25 15.5858 3.58579 15.25 4 15.25ZM20.75 16V20C20.75 20.1017 20.7298 20.1987 20.6931 20.2871C20.6565 20.3755 20.6022 20.4584 20.5303 20.5303C20.4584 20.6022 20.3755 20.6565 20.2871 20.6931C20.2099 20.7251 20.1262 20.7446 20.0386 20.749C20.0258 20.7497 20.0129 20.75 20 20.75H16C15.5858 20.75 15.25 20.4142 15.25 20C15.25 19.5858 15.5858 19.25 16 19.25H18.1893L13.4697 14.5303C13.1768 14.2374 13.1768 13.7626 13.4697 13.4697C13.7626 13.1768 14.2374 13.1768 14.5303 13.4697L19.25 18.1893V16C19.25 15.5858 19.5858 15.25 20 15.25C20.4142 15.25 20.75 15.5858 20.75 16ZM3.71291 3.30691C3.80134 3.27024 3.89831 3.25 4 3.25H8C8.41421 3.25 8.75 3.58579 8.75 4C8.75 4.41421 8.41421 4.75 8 4.75H5.81066L10.5303 9.46967C10.8232 9.76256 10.8232 10.2374 10.5303 10.5303C10.2374 10.8232 9.76256 10.8232 9.46967 10.5303L4.75 5.81066V8C4.75 8.41421 4.41421 8.75 4 8.75C3.58579 8.75 3.25 8.41421 3.25 8V4C3.25 3.7937 3.33329 3.60686 3.46808 3.47126C3.46861 3.47073 3.46914 3.4702 3.46967 3.46967C3.4702 3.46914 3.47073 3.46861 3.47126 3.46808C3.5428 3.39696 3.62511 3.34324 3.71291 3.30691Z"}))}));i.default=E},61433:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(73119)),w=_(b(87363)),x=b(36626),E=w.default.forwardRef((function(t,i){return w.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},t,{ref:i}),w.default.createElement("path",{d:"M15.5303 5.46967C15.2374 5.17678 14.7626 5.17678 14.4697 5.46967C14.1768 5.76256 14.1768 6.23744 14.4697 6.53033L17.1893 9.25H8C6.74022 9.25 5.53204 9.75044 4.64124 10.6412C3.75044 11.532 3.25 12.7402 3.25 14C3.25 15.2598 3.75044 16.468 4.64124 17.3588C5.53204 18.2496 6.74022 18.75 8 18.75H9C9.41421 18.75 9.75 18.4142 9.75 18C9.75 17.5858 9.41421 17.25 9 17.25H8C7.13805 17.25 6.3114 16.9076 5.7019 16.2981C5.09241 15.6886 4.75 14.862 4.75 14C4.75 13.138 5.09241 12.3114 5.7019 11.7019C6.3114 11.0924 7.13805 10.75 8 10.75H17.1893L14.4697 13.4697C14.1768 13.7626 14.1768 14.2374 14.4697 14.5303C14.7626 14.8232 15.2374 14.8232 15.5303 14.5303L19.5303 10.5303C19.6768 10.3839 19.75 10.1919 19.75 10C19.75 9.89831 19.7298 9.80134 19.6931 9.71291C19.6565 9.62445 19.6022 9.54158 19.5303 9.46967L15.5303 5.46967Z"}))}));i.default=E},28965:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(73119)),w=_(b(87363)),x=b(36626),E=w.default.forwardRef((function(t,i){return w.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},t,{ref:i}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.55012 4.45178C9.23098 3.48072 11.1845 3.08925 13.1097 3.33767C15.035 3.58609 16.8251 4.46061 18.2045 5.82653C19.5838 7.19245 20.4757 8.97399 20.743 10.8967C20.8 11.307 20.5136 11.6858 20.1033 11.7428C19.6931 11.7998 19.3142 11.5135 19.2572 11.1032C19.0353 9.50635 18.2945 8.02677 17.149 6.89236C16.0035 5.75795 14.5167 5.03165 12.9178 4.82534C11.3189 4.61902 9.69644 4.94414 8.30047 5.75061C7.24361 6.36117 6.36093 7.22198 5.72541 8.24995H8.00009C8.41431 8.24995 8.75009 8.58574 8.75009 8.99995C8.75009 9.41417 8.41431 9.74995 8.00009 9.74995H4.51686C4.5055 9.75021 4.49412 9.75021 4.48272 9.74995H4.00009C3.58588 9.74995 3.25009 9.41417 3.25009 8.99995V4.99995C3.25009 4.58574 3.58588 4.24995 4.00009 4.24995C4.41431 4.24995 4.75009 4.58574 4.75009 4.99995V7.00691C5.48358 5.96916 6.43655 5.0951 7.55012 4.45178Z"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.89686 12.2571C4.30713 12.2001 4.68594 12.4864 4.74295 12.8967C4.96487 14.4936 5.70565 15.9731 6.85119 17.1075C7.99673 18.242 9.48347 18.9683 11.0824 19.1746C12.6813 19.3809 14.3037 19.0558 15.6997 18.2493C16.7566 17.6387 17.6393 16.7779 18.2748 15.75H16.0001C15.5859 15.75 15.2501 15.4142 15.2501 15C15.2501 14.5857 15.5859 14.25 16.0001 14.25H19.4833C19.4947 14.2497 19.5061 14.2497 19.5175 14.25H20.0001C20.4143 14.25 20.7501 14.5857 20.7501 15V19C20.7501 19.4142 20.4143 19.75 20.0001 19.75C19.5859 19.75 19.2501 19.4142 19.2501 19V16.993C18.5166 18.0307 17.5636 18.9048 16.4501 19.5481C14.7692 20.5192 12.8157 20.9107 10.8904 20.6622C8.9652 20.4138 7.17504 19.5393 5.79572 18.1734C4.4164 16.8074 3.52443 15.0259 3.25723 13.1032C3.20022 12.6929 3.48658 12.3141 3.89686 12.2571Z"}))}));i.default=E},36138:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(73119)),w=_(b(87363)),x=b(36626),E=w.default.forwardRef((function(t,i){return w.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 16 16"},t,{ref:i}),w.default.createElement("path",{d:"M5.74996 2.50038C5.74996 2.2242 5.52607 2.00031 5.24989 2.00031C4.9737 2.00031 4.74981 2.2242 4.74981 2.50038V2.50705C4.74981 2.78323 4.9737 3.00712 5.24989 3.00712C5.52607 3.00712 5.74996 2.78323 5.74996 2.50705V2.50038Z"}),w.default.createElement("path",{d:"M7.9997 2.00031C8.27588 2.00031 8.49978 2.2242 8.49978 2.50038V2.50705C8.49978 2.78323 8.27588 3.00712 7.9997 3.00712C7.72352 3.00712 7.49963 2.78323 7.49963 2.50705V2.50038C7.49963 2.2242 7.72352 2.00031 7.9997 2.00031Z"}),w.default.createElement("path",{d:"M11.2496 2.50038C11.2496 2.2242 11.0257 2.00031 10.7495 2.00031C10.4733 2.00031 10.2494 2.2242 10.2494 2.50038V2.50705C10.2494 2.78323 10.4733 3.00712 10.7495 3.00712C11.0257 3.00712 11.2496 2.78323 11.2496 2.50705V2.50038Z"}),w.default.createElement("path",{d:"M13.4993 2.00031C13.7755 2.00031 13.9994 2.2242 13.9994 2.50038V2.50705C13.9994 2.78323 13.7755 3.00712 13.4993 3.00712C13.2231 3.00712 12.9993 2.78323 12.9993 2.50705V2.50038C12.9993 2.2242 13.2231 2.00031 13.4993 2.00031Z"}),w.default.createElement("path",{d:"M13.9994 5.25019C13.9994 4.97401 13.7755 4.75012 13.4993 4.75012C13.2231 4.75012 12.9993 4.97401 12.9993 5.25019V5.25686C12.9993 5.53304 13.2231 5.75694 13.4993 5.75694C13.7755 5.75694 13.9994 5.53304 13.9994 5.25686V5.25019Z"}),w.default.createElement("path",{d:"M13.9994 8.00001C13.9994 7.72382 13.7755 7.49993 13.4993 7.49993C13.2231 7.49993 12.9993 7.72382 12.9993 8.00001V8.00667C12.9993 8.28286 13.2231 8.50675 13.4993 8.50675C13.7755 8.50675 13.9994 8.28286 13.9994 8.00667V8.00001Z"}),w.default.createElement("path",{d:"M2.50007 7.49993C2.77626 7.49993 3.00015 7.72382 3.00015 8.00001V8.00667C3.00015 8.28286 2.77626 8.50675 2.50007 8.50675C2.22389 8.50675 2 8.28286 2 8.00667V8.00001C2 7.72382 2.22389 7.49993 2.50007 7.49993Z"}),w.default.createElement("path",{d:"M3.00015 5.25019C3.00015 4.97401 2.77626 4.75012 2.50007 4.75012C2.22389 4.75012 2 4.97401 2 5.25019V5.25686C2 5.53304 2.22389 5.75694 2.50007 5.75694C2.77626 5.75694 3.00015 5.53304 3.00015 5.25686V5.25019Z"}),w.default.createElement("path",{d:"M2.50007 2.00031C2.77626 2.00031 3.00015 2.2242 3.00015 2.50038V2.50705C3.00015 2.78323 2.77626 3.00712 2.50007 3.00712C2.22389 3.00712 2 2.78323 2 2.50705V2.50038C2 2.2242 2.22389 2.00031 2.50007 2.00031Z"}),w.default.createElement("path",{d:"M9.37461 7.31255C9.94411 7.31255 10.4058 6.85088 10.4058 6.28137C10.4058 5.71187 9.94411 5.25019 9.37461 5.25019C8.8051 5.25019 8.34343 5.71187 8.34343 6.28137C8.34343 6.85088 8.8051 7.31255 9.37461 7.31255Z"}),w.default.createElement("path",{d:"M9.37461 9.21061L7.6724 7.44357L7.66567 7.43672C7.27331 7.04478 6.79598 6.81248 6.28107 6.81248C5.76615 6.81248 5.28883 7.04478 4.89647 7.43672L4.88973 7.44358L2.13992 10.2982C2.05015 10.3913 2 10.5157 2 10.6451V13.4996C2 13.7758 2.22389 13.9997 2.50007 13.9997H13.4993C13.7755 13.9997 13.9994 13.7758 13.9994 13.4996V10.6451C13.9994 10.6365 13.9992 10.6279 13.9988 10.6194C13.9958 10.562 13.9833 10.5072 13.9627 10.4566C13.9409 10.403 13.9093 10.3523 13.8681 10.3073C13.8651 10.304 13.8621 10.3008 13.859 10.2976L12.4846 8.87085L12.4778 8.86399C12.0855 8.47205 11.6082 8.23975 11.0932 8.23975C10.5783 8.23975 10.101 8.47205 9.70864 8.86399L9.70191 8.87084L9.37461 9.21061ZM5.60649 8.14113L3.00015 10.8468V12.9996H12.9993V10.8468L11.7678 9.5684C11.5234 9.32549 11.2897 9.2399 11.0932 9.2399C10.8968 9.2399 10.6631 9.32549 10.4187 9.5684L10.069 9.93142L11.1097 11.0118C11.3013 11.2107 11.2954 11.5272 11.0965 11.7188C10.8975 11.9104 10.581 11.9045 10.3894 11.7056L9.01604 10.28C9.01482 10.2787 9.01361 10.2775 9.01241 10.2762L6.95564 8.14113C6.7112 7.89822 6.4775 7.81263 6.28107 7.81263C6.08463 7.81263 5.85094 7.89822 5.60649 8.14113Z"}))}));i.default=E},37069:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(73119)),w=_(b(87363)),x=b(36626),E=w.default.forwardRef((function(t,i){return w.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 16 16"},t,{ref:i}),w.default.createElement("path",{d:"M4.35355 1.64645C4.54882 1.84171 4.54882 2.15829 4.35355 2.35355L2.35355 4.35355C2.15829 4.54882 1.84171 4.54882 1.64645 4.35355C1.45118 4.15829 1.45118 3.84171 1.64645 3.64645L3.64645 1.64645C3.84171 1.45118 4.15829 1.45118 4.35355 1.64645Z"}),w.default.createElement("path",{d:"M7.68689 1.64645C7.88215 1.84171 7.88215 2.15829 7.68689 2.35355L2.35355 7.68689C2.15829 7.88215 1.84171 7.88215 1.64645 7.68689C1.45118 7.49162 1.45118 7.17504 1.64645 6.97978L6.97978 1.64645C7.17504 1.45118 7.49162 1.45118 7.68689 1.64645Z"}),w.default.createElement("path",{d:"M11.0202 1.64645C11.2155 1.84171 11.2155 2.15829 11.0202 2.35355L6.68689 6.68689C6.49162 6.88215 6.17504 6.88215 5.97978 6.68689C5.78452 6.49162 5.78452 6.17504 5.97978 5.97978L10.3131 1.64645C10.5084 1.45118 10.825 1.45118 11.0202 1.64645Z"}),w.default.createElement("path",{d:"M14.3536 1.64645C14.5488 1.84171 14.5488 2.15829 14.3536 2.35355L11.0202 5.68689C10.825 5.88215 10.5084 5.88215 10.3131 5.68689C10.1179 5.49162 10.1179 5.17504 10.3131 4.97978L13.6464 1.64645C13.8417 1.45118 14.1583 1.45118 14.3536 1.64645Z"}),w.default.createElement("path",{d:"M14.3536 4.97978C14.5488 5.17504 14.5488 5.49162 14.3536 5.68689L12.0202 8.02022C11.825 8.21548 11.5084 8.21548 11.3131 8.02022C11.1179 7.82496 11.1179 7.50838 11.3131 7.31311L13.6464 4.97978C13.8417 4.78452 14.1583 4.78452 14.3536 4.97978Z"}),w.default.createElement("path",{d:"M14.3536 8.31311C14.5488 8.50838 14.5488 8.82496 14.3536 9.02022L14.0202 9.35355C13.825 9.54882 13.5084 9.54882 13.3131 9.35355C13.1179 9.15829 13.1179 8.84171 13.3131 8.64645L13.6464 8.31311C13.8417 8.11785 14.1583 8.11785 14.3536 8.31311Z"}),w.default.createElement("path",{d:"M10.3333 7C10.3333 7.55228 9.88562 8 9.33333 8C8.78105 8 8.33333 7.55228 8.33333 7C8.33333 6.44772 8.78105 6 9.33333 6C9.88562 6 10.3333 6.44772 10.3333 7Z"}),w.default.createElement("path",{d:"M6.33333 8.5C6.14679 8.5 5.92267 8.58153 5.6867 8.81725C5.67587 8.82806 5.66455 8.83838 5.65278 8.84816L2.5 11.4665V13.5H13.5V11.2318C13.5 10.9556 13.7239 10.7318 14 10.7318C14.2761 10.7318 14.5 10.9556 14.5 11.2318V14C14.5 14.2761 14.2761 14.5 14 14.5H2C1.72386 14.5 1.5 14.2761 1.5 14V11.2318C1.5 11.0831 1.56617 10.9421 1.68056 10.8471L4.99717 8.09274C5.37661 7.72073 5.83674 7.5 6.33333 7.5C6.83746 7.5 7.304 7.72747 7.6867 8.10976L7.69343 8.11662L11.0268 11.5769C11.2183 11.7758 11.2124 12.0923 11.0136 12.2839C10.8147 12.4755 10.4981 12.4696 10.3066 12.2707L6.97679 8.81408C6.74199 8.5808 6.51904 8.5 6.33333 8.5Z"}),w.default.createElement("path",{d:"M10.3564 10.1984L9.69343 10.8866C9.50185 11.0854 9.18532 11.0914 8.98645 10.8998C8.78757 10.7082 8.78166 10.3917 8.97324 10.1928L9.6399 9.50073L9.64663 9.49387C10.4992 8.64223 11.843 8.83788 12.6387 9.45172C12.6435 9.45538 12.6482 9.45913 12.6528 9.46297L14.3194 10.8471C14.5319 11.0235 14.5611 11.3388 14.3846 11.5512C14.2082 11.7636 13.893 11.7928 13.6806 11.6164L12.0213 10.2384C11.4855 9.82976 10.7405 9.81862 10.3564 10.1984Z"}))}));i.default=E},71688:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(73119)),w=_(b(87363)),x=b(36626),E=w.default.forwardRef((function(t,i){return w.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},t,{ref:i}),w.default.createElement("path",{fillRule:"evenodd",d:"M11.913 3.22a8.781 8.781 0 0 1 3.367.634.75.75 0 1 1-.56 1.392A7.281 7.281 0 0 0 8.25 18.24V15a.75.75 0 0 1 1.5 0v4.433a.73.73 0 0 1 0 .034V20a.75.75 0 0 1-.75.75H4a.75.75 0 0 1 0-1.5h3.045a8.782 8.782 0 0 1 4.868-16.03ZM18.37 6.41a.75.75 0 0 1 .75.75v.01a.75.75 0 0 1-1.5 0v-.01a.75.75 0 0 1 .75-.75ZM13 19.19a.75.75 0 0 1 .75.75v.01a.75.75 0 0 1-1.5 0v-.01a.75.75 0 0 1 .75-.75ZM16.84 17.62a.75.75 0 0 1 .75.75v.01a.75.75 0 0 1-1.5 0v-.01a.75.75 0 0 1 .75-.75ZM19.37 14.35a.75.75 0 0 1 .75.75v.01a.75.75 0 0 1-1.5 0v-.01a.75.75 0 0 1 .75-.75ZM19.94 10.25a.75.75 0 0 1 .75.75v.01a.75.75 0 0 1-1.5 0V11a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"}))}));i.default=E},28221:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(73119)),w=_(b(87363)),x=b(36626),E=w.default.forwardRef((function(t,i){return w.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},t,{ref:i}),w.default.createElement("path",{fillRule:"evenodd",d:"M4.25 5A.75.75 0 0 1 5 4.25h14a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0V5.75H5.75V7a.75.75 0 0 1-1.5 0V5Z",clipRule:"evenodd"}),w.default.createElement("path",{fillRule:"evenodd",d:"M12 4.25a.75.75 0 0 1 .75.75v14a.75.75 0 0 1-1.5 0V5a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"}),w.default.createElement("path",{fillRule:"evenodd",d:"M9.25 19a.75.75 0 0 1 .75-.75h4a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd"}))}));i.default=E},58155:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(73119)),w=_(b(87363)),x=b(36626),E=w.default.forwardRef((function(t,i){return w.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},t,{ref:i}),w.default.createElement("path",{d:"M9.53033 6.53033C9.82322 6.23744 9.82322 5.76256 9.53033 5.46967C9.23744 5.17678 8.76256 5.17678 8.46967 5.46967L4.46967 9.46967C4.39776 9.54158 4.34351 9.62445 4.30691 9.71291C4.27024 9.80134 4.25 9.89831 4.25 10C4.25 10.1017 4.27024 10.1987 4.30691 10.2871C4.34351 10.3755 4.39776 10.4584 4.46967 10.5303L8.46967 14.5303C8.76256 14.8232 9.23744 14.8232 9.53033 14.5303C9.82322 14.2374 9.82322 13.7626 9.53033 13.4697L6.81066 10.75H16C16.862 10.75 17.6886 11.0924 18.2981 11.7019C18.9076 12.3114 19.25 13.138 19.25 14C19.25 14.862 18.9076 15.6886 18.2981 16.2981C17.6886 16.9076 16.862 17.25 16 17.25H15C14.5858 17.25 14.25 17.5858 14.25 18C14.25 18.4142 14.5858 18.75 15 18.75H16C17.2598 18.75 18.468 18.2496 19.3588 17.3588C20.2496 16.468 20.75 15.2598 20.75 14C20.75 12.7402 20.2496 11.532 19.3588 10.6412C18.468 9.75044 17.2598 9.25 16 9.25H6.81066L9.53033 6.53033Z"}))}));i.default=E},55995:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(73119)),w=_(b(87363)),x=b(36626),E=w.default.forwardRef((function(t,i){return w.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},t,{ref:i}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 2.25C9.41421 2.25 9.75 2.58579 9.75 3C9.75 3.33152 9.8817 3.64946 10.1161 3.88388C10.3505 4.1183 10.6685 4.25 11 4.25C11.4142 4.25 11.75 4.58579 11.75 5C11.75 5.41421 11.4142 5.75 11 5.75C10.6685 5.75 10.3505 5.8817 10.1161 6.11612C9.8817 6.35054 9.75 6.66848 9.75 7C9.75 7.41421 9.41421 7.75 9 7.75C8.58579 7.75 8.25 7.41421 8.25 7C8.25 6.66848 8.1183 6.35054 7.88388 6.11612C7.64946 5.8817 7.33152 5.75 7 5.75C6.58579 5.75 6.25 5.41421 6.25 5C6.25 4.58579 6.58579 4.25 7 4.25C7.33152 4.25 7.64946 4.1183 7.88388 3.88388C8.1183 3.64946 8.25 3.33152 8.25 3C8.25 2.58579 8.58579 2.25 9 2.25ZM9 4.88746C8.98182 4.90673 8.96333 4.92576 8.94454 4.94454C8.92576 4.96333 8.90673 4.98182 8.88746 5C8.90673 5.01818 8.92576 5.03667 8.94454 5.05546C8.96333 5.07424 8.98182 5.09327 9 5.11254C9.01818 5.09327 9.03667 5.07424 9.05546 5.05546C9.07424 5.03667 9.09327 5.01818 9.11254 5C9.09327 4.98182 9.07424 4.96333 9.05546 4.94454C9.03667 4.92576 9.01818 4.90673 9 4.88746Z"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5303 2.46967C18.2374 2.17678 17.7626 2.17678 17.4697 2.46967L2.46967 17.4697C2.17678 17.7626 2.17678 18.2374 2.46967 18.5303L5.46967 21.5303C5.76256 21.8232 6.23744 21.8232 6.53033 21.5303L21.5303 6.53033C21.8232 6.23744 21.8232 5.76256 21.5303 5.46967L18.5303 2.46967ZM18 7.93934L19.9393 6L18 4.06066L16.0607 6L18 7.93934ZM15 7.06066L16.9393 9L6 19.9393L4.06066 18L15 7.06066Z"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.75 13C19.75 12.5858 19.4142 12.25 19 12.25C18.5858 12.25 18.25 12.5858 18.25 13C18.25 13.3315 18.1183 13.6495 17.8839 13.8839C17.6495 14.1183 17.3315 14.25 17 14.25C16.5858 14.25 16.25 14.5858 16.25 15C16.25 15.4142 16.5858 15.75 17 15.75C17.3315 15.75 17.6495 15.8817 17.8839 16.1161C18.1183 16.3505 18.25 16.6685 18.25 17C18.25 17.4142 18.5858 17.75 19 17.75C19.4142 17.75 19.75 17.4142 19.75 17C19.75 16.6685 19.8817 16.3505 20.1161 16.1161C20.3505 15.8817 20.6685 15.75 21 15.75C21.4142 15.75 21.75 15.4142 21.75 15C21.75 14.5858 21.4142 14.25 21 14.25C20.6685 14.25 20.3505 14.1183 20.1161 13.8839C19.8817 13.6495 19.75 13.3315 19.75 13ZM18.9445 14.9445C18.9633 14.9258 18.9818 14.9067 19 14.8875C19.0182 14.9067 19.0367 14.9258 19.0555 14.9445C19.0742 14.9633 19.0933 14.9818 19.1125 15C19.0933 15.0182 19.0742 15.0367 19.0555 15.0555C19.0367 15.0742 19.0182 15.0933 19 15.1125C18.9818 15.0933 18.9633 15.0742 18.9445 15.0555C18.9258 15.0367 18.9067 15.0182 18.8875 15C18.9067 14.9818 18.9258 14.9633 18.9445 14.9445Z"}))}));i.default=E},80897:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(73119)),w=_(b(87363)),x=b(36626),E=w.default.forwardRef((function(t,i){return w.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},t,{ref:i}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 3.75C6.54822 3.75 3.75 6.54822 3.75 10C3.75 13.4518 6.54822 16.25 10 16.25C13.4518 16.25 16.25 13.4518 16.25 10C16.25 6.54822 13.4518 3.75 10 3.75ZM2.25 10C2.25 5.71979 5.71979 2.25 10 2.25C14.2802 2.25 17.75 5.71979 17.75 10C17.75 14.2802 14.2802 17.75 10 17.75C5.71979 17.75 2.25 14.2802 2.25 10Z"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.25 10C6.25 9.58579 6.58579 9.25 7 9.25H13C13.4142 9.25 13.75 9.58579 13.75 10C13.75 10.4142 13.4142 10.75 13 10.75H7C6.58579 10.75 6.25 10.4142 6.25 10Z"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 6.25C10.4142 6.25 10.75 6.58579 10.75 7V13C10.75 13.4142 10.4142 13.75 10 13.75C9.58579 13.75 9.25 13.4142 9.25 13V7C9.25 6.58579 9.58579 6.25 10 6.25Z"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.4697 14.4697C14.7626 14.1768 15.2374 14.1768 15.5303 14.4697L21.5303 20.4697C21.8232 20.7626 21.8232 21.2374 21.5303 21.5303C21.2374 21.8232 20.7626 21.8232 20.4697 21.5303L14.4697 15.5303C14.1768 15.2374 14.1768 14.7626 14.4697 14.4697Z"}))}));i.default=E},94066:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78983)),w=_(b(42081)),x=_(b(58724)),E=_(b(71173)),O=_(b(74910)),k=_(b(96333)),P=b(38003),S=b(86802);function _createSuper(t){var i=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function _createSuperInternal(){var b,_=(0,O.default)(t);if(i){var C=(0,O.default)(this).constructor;b=Reflect.construct(_,arguments,C)}else b=_.apply(this,arguments);return(0,E.default)(this,b)}}var I=function(t){(0,x.default)(Module,t);var i=_createSuper(Module);function Module(){return(0,C.default)(this,Module),i.apply(this,arguments)}return(0,w.default)(Module,[{key:"onElementorInit",value:function onElementorInit(){elementor.hooks.addFilter("controls/base/behaviors",this.registerControlBehavior.bind(this))}},{key:"registerControlBehavior",value:function registerControlBehavior(t,i){var b=i.options.model.get("ai");if(null==b||!b.active)return t;var _=i.options.model.get("type");["text","textarea"].includes(b.type)&&(t.ai={behaviorClass:k.default,controlType:_,type:b.type,getControlValue:i.getControlValue.bind(i),setControlValue:function setControlValue(t){"wysiwyg"===_&&(t=t.replaceAll("\n","<br>")),i.setSettingsModel(t),i.applySavedValue()},isLabelBlock:i.options.model.get("label_block"),additionalOptions:{defaultValue:i.options.model.get("default")},context:this.getContextData(i,_)});if(["code"].includes(b.type)){var C,w,x,E=null!==(C=i.options)&&void 0!==C&&null!==(w=C.container)&&void 0!==w&&null!==(x=w.view)&&void 0!==x&&x.$el?i.options.container.view.$el[0].outerHTML:"";t.ai={behaviorClass:k.default,type:b.type,additionalOptions:{codeLanguage:(null==b?void 0:b.language)||i.options.model.get("language"),htmlMarkup:E,elementId:i.options.container.id},buttonLabel:(0,P.__)("Code with AI","elementor"),isLabelBlock:i.options.model.get("label_block"),getControlValue:i.getControlValue.bind(i),setControlValue:function setControlValue(t){return i.editor.setValue(t,-1)},context:this.getContextData(i,_)}}if(["media"].includes(b.type)){var O=i.options.model.get("media_types");O.length&&O.includes("image")&&(t.ai={behaviorClass:k.default,type:b.type,buttonLabel:(0,P.__)("Create with AI","elementor"),getControlValue:i.getControlValue.bind(i),setControlValue:function setControlValue(t){},controlView:i,additionalOptions:{defaultValue:i.options.model.get("default"),defaultImageType:(null==b?void 0:b.category)||S.IMAGE_PROMPT_CATEGORIES[1].key},context:this.getContextData(i,_)})}return t}},{key:"getContextData",value:function getContextData(t,i){return t.options.container?{documentType:t.options.container.document.config.type,elementType:t.options.container.args.model.get("elType"),elementId:t.options.container.id,widgetType:t.options.container.args.model.get("widgetType"),controlName:t.options.model.get("name"),controlType:i}:{controlName:t.options.model.get("name"),controlType:i}}}]),Module}(elementorModules.editor.utils.Module);i.default=I},88450:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=_(b(23615)),E=_(b(85157)),O=_(b(65345)),k=_(b(69714)),P=_(b(96587)),S=_(b(71871)),I=_(b(5647)),T=_(b(30313)),j=_(b(59441)),M=_(b(46369)),A=_(b(62193)),R=_(b(76719)),D=b(62219),L=b(10905),B=b(78293),N=_(b(66604)),W=_(b(86076)),H=function PageContent(t){var i=t.type,b=t.controlType,_=t.onClose,x=t.onConnect,H=t.getControlValue,q=t.setControlValue,z=t.controlView,V=t.additionalOptions,G=(0,I.default)(),U=G.isLoading,Y=G.isConnected,Z=G.isGetStarted,K=G.connectUrl,X=G.fetchData,$=G.hasSubscription,Q=G.credits,J=G.usagePercentage,ee=(0,N.default)({usagePercentage:J,hasSubscription:$}).showBadge,te={sx:{"& .MuiDialog-container":{alignItems:"flex-start",mt:"media"===i?"2.5vh":"18vh"},"& .MuiDialogContent-root":{willChange:"height",transition:"height 300ms ease-in-out",position:"relative"}},PaperProps:{sx:{m:0,maxHeight:"media"===i?"95vh":"76vh",height:U||"media"!==i?"auto":"95vh"}}},ne=function maybeRenderUpgradeChip(){if(ee)return C.default.createElement(M.default,{hasSubscription:$,usagePercentage:J})};return U?C.default.createElement(j.default,(0,w.default)({onClose:_},te,{maxWidth:"media"===i?"lg":"sm"}),C.default.createElement(j.default.Header,{onClose:_}),C.default.createElement(j.default.Content,{dividers:!0},C.default.createElement(S.default,null))):Y?Z?"media"===i?C.default.createElement(B.PromptHistoryProvider,{historyType:D.HISTORY_TYPES.IMAGE},C.default.createElement(L.PromptHistoryActionProvider,null,C.default.createElement(A.default,{onClose:_,getControlValue:H,controlView:z,additionalOptions:V,credits:Q,maybeRenderUpgradeChip:ne,DialogProps:te,hasSubscription:$,usagePercentage:J}))):"code"===i?C.default.createElement(j.default,(0,w.default)({onClose:_},te),C.default.createElement(B.PromptHistoryProvider,{historyType:D.HISTORY_TYPES.CODE},C.default.createElement(L.PromptHistoryActionProvider,null,C.default.createElement(j.default.Header,{onClose:_},C.default.createElement(R.default,null),ne()),C.default.createElement(j.default.Content,{className:"e-ai-dialog-content",dividers:!0},C.default.createElement(k.default,{onClose:_,getControlValue:H,setControlValue:q,additionalOptions:V,credits:Q,usagePercentage:J},C.default.createElement(W.default,{hasSubscription:$,usagePercentage:J,sx:{mb:2}})))))):C.default.createElement(j.default,(0,w.default)({onClose:_},te),C.default.createElement(B.PromptHistoryProvider,{historyType:D.HISTORY_TYPES.TEXT},C.default.createElement(L.PromptHistoryActionProvider,null,C.default.createElement(j.default.Header,{onClose:_},C.default.createElement(R.default,null),ne()),C.default.createElement(j.default.Content,{className:"e-ai-dialog-content",dividers:!0},C.default.createElement(E.default,{type:i,controlType:b,onClose:_,getControlValue:H,setControlValue:q,additionalOptions:V,credits:Q,usagePercentage:J},C.default.createElement(W.default,{hasSubscription:$,usagePercentage:J,sx:{mb:2}})))))):C.default.createElement(T.default,{onClose:_},C.default.createElement(T.default.Header,{onClose:_}),C.default.createElement(T.default.Content,{dividers:!0},C.default.createElement(P.default,{onSuccess:X}))):C.default.createElement(T.default,{onClose:_},C.default.createElement(T.default.Header,{onClose:_}),C.default.createElement(T.default.Content,{dividers:!0},C.default.createElement(O.default,{connectUrl:K,onSuccess:function onSuccess(t){x(t),X()}})))};H.propTypes={type:x.default.string,controlType:x.default.string,onClose:x.default.func.isRequired,onConnect:x.default.func.isRequired,getControlValue:x.default.func.isRequired,setControlValue:x.default.func.isRequired,additionalOptions:x.default.object,controlView:x.default.object};var q=H;i.default=q},65345:(t,i,b)=>{"use strict";var _=b(73203),C=b(7501);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==C(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in t)if("default"!==x&&Object.prototype.hasOwnProperty.call(t,x)){var E=w?Object.getOwnPropertyDescriptor(t,x):null;E&&(E.get||E.set)?Object.defineProperty(_,x,E):_[x]=t[x]}_.default=t,b&&b.set(t,_);return _}(b(87363)),x=b(36626),E=b(38003),O=_(b(23615)),k=b(34029);function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}var P=function Connect(t){var i=t.connectUrl,b=t.onSuccess,_=(0,w.useRef)();return(0,w.useEffect)((function(){jQuery.fn.elementorConnect&&jQuery(_.current).elementorConnect({success:function success(t,i){return b(i)},error:function error(){throw new Error("Elementor AI: Failed to connect.")}})}),[]),w.default.createElement(x.Stack,{alignItems:"center",gap:2},w.default.createElement(k.AIIcon,{sx:{color:"text.primary",fontSize:"60px",mb:1}}),w.default.createElement(x.Typography,{variant:"h4",sx:{color:"text.primary"}},(0,E.__)("Step into the future with Elementor AI","elementor")),w.default.createElement(x.Typography,{variant:"body2"},(0,E.__)("Create smarter with AI text and code generators built right into the editor.","elementor")),w.default.createElement(x.Typography,{variant:"caption",sx:{maxWidth:520,textAlign:"center"}},(0,E.__)('By clicking "Connect", I approve the ',"elementor"),w.default.createElement(x.Link,{href:"https://go.elementor.com/ai-terms/",target:"_blank",color:"info.main"},(0,E.__)("Terms of Service","elementor"))," & ",w.default.createElement(x.Link,{href:"https://go.elementor.com/ai-privacy-policy/",target:"_blank",color:"info.main"},(0,E.__)("Privacy Policy","elementor")),(0,E.__)(" of the Elementor AI service.","elementor")),w.default.createElement(x.Button,{ref:_,href:i,variant:"contained",sx:{mt:1,"&:hover":{color:"primary.contrastText"}}},(0,E.__)("Connect","elementor")))};P.propTypes={connectUrl:O.default.string.isRequired,onSuccess:O.default.func.isRequired};var S=P;i.default=S},56577:(t,i,b)=>{"use strict";var _=b(73203),C=b(7501);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==C(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in t)if("default"!==x&&Object.prototype.hasOwnProperty.call(t,x)){var E=w?Object.getOwnPropertyDescriptor(t,x):null;E&&(E.get||E.set)?Object.defineProperty(_,x,E):_[x]=t[x]}_.default=t,b&&b.set(t,_);return _}(b(87363)),x=_(b(73119)),E=_(b(70966)),O=b(36626),k=b(38003),P=_(b(23615)),S=_(b(87105)),I=["node","inline","children","defaultValue","onInsert"];function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}var T=function CodeBlock(t){t.node;var i=t.inline,b=t.children,_=t.defaultValue,C=t.onInsert,P=(0,E.default)(t,I),T=(0,w.useRef)(null);return i?w.default.createElement("code",P):w.default.createElement(O.Box,{sx:{position:"relative"},dir:"ltr"},w.default.createElement(S.default,(0,x.default)({fullWidth:!0,ref:T,defaultValue:b[0],sx:{mb:1},helperText:(0,k.__)("Code generated by AI may be inaccurate.","elementor")},P)),w.default.createElement(O.Button,{size:"small",variant:"contained",onClick:function onClick(){return C(_+"\n"+T.current.value)},sx:{position:"absolute",right:"11px /* @noflip */",bottom:"44px"}},(0,k.__)("Insert","elementor")))};T.propTypes={node:P.default.object,inline:P.default.bool,children:P.default.arrayOf(P.default.node).isRequired,defaultValue:P.default.string,onInsert:P.default.func.isRequired};var j=T;i.default=j},69714:(t,i,b)=>{"use strict";var _=b(73203),C=b(7501);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==C(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in t)if("default"!==x&&Object.prototype.hasOwnProperty.call(t,x)){var E=w?Object.getOwnPropertyDescriptor(t,x):null;E&&(E.get||E.set)?Object.defineProperty(_,x,E):_[x]=t[x]}_.default=t,b&&b.set(t,_);return _}(b(87363)),x=_(b(50824)),E=_(b(73119)),O=_(b(10029)),k=_(b(40131)),P=_(b(93231)),S=b(36626),I=b(38003),T=_(b(23615)),j=_(b(51068)),M=b(17927),A=_(b(71871)),R=_(b(51391)),D=_(b(79619)),L=_(b(4466)),B=_(b(86960)),N=_(b(56577)),W=_(b(5348)),H=b(10905);function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}function ownKeys(t,i){var b=Object.keys(t);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(t);i&&(_=_.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),b.push.apply(b,_)}return b}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var b=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(b),!0).forEach((function(i){(0,P.default)(t,i,b[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(b,i))}))}return t}var q=(0,S.styled)(S.Box)((function(){return{"& p":{mb:"10px",fontSize:"13px",lineHeight:"1.5"},"& pre":{position:"relative"},"& textarea":{fontSize:"13px",lineHeight:"1.7"}}})),z=function FormCode(t){var i=t.onClose,b=t.getControlValue,_=t.setControlValue,C=t.additionalOptions,P=t.credits,T=t.children,z=(0,W.default)(_objectSpread(_objectSpread({},C),{},{credits:P})),V=z.data,G=z.isLoading,U=z.error,Y=z.reset,Z=z.send,K=z.sendUsageData,X=(0,w.useState)(""),$=(0,k.default)(X,2),Q=$[0],J=$[1];(0,H.useSubscribeOnPromptHistoryAction)([{type:H.ACTION_TYPES.REUSE,handler:function handler(t){Y(),J(t.data)}}]);var ee=(0,w.useRef)((function(){})),te="css"===(null==C?void 0:C.codeLanguage)?M.codeCssAutocomplete:M.codeHtmlAutocomplete,ne=!Q,re=function(){var t=(0,O.default)(x.default.mark((function _callee(t){return x.default.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:t.preventDefault(),ee.current=function(){return Z(Q)},ee.current();case 3:case"end":return i.stop()}}),_callee)})));return function handleSubmit(i){return t.apply(this,arguments)}}(),oe=function applyPrompt(t){K(),_(t),i()};return G?w.default.createElement(A.default,null):w.default.createElement(w.default.Fragment,null,U&&w.default.createElement(B.default,{error:U,onRetry:ee.current,sx:{mb:2.5}}),T,!V.result&&w.default.createElement(S.Box,{component:"form",onSubmit:re},w.default.createElement(S.Box,{sx:{pb:1.5}},w.default.createElement(R.default,{placeholder:(0,I.__)("Describe the code you want to use...","elementor"),name:"prompt",value:Q,color:"secondary",onChange:function onChange(t){return J(t.target.value)}})),ne&&w.default.createElement(D.default,{suggestions:te,onSelect:J}),w.default.createElement(S.Stack,{direction:"row",alignItems:"center",sx:{py:1.5,mt:4}},w.default.createElement(S.Stack,{direction:"row",justifyContent:"flex-end",flexGrow:1},w.default.createElement(L.default,null,(0,I.__)("Generate code","elementor"))))),V.result&&w.default.createElement(q,null,w.default.createElement(j.default,{components:{code:function code(t){return w.default.createElement(N.default,(0,E.default)({},t,{defaultValue:b(),onInsert:oe}))}}},V.result),w.default.createElement(S.Stack,{direction:"row",alignItems:"center",sx:{mt:4}},w.default.createElement(S.Stack,{direction:"row",gap:1,justifyContent:"flex-end",flexGrow:1},w.default.createElement(S.Button,{size:"small",color:"secondary",variant:"text",onClick:Y},(0,I.__)("New prompt","elementor"))))))};z.propTypes={onClose:T.default.func.isRequired,getControlValue:T.default.func.isRequired,setControlValue:T.default.func.isRequired,additionalOptions:T.default.shape({codeLanguage:T.default.string,htmlMarkup:T.default.string,elementId:T.default.string,initialCredits:T.default.number}),credits:T.default.number,children:T.default.node};var V=z;i.default=V},25455:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.useConfig=i.default=i.MODE_VARIATION=i.MODE_LAYOUT=i.LAYOUT_APP_MODES=i.ConfigProvider=void 0;var C=_(b(87363)),w=_(b(23615)),x="layout";i.MODE_LAYOUT=x;var E="variation";i.MODE_VARIATION=E;var O=[x,E];i.LAYOUT_APP_MODES=O;var k=C.default.createContext({});i.useConfig=function useConfig(){return C.default.useContext(k)};var P=function ConfigProvider(t){return C.default.createElement(k.Provider,{value:{mode:t.mode,attachmentsTypes:t.attachmentsTypes,onClose:t.onClose,onConnect:t.onConnect,onData:t.onData,onInsert:t.onInsert,onSelect:t.onSelect,onGenerate:t.onGenerate,currentContext:t.currentContext,hasPro:t.hasPro,sessionId:t.sessionId,editorSessionId:t.editorSessionId}},t.children)};i.ConfigProvider=P,P.propTypes={mode:w.default.oneOf(O).isRequired,children:w.default.node.isRequired,attachmentsTypes:w.default.object.isRequired,onClose:w.default.func.isRequired,onConnect:w.default.func.isRequired,onData:w.default.func.isRequired,onInsert:w.default.func.isRequired,onSelect:w.default.func.isRequired,onGenerate:w.default.func.isRequired,currentContext:w.default.object,hasPro:w.default.bool,sessionId:w.default.string,editorSessionId:w.default.string};var S=k;i.default=S},99502:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=_(b(70966)),E=b(36626),O=b(38003),k=_(b(23615)),P=_(b(82752)),S=["children"],I=(0,E.withDirection)(P.default),T=function BackButton(t){var i=t.children,b=(0,x.default)(t,S);return C.default.createElement(E.Button,(0,w.default)({size:"small",variant:"text",color:"secondary",startIcon:C.default.createElement(I,null)},b),i||(0,O.__)("Back","elementor"))};T.propTypes={children:k.default.node};var j=T;i.default=j},89216:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=_(b(70966)),E=b(36626),O=b(38003),k=_(b(23615)),P=_(b(55995)),S=["isLoading"],I=(0,E.withDirection)(P.default),T=function EnhanceButton(t){var i=t.isLoading,b=(0,x.default)(t,S);return C.default.createElement(E.Tooltip,{title:(0,O.__)("Enhance prompt","elementor")},C.default.createElement(E.Box,{component:"span",sx:{cursor:b.disabled?"default":"pointer"}},C.default.createElement(E.IconButton,(0,w.default)({size:"small",color:"secondary"},b),i?C.default.createElement(E.CircularProgress,{color:"secondary",size:20}):C.default.createElement(I,{fontSize:"small"}))))};T.propTypes={disabled:k.default.bool,isLoading:k.default.bool};var j=T;i.default=j},50691:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=_(b(70966)),E=b(36626),O=_(b(23615)),k=_(b(22231)),P=_(b(28932)),S=_(b(39453)),I=b(86802),T=["children"],j=["alt","src","text","children","aspectRatio","variant","OverlayBarProps"],M=Object.keys(I.IMAGE_ASPECT_RATIO),A=function Gallery(t){var i=t.children,b=(0,x.default)(t,T);return C.default.createElement(E.ImageList,(0,w.default)({width:"100%",cols:2,gap:24},b),i)};A.propTypes={children:O.default.node};var R=function GalleryImage(t){var i=t.alt,b=t.src,_=t.text,O=t.children,I=t.aspectRatio,T=void 0===I?"1:1":I,M=t.variant,A=void 0===M?"contained":M,R=t.OverlayBarProps,D=void 0===R?{}:R,L=(0,x.default)(t,j),B={};return"thumbnail"===A?(B.width="100%",B.maxHeight="238px",B.minWidth="230px"):(B.width="auto",B.height="auto",B.maxWidth="100%",B.maxHeight="1:1"===T?"initial":"100%",B.objectFit="contain",B.aspectRatio=T.replace(":"," / ")),C.default.createElement(E.ImageListItem,L,C.default.createElement(E.Box,{display:"flex",justifyContent:"center",alignItems:"center",sx:{bgcolor:"action.selected",height:"contained"===A?336:"auto",position:"relative",overflow:"hidden"}},C.default.createElement("img",{alt:i,src:b,style:B})),O&&C.default.createElement(k.default,null,C.default.createElement(P.default,(0,w.default)({gap:1,position:"bottom"},D),_&&C.default.createElement(S.default,null,_),O)))};R.propTypes={alt:O.default.string,src:O.default.string,text:O.default.string,children:O.default.node,BoxProps:O.default.object,OverlayBarProps:O.default.object,aspectRatio:O.default.oneOf(M),variant:O.default.oneOf(["contained","thumbnail"])},A.Image=R;var D=A;i.default=D},12970:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=b(36626),E=b(38003),O=_(b(28965)),k=function GenerateAgainSubmit(t){return C.default.createElement(x.Button,(0,w.default)({fullWidth:!0,type:"submit",variant:"contained",color:"secondary",startIcon:C.default.createElement(O.default,null),sx:{color:"background.paper"}},t),(0,E.__)("Generate again","elementor"))};i.default=k},66467:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=_(b(4466)),E=b(38003),O=function GenerateImagesSubmit(t){return C.default.createElement(x.default,(0,w.default)({size:"medium",fullWidth:!0},t),(0,E.__)("Generate images","elementor"))};i.default=O},49566:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=b(36626),x=b(38003),E=b(34029),O=function GenerateLoader(){return C.default.createElement(w.Stack,{alignItems:"center",justifyContent:"center",gap:2,width:"100%"},C.default.createElement(E.AIIcon,{sx:{color:"text.primary",fontSize:"60px",mb:1}}),C.default.createElement(w.Typography,{variant:"h5",sx:{color:"text.primary"}},(0,x.__)("Bringing your vision to life...","elementor")),C.default.createElement(w.Typography,{variant:"body1"},(0,x.__)("Hold tight, painting dreams might take a moment.","elementor")),C.default.createElement(w.Box,{sx:{px:1.5,py:2.5,width:"100%",maxWidth:600}},C.default.createElement(w.LinearProgress,{color:"inherit"})))};i.default=O},78025:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=b(36626),E=b(38003),O=_(b(23615)),k=function GenerateSubmit(t){return C.default.createElement(x.Button,(0,w.default)({fullWidth:!0,size:"medium",type:"submit",variant:"contained"},t),t.children||(0,E.__)("Generate","elementor"))};k.propTypes={children:O.default.node};var P=k;i.default=P},21619:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(93231)),x=_(b(70966)),E=_(b(73119)),O=b(36626),k=b(38003),P=_(b(23615)),S=_(b(85541)),I=_(b(33375)),T=_(b(90350)),j=_(b(80897)),M=["children"],A=["sx"],R=["sx"],D=["sx"],L=["sx"];function ownKeys(t,i){var b=Object.keys(t);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(t);i&&(_=_.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),b.push.apply(b,_)}return b}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var b=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(b),!0).forEach((function(i){(0,w.default)(t,i,b[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(b,i))}))}return t}var B=(0,O.withDirection)(I.default),N=(0,O.withDirection)(S.default),W=(0,O.withDirection)(j.default),H=function Tooltip(t){return C.default.createElement(O.Tooltip,(0,E.default)({PopperProps:{sx:{"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom":{mt:1}}}},t))},q=function ImageActions(t){var i=t.children,b=(0,x.default)(t,M);return C.default.createElement(O.Box,(0,E.default)({display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",gap:1},b),i)};q.propTypes={children:P.default.node};var z=function UseImage(t){t.sx;var i=(0,x.default)(t,A);return C.default.createElement(O.Button,(0,E.default)({size:"small",variant:"contained",startIcon:C.default.createElement(T.default,null)},i),(0,k.__)("Use Image","elementor"))};z.propTypes={sx:P.default.object};var V=function EditIcon(t){var i=t.sx,b=void 0===i?{}:i,_=(0,x.default)(t,R);return C.default.createElement(H,{title:(0,k.__)("Edit","elementor")},C.default.createElement(O.IconButton,(0,E.default)({sx:_objectSpread({mr:-1.5,ml:.5,color:"common.white","&:hover":{color:"common.white"}},b)},_),C.default.createElement(B,null)))};V.propTypes={sx:P.default.object};var G=function ZoomIcon(t){var i=t.sx,b=void 0===i?{}:i,_=(0,x.default)(t,D);return C.default.createElement(H,{title:(0,k.__)("Zoom","elementor")},C.default.createElement(O.IconButton,(0,E.default)({color:"secondary","aria-label":(0,k.__)("Zoom","elementor"),sx:_objectSpread({color:"common.white","&:hover":{color:"common.white"}},b)},_),C.default.createElement(W,null)))};G.propTypes={sx:P.default.object};var U=function CopyIcon(t){var i=t.sx,b=void 0===i?{}:i,_=(0,x.default)(t,L);return C.default.createElement(H,{title:(0,k.__)("Copy prompt","elementor")},C.default.createElement(O.IconButton,(0,E.default)({sx:_objectSpread({mr:-1.5,ml:.5,color:"common.white","&:hover":{color:"common.white"}},b)},_),C.default.createElement(N,null)))};U.propTypes={sx:P.default.object},q.UseImage=z,q.EditImage=function EditImage(t){return C.default.createElement(O.Button,(0,E.default)({size:"small",color:"secondary",startIcon:C.default.createElement(B,null)},t),(0,k.__)("Edit","elementor"))},q.EditIcon=V,q.ZoomIcon=G,q.CopyIcon=U;var Y=q;i.default=Y},38793:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=_(b(70966)),E=b(36626),O=_(b(23615)),k=["children"],P=function ImageForm(t){var i=t.children,b=(0,x.default)(t,k);return C.default.createElement(E.Box,(0,w.default)({component:"form"},b),C.default.createElement(E.Stack,{spacing:2.5},i))};P.propTypes={children:O.default.node};var S=P;i.default=S},84123:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=_(b(40131)),E=_(b(93970)),O=b(38003),k=b(86802),P=Object.entries(k.IMAGE_ASPECT_RATIO).map((function(t){var i=(0,x.default)(t,2),b=i[0];return{label:i[1].label,value:b}})),S=function ImageRatioSelect(t){return C.default.createElement(E.default,(0,w.default)({options:P,wrapperStyle:{width:"100%"},label:(0,O.__)("Aspect ratio","elementor")},t))};i.default=S},57239:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(93231)),x=_(b(73119)),E=_(b(70966)),O=b(36626),k=_(b(23615)),P=_(b(82752)),S=_(b(49448)),I=["onPrev","onNext","children"],T=["children","startAction","sx"],j=["src","alt"];function ownKeys(t,i){var b=Object.keys(t);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(t);i&&(_=_.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),b.push.apply(b,_)}return b}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var b=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(b),!0).forEach((function(i){(0,w.default)(t,i,b[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(b,i))}))}return t}var M=(0,O.withDirection)(P.default),A=(0,O.withDirection)(S.default),R=function ImageSlider(t){var i=t.onPrev,b=t.onNext,_=t.children,w=(0,E.default)(t,I);return C.default.createElement(O.Stack,(0,x.default)({alignItems:"flex-start",spacing:.5},w),C.default.createElement(O.Stack,{direction:"row",spacing:2.5,alignSelf:"center",alignItems:"center"},C.default.createElement(O.IconButton,{onClick:i,size:"large",color:"secondary"},C.default.createElement(M,null)),C.default.createElement(O.Stack,{spacing:.5,justifyContent:"space-around",alignItems:"center"},_),C.default.createElement(O.IconButton,{onClick:b,size:"large",color:"secondary"},C.default.createElement(A,null))))};R.propTypes={onPrev:k.default.func.isRequired,onNext:k.default.func.isRequired,children:k.default.node.isRequired};var D=function Actions(t){var i=t.children,b=t.startAction,_=t.sx,w=void 0===_?{}:_,k=(0,E.default)(t,T);return C.default.createElement(O.Box,(0,x.default)({display:"flex",justifyContent:"flex-end",alignItems:"center",width:"100%"},k,{sx:_objectSpread({mb:1.5},w)}),b,C.default.createElement(O.Stack,{direction:"row",spacing:2,justifyContent:"flex-end",flexGrow:1,width:"100%"},i))};D.propTypes={sx:k.default.object,startAction:k.default.node,children:k.default.node.isRequired};var L=function Image(t){var i=t.src,b=t.alt,_=void 0===b?"":b,w=(0,E.default)(t,j);return C.default.createElement(O.Box,{display:"flex",justifyContent:"center",alignItems:"center"},C.default.createElement("img",(0,x.default)({src:i,alt:_},w)))};L.propTypes={alt:k.default.string,src:k.default.string.isRequired},R.Actions=D,R.Image=L;var B=R;i.default=B},67329:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=b(36626),E=b(38003),O=function ImageStrengthSlider(t){return C.default.createElement(x.FormControl,{sx:{width:"100%"}},C.default.createElement(x.Slider,(0,w.default)({marks:!0,min:0,step:10,max:100,color:"secondary",id:"image_strength",name:"image_strength",valueLabelDisplay:"auto",getAriaValueText:function getAriaValueText(t){return"".concat(t,"%")},"aria-label":(0,E.__)("Reference strength","elementor")},t)),C.default.createElement(x.Box,{display:"flex",justifyContent:"space-between",alignItems:"center"},C.default.createElement(x.Typography,{variant:"caption"},(0,E.__)("Prompt","elementor")),C.default.createElement(x.Typography,{variant:"caption"},(0,E.__)("Reference image","elementor"))))};i.default=O},75703:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=_(b(40131)),E=_(b(70966)),O=_(b(23615)),k=b(38003),P=_(b(93970)),S=b(86802),I=["type"],T=function ImageStyleSelect(t){var i,b=t.type,_=void 0===b?"":b,O=(0,E.default)(t,I),T=Object.entries((null===(i=S.IMAGE_PROMPT_CATEGORIES[_])||void 0===i?void 0:i.subCategories)||{}).map((function(t){var i=(0,x.default)(t,2),b=i[0];return{label:i[1],value:b}}));return C.default.createElement(P.default,(0,w.default)({options:T,wrapperStyle:{width:"100%"},label:(0,k.__)("Style","elementor")},O))};T.propTypes={type:O.default.string.isRequired};var j=T;i.default=j},50198:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=_(b(40131)),E=_(b(93970)),O=b(38003),k=b(86802),P=Object.entries(k.IMAGE_PROMPT_CATEGORIES).map((function(t){var i=(0,x.default)(t,2),b=i[0];return{label:i[1].label,value:b}})),S=function ImageTypeSelect(t){return C.default.createElement(E.default,(0,w.default)({options:P,wrapperStyle:{width:"100%"},label:(0,O.__)("Image type","elementor")},t))};i.default=S},69425:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=_(b(93231)),E=_(b(70966)),O=b(36626),k=_(b(23615)),P=_(b(98608)),S=_(b(66690)),I=_(b(57239)),T=_(b(21619)),j=_(b(50691)),M=_(b(99502)),A=_(b(20273)),R=["children","sx"];function ownKeys(t,i){var b=Object.keys(t);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(t);i&&(_=_.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),b.push.apply(b,_)}return b}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var b=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(b),!0).forEach((function(i){(0,x.default)(t,i,b[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(b,i))}))}return t}var D=function Container(t){var i=t.children,b=t.sx,_=void 0===b?{}:b,x=(0,E.default)(t,R);return C.default.createElement(O.Box,(0,w.default)({flexGrow:1},x,{sx:_objectSpread({overflowY:"scroll"},_)}),i)};D.propTypes={sx:k.default.object,children:k.default.node};var L=function ImagesDisplay(t){var i=t.images,b=t.aspectRatio,_=t.onUseImage,w=t.onEditImage,x=t.transparentContainer,E=void 0!==x&&x,k=(0,S.default)(i),R=k.zoomIndex,L=k.setZoomIndex,B=k.actions,N=(0,P.default)(b),W=N.width,H=N.height;if(R>-1){var q=i[R];return C.default.createElement(D,null,C.default.createElement(I.default,{onPrev:B.prev,onNext:B.next},C.default.createElement(I.default.Actions,{startAction:C.default.createElement(M.default,{onClick:B.reset})},C.default.createElement(T.default.EditImage,{onClick:function onClick(){return w(q)}}),C.default.createElement(T.default.UseImage,{onClick:function onClick(){return _(q)}})),C.default.createElement(I.default.Image,{src:q.image_url,style:{maxWidth:"630px",width:"100%",height:"auto"}})))}if(1===i.length){var z=i[0],V={width:W,height:H};return E&&(V.backgroundImage="linear-gradient(45deg, #bbb 25%, transparent 25%), linear-gradient(-45deg, #bbb 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #bbb 75%), linear-gradient(-45deg, transparent 75%, #bbb 75%)",V.backgroundSize="20px 20px",V.backgroundPosition="0 0, 0 10px, 10px -10px, -10px 0px"),C.default.createElement(D,{flexDirection:"column"},C.default.createElement(A.default,null,C.default.createElement(A.default.Image,{src:z.image_url||z.url,style:V,alt:"generated-image"},C.default.createElement(A.default.Actions,null,C.default.createElement(T.default.EditImage,{onClick:function onClick(){return w(z)}}),C.default.createElement(T.default.UseImage,{onClick:function onClick(){return _(z)}})))))}return C.default.createElement(D,null,C.default.createElement(j.default,null,i.map((function(t,i){return C.default.createElement(j.default.Image,{key:"result-".concat(t.seed),alt:"generated-".concat(i),src:t.image_url,aspectRatio:b,"data-testid":"e-gallery-image"},C.default.createElement(T.default,null,C.default.createElement(T.default.UseImage,{onClick:function onClick(){return _(t)},size:"medium",fullWidth:!0}),C.default.createElement(O.Stack,{direction:"row",spacing:.25,alignItems:"center"},C.default.createElement(T.default.ZoomIcon,{onClick:function onClick(){return L(i)},size:"medium"}),C.default.createElement(T.default.EditIcon,{onClick:function onClick(){return w(t)},size:"medium"}))))}))))};L.propTypes={images:k.default.array,aspectRatio:k.default.string,onUseImage:k.default.func,onEditImage:k.default.func,transparentContainer:k.default.bool},L.Container=D;var B=L;i.default=B},69870:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=b(36626),E=b(38003),O=function NewPromptButton(t){return C.default.createElement(x.Button,(0,w.default)({fullWidth:!0,variant:"text",color:"secondary"},t),(0,E.__)("New prompt","elementor"))};i.default=O},65875:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=_(b(70966)),E=b(36626),O=_(b(23615)),k=_(b(87105)),P=_(b(89216)),S=_(b(8817)),I=["disabled","onChange"],T=function PromptField(t){var i=t.disabled,b=t.onChange,_=(0,x.default)(t,I),O=(0,S.default)(_.value,"media"),T=O.enhance,j=O.isEnhancing;return C.default.createElement(k.default,(0,w.default)({minRows:3,maxRows:6,InputProps:{endAdornment:C.default.createElement(E.InputAdornment,{position:"end",sx:{position:"absolute",bottom:"24px",right:"8px"}},C.default.createElement(P.default,{isLoading:j,disabled:i||j||!_.value,onClick:function onClick(){T(prompt).then((function(t){var i=t.result;return b(i)}))}}))},sx:{"& .MuiInputBase-input.MuiOutlinedInput-input.MuiInputBase-inputMultiline":{pb:5,width:"89%"}},onKeyDown:function onKeyDown(t){"Tab"===t.key&&(t.preventDefault(),b(_.placeholder))}},_,{onChange:function onChange(t){return b(t.target.value)},disabled:i||j}))};T.propTypes={value:O.default.string,disabled:O.default.bool,placeholder:O.default.string,onChange:O.default.func.isRequired};var j=T;i.default=j},20273:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(93231)),x=_(b(73119)),E=_(b(70966)),O=b(36626),k=_(b(23615)),P=["children"],S=["children","sx"];function ownKeys(t,i){var b=Object.keys(t);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(t);i&&(_=_.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),b.push.apply(b,_)}return b}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var b=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(b),!0).forEach((function(i){(0,w.default)(t,i,b[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(b,i))}))}return t}var I=function SingleImagePreview(t){var i=t.children,b=(0,E.default)(t,P);return C.default.createElement(O.Box,(0,x.default)({display:"flex"},b),i)};I.propTypes={children:k.default.node.isRequired};var T=function Actions(t){var i=t.children,b=t.sx,_=void 0===b?{}:b,w=(0,E.default)(t,S);return C.default.createElement(O.Box,(0,x.default)({display:"flex",width:"100%",justifyContent:"flex-end",alignItems:"center"},w,{sx:_objectSpread({mb:1.5},_)}),C.default.createElement(O.Stack,{direction:"row",spacing:2,justifyContent:"flex-end",width:"100%"},i))};T.propTypes={sx:k.default.object,children:k.default.node.isRequired};var j=function Image(t){var i=t.src,b=t.alt,_=t.style,w=void 0===_?{}:_,x=t.children;return C.default.createElement(O.Box,{margin:"0 auto"},x,C.default.createElement("img",{src:i,alt:b,style:_objectSpread({maxWidth:"100%",width:"auto",maxHeight:"100%"},w)}))};j.propTypes={style:k.default.object,children:k.default.node,src:k.default.string.isRequired,alt:k.default.string.isRequired},I.Actions=T,I.Image=j;var M=I;i.default=M},94810:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=_(b(70966)),E=b(36626),O=b(38003),k=_(b(23615)),P=["onClose","onCancel"],S=function UnsavedChangesAlert(t){var i=t.onClose,b=t.onCancel,_=(0,x.default)(t,P);return C.default.createElement(E.Dialog,(0,w.default)({"aria-labelledby":"unsaved-changes-alert-title","aria-describedby":"unsaved-changes-alert-description"},_),C.default.createElement(E.DialogTitle,{id:"unsaved-changes-alert-title"},(0,O.__)("Leave Elementor AI?","elementor")),C.default.createElement(E.DialogContent,null,C.default.createElement(E.DialogContentText,{id:"unsaved-changes-alert-description"},(0,O.__)("Images will be gone forever and we wont be able to recover them.","elementor"))),C.default.createElement(E.DialogActions,null,C.default.createElement(E.Button,{onClick:b,color:"secondary"},(0,O.__)("Cancel","elementor")),C.default.createElement(E.Button,{onClick:i,color:"error",variant:"contained"},(0,O.__)("Yes, leave","elementor"))))};S.propTypes={onClose:k.default.func,onCancel:k.default.func};var I=S;i.default=I},38415:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(73119)),x=_(b(93231)),E=_(b(70966)),O=_(b(86300)),k=b(36626),P=_(b(23615)),S=_(b(71871)),I=_(b(49566)),T=_(b(86960)),j=_(b(99502)),M=b(29859),A=(_(b(66604)),b(27305)),R=_(b(86076)),D=["sx"],L=["primary","secondary"],B=["primary","secondary"],N=["children"],W=["isLoading","isGenerating","children"],H=["sx"];function ownKeys(t,i){var b=Object.keys(t);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(t);i&&(_=_.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),b.push.apply(b,_)}return b}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var b=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(b),!0).forEach((function(i){(0,x.default)(t,i,b[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(b,i))}))}return t}var q=function ViewBackButton(t){var i=t.sx,b=void 0===i?{}:i,_=(0,E.default)(t,D),x=(0,M.useLocation)().back;return C.default.createElement(j.default,(0,w.default)({onClick:function onClick(t){t.preventDefault(),x()}},_,{sx:_objectSpread({mb:1,alignSelf:"flex-start"},b)}))};q.propTypes={sx:P.default.object};var z=function PanelHeading(t){var i=t.primary,b=t.secondary,_=(0,E.default)(t,L);return C.default.createElement(k.Stack,(0,w.default)({spacing:1,sx:{mb:3}},_),C.default.createElement(k.Typography,{variant:"h4"},i),b&&C.default.createElement(k.Typography,{variant:"body1",color:"secondary"},b))};z.propTypes={primary:P.default.string.isRequired,secondary:P.default.string};var V=function ContentHeading(t){var i=t.primary,b=t.secondary,_=(0,E.default)(t,B);return C.default.createElement(k.Stack,(0,w.default)({gap:1.5,sx:{mb:3}},_),C.default.createElement(k.Typography,{variant:"h6"},i),b&&C.default.createElement(k.Typography,{variant:"subtitle1",color:"secondary"},b))};V.propTypes={primary:P.default.string.isRequired,secondary:P.default.string};var G=function View(t){var i=t.children,b=(0,E.default)(t,N);return C.default.createElement(k.Box,(0,w.default)({className:"e-ai-dialog-content",display:"flex",sx:{overflowY:"auto",position:"relative"},height:"100%"},b),i)},U=function Content(t){var i=t.isLoading,b=void 0!==i&&i,_=t.isGenerating,x=void 0!==_&&_,O=t.children,P=(0,E.default)(t,W);return x?C.default.createElement(I.default,null):b?C.default.createElement(k.Box,{sx:{width:"100%",maxWidth:600,margin:"0 auto",alignSelf:"center"}},C.default.createElement(S.default,{color:"inherit"})):C.default.createElement(k.Box,(0,w.default)({sx:{overflowY:"scroll",p:4},flexGrow:1},P),O)};U.propTypes={children:P.default.node,isLoading:P.default.bool,isGenerating:P.default.bool};var Y=function ErrorMessage(t){var i=t.sx,b=void 0===i?{}:i,_=(0,E.default)(t,H);return C.default.createElement(T.default,(0,w.default)({actionPosition:"bottom"},_,{sx:_objectSpread({mb:2.5},b)}))};Y.propTypes={sx:P.default.object};var Z=function ViewPanel(t){var i=(0,A.useGlobalSettings)(),b=i.hasSubscription,_=i.usagePercentage;return C.default.createElement(O.default,null,C.default.createElement(R.default,{hasSubscription:b,usagePercentage:_,sx:{mb:4}}),t.children)};Z.propTypes={children:P.default.node},G.Panel=Z,G.Content=U,G.BackButton=q,G.ErrorMessage=Y,G.PanelHeading=z,G.ContentHeading=V,G.propTypes={children:P.default.node};var K=G;i.default=K},86802:(t,i,b)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.LOCATIONS=i.IMAGE_PROMPT_SETTINGS=i.IMAGE_PROMPT_CATEGORIES=i.IMAGE_ASPECT_RATIO=void 0;var _=b(38003);i.LOCATIONS={RESIZE:"resize",GENERATE:"generate",VARIATIONS:"variations",IMAGE_TOOLS:"image-tools",IN_PAINTING:"in-painting",OUT_PAINTING:"out-painting",REMOVE_BACKGROUND:"remove-background",REPLACE_BACKGROUND:"replace-background",REMOVE_TEXT:"remove-text"};i.IMAGE_PROMPT_SETTINGS={IMAGE_TYPE:"image_type",IMAGE_STYLE:"style_preset",IMAGE_STRENGTH:"image_strength",IMAGE_RATIO:"ratio",IMAGE_ZOOM:"zoom",IMAGE_UPSCALE:"upscale_to"};var C={"":{label:(0,_.__)("None","elementor"),subCategories:{}},photographic:{label:(0,_.__)("Photographic","elementor"),subCategories:{"":(0,_.__)("None","elementor"),landscape:(0,_.__)("Landscape","elementor"),macro:(0,_.__)("Macro","elementor"),portrait:(0,_.__)("Portrait","elementor"),"long-exposure":(0,_.__)("Long Exposure","elementor")}},background:{label:(0,_.__)("Background","elementor"),subCategories:{"":(0,_.__)("None","elementor"),floral:(0,_.__)("Floral","elementor"),gradient:(0,_.__)("Gradient","elementor"),mosaic:(0,_.__)("Mosaic","elementor"),neon:(0,_.__)("Neon","elementor"),bokeh:(0,_.__)("Bokeh","elementor")}},handmade:{label:(0,_.__)("Handmade","elementor"),subCategories:{"":(0,_.__)("None","elementor"),doodle:(0,_.__)("Doodle","elementor"),"line-art":(0,_.__)("Line Art","elementor"),"oil-painting":(0,_.__)("Oil Painting","elementor"),"pencil-drawing":(0,_.__)("Pencil Drawing","elementor"),watercolor:(0,_.__)("Watercolor","elementor")}},"digital-art":{label:(0,_.__)("Digital Art","elementor"),subCategories:{"":(0,_.__)("None","elementor"),amine:(0,_.__)("Anime","elementor"),cartoon:(0,_.__)("Cartoon","elementor"),cinematic:(0,_.__)("Cinematic","elementor"),"comic-book":(0,_.__)("Comic Book","elementor"),"fantasy-art":(0,_.__)("Fantasy Art","elementor"),isometric:(0,_.__)("Isometric","elementor"),vector:(0,_.__)("Vector","elementor"),"pixel-art":(0,_.__)("Pixel Art","elementor"),"low-poly":(0,_.__)("Low Poly","elementor"),"neon-punk":(0,_.__)("Neon Punk","elementor")}},"3d":{label:(0,_.__)("3D","elementor"),subCategories:{"":(0,_.__)("None","elementor"),clay:(0,_.__)("Clay","elementor"),digital:(0,_.__)("Digital","elementor"),origami:(0,_.__)("Origami","elementor"),stone:(0,_.__)("Stone","elementor"),wood:(0,_.__)("Wood","elementor")}}};i.IMAGE_PROMPT_CATEGORIES=C;var w={"1:1":{width:512,height:512,label:(0,_.__)("Square","elementor")+" (1:1)"},"3:2":{width:640,height:448,label:(0,_.__)("Landscape","elementor")+" (3:2)"},"4:3":{width:640,height:448,label:(0,_.__)("Landscape","elementor")+" (4:3)"},"16:9":{width:704,height:384,label:(0,_.__)("Landscape","elementor")+" (16:9)"},"2:3":{width:448,height:640,label:(0,_.__)("Portrait","elementor")+" (2:3)"},"3:4":{width:448,height:640,label:(0,_.__)("Portrait","elementor")+" (3:4)"},"9:16":{width:384,height:704,label:(0,_.__)("Portrait","elementor")+" (9:16)"}};i.IMAGE_ASPECT_RATIO=w},24607:(t,i,b)=>{"use strict";var _=b(73203),C=b(7501);Object.defineProperty(i,"__esModule",{value:!0}),i.useEditImage=i.SET_LOADING=i.SET_ASPECT_RATIO=i.RESET=i.EditImageProvider=i.EditImageContext=void 0;var w=function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==C(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in t)if("default"!==x&&Object.prototype.hasOwnProperty.call(t,x)){var E=w?Object.getOwnPropertyDescriptor(t,x):null;E&&(E.get||E.set)?Object.defineProperty(_,x,E):_[x]=t[x]}_.default=t,b&&b.set(t,_);return _}(b(87363)),x=_(b(40131)),E=_(b(93231)),O=_(b(23615)),k=_(b(98608)),P=b(82643);function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}function ownKeys(t,i){var b=Object.keys(t);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(t);i&&(_=_.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),b.push.apply(b,_)}return b}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var b=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(b),!0).forEach((function(i){(0,E.default)(t,i,b[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(b,i))}))}return t}var S=(0,w.createContext)({});i.EditImageContext=S;var I="SET_STATE",T="SET_ASPECT_RATIO";i.SET_ASPECT_RATIO=T;var j="SET_LOADING";i.SET_LOADING=j;var M="RESET";i.RESET=M;var A={id:"",url:"",isLoading:!1,aspectRatio:"1:1"},R=function reducer(t,i){var b=i.type,_=i.payload;switch(b){case I:return _objectSpread(_objectSpread({},t),_);case T:return _objectSpread(_objectSpread({},t),{},{aspectRatio:_});case j:return _objectSpread(_objectSpread({},t),{},{isLoading:_});case M:return A;default:throw Error("Unknown action.")}},D=function EditImageProvider(t){var i=t.children,b=t.imageData,_=_objectSpread(_objectSpread({},A),b),C=(0,w.useReducer)(R,_),E=(0,x.default)(C,2),O=E[0],k=E[1];return w.default.createElement(S.Provider,{value:{state:O,dispatch:k}},i)};i.EditImageProvider=D,D.propTypes={children:O.default.node,imageData:O.default.object};i.useEditImage=function useEditImage(){var t=(0,w.useContext)(S),i=t.state,b=t.dispatch,_=i.id,C=i.url,x=i.aspectRatio,E=i.isLoading,O=(0,k.default)(x),A=O.width,R=O.height;return(0,w.useEffect)((function(){if(_){b({type:j,payload:!0});var t=new Image;t.src=C,t.onload=function(){var i=(0,P.getAspectRatioSizes)(t.width,t.height).ratio;b({type:I,payload:{aspectRatio:i,isLoading:!1}})}}}),[_]),{editImage:i,isLoading:E,aspectRatio:x,width:A,height:R,setEditImage:function setEditImage(t){return b({type:I,payload:t})},setAspectRatio:function setAspectRatio(t){return b({type:T,payload:t})},reset:function reset(){return b({type:M})}}}},49021:(t,i,b)=>{"use strict";var _=b(73203),C=b(7501);Object.defineProperty(i,"__esModule",{value:!0}),i.useGlobalActions=i.GlobalActionsProvider=i.GlobalActionsContext=void 0;var w=function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==C(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in t)if("default"!==x&&Object.prototype.hasOwnProperty.call(t,x)){var E=w?Object.getOwnPropertyDescriptor(t,x):null;E&&(E.get||E.set)?Object.defineProperty(_,x,E):_[x]=t[x]}_.default=t,b&&b.set(t,_);return _}(b(87363)),x=_(b(23615));function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}var E=(0,w.createContext)({});i.GlobalActionsContext=E;var O=function GlobalActionsProvider(t){var i=t.actions,b=t.children;return w.default.createElement(E.Provider,{value:i},b)};i.GlobalActionsProvider=O,O.propTypes={actions:x.default.object,children:x.default.node};i.useGlobalActions=function useGlobalActions(){return(0,w.useContext)(E)}},27305:(t,i,b)=>{"use strict";var _=b(73203),C=b(7501);Object.defineProperty(i,"__esModule",{value:!0}),i.useGlobalSettings=i.GlobalSettingsProvider=i.GlobalSettingsContext=void 0;var w=function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==C(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in t)if("default"!==x&&Object.prototype.hasOwnProperty.call(t,x)){var E=w?Object.getOwnPropertyDescriptor(t,x):null;E&&(E.get||E.set)?Object.defineProperty(_,x,E):_[x]=t[x]}_.default=t,b&&b.set(t,_);return _}(b(87363)),x=_(b(23615));function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}var E=(0,w.createContext)({});i.GlobalSettingsContext=E;var O=function GlobalSettingsProvider(t){var i=t.settings,b=t.children;return w.default.createElement(E.Provider,{value:i},b)};i.GlobalSettingsProvider=O,O.propTypes={settings:x.default.object,children:x.default.node};i.useGlobalSettings=function useGlobalSettings(){return(0,w.useContext)(E)}},29859:(t,i,b)=>{"use strict";var _=b(73203),C=b(7501);Object.defineProperty(i,"__esModule",{value:!0}),i.useLocation=i.RoutesContext=i.NAVIGATE=i.LocationProvider=i.BACK=void 0;var w=function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==C(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in t)if("default"!==x&&Object.prototype.hasOwnProperty.call(t,x)){var E=w?Object.getOwnPropertyDescriptor(t,x):null;E&&(E.get||E.set)?Object.defineProperty(_,x,E):_[x]=t[x]}_.default=t,b&&b.set(t,_);return _}(b(87363)),x=_(b(40131)),E=_(b(9833)),O=_(b(93231)),k=_(b(23615));function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}function ownKeys(t,i){var b=Object.keys(t);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(t);i&&(_=_.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),b.push.apply(b,_)}return b}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var b=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(b),!0).forEach((function(i){(0,O.default)(t,i,b[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(b,i))}))}return t}var P=(0,w.createContext)(null);i.RoutesContext=P;var S="NAVIGATE";i.NAVIGATE=S;var I="BACK";i.BACK=I;var T={current:"",history:[]},j=function reducer(t,i){var b=i.type,_=i.payload;switch(b){case S:return _objectSpread(_objectSpread({},t),{},{current:_,history:[].concat((0,E.default)(t.history),[_])});case I:return _objectSpread(_objectSpread({},t),{},{current:t.history[t.history.length-2],history:t.history.slice(0,t.history.length-1)});default:return t}},M=function LocationProvider(t){var i=t.children,b=(0,w.useReducer)(j,T),_=(0,x.default)(b,2),C=_[0],E=_[1];return w.default.createElement(P.Provider,{value:{state:C,dispatch:E}},i)};i.LocationProvider=M,M.propTypes={children:k.default.node};i.useLocation=function useLocation(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).current,i=(0,w.useContext)(P),b=i.state,_=i.dispatch,C=function navigate(t){_({type:S,payload:t})};return(0,w.useEffect)((function(){t&&C(t)}),[]),{current:b.current,history:b.history,navigate:C,back:function back(){_({type:I})}}}},96718:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(50824)),w=_(b(70966)),x=_(b(10029)),E=_(b(93231)),O=b(24607),k=_(b(6250)),P=b(49021),S=["image"];function ownKeys(t,i){var b=Object.keys(t);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(t);i&&(_=_.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),b.push.apply(b,_)}return b}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var b=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(b),!0).forEach((function(i){(0,E.default)(t,i,b[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(b,i))}))}return t}var I=function normalizeImageData(t){return null!=t&&t.imageUrl?_objectSpread(_objectSpread({},t),{},{image_url:t.imageUrl,use_gallery_image:!0}):t},T=function useImageActions(){var t=(0,O.useEditImage)(),i=t.editImage,b=t.setEditImage,_=(0,P.useGlobalActions)(),E=_.setControlImage,T=_.saveAndClose,j=(0,k.default)(),M=j.attachmentData,A=j.isUploading,R=j.uploadError,D=j.upload,L=j.resetUpload,B=function upload(t,i){return D({image:I(t),prompt:i||t.prompt})},N=function(){var t=(0,x.default)(C.default.mark((function _callee(t,b){var _,x;return C.default.wrap((function _callee$(C){for(;;)switch(C.prev=C.next){case 0:if(!(i.url===t.url)){C.next=4;break}return i.image,_=(0,w.default)(i,S),C.abrupt("return",_);case 4:return C.next=6,B(t,b);case 6:return x=C.sent,C.abrupt("return",x.image);case 8:case"end":return C.stop()}}),_callee)})));return function getFinalImage(i,b){return t.apply(this,arguments)}}(),W=function(){var t=(0,x.default)(C.default.mark((function _callee2(t,i){var _;return C.default.wrap((function _callee2$(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,B(t,i);case 2:_=C.sent,b(_.image);case 4:case"end":return C.stop()}}),_callee2)})));return function edit(i,b){return t.apply(this,arguments)}}(),H=function(){var t=(0,x.default)(C.default.mark((function _callee3(t,i){var b;return C.default.wrap((function _callee3$(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,N(t,i);case 2:b=_.sent,E(b),T();case 5:case"end":return _.stop()}}),_callee3)})));return function use(i,b){return t.apply(this,arguments)}}();return{use:H,edit:W,reset:L,error:R,data:M,isLoading:A}};i.default=T},87327:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=b(87363),w=_(b(60675)),x=b(49021),E=function useImagePrompt(){var t=w.default.apply(void 0,arguments),i=(0,x.useGlobalActions)(),b=i.setHasUnsavedChanges,_=i.state;return(0,C.useEffect)((function(){var i;null!==(i=t.data)&&void 0!==i&&i.result&&b(!0)}),[t.data]),(0,C.useEffect)((function(){_.isAllSaved&&t.sendUsageData()}),[_.isAllSaved]),t};i.default=E},98608:(t,i,b)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var _=b(86802),C=function useImageSize(t){var i=_.IMAGE_ASPECT_RATIO[t];return{width:i.width,height:i.height}};i.default=C},6250:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(40131)),w=b(87363),x=b(46183),E=function useImageUpload(){var t=(0,w.useState)(!1),i=(0,C.default)(t,2),b=i[0],_=i[1],E=(0,w.useState)(""),O=(0,C.default)(E,2),k=O[0],P=O[1],S=(0,w.useState)({}),I=(0,C.default)(S,2),T=I[0],j=I[1];return{upload:function upload(t){var i=t.image,b=t.prompt;return new Promise((function(t,C){P(""),j({}),_(!0),(0,x.uploadImage)({image:i,prompt:b}).then((function(i){j(i),t(i)})).catch((function(t){var i=(null==t?void 0:t.responseText)||t;P(i),C(i)})).finally((function(){return _(!1)}))}))},resetUpload:function resetUpload(){P(""),j({}),_(!1)},isUploading:b,uploadError:k,attachmentData:T}};i.default=E},73838:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.IMAGE_ZOOM=i.IMAGE_UPSCALE=i.IMAGE_TYPE=i.IMAGE_STYLE=i.IMAGE_STRENGTH=i.IMAGE_RATIO=void 0;var C=_(b(93231)),w=_(b(40131)),x=b(87363),E=b(86802);function ownKeys(t,i){var b=Object.keys(t);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(t);i&&(_=_.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),b.push.apply(b,_)}return b}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var b=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(b),!0).forEach((function(i){(0,C.default)(t,i,b[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(b,i))}))}return t}var O=E.IMAGE_PROMPT_SETTINGS.IMAGE_TYPE,k=E.IMAGE_PROMPT_SETTINGS.IMAGE_STYLE,P=E.IMAGE_PROMPT_SETTINGS.IMAGE_STRENGTH,S=E.IMAGE_PROMPT_SETTINGS.IMAGE_RATIO,I=E.IMAGE_PROMPT_SETTINGS.IMAGE_ZOOM,T=E.IMAGE_PROMPT_SETTINGS.IMAGE_UPSCALE;i.IMAGE_UPSCALE=T,i.IMAGE_ZOOM=I,i.IMAGE_RATIO=S,i.IMAGE_STRENGTH=P,i.IMAGE_STYLE=k,i.IMAGE_TYPE=O;var j=function usePromptSettings(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},b=i.type,_=void 0===b?"":b,E=i.style,j=void 0===E?"":E,M=i.imageWeight,A=void 0===M?0:M,R=i.aspectRatio,D=void 0===R?"1:1":R,L=i.zoom,B=void 0===L?"1":L,N=i.upScaleTo,W=void 0===N?"512":N,H=(0,x.useState)((t={},(0,C.default)(t,O,_),(0,C.default)(t,k,j),(0,C.default)(t,P,A),(0,C.default)(t,S,D),(0,C.default)(t,I,B),(0,C.default)(t,T,W),t)),q=(0,w.default)(H,2),z=q[0],V=q[1];return{settings:z,updateSettings:function updateSettings(t){return V((function(i){return _objectSpread(_objectSpread({},i),t)}))},resetSettings:function resetSettings(){var t;V((t={},(0,C.default)(t,O,_),(0,C.default)(t,k,""),(0,C.default)(t,P,0),(0,C.default)(t,S,D),(0,C.default)(t,I,"1"),(0,C.default)(t,T,"512"),t))}}};i.default=j},62193:(t,i,b)=>{"use strict";var _=b(73203),C=b(7501);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==C(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in t)if("default"!==x&&Object.prototype.hasOwnProperty.call(t,x)){var E=w?Object.getOwnPropertyDescriptor(t,x):null;E&&(E.get||E.set)?Object.defineProperty(_,x,E):_[x]=t[x]}_.default=t,b&&b.set(t,_);return _}(b(87363)),x=_(b(73119)),E=_(b(40131)),O=_(b(93231)),k=b(29859),P=b(36626),S=_(b(23615)),I=_(b(59441)),T=_(b(46930)),j=_(b(94810)),M=b(24607),A=b(49021),R=b(27305),D=_(b(76719));function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}function ownKeys(t,i){var b=Object.keys(t);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(t);i&&(_=_.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),b.push.apply(b,_)}return b}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var b=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(b),!0).forEach((function(i){(0,O.default)(t,i,b[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(b,i))}))}return t}var L={isAllSaved:!1,hasUnsavedChanges:!1},B="SET_UNSAVED_CHANGES",N="SAVE_AND_CLOSE",W=function reducer(t,i){var b=i.type,_=i.payload;switch(b){case B:return _objectSpread(_objectSpread({},t),{},{hasUnsavedChanges:_,isAllSaved:!_&&t.isAllSaved});case N:return _objectSpread(_objectSpread({},t),{},{isAllSaved:!0,hasUnsavedChanges:!1});default:throw Error("Unknown action.")}},H=function FormMedia(t){var i=t.onClose,b=t.DialogProps,_=t.getControlValue,C=t.controlView,O=t.additionalOptions,S=t.maybeRenderUpgradeChip,H=t.hasSubscription,q=t.usagePercentage,z=(0,w.useReducer)(W,L),V=(0,E.default)(z,2),G=V[0],U=V[1],Y=(0,w.useState)(!1),Z=(0,E.default)(Y,2),K=Z[0],X=Z[1],$=function onCloseIntent(){G.hasUnsavedChanges?X(!0):i()},Q=_()===(null==O?void 0:O.defaultValue)?{}:_(),J={initialImageType:(null==O?void 0:O.defaultImageType)||"",hasSubscription:H,usagePercentage:q},ee={state:G,getControlValue:_,saveAndClose:function saveAndClose(){return U({type:N})},close:$,setHasUnsavedChanges:function setHasUnsavedChanges(t){return U({type:B,payload:t})},setControlImage:function setControlImage(t){C.setSettingsModel(t),C.applySavedValue()}};return(0,w.useEffect)((function(){G.isAllSaved&&i()}),[G.isAllSaved]),w.default.createElement(w.default.Fragment,null,w.default.createElement(I.default,(0,x.default)({id:"e-form-media",onClose:function onClose(){return $()},maxWidth:"lg"},b),w.default.createElement(I.default.Header,{onClose:function onClose(){return $()}},w.default.createElement(D.default,null),S()),w.default.createElement(P.Divider,null),w.default.createElement(R.GlobalSettingsProvider,{settings:J},w.default.createElement(A.GlobalActionsProvider,{actions:ee},w.default.createElement(k.LocationProvider,null,w.default.createElement(M.EditImageProvider,{imageData:Q},w.default.createElement(T.default,null)))))),K&&w.default.createElement(j.default,{onClose:i,onCancel:function onCancel(){return X(!1)},open:!0}))};H.propTypes={onClose:S.default.func.isRequired,DialogProps:S.default.object,getControlValue:S.default.func.isRequired,controlView:S.default.object,additionalOptions:S.default.object,credits:S.default.number,maybeRenderUpgradeChip:S.default.func,hasSubscription:S.default.bool,usagePercentage:S.default.number};var q=H;i.default=q},46930:(t,i,b)=>{"use strict";var _=b(73203),C=b(7501);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==C(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in t)if("default"!==x&&Object.prototype.hasOwnProperty.call(t,x)){var E=w?Object.getOwnPropertyDescriptor(t,x):null;E&&(E.get||E.set)?Object.defineProperty(_,x,E):_[x]=t[x]}_.default=t,b&&b.set(t,_);return _}(b(87363)),x=_(b(38415)),E=_(b(71871)),O=b(86802),k=_(b(93190)),P=_(b(45168)),S=_(b(72269)),I=_(b(26774)),T=_(b(33845)),j=_(b(62292)),M=_(b(64874)),A=_(b(77474)),R=b(29859),D=b(24607),L=b(10905);function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}var B=function MediaOutlet(){var t=(0,D.useEditImage)().editImage,i=(0,R.useLocation)({current:O.LOCATIONS.GENERATE}),b=i.current,_=i.navigate;return(0,w.useEffect)((function(){t.id&&_(O.LOCATIONS.IMAGE_TOOLS)}),[t.id]),(0,L.useSubscribeOnPromptHistoryAction)([{type:L.ACTION_TYPES.RESTORE,handler:function handler(){b!==O.LOCATIONS.GENERATE&&_(O.LOCATIONS.GENERATE)}}]),b?w.default.createElement(w.default.Fragment,null,b===O.LOCATIONS.GENERATE&&w.default.createElement(k.default,null),b===O.LOCATIONS.IMAGE_TOOLS&&w.default.createElement(P.default,null),b===O.LOCATIONS.VARIATIONS&&w.default.createElement(j.default,null),b===O.LOCATIONS.IN_PAINTING&&w.default.createElement(I.default,null),b===O.LOCATIONS.OUT_PAINTING&&w.default.createElement(T.default,null),b===O.LOCATIONS.RESIZE&&w.default.createElement(S.default,null),b===O.LOCATIONS.REPLACE_BACKGROUND&&w.default.createElement(M.default,null),b===O.LOCATIONS.REMOVE_BACKGROUND&&w.default.createElement(A.default,null)):w.default.createElement(x.default,{alignItems:"center"},w.default.createElement(E.default,null))};i.default=B},82643:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.getAspectRatioSizes=void 0;var C=_(b(93231)),w=_(b(40131)),x=b(86802);function ownKeys(t,i){var b=Object.keys(t);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(t);i&&(_=_.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),b.push.apply(b,_)}return b}i.getAspectRatioSizes=function getAspectRatioSizes(t,i){var b=Object.keys(x.IMAGE_ASPECT_RATIO),_=t/i,E=b[0],O=1/0;return b.forEach((function(t){var i=t.split(":").map(Number),b=(0,w.default)(i,2),C=b[0],x=b[1],k=Math.abs(_-C/x);k<O&&(O=k,E=t)})),function _objectSpread(t){for(var i=1;i<arguments.length;i++){var b=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(b),!0).forEach((function(i){(0,C.default)(t,i,b[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(b,i))}))}return t}({ratio:E},x.IMAGE_ASPECT_RATIO[E])}},91819:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(40131)),w=b(87363),x=_(b(30420)),E=_(b(38136)),O=function useSuggestedImages(t){var i=t.selectedType,b=(0,w.useState)(!1),_=(0,C.default)(b,2),O=_[0],k=_[1],P=(0,E.default)("ai-image-gallery",{images:[]}),S=P.data,I=P.setStateAndSessionData,T=(0,x.default)(),j=T.ready,M=T.preloadImages,A=(0,w.useMemo)((function(){var t=function shuffleImages(t){return t.map((function(t){return[Math.random(),t]})).sort((function(t,i){return(0,C.default)(t,1)[0]-(0,C.default)(i,1)[0]})).map((function(t){return(0,C.default)(t,2)[1]}))}(S.images);if(!i)return t;var b=t.filter((function(t){return t.imageType.includes(i)}));return b.length?b:t}),[i,S]);return(0,w.useEffect)((function(){0!==(null==S?void 0:S.images.length)?M(S.images.map((function(t){return t.thumbnailUrl}))):function fetchImages(){k(!0),fetch("https://my.elementor.com/ai/images-prompt-gallery/ai-gallery.json").then((function(t){return t.json()})).then((function(t){return I(t)})).catch((function(t){return console.log(t.message)})).finally((function(){return k(!1)}))}()}),[S]),{imagesData:A,isLoading:!j||O}};i.default=O},15059:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=b(46183),w=_(b(87327)),x=function useTextToImage(t){return(0,w.default)(C.getTextToImageGeneration,t)};i.default=x},93190:(t,i,b)=>{"use strict";var _=b(73203),C=b(7501);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=_interopRequireWildcard(b(87363)),x=_(b(93231)),E=_(b(40131)),O=b(36626),k=b(38003),P=_(b(38415)),S=_(b(50691)),I=_(b(38793)),T=_(b(65875)),j=_(b(50198)),M=_(b(75703)),A=_(b(84123)),R=_(b(12970)),D=_(b(69870)),L=_(b(66467)),B=_(b(69425)),N=_(b(21619)),W=_interopRequireWildcard(b(73838)),H=_(b(91819)),q=_(b(15059)),z=_(b(96718)),V=b(27305),G=b(10905);function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==C(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in t)if("default"!==x&&Object.prototype.hasOwnProperty.call(t,x)){var E=w?Object.getOwnPropertyDescriptor(t,x):null;E&&(E.get||E.set)?Object.defineProperty(_,x,E):_[x]=t[x]}return _.default=t,b&&b.set(t,_),_}var U=function Generate(){var t=(0,w.useState)(""),i=(0,E.default)(t,2),b=i[0],_=i[1],C=(0,V.useGlobalSettings)().initialImageType,U=(0,W.default)({type:C}),Y=U.settings,Z=U.updateSettings,K=U.resetSettings,X=(0,H.default)({selectedType:Y[W.IMAGE_TYPE]}),$=X.imagesData,Q=X.isLoading,J=function getPromptPlaceholder(t){return null!=t&&t.length?t[Math.floor(Math.random()*t.length)].prompt:(0,k.__)("describe your image","elementor")}($),ee=(0,q.default)({}),te=ee.data,ne=ee.setResult,re=ee.send,oe=ee.isLoading,ae=ee.error,ie=ee.reset,le=(0,z.default)(),ue=le.use,ce=le.edit,se=le.isLoading,de=Q||oe||se,fe=(0,w.useMemo)((function(){return Y[W.IMAGE_RATIO]}),[null==te?void 0:te.result]),pe=function handleSubmit(t){t.preventDefault(),re(b,Y)},me=function handleCopyPrompt(t){var i,b=t.prompt,C=t.imageType;_(b);var w=C.split("/"),O=(0,E.default)(w,2),k=O[0],P=O[1];Z((i={},(0,x.default)(i,W.IMAGE_TYPE,k),(0,x.default)(i,W.IMAGE_STYLE,P),i))};return(0,G.useSubscribeOnPromptHistoryAction)([{type:G.ACTION_TYPES.RESTORE,handler:function handler(t){var i,b,_,C;me({prompt:null===(i=t.data)||void 0===i?void 0:i.prompt,imageType:(null===(b=t.data)||void 0===b?void 0:b.imageType)||""}),Z((0,x.default)({},W.IMAGE_RATIO,null===(_=t.data)||void 0===_?void 0:_.ratio)),ne(null===(C=t.data)||void 0===C?void 0:C.images,t.id)}}]),w.default.createElement(P.default,null,w.default.createElement(P.default.Panel,null,w.default.createElement(P.default.PanelHeading,{primary:(0,k.__)("Imagine anything create everything","elementor"),secondary:(0,k.__)("Generate images by selecting the desired type and style, and entering a prompt.","elementor")}),ae&&w.default.createElement(P.default.ErrorMessage,{error:ae,onRetry:pe}),w.default.createElement(I.default,{onSubmit:pe},w.default.createElement(T.default,{"data-testid":"e-image-prompt",value:b,disabled:de,placeholder:J,onChange:_}),w.default.createElement(j.default,{disabled:de,value:Y[W.IMAGE_TYPE],onChange:function onChange(t){return Z((0,x.default)({},W.IMAGE_TYPE,t.target.value))}}),w.default.createElement(M.default,{type:Y[W.IMAGE_TYPE],value:Y[W.IMAGE_STYLE],disabled:de||!Y[W.IMAGE_TYPE]||!1,onChange:function onChange(t){return Z((0,x.default)({},W.IMAGE_STYLE,t.target.value))}}),w.default.createElement(A.default,{disabled:de,value:Y[W.IMAGE_RATIO],onChange:function onChange(t){return Z((0,x.default)({},W.IMAGE_RATIO,t.target.value))}}),null!=te&&te.result?w.default.createElement(O.Stack,{gap:2,sx:{my:2.5}},w.default.createElement(R.default,{disabled:de||""===b}),w.default.createElement(D.default,{disabled:de,onClick:function onClick(){K(),_(""),ie()}})):w.default.createElement(L.default,{disabled:de||""===b}))),w.default.createElement(P.default.Content,{isLoading:Q||se,isGenerating:oe},null!=te&&te.result?w.default.createElement(B.default,{images:null==te?void 0:te.result,aspectRatio:fe,onUseImage:ue,onEditImage:ce}):w.default.createElement(w.default.Fragment,null,w.default.createElement(P.default.ContentHeading,{primary:(0,k.__)("Spark your imagination with images generated by our community","elementor")}),w.default.createElement(S.default,{cols:3},null==$?void 0:$.map((function(t){return w.default.createElement(S.default.Image,{variant:"thumbnail",key:t.prompt,alt:t.prompt,text:t.prompt,src:t.thumbnailUrl},w.default.createElement(N.default,null,w.default.createElement(N.default.UseImage,{onClick:function onClick(){return ue(t)},fullWidth:!0}),w.default.createElement(N.default.CopyIcon,{onClick:function onClick(){return me(t)}}),w.default.createElement(N.default.EditIcon,{onClick:function onClick(){return ce(t)}})))}))))))};i.default=U},67779:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(20273)),x=b(38003),E=_(b(21619)),O=b(24607),k=_(b(96718)),P=function ImageToolsContent(){var t=(0,O.useEditImage)(),i=t.editImage,b=t.width,_=t.height,P=(0,k.default)().use;return C.default.createElement(w.default,null,C.default.createElement(w.default.Image,{src:i.url,style:{width:b,height:_},alt:i.alt||(0,x.__)("Image preview","elementor")},C.default.createElement(w.default.Actions,null,C.default.createElement(E.default.UseImage,{onClick:function onClick(){return P(i)}}))))};i.default=P},12883:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=b(36626),x=b(38003),E=_(b(23615)),O=_(b(7882)),k=_(b(88371)),P=_(b(18578)),S=_(b(46819)),I=_(b(36138)),T=_(b(37069)),j=b(86802),M=b(29859),A=function TeaserDrawing(){return C.default.createElement(w.SvgIcon,{viewBox:"0 0 184 80",sx:{width:184,height:80}},C.default.createElement("g",{clipPath:"url(#clip0_3127_96542)"},C.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.6014 1.36364C49.6014 0.610521 48.9907 0 48.2373 0C47.4839 0 46.8731 0.610521 46.8731 1.36364C46.8731 1.9664 46.6336 2.54448 46.2072 2.9707C45.7808 3.39692 45.2025 3.63636 44.5995 3.63636C43.8461 3.63636 43.2354 4.24689 43.2354 5C43.2354 5.75311 43.8461 6.36364 44.5995 6.36364C45.2025 6.36364 45.7808 6.60308 46.2072 7.0293C46.6336 7.45552 46.8731 8.0336 46.8731 8.63636C46.8731 9.38948 47.4839 10 48.2373 10C48.9907 10 49.6014 9.38948 49.6014 8.63636C49.6014 8.0336 49.8409 7.45552 50.2673 7.0293C50.6937 6.60308 51.272 6.36364 51.875 6.36364C52.6284 6.36364 53.2392 5.75311 53.2392 5C53.2392 4.24689 52.6284 3.63636 51.875 3.63636C51.272 3.63636 50.6937 3.39692 50.2673 2.9707C49.8409 2.54448 49.6014 1.9664 49.6014 1.36364ZM48.1364 4.89917C48.1706 4.86501 48.2042 4.83041 48.2373 4.79538C48.2703 4.83041 48.304 4.86501 48.3381 4.89917C48.3723 4.93333 48.4069 4.96694 48.4419 5C48.4069 5.03306 48.3723 5.06667 48.3381 5.10083C48.304 5.13499 48.2703 5.16959 48.2373 5.20462C48.2042 5.16959 48.1706 5.13499 48.1364 5.10083C48.1022 5.06667 48.0676 5.03306 48.0326 5C48.0676 4.96694 48.1022 4.93333 48.1364 4.89917Z",fill:"#69727D"}),C.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66.6927 22.3677C66.6927 21.6177 66.082 21.0098 65.3286 21.0098C64.5752 21.0098 63.9644 21.6177 63.9644 22.3677C63.9644 22.9679 63.7249 23.5436 63.2985 23.968C62.8721 24.3924 62.2938 24.6309 61.6908 24.6309C60.9374 24.6309 60.3267 25.2388 60.3267 25.9888C60.3267 26.7387 60.9374 27.3467 61.6908 27.3467C62.2938 27.3467 62.8721 27.5851 63.2985 28.0096C63.7249 28.434 63.9644 29.0096 63.9644 29.6099C63.9644 30.3598 64.5752 30.9678 65.3286 30.9678C66.082 30.9678 66.6927 30.3598 66.6927 29.6099C66.6927 29.0096 66.9323 28.434 67.3586 28.0096C67.785 27.5851 68.3633 27.3467 68.9663 27.3467C69.7197 27.3467 70.3305 26.7387 70.3305 25.9888C70.3305 25.2388 69.7197 24.6309 68.9663 24.6309C68.3633 24.6309 67.785 24.3924 67.3586 23.968C66.9323 23.5436 66.6927 22.9679 66.6927 22.3677ZM65.2277 25.8884C65.2619 25.8544 65.2955 25.8199 65.3286 25.785C65.3616 25.8199 65.3953 25.8544 65.4294 25.8884C65.4636 25.9224 65.4982 25.9559 65.5333 25.9888C65.4982 26.0217 65.4636 26.0552 65.4294 26.0892C65.3953 26.1232 65.3616 26.1577 65.3286 26.1925C65.2955 26.1577 65.2619 26.1232 65.2277 26.0892C65.1935 26.0552 65.1589 26.0217 65.1239 25.9888C65.1589 25.9559 65.1935 25.9224 65.2277 25.8884Z",fill:"#69727D"}),C.default.createElement("path",{d:"M53.9717 12L57.2198 17.0456L3.24796 51.4731L-0.000164873 46.4275L53.9717 12Z",fill:"#69727D"}),C.default.createElement("path",{d:"M64.9761 5L68.2242 10.0456L57.2612 17.0387L54.013 11.9931L64.9761 5Z",fill:"#E6E8EA"}),C.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M65.7284 9.49923L64.432 7.48537L56.5088 12.5394L57.8052 14.5533L65.7284 9.49923ZM64.9761 5L54.013 11.9931L57.2612 17.0387L68.2242 10.0456L64.9761 5Z",fill:"#69727D"}),C.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M128 41C128 43.7687 121.671 46.2089 112.052 47.6451L114.482 74.7976C114.494 74.8647 114.5 74.9322 114.5 75C114.5 75.0001 114.5 75.0002 114.5 75.0003C114.513 75.1456 114.487 75.2779 114.43 75.3982C113.514 77.9735 103.8 80 91.95 80C79.496 80 69.4 77.7614 69.4 75C69.4 74.8146 69.4456 74.6315 69.5343 74.4513L71.2141 47.5326C62.0087 46.0835 56 43.6977 56 41C56 36.5817 72.1177 33 92 33C111.882 33 128 36.5817 128 41Z",fill:"#69727D"}),C.default.createElement("path",{d:"M106.685 3.08259C112.562 16.564 109.338 34.1761 106.713 41.4407C106.713 41.4407 105.151 41.9127 100.894 41.9715C96.6371 42.0303 95.0251 41.9866 95.0251 41.4558C95.0252 40.9249 94.6272 34.6461 96.4177 22.3308C98.0343 11.2116 102.692 5.02553 105.448 2.75675C105.865 2.4137 106.47 2.58777 106.685 3.08259Z",fill:"#E6E8EA"}),C.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M104.883 4.66783C105.347 4.17219 106.14 4.35208 106.38 4.9873C108.716 11.1748 109.254 18.1507 108.889 24.5355C108.513 31.1152 107.184 36.9856 105.954 40.5842C105.778 40.6166 105.55 40.6541 105.265 40.6927C104.388 40.8119 102.974 40.9423 100.88 40.9712C98.7385 41.0008 97.3196 41.0031 96.4377 40.9371C96.2614 40.9239 96.1203 40.9088 96.0088 40.8935C95.9567 39.0573 95.8782 32.9919 97.4073 22.4743C98.766 13.1288 102.302 7.42438 104.883 4.66783ZM106.713 41.4403L107.002 42.3975C107.305 42.3062 107.546 42.0773 107.653 41.7802C109 38.0524 110.481 31.7376 110.886 24.6496C111.29 17.5654 110.626 9.61894 107.602 2.68255C107.147 1.63949 105.792 1.17814 104.812 1.98425C101.838 4.43294 97.0752 10.8574 95.4281 22.1866C93.7715 33.5811 93.975 39.865 94.0187 41.2138C94.0225 41.3324 94.0251 41.4128 94.0251 41.4552C94.025 42.261 94.695 42.5983 95.0067 42.7098C95.3591 42.8358 95.8079 42.8956 96.2886 42.9316C97.2769 43.0055 98.7924 43.0002 100.908 42.971C103.071 42.9411 104.566 42.806 105.534 42.6745C106.018 42.6088 106.371 42.5438 106.61 42.4932C106.729 42.4679 106.82 42.4461 106.885 42.4296C106.917 42.4214 106.943 42.4144 106.962 42.409L106.987 42.4021L106.996 42.3995L106.999 42.3984L107.001 42.398C107.001 42.398 107.002 42.3975 106.713 41.4403ZM106.426 40.4822L106.428 40.4817L106.43 40.4812C106.43 40.4812 106.429 40.4814 106.426 40.4822Z",fill:"#69727D"}),C.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M104.22 13.8372C104.787 15.7536 104.996 18.3439 104.953 21.2589C104.907 24.4148 104.569 27.8559 104.134 31.0529C103.7 34.2469 103.172 37.1799 102.753 39.3152C102.544 40.3824 102.361 41.2491 102.232 41.8481C102.22 41.9009 102.209 41.9516 102.199 42.0001H100.503C100.526 38.5025 100.676 33.4168 101.183 28.2866C101.724 22.8227 102.66 17.4299 104.22 13.8372ZM103 43.0001C103.974 43.2266 103.974 43.2264 103.974 43.2262L103.978 43.2093L103.989 43.1613C103.999 43.1192 104.013 43.0571 104.031 42.976C104.067 42.814 104.12 42.5763 104.186 42.2713C104.318 41.6613 104.503 40.7819 104.716 39.7006C105.14 37.5391 105.675 34.5658 106.116 31.3223C106.556 28.0818 106.905 24.5541 106.953 21.2881C107 18.0456 106.753 14.9635 105.943 12.6671C105.815 12.3045 105.676 11.9539 105.512 11.6797C105.394 11.4809 105.045 10.9388 104.371 10.9076C103.702 10.8766 103.301 11.3772 103.156 11.5722C102.959 11.8385 102.774 12.1912 102.594 12.5778C100.767 16.4945 99.7565 22.3931 99.1929 28.0897C98.6258 33.8211 98.5 39.4812 98.5 43.0001V44.0001H103.794L103.974 43.2262L103 43.0001Z",fill:"#69727D"}),C.default.createElement("path",{d:"M79.2952 3.08259C73.4181 16.564 76.6423 34.1761 79.2676 41.4407C79.2676 41.4407 80.8299 41.9127 85.0867 41.9715C89.3434 42.0303 90.9554 41.9866 90.9554 41.4558C90.9553 40.9249 91.3533 34.6461 89.5628 22.3308C87.9462 11.2116 83.2888 5.02553 80.5325 2.75675C80.1157 2.4137 79.511 2.58777 79.2952 3.08259Z",fill:"#E6E8EA"}),C.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M81.0978 4.66783C80.6337 4.17219 79.8403 4.35208 79.6005 4.9873C77.2644 11.1748 76.7267 18.1507 77.0914 24.5355C77.4671 31.1152 78.7963 36.9856 80.0267 40.5842C80.2028 40.6166 80.4308 40.6541 80.7155 40.6927C81.5929 40.8119 83.0069 40.9423 85.1005 40.9712C87.242 41.0008 88.6609 41.0031 89.5427 40.9371C89.7191 40.9239 89.8602 40.9088 89.9716 40.8935C90.0238 39.0573 90.1023 32.9919 88.5732 22.4743C87.2145 13.1288 83.6789 7.42438 81.0978 4.66783ZM79.2676 41.4403L78.9784 42.3975C78.676 42.3062 78.4345 42.0773 78.3271 41.7802C76.98 38.0524 75.4994 31.7376 75.0946 24.6496C74.69 17.5654 75.3547 9.61894 78.3786 2.68255C78.8333 1.63949 80.1887 1.17814 81.168 1.98425C84.1429 4.43294 88.9053 10.8574 90.5524 22.1866C92.209 33.5811 92.0055 39.865 91.9618 41.2138C91.958 41.3324 91.9554 41.4128 91.9554 41.4552C91.9554 42.261 91.2855 42.5983 90.9737 42.7098C90.6214 42.8358 90.1726 42.8956 89.6919 42.9316C88.7036 43.0055 87.1881 43.0002 85.0728 42.971C82.9096 42.9411 81.4141 42.806 80.4462 42.6745C79.9621 42.6088 79.6094 42.5438 79.3707 42.4932C79.2514 42.4679 79.1605 42.4461 79.0958 42.4296C79.0635 42.4214 79.0377 42.4144 79.0182 42.409L78.9937 42.4021L78.9849 42.3995L78.9814 42.3984L78.9798 42.398C78.9798 42.398 78.9784 42.3975 79.2676 41.4403ZM79.5541 40.4822L79.5526 40.4817L79.5507 40.4812C79.5507 40.4812 79.5514 40.4814 79.5541 40.4822Z",fill:"#69727D"}),C.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M81.7604 13.8372C81.1939 15.7536 80.9847 18.3439 81.0272 21.2589C81.0733 24.4148 81.4118 27.8559 81.8464 31.0529C82.2805 34.2469 82.8081 37.1799 83.2274 39.3152C83.4369 40.3824 83.6192 41.2491 83.7488 41.8481C83.7603 41.9009 83.7713 41.9516 83.7819 42.0001H85.4771C85.4542 38.5025 85.3049 33.4168 84.7973 28.2866C84.2567 22.8227 83.32 17.4299 81.7604 13.8372ZM82.9805 43.0001C82.0065 43.2266 82.0064 43.2264 82.0064 43.2262L82.0025 43.2093L81.9914 43.1613C81.9818 43.1192 81.9677 43.0571 81.9494 42.976C81.913 42.814 81.8602 42.5763 81.7941 42.2713C81.6621 41.6613 81.4772 40.7819 81.2648 39.7006C80.8404 37.5391 80.3054 34.5658 79.8646 31.3223C79.4241 28.0818 79.0751 24.5541 79.0275 21.2881C78.9801 18.0456 79.227 14.9635 80.0375 12.6671C80.1655 12.3045 80.305 11.9539 80.4683 11.6797C80.5868 11.4809 80.9351 10.9388 81.6092 10.9076C82.2782 10.8766 82.6793 11.3772 82.8241 11.5722C83.0217 11.8385 83.2064 12.1912 83.3867 12.5778C85.2136 16.4945 86.224 22.3931 86.7876 28.0897C87.3546 33.8211 87.4805 39.4812 87.4805 43.0001V44.0001H82.1863L82.0064 43.2262L82.9805 43.0001Z",fill:"#69727D"})),C.default.createElement("defs",null,C.default.createElement("clipPath",{id:"clip0_3127_96542"},C.default.createElement("rect",{width:"184",height:"80",fill:"white"}))))},R=(0,w.styled)(w.Box)((function(t){var i=t.theme;return{height:"calc(100% - ".concat(i.spacing(13),")")}})),D=(0,w.styled)(w.Box)((function(t){return{position:"sticky",top:"100%",padding:t.theme.spacing(4,0,1)}})),L=function ImageToolsPanel(){var t=(0,M.useLocation)().navigate,i=[{label:(0,x.__)("Expand Image","elementor"),Icon:O.default,onClick:function onClick(){return t(j.LOCATIONS.OUT_PAINTING)}},{label:(0,x.__)("Generative Fill","elementor"),Icon:k.default,onClick:function onClick(){return t(j.LOCATIONS.IN_PAINTING)}},{label:(0,x.__)("Resize","elementor"),Icon:S.default,onClick:function onClick(){return t(j.LOCATIONS.RESIZE)}},{label:(0,x.__)("Variations","elementor"),Icon:P.default,onClick:function onClick(){return t(j.LOCATIONS.VARIATIONS)}},{label:(0,x.__)("Remove Background","elementor"),Icon:I.default,onClick:function onClick(){return t(j.LOCATIONS.REMOVE_BACKGROUND)}},{label:(0,x.__)("Replace Background","elementor"),Icon:T.default,onClick:function onClick(){return t(j.LOCATIONS.REPLACE_BACKGROUND)}}];return C.default.createElement(R,null,C.default.createElement(w.Box,{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:1,justifyContent:"center"},i.map((function(t){var i=t.label,b=t.Icon,_=t.onClick;return C.default.createElement(w.Button,{onClick:_,key:i,variant:"outlined",color:"secondary",disabled:!1,sx:{py:3,fontSize:"12px",height:"auto",borderRadius:"4px"}},C.default.createElement(w.Box,{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"},C.default.createElement(b,{sx:{mb:.5}}),i))}))),C.default.createElement(D,{display:"flex",flexDirection:"column",alignItems:"center"},C.default.createElement(A,null),C.default.createElement(w.Typography,{variant:"body2",align:"center",color:"secondary",sx:{mt:2}},(0,x.__)("Stay tuned! More incredible AI tools are coming your way soon.","elementor"))))};L.propTypes={generateNewPrompt:E.default.func,panelActive:E.default.bool};var B=L;i.default=B},45168:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=_(b(38415)),x=b(38003),E=_(b(12883)),O=_(b(67779)),k=b(29859),P=b(86802),S=function ImageTools(){var t=(0,k.useLocation)().navigate;return C.default.createElement(w.default,null,C.default.createElement(w.default.Panel,null,C.default.createElement(w.default.BackButton,{onClick:function onClick(){return t(P.LOCATIONS.GENERATE)}},(0,x.__)("Generate with a prompt","elementor")),C.default.createElement(w.default.PanelHeading,{primary:(0,x.__)("Edit with AI","elementor")}),C.default.createElement(E.default,null)),C.default.createElement(w.default.Content,null,C.default.createElement(O.default,null)))};i.default=S},37358:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=b(46183),w=_(b(87327)),x=function useInPainting(t){return(0,w.default)((function fetchAction(t,i,b,_){return(0,C.getImageToImageMaskGeneration)(t,i,b,_)}),t)};i.default=x},96258:(t,i,b)=>{"use strict";var _=b(73203),C=b(7501);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==C(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in t)if("default"!==x&&Object.prototype.hasOwnProperty.call(t,x)){var E=w?Object.getOwnPropertyDescriptor(t,x):null;E&&(E.get||E.set)?Object.defineProperty(_,x,E):_[x]=t[x]}_.default=t,b&&b.set(t,_);return _}(b(87363)),x=_(b(50824)),E=_(b(10029)),O=_(b(40131)),k=b(36626),P=b(38003),S=_(b(23615)),I=b(23866),T=_(b(58155)),j=_(b(61433));function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}var M="rgba(0, 0, 0, 0.75)",A=(0,k.withDirection)(T.default),R=(0,k.withDirection)(j.default),D=(0,k.styled)(k.Box,{shouldForwardProp:function shouldForwardProp(t){return"size"===t}})((function(t){var i=t.theme,b=t.size;return{position:"absolute",width:b,height:b,borderRadius:"50%",backgroundColor:M,pointerEvents:"none",transform:"translate(".concat("rtl"===i.direction?"50%":"-50%",", -50%)"),border:"1px solid #fff"}})),L=(0,k.styled)(k.Box,{shouldForwardProp:function shouldForwardProp(t){return"size"===t}})((function(t){var i=t.theme,b=t.size;return{width:b/2,height:b/2,borderRadius:"50%",backgroundColor:i.palette.secondary.main}})),B=function InPaintingContent(t){var i=t.editImage,b=t.setMask,_=t.width,C=t.height,S=(0,w.useRef)(),T=(0,w.useState)(30),j=(0,O.default)(T,2),B=j[0],N=j[1],W=(0,w.useRef)();return(0,w.useEffect)((function(){var t=document.querySelector(".eui-in-painting-canvas"),i=function positionElement(i){var b=t.getBoundingClientRect(),_=b.left,C=b.top,w=b.width,x=b.height,E=i.clientX-_,O=i.clientY-C;E>0&&E<w&&O>0&&O<x&&(W.current.style.left="".concat(E,"px"),W.current.style.top="".concat(O,"px"))};return window.addEventListener("mousemove",i),function(){window.removeEventListener("mousemove",i)}}),[B]),w.default.createElement(k.Stack,{alignItems:"flex-start",spacing:.5,flexGrow:1},w.default.createElement(k.Stack,{width:"100%",direction:"row",spacing:3,alignSelf:"center",justifyContent:"center",sx:{mb:2.5}},w.default.createElement(k.Stack,{direction:"row",gap:1},w.default.createElement(k.Tooltip,{title:(0,P.__)("Undo","elementor")},w.default.createElement(k.Button,{variant:"outlined",color:"secondary",onClick:function onClick(){return S.current.undo()},sx:{px:0}},w.default.createElement(A,null))),w.default.createElement(k.Tooltip,{title:(0,P.__)("Redo","elementor")},w.default.createElement(k.Button,{variant:"outlined",color:"secondary",onClick:function onClick(){return S.current.redo()},sx:{px:0}},w.default.createElement(R,null)))),w.default.createElement(k.FormControl,{size:"small",color:"secondary",sx:{minWidth:120}},w.default.createElement(k.InputLabel,{id:"stroke"},"Stroke"),w.default.createElement(k.Select,{autoWidth:!0,label:"Stroke",value:B,id:"demo-simple-select",labelId:"demo-simple-select-label",onChange:function onChange(t){return N(t.target.value)},MenuProps:{PaperProps:{sx:{maxWidth:120}},MenuListProps:{sx:{minWidth:120}}},sx:{"& .MuiSelect-select .MuiListItemIcon-root":{mr:.25,width:"initial",minWidth:"initial",justifyContent:"flex-start"}}},[10,20,30,40,50].map((function(t){return w.default.createElement(k.MenuItem,{key:"stroke-width-option-"+t,value:t},w.default.createElement(k.Stack,{direction:"row",alignItems:"center",gap:1},w.default.createElement(k.ListItemIcon,{sx:{width:30,display:"flex",justifyContent:"center"}},w.default.createElement(L,{size:t})),w.default.createElement(k.ListItemText,null,t)))}))))),w.default.createElement("div",{style:{margin:"0 auto",position:"relative",cursor:"none",overflow:"hidden"}},w.default.createElement(D,{ref:W,size:B}),w.default.createElement(I.ReactSketchCanvas,{className:"eui-in-painting-canvas",withViewBox:!0,ref:S,height:C+"px",width:_+"px",strokeWidth:B,strokeColor:M,backgroundImage:i.url,onChange:(0,E.default)(x.default.mark((function _callee(){var t;return x.default.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,S.current.exportSvg();case 2:t=i.sent,b(t);case 4:case"end":return i.stop()}}),_callee)})))})))};B.propTypes={setMask:S.default.func.isRequired,width:S.default.number.isRequired,height:S.default.number.isRequired,editImage:S.default.object.isRequired};var N=B;i.default=N},26774:(t,i,b)=>{"use strict";var _=b(73203),C=b(7501);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==C(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in t)if("default"!==x&&Object.prototype.hasOwnProperty.call(t,x)){var E=w?Object.getOwnPropertyDescriptor(t,x):null;E&&(E.get||E.set)?Object.defineProperty(_,x,E):_[x]=t[x]}_.default=t,b&&b.set(t,_);return _}(b(87363)),x=_(b(40131)),E=b(36626),O=b(38003),k=_(b(38415)),P=_(b(38793)),S=_(b(65875)),I=_(b(96258)),T=_(b(78025)),j=_(b(12970)),M=_(b(69870)),A=_(b(69425)),R=_(b(73838)),D=_(b(37358)),L=b(24607),B=_(b(96718));function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}var N=function InPainting(){var t=(0,w.useState)(""),i=(0,x.default)(t,2),b=i[0],_=i[1],C=(0,w.useState)(""),N=(0,x.default)(C,2),W=N[0],H=N[1],q=(0,R.default)(),z=q.settings,V=q.resetSettings,G=(0,L.useEditImage)(),U=G.editImage,Y=G.width,Z=G.height,K=(0,B.default)(),X=K.use,$=K.edit,Q=K.isLoading,J=(0,D.default)(),ee=J.data,te=J.send,ne=J.isLoading,re=J.error,oe=J.reset,ae=ne||Q,ie=function handleSubmit(t){t.preventDefault(),te(b||"Remove object and fill based on the surroundings",z,U,W)};return w.default.createElement(k.default,null,w.default.createElement(k.default.Panel,null,w.default.createElement(k.default.BackButton,null),w.default.createElement(k.default.PanelHeading,{primary:(0,O.__)("Generative Fill","elementor"),secondary:(0,O.__)("Mark an area and edit it with a prompt.","elementor")}),re&&w.default.createElement(k.default.ErrorMessage,{error:re,onRetry:ie}),w.default.createElement(P.default,{onSubmit:ie},w.default.createElement(S.default,{value:b,disabled:ae,onChange:_,placeholder:(0,O.__)("Describe what you want to generate in the marked area (English only)","elementor")}),null!=ee&&ee.result?w.default.createElement(E.Stack,{gap:2,sx:{my:2.5}},w.default.createElement(j.default,{disabled:ae}),w.default.createElement(M.default,{disabled:ae,onClick:function onClick(){V(),_(""),oe()}})):w.default.createElement(T.default,{disabled:ae}))),w.default.createElement(k.default.Content,{isGenerating:ae},null!=ee&&ee.result?w.default.createElement(A.default,{images:ee.result,aspectRatio:U.aspectRatio,onUseImage:X,onEditImage:$}):w.default.createElement(I.default,{editImage:U,width:Y,height:Z,setMask:H})))};i.default=N},13167:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=b(46183),w=_(b(87327)),x=function useOutPainting(t){return(0,w.default)((function fetchAction(t,i,b,_){return(0,C.getImageToImageOutPainting)(t,i,b,_)}),t)};i.default=x},33845:(t,i,b)=>{"use strict";var _=b(73203),C=b(7501);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=_interopRequireWildcard(b(87363)),x=_(b(93231)),E=_(b(40131)),O=b(36626),k=b(38003),P=_(b(38415)),S=_(b(38793)),I=_(b(84123)),T=_(b(78025)),j=_(b(12970)),M=_(b(69870)),A=_(b(65875)),R=_(b(20828)),D=_(b(69425)),L=b(24607),B=_(b(96718)),N=_interopRequireWildcard(b(73838)),W=_(b(13167));function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==C(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in t)if("default"!==x&&Object.prototype.hasOwnProperty.call(t,x)){var E=w?Object.getOwnPropertyDescriptor(t,x):null;E&&(E.get||E.set)?Object.defineProperty(_,x,E):_[x]=t[x]}return _.default=t,b&&b.set(t,_),_}var H=function OutPainting(){var t=(0,w.useState)(""),i=(0,E.default)(t,2),b=i[0],_=i[1],C=(0,L.useEditImage)(),H=C.editImage,q=C.aspectRatio,z=(0,w.useState)(""),V=(0,E.default)(z,2),G=V[0],U=V[1],Y=(0,N.default)({aspectRatio:q}),Z=Y.settings,K=Y.updateSettings,X=Y.resetSettings,$=(0,B.default)(),Q=$.use,J=$.edit,ee=$.isLoading,te=(0,W.default)(),ne=te.data,re=te.send,oe=te.isLoading,ae=te.error,ie=te.reset,le=oe||ee,ue=(0,w.useMemo)((function(){return Z[N.IMAGE_RATIO]}),[null==ne?void 0:ne.result]),ce=!(null==ne||!ne.result),se=function handleSubmit(t){t.preventDefault(),re(b||"Fill based on the surroundings",Z,H,G)};return w.default.createElement(P.default,null,w.default.createElement(P.default.Panel,null,w.default.createElement(P.default.BackButton,null),w.default.createElement(P.default.PanelHeading,{primary:(0,k.__)("Expand Image","elementor"),secondary:(0,k.__)("Position image in its new size to generate content around the edges.","elementor")}),ae&&w.default.createElement(P.default.ErrorMessage,{error:ae,onRetry:se}),w.default.createElement(S.default,{onSubmit:se},w.default.createElement(I.default,{disabled:le||ce,value:Z[N.IMAGE_RATIO],onChange:function onChange(t){return K((0,x.default)({},N.IMAGE_RATIO,t.target.value))}}),w.default.createElement(O.FormControl,{sx:{width:"100%",mb:2.5}},w.default.createElement(O.Slider,{marks:!0,id:"zoom",name:"zoom",max:2,min:.1,step:.1,color:"secondary",defaultValue:1,disabled:le||ce,valueLabelDisplay:"auto","aria-labelledby":"image-size-slider","aria-label":(0,k.__)("Reference strength","elementor"),onChange:function onChange(t,i){return K((0,x.default)({},N.IMAGE_ZOOM,i))}}),w.default.createElement(O.Typography,{id:"image-size-slider",variant:"caption",gutterBottom:!0},(0,k.__)("Original image size","elementor"))),w.default.createElement(A.default,{value:b,disabled:le,onChange:_,placeholder:(0,k.__)("Describe what you want to generate in the expended area (English only)","elementor")}),null!=ne&&ne.result?w.default.createElement(O.Stack,{gap:2,sx:{my:2.5}},w.default.createElement(j.default,{disabled:le}),w.default.createElement(M.default,{disabled:le,onClick:function onClick(){X(),_(""),ie()}})):w.default.createElement(T.default,{disabled:le}))),w.default.createElement(P.default.Content,{isGenerating:le},ce?w.default.createElement(D.default,{onUseImage:Q,onEditImage:J,images:ne.result,aspectRatio:ue}):w.default.createElement(R.default,{setMask:U,editImage:H,scale:Z[N.IMAGE_ZOOM],aspectRatio:Z[N.IMAGE_RATIO]})))};i.default=H},20828:(t,i,b)=>{"use strict";var _=b(73203),C=b(7501);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==C(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in t)if("default"!==x&&Object.prototype.hasOwnProperty.call(t,x)){var E=w?Object.getOwnPropertyDescriptor(t,x):null;E&&(E.get||E.set)?Object.defineProperty(_,x,E):_[x]=t[x]}_.default=t,b&&b.set(t,_);return _}(b(87363)),x=_(b(50824)),E=_(b(10029)),O=b(36626),k=_(b(23615)),P=_(b(78462)),S=_(b(98608));function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}var I=function OutPaintingContent(t){var i=t.scale,b=t.setMask,_=t.editImage,C=t.aspectRatio,k=(0,w.useRef)(),I=(0,S.default)(C),T=I.width,j=I.height,M=function(){var t=(0,E.default)(x.default.mark((function _callee(){var t;return x.default.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,k.current.getImageScaledToCanvas().toDataURL();case 2:t=i.sent,b(t);case 4:case"end":return i.stop()}}),_callee)})));return function updateMask(){return t.apply(this,arguments)}}();return w.default.createElement(O.Stack,{alignItems:"center",spacing:.5,flexGrow:1},w.default.createElement(P.default,{ref:k,image:_.url,style:{backgroundImage:"linear-gradient(45deg, #bbb 25%, transparent 25%), linear-gradient(-45deg, #bbb 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #bbb 75%), linear-gradient(-45deg, transparent 75%, #bbb 75%)",backgroundSize:"20px 20px",backgroundPosition:"0 0, 0 10px, 10px -10px, -10px 0px",outline:"2px dashed #000",marginTop:"12px"},color:[0,0,0,.9],rotate:0,border:0,allowZoomOut:!0,backgroundColor:"transparent",showGrid:!0,onImageChange:function onImageChange(){return M()},onPositionChange:function onPositionChange(){return M()},width:T,height:j,scale:i}))};I.propTypes={scale:k.default.number.isRequired,setMask:k.default.func.isRequired,editImage:k.default.object.isRequired,aspectRatio:k.default.string.isRequired};var T=I;i.default=T},94818:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=b(46183),w=_(b(87327)),x=function useRemoveBackground(t){return(0,w.default)((function fetchAction(t){return(0,C.getImageToImageRemoveBackground)(t)}),t)};i.default=x},77474:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=b(36626),x=b(38003),E=_(b(38415)),O=_(b(78025)),k=_(b(38793)),P=_(b(69425)),S=_(b(20273)),I=b(24607),T=_(b(96718)),j=_(b(94818)),M=_(b(69870)),A=b(86802),R=b(29859),D=_(b(98608)),L=function RemoveBackground(){var t=(0,I.useEditImage)().editImage,i=(0,T.default)(),b=i.use,_=i.edit,L=i.isLoading,B=(0,j.default)(),N=B.data,W=B.send,H=B.isLoading,q=B.error,z=(0,R.useLocation)().navigate,V=H||L,G=(0,D.default)(t.aspectRatio),U=G.width,Y=G.height,Z=function handleSubmit(i){i.preventDefault(),W(t)};return C.default.createElement(E.default,null,C.default.createElement(E.default.Panel,null,C.default.createElement(E.default.BackButton,null),C.default.createElement(E.default.PanelHeading,{primary:(0,x.__)("Remove Background","elementor"),secondary:(0,x.__)("Create an image of the subject with a transparent background","elementor")}),q&&C.default.createElement(E.default.ErrorMessage,{error:q,onRetry:Z}),C.default.createElement(k.default,{onSubmit:Z},null!=N&&N.result?C.default.createElement(M.default,{variant:"contained",disabled:V,onClick:function onClick(){return z(A.LOCATIONS.GENERATE)}}):C.default.createElement(O.default,{disabled:V},(0,x.__)("Remove Background","elementor")))),C.default.createElement(E.default.Content,{isGenerating:V},null!=N&&N.result?C.default.createElement(w.Box,null,C.default.createElement(P.default,{transparentContainer:!0,onUseImage:b,onEditImage:_,images:N.result,aspectRatio:t.aspectRatio})):C.default.createElement(w.Box,null,C.default.createElement(S.default,null,C.default.createElement(S.default.Image,{src:t.url,alt:t.alt,style:{width:U,height:Y}})))))};i.default=L},19171:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=b(46183),w=_(b(87327)),x=function useReplaceBackground(t){return(0,w.default)((function fetchAction(t,i){return(0,C.getImageToImageReplaceBackground)(t,i)}),t)};i.default=x},64874:(t,i,b)=>{"use strict";var _=b(73203),C=b(7501);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==C(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in t)if("default"!==x&&Object.prototype.hasOwnProperty.call(t,x)){var E=w?Object.getOwnPropertyDescriptor(t,x):null;E&&(E.get||E.set)?Object.defineProperty(_,x,E):_[x]=t[x]}_.default=t,b&&b.set(t,_);return _}(b(87363)),x=_(b(40131)),E=_(b(38415)),O=b(38003),k=_(b(78025)),P=_(b(38793)),S=_(b(69425)),I=_(b(20273)),T=b(24607),j=_(b(96718)),M=_(b(19171)),A=_(b(65875)),R=b(86802),D=_(b(69870)),L=b(29859);function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}var B=function ReplaceBackground(){var t=(0,w.useState)(""),i=(0,x.default)(t,2),b=i[0],_=i[1],C=(0,T.useEditImage)().editImage,B=(0,j.default)(),N=B.use,W=B.edit,H=B.isLoading,q=(0,M.default)(),z=q.data,V=q.send,G=q.isLoading,U=q.error,Y=(q.reset,(0,L.useLocation)().navigate),Z=G||H,K=function handleSubmit(t){t.preventDefault(),V(b,C)};return w.default.createElement(E.default,null,w.default.createElement(E.default.Panel,null,w.default.createElement(E.default.BackButton,null),w.default.createElement(E.default.PanelHeading,{primary:(0,O.__)("Replace Background","elementor"),secondary:(0,O.__)("Generate a new background with a prompt.","elementor")}),U&&w.default.createElement(E.default.ErrorMessage,{error:U,onRetry:K}),w.default.createElement(P.default,{onSubmit:K},w.default.createElement(A.default,{value:b,disabled:Z,onChange:_,placeholder:(0,O.__)("Describe what you want to generate in the background (English only)","elementor")}),w.default.createElement(k.default,{disabled:Z||""===b,color:null!=z&&z.result?"secondary":"primary"},null!=z&&z.result?(0,O.__)("Generate Again","elementor"):(0,O.__)("Replace Background","elementor")),(null==z?void 0:z.result)&&w.default.createElement(D.default,{disabled:Z,onClick:function onClick(){return Y(R.LOCATIONS.GENERATE)}}))),w.default.createElement(E.default.Content,{isGenerating:Z},null!=z&&z.result?w.default.createElement(S.default,{onUseImage:N,onEditImage:W,images:z.result,aspectRatio:C.aspectRatio}):w.default.createElement(I.default,null,w.default.createElement(I.default.Image,{src:C.url,alt:C.alt,style:{width:C.width,height:C.height}}))))};i.default=B},73781:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=b(46183),w=_(b(87327)),x=function useResize(t){return(0,w.default)((function fetchAction(t,i,b){return(0,C.getImageToImageUpscale)(t,i,b)}),t)};i.default=x},72269:(t,i,b)=>{"use strict";var _=b(73203),C=b(7501);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=_(b(87363)),x=_(b(93231)),E=b(36626),O=b(38003),k=_(b(38415)),P=_(b(78025)),S=_(b(38793)),I=_(b(69425)),T=_(b(20273)),j=b(24607),M=_(b(73781)),A=_(b(96718)),R=function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==C(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in t)if("default"!==x&&Object.prototype.hasOwnProperty.call(t,x)){var E=w?Object.getOwnPropertyDescriptor(t,x):null;E&&(E.get||E.set)?Object.defineProperty(_,x,E):_[x]=t[x]}_.default=t,b&&b.set(t,_);return _}(b(73838));function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}var D=function Resize(){var t=(0,j.useEditImage)(),i=t.editImage,b=t.width,_=(0,A.default)(),C=_.use,D=_.edit,L=_.isLoading,B=(0,R.default)(),N=B.settings,W=B.updateSettings,H=(0,M.default)(),q=H.data,z=H.send,V=H.isLoading,G=H.error,U=V||L,Y=function handleSubmit(t){t.preventDefault(),z(null,N,i)};return w.default.createElement(k.default,null,w.default.createElement(k.default.Panel,null,w.default.createElement(k.default.BackButton,null),w.default.createElement(k.default.PanelHeading,{primary:(0,O.__)("Resize","elementor"),secondary:(0,O.__)("Make an image larger and improve its resolution.","elementor")}),G&&w.default.createElement(k.default.ErrorMessage,{error:G,onRetry:Y}),w.default.createElement(S.default,{onSubmit:Y},w.default.createElement(E.Stack,{spacing:.2},w.default.createElement(E.Box,{display:"flex",justifyContent:"space-between",alignItems:"center"},w.default.createElement(E.Typography,{variant:"caption"},"512px"),w.default.createElement(E.Typography,{variant:"caption"},"2048px")),w.default.createElement(E.Slider,{marks:!0,step:64,min:512,max:2048,id:"upscale_to",color:"secondary",name:"upscale_to",disabled:U,defaultValue:b,valueLabelDisplay:"auto","aria-label":(0,O.__)("Upscale to","elementor"),onChange:function onChange(t,i){return W((0,x.default)({},R.IMAGE_UPSCALE,i))}}),w.default.createElement(E.Box,{display:"flex",justifyContent:"space-between",alignItems:"center"},w.default.createElement(E.Typography,{variant:"caption"},(0,O.__)("Current","elementor")),w.default.createElement(E.Typography,{variant:"caption"},(0,O.__)("Output","elementor")))),w.default.createElement(P.default,{disabled:U}))),w.default.createElement(k.default.Content,{isGenerating:U},null!=q&&q.result?w.default.createElement(I.default,{onUseImage:C,onEditImage:D,images:q.result,aspectRatio:i.aspectRatio}):w.default.createElement(T.default,null,w.default.createElement(T.default.Image,{src:i.url,alt:i.alt,style:{width:i.width,height:i.height}}))))};i.default=D},3861:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(87363)),w=b(36626),x=b(34029),E=function VariationsPlaceholder(){return C.default.createElement(w.Box,{sx:{overflowY:"scroll"},flexGrow:1},C.default.createElement(w.Box,{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:3},Array(4).fill(!0).map((function(t,i){return C.default.createElement(w.Box,{key:"placeholder-".concat(i),display:"flex",justifyContent:"center",alignItems:"center",sx:{bgcolor:"action.selected",height:336}},C.default.createElement(x.AIIcon,{color:"secondary",sx:{fontSize:36}}))}))))};E.propTypes={};var O=E;i.default=O},80449:(t,i,b)=>{"use strict";var _=b(73203);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=b(46183),w=_(b(87327)),x=function useImageToImage(t){return(0,w.default)((function fetchAction(t,i,b){return(0,C.getImageToImageGeneration)(t,i,b)}),t)};i.default=x},62292:(t,i,b)=>{"use strict";var _=b(73203),C=b(7501);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=_interopRequireWildcard(b(87363)),x=_(b(93231)),E=_(b(40131)),O=b(36626),k=b(38003),P=_(b(38415)),S=_(b(38793)),I=_(b(67329)),T=_(b(65875)),j=_(b(50198)),M=_(b(75703)),A=_(b(84123)),R=_(b(12970)),D=_(b(66467)),L=_(b(69425)),B=_(b(3861)),N=_(b(80449)),W=_(b(96718)),H=b(24607),q=_interopRequireWildcard(b(73838));function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==C(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in t)if("default"!==x&&Object.prototype.hasOwnProperty.call(t,x)){var E=w?Object.getOwnPropertyDescriptor(t,x):null;E&&(E.get||E.set)?Object.defineProperty(_,x,E):_[x]=t[x]}return _.default=t,b&&b.set(t,_),_}var z=function Variations(){var t,i=(0,w.useState)(""),b=(0,E.default)(i,2),_=b[0],C=b[1],z=(0,H.useEditImage)(),V=z.editImage,G=z.aspectRatio,U=(0,q.default)({aspectRatio:G,imageWeight:45}),Y=U.settings,Z=U.updateSettings,K=(0,N.default)(),X=K.data,$=K.send,Q=K.isLoading,J=K.error,ee=(0,W.default)(),te=ee.use,ne=ee.edit,re=ee.isLoading,oe=Q||re,ae=(0,w.useMemo)((function(){return Y[q.IMAGE_RATIO]}),[null==X?void 0:X.result]),ie=function handleSubmit(t){t.preventDefault(),$(_,Y,V)};return w.default.createElement(P.default,null,w.default.createElement(P.default.Panel,null,w.default.createElement(P.default.BackButton,null),w.default.createElement(P.default.PanelHeading,{primary:(0,k.__)("Variations","elementor"),secondary:(0,k.__)("Create new versions of the original image.","elementor")}),J&&w.default.createElement(P.default.ErrorMessage,{error:J,onRetry:ie}),w.default.createElement(S.default,{onSubmit:ie},w.default.createElement(O.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"action.selected"}},w.default.createElement("img",{src:(null==V?void 0:V.image_url)||(null==V?void 0:V.url),alt:_,style:{width:"auto",height:"auto",maxWidth:"100%",maxHeight:166,objectFit:"contained"}})),w.default.createElement(I.default,{disabled:oe,defaultValue:45,onChange:function onChange(t){return Z((0,x.default)({},q.IMAGE_STRENGTH,t.target.value))}}),w.default.createElement(T.default,{value:_,disabled:oe,placeholder:(0,k.__)("describe your image","elementor"),onChange:C}),w.default.createElement(j.default,{disabled:oe,value:Y[q.IMAGE_TYPE],onChange:function onChange(t){return Z((0,x.default)({},q.IMAGE_TYPE,t.target.value))}}),w.default.createElement(M.default,{type:Y[q.IMAGE_TYPE],value:Y[q.IMAGE_STYLE],disabled:oe||!Y[q.IMAGE_TYPE]||!1,onChange:function onChange(t){return Z((0,x.default)({},q.IMAGE_STYLE,t.target.value))}}),w.default.createElement(A.default,{disabled:oe,value:Y[q.IMAGE_RATIO],onChange:function onChange(t){return Z((0,x.default)({},q.IMAGE_RATIO,t.target.value))}}),w.default.createElement(O.Stack,{gap:2,sx:{my:2.5}},(null==X||null===(t=X.result)||void 0===t?void 0:t.length)>0?w.default.createElement(R.default,{disabled:oe||""===_}):w.default.createElement(D.default,{disabled:oe||""===_})))),w.default.createElement(P.default.Content,{isGenerating:oe},null!=X&&X.result?w.default.createElement(L.default,{images:X.result,aspectRatio:ae,onUseImage:te,onEditImage:ne}):w.default.createElement(B.default,null)))};z.propTypes={};var V=z;i.default=V},85157:(t,i,b)=>{"use strict";var _=b(73203),C=b(7501);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==C(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in t)if("default"!==x&&Object.prototype.hasOwnProperty.call(t,x)){var E=w?Object.getOwnPropertyDescriptor(t,x):null;E&&(E.get||E.set)?Object.defineProperty(_,x,E):_[x]=t[x]}_.default=t,b&&b.set(t,_);return _}(b(87363)),x=_(b(50824)),E=_(b(10029)),O=_(b(40131)),k=b(36626),P=b(38003),S=_(b(23615)),I=b(34029),T=_(b(71871)),j=_(b(51391)),M=_(b(87105)),A=_(b(79619)),R=_(b(93970)),D=_(b(4466)),L=_(b(77655)),B=_(b(86960)),N=_(b(65441)),W=b(17927),H=b(10905);function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}var q=[{label:(0,P.__)("Simplify language","elementor"),icon:w.default.createElement(I.MessageIcon,{fontSize:"small"}),value:"Simplify the language of the following message"},{label:(0,P.__)("Make it longer","elementor"),icon:w.default.createElement(I.ExpandIcon,{fontSize:"small"}),value:"Make the following message longer"},{label:(0,P.__)("Make it shorter","elementor"),icon:w.default.createElement(I.ShrinkIcon,{fontSize:"small"}),value:"Make the following message shorter"},{label:(0,P.__)("Fix spelling & grammar","elementor"),icon:w.default.createElement(I.AIIcon,{fontSize:"small"}),value:"Fix the spelling and grammar of the following message"}],z=[{label:(0,P.__)("Change tone","elementor"),options:W.vocalTones,getInstruction:function getInstruction(t){return"Change the tone of the following message to ".concat(t)}},{label:(0,P.__)("Translate to","elementor"),options:W.translateLanguages,getInstruction:function getInstruction(t){return"Translate the following message to ".concat(t)}}],V=function FormText(t){var i=t.type,b=t.onClose,_=t.getControlValue,C=t.setControlValue,S=t.additionalOptions,I=t.credits,V=t.children,G=_()===(null==S?void 0:S.defaultValue)?"":_(),U=(0,N.default)({result:G,credits:I}),Y=U.data,Z=U.isLoading,K=U.error,X=U.setResult,$=U.reset,Q=U.send,J=U.sendUsageData,ee=(0,w.useState)(""),te=(0,O.default)(ee,2),ne=te[0],re=te[1];(0,H.useSubscribeOnPromptHistoryAction)([{type:H.ACTION_TYPES.REUSE,handler:function handler(t){$(),re(t.data)}},{type:H.ACTION_TYPES.EDIT,handler:function handler(t){X(t.data)}}]);var oe=(0,w.useRef)(null),ae=(0,w.useRef)(null),ie=(0,w.useRef)((function(){})),le="textarea"===i?W.textareaAutocomplete:W.textAutocomplete,ue=!ne,ce=function(){var t=(0,E.default)(x.default.mark((function _callee(t){return x.default.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:ie.current=function(){return Q(ae.current.value,t)},ie.current();case 2:case"end":return i.stop()}}),_callee)})));return function handleCustomInstruction(i){return t.apply(this,arguments)}}();return Z?w.default.createElement(T.default,null):w.default.createElement(w.default.Fragment,null,K&&w.default.createElement(B.default,{error:K,onRetry:ie.current,sx:{mb:2.5}}),V,!Y.result&&w.default.createElement(k.Box,{component:"form",onSubmit:function handleSubmit(t){t.preventDefault(),ie.current=function(){return Q(ne)},ie.current()}},w.default.createElement(k.Box,{sx:{mb:2.5}},w.default.createElement(j.default,{ref:oe,placeholder:(0,P.__)("Describe the text and tone you want to use...","elementor"),name:"prompt",value:ne,onChange:function onChange(t){return re(t.target.value)}})),ue&&w.default.createElement(A.default,{suggestions:le,onSelect:function handleSuggestion(t){re(t+" "),oe.current.focus()},suggestionFilter:function suggestionFilter(t){return t+"..."}}),w.default.createElement(k.Stack,{direction:"row",alignItems:"center",sx:{py:1.5,mt:4}},w.default.createElement(k.Stack,{direction:"row",justifyContent:"flex-end",flexGrow:1},w.default.createElement(D.default,null,(0,P.__)("Generate text","elementor"))))),Y.result&&w.default.createElement(k.Box,{sx:{mt:1}},w.default.createElement(M.default,{fullWidth:!0,ref:ae,value:Y.result,helperText:(0,P.__)("Text generated by AI may be inaccurate or offensive.","elementor"),onChange:function onChange(t){return X(t.target.value)}}),w.default.createElement(k.Grid,{container:!0,spacing:1,sx:{mt:2.5}},q.map((function(t){var i=t.label,b=t.icon,_=t.value;return w.default.createElement(k.Grid,{item:!0,key:i},w.default.createElement(L.default,{label:i,icon:b,onClick:function onClick(){return ce(_)}}))}))),w.default.createElement(k.Stack,{direction:"row",alignItems:"center",spacing:1,sx:{mt:2.5}},z.map((function(t){var i=t.label,b=t.options,_=t.getInstruction;return w.default.createElement(R.default,{key:i,label:i,options:b,onChange:function onChange(t){return ce(_(t.target.value))}})}))),w.default.createElement(k.Stack,{direction:"row",alignItems:"center",sx:{my:1}},w.default.createElement(k.Stack,{direction:"row",gap:1,justifyContent:"flex-end",flexGrow:1},w.default.createElement(k.Button,{size:"small",color:"secondary",variant:"text",onClick:$},(0,P.__)("New prompt","elementor")),w.default.createElement(k.Button,{size:"small",variant:"contained",color:"primary",onClick:function applyPrompt(){J(),C(ae.current.value),b()}},(0,P.__)("Use text","elementor"))))))};V.propTypes={type:S.default.string.isRequired,controlType:S.default.string,onClose:S.default.func.isRequired,getControlValue:S.default.func.isRequired,setControlValue:S.default.func.isRequired,additionalOptions:S.default.object,credits:S.default.number,usagePercentage:S.default.number,children:S.default.node};var G=V;i.default=G},96587:(t,i,b)=>{"use strict";var _=b(73203),C=b(7501);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==C(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in t)if("default"!==x&&Object.prototype.hasOwnProperty.call(t,x)){var E=w?Object.getOwnPropertyDescriptor(t,x):null;E&&(E.get||E.set)?Object.defineProperty(_,x,E):_[x]=t[x]}_.default=t,b&&b.set(t,_);return _}(b(87363)),x=_(b(50824)),E=_(b(10029)),O=_(b(40131)),k=b(36626),P=b(38003),S=_(b(23615)),I=b(46183),T=b(34029);function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}var j=function GetStarted(t){var i=t.onSuccess,b=(0,w.useState)(!1),_=(0,O.default)(b,2),C=_[0],S=_[1],j=function(){var t=(0,E.default)(x.default.mark((function _callee(){return x.default.wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,I.setGetStarted)();case 2:i();case 3:case"end":return t.stop()}}),_callee)})));return function onGetStartedClick(){return t.apply(this,arguments)}}();return w.default.createElement(k.Stack,{alignItems:"center",gap:1.5},w.default.createElement(T.AIIcon,{sx:{color:"text.primary",fontSize:"60px",mb:1}}),w.default.createElement(k.Typography,{variant:"h4",sx:{color:"text.primary"}},(0,P.__)("Step into the future with Elementor AI","elementor")),w.default.createElement(k.Typography,{variant:"body2"},(0,P.__)("Create smarter with AI text and code generators built right into the editor.","elementor")),w.default.createElement(k.Stack,{direction:"row",gap:1.5,alignItems:"flex-start"},w.default.createElement(k.Checkbox,{id:"e-ai-terms-approval",color:"secondary",sx:{p:0},onChange:function onChange(){return S((function(t){return!t}))}}),w.default.createElement(k.Stack,null,w.default.createElement(k.Typography,{variant:"caption",sx:{maxWidth:520},component:"label",htmlFor:"e-ai-terms-approval"},(0,P.__)("I approve the ","elementor"),w.default.createElement(k.Link,{href:"https://go.elementor.com/ai-terms/",target:"_blank",color:"info.main"},(0,P.__)("Terms of Service","elementor"))," & ",w.default.createElement(k.Link,{href:"https://go.elementor.com/ai-privacy-policy/",target:"_blank",color:"info.main"},(0,P.__)("Privacy Policy","elementor")),(0,P.__)(" of the Elementor AI service.","elementor"),w.default.createElement("br",null),(0,P.__)("This includes consenting to the collection and use of data to improve user experience.","elementor")))),w.default.createElement(k.Button,{disabled:!C,variant:"contained",onClick:j,sx:{mt:1,"&:hover":{color:"primary.contrastText"}}},(0,P.__)("Get Started","elementor")))};j.propTypes={onSuccess:S.default.func.isRequired};var M=j;i.default=M},38944:(t,i,b)=>{"use strict";function r(t){var i,b,_="";if("string"==typeof t||"number"==typeof t)_+=t;else if("object"==typeof t)if(Array.isArray(t))for(i=0;i<t.length;i++)t[i]&&(b=r(t[i]))&&(_&&(_+=" "),_+=b);else for(i in t)t[i]&&(_&&(_+=" "),_+=i);return _}function clsx(){for(var t,i,b=0,_="";b<arguments.length;)(t=arguments[b++])&&(i=r(t))&&(_&&(_+=" "),_+=i);return _}b.r(i),b.d(i,{clsx:()=>clsx,default:()=>_});const _=clsx},50229:t=>{"use strict";var i=Object.prototype.hasOwnProperty,b=Object.prototype.toString,_=Object.defineProperty,C=Object.getOwnPropertyDescriptor,w=function isArray(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===b.call(t)},x=function isPlainObject(t){if(!t||"[object Object]"!==b.call(t))return!1;var _,C=i.call(t,"constructor"),w=t.constructor&&t.constructor.prototype&&i.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!C&&!w)return!1;for(_ in t);return void 0===_||i.call(t,_)},E=function setProperty(t,i){_&&"__proto__"===i.name?_(t,i.name,{enumerable:!0,configurable:!0,value:i.newValue,writable:!0}):t[i.name]=i.newValue},O=function getProperty(t,b){if("__proto__"===b){if(!i.call(t,b))return;if(C)return C(t,b).value}return t[b]};t.exports=function extend(){var t,i,b,_,C,k,P=arguments[0],S=1,I=arguments.length,T=!1;for("boolean"==typeof P&&(T=P,P=arguments[1]||{},S=2),(null==P||"object"!=typeof P&&"function"!=typeof P)&&(P={});S<I;++S)if(null!=(t=arguments[S]))for(i in t)b=O(P,i),P!==(_=O(t,i))&&(T&&_&&(x(_)||(C=w(_)))?(C?(C=!1,k=b&&w(b)?b:[]):k=b&&x(b)?b:{},E(P,{name:i,newValue:extend(T,k,_)})):void 0!==_&&E(P,{name:i,newValue:_}));return P}},3812:t=>{var i=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,b=/\n/g,_=/^\s*/,C=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,w=/^:\s*/,x=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,E=/^[;\s]*/,O=/^\s+|\s+$/g,k="";function trim(t){return t?t.replace(O,k):k}t.exports=function(t,O){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];O=O||{};var P=1,S=1;function updatePosition(t){var i=t.match(b);i&&(P+=i.length);var _=t.lastIndexOf("\n");S=~_?t.length-_:S+t.length}function position(){var t={line:P,column:S};return function(i){return i.position=new Position(t),whitespace(),i}}function Position(t){this.start=t,this.end={line:P,column:S},this.source=O.source}Position.prototype.content=t;var I=[];function error(i){var b=new Error(O.source+":"+P+":"+S+": "+i);if(b.reason=i,b.filename=O.source,b.line=P,b.column=S,b.source=t,!O.silent)throw b;I.push(b)}function match(i){var b=i.exec(t);if(b){var _=b[0];return updatePosition(_),t=t.slice(_.length),b}}function whitespace(){match(_)}function comments(t){var i;for(t=t||[];i=comment();)!1!==i&&t.push(i);return t}function comment(){var i=position();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var b=2;k!=t.charAt(b)&&("*"!=t.charAt(b)||"/"!=t.charAt(b+1));)++b;if(b+=2,k===t.charAt(b-1))return error("End of comment missing");var _=t.slice(2,b-2);return S+=2,updatePosition(_),t=t.slice(b),S+=2,i({type:"comment",comment:_})}}function declaration(){var t=position(),b=match(C);if(b){if(comment(),!match(w))return error("property missing ':'");var _=match(x),O=t({type:"declaration",property:trim(b[0].replace(i,k)),value:_?trim(_[0].replace(i,k)):k});return match(E),O}}return whitespace(),function declarations(){var t,i=[];for(comments(i);t=declaration();)!1!==t&&(i.push(t),comments(i));return i}()}},48809:t=>{t.exports=function isBuffer(t){return null!=t&&null!=t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},58772:(t,i,b)=>{"use strict";var _=b(90331);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,t.exports=function(){function shim(t,i,b,C,w,x){if(x!==_){var E=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw E.name="Invariant Violation",E}}function getShim(){return shim}shim.isRequired=shim;var t={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return t.PropTypes=t,t}},23615:(t,i,b)=>{t.exports=b(58772)()},90331:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},78462:function(t,i,b){t.exports=function(t,i){"use strict";function o(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var b=o(t),_=o(i);function r(t,i){for(var b=0;b<i.length;b++){var _=i[b];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(t,_.key,_)}}function s(t,i,b){return i in t?Object.defineProperty(t,i,{value:b,enumerable:!0,configurable:!0,writable:!0}):t[i]=b,t}function u(){return(u=Object.assign||function(t){for(var i=1;i<arguments.length;i++){var b=arguments[i];for(var _ in b)Object.prototype.hasOwnProperty.call(b,_)&&(t[_]=b[_])}return t}).apply(this,arguments)}function a(t,i){var b,_=Object.keys(t);return Object.getOwnPropertySymbols&&(b=Object.getOwnPropertySymbols(t),i&&(b=b.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),_.push.apply(_,b)),_}function y(t){for(var i=1;i<arguments.length;i++){var b=null!=arguments[i]?arguments[i]:{};i%2?a(Object(b),!0).forEach((function(i){s(t,i,b[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(b)):a(Object(b)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(b,i))}))}return t}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,i){return(c=Object.setPrototypeOf||function(t,i){return t.__proto__=i,t})(t,i)}function l(t,i){if(null==t)return{};var b,_=function(t,i){if(null==t)return{};for(var b,_={},C=Object.keys(t),w=0;w<C.length;w++)b=C[w],0<=i.indexOf(b)||(_[b]=t[b]);return _}(t,i);if(Object.getOwnPropertySymbols)for(var C=Object.getOwnPropertySymbols(t),w=0;w<C.length;w++)b=C[w],0<=i.indexOf(b)||Object.prototype.propertyIsEnumerable.call(t,b)&&(_[b]=t[b]);return _}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t){var i=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(t){return!1}}();return function(){var b,_,C=h(t);return!(_=i?(b=h(this).constructor,Reflect.construct(C,arguments,b)):C.apply(this,arguments))||"object"!=typeof _&&"function"!=typeof _?d(this):_}}function m(t,i){return function(t){if(Array.isArray(t))return t}(t)||function(t,i){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var b=[],_=!0,C=!1,w=void 0;try{for(var x,E=t[Symbol.iterator]();!(_=(x=E.next()).done)&&(b.push(x.value),!i||b.length!==i);_=!0);}catch(t){C=!0,w=t}finally{try{_||null==E.return||E.return()}finally{if(C)throw w}}return b}}(t,i)||g(t,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,i){if(t){if("string"==typeof t)return f(t,i);var b=Object.prototype.toString.call(t).slice(8,-1);return"Object"===b&&t.constructor&&(b=t.constructor.name),"Map"===b||"Set"===b?Array.from(t):"Arguments"===b||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)?f(t,i):void 0}}function f(t,i){(null==i||i>t.length)&&(i=t.length);for(var b=0,_=new Array(i);b<i;b++)_[b]=t[b];return _}function v(t,i){return new Promise((function(b,_){var C,w=new Image;w.onload=function(){return b(w)},w.onerror=_,0==(null!==(C=t)&&!!C.match(/^\s*data:([a-z]+\/[a-z]+(;[a-z-]+=[a-z-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=\-._~:@/?%\s]*\s*$/i))&&i&&(w.crossOrigin=i),w.src=t}))}var C,w=!("undefined"==typeof window||"undefined"==typeof navigator||!("ontouchstart"in window||0<navigator.msMaxTouchPoints)),x="undefined"!=typeof File,E={touch:{react:{down:"onTouchStart",mouseDown:"onMouseDown",drag:"onTouchMove",move:"onTouchMove",mouseMove:"onMouseMove",up:"onTouchEnd",mouseUp:"onMouseUp"},native:{down:"touchstart",mouseDown:"mousedown",drag:"touchmove",move:"touchmove",mouseMove:"mousemove",up:"touchend",mouseUp:"mouseup"}},desktop:{react:{down:"onMouseDown",drag:"onDragOver",move:"onMouseMove",up:"onMouseUp"},native:{down:"mousedown",drag:"dragStart",move:"mousemove",up:"mouseup"}}},O=w?E.touch:E.desktop,k="undefined"!=typeof window&&window.devicePixelRatio?window.devicePixelRatio:1,P={x:.5,y:.5},S=function(){!function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),i&&c(t,i)}(a,_.default.Component);var t,i,b,C=p(a);function a(t){var i;return function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,a),s(d(i=C.call(this,t)),"state",{drag:!1,my:null,mx:null,image:P}),s(d(i),"handleImageReady",(function(t){var b=i.getInitialSize(t.width,t.height);b.resource=t,b.x=.5,b.y=.5,b.backgroundColor=i.props.backgroundColor,i.setState({drag:!1,image:b},i.props.onImageReady),i.props.onLoadSuccess(b)})),s(d(i),"clearImage",(function(){i.canvas.getContext("2d").clearRect(0,0,i.canvas.width,i.canvas.height),i.setState({image:P})})),s(d(i),"handleMouseDown",(function(t){(t=t||window.event).preventDefault(),i.setState({drag:!0,mx:null,my:null})})),s(d(i),"handleMouseUp",(function(){i.state.drag&&(i.setState({drag:!1}),i.props.onMouseUp())})),s(d(i),"handleMouseMove",(function(t){var b,_,C,w,x,E,O,k,P,S,I,T,j,M,A,R;t=t||window.event,!1!==i.state.drag&&(t.preventDefault(),C={mx:b=t.targetTouches?t.targetTouches[0].pageX:t.clientX,my:_=t.targetTouches?t.targetTouches[0].pageY:t.clientY},R=i.props.rotate,R=(R%=360)<0?R+360:R,i.state.mx&&i.state.my&&(w=i.state.mx-b,x=i.state.my-_,E=i.state.image.width*i.props.scale,O=i.state.image.height*i.props.scale,P=(k=i.getCroppingRect()).x,S=k.y,P*=E,S*=O,I=function(t){return t*(Math.PI/180)},T=Math.cos(I(R)),M=S+-w*(j=Math.sin(I(R)))+x*T,A={x:(P+w*T+x*j)/E+1/i.props.scale*i.getXScale()/2,y:M/O+1/i.props.scale*i.getYScale()/2},i.props.onPositionChange(A),C.image=y(y({},i.state.image),A)),i.setState(C),i.props.onMouseMove(t))})),s(d(i),"setCanvas",(function(t){i.canvas=t})),i.canvas=null,i}return t=a,(i=[{key:"componentDidMount",value:function(){this.props.disableHiDPIScaling&&(k=1);var t,i,b=this.canvas.getContext("2d");this.props.image&&this.loadImage(this.props.image),this.paint(b),document&&(t=!!function(){var t=!1;try{var i=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",i,i),window.removeEventListener("test",i,i)}catch(i){t=!1}return t}()&&{passive:!1},i=O.native,document.addEventListener(i.move,this.handleMouseMove,t),document.addEventListener(i.up,this.handleMouseUp,t),w&&(document.addEventListener(i.mouseMove,this.handleMouseMove,t),document.addEventListener(i.mouseUp,this.handleMouseUp,t)))}},{key:"componentDidUpdate",value:function(t,i){this.props.image&&this.props.image!==t.image||this.props.width!==t.width||this.props.height!==t.height||this.props.backgroundColor!==t.backgroundColor?this.loadImage(this.props.image):this.props.image||i.image===P||this.clearImage();var b=this.canvas.getContext("2d");b.clearRect(0,0,this.canvas.width,this.canvas.height),this.paint(b),this.paintImage(b,this.state.image,this.props.border),t.image===this.props.image&&t.width===this.props.width&&t.height===this.props.height&&t.position===this.props.position&&t.scale===this.props.scale&&t.rotate===this.props.rotate&&i.my===this.state.my&&i.mx===this.state.mx&&i.image.x===this.state.image.x&&i.image.y===this.state.image.y&&i.backgroundColor===this.state.backgroundColor||this.props.onImageChange()}},{key:"componentWillUnmount",value:function(){var t;document&&(t=O.native,document.removeEventListener(t.move,this.handleMouseMove,!1),document.removeEventListener(t.up,this.handleMouseUp,!1),w&&(document.removeEventListener(t.mouseMove,this.handleMouseMove,!1),document.removeEventListener(t.mouseUp,this.handleMouseUp,!1)))}},{key:"isVertical",value:function(){return!this.props.disableCanvasRotation&&this.props.rotate%180!=0}},{key:"getBorders",value:function(t){var i=0<arguments.length&&void 0!==t?t:this.props.border;return Array.isArray(i)?i:[i,i]}},{key:"getDimensions",value:function(){var t=this.props,i=t.width,b=t.height,_=t.rotate,C=t.border,w={},x=m(this.getBorders(C),2),E=x[0],O=x[1],k=i,P=b;return this.isVertical()?(w.width=P,w.height=k):(w.width=k,w.height=P),w.width+=2*E,w.height+=2*O,{canvas:w,rotate:_,width:i,height:b,border:C}}},{key:"getImage",value:function(){var t=this.getCroppingRect(),i=this.state.image;t.x*=i.resource.width,t.y*=i.resource.height,t.width*=i.resource.width,t.height*=i.resource.height;var b=document.createElement("canvas");this.isVertical()?(b.width=t.height,b.height=t.width):(b.width=t.width,b.height=t.height);var _=b.getContext("2d");return _.translate(b.width/2,b.height/2),_.rotate(this.props.rotate*Math.PI/180),_.translate(-b.width/2,-b.height/2),this.isVertical()&&_.translate((b.width-b.height)/2,(b.height-b.width)/2),i.backgroundColor&&(_.fillStyle=i.backgroundColor,_.fillRect(-t.x,-t.y,i.resource.width,i.resource.height)),_.drawImage(i.resource,-t.x,-t.y),b}},{key:"getImageScaledToCanvas",value:function(){var t=this.getDimensions(),i=t.width,b=t.height,_=document.createElement("canvas");return this.isVertical()?(_.width=b,_.height=i):(_.width=i,_.height=b),this.paintImage(_.getContext("2d"),this.state.image,0,1),_}},{key:"getXScale",value:function(){var t=this.props.width/this.props.height,i=this.state.image.width/this.state.image.height;return Math.min(1,t/i)}},{key:"getYScale",value:function(){var t=this.props.height/this.props.width,i=this.state.image.height/this.state.image.width;return Math.min(1,t/i)}},{key:"getCroppingRect",value:function(){var t=this.props.position||{x:this.state.image.x,y:this.state.image.y},i=1/this.props.scale*this.getXScale(),b=1/this.props.scale*this.getYScale(),_={x:t.x-i/2,y:t.y-b/2,width:i,height:b},C=0,w=1-_.width,x=0,E=1-_.height;return(this.props.disableBoundaryChecks||1<i||1<b)&&(C=-_.width,x=-_.height,E=w=1),y(y({},_),{},{x:Math.max(C,Math.min(_.x,w)),y:Math.max(x,Math.min(_.y,E))})}},{key:"loadImage",value:function(t){var i;x&&t instanceof File?this.loadingImage=(i=t,new Promise((function(t,b){var _=new FileReader;_.onload=function(i){try{var _=v(i.target.result);t(_)}catch(i){b(i)}},_.readAsDataURL(i)})).then(this.handleImageReady).catch(this.props.onLoadFailure)):"string"==typeof t&&(this.loadingImage=v(t,this.props.crossOrigin).then(this.handleImageReady).catch(this.props.onLoadFailure))}},{key:"getInitialSize",value:function(t,i){var b,_,C=this.getDimensions();return i/t<C.height/C.width?_=t*((b=this.getDimensions().height)/i):b=i*((_=this.getDimensions().width)/t),{height:b,width:_}}},{key:"paintImage",value:function(t,i,b,_){var C,w=3<arguments.length&&void 0!==_?_:k;i.resource&&(C=this.calculatePosition(i,b),t.save(),t.translate(t.canvas.width/2,t.canvas.height/2),t.rotate(this.props.rotate*Math.PI/180),t.translate(-t.canvas.width/2,-t.canvas.height/2),this.isVertical()&&t.translate((t.canvas.width-t.canvas.height)/2,(t.canvas.height-t.canvas.width)/2),t.scale(w,w),t.globalCompositeOperation="destination-over",t.drawImage(i.resource,C.x,C.y,C.width,C.height),i.backgroundColor&&(t.fillStyle=i.backgroundColor,t.fillRect(C.x,C.y,C.width,C.height)),t.restore())}},{key:"calculatePosition",value:function(t,i){t=t||this.state.image;var b=m(this.getBorders(i),2),_=b[0],C=b[1],w=this.getCroppingRect(),x=t.width*this.props.scale,E=t.height*this.props.scale,O=-w.x*x,k=-w.y*E;return this.isVertical()?(O+=C,k+=_):(O+=_,k+=C),{x:O,y:k,height:E,width:x}}},{key:"paint",value:function(t){t.save(),t.scale(k,k),t.translate(0,0),t.fillStyle="rgba("+this.props.color.slice(0,4).join(",")+")";var i,b,_,C,w,x,E,O,P=this.props.borderRadius,S=this.getDimensions(),I=m(this.getBorders(S.border),2),T=I[0],j=I[1],M=S.canvas.height,A=S.canvas.width;P=Math.max(P,0),P=Math.min(P,A/2-T,M/2-j),t.beginPath(),i=t,C=A-2*(b=T),w=M-2*(_=j),0===(x=P)?i.rect(b,_,C,w):(E=C-x,O=w-x,i.translate(b,_),i.arc(x,x,x,Math.PI,1.5*Math.PI),i.lineTo(E,0),i.arc(E,x,x,1.5*Math.PI,2*Math.PI),i.lineTo(C,O),i.arc(E,O,x,2*Math.PI,.5*Math.PI),i.lineTo(x,w),i.arc(x,O,x,.5*Math.PI,Math.PI),i.translate(-b,-_)),t.rect(A,0,-A,M),t.fill("evenodd"),t.restore()}},{key:"render",value:function(){var t=this.props,i=(t.scale,t.rotate,t.image,t.border,t.borderRadius,t.width,t.height,t.position,t.color,t.backgroundColor,t.style),b=(t.crossOrigin,t.onLoadFailure,t.onLoadSuccess,t.onImageReady,t.onImageChange,t.onMouseUp,t.onMouseMove,t.onPositionChange,t.disableBoundaryChecks,t.disableHiDPIScaling,t.disableCanvasRotation,l(t,["scale","rotate","image","border","borderRadius","width","height","position","color","backgroundColor","style","crossOrigin","onLoadFailure","onLoadSuccess","onImageReady","onImageChange","onMouseUp","onMouseMove","onPositionChange","disableBoundaryChecks","disableHiDPIScaling","disableCanvasRotation"])),C=this.getDimensions(),x={width:C.canvas.width,height:C.canvas.height,cursor:this.state.drag?"grabbing":"grab",touchAction:"none"},E={width:C.canvas.width*k,height:C.canvas.height*k,style:y(y({},x),i)};return E[O.react.down]=this.handleMouseDown,w&&(E[O.react.mouseDown]=this.handleMouseDown),_.default.createElement("canvas",u({ref:this.setCanvas},E,b))}}])&&r(t.prototype,i),b&&r(t,b),a}();return s(S,"propTypes",{scale:b.default.number,rotate:b.default.number,image:b.default.oneOfType([b.default.string].concat(function(t){if(Array.isArray(t))return f(t)}(C=x?[b.default.instanceOf(File)]:[])||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(C)||g(C)||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.")}())),border:b.default.oneOfType([b.default.number,b.default.arrayOf(b.default.number)]),borderRadius:b.default.number,width:b.default.number,height:b.default.number,position:b.default.shape({x:b.default.number,y:b.default.number}),color:b.default.arrayOf(b.default.number),backgroundColor:b.default.string,crossOrigin:b.default.oneOf(["","anonymous","use-credentials"]),onLoadFailure:b.default.func,onLoadSuccess:b.default.func,onImageReady:b.default.func,onImageChange:b.default.func,onMouseUp:b.default.func,onMouseMove:b.default.func,onPositionChange:b.default.func,disableBoundaryChecks:b.default.bool,disableHiDPIScaling:b.default.bool,disableCanvasRotation:b.default.bool}),s(S,"defaultProps",{scale:1,rotate:0,border:25,borderRadius:0,width:200,height:200,color:[0,0,0,.5],onLoadFailure:function(){},onLoadSuccess:function(){},onImageReady:function(){},onImageChange:function(){},onMouseUp:function(){},onMouseMove:function(){},onPositionChange:function(){},disableBoundaryChecks:!1,disableHiDPIScaling:!1,disableCanvasRotation:!0}),S}(b(23615),b(87363))},55322:(t,i,b)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"DraggableCore",{enumerable:!0,get:function get(){return P.default}}),i.default=void 0;var _=function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==_typeof(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var w in t)if("default"!==w&&Object.prototype.hasOwnProperty.call(t,w)){var x=C?Object.getOwnPropertyDescriptor(t,w):null;x&&(x.get||x.set)?Object.defineProperty(_,w,x):_[w]=t[w]}_.default=t,b&&b.set(t,_);return _}(b(87363)),C=_interopRequireDefault(b(23615)),w=_interopRequireDefault(b(61533)),x=_interopRequireDefault(b(38944)),E=b(88065),O=b(39237),k=b(70972),P=_interopRequireDefault(b(50700)),S=_interopRequireDefault(b(73936)),I=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}function _extends(){return _extends=Object.assign||function(t){for(var i=1;i<arguments.length;i++){var b=arguments[i];for(var _ in b)Object.prototype.hasOwnProperty.call(b,_)&&(t[_]=b[_])}return t},_extends.apply(this,arguments)}function _objectWithoutProperties(t,i){if(null==t)return{};var b,_,C=function _objectWithoutPropertiesLoose(t,i){if(null==t)return{};var b,_,C={},w=Object.keys(t);for(_=0;_<w.length;_++)b=w[_],i.indexOf(b)>=0||(C[b]=t[b]);return C}(t,i);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(t);for(_=0;_<w.length;_++)b=w[_],i.indexOf(b)>=0||Object.prototype.propertyIsEnumerable.call(t,b)&&(C[b]=t[b])}return C}function ownKeys(t,i){var b=Object.keys(t);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(t);i&&(_=_.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),b.push.apply(b,_)}return b}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var b=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(b),!0).forEach((function(i){_defineProperty(t,i,b[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(b,i))}))}return t}function _slicedToArray(t,i){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,i){var b=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==b)return;var _,C,w=[],x=!0,E=!1;try{for(b=b.call(t);!(x=(_=b.next()).done)&&(w.push(_.value),!i||w.length!==i);x=!0);}catch(t){E=!0,C=t}finally{try{x||null==b.return||b.return()}finally{if(E)throw C}}return w}(t,i)||function _unsupportedIterableToArray(t,i){if(!t)return;if("string"==typeof t)return _arrayLikeToArray(t,i);var b=Object.prototype.toString.call(t).slice(8,-1);"Object"===b&&t.constructor&&(b=t.constructor.name);if("Map"===b||"Set"===b)return Array.from(t);if("Arguments"===b||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return _arrayLikeToArray(t,i)}(t,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(t,i){(null==i||i>t.length)&&(i=t.length);for(var b=0,_=new Array(i);b<i;b++)_[b]=t[b];return _}function _defineProperties(t,i){for(var b=0;b<i.length;b++){var _=i[b];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(t,_.key,_)}}function _setPrototypeOf(t,i){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,i){return t.__proto__=i,t},_setPrototypeOf(t,i)}function _createSuper(t){var i=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function _createSuperInternal(){var b,_=_getPrototypeOf(t);if(i){var C=_getPrototypeOf(this).constructor;b=Reflect.construct(_,arguments,C)}else b=_.apply(this,arguments);return function _possibleConstructorReturn(t,i){if(i&&("object"===_typeof(i)||"function"==typeof i))return i;if(void 0!==i)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}(this,b)}}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}function _defineProperty(t,i,b){return i in t?Object.defineProperty(t,i,{value:b,enumerable:!0,configurable:!0,writable:!0}):t[i]=b,t}var T=function(t){!function _inherits(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),i&&_setPrototypeOf(t,i)}(Draggable,t);var i=_createSuper(Draggable);function Draggable(t){var b;return function _classCallCheck(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,Draggable),_defineProperty(_assertThisInitialized(b=i.call(this,t)),"onDragStart",(function(t,i){if((0,S.default)("Draggable: onDragStart: %j",i),!1===b.props.onStart(t,(0,O.createDraggableData)(_assertThisInitialized(b),i)))return!1;b.setState({dragging:!0,dragged:!0})})),_defineProperty(_assertThisInitialized(b),"onDrag",(function(t,i){if(!b.state.dragging)return!1;(0,S.default)("Draggable: onDrag: %j",i);var _=(0,O.createDraggableData)(_assertThisInitialized(b),i),C={x:_.x,y:_.y};if(b.props.bounds){var w=C.x,x=C.y;C.x+=b.state.slackX,C.y+=b.state.slackY;var E=_slicedToArray((0,O.getBoundPosition)(_assertThisInitialized(b),C.x,C.y),2),k=E[0],P=E[1];C.x=k,C.y=P,C.slackX=b.state.slackX+(w-C.x),C.slackY=b.state.slackY+(x-C.y),_.x=C.x,_.y=C.y,_.deltaX=C.x-b.state.x,_.deltaY=C.y-b.state.y}if(!1===b.props.onDrag(t,_))return!1;b.setState(C)})),_defineProperty(_assertThisInitialized(b),"onDragStop",(function(t,i){if(!b.state.dragging)return!1;if(!1===b.props.onStop(t,(0,O.createDraggableData)(_assertThisInitialized(b),i)))return!1;(0,S.default)("Draggable: onDragStop: %j",i);var _={dragging:!1,slackX:0,slackY:0};if(Boolean(b.props.position)){var C=b.props.position,w=C.x,x=C.y;_.x=w,_.y=x}b.setState(_)})),b.state={dragging:!1,dragged:!1,x:t.position?t.position.x:t.defaultPosition.x,y:t.position?t.position.y:t.defaultPosition.y,prevPropsPosition:_objectSpread({},t.position),slackX:0,slackY:0,isElementSVG:!1},!t.position||t.onDrag||t.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),b}return function _createClass(t,i,b){return i&&_defineProperties(t.prototype,i),b&&_defineProperties(t,b),Object.defineProperty(t,"prototype",{writable:!1}),t}(Draggable,[{key:"componentDidMount",value:function componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function findDOMNode(){var t,i,b;return null!==(t=null===(i=this.props)||void 0===i||null===(b=i.nodeRef)||void 0===b?void 0:b.current)&&void 0!==t?t:w.default.findDOMNode(this)}},{key:"render",value:function render(){var t,i=this.props,b=(i.axis,i.bounds,i.children),C=i.defaultPosition,w=i.defaultClassName,k=i.defaultClassNameDragging,S=i.defaultClassNameDragged,T=i.position,j=i.positionOffset,M=(i.scale,_objectWithoutProperties(i,I)),A={},R=null,D=!Boolean(T)||this.state.dragging,L=T||C,B={x:(0,O.canDragX)(this)&&D?this.state.x:L.x,y:(0,O.canDragY)(this)&&D?this.state.y:L.y};this.state.isElementSVG?R=(0,E.createSVGTransform)(B,j):A=(0,E.createCSSTransform)(B,j);var N=(0,x.default)(b.props.className||"",w,(_defineProperty(t={},k,this.state.dragging),_defineProperty(t,S,this.state.dragged),t));return _.createElement(P.default,_extends({},M,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),_.cloneElement(_.Children.only(b),{className:N,style:_objectSpread(_objectSpread({},b.props.style),A),transform:R}))}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(t,i){var b=t.position,_=i.prevPropsPosition;return!b||_&&b.x===_.x&&b.y===_.y?null:((0,S.default)("Draggable: getDerivedStateFromProps %j",{position:b,prevPropsPosition:_}),{x:b.x,y:b.y,prevPropsPosition:_objectSpread({},b)})}}]),Draggable}(_.Component);i.default=T,_defineProperty(T,"displayName","Draggable"),_defineProperty(T,"propTypes",_objectSpread(_objectSpread({},P.default.propTypes),{},{axis:C.default.oneOf(["both","x","y","none"]),bounds:C.default.oneOfType([C.default.shape({left:C.default.number,right:C.default.number,top:C.default.number,bottom:C.default.number}),C.default.string,C.default.oneOf([!1])]),defaultClassName:C.default.string,defaultClassNameDragging:C.default.string,defaultClassNameDragged:C.default.string,defaultPosition:C.default.shape({x:C.default.number,y:C.default.number}),positionOffset:C.default.shape({x:C.default.oneOfType([C.default.number,C.default.string]),y:C.default.oneOfType([C.default.number,C.default.string])}),position:C.default.shape({x:C.default.number,y:C.default.number}),className:k.dontSetMe,style:k.dontSetMe,transform:k.dontSetMe})),_defineProperty(T,"defaultProps",_objectSpread(_objectSpread({},P.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},50700:(t,i,b)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var _=function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==_typeof(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var w in t)if("default"!==w&&Object.prototype.hasOwnProperty.call(t,w)){var x=C?Object.getOwnPropertyDescriptor(t,w):null;x&&(x.get||x.set)?Object.defineProperty(_,w,x):_[w]=t[w]}_.default=t,b&&b.set(t,_);return _}(b(87363)),C=_interopRequireDefault(b(23615)),w=_interopRequireDefault(b(61533)),x=b(88065),E=b(39237),O=b(70972),k=_interopRequireDefault(b(73936));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}function _slicedToArray(t,i){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,i){var b=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==b)return;var _,C,w=[],x=!0,E=!1;try{for(b=b.call(t);!(x=(_=b.next()).done)&&(w.push(_.value),!i||w.length!==i);x=!0);}catch(t){E=!0,C=t}finally{try{x||null==b.return||b.return()}finally{if(E)throw C}}return w}(t,i)||function _unsupportedIterableToArray(t,i){if(!t)return;if("string"==typeof t)return _arrayLikeToArray(t,i);var b=Object.prototype.toString.call(t).slice(8,-1);"Object"===b&&t.constructor&&(b=t.constructor.name);if("Map"===b||"Set"===b)return Array.from(t);if("Arguments"===b||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return _arrayLikeToArray(t,i)}(t,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(t,i){(null==i||i>t.length)&&(i=t.length);for(var b=0,_=new Array(i);b<i;b++)_[b]=t[b];return _}function _defineProperties(t,i){for(var b=0;b<i.length;b++){var _=i[b];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(t,_.key,_)}}function _setPrototypeOf(t,i){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,i){return t.__proto__=i,t},_setPrototypeOf(t,i)}function _createSuper(t){var i=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function _createSuperInternal(){var b,_=_getPrototypeOf(t);if(i){var C=_getPrototypeOf(this).constructor;b=Reflect.construct(_,arguments,C)}else b=_.apply(this,arguments);return function _possibleConstructorReturn(t,i){if(i&&("object"===_typeof(i)||"function"==typeof i))return i;if(void 0!==i)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}(this,b)}}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}function _defineProperty(t,i,b){return i in t?Object.defineProperty(t,i,{value:b,enumerable:!0,configurable:!0,writable:!0}):t[i]=b,t}var P={start:"touchstart",move:"touchmove",stop:"touchend"},S={start:"mousedown",move:"mousemove",stop:"mouseup"},I=S,T=function(t){!function _inherits(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),i&&_setPrototypeOf(t,i)}(DraggableCore,t);var i=_createSuper(DraggableCore);function DraggableCore(){var t;!function _classCallCheck(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,DraggableCore);for(var b=arguments.length,_=new Array(b),C=0;C<b;C++)_[C]=arguments[C];return _defineProperty(_assertThisInitialized(t=i.call.apply(i,[this].concat(_))),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),_defineProperty(_assertThisInitialized(t),"mounted",!1),_defineProperty(_assertThisInitialized(t),"handleDragStart",(function(i){if(t.props.onMouseDown(i),!t.props.allowAnyClick&&"number"==typeof i.button&&0!==i.button)return!1;var b=t.findDOMNode();if(!b||!b.ownerDocument||!b.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var _=b.ownerDocument;if(!(t.props.disabled||!(i.target instanceof _.defaultView.Node)||t.props.handle&&!(0,x.matchesSelectorAndParentsTo)(i.target,t.props.handle,b)||t.props.cancel&&(0,x.matchesSelectorAndParentsTo)(i.target,t.props.cancel,b))){"touchstart"===i.type&&i.preventDefault();var C=(0,x.getTouchIdentifier)(i);t.setState({touchIdentifier:C});var w=(0,E.getControlPosition)(i,C,_assertThisInitialized(t));if(null!=w){var O=w.x,P=w.y,S=(0,E.createCoreData)(_assertThisInitialized(t),O,P);(0,k.default)("DraggableCore: handleDragStart: %j",S),(0,k.default)("calling",t.props.onStart),!1!==t.props.onStart(i,S)&&!1!==t.mounted&&(t.props.enableUserSelectHack&&(0,x.addUserSelectStyles)(_),t.setState({dragging:!0,lastX:O,lastY:P}),(0,x.addEvent)(_,I.move,t.handleDrag),(0,x.addEvent)(_,I.stop,t.handleDragStop))}}})),_defineProperty(_assertThisInitialized(t),"handleDrag",(function(i){var b=(0,E.getControlPosition)(i,t.state.touchIdentifier,_assertThisInitialized(t));if(null!=b){var _=b.x,C=b.y;if(Array.isArray(t.props.grid)){var w=_-t.state.lastX,x=C-t.state.lastY,O=_slicedToArray((0,E.snapToGrid)(t.props.grid,w,x),2);if(w=O[0],x=O[1],!w&&!x)return;_=t.state.lastX+w,C=t.state.lastY+x}var P=(0,E.createCoreData)(_assertThisInitialized(t),_,C);if((0,k.default)("DraggableCore: handleDrag: %j",P),!1!==t.props.onDrag(i,P)&&!1!==t.mounted)t.setState({lastX:_,lastY:C});else try{t.handleDragStop(new MouseEvent("mouseup"))}catch(i){var S=document.createEvent("MouseEvents");S.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),t.handleDragStop(S)}}})),_defineProperty(_assertThisInitialized(t),"handleDragStop",(function(i){if(t.state.dragging){var b=(0,E.getControlPosition)(i,t.state.touchIdentifier,_assertThisInitialized(t));if(null!=b){var _=b.x,C=b.y;if(Array.isArray(t.props.grid)){var w=_-t.state.lastX||0,O=C-t.state.lastY||0,P=_slicedToArray((0,E.snapToGrid)(t.props.grid,w,O),2);w=P[0],O=P[1],_=t.state.lastX+w,C=t.state.lastY+O}var S=(0,E.createCoreData)(_assertThisInitialized(t),_,C);if(!1===t.props.onStop(i,S)||!1===t.mounted)return!1;var T=t.findDOMNode();T&&t.props.enableUserSelectHack&&(0,x.removeUserSelectStyles)(T.ownerDocument),(0,k.default)("DraggableCore: handleDragStop: %j",S),t.setState({dragging:!1,lastX:NaN,lastY:NaN}),T&&((0,k.default)("DraggableCore: Removing handlers"),(0,x.removeEvent)(T.ownerDocument,I.move,t.handleDrag),(0,x.removeEvent)(T.ownerDocument,I.stop,t.handleDragStop))}}})),_defineProperty(_assertThisInitialized(t),"onMouseDown",(function(i){return I=S,t.handleDragStart(i)})),_defineProperty(_assertThisInitialized(t),"onMouseUp",(function(i){return I=S,t.handleDragStop(i)})),_defineProperty(_assertThisInitialized(t),"onTouchStart",(function(i){return I=P,t.handleDragStart(i)})),_defineProperty(_assertThisInitialized(t),"onTouchEnd",(function(i){return I=P,t.handleDragStop(i)})),t}return function _createClass(t,i,b){return i&&_defineProperties(t.prototype,i),b&&_defineProperties(t,b),Object.defineProperty(t,"prototype",{writable:!1}),t}(DraggableCore,[{key:"componentDidMount",value:function componentDidMount(){this.mounted=!0;var t=this.findDOMNode();t&&(0,x.addEvent)(t,P.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.mounted=!1;var t=this.findDOMNode();if(t){var i=t.ownerDocument;(0,x.removeEvent)(i,S.move,this.handleDrag),(0,x.removeEvent)(i,P.move,this.handleDrag),(0,x.removeEvent)(i,S.stop,this.handleDragStop),(0,x.removeEvent)(i,P.stop,this.handleDragStop),(0,x.removeEvent)(t,P.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,x.removeUserSelectStyles)(i)}}},{key:"findDOMNode",value:function findDOMNode(){var t,i,b;return null!==(t=this.props)&&void 0!==t&&t.nodeRef?null===(i=this.props)||void 0===i||null===(b=i.nodeRef)||void 0===b?void 0:b.current:w.default.findDOMNode(this)}},{key:"render",value:function render(){return _.cloneElement(_.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),DraggableCore}(_.Component);i.default=T,_defineProperty(T,"displayName","DraggableCore"),_defineProperty(T,"propTypes",{allowAnyClick:C.default.bool,disabled:C.default.bool,enableUserSelectHack:C.default.bool,offsetParent:function offsetParent(t,i){if(t[i]&&1!==t[i].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:C.default.arrayOf(C.default.number),handle:C.default.string,cancel:C.default.string,nodeRef:C.default.object,onStart:C.default.func,onDrag:C.default.func,onStop:C.default.func,onMouseDown:C.default.func,scale:C.default.number,className:O.dontSetMe,style:O.dontSetMe,transform:O.dontSetMe}),_defineProperty(T,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function onStart(){},onDrag:function onDrag(){},onStop:function onStop(){},onMouseDown:function onMouseDown(){},scale:1})},49529:(t,i,b)=>{"use strict";var _=b(55322),C=_.default,w=_.DraggableCore;t.exports=C,t.exports.default=C,t.exports.DraggableCore=w},88065:(t,i,b)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(i,"__esModule",{value:!0}),i.addClassName=addClassName,i.addEvent=function addEvent(t,i,b,_){if(!t)return;var C=_objectSpread({capture:!0},_);t.addEventListener?t.addEventListener(i,b,C):t.attachEvent?t.attachEvent("on"+i,b):t["on"+i]=b},i.addUserSelectStyles=function addUserSelectStyles(t){if(!t)return;var i=t.getElementById("react-draggable-style-el");i||((i=t.createElement("style")).type="text/css",i.id="react-draggable-style-el",i.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",i.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",t.getElementsByTagName("head")[0].appendChild(i));t.body&&addClassName(t.body,"react-draggable-transparent-selection")},i.createCSSTransform=function createCSSTransform(t,i){var b=getTranslation(t,i,"px");return _defineProperty({},(0,C.browserPrefixToKey)("transform",C.default),b)},i.createSVGTransform=function createSVGTransform(t,i){return getTranslation(t,i,"")},i.getTouch=function getTouch(t,i){return t.targetTouches&&(0,_.findInArray)(t.targetTouches,(function(t){return i===t.identifier}))||t.changedTouches&&(0,_.findInArray)(t.changedTouches,(function(t){return i===t.identifier}))},i.getTouchIdentifier=function getTouchIdentifier(t){if(t.targetTouches&&t.targetTouches[0])return t.targetTouches[0].identifier;if(t.changedTouches&&t.changedTouches[0])return t.changedTouches[0].identifier},i.getTranslation=getTranslation,i.innerHeight=function innerHeight(t){var i=t.clientHeight,b=t.ownerDocument.defaultView.getComputedStyle(t);return i-=(0,_.int)(b.paddingTop),i-=(0,_.int)(b.paddingBottom)},i.innerWidth=function innerWidth(t){var i=t.clientWidth,b=t.ownerDocument.defaultView.getComputedStyle(t);return i-=(0,_.int)(b.paddingLeft),i-=(0,_.int)(b.paddingRight)},i.matchesSelector=matchesSelector,i.matchesSelectorAndParentsTo=function matchesSelectorAndParentsTo(t,i,b){var _=t;do{if(matchesSelector(_,i))return!0;if(_===b)return!1;_=_.parentNode}while(_);return!1},i.offsetXYFromParent=function offsetXYFromParent(t,i,b){var _=i===i.ownerDocument.body?{left:0,top:0}:i.getBoundingClientRect(),C=(t.clientX+i.scrollLeft-_.left)/b,w=(t.clientY+i.scrollTop-_.top)/b;return{x:C,y:w}},i.outerHeight=function outerHeight(t){var i=t.clientHeight,b=t.ownerDocument.defaultView.getComputedStyle(t);return i+=(0,_.int)(b.borderTopWidth),i+=(0,_.int)(b.borderBottomWidth)},i.outerWidth=function outerWidth(t){var i=t.clientWidth,b=t.ownerDocument.defaultView.getComputedStyle(t);return i+=(0,_.int)(b.borderLeftWidth),i+=(0,_.int)(b.borderRightWidth)},i.removeClassName=removeClassName,i.removeEvent=function removeEvent(t,i,b,_){if(!t)return;var C=_objectSpread({capture:!0},_);t.removeEventListener?t.removeEventListener(i,b,C):t.detachEvent?t.detachEvent("on"+i,b):t["on"+i]=null},i.removeUserSelectStyles=function removeUserSelectStyles(t){if(!t)return;try{if(t.body&&removeClassName(t.body,"react-draggable-transparent-selection"),t.selection)t.selection.empty();else{var i=(t.defaultView||window).getSelection();i&&"Caret"!==i.type&&i.removeAllRanges()}}catch(t){}};var _=b(70972),C=function _interopRequireWildcard(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!==_typeof(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var _={},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var w in t)if("default"!==w&&Object.prototype.hasOwnProperty.call(t,w)){var x=C?Object.getOwnPropertyDescriptor(t,w):null;x&&(x.get||x.set)?Object.defineProperty(_,w,x):_[w]=t[w]}_.default=t,b&&b.set(t,_);return _}(b(42249));function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,b=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?b:i})(t)}function ownKeys(t,i){var b=Object.keys(t);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(t);i&&(_=_.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),b.push.apply(b,_)}return b}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var b=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(b),!0).forEach((function(i){_defineProperty(t,i,b[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(b,i))}))}return t}function _defineProperty(t,i,b){return i in t?Object.defineProperty(t,i,{value:b,enumerable:!0,configurable:!0,writable:!0}):t[i]=b,t}var w="";function matchesSelector(t,i){return w||(w=(0,_.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(i){return(0,_.isFunction)(t[i])}))),!!(0,_.isFunction)(t[w])&&t[w](i)}function getTranslation(t,i,b){var _=t.x,C=t.y,w="translate(".concat(_).concat(b,",").concat(C).concat(b,")");if(i){var x="".concat("string"==typeof i.x?i.x:i.x+b),E="".concat("string"==typeof i.y?i.y:i.y+b);w="translate(".concat(x,", ").concat(E,")")+w}return w}function addClassName(t,i){t.classList?t.classList.add(i):t.className.match(new RegExp("(?:^|\\s)".concat(i,"(?!\\S)")))||(t.className+=" ".concat(i))}function removeClassName(t,i){t.classList?t.classList.remove(i):t.className=t.className.replace(new RegExp("(?:^|\\s)".concat(i,"(?!\\S)"),"g"),"")}},42249:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.browserPrefixToKey=browserPrefixToKey,i.browserPrefixToStyle=function browserPrefixToStyle(t,i){return i?"-".concat(i.toLowerCase(),"-").concat(t):t},i.default=void 0,i.getPrefix=getPrefix;var b=["Moz","Webkit","O","ms"];function getPrefix(){var t,i,_=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";var C=null===(t=window.document)||void 0===t||null===(i=t.documentElement)||void 0===i?void 0:i.style;if(!C)return"";if(_ in C)return"";for(var w=0;w<b.length;w++)if(browserPrefixToKey(_,b[w])in C)return b[w];return""}function browserPrefixToKey(t,i){return i?"".concat(i).concat(function kebabToTitleCase(t){for(var i="",b=!0,_=0;_<t.length;_++)b?(i+=t[_].toUpperCase(),b=!1):"-"===t[_]?b=!0:i+=t[_];return i}(t)):t}var _=getPrefix();i.default=_},73936:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function log(){0}},39237:(t,i,b)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.canDragX=function canDragX(t){return"both"===t.props.axis||"x"===t.props.axis},i.canDragY=function canDragY(t){return"both"===t.props.axis||"y"===t.props.axis},i.createCoreData=function createCoreData(t,i,b){var C=t.state,w=!(0,_.isNum)(C.lastX),x=findDOMNode(t);return w?{node:x,deltaX:0,deltaY:0,lastX:i,lastY:b,x:i,y:b}:{node:x,deltaX:i-C.lastX,deltaY:b-C.lastY,lastX:C.lastX,lastY:C.lastY,x:i,y:b}},i.createDraggableData=function createDraggableData(t,i){var b=t.props.scale;return{node:i.node,x:t.state.x+i.deltaX/b,y:t.state.y+i.deltaY/b,deltaX:i.deltaX/b,deltaY:i.deltaY/b,lastX:t.state.x,lastY:t.state.y}},i.getBoundPosition=function getBoundPosition(t,i,b){if(!t.props.bounds)return[i,b];var w=t.props.bounds;w="string"==typeof w?w:function cloneBounds(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom}}(w);var x=findDOMNode(t);if("string"==typeof w){var E,O=x.ownerDocument,k=O.defaultView;if(!((E="parent"===w?x.parentNode:O.querySelector(w))instanceof k.HTMLElement))throw new Error('Bounds selector "'+w+'" could not find an element.');var P=E,S=k.getComputedStyle(x),I=k.getComputedStyle(P);w={left:-x.offsetLeft+(0,_.int)(I.paddingLeft)+(0,_.int)(S.marginLeft),top:-x.offsetTop+(0,_.int)(I.paddingTop)+(0,_.int)(S.marginTop),right:(0,C.innerWidth)(P)-(0,C.outerWidth)(x)-x.offsetLeft+(0,_.int)(I.paddingRight)-(0,_.int)(S.marginRight),bottom:(0,C.innerHeight)(P)-(0,C.outerHeight)(x)-x.offsetTop+(0,_.int)(I.paddingBottom)-(0,_.int)(S.marginBottom)}}(0,_.isNum)(w.right)&&(i=Math.min(i,w.right));(0,_.isNum)(w.bottom)&&(b=Math.min(b,w.bottom));(0,_.isNum)(w.left)&&(i=Math.max(i,w.left));(0,_.isNum)(w.top)&&(b=Math.max(b,w.top));return[i,b]},i.getControlPosition=function getControlPosition(t,i,b){var _="number"==typeof i?(0,C.getTouch)(t,i):null;if("number"==typeof i&&!_)return null;var w=findDOMNode(b),x=b.props.offsetParent||w.offsetParent||w.ownerDocument.body;return(0,C.offsetXYFromParent)(_||t,x,b.props.scale)},i.snapToGrid=function snapToGrid(t,i,b){var _=Math.round(i/t[0])*t[0],C=Math.round(b/t[1])*t[1];return[_,C]};var _=b(70972),C=b(88065);function findDOMNode(t){var i=t.findDOMNode();if(!i)throw new Error("<DraggableCore>: Unmounted during event!");return i}},70972:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.dontSetMe=function dontSetMe(t,i,b){if(t[i])return new Error("Invalid prop ".concat(i," passed to ").concat(b," - do not set this, set it on the child."))},i.findInArray=function findInArray(t,i){for(var b=0,_=t.length;b<_;b++)if(i.apply(i,[t[b],b,t]))return t[b]},i.int=function int(t){return parseInt(t,10)},i.isFunction=function isFunction(t){return"function"==typeof t||"[object Function]"===Object.prototype.toString.call(t)},i.isNum=function isNum(t){return"number"==typeof t&&!isNaN(t)}},78326:(t,i,b)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var _=function(){function defineProperties(t,i){for(var b=0;b<i.length;b++){var _=i[b];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(t,_.key,_)}}return function(t,i,b){return i&&defineProperties(t.prototype,i),b&&defineProperties(t,b),t}}(),C=b(87363),w=_interopRequireDefault(C),x=_interopRequireDefault(b(23615));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var E=function(t){function InfiniteScroll(t){!function _classCallCheck(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,InfiniteScroll);var i=function _possibleConstructorReturn(t,i){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||"object"!=typeof i&&"function"!=typeof i?t:i}(this,(InfiniteScroll.__proto__||Object.getPrototypeOf(InfiniteScroll)).call(this,t));return i.scrollListener=i.scrollListener.bind(i),i.eventListenerOptions=i.eventListenerOptions.bind(i),i.mousewheelListener=i.mousewheelListener.bind(i),i}return function _inherits(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function, not "+typeof i);t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(t,i):t.__proto__=i)}(InfiniteScroll,t),_(InfiniteScroll,[{key:"componentDidMount",value:function componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function componentDidUpdate(){if(this.props.isReverse&&this.loadMore){var t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function isPassiveSupported(){var t=!1,i={get passive(){t=!0}};try{document.addEventListener("test",null,i),document.removeEventListener("test",null,i)}catch(t){}return t}},{key:"eventListenerOptions",value:function eventListenerOptions(){this.props.useCapture;return this.isPassiveSupported()?{useCapture:this.props.useCapture,passive:!0}:{passive:!1}}},{key:"setDefaultLoader",value:function setDefaultLoader(t){this.defaultLoader=t}},{key:"detachMousewheelListener",value:function detachMousewheelListener(){var t=window;!1===this.props.useWindow&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function detachScrollListener(){var t=window;!1===this.props.useWindow&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function getParentElement(t){var i=this.props.getScrollParent&&this.props.getScrollParent();return null!=i?i:t&&t.parentNode}},{key:"filterProps",value:function filterProps(t){return t}},{key:"attachScrollListener",value:function attachScrollListener(){var t=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&t){var i=window;!1===this.props.useWindow&&(i=t),i.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),i.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),i.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function mousewheelListener(t){1!==t.deltaY||this.isPassiveSupported()||t.preventDefault()}},{key:"scrollListener",value:function scrollListener(){var t=this.scrollComponent,i=window,b=this.getParentElement(t),_=void 0;if(this.props.useWindow){var C=document.documentElement||document.body.parentNode||document.body,w=void 0!==i.pageYOffset?i.pageYOffset:C.scrollTop;_=this.props.isReverse?w:this.calculateOffset(t,w)}else _=this.props.isReverse?b.scrollTop:t.scrollHeight-b.scrollTop-b.clientHeight;_<Number(this.props.threshold)&&t&&null!==t.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=b.scrollHeight,this.beforeScrollTop=b.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function calculateOffset(t,i){return t?this.calculateTopPosition(t)+(t.offsetHeight-i-window.innerHeight):0}},{key:"calculateTopPosition",value:function calculateTopPosition(t){return t?t.offsetTop+this.calculateTopPosition(t.offsetParent):0}},{key:"render",value:function render(){var t=this,i=this.filterProps(this.props),b=i.children,_=i.element,C=i.hasMore,x=(i.initialLoad,i.isReverse),E=i.loader,O=(i.loadMore,i.pageStart,i.ref),k=(i.threshold,i.useCapture,i.useWindow,i.getScrollParent,function _objectWithoutProperties(t,i){var b={};for(var _ in t)i.indexOf(_)>=0||Object.prototype.hasOwnProperty.call(t,_)&&(b[_]=t[_]);return b}(i,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));k.ref=function(i){t.scrollComponent=i,O&&O(i)};var P=[b];return C&&(E?x?P.unshift(E):P.push(E):this.defaultLoader&&(x?P.unshift(this.defaultLoader):P.push(this.defaultLoader))),w.default.createElement(_,k,P)}}]),InfiniteScroll}(C.Component);E.propTypes={children:x.default.node.isRequired,element:x.default.node,hasMore:x.default.bool,initialLoad:x.default.bool,isReverse:x.default.bool,loader:x.default.node,loadMore:x.default.func.isRequired,pageStart:x.default.number,ref:x.default.func,getScrollParent:x.default.func,threshold:x.default.number,useCapture:x.default.bool,useWindow:x.default.bool},E.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},i.default=E,t.exports=i.default},43674:(t,i,b)=>{t.exports=b(78326)},58702:(t,i)=>{"use strict";var b,_=Symbol.for("react.element"),C=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),k=Symbol.for("react.context"),P=Symbol.for("react.server_context"),S=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen");function v(t){if("object"==typeof t&&null!==t){var i=t.$$typeof;switch(i){case _:switch(t=t.type){case w:case E:case x:case I:case T:return t;default:switch(t=t&&t.$$typeof){case P:case k:case S:case M:case j:case O:return t;default:return i}}case C:return i}}}b=Symbol.for("react.module.reference"),i.ContextConsumer=k,i.ContextProvider=O,i.Element=_,i.ForwardRef=S,i.Fragment=w,i.Lazy=M,i.Memo=j,i.Portal=C,i.Profiler=E,i.StrictMode=x,i.Suspense=I,i.SuspenseList=T,i.isAsyncMode=function(){return!1},i.isConcurrentMode=function(){return!1},i.isContextConsumer=function(t){return v(t)===k},i.isContextProvider=function(t){return v(t)===O},i.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===_},i.isForwardRef=function(t){return v(t)===S},i.isFragment=function(t){return v(t)===w},i.isLazy=function(t){return v(t)===M},i.isMemo=function(t){return v(t)===j},i.isPortal=function(t){return v(t)===C},i.isProfiler=function(t){return v(t)===E},i.isStrictMode=function(t){return v(t)===x},i.isSuspense=function(t){return v(t)===I},i.isSuspenseList=function(t){return v(t)===T},i.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===w||t===E||t===x||t===I||t===T||t===A||"object"==typeof t&&null!==t&&(t.$$typeof===M||t.$$typeof===j||t.$$typeof===O||t.$$typeof===k||t.$$typeof===S||t.$$typeof===b||void 0!==t.getModuleId)},i.typeOf=v},19185:(t,i,b)=>{"use strict";t.exports=b(58702)},23866:(t,i,b)=>{"use strict";b.r(i),b.d(i,{Canvas:()=>S,ReactSketchCanvas:()=>I});var _=b(87363);function asyncGeneratorStep(t,i,b,_,C,w,x){try{var E=t[w](x),O=E.value}catch(t){return void b(t)}E.done?i(O):Promise.resolve(O).then(_,C)}function _extends(){return _extends=Object.assign||function(t){for(var i=1;i<arguments.length;i++){var b=arguments[i];for(var _ in b)Object.prototype.hasOwnProperty.call(b,_)&&(t[_]=b[_])}return t},_extends.apply(this,arguments)}var C={exports:{}};!function(t){var i=function(t){var i,b=Object.prototype,_=b.hasOwnProperty,C="function"==typeof Symbol?Symbol:{},w=C.iterator||"@@iterator",x=C.asyncIterator||"@@asyncIterator",E=C.toStringTag||"@@toStringTag";function define(t,i,b){return Object.defineProperty(t,i,{value:b,enumerable:!0,configurable:!0,writable:!0}),t[i]}try{define({},"")}catch(t){define=function(t,i,b){return t[i]=b}}function wrap(t,i,b,_){var C=i&&i.prototype instanceof Generator?i:Generator,w=Object.create(C.prototype),x=new Context(_||[]);return w._invoke=function makeInvokeMethod(t,i,b){var _=O;return function invoke(C,w){if(_===P)throw new Error("Generator is already running");if(_===S){if("throw"===C)throw w;return doneResult()}for(b.method=C,b.arg=w;;){var x=b.delegate;if(x){var E=maybeInvokeDelegate(x,b);if(E){if(E===I)continue;return E}}if("next"===b.method)b.sent=b._sent=b.arg;else if("throw"===b.method){if(_===O)throw _=S,b.arg;b.dispatchException(b.arg)}else"return"===b.method&&b.abrupt("return",b.arg);_=P;var T=tryCatch(t,i,b);if("normal"===T.type){if(_=b.done?S:k,T.arg===I)continue;return{value:T.arg,done:b.done}}"throw"===T.type&&(_=S,b.method="throw",b.arg=T.arg)}}}(t,b,x),w}function tryCatch(t,i,b){try{return{type:"normal",arg:t.call(i,b)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var O="suspendedStart",k="suspendedYield",P="executing",S="completed",I={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var T={};define(T,w,(function(){return this}));var j=Object.getPrototypeOf,M=j&&j(j(values([])));M&&M!==b&&_.call(M,w)&&(T=M);var A=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(T);function defineIteratorMethods(t){["next","throw","return"].forEach((function(i){define(t,i,(function(t){return this._invoke(i,t)}))}))}function AsyncIterator(t,i){function invoke(b,C,w,x){var E=tryCatch(t[b],t,C);if("throw"!==E.type){var O=E.arg,k=O.value;return k&&"object"==typeof k&&_.call(k,"__await")?i.resolve(k.__await).then((function(t){invoke("next",t,w,x)}),(function(t){invoke("throw",t,w,x)})):i.resolve(k).then((function(t){O.value=t,w(O)}),(function(t){return invoke("throw",t,w,x)}))}x(E.arg)}var b;this._invoke=function enqueue(t,_){function callInvokeWithMethodAndArg(){return new i((function(i,b){invoke(t,_,i,b)}))}return b=b?b.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(t,b){var _=t.iterator[b.method];if(_===i){if(b.delegate=null,"throw"===b.method){if(t.iterator.return&&(b.method="return",b.arg=i,maybeInvokeDelegate(t,b),"throw"===b.method))return I;b.method="throw",b.arg=new TypeError("The iterator does not provide a 'throw' method")}return I}var C=tryCatch(_,t.iterator,b.arg);if("throw"===C.type)return b.method="throw",b.arg=C.arg,b.delegate=null,I;var w=C.arg;return w?w.done?(b[t.resultName]=w.value,b.next=t.nextLoc,"return"!==b.method&&(b.method="next",b.arg=i),b.delegate=null,I):w:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,I)}function pushTryEntry(t){var i={tryLoc:t[0]};1 in t&&(i.catchLoc=t[1]),2 in t&&(i.finallyLoc=t[2],i.afterLoc=t[3]),this.tryEntries.push(i)}function resetTryEntry(t){var i=t.completion||{};i.type="normal",delete i.arg,t.completion=i}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(t){if(t){var b=t[w];if(b)return b.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var C=-1,x=function next(){for(;++C<t.length;)if(_.call(t,C))return next.value=t[C],next.done=!1,next;return next.value=i,next.done=!0,next};return x.next=x}}return{next:doneResult}}function doneResult(){return{value:i,done:!0}}return GeneratorFunction.prototype=GeneratorFunctionPrototype,define(A,"constructor",GeneratorFunctionPrototype),define(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,E,"GeneratorFunction"),t.isGeneratorFunction=function(t){var i="function"==typeof t&&t.constructor;return!!i&&(i===GeneratorFunction||"GeneratorFunction"===(i.displayName||i.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,E,"GeneratorFunction")),t.prototype=Object.create(A),t},t.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,x,(function(){return this})),t.AsyncIterator=AsyncIterator,t.async=function(i,b,_,C,w){void 0===w&&(w=Promise);var x=new AsyncIterator(wrap(i,b,_,C),w);return t.isGeneratorFunction(b)?x:x.next().then((function(t){return t.done?t.value:x.next()}))},defineIteratorMethods(A),define(A,E,"Generator"),define(A,w,(function(){return this})),define(A,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var i=[];for(var b in t)i.push(b);return i.reverse(),function next(){for(;i.length;){var b=i.pop();if(b in t)return next.value=b,next.done=!1,next}return next.done=!0,next}},t.values=values,Context.prototype={constructor:Context,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=i,this.done=!1,this.delegate=null,this.method="next",this.arg=i,this.tryEntries.forEach(resetTryEntry),!t)for(var b in this)"t"===b.charAt(0)&&_.call(this,b)&&!isNaN(+b.slice(1))&&(this[b]=i)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var b=this;function handle(_,C){return x.type="throw",x.arg=t,b.next=_,C&&(b.method="next",b.arg=i),!!C}for(var C=this.tryEntries.length-1;C>=0;--C){var w=this.tryEntries[C],x=w.completion;if("root"===w.tryLoc)return handle("end");if(w.tryLoc<=this.prev){var E=_.call(w,"catchLoc"),O=_.call(w,"finallyLoc");if(E&&O){if(this.prev<w.catchLoc)return handle(w.catchLoc,!0);if(this.prev<w.finallyLoc)return handle(w.finallyLoc)}else if(E){if(this.prev<w.catchLoc)return handle(w.catchLoc,!0)}else{if(!O)throw new Error("try statement without catch or finally");if(this.prev<w.finallyLoc)return handle(w.finallyLoc)}}}},abrupt:function(t,i){for(var b=this.tryEntries.length-1;b>=0;--b){var C=this.tryEntries[b];if(C.tryLoc<=this.prev&&_.call(C,"finallyLoc")&&this.prev<C.finallyLoc){var w=C;break}}w&&("break"===t||"continue"===t)&&w.tryLoc<=i&&i<=w.finallyLoc&&(w=null);var x=w?w.completion:{};return x.type=t,x.arg=i,w?(this.method="next",this.next=w.finallyLoc,I):this.complete(x)},complete:function(t,i){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&i&&(this.next=i),I},finish:function(t){for(var i=this.tryEntries.length-1;i>=0;--i){var b=this.tryEntries[i];if(b.finallyLoc===t)return this.complete(b.completion,b.afterLoc),resetTryEntry(b),I}},catch:function(t){for(var i=this.tryEntries.length-1;i>=0;--i){var b=this.tryEntries[i];if(b.tryLoc===t){var _=b.completion;if("throw"===_.type){var C=_.arg;resetTryEntry(b)}return C}}throw new Error("illegal catch attempt")},delegateYield:function(t,b,_){return this.delegate={iterator:values(t),resultName:b,nextLoc:_},"next"===this.method&&(this.arg=i),I}},t}(t.exports);try{regeneratorRuntime=i}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}}(C);var w=C.exports,x=function SvgPath(t){var i=t.paths,b=t.id,C=t.strokeWidth,w=t.strokeColor,x=t.command,E=void 0===x?O:x;if(1===i.length){var k=i[0],P=k.x,S=k.y,I=C/2;return _.createElement("circle",{key:b,id:b,cx:P,cy:S,r:I,stroke:w,fill:w})}var T=i.reduce((function(t,i,b,_){return 0===b?"M "+i.x+","+i.y:t+" "+E(i,b,_)}),"");return _.createElement("path",{key:b,id:b,d:T,fill:"none",strokeLinecap:"round",stroke:w,strokeWidth:C})},E=function controlPoint(t){var i=t.current,b=t.next,_=t.previous,C=t.reverse,w=function line(t,i){var b=i.x-t.x,_=i.y-t.y;return{length:Math.sqrt(Math.pow(b,2)+Math.pow(_,2)),angle:Math.atan2(_,b)}}(_||i,b||i),x=w.angle+(C?Math.PI:0),E=.2*w.length;return[i.x+Math.cos(x)*E,i.y+Math.sin(x)*E]},O=function bezierCommand(t,i,b){var _=null,C=null;switch(i){case 0:var w=E({current:t});_=w[0],C=w[1];break;case 1:var x=E({current:b[i-1],next:t});_=x[0],C=x[1];break;default:var O=E({current:b[i-1],previous:b[i-2],next:t});_=O[0],C=O[1]}var k=E({current:t,previous:b[i-1],next:b[i+1],reverse:!0});return"C "+_+","+C+" "+k[0]+","+k[1]+" "+t.x+", "+t.y},k=function Paths(t){var i=t.id,b=t.paths;return _.createElement(_.Fragment,null,b.map((function(t,b){return _.createElement(x,{key:i+"__"+b,paths:t.paths,id:i+"__"+b,strokeWidth:t.strokeWidth,strokeColor:t.strokeColor,command:O})})))},P=function loadImage(t){return new Promise((function(i,b){var _=new Image;_.addEventListener("load",(function(){_.width>0&&i(_),b("Image not found")})),_.addEventListener("error",(function(t){return b(t)})),_.src=t,_.setAttribute("crossorigin","anonymous")}))};function getCanvasWithViewBox(t){var i,b=null==(i=t.firstChild)?void 0:i.cloneNode(!0),_=t.offsetWidth,C=t.offsetHeight;return b.setAttribute("viewBox","0 0 "+_+" "+C),b.setAttribute("width",_.toString()),b.setAttribute("height",C.toString()),{svgCanvas:b,width:_,height:C}}var S=_.forwardRef((function(t,i){var b=t.paths,C=t.isDrawing,E=t.onPointerDown,O=t.onPointerMove,S=t.onPointerUp,I=t.id,T=void 0===I?"react-sketch-canvas":I,j=t.width,M=void 0===j?"100%":j,A=t.height,R=void 0===A?"100%":A,D=t.className,L=void 0===D?"react-sketch-canvas":D,B=t.canvasColor,N=void 0===B?"red":B,W=t.backgroundImage,H=void 0===W?"":W,q=t.exportWithBackgroundImage,z=void 0!==q&&q,V=t.preserveBackgroundImageAspectRatio,G=void 0===V?"none":V,U=t.allowOnlyPointerType,Y=void 0===U?"all":U,Z=t.style,K=void 0===Z?{border:"0.0625rem solid #9c9c9c",borderRadius:"0.25rem"}:Z,X=t.svgStyle,$=void 0===X?{}:X,Q=_.useRef(null),J=function getCoordinates(t){var i,b,_,C=null==(i=Q.current)?void 0:i.getBoundingClientRect(),w=null!=(b=window.scrollX)?b:0,x=null!=(_=window.scrollY)?_:0;return C?{x:t.pageX-C.left-w,y:t.pageY-C.top-x}:{x:0,y:0}},ee=function handlePointerUp(t){"mouse"===t.pointerType&&0!==t.button||"all"!==Y&&t.pointerType!==Y||S()};_.useImperativeHandle(i,(function(){return{exportImage:function exportImage(t){return new Promise(function(){var i=function _asyncToGenerator(t){return function(){var i=this,b=arguments;return new Promise((function(_,C){var w=t.apply(i,b);function _next(t){asyncGeneratorStep(w,_,C,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(w,_,C,_next,_throw,"throw",t)}_next(void 0)}))}}(w.mark((function _callee(i,b){var _,C,x,E,O,k,S,I;return w.wrap((function _callee$(w){for(;;)switch(w.prev=w.next){case 0:if(w.prev=0,_=Q.current){w.next=4;break}throw Error("Canvas not rendered yet");case 4:return C=getCanvasWithViewBox(_),x=C.svgCanvas,E=C.width,O=C.height,k="data:image/svg+xml;base64,"+btoa(x.outerHTML),w.next=8,P(k);case 8:if(w.t0=w.sent,S=[w.t0],!z){w.next=21;break}return w.prev=11,w.next=14,P(H);case 14:I=w.sent,S.push(I),w.next=21;break;case 18:w.prev=18,w.t1=w.catch(11),console.warn("exportWithBackgroundImage props is set without a valid background image URL. This option is ignored");case 21:Promise.all(S).then((function(b){var _=document.createElement("canvas");_.setAttribute("width",E.toString()),_.setAttribute("height",O.toString());var C=_.getContext("2d");if(!C)throw Error("Canvas not rendered yet");b.reverse().forEach((function(t){C.drawImage(t,0,0)})),i(_.toDataURL("image/"+t))})).catch((function(t){throw t})),w.next=27;break;case 24:w.prev=24,w.t2=w.catch(0),b(w.t2);case 27:case"end":return w.stop()}}),_callee,null,[[0,24],[11,18]])})));return function(t,b){return i.apply(this,arguments)}}())},exportSvg:function exportSvg(){return new Promise((function(t,i){try{var b,_=null!=(b=Q.current)?b:null;if(null!==_){var C,w,x=getCanvasWithViewBox(_).svgCanvas;if(z)return void t(x.outerHTML);null==(C=x.querySelector("#"+T+"__background"))||C.remove(),null==(w=x.querySelector("#"+T+"__canvas-background"))||w.setAttribute("fill",N),t(x.outerHTML)}i(new Error("Canvas not loaded"))}catch(t){i(t)}}))}}})),_.useEffect((function(){return document.addEventListener("pointerup",ee),function(){document.removeEventListener("pointerup",ee)}}),[ee]);var te=b.filter((function(t){return!t.drawMode})),ne=0,re=b.reduce((function(t,i){return i.drawMode?(void 0===t[ne]&&(t[ne]=[]),t[ne].push(i),t):(ne+=1,t)}),[[]]);return _.createElement("div",{role:"presentation",ref:Q,className:L,style:_extends({touchAction:"none",width:M,height:R},K),"touch-action":"none",onPointerDown:function handlePointerDown(t){if(!("all"!==Y&&t.pointerType!==Y||"mouse"===t.pointerType&&0!==t.button)){var i=J(t);E(i)}},onPointerMove:function handlePointerMove(t){if(C&&("all"===Y||t.pointerType===Y)){var i=J(t);O(i)}},onPointerUp:ee},_.createElement("svg",{version:"1.1",baseProfile:"full",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",style:_extends({width:"100%",height:"100%"},$),id:T},_.createElement("g",{id:T+"__eraser-stroke-group",display:"none"},_.createElement("rect",{id:T+"__mask-background",x:"0",y:"0",width:"100%",height:"100%",fill:"white"}),te.map((function(t,i){return _.createElement(x,{key:T+"__eraser-"+i,id:T+"__eraser-"+i,paths:t.paths,strokeColor:"#000000",strokeWidth:t.strokeWidth})}))),_.createElement("defs",null,H&&_.createElement("pattern",{id:T+"__background",x:"0",y:"0",width:"100%",height:"100%",patternUnits:"userSpaceOnUse"},_.createElement("image",{x:"0",y:"0",width:"100%",height:"100%",xlinkHref:H,preserveAspectRatio:G})),te.map((function(t,i){return _.createElement("mask",{id:T+"__eraser-mask-"+i,key:T+"__eraser-mask-"+i,maskUnits:"userSpaceOnUse"},_.createElement("use",{href:"#"+T+"__mask-background"}),Array.from({length:te.length-i},(function(t,b){return b+i})).map((function(t){return _.createElement("use",{key:t.toString(),href:"#"+T+"__eraser-"+t.toString()})})))}))),_.createElement("g",{id:T+"__canvas-background-group"},_.createElement("rect",{id:T+"__canvas-background",x:"0",y:"0",width:"100%",height:"100%",fill:H?"url(#"+T+"__background)":N})),re.map((function(t,i){return _.createElement("g",{id:T+"__stroke-group-"+i,key:T+"__stroke-group-"+i,mask:"url(#"+T+"__eraser-mask-"+i+")"},_.createElement(k,{id:T,paths:t}))}))))})),I=_.forwardRef((function(t,i){var b=t.id,C=void 0===b?"react-sketch-canvas":b,w=t.width,x=void 0===w?"100%":w,E=t.height,O=void 0===E?"100%":E,k=t.className,P=void 0===k?"":k,I=t.canvasColor,T=void 0===I?"white":I,j=t.strokeColor,M=void 0===j?"red":j,A=t.backgroundImage,R=void 0===A?"":A,D=t.exportWithBackgroundImage,L=void 0!==D&&D,B=t.preserveBackgroundImageAspectRatio,N=void 0===B?"none":B,W=t.strokeWidth,H=void 0===W?4:W,q=t.eraserWidth,z=void 0===q?8:q,V=t.allowOnlyPointerType,G=void 0===V?"all":V,U=t.style,Y=void 0===U?{border:"0.0625rem solid #9c9c9c",borderRadius:"0.25rem"}:U,Z=t.svgStyle,K=void 0===Z?{}:Z,X=t.onChange,$=void 0===X?function(t){}:X,Q=t.onStroke,J=void 0===Q?function(t,i){}:Q,ee=t.withTimestamp,te=void 0!==ee&&ee,ne=_.createRef(),re=_.useState(!0),oe=re[0],ae=re[1],ie=_.useState(!1),le=ie[0],ue=ie[1],ce=_.useState([]),se=ce[0],de=ce[1],fe=_.useState([]),pe=fe[0],me=fe[1],he=_.useState([]),ge=he[0],ye=he[1],ve=_.useCallback((function(){var t,i,b=null!=(t=null==(i=ge.slice(-1))?void 0:i[0])?t:null;null!==b?J(b,!b.drawMode):console.warn("No stroke found!")}),[le]);_.useEffect((function(){ve()}),[le]),_.useEffect((function(){$(ge)}),[ge]),_.useImperativeHandle(i,(function(){return{eraseMode:function eraseMode(t){ae(!t)},clearCanvas:function clearCanvas(){de([].concat(ge)),ye([])},undo:function undo(){if(0!==se.length)return ye([].concat(se)),void de([]);me((function(t){return[].concat(t,ge.slice(-1))})),ye((function(t){return t.slice(0,-1)}))},redo:function redo(){0!==pe.length&&(ye((function(t){return[].concat(t,pe.slice(-1))})),me((function(t){return t.slice(0,-1)})))},exportImage:function exportImage(t){var i,exportImage=null==(i=ne.current)?void 0:i.exportImage;if(exportImage)return exportImage(t);throw Error("Export function called before canvas loaded")},exportSvg:function exportSvg(){return new Promise((function(t,i){var b,_=null==(b=ne.current)?void 0:b.exportSvg;_?_().then((function(i){t(i)})).catch((function(t){i(t)})):i(Error("Export function called before canvas loaded"))}))},exportPaths:function exportPaths(){return new Promise((function(t,i){try{t(ge)}catch(t){i(t)}}))},loadPaths:function loadPaths(t){ye((function(i){return[].concat(i,t)}))},getSketchingTime:function getSketchingTime(){return new Promise((function(t,i){te||i(new Error("Set 'withTimestamp' prop to get sketching time"));try{t(ge.reduce((function(t,i){var b,_,C=null!=(b=i.startTimestamp)?b:0;return t+((null!=(_=i.endTimestamp)?_:0)-C)}),0))}catch(t){i(t)}}))},resetCanvas:function resetCanvas(){de([]),me([]),ye([])}}}));return _.createElement(S,{ref:ne,id:C,width:x,height:O,className:P,canvasColor:T,backgroundImage:R,exportWithBackgroundImage:L,preserveBackgroundImageAspectRatio:N,allowOnlyPointerType:G,style:Y,svgStyle:K,paths:ge,isDrawing:le,onPointerDown:function handlePointerDown(t){ue(!0),me([]);var i={drawMode:oe,strokeColor:oe?M:"#000000",strokeWidth:oe?H:z,paths:[t]};te&&(i=_extends({},i,{startTimestamp:Date.now(),endTimestamp:0})),ye((function(t){return[].concat(t,[i])}))},onPointerMove:function handlePointerMove(t){if(le){var i=ge.slice(-1)[0],b=_extends({},i,{paths:[].concat(i.paths,[t])});ye((function(t){return[].concat(t.slice(0,-1),[b])}))}},onPointerUp:function handlePointerUp(){var t,i;if(le&&(ue(!1),te)){var b=null!=(t=null==(i=ge.slice(-1))?void 0:i[0])?t:null;if(null!==b){var _=_extends({},b,{endTimestamp:Date.now()});ye((function(t){return[].concat(t.slice(0,-1),[_])}))}}}})}))},55862:(t,i,b)=>{var _=b(3812);function StyleToObject(t,i){var b,C=null;if(!t||"string"!=typeof t)return C;for(var w,x,E=_(t),O="function"==typeof i,k=0,P=E.length;k<P;k++)w=(b=E[k]).property,x=b.value,O?i(w,x,b):x&&(C||(C={}),C[w]=x);return C}t.exports=StyleToObject,t.exports.default=StyleToObject},87363:t=>{"use strict";t.exports=React},61533:t=>{"use strict";t.exports=ReactDOM},34029:t=>{"use strict";t.exports=elementorV2.icons},36626:t=>{"use strict";t.exports=elementorV2.ui},38003:t=>{"use strict";t.exports=wp.i18n},98106:t=>{t.exports=function _arrayLikeToArray(t,i){(null==i||i>t.length)&&(i=t.length);for(var b=0,_=new Array(i);b<i;b++)_[b]=t[b];return _},t.exports.__esModule=!0,t.exports.default=t.exports},17358:t=>{t.exports=function _arrayWithHoles(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},34102:(t,i,b)=>{var _=b(98106);t.exports=function _arrayWithoutHoles(t){if(Array.isArray(t))return _(t)},t.exports.__esModule=!0,t.exports.default=t.exports},77266:t=>{t.exports=function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},10029:t=>{function asyncGeneratorStep(t,i,b,_,C,w,x){try{var E=t[w](x),O=E.value}catch(t){return void b(t)}E.done?i(O):Promise.resolve(O).then(_,C)}t.exports=function _asyncToGenerator(t){return function(){var i=this,b=arguments;return new Promise((function(_,C){var w=t.apply(i,b);function _next(t){asyncGeneratorStep(w,_,C,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(w,_,C,_next,_throw,"throw",t)}_next(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},78983:t=>{t.exports=function _classCallCheck(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},42081:(t,i,b)=>{var _=b(74040);function _defineProperties(t,i){for(var b=0;b<i.length;b++){var C=i[b];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(t,_(C.key),C)}}t.exports=function _createClass(t,i,b){return i&&_defineProperties(t.prototype,i),b&&_defineProperties(t,b),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},93231:(t,i,b)=>{var _=b(74040);t.exports=function _defineProperty(t,i,b){return(i=_(i))in t?Object.defineProperty(t,i,{value:b,enumerable:!0,configurable:!0,writable:!0}):t[i]=b,t},t.exports.__esModule=!0,t.exports.default=t.exports},73119:t=>{function _extends(){return t.exports=_extends=Object.assign?Object.assign.bind():function(t){for(var i=1;i<arguments.length;i++){var b=arguments[i];for(var _ in b)Object.prototype.hasOwnProperty.call(b,_)&&(t[_]=b[_])}return t},t.exports.__esModule=!0,t.exports.default=t.exports,_extends.apply(this,arguments)}t.exports=_extends,t.exports.__esModule=!0,t.exports.default=t.exports},74910:t=>{function _getPrototypeOf(i){return t.exports=_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,_getPrototypeOf(i)}t.exports=_getPrototypeOf,t.exports.__esModule=!0,t.exports.default=t.exports},58724:(t,i,b)=>{var _=b(96196);t.exports=function _inherits(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),i&&_(t,i)},t.exports.__esModule=!0,t.exports.default=t.exports},73203:t=>{t.exports=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},68:t=>{t.exports=function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},40608:t=>{t.exports=function _iterableToArrayLimit(t,i){var b=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=b){var _,C,w,x,E=[],O=!0,k=!1;try{if(w=(b=b.call(t)).next,0===i){if(Object(b)!==b)return;O=!1}else for(;!(O=(_=w.call(b)).done)&&(E.push(_.value),E.length!==i);O=!0);}catch(t){k=!0,C=t}finally{try{if(!O&&null!=b.return&&(x=b.return(),Object(x)!==x))return}finally{if(k)throw C}}return E}},t.exports.__esModule=!0,t.exports.default=t.exports},56894:t=>{t.exports=function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},91282:t=>{t.exports=function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},70966:(t,i,b)=>{var _=b(22412);t.exports=function _objectWithoutProperties(t,i){if(null==t)return{};var b,C,w=_(t,i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(t);for(C=0;C<x.length;C++)b=x[C],i.indexOf(b)>=0||Object.prototype.propertyIsEnumerable.call(t,b)&&(w[b]=t[b])}return w},t.exports.__esModule=!0,t.exports.default=t.exports},22412:t=>{t.exports=function _objectWithoutPropertiesLoose(t,i){if(null==t)return{};var b,_,C={},w=Object.keys(t);for(_=0;_<w.length;_++)b=w[_],i.indexOf(b)>=0||(C[b]=t[b]);return C},t.exports.__esModule=!0,t.exports.default=t.exports},71173:(t,i,b)=>{var _=b(7501).default,C=b(77266);t.exports=function _possibleConstructorReturn(t,i){if(i&&("object"===_(i)||"function"==typeof i))return i;if(void 0!==i)throw new TypeError("Derived constructors may only return object or undefined");return C(t)},t.exports.__esModule=!0,t.exports.default=t.exports},21337:(t,i,b)=>{var _=b(7501).default;function _regeneratorRuntime(){"use strict";t.exports=_regeneratorRuntime=function _regeneratorRuntime(){return b},t.exports.__esModule=!0,t.exports.default=t.exports;var i,b={},C=Object.prototype,w=C.hasOwnProperty,x=Object.defineProperty||function(t,i,b){t[i]=b.value},E="function"==typeof Symbol?Symbol:{},O=E.iterator||"@@iterator",k=E.asyncIterator||"@@asyncIterator",P=E.toStringTag||"@@toStringTag";function define(t,i,b){return Object.defineProperty(t,i,{value:b,enumerable:!0,configurable:!0,writable:!0}),t[i]}try{define({},"")}catch(i){define=function define(t,i,b){return t[i]=b}}function wrap(t,i,b,_){var C=i&&i.prototype instanceof Generator?i:Generator,w=Object.create(C.prototype),E=new Context(_||[]);return x(w,"_invoke",{value:makeInvokeMethod(t,b,E)}),w}function tryCatch(t,i,b){try{return{type:"normal",arg:t.call(i,b)}}catch(t){return{type:"throw",arg:t}}}b.wrap=wrap;var S="suspendedStart",I="suspendedYield",T="executing",j="completed",M={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var A={};define(A,O,(function(){return this}));var R=Object.getPrototypeOf,D=R&&R(R(values([])));D&&D!==C&&w.call(D,O)&&(A=D);var L=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(A);function defineIteratorMethods(t){["next","throw","return"].forEach((function(i){define(t,i,(function(t){return this._invoke(i,t)}))}))}function AsyncIterator(t,i){function invoke(b,C,x,E){var O=tryCatch(t[b],t,C);if("throw"!==O.type){var k=O.arg,P=k.value;return P&&"object"==_(P)&&w.call(P,"__await")?i.resolve(P.__await).then((function(t){invoke("next",t,x,E)}),(function(t){invoke("throw",t,x,E)})):i.resolve(P).then((function(t){k.value=t,x(k)}),(function(t){return invoke("throw",t,x,E)}))}E(O.arg)}var b;x(this,"_invoke",{value:function value(t,_){function callInvokeWithMethodAndArg(){return new i((function(i,b){invoke(t,_,i,b)}))}return b=b?b.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(t,b,_){var C=S;return function(w,x){if(C===T)throw new Error("Generator is already running");if(C===j){if("throw"===w)throw x;return{value:i,done:!0}}for(_.method=w,_.arg=x;;){var E=_.delegate;if(E){var O=maybeInvokeDelegate(E,_);if(O){if(O===M)continue;return O}}if("next"===_.method)_.sent=_._sent=_.arg;else if("throw"===_.method){if(C===S)throw C=j,_.arg;_.dispatchException(_.arg)}else"return"===_.method&&_.abrupt("return",_.arg);C=T;var k=tryCatch(t,b,_);if("normal"===k.type){if(C=_.done?j:I,k.arg===M)continue;return{value:k.arg,done:_.done}}"throw"===k.type&&(C=j,_.method="throw",_.arg=k.arg)}}}function maybeInvokeDelegate(t,b){var _=b.method,C=t.iterator[_];if(C===i)return b.delegate=null,"throw"===_&&t.iterator.return&&(b.method="return",b.arg=i,maybeInvokeDelegate(t,b),"throw"===b.method)||"return"!==_&&(b.method="throw",b.arg=new TypeError("The iterator does not provide a '"+_+"' method")),M;var w=tryCatch(C,t.iterator,b.arg);if("throw"===w.type)return b.method="throw",b.arg=w.arg,b.delegate=null,M;var x=w.arg;return x?x.done?(b[t.resultName]=x.value,b.next=t.nextLoc,"return"!==b.method&&(b.method="next",b.arg=i),b.delegate=null,M):x:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,M)}function pushTryEntry(t){var i={tryLoc:t[0]};1 in t&&(i.catchLoc=t[1]),2 in t&&(i.finallyLoc=t[2],i.afterLoc=t[3]),this.tryEntries.push(i)}function resetTryEntry(t){var i=t.completion||{};i.type="normal",delete i.arg,t.completion=i}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(t){if(t||""===t){var b=t[O];if(b)return b.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var C=-1,x=function next(){for(;++C<t.length;)if(w.call(t,C))return next.value=t[C],next.done=!1,next;return next.value=i,next.done=!0,next};return x.next=x}}throw new TypeError(_(t)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,x(L,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),x(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,P,"GeneratorFunction"),b.isGeneratorFunction=function(t){var i="function"==typeof t&&t.constructor;return!!i&&(i===GeneratorFunction||"GeneratorFunction"===(i.displayName||i.name))},b.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,P,"GeneratorFunction")),t.prototype=Object.create(L),t},b.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,k,(function(){return this})),b.AsyncIterator=AsyncIterator,b.async=function(t,i,_,C,w){void 0===w&&(w=Promise);var x=new AsyncIterator(wrap(t,i,_,C),w);return b.isGeneratorFunction(i)?x:x.next().then((function(t){return t.done?t.value:x.next()}))},defineIteratorMethods(L),define(L,P,"Generator"),define(L,O,(function(){return this})),define(L,"toString",(function(){return"[object Generator]"})),b.keys=function(t){var i=Object(t),b=[];for(var _ in i)b.push(_);return b.reverse(),function next(){for(;b.length;){var t=b.pop();if(t in i)return next.value=t,next.done=!1,next}return next.done=!0,next}},b.values=values,Context.prototype={constructor:Context,reset:function reset(t){if(this.prev=0,this.next=0,this.sent=this._sent=i,this.done=!1,this.delegate=null,this.method="next",this.arg=i,this.tryEntries.forEach(resetTryEntry),!t)for(var b in this)"t"===b.charAt(0)&&w.call(this,b)&&!isNaN(+b.slice(1))&&(this[b]=i)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(t){if(this.done)throw t;var b=this;function handle(_,C){return x.type="throw",x.arg=t,b.next=_,C&&(b.method="next",b.arg=i),!!C}for(var _=this.tryEntries.length-1;_>=0;--_){var C=this.tryEntries[_],x=C.completion;if("root"===C.tryLoc)return handle("end");if(C.tryLoc<=this.prev){var E=w.call(C,"catchLoc"),O=w.call(C,"finallyLoc");if(E&&O){if(this.prev<C.catchLoc)return handle(C.catchLoc,!0);if(this.prev<C.finallyLoc)return handle(C.finallyLoc)}else if(E){if(this.prev<C.catchLoc)return handle(C.catchLoc,!0)}else{if(!O)throw new Error("try statement without catch or finally");if(this.prev<C.finallyLoc)return handle(C.finallyLoc)}}}},abrupt:function abrupt(t,i){for(var b=this.tryEntries.length-1;b>=0;--b){var _=this.tryEntries[b];if(_.tryLoc<=this.prev&&w.call(_,"finallyLoc")&&this.prev<_.finallyLoc){var C=_;break}}C&&("break"===t||"continue"===t)&&C.tryLoc<=i&&i<=C.finallyLoc&&(C=null);var x=C?C.completion:{};return x.type=t,x.arg=i,C?(this.method="next",this.next=C.finallyLoc,M):this.complete(x)},complete:function complete(t,i){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&i&&(this.next=i),M},finish:function finish(t){for(var i=this.tryEntries.length-1;i>=0;--i){var b=this.tryEntries[i];if(b.finallyLoc===t)return this.complete(b.completion,b.afterLoc),resetTryEntry(b),M}},catch:function _catch(t){for(var i=this.tryEntries.length-1;i>=0;--i){var b=this.tryEntries[i];if(b.tryLoc===t){var _=b.completion;if("throw"===_.type){var C=_.arg;resetTryEntry(b)}return C}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(t,b,_){return this.delegate={iterator:values(t),resultName:b,nextLoc:_},"next"===this.method&&(this.arg=i),M}},b}t.exports=_regeneratorRuntime,t.exports.__esModule=!0,t.exports.default=t.exports},96196:t=>{function _setPrototypeOf(i,b){return t.exports=_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,i){return t.__proto__=i,t},t.exports.__esModule=!0,t.exports.default=t.exports,_setPrototypeOf(i,b)}t.exports=_setPrototypeOf,t.exports.__esModule=!0,t.exports.default=t.exports},40131:(t,i,b)=>{var _=b(17358),C=b(40608),w=b(35068),x=b(56894);t.exports=function _slicedToArray(t,i){return _(t)||C(t,i)||w(t,i)||x()},t.exports.__esModule=!0,t.exports.default=t.exports},79769:t=>{t.exports=function _taggedTemplateLiteral(t,i){return i||(i=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(i)}}))},t.exports.__esModule=!0,t.exports.default=t.exports},9833:(t,i,b)=>{var _=b(34102),C=b(68),w=b(35068),x=b(91282);t.exports=function _toConsumableArray(t){return _(t)||C(t)||w(t)||x()},t.exports.__esModule=!0,t.exports.default=t.exports},56027:(t,i,b)=>{var _=b(7501).default;t.exports=function _toPrimitive(t,i){if("object"!==_(t)||null===t)return t;var b=t[Symbol.toPrimitive];if(void 0!==b){var C=b.call(t,i||"default");if("object"!==_(C))return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},74040:(t,i,b)=>{var _=b(7501).default,C=b(56027);t.exports=function _toPropertyKey(t){var i=C(t,"string");return"symbol"===_(i)?i:String(i)},t.exports.__esModule=!0,t.exports.default=t.exports},7501:t=>{function _typeof(i){return t.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,_typeof(i)}t.exports=_typeof,t.exports.__esModule=!0,t.exports.default=t.exports},35068:(t,i,b)=>{var _=b(98106);t.exports=function _unsupportedIterableToArray(t,i){if(t){if("string"==typeof t)return _(t,i);var b=Object.prototype.toString.call(t).slice(8,-1);return"Object"===b&&t.constructor&&(b=t.constructor.name),"Map"===b||"Set"===b?Array.from(t):"Arguments"===b||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)?_(t,i):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},50824:(t,i,b)=>{var _=b(21337)();t.exports=_;try{regeneratorRuntime=_}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=_:Function("r","regeneratorRuntime = r")(_)}},51068:(t,i,b)=>{"use strict";b.r(i),b.d(i,{default:()=>ReactMarkdown,uriTransformer:()=>uriTransformer});var _={};b.r(_),b.d(_,{attentionMarkers:()=>Fe,contentInitial:()=>Me,disable:()=>Ne,document:()=>je,flow:()=>Re,flowInitial:()=>Ae,insideSpan:()=>Be,string:()=>De,text:()=>Le});var C={};b.r(C),b.d(C,{boolean:()=>Qe,booleanish:()=>Je,commaOrSpaceSeparated:()=>ot,commaSeparated:()=>rt,number:()=>tt,overloadedBoolean:()=>et,spaceSeparated:()=>nt});const w=["http","https","mailto","tel"];function uriTransformer(t){const i=(t||"").trim(),b=i.charAt(0);if("#"===b||"/"===b)return i;const _=i.indexOf(":");if(-1===_)return i;let C=-1;for(;++C<w.length;){const t=w[C];if(_===t.length&&i.slice(0,t.length).toLowerCase()===t)return i}return C=i.indexOf("?"),-1!==C&&_>C?i:(C=i.indexOf("#"),-1!==C&&_>C?i:"javascript:void(0)")}var x=b(87363),E=b(48809);function stringifyPosition(t){return t&&"object"==typeof t?"position"in t||"type"in t?position(t.position):"start"in t||"end"in t?position(t):"line"in t||"column"in t?point(t):"":""}function point(t){return index(t&&t.line)+":"+index(t&&t.column)}function position(t){return point(t&&t.start)+"-"+point(t&&t.end)}function index(t){return t&&"number"==typeof t?t:1}class VFileMessage extends Error{constructor(t,i,b){const _=[null,null];let C={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof i&&(b=i,i=void 0),"string"==typeof b){const t=b.indexOf(":");-1===t?_[1]=b:(_[0]=b.slice(0,t),_[1]=b.slice(t+1))}i&&("type"in i||"position"in i?i.position&&(C=i.position):"start"in i||"end"in i?C=i:("line"in i||"column"in i)&&(C.start=i)),this.name=stringifyPosition(i)||"1:1",this.message="object"==typeof t?t.message:t,this.stack="","object"==typeof t&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=C.start.line,this.column=C.start.column,this.position=C,this.source=_[0],this.ruleId=_[1],this.file,this.actual,this.expected,this.url,this.note}}VFileMessage.prototype.file="",VFileMessage.prototype.name="",VFileMessage.prototype.reason="",VFileMessage.prototype.message="",VFileMessage.prototype.stack="",VFileMessage.prototype.fatal=null,VFileMessage.prototype.column=null,VFileMessage.prototype.line=null,VFileMessage.prototype.source=null,VFileMessage.prototype.ruleId=null,VFileMessage.prototype.position=null;const O={basename:function basename(t,i){if(void 0!==i&&"string"!=typeof i)throw new TypeError('"ext" argument must be a string');assertPath(t);let b,_=0,C=-1,w=t.length;if(void 0===i||0===i.length||i.length>t.length){for(;w--;)if(47===t.charCodeAt(w)){if(b){_=w+1;break}}else C<0&&(b=!0,C=w+1);return C<0?"":t.slice(_,C)}if(i===t)return"";let x=-1,E=i.length-1;for(;w--;)if(47===t.charCodeAt(w)){if(b){_=w+1;break}}else x<0&&(b=!0,x=w+1),E>-1&&(t.charCodeAt(w)===i.charCodeAt(E--)?E<0&&(C=w):(E=-1,C=x));_===C?C=x:C<0&&(C=t.length);return t.slice(_,C)},dirname:function dirname(t){if(assertPath(t),0===t.length)return".";let i,b=-1,_=t.length;for(;--_;)if(47===t.charCodeAt(_)){if(i){b=_;break}}else i||(i=!0);return b<0?47===t.charCodeAt(0)?"/":".":1===b&&47===t.charCodeAt(0)?"//":t.slice(0,b)},extname:function extname(t){assertPath(t);let i,b=t.length,_=-1,C=0,w=-1,x=0;for(;b--;){const E=t.charCodeAt(b);if(47!==E)_<0&&(i=!0,_=b+1),46===E?w<0?w=b:1!==x&&(x=1):w>-1&&(x=-1);else if(i){C=b+1;break}}if(w<0||_<0||0===x||1===x&&w===_-1&&w===C+1)return"";return t.slice(w,_)},join:function join(...t){let i,b=-1;for(;++b<t.length;)assertPath(t[b]),t[b]&&(i=void 0===i?t[b]:i+"/"+t[b]);return void 0===i?".":function normalize(t){assertPath(t);const i=47===t.charCodeAt(0);let b=function normalizeString(t,i){let b,_,C="",w=0,x=-1,E=0,O=-1;for(;++O<=t.length;){if(O<t.length)b=t.charCodeAt(O);else{if(47===b)break;b=47}if(47===b){if(x===O-1||1===E);else if(x!==O-1&&2===E){if(C.length<2||2!==w||46!==C.charCodeAt(C.length-1)||46!==C.charCodeAt(C.length-2))if(C.length>2){if(_=C.lastIndexOf("/"),_!==C.length-1){_<0?(C="",w=0):(C=C.slice(0,_),w=C.length-1-C.lastIndexOf("/")),x=O,E=0;continue}}else if(C.length>0){C="",w=0,x=O,E=0;continue}i&&(C=C.length>0?C+"/..":"..",w=2)}else C.length>0?C+="/"+t.slice(x+1,O):C=t.slice(x+1,O),w=O-x-1;x=O,E=0}else 46===b&&E>-1?E++:E=-1}return C}(t,!i);0!==b.length||i||(b=".");b.length>0&&47===t.charCodeAt(t.length-1)&&(b+="/");return i?"/"+b:b}(i)},sep:"/"};function assertPath(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const k={cwd:function cwd(){return"/"}};function isUrl(t){return null!==t&&"object"==typeof t&&t.href&&t.origin}function urlToPath(t){if("string"==typeof t)t=new URL(t);else if(!isUrl(t)){const i=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw i.code="ERR_INVALID_ARG_TYPE",i}if("file:"!==t.protocol){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return function getPathFromURLPosix(t){if(""!==t.hostname){const t=new TypeError('File URL host must be "localhost" or empty on darwin');throw t.code="ERR_INVALID_FILE_URL_HOST",t}const i=t.pathname;let b=-1;for(;++b<i.length;)if(37===i.charCodeAt(b)&&50===i.charCodeAt(b+1)){const t=i.charCodeAt(b+2);if(70===t||102===t){const t=new TypeError("File URL path must not include encoded / characters");throw t.code="ERR_INVALID_FILE_URL_PATH",t}}return decodeURIComponent(i)}(t)}const P=["history","path","basename","stem","extname","dirname"];class VFile{constructor(t){let i;i=t?"string"==typeof t||function buffer(t){return E(t)}(t)?{value:t}:isUrl(t)?{path:t}:t:{},this.data={},this.messages=[],this.history=[],this.cwd=k.cwd(),this.value,this.stored,this.result,this.map;let b,_=-1;for(;++_<P.length;){const t=P[_];t in i&&void 0!==i[t]&&null!==i[t]&&(this[t]="history"===t?[...i[t]]:i[t])}for(b in i)P.includes(b)||(this[b]=i[b])}get path(){return this.history[this.history.length-1]}set path(t){isUrl(t)&&(t=urlToPath(t)),assertNonEmpty(t,"path"),this.path!==t&&this.history.push(t)}get dirname(){return"string"==typeof this.path?O.dirname(this.path):void 0}set dirname(t){lib_assertPath(this.basename,"dirname"),this.path=O.join(t||"",this.basename)}get basename(){return"string"==typeof this.path?O.basename(this.path):void 0}set basename(t){assertNonEmpty(t,"basename"),assertPart(t,"basename"),this.path=O.join(this.dirname||"",t)}get extname(){return"string"==typeof this.path?O.extname(this.path):void 0}set extname(t){if(assertPart(t,"extname"),lib_assertPath(this.dirname,"extname"),t){if(46!==t.charCodeAt(0))throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=O.join(this.dirname,this.stem+(t||""))}get stem(){return"string"==typeof this.path?O.basename(this.path,this.extname):void 0}set stem(t){assertNonEmpty(t,"stem"),assertPart(t,"stem"),this.path=O.join(this.dirname||"",t+(this.extname||""))}toString(t){return(this.value||"").toString(t||void 0)}message(t,i,b){const _=new VFileMessage(t,i,b);return this.path&&(_.name=this.path+":"+_.name,_.file=this.path),_.fatal=!1,this.messages.push(_),_}info(t,i,b){const _=this.message(t,i,b);return _.fatal=null,_}fail(t,i,b){const _=this.message(t,i,b);throw _.fatal=!0,_}}function assertPart(t,i){if(t&&t.includes(O.sep))throw new Error("`"+i+"` cannot be a path: did not expect `"+O.sep+"`")}function assertNonEmpty(t,i){if(!t)throw new Error("`"+i+"` cannot be empty")}function lib_assertPath(t,i){if(!t)throw new Error("Setting `"+i+"` requires `path` to be set too")}function bail(t){if(t)throw t}var S=b(50229);function isPlainObject(t){if("object"!=typeof t||null===t)return!1;const i=Object.getPrototypeOf(t);return!(null!==i&&i!==Object.prototype&&null!==Object.getPrototypeOf(i)||Symbol.toStringTag in t||Symbol.iterator in t)}function trough(){const t=[],i={run:function run(...i){let b=-1;const _=i.pop();if("function"!=typeof _)throw new TypeError("Expected function as last argument, not "+_);!function next(C,...w){const x=t[++b];let E=-1;if(C)_(C);else{for(;++E<i.length;)null!==w[E]&&void 0!==w[E]||(w[E]=i[E]);i=w,x?function wrap(t,i){let b;return wrapped;function wrapped(...i){const _=t.length>i.length;let C;_&&i.push(done);try{C=t.apply(this,i)}catch(t){if(_&&b)throw t;return done(t)}_||(C instanceof Promise?C.then(then,done):C instanceof Error?done(C):then(C))}function done(t,..._){b||(b=!0,i(t,..._))}function then(t){done(null,t)}}(x,next)(...w):_(null,...w)}}(null,...i)},use:function use(b){if("function"!=typeof b)throw new TypeError("Expected `middelware` to be a function, not "+b);return t.push(b),i}};return i}const I=function base(){const t=trough(),i=[];let b,_={},C=-1;return processor.data=function data(t,i){if("string"==typeof t)return 2===arguments.length?(assertUnfrozen("data",b),_[t]=i,processor):T.call(_,t)&&_[t]||null;if(t)return assertUnfrozen("data",b),_=t,processor;return _},processor.Parser=void 0,processor.Compiler=void 0,processor.freeze=function freeze(){if(b)return processor;for(;++C<i.length;){const[b,..._]=i[C];if(!1===_[0])continue;!0===_[0]&&(_[0]=void 0);const w=b.call(processor,..._);"function"==typeof w&&t.use(w)}return b=!0,C=Number.POSITIVE_INFINITY,processor},processor.attachers=i,processor.use=function use(t,...C){let w;if(assertUnfrozen("use",b),null==t);else if("function"==typeof t)addPlugin(t,...C);else{if("object"!=typeof t)throw new TypeError("Expected usable value, not `"+t+"`");Array.isArray(t)?addList(t):addPreset(t)}w&&(_.settings=Object.assign(_.settings||{},w));return processor;function add(t){if("function"==typeof t)addPlugin(t);else{if("object"!=typeof t)throw new TypeError("Expected usable value, not `"+t+"`");if(Array.isArray(t)){const[i,...b]=t;addPlugin(i,...b)}else addPreset(t)}}function addPreset(t){addList(t.plugins),t.settings&&(w=Object.assign(w||{},t.settings))}function addList(t){let i=-1;if(null==t);else{if(!Array.isArray(t))throw new TypeError("Expected a list of plugins, not `"+t+"`");for(;++i<t.length;){add(t[i])}}}function addPlugin(t,b){let _,C=-1;for(;++C<i.length;)if(i[C][0]===t){_=i[C];break}_?(isPlainObject(_[1])&&isPlainObject(b)&&(b=S(!0,_[1],b)),_[1]=b):i.push([...arguments])}},processor.parse=function parse(t){processor.freeze();const i=vfile(t),b=processor.Parser;if(assertParser("parse",b),newable(b,"parse"))return new b(String(i),i).parse();return b(String(i),i)},processor.stringify=function stringify(t,i){processor.freeze();const b=vfile(i),_=processor.Compiler;if(assertCompiler("stringify",_),assertNode(t),newable(_,"compile"))return new _(t,b).compile();return _(t,b)},processor.run=function run(i,b,_){assertNode(i),processor.freeze(),_||"function"!=typeof b||(_=b,b=void 0);if(!_)return new Promise(executor);function executor(C,w){function done(t,b,x){b=b||i,t?w(t):C?C(b):_(null,b,x)}t.run(i,vfile(b),done)}executor(null,_)},processor.runSync=function runSync(t,i){let b,_;return processor.run(t,i,done),assertDone("runSync","run",_),b;function done(t,i){bail(t),b=i,_=!0}},processor.process=function process(t,i){if(processor.freeze(),assertParser("process",processor.Parser),assertCompiler("process",processor.Compiler),!i)return new Promise(executor);function executor(b,_){const C=vfile(t);function done(t,C){t||!C?_(t):b?b(C):i(null,C)}processor.run(processor.parse(C),C,((t,i,b)=>{if(!t&&i&&b){const _=processor.stringify(i,b);null==_||(!function looksLikeAVFileValue(t){return"string"==typeof t||E(t)}(_)?b.result=_:b.value=_),done(t,b)}else done(t)}))}executor(null,i)},processor.processSync=function processSync(t){let i;processor.freeze(),assertParser("processSync",processor.Parser),assertCompiler("processSync",processor.Compiler);const b=vfile(t);return processor.process(b,done),assertDone("processSync","process",i),b;function done(t){i=!0,bail(t)}},processor;function processor(){const t=base();let b=-1;for(;++b<i.length;)t.use(...i[b]);return t.data(S(!0,{},_)),t}}().freeze(),T={}.hasOwnProperty;function newable(t,i){return"function"==typeof t&&t.prototype&&(function keys(t){let i;for(i in t)if(T.call(t,i))return!0;return!1}(t.prototype)||i in t.prototype)}function assertParser(t,i){if("function"!=typeof i)throw new TypeError("Cannot `"+t+"` without `Parser`")}function assertCompiler(t,i){if("function"!=typeof i)throw new TypeError("Cannot `"+t+"` without `Compiler`")}function assertUnfrozen(t,i){if(i)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function assertNode(t){if(!isPlainObject(t)||"string"!=typeof t.type)throw new TypeError("Expected node, got `"+t+"`")}function assertDone(t,i,b){if(!b)throw new Error("`"+t+"` finished async. Use `"+i+"` instead")}function vfile(t){return function looksLikeAVFile(t){return Boolean(t&&"object"==typeof t&&"message"in t&&"messages"in t)}(t)?t:new VFile(t)}const j={};function one(t,i,b){if(function node(t){return Boolean(t&&"object"==typeof t)}(t)){if("value"in t)return"html"!==t.type||b?t.value:"";if(i&&"alt"in t&&t.alt)return t.alt;if("children"in t)return lib_all(t.children,i,b)}return Array.isArray(t)?lib_all(t,i,b):""}function lib_all(t,i,b){const _=[];let C=-1;for(;++C<t.length;)_[C]=one(t[C],i,b);return _.join("")}function splice(t,i,b,_){const C=t.length;let w,x=0;if(i=i<0?-i>C?0:C+i:i>C?C:i,b=b>0?b:0,_.length<1e4)w=Array.from(_),w.unshift(i,b),t.splice(...w);else for(b&&t.splice(i,b);x<_.length;)w=_.slice(x,x+1e4),w.unshift(i,0),t.splice(...w),x+=1e4,i+=1e4}function push(t,i){return t.length>0?(splice(t,t.length,0,i),t):i}const M={}.hasOwnProperty;function syntaxExtension(t,i){let b;for(b in i){const _=(M.call(t,b)?t[b]:void 0)||(t[b]={}),C=i[b];let w;if(C)for(w in C){M.call(_,w)||(_[w]=[]);const t=C[w];constructs(_[w],Array.isArray(t)?t:t?[t]:[])}}}function constructs(t,i){let b=-1;const _=[];for(;++b<i.length;)("after"===i[b].add?t:_).push(i[b]);splice(t,0,0,_)}const A=regexCheck(/[A-Za-z]/),R=regexCheck(/[\dA-Za-z]/),D=regexCheck(/[#-'*+\--9=?A-Z^-~]/);function asciiControl(t){return null!==t&&(t<32||127===t)}const L=regexCheck(/\d/),B=regexCheck(/[\dA-Fa-f]/),N=regexCheck(/[!-/:-@[-`{-~]/);function markdownLineEnding(t){return null!==t&&t<-2}function markdownLineEndingOrSpace(t){return null!==t&&(t<0||32===t)}function markdownSpace(t){return-2===t||-1===t||32===t}const W=regexCheck(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),H=regexCheck(/\s/);function regexCheck(t){return function check(i){return null!==i&&t.test(String.fromCharCode(i))}}function factorySpace(t,i,b,_){const C=_?_-1:Number.POSITIVE_INFINITY;let w=0;return function start(_){if(markdownSpace(_))return t.enter(b),prefix(_);return i(_)};function prefix(_){return markdownSpace(_)&&w++<C?(t.consume(_),prefix):(t.exit(b),i(_))}}const q={tokenize:function initializeContent(t){const i=t.attempt(this.parser.constructs.contentInitial,(function afterContentStartConstruct(b){if(null===b)return void t.consume(b);return t.enter("lineEnding"),t.consume(b),t.exit("lineEnding"),factorySpace(t,i,"linePrefix")}),(function paragraphInitial(i){return t.enter("paragraph"),lineStart(i)}));let b;return i;function lineStart(i){const _=t.enter("chunkText",{contentType:"text",previous:b});return b&&(b.next=_),b=_,data(i)}function data(i){return null===i?(t.exit("chunkText"),t.exit("paragraph"),void t.consume(i)):markdownLineEnding(i)?(t.consume(i),t.exit("chunkText"),lineStart):(t.consume(i),data)}}};const z={tokenize:function initializeDocument(t){const i=this,b=[];let _,C,w,x=0;return start;function start(_){if(x<b.length){const C=b[x];return i.containerState=C[1],t.attempt(C[0].continuation,documentContinue,checkNewContainers)(_)}return checkNewContainers(_)}function documentContinue(t){if(x++,i.containerState._closeFlow){i.containerState._closeFlow=void 0,_&&closeFlow();const b=i.events.length;let C,w=b;for(;w--;)if("exit"===i.events[w][0]&&"chunkFlow"===i.events[w][1].type){C=i.events[w][1].end;break}exitContainers(x);let E=b;for(;E<i.events.length;)i.events[E][1].end=Object.assign({},C),E++;return splice(i.events,w+1,0,i.events.slice(b)),i.events.length=E,checkNewContainers(t)}return start(t)}function checkNewContainers(C){if(x===b.length){if(!_)return documentContinued(C);if(_.currentConstruct&&_.currentConstruct.concrete)return flowStart(C);i.interrupt=Boolean(_.currentConstruct&&!_._gfmTableDynamicInterruptHack)}return i.containerState={},t.check(V,thereIsANewContainer,thereIsNoNewContainer)(C)}function thereIsANewContainer(t){return _&&closeFlow(),exitContainers(x),documentContinued(t)}function thereIsNoNewContainer(t){return i.parser.lazy[i.now().line]=x!==b.length,w=i.now().offset,flowStart(t)}function documentContinued(b){return i.containerState={},t.attempt(V,containerContinue,flowStart)(b)}function containerContinue(t){return x++,b.push([i.currentConstruct,i.containerState]),documentContinued(t)}function flowStart(b){return null===b?(_&&closeFlow(),exitContainers(0),void t.consume(b)):(_=_||i.parser.flow(i.now()),t.enter("chunkFlow",{contentType:"flow",previous:C,_tokenizer:_}),flowContinue(b))}function flowContinue(b){return null===b?(writeToChild(t.exit("chunkFlow"),!0),exitContainers(0),void t.consume(b)):markdownLineEnding(b)?(t.consume(b),writeToChild(t.exit("chunkFlow")),x=0,i.interrupt=void 0,start):(t.consume(b),flowContinue)}function writeToChild(t,b){const E=i.sliceStream(t);if(b&&E.push(null),t.previous=C,C&&(C.next=t),C=t,_.defineSkip(t.start),_.write(E),i.parser.lazy[t.start.line]){let t=_.events.length;for(;t--;)if(_.events[t][1].start.offset<w&&(!_.events[t][1].end||_.events[t][1].end.offset>w))return;const b=i.events.length;let C,E,O=b;for(;O--;)if("exit"===i.events[O][0]&&"chunkFlow"===i.events[O][1].type){if(C){E=i.events[O][1].end;break}C=!0}for(exitContainers(x),t=b;t<i.events.length;)i.events[t][1].end=Object.assign({},E),t++;splice(i.events,O+1,0,i.events.slice(b)),i.events.length=t}}function exitContainers(_){let C=b.length;for(;C-- >_;){const _=b[C];i.containerState=_[1],_[0].exit.call(i,t)}b.length=_}function closeFlow(){_.write([null]),C=void 0,_=void 0,i.containerState._closeFlow=void 0}}},V={tokenize:function tokenizeContainer(t,i,b){return factorySpace(t,t.attempt(this.parser.constructs.document,i,b),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const G={tokenize:function tokenizeBlankLine(t,i,b){return function start(i){return markdownSpace(i)?factorySpace(t,after,"linePrefix")(i):after(i)};function after(t){return null===t||markdownLineEnding(t)?i(t):b(t)}},partial:!0};function subtokenize(t){const i={};let b,_,C,w,x,E,O,k=-1;for(;++k<t.length;){for(;k in i;)k=i[k];if(b=t[k],k&&"chunkFlow"===b[1].type&&"listItemPrefix"===t[k-1][1].type&&(E=b[1]._tokenizer.events,C=0,C<E.length&&"lineEndingBlank"===E[C][1].type&&(C+=2),C<E.length&&"content"===E[C][1].type))for(;++C<E.length&&"content"!==E[C][1].type;)"chunkText"===E[C][1].type&&(E[C][1]._isInFirstContentOfListItem=!0,C++);if("enter"===b[0])b[1].contentType&&(Object.assign(i,subcontent(t,k)),k=i[k],O=!0);else if(b[1]._container){for(C=k,_=void 0;C--&&(w=t[C],"lineEnding"===w[1].type||"lineEndingBlank"===w[1].type);)"enter"===w[0]&&(_&&(t[_][1].type="lineEndingBlank"),w[1].type="lineEnding",_=C);_&&(b[1].end=Object.assign({},t[_][1].start),x=t.slice(_,k),x.unshift(b),splice(t,_,k-_+1,x))}}return!O}function subcontent(t,i){const b=t[i][1],_=t[i][2];let C=i-1;const w=[],x=b._tokenizer||_.parser[b.contentType](b.start),E=x.events,O=[],k={};let P,S,I=-1,T=b,j=0,M=0;const A=[M];for(;T;){for(;t[++C][1]!==T;);w.push(C),T._tokenizer||(P=_.sliceStream(T),T.next||P.push(null),S&&x.defineSkip(T.start),T._isInFirstContentOfListItem&&(x._gfmTasklistFirstContentOfListItem=!0),x.write(P),T._isInFirstContentOfListItem&&(x._gfmTasklistFirstContentOfListItem=void 0)),S=T,T=T.next}for(T=b;++I<E.length;)"exit"===E[I][0]&&"enter"===E[I-1][0]&&E[I][1].type===E[I-1][1].type&&E[I][1].start.line!==E[I][1].end.line&&(M=I+1,A.push(M),T._tokenizer=void 0,T.previous=void 0,T=T.next);for(x.events=[],T?(T._tokenizer=void 0,T.previous=void 0):A.pop(),I=A.length;I--;){const i=E.slice(A[I],A[I+1]),b=w.pop();O.unshift([b,b+i.length-1]),splice(t,b,2,i)}for(I=-1;++I<O.length;)k[j+O[I][0]]=j+O[I][1],j+=O[I][1]-O[I][0]-1;return k}const U={tokenize:function tokenizeContent(t,i){let b;return function chunkStart(i){return t.enter("content"),b=t.enter("chunkContent",{contentType:"content"}),chunkInside(i)};function chunkInside(i){return null===i?contentEnd(i):markdownLineEnding(i)?t.check(Y,contentContinue,contentEnd)(i):(t.consume(i),chunkInside)}function contentEnd(b){return t.exit("chunkContent"),t.exit("content"),i(b)}function contentContinue(i){return t.consume(i),t.exit("chunkContent"),b.next=t.enter("chunkContent",{contentType:"content",previous:b}),b=b.next,chunkInside}},resolve:function resolveContent(t){return subtokenize(t),t}},Y={tokenize:function tokenizeContinuation(t,i,b){const _=this;return function startLookahead(i){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),factorySpace(t,prefixed,"linePrefix")};function prefixed(C){if(null===C||markdownLineEnding(C))return b(C);const w=_.events[_.events.length-1];return!_.parser.constructs.disable.null.includes("codeIndented")&&w&&"linePrefix"===w[1].type&&w[2].sliceSerialize(w[1],!0).length>=4?i(C):t.interrupt(_.parser.constructs.flow,b,i)(C)}},partial:!0};const Z={tokenize:function initializeFlow(t){const i=this,b=t.attempt(G,(function atBlankEnding(_){if(null===_)return void t.consume(_);return t.enter("lineEndingBlank"),t.consume(_),t.exit("lineEndingBlank"),i.currentConstruct=void 0,b}),t.attempt(this.parser.constructs.flowInitial,afterConstruct,factorySpace(t,t.attempt(this.parser.constructs.flow,afterConstruct,t.attempt(U,afterConstruct)),"linePrefix")));return b;function afterConstruct(_){if(null!==_)return t.enter("lineEnding"),t.consume(_),t.exit("lineEnding"),i.currentConstruct=void 0,b;t.consume(_)}}};const K={resolveAll:createResolver()},X=initializeFactory("string"),$=initializeFactory("text");function initializeFactory(t){return{tokenize:function initializeText(i){const b=this,_=this.parser.constructs[t],C=i.attempt(_,start,notText);return start;function start(t){return atBreak(t)?C(t):notText(t)}function notText(t){if(null!==t)return i.enter("data"),i.consume(t),data;i.consume(t)}function data(t){return atBreak(t)?(i.exit("data"),C(t)):(i.consume(t),data)}function atBreak(t){if(null===t)return!0;const i=_[t];let C=-1;if(i)for(;++C<i.length;){const t=i[C];if(!t.previous||t.previous.call(b,b.previous))return!0}return!1}},resolveAll:createResolver("text"===t?resolveAllLineSuffixes:void 0)}}function createResolver(t){return function resolveAllText(i,b){let _,C=-1;for(;++C<=i.length;)void 0===_?i[C]&&"data"===i[C][1].type&&(_=C,C++):i[C]&&"data"===i[C][1].type||(C!==_+2&&(i[_][1].end=i[C-1][1].end,i.splice(_+2,C-_-2),C=_+2),_=void 0);return t?t(i,b):i}}function resolveAllLineSuffixes(t,i){let b=0;for(;++b<=t.length;)if((b===t.length||"lineEnding"===t[b][1].type)&&"data"===t[b-1][1].type){const _=t[b-1][1],C=i.sliceStream(_);let w,x=C.length,E=-1,O=0;for(;x--;){const t=C[x];if("string"==typeof t){for(E=t.length;32===t.charCodeAt(E-1);)O++,E--;if(E)break;E=-1}else if(-2===t)w=!0,O++;else if(-1!==t){x++;break}}if(O){const C={type:b===t.length||w||O<2?"lineSuffix":"hardBreakTrailing",start:{line:_.end.line,column:_.end.column-O,offset:_.end.offset-O,_index:_.start._index+x,_bufferIndex:x?E:_.start._bufferIndex+E},end:Object.assign({},_.end)};_.end=Object.assign({},C.start),_.start.offset===_.end.offset?Object.assign(_,C):(t.splice(b,0,["enter",C,i],["exit",C,i]),b+=2)}b++}return t}function resolveAll(t,i,b){const _=[];let C=-1;for(;++C<t.length;){const w=t[C].resolveAll;w&&!_.includes(w)&&(i=w(i,b),_.push(w))}return i}function createTokenizer(t,i,b){let _=Object.assign(b?Object.assign({},b):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const C={},w=[];let x=[],E=[],O=!0;const k={consume:function consume(t){markdownLineEnding(t)?(_.line++,_.column=1,_.offset+=-3===t?2:1,accountForPotentialSkip()):-1!==t&&(_.column++,_.offset++);_._bufferIndex<0?_._index++:(_._bufferIndex++,_._bufferIndex===x[_._index].length&&(_._bufferIndex=-1,_._index++));P.previous=t,O=!0},enter:function enter(t,i){const b=i||{};return b.type=t,b.start=now(),P.events.push(["enter",b,P]),E.push(b),b},exit:function exit(t){const i=E.pop();return i.end=now(),P.events.push(["exit",i,P]),i},attempt:constructFactory((function onsuccessfulconstruct(t,i){addResult(t,i.from)})),check:constructFactory(onsuccessfulcheck),interrupt:constructFactory(onsuccessfulcheck,{interrupt:!0})},P={previous:null,code:null,containerState:{},events:[],parser:t,sliceStream,sliceSerialize:function sliceSerialize(t,i){return function serializeChunks(t,i){let b=-1;const _=[];let C;for(;++b<t.length;){const w=t[b];let x;if("string"==typeof w)x=w;else switch(w){case-5:x="\r";break;case-4:x="\n";break;case-3:x="\r\n";break;case-2:x=i?" ":"\t";break;case-1:if(!i&&C)continue;x=" ";break;default:x=String.fromCharCode(w)}C=-2===w,_.push(x)}return _.join("")}(sliceStream(t),i)},now,defineSkip:function defineSkip(t){C[t.line]=t.column,accountForPotentialSkip()},write:function write(t){if(x=push(x,t),main(),null!==x[x.length-1])return[];return addResult(i,0),P.events=resolveAll(w,P.events,P),P.events}};let S,I=i.tokenize.call(P,k);return i.resolveAll&&w.push(i),P;function sliceStream(t){return function sliceChunks(t,i){const b=i.start._index,_=i.start._bufferIndex,C=i.end._index,w=i.end._bufferIndex;let x;if(b===C)x=[t[b].slice(_,w)];else{if(x=t.slice(b,C),_>-1){const t=x[0];"string"==typeof t?x[0]=t.slice(_):x.shift()}w>0&&x.push(t[C].slice(0,w))}return x}(x,t)}function now(){const{line:t,column:i,offset:b,_index:C,_bufferIndex:w}=_;return{line:t,column:i,offset:b,_index:C,_bufferIndex:w}}function main(){let t;for(;_._index<x.length;){const i=x[_._index];if("string"==typeof i)for(t=_._index,_._bufferIndex<0&&(_._bufferIndex=0);_._index===t&&_._bufferIndex<i.length;)go(i.charCodeAt(_._bufferIndex));else go(i)}}function go(t){O=void 0,S=t,I=I(t)}function onsuccessfulcheck(t,i){i.restore()}function constructFactory(t,i){return function hook(b,C,w){let x,S,I,T;return Array.isArray(b)?handleListOfConstructs(b):"tokenize"in b?handleListOfConstructs([b]):function handleMapOfConstructs(t){return start;function start(i){const b=null!==i&&t[i],_=null!==i&&t.null;return handleListOfConstructs([...Array.isArray(b)?b:b?[b]:[],...Array.isArray(_)?_:_?[_]:[]])(i)}}(b);function handleListOfConstructs(t){return x=t,S=0,0===t.length?w:handleConstruct(t[S])}function handleConstruct(t){return function start(b){T=function store(){const t=now(),i=P.previous,b=P.currentConstruct,C=P.events.length,w=Array.from(E);return{restore,from:C};function restore(){_=t,P.previous=i,P.currentConstruct=b,P.events.length=C,E=w,accountForPotentialSkip()}}(),I=t,t.partial||(P.currentConstruct=t);if(t.name&&P.parser.constructs.disable.null.includes(t.name))return nok(b);return t.tokenize.call(i?Object.assign(Object.create(P),i):P,k,ok,nok)(b)}}function ok(i){return O=!0,t(I,T),C}function nok(t){return O=!0,T.restore(),++S<x.length?handleConstruct(x[S]):w}}}function addResult(t,i){t.resolveAll&&!w.includes(t)&&w.push(t),t.resolve&&splice(P.events,i,P.events.length-i,t.resolve(P.events.slice(i),P)),t.resolveTo&&(P.events=t.resolveTo(P.events,P))}function accountForPotentialSkip(){_.line in C&&_.column<2&&(_.column=C[_.line],_.offset+=C[_.line]-1)}}const Q={name:"thematicBreak",tokenize:function tokenizeThematicBreak(t,i,b){let _,C=0;return function start(i){return t.enter("thematicBreak"),function before(t){return _=t,atBreak(t)}(i)};function atBreak(w){return w===_?(t.enter("thematicBreakSequence"),sequence(w)):C>=3&&(null===w||markdownLineEnding(w))?(t.exit("thematicBreak"),i(w)):b(w)}function sequence(i){return i===_?(t.consume(i),C++,sequence):(t.exit("thematicBreakSequence"),markdownSpace(i)?factorySpace(t,atBreak,"whitespace")(i):atBreak(i))}}};const J={name:"list",tokenize:function tokenizeListStart(t,i,b){const _=this,C=_.events[_.events.length-1];let w=C&&"linePrefix"===C[1].type?C[2].sliceSerialize(C[1],!0).length:0,x=0;return function start(i){const C=_.containerState.type||(42===i||43===i||45===i?"listUnordered":"listOrdered");if("listUnordered"===C?!_.containerState.marker||i===_.containerState.marker:L(i)){if(_.containerState.type||(_.containerState.type=C,t.enter(C,{_container:!0})),"listUnordered"===C)return t.enter("listItemPrefix"),42===i||45===i?t.check(Q,b,atMarker)(i):atMarker(i);if(!_.interrupt||49===i)return t.enter("listItemPrefix"),t.enter("listItemValue"),inside(i)}return b(i)};function inside(i){return L(i)&&++x<10?(t.consume(i),inside):(!_.interrupt||x<2)&&(_.containerState.marker?i===_.containerState.marker:41===i||46===i)?(t.exit("listItemValue"),atMarker(i)):b(i)}function atMarker(i){return t.enter("listItemMarker"),t.consume(i),t.exit("listItemMarker"),_.containerState.marker=_.containerState.marker||i,t.check(G,_.interrupt?b:onBlank,t.attempt(ee,endOfPrefix,otherPrefix))}function onBlank(t){return _.containerState.initialBlankLine=!0,w++,endOfPrefix(t)}function otherPrefix(i){return markdownSpace(i)?(t.enter("listItemPrefixWhitespace"),t.consume(i),t.exit("listItemPrefixWhitespace"),endOfPrefix):b(i)}function endOfPrefix(b){return _.containerState.size=w+_.sliceSerialize(t.exit("listItemPrefix"),!0).length,i(b)}},continuation:{tokenize:function tokenizeListContinuation(t,i,b){const _=this;return _.containerState._closeFlow=void 0,t.check(G,onBlank,notBlank);function onBlank(b){return _.containerState.furtherBlankLines=_.containerState.furtherBlankLines||_.containerState.initialBlankLine,factorySpace(t,i,"listItemIndent",_.containerState.size+1)(b)}function notBlank(b){return _.containerState.furtherBlankLines||!markdownSpace(b)?(_.containerState.furtherBlankLines=void 0,_.containerState.initialBlankLine=void 0,notInCurrentItem(b)):(_.containerState.furtherBlankLines=void 0,_.containerState.initialBlankLine=void 0,t.attempt(te,i,notInCurrentItem)(b))}function notInCurrentItem(C){return _.containerState._closeFlow=!0,_.interrupt=void 0,factorySpace(t,t.attempt(J,i,b),"linePrefix",_.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C)}}},exit:function tokenizeListEnd(t){t.exit(this.containerState.type)}},ee={tokenize:function tokenizeListItemPrefixWhitespace(t,i,b){const _=this;return factorySpace(t,(function afterPrefix(t){const C=_.events[_.events.length-1];return!markdownSpace(t)&&C&&"listItemPrefixWhitespace"===C[1].type?i(t):b(t)}),"listItemPrefixWhitespace",_.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},te={tokenize:function tokenizeIndent(t,i,b){const _=this;return factorySpace(t,(function afterPrefix(t){const C=_.events[_.events.length-1];return C&&"listItemIndent"===C[1].type&&C[2].sliceSerialize(C[1],!0).length===_.containerState.size?i(t):b(t)}),"listItemIndent",_.containerState.size+1)},partial:!0};const ne={name:"blockQuote",tokenize:function tokenizeBlockQuoteStart(t,i,b){const _=this;return function start(i){if(62===i){const b=_.containerState;return b.open||(t.enter("blockQuote",{_container:!0}),b.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(i),t.exit("blockQuoteMarker"),after}return b(i)};function after(b){return markdownSpace(b)?(t.enter("blockQuotePrefixWhitespace"),t.consume(b),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),i):(t.exit("blockQuotePrefix"),i(b))}},continuation:{tokenize:function tokenizeBlockQuoteContinuation(t,i,b){const _=this;return function contStart(i){if(markdownSpace(i))return factorySpace(t,contBefore,"linePrefix",_.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i);return contBefore(i)};function contBefore(_){return t.attempt(ne,i,b)(_)}}},exit:function exit(t){t.exit("blockQuote")}};function factoryDestination(t,i,b,_,C,w,x,E,O){const k=O||Number.POSITIVE_INFINITY;let P=0;return function start(i){if(60===i)return t.enter(_),t.enter(C),t.enter(w),t.consume(i),t.exit(w),enclosedBefore;if(null===i||32===i||41===i||asciiControl(i))return b(i);return t.enter(_),t.enter(x),t.enter(E),t.enter("chunkString",{contentType:"string"}),raw(i)};function enclosedBefore(b){return 62===b?(t.enter(w),t.consume(b),t.exit(w),t.exit(C),t.exit(_),i):(t.enter(E),t.enter("chunkString",{contentType:"string"}),enclosed(b))}function enclosed(i){return 62===i?(t.exit("chunkString"),t.exit(E),enclosedBefore(i)):null===i||60===i||markdownLineEnding(i)?b(i):(t.consume(i),92===i?enclosedEscape:enclosed)}function enclosedEscape(i){return 60===i||62===i||92===i?(t.consume(i),enclosed):enclosed(i)}function raw(C){return P||null!==C&&41!==C&&!markdownLineEndingOrSpace(C)?P<k&&40===C?(t.consume(C),P++,raw):41===C?(t.consume(C),P--,raw):null===C||32===C||40===C||asciiControl(C)?b(C):(t.consume(C),92===C?rawEscape:raw):(t.exit("chunkString"),t.exit(E),t.exit(x),t.exit(_),i(C))}function rawEscape(i){return 40===i||41===i||92===i?(t.consume(i),raw):raw(i)}}function factoryLabel(t,i,b,_,C,w){const x=this;let E,O=0;return function start(i){return t.enter(_),t.enter(C),t.consume(i),t.exit(C),t.enter(w),atBreak};function atBreak(k){return O>999||null===k||91===k||93===k&&!E||94===k&&!O&&"_hiddenFootnoteSupport"in x.parser.constructs?b(k):93===k?(t.exit(w),t.enter(C),t.consume(k),t.exit(C),t.exit(_),i):markdownLineEnding(k)?(t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),atBreak):(t.enter("chunkString",{contentType:"string"}),labelInside(k))}function labelInside(i){return null===i||91===i||93===i||markdownLineEnding(i)||O++>999?(t.exit("chunkString"),atBreak(i)):(t.consume(i),E||(E=!markdownSpace(i)),92===i?labelEscape:labelInside)}function labelEscape(i){return 91===i||92===i||93===i?(t.consume(i),O++,labelInside):labelInside(i)}}function factoryTitle(t,i,b,_,C,w){let x;return function start(i){if(34===i||39===i||40===i)return t.enter(_),t.enter(C),t.consume(i),t.exit(C),x=40===i?41:i,begin;return b(i)};function begin(b){return b===x?(t.enter(C),t.consume(b),t.exit(C),t.exit(_),i):(t.enter(w),atBreak(b))}function atBreak(i){return i===x?(t.exit(w),begin(x)):null===i?b(i):markdownLineEnding(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),factorySpace(t,atBreak,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),inside(i))}function inside(i){return i===x||null===i||markdownLineEnding(i)?(t.exit("chunkString"),atBreak(i)):(t.consume(i),92===i?escape:inside)}function escape(i){return i===x||92===i?(t.consume(i),inside):inside(i)}}function factoryWhitespace(t,i){let b;return function start(_){if(markdownLineEnding(_))return t.enter("lineEnding"),t.consume(_),t.exit("lineEnding"),b=!0,start;if(markdownSpace(_))return factorySpace(t,start,b?"linePrefix":"lineSuffix")(_);return i(_)}}function normalizeIdentifier(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const re={name:"definition",tokenize:function tokenizeDefinition(t,i,b){const _=this;let C;return function start(i){return t.enter("definition"),function before(i){return factoryLabel.call(_,t,labelAfter,b,"definitionLabel","definitionLabelMarker","definitionLabelString")(i)}(i)};function labelAfter(i){return C=normalizeIdentifier(_.sliceSerialize(_.events[_.events.length-1][1]).slice(1,-1)),58===i?(t.enter("definitionMarker"),t.consume(i),t.exit("definitionMarker"),markerAfter):b(i)}function markerAfter(i){return markdownLineEndingOrSpace(i)?factoryWhitespace(t,destinationBefore)(i):destinationBefore(i)}function destinationBefore(i){return factoryDestination(t,destinationAfter,b,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(i)}function destinationAfter(i){return t.attempt(oe,after,after)(i)}function after(i){return markdownSpace(i)?factorySpace(t,afterWhitespace,"whitespace")(i):afterWhitespace(i)}function afterWhitespace(w){return null===w||markdownLineEnding(w)?(t.exit("definition"),_.parser.defined.push(C),i(w)):b(w)}}},oe={tokenize:function tokenizeTitleBefore(t,i,b){return function titleBefore(i){return markdownLineEndingOrSpace(i)?factoryWhitespace(t,beforeMarker)(i):b(i)};function beforeMarker(i){return factoryTitle(t,titleAfter,b,"definitionTitle","definitionTitleMarker","definitionTitleString")(i)}function titleAfter(i){return markdownSpace(i)?factorySpace(t,titleAfterOptionalWhitespace,"whitespace")(i):titleAfterOptionalWhitespace(i)}function titleAfterOptionalWhitespace(t){return null===t||markdownLineEnding(t)?i(t):b(t)}},partial:!0};const ae={name:"codeIndented",tokenize:function tokenizeCodeIndented(t,i,b){const _=this;return function start(i){return t.enter("codeIndented"),factorySpace(t,afterPrefix,"linePrefix",5)(i)};function afterPrefix(t){const i=_.events[_.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?atBreak(t):b(t)}function atBreak(i){return null===i?after(i):markdownLineEnding(i)?t.attempt(ie,atBreak,after)(i):(t.enter("codeFlowValue"),inside(i))}function inside(i){return null===i||markdownLineEnding(i)?(t.exit("codeFlowValue"),atBreak(i)):(t.consume(i),inside)}function after(b){return t.exit("codeIndented"),i(b)}}},ie={tokenize:function tokenizeFurtherStart(t,i,b){const _=this;return furtherStart;function furtherStart(i){return _.parser.lazy[_.now().line]?b(i):markdownLineEnding(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),furtherStart):factorySpace(t,afterPrefix,"linePrefix",5)(i)}function afterPrefix(t){const C=_.events[_.events.length-1];return C&&"linePrefix"===C[1].type&&C[2].sliceSerialize(C[1],!0).length>=4?i(t):markdownLineEnding(t)?furtherStart(t):b(t)}},partial:!0};const le={name:"headingAtx",tokenize:function tokenizeHeadingAtx(t,i,b){let _=0;return function start(i){return t.enter("atxHeading"),function before(i){return t.enter("atxHeadingSequence"),sequenceOpen(i)}(i)};function sequenceOpen(i){return 35===i&&_++<6?(t.consume(i),sequenceOpen):null===i||markdownLineEndingOrSpace(i)?(t.exit("atxHeadingSequence"),atBreak(i)):b(i)}function atBreak(b){return 35===b?(t.enter("atxHeadingSequence"),sequenceFurther(b)):null===b||markdownLineEnding(b)?(t.exit("atxHeading"),i(b)):markdownSpace(b)?factorySpace(t,atBreak,"whitespace")(b):(t.enter("atxHeadingText"),data(b))}function sequenceFurther(i){return 35===i?(t.consume(i),sequenceFurther):(t.exit("atxHeadingSequence"),atBreak(i))}function data(i){return null===i||35===i||markdownLineEndingOrSpace(i)?(t.exit("atxHeadingText"),atBreak(i)):(t.consume(i),data)}},resolve:function resolveHeadingAtx(t,i){let b,_,C=t.length-2,w=3;"whitespace"===t[w][1].type&&(w+=2);C-2>w&&"whitespace"===t[C][1].type&&(C-=2);"atxHeadingSequence"===t[C][1].type&&(w===C-1||C-4>w&&"whitespace"===t[C-2][1].type)&&(C-=w+1===C?2:4);C>w&&(b={type:"atxHeadingText",start:t[w][1].start,end:t[C][1].end},_={type:"chunkText",start:t[w][1].start,end:t[C][1].end,contentType:"text"},splice(t,w,C-w+1,[["enter",b,i],["enter",_,i],["exit",_,i],["exit",b,i]]));return t}};const ue={name:"setextUnderline",tokenize:function tokenizeSetextUnderline(t,i,b){const _=this;let C;return function start(i){let w,x=_.events.length;for(;x--;)if("lineEnding"!==_.events[x][1].type&&"linePrefix"!==_.events[x][1].type&&"content"!==_.events[x][1].type){w="paragraph"===_.events[x][1].type;break}if(!_.parser.lazy[_.now().line]&&(_.interrupt||w))return t.enter("setextHeadingLine"),C=i,function before(i){return t.enter("setextHeadingLineSequence"),inside(i)}(i);return b(i)};function inside(i){return i===C?(t.consume(i),inside):(t.exit("setextHeadingLineSequence"),markdownSpace(i)?factorySpace(t,after,"lineSuffix")(i):after(i))}function after(_){return null===_||markdownLineEnding(_)?(t.exit("setextHeadingLine"),i(_)):b(_)}},resolveTo:function resolveToSetextUnderline(t,i){let b,_,C,w=t.length;for(;w--;)if("enter"===t[w][0]){if("content"===t[w][1].type){b=w;break}"paragraph"===t[w][1].type&&(_=w)}else"content"===t[w][1].type&&t.splice(w,1),C||"definition"!==t[w][1].type||(C=w);const x={type:"setextHeading",start:Object.assign({},t[_][1].start),end:Object.assign({},t[t.length-1][1].end)};t[_][1].type="setextHeadingText",C?(t.splice(_,0,["enter",x,i]),t.splice(C+1,0,["exit",t[b][1],i]),t[b][1].end=Object.assign({},t[C][1].end)):t[b][1]=x;return t.push(["exit",x,i]),t}};const ce=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],se=["pre","script","style","textarea"],de={name:"htmlFlow",tokenize:function tokenizeHtmlFlow(t,i,b){const _=this;let C,w,x,E,O;return function start(i){return function before(i){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(i),open}(i)};function open(E){return 33===E?(t.consume(E),declarationOpen):47===E?(t.consume(E),w=!0,tagCloseStart):63===E?(t.consume(E),C=3,_.interrupt?i:continuationDeclarationInside):A(E)?(t.consume(E),x=String.fromCharCode(E),tagName):b(E)}function declarationOpen(w){return 45===w?(t.consume(w),C=2,commentOpenInside):91===w?(t.consume(w),C=5,E=0,cdataOpenInside):A(w)?(t.consume(w),C=4,_.interrupt?i:continuationDeclarationInside):b(w)}function commentOpenInside(C){return 45===C?(t.consume(C),_.interrupt?i:continuationDeclarationInside):b(C)}function cdataOpenInside(C){const w="CDATA[";return C===w.charCodeAt(E++)?(t.consume(C),6===E?_.interrupt?i:continuation:cdataOpenInside):b(C)}function tagCloseStart(i){return A(i)?(t.consume(i),x=String.fromCharCode(i),tagName):b(i)}function tagName(E){if(null===E||47===E||62===E||markdownLineEndingOrSpace(E)){const O=47===E,k=x.toLowerCase();return O||w||!se.includes(k)?ce.includes(x.toLowerCase())?(C=6,O?(t.consume(E),basicSelfClosing):_.interrupt?i(E):continuation(E)):(C=7,_.interrupt&&!_.parser.lazy[_.now().line]?b(E):w?completeClosingTagAfter(E):completeAttributeNameBefore(E)):(C=1,_.interrupt?i(E):continuation(E))}return 45===E||R(E)?(t.consume(E),x+=String.fromCharCode(E),tagName):b(E)}function basicSelfClosing(C){return 62===C?(t.consume(C),_.interrupt?i:continuation):b(C)}function completeClosingTagAfter(i){return markdownSpace(i)?(t.consume(i),completeClosingTagAfter):completeEnd(i)}function completeAttributeNameBefore(i){return 47===i?(t.consume(i),completeEnd):58===i||95===i||A(i)?(t.consume(i),completeAttributeName):markdownSpace(i)?(t.consume(i),completeAttributeNameBefore):completeEnd(i)}function completeAttributeName(i){return 45===i||46===i||58===i||95===i||R(i)?(t.consume(i),completeAttributeName):completeAttributeNameAfter(i)}function completeAttributeNameAfter(i){return 61===i?(t.consume(i),completeAttributeValueBefore):markdownSpace(i)?(t.consume(i),completeAttributeNameAfter):completeAttributeNameBefore(i)}function completeAttributeValueBefore(i){return null===i||60===i||61===i||62===i||96===i?b(i):34===i||39===i?(t.consume(i),O=i,completeAttributeValueQuoted):markdownSpace(i)?(t.consume(i),completeAttributeValueBefore):completeAttributeValueUnquoted(i)}function completeAttributeValueQuoted(i){return i===O?(t.consume(i),O=null,completeAttributeValueQuotedAfter):null===i||markdownLineEnding(i)?b(i):(t.consume(i),completeAttributeValueQuoted)}function completeAttributeValueUnquoted(i){return null===i||34===i||39===i||47===i||60===i||61===i||62===i||96===i||markdownLineEndingOrSpace(i)?completeAttributeNameAfter(i):(t.consume(i),completeAttributeValueUnquoted)}function completeAttributeValueQuotedAfter(t){return 47===t||62===t||markdownSpace(t)?completeAttributeNameBefore(t):b(t)}function completeEnd(i){return 62===i?(t.consume(i),completeAfter):b(i)}function completeAfter(i){return null===i||markdownLineEnding(i)?continuation(i):markdownSpace(i)?(t.consume(i),completeAfter):b(i)}function continuation(i){return 45===i&&2===C?(t.consume(i),continuationCommentInside):60===i&&1===C?(t.consume(i),continuationRawTagOpen):62===i&&4===C?(t.consume(i),continuationClose):63===i&&3===C?(t.consume(i),continuationDeclarationInside):93===i&&5===C?(t.consume(i),continuationCdataInside):!markdownLineEnding(i)||6!==C&&7!==C?null===i||markdownLineEnding(i)?(t.exit("htmlFlowData"),continuationStart(i)):(t.consume(i),continuation):(t.exit("htmlFlowData"),t.check(fe,continuationAfter,continuationStart)(i))}function continuationStart(i){return t.check(pe,continuationStartNonLazy,continuationAfter)(i)}function continuationStartNonLazy(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),continuationBefore}function continuationBefore(i){return null===i||markdownLineEnding(i)?continuationStart(i):(t.enter("htmlFlowData"),continuation(i))}function continuationCommentInside(i){return 45===i?(t.consume(i),continuationDeclarationInside):continuation(i)}function continuationRawTagOpen(i){return 47===i?(t.consume(i),x="",continuationRawEndTag):continuation(i)}function continuationRawEndTag(i){if(62===i){const b=x.toLowerCase();return se.includes(b)?(t.consume(i),continuationClose):continuation(i)}return A(i)&&x.length<8?(t.consume(i),x+=String.fromCharCode(i),continuationRawEndTag):continuation(i)}function continuationCdataInside(i){return 93===i?(t.consume(i),continuationDeclarationInside):continuation(i)}function continuationDeclarationInside(i){return 62===i?(t.consume(i),continuationClose):45===i&&2===C?(t.consume(i),continuationDeclarationInside):continuation(i)}function continuationClose(i){return null===i||markdownLineEnding(i)?(t.exit("htmlFlowData"),continuationAfter(i)):(t.consume(i),continuationClose)}function continuationAfter(b){return t.exit("htmlFlow"),i(b)}},resolveTo:function resolveToHtmlFlow(t){let i=t.length;for(;i--&&("enter"!==t[i][0]||"htmlFlow"!==t[i][1].type););i>1&&"linePrefix"===t[i-2][1].type&&(t[i][1].start=t[i-2][1].start,t[i+1][1].start=t[i-2][1].start,t.splice(i-2,2));return t},concrete:!0},fe={tokenize:function tokenizeBlankLineBefore(t,i,b){return function start(_){return t.enter("lineEnding"),t.consume(_),t.exit("lineEnding"),t.attempt(G,i,b)}},partial:!0},pe={tokenize:function tokenizeNonLazyContinuationStart(t,i,b){const _=this;return function start(i){if(markdownLineEnding(i))return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),after;return b(i)};function after(t){return _.parser.lazy[_.now().line]?b(t):i(t)}},partial:!0};const me={tokenize:function tokenizeNonLazyContinuation(t,i,b){const _=this;return function start(i){if(null===i)return b(i);return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),lineStart};function lineStart(t){return _.parser.lazy[_.now().line]?b(t):i(t)}},partial:!0},he={name:"codeFenced",tokenize:function tokenizeCodeFenced(t,i,b){const _=this,C={tokenize:function tokenizeCloseStart(t,i,b){let C=0;return startBefore;function startBefore(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),start}function start(i){return t.enter("codeFencedFence"),markdownSpace(i)?factorySpace(t,beforeSequenceClose,"linePrefix",_.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):beforeSequenceClose(i)}function beforeSequenceClose(i){return i===w?(t.enter("codeFencedFenceSequence"),sequenceClose(i)):b(i)}function sequenceClose(i){return i===w?(C++,t.consume(i),sequenceClose):C>=E?(t.exit("codeFencedFenceSequence"),markdownSpace(i)?factorySpace(t,sequenceCloseAfter,"whitespace")(i):sequenceCloseAfter(i)):b(i)}function sequenceCloseAfter(_){return null===_||markdownLineEnding(_)?(t.exit("codeFencedFence"),i(_)):b(_)}},partial:!0};let w,x=0,E=0;return function start(i){return function beforeSequenceOpen(i){const b=_.events[_.events.length-1];return x=b&&"linePrefix"===b[1].type?b[2].sliceSerialize(b[1],!0).length:0,w=i,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),sequenceOpen(i)}(i)};function sequenceOpen(i){return i===w?(E++,t.consume(i),sequenceOpen):E<3?b(i):(t.exit("codeFencedFenceSequence"),markdownSpace(i)?factorySpace(t,infoBefore,"whitespace")(i):infoBefore(i))}function infoBefore(b){return null===b||markdownLineEnding(b)?(t.exit("codeFencedFence"),_.interrupt?i(b):t.check(me,atNonLazyBreak,after)(b)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),info(b))}function info(i){return null===i||markdownLineEnding(i)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),infoBefore(i)):markdownSpace(i)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),factorySpace(t,metaBefore,"whitespace")(i)):96===i&&i===w?b(i):(t.consume(i),info)}function metaBefore(i){return null===i||markdownLineEnding(i)?infoBefore(i):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),meta(i))}function meta(i){return null===i||markdownLineEnding(i)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),infoBefore(i)):96===i&&i===w?b(i):(t.consume(i),meta)}function atNonLazyBreak(i){return t.attempt(C,after,contentBefore)(i)}function contentBefore(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),contentStart}function contentStart(i){return x>0&&markdownSpace(i)?factorySpace(t,beforeContentChunk,"linePrefix",x+1)(i):beforeContentChunk(i)}function beforeContentChunk(i){return null===i||markdownLineEnding(i)?t.check(me,atNonLazyBreak,after)(i):(t.enter("codeFlowValue"),contentChunk(i))}function contentChunk(i){return null===i||markdownLineEnding(i)?(t.exit("codeFlowValue"),beforeContentChunk(i)):(t.consume(i),contentChunk)}function after(b){return t.exit("codeFenced"),i(b)}},concrete:!0};const ge=document.createElement("i");function decodeNamedCharacterReference(t){const i="&"+t+";";ge.innerHTML=i;const b=ge.textContent;return(59!==b.charCodeAt(b.length-1)||"semi"===t)&&(b!==i&&b)}const ye={name:"characterReference",tokenize:function tokenizeCharacterReference(t,i,b){const _=this;let C,w,x=0;return function start(i){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(i),t.exit("characterReferenceMarker"),open};function open(i){return 35===i?(t.enter("characterReferenceMarkerNumeric"),t.consume(i),t.exit("characterReferenceMarkerNumeric"),numeric):(t.enter("characterReferenceValue"),C=31,w=R,value(i))}function numeric(i){return 88===i||120===i?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(i),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),C=6,w=B,value):(t.enter("characterReferenceValue"),C=7,w=L,value(i))}function value(E){if(59===E&&x){const C=t.exit("characterReferenceValue");return w!==R||decodeNamedCharacterReference(_.sliceSerialize(C))?(t.enter("characterReferenceMarker"),t.consume(E),t.exit("characterReferenceMarker"),t.exit("characterReference"),i):b(E)}return w(E)&&x++<C?(t.consume(E),value):b(E)}}};const ve={name:"characterEscape",tokenize:function tokenizeCharacterEscape(t,i,b){return function start(i){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(i),t.exit("escapeMarker"),inside};function inside(_){return N(_)?(t.enter("characterEscapeValue"),t.consume(_),t.exit("characterEscapeValue"),t.exit("characterEscape"),i):b(_)}}};const be={name:"lineEnding",tokenize:function tokenizeLineEnding(t,i){return function start(b){return t.enter("lineEnding"),t.consume(b),t.exit("lineEnding"),factorySpace(t,i,"linePrefix")}}};const _e={name:"labelEnd",tokenize:function tokenizeLabelEnd(t,i,b){const _=this;let C,w,x=_.events.length;for(;x--;)if(("labelImage"===_.events[x][1].type||"labelLink"===_.events[x][1].type)&&!_.events[x][1]._balanced){C=_.events[x][1];break}return function start(i){if(!C)return b(i);if(C._inactive)return labelEndNok(i);return w=_.parser.defined.includes(normalizeIdentifier(_.sliceSerialize({start:C.end,end:_.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(i),t.exit("labelMarker"),t.exit("labelEnd"),after};function after(i){return 40===i?t.attempt(Ce,labelEndOk,w?labelEndOk:labelEndNok)(i):91===i?t.attempt(we,labelEndOk,w?referenceNotFull:labelEndNok)(i):w?labelEndOk(i):labelEndNok(i)}function referenceNotFull(i){return t.attempt(xe,labelEndOk,labelEndNok)(i)}function labelEndOk(t){return i(t)}function labelEndNok(t){return C._balanced=!0,b(t)}},resolveTo:function resolveToLabelEnd(t,i){let b,_,C,w,x=t.length,E=0;for(;x--;)if(b=t[x][1],_){if("link"===b.type||"labelLink"===b.type&&b._inactive)break;"enter"===t[x][0]&&"labelLink"===b.type&&(b._inactive=!0)}else if(C){if("enter"===t[x][0]&&("labelImage"===b.type||"labelLink"===b.type)&&!b._balanced&&(_=x,"labelLink"!==b.type)){E=2;break}}else"labelEnd"===b.type&&(C=x);const O={type:"labelLink"===t[_][1].type?"link":"image",start:Object.assign({},t[_][1].start),end:Object.assign({},t[t.length-1][1].end)},k={type:"label",start:Object.assign({},t[_][1].start),end:Object.assign({},t[C][1].end)},P={type:"labelText",start:Object.assign({},t[_+E+2][1].end),end:Object.assign({},t[C-2][1].start)};return w=[["enter",O,i],["enter",k,i]],w=push(w,t.slice(_+1,_+E+3)),w=push(w,[["enter",P,i]]),w=push(w,resolveAll(i.parser.constructs.insideSpan.null,t.slice(_+E+4,C-3),i)),w=push(w,[["exit",P,i],t[C-2],t[C-1],["exit",k,i]]),w=push(w,t.slice(C+1)),w=push(w,[["exit",O,i]]),splice(t,_,t.length,w),t},resolveAll:function resolveAllLabelEnd(t){let i=-1;for(;++i<t.length;){const b=t[i][1];"labelImage"!==b.type&&"labelLink"!==b.type&&"labelEnd"!==b.type||(t.splice(i+1,"labelImage"===b.type?4:2),b.type="data",i++)}return t}},Ce={tokenize:function tokenizeResource(t,i,b){return function resourceStart(i){return t.enter("resource"),t.enter("resourceMarker"),t.consume(i),t.exit("resourceMarker"),resourceBefore};function resourceBefore(i){return markdownLineEndingOrSpace(i)?factoryWhitespace(t,resourceOpen)(i):resourceOpen(i)}function resourceOpen(i){return 41===i?resourceEnd(i):factoryDestination(t,resourceDestinationAfter,resourceDestinationMissing,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(i)}function resourceDestinationAfter(i){return markdownLineEndingOrSpace(i)?factoryWhitespace(t,resourceBetween)(i):resourceEnd(i)}function resourceDestinationMissing(t){return b(t)}function resourceBetween(i){return 34===i||39===i||40===i?factoryTitle(t,resourceTitleAfter,b,"resourceTitle","resourceTitleMarker","resourceTitleString")(i):resourceEnd(i)}function resourceTitleAfter(i){return markdownLineEndingOrSpace(i)?factoryWhitespace(t,resourceEnd)(i):resourceEnd(i)}function resourceEnd(_){return 41===_?(t.enter("resourceMarker"),t.consume(_),t.exit("resourceMarker"),t.exit("resource"),i):b(_)}}},we={tokenize:function tokenizeReferenceFull(t,i,b){const _=this;return function referenceFull(i){return factoryLabel.call(_,t,referenceFullAfter,referenceFullMissing,"reference","referenceMarker","referenceString")(i)};function referenceFullAfter(t){return _.parser.defined.includes(normalizeIdentifier(_.sliceSerialize(_.events[_.events.length-1][1]).slice(1,-1)))?i(t):b(t)}function referenceFullMissing(t){return b(t)}}},xe={tokenize:function tokenizeReferenceCollapsed(t,i,b){return function referenceCollapsedStart(i){return t.enter("reference"),t.enter("referenceMarker"),t.consume(i),t.exit("referenceMarker"),referenceCollapsedOpen};function referenceCollapsedOpen(_){return 93===_?(t.enter("referenceMarker"),t.consume(_),t.exit("referenceMarker"),t.exit("reference"),i):b(_)}}};const Ee={name:"labelStartImage",tokenize:function tokenizeLabelStartImage(t,i,b){const _=this;return function start(i){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(i),t.exit("labelImageMarker"),open};function open(i){return 91===i?(t.enter("labelMarker"),t.consume(i),t.exit("labelMarker"),t.exit("labelImage"),after):b(i)}function after(t){return 94===t&&"_hiddenFootnoteSupport"in _.parser.constructs?b(t):i(t)}},resolveAll:_e.resolveAll};function classifyCharacter(t){return null===t||markdownLineEndingOrSpace(t)||H(t)?1:W(t)?2:void 0}const Oe={name:"attention",tokenize:function tokenizeAttention(t,i){const b=this.parser.constructs.attentionMarkers.null,_=this.previous,C=classifyCharacter(_);let w;return function start(i){return w=i,t.enter("attentionSequence"),inside(i)};function inside(x){if(x===w)return t.consume(x),inside;const E=t.exit("attentionSequence"),O=classifyCharacter(x),k=!O||2===O&&C||b.includes(x),P=!C||2===C&&O||b.includes(_);return E._open=Boolean(42===w?k:k&&(C||!P)),E._close=Boolean(42===w?P:P&&(O||!k)),i(x)}},resolveAll:function resolveAllAttention(t,i){let b,_,C,w,x,E,O,k,P=-1;for(;++P<t.length;)if("enter"===t[P][0]&&"attentionSequence"===t[P][1].type&&t[P][1]._close)for(b=P;b--;)if("exit"===t[b][0]&&"attentionSequence"===t[b][1].type&&t[b][1]._open&&i.sliceSerialize(t[b][1]).charCodeAt(0)===i.sliceSerialize(t[P][1]).charCodeAt(0)){if((t[b][1]._close||t[P][1]._open)&&(t[P][1].end.offset-t[P][1].start.offset)%3&&!((t[b][1].end.offset-t[b][1].start.offset+t[P][1].end.offset-t[P][1].start.offset)%3))continue;E=t[b][1].end.offset-t[b][1].start.offset>1&&t[P][1].end.offset-t[P][1].start.offset>1?2:1;const S=Object.assign({},t[b][1].end),I=Object.assign({},t[P][1].start);movePoint(S,-E),movePoint(I,E),w={type:E>1?"strongSequence":"emphasisSequence",start:S,end:Object.assign({},t[b][1].end)},x={type:E>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[P][1].start),end:I},C={type:E>1?"strongText":"emphasisText",start:Object.assign({},t[b][1].end),end:Object.assign({},t[P][1].start)},_={type:E>1?"strong":"emphasis",start:Object.assign({},w.start),end:Object.assign({},x.end)},t[b][1].end=Object.assign({},w.start),t[P][1].start=Object.assign({},x.end),O=[],t[b][1].end.offset-t[b][1].start.offset&&(O=push(O,[["enter",t[b][1],i],["exit",t[b][1],i]])),O=push(O,[["enter",_,i],["enter",w,i],["exit",w,i],["enter",C,i]]),O=push(O,resolveAll(i.parser.constructs.insideSpan.null,t.slice(b+1,P),i)),O=push(O,[["exit",C,i],["enter",x,i],["exit",x,i],["exit",_,i]]),t[P][1].end.offset-t[P][1].start.offset?(k=2,O=push(O,[["enter",t[P][1],i],["exit",t[P][1],i]])):k=0,splice(t,b-1,P-b+3,O),P=b+O.length-k-2;break}P=-1;for(;++P<t.length;)"attentionSequence"===t[P][1].type&&(t[P][1].type="data");return t}};function movePoint(t,i){t.column+=i,t.offset+=i,t._bufferIndex+=i}const ke={name:"autolink",tokenize:function tokenizeAutolink(t,i,b){let _=0;return function start(i){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(i),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),open};function open(i){return A(i)?(t.consume(i),schemeOrEmailAtext):emailAtext(i)}function schemeOrEmailAtext(t){return 43===t||45===t||46===t||R(t)?(_=1,schemeInsideOrEmailAtext(t)):emailAtext(t)}function schemeInsideOrEmailAtext(i){return 58===i?(t.consume(i),_=0,urlInside):(43===i||45===i||46===i||R(i))&&_++<32?(t.consume(i),schemeInsideOrEmailAtext):(_=0,emailAtext(i))}function urlInside(_){return 62===_?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(_),t.exit("autolinkMarker"),t.exit("autolink"),i):null===_||32===_||60===_||asciiControl(_)?b(_):(t.consume(_),urlInside)}function emailAtext(i){return 64===i?(t.consume(i),emailAtSignOrDot):D(i)?(t.consume(i),emailAtext):b(i)}function emailAtSignOrDot(t){return R(t)?emailLabel(t):b(t)}function emailLabel(b){return 46===b?(t.consume(b),_=0,emailAtSignOrDot):62===b?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(b),t.exit("autolinkMarker"),t.exit("autolink"),i):emailValue(b)}function emailValue(i){if((45===i||R(i))&&_++<63){const b=45===i?emailValue:emailLabel;return t.consume(i),b}return b(i)}}};const Pe={name:"htmlText",tokenize:function tokenizeHtmlText(t,i,b){const _=this;let C,w,x;return function start(i){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(i),open};function open(i){return 33===i?(t.consume(i),declarationOpen):47===i?(t.consume(i),tagCloseStart):63===i?(t.consume(i),instruction):A(i)?(t.consume(i),tagOpen):b(i)}function declarationOpen(i){return 45===i?(t.consume(i),commentOpenInside):91===i?(t.consume(i),w=0,cdataOpenInside):A(i)?(t.consume(i),declaration):b(i)}function commentOpenInside(i){return 45===i?(t.consume(i),commentEnd):b(i)}function comment(i){return null===i?b(i):45===i?(t.consume(i),commentClose):markdownLineEnding(i)?(x=comment,lineEndingBefore(i)):(t.consume(i),comment)}function commentClose(i){return 45===i?(t.consume(i),commentEnd):comment(i)}function commentEnd(t){return 62===t?end(t):45===t?commentClose(t):comment(t)}function cdataOpenInside(i){const _="CDATA[";return i===_.charCodeAt(w++)?(t.consume(i),6===w?cdata:cdataOpenInside):b(i)}function cdata(i){return null===i?b(i):93===i?(t.consume(i),cdataClose):markdownLineEnding(i)?(x=cdata,lineEndingBefore(i)):(t.consume(i),cdata)}function cdataClose(i){return 93===i?(t.consume(i),cdataEnd):cdata(i)}function cdataEnd(i){return 62===i?end(i):93===i?(t.consume(i),cdataEnd):cdata(i)}function declaration(i){return null===i||62===i?end(i):markdownLineEnding(i)?(x=declaration,lineEndingBefore(i)):(t.consume(i),declaration)}function instruction(i){return null===i?b(i):63===i?(t.consume(i),instructionClose):markdownLineEnding(i)?(x=instruction,lineEndingBefore(i)):(t.consume(i),instruction)}function instructionClose(t){return 62===t?end(t):instruction(t)}function tagCloseStart(i){return A(i)?(t.consume(i),tagClose):b(i)}function tagClose(i){return 45===i||R(i)?(t.consume(i),tagClose):tagCloseBetween(i)}function tagCloseBetween(i){return markdownLineEnding(i)?(x=tagCloseBetween,lineEndingBefore(i)):markdownSpace(i)?(t.consume(i),tagCloseBetween):end(i)}function tagOpen(i){return 45===i||R(i)?(t.consume(i),tagOpen):47===i||62===i||markdownLineEndingOrSpace(i)?tagOpenBetween(i):b(i)}function tagOpenBetween(i){return 47===i?(t.consume(i),end):58===i||95===i||A(i)?(t.consume(i),tagOpenAttributeName):markdownLineEnding(i)?(x=tagOpenBetween,lineEndingBefore(i)):markdownSpace(i)?(t.consume(i),tagOpenBetween):end(i)}function tagOpenAttributeName(i){return 45===i||46===i||58===i||95===i||R(i)?(t.consume(i),tagOpenAttributeName):tagOpenAttributeNameAfter(i)}function tagOpenAttributeNameAfter(i){return 61===i?(t.consume(i),tagOpenAttributeValueBefore):markdownLineEnding(i)?(x=tagOpenAttributeNameAfter,lineEndingBefore(i)):markdownSpace(i)?(t.consume(i),tagOpenAttributeNameAfter):tagOpenBetween(i)}function tagOpenAttributeValueBefore(i){return null===i||60===i||61===i||62===i||96===i?b(i):34===i||39===i?(t.consume(i),C=i,tagOpenAttributeValueQuoted):markdownLineEnding(i)?(x=tagOpenAttributeValueBefore,lineEndingBefore(i)):markdownSpace(i)?(t.consume(i),tagOpenAttributeValueBefore):(t.consume(i),tagOpenAttributeValueUnquoted)}function tagOpenAttributeValueQuoted(i){return i===C?(t.consume(i),C=void 0,tagOpenAttributeValueQuotedAfter):null===i?b(i):markdownLineEnding(i)?(x=tagOpenAttributeValueQuoted,lineEndingBefore(i)):(t.consume(i),tagOpenAttributeValueQuoted)}function tagOpenAttributeValueUnquoted(i){return null===i||34===i||39===i||60===i||61===i||96===i?b(i):47===i||62===i||markdownLineEndingOrSpace(i)?tagOpenBetween(i):(t.consume(i),tagOpenAttributeValueUnquoted)}function tagOpenAttributeValueQuotedAfter(t){return 47===t||62===t||markdownLineEndingOrSpace(t)?tagOpenBetween(t):b(t)}function end(_){return 62===_?(t.consume(_),t.exit("htmlTextData"),t.exit("htmlText"),i):b(_)}function lineEndingBefore(i){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),lineEndingAfter}function lineEndingAfter(i){return markdownSpace(i)?factorySpace(t,lineEndingAfterPrefix,"linePrefix",_.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):lineEndingAfterPrefix(i)}function lineEndingAfterPrefix(i){return t.enter("htmlTextData"),x(i)}}};const Se={name:"labelStartLink",tokenize:function tokenizeLabelStartLink(t,i,b){const _=this;return function start(i){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(i),t.exit("labelMarker"),t.exit("labelLink"),after};function after(t){return 94===t&&"_hiddenFootnoteSupport"in _.parser.constructs?b(t):i(t)}},resolveAll:_e.resolveAll};const Ie={name:"hardBreakEscape",tokenize:function tokenizeHardBreakEscape(t,i,b){return function start(i){return t.enter("hardBreakEscape"),t.consume(i),after};function after(_){return markdownLineEnding(_)?(t.exit("hardBreakEscape"),i(_)):b(_)}}};const Te={name:"codeText",tokenize:function tokenizeCodeText(t,i,b){let _,C,w=0;return function start(i){return t.enter("codeText"),t.enter("codeTextSequence"),sequenceOpen(i)};function sequenceOpen(i){return 96===i?(t.consume(i),w++,sequenceOpen):(t.exit("codeTextSequence"),between(i))}function between(i){return null===i?b(i):32===i?(t.enter("space"),t.consume(i),t.exit("space"),between):96===i?(C=t.enter("codeTextSequence"),_=0,sequenceClose(i)):markdownLineEnding(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),between):(t.enter("codeTextData"),data(i))}function data(i){return null===i||32===i||96===i||markdownLineEnding(i)?(t.exit("codeTextData"),between(i)):(t.consume(i),data)}function sequenceClose(b){return 96===b?(t.consume(b),_++,sequenceClose):_===w?(t.exit("codeTextSequence"),t.exit("codeText"),i(b)):(C.type="codeTextData",data(b))}},resolve:function resolveCodeText(t){let i,b,_=t.length-4,C=3;if(!("lineEnding"!==t[C][1].type&&"space"!==t[C][1].type||"lineEnding"!==t[_][1].type&&"space"!==t[_][1].type))for(i=C;++i<_;)if("codeTextData"===t[i][1].type){t[C][1].type="codeTextPadding",t[_][1].type="codeTextPadding",C+=2,_-=2;break}i=C-1,_++;for(;++i<=_;)void 0===b?i!==_&&"lineEnding"!==t[i][1].type&&(b=i):i!==_&&"lineEnding"!==t[i][1].type||(t[b][1].type="codeTextData",i!==b+2&&(t[b][1].end=t[i-1][1].end,t.splice(b+2,i-b-2),_-=i-b-2,i=b+2),b=void 0);return t},previous:function previous(t){return 96!==t||"characterEscape"===this.events[this.events.length-1][1].type}};const je={42:J,43:J,45:J,48:J,49:J,50:J,51:J,52:J,53:J,54:J,55:J,56:J,57:J,62:ne},Me={91:re},Ae={[-2]:ae,[-1]:ae,32:ae},Re={35:le,42:Q,45:[ue,Q],60:de,61:ue,95:Q,96:he,126:he},De={38:ye,92:ve},Le={[-5]:be,[-4]:be,[-3]:be,33:Ee,38:ye,42:Oe,60:[ke,Pe],91:Se,92:[Ie,ve],93:_e,95:Oe,96:Te},Be={null:[Oe,K]},Fe={null:[42,95]},Ne={null:[]};function parse(t){const i=function combineExtensions(t){const i={};let b=-1;for(;++b<t.length;)syntaxExtension(i,t[b]);return i}([_,...(t||{}).extensions||[]]),b={defined:[],lazy:{},constructs:i,content:create(q),document:create(z),flow:create(Z),string:create(X),text:create($)};return b;function create(t){return function creator(i){return createTokenizer(b,t,i)}}}const We=/[\0\t\n\r]/g;function decodeNumericCharacterReference(t,i){const b=Number.parseInt(t,i);return b<9||11===b||b>13&&b<32||b>126&&b<160||b>55295&&b<57344||b>64975&&b<65008||65535==(65535&b)||65534==(65535&b)||b>1114111?"":String.fromCharCode(b)}const He=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function decode(t,i,b){if(i)return i;if(35===b.charCodeAt(0)){const t=b.charCodeAt(1),i=120===t||88===t;return decodeNumericCharacterReference(b.slice(i?2:1),i?16:10)}return decodeNamedCharacterReference(b)||t}const qe={}.hasOwnProperty,fromMarkdown=function(t,i,b){return"string"!=typeof i&&(b=i,i=void 0),function compiler(t){const i={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:opener(link),autolinkProtocol:onenterdata,autolinkEmail:onenterdata,atxHeading:opener(heading),blockQuote:opener(blockQuote),characterEscape:onenterdata,characterReference:onenterdata,codeFenced:opener(codeFlow),codeFencedFenceInfo:buffer,codeFencedFenceMeta:buffer,codeIndented:opener(codeFlow,buffer),codeText:opener(codeText,buffer),codeTextData:onenterdata,data:onenterdata,codeFlowValue:onenterdata,definition:opener(definition),definitionDestinationString:buffer,definitionLabelString:buffer,definitionTitleString:buffer,emphasis:opener(emphasis),hardBreakEscape:opener(hardBreak),hardBreakTrailing:opener(hardBreak),htmlFlow:opener(html,buffer),htmlFlowData:onenterdata,htmlText:opener(html,buffer),htmlTextData:onenterdata,image:opener(image),label:buffer,link:opener(link),listItem:opener(listItem),listItemValue:onenterlistitemvalue,listOrdered:opener(list,onenterlistordered),listUnordered:opener(list),paragraph:opener(paragraph),reference:onenterreference,referenceString:buffer,resourceDestinationString:buffer,resourceTitleString:buffer,setextHeading:opener(heading),strong:opener(strong),thematicBreak:opener(thematicBreak)},exit:{atxHeading:closer(),atxHeadingSequence:onexitatxheadingsequence,autolink:closer(),autolinkEmail:onexitautolinkemail,autolinkProtocol:onexitautolinkprotocol,blockQuote:closer(),characterEscapeValue:onexitdata,characterReferenceMarkerHexadecimal:onexitcharacterreferencemarker,characterReferenceMarkerNumeric:onexitcharacterreferencemarker,characterReferenceValue:onexitcharacterreferencevalue,codeFenced:closer(onexitcodefenced),codeFencedFence:onexitcodefencedfence,codeFencedFenceInfo:onexitcodefencedfenceinfo,codeFencedFenceMeta:onexitcodefencedfencemeta,codeFlowValue:onexitdata,codeIndented:closer(onexitcodeindented),codeText:closer(onexitcodetext),codeTextData:onexitdata,data:onexitdata,definition:closer(),definitionDestinationString:onexitdefinitiondestinationstring,definitionLabelString:onexitdefinitionlabelstring,definitionTitleString:onexitdefinitiontitlestring,emphasis:closer(),hardBreakEscape:closer(onexithardbreak),hardBreakTrailing:closer(onexithardbreak),htmlFlow:closer(onexithtmlflow),htmlFlowData:onexitdata,htmlText:closer(onexithtmltext),htmlTextData:onexitdata,image:closer(onexitimage),label:onexitlabel,labelText:onexitlabeltext,lineEnding:onexitlineending,link:closer(onexitlink),listItem:closer(),listOrdered:closer(),listUnordered:closer(),paragraph:closer(),referenceString:onexitreferencestring,resourceDestinationString:onexitresourcedestinationstring,resourceTitleString:onexitresourcetitlestring,resource:onexitresource,setextHeading:closer(onexitsetextheading),setextHeadingLineSequence:onexitsetextheadinglinesequence,setextHeadingText:onexitsetextheadingtext,strong:closer(),thematicBreak:closer()}};configure(i,(t||{}).mdastExtensions||[]);const b={};return compile;function compile(t){let b={type:"root",children:[]};const _={stack:[b],tokenStack:[],config:i,enter,exit,buffer,resume,setData,getData},C=[];let w=-1;for(;++w<t.length;)if("listOrdered"===t[w][1].type||"listUnordered"===t[w][1].type)if("enter"===t[w][0])C.push(w);else{w=prepareList(t,C.pop(),w)}for(w=-1;++w<t.length;){const b=i[t[w][0]];qe.call(b,t[w][1].type)&&b[t[w][1].type].call(Object.assign({sliceSerialize:t[w][2].sliceSerialize},_),t[w][1])}if(_.tokenStack.length>0){const t=_.tokenStack[_.tokenStack.length-1];(t[1]||defaultOnError).call(_,void 0,t[0])}for(b.position={start:lib_point(t.length>0?t[0][1].start:{line:1,column:1,offset:0}),end:lib_point(t.length>0?t[t.length-2][1].end:{line:1,column:1,offset:0})},w=-1;++w<i.transforms.length;)b=i.transforms[w](b)||b;return b}function prepareList(t,i,b){let _,C,w,x,E=i-1,O=-1,k=!1;for(;++E<=b;){const i=t[E];if("listUnordered"===i[1].type||"listOrdered"===i[1].type||"blockQuote"===i[1].type?("enter"===i[0]?O++:O--,x=void 0):"lineEndingBlank"===i[1].type?"enter"===i[0]&&(!_||x||O||w||(w=E),x=void 0):"linePrefix"===i[1].type||"listItemValue"===i[1].type||"listItemMarker"===i[1].type||"listItemPrefix"===i[1].type||"listItemPrefixWhitespace"===i[1].type||(x=void 0),!O&&"enter"===i[0]&&"listItemPrefix"===i[1].type||-1===O&&"exit"===i[0]&&("listUnordered"===i[1].type||"listOrdered"===i[1].type)){if(_){let x=E;for(C=void 0;x--;){const i=t[x];if("lineEnding"===i[1].type||"lineEndingBlank"===i[1].type){if("exit"===i[0])continue;C&&(t[C][1].type="lineEndingBlank",k=!0),i[1].type="lineEnding",C=x}else if("linePrefix"!==i[1].type&&"blockQuotePrefix"!==i[1].type&&"blockQuotePrefixWhitespace"!==i[1].type&&"blockQuoteMarker"!==i[1].type&&"listItemIndent"!==i[1].type)break}w&&(!C||w<C)&&(_._spread=!0),_.end=Object.assign({},C?t[C][1].start:i[1].end),t.splice(C||E,0,["exit",_,i[2]]),E++,b++}"listItemPrefix"===i[1].type&&(_={type:"listItem",_spread:!1,start:Object.assign({},i[1].start),end:void 0},t.splice(E,0,["enter",_,i[2]]),E++,b++,w=void 0,x=!0)}}return t[i][1]._spread=k,b}function setData(t,i){b[t]=i}function getData(t){return b[t]}function opener(t,i){return open;function open(b){enter.call(this,t(b),b),i&&i.call(this,b)}}function buffer(){this.stack.push({type:"fragment",children:[]})}function enter(t,i,b){return this.stack[this.stack.length-1].children.push(t),this.stack.push(t),this.tokenStack.push([i,b]),t.position={start:lib_point(i.start)},t}function closer(t){return close;function close(i){t&&t.call(this,i),exit.call(this,i)}}function exit(t,i){const b=this.stack.pop(),_=this.tokenStack.pop();if(!_)throw new Error("Cannot close `"+t.type+"` ("+stringifyPosition({start:t.start,end:t.end})+"): its not open");if(_[0].type!==t.type)if(i)i.call(this,t,_[0]);else{(_[1]||defaultOnError).call(this,t,_[0])}return b.position.end=lib_point(t.end),b}function resume(){return function lib_toString(t,i){const b=i||j;return one(t,"boolean"!=typeof b.includeImageAlt||b.includeImageAlt,"boolean"!=typeof b.includeHtml||b.includeHtml)}(this.stack.pop())}function onenterlistordered(){setData("expectingFirstListItemValue",!0)}function onenterlistitemvalue(t){if(getData("expectingFirstListItemValue")){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(t),10),setData("expectingFirstListItemValue")}}function onexitcodefencedfenceinfo(){const t=this.resume();this.stack[this.stack.length-1].lang=t}function onexitcodefencedfencemeta(){const t=this.resume();this.stack[this.stack.length-1].meta=t}function onexitcodefencedfence(){getData("flowCodeInside")||(this.buffer(),setData("flowCodeInside",!0))}function onexitcodefenced(){const t=this.resume();this.stack[this.stack.length-1].value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),setData("flowCodeInside")}function onexitcodeindented(){const t=this.resume();this.stack[this.stack.length-1].value=t.replace(/(\r?\n|\r)$/g,"")}function onexitdefinitionlabelstring(t){const i=this.resume(),b=this.stack[this.stack.length-1];b.label=i,b.identifier=normalizeIdentifier(this.sliceSerialize(t)).toLowerCase()}function onexitdefinitiontitlestring(){const t=this.resume();this.stack[this.stack.length-1].title=t}function onexitdefinitiondestinationstring(){const t=this.resume();this.stack[this.stack.length-1].url=t}function onexitatxheadingsequence(t){const i=this.stack[this.stack.length-1];if(!i.depth){const b=this.sliceSerialize(t).length;i.depth=b}}function onexitsetextheadingtext(){setData("setextHeadingSlurpLineEnding",!0)}function onexitsetextheadinglinesequence(t){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(t).charCodeAt(0)?1:2}function onexitsetextheading(){setData("setextHeadingSlurpLineEnding")}function onenterdata(t){const i=this.stack[this.stack.length-1];let b=i.children[i.children.length-1];b&&"text"===b.type||(b=text(),b.position={start:lib_point(t.start)},i.children.push(b)),this.stack.push(b)}function onexitdata(t){const i=this.stack.pop();i.value+=this.sliceSerialize(t),i.position.end=lib_point(t.end)}function onexitlineending(t){const b=this.stack[this.stack.length-1];if(getData("atHardBreak")){return b.children[b.children.length-1].position.end=lib_point(t.end),void setData("atHardBreak")}!getData("setextHeadingSlurpLineEnding")&&i.canContainEols.includes(b.type)&&(onenterdata.call(this,t),onexitdata.call(this,t))}function onexithardbreak(){setData("atHardBreak",!0)}function onexithtmlflow(){const t=this.resume();this.stack[this.stack.length-1].value=t}function onexithtmltext(){const t=this.resume();this.stack[this.stack.length-1].value=t}function onexitcodetext(){const t=this.resume();this.stack[this.stack.length-1].value=t}function onexitlink(){const t=this.stack[this.stack.length-1];if(getData("inReference")){const i=getData("referenceType")||"shortcut";t.type+="Reference",t.referenceType=i,delete t.url,delete t.title}else delete t.identifier,delete t.label;setData("referenceType")}function onexitimage(){const t=this.stack[this.stack.length-1];if(getData("inReference")){const i=getData("referenceType")||"shortcut";t.type+="Reference",t.referenceType=i,delete t.url,delete t.title}else delete t.identifier,delete t.label;setData("referenceType")}function onexitlabeltext(t){const i=this.sliceSerialize(t),b=this.stack[this.stack.length-2];b.label=function decodeString(t){return t.replace(He,decode)}(i),b.identifier=normalizeIdentifier(i).toLowerCase()}function onexitlabel(){const t=this.stack[this.stack.length-1],i=this.resume(),b=this.stack[this.stack.length-1];if(setData("inReference",!0),"link"===b.type){const i=t.children;b.children=i}else b.alt=i}function onexitresourcedestinationstring(){const t=this.resume();this.stack[this.stack.length-1].url=t}function onexitresourcetitlestring(){const t=this.resume();this.stack[this.stack.length-1].title=t}function onexitresource(){setData("inReference")}function onenterreference(){setData("referenceType","collapsed")}function onexitreferencestring(t){const i=this.resume(),b=this.stack[this.stack.length-1];b.label=i,b.identifier=normalizeIdentifier(this.sliceSerialize(t)).toLowerCase(),setData("referenceType","full")}function onexitcharacterreferencemarker(t){setData("characterReferenceType",t.type)}function onexitcharacterreferencevalue(t){const i=this.sliceSerialize(t),b=getData("characterReferenceType");let _;if(b)_=decodeNumericCharacterReference(i,"characterReferenceMarkerNumeric"===b?10:16),setData("characterReferenceType");else{_=decodeNamedCharacterReference(i)}const C=this.stack.pop();C.value+=_,C.position.end=lib_point(t.end)}function onexitautolinkprotocol(t){onexitdata.call(this,t);this.stack[this.stack.length-1].url=this.sliceSerialize(t)}function onexitautolinkemail(t){onexitdata.call(this,t);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(t)}function blockQuote(){return{type:"blockquote",children:[]}}function codeFlow(){return{type:"code",lang:null,meta:null,value:""}}function codeText(){return{type:"inlineCode",value:""}}function definition(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function emphasis(){return{type:"emphasis",children:[]}}function heading(){return{type:"heading",depth:void 0,children:[]}}function hardBreak(){return{type:"break"}}function html(){return{type:"html",value:""}}function image(){return{type:"image",title:null,url:"",alt:null}}function link(){return{type:"link",title:null,url:"",children:[]}}function list(t){return{type:"list",ordered:"listOrdered"===t.type,start:null,spread:t._spread,children:[]}}function listItem(t){return{type:"listItem",spread:t._spread,checked:null,children:[]}}function paragraph(){return{type:"paragraph",children:[]}}function strong(){return{type:"strong",children:[]}}function text(){return{type:"text",value:""}}function thematicBreak(){return{type:"thematicBreak"}}}(b)(function postprocess(t){for(;!subtokenize(t););return t}(parse(b).document().write(function preprocess(){let t,i=1,b="",_=!0;return function preprocessor(C,w,x){const E=[];let O,k,P,S,I;for(C=b+C.toString(w),P=0,b="",_&&(65279===C.charCodeAt(0)&&P++,_=void 0);P<C.length;){if(We.lastIndex=P,O=We.exec(C),S=O&&void 0!==O.index?O.index:C.length,I=C.charCodeAt(S),!O){b=C.slice(P);break}if(10===I&&P===S&&t)E.push(-3),t=void 0;else switch(t&&(E.push(-5),t=void 0),P<S&&(E.push(C.slice(P,S)),i+=S-P),I){case 0:E.push(65533),i++;break;case 9:for(k=4*Math.ceil(i/4),E.push(-2);i++<k;)E.push(-1);break;case 10:E.push(-4),i=1;break;default:t=!0,i=1}P=S+1}return x&&(t&&E.push(-5),b&&E.push(b),E.push(null)),E}}()(t,i,!0))))};function lib_point(t){return{line:t.line,column:t.column,offset:t.offset}}function configure(t,i){let b=-1;for(;++b<i.length;){const _=i[b];Array.isArray(_)?configure(t,_):extension(t,_)}}function extension(t,i){let b;for(b in i)if(qe.call(i,b))if("canContainEols"===b){const _=i[b];_&&t[b].push(..._)}else if("transforms"===b){const _=i[b];_&&t[b].push(..._)}else if("enter"===b||"exit"===b){const _=i[b];_&&Object.assign(t[b],_)}}function defaultOnError(t,i){throw t?new Error("Cannot close `"+t.type+"` ("+stringifyPosition({start:t.start,end:t.end})+"): a different token (`"+i.type+"`, "+stringifyPosition({start:i.start,end:i.end})+") is open"):new Error("Cannot close document, a token (`"+i.type+"`, "+stringifyPosition({start:i.start,end:i.end})+") is still open")}function remarkParse(t){Object.assign(this,{Parser:i=>{const b=this.data("settings");return fromMarkdown(i,Object.assign({},b,t,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function normalizeUri(t){const i=[];let b=-1,_=0,C=0;for(;++b<t.length;){const w=t.charCodeAt(b);let x="";if(37===w&&R(t.charCodeAt(b+1))&&R(t.charCodeAt(b+2)))C=2;else if(w<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(w))||(x=String.fromCharCode(w));else if(w>55295&&w<57344){const i=t.charCodeAt(b+1);w<56320&&i>56319&&i<57344?(x=String.fromCharCode(w,i),C=1):x=""}else x=String.fromCharCode(w);x&&(i.push(t.slice(_,b),encodeURIComponent(x)),_=b+C+1,x=""),C&&(b+=C,C=0)}return i.join("")+t.slice(_)}const convert=function(t){if(null==t)return ok;if("string"==typeof t)return function typeFactory(t){return castFactory(type);function type(i){return i&&i.type===t}}(t);if("object"==typeof t)return Array.isArray(t)?function anyFactory(t){const i=[];let b=-1;for(;++b<t.length;)i[b]=convert(t[b]);return castFactory(any);function any(...t){let b=-1;for(;++b<i.length;)if(i[b].call(this,...t))return!0;return!1}}(t):function propsFactory(t){return castFactory(all);function all(i){let b;for(b in t)if(i[b]!==t[b])return!1;return!0}}(t);if("function"==typeof t)return castFactory(t);throw new Error("Expected function, string, or object as test")};function castFactory(t){return function assertion(i,...b){return Boolean(i&&"object"==typeof i&&"type"in i&&Boolean(t.call(this,i,...b)))}}function ok(){return!0}const visitParents=function(t,i,b,_){"function"==typeof i&&"function"!=typeof b&&(_=b,b=i,i=null);const C=convert(i),w=_?-1:1;!function factory(t,x,E){const O=t&&"object"==typeof t?t:{};if("string"==typeof O.type){const i="string"==typeof O.tagName?O.tagName:"string"==typeof O.name?O.name:void 0;Object.defineProperty(visit,"name",{value:"node ("+t.type+(i?"<"+i+">":"")+")"})}return visit;function visit(){let O,k,P,S=[];if((!i||C(t,x,E[E.length-1]||null))&&(S=function toResult(t){if(Array.isArray(t))return t;if("number"==typeof t)return[true,t];return[t]}(b(t,E)),false===S[0]))return S;if(t.children&&"skip"!==S[0])for(k=(_?t.children.length:-1)+w,P=E.concat(t);k>-1&&k<t.children.length;){if(O=factory(t.children[k],k,P)(),false===O[0])return O;k="number"==typeof O[1]?O[1]:k+w}return S}}(t,void 0,[])()};const visit=function(t,i,b,_){"function"==typeof i&&"function"!=typeof b&&(_=b,b=i,i=null),visitParents(t,i,(function overload(t,i){const _=i[i.length-1];return b(t,_?_.children.indexOf(t):null,_)}),_)},ze=unist_util_position_lib_point("start"),Ve=unist_util_position_lib_point("end");function unist_util_position_lib_point(t){return function point(i){const b=i&&i.position&&i.position[t]||{};return{line:b.line||null,column:b.column||null,offset:b.offset>-1?b.offset:null}}}const Ge={}.hasOwnProperty;function clean(t){return String(t||"").toUpperCase()}function footnoteReference(t,i){const b=String(i.identifier).toUpperCase(),_=normalizeUri(b.toLowerCase()),C=t.footnoteOrder.indexOf(b);let w;-1===C?(t.footnoteOrder.push(b),t.footnoteCounts[b]=1,w=t.footnoteOrder.length):(t.footnoteCounts[b]++,w=C+1);const x=t.footnoteCounts[b],E={type:"element",tagName:"a",properties:{href:"#"+t.clobberPrefix+"fn-"+_,id:t.clobberPrefix+"fnref-"+_+(x>1?"-"+x:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(w)}]};t.patch(i,E);const O={type:"element",tagName:"sup",properties:{},children:[E]};return t.patch(i,O),t.applyData(i,O)}function revert(t,i){const b=i.referenceType;let _="]";if("collapsed"===b?_+="[]":"full"===b&&(_+="["+(i.label||i.identifier)+"]"),"imageReference"===i.type)return{type:"text",value:"!["+i.alt+_};const C=t.all(i),w=C[0];w&&"text"===w.type?w.value="["+w.value:C.unshift({type:"text",value:"["});const x=C[C.length-1];return x&&"text"===x.type?x.value+=_:C.push({type:"text",value:_}),C}function listItemLoose(t){const i=t.spread;return null==i?t.children.length>1:i}const Ue=9,Ye=32;function trimLines(t){const i=String(t),b=/\r?\n|\r/g;let _=b.exec(i),C=0;const w=[];for(;_;)w.push(trimLine(i.slice(C,_.index),C>0,!0),_[0]),C=_.index+_[0].length,_=b.exec(i);return w.push(trimLine(i.slice(C),C>0,!1)),w.join("")}function trimLine(t,i,b){let _=0,C=t.length;if(i){let i=t.codePointAt(_);for(;i===Ue||i===Ye;)_++,i=t.codePointAt(_)}if(b){let i=t.codePointAt(C-1);for(;i===Ue||i===Ye;)C--,i=t.codePointAt(C-1)}return C>_?t.slice(_,C):""}const Ze={blockquote:function blockquote(t,i){const b={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(i),!0)};return t.patch(i,b),t.applyData(i,b)},break:function hardBreak(t,i){const b={type:"element",tagName:"br",properties:{},children:[]};return t.patch(i,b),[t.applyData(i,b),{type:"text",value:"\n"}]},code:function code(t,i){const b=i.value?i.value+"\n":"",_=i.lang?i.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,C={};_&&(C.className=["language-"+_]);let w={type:"element",tagName:"code",properties:C,children:[{type:"text",value:b}]};return i.meta&&(w.data={meta:i.meta}),t.patch(i,w),w=t.applyData(i,w),w={type:"element",tagName:"pre",properties:{},children:[w]},t.patch(i,w),w},delete:function strikethrough(t,i){const b={type:"element",tagName:"del",properties:{},children:t.all(i)};return t.patch(i,b),t.applyData(i,b)},emphasis:function emphasis(t,i){const b={type:"element",tagName:"em",properties:{},children:t.all(i)};return t.patch(i,b),t.applyData(i,b)},footnoteReference,footnote:function footnote(t,i){const b=t.footnoteById;let _=1;for(;_ in b;)_++;const C=String(_);return b[C]={type:"footnoteDefinition",identifier:C,children:[{type:"paragraph",children:i.children}],position:i.position},footnoteReference(t,{type:"footnoteReference",identifier:C,position:i.position})},heading:function heading(t,i){const b={type:"element",tagName:"h"+i.depth,properties:{},children:t.all(i)};return t.patch(i,b),t.applyData(i,b)},html:function html(t,i){if(t.dangerous){const b={type:"raw",value:i.value};return t.patch(i,b),t.applyData(i,b)}return null},imageReference:function imageReference(t,i){const b=t.definition(i.identifier);if(!b)return revert(t,i);const _={src:normalizeUri(b.url||""),alt:i.alt};null!==b.title&&void 0!==b.title&&(_.title=b.title);const C={type:"element",tagName:"img",properties:_,children:[]};return t.patch(i,C),t.applyData(i,C)},image:function image_image(t,i){const b={src:normalizeUri(i.url)};null!==i.alt&&void 0!==i.alt&&(b.alt=i.alt),null!==i.title&&void 0!==i.title&&(b.title=i.title);const _={type:"element",tagName:"img",properties:b,children:[]};return t.patch(i,_),t.applyData(i,_)},inlineCode:function inlineCode(t,i){const b={type:"text",value:i.value.replace(/\r?\n|\r/g," ")};t.patch(i,b);const _={type:"element",tagName:"code",properties:{},children:[b]};return t.patch(i,_),t.applyData(i,_)},linkReference:function linkReference(t,i){const b=t.definition(i.identifier);if(!b)return revert(t,i);const _={href:normalizeUri(b.url||"")};null!==b.title&&void 0!==b.title&&(_.title=b.title);const C={type:"element",tagName:"a",properties:_,children:t.all(i)};return t.patch(i,C),t.applyData(i,C)},link:function link_link(t,i){const b={href:normalizeUri(i.url)};null!==i.title&&void 0!==i.title&&(b.title=i.title);const _={type:"element",tagName:"a",properties:b,children:t.all(i)};return t.patch(i,_),t.applyData(i,_)},listItem:function listItem(t,i,b){const _=t.all(i),C=b?function listLoose(t){let i=!1;if("list"===t.type){i=t.spread||!1;const b=t.children;let _=-1;for(;!i&&++_<b.length;)i=listItemLoose(b[_])}return i}(b):listItemLoose(i),w={},x=[];if("boolean"==typeof i.checked){const t=_[0];let b;t&&"element"===t.type&&"p"===t.tagName?b=t:(b={type:"element",tagName:"p",properties:{},children:[]},_.unshift(b)),b.children.length>0&&b.children.unshift({type:"text",value:" "}),b.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:i.checked,disabled:!0},children:[]}),w.className=["task-list-item"]}let E=-1;for(;++E<_.length;){const t=_[E];(C||0!==E||"element"!==t.type||"p"!==t.tagName)&&x.push({type:"text",value:"\n"}),"element"!==t.type||"p"!==t.tagName||C?x.push(t):x.push(...t.children)}const O=_[_.length-1];O&&(C||"element"!==O.type||"p"!==O.tagName)&&x.push({type:"text",value:"\n"});const k={type:"element",tagName:"li",properties:w,children:x};return t.patch(i,k),t.applyData(i,k)},list:function list_list(t,i){const b={},_=t.all(i);let C=-1;for("number"==typeof i.start&&1!==i.start&&(b.start=i.start);++C<_.length;){const t=_[C];if("element"===t.type&&"li"===t.tagName&&t.properties&&Array.isArray(t.properties.className)&&t.properties.className.includes("task-list-item")){b.className=["contains-task-list"];break}}const w={type:"element",tagName:i.ordered?"ol":"ul",properties:b,children:t.wrap(_,!0)};return t.patch(i,w),t.applyData(i,w)},paragraph:function paragraph(t,i){const b={type:"element",tagName:"p",properties:{},children:t.all(i)};return t.patch(i,b),t.applyData(i,b)},root:function root(t,i){const b={type:"root",children:t.wrap(t.all(i))};return t.patch(i,b),t.applyData(i,b)},strong:function strong(t,i){const b={type:"element",tagName:"strong",properties:{},children:t.all(i)};return t.patch(i,b),t.applyData(i,b)},table:function table(t,i){const b=t.all(i),_=b.shift(),C=[];if(_){const b={type:"element",tagName:"thead",properties:{},children:t.wrap([_],!0)};t.patch(i.children[0],b),C.push(b)}if(b.length>0){const _={type:"element",tagName:"tbody",properties:{},children:t.wrap(b,!0)},w=ze(i.children[1]),x=Ve(i.children[i.children.length-1]);w.line&&x.line&&(_.position={start:w,end:x}),C.push(_)}const w={type:"element",tagName:"table",properties:{},children:t.wrap(C,!0)};return t.patch(i,w),t.applyData(i,w)},tableCell:function tableCell(t,i){const b={type:"element",tagName:"td",properties:{},children:t.all(i)};return t.patch(i,b),t.applyData(i,b)},tableRow:function tableRow(t,i,b){const _=b?b.children:void 0,C=0===(_?_.indexOf(i):1)?"th":"td",w=b&&"table"===b.type?b.align:void 0,x=w?w.length:i.children.length;let E=-1;const O=[];for(;++E<x;){const b=i.children[E],_={},x=w?w[E]:void 0;x&&(_.align=x);let k={type:"element",tagName:C,properties:_,children:[]};b&&(k.children=t.all(b),t.patch(b,k),k=t.applyData(i,k)),O.push(k)}const k={type:"element",tagName:"tr",properties:{},children:t.wrap(O,!0)};return t.patch(i,k),t.applyData(i,k)},text:function handlers_text_text(t,i){const b={type:"text",value:trimLines(String(i.value))};return t.patch(i,b),t.applyData(i,b)},thematicBreak:function thematic_break_thematicBreak(t,i){const b={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(i,b),t.applyData(i,b)},toml:ignore,yaml:ignore,definition:ignore,footnoteDefinition:ignore};function ignore(){return null}const Ke={}.hasOwnProperty;function createState(t,i){const b=i||{},_=b.allowDangerousHtml||!1,C={};return state.dangerous=_,state.clobberPrefix=void 0===b.clobberPrefix||null===b.clobberPrefix?"user-content-":b.clobberPrefix,state.footnoteLabel=b.footnoteLabel||"Footnotes",state.footnoteLabelTagName=b.footnoteLabelTagName||"h2",state.footnoteLabelProperties=b.footnoteLabelProperties||{className:["sr-only"]},state.footnoteBackLabel=b.footnoteBackLabel||"Back to content",state.unknownHandler=b.unknownHandler,state.passThrough=b.passThrough,state.handlers={...Ze,...b.handlers},state.definition=function definitions(t){const i=Object.create(null);if(!t||!t.type)throw new Error("mdast-util-definitions expected node");return visit(t,"definition",(t=>{const b=clean(t.identifier);b&&!Ge.call(i,b)&&(i[b]=t)})),function definition(t){const b=clean(t);return b&&Ge.call(i,b)?i[b]:null}}(t),state.footnoteById=C,state.footnoteOrder=[],state.footnoteCounts={},state.patch=patch,state.applyData=applyData,state.one=function oneBound(t,i){return state_one(state,t,i)},state.all=function allBound(t){return state_all(state,t)},state.wrap=state_wrap,state.augment=augment,visit(t,"footnoteDefinition",(t=>{const i=String(t.identifier).toUpperCase();Ke.call(C,i)||(C[i]=t)})),state;function augment(t,i){if(t&&"data"in t&&t.data){const b=t.data;b.hName&&("element"!==i.type&&(i={type:"element",tagName:"",properties:{},children:[]}),i.tagName=b.hName),"element"===i.type&&b.hProperties&&(i.properties={...i.properties,...b.hProperties}),"children"in i&&i.children&&b.hChildren&&(i.children=b.hChildren)}if(t){const b="type"in t?t:{position:t};(function generated(t){return!(t&&t.position&&t.position.start&&t.position.start.line&&t.position.start.column&&t.position.end&&t.position.end.line&&t.position.end.column)})(b)||(i.position={start:ze(b),end:Ve(b)})}return i}function state(t,i,b,_){return Array.isArray(b)&&(_=b,b={}),augment(t,{type:"element",tagName:i,properties:b||{},children:_||[]})}}function patch(t,i){t.position&&(i.position=function lib_position(t){return{start:ze(t),end:Ve(t)}}(t))}function applyData(t,i){let b=i;if(t&&t.data){const i=t.data.hName,_=t.data.hChildren,C=t.data.hProperties;"string"==typeof i&&("element"===b.type?b.tagName=i:b={type:"element",tagName:i,properties:{},children:[]}),"element"===b.type&&C&&(b.properties={...b.properties,...C}),"children"in b&&b.children&&null!=_&&(b.children=_)}return b}function state_one(t,i,b){const _=i&&i.type;if(!_)throw new Error("Expected node, got `"+i+"`");return Ke.call(t.handlers,_)?t.handlers[_](t,i,b):t.passThrough&&t.passThrough.includes(_)?"children"in i?{...i,children:state_all(t,i)}:i:t.unknownHandler?t.unknownHandler(t,i,b):function defaultUnknownHandler(t,i){const b=i.data||{},_=!("value"in i)||Ke.call(b,"hProperties")||Ke.call(b,"hChildren")?{type:"element",tagName:"div",properties:{},children:state_all(t,i)}:{type:"text",value:i.value};return t.patch(i,_),t.applyData(i,_)}(t,i)}function state_all(t,i){const b=[];if("children"in i){const _=i.children;let C=-1;for(;++C<_.length;){const w=state_one(t,_[C],i);if(w){if(C&&"break"===_[C-1].type&&(Array.isArray(w)||"text"!==w.type||(w.value=w.value.replace(/^\s+/,"")),!Array.isArray(w)&&"element"===w.type)){const t=w.children[0];t&&"text"===t.type&&(t.value=t.value.replace(/^\s+/,""))}Array.isArray(w)?b.push(...w):b.push(w)}}}return b}function state_wrap(t,i){const b=[];let _=-1;for(i&&b.push({type:"text",value:"\n"});++_<t.length;)_&&b.push({type:"text",value:"\n"}),b.push(t[_]);return i&&t.length>0&&b.push({type:"text",value:"\n"}),b}function toHast(t,i){const b=createState(t,i),_=b.one(t,null),C=function footer(t){const i=[];let b=-1;for(;++b<t.footnoteOrder.length;){const _=t.footnoteById[t.footnoteOrder[b]];if(!_)continue;const C=t.all(_),w=String(_.identifier).toUpperCase(),x=normalizeUri(w.toLowerCase());let E=0;const O=[];for(;++E<=t.footnoteCounts[w];){const i={type:"element",tagName:"a",properties:{href:"#"+t.clobberPrefix+"fnref-"+x+(E>1?"-"+E:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:t.footnoteBackLabel},children:[{type:"text",value:"↩"}]};E>1&&i.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(E)}]}),O.length>0&&O.push({type:"text",value:" "}),O.push(i)}const k=C[C.length-1];if(k&&"element"===k.type&&"p"===k.tagName){const t=k.children[k.children.length-1];t&&"text"===t.type?t.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...O)}else C.push(...O);const P={type:"element",tagName:"li",properties:{id:t.clobberPrefix+"fn-"+x},children:t.wrap(C,!0)};t.patch(_,P),i.push(P)}if(0!==i.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:t.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(t.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:t.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:t.wrap(i,!0)},{type:"text",value:"\n"}]}}(b);return C&&_.children.push({type:"text",value:"\n"},C),Array.isArray(_)?{type:"root",children:_}:_}const lib=function(t,i){return t&&"run"in t?function bridge(t,i){return(b,_,C)=>{t.run(toHast(b,i),_,(t=>{C(t)}))}}(t,i):function mutate(t){return i=>toHast(i,t)}(t||i)};var Xe=b(23615);class Schema{constructor(t,i,b){this.property=t,this.normal=i,b&&(this.space=b)}}function merge(t,i){const b={},_={};let C=-1;for(;++C<t.length;)Object.assign(b,t[C].property),Object.assign(_,t[C].normal);return new Schema(b,_,i)}function normalize_normalize(t){return t.toLowerCase()}Schema.prototype.property={},Schema.prototype.normal={},Schema.prototype.space=null;class Info{constructor(t,i){this.property=t,this.attribute=i}}Info.prototype.space=null,Info.prototype.boolean=!1,Info.prototype.booleanish=!1,Info.prototype.overloadedBoolean=!1,Info.prototype.number=!1,Info.prototype.commaSeparated=!1,Info.prototype.spaceSeparated=!1,Info.prototype.commaOrSpaceSeparated=!1,Info.prototype.mustUseProperty=!1,Info.prototype.defined=!1;let $e=0;const Qe=increment(),Je=increment(),et=increment(),tt=increment(),nt=increment(),rt=increment(),ot=increment();function increment(){return 2**++$e}const at=Object.keys(C);class DefinedInfo extends Info{constructor(t,i,b,_){let w=-1;if(super(t,i),mark(this,"space",_),"number"==typeof b)for(;++w<at.length;){const t=at[w];mark(this,at[w],(b&C[t])===C[t])}}}function mark(t,i,b){b&&(t[i]=b)}DefinedInfo.prototype.defined=!0;const it={}.hasOwnProperty;function create(t){const i={},b={};let _;for(_ in t.properties)if(it.call(t.properties,_)){const C=t.properties[_],w=new DefinedInfo(_,t.transform(t.attributes||{},_),C,t.space);t.mustUseProperty&&t.mustUseProperty.includes(_)&&(w.mustUseProperty=!0),i[_]=w,b[normalize_normalize(_)]=_,b[normalize_normalize(w.attribute)]=_}return new Schema(i,b,t.space)}const lt=create({space:"xlink",transform:(t,i)=>"xlink:"+i.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),ut=create({space:"xml",transform:(t,i)=>"xml:"+i.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function caseSensitiveTransform(t,i){return i in t?t[i]:i}function caseInsensitiveTransform(t,i){return caseSensitiveTransform(t,i.toLowerCase())}const ct=create({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:caseInsensitiveTransform,properties:{xmlns:null,xmlnsXLink:null}}),st=create({transform:(t,i)=>"role"===i?i:"aria-"+i.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Je,ariaAutoComplete:null,ariaBusy:Je,ariaChecked:Je,ariaColCount:tt,ariaColIndex:tt,ariaColSpan:tt,ariaControls:nt,ariaCurrent:null,ariaDescribedBy:nt,ariaDetails:null,ariaDisabled:Je,ariaDropEffect:nt,ariaErrorMessage:null,ariaExpanded:Je,ariaFlowTo:nt,ariaGrabbed:Je,ariaHasPopup:null,ariaHidden:Je,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:nt,ariaLevel:tt,ariaLive:null,ariaModal:Je,ariaMultiLine:Je,ariaMultiSelectable:Je,ariaOrientation:null,ariaOwns:nt,ariaPlaceholder:null,ariaPosInSet:tt,ariaPressed:Je,ariaReadOnly:Je,ariaRelevant:null,ariaRequired:Je,ariaRoleDescription:nt,ariaRowCount:tt,ariaRowIndex:tt,ariaRowSpan:tt,ariaSelected:Je,ariaSetSize:tt,ariaSort:null,ariaValueMax:tt,ariaValueMin:tt,ariaValueNow:tt,ariaValueText:null,role:null}}),dt=create({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:caseInsensitiveTransform,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:rt,acceptCharset:nt,accessKey:nt,action:null,allow:null,allowFullScreen:Qe,allowPaymentRequest:Qe,allowUserMedia:Qe,alt:null,as:null,async:Qe,autoCapitalize:null,autoComplete:nt,autoFocus:Qe,autoPlay:Qe,capture:Qe,charSet:null,checked:Qe,cite:null,className:nt,cols:tt,colSpan:null,content:null,contentEditable:Je,controls:Qe,controlsList:nt,coords:tt|rt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Qe,defer:Qe,dir:null,dirName:null,disabled:Qe,download:et,draggable:Je,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Qe,formTarget:null,headers:nt,height:tt,hidden:Qe,high:tt,href:null,hrefLang:null,htmlFor:nt,httpEquiv:nt,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:Qe,itemId:null,itemProp:nt,itemRef:nt,itemScope:Qe,itemType:nt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Qe,low:tt,manifest:null,max:null,maxLength:tt,media:null,method:null,min:null,minLength:tt,multiple:Qe,muted:Qe,name:null,nonce:null,noModule:Qe,noValidate:Qe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Qe,optimum:tt,pattern:null,ping:nt,placeholder:null,playsInline:Qe,poster:null,preload:null,readOnly:Qe,referrerPolicy:null,rel:nt,required:Qe,reversed:Qe,rows:tt,rowSpan:tt,sandbox:nt,scope:null,scoped:Qe,seamless:Qe,selected:Qe,shape:null,size:tt,sizes:null,slot:null,span:tt,spellCheck:Je,src:null,srcDoc:null,srcLang:null,srcSet:null,start:tt,step:null,style:null,tabIndex:tt,target:null,title:null,translate:null,type:null,typeMustMatch:Qe,useMap:null,value:Je,width:tt,wrap:null,align:null,aLink:null,archive:nt,axis:null,background:null,bgColor:null,border:tt,borderColor:null,bottomMargin:tt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Qe,declare:Qe,event:null,face:null,frame:null,frameBorder:null,hSpace:tt,leftMargin:tt,link:null,longDesc:null,lowSrc:null,marginHeight:tt,marginWidth:tt,noResize:Qe,noHref:Qe,noShade:Qe,noWrap:Qe,object:null,profile:null,prompt:null,rev:null,rightMargin:tt,rules:null,scheme:null,scrolling:Je,standby:null,summary:null,text:null,topMargin:tt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:tt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Qe,disableRemotePlayback:Qe,prefix:null,property:null,results:tt,security:null,unselectable:null}}),ft=create({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:caseSensitiveTransform,properties:{about:ot,accentHeight:tt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:tt,amplitude:tt,arabicForm:null,ascent:tt,attributeName:null,attributeType:null,azimuth:tt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:tt,by:null,calcMode:null,capHeight:tt,className:nt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:tt,diffuseConstant:tt,direction:null,display:null,dur:null,divisor:tt,dominantBaseline:null,download:Qe,dx:null,dy:null,edgeMode:null,editable:null,elevation:tt,enableBackground:null,end:null,event:null,exponent:tt,externalResourcesRequired:null,fill:null,fillOpacity:tt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:rt,g2:rt,glyphName:rt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:tt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:tt,horizOriginX:tt,horizOriginY:tt,id:null,ideographic:tt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:tt,k:tt,k1:tt,k2:tt,k3:tt,k4:tt,kernelMatrix:ot,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:tt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:tt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:tt,overlineThickness:tt,paintOrder:null,panose1:null,path:null,pathLength:tt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:nt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:tt,pointsAtY:tt,pointsAtZ:tt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ot,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ot,rev:ot,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ot,requiredFeatures:ot,requiredFonts:ot,requiredFormats:ot,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:tt,specularExponent:tt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:tt,strikethroughThickness:tt,string:null,stroke:null,strokeDashArray:ot,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:tt,strokeOpacity:tt,strokeWidth:null,style:null,surfaceScale:tt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ot,tabIndex:tt,tableValues:null,target:null,targetX:tt,targetY:tt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ot,to:null,transform:null,u1:null,u2:null,underlinePosition:tt,underlineThickness:tt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:tt,values:null,vAlphabetic:tt,vMathematical:tt,vectorEffect:null,vHanging:tt,vIdeographic:tt,version:null,vertAdvY:tt,vertOriginX:tt,vertOriginY:tt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:tt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),pt=merge([ut,lt,ct,st,dt],"html"),mt=merge([ut,lt,ct,st,ft],"svg");function rehypeFilter(t){if(t.allowedElements&&t.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(t.allowedElements||t.disallowedElements||t.allowElement)return i=>{visit(i,"element",((i,b,_)=>{const C=_;let w;if(t.allowedElements?w=!t.allowedElements.includes(i.tagName):t.disallowedElements&&(w=t.disallowedElements.includes(i.tagName)),!w&&t.allowElement&&"number"==typeof b&&(w=!t.allowElement(i,b,C)),w&&"number"==typeof b)return t.unwrapDisallowed&&i.children?C.children.splice(b,1,...i.children):C.children.splice(b,1),b}))}}var ht=b(19185);function whitespace(t){const i=t&&"object"==typeof t&&"text"===t.type?t.value||"":t;return"string"==typeof i&&""===i.replace(/[ \t\n\f\r]/g,"")}const gt=/^data[-\w.:]+$/i,yt=/-[a-z]/g,vt=/[A-Z]/g;function kebab(t){return"-"+t.toLowerCase()}function camelcase(t){return t.charAt(1).toUpperCase()}const bt={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};const _t=b(55862),Ct={}.hasOwnProperty,wt=new Set(["table","thead","tbody","tfoot","tr"]);function childrenToReact(t,i){const b=[];let _,C=-1;for(;++C<i.children.length;)_=i.children[C],"element"===_.type?b.push(toReact(t,_,C,i)):"text"===_.type?"element"===i.type&&wt.has(i.tagName)&&whitespace(_)||b.push(_.value):"raw"!==_.type||t.options.skipHtml||b.push(_.value);return b}function toReact(t,i,b,_){const C=t.options,w=void 0===C.transformLinkUri?uriTransformer:C.transformLinkUri,E=t.schema,O=i.tagName,k={};let P,S=E;if("html"===E.space&&"svg"===O&&(S=mt,t.schema=S),i.properties)for(P in i.properties)Ct.call(i.properties,P)&&addProperty(k,P,i.properties[P],t);"ol"!==O&&"ul"!==O||t.listDepth++;const I=childrenToReact(t,i);"ol"!==O&&"ul"!==O||t.listDepth--,t.schema=E;const T=i.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},j=C.components&&Ct.call(C.components,O)?C.components[O]:O,M="string"==typeof j||j===x.Fragment;if(!ht.isValidElementType(j))throw new TypeError(`Component for name \`${O}\` not defined or is not renderable`);if(k.key=b,"a"===O&&C.linkTarget&&(k.target="function"==typeof C.linkTarget?C.linkTarget(String(k.href||""),i.children,"string"==typeof k.title?k.title:null):C.linkTarget),"a"===O&&w&&(k.href=w(String(k.href||""),i.children,"string"==typeof k.title?k.title:null)),M||"code"!==O||"element"!==_.type||"pre"===_.tagName||(k.inline=!0),M||"h1"!==O&&"h2"!==O&&"h3"!==O&&"h4"!==O&&"h5"!==O&&"h6"!==O||(k.level=Number.parseInt(O.charAt(1),10)),"img"===O&&C.transformImageUri&&(k.src=C.transformImageUri(String(k.src||""),String(k.alt||""),"string"==typeof k.title?k.title:null)),!M&&"li"===O&&"element"===_.type){const t=function getInputElement(t){let i=-1;for(;++i<t.children.length;){const b=t.children[i];if("element"===b.type&&"input"===b.tagName)return b}return null}(i);k.checked=t&&t.properties?Boolean(t.properties.checked):null,k.index=getElementsBeforeCount(_,i),k.ordered="ol"===_.tagName}return M||"ol"!==O&&"ul"!==O||(k.ordered="ol"===O,k.depth=t.listDepth),"td"!==O&&"th"!==O||(k.align&&(k.style||(k.style={}),k.style.textAlign=k.align,delete k.align),M||(k.isHeader="th"===O)),M||"tr"!==O||"element"!==_.type||(k.isHeader=Boolean("thead"===_.tagName)),C.sourcePos&&(k["data-sourcepos"]=function flattenPosition(t){return[t.start.line,":",t.start.column,"-",t.end.line,":",t.end.column].map(String).join("")}(T)),!M&&C.rawSourcePos&&(k.sourcePosition=i.position),!M&&C.includeElementIndex&&(k.index=getElementsBeforeCount(_,i),k.siblingCount=getElementsBeforeCount(_)),M||(k.node=i),I.length>0?x.createElement(j,k,I):x.createElement(j,k)}function getElementsBeforeCount(t,i){let b=-1,_=0;for(;++b<t.children.length&&t.children[b]!==i;)"element"===t.children[b].type&&_++;return _}function addProperty(t,i,b,_){const C=function find(t,i){const b=normalize_normalize(i);let _=i,C=Info;if(b in t.normal)return t.property[t.normal[b]];if(b.length>4&&"data"===b.slice(0,4)&&gt.test(i)){if("-"===i.charAt(4)){const t=i.slice(5).replace(yt,camelcase);_="data"+t.charAt(0).toUpperCase()+t.slice(1)}else{const t=i.slice(4);if(!yt.test(t)){let b=t.replace(vt,kebab);"-"!==b.charAt(0)&&(b="-"+b),i="data"+b}}C=DefinedInfo}return new C(_,i)}(_.schema,i);let w=b;null!=w&&w==w&&(Array.isArray(w)&&(w=C.commaSeparated?function comma_separated_tokens_stringify(t,i){const b=i||{};return(""===t[t.length-1]?[...t,""]:t).join((b.padRight?" ":"")+","+(!1===b.padLeft?"":" ")).trim()}(w):function stringify(t){return t.join(" ").trim()}(w)),"style"===C.property&&"string"==typeof w&&(w=function parseStyle(t){const i={};try{_t(t,iterator)}catch{}return i;function iterator(t,b){const _="-ms-"===t.slice(0,4)?`ms-${t.slice(4)}`:t;i[_.replace(/-([a-z])/g,styleReplacer)]=b}}(w)),C.space&&C.property?t[Ct.call(bt,C.property)?bt[C.property]:C.property]=w:C.attribute&&(t[C.attribute]=w))}function styleReplacer(t,i){return i.toUpperCase()}const xt={}.hasOwnProperty,Et="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ot={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function ReactMarkdown(t){for(const i in Ot)if(xt.call(Ot,i)&&xt.call(t,i)){const t=Ot[i];console.warn(`[react-markdown] Warning: please ${t.to?`use \`${t.to}\` instead of`:"remove"} \`${i}\` (see <${Et}#${t.id}> for more info)`),delete Ot[i]}const i=I().use(remarkParse).use(t.remarkPlugins||[]).use(lib,{...t.remarkRehypeOptions,allowDangerousHtml:!0}).use(t.rehypePlugins||[]).use(rehypeFilter,t),b=new VFile;"string"==typeof t.children?b.value=t.children:void 0!==t.children&&null!==t.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${t.children}\`)`);const _=i.runSync(i.parse(b),b);if("root"!==_.type)throw new TypeError("Expected a `root` node");let C=x.createElement(x.Fragment,{},childrenToReact({options:t,schema:pt,listDepth:0},_));return t.className&&(C=x.createElement("div",{className:t.className},C)),C}ReactMarkdown.propTypes={children:Xe.string,className:Xe.string,allowElement:Xe.func,allowedElements:Xe.arrayOf(Xe.string),disallowedElements:Xe.arrayOf(Xe.string),unwrapDisallowed:Xe.bool,remarkPlugins:Xe.arrayOf(Xe.oneOfType([Xe.object,Xe.func,Xe.arrayOf(Xe.oneOfType([Xe.bool,Xe.string,Xe.object,Xe.func,Xe.arrayOf(Xe.any)]))])),rehypePlugins:Xe.arrayOf(Xe.oneOfType([Xe.object,Xe.func,Xe.arrayOf(Xe.oneOfType([Xe.bool,Xe.string,Xe.object,Xe.func,Xe.arrayOf(Xe.any)]))])),sourcePos:Xe.bool,rawSourcePos:Xe.bool,skipHtml:Xe.bool,includeElementIndex:Xe.bool,transformLinkUri:Xe.oneOfType([Xe.func,Xe.bool]),linkTarget:Xe.oneOfType([Xe.func,Xe.string]),transformImageUri:Xe.func,components:Xe.object}}},i={};function __webpack_require__(b){var _=i[b];if(void 0!==_)return _.exports;var C=i[b]={exports:{}};return t[b].call(C.exports,C,C.exports,__webpack_require__),C.exports}__webpack_require__.n=t=>{var i=t&&t.__esModule?()=>t.default:()=>t;return __webpack_require__.d(i,{a:i}),i},__webpack_require__.d=(t,i)=>{for(var b in i)__webpack_require__.o(i,b)&&!__webpack_require__.o(t,b)&&Object.defineProperty(t,b,{enumerable:!0,get:i[b]})},__webpack_require__.o=(t,i)=>Object.prototype.hasOwnProperty.call(t,i),__webpack_require__.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{"use strict";new(__webpack_require__(73203)(__webpack_require__(94066)).default)})()})();