Current Path : /storage/v11800/affypharma/public_html/wp-content/plugins/wp-tag-groups/dist/

Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64

Upload File :
Current File : /storage/v11800/affypharma/public_html/wp-content/plugins/wp-tag-groups/dist/blocks.build.js
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=14)}([function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(p===setTimeout)return setTimeout(e,0);if((p===n||!p)&&setTimeout)return p=setTimeout,setTimeout(e,0);try{return p(e,0)}catch(t){try{return p.call(null,e,0)}catch(t){return p.call(this,e,0)}}}function i(e){if(c===clearTimeout)return clearTimeout(e);if((c===r||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(e);try{return c(e)}catch(t){try{return c.call(null,e)}catch(t){return c.call(this,e)}}}function a(){m&&d&&(m=!1,d.length?f=d.concat(f):g=-1,f.length&&l())}function l(){if(!m){var e=o(a);m=!0;for(var t=f.length;t;){for(d=f,f=[];++g<t;)d&&d[g].run();g=-1,t=f.length}d=null,m=!1,i(e)}}function s(e,t){this.fun=e,this.array=t}function u(){}var p,c,h=e.exports={};!function(){try{p="function"===typeof setTimeout?setTimeout:n}catch(e){p=n}try{c="function"===typeof clearTimeout?clearTimeout:r}catch(e){c=r}}();var d,f=[],m=!1,g=-1;h.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];f.push(new s(e,t)),1!==f.length||m||o(l)},s.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=u,h.addListener=u,h.once=u,h.off=u,h.removeListener=u,h.removeAllListeners=u,h.emit=u,h.prependListener=u,h.prependOnceListener=u,h.listeners=function(e){return[]},h.binding=function(e){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(e){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(e,t,n){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Object(o.a)(e,t,n[t])})}return e}t.a=r;var o=n(29)},function(e,t,n){"use strict";var r=n(18),o=n.n(r),i=n(23),a=n.n(i),l=n(10),s=n.n(l),u=n(9),p=n.n(u),c=n(24),h=(n.n(c),function(e){var t=e.onMouseDown;return p.a.createElement("span",{className:"Select-arrow",onMouseDown:t})});h.propTypes={onMouseDown:s.a.func};var d=function(){return p.a.createElement("span",{className:"Select-clear",dangerouslySetInnerHTML:{__html:"&times;"}})},f=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],m=function(e){for(var t=0;t<f.length;t++)e=e.replace(f[t].letters,f[t].base);return e},g=function(e){return e.replace(/^\s+|\s+$/g,"")},v=function(e){return"undefined"!==typeof e&&null!==e&&""!==e},y=function(e,t,n,r){return r.ignoreAccents&&(t=m(t)),r.ignoreCase&&(t=t.toLowerCase()),r.trimFilter&&(t=g(t)),n&&(n=n.map(function(e){return e[r.valueKey]})),e.filter(function(e){if(n&&n.indexOf(e[r.valueKey])>-1)return!1;if(r.filterOption)return r.filterOption.call(void 0,e,t);if(!t)return!0;var o=e[r.valueKey],i=e[r.labelKey],a=v(o),l=v(i);if(!a&&!l)return!1;var s=a?String(o):null,u=l?String(i):null;return r.ignoreAccents&&(s&&"label"!==r.matchProp&&(s=m(s)),u&&"value"!==r.matchProp&&(u=m(u))),r.ignoreCase&&(s&&"label"!==r.matchProp&&(s=s.toLowerCase()),u&&"value"!==r.matchProp&&(u=u.toLowerCase())),"start"===r.matchPos?s&&"label"!==r.matchProp&&s.substr(0,t.length)===t||u&&"value"!==r.matchProp&&u.substr(0,t.length)===t:s&&"label"!==r.matchProp&&s.indexOf(t)>=0||u&&"value"!==r.matchProp&&u.indexOf(t)>=0})},b=function(e){var t=e.focusedOption,n=e.focusOption,r=e.inputValue,o=e.instancePrefix,i=e.onFocus,l=e.onOptionRef,s=e.onSelect,u=e.optionClassName,c=e.optionComponent,h=e.optionRenderer,d=e.options,f=e.removeValue,m=e.selectValue,g=e.valueArray,v=e.valueKey,y=c;return d.map(function(e,c){var d=g&&g.some(function(t){return t[v]===e[v]}),b=e===t,_=a()(u,{"Select-option":!0,"is-selected":d,"is-focused":b,"is-disabled":e.disabled});return p.a.createElement(y,{className:_,focusOption:n,inputValue:r,instancePrefix:o,isDisabled:e.disabled,isFocused:b,isSelected:d,key:"option-"+c+"-"+e[v],onFocus:i,onSelect:s,option:e,optionIndex:c,ref:function(e){l(e,b)},removeValue:f,selectValue:m},h(e,c,r))})};b.propTypes={focusOption:s.a.func,focusedOption:s.a.object,inputValue:s.a.string,instancePrefix:s.a.string,onFocus:s.a.func,onOptionRef:s.a.func,onSelect:s.a.func,optionClassName:s.a.string,optionComponent:s.a.func,optionRenderer:s.a.func,options:s.a.array,removeValue:s.a.func,selectValue:s.a.func,valueArray:s.a.array,valueKey:s.a.string};var _=function(e){e.preventDefault(),e.stopPropagation(),"A"===e.target.tagName&&"href"in e.target&&(e.target.target?window.open(e.target.href,e.target.target):window.location.href=e.target.href)},E="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},w=(function(){function e(e){this.value=e}function t(t){function n(e,t){return new Promise(function(n,o){var l={key:e,arg:t,resolve:n,reject:o,next:null};a?a=a.next=l:(i=a=l,r(e,t))})}function r(n,i){try{var a=t[n](i),l=a.value;l instanceof e?Promise.resolve(l.value).then(function(e){r("next",e)},function(e){r("throw",e)}):o(a.done?"return":"normal",a.value)}catch(e){o("throw",e)}}function o(e,t){switch(e){case"return":i.resolve({value:t,done:!0});break;case"throw":i.reject(t);break;default:i.resolve({value:t,done:!1})}i=i.next,i?r(i.key,i.arg):a=null}var i,a;this._invoke=n,"function"!==typeof t.return&&(this.return=void 0)}"function"===typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),O=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),C=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},F=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},k=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},S=function(e){function t(e){w(this,t);var n=k(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.handleMouseEnter=n.handleMouseEnter.bind(n),n.handleMouseMove=n.handleMouseMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n.handleTouchEnd=n.handleTouchEnd.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.onFocus=n.onFocus.bind(n),n}return x(t,e),O(t,[{key:"handleMouseDown",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onSelect(this.props.option,e)}},{key:"handleMouseEnter",value:function(e){this.onFocus(e)}},{key:"handleMouseMove",value:function(e){this.onFocus(e)}},{key:"handleTouchEnd",value:function(e){this.dragging||this.handleMouseDown(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"onFocus",value:function(e){this.props.isFocused||this.props.onFocus(this.props.option,e)}},{key:"render",value:function(){var e=this.props,t=e.option,n=e.instancePrefix,r=e.optionIndex,o=a()(this.props.className,t.className);return t.disabled?p.a.createElement("div",{className:o,onMouseDown:_,onClick:_},this.props.children):p.a.createElement("div",{className:o,style:t.style,role:"option","aria-label":t.label,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,id:n+"-option-"+r,title:t.title},this.props.children)}}]),t}(p.a.Component);S.propTypes={children:s.a.node,className:s.a.string,instancePrefix:s.a.string.isRequired,isDisabled:s.a.bool,isFocused:s.a.bool,isSelected:s.a.bool,onFocus:s.a.func,onSelect:s.a.func,onUnfocus:s.a.func,option:s.a.object.isRequired,optionIndex:s.a.number};var T=function(e){function t(e){w(this,t);var n=k(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.onRemove=n.onRemove.bind(n),n.handleTouchEndRemove=n.handleTouchEndRemove.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n}return x(t,e),O(t,[{key:"handleMouseDown",value:function(e){if("mousedown"!==e.type||0===e.button)return this.props.onClick?(e.stopPropagation(),void this.props.onClick(this.props.value,e)):void(this.props.value.href&&e.stopPropagation())}},{key:"onRemove",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onRemove(this.props.value)}},{key:"handleTouchEndRemove",value:function(e){this.dragging||this.onRemove(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"renderRemoveIcon",value:function(){if(!this.props.disabled&&this.props.onRemove)return p.a.createElement("span",{className:"Select-value-icon","aria-hidden":"true",onMouseDown:this.onRemove,onTouchEnd:this.handleTouchEndRemove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove},"\xd7")}},{key:"renderLabel",value:function(){return this.props.onClick||this.props.value.href?p.a.createElement("a",{className:"Select-value-label",href:this.props.value.href,target:this.props.value.target,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleMouseDown},this.props.children):p.a.createElement("span",{className:"Select-value-label",role:"option","aria-selected":"true",id:this.props.id},this.props.children)}},{key:"render",value:function(){return p.a.createElement("div",{className:a()("Select-value",this.props.value.className),style:this.props.value.style,title:this.props.value.title},this.renderRemoveIcon(),this.renderLabel())}}]),t}(p.a.Component);T.propTypes={children:s.a.node,disabled:s.a.bool,id:s.a.string,onClick:s.a.func,onRemove:s.a.func,value:s.a.object.isRequired};var P=function(e){return"string"===typeof e?e:null!==e&&JSON.stringify(e)||""},j=s.a.oneOfType([s.a.string,s.a.node]),D=s.a.oneOfType([s.a.string,s.a.number]),N=1,I=function(e,t){var n=e.inputValue,r=e.isPseudoFocused,o=e.isFocused,i=t.onSelectResetsInput;return!n||!i&&!(!o&&r||o&&!r)},R=function(e,t,n){var r=e.inputValue,o=e.isPseudoFocused,i=e.isFocused,a=t.onSelectResetsInput;return!r||!a&&!n&&!o&&!i},V=function(e,t){var n="undefined"===typeof e?"undefined":E(e);if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var r=t.options,o=t.valueKey;if(r)for(var i=0;i<r.length;i++)if(String(r[i][o])===String(e))return r[i]},M=function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)},B=function(e){function t(e){w(this,t);var n=k(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return["clearValue","focusOption","getOptionLabel","handleInputBlur","handleInputChange","handleInputFocus","handleInputValueChange","handleKeyDown","handleMenuScroll","handleMouseDown","handleMouseDownOnArrow","handleMouseDownOnMenu","handleTouchEnd","handleTouchEndClearValue","handleTouchMove","handleTouchOutside","handleTouchStart","handleValueClick","onOptionRef","removeValue","selectValue"].forEach(function(e){return n[e]=n[e].bind(n)}),n.state={inputValue:"",isFocused:!1,isOpen:!1,isPseudoFocused:!1,required:!1},n}return x(t,e),O(t,[{key:"componentWillMount",value:function(){this._instancePrefix="react-select-"+(this.props.instanceId||++N)+"-";var e=this.getValueArray(this.props.value);this.props.required&&this.setState({required:M(e[0],this.props.multi)})}},{key:"componentDidMount",value:function(){"undefined"!==typeof this.props.autofocus&&"undefined"!==typeof console&&console.warn("Warning: The autofocus prop has changed to autoFocus, support will be removed after react-select@1.0"),(this.props.autoFocus||this.props.autofocus)&&this.focus()}},{key:"componentWillReceiveProps",value:function(e){var t=this.getValueArray(e.value,e);e.required?this.setState({required:M(t[0],e.multi)}):this.props.required&&this.setState({required:!1}),this.state.inputValue&&this.props.value!==e.value&&e.onSelectResetsInput&&this.setState({inputValue:this.handleInputValueChange("")})}},{key:"componentDidUpdate",value:function(e,t){if(this.menu&&this.focused&&this.state.isOpen&&!this.hasScrolledToOption){var n=Object(c.findDOMNode)(this.focused),r=Object(c.findDOMNode)(this.menu),o=r.scrollTop,i=o+r.offsetHeight,a=n.offsetTop,l=a+n.offsetHeight;(o>a||i<l)&&(r.scrollTop=n.offsetTop),this.hasScrolledToOption=!0}else this.state.isOpen||(this.hasScrolledToOption=!1);if(this._scrollToFocusedOptionOnUpdate&&this.focused&&this.menu){this._scrollToFocusedOptionOnUpdate=!1;var s=Object(c.findDOMNode)(this.focused),u=Object(c.findDOMNode)(this.menu),p=s.getBoundingClientRect(),h=u.getBoundingClientRect();p.bottom>h.bottom?u.scrollTop=s.offsetTop+s.clientHeight-u.offsetHeight:p.top<h.top&&(u.scrollTop=s.offsetTop)}if(this.props.scrollMenuIntoView&&this.menuContainer){var d=this.menuContainer.getBoundingClientRect();window.innerHeight<d.bottom+this.props.menuBuffer&&window.scrollBy(0,d.bottom+this.props.menuBuffer-window.innerHeight)}if(e.disabled!==this.props.disabled&&(this.setState({isFocused:!1}),this.closeMenu()),t.isOpen!==this.state.isOpen){this.toggleTouchOutsideEvent(this.state.isOpen);var f=this.state.isOpen?this.props.onOpen:this.props.onClose;f&&f()}}},{key:"componentWillUnmount",value:function(){this.toggleTouchOutsideEvent(!1)}},{key:"toggleTouchOutsideEvent",value:function(e){e?!document.addEventListener&&document.attachEvent?document.attachEvent("ontouchstart",this.handleTouchOutside):document.addEventListener("touchstart",this.handleTouchOutside):!document.removeEventListener&&document.detachEvent?document.detachEvent("ontouchstart",this.handleTouchOutside):document.removeEventListener("touchstart",this.handleTouchOutside)}},{key:"handleTouchOutside",value:function(e){this.wrapper&&!this.wrapper.contains(e.target)&&this.closeMenu()}},{key:"focus",value:function(){this.input&&this.input.focus()}},{key:"blurInput",value:function(){this.input&&this.input.blur()}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"handleTouchEnd",value:function(e){this.dragging||this.handleMouseDown(e)}},{key:"handleTouchEndClearValue",value:function(e){this.dragging||this.clearValue(e)}},{key:"handleMouseDown",value:function(e){if(!(this.props.disabled||"mousedown"===e.type&&0!==e.button)){if("INPUT"===e.target.tagName)return void(this.state.isFocused?this.state.isOpen||this.setState({isOpen:!0,isPseudoFocused:!1}):(this._openAfterFocus=this.props.openOnClick,this.focus()));if(e.preventDefault(),!this.props.searchable)return this.focus(),this.setState({isOpen:!this.state.isOpen});if(this.state.isFocused){this.focus();var t=this.input,n=!0;"function"===typeof t.getInput&&(t=t.getInput()),t.value="",this._focusAfterClear&&(n=!1,this._focusAfterClear=!1),this.setState({isOpen:n,isPseudoFocused:!1,focusedOption:null})}else this._openAfterFocus=this.props.openOnClick,this.focus(),this.setState({focusedOption:null})}}},{key:"handleMouseDownOnArrow",value:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||(this.state.isOpen?(e.stopPropagation(),e.preventDefault(),this.closeMenu()):this.setState({isOpen:!0}))}},{key:"handleMouseDownOnMenu",value:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this._openAfterFocus=!0,this.focus())}},{key:"closeMenu",value:function(){this.props.onCloseResetsInput?this.setState({inputValue:this.handleInputValueChange(""),isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi}):this.setState({isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi}),this.hasScrolledToOption=!1}},{key:"handleInputFocus",value:function(e){if(!this.props.disabled){var t=this.state.isOpen||this._openAfterFocus||this.props.openOnFocus;t=!this._focusAfterClear&&t,this.props.onFocus&&this.props.onFocus(e),this.setState({isFocused:!0,isOpen:!!t}),this._focusAfterClear=!1,this._openAfterFocus=!1}}},{key:"handleInputBlur",value:function(e){if(this.menu&&(this.menu===document.activeElement||this.menu.contains(document.activeElement)))return void this.focus();this.props.onBlur&&this.props.onBlur(e);var t={isFocused:!1,isOpen:!1,isPseudoFocused:!1};this.props.onBlurResetsInput&&(t.inputValue=this.handleInputValueChange("")),this.setState(t)}},{key:"handleInputChange",value:function(e){var t=e.target.value;this.state.inputValue!==e.target.value&&(t=this.handleInputValueChange(t)),this.setState({inputValue:t,isOpen:!0,isPseudoFocused:!1})}},{key:"setInputValue",value:function(e){if(this.props.onInputChange){var t=this.props.onInputChange(e);null!=t&&"object"!==("undefined"===typeof t?"undefined":E(t))&&(e=""+t)}this.setState({inputValue:e})}},{key:"handleInputValueChange",value:function(e){if(this.props.onInputChange){var t=this.props.onInputChange(e);null!=t&&"object"!==("undefined"===typeof t?"undefined":E(t))&&(e=""+t)}return e}},{key:"handleKeyDown",value:function(e){if(!this.props.disabled&&("function"!==typeof this.props.onInputKeyDown||(this.props.onInputKeyDown(e),!e.defaultPrevented)))switch(e.keyCode){case 8:!this.state.inputValue&&this.props.backspaceRemoves&&(e.preventDefault(),this.popValue());break;case 9:if(e.shiftKey||!this.state.isOpen||!this.props.tabSelectsValue)break;e.preventDefault(),this.selectFocusedOption();break;case 13:e.preventDefault(),e.stopPropagation(),this.state.isOpen?this.selectFocusedOption():this.focusNextOption();break;case 27:e.preventDefault(),this.state.isOpen?(this.closeMenu(),e.stopPropagation()):this.props.clearable&&this.props.escapeClearsValue&&(this.clearValue(e),e.stopPropagation());break;case 32:if(this.props.searchable)break;if(e.preventDefault(),!this.state.isOpen){this.focusNextOption();break}e.stopPropagation(),this.selectFocusedOption();break;case 38:e.preventDefault(),this.focusPreviousOption();break;case 40:e.preventDefault(),this.focusNextOption();break;case 33:e.preventDefault(),this.focusPageUpOption();break;case 34:e.preventDefault(),this.focusPageDownOption();break;case 35:if(e.shiftKey)break;e.preventDefault(),this.focusEndOption();break;case 36:if(e.shiftKey)break;e.preventDefault(),this.focusStartOption();break;case 46:!this.state.inputValue&&this.props.deleteRemoves&&(e.preventDefault(),this.popValue())}}},{key:"handleValueClick",value:function(e,t){this.props.onValueClick&&this.props.onValueClick(e,t)}},{key:"handleMenuScroll",value:function(e){if(this.props.onMenuScrollToBottom){var t=e.target;t.scrollHeight>t.offsetHeight&&t.scrollHeight-t.offsetHeight-t.scrollTop<=0&&this.props.onMenuScrollToBottom()}}},{key:"getOptionLabel",value:function(e){return e[this.props.labelKey]}},{key:"getValueArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n="object"===("undefined"===typeof t?"undefined":E(t))?t:this.props;if(n.multi){if("string"===typeof e&&(e=e.split(n.delimiter)),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return V(e,n)}).filter(function(e){return e})}var r=V(e,n);return r?[r]:[]}},{key:"setValue",value:function(e){var t=this;if(this.props.autoBlur&&this.blurInput(),this.props.required){var n=M(e,this.props.multi);this.setState({required:n})}this.props.simpleValue&&e&&(e=this.props.multi?e.map(function(e){return e[t.props.valueKey]}).join(this.props.delimiter):e[this.props.valueKey]),this.props.onChange&&this.props.onChange(e)}},{key:"selectValue",value:function(e){var t=this;this.props.closeOnSelect&&(this.hasScrolledToOption=!1);var n=this.props.onSelectResetsInput?"":this.state.inputValue;this.props.multi?this.setState({focusedIndex:null,inputValue:this.handleInputValueChange(n),isOpen:!this.props.closeOnSelect},function(){t.getValueArray(t.props.value).some(function(n){return n[t.props.valueKey]===e[t.props.valueKey]})?t.removeValue(e):t.addValue(e)}):this.setState({inputValue:this.handleInputValueChange(n),isOpen:!this.props.closeOnSelect,isPseudoFocused:this.state.isFocused},function(){t.setValue(e)})}},{key:"addValue",value:function(e){var t=this.getValueArray(this.props.value),n=this._visibleOptions.filter(function(e){return!e.disabled}),r=n.indexOf(e);this.setValue(t.concat(e)),n.length-1===r?this.focusOption(n[r-1]):n.length>r&&this.focusOption(n[r+1])}},{key:"popValue",value:function(){var e=this.getValueArray(this.props.value);e.length&&!1!==e[e.length-1].clearableValue&&this.setValue(this.props.multi?e.slice(0,e.length-1):null)}},{key:"removeValue",value:function(e){var t=this,n=this.getValueArray(this.props.value);this.setValue(n.filter(function(n){return n[t.props.valueKey]!==e[t.props.valueKey]})),this.focus()}},{key:"clearValue",value:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.preventDefault(),this.setValue(this.getResetValue()),this.setState({inputValue:this.handleInputValueChange(""),isOpen:!1},this.focus),this._focusAfterClear=!0)}},{key:"getResetValue",value:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null}},{key:"focusOption",value:function(e){this.setState({focusedOption:e})}},{key:"focusNextOption",value:function(){this.focusAdjacentOption("next")}},{key:"focusPreviousOption",value:function(){this.focusAdjacentOption("previous")}},{key:"focusPageUpOption",value:function(){this.focusAdjacentOption("page_up")}},{key:"focusPageDownOption",value:function(){this.focusAdjacentOption("page_down")}},{key:"focusStartOption",value:function(){this.focusAdjacentOption("start")}},{key:"focusEndOption",value:function(){this.focusAdjacentOption("end")}},{key:"focusAdjacentOption",value:function(e){var t=this._visibleOptions.map(function(e,t){return{option:e,index:t}}).filter(function(e){return!e.option.disabled});if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen){var n={focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null),isOpen:!0};return this.props.onSelectResetsInput&&(n.inputValue=""),void this.setState(n)}if(t.length){for(var r=-1,o=0;o<t.length;o++)if(this._focusedOption===t[o].option){r=o;break}if("next"===e&&-1!==r)r=(r+1)%t.length;else if("previous"===e)r>0?r-=1:r=t.length-1;else if("start"===e)r=0;else if("end"===e)r=t.length-1;else if("page_up"===e){var i=r-this.props.pageSize;r=i<0?0:i}else if("page_down"===e){var a=r+this.props.pageSize;r=a>t.length-1?t.length-1:a}-1===r&&(r=0),this.setState({focusedIndex:t[r].index,focusedOption:t[r].option})}}},{key:"getFocusedOption",value:function(){return this._focusedOption}},{key:"selectFocusedOption",value:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)}},{key:"renderLoading",value:function(){if(this.props.isLoading)return p.a.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},p.a.createElement("span",{className:"Select-loading"}))}},{key:"renderValue",value:function(e,t){var n=this,r=this.props.valueRenderer||this.getOptionLabel,o=this.props.valueComponent;if(!e.length){return R(this.state,this.props,t)?p.a.createElement("div",{className:"Select-placeholder"},this.props.placeholder):null}var i=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map(function(e,t){return p.a.createElement(o,{disabled:n.props.disabled||!1===e.clearableValue,id:n._instancePrefix+"-value-"+t,instancePrefix:n._instancePrefix,key:"value-"+t+"-"+e[n.props.valueKey],onClick:i,onRemove:n.removeValue,placeholder:n.props.placeholder,value:e},r(e,t),p.a.createElement("span",{className:"Select-aria-only"},"\xa0"))}):I(this.state,this.props)?(t&&(i=null),p.a.createElement(o,{disabled:this.props.disabled,id:this._instancePrefix+"-value-item",instancePrefix:this._instancePrefix,onClick:i,placeholder:this.props.placeholder,value:e[0]},r(e[0]))):void 0}},{key:"renderInput",value:function(e,t){var n,r=this,i=a()("Select-input",this.props.inputProps.className),l=this.state.isOpen,s=a()((n={},C(n,this._instancePrefix+"-list",l),C(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),u=this.state.inputValue;!u||this.props.onSelectResetsInput||this.state.isFocused||(u="");var c=A({},this.props.inputProps,{"aria-activedescendant":l?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-expanded":""+l,"aria-haspopup":""+l,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-owns":s,className:i,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},role:"combobox",required:this.state.required,tabIndex:this.props.tabIndex,value:u});if(this.props.inputRenderer)return this.props.inputRenderer(c);if(this.props.disabled||!this.props.searchable){var h=F(this.props.inputProps,[]),d=a()(C({},this._instancePrefix+"-list",l));return p.a.createElement("div",A({},h,{"aria-expanded":l,"aria-owns":d,"aria-activedescendant":l?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-disabled":""+this.props.disabled,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],className:i,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},role:"combobox",style:{border:0,width:1,display:"inline-block"},tabIndex:this.props.tabIndex||0}))}return this.props.autosize?p.a.createElement(o.a,A({id:this.props.id},c,{minWidth:"5"})):p.a.createElement("div",{className:i,key:"input-wrap",style:{display:"inline-block"}},p.a.createElement("input",A({id:this.props.id},c)))}},{key:"renderClear",value:function(){var e=this.getValueArray(this.props.value);if(this.props.clearable&&e.length&&!this.props.disabled&&!this.props.isLoading){var t=this.props.multi?this.props.clearAllText:this.props.clearValueText,n=this.props.clearRenderer();return p.a.createElement("span",{"aria-label":t,className:"Select-clear-zone",onMouseDown:this.clearValue,onTouchEnd:this.handleTouchEndClearValue,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,title:t},n)}}},{key:"renderArrow",value:function(){if(this.props.arrowRenderer){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return n?p.a.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n):null}}},{key:"filterOptions",value:function(e){var t=this.state.inputValue,n=this.props.options||[];if(this.props.filterOptions){return("function"===typeof this.props.filterOptions?this.props.filterOptions:y)(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,trimFilter:this.props.trimFilter,valueKey:this.props.valueKey})}return n}},{key:"onOptionRef",value:function(e,t){t&&(this.focused=e)}},{key:"renderMenu",value:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,inputValue:this.state.inputValue,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onOptionRef:this.onOptionRef,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,removeValue:this.removeValue,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey}):this.props.noResultsText?p.a.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null}},{key:"renderHiddenField",value:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map(function(e){return P(e[t.props.valueKey])}).join(this.props.delimiter);return p.a.createElement("input",{disabled:this.props.disabled,name:this.props.name,ref:function(e){return t.value=e},type:"hidden",value:n})}return e.map(function(e,n){return p.a.createElement("input",{disabled:t.props.disabled,key:"hidden."+n,name:t.props.name,ref:"value"+n,type:"hidden",value:P(e[t.props.valueKey])})})}}},{key:"getFocusableOptionIndex",value:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.props.valueKey,r=this.state.focusedOption||e;if(r&&!r.disabled){var o=-1;if(t.some(function(e,t){var i=e[n]===r[n];return i&&(o=t),i}),-1!==o)return o}for(var i=0;i<t.length;i++)if(!t[i].disabled)return i;return null}},{key:"renderOuter",value:function(e,t,n){var r=this,o=this.renderMenu(e,t,n);return o?p.a.createElement("div",{ref:function(e){return r.menuContainer=e},className:"Select-menu-outer",style:this.props.menuContainerStyle},p.a.createElement("div",{className:"Select-menu",id:this._instancePrefix+"-list",onMouseDown:this.handleMouseDownOnMenu,onScroll:this.handleMenuScroll,ref:function(e){return r.menu=e},role:"listbox",style:this.props.menuStyle,tabIndex:-1},o)):null}},{key:"render",value:function(){var e=this,t=this.getValueArray(this.props.value),n=this._visibleOptions=this.filterOptions(this.props.multi&&this.props.removeSelected?t:null),r=this.state.isOpen;this.props.multi&&!n.length&&t.length&&!this.state.inputValue&&(r=!1);var o=this.getFocusableOptionIndex(t[0]),i=null;i=this._focusedOption=null!==o?n[o]:null;var l=a()("Select",this.props.className,{"has-value":t.length,"is-clearable":this.props.clearable,"is-disabled":this.props.disabled,"is-focused":this.state.isFocused,"is-loading":this.props.isLoading,"is-open":r,"is-pseudo-focused":this.state.isPseudoFocused,"is-searchable":this.props.searchable,"Select--multi":this.props.multi,"Select--rtl":this.props.rtl,"Select--single":!this.props.multi}),s=null;return this.props.multi&&!this.props.disabled&&t.length&&!this.state.inputValue&&this.state.isFocused&&this.props.backspaceRemoves&&(s=p.a.createElement("span",{id:this._instancePrefix+"-backspace-remove-message",className:"Select-aria-only","aria-live":"assertive"},this.props.backspaceToRemoveMessage.replace("{label}",t[t.length-1][this.props.labelKey]))),p.a.createElement("div",{ref:function(t){return e.wrapper=t},className:l,style:this.props.wrapperStyle},this.renderHiddenField(t),p.a.createElement("div",{ref:function(t){return e.control=t},className:"Select-control",onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleTouchEnd,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,style:this.props.style},p.a.createElement("span",{className:"Select-multi-value-wrapper",id:this._instancePrefix+"-value"},this.renderValue(t,r),this.renderInput(t,o)),s,this.renderLoading(),this.renderClear(),this.renderArrow()),r?this.renderOuter(n,t,i):null)}}]),t}(p.a.Component);B.propTypes={"aria-describedby":s.a.string,"aria-label":s.a.string,"aria-labelledby":s.a.string,arrowRenderer:s.a.func,autoBlur:s.a.bool,autoFocus:s.a.bool,autofocus:s.a.bool,autosize:s.a.bool,backspaceRemoves:s.a.bool,backspaceToRemoveMessage:s.a.string,className:s.a.string,clearAllText:j,clearRenderer:s.a.func,clearValueText:j,clearable:s.a.bool,closeOnSelect:s.a.bool,deleteRemoves:s.a.bool,delimiter:s.a.string,disabled:s.a.bool,escapeClearsValue:s.a.bool,filterOption:s.a.func,filterOptions:s.a.any,id:s.a.string,ignoreAccents:s.a.bool,ignoreCase:s.a.bool,inputProps:s.a.object,inputRenderer:s.a.func,instanceId:s.a.string,isLoading:s.a.bool,joinValues:s.a.bool,labelKey:s.a.string,matchPos:s.a.string,matchProp:s.a.string,menuBuffer:s.a.number,menuContainerStyle:s.a.object,menuRenderer:s.a.func,menuStyle:s.a.object,multi:s.a.bool,name:s.a.string,noResultsText:j,onBlur:s.a.func,onBlurResetsInput:s.a.bool,onChange:s.a.func,onClose:s.a.func,onCloseResetsInput:s.a.bool,onFocus:s.a.func,onInputChange:s.a.func,onInputKeyDown:s.a.func,onMenuScrollToBottom:s.a.func,onOpen:s.a.func,onSelectResetsInput:s.a.bool,onValueClick:s.a.func,openOnClick:s.a.bool,openOnFocus:s.a.bool,optionClassName:s.a.string,optionComponent:s.a.func,optionRenderer:s.a.func,options:s.a.array,pageSize:s.a.number,placeholder:j,removeSelected:s.a.bool,required:s.a.bool,resetValue:s.a.any,rtl:s.a.bool,scrollMenuIntoView:s.a.bool,searchable:s.a.bool,simpleValue:s.a.bool,style:s.a.object,tabIndex:D,tabSelectsValue:s.a.bool,trimFilter:s.a.bool,value:s.a.any,valueComponent:s.a.func,valueKey:s.a.string,valueRenderer:s.a.func,wrapperStyle:s.a.object},B.defaultProps={arrowRenderer:h,autosize:!0,backspaceRemoves:!0,backspaceToRemoveMessage:"Press backspace to remove {label}",clearable:!0,clearAllText:"Clear all",clearRenderer:d,clearValueText:"Clear value",closeOnSelect:!0,deleteRemoves:!0,delimiter:",",disabled:!1,escapeClearsValue:!0,filterOptions:y,ignoreAccents:!0,ignoreCase:!0,inputProps:{},isLoading:!1,joinValues:!1,labelKey:"label",matchPos:"any",matchProp:"any",menuBuffer:0,menuRenderer:b,multi:!1,noResultsText:"No results found",onBlurResetsInput:!0,onCloseResetsInput:!0,onSelectResetsInput:!0,openOnClick:!0,optionComponent:S,pageSize:5,placeholder:"Select...",removeSelected:!0,required:!1,rtl:!1,scrollMenuIntoView:!0,searchable:!0,simpleValue:!1,tabSelectsValue:!0,trimFilter:!0,valueComponent:T,valueKey:"value"};var z={autoload:s.a.bool.isRequired,cache:s.a.any,children:s.a.func.isRequired,ignoreAccents:s.a.bool,ignoreCase:s.a.bool,loadOptions:s.a.func.isRequired,loadingPlaceholder:s.a.oneOfType([s.a.string,s.a.node]),multi:s.a.bool,noResultsText:s.a.oneOfType([s.a.string,s.a.node]),onChange:s.a.func,onInputChange:s.a.func,options:s.a.array.isRequired,placeholder:s.a.oneOfType([s.a.string,s.a.node]),searchPromptText:s.a.oneOfType([s.a.string,s.a.node]),value:s.a.any},L={},K=function(e){return p.a.createElement(B,e)},W={autoload:!0,cache:L,children:K,ignoreAccents:!0,ignoreCase:!0,loadingPlaceholder:"Loading...",options:[],searchPromptText:"Type to search"},H=function(e){function t(e,n){w(this,t);var r=k(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r._cache=e.cache===L?{}:e.cache,r.state={inputValue:"",isLoading:!1,options:e.options},r.onInputChange=r.onInputChange.bind(r),r}return x(t,e),O(t,[{key:"componentDidMount",value:function(){this.props.autoload&&this.loadOptions("")}},{key:"componentWillReceiveProps",value:function(e){e.options!==this.props.options&&this.setState({options:e.options})}},{key:"componentWillUnmount",value:function(){this._callback=null}},{key:"loadOptions",value:function(e){var t=this,n=this.props.loadOptions,r=this._cache;if(r&&Object.prototype.hasOwnProperty.call(r,e))return this._callback=null,void this.setState({isLoading:!1,options:r[e]});var o=function n(o,i){var a=i&&i.options||[];r&&(r[e]=a),n===t._callback&&(t._callback=null,t.setState({isLoading:!1,options:a}))};this._callback=o;var i=n(e,o);i&&i.then(function(e){return o(0,e)},function(e){return o()}),this._callback&&!this.state.isLoading&&this.setState({isLoading:!0})}},{key:"onInputChange",value:function(e){var t=this.props,n=t.ignoreAccents,r=t.ignoreCase,o=t.onInputChange,i=e;if(o){var a=o(i);null!=a&&"object"!==("undefined"===typeof a?"undefined":E(a))&&(i=""+a)}var l=i;return n&&(l=m(l)),r&&(l=l.toLowerCase()),this.setState({inputValue:i}),this.loadOptions(l),i}},{key:"noResultsText",value:function(){var e=this.props,t=e.loadingPlaceholder,n=e.noResultsText,r=e.searchPromptText,o=this.state,i=o.inputValue;return o.isLoading?t:i&&n?n:r}},{key:"focus",value:function(){this.select.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.loadingPlaceholder,o=t.placeholder,i=this.state,a=i.isLoading,l=i.options,s={noResultsText:this.noResultsText(),placeholder:a?r:o,options:a&&r?[]:l,ref:function(t){return e.select=t}};return n(A({},this.props,s,{isLoading:a,onInputChange:this.onInputChange}))}}]),t}(u.Component);H.propTypes=z,H.defaultProps=W;var U=function(e){function t(e,n){w(this,t);var r=k(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.filterOptions=r.filterOptions.bind(r),r.menuRenderer=r.menuRenderer.bind(r),r.onInputKeyDown=r.onInputKeyDown.bind(r),r.onInputChange=r.onInputChange.bind(r),r.onOptionSelect=r.onOptionSelect.bind(r),r}return x(t,e),O(t,[{key:"createNewOption",value:function(){var e=this.props,t=e.isValidNewOption,n=e.newOptionCreator,r=e.onNewOptionClick,o=e.options,i=void 0===o?[]:o;if(t({label:this.inputValue})){var a=n({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey});this.isOptionUnique({option:a,options:i})&&(r?r(a):(i.unshift(a),this.select.selectValue(a)))}}},{key:"filterOptions",value:function(){var e=this.props,t=e.filterOptions,n=e.isValidNewOption,r=e.promptTextCreator,o=(arguments.length<=2?void 0:arguments[2])||[],i=t.apply(void 0,arguments)||[];if(n({label:this.inputValue})){var a=this.props.newOptionCreator,l=a({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey});if(this.isOptionUnique({option:l,options:o.concat(i)})){var s=r(this.inputValue);this._createPlaceholderOption=a({label:s,labelKey:this.labelKey,valueKey:this.valueKey}),i.unshift(this._createPlaceholderOption)}}return i}},{key:"isOptionUnique",value:function(e){var t=e.option,n=e.options,r=this.props.isOptionUnique;return n=n||this.props.options,r({labelKey:this.labelKey,option:t,options:n,valueKey:this.valueKey})}},{key:"menuRenderer",value:function(e){return(0,this.props.menuRenderer)(A({},e,{onSelect:this.onOptionSelect,selectValue:this.onOptionSelect}))}},{key:"onInputChange",value:function(e){var t=this.props.onInputChange;return this.inputValue=e,t&&(this.inputValue=t(e)),this.inputValue}},{key:"onInputKeyDown",value:function(e){var t=this.props,n=t.shouldKeyDownEventCreateNewOption,r=t.onInputKeyDown,o=this.select.getFocusedOption();o&&o===this._createPlaceholderOption&&n({keyCode:e.keyCode})?(this.createNewOption(),e.preventDefault()):r&&r(e)}},{key:"onOptionSelect",value:function(e){e===this._createPlaceholderOption?this.createNewOption():this.select.selectValue(e)}},{key:"focus",value:function(){this.select.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.ref,r=F(t,["ref"]),o=this.props.children;return o||(o=G),o(A({},r,{allowCreate:!0,filterOptions:this.filterOptions,menuRenderer:this.menuRenderer,onInputChange:this.onInputChange,onInputKeyDown:this.onInputKeyDown,ref:function(t){e.select=t,t&&(e.labelKey=t.props.labelKey,e.valueKey=t.props.valueKey),n&&n(t)}}))}}]),t}(p.a.Component),G=function(e){return p.a.createElement(B,e)},q=function(e){var t=e.option,n=e.options,r=e.labelKey,o=e.valueKey;return!n||!n.length||0===n.filter(function(e){return e[r]===t[r]||e[o]===t[o]}).length},$=function(e){return!!e.label},J=function(e){var t=e.label,n=e.labelKey,r=e.valueKey,o={};return o[r]=t,o[n]=t,o.className="Select-create-option-placeholder",o},Y=function(e){return'Create option "'+e+'"'},Z=function(e){switch(e.keyCode){case 9:case 13:case 188:return!0;default:return!1}};U.isOptionUnique=q,U.isValidNewOption=$,U.newOptionCreator=J,U.promptTextCreator=Y,U.shouldKeyDownEventCreateNewOption=Z,U.defaultProps={filterOptions:y,isOptionUnique:q,isValidNewOption:$,menuRenderer:b,newOptionCreator:J,promptTextCreator:Y,shouldKeyDownEventCreateNewOption:Z},U.propTypes={children:s.a.func,filterOptions:s.a.any,isOptionUnique:s.a.func,isValidNewOption:s.a.func,menuRenderer:s.a.any,newOptionCreator:s.a.func,onInputChange:s.a.func,onInputKeyDown:s.a.func,onNewOptionClick:s.a.func,options:s.a.array,promptTextCreator:s.a.func,ref:s.a.func,shouldKeyDownEventCreateNewOption:s.a.func};var Q=function(e){function t(){return w(this,t),k(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return x(t,e),O(t,[{key:"focus",value:function(){this.select.focus()}},{key:"render",value:function(){var e=this;return p.a.createElement(H,this.props,function(t){var n=t.ref,r=F(t,["ref"]),o=n;return p.a.createElement(U,r,function(t){var n=t.ref,r=F(t,["ref"]),i=n;return e.props.children(A({},r,{ref:function(t){i(t),o(t),e.select=t}}))})})}}]),t}(p.a.Component),X=function(e){return p.a.createElement(B,e)};Q.propTypes={children:s.a.func.isRequired},Q.defaultProps={children:X},B.Async=H,B.AsyncCreatable=Q,B.Creatable=U,B.Value=T,B.Option=S,t.a=B},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";(function(t){function n(e,t,n,o,i,a,l,s){if(r(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[n,o,i,a,l,s],c=0;u=new Error(t.replace(/%s/g,function(){return p[c++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var r=function(e){};"production"!==t.env.NODE_ENV&&(r=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=n}).call(t,n(0))},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function r(e){v.push(e)}function o(e){if("string"===typeof e&&e.indexOf("Cloudflare Ray ID")>=0)throw{code:"cloudflare_error"}}function i(e){var t=function(e){var t=e.url,n=e.path,r=e.body,i=e.data,a=e.parse,h=void 0===a||a,d=Object(p.a)(e,["url","path","body","data","parse"]),f=d.headers||{};!f["Content-Type"]&&i&&(f["Content-Type"]="application/json");var m=window.fetch(t||n,Object(u.a)({},d,{credentials:"include",body:r||JSON.stringify(i),headers:f})),g=function(e){if(e.status>=200&&e.status<300)return e;throw e},v=function(e){return h?e.json?e.json():Promise.reject(e):e};return m.then(g).then(v).catch(function(e){if(!h)throw e;var t={code:"invalid_json",message:Object(c.a)("The response is not a valid JSON response.")};if(!e||!e.json)throw t;var n=e.clone();return e.json().catch(Object(s.a)(l.a.mark(function e(){var r;return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.text();case 2:throw r=e.sent,o(r),t;case 5:case"end":return e.stop()}},e,this)}))).then(function(e){var t={code:"unknown_error",message:Object(c.a)("An unknown error occurred.")};throw o(e),e||t})})},n=[t,g.a,m.a].concat(v);return function e(t){return n.pop()(t,e)}(e)}var a=n(25),l=n.n(a),s=n(28),u=n(1),p=n(30),c=n(32),h=n(35),d=n(44),f=n(45),m=n(13),g=n(46),v=[];i.use=r,i.createNonceMiddleware=h.a,i.createPreloadingMiddleware=f.a,i.createRootURLMiddleware=d.a,t.a=i},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var r=n(36),o=Object(r.a)(),i=o.addAction,a=(o.addFilter,o.removeAction,o.removeFilter,o.hasAction,o.hasFilter,o.removeAllActions,o.removeAllFilters,o.doAction);o.applyFilters,o.currentAction,o.currentFilter,o.doingAction,o.doingFilter,o.didAction,o.didFilter,o.actions,o.filters},function(e,t,n){"use strict";function r(e){return"string"!==typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)}t.a=r},function(e,t){e.exports=React},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r};e.exports=n(19)(o,!0)}else e.exports=n(22)()}).call(t,n(0))},function(e,t,n){"use strict";(function(t){var r=n(3),o=r;if("production"!==t.env.NODE_ENV){var i=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!==typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};o=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];i.apply(void 0,[t].concat(r))}}}e.exports=o}).call(t,n(0))},function(e,t,n){"use strict";function r(e){return"string"!==typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)}t.a=r},function(e,t,n){"use strict";var r=n(1),o=function(e,t){var n,o,i=e.path;return"string"===typeof e.namespace&&"string"===typeof e.endpoint&&(n=e.namespace.replace(/^\/|\/$/g,""),o=e.endpoint.replace(/^\//,""),i=o?n+"/"+o:n),delete e.namespace,delete e.endpoint,t(Object(r.a)({},e,{path:i}))};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(15),n(47),n(50)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(16),l=(n.n(a),n(17)),s=(n.n(l),n(2)),u=n(6),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=wp.i18n.__,h=wp.blocks,d=h.createBlock,f=h.registerBlockType,m=wp.editor,g=m.InspectorControls,v=m.PlainText,y=wp.components,b=(y.SelectControl,y.PanelBody),_=y.ToggleControl,E=y.RangeControl,w=(y.ServerSideRender,wp.element.Component),O=ChattyMangoTagGroupsGlobal,C=O.siteUrl,A=O.siteLang,x=O.pluginUrl,F=O.hasPremium,k=x+"/assets/images/cm-tg-icon-64x64.png",S=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),p(t,[{key:"render",value:function(){var e="https://documentation.chattymango.com/documentation/tag-groups-premium/tabbed-tag-cloud/tabbed-tag-cloud-parameters/";""!=A&&(e+="?lang="+A),e+="#"+this.props.topic;var t=c("Click for help!");return wp.element.createElement("div",null,wp.element.createElement("a",{href:e,target:"_blank",style:{textDecoration:"none"},title:t},wp.element.createElement("span",{className:"dashicons dashicons-editor-help tg_right chatty-mango-help-icon"})))}}]),t}(w),T=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.groupsEndPoint=C+"/wp-json/tag-groups/v1/groups",e.termsEndPoint=C+"/wp-json/tag-groups/v1/terms",e.taxonomiesEndPoint=C+"/wp-json/tag-groups/v1/taxonomies",e.state=e.constructor.getInitialState(e.props.attributes),e.getGroupsFromApi=e.getGroupsFromApi.bind(e),e.getTaxonomiesFromApi=e.getTaxonomiesFromApi.bind(e),e.getPostsFromApi=e.getPostsFromApi.bind(e),e.handleChangeInclude=e.handleChangeInclude.bind(e),e.handleChangeTaxonomy=e.handleChangeTaxonomy.bind(e),e.toggleOptionActive=e.toggleOptionActive.bind(e),e.toggleOptionCollapsible=e.toggleOptionCollapsible.bind(e),e.toggleOptionMouseover=e.toggleOptionMouseover.bind(e),e.toggleOptionHideEmpty=e.toggleOptionHideEmpty.bind(e),e.toggleOptionAdjustSeperatorSize=e.toggleOptionAdjustSeperatorSize.bind(e),e.toggleOptionAddPremiumFilter=e.toggleOptionAddPremiumFilter.bind(e),e.toggleOptionHideEmptyTabs=e.toggleOptionHideEmptyTabs.bind(e),e.toggleOptionShowTabs=e.toggleOptionShowTabs.bind(e),e.toggleOptionShowTagCount=e.toggleOptionShowTagCount.bind(e),e.getGroupsFromApi(),e.getTaxonomiesFromApi(),e.getPostsFromApi(),e}return i(t,e),p(t,null,[{key:"getInitialState",value:function(e){var t=[],n=["post_tag"];return e.include&&(t=e.include.split(",")),e.taxonomy&&(n=e.taxonomy.split(",")),{groups:[],taxonomies:[],posts:[],selectedGroups:t,selectedTaxonomies:n}}}]),p(t,[{key:"handleChangeInclude",value:function(e){var t=e.map(function(e){if(!isNaN(e.value))return e.value});this.setState({selectedGroups:t}),this.props.setAttributes({include:t.join(",")}),t.indexOf(0)>-1?this.props.setAttributes({show_not_assigned:1}):this.props.setAttributes({show_not_assigned:0})}},{key:"handleChangeTaxonomy",value:function(e){var t=e.map(function(e){if("string"===typeof e.value)return e.value});this.setState({selectedTaxonomies:t}),this.props.setAttributes({taxonomy:t.join(",")})}},{key:"getGroupsFromApi",value:function(){var e=this;Object(u.a)({path:this.groupsEndPoint}).then(function(t){t&&e.setState({groups:t})})}},{key:"getTaxonomiesFromApi",value:function(){var e=this;Object(u.a)({path:this.taxonomiesEndPoint}).then(function(t){t&&e.setState({taxonomies:t})})}},{key:"getPostsFromApi",value:function(){var e=this;Object(u.a)({path:C+"/wp-json/wp/v2/posts?per_page=100"}).then(function(t){if(t){var n=[{value:-1,label:c("off")},{value:0,label:c("use this post")}];t.forEach(function(e){n.push({value:e.id,label:e.title.rendered})}),e.setState({posts:n})}})}},{key:"toggleOptionActive",value:function(){var e=1===this.props.attributes.active?0:1;this.props.setAttributes({active:e})}},{key:"toggleOptionCollapsible",value:function(){var e=1===this.props.attributes.collapsible?0:1;this.props.setAttributes({collapsible:e})}},{key:"toggleOptionMouseover",value:function(){var e=1===this.props.attributes.mouseover?0:1;this.props.setAttributes({mouseover:e})}},{key:"toggleOptionHideEmpty",value:function(){var e=1===this.props.attributes.hide_empty?0:1;this.props.setAttributes({hide_empty:e})}},{key:"toggleOptionAdjustSeperatorSize",value:function(){var e=1===this.props.attributes.adjust_separator_size?0:1;this.props.setAttributes({adjust_separator_size:e})}},{key:"toggleOptionAddPremiumFilter",value:function(e){var t=1===this.props.attributes.add_premium_filter?0:1;this.props.setAttributes({add_premium_filter:t})}},{key:"toggleOptionHideEmptyTabs",value:function(){var e=1===this.props.attributes.hide_empty_tabs?0:1;this.props.setAttributes({hide_empty_tabs:e})}},{key:"toggleOptionShowTabs",value:function(){var e=1===this.props.attributes.show_tabs?0:1;this.props.setAttributes({show_tabs:e})}},{key:"toggleOptionShowTagCount",value:function(){var e=1===this.props.attributes.show_tag_count?0:1;this.props.setAttributes({show_tag_count:e})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=t.active,o=t.add_premium_filter,i=t.adjust_separator_size,a=t.amount,l=t.append,u=t.assigned_class,p=t.collapsible,h=t.custom_title,d=t.div_class,f=t.div_id,m=t.groups_post_id,y=t.hide_empty,w=t.hide_empty_tabs,O=t.largest,C=t.link_append,A=t.link_target,x=t.mouseover,T=t.not_assigned_name,P=t.order,j=t.orderby,D=t.prepend,N=t.separator,I=t.separator_size,R=t.show_not_assigned,V=t.show_tag_count,M=t.show_tabs,B=t.smallest,z=t.tags_post_id,L=t.ul_class,K=[],W=[];return this.state.groups&&this.state.groups.length>0&&this.state.groups.forEach(function(e){K.push({value:e.term_group,label:e.label})}),this.state.taxonomies&&this.state.taxonomies.length>0&&this.state.taxonomies.forEach(function(e){W.push({value:e.slug,label:e.name})}),"gutenberg"!==t.source&&n({source:"gutenberg"}),[wp.element.createElement(g,{key:"inspector"},wp.element.createElement("div",{className:"chatt-mango-inspector-control"},wp.element.createElement(b,{title:c("Tags and Terms"),initialOpen:!1},wp.element.createElement(S,{topic:"taxonomy"}),wp.element.createElement("label",{htmlFor:"tg_input_taxonomy"},c("Include taxonomies")),wp.element.createElement(s.a,{id:"tg_input_taxonomy",onChange:this.handleChangeTaxonomy,value:this.state.selectedTaxonomies,options:W,multi:!0,closeOnSelect:!1,removeSelected:!0}),wp.element.createElement(S,{topic:"smallest"}),wp.element.createElement(E,{label:c("Smallest font size"),value:B?Number(B):12,onChange:function(e){e<=O&&e<73&&n({smallest:e})},min:6,max:72}),wp.element.createElement(S,{topic:"largest"}),wp.element.createElement(E,{label:c("Largest font size"),value:O?Number(O):22,onChange:function(e){B<=e&&e>5&&n({largest:e})},min:6,max:72}),wp.element.createElement(S,{topic:"amount"}),wp.element.createElement(E,{label:c("Tags per group")+(0==a?": "+c("unlimited"):""),value:a?Number(a):0,onChange:function(e){return n({amount:e})},min:0,max:200}),wp.element.createElement(S,{topic:"orderby"}),wp.element.createElement("label",{htmlFor:"tg_input_orderby"},c("Order tags by")),wp.element.createElement(s.a,{id:"tg_input_orderby",onChange:function(e){e&&n({orderby:e.value})},value:j&&"string"===typeof j?j:"name",options:[{value:"name",label:c("Name")},{value:"natural",label:c("Natural sorting")},{value:"count",label:c("Post count")},{value:"slug",label:c("Slug")},{value:"term_id",label:c("Term ID")},{value:"description",label:c("Description")}]}),wp.element.createElement(S,{topic:"order"}),wp.element.createElement("label",{htmlFor:"tg_input_order"},c("Sort order")),wp.element.createElement(s.a,{id:"tg_input_order",onChange:function(e){e&&n({order:e.value})},value:P&&"string"===typeof P?P.toUpperCase():"ASC",options:[{value:"ASC",label:c("Ascending")},{value:"DESC",label:c("Descending")}]}),wp.element.createElement(S,{topic:"hide_empty"}),wp.element.createElement(_,{label:c("Hide empty tags"),checked:y,onChange:this.toggleOptionHideEmpty}),wp.element.createElement("div",null,wp.element.createElement(S,{topic:"separator"}),wp.element.createElement("label",{htmlFor:"tg_input_separator"},c("Separator"))),wp.element.createElement(v,{id:"tg_input_separator",className:"input-control",value:N||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({separator:e})}}),N&&wp.element.createElement("div",null,wp.element.createElement(S,{topic:"adjust_separator_size"}),wp.element.createElement(_,{label:c("Adjust separator size to following tag"),checked:i,onChange:this.toggleOptionAdjustSeperatorSize}),!i&&wp.element.createElement("div",null,wp.element.createElement(S,{topic:"separator_size"}),wp.element.createElement(E,{label:c("Separator size"),value:I?Number(I):22,onChange:function(e){return n({separator_size:e})},min:6,max:144}))),wp.element.createElement(S,{topic:"prepend"}),wp.element.createElement("div",null,wp.element.createElement("label",{htmlFor:"tg_input_prepend"},c("Prepend"))),wp.element.createElement(v,{id:"tg_input_prepend",className:"input-control",value:D||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({prepend:e})}}),wp.element.createElement(S,{topic:"append"}),wp.element.createElement("div",null,wp.element.createElement("label",{htmlFor:"tg_input_append"},c("Append"))),wp.element.createElement(v,{id:"tg_input_append",className:"input-control",value:l||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({append:e})}}),!h&&wp.element.createElement("div",null,wp.element.createElement(S,{topic:"show_tag_count"}),wp.element.createElement(_,{label:c("Show post count in the tooltip"),checked:V,onChange:this.toggleOptionShowTagCount})),wp.element.createElement("div",null,wp.element.createElement(S,{topic:"custom_title"}),wp.element.createElement("label",{htmlFor:"tg_input_custom_title"},c("Custom title"))),wp.element.createElement(v,{id:"tg_input_custom_title",className:"input-control",value:h||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({custom_title:e})}}),wp.element.createElement(S,{topic:"link_target"}),wp.element.createElement("label",{htmlFor:"tg_input_link_target"},c("Link target")),wp.element.createElement(s.a,{id:"tg_input_link_target",onChange:function(e){e&&n({link_target:e.value})},value:A&&"string"===typeof A?A:"_self",options:[{value:"_self",label:"_self"},{value:"_blank",label:"_blank"},{value:"_parent",label:"_parent"},{value:"_top",label:"_top"}]}),wp.element.createElement("div",null,wp.element.createElement("label",{htmlFor:"tg_input_link_append"},c("Append to link"))),wp.element.createElement(v,{id:"tg_input_link_append",className:"input-control",value:C||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({link_append:e})}}),F&&wp.element.createElement("div",null,wp.element.createElement(S,{topic:"add_premium_filter"}),wp.element.createElement(_,{label:c("Add filter to tags for multiple groups."),checked:o,onChange:this.toggleOptionAddPremiumFilter})),wp.element.createElement(S,{topic:"tags_post_id"}),wp.element.createElement("label",{htmlFor:"tg_input_tags_post_id"},c("Use tags of the following post:")),wp.element.createElement(s.a,{id:"tg_input_tags_post_id",onChange:function(e){e&&n({tags_post_id:e.value})},value:z,options:this.state.posts})),wp.element.createElement(b,{title:c("Groups and Tabs"),initialOpen:!1},wp.element.createElement(S,{topic:"show_tabs"}),wp.element.createElement(_,{label:c("Show tabs"),checked:M,onChange:this.toggleOptionShowTabs}),wp.element.createElement(S,{topic:"hide_empty_tabs"}),wp.element.createElement(_,{label:c("Hide empty tabs"),checked:w,onChange:this.toggleOptionHideEmptyTabs}),wp.element.createElement(S,{topic:"mouseover"}),wp.element.createElement(_,{label:c("Open tabs on mouseover"),checked:x,onChange:this.toggleOptionMouseover}),wp.element.createElement(S,{topic:"collapsible"}),wp.element.createElement(_,{label:c("Make panels collapsible"),checked:p,onChange:this.toggleOptionCollapsible}),wp.element.createElement(S,{topic:"active"}),wp.element.createElement(_,{label:c("Start with expanded tabs"),checked:r,onChange:this.toggleOptionActive}),wp.element.createElement(S,{topic:"include"}),wp.element.createElement("label",{htmlFor:"tg_input_include"},c("Include groups")),wp.element.createElement(s.a,{id:"tg_input_include",onChange:this.handleChangeInclude,value:this.state.selectedGroups,options:K,multi:!0,closeOnSelect:!1,removeSelected:!0}),1===R&&wp.element.createElement("div",null,wp.element.createElement("div",null,wp.element.createElement("label",{htmlFor:"tg_input_not_assigned_name"},c("Label on tab for not-assigned tags"))),wp.element.createElement(v,{id:"tg_input_not_assigned_name",className:"input-control",value:T||"not assigned",placeholder:c("Write here or leave empty."),onChange:function(e){return n({not_assigned_name:e})}})),wp.element.createElement(S,{topic:"groups_post_id"}),wp.element.createElement("label",{htmlFor:"tg_input_group_post_id"},c("Use groups of the following post:")),wp.element.createElement(s.a,{id:"tg_input_group_post_id",onChange:function(e){e&&n({groups_post_id:e.value})},value:m,options:this.state.posts})),wp.element.createElement(b,{title:c("Advanced Styling"),initialOpen:!1},wp.element.createElement("div",null,wp.element.createElement(S,{topic:"div_id"}),wp.element.createElement("label",{htmlFor:"tg_input_div_id"},'<div id="...">')),wp.element.createElement(v,{id:"tg_input_div_id",className:"input-control",value:f||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({div_id:e})}}),wp.element.createElement("div",null,wp.element.createElement(S,{topic:"div_class"}),wp.element.createElement("label",{htmlFor:"tg_input_div_class"},'<div class="...">')),wp.element.createElement(v,{id:"tg_input_div_class",className:"input-control",value:d||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({div_class:e})}}),wp.element.createElement("div",null,wp.element.createElement(S,{topic:"ul_class"}),wp.element.createElement("label",{htmlFor:"tg_input_ul_class"},'<ul class="...">')),wp.element.createElement(v,{id:"tg_input_ul_class",className:"input-control",value:L||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({ul_class:e})}}),-1!==z&&wp.element.createElement("div",null,wp.element.createElement("div",null,wp.element.createElement(S,{topic:"assigned_class"}),wp.element.createElement("label",{htmlFor:"tg_input_assigned_class"},'<a class="..._0"> or <a class="..._1">')),wp.element.createElement(v,{id:"tg_input_assigned_class",className:"input-control",value:u||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({assigned_class:e})}}))),wp.element.createElement("div",{className:"chatty-mango-help-transform"},wp.element.createElement(S,{topic:"transform-your-block-for-more-options"}),wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:c("If you want to customize further options, you need to transform the block into a <b>shortcode block</b>.")}})))),wp.element.createElement("div",{className:"chatty-mango-editor"},wp.element.createElement("table",{style:{border:"none"}},wp.element.createElement("tr",null,wp.element.createElement("td",null,wp.element.createElement("img",{src:k,alt:"logo",style:{float:"left",margin:15}})),wp.element.createElement("td",null,wp.element.createElement("h3",null,c("Tabbed Tag Cloud")),wp.element.createElement("div",{className:"cm-gutenberg dashicons-before dashicons-admin-generic"},c("Select this block and customize the tag cloud in the Inspector.")),wp.element.createElement("div",{className:"cm-gutenberg dashicons-before dashicons-welcome-view-site"},c("See the output with Preview."))))))]}}]),t}(w),P=f("chatty-mango/tag-groups-cloud-tabs",{title:c("Tabbed Tag Cloud"),icon:"tagcloud",category:"widgets",description:c("Show your tags in groups under tabs."),keywords:[c("tabs"),c("tag cloud"),"Chatty Mango"],html:!1,transforms:{to:[{type:"block",blocks:["core/shortcode"],transform:function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&null!==e[n]&&""!==e[n]&&"source"!==n&&P.attributes[n]&&e[n]!==P.attributes[n].default&&("number"===typeof e[n]?t.push(n+"="+e[n]):t.push(n+'="'+e[n]+'"'));var r="[tag_groups_cloud "+t.join(" ")+"]";return d("core/shortcode",{text:r})}}]},supports:{html:!1},attributes:{source:{type:"string",default:""},active:{type:"integer",default:1},adjust_separator_size:{type:"integer",default:1},add_premium_filter:{type:"integer",default:0},amount:{type:"integer",default:0},append:{type:"string",default:""},assigned_class:{type:"string",default:""},collapsible:{type:"integer",default:0},custom_title:{type:"string",default:""},div_class:{type:"string",default:"tag-groups-cloud"},div_id:{type:"string",default:""},exclude_terms:{type:"string",default:""},groups_post_id:{type:"integer",default:-1},hide_empty:{type:"integer",default:1},hide_empty_tabs:{type:"integer",default:0},include:{type:"string",default:""},include_terms:{type:"string",default:""},largest:{type:"integer",default:22},link_append:{type:"string",default:""},link_target:{type:"string",default:"_self"},mouseover:{type:"integer",default:0},not_assigned_name:{type:"string",default:""},order:{type:"string",default:"ASC"},orderby:{type:"string",default:"name"},prepend:{type:"string",default:""},separator_size:{type:"integer",default:22},separator:{tpye:"string",default:""},show_not_assigned:{type:"integer",default:0},show_all_groups:{type:"integer",default:0},show_tabs:{type:"integer",default:1},show_tag_count:{type:"integer",default:1},smallest:{type:"integer",default:12},tags_post_id:{type:"integer",default:-1},taxonomy:{type:"string",default:""},ul_class:{type:"string",default:""}},edit:T,save:function(e){return null}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=n(9),c=r(p),h=n(10),d=r(h),f={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},m=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],g=function(e){return m.forEach(function(t){return delete e[t]}),e},v=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},y=!("undefined"===typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),b=function(){return y?"_"+Math.random().toString(36).substr(2,12):void 0},_=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"===typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||b()},n}return l(t,e),u(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentWillReceiveProps",value:function(e){var t=e.id;t!==this.props.id&&this.setState({inputId:t||b()})}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"===typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(v(e,this.sizer),this.placeHolderSizer&&v(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&"undefined"!==typeof this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2;e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0,e<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return y&&e?c.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce(function(e,t){return null!==e&&void 0!==e?e:t}),t=s({},this.props.style);t.display||(t.display="inline-block");var n=s({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),r=o(this.props,[]);return g(r),r.className=this.props.inputClassName,r.id=this.state.inputId,r.style=n,c.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),c.default.createElement("input",s({},r,{ref:this.inputRef})),c.default.createElement("div",{ref:this.sizerRef,style:f},e),this.props.placeholder?c.default.createElement("div",{ref:this.placeHolderSizerRef,style:f},this.props.placeholder):null)}}]),t}(p.Component);_.propTypes={className:d.default.string,defaultValue:d.default.any,extraWidth:d.default.oneOfType([d.default.number,d.default.string]),id:d.default.string,injectStyles:d.default.bool,inputClassName:d.default.string,inputRef:d.default.func,inputStyle:d.default.object,minWidth:d.default.oneOfType([d.default.number,d.default.string]),onAutosize:d.default.func,onChange:d.default.func,placeholder:d.default.string,placeholderIsMinWidth:d.default.bool,style:d.default.object,value:d.default.any},_.defaultProps={minWidth:1,injectStyles:!0},t.default=_},function(e,t,n){"use strict";(function(t){var r=n(3),o=n(4),i=n(11),a=n(20),l=n(5),s=n(21);e.exports=function(e,n){function u(e){var t=e&&(F&&e[F]||e[k]);if("function"===typeof t)return t}function p(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function c(e){this.message=e,this.stack=""}function h(e){function r(r,u,p,h,d,f,m){if(h=h||S,f=f||p,m!==l)if(n)o(!1,"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");else if("production"!==t.env.NODE_ENV&&"undefined"!==typeof console){var g=h+":"+p;!a[g]&&s<3&&(i(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",f,h),a[g]=!0,s++)}return null==u[p]?r?new c(null===u[p]?"The "+d+" `"+f+"` is marked as required in `"+h+"`, but its value is `null`.":"The "+d+" `"+f+"` is marked as required in `"+h+"`, but its value is `undefined`."):null:e(u,p,h,d,f)}if("production"!==t.env.NODE_ENV)var a={},s=0;var u=r.bind(null,!1);return u.isRequired=r.bind(null,!0),u}function d(e){function t(t,n,r,o,i,a){var l=t[n];if(O(l)!==e)return new c("Invalid "+o+" `"+i+"` of type `"+C(l)+"` supplied to `"+r+"`, expected `"+e+"`.");return null}return h(t)}function f(e){function t(t,n,r,o,i){if("function"!==typeof e)return new c("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a)){return new c("Invalid "+o+" `"+i+"` of type `"+O(a)+"` supplied to `"+r+"`, expected an array.")}for(var s=0;s<a.length;s++){var u=e(a,s,r,o,i+"["+s+"]",l);if(u instanceof Error)return u}return null}return h(t)}function m(e){function t(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||S;return new c("Invalid "+o+" `"+i+"` of type `"+x(t[n])+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}return null}return h(t)}function g(e){function n(t,n,r,o,i){for(var a=t[n],l=0;l<e.length;l++)if(p(a,e[l]))return null;return new c("Invalid "+o+" `"+i+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")}return Array.isArray(e)?h(n):("production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull)}function v(e){function t(t,n,r,o,i){if("function"!==typeof e)return new c("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=t[n],s=O(a);if("object"!==s)return new c("Invalid "+o+" `"+i+"` of type `"+s+"` supplied to `"+r+"`, expected an object.");for(var u in a)if(a.hasOwnProperty(u)){var p=e(a,u,r,o,i+"."+u,l);if(p instanceof Error)return p}return null}return h(t)}function y(e){function n(t,n,r,o,i){for(var a=0;a<e.length;a++){if(null==(0,e[a])(t,n,r,o,i,l))return null}return new c("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var o=0;o<e.length;o++){var a=e[o];if("function"!==typeof a)return i(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",A(a),o),r.thatReturnsNull}return h(n)}function b(e){function t(t,n,r,o,i){var a=t[n],s=O(a);if("object"!==s)return new c("Invalid "+o+" `"+i+"` of type `"+s+"` supplied to `"+r+"`, expected `object`.");for(var u in e){var p=e[u];if(p){var h=p(a,u,r,o,i+"."+u,l);if(h)return h}}return null}return h(t)}function _(e){function t(t,n,r,o,i){var s=t[n],u=O(s);if("object"!==u)return new c("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");var p=a({},t[n],e);for(var h in p){var d=e[h];if(!d)return new c("Invalid "+o+" `"+i+"` key `"+h+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null,"  ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null,"  "));var f=d(s,h,r,o,i+"."+h,l);if(f)return f}return null}return h(t)}function E(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(E);if(null===t||e(t))return!0;var n=u(t);if(!n)return!1;var r,o=n.call(t);if(n!==t.entries){for(;!(r=o.next()).done;)if(!E(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!E(i[1]))return!1}return!0;default:return!1}}function w(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"===typeof Symbol&&t instanceof Symbol)}function O(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":w(t,e)?"symbol":t}function C(e){if("undefined"===typeof e||null===e)return""+e;var t=O(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function A(e){var t=C(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function x(e){return e.constructor&&e.constructor.name?e.constructor.name:S}var F="function"===typeof Symbol&&Symbol.iterator,k="@@iterator",S="<<anonymous>>",T={array:d("array"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:function(){return h(r.thatReturnsNull)}(),arrayOf:f,element:function(){function t(t,n,r,o,i){var a=t[n];if(!e(a)){return new c("Invalid "+o+" `"+i+"` of type `"+O(a)+"` supplied to `"+r+"`, expected a single ReactElement.")}return null}return h(t)}(),instanceOf:m,node:function(){function e(e,t,n,r,o){return E(e[t])?null:new c("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}return h(e)}(),objectOf:v,oneOf:g,oneOfType:y,shape:b,exact:_};return c.prototype=Error.prototype,T.checkPropTypes=s,T.PropTypes=T,T}}).call(t,n(0))},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,s=r(e),u=1;u<arguments.length;u++){n=Object(arguments[u]);for(var p in n)i.call(n,p)&&(s[p]=n[p]);if(o){l=o(n);for(var c=0;c<l.length;c++)a.call(n,l[c])&&(s[l[c]]=n[l[c]])}}return s}},function(e,t,n){"use strict";(function(t){function r(e,n,r,s,u){if("production"!==t.env.NODE_ENV)for(var p in e)if(e.hasOwnProperty(p)){var c;try{o("function"===typeof e[p],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",s||"React class",r,p,typeof e[p]),c=e[p](n,p,s,r,null,a)}catch(e){c=e}if(i(!c||c instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",s||"React class",r,p,typeof c),c instanceof Error&&!(c.message in l)){l[c.message]=!0;var h=u?u():"";i(!1,"Failed %s type: %s%s",r,c.message,null!=h?h:"")}}}if("production"!==t.env.NODE_ENV)var o=n(4),i=n(11),a=n(5),l={};e.exports=r}).call(t,n(0))},function(e,t,n){"use strict";var r=n(3),o=n(4),i=n(5);e.exports=function(){function e(e,t,n,r,a,l){l!==i&&o(!1,"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")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){var r,o;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r))e.push(n.apply(null,r));else if("object"===o)for(var a in r)i.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}var i={}.hasOwnProperty;"undefined"!==typeof e&&e.exports?e.exports=n:(r=[],void 0!==(o=function(){return n}.apply(t,r))&&(e.exports=o))}()},function(e,t){e.exports=ReactDOM},function(e,t,n){e.exports=n(26)},function(e,t,n){var r=function(){return this||"object"===typeof self&&self}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n(27),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},function(e,t){!function(t){"use strict";function n(e,t,n,r){var i=t&&t.prototype instanceof o?t:o,a=Object.create(i.prototype),l=new d(r||[]);return a._invoke=u(e,n,l),a}function r(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function o(){}function i(){}function a(){}function l(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function s(e){function t(n,o,i,a){var l=r(e[n],e,o);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"===typeof u&&y.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(u).then(function(e){s.value=e,i(s)},function(e){return t("throw",e,i,a)})}a(l.arg)}function n(e,n){function r(){return new Promise(function(r,o){t(e,n,r,o)})}return o=o?o.then(r,r):r()}var o;this._invoke=n}function u(e,t,n){var o=A;return function(i,a){if(o===F)throw new Error("Generator is already running");if(o===k){if("throw"===i)throw a;return m()}for(n.method=i,n.arg=a;;){var l=n.delegate;if(l){var s=p(l,n);if(s){if(s===S)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===A)throw o=k,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=F;var u=r(e,t,n);if("normal"===u.type){if(o=n.done?k:x,u.arg===S)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=k,n.method="throw",n.arg=u.arg)}}}function p(e,t){var n=e.iterator[t.method];if(n===g){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=g,p(e,t),"throw"===t.method))return S;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return S}var o=r(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,S;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=g),t.delegate=null,S):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,S)}function c(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function h(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function d(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(c,this),this.reset(!0)}function f(e){if(e){var t=e[_];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(y.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=g,t.done=!0,t};return r.next=r}}return{next:m}}function m(){return{value:g,done:!0}}var g,v=Object.prototype,y=v.hasOwnProperty,b="function"===typeof Symbol?Symbol:{},_=b.iterator||"@@iterator",E=b.asyncIterator||"@@asyncIterator",w=b.toStringTag||"@@toStringTag",O="object"===typeof e,C=t.regeneratorRuntime;if(C)return void(O&&(e.exports=C));C=t.regeneratorRuntime=O?e.exports:{},C.wrap=n;var A="suspendedStart",x="suspendedYield",F="executing",k="completed",S={},T={};T[_]=function(){return this};var P=Object.getPrototypeOf,j=P&&P(P(f([])));j&&j!==v&&y.call(j,_)&&(T=j);var D=a.prototype=o.prototype=Object.create(T);i.prototype=D.constructor=a,a.constructor=i,a[w]=i.displayName="GeneratorFunction",C.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===i||"GeneratorFunction"===(t.displayName||t.name))},C.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,w in e||(e[w]="GeneratorFunction")),e.prototype=Object.create(D),e},C.awrap=function(e){return{__await:e}},l(s.prototype),s.prototype[E]=function(){return this},C.AsyncIterator=s,C.async=function(e,t,r,o){var i=new s(n(e,t,r,o));return C.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},l(D),D[w]="Generator",D[_]=function(){return this},D.toString=function(){return"[object Generator]"},C.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},C.values=f,d.prototype={constructor:d,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=g,this.done=!1,this.delegate=null,this.method="next",this.arg=g,this.tryEntries.forEach(h),!e)for(var t in this)"t"===t.charAt(0)&&y.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=g)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return i.type="throw",i.arg=e,n.next=t,r&&(n.method="next",n.arg=g),!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=y.call(o,"catchLoc"),l=y.call(o,"finallyLoc");if(a&&l){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&y.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,S):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),S},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),h(n),S}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;h(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:f(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=g),S}}}(function(){return this||"object"===typeof self&&self}()||Function("return this")())},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(o,i){function a(e){r(s,o,i,a,l,"next",e)}function l(e){r(s,o,i,a,l,"throw",e)}var s=e.apply(t,n);a(void 0)})}}t.a=o},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=r},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i=Object(o.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}t.a=r;var o=n(31)},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}t.a=r},function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{"":{}},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";a||(a=new s.a({domain:"default",locale_data:{default:{}}})),a.options.locale_data[t]=Object.assign({},a.options.locale_data[t],e)}function o(){return a||r(),a}function i(e,t){return h(t,void 0,e)}t.a=i;var a,l=n(33),s=n.n(l),u=n(34),p=n.n(u),c=p()(console.error),h=p()(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;try{return o().dcnpgettext(e,t,n,r,i)}catch(e){return c("Jed localization error: \n\n"+e.toString()),n}})},function(e,t,n){!function(n,r){function o(e){return d.PF.compile(e||"nplurals=2; plural=(n != 1);")}function i(e,t){this._key=e,this._i18n=t}var a=Array.prototype,l=Object.prototype,s=a.slice,u=l.hasOwnProperty,p=a.forEach,c={},h={forEach:function(e,t,n){var r,o,i;if(null!==e)if(p&&e.forEach===p)e.forEach(t,n);else if(e.length===+e.length){for(r=0,o=e.length;r<o;r++)if(r in e&&t.call(n,e[r],r,e)===c)return}else for(i in e)if(u.call(e,i)&&t.call(n,e[i],i,e)===c)return},extend:function(e){return this.forEach(s.call(arguments,1),function(t){for(var n in t)e[n]=t[n]}),e}},d=function(e){if(this.defaults={locale_data:{messages:{"":{domain:"messages",lang:"en",plural_forms:"nplurals=2; plural=(n != 1);"}}},domain:"messages",debug:!1},this.options=h.extend({},this.defaults,e),this.textdomain(this.options.domain),e.domain&&!this.options.locale_data[this.options.domain])throw new Error("Text domain set to non-existent domain: `"+e.domain+"`")};d.context_delimiter=String.fromCharCode(4),h.extend(i.prototype,{onDomain:function(e){return this._domain=e,this},withContext:function(e){return this._context=e,this},ifPlural:function(e,t){return this._val=e,this._pkey=t,this},fetch:function(e){return"[object Array]"!={}.toString.call(e)&&(e=[].slice.call(arguments,0)),(e&&e.length?d.sprintf:function(e){return e})(this._i18n.dcnpgettext(this._domain,this._context,this._key,this._pkey,this._val),e)}}),h.extend(d.prototype,{translate:function(e){return new i(e,this)},textdomain:function(e){if(!e)return this._textdomain;this._textdomain=e},gettext:function(e){return this.dcnpgettext.call(this,void 0,void 0,e)},dgettext:function(e,t){return this.dcnpgettext.call(this,e,void 0,t)},dcgettext:function(e,t){return this.dcnpgettext.call(this,e,void 0,t)},ngettext:function(e,t,n){return this.dcnpgettext.call(this,void 0,void 0,e,t,n)},dngettext:function(e,t,n,r){return this.dcnpgettext.call(this,e,void 0,t,n,r)},dcngettext:function(e,t,n,r){return this.dcnpgettext.call(this,e,void 0,t,n,r)},pgettext:function(e,t){return this.dcnpgettext.call(this,void 0,e,t)},dpgettext:function(e,t,n){return this.dcnpgettext.call(this,e,t,n)},dcpgettext:function(e,t,n){return this.dcnpgettext.call(this,e,t,n)},npgettext:function(e,t,n,r){return this.dcnpgettext.call(this,void 0,e,t,n,r)},dnpgettext:function(e,t,n,r,o){return this.dcnpgettext.call(this,e,t,n,r,o)},dcnpgettext:function(e,t,n,r,i){r=r||n,e=e||this._textdomain;var a;if(!this.options)return a=new d,a.dcnpgettext.call(a,void 0,void 0,n,r,i);if(!this.options.locale_data)throw new Error("No locale data provided.");if(!this.options.locale_data[e])throw new Error("Domain `"+e+"` was not found.");if(!this.options.locale_data[e][""])throw new Error("No locale meta information provided.");if(!n)throw new Error("No translation key found.");var l,s,u,p=t?t+d.context_delimiter+n:n,c=this.options.locale_data,h=c[e],f=(c.messages||this.defaults.locale_data.messages)[""],m=h[""].plural_forms||h[""]["Plural-Forms"]||h[""]["plural-forms"]||f.plural_forms||f["Plural-Forms"]||f["plural-forms"];if(void 0===i)u=0;else{if("number"!=typeof i&&(i=parseInt(i,10),isNaN(i)))throw new Error("The number that was passed in is not a number.");u=o(m)(i)}if(!h)throw new Error("No domain named `"+e+"` could be found.");return!(l=h[p])||u>l.length?(this.options.missing_key_callback&&this.options.missing_key_callback(p,e),s=[n,r],!0===this.options.debug&&console.log(s[o(m)(i)]),s[o()(i)]):(s=l[u])||(s=[n,r],s[o()(i)])}});var f=function(){function e(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function t(e,t){for(var n=[];t>0;n[--t]=e);return n.join("")}var n=function(){return n.cache.hasOwnProperty(arguments[0])||(n.cache[arguments[0]]=n.parse(arguments[0])),n.format.call(null,n.cache[arguments[0]],arguments)};return n.format=function(n,r){var o,i,a,l,s,u,p,c=1,h=n.length,d="",m=[];for(i=0;i<h;i++)if("string"===(d=e(n[i])))m.push(n[i]);else if("array"===d){if(l=n[i],l[2])for(o=r[c],a=0;a<l[2].length;a++){if(!o.hasOwnProperty(l[2][a]))throw f('[sprintf] property "%s" does not exist',l[2][a]);o=o[l[2][a]]}else o=l[1]?r[l[1]]:r[c++];if(/[^s]/.test(l[8])&&"number"!=e(o))throw f("[sprintf] expecting number but found %s",e(o));switch("undefined"!=typeof o&&null!==o||(o=""),l[8]){case"b":o=o.toString(2);break;case"c":o=String.fromCharCode(o);break;case"d":o=parseInt(o,10);break;case"e":o=l[7]?o.toExponential(l[7]):o.toExponential();break;case"f":o=l[7]?parseFloat(o).toFixed(l[7]):parseFloat(o);break;case"o":o=o.toString(8);break;case"s":o=(o=String(o))&&l[7]?o.substring(0,l[7]):o;break;case"u":o=Math.abs(o);break;case"x":o=o.toString(16);break;case"X":o=o.toString(16).toUpperCase()}o=/[def]/.test(l[8])&&l[3]&&o>=0?"+"+o:o,u=l[4]?"0"==l[4]?"0":l[4].charAt(1):" ",p=l[6]-String(o).length,s=l[6]?t(u,p):"",m.push(l[5]?o+s:s+o)}return m.join("")},n.cache={},n.parse=function(e){for(var t=e,n=[],r=[],o=0;t;){if(null!==(n=/^[^\x25]+/.exec(t)))r.push(n[0]);else if(null!==(n=/^\x25{2}/.exec(t)))r.push("%");else{if(null===(n=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(t)))throw"[sprintf] huh?";if(n[2]){o|=1;var i=[],a=n[2],l=[];if(null===(l=/^([a-z_][a-z_\d]*)/i.exec(a)))throw"[sprintf] huh?";for(i.push(l[1]);""!==(a=a.substring(l[0].length));)if(null!==(l=/^\.([a-z_][a-z_\d]*)/i.exec(a)))i.push(l[1]);else{if(null===(l=/^\[(\d+)\]/.exec(a)))throw"[sprintf] huh?";i.push(l[1])}n[2]=i}else o|=2;if(3===o)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";r.push(n)}t=t.substring(n[0].length)}return r},n}(),m=function(e,t){return t.unshift(e),f.apply(null,t)};d.parse_plural=function(e,t){return e=e.replace(/n/g,t),d.parse_expression(e)},d.sprintf=function(e,t){return"[object Array]"=={}.toString.call(t)?m(e,[].slice.call(t)):f.apply(this,[].slice.call(arguments))},d.prototype.sprintf=function(){return d.sprintf.apply(this,arguments)},d.PF={},d.PF.parse=function(e){var t=d.PF.extractPluralExpr(e);return d.PF.parser.parse.call(d.PF.parser,t)},d.PF.compile=function(e){function t(e){return!0===e?1:e||0}var n=d.PF.parse(e);return function(e){return t(d.PF.interpreter(n)(e))}},d.PF.interpreter=function(e){return function(t){switch(e.type){case"GROUP":return d.PF.interpreter(e.expr)(t);case"TERNARY":return d.PF.interpreter(e.expr)(t)?d.PF.interpreter(e.truthy)(t):d.PF.interpreter(e.falsey)(t);case"OR":return d.PF.interpreter(e.left)(t)||d.PF.interpreter(e.right)(t);case"AND":return d.PF.interpreter(e.left)(t)&&d.PF.interpreter(e.right)(t);case"LT":return d.PF.interpreter(e.left)(t)<d.PF.interpreter(e.right)(t);case"GT":return d.PF.interpreter(e.left)(t)>d.PF.interpreter(e.right)(t);case"LTE":return d.PF.interpreter(e.left)(t)<=d.PF.interpreter(e.right)(t);case"GTE":return d.PF.interpreter(e.left)(t)>=d.PF.interpreter(e.right)(t);case"EQ":return d.PF.interpreter(e.left)(t)==d.PF.interpreter(e.right)(t);case"NEQ":return d.PF.interpreter(e.left)(t)!=d.PF.interpreter(e.right)(t);case"MOD":return d.PF.interpreter(e.left)(t)%d.PF.interpreter(e.right)(t);case"VAR":return t;case"NUM":return e.val;default:throw new Error("Invalid Token found.")}}},d.PF.extractPluralExpr=function(e){e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),/;\s*$/.test(e)||(e=e.concat(";"));var t,n=/nplurals\=(\d+);/,r=/plural\=(.*);/,o=e.match(n),i={};if(!(o.length>1))throw new Error("nplurals not found in plural_forms string: "+e);if(i.nplurals=o[1],e=e.replace(n,""),!((t=e.match(r))&&t.length>1))throw new Error("`plural` expression not found: "+e);return t[1]},d.PF.parser=function(){var e={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,"?":6,":":7,"||":8,"&&":9,"<":10,"<=":11,">":12,">=":13,"!=":14,"==":15,"%":16,"(":17,")":18,n:19,NUMBER:20,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",6:"?",7:":",8:"||",9:"&&",10:"<",11:"<=",12:">",13:">=",14:"!=",15:"==",16:"%",17:"(",18:")",19:"n",20:"NUMBER"},productions_:[0,[3,2],[4,5],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,1],[4,1]],performAction:function(e,t,n,r,o,i,a){var l=i.length-1;switch(o){case 1:return{type:"GROUP",expr:i[l-1]};case 2:this.$={type:"TERNARY",expr:i[l-4],truthy:i[l-2],falsey:i[l]};break;case 3:this.$={type:"OR",left:i[l-2],right:i[l]};break;case 4:this.$={type:"AND",left:i[l-2],right:i[l]};break;case 5:this.$={type:"LT",left:i[l-2],right:i[l]};break;case 6:this.$={type:"LTE",left:i[l-2],right:i[l]};break;case 7:this.$={type:"GT",left:i[l-2],right:i[l]};break;case 8:this.$={type:"GTE",left:i[l-2],right:i[l]};break;case 9:this.$={type:"NEQ",left:i[l-2],right:i[l]};break;case 10:this.$={type:"EQ",left:i[l-2],right:i[l]};break;case 11:this.$={type:"MOD",left:i[l-2],right:i[l]};break;case 12:this.$={type:"GROUP",expr:i[l-1]};break;case 13:this.$={type:"VAR"};break;case 14:this.$={type:"NUM",val:Number(e)}}},table:[{3:1,4:2,17:[1,3],19:[1,4],20:[1,5]},{1:[3]},{5:[1,6],6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{4:17,17:[1,3],19:[1,4],20:[1,5]},{5:[2,13],6:[2,13],7:[2,13],8:[2,13],9:[2,13],10:[2,13],11:[2,13],12:[2,13],13:[2,13],14:[2,13],15:[2,13],16:[2,13],18:[2,13]},{5:[2,14],6:[2,14],7:[2,14],8:[2,14],9:[2,14],10:[2,14],11:[2,14],12:[2,14],13:[2,14],14:[2,14],15:[2,14],16:[2,14],18:[2,14]},{1:[2,1]},{4:18,17:[1,3],19:[1,4],20:[1,5]},{4:19,17:[1,3],19:[1,4],20:[1,5]},{4:20,17:[1,3],19:[1,4],20:[1,5]},{4:21,17:[1,3],19:[1,4],20:[1,5]},{4:22,17:[1,3],19:[1,4],20:[1,5]},{4:23,17:[1,3],19:[1,4],20:[1,5]},{4:24,17:[1,3],19:[1,4],20:[1,5]},{4:25,17:[1,3],19:[1,4],20:[1,5]},{4:26,17:[1,3],19:[1,4],20:[1,5]},{4:27,17:[1,3],19:[1,4],20:[1,5]},{6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[1,28]},{6:[1,7],7:[1,29],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{5:[2,3],6:[2,3],7:[2,3],8:[2,3],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,3]},{5:[2,4],6:[2,4],7:[2,4],8:[2,4],9:[2,4],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,4]},{5:[2,5],6:[2,5],7:[2,5],8:[2,5],9:[2,5],10:[2,5],11:[2,5],12:[2,5],13:[2,5],14:[2,5],15:[2,5],16:[1,16],18:[2,5]},{5:[2,6],6:[2,6],7:[2,6],8:[2,6],9:[2,6],10:[2,6],11:[2,6],12:[2,6],13:[2,6],14:[2,6],15:[2,6],16:[1,16],18:[2,6]},{5:[2,7],6:[2,7],7:[2,7],8:[2,7],9:[2,7],10:[2,7],11:[2,7],12:[2,7],13:[2,7],14:[2,7],15:[2,7],16:[1,16],18:[2,7]},{5:[2,8],6:[2,8],7:[2,8],8:[2,8],9:[2,8],10:[2,8],11:[2,8],12:[2,8],13:[2,8],14:[2,8],15:[2,8],16:[1,16],18:[2,8]},{5:[2,9],6:[2,9],7:[2,9],8:[2,9],9:[2,9],10:[2,9],11:[2,9],12:[2,9],13:[2,9],14:[2,9],15:[2,9],16:[1,16],18:[2,9]},{5:[2,10],6:[2,10],7:[2,10],8:[2,10],9:[2,10],10:[2,10],11:[2,10],12:[2,10],13:[2,10],14:[2,10],15:[2,10],16:[1,16],18:[2,10]},{5:[2,11],6:[2,11],7:[2,11],8:[2,11],9:[2,11],10:[2,11],11:[2,11],12:[2,11],13:[2,11],14:[2,11],15:[2,11],16:[2,11],18:[2,11]},{5:[2,12],6:[2,12],7:[2,12],8:[2,12],9:[2,12],10:[2,12],11:[2,12],12:[2,12],13:[2,12],14:[2,12],15:[2,12],16:[2,12],18:[2,12]},{4:30,17:[1,3],19:[1,4],20:[1,5]},{5:[2,2],6:[1,7],7:[2,2],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,2]}],defaultActions:{6:[2,1]},parseError:function(e,t){throw new Error(e)},parse:function(e){function t(){var e;return e=n.lexer.lex()||1,"number"!==typeof e&&(e=n.symbols_[e]||e),e}var n=this,r=[0],o=[null],i=[],a=this.table,l="",s=0,u=0,p=0,c=2;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,"undefined"==typeof this.lexer.yylloc&&(this.lexer.yylloc={});var h=this.lexer.yylloc;i.push(h),"function"===typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var d,f,m,g,v,y,b,_,E,w={};;){if(m=r[r.length-1],this.defaultActions[m]?g=this.defaultActions[m]:(null==d&&(d=t()),g=a[m]&&a[m][d]),"undefined"===typeof g||!g.length||!g[0]){if(!p){E=[];for(y in a[m])this.terminals_[y]&&y>2&&E.push("'"+this.terminals_[y]+"'");var O="";O=this.lexer.showPosition?"Parse error on line "+(s+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+E.join(", ")+", got '"+this.terminals_[d]+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==d?"end of input":"'"+(this.terminals_[d]||d)+"'"),this.parseError(O,{text:this.lexer.match,token:this.terminals_[d]||d,line:this.lexer.yylineno,loc:h,expected:E})}if(3==p){if(1==d)throw new Error(O||"Parsing halted.");u=this.lexer.yyleng,l=this.lexer.yytext,s=this.lexer.yylineno,h=this.lexer.yylloc,d=t()}for(;;){if(c.toString()in a[m])break;if(0==m)throw new Error(O||"Parsing halted.");!function(e){r.length=r.length-2*e,o.length=o.length-e,i.length=i.length-e}(1),m=r[r.length-1]}f=d,d=c,m=r[r.length-1],g=a[m]&&a[m][c],p=3}if(g[0]instanceof Array&&g.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+d);switch(g[0]){case 1:r.push(d),o.push(this.lexer.yytext),i.push(this.lexer.yylloc),r.push(g[1]),d=null,f?(d=f,f=null):(u=this.lexer.yyleng,l=this.lexer.yytext,s=this.lexer.yylineno,h=this.lexer.yylloc,p>0&&p--);break;case 2:if(b=this.productions_[g[1]][1],w.$=o[o.length-b],w._$={first_line:i[i.length-(b||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(b||1)].first_column,last_column:i[i.length-1].last_column},"undefined"!==typeof(v=this.performAction.call(w,l,u,s,this.yy,g[1],o,i)))return v;b&&(r=r.slice(0,-1*b*2),o=o.slice(0,-1*b),i=i.slice(0,-1*b)),r.push(this.productions_[g[1]][0]),o.push(w.$),i.push(w._$),_=a[r[r.length-2]][r[r.length-1]],r.push(_);break;case 3:return!0}}return!0}},t=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parseError)throw new Error(e);this.yy.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.match+=e,this.matched+=e,e.match(/\n/)&&this.yylineno++,this._input=this._input.slice(1),e},unput:function(e){return this._input=e+this._input,this},more:function(){return this._more=!0,this},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t;this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;r<n.length;r++)if(e=this._input.match(this.rules[n[r]]))return t=e[0].match(/\n.*/g),t&&(this.yylineno+=t.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:t?t[t.length-1].length-1:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],this.performAction.call(this,this.yy,this,n[r],this.conditionStack[this.conditionStack.length-1])||void 0;if(""===this._input)return this.EOF;this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return"undefined"!==typeof e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)}};return e.performAction=function(e,t,n,r){switch(n){case 0:break;case 1:return 20;case 2:return 19;case 3:return 8;case 4:return 9;case 5:return 6;case 6:return 7;case 7:return 11;case 8:return 13;case 9:return 10;case 10:return 12;case 11:return 14;case 12:return 15;case 13:return 16;case 14:return 17;case 15:return 18;case 16:return 5;case 17:return"INVALID"}},e.rules=[/^\s+/,/^[0-9]+(\.[0-9]+)?\b/,/^n\b/,/^\|\|/,/^&&/,/^\?/,/^:/,/^<=/,/^>=/,/^</,/^>/,/^!=/,/^==/,/^%/,/^\(/,/^\)/,/^$/,/^./],e.conditions={INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}},e}();return e.lexer=t,e}(),"undefined"!==typeof e&&e.exports&&(t=e.exports=d),t.Jed=d}()},function(e,t,n){(function(t){e.exports=function(e,n){function r(){var t,n,r=i,s=arguments.length;e:for(;r;){if(r.args.length===arguments.length){for(n=0;n<s;n++)if(r.args[n]!==arguments[n]){r=r.next;continue e}return r!==i&&(r===a&&(a=r.prev),r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=i,r.prev=null,i.prev=r,i=r),r.val}r=r.next}for(t=new Array(s),n=0;n<s;n++)t[n]=arguments[n];return r={args:t,val:e.apply(null,t)},i?(i.prev=r,r.next=i):a=r,l===o?(a=a.prev,a.next=null):l++,i=r,r.val}var o,i,a,l=0;return n&&n.maxSize&&(o=n.maxSize),r.clear=function(){i=null,a=null,l=0},"test"===t.env.NODE_ENV&&(r.getCache=function(){return[i,a,l]}),r}}).call(t,n(0))},function(e,t,n){"use strict";var r=n(1),o=n(7),i=function(e){return function(t,n){var i=e;Object(o.a)("heartbeat.tick","core/api-fetch/create-nonce-middleware",function(e){e["rest-nonce"]&&(i=e["rest-nonce"])});var a=t.headers||{},l=!0;for(var s in a)if(a.hasOwnProperty(s)&&"x-wp-nonce"===s.toLowerCase()){l=!1;break}return l&&(a=Object(r.a)({},a,{"X-WP-Nonce":i})),n(Object(r.a)({},t,{headers:a}))}};t.a=i},function(e,t,n){"use strict";function r(){var e=Object.create(null),t=Object.create(null);return e.__current=[],t.__current=[],{addAction:Object(o.a)(e),addFilter:Object(o.a)(t),removeAction:Object(i.a)(e),removeFilter:Object(i.a)(t),hasAction:Object(a.a)(e),hasFilter:Object(a.a)(t),removeAllActions:Object(i.a)(e,!0),removeAllFilters:Object(i.a)(t,!0),doAction:Object(l.a)(e),applyFilters:Object(l.a)(t,!0),currentAction:Object(s.a)(e),currentFilter:Object(s.a)(t),doingAction:Object(u.a)(e),doingFilter:Object(u.a)(t),didAction:Object(p.a)(e),didFilter:Object(p.a)(t),actions:e,filters:t}}var o=n(37),i=n(38),a=n(39),l=n(40),s=n(41),u=n(42),p=n(43);t.a=r},function(e,t,n){"use strict";function r(e){return function(t,n,r){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;if(Object(i.a)(t)&&Object(o.a)(n)){if("function"!==typeof r)return void console.error("The hook callback must be a function.");if("number"!==typeof l)return void console.error("If specified, the hook priority must be a number.");var s={callback:r,priority:l,namespace:n};if(e[t]){for(var u=e[t].handlers,p=0;p<u.length&&!(u[p].priority>l);)p++;u.splice(p,0,s),(e.__current||[]).forEach(function(e){e.name===t&&e.currentIndex>=p&&e.currentIndex++})}else e[t]={handlers:[s],runs:0};"hookAdded"!==t&&Object(a.b)("hookAdded",t,n,r,l)}}}var o=n(12),i=n(8),a=n(7);t.a=r},function(e,t,n){"use strict";function r(e,t){return function(n,r){if(Object(i.a)(n)&&(t||Object(o.a)(r))){if(!e[n])return 0;var l=0;if(t)l=e[n].handlers.length,e[n]={runs:e[n].runs,handlers:[]};else for(var s=e[n].handlers,u=s.length-1;u>=0;u--)!function(t){s[t].namespace===r&&(s.splice(t,1),l++,(e.__current||[]).forEach(function(e){e.name===n&&e.currentIndex>=t&&e.currentIndex--}))}(u);return"hookRemoved"!==n&&Object(a.b)("hookRemoved",n,r),l}}}var o=n(12),i=n(8),a=n(7);t.a=r},function(e,t,n){"use strict";function r(e){return function(t){return t in e}}t.a=r},function(e,t,n){"use strict";function r(e,t){return function(n){e[n]||(e[n]={handlers:[],runs:0}),e[n].runs++;for(var r=e[n].handlers,o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];if(!r||!r.length)return t?i[0]:void 0;var l={name:n,currentIndex:0};for(e.__current.push(l),e[n]||(e[n]={runs:0,handlers:[]});l.currentIndex<r.length;){var s=r[l.currentIndex],u=s.callback.apply(null,i);t&&(i[0]=u),l.currentIndex++}return e.__current.pop(),t?i[0]:void 0}}t.a=r},function(e,t,n){"use strict";function r(e){return function(){return e.__current&&e.__current.length?e.__current[e.__current.length-1].name:null}}t.a=r},function(e,t,n){"use strict";function r(e){return function(t){return"undefined"===typeof t?"undefined"!==typeof e.__current[0]:!!e.__current[0]&&t===e.__current[0].name}}t.a=r},function(e,t,n){"use strict";function r(e){return function(t){if(Object(o.a)(t))return e[t]&&e[t].runs?e[t].runs:0}}var o=n(8);t.a=r},function(e,t,n){"use strict";var r=n(1),o=n(13),i=function(e){return function(t,n){return Object(o.a)(t,function(t){var o,i=t.url,a=t.path;return"string"===typeof a&&(o=e,-1!==e.indexOf("?")&&(a=a.replace("?","&")),a=a.replace(/^\//,""),"string"===typeof o&&-1!==o.indexOf("?")&&(a=a.replace("?","&")),i=o+a),n(Object(r.a)({},t,{url:i}))})}};t.a=i},function(e,t,n){"use strict";var r=function(e){return function(t,n){var r=t.parse,o=void 0===r||r;if("string"===typeof t.path&&o){var i=t.method||"GET",a=function(e){var t=e.split("?"),n=t[1],r=t[0];return n?r+"?"+n.split("&").map(function(e){return e.split("=")}).sort(function(e,t){return e[0].localeCompare(t[0])}).map(function(e){return e.join("=")}).join("&"):r}(t.path);if("GET"===i&&e[a])return Promise.resolve(e[a].body)}return n(t)}};t.a=r},function(e,t,n){"use strict";function r(e,t){var n=Object(o.a)({},e);return n.method&&["PATCH","PUT","DELETE"].indexOf(n.method.toUpperCase())>=0&&(n.headers||(n.headers={}),n.headers["X-HTTP-Method-Override"]=n.method,n.headers["Content-Type"]="application/json",n.method="POST"),t(n,t)}var o=n(1);t.a=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(48),l=(n.n(a),n(49)),s=(n.n(l),n(2)),u=n(6),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=wp.i18n.__,h=wp.blocks,d=h.createBlock,f=h.registerBlockType,m=wp.editor,g=m.InspectorControls,v=m.PlainText,y=wp.components,b=(y.SelectControl,y.PanelBody),_=y.ToggleControl,E=y.RangeControl,w=wp.element.Component,O=ChattyMangoTagGroupsGlobal,C=O.siteUrl,A=O.siteLang,x=O.pluginUrl,F=O.hasPremium,k=x+"/assets/images/cm-tg-icon-64x64.png",S=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),p(t,[{key:"render",value:function(){var e="https://documentation.chattymango.com/documentation/tag-groups-premium/accordion-tag-cloud/accordion-tag-cloud-parameters/";""!=A&&(e+="?lang="+A),e+="#"+this.props.topic;var t=c("Click for help!");return wp.element.createElement("div",null,wp.element.createElement("a",{href:e,target:"_blank",style:{textDecoration:"none"},title:t},wp.element.createElement("span",{className:"dashicons dashicons-editor-help tg_right chatty-mango-help-icon"})))}}]),t}(w),T=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.groupsEndPoint=C+"/wp-json/tag-groups/v1/groups",e.taxonomiesEndPoint=C+"/wp-json/tag-groups/v1/taxonomies",e.state=e.constructor.getInitialState(e.props.attributes),e.getGroupsFromApi=e.getGroupsFromApi.bind(e),e.getTaxonomiesFromApi=e.getTaxonomiesFromApi.bind(e),e.getPostsFromApi=e.getPostsFromApi.bind(e),e.handleChangeInclude=e.handleChangeInclude.bind(e),e.handleChangeTaxonomy=e.handleChangeTaxonomy.bind(e),e.toggleOptionActive=e.toggleOptionActive.bind(e),e.toggleOptionCollapsible=e.toggleOptionCollapsible.bind(e),e.toggleOptionMouseover=e.toggleOptionMouseover.bind(e),e.toggleOptionHideEmpty=e.toggleOptionHideEmpty.bind(e),e.toggleOptionAdjustSeperatorSize=e.toggleOptionAdjustSeperatorSize.bind(e),e.toggleOptionAddPremiumFilter=e.toggleOptionAddPremiumFilter.bind(e),e.toggleOptionHideEmptyContent=e.toggleOptionHideEmptyContent.bind(e),e.toggleOptionShowAccordion=e.toggleOptionShowAccordion.bind(e),e.toggleOptionShowTagCount=e.toggleOptionShowTagCount.bind(e),e.getGroupsFromApi(),e.getTaxonomiesFromApi(),e.getPostsFromApi(),e}return i(t,e),p(t,null,[{key:"getInitialState",value:function(e){var t=[],n=["post_tag"];return e.include&&(t=e.include.split(",")),e.taxonomy&&(n=e.taxonomy.split(",")),{groups:[],taxonomies:[],posts:[],selectedGroups:t,selectedTaxonomies:n}}}]),p(t,[{key:"handleChangeInclude",value:function(e){var t=e.map(function(e){if(!isNaN(e.value))return e.value});this.setState({selectedGroups:t}),this.props.setAttributes({include:t.join(",")}),t.indexOf(0)>-1?this.props.setAttributes({show_not_assigned:1}):this.props.setAttributes({show_not_assigned:0})}},{key:"handleChangeTaxonomy",value:function(e){var t=e.map(function(e){if("string"===typeof e.value)return e.value});this.setState({selectedTaxonomies:t}),this.props.setAttributes({taxonomy:t.join(",")})}},{key:"getGroupsFromApi",value:function(){var e=this;Object(u.a)({path:this.groupsEndPoint}).then(function(t){t&&e.setState({groups:t})})}},{key:"getTaxonomiesFromApi",value:function(){var e=this;Object(u.a)({path:this.taxonomiesEndPoint}).then(function(t){t&&e.setState({taxonomies:t})})}},{key:"getPostsFromApi",value:function(){var e=this;Object(u.a)({path:C+"/wp-json/wp/v2/posts?per_page=100"}).then(function(t){if(t){var n=[{value:-1,label:c("off")},{value:0,label:c("use this post")}];t.forEach(function(e){n.push({value:e.id,label:e.title.rendered})}),e.setState({posts:n})}})}},{key:"getGroupsFromApi",value:function(){var e=this;jQuery.getJSON(this.groupsEndPoint,function(t){t&&e.setState({groups:t})})}},{key:"toggleOptionActive",value:function(){var e=1===this.props.attributes.active?0:1;this.props.setAttributes({active:e})}},{key:"toggleOptionCollapsible",value:function(){var e=1===this.props.attributes.collapsible?0:1;this.props.setAttributes({collapsible:e})}},{key:"toggleOptionMouseover",value:function(){var e=1===this.props.attributes.mouseover?0:1;this.props.setAttributes({mouseover:e})}},{key:"toggleOptionHideEmpty",value:function(){var e=1===this.props.attributes.hide_empty?0:1;this.props.setAttributes({hide_empty:e})}},{key:"toggleOptionAdjustSeperatorSize",value:function(){var e=1===this.props.attributes.adjust_separator_size?0:1;this.props.setAttributes({adjust_separator_size:e})}},{key:"toggleOptionAddPremiumFilter",value:function(e){var t=1===this.props.attributes.add_premium_filter?0:1;this.props.setAttributes({add_premium_filter:t})}},{key:"toggleOptionHideEmptyContent",value:function(){var e=1===this.props.attributes.hide_empty_content?0:1;this.props.setAttributes({hide_empty_content:e})}},{key:"toggleOptionShowAccordion",value:function(){var e=1===this.props.attributes.show_accordion?0:1;this.props.setAttributes({show_accordion:e})}},{key:"toggleOptionShowTagCount",value:function(){var e=1===this.props.attributes.show_tag_count?0:1;this.props.setAttributes({show_tag_count:e})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=t.active,o=t.add_premium_filter,i=t.adjust_separator_size,a=t.amount,l=t.append,u=t.assigned_class,p=t.collapsible,h=t.custom_title,d=t.div_class,f=t.div_id,m=t.groups_post_id,y=t.header_class,w=t.heightstyle,O=t.hide_empty,C=t.hide_empty_content,A=t.inner_div_class,x=t.largest,T=t.link_append,P=t.link_target,j=t.mouseover,D=t.not_assigned_name,N=t.order,I=t.orderby,R=t.prepend,V=t.separator,M=t.separator_size,B=t.show_not_assigned,z=t.show_tag_count,L=t.show_accordion,K=t.smallest,W=t.tags_post_id,H=[],U=[];return this.state.groups&&this.state.groups.length>0&&this.state.groups.forEach(function(e){H.push({value:e.term_group,label:e.label})}),this.state.taxonomies&&this.state.taxonomies.length>0&&this.state.taxonomies.forEach(function(e){U.push({value:e.slug,label:e.name})}),"gutenberg"!==t.source&&n({source:"gutenberg"}),[wp.element.createElement(g,{key:"inspector"},wp.element.createElement("div",{className:"chatt-mango-inspector-control"},wp.element.createElement(b,{title:c("Tags and Terms"),initialOpen:!1},wp.element.createElement(S,{topic:"taxonomy"}),wp.element.createElement("label",{htmlFor:"tg_input_taxonomy"},c("Include taxonomies")),wp.element.createElement(s.a,{id:"tg_input_taxonomy",onChange:this.handleChangeTaxonomy,value:this.state.selectedTaxonomies,options:U,multi:!0,closeOnSelect:!1,removeSelected:!0}),wp.element.createElement(S,{topic:"smallest"}),wp.element.createElement(E,{label:c("Smallest font size"),value:K?Number(K):12,onChange:function(e){e<=x&&e<73&&n({smallest:e})},min:6,max:72}),wp.element.createElement(S,{topic:"largest"}),wp.element.createElement(E,{label:c("Largest font size"),value:x?Number(x):22,onChange:function(e){K<=e&&e>5&&n({largest:e})},min:6,max:72}),wp.element.createElement(S,{topic:"amount"}),wp.element.createElement(E,{label:c("Amount of tags per group")+(0==a?": "+c("unlimited"):""),value:a?Number(a):0,onChange:function(e){return n({amount:e})},min:0,max:200}),wp.element.createElement(S,{topic:"orderby"}),wp.element.createElement("label",{htmlFor:"tg_input_orderby"},c("Order tags by")),wp.element.createElement(s.a,{id:"tg_input_orderby",onChange:function(e){e&&n({orderby:e.value})},value:I&&"string"===typeof I?I:"name",options:[{value:"name",label:c("Name")},{value:"natural",label:c("Natural sorting")},{value:"count",label:c("Post count")},{value:"slug",label:c("Slug")},{value:"term_id",label:c("Term ID")},{value:"description",label:c("Description")}]}),wp.element.createElement(S,{topic:"order"}),wp.element.createElement("label",{htmlFor:"tg_input_order"},c("Sort order")),wp.element.createElement(s.a,{id:"tg_input_order",onChange:function(e){e&&n({order:e.value})},value:N&&"string"===typeof N?N.toUpperCase():"ASC",options:[{value:"ASC",label:c("Ascending")},{value:"DESC",label:c("Descending")}]}),wp.element.createElement(S,{topic:"hide_empty"}),wp.element.createElement(_,{label:c("Hide empty tags"),checked:O,onChange:this.toggleOptionHideEmpty}),wp.element.createElement("div",null,wp.element.createElement(S,{topic:"separator"}),wp.element.createElement("label",{htmlFor:"tg_input_separator"},c("Separator"))),wp.element.createElement(v,{id:"tg_input_separator",className:"input-control",value:V||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({separator:e})}}),V&&wp.element.createElement("div",null,wp.element.createElement(S,{topic:"adjust_separator_size"}),wp.element.createElement(_,{label:c("Adjust separator size to following tag"),checked:i,onChange:this.toggleOptionAdjustSeperatorSize}),!i&&wp.element.createElement("div",null,wp.element.createElement(S,{topic:"separator_size"}),wp.element.createElement(E,{label:c("Separator size"),value:M?Number(M):22,onChange:function(e){return n({separator_size:e})},min:6,max:144}))),wp.element.createElement(S,{topic:"prepend"}),wp.element.createElement("div",null,wp.element.createElement("label",{htmlFor:"tg_input_prepend"},c("Prepend"))),wp.element.createElement(v,{id:"tg_input_prepend",className:"input-control",value:R||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({prepend:e})}}),wp.element.createElement(S,{topic:"append"}),wp.element.createElement("div",null,wp.element.createElement("label",{htmlFor:"tg_input_append"},c("Append"))),wp.element.createElement(v,{id:"tg_input_append",className:"input-control",value:l||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({append:e})}}),!h&&wp.element.createElement("div",null,wp.element.createElement(S,{topic:"show_tag_count"}),wp.element.createElement(_,{label:c("Show the post count in the tooltip"),checked:z,onChange:this.toggleOptionShowTagCount})),wp.element.createElement("div",null,wp.element.createElement(S,{topic:"custom_title"}),wp.element.createElement("label",{htmlFor:"tg_input_custom_title"},c("Custom title"))),wp.element.createElement(v,{id:"tg_input_custom_title",className:"input-control",value:h||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({custom_title:e})}}),wp.element.createElement(S,{topic:"link_target"}),wp.element.createElement("label",{htmlFor:"tg_input_link_target"},c("Link target")),wp.element.createElement(s.a,{id:"tg_input_link_target",onChange:function(e){e&&n({link_target:e.value})},value:P&&"string"===typeof P?P:"_self",options:[{value:"_self",label:"_self"},{value:"_blank",label:"_blank"},{value:"_parent",label:"_parent"},{value:"_top",label:"_top"}]}),wp.element.createElement("div",null,wp.element.createElement("label",{htmlFor:"tg_input_link_append"},c("Append to the link"))),wp.element.createElement(v,{id:"tg_input_link_append",className:"input-control",value:T||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({link_append:e})}}),F&&wp.element.createElement("div",null,wp.element.createElement(S,{topic:"add_premium_filter"}),wp.element.createElement(_,{label:c("Add filter to tags for multiple groups."),checked:o,onChange:this.toggleOptionAddPremiumFilter})),wp.element.createElement(S,{topic:"tags_post_id"}),wp.element.createElement("label",{htmlFor:"tg_input_tags_post_id"},c("Use tags of the following post:")),wp.element.createElement(s.a,{id:"tg_input_tags_post_id",onChange:function(e){e&&n({tags_post_id:e.value})},value:W,options:this.state.posts})),wp.element.createElement(b,{title:c("Groups and Tabs"),initialOpen:!1},wp.element.createElement(S,{topic:"show_accordion"}),wp.element.createElement(_,{label:c("Show the panels"),checked:L,onChange:this.toggleOptionShowAccordion}),wp.element.createElement(S,{topic:"hide_empty_content"}),wp.element.createElement(_,{label:c("Hide empty panels"),checked:C,onChange:this.toggleOptionHideEmptyContent}),wp.element.createElement(S,{topic:"mouseover"}),wp.element.createElement(_,{label:c("Open tabs on mouseover"),checked:j,onChange:this.toggleOptionMouseover}),wp.element.createElement(S,{topic:"collapsible"}),wp.element.createElement(_,{label:c("Make panels collapsible"),checked:p,onChange:this.toggleOptionCollapsible}),wp.element.createElement(S,{topic:"active"}),wp.element.createElement(_,{label:c("Start with expanded tabs"),checked:r,onChange:this.toggleOptionActive}),wp.element.createElement(S,{topic:"include"}),wp.element.createElement("label",{htmlFor:"tg_input_include"},c("Include groups")),wp.element.createElement(s.a,{id:"tg_input_include",onChange:this.handleChangeInclude,value:this.state.selectedGroups,options:H,multi:!0,closeOnSelect:!1,removeSelected:!0}),wp.element.createElement(S,{topic:"heightstyle"}),wp.element.createElement("label",{htmlFor:"tg_input_heightstyle"},c("Panel height")),wp.element.createElement(s.a,{id:"tg_input_heightstyle",onChange:function(e){e&&n({heightstyle:e.value})},value:w||"content",options:[{value:"auto",label:c("Adjust to heighest panel.")},{value:"fill",label:c("Fill parent element.")},{value:"content",label:c("Adjust to own content.")}]}),1===B&&wp.element.createElement("div",null,wp.element.createElement("div",null,wp.element.createElement("label",{htmlFor:"tg_input_not_assigned_name"},c("Label on tab for not assigned tags"))),wp.element.createElement(v,{id:"tg_input_not_assigned_name",className:"input-control",value:D||"not assigned",placeholder:c("Write here or leave empty."),onChange:function(e){return n({not_assigned_name:e})}})),wp.element.createElement(S,{topic:"groups_post_id"}),wp.element.createElement("label",{htmlFor:"tg_input_group_post_id"},c("Use groups of the following post:")),wp.element.createElement(s.a,{id:"tg_input_group_post_id",onChange:function(e){e&&n({groups_post_id:e.value})},value:m,options:this.state.posts})),wp.element.createElement(b,{title:c("Advanced Styling"),initialOpen:!1},wp.element.createElement("div",null,wp.element.createElement(S,{topic:"div_id"}),wp.element.createElement("label",{htmlFor:"tg_input_div_id"},'<div id="...">')),wp.element.createElement(v,{id:"tg_input_div_id",className:"input-control",value:f||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({div_id:e})}}),wp.element.createElement("div",null,wp.element.createElement(S,{topic:"div_class"}),wp.element.createElement("label",{htmlFor:"tg_input_div_class"},c('outer <div class="...">'))),wp.element.createElement(v,{id:"tg_input_div_class",className:"input-control",value:d||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({div_class:e})}}),wp.element.createElement("div",null,wp.element.createElement(S,{topic:"header_class"}),wp.element.createElement("label",{htmlFor:"tg_input_header_class"},'<h3 class="...">')),wp.element.createElement(v,{id:"tg_input_header_class",className:"input-control",value:y||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({header_class:e})}}),wp.element.createElement("div",null,wp.element.createElement(S,{topic:"inner_div_class"}),wp.element.createElement("label",{htmlFor:"tg_input_inner_div_class"},c('inner <div class="...">'))),wp.element.createElement(v,{id:"tg_input_inner_div_class",className:"input-control",value:A||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({inner_div_class:e})}}),-1!==W&&wp.element.createElement("div",null,wp.element.createElement("div",null,wp.element.createElement(S,{topic:"assigned_class"}),wp.element.createElement("label",{htmlFor:"tg_input_assigned_class"},'<a class="..._0"> or <a class="..._1">')),wp.element.createElement(v,{id:"tg_input_assigned_class",className:"input-control",value:u||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({assigned_class:e})}}))),wp.element.createElement("div",{className:"chatty-mango-help-transform"},wp.element.createElement(S,{topic:"transform-your-block-for-more-options"}),wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:c("If you want to customize further options, you need to transform the block into a <b>shortcode block</b>.")}})))),wp.element.createElement("div",{className:"chatty-mango-editor"},wp.element.createElement("table",{style:{border:"none"}},wp.element.createElement("tr",null,wp.element.createElement("td",null,wp.element.createElement("img",{src:k,alt:"logo",style:{float:"left",margin:15}})),wp.element.createElement("td",null,wp.element.createElement("h3",null,c("Accordion Tag Cloud")),wp.element.createElement("div",{className:"cm-gutenberg dashicons-before dashicons-admin-generic"},c("Select this block and customize the tag cloud in the Inspector.")),wp.element.createElement("div",{className:"cm-gutenberg dashicons-before dashicons-welcome-view-site"},c("See the output with Preview."))))))]}}]),t}(w),P=f("chatty-mango/tag-groups-cloud-accordion",{title:c("Accordion Tag Cloud"),icon:"tagcloud",category:"widgets",description:c("Show your tags in groups in an accordion."),keywords:[c("accordion"),c("tag cloud"),"Chatty Mango"],html:!1,transforms:{to:[{type:"block",blocks:["core/shortcode"],transform:function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&null!==e[n]&&""!==e[n]&&"source"!==n&&P.attributes[n]&&e[n]!==P.attributes[n].default&&("number"===typeof e[n]?t.push(n+"="+e[n]):t.push(n+'="'+e[n]+'"'));var r="[tag_groups_accordion "+t.join(" ")+"]";return d("core/shortcode",{text:r})}}]},supports:{html:!1},attributes:{source:{type:"string",default:""},active:{type:"integer",default:1},adjust_separator_size:{type:"integer",default:1},add_premium_filter:{type:"integer",default:0},amount:{type:"integer",default:0},append:{type:"string",default:""},assigned_class:{type:"string",default:""},collapsible:{type:"integer",default:0},custom_title:{type:"string",default:""},div_class:{type:"string",default:"tag-groups-cloud"},div_id:{type:"string",default:""},exclude_terms:{type:"string",default:""},groups_post_id:{type:"integer",default:-1},heightstyle:{type:"string",default:""},hide_empty:{type:"integer",default:1},hide_empty_content:{type:"integer",default:0},include:{type:"string",default:""},include_terms:{type:"string",default:""},largest:{type:"integer",default:22},link_append:{type:"string",default:""},link_target:{type:"string",default:"_self"},mouseover:{type:"integer",default:0},not_assigned_name:{type:"string",default:""},order:{type:"string",default:"ASC"},orderby:{type:"string",default:"name"},prepend:{type:"string",default:""},separator_size:{type:"integer",default:22},separator:{tpye:"string",default:""},show_not_assigned:{type:"integer",default:0},show_all_groups:{type:"integer",default:0},show_accordion:{type:"integer",default:1},show_tag_count:{type:"integer",default:1},smallest:{type:"integer",default:12},tags_post_id:{type:"integer",default:-1},taxonomy:{type:"string",default:""},header_class:{type:"string",default:""},inner_div_class:{type:"string",default:""}},edit:T,save:function(e){return null}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(51),l=(n.n(a),n(52)),s=(n.n(l),n(2)),u=n(6),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=wp.i18n.__,h=wp.blocks,d=h.createBlock,f=h.registerBlockType,m=wp.editor,g=m.InspectorControls,v=m.PlainText,y=wp.components,b=(y.SelectControl,y.PanelBody),_=y.ToggleControl,E=y.RangeControl,w=(y.ServerSideRender,wp.element.Component),O=ChattyMangoTagGroupsGlobal,C=O.siteUrl,A=O.siteLang,x=O.pluginUrl,F=(O.hasPremium,x+"/assets/images/cm-tg-icon-64x64.png"),k=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),p(t,[{key:"render",value:function(){var e="https://documentation.chattymango.com/documentation/tag-groups-premium/alphabetical-tag-cloud/alphabetical-tag-cloud-parameters/";""!=A&&(e+="?lang="+A),e+="#"+this.props.topic;var t=c("Click for help!");return wp.element.createElement("div",null,wp.element.createElement("a",{href:e,target:"_blank",style:{textDecoration:"none"},title:t},wp.element.createElement("span",{className:"dashicons dashicons-editor-help tg_right chatty-mango-help-icon"})))}}]),t}(w),S=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.groupsEndPoint=C+"/wp-json/tag-groups/v1/groups",e.termsEndPoint=C+"/wp-json/tag-groups/v1/terms",e.taxonomiesEndPoint=C+"/wp-json/tag-groups/v1/taxonomies",e.state=e.constructor.getInitialState(e.props.attributes),e.getGroupsFromApi=e.getGroupsFromApi.bind(e),e.getTaxonomiesFromApi=e.getTaxonomiesFromApi.bind(e),e.getPostsFromApi=e.getPostsFromApi.bind(e),e.handleChangeInclude=e.handleChangeInclude.bind(e),e.handleChangeTaxonomy=e.handleChangeTaxonomy.bind(e),e.toggleOptionActive=e.toggleOptionActive.bind(e),e.toggleOptionCollapsible=e.toggleOptionCollapsible.bind(e),e.toggleOptionMouseover=e.toggleOptionMouseover.bind(e),e.toggleOptionHideEmpty=e.toggleOptionHideEmpty.bind(e),e.toggleOptionAdjustSeperatorSize=e.toggleOptionAdjustSeperatorSize.bind(e),e.toggleOptionHideEmptyTabs=e.toggleOptionHideEmptyTabs.bind(e),e.toggleOptionShowTagCount=e.toggleOptionShowTagCount.bind(e),e.getGroupsFromApi(),e.getTaxonomiesFromApi(),e.getPostsFromApi(),e}return i(t,e),p(t,null,[{key:"getInitialState",value:function(e){var t=["post_tag"];return e.include&&e.include.split(","),e.taxonomy&&(t=e.taxonomy.split(",")),{groups:[],taxonomies:[],posts:[],selectedTaxonomies:t}}}]),p(t,[{key:"handleChangeInclude",value:function(e){var t=e.map(function(e){if(!isNaN(e.value))return e.value});this.setState({selectedGroups:t}),this.props.setAttributes({include:t.join(",")}),t.indexOf(0)>-1?this.props.setAttributes({show_not_assigned:1}):this.props.setAttributes({show_not_assigned:0})}},{key:"handleChangeTaxonomy",value:function(e){var t=e.map(function(e){if("string"===typeof e.value)return e.value});this.setState({selectedTaxonomies:t}),this.props.setAttributes({taxonomy:t.join(",")})}},{key:"getGroupsFromApi",value:function(){var e=this;Object(u.a)({path:this.groupsEndPoint}).then(function(t){t&&e.setState({groups:t})})}},{key:"getTaxonomiesFromApi",value:function(){var e=this;Object(u.a)({path:this.taxonomiesEndPoint}).then(function(t){t&&e.setState({taxonomies:t})})}},{key:"getPostsFromApi",value:function(){var e=this;Object(u.a)({path:C+"/wp-json/wp/v2/posts?per_page=100"}).then(function(t){if(t){var n=[{value:-1,label:c("off")},{value:0,label:c("use this post")}];t.forEach(function(e){n.push({value:e.id,label:e.title.rendered})}),e.setState({posts:n})}})}},{key:"toggleOptionActive",value:function(){var e=1===this.props.attributes.active?0:1;this.props.setAttributes({active:e})}},{key:"toggleOptionCollapsible",value:function(){var e=1===this.props.attributes.collapsible?0:1;this.props.setAttributes({collapsible:e})}},{key:"toggleOptionMouseover",value:function(){var e=1===this.props.attributes.mouseover?0:1;this.props.setAttributes({mouseover:e})}},{key:"toggleOptionHideEmpty",value:function(){var e=1===this.props.attributes.hide_empty?0:1;this.props.setAttributes({hide_empty:e})}},{key:"toggleOptionAdjustSeperatorSize",value:function(){var e=1===this.props.attributes.adjust_separator_size?0:1;this.props.setAttributes({adjust_separator_size:e})}},{key:"toggleOptionHideEmptyTabs",value:function(){var e=1===this.props.attributes.hide_empty_tabs?0:1;this.props.setAttributes({hide_empty_tabs:e})}},{key:"toggleOptionShowTagCount",value:function(){var e=1===this.props.attributes.show_tag_count?0:1;this.props.setAttributes({show_tag_count:e})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=t.active,o=t.adjust_separator_size,i=t.amount,a=t.append,l=t.assigned_class,u=t.collapsible,p=t.custom_title,h=t.div_class,d=t.div_id,f=t.exclude_letters,m=t.hide_empty,y=t.hide_empty_tabs,w=t.include_letters,O=t.largest,C=t.link_append,A=t.link_target,x=t.mouseover,S=t.order,T=t.orderby,P=t.prepend,j=t.separator,D=t.separator_size,N=t.show_tag_count,I=t.smallest,R=t.tags_post_id,V=t.ul_class,M=[],B=[];return this.state.groups&&this.state.groups.length>0&&this.state.groups.forEach(function(e){M.push({value:e.term_group,label:e.label})}),this.state.taxonomies&&this.state.taxonomies.length>0&&this.state.taxonomies.forEach(function(e){B.push({value:e.slug,label:e.name})}),"gutenberg"!==t.source&&n({source:"gutenberg"}),[wp.element.createElement(g,{key:"inspector"},wp.element.createElement("div",{className:"chatt-mango-inspector-control"},wp.element.createElement(b,{title:c("Tags and Terms"),initialOpen:!1},wp.element.createElement(k,{topic:"taxonomy"}),wp.element.createElement("label",{htmlFor:"tg_input_taxonomy"},c("Include taxonomies")),wp.element.createElement(s.a,{id:"tg_input_taxonomy",onChange:this.handleChangeTaxonomy,value:this.state.selectedTaxonomies,options:B,multi:!0,closeOnSelect:!1,removeSelected:!0}),wp.element.createElement(k,{topic:"smallest"}),wp.element.createElement(E,{label:c("Smallest font size"),value:I?Number(I):12,onChange:function(e){e<=O&&e<73&&n({smallest:e})},min:6,max:72}),wp.element.createElement(k,{topic:"largest"}),wp.element.createElement(E,{label:c("Largest font size"),value:O?Number(O):22,onChange:function(e){I<=e&&e>5&&n({largest:e})},min:6,max:72}),wp.element.createElement(k,{topic:"amount"}),wp.element.createElement(E,{label:c("Tags per group")+(0==i?": "+c("unlimited"):""),value:i?Number(i):0,onChange:function(e){return n({amount:e})},min:0,max:200}),wp.element.createElement(k,{topic:"orderby"}),wp.element.createElement("label",{htmlFor:"tg_input_orderby"},c("Order tags by")),wp.element.createElement(s.a,{id:"tg_input_orderby",onChange:function(e){e&&n({orderby:e.value})},value:T&&"string"===typeof T?T:"name",options:[{value:"name",label:c("Name")},{value:"natural",label:c("Natural sorting")},{value:"count",label:c("Post count")},{value:"slug",label:c("Slug")},{value:"term_id",label:c("Term ID")},{value:"description",label:c("Description")}]}),wp.element.createElement(k,{topic:"order"}),wp.element.createElement("label",{htmlFor:"tg_input_order"},c("Sort order")),wp.element.createElement(s.a,{id:"tg_input_order",onChange:function(e){e&&n({order:e.value})},value:S&&"string"===typeof S?S.toUpperCase():"ASC",options:[{value:"ASC",label:c("Ascending")},{value:"DESC",label:c("Descending")}]}),wp.element.createElement(k,{topic:"hide_empty"}),wp.element.createElement(_,{label:c("Hide empty tags"),checked:m,onChange:this.toggleOptionHideEmpty}),wp.element.createElement("div",null,wp.element.createElement(k,{topic:"separator"}),wp.element.createElement("label",{htmlFor:"tg_input_separator"},c("Separator"))),wp.element.createElement(v,{id:"tg_input_separator",className:"input-control",value:j||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({separator:e})}}),j&&wp.element.createElement("div",null,wp.element.createElement(k,{topic:"adjust_separator_size"}),wp.element.createElement(_,{label:c("Adjust separator size to following tag"),checked:o,onChange:this.toggleOptionAdjustSeperatorSize}),!o&&wp.element.createElement("div",null,wp.element.createElement(k,{topic:"separator_size"}),wp.element.createElement(E,{label:c("Separator size"),value:D?Number(D):22,onChange:function(e){return n({separator_size:e})},min:6,max:144}))),wp.element.createElement(k,{topic:"prepend"}),wp.element.createElement("div",null,wp.element.createElement("label",{htmlFor:"tg_input_prepend"},c("Prepend"))),wp.element.createElement(v,{id:"tg_input_prepend",className:"input-control",value:P||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({prepend:e})}}),wp.element.createElement(k,{topic:"append"}),wp.element.createElement("div",null,wp.element.createElement("label",{htmlFor:"tg_input_append"},c("Append"))),wp.element.createElement(v,{id:"tg_input_append",className:"input-control",value:a||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({append:e})}}),!p&&wp.element.createElement("div",null,wp.element.createElement(k,{topic:"show_tag_count"}),wp.element.createElement(_,{label:c("Show post count in the tooltip"),checked:N,onChange:this.toggleOptionShowTagCount})),wp.element.createElement("div",null,wp.element.createElement(k,{topic:"custom_title"}),wp.element.createElement("label",{htmlFor:"tg_input_custom_title"},c("Custom title"))),wp.element.createElement(v,{id:"tg_input_custom_title",className:"input-control",value:p||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({custom_title:e})}}),wp.element.createElement(k,{topic:"link_target"}),wp.element.createElement("label",{htmlFor:"tg_input_link_target"},c("Link target")),wp.element.createElement(s.a,{id:"tg_input_link_target",onChange:function(e){e&&n({link_target:e.value})},value:A&&"string"===typeof A?A:"_self",options:[{value:"_self",label:"_self"},{value:"_blank",label:"_blank"},{value:"_parent",label:"_parent"},{value:"_top",label:"_top"}]}),wp.element.createElement("div",null,wp.element.createElement("label",{htmlFor:"tg_input_link_append"},c("Append to link"))),wp.element.createElement(v,{id:"tg_input_link_append",className:"input-control",value:C||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({link_append:e})}}),wp.element.createElement(k,{topic:"tags_post_id"}),wp.element.createElement("label",{htmlFor:"tg_input_tags_post_id"},c("Use tags of the following post:")),wp.element.createElement(s.a,{id:"tg_input_tags_post_id",onChange:function(e){e&&n({tags_post_id:e.value})},value:R,options:this.state.posts})),wp.element.createElement(b,{title:c("Tabs"),initialOpen:!1},wp.element.createElement("div",null,wp.element.createElement(k,{topic:"include_letters"}),wp.element.createElement("label",{htmlFor:"tg_input_include_letters"},"Include letters")),wp.element.createElement(v,{id:"tg_input_include_letters",className:"input-control",value:w||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({include_letters:e})}}),wp.element.createElement("div",null,wp.element.createElement(k,{topic:"exclude_letters"}),wp.element.createElement("label",{htmlFor:"tg_input_exclude_letters"},"Exclude letters")),wp.element.createElement(v,{id:"tg_input_exclude_letters",className:"input-control",value:f||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({exclude_letters:e})}}),wp.element.createElement(k,{topic:"hide_empty_tabs"}),wp.element.createElement(_,{label:c("Hide empty tabs"),checked:y,onChange:this.toggleOptionHideEmptyTabs}),wp.element.createElement(k,{topic:"mouseover"}),wp.element.createElement(_,{label:c("Open tabs on mouseover"),checked:x,onChange:this.toggleOptionMouseover}),wp.element.createElement(k,{topic:"collapsible"}),wp.element.createElement(_,{label:c("Make panels collapsible"),checked:u,onChange:this.toggleOptionCollapsible}),wp.element.createElement(k,{topic:"active"}),wp.element.createElement(_,{label:c("Start with expanded tabs"),checked:r,onChange:this.toggleOptionActive})),wp.element.createElement(b,{title:c("Groups"),initialOpen:!1},wp.element.createElement(k,{topic:"include"}),wp.element.createElement("label",{htmlFor:"tg_input_include"},c("Include groups")),wp.element.createElement(s.a,{id:"tg_input_include",onChange:this.handleChangeInclude,value:this.state.selectedGroups,options:M,multi:!0,closeOnSelect:!1,removeSelected:!0})),wp.element.createElement(b,{title:c("Advanced Styling"),initialOpen:!1},wp.element.createElement("div",null,wp.element.createElement(k,{topic:"div_id"}),wp.element.createElement("label",{htmlFor:"tg_input_div_id"},'<div id="...">')),wp.element.createElement(v,{id:"tg_input_div_id",className:"input-control",value:d||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({div_id:e})}}),wp.element.createElement("div",null,wp.element.createElement(k,{topic:"div_class"}),wp.element.createElement("label",{htmlFor:"tg_input_div_class"},'<div class="...">')),wp.element.createElement(v,{id:"tg_input_div_class",className:"input-control",value:h||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({div_class:e})}}),wp.element.createElement("div",null,wp.element.createElement(k,{topic:"ul_class"}),wp.element.createElement("label",{htmlFor:"tg_input_ul_class"},'<ul class="...">')),wp.element.createElement(v,{id:"tg_input_ul_class",className:"input-control",value:V||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({ul_class:e})}}),-1!==R&&wp.element.createElement("div",null,wp.element.createElement("div",null,wp.element.createElement(k,{topic:"assigned_class"}),wp.element.createElement("label",{htmlFor:"tg_input_assigned_class"},'<a class="..._0"> or <a class="..._1">')),wp.element.createElement(v,{id:"tg_input_assigned_class",className:"input-control",value:l||"",placeholder:c("Write here or leave empty."),onChange:function(e){return n({assigned_class:e})}}))),wp.element.createElement("div",{className:"chatty-mango-help-transform"},wp.element.createElement(k,{topic:"transform-your-block-for-more-options"}),wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:c("If you want to customize further options, you need to transform the block into a <b>shortcode block</b>.")}})))),wp.element.createElement("div",{className:"chatty-mango-editor"},wp.element.createElement("table",{style:{border:"none"}},wp.element.createElement("tr",null,wp.element.createElement("td",null,wp.element.createElement("img",{src:F,alt:"logo",style:{float:"left",margin:15}})),wp.element.createElement("td",null,wp.element.createElement("h3",null,c("Alphabetical Tag Cloud")),wp.element.createElement("div",{className:"cm-gutenberg dashicons-before dashicons-admin-generic"},c("Select this block and customize the tag cloud in the Inspector.")),wp.element.createElement("div",{className:"cm-gutenberg dashicons-before dashicons-welcome-view-site"},c("See the output with Preview."))))))]}}]),t}(w),T=f("chatty-mango/tag-groups-alphabet-tabs",{title:c("Alphabetical Tag Cloud"),icon:"tagcloud",category:"widgets",description:c("Show your tags under tabs sorted by first letters."),keywords:[c("alphabet"),c("tag cloud"),"Chatty Mango"],html:!1,transforms:{to:[{type:"block",blocks:["core/shortcode"],transform:function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&null!==e[n]&&""!==e[n]&&"source"!==n&&T.attributes[n]&&e[n]!==T.attributes[n].default&&("number"===typeof e[n]?t.push(n+"="+e[n]):t.push(n+'="'+e[n]+'"'));var r="[tag_groups_alphabet_tabs "+t.join(" ")+"]";return d("core/shortcode",{text:r})}}]},supports:{html:!1},attributes:{source:{type:"string",default:""},active:{type:"integer",default:1},adjust_separator_size:{type:"integer",default:1},amount:{type:"integer",default:0},append:{type:"string",default:""},assigned_class:{type:"string",default:""},collapsible:{type:"integer",default:0},custom_title:{type:"string",default:""},div_class:{type:"string",default:"tag-groups-cloud"},div_id:{type:"string",default:""},exclude_letters:{type:"string",default:""},exclude_terms:{type:"string",default:""},hide_empty:{type:"integer",default:1},hide_empty_tabs:{type:"integer",default:0},include:{type:"string",default:""},include_letters:{type:"string",default:""},include_terms:{type:"string",default:""},largest:{type:"integer",default:22},link_append:{type:"string",default:""},link_target:{type:"string",default:"_self"},mouseover:{type:"integer",default:0},order:{type:"string",default:"ASC"},orderby:{type:"string",default:"name"},prepend:{type:"string",default:""},separator_size:{type:"integer",default:22},separator:{tpye:"string",default:""},show_tag_count:{type:"integer",default:1},smallest:{type:"integer",default:12},tags_post_id:{type:"integer",default:-1},taxonomy:{type:"string",default:""},ul_class:{type:"string",default:""}},edit:S,save:function(e){return null}})},function(e,t){},function(e,t){}]);

FADUS Healthcare – Affy Pharma Pvt Ltd

SEFOX

POWDER FOR ORAL SUSPENSION
30ML (HDPE BOTTLE)

Composition

Cefpodoxime 50mg/5ml

Indications & Uses

UTIs, LRTs

SYREGO – CV

POWDER FOR ORAL SUSPENSION
30ML (GLASS BOTTLE)

Composition

Cefpodoxime 50mg + Potassium Clavulanate 31.25mg/ 5ml

Indications & Uses

Upper & lower respiratory infections, Uncomplicated skin infections, Urinary Tract Infections

PEMOX-CLAV

POWDER FOR ORAL SUSPENSION
30ML (GLASS +HDPE BOTTLE)

Composition

Amoxycillin 200mg + Potassium clavulanate 28.50 mg/ 5ml

Indications & Uses

Community Acquired Pneumonia, Acute Exacerbations of Chronic Bronchitis, Upper Respiratory Tract Infections, Urinary Tract Infections

CEFIDUS CV

POWDER FOR ORAL SUSPENSION
30ML (GLASS BOTTLE)

Composition

Cefixime 50mg + Potassium clavulanate 31.25mg/5ml

Indications & Uses

Urinary Tract Inefctions, AECB, Otitis Media, Typhoid/p>

CEFIDUS

POWDER FOR ORAL SUSPENSION
30ML (HDPE BOTTLE)

Composition

Cefixime 50mg/5ml

Indications & Uses

Urinary Tract Inefctions, Gastroenteritis

SAMTHRO

ORAL SUSPENSION
15 ml

Composition

Azithromycin 200mg/5ml

Indications & Uses

Community Acquired Pneumonia, Acute Exacerbations of Chronic Bronchitis,

PARADUS-DS

ORAL SUSPENSION
60 ml

Composition

Paracetamol 250mg/5ml

Indications & Uses

Fever, Pain

FADSPAS-M

ORAL SUSPENSION
60 ml

Composition

Paracetamol 125mg + Mefenamic Acid 50mg/5ml

Indications & Uses

Pain, Fever

FADOFLOX

ORAL SUSPENSION
30 ml

Composition

Ofloxacin 50mg/5ml

Indications & Uses

Acute exacerbations of chronic Bronchitis, Diarrhoea

CUFFAD

SYRUP
60 ml

Composition

Paracetamol 125mg + PPH 5mg + Cetirizine HCI 2mg/5ml

Indications & Uses

Fever, common cold & Flu

FAD-HUNGRY

ORAL SUSPENSION
200ml

Composition

Cyproheptadine HCI 2mg + Tricholine citrate 0.275mg/5ml

Indications & Uses

Stimulate Apetite, Induces Weight Gain, Cure Allergies

APRAZ-DSR

CAPSULES ( HARD GELATIN)
10X10 (Alu-Alu)

Composition

Pantoprazole 40mg (EC) + Domperidone 30mg (SR)

Indications & Uses

GERD, Dyspepsia, Acid Peptic Disorders, Gastritis

TAPEN-DSR

CAPSULES ( HARD GELATIN)
11X10 (Alu-Alu)

Composition

Rabeprazole 20mg (EC) + Domperidone SR

Indications & Uses

GERD, Dyspepsia, Acid Peptic Disorders, Gastritis

APRAZ-40

INJECTION
40ml

Composition

Pantoprazole Sodium 40mg + NaCL

Indications & Uses

Acid-peptic disorders in hospitalized patients, Zollinger – Ellison Syndrome, Treatment of GERD Associated with Erasive Esophagitis, GL Bleed

NTICID

SUSPENSION
170ml

Composition

Activated Dimethicone 25mg + Magnesium Hydroxide 200mg+ Aluminium Hydroxide Gel 200mg/10ml

Indications & Uses

Heartburn, Acid Indigestion

FAD-ZYME

SYRUP
200ml

Composition

Alpha Amylase (1:2000) 50mg, Pepsin(1:3000) 10mg/5ml

Indications & Uses

Dyspepsia, Flatulence, Anorexia, Pancreatic Insufficiency

CAROFE

CAPSULES (HARD GELATIN)
10X3X10

Composition

Vitamin C 75mg + Vitamin B12 5mcg + Carbonyl Iron 100mg + Folic Acid 1.5mg + Zinc Sulphate 61.8mg

Indications & Uses

Hyphocromic Anemia in Pregnancy, Chronic and / or Acute Blood Loss, Post-gynaesurgery, Iron Deficiency Anemia

FA-D3 60K

CAPSULES (SOFT GELATIN)
10X1X4

Composition

Cholecalciferol 60000 UI

Indications & Uses

Osteoporosis, Osteoarthritis, Musculoskeletal Pain, Type- 2 Diabetes, Menstrual Irregularities, Pre-eclampsia, IUGR

CALERA

CAPSULES (SOFT GELATIN)
5X2X15

Composition

Calcitriol 0.25mcg + Calcium Carbonate 500mg + Zinc Sulphate 7.5mg

Indications & Uses

Osteoporosis, Hypoparathyroidism, Pregnancy & Lactation, Premenstrual Syndrome

IROFAD

SYRUP (IRON TONIC)
300 ml

Composition

Iron (III) Hydroxide Polymaltose 50mg, Folic Acid 0.5mg/15ml

Indications & Uses

Pregnancy and lactation, Iron Deficiency Anaemia, Anaemia due to Excessive Haemorrhage, Anaemia Associated with Infections and Malignant Disease

FAD-CCD

ORAL SUSPENSION
200ml

Composition

Calcium Carbonate 625mg, Vitamin D3 125 IU/5ml

Indications & Uses

Osteomalacia, Osteoporosis, Fractures, Premenstrual Syndrome

FADSPAS-M

TABLETS
20X10

Composition

Mefenamic Acid 250mg + Dicyclomine HCI 10mg

Indications & Uses

Dysmenorrhea, Irritable Bowel Syndrome, Colic and Bladder Spasm, Abdominal Pain

FADACIT

TABLETS (BLISTERS)
20X10

Composition

Nimeulide 100mg + Paracetamo; 325mg

Indications & Uses

Arthritis Pain, Soft Tissue Trauma Including Sprains, Musculoskeletal Pain, Pain Following Dental Extraction

PARA – T – FORTE

TABLETS

20X10

Composition

Tramadol 37.5mg + Paracetamol 325mg

Indications & Uses

Chronic Back Pain, Osteoarthritis, Postoperative Pain

FASFO

GEL
30g

Composition

Diclofenac Diethylamine 1.16% w/w + Oleum Linseed Oil 3 % w/w + Menthol 5% w/w +Methyl Salicylate 10% w/w

Indications & Uses

Sprains & Strains, Lower Back Pain, Joint Pain, Knee Pain

FAD-SOFT

CREAM
20g

Composition

Urea 10% +Lactic Acid 10% + Propylene Glycol 10% + Liquid Paraffin 10%

Indications & Uses

Foot Cracks, Keratolytic

CLOTIREL

OINTMENT
15g

Composition

Clotrimazole 1% w/w + Beclomethasone Dipropionate 0.025% w/w + Neomycin 0.5% w/w

Indications & Uses

Eczema, Psoriasis, Corticosteroid Responsive Dermatoses

KETOFAD

LOTION
100 ml

Composition

Ketoconazole 2% w/v

Indications & Uses

Pityriasis, Dandruff

KETOFAD-Z

LOTION
100 ml

Composition

Ketoconazole Shampoo 2% w/v + ZPTO 1% w/v

Indications & Uses

Pityriasis, Dandruff

DANDNIL

SOAP
75g

Composition

Ketoconazole 1% w/w

Indications & Uses

Tinea Versicolor, Prophylaxis of Pityriasis Versicolor

FADFLU

TABLETS
20X1X1

Composition

Fluconazole 200mg

Indications & Uses

Vaginal Candidiasis, Brochopulmonary Infections, Candiduria, Tinea Pedis, Corposis, Cruris, Versicolor

FADVIT

SYRUP
200ml

Composition

L-Iysine HCI 25mg + Vitamin B1 2.5mg + Vitamin B2 2.5mg + Vitamin B6 0.75mg + D-panthenol 3mg +Niacinamide 25mg + Mecobalamin 2mcg/10ml

Indications & Uses

Sub-optimal Growth, Poor Weight Gain, Malnutrition, Prolonged Illness

LYCODUS GOLD

SYRUP
225ml

Composition

Each 10ml Contains: Lycopene 6% 1000mcg + Vitamin A Palmitate 2500 IU + Vitamin E 10 IU + Ascorbic Acid 50mg + Selenium (as Sodium Selenate) 35mcg + Zinc (As Zinc Gluconate) 3mg + Manganese (as Manganese Gluconate) 2mg + Iodine ( As Potassium Iodine) 100mcg + Copper (As Copper Sulphate0 500mcg + Thiamine HCI 2mg + Riboflavine 3mg + Pyridoxine HCI 1.5mg

Indications & Uses

Tiredness, Stress, Feeling of Weakness, Vitality Deficiency

VITERA

CAPSULES (SOFT GELATIN)
10X1X10

Composition

Antioxidant, Multivitamin & Multiminerals

Indications & Uses

Tiredness, Stress, Feeling of Weakness, Vitality Deficiency

EWHEA

CAPSULES (SOFT GELATIN)
10X1X10

Composition

Vitamin E (Natural) 400 IU + Wheat Germ Oil 100mg + Omega 3 Fatty Acids 30mg

Indications & Uses

Ulcerative colitis, Metabolic Syndrome, Rheumatoid Arthritis, Type-2 Diabetes, Cardiovascular Diseases

VITERA-4G

CAPSULES (SOFT GELATIN)
10X1X10

Composition

Omega 3 Fatty Acid + Ginseng Extract + Ginkgo Bilaba Extract + Grape Seed Extract + Ginseng Extract + Multimineral + Multivitamin + Antioxidants + Trace Elements

Indications & Uses

Tiredness, Stress, Feeling of Weakness, Vitality Deficiency

VITERA-G

CAPSULES (SOFT GELATIN)
10X1X10

Composition

Ginseng + Multivitamin + Multimineral

Indications & Uses

Tiredness, Stress, Feeling of Weakness, Vitality Deficiency

LYCODUS

CAPSULES (SOFT GELATIN)
10X1X10

Composition

Each SG Contains Lycopene 6% 2000 IU + Vitamin A 2500 IU + Vitamin E Acetate 10 IU + Vitamin C 50 mg + Zinc sulphate Monohydrate 27.45mg + Selenium Dioxide 70mcg

Indications & Uses

Idiopathic Male Infertility, Pre-eclampsia, Prostate Cancer, Cardiovascular Diseases, Diabetes Mellitus

CEFIDUS-200-LB

TABLETS (Alu-Alu)
20X10

Composition

Cefixime 200mg + Lactic Acid Bacilus 2.5 billion spores

Indications & Uses

Otitis Media, Pharyngitis & Tonsillitis, Uncomplicated Urinary Tract Infections, Acute Exacerbations of Chronic Bronchitis, Enteric Fever

CEFIDUS-CV 325

TABLETS (Alu-Alu)
10X1X6

Composition

Cefixime 200mg + Potassium Clavulanate 125mg

Indications & Uses

Respiratory Tract Infections, Urinary Tract Infections, Skin & Skin Structure Infections

PEMOX-CLAV 625

TABLETS (Alu-Alu)
10X1X7

Composition

Amoxycillin 500mg + Potassium Clavulanate 125mg

Indications & Uses

Respiratory Tract Infections, Community Acquired Pneumonia, Gynaecological Infections, Acute Exacerbations of Chronic Bronchitis, Skin and Soft Tissue Infections

FADFLOX-O

TABLETS (Blister)
20X10

Composition

Ofloxacin 200mg + Ornidazole 500mg

Indications & Uses

Surgical ions, Diarrheas of Mixed Etiology, Gynaecological Infections, Orofacial and Dental Infections

LEVOXA-500

TABLETS
10X10

Composition

Levofloxacin 500mg

Indications & Uses

Acute Bacterial Sinusitis, Acute Bacterial Exacerbations of Chronic Bronchitis, Skin & Skin Structure Infections, Chronic Bacterial Prostatitis, Urinary Tract Infections

CEFIDUS-O

TABLETS (Alu-Alu)
20X10

Composition

Cefixime 200mg + Ofloxacin 200mg

Indications & Uses

Community Acquired Pneumonia, Multiple Drug Resistant-TB, Typhoid

FADFLOX

TABLETS (Alu-Alu)
10X1X10

Composition

Cefixime 200mg + Ofloxacin 200mg

Indications & Uses

RTIs, Otitis Media, Sinustis, UTIs, Typhoid

PEMOX-CLAV 1.2

INJECTIONS
1.2g

Composition

Amoxycillin 1000mg + Potassium Clavulanate 200mg + WFI

Indications & Uses

Community Acquired Pneumonia, Gynaecological Infections, Upper Respiratory Tract Infections, Skin and Soft Tissue Infections, Urinary Tract Infections, Acute Exacerbations of Chronic Bronchitis

EFTRI-S 1.5

INJECTIONS
1.5g

Composition

Ceftriaxone 1000mg + Sulbactam 500mg + WFI

Indications & Uses

Gynaecological Infections, Lower Respiratory Tract Infections, Intra-abdominal Infections with Aerobic Organisms, Surgical Prophylaxis

CEFOPER-S 1.5

INJECTIONS
1.5gm

Composition

Cefaperazone 1000mg + Sulbactam 500mg +WFI

Indications & Uses

Peritonitis, Bacterial Simusitis, Cholecystitis, Meningitis

BEMRO

INJECTIONS
1gm

Composition

Meropenem 1gm + WFI

Indications & Uses

Complicated Intra-abdominal Infection (cIAI), Complicated Skin & Skin Structure Infections (cSSSI), Bacterial Meningitis, Noscocomial Pneumonia

PIPDUS-T-4.5

INJECTIONS
4.5gm

Composition

Piperacillin 4000mg + Tazobactam 500mg + WFI

Indications & Uses

Intra-abdominal Infections, Complicated Urinary Tract Infections, Febrile Neutropenia, Lower Respiratory Tract Infections

EFTRI-T 1.125

INJECTIONS
1.125gm

Composition

Ceftriaxone 1000mg + Tazobactam 500 mg + WFI

Indications & Uses

Bone & Joint Infections, Intra-abdominal Infections, Bacterial Meningitis, Pre-operative Surgical Prophylaxis

SEFOX-200

TABLETS (Alu-Alu)
10X1X6

Composition

Cefpodoxime Proxetil 200mg

Indications & Uses

Pharyngitis, CAP, Tonsilitis

BRONKUFF

SYRUP
100ml

Composition

Ambroxol HCI 15mg + Guaiphensin 50mg + Terbutaline Sulphate 1.5mg + Mentholated Base/5ml

Indications & Uses

Bronchitis, Productive Cough, Emphysema, Bronchial Asthma

BRONKUFF-BR

SYRUP
100ml

Composition

Terbutaline Sulphate 2.5mg + Bromhexine HCI 8mg + Guaiphenesin 100mg + Methalated Base/5ml

Indications & Uses

Acute Cough, Abnormal Mucus Secretion, Productive Cough

CUFEX-CP

SYRUP
100ml

Composition

Dextromethorphan Hydrobromide 10mg + Phenylpherine 5 mg + Cetrizine 5mg + Mentholated Base/5ml

Indications & Uses

Commom Cold and Flu, Nasal Congestion, Sore Throat

MONLEV

TABLETS (Alu-Alu)
20X10

Composition

Levocetirizine 5mg + Montelukast 10mg

Indications & Uses

Allergic Rhinitis, Nasal Congestion, Asthma

LOVOFAD

TABLETS (Alu-Alu)
20X11

Composition

Levocetirizine 5mg

Indications & Uses

Chronic Idiopathic Urticaria (CIU), Seasonal Allergic Rhinitis (SAR), Perennial Allergic Rhinitis (PAR)

Arrange A Callback
[]
1 Step 1
Full Name
Telephone
Departmentyour full name
Postal Address
Message
0 /
Previous
Next
Shopping Basket