JSFiddle - React, Tailwind, and code Playground

JavaScript

/* Chosen v1.5.1 | (c) 2011-2016 by Harvest | MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md */
(function () {
    
	var a, AbstractChosen, Chosen, SelectParser, b, c = {}.hasOwnProperty,
		d = function (a, b) {
			function d() {
				this.constructor = a
			}
			for (var e in b) c.call(b, e) && (a[e] = b[e]);
			return d.prototype = b.prototype, a.prototype = new d, a.__super__ = b.prototype, a
		};
	SelectParser = function () {
		function SelectParser() {
			this.options_index = 0, this.parsed = []
		}
		return SelectParser.prototype.add_node = function (a) {
			return "OPTGROUP" === a.nodeName.toUpperCase() ? this.add_group(a) : this.add_option(a)
		}, SelectParser.prototype.add_group = function (a) {
			var b, c, d, e, f, g;
			for (b = this.parsed.length, this.parsed.push({
					array_index: b,
					group: !0,
					label: this.escapeExpression(a.label),
					title: a.title ? a.title : void 0,
					children: 0,
					disabled: a.disabled,
					classes: a.className
				}), f = a.childNodes, g = [], d = 0, e = f.length; e > d; d++) c = f[d], g.push(this.add_option(c, b, a.disabled));
			return g
		}, SelectParser.prototype.add_option = function (a, b, c) {
			return "OPTION" === a.nodeName.toUpperCase() ? ("" !== a.text ? (null != b && (this.parsed[b].children += 1), this.parsed.push({
				array_index: this.parsed.length,
				options_index: this.options_index,
				value: a.value,
				text: a.text,
                filter: a.dataset.filter,
				html: a.innerHTML,
				title: a.title ? a.title : void 0,
				selected: a.selected,
				disabled: c === !0 ? c : a.disabled,
				group_array_index: b,
				group_label: null != b ? this.parsed[b].label : null,
				classes: a.className,
				style: a.style.cssText
			})) : this.parsed.push({
				array_index: this.parsed.length,
				options_index: this.options_index,
				empty: !0
			}), this.options_index += 1) : void 0
		}, SelectParser.prototype.escapeExpression = function (a) {
			var b, c;
			return...