m||(r.push(l=new s(h,m,h+c-1,f)),c>2&&(h=h+c-2))}}else for(var _=0;_y&&r[p].end.row==x;)p--;for(r=r.slice(_,p+1),_=0,p=r.length;_=a;n--)if(h(n,Number.MAX_VALUE,e))return;if(0!=t.wrap)for(n=l,a=r.row;n>=a;n--)if(h(n,Number.MAX_VALUE,e))return}};else c=function(e){var n=r.row;if(!h(n,r.column,e)){for(n+=1;n<=l;n++)if(h(n,0,e))return;if(0!=t.wrap)for(n=a,l=r.row;n<=l;n++)if(h(n,0,e))return}};if(t.$isMultiLine)var d=n.length,h=function(t,o,s){var r=i?t-d+1:t;if(!(r<0||r+d>e.getLength())){var a=e.getLine(r),l=a.search(n[0]);if(!(!i&&lo))return!!s(r,l,r+d-1,h)||void 0}}};else h=i?function(t,i,o){var s,r=e.getLine(t),a=[],l=0;for(n.lastIndex=0;s=n.exec(r);){var c=s[0].length;if(l=s.index,!c){if(l>=r.length)break;n.lastIndex=l+=1}if(s.index+c>i)break;a.push(s.index,c)}for(var d=a.length-1;d>=0;d-=2){var h=a[d-1];if(o(t,h,t,h+(c=a[d])))return!0}}:function(t,i,o){var s,r,a=e.getLine(t);for(n.lastIndex=i;r=n.exec(a);){var l=r[0].length;if(o(t,s=r.index,t,s+l))return!0;if(!l&&(n.lastIndex=s+=1,s>=a.length))return!1}};return{forEach:c}},e}();t.Search=r})),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),s=e("../lib/keys"),r=e("../lib/useragent"),a=s.KEY_MODS,l=function(){function e(e,t){this.$init(e,t,!1)}return e.prototype.$init=function(e,t,n){this.platform=t||(r.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=n},e.prototype.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},e.prototype.removeCommand=function(e,t){var n=e&&("string"==typeof e?e:e.name);e=this.commands[n],t||delete this.commands[n];var i=this.commandKeyBinding;for(var o in i){var s=i[o];if(s==e)delete i[o];else if(Array.isArray(s)){var r=s.indexOf(e);-1!=r&&(s.splice(r,1),1==s.length&&(i[o]=s[0]))}}},e.prototype.bindKey=function(e,t,n){if("object"==typeof e&&e&&(null==n&&(n=e.position),e=e[this.platform]),e)return"function"==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split("|").forEach((function(e){var i="";if(-1!=e.indexOf(" ")){var o=e.split(/\s+/);e=o.pop(),o.forEach((function(e){var t=this.parseKeys(e),n=a[t.hashId]+t.key;i+=(i?" ":"")+n,this._addCommandToBinding(i,"chainKeys")}),this),i+=" "}var s=this.parseKeys(e),r=a[s.hashId]+s.key;this._addCommandToBinding(i+r,t,n)}),this)},e.prototype._addCommandToBinding=function(e,t,n){var i,o=this.commandKeyBinding;if(t)if(!o[e]||this.$singleCommand)o[e]=t;else{Array.isArray(o[e])?-1!=(i=o[e].indexOf(t))&&o[e].splice(i,1):o[e]=[o[e]],"number"!=typeof n&&(n=c(t));var s=o[e];for(i=0;in);i++);s.splice(i,0,t)}else delete o[e]},e.prototype.addCommands=function(e){e&&Object.keys(e).forEach((function(t){var n=e[t];if(n){if("string"==typeof n)return this.bindKey(n,t);"function"==typeof n&&(n={exec:n}),"object"==typeof n&&(n.name||(n.name=t),this.addCommand(n))}}),this)},e.prototype.removeCommands=function(e){Object.keys(e).forEach((function(t){this.removeCommand(e[t])}),this)},e.prototype.bindKeys=function(e){Object.keys(e).forEach((function(t){this.bindKey(t,e[t])}),this)},e.prototype._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},e.prototype.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter((function(e){return e})),n=t.pop(),i=s[n];if(s.FUNCTION_KEYS[i])n=s.FUNCTION_KEYS[i].toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:n.toUpperCase(),hashId:-1}}for(var o=0,r=t.length;r--;){var a=s.KEY_MODS[t[r]];if(null==a)return"undefined"!=typeof console&&console.error("invalid modifier "+t[r]+" in "+e),!1;o|=a}return{key:n,hashId:o}},e.prototype.findKeyCommand=function(e,t){var n=a[e]+t;return this.commandKeyBinding[n]},e.prototype.handleKeyboard=function(e,t,n,i){if(!(i<0)){var o=a[t]+n,s=this.commandKeyBinding[o];return e.$keyChain&&(e.$keyChain+=" "+o,s=this.commandKeyBinding[e.$keyChain]||s),!s||"chainKeys"!=s&&"chainKeys"!=s[s.length-1]?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||i>0)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-o.length-1)),{command:s}):(e.$keyChain=e.$keyChain||o,{command:"null"})}},e.prototype.getStatusText=function(e,t){return t.$keyChain||""},e}();function c(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}var d=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.$singleCommand=!0,i}return o(t,e),t}(l);d.call=function(e,t,n){l.prototype.$init.call(e,t,n,!0)},l.call=function(e,t,n){l.prototype.$init.call(e,t,n,!1)},t.HashHandler=d,t.MultiHashHandler=l})),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),s=e("../lib/oop"),r=e("../keyboard/hash_handler").MultiHashHandler,a=e("../lib/event_emitter").EventEmitter,l=function(e){function t(t,n){var i=e.call(this,n,t)||this;return i.byName=i.commands,i.setDefaultHandler("exec",(function(e){return e.args?e.command.exec(e.editor,e.args,e.event,!1):e.command.exec(e.editor,{},e.event,!0)})),i}return o(t,e),t.prototype.exec=function(e,t,n){if(Array.isArray(e)){for(var i=e.length;i--;)if(this.exec(e[i],t,n))return!0;return!1}if("string"==typeof e&&(e=this.commands[e]),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;if(0!=this.$checkCommandState&&e.isAvailable&&!e.isAvailable(t))return!1;var o={editor:t,command:e,args:n};return o.returnValue=this._emit("exec",o),this._signal("afterExec",o),!1!==o.returnValue},t.prototype.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},t.prototype.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach((function(t){"string"==typeof t?this.exec(t,e):this.exec(t[0],e,t[1])}),this)}finally{this.$inReplay=!1}}},t.prototype.trimMacro=function(e){return e.map((function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e}))},t}(r);s.implement(l.prototype,a),t.CommandManager=l})),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],(function(e,t,n){"use strict";var i=e("../lib/lang"),o=e("../config"),s=e("../range").Range;function r(e,t){return{win:e,mac:t}}t.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:r("Ctrl-,","Command-,"),exec:function(e){o.loadModule("ace/ext/settings_menu",(function(t){t.init(e),e.showSettingsMenu()}))},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:r("Alt-E","F4"),exec:function(e){o.loadModule("ace/ext/error_marker",(function(t){t.showErrorMarker(e,1)}))},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:r("Alt-Shift-E","Shift-F4"),exec:function(e){o.loadModule("ace/ext/error_marker",(function(t){t.showErrorMarker(e,-1)}))},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:r("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:r(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:r("Ctrl-L","Command-L"),exec:function(e,t){"number"!=typeof t||isNaN(t)||e.gotoLine(t),e.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:r("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:r("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:r("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:r("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:r(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:r(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:r("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:r("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:r("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:r("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:r("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:r("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:r("Ctrl-F","Command-F"),exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e)}))},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:r("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:r("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:r("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:r("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:r("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:r("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:r("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:r("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:r("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:r("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:r("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:r("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:r("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:r("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:r("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:r("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:r("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:r("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:r("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:r("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:r(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:r("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:r(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:r("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:r("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:r("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:r("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:r("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:r("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:r("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:r(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(e){},readOnly:!0},{name:"cut",description:"Cut",exec:function(e){var t=e.$copyWithEmptySelection&&e.selection.isEmpty()?e.selection.getLineRange():e.selection.getRange();e._emit("cut",t),t.isEmpty()||e.session.remove(t),e.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:r("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:r("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:r("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:r("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:r("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:r("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:r("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:r("Ctrl-H","Command-Option-F"),exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!0)}))}},{name:"undo",description:"Undo",bindKey:r("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",description:"Redo",bindKey:r("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:r("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:r("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:r("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:r("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:r("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:r("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:r("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:r("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:r("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:r("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:r("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:r("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:r("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:r("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:r("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:r("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:r("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(e,t){e.insert(i.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:r(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:r("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:r("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:r("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:r(null,null),exec:function(e){e.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:r("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:r("Ctrl+F3","F3"),exec:function(e){e.openLink()}},{name:"joinlines",description:"Join lines",bindKey:r(null,null),exec:function(e){for(var t=e.selection.isBackwards(),n=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),o=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),r=e.session.doc.getLine(n.row).length,a=e.session.doc.getTextRange(e.selection.getRange()).replace(/\n\s*/," ").length,l=e.session.doc.getLine(n.row),c=n.row+1;c<=o.row+1;c++){var d=i.stringTrimLeft(i.stringTrimRight(e.session.doc.getLine(c)));0!==d.length&&(d=" "+d),l+=d}o.row+10?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+a)):(r=e.session.doc.getLine(n.row).length>r?r+1:r,e.selection.moveCursorTo(n.row,r))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:r(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,i=e.selection.rangeList.ranges,o=[];i.length<1&&(i=[e.selection.getRange()]);for(var r=0;rt[n].column&&n++,s.unshift(n,0),t.splice.apply(t,s),this.$updateRows()}}},e.prototype.$updateRows=function(){var e=this.session.lineWidgets;if(e){var t=!0;e.forEach((function(e,n){if(e)for(t=!1,e.row=n;e.$oldWidget;)e.$oldWidget.row=n,e=e.$oldWidget})),t&&(this.session.lineWidgets=null)}},e.prototype.$registerLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];return t&&(e.$oldWidget=t,t.el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1)),this.session.lineWidgets[e.row]=e,e},e.prototype.addLineWidget=function(e){if(this.$registerLineWidget(e),e.session=this.session,!this.editor)return e;var t=this.editor.renderer;e.html&&!e.el&&(e.el=i.createElement("div"),e.el.innerHTML=e.html),e.text&&!e.el&&(e.el=i.createElement("div"),e.el.textContent=e.text),e.el&&(i.addCssClass(e.el,"ace_lineWidgetContainer"),e.className&&i.addCssClass(e.el,e.className),e.el.style.position="absolute",e.el.style.zIndex=5,t.container.appendChild(e.el),e._inDocument=!0,e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight&&(e.pixelHeight=e.el.offsetHeight)),null==e.rowCount&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight);var n=this.session.getFoldAt(e.row,0);if(e.$fold=n,n){var o=this.session.lineWidgets;e.row!=n.end.row||o[n.start.row]?e.hidden=!0:o[n.start.row]=e}return this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),this.onWidgetChanged(e),e},e.prototype.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(e){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else for(;t;){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},e.prototype.getWidgetsAtRow=function(e){for(var t=this.session.lineWidgets,n=t&&t[e],i=[];n;)i.push(n),n=n.$oldWidget;return i},e.prototype.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},e.prototype.measureWidgets=function(e,t){var n=this.session._changedWidgets,i=t.layerConfig;if(n&&n.length){for(var o=1/0,s=0;s0&&!i[o];)o--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var r=o;r<=s;r++){var a=i[r];if(a&&a.el)if(a.hidden)a.el.style.top=-100-(a.pixelHeight||0)+"px";else{a._inDocument||(a._inDocument=!0,t.container.appendChild(a.el));var l=t.$cursorLayer.getPixelPosition({row:r,column:0},!0).top;a.coverLine||(l+=n.lineHeight*this.session.getRowLineCount(a.row)),a.el.style.top=l-n.offset+"px";var c=a.coverGutter?0:t.gutterWidth;a.fixedWidth||(c-=t.scrollLeft),a.el.style.left=c+"px",a.fullWidth&&a.screenWidth&&(a.el.style.minWidth=n.width+2*n.padding+"px"),a.fixedWidth?a.el.style.right=t.scrollBar.getWidth()+"px":a.el.style.right=""}}}},e}();t.LineWidgets=o})),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],(function(e,t,n){"use strict";var i=e("../lib/keys"),o=e("../mouse/default_gutter_handler").GutterTooltip,s=function(){function e(e){this.editor=e,this.gutterLayer=e.renderer.$gutterLayer,this.element=e.renderer.$gutter,this.lines=e.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new o(this.editor)}return e.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},e.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},e.prototype.$onGutterKeyDown=function(e){if(this.annotationTooltip.isOpen)return e.preventDefault(),void(e.keyCode===i.escape&&this.annotationTooltip.hideTooltip());if(e.target===this.element){if(e.keyCode!=i.enter)return;e.preventDefault();var t=this.editor.getCursorPosition().row;return this.editor.isRowVisible(t)||this.editor.scrollToLine(t,!0,!0),void setTimeout(function(){var e=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),t=this.$findNearestFoldWidget(e),n=this.$findNearestAnnotation(e);if(null!==t||null!==n)return null===t&&null!==n?(this.activeRowIndex=n,this.activeLane="annotation",void this.$focusAnnotation(this.activeRowIndex)):null!==t&&null===n?(this.activeRowIndex=t,this.activeLane="fold",void this.$focusFoldWidget(this.activeRowIndex)):Math.abs(n-e)0||e+t=0&&this.$isFoldWidgetVisible(e-t))return e-t;if(e+t<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(e+t))return e+t}return null},e.prototype.$findNearestAnnotation=function(e){if(this.$isAnnotationVisible(e))return e;for(var t=0;e-t>0||e+t=0&&this.$isAnnotationVisible(e-t))return e-t;if(e+t<=this.lines.getLength()-1&&this.$isAnnotationVisible(e+t))return e+t}return null},e.prototype.$focusFoldWidget=function(e){if(null!=e){var t=this.$getFoldWidget(e);t.classList.add(this.editor.renderer.keyboardFocusClassName),t.focus()}},e.prototype.$focusAnnotation=function(e){if(null!=e){var t=this.$getAnnotation(e);t.classList.add(this.editor.renderer.keyboardFocusClassName),t.focus()}},e.prototype.$blurFoldWidget=function(e){var t=this.$getFoldWidget(e);t.classList.remove(this.editor.renderer.keyboardFocusClassName),t.blur()},e.prototype.$blurAnnotation=function(e){var t=this.$getAnnotation(e);t.classList.remove(this.editor.renderer.keyboardFocusClassName),t.blur()},e.prototype.$moveFoldWidgetUp=function(){for(var e=this.activeRowIndex;e>0;)if(e--,this.$isFoldWidgetVisible(e))return this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=e,void this.$focusFoldWidget(this.activeRowIndex)},e.prototype.$moveFoldWidgetDown=function(){for(var e=this.activeRowIndex;e0;)if(e--,this.$isAnnotationVisible(e))return this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=e,void this.$focusAnnotation(this.activeRowIndex)},e.prototype.$moveAnnotationDown=function(){for(var e=this.activeRowIndex;e=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=e("./lib/oop"),s=e("./lib/dom"),r=e("./lib/lang"),a=e("./lib/useragent"),l=e("./keyboard/textinput").TextInput,c=e("./mouse/mouse_handler").MouseHandler,d=e("./mouse/fold_handler").FoldHandler,h=e("./keyboard/keybinding").KeyBinding,p=e("./edit_session").EditSession,u=e("./search").Search,g=e("./range").Range,m=e("./lib/event_emitter").EventEmitter,f=e("./commands/command_manager").CommandManager,_=e("./commands/default_commands").commands,b=e("./config"),w=e("./token_iterator").TokenIterator,v=e("./line_widgets").LineWidgets,y=e("./keyboard/gutter_handler").GutterKeyboardHandler,x=e("./config").nls,C=e("./clipboard"),k=e("./lib/keys"),S=function(){function e(t,n,i){this.$toDestroy=[];var o=t.getContainerElement();this.container=o,this.renderer=t,this.id="editor"+ ++e.$uid,this.commands=new f(a.isMac?"mac":"win",_),"object"==typeof document&&(this.textInput=new l(t.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new c(this),new d(this)),this.keyBinding=new h(this),this.$search=(new u).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=r.delayedCall(function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",(function(e,t){t._$emitInputEvent.schedule(31)})),this.setSession(n||i&&i.session||new p("")),b.resetOptions(this),i&&this.setOptions(i),b._signal("editor",this)}return e.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=r.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},e.prototype.startOperation=function(e){if(this.curOp){if(!e||this.curOp.command)return;this.prevOp=this.curOp}e||(this.previousCommand=null,e={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:e.command||{},args:e.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},e.prototype.endOperation=function(e){if(this.curOp&&this.session){if(e&&!1===e.returnValue||!this.session)return this.curOp=null;if(1==e&&this.curOp.command&&"mouse"==this.curOp.command.name)return;if(this._signal("beforeEndOperation"),!this.curOp)return;var t=this.curOp.command,n=t&&t.scrollIntoView;if(n){switch(n){case"center-animate":n="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var i=this.selection.getRange(),o=this.renderer.layerConfig;(i.start.row>=o.lastRow||i.end.row<=o.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==n&&this.renderer.animateScrolling(this.curOp.scrollTop)}var s=this.selection.toJSON();this.curOp.selectionAfter=s,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(s),this.prevOp=this.curOp,this.curOp=null}},e.prototype.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,n=this.$mergeableCommands,i=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var o=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),i=i&&this.mergeNextCommand&&(!/\s/.test(o)||/\s/.test(t.args)),this.mergeNextCommand=!0}else i=i&&-1!==n.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(i=!1),i?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},e.prototype.setKeyboardHandler=function(e,t){if(e&&"string"==typeof e&&"ace"!=e){this.$keybindingId=e;var n=this;b.loadModule(["keybinding",e],(function(i){n.$keybindingId==e&&n.keyBinding.setKeyboardHandler(i&&i.handler),t&&t()}))}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},e.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},e.prototype.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var n=this.session.getSelection();n.off("changeCursor",this.$onCursorChange),n.off("changeSelection",this.$onSelectionChange)}this.session=e,e?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e&&!e.destroyed&&e.bgTokenizer.scheduleStart()}},e.prototype.getSession=function(){return this.session},e.prototype.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},e.prototype.getValue=function(){return this.session.getValue()},e.prototype.getSelection=function(){return this.selection},e.prototype.resize=function(e){this.renderer.onResize(e)},e.prototype.setTheme=function(e,t){this.renderer.setTheme(e,t)},e.prototype.getTheme=function(){return this.renderer.getTheme()},e.prototype.setStyle=function(e){this.renderer.setStyle(e)},e.prototype.unsetStyle=function(e){this.renderer.unsetStyle(e)},e.prototype.getFontSize=function(){return this.getOption("fontSize")||s.computedStyle(this.container).fontSize},e.prototype.setFontSize=function(e){this.setOption("fontSize",e)},e.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var e=this;this.$highlightPending=!0,setTimeout((function(){e.$highlightPending=!1;var t=e.session;if(t&&!t.destroyed){t.$bracketHighlight&&(t.$bracketHighlight.markerIds.forEach((function(e){t.removeMarker(e)})),t.$bracketHighlight=null);var n=e.getCursorPosition(),i=e.getKeyboardHandler(),o=i&&i.$getDirectionForHighlight&&i.$getDirectionForHighlight(e),s=t.getMatchingBracketRanges(n,o);if(!s){var r=new w(t,n.row,n.column).getCurrentToken();if(r&&/\b(?:tag-open|tag-name)/.test(r.type)){var a=t.getMatchingTags(n);a&&(s=[a.openTagName,a.closeTagName])}}if(!s&&t.$mode.getMatching&&(s=t.$mode.getMatching(e.session)),s){var l="ace_bracket";Array.isArray(s)?1==s.length&&(l="ace_error_bracket"):s=[s],2==s.length&&(0==g.comparePoints(s[0].end,s[1].start)?s=[g.fromPoints(s[0].start,s[1].end)]:0==g.comparePoints(s[0].start,s[1].end)&&(s=[g.fromPoints(s[1].start,s[0].end)])),t.$bracketHighlight={ranges:s,markerIds:s.map((function(e){return t.addMarker(e,l,"text")}))},e.getHighlightIndentGuides()&&e.renderer.$textLayer.$highlightIndentGuide()}else e.getHighlightIndentGuides()&&e.renderer.$textLayer.$highlightIndentGuide()}}),50)}},e.prototype.focus=function(){this.textInput.focus()},e.prototype.isFocused=function(){return this.textInput.isFocused()},e.prototype.blur=function(){this.textInput.blur()},e.prototype.onFocus=function(e){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",e))},e.prototype.onBlur=function(e){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",e))},e.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},e.prototype.onDocumentChange=function(e){var t=this.session.$useWrapMode,n=e.start.row==e.end.row?e.end.row:1/0;this.renderer.updateLines(e.start.row,n,t),this._signal("change",e),this.$cursorChange()},e.prototype.onTokenizerUpdate=function(e){var t=e.data;this.renderer.updateLines(t.first,t.last)},e.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},e.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},e.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},e.prototype.$updateHighlightActiveLine=function(){var e,t=this.getSession();if(this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(e=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(e=!1),!this.renderer.$maxLines||1!==this.session.getLength()||this.renderer.$minLines>1||(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var n=new g(e.row,e.column,e.row,1/0);n.id=t.addMarker(n,"ace_active-line","screenLine"),t.$highlightLineMarker=n}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},e.prototype.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var n=this.selection.getRange(),i=this.getSelectionStyle();t.$selectionMarker=t.addMarker(n,"ace_selection",i)}var o=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(o),this._signal("changeSelection")},e.prototype.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var n=t.start.column,i=t.end.column,o=e.getLine(t.start.row),s=o.substring(n,i);if(!(s.length>5e3)&&/[\w\d]/.test(s)){var r=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:s}),a=o.substring(n-1,i+1);if(r.test(a))return r}}},e.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},e.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},e.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},e.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},e.prototype.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},e.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},e.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},e.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},e.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},e.prototype.getCopyText=function(){var e=this.getSelectedText(),t=this.session.doc.getNewLineCharacter(),n=!1;if(!e&&this.$copyWithEmptySelection){n=!0;for(var i=this.selection.getAllRanges(),o=0;oa.search(/\S|$/)){var l=a.substr(o.column).search(/\S|$/);n.doc.removeInLine(o.row,o.column,o.column+l)}}this.clearSelection();var c=o.column,d=n.getState(o.row),h=(a=n.getLine(o.row),i.checkOutdent(d,a,e));if(n.insert(o,e),s&&s.selection&&(2==s.selection.length?this.selection.setSelectionRange(new g(o.row,c+s.selection[0],o.row,c+s.selection[1])):this.selection.setSelectionRange(new g(o.row+s.selection[0],s.selection[1],o.row+s.selection[2],s.selection[3]))),this.$enableAutoIndent){if(n.getDocument().isNewLine(e)){var p=i.getNextLineIndent(d,a.slice(0,o.column),n.getTabString());n.insert({row:o.row+1,column:0},p)}h&&i.autoOutdent(d,n,o.row)}},e.prototype.autoIndent=function(){var e,t,n=this.session,i=n.getMode();if(this.selection.isEmpty())e=0,t=n.doc.getLength()-1;else{var o=this.getSelectionRange();e=o.start.row,t=o.end.row}for(var s,r,a,l="",c="",d="",h=n.getTabString(),p=e;p<=t;p++)p>0&&(l=n.getState(p-1),c=n.getLine(p-1),d=i.getNextLineIndent(l,c,h)),s=n.getLine(p),d!==(r=i.$getIndent(s))&&(r.length>0&&(a=new g(p,0,p,r.length),n.remove(a)),d.length>0&&n.insert({row:p,column:0},d)),i.autoOutdent(l,n,p)},e.prototype.onTextInput=function(e,t){if(!t)return this.keyBinding.onTextInput(e);this.startOperation({command:{name:"insertstring"}});var n=this.applyComposition.bind(this,e,t);this.selection.rangeCount?this.forEachSelection(n):n(),this.endOperation()},e.prototype.applyComposition=function(e,t){var n;(t.extendLeft||t.extendRight)&&((n=this.selection.getRange()).start.column-=t.extendLeft,n.end.column+=t.extendRight,n.start.column<0&&(n.start.row--,n.start.column+=this.session.getLine(n.start.row).length+1),this.selection.setRange(n),e||n.isEmpty()||this.remove()),!e&&this.selection.isEmpty()||this.insert(e,!0),(t.restoreStart||t.restoreEnd)&&((n=this.selection.getRange()).start.column-=t.restoreStart,n.end.column-=t.restoreEnd,this.selection.setRange(n))},e.prototype.onCommandKey=function(e,t,n){return this.keyBinding.onCommandKey(e,t,n)},e.prototype.setOverwrite=function(e){this.session.setOverwrite(e)},e.prototype.getOverwrite=function(){return this.session.getOverwrite()},e.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},e.prototype.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},e.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},e.prototype.setDragDelay=function(e){this.setOption("dragDelay",e)},e.prototype.getDragDelay=function(){return this.getOption("dragDelay")},e.prototype.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},e.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},e.prototype.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},e.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},e.prototype.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},e.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},e.prototype.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},e.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},e.prototype.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},e.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},e.prototype.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},e.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},e.prototype.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},e.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},e.prototype.setHighlightIndentGuides=function(e){this.renderer.setHighlightIndentGuides(e)},e.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},e.prototype.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},e.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},e.prototype.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},e.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},e.prototype.setReadOnly=function(e){this.setOption("readOnly",e)},e.prototype.getReadOnly=function(){return this.getOption("readOnly")},e.prototype.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},e.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},e.prototype.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},e.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},e.prototype.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},e.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},e.prototype.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},e.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},e.prototype.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,i=n.getState(t.start.row),o=n.getMode().transformAction(i,"deletion",this,n,t);if(0===t.end.column){var s=n.getTextRange(t);if("\n"==s[s.length-1]){var r=n.getLine(t.end.row);/^\s+$/.test(r)&&(t.end.column=r.length)}}o&&(t=o)}this.session.remove(t),this.clearSelection()},e.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},e.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},e.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},e.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},e.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},e.prototype.setGhostText=function(e,t){this.session.widgetManager||(this.session.widgetManager=new v(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(e,t)},e.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},e.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var n,i,o=this.session.getLine(e.row);tt.toLowerCase()?1:0}));var o=new g(0,0,0,0);for(i=e.first;i<=e.last;i++){var s=t.getLine(i);o.start.row=i,o.end.row=i,o.end.column=s.length,t.replace(o,n[i-e.first])}},e.prototype.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},e.prototype.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},e.prototype.getNumberAt=function(e,t){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;for(var i=this.session.getLine(e);n.lastIndex=t)return{value:o[0],start:o.index,end:o.index+o[0].length}}return null},e.prototype.modifyNumber=function(e){var t=this.selection.getCursor().row,n=this.selection.getCursor().column,i=new g(t,n-1,t,n),o=this.session.getTextRange(i);if(!isNaN(parseFloat(o))&&isFinite(o)){var s=this.getNumberAt(t,n);if(s){var r=s.value.indexOf(".")>=0?s.start+s.value.indexOf(".")+1:s.end,a=s.start+s.value.length-r,l=parseFloat(s.value);l*=Math.pow(10,a),r!==s.end&&n=a&&s<=l&&(n=t,c.selection.clearSelection(),c.moveCursorTo(e,a+i),c.selection.selectTo(e,l+i)),a=l}));for(var d,h=this.$toggleWordPairs,p=0;p=l&&r<=c&&p.match(/((?:https?|ftp):\/\/[\S]+)/)){a=p.replace(/[\s:.,'";}\]]+$/,"");break}l=c}}catch(e){n={error:e}}finally{try{h&&!h.done&&(o=d.return)&&o.call(d)}finally{if(n)throw n.error}}return a},e.prototype.openLink=function(){var e=this.selection.getCursor(),t=this.findLinkAt(e.row,e.column);return t&&window.open(t,"_blank"),null!=t},e.prototype.removeLines=function(){var e=this.$getSelectedRows();this.session.removeFullLines(e.first,e.last),this.clearSelection()},e.prototype.duplicateSelection=function(){var e=this.selection,t=this.session,n=e.getRange(),i=e.isBackwards();if(n.isEmpty()){var o=n.start.row;t.duplicateLines(o,o)}else{var s=i?n.start:n.end,r=t.insert(s,t.getTextRange(n),!1);n.start=s,n.end=r,e.setSelectionRange(n,i)}},e.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},e.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},e.prototype.moveText=function(e,t,n){return this.session.moveText(e,t,n)},e.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},e.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},e.prototype.$moveLines=function(e,t){var n,i,o=this.selection;if(!o.inMultiSelectMode||this.inVirtualSelectionMode){var s=o.toOrientedRange();n=this.$getSelectedRows(s),i=this.session.$moveLines(n.first,n.last,t?0:e),t&&-1==e&&(i=0),s.moveBy(i,0),o.fromOrientedRange(s)}else{var r=o.rangeList.ranges;o.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var a=0,l=0,c=r.length,d=0;du+1)break;u=g.last}for(d--,a=this.session.$moveLines(p,u,t?0:e),t&&-1==e&&(h=d+1);h<=d;)r[h].moveBy(a,0),h++;t||(a=0),l+=a}o.fromOrientedRange(o.ranges[0]),o.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},e.prototype.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},e.prototype.onCompositionStart=function(e){this.renderer.showComposition(e)},e.prototype.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},e.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},e.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},e.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},e.prototype.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},e.prototype.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},e.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},e.prototype.$moveByPage=function(e,t){var n=this.renderer,i=this.renderer.layerConfig,o=e*Math.floor(i.height/i.lineHeight);!0===t?this.selection.$moveSelection((function(){this.moveCursorBy(o,0)})):!1===t&&(this.selection.moveCursorBy(o,0),this.selection.clearSelection());var s=n.scrollTop;n.scrollBy(0,o*i.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling(s)},e.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},e.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},e.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},e.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},e.prototype.scrollPageDown=function(){this.$moveByPage(1)},e.prototype.scrollPageUp=function(){this.$moveByPage(-1)},e.prototype.scrollToRow=function(e){this.renderer.scrollToRow(e)},e.prototype.scrollToLine=function(e,t,n,i){this.renderer.scrollToLine(e,t,n,i)},e.prototype.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},e.prototype.getCursorPosition=function(){return this.selection.getCursor()},e.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},e.prototype.getSelectionRange=function(){return this.selection.getRange()},e.prototype.selectAll=function(){this.selection.selectAll()},e.prototype.clearSelection=function(){this.selection.clearSelection()},e.prototype.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},e.prototype.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},e.prototype.jumpToMatching=function(e,t){var n=this.getCursorPosition(),i=new w(this.session,n.row,n.column),o=i.getCurrentToken(),s=0;o&&-1!==o.type.indexOf("tag-name")&&(o=i.stepBackward());var r=o||i.stepForward();if(r){var a,l,c=!1,d={},h=n.column-r.start,p={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(r.value.match(/[{}()\[\]]/g)){for(;h1?d[r.value]++:""===o.value&&d[r.value]--,-1===d[r.value]&&(a="tag",c=!0));c||(o=r,s++,r=i.stepForward(),h=0)}while(r&&!c);if(a){var u,m;if("bracket"===a)(u=this.session.getBracketRange(n))||(m=(u=new g(i.getCurrentTokenRow(),i.getCurrentTokenColumn()+h-1,i.getCurrentTokenRow(),i.getCurrentTokenColumn()+h-1)).start,(t||m.row===n.row&&Math.abs(m.column-n.column)<2)&&(u=this.session.getBracketRange(m)));else if("tag"===a){if(!r||-1===r.type.indexOf("tag-name"))return;if(0===(u=new g(i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2,i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2)).compare(n.row,n.column)){var f=this.session.getMatchingTags(n);f&&(f.openTag.contains(n.row,n.column)?m=(u=f.closeTag).start:(u=f.openTag,m=f.closeTag.start.row===n.row&&f.closeTag.start.column===n.column?u.end:u.start))}m=m||u.start}(m=u&&u.cursor||m)&&(e?u&&t?this.selection.setRange(u):u&&u.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(m.row,m.column):this.selection.moveTo(m.row,m.column))}}},e.prototype.gotoLine=function(e,t,n){this.selection.clearSelection(),this.session.unfold({row:e-1,column:t||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(e-1,t||0),this.isRowFullyVisible(e-1)||this.scrollToLine(e-1,!0,n)},e.prototype.navigateTo=function(e,t){this.selection.moveTo(e,t)},e.prototype.navigateUp=function(e){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(-e||-1,0)},e.prototype.navigateDown=function(e){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(e||1,0)},e.prototype.navigateLeft=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorLeft();else{var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}this.clearSelection()},e.prototype.navigateRight=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorRight();else{var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}this.clearSelection()},e.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},e.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},e.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},e.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},e.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},e.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},e.prototype.replace=function(e,t){t&&this.$search.set(t);var n=this.$search.find(this.session),i=0;return n?(this.$tryReplace(n,e)&&(i=1),this.selection.setSelectionRange(n),this.renderer.scrollSelectionIntoView(n.start,n.end),i):i},e.prototype.replaceAll=function(e,t){t&&this.$search.set(t);var n=this.$search.findAll(this.session),i=0;if(!n.length)return i;var o=this.getSelectionRange();this.selection.moveTo(0,0);for(var s=n.length-1;s>=0;--s)this.$tryReplace(n[s],e)&&i++;return this.selection.setSelectionRange(o),i},e.prototype.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return null!==(t=this.$search.replace(n,t))?(e.end=this.session.replace(e,t),e):null},e.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},e.prototype.find=function(e,t,n){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&o.mixin(t,e);var i=this.selection.getRange();null==t.needle&&((e=this.session.getTextRange(i)||this.$search.$options.needle)||(i=this.session.getWordRange(i.start.row,i.start.column),e=this.session.getTextRange(i)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:i});var s=this.$search.find(this.session);return t.preventScroll?s:s?(this.revealRange(s,n),s):(t.backwards?i.start=i.end:i.end=i.start,void this.selection.setRange(i))},e.prototype.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},e.prototype.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},e.prototype.revealRange=function(e,t){this.session.unfold(e),this.selection.setSelectionRange(e);var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},e.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},e.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},e.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach((function(e){e.destroy()})),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},e.prototype.setAutoScrollEditorIntoView=function(e){if(e){var t,n=this,i=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var o=this.$scrollAnchor;o.style.cssText="position:absolute",this.container.insertBefore(o,this.container.firstChild);var s=this.on("changeSelection",(function(){i=!0})),r=this.renderer.on("beforeRender",(function(){i&&(t=n.renderer.container.getBoundingClientRect())})),a=this.renderer.on("afterRender",(function(){if(i&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var e=n.renderer,s=e.$cursorLayer.$pixelPos,r=e.layerConfig,a=s.top-r.offset;null!=(i=s.top>=0&&a+t.top<0||!(s.topwindow.innerHeight)&&null)&&(o.style.top=a+"px",o.style.left=s.left+"px",o.style.height=r.lineHeight+"px",o.scrollIntoView(i)),i=t=null}}));this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",s),this.renderer.off("afterRender",a),this.renderer.off("beforeRender",r))}}},e.prototype.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,s.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},e.prototype.prompt=function(e,t,n){var i=this;b.loadModule("ace/ext/prompt",(function(o){o.prompt(i,e,t,n)}))},e}();S.$uid=0,S.prototype.curOp=null,S.prototype.prevOp={},S.prototype.$mergeableCommands=["backspace","del","insertstring"],S.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],o.implement(S.prototype,m),b.defineOptions(S.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?j.attach(this):j.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?j.attach(this):j.detach(this)}},placeholder:{set:function(e){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var e=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(e&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),s.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(e||this.renderer.placeholderNode)!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"");else{this.renderer.on("afterRender",this.$updatePlaceholder),s.addCssClass(this.container,"ace_hasPlaceholder");var t=s.createElement("div");t.className="ace_placeholder",t.textContent=this.$placeholder||"",this.renderer.placeholderNode=t,this.renderer.content.appendChild(this.renderer.placeholderNode)}}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(e){var t,n={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(e){e.blur(),e.renderer.scroller.focus()},readOnly:!0},i=function(e){if(e.target==this.renderer.scroller&&e.keyCode===k.enter){e.preventDefault();var t=this.getCursorPosition().row;this.isRowVisible(t)||this.scrollToLine(t,!0,!0),this.focus()}};e?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(a.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",x("editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",x("Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",i.bind(this)),this.commands.addCommand(n),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",x("editor")),this.renderer.$gutter.setAttribute("aria-label",x("Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),t||(t=new y(this)),t.addListener()):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",i.bind(this)),this.commands.removeCommand(n),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),t&&t.removeListener())},initialValue:!1},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var j={getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"·":""))+""},getWidth:function(e,t,n){return Math.max(t.toString().length,(n.lastRow+1).toString().length,2)*n.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}};t.Editor=S})),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("../lib/dom"),o=function(){function e(e,t){this.element=e,this.canvasHeight=t||5e5,this.element.style.height=2*this.canvasHeight+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return e.prototype.moveContainer=function(e){i.translate(this.element,0,-e.firstRowScreen*e.lineHeight%this.canvasHeight-e.offset*this.$offsetCoefficient)},e.prototype.pageChanged=function(e,t){return Math.floor(e.firstRowScreen*e.lineHeight/this.canvasHeight)!==Math.floor(t.firstRowScreen*t.lineHeight/this.canvasHeight)},e.prototype.computeLineTop=function(e,t,n){var i=t.firstRowScreen*t.lineHeight,o=Math.floor(i/this.canvasHeight);return n.documentToScreenRow(e,0)*t.lineHeight-o*this.canvasHeight},e.prototype.computeLineHeight=function(e,t,n){return t.lineHeight*n.getRowLineCount(e)},e.prototype.getLength=function(){return this.cells.length},e.prototype.get=function(e){return this.cells[e]},e.prototype.shift=function(){this.$cacheCell(this.cells.shift())},e.prototype.pop=function(){this.$cacheCell(this.cells.pop())},e.prototype.push=function(e){if(Array.isArray(e)){this.cells.push.apply(this.cells,e);for(var t=i.createFragment(this.element),n=0;ns&&(l=o.end.row+1,s=(o=t.getNextFoldLine(l,o))?o.start.row:1/0),l>i){for(;this.$lines.getLength()>a+1;)this.$lines.pop();break}(r=this.$lines.get(++a))?r.row=l:(r=this.$lines.createCell(l,e,this.session,d),this.$lines.push(r)),this.$renderCell(r,e,o,l),l++}this._signal("afterRender"),this.$updateGutterWidth(e)},e.prototype.$updateGutterWidth=function(e){var t=this.session,n=t.gutterRenderer||this.$renderer,i=t.$firstLineNumber,o=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||t.$useWrapMode)&&(o=t.getLength()+i-1);var s=n?n.getWidth(t,o,e):o.toString().length*e.characterWidth,r=this.$padding||this.$computePadding();(s+=r.left+r.right)===this.gutterWidth||isNaN(s)||(this.gutterWidth=s,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",s))},e.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var e=this.session.selection.getCursor();this.$cursorRow!==e.row&&(this.$cursorRow=e.row)}},e.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var n=0;n=this.$cursorRow){if(i.row>this.$cursorRow){var o=this.session.getFoldLine(this.$cursorRow);if(!(n>0&&o&&o.start.row==t[n-1].row))break;i=t[n-1]}i.element.className="ace_gutter-active-line "+i.element.className,this.$cursorCell=i;break}}}}},e.prototype.scrollLines=function(e){var t=this.config;if(this.config=e,this.$updateCursorRow(),this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=Math.min(e.lastRow+e.gutterOffset,this.session.getLength()-1),i=this.oldLastRow;if(this.oldLastRow=n,!t||i0;o--)this.$lines.shift();if(i>n)for(o=this.session.getFoldedRowCount(n+1,i);o>0;o--)this.$lines.pop();e.firstRowi&&this.$lines.push(this.$renderLines(e,i+1,n)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(e)},e.prototype.$renderLines=function(e,t,n){for(var i=[],o=t,s=this.session.getNextFoldLine(o),r=s?s.start.row:1/0;o>r&&(o=s.end.row+1,r=(s=this.session.getNextFoldLine(o,s))?s.start.row:1/0),!(o>n);){var a=this.$lines.createCell(o,e,this.session,d);this.$renderCell(a,e,s,o),i.push(a),o++}return i},e.prototype.$renderCell=function(e,t,n,o){var s=e.element,r=this.session,a=s.childNodes[0],c=s.childNodes[1],d=s.childNodes[2],h=d.firstChild,p=r.$firstLineNumber,u=r.$breakpoints,g=r.$decorations,m=r.gutterRenderer||this.$renderer,f=this.$showFoldWidgets&&r.foldWidgets,_=n?n.start.row:Number.MAX_VALUE,b=t.lineHeight+"px",w=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",v=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",y=(m?m.getText(r,o):o+p).toString();if(this.$highlightGutterLine&&(o==this.$cursorRow||n&&o=_&&this.$cursorRow<=n.end.row)&&(w+="ace_gutter-active-line ",this.$cursorCell!=e&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=e)),u[o]&&(w+=u[o]),g[o]&&(w+=g[o]),this.$annotations[o]&&o!==_&&(w+=this.$annotations[o].className),f){var x=f[o];null==x&&(x=f[o]=r.getFoldWidget(o))}if(x){var C="ace_fold-widget ace_"+x,k="start"==x&&o==_&&on.right-t.right?"foldWidgets":void 0},e}();function d(e){var t=document.createTextNode("");e.appendChild(t);var n=i.createElement("span");e.appendChild(n);var o=i.createElement("span");e.appendChild(o);var s=i.createElement("span");return o.appendChild(s),e}c.prototype.$fixedWidth=!1,c.prototype.$highlightGutterLine=!0,c.prototype.$renderer="",c.prototype.$showLineNumbers=!0,c.prototype.$showFoldWidgets=!0,o.implement(c.prototype,r),t.Gutter=c})),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("../range").Range,o=e("../lib/dom"),s=function(){function e(e){this.element=o.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)}return e.prototype.setPadding=function(e){this.$padding=e},e.prototype.setSession=function(e){this.session=e},e.prototype.setMarkers=function(e){this.markers=e},e.prototype.elt=function(e,t){var n=-1!=this.i&&this.element.childNodes[this.i];n?this.i++:(n=document.createElement("div"),this.element.appendChild(n),this.i=-1),n.style.cssText=t,n.className=e},e.prototype.update=function(e){if(e){var t;for(var n in this.config=e,this.i=0,this.markers){var i=this.markers[n];if(i.range){var o=i.range.clipRows(e.firstRow,e.lastRow);if(!o.isEmpty())if(o=o.toScreenRange(this.session),i.renderer){var s=this.$getTop(o.start.row,e),r=this.$padding+o.start.column*e.characterWidth;i.renderer(t,o,r,s,e)}else"fullLine"==i.type?this.drawFullLineMarker(t,o,i.clazz,e):"screenLine"==i.type?this.drawScreenLineMarker(t,o,i.clazz,e):o.isMultiLine()?"text"==i.type?this.drawTextMarker(t,o,i.clazz,e):this.drawMultiLineMarker(t,o,i.clazz,e):this.drawSingleLineMarker(t,o,i.clazz+" ace_start ace_br15",e)}else i.update(t,this,this.session,e)}if(-1!=this.i)for(;this.ip?4:0)|(c==l?8:0)),o,c==l?0:1,s)},e.prototype.drawMultiLineMarker=function(e,t,n,i,o){var s=this.$padding,r=i.lineHeight,a=this.$getTop(t.start.row,i),l=s+t.start.column*i.characterWidth;if(o=o||"",this.session.$bidiHandler.isBidiRow(t.start.row)?((c=t.clone()).end.row=c.start.row,c.end.column=this.session.getLine(c.start.row).length,this.drawBidiSingleLineMarker(e,c,n+" ace_br1 ace_start",i,null,o)):this.elt(n+" ace_br1 ace_start","height:"+r+"px;right:0;top:"+a+"px;left:"+l+"px;"+(o||"")),this.session.$bidiHandler.isBidiRow(t.end.row)){var c;(c=t.clone()).start.row=c.end.row,c.start.column=0,this.drawBidiSingleLineMarker(e,c,n+" ace_br12",i,null,o)}else{a=this.$getTop(t.end.row,i);var d=t.end.column*i.characterWidth;this.elt(n+" ace_br12","height:"+r+"px;width:"+d+"px;top:"+a+"px;left:"+s+"px;"+(o||""))}if(!((r=(t.end.row-t.start.row-1)*i.lineHeight)<=0)){a=this.$getTop(t.start.row+1,i);var h=(t.start.column?1:0)|(t.end.column?0:8);this.elt(n+(h?" ace_br"+h:""),"height:"+r+"px;right:0;top:"+a+"px;left:"+s+"px;"+(o||""))}},e.prototype.drawSingleLineMarker=function(e,t,n,i,o,s){if(this.session.$bidiHandler.isBidiRow(t.start.row))return this.drawBidiSingleLineMarker(e,t,n,i,o,s);var r=i.lineHeight,a=(t.end.column+(o||0)-t.start.column)*i.characterWidth,l=this.$getTop(t.start.row,i),c=this.$padding+t.start.column*i.characterWidth;this.elt(n,"height:"+r+"px;width:"+a+"px;top:"+l+"px;left:"+c+"px;"+(s||""))},e.prototype.drawBidiSingleLineMarker=function(e,t,n,i,o,s){var r=i.lineHeight,a=this.$getTop(t.start.row,i),l=this.$padding;this.session.$bidiHandler.getSelections(t.start.column,t.end.column).forEach((function(e){this.elt(n,"height:"+r+"px;width:"+(e.width+(o||0))+"px;top:"+a+"px;left:"+(l+e.left)+"px;"+(s||""))}),this)},e.prototype.drawFullLineMarker=function(e,t,n,i,o){var s=this.$getTop(t.start.row,i),r=i.lineHeight;t.start.row!=t.end.row&&(r+=this.$getTop(t.end.row,i)-s),this.elt(n,"height:"+r+"px;top:"+s+"px;left:0;right:0;"+(o||""))},e.prototype.drawScreenLineMarker=function(e,t,n,i,o){var s=this.$getTop(t.start.row,i),r=i.lineHeight;this.elt(n,"height:"+r+"px;top:"+s+"px;left:0;right:0;"+(o||""))},e}();s.prototype.$padding=0,t.Marker=s})),ace.define("ace/layer/text_util",["require","exports","module"],(function(e,t,n){var i=new Set(["text","rparen","lparen"]);t.isTextToken=function(e){return i.has(e)}})),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("../lib/dom"),s=e("../lib/lang"),r=e("./lines").Lines,a=e("../lib/event_emitter").EventEmitter,l=e("../config").nls,c=e("./text_util").isTextToken,d=function(){function e(e){this.dom=o,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new r(this.element)}return e.prototype.$updateEolChar=function(){var e=this.session.doc,t="\n"==e.getNewLineCharacter()&&"windows"!=e.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=t)return this.EOL_CHAR=t,!0},e.prototype.setPadding=function(e){this.$padding=e,this.element.style.margin="0 "+e+"px"},e.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},e.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},e.prototype.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},e.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},e.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},e.prototype.setSession=function(e){this.session=e,e&&this.$computeTabString()},e.prototype.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,"string"==typeof e?(this.showSpaces=/tab/i.test(e),this.showTabs=/space/i.test(e),this.showEOL=/eol/i.test(e)):this.showSpaces=this.showTabs=this.showEOL=e,this.$computeTabString(),!0)},e.prototype.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},e.prototype.setHighlightIndentGuides=function(e){return this.$highlightIndentGuides!==e&&(this.$highlightIndentGuides=e,e)},e.prototype.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],n=1;nd&&(a=l.end.row+1,d=(l=this.session.getNextFoldLine(a,l))?l.start.row:1/0),!(a>o);){var h=s[r++];if(h){this.dom.removeChildren(h),this.$renderLine(h,a,a==d&&l),c&&(h.style.top=this.$lines.computeLineTop(a,e,this.session)+"px");var p=e.lineHeight*this.session.getRowLength(a)+"px";h.style.height!=p&&(c=!0,h.style.height=p)}a++}if(c)for(;r0;o--)this.$lines.shift();if(t.lastRow>e.lastRow)for(o=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);o>0;o--)this.$lines.pop();e.firstRowt.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow)),this.$highlightIndentGuide()},e.prototype.$renderLinesFragment=function(e,t,n){for(var i=[],s=t,r=this.session.getNextFoldLine(s),a=r?r.start.row:1/0;s>a&&(s=r.end.row+1,a=(r=this.session.getNextFoldLine(s,r))?r.start.row:1/0),!(s>n);){var l=this.$lines.createCell(s,e,this.session),c=l.element;this.dom.removeChildren(c),o.setStyle(c.style,"height",this.$lines.computeLineHeight(s,e,this.session)+"px"),o.setStyle(c.style,"top",this.$lines.computeLineTop(s,e,this.session)+"px"),this.$renderLine(c,s,s==a&&r),this.$useLineGroups()?c.className="ace_line_group":c.className="ace_line",i.push(l),s++}return i},e.prototype.update=function(e){this.$lines.moveContainer(e),this.config=e;for(var t=e.firstRow,n=e.lastRow,i=this.$lines;i.getLength();)i.pop();i.push(this.$renderLinesFragment(e,t,n))},e.prototype.$renderToken=function(e,t,n,i){for(var o,r=this,a=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,d=this.dom.createFragment(this.element),h=0;o=a.exec(i);){var p=o[1],u=o[2],g=o[3],m=o[4],f=o[5];if(r.showSpaces||!u){var _=h!=o.index?i.slice(h,o.index):"";if(h=o.index+o[0].length,_&&d.appendChild(this.dom.createTextNode(_,this.element)),p){var b=r.session.getScreenTabSize(t+o.index);d.appendChild(r.$tabStrings[b].cloneNode(!0)),t+=b-1}else u?r.showSpaces?((v=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",v.textContent=s.stringRepeat(r.SPACE_CHAR,u.length),d.appendChild(v)):d.appendChild(this.dom.createTextNode(u,this.element)):g?((v=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",v.textContent=s.stringRepeat(r.SPACE_CHAR,g.length),d.appendChild(v)):m?(t+=1,(v=this.dom.createElement("span")).style.width=2*r.config.characterWidth+"px",v.className=r.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",v.textContent=r.showSpaces?r.SPACE_CHAR:m,d.appendChild(v)):f&&(t+=1,(v=this.dom.createElement("span")).style.width=2*r.config.characterWidth+"px",v.className="ace_cjk",v.textContent=f,d.appendChild(v))}}if(d.appendChild(this.dom.createTextNode(h?i.slice(h):i,this.element)),c(n.type))e.appendChild(d);else{var w="ace_"+n.type.replace(/\./g," ace_"),v=this.dom.createElement("span");"fold"==n.type&&(v.style.width=n.value.length*this.config.characterWidth+"px",v.setAttribute("title",l("Unfold code"))),v.className=w,v.appendChild(d),e.appendChild(v)}return t+i.length},e.prototype.renderIndentGuide=function(e,t,n){var i=t.search(this.$indentGuideRe);if(i<=0||i>=n)return t;if(" "==t[0]){for(var o=(i-=i%this.tabSize)/this.tabSize,s=0;so[s].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}if(!this.$highlightIndentGuideMarker.end&&""!==e[t.row]&&t.column===e[t.row].length)for(this.$highlightIndentGuideMarker.dir=1,s=t.row+1;s0)for(var i=0;i=this.$highlightIndentGuideMarker.start+1){if(i.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(i,t)}}else for(n=e.length-1;n>=0;n--)if(i=e[n],this.$highlightIndentGuideMarker.end&&i.row=r;)a=this.$renderToken(l,a,d,h.substring(0,r-i)),h=h.substring(r-i),i=r,l=this.$createLineElement(),e.appendChild(l),l.appendChild(this.dom.createTextNode(s.stringRepeat(" ",n.indent),this.element)),a=0,r=n[++o]||Number.MAX_VALUE;0!=h.length&&(i+=h.length,a=this.$renderToken(l,a,d,h))}}n[n.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(l,a,null,"",!0)},e.prototype.$renderSimpleLine=function(e,t){for(var n=0,i=0;ithis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,n,o,s);n=this.$renderToken(e,n,o,s)}}},e.prototype.$renderOverflowMessage=function(e,t,n,i,o){n&&this.$renderToken(e,t,n,i.slice(0,this.MAX_LINE_LENGTH-t));var s=this.dom.createElement("span");s.className="ace_inline_button ace_keyword ace_toggle_wrap",s.textContent=o?"":"",e.appendChild(s)},e.prototype.$renderLine=function(e,t,n){if(n||0==n||(n=this.session.getFoldLine(t)),n)var i=this.$getFoldLineTokens(t,n);else i=this.session.getTokens(t);var o=e;if(i.length){var s=this.session.getRowSplitData(t);s&&s.length?(this.$renderWrappedLine(e,i,s),o=e.lastChild):(o=e,this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o)),this.$renderSimpleLine(o,i))}else this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o));if(this.showEOL&&o){n&&(t=n.end.row);var r=this.dom.createElement("span");r.className="ace_invisible ace_invisible_eol",r.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,o.appendChild(r)}},e.prototype.$getFoldLineTokens=function(e,t){var n=this.session,i=[],o=n.getTokens(e);return t.walk((function(e,t,s,r,a){null!=e?i.push({type:"fold",value:e}):(a&&(o=n.getTokens(t)),o.length&&function(e,t,n){for(var o=0,s=0;s+e[o].value.lengthn-t&&(r=r.substring(0,n-t)),i.push({type:e[o].type,value:r}),s=t+r.length,o+=1);sn?i.push({type:e[o].type,value:r.substring(0,n-s)}):i.push(e[o]),s+=r.length,o+=1}}(o,r,s))}),t.end.row,this.session.getLine(t.end.row).length),i},e.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},e}();d.prototype.EOF_CHAR="¶",d.prototype.EOL_CHAR_LF="¬",d.prototype.EOL_CHAR_CRLF="¤",d.prototype.EOL_CHAR=d.prototype.EOL_CHAR_LF,d.prototype.TAB_CHAR="—",d.prototype.SPACE_CHAR="·",d.prototype.$padding=0,d.prototype.MAX_LINE_LENGTH=1e4,d.prototype.showInvisibles=!1,d.prototype.showSpaces=!1,d.prototype.showTabs=!1,d.prototype.showEOL=!1,d.prototype.displayIndentGuides=!0,d.prototype.$highlightIndentGuides=!0,d.prototype.$tabStrings=[],d.prototype.destroy={},d.prototype.onChangeTabSize=d.prototype.$computeTabString,i.implement(d.prototype,a),t.Text=d})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("../lib/dom"),o=function(){function e(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),i.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return e.prototype.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)i.setStyle(t[n].style,"opacity",e?"":"0")},e.prototype.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&i.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},e.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,i.removeCssClass(this.element,"ace_animate-blinking")},e.prototype.setPadding=function(e){this.$padding=e},e.prototype.setSession=function(e){this.session=e},e.prototype.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},e.prototype.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},e.prototype.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,i.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},e.prototype.addCursor=function(){var e=i.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},e.prototype.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},e.prototype.hideCursor=function(){this.isVisible=!1,i.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},e.prototype.showCursor=function(){this.isVisible=!0,i.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},e.prototype.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,i.removeCssClass(this.element,"ace_smooth-blinking")),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&i.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),i.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var t=function(){this.timeoutId=setTimeout((function(){e(!1)}),.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval((function(){e(!0),t()}),this.blinkInterval),t()}else this.$stopCssAnimation()},e.prototype.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var n=this.session.documentToScreenPosition(e);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),top:(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight}},e.prototype.isCursorInView=function(e,t){return e.top>=0&&e.tope.height+e.offset||r.top<0)&&n>1)){var a=this.cursors[o++]||this.addCursor(),l=a.style;this.drawCursor?this.drawCursor(a,r,e,t[n],this.session):this.isCursorInView(r,e)?(i.setStyle(l,"display","block"),i.translate(a,r.left,r.top),i.setStyle(l,"width",Math.round(e.characterWidth)+"px"),i.setStyle(l,"height",e.lineHeight+"px")):i.setStyle(l,"display","none")}}for(;this.cursors.length>o;)this.removeCursor();var c=this.session.getOverwrite();this.$setOverwrite(c),this.$pixelPos=r,this.restartTimer()},e.prototype.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?i.addCssClass(this.element,"ace_overwrite-cursors"):i.removeCssClass(this.element,"ace_overwrite-cursors"))},e.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},e}();o.prototype.$padding=0,o.prototype.drawCursor=null,t.Cursor=o})),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),s=e("./lib/oop"),r=e("./lib/dom"),a=e("./lib/event"),l=e("./lib/event_emitter").EventEmitter,c=32768,d=function(){function e(e,t){this.element=r.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+t,this.inner=r.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,a.addListener(this.element,"scroll",this.onScroll.bind(this)),a.addListener(this.element,"mousedown",a.preventDefault)}return e.prototype.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1},e}();s.implement(d.prototype,l);var h=function(e){function t(t,n){var i=e.call(this,t,"-v")||this;return i.scrollTop=0,i.scrollHeight=0,n.$scrollbarWidth=i.width=r.scrollbarWidth(t.ownerDocument),i.inner.style.width=i.element.style.width=(i.width||15)+5+"px",i.$minWidth=0,i}return o(t,e),t.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},t.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},t.prototype.setHeight=function(e){this.element.style.height=e+"px"},t.prototype.setScrollHeight=function(e){this.scrollHeight=e,e>c?(this.coeff=c/e,e=c):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},t.prototype.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)},t}(d);h.prototype.setInnerHeight=h.prototype.setScrollHeight;var p=function(e){function t(t,n){var i=e.call(this,t,"-h")||this;return i.scrollLeft=0,i.height=n.$scrollbarWidth,i.inner.style.height=i.element.style.height=(i.height||15)+5+"px",i}return o(t,e),t.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},t.prototype.getHeight=function(){return this.isVisible?this.height:0},t.prototype.setWidth=function(e){this.element.style.width=e+"px"},t.prototype.setInnerWidth=function(e){this.inner.style.width=e+"px"},t.prototype.setScrollWidth=function(e){this.inner.style.width=e+"px"},t.prototype.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)},t}(d);t.ScrollBar=h,t.ScrollBarV=h,t.ScrollBarH=p,t.VScrollBar=h,t.HScrollBar=p})),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),s=e("./lib/oop"),r=e("./lib/dom"),a=e("./lib/event"),l=e("./lib/event_emitter").EventEmitter;r.importCssString(".ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{\n position: absolute;\n background: rgba(128, 128, 128, 0.6);\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n border: 1px solid #bbb;\n border-radius: 2px;\n z-index: 8;\n}\n.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {\n position: absolute;\n z-index: 6;\n background: none;\n overflow: hidden!important;\n}\n.ace_editor>.ace_sb-v {\n z-index: 6;\n right: 0;\n top: 0;\n width: 12px;\n}\n.ace_editor>.ace_sb-v div {\n z-index: 8;\n right: 0;\n width: 100%;\n}\n.ace_editor>.ace_sb-h {\n bottom: 0;\n left: 0;\n height: 12px;\n}\n.ace_editor>.ace_sb-h div {\n bottom: 0;\n height: 100%;\n}\n.ace_editor>.ace_sb_grabbed {\n z-index: 8;\n background: #000;\n}","ace_scrollbar.css",!1);var c=function(){function e(e,t){this.element=r.createElement("div"),this.element.className="ace_sb"+t,this.inner=r.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,a.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return e.prototype.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1},e}();s.implement(c.prototype,l);var d=function(e){function t(t,n){var i=e.call(this,t,"-v")||this;return i.scrollTop=0,i.scrollHeight=0,i.parent=t,i.width=i.VScrollWidth,i.renderer=n,i.inner.style.width=i.element.style.width=(i.width||15)+"px",i.$minWidth=0,i}return o(t,e),t.prototype.onMouseDown=function(e,t){if("mousedown"===e&&0===a.getButton(t)&&2!==t.detail){if(t.target===this.inner){var n=this,i=t.clientY,o=t.clientY,s=this.thumbTop;a.capture(this.inner,(function(e){i=e.clientY}),(function(){clearInterval(r)}));var r=setInterval((function(){if(void 0!==i){var e=n.scrollTopFromThumbTop(s+i-o);e!==n.scrollTop&&n._emit("scroll",{data:e})}}),20);return a.preventDefault(t)}var l=t.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(l)}),a.preventDefault(t)}},t.prototype.getHeight=function(){return this.height},t.prototype.scrollTopFromThumbTop=function(e){var t=e*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return(t|=0)<0?t=0:t>this.pageHeight-this.viewHeight&&(t=this.pageHeight-this.viewHeight),t},t.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},t.prototype.setHeight=function(e){this.height=Math.max(0,e),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},t.prototype.setScrollHeight=function(e,t){(this.pageHeight!==e||t)&&(this.pageHeight=e,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},t.prototype.setScrollTop=function(e){this.scrollTop=e,e<0&&(e=0),this.thumbTop=e*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},t}(c);d.prototype.setInnerHeight=d.prototype.setScrollHeight;var h=function(e){function t(t,n){var i=e.call(this,t,"-h")||this;return i.scrollLeft=0,i.scrollWidth=0,i.height=i.HScrollHeight,i.inner.style.height=i.element.style.height=(i.height||12)+"px",i.renderer=n,i}return o(t,e),t.prototype.onMouseDown=function(e,t){if("mousedown"===e&&0===a.getButton(t)&&2!==t.detail){if(t.target===this.inner){var n=this,i=t.clientX,o=t.clientX,s=this.thumbLeft;a.capture(this.inner,(function(e){i=e.clientX}),(function(){clearInterval(r)}));var r=setInterval((function(){if(void 0!==i){var e=n.scrollLeftFromThumbLeft(s+i-o);e!==n.scrollLeft&&n._emit("scroll",{data:e})}}),20);return a.preventDefault(t)}var l=t.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(l)}),a.preventDefault(t)}},t.prototype.getHeight=function(){return this.isVisible?this.height:0},t.prototype.scrollLeftFromThumbLeft=function(e){var t=e*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return(t|=0)<0?t=0:t>this.pageWidth-this.viewWidth&&(t=this.pageWidth-this.viewWidth),t},t.prototype.setWidth=function(e){this.width=Math.max(0,e),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},t.prototype.setScrollWidth=function(e,t){(this.pageWidth!==e||t)&&(this.pageWidth=e,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},t.prototype.setScrollLeft=function(e){this.scrollLeft=e,e<0&&(e=0),this.thumbLeft=e*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},t}(c);h.prototype.setInnerWidth=h.prototype.setScrollWidth,t.ScrollBar=d,t.ScrollBarV=d,t.ScrollBarH=h,t.VScrollBar=d,t.HScrollBar=h})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(e,t,n){"use strict";var i=e("./lib/event"),o=function(){function e(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var n=this;this._flush=function(e){n.pending=!1;var t=n.changes;if(t&&(i.blockIdle(100),n.changes=0,n.onRender(t)),n.changes){if(n.$recursionLimit--<0)return;n.schedule()}else n.$recursionLimit=2}}return e.prototype.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(i.nextFrame(this._flush),this.pending=!0)},e.prototype.clear=function(e){var t=this.changes;return this.changes=0,t},e}();t.RenderLoop=o})),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],(function(e,t,n){var i=e("../lib/oop"),o=e("../lib/dom"),s=e("../lib/lang"),r=e("../lib/event"),a=e("../lib/useragent"),l=e("../lib/event_emitter").EventEmitter,c=512,d="function"==typeof ResizeObserver,h=200,p=function(){function e(e){this.el=o.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=o.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=o.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.textContent=s.stringRepeat("X",c),this.$characterSize={width:0,height:0},d?this.$addObserver():this.checkForSizeChanges()}return e.prototype.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",a.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},e.prototype.checkForSizeChanges=function(e){if(void 0===e&&(e=this.$measureSizes()),e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},e.prototype.$addObserver=function(){var e=this;this.$observer=new window.ResizeObserver((function(t){e.checkForSizeChanges()})),this.$observer.observe(this.$measureNode)},e.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=r.onIdle((function t(){e.checkForSizeChanges(),r.onIdle(t,500)}),500)},e.prototype.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},e.prototype.$measureSizes=function(e){var t={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/c};return 0===t.width||0===t.height?null:t},e.prototype.$measureCharWidth=function(e){return this.$main.textContent=s.stringRepeat(e,c),this.$main.getBoundingClientRect().width/c},e.prototype.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},e.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},e.prototype.$getZoom=function(e){return e&&e.parentElement?(window.getComputedStyle(e).zoom||1)*this.$getZoom(e.parentElement):1},e.prototype.$initTransformMeasureNodes=function(){var e=function(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]};this.els=o.buildDom([e(0,0),e(h,0),e(0,h),e(h,h)],this.el)},e.prototype.transformCoordinates=function(e,t){function n(e,t,n){var i=e[1]*t[0]-e[0]*t[1];return[(-t[1]*n[0]+t[0]*n[1])/i,(+e[1]*n[0]-e[0]*n[1])/i]}function i(e,t){return[e[0]-t[0],e[1]-t[1]]}function o(e,t){return[e[0]+t[0],e[1]+t[1]]}function s(e,t){return[e*t[0],e*t[1]]}function r(e){var t=e.getBoundingClientRect();return[t.left,t.top]}e&&(e=s(1/this.$getZoom(this.el),e)),this.els||this.$initTransformMeasureNodes();var a=r(this.els[0]),l=r(this.els[1]),c=r(this.els[2]),d=r(this.els[3]),p=n(i(d,l),i(d,c),i(o(l,c),o(d,a))),u=s(1+p[0],i(l,a)),g=s(1+p[1],i(c,a));if(t){var m=t,f=p[0]*m[0]/h+p[1]*m[1]/h+1,_=o(s(m[0],u),s(m[1],g));return o(s(1/f/h,_),a)}var b=i(e,a),w=n(i(u,s(p[0],b)),i(g,s(p[1],b)),b);return s(h,w)},e}();p.prototype.$characterSize={width:0,height:0},i.implement(p.prototype,l),t.FontMetrics=p})),ace.define("ace/css/editor-css",["require","exports","module"],(function(e,t,n){n.exports='\n.ace_br1 {border-top-left-radius : 3px;}\n.ace_br2 {border-top-right-radius : 3px;}\n.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}\n.ace_br4 {border-bottom-right-radius: 3px;}\n.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}\n.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}\n.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}\n.ace_br8 {border-bottom-left-radius : 3px;}\n.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}\n.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}\n.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n\n\n.ace_editor {\n position: relative;\n overflow: hidden;\n padding: 0;\n font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'Source Code Pro\', \'source-code-pro\', monospace;\n direction: ltr;\n text-align: left;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n\n.ace_scroller {\n position: absolute;\n overflow: hidden;\n top: 0;\n bottom: 0;\n background-color: inherit;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n cursor: text;\n}\n\n.ace_content {\n position: absolute;\n box-sizing: border-box;\n min-width: 100%;\n contain: style size layout;\n font-variant-ligatures: no-common-ligatures;\n}\n\n.ace_keyboard-focus:focus {\n box-shadow: inset 0 0 0 2px #5E9ED6;\n outline: none;\n}\n\n.ace_dragging .ace_scroller:before{\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n content: \'\';\n background: rgba(250, 250, 250, 0.01);\n z-index: 1000;\n}\n.ace_dragging.ace_dark .ace_scroller:before{\n background: rgba(0, 0, 0, 0.01);\n}\n\n.ace_gutter {\n position: absolute;\n overflow : hidden;\n width: auto;\n top: 0;\n bottom: 0;\n left: 0;\n cursor: default;\n z-index: 4;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n contain: style size layout;\n}\n\n.ace_gutter-active-line {\n position: absolute;\n left: 0;\n right: 0;\n}\n\n.ace_scroller.ace_scroll-left:after {\n content: "";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;\n pointer-events: none;\n}\n\n.ace_gutter-cell, .ace_gutter-cell_svg-icons {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n padding-left: 19px;\n padding-right: 6px;\n background-repeat: no-repeat;\n}\n\n.ace_gutter-cell_svg-icons .ace_gutter_annotation {\n margin-left: -14px;\n float: left;\n}\n\n.ace_gutter-cell .ace_gutter_annotation {\n margin-left: -19px;\n float: left;\n}\n\n.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");\n background-repeat: no-repeat;\n background-position: 2px center;\n}\n\n.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");\n background-repeat: no-repeat;\n background-position: 2px center;\n}\n\n.ace_gutter-cell.ace_info, .ace_icon.ace_info {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");\n background-repeat: no-repeat;\n background-position: 2px center;\n}\n.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");\n}\n\n.ace_icon_svg.ace_error {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");\n background-color: crimson;\n}\n.ace_icon_svg.ace_warning {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");\n background-color: darkorange;\n}\n.ace_icon_svg.ace_info {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");\n background-color: royalblue;\n}\n\n.ace_icon_svg.ace_error_fold {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");\n background-color: crimson;\n}\n.ace_icon_svg.ace_warning_fold {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");\n background-color: darkorange;\n}\n\n.ace_scrollbar {\n contain: strict;\n position: absolute;\n right: 0;\n bottom: 0;\n z-index: 6;\n}\n\n.ace_scrollbar-inner {\n position: absolute;\n cursor: text;\n left: 0;\n top: 0;\n}\n\n.ace_scrollbar-v{\n overflow-x: hidden;\n overflow-y: scroll;\n top: 0;\n}\n\n.ace_scrollbar-h {\n overflow-x: scroll;\n overflow-y: hidden;\n left: 0;\n}\n\n.ace_print-margin {\n position: absolute;\n height: 100%;\n}\n\n.ace_text-input {\n position: absolute;\n z-index: 0;\n width: 0.5em;\n height: 1em;\n opacity: 0;\n background: transparent;\n -moz-appearance: none;\n appearance: none;\n border: none;\n resize: none;\n outline: none;\n overflow: hidden;\n font: inherit;\n padding: 0 1px;\n margin: 0 -1px;\n contain: strict;\n -ms-user-select: text;\n -moz-user-select: text;\n -webkit-user-select: text;\n user-select: text;\n /*with `pre-line` chrome inserts instead of space*/\n white-space: pre!important;\n}\n.ace_text-input.ace_composition {\n background: transparent;\n color: inherit;\n z-index: 1000;\n opacity: 1;\n}\n.ace_composition_placeholder { color: transparent }\n.ace_composition_marker { \n border-bottom: 1px solid;\n position: absolute;\n border-radius: 0;\n margin-top: 1px;\n}\n\n[ace_nocontext=true] {\n transform: none!important;\n filter: none!important;\n clip-path: none!important;\n mask : none!important;\n contain: none!important;\n perspective: none!important;\n mix-blend-mode: initial!important;\n z-index: auto;\n}\n\n.ace_layer {\n z-index: 1;\n position: absolute;\n overflow: hidden;\n /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/\n word-wrap: normal;\n white-space: pre;\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n /* setting pointer-events: auto; on node under the mouse, which changes\n during scroll, will break mouse wheel scrolling in Safari */\n pointer-events: none;\n}\n\n.ace_gutter-layer {\n position: relative;\n width: auto;\n text-align: right;\n pointer-events: auto;\n height: 1000000px;\n contain: style size layout;\n}\n\n.ace_text-layer {\n font: inherit !important;\n position: absolute;\n height: 1000000px;\n width: 1000000px;\n contain: style size layout;\n}\n\n.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {\n contain: style size layout;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n}\n\n.ace_hidpi .ace_text-layer,\n.ace_hidpi .ace_gutter-layer,\n.ace_hidpi .ace_content,\n.ace_hidpi .ace_gutter {\n contain: strict;\n}\n.ace_hidpi .ace_text-layer > .ace_line, \n.ace_hidpi .ace_text-layer > .ace_line_group {\n contain: strict;\n}\n\n.ace_cjk {\n display: inline-block;\n text-align: center;\n}\n\n.ace_cursor-layer {\n z-index: 4;\n}\n\n.ace_cursor {\n z-index: 4;\n position: absolute;\n box-sizing: border-box;\n border-left: 2px solid;\n /* workaround for smooth cursor repaintng whole screen in chrome */\n transform: translatez(0);\n}\n\n.ace_multiselect .ace_cursor {\n border-left-width: 1px;\n}\n\n.ace_slim-cursors .ace_cursor {\n border-left-width: 1px;\n}\n\n.ace_overwrite-cursors .ace_cursor {\n border-left-width: 0;\n border-bottom: 1px solid;\n}\n\n.ace_hidden-cursors .ace_cursor {\n opacity: 0.2;\n}\n\n.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {\n opacity: 0;\n}\n\n.ace_smooth-blinking .ace_cursor {\n transition: opacity 0.18s;\n}\n\n.ace_animate-blinking .ace_cursor {\n animation-duration: 1000ms;\n animation-timing-function: step-end;\n animation-name: blink-ace-animate;\n animation-iteration-count: infinite;\n}\n\n.ace_animate-blinking.ace_smooth-blinking .ace_cursor {\n animation-duration: 1000ms;\n animation-timing-function: ease-in-out;\n animation-name: blink-ace-animate-smooth;\n}\n \n@keyframes blink-ace-animate {\n from, to { opacity: 1; }\n 60% { opacity: 0; }\n}\n\n@keyframes blink-ace-animate-smooth {\n from, to { opacity: 1; }\n 45% { opacity: 1; }\n 60% { opacity: 0; }\n 85% { opacity: 0; }\n}\n\n.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {\n position: absolute;\n z-index: 3;\n}\n\n.ace_marker-layer .ace_selection {\n position: absolute;\n z-index: 5;\n}\n\n.ace_marker-layer .ace_bracket {\n position: absolute;\n z-index: 6;\n}\n\n.ace_marker-layer .ace_error_bracket {\n position: absolute;\n border-bottom: 1px solid #DE5555;\n border-radius: 0;\n}\n\n.ace_marker-layer .ace_active-line {\n position: absolute;\n z-index: 2;\n}\n\n.ace_marker-layer .ace_selected-word {\n position: absolute;\n z-index: 4;\n box-sizing: border-box;\n}\n\n.ace_line .ace_fold {\n box-sizing: border-box;\n\n display: inline-block;\n height: 11px;\n margin-top: -2px;\n vertical-align: middle;\n\n background-image:\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");\n background-repeat: no-repeat, repeat-x;\n background-position: center center, top left;\n color: transparent;\n\n border: 1px solid black;\n border-radius: 2px;\n\n cursor: pointer;\n pointer-events: auto;\n}\n\n.ace_dark .ace_fold {\n}\n\n.ace_fold:hover{\n background-image:\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");\n}\n\n.ace_tooltip {\n background-color: #f5f5f5;\n border: 1px solid gray;\n border-radius: 1px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);\n color: black;\n max-width: 100%;\n padding: 3px 4px;\n position: fixed;\n z-index: 999999;\n box-sizing: border-box;\n cursor: default;\n white-space: pre;\n word-wrap: break-word;\n line-height: normal;\n font-style: normal;\n font-weight: normal;\n letter-spacing: normal;\n pointer-events: none;\n}\n\n.ace_tooltip.ace_dark {\n background-color: #636363;\n color: #fff;\n}\n\n.ace_tooltip:focus {\n outline: 1px solid #5E9ED6;\n}\n\n.ace_icon {\n display: inline-block;\n width: 18px;\n vertical-align: top;\n}\n\n.ace_icon_svg {\n display: inline-block;\n width: 12px;\n vertical-align: top;\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-size: 12px;\n -webkit-mask-position: center;\n}\n\n.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {\n padding-right: 13px;\n}\n\n.ace_fold-widget {\n box-sizing: border-box;\n\n margin: 0 -12px 0 1px;\n display: none;\n width: 11px;\n vertical-align: top;\n\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");\n background-repeat: no-repeat;\n background-position: center;\n\n border-radius: 3px;\n \n border: 1px solid transparent;\n cursor: pointer;\n}\n\n.ace_folding-enabled .ace_fold-widget {\n display: inline-block; \n}\n\n.ace_fold-widget.ace_end {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");\n}\n\n.ace_fold-widget.ace_closed {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");\n}\n\n.ace_fold-widget:hover {\n border: 1px solid rgba(0, 0, 0, 0.3);\n background-color: rgba(255, 255, 255, 0.2);\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);\n}\n\n.ace_fold-widget:active {\n border: 1px solid rgba(0, 0, 0, 0.4);\n background-color: rgba(0, 0, 0, 0.05);\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);\n}\n/**\n * Dark version for fold widgets\n */\n.ace_dark .ace_fold-widget {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");\n}\n.ace_dark .ace_fold-widget.ace_end {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget.ace_closed {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget:hover {\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n background-color: rgba(255, 255, 255, 0.1);\n}\n.ace_dark .ace_fold-widget:active {\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n}\n\n.ace_inline_button {\n border: 1px solid lightgray;\n display: inline-block;\n margin: -1px 8px;\n padding: 0 5px;\n pointer-events: auto;\n cursor: pointer;\n}\n.ace_inline_button:hover {\n border-color: gray;\n background: rgba(200,200,200,0.2);\n display: inline-block;\n pointer-events: auto;\n}\n\n.ace_fold-widget.ace_invalid {\n background-color: #FFB4B4;\n border-color: #DE5555;\n}\n\n.ace_fade-fold-widgets .ace_fold-widget {\n transition: opacity 0.4s ease 0.05s;\n opacity: 0;\n}\n\n.ace_fade-fold-widgets:hover .ace_fold-widget {\n transition: opacity 0.05s ease 0.05s;\n opacity:1;\n}\n\n.ace_underline {\n text-decoration: underline;\n}\n\n.ace_bold {\n font-weight: bold;\n}\n\n.ace_nobold .ace_bold {\n font-weight: normal;\n}\n\n.ace_italic {\n font-style: italic;\n}\n\n\n.ace_error-marker {\n background-color: rgba(255, 0, 0,0.2);\n position: absolute;\n z-index: 9;\n}\n\n.ace_highlight-marker {\n background-color: rgba(255, 255, 0,0.2);\n position: absolute;\n z-index: 8;\n}\n\n.ace_mobile-menu {\n position: absolute;\n line-height: 1.5;\n border-radius: 4px;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n background: white;\n box-shadow: 1px 3px 2px grey;\n border: 1px solid #dcdcdc;\n color: black;\n}\n.ace_dark > .ace_mobile-menu {\n background: #333;\n color: #ccc;\n box-shadow: 1px 3px 2px grey;\n border: 1px solid #444;\n\n}\n.ace_mobile-button {\n padding: 2px;\n cursor: pointer;\n overflow: hidden;\n}\n.ace_mobile-button:hover {\n background-color: #eee;\n opacity:1;\n}\n.ace_mobile-button:active {\n background-color: #ddd;\n}\n\n.ace_placeholder {\n font-family: arial;\n transform: scale(0.9);\n transform-origin: left;\n white-space: pre;\n opacity: 0.7;\n margin: 0 10px;\n}\n\n.ace_ghost_text {\n opacity: 0.5;\n font-style: italic;\n white-space: pre;\n}\n\n.ace_screenreader-only {\n position:absolute;\n left:-10000px;\n top:auto;\n width:1px;\n height:1px;\n overflow:hidden;\n}'})),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("../lib/dom"),o=e("../lib/oop"),s=e("../lib/event_emitter").EventEmitter,r=function(){function e(e,t){this.canvas=i.createElement("canvas"),this.renderer=t,this.pixelRatio=1,this.maxHeight=t.layerConfig.maxHeight,this.lineHeight=t.layerConfig.lineHeight,this.canvasHeight=e.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=e.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},e.element.appendChild(this.canvas)}return e.prototype.$updateDecorators=function(e){var t=!0===this.renderer.theme.isDark?this.colors.dark:this.colors.light;e&&(this.maxHeight=e.maxHeight,this.lineHeight=e.lineHeight,this.canvasHeight=e.height,(e.lastRow+1)*this.lineHeightt.priority?1:0}));for(var s=this.renderer.session.$foldData,r=0;rthis.canvasHeight&&(p=this.canvasHeight-this.halfMinDecorationHeight),d=Math.round(p-this.halfMinDecorationHeight),h=Math.round(p+this.halfMinDecorationHeight)}n.fillStyle=t[i[r].type]||null,n.fillRect(0,c,this.canvasWidth,h-d)}}var u=this.renderer.session.selection.getCursor();u&&(l=this.compensateFoldRows(u.row,s),c=Math.round((u.row-l)*this.lineHeight*this.heightRatio),n.fillStyle="rgba(0, 0, 0, 0.5)",n.fillRect(0,c,this.canvasWidth,2))},e.prototype.compensateFoldRows=function(e,t){var n=0;if(t&&t.length>0)for(var i=0;it[i].start.row&&e=t[i].end.row&&(n+=t[i].end.row-t[i].start.row);return n},e}();o.implement(r.prototype,s),t.Decorator=r})),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=e("./lib/dom"),s=e("./lib/lang"),r=e("./config"),a=e("./layer/gutter").Gutter,l=e("./layer/marker").Marker,c=e("./layer/text").Text,d=e("./layer/cursor").Cursor,h=e("./scrollbar").HScrollBar,p=e("./scrollbar").VScrollBar,u=e("./scrollbar_custom").HScrollBar,g=e("./scrollbar_custom").VScrollBar,m=e("./renderloop").RenderLoop,f=e("./layer/font_metrics").FontMetrics,_=e("./lib/event_emitter").EventEmitter,b=e("./css/editor-css"),w=e("./layer/decorators").Decorator,v=e("./lib/useragent");o.importCssString(b,"ace_editor.css",!1);var y=function(){function e(e,t){var n=this;this.container=e||o.createElement("div"),o.addCssClass(this.container,"ace_editor"),o.HI_DPI&&o.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),null==r.get("useStrictCSP")&&r.set("useStrictCSP",!1),this.$gutter=o.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=o.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=o.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new a(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new l(this.content);var i=this.$textLayer=new c(this.content);this.canvas=i.element,this.$markerFront=new l(this.content),this.$cursorLayer=new d(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new p(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.on("scroll",(function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)})),this.scrollBarH.on("scroll",(function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)})),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new f(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",(function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal("changeCharacterSize",e)})),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!v.isIOS,this.$loop=new m(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),r.resetOptions(this),r._signal("renderer",this)}return e.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),o.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},e.prototype.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},e.prototype.updateLines=function(e,t,n){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},e.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},e.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},e.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},e.prototype.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},e.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},e.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},e.prototype.onResize=function(e,t,n,i){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var o=this.container;i||(i=o.clientHeight||o.scrollHeight),n||(n=o.clientWidth||o.scrollWidth);var s=this.$updateCachedSize(e,t,n,i);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!n&&!i)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(s|this.$changes,!0):this.$loop.schedule(s|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},e.prototype.$updateCachedSize=function(e,t,n,i){i-=this.$extraHeight||0;var s=0,r=this.$size,a={width:r.width,height:r.height,scrollerHeight:r.scrollerHeight,scrollerWidth:r.scrollerWidth};if(i&&(e||r.height!=i)&&(r.height=i,s|=this.CHANGE_SIZE,r.scrollerHeight=r.height,this.$horizScroll&&(r.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(r.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",s|=this.CHANGE_SCROLL),n&&(e||r.width!=n)){s|=this.CHANGE_SIZE,r.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,o.setStyle(this.scrollBarH.element.style,"left",t+"px"),o.setStyle(this.scroller.style,"left",t+this.margin.left+"px"),r.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()-this.margin.h),o.setStyle(this.$gutter.style,"left",this.margin.left+"px");var l=this.scrollBarV.getWidth()+"px";o.setStyle(this.scrollBarH.element.style,"right",l),o.setStyle(this.scroller.style,"right",l),o.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(r.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(s|=this.CHANGE_FULL)}return r.$dirty=!n||!i,s&&this._signal("resize",a),s},e.prototype.onGutterResize=function(e){var t=this.$showGutter?e:0;t!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,t,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},e.prototype.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},e.prototype.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},e.prototype.getAnimatedScroll=function(){return this.$animatedScroll},e.prototype.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},e.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},e.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},e.prototype.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},e.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},e.prototype.setHighlightIndentGuides=function(e){this.setOption("highlightIndentGuides",e)},e.prototype.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},e.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},e.prototype.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},e.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},e.prototype.getShowGutter=function(){return this.getOption("showGutter")},e.prototype.setShowGutter=function(e){return this.setOption("showGutter",e)},e.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},e.prototype.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},e.prototype.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},e.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},e.prototype.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=o.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=o.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},e.prototype.getContainerElement=function(){return this.container},e.prototype.getMouseEventTarget=function(){return this.scroller},e.prototype.getTextAreaContainer=function(){return this.container},e.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var e=this.textarea.style,t=this.$composition;if(this.$keepTextAreaAtCursor||t){var n=this.$cursorLayer.$pixelPos;if(n){t&&t.markerRange&&(n=this.$cursorLayer.getPixelPosition(t.markerRange.start,!0));var i=this.layerConfig,s=n.top,r=n.left;s-=i.offset;var a=t&&t.useTextareaForIME||v.isMobile?this.lineHeight:1;if(s<0||s>i.height-a)o.translate(this.textarea,0,0);else{var l=1,c=this.$size.height-a;if(t)if(t.useTextareaForIME){var d=this.textarea.value;l=this.characterWidth*this.session.$getStringScreenWidth(d)[0]}else s+=this.lineHeight+2;else s+=this.lineHeight;(r-=this.scrollLeft)>this.$size.scrollerWidth-l&&(r=this.$size.scrollerWidth-l),r+=this.gutterWidth+this.margin.left,o.setStyle(e,"height",a+"px"),o.setStyle(e,"width",l+"px"),o.translate(this.textarea,Math.min(r,this.$size.scrollerWidth-l),Math.min(s,c))}}}else o.translate(this.textarea,-100,0)}},e.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},e.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},e.prototype.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},e.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},e.prototype.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},e.prototype.setScrollMargin=function(e,t,n,i){var o=this.scrollMargin;o.top=0|e,o.bottom=0|t,o.right=0|i,o.left=0|n,o.v=o.top+o.bottom,o.h=o.left+o.right,o.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-o.top),this.updateFull()},e.prototype.setMargin=function(e,t,n,i){var o=this.margin;o.top=0|e,o.bottom=0|t,o.right=0|i,o.left=0|n,o.v=o.top+o.bottom,o.h=o.left+o.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},e.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},e.prototype.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},e.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},e.prototype.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},e.prototype.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},e.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},e.prototype.freeze=function(){this.$frozen=!0},e.prototype.unfreeze=function(){this.$frozen=!1},e.prototype.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",e),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig()|this.$loop.clear(),n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var i=this.scrollTop+(n.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;i>0&&(this.scrollTop=i,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig()|this.$loop.clear())}n=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),o.translate(this.content,-this.scrollLeft,-n.offset);var s=n.width+2*this.$padding+"px",r=n.minHeight+"px";o.setStyle(this.content.style,"width",s),o.setStyle(this.content.style,"height",r)}if(e&this.CHANGE_H_SCROLL&&(o.translate(this.content,-this.scrollLeft,-n.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),e&this.CHANGE_FULL)return this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);if(e&this.CHANGE_SCROLL)return this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(n):this.$gutterLayer.scrollLines(n)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)):e&this.CHANGE_LINES?((this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)):e&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(n),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(n),this._signal("afterRender",e)}else this.$changes|=e},e.prototype.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&n>this.$maxPixelHeight&&(n=this.$maxPixelHeight);var i=!(n<=2*this.lineHeight)&&e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||i!=this.$vScroll){i!=this.$vScroll&&(this.$vScroll=i,this.scrollBarV.setVisible(i));var o=this.container.clientWidth;this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,o,n),this.desiredHeight=n,this._signal("autosize")}},e.prototype.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,i=this.session.getScreenLength()*this.lineHeight,o=this.$getLongestLine(),s=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-o-2*this.$padding<0),r=this.$horizScroll!==s;r&&(this.$horizScroll=s,this.scrollBarH.setVisible(s));var a=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var l=t.scrollerHeight+this.lineHeight,c=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;i+=c;var d=this.scrollMargin;this.session.setScrollTop(Math.max(-d.top,Math.min(this.scrollTop,i-t.scrollerHeight+d.bottom))),this.session.setScrollLeft(Math.max(-d.left,Math.min(this.scrollLeft,o+2*this.$padding-t.scrollerWidth+d.right)));var h=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-i+c<0||this.scrollTop>d.top),p=a!==h;p&&(this.$vScroll=h,this.scrollBarV.setVisible(h));var u,g,m=this.scrollTop%this.lineHeight,f=Math.ceil(l/this.lineHeight)-1,_=Math.max(0,Math.round((this.scrollTop-m)/this.lineHeight)),b=_+f,w=this.lineHeight;_=e.screenToDocumentRow(_,0);var v=e.getFoldLine(_);v&&(_=v.start.row),u=e.documentToScreenRow(_,0),g=e.getRowLength(_)*w,b=Math.min(e.screenToDocumentRow(b,0),e.getLength()-1),l=t.scrollerHeight+e.getRowLength(b)*w+g,m=this.scrollTop-u*w;var y=0;return(this.layerConfig.width!=o||r)&&(y=this.CHANGE_H_SCROLL),(r||p)&&(y|=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),p&&(o=this.$getLongestLine())),this.layerConfig={width:o,padding:this.$padding,firstRow:_,firstRowScreen:u,lastRow:b,lineHeight:w,characterWidth:this.characterWidth,minHeight:l,maxHeight:i,offset:m,gutterOffset:w?Math.max(0,Math.ceil((m+t.height-t.scrollerHeight)/w)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(o-this.$padding),y},e.prototype.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(!(e>n.lastRow+1||tthis.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},e.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},e.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},e.prototype.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},e.prototype.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},e.prototype.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},e.prototype.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},e.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},e.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},e.prototype.showCursor=function(){this.$cursorLayer.showCursor()},e.prototype.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},e.prototype.scrollCursorIntoView=function(e,t,n){if(0!==this.$size.scrollerHeight){var i=this.$cursorLayer.getPixelPosition(e),o=i.left,s=i.top,r=n&&n.top||0,a=n&&n.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var l=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;l+r>s?(t&&l+r>s+this.lineHeight&&(s-=t*this.$size.scrollerHeight),0===s&&(s=-this.scrollMargin.top),this.session.setScrollTop(s)):l+this.$size.scrollerHeight-a=1-this.scrollMargin.top||t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0},e.prototype.pixelToScreenCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var i=this.$fontMetrics.transformCoordinates([e,t]);e=i[1]-this.gutterWidth-this.margin.left,t=i[0]}else n=this.scroller.getBoundingClientRect();var o=e+this.scrollLeft-n.left-this.$padding,s=o/this.characterWidth,r=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),a=this.$blockCursor?Math.floor(s):Math.round(s);return{row:r,column:a,side:s-a>0?1:-1,offsetX:o}},e.prototype.screenToTextCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var i=this.$fontMetrics.transformCoordinates([e,t]);e=i[1]-this.gutterWidth-this.margin.left,t=i[0]}else n=this.scroller.getBoundingClientRect();var o=e+this.scrollLeft-n.left-this.$padding,s=o/this.characterWidth,r=this.$blockCursor?Math.floor(s):Math.round(s),a=Math.floor((t+this.scrollTop-n.top)/this.lineHeight);return this.session.screenToDocumentPosition(a,Math.max(r,0),o)},e.prototype.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),i=this.session.documentToScreenPosition(e,t),o=this.$padding+(this.session.$bidiHandler.isBidiRow(i.row,e)?this.session.$bidiHandler.getPosLeft(i.column):Math.round(i.column*this.characterWidth)),s=i.row*this.lineHeight;return{pageX:n.left+o-this.scrollLeft,pageY:n.top+s-this.scrollTop}},e.prototype.visualizeFocus=function(){o.addCssClass(this.container,"ace_focus")},e.prototype.visualizeBlur=function(){o.removeCssClass(this.container,"ace_focus")},e.prototype.showComposition=function(e){this.$composition=e,e.cssText||(e.cssText=this.textarea.style.cssText),null==e.useTextareaForIME&&(e.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(o.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):e.markerId=this.session.addMarker(e.markerRange,"ace_composition_marker","text")},e.prototype.setCompositionText=function(e){var t=this.session.selection.cursor;this.addToken(e,"composition_placeholder",t.row,t.column),this.$moveTextAreaToCursor()},e.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),o.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var e=this.session.selection.cursor;this.removeExtraToken(e.row,e.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},e.prototype.setGhostText=function(e,t){var n=this.session.selection.cursor,i=t||{row:n.row,column:n.column};this.removeGhostText();var o=e.split("\n");this.addToken(o[0],"ghost_text",i.row,i.column),this.$ghostText={text:e,position:{row:i.row,column:i.column}},o.length>1&&(this.$ghostTextWidget={text:o.slice(1).join("\n"),row:i.row,column:i.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget))},e.prototype.removeGhostText=function(){if(this.$ghostText){var e=this.$ghostText.position;this.removeExtraToken(e.row,e.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},e.prototype.addToken=function(e,t,n,i){var o=this.session;o.bgTokenizer.lines[n]=null;var s={type:t,value:e},r=o.getTokens(n);if(null!=i&&r.length)for(var a=0,l=0;l1||Math.abs(e.$size.height-i)>1?e.$resizeTimer.delay():e.$resizeTimer.cancel()})),this.$resizeObserver.observe(this.container)}},e}();y.prototype.CHANGE_CURSOR=1,y.prototype.CHANGE_MARKER=2,y.prototype.CHANGE_GUTTER=4,y.prototype.CHANGE_SCROLL=8,y.prototype.CHANGE_LINES=16,y.prototype.CHANGE_TEXT=32,y.prototype.CHANGE_SIZE=64,y.prototype.CHANGE_MARKER_BACK=128,y.prototype.CHANGE_MARKER_FRONT=256,y.prototype.CHANGE_FULL=512,y.prototype.CHANGE_H_SCROLL=1024,y.prototype.$changes=0,y.prototype.$padding=null,y.prototype.$frozen=!1,y.prototype.STEPS=8,i.implement(y.prototype,_),r.defineOptions(y.prototype,"renderer",{useResizeObserver:{set:function(e){!e&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):e&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(e){this.$textLayer.setShowInvisibles(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(e){"number"==typeof e&&(this.$printMarginColumn=e),this.$showPrintMargin=!!e,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(e){this.$gutter.style.display=e?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(e){this.$gutterLayer.$useSvgGutterIcons=e},initialValue:!1},showFoldedAnnotations:{set:function(e){this.$gutterLayer.$showFoldedAnnotations=e},initialValue:!1},fadeFoldWidgets:{set:function(e){o.setCssClass(this.$gutter,"ace_fade-fold-widgets",e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(e){this.$textLayer.setDisplayIndentGuides(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(e){1==this.$textLayer.setHighlightIndentGuides(e)?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(e){this.$gutterLayer.setHighlightGutterLine(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(e){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(e){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(e){"number"==typeof e&&(e+="px"),this.container.style.fontSize=e,this.updateFontSize()},initialValue:12},fontFamily:{set:function(e){this.container.style.fontFamily=e,this.updateFontSize()}},maxLines:{set:function(e){this.updateFull()}},minLines:{set:function(e){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(e){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(e){e=+e||0,this.$scrollPastEnd!=e&&(this.$scrollPastEnd=e,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(e){this.$gutterLayer.$fixedWidth=!!e,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(e){this.$updateCustomScrollbar(e)},initialValue:!1},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!v.isMobile&&!v.isIE}}),t.VirtualRenderer=y})),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("../lib/net"),s=e("../lib/event_emitter").EventEmitter,r=e("../config");function a(e){if("undefined"==typeof Worker)return{postMessage:function(){},terminate:function(){}};if(r.get("loadWorkerFromBlob")){var t=function(e){var t="importScripts('"+o.qualifyURL(e)+"');";try{return new Blob([t],{type:"application/javascript"})}catch(e){var n=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return n.append(t),n.getBlob("application/javascript")}}(e),n=(window.URL||window.webkitURL).createObjectURL(t);return new Worker(n)}return new Worker(e)}var l=function(e){e.postMessage||(e=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=e,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){i.implement(this,s),this.$createWorkerFromOldConfig=function(t,n,i,o,s){if(e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),r.get("packaged")||!e.toUrl)o=o||r.moduleUrl(n,"worker");else{var l=this.$normalizePath;o=o||l(e.toUrl("ace/worker/worker.js",null,"_"));var c={};t.forEach((function(t){c[t]=l(e.toUrl(t,null,"_").replace(/(\.js)?(\?.*)?$/,""))}))}return this.$worker=a(o),s&&this.send("importScripts",s),this.$worker.postMessage({init:!0,tlns:c,module:n,classname:i}),this.$worker},this.onMessage=function(e){var t=e.data;switch(t.type){case"event":this._signal(t.name,{data:t.data});break;case"call":var n=this.callbacks[t.id];n&&(n(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log&&console.log.apply(console,t.data)}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return o.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(e){e.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,n){if(n){var i=this.callbackId++;this.callbacks[i]=n,t.push(i)}this.send(e,t)},this.emit=function(e,t){try{t.data&&t.data.err&&(t.data.err={message:t.data.err.message,stack:t.data.err.stack,code:t.data.err.code}),this.$worker&&this.$worker.postMessage({event:e,data:{data:t.data}})}catch(e){console.error(e.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener,!0)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==e.action?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,e.length>50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(l.prototype),t.UIWorkerClient=function(e,t,n){var i=null,o=!1,a=Object.create(s),c=[],d=new l({messageBuffer:c,terminate:function(){},postMessage:function(e){c.push(e),i&&(o?setTimeout(h):h())}});d.setEmitSync=function(e){o=e};var h=function(){var e=c.shift();e.command?i[e.command].apply(i,e.args):e.event&&a._signal(e.event,e.data)};return a.postMessage=function(e){d.onMessage({data:e})},a.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},a.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},r.loadModule(["worker",t],(function(e){for(i=new e[n](a);c.length;)h()})),d},t.WorkerClient=l,t.createWorker=a})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(e,t,n){"use strict";var i=e("./range").Range,o=e("./lib/event_emitter").EventEmitter,s=e("./lib/oop"),r=function(){function e(e,t,n,i,o,s){var r=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=o,this.othersClass=s,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=i,this.$onCursorChange=function(){setTimeout((function(){r.onCursorChange()}))},this.$pos=n;var a=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=a.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)}return e.prototype.setup=function(){var e=this,t=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var o=this.pos;o.$insertRight=!0,o.detach(),o.markerId=n.addMarker(new i(o.row,o.column,o.row,o.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(n){var i=t.createAnchor(n.row,n.column);i.$insertRight=!0,i.detach(),e.others.push(i)})),n.setUndoSelect(!1)},e.prototype.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,t=this;this.othersActive=!0,this.others.forEach((function(n){n.markerId=e.addMarker(new i(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)}))}},e.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e=this.pos.column&&t.start.column<=this.pos.column+this.length+1,s=t.start.column-this.pos.column;if(this.updateAnchors(e),o&&(this.length+=n),o&&!this.session.$fromUndo)if("insert"===e.action)for(var r=this.others.length-1;r>=0;r--){var a={row:(l=this.others[r]).row,column:l.column+s};this.doc.insertMergedLines(a,e.lines)}else if("remove"===e.action)for(r=this.others.length-1;r>=0;r--){var l;a={row:(l=this.others[r]).row,column:l.column+s},this.doc.remove(new i(a.row,a.column,a.row,a.column-n))}this.$updating=!1,this.updateMarkers()}},e.prototype.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},e.prototype.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,n=function(n,o){t.removeMarker(n.markerId),n.markerId=t.addMarker(new i(n.row,n.column,n.row,n.column+e.length),o,null,!1)};n(this.pos,this.mainClass);for(var o=this.others.length;o--;)n(this.others[o],this.othersClass)}},e.prototype.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},e.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},e.prototype.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n1?e.multiSelect.joinSelections():e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(e){e.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var i=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new i(t.multiSelectCommands)})),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],(function(e,t,n){var i=e("./range_list").RangeList,o=e("./range").Range,s=e("./selection").Selection,r=e("./mouse/multi_select_handler").onMouseDown,a=e("./lib/event"),l=e("./lib/lang"),c=e("./commands/multi_select_commands");t.commands=c.defaultCommands.concat(c.multiSelectCommands);var d=new(0,e("./search").Search),h=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(h.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var n=this.toOrientedRange();if(this.rangeList.add(n),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(n),this.$onAddRange(n)}e.cursor||(e.cursor=e.end);var i=this.rangeList.add(e);return this.$onAddRange(e),i.length&&this.$onRemoveRange(i),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length&&this.$onRemoveRange(e)},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var n=e.length;n--;){var i=this.ranges.indexOf(e[n]);this.ranges.splice(i,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(t=t||this.ranges[0])&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new i,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var e=this.ranges.length?this.ranges:[this.getRange()],t=[],n=0;n1){var e=this.rangeList.ranges,t=e[e.length-1],n=o.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{var i=this.session.documentToScreenPosition(this.cursor),s=this.session.documentToScreenPosition(this.anchor);this.rectangularRangeBlock(i,s).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,n){var i=[],s=e.column0;)b--;if(b>0)for(var w=0;i[w].isEmpty();)w++;for(var v=b;v>=w;v--)i[v].isEmpty()&&i.splice(v,1)}return i}}.call(s.prototype);var p=e("./editor").Editor;function u(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",r),e.commands.addCommands(c.defaultCommands),function(e){if(e.textInput){var t=e.textInput.getElement(),n=!1;a.addListener(t,"keydown",(function(t){var o=18==t.keyCode&&!(t.ctrlKey||t.shiftKey||t.metaKey);e.$blockSelectEnabled&&o?n||(e.renderer.setMouseCursor("crosshair"),n=!0):n&&i()}),e),a.addListener(t,"keyup",i,e),a.addListener(t,"blur",i,e)}function i(t){n&&(e.renderer.setMouseCursor(""),n=!1)}}(e))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n--;){var i=e[n];if(i.marker){this.session.removeMarker(i.marker);var o=t.indexOf(i);-1!=o&&t.splice(o,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(c.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(c.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,n=e.editor;if(n.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?i=n.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?i=n.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(n.exitMultiSelectMode(),i=t.exec(n,e.args||{})):i=t.multiSelectAction(n,e.args||{});else{var i=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return i}},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var i,o=n&&n.keepOrder,r=1==n||n&&n.$byLines,a=this.session,l=this.selection,c=l.rangeList,d=(o?l:c).ranges;if(!d.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var h=l._eventRegistry;l._eventRegistry={};var p=new s(a);this.inVirtualSelectionMode=!0;for(var u=d.length;u--;){if(r)for(;u>0&&d[u].start.row==d[u-1].end.row;)u--;p.fromOrientedRange(d[u]),p.index=u,this.selection=a.selection=p;var g=e.exec?e.exec(this,t||{}):e(this,t||{});i||void 0===g||(i=g),p.toOrientedRange(d[u])}p.detach(),this.selection=a.selection=l,this.inVirtualSelectionMode=!1,l._eventRegistry=h,l.mergeOverlappingRanges(),l.ranges[0]&&l.fromOrientedRange(l.ranges[0]);var m=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),m&&m.from==m.to&&this.renderer.animateScrolling(m.from),i}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],i=0;ir&&(r=n.column),id?e.insert(i,l.stringRepeat(" ",s-d)):e.remove(new o(i.row,i.column,i.row,i.column-s+d)),t.start.column=t.end.column=r,t.start.row=t.end.row=i.row,t.cursor=t.end})),t.fromOrientedRange(n[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var d=this.selection.getRange(),h=d.start.row,p=d.end.row,u=h==p;if(u){var g,m=this.session.getLength();do{g=this.session.getLine(p)}while(/[=:]/.test(g)&&++p0);h<0&&(h=0),p>=m&&(p=m-1)}var f=this.session.removeFullLines(h,p);f=this.$reAlignText(f,u),this.session.insert({row:h,column:0},f.join("\n")+"\n"),u||(d.start.column=0,d.end.column=f[f.length-1].length),this.selection.setRange(d)}},this.$reAlignText=function(e,t){var n,i,o,s=!0,r=!0;return e.map((function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?null==n?(n=t[1].length,i=t[2].length,o=t[3].length,t):(n+i+o!=t[1].length+t[2].length+t[3].length&&(r=!1),n!=t[1].length&&(s=!1),n>t[1].length&&(n=t[1].length),it[3].length&&(o=t[3].length),t):[e]})).map(t?c:s?r?function(e){return e[2]?a(n+i-e[2].length)+e[2]+a(o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:c:function(e){return e[2]?a(n)+e[2]+a(o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]});function a(e){return l.stringRepeat(" ",e)}function c(e){return e[2]?a(n)+e[2]+a(i-e[2].length+o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(p.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var n=e.oldSession;n&&(n.multiSelect.off("addRange",this.$onAddRange),n.multiSelect.off("removeRange",this.$onRemoveRange),n.multiSelect.off("multiSelect",this.$onMultiSelect),n.multiSelect.off("singleSelect",this.$onSingleSelect),n.multiSelect.lead.off("change",this.$checkMultiselectChange),n.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=u,e("./config").defineOptions(p.prototype,"editor",{enableMultiselect:{set:function(e){u(this),e?this.on("mousedown",r):this.off("mousedown",r)},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})})),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../../range").Range,o=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);return this.foldingStartMarker.test(i)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(i)?"end":""},this.getFoldWidgetRange=function(e,t,n){return null},this.indentationBlock=function(e,t,n){var o=/\S/,s=e.getLine(t),r=s.search(o);if(-1!=r){for(var a=n||s.length,l=e.getLength(),c=t,d=t;++tc){var u=e.getLine(d).length;return new i(c,a,d,u)}}},this.openingBracketBlock=function(e,t,n,o,s){var r={row:n,column:o+1},a=e.$findClosingBracket(t,r,s);if(a){var l=e.foldWidgets[a.row];return null==l&&(l=e.getFoldWidget(a.row)),"start"==l&&a.row>r.row&&(a.row--,a.column=e.getLine(a.row).length),i.fromPoints(r,a)}},this.closingBracketBlock=function(e,t,n,o,s){var r={row:n,column:o},a=e.$findOpeningBracket(t,r);if(a)return a.column++,r.column--,i.fromPoints(a,r)}}).call(o.prototype)})),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],(function(e,t,n){"use strict";var i=e("../line_widgets").LineWidgets,o=e("../lib/dom"),s=e("../range").Range,r=e("../config").nls;t.showErrorMarker=function(e,t){var n=e.session;n.widgetManager||(n.widgetManager=new i(n),n.widgetManager.attach(e));var a=e.getCursorPosition(),l=a.row,c=n.widgetManager.getWidgetsAtRow(l).filter((function(e){return"errorMarker"==e.type}))[0];c?c.destroy():l-=t;var d,h=function(e,t,n){var i=e.getAnnotations().sort(s.comparePoints);if(i.length){var o=function(e,t,n){for(var i=0,o=e.length-1;i<=o;){var s=i+o>>1,r=n(t,e[s]);if(r>0)i=s+1;else{if(!(r<0))return s;o=s-1}}return-(i+1)}(i,{row:t,column:-1},s.comparePoints);o<0&&(o=-o-1),o>=i.length?o=n>0?0:i.length-1:0===o&&n<0&&(o=i.length-1);var r=i[o];if(r&&n){if(r.row===t){do{r=i[o+=n]}while(r&&r.row===t);if(!r)return i.slice()}var a=[];t=r.row;do{a[n<0?"unshift":"push"](r),r=i[o+=n]}while(r&&r.row==t);return a.length&&a}}}(n,l,t);if(h){var p=h[0];a.column=(p.pos&&"number"!=typeof p.column?p.pos.sc:p.column)||0,a.row=p.row,d=e.renderer.$gutterLayer.$annotations[a.row]}else{if(c)return;d={text:[r("Looks good!")],className:"ace_ok"}}e.session.unfold(a.row),e.selection.moveToPosition(a);var u={row:a.row,fixedWidth:!0,coverGutter:!0,el:o.createElement("div"),type:"errorMarker"},g=u.el.appendChild(o.createElement("div")),m=u.el.appendChild(o.createElement("div"));m.className="error_widget_arrow "+d.className;var f=e.renderer.$cursorLayer.getPixelPosition(a).left;m.style.left=f+e.renderer.gutterWidth-5+"px",u.el.className="error_widget_wrapper",g.className="error_widget "+d.className,g.innerHTML=d.text.join("
"),g.appendChild(o.createElement("div"));var _=function(e,t,n){if(0===t&&("esc"===n||"return"===n))return u.destroy(),{command:"null"}};u.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(_),n.widgetManager.removeLineWidget(u),e.off("changeSelection",u.destroy),e.off("changeSession",u.destroy),e.off("mouseup",u.destroy),e.off("change",u.destroy))},e.keyBinding.addKeyboardHandler(_),e.on("changeSelection",u.destroy),e.on("changeSession",u.destroy),e.on("mouseup",u.destroy),e.on("change",u.destroy),e.session.widgetManager.addLineWidget(u),u.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:u.el.offsetHeight})},o.importCssString("\n .error_widget_wrapper {\n background: inherit;\n color: inherit;\n border:none\n }\n .error_widget {\n border-top: solid 2px;\n border-bottom: solid 2px;\n margin: 5px 0;\n padding: 10px 40px;\n white-space: pre-wrap;\n }\n .error_widget.ace_error, .error_widget_arrow.ace_error{\n border-color: #ff5a5a\n }\n .error_widget.ace_warning, .error_widget_arrow.ace_warning{\n border-color: #F1D817\n }\n .error_widget.ace_info, .error_widget_arrow.ace_info{\n border-color: #5a5a5a\n }\n .error_widget.ace_ok, .error_widget_arrow.ace_ok{\n border-color: #5aaa5a\n }\n .error_widget_arrow {\n position: absolute;\n border: solid 5px;\n border-top-color: transparent!important;\n border-right-color: transparent!important;\n border-left-color: transparent!important;\n top: -5px;\n }\n","error_marker.css",!1)})),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],(function(e,t,n){"use strict";e("./loader_build")(t);var i=e("./lib/dom"),o=e("./range").Range,s=e("./editor").Editor,r=e("./edit_session").EditSession,a=e("./undomanager").UndoManager,l=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.edit=function(e,n){if("string"==typeof e){var o=e;if(!(e=document.getElementById(o)))throw new Error("ace.edit can't find div #"+o)}if(e&&e.env&&e.env.editor instanceof s)return e.env.editor;var r="";if(e&&/input|textarea/i.test(e.tagName)){var a=e;r=a.value,e=i.createElement("pre"),a.parentNode.replaceChild(e,a)}else e&&(r=e.textContent,e.innerHTML="");var c=t.createEditSession(r),d=new s(new l(e),c,n),h={document:c,editor:d,onResize:d.resize.bind(d,null)};return a&&(h.textarea=a),d.on("destroy",(function(){h.editor.container.env=null})),d.container.env=d.env=h,d},t.createEditSession=function(e,t){var n=new r(e,t);return n.setUndoManager(new a),n},t.Range=o,t.Editor=s,t.EditSession=r,t.UndoManager=a,t.VirtualRenderer=l,t.version=t.config.version})),ace.require(["ace/ace"],(function(t){t&&(t.config.init(!0),t.define=ace.define);var n=function(){return this}();for(var i in n||"undefined"==typeof window||(n=window),n||"undefined"==typeof self||(n=self),n.ace||(n.ace=t),t)t.hasOwnProperty(i)&&(n.ace[i]=t[i]);n.ace.default=n.ace,e&&(e.exports=n.ace)}))},9:(e,t,n)=>{e=n.nmd(e),ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=(e("./lib/lang"),e("./lib/event_emitter").EventEmitter),s=e("./editor").Editor,r=e("./virtual_renderer").VirtualRenderer,a=e("./edit_session").EditSession,l=function(e,t,n){this.BELOW=1,this.BESIDE=0,this.$container=e,this.$theme=t,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(n||1),this.$cEditor=this.$editors[0],this.on("focus",function(e){this.$cEditor=e}.bind(this))};(function(){i.implement(this,o),this.$createEditor=function(){var e=document.createElement("div");e.className=this.$editorCSS,e.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(e);var t=new s(new r(e,this.$theme));return t.on("focus",function(){this._emit("focus",t)}.bind(this)),this.$editors.push(t),t.setFontSize(this.$fontSize),t},this.setSplits=function(e){var t;if(e<1)throw"The number of splits have to be > 0!";if(e!=this.$splits){if(e>this.$splits){for(;this.$splitse;)t=this.$editors[this.$splits-1],this.$container.removeChild(t.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(e){this.$editors.forEach((function(t){t.setTheme(e)}))},this.setKeyboardHandler=function(e){this.$editors.forEach((function(t){t.setKeyboardHandler(e)}))},this.forEach=function(e,t){this.$editors.forEach(e,t)},this.$fontSize="",this.setFontSize=function(e){this.$fontSize=e,this.forEach((function(t){t.setFontSize(e)}))},this.$cloneSession=function(e){var t=new a(e.getDocument(),e.getMode()),n=e.getUndoManager();return t.setUndoManager(n),t.setTabSize(e.getTabSize()),t.setUseSoftTabs(e.getUseSoftTabs()),t.setOverwrite(e.getOverwrite()),t.setBreakpoints(e.getBreakpoints()),t.setUseWrapMode(e.getUseWrapMode()),t.setUseWorker(e.getUseWorker()),t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),t.$foldData=e.$cloneFoldData(),t},this.setSession=function(e,t){var n;n=null==t?this.$cEditor:this.$editors[t];var i=this.$editors.some((function(t){return t.session===e}));return i&&(e=this.$cloneSession(e)),n.setSession(e),e},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){this.$orientation!=e&&(this.$orientation=e,this.resize())},this.resize=function(){var e,t=this.$container.clientWidth,n=this.$container.clientHeight;if(this.$orientation==this.BESIDE)for(var i=t/this.$splits,o=0;o{e=n.nmd(e),ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=(e("../lib/lang"),e("./text_highlight_rules").TextHighlightRules),s=t.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",r=t.supportFunction="rgb|rgba|url|attr|counter|counters",a=t.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",l=t.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",c=t.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",d=t.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",h=t.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",p=t.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",u=function(){var e=this.createKeywordMapper({"support.function":r,"support.constant":a,"support.type":s,"support.constant.color":l,"support.constant.fonts":c},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:d},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+d+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:d},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:h},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:p},{include:"url"},{token:e,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};i.inherits(u,o),t.CssHighlightRules=u})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var o=n[1].length,s=e.findMatchingBracket({row:t,column:o});if(!s||s.row==t)return 0;var r=this.$getIndent(e.getLine(s.row));e.replace(new i(t,0,t,o-1),r)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o})),ace.define("ace/mode/css_completions",["require","exports","module"],(function(e,t,n){"use strict";var i={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},o=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var e=document.createElement("c").style;for(var t in e)if("string"==typeof e[t]){var n=t.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}));i.hasOwnProperty(n)||(i[n]=1)}}this.completionsDefined=!0},this.getCompletions=function(e,t,n,i){if(this.completionsDefined||this.defineCompletions(),"ruleset"===e||"ace/mode/scss"==t.$mode.$id){var o=t.getLine(n.row).substr(0,n.column),s=/\([^)]*$/.test(o);return s&&(o=o.substr(o.lastIndexOf("(")+1)),/:[^;]+$/.test(o)?(/([\w\-]+):[^:]*$/.test(o),this.getPropertyValueCompletions(e,t,n,i)):this.getPropertyCompletions(e,t,n,i,s)}return[]},this.getPropertyCompletions=function(e,t,n,o,s){return s=s||!1,Object.keys(i).map((function(e){return{caption:e,snippet:e+": $0"+(s?"":";"),meta:"property",score:1e6}}))},this.getPropertyValueCompletions=function(e,t,n,o){var s=t.getLine(n.row).substr(0,n.column),r=(/([\w\-]+):[^:]*$/.exec(s)||{})[1];if(!r)return[];var a=[];return r in i&&"object"==typeof i[r]&&(a=Object.keys(i[r])),a.map((function(e){return{caption:e,snippet:e,meta:"property value",score:1e6}}))}}).call(o.prototype),t.CssCompletions=o})),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],(function(e,t,n){"use strict";var i=e("../../lib/oop"),o=(e("../behaviour").Behaviour,e("./cstyle").CstyleBehaviour),s=e("../../token_iterator").TokenIterator,r=function(){this.inherit(o),this.add("colon","insertion",(function(e,t,n,i,o){if(":"===o&&n.selection.isEmpty()){var r=n.getCursorPosition(),a=new s(i,r.row,r.column),l=a.getCurrentToken();if(l&&l.value.match(/\s+/)&&(l=a.stepBackward()),l&&"support.type"===l.type){var c=i.doc.getLine(r.row);if(":"===c.substring(r.column,r.column+1))return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(c.substring(r.column)))return{text:":;",selection:[1,1]}}}})),this.add("colon","deletion",(function(e,t,n,i,o){var r=i.doc.getTextRange(o);if(!o.isMultiLine()&&":"===r){var a=n.getCursorPosition(),l=new s(i,a.row,a.column),c=l.getCurrentToken();if(c&&c.value.match(/\s+/)&&(c=l.stepBackward()),c&&"support.type"===c.type&&";"===i.doc.getLine(o.start.row).substring(o.end.column,o.end.column+1))return o.end.column++,o}})),this.add("semicolon","insertion",(function(e,t,n,i,o){if(";"===o&&n.selection.isEmpty()){var s=n.getCursorPosition();if(";"===i.doc.getLine(s.row).substring(s.column,s.column+1))return{text:"",selection:[1,1]}}})),this.add("!important","insertion",(function(e,t,n,i,o){if("!"===o&&n.selection.isEmpty()){var s=n.getCursorPosition(),r=i.doc.getLine(s.row);if(/^\s*(;|}|$)/.test(r.substring(s.column)))return{text:"!important",selection:[10,10]}}}))};i.inherits(r,o),t.CssBehaviour=r})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var i=e("../../lib/oop"),o=e("../../range").Range,s=e("./fold_mode").FoldMode,r=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};i.inherits(r,s),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var o=this._getFoldWidgetBase(e,t,n);return!o&&this.startRegionRe.test(i)?"start":o},this.getFoldWidgetRange=function(e,t,n,i){var o,s=e.getLine(n);if(this.startRegionRe.test(s))return this.getCommentRegionBlock(e,s,n);if(o=s.match(this.foldingStartMarker)){var r=o.index;if(o[1])return this.openingBracketBlock(e,o[1],n,r);var a=e.getCommentFoldRange(n,r+o[0].length,1);return a&&!a.isMultiLine()&&(i?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}return"markbegin"!==t&&(o=s.match(this.foldingStopMarker))?(r=o.index+o[0].length,o[1]?this.closingBracketBlock(e,o[1],n,r):e.getCommentFoldRange(n,r,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),i=n.search(/\S/),s=t,r=n.length,a=t+=1,l=e.getLength();++tc)break;var d=this.getFoldWidgetRange(e,"all",t);if(d){if(d.start.row<=s)break;if(d.isMultiLine())t=d.end.row;else if(i==c)break}a=t}}return new o(s,r,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){for(var i=t.search(/\s*$/),s=e.getLength(),r=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++nr)return new o(r,i,n,t.length)}}.call(r.prototype)})),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("./text").Mode,s=e("./css_highlight_rules").CssHighlightRules,r=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("../worker/worker_client").WorkerClient,l=e("./css_completions").CssCompletions,c=e("./behaviour/css").CssBehaviour,d=e("./folding/cstyle").FoldMode,h=function(){this.HighlightRules=s,this.$outdent=new r,this.$behaviour=new c,this.$completer=new l,this.foldingRules=new d};i.inherits(h,o),function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e).tokens;return o.length&&"comment"==o[o.length-1].type||t.match(/^.*\{\s*$/)&&(i+=n),i},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.getCompletions=function(e,t,n,i){return this.$completer.getCompletions(e,t,n,i)},this.createWorker=function(e){var t=new a(["ace"],"ace/mode/css_worker","Worker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}.call(h.prototype),t.Mode=h})),ace.require(["ace/mode/css"],(function(t){e&&(e.exports=t)}))},766:(e,t,n)=>{e=n.nmd(e),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},s.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};i.inherits(s,o),s.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},s.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},s.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.JsDocCommentHighlightRules=s})),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,s=e("./text_highlight_rules").TextHighlightRules,r="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",a=function(e){var t=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),n="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[o.getStartRule("doc-start"),c("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+r+")(\\.)(prototype)(\\.)("+r+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+r+")(\\.)("+r+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+r+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+r+")(\\.)("+r+")(\\s*)(=)(\\s*)(function\\*?)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function\\*?)(\\s+)("+r+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+r+")(\\s*)(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"from(?=\\s*('|\"))"},{token:"keyword",regex:"(?:case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void)\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:t,regex:r},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+r+")(\\.)("+r+")(\\s*)(=)(\\s*)(function\\*?)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:r},{regex:"",token:"empty",next:"no_regex"}],start:[o.getStartRule("doc-start"),c("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[c("function_arguments"),{token:"variable.parameter",regex:r},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:n},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:n},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},e&&e.noES6||(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,n){if(this.next="{"==e?this.nextState:"","{"==e&&n.length)n.unshift("start",t);else if("}"==e&&n.length&&(n.shift(),this.next=n.shift(),-1!=this.next.indexOf("string")||-1!=this.next.indexOf("jsx")))return"paren.quasi.end";return"{"==e?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:n},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+r+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=.+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),e&&0==e.jsx||l.call(this)),this.embedRules(o,"doc-",[o.getEndRule("no_regex")]),this.normalizeRules()};function l(){var e=r.replace("\\d","\\d\\-"),t={onMatch:function(e,t,n){var i="/"==e.charAt(1)?2:1;return 1==i?(t!=this.nextState?n.unshift(this.next,this.nextState,0):n.unshift(this.next),n[2]++):2==i&&t==this.nextState&&(n[1]--,(!n[1]||n[1]<0)&&(n.shift(),n.shift())),[{type:"meta.tag.punctuation."+(1==i?"":"end-")+"tag-open.xml",value:e.slice(0,i)},{type:"meta.tag.tag-name.xml",value:e.substr(i)}]},regex:"?"+e,next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(t);var n={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[n,t,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(e,t,n){return t==n[0]&&n.shift(),2==e.length&&(n[0]==this.nextState&&n[1]--,(!n[1]||n[1]<0)&&n.splice(0,2)),this.next=n[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},n,c("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},t],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:[0-9]+;)|(?:[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function c(e){return[{token:"comment",regex:/\/\*/,next:[o.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[o.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}i.inherits(a,s),t.JavaScriptHighlightRules=a})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var o=n[1].length,s=e.findMatchingBracket({row:t,column:o});if(!s||s.row==t)return 0;var r=this.$getIndent(e.getLine(s.row));e.replace(new i(t,0,t,o-1),r)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var i=e("../../lib/oop"),o=e("../../range").Range,s=e("./fold_mode").FoldMode,r=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};i.inherits(r,s),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var o=this._getFoldWidgetBase(e,t,n);return!o&&this.startRegionRe.test(i)?"start":o},this.getFoldWidgetRange=function(e,t,n,i){var o,s=e.getLine(n);if(this.startRegionRe.test(s))return this.getCommentRegionBlock(e,s,n);if(o=s.match(this.foldingStartMarker)){var r=o.index;if(o[1])return this.openingBracketBlock(e,o[1],n,r);var a=e.getCommentFoldRange(n,r+o[0].length,1);return a&&!a.isMultiLine()&&(i?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}return"markbegin"!==t&&(o=s.match(this.foldingStopMarker))?(r=o.index+o[0].length,o[1]?this.closingBracketBlock(e,o[1],n,r):e.getCommentFoldRange(n,r,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),i=n.search(/\S/),s=t,r=n.length,a=t+=1,l=e.getLength();++tc)break;var d=this.getFoldWidgetRange(e,"all",t);if(d){if(d.start.row<=s)break;if(d.isMultiLine())t=d.end.row;else if(i==c)break}a=t}}return new o(s,r,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){for(var i=t.search(/\s*$/),s=e.getLength(),r=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++nr)return new o(r,i,n,t.length)}}.call(r.prototype)})),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("./text").Mode,s=e("./javascript_highlight_rules").JavaScriptHighlightRules,r=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("../worker/worker_client").WorkerClient,l=e("./behaviour/cstyle").CstyleBehaviour,c=e("./folding/cstyle").FoldMode,d=function(){this.HighlightRules=s,this.$outdent=new r,this.$behaviour=new l,this.foldingRules=new c};i.inherits(d,o),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e),s=o.tokens,r=o.state;if(s.length&&"comment"==s[s.length-1].type)return i;if("start"==e||"no_regex"==e)(a=t.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/))&&(i+=n);else if("doc-start"==e){if("start"==r||"no_regex"==r)return"";var a;(a=t.match(/^\s*(\/?)\*/))&&(a[1]&&(i+=" "),i+="* ")}return i},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new a(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}.call(d.prototype),t.Mode=d})),ace.require(["ace/mode/javascript"],(function(t){e&&(e.exports=t)}))},31:(e,t,n)=>{e=n.nmd(e),ace.define("ace/theme/twilight-css",["require","exports","module"],(function(e,t,n){n.exports=".ace-twilight .ace_gutter {\n background: #232323;\n color: #E2E2E2\n}\n\n.ace-twilight .ace_print-margin {\n width: 1px;\n background: #232323\n}\n\n.ace-twilight {\n background-color: #141414;\n color: #F8F8F8\n}\n\n.ace-twilight .ace_cursor {\n color: #A7A7A7\n}\n\n.ace-twilight .ace_marker-layer .ace_selection {\n background: rgba(221, 240, 255, 0.20)\n}\n\n.ace-twilight.ace_multiselect .ace_selection.ace_start {\n box-shadow: 0 0 3px 0px #141414;\n}\n\n.ace-twilight .ace_marker-layer .ace_step {\n background: rgb(102, 82, 0)\n}\n\n.ace-twilight .ace_marker-layer .ace_bracket {\n margin: -1px 0 0 -1px;\n border: 1px solid rgba(255, 255, 255, 0.25)\n}\n\n.ace-twilight .ace_marker-layer .ace_active-line {\n background: rgba(255, 255, 255, 0.031)\n}\n\n.ace-twilight .ace_gutter-active-line {\n background-color: rgba(255, 255, 255, 0.031)\n}\n\n.ace-twilight .ace_marker-layer .ace_selected-word {\n border: 1px solid rgba(221, 240, 255, 0.20)\n}\n\n.ace-twilight .ace_invisible {\n color: rgba(255, 255, 255, 0.25)\n}\n\n.ace-twilight .ace_keyword,\n.ace-twilight .ace_meta {\n color: #CDA869\n}\n\n.ace-twilight .ace_constant,\n.ace-twilight .ace_constant.ace_character,\n.ace-twilight .ace_constant.ace_character.ace_escape,\n.ace-twilight .ace_constant.ace_other,\n.ace-twilight .ace_heading,\n.ace-twilight .ace_markup.ace_heading,\n.ace-twilight .ace_support.ace_constant {\n color: #CF6A4C\n}\n\n.ace-twilight .ace_invalid.ace_illegal {\n color: #F8F8F8;\n background-color: rgba(86, 45, 86, 0.75)\n}\n\n.ace-twilight .ace_invalid.ace_deprecated {\n text-decoration: underline;\n font-style: italic;\n color: #D2A8A1\n}\n\n.ace-twilight .ace_support {\n color: #9B859D\n}\n\n.ace-twilight .ace_fold {\n background-color: #AC885B;\n border-color: #F8F8F8\n}\n\n.ace-twilight .ace_support.ace_function {\n color: #DAD085\n}\n\n.ace-twilight .ace_list,\n.ace-twilight .ace_markup.ace_list,\n.ace-twilight .ace_storage {\n color: #F9EE98\n}\n\n.ace-twilight .ace_entity.ace_name.ace_function,\n.ace-twilight .ace_meta.ace_tag {\n color: #AC885B\n}\n\n.ace-twilight .ace_string {\n color: #8F9D6A\n}\n\n.ace-twilight .ace_string.ace_regexp {\n color: #E9C062\n}\n\n.ace-twilight .ace_comment {\n font-style: italic;\n color: #5F5A60\n}\n\n.ace-twilight .ace_variable {\n color: #7587A6\n}\n\n.ace-twilight .ace_xml-pe {\n color: #494949\n}\n\n.ace-twilight .ace_indent-guide {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQERFpYLC1tf0PAAgOAnPnhxyiAAAAAElFTkSuQmCC) right repeat-y\n}\n\n.ace-twilight .ace_indent-guide-active {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;\n}\n"})),ace.define("ace/theme/twilight",["require","exports","module","ace/theme/twilight-css","ace/lib/dom"],(function(e,t,n){t.isDark=!0,t.cssClass="ace-twilight",t.cssText=e("./twilight-css"),e("../lib/dom").importCssString(t.cssText,t.cssClass,!1)})),ace.require(["ace/theme/twilight"],(function(t){e&&(e.exports=t)}))},189:e=>{var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1;t.Diff=function(e,t){return[e,t]},t.prototype.diff_main=function(e,n,i,o){void 0===o&&(o=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var s=o;if(null==e||null==n)throw new Error("Null input. (diff_main)");if(e==n)return e?[new t.Diff(0,e)]:[];void 0===i&&(i=!0);var r=i,a=this.diff_commonPrefix(e,n),l=e.substring(0,a);e=e.substring(a),n=n.substring(a),a=this.diff_commonSuffix(e,n);var c=e.substring(e.length-a);e=e.substring(0,e.length-a),n=n.substring(0,n.length-a);var d=this.diff_compute_(e,n,r,s);return l&&d.unshift(new t.Diff(0,l)),c&&d.push(new t.Diff(0,c)),this.diff_cleanupMerge(d),d},t.prototype.diff_compute_=function(e,i,o,s){var r;if(!e)return[new t.Diff(1,i)];if(!i)return[new t.Diff(n,e)];var a=e.length>i.length?e:i,l=e.length>i.length?i:e,c=a.indexOf(l);if(-1!=c)return r=[new t.Diff(1,a.substring(0,c)),new t.Diff(0,l),new t.Diff(1,a.substring(c+l.length))],e.length>i.length&&(r[0][0]=r[2][0]=n),r;if(1==l.length)return[new t.Diff(n,e),new t.Diff(1,i)];var d=this.diff_halfMatch_(e,i);if(d){var h=d[0],p=d[1],u=d[2],g=d[3],m=d[4],f=this.diff_main(h,u,o,s),_=this.diff_main(p,g,o,s);return f.concat([new t.Diff(0,m)],_)}return o&&e.length>100&&i.length>100?this.diff_lineMode_(e,i,s):this.diff_bisect_(e,i,s)},t.prototype.diff_lineMode_=function(e,i,o){var s=this.diff_linesToChars_(e,i);e=s.chars1,i=s.chars2;var r=s.lineArray,a=this.diff_main(e,i,!1,o);this.diff_charsToLines_(a,r),this.diff_cleanupSemantic(a),a.push(new t.Diff(0,""));for(var l=0,c=0,d=0,h="",p="";l=1&&d>=1){a.splice(l-c-d,c+d),l=l-c-d;for(var u=this.diff_main(h,p,!1,o),g=u.length-1;g>=0;g--)a.splice(l,0,u[g]);l+=u.length}d=0,c=0,h="",p=""}l++}return a.pop(),a},t.prototype.diff_bisect_=function(e,i,o){for(var s=e.length,r=i.length,a=Math.ceil((s+r)/2),l=a,c=2*a,d=new Array(c),h=new Array(c),p=0;po);w++){for(var v=-w+m;v<=w-f;v+=2){for(var y=l+v,x=($=v==-w||v!=w&&d[y-1]s)f+=2;else if(x>r)m+=2;else if(g&&(S=l+u-v)>=0&&S=(k=s-h[S]))return this.diff_bisectSplit_(e,i,$,x,o)}for(var C=-w+_;C<=w-b;C+=2){for(var k,S=l+C,j=(k=C==-w||C!=w&&h[S-1]s)b+=2;else if(j>r)_+=2;else if(!g){var $;if((y=l+u-C)>=0&&y=(k=s-k))return this.diff_bisectSplit_(e,i,$,x,o)}}}return[new t.Diff(n,e),new t.Diff(1,i)]},t.prototype.diff_bisectSplit_=function(e,t,n,i,o){var s=e.substring(0,n),r=t.substring(0,i),a=e.substring(n),l=t.substring(i),c=this.diff_main(s,r,!1,o),d=this.diff_main(a,l,!1,o);return c.concat(d)},t.prototype.diff_linesToChars_=function(e,t){var n=[],i={};function o(e){for(var t="",o=0,r=-1,a=n.length;ri?e=e.substring(n-i):nt.length?e:t,i=e.length>t.length?t:e;if(n.length<4||2*i.length=e.length?[i,s,r,a,d]:null}var r,a,l,c,d,h=s(n,i,Math.ceil(n.length/4)),p=s(n,i,Math.ceil(n.length/2));return h||p?(r=p?h&&h[4].length>p[4].length?h:p:h,e.length>t.length?(a=r[0],l=r[1],c=r[2],d=r[3]):(c=r[0],d=r[1],a=r[2],l=r[3]),[a,l,c,d,r[4]]):null},t.prototype.diff_cleanupSemantic=function(e){for(var i=!1,o=[],s=0,r=null,a=0,l=0,c=0,d=0,h=0;a0?o[s-1]:-1,l=0,c=0,d=0,h=0,r=null,i=!0)),a++;for(i&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),a=1;a=m?(g>=p.length/2||g>=u.length/2)&&(e.splice(a,0,new t.Diff(0,u.substring(0,g))),e[a-1][1]=p.substring(0,p.length-g),e[a+1][1]=u.substring(g),a++):(m>=p.length/2||m>=u.length/2)&&(e.splice(a,0,new t.Diff(0,p.substring(0,m))),e[a-1][0]=1,e[a-1][1]=u.substring(0,u.length-m),e[a+1][0]=n,e[a+1][1]=p.substring(m),a++),a++}a++}},t.prototype.diff_cleanupSemanticLossless=function(e){function n(e,n){if(!e||!n)return 6;var i=e.charAt(e.length-1),o=n.charAt(0),s=i.match(t.nonAlphaNumericRegex_),r=o.match(t.nonAlphaNumericRegex_),a=s&&i.match(t.whitespaceRegex_),l=r&&o.match(t.whitespaceRegex_),c=a&&i.match(t.linebreakRegex_),d=l&&o.match(t.linebreakRegex_),h=c&&e.match(t.blanklineEndRegex_),p=d&&n.match(t.blanklineStartRegex_);return h||p?5:c||d?4:s&&!a&&l?3:a||l?2:s||r?1:0}for(var i=1;i=p&&(p=u,c=o,d=s,h=r)}e[i-1][1]!=c&&(c?e[i-1][1]=c:(e.splice(i-1,1),i--),e[i][1]=d,h?e[i+1][1]=h:(e.splice(i+1,1),i--))}i++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(e){for(var i=!1,o=[],s=0,r=null,a=0,l=!1,c=!1,d=!1,h=!1;a0?o[s-1]:-1,d=h=!1),i=!0)),a++;i&&this.diff_cleanupMerge(e)},t.prototype.diff_cleanupMerge=function(e){e.push(new t.Diff(0,""));for(var i,o=0,s=0,r=0,a="",l="";o1?(0!==s&&0!==r&&(0!==(i=this.diff_commonPrefix(l,a))&&(o-s-r>0&&0==e[o-s-r-1][0]?e[o-s-r-1][1]+=l.substring(0,i):(e.splice(0,0,new t.Diff(0,l.substring(0,i))),o++),l=l.substring(i),a=a.substring(i)),0!==(i=this.diff_commonSuffix(l,a))&&(e[o][1]=l.substring(l.length-i)+e[o][1],l=l.substring(0,l.length-i),a=a.substring(0,a.length-i))),o-=s+r,e.splice(o,s+r),a.length&&(e.splice(o,0,new t.Diff(n,a)),o++),l.length&&(e.splice(o,0,new t.Diff(1,l)),o++),o++):0!==o&&0==e[o-1][0]?(e[o-1][1]+=e[o][1],e.splice(o,1)):o++,r=0,s=0,a="",l=""}""===e[e.length-1][1]&&e.pop();var c=!1;for(o=1;ot));i++)r=o,a=s;return e.length!=i&&e[i][0]===n?a:a+(t-r)},t.prototype.diff_prettyHtml=function(e){for(var t=[],i=/&/g,o=//g,r=/\n/g,a=0;a");switch(l){case 1:t[a]=''+c+"";break;case n:t[a]=''+c+"";break;case 0:t[a]=""+c+""}}return t.join("")},t.prototype.diff_text1=function(e){for(var t=[],n=0;nthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var i=this.match_alphabet_(t),o=this;function s(e,i){var s=e/t.length,r=Math.abs(n-i);return o.Match_Distance?s+r/o.Match_Distance:r?1:s}var r=this.Match_Threshold,a=e.indexOf(t,n);-1!=a&&(r=Math.min(s(0,a),r),-1!=(a=e.lastIndexOf(t,n+t.length))&&(r=Math.min(s(0,a),r)));var l,c,d=1<=g;_--){var b=i[e.charAt(_-1)];if(f[_]=0===u?(f[_+1]<<1|1)&b:(f[_+1]<<1|1)&b|(h[_+1]|h[_])<<1|1|h[_+1],f[_]&d){var w=s(u,_-1);if(w<=r){if(r=w,!((a=_-1)>n))break;g=Math.max(1,2*n-a)}}}if(s(u+1,n)>r)break;h=f}return a},t.prototype.match_alphabet_=function(e){for(var t={},n=0;n2&&(this.diff_cleanupSemantic(r),this.diff_cleanupEfficiency(r));else if(e&&"object"==typeof e&&void 0===i&&void 0===o)r=e,s=this.diff_text1(r);else if("string"==typeof e&&i&&"object"==typeof i&&void 0===o)s=e,r=i;else{if("string"!=typeof e||"string"!=typeof i||!o||"object"!=typeof o)throw new Error("Unknown call format to patch_make.");s=e,r=o}if(0===r.length)return[];for(var a=[],l=new t.patch_obj,c=0,d=0,h=0,p=s,u=s,g=0;g=2*this.Patch_Margin&&c&&(this.patch_addContext_(l,p),a.push(l),l=new t.patch_obj,c=0,p=u,d=h)}1!==m&&(d+=f.length),m!==n&&(h+=f.length)}return c&&(this.patch_addContext_(l,p),a.push(l)),a},t.prototype.patch_deepCopy=function(e){for(var n=[],i=0;ithis.Match_MaxBits?-1!=(a=this.match_main(t,d.substring(0,this.Match_MaxBits),c))&&(-1==(h=this.match_main(t,d.substring(d.length-this.Match_MaxBits),c+d.length-this.Match_MaxBits))||a>=h)&&(a=-1):a=this.match_main(t,d,c),-1==a)s[r]=!1,o-=e[r].length2-e[r].length1;else if(s[r]=!0,o=a-c,d==(l=-1==h?t.substring(a,a+d.length):t.substring(a,h+this.Match_MaxBits)))t=t.substring(0,a)+this.diff_text2(e[r].diffs)+t.substring(a+d.length);else{var p=this.diff_main(d,l,!1);if(d.length>this.Match_MaxBits&&this.diff_levenshtein(p)/d.length>this.Patch_DeleteThreshold)s[r]=!1;else{this.diff_cleanupSemanticLossless(p);for(var u,g=0,m=0;mr[0][1].length){var a=n-r[0][1].length;r[0][1]=i.substring(r[0][1].length)+r[0][1],s.start1-=a,s.start2-=a,s.length1+=a,s.length2+=a}return 0==(r=(s=e[e.length-1]).diffs).length||0!=r[r.length-1][0]?(r.push(new t.Diff(0,i)),s.length1+=n,s.length2+=n):n>r[r.length-1][1].length&&(a=n-r[r.length-1][1].length,r[r.length-1][1]+=i.substring(0,a),s.length1+=a,s.length2+=a),i},t.prototype.patch_splitMax=function(e){for(var i=this.Match_MaxBits,o=0;o2*i?(c.length1+=p.length,r+=p.length,d=!1,c.diffs.push(new t.Diff(h,p)),s.diffs.shift()):(p=p.substring(0,i-c.length1-this.Patch_Margin),c.length1+=p.length,r+=p.length,0===h?(c.length2+=p.length,a+=p.length):d=!1,c.diffs.push(new t.Diff(h,p)),p==s.diffs[0][1]?s.diffs.shift():s.diffs[0][1]=s.diffs[0][1].substring(p.length))}l=(l=this.diff_text2(c.diffs)).substring(l.length-this.Patch_Margin);var u=this.diff_text1(s.diffs).substring(0,this.Patch_Margin);""!==u&&(c.length1+=u.length,c.length2+=u.length,0!==c.diffs.length&&0===c.diffs[c.diffs.length-1][0]?c.diffs[c.diffs.length-1][1]+=u:c.diffs.push(new t.Diff(0,u))),d||e.splice(++o,0,c)}}},t.prototype.patch_toText=function(e){for(var t=[],n=0;n{var i,o="__lodash_hash_undefined__",s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/,a=/^\./,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c=/\\(\\)?/g,d=/^\[object .+?Constructor\]$/,h="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,p="object"==typeof self&&self&&self.Object===Object&&self,u=h||p||Function("return this")(),g=Array.prototype,m=Function.prototype,f=Object.prototype,_=u["__core-js_shared__"],b=(i=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",w=m.toString,v=f.hasOwnProperty,y=f.toString,x=RegExp("^"+w.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=u.Symbol,k=g.splice,S=T(u,"Map"),j=T(Object,"create"),$=C?C.prototype:void 0,A=$?$.toString:void 0;function N(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1},E.prototype.set=function(e,t){var n=this.__data__,i=M(n,e);return i<0?n.push([e,t]):n[i][1]=t,this},L.prototype.clear=function(){this.__data__={hash:new N,map:new(S||E),string:new N}},L.prototype.delete=function(e){return R(this,e).delete(e)},L.prototype.get=function(e){return R(this,e).get(e)},L.prototype.has=function(e){return R(this,e).has(e)},L.prototype.set=function(e,t){return R(this,e).set(e,t),this};var O=P((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(W(e))return A?A.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return a.test(e)&&n.push(""),e.replace(l,(function(e,t,i,o){n.push(i?o.replace(c,"$1"):t||e)})),n}));function I(e){if("string"==typeof e||W(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function P(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,o=t?t.apply(this,i):i[0],s=n.cache;if(s.has(o))return s.get(o);var r=e.apply(this,i);return n.cache=s.set(o,r),r};return n.cache=new(P.Cache||L),n}P.Cache=L;var F=Array.isArray;function D(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function W(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==y.call(e)}e.exports=function(e,t,n){var i=null==e?void 0:function(e,t){var n;t=function(e,t){if(F(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!W(e))||r.test(e)||!s.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:F(n=t)?n:O(n);for(var i=0,o=t.length;null!=e&&i{e=n.nmd(e);var i="__lodash_hash_undefined__",o=9007199254740991,s="[object Arguments]",r="[object Array]",a="[object Boolean]",l="[object Date]",c="[object Error]",d="[object Function]",h="[object Map]",p="[object Number]",u="[object Object]",g="[object Promise]",m="[object RegExp]",f="[object Set]",_="[object String]",b="[object WeakMap]",w="[object ArrayBuffer]",v="[object DataView]",y=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,C={};C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C[s]=C[r]=C[w]=C[a]=C[v]=C[l]=C[c]=C[d]=C[h]=C[p]=C[u]=C[m]=C[f]=C[_]=C[b]=!1;var k="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,S="object"==typeof self&&self&&self.Object===Object&&self,j=k||S||Function("return this")(),$=t&&!t.nodeType&&t,A=$&&e&&!e.nodeType&&e,N=A&&A.exports===$,E=N&&k.process,L=function(){try{return E&&E.binding&&E.binding("util")}catch(e){}}(),M=L&&L.isTypedArray;function R(e,t){for(var n=-1,i=null==e?0:e.length;++na))return!1;var c=s.get(e);if(c&&s.get(t))return c==t;var d=-1,h=!0,p=2&n?new we:void 0;for(s.set(e,t),s.set(t,e);++d-1},_e.prototype.set=function(e,t){var n=this.__data__,i=ye(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},be.prototype.clear=function(){this.size=0,this.__data__={hash:new fe,map:new(oe||_e),string:new fe}},be.prototype.delete=function(e){var t=$e(this,e).delete(e);return this.size-=t?1:0,t},be.prototype.get=function(e){return $e(this,e).get(e)},be.prototype.has=function(e){return $e(this,e).has(e)},be.prototype.set=function(e,t){var n=$e(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},we.prototype.add=we.prototype.push=function(e){return this.__data__.set(e,i),this},we.prototype.has=function(e){return this.__data__.has(e)},ve.prototype.clear=function(){this.__data__=new _e,this.size=0},ve.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ve.prototype.get=function(e){return this.__data__.get(e)},ve.prototype.has=function(e){return this.__data__.has(e)},ve.prototype.set=function(e,t){var n=this.__data__;if(n instanceof _e){var i=n.__data__;if(!oe||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new be(i)}return n.set(e,t),this.size=n.size,this};var Ne=ee?function(e){return null==e?[]:(e=Object(e),function(t){for(var n=-1,i=null==t?0:t.length,o=0,s=[];++n-1&&e%1==0&&e-1&&e%1==0&&e<=o}function De(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function We(e){return null!=e&&"object"==typeof e}var Be=M?function(e){return function(t){return e(t)}}(M):function(e){return We(e)&&Fe(e.length)&&!!C[xe(e)]};function Ue(e){return null!=(t=e)&&Fe(t.length)&&!Pe(t)?function(e,t){var n=Oe(e),i=!n&&Te(e),o=!n&&!i&&Ie(e),s=!n&&!i&&!o&&Be(e),r=n||i||o||s,a=r?function(e,t){for(var n=-1,i=Array(e);++n{"use strict";var i=n(925);function o(){}function s(){}s.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,s,r){if(r!==i){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:o};return n.PropTypes=n,n}},556:(e,t,n)=>{e.exports=n(694)()},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},375:(e,t,n)=>{"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=h(n(952)),s=h(n(609)),r=c(n(556)),a=c(n(142)),l=n(233);function c(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function h(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var o={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var a=s?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(o,r,a):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function u(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){for(var n=0;n0&&this.handleMarkers(C);for(var j=this.editor.$options,$=0;$0&&void 0!==arguments[0]?arguments[0]:[0,0,0,0];this.editor.renderer.setScrollMargins(e[0],e[1],e[2],e[3])}},{key:"componentWillUnmount",value:function(){this.editor.destroy(),this.editor=null}},{key:"onChange",value:function(e){if(this.props.onChange&&!this.silent){var t=this.editor.getValue();this.props.onChange(t,e)}}},{key:"onSelectionChange",value:function(e){if(this.props.onSelectionChange){var t=this.editor.getSelection();this.props.onSelectionChange(t,e)}}},{key:"onCursorChange",value:function(e){if(this.props.onCursorChange){var t=this.editor.getSelection();this.props.onCursorChange(t,e)}}},{key:"onInput",value:function(e){this.props.onInput&&this.props.onInput(e)}},{key:"onFocus",value:function(e){this.props.onFocus&&this.props.onFocus(e,this.editor)}},{key:"onBlur",value:function(e){this.props.onBlur&&this.props.onBlur(e,this.editor)}},{key:"onCopy",value:function(e){this.props.onCopy&&this.props.onCopy(e)}},{key:"onPaste",value:function(e){this.props.onPaste&&this.props.onPaste(e)}},{key:"onScroll",value:function(){this.props.onScroll&&this.props.onScroll(this.editor)}},{key:"handleOptions",value:function(e){for(var t=Object.keys(e.setOptions),n=0;n{"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=c(n(496)),s=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var o={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var a=s?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(o,r,a):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}(n(609)),r=c(n(556)),a=c(n(189));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{left:[],right:[]},t=[],n={left:[],right:[]},i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.editorOptions=t.editorEvents=t.debounce=void 0,t.editorOptions=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"],t.editorEvents=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"],t.debounce=function(e,t){var n=null;return function(){var i=this,o=arguments;clearTimeout(n),n=setTimeout((function(){e.apply(i,o)}),t)}}},904:(e,t,n)=>{"use strict";t.Ay=void 0;var i=o(n(375));o(n(496)),o(n(61));function o(e){return e&&e.__esModule?e:{default:e}}var s=i.default;t.Ay=s},496:(e,t,n)=>{"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=u(n(952)),s=n(9),r=u(n(609)),a=h(n(556)),l=h(n(142)),c=h(n(762)),d=n(233);function h(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var o={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var a=s?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(o,r,a):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function m(e,t,n){return(t=_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){for(var n=0;n0&&e.handleMarkers(y,t);for(var S=0;S{"use strict";var i=n(609),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useSyncExternalStore,r=i.useRef,a=i.useEffect,l=i.useMemo,c=i.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,i,d){var h=r(null);if(null===h.current){var p={hasValue:!1,value:null};h.current=p}else p=h.current;h=l((function(){function e(e){if(!a){if(a=!0,s=e,e=i(e),void 0!==d&&p.hasValue){var t=p.value;if(d(t,e))return r=t}return r=e}if(t=r,o(s,e))return t;var n=i(e);return void 0!==d&&d(t,n)?t:(s=e,r=n)}var s,r,a=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,i,d]);var u=s(e,h[0],h[1]);return a((function(){p.hasValue=!0,p.value=u}),[u]),c(u),u}},418:(e,t,n)=>{"use strict";e.exports=n(154)},609:e=>{"use strict";e.exports=window.React}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var s=i[e]={id:e,loaded:!1,exports:{}};return n[e](s,s.exports,o),s.loaded=!0,s.exports}o.amdD=function(){throw new Error("define cannot be used indirect")},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"==typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"==typeof n.then)return n}var s=Object.create(null);o.r(s);var r={};e=e||[null,t({}),t([]),t(t)];for(var a=2&i&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>r[e]=()=>n[e]));return r.default=()=>n,o.d(s,r),s},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e={};o.r(e),o.d(e,{hasBrowserEnv:()=>At,hasStandardBrowserEnv:()=>Et,hasStandardBrowserWebWorkerEnv:()=>Lt,navigator:()=>Nt,origin:()=>Mt});var t=o(609),n=o.n(t);const i=window.ReactDOM;function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(n),e=e.substr(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}var g;function m(e,t,n){return void 0===n&&(n="/"),function(e,t,n,i){let o=N(("string"==typeof t?u(t):t).pathname||"/",n);if(null==o)return null;let s=f(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(s);let r=null;for(let e=0;null==r&&e{let r={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};r.relativePath.startsWith("/")&&(l(r.relativePath.startsWith(i),'Absolute route path "'+r.relativePath+'" nested under path "'+i+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),r.relativePath=r.relativePath.slice(i.length));let a=R([i,r.relativePath]),c=n.concat(r);e.children&&e.children.length>0&&(l(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+a+'".'),f(e.children,t,c,a)),(null!=e.path||e.index)&&t.push({path:a,score:S(a,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of _(e.path))o(e,t,n);else o(e,t)})),t}function _(e){let t=e.split("/");if(0===t.length)return[];let[n,...i]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(0===i.length)return o?[s,""]:[s];let r=_(i.join("/")),a=[];return a.push(...r.map((e=>""===e?s:[s,e].join("/")))),o&&a.push(...r),a.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(g||(g={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const b=/^:[\w-]+$/,w=3,v=2,y=1,x=10,C=-2,k=e=>"*"===e;function S(e,t){let n=e.split("/"),i=n.length;return n.some(k)&&(i+=C),t&&(i+=v),n.filter((e=>!k(e))).reduce(((e,t)=>e+(b.test(t)?w:""===t?y:x)),i)}function j(e,t,n){void 0===n&&(n=!1);let{routesMeta:i}=e,o={},s="/",r=[];for(let e=0;e(i.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(i.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),i]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],r=s.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:i.reduce(((e,t,n)=>{let{paramName:i,isOptional:o}=t;if("*"===i){let e=a[n]||"";r=s.slice(0,s.length-e.length).replace(/(.)\/+$/,"$1")}const l=a[n];return e[i]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:s,pathnameBase:r,pattern:e}}function A(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return c(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function N(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&"/"!==i?null:e.slice(n)||"/"}function E(e,t,n,i){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(i)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function L(e,t){let n=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function M(e,t,n,i){let o;void 0===i&&(i=!1),"string"==typeof e?o=u(e):(o=s({},e),l(!o.pathname||!o.pathname.includes("?"),E("?","pathname","search",o)),l(!o.pathname||!o.pathname.includes("#"),E("#","pathname","hash",o)),l(!o.search||!o.search.includes("#"),E("#","search","hash",o)));let r,a=""===e||""===o.pathname,c=a?"/":o.pathname;if(null==c)r=n;else{let e=t.length-1;if(!i&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}r=e>=0?t[e]:"/"}let d=function(e,t){void 0===t&&(t="/");let{pathname:n,search:i="",hash:o=""}="string"==typeof e?u(e):e,s=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:s,search:O(i),hash:I(o)}}(o,r),h=c&&"/"!==c&&c.endsWith("/"),p=(a||"."===c)&&n.endsWith("/");return d.pathname.endsWith("/")||!h&&!p||(d.pathname+="/"),d}const R=e=>e.join("/").replace(/\/\/+/g,"/"),T=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),O=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",I=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;const P=["post","put","patch","delete"],F=(new Set(P),["get",...P]);function D(){return D=Object.assign?Object.assign.bind():function(e){for(var t=1;t{i.current=!0})),t.useCallback((function(t,o){void 0===o&&(o={}),i.current&&("number"==typeof t?e.navigate(t):e.navigate(t,D({fromRouteId:n},o)))}),[e,n])}():function(){G()||l(!1);let e=t.useContext(W),{basename:n,future:i,navigator:o}=t.useContext(U),{matches:s}=t.useContext(z),{pathname:r}=K(),a=JSON.stringify(L(s,i.v7_relativeSplatPath)),c=t.useRef(!1);return q((()=>{c.current=!0})),t.useCallback((function(t,i){if(void 0===i&&(i={}),!c.current)return;if("number"==typeof t)return void o.go(t);let s=M(t,JSON.parse(a),r,"path"===i.relative);null==e&&"/"!==n&&(s.pathname="/"===s.pathname?n:R([n,s.pathname])),(i.replace?o.replace:o.push)(s,i.state,i)}),[n,o,a,r,e])}()}function Y(e,n){let{relative:i}=void 0===n?{}:n,{future:o}=t.useContext(U),{matches:s}=t.useContext(z),{pathname:r}=K(),a=JSON.stringify(L(s,o.v7_relativeSplatPath));return t.useMemo((()=>M(e,JSON.parse(a),r,"path"===i)),[e,a,r,i])}function J(e,n,i,o){G()||l(!1);let{navigator:s}=t.useContext(U),{matches:a}=t.useContext(z),c=a[a.length-1],d=c?c.params:{},h=(c&&c.pathname,c?c.pathnameBase:"/");c&&c.route;let p,g=K();if(n){var f;let e="string"==typeof n?u(n):n;"/"===h||(null==(f=e.pathname)?void 0:f.startsWith(h))||l(!1),p=e}else p=g;let _=p.pathname||"/",b=_;if("/"!==h){let e=h.replace(/^\//,"").split("/");b="/"+_.replace(/^\//,"").split("/").slice(e.length).join("/")}let w=m(e,{pathname:b}),v=function(e,n,i,o){var s;if(void 0===n&&(n=[]),void 0===i&&(i=null),void 0===o&&(o=null),null==e){var r;if(!i)return null;if(i.errors)e=i.matches;else{if(!(null!=(r=o)&&r.v7_partialHydration&&0===n.length&&!i.initialized&&i.matches.length>0))return null;e=i.matches}}let a=e,c=null==(s=i)?void 0:s.errors;if(null!=c){let e=a.findIndex((e=>e.route.id&&void 0!==(null==c?void 0:c[e.route.id])));e>=0||l(!1),a=a.slice(0,Math.min(a.length,e+1))}let d=!1,h=-1;if(i&&o&&o.v7_partialHydration)for(let e=0;e=0?a.slice(0,h+1):[a[0]];break}}}return a.reduceRight(((e,o,s)=>{let r,l=!1,p=null,u=null;var g;i&&(r=c&&o.route.id?c[o.route.id]:void 0,p=o.route.errorElement||X,d&&(h<0&&0===s?(se[g="route-fallback"]||(se[g]=!0),l=!0,u=null):h===s&&(l=!0,u=o.route.hydrateFallbackElement||null)));let m=n.concat(a.slice(0,s+1)),f=()=>{let n;return n=r?p:l?u:o.route.Component?t.createElement(o.route.Component,null):o.route.element?o.route.element:e,t.createElement(te,{match:o,routeContext:{outlet:e,matches:m,isDataRoute:null!=i},children:n})};return i&&(o.route.ErrorBoundary||o.route.errorElement||0===s)?t.createElement(ee,{location:i.location,revalidation:i.revalidation,component:p,error:r,children:f(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):f()}),null)}(w&&w.map((e=>Object.assign({},e,{params:Object.assign({},d,e.params),pathname:R([h,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?h:R([h,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),a,i,o);return n&&v?t.createElement(H.Provider,{value:{location:D({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:r.Pop}},v):v}function Q(){let e=function(){var e;let n=t.useContext(V),i=function(){let e=t.useContext(B);return e||l(!1),e}(ie.UseRouteError),o=oe(ie.UseRouteError);return void 0!==n?n:null==(e=i.errors)?void 0:e[o]}(),n=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),i=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return t.createElement(t.Fragment,null,t.createElement("h2",null,"Unexpected Application Error!"),t.createElement("h3",{style:{fontStyle:"italic"}},n),i?t.createElement("pre",{style:o},i):null,null)}const X=t.createElement(Q,null);class ee extends t.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?t.createElement(z.Provider,{value:this.props.routeContext},t.createElement(V.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function te(e){let{routeContext:n,match:i,children:o}=e,s=t.useContext(W);return s&&s.static&&s.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=i.route.id),t.createElement(z.Provider,{value:n},o)}var ne=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ne||{}),ie=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ie||{});function oe(e){let n=function(){let e=t.useContext(z);return e||l(!1),e}(),i=n.matches[n.matches.length-1];return i.route.id||l(!1),i.route.id}const se={};function re(e){l(!1)}function ae(e){let{basename:n="/",children:i=null,location:o,navigationType:s=r.Pop,navigator:a,static:c=!1,future:d}=e;G()&&l(!1);let h=n.replace(/^\/*/,"/"),p=t.useMemo((()=>({basename:h,navigator:a,static:c,future:D({v7_relativeSplatPath:!1},d)})),[h,d,a,c]);"string"==typeof o&&(o=u(o));let{pathname:g="/",search:m="",hash:f="",state:_=null,key:b="default"}=o,w=t.useMemo((()=>{let e=N(g,h);return null==e?null:{location:{pathname:e,search:m,hash:f,state:_,key:b},navigationType:s}}),[h,g,m,f,_,b,s]);return null==w?null:t.createElement(U.Provider,{value:p},t.createElement(H.Provider,{children:i,value:w}))}function le(e){let{children:t,location:n}=e;return J(ce(t),n)}function ce(e,n){void 0===n&&(n=[]);let i=[];return t.Children.forEach(e,((e,o)=>{if(!t.isValidElement(e))return;let s=[...n,o];if(e.type===t.Fragment)return void i.push.apply(i,ce(e.props.children,s));e.type!==re&&l(!1),e.props.index&&e.props.children&&l(!1);let r={id:e.props.id||s.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(r.children=ce(e.props.children,s)),i.push(r)})),i}function de(){return de=Object.assign?Object.assign.bind():function(e){for(var t=1;t{})),t.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const he=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}new Map;const pe=t.startTransition;function ue(e){let{basename:n,children:i,future:o,window:g}=e,m=t.useRef();var f;null==m.current&&(m.current=(void 0===(f={window:g,v5Compat:!0})&&(f={}),function(e,t,n,i){void 0===i&&(i={});let{window:o=document.defaultView,v5Compat:c=!1}=i,u=o.history,g=r.Pop,m=null,f=_();function _(){return(u.state||{idx:null}).idx}function b(){g=r.Pop;let e=_(),t=null==e?null:e-f;f=e,m&&m({action:g,location:v.location,delta:t})}function w(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"==typeof e?e:p(e);return n=n.replace(/ $/,"%20"),l(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==f&&(f=0,u.replaceState(s({},u.state,{idx:f}),""));let v={get action(){return g},get location(){return e(o,u)},listen(e){if(m)throw new Error("A history only accepts one active listener");return o.addEventListener(a,b),m=e,()=>{o.removeEventListener(a,b),m=null}},createHref:e=>t(o,e),createURL:w,encodeLocation(e){let t=w(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){g=r.Push;let i=h(v.location,e,t);n&&n(i,e),f=_()+1;let s=d(i,f),a=v.createHref(i);try{u.pushState(s,"",a)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(a)}c&&m&&m({action:g,location:v.location,delta:1})},replace:function(e,t){g=r.Replace;let i=h(v.location,e,t);n&&n(i,e),f=_();let o=d(i,f),s=v.createHref(i);u.replaceState(o,"",s),c&&m&&m({action:g,location:v.location,delta:0})},go:e=>u.go(e)};return v}((function(e,t){let{pathname:n="/",search:i="",hash:o=""}=u(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),h("",{pathname:n,search:i,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),i="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");i=-1===n?t:t.slice(0,n)}return i+"#"+("string"==typeof t?t:p(t))}),(function(e,t){c("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),f)));let _=m.current,[b,w]=t.useState({action:_.action,location:_.location}),{v7_startTransition:v}=o||{},y=t.useCallback((e=>{v&&pe?pe((()=>w(e))):w(e)}),[w,v]);return t.useLayoutEffect((()=>_.listen(y)),[_,y]),t.createElement(ae,{basename:n,children:i,location:b.location,navigationType:b.action,navigator:_,future:o})}i.flushSync,t.useId;const ge="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,me=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fe=t.forwardRef((function(e,n){let i,{onClick:o,relative:s,reloadDocument:r,replace:a,state:c,target:d,to:h,preventScrollReset:u,viewTransition:g}=e,m=function(e,t){if(null==e)return{};var n,i,o={},s=Object.keys(e);for(i=0;i=0||(o[n]=e[n]);return o}(e,he),{basename:f}=t.useContext(U),_=!1;if("string"==typeof h&&me.test(h)&&(i=h,ge))try{let e=new URL(window.location.href),t=h.startsWith("//")?new URL(e.protocol+h):new URL(h),n=N(t.pathname,f);t.origin===e.origin&&null!=n?h=n+t.search+t.hash:_=!0}catch(e){}let b=function(e,n){let{relative:i}=void 0===n?{}:n;G()||l(!1);let{basename:o,navigator:s}=t.useContext(U),{hash:r,pathname:a,search:c}=Y(e,{relative:i}),d=a;return"/"!==o&&(d="/"===a?o:R([o,a])),s.createHref({pathname:d,search:c,hash:r})}(h,{relative:s}),w=function(e,n){let{target:i,replace:o,state:s,preventScrollReset:r,relative:a,viewTransition:l}=void 0===n?{}:n,c=Z(),d=K(),h=Y(e,{relative:a});return t.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,i)){t.preventDefault();let n=void 0!==o?o:p(d)===p(h);c(e,{replace:n,state:s,preventScrollReset:r,relative:a,viewTransition:l})}}),[d,c,h,o,s,i,e,r,a,l])}(h,{replace:a,state:c,target:d,preventScrollReset:u,relative:s,viewTransition:g});return t.createElement("a",de({},m,{href:i||b,onClick:_||r?o:function(e){o&&o(e),e.defaultPrevented||w(e)},ref:n,target:d}))}));var _e,be;function we(e,t){return function(){return e.apply(t,arguments)}}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(_e||(_e={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(be||(be={}));const{toString:ve}=Object.prototype,{getPrototypeOf:ye}=Object,xe=(Ce=Object.create(null),e=>{const t=ve.call(e);return Ce[t]||(Ce[t]=t.slice(8,-1).toLowerCase())});var Ce;const ke=e=>(e=e.toLowerCase(),t=>xe(t)===e),Se=e=>t=>typeof t===e,{isArray:je}=Array,$e=Se("undefined"),Ae=ke("ArrayBuffer"),Ne=Se("string"),Ee=Se("function"),Le=Se("number"),Me=e=>null!==e&&"object"==typeof e,Re=e=>{if("object"!==xe(e))return!1;const t=ye(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Te=ke("Date"),Oe=ke("File"),Ie=ke("Blob"),Pe=ke("FileList"),Fe=ke("URLSearchParams"),[De,We,Be,Ue]=["ReadableStream","Request","Response","Headers"].map(ke);function He(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let i,o;if("object"!=typeof e&&(e=[e]),je(e))for(i=0,o=e.length;i0;)if(i=n[o],t===i.toLowerCase())return i;return null}const Ve="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Ge=e=>!$e(e)&&e!==Ve,Ke=(qe="undefined"!=typeof Uint8Array&&ye(Uint8Array),e=>qe&&e instanceof qe);var qe;const Ze=ke("HTMLFormElement"),Ye=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Je=ke("RegExp"),Qe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};He(n,((n,o)=>{let s;!1!==(s=t(n,o,e))&&(i[o]=s||n)})),Object.defineProperties(e,i)},Xe="abcdefghijklmnopqrstuvwxyz",et="0123456789",tt={DIGIT:et,ALPHA:Xe,ALPHA_DIGIT:Xe+Xe.toUpperCase()+et},nt=ke("AsyncFunction"),it=(ot="function"==typeof setImmediate,st=Ee(Ve.postMessage),ot?setImmediate:st?(rt=`axios@${Math.random()}`,at=[],Ve.addEventListener("message",(({source:e,data:t})=>{e===Ve&&t===rt&&at.length&&at.shift()()}),!1),e=>{at.push(e),Ve.postMessage(rt,"*")}):e=>setTimeout(e));var ot,st,rt,at;const lt="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Ve):"undefined"!=typeof process&&process.nextTick||it,ct={isArray:je,isArrayBuffer:Ae,isBuffer:function(e){return null!==e&&!$e(e)&&null!==e.constructor&&!$e(e.constructor)&&Ee(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Ee(e.append)&&("formdata"===(t=xe(e))||"object"===t&&Ee(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Ae(e.buffer),t},isString:Ne,isNumber:Le,isBoolean:e=>!0===e||!1===e,isObject:Me,isPlainObject:Re,isReadableStream:De,isRequest:We,isResponse:Be,isHeaders:Ue,isUndefined:$e,isDate:Te,isFile:Oe,isBlob:Ie,isRegExp:Je,isFunction:Ee,isStream:e=>Me(e)&&Ee(e.pipe),isURLSearchParams:Fe,isTypedArray:Ke,isFileList:Pe,forEach:He,merge:function e(){const{caseless:t}=Ge(this)&&this||{},n={},i=(i,o)=>{const s=t&&ze(n,o)||o;Re(n[s])&&Re(i)?n[s]=e(n[s],i):Re(i)?n[s]=e({},i):je(i)?n[s]=i.slice():n[s]=i};for(let e=0,t=arguments.length;e(He(t,((t,i)=>{n&&Ee(t)?e[i]=we(t,n):e[i]=t}),{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,i)=>{let o,s,r;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)r=o[s],i&&!i(r,e,t)||a[r]||(t[r]=e[r],a[r]=!0);e=!1!==n&&ye(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:xe,kindOfTest:ke,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return-1!==i&&i===n},toArray:e=>{if(!e)return null;if(je(e))return e;let t=e.length;if(!Le(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const n=i.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const i=[];for(;null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:Ze,hasOwnProperty:Ye,hasOwnProp:Ye,reduceDescriptors:Qe,freezeMethods:e=>{Qe(e,((t,n)=>{if(Ee(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=e[n];Ee(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},i=e=>{e.forEach((e=>{n[e]=!0}))};return je(e)?i(e):i(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:ze,global:Ve,isContextDefined:Ge,ALPHABET:tt,generateString:(e=16,t=tt.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n},isSpecCompliantForm:function(e){return!!(e&&Ee(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,i)=>{if(Me(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[i]=e;const o=je(e)?[]:{};return He(e,((e,t)=>{const s=n(e,i+1);!$e(s)&&(o[t]=s)})),t[i]=void 0,o}}return e};return n(e,0)},isAsyncFn:nt,isThenable:e=>e&&(Me(e)||Ee(e))&&Ee(e.then)&&Ee(e.catch),setImmediate:it,asap:lt};function dt(e,t,n,i,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o,this.status=o.status?o.status:null)}ct.inherits(dt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ct.toJSONObject(this.config),code:this.code,status:this.status}}});const ht=dt.prototype,pt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{pt[e]={value:e}})),Object.defineProperties(dt,pt),Object.defineProperty(ht,"isAxiosError",{value:!0}),dt.from=(e,t,n,i,o,s)=>{const r=Object.create(ht);return ct.toFlatObject(e,r,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),dt.call(r,e.message,t,n,i,o),r.cause=e,r.name=e.name,s&&Object.assign(r,s),r};const ut=dt;function gt(e){return ct.isPlainObject(e)||ct.isArray(e)}function mt(e){return ct.endsWith(e,"[]")?e.slice(0,-2):e}function ft(e,t,n){return e?e.concat(t).map((function(e,t){return e=mt(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const _t=ct.toFlatObject(ct,{},null,(function(e){return/^is[A-Z]/.test(e)})),bt=function(e,t,n){if(!ct.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const i=(n=ct.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!ct.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,s=n.dots,r=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ct.isSpecCompliantForm(t);if(!ct.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(ct.isDate(e))return e.toISOString();if(!a&&ct.isBlob(e))throw new ut("Blob is not supported. Use a Buffer instead.");return ct.isArrayBuffer(e)||ct.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(ct.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(ct.isArray(e)&&function(e){return ct.isArray(e)&&!e.some(gt)}(e)||(ct.isFileList(e)||ct.endsWith(n,"[]"))&&(a=ct.toArray(e)))return n=mt(n),a.forEach((function(e,i){!ct.isUndefined(e)&&null!==e&&t.append(!0===r?ft([n],i,s):null===r?n:n+"[]",l(e))})),!1;return!!gt(e)||(t.append(ft(o,n,s),l(e)),!1)}const d=[],h=Object.assign(_t,{defaultVisitor:c,convertValue:l,isVisitable:gt});if(!ct.isObject(e))throw new TypeError("data must be an object");return function e(n,i){if(!ct.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+i.join("."));d.push(n),ct.forEach(n,(function(n,s){!0===(!(ct.isUndefined(n)||null===n)&&o.call(t,n,ct.isString(s)?s.trim():s,i,h))&&e(n,i?i.concat(s):[s])})),d.pop()}}(e),t};function wt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function vt(e,t){this._pairs=[],e&&bt(e,this,t)}const yt=vt.prototype;yt.append=function(e,t){this._pairs.push([e,t])},yt.toString=function(e){const t=e?function(t){return e.call(this,t,wt)}:wt;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const xt=vt;function Ct(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function kt(e,t,n){if(!t)return e;const i=n&&n.encode||Ct,o=n&&n.serialize;let s;if(s=o?o(t,n):ct.isURLSearchParams(t)?t.toString():new xt(t,n).toString(i),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}const St=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ct.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},jt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$t={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:xt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},At="undefined"!=typeof window&&"undefined"!=typeof document,Nt="object"==typeof navigator&&navigator||void 0,Et=At&&(!Nt||["ReactNative","NativeScript","NS"].indexOf(Nt.product)<0),Lt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Mt=At&&window.location.href||"http://localhost",Rt={...e,...$t},Tt=function(e){function t(e,n,i,o){let s=e[o++];if("__proto__"===s)return!0;const r=Number.isFinite(+s),a=o>=e.length;return s=!s&&ct.isArray(i)?i.length:s,a?(ct.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!r):(i[s]&&ct.isObject(i[s])||(i[s]=[]),t(e,n,i[s],o)&&ct.isArray(i[s])&&(i[s]=function(e){const t={},n=Object.keys(e);let i;const o=n.length;let s;for(i=0;i{t(function(e){return ct.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),i,n,0)})),n}return null},Ot={transitional:jt,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,o=ct.isObject(e);if(o&&ct.isHTMLForm(e)&&(e=new FormData(e)),ct.isFormData(e))return i?JSON.stringify(Tt(e)):e;if(ct.isArrayBuffer(e)||ct.isBuffer(e)||ct.isStream(e)||ct.isFile(e)||ct.isBlob(e)||ct.isReadableStream(e))return e;if(ct.isArrayBufferView(e))return e.buffer;if(ct.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return bt(e,new Rt.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,i){return Rt.isNode&&ct.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((s=ct.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return bt(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||i?(t.setContentType("application/json",!1),function(e){if(ct.isString(e))try{return(0,JSON.parse)(e),ct.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Ot.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(ct.isResponse(e)||ct.isReadableStream(e))return e;if(e&&ct.isString(e)&&(n&&!this.responseType||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw ut.from(e,ut.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rt.classes.FormData,Blob:Rt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ct.forEach(["delete","get","head","post","put","patch"],(e=>{Ot.headers[e]={}}));const It=Ot,Pt=ct.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ft=Symbol("internals");function Dt(e){return e&&String(e).trim().toLowerCase()}function Wt(e){return!1===e||null==e?e:ct.isArray(e)?e.map(Wt):String(e)}function Bt(e,t,n,i,o){return ct.isFunction(i)?i.call(this,t,n):(o&&(t=n),ct.isString(t)?ct.isString(i)?-1!==t.indexOf(i):ct.isRegExp(i)?i.test(t):void 0:void 0)}class Ut{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function o(e,t,n){const o=Dt(t);if(!o)throw new Error("header name must be a non-empty string");const s=ct.findKey(i,o);(!s||void 0===i[s]||!0===n||void 0===n&&!1!==i[s])&&(i[s||t]=Wt(e))}const s=(e,t)=>ct.forEach(e,((e,n)=>o(e,n,t)));if(ct.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(ct.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let n,i,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),i=e.substring(o+1).trim(),!n||t[n]&&Pt[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)})),t})(e),t);else if(ct.isHeaders(e))for(const[t,i]of e.entries())o(i,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=Dt(e)){const n=ct.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}(e);if(ct.isFunction(t))return t.call(this,e,n);if(ct.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Dt(e)){const n=ct.findKey(this,e);return!(!n||void 0===this[n]||t&&!Bt(0,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function o(e){if(e=Dt(e)){const o=ct.findKey(n,e);!o||t&&!Bt(0,n[o],o,t)||(delete n[o],i=!0)}}return ct.isArray(e)?e.forEach(o):o(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;for(;n--;){const o=t[n];e&&!Bt(0,this[o],o,e,!0)||(delete this[o],i=!0)}return i}normalize(e){const t=this,n={};return ct.forEach(this,((i,o)=>{const s=ct.findKey(n,o);if(s)return t[s]=Wt(i),void delete t[o];const r=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();r!==o&&delete t[o],t[r]=Wt(i),n[r]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ct.forEach(this,((n,i)=>{null!=n&&!1!==n&&(t[i]=e&&ct.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Ft]=this[Ft]={accessors:{}}).accessors,n=this.prototype;function i(e){const i=Dt(e);t[i]||(function(e,t){const n=ct.toCamelCase(" "+t);["get","set","has"].forEach((i=>{Object.defineProperty(e,i+n,{value:function(e,n,o){return this[i].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[i]=!0)}return ct.isArray(e)?e.forEach(i):i(e),this}}Ut.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ct.reduceDescriptors(Ut.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),ct.freezeMethods(Ut);const Ht=Ut;function zt(e,t){const n=this||It,i=t||n,o=Ht.from(i.headers);let s=i.data;return ct.forEach(e,(function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function Vt(e){return!(!e||!e.__CANCEL__)}function Gt(e,t,n){ut.call(this,null==e?"canceled":e,ut.ERR_CANCELED,t,n),this.name="CanceledError"}ct.inherits(Gt,ut,{__CANCEL__:!0});const Kt=Gt;function qt(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new ut("Request failed with status code "+n.status,[ut.ERR_BAD_REQUEST,ut.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Zt=(e,t,n=3)=>{let i=0;const o=function(e,t){e=e||10;const n=new Array(e),i=new Array(e);let o,s=0,r=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),c=i[r];o||(o=l),n[s]=a,i[s]=l;let d=r,h=0;for(;d!==s;)h+=n[d++],d%=e;if(s=(s+1)%e,s===r&&(r=(r+1)%e),l-o{o=s,n=null,i&&(clearTimeout(i),i=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=s?r(e,t):(n=e,i||(i=setTimeout((()=>{i=null,r(n)}),s-a)))},()=>n&&r(n)]}((n=>{const s=n.loaded,r=n.lengthComputable?n.total:void 0,a=s-i,l=o(a);i=s,e({loaded:s,total:r,progress:r?s/r:void 0,bytes:a,rate:l||void 0,estimated:l&&r&&s<=r?(r-s)/l:void 0,event:n,lengthComputable:null!=r,[t?"download":"upload"]:!0})}),n)},Yt=(e,t)=>{const n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},Jt=e=>(...t)=>ct.asap((()=>e(...t))),Qt=Rt.hasStandardBrowserEnv?function(){const e=Rt.navigator&&/(msie|trident)/i.test(Rt.navigator.userAgent),t=document.createElement("a");let n;function i(n){let i=n;return e&&(t.setAttribute("href",i),i=t.href),t.setAttribute("href",i),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=i(window.location.href),function(e){const t=ct.isString(e)?i(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},Xt=Rt.hasStandardBrowserEnv?{write(e,t,n,i,o,s){const r=[e+"="+encodeURIComponent(t)];ct.isNumber(n)&&r.push("expires="+new Date(n).toGMTString()),ct.isString(i)&&r.push("path="+i),ct.isString(o)&&r.push("domain="+o),!0===s&&r.push("secure"),document.cookie=r.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function en(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const tn=e=>e instanceof Ht?{...e}:e;function nn(e,t){t=t||{};const n={};function i(e,t,n){return ct.isPlainObject(e)&&ct.isPlainObject(t)?ct.merge.call({caseless:n},e,t):ct.isPlainObject(t)?ct.merge({},t):ct.isArray(t)?t.slice():t}function o(e,t,n){return ct.isUndefined(t)?ct.isUndefined(e)?void 0:i(void 0,e,n):i(e,t,n)}function s(e,t){if(!ct.isUndefined(t))return i(void 0,t)}function r(e,t){return ct.isUndefined(t)?ct.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function a(n,o,s){return s in t?i(n,o):s in e?i(void 0,n):void 0}const l={url:s,method:s,data:s,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:a,headers:(e,t)=>o(tn(e),tn(t),!0)};return ct.forEach(Object.keys(Object.assign({},e,t)),(function(i){const s=l[i]||o,r=s(e[i],t[i],i);ct.isUndefined(r)&&s!==a||(n[i]=r)})),n}const on=e=>{const t=nn({},e);let n,{data:i,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:r,headers:a,auth:l}=t;if(t.headers=a=Ht.from(a),t.url=kt(en(t.baseURL,t.url),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),ct.isFormData(i))if(Rt.hasStandardBrowserEnv||Rt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(Rt.hasStandardBrowserEnv&&(o&&ct.isFunction(o)&&(o=o(t)),o||!1!==o&&Qt(t.url))){const e=s&&r&&Xt.read(r);e&&a.set(s,e)}return t},sn="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const i=on(e);let o=i.data;const s=Ht.from(i.headers).normalize();let r,a,l,c,d,{responseType:h,onUploadProgress:p,onDownloadProgress:u}=i;function g(){c&&c(),d&&d(),i.cancelToken&&i.cancelToken.unsubscribe(r),i.signal&&i.signal.removeEventListener("abort",r)}let m=new XMLHttpRequest;function f(){if(!m)return;const i=Ht.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());qt((function(e){t(e),g()}),(function(e){n(e),g()}),{data:h&&"text"!==h&&"json"!==h?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:i,config:e,request:m}),m=null}m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout,"onloadend"in m?m.onloadend=f:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(f)},m.onabort=function(){m&&(n(new ut("Request aborted",ut.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new ut("Network Error",ut.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const o=i.transitional||jt;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),n(new ut(t,o.clarifyTimeoutError?ut.ETIMEDOUT:ut.ECONNABORTED,e,m)),m=null},void 0===o&&s.setContentType(null),"setRequestHeader"in m&&ct.forEach(s.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),ct.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),h&&"json"!==h&&(m.responseType=i.responseType),u&&([l,d]=Zt(u,!0),m.addEventListener("progress",l)),p&&m.upload&&([a,c]=Zt(p),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",c)),(i.cancelToken||i.signal)&&(r=t=>{m&&(n(!t||t.type?new Kt(null,e,m):t),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(r),i.signal&&(i.signal.aborted?r():i.signal.addEventListener("abort",r)));const _=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(i.url);_&&-1===Rt.protocols.indexOf(_)?n(new ut("Unsupported protocol "+_+":",ut.ERR_BAD_REQUEST,e)):m.send(o||null)}))},rn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,i=new AbortController;const o=function(e){if(!n){n=!0,r();const t=e instanceof Error?e:this.reason;i.abort(t instanceof ut?t:new Kt(t instanceof Error?t.message:t))}};let s=t&&setTimeout((()=>{s=null,o(new ut(`timeout ${t} of ms exceeded`,ut.ETIMEDOUT))}),t);const r=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:a}=i;return a.unsubscribe=()=>ct.asap(r),a}},an=function*(e,t){let n=e.byteLength;if(!t||n{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*an(n,t)}(e,t);let s,r=0,a=e=>{s||(s=!0,i&&i(e))};return new ReadableStream({async pull(e){try{const{done:t,value:i}=await o.next();if(t)return a(),void e.close();let s=i.byteLength;if(n){let e=r+=s;n(e)}e.enqueue(new Uint8Array(i))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},cn="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,dn=cn&&"function"==typeof ReadableStream,hn=cn&&("function"==typeof TextEncoder?(pn=new TextEncoder,e=>pn.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var pn;const un=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},gn=dn&&un((()=>{let e=!1;const t=new Request(Rt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),mn=dn&&un((()=>ct.isReadableStream(new Response("").body))),fn={stream:mn&&(e=>e.body)};var bn;cn&&(bn=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!fn[e]&&(fn[e]=ct.isFunction(bn[e])?t=>t[e]():(t,n)=>{throw new ut(`Response type '${e}' is not supported`,ut.ERR_NOT_SUPPORT,n)})})));const wn={http:null,xhr:sn,fetch:cn&&(async e=>{let{url:t,method:n,data:i,signal:o,cancelToken:s,timeout:r,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:d,withCredentials:h="same-origin",fetchOptions:p}=on(e);c=c?(c+"").toLowerCase():"text";let u,g=rn([o,s&&s.toAbortSignal()],r);const m=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let f;try{if(l&&gn&&"get"!==n&&"head"!==n&&0!==(f=await(async(e,t)=>{const n=ct.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(ct.isBlob(e))return e.size;if(ct.isSpecCompliantForm(e)){const t=new Request(Rt.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ct.isArrayBufferView(e)||ct.isArrayBuffer(e)?e.byteLength:(ct.isURLSearchParams(e)&&(e+=""),ct.isString(e)?(await hn(e)).byteLength:void 0)})(t):n})(d,i))){let e,n=new Request(t,{method:"POST",body:i,duplex:"half"});if(ct.isFormData(i)&&(e=n.headers.get("content-type"))&&d.setContentType(e),n.body){const[e,t]=Yt(f,Zt(Jt(l)));i=ln(n.body,65536,e,t)}}ct.isString(h)||(h=h?"include":"omit");const o="credentials"in Request.prototype;u=new Request(t,{...p,signal:g,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:i,duplex:"half",credentials:o?h:void 0});let s=await fetch(u);const r=mn&&("stream"===c||"response"===c);if(mn&&(a||r&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=s[t]}));const t=ct.toFiniteNumber(s.headers.get("content-length")),[n,i]=a&&Yt(t,Zt(Jt(a),!0))||[];s=new Response(ln(s.body,65536,n,(()=>{i&&i(),m&&m()})),e)}c=c||"text";let _=await fn[ct.findKey(fn,c)||"text"](s,e);return!r&&m&&m(),await new Promise(((t,n)=>{qt(t,n,{data:_,headers:Ht.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:u})}))}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new ut("Network Error",ut.ERR_NETWORK,e,u),{cause:t.cause||t});throw ut.from(t,t&&t.code,e,u)}})};ct.forEach(wn,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const vn=e=>`- ${e}`,yn=e=>ct.isFunction(e)||null===e||!1===e,xn=e=>{e=ct.isArray(e)?e:[e];const{length:t}=e;let n,i;const o={};for(let s=0;s`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(vn).join("\n"):" "+vn(e[0]):"as no adapter specified";throw new ut("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return i};function Cn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Kt(null,e)}function kn(e){return Cn(e),e.headers=Ht.from(e.headers),e.data=zt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),xn(e.adapter||It.adapter)(e).then((function(t){return Cn(e),t.data=zt.call(e,e.transformResponse,t),t.headers=Ht.from(t.headers),t}),(function(t){return Vt(t)||(Cn(e),t&&t.response&&(t.response.data=zt.call(e,e.transformResponse,t.response),t.response.headers=Ht.from(t.response.headers))),Promise.reject(t)}))}const Sn={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Sn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const jn={};Sn.transitional=function(e,t,n){function i(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new ut(i(o," has been removed"+(t?" in "+t:"")),ut.ERR_DEPRECATED);return t&&!jn[o]&&(jn[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}};const $n={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ut("options must be an object",ut.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let o=i.length;for(;o-- >0;){const s=i[o],r=t[s];if(r){const t=e[s],n=void 0===t||r(t,s,e);if(!0!==n)throw new ut("option "+s+" must be "+n,ut.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ut("Unknown option "+s,ut.ERR_BAD_OPTION)}},validators:Sn},An=$n.validators;class Nn{constructor(e){this.defaults=e,this.interceptors={request:new St,response:new St}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=nn(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:o}=t;void 0!==n&&$n.assertOptions(n,{silentJSONParsing:An.transitional(An.boolean),forcedJSONParsing:An.transitional(An.boolean),clarifyTimeoutError:An.transitional(An.boolean)},!1),null!=i&&(ct.isFunction(i)?t.paramsSerializer={serialize:i}:$n.assertOptions(i,{encode:An.function,serialize:An.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&ct.merge(o.common,o[t.method]);o&&ct.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Ht.concat(s,o);const r=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let d,h=0;if(!a){const e=[kn.bind(this),void 0];for(e.unshift.apply(e,r),e.push.apply(e,l),d=e.length,c=Promise.resolve(t);h{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const i=new Promise((e=>{n.subscribe(e),t=e})).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e((function(e,i,o){n.reason||(n.reason=new Kt(e,i,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Ln((function(t){e=t})),cancel:e}}}const Mn=Ln,Rn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Rn).forEach((([e,t])=>{Rn[t]=e}));const Tn=Rn,On=function e(t){const n=new En(t),i=we(En.prototype.request,n);return ct.extend(i,En.prototype,n,{allOwnKeys:!0}),ct.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(nn(t,n))},i}(It);On.Axios=En,On.CanceledError=Kt,On.CancelToken=Mn,On.isCancel=Vt,On.VERSION="1.7.7",On.toFormData=bt,On.AxiosError=ut,On.Cancel=On.CanceledError,On.all=function(e){return Promise.all(e)},On.spread=function(e){return function(t){return e.apply(null,t)}},On.isAxiosError=function(e){return ct.isObject(e)&&!0===e.isAxiosError},On.mergeConfig=nn,On.AxiosHeaders=Ht,On.formToJSON=e=>Tt(ct.isHTMLForm(e)?new FormData(e):e),On.getAdapter=xn,On.HttpStatusCode=Tn,On.default=On;const In=On,Pn=window.wp.i18n,Fn={widgetList:[{name:"essential_widgets",label:(0,Pn.__)("Essential","tpebl"),widgets:[{name:"tp_accordion",label:(0,Pn.__)("Accordion","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/accordion/",docUrl:"https://theplusaddons.com/docs/elementor-accordion-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/9wy4Pgs_WcU",tag:"freemium",checked:!0,keyword:["Accordion","Toggle","Collapsible","Expandable","Content Panel","FAQ","Q&A","Show/Hide","Dropdown","Tabbed Content","Vertical Tabs","Accordion Menu","Expand/Collapse","Content Slider"]},{name:"tp_age_gate",label:(0,Pn.__)("Age Gate","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/age-gate-verification/",docUrl:"https://theplusaddons.com/docs/age-gate-widget-settings-overview/",videoUrl:"https://youtu.be/L7-Kq4Er7Ps",tag:"free",keyword:["Age Gate","Age Verification","Age Restriction","Age Confirmation","Age Check","Age Limit","Age Requirement"]},{name:"tp_audio_player",label:(0,Pn.__)("Audio Player","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/audio-player/",docUrl:"https://theplusaddons.com/docs/audio-player-in-elementor-for-mp3-music-podcast/",videoUrl:"https://www.youtube.com/embed/TUNSQWJozfk",tag:"pro",checked:!1,keyword:["Audio Player","Music Player","Sound Player","Media Player","MP3 Player","Podcast Player","Audio Widget","Music Widget","Sound Widget","Media Widget","MP3 Widget","Podcast Widget"]},{name:"tp_blockquote",label:(0,Pn.__)("Blockquote","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/blockquote/",docUrl:"https://theplusaddons.com/docs/blockquote-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/Ma7YtFHXIrs",tag:"free",checked:!0,keyword:["Quotes","Quote box","Quote widget","Testimonials","Testimonial box","Testimonial widget","Customer reviews","Review box","Review widget","Feedback box","Feedback widget","Comment box","Comment widget","Opinion box","Opinion widget","Recommendation box","Recommendation widget","Rating box","Rating widget"]},{name:"tp_button",label:(0,Pn.__)("Button","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/free-buttons/",docUrl:"https://theplusaddons.com/docs/button-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/cuxzApRULv8",tag:"free",checked:!0,keyword:["Buttons","Button widget","Elementor buttons","Elementor button widget","Button Elementor addon","Elementor plus addon buttons","Elementor plus buttons","Button","Button Elementor element","Button Elementor module","Elementor button module","Elementor button element","Button Elementor extension","Elementor button extension","Button Elementor plugin","Elementor button plugin"]},{name:"tp_breadcrumbs_bar",label:(0,Pn.__)("Breadcrumbs Bar","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/breadcrumbs-bar/",docUrl:"https://theplusaddons.com/docs/breadcrumbs-bar-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/Bzbl0LmNZ1s",tag:"free",checked:!1,keyword:["Breadcrumb","Navigation","Trail","Path","Links","Navigational Links","Navigation Bar"]},{name:"tp_chart",label:(0,Pn.__)("Chart","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/advanced-charts/",docUrl:"https://theplusaddons.com/docs/chart-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/2kDLRWNj3r8",tag:"pro",checked:!1,pro_status:"update",setting:[{show:"yes",type:"features",option:[{name:(0,Pn.__)("Get Data From Google Sheet","tpebl"),url:"https://theplusaddons.com/widgets/elementor-advanced-charts/"},{name:(0,Pn.__)("Get Data From CSV","tpebl"),url:"https://theplusaddons.com/widgets/elementor-advanced-charts/"},{name:(0,Pn.__)("Line","tpebl"),url:"https://theplusaddons.com/widgets/elementor-advanced-charts/"},{name:(0,Pn.__)("Bar","tpebl"),url:"https://theplusaddons.com/widgets/elementor-advanced-charts/"},{name:(0,Pn.__)("Radar","tpebl"),url:"https://theplusaddons.com/widgets/elementor-advanced-charts/"},{name:(0,Pn.__)("Doughnut & Pie","tpebl"),url:"https://theplusaddons.com/widgets/elementor-advanced-charts/"},{name:(0,Pn.__)("Bubble","tpebl"),url:"https://theplusaddons.com/widgets/elementor-advanced-charts/"},{name:(0,Pn.__)("Polar Area","tpebl"),url:"https://theplusaddons.com/widgets/elementor-advanced-charts/"}]}],keyword:["Advanced Chart","Chart Widget","Elementor Chart","Graph Widget","Elementor Graph","Data Visualization Widget","Elementor Data Visualization","Advanced Data Visualization","Interactive Chart","Interactive Graph","Elementor Addon Chart","Elementor Addon Graph","chart","line","bar","vertical bar","horizontal bar","radar","pie","doughnut","polararea","bubble"]},{name:"tp_countdown",label:(0,Pn.__)("Count Down","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/countdown-timer/",docUrl:"https://theplusaddons.com/docs/countdown-widget-overview-in-elmentor/",videoUrl:"https://www.youtube.com/embed/6gB--xqBLUE",tag:"freemium",checked:!0,keyword:["Countdown","Timer","Countdown Timer","Elementor Countdown","Elementor Timer","Elementor Countdown Timer","Time Limit","Time Countdown"]},{name:"tp_coupon_code",label:(0,Pn.__)("Coupon Code","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/coupon-code/",docUrl:"https://theplusaddons.com/docs/coupon-code-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/XIFS3qq-q-s",tag:"pro",checked:!1,keyword:["Coupon","Code","Discount","Promo","Voucher","Offer","Deal","Savings","Discount Code","Promo Code","Voucher Code","Coupon Deal","Coupon Offer","Coupon Savings","Discount Offer","Discount Deal","Promo Offer","Promo Deal","Voucher Offer","Voucher Deal"]},{name:"tp_carousel_anything",label:(0,Pn.__)("Carousel Anything","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/carousel-slider/",docUrl:"https://theplusaddons.com/docs/carousel-anything-elementor-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/yszLgc0TJPA",tag:"freemium",checked:!1,keyword:["carousel","slider","slideshow","image carousel","image slider","image slideshow","carousel widget","slider widget","slideshow widget"]},{name:"tp_dynamic_categories",label:(0,Pn.__)("Dynamic Categories","tpebl"),demoUrl:"https://theplusaddons.com/elementor-listing/dynamic-category/",docUrl:"https://theplusaddons.com/docs/",videoUrl:"https://www.youtube.com/embed/Atp_gVyWko8",tag:"freemium",checked:!1,pro_status:"update",status:"update",keyword:["Dynamic Category","Category","Category Widget","Dynamic Category Widget","Elementor Dynamic Category","Elementor Category Widget","Elementor Dynamic Category Widget","Dynamic Category Elementor Addon","Category Elementor Addon","Dynamic Category Plus Addons","Category Plus Addons","Dynamic Category The Plus Addons","Category The Plus Addons"]},{name:"tp_dark_mode",label:(0,Pn.__)("Dark Mode","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/dark-mode-switcher/",docUrl:"https://theplusaddons.com/docs/dark-mode-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/HY5KlYuWP5k",tag:"free",checked:!1,keyword:["Dark mode","Night mode","Dark theme","Night theme","Dark widget","Night widget","Elementor dark mode","Elementor night mode"]},{name:"tp_heading_title",label:(0,Pn.__)("Heading Title","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/heading-titles/",docUrl:"https://theplusaddons.com/docs/heading-title-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/OcJUA6gL_0Q",tag:"free",checked:!0,status:"popular",pro_status:"popular",keyword:["Heading","Title","Heading Title","Heading Widget","Title Widget"]},{name:"tp_info_box",label:(0,Pn.__)("Info Box","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/info-box/",docUrl:"https://theplusaddons.com/docs/info-box-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/wcnlT5JE0vM",tag:"freemium",checked:!0,keyword:["box","Infobox","Info Box","Message Box","Alert Box","Notification Box","Callout Box","Warning Box","Success Box","Error Box","Message Widget","Alert Widget","Notification Widget","Info Widget","Callout Widget","Warning Widget","Success Widget","Error Widget"]},{name:"tp_icon",label:(0,Pn.__)("Icon","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/custom-icons/",docUrl:"#",videoUrl:"",tag:"free",checked:!1,status:"new",keyword:["Social Sharing","Share Buttons","Social Media Sharing","Social Icons","Social Share","Social Share Buttons","Share Widget","Share Icons","Share Buttons Widget"]},{name:"tp_messagebox",label:(0,Pn.__)("Message Box","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/message-box/",docUrl:"https://theplusaddons.com/docs/message-box-settings-overview/",videoUrl:"https://youtu.be/yEdMsJiC7Js",tag:"free",checked:!1,keyword:["Message Box","Alert Box","Notification Box","Info Box","Callout Box","Warning Box","Success Box","Error Box","Message Widget","Alert Widget","Notification Widget","Info Widget","Callout Widget","Warning Widget","Success Widget","Error Widget"]},{name:"tp_navigation_menu",label:(0,Pn.__)("Navigation Menu","tpebl"),demoUrl:"https://theplusaddons.com/elementor-builder/header-builder/navigation-menu/",docUrl:"https://theplusaddons.com/docs/navigation-menu-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/ozRGPdEu9qQ",tag:"pro",checked:!1,setting:[{show:"yes",type:"swicher",key:"tp_swicher",discription:(0,Pn.__)("We recommend using Repeater Mode to build your Mega Menu content for better flexibility and control. You can safely disable the older post type method if you’re switching to Repeater Mode.","tpebl"),option:[{name:(0,Pn.__)("Disable Plus Mega Menu Post Type","tpebl"),tag:(0,Pn.__)("pro","tpebl"),key:"tp_mega_menu"}]}],keyword:["Navigation","Menu","Nav","Navbar","Navigation bar","Navigation menu","Menu widget","Navigation widget","Horizontal Mega Menu","Horizontal Menu","Elementor Menu Widget","Vertical Mega Menu","Vertical Menu","Mega Menu","Elementor Menu","Elementor Mega Menu","Elementor Vertical Menu","Vertical Navigation","Vertical Navigation Menu","Vertical Toggle Menu","Vertical Accordion Menu","Vertical Collapsible Menu","Vertical Expandable Menu","Vertical Dropdown Menu","Vertical Toggle Navigation","Vertical Toggle Menu Widget","Elementor Vertical Toggle Menu","Elementor Vertical Accordion Menu","Elementor Vertical Collapsible Menu","Elementor Vertical Expandable Menu","Elementor Vertical Dropdown Menu","Elementor Vertical Navigation Menu","Elementor Vertical Toggle Navigation","Sticky navigation","Fixed navigation","Floating navigation","Persistent navigation","Scrollable navigation","Header navigation","Menu bar","Sticky menu"]},{name:"tp_number_counter",label:(0,Pn.__)("Number Counter","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/number-counter/",docUrl:"https://theplusaddons.com/docs/number-counter-settings-overview/",videoUrl:"https://www.youtube.com/embed/QdlEv0BTkRc",tag:"freemium",checked:!0,keyword:["Number Counter","Counter Widget","Number Counter Elementor","Elementor Number Counter","Counter","Number Counter Addon","Elementor Counter","Elementor Plus Addons Number Counter"]},{name:"tp_progress_bar",label:(0,Pn.__)("Progress Bar","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/progress-bar/",docUrl:"https://theplusaddons.com/docs/progress-bar-settings-overview/",videoUrl:"https://www.youtube.com/embed/01purtRY770",tag:"free",checked:!0,keyword:["Pie Chart","Chart","Graph","Data Visualization","Circular Chart","Percentage Chart","Statistics Chart","Progress Bar","Progress Indicator","Progress Tracker","Progress Meter","Progress Graph","Progress Chart","Progress Status"]},{name:"tp_pricing_list",label:(0,Pn.__)("Pricing List","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/price-list/",docUrl:"https://theplusaddons.com/docs/add-a-pricing-list-in-elementor/",videoUrl:"https://www.youtube.com/embed/0zSX-ovDcwM",tag:"pro",checked:!1,keyword:["pricing list","price list","price table","pricing table","pricing widget","price widget","pricing element","price element","pricing addon","price addon","pricing module","price module"]},{name:"tp_post_title",label:(0,Pn.__)("Post Title","tpebl"),demoUrl:"https://theplusaddons.com/elementor-builder/blog-builder/post-title/",docUrl:"https://theplusaddons.com/docs/customize-post-comments-in-elementor-blog-post/",videoUrl:"https://youtu.be/sU-gLRCZnLs",tag:"free",checked:!1,keyword:["Post Title","Title","Blog Title","Article Title","Page Title","Post Name","Article Name","Page Name"]},{name:"tp_pricing_table",label:(0,Pn.__)("Pricing Table","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/pricing-table/",docUrl:"https://theplusaddons.com/docs/add-a-pricing-table-in-elementor/",videoUrl:"https://www.youtube.com/embed/9V0E9mFmaro",tag:"freemium",checked:!0,keyword:["Pricing","Table","Pricing Table","Pricing Plan","Pricing Comparison","Pricing Options","Pricing Packages","Pricing Grid","Pricing Chart"]},{name:"tp_protected_content",label:(0,Pn.__)("Protected Content","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/protected-content/",docUrl:"https://theplusaddons.com/docs/protected-content-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/Nrw2nK8PvQs",tag:"pro",checked:!1,keyword:["protected content"]},{name:"tp_post_content",label:(0,Pn.__)("Post Content","tpebl"),demoUrl:"https://theplusaddons.com/elementor-builder/blog-builder/post-content/",docUrl:"https://theplusaddons.com/docs/customize-post-content-in-elementor-blog-post/",videoUrl:"https://youtu.be/sU-gLRCZnLs",tag:"free",checked:!1,keyword:["Protected Content","Password Protected Content","Content Protection","Secure Content","Restricted Content"]},{name:"tp_post_featured_image",label:(0,Pn.__)("Post Featured Image","tpebl"),demoUrl:"https://theplusaddons.com/elementor-builder/blog-builder/post-featured-image/",docUrl:"https://theplusaddons.com/docs/show-post-featured-image-in-elementor-blog-post/",videoUrl:"https://youtu.be/sU-gLRCZnLs",tag:"free",checked:!1,keyword:["Post Featured Image","Featured Image","Image Widget","Image Gallery","Image Slider","Image Carousel","Image Grid","Image Showcase","Image Viewer","Image Display","Image Preview","Image Thumbnail","Image Container","Image Box","Image Block","Image Frame","Image Holder","Image Wrapper","Image Placeholder","Image Slider Widget","Image Carousel Widget","Image Grid Widget","Image Showcase Widget","Image Viewer Widget","Image Display Widget","Image Preview Widget","Image Thumbnail Widget","Image Container Widget","Image Box Widget","Image Block"]},{name:"tp_pre_loader",label:(0,Pn.__)("Pre Loader","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/preloader-and-page-transition/",docUrl:"https://theplusaddons.com/docs/preloader-elementor-widget-settings-overview/",videoUrl:"https://youtu.be/pi5i45p8sxc",tag:"pro",checked:!1,keyword:["Preloader","Loading screen","Page loader","Spinner","Loading animation","Loading icon","Elementor preloader","Elementor loading screen","Elementor page loader","Elementor spinner","Elementor loading animation","Elementor loading icon"]},{name:"tp_post_navigation",label:(0,Pn.__)("Post Prev/Next","tpebl"),demoUrl:"https://theplusaddons.com/elementor-builder/blog-builder/post-navigation/",docUrl:"https://theplusaddons.com/docs/add-post-next-previous-button-in-elementor-blog-post/",videoUrl:"https://youtu.be/sU-gLRCZnLs",tag:"free",checked:!1,keyword:["post previous next"]},{name:"tp_post_author",label:(0,Pn.__)("Post Author","tpebl"),demoUrl:"https://theplusaddons.com/elementor-builder/blog-builder/post-author/",docUrl:"https://theplusaddons.com/docs/add-post-author-box-in-elementor-blog-post/",videoUrl:"https://youtu.be/sU-gLRCZnLs",tag:"free",checked:!1,keyword:["Post Author","Author","Author Box","Post Author Box","Author Details","Author Bio"]},{name:"tp_post_comment",label:(0,Pn.__)("Post Comment","tpebl"),demoUrl:"https://theplusaddons.com/elementor-builder/blog-builder/post-comment/",docUrl:"https://theplusaddons.com/docs/customize-post-comments-in-elementor-blog-post/",videoUrl:"https://youtu.be/sU-gLRCZnLs",tag:"free",checked:!1,keyword:["Post Comment","Comment","Comment Box","Comment Section","Feedback","User Feedback","User Comment","Add Comment","Leave Comment","Submit Comment","Comment Form","Comment Widget","Comment Element","Elementor Comment","Elementor Comment Box","Elementor Comment Section","Elementor Feedback","Elementor User Feedback","Elementor User Comment","Elementor Add Comment","Elementor Leave Comment","Elementor Submit Comment","Elementor Comment Form"]},{name:"tp_post_meta",label:(0,Pn.__)("Post Meta","tpebl"),demoUrl:"https://theplusaddons.com/elementor-builder/blog-builder/post-meta/",docUrl:"https://theplusaddons.com/docs/add-post-meta-in-elementor-blog-post/",videoUrl:"https://youtu.be/sU-gLRCZnLs",tag:"free",checked:!1,keyword:["Post Meta","Custom Fields","Post Data","Meta Data","Advanced Fields"]},{name:"tp_row_background",label:(0,Pn.__)("Row Background","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/section-background/",docUrl:"https://theplusaddons.com/docs/",videoUrl:"https://www.youtube.com/embed/2uIMQCIfjlM",tag:"pro",checked:!1,keyword:["Row Background","Background for Row","Row Background Color","Row Background Image","Row Background Options","Row Background Styles","Parallax","Background","Parallax Background","Elementor Parallax","Elementor Background","Segment","Elementor","Widget","Canvas","Plus Addons","Search bar","Keywords","Terms","Gallery","Image","Photo","Picture","Slider","Carousel","Grid","Masonry","Thumbnail","Portfolio","Special Backgrounds","Backgrounds","Custom Backgrounds","Unique Backgrounds","Elementor Backgrounds","Plus Addons Widget","The Plus Addons Widget","Video Background","Background Video","Video Background Widget","Background Video Widget","Elementor Video Background","Elementor Background Video","Video Background Addon","Background Video Addon","The Plus Addons Video Background","The Plus Addons Background Video"]},{name:"tp_style_list",label:(0,Pn.__)("Stylish List","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/stylish-list/",docUrl:"https://theplusaddons.com/docs/style-lists-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/mQuR6xN097w",tag:"freemium",checked:!1,keyword:["Stylist List","Stylist Widget","Stylist","Stylist Addon","Stylist Plus Addon","Stylist Plugin","Elementor Stylist","Elementor Stylist List","Elementor Stylist Widget","Elementor Stylist Addon","Elementor Stylist Plus Addon","Elementor Stylist Plugin"]},{name:"tp_syntax_highlighter",label:(0,Pn.__)("Syntax Highlighter","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/syntax-code-highlighter/",docUrl:"https://theplusaddons.com/docs/syntax-highlighter-settings-overview/",videoUrl:"",tag:"free",checked:!1,status:"update",keyword:["Syntax Highlighter","code highlighter","code syntax","code editor","code formatting","code styling","code display","code snippet","code block"]},{name:"tp_site_logo",label:(0,Pn.__)("Site Logo","tpebl"),demoUrl:"https://theplusaddons.com/elementor-builder/header-builder/site-logo-for-elementor/",docUrl:"https://theplusaddons.com/docs/site-logo-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/96Wh1AEKNtU",tag:"pro",checked:!1,keyword:["site logo","logo widget","logo","elementor site logo","logo for elementor","elementor logo addon"]},{name:"tp_table",label:(0,Pn.__)("Table","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/data-tables/",docUrl:"https://theplusaddons.com/docs/table-elementor-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/CrY7rg_ir8k",tag:(0,Pn.__)("freemium","tpebl"),checked:!1,setting:[{show:"yes",type:"swicher",key:"tp_swicher",discription:(0,Pn.__)("Select the options you need for your Table widget, we’ll only load those features and disable the rest to keep things light and fast.","tpebl"),option:[{name:(0,Pn.__)("Google Sheet","tpebl"),url:"https://theplusaddons.com/elementor-builder/header-builder/header-extras/",tag:(0,Pn.__)("pro","tpebl"),key:"tp_google_sheet"},{name:(0,Pn.__)("CSV","tpebl"),url:"https://theplusaddons.com/elementor-builder/header-builder/header-extras/",tag:(0,Pn.__)("pro","tpebl"),key:"tp_csv"},{name:(0,Pn.__)("Form Compatibility","tpebl"),url:"https://theplusaddons.com/elementor-builder/header-builder/header-extras/",tag:(0,Pn.__)("pro","tpebl"),key:"tp_form"},{name:(0,Pn.__)("SQL Query","tpebl"),url:"https://theplusaddons.com/elementor-builder/header-builder/header-extras/",tag:(0,Pn.__)("pro","tpebl"),key:"tp_sql_query"}]}],keyword:["Table","Data Table","Table Widget","Table","Table Addon","Table Plugin","Elementor Table","Elementor Data Table","Table Design","Table Layout"]},{name:"tp_table_content",label:(0,Pn.__)("Table Of Content","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/table-of-contents/",docUrl:"https://theplusaddons.com/docs/",videoUrl:"https://youtu.be/NWhr5lOm_3Y",tag:"pro",checked:!1,pro_status:"update",status:"update",keyword:["Table Of Contents","TOC","Contents Table","Navigation","Index","Menu","Links","Anchor Links","Scroll","Scrollspy","Elementor Table Of Contents","Elementor TOC"]},{name:"tp_tabs_tours",label:(0,Pn.__)("Tabs/Tours","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/tabs/",docUrl:"https://theplusaddons.com/docs/tabs-tours-elementor-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/6clEoNvxtLY",tag:"freemium",checked:!0,status:"popular",pro_status:"popular",keyword:["tabs","tours","Tabs widget","Tours widget","Elementor Tabs","Elementor Tours","Elementor Tabs widget","Elementor Tours widget","Tabs addon","Tours addon","Elementor Tabs addon","Elementor Tours addon"]},{name:"tp_adv_text_block",label:(0,Pn.__)("Text Block","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/advanced-text-block/",docUrl:"https://theplusaddons.com/docs/advanced-text-block-elementor/",videoUrl:"https://www.youtube.com/embed/SsyUaK_f3pQ",tag:"free",checked:!0,keyword:["Advance Text Block","Advanced Text Block","Text Block","Enhanced Text Block","Improved Text Block","Customizable Text Block","Stylish Text Block","Unique Text Block","Elementor Text Block","Elementor Advanced Text Block","Elementor Enhanced Text Block","Elementor Customizable Text Block","Elementor Stylish Text Block","Elementor Unique Text Block","Elementor Addon Text Block","Text Block","Text Editor","Rich Text Editor","Elementor Text Editor","Elementor Rich Text Editor"]},{name:"tp_google_map",label:(0,Pn.__)("Google Map","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/google-maps/",docUrl:"https://theplusaddons.com/docs/google-maps-elementor-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/NwY-Pt8q-6g",tag:"pro",checked:!1,keyword:["Google Map","map","location","directions","navigation","interactive map","map widget","map element","map plugin","map addon","map extension"]},{name:"tp_video_player",label:(0,Pn.__)("Video Player","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/video-player/",docUrl:"https://theplusaddons.com/docs/",videoUrl:"https://www.youtube.com/embed/i3IeWaz0N-k",tag:"free",checked:!0,keyword:["video","media","player","multimedia","youtube","vimeo","mp4","embed","playback","watch","stream","online","clip","film","movie","visual","recording","motion picture"]},{name:"tp_wp_login_register",label:(0,Pn.__)("WP Login & Register","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/login-form/",docUrl:"https://theplusaddons.com/docs/create-a-login-register-form-in-elementor/",videoUrl:"https://www.youtube.com/embed/-y0tLa7c5sI",tag:"pro",checked:!1,keyword:["Login","Signup","User login","User signup","Login widget","Signup widget","User login widget","User signup widget"]},{name:"tp_post_search",label:(0,Pn.__)("Post Search","tpebl"),demoUrl:"https://theplusaddons.com/widgets/search-bar/",docUrl:"https://theplusaddons.com/docs/",videoUrl:"https://www.youtube.com/embed/3k8sPvQkQvA",tag:"DEPRECATED",checked:!1,keyword:["Post search bar","search bar","post search","search widget","post widget","elementor search bar","elementor search widget","search bar","search widget","search","post search widget","post search","search addon","search elementor addon"]}]},{name:"advanced_widgets",label:(0,Pn.__)("Advanced","tpebl"),widgets:[{name:"tp_header_extras",label:(0,Pn.__)("Header Meta Content","tpebl"),demoUrl:"https://theplusaddons.com/elementor-builder/header-builder/header-extras/",docUrl:"https://theplusaddons.com/docs/header-meta-content-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/96Wh1AEKNtU",tag:"freemium",checked:!0,setting:[{show:"yes",type:"features",option:[{name:(0,Pn.__)("Search Bar","tpebl"),url:"https://theplusaddons.com/elementor-builder/header-builder/header-extras/"},{name:(0,Pn.__)("Toggle Bar","tpebl"),url:"https://theplusaddons.com/elementor-builder/header-builder/header-extras/"},{name:(0,Pn.__)("Language Switcher","tpebl"),url:"https://theplusaddons.com/elementor-builder/header-builder/header-extras/"},{name:(0,Pn.__)("Music","tpebl"),url:"https://theplusaddons.com/elementor-builder/header-builder/header-extras/"},{name:(0,Pn.__)("Mini Cart","tpebl"),url:"https://theplusaddons.com/elementor-builder/header-builder/header-extras/"}]}],keyword:["Header extras","Elementor header extras","Elementor addon","The Plus Addons for Elementor","Search bar","Search widget"]},{name:"tp_horizontal_scroll_advance",label:(0,Pn.__)("Horizontal Scroll","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/horizontal-scroll/",docUrl:"https://theplusaddons.com/docs/horizontal-scroll-elementor-widget-settings-overview/",videoUrl:"",tag:"pro",checked:!1,status:"popular",pro_status:"popular",keyword:["Page Piling","Page Scroll","Scrollable Pages","Vertical Scroll","Full Page Scroll","Scrollable Sections","Full Page","Full-Width Page","Full Width","Full Width Template"]},{name:"tp_image_factory",label:(0,Pn.__)("Creative Image","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/creative-images/",docUrl:"https://theplusaddons.com/docs/creative-image-widget/",videoUrl:"https://www.youtube.com/embed/NAxYbZgGwmU",tag:"pro",checked:!1,keyword:["creative image"]},{name:"tp_mobile_menu",label:(0,Pn.__)("Mobile Menu","tpebl"),demoUrl:"https://theplusaddons.com/elementor-builder/header-builder/mobile-menu/",docUrl:"https://theplusaddons.com/docs/mobile-menu-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/PDXbtRsYwGE",tag:"pro",checked:!1,keyword:["Mobile Menu","Hamburger Menu","Responsive Menu","Navigation Menu","Menu Widget","Elementor Menu","Elementor Navigation","Elementor Mobile Menu"]},{name:"tp_navigation_menu_lite",label:(0,Pn.__)("Navigation Menu Lite","tpebl"),demoUrl:"https://theplusaddons.com/elementor-builder/header-builder/",docUrl:"https://theplusaddons.com/docs/navigation-menu-lite-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/ozRGPdEu9qQ",tag:"free",checked:!1,keyword:["Navigation","Menu","Nav","Navbar","Navigation bar","Navigation menu","Menu bar","Menu widget","Navigation widget"]},{name:"tp_page_scroll",label:(0,Pn.__)("Page Scroll","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/full-page-scroll/",docUrl:"https://theplusaddons.com/docs/",videoUrl:"https://www.youtube.com/embed/8An5WSz3TUo",tag:"freemium",checked:!1,keyword:["Page Piling","Page Scroll","Scrollable Pages","Vertical Scroll","Full Page Scroll","Scrollable Sections"]},{name:"tp_scroll_sequence",label:(0,Pn.__)("Scroll Sequence","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/image-scroll-sequence/",docUrl:"https://theplusaddons.com/docs/scroll-sequence-elementor-widget-settings-overview/",videoUrl:"",tag:"pro",checked:!1,keyword:["Scroll Sequence","Image Sequence","Video Scroll Sequence","Image Scroll Sequence","Cinematic Scroll Sequence","Cinematic Scroll Animation","Image Scroll Animation"]}]},{name:"creative_widgets",label:(0,Pn.__)("Creative","tpebl"),widgets:[{name:"tp_design_tool",label:(0,Pn.__)("Design Tool","tpebl"),demoUrl:"https://theplusaddons.com/elementor-extras/grid-design-tool/",docUrl:"https://theplusaddons.com/docs/",videoUrl:"https://www.youtube.com/embed/HL36KplDhVo",tag:"pro",checked:!1,keyword:["Design Styles","Styles","Widget Styles","Elementor Styles","Styles","Design Widget","Elementor Design Styles","Design"]},{name:"tp_advanced_buttons",label:(0,Pn.__)("Advanced Buttons","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/advanced-buttons/",docUrl:"https://theplusaddons.com/docs/add-advanced-buttons-in-elementor/",videoUrl:"https://www.youtube.com/embed/BxIrCaIRAE0",tag:"pro",checked:!1,keyword:["Advanced Buttons","Button Widget","Custom Buttons","Stylish Buttons","Creative Buttons","Elementor Buttons","Button","Button Addon","Button Plugin","Button Element"]},{name:"tp_advanced_typography",label:(0,Pn.__)("Advanced Typography","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/advanced-typography/",docUrl:"https://theplusaddons.com/docs/advanced-typography/",videoUrl:"https://www.youtube.com/embed/_zdX4iGcbtA",tag:"pro",checked:!1,keyword:["Advanced Typography","Typography Widget","Elementor Typography","Custom Typography","Typography Options"]},{name:"tp_advertisement_banner",label:(0,Pn.__)("Advertisement Banner","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/banner-widget/",docUrl:"https://theplusaddons.com/docs/add-advertisement-banner-in-elementor-wordpress/",videoUrl:"https://www.youtube.com/embed/ac9R_tQnh1c",tag:"pro",checked:!1,keyword:["advertisement","banner","ad","promotion","marketing","display","graphics"]},{name:"tp_shape_divider",label:(0,Pn.__)("Advanced Separators","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/advanced-separators/",docUrl:"https://theplusaddons.com/docs/add-separators-in-elementor/",videoUrl:"https://www.youtube.com/embed/REW41xU0aRg",tag:"pro",checked:!1,keyword:["Animated Separators","Elementor Animated Separators","Plus Addons Animated Separators","Elementor Addon","Animated Lines","Decorative Separators","Fancy Separators","Fancy Lines","Animated Dividers","Elementor Dividers"]},{name:"tp_animated_service_boxes",label:(0,Pn.__)("Animated Service Boxes","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/animated-service-boxes/",docUrl:"https://theplusaddons.com/docs/animated-service-boxes/",videoUrl:"https://www.youtube.com/embed/EZDOPlaO_2Y",tag:"pro",checked:!1,keyword:["Animated","Service","Boxes","Animated Service Boxes","Elementor addon","Elementor search bar","search","Widget for Elementor","Elementor service boxes","Elementor animated boxes"]},{name:"tp_heading_animation",label:(0,Pn.__)("Heading Animation","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/heading-animations/",docUrl:"https://theplusaddons.com/docs/add-animated-headings-in-elementor/",videoUrl:"https://www.youtube.com/embed/LTgDD_v8ioA",tag:"free",checked:!0,keyword:["Animated Text","Text Animation","Animated Typography","Animated Heading","Animated Title","Animated Words"]},{name:"tp_before_after",label:(0,Pn.__)("Before After","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/before-after-slider/",docUrl:"https://theplusaddons.com/docs/add-before-after-image-comparison-in-elementor/",videoUrl:"https://www.youtube.com/embed/vi_lRiOeOfc",tag:"pro",checked:!1,keyword:["Before After Image","Before and After Image","Image Comparison","Image Slider","Image Before and After","Elementor Before After Image","Elementor Image Comparison","Elementor Image Slider","Elementor Before and After","Before After Slider"]},{name:"tp_carousel_remote",label:(0,Pn.__)("Carousel Remote","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/carousel-remote-sync/",docUrl:"https://theplusaddons.com/docs/carousel-remote-elementor-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/gSsIVufNAr4",tag:"pro",checked:!1,keyword:["Carousel","Remote","Slider","Slideshow","Image Slider","Image Carousel","Elementor Carousel","Elementor Slider","Elementor Slideshow","Elementor Image Slider","Elementor Image Carousel","Plus Addons Carousel","Plus Addons Slider","Plus Addons Slideshow","Plus Addons Image Slider","Plus Addons Image Carousel"]},{name:"tp_circle_menu",label:(0,Pn.__)("Circle Menu","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/circle-menu/",docUrl:"https://theplusaddons.com/docs/circle-menu/",videoUrl:"https://www.youtube.com/embed/eYdFGdThs6A",tag:"pro",checked:!1,keyword:["Circle Menu","Circular Menu","Round Menu","Circular Navigation","Round Navigation","Circular Button Menu","Round Button Menu","Circular Icon Menu","Round Icon Menu","Circle Menu Widget","Circular Menu Widget","Round Menu Widget","Circle Menu","Circular Menu","Round Menu"]},{name:"tp_cascading_image",label:(0,Pn.__)("Cascading Image","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/image-cascading/",docUrl:"https://theplusaddons.com/docs/cascading-image-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/lnPIIOvAWhY",tag:"pro",checked:!1,keyword:["Creative Images","Image Gallery","Image Slider","Image Carousel","Image Showcase","Image Grid","Image Masonry","Image Wall","Image Portfolio"]},{name:"tp_draw_svg",label:(0,Pn.__)("Draw SVG","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/draw-animated-svg-icon/",docUrl:"https://theplusaddons.com/docs/draw-svg/",videoUrl:"https://www.youtube.com/embed/mUSu64Y0YoI",tag:"pro",checked:!1,keyword:["Draw SVG","SVG drawing","SVG animator","SVG widget","SVG","SVG animation","SVG graphics","SVG design"]},{name:"tp_dynamic_device",label:(0,Pn.__)("Dynamic Device","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/dynamic-device-mockups/",docUrl:"https://theplusaddons.com/docs/dynamic-device-elementor-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/SxLbJhA40WM",tag:"pro",checked:!1,keyword:["Dynamic Devices","Devices","Device","Responsive Devices","Device Preview","Device Switcher","Device Mockup","Device Showcase","Device Slider","Device Carousel","Device Display","Device Viewer","Device Frames"]},{name:"tp_flip_box",label:(0,Pn.__)("Flip Box","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/flipbox/",docUrl:"https://theplusaddons.com/docs/add-a-flip-box-in-elementor/",videoUrl:"https://www.youtube.com/embed/rbasfNo7K_E",tag:"freemium",checked:!0,keyword:["Flipbox","Flip Box","Flip-card","Card flip","Box flip","Elementor flipbox","Elementor flip box","Elementor flip-card","Elementor card flip","Elementor box flip"]},{name:"tp_hotspot",label:(0,Pn.__)("Hotspot","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/hotspots/",docUrl:"https://theplusaddons.com/docs/add-an-elementor-hotspot-on-an-image/",videoUrl:"https://www.youtube.com/embed/Cmp7vk_RKKE",tag:"pro",checked:!1,keyword:["Hotspot","Pin Point","Marker","Location","Pointer","Indicator","Map","Navigation","Interactive","Clickable","Tooltip","Information","Icon"]},{name:"tp_hovercard",label:(0,Pn.__)("Hover Card","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/hover-card/",docUrl:"https://theplusaddons.com/docs/hover-card-elementor-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/BksYXVaiGk8",tag:"free",checked:!1,keyword:["Hover card","Card hover","Card on hover","Elementor hover card","Elementor card hover","Elementor card on hover"]},{name:"tp_wp_bodymovin",label:(0,Pn.__)("LottieFiles Animation","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/lottiefiles-animation/",docUrl:"https://theplusaddons.com/docs/",videoUrl:"https://www.youtube.com/embed/_lnXp8DnNxs",tag:"pro",checked:!1,keyword:["Lottiefiles","Lottie animation","Lottie widget","Elementor Lottie","Lottie Elementor","Lottie animation Elementor","Lottie animation widget","Lottie animation plugin","Lottie animation addon","Lottie animation for Elementor","On Scroll","Scroll Animation","Animated Scroll","Animation Widget","JSON Animation"]},{name:"tp_smooth_scroll",label:(0,Pn.__)("Smooth Scroll","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/smooth-scroll/",docUrl:"https://theplusaddons.com/docs/",videoUrl:"https://www.youtube.com/embed/H_RjZfhf9os",tag:"free",checked:!1,keyword:["Smooth Scroll","Scroll Widget","Elementor Scroll","Scroll Animation","Smooth Scrolling","Scroll Effect","Elementor Smooth Scroll","Scroll Widget for Elementor","Scroll Animation for Elementor","Smooth Scrolling for Elementor","Elementor Scroll Effect"]},{name:"tp_morphing_layouts",label:(0,Pn.__)("Morphing Layouts","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/morphing-sections/",docUrl:"https://theplusaddons.com/docs/",videoUrl:"https://www.youtube.com/embed/VDBINvedP2k",tag:"pro",checked:!1,keyword:["morphing","morphing sections","blob section","blob builder","SVG Sections"]},{name:"tp_mouse_cursor",label:(0,Pn.__)("Mouse Cursor","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/mouse-cursor/",docUrl:"https://theplusaddons.com/docs/mouse-cursor/",videoUrl:"https://youtu.be/ggEhdsdjxxw",tag:"pro",checked:!1,keyword:["Mouse Cursor","Cursor","Elementor Cursor","Elementor Mouse Cursor","Custom Cursor","Elementor Custom Cursor","Cursor Widget","Mouse Cursor Widget","Elementor Cursor Widget","Elementor Mouse Cursor Widget","The Plus Addons Cursor","The Plus Addons Mouse Cursor","The Plus Addons Elementor Cursor","Elementor Addon Cursor","Elementor Addon Mouse Cursor","Elementor Addon Custom Cursor"]},{name:"tp_off_canvas",label:(0,Pn.__)("Popup Builder / Off Canvas","tpebl"),demoUrl:"https://theplusaddons.com/elementor-builder/popup-builder/",docUrl:"https://theplusaddons.com/docs/popup-builder/",videoUrl:"https://youtu.be/74bj6WcEhiY",tag:"pro",checked:!1,keyword:["Offcanvas","Off-canvas","Slide out","Slide-in","Side menu","Overlay menu","Hidden menu","Drawer menu","Hamburger menu","Mobile menu","Popup","Modal","Pop-up","Overlay","Lightbox","Popover","Dialog","Message box","Notification","Alert"]},{name:"tp_process_steps",label:(0,Pn.__)("Process Steps","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/process-steps/",docUrl:"https://theplusaddons.com/docs/add-process-steps-in-elementor/",videoUrl:"https://www.youtube.com/embed/3ude_wxrqVo",tag:"freemium",checked:!1,keyword:["Process","Steps","Procedure","Method","Workflow","Sequence","Order","Stages","Phases","Actions","Tasks","Activities","Operation","Protocol","Technique","Approach","System","Plan","Strategy","Path","Route","Formula","Algorithm","Blueprint","Roadmap"]},{name:"tp_scroll_navigation",label:(0,Pn.__)("Scroll Navigation","tpebl"),demoUrl:"https://theplusaddons.com/elementor-builder/header-builder/one-page-scroll-navigation/",docUrl:"https://theplusaddons.com/docs/",videoUrl:"https://www.youtube.com/embed/vAg6GNktZTQ",tag:"freemium",checked:!0,keyword:["Scroll Navigation","Scroll Menu","Sticky Navigation","Sticky Menu","Fixed Navigation","Fixed Menu","Anchor Menu","Anchor Navigation","Smooth Scroll","One Page Navigation"]},{name:"tp_switcher",label:(0,Pn.__)("Switcher","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/switcher/",docUrl:"https://theplusaddons.com/docs/switcher/",videoUrl:"https://www.youtube.com/embed/nYhVnMnD_UA",tag:"freemium",checked:!1,keyword:["Switcher","Elementor switcher","switcher","switcher addon","switcher plugin","switcher elementor addon","switcher","switcher plus addons","switcher plus addons for elementor","switcher the plus addons for elementor"]},{name:"tp_timeline",label:(0,Pn.__)("Timeline","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/timeline/",docUrl:"https://theplusaddons.com/docs/add-an-elementor-timeline/",videoUrl:"https://www.youtube.com/embed/9AVvXE-e-IY",tag:"pro",checked:!1,keyword:["Time","Line","Timeline","Chronology","Events","History","Progress","Schedule","Chronological","Sequential"]},{name:"tp_unfold",label:(0,Pn.__)("Unfold","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/unfold/",docUrl:"https://theplusaddons.com/docs/unfold/",videoUrl:"https://www.youtube.com/embed/EXPgcTuanPA",tag:"pro",checked:!1,keyword:["Unfold","Read More","Expand","Show More","Show Less","Toggle","Read More Button","Elementor Read More","Elementor Unfold"]}]},{name:"listing_widgets",label:"Listing",widgets:[{name:"tp_blog_listout",label:(0,Pn.__)("Blog Listing","tpebl"),demoUrl:"https://theplusaddons.com/elementor-listing/blog-post/",docUrl:"https://theplusaddons.com/docs/blog-listing-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/JeCxbLLEqco",tag:"freemium",checked:!0,keyword:["blog listing","post","listing"]},{name:"tp_clients_listout",label:(0,Pn.__)("Clients Listing","tpebl"),demoUrl:"https://theplusaddons.com/elementor-listing/client-logos/",docUrl:"https://theplusaddons.com/docs/clients-listing-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/NnqDnjmdREI",tag:"freemium",checked:!0,keyword:["clients listing"]},{name:"tp_dynamic_listing",label:(0,Pn.__)("Dynamic Listing","tpebl"),demoUrl:"https://theplusaddons.com/elementor-listing/dynamic-listing/",docUrl:"https://theplusaddons.com/docs/dynamic-listing-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/72eMzrHj6P4",tag:"pro",checked:!1,status:"popular",pro_status:"popular",keyword:["dynamic listing","post","custom post","listing"]},{name:"tp_dynamic_smart_showcase",label:(0,Pn.__)("Dynamic Smart Showcase","tpebl"),demoUrl:"https://theplusaddons.com/pluslisting/#plus-magazine-post-styles/",docUrl:"https://theplusaddons.com/docs/dynamic-smart-showcase-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/lGgVQpbmuWg",tag:"pro",checked:!1,keyword:["Magazine Slider","Elementor Magazine Slider","Slider Widget","Magazine Carousel","Elementor Carousel","Slider Elementor Addon","Magazine Slider Elementor Addon","Elementor Slider Plugin","Magazine Slider Plugin","Elementor Magazine Carousel","Magazine Slider Widget","Magazine","Filter","Elementor Addon","Search bar","Widget","Dynamic Ticker","Ticker widget","News ticker","Scrolling news","Breaking news","Headline ticker","News feed","Live updates","Latest news","News marquee","News carousel","News slider","News ticker plugin","Elementor news ticker","Elementor ticker widget","Elementor scrolling news","Elementor breaking news","Elementor headline ticker","Elementor news feed","Elementor live updates","Elementor latest news","Elementor news marquee","Elementor news carousel","Elementor news slider"]},{name:"tp_gallery_listout",label:(0,Pn.__)("Gallery Listing","tpebl"),demoUrl:"https://theplusaddons.com/elementor-listing/image-gallery/",docUrl:"https://theplusaddons.com/docs/gallery-listing-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/tw7aIjUKbIk",tag:"freemium",checked:!0,keyword:["ACF","gallery","field","gallery listing"]},{name:"tp_team_member_listout",label:(0,Pn.__)("Team Member Listing","tpebl"),demoUrl:"https://theplusaddons.com/elementor-listing/team-members/",docUrl:"https://theplusaddons.com/docs/team-member-listing-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/cf2Ia1vyKZQ",tag:"freemium",checked:!0,keyword:["team member","listing"]},{name:"tp_testimonial_listout",label:"Testimonial",label:(0,Pn.__)("Testimonial","tpebl"),demoUrl:"https://theplusaddons.com/elementor-listing/testimonials/",docUrl:"https://theplusaddons.com/docs/testimonial-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/a41vZMh1_oA",tag:"freemium",checked:!0,keyword:["testimonial","listing"]},{name:"tp_search_bar",label:(0,Pn.__)("Search Bar","tpebl"),demoUrl:"https://theplusaddons.com/elementor-builder/ajax-search-bar/",docUrl:"https://theplusaddons.com/docs/search-bar/",videoUrl:"https://www.youtube.com/embed/6A_HZSfZ5IA",tag:"pro",checked:!1,keyword:["Post search bar","search bar","post search","search widget","post widget","elementor search bar","elementor search widget","search bar","search widget","search","post search widget","post search","search addon","search elementor addon"]},{name:"tp_search_filter",label:(0,Pn.__)("Search Filters","tpebl"),demoUrl:"https://theplusaddons.com/elementor-builder/woocommerce-builder/ajax-filters/",docUrl:"https://theplusaddons.com/docs/wp-search-filters-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/pO_uo2EFCP0",tag:"pro",checked:!1,pro_status:"popular",setting:[{show:"yes",type:"features",option:[{name:"Taxonomy",url:"#"},{name:"ACF Connection",url:"#"},{name:"PODs Connection",url:"#"},{name:"Toolset Connection",url:"#"},{name:"Metabox Connection",url:"#"},{name:"Alphabet Filter",url:"https://theplusaddons.com/plus-search-filters/advanced-wp-filters/"},{name:"Check Box",url:"https://theplusaddons.com/plus-search-filters/advanced-wp-filters/"},{name:"Date Picker",url:"https://theplusaddons.com/plus-search-filters/advanced-wp-filters/"},{name:"Drop Down",url:"https://theplusaddons.com/plus-search-filters/advanced-wp-filters/"},{name:"Radio Button",url:"https://theplusaddons.com/plus-search-filters/advanced-wp-filters/"},{name:"Range Slider",url:"https://theplusaddons.com/plus-search-filters/advanced-wp-filters/"},{name:"Search Source",url:"https://theplusaddons.com/plus-search-filters/advanced-wp-filters/"},{name:"Tabbing Filter",url:"https://theplusaddons.com/plus-search-filters/advanced-wp-filters/"},{name:"Auto Complete",url:"https://theplusaddons.com/plus-search-filters/advanced-wp-filters/"},{name:"Button",url:"#"},{name:"Color",url:"#"},{name:"Image",url:"#"},{name:"Rating",url:"#"},{name:"Filter Tag",url:"#"},{name:"Filter Reset",url:"https://theplusaddons.com/plus-search-filters/advanced-wp-filters/"},{name:"Search Results",url:"https://theplusaddons.com/plus-search-filters/"},{name:"Filter Column",url:"#"}]}],keyword:["WooCommerce","Filter","Product Filter","Shop Filter","Ecommerce Filter","Elementor WooCommerce Filter","Elementor Product Filter","Elementor Shop Filter","Elementor Ecommerce Filter","Search bar","search widget","search element","search tool","search functionality","search feature","search box","search option","search module","search plugin","search extension","search component","search elementor addon","search plus addons for elementor","search filters","filter widget","filter element","filter tool","filter functionality","filter feature","filter box","filter option","filter module","filter plugin","filter extension","filter component","filter elementor addon","filter plus addons for elementor"]}]},{name:"social_widgets",label:"Social",widgets:[{name:"tp_social_embed",label:(0,Pn.__)("Social Embed","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/social-embed/",docUrl:"https://theplusaddons.com/docs/",videoUrl:"https://youtu.be/MbopAQ85pdg",tag:"free",checked:!1,keyword:["Social Embed","Social Media Embed","Embed Social Media","Social Media Widget","Social Media","Elementor Social Embed","Social Embed"]},{name:"tp_social_feed",label:(0,Pn.__)("Social Feed","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/combined-filterable-social-feed/",docUrl:"https://theplusaddons.com/docs/social-feed-elementor-widget/",videoUrl:"https://youtu.be/oiGi2NaEj7o",tag:"pro",checked:!1,setting:[{show:"yes",type:"features",option:[{name:"Facebook",url:"https://theplusaddons.com/widgets/social-feed/facebook-feed/"},{name:"Instagram",url:"https://theplusaddons.com/widgets/social-feed/instagram-feed/"},{name:"Twitter",url:"https://theplusaddons.com/widgets/social-feed/twitter-feed/"},{name:"YouTube",url:"https://theplusaddons.com/widgets/social-feed/youtube-feed/"},{name:"Vimeo",url:"https://theplusaddons.com/widgets/social-feed/vimeo-feed/"},{name:"WP RSS Feed",url:"#"}]}],keyword:["Social Feed","Social Media Feed","Instagram Feed","Facebook Feed","Twitter Feed","Pinterest Feed","LinkedIn Feed","Social Wall","Social Stream","Social Grid","Social Carousel","Social Tiles","Social Widget","Facebook","feed","social media","social feed","Facebook widget","social media widget","Instagram","Feed","Instagram Feed","Social Media Feed","Social Feed","Elementor Instagram Feed","Instagram Widget","Twitter","feed","social media","social feed","social media feed","twitter feed widget","twitter feed elementor","elementor twitter feed","twitter widget","elementor social feed","Vimeo","video","feed","gallery","player","video feed","Vimeo gallery","Vimeo player","Multi Social Feed","Social Feed","Social Media Feed","Social Wall","Social Stream","Social Gallery","Instagram Feed","Facebook Feed","Twitter Feed","Pinterest Feed","YouTube Feed","LinkedIn Feed","Social Media Widget","YouTube","Feed","YouTube Widget","YouTube","YouTube Feed Widget","YouTube Feed"]},{name:"tp_social_icon",label:(0,Pn.__)("Social Icon","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/social-icons/",docUrl:"https://theplusaddons.com/docs/add-social-media-icons-in-elementor/",videoUrl:"https://www.youtube.com/embed/exz4Ahc-KeA",tag:"freemium",checked:!0,keyword:["Social","Icon","Social Icon","Social Media Icon","Social Media","Social Icon Widget","Elementor Social Icon"]},{name:"tp_social_reviews",label:(0,Pn.__)("Social Reviews","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/social-reviews-badges/",docUrl:"https://theplusaddons.com/docs/social-review/",videoUrl:"https://youtu.be/9HiV2h_z_oM",tag:"pro",checked:!1,setting:[{show:"yes",type:"features",option:[{name:"Facebook",url:"https://theplusaddons.com/widgets/social-reviews/facebook-reviews/"},{name:"Google",url:"https://theplusaddons.com/widgets/social-reviews/google-reviews/"},{name:"Manual",url:"#"}]}],keyword:["Social Reviews","Elementor Social Reviews","Elementor Reviews Widget","Elementor Social Proof Widget","Social Proof Reviews","Elementor Social Proof","Reviews Widget for Elementor","for Social Reviews","Social Reviews Plugin for Elementor","Facebook","Badge","Social media","Profile","Page","Like","Follow","Share","Google Badge","Google logo","Google icon","Google branding","Google symbol","Google mark","Reviews Wall","Testimonials Wall","Feedback Wall","Customer Reviews Wall","User Reviews Wall","Review Showcase","Testimonials Showcase","Feedback Showcase","Customer Reviews Showcase","User Reviews Showcase","Reviews Grid","Testimonials Grid","Feedback Grid","Customer Reviews Grid","User Reviews Grid","Reviews Carousel","Testimonials Carousel","Feedback Carousel","Customer Reviews Carousel","User Reviews Carousel"]},{name:"tp_social_sharing",label:(0,Pn.__)("Social Sharing","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/social-sharing-buttons/",docUrl:"https://theplusaddons.com/docs/add-social-share-in-elementor/",videoUrl:"https://youtu.be/PIfGW6Kxs2M",tag:"pro",checked:!1,keyword:["Social Sharing","Share Buttons","Social Media Sharing","Social Icons","Social Share","Social Share Buttons","Share Widget","Share Icons","Share Buttons Widget"]}]},{name:"forms_widgets",label:"Forms",widgets:[{name:"tp_contact_form_7",label:(0,Pn.__)("Contact Form 7","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/contact-form-7-styler/",docUrl:"https://theplusaddons.com/docs/customize-contact-form-7-in-elementor-no-css/",videoUrl:"https://www.youtube.com/embed/SxpvbUZoby8",tag:"free",checked:!0,keyword:["Contact Form 7","form","contact form","form builder","form plugin","form creator","form generator"]},{name:"tp_everest_form",label:(0,Pn.__)("Everest Form","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/everest-forms-styler/",docUrl:"https://theplusaddons.com/docs/customize-everest-forms-in-elementor/",videoUrl:"https://www.youtube.com/embed/NIWTuStFVt8",tag:"free",checked:!1,keyword:["Everest Forms","contact form","form builder","form plugin","form creator","form designer","form element","form widget","form generator","form maker","form editor","form module","form addon","form extension"]},{name:"tp_plus_form",label:(0,Pn.__)("Form","tpebl"),demoUrl:"https://theplusaddons.com/elementor-builder/form-builder/",docUrl:"https://theplusaddons.com/docs/",videoUrl:"https://www.youtube.com/watch?v=7DVDIACjSSQ",tag:"freemium",checked:!0,status:"new",pro_status:"Beta",setting:[{show:"yes",type:"setting",option:[]}],keyword:["Plus Forms","contact form","form builder","form plugin","form creator","form designer","form element","form widget","form generator","form maker","form editor","form module","form addon","form extension","form"]},{name:"tp_gravity_form",label:(0,Pn.__)("Gravity Form","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/gravity-forms-styler/",docUrl:"https://theplusaddons.com/docs/customize-gravity-forms-in-elementor/",videoUrl:"https://www.youtube.com/embed/GwKuP3zfiDw",tag:"free",checked:!1,keyword:["Gravity Forms","Form Builder","Contact Form","WordPress Forms","Elementor Forms"]},{name:"tp_mailchimp",label:(0,Pn.__)("Mailchimp","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/mailchimp-form/",docUrl:"https://theplusaddons.com/docs/",videoUrl:"https://www.youtube.com/embed/I7BLgbK6nBA",tag:"pro",checked:!1,keyword:["Mailchimp","Subscription","Email Subscription","Email Opt-in","Email Signup","Newsletter Signup","Newsletter Subscription"]},{name:"tp_meeting_scheduler",label:(0,Pn.__)("Meeting Scheduler","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/meeting-schedulers/",docUrl:"https://theplusaddons.com/docs/meeting-scheduler-widget/",videoUrl:"https://www.youtube.com/embed/9-8Ftlb79tI",tag:"free",checked:!1,keyword:["Meeting Scheduler","Schedule Meeting","Meeting Planner","Meeting Organizer","Meeting Arranger","Meeting Time Manager","Meeting Coordinator","Meeting Scheduling Tool","Meeting Booking","Meeting Calendar"]},{name:"tp_ninja_form",label:(0,Pn.__)("Ninja Form","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/ninja-forms-styler/",docUrl:"https://theplusaddons.com/docs/customize-ninja-forms-in-elementor/",videoUrl:"https://www.youtube.com/embed/fVxGZW8SZgE",tag:"free",checked:!1,keyword:["Ninja Forms","form builder","form plugin","contact forms","form creator","form designer","form generator","form maker","form widget","form element","form addon","form extension"]},{name:"tp_wp_forms",label:(0,Pn.__)("WP Forms","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/wpforms-styler/",docUrl:"https://theplusaddons.com/docs/customize-wpforms-in-elementor/",videoUrl:"https://www.youtube.com/embed/fp-R1TNr4RA",tag:"free",checked:!1,keyword:["WP Forms","WordPress Forms","Form Builder","Elementor Forms","Contact Forms","Custom Forms","Drag and Drop Forms","Form Creator","Form Designer","Form Generator","Form Maker","Form Plugin","Form Widget"]},{name:"tp_caldera_forms",label:(0,Pn.__)("Caldera Forms","tpebl"),demoUrl:"https://theplusaddons.com/widgets/caldera-forms/",docUrl:"https://theplusaddons.com/docs/customize-caldera-forms-in-elementor/",videoUrl:"https://www.youtube.com/embed/8J8Qg2aMQqs",tag:"DEPRECATED",checked:!1,keyword:["Caldera Forms","Form builder","Form creator","Contact form","WordPress form","Form plugin","Form widget","Form generator","Drag and drop form","Form element","Elementor form","Plus Addons form","Caldera form widget"]}]},{name:"wooCommerce",label:(0,Pn.__)("WooCommerce","tpebl"),widgets:[{name:"tp_product_listout",label:(0,Pn.__)("Product Listing","tpebl"),demoUrl:"https://theplusaddons.com/elementor-listing/woocommerce-product/",docUrl:"https://theplusaddons.com/docs/product-listing-widget-settings-overview/",videoUrl:"https://www.youtube.com/embed/UqJ9VNTeqA8",tag:"pro",checked:!1,status:"popular",pro_status:"popular",keyword:["product listing","listing","woocommerce"]},{name:"tp_woo_cart",label:(0,Pn.__)("Woo Cart","tpebl"),demoUrl:"https://theplusaddons.com/elementor-builder/woocommerce-builder/cart-page/",docUrl:"https://theplusaddons.com/docs/edit-woocommerce-cart-page-in-elementor/",videoUrl:"https://youtu.be/zLBnX4lMhWU",tag:"pro",checked:!1,keyword:["WooCommerce","Cart","Ecommerce","Shopping Cart","Online Store","Add to Cart","Buy Now","Product Cart","Shop Cart","Store Cart"]},{name:"tp_woo_checkout",label:(0,Pn.__)("Woo Checkout","tpebl"),demoUrl:"https://theplusaddons.com/elementor-builder/woocommerce-builder/checkout-page/",docUrl:"https://theplusaddons.com/docs/edit-woocommerce-checkout-page-in-elementor/",videoUrl:"https://youtu.be/ChCaCmuoPKE",tag:"pro",checked:!1,keyword:["WooCommerce","checkout","online store","e-commerce","shopping cart","payment gateway","purchase","buy","transaction","order","customer","billing","shipping","checkout page","checkout form","checkout process"]},{name:"tp_woo_compare",label:(0,Pn.__)("Woo Compare","tpebl"),demoUrl:"",docUrl:"https://theplusaddons.com/elementor-builder/woocommerce-builder/product-compare/",videoUrl:"",tag:"pro",checked:!1,status:"new",pro_status:"new",keyword:["WooCommerce","compare","woocompare","woo compare"]},{name:"tp_woo_wishlist",label:(0,Pn.__)("Woo Wishlist","tpebl"),demoUrl:"https://theplusaddons.com/elementor-builder/woocommerce-builder/wishlist/",docUrl:"https://theplusaddons.com/docs/add-woocommerce-product-wishlist-in-elementor/",videoUrl:"",tag:"pro",checked:!1,status:"new",pro_status:"new",keyword:["woocommerce","wishlist","woowishlist","woo wishlist"]},{name:"tp_wp_quickview",label:(0,Pn.__)("Quick View","tpebl"),demoUrl:"https://theplusaddons.com/elementor-builder/woocommerce-builder/quick-view/",docUrl:"https://theplusaddons.com/docs/add-product-post-quick-view-in-elementor/",videoUrl:"",tag:"pro",checked:!1,status:"new",pro_status:"new",keyword:["woocommerce","view","quickview","quick view"]},{name:"tp_woo_multi_step",label:(0,Pn.__)("Woo Multi Step","tpebl"),demoUrl:"https://theplusaddons.com/elementor-builder/woocommerce-builder/",docUrl:"https://theplusaddons.com/docs/create-woocommerce-multi-step-checkout-in-elementor/",videoUrl:"",tag:"pro",checked:!1,pro_status:"update",status:"update",keyword:["WooCommerce","checkout","woo checkout","multi step","multistep"]},{name:"tp_woo_myaccount",label:(0,Pn.__)("Woo My Account","tpebl"),demoUrl:"https://theplusaddons.com/elementor-builder/woocommerce-builder/my-account-page/",docUrl:"https://theplusaddons.com/docs/edit-woocommerce-my-account-page-in-elementor/",videoUrl:"",tag:"pro",checked:!1,keyword:["My Account","Account","User Account","User Profile","Profile","Login","Sign In","Register","Sign Up","Dashboard","User Dashboard","User Panel","Account Panel","Account Settings","Account Information","Account Details","User Details","User Profile Settings","My Profile","Edit Profile","Update Profile","Change Password","Forgot Password","Reset Password","User Login","User Registration","User Sign In","User Sign Up","User Dashboard","User Account Panel","User Account Settings","User Account Information","User Account Details"]},{name:"tp_woo_order_track",label:(0,Pn.__)("Woo Order Track","tpebl"),demoUrl:"https://theplusaddons.com/elementor-builder/woocommerce-builder/order-track-page/",docUrl:"https://theplusaddons.com/docs/create-a-woocommerce-order-tracking-page-in-elementor/",videoUrl:"",tag:"pro",checked:!1,keyword:["Order Track","Order Tracking","Track Order","Tracking Order","Order Status","Order Progress","Order Updates","Order Locator","Order Finder"]},{name:"tp_woo_single_basic",label:(0,Pn.__)("Woo Single Basic","tpebl"),demoUrl:"https://theplusaddons.com/elementor-builder/woocommerce-builder/product-single-page/",docUrl:"https://theplusaddons.com/docs/edit-woocommerce-product-page-in-elementor/",videoUrl:"https://youtu.be/y2KrybXgwV8",tag:"pro",checked:!1,setting:[{show:"yes",type:"features",option:[{name:"Title",url:"https://theplusaddons.com/plus-builder/woocommerce-builder/product-single-page/"},{name:"Short Description",url:"https://theplusaddons.com/plus-builder/woocommerce-builder/product-single-page/"},{name:"Sale Badge",url:"https://theplusaddons.com/plus-builder/woocommerce-builder/product-single-page/"},{name:"Rating",url:"https://theplusaddons.com/plus-builder/woocommerce-builder/product-single-page/"},{name:"Next Previous Product",url:"https://theplusaddons.com/plus-builder/woocommerce-builder/product-single-page/"}]}],keyword:["WooCommerce","Single","Basic","single basic"]},{name:"tp_woo_single_image",label:(0,Pn.__)("Woo Product Images","tpebl"),demoUrl:"https://theplusaddons.com/woo-builder/",docUrl:"https://theplusaddons.com/docs/edit-woocommerce-product-page-in-elementor/",videoUrl:"",tag:"pro",checked:!1,keyword:["WooCommerce","Single Image","Product Image","Product Picture","Image Widget","Elementor Image"]},{name:"tp_woo_single_pricing",label:(0,Pn.__)("Woo Single Pricing","tpebl"),demoUrl:"https://theplusaddons.com/woo-builder/",docUrl:"https://theplusaddons.com/docs/edit-woocommerce-product-page-in-elementor/",videoUrl:"",tag:"pro",checked:!1,setting:[{show:"yes",type:"features",option:[{name:"Add To Cart",url:"https://theplusaddons.com/plus-builder/woocommerce-builder/product-single-page/"},{name:"Price",url:"https://theplusaddons.com/plus-builder/woocommerce-builder/product-single-page/"},{name:"Stock",url:"https://theplusaddons.com/plus-builder/woocommerce-builder/product-single-page/"},{name:"Sold",url:"https://theplusaddons.com/plus-builder/woocommerce-builder/product-single-page/"},{name:"Attributes",url:"https://theplusaddons.com/plus-builder/woocommerce-builder/product-single-page/"}]}],keyword:["WooCommerce","Single Pricing","Pricing","Product Pricing","WooCommerce Pricing","Pricing Widget","Product Widget","Elementor Pricing"]},{name:"tp_woo_single_tabs",label:(0,Pn.__)("Woo Single Tabs","tpebl"),demoUrl:"https://theplusaddons.com/woo-builder/",docUrl:"https://theplusaddons.com/docs/edit-woocommerce-product-page-in-elementor/",videoUrl:"",tag:"pro",checked:!1,keyword:["WooCommerce","Single Tabs","Product Tabs","Tabbed Content","WooCommerce Tabs"]},{name:"tp_woo_thank_you",label:(0,Pn.__)("Woo Thank You","tpebl"),demoUrl:"https://theplusaddons.com/elementor-builder/woocommerce-builder/thank-you-page/",docUrl:"https://theplusaddons.com/docs/edit-woocommerce-thank-you-page-in-elementor/",videoUrl:"",tag:"pro",checked:!1,keyword:["WooCommerce","Thank You","Elementor addon","Confirmation Page"]}]}],widgetListExtra:[{name:"plus_extras",label:(0,Pn.__)("Plus Extras","tpebl"),widgets:[{name:"plus_adv_shadow",label:(0,Pn.__)("Advanced Shadows","tpebl"),tag:"free"},{name:"plus_cross_cp",label:(0,Pn.__)("Cross Domain Copy Paste","tpebl"),tag:"free"},{name:"custom_width_column",label:(0,Pn.__)("Custom/Media Width Column","tpebl"),tag:"pro"},{name:"column_mouse_cursor",label:(0,Pn.__)("Column Mouse Cursor","tpebl"),tag:"pro"},{name:"plus_display_rules",label:(0,Pn.__)("Display Condition","tpebl"),tag:"pro"},{name:"plus_equal_height",label:(0,Pn.__)("Equal Height","tpebl"),tag:"free"},{name:"plus_event_tracker",label:(0,Pn.__)("Event Tracker","tpebl"),tag:"pro"},{name:"plus_glass_morphism",label:(0,Pn.__)("Glass Morphism","tpebl"),tag:"free"},{name:"order_sort_column",label:(0,Pn.__)("Order & Width Column","tpebl"),tag:"pro"},{name:"section_scroll_animation",label:(0,Pn.__)("Section Scroll Animation","tpebl"),tag:"pro"},{name:"plus_custom_css",label:(0,Pn.__)("Custom CSS","tpebl"),tag:"pro"},{name:"column_sticky",label:(0,Pn.__)("Sticky Column","tpebl"),tag:"pro"},{name:"plus_section_column_link",label:(0,Pn.__)("Wrapper Link","tpebl"),tag:"free"},{name:"plus_magic_scroll",label:(0,Pn.__)("Magic Scroll","tpebl"),tag:"pro"},{name:"plus_tooltip",label:(0,Pn.__)("Tooltip","tpebl"),tag:"pro"},{name:"plus_mouse_move_parallax",label:(0,Pn.__)("Mouse Move Parallax","tpebl"),tag:"pro"},{name:"plus_tilt_parallax",label:(0,Pn.__)("Tilt 3D Parallax","tpebl"),tag:"pro"},{name:"plus_overlay_effect",label:(0,Pn.__)("Overlay Special Effect","tpebl"),tag:"pro"},{name:"plus_continuous_animation",label:(0,Pn.__)("Continuous Animation","tpebl"),tag:"pro"}]}],switcher_array:[{switcher_name:"Essential Widgets",id:"essential_widgets",checked:!1},{switcher_name:"Advanced Widgets",id:"advanced_widgets",checked:!1},{switcher_name:"Creative Widgets",id:"creative_widgets",checked:!1},{switcher_name:"Listing Widgets",id:"listing_widgets",checked:!1},{switcher_name:"Social Widgets",id:"social_widgets",checked:!1},{switcher_name:"Forms Widgets",id:"forms_widgets",checked:!1},{switcher_name:"WooCommerce",id:"wooCommerce",checked:!1}]};var Dn=o(418),Wn=t,Bn=Symbol.for("react-redux-context"),Un="undefined"!=typeof globalThis?globalThis:{};function Hn(){if(!Wn.createContext)return{};const e=Un[Bn]??(Un[Bn]=new Map);let t=e.get(Wn.createContext);return t||(t=Wn.createContext(null),e.set(Wn.createContext,t)),t}var zn=Hn(),Vn=Symbol.for("react.element"),Gn=Symbol.for("react.portal"),Kn=Symbol.for("react.fragment"),qn=Symbol.for("react.strict_mode"),Zn=Symbol.for("react.profiler"),Yn=Symbol.for("react.provider"),Jn=Symbol.for("react.context"),Qn=Symbol.for("react.server_context"),Xn=Symbol.for("react.forward_ref"),ei=Symbol.for("react.suspense"),ti=Symbol.for("react.suspense_list"),ni=Symbol.for("react.memo"),ii=Symbol.for("react.lazy"),oi=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),Xn),si=ni;function ri(e,t,n,i,{areStatesEqual:o,areOwnPropsEqual:s,areStatePropsEqual:r}){let a,l,c,d,h,p=!1;return function(u,g){return p?function(p,u){const g=!s(u,l),m=!o(p,a,u,l);return a=p,l=u,g&&m?(c=e(a,l),t.dependsOnOwnProps&&(d=t(i,l)),h=n(c,d,l),h):g?(e.dependsOnOwnProps&&(c=e(a,l)),t.dependsOnOwnProps&&(d=t(i,l)),h=n(c,d,l),h):m?function(){const t=e(a,l),i=!r(t,c);return c=t,i&&(h=n(c,d,l)),h}():h}(u,g):(a=u,l=g,c=e(a,l),d=t(i,l),h=n(c,d,l),p=!0,h)}}function ai(e){return function(t){const n=e(t);function i(){return n}return i.dependsOnOwnProps=!1,i}}function li(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function ci(e,t){return function(t,{displayName:n}){const i=function(e,t){return i.dependsOnOwnProps?i.mapToProps(e,t):i.mapToProps(e,void 0)};return i.dependsOnOwnProps=!0,i.mapToProps=function(t,n){i.mapToProps=e,i.dependsOnOwnProps=li(e);let o=i(t,n);return"function"==typeof o&&(i.mapToProps=o,i.dependsOnOwnProps=li(o),o=i(t,n)),o},i}}function di(e,t){return(n,i)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${i.wrappedComponentName}.`)}}function hi(e,t,n){return{...n,...e,...t}}var pi={notify(){},get:()=>[]};function ui(e,t){let n,i=pi,o=0,s=!1;function r(){c.onStateChange&&c.onStateChange()}function a(){o++,n||(n=t?t.addNestedSub(r):e.subscribe(r),i=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){(()=>{let t=e;for(;t;)t.callback(),t=t.next})()},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let i=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){i&&null!==e&&(i=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function l(){o--,n&&0===o&&(n(),n=void 0,i.clear(),i=pi)}const c={addNestedSub:function(e){a();const t=i.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){i.notify()},handleChangeWrapper:r,isSubscribed:function(){return s},trySubscribe:function(){s||(s=!0,a())},tryUnsubscribe:function(){s&&(s=!1,l())},getListeners:()=>i};return c}var gi=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),mi="undefined"!=typeof navigator&&"ReactNative"===navigator.product,fi=gi||mi?Wn.useLayoutEffect:Wn.useEffect;function _i(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function bi(e,t){if(_i(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(let i=0;i{throw new Error("uSES not initialized!")},Mi=[null,null];function Ri(e,t,n,i,o,s){e.current=i,n.current=!1,o.current&&(o.current=null,s())}function Ti(e,t){return e===t}var Oi=function(e,t,n,{pure:i,areStatesEqual:o=Ti,areOwnPropsEqual:s=bi,areStatePropsEqual:r=bi,areMergedPropsEqual:a=bi,forwardRef:l=!1,context:c=zn}={}){const d=c,h=function(e){return e?"function"==typeof e?ci(e):di(e,"mapStateToProps"):ai((()=>({})))}(e),p=function(e){return e&&"object"==typeof e?ai((t=>function(e,t){const n={};for(const i in e){const o=e[i];"function"==typeof o&&(n[i]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?ci(e):di(e,"mapDispatchToProps"):ai((e=>({dispatch:e})))}(t),u=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:i}){let o,s=!1;return function(t,n,r){const a=e(t,n,r);return s?i(a,o)||(o=a):(s=!0,o=a),o}}}(e):di(e,"mergeProps"):()=>hi}(n),g=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,i={shouldHandleStateChanges:g,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:h,initMapDispatchToProps:p,initMergeProps:u,areStatesEqual:o,areStatePropsEqual:r,areOwnPropsEqual:s,areMergedPropsEqual:a};function c(t){const[n,o,s]=Wn.useMemo((()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),r=Wn.useMemo((()=>d),[n,d]),a=Wn.useContext(r),l=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),c=Boolean(a)&&Boolean(a.store),h=l?t.store:a.store,p=c?a.getServerState:h.getState,u=Wn.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:i,...o}){return ri(t(e,o),n(e,o),i(e,o),e,o)}(h.dispatch,i)),[h]),[m,f]=Wn.useMemo((()=>{if(!g)return Mi;const e=ui(h,l?void 0:a.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[h,l,a]),_=Wn.useMemo((()=>l?a:{...a,subscription:m}),[l,a,m]),b=Wn.useRef(void 0),w=Wn.useRef(s),v=Wn.useRef(void 0),y=Wn.useRef(!1),x=Wn.useRef(!1),C=Wn.useRef(void 0);fi((()=>(x.current=!0,()=>{x.current=!1})),[]);const k=Wn.useMemo((()=>()=>v.current&&s===w.current?v.current:u(h.getState(),s)),[h,s]),S=Wn.useMemo((()=>e=>m?function(e,t,n,i,o,s,r,a,l,c,d){if(!e)return()=>{};let h=!1,p=null;const u=()=>{if(h||!a.current)return;const e=t.getState();let n,u;try{n=i(e,o.current)}catch(e){u=e,p=e}u||(p=null),n===s.current?r.current||c():(s.current=n,l.current=n,r.current=!0,d())};return n.onStateChange=u,n.trySubscribe(),u(),()=>{if(h=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(g,h,m,u,w,b,y,x,v,f,e):()=>{}),[m]);var j,$;let A;j=Ri,$=[w,b,y,s,v,f],fi((()=>j(...$)),undefined);try{A=Li(S,k,p?()=>u(p(),s):k)}catch(e){throw C.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${C.current.stack}\n\n`),e}fi((()=>{C.current=void 0,v.current=void 0,b.current=A}));const N=Wn.useMemo((()=>Wn.createElement(e,{...A,ref:o})),[o,e,A]);return Wn.useMemo((()=>g?Wn.createElement(r.Provider,{value:_},N):N),[r,N,_])}const m=Wn.memo(c);if(m.WrappedComponent=e,m.displayName=c.displayName=n,l){const t=Wn.forwardRef((function(e,t){return Wn.createElement(m,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,Ei(t,e)}return Ei(m,e)}},Ii=function({store:e,context:t,children:n,serverState:i,stabilityCheck:o="once",identityFunctionCheck:s="once"}){const r=Wn.useMemo((()=>{const t=ui(e);return{store:e,subscription:t,getServerState:i?()=>i:void 0,stabilityCheck:o,identityFunctionCheck:s}}),[e,i,o,s]),a=Wn.useMemo((()=>e.getState()),[e]);fi((()=>{const{subscription:t}=r;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),a!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[r,a]);const l=t||zn;return Wn.createElement(l.Provider,{value:r},n)};Dn.useSyncExternalStoreWithSelector,(e=>{Li=e})(t.useSyncExternalStore);const Pi=window.ReactJSXRuntime,Fi=Oi((e=>({tpae_dashboard_data:e.Dashboard_data.db_rx,tpae_widgets_list:e.widgets_data.widgets_rx,plugin_check:e.check_plugin.plugin_status_rx,tpae_white_lable_data:e.White_label.white_lable_rx})),(e=>({})))((e=>{var n=tpae_db_object.tpae_url,i=(n=tpae_db_object.tpae_url,tpae_db_object.nonce),o=(tpae_db_object.ajax_url,tpae_db_object.tpae_pro);e.plugin_check;const s="1"==tpae_db_object?.tpae_pro,r=[{key:"nexter-theme",heading:(0,Pn.__)("Lightest Starter Theme for Page Builders","tpebl"),subheading:(0,Pn.__)("Page Builders","tpebl"),buttonLabel:(0,Pn.__)("Install Theme","tpebl"),buttonLinkLabel:(0,Pn.__)("Theme Customizer","tpebl"),status:"unavailable",learnLink:"https://nexterwp.com/nexter-theme?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings ",imgSrc:n+"assets/images/nexter-theme.png",imgAlt:(0,Pn.__)("Nexter Theme Image","tpebl"),browseLink:"customize.php?theme=nexter",bg_color:"#1717cc",bt_color:"#f12d2d",bt_txt_color:"#ffffff"},{key:"nexter-extension",heading:(0,Pn.__)("50+ WordPress Extensions to Make Site More Secure, Performant & Smart","tpebl"),subheading:(0,Pn.__)("Site More Secure, Performant & Smart","tpebl"),buttonLabel:(0,Pn.__)("Enable Extension","tpebl"),buttonLinkLabel:(0,Pn.__)("Extension Setting","tpebl"),status:"unavailable",learnLink:"https://nexterwp.com/nexter-extension?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings ",imgSrc:n+"assets/images/nexter-extension.png",imgAlt:(0,Pn.__)("Nexter Theme Image","tpebl"),browseLink:"admin.php?page=nexter_welcome",bg_color:"#1717cc",bt_color:"#f12d2d",bt_txt_color:"#ffffff"},{key:"uichemy",heading:(0,Pn.__)("Convert Figma to WordPress in Minutes","tpebl"),subheading:(0,Pn.__)("Site More Secure, Performant & Smart","tpebl"),buttonLabel:(0,Pn.__)("Install UiChemy","tpebl"),buttonLinkLabel:(0,Pn.__)("UiChemy Setting","tpebl"),status:"unavailable",learnLink:"https://uichemy.com?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings ",imgSrc:n+"assets/images/uichemy.png",imgAlt:(0,Pn.__)("UiChemy","tpebl"),browseLink:"?page=uichemy-welcome",bg_color:"linear-gradient(180deg,#000 11%,#421eb2)",bt_color:"#e3ed5d",bt_txt_color:"#000000"},{key:"the-plus-addons-for-block-editor",heading:(0,Pn.__)("90+ Best WordPress Blocks for Gutenberg Editor","tpebl"),subheading:(0,Pn.__)("Site More Secure, Performant & Smart","tpebl"),buttonLabel:(0,Pn.__)("Enable Blocks","tpebl"),buttonLinkLabel:(0,Pn.__)("Open Nexter","tpebl"),status:"unavailable",learnLink:"https://nexterwp.com/nexter-blocks/?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings",imgSrc:n+"assets/images/nexter-new.png",imgAlt:(0,Pn.__)("Nexter Theme Image","tpebl"),browseLink:"admin.php?page=nexter_welcome_page",bg_color:"rgba(23, 23, 204, 1)",bt_color:"rgba(241, 45, 45, 1)",bt_txt_color:"rgba(255, 255, 255, 1)"}],[a,l]=(0,t.useState)(!1),[c,d]=(0,t.useState)(""),[h,p]=(0,t.useState)(""),[u,g]=(0,t.useState)(""),[m,f]=(0,t.useState)(""),[_,b]=(0,t.useState)(""),[w,v]=(0,t.useState)((0,Pn.__)("Subscribe Now","tpebl")),[y,x]=(0,t.useState)({tpaeName:!1,tpaeEmail:!1}),[C,k]=(0,t.useState)(r),S=(0,t.useRef)(""),[j,$]=(0,t.useState)([]),[A,N]=(0,t.useState)(0),[E,L]=(0,t.useState)(0),[M,R]=(0,t.useState)(5),[T,O]=(0,t.useState)(null),[I,P]=(0,t.useState)(0);(0,t.useEffect)((()=>{document.querySelectorAll(".tpae-star path").forEach(((e,t)=>{null!==T&&t<=T||null!==M&&t<=M?e.setAttribute("fill","#F9B744"):e.setAttribute("fill","#C9C7CE")}))}),[M,T]),(0,t.useEffect)((()=>{d(e.tpae_dashboard_data?.user_name||""),g(e.tpae_dashboard_data?.user_name||""),p(e.tpae_dashboard_data?.user_image||""),b(e.tpae_dashboard_data?.user_email||""),f(e.tpae_dashboard_data?.user_email||"")}),[e.tpae_dashboard_data]),(0,t.useEffect)((()=>{let t=0,n=e?.tpae_widgets_list,i=n?.check_elements?.length>0?n?.check_elements:[],o=n?.extras_elements?.length>0?n?.extras_elements:[],r=i.concat(o),a=Object.values(Fn).length>0?Object.values(Fn):[],l=[];a.map((e=>{e.length>0&&e.map((e=>{e?.widgets?.length>0&&e.widgets.map((e=>{t++,r.includes(e.name)&&("pro"!=e.tag||s)&&l.push(e)}))}))}));let c=l.length>0?l.length:0;N(t),L(c)}),[e?.tpae_widgets_list]),(0,t.useEffect)((()=>{let t=[...r];t.map((t=>{if(e.plugin_check.length>0){let n=e.plugin_check.findIndex((e=>e.name==t.key)),i=e.plugin_check[n];t.status=i?.status?i.status:"unavailable"}})),k(t)}),[e.plugin_check]),(0,t.useEffect)((()=>{const e=setInterval((()=>{D()}),3e3);return()=>{clearInterval(e)}}),[I]);var F=[{svg:(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",fill:"none",viewBox:"0 0 30 30",children:(0,Pi.jsx)("path",{fill:"#C9C7CE",fillRule:"evenodd",d:"m17.208 7.611 1.808 2.51 2.5.774c3.096.956 3.837 1.346 3.837 2.02 0 .29-.884 1.51-1.965 2.71l-1.965 2.182.204 3.308c.273 4.441.273 4.442-3.856 3.108l-3.095-1-3.095 1c-4.128 1.334-4.129 1.333-3.855-3.108l.204-3.308-1.965-2.182C4.885 14.425 4 13.194 4 12.888c0-.635 1.472-1.362 4.375-2.164 1.822-.504 1.888-.558 3.791-3.162 1.547-2.114 2.068-2.63 2.586-2.555.421.06 1.285.976 2.456 2.604Zm-5.365 6.56c-.306.495.382 1.062.79.653.343-.342.129-.975-.33-.975-.143 0-.35.145-.46.322Zm4.745 0c-.306.495.382 1.062.79.653.343-.342.129-.975-.33-.975-.143 0-.35.145-.46.322Zm-3.32 3.005c-.367.177-.668.45-.668.605 0 .163.22.182.52.044.285-.132.985-.24 1.556-.24.571 0 1.272.108 1.557.24.297.137.52.12.52-.041 0-.38-1.357-.974-2.165-.95-.36.012-.953.166-1.32.342Z",clipRule:"evenodd"})})},{svg:(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",fill:"none",viewBox:"0 0 30 30",children:(0,Pi.jsx)("path",{fill:"#C9C7CE",fillRule:"evenodd",d:"M17.15 7.619c1.92 2.616 1.924 2.62 4.075 3.292 2.852.892 3.781 1.39 3.781 2.03 0 .292-.877 1.503-1.948 2.693l-1.948 2.163.203 3.304c.27 4.39.27 4.389-3.682 3.093l-2.966-.972-3.094 1c-4.127 1.334-4.127 1.334-3.854-3.098l.203-3.3-1.96-2.177C4.882 14.451 4 13.233 4 12.941c0-.654.987-1.177 3.81-2.015 2.397-.712 2.784-1.026 4.842-3.94C13.578 5.676 14.256 5 14.642 5c.394 0 1.212.854 2.507 2.619Zm-5.326 6.578c-.304.494.381 1.06.79.651.34-.341.127-.972-.33-.972-.143 0-.35.144-.46.321Zm4.734 0c-.305.494.38 1.06.79.651.34-.341.127-.972-.33-.972-.144 0-.35.144-.46.321Z",clipRule:"evenodd"})})},{svg:(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",fill:"none",viewBox:"0 0 30 30",children:(0,Pi.jsx)("path",{fill:"#C9C7CE",fillRule:"evenodd",d:"M13.57 5.88c-.406.549-1.286 1.752-1.955 2.674-1.1 1.517-1.399 1.73-3.134 2.243C5.299 11.74 4 12.375 4 12.993c0 .307.898 1.556 1.996 2.774l1.995 2.216-.208 3.212c-.282 4.35-.259 4.367 3.926 3.015l3.146-1.017 3.147 1.017c4.194 1.355 4.223 1.333 3.938-3.027l-.21-3.212 1.99-2.21c1.095-1.215 1.99-2.451 1.99-2.747 0-.685-.752-1.082-3.905-2.056l-2.549-.787-1.844-2.552C15.28 4.671 14.67 4.395 13.57 5.88Zm-.658 8.412c.31.503-.388 1.08-.805.663-.348-.348-.13-.991.336-.991.146 0 .357.147.469.328Zm4.824 0c.31.503-.388 1.08-.804.663-.348-.348-.13-.991.336-.991.146 0 .357.147.468.328Zm-1.071 2.989c0 .167-.804.301-1.81.301-1.005 0-1.809-.134-1.809-.301 0-.168.804-.302 1.81-.302 1.005 0 1.809.134 1.809.302Z",clipRule:"evenodd"})})},{svg:(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",fill:"none",viewBox:"0 0 30 30",children:(0,Pi.jsx)("path",{fill:"#C9C7CE",fillRule:"evenodd",d:"m12.162 7.543-1.93 2.628-2.763.827c-1.519.454-2.929.964-3.133 1.133-.701.58-.366 1.316 1.59 3.488l1.96 2.176-.206 3.307c-.278 4.452-.272 4.458 3.867 3.12l3.095-1 3.096 1c4.129 1.334 4.13 1.334 3.855-3.108l-.203-3.309 1.965-2.182c1.08-1.2 1.965-2.419 1.965-2.71 0-.67-.68-1.027-3.812-2l-2.527-.783-1.82-2.516c-1.133-1.568-2.054-2.55-2.444-2.608-.49-.072-1.049.483-2.556 2.537Zm.569 6.627c.305.495-.382 1.062-.791.652-.343-.342-.128-.975.33-.975.144 0 .35.146.46.323Zm4.745 0c.306.495-.382 1.062-.79.652-.343-.342-.129-.975.33-.975.143 0 .35.146.46.323Zm-3.09 3.159c.43.074 1.056-.012 1.39-.191.336-.18.68-.212.767-.072.187.302-1.098.934-1.9.934-.754 0-2.077-.618-2.077-.97 0-.154.234-.18.52-.058.285.122.87.283 1.3.357Z",clipRule:"evenodd"})})},{svg:(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",fill:"none",viewBox:"0 0 30 30",children:(0,Pi.jsx)("path",{fill:"#C9C7CE",fillRule:"evenodd",d:"M15.61 5.707c.319.37 1.23 1.536 2.027 2.59 1.438 1.904 1.469 1.925 4.584 2.996 2.096.72 3.168 1.241 3.229 1.569.05.27-.8 1.507-1.887 2.75l-1.978 2.258.359 3.187c.5 4.446.47 4.47-3.873 3.16l-3.273-.986-2.874.958c-4.115 1.37-4.086 1.392-4.086-3.04v-3.613l-1.965-2.082C4.74 14.25 3.95 13.16 4.003 12.872c.063-.34 1.098-.846 3.226-1.578l3.132-1.077 1.444-2.068c2.455-3.516 2.73-3.693 3.805-2.442Zm-4.03 8.314c-.625.69-.39 1.171.294.603.368-.306.545-.306.913 0 .685.568.92.087.294-.603-.299-.33-.636-.601-.75-.601-.114 0-.452.27-.75.6Zm5.092 0c-.625.69-.39 1.171.294.603.365-.303.547-.304.906-.006.608.504.59-.117-.021-.728-.584-.584-.526-.59-1.179.13Zm-3.443 3.096c0 .573.99 1.395 1.68 1.395.767 0 1.915-.818 1.915-1.365 0-.329-.43-.432-1.797-.432-1.306 0-1.798.11-1.798.402Z",clipRule:"evenodd"})})}];const D=()=>{S.current||P((e=>(e+1)%r.length))};return(0,Pi.jsxs)("div",{className:"tpae_dash_inner_main tpae-main-container "+(e?.tpae_dashboard_data?.success?"":"theplus-skeleton"),children:[(0,Pi.jsx)("div",{className:"tpae-section-heading-cover",children:(0,Pi.jsx)("h3",{className:"tpae-section-heading",children:(0,Pn.__)("Dashboard","tpebl")})}),(0,Pi.jsxs)("div",{className:"tpae_wlcm_sec_cover",children:[(0,Pi.jsx)("div",{className:"tpae_wlcm_sec_in",children:(0,Pi.jsxs)("div",{className:"tpae_user_img_wn",children:[(0,Pi.jsxs)("div",{className:"tpae_user_img_cover",children:[(0,Pi.jsx)("img",{className:"tpae_user_img",src:h||n+"assets/images/tp-placeholder.jpg",draggable:!1}),"1"==o&&(0,Pi.jsx)("span",{className:"tpae-pro-check",children:(0,Pi.jsx)("img",{src:n+"assets/svg/premium_icon.svg",draggable:!1})})]}),(0,Pi.jsxs)("h3",{className:"theplus_user_name",children:[(0,Pn.__)("Welcome,","tpebl")," ",c||"..."]})]})}),(0,Pi.jsxs)("div",{className:"tpae_slide_form_sec",children:[(0,Pi.jsxs)("div",{className:"tpae_numinfo_wdkit_cover",children:[(0,Pi.jsxs)("div",{className:"tpae_numeric_info_cover",children:[(0,Pi.jsxs)("div",{className:"tpae_numeric_card",children:[(0,Pi.jsx)("div",{className:"tpae_numbers",children:A}),(0,Pi.jsx)("div",{className:"tpae_sm_abt_num",children:(0,Pn.__)("Total Widgets","tpebl")})]}),(0,Pi.jsxs)("div",{className:"tpae_numeric_card",children:[(0,Pi.jsx)("div",{className:"tpae_numbers",children:E}),(0,Pi.jsx)("div",{className:"tpae_sm_abt_num",children:(0,Pn.__)("Active Widgets","tpebl")})]})]}),!("on"==e.tpae_white_lable_data?.plugin_ads)&&(0,Pi.jsx)("div",{className:"tpae_product_slider",children:e?.tpae_dashboard_data?.success?(0,Pi.jsxs)("div",{className:"slideshow-container",children:[C.map(((e,t)=>(0,Pi.jsxs)("div",{className:"tp_main_slider slide_animation "+(t===I?"active":""),style:{background:e.bg_color},children:[(0,Pi.jsxs)("div",{className:"tpae-slider-text-content",children:[(0,Pi.jsx)("h3",{className:"tp_banner_heading",children:e.heading}),(0,Pi.jsxs)("div",{className:"nxt_wdesignkit_btn_group",children:[(0,Pi.jsx)("div",{className:"tp_install_wdesignkit_btn",style:{background:e.bt_color},children:"active"==e?.status?(0,Pi.jsx)("a",{target:"_blank",href:e?.browseLink,rel:"noopener noreferrer",style:{color:e.bt_txt_color},children:e.buttonLinkLabel}):(0,Pi.jsx)("button",{style:{color:e.bt_txt_color},onClick:()=>(async(e,t)=>{S.current=!0;let n=[...C];n[t].buttonLabel="Installing..",k(n);var o=tpae_db_object.ajax_url,s="",r="";if("wdesignkit"===e)s="wdesignkit/wdesignkit.php",r="wdesignkit";else if("uichemy"===e)s="uichemy/uichemy.php",r="uichemy";else if("nexter-extension"===e)s="nexter-extension/nexter-extension.php",r="nexter-extension";else if("the-plus-addons-for-block-editor"===e)s="the-plus-addons-for-block-editor/the-plus-addons-for-block-editor.php",r="the-plus-addons-for-block-editor";else if("nexter-theme"===e){var a;(a=new FormData).append("action","tpae_dashboard_ajax_call"),a.append("nonce",i),a.append("type","tpae_theme_install"),a.append("name","nexter")}if("wdesignkit"!==e&&"uichemy"!==e&&"nexter-extension"!==e&&"the-plus-addons-for-block-editor"!==e||((a=new FormData).append("action","tpae_dashboard_ajax_call"),a.append("nonce",i),a.append("type","tpae_plugin_install"),a.append("slug",s),a.append("name",r)),(await In.post(o,a)).data.success){let e=[...C];e[t].status="active",k(e)}setTimeout((()=>{S.current=!1}),2e3)})(e.key,t),children:e.buttonLabel})}),(0,Pi.jsxs)("a",{className:"tp_learn_btn_link",target:"_blank",rel:"noopener noreferrer",href:e.learnLink,children:[" ",(0,Pn.__)("Learn More","tpebl")," "]})]})]}),(0,Pi.jsx)("img",{className:"tp_slider_image",src:e.imgSrc,alt:`Slide ${t+1}`})]},t))),(0,Pi.jsx)("div",{className:"tp_slider_dot",children:r.map(((e,t)=>(0,Pi.jsx)("span",{className:"dot "+(t===I?"active":""),onClick:()=>{P(t+1-1)}},t)))})]}):(0,Pi.jsx)("div",{className:"tpae-slideshow-skeleton"})})]}),"on"!=e?.tpae_white_lable_data?.plugin_ads&&(0,Pi.jsxs)("div",{className:"tpae_sub_form_cover",children:[(0,Pi.jsx)("h3",{className:"tpae_subscribe_form_h",children:(0,Pn.__)("Stay Update with Elementor News & Plugin Updates.","tpebl")}),(0,Pi.jsxs)("span",{className:"tpae-name-container",children:[(0,Pi.jsx)("input",{className:"tpae_subscribe_input",type:"text",value:null!==u?u:c,onChange:e=>{g(e.target.value),x({tpaeName:!1,tpaeEmail:!1})},placeholder:(0,Pn.__)("Your Name","tpebl")}),y.tpaeName&&(0,Pi.jsx)("span",{className:"tpae-username-tooltip",children:(0,Pn.__)("Please enter valid Name","tpebl")})]}),(0,Pi.jsxs)("span",{className:"tpae-name-container",children:[(0,Pi.jsx)("input",{className:"tpae_subscribe_input",type:"email",value:null!==m?m:_,onChange:e=>{f(e.target.value),x({tpaeName:!1,tpaeEmail:!1})},placeholder:(0,Pn.__)("Your Email","tpebl")}),y.tpaeEmail&&(0,Pi.jsx)("span",{className:"tpae-username-tooltip",children:(0,Pn.__)("Please enter valid email","tpebl")})]}),(0,Pi.jsx)("a",{className:"tpae_subscribe_btn",onClick:e=>{(async e=>{let t=y;if(!u.trim()||!m.trim()){var n={tpaeName:!1,tpaeEmail:!1};return u.trim()||(n=Object.assign({},n,{tpaeName:!0})),m.trim()||(n=Object.assign({},n,{tpaeEmail:!0})),x(n),setTimeout((()=>{x(t)}),3e3),!1}if(!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(m))return x({tpaeName:!1,tpaeEmail:!0}),setTimeout((()=>{x(t)}),3e3),!1;let i=e.target;v(". . ."),i.style.pointerEvents="none";const o=`https://store.posimyth.com/?fluentcrm=1&route=contact&hash=30275c78-0cf5-42f1-adb0-32901bb25b90&full_name=${encodeURIComponent(u)}&email=${encodeURIComponent(m)}`;f(""),g(""),await fetch(o,{method:"POST",headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"http://localhost/"},mode:"no-cors"})&&(v("Submited !"),i.style.backgroundImage="linear-gradient(90deg, #6f14f1 0%, #6660ef 128.29%)",i.style.color="white",setTimeout((()=>{v((0,Pn.__)("Subscribe Now","tpebl")),i.removeAttribute("style")}),2e3))})(e)},children:w})]})]})]}),!("on"==e.tpae_white_lable_data?.help_link)&&(0,Pi.jsxs)("div",{className:"tpae_qik_infocrd_main",children:[(0,Pi.jsxs)("div",{className:"tpae_qikinfo_grp_cover",children:[(0,Pi.jsxs)("div",{className:"tpae_qik_infocrd_cover theplus_docs",children:[(0,Pi.jsx)("h4",{className:"tpae_qik_info_crd_title",children:(0,Pn.__)("Documentation","tpebl")}),(0,Pi.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://theplusaddons.com/docs?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings",className:"tpae-ghost-btn",children:(0,Pn.__)("Read Now","tpebl")})]}),(0,Pi.jsxs)("div",{className:"tpae_qik_infocrd_cover theplus_help",children:[(0,Pi.jsx)("h4",{className:"tpae_qik_info_crd_title",children:(0,Pn.__)("Need Help?","tpebl")}),(0,Pi.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"0"==o?"https://wordpress.org/support/plugin/the-plus-addons-for-elementor-page-builder/#new-topic-0?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings":"https://store.posimyth.com/helpdesk?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings",className:"tpae-ghost-btn",children:(0,Pn.__)("Raise Ticket","tpebl")})]}),(0,Pi.jsxs)("div",{className:"tpae_qik_infocrd_cover",children:[(0,Pi.jsx)("h4",{className:"tpae_qik_info_crd_title",children:(0,Pn.__)("Join FB Community","tpebl")}),(0,Pi.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.facebook.com/groups/theplus4elementor",className:"tpae-ghost-btn",children:(0,Pn.__)("Join Now","tpebl")})]}),(0,Pi.jsxs)("div",{className:"tpae_qik_infocrd_cover",children:[(0,Pi.jsx)("h4",{className:"tpae_qik_info_crd_title",children:(0,Pn.__)("Request Feature","tpebl")}),(0,Pi.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://roadmap.theplusaddons.com?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings",className:"tpae-ghost-btn",children:(0,Pn.__)("Suggest Now","tpebl")})]})]}),(0,Pi.jsxs)("div",{className:"tpae_qikinfo_grp_cover tp_section_two",children:[(0,Pi.jsxs)("div",{className:"tpae_qik_infocrd_cover tpae_ratings_box",children:[(0,Pi.jsx)("h4",{className:"tpae_qik_info_crd_title",children:(0,Pn.__)("Rate The Plus Addons for Elementor","tpebl")}),(0,Pi.jsx)("div",{className:"tpae_rating_box",children:F.map(((e,t)=>(0,Pi.jsxs)("a",{href:4==t?"https://wordpress.org/support/plugin/the-plus-addons-for-elementor-page-builder/reviews/?filter=5#new-post":"https://go.posimyth.com/review-tpae?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings",target:"_blank",rel:"noopener noreferrer",className:"tpae-star",onMouseEnter:()=>R(t),onMouseLeave:()=>R(null),onClick:()=>O(t),children:[" ",e.svg," "]},t)))})]}),(0,Pi.jsxs)("div",{className:"tpae_qik_infocrd_cover",children:[(0,Pi.jsx)("h4",{className:"tpae_qik_info_crd_title",children:(0,Pn.__)("Join Discord Channel","tpebl")}),(0,Pi.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://go.posimyth.com/plus-elementor-discord",className:"tpae-ghost-btn",children:(0,Pn.__)("Join Now","tpebl")})]}),(0,Pi.jsxs)("div",{className:"tpae_qik_infocrd_cover",children:[(0,Pi.jsx)("h4",{className:"tpae_qik_info_crd_title",children:(0,Pn.__)("Video Tutorials","tpebl")}),(0,Pi.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.youtube.com/@posimyth",className:"tpae-ghost-btn",children:(0,Pn.__)("Watch Now","tpebl")})]}),(0,Pi.jsxs)("div",{className:"tpae_qik_infocrd_cover theplus_dashboard_social_icons_card_box",children:[(0,Pi.jsx)("h4",{className:"tpae_qik_info_crd_title",children:(0,Pn.__)("We're Active on","tpebl")}),(0,Pi.jsxs)("div",{className:"tpae_icon_bx_cover",children:[(0,Pi.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.facebook.com/tpaelementor",className:"theplus_icon_cover",children:(0,Pi.jsx)("img",{src:n+"assets/svg/dashboard_tab/facebook_icon.svg",draggable:!1})}),(0,Pi.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://x.com/intent/user?screen_name=tpaelementor",className:"theplus_icon_cover",children:(0,Pi.jsx)("img",{src:n+"assets/svg/dashboard_tab/X_icon.svg",draggable:!1})}),(0,Pi.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://instagram.com/theplus_elementor",className:"theplus_icon_cover",children:(0,Pi.jsx)("img",{src:n+"assets/svg/dashboard_tab/instagram_icon.svg",draggable:!1})}),(0,Pi.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://t.me/posimyth",className:"theplus_icon_cover",children:(0,Pi.jsx)("img",{src:n+"assets/svg/dashboard_tab/telegram_icon.svg",draggable:!1})}),(0,Pi.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.linkedin.com/company/posimyth",className:"theplus_icon_cover",children:(0,Pi.jsx)("img",{src:n+"assets/svg/dashboard_tab/linkedin_icon.svg",draggable:!1})})]})]})]})]})]})})),Di=e=>(0,Pi.jsxs)("div",{className:"tpae_no_wid_cover",children:[(0,Pi.jsxs)("div",{className:"tpae_nowid_info tpae_field_card tpae-section-heading-cover",children:[(0,Pi.jsx)("svg",{width:"28",height:"27",viewBox:"0 0 28 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Pi.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.995 0C21.2523 0 27.1379 5.88553 27.1379 13.1429C27.1379 20.4002 21.2523 26.2857 13.995 26.2857C6.73768 26.2857 0.852142 20.4002 0.852142 13.1429C0.852142 5.88553 6.73768 0 13.995 0ZM12.587 14.2738V7.50935C12.587 6.73386 13.2195 6.10131 13.995 6.10131C14.7705 6.10131 15.403 6.73974 15.403 7.50935V14.2738C15.403 15.0434 14.7705 15.6819 13.995 15.6819C13.2195 15.6819 12.587 15.0493 12.587 14.2738ZM13.9889 17.192C14.8702 17.192 15.5849 17.9068 15.5849 18.7879C15.5849 19.6692 14.8702 20.3839 13.9889 20.3839C13.1078 20.3839 12.393 19.6692 12.393 18.7879C12.393 17.9068 13.1078 17.192 13.9889 17.192Z",fill:"#FF5A6E"})}),(0,Pi.jsx)("h3",{className:"tpae-section-heading",children:(0,Pn.__)("Oops, No Widgets Found!","tpebl")}),(0,Pi.jsxs)("p",{className:"tpae_card_descrip",children:[(0,Pn.__)("Please try searching with an alternative")," ",(0,Pi.jsx)("br",{})," ",(0,Pn.__)("or more common term!","tpebl")]})]}),(0,Pi.jsxs)("div",{className:"tpae_btm_nowid_crds",children:[(0,Pi.jsxs)("div",{className:"tpae_nowid_info tpae_field_card tpae-section-heading-cover",children:[(0,Pi.jsxs)("svg",{width:"33",height:"32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Pi.jsx)("circle",{cx:"16.665",cy:"16",r:"15.68",fill:"#fff",stroke:"url(#a)",strokeWidth:".64"}),(0,Pi.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.263 9.334c-.737 0-1.334.596-1.334 1.333V14c0 .736.597 1.334 1.334 1.334h3.333c.736 0 1.333-.598 1.333-1.334v-3.333c0-.737-.597-1.333-1.333-1.333h-3.333Zm0 1.333h3.333V14h-3.333v-3.333ZM10.93 12a1.334 1.334 0 0 0-1.334 1.333v8a1.333 1.333 0 0 0 1.334 1.334h8a1.333 1.333 0 0 0 1.333-1.334V18a1.333 1.333 0 0 0-1.333-1.333h-3.334v-3.334A1.333 1.333 0 0 0 14.263 12H10.93Zm0 9.333V18h3.333v3.333H10.93Zm0-4.666h3.333v-3.334H10.93v3.334Zm4.666 4.666V18h3.334v3.333h-3.334Z",fill:"url(#b)"}),(0,Pi.jsxs)("defs",{children:[(0,Pi.jsxs)("linearGradient",{id:"a",x1:"16.665",y1:"0",x2:"16.665",y2:"32",gradientUnits:"userSpaceOnUse",children:[(0,Pi.jsx)("stop",{"stop-color":"#6D68FE"}),(0,Pi.jsx)("stop",{offset:"1","stop-color":"#B446FF"})]}),(0,Pi.jsxs)("linearGradient",{id:"b",x1:"16.263",y1:"9.334",x2:"16.263",y2:"22.667",gradientUnits:"userSpaceOnUse",children:[(0,Pi.jsx)("stop",{"stop-color":"#6D68FE"}),(0,Pi.jsx)("stop",{offset:"1","stop-color":"#B446FF"})]})]})]}),(0,Pi.jsx)("h3",{className:"tpae-section-heading",children:(0,Pn.__)("WordPress Widgets Library from WDesignKit","tpebl")}),(0,Pi.jsx)("p",{className:"tpae_card_descrip",children:(0,Pn.__)("Explore our curated selection of pre-built Widgets for Elementor from the WDesignKit Widgets Library.","tpebl")}),(0,Pi.jsx)("a",{href:"https://wdesignkit.com/widgets?builder=1",target:"_blank",rel:"noopener noreferrer",className:"tpae-ghost-btn",children:(0,Pn.__)("View Widgets Library*","tpebl")}),(0,Pi.jsx)("span",{className:"tpae_sm_txt",children:(0,Pn.__)("* WDesignKit Plugin Required","tpebl")})]}),(0,Pi.jsxs)("div",{className:"tpae_nowid_info tpae_field_card tpae-section-heading-cover",children:[(0,Pi.jsxs)("svg",{width:"32",height:"32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Pi.jsx)("circle",{cx:"15.995",cy:"16",r:"15.68",fill:"#fff",stroke:"url(#a)",strokeWidth:".64"}),(0,Pi.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.488 10.02c.357.09.575.451.485.809l-2.666 10.666a.667.667 0 1 1-1.294-.323l2.667-10.667a.667.667 0 0 1 .808-.485Zm-4.357 2.842c.26.26.26.682 0 .943L10.936 16l2.195 2.195a.667.667 0 0 1-.943.943l-2.666-2.666a.667.667 0 0 1 0-.943l2.666-2.667c.26-.26.683-.26.943 0Zm5.724 0c.26-.26.683-.26.943 0l2.667 2.667a.667.667 0 0 1 0 .943l-2.667 2.666a.667.667 0 1 1-.943-.943L21.05 16l-2.195-2.195a.667.667 0 0 1 0-.943Z",fill:"url(#b)"}),(0,Pi.jsxs)("defs",{children:[(0,Pi.jsxs)("linearGradient",{id:"a",x1:"15.995",y1:"0",x2:"15.995",y2:"32",gradientUnits:"userSpaceOnUse",children:[(0,Pi.jsx)("stop",{"stop-color":"#6D68FE"}),(0,Pi.jsx)("stop",{offset:"1","stop-color":"#B446FF"})]}),(0,Pi.jsxs)("linearGradient",{id:"b",x1:"15.993",y1:"10",x2:"15.993",y2:"22",gradientUnits:"userSpaceOnUse",children:[(0,Pi.jsx)("stop",{"stop-color":"#6D68FE"}),(0,Pi.jsx)("stop",{offset:"1","stop-color":"#B446FF"})]})]})]}),(0,Pi.jsx)("h3",{className:"tpae-section-heading",children:(0,Pn.__)("Developer? Create Your Custom Elementor Widget","tpebl")}),(0,Pi.jsxs)("p",{className:"tpae_card_descrip",children:[(0,Pn.__)("With WDesignKit, you can easily","tpebl"),(0,Pi.jsx)("br",{}),(0,Pn.__)("convert your custom code into a","tpebl"),(0,Pi.jsx)("br",{}),(0,Pn.__)("Elementor Widget.","tpebl")]}),(0,Pi.jsx)("a",{href:"https://wdesignkit.com/widget-builder/elementor-widget-builder",target:"_blank",rel:"noopener noreferrer",className:"tpae-ghost-btn",children:(0,Pn.__)("View Widget Builder*","tpebl")}),(0,Pi.jsx)("span",{className:"tpae_sm_txt",children:(0,Pn.__)("*WDesignKit Plugin Required","tpebl")})]}),(0,Pi.jsxs)("div",{className:"tpae_nowid_info tpae_field_card tpae-section-heading-cover",children:[(0,Pi.jsxs)("svg",{width:"33",height:"32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Pi.jsx)("circle",{cx:"16.325",cy:"16",r:"15.68",fill:"#fff",stroke:"url(#a)",strokeWidth:".64"}),(0,Pi.jsx)("path",{stroke:"url(#b)",strokeWidth:".08",d:"M8.365 8.04h15.92v15.92H8.365z"}),(0,Pi.jsx)("path",{d:"M12.325 13.056a.29.29 0 0 0 .023.127c.017.04.043.077.077.108a.381.381 0 0 0 .256.096h1.217a.396.396 0 0 0 .392-.335c.133-.877.797-1.516 1.98-1.516 1.012 0 1.938.459 1.938 1.562 0 .848-.551 1.239-1.423 1.832-.993.654-1.78 1.418-1.723 2.657l.004.29a.32.32 0 0 0 .11.233.39.39 0 0 0 .26.096h1.195a.389.389 0 0 0 .261-.098.319.319 0 0 0 .108-.236v-.14c0-.96.403-1.24 1.49-1.987.899-.62 1.835-1.306 1.835-2.749 0-2.02-1.882-2.996-3.943-2.996-1.869 0-3.916.789-4.057 3.056Zm2.297 7.705c0 .712.627 1.239 1.49 1.239.899 0 1.517-.527 1.517-1.24 0-.737-.62-1.256-1.518-1.256-.862 0-1.489.519-1.489 1.257Z",fill:"url(#c)"}),(0,Pi.jsxs)("defs",{children:[(0,Pi.jsxs)("linearGradient",{id:"a",x1:"16.325",y1:"0",x2:"16.325",y2:"32",gradientUnits:"userSpaceOnUse",children:[(0,Pi.jsx)("stop",{"stop-color":"#6D68FE"}),(0,Pi.jsx)("stop",{offset:"1","stop-color":"#B446FF"})]}),(0,Pi.jsxs)("linearGradient",{id:"b",x1:"16.325",y1:"8",x2:"16.325",y2:"24",gradientUnits:"userSpaceOnUse",children:[(0,Pi.jsx)("stop",{"stop-color":"#6D68FE"}),(0,Pi.jsx)("stop",{offset:"1","stop-color":"#B446FF"})]}),(0,Pi.jsxs)("linearGradient",{id:"c",x1:"16.325",y1:"10",x2:"16.325",y2:"22",gradientUnits:"userSpaceOnUse",children:[(0,Pi.jsx)("stop",{"stop-color":"#6D68FE"}),(0,Pi.jsx)("stop",{offset:"1","stop-color":"#B446FF"})]})]})]}),(0,Pi.jsx)("h3",{className:"tpae-section-heading",children:(0,Pn.__)("Request for Widget","tpebl")}),(0,Pi.jsx)("p",{className:"tpae_card_descrip",children:(0,Pn.__)("We're always looking to improve our Widget Library. Share your ideas, and we’ll consider adding them based on user demand.")}),(0,Pi.jsx)("a",{href:"https://roadmap.theplusaddons.com/boards/feature-request",target:"_blank",rel:"noopener noreferrer",className:"tpae-ghost-btn",children:(0,Pn.__)("Request Widget","tpebl")})]})]})]}),Wi=e=>({type:"set_dashboard",data:e}),Bi=e=>({type:"set_widgets",data:e}),Ui=e=>({type:"set_extra_option",data:e}),Hi=e=>({type:"set_plugin_status",data:e}),zi=e=>({type:"set_lising_data",data:e}),Vi=e=>({type:"set_custom_code",data:e}),Gi=e=>({type:"set_performance",data:e}),Ki=e=>({type:"set_white_lable",data:e}),qi=e=>({type:"set_license",data:e}),Zi=e=>({type:"wdkit_widgets",data:e}),Yi=e=>({type:"tpae_widget_setting",data:e}),Ji=e=>({type:"tpae_onbording",data:e}),Qi=Oi((e=>({tp_widgets_setting:e.tpae_check_widgets_setting.tpae_widget_setting_rx})),(e=>({tpae_set_widgets_setting:t=>e(Yi(t))})))((e=>{tpae_db_object.tpae_url;var n=tpae_db_object.nonce,i=tpae_db_object.ajax_url;const{setisPopupVisible:o}=e,[s,r]=(0,t.useState)("google"),[a,l]=(0,t.useState)(!1),[c,d]=(0,t.useState)({google_site_key:"",google_secret_key:"",cloudflare_site_key:"",cloudflare_secret_key:"",active_tab:""});(0,t.useEffect)((()=>{const t=e?.tp_widgets_setting?.tp_plus_form;t&&"object"==typeof t&&(d(t),r(t.active_tab?t.active_tab:"google"))}),[e?.tp_widgets_setting?.tp_plus_form]);const h=e=>{const{id:t,value:n}=e.target;d((e=>({...e,[t]:n})))},p=e=>{r(e),d((t=>({...t,active_tab:e})))};return(0,Pi.jsxs)(Pi.Fragment,{children:[(0,Pi.jsxs)("div",{className:"tpae_form_data_cover",children:[(0,Pi.jsx)("div",{className:"tpae-datakey-tab "+("google"===s?"active":""),style:{borderRadius:"5px 0px 0px 5px"},onClick:()=>p("google"),children:(0,Pn.__)("Google reCAPTCHA v3","tpebl")}),(0,Pi.jsx)("div",{className:"tpae-datakey-tab "+("cloudflare"===s?"active":""),style:{borderRadius:"0px 5px 5px 0px"},onClick:()=>p("cloudflare"),children:(0,Pn.__)("Cloudflare Turnstile","tpebl")})]}),(0,Pi.jsx)("div",{className:"tp_sett_inncrd_cover",children:(0,Pi.jsx)("div",{className:"tp_field_card_cover",children:(0,Pi.jsx)("div",{className:"tp_field_card_bottom tpae-switcher-content",children:"google"===s?(0,Pi.jsxs)(Pi.Fragment,{children:[(0,Pi.jsx)("div",{className:"tp_crd_h_strip",children:(0,Pi.jsx)("div",{className:"tp_set_pop_tie_cov",children:(0,Pi.jsxs)("label",{htmlFor:"google_site_key",className:"tp_inn_sec_he",children:[(0,Pn.__)("Site Key","tpebl")," "]})})}),(0,Pi.jsx)("input",{className:"tpae_text_field",id:"google_site_key",value:c?.google_site_key||"",onChange:h,type:"text",placeholder:(0,Pn.__)("Please Enter Site Key","tpebl")}),(0,Pi.jsx)("div",{className:"tp_crd_h_strip",children:(0,Pi.jsx)("div",{className:"tp_set_pop_tie_cov",children:(0,Pi.jsxs)("label",{htmlFor:"google_secret_key",className:"tp_inn_sec_he",children:[(0,Pn.__)("Secret Key","tpebl")," "]})})}),(0,Pi.jsx)("input",{className:"tpae_text_field",type:"text",placeholder:(0,Pn.__)("Please Enter Secret Key","tpebl"),id:"google_secret_key",value:c?.google_secret_key||"",onChange:h}),(0,Pi.jsxs)("span",{children:[(0,Pn.__)("The Generate Site Key and Secret key","tpebl")," ",(0,Pi.jsx)("a",{className:"tpae_tertiary_btn",target:"_blank",rel:"noopener noreferrer",href:"https://www.google.com/recaptcha/admin/create#list",children:(0,Pn.__)("Google reCAPTCHA")})]})]}):(0,Pi.jsxs)(Pi.Fragment,{children:[(0,Pi.jsx)("div",{className:"tp_crd_h_strip",children:(0,Pi.jsx)("div",{className:"tp_set_pop_tie_cov",children:(0,Pi.jsx)("label",{htmlFor:"cloudflare_site_key",className:"tp_inn_sec_he",children:(0,Pn.__)("Site Key","tpebl")})})}),(0,Pi.jsx)("input",{className:"tpae_text_field",type:"text",placeholder:(0,Pn.__)("Please Enter Site Key","tpebl"),id:"cloudflare_site_key",value:c?.cloudflare_site_key||"",onChange:h}),(0,Pi.jsx)("div",{className:"tp_crd_h_strip",children:(0,Pi.jsx)("div",{className:"tp_set_pop_tie_cov",children:(0,Pi.jsx)("label",{htmlFor:"cloudflare_secret_key",className:"tp_inn_sec_he",children:"Secret Key"})})}),(0,Pi.jsx)("input",{className:"tpae_text_field",type:"text",placeholder:(0,Pn.__)("Please Enter Secret Key","tpebl"),id:"cloudflare_secret_key",value:c?.cloudflare_secret_key||"",onChange:h}),(0,Pi.jsxs)("span",{children:[(0,Pn.__)("The Generate Site Key and Secret key","tpebl")," ",(0,Pi.jsx)("a",{className:"tpae_tertiary_btn",target:"_blank",rel:"noopener noreferrer",href:"https://www.cloudflare.com/en-in/application-services/products/turnstile/",children:(0,Pn.__)("Cloudflare Turnstile")})]})]})})})}),(0,Pi.jsxs)("div",{className:"tp_popup_btm",children:[(0,Pi.jsx)("a",{className:"tpae_tertiary_btn",target:"_blank",rel:"noopener noreferrer",href:"#",children:(0,Pn.__)("")}),a?(0,Pi.jsx)("button",{className:"tpae-purple-common-btn",children:(0,Pi.jsx)("span",{className:"tpae-loading-circle"})}):(0,Pi.jsx)("button",{className:"tpae-purple-common-btn",onClick:()=>{(async()=>{l(!0);let t={...e.tp_widgets_setting,tp_plus_form:{...e.tp_widgets_setting.tp_plus_form,...c}},s=new FormData;s.append("action","tpae_dashboard_ajax_call"),s.append("nonce",n),s.append("type","tpae_widgets_setting_data"),s.append("tp_widgets_setting",JSON.stringify(t)),(await In.post(i,s)).data.success&&(e.tpae_set_widgets_setting(t),o(!1),l(!1))})()},children:(0,Pn.__)("Save")})]})]})})),Xi=e=>{var t=tpae_db_object.tpae_url;return(0,Pi.jsx)(Pi.Fragment,{children:(0,Pi.jsxs)("div",{className:e.parent_class,onClick:()=>e.setShowPopup(!1),children:["tpae_whitlabel_overlay"==e.parent_class&&(0,Pi.jsx)("div",{className:"tpae-pro-overlay-con"}),(0,Pi.jsxs)("div",{className:e.inner_class,onClick:e=>e.stopPropagation(),children:[(0,Pi.jsxs)("span",{className:"theplus-pro-header",children:[(0,Pi.jsx)("h4",{className:"theplus_section_heading",children:e.heading}),e.close_svg||""]}),(0,Pi.jsxs)("ul",{className:"theplus_popup_style_list",children:[(0,Pi.jsxs)("li",{className:"theplus_popup_list_icon",children:[(0,Pi.jsx)("img",{src:t+"assets/svg/upgrade_table/theplus_white_check.svg",alt:"Check Icon"}),(0,Pn.__)("Performance Optimized","tpebl")]}),(0,Pi.jsxs)("li",{className:"theplus_popup_list_icon",children:[(0,Pi.jsx)("img",{src:t+"assets/svg/upgrade_table/theplus_white_check.svg",alt:"Check Icon"}),(0,Pn.__)("120+ WordPress Widgets","tpebl")]}),(0,Pi.jsxs)("li",{className:"theplus_popup_list_icon",children:[(0,Pi.jsx)("img",{src:t+"assets/svg/upgrade_table/theplus_white_check.svg",alt:"Check Icon"}),(0,Pn.__)("100% Whitelabel Plugin","tpebl")]})]}),(0,Pi.jsxs)("a",{className:"tpae-purple-common-btn",target:"_blank",rel:"noopener noreferrer",href:"https://theplusaddons.com/pricing/?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings",children:[(0,Pi.jsx)("img",{className:"theplus_pro_icon",src:t+"assets/svg/premium_icon.svg",draggable:!1}),(0,Pi.jsxs)("span",{children:[(0,Pn.__)("Upgrade Now","tpebl")," "]})]}),(0,Pi.jsx)("p",{className:"theplus_btm_sm_txt",children:(0,Pn.__)("Use Code 'FIRST20' for FLAT 20%. (Offer applicable for 1st time only)","tpebl")})]})]})})},eo=Oi((e=>({plugin_check:e.check_plugin.plugin_status_rx,tpae_widgets_list:e.widgets_data.widgets_rx,tpae_dashboard_data:e.Dashboard_data.db_rx,tpae_white_lable_data:e.White_label.white_lable_rx,wdkit_widgets_list:e.Wdkit_widgets_list.wdkit_widgets_rx,tp_widgets_setting:e.tpae_check_widgets_setting.tpae_widget_setting_rx})),(e=>({tpae_set_extra_option:t=>e(extra_option_a_rx(t)),tpae_set_widgets:t=>e(widgets_a_rx(t)),set_wdkit_widgets:t=>e(wdkit_widgets_a_rx(t)),tpae_set_widgets_setting:t=>e(Yi(t))})))((({moreOptionsData:e,WidgetsOptionsKey:n,tp_widgets_setting:i,tpae_set_widgets_setting:o})=>{const[s,r]=(0,t.useState)({}),a=tpae_db_object.tpae_url,l=tpae_db_object.nonce,c=tpae_db_object.ajax_url,d="1"===tpae_db_object?.tpae_pro;return(0,t.useEffect)((()=>{r(i||{})}),[i]),"swicher"!==e?.type?null:(0,Pi.jsx)("div",{className:"tpae_switcher_box",children:(0,Pi.jsx)("div",{className:`tpae_field_card_bottom ${n}`,children:(0,Pi.jsx)("div",{className:"tpae_checkbox_more_options tpae_switcher_options",children:e.options?.map(((e,t)=>(0,Pi.jsxs)("label",{className:"tpae-checkbox-option",htmlFor:"",children:[(0,Pi.jsx)("div",{className:"tpae-card-main",children:(0,Pi.jsx)("div",{className:"tpae-options-text",children:e.name})}),(0,Pi.jsxs)("label",{className:"tpae-wid-tgl-btn-cover",children:[(0,Pi.jsx)("input",{className:"tpae-toggle-btn",type:"checkbox",onChange:t=>(async(e,t)=>{const i=t?"show":"hide",a={...s,[n]:{...s[n],[e]:i}};r(a),o(a);const d=new FormData;d.append("action","tpae_dashboard_ajax_call"),d.append("nonce",l),d.append("type","tpae_widgets_setting_data"),d.append("tp_widgets_setting",JSON.stringify(a));try{await In.post(c,d)}catch(e){console.error("Switcher save error:",e)}})(e.key,t.target.checked),checked:!(!d&&"pro"===e.tag||void 0!==s?.[n]?.[e.key]&&"show"!==s[n][e.key]),disabled:!d&&"pro"===e.tag}),(0,Pi.jsx)("span",{className:"tpae-toggle-slider",onClick:t=>{!d&&e.tag},children:!d&&"pro"===e.tag&&(0,Pi.jsx)("img",{className:"theplus-toggle-lock-icon",src:a+"assets/svg/theplus_lock_icon.svg",alt:"Pro"})})]})]},t)))})})})})),to=Oi((e=>({plugin_check:e.check_plugin.plugin_status_rx,tpae_widgets_list:e.widgets_data.widgets_rx,tpae_dashboard_data:e.Dashboard_data.db_rx,tpae_white_lable_data:e.White_label.white_lable_rx,wdkit_widgets_list:e.Wdkit_widgets_list.wdkit_widgets_rx,tp_widgets_setting:e.tpae_check_widgets_setting.tpae_widget_setting_rx})),(e=>({tpae_set_extra_option:t=>e(extra_option_a_rx(t)),tpae_set_widgets:t=>e(Bi(t)),set_wdkit_widgets:t=>e(Zi(t)),tpae_set_widgets_setting:t=>e(Yi(t))})))((e=>{const[n,i]=(0,t.useState)([]),[o,s]=(0,t.useState)("all"),[r,a]=(0,t.useState)(""),[l,c]=(0,t.useState)(),[d,h]=(0,t.useState)(""),[p,u]=(0,t.useState)(""),[g,m]=(0,t.useState)(""),[f,_]=(0,t.useState)({plus_extra:!1,widgets:!1}),[b,w]=(0,t.useState)("Enable Widgets"),[v,y]=(0,t.useState)(!1),[x,C]=(0,t.useState)(""),[k,S]=(0,t.useState)(!1),[j,$]=(0,t.useState)(!1),[A,N]=(0,t.useState)(0),[E,L]=(0,t.useState)(!1),[M,R]=(0,t.useState)([]),[T,O]=(0,t.useState)([]),[I,P]=(0,t.useState)(!1),[F,D]=(0,t.useState)(!1),[W,B]=(0,t.useState)([]),[U,H]=(0,t.useState)(""),[z,V]=(0,t.useState)({name:"",options:[],type:"",widget_name:"",discription:""}),G=[{question:(0,Pn.__)("Why Do I Need to Install WDesignKit If I Already Have The Plus Addons for Elementor?","tpebl"),answer:(0,Pn.__)("Using WDesignKit you will get access of extra Elementor Widgets, which is not part of The Plus Addons for Elementor. Those widgets built from Widget Builder of WDesignKit and You can edit them from our Easy to Use Widget Builder as well.","tpebl")},{question:(0,Pn.__)("Why Can’t These Widgets Be Part of The Plus Addons for Elementor?","tpebl"),answer:(0,Pn.__)("We designed The Plus Addons to focus on essential and core widgets that are required for most websites. WDesignKit, on the other hand, is a library with specialized widgets. You can download only those you want to use in WDesignKit.","tpebl")},{question:(0,Pn.__)("Will the Widgets Remain If I Remove WDesignKit?","tpebl"),answer:(0,Pn.__)("No, the widgets will be removed if you delete WDesignKit, as it is required for widgets used from WDesignKit.","tpebl")},{question:(0,Pn.__)("Will This Affect My Website Performance?","tpebl"),answer:(0,Pn.__)("Not at all. Performance is our priority. WDesignKit will load assets of only widgets you downloaded and used on on that page. No extra assets will be loaded ever.","tpebl")}];var K=tpae_db_object.tpae_url,q=tpae_db_object.nonce,Z=tpae_db_object.ajax_url,Y=tpae_db_object.tpae_pro;const J="1"==tpae_db_object?.tpae_pro;(0,t.useEffect)((()=>{B(e?.tp_widgets_setting)}),[e?.tp_widgets_setting]),(0,t.useEffect)((()=>{const e=e=>{"Escape"===e.key&&(_({plus_extra:!1,widgets:!1}),D(!1),S(!1))};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[]),(0,t.useEffect)((()=>{window.addEventListener("message",(e=>{e.data&&"closePopup"===e.data&&L(!0)})),document.addEventListener("scroll",(()=>{let e=document.getElementById("tp_wd_widgets")?.getBoundingClientRect()?.top-350,t=document.getElementById("tp_wooCommerce")?.getBoundingClientRect()?.top-350,n=document.getElementById("tp_forms_widgets")?.getBoundingClientRect()?.top-350,i=document.getElementById("tp_social_widgets")?.getBoundingClientRect()?.top-350,o=document.getElementById("tp_creative_widgets")?.getBoundingClientRect()?.top-350,s=document.getElementById("tp_listing_widgets")?.getBoundingClientRect()?.top-350,r=document.getElementById("tp_advanced_widgets")?.getBoundingClientRect()?.top-350,a=document.getElementById("tp_essential_widgets")?.getBoundingClientRect()?.top-350;e<0?h("tp_wd_widgets"):t<0?h("tp_wooCommerce"):n<0?h("tp_forms_widgets"):i<0?h("tp_social_widgets"):s<0?h("tp_listing_widgets"):o<0?h("tp_creative_widgets"):r<0?h("tp_advanced_widgets"):a<0&&h("tp_essential_widgets")}))}),[]),(0,t.useEffect)((()=>{if(e?.tpae_dashboard_data?.success){let t=e.plugin_check;if(t.length>0){let e=t.findIndex((e=>"wdesignkit"==e.name));e>-1&&"active"==t[e]?.status&&y(!0)}i(e?.tpae_widgets_list)}}),[e?.tpae_dashboard_data?.success]),(0,t.useEffect)((()=>{Q()}),[o,r,e.wdkit_widgets_list]);const Q=()=>{if("on"!=e?.tpae_white_lable_data?.plugin_ads&&e.wdkit_widgets_list?.length>0){var t=e.wdkit_widgets_list.filter((e=>"all"==o||e?.free_pro===o?e:void 0)).filter((e=>""==r||e?.title.toLocaleLowerCase().includes(r.toLocaleLowerCase())?e:void 0));O(t)}else t=[];let n=Fn.widgetList.map(((e,t)=>{const n=e.widgets.filter((e=>"all"==o||e?.tag==o?e:void 0)).filter((e=>""==r||e?.label.toLocaleLowerCase().includes(r.toLocaleLowerCase())||"0"==Y&&e?.status?.toLocaleLowerCase().includes(r.toLocaleLowerCase())||"1"==Y&&e?.pro_status?.toLocaleLowerCase().includes(r.toLocaleLowerCase())?e:void 0));if(n.length>0)return Object.assign({},e,{widgets:n})})).filter((e=>void 0!==e));R(n),P(!(n?.length>0||t?.length>0))},X=(e,t,i)=>!("pro"==i.tag&&!J||!n?.[t]?.includes(e)),ee=async e=>{let t=document.querySelector(e)?.getBoundingClientRect().top+window.pageYOffset-300;window.scrollTo({top:t,behavior:"smooth"})},te=e=>{let t=(Fn?.widgetList?Fn.widgetList:[]).findIndex((t=>t.name==e));return t>-1?Fn.widgetList[t].widgets.length:"0"};function ne(e){D(!0),H(e?.name||""),V({name:e?.label||"",options:e?.setting?.[0]?.option||[],type:e?.setting?.[0]?.type||"",widget_name:e?.name||"",discription:e?.setting?.[0]?.discription||""})}return(0,Pi.jsxs)(Pi.Fragment,{children:[(0,Pi.jsxs)("div",{className:"theplus-widgets-inner-main tpae-main-container "+(e?.tpae_dashboard_data?.success?"":"theplus-skeleton"),children:[(0,Pi.jsxs)("div",{className:"tpae-section-heading-cover",children:[(0,Pi.jsx)("h3",{className:"tpae-section-heading",children:(0,Pn.__)("Widgets","tpebl")}),(0,Pi.jsx)("div",{className:"tpae-head-tgl-btn-grp",children:(0,Pi.jsxs)("div",{className:"theplus-widget-manage-toggle-cover",children:[(0,Pi.jsx)("span",{className:"toggle-text",children:(0,Pn.__)("Disable All","tpebl")}),(0,Pi.jsxs)("label",{className:"tpae-wid-tgl-btn-cover",children:[(0,Pi.jsx)("input",{className:"tpae-toggle-btn",type:"checkbox",onChange:t=>{(async t=>{let n={check_elements:[],extras_elements:e.tpae_widgets_list.extras_elements};t?(Fn.widgetList.map((e=>{e.widgets.map((e=>{(J||"pro"!=e.tag)&&n.check_elements.push(e.name)}))})),i(n),e.tpae_set_widgets(n)):(i(n),e.tpae_set_widgets(n));let o=new FormData;o.append("action","tpae_dashboard_ajax_call"),o.append("nonce",q),o.append("type","tpae_set_widget_list"),o.append("widget_data",JSON.stringify(n)),(await In.post(Z,o)).data})(t.target.checked)}}),(0,Pi.jsx)("span",{className:"tpae-toggle-slider"})]}),(0,Pi.jsx)("span",{className:"toggle-text",children:(0,Pn.__)("Enable All","tpebl")})]})})]}),(0,Pi.jsxs)("div",{className:"tpae-widget-categories",children:[(0,Pi.jsxs)("div",{className:"tpae-cat-strip-cov-main",children:[(0,Pi.jsxs)("div",{className:"tpae-cate-btns-cover",children:[(0,Pi.jsx)("span",{className:"tpae-category-btn "+("all"==o?"tpae-act-cat":""),onClick:()=>{s("all"),window.scrollTo(0,0)},children:(0,Pn.__)("All","tpebl")}),(0,Pi.jsx)("span",{className:"tpae-category-btn "+("free"==o?"tpae-act-cat":""),onClick:()=>{s("free"),window.scrollTo(0,0)},children:(0,Pn.__)("Free","tpebl")}),(0,Pi.jsx)("span",{className:"tpae-category-btn "+("freemium"==o?"tpae-act-cat":""),onClick:()=>{s("freemium"),window.scrollTo(0,0)},children:(0,Pn.__)("Freemium","tpebl")}),(0,Pi.jsx)("span",{className:"tpae-category-btn "+("pro"==o?"tpae-act-cat":""),onClick:()=>{s("pro"),window.scrollTo(0,0)},children:(0,Pn.__)("Pro","tpebl")})]}),(0,Pi.jsxs)("div",{className:"theplus-right-search-and-btn-group",children:[(0,Pi.jsxs)("div",{className:"theplus-widget-search-box-cover",children:[(0,Pi.jsx)("img",{className:"theplus-search-icon",src:K+"assets/svg/search_icon.svg",draggable:!1}),(0,Pi.jsx)("input",{type:"text",placeholder:(0,Pn.__)("Search","tpebl"),className:"theplus-widget-search-box",onChange:e=>{a(e.target.value),window.scrollTo(0,0)}})]}),(0,Pi.jsxs)("div",{className:"theplus-scan-unused-btn-cover",children:[g?(0,Pi.jsx)("div",{className:"theplus-scan-unused-btn",onClick:()=>{(async()=>{let t={check_elements:[],extras_elements:e.tpae_widgets_list.extras_elements};t=Object.assign({},t,{check_elements:l}),i(t),e.tpae_set_widgets(t);let n=new FormData;n.append("action","tpae_dashboard_ajax_call"),n.append("nonce",q),n.append("type","tpae_set_widget_list"),n.append("widget_data",JSON.stringify(t)),(await In.post(Z,n)).data,c(),m("")})()},children:p||(0,Pn.__)("Disable Unused Widgets","tpebl")}):(0,Pi.jsxs)("div",{className:"theplus-scan-unused-btn",onClick:()=>{(async()=>{u("Scanning Widgets...");let e=new FormData;e.append("action","tpae_dashboard_ajax_call"),e.append("nonce",q),e.append("type","tpae_get_scan_widgets");var t=await In.post(Z,e);if(200==t.status){m(t.data.message);let e=t?.data?.widgets?Object.keys(t.data.widgets):[];c(e)}setTimeout((()=>{u("")}),1200)})()},children:[!p&&(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",fill:"#000000",viewBox:"0 0 16 17",children:(0,Pi.jsx)("path",{d:"M1.5 6a.5.5 0 0 0 .5-.5V3a.5.5 0 0 1 .5-.5h2.75a.5.5 0 1 0 0-1H2.5A1.5 1.5 0 0 0 1 3v2.5a.5.5 0 0 0 .5.5Zm12-4.5h-2.75a.5.5 0 0 0 0 1h2.75a.5.5 0 0 1 .5.5v2.5a.5.5 0 0 0 1 0V3a1.5 1.5 0 0 0-1.5-1.5Zm1 9.5a.5.5 0 0 0-.5.5V14a.5.5 0 0 1-.5.5h-2.75a.5.5 0 0 0 0 1h2.75A1.5 1.5 0 0 0 15 14v-2.5a.5.5 0 0 0-.5-.5Zm-9.25 3.5H2.5A.5.5 0 0 1 2 14v-2.5a.5.5 0 0 0-1 0V14a1.5 1.5 0 0 0 1.5 1.5h2.75a.5.5 0 0 0 0-1ZM14.5 8h-13a.5.5 0 1 0 0 1h13a.5.5 0 0 0 0-1Z"})}),p||(0,Pn.__)("Scan Unused Widgets","tpebl")]}),g&&(0,Pi.jsx)("div",{className:"theplus-unused-widgets-numbers",children:g})]})]})]}),(0,Pi.jsx)("div",{className:"tpae-cat-strip-cov-main theplus-second-strip",children:(0,Pi.jsxs)("div",{className:"tpae-cate-btns-cover",children:[(0,Pi.jsx)("span",{className:"tp_essential_widgets"==d?"tpae-category-btn tpae-act-cat":"tpae-category-btn",onClick:()=>{ee("#tp_essential_widgets")},children:(0,Pn.__)("Essential","tpebl")}),(0,Pi.jsx)("span",{className:"tp_advanced_widgets"==d?"tpae-category-btn tpae-act-cat":"tpae-category-btn",onClick:()=>{ee("#tp_advanced_widgets")},children:(0,Pn.__)("Advanced","tpebl")}),(0,Pi.jsx)("span",{className:"tp_creative_widgets"==d?"tpae-category-btn tpae-act-cat":"tpae-category-btn",onClick:()=>{ee("#tp_creative_widgets")},children:(0,Pn.__)("Creative","tpebl")}),(0,Pi.jsx)("span",{className:"tp_listing_widgets"==d?"tpae-category-btn tpae-act-cat":"tpae-category-btn",onClick:()=>{ee("#tp_listing_widgets")},children:(0,Pn.__)("Listing","tpebl")}),(0,Pi.jsx)("span",{className:"tp_social_widgets"==d?"tpae-category-btn tpae-act-cat":"tpae-category-btn",onClick:()=>{ee("#tp_social_widgets")},children:(0,Pn.__)("Social","tpebl")}),(0,Pi.jsx)("span",{className:"tp_forms_widgets"==d?"tpae-category-btn tpae-act-cat":"tpae-category-btn",onClick:()=>{ee("#tp_forms_widgets")},children:(0,Pn.__)("Forms","tpebl")}),(0,Pi.jsx)("span",{className:"tp_wooCommerce"==d?"tpae-category-btn tpae-act-cat":"tpae-category-btn",onClick:()=>{ee("#tp_wooCommerce")},children:(0,Pn.__)("WooCommerce","tpebl")}),"on"!=e?.tpae_white_lable_data?.plugin_ads&&(0,Pi.jsx)("span",{className:"tp_wd_widgets"==d?"tpae-category-btn tpae-act-cat":"tpae-category-btn",onClick:()=>{ee("#tp_wd_widgets")},children:(0,Pn.__)("WDesignKit","tpebl")})]})})]}),(0,Pi.jsxs)(Pi.Fragment,{children:[M.length>0&&M.map(((t,o)=>{if(t)return(0,Pi.jsxs)("div",{className:"tpae-catwise-wid-manage-cov",children:[(0,Pi.jsx)("div",{className:"tpae-catwise-wid-mancover",children:(0,Pi.jsxs)("div",{className:"tpae-wid-h-infogrp",children:[(0,Pi.jsx)("h3",{className:"tpae-wid-cat-h",id:"tp_"+t.name,children:t.label}),(0,Pi.jsxs)("div",{className:"tpae-cat-qik-info",children:[(0,Pi.jsxs)("span",{className:"tpae-ttl-wid-num",children:[te(t.name)," ",(0,Pn.__)("Total Widgets","tpebl")," "]}),"•",(0,Pi.jsx)("span",{className:"tpae-active-widget-numbers",children:" "+(s=t.widgets,r=0,s?.length>0&&s.map((e=>{n?.check_elements?.includes(e.name)&&("pro"!=e.tag||J)&&r++}))," "+r)+(0,Pn.__)(" Active","tpebl")})]})]})}),(0,Pi.jsx)("div",{className:"tpae-wid-box-cover",children:t.widgets.map(((t,o)=>{return(0,Pi.jsxs)("div",{className:"tpae-part-wid-mng-box "+("pro"!=t?.tag||J?"":"tpae-widget-pro"),children:[(0,Pi.jsxs)("div",{className:"tpae-wid-in-left",children:[(0,Pi.jsx)("div",{className:"tpae-wid-sm-tag tpae-category-tag "+("DEPRECATED"==t?.tag?"tpae-deprecated-widget":""),children:t.tag}),(0,Pi.jsxs)("div",{className:"tpae-wid-name",children:[t.label,"0"==Y&&t.status&&(0,Pi.jsx)("a",{href:"https://roadmap.theplusaddons.com/updates",target:"_blank",rel:"noopener noreferrer",className:`tpae-wid-sm-tag tpae-wid-name-hint-text tp-tag-color-${t.status}`,children:t.status}),"1"==Y&&t.pro_status&&(0,Pi.jsx)("a",{href:"https://roadmap.theplusaddons.com/updates",target:"_blank",rel:"noopener noreferrer",className:`tpae-wid-sm-tag tpae-wid-name-hint-text tp-tag-color-${t.pro_status}`,children:t.pro_status})]}),!("on"==e.tpae_white_lable_data?.help_link)&&(0,Pi.jsxs)("div",{className:"tpae-abt-wid-qik-link-cov",children:[t.demoUrl&&(0,Pi.jsx)("a",{href:t.demoUrl+"?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings",target:"_blank",rel:"noopener noreferrer",className:"tpae-qik-link",children:(0,Pn.__)("Live Demo","tpebl")}),t.demoUrl&&t.docUrl&&(0,Pi.jsx)("span",{children:" | "}),t.docUrl&&(0,Pi.jsx)("a",{href:t.docUrl+"?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings",target:"_blank",rel:"noopener noreferrer",className:"tpae-qik-link",children:(0,Pn.__)("Read Docs","tpebl")})]})]}),(0,Pi.jsxs)("div",{className:"theplus-widget-inner-toggle",children:["yes"===t?.setting?.[0]?.show&&("features"===t?.setting?.[0]?.type||"setting"===t?.setting?.[0]?.type||"swicher"===t?.setting?.[0]?.type)&&(0,Pi.jsxs)(Pi.Fragment,{children:[("setting"===t?.setting?.[0]?.type&&J||"swicher"===t?.setting?.[0]?.type)&&(0,Pi.jsx)("button",{className:"tpae_ex_btn",onClick:()=>ne(t),children:(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none",viewBox:"0 0 15 15",children:(0,Pi.jsx)("path",{fill:"#4b465c80",d:"M13.006 9.758a.476.476 0 0 0-.172.203.512.512 0 0 0-.03.274c.01.09.06.172.12.243.183.183.315.365.396.578.09.213.131.426.131.649 0 .223-.05.446-.131.649a1.674 1.674 0 0 1-.912.912 1.688 1.688 0 0 1-1.842-.365.526.526 0 0 0-.273-.162.414.414 0 0 0-.273.03.449.449 0 0 0-.213.172.444.444 0 0 0-.081.254c0 .537-.172.963-.496 1.287a1.684 1.684 0 0 1-2.389 0 1.706 1.706 0 0 1-.496-1.196.6.6 0 0 0-.091-.304.509.509 0 0 0-.223-.162c-.121-.04-.213-.061-.304-.04a.463.463 0 0 0-.243.12 1.837 1.837 0 0 1-.577.396 1.689 1.689 0 0 1-2.206-.912 1.583 1.583 0 0 1-.132-.649c0-.223.05-.446.132-.649a1.62 1.62 0 0 1 .364-.547.527.527 0 0 0 .162-.274.43.43 0 0 0-.03-.274.449.449 0 0 0-.172-.212.443.443 0 0 0-.254-.082c-.546 0-.981-.182-1.295-.496a1.688 1.688 0 0 1 0-2.393c.314-.314.749-.497 1.194-.497.142 0 .233-.03.304-.08a.462.462 0 0 0 .172-.224.554.554 0 0 0 .04-.304.464.464 0 0 0-.12-.243 1.84 1.84 0 0 1-.396-.578 1.617 1.617 0 0 1-.131-.649c0-.223.05-.446.131-.649a1.669 1.669 0 0 1 .911-.912 1.688 1.688 0 0 1 1.843.365.527.527 0 0 0 .273.162c.091.02.192.01.273-.03l.023-.009a.255.255 0 0 1 .089-.022.473.473 0 0 0 .141-.142.444.444 0 0 0 .081-.253c0-.547.183-.973.496-1.287.638-.64 1.762-.64 2.39 0 .323.324.495.75.495 1.196 0 .142.03.223.081.304.051.081.122.132.203.172a.51.51 0 0 0 .273.03.463.463 0 0 0 .243-.121 1.688 1.688 0 0 1 2.784.517c.091.213.132.426.132.649 0 .223-.051.446-.132.649a1.62 1.62 0 0 1-.364.547.577.577 0 0 0-.152.274.422.422 0 0 0 .03.274c.02.04.04.08.04.121.041.061.082.102.142.142.071.05.162.081.253.081.547 0 .972.173 1.286.497.324.324.496.74.496 1.196 0 .456-.172.882-.496 1.196a1.66 1.66 0 0 1-1.194.497.539.539 0 0 0-.304.081Zm-1.094-.203c.112-.263.294-.486.537-.648l.01-.01c.243-.153.516-.244.81-.244.243 0 .405-.06.537-.192a.644.644 0 0 0 .202-.477.703.703 0 0 0-.202-.476.642.642 0 0 0-.476-.203h-.101c-.284 0-.567-.081-.81-.243a1.424 1.424 0 0 1-.547-.65.331.331 0 0 1-.04-.141 1.494 1.494 0 0 1-.061-.76c.05-.294.182-.558.395-.77a.824.824 0 0 0 .182-.264.812.812 0 0 0 .05-.264.764.764 0 0 0-.05-.264.563.563 0 0 0-.142-.223.626.626 0 0 0-.223-.152.653.653 0 0 0-.516 0 .561.561 0 0 0-.223.142c-.253.244-.516.385-.81.436a1.484 1.484 0 0 1-1.508-.649 1.523 1.523 0 0 1-.243-.81c0-.244-.07-.406-.202-.538a.69.69 0 0 0-.952 0 .644.644 0 0 0-.202.477v.1c0 .285-.081.569-.243.812a1.422 1.422 0 0 1-.67.556c-.04.017-.076.032-.12.032a1.488 1.488 0 0 1-.759.06 1.41 1.41 0 0 1-.77-.395.822.822 0 0 0-.262-.182.653.653 0 0 0-.517 0 .582.582 0 0 0-.222.152.755.755 0 0 0-.142.223.81.81 0 0 0-.05.264c0 .09.02.182.05.263.03.081.08.162.142.223.242.254.384.517.435.811.05.294.02.588-.101.862a1.46 1.46 0 0 1-.517.659 1.452 1.452 0 0 1-.83.274.766.766 0 0 0-.546.202.66.66 0 0 0-.203.477c0 .172.081.344.203.476a.658.658 0 0 0 .475.203h.102a1.477 1.477 0 0 1 1.356.892c.122.274.152.568.101.862-.05.294-.182.557-.394.77a.823.823 0 0 0-.183.264.81.81 0 0 0-.05.263c0 .092.02.173.05.254.04.091.081.162.152.223.071.06.142.111.223.142a.652.652 0 0 0 .516 0 .562.562 0 0 0 .223-.142c.253-.243.516-.385.81-.436.08-.02.172-.02.263-.02.202 0 .405.04.597.121.243.091.486.274.658.517.172.244.273.538.273.832 0 .233.081.415.203.537.243.253.698.253.951 0a.66.66 0 0 0 .203-.477v-.101c0-.284.08-.568.243-.811.152-.243.385-.436.648-.547.273-.122.567-.152.86-.102.294.05.557.183.77.396a.705.705 0 0 0 .253.182.652.652 0 0 0 .516 0 .469.469 0 0 0 .223-.142.708.708 0 0 0 .192-.476.764.764 0 0 0-.05-.264.604.604 0 0 0-.143-.213c-.242-.253-.384-.517-.435-.81a1.48 1.48 0 0 1 .101-.863Zm-6.185-1.56a2.283 2.283 0 0 1 2.278-2.28 2.283 2.283 0 0 1 2.278 2.28 2.283 2.283 0 0 1-2.278 2.282 2.283 2.283 0 0 1-2.278-2.281Zm1.013 0c0 .7.567 1.268 1.265 1.268a1.267 1.267 0 0 0 0-2.535c-.698 0-1.265.568-1.265 1.268Z"})})}),"features"===t?.setting?.[0]?.type&&(0,Pi.jsx)("button",{className:"tpae_ex_btn",onClick:()=>ne(t),children:(0,Pi.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",children:[(0,Pi.jsx)("rect",{x:"0.5",y:"1.0517",width:"23",height:"23",rx:"11.5",fill:"white"}),(0,Pi.jsx)("rect",{x:"0.5",y:"1.0517",width:"23",height:"23",rx:"11.5",stroke:"#727272"}),(0,Pi.jsx)("path",{d:"M12 10.0833C11.6791 10.0833 11.4046 9.96914 11.1763 9.74086C10.948 9.51258 10.8337 9.23783 10.8333 8.91661C10.8329 8.59539 10.9473 8.32083 11.1763 8.09294C11.4054 7.86505 11.6799 7.75072 12 7.74994C12.32 7.74917 12.5948 7.8635 12.8242 8.09294C13.0537 8.32239 13.1678 8.59694 13.1666 8.91661C13.1655 9.23628 13.0513 9.51103 12.8242 9.74086C12.5971 9.97069 12.3224 10.0848 12 10.0833ZM12 18.2499C11.7569 18.2499 11.5504 18.165 11.3805 17.995C11.2105 17.8251 11.1254 17.6184 11.125 17.3749V12.1249C11.125 11.8819 11.2101 11.6754 11.3805 11.5054C11.5508 11.3355 11.7573 11.2503 12 11.2499C12.2426 11.2496 12.4493 11.3347 12.6201 11.5054C12.7908 11.6762 12.8758 11.8827 12.875 12.1249V17.3749C12.875 17.618 12.79 17.8247 12.6201 17.995C12.4501 18.1654 12.2434 18.2503 12 18.2499Z",fill:"#727272"})]})})]}),(0,Pi.jsxs)("label",{className:"tpae-wid-tgl-btn-cover",children:[(0,Pi.jsx)("input",{className:"tpae-toggle-btn",type:"checkbox",onChange:e=>{(async(e,t)=>{let o=n?.[t]?n?.[t]:[];var s=o.findIndex((t=>t===e));-1==s?o.push(e):o.splice(s,1);let r=Object.assign({},n,{[t]:o});i(r);let a=new FormData;a.append("action","tpae_dashboard_ajax_call"),a.append("nonce",q),a.append("type","tpae_set_widget_list"),a.append("widget_data",JSON.stringify(r)),(await In.post(Z,a)).data})(t.name,"check_elements")},checked:X(t.name,"check_elements",t),disabled:(s=t,!J&&"pro"==s.tag)}),(0,Pi.jsx)("span",{className:"tpae-toggle-slider",onClick:e=>{!J&&"pro"==t.tag&&(e=>{let t=Object.assign({},f,{[e]:!0});_(t)})("widgets")},children:!J&&"pro"==t.tag&&(0,Pi.jsx)("img",{className:"theplus-toggle-lock-icon",src:K+"assets/svg/theplus_lock_icon.svg"})})]})]}),l&&(0,Pi.jsx)(Pi.Fragment,{children:l.includes(t.name)?(0,Pi.jsx)("div",{className:"theplus_widget_used_top_tip",children:(0,Pn.__)("Used","tpebl")}):(0,Pi.jsx)("div",{className:"theplus_widget_used_top_tip",children:(0,Pn.__)("Unused","tpebl")})})]},o);var s}))})]},o);var s,r;Object.values(Fn.widgetList).length})),F&&(0,Pi.jsx)(Pi.Fragment,{children:(0,Pi.jsx)("div",{className:"tpae_features_overlay",onClick:()=>{D(!1)},children:(0,Pi.jsxs)("div",{className:`tpae_select_features_popup ${z.widget_name} ${"setting"===z.type?"tpae_select_features_setting_popup":""}`,onClick:e=>e.stopPropagation(),children:[(0,Pi.jsx)("svg",{className:"tpae_close_icon",onClick:()=>{D(!1)},width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Pi.jsx)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})}),(0,Pi.jsxs)("div",{className:"tpae_popup_heading",children:[(0,Pi.jsx)("h3",{className:"tpae_popup_h",children:`${z.name} Features`}),(0,Pi.jsx)("p",{className:"tpae_popup_p",children:z.discription})]}),(0,Pi.jsx)(Pi.Fragment,{children:"setting"===z.type?(0,Pi.jsx)(Qi,{setisPopupVisible:D}):"swicher"===z.type?(0,Pi.jsx)(eo,{moreOptionsData:z,WidgetsOptionsKey:U,tpWidget_Setting:W,free_pro:J,plugin_url:K}):(0,Pi.jsx)("div",{className:"tpae_field_card_bottom",children:(0,Pi.jsx)("div",{className:"tpae_checkbox_more_options",children:z.options?.map(((e,t)=>(0,Pi.jsxs)("label",{className:"tpae-checkbox-option",htmlFor:"",children:[(0,Pi.jsxs)("div",{className:"tpae-card-main",children:[(0,Pi.jsx)("div",{className:"tpae-more-options-svg",children:(0,Pi.jsx)("svg",{id:"GUIDE_TO_DELETE",enableBackground:"new 0 0 128 128",height:"512",viewBox:"0 0 128 128",width:"512",xmlns:"http://www.w3.org/2000/svg",children:(0,Pi.jsxs)("g",{children:[(0,Pi.jsx)("path",{d:"m124 64c0 5.12-6.29 9.34-7.55 14.06-1.3 4.88 1.99 11.68-.48 15.95-2.51 4.34-10.06 4.86-13.58 8.38s-4.04 11.07-8.38 13.58c-4.27 2.47-11.07-.82-15.95.48-4.72 1.26-8.94 7.55-14.06 7.55s-9.34-6.29-14.06-7.55c-4.88-1.3-11.68 1.99-15.95-.48-4.34-2.51-4.86-10.06-8.38-13.58s-11.07-4.04-13.58-8.38c-2.47-4.27.82-11.07-.48-15.95-1.26-4.72-7.55-8.94-7.55-14.06s6.29-9.34 7.55-14.06c1.3-4.88-1.99-11.68.48-15.95 2.51-4.34 10.06-4.86 13.58-8.38s4.04-11.07 8.38-13.58c4.27-2.47 11.07.82 15.95-.48 4.72-1.26 8.94-7.55 14.06-7.55s9.34 6.29 14.06 7.55c4.88 1.3 11.68-1.99 15.95.48 4.34 2.51 4.86 10.06 8.38 13.58s11.07 4.04 13.58 8.38c2.47 4.27-.82 11.07.48 15.95 1.26 4.72 7.55 8.94 7.55 14.06z",fill:"#6f14f1"}),(0,Pi.jsx)("path",{d:"m81.34 46.12-22.84 22.84-11.84-11.83c-2.57-2.57-6.74-2.57-9.31 0-2.57 2.57-2.57 6.74 0 9.31l16.61 16.61c2.5 2.5 6.56 2.5 9.06 0l27.62-27.62c2.57-2.57 2.57-6.74 0-9.31-2.57-2.57-6.73-2.57-9.3 0z",fill:"#fffcee"})]})})}),(0,Pi.jsx)("div",{className:"tpae-options-text",children:e.name})]}),(0,Pi.jsx)("a",{href:e.url+"?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings",className:"tpae-checkbox-url",target:"_blank",children:(0,Pi.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,Pi.jsx)("path",{d:"M12 8.66667V12.6667C12 13.0203 11.8595 13.3594 11.6095 13.6095C11.3594 13.8595 11.0203 14 10.6667 14H3.33333C2.97971 14 2.64057 13.8595 2.39052 13.6095C2.14048 13.3594 2 13.0203 2 12.6667V5.33333C2 4.97971 2.14048 4.64057 2.39052 4.39052C2.64057 4.14048 2.97971 4 3.33333 4H7.33333",stroke:"#727272",strokeWidth:"1.33333",strokeLinejoin:"round","stroke-linejoin":"round"}),(0,Pi.jsx)("path",{d:"M10 2H14V6",stroke:"#727272",strokeWidth:"1.33333",strokeLinejoin:"round","stroke-linejoin":"round"}),(0,Pi.jsx)("path",{d:"M6.66675 9.33333L14.0001 2",stroke:"#727272",strokeWidth:"1.33333",strokeLinejoin:"round","stroke-linejoin":"round"})]})})]},t)))})})})]})})}),T.length>0&&(0,Pi.jsxs)("div",{className:"tpae-catwise-wid-manage-cov tpae-wdkit-widgets",children:[(0,Pi.jsx)("div",{className:"tpae-catwise-wid-mancover",children:(0,Pi.jsxs)("div",{className:"tpae-wid-h-infogrp",children:[(0,Pi.jsx)("h3",{className:"tpae-wid-cat-h",id:"tp_wd_widgets",children:(0,Pn.__)("WDesignKit Widgets","tpebl")}),(0,Pi.jsx)("div",{className:"tpae-cat-qik-info",children:(0,Pi.jsxs)("span",{className:"tpae-ttl-wid-num",children:[e.wdkit_widgets_list?.length>0?e.wdkit_widgets_list?.length:0," ",(0,Pn.__)("Total Widgets","tpebl")," "]})})]})}),(0,Pi.jsxs)("div",{className:"tpae-wid-box-cover",children:[T.map(((t,n)=>(0,Pi.jsxs)("div",{className:"tpae-part-wid-mng-box "+("pro"!=t?.tag||J?"":"tpae-widget-pro"),children:[(0,Pi.jsxs)("div",{className:"tpae-wid-in-left",children:[(0,Pi.jsx)("div",{className:"tpae-wd-tag",children:t.free_pro}),(0,Pi.jsx)("div",{className:"tpae-wid-name",children:t.title}),!("on"==e.tpae_white_lable_data?.help_link)&&(0,Pi.jsx)("div",{className:"tpae-abt-wid-qik-link-cov",children:t.live_demo&&(0,Pi.jsx)("a",{href:t.live_demo+"?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings",target:"_blank",rel:"noopener noreferrer",className:"wdkit-qik-link",children:(0,Pn.__)("Live Demo")})})]}),(0,Pi.jsx)("div",{className:"theplus-widget-inner-toggle",children:(0,Pi.jsx)("label",{className:"tpae-wid-tgl-btn-cover",children:v?(0,Pi.jsx)("div",{className:"theplus-widget-inner-toggle",children:t.w_type?(0,Pi.jsxs)(Pi.Fragment,{children:[(0,Pi.jsx)("input",{className:"tpae-toggle-btn",onChange:n=>{((t,n,i)=>{if(t)var o="Publish";else o="Darft";let s=new FormData;s.append("action","tpae_dashboard_ajax_call"),s.append("nonce",q),s.append("type","tpae_update_wdk_widget"),s.append("p_type",o),s.append("w_unique",n),s.append("w_name",i),In.post(Z,s);var r=T||[];let a=r.findIndex((e=>e.w_unique==n));if(a>-1){let t=Object.assign({},r[a],{w_type:o});r.splice(a,1,t),O(r),e.set_wdkit_widgets(r)}})(n.target.checked,t.w_unique,t.title)},type:"checkbox",checked:"Publish"===t.w_type}),(0,Pi.jsx)("span",{className:"tpae-toggle-slider wdk-widget-switcher"})]}):(0,Pi.jsx)("div",{className:"wkit-download-template",onClick:()=>{S("download"),C(t.id),$(!0)},children:(0,Pi.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",children:[(0,Pi.jsx)("path",{d:"M6.79116 0.0356951C6.73488 0.0567989 6.64344 0.117764 6.58951 0.171695C6.40192 0.359281 6.41364 0.117764 6.41364 3.55762V6.61995L5.93999 6.1463C5.43351 5.64216 5.34441 5.57885 5.14979 5.57651C4.97862 5.57651 4.86372 5.62575 4.73241 5.75237C4.53779 5.9423 4.49558 6.16271 4.60814 6.40892C4.63627 6.47223 4.92 6.77236 5.50151 7.35154C6.26592 8.11126 6.37144 8.20739 6.50744 8.2707C6.8193 8.41608 7.16164 8.41843 7.48054 8.28008C7.60481 8.22381 7.71736 8.12298 8.48646 7.36091C9.11956 6.7325 9.36342 6.47457 9.39625 6.39954C9.45487 6.27292 9.45722 6.06657 9.40329 5.93995C9.31887 5.73361 9.08205 5.57651 8.86398 5.57651C8.65295 5.57885 8.57322 5.63513 8.06205 6.1463L7.58605 6.61995V3.55762C7.58605 0.117764 7.59778 0.359281 7.41019 0.171695C7.2484 0.00755787 7.01392 -0.0416832 6.79116 0.0356951Z",fill:"#19191B"}),(0,Pi.jsx)("path",{d:"M1.37381 5.45235C1.22843 5.50394 1.08305 5.65635 1.03147 5.81111C0.996296 5.91897 0.991606 5.98463 1.00568 6.266C1.05726 7.38214 1.3996 8.42558 2.00926 9.33302C2.46181 10.0107 3.15118 10.6743 3.83353 11.0987C5.46083 12.1069 7.44924 12.2781 9.24302 11.5676C10.0074 11.2652 10.6827 10.8056 11.3018 10.1701C12.3405 9.10323 12.9267 7.75027 12.9947 6.26131C13.0111 5.86738 12.9807 5.74311 12.8259 5.58835C12.5961 5.35856 12.235 5.35856 12.0052 5.58835C11.8763 5.71732 11.8364 5.84628 11.82 6.20973C11.8012 6.5849 11.7543 6.90145 11.6629 7.24145C11.2103 8.93909 9.84564 10.2756 8.14096 10.6883C5.57104 11.312 2.98001 9.75275 2.32112 7.18517C2.23905 6.86159 2.16871 6.35745 2.16871 6.07842C2.16871 5.86035 2.11477 5.71028 1.99284 5.58835C1.83105 5.42421 1.59657 5.37497 1.37381 5.45235Z",fill:"#19191B"})]})})}):(0,Pi.jsx)("div",{className:"wkit-download-template",onClick:()=>{S("install"),C(t.id)},children:(0,Pi.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",children:[(0,Pi.jsx)("path",{d:"M6.79116 0.0356951C6.73488 0.0567989 6.64344 0.117764 6.58951 0.171695C6.40192 0.359281 6.41364 0.117764 6.41364 3.55762V6.61995L5.93999 6.1463C5.43351 5.64216 5.34441 5.57885 5.14979 5.57651C4.97862 5.57651 4.86372 5.62575 4.73241 5.75237C4.53779 5.9423 4.49558 6.16271 4.60814 6.40892C4.63627 6.47223 4.92 6.77236 5.50151 7.35154C6.26592 8.11126 6.37144 8.20739 6.50744 8.2707C6.8193 8.41608 7.16164 8.41843 7.48054 8.28008C7.60481 8.22381 7.71736 8.12298 8.48646 7.36091C9.11956 6.7325 9.36342 6.47457 9.39625 6.39954C9.45487 6.27292 9.45722 6.06657 9.40329 5.93995C9.31887 5.73361 9.08205 5.57651 8.86398 5.57651C8.65295 5.57885 8.57322 5.63513 8.06205 6.1463L7.58605 6.61995V3.55762C7.58605 0.117764 7.59778 0.359281 7.41019 0.171695C7.2484 0.00755787 7.01392 -0.0416832 6.79116 0.0356951Z",fill:"#19191B"}),(0,Pi.jsx)("path",{d:"M1.37381 5.45235C1.22843 5.50394 1.08305 5.65635 1.03147 5.81111C0.996296 5.91897 0.991606 5.98463 1.00568 6.266C1.05726 7.38214 1.3996 8.42558 2.00926 9.33302C2.46181 10.0107 3.15118 10.6743 3.83353 11.0987C5.46083 12.1069 7.44924 12.2781 9.24302 11.5676C10.0074 11.2652 10.6827 10.8056 11.3018 10.1701C12.3405 9.10323 12.9267 7.75027 12.9947 6.26131C13.0111 5.86738 12.9807 5.74311 12.8259 5.58835C12.5961 5.35856 12.235 5.35856 12.0052 5.58835C11.8763 5.71732 11.8364 5.84628 11.82 6.20973C11.8012 6.5849 11.7543 6.90145 11.6629 7.24145C11.2103 8.93909 9.84564 10.2756 8.14096 10.6883C5.57104 11.312 2.98001 9.75275 2.32112 7.18517C2.23905 6.86159 2.16871 6.35745 2.16871 6.07842C2.16871 5.86035 2.11477 5.71028 1.99284 5.58835C1.83105 5.42421 1.59657 5.37497 1.37381 5.45235Z",fill:"#19191B"})]})})})})]},n))),k&&(0,Pi.jsx)("div",{className:"tpae-wdkit-popup",onClick:()=>(t=>{if(t||E){var n=T||[];let t=n.findIndex((e=>e.id==x));if(t>-1){let i=Object.assign({},n[t],{w_type:"Publish"});n.splice(t,1,i),O(n),e.set_wdkit_widgets(n)}}S(!1),L(!1)})(),children:(0,Pi.jsx)("div",{className:"tpae-content-bg",onClick:e=>e.stopPropagation(),children:(0,Pi.jsxs)("div",{className:"tpae-popup-wdk-body",children:[j&&"download"==k&&(0,Pi.jsx)("div",{className:"theplus-wkit-loader",children:(0,Pi.jsx)("div",{className:"theplus-wkit-loader-outer",children:(0,Pi.jsx)("div",{className:"theplus-wkit-loader-inner"})})}),"install"==k&&(ie=(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",fill:"none",children:(0,Pi.jsx)("path",{fill:"#020202",d:"M5.5 0a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm1.767 3.47L4.875 5.868 3.712 4.705a.417.417 0 0 0-.59.59L4.58 6.753a.417.417 0 0 0 .59 0l2.687-2.695a.417.417 0 0 0-.59-.588Z"})}),(0,Pi.jsxs)("div",{className:"tpae-popup-content",children:[(0,Pi.jsxs)("div",{className:"tpae-popup-title",children:[(0,Pn.__)("Get Access to 50+ More Unique Elementor","tpebl"),(0,Pi.jsx)("br",{}),(0,Pn.__)("Widgets from WDesignKit","tpebl")]}),(0,Pi.jsxs)("div",{className:"tpae-features-dic",children:[(0,Pi.jsxs)("ul",{children:[(0,Pi.jsxs)("li",{children:[ie,(0,Pn.__)("Get Access to 1000+ Elementor Templates","tpebl")]}),(0,Pi.jsxs)("li",{children:[ie,(0,Pn.__)("50+ Unique Elementor Widgets","tpebl")]})]}),(0,Pi.jsxs)("ul",{children:[(0,Pi.jsxs)("li",{children:[ie,(0,Pn.__)("Custom Elementor Widget Builder","tpebl")]}),(0,Pi.jsxs)("li",{children:[ie,(0,Pn.__)("100% Customizable Widgets","tpebl")]})]})]}),(0,Pi.jsxs)("div",{className:"tpae-install-activate",children:[(0,Pi.jsx)("a",{className:"tpae-install-btn",onClick:e=>(async()=>{w("Installing WDesignKit");let e=new FormData;e.append("action","tpae_dashboard_ajax_call"),e.append("nonce",q),e.append("type","tpae_plugin_install"),e.append("slug","wdesignkit/wdesignkit.php"),e.append("name","wdesignkit"),(await In.post(Z,e)).data.success?(w("Installed WDesignKit"),y(!0),$(!0),S("download")):w("Installation Failed")})(),children:b}),(0,Pi.jsx)("a",{className:"tpae-learn-more",href:"https://wdesignkit.com/",target:"_blank",rel:"noopener noreferrer",children:"Learn More"})]}),(0,Pi.jsx)("div",{className:"tpae-popup-accordion",children:G.map(((e,t)=>(0,Pi.jsxs)("div",{className:"tpae-accordion-item",children:[(0,Pi.jsxs)("div",{className:"tpae-accordio-content "+(A===t?"tpae-content-opan":""),onClick:()=>(e=>{N(A===e?null:e)})(t),children:[(0,Pi.jsx)("div",{className:"tpae-accd-qui",children:e.question}),(0,Pi.jsx)("div",{className:"tpae-accd-ans-svg",children:(0,Pi.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A!==t&&(0,Pi.jsx)("path",{d:"M10 4.16675V15.8334",stroke:"#020202",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Pi.jsx)("path",{d:"M4.16797 10H15.8346",stroke:"#020202",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]})})]}),(0,Pi.jsx)("div",{className:"tpae-accd-ans "+(A===t?"opan-accordion":""),children:e.answer})]},t)))})]})),"download"==k&&(()=>{let e=window?.location?.pathname?window.location.pathname:"",t=window.location.origin+e+`?page=wdesign-kit#/theplus_popup?id=${x}`;return(0,Pi.jsxs)("div",{className:"tpae-popup-ifram-content",children:[(0,Pi.jsx)("iframe",{id:"wdk-ifram-content",src:t}),(()=>{if(j){const e=e=>{e.data&&"openPopup"===e.data&&$(!1)};window.addEventListener("message",e)}})()]})})()]})})})]})]})]}),I&&Di()]}),f.widgets&&(0,Pi.jsx)(Xi,{heading:(0,Pn.__)("Upgrade to The Plus Addons for Elementor Pro to Unlock All Widgets & All Pre-Made Templates","tpebl"),parent_class:"tpae-pro-required",inner_class:"theplus_whitlabel_popup tpae-pro-required-inner",setShowPopup:_,close_svg:(0,Pi.jsxs)("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:()=>{_({plus_extra:!1,widgets:!1})},children:[(0,Pi.jsx)("path",{d:"M18.75 6.25L6.25 18.75",stroke:"white",strokeWidth:"0.75",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Pi.jsx)("path",{d:"M6.25 6.25L18.75 18.75",stroke:"white",strokeWidth:"0.75",strokeLinecap:"round",strokeLinejoin:"round"})]})})]});var ie})),{Fragment:no}=wp.element,io=Oi((e=>({plugin_check:e.check_plugin.plugin_status_rx,tpae_white_lable_data:e.White_label.white_lable_rx})))((e=>{tpae_db_object.tpae_url;var n=tpae_db_object.nonce,i=tpae_db_object.ajax_url,o=tpae_db_object.tpae_wdkit_url+"api/front/getfilterbrowsetemplates",s=tpae_db_object?.tpae_url+"assets/images/tpae-dummy-bg.png",r=e.plugin_check[0];const a="1"==tpae_db_object?.tpae_pro;var l={ParPage:9,CurrentPage:1,builder_req:1001,temp_type_req:"websitekit",freepro_req:"all"};const c="1001",d=a?[1005,1006]:[1005],h=a?"":"free",p=Z(),[u,g]=(0,t.useState)([]),[m,f]=(0,t.useState)(!0);(0,t.useEffect)((()=>{b()}),[]),(0,t.useEffect)((()=>{e?.tpae_white_lable_data?.template_tab&&"on"==e?.tpae_white_lable_data?.template_tab&&p("/")}),[e?.tpae_white_lable_data?.template_tab]);const _=()=>(0,Pi.jsxs)("div",{className:"tpae-ele-temp-box theplus-skeleton",children:[(0,Pi.jsx)("div",{className:"tpae-ele-temp-cov-img-box"}),(0,Pi.jsxs)("div",{className:"tpae-ele-temp-detail",children:[(0,Pi.jsx)("h4",{className:"theplus-elementor-template-title tpae-in-sec-heading",children:(0,Pn.__)("Name Of the Template","tpebl")}),(0,Pi.jsx)("p",{target:"_blank",className:"tpae-ghost-btn",children:(0,Pn.__)("Live Preview","tpebl")})]})]}),b=async()=>{let e=new FormData;e.append("action","tpae_dashboard_ajax_call"),e.append("nonce",n),e.append("type","tpae_api_call"),e.append("method","POST"),e.append("api_url",o),e.append("url_body",JSON.stringify(l));var t=(await In.post(i,e)).data;200===t.HTTP_CODE&&t.posts&&(g(t.posts),setTimeout((()=>{f(!1)}),800))},[w,v]=(0,t.useState)((0,Pn.__)("Enable Templates","tpebl")),[y,x]=(0,t.useState)(!1),[C,k]=(0,t.useState)(!1),S=Array.from({length:9});return(0,Pi.jsxs)("div",{className:"tpae-ele-temp-inn-main tpae-main-container "+(u?.length>0?"":"theplus-skeleton"),children:[(0,Pi.jsxs)("div",{className:"tpae-section-heading-cover",children:[(0,Pi.jsx)("h3",{className:"tpae-section-heading",children:(0,Pn.__)("Elementor Templates","tpebl")}),(0,Pi.jsx)("div",{className:"tp-common-btn",children:"active"===r.status||y?(0,Pi.jsx)("a",{href:`?page=wdesign-kit#/browse?${new URLSearchParams({builder:c,plugin:JSON.stringify(d),free_pro:h}).toString()}`,className:"tpae-purple-common-btn",target:"_blank",rel:"noopener noreferrer",children:(0,Pn.__)("Open Templates","tpebl")}):(0,Pi.jsx)("a",{className:"tpae-purple-common-btn",onClick:e=>(async()=>{v((0,Pn.__)("Installing WDesignKit","tpebl")),k(!0);let e=new FormData;e.append("action","tpae_dashboard_ajax_call"),e.append("nonce",n),e.append("type","tpae_plugin_install"),e.append("slug","wdesignkit/wdesignkit.php"),e.append("name","wdesignkit"),(await In.post(i,e)).data.success?(v("Installed WDesignKit"),x(!0),k(!0)):(v("Installation Failed"),k(!1))})(),children:w})})]}),(0,Pi.jsxs)("div",{className:"tpae-element-temp-bx-cov-main",children:[(0,Pi.jsx)("h3",{className:"tpae-in-sec-heading",children:(0,Pn.__)("Import Pre-Designed Website Templates Made With Plus Widgets.","tpebl")}),(0,Pi.jsxs)("div",{className:"tpae-ele-temp-grid-vbox",children:[m&&S.map(((e,t)=>(0,Pi.jsx)(_,{},t))),u?.length>0&&u.map(((e,t)=>(0,Pi.jsxs)("div",{className:"tpae-ele-temp-box",children:[(0,Pi.jsxs)("div",{className:"tpae-ele-temp-cov-img-box",children:[(0,Pi.jsx)("img",{className:"theplus-elementor-template-img",src:s,draggable:!1}),(0,Pi.jsx)("img",{className:"theplus-elementor-template-img",src:e.responsive_image[1].url,draggable:!1,style:{position:"absolute"}})]}),(0,Pi.jsxs)("div",{className:"tpae-ele-temp-detail",children:[(0,Pi.jsx)("h4",{className:"theplus-elementor-template-title tpae-in-sec-heading",children:e.title}),"active"===r?.status||y?(0,Pi.jsx)("a",{onClick:t=>((e,t)=>{const n=`${window.location.origin+window.location.pathname}?page=wdesign-kit#/browse?${new URLSearchParams({search:e,free_pro:t,builder:c,page_type:'["websitekit"]'}).toString()}`;window.location.href=n})(e.title,e.free_pro),className:"tpae-ghost-btn",children:(0,Pn.__)("Download Now","tpebl")}):(0,Pi.jsx)("a",{href:e.post_url+"?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings",target:"_blank",className:"tpae-ghost-btn",children:(0,Pn.__)("Live Preview","tpebl")}),(0,Pi.jsx)("span",{className:"tpae-float-box-title",children:e.title})]})]},t)))]}),(0,Pi.jsx)("div",{className:"tp-btn-wrap",children:"active"===r.status||y?(0,Pi.jsx)("a",{href:"?page=wdesign-kit#/browse",target:"_blank",rel:"noopener noreferrer",className:"tp-common-btn",children:(0,Pn.__)("Open Templates","tpebl")}):(0,Pi.jsx)("a",{href:"https://wdesignkit.com/templates?builder=1001",target:"_blank",rel:"noopener noreferrer",className:"tp-common-btn",children:(0,Pn.__)("View More Website Templates","tpebl")})})]})]})})),oo=Oi((e=>({tpae_dashboard_data:e.Dashboard_data.db_rx})))((e=>{const n=Z(),i=K();var o=tpae_db_object.tpae_url,s=tpae_db_object.tpae_pro;return(0,t.useEffect)((()=>{"1"==s&&n("/activate_pro")}),[i.pathname]),(0,Pi.jsxs)("div",{className:"theplus_upgrade_now_inner_main tpae-main-container",children:[(0,Pi.jsxs)("div",{className:"tpae-section-heading-cover",children:[(0,Pi.jsx)("h3",{className:"tpae-section-heading",children:(0,Pn.__)("Upgrade Now","tpebl")}),(0,Pi.jsx)("div",{className:"tpae_head_tgl_btn_grp",children:(0,Pi.jsx)("a",{href:"https://theplusaddons.com/pricing",target:"_blank",rel:"noopener noreferrer",className:"tpae-purple-common-btn",children:(0,Pn.__)("Upgrade Now","tpebl")})})]}),(0,Pi.jsx)("div",{className:"theplus_upgrade_now_table_main",children:(0,Pi.jsx)("div",{className:"theplus_features_table_cover",children:(0,Pi.jsxs)("table",{className:"theplus_features_table_main",children:[(0,Pi.jsxs)("tr",{className:"theplus_feature_heading_strip",children:[(0,Pi.jsx)("th",{className:"theplus_feature_heading",children:(0,Pn.__)("Feature","tpebl")}),(0,Pi.jsx)("th",{className:"theplus_feature_heading theplus_free_column",children:(0,Pn.__)("Free","tpebl")}),(0,Pi.jsx)("th",{className:"theplus_feature_heading theplus_pro_column",children:(0,Pn.__)("Pro","tpebl")})]}),(0,Pi.jsxs)("tr",{className:"theplus_feature_details_strip",children:[(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail",children:(0,Pn.__)("Total Widgets","tpebl")}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_free_feature",children:(0,Pn.__)("35+","tpebl")}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_pro_feature",children:(0,Pn.__)("120+","tpebl")})]}),(0,Pi.jsxs)("tr",{className:"theplus_feature_details_strip",children:[(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail",children:(0,Pn.__)("Total Extensions","tpebl")}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_free_feature",children:(0,Pn.__)("5","tpebl")}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_pro_feature",children:(0,Pn.__)("8","tpebl")})]}),(0,Pi.jsxs)("tr",{className:"theplus_feature_details_strip",children:[(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail",children:(0,Pn.__)("1000+ Elementor Templates & Sections ","tpebl")}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_free_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_red_cross.svg"})}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_pro_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_white_check.svg"})})]}),(0,Pi.jsxs)("tr",{className:"theplus_feature_details_strip",children:[(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail",children:(0,Pn.__)("Blog Builder","tpebl")}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_free_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_green_check.svg"})}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_pro_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_white_check.svg"})})]}),(0,Pi.jsxs)("tr",{className:"theplus_feature_details_strip",children:[(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail",children:(0,Pn.__)("Equal Height","tpebl")}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_free_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_green_check.svg"})}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_pro_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_white_check.svg"})})]}),(0,Pi.jsxs)("tr",{className:"theplus_feature_details_strip",children:[(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail",children:(0,Pn.__)("Form Styler","tpebl")}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_free_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_green_check.svg"})}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_pro_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_white_check.svg"})})]}),(0,Pi.jsxs)("tr",{className:"theplus_feature_details_strip",children:[(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail",children:(0,Pn.__)("Dark Mode","tpebl")}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_free_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_green_check.svg"})}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_pro_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_white_check.svg"})})]}),(0,Pi.jsxs)("tr",{className:"theplus_feature_details_strip",children:[(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail",children:(0,Pn.__)("Horizontal & Vertical Mega Menu","tpebl")}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_free_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_red_cross.svg"})}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_pro_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_white_check.svg"})})]}),(0,Pi.jsxs)("tr",{className:"theplus_feature_details_strip",children:[(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail",children:(0,Pn.__)("Ajax Search & Filters","tpebl")}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_free_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_red_cross.svg"})}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_pro_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_white_check.svg"})})]}),(0,Pi.jsxs)("tr",{className:"theplus_feature_details_strip",children:[(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail",children:(0,Pn.__)("WooCommerce Builder","tpebl")}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_free_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_red_cross.svg"})}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_pro_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_white_check.svg"})})]}),(0,Pi.jsxs)("tr",{className:"theplus_feature_details_strip",children:[(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail",children:(0,Pn.__)("Row Background (Parallax, Canvas)","tpebl")}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_free_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_red_cross.svg"})}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_pro_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_white_check.svg"})})]}),(0,Pi.jsxs)("tr",{className:"theplus_feature_details_strip",children:[(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail",children:(0,Pn.__)("Carousel Anything & Remote (Sliders)","tpebl")}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_free_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_red_cross.svg"})}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_pro_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_white_check.svg"})})]}),(0,Pi.jsxs)("tr",{className:"theplus_feature_details_strip",children:[(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail",children:(0,Pn.__)("Advanced Display Conditions","tpebl")}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_free_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_red_cross.svg"})}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_pro_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_white_check.svg"})})]}),(0,Pi.jsxs)("tr",{className:"theplus_feature_details_strip",children:[(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail",children:(0,Pn.__)("Blog (Grid, Carousel, Masonary etc)","tpebl")}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_free_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_red_cross.svg"})}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_pro_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_white_check.svg"})})]}),(0,Pi.jsxs)("tr",{className:"theplus_feature_details_strip",children:[(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail",children:(0,Pn.__)("WooCommerce Product Listing (Grid, Carousel, Masonary)","tpebl")}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_free_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_red_cross.svg"})}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_pro_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_white_check.svg"})})]}),(0,Pi.jsxs)("tr",{className:"theplus_feature_details_strip",children:[(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail",children:(0,Pn.__)("Dynamic CPT Listing + Custom Loop Skins","tpebl")}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_free_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_red_cross.svg"})}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_pro_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_white_check.svg"})})]}),(0,Pi.jsxs)("tr",{className:"theplus_feature_details_strip",children:[(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail",children:(0,Pn.__)("Full-Page Scroll Animations","tpebl")}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_free_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_red_cross.svg"})}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_pro_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_white_check.svg"})})]}),(0,Pi.jsxs)("tr",{className:"theplus_feature_details_strip",children:[(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail",children:(0,Pn.__)("Popup Builder","tpebl")}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_free_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_red_cross.svg"})}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_pro_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_white_check.svg"})})]}),(0,Pi.jsxs)("tr",{className:"theplus_feature_details_strip",children:[(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail",children:(0,Pn.__)("Facebook & Google Review Feed","tpebl")}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_free_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_red_cross.svg"})}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_pro_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_white_check.svg"})})]}),(0,Pi.jsxs)("tr",{className:"theplus_feature_details_strip",children:[(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail",children:(0,Pn.__)("Social Embed (Instagram, Facebook, Twitter, YouTube and more...)","tpebl")}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_free_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_red_cross.svg"})}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_pro_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_white_check.svg"})})]}),(0,Pi.jsxs)("tr",{className:"theplus_feature_details_strip",children:[(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail",children:(0,Pn.__)("Event Tracker","tpebl")}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_free_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_red_cross.svg"})}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_pro_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_white_check.svg"})})]}),(0,Pi.jsxs)("tr",{className:"theplus_feature_details_strip",children:[(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail",children:(0,Pn.__)("White Label Plugin","tpebl")}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_free_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_red_cross.svg"})}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_pro_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_white_check.svg"})})]}),(0,Pi.jsxs)("tr",{className:"theplus_feature_details_strip",children:[(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail",children:(0,Pn.__)("Custom CSS & JS","tpebl")}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_free_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_green_check.svg"})}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_pro_feature",children:(0,Pi.jsx)("img",{src:o+"assets/svg/upgrade_table/theplus_white_check.svg"})})]}),(0,Pi.jsxs)("tr",{className:"theplus_feature_details_strip",children:[(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail",children:(0,Pn.__)("Support","tpebl")}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_free_feature",children:(0,Pi.jsx)("a",{target:"_blank",className:"tpae_tertiary_btn",href:"https://wordpress.org/support/plugin/the-plus-addons-for-elementor-page-builder/",children:(0,Pn.__)("WordPress.org","tpebl")})}),(0,Pi.jsxs)("td",{className:"theplus_feature_inner_detail theplus_pro_feature",children:[(0,Pi.jsx)("a",{className:"tpae_tertiary_btn",style:{color:"#fff"},href:"https://store.posimyth.com/helpdesk-backend/#/",target:"_blank",children:(0,Pn.__)("Premium Helpdesk","tpebl")}),(0,Pi.jsx)("br",{}),(0,Pi.jsxs)("span",{className:"theplus_sm_txt",children:[" ( ",(0,Pn.__)("Response time under 24 working hours","tpebl"),")"]})]})]}),(0,Pi.jsxs)("tr",{className:"theplus_feature_details_strip",children:[(0,Pi.jsxs)("td",{className:"theplus_feature_inner_detail",children:[(0,Pi.jsxs)("a",{target:"_blank",href:"https://theplusaddons.com/free-vs-pro/",className:"tpae_tertiary_btn",children:[(0,Pn.__)("View Detailed Comparison","tpebl")," >"]})," "]}),(0,Pi.jsx)("td",{className:"theplus_feature_inner_detail theplus_free_feature"}),(0,Pi.jsxs)("td",{className:"theplus_feature_inner_detail theplus_pro_feature",children:[(0,Pi.jsx)("a",{target:"_blank",href:"https://theplusaddons.com/pricing?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings",className:"tpae-purple-common-btn",children:(0,Pn.__)("Upgrade Now","tpebl")}),(0,Pi.jsxs)("p",{className:"theplus_elementor_widgets_banner_top_sm_strip",children:[(0,Pi.jsx)("img",{src:o+"assets/svg/dashboard_tab/shield_icon.svg"}),(0,Pn.__)("60 days Money-Back Guarantee","tpebl")]})]})]})]})})})]})})),so=[{key:"gbl_performance",name:(0,Pn.__)("Performance","tpebl"),desc:(0,Pn.__)("If you do not plan to use Global CSS from Nexter Blocks and prefer to load it from your theme, you can disable it. It reduces extra CSS & JS loading on your site, ensuring faster performance and complete control over design.","tpebl"),id:"tpae_performance",free_pro:"free",cards:[{key:"tpae_perform_switch",popname:(0,Pn.__)("Lazy Load","tpebl"),tooltip_text:(0,Pn.__)("We are adding Lazy Load Functionality in each of our widgets. It's in beta version at this moment but completely implemented very soon. It will help you drastically in Google Web Vitals.","tpebl"),id:"plus_lazyload_opt",free_pro:"free",type:"parent",element:"db_switcher",child_val:{popname:(0,Pn.__)("Lazy Load Type","tpebl"),popdec:(0,Pn.__)("Choose Type of animation you want in Lazy Load using above options.","tpebl"),type:"child",content_data:[{cn_text:(0,Pn.__)("Lazy Load Type","tpebl"),id:"plus_lazyload_opt_anim",element:"dropdown",content:[{label:"Fade In",value:"fade"},{label:"Double Circle",value:"dbl-circle"},{label:"Simple Circle",value:"circle"},{label:"Blur Image",value:"blur-img"},{label:"Skeleton",value:"skeleton"}]}],condition:{id:"plus_lazyload_opt",value:"enable"}}},{key:"tpae_perform_database",popname:(0,Pn.__)("Wipe Settings before Uninstall","tpebl"),tooltip_text:(0,Pn.__)("Note: Select the data you wish to delete from your database while uninstalling The Plus Addons for Elementor. You’ll need to reconfigure settings manually if you reinstall the plugin later. Once deleted, this data cannot be recovered.","tpebl"),id:"plus_remove_db",free_pro:"free",type:"parent",element:"db_switcher",child_val:{popname:(0,Pn.__)("Wipe Settings before Uninstall","tpebl"),popdec:(0,Pn.__)("Note : This button will delete all of The Plus Addons for Elementor's settings from Database. You will then need to enter all your settings again. You can also do this before deactivating/deinstalling The Plus Addons for Elementor if you wish.","tpebl"),type:"child",content_data:[{id:"plus_remove_db_options",element:"checkbox_group",options:[{label:(0,Pn.__)("Remove Promotional Data","tpebl"),value:"tpae_db_promotion"},{label:(0,Pn.__)("Remove Plugin Configuration Data","tpebl"),value:"tpae_db_alldata"}],condition:{id:"plus_remove_db",value:"enable"}}],condition:{id:"plus_remove_db",value:"enable"}}}]},{key:"tpae_api_switch",name:(0,Pn.__)("API","tpebl"),desc:(0,Pn.__)("To integrate Google Maps with your Maps Block, please enable the API, paste your Google Maps API key by clicking on the settings gear, and then save the changes.","tpebl"),popDesc:(0,Pn.__)('Paste your your Google Maps API Key ',"tpebl"),formField:{googlemap_api:(0,Pn.__)("Enter API Key","tpebl")},id:"tpae_api",free_pro:"pro",cards:[{key:"tpae_api_switch",popname:(0,Pn.__)("Login with Facebook","tpebl"),tooltip_text:(0,Pn.__)("Configure your Login with Facebook option by adding App ID & App Secret ID. ","tpebl"),type:"parent",free_pro:"pro",child_val:{popname:(0,Pn.__)("Login with Facebook ","tpebl"),popdec:(0,Pn.__)('Note : Generate Facebook App Id using link. This id will be used for your "Login with Facebook" feature in Login/Signup Widget.',"tpebl"),type:"child",content_data:[{cn_text:(0,Pn.__)("App ID","tpebl"),id:"theplus_facebook_app_id",element:"text",tooltip_text:(0,Pn.__)('Note : Generate Facebook App Id using link. This id will be used for your "Login with Facebook" feature in Login/Signup Widget.',"tpebl"),placeholder:(0,Pn.__)("Facebook App ID","tpebl")},{cn_text:(0,Pn.__)("App Secret ID","tpebl"),id:"theplus_facebook_app_secret",element:"text",tooltip_text:(0,Pn.__)('Note : Generate Google Client Id using this link. This id will be used for your "Login with Google" feature in Login/Signup Widget.',"tpebl"),placeholder:(0,Pn.__)("Facebook App Secret ID","tpebl")}]}},{key:"tpae_api_switch",popname:(0,Pn.__)("Login with Google","tpebl"),tooltip_text:(0,Pn.__)("Configure your Login with Google option by adding Google Client ID.","tpebl"),type:"parent",free_pro:"pro",child_val:{popname:(0,Pn.__)("Login with Google","tpebl"),popdec:(0,Pn.__)('Note: Generate Google Client Id using this link. This id will be used for your "Login with Google" feature in Login/Signup Widget.',"tpebl"),type:"child",content_data:[{cn_text:(0,Pn.__)("Client ID","tpebl"),id:"theplus_google_client_id",element:"text",placeholder:(0,Pn.__)("Google Client ID","tpebl")}]}},{key:"tpae_api_switch",popname:(0,Pn.__)("Google Map API","tpebl"),tooltip_text:(0,Pn.__)("Turn Off this key If your theme already have google key option. So, It will not generate error in console for multiple google map keys.","tpebl"),id:"gmap_api_switch",type:"parent",free_pro:"pro",element:"db_switcher",child_val:{popname:(0,Pn.__)("Google Map API","tpebl"),popdec:(0,Pn.__)("Enable Google Map option using this. Note : Keep disabled, If your theme or any 3rd party plugin already load Google Map Js. ","tpebl"),type:"child",content_data:[{cn_text:(0,Pn.__)("Map API Key","tpebl"),id:"theplus_google_map_api",element:"text",placeholder:(0,Pn.__)("Enter Google Map API Key","tpebl"),content:[{label:"None",value:"none"},{label:"Hide",value:"disable"},{label:"Show",value:"enable"}],tooltip_text:(0,Pn.__)('This field is required if you want to use Advance Google Map element. You can obtain your own Google Maps Key here: Click Here',"tpebl")}],condition:{id:"gmap_api_switch",value:"enable"}}},{key:"tpae_api_switch",popname:(0,Pn.__)("Mailchimp","tpebl"),tooltip_text:(0,Pn.__)("Go to your Mailchimp > Account > Extras > API Keys then create a key and paste here","tpebl"),type:"parent",free_pro:"pro",child_val:{popname:(0,Pn.__)("Mailchimp API","tpebl"),popdec:(0,Pn.__)("Configure your Mailchimp API Key and List ID using this option.","tpebl"),type:"child",content_data:[{cn_text:(0,Pn.__)("API Key","tpebl"),id:"theplus_mailchimp_api",element:"text",placeholder:(0,Pn.__)("Mailchimp API Key","tpebl"),content:[{label:"None",value:"none"},{label:"Hide",value:"disable"},{label:"Show",value:"enable"}],tooltip_text:(0,Pn.__)("Go to your Mailchimp > Account > Extras > API Keys then create a key and paste here","tpebl")},{cn_text:(0,Pn.__)("List ID","tpebl"),id:"theplus_mailchimp_id",element:"text",placeholder:(0,Pn.__)("Mailchimp List ID","tpebl"),tooltip_text:(0,Pn.__)("Go to your Mailchimp > List > Settings > List name and default > Copy the list ID and paste here.","tpebl")}]}}]},{key:"tpae_font_load",name:(0,Pn.__)("Design","tpebl"),desc:(0,Pn.__)("To disable Google Fonts, toggle this off. It will prevent any Google Fonts from loading and instead use the system font. If you want to avoid any Google Font requests, simply disable this option.","tpebl"),id:"tpae_design",free_pro:"pro",cards:[{key:"tpae_design_switch",popname:(0,Pn.__)("Pre Loader","tpebl"),tooltip_text:(0,Pn.__)("Configure your Preloader options for performance. ","tpebl"),type:"parent",free_pro:"pro",child_val:{popname:(0,Pn.__)("Pre Loader","tpebl"),popdec:(0,Pn.__)("Note : You can add Page/Post id with separated by comma to load Pre Loader on those specific posts or pages.","tpebl"),type:"child",content_data:[{cn_text:(0,Pn.__)("Pre Loader","tpebl"),id:"load_pre_loader_func",element:"dropdown",content:[{label:"Entire Site",value:"enable"},{label:"Specific Page/Post",value:"disable"}],tooltip_text:(0,Pn.__)("Note : If you disable this, It will stop loading frontend and in the backend throughout the website.","tpebl")},{cn_text:(0,Pn.__)("Pre Loader in Specific Page/Post","tpebl"),id:"load_pre_loader_func_ids",element:"text",tooltip_text:(0,Pn.__)("Note : You can add Page/Post id with separated by comma to load this on those specific posts or pages.","tpebl"),placeholder:(0,Pn.__)("Pre Loader in Specific Page/Post","tpebl"),condition:{id:"load_pre_loader_func",value:"disable"}},{cn_text:(0,Pn.__)("Load Lottie JS in Pre Loader","tpebl"),id:"load_pre_loader_lottie_js",element:"switcher",tooltip_text:(0,Pn.__)("Note : If you enable this, It will load Lottie JS.","tpebl")}]}},{key:"tpae_design_switch",popname:(0,Pn.__)("LottieFiles Backend JS","tpebl"),tooltip_text:(0,Pn.__)("You can enable/disable backend JS of lottiefiles using above option. This is master option, So You have to enable this to make it work in elementor backend. You should keep it disable if your backend have any performance issue, Size of this JS is 246KB.","tpebl"),id:"bodymovin_load_js_check",element:"switcher",free_pro:"pro"},{key:"tpae_design_switch",popname:(0,Pn.__)("On Scroll View Animation Offset","tpebl"),tooltip_text:(0,Pn.__)("Enter the value which will be used for offset of on scroll view animation. If you select 90, Then It will start taking effect from bottom's 10%. Default : 85 E.g. 90,85..etc.","tpebl"),type:"parent",free_pro:"pro",child_val:{popname:(0,Pn.__)("On Scroll View Animation Offset","tpebl"),type:"child",content_data:[{cn_text:(0,Pn.__)("Animation Offset","tpebl"),tooltip_text:(0,Pn.__)("Value must be Greater than or equal to 30 & Less than or equal to 120","tpebl"),placeholder:(0,Pn.__)("On Scroll View Animation Offset","tpebl"),id:"scroll_animation_offset",element:"number"}]}},{key:"tpae_design_switch",popname:(0,Pn.__)("Thumbnail (Dynamic Categories)","tpebl"),tooltip_text:(0,Pn.__)("If you enable this option, Thumbnail image option will be available under each custom post type, Which you can use for Dynamic Categories widget.","tpebl"),placeholder:(0,Pn.__)("Thumbnail (Dynamic Categories)","tpebl"),id:"dynamic_category_thumb_check",element:"switcher",free_pro:"pro"},{key:"tpae_design_switch",popname:(0,Pn.__)("Iconsmind Fonts","tpebl"),tooltip_text:(0,Pn.__)("Configure your Iconsmind options and manage options for better performance. ","tpebl"),type:"parent",free_pro:"pro",child_val:{popname:(0,Pn.__)("Iconsmind Fonts","tpebl"),popdec:(0,Pn.__)("Note : You can add Page/Post id with separated by comma to load this fonts on those specific posts or pages.","tpebl"),type:"child",content_data:[{cn_text:(0,Pn.__)("Iconsmind Font Functionality","tpebl"),id:"load_icons_mind",element:"dropdown",content:[{label:"Entire Site",value:"enable"},{label:"Specific Page/Post",value:"disable"}],tooltip_text:(0,Pn.__)("Note : If you disable this, It will stop loading frontend and in the backend throughout the website.","tpebl")},{cn_text:(0,Pn.__)("Iconsmind in Specific Page/Post","tpebl"),id:"load_icons_mind_ids",element:"text",tooltip_text:(0,Pn.__)("Note : You can add Page/Post id with separated by comma to load this fonts on those specific posts or pages.","tpebl"),placeholder:(0,Pn.__)("Iconsmind in Specific Page/Post","tpebl"),condition:{id:"load_icons_mind",value:"disable"}}]}}]},{key:"gbl_analytics",name:(0,Pn.__)("Analytics","tpebl"),desc:(0,Pn.__)("If you do not plan to use Global CSS from Nexter Blocks and prefer to load it from your theme, you can disable it. It reduces extra CSS & JS loading on your site, ensuring faster performance and complete control over design.","tpebl"),id:"tpae_analytics",free_pro:"pro",cards:[{key:"tpae_GA4_switch",popname:(0,Pn.__)("GA4 Measurement ID","tpebl"),tooltip_text:(0,Pn.__)("Configure your Events Tracker (Google Analytics 4) with this option by adding GA4 Measurement ID.","tpebl"),type:"parent",free_pro:"pro",child_val:{popname:(0,Pn.__)("GA4 Measurement ID","tpebl"),popdec:(0,Pn.__)('GA4 Measurement ID Note : If you have already added your GA4 Code then skip this, or else you can add the measurement ID here to start tracking your traffic.',"tpebl"),type:"child",content_data:[{cn_text:(0,Pn.__)("Measurement ID","tpebl"),id:"theplus_google_analytics_id",element:"text",placeholder:(0,Pn.__)("GA4 Measurement ID","tpebl")}]}},{key:"tpae_GA4_switch",popname:(0,Pn.__)("Facebook Pixel ID","tpebl"),tooltip_text:(0,Pn.__)("Configure your Events Tracker (Facebook Pixel) with this option by adding Facebook Pixel ID.","tpebl"),type:"parent",free_pro:"pro",child_val:{popname:(0,Pn.__)("Facebook Pixel ID","tpebl"),popdec:(0,Pn.__)('Generate Facebook Pixel Id. Note : Keep this field empty, If you have already added Tracking Script on Website.',"tpebl"),type:"child",content_data:[{cn_text:(0,Pn.__)("Pixel ID","tpebl"),id:"theplus_facebook_pixel_id",element:"text",placeholder:(0,Pn.__)("e.g 38736373773","tpebl")}]}}]},{key:"gbl_security",name:(0,Pn.__)("Security","tpebl"),desc:(0,Pn.__)("If you do not plan to use Global CSS from Nexter Blocks and prefer to load it from your theme, you can disable it. It reduces extra CSS & JS loading on your site, ensuring faster performance and complete control over design.","tpebl"),id:"tpae_security",free_pro:"pro",cards:[{key:"tpae_security_switch",popname:(0,Pn.__)("Google ReCaptcha v3","tpebl"),tooltip_text:(0,Pn.__)("Mange your Site Key and Secret key of ReCaptcha v3 using these options. ","tpebl"),type:"parent",free_pro:"pro",child_val:{popname:(0,Pn.__)("Google ReCaptcha v3","tpebl"),popdec:(0,Pn.__)("Note : Here is a free service by Google that protects your website from spam and abuse.","tpebl"),type:"child",content_data:[{cn_text:(0,Pn.__)("Site Key reCAPTCHA v3","tpebl"),tooltip_text:(0,Pn.__)("Note : reCAPTCHA v3 is a free service by Google that protects your website from spam and abuse.","tpebl"),placeholder:(0,Pn.__)("Site Key reCAPTCHA v3","tpebl"),id:"theplus_site_key_recaptcha",element:"text"},{cn_text:(0,Pn.__)("Secret Key reCAPTCHA v3","tpebl"),tooltip_text:(0,Pn.__)("Note : reCAPTCHA v3 is a free service by Google that protects your website from spam and abuse.","tpebl"),placeholder:(0,Pn.__)("Secret Key reCAPTCHA v3","tpebl"),id:"theplus_secret_key_recaptcha",element:"text"}]}}]},{key:"tpae_load",name:(0,Pn.__)("WooCommerce","tpebl"),desc:(0,Pn.__)("To disable Google Fonts, toggle this off. It will prevent any Google Fonts from loading and instead use the system font. If you want to avoid any Google Font requests, simply disable this option.","tpebl"),id:"tpae_woocommerce",free_pro:"pro",cards:[{key:"tpae_woo_switch",popname:(0,Pn.__)("WooCommerce Swatches","tpebl"),tooltip_text:(0,Pn.__)('Swatches option will be available under Product -> Attributes. How it works.',"tpebl"),id:"theplus_woo_swatches_switch",element:"switcher",free_pro:"pro"},{key:"tpae_woo_switch",popname:(0,Pn.__)("WooCommerce Product Video URL","tpebl"),tooltip_text:(0,Pn.__)("Video URL option will be available under each product, Which you can use for Woo Single Image widget for Product Gallery.","tpebl"),placeholder:(0,Pn.__)("WooCommerce Product Video URL","tpebl"),id:"theplus_custom_field_video_switch",element:"switcher",free_pro:"pro"},{key:"tpae_woo_switch",popname:(0,Pn.__)("WooCommerce Recently Viewed","tpebl"),tooltip_text:(0,Pn.__)("It will stored single product in list.","tpebl"),placeholder:(0,Pn.__)("WooCommerce Recently Viewed","tpebl"),id:"theplus_woo_recently_viewed_switch",element:"switcher",free_pro:"pro"},{key:"tpae_woo_switch",popname:(0,Pn.__)("WooCommerce Countdown","tpebl"),tooltip_text:(0,Pn.__)('It will Enable Field in WooCommerce Product Page. How it works.',"tpebl"),placeholder:(0,Pn.__)("WooCommerce Countdown","tpebl"),id:"theplus_woo_countdown_switch",element:"switcher",free_pro:"pro"},{key:"tpae_woo_switch",popname:(0,Pn.__)("WooCommerce Thank You Page","tpebl"),tooltip_text:(0,Pn.__)('Select WooCommerce Thank You Page using above option. Make sure to add Thank You page widget on selected page to make it work properly. How it works.',"tpebl"),type:"parent",free_pro:"pro",child_val:{popname:(0,Pn.__)("WooCommerce Thank You Page","tpebl"),type:"child",content_data:[{cn_text:(0,Pn.__)("Thank You Page","tpebl"),id:"theplus_woo_thank_you_page_select",element:"dynamic_dropdown",content:"woo_thankyouList"}]}}]}],ro=Oi((e=>({tpae_dashboard_data:e.Dashboard_data.db_rx,tpae_extra_option:e.extra_option_data.extra_option_rx})),(e=>({tpae_set_extra_option:t=>e(Ui(t))})))((e=>{var n=tpae_db_object.nonce,i=tpae_db_object.ajax_url,o=tpae_db_object.tpae_pro;tpae_db_object.tpae_url;const[s,r]=(0,t.useState)({visible:!1,type:""}),[a,l]=(0,t.useState)(""),[c,d]=(0,t.useState)(),[h,p]=(0,t.useState)(!1),[u,g]=(0,t.useState)(),[m,f]=(0,t.useState)(""),[_,b]=(0,t.useState)(),[w,v]=(0,t.useState)(!1);(0,t.useEffect)((()=>{let t=e.tpae_extra_option?.thankyou_page;var n=[];t&&Object.entries?.(t)?.length>0&&Object.entries?.(t).map((e=>{let t=e?.[1]?e[1]:"",i=e?.[0]?e[0]:"";n.push({label:t,value:i})}));let i=Object.assign({},_,{woo_thankyouList:n});b(i),e.tpae_dashboard_data.success&&e.tpae_extra_option&&g(e.tpae_extra_option)}),[e.tpae_dashboard_data]),(0,t.useEffect)((()=>{document.addEventListener("scroll",(()=>{let e=document.getElementById("tpae_woocommerce")?.getBoundingClientRect()?.top-300,t=document.getElementById("tpae_security")?.getBoundingClientRect()?.top-300,n=document.getElementById("tpae_analytics")?.getBoundingClientRect()?.top-300,i=document.getElementById("tpae_design")?.getBoundingClientRect()?.top-300,o=document.getElementById("tpae_api")?.getBoundingClientRect()?.top-300,s=document.getElementById("tpae_performance")?.getBoundingClientRect()?.top-300;e<0?f("tpae_woocommerce"):t<0?f("tpae_security"):n<0?f("tpae_analytics"):i<0?f("tpae_design"):o<0?f("tpae_api"):s<0&&f("tpae_performance")}))}));const y=async(e,t,n,i)=>{if("checkbox"==n)if(e)var o=Object.assign({},u,{[t]:"on"});else o=Object.assign({},u,{[t]:""});else if("db_checkbox"==n)o=e?Object.assign({},u,{[t]:"enable"}):Object.assign({},u,{[t]:"disable"});else if("scroll_animation_offset"==t){if(!(e>=30&&e<=120)){let e=document.getElementById(t+"-tollTip").querySelector(".tpae_set_tooltiptext");return e.style.visibility="visible",setTimeout((()=>{e.style.visibility=""}),2e3),!1}o=Object.assign({},u,{[t]:e})}else o=Object.assign({},u,{[t]:e});i&&C(o,"switcher"),g(o)},x=e=>{let t={visible:!1};e&&(t={visible:!0},d(e)),r(t)},C=async(t,o)=>{"save_btn"==o&&v(!0),e.tpae_set_extra_option(t);var s=Object.assign({},t);s.thankyou_page&&delete s.thankyou_page;let r=new FormData;r.append("action","tpae_dashboard_ajax_call"),r.append("type","tpae_set_extra_options"),r.append("nonce",n),r.append("extra_options_data",JSON.stringify(s)),await In.post(i,r),"save_btn"==o&&(v(!1),x())};return(0,Pi.jsxs)("div",{className:"tpae_settings_cover_main tpae-main-container "+(e?.tpae_dashboard_data?.success?"":"theplus-skeleton"),children:[(0,Pi.jsx)("div",{className:"tpae-section-heading-cover",children:(0,Pi.jsx)("h3",{className:"tpae-section-heading",children:(0,Pn.__)("Settings","tpebl")})}),so&&so.map(((e,t)=>(0,Pi.jsx)(Pi.Fragment,{children:("pro"!=e?.free_pro||"pro"==e?.free_pro&&1==o)&&(0,Pi.jsxs)("div",{id:e.id,children:[(0,Pi.jsxs)("div",{className:"tpae-setting-infogrp",children:[(0,Pi.jsx)("h3",{className:"tpae-setting-header",children:e.name}),(0,Pi.jsx)("div",{className:"tpae-setting-feature-count",children:(0,Pi.jsx)("span",{className:"",children:(0,Pn.__)("0")+e.cards.length+(0,Pn.__)(" Features","tpebl")})})]}),(0,Pi.jsx)("div",{className:"tpae_field_crd_sec_cover",children:e?.cards?.length>0&&e.cards.map(((e,t)=>((e,t)=>{var n=!1;1!=o&&"pro"==e?.free_pro&&(n=!0);const i=()=>{var t=!1;if("parent"==e.type){if(e?.child_val?.condition){let n=e?.child_val?.condition?.id,i=e?.child_val?.condition?.value;u?.[n]==i&&(t=!0)}else t=!0;return(0,Pi.jsx)("button",{className:"tpae_ex_btn",onClick:()=>{x(e.child_val),l(e.popname)},disabled:!t,children:(0,Pi.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Pi.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0058 9.75824C12.9248 9.80893 12.8742 9.87989 12.8337 9.96099C12.8033 10.0522 12.7831 10.1435 12.8033 10.2347C12.8134 10.3259 12.864 10.407 12.9248 10.478C13.107 10.6605 13.2386 10.843 13.3196 11.0559C13.4107 11.2687 13.4512 11.4816 13.4512 11.7047C13.4512 11.9277 13.4006 12.1507 13.3196 12.3535C13.2386 12.5562 13.107 12.7488 12.9552 12.9009C12.8033 13.053 12.611 13.1847 12.4085 13.2658C11.9935 13.4382 11.5278 13.4382 11.1128 13.2658C10.9103 13.1847 10.7281 13.0631 10.5661 12.9009C10.4649 12.7995 10.3839 12.759 10.2928 12.7387C10.1916 12.7184 10.1005 12.7286 10.0195 12.7691C9.9284 12.8097 9.85754 12.8603 9.80692 12.9414C9.75631 13.0124 9.72594 13.1036 9.72594 13.1949C9.72594 13.7322 9.55385 14.158 9.22992 14.4824C8.90598 14.8068 8.49094 14.9791 8.03541 14.9791C7.57988 14.9791 7.15472 14.7966 6.84091 14.4824C6.5271 14.1681 6.34488 13.7322 6.34488 13.2861C6.33476 13.1442 6.30439 13.0631 6.25378 12.982C6.19304 12.911 6.12218 12.8502 6.03107 12.8198C5.9096 12.7792 5.81849 12.759 5.72739 12.7792C5.63628 12.7894 5.5553 12.8401 5.48444 12.9009C5.2921 13.0834 5.10989 13.2152 4.90743 13.2963C4.49239 13.4686 4.02674 13.4686 3.6117 13.2963C3.40924 13.2152 3.2169 13.0834 3.06506 12.9313C2.91321 12.7792 2.78162 12.5866 2.70063 12.3839C2.60953 12.1811 2.56903 11.9581 2.56903 11.7351C2.56903 11.512 2.61965 11.289 2.70063 11.0863C2.78162 10.8835 2.90309 10.701 3.06506 10.5388C3.16629 10.4375 3.20678 10.3564 3.22702 10.2651C3.24727 10.1739 3.23715 10.0826 3.19666 9.99141C3.15616 9.90017 3.10555 9.8292 3.02457 9.77852C2.95371 9.72783 2.8626 9.69742 2.77149 9.69742C2.22486 9.69742 1.78957 9.51494 1.47576 9.20068C1.16195 8.88641 0.979736 8.46063 0.979736 8.00444C0.979736 7.54825 1.16195 7.12247 1.47576 6.80821C1.78957 6.49394 2.22486 6.31146 2.67026 6.31146C2.81199 6.31146 2.90309 6.28105 2.97395 6.23036C3.05494 6.16954 3.11567 6.09858 3.14604 6.00734C3.18653 5.89582 3.20678 5.79445 3.18653 5.70321C3.17641 5.61197 3.1258 5.53087 3.06506 5.45991C2.88285 5.26729 2.75125 5.08482 2.67026 4.88207C2.57916 4.66918 2.53867 4.45629 2.53867 4.23326C2.53867 4.01023 2.58928 3.78721 2.67026 3.58446C2.75125 3.3817 2.87272 3.19923 3.03469 3.03703C3.18653 2.88496 3.37887 2.75317 3.58133 2.67207C3.99637 2.49973 4.46202 2.49973 4.87706 2.67207C5.07952 2.75317 5.26173 2.87482 5.4237 3.03703C5.52493 3.1384 5.60591 3.17895 5.69702 3.19923C5.78812 3.2195 5.88935 3.20936 5.97034 3.16881C5.97751 3.16642 5.98524 3.16346 5.9934 3.16034C6.01982 3.15023 6.05076 3.1384 6.08169 3.1384C6.14243 3.09785 6.18292 3.0573 6.22341 2.99648C6.27402 2.92551 6.30439 2.83427 6.30439 2.74304C6.30439 2.19561 6.48661 1.76983 6.80042 1.45556C7.43816 0.816896 8.56181 0.816896 9.18943 1.45556C9.51336 1.77997 9.68545 2.20574 9.68545 2.6518C9.68545 2.79372 9.71582 2.87482 9.76643 2.95593C9.81705 3.03703 9.88791 3.08771 9.96889 3.12826C10.06 3.15868 10.1511 3.17895 10.2422 3.15868C10.3333 3.14854 10.4143 3.09785 10.4852 3.03703C10.6674 2.85455 10.8597 2.72276 11.0622 2.64166C11.4772 2.46932 11.9429 2.46932 12.3579 2.64166C12.5604 2.72276 12.7426 2.84441 12.9045 3.00661C13.0564 3.15868 13.188 3.35129 13.269 3.55404C13.3601 3.76693 13.4006 3.97982 13.4006 4.20285C13.4006 4.42587 13.3499 4.6489 13.269 4.85165C13.188 5.0544 13.0665 5.23688 12.9045 5.39908C12.8134 5.50046 12.7729 5.58156 12.7527 5.6728C12.7324 5.76404 12.7426 5.86541 12.7831 5.94651C12.8033 5.98706 12.8236 6.02761 12.8236 6.06816C12.864 6.12899 12.9045 6.16954 12.9653 6.21009C13.0361 6.26078 13.1272 6.29119 13.2183 6.29119C13.765 6.29119 14.1901 6.46353 14.504 6.78793C14.8279 7.11233 15 7.52797 15 7.98416C15 8.44036 14.8279 8.86613 14.504 9.1804C14.18 9.5048 13.765 9.67714 13.3095 9.67714C13.1779 9.67714 13.0868 9.70755 13.0058 9.75824ZM11.9125 9.55549C12.0238 9.29191 12.2061 9.06889 12.449 8.90668L12.4591 8.89655C12.7021 8.74448 12.9754 8.65325 13.269 8.65325C13.5119 8.65325 13.6739 8.59242 13.8055 8.46063C13.9371 8.33898 14.0079 8.16664 14.0079 7.98416C14.0079 7.80169 13.927 7.63949 13.8055 7.5077C13.684 7.37591 13.5119 7.30495 13.3297 7.30495H13.2285C12.945 7.30495 12.6616 7.22385 12.4186 7.06165C12.1757 6.90958 11.9834 6.67642 11.872 6.41284C11.8518 6.37229 11.8315 6.3216 11.8315 6.27091C11.7505 6.02761 11.7202 5.76403 11.7708 5.5106C11.8214 5.21661 11.953 4.95303 12.1656 4.74014C12.2668 4.62863 12.3174 4.55766 12.3478 4.47656C12.3781 4.38532 12.3984 4.30422 12.3984 4.21299C12.3984 4.12175 12.3781 4.03051 12.3478 3.94941C12.3174 3.85817 12.2668 3.78721 12.2061 3.72638C12.1352 3.65542 12.0643 3.60473 11.9834 3.57432C11.8214 3.50335 11.6291 3.50335 11.4671 3.57432C11.376 3.60473 11.3051 3.65542 11.2444 3.71624C10.9913 3.95955 10.7281 4.10147 10.4345 4.15216C10.1511 4.20285 9.84742 4.17243 9.5741 4.05078C9.3109 3.92913 9.0882 3.74666 8.92623 3.50335C8.77439 3.26005 8.68328 2.98634 8.68328 2.69235C8.68328 2.44905 8.61242 2.28684 8.48082 2.15506C8.22775 1.90162 7.78234 1.90162 7.52927 2.15506C7.39767 2.27671 7.32681 2.44905 7.32681 2.63152V2.7329C7.32681 3.01675 7.24582 3.3006 7.08386 3.5439C6.93201 3.78721 6.69919 3.97982 6.43599 4.09133C6.42861 4.09429 6.42144 4.09725 6.41442 4.10015C6.37335 4.11709 6.3375 4.13188 6.29427 4.13188C6.05132 4.21299 5.78812 4.2434 5.53505 4.19271C5.24149 4.14202 4.97829 4.01023 4.76571 3.79734C4.65436 3.69597 4.5835 3.64528 4.50251 3.61487C4.34055 3.5439 4.14821 3.5439 3.98624 3.61487C3.89514 3.65542 3.82428 3.69597 3.76354 3.76693C3.7028 3.83789 3.65219 3.90886 3.62182 3.98996C3.59145 4.0812 3.5712 4.1623 3.5712 4.25354C3.5712 4.34477 3.59145 4.43601 3.62182 4.51711C3.65219 4.59821 3.7028 4.67931 3.76354 4.74014C4.00649 4.99358 4.14821 5.25716 4.19883 5.55115C4.24944 5.84514 4.21907 6.13913 4.0976 6.41284C4.00649 6.65614 3.82428 6.89944 3.58133 7.07178C3.33838 7.24412 3.04481 7.3455 2.75125 7.3455C2.5083 7.3455 2.33621 7.4266 2.20461 7.54825C2.07301 7.6699 2.00215 7.85238 2.00215 8.02472C2.00215 8.19705 2.08313 8.36939 2.20461 8.50118C2.32608 8.63297 2.5083 8.70393 2.68039 8.70393H2.78162C3.06506 8.70393 3.3485 8.78503 3.59145 8.94724C3.8344 9.10944 4.02674 9.33246 4.13809 9.59604C4.25956 9.86975 4.28993 10.1637 4.23932 10.4577C4.1887 10.7517 4.0571 11.0153 3.84452 11.2282C3.74329 11.3397 3.69268 11.4107 3.66231 11.4918C3.63194 11.583 3.6117 11.6641 3.6117 11.7553C3.6117 11.8466 3.63194 11.9277 3.66231 12.0088C3.7028 12.1 3.74329 12.171 3.81415 12.2318C3.88501 12.2926 3.95588 12.3433 4.03686 12.3737C4.19883 12.4447 4.39116 12.4447 4.55313 12.3737C4.64423 12.3433 4.71509 12.2926 4.77583 12.2318C5.0289 11.9885 5.2921 11.8466 5.58567 11.7959C5.66665 11.7756 5.75775 11.7756 5.84885 11.7756H5.84886C6.05132 11.7756 6.25378 11.8162 6.44611 11.8973C6.68906 11.9885 6.93201 12.171 7.1041 12.4143C7.27619 12.6576 7.37742 12.9516 7.37742 13.2456C7.37742 13.4787 7.45841 13.6612 7.57988 13.7829C7.82283 14.0363 8.27836 14.0363 8.53144 13.7829C8.66303 13.6612 8.73389 13.4787 8.73389 13.3064V13.205C8.73389 12.9212 8.81488 12.6373 8.97684 12.394C9.12869 12.1507 9.36152 11.9581 9.62471 11.8466C9.89803 11.7249 10.1916 11.6945 10.4852 11.7452C10.7787 11.7959 11.0419 11.9277 11.2545 12.1406C11.3557 12.2419 11.4266 12.2926 11.5076 12.323C11.6695 12.394 11.8619 12.394 12.0238 12.323C12.115 12.2926 12.1858 12.2521 12.2465 12.1811C12.3073 12.1102 12.3579 12.0392 12.3883 11.9581C12.4186 11.877 12.4389 11.7959 12.4389 11.7047C12.4389 11.6134 12.4186 11.5222 12.3883 11.4411C12.3579 11.36 12.3073 11.289 12.2465 11.2282C12.0036 10.9748 11.8619 10.7112 11.8113 10.4172C11.7606 10.1232 11.791 9.8292 11.9125 9.55549ZM5.72745 7.99565C5.72745 6.73859 6.74987 5.71469 8.00511 5.71469C9.26035 5.71469 10.2828 6.73859 10.2828 7.99565C10.2828 9.25271 9.26035 10.2766 8.00511 10.2766C6.74987 10.2766 5.72745 9.25271 5.72745 7.99565ZM6.73974 7.99565C6.73974 8.69514 7.30663 9.26285 8.00511 9.26285C8.70359 9.26285 9.27047 8.69514 9.27047 7.99565C9.27047 7.29616 8.70359 6.72845 8.00511 6.72845C7.30663 6.72845 6.73974 7.29616 6.73974 7.99565Z",fill:"#4b465c80"})})})}};if(!n)return(0,Pi.jsx)("div",{className:"tpae_field_card",children:(0,Pi.jsxs)("div",{className:"tpae_card_top_detail",children:[(0,Pi.jsxs)("div",{className:"tpae_field_card_heading_strip",children:[(0,Pi.jsx)("span",{className:"tpae_field_card_title",children:e.popname}),(0,Pi.jsxs)("div",{className:"tpae_tgl_with_setting",children:[(0,Pi.jsx)(i,{}),"switcher"==e.element&&(0,Pi.jsx)("div",{className:"tpae-wid-tgl-btn-cover",children:(0,Pi.jsxs)("label",{className:"tpae-wid-tgl-btn-cover",htmlFor:e.id,children:[(0,Pi.jsx)("input",{className:"tpae-toggle-btn",type:"checkbox",id:e.id,checked:"on"==u?.[e.id],onChange:t=>{y(t.target.checked,e.id,"checkbox",!0)}}),(0,Pi.jsx)("span",{className:"tpae-toggle-slider"})]})}),"db_switcher"==e.element&&(0,Pi.jsx)("div",{className:"tpae-wid-tgl-btn-cover",children:(0,Pi.jsxs)("label",{className:"tpae-wid-tgl-btn-cover",htmlFor:e.id,children:[(0,Pi.jsx)("input",{className:"tpae-toggle-btn",type:"checkbox",id:e.id,checked:"enable"==u?.[e.id],onChange:t=>{y(t.target.checked,e.id,"db_checkbox",!0)}}),(0,Pi.jsx)("span",{className:"tpae-toggle-slider"})]})})]})]}),(0,Pi.jsx)("div",{className:"tpae_card_descrip",dangerouslySetInnerHTML:{__html:e.tooltip_text}})]})},t)})(e,t)))})]},t)}))),s.visible&&(0,Pi.jsx)(Pi.Fragment,{children:(0,Pi.jsx)("div",{className:"tpae_overlay",onClick:e=>{(()=>{let e=document.querySelectorAll(".tpae_settings_cover_main .tpae_overlay");e&&e.forEach((e=>{r({visible:!1})}))})()},children:(0,Pi.jsxs)("div",{className:"tpae_setting_popup",onClick:e=>e.stopPropagation(),children:[(0,Pi.jsx)("svg",{className:"tpae_close_icon",onClick:()=>{x()},width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Pi.jsx)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})}),(0,Pi.jsxs)("div",{className:"tpae_popup_heading",children:[(0,Pi.jsx)("h3",{className:"tpae_popup_h",children:c?.popname}),(0,Pi.jsx)("p",{className:"tpae_popup_p",dangerouslySetInnerHTML:{__html:c?.popdec}})]}),(0,Pi.jsxs)("div",{className:"tpae_sett_inncrd_cover",children:[(0,Pi.jsx)("div",{className:"tpae_field_card_cover",children:c?.content_data?.length>0&&c.content_data.map(((e,t)=>{if(e?.condition){let t=e?.condition?.id?e.condition.id:"",n=e?.condition?.value?e.condition.value:"";if(u?.[t]!=n)return!1}return(0,Pi.jsxs)("div",{className:"tpae_field_card_bottom "+("switcher"==e.element?"tp-switcher-content":""),children:[(0,Pi.jsx)("div",{className:"tpae_crd_h_strip",children:(0,Pi.jsxs)("div",{className:"tpae_set_pop_tie_cov",children:[(0,Pi.jsx)("label",{htmlFor:"input_",className:"tpae_inn_sec_he",children:e?.cn_text}),e?.tooltip_text&&(0,Pi.jsxs)("div",{className:"tpae_set_tooltip",id:e?.id+"-tollTip",children:[(0,Pi.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 22 26",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",children:(0,Pi.jsx)("path",{d:"M12 0c6.623 0 12 5.377 12 12s-5.377 12-12 12-12-5.377-12-12 5.377-12 12-12zm0 1c6.071 0 11 4.929 11 11s-4.929 11-11 11-11-4.929-11-11 4.929-11 11-11zm.5 17h-1v-9h1v9zm-.5-12c.466 0 .845.378.845.845 0 .466-.379.844-.845.844-.466 0-.845-.378-.845-.844 0-.467.379-.845.845-.845z"})}),(0,Pi.jsx)("span",{className:"tpae_set_tooltiptext",dangerouslySetInnerHTML:{__html:e.tooltip_text}})]})]})}),"text"===e.element&&(0,Pi.jsx)("input",{id:`input_${t}`,className:"tpae_text_field",type:"text",placeholder:e?.placeholder,value:u?.[e.id]?u[e.id]:"",onChange:t=>{y(t.target.value,e.id)}}),"dynamic_dropdown"===e.element&&(0,Pi.jsx)("select",{className:"tpae_select_dropdow",value:u?.[e.id]?u[e.id]:"",onChange:t=>{y(t.target.value,e.id)},children:_?.[e?.content]?.length>0&&_[e.content].map(((e,t)=>(0,Pi.jsx)("option",{value:e?.value,children:e?.label},t)))}),"dropdown"===e.element&&(0,Pi.jsx)("select",{className:"tpae_select_dropdow",value:u?.[e.id]?u[e.id]:"",onChange:t=>{y(t.target.value,e.id)},children:e?.content?.map(((e,t)=>(0,Pi.jsx)("option",{value:e?.value,children:e?.label},t)))}),"number"===e.element&&(0,Pi.jsx)("input",{id:`input_${t}`,className:"tpae_text_field",type:"number",min:30,max:120,value:u?.[e.id]?u[e.id]:"",onChange:t=>{y(t.target.value,e.id)}}),"switcher"==e.element&&(0,Pi.jsx)("div",{className:"tpae-wid-tgl-btn-cover",children:(0,Pi.jsxs)("label",{className:"tpae-wid-tgl-btn-cover",htmlFor:e.id,children:[(0,Pi.jsx)("input",{className:"tpae-toggle-btn",type:"checkbox",id:e.id,checked:"on"==u?.[e.id],onChange:t=>{y(t.target.checked,e.id,"checkbox")}}),(0,Pi.jsx)("span",{className:"tpae-toggle-slider"})]})}),"checkbox_group"==e.element&&(0,Pi.jsx)("div",{className:"tpae_checkbox_group_cover",children:(0,Pi.jsx)("div",{className:"tpae_checkbox_group_options",children:e.options.map(((e,t)=>(0,Pi.jsxs)("label",{className:"tpae-checkbox-option",htmlFor:"",children:[(0,Pi.jsx)("input",{type:"checkbox",className:"tpae-checkbox-input",id:`checkbox-${t}`,checked:"enable"==u?.[e.value],value:e.value,onChange:t=>y(t.target.checked,e.value,"db_checkbox")}),(0,Pi.jsx)("span",{className:"tpae-checkbox-text",children:e.label})]},e.value)))})})]},t)}))}),(0,Pi.jsx)("div",{className:"tpae_popup_btm",children:w?(0,Pi.jsx)("button",{className:"tpae-purple-common-btn",children:(0,Pi.jsx)("span",{className:"tpae-loading-circle"})}):(0,Pi.jsx)("button",{className:"tpae-purple-common-btn",onClick:()=>{C(u,"save_btn")},children:(0,Pn.__)("Save")})})]})]})})}),h&&(0,Pi.jsx)(Xi,{heading:"Upgrade to The Plus Addons for Elementor Pro to Unlock All Features",parent_class:"tpae-pro-required",inner_class:"theplus_whitlabel_popup tpae-pro-required-inner",close_svg:(0,Pi.jsxs)("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:()=>{p(!1)},children:[(0,Pi.jsx)("path",{d:"M18.75 6.25L6.25 18.75",stroke:"white",strokeWidth:"0.75",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Pi.jsx)("path",{d:"M6.25 6.25L18.75 18.75",stroke:"white",strokeWidth:"0.75",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})})),ao=Oi((e=>({tpae_listing_data:e.Listing_data.lising_data_rx,tpae_dashboard_data:e.Dashboard_data.db_rx})),(e=>({tpae_set_listing:t=>e(zi(t))})))((e=>{var n=tpae_db_object.tpae_url;const[i,o]=(0,t.useState)((0,Pn.__)("client","tpebl")),[s,r]=(0,t.useState)({}),[a,l]=(0,t.useState)((0,Pn.__)("Save Settings","tpebl"));var c=tpae_db_object.nonce,d=tpae_db_object.ajax_url;let h={client:{plugin:{category_plugin_name:"theplus_clients_cat",plugin_name:"theplus_clients",plugin_title:"Tp Clients"},themes:{theme_name:"theplus_clients",category_name:"theplus_clients_cat"}},team_member:{plugin:{category_plugin_name:"theplus_team_member_cat",plugin_name:"theplus_team_member",plugin_title:"TP Team Members"},themes:{theme_name:"theplus_team_member",category_name:"theplus_team_member_cat"}},testimonial:{plugin:{category_plugin_name:"theplus_testimonial_cat",plugin_name:"theplus_testimonial",plugin_title:"TP Testimonials"},themes:{theme_name:"theplus_testimonial",category_name:"theplus_testimonial_cat"}}};(0,t.useEffect)((()=>{let t=e.tpae_listing_data,n={client:{post_type:t?.client_post_type?t.client_post_type:"disable",category_plugin_name:t?.client_category_plugin_name?t.client_category_plugin_name:"",plugin_name:t?.client_plugin_name?t.client_plugin_name:"",plugin_title:t?.client_plugin_title?t.client_plugin_title:"",theme_name:t?.client_theme_name?t.client_theme_name:"",category_name:t?.client_category_name?t.client_category_name:""},team_member:{post_type:t?.team_member_post_type?t.team_member_post_type:"disable",category_plugin_name:t?.team_member_category_plugin_name?t.team_member_category_plugin_name:"",plugin_name:t?.team_member_plugin_name?t.team_member_plugin_name:"",plugin_title:t?.team_member_plugin_title?t.team_member_plugin_title:"",theme_name:t?.team_member_theme_name?t.team_member_theme_name:"",category_name:t?.team_member_category_name?t.team_member_category_name:""},testimonial:{post_type:t?.testimonial_post_type?t.testimonial_post_type:"disable",category_plugin_name:t?.testimonial_category_plugin_name?t.testimonial_category_plugin_name:"",plugin_name:t?.testimonial_plugin_name?t.testimonial_plugin_name:"",plugin_title:t?.testimonial_plugin_title?t.testimonial_plugin_title:"",theme_name:t?.testimonial_theme_name?t.testimonial_theme_name:"",category_name:t?.testimonial_category_name?t.testimonial_category_name:""}};r(n)}),[e.tpae_listing_data]);const p=(e,t)=>{let n=Object.assign({},s?.[i]);if(Object.values(n).length>0)var o=Object.assign({},n,{[t]:e});else o=Object.assign({},n);let a=Object.assign({},s,{[i]:o});r(a)},[u,g]=(0,t.useState)(!1),m=e=>{if("capitalize"==e){let e=i;return e=e.replaceAll("_"," "),e.split(" ").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" ")}return i};return(0,Pi.jsxs)("div",{className:"tpae_list_cov_main tpae-main-container "+(e?.tpae_dashboard_data?.success?"":"theplus-skeleton"),children:[(0,Pi.jsxs)("div",{className:"tpae-section-heading-cover",children:[(0,Pi.jsx)("h3",{className:"tpae-section-heading",children:(0,Pn.__)("Listing","tpebl")}),(0,Pi.jsx)("div",{className:"tpae_head_tgl_btn_grp",children:(0,Pi.jsx)("button",{disabled:u,onClick:()=>{(async()=>{g(!0),l("Saving...");var t=Object.assign({},e.tpae_listing_data);let n=Object.entries(s);n.length>0&&n.map((e=>{let n=Object.entries(e[1]);n.length>0&&n.map((n=>{let i=e[0]+"_"+n[0],o=s?.[e[0]]?.post_type;if(!n[1]&&o&&"disable"!=o){let s=e[0],r=n[0],a=h?.[s]?.[o]?.[r]?h[s][o][r]:"";t=Object.assign({},t,{[i]:a})}else t=Object.assign({},t,{[i]:n[1]})}))})),e.tpae_set_listing(t);let i=new FormData;i.append("action","tpae_dashboard_ajax_call"),i.append("nonce",c),i.append("type","tpae_set_listing_data"),i.append("listing_data",JSON.stringify(t)),(await In.post(d,i)).data.success&&(window.location.reload(),setTimeout((()=>{g(!1)}),1e3))})()},className:"tpae-purple-common-btn "+(u?"disable":""),children:a})})]}),(0,Pi.jsx)("div",{className:"tpae-widget-categories",children:(0,Pi.jsx)("div",{className:"tpae-cat-strip-cov-main",children:(0,Pi.jsxs)("div",{className:"tpae-cate-btns-cover",children:[(0,Pi.jsx)("span",{className:"client"==i?"tpae-category-btn tpae_active":"tpae-category-btn",onClick:()=>{o("client")},children:(0,Pn.__)("Clients","tpebl")}),(0,Pi.jsx)("span",{className:"testimonial"==i?"tpae-category-btn tpae_active":"tpae-category-btn",onClick:()=>{o("testimonial")},children:(0,Pn.__)("Testimonial","tpebl")}),(0,Pi.jsx)("span",{className:"team_member"==i?"tpae-category-btn tpae_active":"tpae-category-btn",onClick:()=>{o("team_member")},children:(0,Pn.__)("Team Member","tpebl")})]})})}),(0,Pi.jsxs)("div",{className:"theplus_listing_inner_content_cover",children:[(0,Pi.jsxs)("div",{className:"tpae_field_card_cover",children:[(0,Pi.jsxs)("label",{className:"tpae-in-sec-heading theplus_top_sec_title",children:[m("capitalize"),(0,Pn.__)(" Post Type Settings","tpebl")]}),(0,Pi.jsxs)("p",{className:"theplus_text_info",children:[(0,Pn.__)('Use below settings to configure your "',"tpebl"),m("capitalize"),(0,Pn.__)('" custom post type.',"tpebl")]}),(0,Pi.jsx)("div",{className:"tpae_field_dropdown",children:(0,Pi.jsxs)("div",{className:"tpae_ctm_drpdwn",onClick:e=>{(e=>{let t=e.target.closest(".tpae_ctm_drpdwn"),n=t.querySelector(".tpae_ctm_drpdwn_content")?t.querySelector(".tpae_ctm_drpdwn_content"):"";n&&(Object.values(n.classList).includes("theplus_wp_show")?n.classList.remove("theplus_wp_show"):n.classList.add("theplus_wp_show"))})(e)},children:[(0,Pi.jsxs)("div",{className:"tpae_ctm_drpdwn_header",children:[(0,Pi.jsx)("label",{htmlFor:"tpae_preloader",children:(f=s?.[i]?.post_type,"disable"==f?"Disable":"plugin"==f?"ThePlus Post Type":"themes"==f?"Prebuilt Theme Based":void 0)}),(0,Pi.jsx)("img",{src:n+"assets/svg/theplus_chevron_down.svg",draggable:!1})]}),(0,Pi.jsxs)("div",{id:"tpae_preloader",className:"tpae_ctm_drpdwn_content",children:[(0,Pi.jsx)("span",{onClick:e=>{p("disable","post_type")},children:(0,Pn.__)("Disable","tpebl")}),(0,Pi.jsx)("span",{onClick:e=>{p("plugin","post_type")},children:(0,Pn.__)("ThePlus Post Type","tpebl")}),(0,Pi.jsx)("span",{onClick:e=>{p("themes","post_type")},children:(0,Pn.__)("Prebuilt Theme Based","tpebl")})]})]})})]}),"plugin"==s?.[i]?.post_type&&(0,Pi.jsxs)(Pi.Fragment,{children:[(0,Pi.jsxs)("div",{className:"tpae_field_card_cover",children:[(0,Pi.jsxs)("div",{className:"tpae_card_heading_strip",children:[(0,Pi.jsx)("label",{className:"tpae-in-sec-heading",children:(0,Pn.__)("Post Name","tpebl")}),(0,Pi.jsxs)("span",{className:"tpae-main-tooltip",children:[(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"black",children:(0,Pi.jsx)("path",{d:"M6 0C2.68594 0 0 2.68594 0 6C0 9.31406 2.68594 12 6 12C9.31406 12 12 9.31406 12 6C12 2.68594 9.31406 0 6 0ZM6 11.25C3.10547 11.25 0.75 8.89453 0.75 6C0.75 3.10547 3.10547 0.75 6 0.75C8.89453 0.75 11.25 3.10547 11.25 6C11.25 8.89453 8.89453 11.25 6 11.25ZM6 4.3125C6.31055 4.3125 6.5625 4.06078 6.5625 3.75C6.5625 3.43945 6.31055 3.1875 6 3.1875C5.68945 3.1875 5.4375 3.43828 5.4375 3.75C5.4375 4.06172 5.68828 4.3125 6 4.3125ZM7.125 8.25H6.375V5.625C6.375 5.41875 6.20625 5.25 6 5.25H5.25C5.04375 5.25 4.875 5.41875 4.875 5.625C4.875 5.83125 5.04375 6 5.25 6H5.625V8.25H4.875C4.66875 8.25 4.5 8.41875 4.5 8.625C4.5 8.83125 4.66875 9 4.875 9H7.125C7.33209 9 7.5 8.83209 7.5 8.625C7.5 8.41875 7.33125 8.25 7.125 8.25Z"})}),(0,Pi.jsx)("p",{className:"theplus_text_tooltip",children:(0,Pn.__)("*Keep Blank if you want to keep default Name","tpebl")})]})]}),(0,Pi.jsxs)("div",{className:"tpae_field_card_bottom",children:[(0,Pi.jsx)("input",{id:"theplus_google_recaptcha",className:"tpae_text_field",type:"text",value:s?.[i]?.plugin_name?s?.[i]?.plugin_name:"",onChange:e=>{p(e.target.value,"plugin_name")}}),(0,Pi.jsx)("p",{className:"theplus_text_info",children:sprintf((0,Pn.__)('Enter value for clients custom post type name. Default: "theplus_%s"',"tpebl"),m())})]})]}),(0,Pi.jsxs)("div",{className:"tpae_field_card_cover",children:[(0,Pi.jsxs)("div",{className:"tpae_card_heading_strip",children:[(0,Pi.jsx)("label",{className:"tpae-in-sec-heading",children:(0,Pn.__)("Post Title","tpebl")}),(0,Pi.jsxs)("span",{className:"tpae-main-tooltip",children:[(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"black",children:(0,Pi.jsx)("path",{d:"M6 0C2.68594 0 0 2.68594 0 6C0 9.31406 2.68594 12 6 12C9.31406 12 12 9.31406 12 6C12 2.68594 9.31406 0 6 0ZM6 11.25C3.10547 11.25 0.75 8.89453 0.75 6C0.75 3.10547 3.10547 0.75 6 0.75C8.89453 0.75 11.25 3.10547 11.25 6C11.25 8.89453 8.89453 11.25 6 11.25ZM6 4.3125C6.31055 4.3125 6.5625 4.06078 6.5625 3.75C6.5625 3.43945 6.31055 3.1875 6 3.1875C5.68945 3.1875 5.4375 3.43828 5.4375 3.75C5.4375 4.06172 5.68828 4.3125 6 4.3125ZM7.125 8.25H6.375V5.625C6.375 5.41875 6.20625 5.25 6 5.25H5.25C5.04375 5.25 4.875 5.41875 4.875 5.625C4.875 5.83125 5.04375 6 5.25 6H5.625V8.25H4.875C4.66875 8.25 4.5 8.41875 4.5 8.625C4.5 8.83125 4.66875 9 4.875 9H7.125C7.33209 9 7.5 8.83209 7.5 8.625C7.5 8.41875 7.33125 8.25 7.125 8.25Z"})}),(0,Pi.jsx)("p",{className:"theplus_text_tooltip",children:(0,Pn.__)("*Keep Blank if you want to keep default Name","tpebl")})]})]}),(0,Pi.jsxs)("div",{className:"tpae_field_card_bottom",children:[(0,Pi.jsx)("input",{id:"theplus_google_recaptcha",className:"tpae_text_field",type:"text",value:s?.[i]?.plugin_title?s?.[i]?.plugin_title:"",onChange:e=>{p(e.target.value,"plugin_title")}}),(0,Pi.jsx)("p",{className:"theplus_text_info",children:sprintf((0,Pn.__)('Enter value for clients custom post title name. Default: "Tp %s"',"tpebl"),m("capitalize"))})]})]}),(0,Pi.jsxs)("div",{className:"tpae_field_card_cover",children:[(0,Pi.jsxs)("div",{className:"tpae_card_heading_strip",children:[(0,Pi.jsx)("label",{className:"tpae-in-sec-heading",children:(0,Pn.__)("Category Taxonomy Value","tpebl")}),(0,Pi.jsxs)("span",{className:"tpae-main-tooltip",children:[(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"black",children:(0,Pi.jsx)("path",{d:"M6 0C2.68594 0 0 2.68594 0 6C0 9.31406 2.68594 12 6 12C9.31406 12 12 9.31406 12 6C12 2.68594 9.31406 0 6 0ZM6 11.25C3.10547 11.25 0.75 8.89453 0.75 6C0.75 3.10547 3.10547 0.75 6 0.75C8.89453 0.75 11.25 3.10547 11.25 6C11.25 8.89453 8.89453 11.25 6 11.25ZM6 4.3125C6.31055 4.3125 6.5625 4.06078 6.5625 3.75C6.5625 3.43945 6.31055 3.1875 6 3.1875C5.68945 3.1875 5.4375 3.43828 5.4375 3.75C5.4375 4.06172 5.68828 4.3125 6 4.3125ZM7.125 8.25H6.375V5.625C6.375 5.41875 6.20625 5.25 6 5.25H5.25C5.04375 5.25 4.875 5.41875 4.875 5.625C4.875 5.83125 5.04375 6 5.25 6H5.625V8.25H4.875C4.66875 8.25 4.5 8.41875 4.5 8.625C4.5 8.83125 4.66875 9 4.875 9H7.125C7.33209 9 7.5 8.83209 7.5 8.625C7.5 8.41875 7.33125 8.25 7.125 8.25Z"})}),(0,Pi.jsx)("p",{className:"theplus_text_tooltip",children:(0,Pn.__)("*Keep Blank if you want to keep default Name","tpebl")})]})]}),(0,Pi.jsxs)("div",{className:"tpae_field_card_bottom",children:[(0,Pi.jsx)("input",{id:"theplus_google_recaptcha",className:"tpae_text_field",type:"text",value:s?.[i]?.category_plugin_name?s?.[i]?.category_plugin_name:"",onChange:e=>{p(e.target.value,"category_plugin_name")}}),(0,Pi.jsx)("p",{className:"theplus_text_info",children:sprintf((0,Pn.__)('Enter value for Category Taxonomy Value. Default: "theplus_%s_cat"',"tpebl"),m())})]})]})]}),"themes"==s?.[i]?.post_type&&(0,Pi.jsxs)(Pi.Fragment,{children:[(0,Pi.jsxs)("div",{className:"tpae_field_card_cover",children:[(0,Pi.jsxs)("div",{className:"tpae_card_heading_strip",children:[(0,Pi.jsx)("label",{className:"tpae-in-sec-heading",children:(0,Pn.__)("Prebuilt Post Name : (You can find that from here)","tpebl")}),(0,Pi.jsxs)("span",{className:"tpae-main-tooltip",children:[(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"black",children:(0,Pi.jsx)("path",{d:"M6 0C2.68594 0 0 2.68594 0 6C0 9.31406 2.68594 12 6 12C9.31406 12 12 9.31406 12 6C12 2.68594 9.31406 0 6 0ZM6 11.25C3.10547 11.25 0.75 8.89453 0.75 6C0.75 3.10547 3.10547 0.75 6 0.75C8.89453 0.75 11.25 3.10547 11.25 6C11.25 8.89453 8.89453 11.25 6 11.25ZM6 4.3125C6.31055 4.3125 6.5625 4.06078 6.5625 3.75C6.5625 3.43945 6.31055 3.1875 6 3.1875C5.68945 3.1875 5.4375 3.43828 5.4375 3.75C5.4375 4.06172 5.68828 4.3125 6 4.3125ZM7.125 8.25H6.375V5.625C6.375 5.41875 6.20625 5.25 6 5.25H5.25C5.04375 5.25 4.875 5.41875 4.875 5.625C4.875 5.83125 5.04375 6 5.25 6H5.625V8.25H4.875C4.66875 8.25 4.5 8.41875 4.5 8.625C4.5 8.83125 4.66875 9 4.875 9H7.125C7.33209 9 7.5 8.83209 7.5 8.625C7.5 8.41875 7.33125 8.25 7.125 8.25Z"})}),(0,Pi.jsx)("p",{className:"theplus_text_tooltip",children:(0,Pn.__)("*Keep Blank if you want to keep default Name","tpebl")})]})]}),(0,Pi.jsxs)("div",{className:"tpae_field_card_bottom",children:[(0,Pi.jsx)("input",{id:"theplus_google_recaptcha",className:"tpae_text_field",type:"text",value:s?.[i]?.theme_name?s?.[i]?.theme_name:"",onChange:e=>{p(e.target.value,"theme_name")}}),(0,Pi.jsx)("p",{className:"theplus_text_info",children:sprintf((0,Pn.__)('Enter the value of your current post type name which is prebuilt with your theme. E.g.: "theplus_%s".',"tpebl"),m())})]})]}),(0,Pi.jsxs)("div",{className:"tpae_field_card_cover",children:[(0,Pi.jsxs)("div",{className:"tpae_card_heading_strip",children:[(0,Pi.jsx)("label",{className:"tpae-in-sec-heading",children:(0,Pn.__)("Prebuilt Category Taxonomy Value : (You can find that from here)","tpebl")}),(0,Pi.jsxs)("span",{className:"tpae-main-tooltip",children:[(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"black",children:(0,Pi.jsx)("path",{d:"M6 0C2.68594 0 0 2.68594 0 6C0 9.31406 2.68594 12 6 12C9.31406 12 12 9.31406 12 6C12 2.68594 9.31406 0 6 0ZM6 11.25C3.10547 11.25 0.75 8.89453 0.75 6C0.75 3.10547 3.10547 0.75 6 0.75C8.89453 0.75 11.25 3.10547 11.25 6C11.25 8.89453 8.89453 11.25 6 11.25ZM6 4.3125C6.31055 4.3125 6.5625 4.06078 6.5625 3.75C6.5625 3.43945 6.31055 3.1875 6 3.1875C5.68945 3.1875 5.4375 3.43828 5.4375 3.75C5.4375 4.06172 5.68828 4.3125 6 4.3125ZM7.125 8.25H6.375V5.625C6.375 5.41875 6.20625 5.25 6 5.25H5.25C5.04375 5.25 4.875 5.41875 4.875 5.625C4.875 5.83125 5.04375 6 5.25 6H5.625V8.25H4.875C4.66875 8.25 4.5 8.41875 4.5 8.625C4.5 8.83125 4.66875 9 4.875 9H7.125C7.33209 9 7.5 8.83209 7.5 8.625C7.5 8.41875 7.33125 8.25 7.125 8.25Z"})}),(0,Pi.jsx)("p",{className:"theplus_text_tooltip",children:(0,Pn.__)("*Keep Blank if you want to keep default Name","tpebl")})]})," "]}),(0,Pi.jsxs)("div",{className:"tpae_field_card_bottom",children:[(0,Pi.jsx)("input",{id:"theplus_google_recaptcha",className:"tpae_text_field",type:"text",value:s?.[i]?.category_name?s?.[i]?.category_name:"",onChange:e=>{p(e.target.value,"category_name")}}),(0,Pi.jsx)("p",{className:"theplus_text_info",children:sprintf((0,Pn.__)('Enter the value of your current Category Taxonomy Value which is prebuilt with your theme. E.g.: "theplus_%s".',"tpebl"),m())})]})]})]})]})]});var f})),lo=Oi((e=>({tpae_white_lable_data:e.White_label.white_lable_rx,plugin_check:e.check_plugin.plugin_status_rx})))((e=>{var n=tpae_db_object.tpae_url,i=tpae_db_object.nonce,o=tpae_db_object.ajax_url,s="https://wdesignkit.com/images/plugins/theme-builder/";const r=Z(),[a,l]=(0,t.useState)((0,Pn.__)("Enable Theme Builder","tpebl"));(0,t.useEffect)((()=>{e?.tpae_white_lable_data?.plugin_ads&&"on"==e?.tpae_white_lable_data?.plugin_ads&&r("/")}),[e?.tpae_white_lable_data?.plugin_ads]);let c=[{title:(0,Pn.__)("Advanced Header Builder","tpebl"),description:(0,Pn.__)("Get rid of the limited Header customizer. Use Elementor Widgets or Blocks to create custom menu.","tpebl"),image:n+"assets/images/new_dashboard/advanced-header-builder.png",q_image:s+"advanced-header-builder.png"},{title:(0,Pn.__)("Advanced Footer Builder","tpebl"),description:(0,Pn.__)("Your custom Footer with no limit of layout. Create any footer layout you want with our Footer Builder.","tpebl"),image:n+"assets/images/new_dashboard/advanced-footer-builder.png",q_image:s+"advanced-footer-builder.png"},{title:(0,Pn.__)("Breadcrumbs Bar","tpebl"),description:(0,Pn.__)("Help users navigate your website by adding breadcrumb bar that shows the path they've taken.","tpebl"),image:n+"assets/images/new_dashboard/breadcrumbs-bar.png",q_image:s+"breadcrumbs-bar.png"},{title:(0,Pn.__)("404 Page","tpebl"),description:(0,Pn.__)('Turn a "Page Not Found" into an opportunity by customizing your 404 error page with your branding and helpful content.',"tpebl"),image:n+"assets/images/new_dashboard/404-page.png",q_image:s+"404-page.png"},{title:(0,Pn.__)("Single Pages","tpebl"),description:(0,Pn.__)("Create custom Single pages for your CPT, Blog Posts, or WooCommerce Product Pages.","tpebl"),image:n+"assets/images/new_dashboard/single-pages.png",q_image:s+"single-pages.png"},{title:(0,Pn.__)("Archive Pages","tpebl"),description:(0,Pn.__)("Create custom listing pages for posts, CPT or WooCommerce Products.","tpebl"),image:n+"assets/images/new_dashboard/archive-pages.png",q_image:s+"archive-pages.png"},{title:(0,Pn.__)("Code Snippets","tpebl"),description:(0,Pn.__)("Easily add and manage custom PHP, CSS, or JS code snippets without editing theme files. Enhance your site functionality with safe and modular code blocks.","tpebl"),image:n+"assets/images/new_dashboard/code-snippets.png",q_image:s+"code-snippets.png"},{title:(0,Pn.__)("Display Rules for Theme Builder Sections","tpebl"),description:(0,Pn.__)("Control where and how your theme builder sections appear on your site.","tpebl"),image:n+"assets/images/new_dashboard/display-rules-sections.png",q_image:s+"display-rules-sections.png"},{title:(0,Pn.__)("Action & Filter Hooks","tpebl"),description:(0,Pn.__)("Fine-tune your website's behavior and appearance by utilizing action and filter hooks for developers to extend functionalities.","tpebl"),image:n+"assets/images/new_dashboard/action-filter-hooks.png",q_image:s+"action-filter-hooks.png"}];return(0,Pi.jsxs)("div",{className:"theplus_theme_builder_cover_main tpae-main-container",children:[(0,Pi.jsxs)("div",{className:"tpae-section-heading-cover",children:[(0,Pi.jsx)("h3",{className:"tpae-section-heading",children:(0,Pn.__)("Theme Builder","tpebl")}),(0,Pi.jsx)("div",{className:"tpae_head_tgl_btn_grp",children:"active"!==e?.plugin_check[3]?.status?(0,Pi.jsx)("button",{className:"tpae-purple-common-btn",onClick:()=>{(async()=>{l((0,Pn.__)("Installing...","tpebl"));let e=new FormData;e.append("action","tpae_dashboard_ajax_call"),e.append("nonce",i),e.append("type","tpae_plugin_install"),e.append("slug","nexter-extension/nexter-extension.php"),e.append("name","nexter-extension"),await In.post(o,e)&&(l((0,Pn.__)("Installed Successfully","tpebl")),window.location.reload())})()},children:a}):(0,Pi.jsx)("a",{href:"edit.php?post_type=nxt_builder",target:"_blank",rel:"noopener noreferrer",className:"tpae-purple-common-btn",children:(0,Pn.__)("Open Theme Builder","tpebl")})})]}),(0,Pi.jsxs)("div",{className:"theplus_theme_builder_box_cover_main",children:[(0,Pi.jsx)("h3",{className:"tpae-in-sec-heading",children:(0,Pn.__)("Get FREE Theme Builder for Elementor with our Nexter Extension","tpebl")}),(0,Pi.jsx)("div",{className:"theplus_theme_builder_grid_view_box",children:c.length>0&&c.map(((e,t)=>(0,Pi.jsxs)("div",{className:"theplus_theme_builder_box",children:[(0,Pi.jsxs)("div",{className:"theplus_theme_builder_cover_img_box",children:[(0,Pi.jsx)("img",{className:"theplus_theme_builder_img",src:e?.image,draggable:!1}),(0,Pi.jsx)("img",{className:"theplus_theme_builder_img",src:e?.q_image,draggable:!1,style:{position:"absolute",left:0}})]}),(0,Pi.jsxs)("div",{className:"theplus_theme_builder_description",children:[(0,Pi.jsx)("h4",{className:"tpae_theme_build_title tpae-in-sec-heading",children:e?.title}),(0,Pi.jsx)("p",{className:"tpae_tb_crd_desc",children:e?.description})]})]},t)))}),(0,Pi.jsx)("div",{className:"theplus_view_all_btm_btn",children:(0,Pi.jsx)("a",{href:"https://nexterwp.com/nexter-extension",target:"_blank",rel:"noopener noreferrer",className:"tpae-ghost-btn",children:(0,Pn.__)("Learn More","tpebl")})})]})]})})),co={nexter_theme:{logo:"nexter-theme-product-logo.png",product_txt:"Nexter WP Theme",Product_Url:"https://nexterwp.com/nexter-theme/?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings"},wdesignkit:{logo:"wdesignkit-product-logo.png",product_txt:"WDesignKit – Templates, Widgets, Cloud Storage & More",Product_Url:"https://wdesignkit.com/?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings",id:"wdesignkit"},the_plus_blocks:{logo:"nexter-blocks.svg",product_txt:"Nexter Blocks",Product_Url:"https://nexterwp.com/nexter-blocks/?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings",id:"the-plus-addons-for-block-editor"},nexter_extension:{logo:"nexter-extention-product-logo.svg",product_txt:"Nexter Extension",Product_Url:"https://nexterwp.com/nexter-extension/?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings",id:"nexter-extension"},uichemy:{logo:"uichemy-product-logo.png",product_txt:"UiChemy - Figma to Elementor Convertor",Product_Url:"https://uichemy.com/?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings",id:"uichemy"}},ho=Oi((e=>({tpae_white_lable_data:e.White_label.white_lable_rx,plugin_check:e.check_plugin.plugin_status_rx,tpae_dashboard_data:e.Dashboard_data.db_rx})),(e=>({tpae_set_plugin_status:t=>e(Hi(t))})))((e=>{const[n,i]=(0,t.useState)({"the-plus-addons-for-block-editor":"done",uichemy:"done",wdesignkit:"done","nexter-extension":"done"}),o=(0,t.useRef)([]),s=(0,t.useRef)(n);var r=tpae_db_object.tpae_url,a=tpae_db_object.nonce,l=tpae_db_object.ajax_url;const c=Z();(0,t.useEffect)((()=>{var t=Object.assign({},n);e?.plugin_check?.length>0&&e?.plugin_check.map((e=>{t[e.name]&&(t=Object.assign({},t,{[e.name]:e.status}))})),i(t),s.current=t}),[e?.plugin_check]),(0,t.useEffect)((()=>{e?.tpae_white_lable_data?.plugin_ads&&"on"==e?.tpae_white_lable_data?.plugin_ads&&c("/")}),[e?.tpae_white_lable_data?.plugin_ads]);const d=async(e,t)=>{s.current=Object.assign({},s.current,{[e]:"loading"}),i(s.current),o.current.filter((e=>"loading"==e.status)).length>0?o.current.push({status:"pending",data:e,type:t}):(o.current.push({status:"loading",data:e,type:t}),await h(e,t).then((async e=>{if(null!=e&&o.current.length>0){let e=o.current.findIndex((e=>"loading"==e.status));if(await o.current.splice(e,1),o.current.length>0){let e=o.current[0].data,t=o.current[0].type;await o.current.splice(0,1),await d(e,t)}}})))},h=async(t,n)=>{let o=new FormData;o.append("action","tpae_dashboard_ajax_call"),o.append("nonce",a),o.append("type","tpae_plugin_install"),o.append("slug",n),o.append("name",t);let r=await In.post(l,o);if(r.success){let e=Object.assign({},s.current,{[t]:r.status});s.current=e,i(s.current)}else{let e=Object.assign({},s.current,{[t]:"activated"});s.current=e,i(s.current)}const c=e?.plugin_check.map((e=>{const t=s.current[e.name];return{...e,status:t}}));return e.tpae_set_plugin_status(c),!0},p=(e,t)=>"unavailable"===n[e]?(0,Pi.jsx)("button",{className:"tpae-install-btn",onClick:()=>{d(e,t)},children:(0,Pn.__)("Install & Activate","tpebl")}):"inactive"===n[e]?(0,Pi.jsx)("button",{className:"tpae-install-btn",onClick:()=>{d(e,t)},children:(0,Pn.__)("Activate Now","tpebl")}):"loading"===n[e]?(0,Pi.jsx)("button",{className:"tpae-install-btn",children:(0,Pi.jsx)("span",{className:"tpae-loading-circle"})}):(0,Pi.jsxs)("button",{className:"tpae-install-btn theplus-success",children:[(0,Pn.__)("Activated","tpebl"),(0,Pi.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 20 20",fill:"none",children:[(0,Pi.jsx)("path",{d:"M9.24735 0.0195866C7.79655 0.156374 6.69379 0.465122 5.48936 1.07089C3.9017 1.86425 2.43135 3.21257 1.46546 4.76021C0.76548 5.87796 0.257115 7.32008 0.0498588 8.7661C-0.0166196 9.22727 -0.0166196 10.7671 0.0498588 11.2283C0.2141 12.3812 0.519118 13.3895 0.996199 14.3548C1.53194 15.4491 2.05985 16.1838 2.92798 17.0554C3.7922 17.9152 4.53911 18.4506 5.59103 18.9665C6.3262 19.326 6.79938 19.5019 7.54628 19.6895C9.50153 20.1819 11.4646 20.0881 13.3729 19.412C13.9595 19.2049 14.9684 18.6968 15.4846 18.3529C16.6656 17.5634 17.7253 16.477 18.4918 15.2732C18.7733 14.8316 19.2269 13.8936 19.4107 13.3739C20.3297 10.7866 20.1694 8.01182 18.961 5.58484C18.4761 4.60779 17.9326 3.83788 17.17 3.05234C16.3332 2.18472 15.4885 1.57114 14.3896 1.0279C13.2321 0.457304 12.1528 0.148558 10.8702 0.031311C10.4713 -0.00386238 9.56801 -0.0116787 9.24735 0.0195866Z",fill:"#14C38E"}),(0,Pi.jsx)("path",{d:"M13.8261 6.73158C13.7733 6.75427 12.4461 8.05869 10.8776 9.63534L8.01967 12.4975L6.95643 11.4313C5.80646 10.2819 5.79892 10.2781 5.46712 10.3424C5.28238 10.3764 5.05615 10.6033 5.02222 10.7885C4.95812 11.1288 4.9355 11.1023 6.39087 12.5618C7.84624 14.0212 7.81607 13.9985 8.15918 13.9343C8.28737 13.9116 8.65687 13.5562 11.4432 10.7658C13.7243 8.47837 14.5914 7.58607 14.6216 7.49155C14.7046 7.23822 14.6141 6.966 14.3841 6.79586C14.2672 6.70889 13.9656 6.67487 13.8261 6.73158Z",fill:"white"})]})]});return(0,Pi.jsxs)("div",{className:"theplus_products_cover_main tpae-main-container "+(e?.tpae_dashboard_data?.success?"":"theplus-skeleton"),children:[(0,Pi.jsxs)("div",{className:"tpae-section-heading-cover",children:[(0,Pi.jsx)("h3",{className:"tpae-section-heading",children:(0,Pn.__)("More Products","tpebl")}),(0,Pi.jsx)("div",{className:"tpae_head_tgl_btn_grp",children:(0,Pi.jsx)("a",{href:"https://posimyth.com/",target:"_blank",rel:"noopener noreferrer",className:"tpae-purple-common-btn",children:(0,Pn.__)("Visit Official Website","tpebl")})})]}),Object.entries(co).map((([t,n])=>{let i=e.plugin_check.findIndex((e=>e.name===n.id)),o=e.plugin_check[i]?.plugin_slug,s=e.plugin_check[i]?.name;return e.plugin_check[i],(0,Pi.jsx)("div",{className:"theplus_products_box_cover_main",children:(0,Pi.jsxs)("div",{className:"theplus_product_box",children:[(0,Pi.jsxs)("div",{className:"theplus_product_logo_title_cover",children:[(0,Pi.jsx)("div",{className:"theplus_product_logo",children:(0,Pi.jsx)("img",{src:r+"assets/images/products/"+n.logo,draggable:!1})}),(0,Pi.jsx)("h4",{className:"theplus_product_name tpae-in-sec-heading",children:n.product_txt})]}),(0,Pi.jsxs)("div",{className:"theplus-installation",children:[n.id&&p(s,o),(0,Pi.jsx)("a",{href:n.Product_Url,target:"_blank",rel:"noopener noreferrer",className:"tpae-ghost-btn",children:(0,Pn.__)("Learn More","tpebl")})]})]})},t)}))]})})),po=Oi((e=>({tpae_performance:e.Performance_data.performance_rx,tpae_dashboard_data:e.Dashboard_data.db_rx})),(e=>({tpae_set_performances:t=>e(Gi(t))})))((e=>{const[n,i]=(0,t.useState)(""),[o,s]=(0,t.useState)(!1),[r,a]=(0,t.useState)(!1),[l,c]=(0,t.useState)("PURGE ALL ASSETS");var d=tpae_db_object.tpae_url,h=tpae_db_object.nonce,p=tpae_db_object.ajax_url;let u=[{label:"Smart Optimised (Recommended)",value:"external"},{label:"On Demand Assets",value:"separate"}];return(0,Pi.jsxs)("div",{className:"theplus_performance_cover_main tpae-main-container "+(e?.tpae_dashboard_data?.success?"":"theplus-skeleton"),children:[(0,Pi.jsx)("div",{className:"tpae-section-heading-cover",children:(0,Pi.jsx)("h3",{className:"tpae-section-heading",children:(0,Pn.__)("Performance","tpebl")})}),(0,Pi.jsx)("div",{className:"theplus_performance_content_cover",children:(0,Pi.jsxs)("div",{className:"tpae_field_card_cover",children:[(0,Pi.jsxs)("div",{className:"tpae_asset_cover",children:[(0,Pi.jsxs)("span",{className:"tpae_performance_heading",children:[(0,Pi.jsx)("h3",{className:"tpae-in-sec-heading theplus_top_sec_title",children:(0,Pn.__)("Asset Manager","tpebl")}),r&&(0,Pi.jsxs)("span",{className:"tpae_save_tag",children:[(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",fill:"none",children:(0,Pi.jsx)("path",{stroke:"#007411",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".75",d:"M8 2.75L3.875 6.875 2 5"})}),(0,Pi.jsx)("span",{children:"Saved"})]})]}),(0,Pi.jsx)("div",{className:"tpae_head_tgl_btn_grp",children:"external"==e?.tpae_performance?.plus_cache_option&&(0,Pi.jsx)("button",{className:"tpae-ghost-btn",onClick:e=>{(async e=>{if(!confirm("Are you sure you want to remove all cached files? It will remove all cached JS and CSS files from your server. It will generate automatically on your next visit of page."))return;c("PURGING...");var t=tpae_db_object.tpae_nonce_old;let n=new FormData;n.append("action","smart_perf_clear_cache"),n.append("security",t),(await In.post(p,n)).data&&(e.target.style.backgroundColor="white",e.target.style.color="lightgreen",e.target.style.border="1px solid lightgreen",c("DONE!"),setTimeout((()=>{e.target.removeAttribute("style"),c("PURGE ALL ASSETS")}),2e3))})(e)},children:l})})]}),(0,Pi.jsxs)("div",{className:"tpae_field_card_bottom",children:[(0,Pi.jsx)("div",{className:"tpae_field_dropdown",children:(0,Pi.jsxs)("div",{className:"tpae_ctm_drpdwn",onClick:e=>{(e=>{let t=e.target.closest(".tpae_ctm_drpdwn"),n=t.querySelector(".tpae_ctm_drpdwn_content")?t.querySelector(".tpae_ctm_drpdwn_content"):"";n&&(Object.values(n.classList).includes("theplus_wp_show")?n.classList.remove("theplus_wp_show"):n.classList.add("theplus_wp_show"))})(e)},children:[(0,Pi.jsxs)("div",{className:"tpae_ctm_drpdwn_header",children:[(0,Pi.jsx)("label",{htmlFor:"tpae_preloader",children:(()=>{let t=e?.tpae_performance?.plus_cache_option,n=u.findIndex((e=>e.value==t));if(n>-1)return u[n].label})()}),(0,Pi.jsx)("img",{src:d+"assets/svg/theplus_chevron_down.svg",draggable:!1})]}),(0,Pi.jsx)("div",{id:"tpae_preloader",className:"tpae_ctm_drpdwn_content",children:u.map(((t,n)=>(0,Pi.jsx)("span",{onClick:n=>(async t=>{let n={plus_cache_option:t};e.tpae_set_performances(n),i(t),a(!0),setTimeout((()=>{a(!1)}),2e3);let o=JSON.stringify(n),s=new FormData;s.append("action","tpae_dashboard_ajax_call"),s.append("nonce",h),s.append("type","tpae_performance_manage"),s.append("performance_option",o),await In.post(p,s)})(t.value),children:t.label},n)))})]})}),"external"==e?.tpae_performance?.plus_cache_option?(0,Pi.jsx)("p",{className:"theplus_text_info",children:(0,Pn.__)('In "Smart Optimised" method of caching, We use detect widgets used in each page, combine and minify all JS and CSS of page in two separate files for the best possible performance with least possible requests. All Cache stored at "SiteURL/wp-content/uploads/theplus-addons/".',"tpebl")}):(0,Pi.jsx)("p",{className:"theplus_text_info",children:(0,Pn.__)('In "On Demand Assets" method, We detect widgets used in page and based on that all assets of those widgets loaded in each page. It will have more requests compare to our recommended method but If you are having any complex cache plugin or server caching, You may choose this method.',"tpebl")})]})]})})]})})),uo=Oi((e=>({tpae_white_lable_data:e.White_label.white_lable_rx})),(e=>({tpae_set_white_lable:t=>e(white_lable_a_rx(t))})))((e=>{var n=tpae_db_object.tpae_url,i=tpae_db_object.nonce,o=tpae_db_object.ajax_url;const s=Z(),[r,a]=(0,t.useState)([]),[l,c]=(0,t.useState)((0,Pn.__)("Select Version","tpebl")),[d,h]=(0,t.useState)(""),[p,u]=(0,t.useState)(!1);(0,t.useEffect)((()=>{g()}),[]),(0,t.useEffect)((()=>{e?.tpae_white_lable_data?.rollback_tab&&"on"==e?.tpae_white_lable_data?.rollback_tab&&s("/")}),[e?.tpae_white_lable_data?.rollback_tab]);const g=async()=>{let e=new FormData;e.append("action","tpae_dashboard_ajax_call"),e.append("nonce",i),e.append("type","tpae_prev_version"),e.append("version","L_THEPLUS_VERSION");var t=(await In.post(o,e)).data;t&&a(t)};return(0,Pi.jsxs)("div",{className:"tpae_rollback_cover_main tpae-main-container",children:[(0,Pi.jsxs)("div",{className:"tpae-section-heading-cover",children:[(0,Pi.jsx)("div",{className:"tpae_sec_war_grp",children:(0,Pi.jsx)("h3",{className:"tpae-section-heading",children:(0,Pn.__)("Roll Back Plugin","tpebl")})}),(0,Pi.jsx)("div",{className:"tpae_head_tgl_btn_grp",children:p?(0,Pi.jsx)("button",{className:"tpae-purple-common-btn "+(d?"":"disabled"),disabled:!d&&!p,children:(0,Pi.jsx)("span",{className:"tpae_purple_loader"})}):(0,Pi.jsx)("button",{className:"tpae-purple-common-btn "+(d?"":"disabled"),onClick:()=>(async e=>{if(!e||confirm("Are you sure you want to reinstall the previous version?")){if(u(!0),e){let t=new FormData;t.append("action","tpae_dashboard_ajax_call"),t.append("nonce",i),t.append("type","tpae_rollback_check"),t.append("version",`${e}`),await In.post(o,t).then((async()=>{window.location.reload()}))}setTimeout((()=>{u(!1)}),1500)}})(d),disabled:!d&&!p,children:(0,Pn.__)("Rollback","tpebl")})})]}),(0,Pi.jsx)("div",{className:"theplus_rollback_content_cover",children:(0,Pi.jsxs)("div",{className:"tpae_field_card",children:[(0,Pi.jsx)("div",{className:"theplus_card_top_detail",children:(0,Pi.jsx)("div",{className:"tpae_field_card_heading_strip",children:(0,Pi.jsx)("label",{htmlFor:"tpae_lazyload",className:"tpae_field_card_title",children:(0,Pn.__)("Rollback to Previous Free Version","tpebl")})})}),(0,Pi.jsxs)("div",{className:"tpae_field_dropdown",children:[(0,Pi.jsxs)("div",{className:"tpae_ctm_drpdwn",onClick:e=>{(e=>{let t=e.target.closest(".tpae_ctm_drpdwn"),n=t.querySelector(".tpae_ctm_drpdwn_content")?t.querySelector(".tpae_ctm_drpdwn_content"):"";n&&(Object.values(n.classList).includes("theplus_wp_show")?n.classList.remove("theplus_wp_show"):n.classList.add("theplus_wp_show"))})(e)},children:[(0,Pi.jsxs)("div",{className:"tpae_ctm_drpdwn_header",children:[(0,Pi.jsx)("label",{htmlFor:"tpae_preloader",children:l}),(0,Pi.jsx)("img",{src:n+"assets/svg/theplus_chevron_down.svg",draggable:!1})]}),(0,Pi.jsx)("div",{id:"tpae_preloader",className:"tpae_ctm_drpdwn_content",children:r.length>0&&r.map(((e,t)=>(0,Pi.jsx)("span",{value:`${e}`,onClick:()=>{c(e),h(e)},children:e},t)))})]}),(0,Pi.jsxs)("div",{className:"tpae_warning_text",children:[(0,Pi.jsx)("img",{src:n+"assets/svg/theplus_warning.svg",draggable:!1}),(0,Pn.__)("Warning: Please backup your database before making the rollback.","tpebl")]})]})]})})]})})),go=()=>(0,Pi.jsxs)("div",{className:"tpae_whitelabel_content_cover tpae-white-label-skeleton",children:[(0,Pi.jsxs)("div",{className:"tpae_field_card_cover",children:[(0,Pi.jsx)("span",{className:"tpae-skeleton-heading"}),(0,Pi.jsx)("span",{className:"skeleton-text-field"})]}),(0,Pi.jsxs)("div",{className:"tpae_field_card_cover",children:[(0,Pi.jsx)("span",{className:"tpae-skeleton-heading"}),(0,Pi.jsx)("span",{className:"tpae-textarea-skeleton"})]}),(0,Pi.jsxs)("div",{className:"theplus_field_divider_cover",children:[(0,Pi.jsxs)("div",{className:"tpae_field_card_cover",children:[(0,Pi.jsx)("span",{className:"tpae-skeleton-heading"}),(0,Pi.jsx)("span",{className:"skeleton-text-field"})]}),(0,Pi.jsxs)("div",{className:"tpae_field_card_cover",children:[(0,Pi.jsx)("span",{className:"tpae-skeleton-heading"}),(0,Pi.jsx)("span",{className:"skeleton-text-field"})]})]}),(0,Pi.jsxs)("div",{className:"tpae_field_card_cover",children:[(0,Pi.jsx)("span",{className:"tpae-skeleton-heading"}),(0,Pi.jsx)("span",{className:"skeleton-text-field"})]}),(0,Pi.jsxs)("div",{className:"tpae_field_card_cover",children:[(0,Pi.jsx)("span",{className:"tpae-skeleton-heading"}),(0,Pi.jsx)("span",{className:"tpae-textarea-skeleton"})]}),(0,Pi.jsxs)("div",{className:"theplus_field_divider_cover",children:[(0,Pi.jsxs)("div",{className:"tpae_field_card_cover",children:[(0,Pi.jsx)("span",{className:"tpae-skeleton-heading"}),(0,Pi.jsx)("span",{className:"skeleton-text-field"})]}),(0,Pi.jsxs)("div",{className:"tpae_field_card_cover",children:[(0,Pi.jsx)("span",{className:"tpae-skeleton-heading"}),(0,Pi.jsx)("span",{className:"skeleton-text-field"})]})]}),(0,Pi.jsxs)("div",{className:"tpae_field_card_cover",children:[(0,Pi.jsx)("span",{className:"tpae-skeleton-heading"}),(0,Pi.jsx)("span",{className:"tpae-feedback-skeleton"})]})]}),mo=Oi((e=>({tpae_white_lable_data:e.White_label.white_lable_rx,tpae_license_data:e.license_data.license_rx,tpae_dashboard_data:e.Dashboard_data.db_rx})),(e=>({tpae_set_white_lable:t=>e(white_lable_a_rx(t))})))((e=>{var n=tpae_db_object.tpae_pro,i=tpae_db_object.nonce,o=tpae_db_object.ajax_url;const s=Z(),[r,a]=(0,t.useState)(!1),[l,c]=(0,t.useState)(!1),[d,h]=(0,t.useState)({}),p=[{text:(0,Pn.__)("Hide all Help Links?","tpebl"),key:"help_link"},{text:(0,Pn.__)("Hide all Plugin Updates related News?","tpebl"),key:"plugin_news"},{text:(0,Pn.__)("Hide Our Recommended plugin Ads?","tpebl"),key:"plugin_ads"},{text:(0,Pn.__)("Hide Starter Templates Tab?","tpebl"),key:"template_tab"},{text:(0,Pn.__)("Hide Licence Key Tab?","tpebl"),key:"licence_tab"},{text:(0,Pn.__)("Hide Plugin RollBack Tab?","tpebl"),key:"rollback_tab"}];(0,t.useEffect)((()=>{h(e.tpae_white_lable_data||""),c(e.tpae_license_data?.license||!1),"on"==e?.tpae_white_lable_data?.tp_white_label_hidden&&s("/")}),[e.tpae_white_lable_data,e.tpae_license_data]);const u=(e,t)=>{let n=Object.assign({},d,{[t]:e});h(n)},g=()=>"0"==n||"1"==n&&!1===l?(0,Pi.jsx)(Xi,{heading:(0,Pn.__)("Upgrade to The Plus Addons for Elementor Pro and Brand the Widgets under your Agency's Name","tpebl"),parent_class:"tpae_whitlabel_overlay",inner_class:"theplus_whitlabel_popup"}):void 0;return(0,Pi.jsxs)("div",{className:"tpae_whitelabel_inn_main tpae-main-container",children:[(0,Pi.jsxs)("div",{className:"tpae-section-heading-cover",children:[(0,Pi.jsx)("h3",{className:"tpae-section-heading",children:(0,Pn.__)("White Label","tpebl")}),"1"==n&&!1!==l&&(0,Pi.jsx)(Pi.Fragment,{children:(0,Pi.jsxs)("div",{className:"tpae_head_tgl_btn_grp",children:[(0,Pi.jsx)("button",{className:"tpae-purple-common-btn",onClick:()=>{(async()=>{if(!confirm("Are you sure you want to Reset this Form Data?"))return;let e=new FormData;e.append("action","tpae_dashboard_ajax_call"),e.append("type","tpae_wp_option_manage"),e.append("key","theplus_white_label"),e.append("operation","delete"),e.append("nonce",i),await In.post(o,e)&&(h(""),window.location.reload())})()},children:(0,Pn.__)("Reset","tpebl")}),(0,Pi.jsx)("button",{className:"tpae-purple-common-btn",onClick:()=>{(async()=>{let e=new FormData;e.append("action","tpae_dashboard_ajax_call"),e.append("type","set_whitelabel"),e.append("nonce",i),e.append("whitelable_data",JSON.stringify(d)),(await In.post(o,e)).data.success&&window.location.reload()})()},children:(0,Pn.__)("Save Setting","tpebl")})]})})]}),e.tpae_dashboard_data.success?(0,Pi.jsxs)("div",{className:"tpae_whitelabel_content_cover",children:[(0,Pi.jsxs)("div",{className:"tpae_field_card_cover",children:[(0,Pi.jsx)("div",{className:"tpae_card_heading_strip",children:(0,Pi.jsx)("label",{className:"tpae-in-sec-heading",htmlFor:"tpae_plugin_name_pro",children:(0,Pn.__)("Plugin Name (PRO Version)","tpebl")})}),(0,Pi.jsx)("div",{className:"tpae_field_card_bottom",children:(0,Pi.jsx)("input",{id:"tpae_plugin_name_pro",className:"tpae_text_field",value:d?.tp_plugin_name?d?.tp_plugin_name:"",type:"text",onChange:e=>{u(e.target.value,"tp_plugin_name")},placeholder:(0,Pn.__)("Enter Plugin Name","tpebl")})})]}),(0,Pi.jsxs)("div",{className:"tpae_field_card_cover",children:[(0,Pi.jsx)("div",{className:"tpae_card_heading_strip",children:(0,Pi.jsx)("label",{htmlFor:"tpae_plugin_desc_pro",className:"tpae-in-sec-heading",children:(0,Pn.__)("Plugin Description (PRO Version)","tpebl")})}),(0,Pi.jsx)("div",{className:"tpae_field_card_bottom",children:(0,Pi.jsx)("textarea",{rows:"5",id:"tpae_plugin_desc_pro",className:"tpae_text_field",value:d?.tp_plugin_desc?d.tp_plugin_desc:"",onChange:e=>{u(e.target.value,"tp_plugin_desc")},type:"text",placeholder:(0,Pn.__)("Enter Plugin Descriptinon","tpebl")})})]}),(0,Pi.jsxs)("div",{className:"theplus_field_divider_cover",children:[(0,Pi.jsxs)("div",{className:"tpae_field_card_cover",children:[(0,Pi.jsx)("div",{className:"tpae_card_heading_strip",children:(0,Pi.jsx)("label",{className:"tpae-in-sec-heading",htmlFor:"theplus_developer_name_pro",children:(0,Pn.__)("Developer/Agency (PRO Version)","tpebl")})}),(0,Pi.jsx)("div",{className:"tpae_field_card_bottom",children:(0,Pi.jsx)("input",{id:"theplus_developer_name_pro",className:"tpae_text_field",value:d?.tp_author_name?d.tp_author_name:"",onChange:e=>{u(e.target.value,"tp_author_name")},type:"text",placeholder:(0,Pn.__)("Enter Developer Name","tpebl")})})]}),(0,Pi.jsxs)("div",{className:"tpae_field_card_cover",children:[(0,Pi.jsx)("div",{className:"tpae_card_heading_strip",children:(0,Pi.jsx)("label",{className:"tpae-in-sec-heading",htmlFor:"theplus_web_url_pro",children:(0,Pn.__)("Website URL (PRO Version)","tpebl")})}),(0,Pi.jsxs)("div",{className:"tpae_field_card_bottom",children:[(0,Pi.jsx)("input",{id:"theplus_web_url_pro",className:"tpae_text_field",value:d?.tp_author_uri?d.tp_author_uri:"",onChange:e=>{u(e.target.value,"tp_author_uri")},type:"text",placeholder:(0,Pn.__)("Enter Web URL","tpebl")}),r&&!d?.tp_author_uri&&(0,Pi.jsx)("p",{className:"theplus_text_info",children:(0,Pn.__)('Enter value for clients custom post type name. Default: "theplus_clients"',"tpebl")})]})]})]}),(0,Pi.jsxs)("div",{className:"tpae_field_card_cover",children:[(0,Pi.jsx)("div",{className:"tpae_card_heading_strip",children:(0,Pi.jsx)("label",{htmlFor:"theplus_plugin_name_free",className:"tpae-in-sec-heading",children:(0,Pn.__)("Plugin Name (Free Version)","tpebl")})}),(0,Pi.jsx)("div",{className:"tpae_field_card_bottom",children:(0,Pi.jsx)("input",{id:"theplus_plugin_name_free",className:"tpae_text_field",value:d?.l_tp_plugin_name?d.l_tp_plugin_name:"",onChange:e=>{u(e.target.value,"l_tp_plugin_name")},type:"text",placeholder:(0,Pn.__)("Enter Plugin Name","tpebl")})})]}),(0,Pi.jsxs)("div",{className:"tpae_field_card_cover",children:[(0,Pi.jsx)("div",{className:"tpae_card_heading_strip",children:(0,Pi.jsx)("label",{htmlFor:"theplus_plugin_description_free",className:"tpae-in-sec-heading",children:(0,Pn.__)("Plugin Description (Free Version)","tpebl")})}),(0,Pi.jsxs)("div",{className:"tpae_field_card_bottom",children:[(0,Pi.jsx)("textarea",{rows:"5",id:"theplus_plugin_description_free",className:"tpae_text_field",value:d?.l_tp_plugin_desc?d.l_tp_plugin_desc:"",type:"text",onChange:e=>{u(e.target.value,"l_tp_plugin_desc")},placeholder:(0,Pn.__)("Enter Plugin Description","tpebl")}),r&&!d?.l_tp_plugin_desc&&(0,Pi.jsx)("p",{className:"theplus_text_info",children:(0,Pn.__)('Enter value for clients custom post type name. Default: "theplus_clients"',"tpebl")})]})]}),(0,Pi.jsxs)("div",{className:"theplus_field_divider_cover",children:[(0,Pi.jsxs)("div",{className:"tpae_field_card_cover",children:[(0,Pi.jsx)("div",{className:"tpae_card_heading_strip",children:(0,Pi.jsx)("label",{className:"tpae-in-sec-heading",htmlFor:"theplus_developer_name_free",children:(0,Pn.__)("Developer/Agency (Free Version)","tpebl")})}),(0,Pi.jsxs)("div",{className:"tpae_field_card_bottom",children:[(0,Pi.jsx)("input",{id:"theplus_developer_name_free",className:"tpae_text_field",onChange:e=>{u(e.target.value,"l_tp_author_name")},value:d?.l_tp_author_name?d.l_tp_author_name:"",type:"text",placeholder:(0,Pn.__)("Enter Developer Name","tpebl")}),r&&!d?.l_tp_author_name&&(0,Pi.jsx)("p",{className:"theplus_text_info",children:(0,Pn.__)('Enter value for clients custom post type name. Default: "theplus_clients"',"tpebl")})]})]}),(0,Pi.jsxs)("div",{className:"tpae_field_card_cover",children:[(0,Pi.jsx)("div",{className:"tpae_card_heading_strip",children:(0,Pi.jsx)("label",{className:"tpae-in-sec-heading",htmlFor:"theplus_web_url_free",children:(0,Pn.__)("Website URL (Free Version)","tpebl")})}),(0,Pi.jsxs)("div",{className:"tpae_field_card_bottom",children:[(0,Pi.jsx)("input",{id:"theplus_web_url_free",className:"tpae_text_field",value:d?.l_tp_author_uri?d.l_tp_author_uri:"",onChange:e=>{u(e.target.value,"l_tp_author_uri")},type:"text",placeholder:(0,Pn.__)("Enter Web URL","tpebl")}),r&&!d?.l_tp_author_uri&&(0,Pi.jsx)("p",{className:"theplus_text_info",children:(0,Pn.__)('Enter value for clients custom post type name. Default: "theplus_clients"',"tpebl")})]})]})]}),(0,Pi.jsxs)("div",{className:"tpae_field_card_cover",children:[(0,Pi.jsx)("div",{className:"tpae_card_heading_strip",children:(0,Pi.jsx)("label",{htmlFor:"theplus_plugin_logo",className:"tpae-in-sec-heading",children:(0,Pn.__)("Plus Icon/Logo","tpebl")})}),(0,Pi.jsx)("div",{className:"tpae_field_card_bottom",children:(0,Pi.jsxs)("div",{className:"theplus_upload_file_input_cover tpae_text_field",id:"theplus_plugin_logo",children:[d?.tp_plus_logo&&(0,Pi.jsx)("svg",{className:"tpae_wl_remove_img",onClick:()=>{(()=>{let e=Object.assign({},d,{tp_plus_logo:""});h(e)})()},width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Pi.jsx)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z"})}),(0,Pi.jsx)("div",{className:"theplus_upload_file_placeholder",onClick:()=>{(()=>{const e=wp.media({title:(0,Pn.__)("Select or Upload Media","tpebl"),button:{text:(0,Pn.__)("Use this media","tpebl")},multiple:!1,library:{type:"image"}});e.on("select",(()=>{const t=e.state().get("selection").first().toJSON();if("image"==t.type)u(t.url,"tp_plus_logo");else{let e=document.querySelector(".tpae_select_img_txt");e&&(e.style.color="red",setTimeout((()=>{e.style.color=""}),3e3))}})),e.open()})()},children:d?.tp_plus_logo?(0,Pi.jsx)("img",{src:d?.tp_plus_logo?d.tp_plus_logo:"",draggable:!1}):(0,Pi.jsxs)(Pi.Fragment,{children:[(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"45",height:"42",viewBox:"0 0 45 42",fill:"none",children:(0,Pi.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 0.75C0.5 0.335786 0.835786 0 1.25 0H2.75C3.16421 0 3.5 0.335786 3.5 0.75V2.25C3.5 2.66421 3.16421 3 2.75 3H1.25C0.835786 3 0.5 2.66421 0.5 2.25V0.75ZM30.5 22.6935C30.5 21.5302 31.7667 20.8097 32.7666 21.4042L44.0634 28.1212C45.1789 28.7845 44.9829 30.4552 43.7442 30.8423L40.2441 31.9361L43.5291 37.6102C43.9396 38.3193 43.7053 39.2265 43.0027 39.648L40.5391 41.1262C39.8209 41.5571 38.8889 41.3164 38.4692 40.5915L35.1917 34.9303L33.009 36.9145C32.0454 37.7905 30.5 37.1068 30.5 35.8046V22.6935ZM43.2968 29.4105L32 22.6935V35.8046L34.1827 33.8203C34.8902 33.1772 36.0108 33.3512 36.4898 34.1787L39.7674 39.8399L42.231 38.3618L38.9459 32.6876C38.4641 31.8554 38.8788 30.7912 39.7967 30.5043L43.2968 29.4105ZM8.75 0C8.33579 0 8 0.335786 8 0.75V2.25C8 2.66421 8.33579 3 8.75 3H10.25C10.6642 3 11 2.66421 11 2.25V0.75C11 0.335786 10.6642 0 10.25 0H8.75ZM15.5 0.75C15.5 0.335786 15.8358 0 16.25 0H17.75C18.1642 0 18.5 0.335786 18.5 0.75V2.25C18.5 2.66421 18.1642 3 17.75 3H16.25C15.8358 3 15.5 2.66421 15.5 2.25V0.75ZM23.75 0C23.3358 0 23 0.335786 23 0.75V2.25C23 2.66421 23.3358 3 23.75 3H25.25C25.6642 3 26 2.66421 26 2.25V0.75C26 0.335786 25.6642 0 25.25 0H23.75ZM23 8.25C23 7.83579 23.3358 7.5 23.75 7.5H25.25C25.6642 7.5 26 7.83579 26 8.25V9.75C26 10.1642 25.6642 10.5 25.25 10.5H23.75C23.3358 10.5 23 10.1642 23 9.75V8.25ZM16.25 12C14.5931 12 13.25 13.3431 13.25 15V36C13.25 37.6569 14.5931 39 16.25 39H26.75V37.5H16.25C15.4216 37.5 14.75 36.8284 14.75 36V15C14.75 14.1716 15.4216 13.5 16.25 13.5H37.25C38.0784 13.5 38.75 14.1716 38.75 15V20.25H40.25V15C40.25 13.3431 38.9069 12 37.25 12H16.25ZM0.5 8.25C0.5 7.83579 0.835786 7.5 1.25 7.5H2.75C3.16421 7.5 3.5 7.83579 3.5 8.25V9.75C3.5 10.1642 3.16421 10.5 2.75 10.5H1.25C0.835786 10.5 0.5 10.1642 0.5 9.75V8.25ZM1.25 15C0.835786 15 0.5 15.3358 0.5 15.75V17.25C0.5 17.6642 0.835786 18 1.25 18H2.75C3.16421 18 3.5 17.6642 3.5 17.25V15.75C3.5 15.3358 3.16421 15 2.75 15H1.25ZM0.5 23.25C0.5 22.8358 0.835786 22.5 1.25 22.5H2.75C3.16421 22.5 3.5 22.8358 3.5 23.25V24.75C3.5 25.1642 3.16421 25.5 2.75 25.5H1.25C0.835786 25.5 0.5 25.1642 0.5 24.75V23.25ZM8.75 22.5C8.33579 22.5 8 22.8358 8 23.25V24.75C8 25.1642 8.33579 25.5 8.75 25.5H10.25C10.6642 25.5 11 25.1642 11 24.75V23.25C11 22.8358 10.6642 22.5 10.25 22.5H8.75Z",fill:"#A1A1A1"})}),(0,Pi.jsx)("span",{className:"tpae_select_img_txt",children:(0,Pn.__)("Upload your Icon File Only .png, .jpg, .svg, .gif supported","tpebl")})]})})]})})]}),(0,Pi.jsxs)("div",{className:"tpae_wt_checkbox_list",children:[p.length>0&&p.map(((e,t)=>(0,Pi.jsxs)("div",{className:"tpae_check_box",children:[(0,Pi.jsx)("input",{type:"checkbox",id:"theplus_"+e.key,className:"theplus_enable_option_checkbox",checked:"on"==d?.[e.key],onChange:t=>{u(t.target.checked?"on":"hidden",e.key)}}),(0,Pi.jsx)("label",{className:"theplus_checkbox_label",htmlFor:"theplus_"+e.key,children:e.text})]},t))),(0,Pi.jsxs)("div",{className:"tpae_check_box tpae_en_force_ck",children:[(0,Pi.jsx)("input",{type:"checkbox",id:"theplus_enable_option",className:"theplus_enable_option_checkbox",checked:"on"==d?.tp_white_label_hidden,onChange:e=>{u(e.target.checked?"on":"hidden","tp_white_label_hidden")}}),(0,Pi.jsxs)("label",{className:"theplus_checkbox_label",htmlFor:"theplus_enable_option",children:[(0,Pi.jsx)("span",{children:(0,Pn.__)("Enable Force Disable Options : ","tpebl")}),(0,Pn.__)("If you enable this option, It will be completely hidden. If you want it back, You have to deactivate and activate plugin to make it work again.","tpebl")]})]})]}),(0,Pi.jsx)(g,{})]}):(0,Pi.jsx)(go,{})]})}));var fo=o(904);o(158),o(31),o(766);const _o=Oi((e=>({tpae_custom_data:e.Custom_code.custom_code_rx,plugin_check:e.check_plugin.plugin_status_rx})))((e=>{tpae_db_object.tpae_url;var n=e.tpae_custom_data.theplus_custom_css_editor,i=e.tpae_custom_data.theplus_custom_js_editor,o=tpae_db_object.nonce,s=tpae_db_object.ajax_url;const[r,a]=(0,t.useState)(""),[l,c]=(0,t.useState)(""),[d,h]=(0,t.useState)((0,Pn.__)("Save Settings","tpebl")),[p,u]=(0,t.useState)((0,Pn.__)("Enable Code Snippets","tpebl"));return(0,t.useRef)(null),(0,t.useEffect)((()=>{a(n),c(i)}),[n,i]),(0,Pi.jsxs)("div",{className:"tpae_cstm_css_js_inn_main",children:[(0,Pi.jsxs)("div",{className:"tpae-section-heading-cover",children:[(0,Pi.jsx)("h3",{className:"tpae-section-heading",children:(0,Pn.__)("Custom CSS & JS","tpebl")}),(0,Pi.jsx)("div",{className:"tpae_head_tgl_btn_grp",children:(0,Pi.jsx)("a",{className:"tpae-purple-common-btn",onClick:()=>(async()=>{h((0,Pn.__)("Saving...","tpebl"));var e={css:r,js:l};let t=new FormData;t.append("action","tpae_dashboard_ajax_call"),t.append("nonce",o),t.append("type","tpae_set_custom_css_js"),t.append("method","POST"),t.append("new_code",JSON.stringify(e));var n=await In.post(s,t);setTimeout((()=>{200===n.status&&h((0,Pn.__)("Save Settings","tpebl"))}),800)})(),children:d})})]}),(0,Pi.jsxs)("div",{className:"tpae_custome_code_cover",children:[(0,Pi.jsx)("div",{className:"tpae-label-container",children:(0,Pi.jsx)("div",{className:"tpae-in-sec-heading",children:(0,Pn.__)("Custom CSS","tpebl")})}),(0,Pi.jsx)("div",{className:"tpae-editor-inner-cn",children:(0,Pi.jsx)(fo.Ay,{mode:"css",theme:"twilight",className:"custom_css_editor",onChange:a,fontSize:14,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:r,setOptions:{enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,enableSnippets:!1,showLineNumbers:!0,tabSize:2},style:{width:"100%",height:"300px",border:"1px solid #ddd",borderRadius:"5px"}})})]}),(0,Pi.jsxs)("div",{className:"tpae_custome_code_cover",children:[(0,Pi.jsx)("div",{className:"tpae-label-container",children:(0,Pi.jsx)("div",{className:"tpae-in-sec-heading",children:(0,Pn.__)("Custom JS","tpebl")})}),(0,Pi.jsx)("div",{className:"tpae-editor-inner-cn",children:(0,Pi.jsx)(fo.Ay,{mode:"javascript",theme:"twilight",className:"custom_js_editor",onChange:c,fontSize:14,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:l,setOptions:{enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,enableSnippets:!1,showLineNumbers:!0,tabSize:2},style:{width:"100%",height:"300px",border:"1px solid #ddd",borderRadius:"5px"}})})]})]})})),bo=e=>(0,Pi.jsxs)("div",{className:"tpae_activ_pro_cover_main",children:[(0,Pi.jsx)("h3",{className:"tpae-in-sec-heading skeleton-heading"}),(0,Pi.jsxs)("div",{className:"tpae_activ_key_box",children:[(0,Pi.jsx)("span",{className:"tpae_text_field skeleton-text-field"}),(0,Pi.jsx)("span",{className:"tpae-purple-common-btn skeleton-btn"})]}),(0,Pi.jsx)("div",{className:"tpae_activated_msg",children:(0,Pi.jsx)("span",{className:"theplus_green_check skeleton-green-check"})})]}),wo=Oi((e=>({tpae_license_data:e.license_data.license_rx,tpae_dashboard_data:e.Dashboard_data.db_rx,tpae_white_lable_data:e.White_label.white_lable_rx})),(e=>({tpae_set_userinfo:t=>e(Wi(t)),tpae_set_widgets:t=>e(Bi(t)),tpae_set_extra_option:t=>e(Ui(t)),tpae_set_plugins:t=>e(Hi(t)),tpae_set_listing:t=>e(zi(t)),tpae_set_custom_data:t=>e(Vi(t)),tpae_set_performance:t=>e(Gi(t)),tpae_set_white_lable:t=>e(Ki(t)),tpae_set_license:t=>e(qi(t))})))((e=>{const n=Z(),i=K();var o=tpae_db_object.tpae_url,s=tpae_db_object.tpae_pro,r=tpae_db_object.nonce,a=tpae_db_object.ajax_url;const[l,c]=(0,t.useState)(""),[d,h]=(0,t.useState)(""),[p,u]=(0,t.useState)(!1),[g,m]=(0,t.useState)(!1);(0,t.useEffect)((()=>{"0"==s&&n("/upgrade_now")}),[i.pathname]),(0,t.useEffect)((()=>{e?.tpae_white_lable_data?.licence_tab&&"on"==e?.tpae_white_lable_data?.licence_tab&&n("/")}),[e?.tpae_white_lable_data?.licence_tab]),(0,t.useEffect)((()=>{c(e.tpae_license_data||[]),h(e.tpae_license_data.license_key||"")}),[e.tpae_license_data]);const f=async(t,n)=>{if("deactive"==n&&!confirm((0,Pn.__)("Are you sure you want to deactivate The Plus Addons for Elementor Pro License Key?","tpebl")))return;if("deactive"==n&&h(""),!d)return m((0,Pn.__)("Invalid Key Entered !","tpebl")),!1;d&&u(!0);let i=new FormData;i.append("action","tpae_dashboard_ajax_call"),i.append("type","tpae_license_manage"),i.append("nonce",r),i.append("license_type",n),i.append("license_key",d),await In.post(a,i).then((async t=>{t.data.success?((async()=>{var t=tpae_db_object.nonce,n=tpae_db_object.ajax_url;let i=new FormData;i.append("action","tpae_dashboard_ajax_call"),i.append("nonce",t),i.append("type","tpae_onload_data");var o=(await In.post(n,i)).data;e.tpae_set_userinfo(o.user_info),e.tpae_set_widgets(o.widgets),e.tpae_set_extra_option(o.extra_option),e.tpae_set_plugins(o.plugin_detail),e.tpae_set_listing(o.listing_data),e.tpae_set_custom_data(o.custom_css_js),e.tpae_set_performance(o.performance),e.tpae_set_white_lable(o.white_label),e.tpae_set_license(o.license_details)})(),u(!1)):(m(t?.data?.description?t.data.description:"Invalid Key Entered !"),u(!1))}))};return(0,Pi.jsxs)("div",{className:"tpae_activ_pro_inn_main",children:[(0,Pi.jsx)("div",{className:"tpae_activ_pro_inn_main",children:(0,Pi.jsx)("div",{className:"tpae-section-heading-cover",children:(0,Pi.jsx)("h3",{className:"tpae-section-heading",children:(0,Pn.__)("Activate PRO","tpebl")})})}),e.tpae_dashboard_data.success?(0,Pi.jsxs)("div",{className:"tpae_activ_pro_cover_main",children:[(0,Pi.jsx)("h3",{className:"tpae-in-sec-heading",children:(0,Pn.__)("Licence Activation","tpebl")}),(0,Pi.jsxs)("div",{className:"tpae_activ_key_box",children:[(0,Pi.jsxs)("div",{className:"tp-licence-activate-inp "+(g?"tp-error-msg":""),children:[(0,Pi.jsx)("input",{className:"tpae_text_field",value:d,onChange:e=>(h(e.target.value),void m("")),placeholder:(0,Pn.__)("Enter Your License Key","tpebl"),type:"text",disabled:"valid"==l.license}),(0,Pi.jsxs)("div",{className:"tp-error-txt",children:[(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"18",viewBox:"0 0 16 14",fill:"none",children:(0,Pi.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.96273 1.14567L1.14055 11.2293C1.03538 11.4114 0.980001 11.6179 0.97998 11.8282C0.97996 12.0385 1.0353 12.2451 1.14044 12.4272C1.24557 12.6093 1.3968 12.7605 1.57891 12.8657C1.76102 12.9708 1.96761 13.0262 2.17789 13.0261H13.8213C14.0316 13.0262 14.2382 12.9708 14.4203 12.8657C14.6024 12.7605 14.7536 12.6093 14.8588 12.4272C14.9639 12.2451 15.0193 12.0385 15.0192 11.8282C15.0192 11.6179 14.9638 11.4114 14.8587 11.2293L9.0371 1.14567C8.932 0.963615 8.7808 0.812435 8.5987 0.707315C8.4167 0.602205 8.2102 0.546875 7.99992 0.546875C7.78969 0.546875 7.58317 0.602205 7.40111 0.707315C7.21904 0.812435 7.06785 0.963615 6.96273 1.14567ZM8.076 4.25391H7.9241C7.55019 4.25391 7.24707 4.55702 7.24707 4.93094V8.167C7.24707 8.5409 7.55019 8.8441 7.9241 8.8441H8.076C8.4499 8.8441 8.753 8.5409 8.753 8.167V4.93094C8.753 4.55702 8.4499 4.25391 8.076 4.25391ZM8.753 10.6592C8.753 11.0751 8.4159 11.4122 8 11.4122C7.58419 11.4122 7.24707 11.0751 7.24707 10.6592C7.24707 10.2434 7.58419 9.90625 8 9.90625C8.4159 9.90625 8.753 10.2434 8.753 10.6592Z",fill:"#EE404C"})}),(0,Pi.jsx)("span",{children:g})]})]}),"valid"==l.license?(0,Pi.jsx)("button",{className:"tpae-purple-common-btn key-deactive",onClick:e=>f(0,"deactive"),children:p?(0,Pi.jsx)("span",{className:"tpae_purple_loader"}):(0,Pn.__)("Deactivate","tpebl")}):(0,Pi.jsx)("button",{onClick:e=>f(0,"active"),className:"tpae-purple-common-btn",disabled:p,children:p?(0,Pi.jsx)("span",{className:"tpae_purple_loader"}):(0,Pn.__)("Activate","tpebl")})]}),1==l.success?(0,Pi.jsxs)("div",{className:"tpae_activated_msg",children:[(0,Pi.jsx)("img",{className:"theplus_green_check",src:o+"assets/svg/upgrade_table/theplus_green_check.svg"}),(0,Pn.__)("Congratulation! License Successfully Activated.","tpebl")]}):(0,Pi.jsxs)(Pi.Fragment,{children:[(0,Pi.jsx)("h3",{className:"tpae-in-sec-heading",children:(0,Pn.__)("How to Find the Activation Key?","tpebl")}),(0,Pi.jsxs)("div",{className:"tpae_activation_steps_cover",children:[(0,Pi.jsxs)("div",{className:"tpae_activation_step_strip",children:[(0,Pi.jsx)("div",{className:"tpae_step_number",children:(0,Pn.__)("1","tpebl")}),(0,Pi.jsx)("p",{className:"tpae_step_name",children:(0,Pi.jsx)("a",{target:"_blank",rel:"noopener noreferrer",className:"theplus_para_link",href:"https://store.posimyth.com/dashboard/",children:(0,Pn.__)("Visit POSIMYTH Store Dashboard","tpebl")})})]}),(0,Pi.jsxs)("div",{className:"tpae_activation_step_strip",children:[(0,Pi.jsx)("div",{className:"tpae_step_number",children:(0,Pn.__)("2","tpebl")}),(0,Pi.jsxs)("p",{className:"tpae_step_name",children:[" ",(0,Pn.__)("Copy the License Key","tpebl")]})]}),(0,Pi.jsxs)("div",{className:"tpae_activation_step_strip",children:[(0,Pi.jsx)("div",{className:"tpae_step_number",children:(0,Pn.__)("3","tpebl")}),(0,Pi.jsx)("p",{className:"tpae_step_name",children:(0,Pn.__)("Paste the Key here & Hit Activate","tpebl")})]})]}),(0,Pi.jsxs)("p",{className:"tpae_btm_txt",children:[(0,Pn.__)("Facing Issues?","tpebl")," ",(0,Pi.jsx)("a",{target:"_blank",rel:"noopener noreferrer",className:"theplus_para_link",href:"https://theplusaddons.com/docs/how-to-activate-the-plus-addons-for-elementor/#Common-Licence-Activation-Issues?utm_source=wpbackend&utm_medium=widgets&utm_campaign=links",children:(0,Pn.__)("Check our troubleshooting guide","tpebl")})]})]}),0==l.success&&!l?.license&&(0,Pi.jsx)("div",{className:"tpae_activated_error_msg",children:l.tpae_message}),0==l.success&&"valid"==l.license&&(0,Pi.jsx)("div",{className:"tpae_activated_msg",dangerouslySetInnerHTML:{__html:l.tpae_description}}),0==l.success&&"valid"!=l.license&&(0,Pi.jsx)("div",{className:"tpae_activated_error_msg dircol",dangerouslySetInnerHTML:{__html:l.tpae_description}})]}):(0,Pi.jsx)(bo,{})]})})),vo={widgetListExtra:[{name:"plus_special",label:(0,Pn.__)("Plus Special","tpebl"),widgets:[{name:"plus_cross_cp",label:(0,Pn.__)("Cross Domain Copy Paste","tpebl"),demoUrl:"https://theplusaddons.com/elementor-extras/cross-domain-copy-paste-content/",docUrl:"https://theplusaddons.com/docs/cross-domain-copy-paste-for-free-in-elementor/",videoUrl:"https://www.youtube.com/embed/qNvQdIzrJd8",tag:"free",keyword:["Cross Domain Copy Paste","Copy Paste","Copy Paste Widget"]},{name:"plus_equal_height",label:(0,Pn.__)("Equal Height","tpebl"),demoUrl:"https://theplusaddons.com/elementor-extras/equal-height/",docUrl:"https://theplusaddons.com/docs/equal-column-height-elementor/",videoUrl:"https://www.youtube.com/embed/Bwp3GBOlkaw",tag:"free",keyword:["Equal Height","Height"]},{name:"plus_section_column_link",label:(0,Pn.__)("Wrapper Link","tpebl"),demoUrl:"https://theplusaddons.com/elementor-extras/wrapper-link/",docUrl:"https://theplusaddons.com/docs/",videoUrl:"https://www.youtube.com/embed/KMpzq3D4oT8",tag:"free",keyword:["Wrapper Link","Link Wrapper","Link Container","Container Link","Link Box","Box Link"]},{name:"plus_custom_css",label:(0,Pn.__)("Custom CSS","tpebl"),demoUrl:"https://theplusaddons.com/elementor-extras/custom-css/",docUrl:"https://theplusaddons.com/docs/custom-css-in-elementor/",videoUrl:"https://www.youtube.com/embed/9a4Akh7EFvg",tag:"pro",keyword:["css","custom css","customcss","style","design"]},{name:"plus_adv_scroll_interactions",label:(0,Pn.__)("Advanced Scroll Interactions","tpebl"),demoUrl:"#",docUrl:"#",videoUrl:"#",tag:"pro",setting:[{show:"yes",type:"swicher",key:"tp_swicher",option:[{name:(0,Pn.__)("Motion","tpebl"),tag:(0,Pn.__)("pro","tpebl"),key:"tp_motion"},{name:(0,Pn.__)("Appearance","tpebl"),tag:(0,Pn.__)("pro","tpebl"),key:"tp_appearance"},{name:(0,Pn.__)("Visual Effects","tpebl"),tag:(0,Pn.__)("pro","tpebl"),key:"tp_visual_effects"},{name:(0,Pn.__)("Advanced","tpebl"),tag:(0,Pn.__)("pro","tpebl"),key:"tp_advanced"}]}],keyword:["Advanced Scroll Interactions","Scroll Interactions","Scroll Effects","Scroll Animation","Elementor Scroll Effects","Elementor Scroll Animation","Elementor Advanced Scroll Effects","Elementor Advanced Scroll Animation"]}]},{name:"plus_columns",label:(0,Pn.__)("Plus Columns","tpebl"),widgets:[{name:"custom_width_column",label:(0,Pn.__)("Custom/Media Width Column","tpebl"),demoUrl:"https://theplusaddons.com/elementor-extras/custom-media-query-breakpoints/",docUrl:"https://theplusaddons.com/docs/",videoUrl:"https://www.youtube.com/embed/9a4Akh7EFvg",tag:"pro",keyword:["Custom","Media","Query","Breakpoints","Column Width","Width in Pixels","Width in Percentage","Width Calculation","Column Width in Pixels","Column Width in Percentage","Column Width Calculation","Width in Px","Width in %","Width in calc()","Column Width in Px","Column Width in %","Column Width in calc()"]},{name:"column_mouse_cursor",label:(0,Pn.__)("Column Mouse Cursor","tpebl"),demoUrl:"https://theplusaddons.com/elementor-widget/mouse-cursor/",docUrl:"https://theplusaddons.com/docs/",videoUrl:"https://www.youtube.com/embed/glP290dAkOM",tag:"pro",keyword:["Mouse Cursor Icon","Cursor Icon","Mouse Icon","Icon Widget","Global","Mouse Hover","Parallax"]},{name:"order_sort_column",label:(0,Pn.__)("Order & Width Column","tpebl"),demoUrl:"https://theplusaddons.com/elementor-extras/column-ordering-devices/",docUrl:"https://theplusaddons.com/docs/",videoUrl:"https://www.youtube.com/embed/9a4Akh7EFvg",tag:"pro",keyword:["Column Ordering","Devices","Responsive Column Ordering","Elementor Column Ordering","Elementor Devices","Elementor Responsive Column Ordering"]},{name:"column_sticky",label:(0,Pn.__)("Sticky Column","tpebl"),demoUrl:"https://theplusaddons.com/elementor-extras/sticky-column/",docUrl:"https://theplusaddons.com/docs/sticky-column-settings-overview/",videoUrl:"https://www.youtube.com/embed/9a4Akh7EFvg",tag:"pro",keyword:["Sticky","Column","Fixed","Floating","Elementor","Widget"]}]},{name:"plus_effects",label:(0,Pn.__)("Plus Effects","tpebl"),widgets:[{name:"plus_adv_shadow",label:(0,Pn.__)("Advanced Shadows","tpebl"),demoUrl:"https://theplusaddons.com/elementor-extras/multi-box-shadows/",docUrl:"https://theplusaddons.com/docs/advanced-shadows-settings-overview/",videoUrl:"",tag:"free",keyword:["advanced shadow","shadow"]},{name:"plus_glass_morphism",label:(0,Pn.__)("Glass Morphism","tpebl"),demoUrl:"https://theplusaddons.com/elementor-extras/glassmorphism/",docUrl:"https://theplusaddons.com/docs/glassmorphism-effect-in-elementor/",videoUrl:"",tag:"free",keyword:["Glass Morphism","Glassmorphism","Glass Effect","Frosted Glass","Frosted Glass Effect","Transparent Effect","Blurred Effect","Blur Effect","Glass Style"]},{name:"section_scroll_animation",label:(0,Pn.__)("Section Scroll Animation","tpebl"),demoUrl:"https://theplusaddons.com/elementor-extras/on-scroll-content-animation/",docUrl:"https://theplusaddons.com/docs/section-scroll-animation-overview-in-elementor/",videoUrl:"https://www.youtube.com/embed/rwbYhQhuSLI",tag:"pro",keyword:["Row","Section","Scroll","Animation"]}]},{name:"plus_visibility",label:(0,Pn.__)("Plus Visibility","tpebl"),widgets:[{name:"plus_display_rules",label:(0,Pn.__)("Display Condition","tpebl"),demoUrl:"https://theplusaddons.com/elementor-extras/display-conditions/",docUrl:"https://theplusaddons.com/docs/display-conditions-settings-overview/",videoUrl:"https://www.youtube.com/embed/xn9vPYHbogI",tag:"pro",setting:[{show:"yes",type:"features",title:"Available Display Conditions Rules",option:[{name:"Login Status",url:"https://theplusaddons.com/plus-extras/elementor-display-conditions/",tooltip:"#"},{name:"User Role",url:"https://theplusaddons.com/plus-extras/elementor-display-conditions/",tooltip:"#"},{name:"Operating System",url:"https://theplusaddons.com/plus-extras/elementor-display-conditions/",tooltip:"#"},{name:"Browser",url:"https://theplusaddons.com/plus-extras/elementor-display-conditions/",tooltip:"#"},{name:"Location",url:"https://theplusaddons.com/plus-extras/elementor-display-conditions/",tooltip:"#"},{name:"Date And Time",url:"https://theplusaddons.com/plus-extras/elementor-display-conditions/",tooltip:"#"},{name:"Single Page",url:"https://theplusaddons.com/plus-extras/elementor-display-conditions/",tooltip:"#"},{name:"Archive Page",url:"https://theplusaddons.com/plus-extras/elementor-display-conditions/",tooltip:"#"},{name:"Language",url:"https://theplusaddons.com/plus-extras/elementor-display-conditions/",tooltip:"#"},{name:"URL",url:"https://theplusaddons.com/plus-extras/elementor-display-conditions/",tooltip:"#"},{name:"Short Code",url:"https://theplusaddons.com/plus-extras/elementor-display-conditions/",tooltip:"#"},{name:"Woo Commerce",url:"https://theplusaddons.com/plus-extras/elementor-display-conditions/",tooltip:"#"},{name:"Toolset",url:"https://theplusaddons.com/plus-extras/elementor-display-conditions/",tooltip:"#"},{name:"PODS",url:"https://theplusaddons.com/plus-extras/elementor-display-conditions/",tooltip:"#"},{name:"Jet Engine",url:"https://theplusaddons.com/plus-extras/elementor-display-conditions/",tooltip:"#"},{name:"Easy Digital Downloads",url:"https://theplusaddons.com/plus-extras/elementor-display-conditions/",tooltip:"#"}]}],keyword:["Conditional Rules","Conditional Logic","Dynamic Rules","Rule-based Widgets","Elementor Conditional Widgets","Elementor Rule-based Widgets","Elementor Dynamic Widgets","with Conditional Logic","Conditional Widget for Elementor","Elementor Addon with Conditional Rules","with Dynamic Rules","with Rule-based Logic"]},{name:"plus_event_tracker",label:(0,Pn.__)("Event Tracker","tpebl"),demoUrl:"https://theplusaddons.com/elementor-extras/ga4-event-tracker/",docUrl:"https://theplusaddons.com/docs/event-tracker-settings-overview/?utm_source=wpbackend&utm_medium=elementoreditor&utm_campaign=widget",videoUrl:"https://www.youtube.com/embed/9a4Akh7EFvg",tag:"pro",keyword:["FB & Google Event Tracker","Facebook and Google Event Tracker","Event Tracker for Facebook and Google","Facebook and Google Analytics","Event Tracking for Facebook and Google","Facebook Pixel and Google Analytics Integration","Elementor FB & Google Event Tracker","The Plus Addons FB & Google Event Tracker"]}]},{name:"plus_extras",label:(0,Pn.__)("Plus Extras","tpebl"),widgets:[{name:"plus_continuous_animation",label:(0,Pn.__)("Continuous Animation","tpebl"),demoUrl:"https://theplusaddons.com/elementor-extras/continuous-effects/",docUrl:"https://theplusaddons.com/docs/global-continuous-animation-widget-in-elementor/",videoUrl:"",tag:"pro",keyword:["Continuous","Animation","Continuous Animation"]},{name:"plus_magic_scroll",label:(0,Pn.__)("Magic Scroll","tpebl"),demoUrl:"https://theplusaddons.com/elementor-extras/magic-scroll-integration/",docUrl:"https://theplusaddons.com/docs/magic-scroll-effect-in-elementor/",videoUrl:"",tag:"pro",keyword:["Magic","Scroll","Magic Scroll"]},{name:"plus_mouse_move_parallax",label:(0,Pn.__)("Mouse Move Parallax","tpebl"),demoUrl:"https://theplusaddons.com/elementor-extras/global-mouse-hover-parallax/",docUrl:"https://theplusaddons.com/docs/mouse-cursor-parallax-effects-in-elementor/",videoUrl:"",tag:"pro",keyword:["Mouse","Parallax","Mouse Paralax"]},{name:"plus_overlay_effect",label:(0,Pn.__)("Overlay Special Effect","tpebl"),demoUrl:"https://theplusaddons.com/elementor-extras/special-overlay-color/",docUrl:"https://theplusaddons.com/docs/swiper-color-overlay-effects-in-elementor/",videoUrl:"",tag:"pro",keyword:["Overlay","Effect","Overlay Special Effect"]},{name:"plus_tilt_parallax",label:(0,Pn.__)("Tilt 3D Parallax","tpebl"),demoUrl:"https://theplusaddons.com/elementor-extras/global-mouse-hover-parallax/#3d-effects",docUrl:"https://theplusaddons.com/docs/3d-tilt-parallax-effects-in-elementor/",videoUrl:"https://youtu.be/rVRjwbK1t3E",tag:"pro",keyword:["Tilt","3d","Parallax","Tilt 3d Parallax"]},{name:"plus_tooltip",label:(0,Pn.__)("Tooltip","tpebl"),demoUrl:"https://theplusaddons.com/elementor-extras/global-tooltips/",docUrl:"https://theplusaddons.com/docs/global-tooltips-settings-overview/",videoUrl:"",tag:"pro",keyword:["Tooltip","Pin"]}]}],plus_extension:[{name:"nexter_extension",label:(0,Pn.__)("Nexter Extension","tpebl"),widgets:[{name:"duplicate_post",label:(0,Pn.__)("Duplicate Post","tpebl"),demoUrl:"",docUrl:"https://nexterwp.com/docs/duplicate-post-pages-cpt-products-at-bulk-in-wordpress/",videoUrl:"",tag:"free",category_url:"page=nexter_welcome#/utilities",keyword:["Duplicate post","Clone post page","bulk copy"]},{name:"theme_builder",label:(0,Pn.__)("Theme Builder","tpebl"),demoUrl:"",docUrl:"https://nexterwp.com/docs/nexter-theme-builder-explained/",videoUrl:"",tag:"free",category_url:"post_type=nxt_builder",keyword:["Theme Builder","Theme Builder for Elementorr","Archive","Single","Header","Footer","Coming Soon"]},{name:"code_snippets",label:(0,Pn.__)("Code Snippets","tpebl"),demoUrl:"",docUrl:"https://nexterwp.com/docs/add-code-snippets-in-wordpress/",videoUrl:"",tag:"free",category_url:"page=nxt_code_snippets",keyword:["Code Snippets","HTML","CSS","JS","PHP","Code Snippets","WPCode"]},{name:"custom_font_upload",label:(0,Pn.__)("Custom Font Upload","tpebl"),demoUrl:"",docUrl:"https://nexterwp.com/help/nexter-extension/custom-upload-fonts-extra-options/",videoUrl:"",tag:"free",category_url:"page=nexter_welcome#/utilities",keyword:["Custom Font Upload","Upload fonts WordPress","Custom fonts plugin","WordPress font tool"]},{name:"branded_wp_admin",label:(0,Pn.__)("Branded WP Admin","tpebl"),demoUrl:"",docUrl:"https://nexterwp.com/docs/white-label-wordpress-wp-admin-login-page/",videoUrl:"",tag:"free",category_url:"page=nexter_welcome#/admin_interface",keyword:["Branded WP Admin","WordPress admin branding","White label dashboar","Customize admin panel"]},{name:"replace_text_url",label:(0,Pn.__)("Replace Text & URL","tpebl"),demoUrl:"",docUrl:"https://nexterwp.com/docs/change-url-in-a-wordpress-website/",videoUrl:"",tag:"free",category_url:"page=nexter_welcome#/utilities",keyword:["Replace Text & URL","Replace text WordPress","Bulk URL changer","WordPress text editor"]},{name:"advanced_performance",label:(0,Pn.__)("Advanced Performance","tpebl"),demoUrl:"",docUrl:"https://nexterwp.com/docs/nexter-advance-performance-options-explained/",videoUrl:"",tag:"free",category_url:"page=nexter_welcome#/performance",keyword:["Advanced Performance","Disable Comments","Disable Image Sizes","Register Custom Image Sizes","Disable Icons","Google Fonts"]},{name:"custom_login_url",label:(0,Pn.__)("Custom Login URL","tpebl"),demoUrl:"",docUrl:"https://nexterwp.com/docs/change-wordpress-admin-login-url-path/",videoUrl:"",tag:"free",category_url:"page=nexter_welcome#/security",keyword:["Custom Login URL","Custom login WordPress","Change login URL","Secure login page"]}]}]},yo=Oi((e=>({plugin_check:e.check_plugin.plugin_status_rx,tpae_widgets_list:e.widgets_data.widgets_rx,tpae_dashboard_data:e.Dashboard_data.db_rx,tpae_white_lable_data:e.White_label.white_lable_rx})),(e=>({tpae_set_extra_option:t=>e(extra_option_a_rx(t)),tpae_set_widgets:t=>e(Bi(t))})))((e=>{var n=tpae_db_object.tpae_url,i=tpae_db_object.nonce,o=tpae_db_object.ajax_url,s=tpae_db_object.tpae_pro,r=e.plugin_check;const a="1"==tpae_db_object?.tpae_pro,[l,c]=(0,t.useState)([]),[d,h]=(0,t.useState)("all"),[p,u]=(0,t.useState)(""),[g,m]=(0,t.useState)(""),[f,_]=(0,t.useState)(!1),[b,w]=(0,t.useState)(!1),[v,y]=(0,t.useState)(!1),[x,C]=(0,t.useState)("Enable Extensions for WordPress"),[k,S]=(0,t.useState)(0),[j,$]=(0,t.useState)(0),[A,N]=(0,t.useState)(""),[E,L]=(0,t.useState)(""),[M,R]=(0,t.useState)(),[T,O]=(0,t.useState)(!1),[I,P]=(0,t.useState)(),[F,D]=(0,t.useState)(),[W,B]=(0,t.useState)([]),[U,H]=(0,t.useState)(""),[z,V]=(0,t.useState)({name:"",options:[],type:"",widget_name:"",discription:""});(0,t.useEffect)((()=>{const e=e=>{"Escape"===e.key&&(_(!1),y(!1),O(!1))};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[]),(0,t.useEffect)((()=>{const e=r.find((e=>"nexter-extension"===e.name&&"active"===e.status));w(!!e)}),[r]),(0,t.useEffect)((()=>{window.scrollTo(0,0)}),[d,p]),(0,t.useEffect)((()=>{c(e?.tpae_widgets_list)}),[e?.tpae_widgets_list]),(0,t.useEffect)((()=>{$(e.tpae_white_lable_data)}),[e.tpae_white_lable_data]),(0,t.useEffect)((()=>{document.addEventListener("scroll",(()=>{let e=document.getElementById("tp_plus_special")?.getBoundingClientRect()?.top-350,t=document.getElementById("tp_plus_columns")?.getBoundingClientRect()?.top-350,n=document.getElementById("tp_plus_effects")?.getBoundingClientRect()?.top-350,i=document.getElementById("tp_plus_visibility")?.getBoundingClientRect()?.top-350,o=document.getElementById("tp_plus_extras")?.getBoundingClientRect()?.top-350;document.getElementById("tp_nexter_extension")?.getBoundingClientRect()?.top-350<0?m("tp_nexter_extension"):o<0?m("tp_plus_extras"):i<0?m("tp_plus_visibility"):n<0?m("tp_plus_effects"):t<0?m("tp_plus_columns"):e<0&&m("tp_plus_special")}))}));const G=async e=>{let t=document.querySelector(e).getBoundingClientRect().top+window.pageYOffset-300;window.scrollTo({top:t,behavior:"smooth"})},K=(e,t,n)=>!("pro"==n.tag&&!a||!l?.[t]?.includes(e)),q=()=>{y(!1)},Z=[{question:(0,Pn.__)("What is Nexter Extension? Why Do I Need an Extra Plugin for These Features?","tpebl"),answer:(0,Pn.__)("Nexter Extension is a unique set of features provided through a separate plugin. We’ve made it independent from The Plus Addons for Elementor widgets. While The Plus Addons focuses on extra Elementor widgets, Nexter Extension helps you prepare your WordPress site for production with better security and higher performance.","tpebl")},{question:(0,Pn.__)("Do I Need to Pay Anything to Use These Features?","tpebl"),answer:(0,Pn.__)("Most of the Nexter Extensions are free, while only some are paid. These paid features are included for Pro users of The Plus Addons for Elementor. All Pro users also unlock Nexter Extension Pro.","tpebl")},{question:(0,Pn.__)("Will This Affect My Site’s Performance?","tpebl"),answer:(0,Pn.__)("Not at all! These are great features designed to make your WordPress website more secure, faster, and smarter, saving you a lot of time. It’s a single plugin that eliminates multiple hassles, making it easy to create a powerful WordPress website.","tpebl")}],Y=(0,Pi.jsx)("svg",{width:"11",height:"10",viewBox:"0 0 11 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Pi.jsx)("path",{d:"M5.5 0C6.15661 -9.78424e-09 6.80679 0.129329 7.41342 0.380602C8.02004 0.631876 8.57124 1.00017 9.03553 1.46447C9.49983 1.92876 9.86812 2.47995 10.1194 3.08658C10.3707 3.69321 10.5 4.34339 10.5 5C10.5 5.65661 10.3707 6.30679 10.1194 6.91342C9.86812 7.52004 9.49983 8.07124 9.03553 8.53553C8.57124 8.99983 8.02004 9.36812 7.41342 9.6194C6.80679 9.87067 6.15661 10 5.5 10C4.17392 10 2.90215 9.47322 1.96447 8.53553C1.02678 7.59785 0.5 6.32608 0.5 5C0.5 3.67392 1.02678 2.40215 1.96447 1.46447C2.90215 0.526784 4.17392 1.97602e-08 5.5 0ZM7.26667 3.47L4.875 5.86833L3.71167 4.705C3.67293 4.66626 3.62694 4.63553 3.57632 4.61456C3.5257 4.5936 3.47145 4.58281 3.41667 4.58281C3.36188 4.58281 3.30763 4.5936 3.25701 4.61456C3.2064 4.63553 3.16041 4.66626 3.12167 4.705C3.08293 4.74374 3.0522 4.78973 3.03123 4.84035C3.01026 4.89096 2.99947 4.94521 2.99947 5C2.99947 5.05479 3.01026 5.10904 3.03123 5.15965C3.0522 5.21027 3.08293 5.25626 3.12167 5.295L4.58 6.75333C4.6187 6.79214 4.66468 6.82292 4.71531 6.84393C4.76593 6.86493 4.82019 6.87574 4.875 6.87574C4.92981 6.87574 4.98407 6.86493 5.03469 6.84393C5.08532 6.82292 5.1313 6.79214 5.17 6.75333L7.85667 4.05833C7.93246 3.97964 7.97432 3.87433 7.97322 3.76508C7.97212 3.65583 7.92815 3.55138 7.85078 3.47423C7.77342 3.39709 7.66884 3.35341 7.55959 3.35262C7.45034 3.35183 7.34514 3.39398 7.26667 3.47Z",fill:"white"})}),J=()=>(0,Pi.jsxs)("div",{className:"tpae-nexter-content",children:[(0,Pi.jsxs)("div",{className:"tpae-nexter-title",children:[(0,Pn.__)("Get 22+ More Extensions for your WordPress Website","tpebl"),(0,Pi.jsx)("br",{}),(0,Pn.__)("with Nexter Extension","tpebl")]}),(0,Pi.jsxs)("div",{className:"tpae-features-ndic",children:[(0,Pi.jsxs)("ul",{children:[(0,Pi.jsxs)("li",{children:[Y,(0,Pn.__)("Free Theme Builder for Elementor","tpebl")]}),(0,Pi.jsxs)("li",{children:[Y,(0,Pn.__)("Code Snippets","tpebl")]}),(0,Pi.jsxs)("li",{children:[Y,(0,Pn.__)("Extra Features","tpebl")]})]}),(0,Pi.jsxs)("ul",{children:[(0,Pi.jsxs)("li",{children:[Y,(0,Pn.__)("Security Hardener","tpebl")]}),(0,Pi.jsxs)("li",{children:[Y,(0,Pn.__)("Performance Booster","tpebl")]})]})]}),(0,Pi.jsxs)("div",{className:"tpae-install-activate",children:[(0,Pi.jsx)("a",{className:"tpae-nexter-btn",onClick:e=>X(e),children:x}),(0,Pi.jsx)("a",{href:"https://nexterwp.com/nexter-extension/features/?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings",target:"_blank",rel:"noopener noreferrer",className:"tpae-nexter-learn",children:(0,Pn.__)("Learn More","tpebl")})]}),(0,Pi.jsx)("div",{className:"tpae-nexter-accordion",children:Z.map(((e,t)=>(0,Pi.jsxs)("div",{className:"nexter-accordion-item",children:[(0,Pi.jsxs)("div",{className:"nexter-accordio-content "+(k===t?"tpae-nxt-content-opan":""),onClick:()=>Q(t),children:[(0,Pi.jsx)("div",{className:"tpae-next-accd-qui",children:e.question}),(0,Pi.jsx)("div",{className:"tpae-pm-lable",children:(0,Pi.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[k!==t&&(0,Pi.jsx)("path",{d:"M10 4.16675V15.8334",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Pi.jsx)("path",{d:"M4.16797 10H15.8346",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]})})]}),(0,Pi.jsx)("div",{className:"tpae-accordion-ans "+(k===t?"opan-accordion":""),children:e.answer})]},t)))})]}),Q=e=>{S(k===e?null:e)},X=async()=>{C("Installing Nexter");let e=new FormData;e.append("action","tpae_dashboard_ajax_call"),e.append("nonce",i),e.append("type","tpae_plugin_install"),e.append("slug","nexter-extension/nexter-extension.php"),e.append("name","nexter-extension"),(await In.post(o,e)).data.success?(w(!0),y(!1),C("Installing Success")):C("Installing Failed")};function ee(e){return"plus_cross_cp"===e?.name?(0,Pi.jsx)("div",{className:"theplus_widget_used_top_tip",children:(0,Pn.__)("Default","tpebl")}):Array.isArray(M)&&M.includes(e?.name)?(0,Pi.jsx)("div",{className:"theplus_widget_used_top_tip",children:(0,Pn.__)("Used","tpebl")}):(0,Pi.jsx)("div",{className:"theplus_widget_used_top_tip",children:(0,Pn.__)("Unused","tpebl")})}function te(e){O(!0),P(e?.label),D(e?.setting?.[0]?.option),H(e?.name||""),V({name:e?.label||"",options:e?.setting?.[0]?.option||[],type:e?.setting?.[0]?.type||"",widget_name:e?.name||"",discription:e?.setting?.[0]?.discription||""})}return(0,Pi.jsxs)(Pi.Fragment,{children:[(0,Pi.jsxs)("div",{className:"theplus-widgets-inner-main tpae-main-container "+(e?.tpae_dashboard_data?.success?"":"theplus-skeleton"),children:[(0,Pi.jsxs)("div",{className:"tpae-section-heading-cover",children:[(0,Pi.jsx)("h3",{className:"tpae-section-heading",children:(0,Pn.__)("Extensions","tpebl")}),(0,Pi.jsx)("div",{className:"tpae-head-tgl-btn-grp",children:(0,Pi.jsxs)("div",{className:"theplus-widget-manage-toggle-cover",children:[(0,Pi.jsx)("span",{className:"toggle-text",children:(0,Pn.__)("Disable All","tpebl")}),(0,Pi.jsxs)("label",{className:"tpae-wid-tgl-btn-cover",children:[(0,Pi.jsx)("input",{className:"tpae-toggle-btn",type:"checkbox",onChange:t=>{(async t=>{let n={check_elements:e.tpae_widgets_list.check_elements,extras_elements:[]};t?(vo.widgetListExtra.map((e=>{e.widgets.map((e=>{"plus_adv_scroll_interactions"===e.name||!a&&"pro"===e.tag||n.extras_elements.push(e.name)}))})),c(n),e.tpae_set_widgets(n)):(c(n),e.tpae_set_widgets(n));let s=new FormData;s.append("action","tpae_dashboard_ajax_call"),s.append("nonce",i),s.append("type","tpae_set_widget_list"),s.append("widget_data",JSON.stringify(n)),(await In.post(o,s)).data})(t.target.checked)}}),(0,Pi.jsx)("span",{className:"tpae-toggle-slider"})]}),(0,Pi.jsx)("span",{className:"toggle-text",children:(0,Pn.__)("Enable All","tpebl")})]})})]}),(0,Pi.jsxs)("div",{className:"tpae-widget-categories",children:[(0,Pi.jsxs)("div",{className:"tpae-cat-strip-cov-main",children:[(0,Pi.jsxs)("div",{className:"tpae-cate-btns-cover",children:[(0,Pi.jsx)("span",{className:"tpae-category-btn "+("all"==d?"tpae-act-cat":""),onClick:()=>{h("all")},children:(0,Pn.__)("All","tpebl")}),(0,Pi.jsx)("span",{className:"tpae-category-btn "+("free"==d?"tpae-act-cat":""),onClick:()=>{h("free")},children:(0,Pn.__)("Free","tpebl")}),(0,Pi.jsx)("span",{className:"tpae-category-btn "+("pro"==d?"tpae-act-cat":""),onClick:()=>{h("pro")},children:(0,Pn.__)("Pro","tpebl")})]}),(0,Pi.jsxs)("div",{className:"theplus-right-search-and-btn-group",children:[(0,Pi.jsxs)("div",{className:"theplus-widget-search-box-cover",children:[(0,Pi.jsx)("img",{className:"theplus-search-icon",src:n+"assets/svg/search_icon.svg",draggable:!1}),(0,Pi.jsx)("input",{type:"text",placeholder:(0,Pn.__)("Search","tpebl"),className:"theplus-widget-search-box",onChange:e=>{u(e.target.value)}})]}),(0,Pi.jsxs)("div",{className:"theplus-scan-unused-btn-cover",children:[A?(0,Pi.jsx)("div",{className:"theplus-scan-unused-btn",onClick:()=>{(async()=>{let t={check_elements:e.tpae_widgets_list.check_elements,extras_elements:e.tpae_widgets_list.extras_elements};t=Object.assign({},t,{extras_elements:M}),c(t),e.tpae_set_widgets(t);let n=new FormData;n.append("action","tpae_dashboard_ajax_call"),n.append("nonce",i),n.append("type","tpae_set_widget_list"),n.append("widget_data",JSON.stringify(t)),(await In.post(o,n)).data.success&&N("")})()},children:E||(0,Pn.__)("Disable Unused Extension","tpebl")}):(0,Pi.jsxs)("div",{className:"theplus-scan-unused-btn",onClick:()=>{(async()=>{L("Scanning Extension...");let e=new FormData;e.append("action","tpae_dashboard_ajax_call"),e.append("nonce",i),e.append("type","tpae_get_scan_extension");var t=await In.post(o,e);200==t.status&&(N(t.data.message),R(t.data.used_extension)),setTimeout((()=>{L("")}),1200)})()},children:[!E&&(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",fill:"#000000",viewBox:"0 0 16 17",children:(0,Pi.jsx)("path",{d:"M1.5 6a.5.5 0 0 0 .5-.5V3a.5.5 0 0 1 .5-.5h2.75a.5.5 0 1 0 0-1H2.5A1.5 1.5 0 0 0 1 3v2.5a.5.5 0 0 0 .5.5Zm12-4.5h-2.75a.5.5 0 0 0 0 1h2.75a.5.5 0 0 1 .5.5v2.5a.5.5 0 0 0 1 0V3a1.5 1.5 0 0 0-1.5-1.5Zm1 9.5a.5.5 0 0 0-.5.5V14a.5.5 0 0 1-.5.5h-2.75a.5.5 0 0 0 0 1h2.75A1.5 1.5 0 0 0 15 14v-2.5a.5.5 0 0 0-.5-.5Zm-9.25 3.5H2.5A.5.5 0 0 1 2 14v-2.5a.5.5 0 0 0-1 0V14a1.5 1.5 0 0 0 1.5 1.5h2.75a.5.5 0 0 0 0-1ZM14.5 8h-13a.5.5 0 1 0 0 1h13a.5.5 0 0 0 0-1Z"})}),E||(0,Pn.__)("Scan Unused Extension","tpebl")]}),A&&(0,Pi.jsx)("div",{className:"theplus-unused-widgets-numbers",children:A})]})]})]}),(0,Pi.jsx)("div",{className:"tpae-cat-strip-cov-main theplus-second-strip",children:(0,Pi.jsxs)("div",{className:"tpae-cate-btns-cover",children:[(0,Pi.jsx)("span",{className:"tp_plus_special"==g?"tpae-category-btn tpae-act-cat":"tpae-category-btn",onClick:()=>{G("#tp_plus_special")},children:(0,Pn.__)("Special","tpebl")}),(0,Pi.jsx)("span",{className:"tp_plus_columns"==g?"tpae-category-btn tpae-act-cat":"tpae-category-btn",onClick:()=>{G("#tp_plus_columns")},children:(0,Pn.__)("Columns","tpebl")}),(0,Pi.jsx)("span",{className:"tp_plus_effects"==g?"tpae-category-btn tpae-act-cat":"tpae-category-btn",onClick:()=>{G("#tp_plus_effects")},children:(0,Pn.__)("Effects","tpebl")}),(0,Pi.jsx)("span",{className:"tp_plus_visibility"==g?"tpae-category-btn tpae-act-cat":"tpae-category-btn",onClick:()=>{G("#tp_plus_visibility")},children:(0,Pn.__)("Visibility","tpebl")}),(0,Pi.jsx)("span",{className:"tp_plus_extras"==g?"tpae-category-btn tpae-act-cat":"tpae-category-btn",onClick:()=>{G("#tp_plus_extras")},children:(0,Pn.__)("Plus Extras","tpebl")}),!("on"==j?.plugin_ads)&&(0,Pi.jsx)("span",{className:"tp_nexter_extension"==g?"tpae-category-btn tpae-act-cat":"tpae-category-btn",onClick:()=>{G("#tp_nexter_extension")},children:(0,Pn.__)("Nexter Extension","tpebl")})]})})]}),(ne=!0,(0,Pi.jsxs)(Pi.Fragment,{children:[vo.widgetListExtra.map(((t,r)=>{const h=t.widgets.filter((e=>"all"==d||e?.tag==d?e:void 0)).filter((e=>""==p||e?.label.toLocaleLowerCase().includes(p.toLocaleLowerCase())?e:void 0));if(h.length>0)return ne=!1,(0,Pi.jsxs)("div",{className:"tpae-catwise-wid-manage-cov",children:[(0,Pi.jsx)("div",{className:"tpae-catwise-wid-mancover",children:(0,Pi.jsxs)("div",{className:"tpae-wid-h-infogrp",children:[(0,Pi.jsx)("h3",{className:"tpae-wid-cat-h",id:"tp_"+t.name,children:t.label}),(0,Pi.jsxs)("div",{className:"tpae-cat-qik-info",children:[(0,Pi.jsxs)("span",{className:"tpae-ttl-wid-num",children:[h.length," ",(0,Pn.__)("Total Extensions","tpebl")," "]}),"•",(0,Pi.jsx)("span",{className:"tpae-active-widget-numbers",children:`${u=h,g=0,u?.length>0&&u.map((e=>{l?.extras_elements?.includes(e.name)&&("pro"!=e.tag||a)&&g++}))," "+g} ${(0,Pn.__)("Active","tpebl")}`})]})]})}),(0,Pi.jsx)("div",{className:"tpae-wid-box-cover",children:h.map(((t,r)=>{return(0,Pi.jsxs)("div",{className:"tpae-part-wid-mng-box "+("pro"!=t?.tag||a?"":"tpae-widget-pro"),style:"plus_adv_scroll_interactions"===t?.name?{display:"none"}:{},children:[(0,Pi.jsxs)("div",{className:"tpae-wid-in-left",children:[(0,Pi.jsx)("div",{className:"tpae-wid-sm-tag tpae-category-tag "+("DEPRECATED"==t?.tag?"tpae-deprecated-widget":""),children:t.tag}),(0,Pi.jsxs)("div",{className:"tpae-wid-name",children:[t.label,"0"==s&&t.status&&(0,Pi.jsx)("span",{className:`tpae-wid-sm-tag tpae-wid-name-hint-text tp-tag-color-${t.status}`,children:t.status}),"1"==s&&t.pro_status&&(0,Pi.jsx)("span",{className:`tpae-wid-sm-tag tpae-wid-name-hint-text tp-tag-color-${t.pro_status}`,children:t.pro_status})]}),!("on"==e.tpae_white_lable_data?.help_link)&&(0,Pi.jsxs)("div",{className:"tpae-abt-wid-qik-link-cov",children:[t.demoUrl&&(0,Pi.jsx)("a",{href:t.demoUrl+"?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings",target:"_blank",rel:"noopener noreferrer",className:"tpae-qik-link",children:(0,Pn.__)("Live Demo","tpebl")}),t.demoUrl&&t.docUrl&&(0,Pi.jsx)("span",{children:" | "}),t.docUrl&&(0,Pi.jsx)("a",{href:t.docUrl+"?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings",target:"_blank",rel:"noopener noreferrer",className:"tpae-qik-link",children:(0,Pn.__)("Read Docs","tpebl")})]})]}),(0,Pi.jsxs)("div",{className:"theplus-widget-inner-toggle",children:["yes"===t?.setting?.[0]?.show&&("features"===t?.setting?.[0]?.type||"setting"===t?.setting?.[0]?.type&&a||"swicher"===t?.setting?.[0]?.type)&&(0,Pi.jsxs)(Pi.Fragment,{children:[("setting"===t?.setting?.[0]?.type||"swicher"===t?.setting?.[0]?.type)&&a&&(0,Pi.jsx)("button",{className:"tpae_ex_btn",onClick:()=>te(t),children:(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none",viewBox:"0 0 15 15",children:(0,Pi.jsx)("path",{fill:"#4b465c80",d:"M13.006 9.758a.476.476 0 0 0-.172.203.512.512 0 0 0-.03.274c.01.09.06.172.12.243.183.183.315.365.396.578.09.213.131.426.131.649 0 .223-.05.446-.131.649a1.674 1.674 0 0 1-.912.912 1.688 1.688 0 0 1-1.842-.365.526.526 0 0 0-.273-.162.414.414 0 0 0-.273.03.449.449 0 0 0-.213.172.444.444 0 0 0-.081.254c0 .537-.172.963-.496 1.287a1.684 1.684 0 0 1-2.389 0 1.706 1.706 0 0 1-.496-1.196.6.6 0 0 0-.091-.304.509.509 0 0 0-.223-.162c-.121-.04-.213-.061-.304-.04a.463.463 0 0 0-.243.12 1.837 1.837 0 0 1-.577.396 1.689 1.689 0 0 1-2.206-.912 1.583 1.583 0 0 1-.132-.649c0-.223.05-.446.132-.649a1.62 1.62 0 0 1 .364-.547.527.527 0 0 0 .162-.274.43.43 0 0 0-.03-.274.449.449 0 0 0-.172-.212.443.443 0 0 0-.254-.082c-.546 0-.981-.182-1.295-.496a1.688 1.688 0 0 1 0-2.393c.314-.314.749-.497 1.194-.497.142 0 .233-.03.304-.08a.462.462 0 0 0 .172-.224.554.554 0 0 0 .04-.304.464.464 0 0 0-.12-.243 1.84 1.84 0 0 1-.396-.578 1.617 1.617 0 0 1-.131-.649c0-.223.05-.446.131-.649a1.669 1.669 0 0 1 .911-.912 1.688 1.688 0 0 1 1.843.365.527.527 0 0 0 .273.162c.091.02.192.01.273-.03l.023-.009a.255.255 0 0 1 .089-.022.473.473 0 0 0 .141-.142.444.444 0 0 0 .081-.253c0-.547.183-.973.496-1.287.638-.64 1.762-.64 2.39 0 .323.324.495.75.495 1.196 0 .142.03.223.081.304.051.081.122.132.203.172a.51.51 0 0 0 .273.03.463.463 0 0 0 .243-.121 1.688 1.688 0 0 1 2.784.517c.091.213.132.426.132.649 0 .223-.051.446-.132.649a1.62 1.62 0 0 1-.364.547.577.577 0 0 0-.152.274.422.422 0 0 0 .03.274c.02.04.04.08.04.121.041.061.082.102.142.142.071.05.162.081.253.081.547 0 .972.173 1.286.497.324.324.496.74.496 1.196 0 .456-.172.882-.496 1.196a1.66 1.66 0 0 1-1.194.497.539.539 0 0 0-.304.081Zm-1.094-.203c.112-.263.294-.486.537-.648l.01-.01c.243-.153.516-.244.81-.244.243 0 .405-.06.537-.192a.644.644 0 0 0 .202-.477.703.703 0 0 0-.202-.476.642.642 0 0 0-.476-.203h-.101c-.284 0-.567-.081-.81-.243a1.424 1.424 0 0 1-.547-.65.331.331 0 0 1-.04-.141 1.494 1.494 0 0 1-.061-.76c.05-.294.182-.558.395-.77a.824.824 0 0 0 .182-.264.812.812 0 0 0 .05-.264.764.764 0 0 0-.05-.264.563.563 0 0 0-.142-.223.626.626 0 0 0-.223-.152.653.653 0 0 0-.516 0 .561.561 0 0 0-.223.142c-.253.244-.516.385-.81.436a1.484 1.484 0 0 1-1.508-.649 1.523 1.523 0 0 1-.243-.81c0-.244-.07-.406-.202-.538a.69.69 0 0 0-.952 0 .644.644 0 0 0-.202.477v.1c0 .285-.081.569-.243.812a1.422 1.422 0 0 1-.67.556c-.04.017-.076.032-.12.032a1.488 1.488 0 0 1-.759.06 1.41 1.41 0 0 1-.77-.395.822.822 0 0 0-.262-.182.653.653 0 0 0-.517 0 .582.582 0 0 0-.222.152.755.755 0 0 0-.142.223.81.81 0 0 0-.05.264c0 .09.02.182.05.263.03.081.08.162.142.223.242.254.384.517.435.811.05.294.02.588-.101.862a1.46 1.46 0 0 1-.517.659 1.452 1.452 0 0 1-.83.274.766.766 0 0 0-.546.202.66.66 0 0 0-.203.477c0 .172.081.344.203.476a.658.658 0 0 0 .475.203h.102a1.477 1.477 0 0 1 1.356.892c.122.274.152.568.101.862-.05.294-.182.557-.394.77a.823.823 0 0 0-.183.264.81.81 0 0 0-.05.263c0 .092.02.173.05.254.04.091.081.162.152.223.071.06.142.111.223.142a.652.652 0 0 0 .516 0 .562.562 0 0 0 .223-.142c.253-.243.516-.385.81-.436.08-.02.172-.02.263-.02.202 0 .405.04.597.121.243.091.486.274.658.517.172.244.273.538.273.832 0 .233.081.415.203.537.243.253.698.253.951 0a.66.66 0 0 0 .203-.477v-.101c0-.284.08-.568.243-.811.152-.243.385-.436.648-.547.273-.122.567-.152.86-.102.294.05.557.183.77.396a.705.705 0 0 0 .253.182.652.652 0 0 0 .516 0 .469.469 0 0 0 .223-.142.708.708 0 0 0 .192-.476.764.764 0 0 0-.05-.264.604.604 0 0 0-.143-.213c-.242-.253-.384-.517-.435-.81a1.48 1.48 0 0 1 .101-.863Zm-6.185-1.56a2.283 2.283 0 0 1 2.278-2.28 2.283 2.283 0 0 1 2.278 2.28 2.283 2.283 0 0 1-2.278 2.282 2.283 2.283 0 0 1-2.278-2.281Zm1.013 0c0 .7.567 1.268 1.265 1.268a1.267 1.267 0 0 0 0-2.535c-.698 0-1.265.568-1.265 1.268Z"})})}),"features"===t?.setting?.[0]?.type&&(0,Pi.jsx)("button",{className:"tpae_ex_btn",onClick:()=>te(t),children:(0,Pi.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",children:[(0,Pi.jsx)("rect",{x:"0.5",y:"1.0517",width:"23",height:"23",rx:"11.5",fill:"white"}),(0,Pi.jsx)("rect",{x:"0.5",y:"1.0517",width:"23",height:"23",rx:"11.5",stroke:"#727272"}),(0,Pi.jsx)("path",{d:"M12 10.0833C11.6791 10.0833 11.4046 9.96914 11.1763 9.74086C10.948 9.51258 10.8337 9.23783 10.8333 8.91661C10.8329 8.59539 10.9473 8.32083 11.1763 8.09294C11.4054 7.86505 11.6799 7.75072 12 7.74994C12.32 7.74917 12.5948 7.8635 12.8242 8.09294C13.0537 8.32239 13.1678 8.59694 13.1666 8.91661C13.1655 9.23628 13.0513 9.51103 12.8242 9.74086C12.5971 9.97069 12.3224 10.0848 12 10.0833ZM12 18.2499C11.7569 18.2499 11.5504 18.165 11.3805 17.995C11.2105 17.8251 11.1254 17.6184 11.125 17.3749V12.1249C11.125 11.8819 11.2101 11.6754 11.3805 11.5054C11.5508 11.3355 11.7573 11.2503 12 11.2499C12.2426 11.2496 12.4493 11.3347 12.6201 11.5054C12.7908 11.6762 12.8758 11.8827 12.875 12.1249V17.3749C12.875 17.618 12.79 17.8247 12.6201 17.995C12.4501 18.1654 12.2434 18.2503 12 18.2499Z",fill:"#727272"})]})})]}),(0,Pi.jsxs)("label",{className:"tpae-wid-tgl-btn-cover",children:[(0,Pi.jsx)("input",{className:"tpae-toggle-btn",type:"checkbox",onChange:e=>{(async(e,t)=>{let n=l?.[t]?l?.[t]:[];var s=n.findIndex((t=>t===e));-1==s?n.push(e):n.splice(s,1);let r=Object.assign({},l,{[t]:n});c(r);let a=new FormData;a.append("action","tpae_dashboard_ajax_call"),a.append("nonce",i),a.append("type","tpae_set_widget_list"),a.append("widget_data",JSON.stringify(r)),(await In.post(o,a)).data})(t.name,"extras_elements")},checked:K(t.name,"extras_elements",t),disabled:(d=t,!a&&"pro"==d.tag)}),(0,Pi.jsx)("span",{className:"tpae-toggle-slider",onClick:e=>{!a&&"pro"==t.tag&&_(!0)},children:!a&&"pro"==t.tag&&(0,Pi.jsx)("img",{className:"theplus-toggle-lock-icon",src:n+"assets/svg/theplus_lock_icon.svg"})})]})]}),M&&ee(t)]},r);var d}))})]},r);var u,g})),T&&(0,Pi.jsx)(Pi.Fragment,{children:(0,Pi.jsx)("div",{className:"tpae_features_overlay",onClick:()=>{O(!1)},children:(0,Pi.jsxs)("div",{className:`tpae_select_features_popup ${z.widget_name}`,onClick:e=>e.stopPropagation(),children:[(0,Pi.jsx)("svg",{className:"tpae_close_icon",onClick:()=>{O(!1)},width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Pi.jsx)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})}),(0,Pi.jsxs)("div",{className:"tpae_popup_heading",children:[(0,Pi.jsxs)("h3",{className:"tpae_popup_h",children:[I," ",(0,Pn.__)("Features","tpebl")]}),(0,Pi.jsx)("p",{className:"tpae_popup_p"})]}),(0,Pi.jsx)(Pi.Fragment,{children:"features"===z.type?(0,Pi.jsx)("div",{className:`tpae_field_card_bottom ${U}`,children:(0,Pi.jsx)("div",{className:"tpae_checkbox_more_options",children:F?.map(((e,t)=>(0,Pi.jsxs)("label",{className:"tpae-checkbox-option",htmlFor:"",children:[(0,Pi.jsxs)("div",{className:"tpae-card-main",children:[(0,Pi.jsx)("div",{className:"tpae-more-options-svg",children:(0,Pi.jsx)("svg",{id:"GUIDE_TO_DELETE",enableBackground:"new 0 0 128 128",height:"512",viewBox:"0 0 128 128",width:"512",xmlns:"http://www.w3.org/2000/svg",children:(0,Pi.jsxs)("g",{children:[(0,Pi.jsx)("path",{d:"m124 64c0 5.12-6.29 9.34-7.55 14.06-1.3 4.88 1.99 11.68-.48 15.95-2.51 4.34-10.06 4.86-13.58 8.38s-4.04 11.07-8.38 13.58c-4.27 2.47-11.07-.82-15.95.48-4.72 1.26-8.94 7.55-14.06 7.55s-9.34-6.29-14.06-7.55c-4.88-1.3-11.68 1.99-15.95-.48-4.34-2.51-4.86-10.06-8.38-13.58s-11.07-4.04-13.58-8.38c-2.47-4.27.82-11.07-.48-15.95-1.26-4.72-7.55-8.94-7.55-14.06s6.29-9.34 7.55-14.06c1.3-4.88-1.99-11.68.48-15.95 2.51-4.34 10.06-4.86 13.58-8.38s4.04-11.07 8.38-13.58c4.27-2.47 11.07.82 15.95-.48 4.72-1.26 8.94-7.55 14.06-7.55s9.34 6.29 14.06 7.55c4.88 1.3 11.68-1.99 15.95.48 4.34 2.51 4.86 10.06 8.38 13.58s11.07 4.04 13.58 8.38c2.47 4.27-.82 11.07.48 15.95 1.26 4.72 7.55 8.94 7.55 14.06z",fill:"#6f14f1"}),(0,Pi.jsx)("path",{d:"m81.34 46.12-22.84 22.84-11.84-11.83c-2.57-2.57-6.74-2.57-9.31 0-2.57 2.57-2.57 6.74 0 9.31l16.61 16.61c2.5 2.5 6.56 2.5 9.06 0l27.62-27.62c2.57-2.57 2.57-6.74 0-9.31-2.57-2.57-6.73-2.57-9.3 0z",fill:"#fffcee"})]})})}),(0,Pi.jsx)("div",{className:"tpae-options-text",children:e.name})]}),(0,Pi.jsx)("a",{href:e.url,className:"tpae-checkbox-url",target:"_blank",children:(0,Pi.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,Pi.jsx)("path",{d:"M12 8.66667V12.6667C12 13.0203 11.8595 13.3594 11.6095 13.6095C11.3594 13.8595 11.0203 14 10.6667 14H3.33333C2.97971 14 2.64057 13.8595 2.39052 13.6095C2.14048 13.3594 2 13.0203 2 12.6667V5.33333C2 4.97971 2.14048 4.64057 2.39052 4.39052C2.64057 4.14048 2.97971 4 3.33333 4H7.33333",stroke:"#727272",strokeWidth:"1.33333",strokeLinejoin:"round","stroke-linejoin":"round"}),(0,Pi.jsx)("path",{d:"M10 2H14V6",stroke:"#727272",strokeWidth:"1.33333",strokeLinejoin:"round","stroke-linejoin":"round"}),(0,Pi.jsx)("path",{d:"M6.66675 9.33333L14.0001 2",stroke:"#727272",strokeWidth:"1.33333",strokeLinejoin:"round","stroke-linejoin":"round"})]})})]},t)))})}):"swicher"===z.type?(0,Pi.jsx)(eo,{moreOptionsData:z,WidgetsOptionsKey:U,tpWidget_Setting:W,free_pro:a,plugin_url:n}):null})]})})}),!("on"==j?.plugin_ads)&&vo.plus_extension.map(((t,n)=>{const i=t.widgets.filter((e=>"all"==d||e?.tag==d?e:void 0)).filter((e=>""==p||e?.label.toLocaleLowerCase().includes(p.toLocaleLowerCase())?e:void 0));if(i.length>0)return ne=!1,(0,Pi.jsxs)("div",{className:"tpae-catwise-wid-manage-cov",children:[(0,Pi.jsx)("div",{className:"tpae-catwise-wid-mancover",children:(0,Pi.jsxs)("div",{className:"tpae-wid-h-infogrp",children:[(0,Pi.jsx)("h3",{className:"tpae-wid-cat-h",id:"tp_"+t.name,children:t.label}),(0,Pi.jsx)("div",{className:"tpae-cat-qik-info",children:(0,Pi.jsxs)("span",{className:"tpae-ttl-wid-num",children:[i.length," ",(0,Pn.__)("Total Extensions","tpebl")," "]})})]})}),(0,Pi.jsxs)("div",{className:"tpae-wid-box-cover",children:[i.map(((t,n)=>{return(0,Pi.jsxs)("div",{className:"tpae-part-wid-mng-box "+("pro"!=t?.tag||a?"":"tpae-widget-pro"),children:[(0,Pi.jsxs)("div",{className:"tpae-wid-in-left",children:[(0,Pi.jsx)("div",{className:"tpae-nexter-tag",children:t.tag}),(0,Pi.jsxs)("div",{className:"tpae-wid-name",children:[t.label,"0"==s&&t.status&&(0,Pi.jsx)("span",{className:`tpae-wid-sm-tag tpae-wid-name-hint-text tp-tag-color-${t.status}`,children:t.status}),"1"==s&&t.pro_status&&(0,Pi.jsx)("span",{className:`tpae-wid-sm-tag tpae-wid-name-hint-text tp-tag-color-${t.pro_status}`,children:t.pro_status})]}),!("on"==e.tpae_white_lable_data?.help_link)&&(0,Pi.jsxs)("div",{className:"tpae-abt-wid-qik-link-cov",children:[(0,Pi.jsx)("a",{href:"https://nexterwp.com/nexter-extension/features/?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings",target:"_blank",rel:"noopener noreferrer",className:"tpae-nexter-link",children:(0,Pn.__)("Live Demo","tpebl")}),t.docUrl&&(0,Pi.jsx)("span",{children:" | "}),t.docUrl&&(0,Pi.jsx)("a",{href:t.docUrl+"?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings",target:"_blank",rel:"noopener noreferrer",className:"tpae-nexter-link",children:(0,Pn.__)("Read Docs","tpebl")})]})]}),(0,Pi.jsx)("div",{className:"theplus-widget-inner-toggle",children:(0,Pi.jsx)("label",{className:"tpae-nexter-tgl-btn-cover",children:b?(0,Pi.jsx)("a",{className:"tpae-nexter-redirect",href:(i=t.category_url,o=t.name,"theme_builder"===o?window.location.href.split("wp-admin/")[0]+"wp-admin/"+`edit.php?${i}`:window.location.href.split("wp-admin/")[0]+"wp-admin/"+`admin.php?${i}`),target:"_blank",rel:"noopener noreferrer",children:(0,Pi.jsx)("div",{className:"nexter-download-template",children:(0,Pi.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Pi.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.75033 2.33268C8.42816 2.33268 8.16699 2.07152 8.16699 1.74935C8.16699 1.42718 8.42816 1.16602 8.75033 1.16602H12.2502H12.2503C12.3751 1.16602 12.4908 1.20521 12.5856 1.27196C12.7356 1.37752 12.8337 1.55199 12.8337 1.74935V5.24935C12.8337 5.57152 12.5725 5.83268 12.2503 5.83268C11.9282 5.83268 11.667 5.57152 11.667 5.24935V3.15756L6.24606 8.57849C6.01825 8.8063 5.6489 8.8063 5.4211 8.57849C5.19329 8.35069 5.19329 7.98134 5.4211 7.75354L10.842 2.33268H8.75033ZM2.91699 4.08268C2.76228 4.08268 2.61391 4.14414 2.50451 4.25354C2.39512 4.36293 2.33366 4.51131 2.33366 4.66602V11.0827C2.33366 11.2374 2.39512 11.3858 2.50451 11.4952C2.61391 11.6046 2.76228 11.666 2.91699 11.666H9.33366C9.48837 11.666 9.63674 11.6046 9.74614 11.4952C9.85553 11.3858 9.91699 11.2374 9.91699 11.0827V7.58268C9.91699 7.26052 10.1782 6.99935 10.5003 6.99935C10.8225 6.99935 11.0837 7.26052 11.0837 7.58268V11.0827C11.0837 11.5468 10.8993 11.9919 10.5711 12.3201C10.2429 12.6483 9.79779 12.8327 9.33366 12.8327H2.91699C2.45286 12.8327 2.00774 12.6483 1.67956 12.3201C1.35137 11.9919 1.16699 11.5468 1.16699 11.0827V4.66602C1.16699 4.20189 1.35137 3.75677 1.67956 3.42858C2.00774 3.10039 2.45286 2.91602 2.91699 2.91602H6.41699C6.73916 2.91602 7.00033 3.17718 7.00033 3.49935C7.00033 3.82152 6.73916 4.08268 6.41699 4.08268H2.91699Z",fill:"black"})})})}):(0,Pi.jsx)("div",{className:"nexter-download-template",onClick:()=>y(!0),children:(0,Pi.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",children:[(0,Pi.jsx)("path",{d:"M6.79116 0.0356951C6.73488 0.0567989 6.64344 0.117764 6.58951 0.171695C6.40192 0.359281 6.41364 0.117764 6.41364 3.55762V6.61995L5.93999 6.1463C5.43351 5.64216 5.34441 5.57885 5.14979 5.57651C4.97862 5.57651 4.86372 5.62575 4.73241 5.75237C4.53779 5.9423 4.49558 6.16271 4.60814 6.40892C4.63627 6.47223 4.92 6.77236 5.50151 7.35154C6.26592 8.11126 6.37144 8.20739 6.50744 8.2707C6.8193 8.41608 7.16164 8.41843 7.48054 8.28008C7.60481 8.22381 7.71736 8.12298 8.48646 7.36091C9.11956 6.7325 9.36342 6.47457 9.39625 6.39954C9.45487 6.27292 9.45722 6.06657 9.40329 5.93995C9.31887 5.73361 9.08205 5.57651 8.86398 5.57651C8.65295 5.57885 8.57322 5.63513 8.06205 6.1463L7.58605 6.61995V3.55762C7.58605 0.117764 7.59778 0.359281 7.41019 0.171695C7.2484 0.00755787 7.01392 -0.0416832 6.79116 0.0356951Z",fill:"#19191B"}),(0,Pi.jsx)("path",{d:"M1.37381 5.45235C1.22843 5.50394 1.08305 5.65635 1.03147 5.81111C0.996296 5.91897 0.991606 5.98463 1.00568 6.266C1.05726 7.38214 1.3996 8.42558 2.00926 9.33302C2.46181 10.0107 3.15118 10.6743 3.83353 11.0987C5.46083 12.1069 7.44924 12.2781 9.24302 11.5676C10.0074 11.2652 10.6827 10.8056 11.3018 10.1701C12.3405 9.10323 12.9267 7.75027 12.9947 6.26131C13.0111 5.86738 12.9807 5.74311 12.8259 5.58835C12.5961 5.35856 12.235 5.35856 12.0052 5.58835C11.8763 5.71732 11.8364 5.84628 11.82 6.20973C11.8012 6.5849 11.7543 6.90145 11.6629 7.24145C11.2103 8.93909 9.84564 10.2756 8.14096 10.6883C5.57104 11.312 2.98001 9.75275 2.32112 7.18517C2.23905 6.86159 2.16871 6.35745 2.16871 6.07842C2.16871 5.86035 2.11477 5.71028 1.99284 5.58835C1.83105 5.42421 1.59657 5.37497 1.37381 5.45235Z",fill:"#19191B"})]})})})})]},n);var i,o})),v&&(0,Pi.jsx)("div",{className:"tpae-nexter-popup",onClick:q,children:(0,Pi.jsxs)("div",{className:"tpae-nexter-bg",onClick:e=>e.stopPropagation(),children:[(0,Pi.jsx)("div",{className:"tpae-model-close",onClick:q,children:(0,Pi.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Pi.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z",fill:"white",fillOpacity:"0.8"})})}),(0,Pi.jsx)(J,{})]})})]})]},n)})),ne&&(0,Pi.jsx)(Di,{})]}))]}),f&&(0,Pi.jsx)(Xi,{heading:"Upgrade to The Plus Addons for Elementor Pro to Unlock All Widgets & All Pre-Made Templates",parent_class:"tpae-pro-required",inner_class:"theplus_whitlabel_popup tpae-pro-required-inner",setShowPopup:_,close_svg:(0,Pi.jsxs)("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:()=>{_(!1)},children:[(0,Pi.jsx)("path",{d:"M18.75 6.25L6.25 18.75",stroke:"white",strokeWidth:"0.75",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Pi.jsx)("path",{d:"M6.25 6.25L18.75 18.75",stroke:"white",strokeWidth:"0.75",strokeLinecap:"round",strokeLinejoin:"round"})]})})]});var ne}));let xo=new AbortController;const Co=()=>{var e=tpae_db_object.nonce,n=tpae_db_object.ajax_url,i=tpae_db_object.tpae_url,o=tpae_db_object?.tpae_ui_limit?tpae_db_object.tpae_ui_limit:0;const s=[{label:(0,Pn.__)("Page","tpebl"),value:"page"},{label:(0,Pn.__)("Section","tpebl"),value:"section"},{label:(0,Pn.__)("Elementor Template","tpebl"),value:"elementor_template",child:tpae_db_object?.tpae_ele_temp?tpae_db_object.tpae_ele_temp:[]},{label:(0,Pn.__)("Nexter Template","tpebl"),value:"nexter",child:tpae_db_object?.tpae_nxt_temp?tpae_db_object.tpae_nxt_temp:[]}],r=[{name:"export_without_images",label:(0,Pn.__)("Download Without Image","tpebl"),value:!1,tool_tip:""},{name:"auto_id_svgs",label:(0,Pn.__)("Auto SVG Detact","tpebl"),value:!1,tool_tip:""},{name:"use_percentage_width",label:(0,Pn.__)("Width In Percentage","tpebl"),value:!1,tool_tip:""},{name:"use_exported_images",label:(0,Pn.__)("Exported Image","tpebl"),value:!1,tool_tip:""}],[a,l]=(0,t.useState)("https://www.figma.com/design/nwQXCeTm0IkZXaT2st62Wp/UiChemy---ENT-File?node-id=0-1&t=zO0zo2UtlwnoYtpL-1"),[c,d]=(0,t.useState)([]),[h,p]=(0,t.useState)(!1),[u,g]=(0,t.useState)(!1),[m,f]=(0,t.useState)([]),[_,b]=(0,t.useState)(""),[w,v]=(0,t.useState)(""),[y,x]=(0,t.useState)(-1),[C,k]=(0,t.useState)(!1),[S,j]=(0,t.useState)(r),[$,A]=(0,t.useState)(o),[N,E]=(0,t.useState)(!1),[L,M]=(0,t.useState)({}),R=e=>{const t=e.match(/^https:\/\/www\.figma\.com\/file|design\/(\w+)\/?.*/m);return null===t||t.length<2?null:t[1]};(0,t.useEffect)((()=>{T()}),[]);const T=async()=>{if(!a)return b((0,Pn.__)("Enter Your Figma Link !!","tpebl")),!1;p(!0);const t=R(a);let i=new FormData;i.append("action","tpae_figma_ajax_call"),i.append("type","tpae_get_figma_json"),i.append("nonce",e),i.append("fileKey",t);var o=await In.post(n,i);if(o?.data?.success){let e=JSON.parse(o.data.data);f([]),d(e),p(!1)}else v(o?.data?.message?o.data.message:""),f([]),p(!1),E(!0)},O=async t=>{if(g(!0),tpae_db_object?.tpae_ui_limit<=0)return void b(!0);const i=R(a);if(t?.length>0){var o={},s=0,r=L,l=t?.length;S.map((e=>{o=Object.assign({},o,{[e.name]:e.value})})),xo&&xo.abort(),t.map((async(t,a)=>{let d=c.findIndex((e=>e.id==t));if(d>-1&&c?.[d]){let a=c[d]?.post_type?c[d].post_type:"page",u=new FormData;if(u.append("action","tpae_figma_ajax_call"),u.append("type","tpae_convert_figma_temp"),u.append("nonce",e),u.append("fileKey",i),u.append("nodeID",t),u.append("postType",a),u.append("settings",JSON.stringify(o)),"elementor_template"==a){let e=c[d].condition?c[d].condition:"standard-template";u.append("elementorPostSubType",e)}if("nexter"==a){let e=c[d].condition?c[d].condition:"standard-template";u.append("nexterPostSubType",e)}xo=new AbortController;var h=await In.post(n,u,{signal:xo.signal}).then((async e=>await e.data));if(s++,h&&h.data)var p={id:t,status:"imported",link:h?.data?.view?h.data.view:""};else p={id:t,status:"error",message:h?.message?h.message:""};s==l&&(g(!1),f([])),r=Object.assign({},r,{[t]:p}),M(r)}}))}},I=(e,t,n)=>{e?.child&&Object.values(e?.child)?.length>0||y>-1&&x(-1);let i=e.value,o=c.findIndex((e=>e.id==t));if(o>-1){let t=[...c];var s=Object.assign({},c[o],{post_type:i});if("condition"==n){let t=e[0];s=Object.assign({},c[o],{post_type:c[o].post_type,condition:t})}else if(s=Object.assign({},c[o],{post_type:i,condition:""}),e?.child&&Object.values(e?.child)?.length>0){let t=Object.keys(e.child)[0];s=Object.assign({},s,{condition:t})}t.splice(o,1,s),d(t)}},P=e=>{let t=e?.post_type;if(t){let n=s.findIndex((e=>e.value==t));if(n>-1){if(e?.condition){let t=s[n]?.child?.[e?.condition]?s[n].child[e?.condition]:"";return s[n].label+" / "+t}return s[n].label}return"Page"}return"Page"},F=e=>{let t=m.findIndex((t=>t==e));return t>-1?t+1:""},D=()=>{const[e,n]=(0,t.useState)(S);return(0,Pi.jsx)("div",{className:"tpae-figma-setting-popup",children:(0,Pi.jsxs)("div",{className:"tpae-setting-popup-inner",children:[(0,Pi.jsxs)("div",{className:"tpae-fg-setting-content",children:[(0,Pi.jsx)("div",{className:"tpae-fg-popup-close-btn",children:(0,Pi.jsx)("svg",{onClick:()=>{k(!1)},xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 10 9",fill:"#D9D9D9",children:(0,Pi.jsx)("path",{d:"M9.20047 0.306647C8.94047 0.0466473 8.52047 0.0466473 8.26047 0.306647L5.00047 3.55998L1.74047 0.29998C1.48047 0.0399805 1.06047 0.0399805 0.800469 0.29998C0.540469 0.55998 0.540469 0.979981 0.800469 1.23998L4.06047 4.49998L0.800469 7.75998C0.540469 8.01998 0.540469 8.43998 0.800469 8.69998C1.06047 8.95998 1.48047 8.95998 1.74047 8.69998L5.00047 5.43998L8.26047 8.69998C8.52047 8.95998 8.94047 8.95998 9.20047 8.69998C9.46047 8.43998 9.46047 8.01998 9.20047 7.75998L5.94047 4.49998L9.20047 1.23998C9.4538 0.986647 9.4538 0.559981 9.20047 0.306647Z"})})}),(0,Pi.jsx)("div",{className:"tpae-fg-popup-header",children:(0,Pi.jsx)("span",{children:(0,Pn.__)("Settings","tpebl")})}),(0,Pi.jsx)("div",{className:"tpae-fg-popup-body",children:e.map(((t,i)=>(0,Pi.jsxs)("div",{className:"tpae-fg-setting-card",children:[(0,Pi.jsxs)("div",{className:"tpae-setting-card-head",children:[(0,Pi.jsx)("span",{className:"tpae-setting-card-title",children:t.label}),t?.tool_tip&&(0,Pi.jsx)("div",{className:"tpae-card-tooltip",children:(0,Pi.jsx)("span",{className:"tpae-card-tooltip-txt",children:t.tool_tip})})]}),(0,Pi.jsxs)("label",{htmlFor:`tpae-fg-import-settings-${i}`,className:"tpae-setting-card-toggle",children:[(0,Pi.jsx)("input",{id:`tpae-fg-import-settings-${i}`,className:"tpae-card-checkbox",type:"checkbox",checked:t.value,onChange:t=>{((t,i)=>{let o=[...e],s=Object.assign({},o[i],{value:t});o.splice(i,1,s),n(o)})(t.target.checked,i)}}),(0,Pi.jsx)("span",{className:"tpae-fg-setting-switcher"})]})]})))})]}),(0,Pi.jsxs)("div",{className:"tpae-fg-popup-footer",children:[(0,Pi.jsx)("a",{className:"tpae-fg-popup-doc",children:(0,Pn.__)("Read How it Works","tpebl")}),(0,Pi.jsx)("button",{className:"tpae-purple-common-btn",onClick:()=>{k(!1),j(e)},children:(0,Pn.__)("Save","tpebl")})]})]})})};return(0,Pi.jsxs)("div",{className:"tpae_figma_content tpae-main-container",onClick:e=>{(e=>{let t=e.target.closest(".tpae-card-drp-opt");y>-1&&!t&&x(-1)})(e)},children:[(0,Pi.jsxs)("div",{className:"tpae-section-heading-cover",children:[(0,Pi.jsxs)("div",{className:"tpae-header-inner",children:[(0,Pi.jsx)("h3",{className:"tpae-section-heading",children:(0,Pn.__)("Figma to Elementor","tpebl")}),(0,Pi.jsxs)("div",{className:"tpae-heading-btns",children:[(0,Pi.jsxs)("div",{className:"tpae-conversion-btn",children:[(0,Pi.jsxs)("span",{children:[$,(0,Pn.__)(" Conversion Left","tpebl")]}),(0,Pi.jsxs)("div",{className:"tpae-header-tooltip",children:[(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 12 12",fill:"none",children:(0,Pi.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 1.5C3.51472 1.5 1.5 3.51472 1.5 6C1.5 8.4853 3.51472 10.5 6 10.5C8.4853 10.5 10.5 8.4853 10.5 6C10.5 3.51472 8.4853 1.5 6 1.5ZM0.5 6C0.5 2.96244 2.96244 0.5 6 0.5C9.03755 0.5 11.5 2.96244 11.5 6C11.5 9.03755 9.03755 11.5 6 11.5C2.96244 11.5 0.5 9.03755 0.5 6ZM6 5.5C6.27615 5.5 6.5 5.72385 6.5 6V8C6.5 8.27615 6.27615 8.5 6 8.5C5.72385 8.5 5.5 8.27615 5.5 8V6C5.5 5.72385 5.72385 5.5 6 5.5ZM6 3.5C5.72385 3.5 5.5 3.72386 5.5 4C5.5 4.27614 5.72385 4.5 6 4.5H6.005C6.28115 4.5 6.505 4.27614 6.505 4C6.505 3.72386 6.28115 3.5 6.005 3.5H6Z",fill:"white"})}),(0,Pi.jsx)("span",{children:(0,Pn.__)(5e3-$+"/5000 pages converted this month. Resets in 17 days. Each page will be counted as 1 conversion.","tpebl")})]})]}),(0,Pi.jsx)("a",{className:"tpae-get-more-btn",href:"https://uichemy.com/pricing/",target:"_blank",rel:"noopener noreferrer",children:(0,Pn.__)("Get More","tpebl")})]})]}),(0,Pi.jsxs)("div",{className:"tpae-header-logo",children:[(0,Pi.jsx)("span",{children:(0,Pn.__)("Powered by","tpebl")}),(0,Pi.jsx)("a",{className:"tpae-header-logo-link",href:"https://uichemy.com/",target:"_blank",rel:"noopener noreferrer",children:(0,Pi.jsx)("img",{src:i+"assets/images/figma/uichemy-header.png"})})]})]}),(0,Pi.jsxs)("div",{className:"tpae_figma_content_cover",children:[(0,Pi.jsxs)("div",{className:"tpae-figma-url-container",children:[(0,Pi.jsxs)("div",{className:"tpae-figma-url-con",children:[(0,Pi.jsx)("label",{className:"tpae-figma-url-title",children:(0,Pn.__)("Enter Your Figma URL","tpebl")}),(0,Pi.jsxs)("div",{className:"tpae-figma-url-inp "+(_?"tpae-empty-figma-inp":""),children:[(0,Pi.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"17",viewBox:"0 0 10 14",fill:"none",children:[(0,Pi.jsx)("path",{d:"M5.01758 6.99995C5.01758 5.71129 6.06225 4.66663 7.3509 4.66663C8.63956 4.66663 9.68423 5.71132 9.68423 6.99995C9.68423 8.28863 8.63953 9.33327 7.3509 9.33327C6.06222 9.33327 5.01758 8.28861 5.01758 6.99995Z",fill:"#00BCFF"}),(0,Pi.jsx)("path",{d:"M0.349609 11.6666C0.349609 10.3779 1.39428 9.33325 2.68293 9.33325L3.92639 8.67676L5.01626 9.33325V11.6666C5.01626 12.9553 3.97159 13.9999 2.68293 13.9999C1.39428 13.9999 0.349609 12.9552 0.349609 11.6666Z",fill:"#00CF7F"}),(0,Pi.jsx)("path",{d:"M5.01773 0L3.74805 2.20582L5.01773 4.66665H7.31832C8.607 4.66665 9.65164 3.62198 9.65164 2.33332C9.65164 1.04467 8.60698 0 7.31832 0H5.01773Z",fill:"#FF7361"}),(0,Pi.jsx)("path",{d:"M0.318359 2.33332C0.318359 3.62198 1.36303 4.66665 2.65168 4.66665L3.88945 5.14473L5.01774 4.66665V0H2.65166C1.36303 0 0.318359 1.04467 0.318359 2.33332Z",fill:"#FF4D12"}),(0,Pi.jsx)("path",{d:"M0.349609 6.99998C0.349609 8.28866 1.39428 9.3333 2.68293 9.3333H5.01626V4.66663H2.68293C1.39428 4.66663 0.349609 5.71132 0.349609 6.99998Z",fill:"#B659FF"})]}),(0,Pi.jsx)("input",{type:"text",placeholder:(0,Pn.__)("Enter your figma URL","tpebl"),onChange:e=>{l(e.target.value),b("")}})]}),(0,Pi.jsx)("span",{className:"tpae-empty-link-error",children:_})]}),(0,Pi.jsxs)("div",{className:"tpae-figma-bottom-con",children:[(0,Pi.jsx)("div",{className:"tpae-figma-doc-link",children:(0,Pi.jsx)("a",{href:"",children:(0,Pn.__)("How to Get Figma URL?","tpebl")})}),h?(0,Pi.jsx)("div",{className:"tpae-figma-convert-btn tpae-purple-common-btn",children:(0,Pi.jsx)("span",{className:"tpae_purple_loader"})}):(0,Pi.jsx)("div",{className:"tpae-figma-convert-btn tpae-purple-common-btn",onClick:()=>{T()},children:(0,Pn.__)("Get Convertible Frames","tpebl")})]}),N&&(0,Pi.jsx)("div",{className:"tpae-limit-reach-msg",children:w})]}),c?.length>0&&(0,Pi.jsxs)("div",{className:"tpae-figma-template-container",children:[(0,Pi.jsxs)("div",{className:"tpae-figma-template-header",children:[(0,Pi.jsxs)("div",{className:"tpae-fg-template-header-txt",children:[(0,Pi.jsx)("span",{className:"tpae-fg-header-title",children:(0,Pn.__)("Select Your Frames","tpebl")}),(0,Pi.jsx)("span",{className:"tpae-fg-header-desc",children:(0,Pn.__)("You can choose multiple design files for further optimisation process.","tpebl")})]}),(0,Pi.jsxs)("div",{className:"tpae-fg-template-header-btn",children:[(0,Pi.jsxs)("button",{className:"tpae-fg-global-style-btn",children:[(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,Pi.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.10541 2.74157C5.14133 3.51335 2.89066 6.05274 2.54643 9.16671H5.87573C6.06257 6.86405 6.83323 4.65372 8.10541 2.74157ZM10.0007 0.833374C4.93804 0.833374 0.833984 4.93743 0.833984 10C0.833984 15.0626 4.93804 19.1667 10.0007 19.1667C15.0632 19.1667 19.1673 15.0626 19.1673 10C19.1673 4.93743 15.0632 0.833374 10.0007 0.833374ZM11.8959 2.74157C13.1681 4.65372 13.9387 6.86405 14.1256 9.16671H17.4549C17.1107 6.05274 14.86 3.51335 11.8959 2.74157ZM12.4527 9.16671C12.2433 6.90573 11.3921 4.75165 10.0007 2.95904C8.60923 4.75165 7.75798 6.90573 7.54864 9.16671H12.4527ZM7.54864 10.8334H12.4527C12.2433 13.0944 11.3921 15.2485 10.0007 17.041C8.60923 15.2485 7.75798 13.0944 7.54864 10.8334ZM5.87573 10.8334H2.54643C2.89066 13.9474 5.14133 16.4867 8.10541 17.2585C6.83323 15.3464 6.06257 13.136 5.87573 10.8334ZM11.8959 17.2585C13.1681 15.3464 13.9387 13.136 14.1256 10.8334H17.4549C17.1107 13.9474 14.86 16.4867 11.8959 17.2585Z",fill:"#666666"})}),(0,Pi.jsx)("span",{className:"tpae-fg-btn-text",children:(0,Pn.__)("Global Styles","tpebl")}),(0,Pi.jsx)("span",{className:"tpae-fg-btn-tags",children:(0,Pn.__)("Coming Soon","tpebl")})]}),(0,Pi.jsxs)("button",{className:"tpae-fg-setting-btn",onClick:()=>{k(!0)},children:[(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,Pi.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.41075 1.91074C9.567 1.75447 9.779 1.66667 10 1.66667C10.221 1.66667 10.433 1.75447 10.5892 1.91074C10.7455 2.06702 10.8333 2.27898 10.8333 2.5V2.575V2.57833C10.8351 3.009 10.9627 3.42977 11.2005 3.78884C11.4374 4.14667 11.7735 4.42767 12.1676 4.59751C12.5702 4.77423 13.0165 4.82676 13.4492 4.7483C13.8833 4.66957 14.2839 4.4626 14.5994 4.15405L14.6059 4.14758L14.6559 4.09758C14.7333 4.02011 14.8256 3.95832 14.9267 3.91637C15.0279 3.87444 15.1363 3.85286 15.2458 3.85286C15.3553 3.85286 15.4637 3.87444 15.5649 3.91637C15.6661 3.95832 15.758 4.01978 15.8354 4.09726L15.8361 4.09792C15.9136 4.17531 15.975 4.26722 16.0169 4.36838C16.0589 4.46955 16.0805 4.57799 16.0805 4.6875C16.0805 4.79701 16.0589 4.90545 16.0169 5.00662C15.975 5.10778 15.9136 5.19969 15.8361 5.27708L15.7857 5.32742L15.7793 5.33394C15.4707 5.64937 15.2638 6.05 15.185 6.48417C15.1167 6.8611 15.1477 7.24832 15.2737 7.60801C15.2836 7.68368 15.3038 7.75782 15.3341 7.82828C15.5037 8.22413 15.7854 8.56175 16.1445 8.7995C16.5036 9.03733 16.9243 9.16492 17.355 9.16667H17.3583H17.5C17.721 9.16667 17.933 9.2545 18.0892 9.41075C18.2455 9.567 18.3333 9.779 18.3333 10C18.3333 10.221 18.2455 10.433 18.0892 10.5892C17.933 10.7455 17.721 10.8333 17.5 10.8333H17.425H17.4217C16.991 10.8351 16.5702 10.9627 16.2112 11.2005C15.8533 11.4375 15.5723 11.7736 15.4024 12.1677C15.2257 12.5702 15.1732 13.0165 15.2517 13.4492C15.3304 13.8833 15.5374 14.2839 15.8459 14.5994L15.8524 14.6059L15.9024 14.6559C15.9799 14.7333 16.0417 14.8256 16.0836 14.9267C16.1256 15.0279 16.1472 15.1363 16.1472 15.2458C16.1472 15.3553 16.1256 15.4637 16.0836 15.5649C16.0417 15.6661 15.9802 15.758 15.9027 15.8354L15.9021 15.8361C15.8247 15.9136 15.7327 15.975 15.6316 16.0169C15.5304 16.0589 15.422 16.0805 15.3125 16.0805C15.203 16.0805 15.0946 16.0589 14.9934 16.0169C14.8922 15.975 14.8003 15.9136 14.7229 15.8361L14.6726 15.7857L14.6661 15.7793C14.3506 15.4707 13.95 15.2638 13.5158 15.185C13.0832 15.1066 12.6369 15.1591 12.2343 15.3358C11.8403 15.5056 11.5042 15.7867 11.2672 16.1445C11.0293 16.5036 10.9017 16.9243 10.9 17.355V17.3583V17.5C10.9 17.721 10.8122 17.933 10.6559 18.0892C10.4997 18.2455 10.2877 18.3333 10.0667 18.3333C9.84567 18.3333 9.63367 18.2455 9.47742 18.0892C9.32117 17.933 9.23333 17.721 9.23333 17.5V17.425L9.23308 17.4055C9.22275 16.9625 9.07933 16.5329 8.82158 16.1725C8.56892 15.8192 8.21777 15.5484 7.81231 15.3937C7.41497 15.2241 6.97636 15.1746 6.55083 15.2517C6.11667 15.3304 5.71604 15.5374 5.40061 15.8459L5.39407 15.8524L5.34407 15.9024C5.26667 15.9799 5.17445 16.0417 5.07328 16.0836C4.97212 16.1256 4.86367 16.1472 4.75417 16.1472C4.64466 16.1472 4.53622 16.1256 4.43505 16.0836C4.33388 16.0417 4.24197 15.9802 4.16458 15.9027L4.16392 15.9021C4.08645 15.8247 4.02498 15.7327 3.98304 15.6316C3.94111 15.5304 3.91953 15.422 3.91953 15.3125C3.91953 15.203 3.94111 15.0946 3.98304 14.9934C4.02498 14.8922 4.08645 14.8003 4.16392 14.7229L4.21425 14.6726L4.22072 14.6661C4.52927 14.3506 4.73624 13.95 4.81497 13.5158C4.89342 13.0832 4.8409 12.6369 4.66418 12.2343C4.49433 11.8402 4.21334 11.5041 3.85551 11.2672C3.49643 11.0293 3.07567 10.9017 2.64499 10.9H2.64167H2.5C2.27898 10.9 2.06702 10.8122 1.91074 10.6559C1.75447 10.4997 1.66667 10.2877 1.66667 10.0667C1.66667 9.84567 1.75447 9.63367 1.91074 9.47742C2.06702 9.32117 2.27898 9.23333 2.5 9.23333H2.575L2.59448 9.23308C3.03748 9.22275 3.46712 9.07933 3.82754 8.82158C4.18082 8.56892 4.45157 8.21777 4.60621 7.81232C4.77594 7.41497 4.82546 6.97636 4.7483 6.55083C4.66957 6.11667 4.4626 5.71604 4.15405 5.40061L4.14759 5.39407L4.09759 5.34407C4.02012 5.26668 3.95832 5.17445 3.91637 5.07328C3.87444 4.97212 3.85286 4.86368 3.85286 4.75417C3.85286 4.64465 3.87444 4.53622 3.91637 4.43505C3.95832 4.33388 4.01978 4.24197 4.09726 4.16458L4.09792 4.16392C4.17531 4.08645 4.26722 4.02498 4.36838 3.98304C4.46955 3.94111 4.57798 3.91953 4.6875 3.91953C4.79702 3.91953 4.90545 3.94111 5.00662 3.98304C5.10778 4.02498 5.19969 4.08645 5.27708 4.16392L5.32741 4.21426L5.33394 4.22072C5.64937 4.52927 6.05 4.73624 6.48417 4.81497C6.86111 4.88332 7.24832 4.85227 7.60801 4.72631C7.68368 4.71641 7.75782 4.69615 7.82828 4.66595C8.22412 4.49629 8.56175 4.21458 8.7995 3.85551C9.03733 3.49643 9.16492 3.07567 9.16667 2.64499V2.64167V2.5C9.16667 2.27898 9.2545 2.06702 9.41075 1.91074ZM10 0C9.337 0 8.70108 0.263392 8.23223 0.732233C7.76339 1.20107 7.5 1.83696 7.5 2.5V2.63958C7.49934 2.74478 7.46806 2.84753 7.40996 2.93527C7.37082 2.99436 7.32066 3.04492 7.26256 3.08435C7.20577 3.09624 7.15023 3.11406 7.09687 3.13762C6.99785 3.18132 6.88801 3.19435 6.78152 3.17504C6.67618 3.15594 6.5789 3.10607 6.50192 3.03175L6.45625 2.98607C6.22407 2.75363 5.94835 2.56923 5.64485 2.44342C5.34136 2.31761 5.01604 2.25286 4.6875 2.25286C4.35896 2.25286 4.03364 2.31761 3.73015 2.44342C3.4268 2.56918 3.15119 2.75346 2.91908 2.98574C2.68679 3.21786 2.50251 3.49347 2.37676 3.79682C2.25094 4.10031 2.18619 4.42562 2.18619 4.75417C2.18619 5.08271 2.25094 5.40802 2.37676 5.71152C2.50257 6.01502 2.68697 6.29073 2.91941 6.52292L2.96508 6.56859C3.0394 6.64557 3.08927 6.74285 3.10838 6.84818C3.12768 6.95468 3.11465 7.06452 3.07095 7.16353C3.06386 7.17959 3.05728 7.19588 3.05122 7.21235C3.0137 7.31436 2.94637 7.40272 2.85796 7.46595C2.77159 7.52772 2.66902 7.56272 2.56303 7.56667H2.5C1.83696 7.56667 1.20107 7.83006 0.732233 8.2989C0.263392 8.76775 0 9.40367 0 10.0667C0 10.7297 0.263392 11.3656 0.732233 11.8344C1.20107 12.3032 1.83696 12.5667 2.5 12.5667H2.63958C2.74478 12.5673 2.84753 12.5986 2.93527 12.6567C3.02334 12.715 3.09243 12.7978 3.13405 12.8949L3.13762 12.9032C3.18132 13.0022 3.19435 13.112 3.17504 13.2185C3.15594 13.3238 3.10607 13.4211 3.03176 13.4981L2.98607 13.5437C2.75363 13.7759 2.56923 14.0517 2.44342 14.3552C2.31761 14.6587 2.25286 14.984 2.25286 15.3125C2.25286 15.641 2.31761 15.9663 2.44342 16.2698C2.56923 16.5733 2.75363 16.8491 2.98607 17.0812C3.21812 17.3134 3.49361 17.4976 3.79682 17.6232C4.10031 17.7491 4.42562 17.8138 4.75417 17.8138C5.08271 17.8138 5.40802 17.7491 5.71152 17.6232C6.01487 17.4975 6.29047 17.3132 6.5226 17.0809L6.56858 17.0349C6.64556 16.9606 6.74285 16.9107 6.84818 16.8917C6.95468 16.8723 7.06452 16.8853 7.16353 16.9291C7.17959 16.9362 7.19588 16.9427 7.21235 16.9487C7.31436 16.9863 7.40272 17.0537 7.46595 17.142C7.52772 17.2284 7.56272 17.331 7.56667 17.437V17.5C7.56667 18.1631 7.83006 18.7989 8.2989 19.2677C8.76775 19.7366 9.40358 20 10.0667 20C10.7297 20 11.3656 19.7366 11.8344 19.2677C12.3032 18.7989 12.5667 18.1631 12.5667 17.5V17.3604C12.5673 17.2552 12.5986 17.1525 12.6567 17.0647C12.715 16.9767 12.7978 16.9076 12.8949 16.8659L12.9032 16.8624C13.0022 16.8187 13.112 16.8057 13.2185 16.825C13.3238 16.8441 13.4211 16.8939 13.4981 16.9683L13.5437 17.0139C13.7758 17.2463 14.0518 17.4308 14.3552 17.5566C14.6587 17.6824 14.984 17.7472 15.3125 17.7472C15.641 17.7472 15.9663 17.6824 16.2698 17.5566C16.5732 17.4308 16.8488 17.2466 17.0809 17.0142C17.3132 16.7822 17.4975 16.5065 17.6232 16.2032C17.7491 15.8997 17.8138 15.5743 17.8138 15.2458C17.8138 14.9173 17.7491 14.592 17.6232 14.2885C17.4975 13.9852 17.3132 13.7095 17.0809 13.4774L17.0349 13.4314C16.9606 13.3544 16.9107 13.2572 16.8917 13.1518C16.8723 13.0453 16.8853 12.9355 16.9291 12.8365L16.9326 12.8282C16.9742 12.7312 17.0433 12.6483 17.1314 12.5901C17.2192 12.5319 17.3219 12.5007 17.4271 12.5H17.5C18.1631 12.5 18.7989 12.2366 19.2677 11.7677C19.7366 11.2989 20 10.6631 20 10C20 9.33692 19.7366 8.70108 19.2677 8.23223C18.7989 7.76339 18.1631 7.5 17.5 7.5H17.3604C17.2552 7.49934 17.1525 7.46806 17.0647 7.40996C17.0057 7.37082 16.9551 7.32066 16.9157 7.26256C16.9037 7.20577 16.8859 7.15023 16.8624 7.09687C16.8187 6.99785 16.8057 6.88801 16.825 6.78152C16.8441 6.67618 16.8939 6.5789 16.9683 6.50192L17.0139 6.45625C17.2463 6.22414 17.4308 5.9482 17.5566 5.64485C17.6824 5.34136 17.7472 5.01604 17.7472 4.6875C17.7472 4.35896 17.6824 4.03364 17.5566 3.73015C17.4309 3.42694 17.2467 3.15145 17.0146 2.91941C16.7824 2.68697 16.5067 2.50257 16.2032 2.37676C15.8997 2.25094 15.5743 2.18619 15.2458 2.18619C14.9173 2.18619 14.592 2.25094 14.2885 2.37676C13.985 2.50257 13.7093 2.68697 13.4771 2.91941L13.4314 2.96509C13.3544 3.0394 13.2572 3.08927 13.1518 3.10838C13.0453 3.12768 12.9355 3.11465 12.8365 3.07095L12.8282 3.06738C12.7312 3.02577 12.6483 2.95668 12.5901 2.8686C12.5319 2.78087 12.5007 2.67812 12.5 2.57292V2.5C12.5 1.83696 12.2366 1.20107 11.7677 0.732233C11.2989 0.263392 10.663 0 10 0ZM8.33333 10C8.33333 9.0795 9.0795 8.33333 10 8.33333C10.9205 8.33333 11.6667 9.0795 11.6667 10C11.6667 10.9205 10.9205 11.6667 10 11.6667C9.0795 11.6667 8.33333 10.9205 8.33333 10ZM10 6.66667C8.15905 6.66667 6.66667 8.15905 6.66667 10C6.66667 11.8409 8.15905 13.3333 10 13.3333C11.8409 13.3333 13.3333 11.8409 13.3333 10C13.3333 8.15905 11.8409 6.66667 10 6.66667Z",fill:"#6660EF"})}),(0,Pi.jsx)("span",{className:"tpae-fg-btn-text",children:(0,Pn.__)("Settings","tpebl")})]})]})]}),(0,Pi.jsxs)("div",{className:"tpae-figma-template-grid",children:[(0,Pi.jsx)("div",{className:"tpae-template-grid-inner",children:c?.length>0&&c.map(((e,t)=>((e,t)=>(0,Pi.jsxs)("div",{className:"tpae-figma-templates",children:[(0,Pi.jsxs)("div",{className:"tpae-template-card-header",children:[(0,Pi.jsx)("span",{className:"tpae-template-card-title",children:e.name}),!L?.[e.id]&&(0,Pi.jsxs)("label",{className:"tpae-template-count-container "+(m.includes(e.id)?"tpae-temp-selected":""),htmlFor:"tpae-temp-count-"+e.id,children:[(0,Pi.jsx)("span",{className:"tpae-template-select-count",children:F(e.id)}),(0,Pi.jsx)("input",{className:"tpae-template-select-inp",id:"tpae-temp-count-"+e.id,type:"checkbox",onChange:t=>{((e,t)=>{if(e)f([...m,t]);else{let e=m.findIndex((e=>e==t)),n=[...m];e>-1&&(n.splice(e,1),f(n)),delete L[t],M(L)}})(t.target.checked,e.id)},checked:!!m.includes(e.id)})]})]}),(0,Pi.jsxs)("div",{className:"tpae-template-card-img",children:[m.includes(e.id)&&!L?.[e.id]&&(0,Pi.jsx)("div",{className:"tpae-card-img-cover"}),"imported"==L?.[e.id]?.status&&L?.[e.id]?.link&&(0,Pi.jsx)("div",{className:"tpae-card-img-cover tpae-view-demo",children:(0,Pi.jsxs)("a",{className:"tpae-card-img-note",href:L?.[e.id]?.link,target:"_blank",rel:"noopener noreferrer",children:[(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"12",viewBox:"0 0 14 12",fill:"none",children:(0,Pi.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.50174 6.41271C1.39704 6.2506 1.31252 6.11019 1.24876 6C1.31252 5.88981 1.39704 5.7494 1.50174 5.58729C1.77067 5.17091 2.16893 4.61715 2.68598 4.06563C3.73072 2.95124 5.19138 1.91667 7 1.91667C8.80863 1.91667 10.2693 2.95124 11.314 4.06563C11.831 4.61715 12.2294 5.17091 12.4983 5.58729C12.603 5.7494 12.6875 5.88981 12.7513 6C12.6875 6.11019 12.603 6.2506 12.4983 6.41271C12.2294 6.82909 11.831 7.38285 11.314 7.93439C10.2693 9.04873 8.80863 10.0833 7 10.0833C5.19138 10.0833 3.73072 9.04873 2.68598 7.93439C2.16893 7.38285 1.77067 6.82909 1.50174 6.41271ZM13.9382 5.73872C13.9383 5.73896 13.9384 5.73913 13.4167 6C13.9384 6.26087 13.9383 6.26104 13.9382 6.26127L13.9379 6.2618L13.9373 6.26314L13.9352 6.26717L13.9287 6.28012C13.9231 6.29091 13.9152 6.30607 13.905 6.32527C13.8848 6.36359 13.8553 6.41813 13.8168 6.4865C13.74 6.62323 13.6267 6.81579 13.4783 7.04562C13.1821 7.50424 12.7419 8.11715 12.1651 8.73228C11.0224 9.95127 9.27471 11.25 7 11.25C4.72529 11.25 2.97761 9.95127 1.83485 8.73228C1.25815 8.11715 0.817874 7.50424 0.521696 7.04562C0.373246 6.81579 0.260045 6.62323 0.18315 6.4865C0.14468 6.41813 0.115232 6.36359 0.0949392 6.32527C0.0847915 6.30607 0.076927 6.29091 0.0713638 6.28012L0.0647441 6.26717L0.062731 6.26314L0.0620491 6.2618L0.0617895 6.26127C0.0616822 6.26104 0.0615842 6.26087 0.583333 6C0.0615842 5.73913 0.0616822 5.73896 0.0617895 5.73872L0.0620491 5.7382L0.062731 5.73686L0.0647441 5.73283L0.0713638 5.71988C0.076927 5.70909 0.0847915 5.69392 0.0949392 5.67473C0.115232 5.63641 0.14468 5.58187 0.18315 5.5135C0.260045 5.37677 0.373246 5.18421 0.521696 4.95438C0.817874 4.49576 1.25815 3.88285 1.83485 3.2677C2.97761 2.04876 4.72529 0.75 7 0.75C9.27471 0.75 11.0224 2.04876 12.1651 3.2677C12.7419 3.88285 13.1821 4.49576 13.4783 4.95438C13.6267 5.18421 13.74 5.37677 13.8168 5.5135C13.8553 5.58187 13.8848 5.63641 13.905 5.67473C13.9152 5.69392 13.9231 5.70909 13.9287 5.71988L13.9352 5.73283L13.9373 5.73686L13.9379 5.7382L13.9382 5.73872ZM13.4167 6L13.9382 5.73872C14.0204 5.90293 14.0204 6.09707 13.9382 6.26127L13.4167 6ZM0.0617895 5.73872L0.583333 6L0.0617895 6.26127C-0.0203227 6.09707 -0.0203227 5.90293 0.0617895 5.73872ZM5.83333 6C5.83333 5.35565 6.35565 4.83333 7 4.83333C7.64435 4.83333 8.16667 5.35565 8.16667 6C8.16667 6.64435 7.64435 7.16667 7 7.16667C6.35565 7.16667 5.83333 6.64435 5.83333 6ZM7 3.66667C5.71133 3.66667 4.66667 4.71133 4.66667 6C4.66667 7.28864 5.71133 8.33333 7 8.33333C8.28864 8.33333 9.33333 7.28864 9.33333 6C9.33333 4.71133 8.28864 3.66667 7 3.66667Z",fill:"#1A1A1A"})}),(0,Pi.jsx)("span",{children:(0,Pn.__)("View Page","tpebl")})]})}),"error"==L?.[e.id]?.status&&(0,Pi.jsx)("div",{className:"tpae-card-img-cover tpae-error-retry",children:(0,Pi.jsxs)("div",{className:"tpae-card-img-note",onClick:()=>{(async e=>{f([...m,e]),delete L[e],M(L),O([...m,e])})(e.id)},children:[(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",children:(0,Pi.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.74799 1.9147C4.63404 1.42614 5.65486 1.23879 6.65667 1.38089C7.65849 1.52298 8.58692 1.98683 9.3022 2.70252C9.30635 2.70669 9.3106 2.7108 9.31486 2.71485L10.9791 4.28203L8.92473 4.25023C8.60261 4.24524 8.33743 4.50234 8.33241 4.82446C8.32745 5.14657 8.58453 5.41175 8.90665 5.41677L12.4066 5.47096C12.5629 5.47335 12.7136 5.41298 12.825 5.30331C12.9363 5.1937 12.999 5.04396 12.999 4.88769V1.33349C12.999 1.01133 12.7379 0.750162 12.4157 0.750162C12.0935 0.750162 11.8324 1.01133 11.8324 1.33349V3.48299L10.121 1.87142C9.22783 0.980438 8.06974 0.402979 6.82053 0.225786C5.56829 0.0481665 4.29223 0.282352 3.18466 0.893049C2.0771 1.50375 1.19802 2.45788 0.679897 3.61166C0.16178 4.76544 0.0326885 6.05634 0.312076 7.28991C0.591464 8.52343 1.2642 9.63275 2.2289 10.4506C3.19361 11.2686 4.39801 11.7508 5.66063 11.8247C6.92325 11.8985 8.17567 11.56 9.22917 10.8602C10.2827 10.1603 11.0801 9.13704 11.5015 7.94447C11.6088 7.64073 11.4495 7.30747 11.1458 7.20014C10.842 7.09286 10.5088 7.25211 10.4014 7.55585C10.0644 8.50989 9.4264 9.32854 8.5836 9.88843C7.7408 10.4483 6.73886 10.7191 5.72876 10.66C4.71867 10.6009 3.75514 10.2152 2.98338 9.56077C2.21162 8.90645 1.67343 8.01902 1.44992 7.0322C1.22641 6.04537 1.32968 5.01264 1.74418 4.08959C2.15868 3.16657 2.86194 2.40326 3.74799 1.9147Z",fill:"#1A1A1A"})}),(0,Pi.jsx)("span",{children:(0,Pn.__)("Retry","tpebl")}),L?.[e.id]?.message&&(0,Pi.jsxs)("div",{className:"tpae-figma-tooltip",children:[(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 12 12",fill:"none",children:(0,Pi.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 1.5C3.51472 1.5 1.5 3.51472 1.5 6C1.5 8.4853 3.51472 10.5 6 10.5C8.4853 10.5 10.5 8.4853 10.5 6C10.5 3.51472 8.4853 1.5 6 1.5ZM0.5 6C0.5 2.96244 2.96244 0.5 6 0.5C9.03755 0.5 11.5 2.96244 11.5 6C11.5 9.03755 9.03755 11.5 6 11.5C2.96244 11.5 0.5 9.03755 0.5 6ZM6 5.5C6.27615 5.5 6.5 5.72385 6.5 6V8C6.5 8.27615 6.27615 8.5 6 8.5C5.72385 8.5 5.5 8.27615 5.5 8V6C5.5 5.72385 5.72385 5.5 6 5.5ZM6 3.5C5.72385 3.5 5.5 3.72386 5.5 4C5.5 4.27614 5.72385 4.5 6 4.5H6.005C6.28115 4.5 6.505 4.27614 6.505 4C6.505 3.72386 6.28115 3.5 6.005 3.5H6Z",fill:"black"})}),(0,Pi.jsx)("span",{children:L?.[e.id]?.message})]})]})}),(0,Pi.jsx)("img",{src:e.thumbURL})]}),(0,Pi.jsxs)("div",{className:"tpae-template-card-drp "+(y==t?"tpae-active-drp":""),children:[(0,Pi.jsxs)("div",{className:"tpae-card-drp-head",onClick:()=>{x(t)},children:[(0,Pi.jsx)("span",{children:P(e)}),(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"6",viewBox:"0 0 10 6",fill:"none",children:(0,Pi.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.529244 0.671395C0.789598 0.411049 1.2117 0.411049 1.47206 0.671395L5.00065 4.2L8.52925 0.671395C8.78959 0.411049 9.21172 0.411049 9.47205 0.671395C9.73238 0.931749 9.73238 1.35386 9.47205 1.61421L5.47205 5.6142C5.21172 5.87454 4.78958 5.87454 4.52925 5.6142L0.529244 1.61421C0.268898 1.35386 0.268898 0.931749 0.529244 0.671395Z",fill:"#1A1A1A"})})]}),(0,Pi.jsx)("div",{className:"tpae-card-drp-body",children:s.map(((t,n)=>{let i=e?.post_type?e.post_type:"page";return(0,Pi.jsx)(Pi.Fragment,{children:(0,Pi.jsxs)("div",{className:"tpae-card-drp-opt "+(t.value==i?"tpae-active-opt":""),children:[t?.child?Object.values(t.child)?.length>0&&(0,Pi.jsxs)(Pi.Fragment,{children:[(0,Pi.jsx)("span",{onClick:()=>{I(t,e.id)},children:t.label}),(0,Pi.jsx)("svg",{className:t.value==e?.post_type?"tpae-drp-svg-rotate":"",xmlns:"http://www.w3.org/2000/svg",width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",children:(0,Pi.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.910091 0.410823C1.23553 0.0853897 1.76317 0.0853897 2.08861 0.410823L7.0886 5.41083C7.41402 5.73625 7.41402 6.26391 7.0886 6.58933L2.08861 11.5893C1.76317 11.9147 1.23553 11.9147 0.910091 11.5893C0.584657 11.2639 0.584657 10.7362 0.910091 10.4108L5.32085 6.00008L0.910091 1.58934C0.584657 1.2639 0.584657 0.736265 0.910091 0.410823Z",fill:"#666666"})})]}):(0,Pi.jsx)("span",{onClick:()=>{I(t,e.id)},children:t.label}),t?.child&&Object.values(t.child)?.length>0&&t.value==e?.post_type&&(0,Pi.jsx)("div",{className:"tpae-card-inner-drp",children:Object.entries(t.child).map((t=>(0,Pi.jsx)("span",{className:"tpae-card-drp-opt "+(t[0]==e?.condition?"tpae-active-opt":""),onClick:()=>{I(t,e.id,"condition")},children:t[1]})))})]},n)})}))})]})]},t))(e,t)))}),(0,Pi.jsx)("div",{className:"tpae-template-import-btn",children:u?(0,Pi.jsx)("div",{className:"tpae-purple-common-btn",children:(0,Pi.jsx)("span",{className:"tpae_purple_loader"})}):(0,Pi.jsx)(Pi.Fragment,{children:(0,Pi.jsx)("button",{className:"tpae-purple-common-btn",onClick:()=>{O(m)},disabled:m?.length<=0,children:(0,Pn.__)("Start Importing","tpebl")})})})]})]}),C&&(0,Pi.jsx)(D,{})]})]})},ko=[{path:"/",element:(0,Pi.jsx)(Fi,{})},{path:"/widgets",element:(0,Pi.jsx)(to,{})},{path:"/elementor_templates",element:(0,Pi.jsx)(io,{})},{path:"/figma",element:(0,Pi.jsx)(Co,{})},{path:"/upgrade_now",element:(0,Pi.jsx)(oo,{})},{path:"/activate_pro",element:(0,Pi.jsx)(wo,{})},{path:"/settings",element:(0,Pi.jsx)(ro,{})},{path:"/listing",element:(0,Pi.jsx)(ao,{})},{path:"/theme_builder",element:(0,Pi.jsx)(lo,{})},{path:"/more_products",element:(0,Pi.jsx)(ho,{})},{path:"/performance",element:(0,Pi.jsx)(po,{})},{path:"/rollback_plugin",element:(0,Pi.jsx)(uo,{})},{path:"/whitelabel",element:(0,Pi.jsx)(mo,{})},{path:"/Custom_CSS_JS",element:(0,Pi.jsx)(_o,{})},{path:"/extension",element:(0,Pi.jsx)(yo,{})},{path:"*",element:(0,Pi.jsx)(Fi,{})}],So=Oi((e=>({tpae_dashboard_data:e.Dashboard_data.db_rx,tpae_white_lable_data:e.White_label.white_lable_rx,plugin_check:e.check_plugin.plugin_status_rx,tpae_license_data:e.license_data.license_rx})),(e=>({tpae_set_white_lable:t=>e(white_lable_a_rx(t))})))((e=>{var n=e.tpae_white_lable_data,i=e.plugin_check,o=tpae_db_object.tpae_url,s=tpae_db_object.tpae_version,r=tpae_db_object.envato_plugin_status,a=tpae_db_object.wdkit_plugin_status;const l="1"==tpae_db_object?.tpae_pro,c=(Z(),K()),d=window.location.href.split("/admin.php")[0],[h,p]=(0,t.useState)(!1),[u,g]=(0,t.useState)({}),[m,f]=(0,t.useState)(!1),[_,b]=(0,t.useState)(""),[w,v]=(0,t.useState)(!1);(0,t.useEffect)((()=>{v("not_installed"===r||"active"===a)}),[]),(0,t.useEffect)((()=>{g(e.tpae_white_lable_data||"")}),[e.tpae_white_lable_data]),(0,t.useEffect)((()=>{b(e.tpae_license_data||[])}),[e.tpae_license_data]);const y=e=>{document.querySelectorAll("#toplevel_page_theplus_welcome_page .wp-submenu a").forEach((function(t){if(t.parentElement.classList.remove("current"),"upgrade_now"===e)e&&"https://theplusaddons.com/pricing?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings"===t.getAttribute("href")&&t.parentElement.classList.add("current");else if("dashboard"===e)!e||"admin.php?page=theplus_welcome_page"!==t.getAttribute("href")&&"admin.php?page=theplus_welcome_page#/"!==t.getAttribute("href")||t.parentElement.classList.add("current");else{let n=t.getAttribute("href").includes(e);href?.includes("?")&&(n=n.split("?")[0]),e&&t.getAttribute("href").includes(n)&&t.parentElement.classList.add("current")}}))},x=i?.some((e=>"unavailable"!==e.status&&"envato-elements"===e.name)),C=()=>{if(h){p(!1);const e=document.querySelector(".tpae_extra_options_navlink_cover .tpae_navlink_icon");e&&(e.style.transform="rotate(0deg)")}};return(0,Pi.jsxs)("div",{className:"tpae_navigation_cover",children:[(0,Pi.jsxs)("div",{className:"tpae_logo_strip",children:[(0,Pi.jsx)("img",{className:"tpae_main_logo",src:n?.tp_plus_logo?n.tp_plus_logo:o+"assets/svg/navbox/TPAE_logo.svg"}),(0,Pi.jsxs)("div",{className:"tpae-mobile-menu-cn",children:[(0,Pi.jsxs)("div",{className:"tpae_hint_text",children:[l&&(0,Pi.jsxs)(Pi.Fragment,{children:[(0,Pi.jsx)("img",{src:o+"assets/svg/premium_icon.svg",draggable:!1}),"PRO"]}),!l&&"FREE"]}),(0,Pi.jsx)("svg",{className:"tpae-menu-btn",onClick:()=>{f(!m)},xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:(0,Pi.jsx)("path",{d:"M4 16H28M4 8H28M4 24H28",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})]}),(0,Pi.jsxs)("div",{className:"tpae_navlinks_cover "+(m?"tpae_open_menu":""),children:[(0,Pi.jsxs)("ul",{className:"tpae_navlinks_inner_cover",children:[(0,Pi.jsx)("li",{children:(0,Pi.jsx)(fe,{className:"/"==c.pathname?"tpae_navlink tpae_active_tab":"tpae_navlink",to:"/",onClick:()=>{f(!1),C(),y("dashboard")},children:(0,Pn.__)("Dashboard","tpebl")})}),(0,Pi.jsx)("li",{children:(0,Pi.jsx)(fe,{className:"/widgets"==c.pathname?"tpae_navlink tpae_active_tab":"tpae_navlink",to:"/widgets",onClick:()=>{f(!1),C(),y("widgets")},children:(0,Pn.__)("Widgets","tpebl")})}),(0,Pi.jsx)("li",{children:(0,Pi.jsx)(fe,{className:"/extension"==c.pathname?"tpae_navlink tpae_active_tab":"tpae_navlink",to:"/extension",onClick:()=>{f(!1),C(),y("extension")},children:(0,Pn.__)("Extensions","tpebl")})}),(0,Pi.jsx)("li",{style:{display:"none"},children:(0,Pi.jsx)(fe,{className:"/figma"==c.pathname?"tpae_navlink tpae_active_tab":"tpae_navlink",to:"/figma",onClick:()=>{f(!1),C()},children:(0,Pn.__)("Figma to Elementor","tpebl")})}),"on"!==u?.template_tab&&1!=x&&w&&(0,Pi.jsx)("li",{children:(0,Pi.jsx)(fe,{className:"/elementor_templates"==c.pathname?"tpae_navlink tpae_active_tab":"tpae_navlink",to:"/elementor_templates",onClick:()=>{f(!1),C(),y("elementor_templates")},children:(0,Pn.__)("Elementor Templates","tpebl")})}),(0,Pi.jsxs)("div",{className:"tpae_extra_options_navlink_cover",children:[(0,Pi.jsxs)("li",{className:"/extra_options"==c.pathname?"tpae_navlink tpae_active_tab":"tpae_navlink",onClick:e=>{(e=>{e.target.closest(".tpae_extra_options_navlink_cover").querySelector(".tpae_navlink_icon").style.transform=h?"rotate(0deg)":"rotate(90deg)",p(!h)})(e)},children:[(0,Pn.__)("Extra Options","tpebl"),(0,Pi.jsx)("span",{className:"tpae_navlink_icon",children:(0,Pi.jsx)("img",{src:o+"assets/svg/chevron_right_icon.svg",draggable:!1})})]}),h&&(0,Pi.jsxs)("ul",{className:"tpae_ext_opt_in_tabs",children:[(0,Pi.jsx)("li",{className:"tpae_nav_dropdown_links",children:(0,Pi.jsx)(fe,{className:"/settings"==c.pathname?"tpae_navlink tpae_active_tab":"tpae_navlink",to:"/settings",onClick:()=>{f(!1),y("settings")},children:(0,Pn.__)("Settings","tpebl")})}),(0,Pi.jsx)("li",{className:"tpae_nav_dropdown_links",children:(0,Pi.jsx)(fe,{className:"/listing"==c.pathname?"tpae_navlink tpae_active_tab":"tpae_navlink",to:"/listing",onClick:()=>{f(!1)},children:(0,Pn.__)("Listing","tpebl")})}),(0,Pi.jsx)("li",{className:"tpae_nav_dropdown_links",children:(0,Pi.jsx)(fe,{className:"/performance"==c.pathname?"tpae_navlink tpae_active_tab":"tpae_navlink",to:"/performance",onClick:()=>{f(!1)},children:(0,Pn.__)("Performance","tpebl")})}),(0,Pi.jsx)("li",{className:"tpae_nav_dropdown_links",children:(0,Pi.jsx)(fe,{className:"/Custom_CSS_JS"==c.pathname?"tpae_navlink tpae_active_tab":"tpae_navlink",to:"/Custom_CSS_JS",onClick:()=>{f(!1)},children:(0,Pn.__)("Custom CSS & JS","tpebl")})}),"on"!==u?.rollback_tab&&(0,Pi.jsx)("li",{className:"tpae_nav_dropdown_links",children:(0,Pi.jsx)(fe,{className:"/rollback_plugin"==c.pathname?"tpae_navlink tpae_active_tab":"tpae_navlink",to:"/rollback_plugin",onClick:()=>{f(!1)},children:(0,Pn.__)("Roll Back Plugin","tpebl")})}),"on"!==u?.tp_white_label_hidden&&(0,Pi.jsx)("li",{className:"tpae_nav_dropdown_links",children:(0,Pi.jsx)(fe,{className:"/whitelabel"==c.pathname?"tpae_navlink tpae_active_tab":"tpae_navlink",to:"/whitelabel",onClick:()=>{f(!1)},children:(0,Pn.__)("White Label","tpebl")})}),"on"!==u?.plugin_ads&&(0,Pi.jsxs)(Pi.Fragment,{children:[(0,Pi.jsx)("li",{className:"tpae_nav_dropdown_links",children:(0,Pi.jsx)(fe,{className:"/theme_builder"==c.pathname?"tpae_navlink tpae_active_tab":"tpae_navlink",to:"/theme_builder",onClick:()=>{f(!1),y("theme_builder")},children:(0,Pn.__)("Theme Builder","tpebl")})}),(0,Pi.jsx)("li",{className:"tpae_nav_dropdown_links",children:(0,Pi.jsx)(fe,{className:"/more_products"==c.pathname?"tpae_navlink tpae_active_tab":"tpae_navlink",to:"/more_products",onClick:()=>{f(!1)},children:(0,Pn.__)("More Products ","tpebl")})})]})]})]}),(0,Pi.jsxs)("li",{className:"tpae_upgrade_navlink_cover",children:[!l&&(0,Pi.jsxs)(fe,{className:"/upgrade_now"==c.pathname?"tpae_navlink tpae_active_tab":"tpae_navlink",to:"/upgrade_now",onClick:()=>{f(!1),C(),y("upgrade_now")},children:[(0,Pn.__)("Upgrade Now","tpebl"),(0,Pi.jsx)("span",{className:"tpae_navlink_icon",children:(0,Pi.jsx)("img",{src:o+"assets/svg/premium_icon.svg",draggable:!1})})]}),l&&(0,Pi.jsx)(Pi.Fragment,{children:"on"!==u?.licence_tab&&(0,Pi.jsxs)(fe,{className:"/activate_pro"==c.pathname?"tpae_navlink tpae_active_tab":"tpae_navlink",to:"/activate_pro",onClick:()=>{f(!1),C(),y("activate_pro")},children:["valid"===_?.license?(0,Pn.__)("Activated","tpebl"):(0,Pn.__)("Activate PRO","tpebl"),"valid"==_.license&&(0,Pi.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 20 20",fill:"none",children:[(0,Pi.jsx)("path",{d:"M9.24735 0.0195866C7.79655 0.156374 6.69379 0.465122 5.48936 1.07089C3.9017 1.86425 2.43135 3.21257 1.46546 4.76021C0.76548 5.87796 0.257115 7.32008 0.0498588 8.7661C-0.0166196 9.22727 -0.0166196 10.7671 0.0498588 11.2283C0.2141 12.3812 0.519118 13.3895 0.996199 14.3548C1.53194 15.4491 2.05985 16.1838 2.92798 17.0554C3.7922 17.9152 4.53911 18.4506 5.59103 18.9665C6.3262 19.326 6.79938 19.5019 7.54628 19.6895C9.50153 20.1819 11.4646 20.0881 13.3729 19.412C13.9595 19.2049 14.9684 18.6968 15.4846 18.3529C16.6656 17.5634 17.7253 16.477 18.4918 15.2732C18.7733 14.8316 19.2269 13.8936 19.4107 13.3739C20.3297 10.7866 20.1694 8.01182 18.961 5.58484C18.4761 4.60779 17.9326 3.83788 17.17 3.05234C16.3332 2.18472 15.4885 1.57114 14.3896 1.0279C13.2321 0.457304 12.1528 0.148558 10.8702 0.031311C10.4713 -0.00386238 9.56801 -0.0116787 9.24735 0.0195866Z",fill:"#14C38E"}),(0,Pi.jsx)("path",{d:"M13.8261 6.73158C13.7733 6.75427 12.4461 8.05869 10.8776 9.63534L8.01967 12.4975L6.95643 11.4313C5.80646 10.2819 5.79892 10.2781 5.46712 10.3424C5.28238 10.3764 5.05615 10.6033 5.02222 10.7885C4.95812 11.1288 4.9355 11.1023 6.39087 12.5618C7.84624 14.0212 7.81607 13.9985 8.15918 13.9343C8.28737 13.9116 8.65687 13.5562 11.4432 10.7658C13.7243 8.47837 14.5914 7.58607 14.6216 7.49155C14.7046 7.23822 14.6141 6.966 14.3841 6.79586C14.2672 6.70889 13.9656 6.67487 13.8261 6.73158Z",fill:"white"})]})]})})]})]}),(0,Pi.jsxs)("div",{className:"tpae_ver_nd_sys_info",children:[(0,Pi.jsxs)("p",{className:"theplus_version",children:[(0,Pn.__)("Version","tpebl")," ",s]})," |",(0,Pi.jsx)("a",{href:d+"/site-health.php",target:"_blank",rel:"noopener noreferrer",className:"tpae_system_info",children:(0,Pn.__)("System Info","tpebl")})]})]}),(0,Pi.jsx)("div",{className:"tpae_content_area"})]})})),jo=()=>{const e=tpae_db_object.tpae_url;return(0,Pi.jsxs)("div",{className:"tpae_ele_wid_ban_cov_box",children:[(0,Pi.jsxs)("div",{className:"theplus_elementor_widgets_banner_left_content",children:[(0,Pi.jsxs)("p",{className:"theplus_elementor_widgets_banner_top_sm_strip",children:[(0,Pi.jsx)("img",{src:e+"assets/svg/dashboard_tab/shield_icon.svg",draggable:!1}),(0,Pn.__)("60 days Money-Back Guarantee","tpebl")]}),(0,Pi.jsxs)("h2",{className:"theplus_elementor_widgets_banner_heading",children:[(0,Pn.__)("Get Access to all","tpebl")," ",(0,Pi.jsx)("br",{}),(0,Pn.__)("120+ Elementor Widgets.","tpebl")]}),(0,Pi.jsxs)("div",{className:"tpae_ele_wid_banner_btn_group",children:[(0,Pi.jsx)("a",{target:"_blank",rel:"noopener noreferrer",className:"tpae_ele_wid_banner_btn",href:"https://theplusaddons.com/pricing?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings",children:(0,Pn.__)("Upgrade Now","tpebl")}),(0,Pi.jsx)("a",{target:"_blank",rel:"noopener noreferrer",className:"tpae_ele_wid_banner_btn_link",href:"https://theplusaddons.com/widgets?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings",children:(0,Pn.__)("View all Widgets","tpebl")})]}),(0,Pi.jsxs)("ul",{className:"theplus_banner_points_listing",children:[(0,Pi.jsxs)("li",{className:"theplus_banner_points_strip",children:[(0,Pi.jsx)("img",{src:e+"assets/svg/dashboard_tab/tpae_check_white_icon.svg",draggable:!1}),(0,Pn.__)("Performance Optimized","tpebl")]}),(0,Pi.jsxs)("li",{className:"theplus_banner_points_strip",children:[(0,Pi.jsx)("img",{src:e+"assets/svg/dashboard_tab/tpae_check_white_icon.svg",draggable:!1}),(0,Pn.__)("Recommended by Elementor","tpebl")]}),(0,Pi.jsxs)("li",{className:"theplus_banner_points_strip",children:[(0,Pi.jsx)("img",{src:e+"assets/svg/dashboard_tab/tpae_check_white_icon.svg",draggable:!1}),(0,Pn.__)("Works with Most Themes","tpebl")]})]})]}),(0,Pi.jsx)("div",{className:"theplus_elementor_widgets_banner_right_content",children:(0,Pi.jsx)("img",{className:"theplus_elementor_widgets_banner_right_img",src:e+"assets/images/new_dashboard/elementor_widgets.png",draggable:!1})})]})},$o=Oi((e=>({tpae_white_lable_data:e.White_label.white_lable_rx})),(e=>({})))((e=>{if("on"==e.tpae_white_lable_data?.help_link)return!1;var n=tpae_db_object.tpae_pro,i=tpae_db_object.tpae_version,o=tpae_db_object.tpae_wp_version;const s="0"==n?"https://wordpress.org/plugins/the-plus-addons-for-elementor-page-builder/":"https://store.posimyth.com/helpdesk/",[r,a]=(0,t.useState)(!1),[l,c]=(0,t.useState)(!1),d=(0,t.useRef)(0),h=(0,Pi.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"14",fill:"none",stroke:"#727272",children:[" ",(0,Pi.jsx)("path",{className:"arrow-one",d:"M1 15l7-7-7-7",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})," ",(0,Pi.jsx)("path",{className:"arrow-two",d:"M1 15l7-7-7-7",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})," ",(0,Pi.jsx)("path",{className:"arrow-three",d:"M1 15l7-7-7-7",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]});return(0,t.useEffect)((()=>{const e=()=>{const e=window.pageYOffset||document.documentElement.scrollTop;e>100&&ewindow.removeEventListener("scroll",e)}),[]),(0,t.useEffect)((()=>{const e=e=>{e.target.closest(".tpae-dashsu-toggle")||e.target.closest(".tpae-sup-top")||e.target.closest(".tpae-sup-inner")||a(!1)},t=e=>{"Escape"===e.key&&a(!1)};return document.body.addEventListener("click",e),document.addEventListener("keydown",t),()=>{document.body.removeEventListener("click",e),document.removeEventListener("keydown",t)}}),[]),(0,Pi.jsxs)(Pi.Fragment,{children:["#/widgets"==window.location.hash&&(0,Pi.jsx)("div",{className:"tpae-back-top"+(l?" visible":""),onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),children:(0,Pi.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50",height:"50",fill:"none",viewBox:"0 0 50 50",children:[(0,Pi.jsx)("rect",{width:"50",height:"50",fill:"#6c5cff",rx:"25"}),(0,Pi.jsx)("path",{fill:"#fff",d:"M32.798 26.587a1.37 1.37 0 0 1-.972-.41l-6.773-6.774-6.774 6.774a1.368 1.368 0 0 1-1.93-1.861l7.732-7.745a1.368 1.368 0 0 1 1.935-.008l.008.008 7.732 7.745c.53.534.53 1.396 0 1.93a1.37 1.37 0 0 1-.958.341Z"}),(0,Pi.jsx)("path",{fill:"#fff",d:"M25.053 38a1.368 1.368 0 0 1-1.369-1.368V17.474a1.368 1.368 0 1 1 2.737 0v19.158c0 .755-.613 1.368-1.368 1.368ZM33.263 14.737h-16.42a1.368 1.368 0 1 1 0-2.737h16.42a1.368 1.368 0 1 1 0 2.737Z"})]})}),(0,Pi.jsx)("div",{className:"tpae-dashsu-toggle",onClick:()=>{a(!r)},title:(0,Pn.__)("Need Help?","tpebl"),children:r?(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50",height:"50",fill:"none",viewBox:"0 0 320 512",children:(0,Pi.jsx)("path",{d:"M315.3 411.3c-6.253 6.253-16.37 6.253-22.63 0L160 278.6l-132.7 132.7c-6.253 6.253-16.37 6.253-22.63 0c-6.253-6.253-6.253-16.37 0-22.63L137.4 256L4.69 123.3c-6.253-6.253-6.253-16.37 0-22.63c6.253-6.253 16.37-6.253 22.63 0L160 233.4l132.7-132.7c6.253-6.253 16.37-6.253 22.63 0c6.253 6.253 6.253 16.37 0 22.63L182.6 256l132.7 132.7C321.6 394.9 321.6 405.1 315.3 411.3z"})}):(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50",height:"50",fill:"none",viewBox:"0 0 384 512",children:(0,Pi.jsx)("path",{d:"M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"})})}),r&&(0,Pi.jsxs)("a",{href:"https://posimyth.com/",className:"tpae-support-bottom",target:"_blank",rel:"noopener noreferrer",children:[" ",(0,Pn.__)("Powered by POSIMYTH Innovations","tpebl")," "]}),(0,Pi.jsxs)("div",{className:"tpae-dashsu-content "+(r?"active":""),children:[(0,Pi.jsxs)("div",{className:"tpae-sup-top",children:[(0,Pi.jsxs)("h3",{className:"tpae-section-heading",children:[" ",(0,Pn.__)("Quick Support","tpebl")]}),(0,Pi.jsx)("span",{className:"tpae-sup-label",children:"0"==n?(0,Pn.__)("FREE VERSION","tpebl"):(0,Pn.__)("PRO VERSION","tpebl")})]}),(0,Pi.jsxs)("div",{className:"tpae-sup-inner",children:[(0,Pi.jsxs)("div",{className:"tpae-sup-wrap",children:[(0,Pi.jsx)("div",{className:"tpae-sup-list",children:(0,Pi.jsxs)("a",{href:s,target:"_blank",className:"tpae-sup-link",rel:"noopener noreferrer",children:[(0,Pi.jsx)("span",{className:"tpae-title-wrap",children:"0"==n?(0,Pn.__)("Get Free Support","tpebl"):(0,Pn.__)("Get Premium Support","tpebl")}),h]})}),(0,Pi.jsx)("div",{className:"tpae-sup-list",children:(0,Pi.jsxs)("a",{href:"https://roadmap.theplusaddons.com/updates/",target:"_blank",className:"tpae-sup-link",rel:"noopener noreferrer",children:[(0,Pi.jsxs)("span",{className:"tpae-title-wrap",children:[(0,Pn.__)("What's New?","tpebl")," "]}),h]})}),(0,Pi.jsx)("div",{className:"tpae-sup-list",children:(0,Pi.jsxs)("a",{href:"https://www.facebook.com/groups/theplus4elementor",target:"_blank",className:"tpae-sup-link",rel:"noopener noreferrer",children:[(0,Pi.jsxs)("span",{className:"tpae-title-wrap",children:[" ",(0,Pn.__)("Join Facebook Community","tpebl")," "]}),h]})}),(0,Pi.jsx)("div",{className:"tpae-sup-list",children:(0,Pi.jsxs)("a",{href:"https://roadmap.theplusaddons.com/boards/feature-request",target:"_blank",className:"tpae-sup-link",rel:"noopener noreferrer",children:[(0,Pi.jsxs)("span",{className:"tpae-title-wrap",children:[" ",(0,Pn.__)("Suggest New Features","tpebl")," "]}),h]})}),(0,Pi.jsx)("div",{className:"tpae-sup-list",children:(0,Pi.jsxs)("a",{href:"https://roadmap.theplusaddons.com/boards/feature-request",target:"_blank",className:"tpae-sup-link",rel:"noopener noreferrer",children:[(0,Pi.jsxs)("span",{className:"tpae-title-wrap",children:[" ",(0,Pn.__)("Report Bug","tpebl")," "]}),h]})}),(0,Pi.jsx)("div",{className:"tpae-sup-list",children:(0,Pi.jsxs)("a",{href:"https://theplusaddons.com/chat",target:"_blank",className:"tpae-sup-link",rel:"noopener noreferrer",children:[(0,Pi.jsxs)("span",{className:"tpae-title-wrap",children:[(0,Pn.__)("AI Chat","tpebl")," "]}),h]})})]}),(0,Pi.jsxs)("div",{className:"tpae-panel-row",children:[(0,Pi.jsx)("a",{href:"https://www.youtube.com/c/POSIMYTHInnovations/?sub_confirmation=1",className:"tpae-panel-col tpae-social-link",title:"Youtube",target:"_blank",rel:"noopener noreferrer",children:(0,Pi.jsx)("span",{children:(0,Pi.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Pi.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 14C28 21.732 21.732 28 14 28C6.26801 28 0 21.732 0 14C0 6.26801 6.26801 0 14 0C21.732 0 28 6.26801 28 14ZM20.8613 8.84305C21.1047 9.08822 21.2794 9.39305 21.368 9.727C21.696 10.959 21.697 13.529 21.697 13.529C21.697 13.529 21.697 16.1 21.369 17.332C21.2795 17.6632 21.104 17.9647 20.8602 18.2061C20.6164 18.4474 20.3131 18.6199 19.981 18.706C18.757 19.036 13.849 19.036 13.849 19.036C13.849 19.036 8.94 19.036 7.716 18.706C7.041 18.525 6.508 18.012 6.328 17.332C6 16.099 6 13.529 6 13.529C6 13.529 6 10.959 6.328 9.727C6.41664 9.39293 6.59153 9.08802 6.83513 8.84284C7.07874 8.59765 7.38251 8.4208 7.716 8.33C8.94 8 13.849 8 13.849 8C13.849 8 18.757 8 19.981 8.33C20.3143 8.42095 20.6179 8.59787 20.8613 8.84305ZM12.243 11.196V15.863L16.346 13.529L12.243 11.196Z",fill:"#6C5CFF"})})})}),(0,Pi.jsx)("a",{href:"https://twitter.com/posimyth",className:"tpae-panel-col tpae-social-link",title:"Twitter",target:"_blank",rel:"noopener noreferrer",children:(0,Pi.jsx)("span",{children:(0,Pi.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Pi.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 14C28 21.732 21.732 28 14 28C6.26801 28 0 21.732 0 14C0 6.26801 6.26801 0 14 0C21.732 0 28 6.26801 28 14ZM20.91 6L15.173 12.67L21.413 21.751H16.823L12.621 15.636L7.361 21.751H6.001L12.018 14.757L6 6.001H10.59L14.569 11.792L19.55 6H20.91ZM12.701 13.963L13.311 14.835L17.463 20.774H19.551L14.463 13.496L13.853 12.624L9.939 7.024H7.851L12.701 13.963Z",fill:"#6C5CFF"})})})}),(0,Pi.jsx)("a",{href:"https://www.facebook.com/tpaelementor",className:"tpae-panel-col tpae-social-link",title:"Facebook",target:"_blank",rel:"noopener noreferrer",children:(0,Pi.jsx)("span",{children:(0,Pi.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Pi.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 14C28 21.732 21.732 28 14 28C6.26801 28 0 21.732 0 14C0 6.26801 6.26801 0 14 0C21.732 0 28 6.26801 28 14ZM15.3273 6.22222L17.3172 6.22567C17.4898 6.22602 17.6296 6.37741 17.6296 6.56401V9.09701C17.6296 9.28378 17.4896 9.43534 17.3169 9.43534L15.9764 9.43586C15.0523 9.43586 14.8832 9.82528 14.8832 10.5924V12.1884H17.2233C17.3064 12.1884 17.3862 12.2242 17.4448 12.2877C17.5034 12.3512 17.5364 12.4372 17.5364 12.5269L17.5354 15.2548C17.5354 15.4418 17.3954 15.5932 17.2225 15.5932H14.8832V22.4765C14.8832 22.6633 14.7432 22.8148 14.5703 22.8148H11.9599C11.787 22.8148 11.647 22.6634 11.647 22.4765V15.5932H9.64623C9.4735 15.5932 9.33333 15.4418 9.33333 15.2548V12.5269C9.33333 12.34 9.47334 12.1884 9.64623 12.1884H11.647V10.3057C11.647 7.82498 13.0917 6.22222 15.3273 6.22222Z",fill:"#6C5CFF"})})})}),(0,Pi.jsx)("a",{href:"https://www.instagram.com/posimyth",className:"tpae-panel-col tpae-social-link",title:"Instagram",target:"_blank",rel:"noopener noreferrer",children:(0,Pi.jsx)("span",{children:(0,Pi.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"27",height:"27",fill:"none",viewBox:"0 0 27 27",children:[(0,Pi.jsx)("circle",{cx:"13.5",cy:"13.5",r:"13.5",fill:"#6c5cff"}),(0,Pi.jsx)("path",{fill:"#ffffff",d:"M13.503 9.962a3.529 3.529 0 0 0-3.534 3.535 3.529 3.529 0 0 0 3.534 3.535 3.529 3.529 0 0 0 3.535-3.535 3.529 3.529 0 0 0-3.535-3.535Zm0 5.833a2.302 2.302 0 0 1-2.297-2.298 2.3 2.3 0 0 1 2.297-2.298 2.3 2.3 0 0 1 2.298 2.298 2.302 2.302 0 0 1-2.298 2.298Zm4.504-5.977c0 .458-.37.824-.825.824a.824.824 0 1 1 .824-.824Zm2.34.837c-.051-1.105-.304-2.083-1.113-2.889-.806-.806-1.784-1.058-2.888-1.114-1.138-.064-4.55-.064-5.688 0-1.101.053-2.08.305-2.889 1.11-.809.807-1.058 1.785-1.113 2.89-.065 1.138-.065 4.55 0 5.687.052 1.105.304 2.083 1.113 2.889.81.806 1.785 1.058 2.889 1.113 1.138.065 4.55.065 5.688 0 1.104-.052 2.082-.304 2.888-1.113.806-.806 1.058-1.784 1.114-2.889.065-1.138.065-4.546 0-5.684Zm-1.47 6.906a2.326 2.326 0 0 1-1.31 1.31c-.907.36-3.06.277-4.064.277-1.002 0-3.159.08-4.063-.277a2.326 2.326 0 0 1-1.31-1.31c-.36-.908-.278-3.061-.278-4.064 0-1.003-.08-3.16.277-4.064a2.326 2.326 0 0 1 1.31-1.31c.908-.36 3.062-.277 4.064-.277 1.003 0 3.16-.08 4.064.277.603.24 1.067.704 1.31 1.31.36.908.277 3.061.277 4.064 0 1.003.083 3.16-.276 4.064Z"})]})})}),(0,Pi.jsx)("a",{href:"https://store.posimyth.com/affiliate-program",className:"tpae-panel-col tpae-social-link",title:"Affiliate",target:"_blank",rel:"noopener noreferrer",children:(0,Pi.jsx)("span",{children:(0,Pi.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"27",height:"27",fill:"none",viewBox:"0 0 27 27",children:[(0,Pi.jsx)("circle",{cx:"13.5",cy:"13.5",r:"13.5",fill:"#6c5cff"}),(0,Pi.jsx)("path",{fill:"#ffffff",d:"M13.994 18.135a5.613 5.613 0 0 1-1.633-.22 3.999 3.999 0 0 1-1.386-.804 1.025 1.025 0 0 1-.26-.324.805.805 0 0 1-.09-.363c0-.199.07-.371.207-.518a.719.719 0 0 1 .545-.234c.164 0 .31.052.44.156.329.268.652.47.972.61.328.137.73.206 1.205.206.32 0 .614-.047.882-.142.267-.104.483-.238.648-.402a.826.826 0 0 0 .246-.583.98.98 0 0 0-.234-.66c-.155-.182-.393-.333-.712-.454-.32-.13-.726-.23-1.218-.299a5.687 5.687 0 0 1-1.232-.31 3.126 3.126 0 0 1-.894-.545 2.268 2.268 0 0 1-.531-.777 2.7 2.7 0 0 1-.181-1.011c0-.562.142-1.041.427-1.439.294-.397.687-.7 1.18-.907a4.167 4.167 0 0 1 1.632-.31c.562 0 1.08.086 1.555.258.484.165.877.376 1.18.635.25.2.375.428.375.687 0 .19-.073.363-.22.519a.69.69 0 0 1-.518.233.568.568 0 0 1-.35-.117 2.21 2.21 0 0 0-.557-.337 4.183 4.183 0 0 0-.739-.272 2.762 2.762 0 0 0-1.672.026c-.25.095-.44.225-.57.389a.894.894 0 0 0-.194.57c0 .26.073.475.22.648.155.164.376.298.66.402a8.33 8.33 0 0 0 1.025.259c.518.095.972.207 1.36.337.398.13.726.298.985.505.26.199.454.454.583.765.13.302.195.674.195 1.114 0 .562-.156 1.046-.467 1.452a2.98 2.98 0 0 1-1.23.933 4.08 4.08 0 0 1-1.634.324Zm.933.7c0 .224-.077.41-.233.557a.734.734 0 0 1-.557.233.719.719 0 0 1-.544-.233.755.755 0 0 1-.22-.558V8.416a.776.776 0 0 1 .79-.79c.224-.001.406.077.544.232.147.147.22.333.22.558v10.418Z"})]})})}),(0,Pi.jsx)("a",{href:"https://theplusaddons.com/blog/",className:"tpae-panel-col tpae-social-link",title:"blog",target:"_blank",rel:"noopener noreferrer",children:(0,Pi.jsx)("span",{children:(0,Pi.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"27",height:"27",fill:"none",viewBox:"0 0 27 27",children:[(0,Pi.jsx)("circle",{cx:"13.5",cy:"13.5",r:"13.5",fill:"#6c5cff"}),(0,Pi.jsx)("g",{clipPath:"url(#a)",children:(0,Pi.jsx)("path",{fill:"#ffffff",d:"M7.687 11.16a.706.706 0 0 0-.748.652.703.703 0 0 0 .656.748c3.519.23 6.612 3.301 6.844 6.843.025.375.332.66.675.66l.047-.002a.703.703 0 0 0 .656-.747c-.249-4.223-3.908-7.882-8.13-8.155Zm.188-4.223a.937.937 0 1 0 0 1.875c5.687 0 10.313 4.626 10.313 10.313a.937.937 0 1 0 1.875 0c0-6.72-5.467-12.188-12.188-12.188Zm.911 9.372c-1.01 0-1.848.841-1.848 1.878 0 1.038.838 1.875 1.848 1.875 1.01 0 1.878-.838 1.878-1.875a1.862 1.862 0 0 0-1.878-1.878Z"})}),(0,Pi.jsx)("defs",{children:(0,Pi.jsx)("clipPath",{id:"a",children:(0,Pi.jsx)("path",{fill:"#fff",d:"M6 6h15v15H6z"})})})]})})})]}),(0,Pi.jsxs)("div",{className:"tpae-panel-row",style:{justifyContent:"center",columnGap:"10px"},children:[(0,Pi.jsxs)("span",{className:"tpae-version-info",children:[" ",(0,Pn.__)("WordPress Version: ","tpebl")+o," "]}),(0,Pi.jsx)("span",{children:"|"}),(0,Pi.jsxs)("span",{className:"tpae-version-info",children:[" ",(0,Pn.__)("Plugin Version: ","tpebl")+i," "]})]})]})]})]})})),Ao=Oi((e=>({tpae_license_data:e.license_data.license_rx,tpae_widgets_list:e.widgets_data.widgets_rx})),(e=>({tpae_set_userinfo:t=>e(Wi(t)),tpae_set_widgets:t=>e(Bi(t))})))((e=>{tpae_db_object.tpae_url;var n=tpae_db_object.nonce,i=tpae_db_object.ajax_url;tpae_db_object.tpae_pro;const o="1"==tpae_db_object?.tpae_pro,{onBoardingStep:s,setOnBoardingStep:r}=e,{accordionIndex:a,setAccordionIndex:l}=e,{handleOnboardingStep:c}=e,{nextstep:d,setNextstep:h}=e,[p,u]=(0,t.useState)(Fn.switcher_array),[g,m]=(0,t.useState)(Fn.widgetList),[f,_]=(0,t.useState)(!1),[b,w]=(0,t.useState)("Continue");return(0,t.useEffect)((()=>{const e=e=>{"Escape"===e.key&&_(!1)};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[]),(0,t.useEffect)((()=>{const e="1"==tpae_db_object?.tpae_pro,t=g.filter((t=>{const n=t.widgets.filter((t=>!!e||"free"===t.tag||"freemium"===t.tag));return n.length>0&&n.every((e=>!0===e.checked))})).map((e=>e.name)),n=p.map((e=>({...e,checked:t.includes(e.id)})));u(n)}),[g]),(0,Pi.jsxs)(Pi.Fragment,{children:[(0,Pi.jsxs)("div",{className:"tpae-select-wid-temp tpae-onbsec-cover tpae-seltemp tpae-selwidgets",children:[(0,Pi.jsxs)("div",{className:"tpae-select-wid-cover tpae-onbsec-cover",children:[(0,Pi.jsx)("h2",{className:"tpae-onbrd-crd-h select-widgets",children:(0,Pn.__)("Select the Widgets You Want to Use","tpebl")}),(0,Pi.jsx)("div",{className:"tpae-widget-checklist",children:g.map(((e,n)=>(0,Pi.jsx)(t.Fragment,{children:(0,Pi.jsxs)("div",{className:"tpae-wid-checklist-main",children:[(0,Pi.jsx)("div",{className:"tpae-title-section",children:(0,Pi.jsxs)("div",{className:"tpae-separator-wrapper",children:[(0,Pi.jsx)("span",{className:"tpae-widlist-name",children:e.label}),(0,Pi.jsxs)("label",{className:"tpae-wid-tgl-btn-cover",children:[(0,Pi.jsx)("input",{className:"tpae-toggle-btn",type:"checkbox",checked:p.find((t=>t.id===e.name))?.checked||!1,onChange:t=>((e,t)=>{const n=p.map((n=>n.id===e?{...n,checked:t}:n));u(n);const i=g.map((n=>{if(n.name===e){const e=n.widgets.map((e=>o||"freemium"===e.tag||"free"===e.tag?{...e,checked:t}:e));return{...n,widgets:e}}return n}));m(i)})(e.name,t.target.checked)}),(0,Pi.jsx)("span",{className:"tpae-toggle-slider"})]})]})}),(0,Pi.jsx)("div",{className:"tpae-check-widlist",children:e.widgets.map(((t,n)=>(0,Pi.jsxs)("div",{className:"tpae-wid-list",children:[o||"free"===t?.tag||"freemium"===t?.tag?(0,Pi.jsx)("input",{type:"checkbox",className:"tpae-chkbox-style",checked:t.checked||!1,onChange:n=>((e,t,n)=>{const i=g.map((i=>{if(i.name===e){const e=i.widgets.map((e=>e.name===t?{...e,checked:n}:e));return{...i,widgets:e}}return i}));m(i)})(e.name,t.name,n.target.checked)}):(0,Pi.jsx)("div",{className:"tpae-lock-svg",onClick:e=>_(!0),children:(0,Pi.jsx)("i",{className:"theplus-i-lock"})}),(0,Pi.jsxs)("div",{className:"tpae-widget-main-element",children:[(0,Pi.jsx)("a",{href:t.demoUrl+"?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings",className:"tpae-wid-chk-name",target:"_blank",htmlFor:e.id,children:t.label}),"pro"===t?.tag&&!o&&(0,Pi.jsx)("span",{className:"tpae-fp-tag",children:(0,Pn.__)("Pro","tpebl")})]})]},n)))})]})},n)))})]}),(0,Pi.jsxs)("div",{className:"tpae-btmsm-btn",children:[(0,Pi.jsx)("span",{className:"tpae-link-btn",onClick:()=>c("back","widget_selection"),children:"Back"}),(0,Pi.jsx)("span",{className:"tpae-purple-common-btn tp-onbording-btn widgets-secions",onClick:()=>{(async()=>{w("Saving...");let t={...e.tpae_widgets_list},o=[...t?.check_elements];g.map((e=>{e.widgets.map((e=>{e.checked?o.includes(e.name)||o.push(e.name):o=o.filter((t=>t!==e.name))}))})),t.check_elements=o,e.tpae_set_widgets(t);let s=new FormData;s.append("action","tpae_dashboard_ajax_call"),s.append("nonce",n),s.append("type","tpae_set_widget_list"),s.append("widget_data",JSON.stringify(t)),(await In.post(i,s)).data.success?(w("Next"),c("next","widget_selection")):w("Failed..")})()},children:b})]})]}),f&&(0,Pi.jsx)(Xi,{heading:(0,Pn.__)("Upgrade to The Plus Addons for Elementor Pro to Unlock All Widgets & All Pre-Made Templates","tpebl"),parent_class:"tpae-pro-required",inner_class:"theplus_whitlabel_popup tpae-pro-required-inner",setShowPopup:_,close_svg:(0,Pi.jsxs)("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:()=>{_()},children:[(0,Pi.jsx)("path",{d:"M18.75 6.25L6.25 18.75",stroke:"white",strokeWidth:"0.75",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Pi.jsx)("path",{d:"M6.25 6.25L18.75 18.75",stroke:"white",strokeWidth:"0.75",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})})),No=Oi((e=>({plugin_check:e.check_plugin.plugin_status_rx,tpae_dashboard_data:e.Dashboard_data.db_rx})),(e=>({tpae_set_userinfo:t=>e(Wi(t)),tpae_set_widgets:t=>e(Bi(t)),tpae_onbording_:t=>e(Ji(t))})))((e=>{tpae_db_object.tpae_url;var n=tpae_db_object.nonce,i=tpae_db_object.ajax_url;const o="1"==tpae_db_object?.tpae_pro,s=o?[1005,1006]:[1005],r=o?"":"free",[a,l]=(0,t.useState)(!1),[c,d]=(0,t.useState)({process_one:!0,process_two:!1,process_three:!1}),[h,p]=(0,t.useState)({enable_template:{step_one:!0,step_two:!1,step_three:!1},install_wdkit:{step_one:!0,step_two:!1,step_three:!1},wdkit_active:{step_one:!0,step_two:!1,step_three:!1}});return(0,t.useEffect)((()=>{if(e?.tpae_dashboard_data?.success){let t=e.plugin_check;if(t.length>0){let e=t.findIndex((e=>"wdesignkit"==e.name));e>-1&&"active"==t[e]?.status&&(l(!0),p((e=>({...e,enable_template:{...e.enable_template,step_one:!1,step_two:!1,step_three:!0},install_wdkit:{...e.install_wdkit,step_one:!1,step_two:!1,step_three:!0}}))),d((e=>({...e,process_one:!1,process_three:!0}))))}}}),[e?.tpae_dashboard_data?.success,e?.plugin_check,a]),(0,t.useEffect)((()=>{let e,t;return c.process_one&&(e=setTimeout((()=>{p((e=>({...e,enable_template:{...e.enable_template,step_one:!1,step_two:!0,step_three:!1}}))),t=setTimeout((()=>{p((e=>({...e,enable_template:{...e.enable_template,step_one:!1,step_two:!1,step_three:!0}}))),d((e=>({...e,process_one:!1,process_two:!0})))}),3e3)}))),()=>{clearTimeout(e),clearTimeout(t)}}),[c.process_one]),(0,t.useEffect)((()=>{let e,t;return c.process_two&&(e=setTimeout((()=>{p((e=>({...e,install_wdkit:{...e.install_wdkit,step_one:!1,step_two:!0,step_three:!1}}))),t=setTimeout((()=>{(async()=>{let e=new FormData;e.append("action","tpae_dashboard_ajax_call"),e.append("nonce",n),e.append("type","tpae_plugin_install"),e.append("slug","wdesignkit/wdesignkit.php"),e.append("name","wdesignkit"),(await In.post(i,e)).data.success&&l(!0)})(),a&&(p((e=>({...e,install_wdkit:{...e.install_wdkit,step_one:!1,step_two:!1,step_three:!0}}))),d((e=>({...e,process_two:!1,process_three:!0}))))}),3e3)}))),()=>{clearTimeout(e),clearTimeout(t)}}),[c.process_two,a]),(0,t.useEffect)((()=>{let t,o;return c.process_three&&(t=setTimeout((()=>{p((e=>({...e,wdkit_active:{...e.wdkit_active,step_one:!1,step_two:!0,step_three:!1}}))),o=setTimeout((()=>{p((e=>({...e,wdkit_active:{...e.wdkit_active,step_one:!1,step_two:!1,step_three:!0}}))),d((e=>({...e,process_two:!1,process_three:!0}))),(async()=>{e.tpae_onbording_({check_onboarding:"hide"});let t=new FormData;t.append("action","tpae_dashboard_ajax_call"),t.append("nonce",n),t.append("type","tpae_onboarding_setup"),await In.post(i,t);const o=`?page=wdesign-kit#/browse?${new URLSearchParams({builder:"1001",plugin:JSON.stringify(s),free_pro:r}).toString()}`;window.location.href=o})(),localStorage.removeItem("tpae_import_step"),localStorage.removeItem("tpae_onboarding_step")}),3e3)}))),()=>{clearTimeout(t),clearTimeout(o)}}),[c.process_three]),(0,Pi.jsxs)("div",{className:"tpae-start-crd-main tpae-onbsec-cover",children:[(0,Pi.jsx)("h2",{className:"tpae-onbrd-crd-h website-setting",children:(0,Pn.__)("Setting Up for Website Templates","tpebl")}),(0,Pi.jsxs)("div",{className:"tpae-wdkit-crd-cover tpae-whitebg-cover",children:[(0,Pi.jsxs)("div",{className:"tpae-web-enable",children:[h.enable_template.step_one?(0,Pi.jsx)("i",{className:"theplus-i-check-mark-fill gray"}):h.enable_template.step_two?(0,Pi.jsx)("div",{className:"tpae-loader"}):h.enable_template.step_three?(0,Pi.jsx)("i",{className:"theplus-i-check-mark-fill green"}):null,(0,Pi.jsx)("span",{className:"tpae-text-first",children:"Enabling Website Templates"})]}),(0,Pi.jsx)("div",{className:"tpae-connector-line"}),(0,Pi.jsxs)("div",{className:"tpae-install-wdkit",children:[h.install_wdkit.step_one?(0,Pi.jsx)("i",{className:"theplus-i-check-mark-fill gray"}):h.install_wdkit.step_two?(0,Pi.jsx)("div",{className:"tpae-loader"}):h.install_wdkit.step_three?(0,Pi.jsx)("i",{className:"theplus-i-check-mark-fill green"}):null,(0,Pi.jsx)("span",{className:"tpae-text-two",children:"Installing WDesignKit"})]}),(0,Pi.jsx)("div",{className:"tpae-connector-line"}),(0,Pi.jsxs)("div",{className:"tpae-wdkit-activated",children:[h.wdkit_active.step_one?(0,Pi.jsx)("i",{className:"theplus-i-check-mark-fill gray"}):h.wdkit_active.step_two?(0,Pi.jsx)("div",{className:"tpae-loader"}):h.wdkit_active.step_three?(0,Pi.jsx)("i",{className:"theplus-i-check-mark-fill green"}):null,(0,Pi.jsx)("span",{className:"tpae-text-third",children:"WDesignKit Activated"})]})]})]})})),Eo=Oi((e=>({tpae_license_data:e.license_data.license_rx,tpae_widgets_list:e.widgets_data.widgets_rx,tpae_dashboard_data:e.Dashboard_data.db_rx,plugin_check:e.check_plugin.plugin_status_rx})),(e=>({tpae_set_userinfo:t=>e(Wi(t)),tpae_set_widgets:t=>e(Bi(t)),tpae_onbording_:t=>e(Ji(t))})))((e=>{var i=tpae_db_object.tpae_url,o=tpae_db_object.nonce,s=tpae_db_object.ajax_url,r=tpae_db_object.tpae_pro;const a="1"==tpae_db_object?.tpae_pro,[l,c]=(0,t.useState)((()=>{const e=parseInt(localStorage.getItem("tpae_onboarding_step"),10);return isNaN(e)?1:e})),[d,h]=(0,t.useState)(0),[p,u]=(0,t.useState)((()=>localStorage.getItem("tpae_import_step")||"")),[g,m]=(0,t.useState)(!1),[f,_]=(0,t.useState)(!1),[b,w]=(0,t.useState)("Enable Templates"),[v,y]=(0,t.useState)((0,Pn.__)("Enable Theme Builder","tpebl")),[x,C]=(0,t.useState)(!1),[k,S]=(0,t.useState)(""),[j,$]=(0,t.useState)(!1),[A,N]=(0,t.useState)(!1),[E,L]=(0,t.useState)(0),[M,R]=(0,t.useState)([]),[T,O]=(0,t.useState)(!0);(0,t.useEffect)((()=>{N(!(!r||!a))}),[r,a]),(0,t.useEffect)((()=>{F()}),[]),(0,t.useEffect)((()=>{if(e?.tpae_dashboard_data?.success){let t=e.plugin_check;if(t.length>0){let e=t.findIndex((e=>"wdesignkit"==e.name));e>-1&&"active"==t[e]?.status&&m(!0);let n=t.findIndex((e=>"nexter-extension"==e.name));n>-1&&"active"==t[n]?.status&&_(!0)}}S(e.tpae_dashboard_data?.user_email||"")}),[e?.tpae_dashboard_data?.success,e?.plugin_check]);const I=(e,t)=>{let n=l;"next"===e?n="import_web"===p&&"select_mode"===t?l+7:"step_four"===t&&A?l+2:l+1:"back"===e&&(n="stay_updated"===t&&A?l-2:l-1),c(n),localStorage.setItem("tpae_onboarding_step",n)},P=e=>{u(e),localStorage.setItem("tpae_import_step",e)},F=async()=>{var e=tpae_db_object.tpae_wdkit_url+"api/front/getfilterbrowsetemplates";let t=new FormData;t.append("action","tpae_dashboard_ajax_call"),t.append("nonce",o),t.append("type","tpae_api_call"),t.append("method","POST"),t.append("api_url",e),t.append("url_body",JSON.stringify({ParPage:12,CurrentPage:1,builder_req:1001,temp_type_req:"websitekit",freepro_req:"all"}));var n=(await In.post(s,t)).data;200===n.HTTP_CODE&&n.posts&&R(n.posts)},D=async()=>{e.tpae_onbording_({check_onboarding:"hide"});let t=new FormData;t.append("action","tpae_dashboard_ajax_call"),t.append("nonce",o),t.append("type","tpae_onboarding_setup"),await In.post(s,t);var n=document.querySelector("#toplevel_page_theplus_welcome_page");n&&n.classList.remove("tpae-admin-notice-active"),localStorage.removeItem("tpae_import_step"),localStorage.removeItem("tpae_onboarding_step")};return(0,Pi.jsxs)(Pi.Fragment,{children:[(0,Pi.jsx)("div",{className:"tpae-onboarding-close",children:(0,Pi.jsxs)("span",{className:"tpae-onboarding-close-btn",onClick:()=>{D()},children:[(0,Pi.jsx)("span",{className:"tpae-skip-setup",children:"Skip Setup"}),(0,Pi.jsx)("i",{className:"theplus-i-cross"})]})}),(0,Pi.jsxs)("div",{className:"tpae-onboarding-cover",children:[(0,Pi.jsx)("div",{className:"tpae-steps-cover",children:(()=>{if(!p)return[];if("ele_widgets"===p){let e=[{step_number:1,step_name:(0,Pn.__)("Select Mode","tpebl")},{step_number:2,step_name:(0,Pn.__)("Select Widgets","tpebl")},{step_number:3,step_name:(0,Pn.__)("Enable Template","tpebl")},{step_number:4,step_name:(0,Pn.__)("Theme Builder","tpebl")}];return A||e.push({step_number:5,step_name:(0,Pn.__)("Special Offer","tpebl")}),e.push({step_number:6,step_name:(0,Pn.__)("Stay Updated","tpebl")},{step_number:7,step_name:(0,Pn.__)("Confirmation","tpebl")}),e}return"import_web"===p?[{step_number:1,step_name:(0,Pn.__)("Select Mode","tpebl")},{step_number:2,step_name:(0,Pn.__)("Select Template","tpebl")}]:[]})()?.map(((e,t)=>{return(0,Pi.jsx)(n().Fragment,{children:(0,Pi.jsxs)("div",{className:"tp-board-step-wrapper",children:[(0,Pi.jsxs)("div",{className:(i=e.step_number,i==l?"tpae-step-box tpae-step-active":i<=l?"tpae-step-box tpae-completed":"tpae-step-box"),children:[(0,Pi.jsx)("div",{className:"tpae-step-onbording",children:(0,Pi.jsx)("i",{className:"theplus-i-check-mark-fill"})}),(0,Pi.jsx)("div",{className:"tpae-step-name",children:e.step_name})]},t),(0,Pi.jsx)("i",{className:"theplus-i-chevron-right"})]})},e.step_number);var i}))}),(0,Pi.jsx)("div",{className:"tpae-steps-tab-cover tpae-onbsec-cover",children:1==l?(0,Pi.jsxs)("div",{className:"tpae-start-crd-main tpae-onbsec-cover",children:[(0,Pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"118",height:"32",fill:"none",children:(0,Pi.jsx)("path",{fill:"#101011",fillRule:"evenodd",d:"M10.295 0h5.847c1.013 0 2.002.265 2.882.772a5.869 5.869 0 0 1 2.966 5.064v2.99h-1.555v-2.99a4.3 4.3 0 0 0-4.293-4.28h-4.304v17.41h-1.543v-2.182H5.568v-1.556h4.727V0Zm5.076 13.046h1.543v2.182h2.182v1.556h-2.182v2.182h-1.543v-2.182h-2.194v-1.556h2.194v-2.182Zm1.543-7.608h-1.543v4.714h-2.194v1.556h17.41V16c0 2.363-1.917 4.292-4.268 4.305h-3.002v1.555h3.002A5.87 5.87 0 0 0 32.142 16v-5.848H16.914V5.438Zm3.533 7.608h1.543v2.182h4.727v1.556H21.99V32h-5.848a5.752 5.752 0 0 1-2.881-.76 5.828 5.828 0 0 1-2.966-5.064v-2.99h1.543v2.99a4.31 4.31 0 0 0 4.304 4.28h4.305v-17.41ZM8.968 10.152H5.966a5.87 5.87 0 0 0-5.824 5.86v5.848h15.229v4.715h1.543V21.86h2.182v-1.555H1.698v-4.293c0-2.363 1.917-4.292 4.268-4.304h3.002v-1.556ZM37.99 5.438h9.61v1.965h-3.617v9.827h-2.424V7.403H37.99V5.438Zm21.27 0h-2.436v4.774h-4.739V5.438h-2.423V17.23h2.423v-5.052h4.739v5.052h2.435V5.437Zm2.797 0h7.885v1.965H64.48v2.81h4.666v1.904H64.48v3.16h5.474v1.953h-7.897V5.437Zm21.75.482c.676.322 1.195.784 1.556 1.386.362.595.543 1.275.543 2.038 0 1.15-.398 2.058-1.194 2.725-.788.667-1.88 1-3.28 1H79.3v4.16h-2.424V5.439h4.594c.884 0 1.664.16 2.339.482Zm-2.338 5.184c.643 0 1.133-.152 1.47-.458.338-.297.507-.727.507-1.29 0-.579-.169-1.045-.506-1.399-.338-.361-.808-.546-1.41-.554h-2.231v3.702h2.17Zm6.776-5.666h2.436v9.838h5.16v1.954h-7.596V5.437Zm18.387 0h-2.435v7.849c-.016 1.43-.708 2.146-2.074 2.146-.659 0-1.174-.177-1.543-.53-.37-.354-.555-.917-.555-1.688V5.438h-2.424v7.849c.017 1.278.43 2.279 1.242 3.002.804.732 1.897 1.097 3.28 1.097 1.399 0 2.5-.373 3.304-1.12.803-.756 1.205-1.777 1.205-3.064V5.438Zm4.63.253c.675-.281 1.431-.422 2.267-.422.844 0 1.596.153 2.255.458.659.306 1.17.735 1.531 1.29.362.563.543 1.198.543 1.905h-2.424c0-.546-.173-.968-.518-1.266-.338-.297-.812-.446-1.423-.446-.595 0-1.057.125-1.387.374-.329.25-.494.579-.494.989 0 .385.193.707.579.964.386.266.952.51 1.7.736 1.382.41 2.391.924 3.026 1.543.627.619.941 1.387.941 2.303 0 1.02-.386 1.82-1.158 2.4-.771.578-1.808.868-3.111.868-.908 0-1.736-.165-2.483-.495-.748-.337-1.315-.792-1.701-1.362-.393-.58-.59-1.25-.59-2.014h2.435c0 1.302.78 1.953 2.339 1.953.571 0 1.021-.116 1.351-.35.321-.24.482-.57.482-.988 0-.458-.161-.812-.482-1.061-.33-.241-.912-.498-1.748-.772-.844-.273-1.512-.542-2.002-.807-1.342-.724-2.014-1.697-2.014-2.918 0-.643.181-1.214.543-1.712.362-.499.876-.889 1.543-1.17Zm-67.17 17.398c.24.21.365.503.373.88v1.713c0 .338.044.61.133.82v.048h-.663c-.04-.072-.073-.2-.097-.386a1.43 1.43 0 0 1-1.061.458c-.362 0-.659-.104-.892-.313a.994.994 0 0 1-.362-.784c0-.394.149-.695.446-.904.298-.217.712-.326 1.242-.326h.615v-.289c0-.225-.064-.402-.193-.53-.137-.137-.333-.206-.59-.206a.886.886 0 0 0-.567.181c-.153.113-.23.25-.23.41h-.639c0-.185.065-.361.194-.53.128-.177.309-.314.542-.41.225-.105.47-.157.736-.157.434 0 .771.109 1.012.326Zm-.652 2.822a.962.962 0 0 0 .386-.398v-.772h-.494c-.78 0-1.17.23-1.17.688 0 .2.069.358.205.47a.741.741 0 0 0 .507.169c.2 0 .39-.053.566-.157Zm4.92.64h.578v-5.282H48.3v1.941c-.249-.297-.594-.446-1.036-.446a1.29 1.29 0 0 0-1.062.519c-.265.345-.398.803-.398 1.374v.048c0 .571.137 1.033.41 1.387.266.354.615.53 1.05.53.45 0 .803-.156 1.06-.47l.037.398Zm-.06-2.714v1.7c-.186.362-.48.543-.881.543a.86.86 0 0 1-.723-.35c-.177-.24-.265-.57-.265-.989 0-.474.088-.831.265-1.073a.86.86 0 0 1 .735-.361c.394 0 .683.177.868.53Zm5.1 2.713h-.58l-.036-.398c-.257.314-.61.47-1.06.47a1.25 1.25 0 0 1-1.05-.53c-.273-.354-.41-.816-.41-1.387v-.048c0-.57.133-1.029.398-1.374a1.29 1.29 0 0 1 1.062-.519c.442 0 .787.149 1.036.446V21.27h.64v5.281Zm-.64-1.013v-1.7c-.184-.353-.474-.53-.868-.53a.86.86 0 0 0-.735.361c-.177.242-.265.6-.265 1.073 0 .419.088.748.265.99.177.232.418.349.723.349.402 0 .695-.181.88-.543Zm5.33-.844c0-.587-.157-1.053-.47-1.399-.306-.353-.712-.53-1.218-.53-.33 0-.623.08-.88.241a1.545 1.545 0 0 0-.603.675c-.137.29-.205.615-.205.977v.048c0 .579.156 1.041.47 1.387.305.354.711.53 1.218.53.337 0 .635-.08.892-.24a1.56 1.56 0 0 0 .59-.676 2.26 2.26 0 0 0 .206-.977v-.036Zm-.627-.036c0 .458-.097.812-.29 1.061a.917.917 0 0 1-.771.386.927.927 0 0 1-.772-.374c-.185-.249-.277-.583-.277-1 0-.467.096-.824.29-1.074a.915.915 0 0 1 .759-.373c.313 0 .57.128.771.386.193.249.29.578.29.988Zm3.653-1.893c-.458 0-.828.177-1.11.53l-.023-.457h-.603v3.713h.639v-2.653c.088-.176.209-.321.362-.434a.974.974 0 0 1 .542-.156c.258 0 .446.064.567.193.12.128.18.325.18.59v2.46h.64v-2.46c-.008-.884-.406-1.326-1.194-1.326Zm3.002.313c.258-.208.587-.313.99-.313.417 0 .759.109 1.024.326.265.217.398.494.398.831h-.64c0-.168-.076-.317-.228-.445a.803.803 0 0 0-.555-.194c-.233 0-.414.053-.543.157a.47.47 0 0 0-.192.398c0 .153.06.265.18.338.121.08.338.156.652.229.321.072.578.157.771.253.201.097.35.217.446.362a.914.914 0 0 1 .133.506.95.95 0 0 1-.398.796c-.265.2-.607.301-1.025.301a1.93 1.93 0 0 1-.796-.156 1.345 1.345 0 0 1-.542-.447 1.054 1.054 0 0 1-.193-.614h.639c.016.217.1.385.253.506.16.129.374.193.64.193.24 0 .433-.048.578-.145a.454.454 0 0 0 .217-.398.47.47 0 0 0-.193-.398c-.128-.096-.358-.176-.687-.24a3.196 3.196 0 0 1-.76-.254 1.085 1.085 0 0 1-.422-.338.868.868 0 0 1-.133-.482c0-.305.13-.562.386-.772Zm7.536-1.88c-.394 0-.695.108-.904.325-.217.226-.326.535-.326.929v.386h-.579v.482h.58v3.231h.638V23.32h.796v-.482h-.796v-.398c0-.225.057-.398.17-.519.112-.12.272-.18.481-.18.121 0 .234.012.338.036l.036-.519c-.144-.04-.289-.06-.434-.06Zm4.618 3.496c0-.587-.157-1.053-.47-1.399-.314-.353-.724-.53-1.23-.53-.33 0-.623.08-.88.241a1.477 1.477 0 0 0-.591.675c-.145.29-.217.615-.217.977v.048c0 .579.157 1.041.47 1.387.314.354.72.53 1.218.53.338 0 .635-.08.892-.24a1.56 1.56 0 0 0 .591-.676c.145-.29.217-.615.217-.977v-.036Zm-.639-.036c0 .458-.096.812-.29 1.061a.896.896 0 0 1-.771.386.894.894 0 0 1-.76-.374c-.193-.249-.289-.583-.289-1 0-.467.096-.824.29-1.074a.915.915 0 0 1 .759-.373c.321 0 .579.128.772.386.193.249.29.578.29.988Zm3.437-1.893c-.378 0-.671.165-.88.494l-.013-.421h-.615v3.713h.627v-2.64c.153-.354.438-.53.856-.53.113 0 .218.007.314.023v-.59a.671.671 0 0 0-.29-.049Zm3.69-1.218h3.146v.543h-2.484v1.616h2.17v.53h-2.17v1.772h2.52v.543H82.76v-5.004Zm5.087-.277h-.639v5.281h.64V21.27Zm4.498 3.34c0-.595-.133-1.05-.398-1.363-.266-.321-.64-.482-1.121-.482-.298 0-.575.08-.833.241-.249.17-.446.398-.59.688-.137.289-.205.618-.205.988v.109c0 .554.156 1 .47 1.338.321.33.731.494 1.23.494.627 0 1.093-.24 1.398-.723l-.386-.301c-.112.152-.249.273-.41.361a1.042 1.042 0 0 1-.566.145c-.314 0-.575-.113-.784-.338-.2-.225-.305-.522-.313-.892h2.507v-.265Zm-.627-.302v.049h-1.87c.04-.338.15-.6.326-.784a.85.85 0 0 1 .651-.29c.266 0 .475.089.627.266.153.185.242.438.266.76Zm5.823-1.543c-.265 0-.498.056-.699.169a1.26 1.26 0 0 0-.482.434c-.185-.402-.539-.603-1.061-.603-.467 0-.836.161-1.11.482l-.012-.41h-.603v3.714h.64v-2.713c.152-.354.438-.53.856-.53.53 0 .795.269.795.807v2.436h.64v-2.472a.876.876 0 0 1 .265-.566.853.853 0 0 1 .59-.205c.282 0 .487.064.615.193.121.136.181.337.181.602v2.448h.627v-2.496c-.008-.86-.422-1.29-1.242-1.29Zm5.691 1.845c0-.595-.133-1.05-.398-1.363-.273-.321-.651-.482-1.133-.482-.298 0-.571.08-.82.241a1.647 1.647 0 0 0-.591.688 2.19 2.19 0 0 0-.217.988v.109c0 .554.161 1 .482 1.338.314.33.724.494 1.23.494.619 0 1.086-.24 1.399-.723l-.386-.301c-.12.152-.257.273-.41.361a1.08 1.08 0 0 1-.566.145c-.322 0-.583-.113-.784-.338-.209-.225-.318-.522-.326-.892h2.52v-.265Zm-.639-.302v.049h-1.857c.041-.338.149-.6.326-.784a.814.814 0 0 1 .639-.29c.265 0 .478.089.639.266.153.185.237.438.253.76Zm3.605-1.543c-.458 0-.832.177-1.121.53l-.012-.457h-.603v3.713h.627v-2.653c.088-.176.213-.321.374-.434a.936.936 0 0 1 .542-.156c.25 0 .434.064.555.193.121.128.185.325.193.59v2.46h.627v-2.46c-.008-.884-.402-1.326-1.182-1.326Zm2.858-.832h.639v.905h.699v.482h-.699v2.315c0 .153.032.265.096.338.065.072.169.108.314.108.072 0 .173-.012.301-.036v.506a1.75 1.75 0 0 1-.482.073c-.289 0-.506-.089-.651-.266-.145-.168-.217-.41-.217-.723v-2.315h-.675v-.482h.675v-.905Zm5.245 1.363c.313.345.47.811.47 1.398v.036c0 .362-.068.688-.205.977-.136.29-.333.515-.591.675a1.644 1.644 0 0 1-.892.241c-.506 0-.916-.177-1.23-.53-.313-.346-.47-.808-.47-1.387v-.048c0-.362.073-.687.217-.977a1.55 1.55 0 0 1 .603-.675c.257-.16.547-.241.868-.241.507 0 .916.177 1.23.53Zm-.446 2.423c.185-.249.277-.603.277-1.061 0-.41-.096-.74-.289-.988a.917.917 0 0 0-.772-.387.914.914 0 0 0-.759.374c-.193.25-.286.607-.278 1.073 0 .418.093.752.278 1.001.193.25.45.374.771.374a.916.916 0 0 0 .772-.386Zm2.833-2.46a.998.998 0 0 1 .892-.494.64.64 0 0 1 .278.048v.591a1.914 1.914 0 0 0-.314-.024c-.418 0-.699.177-.844.53v2.641h-.639v-3.713h.615l.012.421Z",clipRule:"evenodd"})}),(0,Pi.jsx)("h2",{className:"tpae-onbrd-crd-h how-would",children:(0,Pn.__)("How would you like to start?","tpebl")}),(0,Pi.jsxs)("div",{className:"tpae-strt-crd-cover tpae-whitebg-cover",children:[(0,Pi.jsxs)("div",{className:`tpae-strat-card ${"import_web"===p?"tpae-active-board-card":""} `,onClick:()=>{P("import_web")},children:[(0,Pi.jsx)("div",{className:"tpae-icon-box",children:(0,Pi.jsx)("i",{className:"theplus-i-website"})}),(0,Pi.jsxs)("div",{children:[(0,Pi.jsx)("h3",{className:"tpae-crd-h",children:(0,Pn.__)("Import Ready Made Website","tpebl")}),(0,Pi.jsxs)("p",{className:"tpar-crd-desc",children:[(0,Pn.__)("Get a Full Website Ready ","tpebl")," ",(0,Pi.jsx)("br",{}),(0,Pn.__)("Under 60 seconds","tpebl")]})]}),(0,Pi.jsxs)("div",{className:"tpae-info-icon",children:[(0,Pi.jsx)("i",{className:"theplus-i-info"}),(0,Pi.jsx)("span",{className:"tpae-tip-txt",children:(0,Pn.__)("This will install the WDesignKit Plugin, which enables you to import Elementor Templates & Sections.","tpebl")})]})]}),(0,Pi.jsxs)("div",{className:"tpae-strat-card "+("ele_widgets"===p?"tpae-active-board-card":""),onClick:()=>{P("ele_widgets")},children:[(0,Pi.jsx)("div",{className:"tpae-icon-box",children:(0,Pi.jsx)("i",{className:"theplus-i-widget"})}),(0,Pi.jsxs)("div",{children:[(0,Pi.jsx)("h3",{className:"tpae-crd-h",children:(0,Pn.__)("Use Elementor Widgets","tpebl")}),(0,Pi.jsx)("p",{className:"tpar-crd-desc",children:(0,Pn.__)("Create your design with our highly customisable widgets","tpebl")})]})]})]}),(0,Pi.jsx)("div",{children:p?(0,Pi.jsx)("span",{className:"tpae-purple-common-btn tp-onbording-btn",onClick:()=>I("next","select_mode"),children:"Continue"}):(0,Pi.jsx)("span",{className:"tpae-purple-common-btn tp-onbording-btn tpae-disable-element",children:"Continue"})})]}):2==l?(0,Pi.jsx)(Ao,{nextstep:p,setNextstep:u,onBoardingStep:l,setOnBoardingStep:c,accordionIndex:d,setAccordionIndex:h,handleOnboardingStep:I}):3==l?(0,Pi.jsx)(Pi.Fragment,{children:(0,Pi.jsxs)("div",{className:"tpae-enbls-temp tpae-onbsec-cover",children:[(0,Pi.jsx)("div",{className:"tpae-sech-btn",children:(0,Pi.jsx)("h2",{className:"tpae-onbrd-crd-h get-pre-designed",children:(0,Pn.__)("Get 1000+ Pre-Designed Elementor Websites & Templates","tpebl")})}),(0,Pi.jsx)("div",{className:"tpae-templ-cover tpae-whitebg-cover",children:M&&0!==M.length?M.map(((e,t)=>(0,Pi.jsxs)("div",{className:"tpae-wtempl-card",children:[(0,Pi.jsx)("div",{className:"tpae-temimg-cover",children:(0,Pi.jsx)("a",{href:e.post_url+"?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings",target:"_blank",children:(0,Pi.jsx)("img",{className:"tpae-wtemp-img",src:e.responsive_image[1].url,draggable:!1})})}),(0,Pi.jsx)("h4",{className:"tpae-in-sec-heading onbording",children:e.title})]},t))):[...Array(8)].map(((e,t)=>(0,Pi.jsxs)("div",{className:"tpae-wtempl-card skeleton",children:[(0,Pi.jsx)("div",{className:"tpae-temimg-cover skeleton-img",children:(0,Pi.jsx)("div",{className:"skeleton-box skeleton-img"})}),(0,Pi.jsx)("h4",{className:"tpae-in-sec-heading skeleton-text skeleton-title"})]},t)))}),(0,Pi.jsxs)("div",{className:"tpae-btmsm-btn",children:[(0,Pi.jsx)("span",{className:"tpae-link-btn",onClick:()=>I("back","enbl_temp"),children:(0,Pn.__)("Back","tpebl")}),(0,Pi.jsxs)("div",{className:"tpae-group-button",children:[(0,Pi.jsx)("span",{className:"tpae-link-btn",onClick:()=>I("next","enbl_temp"),children:(0,Pn.__)("Skip","tpebl")}),g?(0,Pi.jsx)("a",{className:"tpae-purple-common-btn tp-onbording-btn",onClick:e=>I("next","enbl_temp"),children:(0,Pn.__)("Continue","tpebl")}):(0,Pi.jsx)("a",{className:"tpae-purple-common-btn tp-onbording-btn",onClick:e=>(async()=>{w("Installing WDesignKit");let e=new FormData;e.append("action","tpae_dashboard_ajax_call"),e.append("nonce",o),e.append("type","tpae_plugin_install"),e.append("slug","wdesignkit/wdesignkit.php"),e.append("name","wdesignkit"),(await In.post(s,e)).data.success?(w("Installed WDesignKit"),m(!0),WsetShowPopup("download")):w("Installation Failed")})(),children:b})]})]})]})}):4==l?(()=>{let e=[{question:(0,Pn.__)("Why Do I Need a Theme Builder?","tpebl"),answer:(0,Pi.jsxs)(Pi.Fragment,{children:[(0,Pn.__)("Our Theme Builder gives you the capability to customize the Header, Footer, Single, and Archive Pages using The Plus Addons for Elementor dynamic Widgets.","tpebl"),(0,Pi.jsx)("br",{}),(0,Pi.jsx)("br",{}),(0,Pn.__)("You don’t need to rely on the limited controls of the customizer like Other themes. This makes the The Plus Addons for Elementor ecosystem truly limitless, allowing you to create every element with Widgets.","tpebl")]})},{question:(0,Pn.__)("Will this work with any WordPress theme?","tpebl"),answer:(0,Pn.__)("Yes, the Nexter Extension works with any WordPress theme. That said, we highly recommend using it with the Nexter theme — it’s the lightest theme available, under 10KB, built with pure vanilla JavaScript and no jQuery. This ensures your website stays lightning fast and optimized. But don’t worry, you’re free to use any theme you like!","tpebl")},{question:(0,Pn.__)("Will it break my current website?","tpebl"),answer:(0,Pn.__)("Not at all! The Theme Builder is designed to integrate smoothly with your existing site. It won’t interfere with your current layout or content. You can activate and use it gradually, applying changes only when you’re ready.","tpebl")}];return(0,Pi.jsx)("div",{className:"tpae-enbltempl-cover tpae-onbsec-cover",children:(0,Pi.jsxs)("div",{className:"tpae-stentemp",children:[(0,Pi.jsxs)("div",{className:"tpae-stentemp-in",children:[(0,Pi.jsxs)("div",{className:"tpae-sech-btn",children:[(0,Pi.jsx)("h2",{className:"tpae-onbrd-crd-h tp-extra get-free-theme-txt",children:(0,Pn.__)("Get Free Theme Builder for","tpebl")}),(0,Pi.jsx)("h2",{className:"tpae-onbrd-crd-h tp-extra",children:(0,Pn.__)("Elementor with Nexter Extension","tpebl")})]}),(0,Pi.jsxs)("div",{className:"tpae-pnt-lst-cover",children:[(0,Pi.jsxs)("div",{className:"tpae-pnt-cover",children:[(0,Pi.jsx)("span",{className:"tpae-pnt-icon",children:(0,Pi.jsx)("i",{className:"theplus-i-check-mark-fill"})}),(0,Pi.jsx)("p",{className:"tpae-pnt-lst-txt",children:(0,Pn.__)("Free Elementor Header & Footer Builder","tpebl")})]}),(0,Pi.jsxs)("div",{className:"tpae-pnt-cover",children:[(0,Pi.jsx)("span",{className:"tpae-pnt-icon",children:(0,Pi.jsx)("i",{className:"theplus-i-check-mark-fill"})}),(0,Pi.jsx)("p",{className:"tpae-pnt-lst-txt",children:(0,Pn.__)("Pre-Made Theme Builder Section Templates","tpebl")})]}),(0,Pi.jsxs)("div",{className:"tpae-pnt-cover",children:[(0,Pi.jsx)("span",{className:"tpae-pnt-icon",children:(0,Pi.jsx)("i",{className:"theplus-i-check-mark-fill"})}),(0,Pi.jsx)("p",{className:"tpae-pnt-lst-txt",children:(0,Pn.__)("100% Customisable with Widgets","tpebl")})]}),(0,Pi.jsxs)("div",{className:"tpae-pnt-cover",children:[(0,Pi.jsx)("span",{className:"tpae-pnt-icon",children:(0,Pi.jsx)("i",{className:"theplus-i-check-mark-fill"})}),(0,Pi.jsx)("p",{className:"tpae-pnt-lst-txt",children:(0,Pn.__)("Free Single, Archive & 404 Page Builder","tpebl")})]})]}),(0,Pi.jsx)("div",{className:"tpae-acrodn-cover",children:e.map(((e,t)=>(0,Pi.jsxs)("div",{className:"tpae-acrodn-stripblk",children:[(0,Pi.jsxs)("div",{className:"tpae-acrodn-hstrip "+(E===t?"tpae-content-opan":""),onClick:()=>(e=>{L(E===e?null:e)})(t),children:[(0,Pi.jsx)("h3",{className:"tpae-strip-h",children:e.question}),(0,Pi.jsx)("div",{className:"tpae-ico-box",children:E!==t?(0,Pi.jsx)("i",{className:"theplus-i-plus"}):(0,Pi.jsx)("i",{className:"theplus-i-minus"})})]}),(0,Pi.jsx)("div",{className:"tpae-acccontent-box "+(E===t?"opan-accordion":""),children:(0,Pi.jsx)("p",{className:"tpae-accr-content",children:e.answer})})]},t)))})]}),(0,Pi.jsxs)("div",{className:"tpae-btmsm-btn",children:[(0,Pi.jsx)("span",{className:"tpae-link-btn",onClick:()=>I("back","step_four"),children:(0,Pn.__)("Back","tpebl")}),(0,Pi.jsx)("div",{className:"tpae-rit-btn-cover",children:f?(0,Pi.jsx)("span",{className:"tpae-link-btn",onClick:()=>I("next","step_four"),children:"Skip"}):(0,Pi.jsxs)(Pi.Fragment,{children:[(0,Pi.jsx)("span",{className:"tpae-link-btn",onClick:()=>I("next","step_four"),children:"Skip"}),(0,Pi.jsx)("a",{className:"tpae-purple-common-btn tp-onbording-btn",onClick:()=>{(async()=>{y((0,Pn.__)("Installing...","tpebl"));let e=new FormData;e.append("action","tpae_dashboard_ajax_call"),e.append("nonce",o),e.append("type","tpae_plugin_install"),e.append("slug","nexter-extension/nexter-extension.php"),e.append("name","nexter-extension"),await In.post(s,e)&&(_(!0),c(l+1),y((0,Pn.__)("Next","tpebl")))})()},children:v})]})})]})]})})})():5==l?(()=>{let e=[{img_url:(0,Pn.__)(i+"assets/images/on-boarding/image-1.png"),wid_name:(0,Pn.__)("Horizontal & Vertical Mega Menu and Mobile Menus")},{img_url:(0,Pn.__)(i+"assets/images/on-boarding/image-2.png"),wid_name:(0,Pn.__)("Complete WooCommerce Store Builder")},{img_url:(0,Pn.__)(i+"assets/images/on-boarding/image-3.png"),wid_name:(0,Pn.__)("Ultimate Popup Builder,Off Canvas & Slide-ins")},{img_url:(0,Pn.__)(i+"assets/images/on-boarding/image-4.png"),wid_name:(0,Pn.__)("Advanced Display Conditions for WooCommerce & more")},{img_url:(0,Pn.__)(i+"assets/images/on-boarding/image-5.png"),wid_name:(0,Pn.__)("Listings with Ajax Search Bar & 15+ Filters")},{img_url:(0,Pn.__)(i+"assets/images/on-boarding/image-6.png"),wid_name:(0,Pn.__)("Social Media Live Feed & Review Widgets")},{img_url:(0,Pn.__)(i+"assets/images/on-boarding/image-7.png"),wid_name:(0,Pn.__)("Login/Register & Password Reset Form")},{img_url:(0,Pn.__)(i+"assets/images/on-boarding/image-1.png"),wid_name:(0,Pn.__)("Custom Loop Skin for Posts,CPT & Woo Products")}];const t=()=>{const e=document.querySelector(".tpae-uc-sndtxt")?.innerText;e&&navigator.clipboard.writeText(e).then((()=>{C(!0),setTimeout((()=>C(!1)),1500)}))};return(0,Pi.jsxs)("div",{className:"tpae-specof-cover",children:[(0,Pi.jsxs)("div",{className:"tpae-spctop-secs",children:[(0,Pi.jsxs)("div",{className:"tpae-hbtn-list",children:[(0,Pi.jsxs)("div",{className:"tpae-spof-hintxt",children:[(0,Pi.jsx)("i",{className:"theplus-i-shield"}),(0,Pi.jsx)("span",{className:"tpae-smtxt",children:(0,Pn.__)("60 days Money-Back Guarantee","tpebl")})]}),(0,Pi.jsx)("h2",{className:"tpae-onbrd-crd-h get-access-to",children:(0,Pn.__)("Get access to all 120+ Widgets With FLAT 20% OFF","tpebl")}),(0,Pi.jsx)("div",{className:"tpae-use-code",children:(0,Pi.jsxs)("div",{className:"tpae-uc-l onbording",children:[(0,Pn.__)("USE CODE: ","tpebl"),x?(0,Pi.jsx)(Pi.Fragment,{children:(0,Pi.jsxs)("div",{className:"tpae-uc-l-main",children:[(0,Pi.jsxs)("span",{className:"tpae-uc-sndtxt",children:[(0,Pn.__)("Copied","tpebl")," "]}),(0,Pi.jsx)("span",{className:"tpae-uc-svg",onClick:t,children:(0,Pi.jsx)("i",{className:"theplus-i-check-mark-fill"})})]})}):(0,Pi.jsx)(Pi.Fragment,{children:(0,Pi.jsxs)("div",{className:"tpae-uc-l-main",children:[(0,Pi.jsxs)("span",{className:"tpae-uc-sndtxt",children:[(0,Pn.__)(" FIRST20","tpebl")," "]}),(0,Pi.jsx)("span",{className:"tpae-uc-svg",onClick:t,children:(0,Pi.jsx)("i",{className:"theplus-i-copy"})})]})})]})}),(0,Pi.jsxs)("div",{className:"tpae-btmbtn-grp",children:[(0,Pi.jsx)("a",{href:"https://theplusaddons.com/pricing/?utm_source=wpbackend&utm_medium=widgets&utm_campaign=links",target:"_blank",className:"tpae-purple-common-btn tp-onbording-btn",children:(0,Pn.__)("Upgrade Now","tpebl")}),(0,Pi.jsx)("a",{href:"https://theplusaddons.com/elementor-widget/?utm_source=wpbackend&utm_medium=widgets&utm_campaign=links",target:"_blank",className:"tpae-link-btn",children:(0,Pn.__)("View all Widgets","tpebl")})]})]}),(0,Pi.jsxs)("div",{className:"tpae-ritsm-list",children:[(0,Pi.jsxs)("div",{className:"tpae-chlist",children:[(0,Pi.jsx)("i",{className:"theplus-i-check-mark-fill"}),(0,Pi.jsx)("span",{className:"tpae-lismtxt",children:(0,Pn.__)("Performance Optimized","tpebl")})]}),(0,Pi.jsxs)("div",{className:"tpae-chlist",children:[(0,Pi.jsx)("i",{className:"theplus-i-check-mark-fill"}),(0,Pi.jsx)("span",{className:"tpae-lismtxt",children:(0,Pn.__)("Elementor Theme Builder with Nexter","tpebl")})]}),(0,Pi.jsxs)("div",{className:"tpae-chlist",children:[(0,Pi.jsx)("i",{className:"theplus-i-check-mark-fill"}),(0,Pi.jsx)("span",{className:"tpae-lismtxt",children:(0,Pn.__)("Works with Most Themes","tpebl")})]})]})]}),(0,Pi.jsx)("div",{className:"tpae-spwidlst-cover tpae-whitebg-cover",children:e.map(((e,t)=>(0,Pi.jsxs)("div",{className:"tpae-spwid-crd",children:[(0,Pi.jsx)("div",{className:"tpae-spwidimg-cover",children:(0,Pi.jsx)("img",{className:"tpae-spwid-img",src:e.img_url,draggable:!1})}),(0,Pi.jsx)("span",{className:"tpae-crd-btmh",children:e.wid_name})]},t)))}),(0,Pi.jsxs)("div",{className:"tpae-btmsm-btn",children:[(0,Pi.jsx)("span",{className:"tpae-link-btn",onClick:()=>I("back","handleCopy"),children:"Back"}),(0,Pi.jsx)("span",{className:"tpae-purple-common-btn tp-onbording-btn",onClick:()=>I("next","handleCopy"),children:"Continue"})]})]})})():6==l?(()=>{const e=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);return(0,Pi.jsxs)("div",{className:"tpae-stay-upcover tpae-onbsec-cover",children:[(0,Pi.jsxs)("h2",{className:"tpae-onbrd-crd-h tips-tricks",children:[(0,Pn.__)("Get Exclusive Elementor Tips, Tricks and Resources Delivered Straight ","tpebl"),(0,Pi.jsx)("br",{}),(0,Pn.__)("to Your Inbox! ","tpebl")]}),(0,Pi.jsxs)("div",{className:"tpae-whinf-cover tpae-whitebg-cover tp-subscribe-email",children:[(0,Pi.jsxs)("div",{className:"tpae-top-stxt",children:[(0,Pi.jsx)("p",{className:"tpae-sm-txt",children:(0,Pn.__)("Join our 200K+ Business Owners, Marketers, WordPress users.","tpebl")}),(0,Pi.jsxs)("div",{className:"tpae-grp-txtico",children:[(0,Pi.jsx)("i",{className:"theplus-i-shield"}),(0,Pi.jsx)("p",{className:"tpae-icotxt",children:(0,Pn.__)("NO SPAM GUARANTEE","tpebl")})]})]}),(0,Pi.jsx)("input",{className:"tpae-in-boxfield "+(T?"":"tp-email-error"),type:"email",value:k,onChange:e=>S(e.target.value)}),(0,Pi.jsxs)("div",{className:"tpae-staywid-list",children:[(0,Pi.jsx)("input",{type:"checkbox",id:"tpae-agree-ch",className:"tpae-chkbox-style",checked:j,onChange:e=>$(e.target.checked)}),(0,Pi.jsx)("label",{className:"tpae-wid-chk-name",for:"tpae-agree-ch",children:(0,Pn.__)(" Agree to contribute to make The Plus Addons for Elementor better by sharing non-sensitive details.","tpebl")})]})]}),(0,Pi.jsxs)("div",{className:"tpae-btmsm-btn tp-subscribe-email-btn",children:[(0,Pi.jsx)("span",{className:"tpae-link-btn",onClick:()=>I("back","stay_updated"),children:"Back"}),(0,Pi.jsxs)("div",{className:"tpae-rit-btn-cover",children:[(0,Pi.jsx)("span",{className:"tpae-link-btn",onClick:()=>I("next","stay_updated"),children:"Skip"}),(0,Pi.jsx)("a",{className:"tpae-purple-common-btn tp-onbording-btn",onClick:()=>{(async()=>{if(e(k)){if(O(!0),I("next","stay_updated"),e(k)){if(j){let e=new FormData;e.append("action","tpae_dashboard_ajax_call"),e.append("nonce",o),e.append("type","tpae_user_meta_data"),await In.post(s,e)}const e=`https://store.posimyth.com/?fluentcrm=1&route=contact&hash=f808721e-d3c0-4554-9146-2bc6a63a2974&email=${encodeURIComponent(k)}`;await fetch(e,{method:"POST",headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"http://localhost/"},mode:"no-cors"})}}else O(!1)})()},children:(0,Pn.__)("Subscribe","tpebl")})]})]})]})})():7==l?(0,Pi.jsxs)("div",{className:"tpae-conf-allcover",children:[(0,Pi.jsxs)("div",{className:"tpae-setup-h",children:[(0,Pi.jsx)("i",{className:"theplus-i-check-mark-fill"}),(0,Pi.jsx)("h2",{className:"tpae-onbrd-crd-h end-setup",children:(0,Pn.__)("Setup Up Done Successfully.","tpebl")})]}),(0,Pi.jsxs)("div",{className:"tpae-infcrd-cover",children:[(0,Pi.jsx)("div",{className:"tpae-smxtx-incover",children:(0,Pi.jsx)("p",{className:"tpae-sm-intxt",children:(0,Pn.__)("I just Installed The Plus Addons for Elementor! It comes with 120+ Elementor Widgets which replace multiple plugins for me, without compromising on my website performance. Excited to use it","tpebl")})}),(0,Pi.jsx)("div",{className:"tpae-btn-grp",children:(0,Pi.jsxs)("a",{href:`https://twitter.com/intent/tweet?text=${encodeURIComponent(`Just added The Plus Addons for Elementor - @tpaelementor ${window.location.origin} to my WordPress site.\n\nIt comes with 120+ widgets, so I can drop a bunch of extra plugins without slowing things down.\nExcited to see how it improves my build process.\n\n#WordPress #Elementor`)}`,target:"_blank",className:"tpae-purple-common-btn tp-onbording-btn tpae-x-btn",children:[(0,Pn.__)("Post on","tpebl")," ",(0,Pi.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Pi.jsx)("g",{clipPath:"url(#clip0_659_32813)",children:(0,Pi.jsx)("path",{d:"M9.49 6.775 15.317 0h-1.382l-5.06 5.883L4.834 0H.172l6.112 8.895L.172 16h1.381l5.344-6.212L11.166 16h4.662l-6.34-9.225h.001zM7.597 8.974l-.62-.886L2.051 1.04h2.122L8.15 6.728l.618.886 5.17 7.393h-2.122L7.598 8.974z",fill:"white"})}),(0,Pi.jsx)("defs",{children:(0,Pi.jsx)("clipPath",{id:"clip0_659_32813",children:(0,Pi.jsx)("rect",{width:"16",height:"16",fill:"white"})})})]})]})})]}),(0,Pi.jsxs)("div",{className:"tpae-btmsm-btn",children:[(0,Pi.jsx)("span",{className:"tpae-link-btn",onClick:()=>I("back","confirmation_all"),children:"Back"}),(0,Pi.jsx)("div",{className:"tpae-rit-btn-cover",children:(0,Pi.jsx)("a",{className:"tpae-purple-common-btn tp-onbording-btn onbording",onClick:()=>D(),children:"Start Using"})})]})]}):8==l?(0,Pi.jsx)(No,{}):void 0})]})]})})),Lo=Oi((e=>({plugin_check:e.check_plugin.plugin_status_rx,tpae_onbording_data:e.Check_onbording.tpae_onbording_rx})))((e=>{const n=tpae_db_object.tpae_pro,i=e?.tpae_onbording_data,o=tpae_db_object.onboarding_setup,[s,r]=(0,t.useState)("null"),[a,l]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{const e=()=>{const e=window.location.hash;let t=!1;if(e.includes("?")){const n=e.split("?")[1];null!==new URLSearchParams(n).get("tp_skip_onbording")&&(r("hide"),t=!0,l(!0))}t||(l(!1),r("hide"===i?.check_onboarding?"hide":"show"===i?.check_onboarding?"show":"hide"===o?"hide":"show"))};e(),window.addEventListener("hashchange",e)}),[o,i]),(0,Pi.jsx)(Pi.Fragment,{children:"null"===s?"":"hide"!==s?(0,Pi.jsx)(Eo,{}):(0,Pi.jsxs)("div",{className:"theplus_dashboard_main_cover",onClick:e=>{const t=document.querySelectorAll(".tpae_ctm_drpdwn_content.theplus_wp_show");e.target.closest(".tpae_ctm_drpdwn_header")||t.forEach((e=>e.classList.remove("theplus_wp_show")))},children:[(0,Pi.jsxs)("div",{className:"tpae_main_cover "+(a?"tpae_hide_menu":""),children:[(0,Pi.jsx)("div",{className:"theplus_navbox_cover",children:(0,Pi.jsx)(So,{})}),(0,Pi.jsx)("div",{className:"tpae_dash_inner_main_cover",children:(0,Pi.jsx)(le,{children:ko.map(((e,t)=>(0,Pi.jsx)(re,{path:e.path,element:e.element},t)))})})]}),"0"===n&&(0,Pi.jsx)(jo,{}),(0,Pi.jsx)($o,{})]})})})),Mo=Oi((e=>({tpae_dashboard_data:e.Dashboard_data.db_rx})),(e=>({tpae_set_userinfo:t=>e(Wi(t)),tpae_set_widgets:t=>e(Bi(t)),tpae_set_extra_option:t=>e(Ui(t)),tpae_set_plugins:t=>e(Hi(t)),tpae_set_listing:t=>e(zi(t)),tpae_set_custom_data:t=>e(Vi(t)),tpae_set_performance:t=>e(Gi(t)),tpae_set_white_lable:t=>e(Ki(t)),tpae_set_license:t=>e(qi(t)),tpae_set_wdkit_widgets:t=>e(Zi(t)),tpae_set_widgets_setting:t=>e(Yi(t)),tpae_set_onbording:t=>e(Ji(t))})))((e=>{const{pathname:n}=K();(0,t.useEffect)((()=>{i()}),[]),(0,t.useEffect)((()=>{window.scrollTo(0,0)}),[n]);const i=async()=>{tpae_db_object.tpae_url;var t=tpae_db_object.nonce,n=tpae_db_object.ajax_url;let i=new FormData;i.append("action","tpae_dashboard_ajax_call"),i.append("nonce",t),i.append("type","tpae_onload_data"),i.append("plugin_data",JSON.stringify([{plugin_slug:"wdesignkit/wdesignkit.php",status:""}]));var o=(await In.post(n,i)).data;await e.tpae_set_white_lable(o.white_label),await e.tpae_set_wdkit_widgets(o.wdk_widgets),await e.tpae_set_widgets(o.widgets),await e.tpae_set_extra_option(o.extra_option),await e.tpae_set_plugins(o.plugin_detail),await e.tpae_set_listing(o.listing_data),await e.tpae_set_custom_data(o.custom_css_js),await e.tpae_set_performance(o.performance),await e.tpae_set_license(o.license_details),await e.tpae_set_userinfo(o.user_info),await e.tpae_set_widgets_setting(o.tp_widgets_setting),await e.tpae_set_onbording(o.check_onboarding)};return null})),Ro=()=>(0,Pi.jsxs)(ue,{children:[(0,Pi.jsx)(Mo,{}),(0,Pi.jsx)(Lo,{})]});function To(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Oo=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),Io=()=>Math.random().toString(36).substring(7).split("").join("."),Po={INIT:`@@redux/INIT${Io()}`,REPLACE:`@@redux/REPLACE${Io()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Io()}`};const Fo={db_rx:{roles:[""],user_image:"",user_name:""}},Do={widgets_rx:[]},Wo={extra_option_rx:[]},Bo={plugin_status_rx:[{wdesignkit:!1}]},Uo={lising_data_rx:{client_post_type:"disable",testimonial_post_type:"disable",team_member_post_type:"disable"}},Ho={custom_code_rx:{custom_css:"",custom_js:""}},zo={performance_rx:{plus_cache_option:"external"}},Vo={white_lable_rx:{white_label:""}},Go={wdkit_widgets_rx:[]},Ko={license_rx:{activations_left:0,customer_email:"",customer_name:"",is_local:!1,item_id:!1,expires:"",item_name:"",license:"",license_key:"",license_limit:0,price_id:0,site_count:0,success:0}},qo={tpae_widget_setting_rx:{check_widgets_setting:[]}},Zo={tpae_onbording_rx:{check_onboarding:"null"}},Yo=function e(t,n,i){if("function"!=typeof t)throw new Error(To(2));if("function"==typeof n&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(To(0));if("function"==typeof n&&void 0===i&&(i=n,n=void 0),void 0!==i){if("function"!=typeof i)throw new Error(To(1));return i(e)(t,n)}let o=t,s=n,r=new Map,a=r,l=0,c=!1;function d(){a===r&&(a=new Map,r.forEach(((e,t)=>{a.set(t,e)})))}function h(){if(c)throw new Error(To(3));return s}function p(e){if("function"!=typeof e)throw new Error(To(4));if(c)throw new Error(To(5));let t=!0;d();const n=l++;return a.set(n,e),function(){if(t){if(c)throw new Error(To(6));t=!1,d(),a.delete(n),r=null}}}function u(e){if(!function(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}(e))throw new Error(To(7));if(void 0===e.type)throw new Error(To(8));if("string"!=typeof e.type)throw new Error(To(17));if(c)throw new Error(To(9));try{c=!0,s=o(s,e)}finally{c=!1}return(r=a).forEach((e=>{e()})),e}return u({type:Po.INIT}),{dispatch:u,subscribe:p,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error(To(10));o=e,u({type:Po.REPLACE})},[Oo]:function(){const e=p;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(To(11));function n(){const e=t;e.next&&e.next(h())}return n(),{unsubscribe:e(n)}},[Oo](){return this}}}}}(function(e){const t=Object.keys(e),n={};for(let i=0;i{const n=e[t];if(void 0===n(void 0,{type:Po.INIT}))throw new Error(To(12));if(void 0===n(void 0,{type:Po.PROBE_UNKNOWN_ACTION()}))throw new Error(To(13))}))}(n)}catch(e){o=e}return function(e={},t){if(o)throw o;let s=!1;const r={};for(let o=0;o