Version Description
(2021/09/03) = * Fix: Security update: access controls to the REST API and the options enforced. * Updated: Dependencies update. * Note: The plugin has no known bugs for a while, and I am now happy to work on littke extra features :) By the way, if you like it, please review the plugin by clicking here. Thank you!
Download this release
Release Info
Developer | TigrouMeow |
Plugin | Media File Renamer |
Version | 5.2.6 |
Comparing to | |
See all releases |
Code changes from version 5.2.5 to 5.2.6
- app/index.js +1 -1
- app/vendor.js +3 -3
- classes/admin.php +47 -22
- classes/core.php +14 -0
- classes/rest.php +20 -16
- common/admin.php +2 -2
- common/classes/rest.php +52 -15
- common/classes/rest_license.php +6 -3
- common/img/contact-form-block.png +0 -0
- common/img/kinsta.png +0 -0
- common/img/meow-analytics.png +0 -0
- common/img/meowapps.png +0 -0
- common/img/stackpath.png +0 -0
- common/releases.txt +4 -0
- media-file-renamer.php +2 -2
- readme.txt +8 -4
app/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
!function(e){function t(t){for(var r,c,i=t[0],l=t[1],u=t[2],m=0,f=[];m<i.length;m++)c=i[m],Object.prototype.hasOwnProperty.call(a,c)&&a[c]&&f.push(a[c][0]),a[c]=0;for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);for(s&&s(t);f.length;)f.shift()();return o.push.apply(o,u||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],r=!0,i=1;i<n.length;i++){var l=n[i];0!==a[l]&&(r=!1)}r&&(o.splice(t--,1),e=c(c.s=n[0]))}return e}var r={},a={0:0},o=[];function c(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,c),n.l=!0,n.exports}c.m=e,c.c=r,c.d=function(e,t,n){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(c.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)c.d(n,r,function(t){return e[t]}.bind(null,r));return n},c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="";var i=window.wpJsonMfrh=window.wpJsonMfrh||[],l=i.push.bind(i);i.push=t,i=i.slice();for(var u=0;u<i.length;u++)t(i[u]);var s=l;o.push([130,1]),n()}({0:function(e,t){e.exports=React},1:function(e,t,n){"use strict";var r=n(14);n.d(t,"b",(function(){return r.a}));var a=n(11);n.d(t,"c",(function(){return a.a}));n(37);var o=n(49);n.d(t,"q",(function(){return o.a}));var c=n(50);n.d(t,"a",(function(){return c.a}));var i=n(51);n.d(t,"g",(function(){return i.a}));var l=n(52);n.d(t,"v",(function(){return l.a}));n(53);var u=n(38);n.d(t,"C",(function(){return u.b})),n.d(t,"f",(function(){return u.a}));var s=n(54);n.d(t,"d",(function(){return s.a}));var m=n(55);n.d(t,"e",(function(){return m.a}));var f=n(21);n.d(t,"k",(function(){return f.a}));n(56);var d=n(39);n.d(t,"u",(function(){return d.b})),n.d(t,"p",(function(){return d.a}));n(57),n(58),n(8),n(40),n(22);var p=n(59);n.d(t,"s",(function(){return p.a}));var h=n(60);n.d(t,"i",(function(){return h.a}));var y=n(23);n.d(t,"r",(function(){return y.a}));var g=n(10);n.d(t,"j",(function(){return g.a}));var v=n(16);n.d(t,"B",(function(){return v.a}));var b=n(41);n.d(t,"t",(function(){return b.b})),n.d(t,"l",(function(){return b.a}));var E=n(61);n.d(t,"h",(function(){return E.a}));var R=n(42);n.d(t,"m",(function(){return R.a})),n.d(t,"n",(function(){return R.b}));n(62),n(63),n(19);var w=n(24);n.d(t,"o",(function(){return w.a}));n(68);var _=n(69);n.d(t,"x",(function(){return _.a}));var k=n(44);n.d(t,"y",(function(){return k.b})),n.d(t,"w",(function(){return k.a}));n(45);var O=n(70);n.d(t,"A",(function(){return O.a}));var x=n(3);n.d(t,"z",(function(){return x.a}));var S=n(7);n.d(t,"J",(function(){return S.d})),n.d(t,"H",(function(){return S.b})),n.d(t,"I",(function(){return S.c}));var T=n(15);n.d(t,"G",(function(){return T.d})),n.d(t,"F",(function(){return T.c})),n.d(t,"E",(function(){return T.b})),n.d(t,"D",(function(){return T.a}));n(20)},121:function(e,t){e.exports=ReactDOM},130:function(e,t,n){"use strict";n.r(t);var r=n(12),a=n(1),o=wp.i18n.__,c={};c.RENAME=o("Rename","media-file-renamer"),c.MOVE=o("Move","media-file-renamer"),c.DASHBOARD=o("Dashboard","media-file-renamer"),c.PENDING=o("Pending","media-file-renamer"),c.RENAMED=o("Renamed","media-file-renamer"),c.ALL=o("All","media-file-renamer"),c.THUMB=o("Thumb","media-file-renamer"),c.TITLE=o("Title","media-file-renamer"),c.ATTACHED_TO=o("Attached To","media-file-renamer"),c.FILENAME=o("Filename","media-file-renamer");var i=c,l=mfrh_media_file_renamer.prefix,u=mfrh_media_file_renamer.domain,s=mfrh_media_file_renamer.rest_url.replace(/\/+$/,""),m=mfrh_media_file_renamer.api_url.replace(/\/+$/,""),f=mfrh_media_file_renamer.plugin_url.replace(/\/+$/,""),d="1"===mfrh_media_file_renamer.is_pro,p=d&&"1"===mfrh_media_file_renamer.is_registered,h=mfrh_media_file_renamer.rest_nonce,y="1"===mfrh_media_file_renamer.mfrh_undo,g="1"===mfrh_media_file_renamer.mfrh_move,v="1"===mfrh_media_file_renamer.mfrh_manual_rename;function b(e,t,n,r,a,o,c){try{var i=e[o](c),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,a)}function E(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function c(e){b(o,r,a,c,i,"next",e)}function i(e){b(o,r,a,c,i,"throw",e)}c(void 0)}))}}function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _=wp.element,k=_.useState,O=_.useEffect,x=function(e){var t=e.mutate,n=R(k(e.entry),2),r=n[0],o=n[1],c=R(k(!1),2),l=c[0],u=c[1],s=R(k(""),2),f=s[0],d=s[1],p=R(k(null),2),b=p[0],w=p[1],_=e.natural,x=void 0!==_&&_,S=Object(a.I)({concurrency:2}).runTask;O((function(){d(""),e.entry?o(e.entry):e.mediaId&&T(e.mediaId)}),[e.entry]);var T=function(){var e=E(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u((function(e){return e+1})),e.next=3,S(E(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(a.G)("".concat(m,"/analyze"),{nonce:h,json:{mediaId:t}}));case 1:case"end":return e.stop()}}),e)}))));case 3:n=e.sent,o(n.data),u((function(e){return e-1}));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),P=function(){var e=E(regeneratorRuntime.mark((function e(t){var n,r,a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.length<=220)){e.next=3;break}return d(t),e.abrupt("return");case 3:n=t.lastIndexOf("."),r=-1===n?"":".".concat(t.slice(n+1)),a=r.length>0?r.length:0,o="".concat(t.slice(0,220-a)).concat(r),d(o);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),A=function(){var e=E(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o(n),t&&t();case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),j=function(){var e=E(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u((function(e){return e+1})),e.next=3,Object(a.G)("".concat(m,"/rename"),{nonce:h,json:{mediaId:r.ID}});case 3:t=e.sent,A(t.data),w(null),u((function(e){return e-1}));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=E(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u((function(e){return e+1})),e.next=3,Object(a.G)("".concat(m,"/rename"),{nonce:h,json:{mediaId:r.ID,filename:f}});case 3:t=e.sent,A(t.data),w(null),d(""),u((function(e){return e-1}));case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),C=function(){var e=E(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u((function(e){return e+1})),e.next=3,Object(a.G)("".concat(m,"/undo"),{nonce:h,json:{mediaId:r.ID}});case 3:t=e.sent,A(t.data,r.current_filename),u((function(e){return e-1}));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),D=function(){var e=E(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u((function(e){return e+1})),e.next=3,Object(a.G)("".concat(m,"/set_lock"),{nonce:h,json:{mediaId:r.ID,lock:!r.locked}});case 3:t=e.sent,A(t.data),u((function(e){return e-1}));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),M=function(){var e=E(regeneratorRuntime.mark((function e(){var t,n,o,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log({entry:r}),t=r.metadata.file||"",n="/"+t.substring(0,t.lastIndexOf("/")),!(o=(o=(o=prompt("Where would you like to move this file (in the /uploads directory)?",n)).replace(/\/+$/,""))||"/")){e.next=13;break}return u((function(e){return e+1})),e.next=10,Object(a.G)("".concat(m,"/move"),{nonce:h,json:{mediaId:r.ID,newPath:o}});case 10:c=e.sent,A(c.data),u((function(e){return e-1}));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),U=!!f,B=U?f:b||(null==r?void 0:r.current_filename);return React.createElement(a.b,{busy:l},React.createElement("div",{style:{display:"flex",alignItems:"center"}},React.createElement(a.k,{natural:x,readOnly:!v||l,value:B,onChange:P,onEnter:I,maxLength:220,style:{marginRight:0,flex:"auto"}}),!U&&React.createElement(a.j,{icon:(null==r?void 0:r.locked)?"lock":"lock-open",width:24,title:(null==r?void 0:r.locked)?"Unlock, to allow future actions":"Lock, to avoid future actions",style:{position:"relative",left:-26,marginRight:-22},color:(null==r?void 0:r.locked)?a.z.blue:"#5a5a5a82",onClick:D}),U&&React.createElement(a.j,{icon:"close",width:24,style:{position:"relative",left:-26,marginRight:-22},color:(null==r?void 0:r.locked)?a.z.blue:"#5a5a5a82",onClick:function(){d("")}}),(null==r?void 0:r.proposed_filename_exists)&&React.createElement(a.j,{icon:"alert",color:"orange",tooltip:{text:"The ideal filename (".concat(r.proposed_filename,") already exists."),position:"left"}}),y&&!U&&(null==r?void 0:r.original_filename)&&React.createElement(a.j,{icon:"file-undo",title:"Rollback to original",color:a.z.red,onClick:C,onMouseEnter:function(){return w(null==r?void 0:r.original_filename)},onMouseLeave:function(){return w(null)}}),!U&&(null==r?void 0:r.proposed_filename)&&!(null==r?void 0:r.proposed_filename_exists)&&React.createElement(a.c,{style:{marginLeft:5},title:"Rename automatically",onMouseEnter:function(){return w(null==r?void 0:r.proposed_filename)},onMouseLeave:function(){return w(null)},onClick:j},"Auto Rename"),v&&U&&React.createElement(a.c,{style:{marginLeft:5},title:"Rename manually",onClick:I},i.RENAME),g&&React.createElement(a.c,{style:{marginLeft:5},title:"Move",onClick:M},i.MOVE)))},S=n(4);function T(){var e=C(["\n margin-top: 10px;\n background: rgb(0, 72, 88);\n padding: 10px;\n color: rgb(58, 212, 58);\n max-height: 600px;\n min-height: 200px;\n display: block;\n font-family: monospace;\n font-size: 12px;\n white-space: pre;\n overflow-x: auto;\n width: calc(100vw - 276px);\n\n .log-date {\n color: white;\n margin-left: 8px;\n }\n\n .log-type {\n background: #0000004d;\n padding: 2px 5px;\n border-radius: 8px;\n text-transform: uppercase;\n }\n\n .log-content {\n display: block;\n }\n\n .log-warning .log-type {\n background: #ccb028;\n color: white;\n }\n\n .log-fatal .log-type {\n background: #cc2828;\n color: white;\n }\n"]);return T=function(){return e},e}function P(){var e=C(["\n\n margin: 15px;\n\n .center {\n background: white;\n border-radius: 10px;\n padding: 10px;\n font-family: Lato;\n max-width: 100%\n overflow: none;\n\n h2 {\n font-size: 26px;\n }\n\n table {\n width: 100%;\n\n tr td:first-child {\n width: 220px;\n font-weight: bold;\n color: #1e7cba;\n }\n\n * {\n overflow-wrap: anywhere;\n }\n }\n }\n\n hr {\n border-color: #1e7cba;\n }\n"]);return P=function(){return e},e}function A(){var e=C(["\n width: 85px;\n height: 85px;\n padding-right: 10px;\n"]);return A=function(){return e},e}function j(){var e=C(["\n\n .nui-block-title {\n display: none;\n }\n\n .nui-block-content {\n display: flex;\n padding: 10px;\n\n h2 {\n color: #055082;\n font-size: 16px;\n margin: 5px 0 5px 0;\n\n a {\n text-decoration: none;\n }\n }\n\n p {\n margin: 0px;\n line-height: 18px;\n }\n }\n"]);return j=function(){return e},e}function I(){var e=C(["\n color: white;\n padding: 15px;\n margin-bottom: -15px;\n\n a {\n color: #7dedff;\n text-decoration: none;\n }\n\n p {\n font-size: 15px;\n }\n"]);return I=function(){return e},e}function C(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var D=S.a.div(I()),M=Object(S.a)(a.a)(j()),U=S.a.img(A()),B=S.a.div(P()),L=S.a.ul(T());function N(e){return function(e){if(Array.isArray(e))return H(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||z(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t,n,r,a,o,c){try{var i=e[o](c),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,a)}function G(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function c(e){F(o,r,a,c,i,"next",e)}function i(e){F(o,r,a,c,i,"throw",e)}c(void 0)}))}}function q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw o}}return n}(e,t)||z(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){if(e){if("string"==typeof e)return H(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(e,t):void 0}}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Y=wp.element,W=Y.useState,V=Y.useEffect,$="".concat(s,"/meow-common/v1"),J=function(e){var t=e.request,n=e.title,r=e.max,o=q(W(!1),2),c=o[0],i=o[1],l=q(W([]),2),u=l[0],s=l[1],m=u.length>0?u.reduce((function(e,t){return e+t})):0,f=u.length>0?Math.ceil(m/u.length):0,d=!u.length&&c;V((function(){c&&setTimeout(G(regeneratorRuntime.mark((function e(){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(new Date).getTime(),e.next=3,Object(a.G)("".concat($,"/").concat(t));case 3:r=(new Date).getTime(),o=r-n,s((function(e){return[].concat(N(e),[o])}));case 6:case"end":return e.stop()}}),e)}))),1e3)}),[u]);return React.createElement(D,{style:{width:200,textAlign:"center"}},React.createElement(a.B,{h2:!0,style:{color:"white"}},n),React.createElement(a.h,{size:200,value:d?r:f,max:r},React.createElement("span",{style:{fontSize:20}},d?"START":f+" ms"),React.createElement("span",{style:{fontSize:12}},d?"YOUR ENGINE":u.length+" requests")),React.createElement(a.c,{style:{width:"100%",marginTop:10},color:c?"#cc3627":"#ccb027",onClick:function(){c||s([]),i(!c)}},c?"Stop":"Start"))};function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){X(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function X(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(e,t,n,r,a,o,c){try{var i=e[o](c),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,a)}function ee(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function c(e){Z(o,r,a,c,i,"next",e)}function i(e){Z(o,r,a,c,i,"throw",e)}c(void 0)}))}}function te(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ne(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var re=wp.element,ae=re.useState,oe=re.useEffect;m&&s&&f||console.error("[@common/dashboard] apiUrl, restUrl and pluginUrl are mandatory.");var ce="".concat(s,"/meow-common/v1"),ie=React.createElement(D,null,React.createElement(a.B,{p:!0},"Meow Apps is run by Jordy Meow, a photographer and software developer living in Japan (and taking ",React.createElement("a",{target:"_blank",href:"https://offbeatjapan.org"},"a lot of photos"),"). Meow Apps proposes a suite of plugins focusing on photography, imaging, optimization and SEO. The ultimate goal is to make your website better, faster, while making it easy. Meow Apps also teams up with the best players in the community. For more information, please check ",React.createElement("a",{href:"http://meowapps.com",target:"_blank"},"Meow Apps"),".")),le=React.createElement(D,null,React.createElement(a.B,{p:!0},"The ",React.createElement("b",null,"Empty Request Time")," helps you analyzing the raw performance of your install by giving you the average time it takes to run an empty request to your server. You can try to disable some plugins (or change their options) then Start this again to see how it influences the results. An excellent install would have an Empty Request Time of less than 500 ms. Keep it absolutely under 2,000 ms! For more information, ",React.createElement("a",{href:"https://meowapps.com/clean-optimize-wordpress/#Optimize_your_Empty_Request_Time",target:"_blank"},"click here"),"."),React.createElement(a.B,{p:!0},React.createElement("b",null,"File Operation Time")," creates a temporary size of 10MB every time. ",React.createElement("b",null,"SQL Request Time")," counts the number of posts. Those two should be very fast, and almost the same as the ",React.createElement("b",null,"Empty Request Time"),".")),ue=React.createElement(D,null,React.createElement(a.B,{p:!0},"Too many WordPress installs are blown-up with useless and/or heavy plugins, and not aware of best practices. That's not the fault of the users; WordPress pretends to be simple but it is in fact very complex, and the immensity and diversity of the community around it makes it a real jungle where everything is possible."),React.createElement(a.B,{p:!0},"A rule of thumb is to keep your WordPress install as simple as possible, with the least number of plugins installed (run away from the heavy ones) and an excellent hosting service. Avoid VPS or self-hosted solutions; you must be a professional to actually set them up so that they are actually performant."),React.createElement(a.B,{p:!0},"On the Meow Apps website, you will find articles which are always updated with the latest recommendations.",React.createElement("ul",null,React.createElement("li",null,"☘️ ",React.createElement("a",{href:"https://meowapps.com/how-to-debug-wordpress-errors/",target:"_blank"},"How To Debug WordPress")),React.createElement("li",null,"☘️ ",React.createElement("a",{href:"https://meowapps.com/tutorial-improve-seo-wordpress/",target:"_blank"},"SEO Checklist & Optimization")),React.createElement("li",null,"☘️ ",React.createElement("a",{href:"https://meowapps.com/tutorial-faster-wordpress-optimize/",target:"_blank"},"Optimize your WordPress Speed")),React.createElement("li",null,"☘️ ",React.createElement("a",{href:"https://meowapps.com/tutorial-optimize-images-wordpress/",target:"_blank"},"Optimize Images (CDN, and so on)")),React.createElement("li",null,"☘️ ",React.createElement("a",{href:"https://meowapps.com/tutorial-hosting-service-wordpress/",target:"_blank"},"Best Hosting Services for WordPress"))))),se=function(){var e=te(ae(!1),2),t=e[0],n=e[1],o=Object(r.b)("".concat(ce,"/all_settings/"),a.F),c=o.data,i=o.mutate,l=o.error,u=null==c?void 0:c.data,s=null==u?void 0:u.meowapps_hide_meowapps,m=null==u?void 0:u.force_sslverify,d=te(ae(!1),2),p=d[0],y=d[1],g=te(ae([]),2),v=g[0],b=g[1],E=te(ae(""),2),R=E[0],w=E[1];oe((function(){l&&!t&&(n(!0),console.error("Error from UseSWR",l.message))}),[l]),oe((function(){var e=document.getElementById("meow-common-phpinfo");w(e.innerHTML)}),[]);var _=function(){var e=ee(regeneratorRuntime.mark((function e(t,n){var r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=K({},c.data))[n]=t,i(K(K({},c),{},{data:r}),!1),y(!0),e.next=6,Object(a.G)("".concat(ce,"/update_option"),{json:{name:n,value:t},nonce:h});case 6:o=e.sent,y(!1),o.success||alert(o.message),i();case 10:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),k=function(){var e=ee(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return y(!0),e.next=3,Object(a.G)("".concat(ce,"/error_logs"),{nonce:h});case 3:t=e.sent,n=t&&t.data?t.data:[],b(n.reverse()),y(!1);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),O=React.createElement(a.v,{title:"Main Menu"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"meowapps_hide_meowapps",label:"Hide (Not Recommended)",description:React.createElement(a.B,{p:!0},"This will hide the Meow Apps Menu (on the left side) and everything it contains. You can re-enable it through though an option that will be added in Settings → General."),value:"1",disabled:p,checked:s,onChange:_}))),x=React.createElement(a.v,{title:"SSL Verify"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"force_sslverify",label:"Force (Not Recommended)",description:React.createElement(a.B,{p:!0},"This will enforce the usage of SSL when checking the license or updating the plugin."),value:"1",disabled:p,checked:m,onChange:_})));return React.createElement(a.q,{showRestError:t},React.createElement(a.i,{title:"The Dashboard"}),React.createElement(a.C,null,React.createElement(a.f,{full:!0},React.createElement(a.y,null,React.createElement(a.w,{title:"Meow Apps"},ie,React.createElement(a.C,null,React.createElement(a.f,{minimal:!0},React.createElement(M,{title:"Media Cleaner",className:"primary"},React.createElement(U,{src:"".concat(f,"/common/img/media-cleaner.jpg")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/media-cleaner/"},"Media Cleaner")),React.createElement("p",null,"The Cleaner analyzes your WordPress entirely to find out which files are not used. You can trash them, before deleting them permanently. Your WordPress will breath again :)"))),React.createElement(M,{title:"Media File Renamer",className:"primary"},React.createElement(U,{src:"".concat(f,"/common/img/media-file-renamer.jpg")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/media-file-renamer/"},"Media File Renamer")),React.createElement("p",null,"The Renamer will help you in getting nicer filenames for an improved SEO and a tidier filesystem. It's mostly automatic and very fun to use."))),React.createElement(M,{title:"Contact Form Block",className:"primary"},React.createElement(U,{src:"".concat(f,"/common/img/default.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/contact-form-block/"},"Contact Form Block")),React.createElement("p",null,"A simple, pretty and superlight contact form. If you simply want your visitors to get in touch with you, this contact form will be perfect for you and your WordPress."))),React.createElement(M,{title:"Meow Analytics",className:"primary"},React.createElement(U,{src:"".concat(f,"/common/img/default.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/meow-analytics/"},"Meow Analytics")),React.createElement("p",null,"Are you tired of those heavy plugins, accessing your Google Analytics deliberately? Switch to Meow Analytics!")))),React.createElement(a.f,{minimal:!0},React.createElement(M,{title:"Meow Gallery",className:"primary"},React.createElement(U,{src:"".concat(f,"/common/img/meow-gallery.jpg")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/meow-gallery/"},"Meow Gallery")),React.createElement("p",null,"This is the fastest gallery system... and it is pretty as well! It is 100% compatible with the native WordPress galleries and therefore, works right away."))),React.createElement(M,{title:"Meow Lightbox",className:"primary"},React.createElement(U,{src:"".concat(f,"/common/img/meow-lightbox.jpg")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/meow-lightbox/"},"Meow Lightbox")),React.createElement("p",null,"A very sleek and performant Lightbox which will also display your EXIF data (camera, lens, aperture...). Photographers love it."))),React.createElement(M,{title:"Photo Engine",className:"primary"},React.createElement(U,{src:"".concat(f,"/common/img/wplr-sync.jpg")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/wplr-sync/"},"Photo Engine")),React.createElement("p",null,"Are you using Lightroom? So you know Photo Engine already. Wait, you don't? You must try it! This plugin will be your favorite very soon."))),React.createElement(M,{title:"Perfect Images + Retina",className:"primary"},React.createElement(U,{src:"".concat(f,"/common/img/wp-retina-2x.jpg")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/wp-retina-2x/"},"Perfect Images + Retina")),React.createElement("p",null,"It handles Retina, help you managing the Image Sizes registered in your WP, and much more.")))))),React.createElement(a.w,{title:"Performance"},le,React.createElement("div",{style:{display:"flex",justifyContent:"space-around",marginBottom:25}},React.createElement(J,{title:"Empty Request Time",request:"empty_request",max:2500}),React.createElement(J,{title:"File Operation Time",request:"file_operation",max:2600}),React.createElement(J,{title:"SQL Request Time",request:"sql_request",max:2800}))),React.createElement(a.w,{title:"Recommendations"},ue),React.createElement(a.w,{title:"PHP Info"},React.createElement(B,{dangerouslySetInnerHTML:{__html:R}})),React.createElement(a.w,{title:"PHP Error Logs"},React.createElement(D,null,React.createElement(a.c,{style:{marginBottom:10},color:"#ccb027",onClick:k},"Load PHP Error Logs"),React.createElement(L,null,v.map((function(e){return React.createElement("li",{class:"log-".concat(e.type)},React.createElement("span",{class:"log-type"},e.type),React.createElement("span",{class:"log-date"},e.date),React.createElement("span",{class:"log-content"},e.content))}))))),React.createElement(a.w,{title:"Settings"},React.createElement(a.a,{title:"Settings",className:"primary"},O,x))))))};function me(e,t,n,r,a,o,c){try{var i=e[o](c),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,a)}function fe(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function c(e){me(o,r,a,c,i,"next",e)}function i(e){me(o,r,a,c,i,"throw",e)}c(void 0)}))}}function de(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return pe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var he=wp.element,ye=he.useState,ge=he.useEffect,ve="".concat(s,"/meow-licenser/").concat(l,"/v1"),be=function(){var e=de(ye(!1),2),t=e[0],n=e[1],r=de(ye(null),2),o=r[0],c=r[1],i=de(ye(null),2),l=i[0],u=i[1],s=de(ye(""),2),m=s[0],f=s[1],y=p&&(!l||"valid"!==l.license),g=function(){var e=fe(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d){e.next=2;break}return e.abrupt("return");case 2:return n(!0),e.next=5,Object(a.G)("".concat(ve,"/get_license"),{nonce:h});case 5:t=e.sent,u(t.data),t.data.key&&f(t.data.key),n(!1);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),v=function(){var e=fe(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n(!0),e.next=3,Object(a.G)("".concat(ve,"/set_license"),{nonce:h,json:{serialKey:null}});case 3:e.sent.success&&(f(""),u(null),c("licenseRemoved")),n(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),b=function(){var e=fe(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n(!0),e.next=3,Object(a.G)("".concat(ve,"/set_license"),{nonce:h,json:{serialKey:m}});case 3:(t=e.sent).success&&(u(t.data),t.data&&!t.data.issue&&c("licenseAdded")),n(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();ge((function(){g()}),[]);var E=y?"Forced License":p?"Enabled":"Disabled",R=l&&"valid"===l.license,w="Your license is active. Thanks a lot for your support :)";R||(l?"no_activations_left"===l.issue?w=React.createElement("span",null,"There are no activations left for this license. You can visit your account at the ",React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://store.meowapps.com"},"Meow Apps Store"),", unregister a site, and click on ",React.createElement("i",null,"Retry to validate"),"."):"expired"===l.issue?w=React.createElement("span",null,"Your license has expired. You can get another license or renew the current one by visiting your account at the ",React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://store.meowapps.com"},"Meow Apps Store"),"."):"missing"===l.issue?w="This license does not exist.":"disabled"===l.issue?w="This license has been disabled.":"item_name_mismatch"===l.issue?w="This license seems to be for a different plugin... isn't it? :)":(w=React.createElement("span",null,"There is an unknown error related to the system or this serial key. Really sorry about this! Make sure your security plugins and systems are off temporarily. If you are still experiencing an issue, please ",React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://meowapps.com/contact/"},"contact us"),"."),console.error({license:l})):w="Unknown error :(");var _=React.createElement(a.a,{title:"Pro Version (Not Installed)",className:"primary"},"You will find more information about the Pro Version ",React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://store.meowapps.com"},"here"),". If you actually bought the Pro Version already, please remove the current plugin and download the Pro Version from your account at the ",React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://store.meowapps.com/"},"Meow Apps Store"),"."),k=React.createElement(a.a,{title:"Pro Version (".concat(E,")"),busy:t,className:"primary"},React.createElement(a.v,{title:"Serial Key",style:{fontWeight:"bold"}},React.createElement(a.k,{id:"mfrh_pro_serial",name:"mfrh_pro_serial",disabled:t,value:m,onChange:function(e){return f(e)},placeholder:""})),l&&!R&&React.createElement(a.m,null,w),l&&R&&React.createElement(a.n,null,w),!l&&React.createElement(a.B,{p:!0},"Insert your serial key above. If you don't have one yet, you can get one ",React.createElement("a",{href:"https://store.meowapps.com"},"here"),". If there was an error during the validation, try the ",React.createElement("i",null,"Retry")," to ",React.createElement("i",null,"validate")," button."),React.createElement(a.v,{contentAlign:"right"},l&&!R&&React.createElement(a.c,{className:"secondary",disabled:t||!m,onClick:b},"Retry to validate"),l&&l.key===m&&React.createElement(a.c,{className:"secondary",disabled:t||!m,onClick:v},"Remove License"),React.createElement(a.c,{disabled:t||!m||l&&l.key===m,onClick:b},"Validate License")),React.createElement(a.o,{isOpen:"licenseAdded"===o,title:"Thank you :)",content:"The Pro features have been enabled. This page should be now reloaded.",ok:"Reload",onOkClick:function(){return location.reload()}}),React.createElement(a.o,{isOpen:"licenseRemoved"===o,title:"Goodbye :(",content:"The Pro features have been disabled. This page should be now reloaded.",ok:"Reload",onOkClick:function(){return location.reload()}}));return d?k:_},Ee=wp.element.render;function Re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(n),!0).forEach((function(t){_e(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ke(e,t,n,r,a,o,c){try{var i=e[o](c),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,a)}function Oe(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function c(e){ke(o,r,a,c,i,"next",e)}function i(e){ke(o,r,a,c,i,"throw",e)}c(void 0)}))}}function xe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Se(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Se(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}document.meowDashboardLoaded||(document.meowDashboardLoaded=!0,document.addEventListener("DOMContentLoaded",(function(e){var t=document.getElementById("meow-common-dashboard");t&&Ee(React.createElement(se,null),t)})));var Te=wp.element,Pe=Te.useState,Ae=Te.useMemo,je={marginTop:10,background:"rgb(0, 72, 88)",padding:10,color:"rgb(58, 212, 58)",maxHeight:600,minHeight:200,display:"block",fontFamily:"monospace",fontSize:12,whiteSpace:"pre",overflowX:"auto",width:"calc(100vw - 276px)"},Ie=function(){var e,t,n=Object(r.b)("".concat(m,"/all_settings/")),o=n.data,c=n.mutate,i=Object(a.H)(o,{},!0),s=i.busy,f=i.data,y=i.error,g=xe(Pe(""),2),v=g[0],b=g[1],E=xe(Pe(!1),2),R=E[0],w=E[1],_=s||R,k=null==f?void 0:f.mfrh_auto_rename,O=null==f?void 0:f.mfrh_on_upload,x=null==f?void 0:f.mfrh_rename_slug,S=null==f?void 0:f.mfrh_convert_to_ascii,T=null==f?void 0:f.mfrh_update_posts,P=null==f?void 0:f.mfrh_update_postmeta,A=null==f?void 0:f.mfrh_undo,j=null==f?void 0:f.mfrh_move,I=null==f?void 0:f.mfrh_manual_rename,C=null==f?void 0:f.mfrh_numbered_files,D=null==f?void 0:f.mfrh_sync_alt,M=null==f?void 0:f.mfrh_sync_media_title,U=null==f?void 0:f.mfrh_force_rename,B=null==f?void 0:f.mfrh_log,L=null==f?void 0:f.mfrh_logsql,N=null==f?void 0:f.mfrh_rename_guid,F=null==f?void 0:f.mfrh_case_insensitive_check,G=null==f?void 0:f.mfrh_rename_on_save,q=null!==(e=null==f?void 0:f.mfrh_acf_field_name)&&void 0!==e?e:null,z=null!==(t=null==f?void 0:f.mfrh_images_only)&&void 0!==t&&t,H=[{id:"media_title",value:"media_title",label:React.createElement("span",null,"Based on Media Title"),requirePro:!1},{id:"post_acf_field",value:"post_acf_field",label:React.createElement("span",null,"Based on Attached Post (ACF Field)"),requirePro:!1},{id:"post_title",value:"post_title",label:React.createElement("span",null,"Based on Attached Post Title"),requirePro:!p},{id:"alt_text",value:"alt_text",label:React.createElement("span",null,"Based on Alternative Text"),requirePro:!p},{id:"anonymize_md5",value:"anonymize_md5",label:React.createElement("span",null,"Anonymize with MD5"),requirePro:!p},{id:"none",value:"none",label:React.createElement("span",null,"Disable Automatic Rename"),requirePro:!1}],Y=function(){var e=Oe(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=we({},o.data))[n]=t,c(we(we({},o),{},{data:r}),!1),w(!0),e.prev=4,e.next=7,Object(a.G)("".concat(m,"/update_option"),{nonce:h,json:{name:n,value:t}});case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(4),alert(e.t0.message);case 12:return e.prev=12,w(!1),c(),e.finish(12);case 16:case"end":return e.stop()}}),e,null,[[4,9,12,16]])})));return function(t,n){return e.apply(this,arguments)}}(),W=function(){var e=Oe(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w(!0),e.next=3,Object(a.G)("".concat(m,"/refresh_logs"));case 3:(t=e.sent).success&&b(t.data),w(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),V=function(){var e=Oe(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w(!0),e.next=3,Object(a.G)("".concat(m,"/clear_logs"));case 3:(t=e.sent).success&&b(t.data),w(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),$=React.createElement(a.a,{busy:_,title:"Side Updates",className:"primary"},React.createElement(a.B,{p:!0,style:{marginTop:0}},"When the files are renamed, many links to them on your WordPress might be broken. Those options are updating the references to those files. ",React.createElement("strong",null,"Give it a try, every install is different and it might not work for certain kind of references.")),React.createElement(a.v,{title:"Posts"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_update_posts",disabled:_,label:"Enable",description:React.createElement(a.B,{p:!0},"Update the references to the renamed files in the ",React.createElement("strong",null,"content")," content and ",React.createElement("strong",null,"excerpt")," of the posts (pages and custom types included)."),value:"1",checked:T,onChange:Y}))),React.createElement(a.v,{title:"Post Meta"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_update_postmeta",disabled:_,label:"Enable",description:React.createElement(a.B,{p:!0},"Update the references in the ",React.createElement("strong",null,"custom fields")," of the posts (including pages and custom types metadata)."),value:"1",checked:P,onChange:Y})))),J=React.createElement(a.v,{title:"Method"},React.createElement(a.u,{id:"mfrh_auto_rename",disabled:_,value:k,scrolldown:!0,name:"mfrh_auto_rename",description:"Attached Post includes all kinds of Post Types: Posts, Pages, Products, etc.",onChange:Y},H.map((function(e){return React.createElement(a.p,{key:e.id,id:e.id,value:e.value,label:e.label,requirePro:e.requirePro})})))),Q=Ae((function(){return"post_acf_field"!==k?null:React.createElement(a.v,{title:"ACF Field Name"},React.createElement(a.k,{id:"mfrh_acf_field_name",name:"mfrh_acf_field_name",value:q,onBlur:Y}))}),[k]),K=React.createElement(a.v,{title:"Images Only"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_images_only",label:"Enable",description:"Restricts the renaming to images (JPG and PNG). Nothing else will be renamed.",value:"1",checked:z,onChange:Y}))),X=React.createElement(a.v,{title:"On Upload"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_on_upload",disabled:_,label:"Enable",description:React.createElement(React.Fragment,null,React.createElement("span",null,"If your image has an EXIF title, it will be used to decide the filename. "),"post_title"===k&&React.createElement("span",null,"Note: The Attached Post Title ",React.createElement("u",null,"will not be used")," at the time of the upload due to WordPress API constraints.")),value:"1",checked:O,onChange:Y}))),Z=React.createElement(a.v,{title:"Slug/Permalink"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_rename_slug",disabled:_,label:"Sync with filename",description:"Better to keep this un-checked as the link might have been referenced somewhere else.",value:"1",checked:x,onChange:Y}))),ee=React.createElement(a.v,{title:"Transliteration"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_convert_to_ascii",disabled:_,label:"Enable (Recommended)",description:React.createElement(a.B,{p:!0},"Replace accents, emoticons, diacritics, umlauts, cyrillic and any kind of tricky characters by their ASCII equivalent.",React.createElement("br",null)," ",React.createElement("i",null,"Examples: tête → tete, schön → schon, Добро → dobro, etc.")),value:"1",requirePro:!p,checked:S,onChange:Y}))),te=React.createElement(a.v,{title:"Undo"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_undo",disabled:_,label:"Enable",description:"An undo icon will be added to the UI. This allows to rollback to the original filename.",value:"1",checked:A,onChange:Y}))),ne=React.createElement(a.v,{title:"Move"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_move",disabled:_,label:"Enable",description:"A move button will be added, and will allow you to move a file to another directory.",value:"1",checked:j,onChange:Y,requirePro:!p}))),re=React.createElement(a.v,{title:"Rename Field"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_manual_rename",disabled:_,label:"Enable",description:"An editable field will be added everywhere your files appear in the UI.",value:"1",checked:I,onChange:Y}))),ae=React.createElement(a.v,{title:"Force Rename"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_force_rename",disabled:_,label:"Enable",description:"Update the references to the file even if the file renaming itself was not successful. You might want to use that option if your install is broken and you are trying to link your Media to files for which the filenames has been altered (after a migration for exemple)",value:"1",requirePro:!p,checked:U,onChange:Y}))),oe=React.createElement(a.v,{title:"Numbered Files"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_numbered_files",disabled:_,label:"Enable Numbering",description:"Identical filenames will be allowed by the plugin and a number will be appended automatically (myfile.jpg, myfile-2.jpg, myfile-3.jpg, etc).",requirePro:!p,value:"1",checked:C,onChange:Y}))),ce=React.createElement(a.v,{title:"ALT Text"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_sync_alt",disabled:_||"alt_text"==k,label:React.createElement(a.B,null,"Synchronize"),description:"The ALT Text will be synchronized with the same source used for the filename.",requirePro:!p,value:"1",checked:D,onChange:Y}))),ie=React.createElement(a.v,{title:"Media Title"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_sync_media_title",disabled:_||"media_title"===k,label:React.createElement(a.B,null,"Synchronize"),description:"The Media Title will be synchronized with the same source used for the filename.",requirePro:!p,value:"1",checked:M,onChange:Y}))),le=React.createElement(a.v,{title:"Logs"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_log",label:"Enable",description:React.createElement(a.B,{p:!0},"Simple logging that explains which actions has been run."),value:"1",checked:B,onChange:Y}),React.createElement("div",{style:{marginTop:20}},React.createElement(a.c,{onClick:W},"Refresh Logs"),React.createElement(a.c,{className:"danger",onClick:V},"Clear Logs")))),ue=React.createElement(a.v,{title:"SQL Logs"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_logsql",disabled:_,label:"Enable",description:React.createElement(a.B,{p:!0},"The files mfrh_sql.log and mfrh_sql_revert.log will be created in the /logs directory and will include the raw SQL queries which were run by the plugin. If there is an issue, the revert SQL file can help you."),requirePro:!p,value:"1",checked:L,onChange:Y}))),se=React.createElement(a.v,{title:"GUID"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_rename_guid",disabled:_,label:"Sync with filename",description:"The GUID will be renamed like the new filename. Better to keep this un-checked.",value:"1",checked:N,onChange:Y}))),me=React.createElement(a.v,{title:"Case Insensitive"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_case_insensitive_check",label:"Enable",value:"1",checked:F,onChange:Y,description:React.createElement(React.Fragment,null,'This will consider the file such as "abc.jpg" and "ABC.JPG" as the same file. More information ',React.createElement("a",{target:"_blank",href:"https://meowapps.com/media-file-renamer-faq-issues/"},"here"),". You should check this if you are on a Windows-based server.")}))),fe=React.createElement(a.v,{title:"Rename on Post Save"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_rename_on_save",disabled:_,label:"Enable (Unsafe)",description:"You can modify the titles of your media while editing a post but, of course, the plugin can't update the HTML at this stage. With this option, the plugin will update the filenames and HTML after that you saved the post.",value:"1",checked:G,onChange:Y})));return React.createElement(a.q,{nekoErrors:[y]},React.createElement(a.i,{title:"Media File Renamer | Settings",subtitle:"By Jordy Meow"},React.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},React.createElement(a.c,{className:"header",onClick:function(){return window.open("https://meowapps.com/media-file-renamer-tutorial/","_blank")}},"Tutorial"),React.createElement(a.c,{className:"header",icon:"dashboard",onClick:function(){return location.href="upload.php?page=mfrh_dashboard"}},"Dashboard"))),React.createElement(a.C,null,React.createElement(a.f,{full:!0},React.createElement(a.g,null,React.createElement(a.B,{p:!0},"It works out of the box, the default settings are good for most installs. However, you should really have a look at the ",React.createElement("a",{href:"https://meowapps.com/plugin/media-file-renamer/"},"tutorial"),". If you are a SEO guru or someone who loves having a perfectly neat filesystem, it is recommended to use automatic renaming first, then to tweak specific files with manual renaming. The ",React.createElement("a",{href:"/wp-admin/upload.php?page=mfrh_dashboard"},"Renamer Dashboard")," makes it very easy.")),React.createElement(a.y,null,React.createElement(a.w,{title:"Basic"},React.createElement(a.C,null,React.createElement(a.f,{minimal:!0},React.createElement(a.a,{busy:_,title:"Settings",className:"primary"},React.createElement(a.B,{h2:!0},"Automatic"),React.createElement(a.B,{p:!0},"This plugin's main goal is to make the process of optimizing your filenames entirely automatic. By default, your files will be named after the title of your media entry."),J,Q,React.createElement(a.B,{h2:!0},"Manual"),re,React.createElement(a.B,{h2:!0},"Extra Options"),X,K)),React.createElement(a.f,{minimal:!0},$,React.createElement(a.a,{busy:_,title:"UI (Extra Features)",className:"primary"},te,ne)))),React.createElement(a.w,{title:"Advanced"},React.createElement(a.C,null,React.createElement(a.f,{minimal:!0},React.createElement(a.a,{busy:_,title:"Advanced Settings",className:"primary"},ee,oe),React.createElement(a.a,{busy:_,title:"Fields Syncing",className:"primary"},Z,se,ce,ie,React.createElement(a.B,{p:!0},"The fields in the database will be synchronized, but the data already written in your HTML will not be overwritten."))),React.createElement(a.f,{minimal:!0},React.createElement(a.a,{busy:_,title:"Developer Settings",className:"primary"},me,ae,ue,fe)))),React.createElement(a.w,{title:"License (Pro)"},React.createElement(be,{domain:u,prefix:l,isPro:d,isRegistered:p})),React.createElement(a.w,{title:"Logs & Debug"},React.createElement(a.a,{busy:_,className:"primary"},le),React.createElement("div",{style:je},v))))))},Ce=n(0);function De(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Me(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(n),!0).forEach((function(t){Le(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ne(e,t,n,r,a,o,c){try{var i=e[o](c),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,a)}function Fe(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function c(e){Ne(o,r,a,c,i,"next",e)}function i(e){Ne(o,r,a,c,i,"throw",e)}c(void 0)}))}}var Ge,qe,ze,He={pending:"-",renamed:"-",locked:"-",all:"-"},Ye={accessor:"id",by:"asc"},We=0,Ve={filterBy:"pending",sort:Ye,page:1,limit:10,search:"",busy:!1,stats:He,apiErrors:null,status:"",entries:[],selectedItems:[],total:0,autoRename:!1,onUpload:!1,renameSlug:!1,convertToAscii:!1,updatePosts:!0,updatePostmeta:!0,undo:!1,move:!1,manualRename:!1,numberedFiles:!1,syncAlt:!1,syncMedia_title:!1,forceRename:!1,log:!1,logsql:!1,renameGuid:!1,caseInsensitiveCheck:!1,renameOnSave:!1,acfFieldName:null,imagesOnly:!1,modals:{renameAll:!1,undoAll:!1,editTitle:!1,autoAttach:!1},mutateEntries:(ze=Fe(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return ze.apply(this,arguments)}),mutateStats:(qe=Fe(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return qe.apply(this,arguments)}),mutateSettings:(Ge=Fe(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return Ge.apply(this,arguments)})},$e=function(e,t){switch(t.type){case"ENTRIES_UPDATED":var n=t.entries;return Be(Be({},e),{},{entries:n});case"STATS_UPDATED":var r=t.stats;return Be(Be({},e),{},{stats:r});case"ERROR_UPDATED":var a=t.apiErrors;return Be(Be({},e),{},{apiErrors:a});case"PAGE_UPDATED":var o=t.page;return Be(Be({},e),{},{page:o});case"SET_ENTRIES_MUTATE":var c=t.mutateEntries;return Be(Be({},e),{},{mutateEntries:c});case"SET_STATS_MUTATE":var i=t.mutateStats;return Be(Be({},e),{},{mutateStats:i});case"SET_SETTINGS_MUTATE":var l=t.mutateSettings;return Be(Be({},e),{},{mutateSettings:l});case"LIMIT_UPDATED":var u=t.limit;return Be(Be({},e),{},{limit:u});case"FILTER_UPDATED":var s=t.filter;return Be(Be({},e),{},{filterBy:s});case"SORT_UPDATED":var m=t.sort,f=void 0===m?Ye:m;return Be(Be({},e),{},{sort:f});case"SEARCH_UPDATED":var d=t.search;return Be(Be({},e),{},{search:d});case"TOTAL_UPDATED":var p=t.total;return Be(Be({},e),{},{total:p});case"TOGGLE_MODAL":var h=t.modal,y=t.enable;if(void 0===e.modals[h])return alert("The modal ".concat(h," doesn't exist.")),console.error("The modal ".concat(h," doesn't exist.")),e;void 0===y&&(y=!e.modals[h]);var g=Be({},e);return g.modals=Be({},g.modals),g.modals[h]=y,g;case"PUSH_BUSY":var v=t.status,b=void 0===v?"":v;return Be(Be({},e),{},{busy:++We>0,status:b});case"POP_BUSY":var E=t.status,R=void 0===E?"":E;return Be(Be({},e),{},{busy:--We>0,status:R});case"STATUS_UPDATED":var w=t.status,_=void 0===w?"":w;return Be(Be({},e),{},{status:_});case"SETTINGS_UPDATED":var k,O,x,S,T,P,A,j,I,C,D,M,U,B,L,N,F,G,q,z=t.settings,H=null!==(k=z.mfrh_auto_rename)&&void 0!==k&&k,Y=null!==(O=z.mfrh_on_upload)&&void 0!==O&&O,W=null!==(x=z.mfrh_rename_slug)&&void 0!==x&&x,V=null!==(S=z.mfrh_convert_to_ascii)&&void 0!==S&&S,$=null===(T=z.mfrh_update_posts)||void 0===T||T,J=null===(P=z.mfrh_update_postmeta)||void 0===P||P,Q=null!==(A=z.mfrh_undo)&&void 0!==A&&A,K=null!==(j=z.mfrh_move)&&void 0!==j&&j,X=null!==(I=z.mfrh_manual_rename)&&void 0!==I&&I,Z=null!==(C=z.mfrh_numbered_files)&&void 0!==C&&C,ee=null!==(D=z.mfrh_sync_alt)&&void 0!==D&&D,te=null!==(M=z.mfrh_sync_media_title)&&void 0!==M&&M,ne=null!==(U=z.mfrh_force_rename)&&void 0!==U&&U,re=null!==(B=z.mfrh_log)&&void 0!==B&&B,ae=null!==(L=z.mfrh_logsql)&&void 0!==L&&L,oe=null!==(N=z.mfrh_rename_guid)&&void 0!==N&&N,ce=null!==(F=z.mfrh_case_insensitive_check)&&void 0!==F&&F,ie=null!==(G=z.mfrh_rename_on_save)&&void 0!==G&&G,le=z.mfrh_acf_field_name,ue=null!==(q=z.mfrh_images_only)&&void 0!==q&&q,se=z.mfrh_posts_per_page?parseInt(z.mfrh_posts_per_page):10;return Be(Be({},e),{},{autoRename:H,onUpload:Y,renameSlug:W,convertToAscii:V,updatePosts:$,updatePostmeta:J,undo:Q,move:K,manualRename:X,numberedFiles:Z,syncAlt:ee,syncMedia_title:te,forceRename:ne,log:re,logsql:ae,renameGuid:oe,caseInsensitiveCheck:ce,renameOnSave:ie,acfFieldName:le,imagesOnly:ue,limit:se});case"ITEMS_SELECTED":var me=t.selectedItems;return Be(Be({},e),{},{selectedItems:me});default:return e}},Je=Object(Ce.createContext)(),Qe=function(e){var t=e.children,n=De(Object(Ce.useReducer)($e,Ve),2),o=n[0],c=n[1],i=o.filterBy,l=o.sort,u=o.search,s=o.page,f=o.limit,d=Object(r.b)(Object(a.D)("".concat(m,"/media"),{limit:f,skip:(s-1)*f,filterBy:i,orderBy:l.accessor,order:l.by,search:u}),a.F),p=d.data,h=d.mutate;Object(Ce.useEffect)((function(){c({type:"SET_ENTRIES_MUTATE",mutateEntries:h})}),[h]),Object(Ce.useEffect)((function(){c({type:"SET_STATS_MUTATE",mutateStats:_})}),[_]),Object(Ce.useEffect)((function(){c({type:"SET_SETTINGS_MUTATE",mutateSettings:A})}),[A]);var y=Object(a.H)(p,[],!0),g=y.busy,v=y.data,b=y.total,E=y.error;Object(Ce.useEffect)((function(){c({type:g?"PUSH_BUSY":"POP_BUSY"})}),[g]),Object(Ce.useEffect)((function(){c({type:"ENTRIES_UPDATED",entries:v})}),[v]),Object(Ce.useEffect)((function(){c({type:"TOTAL_UPDATED",total:b})}),[b]),Object(Ce.useEffect)((function(){c({type:"ERROR_UPDATED",apiError:E})}),[E]);var R=Object(r.b)(Object(a.D)("".concat(m,"/stats"),{search:u}),a.F),w=R.data,_=R.mutate,k=Object(a.H)(w,He,!0),O=k.busy,x=k.data,S=k.error;Object(Ce.useEffect)((function(){c({type:O?"PUSH_BUSY":"POP_BUSY"})}),[O]),Object(Ce.useEffect)((function(){c({type:"STATS_UPDATED",stats:x})}),[x]),Object(Ce.useEffect)((function(){c({type:"ERROR_UPDATED",apiError:S})}),[S]);var T=Object(r.b)("".concat(m,"/all_settings/"),a.F),P=T.data,A=T.mutate,j=Object(a.H)(P,{},!0),I=j.busy,C=j.data,D=j.error;return Object(Ce.useEffect)((function(){c({type:I?"PUSH_BUSY":"POP_BUSY"})}),[I]),Object(Ce.useEffect)((function(){c({type:"SETTINGS_UPDATED",settings:C})}),[C]),Object(Ce.useEffect)((function(){c({type:"ERROR_UPDATED",apiError:D})}),[D]),React.createElement(Je.Provider,{value:[o,c]},t)},Ke=function(){var e={},t=De(Object(Ce.useContext)(Je),2),n=t[0],r=t[1];return e.setSelectedItems=function(e){r({type:"ITEMS_SELECTED",selectedItems:e})},e.setStatus=function(e){r({type:"STATUS_UPDATED",status:e})},e.updateOption=function(){var e=Fe(regeneratorRuntime.mark((function e(t,o){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r({type:"PUSH_BUSY"}),e.prev=1,e.next=4,Object(a.G)("".concat(m,"/update_option"),{json:{name:o,value:t}});case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),alert(e.t0);case 9:r({type:"POP_BUSY"}),n.mutateSettings();case 11:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t,n){return e.apply(this,arguments)}}(),e.updateEntry=function(){var e=Fe(regeneratorRuntime.mark((function e(t,o){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r({type:"STATUS_UPDATED",status:"Updating..."}),r({type:"PUSH_BUSY"}),e.prev=2,e.next=5,Object(a.G)("".concat(m,"/update_media"),{nonce:h,json:Be({id:o},t)});case 5:if(e.sent.success){e.next=8;break}throw new Error("Failed to move the folder/gallery.");case 8:n.mutateEntries(),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(2),alert(e.t0.message);case 14:return e.prev=14,r({type:"POP_BUSY"}),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[2,11,14,17]])})));return function(t,n){return e.apply(this,arguments)}}(),e.setPage=function(e){r({type:"PAGE_UPDATED",page:e})},e.setLimit=function(e){r({type:"LIMIT_UPDATED",limit:e})},e.setFilter=function(e){r({type:"FILTER_UPDATED",filter:e})},e.setSort=function(e){r({type:"SORT_UPDATED",sort:e})},e.setSearch=function(e){r({type:"SEARCH_UPDATED",search:e})},e.toggleModal=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;r({type:"TOGGLE_MODAL",modal:e,enable:t})},e.pushBusy=function(){r({type:"PUSH_BUSY"})},e.popBusy=function(){r({type:"POP_BUSY"})},Be(Be({},n),e)};function Xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(n),!0).forEach((function(t){et(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tt(e){return function(e){if(Array.isArray(e))return ct(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||ot(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nt(e,t,n,r,a,o,c){try{var i=e[o](c),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,a)}function rt(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function c(e){nt(o,r,a,c,i,"next",e)}function i(e){nt(o,r,a,c,i,"throw",e)}c(void 0)}))}}function at(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw o}}return n}(e,t)||ot(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ot(e,t){if(e){if("string"==typeof e)return ct(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ct(e,t):void 0}}function ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var it=wp.element,lt=it.useState,ut=it.useEffect,st=it.useMemo,mt={width:40,height:40,objectFit:"cover"},ft=[{accessor:"thumbnail_url",title:i.THUMB,style:{width:16}},{accessor:"post_title",title:i.TITLE,sortable:!0,style:{width:"25%"}},{accessor:"post_parent",title:i.ATTACHED_TO,sortable:!0,style:{width:"25%"}},{accessor:"current_filename",title:i.FILENAME,sortable:!0}],dt=function(){var e=Ke(),t=e.apiErrors,n=e.busy,r=e.selectedItems,o=e.entries,c=e.stats,l=e.total,u=e.filterBy,s=e.search,f=e.status,d=e.sort,g=e.page,v=e.limit,b=e.modals,E=Ke(),R=E.setSelectedItems,w=E.setSearch,_=E.setStatus,k=E.setSort,O=E.setPage,S=E.setLimit,T=E.setFilter,P=E.mutateEntries,A=E.mutateStats,j=E.toggleModal,I=E.updateOption,C=E.updateEntry,D=at(lt(!1),2),M=D[0],U=D[1],B=at(lt(""),2),L=B[0],N=B[1],F=at(lt(),2),G=F[0],q=F[1],z=Object(a.J)(),H=st((function(){return o.map((function(e){return{id:e.ID,thumbnail_url:React.createElement("img",{src:e.thumbnail_url,style:mt}),post_title:React.createElement("div",{style:{display:"flex",alignItems:"center"}},React.createElement("a",{href:"post.php?post=".concat(e.ID,"&action=edit")},e.post_title),React.createElement(a.j,{icon:"pencil",width:"20",height:"20",color:a.z.blue,style:{marginLeft:"2px",cursor:"pointer"},onClick:function(){q(e),j("editTitle")}})),post_parent:React.createElement("div",{style:{maxHeight:35,overflow:"hidden"}},e.post_parent_title?e.post_parent_title:React.createElement("i",{style:{color:"#c1c1c1"}},"None")),current_filename:React.createElement(x,{entry:e,mutate:function(){P(),A()}})}}))}),[o]);ut((function(){R([]),k(),O(1)}),[u,s]),ut((function(){if(null!==z.busy&&(U(z.busy),!z.busy)){var e=z.getErrorCount();e>0&&N("The process has finished, but ".concat(e," error(s) occurred (check your console).")),z.reset(),R([]),P(),A()}}),[z.busy]);var Y=function(){var e=rt(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(a.G)("".concat(m,"/get_all_ids"),{nonce:h,json:{unlockedOnly:t}});case 2:if((n=e.sent).success){e.next=6;break}return alert(n.message),e.abrupt("return",[]);case 6:return e.abrupt("return",n.data);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),W=function(){var e=rt(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(a.G)("".concat(m,"/get_all_post_ids"),{nonce:h});case 2:if((t=e.sent).success){e.next=6;break}return alert(t.message),e.abrupt("return",[]);case 6:return e.abrupt("return",t.data);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),V=function(){var e=rt(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _("Preparing..."),U(!0),e.next=4,W();case 4:if(!(t=e.sent)){e.next=11;break}return _("Auto attaching..."),n=Object(a.E)(t,20),r=n.map((function(e){return function(){var t=rt(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(a.G)("".concat(m,"/auto_attach"),{nonce:h,json:{postIds:e},signal:n});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})),z.start(r),e.abrupt("return");case 11:U(!1);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),$=function(){var e=rt(regeneratorRuntime.mark((function e(){var t,n,r,o=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=o.length>0&&void 0!==o[0]?o[0]:null,_("Preparing..."),U(!0),!t){e.next=7;break}e.t0=t,e.next=10;break;case 7:return e.next=9,Y(!0);case 9:e.t0=e.sent;case 10:if(!(n=e.t0)){e.next=16;break}return _("Undoing..."),r=n.map((function(e){return function(){var t=rt(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return _("Undo Media ".concat(e)),t.next=3,Object(a.G)("".concat(m,"/undo"),{nonce:h,json:{mediaId:e},signal:n});case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})),z.start(r),e.abrupt("return");case 16:U(!1);case 17:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),J=function(){var e=rt(regeneratorRuntime.mark((function e(){var t,n,r,o,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=c.length>0&&void 0!==c[0]?c[0]:null,_("Preparing..."),U(!0),!t){e.next=7;break}e.t0=t,e.next=10;break;case 7:return e.next=9,Y(!0);case 9:e.t0=e.sent;case 10:if(!(n=e.t0)){e.next=17;break}return _("Analyzing..."),r=Object(a.E)(n,20),o=r.map((function(e){return function(){var t=rt(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(a.G)("".concat(m,"/analyze"),{nonce:h,json:{mediaIds:e},signal:n});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})),z.start(o),e.abrupt("return");case 17:U(!1);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Q=function(){var e=rt(regeneratorRuntime.mark((function e(){var t,n,r,o,c,i=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=!(i.length>0&&void 0!==i[0])||i[0],n=i.length>1&&void 0!==i[1]?i[1]:null,_("Preparing..."),U(!0),!n){e.next=8;break}e.t0=n,e.next=11;break;case 8:return e.next=10,Y(t);case 10:e.t0=e.sent;case 11:if(!(r=e.t0)){e.next=18;break}return _("".concat(t?"Locking..":"Unlocking...")),o=Object(a.E)(r,50),c=o.map((function(e){return function(){var e=rt(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(a.G)("".concat(m,"/set_lock"),{nonce:h,json:{mediaIds:r,lock:t},signal:n});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})),z.start(c),e.abrupt("return");case 18:U(!1);case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),K=function(){var e=rt(regeneratorRuntime.mark((function e(){var t,n,r,o=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=o.length>0&&void 0!==o[0]?o[0]:null,_("Preparing..."),U(!0),!t){e.next=7;break}e.t0=t,e.next=10;break;case 7:return e.next=9,Y(!0);case 9:e.t0=e.sent;case 10:if(!(n=e.t0)){e.next=15;break}return r=n.map((function(e){return function(){var t=rt(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return _("Renaming #".concat(e)),t.next=3,Object(a.G)("".concat(m,"/rename"),{nonce:h,json:{mediaId:e},signal:n});case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})),z.start(r),e.abrupt("return");case 15:U(!1);case 16:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),X=function(){var e=rt(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:C({post_title:t.post_title},t.ID);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Z=function(){var e=rt(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:I(t,"mfrh_posts_per_page");case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ee=React.createElement(React.Fragment,null,React.createElement("div",null,"All your posts, pages, products (and other post types) will be scanned, and if images are used in them, they will be attached. Currently, Featured Images and Product Galleries are supported. Should we start?"),!p&&React.createElement("div",{style:{marginTop:20}},React.createElement("b",null,"This feature is only available in the Pro version."))),te=React.createElement(React.Fragment,null,React.createElement(a.c,{className:"secondary",onClick:function(){return window.open("https://meowapps.com/plugin/media-file-renamer/","_blank")}},"Get the Pro Version"),React.createElement(a.c,{className:"primary",onClick:function(){return window.open("https://meowapps.com/media-file-renamer-tutorial/","_blank")}},"Read the tutorial"));return React.createElement(a.q,{nekoErrors:[t]},React.createElement(a.i,{title:"Media File Renamer | Dashboard",subtitle:"By Jordy Meow"},React.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},React.createElement(a.c,{className:"header",onClick:function(){return window.open("https://meowapps.com/media-file-renamer-tutorial/","_blank")}},"Tutorial"),React.createElement(a.c,{icon:"cog",className:"header",onClick:function(){return location.href="admin.php?page=mfrh_settings"}},"Settings"))),React.createElement(a.C,null,React.createElement(a.f,{full:!0},!p&&React.createElement(a.g,{footer:te},React.createElement(a.B,{p:!0},"You must ",React.createElement("b",null,"backup the uploads folder and DB")," before using the Renamer. If you don't know how, give a try to ",React.createElement("a",{target:"_blank",href:"https://meow.click/blogvault"},"BlogVault"),". It is also highly recommanded to read the tutorial. Last but not least, check the ",React.createElement("b",null,"Pro Version"),", as it adds many features and also supports the development. This message is only displayed in the free version. Thank you!")),React.createElement(a.A,null,React.createElement(a.c,{onClick:function(){return J()}},"Analyze Library"),React.createElement(a.c,{onClick:function(){return j("autoAttach")}},"Auto Attach"),"pending"===u&&r.length>0&&React.createElement(React.Fragment,null,React.createElement(a.c,{className:"secondary",onClick:function(){return K(r)}},"Rename ",React.createElement("strong",null,r.length)," entries"),React.createElement(a.c,{className:"secondary",onClick:function(){return Q(!0,r)}},"Lock ",React.createElement("strong",null,r.length)," entries")),y&&"renamed"===u&&r.length>0&&React.createElement(React.Fragment,null,React.createElement(a.c,{className:"secondary",onClick:function(){return $(r)}},"Undo ",React.createElement("strong",null,r.length)," entries")),React.createElement("div",{style:{flex:1}},M&&React.createElement(a.s,{status:function(e){return"".concat(f," (").concat(e,"%)")},busy:M,value:z.value,max:z.max,onStopClick:z.stop})),!(n||M)&&React.createElement(React.Fragment,null,React.createElement(a.k,{onBlur:function(e){w(e)},value:s,onEnter:function(e){w(e)}}),!s&&React.createElement(a.j,{icon:"search",width:24,style:{position:"relative",left:-34,marginRight:-22},color:"#5a5a5a82"}),s&&React.createElement(a.j,{icon:"close",width:24,style:{position:"relative",left:-34,marginRight:-22},color:a.z.blue,onClick:function(){w("")}})),"all"===u&&React.createElement(React.Fragment,null,React.createElement(a.c,{className:"secondary",onClick:function(){return Q(!0)}},"Lock ",React.createElement("strong",null,"All")),React.createElement(a.c,{className:"secondary",onClick:function(){return Q(!1)}},"Unlock ",React.createElement("strong",null,"All"))),("all"===u||"pending"===u)&&React.createElement(React.Fragment,null,React.createElement(a.c,{className:"primary",onClick:function(){return j("renameAll")}},"Rename ",React.createElement("strong",null,"All"))),y&&("all"===u||"renamed"===u)&&React.createElement(React.Fragment,null,React.createElement(a.c,{className:"danger",onClick:function(){return j("undoAll")}},"Undo ",React.createElement("strong",null,"All")))),React.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginTop:10,marginBottom:10}},React.createElement(a.t,{value:u,busy:n||M,onChange:function(e){T(e),O(1)}},React.createElement(a.l,{title:i.PENDING,value:"pending",count:c.pending}),React.createElement(a.l,{title:"Renamed",value:"renamed",count:c.renamed}),React.createElement(a.l,{title:"Locked",value:"locked",count:c.locked}),React.createElement(a.l,{title:"All",value:"all",count:c.all})),React.createElement(a.r,{currentPage:g,limit:v,total:l,onClick:function(e){return O(e)}})),React.createElement(a.x,{busy:n||M,data:H,columns:ft,sort:d,onSortChange:function(e,t){k({accessor:e,by:t})},onSelect:function(e){R([].concat(tt(r),tt(e)))},onUnselect:function(e){R(tt(r.filter((function(t){return!e.includes(t)}))))},selectedItems:r}),React.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginTop:10}},React.createElement(a.u,{scrolldown:!0,value:v,onChange:function(e){S(e),O(1),Z(e)}},React.createElement(a.p,{value:5,label:"5 items per page"}),React.createElement(a.p,{value:10,label:"10 items per page"}),React.createElement(a.p,{value:25,label:"25 items per page"}),React.createElement(a.p,{value:50,label:"50 items per page"}),React.createElement(a.p,{value:100,label:"100 items per page"}),React.createElement(a.p,{value:200,label:"200 items per page"})),React.createElement(a.r,{currentPage:g,limit:v,total:l,onClick:function(e){return O(e)}}))),React.createElement(a.o,{isOpen:b.autoAttach,onRequestClose:function(){return j("autoAttach",!1)},title:"Automatically attach your images to your posts",content:ee,ok:p?"Run":"I need the Pro Version",onOkClick:function(){j("autoAttach",!1),p&&V()},onCancelClick:function(){j("autoAttach",!1)}}),React.createElement(a.o,{isOpen:b.renameAll,onRequestClose:function(){return j("renameAll",!1)},title:"You are about to rename all your (unlocked) files",content:"Renaming files is a dangerous operation. Please make sure you made a backup or your entire WordPress install. Should we start?",onOkClick:function(){j("renameAll",!1),K()},onCancelClick:function(){j("renameAll",!1)}}),React.createElement(a.o,{isOpen:b.undoAll,onRequestClose:function(){return j("undoAll",!1)},title:"You are about to undo the renaming for all your files",content:"Are you sure you would like to proceed?",onOkClick:function(){j("undoAll",!1),$()},onCancelClick:function(){j("undoAll",!1)}}),React.createElement(a.o,{isOpen:L,title:"Success",ok:"Close",content:L,onOkClick:function(){N(""),z.reset()}}),React.createElement(a.o,{isOpen:b.editTitle,onRequestClose:function(){return j("editTitle",!1)},title:"Edit the title",okOnEnter:!0,content:React.createElement(a.k,{autoFocus:!0,id:"mfrh_edit_title",name:"mfrh_edit_title",placeholder:"title...",value:null==G?void 0:G.post_title,onBlur:function(e){return q(Ze(Ze({},G),{},{post_title:e}))}}),onOkClick:function(){j("editTitle",!1),X(G)},onCancelClick:function(){j("editTitle",!1)}})))},pt=wp.element.render,ht={fetcher:a.F,revalidateOnFocus:!1};function yt(){Array.from(document.getElementsByClassName("mfrh-renamer-field")).forEach((function(e){var t=e.getAttribute("data-id");pt(React.createElement(x,{natural:!0,mediaId:t}),e)}))}document.addEventListener("DOMContentLoaded",(function(e){var t,n;new MutationObserver((function(){yt()})).observe(document.documentElement,{childList:!0,subtree:!0}),(t=document.getElementById("mfrh-admin-settings"))&&pt(React.createElement(r.a,{value:ht},React.createElement(Ie,null)),t),(n=document.getElementById("mfrh-media-rename"))&&pt(React.createElement(r.a,{value:ht},React.createElement(Qe,null,React.createElement(dt,null))),n),yt()}))}});
|
2 |
//# sourceMappingURL=index.js.map
|
1 |
+
!function(e){function t(t){for(var r,c,l=t[0],i=t[1],u=t[2],m=0,f=[];m<l.length;m++)c=l[m],Object.prototype.hasOwnProperty.call(a,c)&&a[c]&&f.push(a[c][0]),a[c]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);for(s&&s(t);f.length;)f.shift()();return o.push.apply(o,u||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],r=!0,l=1;l<n.length;l++){var i=n[l];0!==a[i]&&(r=!1)}r&&(o.splice(t--,1),e=c(c.s=n[0]))}return e}var r={},a={0:0},o=[];function c(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,c),n.l=!0,n.exports}c.m=e,c.c=r,c.d=function(e,t,n){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(c.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)c.d(n,r,function(t){return e[t]}.bind(null,r));return n},c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="";var l=window.wpJsonMfrh=window.wpJsonMfrh||[],i=l.push.bind(l);l.push=t,l=l.slice();for(var u=0;u<l.length;u++)t(l[u]);var s=i;o.push([129,1]),n()}({0:function(e,t){e.exports=React},1:function(e,t,n){"use strict";var r=n(14);n.d(t,"b",(function(){return r.a}));var a=n(11);n.d(t,"c",(function(){return a.a}));n(37);var o=n(49);n.d(t,"q",(function(){return o.a}));var c=n(50);n.d(t,"a",(function(){return c.a}));var l=n(51);n.d(t,"g",(function(){return l.a}));var i=n(52);n.d(t,"v",(function(){return i.a}));n(53);var u=n(38);n.d(t,"C",(function(){return u.b})),n.d(t,"f",(function(){return u.a}));var s=n(54);n.d(t,"d",(function(){return s.a}));var m=n(55);n.d(t,"e",(function(){return m.a}));var f=n(21);n.d(t,"k",(function(){return f.a}));n(56);var d=n(39);n.d(t,"u",(function(){return d.b})),n.d(t,"p",(function(){return d.a}));n(57),n(58),n(8),n(40),n(22);var p=n(59);n.d(t,"s",(function(){return p.a}));var h=n(60);n.d(t,"i",(function(){return h.a}));var y=n(23);n.d(t,"r",(function(){return y.a}));var g=n(10);n.d(t,"j",(function(){return g.a}));var v=n(16);n.d(t,"B",(function(){return v.a}));var b=n(41);n.d(t,"t",(function(){return b.b})),n.d(t,"l",(function(){return b.a}));var E=n(61);n.d(t,"h",(function(){return E.a}));var R=n(42);n.d(t,"m",(function(){return R.a})),n.d(t,"n",(function(){return R.b}));n(62),n(63),n(19);var w=n(24);n.d(t,"o",(function(){return w.a}));n(68);var _=n(69);n.d(t,"x",(function(){return _.a}));var k=n(44);n.d(t,"y",(function(){return k.b})),n.d(t,"w",(function(){return k.a}));n(45);var O=n(70);n.d(t,"A",(function(){return O.a}));var x=n(3);n.d(t,"z",(function(){return x.a}));var P=n(7);n.d(t,"J",(function(){return P.d})),n.d(t,"H",(function(){return P.b})),n.d(t,"I",(function(){return P.c}));var T=n(15);n.d(t,"G",(function(){return T.d})),n.d(t,"F",(function(){return T.c})),n.d(t,"E",(function(){return T.b})),n.d(t,"D",(function(){return T.a}));n(20)},120:function(e,t){e.exports=ReactDOM},129:function(e,t,n){"use strict";n.r(t);var r=n(12),a=n(1),o=wp.i18n.__,c={};c.RENAME=o("Rename","media-file-renamer"),c.MOVE=o("Move","media-file-renamer"),c.DASHBOARD=o("Dashboard","media-file-renamer"),c.PENDING=o("Pending","media-file-renamer"),c.RENAMED=o("Renamed","media-file-renamer"),c.ALL=o("All","media-file-renamer"),c.THUMB=o("Thumb","media-file-renamer"),c.TITLE=o("Title","media-file-renamer"),c.ATTACHED_TO=o("Attached To","media-file-renamer"),c.FILENAME=o("Filename","media-file-renamer");var l=c,i=mfrh_media_file_renamer.prefix,u=mfrh_media_file_renamer.domain,s=mfrh_media_file_renamer.rest_url.replace(/\/+$/,""),m=mfrh_media_file_renamer.api_url.replace(/\/+$/,""),f=mfrh_media_file_renamer.plugin_url.replace(/\/+$/,""),d="1"===mfrh_media_file_renamer.is_pro,p=d&&"1"===mfrh_media_file_renamer.is_registered,h=mfrh_media_file_renamer.rest_nonce,y="1"===mfrh_media_file_renamer.mfrh_undo,g="1"===mfrh_media_file_renamer.mfrh_move,v="1"===mfrh_media_file_renamer.mfrh_manual_rename;function b(e,t,n,r,a,o,c){try{var l=e[o](c),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).then(r,a)}function E(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function c(e){b(o,r,a,c,l,"next",e)}function l(e){b(o,r,a,c,l,"throw",e)}c(void 0)}))}}function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,o=[],c=!0,l=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);c=!0);}catch(e){l=!0,a=e}finally{try{c||null==n.return||n.return()}finally{if(l)throw a}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _,k,O,x,P,T=wp.element,S=T.useState,A=T.useEffect,j=function(e){var t=e.mutate,n=R(S(e.entry),2),r=n[0],o=n[1],c=R(S(!1),2),i=c[0],u=c[1],s=R(S(""),2),f=s[0],d=s[1],p=R(S(null),2),b=p[0],w=p[1],_=e.natural,k=void 0!==_&&_,O=Object(a.I)({concurrency:2}).runTask;A((function(){d(""),e.entry?o(e.entry):e.mediaId&&x(e.mediaId)}),[e.entry]);var x=function(){var e=E(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u((function(e){return e+1})),e.next=3,O(E(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(a.G)("".concat(m,"/analyze"),{nonce:h,json:{mediaId:t}}));case 1:case"end":return e.stop()}}),e)}))));case 3:n=e.sent,o(n.data),u((function(e){return e-1}));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),P=function(){var e=E(regeneratorRuntime.mark((function e(t){var n,r,a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.length<=220)){e.next=3;break}return d(t),e.abrupt("return");case 3:n=t.lastIndexOf("."),r=-1===n?"":".".concat(t.slice(n+1)),a=r.length>0?r.length:0,o="".concat(t.slice(0,220-a)).concat(r),d(o);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),T=function(){var e=E(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o(n),t&&t();case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),j=function(){var e=E(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u((function(e){return e+1})),e.next=3,Object(a.G)("".concat(m,"/rename"),{nonce:h,json:{mediaId:r.ID}});case 3:t=e.sent,T(t.data),w(null),u((function(e){return e-1}));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=E(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u((function(e){return e+1})),e.next=3,Object(a.G)("".concat(m,"/rename"),{nonce:h,json:{mediaId:r.ID,filename:f}});case 3:t=e.sent,T(t.data),w(null),d(""),u((function(e){return e-1}));case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),C=function(){var e=E(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u((function(e){return e+1})),e.next=3,Object(a.G)("".concat(m,"/undo"),{nonce:h,json:{mediaId:r.ID}});case 3:t=e.sent,T(t.data,r.current_filename),u((function(e){return e-1}));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),D=function(){var e=E(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u((function(e){return e+1})),e.next=3,Object(a.G)("".concat(m,"/set_lock"),{nonce:h,json:{mediaId:r.ID,lock:!r.locked}});case 3:t=e.sent,T(t.data),u((function(e){return e-1}));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),M=function(){var e=E(regeneratorRuntime.mark((function e(){var t,n,o,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log({entry:r}),t=r.metadata.file||"",n="/"+t.substring(0,t.lastIndexOf("/")),!(o=(o=(o=prompt("Where would you like to move this file (in the /uploads directory)?",n)).replace(/\/+$/,""))||"/")){e.next=13;break}return u((function(e){return e+1})),e.next=10,Object(a.G)("".concat(m,"/move"),{nonce:h,json:{mediaId:r.ID,newPath:o}});case 10:c=e.sent,T(c.data),u((function(e){return e-1}));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),U=!!f,B=U?f:b||(null==r?void 0:r.current_filename);return React.createElement(a.b,{busy:i},React.createElement("div",{style:{display:"flex",alignItems:"center"}},React.createElement(a.k,{natural:k,readOnly:!v||i,value:B,onChange:P,onEnter:I,maxLength:220,style:{marginRight:0,flex:"auto"}}),!U&&React.createElement(a.j,{icon:null!=r&&r.locked?"lock":"lock-open",width:24,title:null!=r&&r.locked?"Unlock, to allow future actions":"Lock, to avoid future actions",style:{position:"relative",left:-26,marginRight:-22},color:null!=r&&r.locked?a.z.blue:"#5a5a5a82",onClick:D}),U&&React.createElement(a.j,{icon:"close",width:24,style:{position:"relative",left:-26,marginRight:-22},color:null!=r&&r.locked?a.z.blue:"#5a5a5a82",onClick:function(){d("")}}),(null==r?void 0:r.proposed_filename_exists)&&React.createElement(a.j,{icon:"alert",color:"orange",tooltip:{text:"The ideal filename (".concat(r.proposed_filename,") already exists."),position:"left"}}),y&&!U&&(null==r?void 0:r.original_filename)&&React.createElement(a.j,{icon:"file-undo",title:"Rollback to original",color:a.z.red,onClick:C,onMouseEnter:function(){return w(null==r?void 0:r.original_filename)},onMouseLeave:function(){return w(null)}}),!U&&(null==r?void 0:r.proposed_filename)&&!(null!=r&&r.proposed_filename_exists)&&React.createElement(a.c,{style:{marginLeft:5},title:"Rename automatically",onMouseEnter:function(){return w(null==r?void 0:r.proposed_filename)},onMouseLeave:function(){return w(null)},onClick:j},"Auto Rename"),v&&U&&React.createElement(a.c,{style:{marginLeft:5},title:"Rename manually",onClick:I},l.RENAME),g&&React.createElement(a.c,{style:{marginLeft:5},title:"Move",onClick:M},l.MOVE)))},I=n(4);function C(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var D=I.a.div(_||(_=C(["\n color: white;\n padding: 15px;\n margin-bottom: -15px;\n\n a {\n color: #7dedff;\n text-decoration: none;\n }\n\n p {\n font-size: 15px;\n }\n"]))),M=Object(I.a)(a.a)(k||(k=C(["\n\n .nui-block-title {\n display: none;\n }\n\n .nui-block-content {\n display: flex;\n padding: 10px;\n\n h2 {\n color: #055082;\n font-size: 16px;\n margin: 5px 0 5px 0;\n\n a {\n text-decoration: none;\n }\n }\n\n p {\n margin: 0px;\n line-height: 18px;\n }\n }\n"]))),U=I.a.img(O||(O=C(["\n width: 85px;\n height: 85px;\n padding-right: 10px;\n"]))),B=I.a.div(x||(x=C(["\n\n margin: 15px;\n\n .center {\n background: white;\n border-radius: 10px;\n padding: 10px;\n font-family: Lato;\n max-width: 100%\n overflow: none;\n\n h2 {\n font-size: 26px;\n }\n\n table {\n width: 100%;\n\n tr td:first-child {\n width: 220px;\n font-weight: bold;\n color: #1e7cba;\n }\n\n * {\n overflow-wrap: anywhere;\n }\n }\n }\n\n hr {\n border-color: #1e7cba;\n }\n"]))),L=I.a.ul(P||(P=C(["\n margin-top: 10px;\n background: rgb(0, 72, 88);\n padding: 10px;\n color: rgb(58, 212, 58);\n max-height: 600px;\n min-height: 200px;\n display: block;\n font-family: monospace;\n font-size: 12px;\n white-space: pre;\n overflow-x: auto;\n width: calc(100vw - 276px);\n\n .log-date {\n color: white;\n margin-left: 8px;\n }\n\n .log-type {\n background: #0000004d;\n padding: 2px 5px;\n border-radius: 8px;\n text-transform: uppercase;\n }\n\n .log-content {\n display: block;\n }\n\n .log-warning .log-type {\n background: #ccb028;\n color: white;\n }\n\n .log-fatal .log-type {\n background: #cc2828;\n color: white;\n }\n"])));function N(e){return function(e){if(Array.isArray(e))return H(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||z(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t,n,r,a,o,c){try{var l=e[o](c),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).then(r,a)}function G(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function c(e){F(o,r,a,c,l,"next",e)}function l(e){F(o,r,a,c,l,"throw",e)}c(void 0)}))}}function q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,o=[],c=!0,l=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);c=!0);}catch(e){l=!0,a=e}finally{try{c||null==n.return||n.return()}finally{if(l)throw a}}return o}(e,t)||z(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){if(e){if("string"==typeof e)return H(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(e,t):void 0}}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Y=wp.element,W=Y.useState,V=Y.useEffect,$="".concat(s,"/meow-common/v1"),J=function(e){var t=e.request,n=e.title,r=e.max,o=q(W(!1),2),c=o[0],l=o[1],i=q(W([]),2),u=i[0],s=i[1],m=u.length>0?u.reduce((function(e,t){return e+t})):0,f=u.length>0?Math.ceil(m/u.length):0,d=!u.length&&c;V((function(){c&&setTimeout(G(regeneratorRuntime.mark((function e(){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(new Date).getTime(),e.next=3,Object(a.G)("".concat($,"/").concat(t),{nonce:h});case 3:r=(new Date).getTime(),o=r-n,s((function(e){return[].concat(N(e),[o])}));case 6:case"end":return e.stop()}}),e)}))),1e3)}),[u]);return React.createElement(D,{style:{width:200,textAlign:"center"}},React.createElement(a.B,{h2:!0,style:{color:"white"}},n),React.createElement(a.h,{size:200,value:d?r:f,max:r},React.createElement("span",{style:{fontSize:20}},d?"START":f+" ms"),React.createElement("span",{style:{fontSize:12}},d?"YOUR ENGINE":u.length+" requests")),React.createElement(a.c,{style:{width:"100%",marginTop:10},color:c?"#cc3627":"#ccb027",onClick:function(){c||s([]),l(!c)}},c?"Stop":"Start"))};function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(e,t,n,r,a,o,c){try{var l=e[o](c),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).then(r,a)}function ee(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function c(e){Z(o,r,a,c,l,"next",e)}function l(e){Z(o,r,a,c,l,"throw",e)}c(void 0)}))}}function te(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,o=[],c=!0,l=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);c=!0);}catch(e){l=!0,a=e}finally{try{c||null==n.return||n.return()}finally{if(l)throw a}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ne(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var re=wp.element,ae=re.useState,oe=re.useEffect;m&&s&&f||console.error("[@common/dashboard] apiUrl, restUrl and pluginUrl are mandatory.");var ce="".concat(s,"/meow-common/v1"),le=React.createElement(D,null,React.createElement(a.B,{p:!0},"Meow Apps is run by Jordy Meow, a photographer and software developer living in Japan (and taking ",React.createElement("a",{target:"_blank",href:"https://offbeatjapan.org"},"a lot of photos"),"). Meow Apps proposes a suite of plugins focusing on photography, imaging, optimization and SEO. The ultimate goal is to make your website better, faster, while making it easy. Meow Apps also teams up with the best players in the community. For more information, please check ",React.createElement("a",{href:"http://meowapps.com",target:"_blank"},"Meow Apps"),".")),ie=React.createElement(D,null,React.createElement(a.B,{p:!0},"The ",React.createElement("b",null,"Empty Request Time")," helps you analyzing the raw performance of your install by giving you the average time it takes to run an empty request to your server. You can try to disable some plugins (or change their options) then Start this again to see how it influences the results. An excellent install would have an Empty Request Time of less than 500 ms. Keep it absolutely under 2,000 ms! For more information, ",React.createElement("a",{href:"https://meowapps.com/clean-optimize-wordpress/#Optimize_your_Empty_Request_Time",target:"_blank"},"click here"),"."),React.createElement(a.B,{p:!0},React.createElement("b",null,"File Operation Time")," creates a temporary size of 10MB every time. ",React.createElement("b",null,"SQL Request Time")," counts the number of posts. Those two should be very fast, and almost the same as the ",React.createElement("b",null,"Empty Request Time"),".")),ue=React.createElement(D,null,React.createElement(a.B,{p:!0},"Too many WordPress installs are blown-up with useless and/or heavy plugins, and not aware of best practices. That's not the fault of the users; WordPress pretends to be simple but it is in fact very complex, and the immensity and diversity of the community around it makes it a real jungle where everything is possible."),React.createElement(a.B,{p:!0},"A rule of thumb is to keep your WordPress install as simple as possible, with the least number of plugins installed (run away from the heavy ones) and an excellent hosting service. Avoid VPS or self-hosted solutions; you must be a professional to actually set them up so that they are actually performant."),React.createElement(a.B,{p:!0},"On the Meow Apps website, you will find articles which are always updated with the latest recommendations.",React.createElement("ul",null,React.createElement("li",null,"☘️ ",React.createElement("a",{href:"https://meowapps.com/how-to-debug-wordpress-errors/",target:"_blank"},"How To Debug WordPress")),React.createElement("li",null,"☘️ ",React.createElement("a",{href:"https://meowapps.com/tutorial-improve-seo-wordpress/",target:"_blank"},"SEO Checklist & Optimization")),React.createElement("li",null,"☘️ ",React.createElement("a",{href:"https://meowapps.com/tutorial-faster-wordpress-optimize/",target:"_blank"},"Optimize your WordPress Speed")),React.createElement("li",null,"☘️ ",React.createElement("a",{href:"https://meowapps.com/tutorial-optimize-images-wordpress/",target:"_blank"},"Optimize Images (CDN, and so on)")),React.createElement("li",null,"☘️ ",React.createElement("a",{href:"https://meowapps.com/tutorial-hosting-service-wordpress/",target:"_blank"},"Best Hosting Services for WordPress"))))),se=["".concat(ce,"/all_settings/"),{headers:{"X-WP-Nonce":h}}],me=function(){var e=te(ae(!1),2),t=e[0],n=e[1],o=Object(r.b)(se,a.F),c=o.data,l=o.mutate,i=o.error,u=null==c?void 0:c.data,s=null==u?void 0:u.meowapps_hide_meowapps,m=null==u?void 0:u.force_sslverify,d=te(ae(!1),2),p=d[0],y=d[1],g=te(ae([]),2),v=g[0],b=g[1],E=te(ae(""),2),R=E[0],w=E[1];oe((function(){i&&!t&&(n(!0),console.error("Error from UseSWR",i.message))}),[i]),oe((function(){var e=document.getElementById("meow-common-phpinfo");w(e.innerHTML)}),[]);var _=function(){var e=ee(regeneratorRuntime.mark((function e(t,n){var r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=Q({},c.data))[n]=t,l(Q(Q({},c),{},{data:r}),!1),y(!0),e.next=6,Object(a.G)("".concat(ce,"/update_option"),{json:{name:n,value:t},nonce:h});case 6:o=e.sent,y(!1),o.success||alert(o.message),l();case 10:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),k=function(){var e=ee(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return y(!0),e.next=3,Object(a.G)("".concat(ce,"/error_logs"),{nonce:h});case 3:t=e.sent,n=t&&t.data?t.data:[],b(n.reverse()),y(!1);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),O=React.createElement(a.v,{title:"Main Menu"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"meowapps_hide_meowapps",label:"Hide (Not Recommended)",description:React.createElement(a.B,{p:!0},"This will hide the Meow Apps Menu (on the left side) and everything it contains. You can re-enable it through though an option that will be added in Settings → General."),value:"1",disabled:p,checked:s,onChange:_}))),x=React.createElement(a.v,{title:"SSL Verify"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"force_sslverify",label:"Force (Not Recommended)",description:React.createElement(a.B,{p:!0},"This will enforce the usage of SSL when checking the license or updating the plugin."),value:"1",disabled:p,checked:m,onChange:_})));return React.createElement(a.q,{showRestError:t},React.createElement(a.i,{title:"The Dashboard"}),React.createElement(a.C,null,React.createElement(a.f,{full:!0},React.createElement(a.y,null,React.createElement(a.w,{title:"Meow Apps"},le,React.createElement(a.C,null,React.createElement(a.f,{minimal:!0},React.createElement(M,{title:"Media Cleaner",className:"primary"},React.createElement(U,{src:"".concat(f,"/common/img/media-cleaner.jpg")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/media-cleaner/"},"Media Cleaner")),React.createElement("p",null,"The Cleaner analyzes your WordPress entirely to find out which files are not used. You can trash them, before deleting them permanently. Your WordPress will breath again :)"))),React.createElement(M,{title:"Media File Renamer",className:"primary"},React.createElement(U,{src:"".concat(f,"/common/img/media-file-renamer.jpg")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/media-file-renamer/"},"Media File Renamer")),React.createElement("p",null,"The Renamer will help you in getting nicer filenames for an improved SEO and a tidier filesystem. It's mostly automatic and very fun to use."))),React.createElement(M,{title:"Contact Form Block",className:"primary"},React.createElement(U,{src:"".concat(f,"/common/img/contact-form-block.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/contact-form-block/"},"Contact Form Block")),React.createElement("p",null,"A simple, pretty and superlight contact form. If you simply want your visitors to get in touch with you, this contact form will be perfect for you and your WordPress."))),React.createElement(M,{title:"Meow Analytics",className:"primary"},React.createElement(U,{src:"".concat(f,"/common/img/meow-analytics.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/meow-analytics/"},"Meow Analytics")),React.createElement("p",null,"Are you tired of those heavy plugins, accessing your Google Analytics deliberately? Switch to Meow Analytics!")))),React.createElement(a.f,{minimal:!0},React.createElement(M,{title:"Meow Gallery",className:"primary"},React.createElement(U,{src:"".concat(f,"/common/img/meow-gallery.jpg")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/meow-gallery/"},"Meow Gallery")),React.createElement("p",null,"This is the fastest gallery system... and it is pretty as well! It is 100% compatible with the native WordPress galleries and therefore, works right away."))),React.createElement(M,{title:"Meow Lightbox",className:"primary"},React.createElement(U,{src:"".concat(f,"/common/img/meow-lightbox.jpg")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/meow-lightbox/"},"Meow Lightbox")),React.createElement("p",null,"A very sleek and performant Lightbox which will also display your EXIF data (camera, lens, aperture...). Photographers love it."))),React.createElement(M,{title:"Photo Engine",className:"primary"},React.createElement(U,{src:"".concat(f,"/common/img/wplr-sync.jpg")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/wplr-sync/"},"Photo Engine")),React.createElement("p",null,"Are you using Lightroom? So you know Photo Engine already. Wait, you don't? You must try it! This plugin will be your favorite very soon."))),React.createElement(M,{title:"Perfect Images + Retina",className:"primary"},React.createElement(U,{src:"".concat(f,"/common/img/wp-retina-2x.jpg")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/wp-retina-2x/"},"Perfect Images + Retina")),React.createElement("p",null,"It handles Retina, help you managing the Image Sizes registered in your WP, and much more.")))))),React.createElement(a.w,{title:"Performance"},ie,React.createElement("div",{style:{display:"flex",justifyContent:"space-around",marginBottom:25}},React.createElement(J,{title:"Empty Request Time",request:"empty_request",max:2500}),React.createElement(J,{title:"File Operation Time",request:"file_operation",max:2600}),React.createElement(J,{title:"SQL Request Time",request:"sql_request",max:2800}))),React.createElement(a.w,{title:"Recommendations"},ue),React.createElement(a.w,{title:"PHP Info"},React.createElement(B,{dangerouslySetInnerHTML:{__html:R}})),React.createElement(a.w,{title:"PHP Error Logs"},React.createElement(D,null,React.createElement(a.c,{style:{marginBottom:10},color:"#ccb027",onClick:k},"Load PHP Error Logs"),React.createElement(L,null,v.map((function(e){return React.createElement("li",{class:"log-".concat(e.type)},React.createElement("span",{class:"log-type"},e.type),React.createElement("span",{class:"log-date"},e.date),React.createElement("span",{class:"log-content"},e.content))}))))),React.createElement(a.w,{title:"Settings"},React.createElement(a.a,{title:"Settings",className:"primary"},O,x))))))};function fe(e,t,n,r,a,o,c){try{var l=e[o](c),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).then(r,a)}function de(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function c(e){fe(o,r,a,c,l,"next",e)}function l(e){fe(o,r,a,c,l,"throw",e)}c(void 0)}))}}function pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,o=[],c=!0,l=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);c=!0);}catch(e){l=!0,a=e}finally{try{c||null==n.return||n.return()}finally{if(l)throw a}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return he(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return he(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ye=wp.element,ge=ye.useState,ve=ye.useEffect,be="".concat(s,"/meow-licenser/").concat(i,"/v1"),Ee=function(){var e=pe(ge(!1),2),t=e[0],n=e[1],r=pe(ge(null),2),o=r[0],c=r[1],l=pe(ge(null),2),i=l[0],u=l[1],s=pe(ge(""),2),m=s[0],f=s[1],y=p&&(!i||"valid"!==i.license),g=function(){var e=de(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d){e.next=2;break}return e.abrupt("return");case 2:return n(!0),e.next=5,Object(a.G)("".concat(be,"/get_license"),{nonce:h});case 5:t=e.sent,u(t.data),t.data.key&&f(t.data.key),n(!1);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),v=function(){var e=de(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n(!0),e.next=3,Object(a.G)("".concat(be,"/set_license"),{nonce:h,json:{serialKey:null}});case 3:e.sent.success&&(f(""),u(null),c("licenseRemoved")),n(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),b=function(){var e=de(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n(!0),e.next=3,Object(a.G)("".concat(be,"/set_license"),{nonce:h,json:{serialKey:m}});case 3:(t=e.sent).success&&(u(t.data),t.data&&!t.data.issue&&c("licenseAdded")),n(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();ve((function(){g()}),[]);var E=y?"Forced License":p?"Enabled":"Disabled",R=i&&"valid"===i.license,w="Your license is active. Thanks a lot for your support :)";R||(i?"no_activations_left"===i.issue?w=React.createElement("span",null,"There are no activations left for this license. You can visit your account at the ",React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://store.meowapps.com"},"Meow Apps Store"),", unregister a site, and click on ",React.createElement("i",null,"Retry to validate"),"."):"expired"===i.issue?w=React.createElement("span",null,"Your license has expired. You can get another license or renew the current one by visiting your account at the ",React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://store.meowapps.com"},"Meow Apps Store"),"."):"missing"===i.issue?w="This license does not exist.":"disabled"===i.issue?w="This license has been disabled.":"item_name_mismatch"===i.issue?w="This license seems to be for a different plugin... isn't it? :)":(w=React.createElement("span",null,"There is an unknown error related to the system or this serial key. Really sorry about this! Make sure your security plugins and systems are off temporarily. If you are still experiencing an issue, please ",React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://meowapps.com/contact/"},"contact us"),"."),console.error({license:i})):w="Unknown error :(");var _=React.createElement(a.a,{title:"Pro Version (Not Installed)",className:"primary"},"You will find more information about the Pro Version ",React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://store.meowapps.com"},"here"),". If you actually bought the Pro Version already, please remove the current plugin and download the Pro Version from your account at the ",React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://store.meowapps.com/"},"Meow Apps Store"),"."),k=React.createElement(a.a,{title:"Pro Version (".concat(E,")"),busy:t,className:"primary"},React.createElement(a.v,{title:"Serial Key",style:{fontWeight:"bold"}},React.createElement(a.k,{id:"mfrh_pro_serial",name:"mfrh_pro_serial",disabled:t,value:m,onChange:function(e){return f(e)},placeholder:""})),i&&!R&&React.createElement(a.m,null,w),i&&R&&React.createElement(a.n,null,w),!i&&React.createElement(a.B,{p:!0},"Insert your serial key above. If you don't have one yet, you can get one ",React.createElement("a",{href:"https://store.meowapps.com"},"here"),". If there was an error during the validation, try the ",React.createElement("i",null,"Retry")," to ",React.createElement("i",null,"validate")," button."),React.createElement(a.v,{contentAlign:"right"},i&&!R&&React.createElement(a.c,{className:"secondary",disabled:t||!m,onClick:b},"Retry to validate"),i&&i.key===m&&React.createElement(a.c,{className:"secondary",disabled:t||!m,onClick:v},"Remove License"),React.createElement(a.c,{disabled:t||!m||i&&i.key===m,onClick:b},"Validate License")),React.createElement(a.o,{isOpen:"licenseAdded"===o,title:"Thank you :)",content:"The Pro features have been enabled. This page should be now reloaded.",ok:"Reload",onOkClick:function(){return location.reload()}}),React.createElement(a.o,{isOpen:"licenseRemoved"===o,title:"Goodbye :(",content:"The Pro features have been disabled. This page should be now reloaded.",ok:"Reload",onOkClick:function(){return location.reload()}}));return d?k:_},Re=wp.element.render;function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach((function(t){ke(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oe(e,t,n,r,a,o,c){try{var l=e[o](c),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).then(r,a)}function xe(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function c(e){Oe(o,r,a,c,l,"next",e)}function l(e){Oe(o,r,a,c,l,"throw",e)}c(void 0)}))}}function Pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,o=[],c=!0,l=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);c=!0);}catch(e){l=!0,a=e}finally{try{c||null==n.return||n.return()}finally{if(l)throw a}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Te(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Te(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}document.meowDashboardLoaded||(document.meowDashboardLoaded=!0,document.addEventListener("DOMContentLoaded",(function(e){var t=document.getElementById("meow-common-dashboard");t&&Re(React.createElement(me,null),t)})));var Se=wp.element,Ae=Se.useState,je=Se.useMemo,Ie={marginTop:10,background:"rgb(0, 72, 88)",padding:10,color:"rgb(58, 212, 58)",maxHeight:600,minHeight:200,display:"block",fontFamily:"monospace",fontSize:12,whiteSpace:"pre",overflowX:"auto",width:"calc(100vw - 276px)"},Ce=function(){var e,t,n=je((function(){return["".concat(m,"/all_settings/"),{headers:{"X-WP-Nonce":h}}]}),[m,h]),o=Object(r.b)(n,a.F),c=o.data,l=o.mutate,s=Object(a.H)(c,{},!0),f=s.busy,y=s.data,g=s.error,v=Pe(Ae(""),2),b=v[0],E=v[1],R=Pe(Ae(!1),2),w=R[0],_=R[1],k=f||w,O=null==y?void 0:y.mfrh_auto_rename,x=null==y?void 0:y.mfrh_on_upload,P=null==y?void 0:y.mfrh_rename_slug,T=null==y?void 0:y.mfrh_convert_to_ascii,S=null==y?void 0:y.mfrh_update_posts,A=null==y?void 0:y.mfrh_update_postmeta,j=null==y?void 0:y.mfrh_undo,I=null==y?void 0:y.mfrh_move,C=null==y?void 0:y.mfrh_manual_rename,D=null==y?void 0:y.mfrh_numbered_files,M=null==y?void 0:y.mfrh_sync_alt,U=null==y?void 0:y.mfrh_sync_media_title,B=null==y?void 0:y.mfrh_force_rename,L=null==y?void 0:y.mfrh_log,N=null==y?void 0:y.mfrh_logsql,F=null==y?void 0:y.mfrh_rename_guid,G=null==y?void 0:y.mfrh_case_insensitive_check,q=null==y?void 0:y.mfrh_rename_on_save,z=null!==(e=null==y?void 0:y.mfrh_acf_field_name)&&void 0!==e?e:null,H=null!==(t=null==y?void 0:y.mfrh_images_only)&&void 0!==t&&t,Y=[{id:"media_title",value:"media_title",label:React.createElement("span",null,"Based on Media Title"),requirePro:!1},{id:"post_acf_field",value:"post_acf_field",label:React.createElement("span",null,"Based on Attached Post (ACF Field)"),requirePro:!1},{id:"post_title",value:"post_title",label:React.createElement("span",null,"Based on Attached Post Title"),requirePro:!p},{id:"alt_text",value:"alt_text",label:React.createElement("span",null,"Based on Alternative Text"),requirePro:!p},{id:"anonymize_md5",value:"anonymize_md5",label:React.createElement("span",null,"Anonymize with MD5"),requirePro:!p},{id:"none",value:"none",label:React.createElement("span",null,"Disable Automatic Rename"),requirePro:!1}],W=function(){var e=xe(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=_e({},c.data))[n]=t,l(_e(_e({},c),{},{data:r}),!1),_(!0),e.prev=4,e.next=7,Object(a.G)("".concat(m,"/update_option"),{nonce:h,json:{name:n,value:t}});case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(4),alert(e.t0.message);case 12:return e.prev=12,_(!1),l(),e.finish(12);case 16:case"end":return e.stop()}}),e,null,[[4,9,12,16]])})));return function(t,n){return e.apply(this,arguments)}}(),V=function(){var e=xe(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(!0),e.next=3,Object(a.G)("".concat(m,"/refresh_logs"),{nonce:h});case 3:(t=e.sent).success&&E(t.data),_(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),$=function(){var e=xe(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(!0),e.next=3,Object(a.G)("".concat(m,"/clear_logs"),{nonce:h});case 3:(t=e.sent).success&&E(t.data),_(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),J=React.createElement(a.a,{busy:k,title:"Side Updates",className:"primary"},React.createElement(a.B,{p:!0,style:{marginTop:0}},"When the files are renamed, many links to them on your WordPress might be broken. Those options are updating the references to those files. ",React.createElement("strong",null,"Give it a try, every install is different and it might not work for certain kind of references.")),React.createElement(a.v,{title:"Posts"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_update_posts",disabled:k,label:"Enable",description:React.createElement(a.B,{p:!0},"Update the references to the renamed files in the ",React.createElement("strong",null,"content")," content and ",React.createElement("strong",null,"excerpt")," of the posts (pages and custom types included)."),value:"1",checked:S,onChange:W}))),React.createElement(a.v,{title:"Post Meta"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_update_postmeta",disabled:k,label:"Enable",description:React.createElement(a.B,{p:!0},"Update the references in the ",React.createElement("strong",null,"custom fields")," of the posts (including pages and custom types metadata)."),value:"1",checked:A,onChange:W})))),X=React.createElement(a.v,{title:"Method"},React.createElement(a.u,{id:"mfrh_auto_rename",disabled:k,value:O,scrolldown:!0,name:"mfrh_auto_rename",description:"Attached Post includes all kinds of Post Types: Posts, Pages, Products, etc.",onChange:W},Y.map((function(e){return React.createElement(a.p,{key:e.id,id:e.id,value:e.value,label:e.label,requirePro:e.requirePro})})))),Q=je((function(){return"post_acf_field"!==O?null:React.createElement(a.v,{title:"ACF Field Name"},React.createElement(a.k,{id:"mfrh_acf_field_name",name:"mfrh_acf_field_name",value:z,onBlur:W}))}),[O]),K=React.createElement(a.v,{title:"Images Only"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_images_only",label:"Enable",description:"Restricts the renaming to images (JPG and PNG). Nothing else will be renamed.",value:"1",checked:H,onChange:W}))),Z=React.createElement(a.v,{title:"On Upload"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_on_upload",disabled:k,label:"Enable",description:React.createElement(React.Fragment,null,React.createElement("span",null,"If your image has an EXIF title, it will be used to decide the filename. "),"post_title"===O&&React.createElement("span",null,"Note: The Attached Post Title ",React.createElement("u",null,"will not be used")," at the time of the upload due to WordPress API constraints.")),value:"1",checked:x,onChange:W}))),ee=React.createElement(a.v,{title:"Slug/Permalink"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_rename_slug",disabled:k,label:"Sync with filename",description:"Better to keep this un-checked as the link might have been referenced somewhere else.",value:"1",checked:P,onChange:W}))),te=React.createElement(a.v,{title:"Transliteration"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_convert_to_ascii",disabled:k,label:"Enable (Recommended)",description:React.createElement(a.B,{p:!0},"Replace accents, emoticons, diacritics, umlauts, cyrillic and any kind of tricky characters by their ASCII equivalent.",React.createElement("br",null)," ",React.createElement("i",null,"Examples: tête → tete, schön → schon, Добро → dobro, etc.")),value:"1",requirePro:!p,checked:T,onChange:W}))),ne=React.createElement(a.v,{title:"Undo"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_undo",disabled:k,label:"Enable",description:"An undo icon will be added to the UI. This allows to rollback to the original filename.",value:"1",checked:j,onChange:W}))),re=React.createElement(a.v,{title:"Move"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_move",disabled:k,label:"Enable",description:"A move button will be added, and will allow you to move a file to another directory.",value:"1",checked:I,onChange:W,requirePro:!p}))),ae=React.createElement(a.v,{title:"Rename Field"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_manual_rename",disabled:k,label:"Enable",description:"An editable field will be added everywhere your files appear in the UI.",value:"1",checked:C,onChange:W}))),oe=React.createElement(a.v,{title:"Force Rename"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_force_rename",disabled:k,label:"Enable",description:"Update the references to the file even if the file renaming itself was not successful. You might want to use that option if your install is broken and you are trying to link your Media to files for which the filenames has been altered (after a migration for exemple)",value:"1",requirePro:!p,checked:B,onChange:W}))),ce=React.createElement(a.v,{title:"Numbered Files"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_numbered_files",disabled:k,label:"Enable Numbering",description:"Identical filenames will be allowed by the plugin and a number will be appended automatically (myfile.jpg, myfile-2.jpg, myfile-3.jpg, etc).",requirePro:!p,value:"1",checked:D,onChange:W}))),le=React.createElement(a.v,{title:"ALT Text"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_sync_alt",disabled:k||"alt_text"==O,label:React.createElement(a.B,null,"Synchronize"),description:"The ALT Text will be synchronized with the same source used for the filename.",requirePro:!p,value:"1",checked:M,onChange:W}))),ie=React.createElement(a.v,{title:"Media Title"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_sync_media_title",disabled:k||"media_title"===O,label:React.createElement(a.B,null,"Synchronize"),description:"The Media Title will be synchronized with the same source used for the filename.",requirePro:!p,value:"1",checked:U,onChange:W}))),ue=React.createElement(a.v,{title:"Logs"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_log",label:"Enable",description:React.createElement(a.B,{p:!0},"Simple logging that explains which actions has been run."),value:"1",checked:L,onChange:W}),React.createElement("div",{style:{marginTop:20}},React.createElement(a.c,{onClick:V},"Refresh Logs"),React.createElement(a.c,{className:"danger",onClick:$},"Clear Logs")))),se=React.createElement(a.v,{title:"SQL Logs"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_logsql",disabled:k,label:"Enable",description:React.createElement(a.B,{p:!0},"The files mfrh_sql.log and mfrh_sql_revert.log will be created in the /logs directory and will include the raw SQL queries which were run by the plugin. If there is an issue, the revert SQL file can help you."),requirePro:!p,value:"1",checked:N,onChange:W}))),me=React.createElement(a.v,{title:"GUID"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_rename_guid",disabled:k,label:"Sync with filename",description:"The GUID will be renamed like the new filename. Better to keep this un-checked.",value:"1",checked:F,onChange:W}))),fe=React.createElement(a.v,{title:"Case Insensitive"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_case_insensitive_check",label:"Enable",value:"1",checked:G,onChange:W,description:React.createElement(React.Fragment,null,'This will consider the file such as "abc.jpg" and "ABC.JPG" as the same file. More information ',React.createElement("a",{target:"_blank",href:"https://meowapps.com/media-file-renamer-faq-issues/"},"here"),". You should check this if you are on a Windows-based server.")}))),de=React.createElement(a.v,{title:"Rename on Post Save"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_rename_on_save",disabled:k,label:"Enable (Unsafe)",description:"You can modify the titles of your media while editing a post but, of course, the plugin can't update the HTML at this stage. With this option, the plugin will update the filenames and HTML after that you saved the post.",value:"1",checked:q,onChange:W})));return React.createElement(a.q,{nekoErrors:[g]},React.createElement(a.i,{title:"Media File Renamer | Settings",subtitle:"By Jordy Meow"},React.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},React.createElement(a.c,{className:"header",onClick:function(){return window.open("https://meowapps.com/media-file-renamer-tutorial/","_blank")}},"Tutorial"),React.createElement(a.c,{className:"header",icon:"dashboard",onClick:function(){return location.href="upload.php?page=mfrh_dashboard"}},"Dashboard"))),React.createElement(a.C,null,React.createElement(a.f,{full:!0},React.createElement(a.g,null,React.createElement(a.B,{p:!0},"It works out of the box, the default settings are good for most installs. However, you should really have a look at the ",React.createElement("a",{href:"https://meowapps.com/plugin/media-file-renamer/"},"tutorial"),". If you are a SEO guru or someone who loves having a perfectly neat filesystem, it is recommended to use automatic renaming first, then to tweak specific files with manual renaming. The ",React.createElement("a",{href:"/wp-admin/upload.php?page=mfrh_dashboard"},"Renamer Dashboard")," makes it very easy.")),React.createElement(a.y,null,React.createElement(a.w,{title:"Basic"},React.createElement(a.C,null,React.createElement(a.f,{minimal:!0},React.createElement(a.a,{busy:k,title:"Settings",className:"primary"},React.createElement(a.B,{h2:!0},"Automatic"),React.createElement(a.B,{p:!0},"This plugin's main goal is to make the process of optimizing your filenames entirely automatic. By default, your files will be named after the title of your media entry."),X,Q,React.createElement(a.B,{h2:!0},"Manual"),ae,React.createElement(a.B,{h2:!0},"Extra Options"),Z,K)),React.createElement(a.f,{minimal:!0},J,React.createElement(a.a,{busy:k,title:"UI (Extra Features)",className:"primary"},ne,re)))),React.createElement(a.w,{title:"Advanced"},React.createElement(a.C,null,React.createElement(a.f,{minimal:!0},React.createElement(a.a,{busy:k,title:"Advanced Settings",className:"primary"},te,ce),React.createElement(a.a,{busy:k,title:"Fields Syncing",className:"primary"},ee,me,le,ie,React.createElement(a.B,{p:!0},"The fields in the database will be synchronized, but the data already written in your HTML will not be overwritten."))),React.createElement(a.f,{minimal:!0},React.createElement(a.a,{busy:k,title:"Developer Settings",className:"primary"},fe,oe,se,de)))),React.createElement(a.w,{title:"License (Pro)"},React.createElement(Ee,{domain:u,prefix:i,isPro:d,isRegistered:p})),React.createElement(a.w,{title:"Logs & Debug"},React.createElement(a.a,{busy:k,className:"primary"},ue),React.createElement("div",{style:Ie},b))))))},De=n(0);function Me(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,o=[],c=!0,l=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);c=!0);}catch(e){l=!0,a=e}finally{try{c||null==n.return||n.return()}finally{if(l)throw a}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ue(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(n),!0).forEach((function(t){Ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fe(e,t,n,r,a,o,c){try{var l=e[o](c),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).then(r,a)}function Ge(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function c(e){Fe(o,r,a,c,l,"next",e)}function l(e){Fe(o,r,a,c,l,"throw",e)}c(void 0)}))}}var qe,ze,He,Ye={pending:"-",renamed:"-",locked:"-",all:"-"},We={accessor:"id",by:"asc"},Ve=0,$e={filterBy:"pending",sort:We,page:1,limit:10,search:"",busy:!1,stats:Ye,apiErrors:null,status:"",entries:[],selectedItems:[],total:0,autoRename:!1,onUpload:!1,renameSlug:!1,convertToAscii:!1,updatePosts:!0,updatePostmeta:!0,undo:!1,move:!1,manualRename:!1,numberedFiles:!1,syncAlt:!1,syncMedia_title:!1,forceRename:!1,log:!1,logsql:!1,renameGuid:!1,caseInsensitiveCheck:!1,renameOnSave:!1,acfFieldName:null,imagesOnly:!1,modals:{renameAll:!1,undoAll:!1,editTitle:!1,autoAttach:!1},mutateEntries:(He=Ge(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return He.apply(this,arguments)}),mutateStats:(ze=Ge(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return ze.apply(this,arguments)}),mutateSettings:(qe=Ge(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return qe.apply(this,arguments)})},Je=function(e,t){switch(t.type){case"ENTRIES_UPDATED":var n=t.entries;return Le(Le({},e),{},{entries:n});case"STATS_UPDATED":var r=t.stats;return Le(Le({},e),{},{stats:r});case"ERROR_UPDATED":var a=t.apiErrors;return Le(Le({},e),{},{apiErrors:a});case"PAGE_UPDATED":var o=t.page;return Le(Le({},e),{},{page:o});case"SET_ENTRIES_MUTATE":var c=t.mutateEntries;return Le(Le({},e),{},{mutateEntries:c});case"SET_STATS_MUTATE":var l=t.mutateStats;return Le(Le({},e),{},{mutateStats:l});case"SET_SETTINGS_MUTATE":var i=t.mutateSettings;return Le(Le({},e),{},{mutateSettings:i});case"LIMIT_UPDATED":var u=t.limit;return Le(Le({},e),{},{limit:u});case"FILTER_UPDATED":var s=t.filter;return Le(Le({},e),{},{filterBy:s});case"SORT_UPDATED":var m=t.sort,f=void 0===m?We:m;return Le(Le({},e),{},{sort:f});case"SEARCH_UPDATED":var d=t.search;return Le(Le({},e),{},{search:d});case"TOTAL_UPDATED":var p=t.total;return Le(Le({},e),{},{total:p});case"TOGGLE_MODAL":var h=t.modal,y=t.enable;if(void 0===e.modals[h])return alert("The modal ".concat(h," doesn't exist.")),console.error("The modal ".concat(h," doesn't exist.")),e;void 0===y&&(y=!e.modals[h]);var g=Le({},e);return g.modals=Le({},g.modals),g.modals[h]=y,g;case"PUSH_BUSY":var v=t.status,b=void 0===v?"":v;return Le(Le({},e),{},{busy:++Ve>0,status:b});case"POP_BUSY":var E=t.status,R=void 0===E?"":E;return Le(Le({},e),{},{busy:--Ve>0,status:R});case"STATUS_UPDATED":var w=t.status,_=void 0===w?"":w;return Le(Le({},e),{},{status:_});case"SETTINGS_UPDATED":var k,O,x,P,T,S,A,j,I,C,D,M,U,B,L,N,F,G,q,z=t.settings,H=null!==(k=z.mfrh_auto_rename)&&void 0!==k&&k,Y=null!==(O=z.mfrh_on_upload)&&void 0!==O&&O,W=null!==(x=z.mfrh_rename_slug)&&void 0!==x&&x,V=null!==(P=z.mfrh_convert_to_ascii)&&void 0!==P&&P,$=null===(T=z.mfrh_update_posts)||void 0===T||T,J=null===(S=z.mfrh_update_postmeta)||void 0===S||S,X=null!==(A=z.mfrh_undo)&&void 0!==A&&A,Q=null!==(j=z.mfrh_move)&&void 0!==j&&j,K=null!==(I=z.mfrh_manual_rename)&&void 0!==I&&I,Z=null!==(C=z.mfrh_numbered_files)&&void 0!==C&&C,ee=null!==(D=z.mfrh_sync_alt)&&void 0!==D&&D,te=null!==(M=z.mfrh_sync_media_title)&&void 0!==M&&M,ne=null!==(U=z.mfrh_force_rename)&&void 0!==U&&U,re=null!==(B=z.mfrh_log)&&void 0!==B&&B,ae=null!==(L=z.mfrh_logsql)&&void 0!==L&&L,oe=null!==(N=z.mfrh_rename_guid)&&void 0!==N&&N,ce=null!==(F=z.mfrh_case_insensitive_check)&&void 0!==F&&F,le=null!==(G=z.mfrh_rename_on_save)&&void 0!==G&&G,ie=z.mfrh_acf_field_name,ue=null!==(q=z.mfrh_images_only)&&void 0!==q&&q,se=z.mfrh_posts_per_page?parseInt(z.mfrh_posts_per_page):10;return Le(Le({},e),{},{autoRename:H,onUpload:Y,renameSlug:W,convertToAscii:V,updatePosts:$,updatePostmeta:J,undo:X,move:Q,manualRename:K,numberedFiles:Z,syncAlt:ee,syncMedia_title:te,forceRename:ne,log:re,logsql:ae,renameGuid:oe,caseInsensitiveCheck:ce,renameOnSave:le,acfFieldName:ie,imagesOnly:ue,limit:se});case"ITEMS_SELECTED":var me=t.selectedItems;return Le(Le({},e),{},{selectedItems:me});default:return e}},Xe=Object(De.createContext)(),Qe=function(e){var t=e.children,n=Me(Object(De.useReducer)(Je,$e),2),o=n[0],c=n[1],l=o.filterBy,i=o.sort,u=o.search,s=o.page,f=o.limit,d=Object(De.useMemo)((function(){return[Object(a.D)("".concat(m,"/media"),{limit:f,skip:(s-1)*f,filterBy:l,orderBy:i.accessor,order:i.by,search:u}),{headers:{"X-WP-Nonce":h}}]}),[f,s,l,i,u]),p=Object(De.useMemo)((function(){return[Object(a.D)("".concat(m,"/stats"),{search:u}),{headers:{"X-WP-Nonce":h}}]}),[u]),y=Object(De.useMemo)((function(){return["".concat(m,"/all_settings/"),{headers:{"X-WP-Nonce":h}}]}),[]),g=Object(r.b)(d,a.F),v=g.data,b=g.mutate;Object(De.useEffect)((function(){c({type:"SET_ENTRIES_MUTATE",mutateEntries:b})}),[b]),Object(De.useEffect)((function(){c({type:"SET_STATS_MUTATE",mutateStats:P})}),[P]),Object(De.useEffect)((function(){c({type:"SET_SETTINGS_MUTATE",mutateSettings:D})}),[D]);var E=Object(a.H)(v,[],!0),R=E.busy,w=E.data,_=E.total,k=E.error;Object(De.useEffect)((function(){c({type:R?"PUSH_BUSY":"POP_BUSY"})}),[R]),Object(De.useEffect)((function(){c({type:"ENTRIES_UPDATED",entries:w})}),[w]),Object(De.useEffect)((function(){c({type:"TOTAL_UPDATED",total:_})}),[_]),Object(De.useEffect)((function(){c({type:"ERROR_UPDATED",apiError:k})}),[k]);var O=Object(r.b)(p,a.F),x=O.data,P=O.mutate,T=Object(a.H)(x,Ye,!0),S=T.busy,A=T.data,j=T.error;Object(De.useEffect)((function(){c({type:S?"PUSH_BUSY":"POP_BUSY"})}),[S]),Object(De.useEffect)((function(){c({type:"STATS_UPDATED",stats:A})}),[A]),Object(De.useEffect)((function(){c({type:"ERROR_UPDATED",apiError:j})}),[j]);var I=Object(r.b)(y,a.F),C=I.data,D=I.mutate,M=Object(a.H)(C,{},!0),U=M.busy,B=M.data,L=M.error;return Object(De.useEffect)((function(){c({type:U?"PUSH_BUSY":"POP_BUSY"})}),[U]),Object(De.useEffect)((function(){c({type:"SETTINGS_UPDATED",settings:B})}),[B]),Object(De.useEffect)((function(){c({type:"ERROR_UPDATED",apiError:L})}),[L]),React.createElement(Xe.Provider,{value:[o,c]},t)},Ke=function(){var e={},t=Me(Object(De.useContext)(Xe),2),n=t[0],r=t[1];return e.setSelectedItems=function(e){r({type:"ITEMS_SELECTED",selectedItems:e})},e.setStatus=function(e){r({type:"STATUS_UPDATED",status:e})},e.updateOption=function(){var e=Ge(regeneratorRuntime.mark((function e(t,o){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r({type:"PUSH_BUSY"}),e.prev=1,e.next=4,Object(a.G)("".concat(m,"/update_option"),{nonce:h,json:{name:o,value:t}});case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),alert(e.t0);case 9:r({type:"POP_BUSY"}),n.mutateSettings();case 11:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t,n){return e.apply(this,arguments)}}(),e.updateEntry=function(){var e=Ge(regeneratorRuntime.mark((function e(t,o){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r({type:"STATUS_UPDATED",status:"Updating..."}),r({type:"PUSH_BUSY"}),e.prev=2,e.next=5,Object(a.G)("".concat(m,"/update_media"),{nonce:h,json:Le({id:o},t)});case 5:if(e.sent.success){e.next=8;break}throw new Error("Failed to move the folder/gallery.");case 8:n.mutateEntries(),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(2),alert(e.t0.message);case 14:return e.prev=14,r({type:"POP_BUSY"}),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[2,11,14,17]])})));return function(t,n){return e.apply(this,arguments)}}(),e.setPage=function(e){r({type:"PAGE_UPDATED",page:e})},e.setLimit=function(e){r({type:"LIMIT_UPDATED",limit:e})},e.setFilter=function(e){r({type:"FILTER_UPDATED",filter:e})},e.setSort=function(e){r({type:"SORT_UPDATED",sort:e})},e.setSearch=function(e){r({type:"SEARCH_UPDATED",search:e})},e.toggleModal=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;r({type:"TOGGLE_MODAL",modal:e,enable:t})},e.pushBusy=function(){r({type:"PUSH_BUSY"})},e.popBusy=function(){r({type:"POP_BUSY"})},Le(Le({},n),e)};function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){tt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nt(e){return function(e){if(Array.isArray(e))return lt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ct(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rt(e,t,n,r,a,o,c){try{var l=e[o](c),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).then(r,a)}function at(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function c(e){rt(o,r,a,c,l,"next",e)}function l(e){rt(o,r,a,c,l,"throw",e)}c(void 0)}))}}function ot(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,o=[],c=!0,l=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);c=!0);}catch(e){l=!0,a=e}finally{try{c||null==n.return||n.return()}finally{if(l)throw a}}return o}(e,t)||ct(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ct(e,t){if(e){if("string"==typeof e)return lt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lt(e,t):void 0}}function lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var it=wp.element,ut=it.useState,st=it.useEffect,mt=it.useMemo,ft={width:40,height:40,objectFit:"cover"},dt=[{accessor:"thumbnail_url",title:l.THUMB,style:{width:16}},{accessor:"post_title",title:l.TITLE,sortable:!0,style:{width:"25%"}},{accessor:"post_parent",title:l.ATTACHED_TO,sortable:!0,style:{width:"25%"}},{accessor:"current_filename",title:l.FILENAME,sortable:!0}],pt=function(){var e=Ke(),t=e.apiErrors,n=e.busy,r=e.selectedItems,o=e.entries,c=e.stats,i=e.total,u=e.filterBy,s=e.search,f=e.status,d=e.sort,g=e.page,v=e.limit,b=e.modals,E=Ke(),R=E.setSelectedItems,w=E.setSearch,_=E.setStatus,k=E.setSort,O=E.setPage,x=E.setLimit,P=E.setFilter,T=E.mutateEntries,S=E.mutateStats,A=E.toggleModal,I=E.updateOption,C=E.updateEntry,D=ot(ut(!1),2),M=D[0],U=D[1],B=ot(ut(""),2),L=B[0],N=B[1],F=ot(ut(),2),G=F[0],q=F[1],z=Object(a.J)(),H=mt((function(){return o.map((function(e){return{id:e.ID,thumbnail_url:React.createElement("img",{src:e.thumbnail_url,style:ft}),post_title:React.createElement("div",{style:{display:"flex",alignItems:"center"}},React.createElement("a",{href:"post.php?post=".concat(e.ID,"&action=edit")},e.post_title),React.createElement(a.j,{icon:"pencil",width:"20",height:"20",color:a.z.blue,style:{marginLeft:"2px",cursor:"pointer"},onClick:function(){q(e),A("editTitle")}})),post_parent:React.createElement("div",{style:{maxHeight:35,overflow:"hidden"}},e.post_parent_title?e.post_parent_title:React.createElement("i",{style:{color:"#c1c1c1"}},"None")),current_filename:React.createElement(j,{entry:e,mutate:function(){T(),S()}})}}))}),[o]);st((function(){R([]),k(),O(1)}),[u,s,O,R,k]),st((function(){if(null!==z.busy&&(U(z.busy),!z.busy)){var e=z.getErrorCount();e>0&&N("The process has finished, but ".concat(e," error(s) occurred (check your console).")),z.reset(),R([]),T(),S()}}),[z.busy]);var Y=function(){var e=at(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(a.G)("".concat(m,"/get_all_ids"),{nonce:h,json:{unlockedOnly:t}});case 2:if((n=e.sent).success){e.next=6;break}return alert(n.message),e.abrupt("return",[]);case 6:return e.abrupt("return",n.data);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),W=function(){var e=at(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(a.G)("".concat(m,"/get_all_post_ids"),{nonce:h});case 2:if((t=e.sent).success){e.next=6;break}return alert(t.message),e.abrupt("return",[]);case 6:return e.abrupt("return",t.data);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),V=function(){var e=at(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _("Preparing..."),U(!0),e.next=4,W();case 4:if(!(t=e.sent)){e.next=11;break}return _("Auto attaching..."),n=Object(a.E)(t,20),r=n.map((function(e){return function(){var t=at(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(a.G)("".concat(m,"/auto_attach"),{nonce:h,json:{postIds:e},signal:n});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})),z.start(r),e.abrupt("return");case 11:U(!1);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),$=function(){var e=at(regeneratorRuntime.mark((function e(){var t,n,r,o=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=o.length>0&&void 0!==o[0]?o[0]:null,_("Preparing..."),U(!0),!t){e.next=7;break}e.t0=t,e.next=10;break;case 7:return e.next=9,Y(!0);case 9:e.t0=e.sent;case 10:if(!(n=e.t0)){e.next=16;break}return _("Undoing..."),r=n.map((function(e){return function(){var t=at(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return _("Undo Media ".concat(e)),t.next=3,Object(a.G)("".concat(m,"/undo"),{nonce:h,json:{mediaId:e},signal:n});case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})),z.start(r),e.abrupt("return");case 16:U(!1);case 17:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),J=function(){var e=at(regeneratorRuntime.mark((function e(){var t,n,r,o,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=c.length>0&&void 0!==c[0]?c[0]:null,_("Preparing..."),U(!0),!t){e.next=7;break}e.t0=t,e.next=10;break;case 7:return e.next=9,Y(!0);case 9:e.t0=e.sent;case 10:if(!(n=e.t0)){e.next=17;break}return _("Analyzing..."),r=Object(a.E)(n,20),o=r.map((function(e){return function(){var t=at(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(a.G)("".concat(m,"/analyze"),{nonce:h,json:{mediaIds:e},signal:n});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})),z.start(o),e.abrupt("return");case 17:U(!1);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),X=function(){var e=at(regeneratorRuntime.mark((function e(){var t,n,r,o,c,l=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=!(l.length>0&&void 0!==l[0])||l[0],n=l.length>1&&void 0!==l[1]?l[1]:null,_("Preparing..."),U(!0),!n){e.next=8;break}e.t0=n,e.next=11;break;case 8:return e.next=10,Y(t);case 10:e.t0=e.sent;case 11:if(!(r=e.t0)){e.next=18;break}return _("".concat(t?"Locking..":"Unlocking...")),o=Object(a.E)(r,50),c=o.map((function(e){return function(){var e=at(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(a.G)("".concat(m,"/set_lock"),{nonce:h,json:{mediaIds:r,lock:t},signal:n});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})),z.start(c),e.abrupt("return");case 18:U(!1);case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Q=function(){var e=at(regeneratorRuntime.mark((function e(){var t,n,r,o=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=o.length>0&&void 0!==o[0]?o[0]:null,_("Preparing..."),U(!0),!t){e.next=7;break}e.t0=t,e.next=10;break;case 7:return e.next=9,Y(!0);case 9:e.t0=e.sent;case 10:if(!(n=e.t0)){e.next=15;break}return r=n.map((function(e){return function(){var t=at(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return _("Renaming #".concat(e)),t.next=3,Object(a.G)("".concat(m,"/rename"),{nonce:h,json:{mediaId:e},signal:n});case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})),z.start(r),e.abrupt("return");case 15:U(!1);case 16:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),K=function(){var e=at(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:C({post_title:t.post_title},t.ID);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Z=function(){var e=at(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:I(t,"mfrh_posts_per_page");case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ee=React.createElement(React.Fragment,null,React.createElement("div",null,"All your posts, pages, products (and other post types) will be scanned, and if images are used in them, they will be attached. Currently, Featured Images and Product Galleries are supported. Should we start?"),!p&&React.createElement("div",{style:{marginTop:20}},React.createElement("b",null,"This feature is only available in the Pro version."))),te=React.createElement(React.Fragment,null,React.createElement(a.c,{className:"secondary",onClick:function(){return window.open("https://meowapps.com/plugin/media-file-renamer/","_blank")}},"Get the Pro Version"),React.createElement(a.c,{className:"primary",onClick:function(){return window.open("https://meowapps.com/media-file-renamer-tutorial/","_blank")}},"Read the tutorial"));return React.createElement(a.q,{nekoErrors:[t]},React.createElement(a.i,{title:"Media File Renamer | Dashboard",subtitle:"By Jordy Meow"},React.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},React.createElement(a.c,{className:"header",onClick:function(){return window.open("https://meowapps.com/media-file-renamer-tutorial/","_blank")}},"Tutorial"),React.createElement(a.c,{icon:"cog",className:"header",onClick:function(){return location.href="admin.php?page=mfrh_settings"}},"Settings"))),React.createElement(a.C,null,React.createElement(a.f,{full:!0},!p&&React.createElement(a.g,{footer:te},React.createElement(a.B,{p:!0},"You must ",React.createElement("b",null,"backup the uploads folder and DB")," before using the Renamer. If you don't know how, give a try to ",React.createElement("a",{target:"_blank",href:"https://meow.click/blogvault"},"BlogVault"),". It is also highly recommanded to read the tutorial. Last but not least, check the ",React.createElement("b",null,"Pro Version"),", as it adds many features and also supports the development. This message is only displayed in the free version. Thank you!")),React.createElement(a.A,null,React.createElement(a.c,{onClick:function(){return J()}},"Analyze Library"),React.createElement(a.c,{onClick:function(){return A("autoAttach")}},"Auto Attach"),"pending"===u&&r.length>0&&React.createElement(React.Fragment,null,React.createElement(a.c,{className:"secondary",onClick:function(){return Q(r)}},"Rename ",React.createElement("strong",null,r.length)," entries"),React.createElement(a.c,{className:"secondary",onClick:function(){return X(!0,r)}},"Lock ",React.createElement("strong",null,r.length)," entries")),y&&"renamed"===u&&r.length>0&&React.createElement(React.Fragment,null,React.createElement(a.c,{className:"secondary",onClick:function(){return $(r)}},"Undo ",React.createElement("strong",null,r.length)," entries")),React.createElement("div",{style:{flex:1}},M&&React.createElement(a.s,{status:function(e){return"".concat(f," (").concat(e,"%)")},busy:M,value:z.value,max:z.max,onStopClick:z.stop})),!(n||M)&&React.createElement(React.Fragment,null,React.createElement(a.k,{onBlur:function(e){w(e)},value:s,onEnter:function(e){w(e)}}),!s&&React.createElement(a.j,{icon:"search",width:24,style:{position:"relative",left:-34,marginRight:-22},color:"#5a5a5a82"}),s&&React.createElement(a.j,{icon:"close",width:24,style:{position:"relative",left:-34,marginRight:-22},color:a.z.blue,onClick:function(){w("")}})),"all"===u&&React.createElement(React.Fragment,null,React.createElement(a.c,{className:"secondary",onClick:function(){return X(!0)}},"Lock ",React.createElement("strong",null,"All")),React.createElement(a.c,{className:"secondary",onClick:function(){return X(!1)}},"Unlock ",React.createElement("strong",null,"All"))),("all"===u||"pending"===u)&&React.createElement(React.Fragment,null,React.createElement(a.c,{className:"primary",onClick:function(){return A("renameAll")}},"Rename ",React.createElement("strong",null,"All"))),y&&("all"===u||"renamed"===u)&&React.createElement(React.Fragment,null,React.createElement(a.c,{className:"danger",onClick:function(){return A("undoAll")}},"Undo ",React.createElement("strong",null,"All")))),React.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginTop:10,marginBottom:10}},React.createElement(a.t,{value:u,busy:n||M,onChange:function(e){P(e),O(1)}},React.createElement(a.l,{title:l.PENDING,value:"pending",count:c.pending}),React.createElement(a.l,{title:"Renamed",value:"renamed",count:c.renamed}),React.createElement(a.l,{title:"Locked",value:"locked",count:c.locked}),React.createElement(a.l,{title:"All",value:"all",count:c.all})),React.createElement(a.r,{currentPage:g,limit:v,total:i,onClick:function(e){return O(e)}})),React.createElement(a.x,{busy:n||M,data:H,columns:dt,sort:d,onSortChange:function(e,t){k({accessor:e,by:t})},onSelect:function(e){R([].concat(nt(r),nt(e)))},onUnselect:function(e){R(nt(r.filter((function(t){return!e.includes(t)}))))},selectedItems:r}),React.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginTop:10}},React.createElement(a.u,{scrolldown:!0,value:v,onChange:function(e){x(e),O(1),Z(e)}},React.createElement(a.p,{value:5,label:"5 items per page"}),React.createElement(a.p,{value:10,label:"10 items per page"}),React.createElement(a.p,{value:25,label:"25 items per page"}),React.createElement(a.p,{value:50,label:"50 items per page"}),React.createElement(a.p,{value:100,label:"100 items per page"}),React.createElement(a.p,{value:200,label:"200 items per page"})),React.createElement(a.r,{currentPage:g,limit:v,total:i,onClick:function(e){return O(e)}}))),React.createElement(a.o,{isOpen:b.autoAttach,onRequestClose:function(){return A("autoAttach",!1)},title:"Automatically attach your images to your posts",content:ee,ok:p?"Run":"I need the Pro Version",onOkClick:function(){A("autoAttach",!1),p&&V()},onCancelClick:function(){A("autoAttach",!1)}}),React.createElement(a.o,{isOpen:b.renameAll,onRequestClose:function(){return A("renameAll",!1)},title:"You are about to rename all your (unlocked) files",content:"Renaming files is a dangerous operation. Please make sure you made a backup or your entire WordPress install. Should we start?",onOkClick:function(){A("renameAll",!1),Q()},onCancelClick:function(){A("renameAll",!1)}}),React.createElement(a.o,{isOpen:b.undoAll,onRequestClose:function(){return A("undoAll",!1)},title:"You are about to undo the renaming for all your files",content:"Are you sure you would like to proceed?",onOkClick:function(){A("undoAll",!1),$()},onCancelClick:function(){A("undoAll",!1)}}),React.createElement(a.o,{isOpen:L,title:"Success",ok:"Close",content:L,onOkClick:function(){N(""),z.reset()}}),React.createElement(a.o,{isOpen:b.editTitle,onRequestClose:function(){return A("editTitle",!1)},title:"Edit the title",okOnEnter:!0,content:React.createElement(a.k,{autoFocus:!0,id:"mfrh_edit_title",name:"mfrh_edit_title",placeholder:"title...",value:null==G?void 0:G.post_title,onBlur:function(e){return q(et(et({},G),{},{post_title:e}))}}),onOkClick:function(){A("editTitle",!1),K(G)},onCancelClick:function(){A("editTitle",!1)}})))},ht=wp.element.render,yt={fetcher:a.F,revalidateOnFocus:!1};function gt(){Array.from(document.getElementsByClassName("mfrh-renamer-field")).forEach((function(e){var t=e.getAttribute("data-id");ht(React.createElement(j,{natural:!0,mediaId:t}),e)}))}document.addEventListener("DOMContentLoaded",(function(e){var t,n;new MutationObserver((function(){gt()})).observe(document.documentElement,{childList:!0,subtree:!0}),(t=document.getElementById("mfrh-admin-settings"))&&ht(React.createElement(r.a,{value:yt},React.createElement(Ce,null)),t),(n=document.getElementById("mfrh-media-rename"))&&ht(React.createElement(r.a,{value:yt},React.createElement(Qe,null,React.createElement(pt,null))),n),gt()}))}});
|
2 |
//# sourceMappingURL=index.js.map
|
app/vendor.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
(window.wpJsonMfrh=window.wpJsonMfrh||[]).push([[1],[,,function(e,n,t){e.exports=t(110)()},function(e,n,t){"use strict";function r(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function o(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?r(Object(t),!0).forEach((function(n){a(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):r(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var i=o(o({},{black:"#000000",blackRGB:"0, 0, 0",blue:"#007cba",blueRGB:"0, 124, 186",deepBlue:"#134575",finderBorder:"#DEDEDE",lightBlue:"#EBF3FF",lightGray:"#cacaca",lightGray2:"#F5F5F5",lightPurple:"#D8B1FF",gray:"#E8E8E8",green:"#0EA480",darkGray:"#A0A0A0",disabledForm:"#828282",orange:"#daa827",overlay:"rgba(16, 16, 16, 0.92)",red:"#ba4300",redHighlight:"#de5307",header:"#007cba",proGray:"#7F8EA0",progress:"#8414a8",purple:"#956DBE",tableGray:"#FAFAFA",yellow:"#e4b42b",yellowRGB:"224, 156, 54",white:"#ffffff",whiteRGB:"255, 255, 255"}),{},{fontFamily:"Lato",fontSizeH1:"24px",fontSizeH2:"18px",fontSizeText:"13px",fontSizeSmall:"12px",fontSizeSmallButton:"10px",lightShadow:"0px 0px 10px rgba(0,0,0,0.1)"});n.a=i},function(e,n,t){"use strict";(function(e){var r=t(34),o=t(0),a=t.n(o),i=(t(100),t(101)),l=t(102),c=t(48),u=t(46),s=t.n(u);function f(){return(f=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var d=function(e,n){for(var t=[e[0]],r=0,o=n.length;r<o;r+=1)t.push(n[r],e[r+1]);return t},p=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Object(r.typeOf)(e)},h=Object.freeze([]),m=Object.freeze({});function b(e){return"function"==typeof e}function v(e){return e.displayName||e.name||"Component"}function y(e){return e&&"string"==typeof e.styledComponentId}var g=void 0!==e&&(e.env.REACT_APP_SC_ATTR||e.env.SC_ATTR)||"data-styled",w="undefined"!=typeof window&&"HTMLElement"in window,x="boolean"==typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||void 0!==e&&(e.env.REACT_APP_SC_DISABLE_SPEEDY||e.env.SC_DISABLE_SPEEDY)||!1,O=function(){return t.nc};function k(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];throw new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/master/packages/styled-components/src/utils/errors.md#"+e+" for more information."+(t.length>0?" Additional arguments: "+t.join(", "):""))}var C=function(e){var n=document.head,t=e||n,r=document.createElement("style"),o=function(e){for(var n=e.childNodes,t=n.length;t>=0;t--){var r=n[t];if(r&&1===r.nodeType&&r.hasAttribute(g))return r}}(t),a=void 0!==o?o.nextSibling:null;r.setAttribute(g,"active"),r.setAttribute("data-styled-version","5.1.1");var i=O();return i&&r.setAttribute("nonce",i),t.insertBefore(r,a),r},j=function(){function e(e){var n=this.element=C(e);n.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var n=document.styleSheets,t=0,r=n.length;t<r;t++){var o=n[t];if(o.ownerNode===e)return o}k(17)}(n),this.length=0}var n=e.prototype;return n.insertRule=function(e,n){try{return this.sheet.insertRule(n,e),this.length++,!0}catch(e){return!1}},n.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},n.getRule=function(e){var n=this.sheet.cssRules[e];return void 0!==n&&"string"==typeof n.cssText?n.cssText:""},e}(),E=function(){function e(e){var n=this.element=C(e);this.nodes=n.childNodes,this.length=0}var n=e.prototype;return n.insertRule=function(e,n){if(e<=this.length&&e>=0){var t=document.createTextNode(n),r=this.nodes[e];return this.element.insertBefore(t,r||null),this.length++,!0}return!1},n.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},n.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),S=function(){function e(e){this.rules=[],this.length=0}var n=e.prototype;return n.insertRule=function(e,n){return e<=this.length&&(this.rules.splice(e,0,n),this.length++,!0)},n.deleteRule=function(e){this.rules.splice(e,1),this.length--},n.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),_=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var n=e.prototype;return n.indexOfGroup=function(e){for(var n=0,t=0;t<e;t++)n+=this.groupSizes[t];return n},n.insertRules=function(e,n){if(e>=this.groupSizes.length){for(var t=this.groupSizes,r=t.length,o=r;e>=o;)(o<<=1)<0&&k(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(t),this.length=o;for(var a=r;a<o;a++)this.groupSizes[a]=0}for(var i=this.indexOfGroup(e+1),l=0,c=n.length;l<c;l++)this.tag.insertRule(i,n[l])&&(this.groupSizes[e]++,i++)},n.clearGroup=function(e){if(e<this.length){var n=this.groupSizes[e],t=this.indexOfGroup(e),r=t+n;this.groupSizes[e]=0;for(var o=t;o<r;o++)this.tag.deleteRule(t)}},n.getGroup=function(e){var n="";if(e>=this.length||0===this.groupSizes[e])return n;for(var t=this.groupSizes[e],r=this.indexOfGroup(e),o=r+t,a=r;a<o;a++)n+=this.tag.getRule(a)+"/*!sc*/\n";return n},e}(),P=new Map,A=new Map,I=1,M=function(e){if(P.has(e))return P.get(e);var n=I++;return P.set(e,n),A.set(n,e),n},z=function(e){return A.get(e)},T=function(e,n){n>=I&&(I=n+1),P.set(e,n),A.set(n,e)},N="style["+g+'][data-styled-version="5.1.1"]',R=new RegExp("^"+g+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(e,n,t){for(var r,o=t.split(","),a=0,i=o.length;a<i;a++)(r=o[a])&&e.registerName(n,r)},F=function(e,n){for(var t=n.innerHTML.split("/*!sc*/\n"),r=[],o=0,a=t.length;o<a;o++){var i=t[o].trim();if(i){var l=i.match(R);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(T(u,c),L(e,u,l[3]),e.getTag().insertRules(c,r)),r.length=0}else r.push(i)}}},D=w,B={isServer:!w,useCSSOMInjection:!x},H=function(){function e(e,n,t){void 0===e&&(e=B),void 0===n&&(n={}),this.options=f({},B,{},e),this.gs=n,this.names=new Map(t),!this.options.isServer&&w&&D&&(D=!1,function(e){for(var n=document.querySelectorAll(N),t=0,r=n.length;t<r;t++){var o=n[t];o&&"active"!==o.getAttribute(g)&&(F(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return M(e)};var n=e.prototype;return n.reconstructWithOptions=function(n){return new e(f({},this.options,{},n),this.gs,this.names)},n.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},n.getTag=function(){return this.tag||(this.tag=(n=this.options,t=n.isServer,r=n.useCSSOMInjection,o=n.target,e=t?new S(o):r?new j(o):new E(o),new _(e)));var e,n,t,r,o},n.hasNameForId=function(e,n){return this.names.has(e)&&this.names.get(e).has(n)},n.registerName=function(e,n){if(M(e),this.names.has(e))this.names.get(e).add(n);else{var t=new Set;t.add(n),this.names.set(e,t)}},n.insertRules=function(e,n,t){this.registerName(e,n),this.getTag().insertRules(M(e),t)},n.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},n.clearRules=function(e){this.getTag().clearGroup(M(e)),this.clearNames(e)},n.clearTag=function(){this.tag=void 0},n.toString=function(){return function(e){for(var n=e.getTag(),t=n.length,r="",o=0;o<t;o++){var a=z(o);if(void 0!==a){var i=e.names.get(a),l=n.getGroup(o);if(void 0!==i&&0!==l.length){var c=g+".g"+o+'[id="'+a+'"]',u="";void 0!==i&&i.forEach((function(e){e.length>0&&(u+=e+",")})),r+=""+l+c+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),U=function(e,n){for(var t=n.length;t;)e=33*e^n.charCodeAt(--t);return e},q=function(e){return U(5381,e)};var V=/^\s*\/\/.*$/gm;function $(e){var n,t,r,o=void 0===e?m:e,a=o.options,l=void 0===a?m:a,c=o.plugins,u=void 0===c?h:c,s=new i.a(l),f=[],d=function(e){function n(n){if(n)try{e(n+"}")}catch(e){}}return function(t,r,o,a,i,l,c,u,s,f){switch(t){case 1:if(0===s&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(n)}}}((function(e){f.push(e)})),p=function(e,r,o){return r>0&&-1!==o.slice(0,r).indexOf(t)&&o.slice(r-t.length,r)!==t?"."+n:e};function b(e,o,a,i){void 0===i&&(i="&");var l=e.replace(V,""),c=o&&a?a+" "+o+" { "+l+" }":l;return n=i,t=o,r=new RegExp("\\"+t+"\\b","g"),s(a||!o?"":o,c)}return s.use([].concat(u,[function(e,n,o){2===e&&o.length&&o[0].lastIndexOf(t)>0&&(o[0]=o[0].replace(r,p))},d,function(e){if(-2===e){var n=f;return f=[],n}}])),b.hash=u.length?u.reduce((function(e,n){return n.name||k(15),U(e,n.name)}),5381).toString():"",b}var W=a.a.createContext(),G=(W.Consumer,a.a.createContext()),K=(G.Consumer,new H),Y=$();function X(){return Object(o.useContext)(W)||K}function J(){return Object(o.useContext)(G)||Y}var Z=function(){function e(e,n){var t=this;this.inject=function(e){e.hasNameForId(t.id,t.name)||e.insertRules(t.id,t.name,Y.apply(void 0,t.stringifyArgs))},this.toString=function(){return k(12,String(t.name))},this.name=e,this.id="sc-keyframes-"+e,this.stringifyArgs=n}return e.prototype.getName=function(){return this.name},e}(),Q=/([A-Z])/g,ee=/^ms-/;function ne(e){return e.replace(Q,"-$1").toLowerCase().replace(ee,"-ms-")}var te=function(e){return null==e||!1===e||""===e},re=function e(n,t){var r=[];return Object.keys(n).forEach((function(t){if(!te(n[t])){if(p(n[t]))return r.push.apply(r,e(n[t],t)),r;if(b(n[t]))return r.push(ne(t)+":",n[t],";"),r;r.push(ne(t)+": "+(o=t,(null==(a=n[t])||"boolean"==typeof a||""===a?"":"number"!=typeof a||0===a||o in l.a?String(a).trim():a+"px")+";"))}var o,a;return r})),t?[t+" {"].concat(r,["}"]):r};function oe(e,n,t){if(Array.isArray(e)){for(var r,o=[],a=0,i=e.length;a<i;a+=1)""!==(r=oe(e[a],n,t))&&(Array.isArray(r)?o.push.apply(o,r):o.push(r));return o}return te(e)?"":y(e)?"."+e.styledComponentId:b(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!n?e:oe(e(n),n,t):e instanceof Z?t?(e.inject(t),e.getName()):e:p(e)?re(e):e.toString();var l}function ae(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];return b(e)||p(e)?oe(d(h,[e].concat(t))):0===t.length&&1===e.length&&"string"==typeof e[0]?e:oe(d(e,t))}var ie=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},le=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function ce(e,n,t){var r=e[t];ie(n)&&ie(r)?ue(r,n):e[t]=n}function ue(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];for(var o=0,a=t;o<a.length;o++){var i=a[o];if(ie(i))for(var l in i)le(l)&&ce(e,i[l],l)}return e}var se=/(a)(d)/gi,fe=function(e){return String.fromCharCode(e+(e>25?39:97))};function de(e){var n,t="";for(n=Math.abs(e);n>52;n=n/52|0)t=fe(n%52)+t;return(fe(n%52)+t).replace(se,"$1-$2")}function pe(e){for(var n=0;n<e.length;n+=1){var t=e[n];if(b(t)&&!y(t))return!1}return!0}var he=function(){function e(e,n){this.rules=e,this.staticRulesId="",this.isStatic=pe(e),this.componentId=n,this.baseHash=q(n),H.registerId(n)}return e.prototype.generateAndInjectStyles=function(e,n,t){var r=this.componentId;if(this.isStatic&&!t.hash){if(this.staticRulesId&&n.hasNameForId(r,this.staticRulesId))return this.staticRulesId;var o=oe(this.rules,e,n).join(""),a=de(U(this.baseHash,o.length)>>>0);if(!n.hasNameForId(r,a)){var i=t(o,"."+a,void 0,r);n.insertRules(r,a,i)}return this.staticRulesId=a,a}for(var l=this.rules.length,c=U(this.baseHash,t.hash),u="",s=0;s<l;s++){var f=this.rules[s];if("string"==typeof f)u+=f;else{var d=oe(f,e,n),p=Array.isArray(d)?d.join(""):d;c=U(c,p+s),u+=p}}var h=de(c>>>0);if(!n.hasNameForId(r,h)){var m=t(u,"."+h,void 0,r);n.insertRules(r,h,m)}return h},e}(),me=(new Set,function(e,n,t){return void 0===t&&(t=m),e.theme!==t.theme&&e.theme||n||t.theme}),be=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ve=/(^-|-$)/g;function ye(e){return e.replace(be,"-").replace(ve,"")}function ge(e){return"string"==typeof e&&!0}var we=function(e){return de(q(e)>>>0)};var xe=a.a.createContext();xe.Consumer;var Oe={};function ke(e,n,t){var r=e.attrs,a=e.componentStyle,i=e.defaultProps,l=e.foldedComponentIds,u=e.shouldForwardProp,s=e.styledComponentId,d=e.target;Object(o.useDebugValue)(s);var p=function(e,n,t){void 0===e&&(e=m);var r=f({},n,{theme:e}),o={};return t.forEach((function(e){var n,t,a,i=e;for(n in b(i)&&(i=i(r)),i)r[n]=o[n]="className"===n?(t=o[n],a=i[n],t&&a?t+" "+a:t||a):i[n]})),[r,o]}(me(n,Object(o.useContext)(xe),i)||m,n,r),h=p[0],v=p[1],y=function(e,n,t,r){var a=X(),i=J(),l=e.isStatic&&!n?e.generateAndInjectStyles(m,a,i):e.generateAndInjectStyles(t,a,i);return Object(o.useDebugValue)(l),l}(a,r.length>0,h),g=t,w=v.$as||n.$as||v.as||n.as||d,x=ge(w),O=v!==n?f({},n,{},v):n,k=u||x&&c.a,C={};for(var j in O)"$"!==j[0]&&"as"!==j&&("forwardedAs"===j?C.as=O[j]:k&&!k(j,c.a)||(C[j]=O[j]));return n.style&&v.style!==n.style&&(C.style=f({},n.style,{},v.style)),C.className=Array.prototype.concat(l,s,y!==s?y:null,n.className,v.className).filter(Boolean).join(" "),C.ref=g,Object(o.createElement)(w,C)}function Ce(e,n,t){var r=y(e),o=!ge(e),i=n.displayName,l=void 0===i?function(e){return ge(e)?"styled."+e:"Styled("+v(e)+")"}(e):i,c=n.componentId,u=void 0===c?function(e,n){var t="string"!=typeof e?"sc":ye(e);Oe[t]=(Oe[t]||0)+1;var r=t+"-"+we(t+Oe[t]);return n?n+"-"+r:r}(n.displayName,n.parentComponentId):c,d=n.attrs,p=void 0===d?h:d,m=n.displayName&&n.componentId?ye(n.displayName)+"-"+n.componentId:n.componentId||u,b=r&&e.attrs?Array.prototype.concat(e.attrs,p).filter(Boolean):p,g=n.shouldForwardProp;r&&e.shouldForwardProp&&(g=g?function(t,r){return e.shouldForwardProp(t,r)&&n.shouldForwardProp(t,r)}:e.shouldForwardProp);var w,x=new he(r?e.componentStyle.rules.concat(t):t,m),O=function(e,n){return ke(w,e,n)};return O.displayName=l,(w=a.a.forwardRef(O)).attrs=b,w.componentStyle=x,w.displayName=l,w.shouldForwardProp=g,w.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):h,w.styledComponentId=m,w.target=r?e.target:e,w.withComponent=function(e){var r=n.componentId,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(n,["componentId"]),a=r&&r+"-"+(ge(e)?e:ye(v(e)));return Ce(e,f({},o,{attrs:b,componentId:a}),t)},Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(n){this._foldedDefaultProps=r?ue({},e.defaultProps,n):n}}),w.toString=function(){return"."+w.styledComponentId},o&&s()(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,self:!0,styledComponentId:!0,target:!0,withComponent:!0}),w}var je=function(e){return function e(n,t,o){if(void 0===o&&(o=m),!Object(r.isValidElementType)(t))return k(1,String(t));var a=function(){return n(t,o,ae.apply(void 0,arguments))};return a.withConfig=function(r){return e(n,t,f({},o,{},r))},a.attrs=function(r){return e(n,t,f({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},a}(Ce,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){je[e]=je(e)}));n.a=je}).call(this,t(113))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.InlineIcon=n.Icon=void 0;var r,o=(r=t(0))&&r.__esModule?r:{default:r};function a(e){return(a="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})(e)}function i(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var l=0,c=/(-?[0-9.]*[0-9]+[0-9.]*)/g,u=/^-?[0-9.]*[0-9]+[0-9.]*$/g,s=["width","height","inline","hFlip","vFlip","flip","rotate","align","color","box"],f={left:0,top:0,width:16,height:16,rotate:0,hFlip:!1,vFlip:!1};var d=function(){function e(n){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this._item=n}var n,t,r;return n=e,r=[{key:"splitAttributes",value:function(e){var n={icon:Object.create(null),node:Object.create(null)};return Object.keys(e).forEach((function(t){n[-1===s.indexOf(t)?"node":"icon"][t]=e[t]})),n}},{key:"calculateDimension",value:function(e,n,t){if(1===n)return e;if(t=void 0===t?100:t,"number"==typeof e)return Math.ceil(e*n*t)/t;var r=e.split(c);if(null===r||!r.length)return null;for(var o,a=[],i=r.shift(),l=u.test(i);;){if(l?(o=parseFloat(i),isNaN(o)?a.push(i):a.push(Math.ceil(o*n*t)/t)):a.push(i),void 0===(i=r.shift()))return a.join("");l=!l}}},{key:"replaceIDs",value:function(e){var n,t,r=/\sid="(\S+)"/g,o=[];function a(e,n,t){for(var r=0;-1!==(r=t.indexOf(e,r));)t=t.slice(0,r)+n+t.slice(r+e.length),r+=n.length;return t}for(;n=r.exec(e);)o.push(n[1]);return o.length?(t="IconifyId-"+Date.now().toString(16)+"-"+(16777216*Math.random()|0).toString(16)+"-",o.forEach((function(n){var r=t+l;l++,e=a('="'+n+'"','="'+r+'"',e),e=a('="#'+n+'"','="#'+r+'"',e),e=a("(#"+n+")","(#"+r+")",e)})),e):e}}],(t=[{key:"getAttributes",value:function(n){var t=this._item;"object"!==a(n)&&(n=Object.create(null));var r={horizontal:"center",vertical:"middle",slice:!1},o={rotate:t.rotate,hFlip:t.hFlip,vFlip:t.vFlip},i=Object.create(null),l=Object.create(null),c=!0===n.inline||"true"===n.inline||"1"===n.inline,u={left:t.left,top:c?t.inlineTop:t.top,width:t.width,height:c?t.inlineHeight:t.height};if(["hFlip","vFlip"].forEach((function(e){void 0===n[e]||!0!==n[e]&&"true"!==n[e]&&"1"!==n[e]||(o[e]=!o[e])})),void 0!==n.flip&&n.flip.toLowerCase().split(/[\s,]+/).forEach((function(e){switch(e){case"horizontal":o.hFlip=!o.hFlip;break;case"vertical":o.vFlip=!o.vFlip}})),void 0!==n.rotate){var s=n.rotate;if("number"==typeof s)o.rotate+=s;else if("string"==typeof s){var f=s.replace(/^-?[0-9.]*/,"");if(""===f)s=parseInt(s),isNaN(s)||(o.rotate+=s);else if(f!==s){var d=!1;switch(f){case"%":d=25;break;case"deg":d=90}d&&(s=parseInt(s.slice(0,s.length-f.length)),isNaN(s)||(o.rotate+=Math.round(s/d)))}}}var p,h=[];switch(o.hFlip?o.vFlip?o.rotate+=2:(h.push("translate("+(u.width+u.left)+" "+(0-u.top)+")"),h.push("scale(-1 1)"),u.top=u.left=0):o.vFlip&&(h.push("translate("+(0-u.left)+" "+(u.height+u.top)+")"),h.push("scale(1 -1)"),u.top=u.left=0),o.rotate%4){case 1:p=u.height/2+u.top,h.unshift("rotate(90 "+p+" "+p+")"),0===u.left&&0===u.top||(p=u.left,u.left=u.top,u.top=p),u.width!==u.height&&(p=u.width,u.width=u.height,u.height=p);break;case 2:h.unshift("rotate(180 "+(u.width/2+u.left)+" "+(u.height/2+u.top)+")");break;case 3:p=u.width/2+u.left,h.unshift("rotate(-90 "+p+" "+p+")"),0===u.left&&0===u.top||(p=u.left,u.left=u.top,u.top=p),u.width!==u.height&&(p=u.width,u.width=u.height,u.height=p)}var m,b,v=n.width?n.width:null,y=n.height?n.height:null;null===v&&null===y&&(y="1em"),null!==v&&null!==y?(m=v,b=y):null!==v?(m=v,b=e.calculateDimension(m,u.height/u.width)):(b=y,m=e.calculateDimension(b,u.width/u.height)),!1!==m&&(l.width="auto"===m?u.width:m),!1!==b&&(l.height="auto"===b?u.height:b),c&&0!==t.verticalAlign&&(i["vertical-align"]=t.verticalAlign+"em"),void 0!==n.align&&n.align.toLowerCase().split(/[\s,]+/).forEach((function(e){switch(e){case"left":case"right":case"center":r.horizontal=e;break;case"top":case"bottom":case"middle":r.vertical=e;break;case"crop":r.slice=!0;break;case"meet":r.slice=!1}})),l.preserveAspectRatio=function(e){var n;switch(e.horizontal){case"left":n="xMin";break;case"right":n="xMax";break;default:n="xMid"}switch(e.vertical){case"top":n+="YMin";break;case"bottom":n+="YMax";break;default:n+="YMid"}return n+=e.slice?" slice":" meet"}(r),l.viewBox=u.left+" "+u.top+" "+u.width+" "+u.height;var g=e.replaceIDs(t.body);return void 0!==n.color&&(g=g.replace(/currentColor/g,n.color)),h.length&&(g='<g transform="'+h.join(" ")+'">'+g+"</g>"),!0!==n.box&&"true"!==n.box&&"1"!==n.box||(g+='<rect x="'+u.left+'" y="'+u.top+'" width="'+u.width+'" height="'+u.height+'" fill="rgba(0, 0, 0, 0)" />'),{attributes:l,body:g,style:i}}},{key:"getSVG",value:function(n,t){var r=e.splitAttributes(n),o=this.getAttributes(r.icon),a='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"';return t&&Object.keys(r.node).forEach((function(e){a+=" "+e+'="'+r.node[e]+'"'})),Object.keys(o.attributes).forEach((function(e){a+=" "+e+'="'+o.attributes[e]+'"'})),a+=' style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);',Object.keys(o.style).forEach((function(e){a+=" "+e+": "+o.style[e]+";"})),n&&void 0!==n.style&&(a+=n.style),a+='">',a+=o.body+"</svg>"}}])&&i(n.prototype,t),r&&i(n,r),e}();function p(e,n){if("object"!==a(e.icon))return null;var t=d.splitAttributes(e),r=t.icon,i=t.node;delete i.icon,void 0===r.inline&&(r.inline=n);var l=new d(function(e){var n,t=Object.create(null);for(n in f)t[n]=f[n];for(n in e)t[n]=e[n];return void 0===t.inlineTop&&(t.inlineTop=t.top),void 0===t.inlineHeight&&(t.inlineHeight=t.height),void 0===t.verticalAlign&&(t.verticalAlign=t.height%7==0&&t.height%8!=0?-.143:-.125),t}(e.icon)).getAttributes(r),c={transform:"rotate(360deg)"};if(void 0!==l.style["vertical-align"]&&(c.verticalAlign=l.style["vertical-align"]),void 0!==e.style)for(var u in e.style)c[u]=e.style[u];var s,p={xmlns:"http://www.w3.org/2000/svg",focusable:!1,style:c};for(s in i)p[s]=i[s];for(s in l.attributes)p[s]=l.attributes[s];return p.dangerouslySetInnerHTML={__html:l.body},o.default.createElement("svg",p,null)}var h=function(e){return p(e,!1)};n.Icon=h;n.InlineIcon=function(e){return p(e,!0)};var m=h;n.default=m},function(e,n,t){"use strict";function r(){return(r=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,n){return(a=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function l(e,n,t){return(l=i()?Reflect.construct:function(e,n,t){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(e,r));return t&&a(o,t.prototype),o}).apply(null,arguments)}function c(e){var n="function"==typeof Map?new Map:void 0;return(c=function(e){if(null===e||(t=e,-1===Function.toString.call(t).indexOf("[native code]")))return e;var t;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return l(e,arguments,o(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),a(r,e)})(e)}function u(e){return(u="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})(e)}t.d(n,"a",(function(){return F}));var s=function(e){var n,t;function r(n){return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/master/src/internalHelpers/errors.md#"+n+" for more information.")||this)}return t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,n.__proto__=t,r}(c(Error));function f(e){return Math.round(255*e)}function d(e,n,t){return f(e)+","+f(n)+","+f(t)}function p(e,n,t,r){if(void 0===r&&(r=d),0===n)return r(t,t,t);var o=(e%360+360)%360/60,a=(1-Math.abs(2*t-1))*n,i=a*(1-Math.abs(o%2-1)),l=0,c=0,u=0;o>=0&&o<1?(l=a,c=i):o>=1&&o<2?(l=i,c=a):o>=2&&o<3?(c=a,u=i):o>=3&&o<4?(c=i,u=a):o>=4&&o<5?(l=i,u=a):o>=5&&o<6&&(l=a,u=i);var s=t-a/2;return r(l+s,c+s,u+s)}var h={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var m=/^#[a-fA-F0-9]{6}$/,b=/^#[a-fA-F0-9]{8}$/,v=/^#[a-fA-F0-9]{3}$/,y=/^#[a-fA-F0-9]{4}$/,g=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,w=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,x=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,O=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function k(e){if("string"!=typeof e)throw new s(3);var n=function(e){if("string"!=typeof e)return e;var n=e.toLowerCase();return h[n]?"#"+h[n]:e}(e);if(n.match(m))return{red:parseInt(""+n[1]+n[2],16),green:parseInt(""+n[3]+n[4],16),blue:parseInt(""+n[5]+n[6],16)};if(n.match(b)){var t=parseFloat((parseInt(""+n[7]+n[8],16)/255).toFixed(2));return{red:parseInt(""+n[1]+n[2],16),green:parseInt(""+n[3]+n[4],16),blue:parseInt(""+n[5]+n[6],16),alpha:t}}if(n.match(v))return{red:parseInt(""+n[1]+n[1],16),green:parseInt(""+n[2]+n[2],16),blue:parseInt(""+n[3]+n[3],16)};if(n.match(y)){var r=parseFloat((parseInt(""+n[4]+n[4],16)/255).toFixed(2));return{red:parseInt(""+n[1]+n[1],16),green:parseInt(""+n[2]+n[2],16),blue:parseInt(""+n[3]+n[3],16),alpha:r}}var o=g.exec(n);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=w.exec(n);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])};var i=x.exec(n);if(i){var l="rgb("+p(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",c=g.exec(l);if(!c)throw new s(4,n,l);return{red:parseInt(""+c[1],10),green:parseInt(""+c[2],10),blue:parseInt(""+c[3],10)}}var u=O.exec(n);if(u){var f="rgb("+p(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",d=g.exec(f);if(!d)throw new s(4,n,f);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+u[4])}}throw new s(5)}function C(e){return function(e){var n,t=e.red/255,r=e.green/255,o=e.blue/255,a=Math.max(t,r,o),i=Math.min(t,r,o),l=(a+i)/2;if(a===i)return void 0!==e.alpha?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var c=a-i,u=l>.5?c/(2-a-i):c/(a+i);switch(a){case t:n=(r-o)/c+(r<o?6:0);break;case r:n=(o-t)/c+2;break;default:n=(t-r)/c+4}return n*=60,void 0!==e.alpha?{hue:n,saturation:u,lightness:l,alpha:e.alpha}:{hue:n,saturation:u,lightness:l}}(k(e))}var j=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function E(e){var n=e.toString(16);return 1===n.length?"0"+n:n}function S(e){return E(Math.round(255*e))}function _(e,n,t){return j("#"+S(e)+S(n)+S(t))}function P(e,n,t){return p(e,n,t,_)}function A(e,n,t){if("number"==typeof e&&"number"==typeof n&&"number"==typeof t)return P(e,n,t);if("object"===u(e)&&void 0===n&&void 0===t)return P(e.hue,e.saturation,e.lightness);throw new s(1)}function I(e,n,t,r){if("number"==typeof e&&"number"==typeof n&&"number"==typeof t&&"number"==typeof r)return r>=1?P(e,n,t):"rgba("+p(e,n,t)+","+r+")";if("object"===u(e)&&void 0===n&&void 0===t&&void 0===r)return e.alpha>=1?P(e.hue,e.saturation,e.lightness):"rgba("+p(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new s(2)}function M(e,n,t){if("number"==typeof e&&"number"==typeof n&&"number"==typeof t)return j("#"+E(e)+E(n)+E(t));if("object"===u(e)&&void 0===n&&void 0===t)return j("#"+E(e.red)+E(e.green)+E(e.blue));throw new s(6)}function z(e,n,t,r){if("string"==typeof e&&"number"==typeof n){var o=k(e);return"rgba("+o.red+","+o.green+","+o.blue+","+n+")"}if("number"==typeof e&&"number"==typeof n&&"number"==typeof t&&"number"==typeof r)return r>=1?M(e,n,t):"rgba("+e+","+n+","+t+","+r+")";if("object"===u(e)&&void 0===n&&void 0===t&&void 0===r)return e.alpha>=1?M(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new s(7)}function T(e){if("object"!==u(e))throw new s(8);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return z(e);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return M(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha}(e))return I(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return A(e);throw new s(8)}function N(e){return function e(n,t,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=t?n.apply(this,o):e(n,t,o)}}(e,e.length,[])}function R(e,n,t){return Math.max(e,Math.min(n,t))}function L(e,n){if("transparent"===n)return n;var t=C(n);return T(r({},t,{lightness:R(0,1,t.lightness+parseFloat(e))}))}var F=N(L)},function(e,n,t){"use strict";t.d(n,"b",(function(){return d})),t.d(n,"e",(function(){return h})),t.d(n,"c",(function(){return b})),t.d(n,"d",(function(){return y})),t.d(n,"a",(function(){return p}));var r=t(0),o=t(47),a=t.n(o);function i(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=s(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){t=e[Symbol.iterator]()},n:function(){var e=t.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(l)throw a}}}}function l(e,n,t,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,o)}function c(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var a=e.apply(n,t);function i(e){l(a,r,o,i,c,"next",e)}function c(e){l(a,r,o,i,c,"throw",e)}i(void 0)}))}}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(t.push(i.value),!n||t.length!==n);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return t}(e,n)||s(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,n){if(e){if("string"==typeof e)return f(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?f(e,n):void 0}}function f(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=Object(r.useState)(n),a=u(o,2),i=a[0],l=a[1],c=Object(r.useState)(null),s=u(c,2),f=s[0],d=s[1],p=Object(r.useState)(t),h=u(p,2),m=h[0],b=h[1],v=Object(r.useState)(0),y=u(v,2),g=y[0],w=y[1];return Object(r.useEffect)((function(){void 0!==e&&(e.success?(d(null),l(e.data),w(e.total?e.total:0)):d(e.error)),b(void 0===e)}),[e]),{busy:m,data:i,total:g,error:f}},p=function(){var e=Object(r.useRef)(),n=u(Object(r.useState)({}),2),t=n[0],o=n[1];return Object(r.useEffect)((function(){if(e&&e.current){var n=new ResizeObserver((function(e){var n=e[0];n.contentRect&&o({width:n.contentRect.left+n.contentRect.right,height:n.contentRect.top+n.contentRect.bottom})}));return n.observe(e.current),function(){n.unobserve(e.current)}}}),[]),{ref:e,width:t.width?t.width:0,height:t.height?t.height:0}},h=function(e){var n=Object(r.useRef)(),t=function(t){e&&!n.current.contains(t.target)&&e()};return Object(r.useEffect)((function(){return document.addEventListener("mousedown",t),function(){document.removeEventListener("mousedown",t)}})),n},m=null,b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!m){var n=e.concurrency,t=void 0===n?2:n;m=new a.a({concurrency:t,autoStart:!0})}var r=function(){var e=c(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.add(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return{runTask:r}},v=new a.a({concurrency:1,autoStart:!1}),y=function(){var e=u(Object(r.useState)(new AbortController),2),n=e[0],t=e[1],o=Object(r.useRef)(!1),a=Object(r.useRef)(0),l=u(Object(r.useState)(null),2),s=l[0],f=l[1],d=u(Object(r.useState)(!1),2),p=d[0],h=d[1],m=u(Object(r.useState)(0),2),b=m[0],y=m[1],g=u(Object(r.useState)(!1),2),w=g[0],x=g[1],O=u(Object(r.useState)(!1),2),k=O[0],C=O[1],j=u(Object(r.useState)(0),2),E=j[0],S=j[1],_=function(){var e=c(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new AbortController,t(n),x(!1),a.current=0,o.current=!1,h(!1),C(!1),S(0),y(0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),P=function(){var e=c(regeneratorRuntime.mark((function e(n){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new Promise((function(e,t){x(!1),a.current=0,o.current=!1,h(!1),C(!1),N(n),f(!0),v.start(),v.onIdle().then((function(){z(),e()}))})),e.abrupt("return",t);case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),A=function(){var e=c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:0,v.pause(),h(!0);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:0,x(!1),h(!1),v.start();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),M=function(){var e=c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:0,v.pause(),n.abort(),f(!1),x(!1),C(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),z=function(){var e=c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:0,C(!0),f(!1);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),T=function(){var e=c(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:v.add(c(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t(n.signal);case 3:(r=e.sent)&&r.success||console.error("[useNekoTasks] Task returned nothing.",r),r.success||(a.current++,o.current||(x(r.error),A())),e.next=17;break;case 8:if(e.prev=8,e.t0=e.catch(0),"AbortError"!==e.t0.name){e.next=15;break}return console.log("Aborted"),e.abrupt("return");case 15:a.current++,o.current||(x("An error was caught (more information in the console)."),A());case 17:return e.prev=17,S((function(e){return e+1})),e.finish(17);case 20:case"end":return e.stop()}}),e,null,[[0,8,17,20]])})))),y((function(e){return e+1}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),N=function(){var e=c(regeneratorRuntime.mark((function e(n){var t,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:v.clear(),t=i(n);try{for(t.s();!(r=t.n()).done;)o=r.value,T(o)}catch(e){t.e(e)}finally{t.f()}S(0);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),R=Object(r.useCallback)((function(){o.current=!0}),[]),L=Object(r.useCallback)((function(){return a.current}),[]);return{start:P,stop:M,pause:A,resume:I,reset:_,addTask:T,setAlwaysSkip:R,getErrorCount:L,error:w,success:k,busy:s,paused:p,value:E,max:b}}},function(e,n,t){"use strict";t.d(n,"a",(function(){return h}));var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(3);function u(){return(u=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function s(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function f(){var e=function(e,n){n||(n=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n background-color: ",";\n position: relative;\n border-radius: 10px;\n color: ",";\n font-family: ",";\n font-size: 9px;\n line-height: 10px;\n padding: 5px 8px;\n text-transform: uppercase;\n text-decoration: none;\n\n &:hover {\n color: ",";\n background-color: #f78c1f;\n }\n\n &.inline {\n display: inline;\n margin-left: 5px;\n vertical-align: middle;\n }\n"]);return f=function(){return e},e}var d=l.a.a(f(),c.a.yellow,c.a.white,c.a.fontFamily,c.a.white),p=function(e){var n=e.show,t=void 0===n||n,r=e.className,a=s(e,["show","className"]);return t?o.a.createElement(d,u({href:"https://store.meowapps.com",target:"_blank",className:"".concat(r||"")},a),"Pro Only"):null},h=function(e){return o.a.createElement(p,e)};h.propTypes={show:i.a.bool,className:i.a.string},h.defaultProps={show:!0,className:void 0}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6l1.41-1.42z" fill="currentColor"/>',width:24,height:24}},function(e,n,t){"use strict";t.d(n,"a",(function(){return w}));var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(6),u=t(5),s=t(25),f=t(19);function d(){return(d=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function p(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function h(){var e=b(["\n\n path {\n fill: ",";\n }\n\n ","\n\n &.nui-clickable {\n cursor: pointer;\n }\n\n &.spin {\n animation-name: spin;\n animation-duration: 700ms;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n\n @keyframes spin {\n 0% {\n transform: rotate(360deg);\n }\n 100% {\n transform: rotate(0deg);\n }\n }\n }\n\n &.disabled {\n pointer-events: none;\n opacity: 0.35;\n cursor: default;\n }\n"]);return h=function(){return e},e}function m(){var e=b(["\n display: flex;\n align-items: center;\n"]);return m=function(){return e},e}function b(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var v=l.a.div(m()),y=Object(l.a)(u.Icon)(h(),(function(e){return e.color}),(function(e){return n=e.color,(t=e.hoverColor)?"\n &:hover {\n path {\n fill: ".concat(t,";\n }\n }\n "):n?"\n &:hover {\n path {\n fill: ".concat(Object(c.a)(.1,n),";\n }\n }\n "):void 0;var n,t})),g=function(e){var n=e.icon,t=e.spinning,r=void 0!==t&&t,a=e.className,i=void 0===a?"":a,l=e.title,c=e.tooltip,u=e.containerStyle,h=e.color,m=e.hoverColor,b=e.disabled,g=void 0!==b&&b,w=p(e,["icon","spinning","className","title","tooltip","containerStyle","color","hoverColor","disabled"]);w.width||w.height||(w.width=w.height=30);var x=function(){return"string"==typeof n?s.a[n]||null:n},O="nui-icon ".concat(i).concat(w.onClick?" nui-clickable":"").concat(r?" spin":"").concat(g?" disabled":"");return c?o.a.createElement(f.a,{text:c.text,position:c.position||"top"},o.a.createElement(v,{style:u},o.a.createElement(y,d({icon:x(),className:O,color:h,hoverColor:m},w)))):o.a.createElement(v,{style:u,title:l},o.a.createElement(y,d({icon:x(),className:O,color:h,hoverColor:m},w)),c?o.a.createElement(f.a,null,c):null)},w=function(e){return o.a.createElement(g,e)};w.propTypes={icon:i.a.oneOfType([i.a.instanceOf(u.IconifyIcon),i.a.oneOf(["lock","lock-open","file-undo","chevron-double-left","chevron-double-right","chevron-left","chevron-right","chevron-down","chevron-up","pause","play","replay","check","stop","delete","undo","alert","database","pencil","tools","cog","close","cat","upload"])]),color:i.a.string,spinning:i.a.bool,className:i.a.string,tooltip:i.a.string},w.defaultProps={icon:void 0,color:void 0,spinning:!1,className:"",tooltip:void 0}},function(e,n,t){"use strict";t.d(n,"a",(function(){return v}));var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(6),u=t(3),s=t(5),f=t(25);function d(){return(d=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function p(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function h(){var e=function(e,n){n||(n=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n display: inline-block;\n box-sizing: border-box;\n height: 30px;\n min-width: 6em;\n border: none;\n border-radius: 4px;\n text-align: center;\n font-family: ",";\n font-size: ",";\n padding: 0 15px;\n\n background-color: ",";\n color: white;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ",";\n }\n\n :disabled {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n &.has-icon {\n align-items: center;\n display: inline-flex;\n padding: 2.5px 6px 2.5px 4px;\n }\n\n &.secondary {\n background-color: ",";\n border: 1px solid ",";\n color: ",";\n\n &:hover {\n background-color: ",";\n }\n }\n\n &.danger {\n background-color: ",";\n border-color: ",";\n\n\t &:hover {\n\t\t background-color: ",";\n\t }\n }\n\n &.success {\n background-color: ",";\n border-color: ",";\n\n\t &:hover {\n\t\t background-color: ",";\n\t }\n }\n\n & + button {\n margin-left: .25rem;\n }\n\n &.small {\n font-size: ",";\n height: 24px;\n }\n\n &.header {\n background-color: ",";\n border-color: ",";\n height: 40px;\n padding: 0 20px;\n\n\t &:hover {\n\t\t background-color: ",";\n\t }\n }\n\n ","\n"]);return h=function(){return e},e}var m=Object(l.a)((function(e){var n=e.className,t=e.icon,r=void 0===t?null:t,a=e.onClick,i=e.disabled,l=void 0!==i&&i,c=e.color,u=void 0===c?null:c,h=e.small,m=e.children,b=p(e,["className","icon","onClick","disabled","color","small","children"]),v=!!r,y="nui-button ".concat(n||"").concat(v?" has-icon":"").concat(u?" custom-color":"").concat(h?" small":"");return o.a.createElement("button",d({type:"button",className:y,onClick:a,disabled:l},b),v&&o.a.createElement(s.Icon,{icon:"string"==typeof r?f.a[r]||null:r,width:"24",height:"24",style:{marginRight:"4px"}}),o.a.createElement("span",null,m))}))(h(),u.a.fontFamily,u.a.fontSizeText,u.a.blue,Object(c.a)(.1,u.a.blue),u.a.lightBlue,u.a.blue,u.a.blue,Object(c.a)(.1,u.a.lightBlue),u.a.red,u.a.red,Object(c.a)(.1,u.a.red),u.a.green,u.a.green,Object(c.a)(.1,u.a.green),u.a.fontSizeSmallButton,u.a.deepBlue,u.a.deepBlue,Object(c.a)(.1,u.a.deepBlue),(function(e){return b(e.color)})),b=function(e){if(e)return"\n &.custom-color {\n background-color: ".concat(e,";\n border: 1px solid ").concat(e,";\n\n &:hover {\n background-color: ").concat(Object(c.a)(.1,e),";\n }\n }\n ")},v=function(e){return o.a.createElement(m,e)};v.propTypes={className:i.a.oneOf(["primary","secondary","danger","success","header"]),disabled:i.a.bool,icon:i.a.oneOfType([i.a.instanceOf(s.IconifyIcon),i.a.oneOf(["setting","edit","trash"])]),color:i.a.string,onClick:i.a.func.isRequired},v.defaultProps={className:"primary",disabled:!1,icon:null,color:null,onClick:function(){}}},function(e,n,t){"use strict";t.d(n,"a",(function(){return I}));var r=t(0),o=t(71),a=t.n(o);function i(){return"undefined"==typeof document||void 0===document.visibilityState||"hidden"!==document.visibilityState}function l(){return void 0===navigator.onLine||navigator.onLine}var c=new WeakMap,u=0;var s=new(function(){function e(e){void 0===e&&(e={}),this.__cache=new Map(Object.entries(e)),this.__listeners=[]}return e.prototype.get=function(e){var n=this.serializeKey(e)[0];return this.__cache.get(n)},e.prototype.set=function(e,n,t){void 0===t&&(t=!0);var r=this.serializeKey(e)[0];this.__cache.set(r,n),t&&A(e,n,!1),this.notify()},e.prototype.keys=function(){return Array.from(this.__cache.keys())},e.prototype.has=function(e){var n=this.serializeKey(e)[0];return this.__cache.has(n)},e.prototype.clear=function(e){void 0===e&&(e=!0),e&&this.__cache.forEach((function(e){return A(e,null,!1)})),this.__cache.clear(),this.notify()},e.prototype.delete=function(e,n){void 0===n&&(n=!0);var t=this.serializeKey(e)[0];n&&A(e,null,!1),this.__cache.delete(t),this.notify()},e.prototype.serializeKey=function(e){var n=null;if("function"==typeof e)try{e=e()}catch(n){e=""}return Array.isArray(e)?(n=e,e=function(e){if(!e.length)return"";for(var n="arg",t=0;t<e.length;++t){var r=void 0;null===e[t]||"object"!=typeof e[t]?r="string"==typeof e[t]?'"'+e[t]+'"':String(e[t]):c.has(e[t])?r=c.get(e[t]):(r=u,c.set(e[t],u++)),n+="@"+r}return n}(e)):e=String(e||""),[e,n,e?"err@"+e:""]},e.prototype.subscribe=function(e){var n=this;if("function"!=typeof e)throw new Error("Expected the listener to be a function.");var t=!0;return this.__listeners.push(e),function(){if(t){t=!1;var r=n.__listeners.indexOf(e);r>-1&&(n.__listeners[r]=n.__listeners[n.__listeners.length-1],n.__listeners.length--)}}},e.prototype.notify=function(){for(var e=0,n=this.__listeners;e<n.length;e++){(0,n[e])()}},e}()),f={},d={},p={},h={},m={};var b="undefined"!=typeof window&&navigator.connection&&-1!==["slow-2g","2g"].indexOf(navigator.connection.effectiveType),v={onLoadingSlow:function(){},onSuccess:function(){},onError:function(){},onErrorRetry:function(e,n,t,r,o){if(i()&&!(t.errorRetryCount&&o.retryCount>t.errorRetryCount)){var a=Math.min(o.retryCount||0,8),l=~~((Math.random()+.5)*(1<<a))*t.errorRetryInterval;setTimeout(r,l,o)}},errorRetryInterval:1e3*(b?10:5),focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:1e3*(b?5:3),refreshInterval:0,revalidateOnFocus:!0,revalidateOnReconnect:!0,refreshWhenHidden:!1,refreshWhenOffline:!1,shouldRetryOnError:!0,suspense:!1,compare:a.a},y=!1;if("undefined"!=typeof window&&window.addEventListener&&!y){var g=function(){if(i()&&l())for(var e in p)p[e][0]&&p[e][0]()};window.addEventListener("visibilitychange",g,!1),window.addEventListener("focus",g,!1),y=!0}var w=v;function x(e,n){var t=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];t||(t=!0,e.apply(void 0,r),setTimeout((function(){return t=!1}),n))}}var O=Object(r.createContext)({});O.displayName="SWRConfigContext";var k=O,C=function(e,n,t,r){return new(t||(t=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function l(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(i,l)}c((r=r.apply(e,n||[])).next())}))},j=function(e,n){var t,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;i;)try{if(t=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=n.call(e,i)}catch(e){a=[6,e],r=0}finally{t=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},E="undefined"==typeof window,S=E?r.useEffect:r.useLayoutEffect,_=function(e,n){void 0===n&&(n=!0);var t=s.serializeKey(e),r=t[0],o=t[2];if(!r)return Promise.resolve();var a=h[r];if(r&&a){for(var i=s.get(r),l=s.get(o),c=[],u=0;u<a.length;++u)c.push(a[u](n,i,l,u>0));return Promise.all(c).then((function(){return s.get(r)}))}return Promise.resolve(s.get(r))},P=function(e,n,t){var r=h[e];if(e&&r)for(var o=0;o<r.length;++o)r[o](!1,n,t)},A=function(e,n,t){return void 0===t&&(t=!0),C(void 0,void 0,void 0,(function(){var r,o,a,i,l,c,u,f,p,b;return j(this,(function(v){switch(v.label){case 0:if(!(r=s.serializeKey(e)[0]))return[2];if(void 0===n)return[2,_(e,t)];if(m[r]=Date.now()-1,i=m[r],l=d[r],!n||"function"!=typeof n)return[3,5];v.label=1;case 1:return v.trys.push([1,3,,4]),[4,n(s.get(r))];case 2:return o=v.sent(),[3,4];case 3:return c=v.sent(),a=c,[3,4];case 4:return[3,11];case 5:if(!n||"function"!=typeof n.then)return[3,10];v.label=6;case 6:return v.trys.push([6,8,,9]),[4,n];case 7:return o=v.sent(),[3,9];case 8:return u=v.sent(),a=u,[3,9];case 9:return[3,11];case 10:o=n,v.label=11;case 11:if(i!==m[r]||l!==d[r]){if(a)throw a;return[2,o]}if(void 0!==o&&s.set(r,o,!1),f=h[r]){for(p=[],b=0;b<f.length;++b)p.push(f[b](!!t,o,a,b>0));return[2,Promise.all(p).then((function(){return s.get(r)}))]}if(a)throw a;return[2,o]}}))}))};var I=k.Provider,M=function(){for(var e=this,n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var o,a,c={};n.length>=1&&(o=n[0]),n.length>2?(a=n[1],c=n[2]):"function"==typeof n[1]?a=n[1]:"object"==typeof n[1]&&(c=n[1]);var u=s.serializeKey(o),b=u[0],v=u[1],y=u[2];c=Object.assign({},w,Object(r.useContext)(k),c),void 0===a&&(a=c.fetcher);var g=s.get(b)||c.initialData,O=s.get(y),_=Object(r.useRef)({data:!1,error:!1,isValidating:!1}),I=Object(r.useRef)({data:g,error:O,isValidating:!1}),M=Object(r.useState)(null)[1],z=Object(r.useCallback)((function(e){var n=!1;for(var t in e)I.current[t]=e[t],_.current[t]&&(n=!0);(n||c.suspense)&&M({})}),[]),T=Object(r.useRef)(!1),N=Object(r.useRef)(b),R=Object(r.useRef)({emit:function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];T.current||c[e].apply(c,n)}}),L=Object(r.useCallback)((function(e,n){return A(b,e,n)}),[b]),F=Object(r.useCallback)((function(n){return void 0===n&&(n={}),C(e,void 0,void 0,(function(){var e,t,r,o,i,l,u;return j(this,(function(p){switch(p.label){case 0:if(!b||!a)return[2,!1];if(T.current)return[2,!1];n=Object.assign({dedupe:!1},n),e=!0,t=void 0!==f[b]&&n.dedupe,p.label=1;case 1:return p.trys.push([1,6,,7]),z({isValidating:!0}),r=void 0,o=void 0,t?(o=d[b],[4,f[b]]):[3,3];case 2:return r=p.sent(),[3,5];case 3:return f[b]&&(m[b]=Date.now()-1),c.loadingTimeout&&!s.get(b)&&setTimeout((function(){e&&R.current.emit("onLoadingSlow",b,c)}),c.loadingTimeout),f[b]=null!==v?a.apply(void 0,v):a(b),d[b]=o=Date.now(),[4,f[b]];case 4:r=p.sent(),setTimeout((function(){delete f[b],delete d[b]}),c.dedupingInterval),R.current.emit("onSuccess",r,b,c),p.label=5;case 5:return m[b]&&o<=m[b]?(z({isValidating:!1}),[2,!1]):(s.set(b,r,!1),s.set(y,void 0,!1),i={isValidating:!1},void 0!==I.current.error&&(i.error=void 0),c.compare(I.current.data,r)||(i.data=r),z(i),t||P(b,r,void 0),[3,7]);case 6:return l=p.sent(),delete f[b],delete d[b],s.set(y,l,!1),I.current.error!==l&&(z({isValidating:!1,error:l}),t||P(b,void 0,l)),R.current.emit("onError",l,b,c),c.shouldRetryOnError&&(u=(n.retryCount||0)+1,R.current.emit("onErrorRetry",l,b,c,F,Object.assign({dedupe:!0},n,{retryCount:u}))),[3,7];case 7:return e=!1,[2,!0]}}))}))}),[b]);if(S((function(){if(b){T.current=!1;var e=I.current.data,n=s.get(b)||c.initialData;N.current===b&&c.compare(e,n)||(z({data:n}),N.current=b);var t,r=function(){return F({dedupe:!0})};(c.revalidateOnMount||!c.initialData&&void 0===c.revalidateOnMount)&&(void 0!==n&&!E&&window.requestIdleCallback?window.requestIdleCallback(r):r()),c.revalidateOnFocus&&(t=x(r,c.focusThrottleInterval),p[b]?p[b].push(t):p[b]=[t]);var o=function(e,n,t,o){void 0===e&&(e=!0),void 0===o&&(o=!0);var a={},i=!1;return void 0===n||c.compare(I.current.data,n)||(a.data=n,i=!0),I.current.error!==t&&(a.error=t,i=!0),i&&z(a),!!e&&(o?r():F())};h[b]?h[b].push(o):h[b]=[o];var a=null;return!E&&window.addEventListener&&c.revalidateOnReconnect&&window.addEventListener("online",a=r),function(){var e,n;(z=function(){return null},T.current=!0,t&&p[b])&&((n=(e=p[b]).indexOf(t))>=0&&(e[n]=e[e.length-1],e.pop()));h[b]&&((n=(e=h[b]).indexOf(o))>=0&&(e[n]=e[e.length-1],e.pop()));!E&&window.removeEventListener&&null!==a&&window.removeEventListener("online",a)}}}),[b,F]),S((function(){var n=null,t=function(){return C(e,void 0,void 0,(function(){return j(this,(function(e){switch(e.label){case 0:return I.current.error||!c.refreshWhenHidden&&!i()||!c.refreshWhenOffline&&!l()?[3,2]:[4,F({dedupe:!0})];case 1:e.sent(),e.label=2;case 2:return c.refreshInterval&&(n=setTimeout(t,c.refreshInterval)),[2]}}))}))};return c.refreshInterval&&(n=setTimeout(t,c.refreshInterval)),function(){n&&clearTimeout(n)}}),[c.refreshInterval,c.refreshWhenHidden,c.refreshWhenOffline,F]),c.suspense){var D=s.get(b)||g,B=s.get(y)||O;if(void 0===D&&void 0===B){if(f[b]||F(),f[b]&&"function"==typeof f[b].then)throw f[b];D=f[b]}if(void 0===D&&B)throw B;return{error:B,data:D,revalidate:F,mutate:L,isValidating:I.current.isValidating}}return Object(r.useMemo)((function(){var e={revalidate:F,mutate:L};return Object.defineProperties(e,{error:{get:function(){return _.current.error=!0,N.current===b?I.current.error:O},enumerable:!0},data:{get:function(){return _.current.data=!0,N.current===b?I.current.data:g},enumerable:!0},isValidating:{get:function(){return _.current.isValidating=!0,I.current.isValidating},enumerable:!0}}),e}),[F])};new Map;n.b=M},function(e,n){n.__esModule=!0,n.default={body:'<path d="M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6l-1.41-1.42z" fill="currentColor"/>',width:24,height:24}},function(e,n,t){"use strict";var r=t(0),o=t.n(r),a=t(2),i=t.n(a);function l(){return(l=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function u(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach((function(n){s(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function f(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(t.push(i.value),!n||t.length!==n);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return t}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return d(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var p=function(e){var n=e.spinner,t=void 0===n||n,a=e.busy,i=void 0!==a&&a,c=e.overlayStyle,s=f(Object(r.useState)(!0),2),d=s[0],p=s[1];Object(r.useEffect)((function(){var e;return i?p(!0):e=setTimeout((function(){p(!1),e=null}),250),function(){e&&clearTimeout(e)}}),[i]);var h=d?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"overlay "+(i?"":"overlayHidden"),style:c},Boolean(t)&&o.a.createElement("div",{className:"lds-ellipsis "+(i?"":"spinnerHidden")},o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null))),o.a.createElement("style",{jsx:!0},"\n .overlay {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n background: rgb(30 124 186 / 85%);\n transition: opacity 1s ease-out;\n z-index: 10;\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n overflow: hidden;\n }\n\n .overlayHidden {\n opacity: 0;\n transition: opacity 0.25s ease-out;\n }\n .spinnerHidden {\n opacity: 0;\n transition: opacity 0.25s ease-out;\n }\n .lds-ellipsis {\n position: relative;\n width: 80px;\n height: 80px;\n display: flex;\n justify-items: center;\n align-items: center;\n }\n .lds-ellipsis div {\n position: absolute;\n width: 13px;\n height: 13px;\n border-radius: 50%;\n background: white;\n animation-timing-function: cubic-bezier(0, 1, 1, 0);\n }\n .lds-ellipsis div:nth-child(1) {\n left: 8px;\n animation: lds-ellipsis1 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(2) {\n left: 8px;\n animation: lds-ellipsis2 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(3) {\n left: 32px;\n animation: lds-ellipsis2 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(4) {\n left: 56px;\n animation: lds-ellipsis3 0.6s infinite;\n }\n @keyframes lds-ellipsis1 {\n 0% {\n transform: scale(0);\n }\n 100% {\n transform: scale(1);\n }\n }\n @keyframes lds-ellipsis3 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0);\n }\n }\n @keyframes lds-ellipsis2 {\n 0% {\n transform: translate(0, 0);\n }\n 100% {\n transform: translate(24px, 0);\n }\n } \n ")):null,m=u(u({},e),{},{busy:void 0,spinner:void 0});return o.a.createElement("div",l({style:{position:"relative"}},m),h,e.children)};p.propTypes={busy:i.a.bool.isRequired,spinner:i.a.bool,children:i.a.oneOfType([i.a.arrayOf(i.a.node),i.a.node]).isRequired},n.a=p},function(e,n,t){"use strict";t.d(n,"d",(function(){return L})),t.d(n,"c",(function(){return R})),t.d(n,"b",(function(){return T})),t.d(n,"a",(function(){return F}));var r=t(0),o=t(109),a=t.n(o);function i(){return"undefined"==typeof document||void 0===document.visibilityState||"hidden"!==document.visibilityState}function l(){return void 0===navigator.onLine||navigator.onLine}function c(e){return(c="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})(e)}var u=new WeakMap,s=0;var f=new(function(){function e(e){void 0===e&&(e={}),this.__cache=new Map(Object.entries(e)),this.__listeners=[]}return e.prototype.get=function(e){var n=this.serializeKey(e)[0];return this.__cache.get(n)},e.prototype.set=function(e,n,t){void 0===t&&(t=!0);var r=this.serializeKey(e)[0];this.__cache.set(r,n),t&&E(e,n,!1),this.notify()},e.prototype.keys=function(){return Array.from(this.__cache.keys())},e.prototype.has=function(e){var n=this.serializeKey(e)[0];return this.__cache.has(n)},e.prototype.clear=function(e){void 0===e&&(e=!0),e&&this.__cache.forEach((function(e){return E(e,null,!1)})),this.__cache.clear(),this.notify()},e.prototype.delete=function(e,n){void 0===n&&(n=!0);var t=this.serializeKey(e)[0];n&&E(e,null,!1),this.__cache.delete(t),this.notify()},e.prototype.serializeKey=function(e){var n=null;if("function"==typeof e)try{e=e()}catch(n){e=""}return Array.isArray(e)?(n=e,e=function(e){if(!e.length)return"";for(var n="arg",t=0;t<e.length;++t){var r=void 0;null===e[t]||"object"!==c(e[t])?r="string"==typeof e[t]?'"'+e[t]+'"':String(e[t]):u.has(e[t])?r=u.get(e[t]):(r=s,u.set(e[t],s++)),n+="@"+r}return n}(e)):e=String(e||""),[e,n,e?"err@"+e:""]},e.prototype.subscribe=function(e){var n=this;if("function"!=typeof e)throw new Error("Expected the listener to be a function.");var t=!0;return this.__listeners.push(e),function(){if(t){t=!1;var r=n.__listeners.indexOf(e);r>-1&&(n.__listeners[r]=n.__listeners[n.__listeners.length-1],n.__listeners.length--)}}},e.prototype.notify=function(){for(var e=0,n=this.__listeners;e<n.length;e++){(0,n[e])()}},e}()),d={},p={},h={},m={};var b="undefined"!=typeof window&&navigator.connection&&-1!==["slow-2g","2g"].indexOf(navigator.connection.effectiveType),v=(a.a,!1);if("undefined"!=typeof window&&window.addEventListener&&!v){var y=function(){if(i()&&l())for(var e in p)p[e][0]&&p[e][0]()};window.addEventListener("visibilitychange",y,!1),window.addEventListener("focus",y,!1),v=!0}var g=Object(r.createContext)({});g.displayName="SWRConfigContext";var w=g;var O=function(e,n,t,r){return new(t||(t=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function l(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(i,l)}c((r=r.apply(e,n||[])).next())}))},k=function(e,n){var t,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;i;)try{if(t=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=n.call(e,i)}catch(e){a=[6,e],r=0}finally{t=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},C="undefined"==typeof window,j=(C?r.useEffect:r.useLayoutEffect,function(e,n){void 0===n&&(n=!0);var t=f.serializeKey(e),r=t[0],o=t[2];if(!r)return Promise.resolve();var a=h[r];if(r&&a){for(var i=f.get(r),l=f.get(o),c=[],u=0;u<a.length;++u)c.push(a[u](n,i,l,u>0));return Promise.all(c).then((function(){return f.get(r)}))}return Promise.resolve(f.get(r))}),E=function(e,n,t){return void 0===t&&(t=!0),O(void 0,void 0,void 0,(function(){var r,o,a,i,l,c,u,s,p,b;return k(this,(function(v){switch(v.label){case 0:if(!(r=f.serializeKey(e)[0]))return[2];if(void 0===n)return[2,j(e,t)];if(m[r]=Date.now()-1,i=m[r],l=d[r],!n||"function"!=typeof n)return[3,5];v.label=1;case 1:return v.trys.push([1,3,,4]),[4,n(f.get(r))];case 2:return o=v.sent(),[3,4];case 3:return c=v.sent(),a=c,[3,4];case 4:return[3,11];case 5:if(!n||"function"!=typeof n.then)return[3,10];v.label=6;case 6:return v.trys.push([6,8,,9]),[4,n];case 7:return o=v.sent(),[3,9];case 8:return u=v.sent(),a=u,[3,9];case 9:return[3,11];case 10:o=n,v.label=11;case 11:if(i!==m[r]||l!==d[r]){if(a)throw a;return[2,o]}if(void 0!==o&&f.set(r,o,!1),s=h[r]){for(p=[],b=0;b<s.length;++b)p.push(s[b](!!t,o,a,b>0));return[2,Promise.all(p).then((function(){return f.get(r)}))]}if(a)throw a;return[2,o]}}))}))};w.Provider,new Map;var S=t(20);function _(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(t.push(i.value),!n||t.length!==n);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return t}(e,n)||M(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,n,t,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,o)}function A(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var a=e.apply(n,t);function i(e){P(a,r,o,i,l,"next",e)}function l(e){P(a,r,o,i,l,"throw",e)}i(void 0)}))}}function I(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=M(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){t=e[Symbol.iterator]()},n:function(){var e=t.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(l)throw a}}}}function M(e,n){if(e){if("string"==typeof e)return z(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?z(e,n):void 0}}function z(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function T(e,n){for(var t=[],r=0;r<e.length;r+=n)t.push(e.slice(r,r+n));return t}var N=function(e){if(!e.data)return e;if(e.data.length>0&&e.data[0].meta){var n,t=I(e.data);try{for(t.s();!(n=t.n()).done;){var r=n.value;try{r.meta=JSON.parse(r.meta)}catch(e){console.error("[JsonFetcher]","Could not decode meta.",r.meta)}}}catch(e){t.e(e)}finally{t.f()}}else if(e.data.meta)try{e.data.meta=JSON.parse(e.data.meta)}catch(e){console.error("[JsonFetcher]","Could not decode meta.",x.meta)}return e},R=function(){var e=A(regeneratorRuntime.mark((function e(n){var t,r,o,a,i,l,c,u,s,f=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=f.length>1&&void 0!==f[1]?f[1]:{},r=null,o={},a=null,i=null,e.prev=5,(t=t||{}).headers=t.headers?t.headers:{},t.headers.Pragma="no-cache",t.headers["Cache-Control"]="no-cache",e.next=12,fetch("".concat(n),t);case 12:return i=e.sent,e.next=15,i.text();case 15:r=e.sent,(o=JSON.parse(r)).success||(l=!1===o.success?"NOT-SUCCESS":"N/A",c=o.message?o.message:"Unknown error. Check your Console Logs.","rest_no_route"===o.code?(c="The API can't be accessed. Is Rest API enabled?",l="NO-ROUTE"):"internal_server_error"===o.code&&(c="Server error. Please check your PHP Error Logs.",l="SERVER-ERROR"),a=new S.a(c,l,n,r||i)),e.next=26;break;case 20:e.prev=20,e.t0=e.catch(5),u="BROKEN-REPLY",s="The reply sent by the server is broken.",i&&i.status&&408===i.status&&(u="REQUEST-TIMEOUT",s="The request generated a timeout."),a=new S.a(s,u,n,r||i,e.t0);case 26:return a&&(console.error("[NekoError] JsonFetcher",a.url,{code:a.code,error:a.error,body:a.body}),o.success=!1,o.error=a),e.abrupt("return",N(o));case 28:case"end":return e.stop()}}),e,null,[[5,20]])})));return function(n){return e.apply(this,arguments)}}(),L=function(){var e=A(regeneratorRuntime.mark((function e(n){var t,r,o,a,i,l,c,u,s,f,d,p,h,m=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=m.length>1&&void 0!==m[1]?m[1]:{},r=t.json,o=void 0===r?{}:r,a=t.signal,i=t.file,l=t.nonce,c=i?new FormData:null,i)for(c.append("file",i),u=0,s=Object.entries(o);u<s.length;u++)f=_(s[u],2),d=f[0],p=f[1],c.append(d,p);return h=l?{"X-WP-Nonce":l}:{},c||(h["Content-Type"]="application/json"),e.abrupt("return",R(n,{method:"POST",headers:h,body:c||JSON.stringify(o),signal:a}));case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),F=function(e,n){var t=e.includes("index.php?rest_route");return e+(t?"&":"?")+new URLSearchParams(n).toString()}},function(e,n,t){"use strict";t.d(n,"a",(function(){return O}));var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(3);function u(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function s(){var e=m(["\n font-family: ",";\n font-size: ",";\n line-height: normal;\n margin: 0;\n padding: 0;\n"]);return s=function(){return e},e}function f(){var e=m(["\n font-family: ",";\n font-size: ",";\n line-height: normal;\n margin: 0;\n padding: 0;\n"]);return f=function(){return e},e}function d(){var e=m(["\n font-family: ",";\n font-size: ",";\n line-height: normal;\n margin: 16px 0 24px;\n padding: 0;\n"]);return d=function(){return e},e}function p(){var e=m(["\n font-family: ",";\n font-size: ",";\n font-weight: normal;\n line-height: normal;\n margin-top: 0;\n margin-bottom: 16px;\n padding: 0;\n"]);return p=function(){return e},e}function h(){var e=m(["\n font-family: ",";\n font-weight: normal;\n font-size: ",";\n line-height: normal;\n margin-top: 0;\n margin-bottom: 16px;\n padding: 0;\n"]);return h=function(){return e},e}function m(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var b=l.a.h1(h(),c.a.fontFamily,c.a.fontSizeH1),v=l.a.h2(p(),c.a.fontFamily,c.a.fontSizeH2),y=l.a.p(d(),c.a.fontFamily,c.a.fontSizeText),g=l.a.span(f(),c.a.fontFamily,c.a.fontSizeText),w=l.a.label(s(),c.a.fontFamily,c.a.fontSizeText),x=function(e){var n=e.children,t=u(e,["children"]);return e.h1?o.a.createElement(b,t,n):e.h2?o.a.createElement(v,t,n):e.p?o.a.createElement(y,t,n):e.label?o.a.createElement(w,t,n):o.a.createElement(g,t,n)},O=function(e){return o.a.createElement(x,e)};O.propTypes={h1:i.a.any,h2:i.a.any,p:i.a.any},O.defaultProps={h1:void 0,h2:void 0,p:void 0}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6l1.41 1.41z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M10 4H4c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-8l-2-2z" fill="currentColor"/>',width:24,height:24}},function(e,n,t){"use strict";t.d(n,"a",(function(){return y}));var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(7),u=t(3);function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(t.push(i.value),!n||t.length!==n);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return t}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return f(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return f(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function d(){var e=h(["\n\tbackground-color: rgba(",", 0.8);\n\tborder-radius: 4px;\n\tcolor: ",";\n\tfont-family: ",";\n\tfont-weight: normal;\n\tmin-width: 180px;\n\tmax-width: 280px;\n\tfont-size: ",";\n\tpadding: 8px 12px;\n\tposition: absolute;\n \tmax-width: 280px;\n\tdisplay: ",';\n\tz-index: 100;\n\n\t&:before {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t\tborder: 4px solid transparent;\n\t}\n\n\t&.top {\n\t\t&:before {\n\t\t\tmargin-left: -4px;\n\t\t\ttop: 100%;\n\t\t\tleft: 50%;\n\t\t\tborder-top: 4px solid rgba(',", 0.8);\n\t\t}\n\t}\n\n\t&.left {\n\t\t&:before {\n\t\t\tmargin-top: -4px;\n\t\t\ttop: 50%;\n\t\t\tright: -8px;\n\t\t\tborder-left: 4px solid rgba(",", 0.8);\n\t\t}\n\t}\n\n\t&.right {\n\t\t&:before {\n\t\t\tmargin-top: -4px;\n\t\t\ttop: 50%;\n\t\t\tleft: -8px;\n\t\t\tborder-right: 4px solid rgba(",", 0.8);\n\t\t}\n\t}\n\n\t&.bottom {\n\t\t&:before {\n\t\t\tmargin-left: -4px;\n\t\t\ttop: -8px;\n\t\t\tleft: 50%;\n\t\t\tborder-bottom: 4px solid rgba(",", 0.8);\n\t\t}\n\t}\n\n\t","\n"]);return d=function(){return e},e}function p(){var e=h(["\n\tdisplay: flex;\n"]);return p=function(){return e},e}function h(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var m=l.a.div(p()),b=l.a.div(d(),u.a.blackRGB,u.a.white,u.a.fontFamily,u.a.fontSizeText,(function(e){return e.visible?"inline-block":"none"}),u.a.blackRGB,u.a.blackRGB,u.a.blackRGB,u.a.blackRGB,(function(e){return e.style})),v=function(e){var n=e.text,t=void 0===n?"Hello world!":n,a=e.position,i=void 0===a?"top":a,l=s(Object(r.useState)(!1),2),u=l[0],f=l[1],d=Object(c.a)(),p=d.ref,h=d.width,v=d.height,y=Object(c.a)(),g=y.ref,w=y.width,x=y.height,O=Object(r.useMemo)((function(){var e=0,n=0;if("top"===i)e=-1*v-5,n=h/2*-1+w/2;else if("bottom"===i)e=x+5,n=h/2*-1+w/2;else if("left"===i){e=(v-x)/2*-1,n=-1*h-5}else if("right"===i){e=(v-x)/2*-1,n=w+5}return{transform:"translateX(".concat(n,"px) translateY(").concat(e,"px)")}}),[i,h,v,w,x]);return o.a.createElement(m,null,o.a.createElement(b,{ref:p,visible:u,className:i,style:O},t),o.a.createElement("div",{ref:g,onMouseEnter:function(){return f(!0)},onMouseLeave:function(){return f(!1)}},e.children))},y=function(e){return o.a.createElement(v,e)};y.propTypes={text:i.a.string,position:i.a.oneOf(["top","right","bottom","left"])},y.defaultProps={text:"Hello world!",position:"top"}},function(e,n,t){"use strict";function r(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}t.d(n,"a",(function(){return o}));var o=function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};r(this,e),this.url=o,this.message=n,this.code=t,this.body=a,this.debug=i}},function(e,n,t){"use strict";t.d(n,"a",(function(){return m}));var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(3);function u(){return(u=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(t.push(i.value),!n||t.length!==n);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return t}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return f(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return f(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function d(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function p(){var e=function(e,n){n||(n=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n .neko-input {\n font-family: ",";\n font-size: ",";\n border: 2px solid ",";\n box-sizing: border-box;\n height: 30px;\n background: rgb(0 124 186 / 10%);\n padding: 0 10px;\n width: 100%;\n\n &.natural {\n border-color: gray;\n border-width: 1px;\n }\n\n &::placeholder {\n color: rgba(0, 0, 0, 0.25);\n }\n\n :focus {\n background-color: white;\n }\n\n :read-only {\n background-color: ",";\n }\n }\n\n .neko-input-description {\n font-family: ",";\n font-size: ",";\n line-height: 14px;\n margin-top: 8px;\n margin-bottom: 0;\n }\n"]);return p=function(){return e},e}var h=Object(l.a)((function(e){var n=e.id,t=e.name,a=e.value,i=void 0===a?"":a,l=e.description,c=e.placeholder,f=void 0===c?"":c,p=e.onEnter,h=void 0===p?null:p,m=e.readOnly,b=void 0!==m&&m,v=e.type,y=void 0===v?"text":v,g=e.step,w=void 0===g?1:g,x=e.min,O=void 0===x?1:x,k=e.max,C=void 0===k?999:k,j=e.maxLength,E=void 0===j?void 0:j,S=e.className,_=e.style,P=e.natural,A=void 0!==P&&P,I=e.inputStyle,M=d(e,["id","name","value","description","placeholder","onEnter","readOnly","type","step","min","max","maxLength","className","style","natural","inputStyle"]),z=s(Object(r.useState)(i),2),T=z[0],N=z[1],R=!!e.onChange,L=E||("number"===y?3:void 0);Object(r.useEffect)((function(){R||N(i)}),[i]);var F=function(t){R?e.onChange(t.target.value,n):N(t.target.value,n)},D=function(t){h&&"Enter"===event.key&&(t.preventDefault(),e.onEnter(t.target.value,n))},B=function(t){e.onBlur&&i!==t.target.value&&e.onBlur(t.target.value,n)},H="neko-input ".concat(A?" natural":"");return o.a.createElement("div",{className:[S].join(" "),style:_},"number"===y?o.a.createElement("input",u({className:[H].join(" ")},M,{id:n,name:t,value:R?i:T,type:y,step:w,min:O,max:C,maxLength:L,autoComplete:"off",placeholder:f,style:I,onChange:F,onKeyPress:D,onBlur:B,readOnly:b})):o.a.createElement("input",u({className:[H].join(" ")},M,{id:n,name:t,value:R?i:T,type:y,spellCheck:"false",autoComplete:"off",placeholder:f,style:I,maxLength:L,onChange:F,onKeyPress:D,onBlur:B,readOnly:b})),l&&o.a.createElement("p",{className:"neko-input-description"},l))}))(p(),c.a.fontFamily,c.a.fontSizeText,c.a.blue,c.a.gray,c.a.fontFamily,c.a.fontSizeSmall),m=function(e){return o.a.createElement(h,e)};m.propTypes={id:i.a.string,type:i.a.oneOf(["number","text"]),name:i.a.string,value:i.a.string,description:i.a.string,placeholder:i.a.string,onChange:i.a.func,onEnter:i.a.func,onBlur:i.a.func,readOnly:i.a.bool,step:i.a.number,min:i.a.number,max:i.a.number,maxLength:i.a.number,natural:i.a.bool},m.defaultProps={id:void 0,type:"text",name:void 0,value:"",description:void 0,placeholder:"",onChange:void 0,onEnter:void 0,onBlur:void 0,readOnly:!1,step:1,min:1,max:999,maxLength:void 0,natural:!1}},function(e,n,t){"use strict";t.d(n,"a",(function(){return c}));var r=t(0),o=t.n(r);t(2);function a(){var e=function(e,n){n||(n=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n display: flex;\n width: 100%;\n height: 100%;\n max-width: 128px;\n max-height: 128px;\n\n & > * {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n"]);return a=function(){return e},e}var i=t(4).a.div(a()),l=function(){return o.a.createElement(i,null,o.a.createElement("svg",{width:"54",height:"38",viewBox:"0 0 54 38",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.a.createElement("path",{d:"M11.3663 9.40518C9.2981 -3.25522 -0.310763 2.76769 2.5163 9.40518C2.5163 9.40518 8.29338 29.9322 22.3059 26.3677C36.3184 22.8031 23.9038 19.1156 23.9038 19.1156C23.9038 19.1156 13.4345 22.0656 11.3663 9.40518Z",fill:"#724024",stroke:"black",strokeWidth:"2.1869"}),o.a.createElement("path",{d:"M10.7517 8.0531C10.0142 10.7573 6.32673 12.1093 3.99131 11.2489C1.65589 10.3885 2.63923 13.8302 5.09756 14.9364C7.55589 16.0427 11.2434 14.1989 12.1038 12.4781C12.9642 10.7573 11.4892 5.34893 10.7517 8.0531Z",fill:"#B7782E"}),o.a.createElement("path",{d:"M14.0705 17.2718C13.8246 19.2385 9.64547 19.976 7.55589 19.8531C5.46631 19.7302 9.76839 23.5406 11.3663 23.5406C12.9642 23.5406 17.3892 21.2052 17.1434 19.2385C16.8976 17.2718 14.3163 15.3052 14.0705 17.2718Z",fill:"#B7782E"}),o.a.createElement("path",{d:"M17.5121 26.2448C18.6184 25.3843 20.9538 21.8198 19.8476 19.8531C18.7413 17.8864 22.4288 20.9593 22.4288 20.9593L21.6913 26.2448C21.6913 26.2448 16.4059 27.1052 17.5121 26.2448Z",fill:"#B7782E"}),o.a.createElement("path",{d:"M10.7517 8.0531C10.0142 10.7573 6.32673 12.1093 3.99131 11.2489C1.65589 10.3885 2.63923 13.8302 5.09756 14.9364C7.55589 16.0427 11.2434 14.1989 12.1038 12.4781C12.9642 10.7573 11.4892 5.34893 10.7517 8.0531Z",stroke:"black"}),o.a.createElement("path",{d:"M14.0705 17.2718C13.8246 19.2385 9.64547 19.976 7.55589 19.8531C5.46631 19.7302 9.76839 23.5406 11.3663 23.5406C12.9642 23.5406 17.3892 21.2052 17.1434 19.2385C16.8976 17.2718 14.3163 15.3052 14.0705 17.2718Z",stroke:"black"}),o.a.createElement("path",{d:"M17.5121 26.2448C18.6184 25.3843 20.9538 21.8198 19.8476 19.8531C18.7413 17.8864 22.4288 20.9593 22.4288 20.9593L21.6913 26.2448C21.6913 26.2448 16.4059 27.1052 17.5121 26.2448Z",stroke:"black"}),o.a.createElement("path",{d:"M11.3663 9.40518C9.2981 -3.25522 -0.310763 2.76769 2.5163 9.40518C2.5163 9.40518 8.29338 29.9322 22.3059 26.3677C36.3184 22.8031 23.658 19.4843 23.658 19.4843C23.658 19.4843 13.4345 22.0656 11.3663 9.40518Z",stroke:"black",strokeWidth:"2.1869"}),o.a.createElement("path",{d:"M25.3788 9.89685C25.3788 9.89685 21.3225 35.0947 21.9371 35.7093C22.5517 36.3239 27.4684 36.3239 28.083 35.7093C28.6975 35.0947 29.6523 22.5858 30.2955 21.9427C30.9386 21.2995 35.7226 33.1281 36.81 33.1281C37.8975 33.1281 43.2303 21.3567 43.8163 21.9427C44.4023 22.5287 45.2913 35.0947 45.9059 35.7093C46.5204 36.3239 51.3142 36.3239 51.9288 35.7093C52.5434 35.0947 48.9788 9.89685 48.9788 9.89685H42.9559C42.9559 9.89685 37.7934 21.9427 36.81 21.9427C35.8267 21.9427 31.4017 9.89685 31.4017 9.89685H25.3788Z",fill:"white",stroke:"black",strokeWidth:"2.1869"})))},c=function(e){return o.a.createElement(l,e)};c.propTypes={},c.defaultProps={}},function(e,n,t){"use strict";t.d(n,"a",(function(){return k}));var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(5),u=t(26),s=t.n(u),f=t(28),d=t.n(f),p=t(27),h=t.n(p),m=t(13),b=t.n(m),v=t(3);function y(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(t.push(i.value),!n||t.length!==n);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return t}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return g(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return g(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function w(){var e=function(e,n){n||(n=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n align-items: center;\n display: flex;\n\n .neko-paging-text {\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 15px;\n line-height: 14px;\n }\n\n .neko-paging-controller {\n box-sizing: border-box;\n height: 30px;\n align-items: center;\n background-color: rgba(",", 0.8);\n border-radius: 15px;\n display: flex;\n margin-left: 15px;\n padding: 3px 5px;\n\n .nako-paging-controller-icon {\n background-color: ",";\n border-radius: 100%;\n cursor: pointer;\n margin-right: 2px;\n height: 22px;\n width: 22px;\n box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);\n transition: transform 0.1s ease-in;\n box-sizing: border-box;\n\n :last-child {\n margin-right: 0;\n }\n\n &.disabled {\n color: ",";\n cursor: default;\n pointer-events: none;\n }\n\n &:hover {\n transform: scale(1.2) !important;\n z-index: 10;\n position: relative;\n }\n }\n\n .nako-paging-controller-text {\n color: ",";\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n margin: 0 40px;\n user-select: none;\n }\n\n span.neko-paging-current-page {\n cursor: pointer;\n text-decoration: underline;\n }\n input.neko-paging-current-page {\n width: 1.5rem;\n }\n }\n\n &.neko-paging-full {\n flex-grow: 1;\n\n .neko-paging-controller {\n flex-grow: 1;\n }\n .nako-paging-controller-text {\n margin: 0 auto;\n }\n }\n"]);return w=function(){return e},e}var x=l.a.div(w(),v.a.fontFamily,v.a.blueRGB,v.a.white,v.a.darkGray,v.a.white,v.a.fontFamily),O=function(e){var n=e.currentPage,t=e.limit,a=e.onClick,i=e.total,l=e.onCurrentPageChanged,u=e.full,f=!!l,p=Math.ceil(0===i?1:t>0?i/t:1),m="nako-paging-controller-icon ".concat(1===n?"disabled":""),v="nako-paging-controller-icon ".concat(n===p?"disabled":""),g=y(Object(r.useState)(!1),2),w=g[0],O=g[1],k=u?"neko-paging-full":"",C=function(e){O(!1),a(e)},j=function(e){var n=Number(e);return n>p?p:n<1?1:n},E=function(e){var n=e.target.value;isNaN(n)||l(j(n)),O(!1)},S=function(e){if("Enter"===event.key){e.preventDefault();var n=e.target.value;isNaN(n)||l(j(n)),O(!1)}},_=Object(r.useMemo)((function(){if(!w){return o.a.createElement("span",{className:f?"neko-paging-current-page":"",onClick:function(){f&&O(!0)}},n)}return o.a.createElement("input",{autoFocus:!0,type:"text",className:f?"neko-paging-current-page":"",defaultValue:n,onBlur:E,onKeyPress:S})}),[n,w,l]),P=function(e){w&&e.target===e.currentTarget&&O(!1)};return o.a.createElement(x,{className:k},o.a.createElement("span",{className:"neko-paging-text"},i," result",i>0?"s":""),o.a.createElement("div",{className:"neko-paging-controller",onClick:P},o.a.createElement(c.Icon,{icon:s.a,className:m,onClick:function(){return C(1)}}),o.a.createElement(c.Icon,{icon:d.a,className:m,onClick:function(){return C(n-1)}}),o.a.createElement("p",{className:"nako-paging-controller-text",onClick:P},"Page ",_," of ",p),o.a.createElement(c.Icon,{icon:b.a,className:v,onClick:function(){return C(n+1)}}),o.a.createElement(c.Icon,{icon:h.a,className:v,onClick:function(){return C(p)}})))},k=function(e){return o.a.createElement(O,e)};k.propTypes={currentPage:i.a.number,limit:i.a.number,total:i.a.number,onClick:i.a.func},k.defaultProps={currentPage:void 0,limit:void 0,total:void 0,onClick:void 0}},function(e,n,t){"use strict";t.d(n,"a",(function(){return w}));var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(107),c=t.n(l),u=t(4),s=t(3),f=t(11);function d(){return(d=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function p(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function h(){var e=b(["\n width: 518px;\n\n p {\n margin: 0;\n }\n .title {\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 18px;\n line-height: 22px;\n }\n .content-container {\n display: flex;\n margin-top: 15px;\n\n .thumbnail {\n margin-right: 15px;\n width: 240px;\n overflow: hidden;\n\n img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n }\n .content {\n flex: auto;\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n line-height: 14px;\n width: 100%;\n }\n }\n .button-group {\n align-items: center;\n display: flex;\n justify-content: flex-end;\n margin-top: 15px;\n }\n"]);return h=function(){return e},e}function m(){var e=b(["\n\n .ReactModal__Overlay {\n z-index: 100;\n display: flex;\n justify-content: center;\n flex-direction: column;\n align-items: center;\n background: "," !important;\n }\n .ReactModal__Overlay {\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n }\n .ReactModal__Overlay--after-open {\n opacity: 1;\n }\n .ReactModal__Overlay--before-close {\n opacity: 0;\n }\n .ReactModal__Overlay .neko-modal {\n opacity: 0;\n transform: scale(0.85);\n transition: all 200ms ease-in-out;\n }\n .ReactModal__Overlay--after-open .neko-modal {\n transform: scale(1);\n opacity: 1;\n }\n .ReactModal__Overlay--before-close .neko-modal {\n transform: scale(0.85);\n opacity: 0;\n }\n .neko-modal {\n background: ",";\n position: relative;\n box-shadow: 2px 2px 15px 2px rgba(0, 0, 0, 0.8);\n outline: none;\n padding: 15px;\n max-width: 820px;\n }\n"]);return m=function(){return e},e}function b(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var v=u.a.div(m(),s.a.overlay,s.a.white),y=u.a.div(h(),s.a.fontFamily,s.a.fontFamily),g=function(e){var n=e.id,t=void 0===n?"neko-modal-parent":n,a=e.isOpen,i=e.children,l=e.className,u=e.style,s=e.ok,h=void 0===s?"OK":s,m=e.cancel,b=void 0===m?"Cancel":m,g=e.customButtons,w=void 0===g?null:g,x=e.customButtonsPosition,O=void 0===x?"right":x,k=e.title,C=void 0===k?"":k,j=e.content,E=void 0===j?"":j,S=e.onOkClick,_=e.onCancelClick,P=e.okOnEnter,A=void 0!==P&&P,I=e.thumbnail,M=p(e,["id","isOpen","children","className","style","ok","cancel","customButtons","customButtonsPosition","title","content","onOkClick","onCancelClick","okOnEnter","thumbnail"]),z=u?"custom-modal":"",T=null!==w,N=Object(r.useCallback)((function(e){"Enter"===e.key&&S()}),[S]);Object(r.useEffect)((function(){if(A&&a)return window.addEventListener("keyup",N),function(){window.removeEventListener("keyup",N)}}),[a,N]);var R=i||o.a.createElement(y,null,C&&o.a.createElement("p",{className:"title"},C),o.a.createElement("div",{className:"content-container"},I&&o.a.createElement("div",{className:"thumbnail"},I),E&&o.a.createElement("p",{className:"content"},E)),o.a.createElement("div",{className:"button-group"},T&&"left"===O&&w,_&&o.a.createElement(f.a,{className:"danger",onClick:_},b),S&&o.a.createElement(f.a,{onClick:S},h),T&&"right"===O&&w));return o.a.createElement(o.a.Fragment,null,o.a.createElement(v,{id:t}),o.a.createElement(c.a,d({ariaHideApp:!1,parentSelector:function(){return document.getElementById(t)},closeTimeoutMS:200,className:"neko-modal ".concat(l||""," ").concat(z),isOpen:a},M),R))},w=function(e){return o.a.createElement(g,e)};w.propTypes={className:i.a.string,style:i.a.object,ok:i.a.string,cancel:i.a.string,title:i.a.string,content:i.a.string,onOkClick:i.a.func,onCancelClick:i.a.func,customButtons:i.a.object,okOnEnter:i.a.bool,thumbnail:i.a.element},w.defaultProps={className:void 0,style:void 0,ok:"OK",cancel:"Cancel",title:"",content:"",onOkClick:void 0,onCancelClick:void 0,customButtons:null,okOnEnter:!1,thumbnail:void 0}},function(e,n,t){"use strict";var r=t(72),o=t.n(r),a=t(73),i=t.n(a),l=t(74),c=t.n(l),u=t(26),s=t.n(u),f=t(27),d=t.n(f),p=t(28),h=t.n(p),m=t(13),b=t.n(m),v=t(9),y=t.n(v),g=t(17),w=t.n(g),x=t(29),O=t.n(x),k=t(30),C=t.n(k),j=t(75),E=t.n(j),S=t(76),_=t.n(S),P=t(31),A=t.n(P),I=t(77),M=t.n(I),z=t(78),T=t.n(z),N=t(79),R=t.n(N),L=t(80),F=t.n(L),D=(t(112),t(81)),B=t.n(D),H=t(82),U=t.n(H),q=t(83),V=t.n(q),$=t(84),W=t.n($),G=t(85),K=t.n(G),Y=t(86),X=t.n(Y),J=t(87),Z=t.n(J),Q=t(88),ee=t.n(Q),ne=t(18),te=t.n(ne),re=t(32),oe=t.n(re),ae=t(33),ie=t.n(ae),le=t(89),ce=t.n(le),ue=t(90),se=t.n(ue),fe=t(91),de=t.n(fe),pe=t(92),he=t.n(pe),me=t(93),be=t.n(me),ve=t(94),ye=t.n(ve),ge=t(95),we=t.n(ge),xe=t(96),Oe=t.n(xe),ke=t(97),Ce=t.n(ke),je=t(98),Ee=t.n(je),Se=t(99),_e=t.n(Se),Pe={lock:o.a,"lock-open":i.a,"file-undo":c.a,"chevron-double-left":s.a,"chevron-double-right":d.a,"chevron-left":h.a,"chevron-right":b.a,"chevron-down":y.a,"chevron-up":w.a,pause:O.a,play:C.a,replay:E.a,check:_.a,stop:A.a,delete:M.a,undo:T.a,alert:R.a,database:F.a,tools:B.a,cog:U.a,close:V.a,cat:W.a,upload:_e.a,trash:K.a,pencil:X.a,dashboard:Z.a,search:ee.a,folder:te.a,"folder-open":oe.a,"image-multiple-outline":ie.a,plus:ce.a,"folder-plus":se.a,"image-plus":de.a,"view-grid":he.a,"format-list-bulleted":be.a,twitter:ye.a,instagram:we.a,facebook:Oe.a,star:Ce.a,"timer-outline":Ee.a};n.a=Pe},function(e,n){n.__esModule=!0,n.default={body:'<path d="M18.41 7.41L17 6l-6 6l6 6l1.41-1.41L13.83 12l4.58-4.59m-6 0L11 6l-6 6l6 6l1.41-1.41L7.83 12l4.58-4.59z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M5.59 7.41L7 6l6 6l-6 6l-1.41-1.41L10.17 12L5.59 7.41m6 0L13 6l6 6l-6 6l-1.41-1.41L16.17 12l-4.58-4.59z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M15.41 16.58L10.83 12l4.58-4.59L14 6l-6 6l6 6l1.41-1.42z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M14 19h4V5h-4M6 19h4V5H6v14z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M8 5.14v14l11-7l-11-7z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M18 18H6V6h12v12z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M19 20H4a2 2 0 0 1-2-2V6c0-1.11.89-2 2-2h6l2 2h7a2 2 0 0 1 2 2H4v10l2.14-8h17.07l-2.28 8.5c-.23.87-1.01 1.5-1.93 1.5z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M21 17H7V3h14m0-2H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2M3 5H1v16a2 2 0 0 0 2 2h16v-2H3m12.96-10.71l-2.75 3.54l-1.96-2.36L8.5 15h11l-3.54-4.71z" fill="currentColor"/>',width:24,height:24}},function(e,n,t){"use strict";e.exports=t(114)},function(e,n){n.__esModule=!0,n.default={body:'<path d="M19 3H5c-1.11 0-2 .89-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m0 2v14H5V5h14z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M10 17l-5-5l1.41-1.42L10 14.17l7.59-7.59L19 8m0-5H5c-1.11 0-2 .89-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2z" fill="currentColor"/>',width:24,height:24}},function(e,n,t){"use strict";var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(6),u=t(3),s=t(8),f=t(5),d=t(9),p=t.n(d),h=t(7);function m(){var e=x(["\n align-items: center;\n background-color: ",";\n border: none;\n box-sizing: border-box;\n color: white;\n display: flex;\n font-family: ",";\n font-size: ",";\n width: 100%;\n padding: 8px 15px 8px 15px;\n text-align: center;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ",";\n }\n\n :disabled:not(.is-pro) {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n &.is-pro {\n background-color: ",";\n justify-content: space-between;\n }\n"]);return m=function(){return e},e}function b(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(t.push(i.value),!n||t.length!==n);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return t}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return v(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return v(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function y(){var e=x(["\n position: relative;\n display: block;\n margin-top: 18px;\n background-color: ",";\n position: absolute;\n z-index: 10;\n box-shadow: ",';\n\n &:before {\n content: "";\n position: absolute;\n top: -18px;\n left: 50%;\n margin-left: -8px;\n border: 8px solid transparent;\n border-bottom: 10px solid ',";\n }\n"]);return y=function(){return e},e}function g(){var e=x(["\n align-items: center;\n background-color: ",";\n border: none;\n border-radius: 4px;\n box-sizing: border-box;\n color: white;\n display: inline-flex;\n justify-content: space-between;\n font-family: ",";\n font-size: ",";\n height: 30px;\n min-width: 6em;\n padding: 0px 10px;\n text-align: center;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ",";\n }\n\n :disabled {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n & + button {\n margin-left: .25rem;\n }\n"]);return g=function(){return e},e}function w(){var e=x(["\n display: inline-block;\n"]);return w=function(){return e},e}function x(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var O=l.a.div(w()),k=l.a.button(g(),u.a.blue,u.a.fontFamily,u.a.fontSizeText,Object(c.a)(.1,u.a.blue)),C=l.a.div(y(),u.a.blue,u.a.lightShadow,u.a.blue),j=function(e){var n=e.title,t=e.disabled,r=void 0!==t&&t,a=e.isPro,i=void 0!==a&&a,l=e.style,c=void 0===l?{}:l,u=b(o.a.useState(!1),2),s=u[0],d=u[1],m=Object(h.e)((function(){d(!1)})),v=Object(h.a)(),y=v.ref,g=v.width,w=function(){d(!s)},x=o.a.Children.map(e.children,(function(e){return o.a.cloneElement(e,{isPro:i,disabled:e.props.disabled||r,onClick:function(){e.props.onClick&&e.props.onClick(),w()}})}));return o.a.createElement(O,{ref:m},o.a.createElement(k,{ref:y,type:"button",disabled:r,onClick:w,style:c},o.a.createElement("span",null,n),o.a.createElement(f.Icon,{icon:p.a,width:"24",height:"24",style:{marginLeft:"4px"}})),s&&o.a.createElement(C,{style:{transform:"translateX(calc(-50% + ".concat(g/2,"px))")}},x))},E=l.a.button(m(),u.a.blue,u.a.fontFamily,u.a.fontSizeText,Object(c.a)(.1,u.a.blue),u.a.proGray),S=function(e){var n=e.onClick,t=e.children,r=e.isPro,a=e.requirePro,i=void 0!==a&&a,l=e.disabled,c=i&&!r;return o.a.createElement(E,{type:"button",className:c?"is-pro":"",onClick:n,disabled:l||c},o.a.createElement("span",null,t),c&&!r&&o.a.createElement(s.a,null))},_=function(e){return o.a.createElement(j,e)},P=function(e){return o.a.createElement(S,e)};_.propTypes={title:i.a.string,disabled:i.a.bool,isPro:i.a.bool},_.defaultProps={title:void 0,disabled:!1,isPro:!1},P.propTypes={onClick:i.a.func.isRequired,requirePro:i.a.bool},P.defaultProps={onClick:function(){},requirePro:!1}},function(e,n,t){"use strict";t.d(n,"b",(function(){return v})),t.d(n,"a",(function(){return y}));var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4);function c(){return(c=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function u(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function s(){var e=d(["\n flex: 1;\n padding: 32px 30px;\n\n .nui-block:not(:first-child) {\n margin-top: -20px;\n }\n\n .nui-block:last-child {\n margin-bottom: 0px;\n }\n\n &.minimal {\n padding: 0;\n }\n\n &.full {\n flex-basis: 100%;\n padding-bottom: 0;\n }\n\n & + .full {\n padding-bottom: 32px;\n padding-top: 0;\n }\n\n &:not(.full) + div:not(.full) {\n padding-left: 0;\n }\n"]);return s=function(){return e},e}function f(){var e=d(["\n display: flex;\n flex-wrap: wrap;\n"]);return f=function(){return e},e}function d(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var p=l.a.div(f()),h=l.a.div(s()),m=function(e){return o.a.createElement(p,null,e.children)},b=function(e){var n=e.full,t=e.minimal,r=u(e,["full","minimal"]),a=n?"full":"";return a+=t?" minimal":"",o.a.createElement(h,c({className:a},r),e.children)},v=function(e){return o.a.createElement(m,e)},y=function(e){return o.a.createElement(b,e)};v.propTypes={},v.defaultProps={},y.propTypes={full:i.a.any},y.defaultProps={full:void 0}},function(e,n,t){"use strict";t.d(n,"b",(function(){return U})),t.d(n,"a",(function(){return q}));var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(3),u=t(8),s=t(7),f=t(5),d=t(103),p=t.n(d),h=t(104),m=t.n(h),b=t(9),v=t.n(b),y=t(17),g=t.n(y),w=t(10);function x(){var e=M(["\n background-color: ",";\n cursor: pointer;\n font-family: ",";\n\n &:hover {\n filter: brightness(80%);\n }\n\n input {\n display: none;\n }\n\n .option {\n align-items: center;\n color: ",";\n display: flex;\n justify-content: space-between;\n font-family: ",";\n font-size: 14px;\n line-height: 17px;\n padding: 8px 12px;\n\n .option-group {\n align-items: center;\n display: flex;\n }\n }\n\n &.disabled {\n background-color: rgb(224 156 54);\n pointer-events: none;\n\n .option {\n color: rgb(255 255 255 / 35%);\n }\n }\n"]);return x=function(){return e},e}function O(){var e=M(["\n font-family: ",";\n margin-bottom: 6px;\n\n input {\n display: none;\n }\n\n label {\n cursor: pointer;\n display: flex;\n }\n\n .inner-container {\n margin-left: 4px;\n\n .label {\n display: block;\n font-size: 14px;\n line-height: 17px;\n padding-top: 4.5px;\n padding-bottom: 4px;\n }\n .description {\n display: block;\n font-size: 12px;\n }\n }\n\n &.disabled {\n color: ",";\n\n label {\n cursor: default;\n }\n }\n"]);return O=function(){return e},e}function k(){return(k=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function C(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(t.push(i.value),!n||t.length!==n);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return t}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return j(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return j(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function E(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function S(){var e=M(["\n background-color: ",";\n"]);return S=function(){return e},e}function _(){var e=M(["\n border-radius: 8px;\n overflow: hidden;\n padding-top: 28px;\n position: absolute;\n top: 0;\n z-index: 10;\n width: 100%;\n transition: all 0.2s ease-in;\n\n &.hidden {\n opacity: 0;\n }\n"]);return _=function(){return e},e}function P(){var e=M(["\n display: block;\n margin-top: 5px;\n font-size: 13px;\n line-height: 14px;\n color: #8a8a8a;\n\n * {\n font-size: 13px;\n line-height: inherit;\n margin: 0;\n }\n"]);return P=function(){return e},e}function A(){var e=M(["\n align-items: center;\n background-color: ",";\n border: 2px solid ",";\n border-radius: 8px;\n display: flex;\n font-family: ",";\n font-size: 14px;\n padding: 0 5px 0 10px;\n box-sizing: border-box;\n height: 30px;\n\n .rightContent {\n align-items: center;\n display: flex;\n margin-left: auto;\n }\n"]);return A=function(){return e},e}function I(){var e=M(["\n border-radius: 8px;\n position: relative;\n user-select: none;\n cursor: pointer;\n\n &.show-options {\n background-color: ",";\n border-radius: 8px 8px 0 0;\n }\n"]);return I=function(){return e},e}function M(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var z=l.a.div(I(),c.a.blue),T=l.a.div(A(),c.a.white,c.a.blue,c.a.fontFamily),N=l.a.div(P()),R=l.a.div(_()),L=l.a.div(S(),c.a.white),F=function(e){var n,t=e.id,a=e.name,i=e.value,l=e.scrolldown,c=void 0!==l&&l,d=e.isPro,p=void 0!==d&&d,h=e.onChange,m=e.className,b=E(e,["id","name","value","scrolldown","isPro","onChange","className"]),y=null===(n=o.a.Children.toArray(e.children).find((function(e){return e.props.value===i||e.props.checked})))||void 0===n?void 0:n.props,x=(null==y?void 0:y.label)||"Select",O=(null==y?void 0:y.description)||e.description,j=(null==y?void 0:y.requirePro)||!1,S=null==y?void 0:y.icon,_=C(Object(r.useState)(!1),2),P=_[0],A=_[1],I=c?Object(s.e)((function(){A(!1)})):null,M=j&&!p,F=function(n){if(n!==i){if(!h)return void console.log("The onChange handler it not set for this checkbox.",e);h(n,t)}c&&A(!1)},D=o.a.Children.map(e.children,(function(e){return o.a.cloneElement(e,{name:e.props.name||a,checked:e.props.value===i||e.props.checked,onClick:F,scrolldown:c,isPro:p})}));return c?o.a.createElement(z,k({id:t,ref:I},b,{onClick:function(){return A(!P)},className:["nui-select",m,P?"show-options":""],childrenLength:D.length}),o.a.createElement(T,null,S&&o.a.createElement(w.a,{icon:S,width:20,height:20,style:{marginRight:"9px"}}),x,o.a.createElement("div",{className:"rightContent"},M&&o.a.createElement(u.a,null),o.a.createElement(f.Icon,{icon:P?g.a:v.a,width:"24"}))),O&&o.a.createElement(N,null,O),P&&o.a.createElement(R,{className:"nui-option ".concat(P?"":"hidden")},o.a.createElement(L,null,[D]))):D},D=l.a.div(O(),c.a.fontFamily,c.a.disabledForm),B=l.a.div(x(),c.a.blue,c.a.fontFamily,c.a.white,c.a.fontFamily),H=function(e){var n=e.id,t=e.name,r=e.value,a=e.checked,i=e.icon,l=e.label,s=e.description,d=e.onClick,h=e.scrolldown,b=e.isPro,v=void 0!==b&&b,y=e.requirePro,g=void 0!==y&&y&&!v,x=g?"disabled":"",O=o.a.createElement(D,{className:"nui-select ".concat(e.className||""," ").concat(x)},o.a.createElement("input",{id:n,name:t,type:"radio",value:r,defaultChecked:a,onClick:function(e){return d(e.target.value)},disabled:g}),o.a.createElement("label",{htmlFor:n},o.a.createElement(f.Icon,{icon:a?m.a:p.a,width:"24px",color:g?c.a.disabledForm:c.a.blue}),o.a.createElement("div",{className:"inner-container"},o.a.createElement("span",{className:"label"},l,o.a.createElement(u.a,{className:"inline",style:{top:-1},show:g})),s?o.a.createElement("small",{className:"description"},s):null))),k=o.a.createElement(B,{className:"nui-select ".concat(e.className||""," ").concat(x)},o.a.createElement("input",{id:n,name:t,type:"radio",value:r,defaultChecked:a,disabled:g}),o.a.createElement("div",{className:"option",onClick:function(){return d(r)}},o.a.createElement("div",{className:"option-group"},i&&o.a.createElement(w.a,{icon:i,width:20,height:20,style:{marginRight:"9px"}}),l),o.a.createElement(u.a,{show:g})));return h?k:O},U=function(e){return o.a.createElement(F,e)};U.propTypes={id:i.a.string,name:i.a.string,description:i.a.string,scrolldown:i.a.bool,isPro:i.a.bool,onChange:i.a.func},U.propTypes={id:void 0,name:void 0,description:void 0,scrolldown:!1,isPro:!1,onChange:void 0};var q=function(e){return o.a.createElement(H,e)};q.propTypes={id:i.a.string,name:i.a.string,value:i.a.string,checked:i.a.bool,label:i.a.string,description:i.a.string,onClick:i.a.func,scrolldown:i.a.bool,isPro:i.a.bool,requirePro:i.a.bool,icon:i.a.string},q.defaultProps={id:void 0,name:void 0,value:void 0,checked:!1,label:void 0,description:void 0,onClick:void 0,scrolldown:!1,isPro:!1,requirePro:!1,icon:void 0}},function(e,n,t){"use strict";var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(3),u=t(5),s=t(18),f=t.n(s),d=t(32),p=t.n(d),h=t(33),m=t.n(h),b=t(13),v=t.n(b),y=t(9),g=t.n(y),w=t(105),x=t.n(w);function O(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(t.push(i.value),!n||t.length!==n);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return t}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return k(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return k(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function C(){var e=A(["\n border-left: 1px solid ",";\n margin-left: 12px;\n padding-left: 6px;\n\n &.no-line {\n border-left: 0;\n padding-left: 12px;\n }\n\n &.no-chevron {\n border-left: 0;\n margin-left: 0;\n padding-left: 0;\n }\n"]);return C=function(){return e},e}function j(){var e=A(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 100;\n"]);return j=function(){return e},e}function E(){var e=A(["\n position: relative;\n width: 24px;\n height: 24px;\n"]);return E=function(){return e},e}function S(){var e=A(["\n height: 24px;\n width: 24px;\n"]);return S=function(){return e},e}function _(){var e=A(["\n align-items: center;\n display: flex;\n\n &.can-expand {\n cursor: pointer;\n }\n\n &.selected {\n color: #956DBE;\n }\n\n span {\n font-weight: normal;\n font-size: 13px;\n margin: 0 0 0 8px;\n }\n"]);return _=function(){return e},e}function P(){var e=A(["\n align-items: center;\n display: flex;\n justify-content: space-between;\n margin-bottom: 5px;\n font-family: Lato;\n"]);return P=function(){return e},e}function A(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var I=function(e){var n=e.chevron,t=void 0===n||n;return o.a.Children.map(e.children,(function(e){return o.a.cloneElement(e,{chevron:t})}))},M=l.a.div(P()),z=l.a.div(_()),T=l.a.div(S()),N=l.a.div(E()),R=l.a.div(j()),L=l.a.div(C(),c.a.finderBorder),F=function(e){var n={gallery:m.a,tag:x.a},t=e.title,a=e.chevron,i=e.rightElement,l=void 0===i?null:i,s=e.rightElementStyle,d=void 0===s?{marginLeft:"5px"}:s,h=e.showRightElement,b=void 0!==h&&h,y=e.selected,w=void 0!==y&&y,k=e.draggable,C=void 0!==k&&k,j=e.onDragStart,E=e.onDragOver,S=e.onDragEnd,_=e.onDrop,P=e.isExpanded,A=void 0!==P&&P,I=e.dragging,F=void 0!==I&&I,D=e.rightAction,B=void 0===D?null:D,H=e.rightActionOnHover,U=void 0===H?null:H,q=e.onDragLeave,V=(e.preventClose,!!e.icon),$=!!e.children,W=O(Object(r.useState)(A),2),G=W[0],K=W[1],Y=O(Object(r.useState)((function(){return"string"==typeof e.icon&&Object.keys(n).includes(e.icon)?n[e.icon]:e.icon?e.icon:f.a})),2),X=Y[0],J=Y[1],Z=Boolean(X),Q=O(Object(r.useState)(!1),2),ee=Q[0],ne=Q[1];Object(r.useEffect)((function(){K(A),V||J(A?f.a:p.a)}),[A]);var te=o.a.Children.map(e.children,(function(e){return o.a.cloneElement(e,{chevron:a})})),re=F||w?c.a.purple:w?c.a.black:c.a.blue;return o.a.createElement("div",null,o.a.createElement(M,{onMouseEnter:function(){return ne(!0)},onMouseLeave:function(){return ne(!1)}},o.a.createElement(z,{onClick:function(){e.onClick&&e.onClick()},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,draggable:C,onDragStart:j,onDragOver:E,onDrop:_,className:"".concat(Z||te||e.onClick?"can-expand":""," ").concat(w?"selected":""),onDragLeave:q,onDragEnd:S},a?Z&&$?o.a.createElement(u.Icon,{icon:G?g.a:v.a,width:"24",height:"24",onClick:function(e){e.stopPropagation(),K(!G)}}):o.a.createElement(T,null):null,o.a.createElement(N,null,o.a.createElement(R,null),o.a.createElement(u.Icon,{icon:X,color:re,width:"24",height:"24"})),o.a.createElement("span",null,t),b&&o.a.createElement("div",{style:d},l)),ee&&U||B),G&&o.a.createElement(L,{className:"".concat(Z?"":"no-line"," ").concat(a?"":"no-chevron")},te))},D=function(e){return o.a.createElement(I,e)};D.propTypes={chevron:i.a.bool},D.defaultProps={chevron:!0};var B=function(e){return o.a.createElement(F,e)};B.propTypes={icon:i.a.oneOfType([i.a.instanceOf(u.IconifyIcon),i.a.oneOf(["gallery"])]),title:i.a.string,isExpanded:i.a.bool},B.defaultProps={icon:f.a,title:void 0,isExpanded:!1}},function(e,n,t){"use strict";t.d(n,"b",(function(){return v})),t.d(n,"a",(function(){return y}));var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(3),u=t(10);function s(){var e=d(["\n color: ",";\n cursor: pointer;\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n line-height: 17px;\n\n &.is-active {\n cursor: default;\n color: ",';\n font-weight: bold;\n }\n\n &::after {\n content: "|";\n color: ',";\n padding: 0 4px;\n }\n\n &:last-child::after {\n content: none;\n }\n\n span {\n color: ",";\n font-weight: normal;\n margin-left: 4px;\n }\n"]);return s=function(){return e},e}function f(){var e=d(["\n display: flex;\n align-items: center;\n"]);return f=function(){return e},e}function d(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var p=l.a.div(f()),h=l.a.span(s(),c.a.blue,c.a.fontFamily,c.a.black,c.a.darkGray,c.a.darkGray),m=function(e){var n=e.id,t=e.value,r=e.onChange,a=e.busy,i=void 0!==a&&a,l=e.className,c=o.a.Children.map(e.children,(function(e,a){return o.a.cloneElement(e,{busy:i,isActive:e.props.value===t,onClick:function(e){e!==t&&r(e,n)}})}));return o.a.createElement(p,{className:l},c)},b=function(e){var n=e.title,t=e.value,r=void 0===t?0:t,a=e.count,i=e.onClick,l=e.busy,c=e.isActive,s=e.className;return o.a.createElement(h,{onClick:function(){return i(r)},className:"".concat(c?"is-active":""," ").concat(s)},n,null===a?null:o.a.createElement("span",null,"(",l?o.a.createElement(u.a,{icon:"replay",spinning:!0,width:12,containerStyle:{display:"inline"}}):a,")"))},v=function(e){return o.a.createElement(m,e)};v.propTypes={id:i.a.string,value:i.a.string,onChange:i.a.func},v.defaultProps={id:void 0,value:void 0,onChange:void 0};var y=function(e){return o.a.createElement(b,e)};y.propTypes={title:i.a.string,value:i.a.string,count:i.a.number,onClick:i.a.func,isActive:i.a.bool},y.defaultProps={title:void 0,value:"default",count:0,onClick:void 0,isActive:!1}},function(e,n,t){"use strict";t.d(n,"a",(function(){return l})),t.d(n,"b",(function(){return c}));var r=t(4);function o(){var e=i(["\n background: #1eba96;\n padding: 20px;\n color: white;\n border-radius: 10px;\n font-size: 15px;\n text-align: center;\n\n a {\n color: white;\n font-weight: bold;\n }\n"]);return o=function(){return e},e}function a(){var e=i(["\n background: #ba341e;\n padding: 20px;\n color: white;\n border-radius: 10px;\n font-size: 15px;\n\n a {\n color: white;\n font-weight: bold;\n }\n"]);return a=function(){return e},e}function i(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var l=r.a.p(a()),c=r.a.p(o())},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.canUseDOM=void 0;var r,o=t(126);var a=((r=o)&&r.__esModule?r:{default:r}).default,i=a.canUseDOM?window.HTMLElement:{};n.canUseDOM=a.canUseDOM;n.default=i},function(e,n,t){"use strict";t.d(n,"a",(function(){return C})),t.d(n,"b",(function(){return k}));var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(3),u=t(8);function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(t.push(i.value),!n||t.length!==n);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return t}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return f(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return f(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function d(){var e=b(["\n background-color: ",";\n display: none;\n padding: 10px;\n\n &.active {\n display: block;\n }\n"]);return d=function(){return e},e}function p(){var e=b(["\n font-family: ",";\n font-size: ",";\n border-radius: 8px 8px 0px 0px;\n border: 0;\n background-color: #459ad2;\n color: rgb(255 255 255 / 65%);\n\n cursor: pointer;\n line-height: 17px;\n margin-right: 5px;\n text-align: left;\n padding: 10px 15px 10px 15px;\n\n &:focus {\n outline: none;\n }\n\n &.active {\n background-color: ",";\n color: ",";\n }\n\n &.disabled {\n background-color: rgb(224 156 54);\n cursor: default;\n display: inline-flex;\n padding-bottom: 7px;\n }\n"]);return p=function(){return e},e}function h(){var e=b(["\n"]);return h=function(){return e},e}function m(){var e=b(["\n"]);return m=function(){return e},e}function b(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var v=l.a.div(m()),y=l.a.div(h()),g=l.a.button(p(),c.a.fontFamily,c.a.fontSizeText,c.a.blue,c.a.white),w=l.a.div(d(),c.a.blue),x=function(e){var n=s(o.a.useState(0),2),t=n[0],r=n[1];o.a.useEffect((function(){if(e.keepTabOnReload){var n=new URL(window.location.href).searchParams.get("nekoTab");if(!n)return void r(0);var t=decodeURIComponent(n),a=o.a.Children.toArray(e.children).map((function(e){return e.props.title.replace(" ","")})).indexOf(t);return-1===a?void r(0):void r(a)}r(0)}),[]);var a=o.a.Children.map(e.children,(function(n,t){var r=n.props.title||"Untitled Tab "+(t+1);return{key:n.props.key||"neko-tab-"+r.toLowerCase(),title:r,onClick:n.props.onClick?n.props.onClick:null,requirePro:!e.isPro&&(n.props.requirePro||!1)}})),i=o.a.Children.map(e.children,(function(e,n){return o.a.cloneElement(e,{isActive:n===t})})),l=function(n,t,o){t.requirePro||(r(n),e.onChange&&e.onChange(n,t,o),e.keepTabOnReload&&function(e){if(history.pushState&&e){var n=new URLSearchParams(window.location.search),t=encodeURIComponent(e.replace(" ",""));n.set("nekoTab",t);var r=window.location.protocol+"//"+window.location.host+window.location.pathname+"?"+n.toString();window.history.replaceState({path:r},"",r)}}(t.title))};return o.a.createElement(v,null,o.a.createElement(y,null,a.map((function(e,n){return o.a.createElement(g,{key:e.key,className:"neko-tab-title ".concat(n===t?"active":""," ").concat(e.requirePro?"disabled":""),onClick:function(t){l(n,e,t)}},e.title,o.a.createElement(u.a,{className:"inline",style:{marginLeft:10,marginRight:-5,top:-1},show:e.requirePro}))}))),i)},O=function(e){var n=e.children,t=e.isActive;return o.a.createElement(w,{className:"".concat(t?"active":"")},!!t&&n)},k=function(e){return o.a.createElement(x,e)};k.propTypes={isPro:i.a.bool,onChange:i.a.func},k.defaultProps={isPro:!1,onChange:void 0};var C=function(e){return o.a.createElement(O,e)};C.propTypes={isActive:i.a.bool,requirePro:i.a.bool,title:i.a.string},C.defaultProps={isActive:!1,requirePro:!1,title:void 0}},function(e,n,t){"use strict";var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(3),u=t(8),s=t(5),f=t(9),d=t.n(f),p=t(13),h=t.n(p);function m(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(t.push(i.value),!n||t.length!==n);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return t}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return b(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return b(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function v(){var e=w(["\n background-color: ",";\n display: none;\n\n &.active {\n display: block;\n }\n"]);return v=function(){return e},e}function y(){var e=w(["\n align-items: center;\n background-color: ",";\n border: 0;\n cursor: pointer;\n display: flex;\n padding: 2px 3px 2px 19px;\n\n &.disabled {\n background-color: rgba(",", 0.25);\n cursor: default;\n }\n\n p {\n color: ",";\n font-family: ",";\n font-size: 14px;\n line-height: 17px;\n margin: 0;\n }\n\n .neko-side-tab-icon {\n color: ",";\n margin-left: auto;\n height: 36px;\n width: 36px;\n }\n"]);return y=function(){return e},e}function g(){var e=w(["\n"]);return g=function(){return e},e}function w(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var x=l.a.div(g()),O=l.a.div(y(),c.a.blue,c.a.yellowRGB,c.a.white,c.a.fontFamily,c.a.white),k=l.a.div(v(),c.a.white),C=function(e){var n=m(o.a.useState(e.activeTabIndex),2),t=n[0],r=n[1],a=o.a.Children.map(e.children,(function(n,t){var r=n.props.title||"Untitled Tab "+(t+1);return{key:n.props.key||"neko-tab-"+r.toLowerCase(),title:r,onClick:n.props.onClick?n.props.onClick:null,requirePro:!e.isPro&&(n.props.requirePro||!1),onDragOver:n.props.onDragOver,onDrop:n.props.onDrop,rightActions:n.props.rightActions||null}})),i=o.a.Children.map(e.children,(function(e,n){return o.a.cloneElement(e,{isActive:n===t})}));return o.a.createElement(x,null,a.map((function(n,a){return o.a.createElement(o.a.Fragment,null,o.a.createElement(O,{key:n.key,className:"".concat(a===t?"active":""," ").concat(n.requirePro?"disabled":""),onClick:function(o){!function(n,o,a){if(!o.requirePro){var i=n===t?null:n;r(i),e.onChange&&e.onChange(i,o,a)}}(a,n,o)},onDragOver:n.onDragOver,onDrop:n.onDrop},o.a.createElement("p",null,o.a.createElement("span",{style:{fontSize:15}},n.title),o.a.createElement(u.a,{className:"inline",show:n.requirePro})),null===n.rightActions?o.a.createElement(s.Icon,{icon:a===t?d.a:h.a,className:"neko-side-tab-icon"}):a===t?o.a.createElement("div",{style:{marginLeft:"auto"}},n.rightActions):o.a.createElement(s.Icon,{icon:h.a,className:"neko-side-tab-icon"})),i[a])})))},j=function(e){var n=e.children,t=e.isActive;return o.a.createElement(k,{className:"".concat(t?"active":"")},n)},E=function(e){return o.a.createElement(C,e)};E.propTypes={isPro:i.a.bool,onChange:i.a.func,activeTabIndex:i.a.number},E.defaultProps={isPro:!1,onChange:void 0,activeTabIndex:null};var S=function(e){return o.a.createElement(j,e)};S.propTypes={isActive:i.a.bool,requirePro:i.a.bool,title:i.a.string,onDragOver:i.a.func,onDrop:i.a.func,rightActions:i.a.element},S.defaultProps={isActive:!1,requirePro:!1,title:void 0,onDragOver:void 0,onDrop:void 0,rightActions:void 0}},function(e,n,t){"use strict";var r=t(34),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function c(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var u=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(n,t,r){if("string"!=typeof t){if(h){var o=p(t);o&&o!==h&&e(n,o,r)}var i=s(t);f&&(i=i.concat(f(t)));for(var l=c(n),m=c(t),b=0;b<i.length;++b){var v=i[b];if(!(a[v]||r&&r[v]||m&&m[v]||l&&l[v])){var y=d(t,v);try{u(n,v,y)}catch(e){}}}}return n}},function(e,n,t){"use strict";function r(e,n,t,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var n=this,t=arguments;return new Promise((function(o,a){var i=e.apply(n,t);function l(e){r(i,o,a,l,c,"next",e)}function c(e){r(i,o,a,l,c,"throw",e)}l(void 0)}))}}function a(e){return(a="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})(e)}function i(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,n){return(l=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function c(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=f(e);if(n){var o=f(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return u(this,t)}}function u(e,n){return!n||"object"!==a(n)&&"function"!=typeof n?s(e):n}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(n,"__esModule",{value:!0});var d=t(115),p=t(116),h=t(118),m=function(){},b=new p.TimeoutError,v=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&l(e,n)}(g,e);var n,t,r,u,f,d,v,y=c(g);function g(e){var n,t,r,o,i;if(function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,g),n=y.call(this),Object.defineProperty(s(n),"_carryoverConcurrencyCount",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(s(n),"_isIntervalIgnored",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(s(n),"_intervalCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(s(n),"_intervalCap",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(s(n),"_interval",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(s(n),"_intervalEnd",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(s(n),"_intervalId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(s(n),"_timeoutId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(s(n),"_queue",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(s(n),"_queueClass",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(s(n),"_pendingCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(s(n),"_concurrency",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(s(n),"_isPaused",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(s(n),"_resolveEmpty",{enumerable:!0,configurable:!0,writable:!0,value:m}),Object.defineProperty(s(n),"_resolveIdle",{enumerable:!0,configurable:!0,writable:!0,value:m}),Object.defineProperty(s(n),"_timeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(s(n),"_throwOnTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),!("number"==typeof(e=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:h.default},e)).intervalCap&&e.intervalCap>=1))throw new TypeError("Expected `intervalCap` to be a number from 1 and up, got `".concat(null!==(r=null===(t=e.intervalCap)||void 0===t?void 0:t.toString())&&void 0!==r?r:"","` (").concat(a(e.intervalCap),")"));if(void 0===e.interval||!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError("Expected `interval` to be a finite number >= 0, got `".concat(null!==(i=null===(o=e.interval)||void 0===o?void 0:o.toString())&&void 0!==i?i:"","` (").concat(a(e.interval),")"));return n._carryoverConcurrencyCount=e.carryoverConcurrencyCount,n._isIntervalIgnored=e.intervalCap===1/0||0===e.interval,n._intervalCap=e.intervalCap,n._interval=e.interval,n._queue=new e.queueClass,n._queueClass=e.queueClass,n.concurrency=e.concurrency,n._timeout=e.timeout,n._throwOnTimeout=!0===e.throwOnTimeout,n._isPaused=!1===e.autoStart,n}return n=g,(t=[{key:"_next",value:function(){this._pendingCount--,this._tryToStartAnother()}},{key:"_resolvePromises",value:function(){this._resolveEmpty(),this._resolveEmpty=m,0===this._pendingCount&&(this._resolveIdle(),this._resolveIdle=m,this.emit("idle"))}},{key:"_onResumeInterval",value:function(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}},{key:"_isIntervalPaused",value:function(){var e=this,n=Date.now();if(void 0===this._intervalId){var t=this._intervalEnd-n;if(!(t<0))return void 0===this._timeoutId&&(this._timeoutId=setTimeout((function(){e._onResumeInterval()}),t)),!0;this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0}return!1}},{key:"_tryToStartAnother",value:function(){if(0===this._queue.size)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){var e=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother)return this.emit("active"),this._queue.dequeue()(),e&&this._initializeIntervalIfNeeded(),!0}return!1}},{key:"_initializeIntervalIfNeeded",value:function(){var e=this;this._isIntervalIgnored||void 0!==this._intervalId||(this._intervalId=setInterval((function(){e._onInterval()}),this._interval),this._intervalEnd=Date.now()+this._interval)}},{key:"_onInterval",value:function(){0===this._intervalCount&&0===this._pendingCount&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}},{key:"_processQueue",value:function(){for(;this._tryToStartAnother(););}},{key:"add",value:(v=o(regeneratorRuntime.mark((function e(n){var t,r=this,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>1&&void 0!==a[1]?a[1]:{},e.abrupt("return",new Promise((function(e,a){var i=function(){var i=o(regeneratorRuntime.mark((function o(){var i;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return r._pendingCount++,r._intervalCount++,o.prev=2,i=void 0===r._timeout&&void 0===t.timeout?n():p.default(Promise.resolve(n()),void 0===t.timeout?r._timeout:t.timeout,(function(){(void 0===t.throwOnTimeout?r._throwOnTimeout:t.throwOnTimeout)&&a(b)})),o.t0=e,o.next=7,i;case 7:o.t1=o.sent,(0,o.t0)(o.t1),o.next=14;break;case 11:o.prev=11,o.t2=o.catch(2),a(o.t2);case 14:r._next();case 15:case"end":return o.stop()}}),o,null,[[2,11]])})));return function(){return i.apply(this,arguments)}}();r._queue.enqueue(i,t),r._tryToStartAnother()})));case 2:case"end":return e.stop()}}),e)}))),function(e){return v.apply(this,arguments)})},{key:"addAll",value:(d=o(regeneratorRuntime.mark((function e(n,t){var r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(n.map(function(){var e=o(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r.add(n,t));case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}())));case 1:case"end":return e.stop()}}),e)}))),function(e,n){return d.apply(this,arguments)})},{key:"start",value:function(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}},{key:"pause",value:function(){this._isPaused=!0}},{key:"clear",value:function(){this._queue=new this._queueClass}},{key:"onEmpty",value:(f=o(regeneratorRuntime.mark((function e(){var n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this._queue.size){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",new Promise((function(e){var t=n._resolveEmpty;n._resolveEmpty=function(){t(),e()}})));case 3:case"end":return e.stop()}}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"onIdle",value:(u=o(regeneratorRuntime.mark((function e(){var n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this._pendingCount||0!==this._queue.size){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",new Promise((function(e){var t=n._resolveIdle;n._resolveIdle=function(){t(),e()}})));case 3:case"end":return e.stop()}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"sizeBy",value:function(e){return this._queue.filter(e).length}},{key:"_doesIntervalAllowAnother",get:function(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}},{key:"_doesConcurrentAllowAnother",get:function(){return this._pendingCount<this._concurrency}},{key:"concurrency",get:function(){return this._concurrency},set:function(e){if(!("number"==typeof e&&e>=1))throw new TypeError("Expected `concurrency` to be a number from 1 and up, got `".concat(e,"` (").concat(a(e),")"));this._concurrency=e,this._processQueue()}},{key:"size",get:function(){return this._queue.size}},{key:"pending",get:function(){return this._pendingCount}},{key:"isPaused",get:function(){return this._isPaused}},{key:"timeout",get:function(){return this._timeout},set:function(e){this._timeout=e}}])&&i(n.prototype,t),r&&i(n,r),g}(d);n.default=v},function(e,n,t){"use strict";var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=function(e){var n={};return function(t){return void 0===n[t]&&(n[t]=e(t)),n[t]}}((function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));n.a=o},function(e,n,t){"use strict";t.d(n,"a",(function(){return m}));var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(11);function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(t.push(i.value),!n||t.length!==n);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return t}(e,n)||s(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,n){if(e){if("string"==typeof e)return f(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?f(e,n):void 0}}function f(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function d(){var e=function(e,n){n||(n=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n position: relative;\n background: #f1f1f1;\n margin-left: -20px;\n background-color: rgb(30 124 186 / 10%);\n padding-bottom: 50px;\n margin-bottom: -26px;\n\n .neko-rest-error {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: #1e232deb;\n z-index: 100;\n\n .container {\n color: white;\n padding: 5px 20px 15px 20px;\n min-width: 480px;\n max-width: 600px;\n border-radius: 20px;\n background: #883131;\n margin-left: 50%;\n transform: translateX(-50%);\n margin-top: 100px;\n\n h3 {\n color: white;\n }\n\n .neko-debug {\n padding: 5px 10px;\n background: #692426;\n border-radius: 10px;\n\n * {\n margin: 0px;\n padding: 0px;\n } \n }\n }\n }\n"]);return d=function(){return e},e}var p=l.a.div(d()),h=function(e){var n=e.className,t=e.children,a=e.nekoErrors,i=void 0===a?[]:a,l=e.style,f=void 0===l?{}:l,d=u(Object(r.useState)(!1),2),h=d[0],m=d[1],b=u(Object(r.useState)(!1),2),v=b[0],y=b[1];if(i&&!h){var g,w=function(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=s(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){t=e[Symbol.iterator]()},n:function(){var e=t.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(l)throw a}}}}(i);try{for(w.s();!(g=w.n()).done;){var x=g.value;if(x){m(x);break}}}catch(e){w.e(e)}finally{w.f()}}return o.a.createElement(p,{className:n||"",style:f},h&&o.a.createElement("div",{className:"neko-rest-error"},o.a.createElement("div",{className:"container"},!v&&o.a.createElement(o.a.Fragment,null,o.a.createElement("h3",null,"The Rest API is disabled or broken 😢"),o.a.createElement("p",null,"The Rest API is required for this plugin to work. It is enabled in WordPress by default since December 2016 and used by the Gutenberg Editor since 2019. In short, it allows more robustness and a much cleaner infrastructure. Soon, Wordpress will entirely depends on it, so it is important to keep it enabled."),o.a.createElement("p",null,o.a.createElement("i",null,"Last but not least: check your PHP Error Logs and your Debugging Console.")),o.a.createElement("p",{className:"neko-debug"},o.a.createElement("small",null,"URL: ",h.url,o.a.createElement("br",null),"CODE: ",h.code,o.a.createElement("br",null),"MESSAGE: ",h.message,o.a.createElement("br",null)))),h.body&&v&&o.a.createElement("p",{className:"neko-debug"},o.a.createElement("div",{dangerouslySetInnerHTML:{__html:h.body}})),h.body&&o.a.createElement(c.a,{color:"#a94242",onClick:function(){return y(!v)}},v?"Hide":"Display"," response from server"),o.a.createElement(c.a,{color:"#a94242",onClick:function(){window.open("https://meowapps.com/fix-wordpress-rest-api/","_blank")}},"Learn about WordPress Debugging"))),t)},m=function(e){return o.a.createElement(h,e)};m.propTypes={className:i.a.string,style:i.a.object,nekoErrors:i.a.bool},m.defaultProps={className:void 0,style:{},nekoErrors:!1}},function(e,n,t){"use strict";t.d(n,"a",(function(){return h}));var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(3),u=t(16),s=t(14);function f(){var e=function(e,n){n||(n=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n font-size: ",";\n margin-bottom: 15px;\n \n .nui-block-title {\n color: ",";\n padding: 5px 10px;\n margin-bottom: 5px;\n }\n\n .nui-block-content {\n background-color: #f1f1f1;\n padding: 26px;\n box-shadow: 0px 2px 5px 0px #0000004a;\n border-radius: 10px;\n\n p:first-child {\n margin-top: 0;\n }\n\n p:last-child {\n margin-bottom: 0;\n }\n }\n\n &.primary {\n padding: 8px;\n background-color: ",";\n\n .nui-block-title {\n color: ",";\n }\n\n .nui-block-content {\n background-color: ",";\n }\n }\n"]);return f=function(){return e},e}var d=l.a.div(f(),c.a.fontSizeText,c.a.blue,c.a.blue,c.a.white,c.a.white),p=function(e){var n=e.title,t=e.children,r=e.className,a=e.busy,i=void 0!==a&&a,l=e.style,c=void 0===l?{}:l;return o.a.createElement(d,{className:"nui-block "+(r||""),style:c},o.a.createElement(s.a,{busy:i},o.a.createElement(u.a,{h2:!0,className:"nui-block-title"},n),o.a.createElement("div",{className:"nui-block-content"},t)))},h=function(e){return o.a.createElement(p,e)};h.propTypes={title:i.a.string,className:i.a.oneOf(["","primary"]),style:i.a.object},h.defaultProps={title:void 0,className:"",style:{}}},function(e,n,t){"use strict";t.d(n,"a",(function(){return m}));var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(3);function u(){var e=f(["\n justify-content: flex-start;\n background-color: ",";\n display: flex;\n align-items: center;\n padding: 8px 10px;\n\n &.align-right {\n justify-content: flex-end;\n }\n"]);return u=function(){return e},e}function s(){var e=f(["\n font-size: ",";\n font-family: ",";\n background-color: ",";\n box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);\n margin-bottom: 25px;\n\n &.primary {\n background-color: ",";\n }\n\n p:first-child {\n margin-top: 0px;\n }\n\n p:last-child {\n margin-bottom: 0px;\n }\n\n .content {\n padding: 20px 20px;\n }\n"]);return s=function(){return e},e}function f(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var d=l.a.div(s(),c.a.fontSizeText,c.a.fontFamily,c.a.white,c.a.blue),p=l.a.div(u(),c.a.lightGray2),h=function(e){var n=e.children,t=e.header,r=e.headerAlign,a=void 0===r?"left":r,i=e.footer,l=e.footerAlign,c=void 0===l?"right":l,u=e.className,s=e.style,f=void 0===s?{}:s;return o.a.createElement(d,{className:u||"",style:f},t&&o.a.createElement(p,{className:"align-".concat(a)},t),o.a.createElement("div",{className:"content"},n),i&&o.a.createElement(p,{className:"align-".concat(c)},i))},m=function(e){return o.a.createElement(h,e)};m.propTypes={header:i.a.element,headerAlign:i.a.oneOf(["left","right"]),footer:i.a.element,footerAlign:i.a.oneOf(["left","right"]),className:i.a.string,style:i.a.object},m.defaultProps={header:void 0,headerAlign:"left",footer:void 0,footerAlign:"right",className:void 0,style:{}}},function(e,n,t){"use strict";t.d(n,"a",(function(){return f}));var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(3);function u(){var e=function(e,n){n||(n=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n display: flex;\n font-family: ",";\n\n > .nui-settings-head {\n font-family: ",";\n font-size: 14px;\n line-height: 17px;\n width: 120px;\n margin-right: 16px;\n }\n\n /* Select, Checkbox, Input need to be a bit higher to be in front of the settings title */\n\n .nui-settings-content > .nui-select:first-child {\n position: relative;\n margin-top: -5px;\n }\n \n .nui-settings-content > .nui-checkbox:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > .nui-checkbox:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > .nui-button:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > div:first-child > .neko-input {\n position: relative;\n margin-top: -5px;\n }\n\n > .nui-settings-content {\n flex: 1;\n\n &.nui-settings-content-align-right {\n flex: none;\n margin-left: auto;\n }\n\n input[type=text] {\n width: 100%;\n }\n\n\n }\n\n & + div {\n margin-top: 15px;\n }\n"]);return u=function(){return e},e}var s=Object(l.a)((function(e){var n=e.title,t=void 0===n?"":n,r=e.contentAlign,a=void 0===r?"left":r;return o.a.createElement("div",{className:e.className||""},t?o.a.createElement("div",{className:"nui-settings-head"},t):null,o.a.createElement("div",{className:"nui-settings-content nui-settings-content-align-".concat(a)},e.children))}))(u(),c.a.fontFamily,c.a.fontFamily),f=function(e){return o.a.createElement(s,e)};f.propTypes={title:i.a.string,className:i.a.string,contentAlign:i.a.string},f.defaultProps={title:"",className:void 0,contentAlign:"left"}},function(e,n,t){"use strict";var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(3);function u(){var e=f(["\n background-color: ",";\n color: white;\n"]);return u=function(){return e},e}function s(){var e=f(["\n margin: 20px;\n padding: 14px;\n background-color: white;\n box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);\n\n > * + * {\n /* Base margin between child elements */\n margin-top: 14px;\n }\n"]);return s=function(){return e},e}function f(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var d=l.a.div(s()),p=Object(l.a)((function(e){return e.children?o.a.createElement("div",{className:e.className},e.children):null}))(u(),c.a.blue),h=function(e){return o.a.createElement(d,{className:"window"},o.a.createElement(p,null,e.title),e.children)},m=function(e){return o.a.createElement(h,e)};m.propTypes={title:i.a.string},m.defaultProps={title:void 0}},function(e,n,t){"use strict";t.d(n,"a",(function(){return v}));var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(3),u=t(8),s=t(5),f=t(35),d=t.n(f),p=t(36),h=t.n(p);function m(){var e=function(e,n){n||(n=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n font-family: ",";\n\n &.disabled {\n color: ",";\n\n label {\n cursor: default;\n }\n }\n\n input {\n display: none;\n }\n\n label {\n cursor: pointer;\n display: flex;\n }\n .nui-checkbox-check-container {\n flex-basis: 30px;\n }\n .nui-checkbox-inner-container {\n margin-top: 1.5px;\n margin-left: 4px;\n\n .label {\n display: block;\n font-size: 14px;\n line-height: 17px;\n padding-top: 4.5px;\n padding-bottom: 4px;\n }\n \n .description {\n display: block;\n font-size: 13px;\n line-height: 14px;\n color: #8a8a8a;\n\n * {\n font-size: 13px;\n line-height: inherit;\n margin: 0;\n }\n }\n }\n"]);return m=function(){return e},e}var b=Object(l.a)((function(e){var n=e.id,t=e.name,r=e.checked,a=void 0!==r&&r,i=e.onChange,l=e.label,f=e.description,p=e.isPro,m=e.disabled,b=e.requirePro,v=void 0!==b&&b&&!p,y=m||v,g=y?"disabled":"";return o.a.createElement("div",{className:["nui-checkbox",e.className,g].join(" ")},o.a.createElement("input",{id:n,name:t,type:"checkbox",defaultChecked:!1,onClick:function(){i?i(!a,n):console.log("The onChange handler it not set for this checkbox.",e)},disabled:y}),o.a.createElement("label",{htmlFor:n},o.a.createElement("div",{className:"nui-checkbox-check-container"},o.a.createElement(s.Icon,{icon:a?h.a:d.a,width:"30px",height:"30px",color:y?c.a.disabledForm:c.a.blue})),o.a.createElement("div",{className:"nui-checkbox-inner-container"},o.a.createElement("span",{className:"label"},l,o.a.createElement(u.a,{className:"inline",show:v})),f?o.a.createElement("small",{className:"description"},f):null)))}))(m(),c.a.fontFamily,c.a.disabledForm),v=function(e){return o.a.createElement(b,e)};v.propTypes={id:i.a.string,name:i.a.string,checked:i.a.bool,label:i.a.string,description:i.a.string,isPro:i.a.bool,requirePro:i.a.bool},v.defaultProps={id:void 0,name:void 0,checked:!1,label:void 0,description:void 0,isPro:!1,requirePro:!1}},function(e,n,t){"use strict";t.d(n,"a",(function(){return s}));var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4);function c(){var e=function(e,n){n||(n=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n"]);return c=function(){return e},e}var u=Object(l.a)((function(e){var n=e.name,t=(e.max,e.isPro),r=void 0!==t&&t;return o.a.Children.map(e.children,(function(e){return e.props.name?e:o.a.cloneElement(e,{name:n,isPro:r})}))}))(c()),s=function(e){return o.a.createElement(u,e)};s.propTypes={name:i.a.string,mas:i.a.number,isPro:i.a.bool},s.defaultProps={name:void 0,mas:-1,isPro:!1}},function(e,n,t){"use strict";var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(3);function u(){return(u=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(t.push(i.value),!n||t.length!==n);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return t}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return f(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return f(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function d(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function p(){var e=function(e,n){n||(n=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n .neko-textarea-container {\n position: relative;\n }\n .neko-textarea {\n font-family: ",";\n font-size: ",";\n border: 2px solid ",";\n box-sizing: border-box;\n height: 160px;\n background: rgb(0 124 186 / 10%);\n padding: 5px 10px;\n width: 100%;\n\n &::placeholder {\n color: rgba(0, 0, 0, 0.25);\n }\n\n :focus {\n background-color: white;\n }\n\n :read-only {\n background-color: ",";\n }\n }\n .neko-textarea-count {\n color: rgba(",", 0.4);\n font-size: 11px;\n margin: 0;\n position: absolute;\n right: 13px;\n bottom: 10px;\n }\n\n .neko-input-description {\n font-family: ",";\n font-size: ",";\n line-height: 14px;\n margin-top: 8px;\n margin-bottom: 0;\n }\n"]);return p=function(){return e},e}var h=Object(l.a)((function(e){var n=e.id,t=e.name,a=e.value,i=void 0===a?"":a,l=e.description,c=e.placeholder,f=void 0===c?"":c,p=e.onEnter,h=void 0===p?null:p,m=e.readOnly,b=void 0!==m&&m,v=e.maxLength,y=void 0===v?null:v,g=e.className,w=e.style,x=e.textAreaStyle,O=void 0===x?{}:x,k=e.countable,C=void 0!==k&&k,j=d(e,["id","name","value","description","placeholder","onEnter","readOnly","maxLength","className","style","textAreaStyle","countable"]),E=s(Object(r.useState)(i),2),S=E[0],_=E[1],P=s(Object(r.useState)(0),2),A=P[0],I=P[1],M=!!e.onChange;Object(r.useEffect)((function(){M||_(i),C&&I(i.length)}),[i,C]);var z=Object(r.useCallback)((function(t){var r=y?t.target.value.substr(0,y):t.target.value;M?e.onChange(r,n):_(r,n)}),[y]);return o.a.createElement("div",{className:[g].join(" "),style:w},o.a.createElement("div",{className:"neko-textarea-container"},o.a.createElement("textarea",u({className:"neko-textarea"},j,{id:n,name:t,spellCheck:"false",placeholder:f,onChange:z,onKeyPress:function(t){h&&!t.shiftKey&&"Enter"===t.key&&(t.preventDefault(),e.onEnter(t.target.value,n))},onBlur:function(t){e.onBlur&&i!==t.target.value&&e.onBlur(t.target.value,n)},readOnly:b,style:O,value:M?i:S})),C&&o.a.createElement("p",{className:"neko-textarea-count"},A," / ",y," characters")),l&&o.a.createElement("p",{className:"neko-input-description"},l))}))(p(),c.a.fontFamily,c.a.fontSizeText,c.a.blue,c.a.gray,c.a.blackRGB,c.a.fontFamily,c.a.fontSizeSmall),m=function(e){return o.a.createElement(h,e)};m.propTypes={id:i.a.string,name:i.a.string,value:i.a.string,description:i.a.string,placeholder:i.a.string,onChange:i.a.func,onEnter:i.a.func,onBlur:i.a.func,readOnly:i.a.bool},m.defaultProps={id:void 0,name:void 0,value:"",description:void 0,placeholder:"",onChange:void 0,onEnter:void 0,onBlur:void 0,readOnly:!1}},function(e,n,t){"use strict";var r=t(0),o=t.n(r),a=(t(2),t(4));t(3);function i(){var e=function(e,n){n||(n=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n label {\n display: block;\n margin-bottom: 3px;\n }\n\n .neko-input, .neko-textarea {\n margin-bottom: 5px;\n }\n"]);return i=function(){return e},e}var l=a.a.div(i()),c=function(e){return o.a.createElement(l,null,e.children||null)},u=function(e){return o.a.createElement(c,e)};u.propTypes={},u.defaultProps={}},function(e,n,t){"use strict";var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(3);function u(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function s(){var e=function(e,n){n||(n=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n color: ",";\n font-family: ",";\n font-size: ",";\n position: relative;\n display: inline-block;\n width: ",";\n height: ",";\n\n input {\n opacity: 0;\n width: 0;\n height: 0;\n }\n\n .nui-switch-slider {\n background-color: ",";\n border-radius: ",';\n align-items: center;\n cursor: pointer;\n display: inline-flex;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n transition: .4s;\n }\n\n .nui-switch-slider:before {\n border-radius: 50%;\n position: absolute;\n content: "";\n height: ',";\n width: ",';\n left: 4px;\n bottom: 4px;\n background-color: white;\n transition: .3s;\n }\n\n .nui-switch-slider:after {\n content: "','";\n margin-left: auto;\n margin-right: ',";\n }\n\n input:checked + .nui-switch-slider {\n background-color: ",";\n }\n\n input:checked + .nui-switch-slider:before {\n transform: translateX(",');\n }\n\n input:checked + .nui-switch-slider:after {\n content: "','";\n margin-left: ',";\n margin-right: auto;\n }\n"]);return s=function(){return e},e}var f=Object(l.a)((function(e){e.width,e.height,e.fontSize;var n=e.onValue,t=e.offValue,a=e.checked,i=void 0!==a&&a,l=(e.onBackgroundColor,e.offBackgroundColor,e.onLabel,e.offLabel,e.onChange),c=e.disabled,s=u(e,["width","height","fontSize","onValue","offValue","checked","onBackgroundColor","offBackgroundColor","onLabel","offLabel","onChange","disabled"]),f=Object(r.useCallback)((function(e){l(e.target.checked?n:t)}),[l,n,t]);return o.a.createElement("label",s,o.a.createElement("input",{type:"checkbox",onChange:f,checked:i,disabled:c}),o.a.createElement("span",{className:"nui-switch-slider"}))}))(s(),c.a.white,c.a.fontFamily,(function(e){return e.fontSize}),(function(e){return e.width}),(function(e){return e.height}),(function(e){return e.offBackgroundColor}),(function(e){return e.height}),(function(e){return"calc(".concat(e.height," - 8px)")}),(function(e){return"calc(".concat(e.height," - 8px)")}),(function(e){return e.offLabel}),(function(e){return"calc(".concat(e.height," / 2)")}),(function(e){return e.onBackgroundColor}),(function(e){return"calc(".concat(e.width," - ").concat(e.height,")")}),(function(e){return e.onLabel}),(function(e){return"calc(".concat(e.height," / 2)")})),d=function(e){return o.a.createElement(f,e)};d.propTypes={width:i.a.string,height:i.a.string,fontSize:i.a.string,onValue:i.a.string,offValue:i.a.string,checked:i.a.bool,onBackgroundColor:i.a.string,offBackgroundColor:i.a.string,onLabel:i.a.string,offLabel:i.a.string},d.defaultProps={width:"100%",height:"20px",fontSize:"12px",checked:!1}},function(e,n,t){"use strict";t.d(n,"a",(function(){return k}));var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(6),u=t(5),s=t(29),f=t.n(s),d=t(31),p=t.n(d),h=t(30),m=t.n(h),b=t(3);function v(e){return(v="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})(e)}function y(){var e=w(["\n position: absolute;\n overflow: hidden;\n top: 0; left: 0;\n height: 100%;\n background-color: ",";\n border-radius: 12px;\n text-align: center;\n padding: 0 10px;\n vertical-align: middle;\n color: white;\n font-family: ",";\n font-size: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: min-width .2s ease-out;\n\n background-size: 30px 30px;\n background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%,\n transparent 25%,\n transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,\n transparent 75%, transparent);\n animation: ",";\n\n @keyframes animate-stripes {\n 0% { background-position: 0 0; }\n 100% { background-position: 60px 0; }\n }\n"]);return y=function(){return e},e}function g(){var e=w(["\n position: relative;\n box-sizing: border-box;\n height: 30px;\n background: linear-gradient(\n 180deg,\n rgba(0, 0, 0, 0.06) 0%,\n rgba(0, 0, 0, 0.02) 50%,\n rgba(0, 0, 0, 0.10) 100%\n );\n border-radius: 12px;\n\n .nui-progress-buttons {\n position: absolute;\n height: 100%;\n right: 0px;\n display: flex;\n align-items: center;\n padding-right: 5px;\n\n .nui-progress-button {\n border: none;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-left: 2px;\n border-radius: 100%;\n color: white;\n padding: 2px;\n width: 18px;\n height: 18px;\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n\n &.stop {\n background: ",";\n\n &:hover {\n background-color: ",";\n }\n }\n }\n }\n"]);return g=function(){return e},e}function w(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var x=Object(l.a)((function(e){var n=e.value,t=void 0===n?0:n,r=e.max,a=void 0===r?100:r,i=e.busy,l=void 0!==i&&i,c=e.status;t=Math.min(t,a);var s=parseFloat(t)/parseFloat(a);return o.a.createElement("div",{className:e.className},o.a.createElement(O,{ratio:s,busy:e.busy,status:c}),o.a.createElement("div",{className:"nui-progress-buttons"},l&&e.onPauseClick&&o.a.createElement("div",{className:"nui-progress-button pause",onClick:e.onPauseClick},e.paused?o.a.createElement(u.InlineIcon,{icon:m.a}):o.a.createElement(u.InlineIcon,{icon:f.a})),l&&e.onStopClick&&o.a.createElement("div",{className:"nui-progress-button stop",onClick:e.onStopClick},o.a.createElement(u.InlineIcon,{icon:p.a}))))}))(g(),b.a.blue,Object(c.a)(.1,b.a.blue),b.a.red,Object(c.a)(.1,b.a.red)),O=Object(l.a)((function(e){var n,t,r,a=isNaN(e.ratio)?0:parseInt(Math.round(100*e.ratio)),i=v(e.status),l="undefined"!==i?"string"===i?e.status:e.status(a):"".concat(a,"%");return o.a.createElement("div",{className:e.className,style:(n={minWidth:28},t="minWidth",r=a+"%",t in n?Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[t]=r,n)},o.a.createElement("div",null,l))}))(y(),b.a.progress,b.a.fontFamily,(function(e){return e.busy?"animate-stripes 1.6s linear infinite":"none"})),k=function(e){return o.a.createElement(x,e)};k.propTypes={value:i.a.number,max:i.a.number,busy:i.a.bool,paused:i.a.bool,onPauseClick:i.a.func,onStopClick:i.a.func,status:i.a.oneOf([i.a.string,i.a.func])},k.defaultProps={value:0,max:100,busy:!1,paused:!1,onPauseClick:void 0,onStopClick:void 0,status:void 0}},function(e,n,t){"use strict";t.d(n,"a",(function(){return b}));var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(22),u=t(10),s=t(3),f=t(106),d=t.n(f);function p(){var e=function(e,n){n||(n=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n position: relative;\n color: white;\n font-family: ",";\n font-size: ",";\n display: flex;\n height: 61px;\n overflow: hidden;\n align-items: center;\n padding: 15px 20px;\n background-color: ",";\n display: flex;\n\n .nui-header-logo-container {\n width: 102px;\n height: 102px;\n padding: 20px;\n margin-right: 25px;\n background: rgba(",", 0.1);\n border-radius: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n transform: rotate(-29.83deg);\n }\n\n .nui-header-title-container {\n flex-direction: column;\n display: flex;\n\n .nui-header-title {\n color: white;\n font-family: ",";\n font-size: 23px;\n line-height: normal;\n margin: 0;\n }\n\n .nui-header-subtitle {\n color: white;\n font-family: ",";\n line-height: normal;\n font-size: ",";\n }\n }\n\n .nui-header-extra-content {\n flex: 1;\n margin: 0 20px;\n }\n"]);return p=function(){return e},e}var h=l.a.div(p(),s.a.fontFamily,s.a.fontSizeText,s.a.header,s.a.blackRGB,s.a.fontFamily,s.a.fontFamily,s.a.fontSizeText),m=function(e){var n=e.title,t=void 0===n?"NekoUI":n,r=e.subtitle,a=void 0===r?"By Jordy Meow":r,i=e.children,l=e.saving,s=void 0!==l&&l;return o.a.createElement(h,null,o.a.createElement("div",{className:"nui-header-logo-container"},o.a.createElement(c.a,null)),o.a.createElement("div",{className:"nui-header-title-container"},o.a.createElement("h1",{className:"nui-header-title"},t),o.a.createElement("small",{className:"nui-header-subtitle"},o.a.createElement("a",{target:"_blank",href:"https://meowapps.com",style:{color:"white",textDecoration:"none"}},a))),o.a.createElement("div",{className:"nui-header-extra-content"},i),s&&o.a.createElement(u.a,{icon:d.a,width:"36",height:"36"}))},b=function(e){return o.a.createElement(m,e)};b.propTypes={title:i.a.string,subtitle:i.a.string,saving:i.a.bool},b.defaultProps={title:"NekoUI",subtitle:"By Jordy Meow",saving:!1}},function(e,n,t){"use strict";t.d(n,"a",(function(){return u}));var r=t(0),o=t.n(r),a=t(2),i=t.n(a);function l(){var e=function(e,n){n||(n=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n .mask {\n position: absolute;\n overflow: hidden;\n display: block;\n width: ","px;\n height: ","px;\n }\n\n .semi-circle {\n position: relative;\n display: block;\n width: ","px;\n height: ",'px;\n background: linear-gradient(to right, #27b775 0%, #f3f32c 50%, #f71b1b 100%);\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n\n &::before {\n content: "";\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 2;\n display: block;\n width: 140px;\n height: 70px;\n margin-left: -70px;\n background: ',";\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n } \n }\n\n .semi-circle--mask {\n position: absolute;\n top: 0;\n left: 0;\n width: ","px;\n height: ",'px;\n background: transparent;\n transform-origin: center center;\n backface-visibility: hidden;\n transition: all .3s ease-in-out;\n\n &::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0%;\n z-index: 2;\n display: block;\n width: ',"px;\n height: ","px;\n margin-top: -1px;\n margin-left: -1px;\n background: #5396c1d6;\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n } \n }\n\n .gauge { \n width: ","px;\n height: ","px;\n \n .semi-circle--mask {\n transform: rotate(","deg) translate3d(0,0,0);\n }\n }\n\n .child-container {\n position: absolute;\n font-size: 16px;\n display: flex;\n width: ","px;\n height: ","px;\n z-index: 10;\n\n .spacing {\n flex: auto;\n }\n\n .child {\n color: white;\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n }\n"]);return l=function(){return e},e}var c=t(4).a.section(l(),(function(e){return e.width}),(function(e){return e.width/2}),(function(e){return e.width}),(function(e){return e.width/2}),(function(e){return e.backgroundColor}),(function(e){return e.width}),(function(e){return e.width}),(function(e){return e.width+2}),(function(e){return e.width/2+2}),(function(e){return e.width}),(function(e){return e.width/2}),(function(e){return e.degrees}),(function(e){return e.width+2}),(function(e){return e.width/2})),u=function(e){var n=e.value,t=void 0===n?1e3:n,r=(e.min,e.max),a=void 0===r?2500:r,i=e.width,l=void 0===i?200:i,u=e.background,s=void 0===u?"#007cba":u,f=e.children,d=180*(t<=a?t:a)/a;return o.a.createElement(c,{backgroundColor:s,degrees:d,width:l},o.a.createElement("div",{class:"gauge"},o.a.createElement("div",{class:"mask"},o.a.createElement("div",{class:"semi-circle"}),o.a.createElement("div",{class:"semi-circle--mask"})),o.a.createElement("div",{class:"child-container"},o.a.createElement("div",{class:"child"},o.a.createElement("div",{class:"spacing"}),f))))};u.propTypes={value:i.a.number,min:i.a.number,max:i.a.number,width:i.a.number,background:i.a.string},u.defaultProps={value:1e3,min:0,max:2500,width:200,background:"#007cba"}},function(e,n,t){"use strict";var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(1);function u(){return(u=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){d(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function d(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function p(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,n,t,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,o)}function m(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(t.push(i.value),!n||t.length!==n);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return t}(e,n)||b(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,n){if(e){if("string"==typeof e)return v(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(e,n):void 0}}function v(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function y(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function g(){var e=function(e,n){n||(n=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n box-sizing: border-box;\n background: #C4C4C4;\n color: rgb(0 0 0 / 60%);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n transition: all 0.25s ease;\n\n div {\n transition: all 0.5s ease;\n transform: scale(1.5);\n pointer-events: none;\n max-width: 100%;\n }\n\n &:hover {\n cursor: pointer;\n }\n\n &.dropping {\n background: #a4d5ff;\n\n div {\n transform: scale(2);\n }\n }\n"]);return g=function(){return e},e}var w=l.a.div(g()),x=function(e){var n=e.width,t=void 0===n?"100%":n,a=e.height,i=void 0===a?"100%":a,l=e.iconSize,s=void 0===l?48:l,d=e.onSuccess,b=void 0===d?function(){}:d,v=e.onFailure,g=void 0===v?function(){}:v,x=e.style,O=void 0===x?{}:x,k=e.apiUrl,C=e.apiConfig,j=e.onClick,E=y(e,["width","height","iconSize","onSuccess","onFailure","style","apiUrl","apiConfig","onClick"]),S=m(Object(r.useState)(!1),2),_=S[0],P=S[1],A=m(Object(r.useState)(Math.floor(1e8*Math.random())),2),I=A[0],M=(A[1],Object(r.useRef)(null)),z=Object(r.useRef)(null),T=m(Object(r.useState)(!1),2),N=T[0],R=T[1];Object(r.useEffect)((function(){z&&(z.current.style.pointerEvents=N?"none":"auto")}),[z,N]);var L=function(){var e,n=(e=regeneratorRuntime.mark((function e(n){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return R(!0),C.file=n[0],e.next=4,Object(c.G)(k,C);case 4:(t=e.sent).success?b(t):g(t),R(!1);case 7:case"end":return e.stop()}}),e)})),function(){var n=this,t=arguments;return new Promise((function(r,o){var a=e.apply(n,t);function i(e){h(a,r,o,i,l,"next",e)}function l(e){h(a,r,o,i,l,"throw",e)}i(void 0)}))});return function(e){return n.apply(this,arguments)}}(),F=function(e){e.preventDefault(),e.stopPropagation()},D=function(e){e.preventDefault(),e.stopPropagation(),P(!0)},B=function(e,n){n.preventDefault(),n.stopPropagation(),P(!1),console.log(e),L(e)};return o.a.createElement("div",{ref:z},o.a.createElement("input",{type:"file",id:I,accept:"image/*",ref:M,onChange:function(e){var n=[e.target.files[0]];B(n,e)},style:{display:"none"}}),o.a.createElement(w,u({onClick:function(){j?j():M.current.click()},style:f(f({},O),{},{width:t,height:i}),className:_?"dropping":"",onDragOver:F,onDragEnter:D,onDragLeave:function(e){e.preventDefault(),e.stopPropagation(),P(!1)},onDrop:function(e){var n=p(e.dataTransfer.files);B(n,e)}},E),o.a.createElement(c.j,{width:s,height:s,icon:"upload",spinning:N,color:"#A9A9A9",onDragOver:F,onDragEnter:D})))};x.propTypes={width:i.a.string,height:i.a.string,onSuccess:i.a.func,onFailure:i.a.func,style:i.a.object,apiUrl:i.a.string,apiConfig:i.a.object},x.defaultProps={width:"100%",height:"100%",onSuccess:function(){},onFailure:function(){},style:{}}},function(e,n,t){"use strict";var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(1);function u(){return(u=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function s(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,n,t,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,o)}function d(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(t.push(i.value),!n||t.length!==n);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return t}(e,n)||p(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,n){if(e){if("string"==typeof e)return h(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?h(e,n):void 0}}function h(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function m(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function b(){var e=function(e,n){n||(n=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n &.dropping {\n background: #a4d5ff;\n }\n"]);return b=function(){return e},e}var v=l.a.div(b()),y=Object(r.forwardRef)((function(e,n){var t=e.onSuccess,a=void 0===t?function(){}:t,i=e.onFailure,l=void 0===i?function(){}:i,p=e.apiUrl,h=e.apiConfig,b=e.className,y=e.disabled,g=void 0!==y&&y,w=e.children,x=m(e,["onSuccess","onFailure","apiUrl","apiConfig","className","disabled","children"]),O=d(Object(r.useState)(!1),2),k=O[0],C=O[1],j=d(Object(r.useState)(!1),2),E=j[0],S=j[1],_=function(){var e,n=(e=regeneratorRuntime.mark((function e(n){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return S(!0),h.file=n[0],e.next=4,Object(c.G)(p,h);case 4:(t=e.sent).success?a(t):l(t),S(!1);case 7:case"end":return e.stop()}}),e)})),function(){var n=this,t=arguments;return new Promise((function(r,o){var a=e.apply(n,t);function i(e){f(a,r,o,i,l,"next",e)}function l(e){f(a,r,o,i,l,"throw",e)}i(void 0)}))});return function(e){return n.apply(this,arguments)}}(),P=Object(r.useCallback)((function(e){e.preventDefault(),e.stopPropagation()}),[g]),A=Object(r.useCallback)((function(e){e.preventDefault(),e.stopPropagation(),g||C(!0)}),[g]),I=Object(r.useCallback)((function(e){e.preventDefault(),e.stopPropagation(),g||C(!1)}),[g]),M=Object(r.useCallback)((function(e){if(!g){var n=s(e.dataTransfer.files);z(n,e)}}),[g]),z=function(e,n){n.preventDefault(),n.stopPropagation(),C(!1),console.log(e),_(e)};return o.a.createElement(c.b,{busy:E},o.a.createElement("input",{type:"file",accept:"image/*",ref:n,onChange:function(e){var n=[e.target.files[0]];z(n,e)},style:{display:"none"}}),o.a.createElement(v,u({className:"".concat(b||""," ").concat(k?"dropping":""),onDragOver:P,onDragEnter:A,onDragLeave:I,onDrop:M},x),w))}));y.propTypes={ref:i.a.ref,onSuccess:i.a.func,onFailure:i.a.func,apiUrl:i.a.string,apiConfig:i.a.object,disabled:i.a.bool},y.defaultProps={onSuccess:function(){},onFailure:function(){},disabled:!1}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return[].slice.call(e.querySelectorAll("*"),0).filter(i)};
|
2 |
/*!
|
3 |
* Adapted from jQuery UI core
|
4 |
*
|
@@ -10,7 +10,7 @@
|
|
10 |
*
|
11 |
* http://api.jqueryui.com/category/ui-core/
|
12 |
*/
|
13 |
-
var r=/input|select|textarea|button|object/;function o(e){var n=e.offsetWidth<=0&&e.offsetHeight<=0;if(n&&!e.innerHTML)return!0;var t=window.getComputedStyle(e);return n?"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==t.getPropertyValue("display")}function a(e,n){var t=e.nodeName.toLowerCase();return(r.test(t)&&!e.disabled||"a"===t&&e.href||n)&&function(e){for(var n=e;n&&n!==document.body;){if(o(n))return!1;n=n.parentNode}return!0}(e)}function i(e){var n=e.getAttribute("tabindex");null===n&&(n=void 0);var t=isNaN(n);return(t||n>=0)&&a(e,!t)}e.exports=n.default},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.assertNodeList=c,n.setElement=function(e){var n=e;if("string"==typeof n&&i.canUseDOM){var t=document.querySelectorAll(n);c(t,n),n="length"in t?t[0]:t}return l=n||l},n.validateElement=u,n.hide=function(e){u(e)&&(e||l).setAttribute("aria-hidden","true")},n.show=function(e){u(e)&&(e||l).removeAttribute("aria-hidden")},n.documentNotReadyOrSSRTesting=function(){l=null},n.resetForTesting=function(){l=null};var r,o=t(125),a=(r=o)&&r.__esModule?r:{default:r},i=t(43);var l=null;function c(e,n){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+n+".")}function u(e){return!(!e&&!l)||((0,a.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),!1)}},function(e,n){(function(n){e.exports=n}).call(this,{})},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=new function e(){var n=this;!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===n.openInstances.indexOf(e)&&(n.openInstances.push(e),n.emit("register"))},this.deregister=function(e){var t=n.openInstances.indexOf(e);-1!==t&&(n.openInstances.splice(t,1),n.emit("deregister"))},this.subscribe=function(e){n.subscribers.push(e)},this.emit=function(e){n.subscribers.forEach((function(t){return t(e,n.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]};n.default=r,e.exports=n.default},function(e,n,t){"use strict";var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(3),u=t(24),s=t(16),f=t(21),d=t(11),p=t(23),h=t(14),m=t(10);function b(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(t.push(i.value),!n||t.length!==n);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return t}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return v(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return v(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function y(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function g(){var e=function(e,n){n||(n=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n width: 633px;\n\n .neko-media-library-modal-content-header {\n align-items: center;\n display: flex;\n justify-content: space-between;\n\n h1 {\n font-size: 21px;\n font-weight: bold;\n margin: 0;\n }\n\n input {\n background-color: ",";\n border: 1px solid ",";\n border-radius: 3px;\n }\n }\n .neko-media-library-modal-content-body {\n display: grid;\n gap: 10px;\n grid-template-columns: repeat(6, 1fr);\n margin-top: 33px;\n margin-bottom: 36px;\n\n .neko-media-library-modal-content-media-container {\n cursor: pointer;\n img {\n box-sizing: border-box;\n }\n\n &.selected {\n img {\n border: 5px solid ",";\n }\n }\n }\n }\n .neko-media-library-modal-content-footer {\n display: flex;\n justify-content: space-between;\n }\n .neko-media-library-modal-search {\n position: relative;\n }\n"]);return g=function(){return e},e}var w=Object(l.a)(u.a)(g(),c.a.white,c.a.black,c.a.blue),x=function(e){var n=e.images,t=(e.onNextPage,e.onPreviousPage,e.onRefresh),a=e.onClick,i=e.onSearch,l=e.searchValue,u=e.busy,v=e.currentPage,g=e.limit,x=e.total,O=e.onPageChange,k=e.selected,C=e.multiSelect,j=void 0!==C&&C,E=y(e,["images","onNextPage","onPreviousPage","onRefresh","onClick","onSearch","searchValue","busy","currentPage","limit","total","onPageChange","selected","multiSelect"]),S=b(Object(r.useState)(l),2),_=S[0],P=S[1],A=Object(r.useMemo)((function(){return n.map((function(n){return o.a.createElement("div",{key:n.id,className:"neko-media-library-modal-content-media-container ".concat(k.includes(n.id)?"selected":""),onClick:function(){a({id:n.id,src:n.src}),j||e.onRequestClose()}},o.a.createElement("img",{src:n.src,className:"neko-media-library-modal-content-media",width:"90",height:"90"}))}))}),[n,k]);return o.a.createElement(w,E,o.a.createElement("div",{className:"neko-media-library-modal-content"},o.a.createElement("div",{className:"neko-media-library-modal-content-header"},o.a.createElement(s.a,{h1:!0},"Media Library"),o.a.createElement("div",{style:{display:"flex"}},o.a.createElement("div",{className:"neko-media-library-modal-search"},o.a.createElement(f.a,{value:_,disabled:u,onEnter:i,onChange:function(e){return P(e)},placeholder:"Search..."}),""!==_&&o.a.createElement(m.a,{icon:"close",containerStyle:{width:"20px",position:"absolute",right:"5px",top:"5px",cursor:"pointer"},width:20,height:20,color:c.a.darkGray,onClick:function(){P(""),t()}})),o.a.createElement(d.a,{onClick:function(){return i(_)},style:{marginLeft:"4px"}},"Search"))),o.a.createElement("div",null,o.a.createElement(h.a,{busy:u},o.a.createElement("div",{className:"neko-media-library-modal-content-body"},A))),o.a.createElement("div",{className:"neko-media-library-modal-content-footer"},o.a.createElement(p.a,{limit:g,currentPage:v,total:x,onClick:O}),o.a.createElement(d.a,{onClick:e.onRequestClose},"Close"))))},O=function(e){return o.a.createElement(x,e)};O.propTypes={images:i.a.array,onNextPage:i.a.func,onPreviousPage:i.a.func,onRefresh:i.a.func,onClick:i.a.func,onSearch:i.a.func,searchValue:i.a.string,busy:i.a.bool,currentPage:i.a.number,limit:i.a.number,total:i.a.number,onPageChange:i.a.func,multiSelect:i.a.bool,selected:i.a.array},O.defaultProps={multiSelect:!1}},function(e,n,t){"use strict";t.d(n,"a",(function(){return E}));var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(5),u=t(9),s=t.n(u),f=t(17),d=t.n(f),p=t(35),h=t.n(p),m=t(36),b=t.n(m),v=t(108),y=t.n(v),g=t(3),w=t(14);function x(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function O(){var e=function(e,n){n||(n=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n background-color: ",";\n font-family: ",";\n border-spacing: 0;\n width: 100%;\n\n th, td {\n margin: 0;\n padding: 5px;\n border-bottom: 1px solid rgba(",", 0.1);\n border-right: 1px solid rgba(",", 0.1);\n\n a {\n text-decoration: none;\n }\n\n :last-child {\n border-right: 0;\n }\n }\n\n th, tfoot td {\n height: 30px;\n background-color: ",";\n color: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n line-height: 16px;\n text-align: left;\n\n div {\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n &.sortable {\n cursor: pointer;\n }\n }\n }\n\n tbody {\n tr {\n :nth-child(even) {\n background-color: ",";\n }\n &.selected {\n background-color: rgba(",", 0.8);\n color: ",";\n\n a {\n color: #81e8ff;\n }\n }\n }\n img {\n vertical-align: bottom;\n }\n }\n\n tfoot tr:last-child {\n td {\n border-bottom: 0;\n }\n }\n\n .table-checkbox-cell {\n width: 35px;\n text-align: center;\n\n svg {\n padding: 5px;\n cursor: pointer;\n }\n }\n"]);return O=function(){return e},e}var k=l.a.table(O(),g.a.white,g.a.fontFamily,g.a.blackRGB,g.a.blackRGB,g.a.blue,g.a.white,g.a.tableGray,g.a.blueRGB,g.a.white),C=function(e){var n=e.checked,t=e.intermediate,r=void 0!==t&&t,a=e.onSelect,i=void 0===a?function(){}:a,l=e.onUnselect,u=void 0===l?function(){}:l;x(e,["checked","intermediate","onSelect","onUnselect"]);return o.a.createElement(c.Icon,{icon:r?y.a:n?b.a:h.a,width:"24px",height:"24px",onClick:function(e){n?u(e):i(e)}})},j=function(e){var n=e.columns,t=e.data,r=e.busy,a=void 0!==r&&r,i=e.onSelect,l=e.onUnselect,u=e.selectedItems,f=e.sort,p=e.onSortChange,h=n.length+(i?1:0),m=t.map((function(e){var t=n.map((function(n){return{value:e[n.accessor],style:n.style||{}}}));return{id:e.id,cells:t}})),b=m.map((function(e){return e.id})),v=b.filter((function(e){return u.includes(e)})).length===b.length,y=!v&&u.length>0,x=n.reduce((function(e,n,t){return!1===n.visible&&e.push(t),e}),[]),O=o.a.createElement("tr",null,i&&o.a.createElement("th",{className:"table-checkbox-cell"},o.a.createElement(C,{checked:v,intermediate:y,onSelect:function(e){return i(b,e)},onUnselect:function(e){l(y?u:b,e)}})),n.filter((function(e,n){return!x.includes(n)})).map((function(e){var n=f&&f.accessor===e.accessor,t=f&&"asc"===f.by,r=e.style||{};return o.a.createElement("th",{style:r,key:e.accessor},o.a.createElement("div",{className:e.sortable?"sortable":"",onClick:e.sortable?function(r){p(e.accessor,n&&t?"desc":"asc",r)}:void 0},o.a.createElement("div",null,e.title),o.a.createElement("div",null,e.sortable&&o.a.createElement(c.Icon,{icon:n?t?s.a:d.a:s.a,color:n?g.a.white:"rgba(".concat(g.a.blackRGB,", 0.1)"),width:"1.6rem",height:"1.6rem"}))))})));return o.a.createElement(w.a,{busy:a,overlayStyle:{top:"36px",height:"calc(100% - 76px)"}},o.a.createElement(k,null,o.a.createElement("thead",null,O),o.a.createElement("tbody",null,!m.length&&o.a.createElement("tr",null,o.a.createElement("td",{colspan:h,style:{textAlign:"center",height:40,color:"gray"}},"Empty.")),m.map((function(e){return o.a.createElement("tr",{className:u.includes(e.id)?"selected":""},i&&o.a.createElement("td",{className:"table-checkbox-cell"},o.a.createElement(C,{checked:u.includes(e.id),onSelect:function(n){return i([e.id],n)},onUnselect:function(n){return l([e.id],n)}})),e.cells.filter((function(e,n){return!x.includes(n)})).map((function(e){return o.a.createElement("td",{style:e.style},e.value)})))}))),o.a.createElement("tfoot",null,O)))},E=function(e){return o.a.createElement(j,e)};E.propTypes={columns:i.a.arrayOf(i.a.any),data:i.a.arrayOf(i.a.any),busy:i.a.arrayOf(i.a.bool),onSelect:i.a.func,onUnselect:i.a.func,selectedItems:i.a.arrayOf(i.a.object),onSortChange:i.a.func},E.defaultProps={columns:void 0,data:void 0,busy:!1,onSelect:void 0,onUnselect:void 0,selectedItems:void 0,onSortChange:void 0}},function(e,n,t){"use strict";t.d(n,"a",(function(){return d}));var r=t(0),o=t.n(r),a=t(2),i=t.n(a),l=t(4),c=t(3);function u(){var e=function(e,n){n||(n=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n box-sizing: border-box;\n display: flex;\n width: 100%;\n padding: 10px 10px;\n background: ",";\n border-radius: 10px;\n box-shadow: 0px 0px 10px rgba(",", 0.1);\n\n &.neko-align-left {\n justify-content: flex-start;\n }\n\n &.neko-align-right {\n justify-content: flex-end;\n }\n\n > *:not(:last-child) {\n margin-right: 5px;\n }\n"]);return u=function(){return e},e}var s=l.a.div(u(),c.a.white,c.a.blackRGB),f=function(e){var n=e.align,t=void 0===n?"left":n;return o.a.createElement(s,{className:"neko-align-".concat(t)},e.children)},d=function(e){return o.a.createElement(f,e)};d.propTypes={align:i.a.oneOf(["left","right"])},d.defaultProps={align:"left"}},function(e,n,t){"use strict";var r=Array.isArray,o=Object.keys,a=Object.prototype.hasOwnProperty;e.exports=function e(n,t){if(n===t)return!0;if(n&&t&&"object"==typeof n&&"object"==typeof t){var i,l,c,u=r(n),s=r(t);if(u&&s){if((l=n.length)!=t.length)return!1;for(i=l;0!=i--;)if(!e(n[i],t[i]))return!1;return!0}if(u!=s)return!1;var f=n instanceof Date,d=t instanceof Date;if(f!=d)return!1;if(f&&d)return n.getTime()==t.getTime();var p=n instanceof RegExp,h=t instanceof RegExp;if(p!=h)return!1;if(p&&h)return n.toString()==t.toString();var m=o(n);if((l=m.length)!==o(t).length)return!1;for(i=l;0!=i--;)if(!a.call(t,m[i]))return!1;for(i=l;0!=i--;)if(!e(n[c=m[i]],t[c]))return!1;return!0}return n!=n&&t!=t}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M18 8a2 2 0 0 1 2 2v10c0 1.1-.9 2-2 2H6a2 2 0 0 1-2-2V10c0-1.11.89-2 2-2h1V6C7 3.24 9.24.998 12 .998S17 3.24 17 6v2h1m-6-5c-1.66 0-3 1.34-3 3v2h6V6c0-1.66-1.34-3-3-3m-1 16l6.25-6.24l-1.41-1.41L11 16.18L8.41 13.6L7 15l4 4z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M18 1c-2.76 0-5 2.24-5 5v2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12c1.11 0 2-.89 2-2V10a2 2 0 0 0-2-2h-1V6c0-1.66 1.34-3 3-3s3 1.34 3 3v2h2V6c0-2.76-2.24-5-5-5m-8 12a2 2 0 0 1 2 2c0 1.11-.89 2-2 2a2 2 0 1 1 0-4z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M13 9h5.5L13 3.5V9M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2m6.16 12.31c-1.56 0-2.97.58-4.05 1.52L6 13.72V19h5.28l-2.13-2.12c.82-.68 1.85-1.1 3.01-1.1c2.07 0 3.84 1.35 4.45 3.22l1.39-.46c-.81-2.45-3.12-4.23-5.84-4.23z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M12 5V1L7 6l5 5V7a6 6 0 0 1 6 6a6 6 0 0 1-6 6a6 6 0 0 1-6-6H4a8 8 0 0 0 8 8a8 8 0 0 0 8-8a8 8 0 0 0-8-8z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59L21 7z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M19 4h-3.5l-1-1h-5l-1 1H5v2h14M6 19a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7H6v12z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88c3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M13 13h-2V7h2m0 10h-2v-2h2M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M12 3C7.58 3 4 4.79 4 7s3.58 4 8 4s8-1.79 8-4s-3.58-4-8-4M4 9v3c0 2.21 3.58 4 8 4s8-1.79 8-4V9c0 2.21-3.58 4-8 4s-8-1.79-8-4m0 5v3c0 2.21 3.58 4 8 4s8-1.79 8-4v-3c0 2.21-3.58 4-8 4s-8-1.79-8-4z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M21.71 20.29l-1.42 1.42a1 1 0 0 1-1.41 0L7 9.85A3.81 3.81 0 0 1 6 10a4 4 0 0 1-3.78-5.3l2.54 2.54l.53-.53l1.42-1.42l.53-.53L4.7 2.22A4 4 0 0 1 10 6a3.81 3.81 0 0 1-.15 1l11.86 11.88a1 1 0 0 1 0 1.41M2.29 18.88a1 1 0 0 0 0 1.41l1.42 1.42a1 1 0 0 0 1.41 0l5.47-5.46l-2.83-2.83M20 2l-4 2v2l-2.17 2.17l2 2L18 8h2l2-4z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M12 15.5A3.5 3.5 0 0 1 8.5 12A3.5 3.5 0 0 1 12 8.5a3.5 3.5 0 0 1 3.5 3.5a3.5 3.5 0 0 1-3.5 3.5m7.43-2.53c.04-.32.07-.64.07-.97c0-.33-.03-.66-.07-1l2.11-1.63c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.31-.61-.22l-2.49 1c-.52-.39-1.06-.73-1.69-.98l-.37-2.65A.506.506 0 0 0 14 2h-4c-.25 0-.46.18-.5.42l-.37 2.65c-.63.25-1.17.59-1.69.98l-2.49-1c-.22-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64L4.57 11c-.04.34-.07.67-.07 1c0 .33.03.65.07.97l-2.11 1.66c-.19.15-.25.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1.01c.52.4 1.06.74 1.69.99l.37 2.65c.04.24.25.42.5.42h4c.25 0 .46-.18.5-.42l.37-2.65c.63-.26 1.17-.59 1.69-.99l2.49 1.01c.22.08.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.66z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M12 8l-1.33.09C9.81 7.07 7.4 4.5 5 4.5c0 0-1.97 2.96-.04 6.91c-.55.83-.89 1.26-.96 2.25l-1.93.29l.21.98l1.76-.26l.14.71l-1.57.94l.47.89l1.45-.89C5.68 18.76 8.59 20 12 20s6.32-1.24 7.47-3.68l1.45.89l.47-.89l-1.57-.94l.14-.71l1.76.26l.21-.98l-1.93-.29c-.07-.99-.41-1.42-.96-2.25C20.97 7.46 19 4.5 19 4.5c-2.4 0-4.81 2.57-5.67 3.59L12 8m-3 3a1 1 0 0 1 1 1a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1m6 0a1 1 0 0 1 1 1a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1m-4 3h2l-.7 1.39c.2.64.76 1.11 1.45 1.11a1.5 1.5 0 0 0 1.5-1.5h.5a2 2 0 0 1-2 2c-.75 0-1.4-.41-1.75-1c-.35.59-1 1-1.75 1a2 2 0 0 1-2-2h.5a1.5 1.5 0 0 0 1.5 1.5c.69 0 1.25-.47 1.45-1.11L11 14z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M9 3v1H4v2h1v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6h1V4h-5V3H9m0 5h2v9H9V8m4 0h2v9h-2V8z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M16.84 2.73c-.39 0-.77.15-1.07.44l-2.12 2.12l5.3 5.31l2.12-2.1c.6-.61.6-1.56 0-2.14L17.9 3.17c-.3-.29-.68-.44-1.06-.44M12.94 6l-8.1 8.11l2.56.28l.18 2.29l2.28.17l.29 2.56l8.1-8.11m-14 3.74L2.5 21.73l6.7-1.79l-.24-2.16l-2.31-.17l-.18-2.32" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M13 3v6h8V3m-8 18h8V11h-8M3 21h8v-6H3m0-2h8V3H3v10z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M18.68 12.32a4.49 4.49 0 0 0-6.36.01a4.49 4.49 0 0 0 0 6.36a4.508 4.508 0 0 0 5.57.63L21 22.39L22.39 21l-3.09-3.11c1.13-1.77.87-4.09-.62-5.57m-1.41 4.95c-.98.98-2.56.97-3.54 0c-.97-.98-.97-2.56.01-3.54c.97-.97 2.55-.97 3.53 0c.97.98.97 2.56 0 3.54M10.9 20.1a6.527 6.527 0 0 1-1.48-2.32C6.27 17.25 4 15.76 4 14v3c0 2.21 3.58 4 8 4c-.4-.26-.77-.56-1.1-.9M4 9v3c0 1.68 2.07 3.12 5 3.7v-.2c0-.93.2-1.85.58-2.69C6.34 12.3 4 10.79 4 9m8-6C7.58 3 4 4.79 4 7c0 2 3 3.68 6.85 4h.05c1.2-1.26 2.86-2 4.6-2c.91 0 1.81.19 2.64.56A3.215 3.215 0 0 0 20 7c0-2.21-3.58-4-8-4z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M10 4l2 2h8a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6c0-1.11.89-2 2-2h6m5 5v3h-3v2h3v3h2v-3h3v-2h-3V9h-2z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M5 3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h9.09c-.06-.33-.09-.66-.09-1c0-.68.12-1.36.35-2H5l3.5-4.5l2.5 3l3.5-4.5l2.23 2.97c.97-.63 2.11-.97 3.27-.97c.34 0 .67.03 1 .09V5a2 2 0 0 0-2-2H5m14 13v3h-3v2h3v3h2v-3h3v-2h-3v-3h-2z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M3 11h8V3H3m0 18h8v-8H3m10 8h8v-8h-8m0-10v8h8V3" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M7 5h14v2H7V5m0 8v-2h14v2H7M4 4.5A1.5 1.5 0 0 1 5.5 6A1.5 1.5 0 0 1 4 7.5A1.5 1.5 0 0 1 2.5 6A1.5 1.5 0 0 1 4 4.5m0 6A1.5 1.5 0 0 1 5.5 12A1.5 1.5 0 0 1 4 13.5A1.5 1.5 0 0 1 2.5 12A1.5 1.5 0 0 1 4 10.5M7 19v-2h14v2H7m-3-2.5A1.5 1.5 0 0 1 5.5 18A1.5 1.5 0 0 1 4 19.5A1.5 1.5 0 0 1 2.5 18A1.5 1.5 0 0 1 4 16.5z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M22.46 6c-.77.35-1.6.58-2.46.69c.88-.53 1.56-1.37 1.88-2.38c-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29c0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15c0 1.49.75 2.81 1.91 3.56c-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07a4.28 4.28 0 0 0 4 2.98a8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21C16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56c.84-.6 1.56-1.36 2.14-2.23z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8A1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5a5 5 0 0 1-5 5a5 5 0 0 1-5-5a5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3a3 3 0 0 0 3 3a3 3 0 0 0 3-3a3 3 0 0 0-3-3z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M12 2.04c-5.5 0-10 4.49-10 10.02c0 5 3.66 9.15 8.44 9.9v-7H7.9v-2.9h2.54V9.85c0-2.51 1.49-3.89 3.78-3.89c1.09 0 2.23.19 2.23.19v2.47h-1.26c-1.24 0-1.63.77-1.63 1.56v1.88h2.78l-.45 2.9h-2.33v7a10 10 0 0 0 8.44-9.9c0-5.53-4.5-10.02-10-10.02z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.62L12 2L9.19 8.62L2 9.24l5.45 4.73L5.82 21L12 17.27z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M12 20a7 7 0 0 1-7-7a7 7 0 0 1 7-7a7 7 0 0 1 7 7a7 7 0 0 1-7 7m7.03-12.61l1.42-1.42c-.45-.51-.9-.97-1.41-1.41L17.62 6c-1.55-1.26-3.5-2-5.62-2a9 9 0 0 0-9 9a9 9 0 0 0 9 9c5 0 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61M11 14h2V8h-2m4-7H9v2h6V1z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M12 7l5 5h-3v4h-4v-4H7l5-5m0 15A10 10 0 0 1 2 12A10 10 0 0 1 12 2a10 10 0 0 1 10 10a10 10 0 0 1-10 10m0-2a8 8 0 0 0 8-8a8 8 0 0 0-8-8a8 8 0 0 0-8 8a8 8 0 0 0 8 8z" fill="currentColor"/>',width:24,height:24}},function(e,n){e.exports=function(e,n,t,r){var o=t?t.call(r,e,n):void 0;if(void 0!==o)return!!o;if(e===n)return!0;if("object"!=typeof e||!e||"object"!=typeof n||!n)return!1;var a=Object.keys(e),i=Object.keys(n);if(a.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),c=0;c<a.length;c++){var u=a[c];if(!l(u))return!1;var s=e[u],f=n[u];if(!1===(o=t?t.call(r,s,f,u):void 0)||void 0===o&&s!==f)return!1}return!0}},function(e,n,t){"use strict";n.a=function(e){function n(e,n,r){var o=n.trim().split(h);n=o;var a=o.length,i=e.length;switch(i){case 0:case 1:var l=0;for(e=0===i?"":e[0]+" ";l<a;++l)n[l]=t(e,n[l],r).trim();break;default:var c=l=0;for(n=[];l<a;++l)for(var u=0;u<i;++u)n[c++]=t(e[u]+" ",o[l],r).trim()}return n}function t(e,n,t){var r=n.charCodeAt(0);switch(33>r&&(r=(n=n.trim()).charCodeAt(0)),r){case 38:return n.replace(m,"$1"+e.trim());case 58:return e.trim()+n.replace(m,"$1"+e.trim());default:if(0<1*t&&0<n.indexOf("\f"))return n.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+n}function r(e,n,t,a){var i=e+";",l=2*n+3*t+4*a;if(944===l){e=i.indexOf(":",9)+1;var c=i.substring(e,i.length-1).trim();return c=i.substring(0,e).trim()+c+";",1===P||2===P&&o(c,1)?"-webkit-"+c+c:c}if(0===P||2===P&&!o(i,1))return i;switch(l){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(j,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(c=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+c+i;case 1005:return d.test(i)?i.replace(f,":-webkit-")+i.replace(f,":-moz-")+i:i;case 1e3:switch(n=(c=i.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(n)){case 226:c=i.replace(g,"tb");break;case 232:c=i.replace(g,"tb-rl");break;case 220:c=i.replace(g,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+c+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(n=(i=e).length-10,l=(c=(33===i.charCodeAt(n)?i.substring(0,n):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:i=i.replace(c,"-webkit-"+c)+";"+i;break;case 207:case 102:i=i.replace(c,"-webkit-"+(102<l?"inline-":"")+"box")+";"+i.replace(c,"-webkit-"+c)+";"+i.replace(c,"-ms-"+c+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return c=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+c+"-ms-flex-"+c+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(O,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(O,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===C.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),n,t,a).replace(":fill-available",":stretch"):i.replace(c,"-webkit-"+c)+i.replace(c,"-moz-"+c.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===t+a&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+i}return i}function o(e,n){var t=e.indexOf(1===n?":":"{"),r=e.substring(0,3!==n?t:10);return t=e.substring(t+1,e.length-1),z(2!==n?r:r.replace(k,"$1"),t,n)}function a(e,n){var t=r(n,n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2));return t!==n+";"?t.replace(x," or ($1)").substring(4):"("+n+")"}function i(e,n,t,r,o,a,i,l,u,s){for(var f,d=0,p=n;d<M;++d)switch(f=I[d].call(c,e,p,t,r,o,a,i,l,u,s)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==n)return p}function l(e){return void 0!==(e=e.prefix)&&(z=null,e?"function"!=typeof e?P=1:(P=2,z=e):P=0),l}function c(e,t){var l=e;if(33>l.charCodeAt(0)&&(l=l.trim()),l=[l],0<M){var c=i(-1,t,l,l,S,E,0,0,0,0);void 0!==c&&"string"==typeof c&&(t=c)}var f=function e(t,l,c,f,d){for(var p,h,m,g,x,O=0,k=0,C=0,j=0,I=0,z=0,N=m=p=0,R=0,L=0,F=0,D=0,B=c.length,H=B-1,U="",q="",V="",$="";R<B;){if(h=c.charCodeAt(R),R===H&&0!==k+j+C+O&&(0!==k&&(h=47===k?10:47),j=C=O=0,B++,H++),0===k+j+C+O){if(R===H&&(0<L&&(U=U.replace(s,"")),0<U.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:U+=c.charAt(R)}h=59}switch(h){case 123:for(p=(U=U.trim()).charCodeAt(0),m=1,D=++R;R<B;){switch(h=c.charCodeAt(R)){case 123:m++;break;case 125:m--;break;case 47:switch(h=c.charCodeAt(R+1)){case 42:case 47:e:{for(N=R+1;N<H;++N)switch(c.charCodeAt(N)){case 47:if(42===h&&42===c.charCodeAt(N-1)&&R+2!==N){R=N+1;break e}break;case 10:if(47===h){R=N+1;break e}}R=N}}break;case 91:h++;case 40:h++;case 34:case 39:for(;R++<H&&c.charCodeAt(R)!==h;);}if(0===m)break;R++}switch(m=c.substring(D,R),0===p&&(p=(U=U.replace(u,"").trim()).charCodeAt(0)),p){case 64:switch(0<L&&(U=U.replace(s,"")),h=U.charCodeAt(1)){case 100:case 109:case 115:case 45:L=l;break;default:L=A}if(D=(m=e(l,L,m,h,d+1)).length,0<M&&(x=i(3,m,L=n(A,U,F),l,S,E,D,h,d,f),U=L.join(""),void 0!==x&&0===(D=(m=x.trim()).length)&&(h=0,m="")),0<D)switch(h){case 115:U=U.replace(w,a);case 100:case 109:case 45:m=U+"{"+m+"}";break;case 107:m=(U=U.replace(b,"$1 $2"))+"{"+m+"}",m=1===P||2===P&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=U+m,112===f&&(q+=m,m="")}else m="";break;default:m=e(l,n(l,U,F),m,f,d+1)}V+=m,m=F=L=N=p=0,U="",h=c.charCodeAt(++R);break;case 125:case 59:if(1<(D=(U=(0<L?U.replace(s,""):U).trim()).length))switch(0===N&&(p=U.charCodeAt(0),45===p||96<p&&123>p)&&(D=(U=U.replace(" ",":")).length),0<M&&void 0!==(x=i(1,U,l,t,S,E,q.length,f,d,f))&&0===(D=(U=x.trim()).length)&&(U="\0\0"),p=U.charCodeAt(0),h=U.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){$+=U+c.charAt(R);break}default:58!==U.charCodeAt(D-1)&&(q+=r(U,p,h,U.charCodeAt(2)))}F=L=N=p=0,U="",h=c.charCodeAt(++R)}}switch(h){case 13:case 10:47===k?k=0:0===1+p&&107!==f&&0<U.length&&(L=1,U+="\0"),0<M*T&&i(0,U,l,t,S,E,q.length,f,d,f),E=1,S++;break;case 59:case 125:if(0===k+j+C+O){E++;break}default:switch(E++,g=c.charAt(R),h){case 9:case 32:if(0===j+O+k)switch(I){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===j+k+O&&(L=F=1,g="\f"+g);break;case 108:if(0===j+k+O+_&&0<N)switch(R-N){case 2:112===I&&58===c.charCodeAt(R-3)&&(_=I);case 8:111===z&&(_=z)}break;case 58:0===j+k+O&&(N=R);break;case 44:0===k+C+j+O&&(L=1,g+="\r");break;case 34:case 39:0===k&&(j=j===h?0:0===j?h:j);break;case 91:0===j+k+C&&O++;break;case 93:0===j+k+C&&O--;break;case 41:0===j+k+O&&C--;break;case 40:if(0===j+k+O){if(0===p)switch(2*I+3*z){case 533:break;default:p=1}C++}break;case 64:0===k+C+j+O+N+m&&(m=1);break;case 42:case 47:if(!(0<j+O+C))switch(k){case 0:switch(2*h+3*c.charCodeAt(R+1)){case 235:k=47;break;case 220:D=R,k=42}break;case 42:47===h&&42===I&&D+2!==R&&(33===c.charCodeAt(D+2)&&(q+=c.substring(D,R+1)),g="",k=0)}}0===k&&(U+=g)}z=I,I=h,R++}if(0<(D=q.length)){if(L=l,0<M&&(void 0!==(x=i(2,q,L,t,S,E,D,f,d,f))&&0===(q=x).length))return $+q+V;if(q=L.join(",")+"{"+q+"}",0!=P*_){switch(2!==P||o(q,2)||(_=0),_){case 111:q=q.replace(y,":-moz-$1")+q;break;case 112:q=q.replace(v,"::-webkit-input-$1")+q.replace(v,"::-moz-$1")+q.replace(v,":-ms-input-$1")+q}_=0}}return $+q+V}(A,l,t,0,0);return 0<M&&(void 0!==(c=i(-2,f,l,l,S,E,f.length,0,0,0))&&(f=c)),"",_=0,E=S=1,f}var u=/^\0+/g,s=/[\0\r\f]/g,f=/: */g,d=/zoo|gra/,p=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,g=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,O=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,C=/stretch|:\s*\w+\-(?:conte|avail)/,j=/([^-])(image-set\()/,E=1,S=1,_=0,P=1,A=[],I=[],M=0,z=null,T=0;return c.use=function e(n){switch(n){case void 0:case null:M=I.length=0;break;default:if("function"==typeof n)I[M++]=n;else if("object"==typeof n)for(var t=0,r=n.length;t<r;++t)e(n[t]);else T=0|!!n}return e},c.set=l,void 0!==e&&l(e),c}},function(e,n,t){"use strict";n.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M12 20a8 8 0 0 1-8-8a8 8 0 0 1 8-8a8 8 0 0 1 8 8a8 8 0 0 1-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2m0 7a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M5.5 7A1.5 1.5 0 0 1 4 5.5A1.5 1.5 0 0 1 5.5 4A1.5 1.5 0 0 1 7 5.5A1.5 1.5 0 0 1 5.5 7m15.91 4.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.11 0-2 .89-2 2v7c0 .55.22 1.05.59 1.41l8.99 9c.37.36.87.59 1.42.59c.55 0 1.05-.23 1.41-.59l7-7c.37-.36.59-.86.59-1.41c0-.56-.23-1.06-.59-1.42z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M15 9H5V5h10m-3 14a3 3 0 0 1-3-3a3 3 0 0 1 3-3a3 3 0 0 1 3 3a3 3 0 0 1-3 3m5-16H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V7l-4-4z" fill="currentColor"/>',width:24,height:24}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,o=t(120),a=(r=o)&&r.__esModule?r:{default:r};n.default=a.default,e.exports=n.default},function(e,n){n.__esModule=!0,n.default={body:'<path d="M22 16a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2h12a2 2 0 0 1 2 2v12m-6 4v2H4a2 2 0 0 1-2-2V7h2v13h12m-3-6l7-7l-1.41-1.41L13 11.17L9.91 8.09L8.5 9.5L13 14z" fill="currentColor"/>',width:24,height:24}},function(e,n,t){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=Array.isArray,a=Object.keys,i=Object.prototype.hasOwnProperty;e.exports=function e(n,t){if(n===t)return!0;if(n&&t&&"object"==r(n)&&"object"==r(t)){var l,c,u,s=o(n),f=o(t);if(s&&f){if((c=n.length)!=t.length)return!1;for(l=c;0!=l--;)if(!e(n[l],t[l]))return!1;return!0}if(s!=f)return!1;var d=n instanceof Date,p=t instanceof Date;if(d!=p)return!1;if(d&&p)return n.getTime()==t.getTime();var h=n instanceof RegExp,m=t instanceof RegExp;if(h!=m)return!1;if(h&&m)return n.toString()==t.toString();var b=a(n);if((c=b.length)!==a(t).length)return!1;for(l=c;0!=l--;)if(!i.call(t,b[l]))return!1;for(l=c;0!=l--;)if(!e(n[u=b[l]],t[u]))return!1;return!0}return n!=n&&t!=t}},function(e,n,t){"use strict";var r=t(111);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,n,t,o,a,i){if(i!==r){var l=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 l.name="Invariant Violation",l}}function n(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:a,resetWarningCache:o};return t.PropTypes=t,t}},function(e,n,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,n){n.__esModule=!0,n.default={body:'<path d="M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-1.84 1.83l3.75 3.75M3 17.25V21h3.75L17.81 9.93l-3.75-3.75L3 17.25z" fill="currentColor"/>',width:24,height:24}},function(e,n){var t,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var c,u=[],s=!1,f=-1;function d(){s&&c&&(s=!1,c.length?u=c.concat(u):f=-1,u.length&&p())}function p(){if(!s){var e=l(d);s=!0;for(var n=u.length;n;){for(c=u,u=[];++f<n;)c&&c[f].run();f=-1,n=u.length}c=null,s=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(n){try{return r.call(null,e)}catch(n){return r.call(this,e)}}}(e)}}function h(e,n){this.fun=e,this.array=n}function m(){}o.nextTick=function(e){var n=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)n[t-1]=arguments[t];u.push(new h(e,n)),1!==u.length||s||l(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,n,t){"use strict";
|
14 |
/** @license React v16.13.1
|
15 |
* react-is.production.min.js
|
16 |
*
|
@@ -18,7 +18,7 @@ var r=/input|select|textarea|button|object/;function o(e){var n=e.offsetWidth<=0
|
|
18 |
*
|
19 |
* This source code is licensed under the MIT license found in the
|
20 |
* LICENSE file in the root directory of this source tree.
|
21 |
-
*/var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,b=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function O(e){if("object"==typeof e&&null!==e){var n=e.$$typeof;switch(n){case o:switch(e=e.type){case f:case d:case i:case c:case l:case h:return e;default:switch(e=e&&e.$$typeof){case s:case p:case v:case b:case u:return e;default:return n}}case a:return n}}}function k(e){return O(e)===d}n.AsyncMode=f,n.ConcurrentMode=d,n.ContextConsumer=s,n.ContextProvider=u,n.Element=o,n.ForwardRef=p,n.Fragment=i,n.Lazy=v,n.Memo=b,n.Portal=a,n.Profiler=c,n.StrictMode=l,n.Suspense=h,n.isAsyncMode=function(e){return k(e)||O(e)===f},n.isConcurrentMode=k,n.isContextConsumer=function(e){return O(e)===s},n.isContextProvider=function(e){return O(e)===u},n.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},n.isForwardRef=function(e){return O(e)===p},n.isFragment=function(e){return O(e)===i},n.isLazy=function(e){return O(e)===v},n.isMemo=function(e){return O(e)===b},n.isPortal=function(e){return O(e)===a},n.isProfiler=function(e){return O(e)===c},n.isStrictMode=function(e){return O(e)===l},n.isSuspense=function(e){return O(e)===h},n.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===c||e===l||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===b||e.$$typeof===u||e.$$typeof===s||e.$$typeof===p||e.$$typeof===g||e.$$typeof===w||e.$$typeof===x||e.$$typeof===y)},n.typeOf=O},function(e,n,t){"use strict";var r=Object.prototype.hasOwnProperty,o="~";function a(){}function i(e,n,t){this.fn=e,this.context=n,this.once=t||!1}function l(e,n,t,r,a){if("function"!=typeof t)throw new TypeError("The listener must be a function");var l=new i(t,r||e,a),c=o?o+n:n;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],l]:e._events[c].push(l):(e._events[c]=l,e._eventsCount++),e}function c(e,n){0==--e._eventsCount?e._events=new a:delete e._events[n]}function u(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),(new a).__proto__||(o=!1)),u.prototype.eventNames=function(){var e,n,t=[];if(0===this._eventsCount)return t;for(n in e=this._events)r.call(e,n)&&t.push(o?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(e)):t},u.prototype.listeners=function(e){var n=o?o+e:e,t=this._events[n];if(!t)return[];if(t.fn)return[t.fn];for(var r=0,a=t.length,i=new Array(a);r<a;r++)i[r]=t[r].fn;return i},u.prototype.listenerCount=function(e){var n=o?o+e:e,t=this._events[n];return t?t.fn?1:t.length:0},u.prototype.emit=function(e,n,t,r,a,i){var l=o?o+e:e;if(!this._events[l])return!1;var c,u,s=this._events[l],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(e,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,n),!0;case 3:return s.fn.call(s.context,n,t),!0;case 4:return s.fn.call(s.context,n,t,r),!0;case 5:return s.fn.call(s.context,n,t,r,a),!0;case 6:return s.fn.call(s.context,n,t,r,a,i),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];s.fn.apply(s.context,c)}else{var d,p=s.length;for(u=0;u<p;u++)switch(s[u].once&&this.removeListener(e,s[u].fn,void 0,!0),f){case 1:s[u].fn.call(s[u].context);break;case 2:s[u].fn.call(s[u].context,n);break;case 3:s[u].fn.call(s[u].context,n,t);break;case 4:s[u].fn.call(s[u].context,n,t,r);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];s[u].fn.apply(s[u].context,c)}}return!0},u.prototype.on=function(e,n,t){return l(this,e,n,t,!1)},u.prototype.once=function(e,n,t){return l(this,e,n,t,!0)},u.prototype.removeListener=function(e,n,t,r){var a=o?o+e:e;if(!this._events[a])return this;if(!n)return c(this,a),this;var i=this._events[a];if(i.fn)i.fn!==n||r&&!i.once||t&&i.context!==t||c(this,a);else{for(var l=0,u=[],s=i.length;l<s;l++)(i[l].fn!==n||r&&!i[l].once||t&&i[l].context!==t)&&u.push(i[l]);u.length?this._events[a]=1===u.length?u[0]:u:c(this,a)}return this},u.prototype.removeAllListeners=function(e){var n;return e?(n=o?o+e:e,this._events[n]&&c(this,n)):(this._events=new a,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=o,u.EventEmitter=u,e.exports=u},function(e,n,t){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,n){return!n||"object"!==r(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function a(e){var n="function"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||(t=e,-1===Function.toString.call(t).indexOf("[native code]")))return e;var t;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return i(e,arguments,u(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,e)})(e)}function i(e,n,t){return(i=l()?Reflect.construct:function(e,n,t){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(e,r));return t&&c(o,t.prototype),o}).apply(null,arguments)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function c(e,n){return(c=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var s=t(117),f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&c(e,n)}(a,e);var n,t,r=(n=a,t=l(),function(){var e,r=u(n);if(t){var a=u(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return o(this,e)});function a(e){var n;return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),(n=r.call(this,e)).name="TimeoutError",n}return a}(a(Error)),d=function(e,n,t){return new Promise((function(r,o){if("number"!=typeof n||n<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(n!==1/0){var a=setTimeout((function(){if("function"!=typeof t){var a="string"==typeof t?t:"Promise timed out after ".concat(n," milliseconds"),i=t instanceof Error?t:new f(a);"function"==typeof e.cancel&&e.cancel(),o(i)}else try{r(t())}catch(e){o(e)}}),n);s(e.then(r,o),(function(){clearTimeout(a)}))}else r(e)}))};e.exports=d,e.exports.default=d,e.exports.TimeoutError=f},function(e,n,t){"use strict";e.exports=function(e,n){return n=n||function(){},e.then((function(e){return new Promise((function(e){e(n())})).then((function(){return e}))}),(function(e){return new Promise((function(e){e(n())})).then((function(){throw e}))}))}},function(e,n,t){"use strict";function r(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(n,"__esModule",{value:!0});var o=t(119),a=function(){function e(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),Object.defineProperty(this,"_queue",{enumerable:!0,configurable:!0,writable:!0,value:[]})}var n,t,a;return n=e,(t=[{key:"enqueue",value:function(e,n){var t={priority:(n=Object.assign({priority:0},n)).priority,run:e};if(this.size&&this._queue[this.size-1].priority>=n.priority)this._queue.push(t);else{var r=o.default(this._queue,t,(function(e,n){return n.priority-e.priority}));this._queue.splice(r,0,t)}}},{key:"dequeue",value:function(){var e=this._queue.shift();return null==e?void 0:e.run}},{key:"filter",value:function(e){return this._queue.filter((function(n){return n.priority===e.priority})).map((function(e){return e.run}))}},{key:"size",get:function(){return this._queue.length}}])&&r(n.prototype,t),a&&r(n,a),e}();n.default=a},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n,t){for(var r=0,o=e.length;o>0;){var a=o/2|0,i=r+a;t(e[i],n)<=0?(r=++i,o-=a+1):o=a}return r}},function(e,n,t){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.bodyOpenClassName=n.portalClassName=void 0;var o=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},a=function(){function e(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(n,t,r){return t&&e(n.prototype,t),r&&e(n,r),n}}(),i=t(0),l=m(i),c=m(t(121)),u=m(t(2)),s=m(t(122)),f=function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}(t(65)),d=t(43),p=m(d),h=t(129);function m(e){return e&&e.__esModule?e:{default:e}}function b(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function v(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==r(n)&&"function"!=typeof n?e:n}var y=n.portalClassName="ReactModalPortal",g=n.bodyOpenClassName="ReactModal__Body--open",w=void 0!==c.default.createPortal,x=function(){return w?c.default.createPortal:c.default.unstable_renderSubtreeIntoContainer};function O(e){return e()}var k=function(e){function n(){var e,t,r;b(this,n);for(var a=arguments.length,i=Array(a),u=0;u<a;u++)i[u]=arguments[u];return t=r=v(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(i))),r.removePortal=function(){!w&&c.default.unmountComponentAtNode(r.node);var e=O(r.props.parentSelector);e?e.removeChild(r.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},r.portalRef=function(e){r.portal=e},r.renderPortal=function(e){var t=x()(r,l.default.createElement(s.default,o({defaultStyles:n.defaultStyles},e)),r.node);r.portalRef(t)},v(r,t)}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+r(n));e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(n,e),a(n,[{key:"componentDidMount",value:function(){d.canUseDOM&&(w||(this.node=document.createElement("div")),this.node.className=this.props.portalClassName,O(this.props.parentSelector).appendChild(this.node),!w&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:O(e.parentSelector),nextParent:O(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,n,t){if(d.canUseDOM){var r=this.props,o=r.isOpen,a=r.portalClassName;e.portalClassName!==a&&(this.node.className=a);var i=t.prevParent,l=t.nextParent;l!==i&&(i.removeChild(this.node),l.appendChild(this.node)),(e.isOpen||o)&&!w&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(d.canUseDOM&&this.node&&this.portal){var e=this.portal.state,n=Date.now(),t=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||n+this.props.closeTimeoutMS);t?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,t-n)):this.removePortal()}}},{key:"render",value:function(){return d.canUseDOM&&w?(!this.node&&w&&(this.node=document.createElement("div")),x()(l.default.createElement(s.default,o({ref:this.portalRef,defaultStyles:n.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){f.setElement(e)}}]),n}(i.Component);k.propTypes={isOpen:u.default.bool.isRequired,style:u.default.shape({content:u.default.object,overlay:u.default.object}),portalClassName:u.default.string,bodyOpenClassName:u.default.string,htmlOpenClassName:u.default.string,className:u.default.oneOfType([u.default.string,u.default.shape({base:u.default.string.isRequired,afterOpen:u.default.string.isRequired,beforeClose:u.default.string.isRequired})]),overlayClassName:u.default.oneOfType([u.default.string,u.default.shape({base:u.default.string.isRequired,afterOpen:u.default.string.isRequired,beforeClose:u.default.string.isRequired})]),appElement:u.default.instanceOf(p.default),onAfterOpen:u.default.func,onRequestClose:u.default.func,closeTimeoutMS:u.default.number,ariaHideApp:u.default.bool,shouldFocusAfterRender:u.default.bool,shouldCloseOnOverlayClick:u.default.bool,shouldReturnFocusAfterClose:u.default.bool,parentSelector:u.default.func,aria:u.default.object,data:u.default.object,role:u.default.string,contentLabel:u.default.string,shouldCloseOnEsc:u.default.bool,overlayRef:u.default.func,contentRef:u.default.func},k.defaultProps={isOpen:!1,portalClassName:y,bodyOpenClassName:g,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,parentSelector:function(){return document.body}},k.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,h.polyfill)(k),n.default=k},,function(e,n,t){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(n,"__esModule",{value:!0});var o=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},a="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)},i=function(){function e(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(n,t,r){return t&&e(n.prototype,t),r&&e(n,r),n}}(),l=t(0),c=v(l),u=v(t(2)),s=b(t(123)),f=v(t(124)),d=b(t(65)),p=b(t(127)),h=v(t(43)),m=v(t(67));function b(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}function v(e){return e&&e.__esModule?e:{default:e}}t(128);var y={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},g=0,w=function(e){function n(e){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==r(n)&&"function"!=typeof n?e:n}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.setOverlayRef=function(e){t.overlay=e,t.props.overlayRef&&t.props.overlayRef(e)},t.setContentRef=function(e){t.content=e,t.props.contentRef&&t.props.contentRef(e)},t.afterClose=function(){var e=t.props,n=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,a=e.bodyOpenClassName;a&&p.remove(document.body,a),o&&p.remove(document.getElementsByTagName("html")[0],o),r&&g>0&&0===(g-=1)&&d.show(n),t.props.shouldFocusAfterRender&&(t.props.shouldReturnFocusAfterClose?(s.returnFocus(),s.teardownScopedFocus()):s.popWithoutFocus()),t.props.onAfterClose&&t.props.onAfterClose(),m.default.deregister(t)},t.open=function(){t.beforeOpen(),t.state.afterOpen&&t.state.beforeClose?(clearTimeout(t.closeTimer),t.setState({beforeClose:!1})):(t.props.shouldFocusAfterRender&&(s.setupScopedFocus(t.node),s.markForFocusLater()),t.setState({isOpen:!0},(function(){t.setState({afterOpen:!0}),t.props.isOpen&&t.props.onAfterOpen&&t.props.onAfterOpen({overlayEl:t.overlay,contentEl:t.content})})))},t.close=function(){t.props.closeTimeoutMS>0?t.closeWithTimeout():t.closeWithoutTimeout()},t.focusContent=function(){return t.content&&!t.contentHasFocus()&&t.content.focus()},t.closeWithTimeout=function(){var e=Date.now()+t.props.closeTimeoutMS;t.setState({beforeClose:!0,closesAt:e},(function(){t.closeTimer=setTimeout(t.closeWithoutTimeout,t.state.closesAt-Date.now())}))},t.closeWithoutTimeout=function(){t.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},t.afterClose)},t.handleKeyDown=function(e){9===e.keyCode&&(0,f.default)(t.content,e),t.props.shouldCloseOnEsc&&27===e.keyCode&&(e.stopPropagation(),t.requestClose(e))},t.handleOverlayOnClick=function(e){null===t.shouldClose&&(t.shouldClose=!0),t.shouldClose&&t.props.shouldCloseOnOverlayClick&&(t.ownerHandlesClose()?t.requestClose(e):t.focusContent()),t.shouldClose=null},t.handleContentOnMouseUp=function(){t.shouldClose=!1},t.handleOverlayOnMouseDown=function(e){t.props.shouldCloseOnOverlayClick||e.target!=t.overlay||e.preventDefault()},t.handleContentOnClick=function(){t.shouldClose=!1},t.handleContentOnMouseDown=function(){t.shouldClose=!1},t.requestClose=function(e){return t.ownerHandlesClose()&&t.props.onRequestClose(e)},t.ownerHandlesClose=function(){return t.props.onRequestClose},t.shouldBeClosed=function(){return!t.state.isOpen&&!t.state.beforeClose},t.contentHasFocus=function(){return document.activeElement===t.content||t.content.contains(document.activeElement)},t.buildClassName=function(e,n){var r="object"===(void 0===n?"undefined":a(n))?n:{base:y[e],afterOpen:y[e]+"--after-open",beforeClose:y[e]+"--before-close"},o=r.base;return t.state.afterOpen&&(o=o+" "+r.afterOpen),t.state.beforeClose&&(o=o+" "+r.beforeClose),"string"==typeof n&&n?o+" "+n:o},t.attributesFromObject=function(e,n){return Object.keys(n).reduce((function(t,r){return t[e+"-"+r]=n[r],t}),{})},t.state={afterOpen:!1,beforeClose:!1},t.shouldClose=null,t.moveFromContentToOverlay=null,t}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+r(n));e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(n,e),i(n,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,n){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!n.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer)}},{key:"beforeOpen",value:function(){var e=this.props,n=e.appElement,t=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName;o&&p.add(document.body,o),r&&p.add(document.getElementsByTagName("html")[0],r),t&&(g+=1,d.hide(n)),m.default.register(this)}},{key:"render",value:function(){var e=this.props,n=e.id,t=e.className,r=e.overlayClassName,a=e.defaultStyles,i=t?{}:a.content,l=r?{}:a.overlay;return this.shouldBeClosed()?null:c.default.createElement("div",{ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:o({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c.default.createElement("div",o({id:n,ref:this.setContentRef,style:o({},i,this.props.style.content),className:this.buildClassName("content",t),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",this.props.aria||{}),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),this.props.children))}}]),n}(l.Component);w.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},w.propTypes={isOpen:u.default.bool.isRequired,defaultStyles:u.default.shape({content:u.default.object,overlay:u.default.object}),style:u.default.shape({content:u.default.object,overlay:u.default.object}),className:u.default.oneOfType([u.default.string,u.default.object]),overlayClassName:u.default.oneOfType([u.default.string,u.default.object]),bodyOpenClassName:u.default.string,htmlOpenClassName:u.default.string,ariaHideApp:u.default.bool,appElement:u.default.instanceOf(h.default),onAfterOpen:u.default.func,onAfterClose:u.default.func,onRequestClose:u.default.func,closeTimeoutMS:u.default.number,shouldFocusAfterRender:u.default.bool,shouldCloseOnOverlayClick:u.default.bool,shouldReturnFocusAfterClose:u.default.bool,role:u.default.string,contentLabel:u.default.string,aria:u.default.object,data:u.default.object,children:u.default.node,shouldCloseOnEsc:u.default.bool,overlayRef:u.default.func,contentRef:u.default.func,id:u.default.string,testId:u.default.string},n.default=w,e.exports=n.default},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.handleBlur=u,n.handleFocus=s,n.markForFocusLater=function(){i.push(document.activeElement)},n.returnFocus=function(){var e=null;try{return void(0!==i.length&&(e=i.pop()).focus())}catch(n){console.warn(["You tried to return focus to",e,"but it is not in the DOM anymore"].join(" "))}},n.popWithoutFocus=function(){i.length>0&&i.pop()},n.setupScopedFocus=function(e){l=e,window.addEventListener?(window.addEventListener("blur",u,!1),document.addEventListener("focus",s,!0)):(window.attachEvent("onBlur",u),document.attachEvent("onFocus",s))},n.teardownScopedFocus=function(){l=null,window.addEventListener?(window.removeEventListener("blur",u),document.removeEventListener("focus",s)):(window.detachEvent("onBlur",u),document.detachEvent("onFocus",s))};var r,o=t(64),a=(r=o)&&r.__esModule?r:{default:r};var i=[],l=null,c=!1;function u(){c=!0}function s(){if(c){if(c=!1,!l)return;setTimeout((function(){l.contains(document.activeElement)||((0,a.default)(l)[0]||l).focus()}),0)}}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n){var t=(0,a.default)(e);if(!t.length)return void n.preventDefault();var r=void 0,o=n.shiftKey,i=t[0],l=t[t.length-1];if(e===document.activeElement){if(!o)return;r=l}l!==document.activeElement||o||(r=i);i===document.activeElement&&o&&(r=l);if(r)return n.preventDefault(),void r.focus();var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==c||"Chrome"==c[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var u=t.indexOf(document.activeElement);u>-1&&(u+=o?-1:1);if(void 0===(r=t[u]))return n.preventDefault(),void(r=o?l:i).focus();n.preventDefault(),r.focus()};var r,o=t(64),a=(r=o)&&r.__esModule?r:{default:r};e.exports=n.default},function(e,n,t){"use strict";var r=function(){};e.exports=r},function(e,n,t){var r;function o(e){return(o="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})(e)}
|
22 |
/*!
|
23 |
Copyright (c) 2015 Jed Watson.
|
24 |
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
1 |
+
(window.wpJsonMfrh=window.wpJsonMfrh||[]).push([[1],[,,function(e,n,t){e.exports=t(109)()},function(e,n,t){"use strict";function r(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function o(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?r(Object(t),!0).forEach((function(n){a(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):r(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var i=o(o({},{black:"#000000",blackRGB:"0, 0, 0",blue:"#007cba",blueRGB:"0, 124, 186",deepBlue:"#134575",finderBorder:"#DEDEDE",lightBlue:"#EBF3FF",lightGray:"#cacaca",lightGray2:"#F5F5F5",lightPurple:"#D8B1FF",gray:"#E8E8E8",green:"#0EA480",darkGray:"#A0A0A0",disabledForm:"#828282",orange:"#daa827",overlay:"rgba(16, 16, 16, 0.92)",red:"#ba4300",redHighlight:"#de5307",header:"#007cba",proGray:"#7F8EA0",progress:"#8414a8",purple:"#956DBE",tableGray:"#FAFAFA",yellow:"#e4b42b",yellowRGB:"224, 156, 54",white:"#ffffff",whiteRGB:"255, 255, 255"}),{},{fontFamily:"Lato",fontSizeH1:"24px",fontSizeH2:"18px",fontSizeText:"13px",fontSizeSmall:"12px",fontSizeSmallButton:"10px",lightShadow:"0px 0px 10px rgba(0,0,0,0.1)"});n.a=i},function(e,n,t){"use strict";(function(e){var r=t(34),o=t(0),a=t.n(o),i=t(99),l=t.n(i),c=t(100),u=t(101),s=t(48),f=t(46),d=t.n(f);function p(){return(p=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var h=function(e,n){for(var t=[e[0]],r=0,o=n.length;r<o;r+=1)t.push(n[r],e[r+1]);return t},m=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Object(r.typeOf)(e)},b=Object.freeze([]),v=Object.freeze({});function y(e){return"function"==typeof e}function g(e){return e.displayName||e.name||"Component"}function w(e){return e&&"string"==typeof e.styledComponentId}var x=void 0!==e&&(e.env.REACT_APP_SC_ATTR||e.env.SC_ATTR)||"data-styled",O="undefined"!=typeof window&&"HTMLElement"in window,k=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==e.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&e.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.SC_DISABLE_SPEEDY&&""!==e.env.SC_DISABLE_SPEEDY&&("false"!==e.env.SC_DISABLE_SPEEDY&&e.env.SC_DISABLE_SPEEDY));function C(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(t.length>0?" Args: "+t.join(", "):""))}var E=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var n=e.prototype;return n.indexOfGroup=function(e){for(var n=0,t=0;t<e;t++)n+=this.groupSizes[t];return n},n.insertRules=function(e,n){if(e>=this.groupSizes.length){for(var t=this.groupSizes,r=t.length,o=r;e>=o;)(o<<=1)<0&&C(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(t),this.length=o;for(var a=r;a<o;a++)this.groupSizes[a]=0}for(var i=this.indexOfGroup(e+1),l=0,c=n.length;l<c;l++)this.tag.insertRule(i,n[l])&&(this.groupSizes[e]++,i++)},n.clearGroup=function(e){if(e<this.length){var n=this.groupSizes[e],t=this.indexOfGroup(e),r=t+n;this.groupSizes[e]=0;for(var o=t;o<r;o++)this.tag.deleteRule(t)}},n.getGroup=function(e){var n="";if(e>=this.length||0===this.groupSizes[e])return n;for(var t=this.groupSizes[e],r=this.indexOfGroup(e),o=r+t,a=r;a<o;a++)n+=this.tag.getRule(a)+"/*!sc*/\n";return n},e}(),j=new Map,S=new Map,_=1,P=function(e){if(j.has(e))return j.get(e);for(;S.has(_);)_++;var n=_++;return j.set(e,n),S.set(n,e),n},A=function(e){return S.get(e)},I=function(e,n){n>=_&&(_=n+1),j.set(e,n),S.set(n,e)},M="style["+x+'][data-styled-version="5.3.1"]',T=new RegExp("^"+x+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),z=function(e,n,t){for(var r,o=t.split(","),a=0,i=o.length;a<i;a++)(r=o[a])&&e.registerName(n,r)},R=function(e,n){for(var t=(n.innerHTML||"").split("/*!sc*/\n"),r=[],o=0,a=t.length;o<a;o++){var i=t[o].trim();if(i){var l=i.match(T);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(I(u,c),z(e,u,l[3]),e.getTag().insertRules(c,r)),r.length=0}else r.push(i)}}},N=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},L=function(e){var n=document.head,t=e||n,r=document.createElement("style"),o=function(e){for(var n=e.childNodes,t=n.length;t>=0;t--){var r=n[t];if(r&&1===r.nodeType&&r.hasAttribute(x))return r}}(t),a=void 0!==o?o.nextSibling:null;r.setAttribute(x,"active"),r.setAttribute("data-styled-version","5.3.1");var i=N();return i&&r.setAttribute("nonce",i),t.insertBefore(r,a),r},F=function(){function e(e){var n=this.element=L(e);n.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var n=document.styleSheets,t=0,r=n.length;t<r;t++){var o=n[t];if(o.ownerNode===e)return o}C(17)}(n),this.length=0}var n=e.prototype;return n.insertRule=function(e,n){try{return this.sheet.insertRule(n,e),this.length++,!0}catch(e){return!1}},n.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},n.getRule=function(e){var n=this.sheet.cssRules[e];return void 0!==n&&"string"==typeof n.cssText?n.cssText:""},e}(),D=function(){function e(e){var n=this.element=L(e);this.nodes=n.childNodes,this.length=0}var n=e.prototype;return n.insertRule=function(e,n){if(e<=this.length&&e>=0){var t=document.createTextNode(n),r=this.nodes[e];return this.element.insertBefore(t,r||null),this.length++,!0}return!1},n.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},n.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),B=function(){function e(e){this.rules=[],this.length=0}var n=e.prototype;return n.insertRule=function(e,n){return e<=this.length&&(this.rules.splice(e,0,n),this.length++,!0)},n.deleteRule=function(e){this.rules.splice(e,1),this.length--},n.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),U=O,H={isServer:!O,useCSSOMInjection:!k},q=function(){function e(e,n,t){void 0===e&&(e=v),void 0===n&&(n={}),this.options=p({},H,{},e),this.gs=n,this.names=new Map(t),this.server=!!e.isServer,!this.server&&O&&U&&(U=!1,function(e){for(var n=document.querySelectorAll(M),t=0,r=n.length;t<r;t++){var o=n[t];o&&"active"!==o.getAttribute(x)&&(R(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return P(e)};var n=e.prototype;return n.reconstructWithOptions=function(n,t){return void 0===t&&(t=!0),new e(p({},this.options,{},n),this.gs,t&&this.names||void 0)},n.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},n.getTag=function(){return this.tag||(this.tag=(t=(n=this.options).isServer,r=n.useCSSOMInjection,o=n.target,e=t?new B(o):r?new F(o):new D(o),new E(e)));var e,n,t,r,o},n.hasNameForId=function(e,n){return this.names.has(e)&&this.names.get(e).has(n)},n.registerName=function(e,n){if(P(e),this.names.has(e))this.names.get(e).add(n);else{var t=new Set;t.add(n),this.names.set(e,t)}},n.insertRules=function(e,n,t){this.registerName(e,n),this.getTag().insertRules(P(e),t)},n.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},n.clearRules=function(e){this.getTag().clearGroup(P(e)),this.clearNames(e)},n.clearTag=function(){this.tag=void 0},n.toString=function(){return function(e){for(var n=e.getTag(),t=n.length,r="",o=0;o<t;o++){var a=A(o);if(void 0!==a){var i=e.names.get(a),l=n.getGroup(o);if(i&&l&&i.size){var c=x+".g"+o+'[id="'+a+'"]',u="";void 0!==i&&i.forEach((function(e){e.length>0&&(u+=e+",")})),r+=""+l+c+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),V=/(a)(d)/gi,$=function(e){return String.fromCharCode(e+(e>25?39:97))};function W(e){var n,t="";for(n=Math.abs(e);n>52;n=n/52|0)t=$(n%52)+t;return($(n%52)+t).replace(V,"$1-$2")}var G=function(e,n){for(var t=n.length;t;)e=33*e^n.charCodeAt(--t);return e},Y=function(e){return G(5381,e)};function K(e){for(var n=0;n<e.length;n+=1){var t=e[n];if(y(t)&&!w(t))return!1}return!0}var J=Y("5.3.1"),X=function(){function e(e,n,t){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===t||t.isStatic)&&K(e),this.componentId=n,this.baseHash=G(J,n),this.baseStyle=t,q.registerId(n)}return e.prototype.generateAndInjectStyles=function(e,n,t){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,n,t)),this.isStatic&&!t.hash)if(this.staticRulesId&&n.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var a=me(this.rules,e,n,t).join(""),i=W(G(this.baseHash,a)>>>0);if(!n.hasNameForId(r,i)){var l=t(a,"."+i,void 0,r);n.insertRules(r,i,l)}o.push(i),this.staticRulesId=i}else{for(var c=this.rules.length,u=G(this.baseHash,t.hash),s="",f=0;f<c;f++){var d=this.rules[f];if("string"==typeof d)s+=d;else if(d){var p=me(d,e,n,t),h=Array.isArray(p)?p.join(""):p;u=G(u,h+f),s+=h}}if(s){var m=W(u>>>0);if(!n.hasNameForId(r,m)){var b=t(s,"."+m,void 0,r);n.insertRules(r,m,b)}o.push(m)}}return o.join(" ")},e}(),Z=/^\s*\/\/.*$/gm,Q=[":","[",".","#"];function ee(e){var n,t,r,o,a=void 0===e?v:e,i=a.options,l=void 0===i?v:i,u=a.plugins,s=void 0===u?b:u,f=new c.a(l),d=[],p=function(e){function n(n){if(n)try{e(n+"}")}catch(e){}}return function(t,r,o,a,i,l,c,u,s,f){switch(t){case 1:if(0===s&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(n)}}}((function(e){d.push(e)})),h=function(e,r,a){return 0===r&&-1!==Q.indexOf(a[t.length])||a.match(o)?e:"."+n};function m(e,a,i,l){void 0===l&&(l="&");var c=e.replace(Z,""),u=a&&i?i+" "+a+" { "+c+" }":c;return n=l,t=a,r=new RegExp("\\"+t+"\\b","g"),o=new RegExp("(\\"+t+"\\b){2,}"),f(i||!a?"":a,u)}return f.use([].concat(s,[function(e,n,o){2===e&&o.length&&o[0].lastIndexOf(t)>0&&(o[0]=o[0].replace(r,h))},p,function(e){if(-2===e){var n=d;return d=[],n}}])),m.hash=s.length?s.reduce((function(e,n){return n.name||C(15),G(e,n.name)}),5381).toString():"",m}var ne=a.a.createContext(),te=(ne.Consumer,a.a.createContext()),re=(te.Consumer,new q),oe=ee();function ae(){return Object(o.useContext)(ne)||re}function ie(){return Object(o.useContext)(te)||oe}function le(e){var n=Object(o.useState)(e.stylisPlugins),t=n[0],r=n[1],i=ae(),c=Object(o.useMemo)((function(){var n=i;return e.sheet?n=e.sheet:e.target&&(n=n.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(n=n.reconstructWithOptions({useCSSOMInjection:!1})),n}),[e.disableCSSOMInjection,e.sheet,e.target]),u=Object(o.useMemo)((function(){return ee({options:{prefix:!e.disableVendorPrefixes},plugins:t})}),[e.disableVendorPrefixes,t]);return Object(o.useEffect)((function(){l()(t,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),a.a.createElement(ne.Provider,{value:c},a.a.createElement(te.Provider,{value:u},e.children))}var ce=function(){function e(e,n){var t=this;this.inject=function(e,n){void 0===n&&(n=oe);var r=t.name+n.hash;e.hasNameForId(t.id,r)||e.insertRules(t.id,r,n(t.rules,r,"@keyframes"))},this.toString=function(){return C(12,String(t.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=n}return e.prototype.getName=function(e){return void 0===e&&(e=oe),this.name+e.hash},e}(),ue=/([A-Z])/,se=/([A-Z])/g,fe=/^ms-/,de=function(e){return"-"+e.toLowerCase()};function pe(e){return ue.test(e)?e.replace(se,de).replace(fe,"-ms-"):e}var he=function(e){return null==e||!1===e||""===e};function me(e,n,t,r){if(Array.isArray(e)){for(var o,a=[],i=0,l=e.length;i<l;i+=1)""!==(o=me(e[i],n,t,r))&&(Array.isArray(o)?a.push.apply(a,o):a.push(o));return a}return he(e)?"":w(e)?"."+e.styledComponentId:y(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!n?e:me(e(n),n,t,r):e instanceof ce?t?(e.inject(t,r),e.getName(r)):e:m(e)?function e(n,t){var r,o,a=[];for(var i in n)n.hasOwnProperty(i)&&!he(n[i])&&(Array.isArray(n[i])&&n[i].isCss||y(n[i])?a.push(pe(i)+":",n[i],";"):m(n[i])?a.push.apply(a,e(n[i],i)):a.push(pe(i)+": "+(r=i,(null==(o=n[i])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in u.a?String(o).trim():o+"px")+";")));return t?[t+" {"].concat(a,["}"]):a}(e):e.toString();var c}var be=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ve(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];return y(e)||m(e)?be(me(h(b,[e].concat(t)))):0===t.length&&1===e.length&&"string"==typeof e[0]?e:be(me(h(e,t)))}new Set;var ye=function(e,n,t){return void 0===t&&(t=v),e.theme!==t.theme&&e.theme||n||t.theme},ge=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,we=/(^-|-$)/g;function xe(e){return e.replace(ge,"-").replace(we,"")}var Oe=function(e){return W(Y(e)>>>0)};function ke(e){return"string"==typeof e&&!0}var Ce=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ee=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function je(e,n,t){var r=e[t];Ce(n)&&Ce(r)?Se(r,n):e[t]=n}function Se(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];for(var o=0,a=t;o<a.length;o++){var i=a[o];if(Ce(i))for(var l in i)Ee(l)&&je(e,i[l],l)}return e}var _e=a.a.createContext();_e.Consumer;var Pe={};function Ae(e,n,t){var r=w(e),i=!ke(e),l=n.attrs,c=void 0===l?b:l,u=n.componentId,f=void 0===u?function(e,n){var t="string"!=typeof e?"sc":xe(e);Pe[t]=(Pe[t]||0)+1;var r=t+"-"+Oe("5.3.1"+t+Pe[t]);return n?n+"-"+r:r}(n.displayName,n.parentComponentId):u,h=n.displayName,m=void 0===h?function(e){return ke(e)?"styled."+e:"Styled("+g(e)+")"}(e):h,x=n.displayName&&n.componentId?xe(n.displayName)+"-"+n.componentId:n.componentId||f,O=r&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,k=n.shouldForwardProp;r&&e.shouldForwardProp&&(k=n.shouldForwardProp?function(t,r,o){return e.shouldForwardProp(t,r,o)&&n.shouldForwardProp(t,r,o)}:e.shouldForwardProp);var C,E=new X(t,x,r?e.componentStyle:void 0),j=E.isStatic&&0===c.length,S=function(e,n){return function(e,n,t,r){var a=e.attrs,i=e.componentStyle,l=e.defaultProps,c=e.foldedComponentIds,u=e.shouldForwardProp,f=e.styledComponentId,d=e.target,h=function(e,n,t){void 0===e&&(e=v);var r=p({},n,{theme:e}),o={};return t.forEach((function(e){var n,t,a,i=e;for(n in y(i)&&(i=i(r)),i)r[n]=o[n]="className"===n?(t=o[n],a=i[n],t&&a?t+" "+a:t||a):i[n]})),[r,o]}(ye(n,Object(o.useContext)(_e),l)||v,n,a),m=h[0],b=h[1],g=function(e,n,t,r){var o=ae(),a=ie();return n?e.generateAndInjectStyles(v,o,a):e.generateAndInjectStyles(t,o,a)}(i,r,m),w=t,x=b.$as||n.$as||b.as||n.as||d,O=ke(x),k=b!==n?p({},n,{},b):n,C={};for(var E in k)"$"!==E[0]&&"as"!==E&&("forwardedAs"===E?C.as=k[E]:(u?u(E,s.a,x):!O||Object(s.a)(E))&&(C[E]=k[E]));return n.style&&b.style!==n.style&&(C.style=p({},n.style,{},b.style)),C.className=Array.prototype.concat(c,f,g!==f?g:null,n.className,b.className).filter(Boolean).join(" "),C.ref=w,Object(o.createElement)(x,C)}(C,e,n,j)};return S.displayName=m,(C=a.a.forwardRef(S)).attrs=O,C.componentStyle=E,C.displayName=m,C.shouldForwardProp=k,C.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):b,C.styledComponentId=x,C.target=r?e.target:e,C.withComponent=function(e){var r=n.componentId,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(n,["componentId"]),a=r&&r+"-"+(ke(e)?e:xe(g(e)));return Ae(e,p({},o,{attrs:O,componentId:a}),t)},Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(n){this._foldedDefaultProps=r?Se({},e.defaultProps,n):n}}),C.toString=function(){return"."+C.styledComponentId},i&&d()(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),C}var Ie=function(e){return function e(n,t,o){if(void 0===o&&(o=v),!Object(r.isValidElementType)(t))return C(1,String(t));var a=function(){return n(t,o,ve.apply(void 0,arguments))};return a.withConfig=function(r){return e(n,t,p({},o,{},r))},a.attrs=function(r){return e(n,t,p({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},a}(Ae,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Ie[e]=Ie(e)}));!function(){function e(e,n){this.rules=e,this.componentId=n,this.isStatic=K(e),q.registerId(this.componentId+1)}var n=e.prototype;n.createStyles=function(e,n,t,r){var o=r(me(this.rules,n,t,r).join(""),""),a=this.componentId+e;t.insertRules(a,a,o)},n.removeStyles=function(e,n){n.clearRules(this.componentId+e)},n.renderStyles=function(e,n,t,r){e>2&&q.registerId(this.componentId+e),this.removeStyles(e,t),this.createStyles(e,n,t,r)}}();!function(){function e(){var e=this;this._emitSheetCSS=function(){var n=e.instance.toString();if(!n)return"";var t=N();return"<style "+[t&&'nonce="'+t+'"',x+'="true"','data-styled-version="5.3.1"'].filter(Boolean).join(" ")+">"+n+"</style>"},this.getStyleTags=function(){return e.sealed?C(2):e._emitSheetCSS()},this.getStyleElement=function(){var n;if(e.sealed)return C(2);var t=((n={})[x]="",n["data-styled-version"]="5.3.1",n.dangerouslySetInnerHTML={__html:e.instance.toString()},n),r=N();return r&&(t.nonce=r),[a.a.createElement("style",p({},t,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new q({isServer:!0}),this.sealed=!1}var n=e.prototype;n.collectStyles=function(e){return this.sealed?C(2):a.a.createElement(le,{sheet:this.instance},e)},n.interleaveWithNodeStream=function(e){return C(3)}}();n.a=Ie}).call(this,t(112))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.InlineIcon=n.Icon=void 0;var r,o=(r=t(0))&&r.__esModule?r:{default:r};function a(e){return(a="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})(e)}function i(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var l=0,c=/(-?[0-9.]*[0-9]+[0-9.]*)/g,u=/^-?[0-9.]*[0-9]+[0-9.]*$/g,s=["width","height","inline","hFlip","vFlip","flip","rotate","align","color","box"],f={left:0,top:0,width:16,height:16,rotate:0,hFlip:!1,vFlip:!1};var d=function(){function e(n){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this._item=n}var n,t,r;return n=e,r=[{key:"splitAttributes",value:function(e){var n={icon:Object.create(null),node:Object.create(null)};return Object.keys(e).forEach((function(t){n[-1===s.indexOf(t)?"node":"icon"][t]=e[t]})),n}},{key:"calculateDimension",value:function(e,n,t){if(1===n)return e;if(t=void 0===t?100:t,"number"==typeof e)return Math.ceil(e*n*t)/t;var r=e.split(c);if(null===r||!r.length)return null;for(var o,a=[],i=r.shift(),l=u.test(i);;){if(l?(o=parseFloat(i),isNaN(o)?a.push(i):a.push(Math.ceil(o*n*t)/t)):a.push(i),void 0===(i=r.shift()))return a.join("");l=!l}}},{key:"replaceIDs",value:function(e){var n,t,r=/\sid="(\S+)"/g,o=[];function a(e,n,t){for(var r=0;-1!==(r=t.indexOf(e,r));)t=t.slice(0,r)+n+t.slice(r+e.length),r+=n.length;return t}for(;n=r.exec(e);)o.push(n[1]);return o.length?(t="IconifyId-"+Date.now().toString(16)+"-"+(16777216*Math.random()|0).toString(16)+"-",o.forEach((function(n){var r=t+l;l++,e=a('="'+n+'"','="'+r+'"',e),e=a('="#'+n+'"','="#'+r+'"',e),e=a("(#"+n+")","(#"+r+")",e)})),e):e}}],(t=[{key:"getAttributes",value:function(n){var t=this._item;"object"!==a(n)&&(n=Object.create(null));var r={horizontal:"center",vertical:"middle",slice:!1},o={rotate:t.rotate,hFlip:t.hFlip,vFlip:t.vFlip},i=Object.create(null),l=Object.create(null),c=!0===n.inline||"true"===n.inline||"1"===n.inline,u={left:t.left,top:c?t.inlineTop:t.top,width:t.width,height:c?t.inlineHeight:t.height};if(["hFlip","vFlip"].forEach((function(e){void 0===n[e]||!0!==n[e]&&"true"!==n[e]&&"1"!==n[e]||(o[e]=!o[e])})),void 0!==n.flip&&n.flip.toLowerCase().split(/[\s,]+/).forEach((function(e){switch(e){case"horizontal":o.hFlip=!o.hFlip;break;case"vertical":o.vFlip=!o.vFlip}})),void 0!==n.rotate){var s=n.rotate;if("number"==typeof s)o.rotate+=s;else if("string"==typeof s){var f=s.replace(/^-?[0-9.]*/,"");if(""===f)s=parseInt(s),isNaN(s)||(o.rotate+=s);else if(f!==s){var d=!1;switch(f){case"%":d=25;break;case"deg":d=90}d&&(s=parseInt(s.slice(0,s.length-f.length)),isNaN(s)||(o.rotate+=Math.round(s/d)))}}}var p,h=[];switch(o.hFlip?o.vFlip?o.rotate+=2:(h.push("translate("+(u.width+u.left)+" "+(0-u.top)+")"),h.push("scale(-1 1)"),u.top=u.left=0):o.vFlip&&(h.push("translate("+(0-u.left)+" "+(u.height+u.top)+")"),h.push("scale(1 -1)"),u.top=u.left=0),o.rotate%4){case 1:p=u.height/2+u.top,h.unshift("rotate(90 "+p+" "+p+")"),0===u.left&&0===u.top||(p=u.left,u.left=u.top,u.top=p),u.width!==u.height&&(p=u.width,u.width=u.height,u.height=p);break;case 2:h.unshift("rotate(180 "+(u.width/2+u.left)+" "+(u.height/2+u.top)+")");break;case 3:p=u.width/2+u.left,h.unshift("rotate(-90 "+p+" "+p+")"),0===u.left&&0===u.top||(p=u.left,u.left=u.top,u.top=p),u.width!==u.height&&(p=u.width,u.width=u.height,u.height=p)}var m,b,v=n.width?n.width:null,y=n.height?n.height:null;null===v&&null===y&&(y="1em"),null!==v&&null!==y?(m=v,b=y):null!==v?(m=v,b=e.calculateDimension(m,u.height/u.width)):(b=y,m=e.calculateDimension(b,u.width/u.height)),!1!==m&&(l.width="auto"===m?u.width:m),!1!==b&&(l.height="auto"===b?u.height:b),c&&0!==t.verticalAlign&&(i["vertical-align"]=t.verticalAlign+"em"),void 0!==n.align&&n.align.toLowerCase().split(/[\s,]+/).forEach((function(e){switch(e){case"left":case"right":case"center":r.horizontal=e;break;case"top":case"bottom":case"middle":r.vertical=e;break;case"crop":r.slice=!0;break;case"meet":r.slice=!1}})),l.preserveAspectRatio=function(e){var n;switch(e.horizontal){case"left":n="xMin";break;case"right":n="xMax";break;default:n="xMid"}switch(e.vertical){case"top":n+="YMin";break;case"bottom":n+="YMax";break;default:n+="YMid"}return n+=e.slice?" slice":" meet"}(r),l.viewBox=u.left+" "+u.top+" "+u.width+" "+u.height;var g=e.replaceIDs(t.body);return void 0!==n.color&&(g=g.replace(/currentColor/g,n.color)),h.length&&(g='<g transform="'+h.join(" ")+'">'+g+"</g>"),!0!==n.box&&"true"!==n.box&&"1"!==n.box||(g+='<rect x="'+u.left+'" y="'+u.top+'" width="'+u.width+'" height="'+u.height+'" fill="rgba(0, 0, 0, 0)" />'),{attributes:l,body:g,style:i}}},{key:"getSVG",value:function(n,t){var r=e.splitAttributes(n),o=this.getAttributes(r.icon),a='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"';return t&&Object.keys(r.node).forEach((function(e){a+=" "+e+'="'+r.node[e]+'"'})),Object.keys(o.attributes).forEach((function(e){a+=" "+e+'="'+o.attributes[e]+'"'})),a+=' style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);',Object.keys(o.style).forEach((function(e){a+=" "+e+": "+o.style[e]+";"})),n&&void 0!==n.style&&(a+=n.style),a+='">',a+=o.body+"</svg>"}}])&&i(n.prototype,t),r&&i(n,r),e}();function p(e,n){if("object"!==a(e.icon))return null;var t=d.splitAttributes(e),r=t.icon,i=t.node;delete i.icon,void 0===r.inline&&(r.inline=n);var l=new d(function(e){var n,t=Object.create(null);for(n in f)t[n]=f[n];for(n in e)t[n]=e[n];return void 0===t.inlineTop&&(t.inlineTop=t.top),void 0===t.inlineHeight&&(t.inlineHeight=t.height),void 0===t.verticalAlign&&(t.verticalAlign=t.height%7==0&&t.height%8!=0?-.143:-.125),t}(e.icon)).getAttributes(r),c={transform:"rotate(360deg)"};if(void 0!==l.style["vertical-align"]&&(c.verticalAlign=l.style["vertical-align"]),void 0!==e.style)for(var u in e.style)c[u]=e.style[u];var s,p={xmlns:"http://www.w3.org/2000/svg",focusable:!1,style:c};for(s in i)p[s]=i[s];for(s in l.attributes)p[s]=l.attributes[s];return p.dangerouslySetInnerHTML={__html:l.body},o.default.createElement("svg",p,null)}var h=function(e){return p(e,!1)};n.Icon=h;n.InlineIcon=function(e){return p(e,!0)};var m=h;n.default=m},function(e,n,t){"use strict";function r(){return(r=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,n){return(a=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function l(e,n,t){return(l=i()?Reflect.construct:function(e,n,t){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(e,r));return t&&a(o,t.prototype),o}).apply(null,arguments)}function c(e){var n="function"==typeof Map?new Map:void 0;return(c=function(e){if(null===e||(t=e,-1===Function.toString.call(t).indexOf("[native code]")))return e;var t;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return l(e,arguments,o(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),a(r,e)})(e)}function u(e){return(u="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})(e)}t.d(n,"a",(function(){return F}));var s=function(e){var n,t;function r(n){return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/master/src/internalHelpers/errors.md#"+n+" for more information.")||this)}return t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,n.__proto__=t,r}(c(Error));function f(e){return Math.round(255*e)}function d(e,n,t){return f(e)+","+f(n)+","+f(t)}function p(e,n,t,r){if(void 0===r&&(r=d),0===n)return r(t,t,t);var o=(e%360+360)%360/60,a=(1-Math.abs(2*t-1))*n,i=a*(1-Math.abs(o%2-1)),l=0,c=0,u=0;o>=0&&o<1?(l=a,c=i):o>=1&&o<2?(l=i,c=a):o>=2&&o<3?(c=a,u=i):o>=3&&o<4?(c=i,u=a):o>=4&&o<5?(l=i,u=a):o>=5&&o<6&&(l=a,u=i);var s=t-a/2;return r(l+s,c+s,u+s)}var h={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var m=/^#[a-fA-F0-9]{6}$/,b=/^#[a-fA-F0-9]{8}$/,v=/^#[a-fA-F0-9]{3}$/,y=/^#[a-fA-F0-9]{4}$/,g=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,w=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,x=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,O=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function k(e){if("string"!=typeof e)throw new s(3);var n=function(e){if("string"!=typeof e)return e;var n=e.toLowerCase();return h[n]?"#"+h[n]:e}(e);if(n.match(m))return{red:parseInt(""+n[1]+n[2],16),green:parseInt(""+n[3]+n[4],16),blue:parseInt(""+n[5]+n[6],16)};if(n.match(b)){var t=parseFloat((parseInt(""+n[7]+n[8],16)/255).toFixed(2));return{red:parseInt(""+n[1]+n[2],16),green:parseInt(""+n[3]+n[4],16),blue:parseInt(""+n[5]+n[6],16),alpha:t}}if(n.match(v))return{red:parseInt(""+n[1]+n[1],16),green:parseInt(""+n[2]+n[2],16),blue:parseInt(""+n[3]+n[3],16)};if(n.match(y)){var r=parseFloat((parseInt(""+n[4]+n[4],16)/255).toFixed(2));return{red:parseInt(""+n[1]+n[1],16),green:parseInt(""+n[2]+n[2],16),blue:parseInt(""+n[3]+n[3],16),alpha:r}}var o=g.exec(n);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=w.exec(n);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])};var i=x.exec(n);if(i){var l="rgb("+p(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",c=g.exec(l);if(!c)throw new s(4,n,l);return{red:parseInt(""+c[1],10),green:parseInt(""+c[2],10),blue:parseInt(""+c[3],10)}}var u=O.exec(n);if(u){var f="rgb("+p(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",d=g.exec(f);if(!d)throw new s(4,n,f);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+u[4])}}throw new s(5)}function C(e){return function(e){var n,t=e.red/255,r=e.green/255,o=e.blue/255,a=Math.max(t,r,o),i=Math.min(t,r,o),l=(a+i)/2;if(a===i)return void 0!==e.alpha?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var c=a-i,u=l>.5?c/(2-a-i):c/(a+i);switch(a){case t:n=(r-o)/c+(r<o?6:0);break;case r:n=(o-t)/c+2;break;default:n=(t-r)/c+4}return n*=60,void 0!==e.alpha?{hue:n,saturation:u,lightness:l,alpha:e.alpha}:{hue:n,saturation:u,lightness:l}}(k(e))}var E=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function j(e){var n=e.toString(16);return 1===n.length?"0"+n:n}function S(e){return j(Math.round(255*e))}function _(e,n,t){return E("#"+S(e)+S(n)+S(t))}function P(e,n,t){return p(e,n,t,_)}function A(e,n,t){if("number"==typeof e&&"number"==typeof n&&"number"==typeof t)return P(e,n,t);if("object"===u(e)&&void 0===n&&void 0===t)return P(e.hue,e.saturation,e.lightness);throw new s(1)}function I(e,n,t,r){if("number"==typeof e&&"number"==typeof n&&"number"==typeof t&&"number"==typeof r)return r>=1?P(e,n,t):"rgba("+p(e,n,t)+","+r+")";if("object"===u(e)&&void 0===n&&void 0===t&&void 0===r)return e.alpha>=1?P(e.hue,e.saturation,e.lightness):"rgba("+p(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new s(2)}function M(e,n,t){if("number"==typeof e&&"number"==typeof n&&"number"==typeof t)return E("#"+j(e)+j(n)+j(t));if("object"===u(e)&&void 0===n&&void 0===t)return E("#"+j(e.red)+j(e.green)+j(e.blue));throw new s(6)}function T(e,n,t,r){if("string"==typeof e&&"number"==typeof n){var o=k(e);return"rgba("+o.red+","+o.green+","+o.blue+","+n+")"}if("number"==typeof e&&"number"==typeof n&&"number"==typeof t&&"number"==typeof r)return r>=1?M(e,n,t):"rgba("+e+","+n+","+t+","+r+")";if("object"===u(e)&&void 0===n&&void 0===t&&void 0===r)return e.alpha>=1?M(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new s(7)}function z(e){if("object"!==u(e))throw new s(8);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return T(e);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return M(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha}(e))return I(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return A(e);throw new s(8)}function R(e){return function e(n,t,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=t?n.apply(this,o):e(n,t,o)}}(e,e.length,[])}function N(e,n,t){return Math.max(e,Math.min(n,t))}function L(e,n){if("transparent"===n)return n;var t=C(n);return z(r({},t,{lightness:N(0,1,t.lightness+parseFloat(e))}))}var F=R(L)},function(e,n,t){"use strict";t.d(n,"b",(function(){return d})),t.d(n,"e",(function(){return h})),t.d(n,"c",(function(){return b})),t.d(n,"d",(function(){return y})),t.d(n,"a",(function(){return p}));var r=t(0),o=t(47),a=t.n(o);function i(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=s(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(l)throw a}}}}function l(e,n,t,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,o)}function c(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var a=e.apply(n,t);function i(e){l(a,r,o,i,c,"next",e)}function c(e){l(a,r,o,i,c,"throw",e)}i(void 0)}))}}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||s(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,n){if(e){if("string"==typeof e)return f(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?f(e,n):void 0}}function f(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=Object(r.useState)(n),a=u(o,2),i=a[0],l=a[1],c=Object(r.useState)(null),s=u(c,2),f=s[0],d=s[1],p=Object(r.useState)(t),h=u(p,2),m=h[0],b=h[1],v=Object(r.useState)(0),y=u(v,2),g=y[0],w=y[1];return Object(r.useEffect)((function(){void 0!==e&&(e.success?(d(null),l(e.data),w(e.total?e.total:0)):d(e.error)),b(void 0===e)}),[e]),{busy:m,data:i,total:g,error:f}},p=function(){var e=Object(r.useRef)(),n=u(Object(r.useState)({}),2),t=n[0],o=n[1];return Object(r.useEffect)((function(){if(e&&e.current){var n=new ResizeObserver((function(e){var n=e[0];n.contentRect&&o({width:n.contentRect.left+n.contentRect.right,height:n.contentRect.top+n.contentRect.bottom})}));return n.observe(e.current),function(){n.unobserve(e.current)}}}),[]),{ref:e,width:t.width?t.width:0,height:t.height?t.height:0}},h=function(e){var n=Object(r.useRef)(),t=function(t){e&&!n.current.contains(t.target)&&e()};return Object(r.useEffect)((function(){return document.addEventListener("mousedown",t),function(){document.removeEventListener("mousedown",t)}})),n},m=null,b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!m){var n=e.concurrency,t=void 0===n?2:n;m=new a.a({concurrency:t,autoStart:!0})}var r=function(){var e=c(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.add(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return{runTask:r}},v=new a.a({concurrency:1,autoStart:!1}),y=function(){var e=u(Object(r.useState)(new AbortController),2),n=e[0],t=e[1],o=Object(r.useRef)(!1),a=Object(r.useRef)(0),l=u(Object(r.useState)(null),2),s=l[0],f=l[1],d=u(Object(r.useState)(!1),2),p=d[0],h=d[1],m=u(Object(r.useState)(0),2),b=m[0],y=m[1],g=u(Object(r.useState)(!1),2),w=g[0],x=g[1],O=u(Object(r.useState)(!1),2),k=O[0],C=O[1],E=u(Object(r.useState)(0),2),j=E[0],S=E[1],_=function(){var e=c(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new AbortController,t(n),x(!1),a.current=0,o.current=!1,h(!1),C(!1),S(0),y(0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),P=function(){var e=c(regeneratorRuntime.mark((function e(n){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new Promise((function(e,t){x(!1),a.current=0,o.current=!1,h(!1),C(!1),R(n),f(!0),v.start(),v.onIdle().then((function(){T(),e()}))})),e.abrupt("return",t);case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),A=function(){var e=c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:0,v.pause(),h(!0);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:0,x(!1),h(!1),v.start();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),M=function(){var e=c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:0,v.pause(),n.abort(),f(!1),x(!1),C(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),T=function(){var e=c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:0,C(!0),f(!1);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),z=function(){var e=c(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:v.add(c(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t(n.signal);case 3:(r=e.sent)&&r.success||console.error("[useNekoTasks] Task returned nothing.",r),r.success||(a.current++,o.current||(x(r.error),A())),e.next=17;break;case 8:if(e.prev=8,e.t0=e.catch(0),"AbortError"!==e.t0.name){e.next=15;break}return console.log("Aborted"),e.abrupt("return");case 15:a.current++,o.current||(x("An error was caught (more information in the console)."),A());case 17:return e.prev=17,S((function(e){return e+1})),e.finish(17);case 20:case"end":return e.stop()}}),e,null,[[0,8,17,20]])})))),y((function(e){return e+1}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),R=function(){var e=c(regeneratorRuntime.mark((function e(n){var t,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:v.clear(),t=i(n);try{for(t.s();!(r=t.n()).done;)o=r.value,z(o)}catch(e){t.e(e)}finally{t.f()}S(0);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),N=Object(r.useCallback)((function(){o.current=!0}),[]),L=Object(r.useCallback)((function(){return a.current}),[]);return{start:P,stop:M,pause:A,resume:I,reset:_,addTask:z,setAlwaysSkip:N,getErrorCount:L,error:w,success:k,busy:s,paused:p,value:j,max:b}}},function(e,n,t){"use strict";t.d(n,"a",(function(){return v}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(3),s=["show","className"];function f(){return(f=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function d(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p,h,m=c.a.a(r||(p=["\n background-color: ",";\n position: relative;\n border-radius: 10px;\n color: ",";\n font-family: ",";\n font-size: 9px;\n line-height: 10px;\n padding: 5px 8px;\n text-transform: uppercase;\n text-decoration: none;\n\n &:hover {\n color: ",";\n background-color: #f78c1f;\n }\n\n &.inline {\n display: inline;\n margin-left: 5px;\n vertical-align: middle;\n }\n"],h||(h=p.slice(0)),r=Object.freeze(Object.defineProperties(p,{raw:{value:Object.freeze(h)}}))),u.a.yellow,u.a.white,u.a.fontFamily,u.a.white),b=function(e){var n=e.show,t=void 0===n||n,r=e.className,o=d(e,s);return t?a.a.createElement(m,f({href:"https://store.meowapps.com",target:"_blank",className:"".concat(r||"")},o),"Pro Only"):null},v=function(e){return a.a.createElement(b,e)};v.propTypes={show:l.a.bool,className:l.a.string},v.defaultProps={show:!0,className:void 0}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6l1.41-1.42z" fill="currentColor"/>',width:24,height:24}},function(e,n,t){"use strict";t.d(n,"a",(function(){return x}));var r,o,a=t(0),i=t.n(a),l=t(2),c=t.n(l),u=t(4),s=t(6),f=t(5),d=t(25),p=t(19),h=["icon","spinning","className","title","tooltip","containerStyle","color","hoverColor","disabled"];function m(){return(m=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function b(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function v(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var y=u.a.div(r||(r=v(["\n display: flex;\n align-items: center;\n"]))),g=Object(u.a)(f.Icon)(o||(o=v(["\n\n path {\n fill: ",";\n }\n\n ","\n\n &.nui-clickable {\n cursor: pointer;\n }\n\n &.spin {\n animation-name: spin;\n animation-duration: 700ms;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n\n @keyframes spin {\n 0% {\n transform: rotate(360deg);\n }\n 100% {\n transform: rotate(0deg);\n }\n }\n }\n\n &.disabled {\n pointer-events: none;\n opacity: 0.35;\n cursor: default;\n }\n"])),(function(e){return e.color}),(function(e){return n=e.color,(t=e.hoverColor)?"\n &:hover {\n path {\n fill: ".concat(t,";\n }\n }\n "):n?"\n &:hover {\n path {\n fill: ".concat(Object(s.a)(.1,n),";\n }\n }\n "):void 0;var n,t})),w=function(e){var n=e.icon,t=e.spinning,r=void 0!==t&&t,o=e.className,a=void 0===o?"":o,l=e.title,c=e.tooltip,u=e.containerStyle,s=e.color,f=e.hoverColor,v=e.disabled,w=void 0!==v&&v,x=b(e,h);x.width||x.height||(x.width=x.height=30);var O=function(){return"string"==typeof n?d.a[n]||null:n},k="nui-icon ".concat(a).concat(x.onClick?" nui-clickable":"").concat(r?" spin":"").concat(w?" disabled":"");return c?i.a.createElement(p.a,{text:c.text,position:c.position||"top"},i.a.createElement(y,{style:u},i.a.createElement(g,m({icon:O(),className:k,color:s,hoverColor:f},x)))):i.a.createElement(y,{style:u,title:l},i.a.createElement(g,m({icon:O(),className:k,color:s,hoverColor:f},x)),c?i.a.createElement(p.a,null,c):null)},x=function(e){return i.a.createElement(w,e)};x.propTypes={icon:c.a.oneOfType([c.a.instanceOf(f.IconifyIcon),c.a.oneOf(["lock","lock-open","file-undo","chevron-double-left","chevron-double-right","chevron-left","chevron-right","chevron-down","chevron-up","pause","play","replay","check","stop","delete","undo","alert","database","pencil","tools","cog","close","cat","upload"])]),color:c.a.string,spinning:c.a.bool,className:c.a.string,tooltip:c.a.string},x.defaultProps={icon:void 0,color:void 0,spinning:!1,className:"",tooltip:void 0}},function(e,n,t){"use strict";t.d(n,"a",(function(){return w}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(6),s=t(3),f=t(5),d=t(25),p=["className","icon","onClick","disabled","color","small","children"];function h(){return(h=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function m(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var b,v,y=Object(c.a)((function(e){var n=e.className,t=e.icon,r=void 0===t?null:t,o=e.onClick,i=e.disabled,l=void 0!==i&&i,c=e.color,u=void 0===c?null:c,s=e.small,b=e.children,v=m(e,p),y=!!r,g="nui-button ".concat(n||"").concat(y?" has-icon":"").concat(u?" custom-color":"").concat(s?" small":"");return a.a.createElement("button",h({type:"button",className:g,onClick:o,disabled:l},v),y&&a.a.createElement(f.Icon,{icon:"string"==typeof r?d.a[r]||null:r,width:"24",height:"24",style:{marginRight:"4px"}}),a.a.createElement("span",null,b))}))(r||(b=["\n display: inline-block;\n box-sizing: border-box;\n height: 30px;\n min-width: 6em;\n border: none;\n border-radius: 4px;\n text-align: center;\n font-family: ",";\n font-size: ",";\n padding: 0 15px;\n\n background-color: ",";\n color: white;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ",";\n }\n\n :disabled {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n &.has-icon {\n align-items: center;\n display: inline-flex;\n padding: 2.5px 6px 2.5px 4px;\n }\n\n &.secondary {\n background-color: ",";\n border: 1px solid ",";\n color: ",";\n\n &:hover {\n background-color: ",";\n }\n }\n\n &.danger {\n background-color: ",";\n border-color: ",";\n\n\t &:hover {\n\t\t background-color: ",";\n\t }\n }\n\n &.success {\n background-color: ",";\n border-color: ",";\n\n\t &:hover {\n\t\t background-color: ",";\n\t }\n }\n\n & + button {\n margin-left: .25rem;\n }\n\n &.small {\n font-size: ",";\n height: 24px;\n }\n\n &.header {\n background-color: ",";\n border-color: ",";\n height: 40px;\n padding: 0 20px;\n\n\t &:hover {\n\t\t background-color: ",";\n\t }\n }\n\n ","\n"],v||(v=b.slice(0)),r=Object.freeze(Object.defineProperties(b,{raw:{value:Object.freeze(v)}}))),s.a.fontFamily,s.a.fontSizeText,s.a.blue,Object(u.a)(.1,s.a.blue),s.a.lightBlue,s.a.blue,s.a.blue,Object(u.a)(.1,s.a.lightBlue),s.a.red,s.a.red,Object(u.a)(.1,s.a.red),s.a.green,s.a.green,Object(u.a)(.1,s.a.green),s.a.fontSizeSmallButton,s.a.deepBlue,s.a.deepBlue,Object(u.a)(.1,s.a.deepBlue),(function(e){return g(e.color)})),g=function(e){if(e)return"\n &.custom-color {\n background-color: ".concat(e,";\n border: 1px solid ").concat(e,";\n\n &:hover {\n background-color: ").concat(Object(u.a)(.1,e),";\n }\n }\n ")},w=function(e){return a.a.createElement(y,e)};w.propTypes={className:l.a.oneOf(["primary","secondary","danger","success","header"]),disabled:l.a.bool,icon:l.a.oneOfType([l.a.instanceOf(f.IconifyIcon),l.a.oneOf(["setting","edit","trash"])]),color:l.a.string,onClick:l.a.func.isRequired},w.defaultProps={className:"primary",disabled:!1,icon:null,color:null,onClick:function(){}}},function(e,n,t){"use strict";t.d(n,"a",(function(){return $})),t.d(n,"b",(function(){return W}));var r=t(0),o=Object.prototype.hasOwnProperty;function a(e,n,t,r){return new(t||(t=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function l(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(i,l)}c((r=r.apply(e,n||[])).next())}))}function i(e,n){var t,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;i;)try{if(t=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=n.call(e,i)}catch(e){a=[6,e],r=0}finally{t=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}var l={}[0],c=function(e){return e===l},u=function(e){return"function"==typeof e},s=function(){},f=function(e,n){return Object.assign({},e,n)},d=!0,p="undefined"!=typeof window,h="undefined"!=typeof document,m=p&&window.addEventListener?window.addEventListener:s,b=h?document.addEventListener:s,v={isOnline:function(){return d},isVisible:function(){var e=h&&document.visibilityState;return!!c(e)||"hidden"!==e}},y={initFocus:function(e){b("visibilitychange",e),m("focus",e)},initReconnect:function(e){m("online",(function(){d=!0,e()})),m("offline",(function(){d=!1}))}},g="undefined"==typeof window||"Deno"in window,w=g?null:window.requestAnimationFrame,x=w?function(e){return w(e)}:function(e){return setTimeout(e,1)},O=g?r.useEffect:r.useLayoutEffect,k="undefined"!=typeof navigator&&navigator.connection,C=!g&&k&&(["slow-2g","2g"].includes(k.effectiveType)||k.saveData),E=new WeakMap,j=0;function S(e){if(u(e))try{e=e()}catch(n){e=""}var n;return Array.isArray(e)?(n=e,e=function(e){if(!e.length)return"";for(var n="arg",t=0;t<e.length;++t){var r=e[t],o=l;null===r||"object"!=typeof r&&!u(r)?o=JSON.stringify(r):E.has(r)?o=E.get(r):(o=j,E.set(r,j++)),n+="$"+o}return n}(e)):n=[e=String(e||"")],[e,n,e?"$err$"+e:"",e?"$req$"+e:""]}var _=new WeakMap,P=function(e,n,t,r,o,a){void 0===a&&(a=!1);var i=_.get(e),l=i[0],c=i[1],u=l[n],s=c[n];if(s)for(var f=0;f<s.length;++f)s[f](t,r,o);return a&&u&&u[0]?u[0](2).then((function(){return e.get(n)})):e.get(n)},A=0,I=function(){return++A},M=function(e,n,t,r){return void 0===r&&(r=!0),a(void 0,void 0,void 0,(function(){var o,a,s,f,d,p,h,m,b,v,y;return i(this,(function(i){switch(i.label){case 0:if(o=S(n),a=o[0],s=o[2],!a)return[2];if(f=_.get(e),d=f[2],p=f[3],c(t))return[2,P(e,a,e.get(a),e.get(s),l,r)];if(b=d[a]=I(),p[a]=0,u(t))try{t=t(e.get(a))}catch(e){t=l,m=e}if(!t||!u(t.then))return[3,5];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,t];case 2:return h=i.sent(),[3,4];case 3:return v=i.sent(),m=v,[3,4];case 4:if(b!==d[a]){if(m)throw m;return[2,h]}return[3,6];case 5:h=t,i.label=6;case 6:return c(h)||e.set(a,h),e.set(s,m),p[a]=I(),[4,P(e,a,h,m,l,r)];case 7:if(y=i.sent(),m)throw m;return[2,y]}}))}))};function T(e,n){for(var t in e)e[t][0]&&e[t][0](n)}function z(e,n){if(!_.has(e)){var t=f(y,n),r={},o=M.bind(l,e);return _.set(e,[r,{},{},{},{},{},o]),g||(t.initFocus(T.bind(l,r,0)),t.initReconnect(T.bind(l,r,1))),[e,o]}}var R=z(new Map),N=R[0],L=R[1],F=f({onLoadingSlow:s,onSuccess:s,onError:s,onErrorRetry:function(e,n,t,r,o){if(v.isVisible()){var a=t.errorRetryCount,i=o.retryCount,l=~~((Math.random()+.5)*(1<<(i<8?i:8)))*t.errorRetryInterval;!c(a)&&i>a||setTimeout(r,l,o)}},revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:C?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:C?5e3:3e3,compare:function e(n,t){var r,a;if(n===t)return!0;if(n&&t&&(r=n.constructor)===t.constructor){if(r===Date)return n.getTime()===t.getTime();if(r===RegExp)return n.toString()===t.toString();if(r===Array){if((a=n.length)===t.length)for(;a--&&e(n[a],t[a]););return-1===a}if(!r||"object"==typeof n){for(r in a=0,n){if(o.call(n,r)&&++a&&!o.call(t,r))return!1;if(!(r in t)||!e(n[r],t[r]))return!1}return Object.keys(t).length===a}}return n!=n&&t!=t},isPaused:function(){return!1},cache:N,mutate:L,fallback:{}},v);function D(e,n){var t=f(e,n);if(!n)return t;var r=e.use,o=e.fallback,a=n.use,i=n.fallback;return r&&a&&(t.use=r.concat(a)),o&&i&&(t.fallback=f(o,i)),t}var B=Object(r.createContext)({});function U(e){return u(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]}var H,q=function(e,n,t){var r=n[e]||(n[e]=[]);return r.push(t),function(){var e=r.indexOf(t);e>=0&&(r[e]=r[r.length-1],r.pop())}},V={dedupe:!0},$=Object.defineProperty((function(e){var n=e.children,t=e.value,o=D(Object(r.useContext)(B),t),a=t&&t.provider,i=Object(r.useState)((function(){return a?z(a(o.cache||N),t):l}))[0];return i&&(o.cache=i[0],o.mutate=i[1]),Object(r.createElement)(B.Provider,{value:o},n)}),"default",{value:F}),W=(H=function(e,n,t){var o=t.cache,u=t.compare,s=t.fallbackData,d=t.suspense,p=t.revalidateOnMount,h=t.refreshInterval,m=t.refreshWhenHidden,b=t.refreshWhenOffline,v=_.get(o),y=v[0],w=v[1],k=v[2],C=v[3],E=v[4],j=v[5],A=S(e),T=A[0],z=A[1],R=A[2],N=A[3],L=Object(r.useRef)(!1),F=Object(r.useRef)(!1),D=Object(r.useRef)(T),B=Object(r.useRef)(t),U=o.get(T),H=c(s)?t.fallback[T]:s,$=c(U)?H:U,W=o.get(R),G=function(){return c(p)?d?!L.current&&!c($):c($)||t.revalidateIfStale:p},Y=!(!T||!n)&&(!!o.get(N)||!L.current&&G()),K=function(e,n){var t=Object(r.useState)({})[1],o=Object(r.useRef)(e),a=Object(r.useRef)({data:!1,error:!1,isValidating:!1}),i=Object(r.useCallback)((function(e){var r=!1,i=o.current;for(var l in e){var c=l;i[c]!==e[c]&&(i[c]=e[c],a.current[c]&&(r=!0))}r&&!n.current&&t({})}),[]);return O((function(){o.current=e})),[o,a.current,i]}({data:$,error:W,isValidating:Y},F),J=K[0],X=K[1],Z=K[2],Q=Object(r.useCallback)((function(e){return a(void 0,void 0,void 0,(function(){var r,a,s,f,d,p,h,m,b;return i(this,(function(i){switch(i.label){case 0:if(!T||!n||F.current||B.current.isPaused())return[2,!1];s=!0,f=e||{},d=!c(E[T])&&f.dedupe,p=function(){return!F.current&&T===D.current&&L.current},h=function(){delete E[T],delete j[T]},i.label=1;case 1:return i.trys.push([1,6,,7]),o.set(N,!0),Z({isValidating:!0}),d||P(o,T,J.current.data,J.current.error,!0),d?(a=j[T],[4,E[T]]):[3,3];case 2:return r=i.sent(),[3,5];case 3:return t.loadingTimeout&&!o.get(T)&&setTimeout((function(){s&&p()&&B.current.onLoadingSlow(T,t)}),t.loadingTimeout),j[T]=a=I(),[4,E[T]=n.apply(n,z)];case 4:r=i.sent(),setTimeout((function(){j[T]===a&&h()}),t.dedupingInterval),p()&&B.current.onSuccess(r,T,t),i.label=5;case 5:return j[T]!==a?[2,!1]:!c(k[T])&&(a<=k[T]||a<=C[T]||0===C[T])?(Z({isValidating:!1}),[2,!1]):(o.set(R,l),o.set(N,!1),m={isValidating:!1},c(J.current.error)||(m.error=l),u(J.current.data,r)||(m.data=r),u(o.get(T),r)||o.set(T,r),Z(m),d||P(o,T,r,m.error,!1),[3,7]);case 6:return b=i.sent(),h(),B.current.isPaused()?(Z({isValidating:!1}),[2,!1]):(o.set(R,b),J.current.error!==b&&(Z({isValidating:!1,error:b}),d||P(o,T,l,b,!1)),p()&&(B.current.onError(b,T,t),t.shouldRetryOnError&&B.current.onErrorRetry(b,T,t,Q,{retryCount:(f.retryCount||0)+1,dedupe:!0})),[3,7]);case 7:return s=!1,[2,!0]}}))}))}),[T]),ee=Object(r.useCallback)((function(e,n){return M(o,D.current,e,n)}),[]);if(O((function(){B.current=t})),O((function(){if(T){var e=L.current,n=Q.bind(l,V),t=function(){return B.current.isVisible()&&B.current.isOnline()},r=0,o=q(T,w,(function(e,n,t){Z(f({error:n,isValidating:t},u(e,J.current.data)?null:{data:e}))})),a=q(T,y,(function(e){if(0===e){var o=Date.now();B.current.revalidateOnFocus&&o>r&&t()&&(r=o+B.current.focusThrottleInterval,n())}else if(1===e)B.current.revalidateOnReconnect&&t()&&n();else if(2===e)return Q()}));return F.current=!1,D.current=T,e&&Z({data:$,error:W,isValidating:Y}),(e||G())&&(c($)||g?n():x(n)),L.current=!0,function(){F.current=!0,o(),a()}}}),[T,Q]),O((function(){var e;function n(){h&&-1!==e&&(e=setTimeout(r,h))}function r(){J.current.error||!m&&!t.isVisible()||!b&&!t.isOnline()?n():Q(V).then((function(){return n()}))}return n(),function(){e&&(clearTimeout(e),e=-1)}}),[h,m,b,Q]),Object(r.useDebugValue)($),d&&c($))throw c(W)?Q(V):W;return{mutate:ee,get data(){return X.data=!0,$},get error(){return X.error=!0,W},get isValidating(){return X.isValidating=!0,Y}}},function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=U(e),o=t[0],a=t[1],i=t[2],l=f(F,Object(r.useContext)(B)),c=D(l,i),u=H,s=c.use;if(s)for(var d=s.length;d-- >0;)u=s[d](u);return u(o,a||c.fetcher,c)})},function(e,n){n.__esModule=!0,n.default={body:'<path d="M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6l-1.41-1.42z" fill="currentColor"/>',width:24,height:24}},function(e,n,t){"use strict";var r=t(0),o=t.n(r),a=t(2),i=t.n(a);function l(){return(l=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function u(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach((function(n){s(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function f(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return d(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var p=function(e){var n=e.spinner,t=void 0===n||n,a=e.busy,i=void 0!==a&&a,c=e.overlayStyle,s=f(Object(r.useState)(!0),2),d=s[0],p=s[1];Object(r.useEffect)((function(){var e;return i?p(!0):e=setTimeout((function(){p(!1),e=null}),250),function(){e&&clearTimeout(e)}}),[i]);var h=d?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"overlay "+(i?"":"overlayHidden"),style:c},Boolean(t)&&o.a.createElement("div",{className:"lds-ellipsis "+(i?"":"spinnerHidden")},o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null))),o.a.createElement("style",{jsx:!0},"\n .overlay {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n background: rgb(30 124 186 / 85%);\n transition: opacity 1s ease-out;\n z-index: 10;\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n overflow: hidden;\n }\n\n .overlayHidden {\n opacity: 0;\n transition: opacity 0.25s ease-out;\n }\n .spinnerHidden {\n opacity: 0;\n transition: opacity 0.25s ease-out;\n }\n .lds-ellipsis {\n position: relative;\n width: 80px;\n height: 80px;\n display: flex;\n justify-items: center;\n align-items: center;\n }\n .lds-ellipsis div {\n position: absolute;\n width: 13px;\n height: 13px;\n border-radius: 50%;\n background: white;\n animation-timing-function: cubic-bezier(0, 1, 1, 0);\n }\n .lds-ellipsis div:nth-child(1) {\n left: 8px;\n animation: lds-ellipsis1 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(2) {\n left: 8px;\n animation: lds-ellipsis2 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(3) {\n left: 32px;\n animation: lds-ellipsis2 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(4) {\n left: 56px;\n animation: lds-ellipsis3 0.6s infinite;\n }\n @keyframes lds-ellipsis1 {\n 0% {\n transform: scale(0);\n }\n 100% {\n transform: scale(1);\n }\n }\n @keyframes lds-ellipsis3 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0);\n }\n }\n @keyframes lds-ellipsis2 {\n 0% {\n transform: translate(0, 0);\n }\n 100% {\n transform: translate(24px, 0);\n }\n } \n ")):null,m=u(u({},e),{},{busy:void 0,spinner:void 0});return o.a.createElement("div",l({style:{position:"relative"}},m),h,e.children)};p.propTypes={busy:i.a.bool.isRequired,spinner:i.a.bool,children:i.a.oneOfType([i.a.arrayOf(i.a.node),i.a.node]).isRequired},n.a=p},function(e,n,t){"use strict";t.d(n,"d",(function(){return L})),t.d(n,"c",(function(){return N})),t.d(n,"b",(function(){return z})),t.d(n,"a",(function(){return F}));var r=t(0),o=t(108),a=t.n(o);function i(){return"undefined"==typeof document||void 0===document.visibilityState||"hidden"!==document.visibilityState}function l(){return void 0===navigator.onLine||navigator.onLine}function c(e){return(c="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})(e)}var u=new WeakMap,s=0;var f=new(function(){function e(e){void 0===e&&(e={}),this.__cache=new Map(Object.entries(e)),this.__listeners=[]}return e.prototype.get=function(e){var n=this.serializeKey(e)[0];return this.__cache.get(n)},e.prototype.set=function(e,n,t){void 0===t&&(t=!0);var r=this.serializeKey(e)[0];this.__cache.set(r,n),t&&j(e,n,!1),this.notify()},e.prototype.keys=function(){return Array.from(this.__cache.keys())},e.prototype.has=function(e){var n=this.serializeKey(e)[0];return this.__cache.has(n)},e.prototype.clear=function(e){void 0===e&&(e=!0),e&&this.__cache.forEach((function(e){return j(e,null,!1)})),this.__cache.clear(),this.notify()},e.prototype.delete=function(e,n){void 0===n&&(n=!0);var t=this.serializeKey(e)[0];n&&j(e,null,!1),this.__cache.delete(t),this.notify()},e.prototype.serializeKey=function(e){var n=null;if("function"==typeof e)try{e=e()}catch(n){e=""}return Array.isArray(e)?(n=e,e=function(e){if(!e.length)return"";for(var n="arg",t=0;t<e.length;++t){var r=void 0;null===e[t]||"object"!==c(e[t])?r="string"==typeof e[t]?'"'+e[t]+'"':String(e[t]):u.has(e[t])?r=u.get(e[t]):(r=s,u.set(e[t],s++)),n+="@"+r}return n}(e)):e=String(e||""),[e,n,e?"err@"+e:""]},e.prototype.subscribe=function(e){var n=this;if("function"!=typeof e)throw new Error("Expected the listener to be a function.");var t=!0;return this.__listeners.push(e),function(){if(t){t=!1;var r=n.__listeners.indexOf(e);r>-1&&(n.__listeners[r]=n.__listeners[n.__listeners.length-1],n.__listeners.length--)}}},e.prototype.notify=function(){for(var e=0,n=this.__listeners;e<n.length;e++){(0,n[e])()}},e}()),d={},p={},h={},m={};var b="undefined"!=typeof window&&navigator.connection&&-1!==["slow-2g","2g"].indexOf(navigator.connection.effectiveType),v=(a.a,!1);if("undefined"!=typeof window&&window.addEventListener&&!v){var y=function(){if(i()&&l())for(var e in p)p[e][0]&&p[e][0]()};window.addEventListener("visibilitychange",y,!1),window.addEventListener("focus",y,!1),v=!0}var g=Object(r.createContext)({});g.displayName="SWRConfigContext";var w=g;var O=function(e,n,t,r){return new(t||(t=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function l(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(i,l)}c((r=r.apply(e,n||[])).next())}))},k=function(e,n){var t,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;i;)try{if(t=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=n.call(e,i)}catch(e){a=[6,e],r=0}finally{t=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},C="undefined"==typeof window,E=(C?r.useEffect:r.useLayoutEffect,function(e,n){void 0===n&&(n=!0);var t=f.serializeKey(e),r=t[0],o=t[2];if(!r)return Promise.resolve();var a=h[r];if(r&&a){for(var i=f.get(r),l=f.get(o),c=[],u=0;u<a.length;++u)c.push(a[u](n,i,l,u>0));return Promise.all(c).then((function(){return f.get(r)}))}return Promise.resolve(f.get(r))}),j=function(e,n,t){return void 0===t&&(t=!0),O(void 0,void 0,void 0,(function(){var r,o,a,i,l,c,u,s,p,b;return k(this,(function(v){switch(v.label){case 0:if(!(r=f.serializeKey(e)[0]))return[2];if(void 0===n)return[2,E(e,t)];if(m[r]=Date.now()-1,i=m[r],l=d[r],!n||"function"!=typeof n)return[3,5];v.label=1;case 1:return v.trys.push([1,3,,4]),[4,n(f.get(r))];case 2:return o=v.sent(),[3,4];case 3:return c=v.sent(),a=c,[3,4];case 4:return[3,11];case 5:if(!n||"function"!=typeof n.then)return[3,10];v.label=6;case 6:return v.trys.push([6,8,,9]),[4,n];case 7:return o=v.sent(),[3,9];case 8:return u=v.sent(),a=u,[3,9];case 9:return[3,11];case 10:o=n,v.label=11;case 11:if(i!==m[r]||l!==d[r]){if(a)throw a;return[2,o]}if(void 0!==o&&f.set(r,o,!1),s=h[r]){for(p=[],b=0;b<s.length;++b)p.push(s[b](!!t,o,a,b>0));return[2,Promise.all(p).then((function(){return f.get(r)}))]}if(a)throw a;return[2,o]}}))}))};w.Provider,new Map;var S=t(20);function _(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||M(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,n,t,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,o)}function A(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var a=e.apply(n,t);function i(e){P(a,r,o,i,l,"next",e)}function l(e){P(a,r,o,i,l,"throw",e)}i(void 0)}))}}function I(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=M(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(l)throw a}}}}function M(e,n){if(e){if("string"==typeof e)return T(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?T(e,n):void 0}}function T(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function z(e,n){for(var t=[],r=0;r<e.length;r+=n)t.push(e.slice(r,r+n));return t}var R=function(e){if(!e.data)return e;if(e.data.length>0&&e.data[0].meta){var n,t=I(e.data);try{for(t.s();!(n=t.n()).done;){var r=n.value;try{r.meta=JSON.parse(r.meta)}catch(e){console.error("[JsonFetcher]","Could not decode meta.",r.meta)}}}catch(e){t.e(e)}finally{t.f()}}else if(e.data.meta)try{e.data.meta=JSON.parse(e.data.meta)}catch(e){console.error("[JsonFetcher]","Could not decode meta.",x.meta)}return e},N=function(){var e=A(regeneratorRuntime.mark((function e(n){var t,r,o,a,i,l,c,u,s,f=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=f.length>1&&void 0!==f[1]?f[1]:{},r=null,o={},a=null,i=null,e.prev=5,(t=t||{}).headers=t.headers?t.headers:{},t.headers.Pragma="no-cache",t.headers["Cache-Control"]="no-cache",e.next=12,fetch("".concat(n),t);case 12:return i=e.sent,e.next=15,i.text();case 15:r=e.sent,(o=JSON.parse(r)).success||(l=!1===o.success?"NOT-SUCCESS":"N/A",c=o.message?o.message:"Unknown error. Check your Console Logs.","rest_no_route"===o.code?(c="The API can't be accessed. Is Rest API enabled?",l="NO-ROUTE"):"internal_server_error"===o.code&&(c="Server error. Please check your PHP Error Logs.",l="SERVER-ERROR"),a=new S.a(c,l,n,r||i)),e.next=26;break;case 20:e.prev=20,e.t0=e.catch(5),u="BROKEN-REPLY",s="The reply sent by the server is broken.",i&&i.status&&408===i.status&&(u="REQUEST-TIMEOUT",s="The request generated a timeout."),a=new S.a(s,u,n,r||i,e.t0);case 26:return a&&(console.error("[NekoError] JsonFetcher",a.url,{code:a.code,error:a.error,body:a.body}),o.success=!1,o.error=a),e.abrupt("return",R(o));case 28:case"end":return e.stop()}}),e,null,[[5,20]])})));return function(n){return e.apply(this,arguments)}}(),L=function(){var e=A(regeneratorRuntime.mark((function e(n){var t,r,o,a,i,l,c,u,s,f,d,p,h,m=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=m.length>1&&void 0!==m[1]?m[1]:{},r=t.json,o=void 0===r?{}:r,a=t.signal,i=t.file,l=t.nonce,c=i?new FormData:null,i)for(c.append("file",i),u=0,s=Object.entries(o);u<s.length;u++)f=_(s[u],2),d=f[0],p=f[1],c.append(d,p);return h=l?{"X-WP-Nonce":l}:{},c||(h["Content-Type"]="application/json"),e.abrupt("return",N(n,{method:"POST",headers:h,body:c||JSON.stringify(o),signal:a}));case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),F=function(e,n){var t=e.includes("index.php?rest_route");return e+(t?"&":"?")+new URLSearchParams(n).toString()}},function(e,n,t){"use strict";t.d(n,"a",(function(){return k}));var r,o,a,i,l,c=t(0),u=t.n(c),s=t(2),f=t.n(s),d=t(4),p=t(3),h=["children"];function m(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function b(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var v=d.a.h1(r||(r=b(["\n font-family: ",";\n font-weight: normal;\n font-size: ",";\n line-height: normal;\n margin-top: 0;\n margin-bottom: 16px;\n padding: 0;\n"])),p.a.fontFamily,p.a.fontSizeH1),y=d.a.h2(o||(o=b(["\n font-family: ",";\n font-size: ",";\n font-weight: normal;\n line-height: normal;\n margin-top: 0;\n margin-bottom: 16px;\n padding: 0;\n"])),p.a.fontFamily,p.a.fontSizeH2),g=d.a.p(a||(a=b(["\n font-family: ",";\n font-size: ",";\n line-height: normal;\n margin: 16px 0 24px;\n padding: 0;\n"])),p.a.fontFamily,p.a.fontSizeText),w=d.a.span(i||(i=b(["\n font-family: ",";\n font-size: ",";\n line-height: normal;\n margin: 0;\n padding: 0;\n"])),p.a.fontFamily,p.a.fontSizeText),x=d.a.label(l||(l=b(["\n font-family: ",";\n font-size: ",";\n line-height: normal;\n margin: 0;\n padding: 0;\n"])),p.a.fontFamily,p.a.fontSizeText),O=function(e){var n=e.children,t=m(e,h);return e.h1?u.a.createElement(v,t,n):e.h2?u.a.createElement(y,t,n):e.p?u.a.createElement(g,t,n):e.label?u.a.createElement(x,t,n):u.a.createElement(w,t,n)},k=function(e){return u.a.createElement(O,e)};k.propTypes={h1:f.a.any,h2:f.a.any,p:f.a.any},k.defaultProps={h1:void 0,h2:void 0,p:void 0}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6l1.41 1.41z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M10 4H4c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-8l-2-2z" fill="currentColor"/>',width:24,height:24}},function(e,n,t){"use strict";t.d(n,"a",(function(){return y}));var r,o,a=t(0),i=t.n(a),l=t(2),c=t.n(l),u=t(4),s=t(7),f=t(3);function d(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return p(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return p(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function h(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var m=u.a.div(r||(r=h(["\n\tdisplay: flex;\n"]))),b=u.a.div(o||(o=h(["\n\tbackground-color: rgba(",", 0.8);\n\tborder-radius: 4px;\n\tcolor: ",";\n\tfont-family: ",";\n\tfont-weight: normal;\n\tmin-width: 180px;\n\tmax-width: 280px;\n\tfont-size: ",";\n\tpadding: 8px 12px;\n\tposition: absolute;\n \tmax-width: 280px;\n\tdisplay: ",';\n\tz-index: 100;\n\n\t&:before {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t\tborder: 4px solid transparent;\n\t}\n\n\t&.top {\n\t\t&:before {\n\t\t\tmargin-left: -4px;\n\t\t\ttop: 100%;\n\t\t\tleft: 50%;\n\t\t\tborder-top: 4px solid rgba(',", 0.8);\n\t\t}\n\t}\n\n\t&.left {\n\t\t&:before {\n\t\t\tmargin-top: -4px;\n\t\t\ttop: 50%;\n\t\t\tright: -8px;\n\t\t\tborder-left: 4px solid rgba(",", 0.8);\n\t\t}\n\t}\n\n\t&.right {\n\t\t&:before {\n\t\t\tmargin-top: -4px;\n\t\t\ttop: 50%;\n\t\t\tleft: -8px;\n\t\t\tborder-right: 4px solid rgba(",", 0.8);\n\t\t}\n\t}\n\n\t&.bottom {\n\t\t&:before {\n\t\t\tmargin-left: -4px;\n\t\t\ttop: -8px;\n\t\t\tleft: 50%;\n\t\t\tborder-bottom: 4px solid rgba(",", 0.8);\n\t\t}\n\t}\n\n\t","\n"])),f.a.blackRGB,f.a.white,f.a.fontFamily,f.a.fontSizeText,(function(e){return e.visible?"inline-block":"none"}),f.a.blackRGB,f.a.blackRGB,f.a.blackRGB,f.a.blackRGB,(function(e){return e.style})),v=function(e){var n=e.text,t=void 0===n?"Hello world!":n,r=e.position,o=void 0===r?"top":r,l=d(Object(a.useState)(!1),2),c=l[0],u=l[1],f=Object(s.a)(),p=f.ref,h=f.width,v=f.height,y=Object(s.a)(),g=y.ref,w=y.width,x=y.height,O=Object(a.useMemo)((function(){var e=0,n=0;if("top"===o)e=-1*v-5,n=h/2*-1+w/2;else if("bottom"===o)e=x+5,n=h/2*-1+w/2;else if("left"===o){e=(v-x)/2*-1,n=-1*h-5}else if("right"===o){e=(v-x)/2*-1,n=w+5}return{transform:"translateX(".concat(n,"px) translateY(").concat(e,"px)")}}),[o,h,v,w,x]);return i.a.createElement(m,null,i.a.createElement(b,{ref:p,visible:c,className:o,style:O},t),i.a.createElement("div",{ref:g,onMouseEnter:function(){return u(!0)},onMouseLeave:function(){return u(!1)}},e.children))},y=function(e){return i.a.createElement(v,e)};y.propTypes={text:c.a.string,position:c.a.oneOf(["top","right","bottom","left"])},y.defaultProps={text:"Hello world!",position:"top"}},function(e,n,t){"use strict";function r(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}t.d(n,"a",(function(){return o}));var o=function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};r(this,e),this.url=o,this.message=n,this.code=t,this.body=a,this.debug=i}},function(e,n,t){"use strict";t.d(n,"a",(function(){return y}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(3),s=["id","name","value","description","placeholder","onEnter","readOnly","type","step","min","max","maxLength","className","style","natural","inputStyle"];function f(){return(f=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function d(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return p(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return p(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function h(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var m,b,v=Object(c.a)((function(e){var n=e.id,t=e.name,r=e.value,i=void 0===r?"":r,l=e.description,c=e.placeholder,u=void 0===c?"":c,p=e.onEnter,m=void 0===p?null:p,b=e.readOnly,v=void 0!==b&&b,y=e.type,g=void 0===y?"text":y,w=e.step,x=void 0===w?1:w,O=e.min,k=void 0===O?1:O,C=e.max,E=void 0===C?999:C,j=e.maxLength,S=void 0===j?void 0:j,_=e.className,P=e.style,A=e.natural,I=void 0!==A&&A,M=e.inputStyle,T=h(e,s),z=d(Object(o.useState)(i),2),R=z[0],N=z[1],L=!!e.onChange,F=S||("number"===g?3:void 0);Object(o.useEffect)((function(){L||N(i)}),[i]);var D=function(t){L?e.onChange(t.target.value,n):N(t.target.value,n)},B=function(t){m&&"Enter"===event.key&&(t.preventDefault(),e.onEnter(t.target.value,n))},U=function(t){e.onBlur&&i!==t.target.value&&e.onBlur(t.target.value,n)},H="neko-input ".concat(I?" natural":"");return a.a.createElement("div",{className:[_].join(" "),style:P},"number"===g?a.a.createElement("input",f({className:[H].join(" ")},T,{id:n,name:t,value:L?i:R,type:g,step:x,min:k,max:E,maxLength:F,autoComplete:"off",placeholder:u,style:M,onChange:D,onKeyPress:B,onBlur:U,readOnly:v})):a.a.createElement("input",f({className:[H].join(" ")},T,{id:n,name:t,value:L?i:R,type:g,spellCheck:"false",autoComplete:"off",placeholder:u,style:M,maxLength:F,onChange:D,onKeyPress:B,onBlur:U,readOnly:v})),l&&a.a.createElement("p",{className:"neko-input-description"},l))}))(r||(m=["\n .neko-input {\n font-family: ",";\n font-size: ",";\n border: 2px solid ",";\n box-sizing: border-box;\n height: 30px;\n background: rgb(0 124 186 / 10%);\n padding: 0 10px;\n width: 100%;\n\n &.natural {\n border-color: gray;\n border-width: 1px;\n }\n\n &::placeholder {\n color: rgba(0, 0, 0, 0.25);\n }\n\n :focus {\n background-color: white;\n }\n\n :read-only {\n background-color: ",";\n }\n }\n\n .neko-input-description {\n font-family: ",";\n font-size: ",";\n line-height: 14px;\n margin-top: 8px;\n margin-bottom: 0;\n }\n"],b||(b=m.slice(0)),r=Object.freeze(Object.defineProperties(m,{raw:{value:Object.freeze(b)}}))),u.a.fontFamily,u.a.fontSizeText,u.a.blue,u.a.gray,u.a.fontFamily,u.a.fontSizeSmall),y=function(e){return a.a.createElement(v,e)};y.propTypes={id:l.a.string,type:l.a.oneOf(["number","text"]),name:l.a.string,value:l.a.string,description:l.a.string,placeholder:l.a.string,onChange:l.a.func,onEnter:l.a.func,onBlur:l.a.func,readOnly:l.a.bool,step:l.a.number,min:l.a.number,max:l.a.number,maxLength:l.a.number,natural:l.a.bool},y.defaultProps={id:void 0,type:"text",name:void 0,value:"",description:void 0,placeholder:"",onChange:void 0,onEnter:void 0,onBlur:void 0,readOnly:!1,step:1,min:1,max:999,maxLength:void 0,natural:!1}},function(e,n,t){"use strict";t.d(n,"a",(function(){return s}));var r,o=t(0),a=t.n(o);t(2);var i,l,c=t(4).a.div(r||(i=["\n display: flex;\n width: 100%;\n height: 100%;\n max-width: 128px;\n max-height: 128px;\n\n & > * {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n"],l||(l=i.slice(0)),r=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(l)}})))),u=function(){return a.a.createElement(c,null,a.a.createElement("svg",{width:"54",height:"38",viewBox:"0 0 54 38",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:"M11.3663 9.40518C9.2981 -3.25522 -0.310763 2.76769 2.5163 9.40518C2.5163 9.40518 8.29338 29.9322 22.3059 26.3677C36.3184 22.8031 23.9038 19.1156 23.9038 19.1156C23.9038 19.1156 13.4345 22.0656 11.3663 9.40518Z",fill:"#724024",stroke:"black",strokeWidth:"2.1869"}),a.a.createElement("path",{d:"M10.7517 8.0531C10.0142 10.7573 6.32673 12.1093 3.99131 11.2489C1.65589 10.3885 2.63923 13.8302 5.09756 14.9364C7.55589 16.0427 11.2434 14.1989 12.1038 12.4781C12.9642 10.7573 11.4892 5.34893 10.7517 8.0531Z",fill:"#B7782E"}),a.a.createElement("path",{d:"M14.0705 17.2718C13.8246 19.2385 9.64547 19.976 7.55589 19.8531C5.46631 19.7302 9.76839 23.5406 11.3663 23.5406C12.9642 23.5406 17.3892 21.2052 17.1434 19.2385C16.8976 17.2718 14.3163 15.3052 14.0705 17.2718Z",fill:"#B7782E"}),a.a.createElement("path",{d:"M17.5121 26.2448C18.6184 25.3843 20.9538 21.8198 19.8476 19.8531C18.7413 17.8864 22.4288 20.9593 22.4288 20.9593L21.6913 26.2448C21.6913 26.2448 16.4059 27.1052 17.5121 26.2448Z",fill:"#B7782E"}),a.a.createElement("path",{d:"M10.7517 8.0531C10.0142 10.7573 6.32673 12.1093 3.99131 11.2489C1.65589 10.3885 2.63923 13.8302 5.09756 14.9364C7.55589 16.0427 11.2434 14.1989 12.1038 12.4781C12.9642 10.7573 11.4892 5.34893 10.7517 8.0531Z",stroke:"black"}),a.a.createElement("path",{d:"M14.0705 17.2718C13.8246 19.2385 9.64547 19.976 7.55589 19.8531C5.46631 19.7302 9.76839 23.5406 11.3663 23.5406C12.9642 23.5406 17.3892 21.2052 17.1434 19.2385C16.8976 17.2718 14.3163 15.3052 14.0705 17.2718Z",stroke:"black"}),a.a.createElement("path",{d:"M17.5121 26.2448C18.6184 25.3843 20.9538 21.8198 19.8476 19.8531C18.7413 17.8864 22.4288 20.9593 22.4288 20.9593L21.6913 26.2448C21.6913 26.2448 16.4059 27.1052 17.5121 26.2448Z",stroke:"black"}),a.a.createElement("path",{d:"M11.3663 9.40518C9.2981 -3.25522 -0.310763 2.76769 2.5163 9.40518C2.5163 9.40518 8.29338 29.9322 22.3059 26.3677C36.3184 22.8031 23.658 19.4843 23.658 19.4843C23.658 19.4843 13.4345 22.0656 11.3663 9.40518Z",stroke:"black",strokeWidth:"2.1869"}),a.a.createElement("path",{d:"M25.3788 9.89685C25.3788 9.89685 21.3225 35.0947 21.9371 35.7093C22.5517 36.3239 27.4684 36.3239 28.083 35.7093C28.6975 35.0947 29.6523 22.5858 30.2955 21.9427C30.9386 21.2995 35.7226 33.1281 36.81 33.1281C37.8975 33.1281 43.2303 21.3567 43.8163 21.9427C44.4023 22.5287 45.2913 35.0947 45.9059 35.7093C46.5204 36.3239 51.3142 36.3239 51.9288 35.7093C52.5434 35.0947 48.9788 9.89685 48.9788 9.89685H42.9559C42.9559 9.89685 37.7934 21.9427 36.81 21.9427C35.8267 21.9427 31.4017 9.89685 31.4017 9.89685H25.3788Z",fill:"white",stroke:"black",strokeWidth:"2.1869"})))},s=function(e){return a.a.createElement(u,e)};s.propTypes={},s.defaultProps={}},function(e,n,t){"use strict";t.d(n,"a",(function(){return E}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(5),s=t(26),f=t.n(s),d=t(28),p=t.n(d),h=t(27),m=t.n(h),b=t(13),v=t.n(b),y=t(3);function g(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return w(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return w(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var x,O,k=c.a.div(r||(x=["\n align-items: center;\n display: flex;\n\n .neko-paging-text {\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 15px;\n line-height: 14px;\n }\n\n .neko-paging-controller {\n box-sizing: border-box;\n height: 30px;\n align-items: center;\n background-color: rgba(",", 0.8);\n border-radius: 15px;\n display: flex;\n margin-left: 15px;\n padding: 3px 5px;\n\n .nako-paging-controller-icon {\n background-color: ",";\n border-radius: 100%;\n cursor: pointer;\n margin-right: 2px;\n height: 22px;\n width: 22px;\n box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);\n transition: transform 0.1s ease-in;\n box-sizing: border-box;\n\n :last-child {\n margin-right: 0;\n }\n\n &.disabled {\n color: ",";\n cursor: default;\n pointer-events: none;\n }\n\n &:hover {\n transform: scale(1.2) !important;\n z-index: 10;\n position: relative;\n }\n }\n\n .nako-paging-controller-text {\n color: ",";\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n margin: 0 40px;\n user-select: none;\n }\n\n span.neko-paging-current-page {\n cursor: pointer;\n text-decoration: underline;\n }\n input.neko-paging-current-page {\n width: 1.5rem;\n }\n }\n\n &.neko-paging-full {\n flex-grow: 1;\n\n .neko-paging-controller {\n flex-grow: 1;\n }\n .nako-paging-controller-text {\n margin: 0 auto;\n }\n }\n"],O||(O=x.slice(0)),r=Object.freeze(Object.defineProperties(x,{raw:{value:Object.freeze(O)}}))),y.a.fontFamily,y.a.blueRGB,y.a.white,y.a.darkGray,y.a.white,y.a.fontFamily),C=function(e){var n=e.currentPage,t=e.limit,r=e.onClick,i=e.total,l=e.onCurrentPageChanged,c=e.full,s=!!l,d=Math.ceil(0===i?1:t>0?i/t:1),h="nako-paging-controller-icon ".concat(1===n?"disabled":""),b="nako-paging-controller-icon ".concat(n===d?"disabled":""),y=g(Object(o.useState)(!1),2),w=y[0],x=y[1],O=c?"neko-paging-full":"",C=function(e){x(!1),r(e)},E=function(e){var n=Number(e);return n>d?d:n<1?1:n},j=function(e){var n=e.target.value;isNaN(n)||l(E(n)),x(!1)},S=function(e){if("Enter"===event.key){e.preventDefault();var n=e.target.value;isNaN(n)||l(E(n)),x(!1)}},_=Object(o.useMemo)((function(){if(!w){return a.a.createElement("span",{className:s?"neko-paging-current-page":"",onClick:function(){s&&x(!0)}},n)}return a.a.createElement("input",{autoFocus:!0,type:"text",className:s?"neko-paging-current-page":"",defaultValue:n,onBlur:j,onKeyPress:S})}),[n,w,l]),P=function(e){w&&e.target===e.currentTarget&&x(!1)};return a.a.createElement(k,{className:O},a.a.createElement("span",{className:"neko-paging-text"},i," result",i>0?"s":""),a.a.createElement("div",{className:"neko-paging-controller",onClick:P},a.a.createElement(u.Icon,{icon:f.a,className:h,onClick:function(){return C(1)}}),a.a.createElement(u.Icon,{icon:p.a,className:h,onClick:function(){return C(n-1)}}),a.a.createElement("p",{className:"nako-paging-controller-text",onClick:P},"Page ",_," of ",d),a.a.createElement(u.Icon,{icon:v.a,className:b,onClick:function(){return C(n+1)}}),a.a.createElement(u.Icon,{icon:m.a,className:b,onClick:function(){return C(d)}})))},E=function(e){return a.a.createElement(C,e)};E.propTypes={currentPage:l.a.number,limit:l.a.number,total:l.a.number,onClick:l.a.func},E.defaultProps={currentPage:void 0,limit:void 0,total:void 0,onClick:void 0}},function(e,n,t){"use strict";t.d(n,"a",(function(){return x}));var r,o,a=t(0),i=t.n(a),l=t(2),c=t.n(l),u=t(106),s=t.n(u),f=t(4),d=t(3),p=t(11),h=["id","isOpen","children","className","style","ok","cancel","customButtons","customButtonsPosition","title","content","onOkClick","onCancelClick","okOnEnter","thumbnail"];function m(){return(m=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function b(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function v(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var y=f.a.div(r||(r=v(["\n\n .ReactModal__Overlay {\n z-index: 100;\n display: flex;\n justify-content: center;\n flex-direction: column;\n align-items: center;\n background: "," !important;\n }\n .ReactModal__Overlay {\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n }\n .ReactModal__Overlay--after-open {\n opacity: 1;\n }\n .ReactModal__Overlay--before-close {\n opacity: 0;\n }\n .ReactModal__Overlay .neko-modal {\n opacity: 0;\n transform: scale(0.85);\n transition: all 200ms ease-in-out;\n }\n .ReactModal__Overlay--after-open .neko-modal {\n transform: scale(1);\n opacity: 1;\n }\n .ReactModal__Overlay--before-close .neko-modal {\n transform: scale(0.85);\n opacity: 0;\n }\n .neko-modal {\n background: ",";\n position: relative;\n box-shadow: 2px 2px 15px 2px rgba(0, 0, 0, 0.8);\n outline: none;\n padding: 15px;\n max-width: 820px;\n }\n"])),d.a.overlay,d.a.white),g=f.a.div(o||(o=v(["\n width: 518px;\n\n p {\n margin: 0;\n }\n .title {\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 18px;\n line-height: 22px;\n }\n .content-container {\n display: flex;\n margin-top: 15px;\n\n .thumbnail {\n margin-right: 15px;\n width: 240px;\n overflow: hidden;\n\n img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n }\n .content {\n flex: auto;\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n line-height: 14px;\n width: 100%;\n }\n }\n .button-group {\n align-items: center;\n display: flex;\n justify-content: flex-end;\n margin-top: 15px;\n }\n"])),d.a.fontFamily,d.a.fontFamily),w=function(e){var n=e.id,t=void 0===n?"neko-modal-parent":n,r=e.isOpen,o=e.children,l=e.className,c=e.style,u=e.ok,f=void 0===u?"OK":u,d=e.cancel,v=void 0===d?"Cancel":d,w=e.customButtons,x=void 0===w?null:w,O=e.customButtonsPosition,k=void 0===O?"right":O,C=e.title,E=void 0===C?"":C,j=e.content,S=void 0===j?"":j,_=e.onOkClick,P=e.onCancelClick,A=e.okOnEnter,I=void 0!==A&&A,M=e.thumbnail,T=b(e,h),z=c?"custom-modal":"",R=null!==x,N=Object(a.useCallback)((function(e){"Enter"===e.key&&_()}),[_]);Object(a.useEffect)((function(){if(I&&r)return window.addEventListener("keyup",N),function(){window.removeEventListener("keyup",N)}}),[r,N]);var L=o||i.a.createElement(g,null,E&&i.a.createElement("p",{className:"title"},E),i.a.createElement("div",{className:"content-container"},M&&i.a.createElement("div",{className:"thumbnail"},M),S&&i.a.createElement("p",{className:"content"},S)),i.a.createElement("div",{className:"button-group"},R&&"left"===k&&x,P&&i.a.createElement(p.a,{className:"danger",onClick:P},v),_&&i.a.createElement(p.a,{onClick:_},f),R&&"right"===k&&x));return i.a.createElement(i.a.Fragment,null,i.a.createElement(y,{id:t}),i.a.createElement(s.a,m({ariaHideApp:!1,parentSelector:function(){return document.getElementById(t)},closeTimeoutMS:200,className:"neko-modal ".concat(l||""," ").concat(z),isOpen:r},T),L))},x=function(e){return i.a.createElement(w,e)};x.propTypes={className:c.a.string,style:c.a.object,ok:c.a.string,cancel:c.a.string,title:c.a.string,content:c.a.string,onOkClick:c.a.func,onCancelClick:c.a.func,customButtons:c.a.object,okOnEnter:c.a.bool,thumbnail:c.a.element},x.defaultProps={className:void 0,style:void 0,ok:"OK",cancel:"Cancel",title:"",content:"",onOkClick:void 0,onCancelClick:void 0,customButtons:null,okOnEnter:!1,thumbnail:void 0}},function(e,n,t){"use strict";var r=t(71),o=t.n(r),a=t(72),i=t.n(a),l=t(73),c=t.n(l),u=t(26),s=t.n(u),f=t(27),d=t.n(f),p=t(28),h=t.n(p),m=t(13),b=t.n(m),v=t(9),y=t.n(v),g=t(17),w=t.n(g),x=t(29),O=t.n(x),k=t(30),C=t.n(k),E=t(74),j=t.n(E),S=t(75),_=t.n(S),P=t(31),A=t.n(P),I=t(76),M=t.n(I),T=t(77),z=t.n(T),R=t(78),N=t.n(R),L=t(79),F=t.n(L),D=(t(111),t(80)),B=t.n(D),U=t(81),H=t.n(U),q=t(82),V=t.n(q),$=t(83),W=t.n($),G=t(84),Y=t.n(G),K=t(85),J=t.n(K),X=t(86),Z=t.n(X),Q=t(87),ee=t.n(Q),ne=t(18),te=t.n(ne),re=t(32),oe=t.n(re),ae=t(33),ie=t.n(ae),le=t(88),ce=t.n(le),ue=t(89),se=t.n(ue),fe=t(90),de=t.n(fe),pe=t(91),he=t.n(pe),me=t(92),be=t.n(me),ve=t(93),ye=t.n(ve),ge=t(94),we=t.n(ge),xe=t(95),Oe=t.n(xe),ke=t(96),Ce=t.n(ke),Ee=t(97),je=t.n(Ee),Se=t(98),_e=t.n(Se),Pe={lock:o.a,"lock-open":i.a,"file-undo":c.a,"chevron-double-left":s.a,"chevron-double-right":d.a,"chevron-left":h.a,"chevron-right":b.a,"chevron-down":y.a,"chevron-up":w.a,pause:O.a,play:C.a,replay:j.a,check:_.a,stop:A.a,delete:M.a,undo:z.a,alert:N.a,database:F.a,tools:B.a,cog:H.a,close:V.a,cat:W.a,upload:_e.a,trash:Y.a,pencil:J.a,dashboard:Z.a,search:ee.a,folder:te.a,"folder-open":oe.a,"image-multiple-outline":ie.a,plus:ce.a,"folder-plus":se.a,"image-plus":de.a,"view-grid":he.a,"format-list-bulleted":be.a,twitter:ye.a,instagram:we.a,facebook:Oe.a,star:Ce.a,"timer-outline":je.a};n.a=Pe},function(e,n){n.__esModule=!0,n.default={body:'<path d="M18.41 7.41L17 6l-6 6l6 6l1.41-1.41L13.83 12l4.58-4.59m-6 0L11 6l-6 6l6 6l1.41-1.41L7.83 12l4.58-4.59z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M5.59 7.41L7 6l6 6l-6 6l-1.41-1.41L10.17 12L5.59 7.41m6 0L13 6l6 6l-6 6l-1.41-1.41L16.17 12l-4.58-4.59z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M15.41 16.58L10.83 12l4.58-4.59L14 6l-6 6l6 6l1.41-1.42z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M14 19h4V5h-4M6 19h4V5H6v14z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M8 5.14v14l11-7l-11-7z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M18 18H6V6h12v12z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M19 20H4a2 2 0 0 1-2-2V6c0-1.11.89-2 2-2h6l2 2h7a2 2 0 0 1 2 2H4v10l2.14-8h17.07l-2.28 8.5c-.23.87-1.01 1.5-1.93 1.5z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M21 17H7V3h14m0-2H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2M3 5H1v16a2 2 0 0 0 2 2h16v-2H3m12.96-10.71l-2.75 3.54l-1.96-2.36L8.5 15h11l-3.54-4.71z" fill="currentColor"/>',width:24,height:24}},function(e,n,t){"use strict";e.exports=t(113)},function(e,n){n.__esModule=!0,n.default={body:'<path d="M19 3H5c-1.11 0-2 .89-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m0 2v14H5V5h14z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M10 17l-5-5l1.41-1.42L10 14.17l7.59-7.59L19 8m0-5H5c-1.11 0-2 .89-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2z" fill="currentColor"/>',width:24,height:24}},function(e,n,t){"use strict";var r,o,a,i,l=t(0),c=t.n(l),u=t(2),s=t.n(u),f=t(4),d=t(6),p=t(3),h=t(8),m=t(5),b=t(9),v=t.n(b),y=t(7);function g(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return w(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return w(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function x(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var O=f.a.div(r||(r=x(["\n display: inline-block;\n"]))),k=f.a.button(o||(o=x(["\n align-items: center;\n background-color: ",";\n border: none;\n border-radius: 4px;\n box-sizing: border-box;\n color: white;\n display: inline-flex;\n justify-content: space-between;\n font-family: ",";\n font-size: ",";\n height: 30px;\n min-width: 6em;\n padding: 0px 10px;\n text-align: center;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ",";\n }\n\n :disabled {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n & + button {\n margin-left: .25rem;\n }\n"])),p.a.blue,p.a.fontFamily,p.a.fontSizeText,Object(d.a)(.1,p.a.blue)),C=f.a.div(a||(a=x(["\n position: relative;\n display: block;\n margin-top: 18px;\n background-color: ",";\n position: absolute;\n z-index: 10;\n box-shadow: ",';\n\n &:before {\n content: "";\n position: absolute;\n top: -18px;\n left: 50%;\n margin-left: -8px;\n border: 8px solid transparent;\n border-bottom: 10px solid ',";\n }\n"])),p.a.blue,p.a.lightShadow,p.a.blue),E=function(e){var n=e.title,t=e.disabled,r=void 0!==t&&t,o=e.isPro,a=void 0!==o&&o,i=e.style,l=void 0===i?{}:i,u=g(c.a.useState(!1),2),s=u[0],f=u[1],d=Object(y.e)((function(){f(!1)})),p=Object(y.a)(),h=p.ref,b=p.width,w=function(){f(!s)},x=c.a.Children.map(e.children,(function(e){return c.a.cloneElement(e,{isPro:a,disabled:e.props.disabled||r,onClick:function(){e.props.onClick&&e.props.onClick(),w()}})}));return c.a.createElement(O,{ref:d},c.a.createElement(k,{ref:h,type:"button",disabled:r,onClick:w,style:l},c.a.createElement("span",null,n),c.a.createElement(m.Icon,{icon:v.a,width:"24",height:"24",style:{marginLeft:"4px"}})),s&&c.a.createElement(C,{style:{transform:"translateX(calc(-50% + ".concat(b/2,"px))")}},x))},j=f.a.button(i||(i=x(["\n align-items: center;\n background-color: ",";\n border: none;\n box-sizing: border-box;\n color: white;\n display: flex;\n font-family: ",";\n font-size: ",";\n width: 100%;\n padding: 8px 15px 8px 15px;\n text-align: center;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ",";\n }\n\n :disabled:not(.is-pro) {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n &.is-pro {\n background-color: ",";\n justify-content: space-between;\n }\n"])),p.a.blue,p.a.fontFamily,p.a.fontSizeText,Object(d.a)(.1,p.a.blue),p.a.proGray),S=function(e){var n=e.onClick,t=e.children,r=e.isPro,o=e.requirePro,a=void 0!==o&&o,i=e.disabled,l=a&&!r;return c.a.createElement(j,{type:"button",className:l?"is-pro":"",onClick:n,disabled:i||l},c.a.createElement("span",null,t),l&&!r&&c.a.createElement(h.a,null))},_=function(e){return c.a.createElement(E,e)},P=function(e){return c.a.createElement(S,e)};_.propTypes={title:s.a.string,disabled:s.a.bool,isPro:s.a.bool},_.defaultProps={title:void 0,disabled:!1,isPro:!1},P.propTypes={onClick:s.a.func.isRequired,requirePro:s.a.bool},P.defaultProps={onClick:function(){},requirePro:!1}},function(e,n,t){"use strict";t.d(n,"b",(function(){return y})),t.d(n,"a",(function(){return g}));var r,o,a=t(0),i=t.n(a),l=t(2),c=t.n(l),u=t(4),s=["full","minimal"];function f(){return(f=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function d(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function p(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var h=u.a.div(r||(r=p(["\n display: flex;\n flex-wrap: wrap;\n"]))),m=u.a.div(o||(o=p(["\n flex: 1;\n padding: 32px 30px;\n\n .nui-block:not(:first-child) {\n margin-top: -20px;\n }\n\n .nui-block:last-child {\n margin-bottom: 0px;\n }\n\n &.minimal {\n padding: 0;\n }\n\n &.full {\n flex-basis: 100%;\n padding-bottom: 0;\n }\n\n & + .full {\n padding-bottom: 32px;\n padding-top: 0;\n }\n\n &:not(.full) + div:not(.full) {\n padding-left: 0;\n }\n"]))),b=function(e){return i.a.createElement(h,null,e.children)},v=function(e){var n=e.full,t=e.minimal,r=d(e,s),o=n?"full":"";return o+=t?" minimal":"",i.a.createElement(m,f({className:o},r),e.children)},y=function(e){return i.a.createElement(b,e)},g=function(e){return i.a.createElement(v,e)};y.propTypes={},y.defaultProps={},g.propTypes={full:c.a.any},g.defaultProps={full:void 0}},function(e,n,t){"use strict";t.d(n,"b",(function(){return q})),t.d(n,"a",(function(){return V}));var r,o,a,i,l,c,u,s=t(0),f=t.n(s),d=t(2),p=t.n(d),h=t(4),m=t(3),b=t(8),v=t(7),y=t(5),g=t(102),w=t.n(g),x=t(103),O=t.n(x),k=t(9),C=t.n(k),E=t(17),j=t.n(E),S=t(10),_=["id","name","value","scrolldown","isPro","onChange","className"];function P(){return(P=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function A(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return I(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return I(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function M(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function T(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var z=h.a.div(r||(r=T(["\n border-radius: 8px;\n position: relative;\n user-select: none;\n cursor: pointer;\n\n &.show-options {\n background-color: ",";\n border-radius: 8px 8px 0 0;\n }\n"])),m.a.blue),R=h.a.div(o||(o=T(["\n align-items: center;\n background-color: ",";\n border: 2px solid ",";\n border-radius: 8px;\n display: flex;\n font-family: ",";\n font-size: 14px;\n padding: 0 5px 0 10px;\n box-sizing: border-box;\n height: 30px;\n\n .rightContent {\n align-items: center;\n display: flex;\n margin-left: auto;\n }\n"])),m.a.white,m.a.blue,m.a.fontFamily),N=h.a.div(a||(a=T(["\n display: block;\n margin-top: 5px;\n font-size: 13px;\n line-height: 14px;\n color: #8a8a8a;\n\n * {\n font-size: 13px;\n line-height: inherit;\n margin: 0;\n }\n"]))),L=h.a.div(i||(i=T(["\n border-radius: 8px;\n overflow: hidden;\n padding-top: 28px;\n position: absolute;\n top: 0;\n z-index: 10;\n width: 100%;\n transition: all 0.2s ease-in;\n\n &.hidden {\n opacity: 0;\n }\n"]))),F=h.a.div(l||(l=T(["\n background-color: ",";\n"])),m.a.white),D=function(e){var n,t=e.id,r=e.name,o=e.value,a=e.scrolldown,i=void 0!==a&&a,l=e.isPro,c=void 0!==l&&l,u=e.onChange,d=e.className,p=M(e,_),h=null===(n=f.a.Children.toArray(e.children).find((function(e){return e.props.value===o||e.props.checked})))||void 0===n?void 0:n.props,m=(null==h?void 0:h.label)||"Select",g=(null==h?void 0:h.description)||e.description,w=(null==h?void 0:h.requirePro)||!1,x=null==h?void 0:h.icon,O=A(Object(s.useState)(!1),2),k=O[0],E=O[1],I=i?Object(v.e)((function(){E(!1)})):null,T=w&&!c,D=function(n){if(n!==o){if(!u)return void console.log("The onChange handler it not set for this checkbox.",e);u(n,t)}i&&E(!1)},B=f.a.Children.map(e.children,(function(e){return f.a.cloneElement(e,{name:e.props.name||r,checked:e.props.value===o||e.props.checked,onClick:D,scrolldown:i,isPro:c})}));return i?f.a.createElement(z,P({id:t,ref:I},p,{onClick:function(){return E(!k)},className:["nui-select",d,k?"show-options":""],childrenLength:B.length}),f.a.createElement(R,null,x&&f.a.createElement(S.a,{icon:x,width:20,height:20,style:{marginRight:"9px"}}),m,f.a.createElement("div",{className:"rightContent"},T&&f.a.createElement(b.a,null),f.a.createElement(y.Icon,{icon:k?j.a:C.a,width:"24"}))),g&&f.a.createElement(N,null,g),k&&f.a.createElement(L,{className:"nui-option ".concat(k?"":"hidden")},f.a.createElement(F,null,[B]))):B},B=h.a.div(c||(c=T(["\n font-family: ",";\n margin-bottom: 6px;\n\n input {\n display: none;\n }\n\n label {\n cursor: pointer;\n display: flex;\n }\n\n .inner-container {\n margin-left: 4px;\n\n .label {\n display: block;\n font-size: 14px;\n line-height: 17px;\n padding-top: 4.5px;\n padding-bottom: 4px;\n }\n .description {\n display: block;\n font-size: 12px;\n }\n }\n\n &.disabled {\n color: ",";\n\n label {\n cursor: default;\n }\n }\n"])),m.a.fontFamily,m.a.disabledForm),U=h.a.div(u||(u=T(["\n background-color: ",";\n cursor: pointer;\n font-family: ",";\n\n &:hover {\n filter: brightness(80%);\n }\n\n input {\n display: none;\n }\n\n .option {\n align-items: center;\n color: ",";\n display: flex;\n justify-content: space-between;\n font-family: ",";\n font-size: 14px;\n line-height: 17px;\n padding: 8px 12px;\n\n .option-group {\n align-items: center;\n display: flex;\n }\n }\n\n &.disabled {\n background-color: rgb(224 156 54);\n pointer-events: none;\n\n .option {\n color: rgb(255 255 255 / 35%);\n }\n }\n"])),m.a.blue,m.a.fontFamily,m.a.white,m.a.fontFamily),H=function(e){var n=e.id,t=e.name,r=e.value,o=e.checked,a=e.icon,i=e.label,l=e.description,c=e.onClick,u=e.scrolldown,s=e.isPro,d=void 0!==s&&s,p=e.requirePro,h=void 0!==p&&p&&!d,v=h?"disabled":"",g=f.a.createElement(B,{className:"nui-select ".concat(e.className||""," ").concat(v)},f.a.createElement("input",{id:n,name:t,type:"radio",value:r,defaultChecked:o,onClick:function(e){return c(e.target.value)},disabled:h}),f.a.createElement("label",{htmlFor:n},f.a.createElement(y.Icon,{icon:o?O.a:w.a,width:"24px",color:h?m.a.disabledForm:m.a.blue}),f.a.createElement("div",{className:"inner-container"},f.a.createElement("span",{className:"label"},i,f.a.createElement(b.a,{className:"inline",style:{top:-1},show:h})),l?f.a.createElement("small",{className:"description"},l):null))),x=f.a.createElement(U,{className:"nui-select ".concat(e.className||""," ").concat(v)},f.a.createElement("input",{id:n,name:t,type:"radio",value:r,defaultChecked:o,disabled:h}),f.a.createElement("div",{className:"option",onClick:function(){return c(r)}},f.a.createElement("div",{className:"option-group"},a&&f.a.createElement(S.a,{icon:a,width:20,height:20,style:{marginRight:"9px"}}),i),f.a.createElement(b.a,{show:h})));return u?x:g},q=function(e){return f.a.createElement(D,e)};q.propTypes={id:p.a.string,name:p.a.string,description:p.a.string,scrolldown:p.a.bool,isPro:p.a.bool,onChange:p.a.func},q.propTypes={id:void 0,name:void 0,description:void 0,scrolldown:!1,isPro:!1,onChange:void 0};var V=function(e){return f.a.createElement(H,e)};V.propTypes={id:p.a.string,name:p.a.string,value:p.a.string,checked:p.a.bool,label:p.a.string,description:p.a.string,onClick:p.a.func,scrolldown:p.a.bool,isPro:p.a.bool,requirePro:p.a.bool,icon:p.a.string},V.defaultProps={id:void 0,name:void 0,value:void 0,checked:!1,label:void 0,description:void 0,onClick:void 0,scrolldown:!1,isPro:!1,requirePro:!1,icon:void 0}},function(e,n,t){"use strict";var r,o,a,i,l,c,u=t(0),s=t.n(u),f=t(2),d=t.n(f),p=t(4),h=t(3),m=t(5),b=t(18),v=t.n(b),y=t(32),g=t.n(y),w=t(33),x=t.n(w),O=t(13),k=t.n(O),C=t(9),E=t.n(C),j=t(104),S=t.n(j);function _(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return P(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return P(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function A(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var I=function(e){var n=e.chevron,t=void 0===n||n;return s.a.Children.map(e.children,(function(e){return s.a.cloneElement(e,{chevron:t})}))},M=p.a.div(r||(r=A(["\n align-items: center;\n display: flex;\n justify-content: space-between;\n margin-bottom: 5px;\n font-family: Lato;\n"]))),T=p.a.div(o||(o=A(["\n align-items: center;\n display: flex;\n\n &.can-expand {\n cursor: pointer;\n }\n\n &.selected {\n color: #956DBE;\n }\n\n span {\n font-weight: normal;\n font-size: 13px;\n margin: 0 0 0 8px;\n }\n"]))),z=p.a.div(a||(a=A(["\n height: 24px;\n width: 24px;\n"]))),R=p.a.div(i||(i=A(["\n position: relative;\n width: 24px;\n height: 24px;\n"]))),N=p.a.div(l||(l=A(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 100;\n"]))),L=p.a.div(c||(c=A(["\n border-left: 1px solid ",";\n margin-left: 12px;\n padding-left: 6px;\n\n &.no-line {\n border-left: 0;\n padding-left: 12px;\n }\n\n &.no-chevron {\n border-left: 0;\n margin-left: 0;\n padding-left: 0;\n }\n"])),h.a.finderBorder),F=function(e){var n={gallery:x.a,tag:S.a},t=e.title,r=e.chevron,o=e.rightElement,a=void 0===o?null:o,i=e.rightElementStyle,l=void 0===i?{marginLeft:"5px"}:i,c=e.showRightElement,f=void 0!==c&&c,d=e.selected,p=void 0!==d&&d,b=e.draggable,y=void 0!==b&&b,w=e.onDragStart,O=e.onDragOver,C=e.onDragEnd,j=e.onDrop,P=e.isExpanded,A=void 0!==P&&P,I=e.dragging,F=void 0!==I&&I,D=e.rightAction,B=void 0===D?null:D,U=e.rightActionOnHover,H=void 0===U?null:U,q=e.onDragLeave,V=(e.preventClose,!!e.icon),$=!!e.children,W=_(Object(u.useState)(A),2),G=W[0],Y=W[1],K=_(Object(u.useState)((function(){return"string"==typeof e.icon&&Object.keys(n).includes(e.icon)?n[e.icon]:e.icon?e.icon:v.a})),2),J=K[0],X=K[1],Z=Boolean(J),Q=_(Object(u.useState)(!1),2),ee=Q[0],ne=Q[1];Object(u.useEffect)((function(){Y(A),V||X(A?v.a:g.a)}),[A]);var te=s.a.Children.map(e.children,(function(e){return s.a.cloneElement(e,{chevron:r})})),re=F||p?h.a.purple:p?h.a.black:h.a.blue;return s.a.createElement("div",null,s.a.createElement(M,{onMouseEnter:function(){return ne(!0)},onMouseLeave:function(){return ne(!1)}},s.a.createElement(T,{onClick:function(){e.onClick&&e.onClick()},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,draggable:y,onDragStart:w,onDragOver:O,onDrop:j,className:"".concat(Z||te||e.onClick?"can-expand":""," ").concat(p?"selected":""),onDragLeave:q,onDragEnd:C},r?Z&&$?s.a.createElement(m.Icon,{icon:G?E.a:k.a,width:"24",height:"24",onClick:function(e){e.stopPropagation(),Y(!G)}}):s.a.createElement(z,null):null,s.a.createElement(R,null,s.a.createElement(N,null),s.a.createElement(m.Icon,{icon:J,color:re,width:"24",height:"24"})),s.a.createElement("span",null,t),f&&s.a.createElement("div",{style:l},a)),ee&&H||B),G&&s.a.createElement(L,{className:"".concat(Z?"":"no-line"," ").concat(r?"":"no-chevron")},te))},D=function(e){return s.a.createElement(I,e)};D.propTypes={chevron:d.a.bool},D.defaultProps={chevron:!0};var B=function(e){return s.a.createElement(F,e)};B.propTypes={icon:d.a.oneOfType([d.a.instanceOf(m.IconifyIcon),d.a.oneOf(["gallery"])]),title:d.a.string,isExpanded:d.a.bool},B.defaultProps={icon:v.a,title:void 0,isExpanded:!1}},function(e,n,t){"use strict";t.d(n,"b",(function(){return v})),t.d(n,"a",(function(){return y}));var r,o,a=t(0),i=t.n(a),l=t(2),c=t.n(l),u=t(4),s=t(3),f=t(10);function d(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var p=u.a.div(r||(r=d(["\n display: flex;\n align-items: center;\n"]))),h=u.a.span(o||(o=d(["\n color: ",";\n cursor: pointer;\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n line-height: 17px;\n\n &.is-active {\n cursor: default;\n color: ",';\n font-weight: bold;\n }\n\n &::after {\n content: "|";\n color: ',";\n padding: 0 4px;\n }\n\n &:last-child::after {\n content: none;\n }\n\n span {\n color: ",";\n font-weight: normal;\n margin-left: 4px;\n }\n"])),s.a.blue,s.a.fontFamily,s.a.black,s.a.darkGray,s.a.darkGray),m=function(e){var n=e.id,t=e.value,r=e.onChange,o=e.busy,a=void 0!==o&&o,l=e.className,c=i.a.Children.map(e.children,(function(e,o){return i.a.cloneElement(e,{busy:a,isActive:e.props.value===t,onClick:function(e){e!==t&&r(e,n)}})}));return i.a.createElement(p,{className:l},c)},b=function(e){var n=e.title,t=e.value,r=void 0===t?0:t,o=e.count,a=e.onClick,l=e.busy,c=e.isActive,u=e.className;return i.a.createElement(h,{onClick:function(){return a(r)},className:"".concat(c?"is-active":""," ").concat(u)},n,null===o?null:i.a.createElement("span",null,"(",l?i.a.createElement(f.a,{icon:"replay",spinning:!0,width:12,containerStyle:{display:"inline"}}):o,")"))},v=function(e){return i.a.createElement(m,e)};v.propTypes={id:c.a.string,value:c.a.string,onChange:c.a.func},v.defaultProps={id:void 0,value:void 0,onChange:void 0};var y=function(e){return i.a.createElement(b,e)};y.propTypes={title:c.a.string,value:c.a.string,count:c.a.number,onClick:c.a.func,isActive:c.a.bool},y.defaultProps={title:void 0,value:"default",count:0,onClick:void 0,isActive:!1}},function(e,n,t){"use strict";t.d(n,"a",(function(){return l})),t.d(n,"b",(function(){return c}));var r,o,a=t(4);function i(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var l=a.a.p(r||(r=i(["\n background: #ba341e;\n padding: 20px;\n color: white;\n border-radius: 10px;\n font-size: 15px;\n\n a {\n color: white;\n font-weight: bold;\n }\n"]))),c=a.a.p(o||(o=i(["\n background: #1eba96;\n padding: 20px;\n color: white;\n border-radius: 10px;\n font-size: 15px;\n text-align: center;\n\n a {\n color: white;\n font-weight: bold;\n }\n"])))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.canUseDOM=void 0;var r,o=t(125);var a=((r=o)&&r.__esModule?r:{default:r}).default,i=a.canUseDOM?window.HTMLElement:{};n.canUseDOM=a.canUseDOM;n.default=i},function(e,n,t){"use strict";t.d(n,"a",(function(){return C})),t.d(n,"b",(function(){return k}));var r,o,a,i,l=t(0),c=t.n(l),u=t(2),s=t.n(u),f=t(4),d=t(3),p=t(8);function h(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return m(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return m(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function b(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var v=f.a.div(r||(r=b(["\n"]))),y=f.a.div(o||(o=b(["\n"]))),g=f.a.button(a||(a=b(["\n font-family: ",";\n font-size: ",";\n border-radius: 8px 8px 0px 0px;\n border: 0;\n background-color: #459ad2;\n color: rgb(255 255 255 / 65%);\n\n cursor: pointer;\n line-height: 17px;\n margin-right: 5px;\n text-align: left;\n padding: 10px 15px 10px 15px;\n\n &:focus {\n outline: none;\n }\n\n &.active {\n background-color: ",";\n color: ",";\n }\n\n &.disabled {\n background-color: rgb(224 156 54);\n cursor: default;\n display: inline-flex;\n padding-bottom: 7px;\n }\n"])),d.a.fontFamily,d.a.fontSizeText,d.a.blue,d.a.white),w=f.a.div(i||(i=b(["\n background-color: ",";\n display: none;\n padding: 10px;\n\n &.active {\n display: block;\n }\n"])),d.a.blue),x=function(e){var n=h(c.a.useState(0),2),t=n[0],r=n[1];c.a.useEffect((function(){if(e.keepTabOnReload){var n=new URL(window.location.href).searchParams.get("nekoTab");if(!n)return void r(0);var t=decodeURIComponent(n),o=c.a.Children.toArray(e.children).map((function(e){return e.props.title.replace(" ","")})).indexOf(t);return-1===o?void r(0):void r(o)}r(0)}),[]);var o=c.a.Children.map(e.children,(function(n,t){var r=n.props.title||"Untitled Tab "+(t+1);return{key:n.props.key||"neko-tab-"+r.toLowerCase(),title:r,onClick:n.props.onClick?n.props.onClick:null,requirePro:!e.isPro&&(n.props.requirePro||!1)}})),a=c.a.Children.map(e.children,(function(e,n){return c.a.cloneElement(e,{isActive:n===t})})),i=function(n,t,o){t.requirePro||(r(n),e.onChange&&e.onChange(n,t,o),e.keepTabOnReload&&function(e){if(history.pushState&&e){var n=new URLSearchParams(window.location.search),t=encodeURIComponent(e.replace(" ",""));n.set("nekoTab",t);var r=window.location.protocol+"//"+window.location.host+window.location.pathname+"?"+n.toString();window.history.replaceState({path:r},"",r)}}(t.title))};return c.a.createElement(v,null,c.a.createElement(y,null,o.map((function(e,n){return c.a.createElement(g,{key:e.key,className:"neko-tab-title ".concat(n===t?"active":""," ").concat(e.requirePro?"disabled":""),onClick:function(t){i(n,e,t)}},e.title,c.a.createElement(p.a,{className:"inline",style:{marginLeft:10,marginRight:-5,top:-1},show:e.requirePro}))}))),a)},O=function(e){var n=e.children,t=e.isActive;return c.a.createElement(w,{className:"".concat(t?"active":"")},!!t&&n)},k=function(e){return c.a.createElement(x,e)};k.propTypes={isPro:s.a.bool,onChange:s.a.func},k.defaultProps={isPro:!1,onChange:void 0};var C=function(e){return c.a.createElement(O,e)};C.propTypes={isActive:s.a.bool,requirePro:s.a.bool,title:s.a.string},C.defaultProps={isActive:!1,requirePro:!1,title:void 0}},function(e,n,t){"use strict";var r,o,a,i=t(0),l=t.n(i),c=t(2),u=t.n(c),s=t(4),f=t(3),d=t(8),p=t(5),h=t(9),m=t.n(h),b=t(13),v=t.n(b);function y(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return g(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return g(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function w(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var x=s.a.div(r||(r=w(["\n"]))),O=s.a.div(o||(o=w(["\n align-items: center;\n background-color: ",";\n border: 0;\n cursor: pointer;\n display: flex;\n padding: 2px 3px 2px 19px;\n\n &.disabled {\n background-color: rgba(",", 0.25);\n cursor: default;\n }\n\n p {\n color: ",";\n font-family: ",";\n font-size: 14px;\n line-height: 17px;\n margin: 0;\n }\n\n .neko-side-tab-icon {\n color: ",";\n margin-left: auto;\n height: 36px;\n width: 36px;\n }\n"])),f.a.blue,f.a.yellowRGB,f.a.white,f.a.fontFamily,f.a.white),k=s.a.div(a||(a=w(["\n background-color: ",";\n display: none;\n\n &.active {\n display: block;\n }\n"])),f.a.white),C=function(e){var n=y(l.a.useState(e.activeTabIndex),2),t=n[0],r=n[1],o=l.a.Children.map(e.children,(function(n,t){var r=n.props.title||"Untitled Tab "+(t+1);return{key:n.props.key||"neko-tab-"+r.toLowerCase(),title:r,onClick:n.props.onClick?n.props.onClick:null,requirePro:!e.isPro&&(n.props.requirePro||!1),onDragOver:n.props.onDragOver,onDrop:n.props.onDrop,rightActions:n.props.rightActions||null}})),a=l.a.Children.map(e.children,(function(e,n){return l.a.cloneElement(e,{isActive:n===t})}));return l.a.createElement(x,null,o.map((function(n,o){return l.a.createElement(l.a.Fragment,null,l.a.createElement(O,{key:n.key,className:"".concat(o===t?"active":""," ").concat(n.requirePro?"disabled":""),onClick:function(a){!function(n,o,a){if(!o.requirePro){var i=n===t?null:n;r(i),e.onChange&&e.onChange(i,o,a)}}(o,n,a)},onDragOver:n.onDragOver,onDrop:n.onDrop},l.a.createElement("p",null,l.a.createElement("span",{style:{fontSize:15}},n.title),l.a.createElement(d.a,{className:"inline",show:n.requirePro})),null===n.rightActions?l.a.createElement(p.Icon,{icon:o===t?m.a:v.a,className:"neko-side-tab-icon"}):o===t?l.a.createElement("div",{style:{marginLeft:"auto"}},n.rightActions):l.a.createElement(p.Icon,{icon:v.a,className:"neko-side-tab-icon"})),a[o])})))},E=function(e){var n=e.children,t=e.isActive;return l.a.createElement(k,{className:"".concat(t?"active":"")},n)},j=function(e){return l.a.createElement(C,e)};j.propTypes={isPro:u.a.bool,onChange:u.a.func,activeTabIndex:u.a.number},j.defaultProps={isPro:!1,onChange:void 0,activeTabIndex:null};var S=function(e){return l.a.createElement(E,e)};S.propTypes={isActive:u.a.bool,requirePro:u.a.bool,title:u.a.string,onDragOver:u.a.func,onDrop:u.a.func,rightActions:u.a.element},S.defaultProps={isActive:!1,requirePro:!1,title:void 0,onDragOver:void 0,onDrop:void 0,rightActions:void 0}},function(e,n,t){"use strict";var r=t(34),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function c(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var u=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(n,t,r){if("string"!=typeof t){if(h){var o=p(t);o&&o!==h&&e(n,o,r)}var i=s(t);f&&(i=i.concat(f(t)));for(var l=c(n),m=c(t),b=0;b<i.length;++b){var v=i[b];if(!(a[v]||r&&r[v]||m&&m[v]||l&&l[v])){var y=d(t,v);try{u(n,v,y)}catch(e){}}}}return n}},function(e,n,t){"use strict";function r(e,n,t,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var n=this,t=arguments;return new Promise((function(o,a){var i=e.apply(n,t);function l(e){r(i,o,a,l,c,"next",e)}function c(e){r(i,o,a,l,c,"throw",e)}l(void 0)}))}}function a(e){return(a="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})(e)}function i(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,n){return(l=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function c(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=f(e);if(n){var o=f(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return u(this,t)}}function u(e,n){if(n&&("object"===a(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return s(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(n,"__esModule",{value:!0});var d=t(114),p=t(115),h=t(117),m=function(){},b=new p.TimeoutError,v=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&l(e,n)}(g,e);var n,t,r,u,f,d,v,y=c(g);function g(e){var n,t,r,o,i;if(function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,g),n=y.call(this),Object.defineProperty(s(n),"_carryoverConcurrencyCount",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(s(n),"_isIntervalIgnored",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(s(n),"_intervalCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(s(n),"_intervalCap",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(s(n),"_interval",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(s(n),"_intervalEnd",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(s(n),"_intervalId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(s(n),"_timeoutId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(s(n),"_queue",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(s(n),"_queueClass",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(s(n),"_pendingCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(s(n),"_concurrency",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(s(n),"_isPaused",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(s(n),"_resolveEmpty",{enumerable:!0,configurable:!0,writable:!0,value:m}),Object.defineProperty(s(n),"_resolveIdle",{enumerable:!0,configurable:!0,writable:!0,value:m}),Object.defineProperty(s(n),"_timeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(s(n),"_throwOnTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),!("number"==typeof(e=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:h.default},e)).intervalCap&&e.intervalCap>=1))throw new TypeError("Expected `intervalCap` to be a number from 1 and up, got `".concat(null!==(r=null===(t=e.intervalCap)||void 0===t?void 0:t.toString())&&void 0!==r?r:"","` (").concat(a(e.intervalCap),")"));if(void 0===e.interval||!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError("Expected `interval` to be a finite number >= 0, got `".concat(null!==(i=null===(o=e.interval)||void 0===o?void 0:o.toString())&&void 0!==i?i:"","` (").concat(a(e.interval),")"));return n._carryoverConcurrencyCount=e.carryoverConcurrencyCount,n._isIntervalIgnored=e.intervalCap===1/0||0===e.interval,n._intervalCap=e.intervalCap,n._interval=e.interval,n._queue=new e.queueClass,n._queueClass=e.queueClass,n.concurrency=e.concurrency,n._timeout=e.timeout,n._throwOnTimeout=!0===e.throwOnTimeout,n._isPaused=!1===e.autoStart,n}return n=g,(t=[{key:"_doesIntervalAllowAnother",get:function(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}},{key:"_doesConcurrentAllowAnother",get:function(){return this._pendingCount<this._concurrency}},{key:"_next",value:function(){this._pendingCount--,this._tryToStartAnother()}},{key:"_resolvePromises",value:function(){this._resolveEmpty(),this._resolveEmpty=m,0===this._pendingCount&&(this._resolveIdle(),this._resolveIdle=m,this.emit("idle"))}},{key:"_onResumeInterval",value:function(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}},{key:"_isIntervalPaused",value:function(){var e=this,n=Date.now();if(void 0===this._intervalId){var t=this._intervalEnd-n;if(!(t<0))return void 0===this._timeoutId&&(this._timeoutId=setTimeout((function(){e._onResumeInterval()}),t)),!0;this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0}return!1}},{key:"_tryToStartAnother",value:function(){if(0===this._queue.size)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){var e=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother)return this.emit("active"),this._queue.dequeue()(),e&&this._initializeIntervalIfNeeded(),!0}return!1}},{key:"_initializeIntervalIfNeeded",value:function(){var e=this;this._isIntervalIgnored||void 0!==this._intervalId||(this._intervalId=setInterval((function(){e._onInterval()}),this._interval),this._intervalEnd=Date.now()+this._interval)}},{key:"_onInterval",value:function(){0===this._intervalCount&&0===this._pendingCount&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}},{key:"_processQueue",value:function(){for(;this._tryToStartAnother(););}},{key:"concurrency",get:function(){return this._concurrency},set:function(e){if(!("number"==typeof e&&e>=1))throw new TypeError("Expected `concurrency` to be a number from 1 and up, got `".concat(e,"` (").concat(a(e),")"));this._concurrency=e,this._processQueue()}},{key:"add",value:(v=o(regeneratorRuntime.mark((function e(n){var t,r=this,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>1&&void 0!==a[1]?a[1]:{},e.abrupt("return",new Promise((function(e,a){var i=function(){var i=o(regeneratorRuntime.mark((function o(){var i;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return r._pendingCount++,r._intervalCount++,o.prev=2,i=void 0===r._timeout&&void 0===t.timeout?n():p.default(Promise.resolve(n()),void 0===t.timeout?r._timeout:t.timeout,(function(){(void 0===t.throwOnTimeout?r._throwOnTimeout:t.throwOnTimeout)&&a(b)})),o.t0=e,o.next=7,i;case 7:o.t1=o.sent,(0,o.t0)(o.t1),o.next=14;break;case 11:o.prev=11,o.t2=o.catch(2),a(o.t2);case 14:r._next();case 15:case"end":return o.stop()}}),o,null,[[2,11]])})));return function(){return i.apply(this,arguments)}}();r._queue.enqueue(i,t),r._tryToStartAnother()})));case 2:case"end":return e.stop()}}),e)}))),function(e){return v.apply(this,arguments)})},{key:"addAll",value:(d=o(regeneratorRuntime.mark((function e(n,t){var r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(n.map(function(){var e=o(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r.add(n,t));case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}())));case 1:case"end":return e.stop()}}),e)}))),function(e,n){return d.apply(this,arguments)})},{key:"start",value:function(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}},{key:"pause",value:function(){this._isPaused=!0}},{key:"clear",value:function(){this._queue=new this._queueClass}},{key:"onEmpty",value:(f=o(regeneratorRuntime.mark((function e(){var n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this._queue.size){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",new Promise((function(e){var t=n._resolveEmpty;n._resolveEmpty=function(){t(),e()}})));case 3:case"end":return e.stop()}}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"onIdle",value:(u=o(regeneratorRuntime.mark((function e(){var n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this._pendingCount||0!==this._queue.size){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",new Promise((function(e){var t=n._resolveIdle;n._resolveIdle=function(){t(),e()}})));case 3:case"end":return e.stop()}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"size",get:function(){return this._queue.size}},{key:"sizeBy",value:function(e){return this._queue.filter(e).length}},{key:"pending",get:function(){return this._pendingCount}},{key:"isPaused",get:function(){return this._isPaused}},{key:"timeout",get:function(){return this._timeout},set:function(e){this._timeout=e}}])&&i(n.prototype,t),r&&i(n,r),g}(d);n.default=v},function(e,n,t){"use strict";var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=function(e){var n={};return function(t){return void 0===n[t]&&(n[t]=e(t)),n[t]}}((function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));n.a=o},function(e,n,t){"use strict";t.d(n,"a",(function(){return v}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(11);function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||f(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,n){if(e){if("string"==typeof e)return d(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?d(e,n):void 0}}function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var p,h,m=c.a.div(r||(p=["\n position: relative;\n background: #f1f1f1;\n margin-left: -20px;\n background-color: rgb(30 124 186 / 10%);\n padding-bottom: 50px;\n margin-bottom: -26px;\n\n .neko-rest-error {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: #1e232deb;\n z-index: 100;\n\n .container {\n color: white;\n padding: 5px 20px 15px 20px;\n min-width: 480px;\n max-width: 600px;\n border-radius: 20px;\n background: #883131;\n margin-left: 50%;\n transform: translateX(-50%);\n margin-top: 100px;\n\n h3 {\n color: white;\n }\n\n .neko-debug {\n padding: 5px 10px;\n background: #692426;\n border-radius: 10px;\n\n * {\n margin: 0px;\n padding: 0px;\n } \n }\n }\n }\n"],h||(h=p.slice(0)),r=Object.freeze(Object.defineProperties(p,{raw:{value:Object.freeze(h)}})))),b=function(e){var n=e.className,t=e.children,r=e.nekoErrors,i=void 0===r?[]:r,l=e.style,c=void 0===l?{}:l,d=s(Object(o.useState)(!1),2),p=d[0],h=d[1],b=s(Object(o.useState)(!1),2),v=b[0],y=b[1];if(i&&!p){var g,w=function(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=f(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(l)throw a}}}}(i);try{for(w.s();!(g=w.n()).done;){var x=g.value;if(x){h(x);break}}}catch(e){w.e(e)}finally{w.f()}}return a.a.createElement(m,{className:n||"",style:c},p&&a.a.createElement("div",{className:"neko-rest-error"},a.a.createElement("div",{className:"container"},!v&&a.a.createElement(a.a.Fragment,null,a.a.createElement("h3",null,"The Rest API is disabled or broken 😢"),a.a.createElement("p",null,"The Rest API is required for this plugin to work. It is enabled in WordPress by default since December 2016 and used by the Gutenberg Editor since 2019. In short, it allows more robustness and a much cleaner infrastructure. Soon, Wordpress will entirely depends on it, so it is important to keep it enabled."),a.a.createElement("p",null,a.a.createElement("i",null,"Last but not least: check your PHP Error Logs and your Debugging Console.")),a.a.createElement("p",{className:"neko-debug"},a.a.createElement("small",null,"URL: ",p.url,a.a.createElement("br",null),"CODE: ",p.code,a.a.createElement("br",null),"MESSAGE: ",p.message,a.a.createElement("br",null)))),p.body&&v&&a.a.createElement("p",{className:"neko-debug"},a.a.createElement("div",{dangerouslySetInnerHTML:{__html:p.body}})),p.body&&a.a.createElement(u.a,{color:"#a94242",onClick:function(){return y(!v)}},v?"Hide":"Display"," response from server"),a.a.createElement(u.a,{color:"#a94242",onClick:function(){window.open("https://meowapps.com/fix-wordpress-rest-api/","_blank")}},"Learn about WordPress Debugging"))),t)},v=function(e){return a.a.createElement(b,e)};v.propTypes={className:l.a.string,style:l.a.object,nekoErrors:l.a.bool},v.defaultProps={className:void 0,style:{},nekoErrors:!1}},function(e,n,t){"use strict";t.d(n,"a",(function(){return b}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(3),s=t(16),f=t(14);var d,p,h=c.a.div(r||(d=["\n font-size: ",";\n margin-bottom: 15px;\n \n .nui-block-title {\n color: ",";\n padding: 5px 10px;\n margin-bottom: 5px;\n }\n\n .nui-block-content {\n background-color: #f1f1f1;\n padding: 26px;\n box-shadow: 0px 2px 5px 0px #0000004a;\n border-radius: 10px;\n\n p:first-child {\n margin-top: 0;\n }\n\n p:last-child {\n margin-bottom: 0;\n }\n }\n\n &.primary {\n padding: 8px;\n background-color: ",";\n\n .nui-block-title {\n color: ",";\n }\n\n .nui-block-content {\n background-color: ",";\n }\n }\n"],p||(p=d.slice(0)),r=Object.freeze(Object.defineProperties(d,{raw:{value:Object.freeze(p)}}))),u.a.fontSizeText,u.a.blue,u.a.blue,u.a.white,u.a.white),m=function(e){var n=e.title,t=e.children,r=e.className,o=e.busy,i=void 0!==o&&o,l=e.style,c=void 0===l?{}:l;return a.a.createElement(h,{className:"nui-block "+(r||""),style:c},a.a.createElement(f.a,{busy:i},a.a.createElement(s.a,{h2:!0,className:"nui-block-title"},n),a.a.createElement("div",{className:"nui-block-content"},t)))},b=function(e){return a.a.createElement(m,e)};b.propTypes={title:l.a.string,className:l.a.oneOf(["","primary"]),style:l.a.object},b.defaultProps={title:void 0,className:"",style:{}}},function(e,n,t){"use strict";t.d(n,"a",(function(){return m}));var r,o,a=t(0),i=t.n(a),l=t(2),c=t.n(l),u=t(4),s=t(3);function f(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var d=u.a.div(r||(r=f(["\n font-size: ",";\n font-family: ",";\n background-color: ",";\n box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);\n margin-bottom: 25px;\n\n &.primary {\n background-color: ",";\n }\n\n p:first-child {\n margin-top: 0px;\n }\n\n p:last-child {\n margin-bottom: 0px;\n }\n\n .content {\n padding: 20px 20px;\n }\n"])),s.a.fontSizeText,s.a.fontFamily,s.a.white,s.a.blue),p=u.a.div(o||(o=f(["\n justify-content: flex-start;\n background-color: ",";\n display: flex;\n align-items: center;\n padding: 8px 10px;\n\n &.align-right {\n justify-content: flex-end;\n }\n"])),s.a.lightGray2),h=function(e){var n=e.children,t=e.header,r=e.headerAlign,o=void 0===r?"left":r,a=e.footer,l=e.footerAlign,c=void 0===l?"right":l,u=e.className,s=e.style,f=void 0===s?{}:s;return i.a.createElement(d,{className:u||"",style:f},t&&i.a.createElement(p,{className:"align-".concat(o)},t),i.a.createElement("div",{className:"content"},n),a&&i.a.createElement(p,{className:"align-".concat(c)},a))},m=function(e){return i.a.createElement(h,e)};m.propTypes={header:c.a.element,headerAlign:c.a.oneOf(["left","right"]),footer:c.a.element,footerAlign:c.a.oneOf(["left","right"]),className:c.a.string,style:c.a.object},m.defaultProps={header:void 0,headerAlign:"left",footer:void 0,footerAlign:"right",className:void 0,style:{}}},function(e,n,t){"use strict";t.d(n,"a",(function(){return p}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(3);var s,f,d=Object(c.a)((function(e){var n=e.title,t=void 0===n?"":n,r=e.contentAlign,o=void 0===r?"left":r;return a.a.createElement("div",{className:e.className||""},t?a.a.createElement("div",{className:"nui-settings-head"},t):null,a.a.createElement("div",{className:"nui-settings-content nui-settings-content-align-".concat(o)},e.children))}))(r||(s=["\n display: flex;\n font-family: ",";\n\n > .nui-settings-head {\n font-family: ",";\n font-size: 14px;\n line-height: 17px;\n width: 120px;\n margin-right: 16px;\n }\n\n /* Select, Checkbox, Input need to be a bit higher to be in front of the settings title */\n\n .nui-settings-content > .nui-select:first-child {\n position: relative;\n margin-top: -5px;\n }\n \n .nui-settings-content > .nui-checkbox:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > .nui-checkbox:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > .nui-button:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > div:first-child > .neko-input {\n position: relative;\n margin-top: -5px;\n }\n\n > .nui-settings-content {\n flex: 1;\n\n &.nui-settings-content-align-right {\n flex: none;\n margin-left: auto;\n }\n\n input[type=text] {\n width: 100%;\n }\n\n\n }\n\n & + div {\n margin-top: 15px;\n }\n"],f||(f=s.slice(0)),r=Object.freeze(Object.defineProperties(s,{raw:{value:Object.freeze(f)}}))),u.a.fontFamily,u.a.fontFamily),p=function(e){return a.a.createElement(d,e)};p.propTypes={title:l.a.string,className:l.a.string,contentAlign:l.a.string},p.defaultProps={title:"",className:void 0,contentAlign:"left"}},function(e,n,t){"use strict";var r,o,a=t(0),i=t.n(a),l=t(2),c=t.n(l),u=t(4),s=t(3);function f(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var d=u.a.div(r||(r=f(["\n margin: 20px;\n padding: 14px;\n background-color: white;\n box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);\n\n > * + * {\n /* Base margin between child elements */\n margin-top: 14px;\n }\n"]))),p=Object(u.a)((function(e){return e.children?i.a.createElement("div",{className:e.className},e.children):null}))(o||(o=f(["\n background-color: ",";\n color: white;\n"])),s.a.blue),h=function(e){return i.a.createElement(d,{className:"window"},i.a.createElement(p,null,e.title),e.children)},m=function(e){return i.a.createElement(h,e)};m.propTypes={title:c.a.string},m.defaultProps={title:void 0}},function(e,n,t){"use strict";t.d(n,"a",(function(){return g}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(3),s=t(8),f=t(5),d=t(35),p=t.n(d),h=t(36),m=t.n(h);var b,v,y=Object(c.a)((function(e){var n=e.id,t=e.name,r=e.checked,o=void 0!==r&&r,i=e.onChange,l=e.label,c=e.description,d=e.isPro,h=e.disabled,b=e.requirePro,v=void 0!==b&&b&&!d,y=h||v,g=y?"disabled":"";return a.a.createElement("div",{className:["nui-checkbox",e.className,g].join(" ")},a.a.createElement("input",{id:n,name:t,type:"checkbox",defaultChecked:!1,onClick:function(){i?i(!o,n):console.log("The onChange handler it not set for this checkbox.",e)},disabled:y}),a.a.createElement("label",{htmlFor:n},a.a.createElement("div",{className:"nui-checkbox-check-container"},a.a.createElement(f.Icon,{icon:o?m.a:p.a,width:"30px",height:"30px",color:y?u.a.disabledForm:u.a.blue})),a.a.createElement("div",{className:"nui-checkbox-inner-container"},a.a.createElement("span",{className:"label"},l,a.a.createElement(s.a,{className:"inline",show:v})),c?a.a.createElement("small",{className:"description"},c):null)))}))(r||(b=["\n font-family: ",";\n\n &.disabled {\n color: ",";\n\n label {\n cursor: default;\n }\n }\n\n input {\n display: none;\n }\n\n label {\n cursor: pointer;\n display: flex;\n }\n .nui-checkbox-check-container {\n flex-basis: 30px;\n }\n .nui-checkbox-inner-container {\n margin-top: 1.5px;\n margin-left: 4px;\n\n .label {\n display: block;\n font-size: 14px;\n line-height: 17px;\n padding-top: 4.5px;\n padding-bottom: 4px;\n }\n \n .description {\n display: block;\n font-size: 13px;\n line-height: 14px;\n color: #8a8a8a;\n\n * {\n font-size: 13px;\n line-height: inherit;\n margin: 0;\n }\n }\n }\n"],v||(v=b.slice(0)),r=Object.freeze(Object.defineProperties(b,{raw:{value:Object.freeze(v)}}))),u.a.fontFamily,u.a.disabledForm),g=function(e){return a.a.createElement(y,e)};g.propTypes={id:l.a.string,name:l.a.string,checked:l.a.bool,label:l.a.string,description:l.a.string,isPro:l.a.bool,requirePro:l.a.bool},g.defaultProps={id:void 0,name:void 0,checked:!1,label:void 0,description:void 0,isPro:!1,requirePro:!1}},function(e,n,t){"use strict";t.d(n,"a",(function(){return d}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4);var u,s,f=Object(c.a)((function(e){var n=e.name,t=(e.max,e.isPro),r=void 0!==t&&t;return a.a.Children.map(e.children,(function(e){return e.props.name?e:a.a.cloneElement(e,{name:n,isPro:r})}))}))(r||(u=["\n"],s||(s=u.slice(0)),r=Object.freeze(Object.defineProperties(u,{raw:{value:Object.freeze(s)}})))),d=function(e){return a.a.createElement(f,e)};d.propTypes={name:l.a.string,mas:l.a.number,isPro:l.a.bool},d.defaultProps={name:void 0,mas:-1,isPro:!1}},function(e,n,t){"use strict";var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(3),s=["id","name","value","description","placeholder","onEnter","readOnly","maxLength","className","style","textAreaStyle","countable"];function f(){return(f=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function d(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return p(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return p(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function h(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var m,b,v=Object(c.a)((function(e){var n=e.id,t=e.name,r=e.value,i=void 0===r?"":r,l=e.description,c=e.placeholder,u=void 0===c?"":c,p=e.onEnter,m=void 0===p?null:p,b=e.readOnly,v=void 0!==b&&b,y=e.maxLength,g=void 0===y?null:y,w=e.className,x=e.style,O=e.textAreaStyle,k=void 0===O?{}:O,C=e.countable,E=void 0!==C&&C,j=h(e,s),S=d(Object(o.useState)(i),2),_=S[0],P=S[1],A=d(Object(o.useState)(0),2),I=A[0],M=A[1],T=!!e.onChange;Object(o.useEffect)((function(){T||P(i),E&&M(i.length)}),[i,E]);var z=Object(o.useCallback)((function(t){var r=g?t.target.value.substr(0,g):t.target.value;T?e.onChange(r,n):P(r,n)}),[g]);return a.a.createElement("div",{className:[w].join(" "),style:x},a.a.createElement("div",{className:"neko-textarea-container"},a.a.createElement("textarea",f({className:"neko-textarea"},j,{id:n,name:t,spellCheck:"false",placeholder:u,onChange:z,onKeyPress:function(t){m&&!t.shiftKey&&"Enter"===t.key&&(t.preventDefault(),e.onEnter(t.target.value,n))},onBlur:function(t){e.onBlur&&i!==t.target.value&&e.onBlur(t.target.value,n)},readOnly:v,style:k,value:T?i:_})),E&&a.a.createElement("p",{className:"neko-textarea-count"},I," / ",g," characters")),l&&a.a.createElement("p",{className:"neko-input-description"},l))}))(r||(m=["\n .neko-textarea-container {\n position: relative;\n }\n .neko-textarea {\n font-family: ",";\n font-size: ",";\n border: 2px solid ",";\n box-sizing: border-box;\n height: 160px;\n background: rgb(0 124 186 / 10%);\n padding: 5px 10px;\n width: 100%;\n\n &::placeholder {\n color: rgba(0, 0, 0, 0.25);\n }\n\n :focus {\n background-color: white;\n }\n\n :read-only {\n background-color: ",";\n }\n }\n .neko-textarea-count {\n color: rgba(",", 0.4);\n font-size: 11px;\n margin: 0;\n position: absolute;\n right: 13px;\n bottom: 10px;\n }\n\n .neko-input-description {\n font-family: ",";\n font-size: ",";\n line-height: 14px;\n margin-top: 8px;\n margin-bottom: 0;\n }\n"],b||(b=m.slice(0)),r=Object.freeze(Object.defineProperties(m,{raw:{value:Object.freeze(b)}}))),u.a.fontFamily,u.a.fontSizeText,u.a.blue,u.a.gray,u.a.blackRGB,u.a.fontFamily,u.a.fontSizeSmall),y=function(e){return a.a.createElement(v,e)};y.propTypes={id:l.a.string,name:l.a.string,value:l.a.string,description:l.a.string,placeholder:l.a.string,onChange:l.a.func,onEnter:l.a.func,onBlur:l.a.func,readOnly:l.a.bool},y.defaultProps={id:void 0,name:void 0,value:"",description:void 0,placeholder:"",onChange:void 0,onEnter:void 0,onBlur:void 0,readOnly:!1}},function(e,n,t){"use strict";var r,o=t(0),a=t.n(o),i=(t(2),t(4));t(3);var l,c,u=i.a.div(r||(l=["\n label {\n display: block;\n margin-bottom: 3px;\n }\n\n .neko-input, .neko-textarea {\n margin-bottom: 5px;\n }\n"],c||(c=l.slice(0)),r=Object.freeze(Object.defineProperties(l,{raw:{value:Object.freeze(c)}})))),s=function(e){return a.a.createElement(u,null,e.children||null)},f=function(e){return a.a.createElement(s,e)};f.propTypes={},f.defaultProps={}},function(e,n,t){"use strict";var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(3),s=["width","height","fontSize","onValue","offValue","checked","onBackgroundColor","offBackgroundColor","onLabel","offLabel","onChange","disabled"];function f(){return(f=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function d(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p,h,m=Object(c.a)((function(e){e.width,e.height,e.fontSize;var n=e.onValue,t=e.offValue,r=e.checked,i=void 0!==r&&r,l=(e.onBackgroundColor,e.offBackgroundColor,e.onLabel,e.offLabel,e.onChange),c=e.disabled,u=d(e,s),p=Object(o.useCallback)((function(e){l(e.target.checked?n:t)}),[l,n,t]);return a.a.createElement("label",f({},u,{"data-is-disabled":c?"disabled":""}),a.a.createElement("input",{type:"checkbox",onChange:p,checked:i,disabled:c}),a.a.createElement("span",{className:"nui-switch-slider"}))}))(r||(p=["\n color: ",";\n font-family: ",";\n font-size: ",";\n position: relative;\n display: inline-block;\n width: ",";\n height: ",";\n\n &[data-is-disabled=disabled] {\n opacity: 0.4;\n\n .nui-switch-slider {\n cursor: auto;\n }\n }\n\n input {\n opacity: 0;\n width: 0;\n height: 0;\n border: 0;\n }\n\n .nui-switch-slider {\n background-color: ",";\n border-radius: ",';\n align-items: center;\n cursor: pointer;\n display: inline-flex;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n transition: .4s;\n }\n\n .nui-switch-slider:before {\n border-radius: 50%;\n position: absolute;\n content: "";\n height: ',";\n width: ",';\n left: 4px;\n bottom: 4px;\n background-color: white;\n transition: .3s;\n }\n\n .nui-switch-slider:after {\n content: "','";\n margin-left: auto;\n margin-right: ',";\n }\n\n input:checked + .nui-switch-slider {\n background-color: ",";\n }\n\n input:checked + .nui-switch-slider:before {\n transform: translateX(",');\n }\n\n input:checked + .nui-switch-slider:after {\n content: "','";\n margin-left: ',";\n margin-right: auto;\n }\n"],h||(h=p.slice(0)),r=Object.freeze(Object.defineProperties(p,{raw:{value:Object.freeze(h)}}))),u.a.white,u.a.fontFamily,(function(e){return e.fontSize}),(function(e){return e.width}),(function(e){return e.height}),(function(e){return e.offBackgroundColor}),(function(e){return e.height}),(function(e){return"calc(".concat(e.height," - 8px)")}),(function(e){return"calc(".concat(e.height," - 8px)")}),(function(e){return e.offLabel}),(function(e){return"calc(".concat(e.height," / 2)")}),(function(e){return e.onBackgroundColor}),(function(e){return"calc(".concat(e.width," - ").concat(e.height,")")}),(function(e){return e.onLabel}),(function(e){return"calc(".concat(e.height," / 2)")})),b=function(e){return a.a.createElement(m,e)};b.propTypes={width:l.a.string,height:l.a.string,fontSize:l.a.string,onValue:l.a.string,offValue:l.a.string,checked:l.a.bool,onBackgroundColor:l.a.string,offBackgroundColor:l.a.string,onLabel:l.a.string,offLabel:l.a.string},b.defaultProps={width:"100%",height:"20px",fontSize:"12px",checked:!1}},function(e,n,t){"use strict";t.d(n,"a",(function(){return k}));var r,o,a=t(0),i=t.n(a),l=t(2),c=t.n(l),u=t(4),s=t(6),f=t(5),d=t(29),p=t.n(d),h=t(31),m=t.n(h),b=t(30),v=t.n(b),y=t(3);function g(e){return(g="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})(e)}function w(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var x=Object(u.a)((function(e){var n=e.value,t=void 0===n?0:n,r=e.max,o=void 0===r?100:r,a=e.busy,l=void 0!==a&&a,c=e.status;t=Math.min(t,o);var u=parseFloat(t)/parseFloat(o);return i.a.createElement("div",{className:e.className},i.a.createElement(O,{ratio:u,busy:e.busy,status:c}),i.a.createElement("div",{className:"nui-progress-buttons"},l&&e.onPauseClick&&i.a.createElement("div",{className:"nui-progress-button pause",onClick:e.onPauseClick},e.paused?i.a.createElement(f.InlineIcon,{icon:v.a}):i.a.createElement(f.InlineIcon,{icon:p.a})),l&&e.onStopClick&&i.a.createElement("div",{className:"nui-progress-button stop",onClick:e.onStopClick},i.a.createElement(f.InlineIcon,{icon:m.a}))))}))(r||(r=w(["\n position: relative;\n box-sizing: border-box;\n height: 30px;\n background: linear-gradient(\n 180deg,\n rgba(0, 0, 0, 0.06) 0%,\n rgba(0, 0, 0, 0.02) 50%,\n rgba(0, 0, 0, 0.10) 100%\n );\n border-radius: 12px;\n\n .nui-progress-buttons {\n position: absolute;\n height: 100%;\n right: 0px;\n display: flex;\n align-items: center;\n padding-right: 5px;\n\n .nui-progress-button {\n border: none;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-left: 2px;\n border-radius: 100%;\n color: white;\n padding: 2px;\n width: 18px;\n height: 18px;\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n\n &.stop {\n background: ",";\n\n &:hover {\n background-color: ",";\n }\n }\n }\n }\n"])),y.a.blue,Object(s.a)(.1,y.a.blue),y.a.red,Object(s.a)(.1,y.a.red)),O=Object(u.a)((function(e){var n,t,r,o=isNaN(e.ratio)?0:parseInt(Math.round(100*e.ratio)),a=g(e.status),l="undefined"!==a?"string"===a?e.status:e.status(o):"".concat(o,"%");return i.a.createElement("div",{className:e.className,style:(n={minWidth:28},t="minWidth",r=o+"%",t in n?Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[t]=r,n)},i.a.createElement("div",null,l))}))(o||(o=w(["\n position: absolute;\n overflow: hidden;\n top: 0; left: 0;\n height: 100%;\n background-color: ",";\n border-radius: 12px;\n text-align: center;\n padding: 0 10px;\n vertical-align: middle;\n color: white;\n font-family: ",";\n font-size: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: min-width .2s ease-out;\n\n background-size: 30px 30px;\n background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%,\n transparent 25%,\n transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,\n transparent 75%, transparent);\n animation: ",";\n\n @keyframes animate-stripes {\n 0% { background-position: 0 0; }\n 100% { background-position: 60px 0; }\n }\n"])),y.a.progress,y.a.fontFamily,(function(e){return e.busy?"animate-stripes 1.6s linear infinite":"none"})),k=function(e){return i.a.createElement(x,e)};k.propTypes={value:c.a.number,max:c.a.number,busy:c.a.bool,paused:c.a.bool,onPauseClick:c.a.func,onStopClick:c.a.func,status:c.a.oneOf([c.a.string,c.a.func])},k.defaultProps={value:0,max:100,busy:!1,paused:!1,onPauseClick:void 0,onStopClick:void 0,status:void 0}},function(e,n,t){"use strict";t.d(n,"a",(function(){return y}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(22),s=t(10),f=t(3),d=t(105),p=t.n(d);var h,m,b=c.a.div(r||(h=["\n position: relative;\n color: white;\n font-family: ",";\n font-size: ",";\n display: flex;\n height: 61px;\n overflow: hidden;\n align-items: center;\n padding: 15px 20px;\n background-color: ",";\n display: flex;\n\n .nui-header-logo-container {\n width: 102px;\n height: 102px;\n padding: 20px;\n margin-right: 25px;\n background: rgba(",", 0.1);\n border-radius: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n transform: rotate(-29.83deg);\n }\n\n .nui-header-title-container {\n flex-direction: column;\n display: flex;\n\n .nui-header-title {\n color: white;\n font-family: ",";\n font-size: 23px;\n line-height: normal;\n margin: 0;\n }\n\n .nui-header-subtitle {\n color: white;\n font-family: ",";\n line-height: normal;\n font-size: ",";\n }\n }\n\n .nui-header-extra-content {\n flex: 1;\n margin: 0 20px;\n }\n"],m||(m=h.slice(0)),r=Object.freeze(Object.defineProperties(h,{raw:{value:Object.freeze(m)}}))),f.a.fontFamily,f.a.fontSizeText,f.a.header,f.a.blackRGB,f.a.fontFamily,f.a.fontFamily,f.a.fontSizeText),v=function(e){var n=e.title,t=void 0===n?"NekoUI":n,r=e.subtitle,o=void 0===r?"By Jordy Meow":r,i=e.children,l=e.saving,c=void 0!==l&&l;return a.a.createElement(b,null,a.a.createElement("div",{className:"nui-header-logo-container"},a.a.createElement(u.a,null)),a.a.createElement("div",{className:"nui-header-title-container"},a.a.createElement("h1",{className:"nui-header-title"},t),a.a.createElement("small",{className:"nui-header-subtitle"},a.a.createElement("a",{target:"_blank",href:"https://meowapps.com",style:{color:"white",textDecoration:"none"}},o))),a.a.createElement("div",{className:"nui-header-extra-content"},i),c&&a.a.createElement(s.a,{icon:p.a,width:"36",height:"36"}))},y=function(e){return a.a.createElement(v,e)};y.propTypes={title:l.a.string,subtitle:l.a.string,saving:l.a.bool},y.defaultProps={title:"NekoUI",subtitle:"By Jordy Meow",saving:!1}},function(e,n,t){"use strict";t.d(n,"a",(function(){return f}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i);var c,u,s=t(4).a.section(r||(c=["\n .mask {\n position: absolute;\n overflow: hidden;\n display: block;\n width: ","px;\n height: ","px;\n }\n\n .semi-circle {\n position: relative;\n display: block;\n width: ","px;\n height: ",'px;\n background: linear-gradient(to right, #27b775 0%, #f3f32c 50%, #f71b1b 100%);\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n\n &::before {\n content: "";\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 2;\n display: block;\n width: 140px;\n height: 70px;\n margin-left: -70px;\n background: ',";\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n } \n }\n\n .semi-circle--mask {\n position: absolute;\n top: 0;\n left: 0;\n width: ","px;\n height: ",'px;\n background: transparent;\n transform-origin: center center;\n backface-visibility: hidden;\n transition: all .3s ease-in-out;\n\n &::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0%;\n z-index: 2;\n display: block;\n width: ',"px;\n height: ","px;\n margin-top: -1px;\n margin-left: -1px;\n background: #5396c1d6;\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n } \n }\n\n .gauge { \n width: ","px;\n height: ","px;\n \n .semi-circle--mask {\n transform: rotate(","deg) translate3d(0,0,0);\n }\n }\n\n .child-container {\n position: absolute;\n font-size: 16px;\n display: flex;\n width: ","px;\n height: ","px;\n z-index: 10;\n\n .spacing {\n flex: auto;\n }\n\n .child {\n color: white;\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n }\n"],u||(u=c.slice(0)),r=Object.freeze(Object.defineProperties(c,{raw:{value:Object.freeze(u)}}))),(function(e){return e.width}),(function(e){return e.width/2}),(function(e){return e.width}),(function(e){return e.width/2}),(function(e){return e.backgroundColor}),(function(e){return e.width}),(function(e){return e.width}),(function(e){return e.width+2}),(function(e){return e.width/2+2}),(function(e){return e.width}),(function(e){return e.width/2}),(function(e){return e.degrees}),(function(e){return e.width+2}),(function(e){return e.width/2})),f=function(e){var n=e.value,t=void 0===n?1e3:n,r=(e.min,e.max),o=void 0===r?2500:r,i=e.width,l=void 0===i?200:i,c=e.background,u=void 0===c?"#007cba":c,f=e.children,d=180*(t<=o?t:o)/o;return a.a.createElement(s,{backgroundColor:u,degrees:d,width:l},a.a.createElement("div",{class:"gauge"},a.a.createElement("div",{class:"mask"},a.a.createElement("div",{class:"semi-circle"}),a.a.createElement("div",{class:"semi-circle--mask"})),a.a.createElement("div",{class:"child-container"},a.a.createElement("div",{class:"child"},a.a.createElement("div",{class:"spacing"}),f))))};f.propTypes={value:l.a.number,min:l.a.number,max:l.a.number,width:l.a.number,background:l.a.string},f.defaultProps={value:1e3,min:0,max:2500,width:200,background:"#007cba"}},function(e,n,t){"use strict";var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(1),s=["width","height","iconSize","onSuccess","onFailure","style","apiUrl","apiConfig","onClick"];function f(){return(f=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){h(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function h(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function m(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,n,t,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,o)}function v(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||y(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,n){if(e){if("string"==typeof e)return g(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?g(e,n):void 0}}function g(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function w(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var x,O,k=c.a.div(r||(x=["\n box-sizing: border-box;\n background: #C4C4C4;\n color: rgb(0 0 0 / 60%);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n transition: all 0.25s ease;\n\n div {\n transition: all 0.5s ease;\n transform: scale(1.5);\n pointer-events: none;\n max-width: 100%;\n }\n\n &:hover {\n cursor: pointer;\n }\n\n &.dropping {\n background: #a4d5ff;\n\n div {\n transform: scale(2);\n }\n }\n"],O||(O=x.slice(0)),r=Object.freeze(Object.defineProperties(x,{raw:{value:Object.freeze(O)}})))),C=function(e){var n=e.width,t=void 0===n?"100%":n,r=e.height,i=void 0===r?"100%":r,l=e.iconSize,c=void 0===l?48:l,d=e.onSuccess,h=void 0===d?function(){}:d,y=e.onFailure,g=void 0===y?function(){}:y,x=e.style,O=void 0===x?{}:x,C=e.apiUrl,E=e.apiConfig,j=e.onClick,S=w(e,s),_=v(Object(o.useState)(!1),2),P=_[0],A=_[1],I=v(Object(o.useState)(Math.floor(1e8*Math.random())),2),M=I[0],T=(I[1],Object(o.useRef)(null)),z=Object(o.useRef)(null),R=v(Object(o.useState)(!1),2),N=R[0],L=R[1];Object(o.useEffect)((function(){z&&(z.current.style.pointerEvents=N?"none":"auto")}),[z,N]);var F=function(){var e,n=(e=regeneratorRuntime.mark((function e(n){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return L(!0),E.file=n[0],e.next=4,Object(u.G)(C,E);case 4:(t=e.sent).success?h(t):g(t),L(!1);case 7:case"end":return e.stop()}}),e)})),function(){var n=this,t=arguments;return new Promise((function(r,o){var a=e.apply(n,t);function i(e){b(a,r,o,i,l,"next",e)}function l(e){b(a,r,o,i,l,"throw",e)}i(void 0)}))});return function(e){return n.apply(this,arguments)}}(),D=function(e){e.preventDefault(),e.stopPropagation()},B=function(e){e.preventDefault(),e.stopPropagation(),A(!0)},U=function(e,n){n.preventDefault(),n.stopPropagation(),A(!1),console.log(e),F(e)};return a.a.createElement("div",{ref:z},a.a.createElement("input",{type:"file",id:M,accept:"image/*",ref:T,onChange:function(e){var n=[e.target.files[0]];U(n,e)},style:{display:"none"}}),a.a.createElement(k,f({onClick:function(){j?j():T.current.click()},style:p(p({},O),{},{width:t,height:i}),className:P?"dropping":"",onDragOver:D,onDragEnter:B,onDragLeave:function(e){e.preventDefault(),e.stopPropagation(),A(!1)},onDrop:function(e){var n=m(e.dataTransfer.files);U(n,e)}},S),a.a.createElement(u.j,{width:c,height:c,icon:"upload",spinning:N,color:"#A9A9A9",onDragOver:D,onDragEnter:B})))};C.propTypes={width:l.a.string,height:l.a.string,onSuccess:l.a.func,onFailure:l.a.func,style:l.a.object,apiUrl:l.a.string,apiConfig:l.a.object},C.defaultProps={width:"100%",height:"100%",onSuccess:function(){},onFailure:function(){},style:{}}},function(e,n,t){"use strict";var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(1),s=["onSuccess","onFailure","apiUrl","apiConfig","className","disabled","children"];function f(){return(f=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function d(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,n,t,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,o)}function h(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||m(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,n){if(e){if("string"==typeof e)return b(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?b(e,n):void 0}}function b(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function v(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var y,g,w=c.a.div(r||(y=["\n &.dropping {\n background: #a4d5ff;\n }\n"],g||(g=y.slice(0)),r=Object.freeze(Object.defineProperties(y,{raw:{value:Object.freeze(g)}})))),x=Object(o.forwardRef)((function(e,n){var t=e.onSuccess,r=void 0===t?function(){}:t,i=e.onFailure,l=void 0===i?function(){}:i,c=e.apiUrl,m=e.apiConfig,b=e.className,y=e.disabled,g=void 0!==y&&y,x=e.children,O=v(e,s),k=h(Object(o.useState)(!1),2),C=k[0],E=k[1],j=h(Object(o.useState)(!1),2),S=j[0],_=j[1],P=function(){var e,n=(e=regeneratorRuntime.mark((function e(n){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(!0),m.file=n[0],e.next=4,Object(u.G)(c,m);case 4:(t=e.sent).success?r(t):l(t),_(!1);case 7:case"end":return e.stop()}}),e)})),function(){var n=this,t=arguments;return new Promise((function(r,o){var a=e.apply(n,t);function i(e){p(a,r,o,i,l,"next",e)}function l(e){p(a,r,o,i,l,"throw",e)}i(void 0)}))});return function(e){return n.apply(this,arguments)}}(),A=Object(o.useCallback)((function(e){e.preventDefault(),e.stopPropagation()}),[g]),I=Object(o.useCallback)((function(e){e.preventDefault(),e.stopPropagation(),g||E(!0)}),[g]),M=Object(o.useCallback)((function(e){e.preventDefault(),e.stopPropagation(),g||E(!1)}),[g]),T=Object(o.useCallback)((function(e){if(!g){var n=d(e.dataTransfer.files);z(n,e)}}),[g]),z=function(e,n){n.preventDefault(),n.stopPropagation(),E(!1),console.log(e),P(e)};return a.a.createElement(u.b,{busy:S},a.a.createElement("input",{type:"file",accept:"image/*",ref:n,onChange:function(e){var n=[e.target.files[0]];z(n,e)},style:{display:"none"}}),a.a.createElement(w,f({className:"".concat(b||""," ").concat(C?"dropping":""),onDragOver:A,onDragEnter:I,onDragLeave:M,onDrop:T},O),x))}));x.propTypes={ref:l.a.ref,onSuccess:l.a.func,onFailure:l.a.func,apiUrl:l.a.string,apiConfig:l.a.object,disabled:l.a.bool},x.defaultProps={onSuccess:function(){},onFailure:function(){},disabled:!1}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return[].slice.call(e.querySelectorAll("*"),0).filter(i)};
|
2 |
/*!
|
3 |
* Adapted from jQuery UI core
|
4 |
*
|
10 |
*
|
11 |
* http://api.jqueryui.com/category/ui-core/
|
12 |
*/
|
13 |
+
var r=/input|select|textarea|button|object/;function o(e){var n=e.offsetWidth<=0&&e.offsetHeight<=0;if(n&&!e.innerHTML)return!0;var t=window.getComputedStyle(e);return n?"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==t.getPropertyValue("display")}function a(e,n){var t=e.nodeName.toLowerCase();return(r.test(t)&&!e.disabled||"a"===t&&e.href||n)&&function(e){for(var n=e;n&&n!==document.body;){if(o(n))return!1;n=n.parentNode}return!0}(e)}function i(e){var n=e.getAttribute("tabindex");null===n&&(n=void 0);var t=isNaN(n);return(t||n>=0)&&a(e,!t)}e.exports=n.default},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.assertNodeList=c,n.setElement=function(e){var n=e;if("string"==typeof n&&i.canUseDOM){var t=document.querySelectorAll(n);c(t,n),n="length"in t?t[0]:t}return l=n||l},n.validateElement=u,n.hide=function(e){u(e)&&(e||l).setAttribute("aria-hidden","true")},n.show=function(e){u(e)&&(e||l).removeAttribute("aria-hidden")},n.documentNotReadyOrSSRTesting=function(){l=null},n.resetForTesting=function(){l=null};var r,o=t(124),a=(r=o)&&r.__esModule?r:{default:r},i=t(43);var l=null;function c(e,n){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+n+".")}function u(e){return!(!e&&!l)||((0,a.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),!1)}},function(e,n){(function(n){e.exports=n}).call(this,{})},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=new function e(){var n=this;!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===n.openInstances.indexOf(e)&&(n.openInstances.push(e),n.emit("register"))},this.deregister=function(e){var t=n.openInstances.indexOf(e);-1!==t&&(n.openInstances.splice(t,1),n.emit("deregister"))},this.subscribe=function(e){n.subscribers.push(e)},this.emit=function(e){n.subscribers.forEach((function(t){return t(e,n.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]};n.default=r,e.exports=n.default},function(e,n,t){"use strict";var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(3),s=t(24),f=t(16),d=t(21),p=t(11),h=t(23),m=t(14),b=t(10),v=["images","onNextPage","onPreviousPage","onRefresh","onClick","onSearch","searchValue","busy","currentPage","limit","total","onPageChange","selected","multiSelect"];function y(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return g(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return g(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function w(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var x,O,k=Object(c.a)(s.a)(r||(x=["\n width: 633px;\n\n .neko-media-library-modal-content-header {\n align-items: center;\n display: flex;\n justify-content: space-between;\n\n h1 {\n font-size: 21px;\n font-weight: bold;\n margin: 0;\n }\n\n input {\n background-color: ",";\n border: 1px solid ",";\n border-radius: 3px;\n }\n }\n .neko-media-library-modal-content-body {\n display: grid;\n gap: 10px;\n grid-template-columns: repeat(6, 1fr);\n margin-top: 33px;\n margin-bottom: 36px;\n\n .neko-media-library-modal-content-media-container {\n cursor: pointer;\n img {\n box-sizing: border-box;\n }\n\n &.selected {\n img {\n border: 5px solid ",";\n }\n }\n }\n }\n .neko-media-library-modal-content-footer {\n display: flex;\n justify-content: space-between;\n }\n .neko-media-library-modal-search {\n position: relative;\n }\n"],O||(O=x.slice(0)),r=Object.freeze(Object.defineProperties(x,{raw:{value:Object.freeze(O)}}))),u.a.white,u.a.black,u.a.blue),C=function(e){var n=e.images,t=(e.onNextPage,e.onPreviousPage,e.onRefresh),r=e.onClick,i=e.onSearch,l=e.searchValue,c=e.busy,s=e.currentPage,g=e.limit,x=e.total,O=e.onPageChange,C=e.selected,E=e.multiSelect,j=void 0!==E&&E,S=w(e,v),_=y(Object(o.useState)(l),2),P=_[0],A=_[1],I=Object(o.useMemo)((function(){return n.map((function(n){return a.a.createElement("div",{key:n.id,className:"neko-media-library-modal-content-media-container ".concat(C.includes(n.id)?"selected":""),onClick:function(){r({id:n.id,src:n.src}),j||e.onRequestClose()}},a.a.createElement("img",{src:n.src,className:"neko-media-library-modal-content-media",width:"90",height:"90"}))}))}),[n,C]);return a.a.createElement(k,S,a.a.createElement("div",{className:"neko-media-library-modal-content"},a.a.createElement("div",{className:"neko-media-library-modal-content-header"},a.a.createElement(f.a,{h1:!0},"Media Library"),a.a.createElement("div",{style:{display:"flex"}},a.a.createElement("div",{className:"neko-media-library-modal-search"},a.a.createElement(d.a,{value:P,disabled:c,onEnter:i,onChange:function(e){return A(e)},placeholder:"Search..."}),""!==P&&a.a.createElement(b.a,{icon:"close",containerStyle:{width:"20px",position:"absolute",right:"5px",top:"5px",cursor:"pointer"},width:20,height:20,color:u.a.darkGray,onClick:function(){A(""),t()}})),a.a.createElement(p.a,{onClick:function(){return i(P)},style:{marginLeft:"4px"}},"Search"))),a.a.createElement("div",null,a.a.createElement(m.a,{busy:c},a.a.createElement("div",{className:"neko-media-library-modal-content-body"},I))),a.a.createElement("div",{className:"neko-media-library-modal-content-footer"},a.a.createElement(h.a,{limit:g,currentPage:s,total:x,onClick:O}),a.a.createElement(p.a,{onClick:e.onRequestClose},"Close"))))},E=function(e){return a.a.createElement(C,e)};E.propTypes={images:l.a.array,onNextPage:l.a.func,onPreviousPage:l.a.func,onRefresh:l.a.func,onClick:l.a.func,onSearch:l.a.func,searchValue:l.a.string,busy:l.a.bool,currentPage:l.a.number,limit:l.a.number,total:l.a.number,onPageChange:l.a.func,multiSelect:l.a.bool,selected:l.a.array},E.defaultProps={multiSelect:!1}},function(e,n,t){"use strict";t.d(n,"a",(function(){return P}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(5),s=t(9),f=t.n(s),d=t(17),p=t.n(d),h=t(35),m=t.n(h),b=t(36),v=t.n(b),y=t(107),g=t.n(y),w=t(3),x=t(14),O=["checked","intermediate","onSelect","onUnselect"];function k(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var C,E,j=c.a.table(r||(C=["\n background-color: ",";\n font-family: ",";\n border-spacing: 0;\n width: 100%;\n\n th, td {\n margin: 0;\n padding: 5px;\n border-bottom: 1px solid rgba(",", 0.1);\n border-right: 1px solid rgba(",", 0.1);\n\n a {\n text-decoration: none;\n }\n\n :last-child {\n border-right: 0;\n }\n }\n\n th, tfoot td {\n height: 30px;\n background-color: ",";\n color: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n line-height: 16px;\n text-align: left;\n\n div {\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n &.sortable {\n cursor: pointer;\n }\n }\n }\n\n tbody {\n tr {\n :nth-child(even) {\n background-color: ",";\n }\n &.selected {\n background-color: rgba(",", 0.8);\n color: ",";\n\n a {\n color: #81e8ff;\n }\n }\n }\n img {\n vertical-align: bottom;\n }\n }\n\n tfoot tr:last-child {\n td {\n border-bottom: 0;\n }\n }\n\n .table-checkbox-cell {\n width: 35px;\n text-align: center;\n\n svg {\n padding: 5px;\n cursor: pointer;\n }\n }\n"],E||(E=C.slice(0)),r=Object.freeze(Object.defineProperties(C,{raw:{value:Object.freeze(E)}}))),w.a.white,w.a.fontFamily,w.a.blackRGB,w.a.blackRGB,w.a.blue,w.a.white,w.a.tableGray,w.a.blueRGB,w.a.white),S=function(e){var n=e.checked,t=e.intermediate,r=void 0!==t&&t,o=e.onSelect,i=void 0===o?function(){}:o,l=e.onUnselect,c=void 0===l?function(){}:l;k(e,O);return a.a.createElement(u.Icon,{icon:r?g.a:n?v.a:m.a,width:"24px",height:"24px",onClick:function(e){n?c(e):i(e)}})},_=function(e){var n=e.columns,t=e.data,r=e.busy,o=void 0!==r&&r,i=e.onSelect,l=e.onUnselect,c=e.selectedItems,s=e.sort,d=e.onSortChange,h=n.length+(i?1:0),m=t.map((function(e){var t=n.map((function(n){return{value:e[n.accessor],style:n.style||{}}}));return{id:e.id,cells:t}})),b=m.map((function(e){return e.id})),v=b.filter((function(e){return c.includes(e)})).length===b.length,y=!v&&c.length>0,g=n.reduce((function(e,n,t){return!1===n.visible&&e.push(t),e}),[]),O=a.a.createElement("tr",null,i&&a.a.createElement("th",{className:"table-checkbox-cell"},a.a.createElement(S,{checked:v,intermediate:y,onSelect:function(e){return i(b,e)},onUnselect:function(e){l(y?c:b,e)}})),n.filter((function(e,n){return!g.includes(n)})).map((function(e){var n=s&&s.accessor===e.accessor,t=s&&"asc"===s.by,r=e.style||{};return a.a.createElement("th",{style:r,key:e.accessor},a.a.createElement("div",{className:e.sortable?"sortable":"",onClick:e.sortable?function(r){d(e.accessor,n&&t?"desc":"asc",r)}:void 0},a.a.createElement("div",null,e.title),a.a.createElement("div",null,e.sortable&&a.a.createElement(u.Icon,{icon:n?t?f.a:p.a:f.a,color:n?w.a.white:"rgba(".concat(w.a.blackRGB,", 0.1)"),width:"1.6rem",height:"1.6rem"}))))})));return a.a.createElement(x.a,{busy:o,overlayStyle:{top:"36px",height:"calc(100% - 76px)"}},a.a.createElement(j,null,a.a.createElement("thead",null,O),a.a.createElement("tbody",null,!m.length&&a.a.createElement("tr",null,a.a.createElement("td",{colspan:h,style:{textAlign:"center",height:40,color:"gray"}},"Empty.")),m.map((function(e){return a.a.createElement("tr",{className:c.includes(e.id)?"selected":""},i&&a.a.createElement("td",{className:"table-checkbox-cell"},a.a.createElement(S,{checked:c.includes(e.id),onSelect:function(n){return i([e.id],n)},onUnselect:function(n){return l([e.id],n)}})),e.cells.filter((function(e,n){return!g.includes(n)})).map((function(e){return a.a.createElement("td",{style:e.style},e.value)})))}))),a.a.createElement("tfoot",null,O)))},P=function(e){return a.a.createElement(_,e)};P.propTypes={columns:l.a.arrayOf(l.a.any),data:l.a.arrayOf(l.a.any),busy:l.a.arrayOf(l.a.bool),onSelect:l.a.func,onUnselect:l.a.func,selectedItems:l.a.arrayOf(l.a.object),onSortChange:l.a.func},P.defaultProps={columns:void 0,data:void 0,busy:!1,onSelect:void 0,onUnselect:void 0,selectedItems:void 0,onSortChange:void 0}},function(e,n,t){"use strict";t.d(n,"a",(function(){return h}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(3);var s,f,d=c.a.div(r||(s=["\n box-sizing: border-box;\n display: flex;\n width: 100%;\n padding: 10px 10px;\n background: ",";\n border-radius: 10px;\n box-shadow: 0px 0px 10px rgba(",", 0.1);\n\n &.neko-align-left {\n justify-content: flex-start;\n }\n\n &.neko-align-right {\n justify-content: flex-end;\n }\n\n > *:not(:last-child) {\n margin-right: 5px;\n }\n"],f||(f=s.slice(0)),r=Object.freeze(Object.defineProperties(s,{raw:{value:Object.freeze(f)}}))),u.a.white,u.a.blackRGB),p=function(e){var n=e.align,t=void 0===n?"left":n;return a.a.createElement(d,{className:"neko-align-".concat(t)},e.children)},h=function(e){return a.a.createElement(p,e)};h.propTypes={align:l.a.oneOf(["left","right"])},h.defaultProps={align:"left"}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M18 8a2 2 0 0 1 2 2v10c0 1.1-.9 2-2 2H6a2 2 0 0 1-2-2V10c0-1.11.89-2 2-2h1V6C7 3.24 9.24.998 12 .998S17 3.24 17 6v2h1m-6-5c-1.66 0-3 1.34-3 3v2h6V6c0-1.66-1.34-3-3-3m-1 16l6.25-6.24l-1.41-1.41L11 16.18L8.41 13.6L7 15l4 4z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M18 1c-2.76 0-5 2.24-5 5v2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12c1.11 0 2-.89 2-2V10a2 2 0 0 0-2-2h-1V6c0-1.66 1.34-3 3-3s3 1.34 3 3v2h2V6c0-2.76-2.24-5-5-5m-8 12a2 2 0 0 1 2 2c0 1.11-.89 2-2 2a2 2 0 1 1 0-4z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M13 9h5.5L13 3.5V9M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2m6.16 12.31c-1.56 0-2.97.58-4.05 1.52L6 13.72V19h5.28l-2.13-2.12c.82-.68 1.85-1.1 3.01-1.1c2.07 0 3.84 1.35 4.45 3.22l1.39-.46c-.81-2.45-3.12-4.23-5.84-4.23z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M12 5V1L7 6l5 5V7a6 6 0 0 1 6 6a6 6 0 0 1-6 6a6 6 0 0 1-6-6H4a8 8 0 0 0 8 8a8 8 0 0 0 8-8a8 8 0 0 0-8-8z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59L21 7z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M19 4h-3.5l-1-1h-5l-1 1H5v2h14M6 19a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7H6v12z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88c3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M13 13h-2V7h2m0 10h-2v-2h2M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M12 3C7.58 3 4 4.79 4 7s3.58 4 8 4s8-1.79 8-4s-3.58-4-8-4M4 9v3c0 2.21 3.58 4 8 4s8-1.79 8-4V9c0 2.21-3.58 4-8 4s-8-1.79-8-4m0 5v3c0 2.21 3.58 4 8 4s8-1.79 8-4v-3c0 2.21-3.58 4-8 4s-8-1.79-8-4z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M21.71 20.29l-1.42 1.42a1 1 0 0 1-1.41 0L7 9.85A3.81 3.81 0 0 1 6 10a4 4 0 0 1-3.78-5.3l2.54 2.54l.53-.53l1.42-1.42l.53-.53L4.7 2.22A4 4 0 0 1 10 6a3.81 3.81 0 0 1-.15 1l11.86 11.88a1 1 0 0 1 0 1.41M2.29 18.88a1 1 0 0 0 0 1.41l1.42 1.42a1 1 0 0 0 1.41 0l5.47-5.46l-2.83-2.83M20 2l-4 2v2l-2.17 2.17l2 2L18 8h2l2-4z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M12 15.5A3.5 3.5 0 0 1 8.5 12A3.5 3.5 0 0 1 12 8.5a3.5 3.5 0 0 1 3.5 3.5a3.5 3.5 0 0 1-3.5 3.5m7.43-2.53c.04-.32.07-.64.07-.97c0-.33-.03-.66-.07-1l2.11-1.63c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.31-.61-.22l-2.49 1c-.52-.39-1.06-.73-1.69-.98l-.37-2.65A.506.506 0 0 0 14 2h-4c-.25 0-.46.18-.5.42l-.37 2.65c-.63.25-1.17.59-1.69.98l-2.49-1c-.22-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64L4.57 11c-.04.34-.07.67-.07 1c0 .33.03.65.07.97l-2.11 1.66c-.19.15-.25.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1.01c.52.4 1.06.74 1.69.99l.37 2.65c.04.24.25.42.5.42h4c.25 0 .46-.18.5-.42l.37-2.65c.63-.26 1.17-.59 1.69-.99l2.49 1.01c.22.08.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.66z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M12 8l-1.33.09C9.81 7.07 7.4 4.5 5 4.5c0 0-1.97 2.96-.04 6.91c-.55.83-.89 1.26-.96 2.25l-1.93.29l.21.98l1.76-.26l.14.71l-1.57.94l.47.89l1.45-.89C5.68 18.76 8.59 20 12 20s6.32-1.24 7.47-3.68l1.45.89l.47-.89l-1.57-.94l.14-.71l1.76.26l.21-.98l-1.93-.29c-.07-.99-.41-1.42-.96-2.25C20.97 7.46 19 4.5 19 4.5c-2.4 0-4.81 2.57-5.67 3.59L12 8m-3 3a1 1 0 0 1 1 1a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1m6 0a1 1 0 0 1 1 1a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1m-4 3h2l-.7 1.39c.2.64.76 1.11 1.45 1.11a1.5 1.5 0 0 0 1.5-1.5h.5a2 2 0 0 1-2 2c-.75 0-1.4-.41-1.75-1c-.35.59-1 1-1.75 1a2 2 0 0 1-2-2h.5a1.5 1.5 0 0 0 1.5 1.5c.69 0 1.25-.47 1.45-1.11L11 14z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M9 3v1H4v2h1v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6h1V4h-5V3H9m0 5h2v9H9V8m4 0h2v9h-2V8z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M16.84 2.73c-.39 0-.77.15-1.07.44l-2.12 2.12l5.3 5.31l2.12-2.1c.6-.61.6-1.56 0-2.14L17.9 3.17c-.3-.29-.68-.44-1.06-.44M12.94 6l-8.1 8.11l2.56.28l.18 2.29l2.28.17l.29 2.56l8.1-8.11m-14 3.74L2.5 21.73l6.7-1.79l-.24-2.16l-2.31-.17l-.18-2.32" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M13 3v6h8V3m-8 18h8V11h-8M3 21h8v-6H3m0-2h8V3H3v10z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M18.68 12.32a4.49 4.49 0 0 0-6.36.01a4.49 4.49 0 0 0 0 6.36a4.508 4.508 0 0 0 5.57.63L21 22.39L22.39 21l-3.09-3.11c1.13-1.77.87-4.09-.62-5.57m-1.41 4.95c-.98.98-2.56.97-3.54 0c-.97-.98-.97-2.56.01-3.54c.97-.97 2.55-.97 3.53 0c.97.98.97 2.56 0 3.54M10.9 20.1a6.527 6.527 0 0 1-1.48-2.32C6.27 17.25 4 15.76 4 14v3c0 2.21 3.58 4 8 4c-.4-.26-.77-.56-1.1-.9M4 9v3c0 1.68 2.07 3.12 5 3.7v-.2c0-.93.2-1.85.58-2.69C6.34 12.3 4 10.79 4 9m8-6C7.58 3 4 4.79 4 7c0 2 3 3.68 6.85 4h.05c1.2-1.26 2.86-2 4.6-2c.91 0 1.81.19 2.64.56A3.215 3.215 0 0 0 20 7c0-2.21-3.58-4-8-4z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M10 4l2 2h8a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6c0-1.11.89-2 2-2h6m5 5v3h-3v2h3v3h2v-3h3v-2h-3V9h-2z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M5 3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h9.09c-.06-.33-.09-.66-.09-1c0-.68.12-1.36.35-2H5l3.5-4.5l2.5 3l3.5-4.5l2.23 2.97c.97-.63 2.11-.97 3.27-.97c.34 0 .67.03 1 .09V5a2 2 0 0 0-2-2H5m14 13v3h-3v2h3v3h2v-3h3v-2h-3v-3h-2z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M3 11h8V3H3m0 18h8v-8H3m10 8h8v-8h-8m0-10v8h8V3" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M7 5h14v2H7V5m0 8v-2h14v2H7M4 4.5A1.5 1.5 0 0 1 5.5 6A1.5 1.5 0 0 1 4 7.5A1.5 1.5 0 0 1 2.5 6A1.5 1.5 0 0 1 4 4.5m0 6A1.5 1.5 0 0 1 5.5 12A1.5 1.5 0 0 1 4 13.5A1.5 1.5 0 0 1 2.5 12A1.5 1.5 0 0 1 4 10.5M7 19v-2h14v2H7m-3-2.5A1.5 1.5 0 0 1 5.5 18A1.5 1.5 0 0 1 4 19.5A1.5 1.5 0 0 1 2.5 18A1.5 1.5 0 0 1 4 16.5z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M22.46 6c-.77.35-1.6.58-2.46.69c.88-.53 1.56-1.37 1.88-2.38c-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29c0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15c0 1.49.75 2.81 1.91 3.56c-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07a4.28 4.28 0 0 0 4 2.98a8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21C16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56c.84-.6 1.56-1.36 2.14-2.23z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8A1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5a5 5 0 0 1-5 5a5 5 0 0 1-5-5a5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3a3 3 0 0 0 3 3a3 3 0 0 0 3-3a3 3 0 0 0-3-3z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M12 2.04c-5.5 0-10 4.49-10 10.02c0 5 3.66 9.15 8.44 9.9v-7H7.9v-2.9h2.54V9.85c0-2.51 1.49-3.89 3.78-3.89c1.09 0 2.23.19 2.23.19v2.47h-1.26c-1.24 0-1.63.77-1.63 1.56v1.88h2.78l-.45 2.9h-2.33v7a10 10 0 0 0 8.44-9.9c0-5.53-4.5-10.02-10-10.02z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.62L12 2L9.19 8.62L2 9.24l5.45 4.73L5.82 21L12 17.27z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M12 20a7 7 0 0 1-7-7a7 7 0 0 1 7-7a7 7 0 0 1 7 7a7 7 0 0 1-7 7m7.03-12.61l1.42-1.42c-.45-.51-.9-.97-1.41-1.41L17.62 6c-1.55-1.26-3.5-2-5.62-2a9 9 0 0 0-9 9a9 9 0 0 0 9 9c5 0 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61M11 14h2V8h-2m4-7H9v2h6V1z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M12 7l5 5h-3v4h-4v-4H7l5-5m0 15A10 10 0 0 1 2 12A10 10 0 0 1 12 2a10 10 0 0 1 10 10a10 10 0 0 1-10 10m0-2a8 8 0 0 0 8-8a8 8 0 0 0-8-8a8 8 0 0 0-8 8a8 8 0 0 0 8 8z" fill="currentColor"/>',width:24,height:24}},function(e,n){e.exports=function(e,n,t,r){var o=t?t.call(r,e,n):void 0;if(void 0!==o)return!!o;if(e===n)return!0;if("object"!=typeof e||!e||"object"!=typeof n||!n)return!1;var a=Object.keys(e),i=Object.keys(n);if(a.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),c=0;c<a.length;c++){var u=a[c];if(!l(u))return!1;var s=e[u],f=n[u];if(!1===(o=t?t.call(r,s,f,u):void 0)||void 0===o&&s!==f)return!1}return!0}},function(e,n,t){"use strict";n.a=function(e){function n(e,n,r){var o=n.trim().split(h);n=o;var a=o.length,i=e.length;switch(i){case 0:case 1:var l=0;for(e=0===i?"":e[0]+" ";l<a;++l)n[l]=t(e,n[l],r).trim();break;default:var c=l=0;for(n=[];l<a;++l)for(var u=0;u<i;++u)n[c++]=t(e[u]+" ",o[l],r).trim()}return n}function t(e,n,t){var r=n.charCodeAt(0);switch(33>r&&(r=(n=n.trim()).charCodeAt(0)),r){case 38:return n.replace(m,"$1"+e.trim());case 58:return e.trim()+n.replace(m,"$1"+e.trim());default:if(0<1*t&&0<n.indexOf("\f"))return n.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+n}function r(e,n,t,a){var i=e+";",l=2*n+3*t+4*a;if(944===l){e=i.indexOf(":",9)+1;var c=i.substring(e,i.length-1).trim();return c=i.substring(0,e).trim()+c+";",1===P||2===P&&o(c,1)?"-webkit-"+c+c:c}if(0===P||2===P&&!o(i,1))return i;switch(l){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(E,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(c=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+c+i;case 1005:return d.test(i)?i.replace(f,":-webkit-")+i.replace(f,":-moz-")+i:i;case 1e3:switch(n=(c=i.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(n)){case 226:c=i.replace(g,"tb");break;case 232:c=i.replace(g,"tb-rl");break;case 220:c=i.replace(g,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+c+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(n=(i=e).length-10,l=(c=(33===i.charCodeAt(n)?i.substring(0,n):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:i=i.replace(c,"-webkit-"+c)+";"+i;break;case 207:case 102:i=i.replace(c,"-webkit-"+(102<l?"inline-":"")+"box")+";"+i.replace(c,"-webkit-"+c)+";"+i.replace(c,"-ms-"+c+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return c=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+c+"-ms-flex-"+c+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(O,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(O,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===C.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),n,t,a).replace(":fill-available",":stretch"):i.replace(c,"-webkit-"+c)+i.replace(c,"-moz-"+c.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===t+a&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+i}return i}function o(e,n){var t=e.indexOf(1===n?":":"{"),r=e.substring(0,3!==n?t:10);return t=e.substring(t+1,e.length-1),T(2!==n?r:r.replace(k,"$1"),t,n)}function a(e,n){var t=r(n,n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2));return t!==n+";"?t.replace(x," or ($1)").substring(4):"("+n+")"}function i(e,n,t,r,o,a,i,l,u,s){for(var f,d=0,p=n;d<M;++d)switch(f=I[d].call(c,e,p,t,r,o,a,i,l,u,s)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==n)return p}function l(e){return void 0!==(e=e.prefix)&&(T=null,e?"function"!=typeof e?P=1:(P=2,T=e):P=0),l}function c(e,t){var l=e;if(33>l.charCodeAt(0)&&(l=l.trim()),l=[l],0<M){var c=i(-1,t,l,l,S,j,0,0,0,0);void 0!==c&&"string"==typeof c&&(t=c)}var f=function e(t,l,c,f,d){for(var p,h,m,g,x,O=0,k=0,C=0,E=0,I=0,T=0,R=m=p=0,N=0,L=0,F=0,D=0,B=c.length,U=B-1,H="",q="",V="",$="";N<B;){if(h=c.charCodeAt(N),N===U&&0!==k+E+C+O&&(0!==k&&(h=47===k?10:47),E=C=O=0,B++,U++),0===k+E+C+O){if(N===U&&(0<L&&(H=H.replace(s,"")),0<H.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:H+=c.charAt(N)}h=59}switch(h){case 123:for(p=(H=H.trim()).charCodeAt(0),m=1,D=++N;N<B;){switch(h=c.charCodeAt(N)){case 123:m++;break;case 125:m--;break;case 47:switch(h=c.charCodeAt(N+1)){case 42:case 47:e:{for(R=N+1;R<U;++R)switch(c.charCodeAt(R)){case 47:if(42===h&&42===c.charCodeAt(R-1)&&N+2!==R){N=R+1;break e}break;case 10:if(47===h){N=R+1;break e}}N=R}}break;case 91:h++;case 40:h++;case 34:case 39:for(;N++<U&&c.charCodeAt(N)!==h;);}if(0===m)break;N++}switch(m=c.substring(D,N),0===p&&(p=(H=H.replace(u,"").trim()).charCodeAt(0)),p){case 64:switch(0<L&&(H=H.replace(s,"")),h=H.charCodeAt(1)){case 100:case 109:case 115:case 45:L=l;break;default:L=A}if(D=(m=e(l,L,m,h,d+1)).length,0<M&&(x=i(3,m,L=n(A,H,F),l,S,j,D,h,d,f),H=L.join(""),void 0!==x&&0===(D=(m=x.trim()).length)&&(h=0,m="")),0<D)switch(h){case 115:H=H.replace(w,a);case 100:case 109:case 45:m=H+"{"+m+"}";break;case 107:m=(H=H.replace(b,"$1 $2"))+"{"+m+"}",m=1===P||2===P&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=H+m,112===f&&(q+=m,m="")}else m="";break;default:m=e(l,n(l,H,F),m,f,d+1)}V+=m,m=F=L=R=p=0,H="",h=c.charCodeAt(++N);break;case 125:case 59:if(1<(D=(H=(0<L?H.replace(s,""):H).trim()).length))switch(0===R&&(p=H.charCodeAt(0),45===p||96<p&&123>p)&&(D=(H=H.replace(" ",":")).length),0<M&&void 0!==(x=i(1,H,l,t,S,j,q.length,f,d,f))&&0===(D=(H=x.trim()).length)&&(H="\0\0"),p=H.charCodeAt(0),h=H.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){$+=H+c.charAt(N);break}default:58!==H.charCodeAt(D-1)&&(q+=r(H,p,h,H.charCodeAt(2)))}F=L=R=p=0,H="",h=c.charCodeAt(++N)}}switch(h){case 13:case 10:47===k?k=0:0===1+p&&107!==f&&0<H.length&&(L=1,H+="\0"),0<M*z&&i(0,H,l,t,S,j,q.length,f,d,f),j=1,S++;break;case 59:case 125:if(0===k+E+C+O){j++;break}default:switch(j++,g=c.charAt(N),h){case 9:case 32:if(0===E+O+k)switch(I){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===E+k+O&&(L=F=1,g="\f"+g);break;case 108:if(0===E+k+O+_&&0<R)switch(N-R){case 2:112===I&&58===c.charCodeAt(N-3)&&(_=I);case 8:111===T&&(_=T)}break;case 58:0===E+k+O&&(R=N);break;case 44:0===k+C+E+O&&(L=1,g+="\r");break;case 34:case 39:0===k&&(E=E===h?0:0===E?h:E);break;case 91:0===E+k+C&&O++;break;case 93:0===E+k+C&&O--;break;case 41:0===E+k+O&&C--;break;case 40:if(0===E+k+O){if(0===p)switch(2*I+3*T){case 533:break;default:p=1}C++}break;case 64:0===k+C+E+O+R+m&&(m=1);break;case 42:case 47:if(!(0<E+O+C))switch(k){case 0:switch(2*h+3*c.charCodeAt(N+1)){case 235:k=47;break;case 220:D=N,k=42}break;case 42:47===h&&42===I&&D+2!==N&&(33===c.charCodeAt(D+2)&&(q+=c.substring(D,N+1)),g="",k=0)}}0===k&&(H+=g)}T=I,I=h,N++}if(0<(D=q.length)){if(L=l,0<M&&(void 0!==(x=i(2,q,L,t,S,j,D,f,d,f))&&0===(q=x).length))return $+q+V;if(q=L.join(",")+"{"+q+"}",0!=P*_){switch(2!==P||o(q,2)||(_=0),_){case 111:q=q.replace(y,":-moz-$1")+q;break;case 112:q=q.replace(v,"::-webkit-input-$1")+q.replace(v,"::-moz-$1")+q.replace(v,":-ms-input-$1")+q}_=0}}return $+q+V}(A,l,t,0,0);return 0<M&&(void 0!==(c=i(-2,f,l,l,S,j,f.length,0,0,0))&&(f=c)),"",_=0,j=S=1,f}var u=/^\0+/g,s=/[\0\r\f]/g,f=/: */g,d=/zoo|gra/,p=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,g=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,O=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,C=/stretch|:\s*\w+\-(?:conte|avail)/,E=/([^-])(image-set\()/,j=1,S=1,_=0,P=1,A=[],I=[],M=0,T=null,z=0;return c.use=function e(n){switch(n){case void 0:case null:M=I.length=0;break;default:if("function"==typeof n)I[M++]=n;else if("object"==typeof n)for(var t=0,r=n.length;t<r;++t)e(n[t]);else z=0|!!n}return e},c.set=l,void 0!==e&&l(e),c}},function(e,n,t){"use strict";n.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M12 20a8 8 0 0 1-8-8a8 8 0 0 1 8-8a8 8 0 0 1 8 8a8 8 0 0 1-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2m0 7a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M5.5 7A1.5 1.5 0 0 1 4 5.5A1.5 1.5 0 0 1 5.5 4A1.5 1.5 0 0 1 7 5.5A1.5 1.5 0 0 1 5.5 7m15.91 4.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.11 0-2 .89-2 2v7c0 .55.22 1.05.59 1.41l8.99 9c.37.36.87.59 1.42.59c.55 0 1.05-.23 1.41-.59l7-7c.37-.36.59-.86.59-1.41c0-.56-.23-1.06-.59-1.42z" fill="currentColor"/>',width:24,height:24}},function(e,n){n.__esModule=!0,n.default={body:'<path d="M15 9H5V5h10m-3 14a3 3 0 0 1-3-3a3 3 0 0 1 3-3a3 3 0 0 1 3 3a3 3 0 0 1-3 3m5-16H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V7l-4-4z" fill="currentColor"/>',width:24,height:24}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,o=t(119),a=(r=o)&&r.__esModule?r:{default:r};n.default=a.default,e.exports=n.default},function(e,n){n.__esModule=!0,n.default={body:'<path d="M22 16a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2h12a2 2 0 0 1 2 2v12m-6 4v2H4a2 2 0 0 1-2-2V7h2v13h12m-3-6l7-7l-1.41-1.41L13 11.17L9.91 8.09L8.5 9.5L13 14z" fill="currentColor"/>',width:24,height:24}},function(e,n,t){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=Array.isArray,a=Object.keys,i=Object.prototype.hasOwnProperty;e.exports=function e(n,t){if(n===t)return!0;if(n&&t&&"object"==r(n)&&"object"==r(t)){var l,c,u,s=o(n),f=o(t);if(s&&f){if((c=n.length)!=t.length)return!1;for(l=c;0!=l--;)if(!e(n[l],t[l]))return!1;return!0}if(s!=f)return!1;var d=n instanceof Date,p=t instanceof Date;if(d!=p)return!1;if(d&&p)return n.getTime()==t.getTime();var h=n instanceof RegExp,m=t instanceof RegExp;if(h!=m)return!1;if(h&&m)return n.toString()==t.toString();var b=a(n);if((c=b.length)!==a(t).length)return!1;for(l=c;0!=l--;)if(!i.call(t,b[l]))return!1;for(l=c;0!=l--;)if(!e(n[u=b[l]],t[u]))return!1;return!0}return n!=n&&t!=t}},function(e,n,t){"use strict";var r=t(110);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,n,t,o,a,i){if(i!==r){var l=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 l.name="Invariant Violation",l}}function n(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:a,resetWarningCache:o};return t.PropTypes=t,t}},function(e,n,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,n){n.__esModule=!0,n.default={body:'<path d="M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-1.84 1.83l3.75 3.75M3 17.25V21h3.75L17.81 9.93l-3.75-3.75L3 17.25z" fill="currentColor"/>',width:24,height:24}},function(e,n){var t,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var c,u=[],s=!1,f=-1;function d(){s&&c&&(s=!1,c.length?u=c.concat(u):f=-1,u.length&&p())}function p(){if(!s){var e=l(d);s=!0;for(var n=u.length;n;){for(c=u,u=[];++f<n;)c&&c[f].run();f=-1,n=u.length}c=null,s=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(n){try{return r.call(null,e)}catch(n){return r.call(this,e)}}}(e)}}function h(e,n){this.fun=e,this.array=n}function m(){}o.nextTick=function(e){var n=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)n[t-1]=arguments[t];u.push(new h(e,n)),1!==u.length||s||l(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,n,t){"use strict";
|
14 |
/** @license React v16.13.1
|
15 |
* react-is.production.min.js
|
16 |
*
|
18 |
*
|
19 |
* This source code is licensed under the MIT license found in the
|
20 |
* LICENSE file in the root directory of this source tree.
|
21 |
+
*/var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,b=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function O(e){if("object"==typeof e&&null!==e){var n=e.$$typeof;switch(n){case o:switch(e=e.type){case f:case d:case i:case c:case l:case h:return e;default:switch(e=e&&e.$$typeof){case s:case p:case v:case b:case u:return e;default:return n}}case a:return n}}}function k(e){return O(e)===d}n.AsyncMode=f,n.ConcurrentMode=d,n.ContextConsumer=s,n.ContextProvider=u,n.Element=o,n.ForwardRef=p,n.Fragment=i,n.Lazy=v,n.Memo=b,n.Portal=a,n.Profiler=c,n.StrictMode=l,n.Suspense=h,n.isAsyncMode=function(e){return k(e)||O(e)===f},n.isConcurrentMode=k,n.isContextConsumer=function(e){return O(e)===s},n.isContextProvider=function(e){return O(e)===u},n.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},n.isForwardRef=function(e){return O(e)===p},n.isFragment=function(e){return O(e)===i},n.isLazy=function(e){return O(e)===v},n.isMemo=function(e){return O(e)===b},n.isPortal=function(e){return O(e)===a},n.isProfiler=function(e){return O(e)===c},n.isStrictMode=function(e){return O(e)===l},n.isSuspense=function(e){return O(e)===h},n.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===c||e===l||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===b||e.$$typeof===u||e.$$typeof===s||e.$$typeof===p||e.$$typeof===g||e.$$typeof===w||e.$$typeof===x||e.$$typeof===y)},n.typeOf=O},function(e,n,t){"use strict";var r=Object.prototype.hasOwnProperty,o="~";function a(){}function i(e,n,t){this.fn=e,this.context=n,this.once=t||!1}function l(e,n,t,r,a){if("function"!=typeof t)throw new TypeError("The listener must be a function");var l=new i(t,r||e,a),c=o?o+n:n;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],l]:e._events[c].push(l):(e._events[c]=l,e._eventsCount++),e}function c(e,n){0==--e._eventsCount?e._events=new a:delete e._events[n]}function u(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),(new a).__proto__||(o=!1)),u.prototype.eventNames=function(){var e,n,t=[];if(0===this._eventsCount)return t;for(n in e=this._events)r.call(e,n)&&t.push(o?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(e)):t},u.prototype.listeners=function(e){var n=o?o+e:e,t=this._events[n];if(!t)return[];if(t.fn)return[t.fn];for(var r=0,a=t.length,i=new Array(a);r<a;r++)i[r]=t[r].fn;return i},u.prototype.listenerCount=function(e){var n=o?o+e:e,t=this._events[n];return t?t.fn?1:t.length:0},u.prototype.emit=function(e,n,t,r,a,i){var l=o?o+e:e;if(!this._events[l])return!1;var c,u,s=this._events[l],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(e,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,n),!0;case 3:return s.fn.call(s.context,n,t),!0;case 4:return s.fn.call(s.context,n,t,r),!0;case 5:return s.fn.call(s.context,n,t,r,a),!0;case 6:return s.fn.call(s.context,n,t,r,a,i),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];s.fn.apply(s.context,c)}else{var d,p=s.length;for(u=0;u<p;u++)switch(s[u].once&&this.removeListener(e,s[u].fn,void 0,!0),f){case 1:s[u].fn.call(s[u].context);break;case 2:s[u].fn.call(s[u].context,n);break;case 3:s[u].fn.call(s[u].context,n,t);break;case 4:s[u].fn.call(s[u].context,n,t,r);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];s[u].fn.apply(s[u].context,c)}}return!0},u.prototype.on=function(e,n,t){return l(this,e,n,t,!1)},u.prototype.once=function(e,n,t){return l(this,e,n,t,!0)},u.prototype.removeListener=function(e,n,t,r){var a=o?o+e:e;if(!this._events[a])return this;if(!n)return c(this,a),this;var i=this._events[a];if(i.fn)i.fn!==n||r&&!i.once||t&&i.context!==t||c(this,a);else{for(var l=0,u=[],s=i.length;l<s;l++)(i[l].fn!==n||r&&!i[l].once||t&&i[l].context!==t)&&u.push(i[l]);u.length?this._events[a]=1===u.length?u[0]:u:c(this,a)}return this},u.prototype.removeAllListeners=function(e){var n;return e?(n=o?o+e:e,this._events[n]&&c(this,n)):(this._events=new a,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=o,u.EventEmitter=u,e.exports=u},function(e,n,t){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,n){if(n&&("object"===r(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function a(e){var n="function"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||(t=e,-1===Function.toString.call(t).indexOf("[native code]")))return e;var t;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return i(e,arguments,u(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,e)})(e)}function i(e,n,t){return(i=l()?Reflect.construct:function(e,n,t){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(e,r));return t&&c(o,t.prototype),o}).apply(null,arguments)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function c(e,n){return(c=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var s=t(116),f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&c(e,n)}(a,e);var n,t,r=(n=a,t=l(),function(){var e,r=u(n);if(t){var a=u(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return o(this,e)});function a(e){var n;return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),(n=r.call(this,e)).name="TimeoutError",n}return a}(a(Error)),d=function(e,n,t){return new Promise((function(r,o){if("number"!=typeof n||n<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(n!==1/0){var a=setTimeout((function(){if("function"!=typeof t){var a="string"==typeof t?t:"Promise timed out after ".concat(n," milliseconds"),i=t instanceof Error?t:new f(a);"function"==typeof e.cancel&&e.cancel(),o(i)}else try{r(t())}catch(e){o(e)}}),n);s(e.then(r,o),(function(){clearTimeout(a)}))}else r(e)}))};e.exports=d,e.exports.default=d,e.exports.TimeoutError=f},function(e,n,t){"use strict";e.exports=function(e,n){return n=n||function(){},e.then((function(e){return new Promise((function(e){e(n())})).then((function(){return e}))}),(function(e){return new Promise((function(e){e(n())})).then((function(){throw e}))}))}},function(e,n,t){"use strict";function r(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(n,"__esModule",{value:!0});var o=t(118),a=function(){function e(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),Object.defineProperty(this,"_queue",{enumerable:!0,configurable:!0,writable:!0,value:[]})}var n,t,a;return n=e,(t=[{key:"enqueue",value:function(e,n){var t={priority:(n=Object.assign({priority:0},n)).priority,run:e};if(this.size&&this._queue[this.size-1].priority>=n.priority)this._queue.push(t);else{var r=o.default(this._queue,t,(function(e,n){return n.priority-e.priority}));this._queue.splice(r,0,t)}}},{key:"dequeue",value:function(){var e=this._queue.shift();return null==e?void 0:e.run}},{key:"filter",value:function(e){return this._queue.filter((function(n){return n.priority===e.priority})).map((function(e){return e.run}))}},{key:"size",get:function(){return this._queue.length}}])&&r(n.prototype,t),a&&r(n,a),e}();n.default=a},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n,t){for(var r=0,o=e.length;o>0;){var a=o/2|0,i=r+a;t(e[i],n)<=0?(r=++i,o-=a+1):o=a}return r}},function(e,n,t){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.bodyOpenClassName=n.portalClassName=void 0;var o=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},a=function(){function e(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(n,t,r){return t&&e(n.prototype,t),r&&e(n,r),n}}(),i=t(0),l=m(i),c=m(t(120)),u=m(t(2)),s=m(t(121)),f=function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}(t(65)),d=t(43),p=m(d),h=t(128);function m(e){return e&&e.__esModule?e:{default:e}}function b(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function v(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==r(n)&&"function"!=typeof n?e:n}var y=n.portalClassName="ReactModalPortal",g=n.bodyOpenClassName="ReactModal__Body--open",w=void 0!==c.default.createPortal,x=function(){return w?c.default.createPortal:c.default.unstable_renderSubtreeIntoContainer};function O(e){return e()}var k=function(e){function n(){var e,t,r;b(this,n);for(var a=arguments.length,i=Array(a),u=0;u<a;u++)i[u]=arguments[u];return t=r=v(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(i))),r.removePortal=function(){!w&&c.default.unmountComponentAtNode(r.node);var e=O(r.props.parentSelector);e?e.removeChild(r.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},r.portalRef=function(e){r.portal=e},r.renderPortal=function(e){var t=x()(r,l.default.createElement(s.default,o({defaultStyles:n.defaultStyles},e)),r.node);r.portalRef(t)},v(r,t)}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+r(n));e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(n,e),a(n,[{key:"componentDidMount",value:function(){d.canUseDOM&&(w||(this.node=document.createElement("div")),this.node.className=this.props.portalClassName,O(this.props.parentSelector).appendChild(this.node),!w&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:O(e.parentSelector),nextParent:O(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,n,t){if(d.canUseDOM){var r=this.props,o=r.isOpen,a=r.portalClassName;e.portalClassName!==a&&(this.node.className=a);var i=t.prevParent,l=t.nextParent;l!==i&&(i.removeChild(this.node),l.appendChild(this.node)),(e.isOpen||o)&&!w&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(d.canUseDOM&&this.node&&this.portal){var e=this.portal.state,n=Date.now(),t=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||n+this.props.closeTimeoutMS);t?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,t-n)):this.removePortal()}}},{key:"render",value:function(){return d.canUseDOM&&w?(!this.node&&w&&(this.node=document.createElement("div")),x()(l.default.createElement(s.default,o({ref:this.portalRef,defaultStyles:n.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){f.setElement(e)}}]),n}(i.Component);k.propTypes={isOpen:u.default.bool.isRequired,style:u.default.shape({content:u.default.object,overlay:u.default.object}),portalClassName:u.default.string,bodyOpenClassName:u.default.string,htmlOpenClassName:u.default.string,className:u.default.oneOfType([u.default.string,u.default.shape({base:u.default.string.isRequired,afterOpen:u.default.string.isRequired,beforeClose:u.default.string.isRequired})]),overlayClassName:u.default.oneOfType([u.default.string,u.default.shape({base:u.default.string.isRequired,afterOpen:u.default.string.isRequired,beforeClose:u.default.string.isRequired})]),appElement:u.default.instanceOf(p.default),onAfterOpen:u.default.func,onRequestClose:u.default.func,closeTimeoutMS:u.default.number,ariaHideApp:u.default.bool,shouldFocusAfterRender:u.default.bool,shouldCloseOnOverlayClick:u.default.bool,shouldReturnFocusAfterClose:u.default.bool,parentSelector:u.default.func,aria:u.default.object,data:u.default.object,role:u.default.string,contentLabel:u.default.string,shouldCloseOnEsc:u.default.bool,overlayRef:u.default.func,contentRef:u.default.func},k.defaultProps={isOpen:!1,portalClassName:y,bodyOpenClassName:g,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,parentSelector:function(){return document.body}},k.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,h.polyfill)(k),n.default=k},,function(e,n,t){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(n,"__esModule",{value:!0});var o=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},a="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)},i=function(){function e(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(n,t,r){return t&&e(n.prototype,t),r&&e(n,r),n}}(),l=t(0),c=v(l),u=v(t(2)),s=b(t(122)),f=v(t(123)),d=b(t(65)),p=b(t(126)),h=v(t(43)),m=v(t(67));function b(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}function v(e){return e&&e.__esModule?e:{default:e}}t(127);var y={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},g=0,w=function(e){function n(e){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==r(n)&&"function"!=typeof n?e:n}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.setOverlayRef=function(e){t.overlay=e,t.props.overlayRef&&t.props.overlayRef(e)},t.setContentRef=function(e){t.content=e,t.props.contentRef&&t.props.contentRef(e)},t.afterClose=function(){var e=t.props,n=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,a=e.bodyOpenClassName;a&&p.remove(document.body,a),o&&p.remove(document.getElementsByTagName("html")[0],o),r&&g>0&&0===(g-=1)&&d.show(n),t.props.shouldFocusAfterRender&&(t.props.shouldReturnFocusAfterClose?(s.returnFocus(),s.teardownScopedFocus()):s.popWithoutFocus()),t.props.onAfterClose&&t.props.onAfterClose(),m.default.deregister(t)},t.open=function(){t.beforeOpen(),t.state.afterOpen&&t.state.beforeClose?(clearTimeout(t.closeTimer),t.setState({beforeClose:!1})):(t.props.shouldFocusAfterRender&&(s.setupScopedFocus(t.node),s.markForFocusLater()),t.setState({isOpen:!0},(function(){t.setState({afterOpen:!0}),t.props.isOpen&&t.props.onAfterOpen&&t.props.onAfterOpen({overlayEl:t.overlay,contentEl:t.content})})))},t.close=function(){t.props.closeTimeoutMS>0?t.closeWithTimeout():t.closeWithoutTimeout()},t.focusContent=function(){return t.content&&!t.contentHasFocus()&&t.content.focus()},t.closeWithTimeout=function(){var e=Date.now()+t.props.closeTimeoutMS;t.setState({beforeClose:!0,closesAt:e},(function(){t.closeTimer=setTimeout(t.closeWithoutTimeout,t.state.closesAt-Date.now())}))},t.closeWithoutTimeout=function(){t.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},t.afterClose)},t.handleKeyDown=function(e){9===e.keyCode&&(0,f.default)(t.content,e),t.props.shouldCloseOnEsc&&27===e.keyCode&&(e.stopPropagation(),t.requestClose(e))},t.handleOverlayOnClick=function(e){null===t.shouldClose&&(t.shouldClose=!0),t.shouldClose&&t.props.shouldCloseOnOverlayClick&&(t.ownerHandlesClose()?t.requestClose(e):t.focusContent()),t.shouldClose=null},t.handleContentOnMouseUp=function(){t.shouldClose=!1},t.handleOverlayOnMouseDown=function(e){t.props.shouldCloseOnOverlayClick||e.target!=t.overlay||e.preventDefault()},t.handleContentOnClick=function(){t.shouldClose=!1},t.handleContentOnMouseDown=function(){t.shouldClose=!1},t.requestClose=function(e){return t.ownerHandlesClose()&&t.props.onRequestClose(e)},t.ownerHandlesClose=function(){return t.props.onRequestClose},t.shouldBeClosed=function(){return!t.state.isOpen&&!t.state.beforeClose},t.contentHasFocus=function(){return document.activeElement===t.content||t.content.contains(document.activeElement)},t.buildClassName=function(e,n){var r="object"===(void 0===n?"undefined":a(n))?n:{base:y[e],afterOpen:y[e]+"--after-open",beforeClose:y[e]+"--before-close"},o=r.base;return t.state.afterOpen&&(o=o+" "+r.afterOpen),t.state.beforeClose&&(o=o+" "+r.beforeClose),"string"==typeof n&&n?o+" "+n:o},t.attributesFromObject=function(e,n){return Object.keys(n).reduce((function(t,r){return t[e+"-"+r]=n[r],t}),{})},t.state={afterOpen:!1,beforeClose:!1},t.shouldClose=null,t.moveFromContentToOverlay=null,t}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+r(n));e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(n,e),i(n,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,n){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!n.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer)}},{key:"beforeOpen",value:function(){var e=this.props,n=e.appElement,t=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName;o&&p.add(document.body,o),r&&p.add(document.getElementsByTagName("html")[0],r),t&&(g+=1,d.hide(n)),m.default.register(this)}},{key:"render",value:function(){var e=this.props,n=e.id,t=e.className,r=e.overlayClassName,a=e.defaultStyles,i=t?{}:a.content,l=r?{}:a.overlay;return this.shouldBeClosed()?null:c.default.createElement("div",{ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:o({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c.default.createElement("div",o({id:n,ref:this.setContentRef,style:o({},i,this.props.style.content),className:this.buildClassName("content",t),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",this.props.aria||{}),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),this.props.children))}}]),n}(l.Component);w.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},w.propTypes={isOpen:u.default.bool.isRequired,defaultStyles:u.default.shape({content:u.default.object,overlay:u.default.object}),style:u.default.shape({content:u.default.object,overlay:u.default.object}),className:u.default.oneOfType([u.default.string,u.default.object]),overlayClassName:u.default.oneOfType([u.default.string,u.default.object]),bodyOpenClassName:u.default.string,htmlOpenClassName:u.default.string,ariaHideApp:u.default.bool,appElement:u.default.instanceOf(h.default),onAfterOpen:u.default.func,onAfterClose:u.default.func,onRequestClose:u.default.func,closeTimeoutMS:u.default.number,shouldFocusAfterRender:u.default.bool,shouldCloseOnOverlayClick:u.default.bool,shouldReturnFocusAfterClose:u.default.bool,role:u.default.string,contentLabel:u.default.string,aria:u.default.object,data:u.default.object,children:u.default.node,shouldCloseOnEsc:u.default.bool,overlayRef:u.default.func,contentRef:u.default.func,id:u.default.string,testId:u.default.string},n.default=w,e.exports=n.default},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.handleBlur=u,n.handleFocus=s,n.markForFocusLater=function(){i.push(document.activeElement)},n.returnFocus=function(){var e=null;try{return void(0!==i.length&&(e=i.pop()).focus())}catch(n){console.warn(["You tried to return focus to",e,"but it is not in the DOM anymore"].join(" "))}},n.popWithoutFocus=function(){i.length>0&&i.pop()},n.setupScopedFocus=function(e){l=e,window.addEventListener?(window.addEventListener("blur",u,!1),document.addEventListener("focus",s,!0)):(window.attachEvent("onBlur",u),document.attachEvent("onFocus",s))},n.teardownScopedFocus=function(){l=null,window.addEventListener?(window.removeEventListener("blur",u),document.removeEventListener("focus",s)):(window.detachEvent("onBlur",u),document.detachEvent("onFocus",s))};var r,o=t(64),a=(r=o)&&r.__esModule?r:{default:r};var i=[],l=null,c=!1;function u(){c=!0}function s(){if(c){if(c=!1,!l)return;setTimeout((function(){l.contains(document.activeElement)||((0,a.default)(l)[0]||l).focus()}),0)}}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n){var t=(0,a.default)(e);if(!t.length)return void n.preventDefault();var r=void 0,o=n.shiftKey,i=t[0],l=t[t.length-1];if(e===document.activeElement){if(!o)return;r=l}l!==document.activeElement||o||(r=i);i===document.activeElement&&o&&(r=l);if(r)return n.preventDefault(),void r.focus();var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==c||"Chrome"==c[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var u=t.indexOf(document.activeElement);u>-1&&(u+=o?-1:1);if(void 0===(r=t[u]))return n.preventDefault(),void(r=o?l:i).focus();n.preventDefault(),r.focus()};var r,o=t(64),a=(r=o)&&r.__esModule?r:{default:r};e.exports=n.default},function(e,n,t){"use strict";var r=function(){};e.exports=r},function(e,n,t){var r;function o(e){return(o="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})(e)}
|
22 |
/*!
|
23 |
Copyright (c) 2015 Jed Watson.
|
24 |
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
classes/admin.php
CHANGED
@@ -67,31 +67,56 @@ class Meow_MFRH_Admin extends MeowCommon_Admin {
|
|
67 |
echo '<div id="mfrh-admin-settings"></div>';
|
68 |
}
|
69 |
|
70 |
-
function
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
return array(
|
72 |
-
'
|
73 |
-
'
|
74 |
-
'
|
75 |
-
'
|
76 |
-
'
|
77 |
-
'
|
78 |
-
'mfrh_undo' => get_option( 'mfrh_undo', false ),
|
79 |
-
'mfrh_move' => get_option( 'mfrh_move', false ),
|
80 |
-
'mfrh_manual_rename' => get_option( 'mfrh_manual_rename', false ),
|
81 |
-
'mfrh_numbered_files' => $this->is_registered() && get_option( 'mfrh_numbered_files', false ),
|
82 |
-
'mfrh_sync_alt' => $this->is_registered() && get_option( 'mfrh_sync_alt', false ),
|
83 |
-
'mfrh_sync_media_title' => $this->is_registered() && get_option( 'mfrh_sync_media_title', false ),
|
84 |
-
'mfrh_force_rename' => $this->is_registered() && get_option( 'mfrh_force_rename', false ),
|
85 |
-
'mfrh_log' => get_option( 'mfrh_log', false ),
|
86 |
-
'mfrh_logsql' => $this->is_registered() && get_option( 'mfrh_logsql', false ),
|
87 |
-
'mfrh_rename_guid' => get_option( 'mfrh_rename_guid', false ),
|
88 |
-
'mfrh_case_insensitive_check' => get_option( 'mfrh_case_insensitive_check', false ),
|
89 |
-
'mfrh_rename_on_save' => get_option( 'mfrh_rename_on_save', false ),
|
90 |
-
'mfrh_acf_field_name' => get_option( 'mfrh_acf_field_name' ),
|
91 |
-
'mfrh_images_only' => get_option( 'mfrh_images_only', false ),
|
92 |
-
'mfrh_posts_per_page' => get_option( 'mfrh_posts_per_page', 10 )
|
93 |
);
|
94 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
}
|
96 |
|
97 |
?>
|
67 |
echo '<div id="mfrh-admin-settings"></div>';
|
68 |
}
|
69 |
|
70 |
+
function list_options() {
|
71 |
+
return array(
|
72 |
+
'mfrh_auto_rename' => false,
|
73 |
+
'mfrh_on_upload' => false,
|
74 |
+
'mfrh_rename_slug' => false,
|
75 |
+
'mfrh_convert_to_ascii' => false,
|
76 |
+
'mfrh_update_posts' => true,
|
77 |
+
'mfrh_update_postmeta' => true,
|
78 |
+
'mfrh_undo' => false,
|
79 |
+
'mfrh_move' => false,
|
80 |
+
'mfrh_manual_rename' => false,
|
81 |
+
'mfrh_numbered_files' => false,
|
82 |
+
'mfrh_sync_alt' => false,
|
83 |
+
'mfrh_sync_media_title' => false,
|
84 |
+
'mfrh_force_rename' => false,
|
85 |
+
'mfrh_log' => false,
|
86 |
+
'mfrh_logsql' => false,
|
87 |
+
'mfrh_rename_guid' => false,
|
88 |
+
'mfrh_case_insensitive_check' => false,
|
89 |
+
'mfrh_rename_on_save' => false,
|
90 |
+
'mfrh_acf_field_name' => false,
|
91 |
+
'mfrh_images_only' => false,
|
92 |
+
'mfrh_posts_per_page' => 10,
|
93 |
+
);
|
94 |
+
}
|
95 |
+
|
96 |
+
function needs_registered_options() {
|
97 |
return array(
|
98 |
+
'mfrh_convert_to_ascii',
|
99 |
+
'mfrh_numbered_files',
|
100 |
+
'mfrh_sync_alt',
|
101 |
+
'mfrh_sync_media_title',
|
102 |
+
'mfrh_force_rename',
|
103 |
+
'mfrh_logsql',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
);
|
105 |
}
|
106 |
+
|
107 |
+
function get_all_options() {
|
108 |
+
$options = $this->list_options();
|
109 |
+
$needs_registered_options = $this->needs_registered_options();
|
110 |
+
$current_options = array();
|
111 |
+
foreach ( $options as $option => $default ) {
|
112 |
+
if (in_array($option, $needs_registered_options)) {
|
113 |
+
$current_options[$option] = $this->is_registered() && get_option( $option, $default );
|
114 |
+
continue;
|
115 |
+
}
|
116 |
+
$current_options[$option] = get_option( $option, $default );
|
117 |
+
}
|
118 |
+
return $current_options;
|
119 |
+
}
|
120 |
}
|
121 |
|
122 |
?>
|
classes/core.php
CHANGED
@@ -1142,4 +1142,18 @@ SQL;
|
|
1142 |
function is_locked( $post ) {
|
1143 |
return get_post_meta( $post instanceof WP_Post ? $post->ID : $post, '_manual_file_renaming', true ) === true;
|
1144 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1145 |
}
|
1142 |
function is_locked( $post ) {
|
1143 |
return get_post_meta( $post instanceof WP_Post ? $post->ID : $post, '_manual_file_renaming', true ) === true;
|
1144 |
}
|
1145 |
+
|
1146 |
+
/**
|
1147 |
+
*
|
1148 |
+
* Roles & Access Rights
|
1149 |
+
*
|
1150 |
+
*/
|
1151 |
+
|
1152 |
+
public function can_access_settings() {
|
1153 |
+
return apply_filters( 'mfrh_allow_setup', current_user_can( 'manage_options' ) );
|
1154 |
+
}
|
1155 |
+
|
1156 |
+
public function can_access_features() {
|
1157 |
+
return apply_filters( 'mfrh_allow_usage', current_user_can( 'administrator' ) );
|
1158 |
+
}
|
1159 |
}
|
classes/rest.php
CHANGED
@@ -31,12 +31,12 @@ class Meow_MFRH_Rest
|
|
31 |
if ( $this->allow_setup ) {
|
32 |
register_rest_route( $this->namespace, '/update_option', array(
|
33 |
'methods' => 'POST',
|
34 |
-
'permission_callback' => '
|
35 |
'callback' => array( $this, 'rest_update_option' )
|
36 |
) );
|
37 |
register_rest_route( $this->namespace, '/all_settings', array(
|
38 |
'methods' => 'GET',
|
39 |
-
'permission_callback' => '
|
40 |
'callback' => array( $this, 'rest_all_settings' )
|
41 |
) );
|
42 |
}
|
@@ -45,7 +45,7 @@ class Meow_MFRH_Rest
|
|
45 |
if ( $this->allow_usage ) {
|
46 |
register_rest_route( $this->namespace, '/stats', array(
|
47 |
'methods' => 'GET',
|
48 |
-
'permission_callback' => '
|
49 |
'callback' => array( $this, 'rest_get_stats' ),
|
50 |
'args' => array(
|
51 |
'search' => array( 'required' => false ),
|
@@ -53,7 +53,7 @@ class Meow_MFRH_Rest
|
|
53 |
) );
|
54 |
register_rest_route( $this->namespace, '/media', array(
|
55 |
'methods' => 'GET',
|
56 |
-
'permission_callback' => '
|
57 |
'callback' => array( $this, 'rest_media' ),
|
58 |
'args' => array(
|
59 |
'limit' => array( 'required' => false, 'default' => 10 ),
|
@@ -68,54 +68,54 @@ class Meow_MFRH_Rest
|
|
68 |
) );
|
69 |
register_rest_route( $this->namespace, '/analyze', array(
|
70 |
'methods' => 'POST',
|
71 |
-
'permission_callback' => '
|
72 |
'callback' => array( $this, 'rest_analyze' )
|
73 |
) );
|
74 |
register_rest_route( $this->namespace, '/auto_attach', array(
|
75 |
'methods' => 'POST',
|
76 |
-
'permission_callback' => '
|
77 |
'callback' => array( $this, 'rest_auto_attach' )
|
78 |
) );
|
79 |
register_rest_route( $this->namespace, '/get_all_ids', array(
|
80 |
'methods' => 'POST',
|
81 |
-
'permission_callback' => '
|
82 |
'callback' => array( $this, 'rest_get_all_ids' )
|
83 |
) );
|
84 |
register_rest_route( $this->namespace, '/get_all_post_ids', array(
|
85 |
'methods' => 'POST',
|
86 |
-
'permission_callback' => '
|
87 |
'callback' => array( $this, 'rest_get_all_post_ids' )
|
88 |
) );
|
89 |
|
90 |
// ACTIONS
|
91 |
register_rest_route( $this->namespace, '/set_lock', array(
|
92 |
'methods' => 'POST',
|
93 |
-
'permission_callback' => '
|
94 |
'callback' => array( $this, 'rest_set_lock' )
|
95 |
) );
|
96 |
register_rest_route( $this->namespace, '/rename', array(
|
97 |
'methods' => 'POST',
|
98 |
-
'permission_callback' => '
|
99 |
'callback' => array( $this, 'rest_rename' )
|
100 |
) );
|
101 |
register_rest_route( $this->namespace, '/move', array(
|
102 |
'methods' => 'POST',
|
103 |
-
'permission_callback' => '
|
104 |
'callback' => array( $this, 'rest_move' )
|
105 |
) );
|
106 |
register_rest_route( $this->namespace, '/undo', array(
|
107 |
'methods' => 'POST',
|
108 |
-
'permission_callback' => '
|
109 |
'callback' => array( $this, 'rest_undo' )
|
110 |
) );
|
111 |
register_rest_route( $this->namespace, '/status', array(
|
112 |
'methods' => 'POST',
|
113 |
-
'permission_callback' => '
|
114 |
'callback' => array( $this, 'rest_status' )
|
115 |
) );
|
116 |
register_rest_route( $this->namespace, '/update_media', array(
|
117 |
'methods' => 'POST',
|
118 |
-
'permission_callback' => '
|
119 |
'callback' => array( $this, 'rest_update_media' )
|
120 |
) );
|
121 |
}
|
@@ -123,12 +123,12 @@ class Meow_MFRH_Rest
|
|
123 |
// LOGS
|
124 |
register_rest_route( $this->namespace, '/refresh_logs', array(
|
125 |
'methods' => 'POST',
|
126 |
-
'permission_callback' => '
|
127 |
'callback' => array( $this, 'refresh_logs' )
|
128 |
) );
|
129 |
register_rest_route( $this->namespace, '/clear_logs', array(
|
130 |
'methods' => 'POST',
|
131 |
-
'permission_callback' => '
|
132 |
'callback' => array( $this, 'clear_logs' )
|
133 |
) );
|
134 |
}
|
@@ -557,6 +557,10 @@ class Meow_MFRH_Rest
|
|
557 |
$params = $request->get_json_params();
|
558 |
try {
|
559 |
$name = $params['name'];
|
|
|
|
|
|
|
|
|
560 |
$value = is_bool( $params['value'] ) ? ( $params['value'] ? '1' : '' ) : $params['value'];
|
561 |
$success = update_option( $name, $value );
|
562 |
if ( !$success ) {
|
31 |
if ( $this->allow_setup ) {
|
32 |
register_rest_route( $this->namespace, '/update_option', array(
|
33 |
'methods' => 'POST',
|
34 |
+
'permission_callback' => array( $this->core, 'can_access_settings' ),
|
35 |
'callback' => array( $this, 'rest_update_option' )
|
36 |
) );
|
37 |
register_rest_route( $this->namespace, '/all_settings', array(
|
38 |
'methods' => 'GET',
|
39 |
+
'permission_callback' => array( $this->core, 'can_access_settings' ),
|
40 |
'callback' => array( $this, 'rest_all_settings' )
|
41 |
) );
|
42 |
}
|
45 |
if ( $this->allow_usage ) {
|
46 |
register_rest_route( $this->namespace, '/stats', array(
|
47 |
'methods' => 'GET',
|
48 |
+
'permission_callback' => array( $this->core, 'can_access_features' ),
|
49 |
'callback' => array( $this, 'rest_get_stats' ),
|
50 |
'args' => array(
|
51 |
'search' => array( 'required' => false ),
|
53 |
) );
|
54 |
register_rest_route( $this->namespace, '/media', array(
|
55 |
'methods' => 'GET',
|
56 |
+
'permission_callback' => array( $this->core, 'can_access_features' ),
|
57 |
'callback' => array( $this, 'rest_media' ),
|
58 |
'args' => array(
|
59 |
'limit' => array( 'required' => false, 'default' => 10 ),
|
68 |
) );
|
69 |
register_rest_route( $this->namespace, '/analyze', array(
|
70 |
'methods' => 'POST',
|
71 |
+
'permission_callback' => array( $this->core, 'can_access_features' ),
|
72 |
'callback' => array( $this, 'rest_analyze' )
|
73 |
) );
|
74 |
register_rest_route( $this->namespace, '/auto_attach', array(
|
75 |
'methods' => 'POST',
|
76 |
+
'permission_callback' => array( $this->core, 'can_access_features' ),
|
77 |
'callback' => array( $this, 'rest_auto_attach' )
|
78 |
) );
|
79 |
register_rest_route( $this->namespace, '/get_all_ids', array(
|
80 |
'methods' => 'POST',
|
81 |
+
'permission_callback' => array( $this->core, 'can_access_features' ),
|
82 |
'callback' => array( $this, 'rest_get_all_ids' )
|
83 |
) );
|
84 |
register_rest_route( $this->namespace, '/get_all_post_ids', array(
|
85 |
'methods' => 'POST',
|
86 |
+
'permission_callback' => array( $this->core, 'can_access_features' ),
|
87 |
'callback' => array( $this, 'rest_get_all_post_ids' )
|
88 |
) );
|
89 |
|
90 |
// ACTIONS
|
91 |
register_rest_route( $this->namespace, '/set_lock', array(
|
92 |
'methods' => 'POST',
|
93 |
+
'permission_callback' => array( $this->core, 'can_access_features' ),
|
94 |
'callback' => array( $this, 'rest_set_lock' )
|
95 |
) );
|
96 |
register_rest_route( $this->namespace, '/rename', array(
|
97 |
'methods' => 'POST',
|
98 |
+
'permission_callback' => array( $this->core, 'can_access_features' ),
|
99 |
'callback' => array( $this, 'rest_rename' )
|
100 |
) );
|
101 |
register_rest_route( $this->namespace, '/move', array(
|
102 |
'methods' => 'POST',
|
103 |
+
'permission_callback' => array( $this->core, 'can_access_features' ),
|
104 |
'callback' => array( $this, 'rest_move' )
|
105 |
) );
|
106 |
register_rest_route( $this->namespace, '/undo', array(
|
107 |
'methods' => 'POST',
|
108 |
+
'permission_callback' => array( $this->core, 'can_access_features' ),
|
109 |
'callback' => array( $this, 'rest_undo' )
|
110 |
) );
|
111 |
register_rest_route( $this->namespace, '/status', array(
|
112 |
'methods' => 'POST',
|
113 |
+
'permission_callback' => array( $this->core, 'can_access_features' ),
|
114 |
'callback' => array( $this, 'rest_status' )
|
115 |
) );
|
116 |
register_rest_route( $this->namespace, '/update_media', array(
|
117 |
'methods' => 'POST',
|
118 |
+
'permission_callback' => array( $this->core, 'can_access_features' ),
|
119 |
'callback' => array( $this, 'rest_update_media' )
|
120 |
) );
|
121 |
}
|
123 |
// LOGS
|
124 |
register_rest_route( $this->namespace, '/refresh_logs', array(
|
125 |
'methods' => 'POST',
|
126 |
+
'permission_callback' => array( $this->core, 'can_access_features' ),
|
127 |
'callback' => array( $this, 'refresh_logs' )
|
128 |
) );
|
129 |
register_rest_route( $this->namespace, '/clear_logs', array(
|
130 |
'methods' => 'POST',
|
131 |
+
'permission_callback' => array( $this->core, 'can_access_features' ),
|
132 |
'callback' => array( $this, 'clear_logs' )
|
133 |
) );
|
134 |
}
|
557 |
$params = $request->get_json_params();
|
558 |
try {
|
559 |
$name = $params['name'];
|
560 |
+
$options = $this->admin->list_options();
|
561 |
+
if ( !array_key_exists( $name, $options ) ) {
|
562 |
+
return new WP_REST_Response([ 'success' => false, 'message' => 'This option does not exist.' ], 200 );
|
563 |
+
}
|
564 |
$value = is_bool( $params['value'] ) ? ( $params['value'] ? '1' : '' ) : $params['value'];
|
565 |
$success = update_option( $name, $value );
|
566 |
if ( !$success ) {
|
common/admin.php
CHANGED
@@ -5,8 +5,8 @@ if ( !class_exists( 'MeowCommon_Admin' ) ) {
|
|
5 |
class MeowCommon_Admin {
|
6 |
|
7 |
public static $loaded = false;
|
8 |
-
public static $version = "3.
|
9 |
-
public static $admin_version = "3.
|
10 |
|
11 |
public $prefix; // prefix used for actions, filters (mfrh)
|
12 |
public $mainfile; // plugin main file (media-file-renamer.php)
|
5 |
class MeowCommon_Admin {
|
6 |
|
7 |
public static $loaded = false;
|
8 |
+
public static $version = "3.5";
|
9 |
+
public static $admin_version = "3.5";
|
10 |
|
11 |
public $prefix; // prefix used for actions, filters (mfrh)
|
12 |
public $mainfile; // plugin main file (media-file-renamer.php)
|
common/classes/rest.php
CHANGED
@@ -6,12 +6,6 @@ class MeowCommon_Classes_Rest
|
|
6 |
static public $instance = null;
|
7 |
|
8 |
static public function init_once() {
|
9 |
-
if ( !function_exists( 'wp_get_current_user' ) ) {
|
10 |
-
return;
|
11 |
-
}
|
12 |
-
if ( !current_user_can( 'administrator' ) ) {
|
13 |
-
return;
|
14 |
-
}
|
15 |
if ( !MeowCommon_Classes_Rest::$instance ) {
|
16 |
MeowCommon_Classes_Rest::$instance = new self();
|
17 |
}
|
@@ -22,28 +16,49 @@ class MeowCommon_Classes_Rest
|
|
22 |
}
|
23 |
|
24 |
function rest_api_init() {
|
|
|
|
|
|
|
25 |
register_rest_route( $this->namespace, '/empty_request/', [
|
26 |
'methods' => 'POST',
|
|
|
|
|
|
|
27 |
'callback' => [ $this, 'empty_request' ]
|
28 |
]);
|
29 |
register_rest_route( $this->namespace, '/file_operation/', [
|
30 |
'methods' => 'POST',
|
|
|
|
|
|
|
31 |
'callback' => [ $this, 'file_operation' ]
|
32 |
]);
|
33 |
register_rest_route( $this->namespace, '/sql_request/', [
|
34 |
'methods' => 'POST',
|
|
|
|
|
|
|
35 |
'callback' => [ $this, 'sql_request' ]
|
36 |
]);
|
37 |
register_rest_route( $this->namespace, '/error_logs/', [
|
38 |
'methods' => 'POST',
|
|
|
|
|
|
|
39 |
'callback' => [ $this, 'rest_error_logs' ]
|
40 |
]);
|
41 |
register_rest_route( $this->namespace, '/all_settings/', [
|
42 |
'methods' => 'GET',
|
|
|
|
|
|
|
43 |
'callback' => [ $this, 'rest_all_settings' ]
|
44 |
]);
|
45 |
register_rest_route( $this->namespace, '/update_option/', [
|
46 |
'methods' => 'POST',
|
|
|
|
|
|
|
47 |
'callback' => [ $this, 'rest_update_option' ]
|
48 |
]);
|
49 |
}
|
@@ -70,22 +85,44 @@ class MeowCommon_Classes_Rest
|
|
70 |
return new WP_REST_Response( [ 'success' => true, 'data' => $count ], 200 );
|
71 |
}
|
72 |
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
'
|
|
|
77 |
);
|
78 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
}
|
80 |
|
81 |
function rest_update_option( $request ) {
|
82 |
$params = $request->get_json_params();
|
83 |
try {
|
84 |
-
$
|
85 |
-
|
86 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
catch (Exception $e) {
|
88 |
-
return new WP_REST_Response([ 'success' => false, 'message' => $e->getMessage() ], 500 );
|
89 |
}
|
90 |
}
|
91 |
|
6 |
static public $instance = null;
|
7 |
|
8 |
static public function init_once() {
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
if ( !MeowCommon_Classes_Rest::$instance ) {
|
10 |
MeowCommon_Classes_Rest::$instance = new self();
|
11 |
}
|
16 |
}
|
17 |
|
18 |
function rest_api_init() {
|
19 |
+
if ( !current_user_can( 'administrator' ) ) {
|
20 |
+
return;
|
21 |
+
}
|
22 |
register_rest_route( $this->namespace, '/empty_request/', [
|
23 |
'methods' => 'POST',
|
24 |
+
'permission_callback' => function () {
|
25 |
+
return current_user_can( 'administrator' );
|
26 |
+
},
|
27 |
'callback' => [ $this, 'empty_request' ]
|
28 |
]);
|
29 |
register_rest_route( $this->namespace, '/file_operation/', [
|
30 |
'methods' => 'POST',
|
31 |
+
'permission_callback' => function () {
|
32 |
+
return current_user_can( 'administrator' );
|
33 |
+
},
|
34 |
'callback' => [ $this, 'file_operation' ]
|
35 |
]);
|
36 |
register_rest_route( $this->namespace, '/sql_request/', [
|
37 |
'methods' => 'POST',
|
38 |
+
'permission_callback' => function () {
|
39 |
+
return current_user_can( 'administrator' );
|
40 |
+
},
|
41 |
'callback' => [ $this, 'sql_request' ]
|
42 |
]);
|
43 |
register_rest_route( $this->namespace, '/error_logs/', [
|
44 |
'methods' => 'POST',
|
45 |
+
'permission_callback' => function () {
|
46 |
+
return current_user_can( 'administrator' );
|
47 |
+
},
|
48 |
'callback' => [ $this, 'rest_error_logs' ]
|
49 |
]);
|
50 |
register_rest_route( $this->namespace, '/all_settings/', [
|
51 |
'methods' => 'GET',
|
52 |
+
'permission_callback' => function () {
|
53 |
+
return current_user_can( 'administrator' );
|
54 |
+
},
|
55 |
'callback' => [ $this, 'rest_all_settings' ]
|
56 |
]);
|
57 |
register_rest_route( $this->namespace, '/update_option/', [
|
58 |
'methods' => 'POST',
|
59 |
+
'permission_callback' => function () {
|
60 |
+
return current_user_can( 'administrator' );
|
61 |
+
},
|
62 |
'callback' => [ $this, 'rest_update_option' ]
|
63 |
]);
|
64 |
}
|
85 |
return new WP_REST_Response( [ 'success' => true, 'data' => $count ], 200 );
|
86 |
}
|
87 |
|
88 |
+
// List all the options with their default values.
|
89 |
+
function list_options() {
|
90 |
+
return array(
|
91 |
+
'meowapps_hide_meowapps' => false,
|
92 |
+
'force_sslverify' => false
|
93 |
);
|
94 |
+
}
|
95 |
+
|
96 |
+
function get_all_options() {
|
97 |
+
$options = $this->list_options();
|
98 |
+
$current_options = array();
|
99 |
+
foreach ( $options as $option => $default ) {
|
100 |
+
$current_options[$option] = get_option( $option, $default );
|
101 |
+
}
|
102 |
+
return $current_options;
|
103 |
+
}
|
104 |
+
|
105 |
+
function rest_all_settings() {
|
106 |
+
return new WP_REST_Response( [ 'success' => true, 'data' => $this->get_all_options() ], 200 );
|
107 |
}
|
108 |
|
109 |
function rest_update_option( $request ) {
|
110 |
$params = $request->get_json_params();
|
111 |
try {
|
112 |
+
$name = $params['name'];
|
113 |
+
$options = $this->list_options();
|
114 |
+
if ( !array_key_exists( $name, $options ) ) {
|
115 |
+
return new WP_REST_Response([ 'success' => false, 'message' => 'This option does not exist.' ], 200 );
|
116 |
+
}
|
117 |
+
$value = is_bool( $params['value'] ) ? ( $params['value'] ? '1' : '' ) : $params['value'];
|
118 |
+
$success = update_option( $name, $value );
|
119 |
+
if ( !$success ) {
|
120 |
+
return new WP_REST_Response( [ 'success' => false, 'message' => 'Could not update option.' ], 200 );
|
121 |
+
}
|
122 |
+
return new WP_REST_Response( [ 'success' => true, 'data' => $value ], 200 );
|
123 |
+
}
|
124 |
catch (Exception $e) {
|
125 |
+
return new WP_REST_Response( [ 'success' => false, 'message' => $e->getMessage() ], 500 );
|
126 |
}
|
127 |
}
|
128 |
|
common/classes/rest_license.php
CHANGED
@@ -8,19 +8,22 @@ class MeowCommon_Classes_Rest_License
|
|
8 |
public function __construct( &$licenser ) {
|
9 |
$this->licenser = $licenser;
|
10 |
$this->namespace = "meow-licenser/{$licenser->prefix}/v1";
|
11 |
-
if ( !current_user_can( 'administrator' ) ) {
|
12 |
-
return;
|
13 |
-
}
|
14 |
add_action( 'rest_api_init', array( $this, 'rest_api_init' ) );
|
15 |
}
|
16 |
|
17 |
function rest_api_init() {
|
18 |
register_rest_route( $this->namespace, '/get_license/', [
|
19 |
'methods' => 'POST',
|
|
|
|
|
|
|
20 |
'callback' => [ $this, 'get_license' ]
|
21 |
]);
|
22 |
register_rest_route( $this->namespace, '/set_license/', [
|
23 |
'methods' => 'POST',
|
|
|
|
|
|
|
24 |
'callback' => [ $this, 'set_license' ]
|
25 |
]);
|
26 |
}
|
8 |
public function __construct( &$licenser ) {
|
9 |
$this->licenser = $licenser;
|
10 |
$this->namespace = "meow-licenser/{$licenser->prefix}/v1";
|
|
|
|
|
|
|
11 |
add_action( 'rest_api_init', array( $this, 'rest_api_init' ) );
|
12 |
}
|
13 |
|
14 |
function rest_api_init() {
|
15 |
register_rest_route( $this->namespace, '/get_license/', [
|
16 |
'methods' => 'POST',
|
17 |
+
'permission_callback' => function () {
|
18 |
+
return current_user_can( 'administrator' );
|
19 |
+
},
|
20 |
'callback' => [ $this, 'get_license' ]
|
21 |
]);
|
22 |
register_rest_route( $this->namespace, '/set_license/', [
|
23 |
'methods' => 'POST',
|
24 |
+
'permission_callback' => function () {
|
25 |
+
return current_user_can( 'administrator' );
|
26 |
+
},
|
27 |
'callback' => [ $this, 'set_license' ]
|
28 |
]);
|
29 |
}
|
common/img/contact-form-block.png
ADDED
Binary file
|
common/img/kinsta.png
DELETED
Binary file
|
common/img/meow-analytics.png
ADDED
Binary file
|
common/img/meowapps.png
DELETED
Binary file
|
common/img/stackpath.png
DELETED
Binary file
|
common/releases.txt
CHANGED
@@ -1,6 +1,10 @@
|
|
1 |
Releases of the Meow Commmon has to be carefully made, and version_compare
|
2 |
should be used when big changes are made.
|
3 |
|
|
|
|
|
|
|
|
|
4 |
= 3.4 (2021/08/05) =
|
5 |
* Sanitize and escaping.
|
6 |
|
1 |
Releases of the Meow Commmon has to be carefully made, and version_compare
|
2 |
should be used when big changes are made.
|
3 |
|
4 |
+
= 3.5 (2021/08/31) =
|
5 |
+
* Better security.
|
6 |
+
* New images.
|
7 |
+
|
8 |
= 3.4 (2021/08/05) =
|
9 |
* Sanitize and escaping.
|
10 |
|
media-file-renamer.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Media File Renamer
|
4 |
Plugin URI: https://meowapps.com
|
5 |
Description: Renames your media files for better SEO and a nicer filesystem (automatically or manually).
|
6 |
-
Version: 5.2.
|
7 |
Author: Jordy Meow
|
8 |
Author URI: https://meowapps.com
|
9 |
Text Domain: media-file-renamer
|
@@ -14,7 +14,7 @@ Originally developed for two of my websites:
|
|
14 |
- Haikyo (https://haikyo.org)
|
15 |
*/
|
16 |
|
17 |
-
define( 'MFRH_VERSION', '5.2.
|
18 |
define( 'MFRH_PREFIX', 'mfrh' );
|
19 |
define( 'MFRH_DOMAIN', 'media-file-renamer' );
|
20 |
define( 'MFRH_ENTRY', __FILE__ );
|
3 |
Plugin Name: Media File Renamer
|
4 |
Plugin URI: https://meowapps.com
|
5 |
Description: Renames your media files for better SEO and a nicer filesystem (automatically or manually).
|
6 |
+
Version: 5.2.6
|
7 |
Author: Jordy Meow
|
8 |
Author URI: https://meowapps.com
|
9 |
Text Domain: media-file-renamer
|
14 |
- Haikyo (https://haikyo.org)
|
15 |
*/
|
16 |
|
17 |
+
define( 'MFRH_VERSION', '5.2.6' );
|
18 |
define( 'MFRH_PREFIX', 'mfrh' );
|
19 |
define( 'MFRH_DOMAIN', 'media-file-renamer' );
|
20 |
define( 'MFRH_ENTRY', __FILE__ );
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: TigrouMeow
|
|
3 |
Tags: rename, file, media, move, seo, files, renamer, optimize, library, slug, change, modify
|
4 |
Donate link: https://commerce.coinbase.com/checkout/d047546a-77a8-41c8-9ea9-4a950f61832f
|
5 |
Requires at least: 5.0
|
6 |
-
Tested up to: 5.
|
7 |
-
Requires PHP:
|
8 |
-
Stable tag: 5.2.
|
9 |
|
10 |
Renames your media files for better SEO and a nicer filesystem (automatically or manually).
|
11 |
|
@@ -67,6 +67,11 @@ The plugin can be tweaked in many ways, there are many actions and filters avail
|
|
67 |
|
68 |
== Changelog ==
|
69 |
|
|
|
|
|
|
|
|
|
|
|
70 |
= 5.2.5 (2021/08/25) =
|
71 |
* Fix: Search feature was not always working well.
|
72 |
* Update: Better technical architecture.
|
@@ -88,7 +93,6 @@ The plugin can be tweaked in many ways, there are many actions and filters avail
|
|
88 |
|
89 |
= 5.1.9 (2021/04/09) =
|
90 |
* Fix: The Synchronize Alt option wasn't working logically.
|
91 |
-
* Note: The plugin has no known bugs for a while, and I am now happy to work on littke extra features :) By the way, if you like it, please review the plugin [by clicking here](https://wordpress.org/support/plugin/media-file-renamer/reviews/?rate=5#new-post). Thank you!
|
92 |
|
93 |
= 5.1.8 (2021/03/04) =
|
94 |
* Add: Search.
|
3 |
Tags: rename, file, media, move, seo, files, renamer, optimize, library, slug, change, modify
|
4 |
Donate link: https://commerce.coinbase.com/checkout/d047546a-77a8-41c8-9ea9-4a950f61832f
|
5 |
Requires at least: 5.0
|
6 |
+
Tested up to: 5.8
|
7 |
+
Requires PHP: 7.0
|
8 |
+
Stable tag: 5.2.6
|
9 |
|
10 |
Renames your media files for better SEO and a nicer filesystem (automatically or manually).
|
11 |
|
67 |
|
68 |
== Changelog ==
|
69 |
|
70 |
+
= 5.2.6 (2021/09/03) =
|
71 |
+
* Fix: Security update: access controls to the REST API and the options enforced.
|
72 |
+
* Updated: Dependencies update.
|
73 |
+
* Note: The plugin has no known bugs for a while, and I am now happy to work on littke extra features :) By the way, if you like it, please review the plugin [by clicking here](https://wordpress.org/support/plugin/media-file-renamer/reviews/?rate=5#new-post). Thank you!
|
74 |
+
|
75 |
= 5.2.5 (2021/08/25) =
|
76 |
* Fix: Search feature was not always working well.
|
77 |
* Update: Better technical architecture.
|
93 |
|
94 |
= 5.1.9 (2021/04/09) =
|
95 |
* Fix: The Synchronize Alt option wasn't working logically.
|
|
|
96 |
|
97 |
= 5.1.8 (2021/03/04) =
|
98 |
* Add: Search.
|