Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 52.14.116.234
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/diixadigital.com/wp-content/plugins/elementor/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/diixadigital.com/wp-content/plugins/elementor/assets/js//ai.min.js
/*! elementor - v3.26.0 - 22-12-2024 */
/*! For license information please see ai.min.js.LICENSE.txt */
(()=>{var t={61185:(t,i,b)=>{"use strict";b.r(i),b.d(i,{Children:()=>_.Children,Component:()=>_.Component,Fragment:()=>_.Fragment,Platform:()=>A,PureComponent:()=>_.PureComponent,RawHTML:()=>RawHTML,StrictMode:()=>_.StrictMode,Suspense:()=>_.Suspense,cloneElement:()=>_.cloneElement,concatChildren:()=>concatChildren,createContext:()=>_.createContext,createElement:()=>_.createElement,createInterpolateElement:()=>create_interpolate_element,createPortal:()=>k.createPortal,createRef:()=>_.createRef,createRoot:()=>T.createRoot,findDOMNode:()=>k.findDOMNode,flushSync:()=>k.flushSync,forwardRef:()=>_.forwardRef,hydrate:()=>k.hydrate,hydrateRoot:()=>T.hydrateRoot,isEmptyElement:()=>isEmptyElement,isValidElement:()=>_.isValidElement,lazy:()=>_.lazy,memo:()=>_.memo,render:()=>k.render,renderToString:()=>te,startTransition:()=>_.startTransition,switchChildrenNodeName:()=>switchChildrenNodeName,unmountComponentAtNode:()=>k.unmountComponentAtNode,useCallback:()=>_.useCallback,useContext:()=>_.useContext,useDebugValue:()=>_.useDebugValue,useDeferredValue:()=>_.useDeferredValue,useEffect:()=>_.useEffect,useId:()=>_.useId,useImperativeHandle:()=>_.useImperativeHandle,useInsertionEffect:()=>_.useInsertionEffect,useLayoutEffect:()=>_.useLayoutEffect,useMemo:()=>_.useMemo,useReducer:()=>_.useReducer,useRef:()=>_.useRef,useState:()=>_.useState,useSyncExternalStore:()=>_.useSyncExternalStore,useTransition:()=>_.useTransition});var _=b(41594);let C,w,E,S;const P=/<(\/)?(\w+)\s*(\/)?>/g;function createFrame(t,i,b,_,C){return{element:t,tokenStart:i,tokenLength:b,prevOffset:_,leadingTextStart:C,children:[]}}const isValidConversionMap=t=>{const i="object"==typeof t,b=i&&Object.values(t);return i&&b.length&&b.every((t=>(0,_.isValidElement)(t)))};function proceed(t){const i=function nextToken(){const t=P.exec(C);if(null===t)return["no-more-tokens"];const i=t.index,[b,_,w,E]=t,S=b.length;if(E)return["self-closed",w,i,S];if(_)return["closer",w,i,S];return["opener",w,i,S]}(),[b,k,T,A]=i,D=S.length,W=T>w?w:null;if(!t[k])return addText(),!1;switch(b){case"no-more-tokens":if(0!==D){const{leadingTextStart:t,tokenStart:i}=S.pop();E.push(C.substr(t,i))}return addText(),!1;case"self-closed":return 0===D?(null!==W&&E.push(C.substr(W,T-W)),E.push(t[k]),w=T+A,!0):(addChild(createFrame(t[k],T,A)),w=T+A,!0);case"opener":return S.push(createFrame(t[k],T,A,T+A,W)),w=T+A,!0;case"closer":if(1===D)return function closeOuterElement(t){const{element:i,leadingTextStart:b,prevOffset:w,tokenStart:P,children:k}=S.pop(),T=t?C.substr(w,t-w):C.substr(w);T&&k.push(T);null!==b&&E.push(C.substr(b,P-b));E.push((0,_.cloneElement)(i,null,...k))}(T),w=T+A,!0;const i=S.pop(),b=C.substr(i.prevOffset,T-i.prevOffset);i.children.push(b),i.prevOffset=T+A;const P=createFrame(i.element,i.tokenStart,i.tokenLength,T+A);return P.children=i.children,addChild(P),w=T+A,!0;default:return addText(),!1}}function addText(){const t=C.length-w;0!==t&&E.push(C.substr(w,t))}function addChild(t){const{element:i,tokenStart:b,tokenLength:w,prevOffset:E,children:P}=t,k=S[S.length-1],T=C.substr(k.prevOffset,b-k.prevOffset);T&&k.children.push(T),k.children.push((0,_.cloneElement)(i,null,...P)),k.prevOffset=E||b+w}const create_interpolate_element=(t,i)=>{if(C=t,w=0,E=[],S=[],P.lastIndex=0,!isValidConversionMap(i))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are React Elements");do{}while(proceed(i));return(0,_.createElement)(_.Fragment,null,...E)};function concatChildren(...t){return t.reduce(((t,i,b)=>(_.Children.forEach(i,((i,C)=>{i&&"string"!=typeof i&&(i=(0,_.cloneElement)(i,{key:[b,C].join()})),t.push(i)})),t)),[])}function switchChildrenNodeName(t,i){return t&&_.Children.map(t,((t,b)=>{if("string"==typeof t?.valueOf())return(0,_.createElement)(i,{key:b},t);const{children:C,...w}=t.props;return(0,_.createElement)(i,{key:b,...w},C)}))}var k=b(75206),T=b(7470);const isEmptyElement=t=>"number"!=typeof t&&("string"==typeof t?.valueOf()||Array.isArray(t)?!t.length:!t),A={OS:"web",select:t=>"web"in t?t.web:t.default,isWeb:!0};function isObject(t){return"[object Object]"===Object.prototype.toString.call(t)}var __assign=function(){return __assign=Object.assign||function __assign(t){for(var i,b=1,_=arguments.length;b<_;b++)for(var C in i=arguments[b])Object.prototype.hasOwnProperty.call(i,C)&&(t[C]=i[C]);return t},__assign.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var tslib_es6_assign=function(){return tslib_es6_assign=Object.assign||function __assign(t){for(var i,b=1,_=arguments.length;b<_;b++)for(var C in i=arguments[b])Object.prototype.hasOwnProperty.call(i,C)&&(t[C]=i[C]);return t},tslib_es6_assign.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function lowerCase(t){return t.toLowerCase()}var D=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],W=/[^A-Z0-9]+/gi;function replace(t,i,b){return i instanceof RegExp?t.replace(i,b):i.reduce((function(t,i){return t.replace(i,b)}),t)}function dotCase(t,i){return void 0===i&&(i={}),function noCase(t,i){void 0===i&&(i={});for(var b=i.splitRegexp,_=void 0===b?D:b,C=i.stripRegexp,w=void 0===C?W:C,E=i.transform,S=void 0===E?lowerCase:E,P=i.delimiter,k=void 0===P?" ":P,T=replace(replace(t,_,"$1\0$2"),w,"\0"),A=0,q=T.length;"\0"===T.charAt(A);)A++;for(;"\0"===T.charAt(q-1);)q--;return T.slice(A,q).split("\0").map(S).join(k)}(t,tslib_es6_assign({delimiter:"."},i))}function paramCase(t,i){return void 0===i&&(i={}),dotCase(t,__assign({delimiter:"-"},i))}const q=/[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/;function escapeAmpersand(t){return t.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&amp;")}function escapeLessThan(t){return t.replace(/</g,"&lt;")}function escapeAttribute(t){return function __unstableEscapeGreaterThan(t){return t.replace(/>/g,"&gt;")}(function escapeQuotationMark(t){return t.replace(/"/g,"&quot;")}(escapeAmpersand(t)))}function isValidAttributeName(t){return!q.test(t)}function RawHTML({children:t,...i}){let b="";return _.Children.toArray(t).forEach((t=>{"string"==typeof t&&""!==t.trim()&&(b+=t)})),(0,_.createElement)("div",{dangerouslySetInnerHTML:{__html:b},...i})}const{Provider:N,Consumer:H}=(0,_.createContext)(void 0),U=(0,_.forwardRef)((()=>null)),V=new Set(["string","boolean","number"]),G=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),Y=new Set(["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"]),K=new Set(["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),Z=new Set(["animation","animationIterationCount","baselineShift","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","cx","cy","fillOpacity","flexGrow","flexShrink","floodOpacity","fontWeight","gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","r","rx","ry","shapeImageThreshold","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","x","y","zIndex","zoom"]);function hasPrefix(t,i){return i.some((i=>0===t.indexOf(i)))}function isInternalAttribute(t){return"key"===t||"children"===t}function getNormalAttributeValue(t,i){return"style"===t?function renderStyle(t){if(!function isPlainObject(t){var i,b;return!1!==isObject(t)&&(void 0===(i=t.constructor)||!1!==isObject(b=i.prototype)&&!1!==b.hasOwnProperty("isPrototypeOf"))}(t))return t;let i;for(const b in t){const _=t[b];if(null==_)continue;i?i+=";":i="";i+=getNormalStylePropertyName(b)+":"+getNormalStylePropertyValue(b,_)}return i}(i):i}const Q=["accentHeight","alignmentBaseline","arabicForm","baselineShift","capHeight","clipPath","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","dominantBaseline","enableBackground","fillOpacity","fillRule","floodColor","floodOpacity","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","horizAdvX","horizOriginX","imageRendering","letterSpacing","lightingColor","markerEnd","markerMid","markerStart","overlinePosition","overlineThickness","paintOrder","panose1","pointerEvents","renderingIntent","shapeRendering","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","textAnchor","textDecoration","textRendering","underlinePosition","underlineThickness","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","vHanging","vIdeographic","vMathematical","vectorEffect","vertAdvY","vertOriginX","vertOriginY","wordSpacing","writingMode","xmlnsXlink","xHeight"].reduce(((t,i)=>(t[i.toLowerCase()]=i,t)),{}),J=["allowReorder","attributeName","attributeType","autoReverse","baseFrequency","baseProfile","calcMode","clipPathUnits","contentScriptType","contentStyleType","diffuseConstant","edgeMode","externalResourcesRequired","filterRes","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","suppressContentEditableWarning","suppressHydrationWarning","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector"].reduce(((t,i)=>(t[i.toLowerCase()]=i,t)),{}),ee=["xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","xmlns:xlink"].reduce(((t,i)=>(t[i.replace(":","").toLowerCase()]=i,t)),{});function getNormalAttributeName(t){switch(t){case"htmlFor":return"for";case"className":return"class"}const i=t.toLowerCase();return J[i]?J[i]:Q[i]?paramCase(Q[i]):ee[i]?ee[i]:i}function getNormalStylePropertyName(t){return t.startsWith("--")?t:hasPrefix(t,["ms","O","Moz","Webkit"])?"-"+paramCase(t):paramCase(t)}function getNormalStylePropertyValue(t,i){return"number"!=typeof i||0===i||Z.has(t)?i:i+"px"}function renderElement(t,i,b={}){if(null==t||!1===t)return"";if(Array.isArray(t))return renderChildren(t,i,b);switch(typeof t){case"string":return function escapeHTML(t){return escapeLessThan(escapeAmpersand(t))}(t);case"number":return t.toString()}const{type:C,props:w}=t;switch(C){case _.StrictMode:case _.Fragment:return renderChildren(w.children,i,b);case RawHTML:const{children:t,...C}=w;return renderNativeComponent(Object.keys(C).length?"div":null,{...C,dangerouslySetInnerHTML:{__html:t}},i,b)}switch(typeof C){case"string":return renderNativeComponent(C,w,i,b);case"function":return C.prototype&&"function"==typeof C.prototype.render?function renderComponent(t,i,b,_={}){const C=new t(i,_);"function"==typeof C.getChildContext&&Object.assign(_,C.getChildContext());const w=renderElement(C.render(),b,_);return w}(C,w,i,b):renderElement(C(w,b),i,b)}switch(C&&C.$$typeof){case N.$$typeof:return renderChildren(w.children,w.value,b);case H.$$typeof:return renderElement(w.children(i||C._currentValue),i,b);case U.$$typeof:return renderElement(C.render(w),i,b)}return""}function renderNativeComponent(t,i,b,_={}){let C="";if("textarea"===t&&i.hasOwnProperty("value")){C=renderChildren(i.value,b,_);const{value:t,...w}=i;i=w}else i.dangerouslySetInnerHTML&&"string"==typeof i.dangerouslySetInnerHTML.__html?C=i.dangerouslySetInnerHTML.__html:void 0!==i.children&&(C=renderChildren(i.children,b,_));if(!t)return C;const w=function renderAttributes(t){let i="";for(const b in t){const _=getNormalAttributeName(b);if(!isValidAttributeName(_))continue;let C=getNormalAttributeValue(b,t[b]);if(!V.has(typeof C))continue;if(isInternalAttribute(b))continue;const w=Y.has(_);if(w&&!1===C)continue;const E=w||hasPrefix(b,["data-","aria-"])||K.has(_);("boolean"!=typeof C||E)&&(i+=" "+_,w||("string"==typeof C&&(C=escapeAttribute(C)),i+='="'+C+'"'))}return i}(i);return G.has(t)?"<"+t+w+"/>":"<"+t+w+">"+C+"</"+t+">"}function renderChildren(t,i,b={}){let _="";t=Array.isArray(t)?t:[t];for(let C=0;C<t.length;C++){_+=renderElement(t[C],i,b)}return _}const te=renderElement},18791:(t,i,b)=>{"use strict";var _=b(10564);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;_interopRequireWildcard(b(41594));var C=_interopRequireWildcard(b(75206)),w=b(7470);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"!=_(t)&&"function"!=typeof t)return{default:t};var b=_getRequireWildcardCache(i);if(b&&b.has(t))return b.get(t);var C={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(C,E,S):C[E]=t[E]}return C.default=t,b&&b.set(t,C),C}i.default={render:function render(t,i){var b;try{var _=(0,w.createRoot)(i);_.render(t),b=function unmountFunction(){_.unmount()}}catch(_){C.render(t,i),b=function unmountFunction(){C.unmountComponentAtNode(i)}}return{unmount:b}}}},57827:(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(12470);i.textAutocomplete=[(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.textareaAutocomplete=[(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.codeHtmlAutocomplete=[(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.codeCssAutocomplete=[(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.vocalTones=[{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.translateLanguages=[{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"}]},11242:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(39805)),w=_(b(40989)),E=_(b(15118)),S=_(b(29402)),P=_(b(87861)),k=_(b(18791)),T=_(b(96698)),A=b(12470),D=_(b(34515)),W=_(b(75431)),q=b(25252),N=b(40128),H=_(b(41594));function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}i.default=function(t){function AiBehavior(){return(0,C.default)(this,AiBehavior),function _callSuper(t,i,b){return i=(0,S.default)(i),(0,E.default)(t,_isNativeReflectConstruct()?Reflect.construct(i,b||[],(0,S.default)(t).constructor):i.apply(t,b))}(this,AiBehavior,arguments)}return(0,P.default)(AiBehavior,t),(0,w.default)(AiBehavior,[{key:"initialize",value:function initialize(){this.type="text",this.controlType="text",this.buttonLabel=(0,A.__)("Write with AI","elementor"),this.editButtonLabel=(0,A.__)("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:"getTextualContent",value:function getTextualContent(){var t,i=[],b=null===(t=window.elementor.$previewContents[0])||void 0===t?void 0:t.cloneNode(!0);b.querySelectorAll(".elementor-editor-element-settings, #elementor-add-new-section, .elementor-add-section-inner, header, footer").forEach((function(t){return t.remove()}));var _=function walkDOM(t){var b,C=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(C=(null===(b=t.classList)||void 0===b?void 0:b.contains("elementor-element"))||C,Node.TEXT_NODE===t.nodeType&&C){var w,E=(null!==(w=t.textContent)&&void 0!==w?w:"").trim().replace(/\t+/g,"\t").replace(/\n+/g,"\n").replace(/\s+/g," ");E&&i.push(E)}else t.childNodes.forEach((function(t){return _(t,C)}))};return _(b),i.join("\n")}},{key:"onAiButtonClick",value:function onAiButtonClick(t){var i,b;t.stopPropagation();var _=(null===(i=elementor)||void 0===i||null===(b=i.getPreferences)||void 0===b?void 0:b.call(i,"ui_theme"))||"auto",C=elementorCommon.config.isRTL,w=document.createElement("div");document.body.append(w),window.elementorAiCurrentContext=this.getOption("context");var E=k.default.render(this.getElementToRender(w,_,C),w).unmount;this.unmount=E}},{key:"getElementToRender",value:function getElementToRender(t,i,b){var _=this,C=function onClose(){_.handleClose(),t.remove()};if("post_featured_image"===this.options.context.controlName){return H.default.createElement(q.AIMediaGenerateApp,{onClose:C,predefinedPrompt:this.getTextualContent(),textToImageHook:W.default,getControlValue:this.getOption("getControlValue"),setControlValue:this.getOption("setControlValue"),initialSettings:{aspectRatio:"4:3"}})}return"excerpt"===this.getOption("type")?H.default.createElement(N.RequestIdsProvider,null,H.default.createElement(D.default,{onClose:C,currExcerpt:this.getOption("getControlValue")(),updateExcerpt:this.getOption("setControlValue"),postTextualContent:this.getTextualContent()})):H.default.createElement(T.default,{type:this.getOption("type"),controlType:this.getOption("controlType"),getControlValue:this.getOption("getControlValue"),setControlValue:this.getOption("setControlValue"),additionalOptions:this.getOption("additionalOptions"),onClose:C,colorScheme:i,isRTL:b})}},{key:"handleClose",value:function handleClose(){this.unmount&&this.unmount()}},{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)}}])}(Marionette.Behavior)},34515:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=_(b(61790)),E=_(b(58155)),S=_(b(18821)),P=_(b(24954)),k=_(b(5952)),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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),A=b(61185),D=_(b(96698)),W=b(12470),q=_(b(62688)),N=b(40128);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 H=function AIExcerpt(t){var i=t.onClose,b=t.currExcerpt,_=t.updateExcerpt,C=t.postTextualContent,q=(0,P.default)(!0),H=q.isLoading,U=q.isConnected,V=q.isGetStarted,G=q.connectUrl,Y=q.fetchData,K=q.hasSubscription,Z=q.credits,Q=q.usagePercentage,J=(0,k.default)({result:b,credits:Z}),ee=J.data,te=J.error,ne=J.send,de=(0,N.useRequestIds)(),fe=de.updateUsagePercentage,pe=de.usagePercentage,me=(0,T.useState)(!1),ge=(0,S.default)(me,2),ye=ge[0],ve=ge[1];(0,A.useEffect)((function(){ye||H||!Q&&0!==Q||(fe(Q),ve(!0))}),[H,Q,ye,fe]);var be=(0,T.useRef)(!1),Ee=(0,T.useState)(!0),xe=(0,S.default)(Ee,2),Oe=xe[0],ke=xe[1],Te=(0,A.useCallback)((0,E.default)(w.default.mark((function _callee(){return w.default.wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:if(!ne||!C){t.next=4;break}return be.current=!0,t.next=4,ne({content:C}).finally((function(){ke(!1)}));case 4:case"end":return t.stop()}}),_callee)}))),[C,ne]);(0,A.useEffect)((function(){!be.current&&U&&V&&Te()}),[Te,U,V]),(0,A.useEffect)((function(){H||U&&V||ke(!1)}),[U,V,H]);var Re=elementorCommon.config.isRTL;return T.default.createElement(T.default.Fragment,null,T.default.createElement(D.default,{type:"text",getControlValue:function getControlValue(){return ee.result?ee:b},setControlValue:function setControlValue(t){return _(t)},onClose:i,isRTL:Re,additionalOptions:{loadingTitle:(0,W.__)("Analyzing your post to craft an excerpt...","elementor"),useCustomInit:function initHook(){return{isLoading:Oe,isConnected:U,isGetStarted:V,connectUrl:G,fetchData:Y,hasSubscription:K,credits:Z,usagePercentage:pe}},initError:te,initRetry:Te}}))};H.propTypes={onClose:q.default.func.isRequired,updateExcerpt:q.default.func.isRequired,currExcerpt:q.default.string.isRequired,postTextualContent:q.default.string.isRequired};i.default=H},16789:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);Object.defineProperty(i,"__esModule",{value:!0}),i.AiGetStartedConnect=void 0;var w=_(b(61790)),E=_(b(58155)),S=_(b(18821)),P=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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),k=_(b(24954)),T=_(b(73319)),A=b(36833),D=_(b(62688)),W=b(97474),q=_(b(75524)),N=b(95034),H=_(b(63152)),U=b(12470);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)}(i.AiGetStartedConnect=function AiGetStartedConnect(t){var i=t.onClose,b=t.source,_=t.newHashOnConnect,C=(0,k.default)(),D=C.isLoading,V=C.isConnected,G=C.isGetStarted,Y=C.connectUrl,K=C.fetchData,Z=(0,P.useState)(!1),Q=(0,S.default)(Z,2),J=Q[0],ee=Q[1];if((0,P.useEffect)((function(){if(G&&V){var t=elementorFrontend.elements.$body[0].querySelector(".e-ai-layout-button");(function isElementInViewport(t){var i=t.getBoundingClientRect();return i.top>=0&&i.left>=0&&i.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&i.right<=(window.innerWidth||document.documentElement.clientWidth)})(t)||t.scrollIntoView({behavior:"smooth"}),_&&(window.location.hash=_),setTimeout((function(){ee(!0)}),1e3)}}),[G,V]),D)return P.default.createElement(W.WizardDialogWrapper,{onClose:i},P.default.createElement(T.default,{BoxProps:{sx:{px:3}}}));if(!V||!G)return P.default.createElement(W.WizardDialogWrapper,{onClose:i},P.default.createElement(q.default,{connectUrl:Y,isConnected:V,getStartedAction:(0,E.default)(w.default.mark((function _callee(){return w.default.wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,N.setGetStarted)();case 2:K();case 3:case"end":return t.stop()}}),_callee)}))),onSuccess:function(){var t=(0,E.default)(w.default.mark((function _callee2(t){return w.default.wrap((function _callee2$(i){for(;;)switch(i.prev=i.next){case 0:return(0,A.onConnect)(t),K(),i.next=4,(0,N.setGetStarted)();case 4:K();case 5:case"end":return i.stop()}}),_callee2)})));return function(i){return t.apply(this,arguments)}}()}));if(J){var te,ne,de=window.elementorFrontend.elements.$body[0].querySelector(".e-ai-layout-button"),fe=document.querySelector("#elementor-preview-iframe").getBoundingClientRect(),pe=fe.x,me=fe.y;return P.default.createElement(H.default,{"test-id":"ai-promotion-infotip-wrapper",source:b,anchor:de,clickAction:function clickAction(){de.click()},header:(0,U.__)("Create any layout with a prompt","elementor"),contentText:(0,U.__)("Now you can generate any layout or container for your website’s design.","elementor"),mainActionText:(0,U.__)("Try it","elementor"),controlType:"container",unmountAction:i,colorScheme:(null===(te=elementor)||void 0===te||null===(ne=te.getPreferences)||void 0===ne?void 0:ne.call(te,"ui_theme"))||"auto",isRTL:elementorCommon.config.isRTL,placement:"top",offset:{x:pe,y:me}})}}).propTypes={onClose:D.default.func.isRequired,source:D.default.string.isRequired,newHashOnConnect:D.default.string}},95034:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.uploadImage=i.toggleFavoriteHistoryItem=i.setStatusFeedback=i.setGetStarted=i.getUserInformation=i.getTextToImageGeneration=i.getRemoteFrontendConfig=i.getRemoteConfig=i.getProductImageUnification=i.getLayoutPromptEnhanced=i.getImageToImageUpscale=i.getImageToImageReplaceBackground=i.getImageToImageRemoveText=i.getImageToImageRemoveBackground=i.getImageToImageOutPainting=i.getImageToImageMaskGeneration=i.getImageToImageMaskCleanup=i.getImageToImageGeneration=i.getImagePromptEnhanced=i.getHistory=i.getFeaturedImage=i.getExcerpt=i.getEditText=i.getCustomCode=i.getCustomCSS=i.getCompletionText=i.generateLayout=i.deleteHistoryItem=void 0;var C=_(b(85707));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 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&&(window.elementorAiCurrentContext?i.context=window.elementorAiCurrentContext:i.context=window.elementorWpAiCurrentContext),new Promise((function(C,w){var E=elementorCommon.ajax.addRequest(t,{success:C,error:w,data:i,unique_id:i.unique_id},b);_&&E.jqXhr&&_.addEventListener("abort",E.jqXhr.abort)}))};i.getUserInformation=function getUserInformation(t){return w("ai_get_user_information",void 0,t)},i.getRemoteConfig=function getRemoteConfig(){return w("ai_get_remote_config")},i.getRemoteFrontendConfig=function getRemoteFrontendConfig(t,i){return w("ai_get_remote_frontend_config",{payload:t},i)},i.getCompletionText=function getCompletionText(t){return w("ai_get_completion_text",{payload:t})},i.getExcerpt=function getExcerpt(t){return w("ai_get_excerpt",{payload:t})},i.getFeaturedImage=function getFeaturedImage(t){return w("ai_get_featured_image",{payload:t})},i.getEditText=function getEditText(t){return w("ai_get_edit_text",{payload:t})},i.getCustomCode=function getCustomCode(t){return w("ai_get_custom_code",{payload:t})},i.getCustomCSS=function getCustomCSS(t){return w("ai_get_custom_css",{payload:t})},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){return w("ai_get_text_to_image",{payload:t})},i.getImageToImageGeneration=function getImageToImageGeneration(t){return w("ai_get_image_to_image",{payload:t})},i.getImageToImageMaskCleanup=function getImageToImageMaskCleanup(t){return w("ai_get_image_to_image_mask_cleanup",{payload:t})},i.getImageToImageMaskGeneration=function getImageToImageMaskGeneration(t){return w("ai_get_image_to_image_mask",{payload:t})},i.getImageToImageOutPainting=function getImageToImageOutPainting(t){return w("ai_get_image_to_image_outpainting",{payload:t})},i.getImageToImageUpscale=function getImageToImageUpscale(t){return w("ai_get_image_to_image_upscale",{payload:t})},i.getImageToImageRemoveBackground=function getImageToImageRemoveBackground(t){return w("ai_get_image_to_image_remove_background",{payload:t})},i.getImageToImageReplaceBackground=function getImageToImageReplaceBackground(t){return w("ai_get_image_to_image_replace_background",{payload:t})},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.getProductImageUnification=function getProductImageUnification(t,i){return w("ai_get_product_image_unification",{payload:t},i)},i.uploadImage=function uploadImage(t){return w("ai_upload_image",_objectSpread(_objectSpread({},t),{},{editor_post_id:t.image.editor_post_id,unique_id:t.image.unique_id}))},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})}},96698:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=b(86956),E=_(b(62688)),S=_(b(9938)),P=b(40128),k=b(36833),T=function App(t){return C.default.createElement(w.DirectionProvider,{rtl:t.isRTL},C.default.createElement(w.ThemeProvider,{colorScheme:t.colorScheme},C.default.createElement(P.RequestIdsProvider,null,C.default.createElement(S.default,{type:t.type,controlType:t.controlType,onClose:t.onClose,onConnect:k.onConnect,getControlValue:t.getControlValue,setControlValue:t.setControlValue,additionalOptions:t.additionalOptions}))))};T.propTypes={colorScheme:E.default.oneOf(["auto","light","dark"]),type:E.default.string,controlType:E.default.string,onClose:E.default.func,getControlValue:E.default.func,setControlValue:E.default.func,additionalOptions:E.default.object,isRTL:E.default.bool};i.default=T},97030:(t,i,b)=>{"use strict";var _=b(62688),C=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=C(b(41594)),E=b(86956),S=b(12470),P=function AiPromotionInfotipContent(t){return w.default.createElement(E.Card,{sx:{width:300},elevation:0},w.default.createElement(E.CardHeader,{subheader:"ELEMENTOR AI"}),w.default.createElement(E.CardContent,{sx:{pt:1}},w.default.createElement(E.Typography,{variant:"subtitle2",color:"text.secondary",sx:{pb:.5}},t.header),w.default.createElement(E.Typography,{variant:"body2",color:"text.secondary"},t.contentText)),w.default.createElement(E.CardActions,{disableSpacing:!0,sx:{justifyContent:"flex-end",gap:1}},w.default.createElement(E.Button,{onClick:function onClick(){return t.onClose()},color:"secondary"},(0,S.__)("Not Now","elementor")),w.default.createElement(E.Button,{onClick:function onClick(){return t.onClick()},variant:"contained"},t.mainActionText)))};P.propTypes={header:_.string,contentText:_.string,onClick:_.func,onClose:_.func,mainActionText:_.string};i.default=P},63152:(t,i,b)=>{"use strict";var _=b(62688),C=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=C(b(41594)),E=C(b(67766)),S=C(b(97030)),P=b(86956),k=C(b(80366)),T=b(7643),A=function AiPromotionInfotipWrapper(t){var i=t.anchor,b=t.header,_=t.contentText,C=t.controlType,A=t.unmountAction,D=t.colorScheme,W=t.isRTL,q=t.clickAction,N=t.placement,H=t.offset,U=t.mainActionText,V=t.source,G=(0,T.useFocusOutListener)(),Y=(0,k.default)("ai_get_started_introduction_".concat(C,"_").concat(V)),K=Y.isViewed,Z=Y.markAsViewed;if(!K)return w.default.createElement(P.DirectionProvider,{rtl:W},w.default.createElement(P.ThemeProvider,{colorScheme:D},w.default.createElement(T.FocusOutListener,{listener:G,onFocusOut:function onFocusOut(){Z(),A()}},w.default.createElement(E.default,{anchor:i,focusOutListener:G,placement:N,offset:H,content:w.default.createElement(S.default,{focusOutListener:G,header:b,contentText:_,mainActionText:U,onClose:function onClose(){Z(),G.remove(),A()},onClick:function onClick(){Z(),G.remove(),A(),q?q():i.click()}})}))))};A.propTypes={anchor:_.object,header:_.string,contentText:_.string,controlType:_.string,unmountAction:_.func,colorScheme:_.string,isRTL:_.bool,clickAction:_.func,placement:_.string,offset:_.object,mainActionText:_.string,source:_.string};i.default=A},67766:(t,i,b)=>{"use strict";var _=b(62688),C=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=AiPromotionInfotip;var w=C(b(41594)),E=b(86956),S=(0,E.styled)(E.Popper)((function(t){var i=t.theme;return{"& .MuiTooltip-tooltip":{width:500,minHeight:50,padding:0,backgroundColor:i.palette.background.paper,color:i.palette.text.primary,boxShadow:"0px -6px 10px 2px rgba(0,0,0,0.025),6px 0px 10px 2px rgba(0,0,0,0.025),-6px 0px 10px 2px rgba(0,0,0,0.025),0px 6px 10px 2px rgba(0,0,0,0.025)"},"& .MuiTooltip-arrow":{color:i.palette.background.paper,fontSize:"1.2rem"},"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom":{marginTop:i.spacing(2)},"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementRight":{marginLeft:i.spacing(2)},"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementLeft":{marginRight:i.spacing(2)},"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementTop":{marginBottom:i.spacing(2)}}}));function AiPromotionInfotip(t){var i=t.anchor,b=t.content,_=t.focusOutListener,C=t.placement,P=t.offset,k=void 0===P?{x:0,y:0}:P,T=w.default.useRef({x:0,y:0,width:0,height:0}),A=w.default.useRef(null);return w.default.useEffect((function(){!function showTooltip(){var t=i.getBoundingClientRect(),b=t.x,_=t.y,C=t.width,w=t.height;T.current={x:b+k.x,y:_+k.y,width:C,height:w},null!==A.current&&A.current.update()}()}),[]),w.default.createElement(E.Tooltip,{arrow:!0,open:!0,title:b,placement:C||"left",PopperComponent:S,PopperProps:{onClick:function onClick(){return _.reset()},popperRef:A,anchorEl:{getBoundingClientRect:function getBoundingClientRect(){return new DOMRect(T.current.x,T.current.y,T.current.width,T.current.height)}}}},w.default.createElement("div",{style:{display:"none"}}))}AiPromotionInfotip.propTypes={anchor:_.object.isRequired,content:_.object.isRequired,focusOutListener:_.object.isRequired,placement:_.string,offset:_.object}},86353:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);Object.defineProperty(i,"__esModule",{value:!0}),i.AlertDialog=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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(18821)),S=b(86956),P=b(12470),k=_(b(62688));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)}(i.AlertDialog=function AlertDialog(t){var i=(0,w.useState)(!0),b=(0,E.default)(i,2),_=b[0],C=b[1];return _?w.default.createElement(S.Dialog,{open:!0,maxWidth:"lg"},w.default.createElement(S.DialogContent,{sx:{padding:0}},w.default.createElement(S.Typography,{sx:{textAlign:"center",padding:3}},t.message),w.default.createElement(S.Stack,{alignItems:"center",spacing:2,marginBottom:2},w.default.createElement(S.Button,{variant:"contained",type:"button",color:"primary",onClick:function onClick(){var i;C(!1),null===(i=t.onClose)||void 0===i||i.call(t)}},(0,P.__)("Close","elementor"))))):null}).propTypes={message:k.default.string.isRequired,onClose:k.default.func}},99476:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(78304)),E=b(86956),S=b(12470),P=_(b(62688)),k=b(44048),T=(0,E.styled)((function ElementorLogo(t){return C.default.createElement(E.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}}})),A=function DialogHeader(t){return C.default.createElement(E.AppBar,{sx:{fontWeight:"normal"},color:"transparent",position:"relative"},C.default.createElement(E.Toolbar,{variant:"dense"},C.default.createElement(T,{sx:{mr:1}}),C.default.createElement(E.Typography,{component:"span",variant:"subtitle2",sx:{fontWeight:"bold",textTransform:"uppercase"}},(0,S.__)("AI","elementor")),C.default.createElement(E.Chip,{label:(0,S.__)("Beta","elementor"),color:"default",size:"small",sx:{ml:1}}),C.default.createElement(E.Stack,{direction:"row",spacing:1,alignItems:"center",sx:{ml:"auto"}},t.children,C.default.createElement(E.IconButton,{size:"small","aria-label":"close",onClick:t.onClose,sx:{"&.MuiButtonBase-root":{mr:-1}}},C.default.createElement(k.XIcon,null)))))};A.propTypes={onClose:P.default.func.isRequired,children:P.default.oneOfType([P.default.arrayOf(P.default.node),P.default.node])};i.default=A},2768:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(78304)),E=b(86956),S=b(12470),P=b(44048);i.default=function GenerateButton(t){return C.default.createElement(E.Button,(0,w.default)({variant:"contained",endIcon:C.default.createElement(P.AIIcon,{fontSize:"small"}),disabled:!prompt,"aria-label":(0,S.__)("search","elementor"),type:"submit",size:"small"},t))}},73319:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(78304)),E=_(b(85707)),S=_(b(40453)),P=b(86956),k=_(b(62688)),T=["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,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 A=function Loader(t){var i=t.sx,b=void 0===i?{}:i,_=t.BoxProps,E=void 0===_?{}:_,k=(0,S.default)(t,T);return C.default.createElement(P.Box,(0,w.default)({width:"100%",display:"flex",alignItems:"center"},E,{sx:_objectSpread({px:1.5,minHeight:function minHeight(t){return t.spacing(5)}},E.sx||{})}),C.default.createElement(P.LinearProgress,(0,w.default)({color:"secondary"},k,{sx:_objectSpread({width:"100%"},b)})))};A.propTypes={sx:k.default.object,BoxProps:k.default.object};i.default=A},62338:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=b(86956),E=_(b(62688)),S=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)}))))};S.propTypes={label:E.default.string.isRequired,options:E.default.arrayOf(E.default.shape({label:E.default.string.isRequired,value:E.default.string})).isRequired,onChange:E.default.func.isRequired,value:E.default.string,wrapperStyle:E.default.object,disabled:E.default.bool};i.default=S},48985:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(78304)),E=b(86956);i.default=function PromptAction(t){return C.default.createElement(E.Chip,(0,w.default)({size:"large",color:"secondary",variant:"outlined"},t))}},48968:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(78304)),S=_(b(85707)),P=_(b(18821)),k=b(86956),T=_(b(62688)),A=_(b(38230)),D=_(b(99476));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,S.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 W=function DraggablePaper(t){var i=(0,w.useState)({x:0,y:0}),b=(0,P.default)(i,2),_=b[0],C=b[1],S=(0,w.useRef)(null),T=(0,w.useRef)(null),D=function handlePositionBoundaries(){clearTimeout(T.current),T.current=setTimeout((function(){var t,i=null===(t=S.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(D);return t.observe(S.current),function(){t.disconnect()}}),[]),w.default.createElement(A.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,E.default)({},t,{ref:S})))},q=function PromptDialog(t){return w.default.createElement(k.Dialog,(0,E.default)({scroll:"paper",open:!0,fullWidth:!0,hideBackdrop:!0,PaperComponent:W,disableScrollLock:!0,sx:{"& .MuiDialog-container":{alignItems:"flex-start",mt:"18vh"}},PaperProps:{sx:{m:0,maxHeight:"76vh"}}},t),t.children)};q.propTypes={onClose:T.default.func.isRequired,children:T.default.node,maxWidth:T.default.oneOf(["xs","sm","md","lg","xl",!1])},q.Header=D.default,q.Content=k.DialogContent;i.default=q},43091:(t,i,b)=>{"use strict";var _=b(12470).sprintf,C=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=C(b(41594)),E=C(b(78304)),S=C(b(40453)),P=b(86956),k=b(12470),T=C(b(62688)),A=["error","onRetry","actionPosition"],D=function PromptErrorMessage(t){var i=t.error,b=t.onRetry,C=void 0===b?function(){}:b,T=t.actionPosition,D=void 0===T?"default":T,W=(0,S.default)(t,A);function getQuotaReachedTrailMessage(t){return t?{text:w.default.createElement(P.AlertTitle,null,_((0,k.__)("You've used all AI credits for %s.","elementor"),t.toLowerCase())),description:(0,k.__)("Upgrade now to keep using this feature. You still have credits for other AI features (Text, Code, Images, Containers, etc.)","elementor"),buttonText:(0,k.__)("Upgrade now","elementor"),buttonAction:function buttonAction(){return window.open("https://go.elementor.com/ai-popup-purchase-limit-reached/","_blank")}}:{text:w.default.createElement(P.AlertTitle,null,(0,k.__)("It's time to upgrade.","elementor")),description:(0,k.__)("Enjoy the free trial? Upgrade now for unlimited access to built-in image, text and custom code generators.","elementor"),buttonText:(0,k.__)("Upgrade","elementor"),buttonAction:function buttonAction(){return window.open("https://go.elementor.com/ai-popup-purchase-limit-reached/","_blank")}}}var q=function getErrorMessage(){var t,b=i.message||i,_=null===(t=i.extra_data)||void 0===t?void 0:t.featureName,E={default:{text:w.default.createElement(P.AlertTitle,null,(0,k.__)("There was a glitch.","elementor")),description:(0,k.__)("Wait a moment and give it another go, or try tweaking the prompt.","elementor"),buttonText:(0,k.__)("Try again","elementor"),buttonAction:C},service_outage_internal:{text:w.default.createElement(P.AlertTitle,null,(0,k.__)("There was a glitch.","elementor")),description:(0,k.__)("Wait a moment and give it another go.","elementor"),buttonText:(0,k.__)("Try again","elementor"),buttonAction:C},invalid_connect_data:{text:w.default.createElement(P.AlertTitle,null,(0,k.__)("There was a glitch.","elementor")),description:w.default.createElement(w.default.Fragment,null,(0,k.__)("Try exiting Elementor and sign in again.","elementor")," ",w.default.createElement("a",{href:"https://elementor.com/help/disconnecting-reconnecting-your-elementor-account/",target:"_blank",rel:"noreferrer"},(0,k.__)("Show me how","elementor"))),buttonText:(0,k.__)("Reconnect","elementor"),buttonAction:function buttonAction(){return window.open(window.ElementorAiConfig.connect_url)}},not_connected:{text:w.default.createElement(P.AlertTitle,null,(0,k.__)("You aren't connected to Elementor AI.","elementor")),description:(0,k.__)("Elementor AI is just a few clicks away. Connect your account to instantly create texts and custom code.","elementor"),buttonText:(0,k.__)("Connect","elementor"),buttonAction:function buttonAction(){return window.open(window.ElementorAiConfig.connect_url)}},quota_reached_trail:getQuotaReachedTrailMessage(_),quota_reached_subscription:{text:w.default.createElement(P.AlertTitle,null,(0,k.__)("Looks like you're out of credits.","elementor")),description:(0,k.__)("Ready to take it to the next level?","elementor"),buttonText:(0,k.__)("Upgrade now","elementor"),buttonAction:function buttonAction(){return window.open("https://go.elementor.com/ai-popup-purchase-limit-reached/","_blank")}},rate_limit_network:{text:w.default.createElement(P.AlertTitle,null,(0,k.__)("Whoa! Slow down there.","elementor")),description:(0,k.__)("We can’t process that many requests so fast. Try again in 15 minutes.","elementor")},invalid_prompts:{text:w.default.createElement(P.AlertTitle,null,(0,k.__)("We were unable to generate that prompt.","elementor")),description:(0,k.__)("Seems like the prompt contains words that could generate harmful content. Write a different prompt to continue.","elementor")},service_unavailable:{text:w.default.createElement(P.AlertTitle,null,(0,k.__)("There was a glitch.","elementor")),description:(0,k.__)("Wait a moment and give it another go, or try tweaking the prompt.","elementor"),buttonText:(0,k.__)("Try again","elementor"),buttonAction:C},request_timeout_error:{text:w.default.createElement(P.AlertTitle,null,(0,k.__)("There was a glitch.","elementor")),description:(0,k.__)("Wait a moment and give it another go, or try tweaking the prompt.","elementor"),buttonText:(0,k.__)("Try again","elementor"),buttonAction:C},invalid_token:{text:w.default.createElement(P.AlertTitle,null,(0,k.__)("Try again","elementor")),description:(0,k.__)("Try exiting Elementor and sign in again.","elementor"),buttonText:(0,k.__)("Reconnect","elementor"),buttonAction:C},file_too_large:{text:w.default.createElement(P.AlertTitle,null,(0,k.__)("The file is too large.","elementor")),description:(0,k.__)("Please upload a file that is less than 4MB.","elementor")},image_resolution_maximum_exceeded:{text:w.default.createElement(P.AlertTitle,null,(0,k.__)("The image resolution exceeds the maximum allowed size.","elementor")),description:(0,k.__)("Please upload a file with dimensions less than 2048x2048 pixels.","elementor")},external_service_unavailable:{text:w.default.createElement(P.AlertTitle,null,(0,k.__)("Temporary external service issue","elementor")),description:(0,k.__)("It seems that one of our partner services is temporarily unavailable. Please try again in a few minutes.","elementor"),buttonText:(0,k.__)("Try Again","elementor"),buttonAction:C}};return E[b]||E.default}(),N=(null==q?void 0:q.buttonText)&&w.default.createElement(P.Button,{color:"inherit",size:"small",variant:"outlined",onClick:q.buttonAction},q.buttonText);return w.default.createElement(P.Alert,(0,E.default)({severity:q.severity||"error",action:"default"===D&&N},W),q.text,q.description,"bottom"===D&&w.default.createElement(P.Box,{sx:{mt:1}},N))};D.propTypes={error:T.default.oneOfType([T.default.object,T.default.string]),onRetry:T.default.func,actionPosition:T.default.oneOf(["default","bottom"])};i.default=D},14754:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);Object.defineProperty(i,"__esModule",{value:!0}),i.useSubscribeOnPromptHistoryAction=i.usePromptHistoryAction=i.PromptHistoryActionProvider=i.PromptHistoryActionContext=i.ACTION_TYPES=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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(18821)),S=_(b(85707)),P=_(b(62688)),k=b(51192),T=b(39827);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){if("string"==typeof t)return _arrayLikeToArray(t,i);var b={}.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)?_arrayLikeToArray(t,i):void 0}}(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,E=!0,S=!1;return{s:function s(){b=b.call(t)},n:function n(){var t=b.next();return E=t.done,t},e:function e(t){S=!0,w=t},f:function f(){try{E||null==b.return||b.return()}finally{if(S)throw w}}}}function _arrayLikeToArray(t,i){(null==i||i>t.length)&&(i=t.length);for(var b=0,_=Array(i);b<i;b++)_[b]=t[b];return _}var A=i.PromptHistoryActionContext=(0,w.createContext)({}),D={type:"",id:"",data:null},W=i.ACTION_TYPES=Object.freeze({REUSE:"reuse",EDIT:"edit",RESTORE:"restore",REMOVE:"remove"}),q=(0,S.default)((0,S.default)((0,S.default)({},k.HISTORY_TYPES.TEXT,(0,S.default)((0,S.default)((0,S.default)({},W.REUSE,!0),W.EDIT,!0),W.REMOVE,!0)),k.HISTORY_TYPES.CODE,(0,S.default)((0,S.default)({},W.REUSE,!0),W.REMOVE,!0)),k.HISTORY_TYPES.IMAGE,(0,S.default)((0,S.default)({},W.RESTORE,!0),W.REMOVE,!0));(i.PromptHistoryActionProvider=function PromptHistoryActionProvider(t){var i=t.children,b=(0,w.useState)(D),_=(0,E.default)(b,2),C=_[0],S=_[1];return w.default.createElement(A.Provider,{value:{state:C,dispatch:S}},i)}).propTypes={children:P.default.node};i.usePromptHistoryAction=function usePromptHistoryAction(){var t=(0,w.useContext)(A),i=t.state,b=t.dispatch,_=(0,T.usePromptHistoryContext)(),C=_.historyType,E=_.onClose,S=function closeModalAfterAction(t){return function(){t.apply(void 0,arguments),E()}};return{promptHistoryAction:i,onPromptReuse:S((function onPromptReuse(t,i){return b({type:W.REUSE,id:t,data:i})})),onResultEdit:S((function onResultEdit(t,i){return b({type:W.EDIT,id:t,data:i})})),onImagesRestore:S((function onImagesRestore(t,i){return b({type:W.RESTORE,id:t,data:i})})),getAllowedActions:function getAllowedActions(){return q[C]||{}}}},i.useSubscribeOnPromptHistoryAction=function useSubscribeOnPromptHistoryAction(t){var i=(0,w.useContext)(A).state;(0,w.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])}},39827:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(18821)),S=_(b(62688)),P=b(51192),k=b(29691);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=i.PromptHistoryContext=(0,w.createContext)({}),A=".e-ai-dialog-content",D=function getContainer(){return document.querySelector(A)},W=function getContainerHeight(){var t=document.querySelector(A);return null==t?void 0:t.clientHeight},q=function getContentHeight(){return document.querySelector(A).children[0].clientHeight+50},N=function setContentHeight(t){var i=document.querySelector(A);i.style.height="auto"!==t?"".concat(t,"px"):"auto"};(i.PromptHistoryProvider=function PromptHistoryProvider(t){var i=t.historyType,b=t.children,_=(0,w.useState)(!1);return w.default.createElement(T.Provider,{value:{historyType:i,showHistoryState:_}},b)}).propTypes={historyType:S.default.oneOf(Object.values(P.HISTORY_TYPES)).isRequired,children:S.default.node};i.usePromptHistoryContext=function usePromptHistoryContext(){var t=(0,w.useContext)(T),i=t.historyType,b=t.showHistoryState,_=(0,E.default)(b,2),C=_[0],S=_[1],A=(0,w.useState)(!1),H=(0,E.default)(A,2),U=H[0],V=H[1],G=(0,w.useState)(!1),Y=(0,E.default)(G,2),K=Y[0],Z=Y[1];(0,w.useEffect)((function(){if(C!==U||C!==K)return i===P.HISTORY_TYPES.IMAGE?function handleFullScreenHistoryState(){if(C)return V(!0),void setTimeout((function(){return Z(!0)}),200);Z(!1),setTimeout((function(){return V(!1)}),500)}():void function handleDefaultHistoryState(){if(C){var t=q();return N(t),void setTimeout((function(){if(t<(0,k.vh)(61))return N((0,k.vh)(61)),setTimeout((function(){return V(!0)}),200),void setTimeout((function(){return Z(!0)}),300);V(!0),Z(!0)}),20)}Z(!1),setTimeout((function(){V(!1),N(q()),setTimeout((function(){return N("auto")}),300)}),500)}()}),[C]);return{historyType:i,isOpen:K,isModalOpen:U,showHistory:C,onOpen:function onOpen(){S(!0)},onClose:function onClose(){S(!1)},getContainer:D,getContainerHeight:W}}},64766:(t,i,b)=>{"use strict";var _=b(96784);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(41594)),w=_(b(85707)),E=_(b(10906)),S=b(12470),P=b(85083),k=_(b(11048));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){if("string"==typeof t)return _arrayLikeToArray(t,i);var b={}.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)?_arrayLikeToArray(t,i):void 0}}(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,E=!0,S=!1;return{s:function s(){b=b.call(t)},n:function n(){var t=b.next();return E=t.done,t},e:function e(t){S=!0,w=t},f:function f(){try{E||null==b.return||b.return()}finally{if(S)throw w}}}}function _arrayLikeToArray(t,i){(null==i||i>t.length)&&(i=t.length);for(var b=0,_=Array(i);b<i;b++)_[b]=t[b];return _}var T="date",A=i.LAST_7_DAYS_KEY="7-days",D=i.LAST_30_DAYS_KEY="30-days",W=(0,S.__)("F","elementor"),q=i.groupPromptHistoryData=function groupPromptHistoryData(t){var i,b=function sortPromptHistoryData(t){return(0,E.default)(t).sort((function(t,i){return new Date(i[T])-new Date(t[T])}))}(t),_=new Date,C=(0,w.default)((0,w.default)({},A,{label:(0,S.__)("Last 7 days","elementor"),items:[]}),D,{label:(0,S.__)("Last 30 days","elementor"),items:[]}),k=_createForOfIteratorHelper(b);try{for(k.s();!(i=k.n()).done;){var q=i.value,N=new Date(q[T]),H=(0,P.daysDiff)(N,_);if(H<=7)C[A].items.push(q);else if(H<=30)C[D].items.push(q);else{var U=N.getMonth();C[U]||(C[U]={label:(0,P.translateDate)(W,N),items:[]}),C[U].items.push(q)}}}catch(t){k.e(t)}finally{k.f()}return C};i.renderPeriods=function renderPeriods(t){var i,b,_=t.items,w=t.onDelete,E=q(_),S=[];null!==(i=E[A])&&void 0!==i&&null!==(i=i.items)&&void 0!==i&&i.length&&S.push(C.default.createElement(k.default,{periodTitle:E[A].label,onHistoryItemDelete:w,historyItems:E[A].items})),null!==(b=E[D])&&void 0!==b&&null!==(b=b.items)&&void 0!==b&&b.length&&S.push(C.default.createElement(k.default,{periodTitle:E[D].label,onHistoryItemDelete:w,historyItems:E[D].items}));for(var T=P.MONTH_DECEMBER_INDEX;T>=P.MONTH_JANUARY_INDEX;T--)E[T]&&S.push(C.default.createElement(k.default,{periodTitle:E[T].label,onHistoryItemDelete:w,historyItems:E[T].items}));return S}},58541:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C,w=_(b(41594)),E=_(b(78304)),S=_(b(40453)),P=_(b(98832)),k=b(86956),T=b(12470),A=_(b(62688)),D=b(44048),W=["isActive"],q=(0,k.styled)(k.IconButton)(C||(C=(0,P.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  ")})),N=function PromptHistoryButton(t){var i=t.isActive,b=(0,S.default)(t,W);return w.default.createElement(q,(0,E.default)({"aria-label":(0,T.__)("Show prompt history","elementor"),type:"button",size:"small",isActive:i},b),w.default.createElement(D.HistoryIcon,null))};N.propTypes={isActive:A.default.bool.isRequired};i.default=N},33488:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(61790)),S=_(b(58155)),P=b(86956),k=b(12470),T=_(b(16737)),A=_(b(22128)),D=_(b(34757)),W=_(b(43091)),q=b(64766),N=_(b(64428)),H=_(b(30808)),U=_(b(28685)),V=b(39827),G=_(b(49106));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 Y=["invalid_connect_data","no_subscription"];i.default=function PromptHistoryModal(t){var i=(0,w.useRef)((function(){})),b=(0,w.useRef)(null),_=(0,V.usePromptHistoryContext)(),C=_.historyType,K=_.onClose,Z=(0,T.default)(C),Q=Z.items,J=Z.meta,ee=Z.isLoading,te=Z.error,ne=Z.fetchData,de=Z.deleteItemById,fe=(0,D.default)(),pe=fe.isLoading,me=fe.error,ge=fe.deleteItem,ye=te||me,ve=ee||pe,be=J&&(null==J?void 0:J.currentPage)===(null==J?void 0:J.totalPages),Ee=(null==Q?void 0:Q.length)>0&&(null==J?void 0:J.allowedDays)<90&&be;(0,w.useEffect)((function(){i.current=(0,S.default)(E.default.mark((function _callee(){return E.default.wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",ne({page:1,limit:10}));case 1:case"end":return t.stop()}}),_callee)}))),i.current()}),[]);var xe=function(){var t=(0,S.default)(E.default.mark((function _callee4(t){return E.default.wrap((function _callee4$(b){for(;;)switch(b.prev=b.next){case 0:return i.current=(0,S.default)(E.default.mark((function _callee3(){return E.default.wrap((function _callee3$(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,ge(t);case 2:return i.abrupt("return",i.sent);case 3:case"end":return i.stop()}}),_callee3)}))),b.next=3,i.current();case 3:me||de(t);case 4:case"end":return b.stop()}}),_callee4)})));return function onHistoryItemDelete(i){return t.apply(this,arguments)}}();return w.default.createElement(G.default,t,w.default.createElement(A.default,{onClose:K}),ye&&!Y.includes(ye)&&w.default.createElement(W.default,{error:ye,onRetry:i.current,sx:{position:"absolute",zIndex:1,marginTop:ve?.5:"revert"}}),ve&&w.default.createElement(P.LinearProgress,{role:"progressbar","aria-label":(0,k.__)("Loading","elementor"),color:"secondary"}),w.default.createElement(P.Box,{sx:{overflowY:"scroll",height:"85%"},ref:b},ye&&Y.includes(ye)&&w.default.createElement(U.default,{variant:"full",historyType:C}),!ye&&0===(null==Q?void 0:Q.length)&&w.default.createElement(N.default,{historyType:C}),(null==Q?void 0:Q.length)>0&&w.default.createElement(H.default,{loadMore:function loadNext(){ve||be||(i.current=(0,S.default)(E.default.mark((function _callee2(){return E.default.wrap((function _callee2$(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",ne({page:J.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:!be},(0,q.renderPeriods)({items:Q,onDelete:xe})),Ee&&w.default.createElement(U.default,{variant:"small",historyType:C})))}},51192:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.getTranslatedPromptHistoryType=i.TRANSLATED_HISTORY_TYPES_FALLBACK=i.TRANSLATED_HISTORY_TYPES=i.HISTORY_TYPES=void 0;var C=_(b(85707)),w=b(12470),E=i.HISTORY_TYPES=Object.freeze({ALL:"all",TEXT:"text",CODE:"code",IMAGE:"images",BLOCK:"blocks"}),S=i.TRANSLATED_HISTORY_TYPES_FALLBACK=(0,w.__)("things","elementor"),P=i.TRANSLATED_HISTORY_TYPES=Object.freeze((0,C.default)((0,C.default)((0,C.default)((0,C.default)({},E.TEXT,(0,w.__)("texts","elementor")),E.CODE,(0,w.__)("code","elementor")),E.IMAGE,(0,w.__)("images","elementor")),E.BLOCK,(0,w.__)("blocks","elementor")));i.getTranslatedPromptHistoryType=function getTranslatedPromptHistoryType(t){return P[t]?P[t]:S}},9196:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(58541)),E=_(b(33488)),S=b(39827),P="prompt-history-modal";i.default=function PromptHistory(){var t=(0,S.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":P}),b&&C.default.createElement(E.default,{id:P}))}},82521:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(62688)),E=_(b(74223)),S=b(44048),P=_(b(7793)),k=C.default.createElement(S.AIIcon,{"data-testid":"e-ph-fi"}),T=Object.freeze({"enhance-image-prompt":C.default.createElement(E.default,null),"get-text":C.default.createElement(E.default,null),"edit-text":C.default.createElement(E.default,null),"custom-css":C.default.createElement(P.default,null),"custom-code":C.default.createElement(P.default,null)}),A=function PromptHistoryActionIcon(t){var i=t.action;return T[i]?T[i]:k};A.propTypes={action:w.default.string.isRequired};i.default=A},49106:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C,w=_(b(41594)),E=_(b(78304)),S=_(b(40453)),P=_(b(98832)),k=b(86956),T=b(12470),A=_(b(62688)),D=b(39827),W=["children"],q=(0,k.styled)(k.Box)(C||(C=(0,P.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 )")})),N=function ModalContainer(t){var i=t.children,b=(0,S.default)(t,W),_=(0,D.usePromptHistoryContext)(),C=_.isOpen,P=_.isModalOpen,A=_.onClose,N=_.getContainerHeight,H=_.getContainer;return w.default.createElement(k.Modal,(0,E.default)({container:H(),open:P,hideBackdrop:!0,onClose:A,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(q,{"aria-label":(0,T.__)("Prompt history modal","elementor"),height:N()},i))))};N.propTypes={isOpen:A.default.bool.isRequired,isModalOpen:A.default.bool.isRequired,onClose:A.default.func.isRequired,children:A.default.oneOfType([A.default.arrayOf(A.default.node),A.default.node])};i.default=N},64428:(t,i,b)=>{"use strict";var _=b(12470).sprintf,C=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=C(b(41594)),E=b(86956),S=b(12470),P=C(b(62688)),k=b(51192),T=function PromptHistoryEmpty(t){var i=t.historyType;return w.default.createElement(E.Stack,{justifyContent:"center",sx:{height:"100%",textAlign:"center"},"data-testid":"e-ph-empty"},w.default.createElement(E.Typography,{variant:"h6"},(0,S.__)("Prepare to be amazed","elementor")),w.default.createElement(E.Typography,{variant:"body1"},_((0,S.__)("This is where you'll find all the %s you've generated using Elementor AI.","elementor"),(0,k.getTranslatedPromptHistoryType)(i))))};T.propTypes={historyType:P.default.oneOf(Object.values(k.HISTORY_TYPES)).isRequired};i.default=T},22128:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=b(86956),E=b(12470),S=_(b(62688)),P=b(44048),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"}})),T=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,E.__)("History","elementor")),C.default.createElement(w.IconButton,{size:"small","aria-label":(0,E.__)("Hide prompt history","elementor"),onClick:i},C.default.createElement(P.XIcon,{fontSize:"small"})))};T.propTypes={onClose:S.default.func.isRequired};i.default=T},30734:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(78304)),E=_(b(40453)),S=b(86956),P=_(b(62688)),k=_(b(69485)),T=["tooltipTitle"],A=function ActionButton(t){var i=t.tooltipTitle,b=(0,E.default)(t,T);return C.default.createElement(k.default,{title:i,placement:"top"},C.default.createElement(S.IconButton,(0,w.default)({type:"button",size:"small",disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0},b)))};A.propTypes={tooltipTitle:P.default.string.isRequired};i.default=A},16097:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C,w,E=_(b(41594)),S=_(b(98832)),P=b(86956),k=_(b(62688)),T=(0,P.styled)(P.Typography)(C||(C=(0,S.default)(["\n  color: ",";\n"])),(function(t){return t.theme.palette.secondary.light})),A=(0,P.styled)("img")(w||(w=(0,S.default)(["\n  height: 72px;\n  width: 72px;\n  object-fit: cover;\n  margin-right: ",";\n"])),(function(t){return t.theme.spacing(.5)})),D=function PromptHistoryItemSecondaryContent(t){var i=t.date,b=t.thumbnails;return E.default.createElement(P.Stack,{direction:"column",width:"90%"},E.default.createElement(T,{variant:"caption"},i),(null==b?void 0:b.length)>0&&E.default.createElement(P.Stack,{flexDirection:"row",mt:1},b.map((function(t){return E.default.createElement(A,{key:"thumbnail-".concat(t.seed),alt:"",src:t.image_url})}))))};D.propTypes={date:k.default.string.isRequired,thumbnails:k.default.array};i.default=D},45301:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C,w=_(b(41594)),E=_(b(98832)),S=b(86956),P=_(b(62688)),k=_(b(69485)),T=(0,S.styled)(S.Typography)(C||(C=(0,E.default)(["\n  margin-bottom: ",";\n"])),(function(t){return t.theme.spacing(.5)})),A=function PromptHistoryItemTitle(t){var i=t.prompt;return w.default.createElement(k.default,{title:i,arrow:!1,placement:"bottom-start"},w.default.createElement(T,{variant:"body2",noWrap:!0,paragraph:!0},i))};A.propTypes={prompt:P.default.string.isRequired};i.default=A},5682:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C,w,E,S,P=_(b(41594)),k=_(b(40453)),T=_(b(98832)),A=b(86956),D=b(12470),W=_(b(62688)),q=_(b(51066)),N=b(44048),H=_(b(65802)),U=_(b(30734)),V=b(14754),G=_(b(82521)),Y=_(b(33057)),K=_(b(45301)),Z=_(b(16097)),Q=["id","date","onHistoryItemDelete"],J=(0,A.styled)(A.ListItem)(C||(C=(0,T.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)")})),ee=(0,A.styled)(A.ListItemButton)(w||(w=(0,T.default)(["\n  padding: ",";\n  align-items: flex-start;\n  cursor: inherit;\n"])),(function(t){return t.theme.spacing(.5,2)})),te=(0,A.styled)(A.ListItemIcon)(E||(E=(0,T.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)})),ne=(0,A.styled)(A.Box)(S||(S=(0,T.default)(["\n  & .MuiSvgIcon-root {\n    font-size: 1rem;\n  }\n"]))),de=function PromptHistoryItem(t){var i=t.id,b=t.date,_=t.onHistoryItemDelete,C=(0,k.default)(t,Q),w=(0,V.usePromptHistoryAction)(),E=w.getAllowedActions,S=w.onPromptReuse,T=w.onResultEdit,W=w.onImagesRestore,de=C.action,fe=C.prompt,pe=C.text,me=C.images,ge=C.thumbnails,ye=C.imageType,ve=C.ratio,be=E();return P.default.createElement(J,{tabIndex:"0","data-testid":"e-ph-i",disableGutters:!0,disablePadding:!0,actionsCount:Object.keys(be).length},P.default.createElement(ee,{component:"div",role:void 0},P.default.createElement(te,null,P.default.createElement(G.default,{action:de})),P.default.createElement(A.ListItemText,{disableTypography:!0,primary:P.default.createElement(A.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",height:"16px"},P.default.createElement(K.default,{prompt:fe}),P.default.createElement(ne,{className:"e-prompt-history-item-actions"},be[V.ACTION_TYPES.REMOVE]&&P.default.createElement(U.default,{onClick:function onClick(){return _(i)},"aria-label":(0,D.__)("Remove item","elementor"),tooltipTitle:(0,D.__)("Remove","elementor")},P.default.createElement(N.TrashIcon,null)),be[V.ACTION_TYPES.REUSE]&&P.default.createElement(U.default,{onClick:function onClick(){return S(i,fe)},"aria-label":(0,D.__)("Reuse prompt","elementor"),tooltipTitle:(0,D.__)("Reuse prompt","elementor")},P.default.createElement(Y.default,null)),be[V.ACTION_TYPES.RESTORE]&&P.default.createElement(U.default,{onClick:function onClick(){return W(i,{prompt:fe,images:me,imageType:ye,ratio:ve})},"aria-label":(0,D.__)("Restore","elementor"),tooltipTitle:(0,D.__)("Restore","elementor")},P.default.createElement(H.default,null)),be[V.ACTION_TYPES.EDIT]&&P.default.createElement(U.default,{onClick:function onClick(){return T(i,pe)},"aria-label":(0,D.__)("Edit result","elementor"),tooltipTitle:(0,D.__)("Edit","elementor")},P.default.createElement(q.default,null)))),secondary:P.default.createElement(Z.default,{date:b,thumbnails:ge})})))};de.propTypes={id:W.default.string.isRequired,action:W.default.string.isRequired,prompt:W.default.string.isRequired,date:W.default.string.isRequired,onHistoryItemDelete:W.default.func.isRequired,text:W.default.string,images:W.default.array,thumbnails:W.default.array,imageType:W.default.string,ratio:W.default.string};i.default=de},11048:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(78304)),E=_(b(40453)),S=b(86956),P=b(12470),k=_(b(62688)),T=_(b(5682)),A=b(85083),D=["id","date"],W=(0,S.styled)(S.List)((function(t){var i=t.theme;return{borderBottom:"1px solid ".concat(i.palette.action.focus)}})),q=(0,S.styled)(S.Typography)((function(t){var i=t.theme;return{padding:i.spacing(1.5,2),color:i.palette.secondary.light}})),N=(0,P.__)("F j, g:i A","elementor"),H=function PromptHistoryPeriod(t){var i=t.periodTitle,b=t.historyItems,_=t.onHistoryItemDelete;return C.default.createElement(W,{"data-testid":"e-ph-p",subheader:C.default.createElement(S.ListSubheader,{disableSticky:!0,disableGutters:!0},C.default.createElement(q,{variant:"body2",role:"heading","aria-level":"6"},i))},b.map((function(t){var i=t.id,b=t.date,S=(0,E.default)(t,D);return C.default.createElement(T.default,(0,w.default)({key:i,date:(0,A.translateDate)(N,b),onHistoryItemDelete:function onHistoryItemDelete(){return _(i)},id:i},S))})))};H.propTypes={periodTitle:k.default.string.isRequired,historyItems:k.default.array.isRequired,onHistoryItemDelete:k.default.func.isRequired};i.default=H},28685:(t,i,b)=>{"use strict";var _=b(12470).sprintf,C=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=C(b(41594)),E=C(b(85707)),S=b(86956),P=b(12470),k=C(b(62688)),T=b(44048),A=b(51192),D="full",W="small",q=(0,E.default)((0,E.default)({},D,(0,P.__)("Want to see your %s generation history for as far as the past 90 days?","elementor")),W,(0,P.__)("Want to see your %s generation history for the past 90 days?","elementor")),N=function PromptHistoryUpgrade(t){var i=t.variant,b=t.historyType;return w.default.createElement(S.Stack,{justifyContent:"center",sx:{height:W===i?"auto":"100%",textAlign:"center",p:2},"data-testid":"e-ph-upgrade-".concat(i)},w.default.createElement(S.Typography,{variant:"body1",sx:{marginBottom:2}},function getMessage(t,i){var b=q[t]||q[D],C=(0,A.getTranslatedPromptHistoryType)(i);return _(b,C)}(i,b)),w.default.createElement(S.Button,{variant:"contained",color:"promotion",size:"small",href:"https://go.elementor.com/ai-popup-purchase-dropdown/",target:"_blank",rel:"noopener noreferrer",startIcon:w.default.createElement(T.UpgradeIcon,null),sx:{width:"50%",alignSelf:"center","&:hover":{color:"promotion.contrastText"}}},(0,P.__)("Upgrade now","elementor")))};N.propTypes={variant:k.default.oneOf([D,W]).isRequired,historyType:k.default.oneOf(Object.values(A.HISTORY_TYPES)).isRequired};i.default=N},53497:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=b(86956),E=b(12470),S=_(b(62688)),P=function PromptLibraryLink(t){return C.default.createElement(w.Typography,{variant:"body2",color:"text.secondary"},(0,E.__)("For more suggestions, explore our")," ",C.default.createElement(w.Link,{href:t.libraryLink,className:"elementor-clickable",target:"_blank"},(0,E.__)("prompt library")))};P.propTypes={libraryLink:S.default.string};i.default=P},29983:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(78304)),S=b(12470),P=_(b(80092));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(P.default,(0,E.default)({name:"prompt",placeholder:(0,S.__)("Describe the text and tone you want to use","elementor")+"..."},t,{ref:i}))}));i.default=k},54178:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=b(86956),E=b(12470),S=_(b(62688)),P=function PromptSuggestions(t){var i;return C.default.createElement(w.Box,null,C.default.createElement(w.Typography,{variant:"subtitle1",color:"text.secondary"},(0,E.__)("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)}})}))),t.children)};P.propTypes={suggestions:S.default.arrayOf(S.default.string),onSelect:S.default.func.isRequired,suggestionFilter:S.default.func,children:S.default.node};i.default=P},6942:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(78304)),S=b(86956),P=_(b(62688));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(S.TextField,(0,E.default)({inputRef:i,multiline:!0,minRows:4,maxRows:20,color:"secondary"},t))}));k.propTypes={value:P.default.string,onChange:P.default.func,helperText:P.default.string};i.default=k},69485:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(78304)),E=_(b(40453)),S=b(86956),P=_(b(62688)),k=["children"],T=function Tooltip(t){var i=t.children,b=(0,E.default)(t,k);return C.default.createElement(S.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)};T.propTypes={children:P.default.oneOfType([P.default.arrayOf(P.default.node),P.default.node])};i.default=T},97601:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(78304)),E=_(b(40453)),S=b(86956),P=_(b(62688)),k=["children"],T=function OverlayBarText(t){var i=t.children,b=(0,E.default)(t,k);return C.default.createElement(S.Typography,(0,w.default)({variant:"caption",color:"common.white"},b),i)};T.propTypes={children:P.default.node};i.default=T},90157:(t,i,b)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var _=b(86956),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},3301:(t,i,b)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var _=b(86956),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},97223:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(78304)),E=_(b(85707)),S=_(b(40453)),P=b(86956),k=_(b(62688)),T=["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,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 A=function Panel(t){var i=t.sx,b=void 0===i?{}:i,_=(0,S.default)(t,T);return C.default.createElement(C.default.Fragment,null,C.default.createElement(P.Box,(0,w.default)({sx:_objectSpread({p:4,width:360,flexShrink:0,height:"100%",overflowY:"auto"},b)},_),_.children),C.default.createElement(P.Divider,{orientation:"vertical"}))};A.propTypes={children:k.default.node,sx:k.default.object};i.default=A},80092:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(78304)),S=b(86956),P=_(b(62688)),k=b(44048);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=(0,S.styled)(S.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"}}}})),A=(0,w.forwardRef)((function(t,i){return w.default.createElement(T,(0,E.default)({autoFocus:!0,fullWidth:!0,required:!0,size:"small",color:"secondary",InputProps:{autoComplete:"off",startAdornment:w.default.createElement(S.InputAdornment,{position:"start"},w.default.createElement(k.SearchIcon,null))},placeholder:t.placeholder,name:t.name,value:t.value,onChange:t.onChange},t,{inputRef:i}))}));A.propTypes={placeholder:P.default.string,name:P.default.string,value:P.default.string,onChange:P.default.func};i.default=A},36858:(t,i,b)=>{"use strict";var _=b(12470).__,C=b(62688),w=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var E=w(b(41594)),S=w(b(78304)),P=w(b(40453)),k=b(86956),T=["onClose"],A=function UpgradeBanner(t){var i=t.onClose,b=(0,P.default)(t,T);return E.default.createElement(k.Alert,(0,S.default)({icon:!1,action:E.default.createElement(k.AlertAction,{onClick:function onClick(){return window.open("https://go.elementor.com/ai-banner-free-upgrade/","_blank")}},_("Upgrade","elementor")),variant:"filled",color:"promotion",onClose:i},b),_("You’re using a limited license. Get maximum access to Elementor AI.","elementor"))};A.propTypes={onClose:C.func,sx:C.object};i.default=A},35121:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(18821)),S=b(86956),P=b(12470),k=_(b(62688)),T=b(44048);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 A=(0,S.styled)(S.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"}})),D=(0,S.styled)(S.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))"}}})),W=[(0,P.__)("Get spot-on suggestions from AI Copilot and AI Context with appropriate designs, layouts, and content for your business.","elementor"),(0,P.__)("Generate professional texts about any topic, in any tone.","elementor"),(0,P.__)("Effortlessly create or enhance stunning images and bring your ideas to life.","elementor"),(0,P.__)("Unleash infinite possibilities with the custom code generator.","elementor"),(0,P.__)("Access 30-days of AI History with the AI Starter plan and 90-days with the Power plan.","elementor")],q=(0,S.styled)(S.Chip)((function(){return{"& .MuiChip-label":{lineHeight:1.5},"& .MuiSvgIcon-root.MuiChip-icon":{fontSize:"1.25rem"}}})),N=function UpgradeChip(t){var i=t.hasSubscription,b=void 0!==i&&i,_=t.usagePercentage,C=void 0===_?0:_,k=(0,w.useState)(!1),N=(0,E.default)(k,2),H=N[0],U=N[1],V=(0,w.useRef)(null),G=(0,w.useRef)(null),Y="https://go.elementor.com/ai-popup-purchase-dropdown/";b&&(Y=C>=100?"https://go.elementor.com/ai-popup-upgrade-limit-reached/":"https://go.elementor.com/ai-popup-upgrade-limit-reached-80-percent/");var K=b?(0,P.__)("Upgrade Elementor AI","elementor"):(0,P.__)("Get Elementor AI","elementor");return w.default.createElement(S.Box,{component:"span","aria-owns":H?"e-ai-upgrade-popover":void 0,"aria-haspopup":"true",onMouseEnter:function showPopover(){return U(!0)},onMouseLeave:function hidePopover(){return U(!1)},ref:V,display:"flex",alignItems:"center"},w.default.createElement(q,{color:"promotion",label:(0,P.__)("Upgrade","elementor"),icon:w.default.createElement(T.AIIcon,null),size:"small"}),w.default.createElement(S.Popper,{open:H,anchorEl:V.current,sx:{zIndex:"170001",maxWidth:300},modifiers:[{name:"arrow",enabled:!0,options:{element:G.current}}]},w.default.createElement(A,null,w.default.createElement(D,{ref:G}),w.default.createElement(S.Typography,{variant:"h5",color:"text.primary"},(0,P.__)("Unlimited access to Elementor AI","elementor")),w.default.createElement(S.List,{sx:{mb:1}},W.map((function(t,i){return w.default.createElement(S.ListItem,{key:i,disableGutters:!0,sx:{alignItems:"flex-start"}},w.default.createElement(S.ListItemIcon,null,w.default.createElement(T.CheckedCircleIcon,null)),w.default.createElement(S.ListItemText,{sx:{m:0}},w.default.createElement(S.Typography,{variant:"body2"},t)))}))),w.default.createElement(S.Button,{variant:"contained",color:"promotion",size:"small",href:Y,target:"_blank",startIcon:w.default.createElement(T.AIIcon,null),sx:{"&:hover":{color:"promotion.contrastText"}}},K))))};i.default=N;N.propTypes={hasSubscription:k.default.bool,usagePercentage:k.default.number}},35036:(t,i,b)=>{"use strict";var _=b(12470).sprintf,C=b(12470).__,w=b(62688),E=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var S=E(b(41594)),P=E(b(40453)),k=E(b(78304)),T=E(b(85707)),A=b(86956),D=b(54076),W=["onClose","usagePercentage","hasSubscription","feature"],q="subscription",N="noSubscription",H=function getUsageTitle(t){return _(C("You’ve used %s of credits for this AI feature.","elementor"),t)},U=H("95%"),V=H("80%"),G=H("75%"),Y=C("Get maximum access.","elementor"),K=Object.keys(D.FREE_TRIAL_FEATURES_NAMES),Z=[{threshold:95,title:(0,T.default)((0,T.default)({},q,U),N,U),url:(0,T.default)((0,T.default)({},q,"https://go.elementor.com/ai-banner-paid-95-limit-reach/"),N,"https://go.elementor.com/ai-banner-free-95-limit-reach/"),color:"error"},{threshold:80,title:(0,T.default)((0,T.default)({},q,V),N,V),url:(0,T.default)((0,T.default)({},q,"https://go.elementor.com/ai-banner-paid-80-limit-reach/"),N,"https://go.elementor.com/ai-banner-free-80-limit-reach/"),color:"warning"},{threshold:75,title:(0,T.default)((0,T.default)({},q,G),N,G),url:(0,T.default)((0,T.default)({},q,"https://go.elementor.com/ai-banner-paid-80-limit-reach/"),N,"https://go.elementor.com/ai-banner-free-80-limit-reach/"),color:"warning"}],Q=function UpgradeButton(t){return S.default.createElement(A.Button,(0,k.default)({color:"inherit",variant:"outlined",sx:{border:"2px solid"}},t),C("Upgrade now","elementor"))},J=function UsageLimitAlert(t){t.onClose;var i=t.usagePercentage,b=t.hasSubscription,w=t.feature,E=(0,P.default)(t,W),H=Z.find((function(t){var b=t.threshold;return i>=b}));if(!H)return null;var U=b?q:N,V=(0,T.default)((0,T.default)({},q,Y),N,function getDescriptionNoSubscription(t){var i=K.filter((function(i){return i!==t})).map((function(t){return D.FREE_TRIAL_FEATURES_NAMES[t]})).join(", ");return _(C("Upgrade now to keep using this feature. You still have credits for other AI features (%s, etc.)","elementor"),i)}(w)),G=H.title,J=H.url,ee=H.color;return S.default.createElement(A.Alert,(0,k.default)({severity:"warning",action:S.default.createElement(Q,{onClick:function handleUpgradeClick(){return window.open(J[U],"_blank")}}),color:ee},E),S.default.createElement(A.AlertTitle,null,G[U]),V[U])};J.propTypes={onClose:w.func,usagePercentage:w.number,hasSubscription:w.bool,feature:w.string};i.default=J},38310:(t,i,b)=>{"use strict";var _=b(62688),C=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=C(b(41594)),E=C(b(36858)),S=C(b(35036)),P=C(b(26346)),k=function UsageMessages(t){var i=t.hasSubscription,b=t.usagePercentage,_=t.sx,C=t.feature,k=(0,P.default)({usagePercentage:b,hasSubscription:i}),T=k.showBanner,A=k.markBannerAsViewed;return w.default.createElement(w.default.Fragment,null,T&&w.default.createElement(E.default,{onClose:A,sx:_}),w.default.createElement(S.default,{hasSubscription:i,usagePercentage:b,sx:_,feature:C}))};k.propTypes={hasSubscription:_.bool,usagePercentage:_.number,sx:_.object,feature:_.string};i.default=k},90291:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.VoicePromotionAlert=void 0;var C=_(b(85707)),w=_(b(41594)),E=b(86956),S=_(b(50923)),P=_(b(80366)),k=_(b(62688)),T=b(12470);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 A=i.VoicePromotionAlert=function VoicePromotionAlert(t){var i=(0,P.default)(t.introductionKey),b=i.isViewed,_=i.markAsViewed;return b?null:w.default.createElement(E.Box,{sx:_objectSpread({mt:2},t.sx),alignItems:"top"},w.default.createElement(E.Alert,{severity:"info",variant:"standard",icon:w.default.createElement(S.default,{sx:{alignSelf:"flex-start"}}),onClose:_},(0,T.__)("Get improved results from AI by adding personal context.","elementor"),w.default.createElement(E.Link,{onClick:function onClick(){return $e.route("panel/global/menu")},className:"elementor-clickable",style:{textDecoration:"none"},color:"info.main",href:"#"},(0,T.__)("Let’s do it","elementor"))))};A.propTypes={sx:k.default.object,introductionKey:k.default.string};i.default=A},97474:(t,i,b)=>{"use strict";var _=b(62688),C=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.WizardDialogWrapper=void 0;var w=C(b(4508)),E=C(b(41594));(i.WizardDialogWrapper=function WizardDialogWrapper(t){return E.default.createElement(w.default,{onClose:t.onClose},E.default.createElement(w.default.Header,{onClose:t.onClose}),E.default.createElement(w.default.Content,{dividers:!0},t.children))}).propTypes={onClose:_.func.isRequired,children:_.node.isRequired}},4508:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(78304)),E=_(b(85707)),S=_(b(40453)),P=b(86956),k=_(b(62688)),T=_(b(99476)),A=["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,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 D=function WizardDialog(t){return C.default.createElement(P.Dialog,{open:!0,onClose:t.onClose,fullWidth:!0,hideBackdrop:!0,maxWidth:"lg",PaperProps:{sx:{height:"88vh"}},sx:{zIndex:9999}},t.children)};D.propTypes={onClose:k.default.func.isRequired,children:k.default.node.isRequired};var W=function WizardDialogContent(t){var i=t.sx,b=void 0===i?{}:i,_=(0,S.default)(t,A);return C.default.createElement(P.DialogContent,(0,w.default)({},_,{sx:_objectSpread({display:"flex",flexDirection:"column",justifyContent:"center"},b)}))};W.propTypes={sx:k.default.object},D.Header=T.default,D.Content=W;i.default=D},40128:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.RequestIdsProvider=void 0,i.generateIds=function generateIds(t){var i;t.id=k().toString(),null!==(i=t.elements)&&void 0!==i&&i.length&&t.elements.map((function(t){return generateIds(t)}));return t},i.useRequestIds=i.getUniqueId=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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(18821)),S=_(b(62688));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)({}),k=(i.useRequestIds=function useRequestIds(){var t=(0,w.useContext)(P);if(!t)throw new Error("useRequestIds must be used within a RequestIdsProvider");return t},i.getUniqueId=function getUniqueId(t){return t+"-"+Math.random().toString(16).substr(2,7)});window.EDITOR_SESSION_ID=window.EDITOR_SESSION_ID||k("editor-session"),(i.RequestIdsProvider=function RequestIdsProvider(t){var i=(0,w.useRef)(window.EDITOR_SESSION_ID),b=(0,w.useRef)(""),_=(0,w.useRef)(""),C=(0,w.useRef)(""),S=(0,w.useRef)("");b.current=k("session");var T=(0,w.useState)(0),A=(0,E.default)(T,2),D=A[0],W=A[1];return w.default.createElement(P.Provider,{value:{editorSessionId:i,sessionId:b,generateId:_,batchId:C,requestId:S,setGenerate:function setGenerate(){return _.current=k("generate"),_},setBatch:function setBatch(){return C.current=k("batch"),C},setRequest:function setRequest(){return S.current=k("request"),S},usagePercentage:D,updateUsagePercentage:function updateUsagePercentage(t){W(t)}}},t.children)}).propTypes={children:S.default.node.isRequired};i.default=P},85083:(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 _,C;return null!==(_=window.wp)&&void 0!==_&&_.date?(0,(null===(C=window.wp)||void 0===C?void 0:C.date).dateI18n)(t,i,b):i},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)}},54076:(t,i,b)=>{"use strict";var _=b(12470).__;Object.defineProperty(i,"__esModule",{value:!0}),i.FREE_TRIAL_FEATURES_NAMES=void 0;i.FREE_TRIAL_FEATURES_NAMES={TEXT:_("Text","elementor"),IMAGES:_("Images","elementor"),CODE:_("Code","elementor"),CONTAINERS:_("Containers","elementor")}},7643:(t,i,b)=>{"use strict";var _=b(62688),C=b(10564);Object.defineProperty(i,"__esModule",{value:!0}),i.FocusOutListener=FocusOutListener,i.useFocusOutListener=function useFocusOutListener(){var t=w.useRef(null),i=w.useRef(null);return{indicatorRef:i,reset:function reset(){var t;return null===(t=i.current)||void 0===t?void 0:t.focus()},remove:function remove(){return clearTimeout(t.current)},runAction:function runAction(i){t.current=setTimeout(i,250)}}};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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594));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 FocusOutListener(t){var i=t.children,b=t.listener,_=t.onFocusOut,C=b.indicatorRef,E=b.reset,S=b.remove,P=b.runAction;return w.useEffect((function(){return E(),S()}),[]),w.createElement(w.Fragment,null,i,w.createElement("input",{style:{width:0,height:0,padding:0,margin:0,outline:0,border:0,opacity:0,position:"fixed"},onFocus:S,onBlur:function onBlur(){return P(_)},ref:C}))}FocusOutListener.propTypes={children:_.node,listener:_.object,onFocusOut:_.func}},29691:(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}},3982:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(61790)),w=_(b(85707)),E=_(b(58155)),S=b(95034),P=_(b(48812));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 k=function(){var t=(0,E.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,S.getCustomCSS)(_objectSpread(_objectSpread({},t),{},{html_markup:_,element_id:w})));case 3:return C.abrupt("return",(0,S.getCustomCode)(_objectSpread(_objectSpread({},t),{},{language:b})));case 4:case"end":return C.stop()}}),_callee)})));return function getCodeResult(i,b){return t.apply(this,arguments)}}();i.default=function useCodePrompt(t){var i=t.codeLanguage,b=t.htmlMarkup,_=t.elementId,C=t.initialCredits;return(0,P.default)((function(t){return k(t,{codeLanguage:i,htmlMarkup:b,elementId:_})}),{credits:C})}},34757:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(61790)),w=_(b(58155)),E=_(b(18821)),S=b(41594),P=b(95034);i.default=function useDeletePromptHistoryItem(){var t=(0,S.useState)(!1),i=(0,E.default)(t,2),b=i[0],_=i[1],k=(0,S.useState)(""),T=(0,E.default)(k,2),A=T[0],D=T[1],W=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){D(""),_(!0),(0,P.deleteHistoryItem)(t).then((function(){i(!0)})).catch((function(t){var i=(null==t?void 0:t.responseText)||t;D(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:A,deleteItem:W}}},5952:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(61790)),w=_(b(58155)),E=b(95034),S=_(b(48812));i.default=function useExcerptPrompt(t){return(0,S.default)(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",(0,E.getExcerpt)(t));case 1:case"end":return i.stop()}}),_callee)})));return function(i){return t.apply(this,arguments)}}(),t)}},75431:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(61790)),w=_(b(58155)),E=b(95034),S=_(b(80695));i.default=function useFeaturedImagePrompt(t){return(0,S.default)(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",(0,E.getFeaturedImage)(t));case 1:case"end":return i.stop()}}),_callee)})));return function(i){return t.apply(this,arguments)}}(),t)}},64356:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(18821)),w=b(41594);i.default=function useImageNavigation(t){var i=(0,w.useState)(-1),b=(0,C.default)(i,2),_=b[0],E=b[1],S={reset:function reset(){return E(-1)},prev:function prev(){var i=_+1;i>=t.length&&(i=0),E(i)},next:function next(){var i=_-1;i<0&&(i=t.length-1),E(i)}};return{zoomIndex:_,setZoomIndex:E,actions:S}}},10092:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(18821)),w=b(41594);i.default=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)}))}}}},80366:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=function useIntroduction(t){var i,b,_,E=window.elementor?null===(i=window.elementor.config)||void 0===i?void 0:i.user:null===(b=window.elementorAdmin)||void 0===b||null===(b=b.config)||void 0===b?void 0:b.user,S=(0,w.useState)(!(null==E||null===(_=E.introduction)||void 0===_||!_[t])),P=(0,C.default)(S,2),k=P[0],T=P[1];return{isViewed:k,markAsViewed:function markAsViewed(){return t?new Promise((function(i,b){k&&b(),T(!0),elementorCommon.ajax.addRequest("introduction_viewed",{data:{introductionKey:t},error:function error(){T(!1),b()},success:function success(){T(!0),null!=E&&E.introduction&&(E.introduction[t]=!0),i()}})})):Promise.reject()}}};var C=_(b(18821)),w=b(41594)},34161:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=b(95034),w=_(b(48812)),E=b(91258),S=new Map([["media",C.getImagePromptEnhanced],["layout",C.getLayoutPromptEnhanced]]);i.default=function usePromptEnhancer(t,i){var b=(0,E.useConfig)().mode,_=(0,w.default)((function(){return function getResult(t,i,b){if(!S.has(i))throw new Error("Invalid prompt type: ".concat(i));return S.get(i)(t,b)}(t,i,b)}),t),C=_.data,P=_.isLoading;return{enhance:_.send,isEnhancing:P,enhancedPrompt:null==C?void 0:C.result}}},16737:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(61790)),w=_(b(10906)),E=_(b(58155)),S=_(b(18821)),P=_(b(85707)),k=b(41594),T=b(95034);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 A=function getImageThumbnailURL(t,i){return t?"".concat(t,"/?o=").concat(btoa(i,!1)):i},D=function normalizeItems(t){var i=t.meta,b=t.items;return null==b?void 0:b.map((function(t){var b,_,C,w,E,S;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===(w=w.results)||void 0===w?void 0:w.text,images:null==t||null===(E=t.response)||void 0===E||null===(E=E.results)||void 0===E?void 0:E.images,thumbnails:null==t||null===(S=t.response)||void 0===S||null===(S=S.results)||void 0===S||null===(S=S.images)||void 0===S?void 0:S.map((function(t){return _objectSpread(_objectSpread({},t),{},{image_url:A(i.thumbnailUrl,t.image_url)})}))}}))};i.default=function usePromptHistory(t){var i=(0,k.useState)(!1),b=(0,S.default)(i,2),_=b[0],P=b[1],A=(0,k.useState)({}),W=(0,S.default)(A,2),q=W[0],N=W[1],H=(0,k.useState)(""),U=(0,S.default)(H,2),V=U[0],G=U[1],Y=function(){var i=(0,E.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){P(!0),(0,T.getHistory)(t,b,_).then((function(t){var b=JSON.parse(JSON.stringify(q));b.meta=t.meta,b.items=[].concat((0,w.default)((null==b?void 0:b.items)||[]),(0,w.default)(D(t))),N(b),i(!0)})).catch((function(t){var i=(null==t?void 0:t.responseText)||t;G(i),C(i)})).finally((function(){return P(!1)}))})));case 2:case"end":return C.stop()}}),_callee)})));return function fetchData(t){return i.apply(this,arguments)}}();return{isLoading:_,error:V,items:q.items,meta:q.meta,fetchData:Y,deleteItemById:function deleteItemById(t){var i=q.items.findIndex((function(i){return i.id===t}));if(-1===i)return!1;var b=JSON.parse(JSON.stringify(q));return b.items.splice(i,1),N(b),!0}}}},48812:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(61790)),w=_(b(85707)),E=_(b(58155)),S=_(b(18821)),P=_(b(40453)),k=b(41594),T=b(95034),A=b(40128),D=["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}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 W=function normalizeResponse(t){var i=t.text,b=t.response_id,_=t.usage,C=t.images,w=(0,P.default)(t,D),E=_?_.quota-_.usedQuota:0,S={result:i||C,responseId:b,credits:Math.max(E,0),usagePercentage:null==_?void 0:_.usagePercentage};return w.base_template_id&&(S.baseTemplateId=w.base_template_id),S.type=w.template_type,S};i.default=function usePrompt(t,i){var b=(0,k.useState)(!1),_=(0,S.default)(b,2),w=_[0],P=_[1],D=(0,k.useState)(""),q=(0,S.default)(D,2),N=q[0],H=q[1],U=(0,k.useState)(i),V=(0,S.default)(U,2),G=V[0],Y=V[1],K=(0,A.useRequestIds)(),Z=K.updateUsagePercentage,Q=K.usagePercentage,J=(0,k.useRef)(function(){var t=(0,E.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",t);case 1:case"end":return i.stop()}}),_callee)})));return function(i){return t.apply(this,arguments)}}());(0,k.useEffect)((function(){var t=null==G?void 0:G.usagePercentage;t&&t!==Q&&Z(t)}),[G,Q,Z]);var ee=(0,A.useRequestIds)(),te=ee.setRequest,ne=ee.editorSessionId,de=ee.sessionId,fe=ee.generateId,pe=ee.batchId;J.current=(0,k.useCallback)(function(){var i=(0,E.default)(C.default.mark((function _callee2(i){return C.default.wrap((function _callee2$(b){for(;;)switch(b.prev=b.next){case 0:return b.abrupt("return",new Promise((function(b,_){H(""),P(!0);var C=te(),w={editorSessionId:ne.current,sessionId:de.current,generateId:fe.current,batchId:pe.current,requestId:C.current};i=_objectSpread(_objectSpread({},i),{},{requestIds:w}),t(i).then((function(t){var i=W(t);Y(i),b(i)})).catch((function(t){var i=(null==t?void 0:t.responseText)||t;H(i),_(i)})).finally((function(){return P(!1)}))})));case 1:case"end":return b.stop()}}),_callee2)})));return function(t){return i.apply(this,arguments)}}(),[pe,ne,t,fe,de,te]);return{isLoading:w,error:N,data:G,setResult:function setResult(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,b=_objectSpread({},G);b.result=t,i&&(b.responseId=i),Y(b)},reset:function reset(){Y((function(t){return{credits:t.credits,result:"",responseId:""}})),H(""),P(!1)},send:J.current,sendUsageData:function sendUsageData(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G;return t.responseId&&(0,T.setStatusFeedback)(t.responseId)}}}},29552:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(61790)),w=_(b(58155)),E=b(95034),S=_(b(48812)),P=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:if(null==t||!t.instruction){i.next=2;break}return i.abrupt("return",(0,E.getEditText)(t));case 2:return i.abrupt("return",(0,E.getCompletionText)(t));case 3:case"end":return i.stop()}}),_callee)})));return function getTextResult(i){return t.apply(this,arguments)}}();i.default=function useTextPrompt(t){return(0,S.default)(P,t)}},77043:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.useTimeout=void 0;var C=_(b(18821)),w=b(41594);i.useTimeout=function useTimeout(t){var i=(0,w.useState)(!1),b=(0,C.default)(i,2),_=b[0],E=b[1],S=(0,w.useRef)(null);return(0,w.useEffect)((function(){return S.current=setTimeout((function(){E(!0)}),t),function(){clearTimeout(S.current)}}),[t]),[_,function turnOffTimeout(){clearTimeout(S.current),E(!1)}]}},26346:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.USAGE_PERCENTAGE_THRESHOLD=void 0;var C=_(b(80366)),w=i.USAGE_PERCENTAGE_THRESHOLD=75;i.default=function useUpgradeMessage(t){var i=t.usagePercentage,b=t.hasSubscription,_=(0,C.default)("e-ai-upgrade-message"),E=_.isViewed,S=_.markAsViewed,P=!b;return{showBadge:i>=w||P,showBanner:!E&&P&&i<w,markBannerAsViewed:S}}},24954:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(61790)),w=_(b(85707)),E=_(b(58155)),S=_(b(18821)),P=b(41594),k=b(95034),T=_(b(62688));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 A=function useUserInfo(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=(0,P.useState)(!1),b=(0,S.default)(i,2),_=b[0],w=b[1],T=(0,P.useState)(!1),A=(0,S.default)(T,2),D=A[0],W=A[1],q=(0,P.useState)({is_connected:!1,is_get_started:!1,connect_url:"",usage:{hasAiSubscription:!1,quota:0,usedQuota:0}}),N=(0,S.default)(q,2),H=N[0],U=N[1],V=H.usage.quota-H.usage.usedQuota,G=H.usage.quota?H.usage.usedQuota/H.usage.quota*100:0,Y=function(){var i=(0,E.default)(C.default.mark((function _callee(){var i;return C.default.wrap((function _callee$(b){for(;;)switch(b.prev=b.next){case 0:return W(!0),b.next=3,(0,k.getUserInformation)(t);case 3:i=b.sent,U((function(t){return _objectSpread(_objectSpread({},t),i)})),w(!0),W(!1);case 7:case"end":return b.stop()}}),_callee)})));return function fetchData(){return i.apply(this,arguments)}}();return _||D||Y(),{isLoading:D,isLoaded:_,isConnected:H.is_connected,isGetStarted:H.is_get_started,connectUrl:H.connect_url,builderUrl:H.usage.builderUrl,hasSubscription:H.usage.hasAiSubscription,credits:V<0?0:V,usagePercentage:Math.round(G),fetchData:Y}};A.propTypes={immediately:T.default.bool};i.default=A},31593:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=_(b(41594)),E=b(86956),S=w.default.forwardRef((function(t,i){return w.default.createElement(E.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},t,{ref:i}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.53033 7.46967C9.82322 7.76256 9.82322 8.23744 9.53033 8.53033L6.81066 11.25H19C19.4142 11.25 19.75 11.5858 19.75 12C19.75 12.4142 19.4142 12.75 19 12.75H6.81066L9.53033 15.4697C9.82322 15.7626 9.82322 16.2374 9.53033 16.5303C9.23744 16.8232 8.76256 16.8232 8.46967 16.5303L4.46967 12.5303C4.17678 12.2374 4.17678 11.7626 4.46967 11.4697L8.46967 7.46967C8.76256 7.17678 9.23744 7.17678 9.53033 7.46967Z"}))}));i.default=S},91688:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=b(86956),E=_(b(41594)),S=E.default.forwardRef((function(t,i){return E.default.createElement(w.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},t,{ref:i}),E.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=S},50923:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=_(b(41594)),E=b(86956),S=w.default.forwardRef((function(t,i){return w.default.createElement(E.SvgIcon,(0,C.default)({},t,{ref:i}),w.default.createElement("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.default.createElement("g",{clipPath:"url(#clip0_10743_8902)"},w.default.createElement("path",{d:"M2.75 10.0833H3.66667M11 2.75V3.66667M18.3333 10.0833H19.25M5.13333 5.13333L5.775 5.775M16.8667 5.13333L16.225 5.775",stroke:"#2563EB",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),w.default.createElement("path",{d:"M9.16675 16.041C8.70841 15.1243 6.91205 13.2842 6.62523 12.366C6.3384 11.4477 6.34775 10.4626 6.65195 9.54997C6.95615 8.63738 7.53978 7.84362 8.32016 7.28116C9.10054 6.71869 10.0381 6.41602 11.0001 6.41602C11.962 6.41602 12.8996 6.71869 13.68 7.28116C14.4604 7.84362 15.044 8.63738 15.3482 9.54997C15.6524 10.4626 15.6618 11.4477 15.3749 12.366C15.0881 13.2842 13.2917 15.1243 12.8334 16.041C12.8334 16.041 12.7597 17.3762 12.8334 17.8743C12.8334 18.3606 12.6403 18.8269 12.2964 19.1707C11.9526 19.5145 11.4863 19.7077 11.0001 19.7077C10.5139 19.7077 10.0475 19.5145 9.70372 19.1707C9.3599 18.8269 9.16675 18.3606 9.16675 17.8743C9.2405 17.3762 9.16675 16.041 9.16675 16.041Z",stroke:"#2563EB",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),w.default.createElement("path",{d:"M10.0833 16.5H11.9166",stroke:"#2563EB",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),w.default.createElement("defs",null,w.default.createElement("clipPath",{id:"clip0_10743_8902"},w.default.createElement("rect",{width:"22",height:"22",fill:"white"})))))}));i.default=S},70127:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=_(b(41594)),E=b(86956),S=w.default.forwardRef((function(t,i){return w.default.createElement(E.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=S},1560:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=_(b(41594)),E=b(86956),S=w.default.forwardRef((function(t,i){return w.default.createElement(E.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=S},77560:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=_(b(41594)),E=b(86956),S=w.default.forwardRef((function(t,i){return w.default.createElement(E.SvgIcon,(0,C.default)({viewBox:"0 0 16 16"},t,{ref:i}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6668 11.8334H3.66679C3.53235 11.8334 3.40357 11.7792 3.30952 11.6832L0.505518 8.81921L0.504041 8.81772C0.287672 8.59928 0.16626 8.30423 0.16626 7.99671C0.16626 7.68849 0.288225 7.3928 0.505518 7.17421L0.506568 7.17316L7.17323 0.506492L7.17429 0.505442C7.39288 0.288149 7.68857 0.166183 7.99679 0.166183C8.30501 0.166183 8.6007 0.288149 8.81929 0.505442L8.82034 0.50649L12.1547 3.84088C12.372 4.05947 12.494 4.35516 12.494 4.66338C12.494 4.97134 12.3722 5.26679 12.1553 5.48533L12.1547 5.48588L6.86473 10.8334H10.6668C10.9429 10.8334 11.1668 11.0572 11.1668 11.3334C11.1668 11.6095 10.9429 11.8334 10.6668 11.8334ZM7.87959 1.21435C7.91079 1.18349 7.9529 1.16618 7.99679 1.16618C8.04067 1.16618 8.08278 1.18349 8.11398 1.21434L11.4455 4.54588C11.4763 4.57707 11.494 4.61951 11.494 4.66338C11.494 4.70741 11.4766 4.74965 11.4455 4.78088L11.4447 4.78174L10.0411 6.20059L6.46721 2.62673L7.87959 1.21435ZM5.7601 3.33383L1.21473 7.87921C1.18387 7.91041 1.16626 7.95282 1.16626 7.99671C1.16626 8.04074 1.18368 8.08298 1.21473 8.11421L1.2174 8.11691L3.877 10.8334H5.4581L9.33779 6.91152L5.7601 3.33383Z"}))}));i.default=S},7793:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=_(b(41594)),E=b(86956),S=w.default.forwardRef((function(t,i){return w.default.createElement(E.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=S},27761:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=_(b(41594)),E=b(86956),S=w.default.forwardRef((function(t,i){return w.default.createElement(E.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=S},65141:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=_(b(41594)),E=b(86956),S=w.default.forwardRef((function(t,i){return w.default.createElement(E.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},t,{ref:i}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.6667 0.208496C17.0534 0.208496 17.4244 0.362142 17.6979 0.635632C17.9714 0.909123 18.125 1.28006 18.125 1.66683V11.6668C18.125 12.0536 17.9714 12.4245 17.6979 12.698C17.4244 12.9715 17.0534 13.1252 16.6667 13.1252H14.7917V16.6668C14.7917 17.0536 14.638 17.4245 14.3645 17.698C14.091 17.9715 13.7201 18.1252 13.3333 18.1252H3.33333C2.94656 18.1252 2.57563 17.9715 2.30214 17.698C2.02865 17.4245 1.875 17.0536 1.875 16.6668V6.66683C1.875 6.28005 2.02865 5.90912 2.30214 5.63563C2.57563 5.36214 2.94656 5.2085 3.33333 5.2085H5.20833V1.66683C5.20833 1.28005 5.36198 0.909122 5.63547 0.635632C5.90896 0.362142 6.27989 0.208496 6.66667 0.208496H16.6667ZM6.66667 1.4585C6.61141 1.4585 6.55842 1.48045 6.51935 1.51952C6.48028 1.55859 6.45833 1.61158 6.45833 1.66683V3.54183H8.54167V1.4585H6.66667ZM3.125 9.79183V16.6668C3.125 16.7221 3.14695 16.7751 3.18602 16.8141C3.22509 16.8532 3.27808 16.8752 3.33333 16.8752H13.3333C13.3886 16.8752 13.4416 16.8532 13.4806 16.8141C13.5197 16.7751 13.5417 16.7221 13.5417 16.6668V13.1252H6.66667C6.27989 13.1252 5.90896 12.9715 5.63547 12.698C5.36198 12.4245 5.20833 12.0536 5.20833 11.6668V9.79183H3.125ZM5.20833 8.54183H3.125V6.66683C3.125 6.61158 3.14695 6.55859 3.18602 6.51952C3.22509 6.48045 3.27808 6.4585 3.33333 6.4585H5.20833V8.54183ZM6.45833 11.6668C6.45833 11.7221 6.48028 11.7751 6.51935 11.8141C6.55842 11.8532 6.61141 11.8752 6.66667 11.8752H16.6667C16.7219 11.8752 16.7749 11.8532 16.814 11.8141C16.853 11.7751 16.875 11.7221 16.875 11.6668V4.79183H6.45833V11.6668ZM9.79167 1.4585V3.54183H16.875V1.66683C16.875 1.61157 16.853 1.55858 16.814 1.51952C16.7749 1.48045 16.7219 1.4585 16.6667 1.4585H9.79167Z"}))}));i.default=S},48482:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=_(b(41594)),E=b(86956),S=w.default.forwardRef((function(t,i){return w.default.createElement(E.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=S},51066:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=_(b(41594)),E=b(86956),S=w.default.forwardRef((function(t,i){return w.default.createElement(E.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=S},43286:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=_(b(41594)),E=b(86956),S=w.default.forwardRef((function(t,i){return w.default.createElement(E.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=S},41061:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(78304)),E=b(86956),S=C.default.forwardRef((function(t,i){return C.default.createElement(E.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=S},53952:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=_(b(41594)),E=b(86956),S=w.default.forwardRef((function(t,i){return w.default.createElement(E.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},t,{ref:i}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 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.58579 3.58579 3.25 4 3.25ZM13.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 16V20C20.75 20.4142 20.4142 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.4697Z"}))}));i.default=S},23962:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=_(b(41594)),E=b(86956),S=w.default.forwardRef((function(t,i){return w.default.createElement(E.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=S},21995:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=_(b(41594)),E=b(86956),S=w.default.forwardRef((function(t,i){return w.default.createElement(E.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},t,{ref:i}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.8125 11.9996C7.29473 11.9996 6.875 12.4473 6.875 12.9996V18.9996C6.875 19.5519 7.29473 19.9996 7.8125 19.9996H17.1875C17.7053 19.9996 18.125 19.5519 18.125 18.9996V12.9996C18.125 12.4473 17.7053 11.9996 17.1875 11.9996H7.8125ZM5 12.9996C5 11.3428 6.2592 9.99963 7.8125 9.99963H17.1875C18.7408 9.99963 20 11.3428 20 12.9996V18.9996C20 20.6565 18.7408 21.9996 17.1875 21.9996H7.8125C6.2592 21.9996 5 20.6565 5 18.9996V12.9996Z"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 3.90527C11.7044 3.90527 10.9413 4.22134 10.3787 4.78395C9.81607 5.34656 9.5 6.10962 9.5 6.90527V10.9053C9.5 11.4576 9.05228 11.9053 8.5 11.9053C7.94772 11.9053 7.5 11.4576 7.5 10.9053V6.90527C7.5 5.57919 8.02678 4.30742 8.96447 3.36974C9.90215 2.43206 11.1739 1.90527 12.5 1.90527C13.8261 1.90527 15.0979 2.43206 16.0355 3.36974C16.9732 4.30742 17.5 5.57919 17.5 6.90527V10.9053C17.5 11.4576 17.0523 11.9053 16.5 11.9053C15.9477 11.9053 15.5 11.4576 15.5 10.9053V6.90527C15.5 6.10962 15.1839 5.34656 14.6213 4.78395C14.0587 4.22134 13.2956 3.90527 12.5 3.90527Z"}),w.default.createElement("path",{d:"M6 12H19V20H6V12Z"}))}));i.default=S},33724:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=_(b(41594)),E=b(86956),S=w.default.forwardRef((function(t,i){return w.default.createElement(E.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},t,{ref:i}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.46967 3.46967C3.76256 3.17678 4.23744 3.17678 4.53033 3.46967L9.25 8.18934V6C9.25 5.58579 9.58579 5.25 10 5.25C10.4142 5.25 10.75 5.58579 10.75 6V10C10.75 10.4142 10.4142 10.75 10 10.75H6C5.58579 10.75 5.25 10.4142 5.25 10C5.25 9.58579 5.58579 9.25 6 9.25H8.18934L3.46967 4.53033C3.17678 4.23744 3.17678 3.76256 3.46967 3.46967ZM14 13.25H18C18.4142 13.25 18.75 13.5858 18.75 14C18.75 14.4142 18.4142 14.75 18 14.75H15.8107L20.5303 19.4697C20.8232 19.7626 20.8232 20.2374 20.5303 20.5303C20.2374 20.8232 19.7626 20.8232 19.4697 20.5303L14.75 15.8107V18C14.75 18.4142 14.4142 18.75 14 18.75C13.5858 18.75 13.25 18.4142 13.25 18V14C13.25 13.5858 13.5858 13.25 14 13.25Z"}))}));i.default=S},96793:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=_(b(41594)),E=b(86956),S=w.default.forwardRef((function(t,i){return w.default.createElement(E.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},t,{ref:i}),w.default.createElement("path",{d:"M12 2.69231C6.8595 2.69231 2.69231 6.8595 2.69231 12C2.69231 17.1405 6.8595 21.3077 12 21.3077C17.1405 21.3077 21.3077 17.1405 21.3077 12C21.3077 6.8595 17.1405 2.69231 12 2.69231ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM12 7.76923C12.4673 7.76923 12.8462 8.14807 12.8462 8.61538V11.1538H15.3846C15.8519 11.1538 16.2308 11.5327 16.2308 12C16.2308 12.4673 15.8519 12.8462 15.3846 12.8462H12.8462V15.3846C12.8462 15.8519 12.4673 16.2308 12 16.2308C11.5327 16.2308 11.1538 15.8519 11.1538 15.3846V12.8462H8.61538C8.14807 12.8462 7.76923 12.4673 7.76923 12C7.76923 11.5327 8.14807 11.1538 8.61538 11.1538H11.1538V8.61538C11.1538 8.14807 11.5327 7.76923 12 7.76923Z"}))}));i.default=S},75682:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=_(b(41594)),E=b(86956),S=w.default.forwardRef((function(t,i){return w.default.createElement(E.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=S},33057:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=_(b(41594)),E=b(86956),S=w.default.forwardRef((function(t,i){return w.default.createElement(E.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=S},95068:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=_(b(41594)),E=b(86956),S=w.default.forwardRef((function(t,i){return w.default.createElement(E.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=S},67890:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=_(b(41594)),E=b(86956),S=w.default.forwardRef((function(t,i){return w.default.createElement(E.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=S},65802:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=_(b(41594)),E=b(86956),S=w.default.forwardRef((function(t,i){return w.default.createElement(E.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=S},74223:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=_(b(41594)),E=b(86956),S=w.default.forwardRef((function(t,i){return w.default.createElement(E.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=S},50236:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=_(b(41594)),E=b(86956),S=w.default.forwardRef((function(t,i){return w.default.createElement(E.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=S},53532:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=_(b(41594)),E=b(86956),S=w.default.forwardRef((function(t,i){return w.default.createElement(E.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=S},68627:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=_(b(41594)),E=b(86956),S=w.default.forwardRef((function(t,i){return w.default.createElement(E.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},t,{ref:i}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.16707 3.95837C4.11182 3.95837 4.05883 3.98032 4.01976 4.01939C3.98069 4.05846 3.95874 4.11145 3.95874 4.16671V6.04171H6.04207V3.95837H4.16707ZM4.16707 2.70837C3.7803 2.70837 3.40937 2.86202 3.13588 3.13551C2.86239 3.409 2.70874 3.77993 2.70874 4.16671V15.8334C2.70874 16.2201 2.86239 16.5911 3.13588 16.8646C3.40937 17.1381 3.7803 17.2917 4.16707 17.2917H15.8337C16.2205 17.2917 16.5914 17.1381 16.8649 16.8646C17.1384 16.5911 17.2921 16.2201 17.2921 15.8334V4.16671C17.2921 3.77993 17.1384 3.409 16.8649 3.13551C16.5914 2.86202 16.2205 2.70837 15.8337 2.70837H4.16707ZM7.29207 3.95837V6.04171H16.0421V4.16671C16.0421 4.11145 16.0201 4.05846 15.9811 4.01939C15.942 3.98032 15.889 3.95837 15.8337 3.95837H7.29207ZM16.0421 7.29171H3.95874V15.8334C3.95874 15.8886 3.98069 15.9416 4.01976 15.9807C4.05883 16.0198 4.11182 16.0417 4.16707 16.0417H15.8337C15.889 16.0417 15.942 16.0198 15.9811 15.9807C16.0201 15.9416 16.0421 15.8886 16.0421 15.8334V7.29171Z"}))}));i.default=S},65815:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=_(b(41594)),E=b(86956),S=w.default.forwardRef((function(t,i){return w.default.createElement(E.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},t,{ref:i}),w.default.createElement("path",{d:"M12 2.69231C6.8595 2.69231 2.69231 6.8595 2.69231 12C2.69231 17.1405 6.8595 21.3077 12 21.3077C17.1405 21.3077 21.3077 17.1405 21.3077 12C21.3077 6.8595 17.1405 2.69231 12 2.69231ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM9.14527 9.14527C9.47571 8.81483 10.0115 8.81483 10.3419 9.14527L12 10.8034L13.6581 9.14527C13.9885 8.81483 14.5243 8.81483 14.8547 9.14527C15.1852 9.47571 15.1852 10.0115 14.8547 10.3419L13.1966 12L14.8547 13.6581C15.1852 13.9885 15.1852 14.5243 14.8547 14.8547C14.5243 15.1852 13.9885 15.1852 13.6581 14.8547L12 13.1966L10.3419 14.8547C10.0115 15.1852 9.47571 15.1852 9.14527 14.8547C8.81483 14.5243 8.81483 13.9885 9.14527 13.6581L10.8034 12L9.14527 10.3419C8.81483 10.0115 8.81483 9.47571 9.14527 9.14527Z"}))}));i.default=S},61303:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(78304)),w=_(b(41594)),E=b(86956),S=w.default.forwardRef((function(t,i){return w.default.createElement(E.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=S},27173:(t,i)=>{"use strict";var b;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,b=Marionette.Behavior.extend({ui:{aiTitlesButton:"#elementor-navigator__ai-titles"},events:{"click @ui.aiTitlesButton":"aiTitleClickHandler"},initialize:function initialize(){try{this.getTemplate()}catch(t){this.hasTemplate=!1}},getTemplate:function getTemplate(){var t=jQuery("<button>",{id:"elementor-navigator__ai-titles"});return t.html('<i class="eicon-ai"></i>'),t[0].outerHTML},aiTitleClickHandler:function aiTitleClickHandler(){window.location.hash="welcome-ai-return-to-ai-titles",window.addEventListener("hashchange",this.handleHashChange.bind(this))},handleHashChange:function handleHashChange(){var t;null!==(t=elementorCommon.config.library_connect)&&void 0!==t&&t.is_connected&&window.location.hash.includes("ai-titles")&&(window.location.hash="",window.location.reload())},onShow:function onShow(){var t;if(null!==(t=elementorCommon.config.library_connect)&&void 0!==t&&t.is_connected)this.ui.aiTitlesButton.remove();else{var i=this.view.$el.find("#elementor-navigator__toggle-all");i.length&&i.after(this.getTemplate())}}});i.default=b},47407:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=b(86956),E=_(b(62688)),S=function LayoutAppWrapper(t){return C.default.createElement(w.DirectionProvider,{rtl:t.isRTL},C.default.createElement(w.ThemeProvider,{colorScheme:t.colorScheme},t.children))};S.propTypes={children:E.default.node,isRTL:E.default.bool,colorScheme:E.default.oneOf(["auto","light","dark"])};i.default=S},93569:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(62688)),E=_(b(94459)),S=b(38298),P=b(91258),k=b(35589),T=b(40128),A=function LayoutApp(t){return C.default.createElement(k.RemoteConfigProvider,{onError:t.onClose},C.default.createElement(T.RequestIdsProvider,null,C.default.createElement(P.ConfigProvider,{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},C.default.createElement(E.default,{attachments:t.attachments}))))};A.propTypes={mode:w.default.oneOf(P.LAYOUT_APP_MODES).isRequired,attachmentsTypes:S.AttachmentsTypesPropType,attachments:w.default.arrayOf(S.AttachmentPropType),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};i.default=A},94459:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(18821)),S=_(b(8299)),P=_(b(51550)),k=_(b(62805)),T=_(b(73319)),A=_(b(35121)),D=_(b(24954)),W=_(b(4508)),q=_(b(75690)),N=_(b(62688)),H=b(38298),U=b(91258),V=b(40128);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 G=function LayoutContent(t){var i=(0,D.default)(),b=i.isLoading,_=i.isConnected,C=i.isGetStarted,N=i.connectUrl,H=i.fetchData,G=i.hasSubscription,Y=i.usagePercentage,K=(0,U.useConfig)(),Z=K.onClose,Q=K.onConnect,J=(0,V.useRequestIds)(),ee=J.updateUsagePercentage,te=J.usagePercentage,ne=(0,w.useState)(!1),de=(0,E.default)(ne,2),fe=de[0],pe=de[1];if((0,w.useEffect)((function(){fe||b||!Y&&0!==Y||(ee(Y),pe(!0))}),[b,Y,fe,ee]),b||!fe)return w.default.createElement(q.default,{onClose:Z},w.default.createElement(q.default.Header,{onClose:Z}),w.default.createElement(q.default.Content,{dividers:!0},w.default.createElement(T.default,{BoxProps:{sx:{px:3}}})));if(!_)return w.default.createElement(W.default,{onClose:Z},w.default.createElement(q.default,{onClose:Z}),w.default.createElement(W.default.Content,{dividers:!0},w.default.createElement(S.default,{connectUrl:N,onSuccess:function onSuccess(t){Q(t),H()}})));if(!C)return w.default.createElement(W.default,{onClose:Z},w.default.createElement(q.default,{onClose:Z}),w.default.createElement(W.default.Content,{dividers:!0},w.default.createElement(k.default,{onSuccess:H})));var me=!G||80<=te;return w.default.createElement(P.default,{attachments:t.attachments,DialogHeaderProps:{children:me&&w.default.createElement(A.default,{hasSubscription:G,usagePercentage:te})}})};G.propTypes={attachments:N.default.arrayOf(H.AttachmentPropType)};i.default=G},18049:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(61790)),E=_(b(39805)),S=_(b(40989)),P=_(b(15118)),k=_(b(29402)),T=_(b(87861)),A=_(b(58155)),D=_(b(11242)),W=b(12470),q=b(33222),N=_(b(18791)),H=_(b(47407)),U=b(16789),V=b(36833),G=b(95034),Y=b(40128),K=_(b(27173));function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}setTimeout((0,A.default)(w.default.mark((function _callee(){var t,i,b;return w.default.wrap((function _callee$(_){for(;;)switch(_.prev=_.next){case 0:if("1"===(null===(t=window.ElementorAiConfig)||void 0===t?void 0:t.is_get_started)){_.next=2;break}return _.abrupt("return");case 2:return window.EDITOR_SESSION_ID=window.EDITOR_SESSION_ID||(0,Y.getUniqueId)("elementor-editor-session"),_.prev=3,_.next=6,(0,G.getRemoteFrontendConfig)({client_name:"elementor-editor-loading",client_version:elementorCommon.config.version,client_session_id:window.EDITOR_SESSION_ID},!0);case 6:i=_.sent,window.ElementorAIRemoteConfigData=i,null!=i&&i.remoteIntegrationUrl&&((b=document.createElement("script")).type="module",b.src=i.remoteIntegrationUrl,document.head.appendChild(b)),_.next=14;break;case 11:_.prev=11,_.t0=_.catch(3),console.error("Elementor AI Integration Loader",_.t0);case 14:case"end":return _.stop()}}),_callee,null,[[3,11]])}))),0);i.default=function(t){function Module(){return(0,E.default)(this,Module),function _callSuper(t,i,b){return i=(0,k.default)(i),(0,P.default)(t,_isNativeReflectConstruct()?Reflect.construct(i,b||[],(0,k.default)(t).constructor):i.apply(t,b))}(this,Module,arguments)}return(0,T.default)(Module,t),(0,S.default)(Module,[{key:"onElementorInit",value:function onElementorInit(){elementor.hooks.addFilter("controls/base/behaviors",this.registerControlBehavior.bind(this)),elementor.hooks.addFilter("navigator/layout/behaviors",this.registerNavigatorBehavior.bind(this)),window.addEventListener("hashchange",(function(t){if(t.newURL.includes("welcome-ai")){var i=t.newURL.includes("welcome-ai-whats-new")?"whats-new":"connect",b=t.newURL.includes("return-to")?t.newURL.split("return-to-")[1]:"";window.location.hash="",setTimeout((function(){var t=document.createElement("div");document.body.append(t);var _=(0,V.getUiConfig)(),w=_.colorScheme,E=_.isRTL,S=N.default.render(C.default.createElement(H.default,{isRTL:E,colorScheme:w},C.default.createElement(U.AiGetStartedConnect,{onClose:function onClose(){S(),t.remove()},newHashOnConnect:b,source:i})),t).unmount}),1e3)}}))}},{key:"registerNavigatorBehavior",value:function registerNavigatorBehavior(t){return t.ai={behaviorClass:K.default},t}},{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:D.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=null!==(C=i.options)&&void 0!==C&&null!==(C=C.container)&&void 0!==C&&null!==(C=C.view)&&void 0!==C&&C.$el?i.options.container.view.$el[0].outerHTML:"";t.ai={behaviorClass:D.default,type:b.type,additionalOptions:{codeLanguage:(null==b?void 0:b.language)||i.options.model.get("language"),htmlMarkup:w,elementId:i.options.container.id},buttonLabel:(0,W.__)("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 E=i.options.model.get("media_types");E.length&&E.includes("image")&&(t.ai={behaviorClass:D.default,type:b.type,buttonLabel:(0,W.__)("Create with AI","elementor"),getControlValue:i.getControlValue.bind(i),setControlValue:function setControlValue(t){i.setSettingsModel(t),i.applySavedValue()},controlView:i,additionalOptions:{defaultValue:i.options.model.get("default"),defaultImageType:(null==b?void 0:b.category)||q.IMAGE_PROMPT_CATEGORIES[1].key},context:this.getContextData(i,_)})}return"excerpt"===b.type&&(t.ai={behaviorClass:D.default,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,_)}),t}},{key:"getContextData",value:function getContextData(t,i){var b=t.options.model.get("name");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:b,controlType:i,controlValue:t.options.container.settings.get(b)}:{controlName:b,controlType:i}}}])}(elementorModules.editor.utils.Module)},9938:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(78304)),S=_(b(85707)),P=_(b(18821)),k=_(b(62688)),T=_(b(8239)),A=_(b(8299)),D=_(b(30969)),W=_(b(62805)),q=_(b(24954)),N=_(b(4508)),H=_(b(48968)),U=_(b(35121)),V=_(b(96008)),G=_(b(9196)),Y=b(51192),K=b(14754),Z=b(39827),Q=_(b(26346)),J=_(b(38310)),ee=b(86956),te=_(b(73319)),ne=b(40128),de=b(54076);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,S.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 fe=function PageContent(t){var i,b=t.type,_=t.controlType,C=t.onClose,S=t.onConnect,k=t.getControlValue,fe=t.setControlValue,pe=t.additionalOptions,me=(null!==(i=null==pe?void 0:pe.useCustomInit)&&void 0!==i?i:q.default)(),ge=me.isLoading,ye=me.isConnected,ve=me.isGetStarted,be=me.connectUrl,Ee=me.fetchData,xe=me.hasSubscription,Oe=me.credits,ke=me.usagePercentage,Te=(0,ne.useRequestIds)(),Re=Te.updateUsagePercentage,je=Te.usagePercentage,Ae=(0,w.useState)(!1),Me=(0,P.default)(Ae,2),Le=Me[0],De=Me[1];(0,w.useEffect)((function(){Le||ge||!ke&&0!==ke||(Re(ke),De(!0))}),[ge,ke,Le,Re]);var We=(0,Q.default)({usagePercentage:je,hasSubscription:xe}).showBadge,Be=(0,w.useState)({pointerEvents:"none"}),ze=(0,P.default)(Be,2),$e=ze[0],Ke=ze[1],Qe=(0,w.useRef)(null),et={sx:{zIndex:17e4,"& .MuiDialog-container":{alignItems:"flex-start",mt:"media"===b?"2.5vh":"18vh"},"& .MuiDialogContent-root":{willChange:"height",transition:"height 300ms ease-in-out",position:"relative"},"& .MuiBox-root":{boxSizing:"border-box"}},PaperProps:{sx:{m:0,maxHeight:"media"===b?"95vh":"76vh",height:"auto"}}},tt={sx:_objectSpread(_objectSpread({},et.sx),$e),PaperProps:{onMouseEnter:function onMouseEnter(){clearTimeout(Qe.current),Ke({pointerEvents:"all"})},onMouseLeave:function onMouseLeave(){clearTimeout(Qe.current),Qe.current=setTimeout((function(){Ke({pointerEvents:"none"})}),200)},sx:_objectSpread(_objectSpread({},et.PaperProps.sx),{},{pointerEvents:"auto"})}},rt=function maybeRenderUpgradeChip(){if(We)return w.default.createElement(U.default,{hasSubscription:xe,usagePercentage:je})};return ge||!Le?w.default.createElement(H.default,(0,E.default)({onClose:C},et,{maxWidth:"media"===b?"lg":"sm"}),w.default.createElement(H.default.Header,{onClose:C}),w.default.createElement(H.default.Content,{dividers:!0},(null==pe?void 0:pe.loadingTitle)&&w.default.createElement(ee.Box,{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%"}},w.default.createElement(ee.Typography,{variant:"body1",color:"secondary"},null==pe?void 0:pe.loadingTitle)),w.default.createElement(te.default,null))):ye?ve?"media"===b?w.default.createElement(Z.PromptHistoryProvider,{historyType:Y.HISTORY_TYPES.IMAGE},w.default.createElement(K.PromptHistoryActionProvider,null,w.default.createElement(V.default,{onClose:C,getControlValue:k,setControlValue:fe,additionalOptions:pe,credits:Oe,maybeRenderUpgradeChip:rt,DialogProps:et,hasSubscription:xe,usagePercentage:je}))):"code"===b?w.default.createElement(H.default,(0,E.default)({onClose:C},tt),w.default.createElement(Z.PromptHistoryProvider,{historyType:Y.HISTORY_TYPES.CODE},w.default.createElement(K.PromptHistoryActionProvider,null,w.default.createElement(H.default.Header,{onClose:C},w.default.createElement(G.default,null),rt()),w.default.createElement(H.default.Content,{className:"e-ai-dialog-content",dividers:!0},w.default.createElement(D.default,{onClose:C,getControlValue:k,setControlValue:fe,additionalOptions:pe,credits:Oe,usagePercentage:je},w.default.createElement(J.default,{hasSubscription:xe,usagePercentage:je,sx:{mb:2},feature:de.FREE_TRIAL_FEATURES_NAMES.CODE})))))):w.default.createElement(H.default,(0,E.default)({onClose:C},et),w.default.createElement(Z.PromptHistoryProvider,{historyType:Y.HISTORY_TYPES.TEXT},w.default.createElement(K.PromptHistoryActionProvider,null,w.default.createElement(H.default.Header,{onClose:C},w.default.createElement(G.default,null),rt()),w.default.createElement(H.default.Content,{className:"e-ai-dialog-content",dividers:!0},w.default.createElement(T.default,{type:b,controlType:_,onClose:C,getControlValue:k,setControlValue:fe,additionalOptions:pe,credits:Oe,usagePercentage:je},w.default.createElement(J.default,{hasSubscription:xe,usagePercentage:je,sx:{mb:2},feature:de.FREE_TRIAL_FEATURES_NAMES.TEXT})))))):w.default.createElement(N.default,{onClose:C},w.default.createElement(N.default.Header,{onClose:C}),w.default.createElement(N.default.Content,{dividers:!0},w.default.createElement(W.default,{onSuccess:Ee}))):w.default.createElement(N.default,{onClose:C},w.default.createElement(N.default.Header,{onClose:C}),w.default.createElement(N.default.Content,{dividers:!0},w.default.createElement(A.default,{connectUrl:be,onSuccess:function onSuccess(t){S(t),Ee()}})))};fe.propTypes={type:k.default.string,controlType:k.default.string,onClose:k.default.func.isRequired,onConnect:k.default.func,getControlValue:k.default.func.isRequired,setControlValue:k.default.func.isRequired,additionalOptions:k.default.object};i.default=fe},75524:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(18821)),S=b(86956),P=b(12470),k=_(b(62688)),T=b(44048);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 A=function ConnectAndGetStarted(t){var i=t.connectUrl,b=t.onSuccess,_=t.isConnected,C=t.getStartedAction,k=(0,w.useRef)(),A=(0,w.useState)(!1),D=(0,E.default)(A,2),W=D[0],q=D[1];return(0,w.useEffect)((function(){jQuery.fn.elementorConnect&&jQuery(k.current).elementorConnect({success:function success(t,i){b(i)},error:function error(){throw new Error("Elementor AI: Failed to connect.")}})}),[]),w.default.createElement(S.Stack,{alignItems:"center",gap:2},w.default.createElement(T.AIIcon,{sx:{color:"text.primary",fontSize:"60px",mb:1}}),w.default.createElement(S.Typography,{variant:"h4",sx:{color:"text.primary"}},(0,P.__)("Step into the future with Elementor AI","elementor")),w.default.createElement(S.Typography,{variant:"body2"},(0,P.__)("Create websites faster with AI built right into the Editor.","elementor")),w.default.createElement(S.Divider,{sx:{mt:2,ml:2,mr:2,height:"1px",width:"50%"}}),w.default.createElement(S.Stack,{direction:"row",gap:1.5,alignItems:"flex-start"},w.default.createElement(S.Checkbox,{id:"e-ai-terms-approval",color:"secondary",checked:W,onClick:function onClick(){return q((function(t){return!t}))}}),w.default.createElement(S.Stack,null,w.default.createElement(S.Typography,{variant:"caption",sx:{maxWidth:520},component:"label",htmlFor:"e-ai-terms-approval"},(0,P.__)("I approve the ","elementor"),w.default.createElement(S.Link,{href:"https://go.elementor.com/ai-terms/",target:"_blank",color:"info.main"},(0,P.__)("Terms of Service","elementor"))," & ",w.default.createElement(S.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"),(0,P.__)("This includes consenting to the collection and use of data to improve user experience.","elementor")))),_?w.default.createElement(S.Button,{disabled:!W,variant:"contained",onClick:C,sx:{mt:1,"&:hover":{color:"primary.contrastText"}}},(0,P.__)("Get Started","elementor")):w.default.createElement(S.Button,{ref:k,disabled:!W,href:i,variant:"contained",sx:{mt:1,"&:hover":{color:"primary.contrastText"}}},(0,P.__)("Connect","elementor")))};A.propTypes={connectUrl:k.default.string.isRequired,onSuccess:k.default.func.isRequired,isConnected:k.default.bool.isRequired,getStartedAction:k.default.func.isRequired};i.default=A},8299:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=b(86956),S=b(12470),P=_(b(62688)),k=b(44048);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 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(E.Stack,{alignItems:"center",gap:2},w.default.createElement(k.AIIcon,{sx:{color:"text.primary",fontSize:"60px",mb:1}}),w.default.createElement(E.Typography,{variant:"h4",sx:{color:"text.primary"}},(0,S.__)("Step into the future with Elementor AI","elementor")),w.default.createElement(E.Typography,{variant:"body2"},(0,S.__)("Create smarter with AI text and code generators built right into the editor.","elementor")),w.default.createElement(E.Typography,{variant:"caption",sx:{maxWidth:520,textAlign:"center"}},(0,S.__)('By clicking "Connect", I approve the ',"elementor"),w.default.createElement(E.Link,{href:"https://go.elementor.com/ai-terms/",target:"_blank",color:"info.main"},(0,S.__)("Terms of Service","elementor"))," & ",w.default.createElement(E.Link,{href:"https://go.elementor.com/ai-privacy-policy/",target:"_blank",color:"info.main"},(0,S.__)("Privacy Policy","elementor")),(0,S.__)(" of the Elementor AI service.","elementor")),w.default.createElement(E.Button,{ref:_,href:i,variant:"contained",sx:{mt:1,"&:hover":{color:"primary.contrastText"}}},(0,S.__)("Connect","elementor")))};T.propTypes={connectUrl:P.default.string.isRequired,onSuccess:P.default.func.isRequired};i.default=T},34768:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(78304)),S=_(b(40453)),P=b(86956),k=b(12470),T=_(b(62688)),A=_(b(6942)),D=["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 W=function CodeBlock(t){t.node;var i=t.inline,b=t.children,_=t.defaultValue,C=t.onInsert,T=(0,S.default)(t,D),W=(0,w.useRef)(null);return i?w.default.createElement("code",T):w.default.createElement(P.Box,{sx:{position:"relative"},dir:"ltr"},w.default.createElement(A.default,(0,E.default)({fullWidth:!0,ref:W,defaultValue:b[0],sx:{mb:1},helperText:(0,k.__)("Code generated by AI may be inaccurate.","elementor")},T)),w.default.createElement(P.Button,{size:"small",variant:"contained",onClick:function onClick(){return C(_+"\n"+W.current.value)},sx:{position:"absolute",right:"11px /* @noflip */",bottom:"44px"}},(0,k.__)("Insert","elementor")))};W.propTypes={node:T.default.object,inline:T.default.bool,children:T.default.arrayOf(T.default.node).isRequired,defaultValue:T.default.string,onInsert:T.default.func.isRequired};i.default=W},30969:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(61790)),S=_(b(78304)),P=_(b(58155)),k=_(b(18821)),T=_(b(85707)),A=b(86956),D=b(12470),W=_(b(62688)),q=_(b(41764)),N=b(57827),H=_(b(73319)),U=_(b(29983)),V=_(b(54178)),G=_(b(2768)),Y=_(b(43091)),K=_(b(34768)),Z=_(b(3982)),Q=b(14754),J=_(b(53497)),ee=b(40128),te=b(90291),ne=b(87631);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,T.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 de=(0,A.styled)(A.Box)((function(){return{"& p":{mb:"10px",fontSize:"13px",lineHeight:"1.5"},"& pre":{position:"relative"},"& textarea":{fontSize:"13px",lineHeight:"1.7"}}})),fe=function FormCode(t){var i=t.onClose,b=t.getControlValue,_=t.setControlValue,C=t.additionalOptions,T=t.credits,W=t.children,fe=(0,Z.default)(_objectSpread(_objectSpread({},C),{},{credits:T})),pe=fe.data,me=fe.isLoading,ge=fe.error,ye=fe.reset,ve=fe.send,be=fe.sendUsageData,Ee=(0,ne.splitText)(pe.result),xe=Ee.code,Oe=Ee.details,ke=(0,w.useState)(""),Te=(0,k.default)(ke,2),Re=Te[0],je=Te[1],Ae=(0,ee.useRequestIds)().setGenerate,Me=(0,w.useRef)(function generateUniqueId(){return"custom-css-".concat(Math.random().toString(36).substr(2,9))}());(0,Q.useSubscribeOnPromptHistoryAction)([{type:Q.ACTION_TYPES.REUSE,handler:function handler(t){ye(),je(t.data)}}]);var Le=(0,w.useRef)((function(){})),De=N.codeHtmlAutocomplete,We="";"css"===(null==C?void 0:C.codeLanguage)?(De=N.codeCssAutocomplete,We="https://go.elementor.com/ai-prompt-library-css/"):We=null!=C&&C.htmlMarkup?"https://go.elementor.com/ai-prompt-library-html/":"https://go.elementor.com/ai-prompt-library-custom-code/";var Be=!Re,ze=function(){var t=(0,P.default)(E.default.mark((function _callee(t){var i;return E.default.wrap((function _callee$(b){for(;;)switch(b.prev=b.next){case 0:return t.preventDefault(),Ae(),Le.current=function(){return ve({prompt:Re})},b.next=5,Le.current();case 5:i=b.sent,"css"===(null==C?void 0:C.codeLanguage)&&i.result&&$e((0,ne.splitText)(i.result).code);case 7:case"end":return b.stop()}}),_callee)})));return function handleSubmit(i){return t.apply(this,arguments)}}();(0,w.useEffect)((function(){return function(){et()}}),[]);var $e=function showCssPreview(t){var i=Ke(t);Qe(i)},Ke=function parseCSS(t){var i=null==C?void 0:C.elementId,b="document"===i?elementor.config.document.settings.cssWrapperSelector:".elementor-element.elementor-element-".concat(i);return t&&t.replace(/`/g,"").replace(/^css\s*/i,"").replace(/selector/g,b)},Qe=function insertStyleTag(t){var i=document.createElement("style");i.id=Me.current,i.appendChild(document.createTextNode(t)),elementorFrontend.elements.$body[0].appendChild(i)},et=function removeStyleTag(){var t=elementorFrontend.elements.$body[0].querySelector("#".concat(Me.current));t&&t.remove()},tt=function applyPrompt(t){be(),_(t),i()};return me?w.default.createElement(H.default,null):w.default.createElement(w.default.Fragment,null,ge&&w.default.createElement(Y.default,{error:ge,onRetry:Le.current,sx:{mb:2.5}}),W,!pe.result&&w.default.createElement(A.Box,{component:"form",onSubmit:ze},w.default.createElement(A.Box,{sx:{pb:1.5}},w.default.createElement(U.default,{placeholder:(0,D.__)("Describe the code you want to use...","elementor"),name:"prompt",value:Re,color:"secondary",onChange:function onChange(t){return je(t.target.value)}})),Be&&w.default.createElement(V.default,{suggestions:De,onSelect:je},w.default.createElement(J.default,{libraryLink:We})),w.default.createElement(A.Stack,{direction:"row",alignItems:"center",sx:{py:1.5,mt:4}},w.default.createElement(A.Stack,{direction:"row",justifyContent:"flex-end",flexGrow:1},w.default.createElement(G.default,null,(0,D.__)("Generate code","elementor"))))),pe.result&&w.default.createElement(de,null,w.default.createElement(q.default,{components:{code:function code(t){return w.default.createElement(K.default,(0,S.default)({},t,{defaultValue:b(),onInsert:tt}))}}},xe),Oe,w.default.createElement(te.VoicePromotionAlert,{introductionKey:"ai-context-code-promotion"}),w.default.createElement(A.Stack,{direction:"row",alignItems:"center",sx:{mt:4}},w.default.createElement(A.Stack,{direction:"row",gap:1,justifyContent:"flex-end",flexGrow:1},w.default.createElement(A.Button,{size:"small",color:"secondary",variant:"text",onClick:function onClick(){et(),ye()}},(0,D.__)("New prompt","elementor"))))))};fe.propTypes={onClose:W.default.func.isRequired,getControlValue:W.default.func.isRequired,setControlValue:W.default.func.isRequired,additionalOptions:W.default.shape({codeLanguage:W.default.string,htmlMarkup:W.default.string,elementId:W.default.string,initialCredits:W.default.number}),credits:W.default.number,children:W.default.node};i.default=fe},87631:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.splitText=function splitText(t){if(!t)return{};var i=t.match(/```([\s\S]*?)```/),b=i?"```".concat(i[1],"```").trim():"",_=t.match(/```[\s\S]*?```([\s\S]*)/),C=null==_?void 0:_[1].trim();return{code:b,details:C}}},4353:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.USER_VARIATION_SOURCE=i.USER_URL_SOURCE=i.MENU_TYPE_LIBRARY=i.ELEMENTOR_LIBRARY_SOURCE=i.ATTACHMENT_TYPE_URL=i.ATTACHMENT_TYPE_JSON=void 0;var C=_(b(41594)),w=_(b(78304)),E=b(60992),S=_(b(25553)),P=_(b(45286)),k=_(b(68627)),T=_(b(65141)),A=b(12470),D=_(b(62688)),W=b(38298),q=b(86956),N=i.ATTACHMENT_TYPE_JSON="json",H=i.ATTACHMENT_TYPE_URL="url",U=i.MENU_TYPE_LIBRARY="library",V=(i.USER_VARIATION_SOURCE="user-variation",i.ELEMENTOR_LIBRARY_SOURCE="elementor-library",i.USER_URL_SOURCE="user-url",function Attachments(t){return t.attachments.length?C.default.createElement(q.Stack,{direction:"row",spacing:1},t.attachments.map((function(i,b){switch(i.type){case N:return C.default.createElement(S.default,(0,w.default)({key:b},t));case H:return C.default.createElement(P.default,(0,w.default)({key:b},t));default:return null}}))):C.default.createElement(E.Menu,{disabled:t.disabled,onAttach:t.onAttach,items:[{title:(0,A.__)("Reference a website","elementor"),icon:k.default,type:H},{title:(0,A.__)("Create variations from Template Library","elementor"),icon:T.default,type:U}]})});V.propTypes={attachments:D.default.arrayOf(W.AttachmentPropType).isRequired,onAttach:D.default.func.isRequired,onDetach:D.default.func,disabled:D.default.bool};i.default=V},89958:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.AttachDialog=void 0;var C=_(b(41594)),w=b(43220),E=_(b(62688)),S=b(66942),P=b(4353),k=i.AttachDialog=function AttachDialog(t){var i=t.type,b=t.url;switch(i){case P.ATTACHMENT_TYPE_URL:return C.default.createElement(w.UrlDialog,{url:b,onAttach:t.onAttach,onClose:t.onClose});case P.MENU_TYPE_LIBRARY:return C.default.createElement(S.LibraryDialog,{onAttach:t.onAttach,onClose:t.onClose})}return null};k.propTypes={type:E.default.string,onAttach:E.default.func,onClose:E.default.func,url:E.default.string};i.default=k},66942:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.LibraryDialog=void 0;var C=_(b(62688)),w=b(41594),E=b(4353);(i.LibraryDialog=function LibraryDialog(t){var i=(0,w.useRef)(!1);return(0,w.useEffect)((function(){var b=function onLibraryHide(){i.current||t.onClose()};return $e.components.get("library").layout.getModal().on("hide",b),function(){$e.components.get("library").layout.getModal().off("hide",b)}}),[t]),(0,w.useEffect)((function(){var b=function onMessage(b){var _=b.data,C=_.type,w=_.json,S=_.html,P=_.label,k=_.source;switch(C){case"library/attach:start":i.current=!0;break;case"library/attach":t.onAttach([{type:E.ATTACHMENT_TYPE_JSON,previewHTML:S,content:w,label:P,source:k}]),i.current=!1,t.onClose()}};return window.addEventListener("message",b),function(){window.removeEventListener("message",b)}})),$e.run("library/open",{toDefault:!0,mode:"ai-attachment"}),i.current=!1,null}).propTypes={onAttach:C.default.func.isRequired,onClose:C.default.func.isRequired}},60992:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);Object.defineProperty(i,"__esModule",{value:!0}),i.Menu=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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(18821)),S=b(86956),P=_(b(65815)),k=_(b(96793)),T=_(b(62688)),A=b(89958),D=_(b(80366));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)}(i.Menu=function Menu(t){var i=(0,w.useState)(!1),b=(0,E.default)(i,2),_=b[0],C=b[1],T=(0,w.useState)(null),W=(0,E.default)(T,2),q=W[0],N=W[1],H=(0,S.useTheme)().direction,U=(0,w.useRef)(null),V=(0,D.default)("e-ai-attachment-badge"),G=V.isViewed,Y=V.markAsViewed;return w.default.createElement(w.default.Fragment,null,w.default.createElement(S.IconButton,{size:"small",ref:U,disabled:t.disabled,onClick:function onClick(){C(!0),G||Y()},color:"secondary"},_?w.default.createElement(P.default,{fontSize:"small"}):G?w.default.createElement(k.default,{fontSize:"small"}):w.default.createElement(S.Badge,{color:"primary",badgeContent:" ",variant:"dot"},w.default.createElement(k.default,{fontSize:"small"}))),w.default.createElement(S.Popover,{open:_,anchorEl:U.current,onClose:function onClose(){return C(!1)},anchorOrigin:{vertical:"bottom",horizontal:"rtl"===H?"right":"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===H?"right":"left"}},w.default.createElement(S.Stack,{sx:{width:440}},t.items.map((function(t){var i=t.icon;return w.default.createElement(S.MenuItem,{key:t.type,onClick:function onClick(){N(t.type),C(!1)}},w.default.createElement(S.ListItemIcon,null,w.default.createElement(i,null)),t.title)})))),w.default.createElement(A.AttachDialog,{type:q,onAttach:t.onAttach,onClose:function onClose(){C(!1),N(null)}}))}).propTypes={items:T.default.arrayOf(T.default.shape({title:T.default.string.isRequired,type:T.default.string.isRequired,icon:T.default.elementType})).isRequired,onAttach:T.default.func.isRequired,disabled:T.default.bool}},54403:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.PromptPowerNotice=void 0;var C=_(b(41594)),w=b(86956),E=b(12470),S=_(b(80366));i.PromptPowerNotice=function PromptPowerNotice(){var t=(0,S.default)("e-ai-builder-attachments-power"),i=t.isViewed,b=t.markAsViewed;return i?null:C.default.createElement(w.Box,{sx:{pt:2,px:2,pb:0}},C.default.createElement(w.Alert,{severity:"info",onClose:function onClose(){return b()}},C.default.createElement(w.Typography,{variant:"body2",display:"inline-block",sx:{paddingInlineEnd:1}},(0,E.__)("You’ve got the power.","elementor")),C.default.createElement(w.Typography,{variant:"body2",display:"inline-block"},(0,E.__)("Craft your prompt to affect content, images and/or colors - whichever you decide.","elementor"))))}},25553:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.ThumbnailJson=void 0;var C=_(b(41594)),w=b(71338),E=_(b(62688)),S=b(86956),P=b(38298),k=i.ThumbnailJson=function ThumbnailJson(t){var i,b=null===(i=t.attachments)||void 0===i?void 0:i.find((function(t){return"json"===t.type}));return b?b.previewHTML?C.default.createElement(w.Thumbnail,{html:b.previewHTML,disabled:t.disabled}):C.default.createElement(S.Skeleton,{animation:"wave",variant:"rounded",width:60,height:60}):null};k.propTypes={attachments:E.default.arrayOf(P.AttachmentPropType).isRequired,disabled:E.default.bool};i.default=k},45286:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.ThumbnailUrl=void 0;var C=_(b(41594)),w=b(71338),E=b(12470),S=_(b(62688)),P=b(86956),k=b(44048),T=b(38298),A=i.ThumbnailUrl=function ThumbnailUrl(t){var i,b=null===(i=t.attachments)||void 0===i?void 0:i.find((function(t){return"url"===t.type}));return b?C.default.createElement(P.Box,{sx:{position:"relative","&:hover::before":{content:'""',position:"absolute",userSelect:"none",inset:0,backgroundColor:"rgba(0,0,0,0.6)",borderRadius:1,zIndex:1},"&:hover .remove-attachment":{display:"flex"}}},C.default.createElement(P.IconButton,{className:"remove-attachment",size:"small","aria-label":(0,E.__)("Remove","elementor"),disabled:t.disabled,onClick:function onClick(i){i.stopPropagation(),t.onDetach()},sx:{display:"none",position:"absolute",insetInlineEnd:4,insetBlockStart:4,backgroundColor:"secondary.main",zIndex:1,borderRadius:1,p:"3px","&:hover":{backgroundColor:"secondary.dark"}}},C.default.createElement(k.TrashIcon,{sx:{fontSize:"1.125rem",color:"common.white"}})),C.default.createElement(w.Thumbnail,{disabled:t.disabled,html:b.previewHTML})):null};A.propTypes={attachments:S.default.arrayOf(T.AttachmentPropType).isRequired,disabled:S.default.bool,onDetach:S.default.func};i.default=A},71338:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.Thumbnail=i.THUMBNAIL_SIZE=void 0;var C,w=_(b(41594)),E=_(b(98832)),S=b(86956),P=b(12470),k=_(b(62688)),T=_(b(79626)),A=i.THUMBNAIL_SIZE=64,D=T.default.body(C||(C=(0,E.default)(["\n\thtml, body {\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\toverflow: hidden;\n\t}\n\n\tbody > * {\n\t\twidth: 100% !important;\n\t}\n\n\tbody > img {\n\t\theight: 100%;\n\t\tobject-fit: cover;\n\t}\n\n\tbody:has(> img) {\n\t\theight: ","px\n\t}\n"])),A);(i.Thumbnail=function Thumbnail(t){var i,b,_=null===(i=t.html.match('data-width="(?<width>\\d+)"'))||void 0===i||null===(i=i.groups)||void 0===i?void 0:i.width,C=null===(b=t.html.match('data-height="(?<height>\\d+)"'))||void 0===b||null===(b=b.groups)||void 0===b?void 0:b.height,E=_?parseInt(_):A,k=C?parseInt(C):A,T=Math.min(k,E),W=A/T,q=k>E?(A-A*(k/E))/2:0,N=E>k?(A-A*(E/k))/2:0;return w.default.createElement(S.Box,{dir:"ltr",sx:{position:"relative",cursor:"default",overflow:"hidden",border:"1px solid",borderColor:"grey.300",borderRadius:1,boxSizing:"border-box",width:A,height:A,opacity:t.disabled?.5:1}},w.default.createElement("iframe",{title:(0,P.__)("Preview","elementor"),sandbox:"",srcDoc:"<style>"+D.componentStyle.rules.join("")+"</style>"+t.html,style:{border:"none",overflow:"hidden",width:E,height:k,transform:"scale(".concat(W,")"),transformOrigin:"".concat(N,"px ").concat(q,"px")}}))}).propTypes={html:k.default.string.isRequired,disabled:k.default.bool}},43220:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);Object.defineProperty(i,"__esModule",{value:!0}),i.UrlDialog=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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(18821)),S=b(86956),P=_(b(62688)),k=b(12470),T=b(86353),A=b(77043),D=b(4353),W=b(35589),q=_(b(24954)),N=b(40128);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)}(i.UrlDialog=function UrlDialog(t){var i=(0,A.useTimeout)(1e4),b=(0,E.default)(i,2),_=b[0],C=b[1],P=(0,q.default)(),H=P.isLoading,U=P.usagePercentage,V=(0,N.useRequestIds)().updateUsagePercentage,G=(0,w.useState)(!1),Y=(0,E.default)(G,2),K=Y[0],Z=Y[1],Q=(0,W.useRemoteConfig)().remoteConfig[W.CONFIG_KEYS.WEB_BASED_BUILDER_URL],J=(Q?new URL(Q):{}).origin,ee=(0,w.useRef)(!1);return(0,w.useEffect)((function(){K||H||!U&&0!==U||(V(U),Z(!0))}),[H,U,K,V]),(0,w.useEffect)((function(){if(!ee.current)try{window.$e.run("ai-integration/open-choose-element",{url:t.url}),ee.current=!0}catch(t){console.error(t)}}),[ee.current]),(0,w.useEffect)((function(){var i=function onMessage(i){if(i.origin===J){var b=i.data,_=b.type,w=b.html,E=b.url;switch(_){case"element-selector/close":ee.current=!1,t.onClose();break;case"element-selector/loaded":C(),ee.current=!0;break;case"element-selector/attach":t.onAttach([{type:"url",previewHTML:w,content:w,label:E?new URL(E).href:"",source:D.USER_URL_SOURCE}])}}};return window.addEventListener("message",i),function(){window.removeEventListener("message",i)}}),[J,t,C]),w.default.createElement(w.default.Fragment,null,!ee.current&&!_&&w.default.createElement(S.Dialog,{open:!0,maxWidth:"lg"},w.default.createElement(S.Typography,{sx:{textAlign:"center",padding:3}},(0,k.__)("Loading...","elementor"))),_&&w.default.createElement(T.AlertDialog,{message:(0,k.__)("The app is not responding. Please try again later. (#408)","elementor"),onClose:t.onClose}))}).propTypes={onAttach:P.default.func.isRequired,onClose:P.default.func.isRequired,url:P.default.string}},75690:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(78304)),S=_(b(85707)),P=_(b(18821)),k=_(b(40453)),T=b(86956),A=b(12470),D=_(b(62688)),W=_(b(48968)),q=b(44048),N=["sx","PaperProps"];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,S.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 H=(0,T.styled)(W.default)((function(){return{"& .MuiDialog-container":{marginTop:0,alignItems:"flex-end",paddingBottom:"16vh"},"& .MuiPaper-root":{margin:0,maxHeight:"80vh"}}})),U=function DialogHeader(t){var i=t.onClose,b=t.children;return w.default.createElement(T.AppBar,{sx:{fontWeight:"normal"},color:"transparent",position:"relative"},w.default.createElement(T.Toolbar,{variant:"dense"},w.default.createElement(q.AIIcon,{sx:{mr:1}}),w.default.createElement(T.Typography,{component:"span",variant:"subtitle2",sx:{fontWeight:"bold",textTransform:"uppercase"}},(0,A.__)("AI","elementor")),w.default.createElement(T.Chip,{label:(0,A.__)("Beta","elementor"),color:"default",size:"small",sx:{ml:1}}),w.default.createElement(T.Stack,{direction:"row",spacing:1,alignItems:"center",sx:{ml:"auto"}},b,w.default.createElement(T.IconButton,{size:"small","aria-label":"close",onClick:i,sx:{"&.MuiButtonBase-root":{mr:-1}}},w.default.createElement(q.XIcon,null)))))};U.propTypes={children:D.default.node,onClose:D.default.func.isRequired};var V=(0,T.styled)(W.default.Content)((function(){return{"&.MuiDialogContent-root":{padding:0}}})),G=function LayoutDialog(t){var i=t.sx,b=void 0===i?{}:i,_=t.PaperProps,C=void 0===_?{}:_,S=(0,k.default)(t,N),T=(0,w.useState)({pointerEvents:"none"}),A=(0,P.default)(T,2),D=A[0],W=A[1],q=(0,w.useRef)(null);return w.default.createElement(H,(0,E.default)({maxWidth:"md",PaperProps:_objectSpread({sx:{pointerEvents:"auto"},onMouseEnter:function onMouseEnter(){clearTimeout(q.current),W({pointerEvents:"all"})},onMouseLeave:function onMouseLeave(){clearTimeout(q.current),q.current=setTimeout((function(){W({pointerEvents:"none"})}),200)}},C)},S,{sx:_objectSpread(_objectSpread({},D),b)}))};G.propTypes={sx:D.default.object,PaperProps:D.default.object},G.Header=U,G.Content=V;i.default=G},45395:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);Object.defineProperty(i,"__esModule",{value:!0}),i.ProTemplateIndicator=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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(18821)),S=b(12470),P=b(86956),k=_(b(21995));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=(0,P.styled)(P.Paper)((function(t){var i=t.theme;return{position:"relative",padding:i.spacing(3),boxShadow:i.shadows[4],zIndex:"9999"}})),A=(0,P.styled)(P.Box)((function(t){var i=t.theme;return{position:"absolute",width:i.spacing(5),height:i.spacing(5),overflow:"hidden",left:"100% !important",transform:"translateX(-50%) translateY(-50%) rotate(var(--rotate, 0deg)) !important","&::after":{backgroundColor:i.palette.background.paper,content:'""',display:"block",position:"absolute",width:i.spacing(2.5),height:i.spacing(2.5),top:"50%",left:"50%",transform:"translateX(-50%) translateY(-50%) rotate(45deg)",boxShadow:"5px -5px 5px 0px rgba(0, 0, 0, 0.2)",backgroundImage:"linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05))"}}}));i.ProTemplateIndicator=function ProTemplateIndicator(){var t=(0,S.__)("Go Pro","elementor"),i=(0,w.useState)(!1),b=(0,E.default)(i,2),_=b[0],C=b[1],D=(0,w.useRef)(null),W=(0,w.useRef)(null);return w.default.createElement(P.Box,{flexDirection:"row-reverse",component:"span",display:"flex",onMouseLeave:function hidePopover(){return C(!1)},alignItems:"center"},w.default.createElement(P.IconButton,{ref:D,onMouseEnter:function showPopover(){return C(!0)},onClick:function onClick(t){return t.stopPropagation()},"aria-owns":_?"e-pro-upgrade-popover":void 0,"aria-haspopup":"true",sx:{m:1,"&:hover":{backgroundColor:"action.selected"}}},w.default.createElement(k.default,{sx:{color:"text.primary"}})),w.default.createElement(P.Popper,{open:_,popperOptions:{placement:"left-start",modifiers:[{name:"arrow",enabled:!0,options:{element:W.current,padding:5}},{name:"offset",options:{offset:[0,10]}}]},anchorEl:D.current,sx:{zIndex:"9999",maxWidth:300}},w.default.createElement(T,null,w.default.createElement(A,{ref:W}),w.default.createElement(P.Stack,{alignItems:"start",spacing:2},w.default.createElement(P.Chip,{color:"promotion",variant:"outlined",size:"small",label:(0,S.__)("Pro","elementor"),icon:w.default.createElement(k.default,null)}),w.default.createElement(P.Typography,{variant:"body2"},(0,S.__)("This result includes an Elementor Pro widget that's not available with your current plan. Upgrade to use all the widgets in this result.","elementor")),w.default.createElement(P.Button,{variant:"contained",color:"promotion",size:"small",href:"https://go.elementor.com/go-pro-ai/",target:"_blank",sx:{alignSelf:"flex-end"}},t)))))}},4974:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(18821)),S=_(b(40453)),P=_(b(78304)),k=_(b(85707)),T=b(86956),A=_(b(62688)),D=b(12470),W=_(b(53497)),q=b(91258),N=["onSubmit"];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,k.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 H=(0,w.forwardRef)((function(t,i){return w.default.createElement(T.TextField,(0,P.default)({autoFocus:!0,multiline:!0,size:"small",maxRows:3,color:"secondary",variant:"standard"},t,{inputRef:i,InputProps:_objectSpread(_objectSpread({},t.InputProps),{},{type:"search",sx:{pt:0}})}))}));H.propTypes={InputProps:A.default.object};var U=function PaperComponent(t){var i=(0,q.useConfig)().mode,b=q.MODE_VARIATION===i?"https://go.elementor.com/ai-prompt-library-variations/":"https://go.elementor.com/ai-prompt-library-containers/";return w.default.createElement(T.Paper,(0,P.default)({},t,{elevation:8,sx:{borderRadius:2}}),w.default.createElement(T.Typography,{component:T.Box,color:function color(t){return t.palette.text.tertiary},variant:"caption",paddingX:2,paddingY:1},(0,D.__)("Suggested Prompts","elementor")),w.default.createElement(T.Divider,null),t.children,w.default.createElement(T.Stack,{sx:{m:2}},w.default.createElement(W.default,{libraryLink:b})))};U.propTypes={children:A.default.node};var V=function PromptAutocomplete(t){var i=t.onSubmit,b=(0,S.default)(t,N),_=(0,w.useState)(!1),C=(0,E.default)(_,2),k=C[0],A=C[1],D=(0,T.useTheme)(),W=parseInt(D.spacing(4));return w.default.createElement(T.Autocomplete,(0,P.default)({PaperComponent:U,ListboxProps:{sx:{maxHeight:5*W}},renderOption:function renderOption(t,i){return w.default.createElement(T.Typography,(0,P.default)({},t,{title:i.text,noWrap:!0,variant:"body2",component:T.Box,sx:{"&.MuiAutocomplete-option":{display:"block",minHeight:W}}}),i.text)},freeSolo:!0,fullWidth:!0,disableClearable:!0,open:k,onClose:function onClose(t){var i;return A("A"===(null===(i=t.relatedTarget)||void 0===i?void 0:i.tagName))},onKeyDown:function onKeyDown(t){"Enter"!==t.key||t.shiftKey||k?"/"===t.key&&""===t.target.value&&(t.preventDefault(),A(!0)):i(t)}},b))};V.propTypes={onSubmit:A.default.func.isRequired},V.TextInput=H;i.default=V},85076:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(18821)),S=_(b(78304)),P=_(b(40453)),k=b(86956),T=b(12470),A=_(b(62688)),D=_(b(4974)),W=_(b(48584)),q=_(b(63223)),N=_(b(31593)),H=_(b(51066)),U=_(b(34161)),V=_(b(4353)),G=b(91258),Y=b(38298),K=["tooltip"];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 Z=Object.freeze([{text:(0,T.__)("Hero section on [topic] with heading, text, buttons on the right, and an image on the left","elementor.com")},{text:(0,T.__)("About Us section on [topic] with heading, text, and big image below","elementor.com")},{text:(0,T.__)("Team section with four image boxes showcasing team members","elementor.com")},{text:(0,T.__)("FAQ section with a toggle widget showcasing FAQs about [topic]","elementor.com")},{text:(0,T.__)("Gallery section with a carousel displaying three images at once","elementor.com")},{text:(0,T.__)("Contact section with a form for [topic]","elementor.com")},{text:(0,T.__)("Client section featuring companies' logos","elementor.com")},{text:(0,T.__)("Testimonial section with testimonials, each featuring a star rating and an image","elementor.com")},{text:(0,T.__)("Service section about [topic], showcasing four services with buttons","elementor.com")},{text:(0,T.__)("Stats section with counters displaying data about [topic]","elementor.com")},{text:(0,T.__)("Quote section with colored background, featuring a centered quote","elementor.com")},{text:(0,T.__)("Pricing section for [topic] with a pricing list","elementor.com")},{text:(0,T.__)("Subscribe section featuring a simple email form, inviting users to stay informed on [topic]","elementor.com")}]),Q=function IconButtonWithTooltip(t){var i=t.tooltip,b=(0,P.default)(t,K);return w.default.createElement(k.Tooltip,{title:i},w.default.createElement(k.Box,{component:"span",sx:{cursor:b.disabled?"default":"pointer"}},w.default.createElement(k.IconButton,b)))};Q.propTypes={tooltip:A.default.string,disabled:A.default.bool};var J=function BackButton(t){return w.default.createElement(Q,(0,S.default)({size:"small",color:"secondary",tooltip:(0,T.__)("Back to results","elementor")},t),w.default.createElement(N.default,null))},ee=function EditButton(t){return w.default.createElement(Q,(0,S.default)({size:"small",color:"primary",tooltip:(0,T.__)("Edit prompt","elementor")},t),w.default.createElement(H.default,null))},te=function GenerateButton(t){return w.default.createElement(q.default,(0,S.default)({size:"small",fullWidth:!1},t),(0,T.__)("Generate","elementor"))},ne=(0,w.forwardRef)((function(t,i){var b,_=t.attachments,C=t.isActive,P=t.isLoading,A=t.showActions,q=void 0!==A&&A,N=t.onAttach,H=t.onDetach,Y=t.onSubmit,K=t.onBack,Q=t.onEdit,ne=t.shouldResetPrompt,de=void 0!==ne&&ne,fe=(0,w.useState)(""),pe=(0,E.default)(fe,2),me=pe[0],ge=pe[1];(0,w.useEffect)((function(){de&&ge("")}),[de]);var ye=(0,U.default)(me,"layout"),ve=ye.isEnhancing,be=ye.enhance,Ee=(0,w.useRef)(""),xe=(0,G.useConfig)().attachmentsTypes,Oe=P||ve||!C,ke=""===me&&!_.length,Te=Oe||ke,Re=xe[(null===(b=_[0])||void 0===b?void 0:b.type)||""],je=(null==Re?void 0:Re.promptSuggestions)||Z,Ae=(null==Re?void 0:Re.promptPlaceholder)||(0,T.__)("Press '/' for suggested prompts or describe the layout you want to create","elementor");return w.default.createElement(k.Stack,{component:"form",onSubmit:function onSubmit(t){return Y(t,me)},direction:"row",sx:{p:3},alignItems:"start",gap:1},w.default.createElement(k.Stack,{direction:"row",alignItems:"start",flexGrow:1,spacing:2},q&&(C?w.default.createElement(J,{disabled:P||ve,onClick:function handleBack(){ge(Ee.current),K()}}):w.default.createElement(ee,{disabled:P,onClick:function handleEdit(){Ee.current=me,Q()}})),w.default.createElement(V.default,{attachments:_,onAttach:N,onDetach:H,disabled:Oe}),w.default.createElement(D.default,{value:me,disabled:Oe,onSubmit:function onSubmit(t){return Y(t,me)},options:je,onChange:function onChange(t,i){return ge(i.text+" ")},renderInput:function renderInput(t){return w.default.createElement(D.default.TextInput,(0,S.default)({},t,{ref:i,onChange:function onChange(t){return ge(t.target.value)},placeholder:Ae}))}})),w.default.createElement(W.default,{size:"small",disabled:Te||""===me,isLoading:ve,onClick:function onClick(){return be().then((function(t){var i=t.result;return ge(i)}))}}),w.default.createElement(te,{disabled:Te}))}));ne.propTypes={isActive:A.default.bool,onAttach:A.default.func,onDetach:A.default.func,isLoading:A.default.bool,showActions:A.default.bool,onSubmit:A.default.func.isRequired,onBack:A.default.func.isRequired,onEdit:A.default.func.isRequired,attachments:A.default.arrayOf(Y.AttachmentPropType),shouldResetPrompt:A.default.bool};i.default=ne},25893:(t,i,b)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var _=b(86956),C=(0,_.styled)(_.Box,{shouldForwardProp:function shouldForwardProp(t){return"outlineOffset"!==t}})((function(t){var i=t.theme,b=t.selected,_=t.height,C=t.disabled,w=t.outlineOffset,E=void 0===w?"0px":w,S=b?i.palette.text.primary:i.palette.text.disabled,P="2px solid ".concat(S);return{height:_,cursor:C?"default":"pointer",overflow:"hidden",boxSizing:"border-box",backgroundPosition:"top center",backgroundSize:"100% auto",backgroundRepeat:"no-repeat",backgroundColor:i.palette.common.white,borderRadius:.5*i.shape.borderRadius,outlineOffset:E,outline:P,opacity:C?"0.4":"1",transition:"all 50ms linear","&:hover":C?{}:{outlineColor:i.palette.text.primary}}}));i.default=C},93264:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=ScreenshotUnavailable;var C=_(b(41594)),w=_(b(78304)),E=_(b(85707)),S=_(b(62688)),P=b(12470),k=_(b(25893));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}function ScreenshotUnavailable(t){return C.default.createElement(k.default,(0,w.default)({},t,{sx:_objectSpread(_objectSpread({},t.sx||{}),{},{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"background.paper",color:"text.tertiary",fontStyle:"italic",fontSize:"12px",paddingInline:12,textAlign:"center",lineHeight:1.5})}),(0,P.__)("Preview unavailable","elementor"))}ScreenshotUnavailable.propTypes={sx:S.default.object}},79919:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(85707)),E=b(86956),S=_(b(62688)),P=_(b(25893)),k=_(b(93264)),T=_(b(51563));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 A="138px",D=function Screenshot(t){var i=t.url,b=t.type,_=t.isLoading,w=void 0!==_&&_,S=t.isSelected,D=void 0!==S&&S,W=t.isPlaceholder,q=t.disabled,N=t.onClick,H=t.sx,U=void 0===H?{}:H,V=t.outlineOffset;return W?C.default.createElement(E.Box,{sx:_objectSpread({height:A},U)}):w?C.default.createElement(E.Skeleton,{width:"100%",animation:"wave",variant:"rounded",height:A,sx:U}):i?C.default.createElement(P.default,{selected:D,disabled:q,sx:_objectSpread({backgroundImage:"url('".concat(i,"')")},U),onClick:N,height:A,outlineOffset:V},C.default.createElement(T.default,{type:b})):C.default.createElement(k.default,{selected:D,disabled:q,sx:U,onClick:N,height:A,outlineOffset:V})};D.propTypes={isSelected:S.default.bool,isLoading:S.default.bool,isPlaceholder:S.default.bool,disabled:S.default.bool,onClick:S.default.func.isRequired,url:S.default.string,type:S.default.string,sx:S.default.object,outlineOffset:S.default.string};i.default=D},51563:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(62688)),E=b(91258),S=b(45395),P=function TemplateBadge(t){var i=(0,E.useConfig)().hasPro;return"Pro"!==t.type||i?null:C.default.createElement(S.ProTemplateIndicator,null)};i.default=P;P.propTypes={type:w.default.string}},64162:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(78304)),E=_(b(40453)),S=b(86956),P=b(12470),k=_(b(62688)),T=["onClose","onCancel","title","text"],A=function UnsavedChangesAlert(t){var i=t.onClose,b=t.onCancel,_=t.title,k=t.text,A=(0,E.default)(t,T);return C.default.createElement(S.Dialog,(0,w.default)({"aria-labelledby":"unsaved-changes-alert-title","aria-describedby":"unsaved-changes-alert-description"},A),C.default.createElement(S.DialogTitle,{id:"unsaved-changes-alert-title"},_),C.default.createElement(S.DialogContent,null,C.default.createElement(S.DialogContentText,{id:"unsaved-changes-alert-description"},k)),C.default.createElement(S.DialogActions,null,C.default.createElement(S.Button,{onClick:b,color:"secondary"},(0,P.__)("Cancel","elementor")),C.default.createElement(S.Button,{onClick:i,color:"error",variant:"contained"},(0,P.__)("Yes, leave","elementor"))))};A.propTypes={title:k.default.string,text:k.default.string,onCancel:k.default.func,onClose:k.default.func};i.default=A},91258:(t,i,b)=>{"use strict";var _=b(96784);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(41594)),w=_(b(62688)),E=i.MODE_LAYOUT="layout",S=i.MODE_VARIATION="variation",P=i.LAYOUT_APP_MODES=[E,S],k=C.default.createContext({});i.useConfig=function useConfig(){return C.default.useContext(k)};(i.ConfigProvider=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}},t.children)}).propTypes={mode:w.default.oneOf(P).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};i.default=k},35589:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);Object.defineProperty(i,"__esModule",{value:!0}),i.useRemoteConfig=i.RemoteConfigProvider=i.CONFIG_KEYS=void 0;var w=_(b(61790)),E=_(b(58155)),S=_(b(18821)),P=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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),k=_(b(62688)),T=b(95034);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 A=P.default.createContext({});i.useRemoteConfig=function useRemoteConfig(){return P.default.useContext(A)},i.CONFIG_KEYS={WEB_BASED_BUILDER_URL:"webBasedBuilderUrl",AUTH_TOKEN:"jwt"};(i.RemoteConfigProvider=function RemoteConfigProvider(t){var i=(0,P.useState)(!1),b=(0,S.default)(i,2),_=b[0],C=b[1],k=(0,P.useState)(!1),D=(0,S.default)(k,2),W=D[0],q=D[1],N=(0,P.useState)(!1),H=(0,S.default)(N,2),U=H[0],V=H[1],G=(0,P.useState)({}),Y=(0,S.default)(G,2),K=Y[0],Z=Y[1],Q=function(){var t=(0,E.default)(w.default.mark((function _callee(){var t;return w.default.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:return C(!0),V(!1),i.prev=2,i.next=5,(0,T.getRemoteConfig)().finally((function(){q(!0),C(!1)}));case 5:if((t=i.sent).config){i.next=8;break}throw new Error("Invalid remote config");case 8:Z(t.config),i.next=16;break;case 11:i.prev=11,i.t0=i.catch(2),V(!0),q(!0),C(!1);case 16:case"end":return i.stop()}}),_callee,null,[[2,11]])})));return function fetchData(){return t.apply(this,arguments)}}();return(0,P.useEffect)((function(){return window.addEventListener("elementor/connect/success",Q),function(){window.removeEventListener("elementor/connect/success",Q)}}),[]),W||_||Q(),P.default.createElement(A.Provider,{value:{isLoading:_,isLoaded:W,isError:U,remoteConfig:K}},t.children)}).propTypes={children:k.default.node.isRequired,onError:k.default.func.isRequired}},3468:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=b(95034),w=_(b(48812));i.default=function useLayoutPrompt(t,i){return(0,w.default)((function(i,b){return i.variationType=t,(0,C.generateLayout)(i,b)}),i)}},69371:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(61790)),w=_(b(58155)),E=_(b(18821)),S=b(41594),P=_(b(3468));i.default=function useScreenshot(t,i){var b=(0,S.useState)(""),_=(0,E.default)(b,2),k=_[0],T=_[1],A=(0,S.useState)(!1),D=(0,E.default)(A,2),W=D[0],q=D[1],N=(0,P.default)(t,null);return{generate:function generate(t,b){return q(!0),T(""),N.send(t,b).then(function(){var t=(0,w.default)(C.default.mark((function _callee(t){var b;return C.default.wrap((function _callee$(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,i(t.result);case 2:return(b=_.sent).sendUsageData=function(){return N.sendUsageData(t)},b.baseTemplateId=t.baseTemplateId,b.type=t.type,_.abrupt("return",b);case 7:case"end":return _.stop()}}),_callee)})));return function(i){return t.apply(this,arguments)}}()).catch((function(t){throw T(t.extra_data?t:t.message||t),t})).finally((function(){return q(!1)}))},error:k,isLoading:W}}},85614:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(61790)),w=_(b(10906)),E=_(b(58155)),S=_(b(18821)),P=b(41594),k=_(b(69371)),T=b(91258),A=b(40128),D={isPending:!0};i.default=function useScreenshots(t){var i=t.onData,b=(0,P.useState)([]),_=(0,S.default)(b,2),W=_[0],q=_[1],N=(0,T.useConfig)().currentContext,H=(0,A.useRequestIds)(),U=H.editorSessionId,V=H.sessionId,G=H.setRequest,Y=H.setBatch,K=H.setGenerate,Z=(0,P.useRef)(""),Q=Y(),J=[(0,k.default)(0,i),(0,k.default)(1,i),(0,k.default)(2,i)],ee=J.length,te=J.every((function(t){return null==t?void 0:t.error}))?J[0].error:"",ne=J.some((function(t){return null==t?void 0:t.isLoading})),de=(0,P.useRef)(null),fe=function(){var t=(0,E.default)(C.default.mark((function _callee(t,i){var b,_,E,S;return C.default.wrap((function _callee$(C){for(;;)switch(C.prev=C.next){case 0:return de.current=new AbortController,b=function onGenerate(t){return q((function(i){var b=(0,w.default)(i),_=b.indexOf(D);return b[_]=t,b})),!0},_=function onError(){return q((function(t){var i=(0,w.default)(t),b=i.lastIndexOf(D);return i[b]={isError:!0},i})),!1},E=J.map((function(C){var w=C.generate,E=W.map((function(t){return t.baseTemplateId||""}));return w({prompt:t,prevGeneratedIds:E,currentContext:N,ids:{editorSessionId:U.current,sessionId:V.current,generateId:Z.current,batchId:Q.current,requestId:G().current},attachments:i.map((function(t){return{type:t.type,content:t.content,label:t.label,source:t.source}}))},de.current.signal).then(b).catch(_)})),C.next=6,Promise.all(E);case 6:S=C.sent,S.every((function(t){return!1===t}))&&q((function(t){var i=(0,w.default)(t);return i.splice(-1*ee),i}));case 9:case"end":return C.stop()}}),_callee)})));return function createScreenshots(i,b){return t.apply(this,arguments)}}();return{generate:function generate(t,i){var b=Array(ee).fill(D);Z.current=K().current,q(b),fe(t,i)},regenerate:function regenerate(t,i){var b=Array(ee).fill(D);q((function(t){return[].concat((0,w.default)(t),(0,w.default)(b))})),fe(t,i)},screenshots:W,isLoading:ne,error:te,abort:function abort(){var t;return null===(t=de.current)||void 0===t?void 0:t.abort()}}}},68022:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.SCREENSHOTS_PER_PAGE=i.MAX_PAGES=void 0;var C=_(b(18821)),w=b(41594),E=i.SCREENSHOTS_PER_PAGE=3;i.MAX_PAGES=5,i.default=function useSlider(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.slidesCount,b=void 0===i?0:i,_=t.slidesPerPage,S=void 0===_?E:_,P=t.gapPercentage,k=void 0===P?2:P,T=(0,w.useState)(1),A=(0,C.default)(T,2),D=A[0],W=A[1],q=(100-k*(S-1))/S,N=(q+k)*S*(D-1)*-1,H=Math.ceil(b/S);return(0,w.useEffect)((function(){D>1&&D>H&&W(H)}),[H]),{currentPage:D,setCurrentPage:W,pagesCount:H,slidesPerPage:S,gapPercentage:k,offsetXPercentage:N,slideWidthPercentage:q}}},51550:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=_interopRequireWildcard(b(41594)),E=_(b(10906)),S=_(b(40453)),P=_(b(18821)),k=_(b(78304)),T=_(b(62688)),A=b(12470),D=b(86956),W=_(b(43091)),q=_(b(64162)),N=_(b(75690)),H=_(b(85076)),U=_(b(33057)),V=_(b(79919)),G=_(b(85614)),Y=_interopRequireWildcard(b(68022)),K=_(b(33724)),Z=_(b(53952)),Q=b(91258),J=b(38298),ee=b(54403),te=b(4353),ne=_(b(89958)),de=_(b(94760)),fe=b(90291),pe=["children"];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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}var me=(0,D.withDirection)(K.default),ge=(0,D.withDirection)(Z.default),ye=function RegenerateButton(t){return w.default.createElement(D.Button,(0,k.default)({size:"small",color:"secondary",startIcon:w.default.createElement(U.default,null)},t),(0,A.__)("Regenerate","elementor"))},ve=function UseLayoutButton(t){return w.default.createElement(D.Button,(0,k.default)({size:"small",variant:"contained"},t),(0,A.__)("Use Layout","elementor"))};ve.propTypes={sx:T.default.object};var be=function isRegenerateButtonDisabled(t,i,b){return!(!i&&!b)||t.length>=Y.SCREENSHOTS_PER_PAGE*Y.MAX_PAGES},Ee=function FormLayout(t){var i,b,_=t.DialogHeaderProps,C=void 0===_?{}:_,T=t.DialogContentProps,U=void 0===T?{}:T,K=t.attachments,Z=(0,Q.useConfig)(),J=Z.attachmentsTypes,Ee=Z.onData,xe=Z.onInsert,Oe=Z.onSelect,ke=Z.onClose,Te=Z.onGenerate,Re=(0,G.default)({onData:Ee}),je=Re.screenshots,Ae=Re.generate,Me=Re.regenerate,Le=Re.isLoading,De=Re.error,We=Re.abort,Be=(0,Y.default)({slidesCount:je.length}),ze=Be.currentPage,$e=Be.setCurrentPage,Ke=Be.pagesCount,Qe=Be.gapPercentage,et=Be.slidesPerPage,tt=Be.offsetXPercentage,rt=Be.slideWidthPercentage,st=(0,w.useState)(-1),dt=(0,P.default)(st,2),ht=dt[0],gt=dt[1],vt=(0,w.useState)(!1),bt=(0,P.default)(vt,2),_t=bt[0],Ct=bt[1],wt=(0,w.useState)(!0),Et=(0,P.default)(wt,2),xt=Et[0],Ot=Et[1],St=(0,w.useState)([]),Pt=(0,P.default)(St,2),kt=Pt[0],It=Pt[1],Tt=(0,w.useState)(!1),Rt=(0,P.default)(Tt,2),jt=Rt[0],At=Rt[1],Mt=(0,w.useState)(!1),Lt=(0,P.default)(Mt,2),Dt=Lt[0],Wt=Lt[1],Bt=(0,w.useRef)((function(){})),qt=(0,w.useRef)(null),Nt=null===(i=je[ht])||void 0===i?void 0:i.template,Ft=U.children,Ht=(0,S.default)(U,pe),Ut=!(!De||0!==je.length),zt=xt||Ut,Vt=function abortAndClose(){We(),ke()},Gt=function onCloseIntent(){if(""!==qt.current.value.trim()||je.length>0)return Ct(!0);Vt()},$t=function handleScreenshotClick(t,i){return function(){zt||(gt(t),Oe(i))}},Yt=function onAttach(t){t.forEach((function(t){if(!J[t.type])throw new Error("Invalid attachment type: ".concat(t.type));var i=J[t.type];!t.previewHTML&&i.previewGenerator&&i.previewGenerator(t.content).then((function(i){t.previewHTML=i,It((function(i){return i.map((function(i){return i.content===t.content?t:i}))}))}))})),It(t),At(!1),Ot(!0)};return(0,w.useEffect)((function(){var t;(null===(t=je[0])||void 0===t?void 0:t.template)&&(Oe(je[0].template),gt(0))}),[null===(b=je[0])||void 0===b?void 0:b.template]),(0,w.useEffect)((function(){null!=K&&K.length&&Yt(K)}),[]),w.default.createElement(N.default,{onClose:Gt},w.default.createElement(N.default.Header,(0,k.default)({onClose:Gt},C),C.children,w.default.createElement(D.Tooltip,{title:Dt?(0,A.__)("Expand","elementor"):(0,A.__)("Minimize","elementor")},w.default.createElement(D.IconButton,{size:"small","aria-label":"minimize",onClick:function onClick(){return Wt((function(t){return!t}))}},Dt?w.default.createElement(ge,null):w.default.createElement(me,null)))),w.default.createElement(N.default.Content,(0,k.default)({dividers:!0},Ht),w.default.createElement(D.Collapse,{in:!Dt},Ft&&w.default.createElement(D.Box,{sx:{pt:2,px:2,pb:0}},Ft),kt.length>0&&w.default.createElement(ee.PromptPowerNotice,null),De&&w.default.createElement(D.Box,{sx:{pt:2,px:2,pb:0}},w.default.createElement(W.default,{error:De,onRetry:Bt.current})),_t&&w.default.createElement(q.default,{open:_t,title:(0,A.__)("Leave Elementor AI?","elementor"),text:(0,A.__)("Your progress will be deleted, and can't be recovered.","elementor"),onClose:Vt,onCancel:function onCancel(){return Ct(!1)}}),jt&&w.default.createElement(ne.default,{type:te.ATTACHMENT_TYPE_URL,url:qt.current.value,onAttach:Yt,onClose:function onClose(){At(!1)}}),w.default.createElement(H.default,{shouldResetPrompt:jt,ref:qt,isActive:zt,isLoading:Le,showActions:je.length>0||Le,attachmentsTypes:J,attachments:kt,onAttach:Yt,onDetach:function onDetach(t){It((function(i){var b=(0,E.default)(i);return b.splice(t,1),b})),Ot(!0)},onSubmit:function handleGenerate(t,i){t.preventDefault(),""===i.trim()&&0===kt.length||((0,de.default)(i)?At(!0):(Te(),Bt.current=function(){gt(-1),Ae(i,kt)},Bt.current(),Ot(!1),$e(1)))},onBack:function onBack(){return Ot(!1)},onEdit:function onEdit(){return Ot(!0)}}),(je.length>0||Le)&&w.default.createElement(w.default.Fragment,null,w.default.createElement(D.Divider,null),w.default.createElement(D.Box,{sx:{p:1.5}},w.default.createElement(D.Box,{sx:{overflow:"hidden",p:.5}},w.default.createElement(D.Box,{sx:{display:"flex",transition:"all 0.4s ease",gap:"".concat(Qe,"%"),transform:"translateX(".concat(tt,"%)")}},je.map((function(t,i){var b=t.screenshot,_=t.type,C=t.template,E=t.isError,S=t.isPending;return w.default.createElement(V.default,{key:i,url:b,type:_,disabled:zt,isPlaceholder:E,isLoading:S,isSelected:ht===i,onClick:$t(i,C),outlineOffset:"2px",sx:{flex:"0 0 ".concat(rt,"%")}})})))),w.default.createElement(fe.VoicePromotionAlert,{introductionKey:"ai-context-layout-promotion"})),je.length>0&&w.default.createElement(D.Box,{sx:{pt:0,px:2,pb:2},display:"grid",gridTemplateColumns:"repeat(3, 1fr)",justifyItems:"center"},w.default.createElement(ye,{onClick:function handleRegenerate(){Bt.current=function(){Me(qt.current.value,kt),$e(Ke+1)},Bt.current()},disabled:be(je,Le,zt),sx:{justifySelf:"start"}}),je.length>et&&w.default.createElement(D.Pagination,{page:ze,count:Ke,disabled:zt,onChange:function onChange(t,i){return $e(i)}}),w.default.createElement(ve,{onClick:function applyTemplate(){xe(Nt),je[ht].sendUsageData(),Vt()},disabled:zt||-1===ht,sx:{justifySelf:"end",gridColumn:3}}))))))};Ee.propTypes={DialogHeaderProps:T.default.object,DialogContentProps:T.default.object,attachments:T.default.arrayOf(J.AttachmentPropType)};i.default=Ee},35623:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(78304)),E=_(b(40453)),S=b(86956),P=b(12470),k=_(b(62688)),T=_(b(70127)),A=["children"],D=(0,S.withDirection)(T.default),W=function BackButton(t){var i=t.children,b=(0,E.default)(t,A);return C.default.createElement(S.Button,(0,w.default)({size:"small",variant:"text",color:"secondary",startIcon:C.default.createElement(D,null)},b),i||(0,P.__)("Back","elementor"))};W.propTypes={children:k.default.node};i.default=W},17653:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w,E,S=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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),P=_(b(85707)),k=_(b(18821)),T=b(86956),A=_(b(62688)),D=_(b(3767));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 W=null!==(w=null===(E=wp)||void 0===E?void 0:E.components)&&void 0!==w?w:{},q=W.ColorPicker,N=W.ColorIndicator,H=function ColorInput(t){var i,b,_=t.label,C=t.color,w=t.onChange,E=t.disabled,P=(0,S.useState)(!1),A=(0,k.default)(P,2),D=A[0],W=A[1],H=(0,S.useRef)(),V=(0,S.useState)(170001),G=(0,k.default)(V,2),Y=G[0],K=G[1],Z=null===(i=null===(b=elementorCommon)||void 0===b||null===(b=b.config)||void 0===b?void 0:b.isRTL)||void 0===i||i;(0,S.useEffect)((function(){if(H.current){for(var t=H.current,i=0;t&&t!==document.body;){var b=window.getComputedStyle(t).zIndex;if("auto"!==b){i=parseInt(b,10)||0;break}t=t.parentElement}K(i>0?i+1:170001)}}),[D]),(0,S.useEffect)((function(){if(H.current&&D){var t=setTimeout((function(){var t=document.querySelector(".el-ai-custom-color-picker>.components-color-picker > *:not(.react-colorful)");null==t||t.remove()}),10);return function(){return clearTimeout(t)}}}),[D]);var Q=D?"simple-popover":void 0;return S.default.createElement("div",{className:"el-ai-color-input-wrapper",style:_objectSpread({display:"flex",alignItems:"center"},E?{pointerEvents:"none",opacity:.5}:{})},S.default.createElement(T.FormLabel,{sx:{whiteSpace:"nowrap",flex:4}},_),S.default.createElement(N,{colorValue:C,onClick:function handleClick(){return W(!0)},style:{cursor:"pointer",borderRadius:"4px",marginRight:"8px",marginLeft:"8px",borderColor:"rgb(12, 13, 14)",background:C,width:"100%",height:"auto",aspectRatio:"1 / 1",flex:1.1},"aria-describedby":Q,ref:H}),S.default.createElement(U,{value:C.substring(1,7),color:"secondary",fullWidth:!0,InputProps:{autoComplete:"off",color:"secondary",startAdornment:S.default.createElement(T.InputAdornment,{position:"start"},S.default.createElement(T.Typography,{variant:"body1",color:"secondary"},"#"))},onChange:function handleTextFieldChange(t){w("#".concat(t.target.value))},sx:{flex:3}}),S.default.createElement(T.Popover,{id:Q,anchorOrigin:{vertical:"bottom",horizontal:Z?"right":"left"},transformOrigin:{vertical:"top",horizontal:Z?"right":"left"},onClose:function handleClose(){W(!1)},open:D,anchorEl:H.current,style:{zIndex:Y}},S.default.createElement("div",{className:"el-ai-custom-color-picker"},S.default.createElement(q,{color:C,onChangeComplete:function handleColorPickerChange(t){w(t.hex)},disableAlpha:!0}))))},U=(0,T.styled)(D.default)((function(){return{".wp-admin & .MuiInputBase-input, & .MuiInputBase-input:focus":{backgroundColor:"initial",boxShadow:"none",border:0,color:"inherit",outline:0,padding:0,fontFamily:"inherit",minHeight:"2.4375em"}}}));H.propTypes={label:A.default.string,color:A.default.string,onChange:A.default.func.isRequired,disabled:A.default.bool};i.default=H},48584:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(78304)),E=_(b(40453)),S=b(86956),P=b(12470),k=_(b(62688)),T=_(b(53532)),A=["isLoading"],D=(0,S.withDirection)(T.default),W=function EnhanceButton(t){var i=t.isLoading,b=(0,E.default)(t,A);return C.default.createElement(S.Tooltip,{title:(0,P.__)("Enhance prompt","elementor")},C.default.createElement(S.Box,{component:"span",sx:{cursor:b.disabled?"default":"pointer"}},C.default.createElement(S.IconButton,(0,w.default)({size:"small",color:"secondary"},b),i?C.default.createElement(S.CircularProgress,{color:"secondary",size:20}):C.default.createElement(D,{fontSize:"small"}))))};W.propTypes={disabled:k.default.bool,isLoading:k.default.bool};i.default=W},85371:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(85707)),S=_(b(18821)),P=_(b(78304)),k=_(b(40453)),T=b(86956),A=_(b(62688)),D=_(b(3301)),W=_(b(90157)),q=_(b(97601)),N=b(33222),H=["children"],U=["alt","src","text","children","aspectRatio","variant","OverlayBarProps","numImagesInRow","overlay","onSelectChange","checkboxColor","isLoading","initialChecked"];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 V=Object.keys(N.IMAGE_ASPECT_RATIO),G=function Gallery(t){var i=t.children,b=(0,k.default)(t,H);return w.default.createElement(T.ImageList,(0,P.default)({width:"100%",cols:2,gap:24},b),i)};G.propTypes={children:A.default.node};var Y=function GalleryImage(t){var i,b,_=t.alt,C=t.src,E=t.text,A=t.children,N=t.aspectRatio,H=void 0===N?"1:1":N,V=t.variant,G=void 0===V?"contained":V,Y=t.OverlayBarProps,K=void 0===Y?{}:Y,Z=t.numImagesInRow,Q=void 0===Z?2:Z,J=t.overlay,ee=void 0===J||J,te=t.onSelectChange,ne=void 0===te?null:te,de=t.checkboxColor,fe=void 0===de?"rgba(0, 0, 0, 0.54)":de,pe=t.isLoading,me=void 0!==pe&&pe,ge=t.initialChecked,ye=void 0!==ge&&ge,ve=(0,k.default)(t,U),be=(0,w.useState)(ye),Ee=(0,S.default)(be,2),xe=Ee[0],Oe=Ee[1],ke={},Te=null===(i=null===(b=elementorCommon)||void 0===b||null===(b=b.config)||void 0===b?void 0:b.isRTL)||void 0===i||i;return(0,w.useEffect)((function(){Oe(ye)}),[ye]),"thumbnail"===G?(ke.width="100%",ke.maxHeight="238px",ke.minWidth="230px"):(ke.width="auto",ke.height="auto",ke.maxWidth="100%",ke.maxHeight="1:1"===H?"initial":"100%",ke.objectFit="contain",ke.aspectRatio=H.replace(":"," / ")),w.default.createElement(T.ImageListItem,ve,w.default.createElement(T.Box,{display:"flex",justifyContent:"center",alignItems:"center",sx:{bgcolor:"action.selected",height:"contained"===G&&Q<=2?336:"auto",position:"relative",overflow:"hidden"}},w.default.createElement(w.default.Fragment,null,me?w.default.createElement(T.Skeleton,{sx:_objectSpread(_objectSpread({},ke),{},{width:"100%",height:"100% "}),animation:"wave",variant:"rounded"},w.default.createElement("img",{alt:_,src:C,style:_objectSpread(_objectSpread({},ke),{},{visibility:"hidden"})})):w.default.createElement(w.default.Fragment,null,ne&&w.default.createElement(T.Checkbox,{onClick:function onClick(){var t=!xe;Oe(t),ne(t)},checked:xe,sx:{position:"absolute",top:0,left:Te?void 0:0,right:Te?0:void 0,"& .MuiSvgIcon-root":{color:fe}}}),w.default.createElement("img",{alt:_,src:C,style:ke})))),ee&&A&&w.default.createElement(D.default,null,w.default.createElement(W.default,(0,P.default)({gap:1,position:"bottom"},K),E&&w.default.createElement(q.default,null,E),A)))};Y.propTypes={alt:A.default.string,src:A.default.string,text:A.default.string,children:A.default.node,BoxProps:A.default.object,OverlayBarProps:A.default.object,aspectRatio:A.default.oneOf(V),variant:A.default.oneOf(["contained","thumbnail"]),numImagesInRow:A.default.number,overlay:A.default.bool,onSelectChange:A.default.func,checkboxColor:A.default.string,initialChecked:A.default.bool,isLoading:A.default.bool},G.Image=Y;i.default=G},59248:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(78304)),E=b(86956),S=b(12470),P=_(b(33057));i.default=function GenerateAgainSubmit(t){return C.default.createElement(E.Button,(0,w.default)({fullWidth:!0,type:"submit",variant:"contained",color:"secondary",startIcon:C.default.createElement(P.default,null),sx:{color:"background.paper"}},t),(0,S.__)("Generate again","elementor"))}},91422:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(78304)),E=_(b(2768)),S=b(12470),P=_(b(90291));i.default=function GenerateImagesSubmit(t){return C.default.createElement(C.default.Fragment,null,C.default.createElement(E.default,(0,w.default)({size:"medium",fullWidth:!0},t),(0,S.__)("Generate images","elementor")),C.default.createElement(P.default,{introductionKey:"ai-context-media-promotion"}))}},6232:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=b(86956),E=b(12470),S=b(44048);i.default=function GenerateLoader(){return C.default.createElement(w.Stack,{alignItems:"center",justifyContent:"center",gap:2,width:"100%"},C.default.createElement(S.AIIcon,{sx:{color:"text.primary",fontSize:"60px",mb:1}}),C.default.createElement(w.Typography,{variant:"h5",sx:{color:"text.primary"}},(0,E.__)("Bringing your vision to life...","elementor")),C.default.createElement(w.Typography,{variant:"body1"},(0,E.__)("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"})))}},63223:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(78304)),E=b(86956),S=b(12470),P=_(b(62688)),k=function GenerateSubmit(t){return C.default.createElement(E.Button,(0,w.default)({fullWidth:!0,size:"medium",type:"submit",variant:"contained"},t),t.children||(0,S.__)("Generate","elementor"))};k.propTypes={children:P.default.node};i.default=k},21094:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(85707)),E=_(b(40453)),S=_(b(78304)),P=b(86956),k=b(12470),T=_(b(62688)),A=_(b(27761)),D=_(b(51066)),W=_(b(48482)),q=_(b(61303)),N=["children"],H=["sx"],U=["sx"],V=["sx"],G=["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 Y=(0,P.withDirection)(D.default),K=(0,P.withDirection)(A.default),Z=(0,P.withDirection)(q.default),Q=function Tooltip(t){return C.default.createElement(P.Tooltip,(0,S.default)({PopperProps:{sx:{"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom":{mt:1}}}},t))},J=function ImageActions(t){var i=t.children,b=(0,E.default)(t,N);return C.default.createElement(P.Box,(0,S.default)({display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",gap:1},b),i)};J.propTypes={children:T.default.node};var ee=function UseImage(t){var i=t.sx,b=(0,E.default)(t,H);return C.default.createElement(P.Button,(0,S.default)({size:"small",variant:"contained",startIcon:C.default.createElement(W.default,null),sx:i},b),(0,k.__)("Use Image","elementor"))};ee.propTypes={sx:T.default.object};var te=function EditIcon(t){var i=t.sx,b=void 0===i?{}:i,_=(0,E.default)(t,U);return C.default.createElement(Q,{title:(0,k.__)("Edit","elementor")},C.default.createElement(P.IconButton,(0,S.default)({sx:_objectSpread({mr:-1.5,ml:.5,color:"common.white","&:hover":{color:"common.white"}},b)},_),C.default.createElement(Y,null)))};te.propTypes={sx:T.default.object};var ne=function ZoomIcon(t){var i=t.sx,b=void 0===i?{}:i,_=(0,E.default)(t,V);return C.default.createElement(Q,{title:(0,k.__)("Zoom","elementor")},C.default.createElement(P.IconButton,(0,S.default)({color:"secondary","aria-label":(0,k.__)("Zoom","elementor"),sx:_objectSpread({color:"common.white","&:hover":{color:"common.white"}},b)},_),C.default.createElement(Z,null)))};ne.propTypes={sx:T.default.object};var de=function CopyIcon(t){var i=t.sx,b=void 0===i?{}:i,_=(0,E.default)(t,G);return C.default.createElement(Q,{title:(0,k.__)("Copy prompt","elementor")},C.default.createElement(P.IconButton,(0,S.default)({sx:_objectSpread({mr:-1.5,ml:.5,color:"common.white","&:hover":{color:"common.white"}},b)},_),C.default.createElement(K,null)))};de.propTypes={sx:T.default.object},J.UseImage=ee,J.EditImage=function EditImage(t){return C.default.createElement(P.Button,(0,S.default)({size:"small",color:"secondary",startIcon:C.default.createElement(Y,null)},t),(0,k.__)("Edit","elementor"))},J.EditIcon=te,J.ZoomIcon=ne,J.CopyIcon=de;i.default=J},53967:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(78304)),E=_(b(40453)),S=b(86956),P=_(b(62688)),k=["children"],T=function ImageForm(t){var i=t.children,b=(0,E.default)(t,k);return C.default.createElement(S.Box,(0,w.default)({component:"form"},b),C.default.createElement(S.Stack,{spacing:2.5},i))};T.propTypes={children:P.default.node};i.default=T},30551:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(78304)),E=_(b(18821)),S=_(b(62338)),P=b(12470),k=b(33222),T=Object.entries(k.IMAGE_ASPECT_RATIO).map((function(t){var i=(0,E.default)(t,2),b=i[0];return{label:i[1].label,value:b}}));i.default=function ImageRatioSelect(t){return C.default.createElement(S.default,(0,w.default)({options:T,wrapperStyle:{width:"100%"},label:(0,P.__)("Aspect ratio","elementor")},t))}},66928:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(85707)),E=_(b(78304)),S=_(b(40453)),P=b(86956),k=_(b(62688)),T=_(b(70127)),A=_(b(1560)),D=["onPrev","onNext","children"],W=["children","startAction","sx"],q=["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 N=(0,P.withDirection)(T.default),H=(0,P.withDirection)(A.default),U=function ImageSlider(t){var i=t.onPrev,b=t.onNext,_=t.children,w=(0,S.default)(t,D);return C.default.createElement(P.Stack,(0,E.default)({alignItems:"flex-start",spacing:.5},w),C.default.createElement(P.Stack,{direction:"row",spacing:2.5,alignSelf:"center",alignItems:"center"},C.default.createElement(P.IconButton,{onClick:i,size:"large",color:"secondary"},C.default.createElement(N,null)),C.default.createElement(P.Stack,{spacing:.5,justifyContent:"space-around",alignItems:"center"},_),C.default.createElement(P.IconButton,{onClick:b,size:"large",color:"secondary"},C.default.createElement(H,null))))};U.propTypes={onPrev:k.default.func.isRequired,onNext:k.default.func.isRequired,children:k.default.node.isRequired};var V=function Actions(t){var i=t.children,b=t.startAction,_=t.sx,w=void 0===_?{}:_,k=(0,S.default)(t,W);return C.default.createElement(P.Box,(0,E.default)({display:"flex",justifyContent:"flex-end",alignItems:"center",width:"100%"},k,{sx:_objectSpread({mb:1.5},w)}),b,C.default.createElement(P.Stack,{direction:"row",spacing:2,justifyContent:"flex-end",flexGrow:1,width:"100%"},i))};V.propTypes={sx:k.default.object,startAction:k.default.node,children:k.default.node.isRequired};var G=function Image(t){var i=t.src,b=t.alt,_=void 0===b?"":b,w=(0,S.default)(t,q);return C.default.createElement(P.Box,{display:"flex",justifyContent:"center",alignItems:"center"},C.default.createElement("img",(0,E.default)({src:i,alt:_},w)))};G.propTypes={alt:k.default.string,src:k.default.string.isRequired},U.Actions=V,U.Image=G;i.default=U},6661:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(78304)),E=_(b(18821)),S=_(b(40453)),P=_(b(62688)),k=b(12470),T=_(b(62338)),A=b(33222),D=["type"],W=function ImageStyleSelect(t){var i,b=t.type,_=void 0===b?"":b,P=(0,S.default)(t,D),W=Object.entries((null===(i=A.IMAGE_PROMPT_CATEGORIES[_])||void 0===i?void 0:i.subCategories)||{}).map((function(t){var i=(0,E.default)(t,2),b=i[0];return{label:i[1],value:b}}));return C.default.createElement(T.default,(0,w.default)({options:W,wrapperStyle:{width:"100%"},label:(0,k.__)("Style","elementor")},P))};W.propTypes={type:P.default.string.isRequired};i.default=W},33946:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(78304)),E=_(b(18821)),S=_(b(62338)),P=b(12470),k=b(33222),T=Object.entries(k.IMAGE_PROMPT_CATEGORIES).map((function(t){var i=(0,E.default)(t,2),b=i[0];return{label:i[1].label,value:b}}));i.default=function ImageTypeSelect(t){return C.default.createElement(S.default,(0,w.default)({options:T,wrapperStyle:{width:"100%"},label:(0,P.__)("Image type","elementor")},t))}},29144:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(78304)),E=_(b(85707)),S=_(b(40453)),P=b(86956),k=_(b(62688)),T=_(b(58408)),A=_(b(64356)),D=_(b(66928)),W=_(b(21094)),q=_(b(85371)),N=_(b(35623)),H=_(b(90284)),U=["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,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 V=function Container(t){var i=t.children,b=t.sx,_=void 0===b?{}:b,E=(0,S.default)(t,U);return C.default.createElement(P.Box,(0,w.default)({flexGrow:1},E,{sx:_objectSpread({overflowY:"auto"},_)}),i)};V.propTypes={sx:k.default.object,children:k.default.node};var G=function ImagesDisplay(t){var i=t.images,b=t.aspectRatio,_=void 0===b?"1:1":b,w=t.onUseImage,E=void 0===w?null:w,S=t.onEditImage,k=void 0===S?null:S,U=t.transparentContainer,G=void 0!==U&&U,Y=t.cols,K=void 0===Y?2:Y,Z=t.overlay,Q=void 0===Z||Z,J=t.onSelectChange,ee=void 0===J?null:J,te=(0,A.default)(i),ne=te.zoomIndex,de=te.setZoomIndex,fe=te.actions,pe=(0,T.default)(_),me=pe.width,ge=pe.height;if(ne>-1){var ye=i[ne];return C.default.createElement(V,null,C.default.createElement(D.default,{onPrev:fe.prev,onNext:fe.next},C.default.createElement(D.default.Actions,{startAction:C.default.createElement(N.default,{onClick:fe.reset})},k&&C.default.createElement(W.default.EditImage,{onClick:function onClick(){return k(ye)}}),E&&C.default.createElement(W.default.UseImage,{onClick:function onClick(){return E(ye)}})),C.default.createElement(D.default.Image,{src:ye.image_url,style:{maxWidth:"630px",width:"100%",height:"auto"}})))}if(1===i.length){var ve=i[0],be={width:me,height:ge};return G&&(be.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%)",be.backgroundSize="20px 20px",be.backgroundPosition="0 0, 0 10px, 10px -10px, -10px 0px"),C.default.createElement(V,{flexDirection:"column"},C.default.createElement(H.default,null,C.default.createElement(H.default.Image,{src:ve.image_url||ve.url,style:be,alt:"generated-image",isLoading:ve.isLoading},C.default.createElement(H.default.Actions,null,k&&C.default.createElement(W.default.EditImage,{onClick:function onClick(){return k(ve)}}),E&&C.default.createElement(W.default.UseImage,{onClick:function onClick(){return E(ve)}})))))}return C.default.createElement(V,null,C.default.createElement(q.default,{cols:K},i.map((function(t,i){return C.default.createElement(q.default.Image,{key:"result-".concat(t.seed),alt:"generated-".concat(i),src:t.image_url,aspectRatio:_,"data-testid":"e-gallery-image",numImagesInRow:K,overlay:Q,onSelectChange:ee?function(i){return ee(t.productId,i)}:null,checkboxColor:t.checkboxColor,initialChecked:t.isChecked,isLoading:t.isLoading},C.default.createElement(W.default,null,E&&C.default.createElement(W.default.UseImage,{onClick:function onClick(){return E(t)},size:"medium",fullWidth:!0}),C.default.createElement(P.Stack,{direction:"row",spacing:.25,alignItems:"center"},C.default.createElement(W.default.ZoomIcon,{onClick:function onClick(){return de(i)},size:"medium"}),k&&C.default.createElement(W.default.EditIcon,{onClick:function onClick(){return k(t)},size:"medium"}))))}))))};G.propTypes={images:k.default.array,aspectRatio:k.default.string,onUseImage:k.default.func,onEditImage:k.default.func,transparentContainer:k.default.bool,cols:k.default.number,overlay:k.default.bool,onSelectChange:k.default.func},G.Container=V;i.default=G},11199:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(78304)),E=b(86956),S=b(12470);i.default=function NewPromptButton(t){return C.default.createElement(E.Button,(0,w.default)({fullWidth:!0,variant:"text",color:"secondary"},t),(0,S.__)("New prompt","elementor"))}},3346:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(78304)),E=_(b(40453)),S=b(86956),P=_(b(62688)),k=_(b(6942)),T=_(b(48584)),A=_(b(34161)),D=["disabled","onChange"],W=function PromptField(t){var i=t.disabled,b=t.onChange,_=(0,E.default)(t,D),P=(0,A.default)(_.value,"media"),W=P.enhance,q=P.isEnhancing;return C.default.createElement(k.default,(0,w.default)({minRows:3,maxRows:6,InputProps:{endAdornment:C.default.createElement(S.InputAdornment,{position:"end",sx:{position:"absolute",bottom:"24px",right:"8px"}},C.default.createElement(T.default,{isLoading:q,disabled:i||q||!_.value,onClick:function onClick(){W(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||q}))};W.propTypes={value:P.default.string,disabled:P.default.bool,placeholder:P.default.string,onChange:P.default.func.isRequired};i.default=W},90284:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(85707)),E=_(b(78304)),S=_(b(40453)),P=b(86956),k=_(b(62688)),T=["children"],A=["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 D=function SingleImagePreview(t){var i=t.children,b=(0,S.default)(t,T);return C.default.createElement(P.Box,(0,E.default)({display:"flex"},b),i)};D.propTypes={children:k.default.node.isRequired};var W=function Actions(t){var i=t.children,b=t.sx,_=void 0===b?{}:b,w=(0,S.default)(t,A);return C.default.createElement(P.Box,(0,E.default)({display:"flex",width:"100%",justifyContent:"flex-end",alignItems:"center"},w,{sx:_objectSpread({mb:1.5},_)}),C.default.createElement(P.Stack,{direction:"row",spacing:2,justifyContent:"flex-end",width:"100%"},i))};W.propTypes={sx:k.default.object,children:k.default.node.isRequired};var q=function Image(t){var i=t.src,b=t.alt,_=t.style,w=void 0===_?{}:_,E=t.isLoading,S=void 0!==E&&E,k=t.children;return C.default.createElement(P.Box,{margin:"0 auto"},k,S?C.default.createElement(P.Skeleton,{sx:_objectSpread({maxWidth:"100%",width:"auto",maxHeight:"100%"},w),animation:"wave",variant:"rounded"}):C.default.createElement("img",{src:i,alt:b,style:_objectSpread({maxWidth:"100%",width:"auto",maxHeight:"100%"},w)}))};q.propTypes={style:k.default.object,children:k.default.node,src:k.default.string.isRequired,alt:k.default.string.isRequired,isLoading:k.default.bool},D.Actions=W,D.Image=q;i.default=D},27584:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(78304)),E=_(b(40453)),S=b(86956),P=b(12470),k=_(b(62688)),T=["onClose","onCancel"],A=function UnsavedChangesAlert(t){var i=t.onClose,b=t.onCancel,_=(0,E.default)(t,T);return C.default.createElement(S.Dialog,(0,w.default)({sx:{zIndex:2e5},"aria-labelledby":"unsaved-changes-alert-title","aria-describedby":"unsaved-changes-alert-description"},_),C.default.createElement(S.DialogTitle,{id:"unsaved-changes-alert-title"},(0,P.__)("Leave Elementor AI?","elementor")),C.default.createElement(S.DialogContent,null,C.default.createElement(S.DialogContentText,{id:"unsaved-changes-alert-description"},(0,P.__)("Images will be gone forever and we won’t be able to recover them.","elementor"))),C.default.createElement(S.DialogActions,null,C.default.createElement(S.Button,{onClick:b,color:"secondary"},(0,P.__)("Cancel","elementor")),C.default.createElement(S.Button,{onClick:i,color:"error",variant:"contained"},(0,P.__)("Yes, leave","elementor"))))};A.propTypes={onClose:k.default.func,onCancel:k.default.func};i.default=A},55288:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(78304)),E=_(b(85707)),S=_(b(40453)),P=_(b(97223)),k=b(86956),T=_(b(62688)),A=_(b(73319)),D=_(b(6232)),W=_(b(43091)),q=_(b(35623)),N=b(29611),H=b(73337),U=_(b(38310)),V=b(54076),G=["sx"],Y=["primary","secondary"],K=["primary","secondary"],Z=["children"],Q=["isLoading","isGenerating","children"],J=["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,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 ee=function ViewBackButton(t){var i=t.sx,b=void 0===i?{}:i,_=(0,S.default)(t,G),E=(0,N.useLocation)().back;return C.default.createElement(q.default,(0,w.default)({onClick:function onClick(t){t.preventDefault(),E()}},_,{sx:_objectSpread({mb:1,alignSelf:"flex-start"},b)}))};ee.propTypes={sx:T.default.object};var te=function PanelHeading(t){var i=t.primary,b=t.secondary,_=(0,S.default)(t,Y);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))};te.propTypes={primary:T.default.string.isRequired,secondary:T.default.string};var ne=function ContentHeading(t){var i=t.primary,b=t.secondary,_=(0,S.default)(t,K);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))};ne.propTypes={primary:T.default.string.isRequired,secondary:T.default.string};var de=function View(t){var i=t.children,b=(0,S.default)(t,Z);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)},fe=function Content(t){var i=t.isLoading,b=void 0!==i&&i,_=t.isGenerating,E=void 0!==_&&_,P=t.children,T=(0,S.default)(t,Q);return E?C.default.createElement(D.default,null):b?C.default.createElement(k.Box,{sx:{width:"100%",maxWidth:600,margin:"0 auto",alignSelf:"center"}},C.default.createElement(A.default,{color:"inherit"})):C.default.createElement(k.Box,(0,w.default)({sx:{overflowY:"auto",p:4},flexGrow:1},T),P)};fe.propTypes={children:T.default.node,isLoading:T.default.bool,isGenerating:T.default.bool};var pe=function ErrorMessage(t){var i=t.sx,b=void 0===i?{}:i,_=(0,S.default)(t,J);return C.default.createElement(W.default,(0,w.default)({actionPosition:"bottom"},_,{sx:_objectSpread({mb:2.5},b)}))};pe.propTypes={sx:T.default.object};var me=function ViewPanel(t){var i=(0,H.useGlobalSettings)(),b=i.hasSubscription,_=i.usagePercentage;return C.default.createElement(P.default,null,C.default.createElement(U.default,{hasSubscription:b,usagePercentage:_,sx:{mb:4},feature:V.FREE_TRIAL_FEATURES_NAMES.IMAGES}),t.children)};me.propTypes={children:T.default.node},de.Panel=me,de.Content=fe,de.BackButton=ee,de.ErrorMessage=pe,de.PanelHeading=te,de.ContentHeading=ne,de.propTypes={children:T.default.node};i.default=de},33222:(t,i,b)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.LOCATIONS=i.IMAGE_PROMPT_SETTINGS=i.IMAGE_PROMPT_CATEGORIES=i.IMAGE_PLACEHOLDERS_HOSTS=i.IMAGE_ASPECT_RATIO=void 0;var _=b(12470);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",CLEANUP:"cleanup",PRODUCT_IMAGE_UNIFICATION:"product-image-unification"},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",IMAGE_BACKGROUND_COLOR:"background_color"},i.IMAGE_PROMPT_CATEGORIES={"":{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"),product:(0,_.__)("Product","elementor"),photorealistic:(0,_.__)("Photorealistic","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_ASPECT_RATIO={"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_PLACEHOLDERS_HOSTS={WIREFRAME:"gene-\\d+\\.live\\.strattic\\.io"}},7480:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(18821)),S=_(b(85707)),P=_(b(62688)),k=_(b(58408)),T=b(15018);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,S.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 A=i.EditImageContext=(0,w.createContext)({}),D="SET_STATE",W=i.SET_ASPECT_RATIO="SET_ASPECT_RATIO",q=i.SET_LOADING="SET_LOADING",N=i.RESET="RESET",H={id:"",url:"",isLoading:!1,aspectRatio:"1:1"},U=function reducer(t,i){var b=i.type,_=i.payload;switch(b){case D:return _objectSpread(_objectSpread({},t),_);case W:return _objectSpread(_objectSpread({},t),{},{aspectRatio:_});case q:return _objectSpread(_objectSpread({},t),{},{isLoading:_});case N:return H;default:throw Error("Unknown action.")}};(i.EditImageProvider=function EditImageProvider(t){var i=t.children,b=t.imageData,_=_objectSpread(_objectSpread({},H),b),C=(0,w.useReducer)(U,_),S=(0,E.default)(C,2),P=S[0],k=S[1];return w.default.createElement(A.Provider,{value:{state:P,dispatch:k}},i)}).propTypes={children:P.default.node,imageData:P.default.object};i.useEditImage=function useEditImage(){var t=(0,w.useContext)(A),i=t.state,b=t.dispatch,_=i.id,C=i.url,E=i.aspectRatio,S=i.isLoading,P=(0,k.default)(E),H=P.width,U=P.height;return(0,w.useEffect)((function(){if(_){b({type:q,payload:!0});var t=new Image;t.src=C,t.onload=function(){var i=(0,T.getAspectRatioSizes)(t.width,t.height).ratio;b({type:D,payload:{aspectRatio:i,isLoading:!1}})}}}),[_]),{editImage:i,isLoading:S,aspectRatio:E,width:H,height:U,setEditImage:function setEditImage(t){return b({type:D,payload:t})},setAspectRatio:function setAspectRatio(t){return b({type:W,payload:t})},reset:function reset(){return b({type:N})}}}},22629:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(62688));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=i.GlobalActionsContext=(0,w.createContext)({});(i.GlobalActionsProvider=function GlobalActionsProvider(t){var i=t.actions,b=t.children;return w.default.createElement(S.Provider,{value:i},b)}).propTypes={actions:E.default.object,children:E.default.node};i.useGlobalActions=function useGlobalActions(){return(0,w.useContext)(S)}},73337:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(62688));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=i.GlobalSettingsContext=(0,w.createContext)({});(i.GlobalSettingsProvider=function GlobalSettingsProvider(t){var i=t.settings,b=t.children;return w.default.createElement(S.Provider,{value:i},b)}).propTypes={settings:E.default.object,children:E.default.node};i.useGlobalSettings=function useGlobalSettings(){return(0,w.useContext)(S)}},29611:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(18821)),S=_(b(10906)),P=_(b(85707)),k=_(b(62688));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 T=i.RoutesContext=(0,w.createContext)(null),A=i.NAVIGATE="NAVIGATE",D=i.BACK="BACK",W={current:"",history:[]},q=function reducer(t,i){var b=i.type,_=i.payload;switch(b){case A:return _objectSpread(_objectSpread({},t),{},{current:_,history:[].concat((0,S.default)(t.history),[_])});case D:return _objectSpread(_objectSpread({},t),{},{current:t.history[t.history.length-2],history:t.history.slice(0,t.history.length-1)});default:return t}};(i.LocationProvider=function LocationProvider(t){var i=t.children,b=(0,w.useReducer)(q,W),_=(0,E.default)(b,2),C=_[0],S=_[1];return w.default.createElement(T.Provider,{value:{state:C,dispatch:S}},i)}).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)(T),b=i.state,_=i.dispatch,C=function navigate(t){_({type:A,payload:t})};return(0,w.useEffect)((function(){t&&C(t)}),[]),{current:b.current,history:b.history,navigate:C,back:function back(){_({type:D})}}}},16786:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(61790)),w=_(b(40453)),E=_(b(58155)),S=_(b(85707)),P=b(7480),k=_(b(10868)),T=b(22629),A=["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,S.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 normalizeImageData(t){return null!=t&&t.imageUrl?_objectSpread(_objectSpread({},t),{},{image_url:t.imageUrl,use_gallery_image:!0}):t};i.default=function useImageActions(){var t=(0,P.useEditImage)(),i=t.editImage,b=t.setEditImage,_=(0,T.useGlobalActions)(),S=_.setControlValue,W=_.saveAndClose,q=(0,k.default)(),N=q.attachmentData,H=q.isUploading,U=q.uploadError,V=q.upload,G=q.resetUpload,Y=function upload(t,i){return V({image:D(t),prompt:i||t.prompt})},K=function(){var t=(0,E.default)(C.default.mark((function _callee(t,b){var _,E;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,A),C.abrupt("return",_);case 4:return C.next=6,Y(t,b);case 6:return E=C.sent,C.abrupt("return",E.image);case 8:case"end":return C.stop()}}),_callee)})));return function getFinalImage(i,b){return t.apply(this,arguments)}}(),Z=function(){var t=(0,E.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,Y(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)}}(),Q=function(){var t=(0,E.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,K(t,i);case 2:b=_.sent,S(b),W();case 5:case"end":return _.stop()}}),_callee3)})));return function use(i,b){return t.apply(this,arguments)}}(),J=function(){var t=(0,E.default)(C.default.mark((function _callee5(t){return C.default.wrap((function _callee5$(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Promise.all(t.map(function(){var t=(0,E.default)(C.default.mark((function _callee4(t){return C.default.wrap((function _callee4$(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,K(t,null).catch((function(t){return null}));case 2:return i.abrupt("return",i.sent);case 3:case"end":return i.stop()}}),_callee4)})));return function(i){return t.apply(this,arguments)}}()));case 2:i.sent.filter((function(t){return t})).forEach((function(t){return S(t)})),W();case 5:case"end":return i.stop()}}),_callee5)})));return function useMultipleImages(i){return t.apply(this,arguments)}}();return{use:Q,edit:Z,reset:G,error:U,data:N,isLoading:H,useMultipleImages:J}}},80695:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=b(41594),w=_(b(48812)),E=b(22629);i.default=function useImagePrompt(){var t=w.default.apply(void 0,arguments),i=(0,E.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}},58408:(t,i,b)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var _=b(33222);i.default=function useImageSize(t){var i=_.IMAGE_ASPECT_RATIO[t];return{width:i.width,height:i.height}}},10868:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(18821)),w=b(41594),E=b(95034);i.default=function useImageUpload(){var t=(0,w.useState)(!1),i=(0,C.default)(t,2),b=i[0],_=i[1],S=(0,w.useState)(""),P=(0,C.default)(S,2),k=P[0],T=P[1],A=(0,w.useState)({}),D=(0,C.default)(A,2),W=D[0],q=D[1];return{upload:function upload(t){var i=t.image,b=t.prompt;return new Promise((function(t,C){T(""),q({}),_(!0),(0,E.uploadImage)({image:i,prompt:b}).then((function(i){q(i),t(i)})).catch((function(t){var i=(null==t?void 0:t.responseText)||t;T(i),C(i)})).finally((function(){return _(!1)}))}))},resetUpload:function resetUpload(){T(""),q({}),_(!1)},isUploading:b,uploadError:k,attachmentData:W}}},1769:(t,i,b)=>{"use strict";var _=b(96784);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=i.IMAGE_BACKGROUND_COLOR=void 0;var C=_(b(85707)),w=_(b(18821)),E=b(41594),S=b(33222);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 P=i.IMAGE_TYPE=S.IMAGE_PROMPT_SETTINGS.IMAGE_TYPE,k=i.IMAGE_STYLE=S.IMAGE_PROMPT_SETTINGS.IMAGE_STYLE,T=i.IMAGE_STRENGTH=S.IMAGE_PROMPT_SETTINGS.IMAGE_STRENGTH,A=i.IMAGE_RATIO=S.IMAGE_PROMPT_SETTINGS.IMAGE_RATIO,D=i.IMAGE_ZOOM=S.IMAGE_PROMPT_SETTINGS.IMAGE_ZOOM,W=i.IMAGE_UPSCALE=S.IMAGE_PROMPT_SETTINGS.IMAGE_UPSCALE,q=i.IMAGE_BACKGROUND_COLOR=S.IMAGE_PROMPT_SETTINGS.IMAGE_BACKGROUND_COLOR;i.default=function usePromptSettings(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.type,b=void 0===i?"":i,_=t.style,S=void 0===_?"":_,N=t.imageWeight,H=void 0===N?0:N,U=t.aspectRatio,V=void 0===U?"1:1":U,G=t.zoom,Y=void 0===G?"1":G,K=t.upScaleTo,Z=void 0===K?"512":K,Q=t.bgColor,J=void 0===Q?"#FFFFFF":Q,ee=(0,E.useState)((0,C.default)((0,C.default)((0,C.default)((0,C.default)((0,C.default)((0,C.default)((0,C.default)({},P,b),k,S),T,H),A,V),D,Y),W,Z),q,J)),te=(0,w.default)(ee,2),ne=te[0],de=te[1];return{settings:ne,updateSettings:function updateSettings(t){return de((function(i){return _objectSpread(_objectSpread({},i),t)}))},resetSettings:function resetSettings(){de((0,C.default)((0,C.default)((0,C.default)((0,C.default)((0,C.default)((0,C.default)((0,C.default)({},P,b),k,""),T,0),A,V),D,"1"),W,"512"),q,J))}}}},96008:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(78304)),S=_(b(18821)),P=_(b(85707)),k=b(29611),T=b(86956),A=_(b(62688)),D=_(b(48968)),W=_(b(58636)),q=_(b(27584)),N=b(7480),H=b(22629),U=b(73337),V=_(b(9196));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 G={isAllSaved:!1,hasUnsavedChanges:!1},Y="SET_UNSAVED_CHANGES",K="SAVE_AND_CLOSE",Z=function reducer(t,i){var b=i.type,_=i.payload;switch(b){case Y:return _objectSpread(_objectSpread({},t),{},{hasUnsavedChanges:_,isAllSaved:!_&&t.isAllSaved});case K:return _objectSpread(_objectSpread({},t),{},{isAllSaved:!0,hasUnsavedChanges:!1});default:throw Error("Unknown action.")}},Q=function FormMedia(t){var i=t.onClose,b=t.DialogProps,_=t.getControlValue,C=t.setControlValue,P=t.additionalOptions,A=t.maybeRenderUpgradeChip,Q=t.hasSubscription,J=t.usagePercentage,ee=(0,w.useReducer)(Z,G),te=(0,S.default)(ee,2),ne=te[0],de=te[1],fe=(0,w.useState)(!1),pe=(0,S.default)(fe,2),me=pe[0],ge=pe[1],ye=function onCloseIntent(){ne.hasUnsavedChanges?ge(!0):i()},ve=_()===(null==P?void 0:P.defaultValue)?{}:_(),be={initialImageType:(null==P?void 0:P.defaultImageType)||"",hasSubscription:Q,usagePercentage:J},Ee={state:ne,getControlValue:_,setControlValue:C,saveAndClose:function saveAndClose(){return de({type:K})},close:ye,setHasUnsavedChanges:function setHasUnsavedChanges(t){return de({type:Y,payload:t})}};return(0,w.useEffect)((function(){ne.isAllSaved&&i()}),[ne.isAllSaved]),w.default.createElement(w.default.Fragment,null,w.default.createElement(D.default,(0,E.default)({id:"e-form-media",onClose:function onClose(){return ye()},maxWidth:"lg"},b),w.default.createElement(D.default.Header,{onClose:function onClose(){return ye()}},!P.withoutHistory&&w.default.createElement(V.default,null),A()),w.default.createElement(T.Divider,null),w.default.createElement(U.GlobalSettingsProvider,{settings:be},w.default.createElement(H.GlobalActionsProvider,{actions:Ee},w.default.createElement(k.LocationProvider,null,w.default.createElement(N.EditImageProvider,{imageData:ve},w.default.createElement(W.default,{additionalOptions:P})))))),me&&w.default.createElement(q.default,{onClose:i,onCancel:function onCancel(){return ge(!1)},open:!0}))};Q.propTypes={onClose:A.default.func.isRequired,DialogProps:A.default.object,getControlValue:A.default.func.isRequired,setControlValue:A.default.func.isRequired,additionalOptions:A.default.object,credits:A.default.number,maybeRenderUpgradeChip:A.default.func,hasSubscription:A.default.bool,usagePercentage:A.default.number};i.default=Q},58636:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(55288)),S=_(b(73319)),P=b(33222),k=_(b(66869)),T=_(b(34961)),A=_(b(84026)),D=_(b(38756)),W=_(b(79689)),q=_(b(49304)),N=_(b(27689)),H=_(b(24057)),U=_(b(5534)),V=b(29611),G=b(7480),Y=b(14754),K=_(b(62688)),Z=_(b(31819)),Q=_(b(31921));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 MediaOutlet(t){var i=t.additionalOptions,b=void 0===i?null:i,_=(0,G.useEditImage)().editImage,C=(0,V.useLocation)({current:(null==b?void 0:b.location)||P.LOCATIONS.GENERATE}),K=C.current,J=C.navigate;return(0,w.useEffect)((function(){_.url&&(new RegExp(P.IMAGE_PLACEHOLDERS_HOSTS.WIREFRAME).test(new URL(_.url).host)?J(P.LOCATIONS.GENERATE):"url"===_.source||_.id?J(P.LOCATIONS.IMAGE_TOOLS):J(P.LOCATIONS.GENERATE))}),[_.id,_.url,_.source]),(0,Y.useSubscribeOnPromptHistoryAction)([{type:Y.ACTION_TYPES.RESTORE,handler:function handler(){K!==P.LOCATIONS.GENERATE&&J(P.LOCATIONS.GENERATE)}}]),K?w.default.createElement(w.default.Fragment,null,K===P.LOCATIONS.GENERATE&&w.default.createElement(k.default,{textToImageHook:null!=b&&b.textToImageHook?null==b?void 0:b.textToImageHook:Z.default,predefinedPrompt:null==b?void 0:b.predefinedPrompt,initialSettings:null==b?void 0:b.initialSettings}),K===P.LOCATIONS.IMAGE_TOOLS&&w.default.createElement(T.default,null),K===P.LOCATIONS.VARIATIONS&&w.default.createElement(q.default,null),K===P.LOCATIONS.IN_PAINTING&&w.default.createElement(D.default,null),K===P.LOCATIONS.OUT_PAINTING&&w.default.createElement(W.default,null),K===P.LOCATIONS.RESIZE&&w.default.createElement(A.default,null),K===P.LOCATIONS.REPLACE_BACKGROUND&&w.default.createElement(N.default,null),K===P.LOCATIONS.REMOVE_BACKGROUND&&w.default.createElement(H.default,null),K===P.LOCATIONS.CLEANUP&&w.default.createElement(U.default,null),K===P.LOCATIONS.PRODUCT_IMAGE_UNIFICATION&&w.default.createElement(Q.default,null)):w.default.createElement(E.default,{alignItems:"center"},w.default.createElement(S.default,null))};i.default=J;J.propTypes={additionalOptions:K.default.object}},15018:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.getAspectRatioSizes=i.fetchImageAsBase64=void 0;var C=_(b(61790)),w=_(b(58155)),E=_(b(85707)),S=_(b(18821)),P=b(33222);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(P.IMAGE_ASPECT_RATIO),_=t/i,C=b[0],w=1/0;return b.forEach((function(t){var i=t.split(":").map(Number),b=(0,S.default)(i,2),E=b[0],P=b[1],k=Math.abs(_-E/P);k<w&&(w=k,C=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,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}({ratio:C},P.IMAGE_ASPECT_RATIO[C])},i.fetchImageAsBase64=function(){var t=(0,w.default)(C.default.mark((function _callee(t){var i,b,_;return C.default.wrap((function _callee$(C){for(;;)switch(C.prev=C.next){case 0:return C.prev=0,C.next=3,fetch(t);case 3:return i=C.sent,C.next=6,i.blob();case 6:return b=C.sent,_=new FileReader,C.abrupt("return",new Promise((function(t,i){_.onloadend=function(){t(_.result)},_.onerror=i,_.readAsDataURL(b)})));case 11:throw C.prev=11,C.t0=C.catch(0),C.t0;case 14:case"end":return C.stop()}}),_callee,null,[[0,11]])})));return function fetchImageAsBase64(i){return t.apply(this,arguments)}}()},37050:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(61790)),S=_(b(58155)),P=_(b(18821)),k=b(86956),T=b(12470),A=_(b(62688)),D=b(36159),W=_(b(50236)),q=_(b(75682));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="rgba(255, 255, 255)",H=(0,k.withDirection)(W.default),U=(0,k.withDirection)(q.default),V=(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:N,pointerEvents:"none",transform:"translate(".concat("rtl"===i.direction?"50%":"-50%",", -50%)"),border:"1px solid #fff"}})),G=(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}})),Y=function CleanupContent(t){var i=t.editImage,b=t.setMask,_=t.setIsCanvasChanged,C=t.width,A=t.height,W=(0,w.useRef)(),q=(0,w.useState)(30),Y=(0,P.default)(q,2),K=Y[0],Z=Y[1],Q=(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,E=b.height,S=i.clientX-_,P=i.clientY-C;S>0&&S<w&&P>0&&P<E&&(Q.current.style.left="".concat(S,"px"),Q.current.style.top="".concat(P,"px"))};return window.addEventListener("mousemove",i),function(){window.removeEventListener("mousemove",i)}}),[K]),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,T.__)("Undo","elementor")},w.default.createElement(k.Button,{variant:"outlined",color:"secondary",onClick:function onClick(){return W.current.undo()},sx:{px:0}},w.default.createElement(H,null))),w.default.createElement(k.Tooltip,{title:(0,T.__)("Redo","elementor")},w.default.createElement(k.Button,{variant:"outlined",color:"secondary",onClick:function onClick(){return W.current.redo()},sx:{px:0}},w.default.createElement(U,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:K,id:"demo-simple-select",labelId:"demo-simple-select-label",onChange:function onChange(t){return Z(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(G,{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(V,{ref:Q,size:K}),w.default.createElement(D.ReactSketchCanvas,{className:"eui-in-painting-canvas",withViewBox:!0,ref:W,height:A+"px",width:C+"px",strokeWidth:K,strokeColor:N,canvasColor:"rgba(0, 0, 0)",backgroundImage:i.url,onStroke:function onStroke(){return _(!0)},onChange:(0,S.default)(E.default.mark((function _callee(){var t;return E.default.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,W.current.exportSvg();case 2:t=i.sent,b(t);case 4:case"end":return i.stop()}}),_callee)})))})))};Y.propTypes={setMask:A.default.func.isRequired,setIsCanvasChanged:A.default.func.isRequired,width:A.default.number.isRequired,height:A.default.number.isRequired,editImage:A.default.object.isRequired};i.default=Y},819:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=b(95034),w=_(b(80695));i.default=function useCleanup(t){return(0,w.default)((function fetchAction(t){return(0,C.getImageToImageMaskCleanup)(t)}),t)}},5534:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(61790)),S=_(b(58155)),P=_(b(18821)),k=b(12470),T=_(b(55288)),A=b(86956),D=_(b(53967)),W=_(b(37050)),q=_(b(63223)),N=_(b(59248)),H=_(b(11199)),U=_(b(29144)),V=_(b(1769)),G=_(b(819)),Y=b(7480),K=_(b(16786)),Z=b(40128);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)}i.default=function Cleanup(){var t=(0,Z.useRequestIds)().setGenerate,i=(0,w.useState)(""),b=(0,P.default)(i,2),_=b[0],C=b[1],Q=(0,w.useState)(!1),J=(0,P.default)(Q,2),ee=J[0],te=J[1],ne=(0,V.default)(),de=ne.settings,fe=ne.resetSettings,pe=(0,Y.useEditImage)(),me=pe.editImage,ge=pe.width,ye=pe.height,ve=(0,K.default)(),be=ve.use,Ee=ve.edit,xe=ve.isLoading,Oe=(0,G.default)(),ke=Oe.data,Te=Oe.send,Re=Oe.isLoading,je=Oe.error,Ae=Oe.reset,Me=Re||xe,Le=function(){var i=(0,S.default)(E.default.mark((function _callee(i){return E.default.wrap((function _callee$(b){for(;;)switch(b.prev=b.next){case 0:i.preventDefault(),t(),Te({settings:de,image:me,mask:_});case 3:case"end":return b.stop()}}),_callee)})));return function handleSubmit(t){return i.apply(this,arguments)}}();return w.default.createElement(T.default,null,w.default.createElement(T.default.Panel,null,w.default.createElement(T.default.BackButton,null),w.default.createElement(T.default.PanelHeading,{primary:(0,k.__)("Cleanup","elementor"),secondary:(0,k.__)("Remove unwanted area from your image.","elementor")}),je&&w.default.createElement(T.default.ErrorMessage,{error:je,onRetry:Le}),w.default.createElement(D.default,{onSubmit:Le},null!=ke&&ke.result?w.default.createElement(A.Stack,{gap:2,sx:{my:2.5}},w.default.createElement(N.default,{disabled:Me}),w.default.createElement(H.default,{disabled:Me,onClick:function onClick(){fe(),Ae()}})):w.default.createElement(q.default,{disabled:Me||!ee}))),w.default.createElement(T.default.Content,{isGenerating:Me},null!=ke&&ke.result?w.default.createElement(U.default,{images:ke.result,aspectRatio:me.aspectRatio,onUseImage:be,onEditImage:Ee}):w.default.createElement(W.default,{editImage:me,width:ge,height:ye,setMask:C,setIsCanvasChanged:te})))}},36778:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(18821)),w=b(41594),E=_(b(10092));i.default=function useSuggestedImages(t){var i=t.selectedType,b=(0,w.useState)(!1),_=(0,C.default)(b,2),S=_[0],P=_[1],k=(0,w.useState)({images:[]}),T=(0,C.default)(k,2),A=T[0],D=T[1],W=(0,E.default)(),q=W.ready,N=W.preloadImages,H=(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]}))}(A.images);if(!i)return t;var b=t.filter((function(t){return t.imageType.includes(i)}));return b.length?b:t}),[i,A]);return(0,w.useEffect)((function(){0!==(null==A?void 0:A.images.length)?N(A.images.map((function(t){return t.thumbnailUrl}))):function fetchImages(){P(!0),fetch("https://my.elementor.com/ai/images-prompt-gallery/ai-gallery.json").then((function(t){return t.json()})).then((function(t){return D(t)})).catch((function(t){return console.log(t.message)})).finally((function(){return P(!1)}))}()}),[A]),{imagesData:H,isLoading:!q||S}}},31819:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=b(95034),w=_(b(80695));i.default=function useTextToImage(t){return(0,w.default)(C.getTextToImageGeneration,t)}},66869:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=_interopRequireWildcard(b(41594)),E=_(b(85707)),S=_(b(18821)),P=b(86956),k=b(12470),T=_(b(55288)),A=_(b(85371)),D=_(b(53967)),W=_(b(3346)),q=_(b(33946)),N=_(b(6661)),H=_(b(30551)),U=_(b(59248)),V=_(b(11199)),G=_(b(91422)),Y=_(b(29144)),K=_(b(21094)),Z=_interopRequireWildcard(b(1769)),Q=_(b(36778)),J=_(b(16786)),ee=b(73337),te=b(14754),ne=_(b(53497)),de=b(40128),fe=_(b(62688)),pe=_(b(91359));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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(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}var me=function Generate(t){var i=t.textToImageHook,b=t.predefinedPrompt,_=void 0===b?"":b,C=t.initialSettings,fe=void 0===C?{}:C,me=(0,w.useState)(_),ge=(0,S.default)(me,2),ye=ge[0],ve=ge[1],be=(0,de.useRequestIds)().setGenerate,Ee=(0,ee.useGlobalSettings)().initialImageType,xe=(0,Z.default)(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}({type:Ee},fe)),Oe=xe.settings,ke=xe.updateSettings,Te=xe.resetSettings,Re=(0,Q.default)({selectedType:Oe[Z.IMAGE_TYPE]}),je=Re.imagesData,Ae=Re.isLoading,Me=function getPromptPlaceholder(t){return null!=t&&t.length?t[Math.floor(Math.random()*t.length)].prompt:(0,k.__)("describe your image","elementor")}(je),Le=i({}),De=Le.data,We=Le.setResult,Be=Le.send,ze=Le.isLoading,$e=Le.error,Ke=Le.reset,Qe=(0,J.default)(),et=Qe.use,tt=Qe.edit,rt=Qe.isLoading,st=Ae||ze||rt,dt=(0,w.useMemo)((function(){return Oe[Z.IMAGE_RATIO]}),[null==De?void 0:De.result]),ht=function handleSubmit(t){t.preventDefault(),be(),Oe[Z.IMAGE_STYLE]||(Oe[Z.IMAGE_STYLE]="general"),Be({prompt:ye,settings:Oe})},gt=function handleCopyPrompt(t){var i=t.prompt,b=t.imageType;ve(i);var _=b.split("/"),C=(0,S.default)(_,2),w=C[0],P=C[1];ke((0,E.default)((0,E.default)({},Z.IMAGE_TYPE,w),Z.IMAGE_STYLE,P))};return(0,te.useSubscribeOnPromptHistoryAction)([{type:te.ACTION_TYPES.RESTORE,handler:function handler(t){var i,b,_,C;gt({prompt:null===(i=t.data)||void 0===i?void 0:i.prompt,imageType:(null===(b=t.data)||void 0===b?void 0:b.imageType)||""}),ke((0,E.default)({},Z.IMAGE_RATIO,null===(_=t.data)||void 0===_?void 0:_.ratio)),We(null===(C=t.data)||void 0===C?void 0:C.images,t.id)}}]),w.default.createElement(T.default,null,w.default.createElement(T.default.Panel,null,w.default.createElement(T.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")}),$e&&w.default.createElement(T.default.ErrorMessage,{error:$e,onRetry:ht}),w.default.createElement(D.default,{onSubmit:ht},w.default.createElement(W.default,{"data-testid":"e-image-prompt",value:ye,disabled:st,placeholder:Me,onChange:ve}),w.default.createElement(q.default,{disabled:st,value:Oe[Z.IMAGE_TYPE],onChange:function onChange(t){return ke((0,E.default)({},Z.IMAGE_TYPE,t.target.value))}}),w.default.createElement(N.default,{type:Oe[Z.IMAGE_TYPE],value:Oe[Z.IMAGE_STYLE],disabled:st||!Oe[Z.IMAGE_TYPE]||!1,onChange:function onChange(t){return ke((0,E.default)({},Z.IMAGE_STYLE,t.target.value))}}),w.default.createElement(H.default,{disabled:st,value:Oe[Z.IMAGE_RATIO],onChange:function onChange(t){return ke((0,E.default)({},Z.IMAGE_RATIO,t.target.value))}}),null!=De&&De.result?w.default.createElement(P.Stack,{gap:2,sx:{my:2.5}},w.default.createElement(U.default,{disabled:st||""===ye}),w.default.createElement(V.default,{disabled:st,onClick:function onClick(){Te(),ve(""),Ke()}})):w.default.createElement(G.default,{disabled:st||""===ye}))),w.default.createElement(T.default.Content,{isLoading:Ae||rt,isGenerating:ze},null!=De&&De.result?w.default.createElement(Y.default,{images:null==De?void 0:De.result,aspectRatio:dt,onUseImage:et,onEditImage:tt}):w.default.createElement(w.default.Fragment,null,_?w.default.createElement(pe.default,null):w.default.createElement(w.default.Fragment,null,w.default.createElement(T.default.ContentHeading,{primary:(0,k.__)("Spark your imagination with images generated by our community","elementor")}),w.default.createElement(P.Stack,{sx:{mb:3}},w.default.createElement(ne.default,{libraryLink:"https://go.elementor.com/ai-prompt-library-image/"})),w.default.createElement(A.default,{cols:3},null==je?void 0:je.map((function(t){return w.default.createElement(A.default.Image,{variant:"thumbnail",key:t.prompt,alt:t.prompt,text:t.prompt,src:t.thumbnailUrl},w.default.createElement(K.default,null,w.default.createElement(K.default.UseImage,{onClick:function onClick(){return et(t)},fullWidth:!0}),w.default.createElement(K.default.CopyIcon,{onClick:function onClick(){return gt(t)}}),w.default.createElement(K.default.EditIcon,{onClick:function onClick(){return tt(t)}})))})))))))};me.propTypes={predefinedPrompt:fe.default.string,textToImageHook:fe.default.func,initialSettings:fe.default.object};i.default=me},58314:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(90284)),E=b(12470),S=_(b(21094)),P=b(7480),k=_(b(16786));i.default=function ImageToolsContent(){var t=(0,P.useEditImage)(),i=t.editImage,b=t.width,_=t.height,T=(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,E.__)("Image preview","elementor")},C.default.createElement(w.default.Actions,null,C.default.createElement(S.default.UseImage,{onClick:function onClick(){return T(i)}}))))}},52397:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=b(86956),E=b(12470),S=_(b(62688)),P=_(b(23962)),k=_(b(91688)),T=_(b(41061)),A=_(b(43286)),D=_(b(95068)),W=_(b(67890)),q=_(b(77560)),N=b(33222),H=b(29611),U=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"}))))},V=(0,w.styled)(w.Box)((function(t){var i=t.theme;return{height:"calc(100% - ".concat(i.spacing(13),")")}})),G=(0,w.styled)(w.Box)((function(t){return{position:"sticky",top:"100%",padding:t.theme.spacing(4,0,1)}})),Y=function ImageToolsPanel(){var t=(0,H.useLocation)().navigate,i=[{label:(0,E.__)("Expand Image","elementor"),Icon:P.default,onClick:function onClick(){return t(N.LOCATIONS.OUT_PAINTING)}},{label:(0,E.__)("Generative Fill","elementor"),Icon:k.default,onClick:function onClick(){return t(N.LOCATIONS.IN_PAINTING)}},{label:(0,E.__)("Resize","elementor"),Icon:A.default,onClick:function onClick(){return t(N.LOCATIONS.RESIZE)}},{label:(0,E.__)("Variations","elementor"),Icon:T.default,onClick:function onClick(){return t(N.LOCATIONS.VARIATIONS)}},{label:(0,E.__)("Remove Background","elementor"),Icon:D.default,onClick:function onClick(){return t(N.LOCATIONS.REMOVE_BACKGROUND)}},{label:(0,E.__)("Replace Background","elementor"),Icon:W.default,onClick:function onClick(){return t(N.LOCATIONS.REPLACE_BACKGROUND)}},{label:(0,E.__)("Cleanup","elementor"),Icon:q.default,onClick:function onClick(){return t(N.LOCATIONS.CLEANUP)}}];return C.default.createElement(V,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(G,{display:"flex",flexDirection:"column",alignItems:"center"},C.default.createElement(U,null),C.default.createElement(w.Typography,{variant:"body2",align:"center",color:"secondary",sx:{mt:2}},(0,E.__)("Stay tuned! More incredible AI tools are coming your way soon.","elementor"))))};Y.propTypes={generateNewPrompt:S.default.func,panelActive:S.default.bool};i.default=Y},34961:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=_(b(55288)),E=b(12470),S=_(b(52397)),P=_(b(58314)),k=b(29611),T=b(33222);i.default=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(T.LOCATIONS.GENERATE)}},(0,E.__)("Generate with a prompt","elementor")),C.default.createElement(w.default.PanelHeading,{primary:(0,E.__)("Edit with AI","elementor")}),C.default.createElement(S.default,null)),C.default.createElement(w.default.Content,null,C.default.createElement(P.default,null)))}},64579:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=b(95034),w=_(b(80695));i.default=function useInPainting(t){return(0,w.default)((function fetchAction(t){return(0,C.getImageToImageMaskGeneration)(t)}),t)}},18822:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(61790)),S=_(b(58155)),P=_(b(18821)),k=b(86956),T=b(12470),A=_(b(62688)),D=b(36159),W=_(b(50236)),q=_(b(75682));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="rgba(255, 255, 255)",H=(0,k.withDirection)(W.default),U=(0,k.withDirection)(q.default),V=(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:N,pointerEvents:"none",transform:"translate(".concat("rtl"===i.direction?"50%":"-50%",", -50%)"),border:"1px solid #fff"}})),G=(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}})),Y=function InPaintingContent(t){var i=t.editImage,b=t.setMask,_=t.setIsCanvasChanged,C=t.width,A=t.height,W=(0,w.useRef)(),q=(0,w.useState)(30),Y=(0,P.default)(q,2),K=Y[0],Z=Y[1],Q=(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,E=b.height,S=i.clientX-_,P=i.clientY-C;S>0&&S<w&&P>0&&P<E&&(Q.current.style.left="".concat(S,"px"),Q.current.style.top="".concat(P,"px"))};return window.addEventListener("mousemove",i),function(){window.removeEventListener("mousemove",i)}}),[K]),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,T.__)("Undo","elementor")},w.default.createElement(k.Button,{variant:"outlined",color:"secondary",onClick:function onClick(){return W.current.undo()},sx:{px:0}},w.default.createElement(H,null))),w.default.createElement(k.Tooltip,{title:(0,T.__)("Redo","elementor")},w.default.createElement(k.Button,{variant:"outlined",color:"secondary",onClick:function onClick(){return W.current.redo()},sx:{px:0}},w.default.createElement(U,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:K,id:"demo-simple-select",labelId:"demo-simple-select-label",onChange:function onChange(t){return Z(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(G,{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(V,{ref:Q,size:K}),w.default.createElement(D.ReactSketchCanvas,{className:"eui-in-painting-canvas",withViewBox:!0,ref:W,height:A+"px",width:C+"px",strokeWidth:K,strokeColor:N,canvasColor:"rgba(0, 0, 0)",backgroundImage:i.url,onStroke:function onStroke(){return _(!0)},onChange:(0,S.default)(E.default.mark((function _callee(){var t;return E.default.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,W.current.exportSvg();case 2:t=i.sent,b(t);case 4:case"end":return i.stop()}}),_callee)})))})))};Y.propTypes={setMask:A.default.func.isRequired,setIsCanvasChanged:A.default.func.isRequired,width:A.default.number.isRequired,height:A.default.number.isRequired,editImage:A.default.object.isRequired};i.default=Y},38756:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(61790)),S=_(b(58155)),P=_(b(18821)),k=b(86956),T=b(12470),A=_(b(55288)),D=_(b(53967)),W=_(b(3346)),q=_(b(18822)),N=_(b(63223)),H=_(b(59248)),U=_(b(11199)),V=_(b(29144)),G=_(b(1769)),Y=_(b(64579)),K=b(7480),Z=_(b(16786)),Q=b(40128);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)}i.default=function InPainting(){var t=(0,w.useState)(""),i=(0,P.default)(t,2),b=i[0],_=i[1],C=(0,Q.useRequestIds)().setGenerate,J=(0,w.useState)(""),ee=(0,P.default)(J,2),te=ee[0],ne=ee[1],de=(0,w.useState)(!1),fe=(0,P.default)(de,2),pe=fe[0],me=fe[1],ge=(0,G.default)(),ye=ge.settings,ve=ge.resetSettings,be=(0,K.useEditImage)(),Ee=be.editImage,xe=be.width,Oe=be.height,ke=(0,Z.default)(),Te=ke.use,Re=ke.edit,je=ke.isLoading,Ae=(0,Y.default)(),Me=Ae.data,Le=Ae.send,De=Ae.isLoading,We=Ae.error,Be=Ae.reset,ze=De||je,$e=function(){var t=(0,S.default)(E.default.mark((function _callee(t){var i;return E.default.wrap((function _callee$(_){for(;;)switch(_.prev=_.next){case 0:t.preventDefault(),i=b||"Remove object and fill based on the surroundings",C(),Le({prompt:i,settings:ye,image:Ee,mask:te});case 4:case"end":return _.stop()}}),_callee)})));return function handleSubmit(i){return t.apply(this,arguments)}}();return w.default.createElement(A.default,null,w.default.createElement(A.default.Panel,null,w.default.createElement(A.default.BackButton,null),w.default.createElement(A.default.PanelHeading,{primary:(0,T.__)("Generative Fill","elementor"),secondary:(0,T.__)("Mark an area and edit it with a prompt.","elementor")}),We&&w.default.createElement(A.default.ErrorMessage,{error:We,onRetry:$e}),w.default.createElement(D.default,{onSubmit:$e},w.default.createElement(W.default,{value:b,disabled:ze,onChange:_,placeholder:(0,T.__)("Describe what you want to generate in the marked area (English only)","elementor")}),null!=Me&&Me.result?w.default.createElement(k.Stack,{gap:2,sx:{my:2.5}},w.default.createElement(H.default,{disabled:ze}),w.default.createElement(U.default,{disabled:ze,onClick:function onClick(){ve(),_(""),Be()}})):w.default.createElement(N.default,{disabled:ze||!b||!pe}))),w.default.createElement(A.default.Content,{isGenerating:ze},null!=Me&&Me.result?w.default.createElement(V.default,{images:Me.result,aspectRatio:Ee.aspectRatio,onUseImage:Te,onEditImage:Re}):w.default.createElement(q.default,{editImage:Ee,width:xe,height:Oe,setMask:ne,setIsCanvasChanged:me})))}},55805:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=b(95034),w=_(b(80695));i.default=function useOutPainting(t){return(0,w.default)((function fetchAction(t){return(0,C.getImageToImageOutPainting)(t)}),t)}},79689:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=_interopRequireWildcard(b(41594)),E=_(b(61790)),S=_(b(85707)),P=_(b(58155)),k=_(b(18821)),T=b(86956),A=b(12470),D=_(b(55288)),W=_(b(53967)),q=_(b(30551)),N=_(b(63223)),H=_(b(59248)),U=_(b(71866)),V=_(b(29144)),G=b(7480),Y=_(b(16786)),K=_interopRequireWildcard(b(1769)),Z=_(b(55805)),Q=b(40128),J=b(15018);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}i.default=function OutPainting(){var t=(0,w.useState)({width:0,height:0}),i=(0,k.default)(t,2),b=i[0],_=i[1],C=(0,w.useState)({x:.5,y:.5}),ee=(0,k.default)(C,2),te=ee[0],ne=ee[1],de=(0,w.useState)(""),fe=(0,k.default)(de,2),pe=fe[0],me=fe[1],ge=(0,Q.useRequestIds)().setGenerate,ye=(0,G.useEditImage)(),ve=ye.editImage,be=ye.aspectRatio,Ee=(0,K.default)({aspectRatio:be}),xe=Ee.settings,Oe=Ee.updateSettings,ke=(0,Y.default)(),Te=ke.use,Re=ke.edit,je=ke.isLoading,Ae=(0,Z.default)(),Me=Ae.data,Le=Ae.send,De=Ae.isLoading,We=Ae.error,Be=De||je,ze=(0,w.useMemo)((function(){return xe[K.IMAGE_RATIO]}),[null==Me?void 0:Me.result]),$e=!(null==Me||!Me.result),Ke=function(){var t=(0,P.default)(E.default.mark((function _callee(t){var i;return E.default.wrap((function _callee$(_){for(;;)switch(_.prev=_.next){case 0:return t.preventDefault(),ge(),_.next=4,(0,J.fetchImageAsBase64)(ve.url);case 4:i=_.sent,Le({settings:xe,image:ve,mask:pe,size:b,position:te,image_base64:i});case 6:case"end":return _.stop()}}),_callee)})));return function handleSubmit(i){return t.apply(this,arguments)}}();return w.default.createElement(D.default,null,w.default.createElement(D.default.Panel,null,w.default.createElement(D.default.BackButton,null),w.default.createElement(D.default.PanelHeading,{primary:(0,A.__)("Expand Image","elementor"),secondary:(0,A.__)("Position image in it’s new size to generate content around the edges.","elementor")}),We&&w.default.createElement(D.default.ErrorMessage,{error:We,onRetry:Ke}),w.default.createElement(W.default,{onSubmit:Ke},w.default.createElement(q.default,{disabled:Be||$e,value:xe[K.IMAGE_RATIO],onChange:function onChange(t){return Oe((0,S.default)({},K.IMAGE_RATIO,t.target.value))}}),w.default.createElement(T.FormControl,{sx:{width:"100%",mb:2.5}},w.default.createElement(T.Slider,{marks:!0,id:"zoom",name:"zoom",max:1,min:.1,step:.1,color:"secondary",defaultValue:1,disabled:Be||$e,valueLabelDisplay:"auto","aria-labelledby":"image-size-slider","aria-label":(0,A.__)("Reference strength","elementor"),onChange:function onChange(t,i){return Oe((0,S.default)({},K.IMAGE_ZOOM,i))}}),w.default.createElement(T.Typography,{id:"image-size-slider",variant:"caption",gutterBottom:!0},(0,A.__)("Original image size","elementor"))),null!=Me&&Me.result?w.default.createElement(T.Stack,{gap:2,sx:{my:2.5}},w.default.createElement(H.default,{disabled:Be})):w.default.createElement(N.default,{disabled:Be}))),w.default.createElement(D.default.Content,{isGenerating:Be},$e?w.default.createElement(V.default,{onUseImage:Te,onEditImage:Re,images:Me.result,aspectRatio:ze}):w.default.createElement(U.default,{setMask:me,editImage:ve,scale:xe[K.IMAGE_ZOOM],aspectRatio:xe[K.IMAGE_RATIO],setImageSize:_,setPosition:ne})))}},71866:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(61790)),S=_(b(58155)),P=b(86956),k=_(b(62688)),T=_(b(23941)),A=_(b(58408));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 OutPaintingContent(t){var i=t.scale,b=t.setMask,_=t.editImage,C=t.aspectRatio,k=t.setImageSize,D=t.setPosition,W=(0,w.useRef)(),q=(0,w.useRef)({x:.5,y:.5}),N=(0,A.default)(C),H=N.width,U=N.height,V={width:H,height:U},G=function(){var t=(0,S.default)(E.default.mark((function _callee(){var t;return E.default.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,W.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)}}(),Y=function(){var t=(0,S.default)(E.default.mark((function _callee2(t){return E.default.wrap((function _callee2$(i){for(;;)switch(i.prev=i.next){case 0:return q.current={x:t.x,y:t.y},i.next=3,G();case 3:D(q.current);case 4:case"end":return i.stop()}}),_callee2)})));return function onPositionChange(i){return t.apply(this,arguments)}}(),K=function(){var t=(0,S.default)(E.default.mark((function _callee3(){return E.default.wrap((function _callee3$(t){for(;;)switch(t.prev=t.next){case 0:return V={width:V.width*i,height:V.height*i},t.next=3,G();case 3:k(V);case 4:case"end":return t.stop()}}),_callee3)})));return function onImageChange(){return t.apply(this,arguments)}}();return w.default.createElement(P.Stack,{alignItems:"center",spacing:.5,flexGrow:1},w.default.createElement(T.default,{ref:W,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:K,onPositionChange:function onPositionChange(t){return Y(t)},width:H,height:U,scale:i}))};D.propTypes={scale:k.default.number.isRequired,setMask:k.default.func.isRequired,editImage:k.default.object.isRequired,aspectRatio:k.default.string.isRequired,setImageSize:k.default.func.isRequired,setPosition:k.default.func.isRequired};i.default=D},54309:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=_(b(85707)),E=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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),S=_(b(62688)),P=_(b(58224)),k=b(1769),T=_(b(16786));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 A=function ProductImage(t){var i=t.productId,b=t.ratio,_=t.bgColor,C=t.image,S=t.onUpdate,A=(0,T.default)().isLoading,D=(0,P.default)((0,w.default)((0,w.default)((0,w.default)({productId:i},k.IMAGE_RATIO,b),k.IMAGE_BACKGROUND_COLOR,_),"image",C)),W=D.data,q=D.isLoading,N=D.error,H=D.send;return(0,E.useEffect)((function(){S&&S(W,q||A,N,H,i,b,_,C)}),[W,q,N,H,i,b,_,C,A,S]),E.default.createElement("div",{style:{visibility:"hidden"}})};A.propTypes={productId:S.default.number,ratio:S.default.string,bgColor:S.default.string,image:S.default.object,onUpdate:S.default.func};i.default=A},58224:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(80695)),w=b(95034),E=b(41594);i.default=function useProductImageUnification(t){var i=(0,E.useRef)((function(t){return(0,w.getProductImageUnification)(t,!0)}));return(0,C.default)(i.current,t)}},31921:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=_interopRequireWildcard(b(41594)),E=_(b(61790)),S=_(b(85707)),P=_(b(58155)),k=_(b(18821)),T=b(86956),A=b(12470),D=_(b(55288)),W=_(b(53967)),q=b(7480),N=_interopRequireWildcard(b(1769)),H=b(40128),U=_(b(30551)),V=_(b(17653)),G=_(b(59248)),Y=_(b(63223)),K=_(b(29144)),Z=_(b(54309)),Q=_(b(21094)),J=_(b(16786));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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(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,S.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}i.default=function ProductImageUnification(){var t,i,b,_,C,ee,te,ne,de,fe=(0,H.useRequestIds)().setGenerate,pe=(0,q.useEditImage)().editImage,me=(0,N.default)(),ge=me.settings,ye=me.updateSettings,ve=(0,w.useState)({}),be=(0,k.default)(ve,2),Ee=be[0],xe=be[1],Oe=(0,w.useState)({}),ke=(0,k.default)(Oe,2),Te=ke[0],Re=ke[1],je=(0,w.useState)({}),Ae=(0,k.default)(je,2),Me=Ae[0],Le=Ae[1],De=(0,w.useState)({}),We=(0,k.default)(De,2),Be=We[0],ze=We[1],$e=(0,w.useState)(!1),Ke=(0,k.default)($e,2),Qe=Ke[0],et=Ke[1],tt=(0,J.default)().useMultipleImages,rt=(0,w.useState)(!1),st=(0,k.default)(rt,2),dt=st[0],ht=st[1],gt=Object.values(Ee).filter((function(t){var i,b=t.productId;return!(null!==(i=Me[b])&&void 0!==i&&i.errorGenerating)})),vt=(0,w.useCallback)((0,P.default)(E.default.mark((function _callee(){var t;return E.default.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:return ht(!0),t=gt.filter((function(t){var i=t.data;return t.wasGenerated&&(null==i?void 0:i.isChecked)&&void 0!==(null==i?void 0:i.productId)})).map((function(t){var i=t.data;return _objectSpread(_objectSpread({},i),{},{editor_post_id:i.productId,unique_id:"ai-product-unification-".concat(i.productId)})})),i.next=4,tt(t);case 4:case"end":return i.stop()}}),_callee)}))),[gt,tt]),bt=(0,w.useMemo)((function(){return ge[N.IMAGE_RATIO]}),[ge]),_t=(0,w.useMemo)((function(){return ge[N.IMAGE_BACKGROUND_COLOR]}),[ge]),Ct=(0,w.useCallback)((function(t,i,b,_,C,w,E,P){Re((function(t){return _objectSpread(_objectSpread({},t),{},(0,S.default)({},C,!!i))})),Le((function(t){return _objectSpread(_objectSpread({},t),{},(0,S.default)({},C,{errorGenerating:b}))})),xe((function(k){var T,A,D,W,q,H,U,V;return _objectSpread(_objectSpread({},k),{},(0,S.default)({},C,_objectSpread(_objectSpread({},k[C]),{},{productId:C,res:t,req:function req(){return _({postId:C,settings:(0,S.default)((0,S.default)({},N.IMAGE_RATIO,w),N.IMAGE_BACKGROUND_COLOR,E),image:P})},wasGenerated:void 0!==(null==t||null===(T=t.result)||void 0===T?void 0:T[0]),data:_objectSpread(_objectSpread({productId:C},b?{}:null!==(A=null!==(D=null==t||null===(W=t.result)||void 0===W?void 0:W[0])&&void 0!==D?D:P)&&void 0!==A?A:null===(q=k[C])||void 0===q?void 0:q.image),{},{seed:C,isChecked:null===(H=null===(U=k[C])||void 0===U||null===(U=U.data)||void 0===U?void 0:U.isChecked)||void 0===H||H,isLoading:i,checkboxColor:null!==(V=Be[C])&&void 0!==V?V:"rgba(0, 0, 0, 0.54)"})})))}))}),[Be]),wt=gt.some((function(t){var i=t.productId;return Te[i]})),Et=Object.values(Me).length&&Object.values(Me).every((function(t){return t.errorGenerating})),xt=(null!==(t=null==pe||null===(i=pe.images)||void 0===i?void 0:i.length)&&void 0!==t?t:0)-10>0,Ot=gt.filter((function(t){var i=t.data;return i.isChecked&&!i.isLoading})),St=(0,w.useCallback)((function(t){t.preventDefault(),fe(),et(!0);var i=(gt.length?gt:Object.values(Ee)).filter((function(t){var i;return(null===(i=t.data)||void 0===i?void 0:i.isChecked)&&t.req})),b=function isLightColor(t){var i=parseInt(t.slice(1),16);return.299*(i>>16&255)+.587*(i>>8&255)+.114*(255&i)>128}(_t)?"rgba(0, 0, 0, 0.54)":"rgba( 255, 255, 255, 0.7 )";i.find((function(t){return Be[t.productId]!==b}))&&ze((function(t){var _=_objectSpread({},t);return i.forEach((function(t){_[t.productId]=b})),_})),i.forEach((function(t){return t.req().catch((function(){}))}))}),[Be,gt,_t,Ee,fe]);return w.default.createElement(D.default,null,w.default.createElement(D.default.Panel,null,w.default.createElement(D.default.PanelHeading,{primary:(0,A.__)("Unify images","elementor"),secondary:(0,A.__)("Select a set of parameters and AI will automate your adjustments:","elementor")}),Et&&w.default.createElement(D.default.ErrorMessage,{error:null===(b=Object.values(Me))||void 0===b||null===(b=b[0])||void 0===b?void 0:b.errorGenerating,onRetry:St}),w.default.createElement(T.Stack,{gap:2},w.default.createElement(T.Box,{sx:{display:"flex",flexWrap:"wrap",width:"100%","& .MuiAvatar-root":{margin:.5}}},null==pe?void 0:pe.images.slice(0,xt?9:10).map((function(t){return w.default.createElement(T.Avatar,{key:t.productId,alt:t.productId+"",src:t.image_url,variant:"square",sx:{width:50,height:50}})})),xt&&w.default.createElement(T.Avatar,{variant:"square",sx:{bgcolor:"lightgray",width:50,height:50}},(null!==(_=null==pe||null===(C=pe.images)||void 0===C?void 0:C.length)&&void 0!==_?_:0)-9)),w.default.createElement(W.default,{onSubmit:St},w.default.createElement(T.Stack,{gap:2,sx:{my:2.5}},w.default.createElement(V.default,{label:(0,A.__)("Background Color","elementor"),color:_t,onChange:function onChange(t){return ye((0,S.default)({},N.IMAGE_BACKGROUND_COLOR,t))},disabled:wt}),w.default.createElement(U.default,{disabled:!0,value:bt,onChange:function onChange(t){return ye((0,S.default)({},N.IMAGE_RATIO,t.target.value))}}),w.default.createElement(T.Stack,{gap:2,sx:{my:2.5}},Qe?w.default.createElement(G.default,{disabled:wt}):w.default.createElement(Y.default,{disabled:wt})))))),w.default.createElement(D.default.Content,{isGenerating:dt},w.default.createElement(T.Box,{sx:{display:"flex",flexDirection:"column",height:"100%",alignItems:"center",justifyContent:"center",minHeight:"76vh"}},w.default.createElement(T.Box,{sx:{flex:1,overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",alignItems:"center",justifyContent:"center",overflowX:"hidden"}},Qe?w.default.createElement(w.default.Fragment,null,gt.length>1&&gt.some((function(t){return!t.data.isLoading}))&&w.default.createElement(T.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"inherit",justifyContent:"space-between",width:"100%"}},w.default.createElement(T.Typography,{variant:"body2",color:"secondary"},(0,A.sprintf)((0,A.__)("%1$d/%2$d selected","elementor"),Ot.length,null!==(ee=null==pe||null===(te=pe.images)||void 0===te?void 0:te.length)&&void 0!==ee?ee:0)),w.default.createElement(T.Button,{variant:"text",color:"secondary",onClick:function onClick(){var t=!Ot.some((function(t){var i;return null===(i=t.data)||void 0===i?void 0:i.isChecked}));xe((function(i){var b=_objectSpread({},i);return Object.values(b).forEach((function(i){var _;t!==(null===(_=i.data)||void 0===_?void 0:_.isChecked)&&(b[i.productId]=_objectSpread(_objectSpread({},i),{},{data:_objectSpread(_objectSpread({},i.data),{},{isChecked:t})}))})),b}))}},Ot.some((function(t){var i;return null===(i=t.data)||void 0===i?void 0:i.isChecked}))?(0,A.__)("Clear all","elementor"):(0,A.__)("Select all","elementor"))),w.default.createElement(K.default,{images:gt.map((function(t){return t.data})),cols:function getCols(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Math.min(Math.ceil(Math.sqrt(null!=t?t:1)),4)}(null!==(ne=gt.length)&&void 0!==ne?ne:1),overlay:!1,onSelectChange:function onSelectChange(t,i){return xe((function(b){var _;return null!==(_=b[t])&&void 0!==_&&_.data&&(b[t].data.isChecked=i),_objectSpread({},b)}))}})):w.default.createElement(T.Box,{component:"img",src:window.UnifyProductImagesConfig.placeholder,alt:(0,A.__)("Example GIF","elementor")})),Qe&&!Et&&gt.length&&gt.some((function(t){var i=t.data,b=t.errorGenerating,_=t.wasGenerated;return(null==i?void 0:i.isChecked)&&!(null!=i&&i.isLoadingResult)&&!b&&_}))&&w.default.createElement(Q.default.UseImage,{onClick:vt,sx:{alignSelf:"flex-end",mt:2}}))),null===(de=pe.images)||void 0===de?void 0:de.filter((function(t){return t.productId})).map((function(t){return w.default.createElement(Z.default,{key:"product-".concat(t.productId),productId:t.productId,ratio:ge[N.IMAGE_RATIO],bgColor:ge[N.IMAGE_BACKGROUND_COLOR],image:t,onUpdate:Ct})})))}},12695:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=b(95034),w=_(b(80695));i.default=function useRemoveBackground(t){return(0,w.default)((function fetchAction(t){return(0,C.getImageToImageRemoveBackground)(t)}),t)}},24057:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=b(86956),E=b(12470),S=_(b(55288)),P=_(b(63223)),k=_(b(53967)),T=_(b(29144)),A=_(b(90284)),D=b(7480),W=_(b(16786)),q=_(b(12695)),N=_(b(11199)),H=b(33222),U=b(29611),V=_(b(58408)),G=b(40128);i.default=function RemoveBackground(){var t=(0,D.useEditImage)().editImage,i=(0,G.useRequestIds)().setGenerate,b=(0,W.default)(),_=b.use,Y=b.edit,K=b.isLoading,Z=(0,q.default)(),Q=Z.data,J=Z.send,ee=Z.isLoading,te=Z.error,ne=(0,U.useLocation)().navigate,de=ee||K,fe=(0,V.default)(t.aspectRatio),pe=fe.width,me=fe.height,ge=function handleSubmit(b){b.preventDefault(),i(),J({image:t})};return C.default.createElement(S.default,null,C.default.createElement(S.default.Panel,null,C.default.createElement(S.default.BackButton,null),C.default.createElement(S.default.PanelHeading,{primary:(0,E.__)("Remove Background","elementor"),secondary:(0,E.__)("Create an image of the subject with a transparent background","elementor")}),te&&C.default.createElement(S.default.ErrorMessage,{error:te,onRetry:ge}),C.default.createElement(k.default,{onSubmit:ge},null!=Q&&Q.result?C.default.createElement(N.default,{variant:"contained",disabled:de,onClick:function onClick(){return ne(H.LOCATIONS.GENERATE)}}):C.default.createElement(P.default,{disabled:de},(0,E.__)("Remove Background","elementor")))),C.default.createElement(S.default.Content,{isGenerating:de},null!=Q&&Q.result?C.default.createElement(w.Box,null,C.default.createElement(T.default,{transparentContainer:!0,onUseImage:_,onEditImage:Y,images:Q.result,aspectRatio:t.aspectRatio})):C.default.createElement(w.Box,null,C.default.createElement(A.default,null,C.default.createElement(A.default.Image,{src:t.url,alt:t.alt,style:{width:pe,height:me}})))))}},5017:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=b(95034),w=_(b(80695));i.default=function useReplaceBackground(t){return(0,w.default)((function fetchAction(t){return(0,C.getImageToImageReplaceBackground)(t)}),t)}},27689:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(18821)),S=_(b(55288)),P=b(12470),k=_(b(63223)),T=_(b(53967)),A=_(b(29144)),D=_(b(90284)),W=b(7480),q=_(b(16786)),N=_(b(5017)),H=_(b(3346)),U=b(33222),V=_(b(11199)),G=b(29611),Y=b(40128);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)}i.default=function ReplaceBackground(){var t=(0,w.useState)(""),i=(0,E.default)(t,2),b=i[0],_=i[1],C=(0,Y.useRequestIds)().setGenerate,K=(0,W.useEditImage)().editImage,Z=(0,q.default)(),Q=Z.use,J=Z.edit,ee=Z.isLoading,te=(0,N.default)(),ne=te.data,de=te.send,fe=te.isLoading,pe=te.error,me=(0,G.useLocation)().navigate,ge=fe||ee,ye=function handleSubmit(t){t.preventDefault(),C(),de({prompt:b,image:K})};return w.default.createElement(S.default,null,w.default.createElement(S.default.Panel,null,w.default.createElement(S.default.BackButton,null),w.default.createElement(S.default.PanelHeading,{primary:(0,P.__)("Replace Background","elementor"),secondary:(0,P.__)("Generate a new background with a prompt.","elementor")}),pe&&w.default.createElement(S.default.ErrorMessage,{error:pe,onRetry:ye}),w.default.createElement(T.default,{onSubmit:ye},w.default.createElement(H.default,{value:b,disabled:ge,onChange:_,placeholder:(0,P.__)("Describe what you want to generate in the background (English only)","elementor")}),w.default.createElement(k.default,{disabled:ge||""===b,color:null!=ne&&ne.result?"secondary":"primary"},null!=ne&&ne.result?(0,P.__)("Generate Again","elementor"):(0,P.__)("Replace Background","elementor")),(null==ne?void 0:ne.result)&&w.default.createElement(V.default,{disabled:ge,onClick:function onClick(){return me(U.LOCATIONS.GENERATE)}}))),w.default.createElement(S.default.Content,{isGenerating:ge},null!=ne&&ne.result?w.default.createElement(A.default,{onUseImage:Q,onEditImage:J,images:ne.result,aspectRatio:K.aspectRatio}):w.default.createElement(D.default,null,w.default.createElement(D.default.Image,{src:K.url,alt:K.alt,style:{width:K.width,height:K.height}}))))}},90587:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=b(95034),w=_(b(80695));i.default=function useResize(t){return(0,w.default)((function fetchAction(t){return(0,C.getImageToImageUpscale)(t)}),t)}},84026:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=_(b(41594)),E=_(b(85707)),S=b(86956),P=b(12470),k=_(b(55288)),T=_(b(63223)),A=_(b(53967)),D=_(b(29144)),W=_(b(90284)),q=b(7480),N=_(b(90587)),H=_(b(16786)),U=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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(1769)),V=b(40128);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)}i.default=function Resize(){var t=(0,q.useEditImage)(),i=t.editImage,b=t.width,_=(0,V.useRequestIds)().setGenerate,C=(0,H.default)(),G=C.use,Y=C.edit,K=C.isLoading,Z=(0,U.default)(),Q=Z.settings,J=Z.updateSettings,ee=(0,N.default)(),te=ee.data,ne=ee.send,de=ee.isLoading,fe=ee.error,pe=de||K,me=function handleSubmit(t){t.preventDefault(),_(),ne({promptSettings:Q,image: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,P.__)("Resize","elementor"),secondary:(0,P.__)("Make an image larger and improve it’s resolution.","elementor")}),fe&&w.default.createElement(k.default.ErrorMessage,{error:fe,onRetry:me}),w.default.createElement(A.default,{onSubmit:me},w.default.createElement(S.Stack,{spacing:.2},w.default.createElement(S.Box,{display:"flex",justifyContent:"space-between",alignItems:"center"},w.default.createElement(S.Typography,{variant:"caption"},"512px"),w.default.createElement(S.Typography,{variant:"caption"},"2048px")),w.default.createElement(S.Slider,{marks:!0,step:64,min:512,max:2048,id:"upscale_to",color:"secondary",name:"upscale_to",disabled:pe,defaultValue:b,valueLabelDisplay:"auto","aria-label":(0,P.__)("Upscale to","elementor"),onChange:function onChange(t,i){return J((0,E.default)({},U.IMAGE_UPSCALE,i))}}),w.default.createElement(S.Box,{display:"flex",justifyContent:"space-between",alignItems:"center"},w.default.createElement(S.Typography,{variant:"caption"},(0,P.__)("Current","elementor")),w.default.createElement(S.Typography,{variant:"caption"},(0,P.__)("Output","elementor")))),w.default.createElement(T.default,{disabled:pe}))),w.default.createElement(k.default.Content,{isGenerating:pe},null!=te&&te.result?w.default.createElement(D.default,{onUseImage:G,onEditImage:Y,images:te.result,aspectRatio:i.aspectRatio}):w.default.createElement(W.default,null,w.default.createElement(W.default.Image,{src:i.url,alt:i.alt,style:{width:i.width,height:i.height}}))))}},91359:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=_(b(41594)),w=b(86956),E=b(44048),S=function ImagesPlaceholder(){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(E.AIIcon,{color:"secondary",sx:{fontSize:36}}))}))))};S.propTypes={};i.default=S},61528:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var C=b(95034),w=_(b(80695));i.default=function useImageToImage(t){return(0,w.default)((function fetchAction(t){return(0,C.getImageToImageGeneration)(t)}),t)}},49304:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var w=_interopRequireWildcard(b(41594)),E=_(b(18821)),S=b(86956),P=b(12470),k=_(b(55288)),T=_(b(53967)),A=_(b(59248)),D=_(b(91422)),W=_(b(29144)),q=_(b(91359)),N=_(b(61528)),H=_(b(16786)),U=b(7480),V=_interopRequireWildcard(b(1769)),G=b(40128);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}var Y=function Variations(){var t,i=(0,w.useState)(""),b=(0,E.default)(i,1)[0],_=(0,G.useRequestIds)().setGenerate,C=(0,U.useEditImage)(),Y=C.editImage,K=C.aspectRatio,Z=(0,V.default)({aspectRatio:K,imageWeight:45}).settings,Q=(0,N.default)(),J=Q.data,ee=Q.send,te=Q.isLoading,ne=Q.error,de=(0,H.default)(),fe=de.use,pe=de.edit,me=de.isLoading,ge=te||me,ye=(0,w.useMemo)((function(){return Z[V.IMAGE_RATIO]}),[null==J?void 0:J.result]),ve=function handleSubmit(t){t.preventDefault(),_(),ee({prompt:b,settings:Z,image:Y})};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,P.__)("Variations","elementor"),secondary:(0,P.__)("Create new versions of the original image.","elementor")}),ne&&w.default.createElement(k.default.ErrorMessage,{error:ne,onRetry:ve}),w.default.createElement(T.default,{onSubmit:ve},w.default.createElement(S.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"action.selected"}},w.default.createElement("img",{src:(null==Y?void 0:Y.image_url)||(null==Y?void 0:Y.url),alt:b,style:{width:"auto",height:"auto",maxWidth:"100%",maxHeight:166,objectFit:"contained"}})),w.default.createElement(S.Stack,{gap:2,sx:{my:2.5}},(null==J||null===(t=J.result)||void 0===t?void 0:t.length)>0?w.default.createElement(A.default,{disabled:ge}):w.default.createElement(D.default,{disabled:ge})))),w.default.createElement(k.default.Content,{isGenerating:ge},null!=J&&J.result?w.default.createElement(W.default,{images:J.result,aspectRatio:ye,onUseImage:fe,onEditImage:pe}):w.default.createElement(q.default,null)))};Y.propTypes={};i.default=Y},8239:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(61790)),S=_(b(58155)),P=_(b(18821)),k=b(86956),T=b(12470),A=_(b(62688)),D=b(44048),W=_(b(73319)),q=_(b(29983)),N=_(b(6942)),H=_(b(54178)),U=_(b(53497)),V=_(b(62338)),G=_(b(2768)),Y=_(b(48985)),K=_(b(43091)),Z=_(b(29552)),Q=b(57827),J=b(14754),ee=b(40128),te=b(90291);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 ne=[{label:(0,T.__)("Simplify language","elementor"),icon:w.default.createElement(D.MessageIcon,{fontSize:"small"}),value:"Simplify the language of the following message"},{label:(0,T.__)("Make it longer","elementor"),icon:w.default.createElement(D.ExpandIcon,{fontSize:"small"}),value:"Make the following message longer"},{label:(0,T.__)("Make it shorter","elementor"),icon:w.default.createElement(D.ShrinkIcon,{fontSize:"small"}),value:"Make the following message shorter"},{label:(0,T.__)("Fix spelling & grammar","elementor"),icon:w.default.createElement(D.AIIcon,{fontSize:"small"}),value:"Fix the spelling and grammar of the following message"}],de=[{label:(0,T.__)("Change tone","elementor"),options:Q.vocalTones,getInstruction:function getInstruction(t){return"Change the tone of the following message to ".concat(t)}},{label:(0,T.__)("Translate to","elementor"),options:Q.translateLanguages,getInstruction:function getInstruction(t){return"Translate the following message to ".concat(t)}}],fe=function FormText(t){var i,b,_,C=t.type,A=t.onClose,D=t.getControlValue,fe=t.setControlValue,pe=t.additionalOptions,me=t.credits,ge=t.children,ye=D()===(null==pe?void 0:pe.defaultValue)?"":D(),ve=(0,Z.default)({result:null!==(i=null==ye?void 0:ye.result)&&void 0!==i?i:ye,credits:null!==(b=null==ye?void 0:ye.credits)&&void 0!==b?b:me,responseId:null==ye?void 0:ye.responseId}),be=ve.data,Ee=ve.isLoading,xe=ve.error,Oe=ve.setResult,ke=ve.reset,Te=ve.send,Re=ve.sendUsageData,je=xe||(null==pe?void 0:pe.initError),Ae=(0,w.useState)(""),Me=(0,P.default)(Ae,2),Le=Me[0],De=Me[1],We=(0,ee.useRequestIds)().setGenerate;(0,J.useSubscribeOnPromptHistoryAction)([{type:J.ACTION_TYPES.REUSE,handler:function handler(t){ke(),De(t.data)}},{type:J.ACTION_TYPES.EDIT,handler:function handler(t){Oe(t.data)}}]);var Be=(0,w.useRef)(null),ze=(0,w.useRef)(null),$e=(0,w.useRef)(null!==(_=pe.initRetry)&&void 0!==_?_:function(){}),Ke="textarea"===C?Q.textareaAutocomplete:Q.textAutocomplete,Qe=!Le,et=function(){var t=(0,S.default)(E.default.mark((function _callee(t){return E.default.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:We(),$e.current=function(){return Te({input:ze.current.value,instruction:t})},$e.current();case 3:case"end":return i.stop()}}),_callee)})));return function handleCustomInstruction(i){return t.apply(this,arguments)}}();return Ee?w.default.createElement(W.default,null):w.default.createElement(w.default.Fragment,null,je&&w.default.createElement(K.default,{error:je,onRetry:$e.current,sx:{mb:2.5}}),ge,!be.result&&w.default.createElement(k.Box,{component:"form",onSubmit:function handleSubmit(t){t.preventDefault(),We(),$e.current=function(){return Te({prompt:Le})},$e.current()}},w.default.createElement(k.Box,{sx:{mb:2.5}},w.default.createElement(q.default,{ref:Be,placeholder:(0,T.__)("Describe the text and tone you want to use...","elementor"),name:"prompt",value:Le,onChange:function onChange(t){return De(t.target.value)}})),Qe&&w.default.createElement(H.default,{suggestions:Ke,onSelect:function handleSuggestion(t){De(t+" "),Be.current.focus()},suggestionFilter:function suggestionFilter(t){return t+"..."}},w.default.createElement(U.default,{libraryLink:"https://go.elementor.com/ai-prompt-library-text/"})),pe.hideAiContext?null:w.default.createElement(te.VoicePromotionAlert,{introductionKey:"ai-context-text-promotion",sx:{mb:2}}),w.default.createElement(k.Stack,{direction:"row",alignItems:"center",sx:{pb:1.5,mt:2}},w.default.createElement(k.Stack,{direction:"row",justifyContent:"flex-end",flexGrow:1},w.default.createElement(G.default,null,(0,T.__)("Generate text","elementor"))))),be.result&&w.default.createElement(k.Box,{sx:{mt:1}},w.default.createElement(N.default,{fullWidth:!0,ref:ze,value:be.result,helperText:(0,T.__)("Text generated by AI may be inaccurate or offensive.","elementor"),onChange:function onChange(t){return Oe(t.target.value)}}),w.default.createElement(k.Grid,{container:!0,spacing:1,sx:{mt:2.5}},ne.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(Y.default,{label:i,icon:b,onClick:function onClick(){return et(_)}}))}))),w.default.createElement(k.Stack,{direction:"row",alignItems:"center",spacing:1,sx:{mt:2.5}},de.map((function(t){var i=t.label,b=t.options,_=t.getInstruction;return w.default.createElement(V.default,{key:i,label:i,options:b,onChange:function onChange(t){return et(_(t.target.value))}})}))),pe.hideAiContext?null:w.default.createElement(te.VoicePromotionAlert,{introductionKey:"ai-context-text-promotion",sx:{mb:2}}),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:ke},(0,T.__)("New prompt","elementor")),w.default.createElement(k.Button,{size:"small",variant:"contained",color:"primary",onClick:function applyPrompt(){Re(),fe(ze.current.value),A()}},(0,T.__)("Use text","elementor"))))))};fe.propTypes={type:A.default.string.isRequired,controlType:A.default.string,onClose:A.default.func.isRequired,getControlValue:A.default.func.isRequired,setControlValue:A.default.func.isRequired,additionalOptions:A.default.object,credits:A.default.number,usagePercentage:A.default.number,children:A.default.node};i.default=fe},62805:(t,i,b)=>{"use strict";var _=b(96784),C=b(10564);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 _={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var S=w?Object.getOwnPropertyDescriptor(t,E):null;S&&(S.get||S.set)?Object.defineProperty(_,E,S):_[E]=t[E]}return _.default=t,b&&b.set(t,_),_}(b(41594)),E=_(b(61790)),S=_(b(58155)),P=_(b(18821)),k=b(86956),T=b(12470),A=_(b(62688)),D=b(95034),W=b(44048);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=function GetStarted(t){var i=t.onSuccess,b=(0,w.useState)(!1),_=(0,P.default)(b,2),C=_[0],A=_[1],q=function(){var t=(0,S.default)(E.default.mark((function _callee(){return E.default.wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,D.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(W.AIIcon,{sx:{color:"text.primary",fontSize:"60px",mb:1}}),w.default.createElement(k.Typography,{variant:"h4",sx:{color:"text.primary"}},(0,T.__)("Step into the future with Elementor AI","elementor")),w.default.createElement(k.Typography,{variant:"body2"},(0,T.__)("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",checked:C,onClick:function onClick(){return A((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,T.__)("I approve the ","elementor"),w.default.createElement(k.Link,{href:"https://go.elementor.com/ai-terms/",target:"_blank",color:"info.main"},(0,T.__)("Terms of Service","elementor"))," & ",w.default.createElement(k.Link,{href:"https://go.elementor.com/ai-privacy-policy/",target:"_blank",color:"info.main"},(0,T.__)("Privacy Policy","elementor")),(0,T.__)(" of the Elementor AI service.","elementor"),w.default.createElement("br",null),(0,T.__)("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:q,sx:{mt:1,"&:hover":{color:"primary.contrastText"}}},(0,T.__)("Get Started","elementor")))};q.propTypes={onSuccess:A.default.func.isRequired};i.default=q},38298:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.AttachmentsTypesPropType=i.AttachmentPropType=void 0;var C=_(b(62688));i.AttachmentPropType=C.default.shape({type:C.default.string,previewHTML:C.default.string,content:C.default.string,label:C.default.string,source:C.default.string}),i.AttachmentsTypesPropType=C.default.shape({type:C.default.shape({promptPlaceholder:C.default.string,promptSuggestions:C.default.arrayOf(C.default.shape({text:C.default.string.isRequired})),previewGenerator:C.default.func})})},36833:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.renderLayoutApp=i.openPanel=i.onConnect=i.importToEditor=i.getUiConfig=i.closePanel=i.WEB_BASED_PROMPTS=i.VARIATIONS_PROMPTS=void 0;var C=_(b(41594)),w=_(b(61790)),E=_(b(58155)),S=_(b(18791)),P=b(74561),k=_(b(93569)),T=b(47547),A=b(40327),D=b(12470),W=_(b(47407)),q=b(40128),N=i.closePanel=function closePanel(){$e.run("panel/close"),$e.components.get("panel").blockUserInteractions()},H=i.openPanel=function openPanel(){$e.run("panel/open"),$e.components.get("panel").unblockUserInteractions()},U=i.onConnect=function onConnect(t){elementorCommon.config.library_connect.is_connected=!0,elementorCommon.config.library_connect.current_access_level=t.kits_access_level||t.access_level||0,elementorCommon.config.library_connect.current_access_tier=t.access_tier},V=i.getUiConfig=function getUiConfig(){var t,i;return{colorScheme:(null===(t=elementor)||void 0===t||null===(i=t.getPreferences)||void 0===i?void 0:i.call(t,"ui_theme"))||"auto",isRTL:elementorCommon.config.isRTL}},G=i.VARIATIONS_PROMPTS=[{text:(0,D.__)("Minimalist design with bold typography about","elementor")},{text:(0,D.__)("Elegant style with serif fonts discussing","elementor")},{text:(0,D.__)("Retro vibe with muted colors and classic fonts about","elementor")},{text:(0,D.__)("Futuristic design with neon accents about","elementor")},{text:(0,D.__)("Professional look with clean lines for","elementor")},{text:(0,D.__)("Earthy tones and organic shapes featuring","elementor")},{text:(0,D.__)("Luxurious theme with rich colors discussing","elementor")},{text:(0,D.__)("Tech-inspired style with modern fonts about","elementor")},{text:(0,D.__)("Warm hues with comforting visuals about","elementor")}],Y=i.WEB_BASED_PROMPTS=[{text:(0,D.__)("Change the content to be about [topic]","elementor")},{text:(0,D.__)("Generate lorem ipsum placeholder text for all paragraphs","elementor")},{text:(0,D.__)("Revise the content to focus on [topic] and then translate it into Spanish","elementor")},{text:(0,D.__)("Shift the focus of the content to [topic] in order to showcase our company's mission and values","elementor")},{text:(0,D.__)("Alter the content to provide helpful tips related to [topic]","elementor")},{text:(0,D.__)("Adjust the content to include FAQs and answers for common inquiries about [topic]","elementor")}],K=(0,D.__)("Press '/' for suggestions or describe the changes you want to apply (optional)...","elementor");i.renderLayoutApp=function renderLayoutApp(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{parentContainer:null,mode:"",at:null,onClose:null,onGenerate:null,onInsert:null,onRenderApp:null,onSelect:null,attachments:[]};N();var b=(0,P.createPreviewContainer)(i.parentContainer,{at:i.at}),_=V(),A=_.colorScheme,D=_.isRTL,q=document.createElement("div");document.body.append(q);var Z,Q=window.elementorFrontend.elements.$window[0].getComputedStyle(window.elementorFrontend.elements.$body[0]),J=S.default.render(C.default.createElement(W.default,{isRTL:D,colorScheme:A},C.default.createElement(k.default,{mode:i.mode,currentContext:{body:{backgroundColor:Q.backgroundColor,backgroundImage:Q.backgroundImage}},attachmentsTypes:{json:{promptSuggestions:G,promptPlaceholder:K,previewGenerator:(Z=(0,E.default)(w.default.mark((function _callee(t){var i;return w.default.wrap((function _callee$(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,(0,T.takeScreenshot)(t);case 2:return i=b.sent,b.abrupt("return",'<img src="'.concat(i,'" />'));case 4:case"end":return b.stop()}}),_callee)}))),function previewGenerator(t){return Z.apply(this,arguments)})},url:{promptPlaceholder:K,promptSuggestions:Y}},attachments:i.attachments||[],onClose:function onClose(){var t;b.destroy(),null===(t=i.onClose)||void 0===t||t.call(i),ee(),q.remove(),H()},onConnect:U,onGenerate:function onGenerate(){var t;null===(t=i.onGenerate)||void 0===t||t.call(i,{previewContainer:b})},onData:function(){var t=(0,E.default)(w.default.mark((function _callee2(t){var i;return w.default.wrap((function _callee2$(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,(0,T.takeScreenshot)(t);case 2:return i=b.sent,b.abrupt("return",{screenshot:i,template:t});case 4:case"end":return b.stop()}}),_callee2)})));return function(i){return t.apply(this,arguments)}}(),onSelect:function onSelect(t){var _;null===(_=i.onSelect)||void 0===_||_.call(i),b.setContent(t)},onInsert:i.onInsert,hasPro:elementor.helpers.hasPro()})),q),ee=J.unmount;null===(t=i.onRenderApp)||void 0===t||t.call(i,{previewContainer:b})},i.importToEditor=function importToEditor(t){var i=t.parentContainer,b=t.at,_=t.template,C=t.historyTitle,w=t.replace,E=void 0!==w&&w,S=(0,A.startHistoryLog)({type:"import",title:C});E&&$e.run("document/elements/delete",{container:i.children.at(b)}),$e.run("document/elements/create",{container:i,model:(0,q.generateIds)(_),options:{at:b,edit:!0}}),S()}},40327:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.startHistoryLog=function startHistoryLog(t){var i=t.type,b=t.title,_=$e.internal("document/history/start-log",{type:i,title:b});return function(){return $e.internal("document/history/end-log",{id:_})}},i.toggleHistory=function toggleHistory(t){elementor.documents.getCurrent().history.setActive(t)}},74561:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.createPreviewContainer=function createPreviewContainer(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},b=new Map,_=function createIdleContainer(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},b=createContainer(t,{elType:"container"},i);return b.view.$el.addClass(k),b}(t,i);function getAllContainers(){return[].concat((0,w.default)(b.values()),[_])}return{init:function init(){showContainer(_)},reset:function reset(){deleteContainers((0,w.default)(b.values())),b.clear(),showContainer(_)},setContent:function setContent(_){if(_){if(function hideContainers(t){t.forEach((function(t){t.view.$el.addClass(P)}))}(getAllContainers()),!b.has(_)){var C=createContainer(t,_,i);b.set(_,C)}showContainer(b.get(_))}},destroy:function destroy(){deleteContainers(getAllContainers()),b.clear()}}};var C=_(b(85707)),w=_(b(10906)),E=b(40327);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 S="e-ai-preview-container",P=S+"--hidden",k=S+"--idle";function createContainer(t,i){var b=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,E.toggleHistory)(!1);var _=$e.run("document/elements/create",{container:t,model:_objectSpread(_objectSpread({},i),{},{id:"".concat(S,"-").concat(elementorCommon.helpers.getUniqueId().toString())}),options:_objectSpread(_objectSpread({},b),{},{edit:!1})});return(0,E.toggleHistory)(!0),_.view.$el.addClass(P),_}function showContainer(t){t.view.$el.removeClass(P),setTimeout((function(){t.view.$el[0].scrollIntoView({behavior:"smooth",block:"start"})}))}function deleteContainers(t){(0,E.toggleHistory)(!1),$e.run("document/elements/delete",{containers:t}),(0,E.toggleHistory)(!0)}},47547:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.takeScreenshot=void 0;var C=_(b(61790)),w=_(b(10906)),E=_(b(58155)),S=b(45549),P=b(40327),k=b(40128);i.takeScreenshot=function(){var t=(0,E.default)(C.default.mark((function _callee(t){var i,b,_;return C.default.wrap((function _callee$(C){for(;;)switch(C.prev=C.next){case 0:if(t){C.next=2;break}return C.abrupt("return","");case 2:return(0,P.toggleHistory)(!1),i=createHiddenWrapper(),wrapContainer(b=createContainer(t),i),elementor.getPreviewView().$childViewContainer[0].appendChild(i),C.next=9,waitForContainer(b.id);case 9:if(!t.elements.length){C.next=12;break}return C.next=12,Promise.all(t.elements.map((function(t){return waitForContainer(t.id)})));case 12:return C.prev=12,C.next=15,function toWebp(t){return _toWebp.apply(this,arguments)}(b.view.$el[0],{quality:.01,imagePlaceholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="});case 15:_=C.sent,C.next=21;break;case 18:C.prev=18,C.t0=C.catch(12),_="";case 21:return deleteContainer(b),i.remove(),(0,P.toggleHistory)(!0),C.abrupt("return",_);case 25:case"end":return C.stop()}}),_callee,null,[[12,18]])})));return function takeScreenshot(i){return t.apply(this,arguments)}}();function _toWebp(){return _toWebp=(0,E.default)(C.default.mark((function _callee3(t){var i,b,_,w=arguments;return C.default.wrap((function _callee3$(C){for(;;)switch(C.prev=C.next){case 0:return b=w.length>1&&void 0!==w[1]?w[1]:{},C.next=3,(0,S.toCanvas)(t,b);case 3:return _=C.sent,C.abrupt("return",_.toDataURL("image/webp",null!==(i=b.quality)&&void 0!==i?i:1));case 5:case"end":return C.stop()}}),_callee3)}))),_toWebp.apply(this,arguments)}function createHiddenWrapper(){var t=document.createElement("div");return t.style.position="fixed",t.style.opacity="0",t.style.inset="0",t}function createContainer(t){var i=(0,k.generateIds)(t);return i.id="e-ai-screenshot-container-".concat(i.id),$e.run("document/elements/create",{container:elementor.getPreviewContainer(),model:i,options:{edit:!1}})}function deleteContainer(t){return $e.run("document/elements/delete",{container:t})}function waitForContainer(t){var i=function sleep(t){return new Promise((function(i){return setTimeout(i,t)}))}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3),b=new Promise((function(i){elementorFrontend.hooks.addAction("frontend/element_ready/global",function(){var b=(0,E.default)(C.default.mark((function _callee2(b){var _;return C.default.wrap((function _callee2$(C){for(;;)switch(C.prev=C.next){case 0:if(b.data("id")!==t){C.next=5;break}return _=(0,w.default)(b[0].querySelectorAll("img")),C.next=4,Promise.all(_.map(waitForImage));case 4:i();case 5:case"end":return C.stop()}}),_callee2)})));return function(t){return b.apply(this,arguments)}}())}));return Promise.any([i,b])}function waitForImage(t){return t.complete?Promise.resolve():new Promise((function(i){t.addEventListener("load",i),t.addEventListener("error",(function(){t.remove(),i()}))}))}function wrapContainer(t,i){var b=t.view.$el[0];b.parentNode.insertBefore(i,b),i.appendChild(b)}},25252:(t,i,b)=>{"use strict";var _=b(96784);Object.defineProperty(i,"__esModule",{value:!0}),i.AIMediaGenerateApp=i.AIMediaEditApp=void 0;var C=_(b(41594)),w=_(b(62688)),E=_(b(96698)),S=b(33222);(i.AIMediaGenerateApp=function AIMediaGenerateApp(t){var i=t.onClose,b=t.setControlValue,_=t.predefinedPrompt,w=void 0===_?"":_,P=t.textToImageHook,k=void 0===P?null:P,T=t.initialSettings,A=void 0===T?{}:T;return C.default.createElement(C.default.Fragment,null,C.default.createElement(E.default,{type:"media",getControlValue:function getControlValue(){},setControlValue:b,onClose:i,isRTL:elementorCommon.config.isRTL,additionalOptions:{defaultImageType:Object.keys(S.IMAGE_PROMPT_CATEGORIES)[1],textToImageHook:k,predefinedPrompt:w,initialSettings:A}}))}).propTypes={onClose:w.default.func.isRequired,predefinedPrompt:w.default.string,textToImageHook:w.default.func,setControlValue:w.default.func.isRequired,initialSettings:w.default.object},(i.AIMediaEditApp=function AIMediaEditApp(t){var i=t.onClose,b=t.imageId,_=wp.media.attachment(b);return C.default.createElement(C.default.Fragment,null,C.default.createElement(E.default,{type:"media",getControlValue:function getControlValue(){return _.attributes},setControlValue:function setControlValue(){},onClose:i,isRTL:elementorCommon.config.isRTL,additionalOptions:{location:S.LOCATIONS.IMAGE_TOOLS}}))}).propTypes={onClose:w.default.func.isRequired,imageId:w.default.string}},68017:(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},49909: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)},E=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,_)},S=function setProperty(t,i){_&&"__proto__"===i.name?_(t,i.name,{enumerable:!0,configurable:!0,value:i.newValue,writable:!0}):t[i.name]=i.newValue},P=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,T=arguments[0],A=1,D=arguments.length,W=!1;for("boolean"==typeof T&&(W=T,T=arguments[1]||{},A=2),(null==T||"object"!=typeof T&&"function"!=typeof T)&&(T={});A<D;++A)if(null!=(t=arguments[A]))for(i in t)b=P(T,i),T!==(_=P(t,i))&&(W&&_&&(E(_)||(C=w(_)))?(C?(C=!1,k=b&&w(b)?b:[]):k=b&&E(b)?b:{},S(T,{name:i,newValue:extend(W,k,_)})):void 0!==_&&S(T,{name:i,newValue:_}));return T}},45549:(t,i,b)=>{"use strict";b.r(i),b.d(i,{getFontEmbedCSS:()=>getFontEmbedCSS,toBlob:()=>toBlob,toCanvas:()=>toCanvas,toJpeg:()=>toJpeg,toPixelData:()=>toPixelData,toPng:()=>toPng,toSvg:()=>toSvg});const _=(()=>{let t=0;return()=>(t+=1,`u${`0000${(Math.random()*36**4|0).toString(36)}`.slice(-4)}${t}`)})();function toArray(t){const i=[];for(let b=0,_=t.length;b<_;b++)i.push(t[b]);return i}function px(t,i){const b=(t.ownerDocument.defaultView||window).getComputedStyle(t).getPropertyValue(i);return b?parseFloat(b.replace("px","")):0}function getImageSize(t,i={}){return{width:i.width||function getNodeWidth(t){const i=px(t,"border-left-width"),b=px(t,"border-right-width");return t.clientWidth+i+b}(t),height:i.height||function getNodeHeight(t){const i=px(t,"border-top-width"),b=px(t,"border-bottom-width");return t.clientHeight+i+b}(t)}}const C=16384;function createImage(t){return new Promise(((i,b)=>{const _=new Image;_.decode=()=>i(_),_.onload=()=>i(_),_.onerror=b,_.crossOrigin="anonymous",_.decoding="async",_.src=t}))}async function nodeToDataURL(t,i,b){const _="http://www.w3.org/2000/svg",C=document.createElementNS(_,"svg"),w=document.createElementNS(_,"foreignObject");return C.setAttribute("width",`${i}`),C.setAttribute("height",`${b}`),C.setAttribute("viewBox",`0 0 ${i} ${b}`),w.setAttribute("width","100%"),w.setAttribute("height","100%"),w.setAttribute("x","0"),w.setAttribute("y","0"),w.setAttribute("externalResourcesRequired","true"),C.appendChild(w),w.appendChild(t),async function svgToDataURL(t){return Promise.resolve().then((()=>(new XMLSerializer).serializeToString(t))).then(encodeURIComponent).then((t=>`data:image/svg+xml;charset=utf-8,${t}`))}(C)}const isInstanceOfElement=(t,i)=>{if(t instanceof i)return!0;const b=Object.getPrototypeOf(t);return null!==b&&(b.constructor.name===i.name||isInstanceOfElement(b,i))};function getPseudoElementStyle(t,i,b){const _=`.${t}:${i}`,C=b.cssText?function formatCSSText(t){const i=t.getPropertyValue("content");return`${t.cssText} content: '${i.replace(/'|"/g,"")}';`}(b):function formatCSSProperties(t){return toArray(t).map((i=>`${i}: ${t.getPropertyValue(i)}${t.getPropertyPriority(i)?" !important":""};`)).join(" ")}(b);return document.createTextNode(`${_}{${C}}`)}function clonePseudoElement(t,i,b){const C=window.getComputedStyle(t,b),w=C.getPropertyValue("content");if(""===w||"none"===w)return;const E=_();try{i.className=`${i.className} ${E}`}catch(t){return}const S=document.createElement("style");S.appendChild(getPseudoElementStyle(E,b,C)),i.appendChild(S)}const w="application/font-woff",E="image/jpeg",S={woff:w,woff2:w,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:E,jpeg:E,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function getMimeType(t){const i=function getExtension(t){const i=/\.([^./]*?)$/g.exec(t);return i?i[1]:""}(t).toLowerCase();return S[i]||""}function isDataUrl(t){return-1!==t.search(/^(data:)/)}function makeDataUrl(t,i){return`data:${i};base64,${t}`}async function fetchAsDataURL(t,i,b){const _=await fetch(t,i);if(404===_.status)throw new Error(`Resource "${_.url}" not found`);const C=await _.blob();return new Promise(((t,i)=>{const w=new FileReader;w.onerror=i,w.onloadend=()=>{try{t(b({res:_,result:w.result}))}catch(t){i(t)}},w.readAsDataURL(C)}))}const P={};async function resourceToDataURL(t,i,b){const _=function getCacheKey(t,i,b){let _=t.replace(/\?.*/,"");return b&&(_=t),/ttf|otf|eot|woff2?/i.test(_)&&(_=_.replace(/.*\//,"")),i?`[${i}]${_}`:_}(t,i,b.includeQueryParams);if(null!=P[_])return P[_];let C;b.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime());try{const _=await fetchAsDataURL(t,b.fetchRequestInit,(({res:t,result:b})=>(i||(i=t.headers.get("Content-Type")||""),function getContentFromDataUrl(t){return t.split(/,/)[1]}(b))));C=makeDataUrl(_,i)}catch(i){C=b.imagePlaceholder||"";let _=`Failed to fetch resource: ${t}`;i&&(_="string"==typeof i?i:i.message),_&&console.warn(_)}return P[_]=C,C}async function cloneSingleNode(t,i){return isInstanceOfElement(t,HTMLCanvasElement)?async function cloneCanvasElement(t){const i=t.toDataURL();return"data:,"===i?t.cloneNode(!1):createImage(i)}(t):isInstanceOfElement(t,HTMLVideoElement)?async function cloneVideoElement(t,i){if(t.currentSrc){const i=document.createElement("canvas"),b=i.getContext("2d");return i.width=t.clientWidth,i.height=t.clientHeight,null==b||b.drawImage(t,0,0,i.width,i.height),createImage(i.toDataURL())}const b=t.poster,_=getMimeType(b);return createImage(await resourceToDataURL(b,_,i))}(t,i):isInstanceOfElement(t,HTMLIFrameElement)?async function cloneIFrameElement(t){var i;try{if(null===(i=null==t?void 0:t.contentDocument)||void 0===i?void 0:i.body)return await cloneNode(t.contentDocument.body,{},!0)}catch(t){}return t.cloneNode(!1)}(t):t.cloneNode(!1)}const isSlotElement=t=>null!=t.tagName&&"SLOT"===t.tagName.toUpperCase();function decorate(t,i){return isInstanceOfElement(i,Element)&&(!function cloneCSSStyle(t,i){const b=i.style;if(!b)return;const _=window.getComputedStyle(t);_.cssText?(b.cssText=_.cssText,b.transformOrigin=_.transformOrigin):toArray(_).forEach((C=>{let w=_.getPropertyValue(C);if("font-size"===C&&w.endsWith("px")){const t=Math.floor(parseFloat(w.substring(0,w.length-2)))-.1;w=`${t}px`}isInstanceOfElement(t,HTMLIFrameElement)&&"display"===C&&"inline"===w&&(w="block"),"d"===C&&i.getAttribute("d")&&(w=`path(${i.getAttribute("d")})`),b.setProperty(C,w,_.getPropertyPriority(C))}))}(t,i),function clonePseudoElements(t,i){clonePseudoElement(t,i,":before"),clonePseudoElement(t,i,":after")}(t,i),function cloneInputValue(t,i){isInstanceOfElement(t,HTMLTextAreaElement)&&(i.innerHTML=t.value),isInstanceOfElement(t,HTMLInputElement)&&i.setAttribute("value",t.value)}(t,i),function cloneSelectValue(t,i){if(isInstanceOfElement(t,HTMLSelectElement)){const b=i,_=Array.from(b.children).find((i=>t.value===i.getAttribute("value")));_&&_.setAttribute("selected","")}}(t,i)),i}async function cloneNode(t,i,b){return b||!i.filter||i.filter(t)?Promise.resolve(t).then((t=>cloneSingleNode(t,i))).then((b=>async function cloneChildren(t,i,b){var _,C;let w=[];return w=isSlotElement(t)&&t.assignedNodes?toArray(t.assignedNodes()):isInstanceOfElement(t,HTMLIFrameElement)&&(null===(_=t.contentDocument)||void 0===_?void 0:_.body)?toArray(t.contentDocument.body.childNodes):toArray((null!==(C=t.shadowRoot)&&void 0!==C?C:t).childNodes),0===w.length||isInstanceOfElement(t,HTMLVideoElement)||await w.reduce(((t,_)=>t.then((()=>cloneNode(_,b))).then((t=>{t&&i.appendChild(t)}))),Promise.resolve()),i}(t,b,i))).then((i=>decorate(t,i))).then((t=>async function ensureSVGSymbols(t,i){const b=t.querySelectorAll?t.querySelectorAll("use"):[];if(0===b.length)return t;const _={};for(let C=0;C<b.length;C++){const w=b[C].getAttribute("xlink:href");if(w){const b=t.querySelector(w),C=document.querySelector(w);b||!C||_[w]||(_[w]=await cloneNode(C,i,!0))}}const C=Object.values(_);if(C.length){const i="http://www.w3.org/1999/xhtml",b=document.createElementNS(i,"svg");b.setAttribute("xmlns",i),b.style.position="absolute",b.style.width="0",b.style.height="0",b.style.overflow="hidden",b.style.display="none";const _=document.createElementNS(i,"defs");b.appendChild(_);for(let t=0;t<C.length;t++)_.appendChild(C[t]);t.appendChild(b)}return t}(t,i))):null}const k=/url\((['"]?)([^'"]+?)\1\)/g,T=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,A=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;async function embed_resources_embed(t,i,b,_,C){try{const w=b?function resolveUrl(t,i){if(t.match(/^[a-z]+:\/\//i))return t;if(t.match(/^\/\//))return window.location.protocol+t;if(t.match(/^[a-z]+:/i))return t;const b=document.implementation.createHTMLDocument(),_=b.createElement("base"),C=b.createElement("a");return b.head.appendChild(_),b.body.appendChild(C),i&&(_.href=i),C.href=t,C.href}(i,b):i,E=getMimeType(i);let S;if(C){S=makeDataUrl(await C(w),E)}else S=await resourceToDataURL(w,E,_);return t.replace(function toRegex(t){const i=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${i})(['"]?\\))`,"g")}(i),`$1${S}$3`)}catch(t){}return t}function shouldEmbed(t){return-1!==t.search(k)}async function embedResources(t,i,b){if(!shouldEmbed(t))return t;const _=function filterPreferredFontFormat(t,{preferredFontFormat:i}){return i?t.replace(A,(t=>{for(;;){const[b,,_]=T.exec(t)||[];if(!_)return"";if(_===i)return`src: ${b};`}})):t}(t,b),C=function parseURLs(t){const i=[];return t.replace(k,((t,b,_)=>(i.push(_),t))),i.filter((t=>!isDataUrl(t)))}(_);return C.reduce(((t,_)=>t.then((t=>embed_resources_embed(t,_,i,b)))),Promise.resolve(_))}async function embedProp(t,i,b){var _;const C=null===(_=i.style)||void 0===_?void 0:_.getPropertyValue(t);if(C){const _=await embedResources(C,null,b);return i.style.setProperty(t,_,i.style.getPropertyPriority(t)),!0}return!1}async function embedImages(t,i){isInstanceOfElement(t,Element)&&(await async function embedBackground(t,i){await embedProp("background",t,i)||await embedProp("background-image",t,i),await embedProp("mask",t,i)||await embedProp("mask-image",t,i)}(t,i),await async function embedImageNode(t,i){const b=isInstanceOfElement(t,HTMLImageElement);if((!b||isDataUrl(t.src))&&(!isInstanceOfElement(t,SVGImageElement)||isDataUrl(t.href.baseVal)))return;const _=b?t.src:t.href.baseVal,C=await resourceToDataURL(_,getMimeType(_),i);await new Promise(((i,_)=>{t.onload=i,t.onerror=_;const w=t;w.decode&&(w.decode=i),"lazy"===w.loading&&(w.loading="eager"),b?(t.srcset="",t.src=C):t.href.baseVal=C}))}(t,i),await async function embedChildren(t,i){const b=toArray(t.childNodes).map((t=>embedImages(t,i)));await Promise.all(b).then((()=>t))}(t,i))}const D={};async function fetchCSS(t){let i=D[t];if(null!=i)return i;const b=await fetch(t);return i={url:t,cssText:await b.text()},D[t]=i,i}async function embedFonts(t,i){let b=t.cssText;const _=/url\(["']?([^"')]+)["']?\)/g,C=(b.match(/url\([^)]+\)/g)||[]).map((async C=>{let w=C.replace(_,"$1");return w.startsWith("https://")||(w=new URL(w,t.url).href),fetchAsDataURL(w,i.fetchRequestInit,(({result:t})=>(b=b.replace(C,`url(${t})`),[C,t])))}));return Promise.all(C).then((()=>b))}function parseCSS(t){if(null==t)return[];const i=[];let b=t.replace(/(\/\*[\s\S]*?\*\/)/gi,"");const _=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const t=_.exec(b);if(null===t)break;i.push(t[0])}b=b.replace(_,"");const C=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,w=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let t=C.exec(b);if(null===t){if(t=w.exec(b),null===t)break;C.lastIndex=w.lastIndex}else w.lastIndex=C.lastIndex;i.push(t[0])}return i}async function parseWebFontRules(t,i){if(null==t.ownerDocument)throw new Error("Provided element is not within a Document");const b=toArray(t.ownerDocument.styleSheets),_=await async function getCSSRules(t,i){const b=[],_=[];return t.forEach((b=>{if("cssRules"in b)try{toArray(b.cssRules||[]).forEach(((t,C)=>{if(t.type===CSSRule.IMPORT_RULE){let w=C+1;const E=fetchCSS(t.href).then((t=>embedFonts(t,i))).then((t=>parseCSS(t).forEach((t=>{try{b.insertRule(t,t.startsWith("@import")?w+=1:b.cssRules.length)}catch(i){console.error("Error inserting rule from remote css",{rule:t,error:i})}})))).catch((t=>{console.error("Error loading remote css",t.toString())}));_.push(E)}}))}catch(C){const w=t.find((t=>null==t.href))||document.styleSheets[0];null!=b.href&&_.push(fetchCSS(b.href).then((t=>embedFonts(t,i))).then((t=>parseCSS(t).forEach((t=>{w.insertRule(t,b.cssRules.length)})))).catch((t=>{console.error("Error loading remote stylesheet",t)}))),console.error("Error inlining remote css file",C)}})),Promise.all(_).then((()=>(t.forEach((t=>{if("cssRules"in t)try{toArray(t.cssRules||[]).forEach((t=>{b.push(t)}))}catch(i){console.error(`Error while reading CSS rules from ${t.href}`,i)}})),b)))}(b,i);return function getWebFontRules(t){return t.filter((t=>t.type===CSSRule.FONT_FACE_RULE)).filter((t=>shouldEmbed(t.style.getPropertyValue("src"))))}(_)}async function getWebFontCSS(t,i){const b=await parseWebFontRules(t,i);return(await Promise.all(b.map((t=>{const b=t.parentStyleSheet?t.parentStyleSheet.href:null;return embedResources(t.cssText,b,i)})))).join("\n")}async function toSvg(t,i={}){const{width:b,height:_}=getImageSize(t,i),C=await cloneNode(t,i,!0);await async function embedWebFonts(t,i){const b=null!=i.fontEmbedCSS?i.fontEmbedCSS:i.skipFonts?null:await getWebFontCSS(t,i);if(b){const i=document.createElement("style"),_=document.createTextNode(b);i.appendChild(_),t.firstChild?t.insertBefore(i,t.firstChild):t.appendChild(i)}}(C,i),await embedImages(C,i),function applyStyle(t,i){const{style:b}=t;i.backgroundColor&&(b.backgroundColor=i.backgroundColor),i.width&&(b.width=`${i.width}px`),i.height&&(b.height=`${i.height}px`);const _=i.style;return null!=_&&Object.keys(_).forEach((t=>{b[t]=_[t]})),t}(C,i);return await nodeToDataURL(C,b,_)}async function toCanvas(t,i={}){const{width:b,height:_}=getImageSize(t,i),w=await toSvg(t,i),E=await createImage(w),S=document.createElement("canvas"),P=S.getContext("2d"),k=i.pixelRatio||function getPixelRatio(){let t,i;try{i=process}catch(t){}const b=i&&i.env?i.env.devicePixelRatio:null;return b&&(t=parseInt(b,10),Number.isNaN(t)&&(t=1)),t||window.devicePixelRatio||1}(),T=i.canvasWidth||b,A=i.canvasHeight||_;return S.width=T*k,S.height=A*k,i.skipAutoScale||function checkCanvasDimensions(t){(t.width>C||t.height>C)&&(t.width>C&&t.height>C?t.width>t.height?(t.height*=C/t.width,t.width=C):(t.width*=C/t.height,t.height=C):t.width>C?(t.height*=C/t.width,t.width=C):(t.width*=C/t.height,t.height=C))}(S),S.style.width=`${T}`,S.style.height=`${A}`,i.backgroundColor&&(P.fillStyle=i.backgroundColor,P.fillRect(0,0,S.width,S.height)),P.drawImage(E,0,0,S.width,S.height),S}async function toPixelData(t,i={}){const{width:b,height:_}=getImageSize(t,i);return(await toCanvas(t,i)).getContext("2d").getImageData(0,0,b,_).data}async function toPng(t,i={}){return(await toCanvas(t,i)).toDataURL()}async function toJpeg(t,i={}){return(await toCanvas(t,i)).toDataURL("image/jpeg",i.quality||1)}async function toBlob(t,i={}){const b=await toCanvas(t,i),_=await function canvasToBlob(t,i={}){return t.toBlob?new Promise((b=>{t.toBlob(b,i.type?i.type:"image/png",i.quality?i.quality:1)})):new Promise((b=>{const _=window.atob(t.toDataURL(i.type?i.type:void 0,i.quality?i.quality:void 0).split(",")[1]),C=_.length,w=new Uint8Array(C);for(let t=0;t<C;t+=1)w[t]=_.charCodeAt(t);b(new Blob([w],{type:i.type?i.type:"image/png"}))}))}(b);return _}async function getFontEmbedCSS(t,i={}){return getWebFontCSS(t,i)}},40848:t=>{var i=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,b=/\n/g,_=/^\s*/,C=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,w=/^:\s*/,E=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,S=/^[;\s]*/,P=/^\s+|\s+$/g,k="";function trim(t){return t?t.replace(P,k):k}t.exports=function(t,P){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];P=P||{};var T=1,A=1;function updatePosition(t){var i=t.match(b);i&&(T+=i.length);var _=t.lastIndexOf("\n");A=~_?t.length-_:A+t.length}function position(){var t={line:T,column:A};return function(i){return i.position=new Position(t),whitespace(),i}}function Position(t){this.start=t,this.end={line:T,column:A},this.source=P.source}Position.prototype.content=t;var D=[];function error(i){var b=new Error(P.source+":"+T+":"+A+": "+i);if(b.reason=i,b.filename=P.source,b.line=T,b.column=A,b.source=t,!P.silent)throw b;D.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 A+=2,updatePosition(_),t=t.slice(b),A+=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(E),P=t({type:"declaration",property:trim(b[0].replace(i,k)),value:_?trim(_[0].replace(i,k)):k});return match(S),P}}return whitespace(),function declarations(){var t,i=[];for(comments(i);t=declaration();)!1!==t&&(i.push(t),comments(i));return i}()}},27634:t=>{t.exports=function isBuffer(t){return null!=t&&null!=t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},40362:(t,i,b)=>{"use strict";var _=b(56441);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,t.exports=function(){function shim(t,i,b,C,w,E){if(E!==_){var S=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw S.name="Invariant Violation",S}}function 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}},62688:(t,i,b)=>{t.exports=b(40362)()},56441:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},23941: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 E,S=t[Symbol.iterator]();!(_=(E=S.next()).done)&&(b.push(E.value),!i||b.length!==i);_=!0);}catch(t){C=!0,w=t}finally{try{_||null==S.return||S.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)),E="undefined"!=typeof File,S={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"}}},P=w?S.touch:S.desktop,k="undefined"!=typeof window&&window.devicePixelRatio?window.devicePixelRatio:1,T={x:.5,y:.5},A=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:T}),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:T})})),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,E,S,P,k,T,A,D,W,q,N,H,U;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},U=i.props.rotate,U=(U%=360)<0?U+360:U,i.state.mx&&i.state.my&&(w=i.state.mx-b,E=i.state.my-_,S=i.state.image.width*i.props.scale,P=i.state.image.height*i.props.scale,T=(k=i.getCroppingRect()).x,A=k.y,T*=S,A*=P,D=function(t){return t*(Math.PI/180)},W=Math.cos(D(U)),N=A+-w*(q=Math.sin(D(U)))+E*W,H={x:(T+w*W+E*q)/S+1/i.props.scale*i.getXScale()/2,y:N/P+1/i.props.scale*i.getYScale()/2},i.props.onPositionChange(H),C.image=y(y({},i.state.image),H)),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=P.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===T||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=P.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={},E=m(this.getBorders(C),2),S=E[0],P=E[1],k=i,T=b;return this.isVertical()?(w.width=T,w.height=k):(w.width=k,w.height=T),w.width+=2*S,w.height+=2*P,{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,E=0,S=1-_.height;return(this.props.disableBoundaryChecks||1<i||1<b)&&(C=-_.width,E=-_.height,S=w=1),y(y({},_),{},{x:Math.max(C,Math.min(_.x,w)),y:Math.max(E,Math.min(_.y,S))})}},{key:"loadImage",value:function(t){var i;E&&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(),E=t.width*this.props.scale,S=t.height*this.props.scale,P=-w.x*E,k=-w.y*S;return this.isVertical()?(P+=C,k+=_):(P+=_,k+=C),{x:P,y:k,height:S,width:E}}},{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,E,S,P,T=this.props.borderRadius,A=this.getDimensions(),D=m(this.getBorders(A.border),2),W=D[0],q=D[1],N=A.canvas.height,H=A.canvas.width;T=Math.max(T,0),T=Math.min(T,H/2-W,N/2-q),t.beginPath(),i=t,C=H-2*(b=W),w=N-2*(_=q),0===(E=T)?i.rect(b,_,C,w):(S=C-E,P=w-E,i.translate(b,_),i.arc(E,E,E,Math.PI,1.5*Math.PI),i.lineTo(S,0),i.arc(S,E,E,1.5*Math.PI,2*Math.PI),i.lineTo(C,P),i.arc(S,P,E,2*Math.PI,.5*Math.PI),i.lineTo(E,w),i.arc(E,P,E,.5*Math.PI,Math.PI),i.translate(-b,-_)),t.rect(H,0,-H,N),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(),E={width:C.canvas.width,height:C.canvas.height,cursor:this.state.drag?"grabbing":"grab",touchAction:"none"},S={width:C.canvas.width*k,height:C.canvas.height*k,style:y(y({},E),i)};return S[P.react.down]=this.handleMouseDown,w&&(S[P.react.mouseDown]=this.handleMouseDown),_.default.createElement("canvas",u({ref:this.setCanvas},S,b))}}])&&r(t.prototype,i),b&&r(t,b),a}();return s(A,"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=E?[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(A,"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}),A}(b(62688),b(41594))},7470:(t,i,b)=>{"use strict";var _=b(75206);i.createRoot=_.createRoot,i.hydrateRoot=_.hydrateRoot},9111:(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 T.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 E=C?Object.getOwnPropertyDescriptor(t,w):null;E&&(E.get||E.set)?Object.defineProperty(_,w,E):_[w]=t[w]}_.default=t,b&&b.set(t,_);return _}(b(41594)),C=_interopRequireDefault(b(62688)),w=_interopRequireDefault(b(75206)),E=_interopRequireDefault(b(68017)),S=b(32837),P=b(10402),k=b(26732),T=_interopRequireDefault(b(11060)),A=_interopRequireDefault(b(57988)),D=["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=[],E=!0,S=!1;try{for(b=b.call(t);!(E=(_=b.next()).done)&&(w.push(_.value),!i||w.length!==i);E=!0);}catch(t){S=!0,C=t}finally{try{E||null==b.return||b.return()}finally{if(S)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 W=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,A.default)("Draggable: onDragStart: %j",i),!1===b.props.onStart(t,(0,P.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,A.default)("Draggable: onDrag: %j",i);var _=(0,P.createDraggableData)(_assertThisInitialized(b),i),C={x:_.x,y:_.y};if(b.props.bounds){var w=C.x,E=C.y;C.x+=b.state.slackX,C.y+=b.state.slackY;var S=_slicedToArray((0,P.getBoundPosition)(_assertThisInitialized(b),C.x,C.y),2),k=S[0],T=S[1];C.x=k,C.y=T,C.slackX=b.state.slackX+(w-C.x),C.slackY=b.state.slackY+(E-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,P.createDraggableData)(_assertThisInitialized(b),i)))return!1;(0,A.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,E=C.y;_.x=w,_.y=E}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,A=i.defaultClassNameDragged,W=i.position,q=i.positionOffset,N=(i.scale,_objectWithoutProperties(i,D)),H={},U=null,V=!Boolean(W)||this.state.dragging,G=W||C,Y={x:(0,P.canDragX)(this)&&V?this.state.x:G.x,y:(0,P.canDragY)(this)&&V?this.state.y:G.y};this.state.isElementSVG?U=(0,S.createSVGTransform)(Y,q):H=(0,S.createCSSTransform)(Y,q);var K=(0,E.default)(b.props.className||"",w,(_defineProperty(t={},k,this.state.dragging),_defineProperty(t,A,this.state.dragged),t));return _.createElement(T.default,_extends({},N,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),_.cloneElement(_.Children.only(b),{className:K,style:_objectSpread(_objectSpread({},b.props.style),H),transform:U}))}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(t,i){var b=t.position,_=i.prevPropsPosition;return!b||_&&b.x===_.x&&b.y===_.y?null:((0,A.default)("Draggable: getDerivedStateFromProps %j",{position:b,prevPropsPosition:_}),{x:b.x,y:b.y,prevPropsPosition:_objectSpread({},b)})}}]),Draggable}(_.Component);i.default=W,_defineProperty(W,"displayName","Draggable"),_defineProperty(W,"propTypes",_objectSpread(_objectSpread({},T.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(W,"defaultProps",_objectSpread(_objectSpread({},T.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},11060:(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 E=C?Object.getOwnPropertyDescriptor(t,w):null;E&&(E.get||E.set)?Object.defineProperty(_,w,E):_[w]=t[w]}_.default=t,b&&b.set(t,_);return _}(b(41594)),C=_interopRequireDefault(b(62688)),w=_interopRequireDefault(b(75206)),E=b(32837),S=b(10402),P=b(26732),k=_interopRequireDefault(b(57988));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=[],E=!0,S=!1;try{for(b=b.call(t);!(E=(_=b.next()).done)&&(w.push(_.value),!i||w.length!==i);E=!0);}catch(t){S=!0,C=t}finally{try{E||null==b.return||b.return()}finally{if(S)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={start:"touchstart",move:"touchmove",stop:"touchend"},A={start:"mousedown",move:"mousemove",stop:"mouseup"},D=A,W=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,E.matchesSelectorAndParentsTo)(i.target,t.props.handle,b)||t.props.cancel&&(0,E.matchesSelectorAndParentsTo)(i.target,t.props.cancel,b))){"touchstart"===i.type&&i.preventDefault();var C=(0,E.getTouchIdentifier)(i);t.setState({touchIdentifier:C});var w=(0,S.getControlPosition)(i,C,_assertThisInitialized(t));if(null!=w){var P=w.x,T=w.y,A=(0,S.createCoreData)(_assertThisInitialized(t),P,T);(0,k.default)("DraggableCore: handleDragStart: %j",A),(0,k.default)("calling",t.props.onStart),!1!==t.props.onStart(i,A)&&!1!==t.mounted&&(t.props.enableUserSelectHack&&(0,E.addUserSelectStyles)(_),t.setState({dragging:!0,lastX:P,lastY:T}),(0,E.addEvent)(_,D.move,t.handleDrag),(0,E.addEvent)(_,D.stop,t.handleDragStop))}}})),_defineProperty(_assertThisInitialized(t),"handleDrag",(function(i){var b=(0,S.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,E=C-t.state.lastY,P=_slicedToArray((0,S.snapToGrid)(t.props.grid,w,E),2);if(w=P[0],E=P[1],!w&&!E)return;_=t.state.lastX+w,C=t.state.lastY+E}var T=(0,S.createCoreData)(_assertThisInitialized(t),_,C);if((0,k.default)("DraggableCore: handleDrag: %j",T),!1!==t.props.onDrag(i,T)&&!1!==t.mounted)t.setState({lastX:_,lastY:C});else try{t.handleDragStop(new MouseEvent("mouseup"))}catch(i){var A=document.createEvent("MouseEvents");A.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),t.handleDragStop(A)}}})),_defineProperty(_assertThisInitialized(t),"handleDragStop",(function(i){if(t.state.dragging){var b=(0,S.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,P=C-t.state.lastY||0,T=_slicedToArray((0,S.snapToGrid)(t.props.grid,w,P),2);w=T[0],P=T[1],_=t.state.lastX+w,C=t.state.lastY+P}var A=(0,S.createCoreData)(_assertThisInitialized(t),_,C);if(!1===t.props.onStop(i,A)||!1===t.mounted)return!1;var W=t.findDOMNode();W&&t.props.enableUserSelectHack&&(0,E.removeUserSelectStyles)(W.ownerDocument),(0,k.default)("DraggableCore: handleDragStop: %j",A),t.setState({dragging:!1,lastX:NaN,lastY:NaN}),W&&((0,k.default)("DraggableCore: Removing handlers"),(0,E.removeEvent)(W.ownerDocument,D.move,t.handleDrag),(0,E.removeEvent)(W.ownerDocument,D.stop,t.handleDragStop))}}})),_defineProperty(_assertThisInitialized(t),"onMouseDown",(function(i){return D=A,t.handleDragStart(i)})),_defineProperty(_assertThisInitialized(t),"onMouseUp",(function(i){return D=A,t.handleDragStop(i)})),_defineProperty(_assertThisInitialized(t),"onTouchStart",(function(i){return D=T,t.handleDragStart(i)})),_defineProperty(_assertThisInitialized(t),"onTouchEnd",(function(i){return D=T,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,E.addEvent)(t,T.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.mounted=!1;var t=this.findDOMNode();if(t){var i=t.ownerDocument;(0,E.removeEvent)(i,A.move,this.handleDrag),(0,E.removeEvent)(i,T.move,this.handleDrag),(0,E.removeEvent)(i,A.stop,this.handleDragStop),(0,E.removeEvent)(i,T.stop,this.handleDragStop),(0,E.removeEvent)(t,T.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,E.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=W,_defineProperty(W,"displayName","DraggableCore"),_defineProperty(W,"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:P.dontSetMe,style:P.dontSetMe,transform:P.dontSetMe}),_defineProperty(W,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function onStart(){},onDrag:function onDrag(){},onStop:function onStop(){},onMouseDown:function onMouseDown(){},scale:1})},38230:(t,i,b)=>{"use strict";var _=b(9111),C=_.default,w=_.DraggableCore;t.exports=C,t.exports.default=C,t.exports.DraggableCore=w},32837:(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(26732),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 E=C?Object.getOwnPropertyDescriptor(t,w):null;E&&(E.get||E.set)?Object.defineProperty(_,w,E):_[w]=t[w]}_.default=t,b&&b.set(t,_);return _}(b(47350));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 E="".concat("string"==typeof i.x?i.x:i.x+b),S="".concat("string"==typeof i.y?i.y:i.y+b);w="translate(".concat(E,", ").concat(S,")")+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"),"")}},47350:(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=_},57988:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function log(){0}},10402:(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),E=findDOMNode(t);return w?{node:E,deltaX:0,deltaY:0,lastX:i,lastY:b,x:i,y:b}:{node:E,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 E=findDOMNode(t);if("string"==typeof w){var S,P=E.ownerDocument,k=P.defaultView;if(!((S="parent"===w?E.parentNode:P.querySelector(w))instanceof k.HTMLElement))throw new Error('Bounds selector "'+w+'" could not find an element.');var T=S,A=k.getComputedStyle(E),D=k.getComputedStyle(T);w={left:-E.offsetLeft+(0,_.int)(D.paddingLeft)+(0,_.int)(A.marginLeft),top:-E.offsetTop+(0,_.int)(D.paddingTop)+(0,_.int)(A.marginTop),right:(0,C.innerWidth)(T)-(0,C.outerWidth)(E)-E.offsetLeft+(0,_.int)(D.paddingRight)-(0,_.int)(A.marginRight),bottom:(0,C.innerHeight)(T)-(0,C.outerHeight)(E)-E.offsetTop+(0,_.int)(D.paddingBottom)-(0,_.int)(A.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),E=b.props.offsetParent||w.offsetParent||w.ownerDocument.body;return(0,C.offsetXYFromParent)(_||t,E,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(26732),C=b(32837);function findDOMNode(t){var i=t.findDOMNode();if(!i)throw new Error("<DraggableCore>: Unmounted during event!");return i}},26732:(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)}},2740:(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(41594),w=_interopRequireDefault(C),E=_interopRequireDefault(b(62688));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var S=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,E=(i.initialLoad,i.isReverse),S=i.loader,P=(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,P&&P(i)};var T=[b];return C&&(S?E?T.unshift(S):T.push(S):this.defaultLoader&&(E?T.unshift(this.defaultLoader):T.push(this.defaultLoader))),w.default.createElement(_,k,T)}}]),InfiniteScroll}(C.Component);S.propTypes={children:E.default.node.isRequired,element:E.default.node,hasMore:E.default.bool,initialLoad:E.default.bool,isReverse:E.default.bool,loader:E.default.node,loadMore:E.default.func.isRequired,pageStart:E.default.number,ref:E.default.func,getScrollParent:E.default.func,threshold:E.default.number,useCapture:E.default.bool,useWindow:E.default.bool},S.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=S,t.exports=i.default},30808:(t,i,b)=>{t.exports=b(2740)},38299:(t,i)=>{"use strict";var b,_=Symbol.for("react.element"),C=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),k=Symbol.for("react.context"),T=Symbol.for("react.server_context"),A=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),H=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 S:case E:case D:case W:return t;default:switch(t=t&&t.$$typeof){case T:case k:case A:case N:case q:case P:return t;default:return i}}case C:return i}}}b=Symbol.for("react.module.reference"),i.ContextConsumer=k,i.ContextProvider=P,i.Element=_,i.ForwardRef=A,i.Fragment=w,i.Lazy=N,i.Memo=q,i.Portal=C,i.Profiler=S,i.StrictMode=E,i.Suspense=D,i.SuspenseList=W,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)===P},i.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===_},i.isForwardRef=function(t){return v(t)===A},i.isFragment=function(t){return v(t)===w},i.isLazy=function(t){return v(t)===N},i.isMemo=function(t){return v(t)===q},i.isPortal=function(t){return v(t)===C},i.isProfiler=function(t){return v(t)===S},i.isStrictMode=function(t){return v(t)===E},i.isSuspense=function(t){return v(t)===D},i.isSuspenseList=function(t){return v(t)===W},i.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===w||t===S||t===E||t===D||t===W||t===H||"object"==typeof t&&null!==t&&(t.$$typeof===N||t.$$typeof===q||t.$$typeof===P||t.$$typeof===k||t.$$typeof===A||t.$$typeof===b||void 0!==t.getModuleId)},i.typeOf=v},84271:(t,i,b)=>{"use strict";t.exports=b(38299)},36159:(t,i,b)=>{"use strict";b.r(i),b.d(i,{Canvas:()=>A,ReactSketchCanvas:()=>D});var _=b(41594);function asyncGeneratorStep(t,i,b,_,C,w,E){try{var S=t[w](E),P=S.value}catch(t){return void b(t)}S.done?i(P):Promise.resolve(P).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",E=C.asyncIterator||"@@asyncIterator",S=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),E=new Context(_||[]);return w._invoke=function makeInvokeMethod(t,i,b){var _=P;return function invoke(C,w){if(_===T)throw new Error("Generator is already running");if(_===A){if("throw"===C)throw w;return doneResult()}for(b.method=C,b.arg=w;;){var E=b.delegate;if(E){var S=maybeInvokeDelegate(E,b);if(S){if(S===D)continue;return S}}if("next"===b.method)b.sent=b._sent=b.arg;else if("throw"===b.method){if(_===P)throw _=A,b.arg;b.dispatchException(b.arg)}else"return"===b.method&&b.abrupt("return",b.arg);_=T;var W=tryCatch(t,i,b);if("normal"===W.type){if(_=b.done?A:k,W.arg===D)continue;return{value:W.arg,done:b.done}}"throw"===W.type&&(_=A,b.method="throw",b.arg=W.arg)}}}(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}}}t.wrap=wrap;var P="suspendedStart",k="suspendedYield",T="executing",A="completed",D={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var W={};define(W,w,(function(){return this}));var q=Object.getPrototypeOf,N=q&&q(q(values([])));N&&N!==b&&_.call(N,w)&&(W=N);var H=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(W);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,E){var S=tryCatch(t[b],t,C);if("throw"!==S.type){var P=S.arg,k=P.value;return k&&"object"==typeof k&&_.call(k,"__await")?i.resolve(k.__await).then((function(t){invoke("next",t,w,E)}),(function(t){invoke("throw",t,w,E)})):i.resolve(k).then((function(t){P.value=t,w(P)}),(function(t){return invoke("throw",t,w,E)}))}E(S.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 D;b.method="throw",b.arg=new TypeError("The iterator does not provide a 'throw' method")}return D}var C=tryCatch(_,t.iterator,b.arg);if("throw"===C.type)return b.method="throw",b.arg=C.arg,b.delegate=null,D;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,D):w:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,D)}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,E=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 E.next=E}}return{next:doneResult}}function doneResult(){return{value:i,done:!0}}return GeneratorFunction.prototype=GeneratorFunctionPrototype,define(H,"constructor",GeneratorFunctionPrototype),define(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,S,"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,S,"GeneratorFunction")),t.prototype=Object.create(H),t},t.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,E,(function(){return this})),t.AsyncIterator=AsyncIterator,t.async=function(i,b,_,C,w){void 0===w&&(w=Promise);var E=new AsyncIterator(wrap(i,b,_,C),w);return t.isGeneratorFunction(b)?E:E.next().then((function(t){return t.done?t.value:E.next()}))},defineIteratorMethods(H),define(H,S,"Generator"),define(H,w,(function(){return this})),define(H,"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 E.type="throw",E.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],E=w.completion;if("root"===w.tryLoc)return handle("end");if(w.tryLoc<=this.prev){var S=_.call(w,"catchLoc"),P=_.call(w,"finallyLoc");if(S&&P){if(this.prev<w.catchLoc)return handle(w.catchLoc,!0);if(this.prev<w.finallyLoc)return handle(w.finallyLoc)}else if(S){if(this.prev<w.catchLoc)return handle(w.catchLoc,!0)}else{if(!P)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 E=w?w.completion:{};return E.type=t,E.arg=i,w?(this.method="next",this.next=w.finallyLoc,D):this.complete(E)},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),D},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),D}},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),D}},t}(t.exports);try{regeneratorRuntime=i}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}}(C);var w=C.exports,E=function SvgPath(t){var i=t.paths,b=t.id,C=t.strokeWidth,w=t.strokeColor,E=t.command,S=void 0===E?P:E;if(1===i.length){var k=i[0],T=k.x,A=k.y,D=C/2;return _.createElement("circle",{key:b,id:b,cx:T,cy:A,r:D,stroke:w,fill:w})}var W=i.reduce((function(t,i,b,_){return 0===b?"M "+i.x+","+i.y:t+" "+S(i,b,_)}),"");return _.createElement("path",{key:b,id:b,d:W,fill:"none",strokeLinecap:"round",stroke:w,strokeWidth:C})},S=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),E=w.angle+(C?Math.PI:0),S=.2*w.length;return[i.x+Math.cos(E)*S,i.y+Math.sin(E)*S]},P=function bezierCommand(t,i,b){var _=null,C=null;switch(i){case 0:var w=S({current:t});_=w[0],C=w[1];break;case 1:var E=S({current:b[i-1],next:t});_=E[0],C=E[1];break;default:var P=S({current:b[i-1],previous:b[i-2],next:t});_=P[0],C=P[1]}var k=S({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(E,{key:i+"__"+b,paths:t.paths,id:i+"__"+b,strokeWidth:t.strokeWidth,strokeColor:t.strokeColor,command:P})})))},T=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 A=_.forwardRef((function(t,i){var b=t.paths,C=t.isDrawing,S=t.onPointerDown,P=t.onPointerMove,A=t.onPointerUp,D=t.id,W=void 0===D?"react-sketch-canvas":D,q=t.width,N=void 0===q?"100%":q,H=t.height,U=void 0===H?"100%":H,V=t.className,G=void 0===V?"react-sketch-canvas":V,Y=t.canvasColor,K=void 0===Y?"red":Y,Z=t.backgroundImage,Q=void 0===Z?"":Z,J=t.exportWithBackgroundImage,ee=void 0!==J&&J,te=t.preserveBackgroundImageAspectRatio,ne=void 0===te?"none":te,de=t.allowOnlyPointerType,fe=void 0===de?"all":de,pe=t.style,me=void 0===pe?{border:"0.0625rem solid #9c9c9c",borderRadius:"0.25rem"}:pe,ge=t.svgStyle,ye=void 0===ge?{}:ge,ve=_.useRef(null),be=function getCoordinates(t){var i,b,_,C=null==(i=ve.current)?void 0:i.getBoundingClientRect(),w=null!=(b=window.scrollX)?b:0,E=null!=(_=window.scrollY)?_:0;return C?{x:t.pageX-C.left-w,y:t.pageY-C.top-E}:{x:0,y:0}},Ee=function handlePointerUp(t){"mouse"===t.pointerType&&0!==t.button||"all"!==fe&&t.pointerType!==fe||A()};_.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,E,S,P,k,A,D;return w.wrap((function _callee$(w){for(;;)switch(w.prev=w.next){case 0:if(w.prev=0,_=ve.current){w.next=4;break}throw Error("Canvas not rendered yet");case 4:return C=getCanvasWithViewBox(_),E=C.svgCanvas,S=C.width,P=C.height,k="data:image/svg+xml;base64,"+btoa(E.outerHTML),w.next=8,T(k);case 8:if(w.t0=w.sent,A=[w.t0],!ee){w.next=21;break}return w.prev=11,w.next=14,T(Q);case 14:D=w.sent,A.push(D),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(A).then((function(b){var _=document.createElement("canvas");_.setAttribute("width",S.toString()),_.setAttribute("height",P.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=ve.current)?b:null;if(null!==_){var C,w,E=getCanvasWithViewBox(_).svgCanvas;if(ee)return void t(E.outerHTML);null==(C=E.querySelector("#"+W+"__background"))||C.remove(),null==(w=E.querySelector("#"+W+"__canvas-background"))||w.setAttribute("fill",K),t(E.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 xe=b.filter((function(t){return!t.drawMode})),Oe=0,ke=b.reduce((function(t,i){return i.drawMode?(void 0===t[Oe]&&(t[Oe]=[]),t[Oe].push(i),t):(Oe+=1,t)}),[[]]);return _.createElement("div",{role:"presentation",ref:ve,className:G,style:_extends({touchAction:"none",width:N,height:U},me),"touch-action":"none",onPointerDown:function handlePointerDown(t){if(!("all"!==fe&&t.pointerType!==fe||"mouse"===t.pointerType&&0!==t.button)){var i=be(t);S(i)}},onPointerMove:function handlePointerMove(t){if(C&&("all"===fe||t.pointerType===fe)){var i=be(t);P(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%"},ye),id:W},_.createElement("g",{id:W+"__eraser-stroke-group",display:"none"},_.createElement("rect",{id:W+"__mask-background",x:"0",y:"0",width:"100%",height:"100%",fill:"white"}),xe.map((function(t,i){return _.createElement(E,{key:W+"__eraser-"+i,id:W+"__eraser-"+i,paths:t.paths,strokeColor:"#000000",strokeWidth:t.strokeWidth})}))),_.createElement("defs",null,Q&&_.createElement("pattern",{id:W+"__background",x:"0",y:"0",width:"100%",height:"100%",patternUnits:"userSpaceOnUse"},_.createElement("image",{x:"0",y:"0",width:"100%",height:"100%",xlinkHref:Q,preserveAspectRatio:ne})),xe.map((function(t,i){return _.createElement("mask",{id:W+"__eraser-mask-"+i,key:W+"__eraser-mask-"+i,maskUnits:"userSpaceOnUse"},_.createElement("use",{href:"#"+W+"__mask-background"}),Array.from({length:xe.length-i},(function(t,b){return b+i})).map((function(t){return _.createElement("use",{key:t.toString(),href:"#"+W+"__eraser-"+t.toString()})})))}))),_.createElement("g",{id:W+"__canvas-background-group"},_.createElement("rect",{id:W+"__canvas-background",x:"0",y:"0",width:"100%",height:"100%",fill:Q?"url(#"+W+"__background)":K})),ke.map((function(t,i){return _.createElement("g",{id:W+"__stroke-group-"+i,key:W+"__stroke-group-"+i,mask:"url(#"+W+"__eraser-mask-"+i+")"},_.createElement(k,{id:W,paths:t}))}))))})),D=_.forwardRef((function(t,i){var b=t.id,C=void 0===b?"react-sketch-canvas":b,w=t.width,E=void 0===w?"100%":w,S=t.height,P=void 0===S?"100%":S,k=t.className,T=void 0===k?"":k,D=t.canvasColor,W=void 0===D?"white":D,q=t.strokeColor,N=void 0===q?"red":q,H=t.backgroundImage,U=void 0===H?"":H,V=t.exportWithBackgroundImage,G=void 0!==V&&V,Y=t.preserveBackgroundImageAspectRatio,K=void 0===Y?"none":Y,Z=t.strokeWidth,Q=void 0===Z?4:Z,J=t.eraserWidth,ee=void 0===J?8:J,te=t.allowOnlyPointerType,ne=void 0===te?"all":te,de=t.style,fe=void 0===de?{border:"0.0625rem solid #9c9c9c",borderRadius:"0.25rem"}:de,pe=t.svgStyle,me=void 0===pe?{}:pe,ge=t.onChange,ye=void 0===ge?function(t){}:ge,ve=t.onStroke,be=void 0===ve?function(t,i){}:ve,Ee=t.withTimestamp,xe=void 0!==Ee&&Ee,Oe=_.createRef(),ke=_.useState(!0),Te=ke[0],Re=ke[1],je=_.useState(!1),Ae=je[0],Me=je[1],Le=_.useState([]),De=Le[0],We=Le[1],Be=_.useState([]),ze=Be[0],$e=Be[1],Ke=_.useState([]),Qe=Ke[0],et=Ke[1],tt=_.useCallback((function(){var t,i,b=null!=(t=null==(i=Qe.slice(-1))?void 0:i[0])?t:null;null!==b?be(b,!b.drawMode):console.warn("No stroke found!")}),[Ae]);_.useEffect((function(){tt()}),[Ae]),_.useEffect((function(){ye(Qe)}),[Qe]),_.useImperativeHandle(i,(function(){return{eraseMode:function eraseMode(t){Re(!t)},clearCanvas:function clearCanvas(){We([].concat(Qe)),et([])},undo:function undo(){if(0!==De.length)return et([].concat(De)),void We([]);$e((function(t){return[].concat(t,Qe.slice(-1))})),et((function(t){return t.slice(0,-1)}))},redo:function redo(){0!==ze.length&&(et((function(t){return[].concat(t,ze.slice(-1))})),$e((function(t){return t.slice(0,-1)})))},exportImage:function exportImage(t){var i,exportImage=null==(i=Oe.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=Oe.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(Qe)}catch(t){i(t)}}))},loadPaths:function loadPaths(t){et((function(i){return[].concat(i,t)}))},getSketchingTime:function getSketchingTime(){return new Promise((function(t,i){xe||i(new Error("Set 'withTimestamp' prop to get sketching time"));try{t(Qe.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(){We([]),$e([]),et([])}}}));return _.createElement(A,{ref:Oe,id:C,width:E,height:P,className:T,canvasColor:W,backgroundImage:U,exportWithBackgroundImage:G,preserveBackgroundImageAspectRatio:K,allowOnlyPointerType:ne,style:fe,svgStyle:me,paths:Qe,isDrawing:Ae,onPointerDown:function handlePointerDown(t){Me(!0),$e([]);var i={drawMode:Te,strokeColor:Te?N:"#000000",strokeWidth:Te?Q:ee,paths:[t]};xe&&(i=_extends({},i,{startTimestamp:Date.now(),endTimestamp:0})),et((function(t){return[].concat(t,[i])}))},onPointerMove:function handlePointerMove(t){if(Ae){var i=Qe.slice(-1)[0],b=_extends({},i,{paths:[].concat(i.paths,[t])});et((function(t){return[].concat(t.slice(0,-1),[b])}))}},onPointerUp:function handlePointerUp(){var t,i;if(Ae&&(Me(!1),xe)){var b=null!=(t=null==(i=Qe.slice(-1))?void 0:i[0])?t:null;if(null!==b){var _=_extends({},b,{endTimestamp:Date.now()});et((function(t){return[].concat(t.slice(0,-1),[_])}))}}}})}))},45317:t=>{t.exports=function shallowEqual(t,i,b,_){var C=b?b.call(_,t,i):void 0;if(void 0!==C)return!!C;if(t===i)return!0;if("object"!=typeof t||!t||"object"!=typeof i||!i)return!1;var w=Object.keys(t),E=Object.keys(i);if(w.length!==E.length)return!1;for(var S=Object.prototype.hasOwnProperty.bind(i),P=0;P<w.length;P++){var k=w[P];if(!S(k))return!1;var T=t[k],A=i[k];if(!1===(C=b?b.call(_,T,A,k):void 0)||void 0===C&&T!==A)return!1}return!0}},24120:(t,i,b)=>{var _=b(40848);function StyleToObject(t,i){var b,C=null;if(!t||"string"!=typeof t)return C;for(var w,E,S=_(t),P="function"==typeof i,k=0,T=S.length;k<T;k++)w=(b=S[k]).property,E=b.value,P?i(w,E,b):E&&(C||(C={}),C[w]=E);return C}t.exports=StyleToObject,t.exports.default=StyleToObject},79626:(t,i,b)=>{"use strict";b.r(i),b.d(i,{ServerStyleSheet:()=>Ft,StyleSheetConsumer:()=>Rt,StyleSheetContext:()=>Tt,StyleSheetManager:()=>Ye,ThemeConsumer:()=>Wt,ThemeContext:()=>Dt,ThemeProvider:()=>ot,__PRIVATE__:()=>Ht,createGlobalStyle:()=>ft,css:()=>lt,default:()=>qt,isStyledComponent:()=>se,keyframes:()=>mt,styled:()=>qt,useTheme:()=>nt,version:()=>fe,withTheme:()=>yt});var __assign=function(){return __assign=Object.assign||function __assign(t){for(var i,b=1,_=arguments.length;b<_;b++)for(var C in i=arguments[b])Object.prototype.hasOwnProperty.call(i,C)&&(t[C]=i[C]);return t},__assign.apply(this,arguments)};Object.create;function __spreadArray(t,i,b){if(b||2===arguments.length)for(var _,C=0,w=i.length;C<w;C++)!_&&C in i||(_||(_=Array.prototype.slice.call(i,0,C)),_[C]=i[C]);return t.concat(_||Array.prototype.slice.call(i))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var _=b(41594),C=b.n(_),w=b(45317),E=b.n(w),S="-ms-",P="-moz-",k="-webkit-",T="comm",A="rule",D="decl",W="@import",q="@keyframes",N="@layer",H=Math.abs,U=String.fromCharCode,V=Object.assign;function trim(t){return t.trim()}function match(t,i){return(t=i.exec(t))?t[0]:t}function replace(t,i,b){return t.replace(i,b)}function indexof(t,i,b){return t.indexOf(i,b)}function Utility_charat(t,i){return 0|t.charCodeAt(i)}function Utility_substr(t,i,b){return t.slice(i,b)}function Utility_strlen(t){return t.length}function Utility_sizeof(t){return t.length}function Utility_append(t,i){return i.push(t),t}function filter(t,i){return t.filter((function(t){return!match(t,i)}))}var G=1,Y=1,K=0,Z=0,Q=0,J="";function node(t,i,b,_,C,w,E,S){return{value:t,root:i,parent:b,type:_,props:C,children:w,line:G,column:Y,length:E,return:"",siblings:S}}function copy(t,i){return V(node("",null,null,"",null,null,0,t.siblings),t,{length:-t.length},i)}function lift(t){for(;t.root;)t=copy(t.root,{children:[t]});Utility_append(t,t.siblings)}function prev(){return Q=Z>0?Utility_charat(J,--Z):0,Y--,10===Q&&(Y=1,G--),Q}function next(){return Q=Z<K?Utility_charat(J,Z++):0,Y++,10===Q&&(Y=1,G++),Q}function peek(){return Utility_charat(J,Z)}function caret(){return Z}function slice(t,i){return Utility_substr(J,t,i)}function token(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function alloc(t){return G=Y=1,K=Utility_strlen(J=t),Z=0,[]}function dealloc(t){return J="",t}function delimit(t){return trim(slice(Z-1,delimiter(91===t?t+2:40===t?t+1:t)))}function whitespace(t){for(;(Q=peek())&&Q<33;)next();return token(t)>2||token(Q)>3?"":" "}function escaping(t,i){for(;--i&&next()&&!(Q<48||Q>102||Q>57&&Q<65||Q>70&&Q<97););return slice(t,caret()+(i<6&&32==peek()&&32==next()))}function delimiter(t){for(;next();)switch(Q){case t:return Z;case 34:case 39:34!==t&&39!==t&&delimiter(Q);break;case 40:41===t&&delimiter(t);break;case 92:next()}return Z}function commenter(t,i){for(;next()&&t+Q!==57&&(t+Q!==84||47!==peek()););return"/*"+slice(i,Z-1)+"*"+U(47===t?t:next())}function identifier(t){for(;!token(peek());)next();return slice(t,Z)}function serialize(t,i){for(var b="",_=0;_<t.length;_++)b+=i(t[_],_,t,i)||"";return b}function stringify(t,i,b,_){switch(t.type){case N:if(t.children.length)break;case W:case D:return t.return=t.return||t.value;case T:return"";case q:return t.return=t.value+"{"+serialize(t.children,_)+"}";case A:if(!Utility_strlen(t.value=t.props.join(",")))return""}return Utility_strlen(b=serialize(t.children,_))?t.return=t.value+"{"+b+"}":""}function prefix(t,i,b){switch(function hash(t,i){return 45^Utility_charat(t,0)?(((i<<2^Utility_charat(t,0))<<2^Utility_charat(t,1))<<2^Utility_charat(t,2))<<2^Utility_charat(t,3):0}(t,i)){case 5103:return k+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return k+t+t;case 4789:return P+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return k+t+P+t+S+t+t;case 5936:switch(Utility_charat(t,i+11)){case 114:return k+t+S+replace(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return k+t+S+replace(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return k+t+S+replace(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return k+t+S+t+t;case 6165:return k+t+S+"flex-"+t+t;case 5187:return k+t+replace(t,/(\w+).+(:[^]+)/,k+"box-$1$2"+S+"flex-$1$2")+t;case 5443:return k+t+S+"flex-item-"+replace(t,/flex-|-self/g,"")+(match(t,/flex-|baseline/)?"":S+"grid-row-"+replace(t,/flex-|-self/g,""))+t;case 4675:return k+t+S+"flex-line-pack"+replace(t,/align-content|flex-|-self/g,"")+t;case 5548:return k+t+S+replace(t,"shrink","negative")+t;case 5292:return k+t+S+replace(t,"basis","preferred-size")+t;case 6060:return k+"box-"+replace(t,"-grow","")+k+t+S+replace(t,"grow","positive")+t;case 4554:return k+replace(t,/([^-])(transform)/g,"$1"+k+"$2")+t;case 6187:return replace(replace(replace(t,/(zoom-|grab)/,k+"$1"),/(image-set)/,k+"$1"),t,"")+t;case 5495:case 3959:return replace(t,/(image-set\([^]*)/,k+"$1$`$1");case 4968:return replace(replace(t,/(.+:)(flex-)?(.*)/,k+"box-pack:$3"+S+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+k+t+t;case 4200:if(!match(t,/flex-|baseline/))return S+"grid-column-align"+Utility_substr(t,i)+t;break;case 2592:case 3360:return S+replace(t,"template-","")+t;case 4384:case 3616:return b&&b.some((function(t,b){return i=b,match(t.props,/grid-\w+-end/)}))?~indexof(t+(b=b[i].value),"span",0)?t:S+replace(t,"-start","")+t+S+"grid-row-span:"+(~indexof(b,"span",0)?match(b,/\d+/):+match(b,/\d+/)-+match(t,/\d+/))+";":S+replace(t,"-start","")+t;case 4896:case 4128:return b&&b.some((function(t){return match(t.props,/grid-\w+-start/)}))?t:S+replace(replace(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return replace(t,/(.+)-inline(.+)/,k+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Utility_strlen(t)-1-i>6)switch(Utility_charat(t,i+1)){case 109:if(45!==Utility_charat(t,i+4))break;case 102:return replace(t,/(.+:)(.+)-([^]+)/,"$1"+k+"$2-$3$1"+P+(108==Utility_charat(t,i+3)?"$3":"$2-$3"))+t;case 115:return~indexof(t,"stretch",0)?prefix(replace(t,"stretch","fill-available"),i,b)+t:t}break;case 5152:case 5920:return replace(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(i,b,_,C,w,E,P){return S+b+":"+_+P+(C?S+b+"-span:"+(w?E:+E-+_)+P:"")+t}));case 4949:if(121===Utility_charat(t,i+6))return replace(t,":",":"+k)+t;break;case 6444:switch(Utility_charat(t,45===Utility_charat(t,14)?18:11)){case 120:return replace(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+k+(45===Utility_charat(t,14)?"inline-":"")+"box$3$1"+k+"$2$3$1"+S+"$2box$3")+t;case 100:return replace(t,":",":"+S)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return replace(t,"scroll-","scroll-snap-")+t}return t}function prefixer(t,i,b,_){if(t.length>-1&&!t.return)switch(t.type){case D:return void(t.return=prefix(t.value,t.length,b));case q:return serialize([copy(t,{value:replace(t.value,"@","@"+k)})],_);case A:if(t.length)return function Utility_combine(t,i){return t.map(i).join("")}(b=t.props,(function(i){switch(match(i,_=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":lift(copy(t,{props:[replace(i,/:(read-\w+)/,":"+P+"$1")]})),lift(copy(t,{props:[i]})),V(t,{props:filter(b,_)});break;case"::placeholder":lift(copy(t,{props:[replace(i,/:(plac\w+)/,":"+k+"input-$1")]})),lift(copy(t,{props:[replace(i,/:(plac\w+)/,":"+P+"$1")]})),lift(copy(t,{props:[replace(i,/:(plac\w+)/,S+"input-$1")]})),lift(copy(t,{props:[i]})),V(t,{props:filter(b,_)})}return""}))}}function compile(t){return dealloc(parse("",null,null,null,[""],t=alloc(t),0,[0],t))}function parse(t,i,b,_,C,w,E,S,P){for(var k=0,T=0,A=E,D=0,W=0,q=0,N=1,V=1,G=1,Y=0,K="",Z=C,Q=w,J=_,ee=K;V;)switch(q=Y,Y=next()){case 40:if(108!=q&&58==Utility_charat(ee,A-1)){-1!=indexof(ee+=replace(delimit(Y),"&","&\f"),"&\f",H(k?S[k-1]:0))&&(G=-1);break}case 34:case 39:case 91:ee+=delimit(Y);break;case 9:case 10:case 13:case 32:ee+=whitespace(q);break;case 92:ee+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:Utility_append(comment(commenter(next(),caret()),i,b,P),P);break;default:ee+="/"}break;case 123*N:S[k++]=Utility_strlen(ee)*G;case 125*N:case 59:case 0:switch(Y){case 0:case 125:V=0;case 59+T:-1==G&&(ee=replace(ee,/\f/g,"")),W>0&&Utility_strlen(ee)-A&&Utility_append(W>32?declaration(ee+";",_,b,A-1,P):declaration(replace(ee," ","")+";",_,b,A-2,P),P);break;case 59:ee+=";";default:if(Utility_append(J=ruleset(ee,i,b,k,T,C,S,K,Z=[],Q=[],A,w),w),123===Y)if(0===T)parse(ee,i,J,J,Z,w,A,S,Q);else switch(99===D&&110===Utility_charat(ee,3)?100:D){case 100:case 108:case 109:case 115:parse(t,J,J,_&&Utility_append(ruleset(t,J,J,0,0,C,S,K,C,Z=[],A,Q),Q),C,Q,A,S,_?Z:Q);break;default:parse(ee,J,J,J,[""],Q,0,S,Q)}}k=T=W=0,N=G=1,K=ee="",A=E;break;case 58:A=1+Utility_strlen(ee),W=q;default:if(N<1)if(123==Y)--N;else if(125==Y&&0==N++&&125==prev())continue;switch(ee+=U(Y),Y*N){case 38:G=T>0?1:(ee+="\f",-1);break;case 44:S[k++]=(Utility_strlen(ee)-1)*G,G=1;break;case 64:45===peek()&&(ee+=delimit(next())),D=peek(),T=A=Utility_strlen(K=ee+=identifier(caret())),Y++;break;case 45:45===q&&2==Utility_strlen(ee)&&(N=0)}}return w}function ruleset(t,i,b,_,C,w,E,S,P,k,T,D){for(var W=C-1,q=0===C?w:[""],N=Utility_sizeof(q),U=0,V=0,G=0;U<_;++U)for(var Y=0,K=Utility_substr(t,W+1,W=H(V=E[U])),Z=t;Y<N;++Y)(Z=trim(V>0?q[Y]+" "+K:replace(K,/&\f/g,q[Y])))&&(P[G++]=Z);return node(t,i,b,0===C?A:S,P,k,T,D)}function comment(t,i,b,_){return node(t,i,b,T,U(function Tokenizer_char(){return Q}()),Utility_substr(t,2,-2),0,_)}function declaration(t,i,b,_,C){return node(t,i,b,D,Utility_substr(t,0,_),Utility_substr(t,_+1,-1),_,C)}var ee={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},te="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ne="active",de="data-styled-version",fe="6.1.13",pe="/*!sc*/\n",me="undefined"!=typeof window&&"HTMLElement"in window,ge=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),ye={},ve=(new Set,Object.freeze([])),be=Object.freeze({});function I(t,i,b){return void 0===b&&(b=be),t.theme!==b.theme&&t.theme||i||b.theme}var Ee=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),xe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Oe=/(^-|-$)/g;function R(t){return t.replace(xe,"-").replace(Oe,"")}var ke=/(a)(d)/gi,Te=52,j=function(t){return String.fromCharCode(t+(t>25?39:97))};function x(t){var i,b="";for(i=Math.abs(t);i>Te;i=i/Te|0)b=j(i%Te)+b;return(j(i%Te)+b).replace(ke,"$1-$2")}var Re,je=5381,M=function(t,i){for(var b=i.length;b;)t=33*t^i.charCodeAt(--b);return t},z=function(t){return M(je,t)};function $(t){return x(z(t)>>>0)}function B(t){return t.displayName||t.name||"Component"}function L(t){return"string"==typeof t&&!0}var Ae="function"==typeof Symbol&&Symbol.for,Me=Ae?Symbol.for("react.memo"):60115,Le=Ae?Symbol.for("react.forward_ref"):60112,De={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},We={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Be={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ze=((Re={})[Le]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Re[Me]=Be,Re);function X(t){return("type"in(i=t)&&i.type.$$typeof)===Me?Be:"$$typeof"in t?ze[t.$$typeof]:De;var i}var $e=Object.defineProperty,Ke=Object.getOwnPropertyNames,Qe=Object.getOwnPropertySymbols,et=Object.getOwnPropertyDescriptor,tt=Object.getPrototypeOf,rt=Object.prototype;function oe(t,i,b){if("string"!=typeof i){if(rt){var _=tt(i);_&&_!==rt&&oe(t,_,b)}var C=Ke(i);Qe&&(C=C.concat(Qe(i)));for(var w=X(t),E=X(i),S=0;S<C.length;++S){var P=C[S];if(!(P in We||b&&b[P]||E&&P in E||w&&P in w)){var k=et(i,P);try{$e(t,P,k)}catch(t){}}}}return t}function re(t){return"function"==typeof t}function se(t){return"object"==typeof t&&"styledComponentId"in t}function ie(t,i){return t&&i?"".concat(t," ").concat(i):t||i||""}function ae(t,i){if(0===t.length)return"";for(var b=t[0],_=1;_<t.length;_++)b+=i?i+t[_]:t[_];return b}function ce(t){return null!==t&&"object"==typeof t&&t.constructor.name===Object.name&&!("props"in t&&t.$$typeof)}function le(t,i,b){if(void 0===b&&(b=!1),!b&&!ce(t)&&!Array.isArray(t))return i;if(Array.isArray(i))for(var _=0;_<i.length;_++)t[_]=le(t[_],i[_]);else if(ce(i))for(var _ in i)t[_]=le(t[_],i[_]);return t}function ue(t,i){Object.defineProperty(t,"toString",{value:i})}function he(t){for(var i=[],b=1;b<arguments.length;b++)i[b-1]=arguments[b];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(i.length>0?" Args: ".concat(i.join(", ")):""))}var st=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var i=0,b=0;b<t;b++)i+=this.groupSizes[b];return i},e.prototype.insertRules=function(t,i){if(t>=this.groupSizes.length){for(var b=this.groupSizes,_=b.length,C=_;t>=C;)if((C<<=1)<0)throw he(16,"".concat(t));this.groupSizes=new Uint32Array(C),this.groupSizes.set(b),this.length=C;for(var w=_;w<C;w++)this.groupSizes[w]=0}for(var E=this.indexOfGroup(t+1),S=(w=0,i.length);w<S;w++)this.tag.insertRule(E,i[w])&&(this.groupSizes[t]++,E++)},e.prototype.clearGroup=function(t){if(t<this.length){var i=this.groupSizes[t],b=this.indexOfGroup(t),_=b+i;this.groupSizes[t]=0;for(var C=b;C<_;C++)this.tag.deleteRule(b)}},e.prototype.getGroup=function(t){var i="";if(t>=this.length||0===this.groupSizes[t])return i;for(var b=this.groupSizes[t],_=this.indexOfGroup(t),C=_+b,w=_;w<C;w++)i+="".concat(this.tag.getRule(w)).concat(pe);return i},e}(),dt=new Map,ht=new Map,gt=1,Se=function(t){if(dt.has(t))return dt.get(t);for(;ht.has(gt);)gt++;var i=gt++;return dt.set(t,i),ht.set(i,t),i},we=function(t,i){gt=i+1,dt.set(t,i),ht.set(i,t)},vt="style[".concat(te,"][").concat(de,'="').concat(fe,'"]'),bt=new RegExp("^".concat(te,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ne=function(t,i,b){for(var _,C=b.split(","),w=0,E=C.length;w<E;w++)(_=C[w])&&t.registerName(i,_)},Pe=function(t,i){for(var b,_=(null!==(b=i.textContent)&&void 0!==b?b:"").split(pe),C=[],w=0,E=_.length;w<E;w++){var S=_[w].trim();if(S){var P=S.match(bt);if(P){var k=0|parseInt(P[1],10),T=P[2];0!==k&&(we(T,k),Ne(t,T,P[3]),t.getTag().insertRules(k,C)),C.length=0}else C.push(S)}}},_e=function(t){for(var i=document.querySelectorAll(vt),b=0,_=i.length;b<_;b++){var C=i[b];C&&C.getAttribute(te)!==ne&&(Pe(t,C),C.parentNode&&C.parentNode.removeChild(C))}};function Ce(){return b.nc}var Ie=function(t){var i=document.head,b=t||i,_=document.createElement("style"),C=function(t){var i=Array.from(t.querySelectorAll("style[".concat(te,"]")));return i[i.length-1]}(b),w=void 0!==C?C.nextSibling:null;_.setAttribute(te,ne),_.setAttribute(de,fe);var E=Ce();return E&&_.setAttribute("nonce",E),b.insertBefore(_,w),_},_t=function(){function e(t){this.element=Ie(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(t){if(t.sheet)return t.sheet;for(var i=document.styleSheets,b=0,_=i.length;b<_;b++){var C=i[b];if(C.ownerNode===t)return C}throw he(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,i){try{return this.sheet.insertRule(i,t),this.length++,!0}catch(t){return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var i=this.sheet.cssRules[t];return i&&i.cssText?i.cssText:""},e}(),Ct=function(){function e(t){this.element=Ie(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,i){if(t<=this.length&&t>=0){var b=document.createTextNode(i);return this.element.insertBefore(b,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),wt=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,i){return t<=this.length&&(this.rules.splice(t,0,i),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Et=me,xt={isServer:!me,useCSSOMInjection:!ge},Ot=function(){function e(t,i,b){void 0===t&&(t=be),void 0===i&&(i={});var _=this;this.options=__assign(__assign({},xt),t),this.gs=i,this.names=new Map(b),this.server=!!t.isServer,!this.server&&me&&Et&&(Et=!1,_e(this)),ue(this,(function(){return function(t){for(var i=t.getTag(),b=i.length,_="",r=function(b){var C=function(t){return ht.get(t)}(b);if(void 0===C)return"continue";var w=t.names.get(C),E=i.getGroup(b);if(void 0===w||!w.size||0===E.length)return"continue";var S="".concat(te,".g").concat(b,'[id="').concat(C,'"]'),P="";void 0!==w&&w.forEach((function(t){t.length>0&&(P+="".concat(t,","))})),_+="".concat(E).concat(S,'{content:"').concat(P,'"}').concat(pe)},C=0;C<b;C++)r(C);return _}(_)}))}return e.registerId=function(t){return Se(t)},e.prototype.rehydrate=function(){!this.server&&me&&_e(this)},e.prototype.reconstructWithOptions=function(t,i){return void 0===i&&(i=!0),new e(__assign(__assign({},this.options),t),this.gs,i&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(t){var i=t.useCSSOMInjection,b=t.target;return t.isServer?new wt(b):i?new _t(b):new Ct(b)}(this.options),new st(t)));var t},e.prototype.hasNameForId=function(t,i){return this.names.has(t)&&this.names.get(t).has(i)},e.prototype.registerName=function(t,i){if(Se(t),this.names.has(t))this.names.get(t).add(i);else{var b=new Set;b.add(i),this.names.set(t,b)}},e.prototype.insertRules=function(t,i,b){this.registerName(t,i),this.getTag().insertRules(Se(t),b)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Se(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),St=/&/g,Pt=/^\s*\/\/.*$/gm;function Ve(t,i){return t.map((function(t){return"rule"===t.type&&(t.value="".concat(i," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(i," ")),t.props=t.props.map((function(t){return"".concat(i," ").concat(t)}))),Array.isArray(t.children)&&"@keyframes"!==t.type&&(t.children=Ve(t.children,i)),t}))}function Fe(t){var i,b,_,C=void 0===t?be:t,w=C.options,E=void 0===w?be:w,S=C.plugins,P=void 0===S?ve:S,l=function(t,_,C){return C.startsWith(b)&&C.endsWith(b)&&C.replaceAll(b,"").length>0?".".concat(i):t},k=P.slice();k.push((function(t){t.type===A&&t.value.includes("&")&&(t.props[0]=t.props[0].replace(St,b).replace(_,l))})),E.prefix&&k.push(prefixer),k.push(stringify);var p=function(t,C,w,S){void 0===C&&(C=""),void 0===w&&(w=""),void 0===S&&(S="&"),i=S,b=C,_=new RegExp("\\".concat(b,"\\b"),"g");var P=t.replace(Pt,""),T=compile(w||C?"".concat(w," ").concat(C," { ").concat(P," }"):P);E.namespace&&(T=Ve(T,E.namespace));var A=[];return serialize(T,function middleware(t){var i=Utility_sizeof(t);return function(b,_,C,w){for(var E="",S=0;S<i;S++)E+=t[S](b,_,C,w)||"";return E}}(k.concat(function rulesheet(t){return function(i){i.root||(i=i.return)&&t(i)}}((function(t){return A.push(t)}))))),A};return p.hash=P.length?P.reduce((function(t,i){return i.name||he(15),M(t,i.name)}),je).toString():"",p}var kt=new Ot,It=Fe(),Tt=C().createContext({shouldForwardProp:void 0,styleSheet:kt,stylis:It}),Rt=Tt.Consumer,jt=C().createContext(void 0);function Ge(){return(0,_.useContext)(Tt)}function Ye(t){var i=(0,_.useState)(t.stylisPlugins),b=i[0],w=i[1],S=Ge().styleSheet,P=(0,_.useMemo)((function(){var i=S;return t.sheet?i=t.sheet:t.target&&(i=i.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(i=i.reconstructWithOptions({useCSSOMInjection:!1})),i}),[t.disableCSSOMInjection,t.sheet,t.target,S]),k=(0,_.useMemo)((function(){return Fe({options:{namespace:t.namespace,prefix:t.enableVendorPrefixes},plugins:b})}),[t.enableVendorPrefixes,t.namespace,b]);(0,_.useEffect)((function(){E()(b,t.stylisPlugins)||w(t.stylisPlugins)}),[t.stylisPlugins]);var T=(0,_.useMemo)((function(){return{shouldForwardProp:t.shouldForwardProp,styleSheet:P,stylis:k}}),[t.shouldForwardProp,P,k]);return C().createElement(Tt.Provider,{value:T},C().createElement(jt.Provider,{value:k},t.children))}var At=function(){function e(t,i){var b=this;this.inject=function(t,i){void 0===i&&(i=It);var _=b.name+i.hash;t.hasNameForId(b.id,_)||t.insertRules(b.id,_,i(b.rules,_,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=i,ue(this,(function(){throw he(12,String(b.name))}))}return e.prototype.getName=function(t){return void 0===t&&(t=It),this.name+t.hash},e}(),qe=function(t){return t>="A"&&t<="Z"};function He(t){for(var i="",b=0;b<t.length;b++){var _=t[b];if(1===b&&"-"===_&&"-"===t[0])return t;qe(_)?i+="-"+_.toLowerCase():i+=_}return i.startsWith("ms-")?"-"+i:i}var Ue=function(t){return null==t||!1===t||""===t},Je=function(t){var i,b,_=[];for(var C in t){var w=t[C];t.hasOwnProperty(C)&&!Ue(w)&&(Array.isArray(w)&&w.isCss||re(w)?_.push("".concat(He(C),":"),w,";"):ce(w)?_.push.apply(_,__spreadArray(__spreadArray(["".concat(C," {")],Je(w),!1),["}"],!1)):_.push("".concat(He(C),": ").concat((i=C,null==(b=w)||"boolean"==typeof b||""===b?"":"number"!=typeof b||0===b||i in ee||i.startsWith("--")?String(b).trim():"".concat(b,"px")),";")))}return _};function Xe(t,i,b,_){return Ue(t)?[]:se(t)?[".".concat(t.styledComponentId)]:re(t)?!re(C=t)||C.prototype&&C.prototype.isReactComponent||!i?[t]:Xe(t(i),i,b,_):t instanceof At?b?(t.inject(b,_),[t.getName(_)]):[t]:ce(t)?Je(t):Array.isArray(t)?Array.prototype.concat.apply(ve,t.map((function(t){return Xe(t,i,b,_)}))):[t.toString()];var C}function Ze(t){for(var i=0;i<t.length;i+=1){var b=t[i];if(re(b)&&!se(b))return!1}return!0}var Mt=z(fe),Lt=function(){function e(t,i,b){this.rules=t,this.staticRulesId="",this.isStatic=(void 0===b||b.isStatic)&&Ze(t),this.componentId=i,this.baseHash=M(Mt,i),this.baseStyle=b,Ot.registerId(i)}return e.prototype.generateAndInjectStyles=function(t,i,b){var _=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,i,b):"";if(this.isStatic&&!b.hash)if(this.staticRulesId&&i.hasNameForId(this.componentId,this.staticRulesId))_=ie(_,this.staticRulesId);else{var C=ae(Xe(this.rules,t,i,b)),w=x(M(this.baseHash,C)>>>0);if(!i.hasNameForId(this.componentId,w)){var E=b(C,".".concat(w),void 0,this.componentId);i.insertRules(this.componentId,w,E)}_=ie(_,w),this.staticRulesId=w}else{for(var S=M(this.baseHash,b.hash),P="",k=0;k<this.rules.length;k++){var T=this.rules[k];if("string"==typeof T)P+=T;else if(T){var A=ae(Xe(T,t,i,b));S=M(S,A+k),P+=A}}if(P){var D=x(S>>>0);i.hasNameForId(this.componentId,D)||i.insertRules(this.componentId,D,b(P,".".concat(D),void 0,this.componentId)),_=ie(_,D)}}return _},e}(),Dt=C().createContext(void 0),Wt=Dt.Consumer;function nt(){var t=(0,_.useContext)(Dt);if(!t)throw he(18);return t}function ot(t){var i=C().useContext(Dt),b=(0,_.useMemo)((function(){return function(t,i){if(!t)throw he(14);if(re(t))return t(i);if(Array.isArray(t)||"object"!=typeof t)throw he(8);return i?__assign(__assign({},i),t):t}(t.theme,i)}),[t.theme,i]);return t.children?C().createElement(Dt.Provider,{value:b},t.children):null}var Bt={};new Set;function it(t,i,b){var w=se(t),E=t,S=!L(t),P=i.attrs,k=void 0===P?ve:P,T=i.componentId,A=void 0===T?function(t,i){var b="string"!=typeof t?"sc":R(t);Bt[b]=(Bt[b]||0)+1;var _="".concat(b,"-").concat($(fe+b+Bt[b]));return i?"".concat(i,"-").concat(_):_}(i.displayName,i.parentComponentId):T,D=i.displayName,W=void 0===D?function(t){return L(t)?"styled.".concat(t):"Styled(".concat(B(t),")")}(t):D,q=i.displayName&&i.componentId?"".concat(R(i.displayName),"-").concat(i.componentId):i.componentId||A,N=w&&E.attrs?E.attrs.concat(k).filter(Boolean):k,H=i.shouldForwardProp;if(w&&E.shouldForwardProp){var U=E.shouldForwardProp;if(i.shouldForwardProp){var V=i.shouldForwardProp;H=function(t,i){return U(t,i)&&V(t,i)}}else H=U}var G=new Lt(b,q,w?E.componentStyle:void 0);function O(t,i){return function(t,i,b){var w=t.attrs,E=t.componentStyle,S=t.defaultProps,P=t.foldedComponentIds,k=t.styledComponentId,T=t.target,A=C().useContext(Dt),D=Ge(),W=t.shouldForwardProp||D.shouldForwardProp,q=I(i,A,S)||be,N=function(t,i,b){for(var _,C=__assign(__assign({},i),{className:void 0,theme:b}),w=0;w<t.length;w+=1){var E=re(_=t[w])?_(C):_;for(var S in E)C[S]="className"===S?ie(C[S],E[S]):"style"===S?__assign(__assign({},C[S]),E[S]):E[S]}return i.className&&(C.className=ie(C.className,i.className)),C}(w,i,q),H=N.as||T,U={};for(var V in N)void 0===N[V]||"$"===V[0]||"as"===V||"theme"===V&&N.theme===q||("forwardedAs"===V?U.as=N.forwardedAs:W&&!W(V,H)||(U[V]=N[V]));var G=function(t,i){var b=Ge();return t.generateAndInjectStyles(i,b.styleSheet,b.stylis)}(E,N),Y=ie(P,k);return G&&(Y+=" "+G),N.className&&(Y+=" "+N.className),U[L(H)&&!Ee.has(H)?"class":"className"]=Y,U.ref=b,(0,_.createElement)(H,U)}(Y,t,i)}O.displayName=W;var Y=C().forwardRef(O);return Y.attrs=N,Y.componentStyle=G,Y.displayName=W,Y.shouldForwardProp=H,Y.foldedComponentIds=w?ie(E.foldedComponentIds,E.styledComponentId):"",Y.styledComponentId=q,Y.target=w?E.target:t,Object.defineProperty(Y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=w?function(t){for(var i=[],b=1;b<arguments.length;b++)i[b-1]=arguments[b];for(var _=0,C=i;_<C.length;_++)le(t,C[_],!0);return t}({},E.defaultProps,t):t}}),ue(Y,(function(){return".".concat(Y.styledComponentId)})),S&&oe(Y,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),Y}function at(t,i){for(var b=[t[0]],_=0,C=i.length;_<C;_+=1)b.push(i[_],t[_+1]);return b}var ct=function(t){return Object.assign(t,{isCss:!0})};function lt(t){for(var i=[],b=1;b<arguments.length;b++)i[b-1]=arguments[b];if(re(t)||ce(t))return ct(Xe(at(ve,__spreadArray([t],i,!0))));var _=t;return 0===i.length&&1===_.length&&"string"==typeof _[0]?Xe(_):ct(Xe(at(_,i)))}function ut(t,i,b){if(void 0===b&&(b=be),!i)throw he(1,i);var s=function(_){for(var C=[],w=1;w<arguments.length;w++)C[w-1]=arguments[w];return t(i,b,lt.apply(void 0,__spreadArray([_],C,!1)))};return s.attrs=function(_){return ut(t,i,__assign(__assign({},b),{attrs:Array.prototype.concat(b.attrs,_).filter(Boolean)}))},s.withConfig=function(_){return ut(t,i,__assign(__assign({},b),_))},s}var pt=function(t){return ut(it,t)},qt=pt;Ee.forEach((function(t){qt[t]=pt(t)}));var Nt=function(){function e(t,i){this.rules=t,this.componentId=i,this.isStatic=Ze(t),Ot.registerId(this.componentId+1)}return e.prototype.createStyles=function(t,i,b,_){var C=_(ae(Xe(this.rules,i,b,_)),""),w=this.componentId+t;b.insertRules(w,w,C)},e.prototype.removeStyles=function(t,i){i.clearRules(this.componentId+t)},e.prototype.renderStyles=function(t,i,b,_){t>2&&Ot.registerId(this.componentId+t),this.removeStyles(t,b),this.createStyles(t,i,b,_)},e}();function ft(t){for(var i=[],b=1;b<arguments.length;b++)i[b-1]=arguments[b];var _=lt.apply(void 0,__spreadArray([t],i,!1)),w="sc-global-".concat($(JSON.stringify(_))),E=new Nt(_,w),l=function(t){var i=Ge(),b=C().useContext(Dt),_=C().useRef(i.styleSheet.allocateGSInstance(w)).current;return i.styleSheet.server&&u(_,t,i.styleSheet,b,i.stylis),C().useLayoutEffect((function(){if(!i.styleSheet.server)return u(_,t,i.styleSheet,b,i.stylis),function(){return E.removeStyles(_,i.styleSheet)}}),[_,t,i.styleSheet,b,i.stylis]),null};function u(t,i,b,_,C){if(E.isStatic)E.renderStyles(t,ye,b,C);else{var w=__assign(__assign({},i),{theme:I(i,_,l.defaultProps)});E.renderStyles(t,w,b,C)}}return C().memo(l)}function mt(t){for(var i=[],b=1;b<arguments.length;b++)i[b-1]=arguments[b];var _=ae(lt.apply(void 0,__spreadArray([t],i,!1))),C=$(_);return new At(C,_)}function yt(t){var i=C().forwardRef((function(i,b){var _=I(i,C().useContext(Dt),t.defaultProps);return C().createElement(t,__assign({},i,{theme:_,ref:b}))}));return i.displayName="WithTheme(".concat(B(t),")"),oe(i,t)}var Ft=function(){function e(){var t=this;this._emitSheetCSS=function(){var i=t.instance.toString();if(!i)return"";var b=Ce(),_=ae([b&&'nonce="'.concat(b,'"'),"".concat(te,'="true"'),"".concat(de,'="').concat(fe,'"')].filter(Boolean)," ");return"<style ".concat(_,">").concat(i,"</style>")},this.getStyleTags=function(){if(t.sealed)throw he(2);return t._emitSheetCSS()},this.getStyleElement=function(){var i;if(t.sealed)throw he(2);var b=t.instance.toString();if(!b)return[];var _=((i={})[te]="",i[de]=fe,i.dangerouslySetInnerHTML={__html:b},i),w=Ce();return w&&(_.nonce=w),[C().createElement("style",__assign({},_,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new Ot({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(t){if(this.sealed)throw he(2);return C().createElement(Ye,{sheet:this.instance},t)},e.prototype.interleaveWithNodeStream=function(t){throw he(3)},e}(),Ht={StyleSheet:Ot,mainSheet:kt};"__sc-".concat(te,"__")},21806:(t,i,b)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function isFQDN(t,i){(0,_.default)(t),(i=(0,C.default)(i,w)).allow_trailing_dot&&"."===t[t.length-1]&&(t=t.substring(0,t.length-1));!0===i.allow_wildcard&&0===t.indexOf("*.")&&(t=t.substring(2));var b=t.split("."),E=b[b.length-1];if(i.require_tld){if(b.length<2)return!1;if(!i.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(E))return!1;if(/\s/.test(E))return!1}if(!i.allow_numeric_tld&&/^\d+$/.test(E))return!1;return b.every((function(t){return!(t.length>63&&!i.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(t)&&(!/[\uff01-\uff5e]/.test(t)&&(!/^-|-$/.test(t)&&!(!i.allow_underscores&&/_/.test(t)))))}))};var _=_interopRequireDefault(b(93443)),C=_interopRequireDefault(b(41398));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var w={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};t.exports=i.default,t.exports.default=i.default},14744:(t,i,b)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function isIP(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,_.default)(t),!(i=String(i)))return isIP(t,4)||isIP(t,6);if("4"===i)return E.test(t);if("6"===i)return P.test(t);return!1};var _=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(b(93443));var C="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",w="(".concat(C,"[.]){3}").concat(C),E=new RegExp("^".concat(w,"$")),S="(?:[0-9a-fA-F]{1,4})",P=new RegExp("^("+"(?:".concat(S,":){7}(?:").concat(S,"|:)|")+"(?:".concat(S,":){6}(?:").concat(w,"|:").concat(S,"|:)|")+"(?:".concat(S,":){5}(?::").concat(w,"|(:").concat(S,"){1,2}|:)|")+"(?:".concat(S,":){4}(?:(:").concat(S,"){0,1}:").concat(w,"|(:").concat(S,"){1,3}|:)|")+"(?:".concat(S,":){3}(?:(:").concat(S,"){0,2}:").concat(w,"|(:").concat(S,"){1,4}|:)|")+"(?:".concat(S,":){2}(?:(:").concat(S,"){0,3}:").concat(w,"|(:").concat(S,"){1,5}|:)|")+"(?:".concat(S,":){1}(?:(:").concat(S,"){0,4}:").concat(w,"|(:").concat(S,"){1,6}|:)|")+"(?::((?::".concat(S,"){0,5}:").concat(w,"|(?::").concat(S,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");t.exports=i.default,t.exports.default=i.default},94760:(t,i,b)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function isURL(t,i){if((0,_.default)(t),!t||/[\s<>]/.test(t))return!1;if(0===t.indexOf("mailto:"))return!1;if((i=(0,E.default)(i,S)).validate_length&&t.length>=2083)return!1;if(!i.allow_fragments&&t.includes("#"))return!1;if(!i.allow_query_components&&(t.includes("?")||t.includes("&")))return!1;var b,k,T,A,D,W,q,N;if(q=t.split("#"),t=q.shift(),q=t.split("?"),t=q.shift(),(q=t.split("://")).length>1){if(b=q.shift().toLowerCase(),i.require_valid_protocol&&-1===i.protocols.indexOf(b))return!1}else{if(i.require_protocol)return!1;if("//"===t.slice(0,2)){if(!i.allow_protocol_relative_urls)return!1;q[0]=t.slice(2)}}if(""===(t=q.join("://")))return!1;if(q=t.split("/"),""===(t=q.shift())&&!i.require_host)return!0;if((q=t.split("@")).length>1){if(i.disallow_auth)return!1;if(""===q[0])return!1;if((k=q.shift()).indexOf(":")>=0&&k.split(":").length>2)return!1;var H=function _slicedToArray(t,i){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var b=[],_=!0,C=!1,w=void 0;try{for(var E,S=t[Symbol.iterator]();!(_=(E=S.next()).done)&&(b.push(E.value),!i||b.length!==i);_=!0);}catch(t){C=!0,w=t}finally{try{_||null==S.return||S.return()}finally{if(C)throw w}}return b}(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.")}()}(k.split(":"),2),U=H[0],V=H[1];if(""===U&&""===V)return!1}A=q.join("@"),W=null,N=null;var G=A.match(P);G?(T="",N=G[1],W=G[2]||null):(T=(q=A.split(":")).shift(),q.length&&(W=q.join(":")));if(null!==W&&W.length>0){if(D=parseInt(W,10),!/^[0-9]+$/.test(W)||D<=0||D>65535)return!1}else if(i.require_port)return!1;if(i.host_whitelist)return checkHost(T,i.host_whitelist);if(""===T&&!i.require_host)return!0;if(!((0,w.default)(T)||(0,C.default)(T,i)||N&&(0,w.default)(N,6)))return!1;if(T=T||N,i.host_blacklist&&checkHost(T,i.host_blacklist))return!1;return!0};var _=_interopRequireDefault(b(93443)),C=_interopRequireDefault(b(21806)),w=_interopRequireDefault(b(14744)),E=_interopRequireDefault(b(41398));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}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 S={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},P=/^\[([^\]]+)\](?::([0-9]+))?$/;function checkHost(t,i){for(var b=0;b<i.length;b++){var _=i[b];if(t===_||(C=_,"[object RegExp]"===Object.prototype.toString.call(C)&&_.test(t)))return!0}var C;return!1}t.exports=i.default,t.exports.default=i.default},93443:(t,i)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(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=function assertString(t){if(!("string"==typeof t||t instanceof String)){var i=_typeof(t);throw null===t?i="null":"object"===i&&(i=t.constructor.name),new TypeError("Expected a string but received a ".concat(i))}},t.exports=i.default,t.exports.default=i.default},41398:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function merge(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;for(var b in i)void 0===t[b]&&(t[b]=i[b]);return t},t.exports=i.default,t.exports.default=i.default},41594:t=>{"use strict";t.exports=React},75206:t=>{"use strict";t.exports=ReactDOM},44048:t=>{"use strict";t.exports=elementorV2.icons},86956:t=>{"use strict";t.exports=elementorV2.ui},3767:t=>{"use strict";t.exports=elementorV2.ui.TextField},12470:t=>{"use strict";t.exports=wp.i18n},78113:t=>{t.exports=function _arrayLikeToArray(t,i){(null==i||i>t.length)&&(i=t.length);for(var b=0,_=Array(i);b<i;b++)_[b]=t[b];return _},t.exports.__esModule=!0,t.exports.default=t.exports},70569:t=>{t.exports=function _arrayWithHoles(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},91819:(t,i,b)=>{var _=b(78113);t.exports=function _arrayWithoutHoles(t){if(Array.isArray(t))return _(t)},t.exports.__esModule=!0,t.exports.default=t.exports},36417: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},58155:t=>{function asyncGeneratorStep(t,i,b,_,C,w,E){try{var S=t[w](E),P=S.value}catch(t){return void b(t)}S.done?i(P):Promise.resolve(P).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},39805: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},40989:(t,i,b)=>{var _=b(45498);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},85707:(t,i,b)=>{var _=b(45498);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},78304: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)({}).hasOwnProperty.call(b,_)&&(t[_]=b[_])}return t},t.exports.__esModule=!0,t.exports.default=t.exports,_extends.apply(null,arguments)}t.exports=_extends,t.exports.__esModule=!0,t.exports.default=t.exports},29402:t=>{function _getPrototypeOf(i){return t.exports=_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(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},87861:(t,i,b)=>{var _=b(91270);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},96784:t=>{t.exports=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},20365: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},65474: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,E,S=[],P=!0,k=!1;try{if(w=(b=b.call(t)).next,0===i){if(Object(b)!==b)return;P=!1}else for(;!(P=(_=w.call(b)).done)&&(S.push(_.value),S.length!==i);P=!0);}catch(t){k=!0,C=t}finally{try{if(!P&&null!=b.return&&(E=b.return(),Object(E)!==E))return}finally{if(k)throw C}}return S}},t.exports.__esModule=!0,t.exports.default=t.exports},11018: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},78687: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},40453:(t,i,b)=>{var _=b(10739);t.exports=function _objectWithoutProperties(t,i){if(null==t)return{};var b,C,w=_(t,i);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(t);for(C=0;C<E.length;C++)b=E[C],i.includes(b)||{}.propertyIsEnumerable.call(t,b)&&(w[b]=t[b])}return w},t.exports.__esModule=!0,t.exports.default=t.exports},10739:t=>{t.exports=function _objectWithoutPropertiesLoose(t,i){if(null==t)return{};var b={};for(var _ in t)if({}.hasOwnProperty.call(t,_)){if(i.includes(_))continue;b[_]=t[_]}return b},t.exports.__esModule=!0,t.exports.default=t.exports},15118:(t,i,b)=>{var _=b(10564).default,C=b(36417);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},53051:(t,i,b)=>{var _=b(10564).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,E=Object.defineProperty||function(t,i,b){t[i]=b.value},S="function"==typeof Symbol?Symbol:{},P=S.iterator||"@@iterator",k=S.asyncIterator||"@@asyncIterator",T=S.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),S=new Context(_||[]);return E(w,"_invoke",{value:makeInvokeMethod(t,b,S)}),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 A="suspendedStart",D="suspendedYield",W="executing",q="completed",N={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var H={};define(H,P,(function(){return this}));var U=Object.getPrototypeOf,V=U&&U(U(values([])));V&&V!==C&&w.call(V,P)&&(H=V);var G=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(H);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,E,S){var P=tryCatch(t[b],t,C);if("throw"!==P.type){var k=P.arg,T=k.value;return T&&"object"==_(T)&&w.call(T,"__await")?i.resolve(T.__await).then((function(t){invoke("next",t,E,S)}),(function(t){invoke("throw",t,E,S)})):i.resolve(T).then((function(t){k.value=t,E(k)}),(function(t){return invoke("throw",t,E,S)}))}S(P.arg)}var b;E(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=A;return function(w,E){if(C===W)throw Error("Generator is already running");if(C===q){if("throw"===w)throw E;return{value:i,done:!0}}for(_.method=w,_.arg=E;;){var S=_.delegate;if(S){var P=maybeInvokeDelegate(S,_);if(P){if(P===N)continue;return P}}if("next"===_.method)_.sent=_._sent=_.arg;else if("throw"===_.method){if(C===A)throw C=q,_.arg;_.dispatchException(_.arg)}else"return"===_.method&&_.abrupt("return",_.arg);C=W;var k=tryCatch(t,b,_);if("normal"===k.type){if(C=_.done?q:D,k.arg===N)continue;return{value:k.arg,done:_.done}}"throw"===k.type&&(C=q,_.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")),N;var w=tryCatch(C,t.iterator,b.arg);if("throw"===w.type)return b.method="throw",b.arg=w.arg,b.delegate=null,N;var E=w.arg;return E?E.done?(b[t.resultName]=E.value,b.next=t.nextLoc,"return"!==b.method&&(b.method="next",b.arg=i),b.delegate=null,N):E:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,N)}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[P];if(b)return b.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var C=-1,E=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 E.next=E}}throw new TypeError(_(t)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,E(G,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),E(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,T,"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,T,"GeneratorFunction")),t.prototype=Object.create(G),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 E=new AsyncIterator(wrap(t,i,_,C),w);return b.isGeneratorFunction(i)?E:E.next().then((function(t){return t.done?t.value:E.next()}))},defineIteratorMethods(G),define(G,T,"Generator"),define(G,P,(function(){return this})),define(G,"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 E.type="throw",E.arg=t,b.next=_,C&&(b.method="next",b.arg=i),!!C}for(var _=this.tryEntries.length-1;_>=0;--_){var C=this.tryEntries[_],E=C.completion;if("root"===C.tryLoc)return handle("end");if(C.tryLoc<=this.prev){var S=w.call(C,"catchLoc"),P=w.call(C,"finallyLoc");if(S&&P){if(this.prev<C.catchLoc)return handle(C.catchLoc,!0);if(this.prev<C.finallyLoc)return handle(C.finallyLoc)}else if(S){if(this.prev<C.catchLoc)return handle(C.catchLoc,!0)}else{if(!P)throw 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 E=C?C.completion:{};return E.type=t,E.arg=i,C?(this.method="next",this.next=C.finallyLoc,N):this.complete(E)},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),N},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),N}},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 Error("illegal catch attempt")},delegateYield:function delegateYield(t,b,_){return this.delegate={iterator:values(t),resultName:b,nextLoc:_},"next"===this.method&&(this.arg=i),N}},b}t.exports=_regeneratorRuntime,t.exports.__esModule=!0,t.exports.default=t.exports},91270:t=>{function _setPrototypeOf(i,b){return t.exports=_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(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},18821:(t,i,b)=>{var _=b(70569),C=b(65474),w=b(37744),E=b(11018);t.exports=function _slicedToArray(t,i){return _(t)||C(t,i)||w(t,i)||E()},t.exports.__esModule=!0,t.exports.default=t.exports},98832: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},10906:(t,i,b)=>{var _=b(91819),C=b(20365),w=b(37744),E=b(78687);t.exports=function _toConsumableArray(t){return _(t)||C(t)||w(t)||E()},t.exports.__esModule=!0,t.exports.default=t.exports},11327:(t,i,b)=>{var _=b(10564).default;t.exports=function toPrimitive(t,i){if("object"!=_(t)||!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},45498:(t,i,b)=>{var _=b(10564).default,C=b(11327);t.exports=function toPropertyKey(t){var i=C(t,"string");return"symbol"==_(i)?i:i+""},t.exports.__esModule=!0,t.exports.default=t.exports},10564: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},37744:(t,i,b)=>{var _=b(78113);t.exports=function _unsupportedIterableToArray(t,i){if(t){if("string"==typeof t)return _(t,i);var b={}.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},61790:(t,i,b)=>{var _=b(53051)();t.exports=_;try{regeneratorRuntime=_}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=_:Function("r","regeneratorRuntime = r")(_)}},41764:(t,i,b)=>{"use strict";b.r(i),b.d(i,{default:()=>ReactMarkdown,uriTransformer:()=>uriTransformer});var _={};b.r(_),b.d(_,{attentionMarkers:()=>jt,contentInitial:()=>St,disable:()=>At,document:()=>Ot,flow:()=>kt,flowInitial:()=>Pt,insideSpan:()=>Rt,string:()=>It,text:()=>Tt});var C={};b.r(C),b.d(C,{boolean:()=>Gt,booleanish:()=>$t,commaOrSpaceSeparated:()=>Qt,commaSeparated:()=>Xt,number:()=>Kt,overloadedBoolean:()=>Yt,spaceSeparated:()=>Zt});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 E=b(41594),S=b(27634);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 P={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 E=-1,S=i.length-1;for(;w--;)if(47===t.charCodeAt(w)){if(b){_=w+1;break}}else E<0&&(b=!0,E=w+1),S>-1&&(t.charCodeAt(w)===i.charCodeAt(S--)?S<0&&(C=w):(S=-1,C=E));_===C?C=E: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,E=0;for(;b--;){const S=t.charCodeAt(b);if(47!==S)_<0&&(i=!0,_=b+1),46===S?w<0?w=b:1!==E&&(E=1):w>-1&&(E=-1);else if(i){C=b+1;break}}if(w<0||_<0||0===E||1===E&&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,E=-1,S=0,P=-1;for(;++P<=t.length;){if(P<t.length)b=t.charCodeAt(P);else{if(47===b)break;b=47}if(47===b){if(E===P-1||1===S);else if(E!==P-1&&2===S){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("/")),E=P,S=0;continue}}else if(C.length>0){C="",w=0,E=P,S=0;continue}i&&(C=C.length>0?C+"/..":"..",w=2)}else C.length>0?C+="/"+t.slice(E+1,P):C=t.slice(E+1,P),w=P-E-1;E=P,S=0}else 46===b&&S>-1?S++:S=-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 T=["history","path","basename","stem","extname","dirname"];class VFile{constructor(t){let i;i=t?"string"==typeof t||function buffer(t){return S(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(;++_<T.length;){const t=T[_];t in i&&void 0!==i[t]&&null!==i[t]&&(this[t]="history"===t?[...i[t]]:i[t])}for(b in i)T.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?P.dirname(this.path):void 0}set dirname(t){lib_assertPath(this.basename,"dirname"),this.path=P.join(t||"",this.basename)}get basename(){return"string"==typeof this.path?P.basename(this.path):void 0}set basename(t){assertNonEmpty(t,"basename"),assertPart(t,"basename"),this.path=P.join(this.dirname||"",t)}get extname(){return"string"==typeof this.path?P.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=P.join(this.dirname,this.stem+(t||""))}get stem(){return"string"==typeof this.path?P.basename(this.path,this.extname):void 0}set stem(t){assertNonEmpty(t,"stem"),assertPart(t,"stem"),this.path=P.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(P.sep))throw new Error("`"+i+"` cannot be a path: did not expect `"+P.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 A=b(49909);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 E=t[++b];let S=-1;if(C)_(C);else{for(;++S<i.length;)null!==w[S]&&void 0!==w[S]||(w[S]=i[S]);i=w,E?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)}}(E,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 D=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):W.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=A(!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,E){b=b||i,t?w(t):C?C(b):_(null,b,E)}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||S(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(A(!0,{},_)),t}}().freeze(),W={}.hasOwnProperty;function newable(t,i){return"function"==typeof t&&t.prototype&&(function keys(t){let i;for(i in t)if(W.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 q={};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,E=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);E<_.length;)w=_.slice(E,E+1e4),w.unshift(i,0),t.splice(...w),E+=1e4,i+=1e4}function push(t,i){return t.length>0?(splice(t,t.length,0,i),t):i}const N={}.hasOwnProperty;function syntaxExtension(t,i){let b;for(b in i){const _=(N.call(t,b)?t[b]:void 0)||(t[b]={}),C=i[b];let w;if(C)for(w in C){N.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 H=regexCheck(/[A-Za-z]/),U=regexCheck(/[\dA-Za-z]/),V=regexCheck(/[#-'*+\--9=?A-Z^-~]/);function asciiControl(t){return null!==t&&(t<32||127===t)}const G=regexCheck(/\d/),Y=regexCheck(/[\dA-Fa-f]/),K=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 Z=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]/),Q=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 J={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 ee={tokenize:function initializeDocument(t){const i=this,b=[];let _,C,w,E=0;return start;function start(_){if(E<b.length){const C=b[E];return i.containerState=C[1],t.attempt(C[0].continuation,documentContinue,checkNewContainers)(_)}return checkNewContainers(_)}function documentContinue(t){if(E++,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(E);let S=b;for(;S<i.events.length;)i.events[S][1].end=Object.assign({},C),S++;return splice(i.events,w+1,0,i.events.slice(b)),i.events.length=S,checkNewContainers(t)}return start(t)}function checkNewContainers(C){if(E===b.length){if(!_)return documentContinued(C);if(_.currentConstruct&&_.currentConstruct.concrete)return flowStart(C);i.interrupt=Boolean(_.currentConstruct&&!_._gfmTableDynamicInterruptHack)}return i.containerState={},t.check(te,thereIsANewContainer,thereIsNoNewContainer)(C)}function thereIsANewContainer(t){return _&&closeFlow(),exitContainers(E),documentContinued(t)}function thereIsNoNewContainer(t){return i.parser.lazy[i.now().line]=E!==b.length,w=i.now().offset,flowStart(t)}function documentContinued(b){return i.containerState={},t.attempt(te,containerContinue,flowStart)(b)}function containerContinue(t){return E++,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")),E=0,i.interrupt=void 0,start):(t.consume(b),flowContinue)}function writeToChild(t,b){const S=i.sliceStream(t);if(b&&S.push(null),t.previous=C,C&&(C.next=t),C=t,_.defineSkip(t.start),_.write(S),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,S,P=b;for(;P--;)if("exit"===i.events[P][0]&&"chunkFlow"===i.events[P][1].type){if(C){S=i.events[P][1].end;break}C=!0}for(exitContainers(E),t=b;t<i.events.length;)i.events[t][1].end=Object.assign({},S),t++;splice(i.events,P+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}}},te={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 ne={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,E,S,P,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&&(S=b[1]._tokenizer.events,C=0,C<S.length&&"lineEndingBlank"===S[C][1].type&&(C+=2),C<S.length&&"content"===S[C][1].type))for(;++C<S.length&&"content"!==S[C][1].type;)"chunkText"===S[C][1].type&&(S[C][1]._isInFirstContentOfListItem=!0,C++);if("enter"===b[0])b[1].contentType&&(Object.assign(i,subcontent(t,k)),k=i[k],P=!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),E=t.slice(_,k),E.unshift(b),splice(t,_,k-_+1,E))}}return!P}function subcontent(t,i){const b=t[i][1],_=t[i][2];let C=i-1;const w=[],E=b._tokenizer||_.parser[b.contentType](b.start),S=E.events,P=[],k={};let T,A,D=-1,W=b,q=0,N=0;const H=[N];for(;W;){for(;t[++C][1]!==W;);w.push(C),W._tokenizer||(T=_.sliceStream(W),W.next||T.push(null),A&&E.defineSkip(W.start),W._isInFirstContentOfListItem&&(E._gfmTasklistFirstContentOfListItem=!0),E.write(T),W._isInFirstContentOfListItem&&(E._gfmTasklistFirstContentOfListItem=void 0)),A=W,W=W.next}for(W=b;++D<S.length;)"exit"===S[D][0]&&"enter"===S[D-1][0]&&S[D][1].type===S[D-1][1].type&&S[D][1].start.line!==S[D][1].end.line&&(N=D+1,H.push(N),W._tokenizer=void 0,W.previous=void 0,W=W.next);for(E.events=[],W?(W._tokenizer=void 0,W.previous=void 0):H.pop(),D=H.length;D--;){const i=S.slice(H[D],H[D+1]),b=w.pop();P.unshift([b,b+i.length-1]),splice(t,b,2,i)}for(D=-1;++D<P.length;)k[q+P[D][0]]=q+P[D][1],q+=P[D][1]-P[D][0]-1;return k}const de={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(fe,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}},fe={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 pe={tokenize:function initializeFlow(t){const i=this,b=t.attempt(ne,(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(de,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 me={resolveAll:createResolver()},ge=initializeFactory("string"),ye=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,E=C.length,S=-1,P=0;for(;E--;){const t=C[E];if("string"==typeof t){for(S=t.length;32===t.charCodeAt(S-1);)P++,S--;if(S)break;S=-1}else if(-2===t)w=!0,P++;else if(-1!==t){E++;break}}if(P){const C={type:b===t.length||w||P<2?"lineSuffix":"hardBreakTrailing",start:{line:_.end.line,column:_.end.column-P,offset:_.end.offset-P,_index:_.start._index+E,_bufferIndex:E?S:_.start._bufferIndex+S},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 E=[],S=[],P=!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===E[_._index].length&&(_._bufferIndex=-1,_._index++));T.previous=t,P=!0},enter:function enter(t,i){const b=i||{};return b.type=t,b.start=now(),T.events.push(["enter",b,T]),S.push(b),b},exit:function exit(t){const i=S.pop();return i.end=now(),T.events.push(["exit",i,T]),i},attempt:constructFactory((function onsuccessfulconstruct(t,i){addResult(t,i.from)})),check:constructFactory(onsuccessfulcheck),interrupt:constructFactory(onsuccessfulcheck,{interrupt:!0})},T={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 E;if("string"==typeof w)E=w;else switch(w){case-5:E="\r";break;case-4:E="\n";break;case-3:E="\r\n";break;case-2:E=i?" ":"\t";break;case-1:if(!i&&C)continue;E=" ";break;default:E=String.fromCharCode(w)}C=-2===w,_.push(E)}return _.join("")}(sliceStream(t),i)},now,defineSkip:function defineSkip(t){C[t.line]=t.column,accountForPotentialSkip()},write:function write(t){if(E=push(E,t),main(),null!==E[E.length-1])return[];return addResult(i,0),T.events=resolveAll(w,T.events,T),T.events}};let A,D=i.tokenize.call(T,k);return i.resolveAll&&w.push(i),T;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 E;if(b===C)E=[t[b].slice(_,w)];else{if(E=t.slice(b,C),_>-1){const t=E[0];"string"==typeof t?E[0]=t.slice(_):E.shift()}w>0&&E.push(t[C].slice(0,w))}return E}(E,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<E.length;){const i=E[_._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){P=void 0,A=t,D=D(t)}function onsuccessfulcheck(t,i){i.restore()}function constructFactory(t,i){return function hook(b,C,w){let E,A,D,W;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 E=t,A=0,0===t.length?w:handleConstruct(t[A])}function handleConstruct(t){return function start(b){W=function store(){const t=now(),i=T.previous,b=T.currentConstruct,C=T.events.length,w=Array.from(S);return{restore,from:C};function restore(){_=t,T.previous=i,T.currentConstruct=b,T.events.length=C,S=w,accountForPotentialSkip()}}(),D=t,t.partial||(T.currentConstruct=t);if(t.name&&T.parser.constructs.disable.null.includes(t.name))return nok(b);return t.tokenize.call(i?Object.assign(Object.create(T),i):T,k,ok,nok)(b)}}function ok(i){return P=!0,t(D,W),C}function nok(t){return P=!0,W.restore(),++A<E.length?handleConstruct(E[A]):w}}}function addResult(t,i){t.resolveAll&&!w.includes(t)&&w.push(t),t.resolve&&splice(T.events,i,T.events.length-i,t.resolve(T.events.slice(i),T)),t.resolveTo&&(T.events=t.resolveTo(T.events,T))}function accountForPotentialSkip(){_.line in C&&_.column<2&&(_.column=C[_.line],_.offset+=C[_.line]-1)}}const ve={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 be={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,E=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:G(i)){if(_.containerState.type||(_.containerState.type=C,t.enter(C,{_container:!0})),"listUnordered"===C)return t.enter("listItemPrefix"),42===i||45===i?t.check(ve,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 G(i)&&++E<10?(t.consume(i),inside):(!_.interrupt||E<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(ne,_.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(ne,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(xe,i,notInCurrentItem)(b))}function notInCurrentItem(C){return _.containerState._closeFlow=!0,_.interrupt=void 0,factorySpace(t,t.attempt(be,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},xe={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 Oe={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(Oe,i,b)(_)}}},exit:function exit(t){t.exit("blockQuote")}};function factoryDestination(t,i,b,_,C,w,E,S,P){const k=P||Number.POSITIVE_INFINITY;let T=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(E),t.enter(S),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(S),t.enter("chunkString",{contentType:"string"}),enclosed(b))}function enclosed(i){return 62===i?(t.exit("chunkString"),t.exit(S),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 T||null!==C&&41!==C&&!markdownLineEndingOrSpace(C)?T<k&&40===C?(t.consume(C),T++,raw):41===C?(t.consume(C),T--,raw):null===C||32===C||40===C||asciiControl(C)?b(C):(t.consume(C),92===C?rawEscape:raw):(t.exit("chunkString"),t.exit(S),t.exit(E),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 E=this;let S,P=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 P>999||null===k||91===k||93===k&&!S||94===k&&!P&&"_hiddenFootnoteSupport"in E.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)||P++>999?(t.exit("chunkString"),atBreak(i)):(t.consume(i),S||(S=!markdownSpace(i)),92===i?labelEscape:labelInside)}function labelEscape(i){return 91===i||92===i||93===i?(t.consume(i),P++,labelInside):labelInside(i)}}function factoryTitle(t,i,b,_,C,w){let E;return function start(i){if(34===i||39===i||40===i)return t.enter(_),t.enter(C),t.consume(i),t.exit(C),E=40===i?41:i,begin;return b(i)};function begin(b){return b===E?(t.enter(C),t.consume(b),t.exit(C),t.exit(_),i):(t.enter(w),atBreak(b))}function atBreak(i){return i===E?(t.exit(w),begin(E)):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===E||null===i||markdownLineEnding(i)?(t.exit("chunkString"),atBreak(i)):(t.consume(i),92===i?escape:inside)}function escape(i){return i===E||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 ke={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(Te,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)}}},Te={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 Re={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(je,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)}}},je={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 Ae={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 Me={name:"setextUnderline",tokenize:function tokenizeSetextUnderline(t,i,b){const _=this;let C;return function start(i){let w,E=_.events.length;for(;E--;)if("lineEnding"!==_.events[E][1].type&&"linePrefix"!==_.events[E][1].type&&"content"!==_.events[E][1].type){w="paragraph"===_.events[E][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 E={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",E,i]),t.splice(C+1,0,["exit",t[b][1],i]),t[b][1].end=Object.assign({},t[C][1].end)):t[b][1]=E;return t.push(["exit",E,i]),t}};const Le=["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"],De=["pre","script","style","textarea"],We={name:"htmlFlow",tokenize:function tokenizeHtmlFlow(t,i,b){const _=this;let C,w,E,S,P;return function start(i){return function before(i){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(i),open}(i)};function open(S){return 33===S?(t.consume(S),declarationOpen):47===S?(t.consume(S),w=!0,tagCloseStart):63===S?(t.consume(S),C=3,_.interrupt?i:continuationDeclarationInside):H(S)?(t.consume(S),E=String.fromCharCode(S),tagName):b(S)}function declarationOpen(w){return 45===w?(t.consume(w),C=2,commentOpenInside):91===w?(t.consume(w),C=5,S=0,cdataOpenInside):H(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(S++)?(t.consume(C),6===S?_.interrupt?i:continuation:cdataOpenInside):b(C)}function tagCloseStart(i){return H(i)?(t.consume(i),E=String.fromCharCode(i),tagName):b(i)}function tagName(S){if(null===S||47===S||62===S||markdownLineEndingOrSpace(S)){const P=47===S,k=E.toLowerCase();return P||w||!De.includes(k)?Le.includes(E.toLowerCase())?(C=6,P?(t.consume(S),basicSelfClosing):_.interrupt?i(S):continuation(S)):(C=7,_.interrupt&&!_.parser.lazy[_.now().line]?b(S):w?completeClosingTagAfter(S):completeAttributeNameBefore(S)):(C=1,_.interrupt?i(S):continuation(S))}return 45===S||U(S)?(t.consume(S),E+=String.fromCharCode(S),tagName):b(S)}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||H(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||U(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),P=i,completeAttributeValueQuoted):markdownSpace(i)?(t.consume(i),completeAttributeValueBefore):completeAttributeValueUnquoted(i)}function completeAttributeValueQuoted(i){return i===P?(t.consume(i),P=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(Be,continuationAfter,continuationStart)(i))}function continuationStart(i){return t.check(ze,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),E="",continuationRawEndTag):continuation(i)}function continuationRawEndTag(i){if(62===i){const b=E.toLowerCase();return De.includes(b)?(t.consume(i),continuationClose):continuation(i)}return H(i)&&E.length<8?(t.consume(i),E+=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},Be={tokenize:function tokenizeBlankLineBefore(t,i,b){return function start(_){return t.enter("lineEnding"),t.consume(_),t.exit("lineEnding"),t.attempt(ne,i,b)}},partial:!0},ze={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 $e={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},Ke={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>=S?(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,E=0,S=0;return function start(i){return function beforeSequenceOpen(i){const b=_.events[_.events.length-1];return E=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?(S++,t.consume(i),sequenceOpen):S<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($e,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 E>0&&markdownSpace(i)?factorySpace(t,beforeContentChunk,"linePrefix",E+1)(i):beforeContentChunk(i)}function beforeContentChunk(i){return null===i||markdownLineEnding(i)?t.check($e,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 Qe=document.createElement("i");function decodeNamedCharacterReference(t){const i="&"+t+";";Qe.innerHTML=i;const b=Qe.textContent;return(59!==b.charCodeAt(b.length-1)||"semi"===t)&&(b!==i&&b)}const et={name:"characterReference",tokenize:function tokenizeCharacterReference(t,i,b){const _=this;let C,w,E=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=U,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=Y,value):(t.enter("characterReferenceValue"),C=7,w=G,value(i))}function value(S){if(59===S&&E){const C=t.exit("characterReferenceValue");return w!==U||decodeNamedCharacterReference(_.sliceSerialize(C))?(t.enter("characterReferenceMarker"),t.consume(S),t.exit("characterReferenceMarker"),t.exit("characterReference"),i):b(S)}return w(S)&&E++<C?(t.consume(S),value):b(S)}}};const tt={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 K(_)?(t.enter("characterEscapeValue"),t.consume(_),t.exit("characterEscapeValue"),t.exit("characterEscape"),i):b(_)}}};const rt={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 st={name:"labelEnd",tokenize:function tokenizeLabelEnd(t,i,b){const _=this;let C,w,E=_.events.length;for(;E--;)if(("labelImage"===_.events[E][1].type||"labelLink"===_.events[E][1].type)&&!_.events[E][1]._balanced){C=_.events[E][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(dt,labelEndOk,w?labelEndOk:labelEndNok)(i):91===i?t.attempt(ht,labelEndOk,w?referenceNotFull:labelEndNok)(i):w?labelEndOk(i):labelEndNok(i)}function referenceNotFull(i){return t.attempt(gt,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,E=t.length,S=0;for(;E--;)if(b=t[E][1],_){if("link"===b.type||"labelLink"===b.type&&b._inactive)break;"enter"===t[E][0]&&"labelLink"===b.type&&(b._inactive=!0)}else if(C){if("enter"===t[E][0]&&("labelImage"===b.type||"labelLink"===b.type)&&!b._balanced&&(_=E,"labelLink"!==b.type)){S=2;break}}else"labelEnd"===b.type&&(C=E);const P={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)},T={type:"labelText",start:Object.assign({},t[_+S+2][1].end),end:Object.assign({},t[C-2][1].start)};return w=[["enter",P,i],["enter",k,i]],w=push(w,t.slice(_+1,_+S+3)),w=push(w,[["enter",T,i]]),w=push(w,resolveAll(i.parser.constructs.insideSpan.null,t.slice(_+S+4,C-3),i)),w=push(w,[["exit",T,i],t[C-2],t[C-1],["exit",k,i]]),w=push(w,t.slice(C+1)),w=push(w,[["exit",P,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}},dt={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(_)}}},ht={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)}}},gt={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 vt={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:st.resolveAll};function classifyCharacter(t){return null===t||markdownLineEndingOrSpace(t)||Q(t)?1:Z(t)?2:void 0}const bt={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(E){if(E===w)return t.consume(E),inside;const S=t.exit("attentionSequence"),P=classifyCharacter(E),k=!P||2===P&&C||b.includes(E),T=!C||2===C&&P||b.includes(_);return S._open=Boolean(42===w?k:k&&(C||!T)),S._close=Boolean(42===w?T:T&&(P||!k)),i(E)}},resolveAll:function resolveAllAttention(t,i){let b,_,C,w,E,S,P,k,T=-1;for(;++T<t.length;)if("enter"===t[T][0]&&"attentionSequence"===t[T][1].type&&t[T][1]._close)for(b=T;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[T][1]).charCodeAt(0)){if((t[b][1]._close||t[T][1]._open)&&(t[T][1].end.offset-t[T][1].start.offset)%3&&!((t[b][1].end.offset-t[b][1].start.offset+t[T][1].end.offset-t[T][1].start.offset)%3))continue;S=t[b][1].end.offset-t[b][1].start.offset>1&&t[T][1].end.offset-t[T][1].start.offset>1?2:1;const A=Object.assign({},t[b][1].end),D=Object.assign({},t[T][1].start);movePoint(A,-S),movePoint(D,S),w={type:S>1?"strongSequence":"emphasisSequence",start:A,end:Object.assign({},t[b][1].end)},E={type:S>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[T][1].start),end:D},C={type:S>1?"strongText":"emphasisText",start:Object.assign({},t[b][1].end),end:Object.assign({},t[T][1].start)},_={type:S>1?"strong":"emphasis",start:Object.assign({},w.start),end:Object.assign({},E.end)},t[b][1].end=Object.assign({},w.start),t[T][1].start=Object.assign({},E.end),P=[],t[b][1].end.offset-t[b][1].start.offset&&(P=push(P,[["enter",t[b][1],i],["exit",t[b][1],i]])),P=push(P,[["enter",_,i],["enter",w,i],["exit",w,i],["enter",C,i]]),P=push(P,resolveAll(i.parser.constructs.insideSpan.null,t.slice(b+1,T),i)),P=push(P,[["exit",C,i],["enter",E,i],["exit",E,i],["exit",_,i]]),t[T][1].end.offset-t[T][1].start.offset?(k=2,P=push(P,[["enter",t[T][1],i],["exit",t[T][1],i]])):k=0,splice(t,b-1,T-b+3,P),T=b+P.length-k-2;break}T=-1;for(;++T<t.length;)"attentionSequence"===t[T][1].type&&(t[T][1].type="data");return t}};function movePoint(t,i){t.column+=i,t.offset+=i,t._bufferIndex+=i}const _t={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 H(i)?(t.consume(i),schemeOrEmailAtext):emailAtext(i)}function schemeOrEmailAtext(t){return 43===t||45===t||46===t||U(t)?(_=1,schemeInsideOrEmailAtext(t)):emailAtext(t)}function schemeInsideOrEmailAtext(i){return 58===i?(t.consume(i),_=0,urlInside):(43===i||45===i||46===i||U(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):V(i)?(t.consume(i),emailAtext):b(i)}function emailAtSignOrDot(t){return U(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||U(i))&&_++<63){const b=45===i?emailValue:emailLabel;return t.consume(i),b}return b(i)}}};const Ct={name:"htmlText",tokenize:function tokenizeHtmlText(t,i,b){const _=this;let C,w,E;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):H(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):H(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)?(E=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)?(E=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)?(E=declaration,lineEndingBefore(i)):(t.consume(i),declaration)}function instruction(i){return null===i?b(i):63===i?(t.consume(i),instructionClose):markdownLineEnding(i)?(E=instruction,lineEndingBefore(i)):(t.consume(i),instruction)}function instructionClose(t){return 62===t?end(t):instruction(t)}function tagCloseStart(i){return H(i)?(t.consume(i),tagClose):b(i)}function tagClose(i){return 45===i||U(i)?(t.consume(i),tagClose):tagCloseBetween(i)}function tagCloseBetween(i){return markdownLineEnding(i)?(E=tagCloseBetween,lineEndingBefore(i)):markdownSpace(i)?(t.consume(i),tagCloseBetween):end(i)}function tagOpen(i){return 45===i||U(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||H(i)?(t.consume(i),tagOpenAttributeName):markdownLineEnding(i)?(E=tagOpenBetween,lineEndingBefore(i)):markdownSpace(i)?(t.consume(i),tagOpenBetween):end(i)}function tagOpenAttributeName(i){return 45===i||46===i||58===i||95===i||U(i)?(t.consume(i),tagOpenAttributeName):tagOpenAttributeNameAfter(i)}function tagOpenAttributeNameAfter(i){return 61===i?(t.consume(i),tagOpenAttributeValueBefore):markdownLineEnding(i)?(E=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)?(E=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)?(E=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"),E(i)}}};const wt={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:st.resolveAll};const Et={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 xt={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 Ot={42:be,43:be,45:be,48:be,49:be,50:be,51:be,52:be,53:be,54:be,55:be,56:be,57:be,62:Oe},St={91:ke},Pt={[-2]:Re,[-1]:Re,32:Re},kt={35:Ae,42:ve,45:[Me,ve],60:We,61:Me,95:ve,96:Ke,126:Ke},It={38:et,92:tt},Tt={[-5]:rt,[-4]:rt,[-3]:rt,33:vt,38:et,42:bt,60:[_t,Ct],91:wt,92:[Et,tt],93:st,95:bt,96:xt},Rt={null:[bt,me]},jt={null:[42,95]},At={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(J),document:create(ee),flow:create(pe),string:create(ge),text:create(ye)};return b;function create(t){return function creator(i){return createTokenizer(b,t,i)}}}const Mt=/[\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&~b)||65534==(65535&b)||b>1114111?"":String.fromCharCode(b)}const Lt=/\\([!-/:-@[-`{-~])|&(#(?:\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 Dt={}.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]];Dt.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,E,S=i-1,P=-1,k=!1;for(;++S<=b;){const i=t[S];if("listUnordered"===i[1].type||"listOrdered"===i[1].type||"blockQuote"===i[1].type?("enter"===i[0]?P++:P--,E=void 0):"lineEndingBlank"===i[1].type?"enter"===i[0]&&(!_||E||P||w||(w=S),E=void 0):"linePrefix"===i[1].type||"listItemValue"===i[1].type||"listItemMarker"===i[1].type||"listItemPrefix"===i[1].type||"listItemPrefixWhitespace"===i[1].type||(E=void 0),!P&&"enter"===i[0]&&"listItemPrefix"===i[1].type||-1===P&&"exit"===i[0]&&("listUnordered"===i[1].type||"listOrdered"===i[1].type)){if(_){let E=S;for(C=void 0;E--;){const i=t[E];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=E}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||S,0,["exit",_,i[2]]),S++,b++}"listItemPrefix"===i[1].type&&(_={type:"listItem",_spread:!1,start:Object.assign({},i[1].start),end:void 0},t.splice(S,0,["enter",_,i[2]]),S++,b++,w=void 0,E=!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})+"): it’s 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||q;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(Lt,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,E){const S=[];let P,k,T,A,D;for(C=b+C.toString(w),T=0,b="",_&&(65279===C.charCodeAt(0)&&T++,_=void 0);T<C.length;){if(Mt.lastIndex=T,P=Mt.exec(C),A=P&&void 0!==P.index?P.index:C.length,D=C.charCodeAt(A),!P){b=C.slice(T);break}if(10===D&&T===A&&t)S.push(-3),t=void 0;else switch(t&&(S.push(-5),t=void 0),T<A&&(S.push(C.slice(T,A)),i+=A-T),D){case 0:S.push(65533),i++;break;case 9:for(k=4*Math.ceil(i/4),S.push(-2);i++<k;)S.push(-1);break;case 10:S.push(-4),i=1;break;default:t=!0,i=1}T=A+1}return E&&(t&&S.push(-5),b&&S.push(b),S.push(null)),S}}()(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(Dt.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 E="";if(37===w&&U(t.charCodeAt(b+1))&&U(t.charCodeAt(b+2)))C=2;else if(w<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(w))||(E=String.fromCharCode(w));else if(w>55295&&w<57344){const i=t.charCodeAt(b+1);w<56320&&i>56319&&i<57344?(E=String.fromCharCode(w,i),C=1):E=""}else E=String.fromCharCode(w);E&&(i.push(t.slice(_,b),encodeURIComponent(E)),_=b+C+1,E=""),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 Wt=!0,Bt=!1,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,E,S){const P=t&&"object"==typeof t?t:{};if("string"==typeof P.type){const i="string"==typeof P.tagName?P.tagName:"string"==typeof P.name?P.name:void 0;Object.defineProperty(visit,"name",{value:"node ("+t.type+(i?"<"+i+">":"")+")"})}return visit;function visit(){let P,k,T,A=[];if((!i||C(t,E,S[S.length-1]||null))&&(A=function toResult(t){if(Array.isArray(t))return t;if("number"==typeof t)return[Wt,t];return[t]}(b(t,S)),A[0]===Bt))return A;if(t.children&&"skip"!==A[0])for(k=(_?t.children.length:-1)+w,T=S.concat(t);k>-1&&k<t.children.length;){if(P=factory(t.children[k],k,T)(),P[0]===Bt)return P;k="number"==typeof P[1]?P[1]:k+w}return A}}(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,_)}),_)},qt=unist_util_position_lib_point("start"),Nt=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 Ft={}.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 E=t.footnoteCounts[b],S={type:"element",tagName:"a",properties:{href:"#"+t.clobberPrefix+"fn-"+_,id:t.clobberPrefix+"fnref-"+_+(E>1?"-"+E:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(w)}]};t.patch(i,S);const P={type:"element",tagName:"sup",properties:{},children:[S]};return t.patch(i,P),t.applyData(i,P)}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 E=C[C.length-1];return E&&"text"===E.type?E.value+=_:C.push({type:"text",value:_}),C}function listItemLoose(t){const i=t.spread;return null==i?t.children.length>1:i}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(;9===i||32===i;)_++,i=t.codePointAt(_)}if(b){let i=t.codePointAt(C-1);for(;9===i||32===i;)C--,i=t.codePointAt(C-1)}return C>_?t.slice(_,C):""}const Ht={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={},E=[];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 S=-1;for(;++S<_.length;){const t=_[S];(C||0!==S||"element"!==t.type||"p"!==t.tagName)&&E.push({type:"text",value:"\n"}),"element"!==t.type||"p"!==t.tagName||C?E.push(t):E.push(...t.children)}const P=_[_.length-1];P&&(C||"element"!==P.type||"p"!==P.tagName)&&E.push({type:"text",value:"\n"});const k={type:"element",tagName:"li",properties:w,children:E};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=qt(i.children[1]),E=Nt(i.children[i.children.length-1]);w.line&&E.line&&(_.position={start:w,end:E}),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,E=w?w.length:i.children.length;let S=-1;const P=[];for(;++S<E;){const b=i.children[S],_={},E=w?w[S]:void 0;E&&(_.align=E);let k={type:"element",tagName:C,properties:_,children:[]};b&&(k.children=t.all(b),t.patch(b,k),k=t.applyData(i,k)),P.push(k)}const k={type:"element",tagName:"tr",properties:{},children:t.wrap(P,!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 Ut={}.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={...Ht,...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&&!Ft.call(i,b)&&(i[b]=t)})),function definition(t){const b=clean(t);return b&&Ft.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();Ut.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:qt(b),end:Nt(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:qt(t),end:Nt(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 Ut.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)||Ut.call(b,"hProperties")||Ut.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(),E=normalizeUri(w.toLowerCase());let S=0;const P=[];for(;++S<=t.footnoteCounts[w];){const i={type:"element",tagName:"a",properties:{href:"#"+t.clobberPrefix+"fnref-"+E+(S>1?"-"+S:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:t.footnoteBackLabel},children:[{type:"text",value:"↩"}]};S>1&&i.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(S)}]}),P.length>0&&P.push({type:"text",value:" "}),P.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(...P)}else C.push(...P);const T={type:"element",tagName:"li",properties:{id:t.clobberPrefix+"fn-"+E},children:t.wrap(C,!0)};t.patch(_,T),i.push(T)}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 zt=b(62688);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 Vt=0;const Gt=increment(),$t=increment(),Yt=increment(),Kt=increment(),Zt=increment(),Xt=increment(),Qt=increment();function increment(){return 2**++Vt}const Jt=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<Jt.length;){const t=Jt[w];mark(this,Jt[w],(b&C[t])===C[t])}}}function mark(t,i,b){b&&(t[i]=b)}DefinedInfo.prototype.defined=!0;const en={}.hasOwnProperty;function create(t){const i={},b={};let _;for(_ in t.properties)if(en.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 tn=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}}),nn=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 rn=create({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:caseInsensitiveTransform,properties:{xmlns:null,xmlnsXLink:null}}),on=create({transform:(t,i)=>"role"===i?i:"aria-"+i.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:$t,ariaAutoComplete:null,ariaBusy:$t,ariaChecked:$t,ariaColCount:Kt,ariaColIndex:Kt,ariaColSpan:Kt,ariaControls:Zt,ariaCurrent:null,ariaDescribedBy:Zt,ariaDetails:null,ariaDisabled:$t,ariaDropEffect:Zt,ariaErrorMessage:null,ariaExpanded:$t,ariaFlowTo:Zt,ariaGrabbed:$t,ariaHasPopup:null,ariaHidden:$t,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Zt,ariaLevel:Kt,ariaLive:null,ariaModal:$t,ariaMultiLine:$t,ariaMultiSelectable:$t,ariaOrientation:null,ariaOwns:Zt,ariaPlaceholder:null,ariaPosInSet:Kt,ariaPressed:$t,ariaReadOnly:$t,ariaRelevant:null,ariaRequired:$t,ariaRoleDescription:Zt,ariaRowCount:Kt,ariaRowIndex:Kt,ariaRowSpan:Kt,ariaSelected:$t,ariaSetSize:Kt,ariaSort:null,ariaValueMax:Kt,ariaValueMin:Kt,ariaValueNow:Kt,ariaValueText:null,role:null}}),an=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:Xt,acceptCharset:Zt,accessKey:Zt,action:null,allow:null,allowFullScreen:Gt,allowPaymentRequest:Gt,allowUserMedia:Gt,alt:null,as:null,async:Gt,autoCapitalize:null,autoComplete:Zt,autoFocus:Gt,autoPlay:Gt,capture:Gt,charSet:null,checked:Gt,cite:null,className:Zt,cols:Kt,colSpan:null,content:null,contentEditable:$t,controls:Gt,controlsList:Zt,coords:Kt|Xt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Gt,defer:Gt,dir:null,dirName:null,disabled:Gt,download:Yt,draggable:$t,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Gt,formTarget:null,headers:Zt,height:Kt,hidden:Gt,high:Kt,href:null,hrefLang:null,htmlFor:Zt,httpEquiv:Zt,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:Gt,itemId:null,itemProp:Zt,itemRef:Zt,itemScope:Gt,itemType:Zt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Gt,low:Kt,manifest:null,max:null,maxLength:Kt,media:null,method:null,min:null,minLength:Kt,multiple:Gt,muted:Gt,name:null,nonce:null,noModule:Gt,noValidate:Gt,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:Gt,optimum:Kt,pattern:null,ping:Zt,placeholder:null,playsInline:Gt,poster:null,preload:null,readOnly:Gt,referrerPolicy:null,rel:Zt,required:Gt,reversed:Gt,rows:Kt,rowSpan:Kt,sandbox:Zt,scope:null,scoped:Gt,seamless:Gt,selected:Gt,shape:null,size:Kt,sizes:null,slot:null,span:Kt,spellCheck:$t,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Kt,step:null,style:null,tabIndex:Kt,target:null,title:null,translate:null,type:null,typeMustMatch:Gt,useMap:null,value:$t,width:Kt,wrap:null,align:null,aLink:null,archive:Zt,axis:null,background:null,bgColor:null,border:Kt,borderColor:null,bottomMargin:Kt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Gt,declare:Gt,event:null,face:null,frame:null,frameBorder:null,hSpace:Kt,leftMargin:Kt,link:null,longDesc:null,lowSrc:null,marginHeight:Kt,marginWidth:Kt,noResize:Gt,noHref:Gt,noShade:Gt,noWrap:Gt,object:null,profile:null,prompt:null,rev:null,rightMargin:Kt,rules:null,scheme:null,scrolling:$t,standby:null,summary:null,text:null,topMargin:Kt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Kt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Gt,disableRemotePlayback:Gt,prefix:null,property:null,results:Kt,security:null,unselectable:null}}),ln=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:Qt,accentHeight:Kt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Kt,amplitude:Kt,arabicForm:null,ascent:Kt,attributeName:null,attributeType:null,azimuth:Kt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Kt,by:null,calcMode:null,capHeight:Kt,className:Zt,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:Kt,diffuseConstant:Kt,direction:null,display:null,dur:null,divisor:Kt,dominantBaseline:null,download:Gt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Kt,enableBackground:null,end:null,event:null,exponent:Kt,externalResourcesRequired:null,fill:null,fillOpacity:Kt,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:Xt,g2:Xt,glyphName:Xt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Kt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Kt,horizOriginX:Kt,horizOriginY:Kt,id:null,ideographic:Kt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Kt,k:Kt,k1:Kt,k2:Kt,k3:Kt,k4:Kt,kernelMatrix:Qt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Kt,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:Kt,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:Kt,overlineThickness:Kt,paintOrder:null,panose1:null,path:null,pathLength:Kt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Zt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Kt,pointsAtY:Kt,pointsAtZ:Kt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Qt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Qt,rev:Qt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Qt,requiredFeatures:Qt,requiredFonts:Qt,requiredFormats:Qt,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:Kt,specularExponent:Kt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Kt,strikethroughThickness:Kt,string:null,stroke:null,strokeDashArray:Qt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Kt,strokeOpacity:Kt,strokeWidth:null,style:null,surfaceScale:Kt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Qt,tabIndex:Kt,tableValues:null,target:null,targetX:Kt,targetY:Kt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Qt,to:null,transform:null,u1:null,u2:null,underlinePosition:Kt,underlineThickness:Kt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Kt,values:null,vAlphabetic:Kt,vMathematical:Kt,vectorEffect:null,vHanging:Kt,vIdeographic:Kt,version:null,vertAdvY:Kt,vertOriginX:Kt,vertOriginY:Kt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Kt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),un=merge([nn,tn,rn,on,an],"html"),cn=merge([nn,tn,rn,on,ln],"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 sn=b(84271);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 dn=/^data[-\w.:]+$/i,fn=/-[a-z]/g,pn=/[A-Z]/g;function kebab(t){return"-"+t.toLowerCase()}function camelcase(t){return t.charAt(1).toUpperCase()}const mn={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 hn=b(24120),gn={}.hasOwnProperty,yn=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&&yn.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,S=t.schema,P=i.tagName,k={};let T,A=S;if("html"===S.space&&"svg"===P&&(A=cn,t.schema=A),i.properties)for(T in i.properties)gn.call(i.properties,T)&&addProperty(k,T,i.properties[T],t);"ol"!==P&&"ul"!==P||t.listDepth++;const D=childrenToReact(t,i);"ol"!==P&&"ul"!==P||t.listDepth--,t.schema=S;const W=i.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},q=C.components&&gn.call(C.components,P)?C.components[P]:P,N="string"==typeof q||q===E.Fragment;if(!sn.isValidElementType(q))throw new TypeError(`Component for name \`${P}\` not defined or is not renderable`);if(k.key=b,"a"===P&&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"===P&&w&&(k.href=w(String(k.href||""),i.children,"string"==typeof k.title?k.title:null)),N||"code"!==P||"element"!==_.type||"pre"===_.tagName||(k.inline=!0),N||"h1"!==P&&"h2"!==P&&"h3"!==P&&"h4"!==P&&"h5"!==P&&"h6"!==P||(k.level=Number.parseInt(P.charAt(1),10)),"img"===P&&C.transformImageUri&&(k.src=C.transformImageUri(String(k.src||""),String(k.alt||""),"string"==typeof k.title?k.title:null)),!N&&"li"===P&&"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 N||"ol"!==P&&"ul"!==P||(k.ordered="ol"===P,k.depth=t.listDepth),"td"!==P&&"th"!==P||(k.align&&(k.style||(k.style={}),k.style.textAlign=k.align,delete k.align),N||(k.isHeader="th"===P)),N||"tr"!==P||"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("")}(W)),!N&&C.rawSourcePos&&(k.sourcePosition=i.position),!N&&C.includeElementIndex&&(k.index=getElementsBeforeCount(_,i),k.siblingCount=getElementsBeforeCount(_)),N||(k.node=i),D.length>0?E.createElement(q,k,D):E.createElement(q,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)&&dn.test(i)){if("-"===i.charAt(4)){const t=i.slice(5).replace(fn,camelcase);_="data"+t.charAt(0).toUpperCase()+t.slice(1)}else{const t=i.slice(4);if(!fn.test(t)){let b=t.replace(pn,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{hn(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[gn.call(mn,C.property)?mn[C.property]:C.property]=w:C.attribute&&(t[C.attribute]=w))}function styleReplacer(t,i){return i.toUpperCase()}const vn={}.hasOwnProperty,bn="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",_n={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 _n)if(vn.call(_n,i)&&vn.call(t,i)){const t=_n[i];console.warn(`[react-markdown] Warning: please ${t.to?`use \`${t.to}\` instead of`:"remove"} \`${i}\` (see <${bn}#${t.id}> for more info)`),delete _n[i]}const i=D().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=E.createElement(E.Fragment,{},childrenToReact({options:t,schema:un,listDepth:0},_));return t.className&&(C=E.createElement("div",{className:t.className},C)),C}ReactMarkdown.propTypes={children:zt.string,className:zt.string,allowElement:zt.func,allowedElements:zt.arrayOf(zt.string),disallowedElements:zt.arrayOf(zt.string),unwrapDisallowed:zt.bool,remarkPlugins:zt.arrayOf(zt.oneOfType([zt.object,zt.func,zt.arrayOf(zt.oneOfType([zt.bool,zt.string,zt.object,zt.func,zt.arrayOf(zt.any)]))])),rehypePlugins:zt.arrayOf(zt.oneOfType([zt.object,zt.func,zt.arrayOf(zt.oneOfType([zt.bool,zt.string,zt.object,zt.func,zt.arrayOf(zt.any)]))])),sourcePos:zt.bool,rawSourcePos:zt.bool,skipHtml:zt.bool,includeElementIndex:zt.bool,transformLinkUri:zt.oneOfType([zt.func,zt.bool]),linkTarget:zt.oneOfType([zt.func,zt.string]),transformImageUri:zt.func,components:zt.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})},__webpack_require__.nc=void 0,(()=>{"use strict";new(__webpack_require__(96784)(__webpack_require__(18049)).default)})()})();

Youez - 2016 - github.com/yon3zu
LinuXploit